Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Gebauer <agebauer@hashicorp.com>2020-07-21 08:16:29 +0300
committerAustin Gebauer <agebauer@hashicorp.com>2020-07-21 08:16:29 +0300
commit5065eba3f12f56a50cf290d4967d5390748f7e1d (patch)
treef58e685dbd91e3e46be5eacbf06a86bd713e0b3d
parenta5b61129d191f46cd0bf7c25c2f54faba1cdc55c (diff)
adds scss templating via hugo pipes in prep for theme dark mode and css customizations
-rw-r--r--assets/sass/template.scss (renamed from static/css/custom.scss)22
-rw-r--r--assets/sass/webfonts/fa-brands-400.eot (renamed from static/css/webfonts/fa-brands-400.eot)bin129648 -> 129648 bytes
-rw-r--r--assets/sass/webfonts/fa-brands-400.svg (renamed from static/css/webfonts/fa-brands-400.svg)0
-rw-r--r--assets/sass/webfonts/fa-brands-400.ttf (renamed from static/css/webfonts/fa-brands-400.ttf)bin129344 -> 129344 bytes
-rw-r--r--assets/sass/webfonts/fa-brands-400.woff (renamed from static/css/webfonts/fa-brands-400.woff)bin87544 -> 87544 bytes
-rw-r--r--assets/sass/webfonts/fa-brands-400.woff2 (renamed from static/css/webfonts/fa-brands-400.woff2)bin74656 -> 74656 bytes
-rw-r--r--assets/sass/webfonts/fa-regular-400.eot (renamed from static/css/webfonts/fa-regular-400.eot)bin34388 -> 34388 bytes
-rw-r--r--assets/sass/webfonts/fa-regular-400.svg (renamed from static/css/webfonts/fa-regular-400.svg)0
-rw-r--r--assets/sass/webfonts/fa-regular-400.ttf (renamed from static/css/webfonts/fa-regular-400.ttf)bin34092 -> 34092 bytes
-rw-r--r--assets/sass/webfonts/fa-regular-400.woff (renamed from static/css/webfonts/fa-regular-400.woff)bin16804 -> 16804 bytes
-rw-r--r--assets/sass/webfonts/fa-regular-400.woff2 (renamed from static/css/webfonts/fa-regular-400.woff2)bin13584 -> 13584 bytes
-rw-r--r--assets/sass/webfonts/fa-solid-900.eot (renamed from static/css/webfonts/fa-solid-900.eot)bin186708 -> 186708 bytes
-rw-r--r--assets/sass/webfonts/fa-solid-900.svg (renamed from static/css/webfonts/fa-solid-900.svg)0
-rw-r--r--assets/sass/webfonts/fa-solid-900.ttf (renamed from static/css/webfonts/fa-solid-900.ttf)bin186424 -> 186424 bytes
-rw-r--r--assets/sass/webfonts/fa-solid-900.woff (renamed from static/css/webfonts/fa-solid-900.woff)bin96256 -> 96256 bytes
-rw-r--r--assets/sass/webfonts/fa-solid-900.woff2 (renamed from static/css/webfonts/fa-solid-900.woff2)bin74328 -> 74328 bytes
-rw-r--r--layouts/partials/head.html4
l---------node_modules/.bin/in-install1
l---------node_modules/.bin/in-publish1
l---------node_modules/.bin/mkdirp1
l---------node_modules/.bin/node-gyp1
l---------node_modules/.bin/node-sass1
l---------node_modules/.bin/nopt1
l---------node_modules/.bin/not-in-install1
l---------node_modules/.bin/not-in-publish1
l---------node_modules/.bin/rimraf1
l---------node_modules/.bin/sassgraph1
l---------node_modules/.bin/semver1
l---------node_modules/.bin/sshpk-conv1
l---------node_modules/.bin/sshpk-sign1
l---------node_modules/.bin/sshpk-verify1
l---------node_modules/.bin/strip-indent1
l---------node_modules/.bin/uuid1
l---------node_modules/.bin/which1
-rw-r--r--node_modules/abbrev/LICENSE46
-rw-r--r--node_modules/abbrev/README.md23
-rw-r--r--node_modules/abbrev/abbrev.js61
-rw-r--r--node_modules/abbrev/package.json56
-rw-r--r--node_modules/ajv/.tonic_example.js20
-rw-r--r--node_modules/ajv/LICENSE22
-rw-r--r--node_modules/ajv/README.md1452
-rw-r--r--node_modules/ajv/dist/ajv.bundle.js7165
-rw-r--r--node_modules/ajv/dist/ajv.min.js3
-rw-r--r--node_modules/ajv/dist/ajv.min.js.map1
-rw-r--r--node_modules/ajv/lib/ajv.d.ts395
-rw-r--r--node_modules/ajv/lib/ajv.js506
-rw-r--r--node_modules/ajv/lib/cache.js26
-rw-r--r--node_modules/ajv/lib/compile/async.js90
-rw-r--r--node_modules/ajv/lib/compile/equal.js5
-rw-r--r--node_modules/ajv/lib/compile/error_classes.js34
-rw-r--r--node_modules/ajv/lib/compile/formats.js142
-rw-r--r--node_modules/ajv/lib/compile/index.js387
-rw-r--r--node_modules/ajv/lib/compile/resolve.js270
-rw-r--r--node_modules/ajv/lib/compile/rules.js66
-rw-r--r--node_modules/ajv/lib/compile/schema_obj.js9
-rw-r--r--node_modules/ajv/lib/compile/ucs2length.js20
-rw-r--r--node_modules/ajv/lib/compile/util.js274
-rw-r--r--node_modules/ajv/lib/data.js49
-rw-r--r--node_modules/ajv/lib/definition_schema.js37
-rw-r--r--node_modules/ajv/lib/dot/_limit.jst104
-rw-r--r--node_modules/ajv/lib/dot/_limitItems.jst10
-rw-r--r--node_modules/ajv/lib/dot/_limitLength.jst10
-rw-r--r--node_modules/ajv/lib/dot/_limitProperties.jst10
-rw-r--r--node_modules/ajv/lib/dot/allOf.jst34
-rw-r--r--node_modules/ajv/lib/dot/anyOf.jst48
-rw-r--r--node_modules/ajv/lib/dot/coerce.def61
-rw-r--r--node_modules/ajv/lib/dot/comment.jst9
-rw-r--r--node_modules/ajv/lib/dot/const.jst11
-rw-r--r--node_modules/ajv/lib/dot/contains.jst57
-rw-r--r--node_modules/ajv/lib/dot/custom.jst191
-rw-r--r--node_modules/ajv/lib/dot/defaults.def47
-rw-r--r--node_modules/ajv/lib/dot/definitions.def201
-rw-r--r--node_modules/ajv/lib/dot/dependencies.jst80
-rw-r--r--node_modules/ajv/lib/dot/enum.jst30
-rw-r--r--node_modules/ajv/lib/dot/errors.def194
-rw-r--r--node_modules/ajv/lib/dot/format.jst106
-rw-r--r--node_modules/ajv/lib/dot/if.jst75
-rw-r--r--node_modules/ajv/lib/dot/items.jst100
-rw-r--r--node_modules/ajv/lib/dot/missing.def39
-rw-r--r--node_modules/ajv/lib/dot/multipleOf.jst20
-rw-r--r--node_modules/ajv/lib/dot/not.jst43
-rw-r--r--node_modules/ajv/lib/dot/oneOf.jst54
-rw-r--r--node_modules/ajv/lib/dot/pattern.jst14
-rw-r--r--node_modules/ajv/lib/dot/properties.jst244
-rw-r--r--node_modules/ajv/lib/dot/propertyNames.jst54
-rw-r--r--node_modules/ajv/lib/dot/ref.jst85
-rw-r--r--node_modules/ajv/lib/dot/required.jst108
-rw-r--r--node_modules/ajv/lib/dot/uniqueItems.jst62
-rw-r--r--node_modules/ajv/lib/dot/validate.jst282
-rw-r--r--node_modules/ajv/lib/dotjs/README.md3
-rw-r--r--node_modules/ajv/lib/dotjs/_limit.js157
-rw-r--r--node_modules/ajv/lib/dotjs/_limitItems.js77
-rw-r--r--node_modules/ajv/lib/dotjs/_limitLength.js82
-rw-r--r--node_modules/ajv/lib/dotjs/_limitProperties.js77
-rw-r--r--node_modules/ajv/lib/dotjs/allOf.js43
-rw-r--r--node_modules/ajv/lib/dotjs/anyOf.js74
-rw-r--r--node_modules/ajv/lib/dotjs/comment.js14
-rw-r--r--node_modules/ajv/lib/dotjs/const.js56
-rw-r--r--node_modules/ajv/lib/dotjs/contains.js82
-rw-r--r--node_modules/ajv/lib/dotjs/custom.js228
-rw-r--r--node_modules/ajv/lib/dotjs/dependencies.js168
-rw-r--r--node_modules/ajv/lib/dotjs/enum.js66
-rw-r--r--node_modules/ajv/lib/dotjs/format.js150
-rw-r--r--node_modules/ajv/lib/dotjs/if.js104
-rw-r--r--node_modules/ajv/lib/dotjs/index.js33
-rw-r--r--node_modules/ajv/lib/dotjs/items.js141
-rw-r--r--node_modules/ajv/lib/dotjs/multipleOf.js77
-rw-r--r--node_modules/ajv/lib/dotjs/not.js84
-rw-r--r--node_modules/ajv/lib/dotjs/oneOf.js73
-rw-r--r--node_modules/ajv/lib/dotjs/pattern.js75
-rw-r--r--node_modules/ajv/lib/dotjs/properties.js330
-rw-r--r--node_modules/ajv/lib/dotjs/propertyNames.js82
-rw-r--r--node_modules/ajv/lib/dotjs/ref.js124
-rw-r--r--node_modules/ajv/lib/dotjs/required.js270
-rw-r--r--node_modules/ajv/lib/dotjs/uniqueItems.js86
-rw-r--r--node_modules/ajv/lib/dotjs/validate.js494
-rw-r--r--node_modules/ajv/lib/keyword.js146
-rw-r--r--node_modules/ajv/lib/refs/data.json17
-rw-r--r--node_modules/ajv/lib/refs/json-schema-draft-04.json149
-rw-r--r--node_modules/ajv/lib/refs/json-schema-draft-06.json154
-rw-r--r--node_modules/ajv/lib/refs/json-schema-draft-07.json168
-rw-r--r--node_modules/ajv/lib/refs/json-schema-secure.json94
-rw-r--r--node_modules/ajv/package.json129
-rw-r--r--node_modules/ajv/scripts/.eslintrc.yml3
-rw-r--r--node_modules/ajv/scripts/bundle.js61
-rw-r--r--node_modules/ajv/scripts/compile-dots.js73
-rwxr-xr-xnode_modules/ajv/scripts/info10
-rwxr-xr-xnode_modules/ajv/scripts/prepare-tests12
-rwxr-xr-xnode_modules/ajv/scripts/publish-built-version32
-rwxr-xr-xnode_modules/ajv/scripts/travis-gh-pages23
-rw-r--r--node_modules/amdefine/LICENSE58
-rw-r--r--node_modules/amdefine/README.md171
-rw-r--r--node_modules/amdefine/amdefine.js301
-rw-r--r--node_modules/amdefine/intercept.js36
-rw-r--r--node_modules/amdefine/package.json48
-rw-r--r--node_modules/ansi-regex/index.js4
-rw-r--r--node_modules/ansi-regex/license21
-rw-r--r--node_modules/ansi-regex/package.json109
-rw-r--r--node_modules/ansi-regex/readme.md39
-rw-r--r--node_modules/ansi-styles/index.js65
-rw-r--r--node_modules/ansi-styles/license21
-rw-r--r--node_modules/ansi-styles/package.json90
-rw-r--r--node_modules/ansi-styles/readme.md86
-rw-r--r--node_modules/aproba/LICENSE14
-rw-r--r--node_modules/aproba/README.md94
-rw-r--r--node_modules/aproba/index.js105
-rw-r--r--node_modules/aproba/package.json62
-rw-r--r--node_modules/are-we-there-yet/CHANGES.md37
-rw-r--r--node_modules/are-we-there-yet/LICENSE5
-rw-r--r--node_modules/are-we-there-yet/README.md195
-rw-r--r--node_modules/are-we-there-yet/index.js4
-rw-r--r--node_modules/are-we-there-yet/package.json63
-rw-r--r--node_modules/are-we-there-yet/tracker-base.js11
-rw-r--r--node_modules/are-we-there-yet/tracker-group.js107
-rw-r--r--node_modules/are-we-there-yet/tracker-stream.js36
-rw-r--r--node_modules/are-we-there-yet/tracker.js30
-rw-r--r--node_modules/array-find-index/index.js25
-rw-r--r--node_modules/array-find-index/license21
-rw-r--r--node_modules/array-find-index/package.json67
-rw-r--r--node_modules/array-find-index/readme.md30
-rw-r--r--node_modules/asn1/LICENSE19
-rw-r--r--node_modules/asn1/README.md50
-rw-r--r--node_modules/asn1/lib/ber/errors.js13
-rw-r--r--node_modules/asn1/lib/ber/index.js27
-rw-r--r--node_modules/asn1/lib/ber/reader.js262
-rw-r--r--node_modules/asn1/lib/ber/types.js36
-rw-r--r--node_modules/asn1/lib/ber/writer.js317
-rw-r--r--node_modules/asn1/lib/index.js20
-rw-r--r--node_modules/asn1/package.json75
-rw-r--r--node_modules/assert-plus/AUTHORS6
-rw-r--r--node_modules/assert-plus/CHANGES.md14
-rw-r--r--node_modules/assert-plus/README.md162
-rw-r--r--node_modules/assert-plus/assert.js211
-rw-r--r--node_modules/assert-plus/package.json87
-rw-r--r--node_modules/async-foreach/LICENSE-MIT22
-rw-r--r--node_modules/async-foreach/README.md195
-rw-r--r--node_modules/async-foreach/dist/ba-foreach.js58
-rw-r--r--node_modules/async-foreach/dist/ba-foreach.min.js4
-rw-r--r--node_modules/async-foreach/grunt.js48
-rw-r--r--node_modules/async-foreach/lib/foreach.js63
-rw-r--r--node_modules/async-foreach/package.json55
-rw-r--r--node_modules/async-foreach/test/foreach_test.js200
-rw-r--r--node_modules/asynckit/LICENSE21
-rw-r--r--node_modules/asynckit/README.md233
-rw-r--r--node_modules/asynckit/bench.js76
-rw-r--r--node_modules/asynckit/index.js6
-rw-r--r--node_modules/asynckit/lib/abort.js29
-rw-r--r--node_modules/asynckit/lib/async.js34
-rw-r--r--node_modules/asynckit/lib/defer.js26
-rw-r--r--node_modules/asynckit/lib/iterate.js75
-rw-r--r--node_modules/asynckit/lib/readable_asynckit.js91
-rw-r--r--node_modules/asynckit/lib/readable_parallel.js25
-rw-r--r--node_modules/asynckit/lib/readable_serial.js25
-rw-r--r--node_modules/asynckit/lib/readable_serial_ordered.js29
-rw-r--r--node_modules/asynckit/lib/state.js37
-rw-r--r--node_modules/asynckit/lib/streamify.js141
-rw-r--r--node_modules/asynckit/lib/terminator.js29
-rw-r--r--node_modules/asynckit/package.json91
-rw-r--r--node_modules/asynckit/parallel.js43
-rw-r--r--node_modules/asynckit/serial.js17
-rw-r--r--node_modules/asynckit/serialOrdered.js75
-rw-r--r--node_modules/asynckit/stream.js21
-rw-r--r--node_modules/aws-sign2/LICENSE55
-rw-r--r--node_modules/aws-sign2/README.md4
-rw-r--r--node_modules/aws-sign2/index.js212
-rw-r--r--node_modules/aws-sign2/package.json50
-rw-r--r--node_modules/aws4/.travis.yml9
-rw-r--r--node_modules/aws4/LICENSE19
-rw-r--r--node_modules/aws4/README.md174
-rw-r--r--node_modules/aws4/aws4.js357
-rw-r--r--node_modules/aws4/lru.js96
-rw-r--r--node_modules/aws4/package.json53
-rw-r--r--node_modules/balanced-match/.npmignore5
-rw-r--r--node_modules/balanced-match/LICENSE.md21
-rw-r--r--node_modules/balanced-match/README.md91
-rw-r--r--node_modules/balanced-match/index.js59
-rw-r--r--node_modules/balanced-match/package.json77
-rw-r--r--node_modules/bcrypt-pbkdf/CONTRIBUTING.md13
-rw-r--r--node_modules/bcrypt-pbkdf/LICENSE66
-rw-r--r--node_modules/bcrypt-pbkdf/README.md45
-rw-r--r--node_modules/bcrypt-pbkdf/index.js556
-rw-r--r--node_modules/bcrypt-pbkdf/package.json44
-rw-r--r--node_modules/block-stream/LICENCE25
-rw-r--r--node_modules/block-stream/LICENSE15
-rw-r--r--node_modules/block-stream/README.md14
-rw-r--r--node_modules/block-stream/block-stream.js209
-rw-r--r--node_modules/block-stream/package.json60
-rw-r--r--node_modules/brace-expansion/LICENSE21
-rw-r--r--node_modules/brace-expansion/README.md129
-rw-r--r--node_modules/brace-expansion/index.js201
-rw-r--r--node_modules/brace-expansion/package.json75
-rw-r--r--node_modules/camelcase-keys/index.js12
-rw-r--r--node_modules/camelcase-keys/license21
-rw-r--r--node_modules/camelcase-keys/package.json84
-rw-r--r--node_modules/camelcase-keys/readme.md54
-rw-r--r--node_modules/camelcase/index.js56
-rw-r--r--node_modules/camelcase/license21
-rw-r--r--node_modules/camelcase/package.json71
-rw-r--r--node_modules/camelcase/readme.md57
-rw-r--r--node_modules/caseless/LICENSE28
-rw-r--r--node_modules/caseless/README.md45
-rw-r--r--node_modules/caseless/index.js67
-rw-r--r--node_modules/caseless/package.json56
-rw-r--r--node_modules/caseless/test.js67
-rw-r--r--node_modules/chalk/index.js116
-rw-r--r--node_modules/chalk/license21
-rw-r--r--node_modules/chalk/package.json114
-rw-r--r--node_modules/chalk/readme.md213
-rw-r--r--node_modules/cliui/CHANGELOG.md65
-rw-r--r--node_modules/cliui/LICENSE.txt14
-rw-r--r--node_modules/cliui/README.md115
-rw-r--r--node_modules/cliui/index.js324
-rw-r--r--node_modules/cliui/node_modules/ansi-regex/index.js14
-rw-r--r--node_modules/cliui/node_modules/ansi-regex/license9
-rw-r--r--node_modules/cliui/node_modules/ansi-regex/package.json85
-rw-r--r--node_modules/cliui/node_modules/ansi-regex/readme.md87
-rw-r--r--node_modules/cliui/node_modules/is-fullwidth-code-point/index.js46
-rw-r--r--node_modules/cliui/node_modules/is-fullwidth-code-point/license21
-rw-r--r--node_modules/cliui/node_modules/is-fullwidth-code-point/package.json77
-rw-r--r--node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md39
-rw-r--r--node_modules/cliui/node_modules/string-width/index.js39
-rw-r--r--node_modules/cliui/node_modules/string-width/license9
-rw-r--r--node_modules/cliui/node_modules/string-width/package.json88
-rw-r--r--node_modules/cliui/node_modules/string-width/readme.md45
-rw-r--r--node_modules/cliui/node_modules/strip-ansi/index.d.ts15
-rw-r--r--node_modules/cliui/node_modules/strip-ansi/index.js7
-rw-r--r--node_modules/cliui/node_modules/strip-ansi/license9
-rw-r--r--node_modules/cliui/node_modules/strip-ansi/package.json87
-rw-r--r--node_modules/cliui/node_modules/strip-ansi/readme.md61
-rw-r--r--node_modules/cliui/package.json101
-rw-r--r--node_modules/code-point-at/index.js32
-rw-r--r--node_modules/code-point-at/license21
-rw-r--r--node_modules/code-point-at/package.json70
-rw-r--r--node_modules/code-point-at/readme.md32
-rw-r--r--node_modules/color-convert/CHANGELOG.md54
-rw-r--r--node_modules/color-convert/LICENSE21
-rw-r--r--node_modules/color-convert/README.md68
-rw-r--r--node_modules/color-convert/conversions.js868
-rw-r--r--node_modules/color-convert/index.js78
-rw-r--r--node_modules/color-convert/package.json81
-rw-r--r--node_modules/color-convert/route.js97
-rw-r--r--node_modules/color-name/.eslintrc.json43
-rw-r--r--node_modules/color-name/.npmignore107
-rw-r--r--node_modules/color-name/LICENSE8
-rw-r--r--node_modules/color-name/README.md11
-rw-r--r--node_modules/color-name/index.js152
-rw-r--r--node_modules/color-name/package.json53
-rw-r--r--node_modules/color-name/test.js7
-rw-r--r--node_modules/combined-stream/License19
-rw-r--r--node_modules/combined-stream/Readme.md138
-rw-r--r--node_modules/combined-stream/lib/combined_stream.js208
-rw-r--r--node_modules/combined-stream/package.json58
-rw-r--r--node_modules/combined-stream/yarn.lock17
-rw-r--r--node_modules/concat-map/.travis.yml4
-rw-r--r--node_modules/concat-map/LICENSE18
-rw-r--r--node_modules/concat-map/README.markdown62
-rw-r--r--node_modules/concat-map/example/map.js6
-rw-r--r--node_modules/concat-map/index.js13
-rw-r--r--node_modules/concat-map/package.json88
-rw-r--r--node_modules/concat-map/test/map.js39
-rw-r--r--node_modules/console-control-strings/LICENSE13
-rw-r--r--node_modules/console-control-strings/README.md145
-rw-r--r--node_modules/console-control-strings/README.md~140
-rw-r--r--node_modules/console-control-strings/index.js125
-rw-r--r--node_modules/console-control-strings/package.json61
-rw-r--r--node_modules/core-util-is/LICENSE19
-rw-r--r--node_modules/core-util-is/README.md3
-rw-r--r--node_modules/core-util-is/float.patch604
-rw-r--r--node_modules/core-util-is/lib/util.js107
-rw-r--r--node_modules/core-util-is/package.json63
-rw-r--r--node_modules/core-util-is/test.js68
-rw-r--r--node_modules/cross-spawn/.editorconfig15
-rw-r--r--node_modules/cross-spawn/.eslintrc7
-rw-r--r--node_modules/cross-spawn/.npmignore3
-rw-r--r--node_modules/cross-spawn/.travis.yml6
-rw-r--r--node_modules/cross-spawn/LICENSE19
-rw-r--r--node_modules/cross-spawn/README.md64
-rw-r--r--node_modules/cross-spawn/appveyor.yml29
-rw-r--r--node_modules/cross-spawn/index.js59
-rw-r--r--node_modules/cross-spawn/lib/enoent.js73
-rw-r--r--node_modules/cross-spawn/lib/parse.js128
-rw-r--r--node_modules/cross-spawn/lib/resolveCommand.js31
-rw-r--r--node_modules/cross-spawn/package.json77
-rw-r--r--node_modules/currently-unhandled/browser.js27
-rw-r--r--node_modules/currently-unhandled/core.js33
-rw-r--r--node_modules/currently-unhandled/index.js12
-rw-r--r--node_modules/currently-unhandled/license21
-rw-r--r--node_modules/currently-unhandled/package.json103
-rw-r--r--node_modules/currently-unhandled/readme.md44
-rw-r--r--node_modules/dashdash/CHANGES.md364
-rw-r--r--node_modules/dashdash/LICENSE.txt24
-rw-r--r--node_modules/dashdash/README.md574
-rw-r--r--node_modules/dashdash/etc/dashdash.bash_completion.in389
-rw-r--r--node_modules/dashdash/lib/dashdash.js1055
-rw-r--r--node_modules/dashdash/package.json67
-rw-r--r--node_modules/decamelize/index.js13
-rw-r--r--node_modules/decamelize/license21
-rw-r--r--node_modules/decamelize/package.json71
-rw-r--r--node_modules/decamelize/readme.md48
-rw-r--r--node_modules/delayed-stream/.npmignore1
-rw-r--r--node_modules/delayed-stream/License19
-rw-r--r--node_modules/delayed-stream/Makefile7
-rw-r--r--node_modules/delayed-stream/Readme.md141
-rw-r--r--node_modules/delayed-stream/lib/delayed_stream.js107
-rw-r--r--node_modules/delayed-stream/package.json62
-rw-r--r--node_modules/delegates/.npmignore1
-rw-r--r--node_modules/delegates/History.md22
-rw-r--r--node_modules/delegates/License20
-rw-r--r--node_modules/delegates/Makefile8
-rw-r--r--node_modules/delegates/Readme.md94
-rw-r--r--node_modules/delegates/index.js121
-rw-r--r--node_modules/delegates/package.json48
-rw-r--r--node_modules/delegates/test/index.js94
-rwxr-xr-xnode_modules/ecc-jsbn/LICENSE21
-rwxr-xr-xnode_modules/ecc-jsbn/README.md8
-rwxr-xr-xnode_modules/ecc-jsbn/index.js58
-rwxr-xr-xnode_modules/ecc-jsbn/lib/LICENSE-jsbn40
-rwxr-xr-xnode_modules/ecc-jsbn/lib/ec.js561
-rwxr-xr-xnode_modules/ecc-jsbn/lib/sec.js170
-rwxr-xr-xnode_modules/ecc-jsbn/package.json65
-rwxr-xr-xnode_modules/ecc-jsbn/test.js14
-rw-r--r--node_modules/emoji-regex/LICENSE-MIT.txt20
-rw-r--r--node_modules/emoji-regex/README.md73
-rw-r--r--node_modules/emoji-regex/es2015/index.js6
-rw-r--r--node_modules/emoji-regex/es2015/text.js6
-rw-r--r--node_modules/emoji-regex/index.d.ts5
-rw-r--r--node_modules/emoji-regex/index.js6
-rw-r--r--node_modules/emoji-regex/package.json80
-rw-r--r--node_modules/emoji-regex/text.js6
-rw-r--r--node_modules/error-ex/LICENSE21
-rw-r--r--node_modules/error-ex/README.md144
-rw-r--r--node_modules/error-ex/index.js141
-rw-r--r--node_modules/error-ex/package.json86
-rw-r--r--node_modules/escape-string-regexp/index.js11
-rw-r--r--node_modules/escape-string-regexp/license21
-rw-r--r--node_modules/escape-string-regexp/package.json81
-rw-r--r--node_modules/escape-string-regexp/readme.md27
-rw-r--r--node_modules/extend/.editorconfig20
-rw-r--r--node_modules/extend/.eslintrc17
-rw-r--r--node_modules/extend/.jscs.json175
-rw-r--r--node_modules/extend/.travis.yml230
-rw-r--r--node_modules/extend/CHANGELOG.md83
-rw-r--r--node_modules/extend/LICENSE23
-rw-r--r--node_modules/extend/README.md81
-rw-r--r--node_modules/extend/component.json32
-rw-r--r--node_modules/extend/index.js117
-rw-r--r--node_modules/extend/package.json75
-rw-r--r--node_modules/extsprintf/.gitmodules0
-rw-r--r--node_modules/extsprintf/.npmignore2
-rw-r--r--node_modules/extsprintf/LICENSE19
-rw-r--r--node_modules/extsprintf/Makefile24
-rw-r--r--node_modules/extsprintf/Makefile.targ285
-rw-r--r--node_modules/extsprintf/README.md46
-rw-r--r--node_modules/extsprintf/jsl.node.conf137
-rw-r--r--node_modules/extsprintf/lib/extsprintf.js183
-rw-r--r--node_modules/extsprintf/package.json44
-rw-r--r--node_modules/fast-deep-equal/LICENSE21
-rw-r--r--node_modules/fast-deep-equal/README.md96
-rw-r--r--node_modules/fast-deep-equal/es6/index.d.ts2
-rw-r--r--node_modules/fast-deep-equal/es6/index.js72
-rw-r--r--node_modules/fast-deep-equal/es6/react.d.ts2
-rw-r--r--node_modules/fast-deep-equal/es6/react.js79
-rw-r--r--node_modules/fast-deep-equal/index.d.ts4
-rw-r--r--node_modules/fast-deep-equal/index.js46
-rw-r--r--node_modules/fast-deep-equal/package.json88
-rw-r--r--node_modules/fast-deep-equal/react.d.ts2
-rw-r--r--node_modules/fast-deep-equal/react.js53
-rw-r--r--node_modules/fast-json-stable-stringify/.eslintrc.yml26
-rw-r--r--node_modules/fast-json-stable-stringify/.github/FUNDING.yml1
-rw-r--r--node_modules/fast-json-stable-stringify/.travis.yml8
-rw-r--r--node_modules/fast-json-stable-stringify/LICENSE21
-rw-r--r--node_modules/fast-json-stable-stringify/README.md131
-rw-r--r--node_modules/fast-json-stable-stringify/benchmark/index.js31
-rw-r--r--node_modules/fast-json-stable-stringify/benchmark/test.json137
-rw-r--r--node_modules/fast-json-stable-stringify/example/key_cmp.js7
-rw-r--r--node_modules/fast-json-stable-stringify/example/nested.js3
-rw-r--r--node_modules/fast-json-stable-stringify/example/str.js3
-rw-r--r--node_modules/fast-json-stable-stringify/example/value_cmp.js7
-rw-r--r--node_modules/fast-json-stable-stringify/index.d.ts4
-rw-r--r--node_modules/fast-json-stable-stringify/index.js59
-rw-r--r--node_modules/fast-json-stable-stringify/package.json80
-rw-r--r--node_modules/fast-json-stable-stringify/test/cmp.js13
-rw-r--r--node_modules/fast-json-stable-stringify/test/nested.js44
-rw-r--r--node_modules/fast-json-stable-stringify/test/str.js46
-rw-r--r--node_modules/fast-json-stable-stringify/test/to-json.js22
-rw-r--r--node_modules/find-up/index.js53
-rw-r--r--node_modules/find-up/license21
-rw-r--r--node_modules/find-up/package.json83
-rw-r--r--node_modules/find-up/readme.md72
-rw-r--r--node_modules/forever-agent/LICENSE55
-rw-r--r--node_modules/forever-agent/README.md4
-rw-r--r--node_modules/forever-agent/index.js138
-rw-r--r--node_modules/forever-agent/package.json50
-rw-r--r--node_modules/form-data/License19
-rw-r--r--node_modules/form-data/README.md234
-rw-r--r--node_modules/form-data/README.md.bak234
-rw-r--r--node_modules/form-data/lib/browser.js2
-rw-r--r--node_modules/form-data/lib/form_data.js457
-rw-r--r--node_modules/form-data/lib/populate.js10
-rw-r--r--node_modules/form-data/package.json98
-rw-r--r--node_modules/form-data/yarn.lock2662
-rw-r--r--node_modules/fs.realpath/LICENSE43
-rw-r--r--node_modules/fs.realpath/README.md33
-rw-r--r--node_modules/fs.realpath/index.js66
-rw-r--r--node_modules/fs.realpath/old.js303
-rw-r--r--node_modules/fs.realpath/package.json59
-rw-r--r--node_modules/fstream/.travis.yml9
-rw-r--r--node_modules/fstream/LICENSE15
-rw-r--r--node_modules/fstream/README.md76
-rw-r--r--node_modules/fstream/examples/filter-pipe.js134
-rw-r--r--node_modules/fstream/examples/pipe.js118
-rw-r--r--node_modules/fstream/examples/reader.js68
-rw-r--r--node_modules/fstream/examples/symlink-write.js27
-rw-r--r--node_modules/fstream/fstream.js35
-rw-r--r--node_modules/fstream/lib/abstract.js85
-rw-r--r--node_modules/fstream/lib/collect.js70
-rw-r--r--node_modules/fstream/lib/dir-reader.js252
-rw-r--r--node_modules/fstream/lib/dir-writer.js174
-rw-r--r--node_modules/fstream/lib/file-reader.js150
-rw-r--r--node_modules/fstream/lib/file-writer.js107
-rw-r--r--node_modules/fstream/lib/get-type.js33
-rw-r--r--node_modules/fstream/lib/link-reader.js53
-rw-r--r--node_modules/fstream/lib/link-writer.js95
-rw-r--r--node_modules/fstream/lib/proxy-reader.js95
-rw-r--r--node_modules/fstream/lib/proxy-writer.js111
-rw-r--r--node_modules/fstream/lib/reader.js255
-rw-r--r--node_modules/fstream/lib/socket-reader.js36
-rw-r--r--node_modules/fstream/lib/writer.js390
-rw-r--r--node_modules/fstream/package.json62
-rw-r--r--node_modules/gauge/CHANGELOG.md160
-rw-r--r--node_modules/gauge/LICENSE13
-rw-r--r--node_modules/gauge/README.md399
-rw-r--r--node_modules/gauge/base-theme.js14
-rw-r--r--node_modules/gauge/error.js24
-rw-r--r--node_modules/gauge/has-color.js12
-rw-r--r--node_modules/gauge/index.js233
-rw-r--r--node_modules/gauge/package.json91
-rw-r--r--node_modules/gauge/plumbing.js48
-rw-r--r--node_modules/gauge/process.js3
-rw-r--r--node_modules/gauge/progress-bar.js35
-rw-r--r--node_modules/gauge/render-template.js181
-rw-r--r--node_modules/gauge/set-immediate.js7
-rw-r--r--node_modules/gauge/set-interval.js3
-rw-r--r--node_modules/gauge/spin.js5
-rw-r--r--node_modules/gauge/template-item.js73
-rw-r--r--node_modules/gauge/theme-set.js115
-rw-r--r--node_modules/gauge/themes.js54
-rw-r--r--node_modules/gauge/wide-truncate.js25
-rw-r--r--node_modules/gaze/LICENSE-MIT22
-rw-r--r--node_modules/gaze/README.md196
-rw-r--r--node_modules/gaze/lib/gaze.js469
-rw-r--r--node_modules/gaze/lib/helper.js84
-rw-r--r--node_modules/gaze/package.json79
-rw-r--r--node_modules/get-caller-file/LICENSE.md6
-rw-r--r--node_modules/get-caller-file/README.md41
-rw-r--r--node_modules/get-caller-file/index.d.ts2
-rw-r--r--node_modules/get-caller-file/index.js22
-rw-r--r--node_modules/get-caller-file/index.js.map1
-rw-r--r--node_modules/get-caller-file/package.json69
-rw-r--r--node_modules/get-stdin/index.js49
-rw-r--r--node_modules/get-stdin/package.json68
-rw-r--r--node_modules/get-stdin/readme.md44
-rw-r--r--node_modules/getpass/.npmignore8
-rw-r--r--node_modules/getpass/.travis.yml9
-rw-r--r--node_modules/getpass/LICENSE18
-rw-r--r--node_modules/getpass/README.md32
-rw-r--r--node_modules/getpass/lib/index.js123
-rw-r--r--node_modules/getpass/package.json50
-rw-r--r--node_modules/glob/LICENSE21
-rw-r--r--node_modules/glob/README.md375
-rw-r--r--node_modules/glob/changelog.md67
-rw-r--r--node_modules/glob/common.js240
-rw-r--r--node_modules/glob/glob.js790
-rw-r--r--node_modules/glob/package.json84
-rw-r--r--node_modules/glob/sync.js486
-rw-r--r--node_modules/globule/LICENSE22
-rw-r--r--node_modules/globule/README.md132
-rw-r--r--node_modules/globule/lib/globule.js192
-rw-r--r--node_modules/globule/package.json75
-rw-r--r--node_modules/graceful-fs/LICENSE15
-rw-r--r--node_modules/graceful-fs/README.md133
-rw-r--r--node_modules/graceful-fs/clone.js19
-rw-r--r--node_modules/graceful-fs/graceful-fs.js354
-rw-r--r--node_modules/graceful-fs/legacy-streams.js118
-rw-r--r--node_modules/graceful-fs/package.json82
-rw-r--r--node_modules/graceful-fs/polyfills.js342
-rw-r--r--node_modules/har-schema/LICENSE13
-rw-r--r--node_modules/har-schema/README.md49
-rw-r--r--node_modules/har-schema/lib/afterRequest.json30
-rw-r--r--node_modules/har-schema/lib/beforeRequest.json30
-rw-r--r--node_modules/har-schema/lib/browser.json20
-rw-r--r--node_modules/har-schema/lib/cache.json21
-rw-r--r--node_modules/har-schema/lib/content.json29
-rw-r--r--node_modules/har-schema/lib/cookie.json36
-rw-r--r--node_modules/har-schema/lib/creator.json20
-rw-r--r--node_modules/har-schema/lib/entry.json53
-rw-r--r--node_modules/har-schema/lib/har.json13
-rw-r--r--node_modules/har-schema/lib/header.json20
-rw-r--r--node_modules/har-schema/lib/index.js22
-rw-r--r--node_modules/har-schema/lib/log.json36
-rw-r--r--node_modules/har-schema/lib/page.json32
-rw-r--r--node_modules/har-schema/lib/pageTimings.json18
-rw-r--r--node_modules/har-schema/lib/postData.json43
-rw-r--r--node_modules/har-schema/lib/query.json20
-rw-r--r--node_modules/har-schema/lib/request.json57
-rw-r--r--node_modules/har-schema/lib/response.json54
-rw-r--r--node_modules/har-schema/lib/timings.json42
-rw-r--r--node_modules/har-schema/package.json86
-rw-r--r--node_modules/har-validator/LICENSE9
-rw-r--r--node_modules/har-validator/README.md37
-rw-r--r--node_modules/har-validator/lib/async.js105
-rw-r--r--node_modules/har-validator/lib/error.js17
-rw-r--r--node_modules/har-validator/lib/promise.js102
-rw-r--r--node_modules/har-validator/package.json76
-rw-r--r--node_modules/has-ansi/index.js4
-rw-r--r--node_modules/has-ansi/license21
-rw-r--r--node_modules/has-ansi/package.json95
-rw-r--r--node_modules/has-ansi/readme.md36
-rw-r--r--node_modules/has-unicode/LICENSE14
-rw-r--r--node_modules/has-unicode/README.md43
-rw-r--r--node_modules/has-unicode/index.js16
-rw-r--r--node_modules/has-unicode/package.json58
-rw-r--r--node_modules/hosted-git-info/CHANGELOG.md141
-rw-r--r--node_modules/hosted-git-info/LICENSE13
-rw-r--r--node_modules/hosted-git-info/README.md133
-rw-r--r--node_modules/hosted-git-info/git-host-info.js79
-rw-r--r--node_modules/hosted-git-info/git-host.js156
-rw-r--r--node_modules/hosted-git-info/index.js148
-rw-r--r--node_modules/hosted-git-info/package.json69
-rw-r--r--node_modules/http-signature/.dir-locals.el6
-rw-r--r--node_modules/http-signature/.npmignore7
-rw-r--r--node_modules/http-signature/CHANGES.md46
-rw-r--r--node_modules/http-signature/LICENSE18
-rw-r--r--node_modules/http-signature/README.md79
-rw-r--r--node_modules/http-signature/http_signing.md363
-rw-r--r--node_modules/http-signature/lib/index.js29
-rw-r--r--node_modules/http-signature/lib/parser.js315
-rw-r--r--node_modules/http-signature/lib/signer.js401
-rw-r--r--node_modules/http-signature/lib/utils.js112
-rw-r--r--node_modules/http-signature/lib/verify.js88
-rw-r--r--node_modules/http-signature/package.json77
-rw-r--r--node_modules/in-publish/LICENSE14
-rw-r--r--node_modules/in-publish/README.md52
-rwxr-xr-xnode_modules/in-publish/in-install.js4
-rwxr-xr-xnode_modules/in-publish/in-publish.js4
-rw-r--r--node_modules/in-publish/index.js32
-rwxr-xr-xnode_modules/in-publish/not-in-install.js4
-rwxr-xr-xnode_modules/in-publish/not-in-publish.js4
-rw-r--r--node_modules/in-publish/package.json50
-rw-r--r--node_modules/in-publish/test/package.json10
-rw-r--r--node_modules/indent-string/index.js20
-rw-r--r--node_modules/indent-string/license21
-rw-r--r--node_modules/indent-string/package.json68
-rw-r--r--node_modules/indent-string/readme.md58
-rw-r--r--node_modules/inflight/LICENSE15
-rw-r--r--node_modules/inflight/README.md37
-rw-r--r--node_modules/inflight/inflight.js54
-rw-r--r--node_modules/inflight/package.json58
-rw-r--r--node_modules/inherits/LICENSE16
-rw-r--r--node_modules/inherits/README.md42
-rw-r--r--node_modules/inherits/inherits.js9
-rw-r--r--node_modules/inherits/inherits_browser.js27
-rw-r--r--node_modules/inherits/package.json65
-rw-r--r--node_modules/is-arrayish/.editorconfig18
-rw-r--r--node_modules/is-arrayish/.istanbul.yml4
-rw-r--r--node_modules/is-arrayish/.npmignore5
-rw-r--r--node_modules/is-arrayish/.travis.yml17
-rw-r--r--node_modules/is-arrayish/LICENSE21
-rw-r--r--node_modules/is-arrayish/README.md16
-rw-r--r--node_modules/is-arrayish/index.js10
-rw-r--r--node_modules/is-arrayish/package.json66
-rw-r--r--node_modules/is-finite/index.js5
-rw-r--r--node_modules/is-finite/license9
-rw-r--r--node_modules/is-finite/package.json66
-rw-r--r--node_modules/is-finite/readme.md33
-rw-r--r--node_modules/is-fullwidth-code-point/index.js46
-rw-r--r--node_modules/is-fullwidth-code-point/license21
-rw-r--r--node_modules/is-fullwidth-code-point/package.json77
-rw-r--r--node_modules/is-fullwidth-code-point/readme.md39
-rw-r--r--node_modules/is-typedarray/LICENSE.md18
-rw-r--r--node_modules/is-typedarray/README.md16
-rw-r--r--node_modules/is-typedarray/index.js41
-rw-r--r--node_modules/is-typedarray/package.json59
-rw-r--r--node_modules/is-typedarray/test.js34
-rw-r--r--node_modules/is-utf8/LICENSE9
-rw-r--r--node_modules/is-utf8/README.md16
-rw-r--r--node_modules/is-utf8/is-utf8.js76
-rw-r--r--node_modules/is-utf8/package.json53
-rw-r--r--node_modules/isarray/.npmignore1
-rw-r--r--node_modules/isarray/.travis.yml4
-rw-r--r--node_modules/isarray/Makefile6
-rw-r--r--node_modules/isarray/README.md60
-rw-r--r--node_modules/isarray/component.json19
-rw-r--r--node_modules/isarray/index.js5
-rw-r--r--node_modules/isarray/package.json73
-rw-r--r--node_modules/isarray/test.js20
-rw-r--r--node_modules/isexe/.npmignore2
-rw-r--r--node_modules/isexe/LICENSE15
-rw-r--r--node_modules/isexe/README.md51
-rw-r--r--node_modules/isexe/index.js57
-rw-r--r--node_modules/isexe/mode.js41
-rw-r--r--node_modules/isexe/package.json60
-rw-r--r--node_modules/isexe/test/basic.js221
-rw-r--r--node_modules/isexe/windows.js42
-rw-r--r--node_modules/isstream/.jshintrc59
-rw-r--r--node_modules/isstream/.npmignore1
-rw-r--r--node_modules/isstream/.travis.yml12
-rw-r--r--node_modules/isstream/LICENSE.md11
-rw-r--r--node_modules/isstream/README.md66
-rw-r--r--node_modules/isstream/isstream.js27
-rw-r--r--node_modules/isstream/package.json61
-rw-r--r--node_modules/isstream/test.js168
-rw-r--r--node_modules/js-base64/.attic/test-moment/dankogai.js44
-rw-r--r--node_modules/js-base64/.attic/test-moment/es5.js24
-rw-r--r--node_modules/js-base64/.attic/test-moment/es6.js25
-rw-r--r--node_modules/js-base64/.attic/test-moment/index.html40
-rw-r--r--node_modules/js-base64/.attic/test-moment/large.js25
-rw-r--r--node_modules/js-base64/.attic/test-moment/moment.js4535
-rw-r--r--node_modules/js-base64/.attic/test-moment/yoshinoya.js19
-rw-r--r--node_modules/js-base64/1x1.pngbin68 -> 0 bytes
-rw-r--r--node_modules/js-base64/LICENSE.md27
-rw-r--r--node_modules/js-base64/README.md94
-rw-r--r--node_modules/js-base64/base64.html47
-rw-r--r--node_modules/js-base64/base64.js225
-rw-r--r--node_modules/js-base64/base64.min.js1
-rw-r--r--node_modules/js-base64/bower.json18
-rw-r--r--node_modules/js-base64/package.js9
-rw-r--r--node_modules/js-base64/package.json58
-rw-r--r--node_modules/js-base64/test/atob.js46
-rw-r--r--node_modules/js-base64/test/dankogai.js44
-rw-r--r--node_modules/js-base64/test/es5.js24
-rw-r--r--node_modules/js-base64/test/es6.js25
-rw-r--r--node_modules/js-base64/test/index.html40
-rw-r--r--node_modules/js-base64/test/large.js25
-rw-r--r--node_modules/js-base64/test/yoshinoya.js19
-rw-r--r--node_modules/jsbn/.npmignore2
-rw-r--r--node_modules/jsbn/LICENSE40
-rw-r--r--node_modules/jsbn/README.md175
-rw-r--r--node_modules/jsbn/example.html12
-rw-r--r--node_modules/jsbn/example.js3
-rw-r--r--node_modules/jsbn/index.js1357
-rw-r--r--node_modules/jsbn/package.json53
-rw-r--r--node_modules/json-schema-traverse/.eslintrc.yml27
-rw-r--r--node_modules/json-schema-traverse/.travis.yml8
-rw-r--r--node_modules/json-schema-traverse/LICENSE21
-rw-r--r--node_modules/json-schema-traverse/README.md83
-rw-r--r--node_modules/json-schema-traverse/index.js89
-rw-r--r--node_modules/json-schema-traverse/package.json70
-rw-r--r--node_modules/json-schema-traverse/spec/.eslintrc.yml6
-rw-r--r--node_modules/json-schema-traverse/spec/fixtures/schema.js125
-rw-r--r--node_modules/json-schema-traverse/spec/index.spec.js171
-rw-r--r--node_modules/json-schema/README.md5
-rw-r--r--node_modules/json-schema/draft-00/hyper-schema68
-rw-r--r--node_modules/json-schema/draft-00/json-ref26
-rw-r--r--node_modules/json-schema/draft-00/links33
-rw-r--r--node_modules/json-schema/draft-00/schema155
-rw-r--r--node_modules/json-schema/draft-01/hyper-schema68
-rw-r--r--node_modules/json-schema/draft-01/json-ref26
-rw-r--r--node_modules/json-schema/draft-01/links33
-rw-r--r--node_modules/json-schema/draft-01/schema155
-rw-r--r--node_modules/json-schema/draft-02/hyper-schema68
-rw-r--r--node_modules/json-schema/draft-02/json-ref26
-rw-r--r--node_modules/json-schema/draft-02/links35
-rw-r--r--node_modules/json-schema/draft-02/schema166
-rw-r--r--node_modules/json-schema/draft-03/examples/address20
-rw-r--r--node_modules/json-schema/draft-03/examples/calendar53
-rw-r--r--node_modules/json-schema/draft-03/examples/card105
-rw-r--r--node_modules/json-schema/draft-03/examples/geo8
-rw-r--r--node_modules/json-schema/draft-03/examples/interfaces23
-rw-r--r--node_modules/json-schema/draft-03/hyper-schema60
-rw-r--r--node_modules/json-schema/draft-03/json-ref26
-rw-r--r--node_modules/json-schema/draft-03/links35
-rw-r--r--node_modules/json-schema/draft-03/schema174
-rw-r--r--node_modules/json-schema/draft-04/hyper-schema60
-rw-r--r--node_modules/json-schema/draft-04/links41
-rw-r--r--node_modules/json-schema/draft-04/schema189
-rw-r--r--node_modules/json-schema/draft-zyp-json-schema-03.xml1120
-rw-r--r--node_modules/json-schema/draft-zyp-json-schema-04.xml1072
-rw-r--r--node_modules/json-schema/lib/links.js66
-rw-r--r--node_modules/json-schema/lib/validate.js273
-rw-r--r--node_modules/json-schema/package.json71
-rw-r--r--node_modules/json-schema/test/tests.js95
-rw-r--r--node_modules/json-stringify-safe/.npmignore1
-rw-r--r--node_modules/json-stringify-safe/CHANGELOG.md14
-rw-r--r--node_modules/json-stringify-safe/LICENSE15
-rw-r--r--node_modules/json-stringify-safe/Makefile35
-rw-r--r--node_modules/json-stringify-safe/README.md52
-rw-r--r--node_modules/json-stringify-safe/package.json66
-rw-r--r--node_modules/json-stringify-safe/stringify.js27
-rw-r--r--node_modules/json-stringify-safe/test/mocha.opts2
-rw-r--r--node_modules/json-stringify-safe/test/stringify_test.js246
-rw-r--r--node_modules/jsprim/CHANGES.md49
-rw-r--r--node_modules/jsprim/CONTRIBUTING.md19
-rw-r--r--node_modules/jsprim/LICENSE19
-rw-r--r--node_modules/jsprim/README.md287
-rw-r--r--node_modules/jsprim/lib/jsprim.js735
-rw-r--r--node_modules/jsprim/package.json49
-rw-r--r--node_modules/load-json-file/index.js21
-rw-r--r--node_modules/load-json-file/license21
-rw-r--r--node_modules/load-json-file/package.json78
-rw-r--r--node_modules/load-json-file/readme.md45
-rw-r--r--node_modules/locate-path/index.js24
-rw-r--r--node_modules/locate-path/license9
-rw-r--r--node_modules/locate-path/node_modules/path-exists/index.js17
-rw-r--r--node_modules/locate-path/node_modules/path-exists/license21
-rw-r--r--node_modules/locate-path/node_modules/path-exists/package.json72
-rw-r--r--node_modules/locate-path/node_modules/path-exists/readme.md50
-rw-r--r--node_modules/locate-path/package.json76
-rw-r--r--node_modules/locate-path/readme.md99
-rw-r--r--node_modules/lodash/LICENSE47
-rw-r--r--node_modules/lodash/README.md39
-rw-r--r--node_modules/lodash/_DataView.js7
-rw-r--r--node_modules/lodash/_Hash.js32
-rw-r--r--node_modules/lodash/_LazyWrapper.js28
-rw-r--r--node_modules/lodash/_ListCache.js32
-rw-r--r--node_modules/lodash/_LodashWrapper.js22
-rw-r--r--node_modules/lodash/_Map.js7
-rw-r--r--node_modules/lodash/_MapCache.js32
-rw-r--r--node_modules/lodash/_Promise.js7
-rw-r--r--node_modules/lodash/_Set.js7
-rw-r--r--node_modules/lodash/_SetCache.js27
-rw-r--r--node_modules/lodash/_Stack.js27
-rw-r--r--node_modules/lodash/_Symbol.js6
-rw-r--r--node_modules/lodash/_Uint8Array.js6
-rw-r--r--node_modules/lodash/_WeakMap.js7
-rw-r--r--node_modules/lodash/_apply.js21
-rw-r--r--node_modules/lodash/_arrayAggregator.js22
-rw-r--r--node_modules/lodash/_arrayEach.js22
-rw-r--r--node_modules/lodash/_arrayEachRight.js21
-rw-r--r--node_modules/lodash/_arrayEvery.js23
-rw-r--r--node_modules/lodash/_arrayFilter.js25
-rw-r--r--node_modules/lodash/_arrayIncludes.js17
-rw-r--r--node_modules/lodash/_arrayIncludesWith.js22
-rw-r--r--node_modules/lodash/_arrayLikeKeys.js49
-rw-r--r--node_modules/lodash/_arrayMap.js21
-rw-r--r--node_modules/lodash/_arrayPush.js20
-rw-r--r--node_modules/lodash/_arrayReduce.js26
-rw-r--r--node_modules/lodash/_arrayReduceRight.js24
-rw-r--r--node_modules/lodash/_arraySample.js15
-rw-r--r--node_modules/lodash/_arraySampleSize.js17
-rw-r--r--node_modules/lodash/_arrayShuffle.js15
-rw-r--r--node_modules/lodash/_arraySome.js23
-rw-r--r--node_modules/lodash/_asciiSize.js12
-rw-r--r--node_modules/lodash/_asciiToArray.js12
-rw-r--r--node_modules/lodash/_asciiWords.js15
-rw-r--r--node_modules/lodash/_assignMergeValue.js20
-rw-r--r--node_modules/lodash/_assignValue.js28
-rw-r--r--node_modules/lodash/_assocIndexOf.js21
-rw-r--r--node_modules/lodash/_baseAggregator.js21
-rw-r--r--node_modules/lodash/_baseAssign.js17
-rw-r--r--node_modules/lodash/_baseAssignIn.js17
-rw-r--r--node_modules/lodash/_baseAssignValue.js25
-rw-r--r--node_modules/lodash/_baseAt.js23
-rw-r--r--node_modules/lodash/_baseClamp.js22
-rw-r--r--node_modules/lodash/_baseClone.js165
-rw-r--r--node_modules/lodash/_baseConforms.js18
-rw-r--r--node_modules/lodash/_baseConformsTo.js27
-rw-r--r--node_modules/lodash/_baseCreate.js30
-rw-r--r--node_modules/lodash/_baseDelay.js21
-rw-r--r--node_modules/lodash/_baseDifference.js67
-rw-r--r--node_modules/lodash/_baseEach.js14
-rw-r--r--node_modules/lodash/_baseEachRight.js14
-rw-r--r--node_modules/lodash/_baseEvery.js21
-rw-r--r--node_modules/lodash/_baseExtremum.js32
-rw-r--r--node_modules/lodash/_baseFill.js32
-rw-r--r--node_modules/lodash/_baseFilter.js21
-rw-r--r--node_modules/lodash/_baseFindIndex.js24
-rw-r--r--node_modules/lodash/_baseFindKey.js23
-rw-r--r--node_modules/lodash/_baseFlatten.js38
-rw-r--r--node_modules/lodash/_baseFor.js16
-rw-r--r--node_modules/lodash/_baseForOwn.js16
-rw-r--r--node_modules/lodash/_baseForOwnRight.js16
-rw-r--r--node_modules/lodash/_baseForRight.js15
-rw-r--r--node_modules/lodash/_baseFunctions.js19
-rw-r--r--node_modules/lodash/_baseGet.js24
-rw-r--r--node_modules/lodash/_baseGetAllKeys.js20
-rw-r--r--node_modules/lodash/_baseGetTag.js28
-rw-r--r--node_modules/lodash/_baseGt.js14
-rw-r--r--node_modules/lodash/_baseHas.js19
-rw-r--r--node_modules/lodash/_baseHasIn.js13
-rw-r--r--node_modules/lodash/_baseInRange.js18
-rw-r--r--node_modules/lodash/_baseIndexOf.js20
-rw-r--r--node_modules/lodash/_baseIndexOfWith.js23
-rw-r--r--node_modules/lodash/_baseIntersection.js74
-rw-r--r--node_modules/lodash/_baseInverter.js21
-rw-r--r--node_modules/lodash/_baseInvoke.js24
-rw-r--r--node_modules/lodash/_baseIsArguments.js18
-rw-r--r--node_modules/lodash/_baseIsArrayBuffer.js17
-rw-r--r--node_modules/lodash/_baseIsDate.js18
-rw-r--r--node_modules/lodash/_baseIsEqual.js28
-rw-r--r--node_modules/lodash/_baseIsEqualDeep.js83
-rw-r--r--node_modules/lodash/_baseIsMap.js18
-rw-r--r--node_modules/lodash/_baseIsMatch.js62
-rw-r--r--node_modules/lodash/_baseIsNaN.js12
-rw-r--r--node_modules/lodash/_baseIsNative.js47
-rw-r--r--node_modules/lodash/_baseIsRegExp.js18
-rw-r--r--node_modules/lodash/_baseIsSet.js18
-rw-r--r--node_modules/lodash/_baseIsTypedArray.js60
-rw-r--r--node_modules/lodash/_baseIteratee.js31
-rw-r--r--node_modules/lodash/_baseKeys.js30
-rw-r--r--node_modules/lodash/_baseKeysIn.js33
-rw-r--r--node_modules/lodash/_baseLodash.js10
-rw-r--r--node_modules/lodash/_baseLt.js14
-rw-r--r--node_modules/lodash/_baseMap.js22
-rw-r--r--node_modules/lodash/_baseMatches.js22
-rw-r--r--node_modules/lodash/_baseMatchesProperty.js33
-rw-r--r--node_modules/lodash/_baseMean.js20
-rw-r--r--node_modules/lodash/_baseMerge.js42
-rw-r--r--node_modules/lodash/_baseMergeDeep.js94
-rw-r--r--node_modules/lodash/_baseNth.js20
-rw-r--r--node_modules/lodash/_baseOrderBy.js34
-rw-r--r--node_modules/lodash/_basePick.js19
-rw-r--r--node_modules/lodash/_basePickBy.js30
-rw-r--r--node_modules/lodash/_baseProperty.js14
-rw-r--r--node_modules/lodash/_basePropertyDeep.js16
-rw-r--r--node_modules/lodash/_basePropertyOf.js14
-rw-r--r--node_modules/lodash/_basePullAll.js51
-rw-r--r--node_modules/lodash/_basePullAt.js37
-rw-r--r--node_modules/lodash/_baseRandom.js18
-rw-r--r--node_modules/lodash/_baseRange.js28
-rw-r--r--node_modules/lodash/_baseReduce.js23
-rw-r--r--node_modules/lodash/_baseRepeat.js35
-rw-r--r--node_modules/lodash/_baseRest.js17
-rw-r--r--node_modules/lodash/_baseSample.js15
-rw-r--r--node_modules/lodash/_baseSampleSize.js18
-rw-r--r--node_modules/lodash/_baseSet.js47
-rw-r--r--node_modules/lodash/_baseSetData.js17
-rw-r--r--node_modules/lodash/_baseSetToString.js22
-rw-r--r--node_modules/lodash/_baseShuffle.js15
-rw-r--r--node_modules/lodash/_baseSlice.js31
-rw-r--r--node_modules/lodash/_baseSome.js22
-rw-r--r--node_modules/lodash/_baseSortBy.js21
-rw-r--r--node_modules/lodash/_baseSortedIndex.js42
-rw-r--r--node_modules/lodash/_baseSortedIndexBy.js64
-rw-r--r--node_modules/lodash/_baseSortedUniq.js30
-rw-r--r--node_modules/lodash/_baseSum.js24
-rw-r--r--node_modules/lodash/_baseTimes.js20
-rw-r--r--node_modules/lodash/_baseToNumber.js24
-rw-r--r--node_modules/lodash/_baseToPairs.js18
-rw-r--r--node_modules/lodash/_baseToString.js37
-rw-r--r--node_modules/lodash/_baseUnary.js14
-rw-r--r--node_modules/lodash/_baseUniq.js72
-rw-r--r--node_modules/lodash/_baseUnset.js20
-rw-r--r--node_modules/lodash/_baseUpdate.js18
-rw-r--r--node_modules/lodash/_baseValues.js19
-rw-r--r--node_modules/lodash/_baseWhile.js26
-rw-r--r--node_modules/lodash/_baseWrapperValue.js25
-rw-r--r--node_modules/lodash/_baseXor.js36
-rw-r--r--node_modules/lodash/_baseZipObject.js23
-rw-r--r--node_modules/lodash/_cacheHas.js13
-rw-r--r--node_modules/lodash/_castArrayLikeObject.js14
-rw-r--r--node_modules/lodash/_castFunction.js14
-rw-r--r--node_modules/lodash/_castPath.js21
-rw-r--r--node_modules/lodash/_castRest.js14
-rw-r--r--node_modules/lodash/_castSlice.js18
-rw-r--r--node_modules/lodash/_charsEndIndex.js19
-rw-r--r--node_modules/lodash/_charsStartIndex.js20
-rw-r--r--node_modules/lodash/_cloneArrayBuffer.js16
-rw-r--r--node_modules/lodash/_cloneBuffer.js35
-rw-r--r--node_modules/lodash/_cloneDataView.js16
-rw-r--r--node_modules/lodash/_cloneRegExp.js17
-rw-r--r--node_modules/lodash/_cloneSymbol.js18
-rw-r--r--node_modules/lodash/_cloneTypedArray.js16
-rw-r--r--node_modules/lodash/_compareAscending.js41
-rw-r--r--node_modules/lodash/_compareMultiple.js44
-rw-r--r--node_modules/lodash/_composeArgs.js39
-rw-r--r--node_modules/lodash/_composeArgsRight.js41
-rw-r--r--node_modules/lodash/_copyArray.js20
-rw-r--r--node_modules/lodash/_copyObject.js40
-rw-r--r--node_modules/lodash/_copySymbols.js16
-rw-r--r--node_modules/lodash/_copySymbolsIn.js16
-rw-r--r--node_modules/lodash/_coreJsData.js6
-rw-r--r--node_modules/lodash/_countHolders.js21
-rw-r--r--node_modules/lodash/_createAggregator.js23
-rw-r--r--node_modules/lodash/_createAssigner.js37
-rw-r--r--node_modules/lodash/_createBaseEach.js32
-rw-r--r--node_modules/lodash/_createBaseFor.js25
-rw-r--r--node_modules/lodash/_createBind.js28
-rw-r--r--node_modules/lodash/_createCaseFirst.js33
-rw-r--r--node_modules/lodash/_createCompounder.js24
-rw-r--r--node_modules/lodash/_createCtor.js37
-rw-r--r--node_modules/lodash/_createCurry.js46
-rw-r--r--node_modules/lodash/_createFind.js25
-rw-r--r--node_modules/lodash/_createFlow.js78
-rw-r--r--node_modules/lodash/_createHybrid.js92
-rw-r--r--node_modules/lodash/_createInverter.js17
-rw-r--r--node_modules/lodash/_createMathOperation.js38
-rw-r--r--node_modules/lodash/_createOver.js27
-rw-r--r--node_modules/lodash/_createPadding.js33
-rw-r--r--node_modules/lodash/_createPartial.js43
-rw-r--r--node_modules/lodash/_createRange.js30
-rw-r--r--node_modules/lodash/_createRecurry.js56
-rw-r--r--node_modules/lodash/_createRelationalOperation.js20
-rw-r--r--node_modules/lodash/_createRound.js35
-rw-r--r--node_modules/lodash/_createSet.js19
-rw-r--r--node_modules/lodash/_createToPairs.js30
-rw-r--r--node_modules/lodash/_createWrap.js106
-rw-r--r--node_modules/lodash/_customDefaultsAssignIn.js29
-rw-r--r--node_modules/lodash/_customDefaultsMerge.js28
-rw-r--r--node_modules/lodash/_customOmitClone.js16
-rw-r--r--node_modules/lodash/_deburrLetter.js71
-rw-r--r--node_modules/lodash/_defineProperty.js11
-rw-r--r--node_modules/lodash/_equalArrays.js83
-rw-r--r--node_modules/lodash/_equalByTag.js112
-rw-r--r--node_modules/lodash/_equalObjects.js89
-rw-r--r--node_modules/lodash/_escapeHtmlChar.js21
-rw-r--r--node_modules/lodash/_escapeStringChar.js22
-rw-r--r--node_modules/lodash/_flatRest.js16
-rw-r--r--node_modules/lodash/_freeGlobal.js4
-rw-r--r--node_modules/lodash/_getAllKeys.js16
-rw-r--r--node_modules/lodash/_getAllKeysIn.js17
-rw-r--r--node_modules/lodash/_getData.js15
-rw-r--r--node_modules/lodash/_getFuncName.js31
-rw-r--r--node_modules/lodash/_getHolder.js13
-rw-r--r--node_modules/lodash/_getMapData.js18
-rw-r--r--node_modules/lodash/_getMatchData.js24
-rw-r--r--node_modules/lodash/_getNative.js17
-rw-r--r--node_modules/lodash/_getPrototype.js6
-rw-r--r--node_modules/lodash/_getRawTag.js46
-rw-r--r--node_modules/lodash/_getSymbols.js30
-rw-r--r--node_modules/lodash/_getSymbolsIn.js25
-rw-r--r--node_modules/lodash/_getTag.js58
-rw-r--r--node_modules/lodash/_getValue.js13
-rw-r--r--node_modules/lodash/_getView.js33
-rw-r--r--node_modules/lodash/_getWrapDetails.js17
-rw-r--r--node_modules/lodash/_hasPath.js39
-rw-r--r--node_modules/lodash/_hasUnicode.js26
-rw-r--r--node_modules/lodash/_hasUnicodeWord.js15
-rw-r--r--node_modules/lodash/_hashClear.js15
-rw-r--r--node_modules/lodash/_hashDelete.js17
-rw-r--r--node_modules/lodash/_hashGet.js30
-rw-r--r--node_modules/lodash/_hashHas.js23
-rw-r--r--node_modules/lodash/_hashSet.js23
-rw-r--r--node_modules/lodash/_initCloneArray.js26
-rw-r--r--node_modules/lodash/_initCloneByTag.js77
-rw-r--r--node_modules/lodash/_initCloneObject.js18
-rw-r--r--node_modules/lodash/_insertWrapDetails.js23
-rw-r--r--node_modules/lodash/_isFlattenable.js20
-rw-r--r--node_modules/lodash/_isIndex.js25
-rw-r--r--node_modules/lodash/_isIterateeCall.js30
-rw-r--r--node_modules/lodash/_isKey.js29
-rw-r--r--node_modules/lodash/_isKeyable.js15
-rw-r--r--node_modules/lodash/_isLaziable.js28
-rw-r--r--node_modules/lodash/_isMaskable.js14
-rw-r--r--node_modules/lodash/_isMasked.js20
-rw-r--r--node_modules/lodash/_isPrototype.js18
-rw-r--r--node_modules/lodash/_isStrictComparable.js15
-rw-r--r--node_modules/lodash/_iteratorToArray.js18
-rw-r--r--node_modules/lodash/_lazyClone.js23
-rw-r--r--node_modules/lodash/_lazyReverse.js23
-rw-r--r--node_modules/lodash/_lazyValue.js69
-rw-r--r--node_modules/lodash/_listCacheClear.js13
-rw-r--r--node_modules/lodash/_listCacheDelete.js35
-rw-r--r--node_modules/lodash/_listCacheGet.js19
-rw-r--r--node_modules/lodash/_listCacheHas.js16
-rw-r--r--node_modules/lodash/_listCacheSet.js26
-rw-r--r--node_modules/lodash/_mapCacheClear.js21
-rw-r--r--node_modules/lodash/_mapCacheDelete.js18
-rw-r--r--node_modules/lodash/_mapCacheGet.js16
-rw-r--r--node_modules/lodash/_mapCacheHas.js16
-rw-r--r--node_modules/lodash/_mapCacheSet.js22
-rw-r--r--node_modules/lodash/_mapToArray.js18
-rw-r--r--node_modules/lodash/_matchesStrictComparable.js20
-rw-r--r--node_modules/lodash/_memoizeCapped.js26
-rw-r--r--node_modules/lodash/_mergeData.js90
-rw-r--r--node_modules/lodash/_metaMap.js6
-rw-r--r--node_modules/lodash/_nativeCreate.js6
-rw-r--r--node_modules/lodash/_nativeKeys.js6
-rw-r--r--node_modules/lodash/_nativeKeysIn.js20
-rw-r--r--node_modules/lodash/_nodeUtil.js30
-rw-r--r--node_modules/lodash/_objectToString.js22
-rw-r--r--node_modules/lodash/_overArg.js15
-rw-r--r--node_modules/lodash/_overRest.js36
-rw-r--r--node_modules/lodash/_parent.js16
-rw-r--r--node_modules/lodash/_reEscape.js4
-rw-r--r--node_modules/lodash/_reEvaluate.js4
-rw-r--r--node_modules/lodash/_reInterpolate.js4
-rw-r--r--node_modules/lodash/_realNames.js4
-rw-r--r--node_modules/lodash/_reorder.js29
-rw-r--r--node_modules/lodash/_replaceHolders.js29
-rw-r--r--node_modules/lodash/_root.js9
-rw-r--r--node_modules/lodash/_safeGet.js21
-rw-r--r--node_modules/lodash/_setCacheAdd.js19
-rw-r--r--node_modules/lodash/_setCacheHas.js14
-rw-r--r--node_modules/lodash/_setData.js20
-rw-r--r--node_modules/lodash/_setToArray.js18
-rw-r--r--node_modules/lodash/_setToPairs.js18
-rw-r--r--node_modules/lodash/_setToString.js14
-rw-r--r--node_modules/lodash/_setWrapToString.js21
-rw-r--r--node_modules/lodash/_shortOut.js37
-rw-r--r--node_modules/lodash/_shuffleSelf.js28
-rw-r--r--node_modules/lodash/_stackClear.js15
-rw-r--r--node_modules/lodash/_stackDelete.js18
-rw-r--r--node_modules/lodash/_stackGet.js14
-rw-r--r--node_modules/lodash/_stackHas.js14
-rw-r--r--node_modules/lodash/_stackSet.js34
-rw-r--r--node_modules/lodash/_strictIndexOf.js23
-rw-r--r--node_modules/lodash/_strictLastIndexOf.js21
-rw-r--r--node_modules/lodash/_stringSize.js18
-rw-r--r--node_modules/lodash/_stringToArray.js18
-rw-r--r--node_modules/lodash/_stringToPath.js27
-rw-r--r--node_modules/lodash/_toKey.js21
-rw-r--r--node_modules/lodash/_toSource.js26
-rw-r--r--node_modules/lodash/_unescapeHtmlChar.js21
-rw-r--r--node_modules/lodash/_unicodeSize.js44
-rw-r--r--node_modules/lodash/_unicodeToArray.js40
-rw-r--r--node_modules/lodash/_unicodeWords.js69
-rw-r--r--node_modules/lodash/_updateWrapDetails.js46
-rw-r--r--node_modules/lodash/_wrapperClone.js23
-rw-r--r--node_modules/lodash/add.js22
-rw-r--r--node_modules/lodash/after.js42
-rw-r--r--node_modules/lodash/array.js67
-rw-r--r--node_modules/lodash/ary.js29
-rw-r--r--node_modules/lodash/assign.js58
-rw-r--r--node_modules/lodash/assignIn.js40
-rw-r--r--node_modules/lodash/assignInWith.js38
-rw-r--r--node_modules/lodash/assignWith.js37
-rw-r--r--node_modules/lodash/at.js23
-rw-r--r--node_modules/lodash/attempt.js35
-rw-r--r--node_modules/lodash/before.js40
-rw-r--r--node_modules/lodash/bind.js57
-rw-r--r--node_modules/lodash/bindAll.js41
-rw-r--r--node_modules/lodash/bindKey.js68
-rw-r--r--node_modules/lodash/camelCase.js29
-rw-r--r--node_modules/lodash/capitalize.js23
-rw-r--r--node_modules/lodash/castArray.js44
-rw-r--r--node_modules/lodash/ceil.js26
-rw-r--r--node_modules/lodash/chain.js38
-rw-r--r--node_modules/lodash/chunk.js50
-rw-r--r--node_modules/lodash/clamp.js39
-rw-r--r--node_modules/lodash/clone.js36
-rw-r--r--node_modules/lodash/cloneDeep.js29
-rw-r--r--node_modules/lodash/cloneDeepWith.js40
-rw-r--r--node_modules/lodash/cloneWith.js42
-rw-r--r--node_modules/lodash/collection.js30
-rw-r--r--node_modules/lodash/commit.js33
-rw-r--r--node_modules/lodash/compact.js31
-rw-r--r--node_modules/lodash/concat.js43
-rw-r--r--node_modules/lodash/cond.js60
-rw-r--r--node_modules/lodash/conforms.js35
-rw-r--r--node_modules/lodash/conformsTo.js32
-rw-r--r--node_modules/lodash/constant.js26
-rw-r--r--node_modules/lodash/core.js3854
-rw-r--r--node_modules/lodash/core.min.js29
-rw-r--r--node_modules/lodash/countBy.js40
-rw-r--r--node_modules/lodash/create.js43
-rw-r--r--node_modules/lodash/curry.js57
-rw-r--r--node_modules/lodash/curryRight.js54
-rw-r--r--node_modules/lodash/date.js3
-rw-r--r--node_modules/lodash/debounce.js191
-rw-r--r--node_modules/lodash/deburr.js45
-rw-r--r--node_modules/lodash/defaultTo.js25
-rw-r--r--node_modules/lodash/defaults.js64
-rw-r--r--node_modules/lodash/defaultsDeep.js30
-rw-r--r--node_modules/lodash/defer.js26
-rw-r--r--node_modules/lodash/delay.js28
-rw-r--r--node_modules/lodash/difference.js33
-rw-r--r--node_modules/lodash/differenceBy.js44
-rw-r--r--node_modules/lodash/differenceWith.js40
-rw-r--r--node_modules/lodash/divide.js22
-rw-r--r--node_modules/lodash/drop.js38
-rw-r--r--node_modules/lodash/dropRight.js39
-rw-r--r--node_modules/lodash/dropRightWhile.js45
-rw-r--r--node_modules/lodash/dropWhile.js45
-rw-r--r--node_modules/lodash/each.js1
-rw-r--r--node_modules/lodash/eachRight.js1
-rw-r--r--node_modules/lodash/endsWith.js43
-rw-r--r--node_modules/lodash/entries.js1
-rw-r--r--node_modules/lodash/entriesIn.js1
-rw-r--r--node_modules/lodash/eq.js37
-rw-r--r--node_modules/lodash/escape.js43
-rw-r--r--node_modules/lodash/escapeRegExp.js32
-rw-r--r--node_modules/lodash/every.js56
-rw-r--r--node_modules/lodash/extend.js1
-rw-r--r--node_modules/lodash/extendWith.js1
-rw-r--r--node_modules/lodash/fill.js45
-rw-r--r--node_modules/lodash/filter.js48
-rw-r--r--node_modules/lodash/find.js42
-rw-r--r--node_modules/lodash/findIndex.js55
-rw-r--r--node_modules/lodash/findKey.js44
-rw-r--r--node_modules/lodash/findLast.js25
-rw-r--r--node_modules/lodash/findLastIndex.js59
-rw-r--r--node_modules/lodash/findLastKey.js44
-rw-r--r--node_modules/lodash/first.js1
-rw-r--r--node_modules/lodash/flatMap.js29
-rw-r--r--node_modules/lodash/flatMapDeep.js31
-rw-r--r--node_modules/lodash/flatMapDepth.js31
-rw-r--r--node_modules/lodash/flatten.js22
-rw-r--r--node_modules/lodash/flattenDeep.js25
-rw-r--r--node_modules/lodash/flattenDepth.js33
-rw-r--r--node_modules/lodash/flip.js28
-rw-r--r--node_modules/lodash/floor.js26
-rw-r--r--node_modules/lodash/flow.js27
-rw-r--r--node_modules/lodash/flowRight.js26
-rw-r--r--node_modules/lodash/forEach.js41
-rw-r--r--node_modules/lodash/forEachRight.js31
-rw-r--r--node_modules/lodash/forIn.js39
-rw-r--r--node_modules/lodash/forInRight.js37
-rw-r--r--node_modules/lodash/forOwn.js36
-rw-r--r--node_modules/lodash/forOwnRight.js34
-rw-r--r--node_modules/lodash/fp.js2
-rw-r--r--node_modules/lodash/fp/F.js1
-rw-r--r--node_modules/lodash/fp/T.js1
-rw-r--r--node_modules/lodash/fp/__.js1
-rw-r--r--node_modules/lodash/fp/_baseConvert.js569
-rw-r--r--node_modules/lodash/fp/_convertBrowser.js18
-rw-r--r--node_modules/lodash/fp/_falseOptions.js7
-rw-r--r--node_modules/lodash/fp/_mapping.js358
-rw-r--r--node_modules/lodash/fp/_util.js16
-rw-r--r--node_modules/lodash/fp/add.js5
-rw-r--r--node_modules/lodash/fp/after.js5
-rw-r--r--node_modules/lodash/fp/all.js1
-rw-r--r--node_modules/lodash/fp/allPass.js1
-rw-r--r--node_modules/lodash/fp/always.js1
-rw-r--r--node_modules/lodash/fp/any.js1
-rw-r--r--node_modules/lodash/fp/anyPass.js1
-rw-r--r--node_modules/lodash/fp/apply.js1
-rw-r--r--node_modules/lodash/fp/array.js2
-rw-r--r--node_modules/lodash/fp/ary.js5
-rw-r--r--node_modules/lodash/fp/assign.js5
-rw-r--r--node_modules/lodash/fp/assignAll.js5
-rw-r--r--node_modules/lodash/fp/assignAllWith.js5
-rw-r--r--node_modules/lodash/fp/assignIn.js5
-rw-r--r--node_modules/lodash/fp/assignInAll.js5
-rw-r--r--node_modules/lodash/fp/assignInAllWith.js5
-rw-r--r--node_modules/lodash/fp/assignInWith.js5
-rw-r--r--node_modules/lodash/fp/assignWith.js5
-rw-r--r--node_modules/lodash/fp/assoc.js1
-rw-r--r--node_modules/lodash/fp/assocPath.js1
-rw-r--r--node_modules/lodash/fp/at.js5
-rw-r--r--node_modules/lodash/fp/attempt.js5
-rw-r--r--node_modules/lodash/fp/before.js5
-rw-r--r--node_modules/lodash/fp/bind.js5
-rw-r--r--node_modules/lodash/fp/bindAll.js5
-rw-r--r--node_modules/lodash/fp/bindKey.js5
-rw-r--r--node_modules/lodash/fp/camelCase.js5
-rw-r--r--node_modules/lodash/fp/capitalize.js5
-rw-r--r--node_modules/lodash/fp/castArray.js5
-rw-r--r--node_modules/lodash/fp/ceil.js5
-rw-r--r--node_modules/lodash/fp/chain.js5
-rw-r--r--node_modules/lodash/fp/chunk.js5
-rw-r--r--node_modules/lodash/fp/clamp.js5
-rw-r--r--node_modules/lodash/fp/clone.js5
-rw-r--r--node_modules/lodash/fp/cloneDeep.js5
-rw-r--r--node_modules/lodash/fp/cloneDeepWith.js5
-rw-r--r--node_modules/lodash/fp/cloneWith.js5
-rw-r--r--node_modules/lodash/fp/collection.js2
-rw-r--r--node_modules/lodash/fp/commit.js5
-rw-r--r--node_modules/lodash/fp/compact.js5
-rw-r--r--node_modules/lodash/fp/complement.js1
-rw-r--r--node_modules/lodash/fp/compose.js1
-rw-r--r--node_modules/lodash/fp/concat.js5
-rw-r--r--node_modules/lodash/fp/cond.js5
-rw-r--r--node_modules/lodash/fp/conforms.js1
-rw-r--r--node_modules/lodash/fp/conformsTo.js5
-rw-r--r--node_modules/lodash/fp/constant.js5
-rw-r--r--node_modules/lodash/fp/contains.js1
-rw-r--r--node_modules/lodash/fp/convert.js18
-rw-r--r--node_modules/lodash/fp/countBy.js5
-rw-r--r--node_modules/lodash/fp/create.js5
-rw-r--r--node_modules/lodash/fp/curry.js5
-rw-r--r--node_modules/lodash/fp/curryN.js5
-rw-r--r--node_modules/lodash/fp/curryRight.js5
-rw-r--r--node_modules/lodash/fp/curryRightN.js5
-rw-r--r--node_modules/lodash/fp/date.js2
-rw-r--r--node_modules/lodash/fp/debounce.js5
-rw-r--r--node_modules/lodash/fp/deburr.js5
-rw-r--r--node_modules/lodash/fp/defaultTo.js5
-rw-r--r--node_modules/lodash/fp/defaults.js5
-rw-r--r--node_modules/lodash/fp/defaultsAll.js5
-rw-r--r--node_modules/lodash/fp/defaultsDeep.js5
-rw-r--r--node_modules/lodash/fp/defaultsDeepAll.js5
-rw-r--r--node_modules/lodash/fp/defer.js5
-rw-r--r--node_modules/lodash/fp/delay.js5
-rw-r--r--node_modules/lodash/fp/difference.js5
-rw-r--r--node_modules/lodash/fp/differenceBy.js5
-rw-r--r--node_modules/lodash/fp/differenceWith.js5
-rw-r--r--node_modules/lodash/fp/dissoc.js1
-rw-r--r--node_modules/lodash/fp/dissocPath.js1
-rw-r--r--node_modules/lodash/fp/divide.js5
-rw-r--r--node_modules/lodash/fp/drop.js5
-rw-r--r--node_modules/lodash/fp/dropLast.js1
-rw-r--r--node_modules/lodash/fp/dropLastWhile.js1
-rw-r--r--node_modules/lodash/fp/dropRight.js5
-rw-r--r--node_modules/lodash/fp/dropRightWhile.js5
-rw-r--r--node_modules/lodash/fp/dropWhile.js5
-rw-r--r--node_modules/lodash/fp/each.js1
-rw-r--r--node_modules/lodash/fp/eachRight.js1
-rw-r--r--node_modules/lodash/fp/endsWith.js5
-rw-r--r--node_modules/lodash/fp/entries.js1
-rw-r--r--node_modules/lodash/fp/entriesIn.js1
-rw-r--r--node_modules/lodash/fp/eq.js5
-rw-r--r--node_modules/lodash/fp/equals.js1
-rw-r--r--node_modules/lodash/fp/escape.js5
-rw-r--r--node_modules/lodash/fp/escapeRegExp.js5
-rw-r--r--node_modules/lodash/fp/every.js5
-rw-r--r--node_modules/lodash/fp/extend.js1
-rw-r--r--node_modules/lodash/fp/extendAll.js1
-rw-r--r--node_modules/lodash/fp/extendAllWith.js1
-rw-r--r--node_modules/lodash/fp/extendWith.js1
-rw-r--r--node_modules/lodash/fp/fill.js5
-rw-r--r--node_modules/lodash/fp/filter.js5
-rw-r--r--node_modules/lodash/fp/find.js5
-rw-r--r--node_modules/lodash/fp/findFrom.js5
-rw-r--r--node_modules/lodash/fp/findIndex.js5
-rw-r--r--node_modules/lodash/fp/findIndexFrom.js5
-rw-r--r--node_modules/lodash/fp/findKey.js5
-rw-r--r--node_modules/lodash/fp/findLast.js5
-rw-r--r--node_modules/lodash/fp/findLastFrom.js5
-rw-r--r--node_modules/lodash/fp/findLastIndex.js5
-rw-r--r--node_modules/lodash/fp/findLastIndexFrom.js5
-rw-r--r--node_modules/lodash/fp/findLastKey.js5
-rw-r--r--node_modules/lodash/fp/first.js1
-rw-r--r--node_modules/lodash/fp/flatMap.js5
-rw-r--r--node_modules/lodash/fp/flatMapDeep.js5
-rw-r--r--node_modules/lodash/fp/flatMapDepth.js5
-rw-r--r--node_modules/lodash/fp/flatten.js5
-rw-r--r--node_modules/lodash/fp/flattenDeep.js5
-rw-r--r--node_modules/lodash/fp/flattenDepth.js5
-rw-r--r--node_modules/lodash/fp/flip.js5
-rw-r--r--node_modules/lodash/fp/floor.js5
-rw-r--r--node_modules/lodash/fp/flow.js5
-rw-r--r--node_modules/lodash/fp/flowRight.js5
-rw-r--r--node_modules/lodash/fp/forEach.js5
-rw-r--r--node_modules/lodash/fp/forEachRight.js5
-rw-r--r--node_modules/lodash/fp/forIn.js5
-rw-r--r--node_modules/lodash/fp/forInRight.js5
-rw-r--r--node_modules/lodash/fp/forOwn.js5
-rw-r--r--node_modules/lodash/fp/forOwnRight.js5
-rw-r--r--node_modules/lodash/fp/fromPairs.js5
-rw-r--r--node_modules/lodash/fp/function.js2
-rw-r--r--node_modules/lodash/fp/functions.js5
-rw-r--r--node_modules/lodash/fp/functionsIn.js5
-rw-r--r--node_modules/lodash/fp/get.js5
-rw-r--r--node_modules/lodash/fp/getOr.js5
-rw-r--r--node_modules/lodash/fp/groupBy.js5
-rw-r--r--node_modules/lodash/fp/gt.js5
-rw-r--r--node_modules/lodash/fp/gte.js5
-rw-r--r--node_modules/lodash/fp/has.js5
-rw-r--r--node_modules/lodash/fp/hasIn.js5
-rw-r--r--node_modules/lodash/fp/head.js5
-rw-r--r--node_modules/lodash/fp/identical.js1
-rw-r--r--node_modules/lodash/fp/identity.js5
-rw-r--r--node_modules/lodash/fp/inRange.js5
-rw-r--r--node_modules/lodash/fp/includes.js5
-rw-r--r--node_modules/lodash/fp/includesFrom.js5
-rw-r--r--node_modules/lodash/fp/indexBy.js1
-rw-r--r--node_modules/lodash/fp/indexOf.js5
-rw-r--r--node_modules/lodash/fp/indexOfFrom.js5
-rw-r--r--node_modules/lodash/fp/init.js1
-rw-r--r--node_modules/lodash/fp/initial.js5
-rw-r--r--node_modules/lodash/fp/intersection.js5
-rw-r--r--node_modules/lodash/fp/intersectionBy.js5
-rw-r--r--node_modules/lodash/fp/intersectionWith.js5
-rw-r--r--node_modules/lodash/fp/invert.js5
-rw-r--r--node_modules/lodash/fp/invertBy.js5
-rw-r--r--node_modules/lodash/fp/invertObj.js1
-rw-r--r--node_modules/lodash/fp/invoke.js5
-rw-r--r--node_modules/lodash/fp/invokeArgs.js5
-rw-r--r--node_modules/lodash/fp/invokeArgsMap.js5
-rw-r--r--node_modules/lodash/fp/invokeMap.js5
-rw-r--r--node_modules/lodash/fp/isArguments.js5
-rw-r--r--node_modules/lodash/fp/isArray.js5
-rw-r--r--node_modules/lodash/fp/isArrayBuffer.js5
-rw-r--r--node_modules/lodash/fp/isArrayLike.js5
-rw-r--r--node_modules/lodash/fp/isArrayLikeObject.js5
-rw-r--r--node_modules/lodash/fp/isBoolean.js5
-rw-r--r--node_modules/lodash/fp/isBuffer.js5
-rw-r--r--node_modules/lodash/fp/isDate.js5
-rw-r--r--node_modules/lodash/fp/isElement.js5
-rw-r--r--node_modules/lodash/fp/isEmpty.js5
-rw-r--r--node_modules/lodash/fp/isEqual.js5
-rw-r--r--node_modules/lodash/fp/isEqualWith.js5
-rw-r--r--node_modules/lodash/fp/isError.js5
-rw-r--r--node_modules/lodash/fp/isFinite.js5
-rw-r--r--node_modules/lodash/fp/isFunction.js5
-rw-r--r--node_modules/lodash/fp/isInteger.js5
-rw-r--r--node_modules/lodash/fp/isLength.js5
-rw-r--r--node_modules/lodash/fp/isMap.js5
-rw-r--r--node_modules/lodash/fp/isMatch.js5
-rw-r--r--node_modules/lodash/fp/isMatchWith.js5
-rw-r--r--node_modules/lodash/fp/isNaN.js5
-rw-r--r--node_modules/lodash/fp/isNative.js5
-rw-r--r--node_modules/lodash/fp/isNil.js5
-rw-r--r--node_modules/lodash/fp/isNull.js5
-rw-r--r--node_modules/lodash/fp/isNumber.js5
-rw-r--r--node_modules/lodash/fp/isObject.js5
-rw-r--r--node_modules/lodash/fp/isObjectLike.js5
-rw-r--r--node_modules/lodash/fp/isPlainObject.js5
-rw-r--r--node_modules/lodash/fp/isRegExp.js5
-rw-r--r--node_modules/lodash/fp/isSafeInteger.js5
-rw-r--r--node_modules/lodash/fp/isSet.js5
-rw-r--r--node_modules/lodash/fp/isString.js5
-rw-r--r--node_modules/lodash/fp/isSymbol.js5
-rw-r--r--node_modules/lodash/fp/isTypedArray.js5
-rw-r--r--node_modules/lodash/fp/isUndefined.js5
-rw-r--r--node_modules/lodash/fp/isWeakMap.js5
-rw-r--r--node_modules/lodash/fp/isWeakSet.js5
-rw-r--r--node_modules/lodash/fp/iteratee.js5
-rw-r--r--node_modules/lodash/fp/join.js5
-rw-r--r--node_modules/lodash/fp/juxt.js1
-rw-r--r--node_modules/lodash/fp/kebabCase.js5
-rw-r--r--node_modules/lodash/fp/keyBy.js5
-rw-r--r--node_modules/lodash/fp/keys.js5
-rw-r--r--node_modules/lodash/fp/keysIn.js5
-rw-r--r--node_modules/lodash/fp/lang.js2
-rw-r--r--node_modules/lodash/fp/last.js5
-rw-r--r--node_modules/lodash/fp/lastIndexOf.js5
-rw-r--r--node_modules/lodash/fp/lastIndexOfFrom.js5
-rw-r--r--node_modules/lodash/fp/lowerCase.js5
-rw-r--r--node_modules/lodash/fp/lowerFirst.js5
-rw-r--r--node_modules/lodash/fp/lt.js5
-rw-r--r--node_modules/lodash/fp/lte.js5
-rw-r--r--node_modules/lodash/fp/map.js5
-rw-r--r--node_modules/lodash/fp/mapKeys.js5
-rw-r--r--node_modules/lodash/fp/mapValues.js5
-rw-r--r--node_modules/lodash/fp/matches.js1
-rw-r--r--node_modules/lodash/fp/matchesProperty.js5
-rw-r--r--node_modules/lodash/fp/math.js2
-rw-r--r--node_modules/lodash/fp/max.js5
-rw-r--r--node_modules/lodash/fp/maxBy.js5
-rw-r--r--node_modules/lodash/fp/mean.js5
-rw-r--r--node_modules/lodash/fp/meanBy.js5
-rw-r--r--node_modules/lodash/fp/memoize.js5
-rw-r--r--node_modules/lodash/fp/merge.js5
-rw-r--r--node_modules/lodash/fp/mergeAll.js5
-rw-r--r--node_modules/lodash/fp/mergeAllWith.js5
-rw-r--r--node_modules/lodash/fp/mergeWith.js5
-rw-r--r--node_modules/lodash/fp/method.js5
-rw-r--r--node_modules/lodash/fp/methodOf.js5
-rw-r--r--node_modules/lodash/fp/min.js5
-rw-r--r--node_modules/lodash/fp/minBy.js5
-rw-r--r--node_modules/lodash/fp/mixin.js5
-rw-r--r--node_modules/lodash/fp/multiply.js5
-rw-r--r--node_modules/lodash/fp/nAry.js1
-rw-r--r--node_modules/lodash/fp/negate.js5
-rw-r--r--node_modules/lodash/fp/next.js5
-rw-r--r--node_modules/lodash/fp/noop.js5
-rw-r--r--node_modules/lodash/fp/now.js5
-rw-r--r--node_modules/lodash/fp/nth.js5
-rw-r--r--node_modules/lodash/fp/nthArg.js5
-rw-r--r--node_modules/lodash/fp/number.js2
-rw-r--r--node_modules/lodash/fp/object.js2
-rw-r--r--node_modules/lodash/fp/omit.js5
-rw-r--r--node_modules/lodash/fp/omitAll.js1
-rw-r--r--node_modules/lodash/fp/omitBy.js5
-rw-r--r--node_modules/lodash/fp/once.js5
-rw-r--r--node_modules/lodash/fp/orderBy.js5
-rw-r--r--node_modules/lodash/fp/over.js5
-rw-r--r--node_modules/lodash/fp/overArgs.js5
-rw-r--r--node_modules/lodash/fp/overEvery.js5
-rw-r--r--node_modules/lodash/fp/overSome.js5
-rw-r--r--node_modules/lodash/fp/pad.js5
-rw-r--r--node_modules/lodash/fp/padChars.js5
-rw-r--r--node_modules/lodash/fp/padCharsEnd.js5
-rw-r--r--node_modules/lodash/fp/padCharsStart.js5
-rw-r--r--node_modules/lodash/fp/padEnd.js5
-rw-r--r--node_modules/lodash/fp/padStart.js5
-rw-r--r--node_modules/lodash/fp/parseInt.js5
-rw-r--r--node_modules/lodash/fp/partial.js5
-rw-r--r--node_modules/lodash/fp/partialRight.js5
-rw-r--r--node_modules/lodash/fp/partition.js5
-rw-r--r--node_modules/lodash/fp/path.js1
-rw-r--r--node_modules/lodash/fp/pathEq.js1
-rw-r--r--node_modules/lodash/fp/pathOr.js1
-rw-r--r--node_modules/lodash/fp/paths.js1
-rw-r--r--node_modules/lodash/fp/pick.js5
-rw-r--r--node_modules/lodash/fp/pickAll.js1
-rw-r--r--node_modules/lodash/fp/pickBy.js5
-rw-r--r--node_modules/lodash/fp/pipe.js1
-rw-r--r--node_modules/lodash/fp/placeholder.js6
-rw-r--r--node_modules/lodash/fp/plant.js5
-rw-r--r--node_modules/lodash/fp/pluck.js1
-rw-r--r--node_modules/lodash/fp/prop.js1
-rw-r--r--node_modules/lodash/fp/propEq.js1
-rw-r--r--node_modules/lodash/fp/propOr.js1
-rw-r--r--node_modules/lodash/fp/property.js1
-rw-r--r--node_modules/lodash/fp/propertyOf.js5
-rw-r--r--node_modules/lodash/fp/props.js1
-rw-r--r--node_modules/lodash/fp/pull.js5
-rw-r--r--node_modules/lodash/fp/pullAll.js5
-rw-r--r--node_modules/lodash/fp/pullAllBy.js5
-rw-r--r--node_modules/lodash/fp/pullAllWith.js5
-rw-r--r--node_modules/lodash/fp/pullAt.js5
-rw-r--r--node_modules/lodash/fp/random.js5
-rw-r--r--node_modules/lodash/fp/range.js5
-rw-r--r--node_modules/lodash/fp/rangeRight.js5
-rw-r--r--node_modules/lodash/fp/rangeStep.js5
-rw-r--r--node_modules/lodash/fp/rangeStepRight.js5
-rw-r--r--node_modules/lodash/fp/rearg.js5
-rw-r--r--node_modules/lodash/fp/reduce.js5
-rw-r--r--node_modules/lodash/fp/reduceRight.js5
-rw-r--r--node_modules/lodash/fp/reject.js5
-rw-r--r--node_modules/lodash/fp/remove.js5
-rw-r--r--node_modules/lodash/fp/repeat.js5
-rw-r--r--node_modules/lodash/fp/replace.js5
-rw-r--r--node_modules/lodash/fp/rest.js5
-rw-r--r--node_modules/lodash/fp/restFrom.js5
-rw-r--r--node_modules/lodash/fp/result.js5
-rw-r--r--node_modules/lodash/fp/reverse.js5
-rw-r--r--node_modules/lodash/fp/round.js5
-rw-r--r--node_modules/lodash/fp/sample.js5
-rw-r--r--node_modules/lodash/fp/sampleSize.js5
-rw-r--r--node_modules/lodash/fp/seq.js2
-rw-r--r--node_modules/lodash/fp/set.js5
-rw-r--r--node_modules/lodash/fp/setWith.js5
-rw-r--r--node_modules/lodash/fp/shuffle.js5
-rw-r--r--node_modules/lodash/fp/size.js5
-rw-r--r--node_modules/lodash/fp/slice.js5
-rw-r--r--node_modules/lodash/fp/snakeCase.js5
-rw-r--r--node_modules/lodash/fp/some.js5
-rw-r--r--node_modules/lodash/fp/sortBy.js5
-rw-r--r--node_modules/lodash/fp/sortedIndex.js5
-rw-r--r--node_modules/lodash/fp/sortedIndexBy.js5
-rw-r--r--node_modules/lodash/fp/sortedIndexOf.js5
-rw-r--r--node_modules/lodash/fp/sortedLastIndex.js5
-rw-r--r--node_modules/lodash/fp/sortedLastIndexBy.js5
-rw-r--r--node_modules/lodash/fp/sortedLastIndexOf.js5
-rw-r--r--node_modules/lodash/fp/sortedUniq.js5
-rw-r--r--node_modules/lodash/fp/sortedUniqBy.js5
-rw-r--r--node_modules/lodash/fp/split.js5
-rw-r--r--node_modules/lodash/fp/spread.js5
-rw-r--r--node_modules/lodash/fp/spreadFrom.js5
-rw-r--r--node_modules/lodash/fp/startCase.js5
-rw-r--r--node_modules/lodash/fp/startsWith.js5
-rw-r--r--node_modules/lodash/fp/string.js2
-rw-r--r--node_modules/lodash/fp/stubArray.js5
-rw-r--r--node_modules/lodash/fp/stubFalse.js5
-rw-r--r--node_modules/lodash/fp/stubObject.js5
-rw-r--r--node_modules/lodash/fp/stubString.js5
-rw-r--r--node_modules/lodash/fp/stubTrue.js5
-rw-r--r--node_modules/lodash/fp/subtract.js5
-rw-r--r--node_modules/lodash/fp/sum.js5
-rw-r--r--node_modules/lodash/fp/sumBy.js5
-rw-r--r--node_modules/lodash/fp/symmetricDifference.js1
-rw-r--r--node_modules/lodash/fp/symmetricDifferenceBy.js1
-rw-r--r--node_modules/lodash/fp/symmetricDifferenceWith.js1
-rw-r--r--node_modules/lodash/fp/tail.js5
-rw-r--r--node_modules/lodash/fp/take.js5
-rw-r--r--node_modules/lodash/fp/takeLast.js1
-rw-r--r--node_modules/lodash/fp/takeLastWhile.js1
-rw-r--r--node_modules/lodash/fp/takeRight.js5
-rw-r--r--node_modules/lodash/fp/takeRightWhile.js5
-rw-r--r--node_modules/lodash/fp/takeWhile.js5
-rw-r--r--node_modules/lodash/fp/tap.js5
-rw-r--r--node_modules/lodash/fp/template.js5
-rw-r--r--node_modules/lodash/fp/templateSettings.js5
-rw-r--r--node_modules/lodash/fp/throttle.js5
-rw-r--r--node_modules/lodash/fp/thru.js5
-rw-r--r--node_modules/lodash/fp/times.js5
-rw-r--r--node_modules/lodash/fp/toArray.js5
-rw-r--r--node_modules/lodash/fp/toFinite.js5
-rw-r--r--node_modules/lodash/fp/toInteger.js5
-rw-r--r--node_modules/lodash/fp/toIterator.js5
-rw-r--r--node_modules/lodash/fp/toJSON.js5
-rw-r--r--node_modules/lodash/fp/toLength.js5
-rw-r--r--node_modules/lodash/fp/toLower.js5
-rw-r--r--node_modules/lodash/fp/toNumber.js5
-rw-r--r--node_modules/lodash/fp/toPairs.js5
-rw-r--r--node_modules/lodash/fp/toPairsIn.js5
-rw-r--r--node_modules/lodash/fp/toPath.js5
-rw-r--r--node_modules/lodash/fp/toPlainObject.js5
-rw-r--r--node_modules/lodash/fp/toSafeInteger.js5
-rw-r--r--node_modules/lodash/fp/toString.js5
-rw-r--r--node_modules/lodash/fp/toUpper.js5
-rw-r--r--node_modules/lodash/fp/transform.js5
-rw-r--r--node_modules/lodash/fp/trim.js5
-rw-r--r--node_modules/lodash/fp/trimChars.js5
-rw-r--r--node_modules/lodash/fp/trimCharsEnd.js5
-rw-r--r--node_modules/lodash/fp/trimCharsStart.js5
-rw-r--r--node_modules/lodash/fp/trimEnd.js5
-rw-r--r--node_modules/lodash/fp/trimStart.js5
-rw-r--r--node_modules/lodash/fp/truncate.js5
-rw-r--r--node_modules/lodash/fp/unapply.js1
-rw-r--r--node_modules/lodash/fp/unary.js5
-rw-r--r--node_modules/lodash/fp/unescape.js5
-rw-r--r--node_modules/lodash/fp/union.js5
-rw-r--r--node_modules/lodash/fp/unionBy.js5
-rw-r--r--node_modules/lodash/fp/unionWith.js5
-rw-r--r--node_modules/lodash/fp/uniq.js5
-rw-r--r--node_modules/lodash/fp/uniqBy.js5
-rw-r--r--node_modules/lodash/fp/uniqWith.js5
-rw-r--r--node_modules/lodash/fp/uniqueId.js5
-rw-r--r--node_modules/lodash/fp/unnest.js1
-rw-r--r--node_modules/lodash/fp/unset.js5
-rw-r--r--node_modules/lodash/fp/unzip.js5
-rw-r--r--node_modules/lodash/fp/unzipWith.js5
-rw-r--r--node_modules/lodash/fp/update.js5
-rw-r--r--node_modules/lodash/fp/updateWith.js5
-rw-r--r--node_modules/lodash/fp/upperCase.js5
-rw-r--r--node_modules/lodash/fp/upperFirst.js5
-rw-r--r--node_modules/lodash/fp/useWith.js1
-rw-r--r--node_modules/lodash/fp/util.js2
-rw-r--r--node_modules/lodash/fp/value.js5
-rw-r--r--node_modules/lodash/fp/valueOf.js5
-rw-r--r--node_modules/lodash/fp/values.js5
-rw-r--r--node_modules/lodash/fp/valuesIn.js5
-rw-r--r--node_modules/lodash/fp/where.js1
-rw-r--r--node_modules/lodash/fp/whereEq.js1
-rw-r--r--node_modules/lodash/fp/without.js5
-rw-r--r--node_modules/lodash/fp/words.js5
-rw-r--r--node_modules/lodash/fp/wrap.js5
-rw-r--r--node_modules/lodash/fp/wrapperAt.js5
-rw-r--r--node_modules/lodash/fp/wrapperChain.js5
-rw-r--r--node_modules/lodash/fp/wrapperLodash.js5
-rw-r--r--node_modules/lodash/fp/wrapperReverse.js5
-rw-r--r--node_modules/lodash/fp/wrapperValue.js5
-rw-r--r--node_modules/lodash/fp/xor.js5
-rw-r--r--node_modules/lodash/fp/xorBy.js5
-rw-r--r--node_modules/lodash/fp/xorWith.js5
-rw-r--r--node_modules/lodash/fp/zip.js5
-rw-r--r--node_modules/lodash/fp/zipAll.js5
-rw-r--r--node_modules/lodash/fp/zipObj.js1
-rw-r--r--node_modules/lodash/fp/zipObject.js5
-rw-r--r--node_modules/lodash/fp/zipObjectDeep.js5
-rw-r--r--node_modules/lodash/fp/zipWith.js5
-rw-r--r--node_modules/lodash/fromPairs.js28
-rw-r--r--node_modules/lodash/function.js25
-rw-r--r--node_modules/lodash/functions.js31
-rw-r--r--node_modules/lodash/functionsIn.js31
-rw-r--r--node_modules/lodash/get.js33
-rw-r--r--node_modules/lodash/groupBy.js41
-rw-r--r--node_modules/lodash/gt.js29
-rw-r--r--node_modules/lodash/gte.js30
-rw-r--r--node_modules/lodash/has.js35
-rw-r--r--node_modules/lodash/hasIn.js34
-rw-r--r--node_modules/lodash/head.js23
-rw-r--r--node_modules/lodash/identity.js21
-rw-r--r--node_modules/lodash/inRange.js55
-rw-r--r--node_modules/lodash/includes.js53
-rw-r--r--node_modules/lodash/index.js1
-rw-r--r--node_modules/lodash/indexOf.js42
-rw-r--r--node_modules/lodash/initial.js22
-rw-r--r--node_modules/lodash/intersection.js30
-rw-r--r--node_modules/lodash/intersectionBy.js45
-rw-r--r--node_modules/lodash/intersectionWith.js41
-rw-r--r--node_modules/lodash/invert.js42
-rw-r--r--node_modules/lodash/invertBy.js56
-rw-r--r--node_modules/lodash/invoke.js24
-rw-r--r--node_modules/lodash/invokeMap.js41
-rw-r--r--node_modules/lodash/isArguments.js36
-rw-r--r--node_modules/lodash/isArray.js26
-rw-r--r--node_modules/lodash/isArrayBuffer.js27
-rw-r--r--node_modules/lodash/isArrayLike.js33
-rw-r--r--node_modules/lodash/isArrayLikeObject.js33
-rw-r--r--node_modules/lodash/isBoolean.js29
-rw-r--r--node_modules/lodash/isBuffer.js38
-rw-r--r--node_modules/lodash/isDate.js27
-rw-r--r--node_modules/lodash/isElement.js25
-rw-r--r--node_modules/lodash/isEmpty.js77
-rw-r--r--node_modules/lodash/isEqual.js35
-rw-r--r--node_modules/lodash/isEqualWith.js41
-rw-r--r--node_modules/lodash/isError.js36
-rw-r--r--node_modules/lodash/isFinite.js36
-rw-r--r--node_modules/lodash/isFunction.js37
-rw-r--r--node_modules/lodash/isInteger.js33
-rw-r--r--node_modules/lodash/isLength.js35
-rw-r--r--node_modules/lodash/isMap.js27
-rw-r--r--node_modules/lodash/isMatch.js36
-rw-r--r--node_modules/lodash/isMatchWith.js41
-rw-r--r--node_modules/lodash/isNaN.js38
-rw-r--r--node_modules/lodash/isNative.js40
-rw-r--r--node_modules/lodash/isNil.js25
-rw-r--r--node_modules/lodash/isNull.js22
-rw-r--r--node_modules/lodash/isNumber.js38
-rw-r--r--node_modules/lodash/isObject.js31
-rw-r--r--node_modules/lodash/isObjectLike.js29
-rw-r--r--node_modules/lodash/isPlainObject.js62
-rw-r--r--node_modules/lodash/isRegExp.js27
-rw-r--r--node_modules/lodash/isSafeInteger.js37
-rw-r--r--node_modules/lodash/isSet.js27
-rw-r--r--node_modules/lodash/isString.js30
-rw-r--r--node_modules/lodash/isSymbol.js29
-rw-r--r--node_modules/lodash/isTypedArray.js27
-rw-r--r--node_modules/lodash/isUndefined.js22
-rw-r--r--node_modules/lodash/isWeakMap.js28
-rw-r--r--node_modules/lodash/isWeakSet.js28
-rw-r--r--node_modules/lodash/iteratee.js53
-rw-r--r--node_modules/lodash/join.js26
-rw-r--r--node_modules/lodash/kebabCase.js28
-rw-r--r--node_modules/lodash/keyBy.js36
-rw-r--r--node_modules/lodash/keys.js37
-rw-r--r--node_modules/lodash/keysIn.js32
-rw-r--r--node_modules/lodash/lang.js58
-rw-r--r--node_modules/lodash/last.js20
-rw-r--r--node_modules/lodash/lastIndexOf.js46
-rw-r--r--node_modules/lodash/lodash.js17112
-rw-r--r--node_modules/lodash/lodash.min.js137
-rw-r--r--node_modules/lodash/lowerCase.js27
-rw-r--r--node_modules/lodash/lowerFirst.js22
-rw-r--r--node_modules/lodash/lt.js29
-rw-r--r--node_modules/lodash/lte.js30
-rw-r--r--node_modules/lodash/map.js53
-rw-r--r--node_modules/lodash/mapKeys.js36
-rw-r--r--node_modules/lodash/mapValues.js43
-rw-r--r--node_modules/lodash/matches.js39
-rw-r--r--node_modules/lodash/matchesProperty.js37
-rw-r--r--node_modules/lodash/math.js17
-rw-r--r--node_modules/lodash/max.js29
-rw-r--r--node_modules/lodash/maxBy.js34
-rw-r--r--node_modules/lodash/mean.js22
-rw-r--r--node_modules/lodash/meanBy.js31
-rw-r--r--node_modules/lodash/memoize.js73
-rw-r--r--node_modules/lodash/merge.js39
-rw-r--r--node_modules/lodash/mergeWith.js39
-rw-r--r--node_modules/lodash/method.js34
-rw-r--r--node_modules/lodash/methodOf.js33
-rw-r--r--node_modules/lodash/min.js29
-rw-r--r--node_modules/lodash/minBy.js34
-rw-r--r--node_modules/lodash/mixin.js74
-rw-r--r--node_modules/lodash/multiply.js22
-rw-r--r--node_modules/lodash/negate.js40
-rw-r--r--node_modules/lodash/next.js35
-rw-r--r--node_modules/lodash/noop.js17
-rw-r--r--node_modules/lodash/now.js23
-rw-r--r--node_modules/lodash/nth.js29
-rw-r--r--node_modules/lodash/nthArg.js32
-rw-r--r--node_modules/lodash/number.js5
-rw-r--r--node_modules/lodash/object.js49
-rw-r--r--node_modules/lodash/omit.js57
-rw-r--r--node_modules/lodash/omitBy.js29
-rw-r--r--node_modules/lodash/once.js25
-rw-r--r--node_modules/lodash/orderBy.js47
-rw-r--r--node_modules/lodash/over.js24
-rw-r--r--node_modules/lodash/overArgs.js61
-rw-r--r--node_modules/lodash/overEvery.js30
-rw-r--r--node_modules/lodash/overSome.js30
-rw-r--r--node_modules/lodash/package.json65
-rw-r--r--node_modules/lodash/pad.js49
-rw-r--r--node_modules/lodash/padEnd.js39
-rw-r--r--node_modules/lodash/padStart.js39
-rw-r--r--node_modules/lodash/parseInt.js43
-rw-r--r--node_modules/lodash/partial.js50
-rw-r--r--node_modules/lodash/partialRight.js49
-rw-r--r--node_modules/lodash/partition.js43
-rw-r--r--node_modules/lodash/pick.js25
-rw-r--r--node_modules/lodash/pickBy.js37
-rw-r--r--node_modules/lodash/plant.js48
-rw-r--r--node_modules/lodash/property.js32
-rw-r--r--node_modules/lodash/propertyOf.js30
-rw-r--r--node_modules/lodash/pull.js29
-rw-r--r--node_modules/lodash/pullAll.js29
-rw-r--r--node_modules/lodash/pullAllBy.js33
-rw-r--r--node_modules/lodash/pullAllWith.js32
-rw-r--r--node_modules/lodash/pullAt.js43
-rw-r--r--node_modules/lodash/random.js82
-rw-r--r--node_modules/lodash/range.js46
-rw-r--r--node_modules/lodash/rangeRight.js41
-rw-r--r--node_modules/lodash/rearg.js33
-rw-r--r--node_modules/lodash/reduce.js51
-rw-r--r--node_modules/lodash/reduceRight.js36
-rw-r--r--node_modules/lodash/reject.js46
-rw-r--r--node_modules/lodash/remove.js53
-rw-r--r--node_modules/lodash/repeat.js37
-rw-r--r--node_modules/lodash/replace.js29
-rw-r--r--node_modules/lodash/rest.js40
-rw-r--r--node_modules/lodash/result.js56
-rw-r--r--node_modules/lodash/reverse.js34
-rw-r--r--node_modules/lodash/round.js26
-rw-r--r--node_modules/lodash/sample.js24
-rw-r--r--node_modules/lodash/sampleSize.js37
-rw-r--r--node_modules/lodash/seq.js16
-rw-r--r--node_modules/lodash/set.js35
-rw-r--r--node_modules/lodash/setWith.js32
-rw-r--r--node_modules/lodash/shuffle.js25
-rw-r--r--node_modules/lodash/size.js46
-rw-r--r--node_modules/lodash/slice.js37
-rw-r--r--node_modules/lodash/snakeCase.js28
-rw-r--r--node_modules/lodash/some.js51
-rw-r--r--node_modules/lodash/sortBy.js48
-rw-r--r--node_modules/lodash/sortedIndex.js24
-rw-r--r--node_modules/lodash/sortedIndexBy.js33
-rw-r--r--node_modules/lodash/sortedIndexOf.js31
-rw-r--r--node_modules/lodash/sortedLastIndex.js25
-rw-r--r--node_modules/lodash/sortedLastIndexBy.js33
-rw-r--r--node_modules/lodash/sortedLastIndexOf.js31
-rw-r--r--node_modules/lodash/sortedUniq.js24
-rw-r--r--node_modules/lodash/sortedUniqBy.js26
-rw-r--r--node_modules/lodash/split.js52
-rw-r--r--node_modules/lodash/spread.js63
-rw-r--r--node_modules/lodash/startCase.js29
-rw-r--r--node_modules/lodash/startsWith.js39
-rw-r--r--node_modules/lodash/string.js33
-rw-r--r--node_modules/lodash/stubArray.js23
-rw-r--r--node_modules/lodash/stubFalse.js18
-rw-r--r--node_modules/lodash/stubObject.js23
-rw-r--r--node_modules/lodash/stubString.js18
-rw-r--r--node_modules/lodash/stubTrue.js18
-rw-r--r--node_modules/lodash/subtract.js22
-rw-r--r--node_modules/lodash/sum.js24
-rw-r--r--node_modules/lodash/sumBy.js33
-rw-r--r--node_modules/lodash/tail.js22
-rw-r--r--node_modules/lodash/take.js37
-rw-r--r--node_modules/lodash/takeRight.js39
-rw-r--r--node_modules/lodash/takeRightWhile.js45
-rw-r--r--node_modules/lodash/takeWhile.js45
-rw-r--r--node_modules/lodash/tap.js29
-rw-r--r--node_modules/lodash/template.js253
-rw-r--r--node_modules/lodash/templateSettings.js67
-rw-r--r--node_modules/lodash/throttle.js69
-rw-r--r--node_modules/lodash/thru.js28
-rw-r--r--node_modules/lodash/times.js51
-rw-r--r--node_modules/lodash/toArray.js58
-rw-r--r--node_modules/lodash/toFinite.js42
-rw-r--r--node_modules/lodash/toInteger.js36
-rw-r--r--node_modules/lodash/toIterator.js23
-rw-r--r--node_modules/lodash/toJSON.js1
-rw-r--r--node_modules/lodash/toLength.js38
-rw-r--r--node_modules/lodash/toLower.js28
-rw-r--r--node_modules/lodash/toNumber.js66
-rw-r--r--node_modules/lodash/toPairs.js30
-rw-r--r--node_modules/lodash/toPairsIn.js30
-rw-r--r--node_modules/lodash/toPath.js33
-rw-r--r--node_modules/lodash/toPlainObject.js32
-rw-r--r--node_modules/lodash/toSafeInteger.js37
-rw-r--r--node_modules/lodash/toString.js28
-rw-r--r--node_modules/lodash/toUpper.js28
-rw-r--r--node_modules/lodash/transform.js65
-rw-r--r--node_modules/lodash/trim.js49
-rw-r--r--node_modules/lodash/trimEnd.js43
-rw-r--r--node_modules/lodash/trimStart.js43
-rw-r--r--node_modules/lodash/truncate.js111
-rw-r--r--node_modules/lodash/unary.js22
-rw-r--r--node_modules/lodash/unescape.js34
-rw-r--r--node_modules/lodash/union.js26
-rw-r--r--node_modules/lodash/unionBy.js39
-rw-r--r--node_modules/lodash/unionWith.js34
-rw-r--r--node_modules/lodash/uniq.js25
-rw-r--r--node_modules/lodash/uniqBy.js31
-rw-r--r--node_modules/lodash/uniqWith.js28
-rw-r--r--node_modules/lodash/uniqueId.js28
-rw-r--r--node_modules/lodash/unset.js34
-rw-r--r--node_modules/lodash/unzip.js45
-rw-r--r--node_modules/lodash/unzipWith.js39
-rw-r--r--node_modules/lodash/update.js35
-rw-r--r--node_modules/lodash/updateWith.js33
-rw-r--r--node_modules/lodash/upperCase.js27
-rw-r--r--node_modules/lodash/upperFirst.js22
-rw-r--r--node_modules/lodash/util.js34
-rw-r--r--node_modules/lodash/value.js1
-rw-r--r--node_modules/lodash/valueOf.js1
-rw-r--r--node_modules/lodash/values.js34
-rw-r--r--node_modules/lodash/valuesIn.js32
-rw-r--r--node_modules/lodash/without.js31
-rw-r--r--node_modules/lodash/words.js35
-rw-r--r--node_modules/lodash/wrap.js30
-rw-r--r--node_modules/lodash/wrapperAt.js48
-rw-r--r--node_modules/lodash/wrapperChain.js34
-rw-r--r--node_modules/lodash/wrapperLodash.js147
-rw-r--r--node_modules/lodash/wrapperReverse.js44
-rw-r--r--node_modules/lodash/wrapperValue.js21
-rw-r--r--node_modules/lodash/xor.js28
-rw-r--r--node_modules/lodash/xorBy.js39
-rw-r--r--node_modules/lodash/xorWith.js34
-rw-r--r--node_modules/lodash/zip.js22
-rw-r--r--node_modules/lodash/zipObject.js24
-rw-r--r--node_modules/lodash/zipObjectDeep.js23
-rw-r--r--node_modules/lodash/zipWith.js32
-rw-r--r--node_modules/loud-rejection/api.js11
-rw-r--r--node_modules/loud-rejection/index.js36
-rw-r--r--node_modules/loud-rejection/license21
-rw-r--r--node_modules/loud-rejection/package.json91
-rw-r--r--node_modules/loud-rejection/readme.md68
-rw-r--r--node_modules/loud-rejection/register.js2
-rw-r--r--node_modules/lru-cache/LICENSE15
-rw-r--r--node_modules/lru-cache/README.md158
-rw-r--r--node_modules/lru-cache/index.js468
-rw-r--r--node_modules/lru-cache/package.json71
-rw-r--r--node_modules/map-obj/index.js13
-rw-r--r--node_modules/map-obj/license21
-rw-r--r--node_modules/map-obj/package.json69
-rw-r--r--node_modules/map-obj/readme.md29
-rw-r--r--node_modules/meow/index.js82
-rw-r--r--node_modules/meow/license21
-rw-r--r--node_modules/meow/package.json90
-rw-r--r--node_modules/meow/readme.md159
-rw-r--r--node_modules/mime-db/HISTORY.md446
-rw-r--r--node_modules/mime-db/LICENSE22
-rw-r--r--node_modules/mime-db/README.md102
-rw-r--r--node_modules/mime-db/db.json8176
-rw-r--r--node_modules/mime-db/index.js11
-rw-r--r--node_modules/mime-db/package.json102
-rw-r--r--node_modules/mime-types/HISTORY.md333
-rw-r--r--node_modules/mime-types/LICENSE23
-rw-r--r--node_modules/mime-types/README.md123
-rw-r--r--node_modules/mime-types/index.js188
-rw-r--r--node_modules/mime-types/package.json88
-rw-r--r--node_modules/minimatch/LICENSE15
-rw-r--r--node_modules/minimatch/README.md209
-rw-r--r--node_modules/minimatch/minimatch.js923
-rw-r--r--node_modules/minimatch/package.json64
-rw-r--r--node_modules/minimist/.travis.yml8
-rw-r--r--node_modules/minimist/LICENSE18
-rw-r--r--node_modules/minimist/example/parse.js2
-rw-r--r--node_modules/minimist/index.js245
-rw-r--r--node_modules/minimist/package.json73
-rw-r--r--node_modules/minimist/readme.markdown95
-rw-r--r--node_modules/minimist/test/all_bool.js32
-rw-r--r--node_modules/minimist/test/bool.js178
-rw-r--r--node_modules/minimist/test/dash.js31
-rw-r--r--node_modules/minimist/test/default_bool.js35
-rw-r--r--node_modules/minimist/test/dotted.js22
-rw-r--r--node_modules/minimist/test/kv_short.js16
-rw-r--r--node_modules/minimist/test/long.js31
-rw-r--r--node_modules/minimist/test/num.js36
-rw-r--r--node_modules/minimist/test/parse.js197
-rw-r--r--node_modules/minimist/test/parse_modified.js9
-rw-r--r--node_modules/minimist/test/proto.js44
-rw-r--r--node_modules/minimist/test/short.js67
-rw-r--r--node_modules/minimist/test/stop_early.js15
-rw-r--r--node_modules/minimist/test/unknown.js102
-rw-r--r--node_modules/minimist/test/whitespace.js8
-rw-r--r--node_modules/mkdirp/LICENSE21
-rwxr-xr-xnode_modules/mkdirp/bin/cmd.js33
-rw-r--r--node_modules/mkdirp/bin/usage.txt12
-rw-r--r--node_modules/mkdirp/index.js99
-rw-r--r--node_modules/mkdirp/package.json71
-rw-r--r--node_modules/mkdirp/readme.markdown100
-rw-r--r--node_modules/nan/CHANGELOG.md533
-rw-r--r--node_modules/nan/LICENSE.md13
-rw-r--r--node_modules/nan/README.md455
-rw-r--r--node_modules/nan/doc/asyncworker.md146
-rw-r--r--node_modules/nan/doc/buffers.md54
-rw-r--r--node_modules/nan/doc/callback.md76
-rw-r--r--node_modules/nan/doc/converters.md41
-rw-r--r--node_modules/nan/doc/errors.md226
-rw-r--r--node_modules/nan/doc/json.md62
-rw-r--r--node_modules/nan/doc/maybe_types.md583
-rw-r--r--node_modules/nan/doc/methods.md664
-rw-r--r--node_modules/nan/doc/new.md147
-rw-r--r--node_modules/nan/doc/node_misc.md123
-rw-r--r--node_modules/nan/doc/object_wrappers.md263
-rw-r--r--node_modules/nan/doc/persistent.md296
-rw-r--r--node_modules/nan/doc/scopes.md73
-rw-r--r--node_modules/nan/doc/script.md38
-rw-r--r--node_modules/nan/doc/string_bytes.md62
-rw-r--r--node_modules/nan/doc/v8_internals.md199
-rw-r--r--node_modules/nan/doc/v8_misc.md85
-rw-r--r--node_modules/nan/include_dirs.js1
-rw-r--r--node_modules/nan/nan.h2891
-rw-r--r--node_modules/nan/nan_callbacks.h88
-rw-r--r--node_modules/nan/nan_callbacks_12_inl.h514
-rw-r--r--node_modules/nan/nan_callbacks_pre_12_inl.h520
-rw-r--r--node_modules/nan/nan_converters.h72
-rw-r--r--node_modules/nan/nan_converters_43_inl.h68
-rw-r--r--node_modules/nan/nan_converters_pre_43_inl.h42
-rw-r--r--node_modules/nan/nan_define_own_property_helper.h29
-rw-r--r--node_modules/nan/nan_implementation_12_inl.h430
-rw-r--r--node_modules/nan/nan_implementation_pre_12_inl.h263
-rw-r--r--node_modules/nan/nan_json.h166
-rw-r--r--node_modules/nan/nan_maybe_43_inl.h356
-rw-r--r--node_modules/nan/nan_maybe_pre_43_inl.h268
-rw-r--r--node_modules/nan/nan_new.h340
-rw-r--r--node_modules/nan/nan_object_wrap.h156
-rw-r--r--node_modules/nan/nan_persistent_12_inl.h132
-rw-r--r--node_modules/nan/nan_persistent_pre_12_inl.h242
-rw-r--r--node_modules/nan/nan_private.h73
-rw-r--r--node_modules/nan/nan_string_bytes.h305
-rw-r--r--node_modules/nan/nan_typedarray_contents.h96
-rw-r--r--node_modules/nan/nan_weak.h437
-rw-r--r--node_modules/nan/package.json98
-rwxr-xr-xnode_modules/nan/tools/1to2.js412
-rw-r--r--node_modules/nan/tools/README.md14
-rw-r--r--node_modules/nan/tools/package.json19
-rw-r--r--node_modules/node-gyp/.github/ISSUE_TEMPLATE.md26
-rw-r--r--node_modules/node-gyp/.github/PULL_REQUEST_TEMPLATE.md17
-rw-r--r--node_modules/node-gyp/.jshintrc7
-rw-r--r--node_modules/node-gyp/CHANGELOG.md227
-rw-r--r--node_modules/node-gyp/CONTRIBUTING.md34
-rw-r--r--node_modules/node-gyp/LICENSE24
-rw-r--r--node_modules/node-gyp/README.md244
-rw-r--r--node_modules/node-gyp/addon.gypi147
-rwxr-xr-xnode_modules/node-gyp/bin/node-gyp.js148
-rw-r--r--node_modules/node-gyp/gyp/AUTHORS13
-rw-r--r--node_modules/node-gyp/gyp/DEPS24
-rw-r--r--node_modules/node-gyp/gyp/LICENSE27
-rw-r--r--node_modules/node-gyp/gyp/OWNERS1
-rw-r--r--node_modules/node-gyp/gyp/PRESUBMIT.py139
-rw-r--r--node_modules/node-gyp/gyp/codereview.settings10
-rw-r--r--node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc12
-rwxr-xr-xnode_modules/node-gyp/gyp/gyp8
-rw-r--r--node_modules/node-gyp/gyp/gyp.bat5
-rwxr-xr-xnode_modules/node-gyp/gyp/gyp_main.py16
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py340
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py208
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py1096
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py1483
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py58
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py147
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py270
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py443
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/__init__.py548
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/common.py612
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/common_test.py72
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py162
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py103
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/flock_tool.py54
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py0
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py741
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/android.py1095
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py1221
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py99
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py425
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py94
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py56
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/make.py2263
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py3494
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py37
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py2422
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py47
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py1300
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py23
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/input.py2902
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/input_test.py90
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/mac_tool.py610
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py1087
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py160
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/ordered_dict.py289
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py46
-rwxr-xr-xnode_modules/node-gyp/gyp/pylib/gyp/win_tool.py314
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py1653
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py270
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py2927
-rw-r--r--node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py69
-rwxr-xr-xnode_modules/node-gyp/gyp/samples/samples81
-rw-r--r--node_modules/node-gyp/gyp/samples/samples.bat5
-rwxr-xr-xnode_modules/node-gyp/gyp/setup.py19
-rw-r--r--node_modules/node-gyp/gyp/tools/README15
-rw-r--r--node_modules/node-gyp/gyp/tools/Xcode/README5
-rw-r--r--node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec27
-rw-r--r--node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec226
-rw-r--r--node_modules/node-gyp/gyp/tools/emacs/README12
-rw-r--r--node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el63
-rw-r--r--node_modules/node-gyp/gyp/tools/emacs/gyp.el275
-rwxr-xr-xnode_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh7
-rw-r--r--node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp1105
-rw-r--r--node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified1107
-rwxr-xr-xnode_modules/node-gyp/gyp/tools/graphviz.py100
-rwxr-xr-xnode_modules/node-gyp/gyp/tools/pretty_gyp.py155
-rwxr-xr-xnode_modules/node-gyp/gyp/tools/pretty_sln.py169
-rwxr-xr-xnode_modules/node-gyp/gyp/tools/pretty_vcproj.py329
-rw-r--r--node_modules/node-gyp/lib/Find-VS2017.cs273
-rw-r--r--node_modules/node-gyp/lib/build.js270
-rw-r--r--node_modules/node-gyp/lib/clean.js22
-rw-r--r--node_modules/node-gyp/lib/configure.js524
-rw-r--r--node_modules/node-gyp/lib/find-node-directory.js61
-rw-r--r--node_modules/node-gyp/lib/find-vs2017.js46
-rw-r--r--node_modules/node-gyp/lib/install.js475
-rw-r--r--node_modules/node-gyp/lib/list.js33
-rw-r--r--node_modules/node-gyp/lib/node-gyp.js216
-rw-r--r--node_modules/node-gyp/lib/process-release.js155
-rw-r--r--node_modules/node-gyp/lib/rebuild.js14
-rw-r--r--node_modules/node-gyp/lib/remove.js52
l---------node_modules/node-gyp/node_modules/.bin/semver1
-rw-r--r--node_modules/node-gyp/node_modules/semver/LICENSE15
-rw-r--r--node_modules/node-gyp/node_modules/semver/README.md350
-rwxr-xr-xnode_modules/node-gyp/node_modules/semver/bin/semver133
-rw-r--r--node_modules/node-gyp/node_modules/semver/package.json54
-rw-r--r--node_modules/node-gyp/node_modules/semver/range.bnf16
-rw-r--r--node_modules/node-gyp/node_modules/semver/semver.js1203
-rw-r--r--node_modules/node-gyp/package.json85
-rw-r--r--node_modules/node-gyp/src/win_delay_load_hook.cc36
-rwxr-xr-xnode_modules/node-gyp/test/docker.sh164
-rw-r--r--node_modules/node-gyp/test/fixtures/ca-bundle.crt40
-rw-r--r--node_modules/node-gyp/test/fixtures/ca.crt21
-rw-r--r--node_modules/node-gyp/test/fixtures/server.crt19
-rw-r--r--node_modules/node-gyp/test/fixtures/server.key28
-rw-r--r--node_modules/node-gyp/test/fixtures/test-charmap.py22
-rw-r--r--node_modules/node-gyp/test/process-exec-sync.js138
-rw-r--r--node_modules/node-gyp/test/simple-proxy.js24
-rw-r--r--node_modules/node-gyp/test/test-addon.js113
-rw-r--r--node_modules/node-gyp/test/test-configure-python.js74
-rw-r--r--node_modules/node-gyp/test/test-download.js102
-rw-r--r--node_modules/node-gyp/test/test-find-accessible-sync.js86
-rw-r--r--node_modules/node-gyp/test/test-find-node-directory.js115
-rw-r--r--node_modules/node-gyp/test/test-find-python.js339
-rw-r--r--node_modules/node-gyp/test/test-install.js37
-rw-r--r--node_modules/node-gyp/test/test-options.js25
-rw-r--r--node_modules/node-gyp/test/test-process-release.js637
-rw-r--r--node_modules/node-gyp/tools/gyp/pylib/gyp/generator/compile_commands_json.py115
-rw-r--r--node_modules/node-sass/CHANGELOG.md256
-rw-r--r--node_modules/node-sass/LICENSE20
-rw-r--r--node_modules/node-sass/README.md631
-rwxr-xr-xnode_modules/node-sass/bin/emcc12
-rwxr-xr-xnode_modules/node-sass/bin/node-sass412
-rw-r--r--node_modules/node-sass/binding.gyp90
-rw-r--r--node_modules/node-sass/lib/binding.js20
-rw-r--r--node_modules/node-sass/lib/errors.js49
-rw-r--r--node_modules/node-sass/lib/extensions.js462
-rw-r--r--node_modules/node-sass/lib/index.js477
-rw-r--r--node_modules/node-sass/lib/render.js121
-rw-r--r--node_modules/node-sass/lib/watcher.js93
-rw-r--r--node_modules/node-sass/package.json115
-rw-r--r--node_modules/node-sass/scripts/build.js155
-rw-r--r--node_modules/node-sass/scripts/coverage.js85
-rw-r--r--node_modules/node-sass/scripts/install.js157
-rw-r--r--node_modules/node-sass/scripts/prepublish.js17
-rw-r--r--node_modules/node-sass/scripts/util/downloadoptions.js31
-rw-r--r--node_modules/node-sass/scripts/util/proxy.js22
-rw-r--r--node_modules/node-sass/scripts/util/useragent.js13
-rw-r--r--node_modules/node-sass/src/binding.cpp358
-rw-r--r--node_modules/node-sass/src/callback_bridge.h228
-rw-r--r--node_modules/node-sass/src/create_string.cpp21
-rw-r--r--node_modules/node-sass/src/create_string.h8
-rw-r--r--node_modules/node-sass/src/custom_function_bridge.cpp27
-rw-r--r--node_modules/node-sass/src/custom_function_bridge.h18
-rw-r--r--node_modules/node-sass/src/custom_importer_bridge.cpp104
-rw-r--r--node_modules/node-sass/src/custom_importer_bridge.h22
-rw-r--r--node_modules/node-sass/src/libsass.gyp114
-rw-r--r--node_modules/node-sass/src/libsass/.editorconfig15
-rw-r--r--node_modules/node-sass/src/libsass/.gitattributes2
-rw-r--r--node_modules/node-sass/src/libsass/.github/CONTRIBUTING.md65
-rw-r--r--node_modules/node-sass/src/libsass/.github/ISSUE_TEMPLATE.md54
-rw-r--r--node_modules/node-sass/src/libsass/.npmignore85
-rw-r--r--node_modules/node-sass/src/libsass/.travis.yml64
-rw-r--r--node_modules/node-sass/src/libsass/COPYING25
-rw-r--r--node_modules/node-sass/src/libsass/GNUmakefile.am74
-rw-r--r--node_modules/node-sass/src/libsass/INSTALL1
-rw-r--r--node_modules/node-sass/src/libsass/LICENSE25
-rw-r--r--node_modules/node-sass/src/libsass/Makefile351
-rw-r--r--node_modules/node-sass/src/libsass/Makefile.conf55
-rw-r--r--node_modules/node-sass/src/libsass/Readme.md104
-rw-r--r--node_modules/node-sass/src/libsass/SECURITY.md10
-rw-r--r--node_modules/node-sass/src/libsass/appveyor.yml91
-rw-r--r--node_modules/node-sass/src/libsass/configure.ac134
-rw-r--r--node_modules/node-sass/src/libsass/contrib/libsass.spec66
-rw-r--r--node_modules/node-sass/src/libsass/contrib/plugin.cpp60
-rw-r--r--node_modules/node-sass/src/libsass/docs/README.md20
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-context-example.md45
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-context-internal.md163
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-context.md295
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-doc.md215
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-function-example.md67
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-function-internal.md8
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-function.md74
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-importer-example.md112
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-importer-internal.md20
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-importer.md86
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-value-example.md55
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-value-internal.md76
-rw-r--r--node_modules/node-sass/src/libsass/docs/api-value.md154
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-on-darwin.md27
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-on-gentoo.md55
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-on-windows.md139
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-shared-library.md35
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-with-autotools.md78
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-with-makefiles.md68
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-with-mingw.md107
-rw-r--r--node_modules/node-sass/src/libsass/docs/build-with-visual-studio.md90
-rw-r--r--node_modules/node-sass/src/libsass/docs/build.md97
-rw-r--r--node_modules/node-sass/src/libsass/docs/compatibility-plan.md48
-rw-r--r--node_modules/node-sass/src/libsass/docs/contributing.md17
-rw-r--r--node_modules/node-sass/src/libsass/docs/custom-functions-internal.md122
-rw-r--r--node_modules/node-sass/src/libsass/docs/dev-ast-memory.md223
-rw-r--r--node_modules/node-sass/src/libsass/docs/implementations.md65
-rw-r--r--node_modules/node-sass/src/libsass/docs/plugins.md47
-rw-r--r--node_modules/node-sass/src/libsass/docs/setup-environment.md68
-rw-r--r--node_modules/node-sass/src/libsass/docs/source-map-internals.md51
-rw-r--r--node_modules/node-sass/src/libsass/docs/trace.md26
-rw-r--r--node_modules/node-sass/src/libsass/docs/triage.md17
-rw-r--r--node_modules/node-sass/src/libsass/docs/unicode.md45
-rw-r--r--node_modules/node-sass/src/libsass/extconf.rb6
-rw-r--r--node_modules/node-sass/src/libsass/include/sass.h15
-rw-r--r--node_modules/node-sass/src/libsass/include/sass/base.h89
-rw-r--r--node_modules/node-sass/src/libsass/include/sass/context.h170
-rw-r--r--node_modules/node-sass/src/libsass/include/sass/functions.h139
-rw-r--r--node_modules/node-sass/src/libsass/include/sass/values.h145
-rw-r--r--node_modules/node-sass/src/libsass/include/sass/version.h12
-rw-r--r--node_modules/node-sass/src/libsass/include/sass/version.h.in12
-rw-r--r--node_modules/node-sass/src/libsass/include/sass2scss.h120
-rw-r--r--node_modules/node-sass/src/libsass/m4/.gitkeep0
-rw-r--r--node_modules/node-sass/src/libsass/m4/m4-ax_cxx_compile_stdcxx_11.m4167
-rw-r--r--node_modules/node-sass/src/libsass/res/resource.rc35
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/bootstrap13
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/branding10
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/ci-build-libsass134
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/ci-build-plugin62
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/ci-install-compiler6
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/ci-install-deps20
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/ci-report-coverage42
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/spec5
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/tap-driver652
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/tap-runner1
-rwxr-xr-xnode_modules/node-sass/src/libsass/script/test-leaks.pl103
-rw-r--r--node_modules/node-sass/src/libsass/src/GNUmakefile.am54
-rw-r--r--node_modules/node-sass/src/libsass/src/ast.cpp2226
-rw-r--r--node_modules/node-sass/src/libsass/src/ast.hpp3049
-rw-r--r--node_modules/node-sass/src/libsass/src/ast_def_macros.hpp80
-rw-r--r--node_modules/node-sass/src/libsass/src/ast_fwd_decl.cpp29
-rw-r--r--node_modules/node-sass/src/libsass/src/ast_fwd_decl.hpp463
-rw-r--r--node_modules/node-sass/src/libsass/src/b64/cencode.h32
-rw-r--r--node_modules/node-sass/src/libsass/src/b64/encode.h79
-rw-r--r--node_modules/node-sass/src/libsass/src/backtrace.cpp46
-rw-r--r--node_modules/node-sass/src/libsass/src/backtrace.hpp29
-rw-r--r--node_modules/node-sass/src/libsass/src/base64vlq.cpp44
-rw-r--r--node_modules/node-sass/src/libsass/src/base64vlq.hpp30
-rw-r--r--node_modules/node-sass/src/libsass/src/bind.cpp311
-rw-r--r--node_modules/node-sass/src/libsass/src/bind.hpp13
-rw-r--r--node_modules/node-sass/src/libsass/src/c99func.c54
-rw-r--r--node_modules/node-sass/src/libsass/src/cencode.c108
-rw-r--r--node_modules/node-sass/src/libsass/src/check_nesting.cpp398
-rw-r--r--node_modules/node-sass/src/libsass/src/check_nesting.hpp65
-rw-r--r--node_modules/node-sass/src/libsass/src/color_maps.cpp648
-rw-r--r--node_modules/node-sass/src/libsass/src/color_maps.hpp331
-rw-r--r--node_modules/node-sass/src/libsass/src/constants.cpp179
-rw-r--r--node_modules/node-sass/src/libsass/src/constants.hpp181
-rw-r--r--node_modules/node-sass/src/libsass/src/context.cpp880
-rw-r--r--node_modules/node-sass/src/libsass/src/context.hpp152
-rw-r--r--node_modules/node-sass/src/libsass/src/cssize.cpp606
-rw-r--r--node_modules/node-sass/src/libsass/src/cssize.hpp77
-rw-r--r--node_modules/node-sass/src/libsass/src/debug.hpp43
-rw-r--r--node_modules/node-sass/src/libsass/src/debugger.hpp801
-rw-r--r--node_modules/node-sass/src/libsass/src/emitter.cpp297
-rw-r--r--node_modules/node-sass/src/libsass/src/emitter.hpp99
-rw-r--r--node_modules/node-sass/src/libsass/src/environment.cpp246
-rw-r--r--node_modules/node-sass/src/libsass/src/environment.hpp113
-rw-r--r--node_modules/node-sass/src/libsass/src/error_handling.cpp235
-rw-r--r--node_modules/node-sass/src/libsass/src/error_handling.hpp216
-rw-r--r--node_modules/node-sass/src/libsass/src/eval.cpp1663
-rw-r--r--node_modules/node-sass/src/libsass/src/eval.hpp103
-rw-r--r--node_modules/node-sass/src/libsass/src/expand.cpp817
-rw-r--r--node_modules/node-sass/src/libsass/src/expand.hpp82
-rw-r--r--node_modules/node-sass/src/libsass/src/extend.cpp2130
-rw-r--r--node_modules/node-sass/src/libsass/src/extend.hpp86
-rw-r--r--node_modules/node-sass/src/libsass/src/file.cpp485
-rw-r--r--node_modules/node-sass/src/libsass/src/file.hpp133
-rw-r--r--node_modules/node-sass/src/libsass/src/functions.cpp2234
-rw-r--r--node_modules/node-sass/src/libsass/src/functions.hpp198
-rw-r--r--node_modules/node-sass/src/libsass/src/inspect.cpp1138
-rw-r--r--node_modules/node-sass/src/libsass/src/inspect.hpp103
-rw-r--r--node_modules/node-sass/src/libsass/src/json.cpp1436
-rw-r--r--node_modules/node-sass/src/libsass/src/json.hpp117
-rw-r--r--node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp28
-rw-r--r--node_modules/node-sass/src/libsass/src/lexer.cpp181
-rw-r--r--node_modules/node-sass/src/libsass/src/lexer.hpp315
-rw-r--r--node_modules/node-sass/src/libsass/src/listize.cpp86
-rw-r--r--node_modules/node-sass/src/libsass/src/listize.hpp34
-rw-r--r--node_modules/node-sass/src/libsass/src/mapping.hpp18
-rw-r--r--node_modules/node-sass/src/libsass/src/memory/SharedPtr.cpp114
-rw-r--r--node_modules/node-sass/src/libsass/src/memory/SharedPtr.hpp206
-rw-r--r--node_modules/node-sass/src/libsass/src/node.cpp319
-rw-r--r--node_modules/node-sass/src/libsass/src/node.hpp118
-rw-r--r--node_modules/node-sass/src/libsass/src/operation.hpp173
-rw-r--r--node_modules/node-sass/src/libsass/src/operators.cpp267
-rw-r--r--node_modules/node-sass/src/libsass/src/operators.hpp30
-rw-r--r--node_modules/node-sass/src/libsass/src/output.cpp336
-rw-r--r--node_modules/node-sass/src/libsass/src/output.hpp54
-rw-r--r--node_modules/node-sass/src/libsass/src/parser.cpp3137
-rw-r--r--node_modules/node-sass/src/libsass/src/parser.hpp400
-rw-r--r--node_modules/node-sass/src/libsass/src/paths.hpp71
-rw-r--r--node_modules/node-sass/src/libsass/src/plugins.cpp184
-rw-r--r--node_modules/node-sass/src/libsass/src/plugins.hpp57
-rw-r--r--node_modules/node-sass/src/libsass/src/position.cpp181
-rw-r--r--node_modules/node-sass/src/libsass/src/position.hpp124
-rw-r--r--node_modules/node-sass/src/libsass/src/prelexer.cpp1774
-rw-r--r--node_modules/node-sass/src/libsass/src/prelexer.hpp484
-rw-r--r--node_modules/node-sass/src/libsass/src/remove_placeholders.cpp84
-rw-r--r--node_modules/node-sass/src/libsass/src/remove_placeholders.hpp35
-rw-r--r--node_modules/node-sass/src/libsass/src/sass.cpp151
-rw-r--r--node_modules/node-sass/src/libsass/src/sass.hpp139
-rw-r--r--node_modules/node-sass/src/libsass/src/sass2scss.cpp864
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_context.cpp769
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_context.hpp129
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_functions.cpp207
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_functions.hpp50
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_util.cpp149
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_util.hpp256
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_values.cpp357
-rw-r--r--node_modules/node-sass/src/libsass/src/sass_values.hpp82
-rw-r--r--node_modules/node-sass/src/libsass/src/source_map.cpp195
-rw-r--r--node_modules/node-sass/src/libsass/src/source_map.hpp62
-rw-r--r--node_modules/node-sass/src/libsass/src/subset_map.cpp55
-rw-r--r--node_modules/node-sass/src/libsass/src/subset_map.hpp76
-rw-r--r--node_modules/node-sass/src/libsass/src/support/libsass.pc.in11
-rw-r--r--node_modules/node-sass/src/libsass/src/to_c.cpp74
-rw-r--r--node_modules/node-sass/src/libsass/src/to_c.hpp39
-rw-r--r--node_modules/node-sass/src/libsass/src/to_value.cpp112
-rw-r--r--node_modules/node-sass/src/libsass/src/to_value.hpp50
-rw-r--r--node_modules/node-sass/src/libsass/src/units.cpp501
-rw-r--r--node_modules/node-sass/src/libsass/src/units.hpp109
-rw-r--r--node_modules/node-sass/src/libsass/src/utf8.h34
-rw-r--r--node_modules/node-sass/src/libsass/src/utf8/checked.h334
-rw-r--r--node_modules/node-sass/src/libsass/src/utf8/core.h329
-rw-r--r--node_modules/node-sass/src/libsass/src/utf8/unchecked.h235
-rw-r--r--node_modules/node-sass/src/libsass/src/utf8_string.cpp102
-rw-r--r--node_modules/node-sass/src/libsass/src/utf8_string.hpp37
-rw-r--r--node_modules/node-sass/src/libsass/src/util.cpp733
-rw-r--r--node_modules/node-sass/src/libsass/src/util.hpp56
-rw-r--r--node_modules/node-sass/src/libsass/src/values.cpp131
-rw-r--r--node_modules/node-sass/src/libsass/src/values.hpp12
-rw-r--r--node_modules/node-sass/src/libsass/test/test_node.cpp94
-rw-r--r--node_modules/node-sass/src/libsass/test/test_paths.cpp28
-rw-r--r--node_modules/node-sass/src/libsass/test/test_selector_difference.cpp25
-rw-r--r--node_modules/node-sass/src/libsass/test/test_specificity.cpp25
-rw-r--r--node_modules/node-sass/src/libsass/test/test_subset_map.cpp472
-rw-r--r--node_modules/node-sass/src/libsass/test/test_superselector.cpp69
-rw-r--r--node_modules/node-sass/src/libsass/test/test_unification.cpp31
-rwxr-xr-xnode_modules/node-sass/src/libsass/version.sh10
-rw-r--r--node_modules/node-sass/src/libsass/win/libsass.sln39
-rw-r--r--node_modules/node-sass/src/libsass/win/libsass.sln.DotSettings9
-rw-r--r--node_modules/node-sass/src/libsass/win/libsass.targets118
-rw-r--r--node_modules/node-sass/src/libsass/win/libsass.vcxproj188
-rw-r--r--node_modules/node-sass/src/libsass/win/libsass.vcxproj.filters357
-rw-r--r--node_modules/node-sass/src/sass_context_wrapper.cpp67
-rw-r--r--node_modules/node-sass/src/sass_context_wrapper.h57
-rw-r--r--node_modules/node-sass/src/sass_types/boolean.cpp73
-rw-r--r--node_modules/node-sass/src/sass_types/boolean.h31
-rw-r--r--node_modules/node-sass/src/sass_types/color.cpp127
-rw-r--r--node_modules/node-sass/src/sass_types/color.h34
-rw-r--r--node_modules/node-sass/src/sass_types/error.cpp24
-rw-r--r--node_modules/node-sass/src/sass_types/error.h19
-rw-r--r--node_modules/node-sass/src/sass_types/factory.cpp72
-rw-r--r--node_modules/node-sass/src/sass_types/factory.h20
-rw-r--r--node_modules/node-sass/src/sass_types/list.cpp101
-rw-r--r--node_modules/node-sass/src/sass_types/list.h25
-rw-r--r--node_modules/node-sass/src/sass_types/map.cpp118
-rw-r--r--node_modules/node-sass/src/sass_types/map.h25
-rw-r--r--node_modules/node-sass/src/sass_types/null.cpp57
-rw-r--r--node_modules/node-sass/src/sass_types/null.h29
-rw-r--r--node_modules/node-sass/src/sass_types/number.cpp75
-rw-r--r--node_modules/node-sass/src/sass_types/number.h25
-rw-r--r--node_modules/node-sass/src/sass_types/sass_value_wrapper.h101
-rw-r--r--node_modules/node-sass/src/sass_types/string.cpp48
-rw-r--r--node_modules/node-sass/src/sass_types/string.h22
-rw-r--r--node_modules/node-sass/src/sass_types/value.h42
-rw-r--r--node_modules/node-sass/test/.eslintrc5
-rw-r--r--node_modules/node-sass/test/api.js2035
-rw-r--r--node_modules/node-sass/test/binding.js129
-rw-r--r--node_modules/node-sass/test/cli.js804
-rw-r--r--node_modules/node-sass/test/downloadoptions.js74
-rw-r--r--node_modules/node-sass/test/errors.js53
-rw-r--r--node_modules/node-sass/test/fixtures/compressed/expected.css1
-rw-r--r--node_modules/node-sass/test/fixtures/compressed/index.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/custom-functions/setter-expected.css3
-rw-r--r--node_modules/node-sass/test/fixtures/custom-functions/setter.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/custom-functions/string-conversion-expected.css2
-rw-r--r--node_modules/node-sass/test/fixtures/custom-functions/string-conversion.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/cwd-include-path/expected.css2
-rw-r--r--node_modules/node-sass/test/fixtures/cwd-include-path/outside.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/cwd-include-path/root/index.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/_common.scss6
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/_struct.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/_vars.scss5
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/a.scss7
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/a1.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/b.scss5
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/b1.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/expected.css32
-rw-r--r--node_modules/node-sass/test/fixtures/depth-first/index.scss8
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_arrays_of_importers.js12
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_functions_setter.js10
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_functions_string_conversion.js8
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_importer_data.js5
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_importer_data_cb.js5
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_importer_error.js3
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_importer_file.js7
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data.js6
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data_cb.js6
-rw-r--r--node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_cb.js7
-rw-r--r--node_modules/node-sass/test/fixtures/follow/foo/bar/index.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/include-files/bar.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/include-files/chained-imports-with-custom-importer.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/include-files/expected-importer.css5
-rw-r--r--node_modules/node-sass/test/fixtures/include-files/file-not-processed-by-loader.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/include-files/file-processed-by-loader.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/include-files/foo.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/include-files/index.scss2
-rw-r--r--node_modules/node-sass/test/fixtures/include-path/expected.css3
-rw-r--r--node_modules/node-sass/test/fixtures/include-path/functions/colorBlue.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/include-path/index.scss7
-rw-r--r--node_modules/node-sass/test/fixtures/include-path/lib/vars.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/indent/expected.css2
-rw-r--r--node_modules/node-sass/test/fixtures/indent/index.sass3
-rw-r--r--node_modules/node-sass/test/fixtures/input-directory/sass/_skipped.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/input-directory/sass/nested/three.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/input-directory/sass/one.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/input-directory/sass/two.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/invalid/index.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/output-directory/index.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/precision/expected.css2
-rw-r--r--node_modules/node-sass/test/fixtures/precision/index.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/sass-path/expected-orange.css3
-rw-r--r--node_modules/node-sass/test/fixtures/sass-path/expected-red.css3
-rw-r--r--node_modules/node-sass/test/fixtures/sass-path/index.scss6
-rw-r--r--node_modules/node-sass/test/fixtures/sass-path/orange/colors.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/sass-path/red/colors.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/simple/expected.css11
-rw-r--r--node_modules/node-sass/test/fixtures/simple/index.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/source-comments/expected.css15
-rw-r--r--node_modules/node-sass/test/fixtures/source-comments/index.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/source-map-embed/expected.css13
-rw-r--r--node_modules/node-sass/test/fixtures/source-map-embed/index.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/source-map/expected.css13
-rw-r--r--node_modules/node-sass/test/fixtures/source-map/expected.map9
-rw-r--r--node_modules/node-sass/test/fixtures/source-map/index.scss16
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/main/one.scss5
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/main/partials/_one.scss5
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/main/partials/_three.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/main/partials/_two.scss5
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/main/three.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/main/two.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/sibling/partials/_three.scss3
-rw-r--r--node_modules/node-sass/test/fixtures/watcher/sibling/three.scss5
-rw-r--r--node_modules/node-sass/test/fixtures/watching-dir-01/index.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/watching-dir-02/foo.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/watching-dir-02/index.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/watching/bar.sass2
-rw-r--r--node_modules/node-sass/test/fixtures/watching/index.sass1
-rw-r--r--node_modules/node-sass/test/fixtures/watching/index.scss1
-rw-r--r--node_modules/node-sass/test/fixtures/watching/white.scss1
-rw-r--r--node_modules/node-sass/test/lowlevel.js243
-rw-r--r--node_modules/node-sass/test/runtime.js185
-rw-r--r--node_modules/node-sass/test/scripts/util/proxy.js76
-rw-r--r--node_modules/node-sass/test/spec.js192
-rw-r--r--node_modules/node-sass/test/types.js643
-rw-r--r--node_modules/node-sass/test/useragent.js15
-rw-r--r--node_modules/node-sass/test/watcher.js503
-rw-r--r--node_modules/node-sass/vendor/darwin-x64-64/binding.nodebin3164056 -> 0 bytes
-rw-r--r--node_modules/nopt/.npmignore1
-rw-r--r--node_modules/nopt/.travis.yml9
-rw-r--r--node_modules/nopt/LICENSE15
-rw-r--r--node_modules/nopt/README.md211
-rwxr-xr-xnode_modules/nopt/bin/nopt.js54
-rwxr-xr-xnode_modules/nopt/examples/my-program.js30
-rw-r--r--node_modules/nopt/lib/nopt.js415
-rw-r--r--node_modules/nopt/package.json57
-rw-r--r--node_modules/nopt/test/basic.js273
-rw-r--r--node_modules/normalize-package-data/AUTHORS4
-rw-r--r--node_modules/normalize-package-data/LICENSE30
-rw-r--r--node_modules/normalize-package-data/README.md106
-rw-r--r--node_modules/normalize-package-data/lib/extract_description.js14
-rw-r--r--node_modules/normalize-package-data/lib/fixer.js418
-rw-r--r--node_modules/normalize-package-data/lib/make_warning.js23
-rw-r--r--node_modules/normalize-package-data/lib/normalize.js39
-rw-r--r--node_modules/normalize-package-data/lib/safe_format.js9
-rw-r--r--node_modules/normalize-package-data/lib/typos.json25
-rw-r--r--node_modules/normalize-package-data/lib/warning_messages.json30
-rw-r--r--node_modules/normalize-package-data/package.json78
-rw-r--r--node_modules/npmlog/CHANGELOG.md49
-rw-r--r--node_modules/npmlog/LICENSE15
-rw-r--r--node_modules/npmlog/README.md216
-rw-r--r--node_modules/npmlog/log.js309
-rw-r--r--node_modules/npmlog/package.json62
-rw-r--r--node_modules/number-is-nan/index.js4
-rw-r--r--node_modules/number-is-nan/license21
-rw-r--r--node_modules/number-is-nan/package.json68
-rw-r--r--node_modules/number-is-nan/readme.md28
-rw-r--r--node_modules/oauth-sign/LICENSE55
-rw-r--r--node_modules/oauth-sign/README.md11
-rw-r--r--node_modules/oauth-sign/index.js146
-rw-r--r--node_modules/oauth-sign/package.json56
-rw-r--r--node_modules/object-assign/index.js90
-rw-r--r--node_modules/object-assign/license21
-rw-r--r--node_modules/object-assign/package.json75
-rw-r--r--node_modules/object-assign/readme.md61
-rw-r--r--node_modules/once/LICENSE15
-rw-r--r--node_modules/once/README.md79
-rw-r--r--node_modules/once/once.js42
-rw-r--r--node_modules/once/package.json67
-rw-r--r--node_modules/os-homedir/index.js24
-rw-r--r--node_modules/os-homedir/license21
-rw-r--r--node_modules/os-homedir/package.json73
-rw-r--r--node_modules/os-homedir/readme.md31
-rw-r--r--node_modules/os-tmpdir/index.js25
-rw-r--r--node_modules/os-tmpdir/license21
-rw-r--r--node_modules/os-tmpdir/package.json73
-rw-r--r--node_modules/os-tmpdir/readme.md32
-rw-r--r--node_modules/osenv/LICENSE15
-rw-r--r--node_modules/osenv/README.md63
-rw-r--r--node_modules/osenv/osenv.js72
-rw-r--r--node_modules/osenv/package.json73
-rw-r--r--node_modules/p-limit/index.d.ts38
-rw-r--r--node_modules/p-limit/index.js57
-rw-r--r--node_modules/p-limit/license9
-rw-r--r--node_modules/p-limit/package.json84
-rw-r--r--node_modules/p-limit/readme.md101
-rw-r--r--node_modules/p-locate/index.js34
-rw-r--r--node_modules/p-locate/license9
-rw-r--r--node_modules/p-locate/package.json83
-rw-r--r--node_modules/p-locate/readme.md88
-rw-r--r--node_modules/p-try/index.d.ts39
-rw-r--r--node_modules/p-try/index.js9
-rw-r--r--node_modules/p-try/license9
-rw-r--r--node_modules/p-try/package.json74
-rw-r--r--node_modules/p-try/readme.md58
-rw-r--r--node_modules/parse-json/index.js35
-rw-r--r--node_modules/parse-json/license21
-rw-r--r--node_modules/parse-json/package.json78
-rw-r--r--node_modules/parse-json/readme.md83
-rw-r--r--node_modules/parse-json/vendor/parse.js752
-rw-r--r--node_modules/parse-json/vendor/unicode.js71
-rw-r--r--node_modules/path-exists/index.js24
-rw-r--r--node_modules/path-exists/license21
-rw-r--r--node_modules/path-exists/package.json72
-rw-r--r--node_modules/path-exists/readme.md45
-rw-r--r--node_modules/path-is-absolute/index.js20
-rw-r--r--node_modules/path-is-absolute/license21
-rw-r--r--node_modules/path-is-absolute/package.json75
-rw-r--r--node_modules/path-is-absolute/readme.md59
-rw-r--r--node_modules/path-parse/.travis.yml9
-rw-r--r--node_modules/path-parse/LICENSE21
-rw-r--r--node_modules/path-parse/README.md42
-rw-r--r--node_modules/path-parse/index.js93
-rw-r--r--node_modules/path-parse/package.json61
-rw-r--r--node_modules/path-parse/test.js77
-rw-r--r--node_modules/path-type/index.js29
-rw-r--r--node_modules/path-type/license21
-rw-r--r--node_modules/path-type/package.json84
-rw-r--r--node_modules/path-type/readme.md42
-rw-r--r--node_modules/performance-now/.npmignore1
-rw-r--r--node_modules/performance-now/.tm_properties7
-rw-r--r--node_modules/performance-now/.travis.yml6
-rw-r--r--node_modules/performance-now/README.md30
-rw-r--r--node_modules/performance-now/lib/performance-now.js36
-rw-r--r--node_modules/performance-now/lib/performance-now.js.map10
-rw-r--r--node_modules/performance-now/license.txt7
-rw-r--r--node_modules/performance-now/package.json65
-rw-r--r--node_modules/performance-now/src/index.d.ts8
-rw-r--r--node_modules/performance-now/src/performance-now.coffee17
-rw-r--r--node_modules/performance-now/test/mocha.opts3
-rw-r--r--node_modules/performance-now/test/performance-now.coffee43
-rw-r--r--node_modules/performance-now/test/scripts.coffee27
-rwxr-xr-xnode_modules/performance-now/test/scripts/delayed-call.coffee11
-rwxr-xr-xnode_modules/performance-now/test/scripts/delayed-require.coffee12
-rwxr-xr-xnode_modules/performance-now/test/scripts/difference.coffee6
-rwxr-xr-xnode_modules/performance-now/test/scripts/initial-value.coffee10
-rw-r--r--node_modules/pify/index.js68
-rw-r--r--node_modules/pify/license21
-rw-r--r--node_modules/pify/package.json81
-rw-r--r--node_modules/pify/readme.md119
-rw-r--r--node_modules/pinkie-promise/index.js3
-rw-r--r--node_modules/pinkie-promise/license21
-rw-r--r--node_modules/pinkie-promise/package.json70
-rw-r--r--node_modules/pinkie-promise/readme.md28
-rw-r--r--node_modules/pinkie/index.js292
-rw-r--r--node_modules/pinkie/license21
-rw-r--r--node_modules/pinkie/package.json68
-rw-r--r--node_modules/pinkie/readme.md83
-rw-r--r--node_modules/process-nextick-args/index.js45
-rw-r--r--node_modules/process-nextick-args/license.md19
-rw-r--r--node_modules/process-nextick-args/package.json50
-rw-r--r--node_modules/process-nextick-args/readme.md18
-rw-r--r--node_modules/pseudomap/LICENSE15
-rw-r--r--node_modules/pseudomap/README.md60
-rw-r--r--node_modules/pseudomap/map.js9
-rw-r--r--node_modules/pseudomap/package.json54
-rw-r--r--node_modules/pseudomap/pseudomap.js113
-rw-r--r--node_modules/pseudomap/test/basic.js86
-rw-r--r--node_modules/psl/LICENSE9
-rw-r--r--node_modules/psl/README.md215
-rw-r--r--node_modules/psl/browserstack-logo.svg90
-rw-r--r--node_modules/psl/data/rules.json8834
-rw-r--r--node_modules/psl/dist/psl.js9645
-rw-r--r--node_modules/psl/dist/psl.min.js1
-rw-r--r--node_modules/psl/index.js269
-rw-r--r--node_modules/psl/package.json77
-rw-r--r--node_modules/punycode/LICENSE-MIT.txt20
-rw-r--r--node_modules/punycode/README.md122
-rw-r--r--node_modules/punycode/package.json85
-rw-r--r--node_modules/punycode/punycode.es6.js441
-rw-r--r--node_modules/punycode/punycode.js440
-rw-r--r--node_modules/qs/.editorconfig30
-rw-r--r--node_modules/qs/.eslintignore1
-rw-r--r--node_modules/qs/.eslintrc19
-rw-r--r--node_modules/qs/CHANGELOG.md226
-rw-r--r--node_modules/qs/LICENSE28
-rw-r--r--node_modules/qs/README.md475
-rw-r--r--node_modules/qs/dist/qs.js638
-rw-r--r--node_modules/qs/lib/formats.js18
-rw-r--r--node_modules/qs/lib/index.js11
-rw-r--r--node_modules/qs/lib/parse.js174
-rw-r--r--node_modules/qs/lib/stringify.js210
-rw-r--r--node_modules/qs/lib/utils.js213
-rw-r--r--node_modules/qs/package.json80
-rw-r--r--node_modules/qs/test/.eslintrc15
-rw-r--r--node_modules/qs/test/index.js7
-rw-r--r--node_modules/qs/test/parse.js574
-rw-r--r--node_modules/qs/test/stringify.js597
-rw-r--r--node_modules/qs/test/utils.js34
-rw-r--r--node_modules/read-pkg-up/index.js31
-rw-r--r--node_modules/read-pkg-up/license21
-rw-r--r--node_modules/read-pkg-up/package.json92
-rw-r--r--node_modules/read-pkg-up/readme.md79
-rw-r--r--node_modules/read-pkg/index.js48
-rw-r--r--node_modules/read-pkg/license21
-rw-r--r--node_modules/read-pkg/package.json74
-rw-r--r--node_modules/read-pkg/readme.md79
-rw-r--r--node_modules/readable-stream/.travis.yml34
-rw-r--r--node_modules/readable-stream/CONTRIBUTING.md38
-rw-r--r--node_modules/readable-stream/GOVERNANCE.md136
-rw-r--r--node_modules/readable-stream/LICENSE47
-rw-r--r--node_modules/readable-stream/README.md58
-rw-r--r--node_modules/readable-stream/doc/wg-meetings/2015-01-30.md60
-rw-r--r--node_modules/readable-stream/duplex-browser.js1
-rw-r--r--node_modules/readable-stream/duplex.js1
-rw-r--r--node_modules/readable-stream/lib/_stream_duplex.js131
-rw-r--r--node_modules/readable-stream/lib/_stream_passthrough.js47
-rw-r--r--node_modules/readable-stream/lib/_stream_readable.js1019
-rw-r--r--node_modules/readable-stream/lib/_stream_transform.js214
-rw-r--r--node_modules/readable-stream/lib/_stream_writable.js687
-rw-r--r--node_modules/readable-stream/lib/internal/streams/BufferList.js79
-rw-r--r--node_modules/readable-stream/lib/internal/streams/destroy.js74
-rw-r--r--node_modules/readable-stream/lib/internal/streams/stream-browser.js1
-rw-r--r--node_modules/readable-stream/lib/internal/streams/stream.js1
-rw-r--r--node_modules/readable-stream/package.json82
-rw-r--r--node_modules/readable-stream/passthrough.js1
-rw-r--r--node_modules/readable-stream/readable-browser.js7
-rw-r--r--node_modules/readable-stream/readable.js19
-rw-r--r--node_modules/readable-stream/transform.js1
-rw-r--r--node_modules/readable-stream/writable-browser.js1
-rw-r--r--node_modules/readable-stream/writable.js8
-rw-r--r--node_modules/redent/index.js7
-rw-r--r--node_modules/redent/license21
-rw-r--r--node_modules/redent/package.json75
-rw-r--r--node_modules/redent/readme.md48
-rw-r--r--node_modules/repeating/index.js24
-rw-r--r--node_modules/repeating/license21
-rw-r--r--node_modules/repeating/package.json69
-rw-r--r--node_modules/repeating/readme.md30
-rw-r--r--node_modules/request/CHANGELOG.md717
-rw-r--r--node_modules/request/LICENSE55
-rw-r--r--node_modules/request/README.md1133
-rwxr-xr-xnode_modules/request/index.js155
-rw-r--r--node_modules/request/lib/auth.js167
-rw-r--r--node_modules/request/lib/cookies.js38
-rw-r--r--node_modules/request/lib/getProxyFromURI.js79
-rw-r--r--node_modules/request/lib/har.js205
-rw-r--r--node_modules/request/lib/hawk.js89
-rw-r--r--node_modules/request/lib/helpers.js66
-rw-r--r--node_modules/request/lib/multipart.js112
-rw-r--r--node_modules/request/lib/oauth.js148
-rw-r--r--node_modules/request/lib/querystring.js50
-rw-r--r--node_modules/request/lib/redirect.js154
-rw-r--r--node_modules/request/lib/tunnel.js175
-rw-r--r--node_modules/request/package.json116
-rw-r--r--node_modules/request/request.js1553
-rw-r--r--node_modules/require-directory/.jshintrc67
-rw-r--r--node_modules/require-directory/.npmignore1
-rw-r--r--node_modules/require-directory/.travis.yml3
-rw-r--r--node_modules/require-directory/LICENSE22
-rw-r--r--node_modules/require-directory/README.markdown184
-rw-r--r--node_modules/require-directory/index.js86
-rw-r--r--node_modules/require-directory/package.json69
-rw-r--r--node_modules/require-main-filename/CHANGELOG.md26
-rw-r--r--node_modules/require-main-filename/LICENSE.txt14
-rw-r--r--node_modules/require-main-filename/README.md26
-rw-r--r--node_modules/require-main-filename/index.js18
-rw-r--r--node_modules/require-main-filename/package.json63
-rw-r--r--node_modules/resolve/.editorconfig20
-rw-r--r--node_modules/resolve/.eslintignore1
-rw-r--r--node_modules/resolve/.eslintrc39
-rw-r--r--node_modules/resolve/.travis.yml8
-rw-r--r--node_modules/resolve/LICENSE21
-rw-r--r--node_modules/resolve/appveyor.yml54
-rw-r--r--node_modules/resolve/example/async.js5
-rw-r--r--node_modules/resolve/example/sync.js3
-rw-r--r--node_modules/resolve/index.js6
-rw-r--r--node_modules/resolve/lib/async.js298
-rw-r--r--node_modules/resolve/lib/caller.js8
-rw-r--r--node_modules/resolve/lib/core.js53
-rw-r--r--node_modules/resolve/lib/core.json75
-rw-r--r--node_modules/resolve/lib/is-core.js5
-rw-r--r--node_modules/resolve/lib/node-modules-paths.js42
-rw-r--r--node_modules/resolve/lib/normalize-options.js10
-rw-r--r--node_modules/resolve/lib/sync.js191
-rw-r--r--node_modules/resolve/package.json76
-rw-r--r--node_modules/resolve/readme.markdown242
-rw-r--r--node_modules/resolve/test/.eslintrc5
-rw-r--r--node_modules/resolve/test/core.js85
-rw-r--r--node_modules/resolve/test/dotdot.js29
-rw-r--r--node_modules/resolve/test/dotdot/abc/index.js2
-rw-r--r--node_modules/resolve/test/dotdot/index.js1
-rw-r--r--node_modules/resolve/test/faulty_basedir.js29
-rw-r--r--node_modules/resolve/test/filter.js34
-rw-r--r--node_modules/resolve/test/filter_sync.js33
-rw-r--r--node_modules/resolve/test/mock.js239
-rw-r--r--node_modules/resolve/test/mock_sync.js141
-rw-r--r--node_modules/resolve/test/module_dir.js56
-rw-r--r--node_modules/resolve/test/module_dir/xmodules/aaa/index.js1
-rw-r--r--node_modules/resolve/test/module_dir/ymodules/aaa/index.js1
-rw-r--r--node_modules/resolve/test/module_dir/zmodules/bbb/main.js1
-rw-r--r--node_modules/resolve/test/module_dir/zmodules/bbb/package.json3
-rw-r--r--node_modules/resolve/test/node-modules-paths.js143
-rw-r--r--node_modules/resolve/test/node_path.js70
-rw-r--r--node_modules/resolve/test/node_path/x/aaa/index.js1
-rw-r--r--node_modules/resolve/test/node_path/x/ccc/index.js1
-rw-r--r--node_modules/resolve/test/node_path/y/bbb/index.js1
-rw-r--r--node_modules/resolve/test/node_path/y/ccc/index.js1
-rw-r--r--node_modules/resolve/test/nonstring.js9
-rw-r--r--node_modules/resolve/test/pathfilter.js75
-rw-r--r--node_modules/resolve/test/pathfilter/deep_ref/main.js0
-rw-r--r--node_modules/resolve/test/precedence.js23
-rw-r--r--node_modules/resolve/test/precedence/aaa.js1
-rw-r--r--node_modules/resolve/test/precedence/aaa/index.js1
-rw-r--r--node_modules/resolve/test/precedence/aaa/main.js1
-rw-r--r--node_modules/resolve/test/precedence/bbb.js1
-rw-r--r--node_modules/resolve/test/precedence/bbb/main.js1
-rw-r--r--node_modules/resolve/test/resolver.js450
-rw-r--r--node_modules/resolve/test/resolver/baz/doom.js0
-rw-r--r--node_modules/resolve/test/resolver/baz/package.json4
-rw-r--r--node_modules/resolve/test/resolver/baz/quux.js1
-rw-r--r--node_modules/resolve/test/resolver/browser_field/a.js0
-rw-r--r--node_modules/resolve/test/resolver/browser_field/b.js0
-rw-r--r--node_modules/resolve/test/resolver/browser_field/package.json5
-rw-r--r--node_modules/resolve/test/resolver/cup.coffee1
-rw-r--r--node_modules/resolve/test/resolver/dot_main/index.js1
-rw-r--r--node_modules/resolve/test/resolver/dot_main/package.json3
-rw-r--r--node_modules/resolve/test/resolver/dot_slash_main/index.js1
-rw-r--r--node_modules/resolve/test/resolver/dot_slash_main/package.json3
-rw-r--r--node_modules/resolve/test/resolver/foo.js1
-rw-r--r--node_modules/resolve/test/resolver/incorrect_main/index.js2
-rw-r--r--node_modules/resolve/test/resolver/incorrect_main/package.json3
-rw-r--r--node_modules/resolve/test/resolver/invalid_main/package.json7
-rw-r--r--node_modules/resolve/test/resolver/mug.coffee0
-rw-r--r--node_modules/resolve/test/resolver/mug.js0
-rw-r--r--node_modules/resolve/test/resolver/multirepo/lerna.json6
-rw-r--r--node_modules/resolve/test/resolver/multirepo/package.json20
-rw-r--r--node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js35
-rw-r--r--node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json14
-rw-r--r--node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js0
-rw-r--r--node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json14
-rw-r--r--node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js26
-rw-r--r--node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json15
-rw-r--r--node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js12
-rw-r--r--node_modules/resolve/test/resolver/other_path/lib/other-lib.js0
-rw-r--r--node_modules/resolve/test/resolver/other_path/root.js0
-rw-r--r--node_modules/resolve/test/resolver/quux/foo/index.js1
-rw-r--r--node_modules/resolve/test/resolver/same_names/foo.js1
-rw-r--r--node_modules/resolve/test/resolver/same_names/foo/index.js1
-rw-r--r--node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js0
-rw-r--r--node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep0
-rw-r--r--node_modules/resolve/test/resolver/symlinked/package/bar.js1
-rw-r--r--node_modules/resolve/test/resolver/symlinked/package/package.json3
-rw-r--r--node_modules/resolve/test/resolver/without_basedir/main.js5
-rw-r--r--node_modules/resolve/test/resolver_sync.js358
-rw-r--r--node_modules/resolve/test/shadowed_core.js38
-rw-r--r--node_modules/resolve/test/shadowed_core/node_modules/util/index.js0
-rw-r--r--node_modules/resolve/test/subdirs.js13
-rw-r--r--node_modules/resolve/test/symlinks.js173
-rw-r--r--node_modules/rimraf/LICENSE15
-rw-r--r--node_modules/rimraf/README.md101
-rwxr-xr-xnode_modules/rimraf/bin.js50
-rw-r--r--node_modules/rimraf/package.json68
-rw-r--r--node_modules/rimraf/rimraf.js372
-rw-r--r--node_modules/safe-buffer/LICENSE21
-rw-r--r--node_modules/safe-buffer/README.md584
-rw-r--r--node_modules/safe-buffer/index.d.ts187
-rw-r--r--node_modules/safe-buffer/index.js62
-rw-r--r--node_modules/safe-buffer/package.json65
-rw-r--r--node_modules/safer-buffer/LICENSE21
-rw-r--r--node_modules/safer-buffer/Porting-Buffer.md268
-rw-r--r--node_modules/safer-buffer/Readme.md156
-rw-r--r--node_modules/safer-buffer/dangerous.js58
-rw-r--r--node_modules/safer-buffer/package.json62
-rw-r--r--node_modules/safer-buffer/safer.js77
-rw-r--r--node_modules/safer-buffer/tests.js406
-rw-r--r--node_modules/sass-graph/CHANGELOG.md127
-rwxr-xr-xnode_modules/sass-graph/bin/sassgraph124
-rw-r--r--node_modules/sass-graph/package.json75
-rw-r--r--node_modules/sass-graph/parse-imports.js64
-rw-r--r--node_modules/sass-graph/readme.md123
-rw-r--r--node_modules/sass-graph/sass-graph.js160
-rw-r--r--node_modules/scss-tokenizer/LICENSE22
-rw-r--r--node_modules/scss-tokenizer/README.md50
-rw-r--r--node_modules/scss-tokenizer/index.js1
-rw-r--r--node_modules/scss-tokenizer/lib/entry.js21
-rw-r--r--node_modules/scss-tokenizer/lib/input.js57
-rw-r--r--node_modules/scss-tokenizer/lib/previous-map.js105
-rw-r--r--node_modules/scss-tokenizer/lib/tokenize-comment.js148
-rw-r--r--node_modules/scss-tokenizer/lib/tokenize-interpolant.js303
-rw-r--r--node_modules/scss-tokenizer/lib/tokenize-string.js130
-rw-r--r--node_modules/scss-tokenizer/lib/tokenize.js302
-rw-r--r--node_modules/scss-tokenizer/package.json71
-rw-r--r--node_modules/semver/CHANGELOG.md39
-rw-r--r--node_modules/semver/LICENSE15
-rw-r--r--node_modules/semver/README.md412
-rwxr-xr-xnode_modules/semver/bin/semver160
-rw-r--r--node_modules/semver/package.json60
-rw-r--r--node_modules/semver/range.bnf16
-rw-r--r--node_modules/semver/semver.js1483
-rw-r--r--node_modules/set-blocking/CHANGELOG.md26
-rw-r--r--node_modules/set-blocking/LICENSE.txt14
-rw-r--r--node_modules/set-blocking/README.md31
-rw-r--r--node_modules/set-blocking/index.js7
-rw-r--r--node_modules/set-blocking/package.json71
-rw-r--r--node_modules/signal-exit/CHANGELOG.md35
-rw-r--r--node_modules/signal-exit/LICENSE.txt16
-rw-r--r--node_modules/signal-exit/README.md39
-rw-r--r--node_modules/signal-exit/index.js163
-rw-r--r--node_modules/signal-exit/package.json67
-rw-r--r--node_modules/signal-exit/signals.js53
-rw-r--r--node_modules/source-map/README.md510
-rw-r--r--node_modules/source-map/build/assert-shim.js56
-rw-r--r--node_modules/source-map/build/mini-require.js152
-rw-r--r--node_modules/source-map/build/prefix-source-map.jsm21
-rw-r--r--node_modules/source-map/build/prefix-utils.jsm18
-rw-r--r--node_modules/source-map/build/suffix-browser.js8
-rw-r--r--node_modules/source-map/build/suffix-source-map.jsm6
-rw-r--r--node_modules/source-map/build/suffix-utils.jsm21
-rw-r--r--node_modules/source-map/build/test-prefix.js8
-rw-r--r--node_modules/source-map/build/test-suffix.js3
-rw-r--r--node_modules/source-map/lib/source-map.js8
-rw-r--r--node_modules/source-map/lib/source-map/array-set.js107
-rw-r--r--node_modules/source-map/lib/source-map/base64-vlq.js146
-rw-r--r--node_modules/source-map/lib/source-map/base64.js73
-rw-r--r--node_modules/source-map/lib/source-map/binary-search.js117
-rw-r--r--node_modules/source-map/lib/source-map/mapping-list.js86
-rw-r--r--node_modules/source-map/lib/source-map/quick-sort.js120
-rw-r--r--node_modules/source-map/lib/source-map/source-map-consumer.js1077
-rw-r--r--node_modules/source-map/lib/source-map/source-map-generator.js399
-rw-r--r--node_modules/source-map/lib/source-map/source-node.js414
-rw-r--r--node_modules/source-map/lib/source-map/util.js370
-rw-r--r--node_modules/source-map/package.json198
-rw-r--r--node_modules/spdx-correct/LICENSE202
-rw-r--r--node_modules/spdx-correct/README.md14
-rw-r--r--node_modules/spdx-correct/index.js364
-rw-r--r--node_modules/spdx-correct/package.json88
-rw-r--r--node_modules/spdx-exceptions/README.md36
-rw-r--r--node_modules/spdx-exceptions/index.json40
-rw-r--r--node_modules/spdx-exceptions/package.json55
-rw-r--r--node_modules/spdx-expression-parse/AUTHORS4
-rw-r--r--node_modules/spdx-expression-parse/LICENSE22
-rw-r--r--node_modules/spdx-expression-parse/README.md91
-rw-r--r--node_modules/spdx-expression-parse/index.js8
-rw-r--r--node_modules/spdx-expression-parse/package.json96
-rw-r--r--node_modules/spdx-expression-parse/parse.js138
-rw-r--r--node_modules/spdx-expression-parse/scan.js131
-rw-r--r--node_modules/spdx-license-ids/README.md52
-rw-r--r--node_modules/spdx-license-ids/deprecated.json24
-rw-r--r--node_modules/spdx-license-ids/index.json370
-rw-r--r--node_modules/spdx-license-ids/package.json75
-rw-r--r--node_modules/sshpk/.npmignore9
-rw-r--r--node_modules/sshpk/.travis.yml11
-rw-r--r--node_modules/sshpk/LICENSE18
-rw-r--r--node_modules/sshpk/README.md804
-rwxr-xr-xnode_modules/sshpk/bin/sshpk-conv243
-rwxr-xr-xnode_modules/sshpk/bin/sshpk-sign191
-rwxr-xr-xnode_modules/sshpk/bin/sshpk-verify167
-rw-r--r--node_modules/sshpk/lib/algs.js168
-rw-r--r--node_modules/sshpk/lib/certificate.js410
-rw-r--r--node_modules/sshpk/lib/dhe.js397
-rw-r--r--node_modules/sshpk/lib/ed-compat.js92
-rw-r--r--node_modules/sshpk/lib/errors.js84
-rw-r--r--node_modules/sshpk/lib/fingerprint.js220
-rw-r--r--node_modules/sshpk/lib/formats/auto.js124
-rw-r--r--node_modules/sshpk/lib/formats/dnssec.js287
-rw-r--r--node_modules/sshpk/lib/formats/openssh-cert.js352
-rw-r--r--node_modules/sshpk/lib/formats/pem.js290
-rw-r--r--node_modules/sshpk/lib/formats/pkcs1.js373
-rw-r--r--node_modules/sshpk/lib/formats/pkcs8.js631
-rw-r--r--node_modules/sshpk/lib/formats/putty.js99
-rw-r--r--node_modules/sshpk/lib/formats/rfc4253.js166
-rw-r--r--node_modules/sshpk/lib/formats/ssh-private.js262
-rw-r--r--node_modules/sshpk/lib/formats/ssh.js115
-rw-r--r--node_modules/sshpk/lib/formats/x509-pem.js88
-rw-r--r--node_modules/sshpk/lib/formats/x509.js752
-rw-r--r--node_modules/sshpk/lib/identity.js373
-rw-r--r--node_modules/sshpk/lib/index.js40
-rw-r--r--node_modules/sshpk/lib/key.js294
-rw-r--r--node_modules/sshpk/lib/private-key.js246
-rw-r--r--node_modules/sshpk/lib/signature.js314
-rw-r--r--node_modules/sshpk/lib/ssh-buffer.js149
-rw-r--r--node_modules/sshpk/lib/utils.js404
-rw-r--r--node_modules/sshpk/man/man1/sshpk-conv.1135
-rw-r--r--node_modules/sshpk/man/man1/sshpk-sign.181
-rw-r--r--node_modules/sshpk/man/man1/sshpk-verify.168
-rw-r--r--node_modules/sshpk/package.json96
-rw-r--r--node_modules/stdout-stream/.travis.yml6
-rw-r--r--node_modules/stdout-stream/LICENSE20
-rw-r--r--node_modules/stdout-stream/README.md45
-rw-r--r--node_modules/stdout-stream/index.js53
-rw-r--r--node_modules/stdout-stream/package.json48
-rw-r--r--node_modules/stdout-stream/test/fixtures/end.js8
-rw-r--r--node_modules/stdout-stream/test/fixtures/hello-world.js4
-rw-r--r--node_modules/stdout-stream/test/index.js33
-rw-r--r--node_modules/string-width/index.js37
-rw-r--r--node_modules/string-width/license21
-rw-r--r--node_modules/string-width/package.json92
-rw-r--r--node_modules/string-width/readme.md42
-rw-r--r--node_modules/string_decoder/.travis.yml50
-rw-r--r--node_modules/string_decoder/LICENSE48
-rw-r--r--node_modules/string_decoder/README.md47
-rw-r--r--node_modules/string_decoder/lib/string_decoder.js296
-rw-r--r--node_modules/string_decoder/package.json59
-rw-r--r--node_modules/strip-ansi/index.js6
-rw-r--r--node_modules/strip-ansi/license21
-rw-r--r--node_modules/strip-ansi/package.json105
-rw-r--r--node_modules/strip-ansi/readme.md33
-rw-r--r--node_modules/strip-bom/index.js17
-rw-r--r--node_modules/strip-bom/license21
-rw-r--r--node_modules/strip-bom/package.json74
-rw-r--r--node_modules/strip-bom/readme.md39
-rwxr-xr-xnode_modules/strip-indent/cli.js49
-rw-r--r--node_modules/strip-indent/index.js16
-rw-r--r--node_modules/strip-indent/license21
-rw-r--r--node_modules/strip-indent/package.json78
-rw-r--r--node_modules/strip-indent/readme.md61
-rw-r--r--node_modules/supports-color/index.js50
-rw-r--r--node_modules/supports-color/license21
-rw-r--r--node_modules/supports-color/package.json89
-rw-r--r--node_modules/supports-color/readme.md36
-rw-r--r--node_modules/tar/.nyc_output/0471d9cf-687f-4ae8-84a5-ce7468becd03.json1
-rw-r--r--node_modules/tar/.nyc_output/12bca2bc-6a2b-4f45-abc7-8483922a524d.json1
-rw-r--r--node_modules/tar/.nyc_output/37d58de4-deea-4808-bb77-d27685bd1501.json1
-rw-r--r--node_modules/tar/.nyc_output/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json1
-rw-r--r--node_modules/tar/.nyc_output/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json1
-rw-r--r--node_modules/tar/.nyc_output/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json1
-rw-r--r--node_modules/tar/.nyc_output/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json1
-rw-r--r--node_modules/tar/.nyc_output/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json1
-rw-r--r--node_modules/tar/.nyc_output/ea0194cb-f599-402f-8876-84fb8251e8db.json1
-rw-r--r--node_modules/tar/.nyc_output/eda6b7a3-5e15-440f-8619-e11a15a07f77.json1
-rw-r--r--node_modules/tar/.nyc_output/fb518800-240c-42ff-811f-79e92708d9db.json1
-rw-r--r--node_modules/tar/.nyc_output/fdecfc06-a944-4897-9530-e08f62883fc1.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/0471d9cf-687f-4ae8-84a5-ce7468becd03.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/12bca2bc-6a2b-4f45-abc7-8483922a524d.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/37d58de4-deea-4808-bb77-d27685bd1501.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/ea0194cb-f599-402f-8876-84fb8251e8db.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/eda6b7a3-5e15-440f-8619-e11a15a07f77.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/fb518800-240c-42ff-811f-79e92708d9db.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/fdecfc06-a944-4897-9530-e08f62883fc1.json1
-rw-r--r--node_modules/tar/.nyc_output/processinfo/index.json1
-rw-r--r--node_modules/tar/.travis.yml4
-rw-r--r--node_modules/tar/LICENSE12
-rw-r--r--node_modules/tar/README.md50
-rw-r--r--node_modules/tar/coverage/lcov-report/base.css212
-rw-r--r--node_modules/tar/coverage/lcov-report/index.html106
-rw-r--r--node_modules/tar/coverage/lcov-report/prettify.css1
-rw-r--r--node_modules/tar/coverage/lcov-report/prettify.js1
-rw-r--r--node_modules/tar/coverage/lcov-report/sort-arrow-sprite.pngbin209 -> 0 bytes
-rw-r--r--node_modules/tar/coverage/lcov-report/sorter.js158
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/index.html93
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/index.js.html119
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/create.js.html380
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/extract.js.html401
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/header.js.html881
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/high-level-opt.js.html152
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/index.html314
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/large-numbers.js.html341
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/list.js.html449
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/mkdir.js.html686
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/pack.js.html1268
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/parse.js.html1310
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/pax.js.html500
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/read-entry.js.html347
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/replace.js.html722
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/types.js.html197
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/unpack.js.html1604
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/update.js.html173
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/warn-mixin.js.html107
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/winchars.js.html134
-rw-r--r--node_modules/tar/coverage/lcov-report/tar/lib/write-entry.js.html1268
-rw-r--r--node_modules/tar/coverage/lcov.info3690
-rw-r--r--node_modules/tar/examples/extracter.js19
-rw-r--r--node_modules/tar/examples/packer.js24
-rw-r--r--node_modules/tar/examples/reader.js36
-rw-r--r--node_modules/tar/lib/buffer-entry.js30
-rw-r--r--node_modules/tar/lib/entry-writer.js169
-rw-r--r--node_modules/tar/lib/entry.js220
-rw-r--r--node_modules/tar/lib/extended-header-writer.js191
-rw-r--r--node_modules/tar/lib/extended-header.js140
-rw-r--r--node_modules/tar/lib/extract.js94
-rw-r--r--node_modules/tar/lib/global-header-writer.js14
-rw-r--r--node_modules/tar/lib/header.js385
-rw-r--r--node_modules/tar/lib/pack.js236
-rw-r--r--node_modules/tar/lib/parse.js281
-rw-r--r--node_modules/tar/package.json59
-rw-r--r--node_modules/tar/tar.js173
-rw-r--r--node_modules/tar/test/00-setup-fixtures.js53
-rw-r--r--node_modules/tar/test/cb-never-called-1.0.1.tgzbin4096 -> 0 bytes
-rw-r--r--node_modules/tar/test/dir-normalization.js177
-rw-r--r--node_modules/tar/test/error-on-broken.js33
-rw-r--r--node_modules/tar/test/extract-move.js132
-rw-r--r--node_modules/tar/test/extract.js367
-rw-r--r--node_modules/tar/test/fixtures.tgzbin19352 -> 0 bytes
-rw-r--r--node_modules/tar/test/header.js183
-rw-r--r--node_modules/tar/test/link-file-entry-collision.js39
-rw-r--r--node_modules/tar/test/link-file-entry-collision/bad-link.hex25
-rw-r--r--node_modules/tar/test/pack-no-proprietary.js886
-rw-r--r--node_modules/tar/test/pack.js952
-rw-r--r--node_modules/tar/test/parse-discard.js29
-rw-r--r--node_modules/tar/test/parse.js359
-rw-r--r--node_modules/tar/test/zz-cleanup.js20
-rw-r--r--node_modules/tough-cookie/LICENSE12
-rw-r--r--node_modules/tough-cookie/README.md527
-rw-r--r--node_modules/tough-cookie/lib/cookie.js1482
-rw-r--r--node_modules/tough-cookie/lib/memstore.js181
-rw-r--r--node_modules/tough-cookie/lib/pathMatch.js61
-rw-r--r--node_modules/tough-cookie/lib/permuteDomain.js56
-rw-r--r--node_modules/tough-cookie/lib/pubsuffix-psl.js38
-rw-r--r--node_modules/tough-cookie/lib/store.js75
-rw-r--r--node_modules/tough-cookie/lib/version.js2
-rw-r--r--node_modules/tough-cookie/package.json96
-rw-r--r--node_modules/trim-newlines/index.js13
-rw-r--r--node_modules/trim-newlines/license21
-rw-r--r--node_modules/trim-newlines/package.json74
-rw-r--r--node_modules/trim-newlines/readme.md46
-rw-r--r--node_modules/true-case-path/LICENSE201
-rw-r--r--node_modules/true-case-path/README.md52
-rw-r--r--node_modules/true-case-path/index.js32
-rw-r--r--node_modules/true-case-path/package.json56
-rw-r--r--node_modules/tunnel-agent/LICENSE55
-rw-r--r--node_modules/tunnel-agent/README.md4
-rw-r--r--node_modules/tunnel-agent/index.js244
-rw-r--r--node_modules/tunnel-agent/package.json55
-rw-r--r--node_modules/tweetnacl/.npmignore4
-rw-r--r--node_modules/tweetnacl/AUTHORS.md28
-rw-r--r--node_modules/tweetnacl/CHANGELOG.md221
-rw-r--r--node_modules/tweetnacl/LICENSE24
-rw-r--r--node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md20
-rw-r--r--node_modules/tweetnacl/README.md459
-rw-r--r--node_modules/tweetnacl/nacl-fast.js2388
-rw-r--r--node_modules/tweetnacl/nacl-fast.min.js2
-rw-r--r--node_modules/tweetnacl/nacl.d.ts98
-rw-r--r--node_modules/tweetnacl/nacl.js1175
-rw-r--r--node_modules/tweetnacl/nacl.min.js1
-rw-r--r--node_modules/tweetnacl/package.json86
-rw-r--r--node_modules/uri-js/README.md199
-rw-r--r--node_modules/uri-js/bower.json47
-rw-r--r--node_modules/uri-js/dist/es5/uri.all.d.ts59
-rw-r--r--node_modules/uri-js/dist/es5/uri.all.js1389
-rw-r--r--node_modules/uri-js/dist/es5/uri.all.js.map1
-rw-r--r--node_modules/uri-js/dist/es5/uri.all.min.d.ts59
-rw-r--r--node_modules/uri-js/dist/es5/uri.all.min.js3
-rw-r--r--node_modules/uri-js/dist/es5/uri.all.min.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/index.d.ts1
-rw-r--r--node_modules/uri-js/dist/esnext/index.js13
-rw-r--r--node_modules/uri-js/dist/esnext/index.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/regexps-iri.d.ts3
-rw-r--r--node_modules/uri-js/dist/esnext/regexps-iri.js3
-rw-r--r--node_modules/uri-js/dist/esnext/regexps-iri.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/regexps-uri.d.ts4
-rw-r--r--node_modules/uri-js/dist/esnext/regexps-uri.js42
-rw-r--r--node_modules/uri-js/dist/esnext/regexps-uri.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/http.d.ts3
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/http.js27
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/http.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/https.d.ts3
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/https.js9
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/https.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/mailto.d.ts12
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/mailto.js148
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/mailto.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts7
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/urn-uuid.js23
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/urn.d.ts10
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/urn.js49
-rw-r--r--node_modules/uri-js/dist/esnext/schemes/urn.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/uri.d.ts59
-rw-r--r--node_modules/uri-js/dist/esnext/uri.js480
-rw-r--r--node_modules/uri-js/dist/esnext/uri.js.map1
-rw-r--r--node_modules/uri-js/dist/esnext/util.d.ts6
-rw-r--r--node_modules/uri-js/dist/esnext/util.js36
-rw-r--r--node_modules/uri-js/dist/esnext/util.js.map1
-rw-r--r--node_modules/uri-js/package.json93
-rw-r--r--node_modules/uri-js/rollup.config.js32
-rw-r--r--node_modules/uri-js/src/index.ts18
-rw-r--r--node_modules/uri-js/src/punycode.d.ts24
-rw-r--r--node_modules/uri-js/src/regexps-iri.ts4
-rw-r--r--node_modules/uri-js/src/regexps-uri.ts89
-rw-r--r--node_modules/uri-js/src/schemes/http.ts36
-rw-r--r--node_modules/uri-js/src/schemes/https.ts11
-rw-r--r--node_modules/uri-js/src/schemes/mailto.ts182
-rw-r--r--node_modules/uri-js/src/schemes/urn-uuid.ts36
-rw-r--r--node_modules/uri-js/src/schemes/urn.ts69
-rw-r--r--node_modules/uri-js/src/uri.ts556
-rw-r--r--node_modules/uri-js/src/util.ts40
-rw-r--r--node_modules/uri-js/tests/qunit.css118
-rw-r--r--node_modules/uri-js/tests/qunit.js1042
-rw-r--r--node_modules/uri-js/tests/test-es5-min.html17
-rw-r--r--node_modules/uri-js/tests/test-es5.html17
-rw-r--r--node_modules/uri-js/tests/tests.js774
-rw-r--r--node_modules/uri-js/tsconfig.json20
-rw-r--r--node_modules/uri-js/yarn.lock1902
-rw-r--r--node_modules/util-deprecate/History.md16
-rw-r--r--node_modules/util-deprecate/LICENSE24
-rw-r--r--node_modules/util-deprecate/README.md53
-rw-r--r--node_modules/util-deprecate/browser.js67
-rw-r--r--node_modules/util-deprecate/node.js6
-rw-r--r--node_modules/util-deprecate/package.json56
-rw-r--r--node_modules/uuid/AUTHORS5
-rw-r--r--node_modules/uuid/CHANGELOG.md119
-rw-r--r--node_modules/uuid/LICENSE.md21
-rw-r--r--node_modules/uuid/README.md276
-rwxr-xr-xnode_modules/uuid/bin/uuid65
-rw-r--r--node_modules/uuid/index.js8
-rw-r--r--node_modules/uuid/lib/bytesToUuid.js26
-rw-r--r--node_modules/uuid/lib/md5-browser.js216
-rw-r--r--node_modules/uuid/lib/md5.js25
-rw-r--r--node_modules/uuid/lib/rng-browser.js34
-rw-r--r--node_modules/uuid/lib/rng.js8
-rw-r--r--node_modules/uuid/lib/sha1-browser.js89
-rw-r--r--node_modules/uuid/lib/sha1.js25
-rw-r--r--node_modules/uuid/lib/v35.js57
-rw-r--r--node_modules/uuid/package.json100
-rw-r--r--node_modules/uuid/v1.js109
-rw-r--r--node_modules/uuid/v3.js4
-rw-r--r--node_modules/uuid/v4.js29
-rw-r--r--node_modules/uuid/v5.js3
-rw-r--r--node_modules/validate-npm-package-license/LICENSE202
-rw-r--r--node_modules/validate-npm-package-license/README.md113
-rw-r--r--node_modules/validate-npm-package-license/index.js86
-rw-r--r--node_modules/validate-npm-package-license/package.json67
-rw-r--r--node_modules/verror/.npmignore9
-rw-r--r--node_modules/verror/CHANGES.md28
-rw-r--r--node_modules/verror/CONTRIBUTING.md19
-rw-r--r--node_modules/verror/LICENSE19
-rw-r--r--node_modules/verror/README.md528
-rw-r--r--node_modules/verror/lib/verror.js451
-rw-r--r--node_modules/verror/package.json51
-rw-r--r--node_modules/which-module/CHANGELOG.md26
-rw-r--r--node_modules/which-module/LICENSE13
-rw-r--r--node_modules/which-module/README.md55
-rw-r--r--node_modules/which-module/index.js9
-rw-r--r--node_modules/which-module/package.json68
-rw-r--r--node_modules/which/CHANGELOG.md152
-rw-r--r--node_modules/which/LICENSE15
-rw-r--r--node_modules/which/README.md51
-rwxr-xr-xnode_modules/which/bin/which52
-rw-r--r--node_modules/which/package.json66
-rw-r--r--node_modules/which/which.js135
-rw-r--r--node_modules/wide-align/LICENSE14
-rw-r--r--node_modules/wide-align/README.md47
-rw-r--r--node_modules/wide-align/align.js65
-rw-r--r--node_modules/wide-align/package.json66
-rwxr-xr-xnode_modules/wrap-ansi/index.js188
-rw-r--r--node_modules/wrap-ansi/license9
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-regex/index.js14
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-regex/license9
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-regex/package.json85
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-regex/readme.md87
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-styles/index.js165
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-styles/license9
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-styles/package.json88
-rw-r--r--node_modules/wrap-ansi/node_modules/ansi-styles/readme.md147
-rw-r--r--node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js46
-rw-r--r--node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license21
-rw-r--r--node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json77
-rw-r--r--node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md39
-rw-r--r--node_modules/wrap-ansi/node_modules/string-width/index.js39
-rw-r--r--node_modules/wrap-ansi/node_modules/string-width/license9
-rw-r--r--node_modules/wrap-ansi/node_modules/string-width/package.json88
-rw-r--r--node_modules/wrap-ansi/node_modules/string-width/readme.md45
-rw-r--r--node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts15
-rw-r--r--node_modules/wrap-ansi/node_modules/strip-ansi/index.js7
-rw-r--r--node_modules/wrap-ansi/node_modules/strip-ansi/license9
-rw-r--r--node_modules/wrap-ansi/node_modules/strip-ansi/package.json87
-rw-r--r--node_modules/wrap-ansi/node_modules/strip-ansi/readme.md61
-rw-r--r--node_modules/wrap-ansi/package.json96
-rw-r--r--node_modules/wrap-ansi/readme.md108
-rw-r--r--node_modules/wrappy/LICENSE15
-rw-r--r--node_modules/wrappy/README.md36
-rw-r--r--node_modules/wrappy/package.json59
-rw-r--r--node_modules/wrappy/wrappy.js33
-rw-r--r--node_modules/y18n/CHANGELOG.md21
-rw-r--r--node_modules/y18n/LICENSE13
-rw-r--r--node_modules/y18n/README.md109
-rw-r--r--node_modules/y18n/index.js188
-rw-r--r--node_modules/y18n/package.json67
-rw-r--r--node_modules/yallist/LICENSE15
-rw-r--r--node_modules/yallist/README.md204
-rw-r--r--node_modules/yallist/iterator.js7
-rw-r--r--node_modules/yallist/package.json62
-rw-r--r--node_modules/yallist/yallist.js370
-rw-r--r--node_modules/yargs-parser/CHANGELOG.md467
-rw-r--r--node_modules/yargs-parser/LICENSE.txt14
-rw-r--r--node_modules/yargs-parser/README.md396
-rw-r--r--node_modules/yargs-parser/index.js916
-rw-r--r--node_modules/yargs-parser/lib/tokenize-arg-string.js40
-rw-r--r--node_modules/yargs-parser/node_modules/camelcase/index.d.ts63
-rw-r--r--node_modules/yargs-parser/node_modules/camelcase/index.js76
-rw-r--r--node_modules/yargs-parser/node_modules/camelcase/license9
-rw-r--r--node_modules/yargs-parser/node_modules/camelcase/package.json75
-rw-r--r--node_modules/yargs-parser/node_modules/camelcase/readme.md99
-rw-r--r--node_modules/yargs-parser/package.json79
-rw-r--r--node_modules/yargs/CHANGELOG.md1335
-rw-r--r--node_modules/yargs/LICENSE22
-rw-r--r--node_modules/yargs/README.md122
-rw-r--r--node_modules/yargs/index.js32
-rw-r--r--node_modules/yargs/lib/apply-extends.js53
-rw-r--r--node_modules/yargs/lib/argsert.js68
-rw-r--r--node_modules/yargs/lib/command.js437
-rw-r--r--node_modules/yargs/lib/completion-templates.js49
-rw-r--r--node_modules/yargs/lib/completion.js115
-rw-r--r--node_modules/yargs/lib/decamelize.js32
-rw-r--r--node_modules/yargs/lib/is-promise.js3
-rw-r--r--node_modules/yargs/lib/levenshtein.js58
-rw-r--r--node_modules/yargs/lib/middleware.js65
-rw-r--r--node_modules/yargs/lib/obj-filter.js11
-rw-r--r--node_modules/yargs/lib/usage.js540
-rw-r--r--node_modules/yargs/lib/validation.js341
-rw-r--r--node_modules/yargs/lib/yerror.js11
-rw-r--r--node_modules/yargs/locales/be.json39
-rw-r--r--node_modules/yargs/locales/de.json39
-rw-r--r--node_modules/yargs/locales/en.json42
-rw-r--r--node_modules/yargs/locales/es.json39
-rw-r--r--node_modules/yargs/locales/fr.json37
-rw-r--r--node_modules/yargs/locales/hi.json42
-rw-r--r--node_modules/yargs/locales/hu.json39
-rw-r--r--node_modules/yargs/locales/id.json43
-rw-r--r--node_modules/yargs/locales/it.json39
-rw-r--r--node_modules/yargs/locales/ja.json42
-rw-r--r--node_modules/yargs/locales/ko.json42
-rw-r--r--node_modules/yargs/locales/nb.json37
-rw-r--r--node_modules/yargs/locales/nl.json42
-rw-r--r--node_modules/yargs/locales/nn.json39
-rw-r--r--node_modules/yargs/locales/pirate.json13
-rw-r--r--node_modules/yargs/locales/pl.json42
-rw-r--r--node_modules/yargs/locales/pt.json38
-rw-r--r--node_modules/yargs/locales/pt_BR.json42
-rw-r--r--node_modules/yargs/locales/ru.json39
-rw-r--r--node_modules/yargs/locales/th.json39
-rw-r--r--node_modules/yargs/locales/tr.json41
-rw-r--r--node_modules/yargs/locales/zh_CN.json41
-rw-r--r--node_modules/yargs/locales/zh_TW.json40
-rw-r--r--node_modules/yargs/node_modules/ansi-regex/index.js14
-rw-r--r--node_modules/yargs/node_modules/ansi-regex/license9
-rw-r--r--node_modules/yargs/node_modules/ansi-regex/package.json85
-rw-r--r--node_modules/yargs/node_modules/ansi-regex/readme.md87
-rw-r--r--node_modules/yargs/node_modules/find-up/index.js46
-rw-r--r--node_modules/yargs/node_modules/find-up/license9
-rw-r--r--node_modules/yargs/node_modules/find-up/package.json82
-rw-r--r--node_modules/yargs/node_modules/find-up/readme.md87
-rw-r--r--node_modules/yargs/node_modules/is-fullwidth-code-point/index.js46
-rw-r--r--node_modules/yargs/node_modules/is-fullwidth-code-point/license21
-rw-r--r--node_modules/yargs/node_modules/is-fullwidth-code-point/package.json77
-rw-r--r--node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md39
-rw-r--r--node_modules/yargs/node_modules/string-width/index.js39
-rw-r--r--node_modules/yargs/node_modules/string-width/license9
-rw-r--r--node_modules/yargs/node_modules/string-width/package.json88
-rw-r--r--node_modules/yargs/node_modules/string-width/readme.md45
-rw-r--r--node_modules/yargs/node_modules/strip-ansi/index.d.ts15
-rw-r--r--node_modules/yargs/node_modules/strip-ansi/index.js7
-rw-r--r--node_modules/yargs/node_modules/strip-ansi/license9
-rw-r--r--node_modules/yargs/node_modules/strip-ansi/package.json86
-rw-r--r--node_modules/yargs/node_modules/strip-ansi/readme.md61
-rw-r--r--node_modules/yargs/package.json109
-rw-r--r--node_modules/yargs/yargs.js1215
-rw-r--r--package-lock.json1400
-rw-r--r--package.json7
-rw-r--r--static/css/theme.css11398
3186 files changed, 16 insertions, 373123 deletions
diff --git a/static/css/custom.scss b/assets/sass/template.scss
index e7cc6af..3ac7148 100644
--- a/static/css/custom.scss
+++ b/assets/sass/template.scss
@@ -1,5 +1,5 @@
// === Import Bootstrap and variable overrides ===
-$body-bg: #f8f9fa;
+$body-bg: {{ .Param "style.backgroundColor" }};
$font-family-base: "Helvetica Neue", Arial, sans-serif;
$font-size-base: 0.95rem;
@@ -70,28 +70,28 @@ h3, h4 {
}
p {
- margin-bottom: 0.7rem;
+ margin-bottom: 0.7rem;
}
header {
- h2 {
- a, a:hover {
- color: $body-color;
- }
- }
+ h2 {
+ a, a:hover {
+ color: $body-color;
+ }
+ }
}
img {
- border-radius: 0.20rem;
+ border-radius: 0.20rem;
}
h4 {
- margin-top: 2.2rem;
- margin-bottom: 0.7rem;
+ margin-top: 2.2rem;
+ margin-bottom: 0.7rem;
}
a {
- text-decoration: underline;
+ text-decoration: underline;
}
// === Media breakpoints ===
diff --git a/static/css/webfonts/fa-brands-400.eot b/assets/sass/webfonts/fa-brands-400.eot
index 4f991ad..4f991ad 100644
--- a/static/css/webfonts/fa-brands-400.eot
+++ b/assets/sass/webfonts/fa-brands-400.eot
Binary files differ
diff --git a/static/css/webfonts/fa-brands-400.svg b/assets/sass/webfonts/fa-brands-400.svg
index c5f544c..c5f544c 100644
--- a/static/css/webfonts/fa-brands-400.svg
+++ b/assets/sass/webfonts/fa-brands-400.svg
diff --git a/static/css/webfonts/fa-brands-400.ttf b/assets/sass/webfonts/fa-brands-400.ttf
index 8836d9f..8836d9f 100644
--- a/static/css/webfonts/fa-brands-400.ttf
+++ b/assets/sass/webfonts/fa-brands-400.ttf
Binary files differ
diff --git a/static/css/webfonts/fa-brands-400.woff b/assets/sass/webfonts/fa-brands-400.woff
index d65148d..d65148d 100644
--- a/static/css/webfonts/fa-brands-400.woff
+++ b/assets/sass/webfonts/fa-brands-400.woff
Binary files differ
diff --git a/static/css/webfonts/fa-brands-400.woff2 b/assets/sass/webfonts/fa-brands-400.woff2
index e2bfe66..e2bfe66 100644
--- a/static/css/webfonts/fa-brands-400.woff2
+++ b/assets/sass/webfonts/fa-brands-400.woff2
Binary files differ
diff --git a/static/css/webfonts/fa-regular-400.eot b/assets/sass/webfonts/fa-regular-400.eot
index f9c3418..f9c3418 100644
--- a/static/css/webfonts/fa-regular-400.eot
+++ b/assets/sass/webfonts/fa-regular-400.eot
Binary files differ
diff --git a/static/css/webfonts/fa-regular-400.svg b/assets/sass/webfonts/fa-regular-400.svg
index 38b6671..38b6671 100644
--- a/static/css/webfonts/fa-regular-400.svg
+++ b/assets/sass/webfonts/fa-regular-400.svg
diff --git a/static/css/webfonts/fa-regular-400.ttf b/assets/sass/webfonts/fa-regular-400.ttf
index b4abb3d..b4abb3d 100644
--- a/static/css/webfonts/fa-regular-400.ttf
+++ b/assets/sass/webfonts/fa-regular-400.ttf
Binary files differ
diff --git a/static/css/webfonts/fa-regular-400.woff b/assets/sass/webfonts/fa-regular-400.woff
index b741435..b741435 100644
--- a/static/css/webfonts/fa-regular-400.woff
+++ b/assets/sass/webfonts/fa-regular-400.woff
Binary files differ
diff --git a/static/css/webfonts/fa-regular-400.woff2 b/assets/sass/webfonts/fa-regular-400.woff2
index 7faee56..7faee56 100644
--- a/static/css/webfonts/fa-regular-400.woff2
+++ b/assets/sass/webfonts/fa-regular-400.woff2
Binary files differ
diff --git a/static/css/webfonts/fa-solid-900.eot b/assets/sass/webfonts/fa-solid-900.eot
index bf4fd60..bf4fd60 100644
--- a/static/css/webfonts/fa-solid-900.eot
+++ b/assets/sass/webfonts/fa-solid-900.eot
Binary files differ
diff --git a/static/css/webfonts/fa-solid-900.svg b/assets/sass/webfonts/fa-solid-900.svg
index 35b7866..35b7866 100644
--- a/static/css/webfonts/fa-solid-900.svg
+++ b/assets/sass/webfonts/fa-solid-900.svg
diff --git a/static/css/webfonts/fa-solid-900.ttf b/assets/sass/webfonts/fa-solid-900.ttf
index 9821bea..9821bea 100644
--- a/static/css/webfonts/fa-solid-900.ttf
+++ b/assets/sass/webfonts/fa-solid-900.ttf
Binary files differ
diff --git a/static/css/webfonts/fa-solid-900.woff b/assets/sass/webfonts/fa-solid-900.woff
index 4932553..4932553 100644
--- a/static/css/webfonts/fa-solid-900.woff
+++ b/assets/sass/webfonts/fa-solid-900.woff
Binary files differ
diff --git a/static/css/webfonts/fa-solid-900.woff2 b/assets/sass/webfonts/fa-solid-900.woff2
index 92c4d57..92c4d57 100644
--- a/static/css/webfonts/fa-solid-900.woff2
+++ b/assets/sass/webfonts/fa-solid-900.woff2
Binary files differ
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 52e9674..861d4a3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -2,6 +2,8 @@
<title>{{ .Title }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="stylesheet" href="/css/theme.css"/>
+ {{ $sassTemplate := resources.Get "sass/template.scss" }}
+ {{ $style := $sassTemplate | resources.ExecuteAsTemplate "css/theme.scss" . | toCSS | minify }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}">
{{ template "_internal/google_analytics.html" . }}
</head>
diff --git a/node_modules/.bin/in-install b/node_modules/.bin/in-install
deleted file mode 120000
index 08c9689..0000000
--- a/node_modules/.bin/in-install
+++ /dev/null
@@ -1 +0,0 @@
-../in-publish/in-install.js \ No newline at end of file
diff --git a/node_modules/.bin/in-publish b/node_modules/.bin/in-publish
deleted file mode 120000
index ae9e779..0000000
--- a/node_modules/.bin/in-publish
+++ /dev/null
@@ -1 +0,0 @@
-../in-publish/in-publish.js \ No newline at end of file
diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp
deleted file mode 120000
index 017896c..0000000
--- a/node_modules/.bin/mkdirp
+++ /dev/null
@@ -1 +0,0 @@
-../mkdirp/bin/cmd.js \ No newline at end of file
diff --git a/node_modules/.bin/node-gyp b/node_modules/.bin/node-gyp
deleted file mode 120000
index 9b31a4f..0000000
--- a/node_modules/.bin/node-gyp
+++ /dev/null
@@ -1 +0,0 @@
-../node-gyp/bin/node-gyp.js \ No newline at end of file
diff --git a/node_modules/.bin/node-sass b/node_modules/.bin/node-sass
deleted file mode 120000
index a4b0134..0000000
--- a/node_modules/.bin/node-sass
+++ /dev/null
@@ -1 +0,0 @@
-../node-sass/bin/node-sass \ No newline at end of file
diff --git a/node_modules/.bin/nopt b/node_modules/.bin/nopt
deleted file mode 120000
index 6b6566e..0000000
--- a/node_modules/.bin/nopt
+++ /dev/null
@@ -1 +0,0 @@
-../nopt/bin/nopt.js \ No newline at end of file
diff --git a/node_modules/.bin/not-in-install b/node_modules/.bin/not-in-install
deleted file mode 120000
index dbfcf38..0000000
--- a/node_modules/.bin/not-in-install
+++ /dev/null
@@ -1 +0,0 @@
-../in-publish/not-in-install.js \ No newline at end of file
diff --git a/node_modules/.bin/not-in-publish b/node_modules/.bin/not-in-publish
deleted file mode 120000
index 5cc2922..0000000
--- a/node_modules/.bin/not-in-publish
+++ /dev/null
@@ -1 +0,0 @@
-../in-publish/not-in-publish.js \ No newline at end of file
diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf
deleted file mode 120000
index 4cd49a4..0000000
--- a/node_modules/.bin/rimraf
+++ /dev/null
@@ -1 +0,0 @@
-../rimraf/bin.js \ No newline at end of file
diff --git a/node_modules/.bin/sassgraph b/node_modules/.bin/sassgraph
deleted file mode 120000
index 901ada9..0000000
--- a/node_modules/.bin/sassgraph
+++ /dev/null
@@ -1 +0,0 @@
-../sass-graph/bin/sassgraph \ No newline at end of file
diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver
deleted file mode 120000
index 317eb29..0000000
--- a/node_modules/.bin/semver
+++ /dev/null
@@ -1 +0,0 @@
-../semver/bin/semver \ No newline at end of file
diff --git a/node_modules/.bin/sshpk-conv b/node_modules/.bin/sshpk-conv
deleted file mode 120000
index a2a295c..0000000
--- a/node_modules/.bin/sshpk-conv
+++ /dev/null
@@ -1 +0,0 @@
-../sshpk/bin/sshpk-conv \ No newline at end of file
diff --git a/node_modules/.bin/sshpk-sign b/node_modules/.bin/sshpk-sign
deleted file mode 120000
index 766b9b3..0000000
--- a/node_modules/.bin/sshpk-sign
+++ /dev/null
@@ -1 +0,0 @@
-../sshpk/bin/sshpk-sign \ No newline at end of file
diff --git a/node_modules/.bin/sshpk-verify b/node_modules/.bin/sshpk-verify
deleted file mode 120000
index bfd7e3a..0000000
--- a/node_modules/.bin/sshpk-verify
+++ /dev/null
@@ -1 +0,0 @@
-../sshpk/bin/sshpk-verify \ No newline at end of file
diff --git a/node_modules/.bin/strip-indent b/node_modules/.bin/strip-indent
deleted file mode 120000
index dddee7e..0000000
--- a/node_modules/.bin/strip-indent
+++ /dev/null
@@ -1 +0,0 @@
-../strip-indent/cli.js \ No newline at end of file
diff --git a/node_modules/.bin/uuid b/node_modules/.bin/uuid
deleted file mode 120000
index b3e45bc..0000000
--- a/node_modules/.bin/uuid
+++ /dev/null
@@ -1 +0,0 @@
-../uuid/bin/uuid \ No newline at end of file
diff --git a/node_modules/.bin/which b/node_modules/.bin/which
deleted file mode 120000
index f62471c..0000000
--- a/node_modules/.bin/which
+++ /dev/null
@@ -1 +0,0 @@
-../which/bin/which \ No newline at end of file
diff --git a/node_modules/abbrev/LICENSE b/node_modules/abbrev/LICENSE
deleted file mode 100644
index 9bcfa9d..0000000
--- a/node_modules/abbrev/LICENSE
+++ /dev/null
@@ -1,46 +0,0 @@
-This software is dual-licensed under the ISC and MIT licenses.
-You may use this software under EITHER of the following licenses.
-
-----------
-
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-----------
-
-Copyright Isaac Z. Schlueter and Contributors
-All rights reserved.
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/abbrev/README.md b/node_modules/abbrev/README.md
deleted file mode 100644
index 99746fe..0000000
--- a/node_modules/abbrev/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# abbrev-js
-
-Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
-
-Usage:
-
- var abbrev = require("abbrev");
- abbrev("foo", "fool", "folding", "flop");
-
- // returns:
- { fl: 'flop'
- , flo: 'flop'
- , flop: 'flop'
- , fol: 'folding'
- , fold: 'folding'
- , foldi: 'folding'
- , foldin: 'folding'
- , folding: 'folding'
- , foo: 'foo'
- , fool: 'fool'
- }
-
-This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.
diff --git a/node_modules/abbrev/abbrev.js b/node_modules/abbrev/abbrev.js
deleted file mode 100644
index 7b1dc5d..0000000
--- a/node_modules/abbrev/abbrev.js
+++ /dev/null
@@ -1,61 +0,0 @@
-module.exports = exports = abbrev.abbrev = abbrev
-
-abbrev.monkeyPatch = monkeyPatch
-
-function monkeyPatch () {
- Object.defineProperty(Array.prototype, 'abbrev', {
- value: function () { return abbrev(this) },
- enumerable: false, configurable: true, writable: true
- })
-
- Object.defineProperty(Object.prototype, 'abbrev', {
- value: function () { return abbrev(Object.keys(this)) },
- enumerable: false, configurable: true, writable: true
- })
-}
-
-function abbrev (list) {
- if (arguments.length !== 1 || !Array.isArray(list)) {
- list = Array.prototype.slice.call(arguments, 0)
- }
- for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
- args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
- }
-
- // sort them lexicographically, so that they're next to their nearest kin
- args = args.sort(lexSort)
-
- // walk through each, seeing how much it has in common with the next and previous
- var abbrevs = {}
- , prev = ""
- for (var i = 0, l = args.length ; i < l ; i ++) {
- var current = args[i]
- , next = args[i + 1] || ""
- , nextMatches = true
- , prevMatches = true
- if (current === next) continue
- for (var j = 0, cl = current.length ; j < cl ; j ++) {
- var curChar = current.charAt(j)
- nextMatches = nextMatches && curChar === next.charAt(j)
- prevMatches = prevMatches && curChar === prev.charAt(j)
- if (!nextMatches && !prevMatches) {
- j ++
- break
- }
- }
- prev = current
- if (j === cl) {
- abbrevs[current] = current
- continue
- }
- for (var a = current.substr(0, j) ; j <= cl ; j ++) {
- abbrevs[a] = current
- a += current.charAt(j)
- }
- }
- return abbrevs
-}
-
-function lexSort (a, b) {
- return a === b ? 0 : a > b ? 1 : -1
-}
diff --git a/node_modules/abbrev/package.json b/node_modules/abbrev/package.json
deleted file mode 100644
index 3a74176..0000000
--- a/node_modules/abbrev/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_from": "abbrev@1",
- "_id": "abbrev@1.1.1",
- "_inBundle": false,
- "_integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
- "_location": "/abbrev",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "abbrev@1",
- "name": "abbrev",
- "escapedName": "abbrev",
- "rawSpec": "1",
- "saveSpec": null,
- "fetchSpec": "1"
- },
- "_requiredBy": [
- "/nopt"
- ],
- "_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "_shasum": "f8f2c887ad10bf67f634f005b6987fed3179aac8",
- "_spec": "abbrev@1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/nopt",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me"
- },
- "bugs": {
- "url": "https://github.com/isaacs/abbrev-js/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Like ruby's abbrev module, but in js",
- "devDependencies": {
- "tap": "^10.1"
- },
- "files": [
- "abbrev.js"
- ],
- "homepage": "https://github.com/isaacs/abbrev-js#readme",
- "license": "ISC",
- "main": "abbrev.js",
- "name": "abbrev",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/isaacs/abbrev-js.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test.js --100"
- },
- "version": "1.1.1"
-}
diff --git a/node_modules/ajv/.tonic_example.js b/node_modules/ajv/.tonic_example.js
deleted file mode 100644
index aa11812..0000000
--- a/node_modules/ajv/.tonic_example.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var Ajv = require('ajv');
-var ajv = new Ajv({allErrors: true});
-
-var schema = {
- "properties": {
- "foo": { "type": "string" },
- "bar": { "type": "number", "maximum": 3 }
- }
-};
-
-var validate = ajv.compile(schema);
-
-test({"foo": "abc", "bar": 2});
-test({"foo": 2, "bar": 4});
-
-function test(data) {
- var valid = validate(data);
- if (valid) console.log('Valid!');
- else console.log('Invalid: ' + ajv.errorsText(validate.errors));
-} \ No newline at end of file
diff --git a/node_modules/ajv/LICENSE b/node_modules/ajv/LICENSE
deleted file mode 100644
index 96ee719..0000000
--- a/node_modules/ajv/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015-2017 Evgeny Poberezkin
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/node_modules/ajv/README.md b/node_modules/ajv/README.md
deleted file mode 100644
index e13fdec..0000000
--- a/node_modules/ajv/README.md
+++ /dev/null
@@ -1,1452 +0,0 @@
-<img align="right" alt="Ajv logo" width="160" src="http://epoberezkin.github.io/ajv/images/ajv_logo.png">
-
-# Ajv: Another JSON Schema Validator
-
-The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/07.
-
-[![Build Status](https://travis-ci.org/epoberezkin/ajv.svg?branch=master)](https://travis-ci.org/epoberezkin/ajv)
-[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv)
-[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv)
-[![Coverage Status](https://coveralls.io/repos/epoberezkin/ajv/badge.svg?branch=master&service=github)](https://coveralls.io/github/epoberezkin/ajv?branch=master)
-[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv)
-[![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](https://github.com/sponsors/epoberezkin)
-
-## Please [sponsor Ajv](https://github.com/sponsors/epoberezkin)
-
-Dear Ajv users! ❤️
-
-I ask you to support the development of Ajv with donations. 🙏
-
-Since 2015 Ajv has become widely used, thanks to your help and contributions:
-
-- **90** contributors 🏗
-- **5,000** dependent npm packages ⚙️
-- **7,000** github stars, from GitHub users [all over the world](https://www.google.com/maps/d/u/0/viewer?mid=1MGRV8ciFUGIbO1l0EKFWNJGYE7iSkDxP&ll=-3.81666561775622e-14%2C4.821737100000007&z=2) ⭐️
-- **5,000,000** dependent repositories on GitHub 🚀
-- **120,000,000** npm downloads per month! 💯
-
-Your donations will fund futher development - small and large improvements, support of the next versions of JSON Schema specification, and, possibly, the code should be migrated to TypeScript to make it more maintainable.
-
-I will greatly appreciate anything you can help with to make it happen:
-
-- a **personal** donation - from $2 ☕️
-- your **company** donation - from $10 🍔
-- a **sponsorship** to get promoted on Ajv or related packages - from $50 💰
-- an **introduction** to a sponsor who would benefit from the promotion on Ajv page 🤝
-
-| Please [make donations via my GitHub sponsors page](https://github.com/sponsors/epoberezkin)<br>‼️ **GitHub will DOUBLE them** ‼️ |
-|---|
-
-#### Open Collective sponsors
-
-<a href="https://opencollective.com/ajv"><img src="https://opencollective.com/ajv/individuals.svg?width=890"></a>
-
-<a href="https://opencollective.com/ajv/organization/0/website"><img src="https://opencollective.com/ajv/organization/0/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/1/website"><img src="https://opencollective.com/ajv/organization/1/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/2/website"><img src="https://opencollective.com/ajv/organization/2/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/3/website"><img src="https://opencollective.com/ajv/organization/3/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/4/website"><img src="https://opencollective.com/ajv/organization/4/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/5/website"><img src="https://opencollective.com/ajv/organization/5/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/6/website"><img src="https://opencollective.com/ajv/organization/6/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/7/website"><img src="https://opencollective.com/ajv/organization/7/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/8/website"><img src="https://opencollective.com/ajv/organization/8/avatar.svg"></a>
-<a href="https://opencollective.com/ajv/organization/9/website"><img src="https://opencollective.com/ajv/organization/9/avatar.svg"></a>
-
-
-## Using version 6
-
-[JSON Schema draft-07](http://json-schema.org/latest/json-schema-validation.html) is published.
-
-[Ajv version 6.0.0](https://github.com/epoberezkin/ajv/releases/tag/v6.0.0) that supports draft-07 is released. It may require either migrating your schemas or updating your code (to continue using draft-04 and v5 schemas, draft-06 schemas will be supported without changes).
-
-__Please note__: To use Ajv with draft-06 schemas you need to explicitly add the meta-schema to the validator instance:
-
-```javascript
-ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'));
-```
-
-To use Ajv with draft-04 schemas in addition to explicitly adding meta-schema you also need to use option schemaId:
-
-```javascript
-var ajv = new Ajv({schemaId: 'id'});
-// If you want to use both draft-04 and draft-06/07 schemas:
-// var ajv = new Ajv({schemaId: 'auto'});
-ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-04.json'));
-```
-
-
-## Contents
-
-- [Performance](#performance)
-- [Features](#features)
-- [Getting started](#getting-started)
-- [Frequently Asked Questions](https://github.com/epoberezkin/ajv/blob/master/FAQ.md)
-- [Using in browser](#using-in-browser)
-- [Command line interface](#command-line-interface)
-- Validation
- - [Keywords](#validation-keywords)
- - [Annotation keywords](#annotation-keywords)
- - [Formats](#formats)
- - [Combining schemas with $ref](#ref)
- - [$data reference](#data-reference)
- - NEW: [$merge and $patch keywords](#merge-and-patch-keywords)
- - [Defining custom keywords](#defining-custom-keywords)
- - [Asynchronous schema compilation](#asynchronous-schema-compilation)
- - [Asynchronous validation](#asynchronous-validation)
-- [Security considerations](#security-considerations)
- - [Security contact](#security-contact)
- - [Untrusted schemas](#untrusted-schemas)
- - [Circular references in objects](#circular-references-in-javascript-objects)
- - [Trusted schemas](#security-risks-of-trusted-schemas)
- - [ReDoS attack](#redos-attack)
-- Modifying data during validation
- - [Filtering data](#filtering-data)
- - [Assigning defaults](#assigning-defaults)
- - [Coercing data types](#coercing-data-types)
-- API
- - [Methods](#api)
- - [Options](#options)
- - [Validation errors](#validation-errors)
-- [Plugins](#plugins)
-- [Related packages](#related-packages)
-- [Some packages using Ajv](#some-packages-using-ajv)
-- [Tests, Contributing, History, Support, License](#tests)
-
-
-## Performance
-
-Ajv generates code using [doT templates](https://github.com/olado/doT) to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization.
-
-Currently Ajv is the fastest and the most standard compliant validator according to these benchmarks:
-
-- [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark) - 50% faster than the second place
-- [jsck benchmark](https://github.com/pandastrike/jsck#benchmarks) - 20-190% faster
-- [z-schema benchmark](https://rawgit.com/zaggino/z-schema/master/benchmark/results.html)
-- [themis benchmark](https://cdn.rawgit.com/playlyfe/themis/master/benchmark/results.html)
-
-
-Performance of different validators by [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark):
-
-[![performance](https://chart.googleapis.com/chart?chxt=x,y&cht=bhs&chco=76A4FB&chls=2.0&chbh=32,4,1&chs=600x416&chxl=-1:|djv|ajv|json-schema-validator-generator|jsen|is-my-json-valid|themis|z-schema|jsck|skeemas|json-schema-library|tv4&chd=t:100,98,72.1,66.8,50.1,15.1,6.1,3.8,1.2,0.7,0.2)](https://github.com/ebdrup/json-schema-benchmark/blob/master/README.md#performance)
-
-
-## Features
-
-- Ajv implements full JSON Schema [draft-06/07](http://json-schema.org/) and draft-04 standards:
- - all validation keywords (see [JSON Schema validation keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md))
- - full support of remote refs (remote schemas have to be added with `addSchema` or compiled to be available)
- - support of circular references between schemas
- - correct string lengths for strings with unicode pairs (can be turned off)
- - [formats](#formats) defined by JSON Schema draft-07 standard and custom formats (can be turned off)
- - [validates schemas against meta-schema](#api-validateschema)
-- supports [browsers](#using-in-browser) and Node.js 0.10-8.x
-- [asynchronous loading](#asynchronous-schema-compilation) of referenced schemas during compilation
-- "All errors" validation mode with [option allErrors](#options)
-- [error messages with parameters](#validation-errors) describing error reasons to allow creating custom error messages
-- i18n error messages support with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package
-- [filtering data](#filtering-data) from additional properties
-- [assigning defaults](#assigning-defaults) to missing properties and items
-- [coercing data](#coercing-data-types) to the types specified in `type` keywords
-- [custom keywords](#defining-custom-keywords)
-- draft-06/07 keywords `const`, `contains`, `propertyNames` and `if/then/else`
-- draft-06 boolean schemas (`true`/`false` as a schema to always pass/fail).
-- keywords `switch`, `patternRequired`, `formatMaximum` / `formatMinimum` and `formatExclusiveMaximum` / `formatExclusiveMinimum` from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) with [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package
-- [$data reference](#data-reference) to use values from the validated data as values for the schema keywords
-- [asynchronous validation](#asynchronous-validation) of custom formats and keywords
-
-Currently Ajv is the only validator that passes all the tests from [JSON Schema Test Suite](https://github.com/json-schema/JSON-Schema-Test-Suite) (according to [json-schema-benchmark](https://github.com/ebdrup/json-schema-benchmark), apart from the test that requires that `1.0` is not an integer that is impossible to satisfy in JavaScript).
-
-
-## Install
-
-```
-npm install ajv
-```
-
-
-## <a name="usage"></a>Getting started
-
-Try it in the Node.js REPL: https://tonicdev.com/npm/ajv
-
-
-The fastest validation call:
-
-```javascript
-// Node.js require:
-var Ajv = require('ajv');
-// or ESM/TypeScript import
-import Ajv from 'ajv';
-
-var ajv = new Ajv(); // options can be passed, e.g. {allErrors: true}
-var validate = ajv.compile(schema);
-var valid = validate(data);
-if (!valid) console.log(validate.errors);
-```
-
-or with less code
-
-```javascript
-// ...
-var valid = ajv.validate(schema, data);
-if (!valid) console.log(ajv.errors);
-// ...
-```
-
-or
-
-```javascript
-// ...
-var valid = ajv.addSchema(schema, 'mySchema')
- .validate('mySchema', data);
-if (!valid) console.log(ajv.errorsText());
-// ...
-```
-
-See [API](#api) and [Options](#options) for more details.
-
-Ajv compiles schemas to functions and caches them in all cases (using schema serialized with [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) or a custom function as a key), so that the next time the same schema is used (not necessarily the same object instance) it won't be compiled again.
-
-The best performance is achieved when using compiled functions returned by `compile` or `getSchema` methods (there is no additional function call).
-
-__Please note__: every time a validation function or `ajv.validate` are called `errors` property is overwritten. You need to copy `errors` array reference to another variable if you want to use it later (e.g., in the callback). See [Validation errors](#validation-errors)
-
-__Note for TypeScript users__: `ajv` provides its own TypeScript declarations
-out of the box, so you don't need to install the deprecated `@types/ajv`
-module.
-
-
-## Using in browser
-
-You can require Ajv directly from the code you browserify - in this case Ajv will be a part of your bundle.
-
-If you need to use Ajv in several bundles you can create a separate UMD bundle using `npm run bundle` script (thanks to [siddo420](https://github.com/siddo420)).
-
-Then you need to load Ajv in the browser:
-```html
-<script src="ajv.min.js"></script>
-```
-
-This bundle can be used with different module systems; it creates global `Ajv` if no module system is found.
-
-The browser bundle is available on [cdnjs](https://cdnjs.com/libraries/ajv).
-
-Ajv is tested with these browsers:
-
-[![Sauce Test Status](https://saucelabs.com/browser-matrix/epoberezkin.svg)](https://saucelabs.com/u/epoberezkin)
-
-__Please note__: some frameworks, e.g. Dojo, may redefine global require in such way that is not compatible with CommonJS module format. In such case Ajv bundle has to be loaded before the framework and then you can use global Ajv (see issue [#234](https://github.com/epoberezkin/ajv/issues/234)).
-
-
-## Command line interface
-
-CLI is available as a separate npm package [ajv-cli](https://github.com/jessedc/ajv-cli). It supports:
-
-- compiling JSON Schemas to test their validity
-- BETA: generating standalone module exporting a validation function to be used without Ajv (using [ajv-pack](https://github.com/epoberezkin/ajv-pack))
-- migrate schemas to draft-07 (using [json-schema-migrate](https://github.com/epoberezkin/json-schema-migrate))
-- validating data file(s) against JSON Schema
-- testing expected validity of data against JSON Schema
-- referenced schemas
-- custom meta-schemas
-- files in JSON and JavaScript format
-- all Ajv options
-- reporting changes in data after validation in [JSON-patch](https://tools.ietf.org/html/rfc6902) format
-
-
-## Validation keywords
-
-Ajv supports all validation keywords from draft-07 of JSON Schema standard:
-
-- [type](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#type)
-- [for numbers](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-numbers) - maximum, minimum, exclusiveMaximum, exclusiveMinimum, multipleOf
-- [for strings](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-strings) - maxLength, minLength, pattern, format
-- [for arrays](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-arrays) - maxItems, minItems, uniqueItems, items, additionalItems, [contains](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#contains)
-- [for objects](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-objects) - maxProperties, minProperties, required, properties, patternProperties, additionalProperties, dependencies, [propertyNames](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#propertynames)
-- [for all types](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#keywords-for-all-types) - enum, [const](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#const)
-- [compound keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#compound-keywords) - not, oneOf, anyOf, allOf, [if/then/else](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#ifthenelse)
-
-With [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package Ajv also supports validation keywords from [JSON Schema extension proposals](https://github.com/json-schema/json-schema/wiki/v5-Proposals) for JSON Schema standard:
-
-- [patternRequired](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#patternrequired-proposed) - like `required` but with patterns that some property should match.
-- [formatMaximum, formatMinimum, formatExclusiveMaximum, formatExclusiveMinimum](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md#formatmaximum--formatminimum-and-exclusiveformatmaximum--exclusiveformatminimum-proposed) - setting limits for date, time, etc.
-
-See [JSON Schema validation keywords](https://github.com/epoberezkin/ajv/blob/master/KEYWORDS.md) for more details.
-
-
-## Annotation keywords
-
-JSON Schema specification defines several annotation keywords that describe schema itself but do not perform any validation.
-
-- `title` and `description`: information about the data represented by that schema
-- `$comment` (NEW in draft-07): information for developers. With option `$comment` Ajv logs or passes the comment string to the user-supplied function. See [Options](#options).
-- `default`: a default value of the data instance, see [Assigning defaults](#assigning-defaults).
-- `examples` (NEW in draft-06): an array of data instances. Ajv does not check the validity of these instances against the schema.
-- `readOnly` and `writeOnly` (NEW in draft-07): marks data-instance as read-only or write-only in relation to the source of the data (database, api, etc.).
-- `contentEncoding`: [RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.1 ), e.g., "base64".
-- `contentMediaType`: [RFC 2046](https://tools.ietf.org/html/rfc2046), e.g., "image/png".
-
-__Please note__: Ajv does not implement validation of the keywords `examples`, `contentEncoding` and `contentMediaType` but it reserves them. If you want to create a plugin that implements some of them, it should remove these keywords from the instance.
-
-
-## Formats
-
-Ajv implements formats defined by JSON Schema specification and several other formats. It is recommended NOT to use "format" keyword implementations with untrusted data, as they use potentially unsafe regular expressions - see [ReDoS attack](#redos-attack).
-
-__Please note__: if you need to use "format" keyword to validate untrusted data, you MUST assess their suitability and safety for your validation scenarios.
-
-The following formats are implemented for string validation with "format" keyword:
-
-- _date_: full-date according to [RFC3339](http://tools.ietf.org/html/rfc3339#section-5.6).
-- _time_: time with optional time-zone.
-- _date-time_: date-time from the same source (time-zone is mandatory). `date`, `time` and `date-time` validate ranges in `full` mode and only regexp in `fast` mode (see [options](#options)).
-- _uri_: full URI.
-- _uri-reference_: URI reference, including full and relative URIs.
-- _uri-template_: URI template according to [RFC6570](https://tools.ietf.org/html/rfc6570)
-- _url_ (deprecated): [URL record](https://url.spec.whatwg.org/#concept-url).
-- _email_: email address.
-- _hostname_: host name according to [RFC1034](http://tools.ietf.org/html/rfc1034#section-3.5).
-- _ipv4_: IP address v4.
-- _ipv6_: IP address v6.
-- _regex_: tests whether a string is a valid regular expression by passing it to RegExp constructor.
-- _uuid_: Universally Unique IDentifier according to [RFC4122](http://tools.ietf.org/html/rfc4122).
-- _json-pointer_: JSON-pointer according to [RFC6901](https://tools.ietf.org/html/rfc6901).
-- _relative-json-pointer_: relative JSON-pointer according to [this draft](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00).
-
-__Please note__: JSON Schema draft-07 also defines formats `iri`, `iri-reference`, `idn-hostname` and `idn-email` for URLs, hostnames and emails with international characters. Ajv does not implement these formats. If you create Ajv plugin that implements them please make a PR to mention this plugin here.
-
-There are two modes of format validation: `fast` and `full`. This mode affects formats `date`, `time`, `date-time`, `uri`, `uri-reference`, and `email`. See [Options](#options) for details.
-
-You can add additional formats and replace any of the formats above using [addFormat](#api-addformat) method.
-
-The option `unknownFormats` allows changing the default behaviour when an unknown format is encountered. In this case Ajv can either fail schema compilation (default) or ignore it (default in versions before 5.0.0). You also can whitelist specific format(s) to be ignored. See [Options](#options) for details.
-
-You can find regular expressions used for format validation and the sources that were used in [formats.js](https://github.com/epoberezkin/ajv/blob/master/lib/compile/formats.js).
-
-
-## <a name="ref"></a>Combining schemas with $ref
-
-You can structure your validation logic across multiple schema files and have schemas reference each other using `$ref` keyword.
-
-Example:
-
-```javascript
-var schema = {
- "$id": "http://example.com/schemas/schema.json",
- "type": "object",
- "properties": {
- "foo": { "$ref": "defs.json#/definitions/int" },
- "bar": { "$ref": "defs.json#/definitions/str" }
- }
-};
-
-var defsSchema = {
- "$id": "http://example.com/schemas/defs.json",
- "definitions": {
- "int": { "type": "integer" },
- "str": { "type": "string" }
- }
-};
-```
-
-Now to compile your schema you can either pass all schemas to Ajv instance:
-
-```javascript
-var ajv = new Ajv({schemas: [schema, defsSchema]});
-var validate = ajv.getSchema('http://example.com/schemas/schema.json');
-```
-
-or use `addSchema` method:
-
-```javascript
-var ajv = new Ajv;
-var validate = ajv.addSchema(defsSchema)
- .compile(schema);
-```
-
-See [Options](#options) and [addSchema](#api) method.
-
-__Please note__:
-- `$ref` is resolved as the uri-reference using schema $id as the base URI (see the example).
-- References can be recursive (and mutually recursive) to implement the schemas for different data structures (such as linked lists, trees, graphs, etc.).
-- You don't have to host your schema files at the URIs that you use as schema $id. These URIs are only used to identify the schemas, and according to JSON Schema specification validators should not expect to be able to download the schemas from these URIs.
-- The actual location of the schema file in the file system is not used.
-- You can pass the identifier of the schema as the second parameter of `addSchema` method or as a property name in `schemas` option. This identifier can be used instead of (or in addition to) schema $id.
-- You cannot have the same $id (or the schema identifier) used for more than one schema - the exception will be thrown.
-- You can implement dynamic resolution of the referenced schemas using `compileAsync` method. In this way you can store schemas in any system (files, web, database, etc.) and reference them without explicitly adding to Ajv instance. See [Asynchronous schema compilation](#asynchronous-schema-compilation).
-
-
-## $data reference
-
-With `$data` option you can use values from the validated data as the values for the schema keywords. See [proposal](https://github.com/json-schema-org/json-schema-spec/issues/51) for more information about how it works.
-
-`$data` reference is supported in the keywords: const, enum, format, maximum/minimum, exclusiveMaximum / exclusiveMinimum, maxLength / minLength, maxItems / minItems, maxProperties / minProperties, formatMaximum / formatMinimum, formatExclusiveMaximum / formatExclusiveMinimum, multipleOf, pattern, required, uniqueItems.
-
-The value of "$data" should be a [JSON-pointer](https://tools.ietf.org/html/rfc6901) to the data (the root is always the top level data object, even if the $data reference is inside a referenced subschema) or a [relative JSON-pointer](http://tools.ietf.org/html/draft-luff-relative-json-pointer-00) (it is relative to the current point in data; if the $data reference is inside a referenced subschema it cannot point to the data outside of the root level for this subschema).
-
-Examples.
-
-This schema requires that the value in property `smaller` is less or equal than the value in the property larger:
-
-```javascript
-var ajv = new Ajv({$data: true});
-
-var schema = {
- "properties": {
- "smaller": {
- "type": "number",
- "maximum": { "$data": "1/larger" }
- },
- "larger": { "type": "number" }
- }
-};
-
-var validData = {
- smaller: 5,
- larger: 7
-};
-
-ajv.validate(schema, validData); // true
-```
-
-This schema requires that the properties have the same format as their field names:
-
-```javascript
-var schema = {
- "additionalProperties": {
- "type": "string",
- "format": { "$data": "0#" }
- }
-};
-
-var validData = {
- 'date-time': '1963-06-19T08:30:06.283185Z',
- email: 'joe.bloggs@example.com'
-}
-```
-
-`$data` reference is resolved safely - it won't throw even if some property is undefined. If `$data` resolves to `undefined` the validation succeeds (with the exclusion of `const` keyword). If `$data` resolves to incorrect type (e.g. not "number" for maximum keyword) the validation fails.
-
-
-## $merge and $patch keywords
-
-With the package [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) you can use the keywords `$merge` and `$patch` that allow extending JSON Schemas with patches using formats [JSON Merge Patch (RFC 7396)](https://tools.ietf.org/html/rfc7396) and [JSON Patch (RFC 6902)](https://tools.ietf.org/html/rfc6902).
-
-To add keywords `$merge` and `$patch` to Ajv instance use this code:
-
-```javascript
-require('ajv-merge-patch')(ajv);
-```
-
-Examples.
-
-Using `$merge`:
-
-```json
-{
- "$merge": {
- "source": {
- "type": "object",
- "properties": { "p": { "type": "string" } },
- "additionalProperties": false
- },
- "with": {
- "properties": { "q": { "type": "number" } }
- }
- }
-}
-```
-
-Using `$patch`:
-
-```json
-{
- "$patch": {
- "source": {
- "type": "object",
- "properties": { "p": { "type": "string" } },
- "additionalProperties": false
- },
- "with": [
- { "op": "add", "path": "/properties/q", "value": { "type": "number" } }
- ]
- }
-}
-```
-
-The schemas above are equivalent to this schema:
-
-```json
-{
- "type": "object",
- "properties": {
- "p": { "type": "string" },
- "q": { "type": "number" }
- },
- "additionalProperties": false
-}
-```
-
-The properties `source` and `with` in the keywords `$merge` and `$patch` can use absolute or relative `$ref` to point to other schemas previously added to the Ajv instance or to the fragments of the current schema.
-
-See the package [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) for more information.
-
-
-## Defining custom keywords
-
-The advantages of using custom keywords are:
-
-- allow creating validation scenarios that cannot be expressed using JSON Schema
-- simplify your schemas
-- help bringing a bigger part of the validation logic to your schemas
-- make your schemas more expressive, less verbose and closer to your application domain
-- implement custom data processors that modify your data (`modifying` option MUST be used in keyword definition) and/or create side effects while the data is being validated
-
-If a keyword is used only for side-effects and its validation result is pre-defined, use option `valid: true/false` in keyword definition to simplify both generated code (no error handling in case of `valid: true`) and your keyword functions (no need to return any validation result).
-
-The concerns you have to be aware of when extending JSON Schema standard with custom keywords are the portability and understanding of your schemas. You will have to support these custom keywords on other platforms and to properly document these keywords so that everybody can understand them in your schemas.
-
-You can define custom keywords with [addKeyword](#api-addkeyword) method. Keywords are defined on the `ajv` instance level - new instances will not have previously defined keywords.
-
-Ajv allows defining keywords with:
-- validation function
-- compilation function
-- macro function
-- inline compilation function that should return code (as string) that will be inlined in the currently compiled schema.
-
-Example. `range` and `exclusiveRange` keywords using compiled schema:
-
-```javascript
-ajv.addKeyword('range', {
- type: 'number',
- compile: function (sch, parentSchema) {
- var min = sch[0];
- var max = sch[1];
-
- return parentSchema.exclusiveRange === true
- ? function (data) { return data > min && data < max; }
- : function (data) { return data >= min && data <= max; }
- }
-});
-
-var schema = { "range": [2, 4], "exclusiveRange": true };
-var validate = ajv.compile(schema);
-console.log(validate(2.01)); // true
-console.log(validate(3.99)); // true
-console.log(validate(2)); // false
-console.log(validate(4)); // false
-```
-
-Several custom keywords (typeof, instanceof, range and propertyNames) are defined in [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package - they can be used for your schemas and as a starting point for your own custom keywords.
-
-See [Defining custom keywords](https://github.com/epoberezkin/ajv/blob/master/CUSTOM.md) for more details.
-
-
-## Asynchronous schema compilation
-
-During asynchronous compilation remote references are loaded using supplied function. See `compileAsync` [method](#api-compileAsync) and `loadSchema` [option](#options).
-
-Example:
-
-```javascript
-var ajv = new Ajv({ loadSchema: loadSchema });
-
-ajv.compileAsync(schema).then(function (validate) {
- var valid = validate(data);
- // ...
-});
-
-function loadSchema(uri) {
- return request.json(uri).then(function (res) {
- if (res.statusCode >= 400)
- throw new Error('Loading error: ' + res.statusCode);
- return res.body;
- });
-}
-```
-
-__Please note__: [Option](#options) `missingRefs` should NOT be set to `"ignore"` or `"fail"` for asynchronous compilation to work.
-
-
-## Asynchronous validation
-
-Example in Node.js REPL: https://tonicdev.com/esp/ajv-asynchronous-validation
-
-You can define custom formats and keywords that perform validation asynchronously by accessing database or some other service. You should add `async: true` in the keyword or format definition (see [addFormat](#api-addformat), [addKeyword](#api-addkeyword) and [Defining custom keywords](#defining-custom-keywords)).
-
-If your schema uses asynchronous formats/keywords or refers to some schema that contains them it should have `"$async": true` keyword so that Ajv can compile it correctly. If asynchronous format/keyword or reference to asynchronous schema is used in the schema without `$async` keyword Ajv will throw an exception during schema compilation.
-
-__Please note__: all asynchronous subschemas that are referenced from the current or other schemas should have `"$async": true` keyword as well, otherwise the schema compilation will fail.
-
-Validation function for an asynchronous custom format/keyword should return a promise that resolves with `true` or `false` (or rejects with `new Ajv.ValidationError(errors)` if you want to return custom errors from the keyword function).
-
-Ajv compiles asynchronous schemas to [es7 async functions](http://tc39.github.io/ecmascript-asyncawait/) that can optionally be transpiled with [nodent](https://github.com/MatAtBread/nodent). Async functions are supported in Node.js 7+ and all modern browsers. You can also supply any other transpiler as a function via `processCode` option. See [Options](#options).
-
-The compiled validation function has `$async: true` property (if the schema is asynchronous), so you can differentiate these functions if you are using both synchronous and asynchronous schemas.
-
-Validation result will be a promise that resolves with validated data or rejects with an exception `Ajv.ValidationError` that contains the array of validation errors in `errors` property.
-
-
-Example:
-
-```javascript
-var ajv = new Ajv;
-// require('ajv-async')(ajv);
-
-ajv.addKeyword('idExists', {
- async: true,
- type: 'number',
- validate: checkIdExists
-});
-
-
-function checkIdExists(schema, data) {
- return knex(schema.table)
- .select('id')
- .where('id', data)
- .then(function (rows) {
- return !!rows.length; // true if record is found
- });
-}
-
-var schema = {
- "$async": true,
- "properties": {
- "userId": {
- "type": "integer",
- "idExists": { "table": "users" }
- },
- "postId": {
- "type": "integer",
- "idExists": { "table": "posts" }
- }
- }
-};
-
-var validate = ajv.compile(schema);
-
-validate({ userId: 1, postId: 19 })
-.then(function (data) {
- console.log('Data is valid', data); // { userId: 1, postId: 19 }
-})
-.catch(function (err) {
- if (!(err instanceof Ajv.ValidationError)) throw err;
- // data is invalid
- console.log('Validation errors:', err.errors);
-});
-```
-
-### Using transpilers with asynchronous validation functions.
-
-[ajv-async](https://github.com/epoberezkin/ajv-async) uses [nodent](https://github.com/MatAtBread/nodent) to transpile async functions. To use another transpiler you should separately install it (or load its bundle in the browser).
-
-
-#### Using nodent
-
-```javascript
-var ajv = new Ajv;
-require('ajv-async')(ajv);
-// in the browser if you want to load ajv-async bundle separately you can:
-// window.ajvAsync(ajv);
-var validate = ajv.compile(schema); // transpiled es7 async function
-validate(data).then(successFunc).catch(errorFunc);
-```
-
-
-#### Using other transpilers
-
-```javascript
-var ajv = new Ajv({ processCode: transpileFunc });
-var validate = ajv.compile(schema); // transpiled es7 async function
-validate(data).then(successFunc).catch(errorFunc);
-```
-
-See [Options](#options).
-
-
-## Security considerations
-
-JSON Schema, if properly used, can replace data sanitisation. It doesn't replace other API security considerations. It also introduces additional security aspects to consider.
-
-
-##### Security contact
-
-To report a security vulnerability, please use the
-[Tidelift security contact](https://tidelift.com/security).
-Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerabilities via GitHub issues.
-
-
-##### Untrusted schemas
-
-Ajv treats JSON schemas as trusted as your application code. This security model is based on the most common use case, when the schemas are static and bundled together with the application.
-
-If your schemas are received from untrusted sources (or generated from untrusted data) there are several scenarios you need to prevent:
-- compiling schemas can cause stack overflow (if they are too deep)
-- compiling schemas can be slow (e.g. [#557](https://github.com/epoberezkin/ajv/issues/557))
-- validating certain data can be slow
-
-It is difficult to predict all the scenarios, but at the very least it may help to limit the size of untrusted schemas (e.g. limit JSON string length) and also the maximum schema object depth (that can be high for relatively small JSON strings). You also may want to mitigate slow regular expressions in `pattern` and `patternProperties` keywords.
-
-Regardless the measures you take, using untrusted schemas increases security risks.
-
-
-##### Circular references in JavaScript objects
-
-Ajv does not support schemas and validated data that have circular references in objects. See [issue #802](https://github.com/epoberezkin/ajv/issues/802).
-
-An attempt to compile such schemas or validate such data would cause stack overflow (or will not complete in case of asynchronous validation). Depending on the parser you use, untrusted data can lead to circular references.
-
-
-##### Security risks of trusted schemas
-
-Some keywords in JSON Schemas can lead to very slow validation for certain data. These keywords include (but may be not limited to):
-
-- `pattern` and `format` for large strings - in some cases using `maxLength` can help mitigate it, but certain regular expressions can lead to exponential validation time even with relatively short strings (see [ReDoS attack](#redos-attack)).
-- `patternProperties` for large property names - use `propertyNames` to mitigate, but some regular expressions can have exponential evaluation time as well.
-- `uniqueItems` for large non-scalar arrays - use `maxItems` to mitigate
-
-__Please note__: The suggestions above to prevent slow validation would only work if you do NOT use `allErrors: true` in production code (using it would continue validation after validation errors).
-
-You can validate your JSON schemas against [this meta-schema](https://github.com/epoberezkin/ajv/blob/master/lib/refs/json-schema-secure.json) to check that these recommendations are followed:
-
-```javascript
-const isSchemaSecure = ajv.compile(require('ajv/lib/refs/json-schema-secure.json'));
-
-const schema1 = {format: 'email'};
-isSchemaSecure(schema1); // false
-
-const schema2 = {format: 'email', maxLength: MAX_LENGTH};
-isSchemaSecure(schema2); // true
-```
-
-__Please note__: following all these recommendation is not a guarantee that validation of untrusted data is safe - it can still lead to some undesirable results.
-
-
-## ReDoS attack
-
-Certain regular expressions can lead to the exponential evaluation time even with relatively short strings.
-
-Please assess the regular expressions you use in the schemas on their vulnerability to this attack - see [safe-regex](https://github.com/substack/safe-regex), for example.
-
-__Please note__: some formats that Ajv implements use [regular expressions](https://github.com/epoberezkin/ajv/blob/master/lib/compile/formats.js) that can be vulnerable to ReDoS attack, so if you use Ajv to validate data from untrusted sources __it is strongly recommended__ to consider the following:
-
-- making assessment of "format" implementations in Ajv.
-- using `format: 'fast'` option that simplifies some of the regular expressions (although it does not guarantee that they are safe).
-- replacing format implementations provided by Ajv with your own implementations of "format" keyword that either uses different regular expressions or another approach to format validation. Please see [addFormat](#api-addformat) method.
-- disabling format validation by ignoring "format" keyword with option `format: false`
-
-Whatever mitigation you choose, please assume all formats provided by Ajv as potentially unsafe and make your own assessment of their suitability for your validation scenarios.
-
-
-## Filtering data
-
-With [option `removeAdditional`](#options) (added by [andyscott](https://github.com/andyscott)) you can filter data during the validation.
-
-This option modifies original data.
-
-Example:
-
-```javascript
-var ajv = new Ajv({ removeAdditional: true });
-var schema = {
- "additionalProperties": false,
- "properties": {
- "foo": { "type": "number" },
- "bar": {
- "additionalProperties": { "type": "number" },
- "properties": {
- "baz": { "type": "string" }
- }
- }
- }
-}
-
-var data = {
- "foo": 0,
- "additional1": 1, // will be removed; `additionalProperties` == false
- "bar": {
- "baz": "abc",
- "additional2": 2 // will NOT be removed; `additionalProperties` != false
- },
-}
-
-var validate = ajv.compile(schema);
-
-console.log(validate(data)); // true
-console.log(data); // { "foo": 0, "bar": { "baz": "abc", "additional2": 2 }
-```
-
-If `removeAdditional` option in the example above were `"all"` then both `additional1` and `additional2` properties would have been removed.
-
-If the option were `"failing"` then property `additional1` would have been removed regardless of its value and property `additional2` would have been removed only if its value were failing the schema in the inner `additionalProperties` (so in the example above it would have stayed because it passes the schema, but any non-number would have been removed).
-
-__Please note__: If you use `removeAdditional` option with `additionalProperties` keyword inside `anyOf`/`oneOf` keywords your validation can fail with this schema, for example:
-
-```json
-{
- "type": "object",
- "oneOf": [
- {
- "properties": {
- "foo": { "type": "string" }
- },
- "required": [ "foo" ],
- "additionalProperties": false
- },
- {
- "properties": {
- "bar": { "type": "integer" }
- },
- "required": [ "bar" ],
- "additionalProperties": false
- }
- ]
-}
-```
-
-The intention of the schema above is to allow objects with either the string property "foo" or the integer property "bar", but not with both and not with any other properties.
-
-With the option `removeAdditional: true` the validation will pass for the object `{ "foo": "abc"}` but will fail for the object `{"bar": 1}`. It happens because while the first subschema in `oneOf` is validated, the property `bar` is removed because it is an additional property according to the standard (because it is not included in `properties` keyword in the same schema).
-
-While this behaviour is unexpected (issues [#129](https://github.com/epoberezkin/ajv/issues/129), [#134](https://github.com/epoberezkin/ajv/issues/134)), it is correct. To have the expected behaviour (both objects are allowed and additional properties are removed) the schema has to be refactored in this way:
-
-```json
-{
- "type": "object",
- "properties": {
- "foo": { "type": "string" },
- "bar": { "type": "integer" }
- },
- "additionalProperties": false,
- "oneOf": [
- { "required": [ "foo" ] },
- { "required": [ "bar" ] }
- ]
-}
-```
-
-The schema above is also more efficient - it will compile into a faster function.
-
-
-## Assigning defaults
-
-With [option `useDefaults`](#options) Ajv will assign values from `default` keyword in the schemas of `properties` and `items` (when it is the array of schemas) to the missing properties and items.
-
-With the option value `"empty"` properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults.
-
-This option modifies original data.
-
-__Please note__: the default value is inserted in the generated validation code as a literal, so the value inserted in the data will be the deep clone of the default in the schema.
-
-
-Example 1 (`default` in `properties`):
-
-```javascript
-var ajv = new Ajv({ useDefaults: true });
-var schema = {
- "type": "object",
- "properties": {
- "foo": { "type": "number" },
- "bar": { "type": "string", "default": "baz" }
- },
- "required": [ "foo", "bar" ]
-};
-
-var data = { "foo": 1 };
-
-var validate = ajv.compile(schema);
-
-console.log(validate(data)); // true
-console.log(data); // { "foo": 1, "bar": "baz" }
-```
-
-Example 2 (`default` in `items`):
-
-```javascript
-var schema = {
- "type": "array",
- "items": [
- { "type": "number" },
- { "type": "string", "default": "foo" }
- ]
-}
-
-var data = [ 1 ];
-
-var validate = ajv.compile(schema);
-
-console.log(validate(data)); // true
-console.log(data); // [ 1, "foo" ]
-```
-
-`default` keywords in other cases are ignored:
-
-- not in `properties` or `items` subschemas
-- in schemas inside `anyOf`, `oneOf` and `not` (see [#42](https://github.com/epoberezkin/ajv/issues/42))
-- in `if` subschema of `switch` keyword
-- in schemas generated by custom macro keywords
-
-The [`strictDefaults` option](#options) customizes Ajv's behavior for the defaults that Ajv ignores (`true` raises an error, and `"log"` outputs a warning).
-
-
-## Coercing data types
-
-When you are validating user inputs all your data properties are usually strings. The option `coerceTypes` allows you to have your data types coerced to the types specified in your schema `type` keywords, both to pass the validation and to use the correctly typed data afterwards.
-
-This option modifies original data.
-
-__Please note__: if you pass a scalar value to the validating function its type will be coerced and it will pass the validation, but the value of the variable you pass won't be updated because scalars are passed by value.
-
-
-Example 1:
-
-```javascript
-var ajv = new Ajv({ coerceTypes: true });
-var schema = {
- "type": "object",
- "properties": {
- "foo": { "type": "number" },
- "bar": { "type": "boolean" }
- },
- "required": [ "foo", "bar" ]
-};
-
-var data = { "foo": "1", "bar": "false" };
-
-var validate = ajv.compile(schema);
-
-console.log(validate(data)); // true
-console.log(data); // { "foo": 1, "bar": false }
-```
-
-Example 2 (array coercions):
-
-```javascript
-var ajv = new Ajv({ coerceTypes: 'array' });
-var schema = {
- "properties": {
- "foo": { "type": "array", "items": { "type": "number" } },
- "bar": { "type": "boolean" }
- }
-};
-
-var data = { "foo": "1", "bar": ["false"] };
-
-var validate = ajv.compile(schema);
-
-console.log(validate(data)); // true
-console.log(data); // { "foo": [1], "bar": false }
-```
-
-The coercion rules, as you can see from the example, are different from JavaScript both to validate user input as expected and to have the coercion reversible (to correctly validate cases where different types are defined in subschemas of "anyOf" and other compound keywords).
-
-See [Coercion rules](https://github.com/epoberezkin/ajv/blob/master/COERCION.md) for details.
-
-
-## API
-
-##### new Ajv(Object options) -&gt; Object
-
-Create Ajv instance.
-
-
-##### .compile(Object schema) -&gt; Function&lt;Object data&gt;
-
-Generate validating function and cache the compiled schema for future use.
-
-Validating function returns a boolean value. This function has properties `errors` and `schema`. Errors encountered during the last validation are assigned to `errors` property (it is assigned `null` if there was no errors). `schema` property contains the reference to the original schema.
-
-The schema passed to this method will be validated against meta-schema unless `validateSchema` option is false. If schema is invalid, an error will be thrown. See [options](#options).
-
-
-##### <a name="api-compileAsync"></a>.compileAsync(Object schema [, Boolean meta] [, Function callback]) -&gt; Promise
-
-Asynchronous version of `compile` method that loads missing remote schemas using asynchronous function in `options.loadSchema`. This function returns a Promise that resolves to a validation function. An optional callback passed to `compileAsync` will be called with 2 parameters: error (or null) and validating function. The returned promise will reject (and the callback will be called with an error) when:
-
-- missing schema can't be loaded (`loadSchema` returns a Promise that rejects).
-- a schema containing a missing reference is loaded, but the reference cannot be resolved.
-- schema (or some loaded/referenced schema) is invalid.
-
-The function compiles schema and loads the first missing schema (or meta-schema) until all missing schemas are loaded.
-
-You can asynchronously compile meta-schema by passing `true` as the second parameter.
-
-See example in [Asynchronous compilation](#asynchronous-schema-compilation).
-
-
-##### .validate(Object schema|String key|String ref, data) -&gt; Boolean
-
-Validate data using passed schema (it will be compiled and cached).
-
-Instead of the schema you can use the key that was previously passed to `addSchema`, the schema id if it was present in the schema or any previously resolved reference.
-
-Validation errors will be available in the `errors` property of Ajv instance (`null` if there were no errors).
-
-__Please note__: every time this method is called the errors are overwritten so you need to copy them to another variable if you want to use them later.
-
-If the schema is asynchronous (has `$async` keyword on the top level) this method returns a Promise. See [Asynchronous validation](#asynchronous-validation).
-
-
-##### .addSchema(Array&lt;Object&gt;|Object schema [, String key]) -&gt; Ajv
-
-Add schema(s) to validator instance. This method does not compile schemas (but it still validates them). Because of that dependencies can be added in any order and circular dependencies are supported. It also prevents unnecessary compilation of schemas that are containers for other schemas but not used as a whole.
-
-Array of schemas can be passed (schemas should have ids), the second parameter will be ignored.
-
-Key can be passed that can be used to reference the schema and will be used as the schema id if there is no id inside the schema. If the key is not passed, the schema id will be used as the key.
-
-
-Once the schema is added, it (and all the references inside it) can be referenced in other schemas and used to validate data.
-
-Although `addSchema` does not compile schemas, explicit compilation is not required - the schema will be compiled when it is used first time.
-
-By default the schema is validated against meta-schema before it is added, and if the schema does not pass validation the exception is thrown. This behaviour is controlled by `validateSchema` option.
-
-__Please note__: Ajv uses the [method chaining syntax](https://en.wikipedia.org/wiki/Method_chaining) for all methods with the prefix `add*` and `remove*`.
-This allows you to do nice things like the following.
-
-```javascript
-var validate = new Ajv().addSchema(schema).addFormat(name, regex).getSchema(uri);
-```
-
-##### .addMetaSchema(Array&lt;Object&gt;|Object schema [, String key]) -&gt; Ajv
-
-Adds meta schema(s) that can be used to validate other schemas. That function should be used instead of `addSchema` because there may be instance options that would compile a meta schema incorrectly (at the moment it is `removeAdditional` option).
-
-There is no need to explicitly add draft-07 meta schema (http://json-schema.org/draft-07/schema) - it is added by default, unless option `meta` is set to `false`. You only need to use it if you have a changed meta-schema that you want to use to validate your schemas. See `validateSchema`.
-
-
-##### <a name="api-validateschema"></a>.validateSchema(Object schema) -&gt; Boolean
-
-Validates schema. This method should be used to validate schemas rather than `validate` due to the inconsistency of `uri` format in JSON Schema standard.
-
-By default this method is called automatically when the schema is added, so you rarely need to use it directly.
-
-If schema doesn't have `$schema` property, it is validated against draft 6 meta-schema (option `meta` should not be false).
-
-If schema has `$schema` property, then the schema with this id (that should be previously added) is used to validate passed schema.
-
-Errors will be available at `ajv.errors`.
-
-
-##### .getSchema(String key) -&gt; Function&lt;Object data&gt;
-
-Retrieve compiled schema previously added with `addSchema` by the key passed to `addSchema` or by its full reference (id). The returned validating function has `schema` property with the reference to the original schema.
-
-
-##### .removeSchema([Object schema|String key|String ref|RegExp pattern]) -&gt; Ajv
-
-Remove added/cached schema. Even if schema is referenced by other schemas it can be safely removed as dependent schemas have local references.
-
-Schema can be removed using:
-- key passed to `addSchema`
-- it's full reference (id)
-- RegExp that should match schema id or key (meta-schemas won't be removed)
-- actual schema object that will be stable-stringified to remove schema from cache
-
-If no parameter is passed all schemas but meta-schemas will be removed and the cache will be cleared.
-
-
-##### <a name="api-addformat"></a>.addFormat(String name, String|RegExp|Function|Object format) -&gt; Ajv
-
-Add custom format to validate strings or numbers. It can also be used to replace pre-defined formats for Ajv instance.
-
-Strings are converted to RegExp.
-
-Function should return validation result as `true` or `false`.
-
-If object is passed it should have properties `validate`, `compare` and `async`:
-
-- _validate_: a string, RegExp or a function as described above.
-- _compare_: an optional comparison function that accepts two strings and compares them according to the format meaning. This function is used with keywords `formatMaximum`/`formatMinimum` (defined in [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) package). It should return `1` if the first value is bigger than the second value, `-1` if it is smaller and `0` if it is equal.
-- _async_: an optional `true` value if `validate` is an asynchronous function; in this case it should return a promise that resolves with a value `true` or `false`.
-- _type_: an optional type of data that the format applies to. It can be `"string"` (default) or `"number"` (see https://github.com/epoberezkin/ajv/issues/291#issuecomment-259923858). If the type of data is different, the validation will pass.
-
-Custom formats can be also added via `formats` option.
-
-
-##### <a name="api-addkeyword"></a>.addKeyword(String keyword, Object definition) -&gt; Ajv
-
-Add custom validation keyword to Ajv instance.
-
-Keyword should be different from all standard JSON Schema keywords and different from previously defined keywords. There is no way to redefine keywords or to remove keyword definition from the instance.
-
-Keyword must start with a letter, `_` or `$`, and may continue with letters, numbers, `_`, `$`, or `-`.
-It is recommended to use an application-specific prefix for keywords to avoid current and future name collisions.
-
-Example Keywords:
-- `"xyz-example"`: valid, and uses prefix for the xyz project to avoid name collisions.
-- `"example"`: valid, but not recommended as it could collide with future versions of JSON Schema etc.
-- `"3-example"`: invalid as numbers are not allowed to be the first character in a keyword
-
-Keyword definition is an object with the following properties:
-
-- _type_: optional string or array of strings with data type(s) that the keyword applies to. If not present, the keyword will apply to all types.
-- _validate_: validating function
-- _compile_: compiling function
-- _macro_: macro function
-- _inline_: compiling function that returns code (as string)
-- _schema_: an optional `false` value used with "validate" keyword to not pass schema
-- _metaSchema_: an optional meta-schema for keyword schema
-- _dependencies_: an optional list of properties that must be present in the parent schema - it will be checked during schema compilation
-- _modifying_: `true` MUST be passed if keyword modifies data
-- _statements_: `true` can be passed in case inline keyword generates statements (as opposed to expression)
-- _valid_: pass `true`/`false` to pre-define validation result, the result returned from validation function will be ignored. This option cannot be used with macro keywords.
-- _$data_: an optional `true` value to support [$data reference](#data-reference) as the value of custom keyword. The reference will be resolved at validation time. If the keyword has meta-schema it would be extended to allow $data and it will be used to validate the resolved value. Supporting $data reference requires that keyword has validating function (as the only option or in addition to compile, macro or inline function).
-- _async_: an optional `true` value if the validation function is asynchronous (whether it is compiled or passed in _validate_ property); in this case it should return a promise that resolves with a value `true` or `false`. This option is ignored in case of "macro" and "inline" keywords.
-- _errors_: an optional boolean or string `"full"` indicating whether keyword returns errors. If this property is not set Ajv will determine if the errors were set in case of failed validation.
-
-_compile_, _macro_ and _inline_ are mutually exclusive, only one should be used at a time. _validate_ can be used separately or in addition to them to support $data reference.
-
-__Please note__: If the keyword is validating data type that is different from the type(s) in its definition, the validation function will not be called (and expanded macro will not be used), so there is no need to check for data type inside validation function or inside schema returned by macro function (unless you want to enforce a specific type and for some reason do not want to use a separate `type` keyword for that). In the same way as standard keywords work, if the keyword does not apply to the data type being validated, the validation of this keyword will succeed.
-
-See [Defining custom keywords](#defining-custom-keywords) for more details.
-
-
-##### .getKeyword(String keyword) -&gt; Object|Boolean
-
-Returns custom keyword definition, `true` for pre-defined keywords and `false` if the keyword is unknown.
-
-
-##### .removeKeyword(String keyword) -&gt; Ajv
-
-Removes custom or pre-defined keyword so you can redefine them.
-
-While this method can be used to extend pre-defined keywords, it can also be used to completely change their meaning - it may lead to unexpected results.
-
-__Please note__: schemas compiled before the keyword is removed will continue to work without changes. To recompile schemas use `removeSchema` method and compile them again.
-
-
-##### .errorsText([Array&lt;Object&gt; errors [, Object options]]) -&gt; String
-
-Returns the text with all errors in a String.
-
-Options can have properties `separator` (string used to separate errors, ", " by default) and `dataVar` (the variable name that dataPaths are prefixed with, "data" by default).
-
-
-## Options
-
-Defaults:
-
-```javascript
-{
- // validation and reporting options:
- $data: false,
- allErrors: false,
- verbose: false,
- $comment: false, // NEW in Ajv version 6.0
- jsonPointers: false,
- uniqueItems: true,
- unicode: true,
- nullable: false,
- format: 'fast',
- formats: {},
- unknownFormats: true,
- schemas: {},
- logger: undefined,
- // referenced schema options:
- schemaId: '$id',
- missingRefs: true,
- extendRefs: 'ignore', // recommended 'fail'
- loadSchema: undefined, // function(uri: string): Promise {}
- // options to modify validated data:
- removeAdditional: false,
- useDefaults: false,
- coerceTypes: false,
- // strict mode options
- strictDefaults: false,
- strictKeywords: false,
- // asynchronous validation options:
- transpile: undefined, // requires ajv-async package
- // advanced options:
- meta: true,
- validateSchema: true,
- addUsedSchema: true,
- inlineRefs: true,
- passContext: false,
- loopRequired: Infinity,
- ownProperties: false,
- multipleOfPrecision: false,
- errorDataPath: 'object', // deprecated
- messages: true,
- sourceCode: false,
- processCode: undefined, // function (str: string): string {}
- cache: new Cache,
- serialize: undefined
-}
-```
-
-##### Validation and reporting options
-
-- _$data_: support [$data references](#data-reference). Draft 6 meta-schema that is added by default will be extended to allow them. If you want to use another meta-schema you need to use $dataMetaSchema method to add support for $data reference. See [API](#api).
-- _allErrors_: check all rules collecting all errors. Default is to return after the first error.
-- _verbose_: include the reference to the part of the schema (`schema` and `parentSchema`) and validated data in errors (false by default).
-- _$comment_ (NEW in Ajv version 6.0): log or pass the value of `$comment` keyword to a function. Option values:
- - `false` (default): ignore $comment keyword.
- - `true`: log the keyword value to console.
- - function: pass the keyword value, its schema path and root schema to the specified function
-- _jsonPointers_: set `dataPath` property of errors using [JSON Pointers](https://tools.ietf.org/html/rfc6901) instead of JavaScript property access notation.
-- _uniqueItems_: validate `uniqueItems` keyword (true by default).
-- _unicode_: calculate correct length of strings with unicode pairs (true by default). Pass `false` to use `.length` of strings that is faster, but gives "incorrect" lengths of strings with unicode pairs - each unicode pair is counted as two characters.
-- _nullable_: support keyword "nullable" from [Open API 3 specification](https://swagger.io/docs/specification/data-models/data-types/).
-- _format_: formats validation mode. Option values:
- - `"fast"` (default) - simplified and fast validation (see [Formats](#formats) for details of which formats are available and affected by this option).
- - `"full"` - more restrictive and slow validation. E.g., 25:00:00 and 2015/14/33 will be invalid time and date in 'full' mode but it will be valid in 'fast' mode.
- - `false` - ignore all format keywords.
-- _formats_: an object with custom formats. Keys and values will be passed to `addFormat` method.
-- _keywords_: an object with custom keywords. Keys and values will be passed to `addKeyword` method.
-- _unknownFormats_: handling of unknown formats. Option values:
- - `true` (default) - if an unknown format is encountered the exception is thrown during schema compilation. If `format` keyword value is [$data reference](#data-reference) and it is unknown the validation will fail.
- - `[String]` - an array of unknown format names that will be ignored. This option can be used to allow usage of third party schemas with format(s) for which you don't have definitions, but still fail if another unknown format is used. If `format` keyword value is [$data reference](#data-reference) and it is not in this array the validation will fail.
- - `"ignore"` - to log warning during schema compilation and always pass validation (the default behaviour in versions before 5.0.0). This option is not recommended, as it allows to mistype format name and it won't be validated without any error message. This behaviour is required by JSON Schema specification.
-- _schemas_: an array or object of schemas that will be added to the instance. In case you pass the array the schemas must have IDs in them. When the object is passed the method `addSchema(value, key)` will be called for each schema in this object.
-- _logger_: sets the logging method. Default is the global `console` object that should have methods `log`, `warn` and `error`. See [Error logging](#error-logging). Option values:
- - custom logger - it should have methods `log`, `warn` and `error`. If any of these methods is missing an exception will be thrown.
- - `false` - logging is disabled.
-
-
-##### Referenced schema options
-
-- _schemaId_: this option defines which keywords are used as schema URI. Option value:
- - `"$id"` (default) - only use `$id` keyword as schema URI (as specified in JSON Schema draft-06/07), ignore `id` keyword (if it is present a warning will be logged).
- - `"id"` - only use `id` keyword as schema URI (as specified in JSON Schema draft-04), ignore `$id` keyword (if it is present a warning will be logged).
- - `"auto"` - use both `$id` and `id` keywords as schema URI. If both are present (in the same schema object) and different the exception will be thrown during schema compilation.
-- _missingRefs_: handling of missing referenced schemas. Option values:
- - `true` (default) - if the reference cannot be resolved during compilation the exception is thrown. The thrown error has properties `missingRef` (with hash fragment) and `missingSchema` (without it). Both properties are resolved relative to the current base id (usually schema id, unless it was substituted).
- - `"ignore"` - to log error during compilation and always pass validation.
- - `"fail"` - to log error and successfully compile schema but fail validation if this rule is checked.
-- _extendRefs_: validation of other keywords when `$ref` is present in the schema. Option values:
- - `"ignore"` (default) - when `$ref` is used other keywords are ignored (as per [JSON Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03#section-3) standard). A warning will be logged during the schema compilation.
- - `"fail"` (recommended) - if other validation keywords are used together with `$ref` the exception will be thrown when the schema is compiled. This option is recommended to make sure schema has no keywords that are ignored, which can be confusing.
- - `true` - validate all keywords in the schemas with `$ref` (the default behaviour in versions before 5.0.0).
-- _loadSchema_: asynchronous function that will be used to load remote schemas when `compileAsync` [method](#api-compileAsync) is used and some reference is missing (option `missingRefs` should NOT be 'fail' or 'ignore'). This function should accept remote schema uri as a parameter and return a Promise that resolves to a schema. See example in [Asynchronous compilation](#asynchronous-schema-compilation).
-
-
-##### Options to modify validated data
-
-- _removeAdditional_: remove additional properties - see example in [Filtering data](#filtering-data). This option is not used if schema is added with `addMetaSchema` method. Option values:
- - `false` (default) - not to remove additional properties
- - `"all"` - all additional properties are removed, regardless of `additionalProperties` keyword in schema (and no validation is made for them).
- - `true` - only additional properties with `additionalProperties` keyword equal to `false` are removed.
- - `"failing"` - additional properties that fail schema validation will be removed (where `additionalProperties` keyword is `false` or schema).
-- _useDefaults_: replace missing or undefined properties and items with the values from corresponding `default` keywords. Default behaviour is to ignore `default` keywords. This option is not used if schema is added with `addMetaSchema` method. See examples in [Assigning defaults](#assigning-defaults). Option values:
- - `false` (default) - do not use defaults
- - `true` - insert defaults by value (object literal is used).
- - `"empty"` - in addition to missing or undefined, use defaults for properties and items that are equal to `null` or `""` (an empty string).
- - `"shared"` (deprecated) - insert defaults by reference. If the default is an object, it will be shared by all instances of validated data. If you modify the inserted default in the validated data, it will be modified in the schema as well.
-- _coerceTypes_: change data type of data to match `type` keyword. See the example in [Coercing data types](#coercing-data-types) and [coercion rules](https://github.com/epoberezkin/ajv/blob/master/COERCION.md). Option values:
- - `false` (default) - no type coercion.
- - `true` - coerce scalar data types.
- - `"array"` - in addition to coercions between scalar types, coerce scalar data to an array with one element and vice versa (as required by the schema).
-
-
-##### Strict mode options
-
-- _strictDefaults_: report ignored `default` keywords in schemas. Option values:
- - `false` (default) - ignored defaults are not reported
- - `true` - if an ignored default is present, throw an error
- - `"log"` - if an ignored default is present, log warning
-- _strictKeywords_: report unknown keywords in schemas. Option values:
- - `false` (default) - unknown keywords are not reported
- - `true` - if an unknown keyword is present, throw an error
- - `"log"` - if an unknown keyword is present, log warning
-
-
-##### Asynchronous validation options
-
-- _transpile_: Requires [ajv-async](https://github.com/epoberezkin/ajv-async) package. It determines whether Ajv transpiles compiled asynchronous validation function. Option values:
- - `undefined` (default) - transpile with [nodent](https://github.com/MatAtBread/nodent) if async functions are not supported.
- - `true` - always transpile with nodent.
- - `false` - do not transpile; if async functions are not supported an exception will be thrown.
-
-
-##### Advanced options
-
-- _meta_: add [meta-schema](http://json-schema.org/documentation.html) so it can be used by other schemas (true by default). If an object is passed, it will be used as the default meta-schema for schemas that have no `$schema` keyword. This default meta-schema MUST have `$schema` keyword.
-- _validateSchema_: validate added/compiled schemas against meta-schema (true by default). `$schema` property in the schema can be http://json-schema.org/draft-07/schema or absent (draft-07 meta-schema will be used) or can be a reference to the schema previously added with `addMetaSchema` method. Option values:
- - `true` (default) - if the validation fails, throw the exception.
- - `"log"` - if the validation fails, log error.
- - `false` - skip schema validation.
-- _addUsedSchema_: by default methods `compile` and `validate` add schemas to the instance if they have `$id` (or `id`) property that doesn't start with "#". If `$id` is present and it is not unique the exception will be thrown. Set this option to `false` to skip adding schemas to the instance and the `$id` uniqueness check when these methods are used. This option does not affect `addSchema` method.
-- _inlineRefs_: Affects compilation of referenced schemas. Option values:
- - `true` (default) - the referenced schemas that don't have refs in them are inlined, regardless of their size - that substantially improves performance at the cost of the bigger size of compiled schema functions.
- - `false` - to not inline referenced schemas (they will be compiled as separate functions).
- - integer number - to limit the maximum number of keywords of the schema that will be inlined.
-- _passContext_: pass validation context to custom keyword functions. If this option is `true` and you pass some context to the compiled validation function with `validate.call(context, data)`, the `context` will be available as `this` in your custom keywords. By default `this` is Ajv instance.
-- _loopRequired_: by default `required` keyword is compiled into a single expression (or a sequence of statements in `allErrors` mode). In case of a very large number of properties in this keyword it may result in a very big validation function. Pass integer to set the number of properties above which `required` keyword will be validated in a loop - smaller validation function size but also worse performance.
-- _ownProperties_: by default Ajv iterates over all enumerable object properties; when this option is `true` only own enumerable object properties (i.e. found directly on the object rather than on its prototype) are iterated. Contributed by @mbroadst.
-- _multipleOfPrecision_: by default `multipleOf` keyword is validated by comparing the result of division with parseInt() of that result. It works for dividers that are bigger than 1. For small dividers such as 0.01 the result of the division is usually not integer (even when it should be integer, see issue [#84](https://github.com/epoberezkin/ajv/issues/84)). If you need to use fractional dividers set this option to some positive integer N to have `multipleOf` validated using this formula: `Math.abs(Math.round(division) - division) < 1e-N` (it is slower but allows for float arithmetics deviations).
-- _errorDataPath_ (deprecated): set `dataPath` to point to 'object' (default) or to 'property' when validating keywords `required`, `additionalProperties` and `dependencies`.
-- _messages_: Include human-readable messages in errors. `true` by default. `false` can be passed when custom messages are used (e.g. with [ajv-i18n](https://github.com/epoberezkin/ajv-i18n)).
-- _sourceCode_: add `sourceCode` property to validating function (for debugging; this code can be different from the result of toString call).
-- _processCode_: an optional function to process generated code before it is passed to Function constructor. It can be used to either beautify (the validating function is generated without line-breaks) or to transpile code. Starting from version 5.0.0 this option replaced options:
- - `beautify` that formatted the generated function using [js-beautify](https://github.com/beautify-web/js-beautify). If you want to beautify the generated code pass `require('js-beautify').js_beautify`.
- - `transpile` that transpiled asynchronous validation function. You can still use `transpile` option with [ajv-async](https://github.com/epoberezkin/ajv-async) package. See [Asynchronous validation](#asynchronous-validation) for more information.
-- _cache_: an optional instance of cache to store compiled schemas using stable-stringified schema as a key. For example, set-associative cache [sacjs](https://github.com/epoberezkin/sacjs) can be used. If not passed then a simple hash is used which is good enough for the common use case (a limited number of statically defined schemas). Cache should have methods `put(key, value)`, `get(key)`, `del(key)` and `clear()`.
-- _serialize_: an optional function to serialize schema to cache key. Pass `false` to use schema itself as a key (e.g., if WeakMap used as a cache). By default [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used.
-
-
-## Validation errors
-
-In case of validation failure, Ajv assigns the array of errors to `errors` property of validation function (or to `errors` property of Ajv instance when `validate` or `validateSchema` methods were called). In case of [asynchronous validation](#asynchronous-validation), the returned promise is rejected with exception `Ajv.ValidationError` that has `errors` property.
-
-
-### Error objects
-
-Each error is an object with the following properties:
-
-- _keyword_: validation keyword.
-- _dataPath_: the path to the part of the data that was validated. By default `dataPath` uses JavaScript property access notation (e.g., `".prop[1].subProp"`). When the option `jsonPointers` is true (see [Options](#options)) `dataPath` will be set using JSON pointer standard (e.g., `"/prop/1/subProp"`).
-- _schemaPath_: the path (JSON-pointer as a URI fragment) to the schema of the keyword that failed validation.
-- _params_: the object with the additional information about error that can be used to create custom error messages (e.g., using [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) package). See below for parameters set by all keywords.
-- _message_: the standard error message (can be excluded with option `messages` set to false).
-- _schema_: the schema of the keyword (added with `verbose` option).
-- _parentSchema_: the schema containing the keyword (added with `verbose` option)
-- _data_: the data validated by the keyword (added with `verbose` option).
-
-__Please note__: `propertyNames` keyword schema validation errors have an additional property `propertyName`, `dataPath` points to the object. After schema validation for each property name, if it is invalid an additional error is added with the property `keyword` equal to `"propertyNames"`.
-
-
-### Error parameters
-
-Properties of `params` object in errors depend on the keyword that failed validation.
-
-- `maxItems`, `minItems`, `maxLength`, `minLength`, `maxProperties`, `minProperties` - property `limit` (number, the schema of the keyword).
-- `additionalItems` - property `limit` (the maximum number of allowed items in case when `items` keyword is an array of schemas and `additionalItems` is false).
-- `additionalProperties` - property `additionalProperty` (the property not used in `properties` and `patternProperties` keywords).
-- `dependencies` - properties:
- - `property` (dependent property),
- - `missingProperty` (required missing dependency - only the first one is reported currently)
- - `deps` (required dependencies, comma separated list as a string),
- - `depsCount` (the number of required dependencies).
-- `format` - property `format` (the schema of the keyword).
-- `maximum`, `minimum` - properties:
- - `limit` (number, the schema of the keyword),
- - `exclusive` (boolean, the schema of `exclusiveMaximum` or `exclusiveMinimum`),
- - `comparison` (string, comparison operation to compare the data to the limit, with the data on the left and the limit on the right; can be "<", "<=", ">", ">=")
-- `multipleOf` - property `multipleOf` (the schema of the keyword)
-- `pattern` - property `pattern` (the schema of the keyword)
-- `required` - property `missingProperty` (required property that is missing).
-- `propertyNames` - property `propertyName` (an invalid property name).
-- `patternRequired` (in ajv-keywords) - property `missingPattern` (required pattern that did not match any property).
-- `type` - property `type` (required type(s), a string, can be a comma-separated list)
-- `uniqueItems` - properties `i` and `j` (indices of duplicate items).
-- `const` - property `allowedValue` pointing to the value (the schema of the keyword).
-- `enum` - property `allowedValues` pointing to the array of values (the schema of the keyword).
-- `$ref` - property `ref` with the referenced schema URI.
-- `oneOf` - property `passingSchemas` (array of indices of passing schemas, null if no schema passes).
-- custom keywords (in case keyword definition doesn't create errors) - property `keyword` (the keyword name).
-
-
-### Error logging
-
-Using the `logger` option when initiallizing Ajv will allow you to define custom logging. Here you can build upon the exisiting logging. The use of other logging packages is supported as long as the package or its associated wrapper exposes the required methods. If any of the required methods are missing an exception will be thrown.
-- **Required Methods**: `log`, `warn`, `error`
-
-```javascript
-var otherLogger = new OtherLogger();
-var ajv = new Ajv({
- logger: {
- log: console.log.bind(console),
- warn: function warn() {
- otherLogger.logWarn.apply(otherLogger, arguments);
- },
- error: function error() {
- otherLogger.logError.apply(otherLogger, arguments);
- console.error.apply(console, arguments);
- }
- }
-});
-```
-
-
-## Plugins
-
-Ajv can be extended with plugins that add custom keywords, formats or functions to process generated code. When such plugin is published as npm package it is recommended that it follows these conventions:
-
-- it exports a function
-- this function accepts ajv instance as the first parameter and returns the same instance to allow chaining
-- this function can accept an optional configuration as the second parameter
-
-If you have published a useful plugin please submit a PR to add it to the next section.
-
-
-## Related packages
-
-- [ajv-async](https://github.com/epoberezkin/ajv-async) - plugin to configure async validation mode
-- [ajv-bsontype](https://github.com/BoLaMN/ajv-bsontype) - plugin to validate mongodb's bsonType formats
-- [ajv-cli](https://github.com/jessedc/ajv-cli) - command line interface
-- [ajv-errors](https://github.com/epoberezkin/ajv-errors) - plugin for custom error messages
-- [ajv-i18n](https://github.com/epoberezkin/ajv-i18n) - internationalised error messages
-- [ajv-istanbul](https://github.com/epoberezkin/ajv-istanbul) - plugin to instrument generated validation code to measure test coverage of your schemas
-- [ajv-keywords](https://github.com/epoberezkin/ajv-keywords) - plugin with custom validation keywords (select, typeof, etc.)
-- [ajv-merge-patch](https://github.com/epoberezkin/ajv-merge-patch) - plugin with keywords $merge and $patch
-- [ajv-pack](https://github.com/epoberezkin/ajv-pack) - produces a compact module exporting validation functions
-- [ajv-formats-draft2019](https://github.com/luzlab/ajv-formats-draft2019) - format validators for draft2019 that aren't already included in ajv (ie. `idn-hostname`, `idn-email`, `iri`, `iri-reference` and `duration`).
-
-## Some packages using Ajv
-
-- [webpack](https://github.com/webpack/webpack) - a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser
-- [jsonscript-js](https://github.com/JSONScript/jsonscript-js) - the interpreter for [JSONScript](http://www.jsonscript.org) - scripted processing of existing endpoints and services
-- [osprey-method-handler](https://github.com/mulesoft-labs/osprey-method-handler) - Express middleware for validating requests and responses based on a RAML method object, used in [osprey](https://github.com/mulesoft/osprey) - validating API proxy generated from a RAML definition
-- [har-validator](https://github.com/ahmadnassri/har-validator) - HTTP Archive (HAR) validator
-- [jsoneditor](https://github.com/josdejong/jsoneditor) - a web-based tool to view, edit, format, and validate JSON http://jsoneditoronline.org
-- [JSON Schema Lint](https://github.com/nickcmaynard/jsonschemalint) - a web tool to validate JSON/YAML document against a single JSON Schema http://jsonschemalint.com
-- [objection](https://github.com/vincit/objection.js) - SQL-friendly ORM for Node.js
-- [table](https://github.com/gajus/table) - formats data into a string table
-- [ripple-lib](https://github.com/ripple/ripple-lib) - a JavaScript API for interacting with [Ripple](https://ripple.com) in Node.js and the browser
-- [restbase](https://github.com/wikimedia/restbase) - distributed storage with REST API & dispatcher for backend services built to provide a low-latency & high-throughput API for Wikipedia / Wikimedia content
-- [hippie-swagger](https://github.com/CacheControl/hippie-swagger) - [Hippie](https://github.com/vesln/hippie) wrapper that provides end to end API testing with swagger validation
-- [react-form-controlled](https://github.com/seeden/react-form-controlled) - React controlled form components with validation
-- [rabbitmq-schema](https://github.com/tjmehta/rabbitmq-schema) - a schema definition module for RabbitMQ graphs and messages
-- [@query/schema](https://www.npmjs.com/package/@query/schema) - stream filtering with a URI-safe query syntax parsing to JSON Schema
-- [chai-ajv-json-schema](https://github.com/peon374/chai-ajv-json-schema) - chai plugin to us JSON Schema with expect in mocha tests
-- [grunt-jsonschema-ajv](https://github.com/SignpostMarv/grunt-jsonschema-ajv) - Grunt plugin for validating files against JSON Schema
-- [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) - extract text from bundle into a file
-- [electron-builder](https://github.com/electron-userland/electron-builder) - a solution to package and build a ready for distribution Electron app
-- [addons-linter](https://github.com/mozilla/addons-linter) - Mozilla Add-ons Linter
-- [gh-pages-generator](https://github.com/epoberezkin/gh-pages-generator) - multi-page site generator converting markdown files to GitHub pages
-- [ESLint](https://github.com/eslint/eslint) - the pluggable linting utility for JavaScript and JSX
-
-
-## Tests
-
-```
-npm install
-git submodule update --init
-npm test
-```
-
-## Contributing
-
-All validation functions are generated using doT templates in [dot](https://github.com/epoberezkin/ajv/tree/master/lib/dot) folder. Templates are precompiled so doT is not a run-time dependency.
-
-`npm run build` - compiles templates to [dotjs](https://github.com/epoberezkin/ajv/tree/master/lib/dotjs) folder.
-
-`npm run watch` - automatically compiles templates when files in dot folder change
-
-Please see [Contributing guidelines](https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md)
-
-
-## Changes history
-
-See https://github.com/epoberezkin/ajv/releases
-
-__Please note__: [Changes in version 6.0.0](https://github.com/epoberezkin/ajv/releases/tag/v6.0.0).
-
-[Version 5.0.0](https://github.com/epoberezkin/ajv/releases/tag/5.0.0).
-
-[Version 4.0.0](https://github.com/epoberezkin/ajv/releases/tag/4.0.0).
-
-[Version 3.0.0](https://github.com/epoberezkin/ajv/releases/tag/3.0.0).
-
-[Version 2.0.0](https://github.com/epoberezkin/ajv/releases/tag/2.0.0).
-
-
-## Open-source software support
-
-Ajv is a part of [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-ajv?utm_source=npm-ajv&utm_medium=referral&utm_campaign=readme) - it provides a centralised support to open-source software users, in addition to the support provided by software maintainers.
-
-
-## License
-
-[MIT](https://github.com/epoberezkin/ajv/blob/master/LICENSE)
diff --git a/node_modules/ajv/dist/ajv.bundle.js b/node_modules/ajv/dist/ajv.bundle.js
deleted file mode 100644
index dd95630..0000000
--- a/node_modules/ajv/dist/ajv.bundle.js
+++ /dev/null
@@ -1,7165 +0,0 @@
-(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Ajv = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
-'use strict';
-
-
-var Cache = module.exports = function Cache() {
- this._cache = {};
-};
-
-
-Cache.prototype.put = function Cache_put(key, value) {
- this._cache[key] = value;
-};
-
-
-Cache.prototype.get = function Cache_get(key) {
- return this._cache[key];
-};
-
-
-Cache.prototype.del = function Cache_del(key) {
- delete this._cache[key];
-};
-
-
-Cache.prototype.clear = function Cache_clear() {
- this._cache = {};
-};
-
-},{}],2:[function(require,module,exports){
-'use strict';
-
-var MissingRefError = require('./error_classes').MissingRef;
-
-module.exports = compileAsync;
-
-
-/**
- * Creates validating function for passed schema with asynchronous loading of missing schemas.
- * `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.
- * @this Ajv
- * @param {Object} schema schema object
- * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped
- * @param {Function} callback an optional node-style callback, it is called with 2 parameters: error (or null) and validating function.
- * @return {Promise} promise that resolves with a validating function.
- */
-function compileAsync(schema, meta, callback) {
- /* eslint no-shadow: 0 */
- /* global Promise */
- /* jshint validthis: true */
- var self = this;
- if (typeof this._opts.loadSchema != 'function')
- throw new Error('options.loadSchema should be a function');
-
- if (typeof meta == 'function') {
- callback = meta;
- meta = undefined;
- }
-
- var p = loadMetaSchemaOf(schema).then(function () {
- var schemaObj = self._addSchema(schema, undefined, meta);
- return schemaObj.validate || _compileAsync(schemaObj);
- });
-
- if (callback) {
- p.then(
- function(v) { callback(null, v); },
- callback
- );
- }
-
- return p;
-
-
- function loadMetaSchemaOf(sch) {
- var $schema = sch.$schema;
- return $schema && !self.getSchema($schema)
- ? compileAsync.call(self, { $ref: $schema }, true)
- : Promise.resolve();
- }
-
-
- function _compileAsync(schemaObj) {
- try { return self._compile(schemaObj); }
- catch(e) {
- if (e instanceof MissingRefError) return loadMissingSchema(e);
- throw e;
- }
-
-
- function loadMissingSchema(e) {
- var ref = e.missingSchema;
- if (added(ref)) throw new Error('Schema ' + ref + ' is loaded but ' + e.missingRef + ' cannot be resolved');
-
- var schemaPromise = self._loadingSchemas[ref];
- if (!schemaPromise) {
- schemaPromise = self._loadingSchemas[ref] = self._opts.loadSchema(ref);
- schemaPromise.then(removePromise, removePromise);
- }
-
- return schemaPromise.then(function (sch) {
- if (!added(ref)) {
- return loadMetaSchemaOf(sch).then(function () {
- if (!added(ref)) self.addSchema(sch, ref, undefined, meta);
- });
- }
- }).then(function() {
- return _compileAsync(schemaObj);
- });
-
- function removePromise() {
- delete self._loadingSchemas[ref];
- }
-
- function added(ref) {
- return self._refs[ref] || self._schemas[ref];
- }
- }
- }
-}
-
-},{"./error_classes":3}],3:[function(require,module,exports){
-'use strict';
-
-var resolve = require('./resolve');
-
-module.exports = {
- Validation: errorSubclass(ValidationError),
- MissingRef: errorSubclass(MissingRefError)
-};
-
-
-function ValidationError(errors) {
- this.message = 'validation failed';
- this.errors = errors;
- this.ajv = this.validation = true;
-}
-
-
-MissingRefError.message = function (baseId, ref) {
- return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
-};
-
-
-function MissingRefError(baseId, ref, message) {
- this.message = message || MissingRefError.message(baseId, ref);
- this.missingRef = resolve.url(baseId, ref);
- this.missingSchema = resolve.normalizeId(resolve.fullPath(this.missingRef));
-}
-
-
-function errorSubclass(Subclass) {
- Subclass.prototype = Object.create(Error.prototype);
- Subclass.prototype.constructor = Subclass;
- return Subclass;
-}
-
-},{"./resolve":6}],4:[function(require,module,exports){
-'use strict';
-
-var util = require('./util');
-
-var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
-var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
-var TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
-var HOSTNAME = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;
-var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
-var URIREF = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
-// uri-template: https://tools.ietf.org/html/rfc6570
-var URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;
-// For the source: https://gist.github.com/dperini/729294
-// For test cases: https://mathiasbynens.be/demo/url-regex
-// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.
-// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;
-var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
-var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
-var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
-var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
-var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
-
-
-module.exports = formats;
-
-function formats(mode) {
- mode = mode == 'full' ? 'full' : 'fast';
- return util.copy(formats[mode]);
-}
-
-
-formats.fast = {
- // date: http://tools.ietf.org/html/rfc3339#section-5.6
- date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
- // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
- time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,
- 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,
- // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
- uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,
- 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
- 'uri-template': URITEMPLATE,
- url: URL,
- // email (sources from jsen validator):
- // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
- // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')
- email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
- hostname: HOSTNAME,
- // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
- ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
- // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
- ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
- regex: regex,
- // uuid: http://tools.ietf.org/html/rfc4122
- uuid: UUID,
- // JSON-pointer: https://tools.ietf.org/html/rfc6901
- // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
- 'json-pointer': JSON_POINTER,
- 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
- // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
- 'relative-json-pointer': RELATIVE_JSON_POINTER
-};
-
-
-formats.full = {
- date: date,
- time: time,
- 'date-time': date_time,
- uri: uri,
- 'uri-reference': URIREF,
- 'uri-template': URITEMPLATE,
- url: URL,
- email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
- hostname: HOSTNAME,
- ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
- ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
- regex: regex,
- uuid: UUID,
- 'json-pointer': JSON_POINTER,
- 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
- 'relative-json-pointer': RELATIVE_JSON_POINTER
-};
-
-
-function isLeapYear(year) {
- // https://tools.ietf.org/html/rfc3339#appendix-C
- return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
-}
-
-
-function date(str) {
- // full-date from http://tools.ietf.org/html/rfc3339#section-5.6
- var matches = str.match(DATE);
- if (!matches) return false;
-
- var year = +matches[1];
- var month = +matches[2];
- var day = +matches[3];
-
- return month >= 1 && month <= 12 && day >= 1 &&
- day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);
-}
-
-
-function time(str, full) {
- var matches = str.match(TIME);
- if (!matches) return false;
-
- var hour = matches[1];
- var minute = matches[2];
- var second = matches[3];
- var timeZone = matches[5];
- return ((hour <= 23 && minute <= 59 && second <= 59) ||
- (hour == 23 && minute == 59 && second == 60)) &&
- (!full || timeZone);
-}
-
-
-var DATE_TIME_SEPARATOR = /t|\s/i;
-function date_time(str) {
- // http://tools.ietf.org/html/rfc3339#section-5.6
- var dateTime = str.split(DATE_TIME_SEPARATOR);
- return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true);
-}
-
-
-var NOT_URI_FRAGMENT = /\/|:/;
-function uri(str) {
- // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
- return NOT_URI_FRAGMENT.test(str) && URI.test(str);
-}
-
-
-var Z_ANCHOR = /[^\\]\\Z/;
-function regex(str) {
- if (Z_ANCHOR.test(str)) return false;
- try {
- new RegExp(str);
- return true;
- } catch(e) {
- return false;
- }
-}
-
-},{"./util":10}],5:[function(require,module,exports){
-'use strict';
-
-var resolve = require('./resolve')
- , util = require('./util')
- , errorClasses = require('./error_classes')
- , stableStringify = require('fast-json-stable-stringify');
-
-var validateGenerator = require('../dotjs/validate');
-
-/**
- * Functions below are used inside compiled validations function
- */
-
-var ucs2length = util.ucs2length;
-var equal = require('fast-deep-equal');
-
-// this error is thrown by async schemas to return validation errors via exception
-var ValidationError = errorClasses.Validation;
-
-module.exports = compile;
-
-
-/**
- * Compiles schema to validation function
- * @this Ajv
- * @param {Object} schema schema object
- * @param {Object} root object with information about the root schema for this schema
- * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution
- * @param {String} baseId base ID for IDs in the schema
- * @return {Function} validation function
- */
-function compile(schema, root, localRefs, baseId) {
- /* jshint validthis: true, evil: true */
- /* eslint no-shadow: 0 */
- var self = this
- , opts = this._opts
- , refVal = [ undefined ]
- , refs = {}
- , patterns = []
- , patternsHash = {}
- , defaults = []
- , defaultsHash = {}
- , customRules = [];
-
- root = root || { schema: schema, refVal: refVal, refs: refs };
-
- var c = checkCompiling.call(this, schema, root, baseId);
- var compilation = this._compilations[c.index];
- if (c.compiling) return (compilation.callValidate = callValidate);
-
- var formats = this._formats;
- var RULES = this.RULES;
-
- try {
- var v = localCompile(schema, root, localRefs, baseId);
- compilation.validate = v;
- var cv = compilation.callValidate;
- if (cv) {
- cv.schema = v.schema;
- cv.errors = null;
- cv.refs = v.refs;
- cv.refVal = v.refVal;
- cv.root = v.root;
- cv.$async = v.$async;
- if (opts.sourceCode) cv.source = v.source;
- }
- return v;
- } finally {
- endCompiling.call(this, schema, root, baseId);
- }
-
- /* @this {*} - custom context, see passContext option */
- function callValidate() {
- /* jshint validthis: true */
- var validate = compilation.validate;
- var result = validate.apply(this, arguments);
- callValidate.errors = validate.errors;
- return result;
- }
-
- function localCompile(_schema, _root, localRefs, baseId) {
- var isRoot = !_root || (_root && _root.schema == _schema);
- if (_root.schema != root.schema)
- return compile.call(self, _schema, _root, localRefs, baseId);
-
- var $async = _schema.$async === true;
-
- var sourceCode = validateGenerator({
- isTop: true,
- schema: _schema,
- isRoot: isRoot,
- baseId: baseId,
- root: _root,
- schemaPath: '',
- errSchemaPath: '#',
- errorPath: '""',
- MissingRefError: errorClasses.MissingRef,
- RULES: RULES,
- validate: validateGenerator,
- util: util,
- resolve: resolve,
- resolveRef: resolveRef,
- usePattern: usePattern,
- useDefault: useDefault,
- useCustomRule: useCustomRule,
- opts: opts,
- formats: formats,
- logger: self.logger,
- self: self
- });
-
- sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)
- + vars(defaults, defaultCode) + vars(customRules, customRuleCode)
- + sourceCode;
-
- if (opts.processCode) sourceCode = opts.processCode(sourceCode);
- // console.log('\n\n\n *** \n', JSON.stringify(sourceCode));
- var validate;
- try {
- var makeValidate = new Function(
- 'self',
- 'RULES',
- 'formats',
- 'root',
- 'refVal',
- 'defaults',
- 'customRules',
- 'equal',
- 'ucs2length',
- 'ValidationError',
- sourceCode
- );
-
- validate = makeValidate(
- self,
- RULES,
- formats,
- root,
- refVal,
- defaults,
- customRules,
- equal,
- ucs2length,
- ValidationError
- );
-
- refVal[0] = validate;
- } catch(e) {
- self.logger.error('Error compiling schema, function code:', sourceCode);
- throw e;
- }
-
- validate.schema = _schema;
- validate.errors = null;
- validate.refs = refs;
- validate.refVal = refVal;
- validate.root = isRoot ? validate : _root;
- if ($async) validate.$async = true;
- if (opts.sourceCode === true) {
- validate.source = {
- code: sourceCode,
- patterns: patterns,
- defaults: defaults
- };
- }
-
- return validate;
- }
-
- function resolveRef(baseId, ref, isRoot) {
- ref = resolve.url(baseId, ref);
- var refIndex = refs[ref];
- var _refVal, refCode;
- if (refIndex !== undefined) {
- _refVal = refVal[refIndex];
- refCode = 'refVal[' + refIndex + ']';
- return resolvedRef(_refVal, refCode);
- }
- if (!isRoot && root.refs) {
- var rootRefId = root.refs[ref];
- if (rootRefId !== undefined) {
- _refVal = root.refVal[rootRefId];
- refCode = addLocalRef(ref, _refVal);
- return resolvedRef(_refVal, refCode);
- }
- }
-
- refCode = addLocalRef(ref);
- var v = resolve.call(self, localCompile, root, ref);
- if (v === undefined) {
- var localSchema = localRefs && localRefs[ref];
- if (localSchema) {
- v = resolve.inlineRef(localSchema, opts.inlineRefs)
- ? localSchema
- : compile.call(self, localSchema, root, localRefs, baseId);
- }
- }
-
- if (v === undefined) {
- removeLocalRef(ref);
- } else {
- replaceLocalRef(ref, v);
- return resolvedRef(v, refCode);
- }
- }
-
- function addLocalRef(ref, v) {
- var refId = refVal.length;
- refVal[refId] = v;
- refs[ref] = refId;
- return 'refVal' + refId;
- }
-
- function removeLocalRef(ref) {
- delete refs[ref];
- }
-
- function replaceLocalRef(ref, v) {
- var refId = refs[ref];
- refVal[refId] = v;
- }
-
- function resolvedRef(refVal, code) {
- return typeof refVal == 'object' || typeof refVal == 'boolean'
- ? { code: code, schema: refVal, inline: true }
- : { code: code, $async: refVal && !!refVal.$async };
- }
-
- function usePattern(regexStr) {
- var index = patternsHash[regexStr];
- if (index === undefined) {
- index = patternsHash[regexStr] = patterns.length;
- patterns[index] = regexStr;
- }
- return 'pattern' + index;
- }
-
- function useDefault(value) {
- switch (typeof value) {
- case 'boolean':
- case 'number':
- return '' + value;
- case 'string':
- return util.toQuotedString(value);
- case 'object':
- if (value === null) return 'null';
- var valueStr = stableStringify(value);
- var index = defaultsHash[valueStr];
- if (index === undefined) {
- index = defaultsHash[valueStr] = defaults.length;
- defaults[index] = value;
- }
- return 'default' + index;
- }
- }
-
- function useCustomRule(rule, schema, parentSchema, it) {
- if (self._opts.validateSchema !== false) {
- var deps = rule.definition.dependencies;
- if (deps && !deps.every(function(keyword) {
- return Object.prototype.hasOwnProperty.call(parentSchema, keyword);
- }))
- throw new Error('parent schema must have all required keywords: ' + deps.join(','));
-
- var validateSchema = rule.definition.validateSchema;
- if (validateSchema) {
- var valid = validateSchema(schema);
- if (!valid) {
- var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors);
- if (self._opts.validateSchema == 'log') self.logger.error(message);
- else throw new Error(message);
- }
- }
- }
-
- var compile = rule.definition.compile
- , inline = rule.definition.inline
- , macro = rule.definition.macro;
-
- var validate;
- if (compile) {
- validate = compile.call(self, schema, parentSchema, it);
- } else if (macro) {
- validate = macro.call(self, schema, parentSchema, it);
- if (opts.validateSchema !== false) self.validateSchema(validate, true);
- } else if (inline) {
- validate = inline.call(self, it, rule.keyword, schema, parentSchema);
- } else {
- validate = rule.definition.validate;
- if (!validate) return;
- }
-
- if (validate === undefined)
- throw new Error('custom keyword "' + rule.keyword + '"failed to compile');
-
- var index = customRules.length;
- customRules[index] = validate;
-
- return {
- code: 'customRule' + index,
- validate: validate
- };
- }
-}
-
-
-/**
- * Checks if the schema is currently compiled
- * @this Ajv
- * @param {Object} schema schema to compile
- * @param {Object} root root object
- * @param {String} baseId base schema ID
- * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean)
- */
-function checkCompiling(schema, root, baseId) {
- /* jshint validthis: true */
- var index = compIndex.call(this, schema, root, baseId);
- if (index >= 0) return { index: index, compiling: true };
- index = this._compilations.length;
- this._compilations[index] = {
- schema: schema,
- root: root,
- baseId: baseId
- };
- return { index: index, compiling: false };
-}
-
-
-/**
- * Removes the schema from the currently compiled list
- * @this Ajv
- * @param {Object} schema schema to compile
- * @param {Object} root root object
- * @param {String} baseId base schema ID
- */
-function endCompiling(schema, root, baseId) {
- /* jshint validthis: true */
- var i = compIndex.call(this, schema, root, baseId);
- if (i >= 0) this._compilations.splice(i, 1);
-}
-
-
-/**
- * Index of schema compilation in the currently compiled list
- * @this Ajv
- * @param {Object} schema schema to compile
- * @param {Object} root root object
- * @param {String} baseId base schema ID
- * @return {Integer} compilation index
- */
-function compIndex(schema, root, baseId) {
- /* jshint validthis: true */
- for (var i=0; i<this._compilations.length; i++) {
- var c = this._compilations[i];
- if (c.schema == schema && c.root == root && c.baseId == baseId) return i;
- }
- return -1;
-}
-
-
-function patternCode(i, patterns) {
- return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
-}
-
-
-function defaultCode(i) {
- return 'var default' + i + ' = defaults[' + i + '];';
-}
-
-
-function refValCode(i, refVal) {
- return refVal[i] === undefined ? '' : 'var refVal' + i + ' = refVal[' + i + '];';
-}
-
-
-function customRuleCode(i) {
- return 'var customRule' + i + ' = customRules[' + i + '];';
-}
-
-
-function vars(arr, statement) {
- if (!arr.length) return '';
- var code = '';
- for (var i=0; i<arr.length; i++)
- code += statement(i, arr);
- return code;
-}
-
-},{"../dotjs/validate":38,"./error_classes":3,"./resolve":6,"./util":10,"fast-deep-equal":42,"fast-json-stable-stringify":43}],6:[function(require,module,exports){
-'use strict';
-
-var URI = require('uri-js')
- , equal = require('fast-deep-equal')
- , util = require('./util')
- , SchemaObject = require('./schema_obj')
- , traverse = require('json-schema-traverse');
-
-module.exports = resolve;
-
-resolve.normalizeId = normalizeId;
-resolve.fullPath = getFullPath;
-resolve.url = resolveUrl;
-resolve.ids = resolveIds;
-resolve.inlineRef = inlineRef;
-resolve.schema = resolveSchema;
-
-/**
- * [resolve and compile the references ($ref)]
- * @this Ajv
- * @param {Function} compile reference to schema compilation funciton (localCompile)
- * @param {Object} root object with information about the root schema for the current schema
- * @param {String} ref reference to resolve
- * @return {Object|Function} schema object (if the schema can be inlined) or validation function
- */
-function resolve(compile, root, ref) {
- /* jshint validthis: true */
- var refVal = this._refs[ref];
- if (typeof refVal == 'string') {
- if (this._refs[refVal]) refVal = this._refs[refVal];
- else return resolve.call(this, compile, root, refVal);
- }
-
- refVal = refVal || this._schemas[ref];
- if (refVal instanceof SchemaObject) {
- return inlineRef(refVal.schema, this._opts.inlineRefs)
- ? refVal.schema
- : refVal.validate || this._compile(refVal);
- }
-
- var res = resolveSchema.call(this, root, ref);
- var schema, v, baseId;
- if (res) {
- schema = res.schema;
- root = res.root;
- baseId = res.baseId;
- }
-
- if (schema instanceof SchemaObject) {
- v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);
- } else if (schema !== undefined) {
- v = inlineRef(schema, this._opts.inlineRefs)
- ? schema
- : compile.call(this, schema, root, undefined, baseId);
- }
-
- return v;
-}
-
-
-/**
- * Resolve schema, its root and baseId
- * @this Ajv
- * @param {Object} root root object with properties schema, refVal, refs
- * @param {String} ref reference to resolve
- * @return {Object} object with properties schema, root, baseId
- */
-function resolveSchema(root, ref) {
- /* jshint validthis: true */
- var p = URI.parse(ref)
- , refPath = _getFullPath(p)
- , baseId = getFullPath(this._getId(root.schema));
- if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
- var id = normalizeId(refPath);
- var refVal = this._refs[id];
- if (typeof refVal == 'string') {
- return resolveRecursive.call(this, root, refVal, p);
- } else if (refVal instanceof SchemaObject) {
- if (!refVal.validate) this._compile(refVal);
- root = refVal;
- } else {
- refVal = this._schemas[id];
- if (refVal instanceof SchemaObject) {
- if (!refVal.validate) this._compile(refVal);
- if (id == normalizeId(ref))
- return { schema: refVal, root: root, baseId: baseId };
- root = refVal;
- } else {
- return;
- }
- }
- if (!root.schema) return;
- baseId = getFullPath(this._getId(root.schema));
- }
- return getJsonPointer.call(this, p, baseId, root.schema, root);
-}
-
-
-/* @this Ajv */
-function resolveRecursive(root, ref, parsedRef) {
- /* jshint validthis: true */
- var res = resolveSchema.call(this, root, ref);
- if (res) {
- var schema = res.schema;
- var baseId = res.baseId;
- root = res.root;
- var id = this._getId(schema);
- if (id) baseId = resolveUrl(baseId, id);
- return getJsonPointer.call(this, parsedRef, baseId, schema, root);
- }
-}
-
-
-var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
-/* @this Ajv */
-function getJsonPointer(parsedRef, baseId, schema, root) {
- /* jshint validthis: true */
- parsedRef.fragment = parsedRef.fragment || '';
- if (parsedRef.fragment.slice(0,1) != '/') return;
- var parts = parsedRef.fragment.split('/');
-
- for (var i = 1; i < parts.length; i++) {
- var part = parts[i];
- if (part) {
- part = util.unescapeFragment(part);
- schema = schema[part];
- if (schema === undefined) break;
- var id;
- if (!PREVENT_SCOPE_CHANGE[part]) {
- id = this._getId(schema);
- if (id) baseId = resolveUrl(baseId, id);
- if (schema.$ref) {
- var $ref = resolveUrl(baseId, schema.$ref);
- var res = resolveSchema.call(this, root, $ref);
- if (res) {
- schema = res.schema;
- root = res.root;
- baseId = res.baseId;
- }
- }
- }
- }
- }
- if (schema !== undefined && schema !== root.schema)
- return { schema: schema, root: root, baseId: baseId };
-}
-
-
-var SIMPLE_INLINED = util.toHash([
- 'type', 'format', 'pattern',
- 'maxLength', 'minLength',
- 'maxProperties', 'minProperties',
- 'maxItems', 'minItems',
- 'maximum', 'minimum',
- 'uniqueItems', 'multipleOf',
- 'required', 'enum'
-]);
-function inlineRef(schema, limit) {
- if (limit === false) return false;
- if (limit === undefined || limit === true) return checkNoRef(schema);
- else if (limit) return countKeys(schema) <= limit;
-}
-
-
-function checkNoRef(schema) {
- var item;
- if (Array.isArray(schema)) {
- for (var i=0; i<schema.length; i++) {
- item = schema[i];
- if (typeof item == 'object' && !checkNoRef(item)) return false;
- }
- } else {
- for (var key in schema) {
- if (key == '$ref') return false;
- item = schema[key];
- if (typeof item == 'object' && !checkNoRef(item)) return false;
- }
- }
- return true;
-}
-
-
-function countKeys(schema) {
- var count = 0, item;
- if (Array.isArray(schema)) {
- for (var i=0; i<schema.length; i++) {
- item = schema[i];
- if (typeof item == 'object') count += countKeys(item);
- if (count == Infinity) return Infinity;
- }
- } else {
- for (var key in schema) {
- if (key == '$ref') return Infinity;
- if (SIMPLE_INLINED[key]) {
- count++;
- } else {
- item = schema[key];
- if (typeof item == 'object') count += countKeys(item) + 1;
- if (count == Infinity) return Infinity;
- }
- }
- }
- return count;
-}
-
-
-function getFullPath(id, normalize) {
- if (normalize !== false) id = normalizeId(id);
- var p = URI.parse(id);
- return _getFullPath(p);
-}
-
-
-function _getFullPath(p) {
- return URI.serialize(p).split('#')[0] + '#';
-}
-
-
-var TRAILING_SLASH_HASH = /#\/?$/;
-function normalizeId(id) {
- return id ? id.replace(TRAILING_SLASH_HASH, '') : '';
-}
-
-
-function resolveUrl(baseId, id) {
- id = normalizeId(id);
- return URI.resolve(baseId, id);
-}
-
-
-/* @this Ajv */
-function resolveIds(schema) {
- var schemaId = normalizeId(this._getId(schema));
- var baseIds = {'': schemaId};
- var fullPaths = {'': getFullPath(schemaId, false)};
- var localRefs = {};
- var self = this;
-
- traverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
- if (jsonPtr === '') return;
- var id = self._getId(sch);
- var baseId = baseIds[parentJsonPtr];
- var fullPath = fullPaths[parentJsonPtr] + '/' + parentKeyword;
- if (keyIndex !== undefined)
- fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util.escapeFragment(keyIndex));
-
- if (typeof id == 'string') {
- id = baseId = normalizeId(baseId ? URI.resolve(baseId, id) : id);
-
- var refVal = self._refs[id];
- if (typeof refVal == 'string') refVal = self._refs[refVal];
- if (refVal && refVal.schema) {
- if (!equal(sch, refVal.schema))
- throw new Error('id "' + id + '" resolves to more than one schema');
- } else if (id != normalizeId(fullPath)) {
- if (id[0] == '#') {
- if (localRefs[id] && !equal(sch, localRefs[id]))
- throw new Error('id "' + id + '" resolves to more than one schema');
- localRefs[id] = sch;
- } else {
- self._refs[id] = fullPath;
- }
- }
- }
- baseIds[jsonPtr] = baseId;
- fullPaths[jsonPtr] = fullPath;
- });
-
- return localRefs;
-}
-
-},{"./schema_obj":8,"./util":10,"fast-deep-equal":42,"json-schema-traverse":44,"uri-js":45}],7:[function(require,module,exports){
-'use strict';
-
-var ruleModules = require('../dotjs')
- , toHash = require('./util').toHash;
-
-module.exports = function rules() {
- var RULES = [
- { type: 'number',
- rules: [ { 'maximum': ['exclusiveMaximum'] },
- { 'minimum': ['exclusiveMinimum'] }, 'multipleOf', 'format'] },
- { type: 'string',
- rules: [ 'maxLength', 'minLength', 'pattern', 'format' ] },
- { type: 'array',
- rules: [ 'maxItems', 'minItems', 'items', 'contains', 'uniqueItems' ] },
- { type: 'object',
- rules: [ 'maxProperties', 'minProperties', 'required', 'dependencies', 'propertyNames',
- { 'properties': ['additionalProperties', 'patternProperties'] } ] },
- { rules: [ '$ref', 'const', 'enum', 'not', 'anyOf', 'oneOf', 'allOf', 'if' ] }
- ];
-
- var ALL = [ 'type', '$comment' ];
- var KEYWORDS = [
- '$schema', '$id', 'id', '$data', '$async', 'title',
- 'description', 'default', 'definitions',
- 'examples', 'readOnly', 'writeOnly',
- 'contentMediaType', 'contentEncoding',
- 'additionalItems', 'then', 'else'
- ];
- var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
- RULES.all = toHash(ALL);
- RULES.types = toHash(TYPES);
-
- RULES.forEach(function (group) {
- group.rules = group.rules.map(function (keyword) {
- var implKeywords;
- if (typeof keyword == 'object') {
- var key = Object.keys(keyword)[0];
- implKeywords = keyword[key];
- keyword = key;
- implKeywords.forEach(function (k) {
- ALL.push(k);
- RULES.all[k] = true;
- });
- }
- ALL.push(keyword);
- var rule = RULES.all[keyword] = {
- keyword: keyword,
- code: ruleModules[keyword],
- implements: implKeywords
- };
- return rule;
- });
-
- RULES.all.$comment = {
- keyword: '$comment',
- code: ruleModules.$comment
- };
-
- if (group.type) RULES.types[group.type] = group;
- });
-
- RULES.keywords = toHash(ALL.concat(KEYWORDS));
- RULES.custom = {};
-
- return RULES;
-};
-
-},{"../dotjs":27,"./util":10}],8:[function(require,module,exports){
-'use strict';
-
-var util = require('./util');
-
-module.exports = SchemaObject;
-
-function SchemaObject(obj) {
- util.copy(obj, this);
-}
-
-},{"./util":10}],9:[function(require,module,exports){
-'use strict';
-
-// https://mathiasbynens.be/notes/javascript-encoding
-// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
-module.exports = function ucs2length(str) {
- var length = 0
- , len = str.length
- , pos = 0
- , value;
- while (pos < len) {
- length++;
- value = str.charCodeAt(pos++);
- if (value >= 0xD800 && value <= 0xDBFF && pos < len) {
- // high surrogate, and there is a next character
- value = str.charCodeAt(pos);
- if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate
- }
- }
- return length;
-};
-
-},{}],10:[function(require,module,exports){
-'use strict';
-
-
-module.exports = {
- copy: copy,
- checkDataType: checkDataType,
- checkDataTypes: checkDataTypes,
- coerceToTypes: coerceToTypes,
- toHash: toHash,
- getProperty: getProperty,
- escapeQuotes: escapeQuotes,
- equal: require('fast-deep-equal'),
- ucs2length: require('./ucs2length'),
- varOccurences: varOccurences,
- varReplace: varReplace,
- cleanUpCode: cleanUpCode,
- finalCleanUpCode: finalCleanUpCode,
- schemaHasRules: schemaHasRules,
- schemaHasRulesExcept: schemaHasRulesExcept,
- schemaUnknownRules: schemaUnknownRules,
- toQuotedString: toQuotedString,
- getPathExpr: getPathExpr,
- getPath: getPath,
- getData: getData,
- unescapeFragment: unescapeFragment,
- unescapeJsonPointer: unescapeJsonPointer,
- escapeFragment: escapeFragment,
- escapeJsonPointer: escapeJsonPointer
-};
-
-
-function copy(o, to) {
- to = to || {};
- for (var key in o) to[key] = o[key];
- return to;
-}
-
-
-function checkDataType(dataType, data, negate) {
- var EQUAL = negate ? ' !== ' : ' === '
- , AND = negate ? ' || ' : ' && '
- , OK = negate ? '!' : ''
- , NOT = negate ? '' : '!';
- switch (dataType) {
- case 'null': return data + EQUAL + 'null';
- case 'array': return OK + 'Array.isArray(' + data + ')';
- case 'object': return '(' + OK + data + AND +
- 'typeof ' + data + EQUAL + '"object"' + AND +
- NOT + 'Array.isArray(' + data + '))';
- case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND +
- NOT + '(' + data + ' % 1)' +
- AND + data + EQUAL + data + ')';
- default: return 'typeof ' + data + EQUAL + '"' + dataType + '"';
- }
-}
-
-
-function checkDataTypes(dataTypes, data) {
- switch (dataTypes.length) {
- case 1: return checkDataType(dataTypes[0], data, true);
- default:
- var code = '';
- var types = toHash(dataTypes);
- if (types.array && types.object) {
- code = types.null ? '(': '(!' + data + ' || ';
- code += 'typeof ' + data + ' !== "object")';
- delete types.null;
- delete types.array;
- delete types.object;
- }
- if (types.number) delete types.integer;
- for (var t in types)
- code += (code ? ' && ' : '' ) + checkDataType(t, data, true);
-
- return code;
- }
-}
-
-
-var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);
-function coerceToTypes(optionCoerceTypes, dataTypes) {
- if (Array.isArray(dataTypes)) {
- var types = [];
- for (var i=0; i<dataTypes.length; i++) {
- var t = dataTypes[i];
- if (COERCE_TO_TYPES[t]) types[types.length] = t;
- else if (optionCoerceTypes === 'array' && t === 'array') types[types.length] = t;
- }
- if (types.length) return types;
- } else if (COERCE_TO_TYPES[dataTypes]) {
- return [dataTypes];
- } else if (optionCoerceTypes === 'array' && dataTypes === 'array') {
- return ['array'];
- }
-}
-
-
-function toHash(arr) {
- var hash = {};
- for (var i=0; i<arr.length; i++) hash[arr[i]] = true;
- return hash;
-}
-
-
-var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
-var SINGLE_QUOTE = /'|\\/g;
-function getProperty(key) {
- return typeof key == 'number'
- ? '[' + key + ']'
- : IDENTIFIER.test(key)
- ? '.' + key
- : "['" + escapeQuotes(key) + "']";
-}
-
-
-function escapeQuotes(str) {
- return str.replace(SINGLE_QUOTE, '\\$&')
- .replace(/\n/g, '\\n')
- .replace(/\r/g, '\\r')
- .replace(/\f/g, '\\f')
- .replace(/\t/g, '\\t');
-}
-
-
-function varOccurences(str, dataVar) {
- dataVar += '[^0-9]';
- var matches = str.match(new RegExp(dataVar, 'g'));
- return matches ? matches.length : 0;
-}
-
-
-function varReplace(str, dataVar, expr) {
- dataVar += '([^0-9])';
- expr = expr.replace(/\$/g, '$$$$');
- return str.replace(new RegExp(dataVar, 'g'), expr + '$1');
-}
-
-
-var EMPTY_ELSE = /else\s*{\s*}/g
- , EMPTY_IF_NO_ELSE = /if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g
- , EMPTY_IF_WITH_ELSE = /if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g;
-function cleanUpCode(out) {
- return out.replace(EMPTY_ELSE, '')
- .replace(EMPTY_IF_NO_ELSE, '')
- .replace(EMPTY_IF_WITH_ELSE, 'if (!($1))');
-}
-
-
-var ERRORS_REGEXP = /[^v.]errors/g
- , REMOVE_ERRORS = /var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g
- , REMOVE_ERRORS_ASYNC = /var errors = 0;|var vErrors = null;/g
- , RETURN_VALID = 'return errors === 0;'
- , RETURN_TRUE = 'validate.errors = null; return true;'
- , RETURN_ASYNC = /if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/
- , RETURN_DATA_ASYNC = 'return data;'
- , ROOTDATA_REGEXP = /[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g
- , REMOVE_ROOTDATA = /if \(rootData === undefined\) rootData = data;/;
-
-function finalCleanUpCode(out, async) {
- var matches = out.match(ERRORS_REGEXP);
- if (matches && matches.length == 2) {
- out = async
- ? out.replace(REMOVE_ERRORS_ASYNC, '')
- .replace(RETURN_ASYNC, RETURN_DATA_ASYNC)
- : out.replace(REMOVE_ERRORS, '')
- .replace(RETURN_VALID, RETURN_TRUE);
- }
-
- matches = out.match(ROOTDATA_REGEXP);
- if (!matches || matches.length !== 3) return out;
- return out.replace(REMOVE_ROOTDATA, '');
-}
-
-
-function schemaHasRules(schema, rules) {
- if (typeof schema == 'boolean') return !schema;
- for (var key in schema) if (rules[key]) return true;
-}
-
-
-function schemaHasRulesExcept(schema, rules, exceptKeyword) {
- if (typeof schema == 'boolean') return !schema && exceptKeyword != 'not';
- for (var key in schema) if (key != exceptKeyword && rules[key]) return true;
-}
-
-
-function schemaUnknownRules(schema, rules) {
- if (typeof schema == 'boolean') return;
- for (var key in schema) if (!rules[key]) return key;
-}
-
-
-function toQuotedString(str) {
- return '\'' + escapeQuotes(str) + '\'';
-}
-
-
-function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
- var path = jsonPointers // false by default
- ? '\'/\' + ' + expr + (isNumber ? '' : '.replace(/~/g, \'~0\').replace(/\\//g, \'~1\')')
- : (isNumber ? '\'[\' + ' + expr + ' + \']\'' : '\'[\\\'\' + ' + expr + ' + \'\\\']\'');
- return joinPaths(currentPath, path);
-}
-
-
-function getPath(currentPath, prop, jsonPointers) {
- var path = jsonPointers // false by default
- ? toQuotedString('/' + escapeJsonPointer(prop))
- : toQuotedString(getProperty(prop));
- return joinPaths(currentPath, path);
-}
-
-
-var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
-var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
-function getData($data, lvl, paths) {
- var up, jsonPointer, data, matches;
- if ($data === '') return 'rootData';
- if ($data[0] == '/') {
- if (!JSON_POINTER.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
- jsonPointer = $data;
- data = 'rootData';
- } else {
- matches = $data.match(RELATIVE_JSON_POINTER);
- if (!matches) throw new Error('Invalid JSON-pointer: ' + $data);
- up = +matches[1];
- jsonPointer = matches[2];
- if (jsonPointer == '#') {
- if (up >= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl);
- return paths[lvl - up];
- }
-
- if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl);
- data = 'data' + ((lvl - up) || '');
- if (!jsonPointer) return data;
- }
-
- var expr = data;
- var segments = jsonPointer.split('/');
- for (var i=0; i<segments.length; i++) {
- var segment = segments[i];
- if (segment) {
- data += getProperty(unescapeJsonPointer(segment));
- expr += ' && ' + data;
- }
- }
- return expr;
-}
-
-
-function joinPaths (a, b) {
- if (a == '""') return b;
- return (a + ' + ' + b).replace(/' \+ '/g, '');
-}
-
-
-function unescapeFragment(str) {
- return unescapeJsonPointer(decodeURIComponent(str));
-}
-
-
-function escapeFragment(str) {
- return encodeURIComponent(escapeJsonPointer(str));
-}
-
-
-function escapeJsonPointer(str) {
- return str.replace(/~/g, '~0').replace(/\//g, '~1');
-}
-
-
-function unescapeJsonPointer(str) {
- return str.replace(/~1/g, '/').replace(/~0/g, '~');
-}
-
-},{"./ucs2length":9,"fast-deep-equal":42}],11:[function(require,module,exports){
-'use strict';
-
-var KEYWORDS = [
- 'multipleOf',
- 'maximum',
- 'exclusiveMaximum',
- 'minimum',
- 'exclusiveMinimum',
- 'maxLength',
- 'minLength',
- 'pattern',
- 'additionalItems',
- 'maxItems',
- 'minItems',
- 'uniqueItems',
- 'maxProperties',
- 'minProperties',
- 'required',
- 'additionalProperties',
- 'enum',
- 'format',
- 'const'
-];
-
-module.exports = function (metaSchema, keywordsJsonPointers) {
- for (var i=0; i<keywordsJsonPointers.length; i++) {
- metaSchema = JSON.parse(JSON.stringify(metaSchema));
- var segments = keywordsJsonPointers[i].split('/');
- var keywords = metaSchema;
- var j;
- for (j=1; j<segments.length; j++)
- keywords = keywords[segments[j]];
-
- for (j=0; j<KEYWORDS.length; j++) {
- var key = KEYWORDS[j];
- var schema = keywords[key];
- if (schema) {
- keywords[key] = {
- anyOf: [
- schema,
- { $ref: 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#' }
- ]
- };
- }
- }
- }
-
- return metaSchema;
-};
-
-},{}],12:[function(require,module,exports){
-'use strict';
-
-var metaSchema = require('./refs/json-schema-draft-07.json');
-
-module.exports = {
- $id: 'https://github.com/epoberezkin/ajv/blob/master/lib/definition_schema.js',
- definitions: {
- simpleTypes: metaSchema.definitions.simpleTypes
- },
- type: 'object',
- dependencies: {
- schema: ['validate'],
- $data: ['validate'],
- statements: ['inline'],
- valid: {not: {required: ['macro']}}
- },
- properties: {
- type: metaSchema.properties.type,
- schema: {type: 'boolean'},
- statements: {type: 'boolean'},
- dependencies: {
- type: 'array',
- items: {type: 'string'}
- },
- metaSchema: {type: 'object'},
- modifying: {type: 'boolean'},
- valid: {type: 'boolean'},
- $data: {type: 'boolean'},
- async: {type: 'boolean'},
- errors: {
- anyOf: [
- {type: 'boolean'},
- {const: 'full'}
- ]
- }
- }
-};
-
-},{"./refs/json-schema-draft-07.json":41}],13:[function(require,module,exports){
-'use strict';
-module.exports = function generate__limit(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $isMax = $keyword == 'maximum',
- $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum',
- $schemaExcl = it.schema[$exclusiveKeyword],
- $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data,
- $op = $isMax ? '<' : '>',
- $notOp = $isMax ? '>' : '<',
- $errorKeyword = undefined;
- if ($isDataExcl) {
- var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr),
- $exclusive = 'exclusive' + $lvl,
- $exclType = 'exclType' + $lvl,
- $exclIsNumber = 'exclIsNumber' + $lvl,
- $opExpr = 'op' + $lvl,
- $opStr = '\' + ' + $opExpr + ' + \'';
- out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; ';
- $schemaValueExcl = 'schemaExcl' + $lvl;
- out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { ';
- var $errorKeyword = $exclusiveKeyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; ';
- if ($schema === undefined) {
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
- $schemaValue = $schemaValueExcl;
- $isData = $isDataExcl;
- }
- } else {
- var $exclIsNumber = typeof $schemaExcl == 'number',
- $opStr = $op;
- if ($exclIsNumber && $isData) {
- var $opExpr = '\'' + $opStr + '\'';
- out += ' if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { ';
- } else {
- if ($exclIsNumber && $schema === undefined) {
- $exclusive = true;
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
- $schemaValue = $schemaExcl;
- $notOp += '=';
- } else {
- if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema);
- if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) {
- $exclusive = true;
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
- $notOp += '=';
- } else {
- $exclusive = false;
- $opStr += '=';
- }
- }
- var $opExpr = '\'' + $opStr + '\'';
- out += ' if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { ';
- }
- }
- $errorKeyword = $errorKeyword || $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ' + ($opStr) + ' ';
- if ($isData) {
- out += '\' + ' + ($schemaValue);
- } else {
- out += '' + ($schemaValue) + '\'';
- }
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],14:[function(require,module,exports){
-'use strict';
-module.exports = function generate__limitItems(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $op = $keyword == 'maxItems' ? '>' : '<';
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { ';
- var $errorKeyword = $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have ';
- if ($keyword == 'maxItems') {
- out += 'more';
- } else {
- out += 'fewer';
- }
- out += ' than ';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + ($schema);
- }
- out += ' items\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],15:[function(require,module,exports){
-'use strict';
-module.exports = function generate__limitLength(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $op = $keyword == 'maxLength' ? '>' : '<';
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- if (it.opts.unicode === false) {
- out += ' ' + ($data) + '.length ';
- } else {
- out += ' ucs2length(' + ($data) + ') ';
- }
- out += ' ' + ($op) + ' ' + ($schemaValue) + ') { ';
- var $errorKeyword = $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT be ';
- if ($keyword == 'maxLength') {
- out += 'longer';
- } else {
- out += 'shorter';
- }
- out += ' than ';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + ($schema);
- }
- out += ' characters\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],16:[function(require,module,exports){
-'use strict';
-module.exports = function generate__limitProperties(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $op = $keyword == 'maxProperties' ? '>' : '<';
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { ';
- var $errorKeyword = $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have ';
- if ($keyword == 'maxProperties') {
- out += 'more';
- } else {
- out += 'fewer';
- }
- out += ' than ';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + ($schema);
- }
- out += ' properties\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],17:[function(require,module,exports){
-'use strict';
-module.exports = function generate_allOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $currentBaseId = $it.baseId,
- $allSchemasEmpty = true;
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- $allSchemasEmpty = false;
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- if ($breakOnError) {
- if ($allSchemasEmpty) {
- out += ' if (true) { ';
- } else {
- out += ' ' + ($closingBraces.slice(0, -1)) + ' ';
- }
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
-
-},{}],18:[function(require,module,exports){
-'use strict';
-module.exports = function generate_anyOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $noEmptySchema = $schema.every(function($sch) {
- return (it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all));
- });
- if ($noEmptySchema) {
- var $currentBaseId = $it.baseId;
- out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { ';
- $closingBraces += '}';
- }
- }
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match some schema in anyOf\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- if (it.opts.allErrors) {
- out += ' } ';
- }
- out = it.util.cleanUpCode(out);
- } else {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- }
- return out;
-}
-
-},{}],19:[function(require,module,exports){
-'use strict';
-module.exports = function generate_comment(it, $keyword, $ruleType) {
- var out = ' ';
- var $schema = it.schema[$keyword];
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $comment = it.util.toQuotedString($schema);
- if (it.opts.$comment === true) {
- out += ' console.log(' + ($comment) + ');';
- } else if (typeof it.opts.$comment == 'function') {
- out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);';
- }
- return out;
-}
-
-},{}],20:[function(require,module,exports){
-'use strict';
-module.exports = function generate_const(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- if (!$isData) {
- out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';';
- }
- out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be equal to constant\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' }';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],21:[function(require,module,exports){
-'use strict';
-module.exports = function generate_contains(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $idx = 'i' + $lvl,
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $currentBaseId = it.baseId,
- $nonEmptySchema = (it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all));
- out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
- if ($nonEmptySchema) {
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- out += ' if (' + ($nextValid) + ') break; } ';
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {';
- } else {
- out += ' if (' + ($data) + '.length == 0) {';
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should contain a valid item\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- if ($nonEmptySchema) {
- out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- }
- if (it.opts.allErrors) {
- out += ' } ';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
-
-},{}],22:[function(require,module,exports){
-'use strict';
-module.exports = function generate_custom(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $rule = this,
- $definition = 'definition' + $lvl,
- $rDef = $rule.definition,
- $closingBraces = '';
- var $compile, $inline, $macro, $ruleValidate, $validateCode;
- if ($isData && $rDef.$data) {
- $validateCode = 'keywordValidate' + $lvl;
- var $validateSchema = $rDef.validateSchema;
- out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;';
- } else {
- $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);
- if (!$ruleValidate) return;
- $schemaValue = 'validate.schema' + $schemaPath;
- $validateCode = $ruleValidate.code;
- $compile = $rDef.compile;
- $inline = $rDef.inline;
- $macro = $rDef.macro;
- }
- var $ruleErrs = $validateCode + '.errors',
- $i = 'i' + $lvl,
- $ruleErr = 'ruleErr' + $lvl,
- $asyncKeyword = $rDef.async;
- if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');
- if (!($inline || $macro)) {
- out += '' + ($ruleErrs) + ' = null;';
- }
- out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
- if ($isData && $rDef.$data) {
- $closingBraces += '}';
- out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { ';
- if ($validateSchema) {
- $closingBraces += '}';
- out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { ';
- }
- }
- if ($inline) {
- if ($rDef.statements) {
- out += ' ' + ($ruleValidate.validate) + ' ';
- } else {
- out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; ';
- }
- } else if ($macro) {
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- $it.schema = $ruleValidate.validate;
- $it.schemaPath = '';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var $code = it.validate($it).replace(/validate\.schema/g, $validateCode);
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' ' + ($code);
- } else {
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = '';
- out += ' ' + ($validateCode) + '.call( ';
- if (it.opts.passContext) {
- out += 'this';
- } else {
- out += 'self';
- }
- if ($compile || $rDef.schema === false) {
- out += ' , ' + ($data) + ' ';
- } else {
- out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';
- }
- out += ' , (dataPath || \'\')';
- if (it.errorPath != '""') {
- out += ' + ' + (it.errorPath);
- }
- var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
- $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
- out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) ';
- var def_callRuleValidate = out;
- out = $$outStack.pop();
- if ($rDef.errors === false) {
- out += ' ' + ($valid) + ' = ';
- if ($asyncKeyword) {
- out += 'await ';
- }
- out += '' + (def_callRuleValidate) + '; ';
- } else {
- if ($asyncKeyword) {
- $ruleErrs = 'customErrors' + $lvl;
- out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';
- } else {
- out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; ';
- }
- }
- }
- if ($rDef.modifying) {
- out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];';
- }
- out += '' + ($closingBraces);
- if ($rDef.valid) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- } else {
- out += ' if ( ';
- if ($rDef.valid === undefined) {
- out += ' !';
- if ($macro) {
- out += '' + ($nextValid);
- } else {
- out += '' + ($valid);
- }
- } else {
- out += ' ' + (!$rDef.valid) + ' ';
- }
- out += ') { ';
- $errorKeyword = $rule.keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = '';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- var def_customError = out;
- out = $$outStack.pop();
- if ($inline) {
- if ($rDef.errors) {
- if ($rDef.errors != 'full') {
- out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
- if (it.opts.verbose) {
- out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
- }
- out += ' } ';
- }
- } else {
- if ($rDef.errors === false) {
- out += ' ' + (def_customError) + ' ';
- } else {
- out += ' if (' + ($errs) + ' == errors) { ' + (def_customError) + ' } else { for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
- if (it.opts.verbose) {
- out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
- }
- out += ' } } ';
- }
- }
- } else if ($macro) {
- out += ' var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- } else {
- if ($rDef.errors === false) {
- out += ' ' + (def_customError) + ' ';
- } else {
- out += ' if (Array.isArray(' + ($ruleErrs) + ')) { if (vErrors === null) vErrors = ' + ($ruleErrs) + '; else vErrors = vErrors.concat(' + ($ruleErrs) + '); errors = vErrors.length; for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; ';
- if (it.opts.verbose) {
- out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
- }
- out += ' } } else { ' + (def_customError) + ' } ';
- }
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- }
- return out;
-}
-
-},{}],23:[function(require,module,exports){
-'use strict';
-module.exports = function generate_dependencies(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $schemaDeps = {},
- $propertyDeps = {},
- $ownProperties = it.opts.ownProperties;
- for ($property in $schema) {
- var $sch = $schema[$property];
- var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
- $deps[$property] = $sch;
- }
- out += 'var ' + ($errs) + ' = errors;';
- var $currentErrorPath = it.errorPath;
- out += 'var missing' + ($lvl) + ';';
- for (var $property in $propertyDeps) {
- $deps = $propertyDeps[$property];
- if ($deps.length) {
- out += ' if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
- }
- if ($breakOnError) {
- out += ' && ( ';
- var arr1 = $deps;
- if (arr1) {
- var $propertyKey, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $propertyKey = arr1[$i += 1];
- if ($i) {
- out += ' || ';
- }
- var $prop = it.util.getProperty($propertyKey),
- $useData = $data + $prop;
- out += ' ( ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';
- }
- }
- out += ')) { ';
- var $propertyPath = 'missing' + $lvl,
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should have ';
- if ($deps.length == 1) {
- out += 'property ' + (it.util.escapeQuotes($deps[0]));
- } else {
- out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
- }
- out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- } else {
- out += ' ) { ';
- var arr2 = $deps;
- if (arr2) {
- var $propertyKey, i2 = -1,
- l2 = arr2.length - 1;
- while (i2 < l2) {
- $propertyKey = arr2[i2 += 1];
- var $prop = it.util.getProperty($propertyKey),
- $missingProperty = it.util.escapeQuotes($propertyKey),
- $useData = $data + $prop;
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should have ';
- if ($deps.length == 1) {
- out += 'property ' + (it.util.escapeQuotes($deps[0]));
- } else {
- out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
- }
- out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';
- }
- }
- }
- out += ' } ';
- if ($breakOnError) {
- $closingBraces += '}';
- out += ' else { ';
- }
- }
- }
- it.errorPath = $currentErrorPath;
- var $currentBaseId = $it.baseId;
- for (var $property in $schemaDeps) {
- var $sch = $schemaDeps[$property];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
- }
- out += ') { ';
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + it.util.getProperty($property);
- $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
-
-},{}],24:[function(require,module,exports){
-'use strict';
-module.exports = function generate_enum(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $i = 'i' + $lvl,
- $vSchema = 'schema' + $lvl;
- if (!$isData) {
- out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';
- }
- out += 'var ' + ($valid) + ';';
- if ($isData) {
- out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
- }
- out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';
- if ($isData) {
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be equal to one of the allowed values\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' }';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],25:[function(require,module,exports){
-'use strict';
-module.exports = function generate_format(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- if (it.opts.format === false) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- }
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $unknownFormats = it.opts.unknownFormats,
- $allowUnknown = Array.isArray($unknownFormats);
- if ($isData) {
- var $format = 'format' + $lvl,
- $isObject = 'isObject' + $lvl,
- $formatType = 'formatType' + $lvl;
- out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { ';
- if (it.async) {
- out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; ';
- }
- out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
- }
- out += ' (';
- if ($unknownFormats != 'ignore') {
- out += ' (' + ($schemaValue) + ' && !' + ($format) + ' ';
- if ($allowUnknown) {
- out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 ';
- }
- out += ') || ';
- }
- out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? ';
- if (it.async) {
- out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';
- } else {
- out += ' ' + ($format) + '(' + ($data) + ') ';
- }
- out += ' : ' + ($format) + '.test(' + ($data) + '))))) {';
- } else {
- var $format = it.formats[$schema];
- if (!$format) {
- if ($unknownFormats == 'ignore') {
- it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"');
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- } else {
- throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"');
- }
- }
- var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;
- var $formatType = $isObject && $format.type || 'string';
- if ($isObject) {
- var $async = $format.async === true;
- $format = $format.validate;
- }
- if ($formatType != $ruleType) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- }
- if ($async) {
- if (!it.async) throw new Error('async format in sync schema');
- var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';
- out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { ';
- } else {
- out += ' if (! ';
- var $formatRef = 'formats' + it.util.getProperty($schema);
- if ($isObject) $formatRef += '.validate';
- if (typeof $format == 'function') {
- out += ' ' + ($formatRef) + '(' + ($data) + ') ';
- } else {
- out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';
- }
- out += ') { ';
- }
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: ';
- if ($isData) {
- out += '' + ($schemaValue);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match format "';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + (it.util.escapeQuotes($schema));
- }
- out += '"\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],26:[function(require,module,exports){
-'use strict';
-module.exports = function generate_if(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $thenSch = it.schema['then'],
- $elseSch = it.schema['else'],
- $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? typeof $thenSch == 'object' && Object.keys($thenSch).length > 0 : it.util.schemaHasRules($thenSch, it.RULES.all)),
- $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? typeof $elseSch == 'object' && Object.keys($elseSch).length > 0 : it.util.schemaHasRules($elseSch, it.RULES.all)),
- $currentBaseId = $it.baseId;
- if ($thenPresent || $elsePresent) {
- var $ifClause;
- $it.createErrors = false;
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- $it.createErrors = true;
- out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- it.compositeRule = $it.compositeRule = $wasComposite;
- if ($thenPresent) {
- out += ' if (' + ($nextValid) + ') { ';
- $it.schema = it.schema['then'];
- $it.schemaPath = it.schemaPath + '.then';
- $it.errSchemaPath = it.errSchemaPath + '/then';
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
- if ($thenPresent && $elsePresent) {
- $ifClause = 'ifClause' + $lvl;
- out += ' var ' + ($ifClause) + ' = \'then\'; ';
- } else {
- $ifClause = '\'then\'';
- }
- out += ' } ';
- if ($elsePresent) {
- out += ' else { ';
- }
- } else {
- out += ' if (!' + ($nextValid) + ') { ';
- }
- if ($elsePresent) {
- $it.schema = it.schema['else'];
- $it.schemaPath = it.schemaPath + '.else';
- $it.errSchemaPath = it.errSchemaPath + '/else';
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
- if ($thenPresent && $elsePresent) {
- $ifClause = 'ifClause' + $lvl;
- out += ' var ' + ($ifClause) + ' = \'else\'; ';
- } else {
- $ifClause = '\'else\'';
- }
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- out = it.util.cleanUpCode(out);
- } else {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- }
- return out;
-}
-
-},{}],27:[function(require,module,exports){
-'use strict';
-
-//all requires must be explicit because browserify won't work with dynamic requires
-module.exports = {
- '$ref': require('./ref'),
- allOf: require('./allOf'),
- anyOf: require('./anyOf'),
- '$comment': require('./comment'),
- const: require('./const'),
- contains: require('./contains'),
- dependencies: require('./dependencies'),
- 'enum': require('./enum'),
- format: require('./format'),
- 'if': require('./if'),
- items: require('./items'),
- maximum: require('./_limit'),
- minimum: require('./_limit'),
- maxItems: require('./_limitItems'),
- minItems: require('./_limitItems'),
- maxLength: require('./_limitLength'),
- minLength: require('./_limitLength'),
- maxProperties: require('./_limitProperties'),
- minProperties: require('./_limitProperties'),
- multipleOf: require('./multipleOf'),
- not: require('./not'),
- oneOf: require('./oneOf'),
- pattern: require('./pattern'),
- properties: require('./properties'),
- propertyNames: require('./propertyNames'),
- required: require('./required'),
- uniqueItems: require('./uniqueItems'),
- validate: require('./validate')
-};
-
-},{"./_limit":13,"./_limitItems":14,"./_limitLength":15,"./_limitProperties":16,"./allOf":17,"./anyOf":18,"./comment":19,"./const":20,"./contains":21,"./dependencies":23,"./enum":24,"./format":25,"./if":26,"./items":28,"./multipleOf":29,"./not":30,"./oneOf":31,"./pattern":32,"./properties":33,"./propertyNames":34,"./ref":35,"./required":36,"./uniqueItems":37,"./validate":38}],28:[function(require,module,exports){
-'use strict';
-module.exports = function generate_items(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $idx = 'i' + $lvl,
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $currentBaseId = it.baseId;
- out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
- if (Array.isArray($schema)) {
- var $additionalItems = it.schema.additionalItems;
- if ($additionalItems === false) {
- out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; ';
- var $currErrSchemaPath = $errSchemaPath;
- $errSchemaPath = it.errSchemaPath + '/additionalItems';
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- $errSchemaPath = $currErrSchemaPath;
- if ($breakOnError) {
- $closingBraces += '}';
- out += ' else { ';
- }
- }
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { ';
- var $passData = $data + '[' + $i + ']';
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);
- $it.dataPathArr[$dataNxt] = $i;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0 : it.util.schemaHasRules($additionalItems, it.RULES.all))) {
- $it.schema = $additionalItems;
- $it.schemaPath = it.schemaPath + '.additionalItems';
- $it.errSchemaPath = it.errSchemaPath + '/additionalItems';
- out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- out += ' } } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- } else if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- out += ' }';
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
-
-},{}],29:[function(require,module,exports){
-'use strict';
-module.exports = function generate_multipleOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- out += 'var division' + ($lvl) + ';if (';
- if ($isData) {
- out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || ';
- }
- out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', ';
- if (it.opts.multipleOfPrecision) {
- out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' ';
- } else {
- out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') ';
- }
- out += ' ) ';
- if ($isData) {
- out += ' ) ';
- }
- out += ' ) { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be multiple of ';
- if ($isData) {
- out += '\' + ' + ($schemaValue);
- } else {
- out += '' + ($schemaValue) + '\'';
- }
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],30:[function(require,module,exports){
-'use strict';
-module.exports = function generate_not(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' var ' + ($errs) + ' = errors; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- $it.createErrors = false;
- var $allErrorsOption;
- if ($it.opts.allErrors) {
- $allErrorsOption = $it.opts.allErrors;
- $it.opts.allErrors = false;
- }
- out += ' ' + (it.validate($it)) + ' ';
- $it.createErrors = true;
- if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' if (' + ($nextValid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT be valid\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- if (it.opts.allErrors) {
- out += ' } ';
- }
- } else {
- out += ' var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT be valid\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if ($breakOnError) {
- out += ' if (false) { ';
- }
- }
- return out;
-}
-
-},{}],31:[function(require,module,exports){
-'use strict';
-module.exports = function generate_oneOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $currentBaseId = $it.baseId,
- $prevValid = 'prevValid' + $lvl,
- $passingSchemas = 'passingSchemas' + $lvl;
- out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- } else {
- out += ' var ' + ($nextValid) + ' = true; ';
- }
- if ($i) {
- out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { ';
- $closingBraces += '}';
- }
- out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }';
- }
- }
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match exactly one schema in oneOf\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }';
- if (it.opts.allErrors) {
- out += ' } ';
- }
- return out;
-}
-
-},{}],32:[function(require,module,exports){
-'use strict';
-module.exports = function generate_pattern(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
- }
- out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: ';
- if ($isData) {
- out += '' + ($schemaValue);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match pattern "';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + (it.util.escapeQuotes($schema));
- }
- out += '"\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
-
-},{}],33:[function(require,module,exports){
-'use strict';
-module.exports = function generate_properties(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $key = 'key' + $lvl,
- $idx = 'idx' + $lvl,
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $dataProperties = 'dataProperties' + $lvl;
- var $schemaKeys = Object.keys($schema || {}),
- $pProperties = it.schema.patternProperties || {},
- $pPropertyKeys = Object.keys($pProperties),
- $aProperties = it.schema.additionalProperties,
- $someProperties = $schemaKeys.length || $pPropertyKeys.length,
- $noAdditional = $aProperties === false,
- $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length,
- $removeAdditional = it.opts.removeAdditional,
- $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional,
- $ownProperties = it.opts.ownProperties,
- $currentBaseId = it.baseId;
- var $required = it.schema.required;
- if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required);
- out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;';
- if ($ownProperties) {
- out += ' var ' + ($dataProperties) + ' = undefined;';
- }
- if ($checkAdditional) {
- if ($ownProperties) {
- out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
- } else {
- out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
- }
- if ($someProperties) {
- out += ' var isAdditional' + ($lvl) + ' = !(false ';
- if ($schemaKeys.length) {
- if ($schemaKeys.length > 8) {
- out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') ';
- } else {
- var arr1 = $schemaKeys;
- if (arr1) {
- var $propertyKey, i1 = -1,
- l1 = arr1.length - 1;
- while (i1 < l1) {
- $propertyKey = arr1[i1 += 1];
- out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' ';
- }
- }
- }
- }
- if ($pPropertyKeys.length) {
- var arr2 = $pPropertyKeys;
- if (arr2) {
- var $pProperty, $i = -1,
- l2 = arr2.length - 1;
- while ($i < l2) {
- $pProperty = arr2[$i += 1];
- out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') ';
- }
- }
- }
- out += ' ); if (isAdditional' + ($lvl) + ') { ';
- }
- if ($removeAdditional == 'all') {
- out += ' delete ' + ($data) + '[' + ($key) + ']; ';
- } else {
- var $currentErrorPath = it.errorPath;
- var $additionalProperty = '\' + ' + $key + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- }
- if ($noAdditional) {
- if ($removeAdditional) {
- out += ' delete ' + ($data) + '[' + ($key) + ']; ';
- } else {
- out += ' ' + ($nextValid) + ' = false; ';
- var $currErrSchemaPath = $errSchemaPath;
- $errSchemaPath = it.errSchemaPath + '/additionalProperties';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is an invalid additional property';
- } else {
- out += 'should NOT have additional properties';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- $errSchemaPath = $currErrSchemaPath;
- if ($breakOnError) {
- out += ' break; ';
- }
- }
- } else if ($additionalIsSchema) {
- if ($removeAdditional == 'failing') {
- out += ' var ' + ($errs) + ' = errors; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- $it.schema = $aProperties;
- $it.schemaPath = it.schemaPath + '.additionalProperties';
- $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';
- $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } ';
- it.compositeRule = $it.compositeRule = $wasComposite;
- } else {
- $it.schema = $aProperties;
- $it.schemaPath = it.schemaPath + '.additionalProperties';
- $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';
- $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- }
- }
- it.errorPath = $currentErrorPath;
- }
- if ($someProperties) {
- out += ' } ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- var $useDefaults = it.opts.useDefaults && !it.compositeRule;
- if ($schemaKeys.length) {
- var arr3 = $schemaKeys;
- if (arr3) {
- var $propertyKey, i3 = -1,
- l3 = arr3.length - 1;
- while (i3 < l3) {
- $propertyKey = arr3[i3 += 1];
- var $sch = $schema[$propertyKey];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- var $prop = it.util.getProperty($propertyKey),
- $passData = $data + $prop,
- $hasDefault = $useDefaults && $sch.default !== undefined;
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + $prop;
- $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey);
- $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);
- $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- $code = it.util.varReplace($code, $nextData, $passData);
- var $useData = $passData;
- } else {
- var $useData = $nextData;
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ';
- }
- if ($hasDefault) {
- out += ' ' + ($code) + ' ';
- } else {
- if ($requiredHash && $requiredHash[$propertyKey]) {
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { ' + ($nextValid) + ' = false; ';
- var $currentErrorPath = it.errorPath,
- $currErrSchemaPath = $errSchemaPath,
- $missingProperty = it.util.escapeQuotes($propertyKey);
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- $errSchemaPath = it.errSchemaPath + '/required';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- $errSchemaPath = $currErrSchemaPath;
- it.errorPath = $currentErrorPath;
- out += ' } else { ';
- } else {
- if ($breakOnError) {
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { ' + ($nextValid) + ' = true; } else { ';
- } else {
- out += ' if (' + ($useData) + ' !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ' ) { ';
- }
- }
- out += ' ' + ($code) + ' } ';
- }
- }
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- if ($pPropertyKeys.length) {
- var arr4 = $pPropertyKeys;
- if (arr4) {
- var $pProperty, i4 = -1,
- l4 = arr4.length - 1;
- while (i4 < l4) {
- $pProperty = arr4[i4 += 1];
- var $sch = $pProperties[$pProperty];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- $it.schema = $sch;
- $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty);
- $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty);
- if ($ownProperties) {
- out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
- } else {
- out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
- }
- out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else ' + ($nextValid) + ' = true; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
-
-},{}],34:[function(require,module,exports){
-'use strict';
-module.exports = function generate_propertyNames(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- out += 'var ' + ($errs) + ' = errors;';
- if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- var $key = 'key' + $lvl,
- $idx = 'idx' + $lvl,
- $i = 'i' + $lvl,
- $invalidName = '\' + ' + $key + ' + \'',
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $dataProperties = 'dataProperties' + $lvl,
- $ownProperties = it.opts.ownProperties,
- $currentBaseId = it.baseId;
- if ($ownProperties) {
- out += ' var ' + ($dataProperties) + ' = undefined; ';
- }
- if ($ownProperties) {
- out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
- } else {
- out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
- }
- out += ' var startErrs' + ($lvl) + ' = errors; ';
- var $passData = $key;
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + '<errors; ' + ($i) + '++) { vErrors[' + ($i) + '].propertyName = ' + ($key) + '; } var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('propertyNames') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { propertyName: \'' + ($invalidName) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'property name \\\'' + ($invalidName) + '\\\' is invalid\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- if ($breakOnError) {
- out += ' break; ';
- }
- out += ' } }';
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
-
-},{}],35:[function(require,module,exports){
-'use strict';
-module.exports = function generate_ref(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $async, $refCode;
- if ($schema == '#' || $schema == '#/') {
- if (it.isRoot) {
- $async = it.async;
- $refCode = 'validate';
- } else {
- $async = it.root.schema.$async === true;
- $refCode = 'root.refVal[0]';
- }
- } else {
- var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot);
- if ($refVal === undefined) {
- var $message = it.MissingRefError.message(it.baseId, $schema);
- if (it.opts.missingRefs == 'fail') {
- it.logger.error($message);
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('$ref') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { ref: \'' + (it.util.escapeQuotes($schema)) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'can\\\'t resolve reference ' + (it.util.escapeQuotes($schema)) + '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ' + (it.util.toQuotedString($schema)) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- if ($breakOnError) {
- out += ' if (false) { ';
- }
- } else if (it.opts.missingRefs == 'ignore') {
- it.logger.warn($message);
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- } else {
- throw new it.MissingRefError(it.baseId, $schema, $message);
- }
- } else if ($refVal.inline) {
- var $it = it.util.copy(it);
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- $it.schema = $refVal.schema;
- $it.schemaPath = '';
- $it.errSchemaPath = $schema;
- var $code = it.validate($it).replace(/validate\.schema/g, $refVal.code);
- out += ' ' + ($code) + ' ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- }
- } else {
- $async = $refVal.$async === true || (it.async && $refVal.$async !== false);
- $refCode = $refVal.code;
- }
- }
- if ($refCode) {
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = '';
- if (it.opts.passContext) {
- out += ' ' + ($refCode) + '.call(this, ';
- } else {
- out += ' ' + ($refCode) + '( ';
- }
- out += ' ' + ($data) + ', (dataPath || \'\')';
- if (it.errorPath != '""') {
- out += ' + ' + (it.errorPath);
- }
- var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
- $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
- out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ', rootData) ';
- var __callValidate = out;
- out = $$outStack.pop();
- if ($async) {
- if (!it.async) throw new Error('async schema referenced by sync schema');
- if ($breakOnError) {
- out += ' var ' + ($valid) + '; ';
- }
- out += ' try { await ' + (__callValidate) + '; ';
- if ($breakOnError) {
- out += ' ' + ($valid) + ' = true; ';
- }
- out += ' } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ';
- if ($breakOnError) {
- out += ' ' + ($valid) + ' = false; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($valid) + ') { ';
- }
- } else {
- out += ' if (!' + (__callValidate) + ') { if (vErrors === null) vErrors = ' + ($refCode) + '.errors; else vErrors = vErrors.concat(' + ($refCode) + '.errors); errors = vErrors.length; } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- }
- }
- return out;
-}
-
-},{}],36:[function(require,module,exports){
-'use strict';
-module.exports = function generate_required(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $vSchema = 'schema' + $lvl;
- if (!$isData) {
- if ($schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length) {
- var $required = [];
- var arr1 = $schema;
- if (arr1) {
- var $property, i1 = -1,
- l1 = arr1.length - 1;
- while (i1 < l1) {
- $property = arr1[i1 += 1];
- var $propertySch = it.schema.properties[$property];
- if (!($propertySch && (it.opts.strictKeywords ? typeof $propertySch == 'object' && Object.keys($propertySch).length > 0 : it.util.schemaHasRules($propertySch, it.RULES.all)))) {
- $required[$required.length] = $property;
- }
- }
- }
- } else {
- var $required = $schema;
- }
- }
- if ($isData || $required.length) {
- var $currentErrorPath = it.errorPath,
- $loopRequired = $isData || $required.length >= it.opts.loopRequired,
- $ownProperties = it.opts.ownProperties;
- if ($breakOnError) {
- out += ' var missing' + ($lvl) + '; ';
- if ($loopRequired) {
- if (!$isData) {
- out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';
- }
- var $i = 'i' + $lvl,
- $propertyPath = 'schema' + $lvl + '[' + $i + ']',
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
- }
- out += ' var ' + ($valid) + ' = true; ';
- if ($isData) {
- out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
- }
- out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';
- }
- out += '; if (!' + ($valid) + ') break; } ';
- if ($isData) {
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- } else {
- out += ' if ( ';
- var arr2 = $required;
- if (arr2) {
- var $propertyKey, $i = -1,
- l2 = arr2.length - 1;
- while ($i < l2) {
- $propertyKey = arr2[$i += 1];
- if ($i) {
- out += ' || ';
- }
- var $prop = it.util.getProperty($propertyKey),
- $useData = $data + $prop;
- out += ' ( ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';
- }
- }
- out += ') { ';
- var $propertyPath = 'missing' + $lvl,
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- }
- } else {
- if ($loopRequired) {
- if (!$isData) {
- out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';
- }
- var $i = 'i' + $lvl,
- $propertyPath = 'schema' + $lvl + '[' + $i + ']',
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
- }
- if ($isData) {
- out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { ';
- }
- out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';
- }
- out += ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ';
- if ($isData) {
- out += ' } ';
- }
- } else {
- var arr3 = $required;
- if (arr3) {
- var $propertyKey, i3 = -1,
- l3 = arr3.length - 1;
- while (i3 < l3) {
- $propertyKey = arr3[i3 += 1];
- var $prop = it.util.getProperty($propertyKey),
- $missingProperty = it.util.escapeQuotes($propertyKey),
- $useData = $data + $prop;
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';
- }
- }
- }
- }
- it.errorPath = $currentErrorPath;
- } else if ($breakOnError) {
- out += ' if (true) {';
- }
- return out;
-}
-
-},{}],37:[function(require,module,exports){
-'use strict';
-module.exports = function generate_uniqueItems(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- if (($schema || $isData) && it.opts.uniqueItems !== false) {
- if ($isData) {
- out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { ';
- }
- out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { ';
- var $itemType = it.schema.items && it.schema.items.type,
- $typeIsArray = Array.isArray($itemType);
- if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) {
- out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } ';
- } else {
- out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; ';
- var $method = 'checkDataType' + ($typeIsArray ? 's' : '');
- out += ' if (' + (it.util[$method]($itemType, 'item', true)) + ') continue; ';
- if ($typeIsArray) {
- out += ' if (typeof item == \'string\') item = \'"\' + item; ';
- }
- out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ';
- }
- out += ' } ';
- if ($isData) {
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- } else {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- }
- return out;
-}
-
-},{}],38:[function(require,module,exports){
-'use strict';
-module.exports = function generate_validate(it, $keyword, $ruleType) {
- var out = '';
- var $async = it.schema.$async === true,
- $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
- $id = it.self._getId(it.schema);
- if (it.opts.strictKeywords) {
- var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);
- if ($unknownKwd) {
- var $keywordsMsg = 'unknown keyword: ' + $unknownKwd;
- if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg);
- else throw new Error($keywordsMsg);
- }
- }
- if (it.isTop) {
- out += ' var validate = ';
- if ($async) {
- it.async = true;
- out += 'async ';
- }
- out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; ';
- if ($id && (it.opts.sourceCode || it.opts.processCode)) {
- out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' ';
- }
- }
- if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) {
- var $keyword = 'false schema';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- if (it.schema === false) {
- if (it.isTop) {
- $breakOnError = true;
- } else {
- out += ' var ' + ($valid) + ' = false; ';
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'boolean schema is false\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- } else {
- if (it.isTop) {
- if ($async) {
- out += ' return data; ';
- } else {
- out += ' validate.errors = null; return true; ';
- }
- } else {
- out += ' var ' + ($valid) + ' = true; ';
- }
- }
- if (it.isTop) {
- out += ' }; return validate; ';
- }
- return out;
- }
- if (it.isTop) {
- var $top = it.isTop,
- $lvl = it.level = 0,
- $dataLvl = it.dataLevel = 0,
- $data = 'data';
- it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));
- it.baseId = it.baseId || it.rootId;
- delete it.isTop;
- it.dataPathArr = [undefined];
- if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored in the schema root';
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- out += ' var vErrors = null; ';
- out += ' var errors = 0; ';
- out += ' if (rootData === undefined) rootData = data; ';
- } else {
- var $lvl = it.level,
- $dataLvl = it.dataLevel,
- $data = 'data' + ($dataLvl || '');
- if ($id) it.baseId = it.resolve.url(it.baseId, $id);
- if ($async && !it.async) throw new Error('async schema in sync schema');
- out += ' var errs_' + ($lvl) + ' = errors;';
- }
- var $valid = 'valid' + $lvl,
- $breakOnError = !it.opts.allErrors,
- $closingBraces1 = '',
- $closingBraces2 = '';
- var $errorKeyword;
- var $typeSchema = it.schema.type,
- $typeIsArray = Array.isArray($typeSchema);
- if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {
- if ($typeIsArray) {
- if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null');
- } else if ($typeSchema != 'null') {
- $typeSchema = [$typeSchema, 'null'];
- $typeIsArray = true;
- }
- }
- if ($typeIsArray && $typeSchema.length == 1) {
- $typeSchema = $typeSchema[0];
- $typeIsArray = false;
- }
- if (it.schema.$ref && $refKeywords) {
- if (it.opts.extendRefs == 'fail') {
- throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)');
- } else if (it.opts.extendRefs !== true) {
- $refKeywords = false;
- it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"');
- }
- }
- if (it.schema.$comment && it.opts.$comment) {
- out += ' ' + (it.RULES.all.$comment.code(it, '$comment'));
- }
- if ($typeSchema) {
- if (it.opts.coerceTypes) {
- var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);
- }
- var $rulesGroup = it.RULES.types[$typeSchema];
- if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) {
- var $schemaPath = it.schemaPath + '.type',
- $errSchemaPath = it.errSchemaPath + '/type';
- var $schemaPath = it.schemaPath + '.type',
- $errSchemaPath = it.errSchemaPath + '/type',
- $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';
- out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { ';
- if ($coerceToTypes) {
- var $dataType = 'dataType' + $lvl,
- $coerced = 'coerced' + $lvl;
- out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; ';
- if (it.opts.coerceTypes == 'array') {
- out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ')) ' + ($dataType) + ' = \'array\'; ';
- }
- out += ' var ' + ($coerced) + ' = undefined; ';
- var $bracesCoercion = '';
- var arr1 = $coerceToTypes;
- if (arr1) {
- var $type, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $type = arr1[$i += 1];
- if ($i) {
- out += ' if (' + ($coerced) + ' === undefined) { ';
- $bracesCoercion += '}';
- }
- if (it.opts.coerceTypes == 'array' && $type != 'array') {
- out += ' if (' + ($dataType) + ' == \'array\' && ' + ($data) + '.length == 1) { ' + ($coerced) + ' = ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; } ';
- }
- if ($type == 'string') {
- out += ' if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; ';
- } else if ($type == 'number' || $type == 'integer') {
- out += ' if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';
- if ($type == 'integer') {
- out += ' && !(' + ($data) + ' % 1)';
- }
- out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';
- } else if ($type == 'boolean') {
- out += ' if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';
- } else if ($type == 'null') {
- out += ' if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';
- } else if (it.opts.coerceTypes == 'array' && $type == 'array') {
- out += ' if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; ';
- }
- }
- }
- out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
- $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
- out += ' ' + ($data) + ' = ' + ($coerced) + '; ';
- if (!$dataLvl) {
- out += 'if (' + ($parentData) + ' !== undefined)';
- }
- out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } ';
- } else {
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- }
- out += ' } ';
- }
- }
- if (it.schema.$ref && !$refKeywords) {
- out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' ';
- if ($breakOnError) {
- out += ' } if (errors === ';
- if ($top) {
- out += '0';
- } else {
- out += 'errs_' + ($lvl);
- }
- out += ') { ';
- $closingBraces2 += '}';
- }
- } else {
- var arr2 = it.RULES;
- if (arr2) {
- var $rulesGroup, i2 = -1,
- l2 = arr2.length - 1;
- while (i2 < l2) {
- $rulesGroup = arr2[i2 += 1];
- if ($shouldUseGroup($rulesGroup)) {
- if ($rulesGroup.type) {
- out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { ';
- }
- if (it.opts.useDefaults) {
- if ($rulesGroup.type == 'object' && it.schema.properties) {
- var $schema = it.schema.properties,
- $schemaKeys = Object.keys($schema);
- var arr3 = $schemaKeys;
- if (arr3) {
- var $propertyKey, i3 = -1,
- l3 = arr3.length - 1;
- while (i3 < l3) {
- $propertyKey = arr3[i3 += 1];
- var $sch = $schema[$propertyKey];
- if ($sch.default !== undefined) {
- var $passData = $data + it.util.getProperty($propertyKey);
- if (it.compositeRule) {
- if (it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored for: ' + $passData;
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- } else {
- out += ' if (' + ($passData) + ' === undefined ';
- if (it.opts.useDefaults == 'empty') {
- out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' ';
- }
- out += ' ) ' + ($passData) + ' = ';
- if (it.opts.useDefaults == 'shared') {
- out += ' ' + (it.useDefault($sch.default)) + ' ';
- } else {
- out += ' ' + (JSON.stringify($sch.default)) + ' ';
- }
- out += '; ';
- }
- }
- }
- }
- } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {
- var arr4 = it.schema.items;
- if (arr4) {
- var $sch, $i = -1,
- l4 = arr4.length - 1;
- while ($i < l4) {
- $sch = arr4[$i += 1];
- if ($sch.default !== undefined) {
- var $passData = $data + '[' + $i + ']';
- if (it.compositeRule) {
- if (it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored for: ' + $passData;
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- } else {
- out += ' if (' + ($passData) + ' === undefined ';
- if (it.opts.useDefaults == 'empty') {
- out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' ';
- }
- out += ' ) ' + ($passData) + ' = ';
- if (it.opts.useDefaults == 'shared') {
- out += ' ' + (it.useDefault($sch.default)) + ' ';
- } else {
- out += ' ' + (JSON.stringify($sch.default)) + ' ';
- }
- out += '; ';
- }
- }
- }
- }
- }
- }
- var arr5 = $rulesGroup.rules;
- if (arr5) {
- var $rule, i5 = -1,
- l5 = arr5.length - 1;
- while (i5 < l5) {
- $rule = arr5[i5 += 1];
- if ($shouldUseRule($rule)) {
- var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);
- if ($code) {
- out += ' ' + ($code) + ' ';
- if ($breakOnError) {
- $closingBraces1 += '}';
- }
- }
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces1) + ' ';
- $closingBraces1 = '';
- }
- if ($rulesGroup.type) {
- out += ' } ';
- if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {
- out += ' else { ';
- var $schemaPath = it.schemaPath + '.type',
- $errSchemaPath = it.errSchemaPath + '/type';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- }
- }
- if ($breakOnError) {
- out += ' if (errors === ';
- if ($top) {
- out += '0';
- } else {
- out += 'errs_' + ($lvl);
- }
- out += ') { ';
- $closingBraces2 += '}';
- }
- }
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces2) + ' ';
- }
- if ($top) {
- if ($async) {
- out += ' if (errors === 0) return data; ';
- out += ' else throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; ';
- out += ' return errors === 0; ';
- }
- out += ' }; return validate;';
- } else {
- out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';
- }
- out = it.util.cleanUpCode(out);
- if ($top) {
- out = it.util.finalCleanUpCode(out, $async);
- }
-
- function $shouldUseGroup($rulesGroup) {
- var rules = $rulesGroup.rules;
- for (var i = 0; i < rules.length; i++)
- if ($shouldUseRule(rules[i])) return true;
- }
-
- function $shouldUseRule($rule) {
- return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule));
- }
-
- function $ruleImplementsSomeKeyword($rule) {
- var impl = $rule.implements;
- for (var i = 0; i < impl.length; i++)
- if (it.schema[impl[i]] !== undefined) return true;
- }
- return out;
-}
-
-},{}],39:[function(require,module,exports){
-'use strict';
-
-var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
-var customRuleCode = require('./dotjs/custom');
-var definitionSchema = require('./definition_schema');
-
-module.exports = {
- add: addKeyword,
- get: getKeyword,
- remove: removeKeyword,
- validate: validateKeyword
-};
-
-
-/**
- * Define custom keyword
- * @this Ajv
- * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords).
- * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.
- * @return {Ajv} this for method chaining
- */
-function addKeyword(keyword, definition) {
- /* jshint validthis: true */
- /* eslint no-shadow: 0 */
- var RULES = this.RULES;
- if (RULES.keywords[keyword])
- throw new Error('Keyword ' + keyword + ' is already defined');
-
- if (!IDENTIFIER.test(keyword))
- throw new Error('Keyword ' + keyword + ' is not a valid identifier');
-
- if (definition) {
- this.validateKeyword(definition, true);
-
- var dataType = definition.type;
- if (Array.isArray(dataType)) {
- for (var i=0; i<dataType.length; i++)
- _addRule(keyword, dataType[i], definition);
- } else {
- _addRule(keyword, dataType, definition);
- }
-
- var metaSchema = definition.metaSchema;
- if (metaSchema) {
- if (definition.$data && this._opts.$data) {
- metaSchema = {
- anyOf: [
- metaSchema,
- { '$ref': 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#' }
- ]
- };
- }
- definition.validateSchema = this.compile(metaSchema, true);
- }
- }
-
- RULES.keywords[keyword] = RULES.all[keyword] = true;
-
-
- function _addRule(keyword, dataType, definition) {
- var ruleGroup;
- for (var i=0; i<RULES.length; i++) {
- var rg = RULES[i];
- if (rg.type == dataType) {
- ruleGroup = rg;
- break;
- }
- }
-
- if (!ruleGroup) {
- ruleGroup = { type: dataType, rules: [] };
- RULES.push(ruleGroup);
- }
-
- var rule = {
- keyword: keyword,
- definition: definition,
- custom: true,
- code: customRuleCode,
- implements: definition.implements
- };
- ruleGroup.rules.push(rule);
- RULES.custom[keyword] = rule;
- }
-
- return this;
-}
-
-
-/**
- * Get keyword
- * @this Ajv
- * @param {String} keyword pre-defined or custom keyword.
- * @return {Object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise.
- */
-function getKeyword(keyword) {
- /* jshint validthis: true */
- var rule = this.RULES.custom[keyword];
- return rule ? rule.definition : this.RULES.keywords[keyword] || false;
-}
-
-
-/**
- * Remove keyword
- * @this Ajv
- * @param {String} keyword pre-defined or custom keyword.
- * @return {Ajv} this for method chaining
- */
-function removeKeyword(keyword) {
- /* jshint validthis: true */
- var RULES = this.RULES;
- delete RULES.keywords[keyword];
- delete RULES.all[keyword];
- delete RULES.custom[keyword];
- for (var i=0; i<RULES.length; i++) {
- var rules = RULES[i].rules;
- for (var j=0; j<rules.length; j++) {
- if (rules[j].keyword == keyword) {
- rules.splice(j, 1);
- break;
- }
- }
- }
- return this;
-}
-
-
-/**
- * Validate keyword definition
- * @this Ajv
- * @param {Object} definition keyword definition object.
- * @param {Boolean} throwError true to throw exception if definition is invalid
- * @return {boolean} validation result
- */
-function validateKeyword(definition, throwError) {
- validateKeyword.errors = null;
- var v = this._validateKeyword = this._validateKeyword
- || this.compile(definitionSchema, true);
-
- if (v(definition)) return true;
- validateKeyword.errors = v.errors;
- if (throwError)
- throw new Error('custom keyword definition is invalid: ' + this.errorsText(v.errors));
- else
- return false;
-}
-
-},{"./definition_schema":12,"./dotjs/custom":22}],40:[function(require,module,exports){
-module.exports={
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#",
- "description": "Meta-schema for $data reference (JSON Schema extension proposal)",
- "type": "object",
- "required": [ "$data" ],
- "properties": {
- "$data": {
- "type": "string",
- "anyOf": [
- { "format": "relative-json-pointer" },
- { "format": "json-pointer" }
- ]
- }
- },
- "additionalProperties": false
-}
-
-},{}],41:[function(require,module,exports){
-module.exports={
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "http://json-schema.org/draft-07/schema#",
- "title": "Core schema meta-schema",
- "definitions": {
- "schemaArray": {
- "type": "array",
- "minItems": 1,
- "items": { "$ref": "#" }
- },
- "nonNegativeInteger": {
- "type": "integer",
- "minimum": 0
- },
- "nonNegativeIntegerDefault0": {
- "allOf": [
- { "$ref": "#/definitions/nonNegativeInteger" },
- { "default": 0 }
- ]
- },
- "simpleTypes": {
- "enum": [
- "array",
- "boolean",
- "integer",
- "null",
- "number",
- "object",
- "string"
- ]
- },
- "stringArray": {
- "type": "array",
- "items": { "type": "string" },
- "uniqueItems": true,
- "default": []
- }
- },
- "type": ["object", "boolean"],
- "properties": {
- "$id": {
- "type": "string",
- "format": "uri-reference"
- },
- "$schema": {
- "type": "string",
- "format": "uri"
- },
- "$ref": {
- "type": "string",
- "format": "uri-reference"
- },
- "$comment": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "default": true,
- "readOnly": {
- "type": "boolean",
- "default": false
- },
- "examples": {
- "type": "array",
- "items": true
- },
- "multipleOf": {
- "type": "number",
- "exclusiveMinimum": 0
- },
- "maximum": {
- "type": "number"
- },
- "exclusiveMaximum": {
- "type": "number"
- },
- "minimum": {
- "type": "number"
- },
- "exclusiveMinimum": {
- "type": "number"
- },
- "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
- "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "pattern": {
- "type": "string",
- "format": "regex"
- },
- "additionalItems": { "$ref": "#" },
- "items": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/schemaArray" }
- ],
- "default": true
- },
- "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
- "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "uniqueItems": {
- "type": "boolean",
- "default": false
- },
- "contains": { "$ref": "#" },
- "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
- "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "required": { "$ref": "#/definitions/stringArray" },
- "additionalProperties": { "$ref": "#" },
- "definitions": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "properties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "patternProperties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "propertyNames": { "format": "regex" },
- "default": {}
- },
- "dependencies": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/stringArray" }
- ]
- }
- },
- "propertyNames": { "$ref": "#" },
- "const": true,
- "enum": {
- "type": "array",
- "items": true,
- "minItems": 1,
- "uniqueItems": true
- },
- "type": {
- "anyOf": [
- { "$ref": "#/definitions/simpleTypes" },
- {
- "type": "array",
- "items": { "$ref": "#/definitions/simpleTypes" },
- "minItems": 1,
- "uniqueItems": true
- }
- ]
- },
- "format": { "type": "string" },
- "contentMediaType": { "type": "string" },
- "contentEncoding": { "type": "string" },
- "if": {"$ref": "#"},
- "then": {"$ref": "#"},
- "else": {"$ref": "#"},
- "allOf": { "$ref": "#/definitions/schemaArray" },
- "anyOf": { "$ref": "#/definitions/schemaArray" },
- "oneOf": { "$ref": "#/definitions/schemaArray" },
- "not": { "$ref": "#" }
- },
- "default": true
-}
-
-},{}],42:[function(require,module,exports){
-'use strict';
-
-// do not edit .js files directly - edit src/index.jst
-
-
-
-module.exports = function equal(a, b) {
- if (a === b) return true;
-
- if (a && b && typeof a == 'object' && typeof b == 'object') {
- if (a.constructor !== b.constructor) return false;
-
- var length, i, keys;
- if (Array.isArray(a)) {
- length = a.length;
- if (length != b.length) return false;
- for (i = length; i-- !== 0;)
- if (!equal(a[i], b[i])) return false;
- return true;
- }
-
-
-
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
-
- keys = Object.keys(a);
- length = keys.length;
- if (length !== Object.keys(b).length) return false;
-
- for (i = length; i-- !== 0;)
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
-
- for (i = length; i-- !== 0;) {
- var key = keys[i];
-
- if (!equal(a[key], b[key])) return false;
- }
-
- return true;
- }
-
- // true if both NaN, false otherwise
- return a!==a && b!==b;
-};
-
-},{}],43:[function(require,module,exports){
-'use strict';
-
-module.exports = function (data, opts) {
- if (!opts) opts = {};
- if (typeof opts === 'function') opts = { cmp: opts };
- var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;
-
- var cmp = opts.cmp && (function (f) {
- return function (node) {
- return function (a, b) {
- var aobj = { key: a, value: node[a] };
- var bobj = { key: b, value: node[b] };
- return f(aobj, bobj);
- };
- };
- })(opts.cmp);
-
- var seen = [];
- return (function stringify (node) {
- if (node && node.toJSON && typeof node.toJSON === 'function') {
- node = node.toJSON();
- }
-
- if (node === undefined) return;
- if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';
- if (typeof node !== 'object') return JSON.stringify(node);
-
- var i, out;
- if (Array.isArray(node)) {
- out = '[';
- for (i = 0; i < node.length; i++) {
- if (i) out += ',';
- out += stringify(node[i]) || 'null';
- }
- return out + ']';
- }
-
- if (node === null) return 'null';
-
- if (seen.indexOf(node) !== -1) {
- if (cycles) return JSON.stringify('__cycle__');
- throw new TypeError('Converting circular structure to JSON');
- }
-
- var seenIndex = seen.push(node) - 1;
- var keys = Object.keys(node).sort(cmp && cmp(node));
- out = '';
- for (i = 0; i < keys.length; i++) {
- var key = keys[i];
- var value = stringify(node[key]);
-
- if (!value) continue;
- if (out) out += ',';
- out += JSON.stringify(key) + ':' + value;
- }
- seen.splice(seenIndex, 1);
- return '{' + out + '}';
- })(data);
-};
-
-},{}],44:[function(require,module,exports){
-'use strict';
-
-var traverse = module.exports = function (schema, opts, cb) {
- // Legacy support for v0.3.1 and earlier.
- if (typeof opts == 'function') {
- cb = opts;
- opts = {};
- }
-
- cb = opts.cb || cb;
- var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};
- var post = cb.post || function() {};
-
- _traverse(opts, pre, post, schema, '', schema);
-};
-
-
-traverse.keywords = {
- additionalItems: true,
- items: true,
- contains: true,
- additionalProperties: true,
- propertyNames: true,
- not: true
-};
-
-traverse.arrayKeywords = {
- items: true,
- allOf: true,
- anyOf: true,
- oneOf: true
-};
-
-traverse.propsKeywords = {
- definitions: true,
- properties: true,
- patternProperties: true,
- dependencies: true
-};
-
-traverse.skipKeywords = {
- default: true,
- enum: true,
- const: true,
- required: true,
- maximum: true,
- minimum: true,
- exclusiveMaximum: true,
- exclusiveMinimum: true,
- multipleOf: true,
- maxLength: true,
- minLength: true,
- pattern: true,
- format: true,
- maxItems: true,
- minItems: true,
- uniqueItems: true,
- maxProperties: true,
- minProperties: true
-};
-
-
-function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
- if (schema && typeof schema == 'object' && !Array.isArray(schema)) {
- pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
- for (var key in schema) {
- var sch = schema[key];
- if (Array.isArray(sch)) {
- if (key in traverse.arrayKeywords) {
- for (var i=0; i<sch.length; i++)
- _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
- }
- } else if (key in traverse.propsKeywords) {
- if (sch && typeof sch == 'object') {
- for (var prop in sch)
- _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
- }
- } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
- _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
- }
- }
- post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
- }
-}
-
-
-function escapeJsonPtr(str) {
- return str.replace(/~/g, '~0').replace(/\//g, '~1');
-}
-
-},{}],45:[function(require,module,exports){
-/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (factory((global.URI = global.URI || {})));
-}(this, (function (exports) { 'use strict';
-
-function merge() {
- for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
- sets[_key] = arguments[_key];
- }
-
- if (sets.length > 1) {
- sets[0] = sets[0].slice(0, -1);
- var xl = sets.length - 1;
- for (var x = 1; x < xl; ++x) {
- sets[x] = sets[x].slice(1, -1);
- }
- sets[xl] = sets[xl].slice(1);
- return sets.join('');
- } else {
- return sets[0];
- }
-}
-function subexp(str) {
- return "(?:" + str + ")";
-}
-function typeOf(o) {
- return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
-}
-function toUpperCase(str) {
- return str.toUpperCase();
-}
-function toArray(obj) {
- return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
-}
-function assign(target, source) {
- var obj = target;
- if (source) {
- for (var key in source) {
- obj[key] = source[key];
- }
- }
- return obj;
-}
-
-function buildExps(isIRI) {
- var ALPHA$$ = "[A-Za-z]",
- CR$ = "[\\x0D]",
- DIGIT$$ = "[0-9]",
- DQUOTE$$ = "[\\x22]",
- HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"),
- //case-insensitive
- LF$$ = "[\\x0A]",
- SP$$ = "[\\x20]",
- PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)),
- //expanded
- GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]",
- SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
- RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),
- UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]",
- //subset, excludes bidi control characters
- IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
- //subset
- UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
- SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
- USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
- DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$),
- DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
- //relaxed parsing rules
- IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
- H16$ = subexp(HEXDIG$$ + "{1,4}"),
- LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$),
- IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$),
- // 6( h16 ":" ) ls32
- IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$),
- // "::" 5( h16 ":" ) ls32
- IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$),
- //[ h16 ] "::" 4( h16 ":" ) ls32
- IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$),
- //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
- IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$),
- //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
- IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$),
- //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
- IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$),
- //[ *4( h16 ":" ) h16 ] "::" ls32
- IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$),
- //[ *5( h16 ":" ) h16 ] "::" h16
- IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
- //[ *6( h16 ":" ) h16 ] "::"
- IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
- ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
- //RFC 6874
- IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$),
- //RFC 6874
- IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$),
- //RFC 6874, with relaxed parsing rules
- IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
- IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"),
- //RFC 6874
- REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
- HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$),
- PORT$ = subexp(DIGIT$$ + "*"),
- AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"),
- PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
- SEGMENT$ = subexp(PCHAR$ + "*"),
- SEGMENT_NZ$ = subexp(PCHAR$ + "+"),
- SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
- PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"),
- PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"),
- //simplified
- PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$),
- //simplified
- PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$),
- //simplified
- PATH_EMPTY$ = "(?!" + PCHAR$ + ")",
- PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
- QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"),
- FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"),
- HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
- URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
- RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$),
- RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
- URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$),
- ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"),
- GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$",
- SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
- return {
- NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
- NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
- NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
- ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- UNRESERVED: new RegExp(UNRESERVED$$, "g"),
- OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
- PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
- IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
- IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules
- };
-}
-var URI_PROTOCOL = buildExps(false);
-
-var IRI_PROTOCOL = buildExps(true);
-
-var slicedToArray = function () {
- function sliceIterator(arr, i) {
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
-
- try {
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
-
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"]) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
-
- return _arr;
- }
-
- return function (arr, i) {
- if (Array.isArray(arr)) {
- return arr;
- } else if (Symbol.iterator in Object(arr)) {
- return sliceIterator(arr, i);
- } else {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
- }
- };
-}();
-
-
-
-
-
-
-
-
-
-
-
-
-
-var toConsumableArray = function (arr) {
- if (Array.isArray(arr)) {
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
-
- return arr2;
- } else {
- return Array.from(arr);
- }
-};
-
-/** Highest positive signed 32-bit float value */
-
-var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
-
-/** Bootstring parameters */
-var base = 36;
-var tMin = 1;
-var tMax = 26;
-var skew = 38;
-var damp = 700;
-var initialBias = 72;
-var initialN = 128; // 0x80
-var delimiter = '-'; // '\x2D'
-
-/** Regular expressions */
-var regexPunycode = /^xn--/;
-var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
-var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
-
-/** Error messages */
-var errors = {
- 'overflow': 'Overflow: input needs wider integers to process',
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
- 'invalid-input': 'Invalid input'
-};
-
-/** Convenience shortcuts */
-var baseMinusTMin = base - tMin;
-var floor = Math.floor;
-var stringFromCharCode = String.fromCharCode;
-
-/*--------------------------------------------------------------------------*/
-
-/**
- * A generic error utility function.
- * @private
- * @param {String} type The error type.
- * @returns {Error} Throws a `RangeError` with the applicable error message.
- */
-function error$1(type) {
- throw new RangeError(errors[type]);
-}
-
-/**
- * A generic `Array#map` utility function.
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} callback The function that gets called for every array
- * item.
- * @returns {Array} A new array of values returned by the callback function.
- */
-function map(array, fn) {
- var result = [];
- var length = array.length;
- while (length--) {
- result[length] = fn(array[length]);
- }
- return result;
-}
-
-/**
- * A simple `Array#map`-like wrapper to work with domain name strings or email
- * addresses.
- * @private
- * @param {String} domain The domain name or email address.
- * @param {Function} callback The function that gets called for every
- * character.
- * @returns {Array} A new string of characters returned by the callback
- * function.
- */
-function mapDomain(string, fn) {
- var parts = string.split('@');
- var result = '';
- if (parts.length > 1) {
- // In email addresses, only the domain name should be punycoded. Leave
- // the local part (i.e. everything up to `@`) intact.
- result = parts[0] + '@';
- string = parts[1];
- }
- // Avoid `split(regex)` for IE8 compatibility. See #17.
- string = string.replace(regexSeparators, '\x2E');
- var labels = string.split('.');
- var encoded = map(labels, fn).join('.');
- return result + encoded;
-}
-
-/**
- * Creates an array containing the numeric code points of each Unicode
- * character in the string. While JavaScript uses UCS-2 internally,
- * this function will convert a pair of surrogate halves (each of which
- * UCS-2 exposes as separate characters) into a single code point,
- * matching UTF-16.
- * @see `punycode.ucs2.encode`
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode.ucs2
- * @name decode
- * @param {String} string The Unicode input string (UCS-2).
- * @returns {Array} The new array of code points.
- */
-function ucs2decode(string) {
- var output = [];
- var counter = 0;
- var length = string.length;
- while (counter < length) {
- var value = string.charCodeAt(counter++);
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
- // It's a high surrogate, and there is a next character.
- var extra = string.charCodeAt(counter++);
- if ((extra & 0xFC00) == 0xDC00) {
- // Low surrogate.
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
- } else {
- // It's an unmatched surrogate; only append this code unit, in case the
- // next code unit is the high surrogate of a surrogate pair.
- output.push(value);
- counter--;
- }
- } else {
- output.push(value);
- }
- }
- return output;
-}
-
-/**
- * Creates a string based on an array of numeric code points.
- * @see `punycode.ucs2.decode`
- * @memberOf punycode.ucs2
- * @name encode
- * @param {Array} codePoints The array of numeric code points.
- * @returns {String} The new Unicode string (UCS-2).
- */
-var ucs2encode = function ucs2encode(array) {
- return String.fromCodePoint.apply(String, toConsumableArray(array));
-};
-
-/**
- * Converts a basic code point into a digit/integer.
- * @see `digitToBasic()`
- * @private
- * @param {Number} codePoint The basic numeric code point value.
- * @returns {Number} The numeric value of a basic code point (for use in
- * representing integers) in the range `0` to `base - 1`, or `base` if
- * the code point does not represent a value.
- */
-var basicToDigit = function basicToDigit(codePoint) {
- if (codePoint - 0x30 < 0x0A) {
- return codePoint - 0x16;
- }
- if (codePoint - 0x41 < 0x1A) {
- return codePoint - 0x41;
- }
- if (codePoint - 0x61 < 0x1A) {
- return codePoint - 0x61;
- }
- return base;
-};
-
-/**
- * Converts a digit/integer into a basic code point.
- * @see `basicToDigit()`
- * @private
- * @param {Number} digit The numeric value of a basic code point.
- * @returns {Number} The basic code point whose value (when used for
- * representing integers) is `digit`, which needs to be in the range
- * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
- * used; else, the lowercase form is used. The behavior is undefined
- * if `flag` is non-zero and `digit` has no uppercase form.
- */
-var digitToBasic = function digitToBasic(digit, flag) {
- // 0..25 map to ASCII a..z or A..Z
- // 26..35 map to ASCII 0..9
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
-};
-
-/**
- * Bias adaptation function as per section 3.4 of RFC 3492.
- * https://tools.ietf.org/html/rfc3492#section-3.4
- * @private
- */
-var adapt = function adapt(delta, numPoints, firstTime) {
- var k = 0;
- delta = firstTime ? floor(delta / damp) : delta >> 1;
- delta += floor(delta / numPoints);
- for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {
- delta = floor(delta / baseMinusTMin);
- }
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
-};
-
-/**
- * Converts a Punycode string of ASCII-only symbols to a string of Unicode
- * symbols.
- * @memberOf punycode
- * @param {String} input The Punycode string of ASCII-only symbols.
- * @returns {String} The resulting string of Unicode symbols.
- */
-var decode = function decode(input) {
- // Don't use UCS-2.
- var output = [];
- var inputLength = input.length;
- var i = 0;
- var n = initialN;
- var bias = initialBias;
-
- // Handle the basic code points: let `basic` be the number of input code
- // points before the last delimiter, or `0` if there is none, then copy
- // the first basic code points to the output.
-
- var basic = input.lastIndexOf(delimiter);
- if (basic < 0) {
- basic = 0;
- }
-
- for (var j = 0; j < basic; ++j) {
- // if it's not a basic code point
- if (input.charCodeAt(j) >= 0x80) {
- error$1('not-basic');
- }
- output.push(input.charCodeAt(j));
- }
-
- // Main decoding loop: start just after the last delimiter if any basic code
- // points were copied; start at the beginning otherwise.
-
- for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{
-
- // `index` is the index of the next character to be consumed.
- // Decode a generalized variable-length integer into `delta`,
- // which gets added to `i`. The overflow checking is easier
- // if we increase `i` as we go, then subtract off its starting
- // value at the end to obtain `delta`.
- var oldi = i;
- for (var w = 1, k = base;; /* no condition */k += base) {
-
- if (index >= inputLength) {
- error$1('invalid-input');
- }
-
- var digit = basicToDigit(input.charCodeAt(index++));
-
- if (digit >= base || digit > floor((maxInt - i) / w)) {
- error$1('overflow');
- }
-
- i += digit * w;
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
-
- if (digit < t) {
- break;
- }
-
- var baseMinusT = base - t;
- if (w > floor(maxInt / baseMinusT)) {
- error$1('overflow');
- }
-
- w *= baseMinusT;
- }
-
- var out = output.length + 1;
- bias = adapt(i - oldi, out, oldi == 0);
-
- // `i` was supposed to wrap around from `out` to `0`,
- // incrementing `n` each time, so we'll fix that now:
- if (floor(i / out) > maxInt - n) {
- error$1('overflow');
- }
-
- n += floor(i / out);
- i %= out;
-
- // Insert `n` at position `i` of the output.
- output.splice(i++, 0, n);
- }
-
- return String.fromCodePoint.apply(String, output);
-};
-
-/**
- * Converts a string of Unicode symbols (e.g. a domain name label) to a
- * Punycode string of ASCII-only symbols.
- * @memberOf punycode
- * @param {String} input The string of Unicode symbols.
- * @returns {String} The resulting Punycode string of ASCII-only symbols.
- */
-var encode = function encode(input) {
- var output = [];
-
- // Convert the input in UCS-2 to an array of Unicode code points.
- input = ucs2decode(input);
-
- // Cache the length.
- var inputLength = input.length;
-
- // Initialize the state.
- var n = initialN;
- var delta = 0;
- var bias = initialBias;
-
- // Handle the basic code points.
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
-
- try {
- for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var _currentValue2 = _step.value;
-
- if (_currentValue2 < 0x80) {
- output.push(stringFromCharCode(_currentValue2));
- }
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator.return) {
- _iterator.return();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
-
- var basicLength = output.length;
- var handledCPCount = basicLength;
-
- // `handledCPCount` is the number of code points that have been handled;
- // `basicLength` is the number of basic code points.
-
- // Finish the basic string with a delimiter unless it's empty.
- if (basicLength) {
- output.push(delimiter);
- }
-
- // Main encoding loop:
- while (handledCPCount < inputLength) {
-
- // All non-basic code points < n have been handled already. Find the next
- // larger one:
- var m = maxInt;
- var _iteratorNormalCompletion2 = true;
- var _didIteratorError2 = false;
- var _iteratorError2 = undefined;
-
- try {
- for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
- var currentValue = _step2.value;
-
- if (currentValue >= n && currentValue < m) {
- m = currentValue;
- }
- }
-
- // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
- // but guard against overflow.
- } catch (err) {
- _didIteratorError2 = true;
- _iteratorError2 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion2 && _iterator2.return) {
- _iterator2.return();
- }
- } finally {
- if (_didIteratorError2) {
- throw _iteratorError2;
- }
- }
- }
-
- var handledCPCountPlusOne = handledCPCount + 1;
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
- error$1('overflow');
- }
-
- delta += (m - n) * handledCPCountPlusOne;
- n = m;
-
- var _iteratorNormalCompletion3 = true;
- var _didIteratorError3 = false;
- var _iteratorError3 = undefined;
-
- try {
- for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
- var _currentValue = _step3.value;
-
- if (_currentValue < n && ++delta > maxInt) {
- error$1('overflow');
- }
- if (_currentValue == n) {
- // Represent delta as a generalized variable-length integer.
- var q = delta;
- for (var k = base;; /* no condition */k += base) {
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
- if (q < t) {
- break;
- }
- var qMinusT = q - t;
- var baseMinusT = base - t;
- output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
- q = floor(qMinusT / baseMinusT);
- }
-
- output.push(stringFromCharCode(digitToBasic(q, 0)));
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
- delta = 0;
- ++handledCPCount;
- }
- }
- } catch (err) {
- _didIteratorError3 = true;
- _iteratorError3 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion3 && _iterator3.return) {
- _iterator3.return();
- }
- } finally {
- if (_didIteratorError3) {
- throw _iteratorError3;
- }
- }
- }
-
- ++delta;
- ++n;
- }
- return output.join('');
-};
-
-/**
- * Converts a Punycode string representing a domain name or an email address
- * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
- * it doesn't matter if you call it on a string that has already been
- * converted to Unicode.
- * @memberOf punycode
- * @param {String} input The Punycoded domain name or email address to
- * convert to Unicode.
- * @returns {String} The Unicode representation of the given Punycode
- * string.
- */
-var toUnicode = function toUnicode(input) {
- return mapDomain(input, function (string) {
- return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
- });
-};
-
-/**
- * Converts a Unicode string representing a domain name or an email address to
- * Punycode. Only the non-ASCII parts of the domain name will be converted,
- * i.e. it doesn't matter if you call it with a domain that's already in
- * ASCII.
- * @memberOf punycode
- * @param {String} input The domain name or email address to convert, as a
- * Unicode string.
- * @returns {String} The Punycode representation of the given domain name or
- * email address.
- */
-var toASCII = function toASCII(input) {
- return mapDomain(input, function (string) {
- return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;
- });
-};
-
-/*--------------------------------------------------------------------------*/
-
-/** Define the public API */
-var punycode = {
- /**
- * A string representing the current Punycode.js version number.
- * @memberOf punycode
- * @type String
- */
- 'version': '2.1.0',
- /**
- * An object of methods to convert from JavaScript's internal character
- * representation (UCS-2) to Unicode code points, and back.
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode
- * @type Object
- */
- 'ucs2': {
- 'decode': ucs2decode,
- 'encode': ucs2encode
- },
- 'decode': decode,
- 'encode': encode,
- 'toASCII': toASCII,
- 'toUnicode': toUnicode
-};
-
-/**
- * URI.js
- *
- * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
- * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
- * @see http://github.com/garycourt/uri-js
- */
-/**
- * Copyright 2011 Gary Court. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification, are
- * permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those of the
- * authors and should not be interpreted as representing official policies, either expressed
- * or implied, of Gary Court.
- */
-var SCHEMES = {};
-function pctEncChar(chr) {
- var c = chr.charCodeAt(0);
- var e = void 0;
- if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
- return e;
-}
-function pctDecChars(str) {
- var newStr = "";
- var i = 0;
- var il = str.length;
- while (i < il) {
- var c = parseInt(str.substr(i + 1, 2), 16);
- if (c < 128) {
- newStr += String.fromCharCode(c);
- i += 3;
- } else if (c >= 194 && c < 224) {
- if (il - i >= 6) {
- var c2 = parseInt(str.substr(i + 4, 2), 16);
- newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
- } else {
- newStr += str.substr(i, 6);
- }
- i += 6;
- } else if (c >= 224) {
- if (il - i >= 9) {
- var _c = parseInt(str.substr(i + 4, 2), 16);
- var c3 = parseInt(str.substr(i + 7, 2), 16);
- newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
- } else {
- newStr += str.substr(i, 9);
- }
- i += 9;
- } else {
- newStr += str.substr(i, 3);
- i += 3;
- }
- }
- return newStr;
-}
-function _normalizeComponentEncoding(components, protocol) {
- function decodeUnreserved(str) {
- var decStr = pctDecChars(str);
- return !decStr.match(protocol.UNRESERVED) ? str : decStr;
- }
- if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
- if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- return components;
-}
-
-function _stripLeadingZeros(str) {
- return str.replace(/^0*(.*)/, "$1") || "0";
-}
-function _normalizeIPv4(host, protocol) {
- var matches = host.match(protocol.IPV4ADDRESS) || [];
-
- var _matches = slicedToArray(matches, 2),
- address = _matches[1];
-
- if (address) {
- return address.split(".").map(_stripLeadingZeros).join(".");
- } else {
- return host;
- }
-}
-function _normalizeIPv6(host, protocol) {
- var matches = host.match(protocol.IPV6ADDRESS) || [];
-
- var _matches2 = slicedToArray(matches, 3),
- address = _matches2[1],
- zone = _matches2[2];
-
- if (address) {
- var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(),
- _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2),
- last = _address$toLowerCase$2[0],
- first = _address$toLowerCase$2[1];
-
- var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
- var lastFields = last.split(":").map(_stripLeadingZeros);
- var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
- var fieldCount = isLastFieldIPv4Address ? 7 : 8;
- var lastFieldsStart = lastFields.length - fieldCount;
- var fields = Array(fieldCount);
- for (var x = 0; x < fieldCount; ++x) {
- fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';
- }
- if (isLastFieldIPv4Address) {
- fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
- }
- var allZeroFields = fields.reduce(function (acc, field, index) {
- if (!field || field === "0") {
- var lastLongest = acc[acc.length - 1];
- if (lastLongest && lastLongest.index + lastLongest.length === index) {
- lastLongest.length++;
- } else {
- acc.push({ index: index, length: 1 });
- }
- }
- return acc;
- }, []);
- var longestZeroFields = allZeroFields.sort(function (a, b) {
- return b.length - a.length;
- })[0];
- var newHost = void 0;
- if (longestZeroFields && longestZeroFields.length > 1) {
- var newFirst = fields.slice(0, longestZeroFields.index);
- var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
- newHost = newFirst.join(":") + "::" + newLast.join(":");
- } else {
- newHost = fields.join(":");
- }
- if (zone) {
- newHost += "%" + zone;
- }
- return newHost;
- } else {
- return host;
- }
-}
-var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
-var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined;
-function parse(uriString) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- var components = {};
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
- if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
- var matches = uriString.match(URI_PARSE);
- if (matches) {
- if (NO_MATCH_IS_UNDEFINED) {
- //store each component
- components.scheme = matches[1];
- components.userinfo = matches[3];
- components.host = matches[4];
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = matches[7];
- components.fragment = matches[8];
- //fix port number
- if (isNaN(components.port)) {
- components.port = matches[5];
- }
- } else {
- //IE FIX for improper RegExp matching
- //store each component
- components.scheme = matches[1] || undefined;
- components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined;
- components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined;
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined;
- components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined;
- //fix port number
- if (isNaN(components.port)) {
- components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined;
- }
- }
- if (components.host) {
- //normalize IP hosts
- components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
- }
- //determine reference type
- if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
- components.reference = "same-document";
- } else if (components.scheme === undefined) {
- components.reference = "relative";
- } else if (components.fragment === undefined) {
- components.reference = "absolute";
- } else {
- components.reference = "uri";
- }
- //check for reference errors
- if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
- components.error = components.error || "URI is not a " + options.reference + " reference.";
- }
- //find scheme handler
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
- //check if scheme can't handle IRIs
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
- //if host component is a domain name
- if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
- //convert Unicode IDN -> ASCII IDN
- try {
- components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
- } catch (e) {
- components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
- }
- }
- //convert IRI -> URI
- _normalizeComponentEncoding(components, URI_PROTOCOL);
- } else {
- //normalize encodings
- _normalizeComponentEncoding(components, protocol);
- }
- //perform scheme specific parsing
- if (schemeHandler && schemeHandler.parse) {
- schemeHandler.parse(components, options);
- }
- } else {
- components.error = components.error || "URI can not be parsed.";
- }
- return components;
-}
-
-function _recomposeAuthority(components, options) {
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
- var uriTokens = [];
- if (components.userinfo !== undefined) {
- uriTokens.push(components.userinfo);
- uriTokens.push("@");
- }
- if (components.host !== undefined) {
- //normalize IP hosts, add brackets and escape zone separator for IPv6
- uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) {
- return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
- }));
- }
- if (typeof components.port === "number") {
- uriTokens.push(":");
- uriTokens.push(components.port.toString(10));
- }
- return uriTokens.length ? uriTokens.join("") : undefined;
-}
-
-var RDS1 = /^\.\.?\//;
-var RDS2 = /^\/\.(\/|$)/;
-var RDS3 = /^\/\.\.(\/|$)/;
-var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
-function removeDotSegments(input) {
- var output = [];
- while (input.length) {
- if (input.match(RDS1)) {
- input = input.replace(RDS1, "");
- } else if (input.match(RDS2)) {
- input = input.replace(RDS2, "/");
- } else if (input.match(RDS3)) {
- input = input.replace(RDS3, "/");
- output.pop();
- } else if (input === "." || input === "..") {
- input = "";
- } else {
- var im = input.match(RDS5);
- if (im) {
- var s = im[0];
- input = input.slice(s.length);
- output.push(s);
- } else {
- throw new Error("Unexpected dot segment condition");
- }
- }
- }
- return output.join("");
-}
-
-function serialize(components) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
- var uriTokens = [];
- //find scheme handler
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
- //perform scheme specific serialization
- if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
- if (components.host) {
- //if host component is an IPv6 address
- if (protocol.IPV6ADDRESS.test(components.host)) {}
- //TODO: normalize IPv6 address as per RFC 5952
-
- //if host component is a domain name
- else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
- //convert IDN via punycode
- try {
- components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
- } catch (e) {
- components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
- }
- }
- //normalize encoding
- _normalizeComponentEncoding(components, protocol);
- if (options.reference !== "suffix" && components.scheme) {
- uriTokens.push(components.scheme);
- uriTokens.push(":");
- }
- var authority = _recomposeAuthority(components, options);
- if (authority !== undefined) {
- if (options.reference !== "suffix") {
- uriTokens.push("//");
- }
- uriTokens.push(authority);
- if (components.path && components.path.charAt(0) !== "/") {
- uriTokens.push("/");
- }
- }
- if (components.path !== undefined) {
- var s = components.path;
- if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
- s = removeDotSegments(s);
- }
- if (authority === undefined) {
- s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//"
- }
- uriTokens.push(s);
- }
- if (components.query !== undefined) {
- uriTokens.push("?");
- uriTokens.push(components.query);
- }
- if (components.fragment !== undefined) {
- uriTokens.push("#");
- uriTokens.push(components.fragment);
- }
- return uriTokens.join(""); //merge tokens into a string
-}
-
-function resolveComponents(base, relative) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- var skipNormalization = arguments[3];
-
- var target = {};
- if (!skipNormalization) {
- base = parse(serialize(base, options), options); //normalize base components
- relative = parse(serialize(relative, options), options); //normalize relative components
- }
- options = options || {};
- if (!options.tolerant && relative.scheme) {
- target.scheme = relative.scheme;
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- } else {
- if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- } else {
- if (!relative.path) {
- target.path = base.path;
- if (relative.query !== undefined) {
- target.query = relative.query;
- } else {
- target.query = base.query;
- }
- } else {
- if (relative.path.charAt(0) === "/") {
- target.path = removeDotSegments(relative.path);
- } else {
- if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
- target.path = "/" + relative.path;
- } else if (!base.path) {
- target.path = relative.path;
- } else {
- target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
- }
- target.path = removeDotSegments(target.path);
- }
- target.query = relative.query;
- }
- //target.authority = base.authority;
- target.userinfo = base.userinfo;
- target.host = base.host;
- target.port = base.port;
- }
- target.scheme = base.scheme;
- }
- target.fragment = relative.fragment;
- return target;
-}
-
-function resolve(baseURI, relativeURI, options) {
- var schemelessOptions = assign({ scheme: 'null' }, options);
- return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
-}
-
-function normalize(uri, options) {
- if (typeof uri === "string") {
- uri = serialize(parse(uri, options), options);
- } else if (typeOf(uri) === "object") {
- uri = parse(serialize(uri, options), options);
- }
- return uri;
-}
-
-function equal(uriA, uriB, options) {
- if (typeof uriA === "string") {
- uriA = serialize(parse(uriA, options), options);
- } else if (typeOf(uriA) === "object") {
- uriA = serialize(uriA, options);
- }
- if (typeof uriB === "string") {
- uriB = serialize(parse(uriB, options), options);
- } else if (typeOf(uriB) === "object") {
- uriB = serialize(uriB, options);
- }
- return uriA === uriB;
-}
-
-function escapeComponent(str, options) {
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
-}
-
-function unescapeComponent(str, options) {
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
-}
-
-var handler = {
- scheme: "http",
- domainHost: true,
- parse: function parse(components, options) {
- //report missing host
- if (!components.host) {
- components.error = components.error || "HTTP URIs must have a host.";
- }
- return components;
- },
- serialize: function serialize(components, options) {
- //normalize the default port
- if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") {
- components.port = undefined;
- }
- //normalize the empty path
- if (!components.path) {
- components.path = "/";
- }
- //NOTE: We do not parse query strings for HTTP URIs
- //as WWW Form Url Encoded query strings are part of the HTML4+ spec,
- //and not the HTTP spec.
- return components;
- }
-};
-
-var handler$1 = {
- scheme: "https",
- domainHost: handler.domainHost,
- parse: handler.parse,
- serialize: handler.serialize
-};
-
-var O = {};
-var isIRI = true;
-//RFC 3986
-var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
-var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
-var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
-//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
-//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127)
-//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext
-//const VCHAR$$ = "[\\x21-\\x7E]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext
-//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+");
-//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$);
-//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"');
-var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
-var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
-var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
-var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
-var UNRESERVED = new RegExp(UNRESERVED$$, "g");
-var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
-var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
-var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
-var NOT_HFVALUE = NOT_HFNAME;
-function decodeUnreserved(str) {
- var decStr = pctDecChars(str);
- return !decStr.match(UNRESERVED) ? str : decStr;
-}
-var handler$2 = {
- scheme: "mailto",
- parse: function parse$$1(components, options) {
- var mailtoComponents = components;
- var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
- mailtoComponents.path = undefined;
- if (mailtoComponents.query) {
- var unknownHeaders = false;
- var headers = {};
- var hfields = mailtoComponents.query.split("&");
- for (var x = 0, xl = hfields.length; x < xl; ++x) {
- var hfield = hfields[x].split("=");
- switch (hfield[0]) {
- case "to":
- var toAddrs = hfield[1].split(",");
- for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
- to.push(toAddrs[_x]);
- }
- break;
- case "subject":
- mailtoComponents.subject = unescapeComponent(hfield[1], options);
- break;
- case "body":
- mailtoComponents.body = unescapeComponent(hfield[1], options);
- break;
- default:
- unknownHeaders = true;
- headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
- break;
- }
- }
- if (unknownHeaders) mailtoComponents.headers = headers;
- }
- mailtoComponents.query = undefined;
- for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
- var addr = to[_x2].split("@");
- addr[0] = unescapeComponent(addr[0]);
- if (!options.unicodeSupport) {
- //convert Unicode IDN -> ASCII IDN
- try {
- addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
- } catch (e) {
- mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
- }
- } else {
- addr[1] = unescapeComponent(addr[1], options).toLowerCase();
- }
- to[_x2] = addr.join("@");
- }
- return mailtoComponents;
- },
- serialize: function serialize$$1(mailtoComponents, options) {
- var components = mailtoComponents;
- var to = toArray(mailtoComponents.to);
- if (to) {
- for (var x = 0, xl = to.length; x < xl; ++x) {
- var toAddr = String(to[x]);
- var atIdx = toAddr.lastIndexOf("@");
- var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
- var domain = toAddr.slice(atIdx + 1);
- //convert IDN via punycode
- try {
- domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
- } catch (e) {
- components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
- to[x] = localPart + "@" + domain;
- }
- components.path = to.join(",");
- }
- var headers = mailtoComponents.headers = mailtoComponents.headers || {};
- if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
- if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
- var fields = [];
- for (var name in headers) {
- if (headers[name] !== O[name]) {
- fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
- }
- }
- if (fields.length) {
- components.query = fields.join("&");
- }
- return components;
- }
-};
-
-var URN_PARSE = /^([^\:]+)\:(.*)/;
-//RFC 2141
-var handler$3 = {
- scheme: "urn",
- parse: function parse$$1(components, options) {
- var matches = components.path && components.path.match(URN_PARSE);
- var urnComponents = components;
- if (matches) {
- var scheme = options.scheme || urnComponents.scheme || "urn";
- var nid = matches[1].toLowerCase();
- var nss = matches[2];
- var urnScheme = scheme + ":" + (options.nid || nid);
- var schemeHandler = SCHEMES[urnScheme];
- urnComponents.nid = nid;
- urnComponents.nss = nss;
- urnComponents.path = undefined;
- if (schemeHandler) {
- urnComponents = schemeHandler.parse(urnComponents, options);
- }
- } else {
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
- }
- return urnComponents;
- },
- serialize: function serialize$$1(urnComponents, options) {
- var scheme = options.scheme || urnComponents.scheme || "urn";
- var nid = urnComponents.nid;
- var urnScheme = scheme + ":" + (options.nid || nid);
- var schemeHandler = SCHEMES[urnScheme];
- if (schemeHandler) {
- urnComponents = schemeHandler.serialize(urnComponents, options);
- }
- var uriComponents = urnComponents;
- var nss = urnComponents.nss;
- uriComponents.path = (nid || options.nid) + ":" + nss;
- return uriComponents;
- }
-};
-
-var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
-//RFC 4122
-var handler$4 = {
- scheme: "urn:uuid",
- parse: function parse(urnComponents, options) {
- var uuidComponents = urnComponents;
- uuidComponents.uuid = uuidComponents.nss;
- uuidComponents.nss = undefined;
- if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
- }
- return uuidComponents;
- },
- serialize: function serialize(uuidComponents, options) {
- var urnComponents = uuidComponents;
- //normalize UUID
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
- return urnComponents;
- }
-};
-
-SCHEMES[handler.scheme] = handler;
-SCHEMES[handler$1.scheme] = handler$1;
-SCHEMES[handler$2.scheme] = handler$2;
-SCHEMES[handler$3.scheme] = handler$3;
-SCHEMES[handler$4.scheme] = handler$4;
-
-exports.SCHEMES = SCHEMES;
-exports.pctEncChar = pctEncChar;
-exports.pctDecChars = pctDecChars;
-exports.parse = parse;
-exports.removeDotSegments = removeDotSegments;
-exports.serialize = serialize;
-exports.resolveComponents = resolveComponents;
-exports.resolve = resolve;
-exports.normalize = normalize;
-exports.equal = equal;
-exports.escapeComponent = escapeComponent;
-exports.unescapeComponent = unescapeComponent;
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-})));
-
-
-},{}],"ajv":[function(require,module,exports){
-'use strict';
-
-var compileSchema = require('./compile')
- , resolve = require('./compile/resolve')
- , Cache = require('./cache')
- , SchemaObject = require('./compile/schema_obj')
- , stableStringify = require('fast-json-stable-stringify')
- , formats = require('./compile/formats')
- , rules = require('./compile/rules')
- , $dataMetaSchema = require('./data')
- , util = require('./compile/util');
-
-module.exports = Ajv;
-
-Ajv.prototype.validate = validate;
-Ajv.prototype.compile = compile;
-Ajv.prototype.addSchema = addSchema;
-Ajv.prototype.addMetaSchema = addMetaSchema;
-Ajv.prototype.validateSchema = validateSchema;
-Ajv.prototype.getSchema = getSchema;
-Ajv.prototype.removeSchema = removeSchema;
-Ajv.prototype.addFormat = addFormat;
-Ajv.prototype.errorsText = errorsText;
-
-Ajv.prototype._addSchema = _addSchema;
-Ajv.prototype._compile = _compile;
-
-Ajv.prototype.compileAsync = require('./compile/async');
-var customKeyword = require('./keyword');
-Ajv.prototype.addKeyword = customKeyword.add;
-Ajv.prototype.getKeyword = customKeyword.get;
-Ajv.prototype.removeKeyword = customKeyword.remove;
-Ajv.prototype.validateKeyword = customKeyword.validate;
-
-var errorClasses = require('./compile/error_classes');
-Ajv.ValidationError = errorClasses.Validation;
-Ajv.MissingRefError = errorClasses.MissingRef;
-Ajv.$dataMetaSchema = $dataMetaSchema;
-
-var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';
-
-var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ];
-var META_SUPPORT_DATA = ['/properties'];
-
-/**
- * Creates validator instance.
- * Usage: `Ajv(opts)`
- * @param {Object} opts optional options
- * @return {Object} ajv instance
- */
-function Ajv(opts) {
- if (!(this instanceof Ajv)) return new Ajv(opts);
- opts = this._opts = util.copy(opts) || {};
- setLogger(this);
- this._schemas = {};
- this._refs = {};
- this._fragments = {};
- this._formats = formats(opts.format);
-
- this._cache = opts.cache || new Cache;
- this._loadingSchemas = {};
- this._compilations = [];
- this.RULES = rules();
- this._getId = chooseGetId(opts);
-
- opts.loopRequired = opts.loopRequired || Infinity;
- if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
- if (opts.serialize === undefined) opts.serialize = stableStringify;
- this._metaOpts = getMetaSchemaOptions(this);
-
- if (opts.formats) addInitialFormats(this);
- if (opts.keywords) addInitialKeywords(this);
- addDefaultMetaSchema(this);
- if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta);
- if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}});
- addInitialSchemas(this);
-}
-
-
-
-/**
- * Validate data using schema
- * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize.
- * @this Ajv
- * @param {String|Object} schemaKeyRef key, ref or schema object
- * @param {Any} data to be validated
- * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
- */
-function validate(schemaKeyRef, data) {
- var v;
- if (typeof schemaKeyRef == 'string') {
- v = this.getSchema(schemaKeyRef);
- if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"');
- } else {
- var schemaObj = this._addSchema(schemaKeyRef);
- v = schemaObj.validate || this._compile(schemaObj);
- }
-
- var valid = v(data);
- if (v.$async !== true) this.errors = v.errors;
- return valid;
-}
-
-
-/**
- * Create validating function for passed schema.
- * @this Ajv
- * @param {Object} schema schema object
- * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.
- * @return {Function} validating function
- */
-function compile(schema, _meta) {
- var schemaObj = this._addSchema(schema, undefined, _meta);
- return schemaObj.validate || this._compile(schemaObj);
-}
-
-
-/**
- * Adds schema to the instance.
- * @this Ajv
- * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.
- * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
- * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead.
- * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.
- * @return {Ajv} this for method chaining
- */
-function addSchema(schema, key, _skipValidation, _meta) {
- if (Array.isArray(schema)){
- for (var i=0; i<schema.length; i++) this.addSchema(schema[i], undefined, _skipValidation, _meta);
- return this;
- }
- var id = this._getId(schema);
- if (id !== undefined && typeof id != 'string')
- throw new Error('schema id must be string');
- key = resolve.normalizeId(key || id);
- checkUnique(this, key);
- this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
- return this;
-}
-
-
-/**
- * Add schema that will be used to validate other schemas
- * options in META_IGNORE_OPTIONS are alway set to false
- * @this Ajv
- * @param {Object} schema schema object
- * @param {String} key optional schema key
- * @param {Boolean} skipValidation true to skip schema validation, can be used to override validateSchema option for meta-schema
- * @return {Ajv} this for method chaining
- */
-function addMetaSchema(schema, key, skipValidation) {
- this.addSchema(schema, key, skipValidation, true);
- return this;
-}
-
-
-/**
- * Validate schema
- * @this Ajv
- * @param {Object} schema schema to validate
- * @param {Boolean} throwOrLogError pass true to throw (or log) an error if invalid
- * @return {Boolean} true if schema is valid
- */
-function validateSchema(schema, throwOrLogError) {
- var $schema = schema.$schema;
- if ($schema !== undefined && typeof $schema != 'string')
- throw new Error('$schema must be a string');
- $schema = $schema || this._opts.defaultMeta || defaultMeta(this);
- if (!$schema) {
- this.logger.warn('meta-schema not available');
- this.errors = null;
- return true;
- }
- var valid = this.validate($schema, schema);
- if (!valid && throwOrLogError) {
- var message = 'schema is invalid: ' + this.errorsText();
- if (this._opts.validateSchema == 'log') this.logger.error(message);
- else throw new Error(message);
- }
- return valid;
-}
-
-
-function defaultMeta(self) {
- var meta = self._opts.meta;
- self._opts.defaultMeta = typeof meta == 'object'
- ? self._getId(meta) || meta
- : self.getSchema(META_SCHEMA_ID)
- ? META_SCHEMA_ID
- : undefined;
- return self._opts.defaultMeta;
-}
-
-
-/**
- * Get compiled schema from the instance by `key` or `ref`.
- * @this Ajv
- * @param {String} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id).
- * @return {Function} schema validating function (with property `schema`).
- */
-function getSchema(keyRef) {
- var schemaObj = _getSchemaObj(this, keyRef);
- switch (typeof schemaObj) {
- case 'object': return schemaObj.validate || this._compile(schemaObj);
- case 'string': return this.getSchema(schemaObj);
- case 'undefined': return _getSchemaFragment(this, keyRef);
- }
-}
-
-
-function _getSchemaFragment(self, ref) {
- var res = resolve.schema.call(self, { schema: {} }, ref);
- if (res) {
- var schema = res.schema
- , root = res.root
- , baseId = res.baseId;
- var v = compileSchema.call(self, schema, root, undefined, baseId);
- self._fragments[ref] = new SchemaObject({
- ref: ref,
- fragment: true,
- schema: schema,
- root: root,
- baseId: baseId,
- validate: v
- });
- return v;
- }
-}
-
-
-function _getSchemaObj(self, keyRef) {
- keyRef = resolve.normalizeId(keyRef);
- return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
-}
-
-
-/**
- * Remove cached schema(s).
- * If no parameter is passed all schemas but meta-schemas are removed.
- * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
- * Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
- * @this Ajv
- * @param {String|Object|RegExp} schemaKeyRef key, ref, pattern to match key/ref or schema object
- * @return {Ajv} this for method chaining
- */
-function removeSchema(schemaKeyRef) {
- if (schemaKeyRef instanceof RegExp) {
- _removeAllSchemas(this, this._schemas, schemaKeyRef);
- _removeAllSchemas(this, this._refs, schemaKeyRef);
- return this;
- }
- switch (typeof schemaKeyRef) {
- case 'undefined':
- _removeAllSchemas(this, this._schemas);
- _removeAllSchemas(this, this._refs);
- this._cache.clear();
- return this;
- case 'string':
- var schemaObj = _getSchemaObj(this, schemaKeyRef);
- if (schemaObj) this._cache.del(schemaObj.cacheKey);
- delete this._schemas[schemaKeyRef];
- delete this._refs[schemaKeyRef];
- return this;
- case 'object':
- var serialize = this._opts.serialize;
- var cacheKey = serialize ? serialize(schemaKeyRef) : schemaKeyRef;
- this._cache.del(cacheKey);
- var id = this._getId(schemaKeyRef);
- if (id) {
- id = resolve.normalizeId(id);
- delete this._schemas[id];
- delete this._refs[id];
- }
- }
- return this;
-}
-
-
-function _removeAllSchemas(self, schemas, regex) {
- for (var keyRef in schemas) {
- var schemaObj = schemas[keyRef];
- if (!schemaObj.meta && (!regex || regex.test(keyRef))) {
- self._cache.del(schemaObj.cacheKey);
- delete schemas[keyRef];
- }
- }
-}
-
-
-/* @this Ajv */
-function _addSchema(schema, skipValidation, meta, shouldAddSchema) {
- if (typeof schema != 'object' && typeof schema != 'boolean')
- throw new Error('schema should be object or boolean');
- var serialize = this._opts.serialize;
- var cacheKey = serialize ? serialize(schema) : schema;
- var cached = this._cache.get(cacheKey);
- if (cached) return cached;
-
- shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
-
- var id = resolve.normalizeId(this._getId(schema));
- if (id && shouldAddSchema) checkUnique(this, id);
-
- var willValidate = this._opts.validateSchema !== false && !skipValidation;
- var recursiveMeta;
- if (willValidate && !(recursiveMeta = id && id == resolve.normalizeId(schema.$schema)))
- this.validateSchema(schema, true);
-
- var localRefs = resolve.ids.call(this, schema);
-
- var schemaObj = new SchemaObject({
- id: id,
- schema: schema,
- localRefs: localRefs,
- cacheKey: cacheKey,
- meta: meta
- });
-
- if (id[0] != '#' && shouldAddSchema) this._refs[id] = schemaObj;
- this._cache.put(cacheKey, schemaObj);
-
- if (willValidate && recursiveMeta) this.validateSchema(schema, true);
-
- return schemaObj;
-}
-
-
-/* @this Ajv */
-function _compile(schemaObj, root) {
- if (schemaObj.compiling) {
- schemaObj.validate = callValidate;
- callValidate.schema = schemaObj.schema;
- callValidate.errors = null;
- callValidate.root = root ? root : callValidate;
- if (schemaObj.schema.$async === true)
- callValidate.$async = true;
- return callValidate;
- }
- schemaObj.compiling = true;
-
- var currentOpts;
- if (schemaObj.meta) {
- currentOpts = this._opts;
- this._opts = this._metaOpts;
- }
-
- var v;
- try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
- catch(e) {
- delete schemaObj.validate;
- throw e;
- }
- finally {
- schemaObj.compiling = false;
- if (schemaObj.meta) this._opts = currentOpts;
- }
-
- schemaObj.validate = v;
- schemaObj.refs = v.refs;
- schemaObj.refVal = v.refVal;
- schemaObj.root = v.root;
- return v;
-
-
- /* @this {*} - custom context, see passContext option */
- function callValidate() {
- /* jshint validthis: true */
- var _validate = schemaObj.validate;
- var result = _validate.apply(this, arguments);
- callValidate.errors = _validate.errors;
- return result;
- }
-}
-
-
-function chooseGetId(opts) {
- switch (opts.schemaId) {
- case 'auto': return _get$IdOrId;
- case 'id': return _getId;
- default: return _get$Id;
- }
-}
-
-/* @this Ajv */
-function _getId(schema) {
- if (schema.$id) this.logger.warn('schema $id ignored', schema.$id);
- return schema.id;
-}
-
-/* @this Ajv */
-function _get$Id(schema) {
- if (schema.id) this.logger.warn('schema id ignored', schema.id);
- return schema.$id;
-}
-
-
-function _get$IdOrId(schema) {
- if (schema.$id && schema.id && schema.$id != schema.id)
- throw new Error('schema $id is different from id');
- return schema.$id || schema.id;
-}
-
-
-/**
- * Convert array of error message objects to string
- * @this Ajv
- * @param {Array<Object>} errors optional array of validation errors, if not passed errors from the instance are used.
- * @param {Object} options optional options with properties `separator` and `dataVar`.
- * @return {String} human readable string with all errors descriptions
- */
-function errorsText(errors, options) {
- errors = errors || this.errors;
- if (!errors) return 'No errors';
- options = options || {};
- var separator = options.separator === undefined ? ', ' : options.separator;
- var dataVar = options.dataVar === undefined ? 'data' : options.dataVar;
-
- var text = '';
- for (var i=0; i<errors.length; i++) {
- var e = errors[i];
- if (e) text += dataVar + e.dataPath + ' ' + e.message + separator;
- }
- return text.slice(0, -separator.length);
-}
-
-
-/**
- * Add custom format
- * @this Ajv
- * @param {String} name format name
- * @param {String|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid)
- * @return {Ajv} this for method chaining
- */
-function addFormat(name, format) {
- if (typeof format == 'string') format = new RegExp(format);
- this._formats[name] = format;
- return this;
-}
-
-
-function addDefaultMetaSchema(self) {
- var $dataSchema;
- if (self._opts.$data) {
- $dataSchema = require('./refs/data.json');
- self.addMetaSchema($dataSchema, $dataSchema.$id, true);
- }
- if (self._opts.meta === false) return;
- var metaSchema = require('./refs/json-schema-draft-07.json');
- if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
- self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
- self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
-}
-
-
-function addInitialSchemas(self) {
- var optsSchemas = self._opts.schemas;
- if (!optsSchemas) return;
- if (Array.isArray(optsSchemas)) self.addSchema(optsSchemas);
- else for (var key in optsSchemas) self.addSchema(optsSchemas[key], key);
-}
-
-
-function addInitialFormats(self) {
- for (var name in self._opts.formats) {
- var format = self._opts.formats[name];
- self.addFormat(name, format);
- }
-}
-
-
-function addInitialKeywords(self) {
- for (var name in self._opts.keywords) {
- var keyword = self._opts.keywords[name];
- self.addKeyword(name, keyword);
- }
-}
-
-
-function checkUnique(self, id) {
- if (self._schemas[id] || self._refs[id])
- throw new Error('schema with key or id "' + id + '" already exists');
-}
-
-
-function getMetaSchemaOptions(self) {
- var metaOpts = util.copy(self._opts);
- for (var i=0; i<META_IGNORE_OPTIONS.length; i++)
- delete metaOpts[META_IGNORE_OPTIONS[i]];
- return metaOpts;
-}
-
-
-function setLogger(self) {
- var logger = self._opts.logger;
- if (logger === false) {
- self.logger = {log: noop, warn: noop, error: noop};
- } else {
- if (logger === undefined) logger = console;
- if (!(typeof logger == 'object' && logger.log && logger.warn && logger.error))
- throw new Error('logger must implement log, warn and error methods');
- self.logger = logger;
- }
-}
-
-
-function noop() {}
-
-},{"./cache":1,"./compile":5,"./compile/async":2,"./compile/error_classes":3,"./compile/formats":4,"./compile/resolve":6,"./compile/rules":7,"./compile/schema_obj":8,"./compile/util":10,"./data":11,"./keyword":39,"./refs/data.json":40,"./refs/json-schema-draft-07.json":41,"fast-json-stable-stringify":43}]},{},[])("ajv")
-});
diff --git a/node_modules/ajv/dist/ajv.min.js b/node_modules/ajv/dist/ajv.min.js
deleted file mode 100644
index 1c72a75..0000000
--- a/node_modules/ajv/dist/ajv.min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/* ajv 6.12.2: Another JSON Schema Validator */
-!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Ajv=e()}}(function(){return function o(i,n,l){function c(r,e){if(!n[r]){if(!i[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(u)return u(r,!0);var a=new Error("Cannot find module '"+r+"'");throw a.code="MODULE_NOT_FOUND",a}var s=n[r]={exports:{}};i[r][0].call(s.exports,function(e){return c(i[r][1][e]||e)},s,s.exports,o,i,n,l)}return n[r].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,r,t){"use strict";var a=r.exports=function(){this._cache={}};a.prototype.put=function(e,r){this._cache[e]=r},a.prototype.get=function(e){return this._cache[e]},a.prototype.del=function(e){delete this._cache[e]},a.prototype.clear=function(){this._cache={}}},{}],2:[function(e,r,t){"use strict";var a=e("./error_classes").MissingRef;function s(r,n,t){var l=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof n&&(t=n,n=void 0);var e=c(r).then(function(){var e=l._addSchema(r,void 0,n);return e.validate||function o(i){try{return l._compile(i)}catch(e){if(e instanceof a)return r(e);throw e}function r(e){var r=e.missingSchema;if(s(r))throw new Error("Schema "+r+" is loaded but "+e.missingRef+" cannot be resolved");var t=l._loadingSchemas[r];return t||(t=l._loadingSchemas[r]=l._opts.loadSchema(r)).then(a,a),t.then(function(e){if(!s(r))return c(e).then(function(){s(r)||l.addSchema(e,r,void 0,n)})}).then(function(){return o(i)});function a(){delete l._loadingSchemas[r]}function s(e){return l._refs[e]||l._schemas[e]}}}(e)});return t&&e.then(function(e){t(null,e)},t),e;function c(e){var r=e.$schema;return r&&!l.getSchema(r)?s.call(l,{$ref:r},!0):Promise.resolve()}}r.exports=s},{"./error_classes":3}],3:[function(e,r,t){"use strict";var a=e("./resolve");function s(e,r,t){this.message=t||s.message(e,r),this.missingRef=a.url(e,r),this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function o(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}r.exports={Validation:o(function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}),MissingRef:o(s)},s.message=function(e,r){return"can't resolve reference "+r+" from id "+e}},{"./resolve":6}],4:[function(e,r,t){"use strict";var a=e("./util"),o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,d=/^(?:\/(?:[^~/]|~0|~1)*)*$/,f=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,p=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return a.copy(m[e="full"==e?"full":"fast"])}function v(e){var r=e.match(o);if(!r)return!1;var t,a=+r[2],s=+r[3];return 1<=a&&a<=12&&1<=s&&s<=(2!=a||((t=+r[1])%4!=0||t%100==0&&t%400!=0)?i[a]:29)}function y(e,r){var t=e.match(n);if(!t)return!1;var a=t[1],s=t[2],o=t[3];return(a<=23&&s<=59&&o<=59||23==a&&59==s&&60==o)&&(!r||t[5])}(r.exports=m).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p},m.full={date:v,time:y,"date-time":function(e){var r=e.split(g);return 2==r.length&&v(r[0])&&y(r[1],!0)},uri:function(e){return P.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:w,uuid:h,"json-pointer":d,"json-pointer-uri-fragment":f,"relative-json-pointer":p};var g=/t|\s/i;var P=/\/|:/;var E=/[^\\]\\Z/;function w(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},{"./util":10}],5:[function(e,r,t){"use strict";var $=e("./resolve"),R=e("./util"),D=e("./error_classes"),j=e("fast-json-stable-stringify"),O=e("../dotjs/validate"),I=R.ucs2length,A=e("fast-deep-equal"),C=D.Validation;function k(e,c,u,r){var d=this,f=this._opts,h=[void 0],p={},l=[],t={},m=[],a={},v=[],s=function(e,r,t){var a=L.call(this,e,r,t);return 0<=a?{index:a,compiling:!0}:{index:a=this._compilations.length,compiling:!(this._compilations[a]={schema:e,root:r,baseId:t})}}.call(this,e,c=c||{schema:e,refVal:h,refs:p},r),o=this._compilations[s.index];if(s.compiling)return o.callValidate=P;var y=this._formats,g=this.RULES;try{var i=E(e,c,u,r);o.validate=i;var n=o.callValidate;return n&&(n.schema=i.schema,n.errors=null,n.refs=i.refs,n.refVal=i.refVal,n.root=i.root,n.$async=i.$async,f.sourceCode&&(n.source=i.source)),i}finally{(function(e,r,t){var a=L.call(this,e,r,t);0<=a&&this._compilations.splice(a,1)}).call(this,e,c,r)}function P(){var e=o.validate,r=e.apply(this,arguments);return P.errors=e.errors,r}function E(e,r,t,a){var s=!r||r&&r.schema==e;if(r.schema!=c.schema)return k.call(d,e,r,t,a);var o,i=!0===e.$async,n=O({isTop:!0,schema:e,isRoot:s,baseId:a,root:r,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:D.MissingRef,RULES:g,validate:O,util:R,resolve:$,resolveRef:w,usePattern:_,useDefault:F,useCustomRule:x,opts:f,formats:y,logger:d.logger,self:d});n=Q(h,q)+Q(l,z)+Q(m,T)+Q(v,N)+n,f.processCode&&(n=f.processCode(n));try{o=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",n)(d,g,y,c,h,m,v,A,I,C),h[0]=o}catch(e){throw d.logger.error("Error compiling schema, function code:",n),e}return o.schema=e,o.errors=null,o.refs=p,o.refVal=h,o.root=s?o:r,i&&(o.$async=!0),!0===f.sourceCode&&(o.source={code:n,patterns:l,defaults:m}),o}function w(e,r,t){r=$.url(e,r);var a,s,o=p[r];if(void 0!==o)return S(a=h[o],s="refVal["+o+"]");if(!t&&c.refs){var i=c.refs[r];if(void 0!==i)return S(a=c.refVal[i],s=b(r,a))}s=b(r);var n=$.call(d,E,c,r);if(void 0===n){var l=u&&u[r];l&&(n=$.inlineRef(l,f.inlineRefs)?l:k.call(d,l,c,u,e))}if(void 0!==n)return h[p[r]]=n,S(n,s);delete p[r]}function b(e,r){var t=h.length;return h[t]=r,"refVal"+(p[e]=t)}function S(e,r){return"object"==typeof e||"boolean"==typeof e?{code:r,schema:e,inline:!0}:{code:r,$async:e&&!!e.$async}}function _(e){var r=t[e];return void 0===r&&(r=t[e]=l.length,l[r]=e),"pattern"+r}function F(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return R.toQuotedString(e);case"object":if(null===e)return"null";var r=j(e),t=a[r];return void 0===t&&(t=a[r]=m.length,m[t]=e),"default"+t}}function x(e,r,t,a){if(!1!==d._opts.validateSchema){var s=e.definition.dependencies;if(s&&!s.every(function(e){return Object.prototype.hasOwnProperty.call(t,e)}))throw new Error("parent schema must have all required keywords: "+s.join(","));var o=e.definition.validateSchema;if(o)if(!o(r)){var i="keyword schema is invalid: "+d.errorsText(o.errors);if("log"!=d._opts.validateSchema)throw new Error(i);d.logger.error(i)}}var n,l=e.definition.compile,c=e.definition.inline,u=e.definition.macro;if(l)n=l.call(d,r,t,a);else if(u)n=u.call(d,r,t,a),!1!==f.validateSchema&&d.validateSchema(n,!0);else if(c)n=c.call(d,a,e.keyword,r,t);else if(!(n=e.definition.validate))return;if(void 0===n)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var h=v.length;return{code:"customRule"+h,validate:v[h]=n}}}function L(e,r,t){for(var a=0;a<this._compilations.length;a++){var s=this._compilations[a];if(s.schema==e&&s.root==r&&s.baseId==t)return a}return-1}function z(e,r){return"var pattern"+e+" = new RegExp("+R.toQuotedString(r[e])+");"}function T(e){return"var default"+e+" = defaults["+e+"];"}function q(e,r){return void 0===r[e]?"":"var refVal"+e+" = refVal["+e+"];"}function N(e){return"var customRule"+e+" = customRules["+e+"];"}function Q(e,r){if(!e.length)return"";for(var t="",a=0;a<e.length;a++)t+=r(a,e);return t}r.exports=k},{"../dotjs/validate":38,"./error_classes":3,"./resolve":6,"./util":10,"fast-deep-equal":42,"fast-json-stable-stringify":43}],6:[function(e,r,t){"use strict";var m=e("uri-js"),v=e("fast-deep-equal"),y=e("./util"),l=e("./schema_obj"),a=e("json-schema-traverse");function c(e,r,t){var a=this._refs[t];if("string"==typeof a){if(!this._refs[a])return c.call(this,e,r,a);a=this._refs[a]}if((a=a||this._schemas[t])instanceof l)return d(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var s,o,i,n=u.call(this,r,t);return n&&(s=n.schema,r=n.root,i=n.baseId),s instanceof l?o=s.validate||e.call(this,s.schema,r,void 0,i):void 0!==s&&(o=d(s,this._opts.inlineRefs)?s:e.call(this,s,r,void 0,i)),o}function u(e,r){var t=m.parse(r),a=f(t),s=g(this._getId(e.schema));if(0===Object.keys(e.schema).length||a!==s){var o=P(a),i=this._refs[o];if("string"==typeof i)return function(e,r,t){var a=u.call(this,e,r);if(a){var s=a.schema,o=a.baseId;e=a.root;var i=this._getId(s);return i&&(o=p(o,i)),n.call(this,t,o,s,e)}}.call(this,e,i,t);if(i instanceof l)i.validate||this._compile(i),e=i;else{if(!((i=this._schemas[o])instanceof l))return;if(i.validate||this._compile(i),o==P(r))return{schema:i,root:e,baseId:s};e=i}if(!e.schema)return;s=g(this._getId(e.schema))}return n.call(this,t,s,e.schema,e)}(r.exports=c).normalizeId=P,c.fullPath=g,c.url=p,c.ids=function(e){var r=P(this._getId(e)),h={"":r},d={"":g(r,!1)},f={},p=this;return a(e,{allKeys:!0},function(e,r,t,a,s,o,i){if(""!==r){var n=p._getId(e),l=h[a],c=d[a]+"/"+s;if(void 0!==i&&(c+="/"+("number"==typeof i?i:y.escapeFragment(i))),"string"==typeof n){n=l=P(l?m.resolve(l,n):n);var u=p._refs[n];if("string"==typeof u&&(u=p._refs[u]),u&&u.schema){if(!v(e,u.schema))throw new Error('id "'+n+'" resolves to more than one schema')}else if(n!=P(c))if("#"==n[0]){if(f[n]&&!v(e,f[n]))throw new Error('id "'+n+'" resolves to more than one schema');f[n]=e}else p._refs[n]=c}h[r]=l,d[r]=c}}),f},c.inlineRef=d,c.schema=u;var h=y.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function n(e,r,t,a){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var s=e.fragment.split("/"),o=1;o<s.length;o++){var i=s[o];if(i){if(void 0===(t=t[i=y.unescapeFragment(i)]))break;var n;if(!h[i]&&((n=this._getId(t))&&(r=p(r,n)),t.$ref)){var l=p(r,t.$ref),c=u.call(this,a,l);c&&(t=c.schema,a=c.root,r=c.baseId)}}}return void 0!==t&&t!==a.schema?{schema:t,root:a,baseId:r}:void 0}}var i=y.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function d(e,r){return!1!==r&&(void 0===r||!0===r?function e(r){var t;if(Array.isArray(r)){for(var a=0;a<r.length;a++)if("object"==typeof(t=r[a])&&!e(t))return!1}else for(var s in r){if("$ref"==s)return!1;if("object"==typeof(t=r[s])&&!e(t))return!1}return!0}(e):r?function e(r){var t,a=0;if(Array.isArray(r)){for(var s=0;s<r.length;s++)if("object"==typeof(t=r[s])&&(a+=e(t)),a==1/0)return 1/0}else for(var o in r){if("$ref"==o)return 1/0;if(i[o])a++;else if("object"==typeof(t=r[o])&&(a+=e(t)+1),a==1/0)return 1/0}return a}(e)<=r:void 0)}function g(e,r){return!1!==r&&(e=P(e)),f(m.parse(e))}function f(e){return m.serialize(e).split("#")[0]+"#"}var s=/#\/?$/;function P(e){return e?e.replace(s,""):""}function p(e,r){return r=P(r),m.resolve(e,r)}},{"./schema_obj":8,"./util":10,"fast-deep-equal":42,"json-schema-traverse":44,"uri-js":45}],7:[function(e,r,t){"use strict";var o=e("../dotjs"),i=e("./util").toHash;r.exports=function(){var a=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],s=["type","$comment"];return a.all=i(s),a.types=i(["number","integer","string","array","object","boolean","null"]),a.forEach(function(e){e.rules=e.rules.map(function(e){var r;if("object"==typeof e){var t=Object.keys(e)[0];r=e[t],e=t,r.forEach(function(e){s.push(e),a.all[e]=!0})}return s.push(e),a.all[e]={keyword:e,code:o[e],implements:r}}),a.all.$comment={keyword:"$comment",code:o.$comment},e.type&&(a.types[e.type]=e)}),a.keywords=i(s.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),a.custom={},a}},{"../dotjs":27,"./util":10}],8:[function(e,r,t){"use strict";var a=e("./util");r.exports=function(e){a.copy(e,this)}},{"./util":10}],9:[function(e,r,t){"use strict";r.exports=function(e){for(var r,t=0,a=e.length,s=0;s<a;)t++,55296<=(r=e.charCodeAt(s++))&&r<=56319&&s<a&&56320==(64512&(r=e.charCodeAt(s)))&&s++;return t}},{}],10:[function(e,r,t){"use strict";function o(e,r,t){var a=t?" !== ":" === ",s=t?" || ":" && ",o=t?"!":"",i=t?"":"!";switch(e){case"null":return r+a+"null";case"array":return o+"Array.isArray("+r+")";case"object":return"("+o+r+s+"typeof "+r+a+'"object"'+s+i+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+a+'"number"'+s+i+"("+r+" % 1)"+s+r+a+r+")";default:return"typeof "+r+a+'"'+e+'"'}}r.exports={copy:function(e,r){for(var t in r=r||{},e)r[t]=e[t];return r},checkDataType:o,checkDataTypes:function(e,r){switch(e.length){case 1:return o(e[0],r,!0);default:var t="",a=n(e);for(var s in a.array&&a.object&&(t=a.null?"(":"(!"+r+" || ",t+="typeof "+r+' !== "object")',delete a.null,delete a.array,delete a.object),a.number&&delete a.integer,a)t+=(t?" && ":"")+o(s,r,!0);return t}},coerceToTypes:function(e,r){if(Array.isArray(r)){for(var t=[],a=0;a<r.length;a++){var s=r[a];(i[s]||"array"===e&&"array"===s)&&(t[t.length]=s)}if(t.length)return t}else{if(i[r])return[r];if("array"===e&&"array"===r)return["array"]}},toHash:n,getProperty:h,escapeQuotes:l,equal:e("fast-deep-equal"),ucs2length:e("./ucs2length"),varOccurences:function(e,r){r+="[^0-9]";var t=e.match(new RegExp(r,"g"));return t?t.length:0},varReplace:function(e,r,t){return r+="([^0-9])",t=t.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),t+"$1")},cleanUpCode:function(e){return e.replace(c,"").replace(u,"").replace(d,"if (!($1))")},finalCleanUpCode:function(e,r){var t=e.match(f);t&&2==t.length&&(e=r?e.replace(m,"").replace(g,P):e.replace(p,"").replace(v,y));return(t=e.match(E))&&3===t.length?e.replace(w,""):e},schemaHasRules:function(e,r){if("boolean"==typeof e)return!e;for(var t in e)if(r[t])return!0},schemaHasRulesExcept:function(e,r,t){if("boolean"==typeof e)return!e&&"not"!=t;for(var a in e)if(a!=t&&r[a])return!0},schemaUnknownRules:function(e,r){if("boolean"==typeof e)return;for(var t in e)if(!r[t])return t},toQuotedString:b,getPathExpr:function(e,r,t,a){return F(e,t?"'/' + "+r+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'")},getPath:function(e,r,t){var a=b(t?"/"+x(r):h(r));return F(e,a)},getData:function(e,r,t){var a,s,o,i;if(""===e)return"rootData";if("/"==e[0]){if(!S.test(e))throw new Error("Invalid JSON-pointer: "+e);s=e,o="rootData"}else{if(!(i=e.match(_)))throw new Error("Invalid JSON-pointer: "+e);if(a=+i[1],"#"==(s=i[2])){if(r<=a)throw new Error("Cannot access property/index "+a+" levels up, current level is "+r);return t[r-a]}if(r<a)throw new Error("Cannot access data "+a+" levels up, current level is "+r);if(o="data"+(r-a||""),!s)return o}for(var n=o,l=s.split("/"),c=0;c<l.length;c++){var u=l[c];u&&(o+=h($(u)),n+=" && "+o)}return n},unescapeFragment:function(e){return $(decodeURIComponent(e))},unescapeJsonPointer:$,escapeFragment:function(e){return encodeURIComponent(x(e))},escapeJsonPointer:x};var i=n(["string","number","integer","boolean","null"]);function n(e){for(var r={},t=0;t<e.length;t++)r[e[t]]=!0;return r}var a=/^[a-z$_][a-z$_0-9]*$/i,s=/'|\\/g;function h(e){return"number"==typeof e?"["+e+"]":a.test(e)?"."+e:"['"+l(e)+"']"}function l(e){return e.replace(s,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}var c=/else\s*{\s*}/g,u=/if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g,d=/if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g;var f=/[^v.]errors/g,p=/var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g,m=/var errors = 0;|var vErrors = null;/g,v="return errors === 0;",y="validate.errors = null; return true;",g=/if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/,P="return data;",E=/[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g,w=/if \(rootData === undefined\) rootData = data;/;function b(e){return"'"+l(e)+"'"}var S=/^\/(?:[^~]|~0|~1)*$/,_=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function F(e,r){return'""'==e?r:(e+" + "+r).replace(/' \+ '/g,"")}function x(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function $(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}},{"./ucs2length":9,"fast-deep-equal":42}],11:[function(e,r,t){"use strict";var l=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];r.exports=function(e,r){for(var t=0;t<r.length;t++){e=JSON.parse(JSON.stringify(e));var a,s=r[t].split("/"),o=e;for(a=1;a<s.length;a++)o=o[s[a]];for(a=0;a<l.length;a++){var i=l[a],n=o[i];n&&(o[i]={anyOf:[n,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]})}}return e}},{}],12:[function(e,r,t){"use strict";var a=e("./refs/json-schema-draft-07.json");r.exports={$id:"https://github.com/epoberezkin/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},{"./refs/json-schema-draft-07.json":41}],13:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h=e.opts.$data&&i&&i.$data;t=h?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i;var d="maximum"==r,f=d?"exclusiveMaximum":"exclusiveMinimum",p=e.schema[f],m=e.opts.$data&&p&&p.$data,v=d?"<":">",y=d?">":"<",g=void 0;if(m){var P=e.util.getData(p.$data,o,e.dataPathArr),E="exclusive"+s,w="exclType"+s,b="exclIsNumber"+s,S="' + "+(x="op"+s)+" + '";a+=" var schemaExcl"+s+" = "+P+"; ";var _;g=f;(_=_||[]).push(a+=" var "+E+"; var "+w+" = typeof "+(P="schemaExcl"+s)+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { "),a="",!1!==e.createErrors?(a+=" { keyword: '"+(g||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(a+=" , message: '"+f+" should be boolean' "),e.opts.verbose&&(a+=" , schema: validate.schema"+n+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var F=a;a=_.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+F+"]); ":" validate.errors = ["+F+"]; return false; ":" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",h&&(a+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),a+=" "+w+" == 'number' ? ( ("+E+" = "+t+" === undefined || "+P+" "+v+"= "+t+") ? "+u+" "+y+"= "+P+" : "+u+" "+y+" "+t+" ) : ( ("+E+" = "+P+" === true) ? "+u+" "+y+"= "+t+" : "+u+" "+y+" "+t+" ) || "+u+" !== "+u+") { var op"+s+" = "+E+" ? '"+v+"' : '"+v+"='; ",void 0===i&&(l=e.errSchemaPath+"/"+(g=f),t=P,h=m)}else{S=v;if((b="number"==typeof p)&&h){var x="'"+S+"'";a+=" if ( ",h&&(a+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),a+=" ( "+t+" === undefined || "+p+" "+v+"= "+t+" ? "+u+" "+y+"= "+p+" : "+u+" "+y+" "+t+" ) || "+u+" !== "+u+") { "}else{b&&void 0===i?(E=!0,l=e.errSchemaPath+"/"+(g=f),t=p,y+="="):(b&&(t=Math[d?"min":"max"](p,i)),p===(!b||t)?(E=!0,l=e.errSchemaPath+"/"+(g=f),y+="="):(E=!1,S+="="));x="'"+S+"'";a+=" if ( ",h&&(a+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),a+=" "+u+" "+y+" "+t+" || "+u+" !== "+u+") { "}}g=g||r,(_=_||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(g||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+x+", limit: "+t+", exclusive: "+E+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be "+S+" ",a+=h?"' + "+t:t+"'"),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+n:""+i,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";F=a;return a=_.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+F+"]); ":" validate.errors = ["+F+"]; return false; ":" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",c&&(a+=" else { "),a}},{}],14:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h=e.opts.$data&&i&&i.$data;t=h?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i,a+="if ( ",h&&(a+=" ("+t+" !== undefined && typeof "+t+" != 'number') || ");var d=r,f=f||[];f.push(a+=" "+u+".length "+("maxItems"==r?">":"<")+" "+t+") { "),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxItems"==r?"more":"fewer",a+=" than ",a+=h?"' + "+t+" + '":""+i,a+=" items' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+n:""+i,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var p=a;return a=f.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},{}],15:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h=e.opts.$data&&i&&i.$data;t=h?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i,a+="if ( ",h&&(a+=" ("+t+" !== undefined && typeof "+t+" != 'number') || "),a+=!1===e.opts.unicode?" "+u+".length ":" ucs2length("+u+") ";var d=r,f=f||[];f.push(a+=" "+("maxLength"==r?">":"<")+" "+t+") { "),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT be ",a+="maxLength"==r?"longer":"shorter",a+=" than ",a+=h?"' + "+t+" + '":""+i,a+=" characters' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+n:""+i,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var p=a;return a=f.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},{}],16:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h=e.opts.$data&&i&&i.$data;t=h?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i,a+="if ( ",h&&(a+=" ("+t+" !== undefined && typeof "+t+" != 'number') || ");var d=r,f=f||[];f.push(a+=" Object.keys("+u+").length "+("maxProperties"==r?">":"<")+" "+t+") { "),a="",!1!==e.createErrors?(a+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+t+" } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have ",a+="maxProperties"==r?"more":"fewer",a+=" than ",a+=h?"' + "+t+" + '":""+i,a+=" properties' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+n:""+i,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var p=a;return a=f.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},{}],17:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.schema[r],s=e.schemaPath+e.util.getProperty(r),o=e.errSchemaPath+"/"+r,i=!e.opts.allErrors,n=e.util.copy(e),l="";n.level++;var c="valid"+n.level,u=n.baseId,h=!0,d=a;if(d)for(var f,p=-1,m=d.length-1;p<m;)f=d[p+=1],(e.opts.strictKeywords?"object"==typeof f&&0<Object.keys(f).length:e.util.schemaHasRules(f,e.RULES.all))&&(h=!1,n.schema=f,n.schemaPath=s+"["+p+"]",n.errSchemaPath=o+"/"+p,t+=" "+e.validate(n)+" ",n.baseId=u,i&&(t+=" if ("+c+") { ",l+="}"));return i&&(t+=h?" if (true) { ":" "+l.slice(0,-1)+" "),t=e.util.cleanUpCode(t)}},{}],18:[function(e,r,t){"use strict";r.exports=function(r,e){var t=" ",a=r.level,s=r.dataLevel,o=r.schema[e],i=r.schemaPath+r.util.getProperty(e),n=r.errSchemaPath+"/"+e,l=!r.opts.allErrors,c="data"+(s||""),u="valid"+a,h="errs__"+a,d=r.util.copy(r),f="";d.level++;var p="valid"+d.level;if(o.every(function(e){return r.opts.strictKeywords?"object"==typeof e&&0<Object.keys(e).length:r.util.schemaHasRules(e,r.RULES.all)})){var m=d.baseId;t+=" var "+h+" = errors; var "+u+" = false; ";var v=r.compositeRule;r.compositeRule=d.compositeRule=!0;var y=o;if(y)for(var g,P=-1,E=y.length-1;P<E;)g=y[P+=1],d.schema=g,d.schemaPath=i+"["+P+"]",d.errSchemaPath=n+"/"+P,t+=" "+r.validate(d)+" ",d.baseId=m,t+=" "+u+" = "+u+" || "+p+"; if (!"+u+") { ",f+="}";r.compositeRule=d.compositeRule=v,t+=" "+f+" if (!"+u+") { var err = ",!1!==r.createErrors?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(n)+" , params: {} ",!1!==r.opts.messages&&(t+=" , message: 'should match some schema in anyOf' "),r.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&l&&(t+=r.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),t+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",r.opts.allErrors&&(t+=" } "),t=r.util.cleanUpCode(t)}else l&&(t+=" if (true) { ");return t}},{}],19:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.errSchemaPath+"/"+r,s=e.util.toQuotedString(e.schema[r]);return!0===e.opts.$comment?t+=" console.log("+s+");":"function"==typeof e.opts.$comment&&(t+=" self._opts.$comment("+s+", "+e.util.toQuotedString(a)+", validate.root.schema);"),t}},{}],20:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="valid"+a,h=e.opts.$data&&o&&o.$data;h&&(t+=" var schema"+a+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; "),h||(t+=" var schema"+a+" = validate.schema"+i+";");var d=d||[];d.push(t+="var "+u+" = equal("+c+", schema"+a+"); if (!"+u+") { "),t="",!1!==e.createErrors?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { allowedValue: schema"+a+" } ",!1!==e.opts.messages&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var f=t;return t=d.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+f+"]); ":" validate.errors = ["+f+"]; return false; ":" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",l&&(t+=" else { "),t}},{}],21:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="valid"+a,h="errs__"+a,d=e.util.copy(e);d.level++;var f="valid"+d.level,p="i"+a,m=d.dataLevel=e.dataLevel+1,v="data"+m,y=e.baseId,g=e.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:e.util.schemaHasRules(o,e.RULES.all);if(t+="var "+h+" = errors;var "+u+";",g){var P=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=o,d.schemaPath=i,d.errSchemaPath=n,t+=" var "+f+" = false; for (var "+p+" = 0; "+p+" < "+c+".length; "+p+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers,!0);var E=c+"["+p+"]";d.dataPathArr[m]=p;var w=e.validate(d);d.baseId=y,e.util.varOccurences(w,v)<2?t+=" "+e.util.varReplace(w,v,E)+" ":t+=" var "+v+" = "+E+"; "+w+" ",t+=" if ("+f+") break; } ",e.compositeRule=d.compositeRule=P,t+=" if (!"+f+") {"}else t+=" if ("+c+".length == 0) {";var b=b||[];b.push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var S=t;return t=b.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+S+"]); ":" validate.errors = ["+S+"]; return false; ":" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",g&&(t+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t=e.util.cleanUpCode(t)}},{}],22:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a,s=" ",o=e.level,i=e.dataLevel,n=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,h="data"+(i||""),d="valid"+o,f="errs__"+o,p=e.opts.$data&&n&&n.$data;a=p?(s+=" var schema"+o+" = "+e.util.getData(n.$data,i,e.dataPathArr)+"; ","schema"+o):n;var m,v,y,g,P,E=this,w="definition"+o,b=E.definition,S="";if(p&&b.$data){var _=b.validateSchema;s+=" var "+w+" = RULES.custom['"+r+"'].definition; var "+(P="keywordValidate"+o)+" = "+w+".validate;"}else{if(!(g=e.useCustomRule(E,n,e.schema,e)))return;a="validate.schema"+l,P=g.code,m=b.compile,v=b.inline,y=b.macro}var F=P+".errors",x="i"+o,$="ruleErr"+o,R=b.async;if(R&&!e.async)throw new Error("async keyword in sync schema");if(v||y||(s+=F+" = null;"),s+="var "+f+" = errors;var "+d+";",p&&b.$data&&(S+="}",s+=" if ("+a+" === undefined) { "+d+" = true; } else { ",_&&(S+="}",s+=" "+d+" = "+w+".validateSchema("+a+"); if ("+d+") { ")),v)s+=b.statements?" "+g.validate+" ":" "+d+" = "+g.validate+"; ";else if(y){var D=e.util.copy(e);S="";D.level++;var j="valid"+D.level;D.schema=g.validate,D.schemaPath="";var O=e.compositeRule;e.compositeRule=D.compositeRule=!0;var I=e.validate(D).replace(/validate\.schema/g,P);e.compositeRule=D.compositeRule=O,s+=" "+I}else{(L=L||[]).push(s),s="",s+=" "+P+".call( ",s+=e.opts.passContext?"this":"self",s+=m||!1===b.schema?" , "+h+" ":" , "+a+" , "+h+" , validate.schema"+e.schemaPath+" ",s+=" , (dataPath || '')",'""'!=e.errorPath&&(s+=" + "+e.errorPath);var A=i?"data"+(i-1||""):"parentData",C=i?e.dataPathArr[i]:"parentDataProperty",k=s+=" , "+A+" , "+C+" , rootData ) ";s=L.pop(),!1===b.errors?(s+=" "+d+" = ",R&&(s+="await "),s+=k+"; "):s+=R?" var "+(F="customErrors"+o)+" = null; try { "+d+" = await "+k+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+F+" = e.errors; else throw e; } ":" "+F+" = null; "+d+" = "+k+"; "}if(b.modifying&&(s+=" if ("+A+") "+h+" = "+A+"["+C+"];"),s+=""+S,b.valid)u&&(s+=" if (true) { ");else{var L;s+=" if ( ",void 0===b.valid?(s+=" !",s+=y?""+j:d):s+=" "+!b.valid+" ",t=E.keyword,(L=L||[]).push(s+=") { "),(L=L||[]).push(s=""),s="",!1!==e.createErrors?(s+=" { keyword: '"+(t||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+E.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+E.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ";var z=s;s=L.pop();var T=s+=!e.compositeRule&&u?e.async?" throw new ValidationError(["+z+"]); ":" validate.errors = ["+z+"]; return false; ":" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";s=L.pop(),v?b.errors?"full"!=b.errors&&(s+=" for (var "+x+"="+f+"; "+x+"<errors; "+x+"++) { var "+$+" = vErrors["+x+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(s+=" "+$+".schema = "+a+"; "+$+".data = "+h+"; "),s+=" } "):!1===b.errors?s+=" "+T+" ":(s+=" if ("+f+" == errors) { "+T+" } else { for (var "+x+"="+f+"; "+x+"<errors; "+x+"++) { var "+$+" = vErrors["+x+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+c+'"; } ',e.opts.verbose&&(s+=" "+$+".schema = "+a+"; "+$+".data = "+h+"; "),s+=" } } "):y?(s+=" var err = ",!1!==e.createErrors?(s+=" { keyword: '"+(t||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+E.keyword+"' } ",!1!==e.opts.messages&&(s+=" , message: 'should pass \""+E.keyword+"\" keyword validation' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),s+=" } "):s+=" {} ",s+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(s+=e.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; ")):!1===b.errors?s+=" "+T+" ":(s+=" if (Array.isArray("+F+")) { if (vErrors === null) vErrors = "+F+"; else vErrors = vErrors.concat("+F+"); errors = vErrors.length; for (var "+x+"="+f+"; "+x+"<errors; "+x+"++) { var "+$+" = vErrors["+x+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; "+$+'.schemaPath = "'+c+'"; ',e.opts.verbose&&(s+=" "+$+".schema = "+a+"; "+$+".data = "+h+"; "),s+=" } } else { "+T+" } "),s+=" } ",u&&(s+=" else { ")}return s}},{}],23:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="errs__"+a,h=e.util.copy(e),d="";h.level++;var f="valid"+h.level,p={},m={},v=e.opts.ownProperties;for(E in o){var y=o[E],g=Array.isArray(y)?m:p;g[E]=y}t+="var "+u+" = errors;";var P=e.errorPath;for(var E in t+="var missing"+a+";",m)if((g=m[E]).length){if(t+=" if ( "+c+e.util.getProperty(E)+" !== undefined ",v&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(E)+"') "),l){t+=" && ( ";var w=g;if(w)for(var b=-1,S=w.length-1;b<S;){D=w[b+=1],b&&(t+=" || "),t+=" ( ( "+(A=c+(I=e.util.getProperty(D)))+" === undefined ",v&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(D)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?D:I)+") ) "}t+=")) { ";var _="missing"+a,F="' + "+_+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,_,!0):P+" + "+_);var x=x||[];x.push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+F+"', depsCount: "+g.length+", deps: '"+e.util.escapeQuotes(1==g.length?g[0]:g.join(", "))+"' } ",!1!==e.opts.messages&&(t+=" , message: 'should have ",t+=1==g.length?"property "+e.util.escapeQuotes(g[0]):"properties "+e.util.escapeQuotes(g.join(", ")),t+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var $=t;t=x.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+$+"]); ":" validate.errors = ["+$+"]; return false; ":" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var R=g;if(R)for(var D,j=-1,O=R.length-1;j<O;){D=R[j+=1];var I=e.util.getProperty(D),A=(F=e.util.escapeQuotes(D),c+I);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,D,e.opts.jsonPointers)),t+=" if ( "+A+" === undefined ",v&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(D)+"') "),t+=") { var err = ",!1!==e.createErrors?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { property: '"+e.util.escapeQuotes(E)+"', missingProperty: '"+F+"', depsCount: "+g.length+", deps: '"+e.util.escapeQuotes(1==g.length?g[0]:g.join(", "))+"' } ",!1!==e.opts.messages&&(t+=" , message: 'should have ",t+=1==g.length?"property "+e.util.escapeQuotes(g[0]):"properties "+e.util.escapeQuotes(g.join(", ")),t+=" when property "+e.util.escapeQuotes(E)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" } ",l&&(d+="}",t+=" else { ")}e.errorPath=P;var C=h.baseId;for(var E in p){y=p[E];(e.opts.strictKeywords?"object"==typeof y&&0<Object.keys(y).length:e.util.schemaHasRules(y,e.RULES.all))&&(t+=" "+f+" = true; if ( "+c+e.util.getProperty(E)+" !== undefined ",v&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(E)+"') "),t+=") { ",h.schema=y,h.schemaPath=i+e.util.getProperty(E),h.errSchemaPath=n+"/"+e.util.escapeFragment(E),t+=" "+e.validate(h)+" ",h.baseId=C,t+=" } ",l&&(t+=" if ("+f+") { ",d+="}"))}return l&&(t+=" "+d+" if ("+u+" == errors) {"),t=e.util.cleanUpCode(t)}},{}],24:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="valid"+a,h=e.opts.$data&&o&&o.$data;h&&(t+=" var schema"+a+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ");var d="i"+a,f="schema"+a;h||(t+=" var "+f+" = validate.schema"+i+";"),t+="var "+u+";",h&&(t+=" if (schema"+a+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+a+")) "+u+" = false; else {"),t+=u+" = false;for (var "+d+"=0; "+d+"<"+f+".length; "+d+"++) if (equal("+c+", "+f+"["+d+"])) { "+u+" = true; break; }",h&&(t+=" } ");var p=p||[];p.push(t+=" if (!"+u+") { "),t="",!1!==e.createErrors?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { allowedValues: schema"+a+" } ",!1!==e.opts.messages&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var m=t;return t=p.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",l&&(t+=" else { "),t}},{}],25:[function(e,r,t){"use strict";r.exports=function(e,r,t){var a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||"");if(!1===e.opts.format)return c&&(a+=" if (true) { "),a;var h,d=e.opts.$data&&i&&i.$data;h=d?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i;var f=e.opts.unknownFormats,p=Array.isArray(f);if(d){a+=" var "+(m="format"+s)+" = formats["+h+"]; var "+(v="isObject"+s)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+s)+" = "+v+" && "+m+".type || 'string'; if ("+v+") { ",e.async&&(a+=" var async"+s+" = "+m+".async; "),a+=" "+m+" = "+m+".validate; } if ( ",d&&(a+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),a+=" (","ignore"!=f&&(a+=" ("+h+" && !"+m+" ",p&&(a+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),a+=") || "),a+=" ("+m+" && "+y+" == '"+t+"' && !(typeof "+m+" == 'function' ? ",a+=e.async?" (async"+s+" ? await "+m+"("+u+") : "+m+"("+u+")) ":" "+m+"("+u+") ",a+=" : "+m+".test("+u+"))))) {"}else{var m;if(!(m=e.formats[i])){if("ignore"==f)return e.logger.warn('unknown format "'+i+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(a+=" if (true) { "),a;if(p&&0<=f.indexOf(i))return c&&(a+=" if (true) { "),a;throw new Error('unknown format "'+i+'" is used in schema at path "'+e.errSchemaPath+'"')}var v,y=(v="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(v){var g=!0===m.async;m=m.validate}if(y!=t)return c&&(a+=" if (true) { "),a;if(g){if(!e.async)throw new Error("async format in sync schema");a+=" if (!(await "+(P="formats"+e.util.getProperty(i)+".validate")+"("+u+"))) { "}else{a+=" if (! ";var P="formats"+e.util.getProperty(i);v&&(P+=".validate"),a+="function"==typeof m?" "+P+"("+u+") ":" "+P+".test("+u+") ",a+=") { "}}var E=E||[];E.push(a),a="",!1!==e.createErrors?(a+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",a+=d?""+h:""+e.util.toQuotedString(i),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match format \"",a+=d?"' + "+h+" + '":""+e.util.escapeQuotes(i),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+n:""+e.util.toQuotedString(i),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var w=a;return a=E.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+w+"]); ":" validate.errors = ["+w+"]; return false; ":" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",c&&(a+=" else { "),a}},{}],26:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="valid"+a,h="errs__"+a,d=e.util.copy(e);d.level++;var f="valid"+d.level,p=e.schema.then,m=e.schema.else,v=void 0!==p&&(e.opts.strictKeywords?"object"==typeof p&&0<Object.keys(p).length:e.util.schemaHasRules(p,e.RULES.all)),y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&0<Object.keys(m).length:e.util.schemaHasRules(m,e.RULES.all)),g=d.baseId;if(v||y){var P;d.createErrors=!1,d.schema=o,d.schemaPath=i,d.errSchemaPath=n,t+=" var "+h+" = errors; var "+u+" = true; ";var E=e.compositeRule;e.compositeRule=d.compositeRule=!0,t+=" "+e.validate(d)+" ",d.baseId=g,d.createErrors=!0,t+=" errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=E,v?(t+=" if ("+f+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",t+=" "+e.validate(d)+" ",d.baseId=g,t+=" "+u+" = "+f+"; ",v&&y?t+=" var "+(P="ifClause"+a)+" = 'then'; ":P="'then'",t+=" } ",y&&(t+=" else { ")):t+=" if (!"+f+") { ",y&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",t+=" "+e.validate(d)+" ",d.baseId=g,t+=" "+u+" = "+f+"; ",v&&y?t+=" var "+(P="ifClause"+a)+" = 'else'; ":P="'else'",t+=" } "),t+=" if (!"+u+") { var err = ",!1!==e.createErrors?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { failingKeyword: "+P+" } ",!1!==e.opts.messages&&(t+=" , message: 'should match \"' + "+P+" + '\" schema' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(t+=e.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),t+=" } ",l&&(t+=" else { "),t=e.util.cleanUpCode(t)}else l&&(t+=" if (true) { ");return t}},{}],27:[function(e,r,t){"use strict";r.exports={$ref:e("./ref"),allOf:e("./allOf"),anyOf:e("./anyOf"),$comment:e("./comment"),const:e("./const"),contains:e("./contains"),dependencies:e("./dependencies"),enum:e("./enum"),format:e("./format"),if:e("./if"),items:e("./items"),maximum:e("./_limit"),minimum:e("./_limit"),maxItems:e("./_limitItems"),minItems:e("./_limitItems"),maxLength:e("./_limitLength"),minLength:e("./_limitLength"),maxProperties:e("./_limitProperties"),minProperties:e("./_limitProperties"),multipleOf:e("./multipleOf"),not:e("./not"),oneOf:e("./oneOf"),pattern:e("./pattern"),properties:e("./properties"),propertyNames:e("./propertyNames"),required:e("./required"),uniqueItems:e("./uniqueItems"),validate:e("./validate")}},{"./_limit":13,"./_limitItems":14,"./_limitLength":15,"./_limitProperties":16,"./allOf":17,"./anyOf":18,"./comment":19,"./const":20,"./contains":21,"./dependencies":23,"./enum":24,"./format":25,"./if":26,"./items":28,"./multipleOf":29,"./not":30,"./oneOf":31,"./pattern":32,"./properties":33,"./propertyNames":34,"./ref":35,"./required":36,"./uniqueItems":37,"./validate":38}],28:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="valid"+a,h="errs__"+a,d=e.util.copy(e),f="";d.level++;var p="valid"+d.level,m="i"+a,v=d.dataLevel=e.dataLevel+1,y="data"+v,g=e.baseId;if(t+="var "+h+" = errors;var "+u+";",Array.isArray(o)){var P=e.schema.additionalItems;if(!1===P){t+=" "+u+" = "+c+".length <= "+o.length+"; ";var E=n;n=e.errSchemaPath+"/additionalItems";var w=w||[];w.push(t+=" if (!"+u+") { "),t="",!1!==e.createErrors?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { limit: "+o.length+" } ",!1!==e.opts.messages&&(t+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var b=t;t=w.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+b+"]); ":" validate.errors = ["+b+"]; return false; ":" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",n=E,l&&(f+="}",t+=" else { ")}var S=o;if(S)for(var _,F=-1,x=S.length-1;F<x;)if(_=S[F+=1],e.opts.strictKeywords?"object"==typeof _&&0<Object.keys(_).length:e.util.schemaHasRules(_,e.RULES.all)){t+=" "+p+" = true; if ("+c+".length > "+F+") { ";var $=c+"["+F+"]";d.schema=_,d.schemaPath=i+"["+F+"]",d.errSchemaPath=n+"/"+F,d.errorPath=e.util.getPathExpr(e.errorPath,F,e.opts.jsonPointers,!0),d.dataPathArr[v]=F;var R=e.validate(d);d.baseId=g,e.util.varOccurences(R,y)<2?t+=" "+e.util.varReplace(R,y,$)+" ":t+=" var "+y+" = "+$+"; "+R+" ",t+=" } ",l&&(t+=" if ("+p+") { ",f+="}")}if("object"==typeof P&&(e.opts.strictKeywords?"object"==typeof P&&0<Object.keys(P).length:e.util.schemaHasRules(P,e.RULES.all))){d.schema=P,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+p+" = true; if ("+c+".length > "+o.length+") { for (var "+m+" = "+o.length+"; "+m+" < "+c+".length; "+m+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);$=c+"["+m+"]";d.dataPathArr[v]=m;R=e.validate(d);d.baseId=g,e.util.varOccurences(R,y)<2?t+=" "+e.util.varReplace(R,y,$)+" ":t+=" var "+y+" = "+$+"; "+R+" ",l&&(t+=" if (!"+p+") break; "),t+=" } } ",l&&(t+=" if ("+p+") { ",f+="}")}}else if(e.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:e.util.schemaHasRules(o,e.RULES.all)){d.schema=o,d.schemaPath=i,d.errSchemaPath=n,t+=" for (var "+m+" = 0; "+m+" < "+c+".length; "+m+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);$=c+"["+m+"]";d.dataPathArr[v]=m;R=e.validate(d);d.baseId=g,e.util.varOccurences(R,y)<2?t+=" "+e.util.varReplace(R,y,$)+" ":t+=" var "+y+" = "+$+"; "+R+" ",l&&(t+=" if (!"+p+") break; "),t+=" }"}return l&&(t+=" "+f+" if ("+h+" == errors) {"),t=e.util.cleanUpCode(t)}},{}],29:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h=e.opts.$data&&i&&i.$data;t=h?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i,a+="var division"+s+";if (",h&&(a+=" "+t+" !== undefined && ( typeof "+t+" != 'number' || "),a+=" (division"+s+" = "+u+" / "+t+", ",a+=e.opts.multipleOfPrecision?" Math.abs(Math.round(division"+s+") - division"+s+") > 1e-"+e.opts.multipleOfPrecision+" ":" division"+s+" !== parseInt(division"+s+") ",a+=" ) ",h&&(a+=" ) ");var d=d||[];d.push(a+=" ) { "),a="",!1!==e.createErrors?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { multipleOf: "+t+" } ",!1!==e.opts.messages&&(a+=" , message: 'should be multiple of ",a+=h?"' + "+t:t+"'"),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+n:""+i,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var f=a;return a=d.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+f+"]); ":" validate.errors = ["+f+"]; return false; ":" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},{}],30:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="errs__"+a,h=e.util.copy(e);h.level++;var d="valid"+h.level;if(e.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=i,h.errSchemaPath=n,t+=" var "+u+" = errors; ";var f,p=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(f=h.opts.allErrors,h.opts.allErrors=!1),t+=" "+e.validate(h)+" ",h.createErrors=!0,f&&(h.opts.allErrors=f),e.compositeRule=h.compositeRule=p;var m=m||[];m.push(t+=" if ("+d+") { "),t="",!1!==e.createErrors?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var v=t;t=m.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+v+"]); ":" validate.errors = ["+v+"]; return false; ":" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+=" var err = ",!1!==e.createErrors?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: {} ",!1!==e.opts.messages&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(t+=" if (false) { ");return t}},{}],31:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="valid"+a,h="errs__"+a,d=e.util.copy(e),f="";d.level++;var p="valid"+d.level,m=d.baseId,v="prevValid"+a,y="passingSchemas"+a;t+="var "+h+" = errors , "+v+" = false , "+u+" = false , "+y+" = null; ";var g=e.compositeRule;e.compositeRule=d.compositeRule=!0;var P=o;if(P)for(var E,w=-1,b=P.length-1;w<b;)E=P[w+=1],(e.opts.strictKeywords?"object"==typeof E&&0<Object.keys(E).length:e.util.schemaHasRules(E,e.RULES.all))?(d.schema=E,d.schemaPath=i+"["+w+"]",d.errSchemaPath=n+"/"+w,t+=" "+e.validate(d)+" ",d.baseId=m):t+=" var "+p+" = true; ",w&&(t+=" if ("+p+" && "+v+") { "+u+" = false; "+y+" = ["+y+", "+w+"]; } else { ",f+="}"),t+=" if ("+p+") { "+u+" = "+v+" = true; "+y+" = "+w+"; }";return e.compositeRule=d.compositeRule=g,t+=f+"if (!"+u+") { var err = ",!1!==e.createErrors?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { passingSchemas: "+y+" } ",!1!==e.opts.messages&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(t+=e.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),t+="} else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t}},{}],32:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h=e.opts.$data&&i&&i.$data;t=h?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i;var d=h?"(new RegExp("+t+"))":e.usePattern(i);a+="if ( ",h&&(a+=" ("+t+" !== undefined && typeof "+t+" != 'string') || ");var f=f||[];f.push(a+=" !"+d+".test("+u+") ) { "),a="",!1!==e.createErrors?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { pattern: ",a+=h?""+t:""+e.util.toQuotedString(i),a+=" } ",!1!==e.opts.messages&&(a+=" , message: 'should match pattern \"",a+=h?"' + "+t+" + '":""+e.util.escapeQuotes(i),a+="\"' "),e.opts.verbose&&(a+=" , schema: ",a+=h?"validate.schema"+n:""+e.util.toQuotedString(i),a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var p=a;return a=f.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",c&&(a+=" else { "),a}},{}],33:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="errs__"+a,h=e.util.copy(e),d="";h.level++;var f="valid"+h.level,p="key"+a,m="idx"+a,v=h.dataLevel=e.dataLevel+1,y="data"+v,g="dataProperties"+a,P=Object.keys(o||{}),E=e.schema.patternProperties||{},w=Object.keys(E),b=e.schema.additionalProperties,S=P.length||w.length,_=!1===b,F="object"==typeof b&&Object.keys(b).length,x=e.opts.removeAdditional,$=_||F||x,R=e.opts.ownProperties,D=e.baseId,j=e.schema.required;if(j&&(!e.opts.$data||!j.$data)&&j.length<e.opts.loopRequired)var O=e.util.toHash(j);if(t+="var "+u+" = errors;var "+f+" = true;",R&&(t+=" var "+g+" = undefined;"),$){if(t+=R?" "+g+" = "+g+" || Object.keys("+c+"); for (var "+m+"=0; "+m+"<"+g+".length; "+m+"++) { var "+p+" = "+g+"["+m+"]; ":" for (var "+p+" in "+c+") { ",S){if(t+=" var isAdditional"+a+" = !(false ",P.length)if(8<P.length)t+=" || validate.schema"+i+".hasOwnProperty("+p+") ";else{var I=P;if(I)for(var A=-1,C=I.length-1;A<C;)B=I[A+=1],t+=" || "+p+" == "+e.util.toQuotedString(B)+" "}if(w.length){var k=w;if(k)for(var L=-1,z=k.length-1;L<z;)ae=k[L+=1],t+=" || "+e.usePattern(ae)+".test("+p+") "}t+=" ); if (isAdditional"+a+") { "}if("all"==x)t+=" delete "+c+"["+p+"]; ";else{var T=e.errorPath,q="' + "+p+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers)),_)if(x)t+=" delete "+c+"["+p+"]; ";else{var N=n;n=e.errSchemaPath+"/additionalProperties",(ee=ee||[]).push(t+=" "+f+" = false; "),t="",!1!==e.createErrors?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { additionalProperty: '"+q+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is an invalid additional property":"should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var Q=t;t=ee.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+Q+"]); ":" validate.errors = ["+Q+"]; return false; ":" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n=N,l&&(t+=" break; ")}else if(F)if("failing"==x){t+=" var "+u+" = errors; ";var U=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=b,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers);var V=c+"["+p+"]";h.dataPathArr[v]=p;var H=e.validate(h);h.baseId=D,e.util.varOccurences(H,y)<2?t+=" "+e.util.varReplace(H,y,V)+" ":t+=" var "+y+" = "+V+"; "+H+" ",t+=" if (!"+f+") { errors = "+u+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+p+"]; } ",e.compositeRule=h.compositeRule=U}else{h.schema=b,h.schemaPath=e.schemaPath+".additionalProperties",h.errSchemaPath=e.errSchemaPath+"/additionalProperties",h.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers);V=c+"["+p+"]";h.dataPathArr[v]=p;H=e.validate(h);h.baseId=D,e.util.varOccurences(H,y)<2?t+=" "+e.util.varReplace(H,y,V)+" ":t+=" var "+y+" = "+V+"; "+H+" ",l&&(t+=" if (!"+f+") break; ")}e.errorPath=T}S&&(t+=" } "),t+=" } ",l&&(t+=" if ("+f+") { ",d+="}")}var K=e.opts.useDefaults&&!e.compositeRule;if(P.length){var M=P;if(M)for(var B,J=-1,Z=M.length-1;J<Z;){var G=o[B=M[J+=1]];if(e.opts.strictKeywords?"object"==typeof G&&0<Object.keys(G).length:e.util.schemaHasRules(G,e.RULES.all)){var Y=e.util.getProperty(B),W=(V=c+Y,K&&void 0!==G.default);h.schema=G,h.schemaPath=i+Y,h.errSchemaPath=n+"/"+e.util.escapeFragment(B),h.errorPath=e.util.getPath(e.errorPath,B,e.opts.jsonPointers),h.dataPathArr[v]=e.util.toQuotedString(B);H=e.validate(h);if(h.baseId=D,e.util.varOccurences(H,y)<2){H=e.util.varReplace(H,y,V);var X=V}else{X=y;t+=" var "+y+" = "+V+"; "}if(W)t+=" "+H+" ";else{if(O&&O[B]){t+=" if ( "+X+" === undefined ",R&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(B)+"') "),t+=") { "+f+" = false; ";T=e.errorPath,N=n;var ee,re=e.util.escapeQuotes(B);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,B,e.opts.jsonPointers)),n=e.errSchemaPath+"/required",(ee=ee||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { missingProperty: '"+re+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+re+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";Q=t;t=ee.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+Q+"]); ":" validate.errors = ["+Q+"]; return false; ":" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n=N,e.errorPath=T,t+=" } else { "}else l?(t+=" if ( "+X+" === undefined ",R&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(B)+"') "),t+=") { "+f+" = true; } else { "):(t+=" if ("+X+" !== undefined ",R&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(B)+"') "),t+=" ) { ");t+=" "+H+" } "}}l&&(t+=" if ("+f+") { ",d+="}")}}if(w.length){var te=w;if(te)for(var ae,se=-1,oe=te.length-1;se<oe;){G=E[ae=te[se+=1]];if(e.opts.strictKeywords?"object"==typeof G&&0<Object.keys(G).length:e.util.schemaHasRules(G,e.RULES.all)){h.schema=G,h.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ae),h.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ae),t+=R?" "+g+" = "+g+" || Object.keys("+c+"); for (var "+m+"=0; "+m+"<"+g+".length; "+m+"++) { var "+p+" = "+g+"["+m+"]; ":" for (var "+p+" in "+c+") { ",t+=" if ("+e.usePattern(ae)+".test("+p+")) { ",h.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers);V=c+"["+p+"]";h.dataPathArr[v]=p;H=e.validate(h);h.baseId=D,e.util.varOccurences(H,y)<2?t+=" "+e.util.varReplace(H,y,V)+" ":t+=" var "+y+" = "+V+"; "+H+" ",l&&(t+=" if (!"+f+") break; "),t+=" } ",l&&(t+=" else "+f+" = true; "),t+=" } ",l&&(t+=" if ("+f+") { ",d+="}")}}}return l&&(t+=" "+d+" if ("+u+" == errors) {"),t=e.util.cleanUpCode(t)}},{}],34:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="errs__"+a,h=e.util.copy(e);h.level++;var d="valid"+h.level;if(t+="var "+u+" = errors;",e.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=i,h.errSchemaPath=n;var f="key"+a,p="idx"+a,m="i"+a,v="' + "+f+" + '",y="data"+(h.dataLevel=e.dataLevel+1),g="dataProperties"+a,P=e.opts.ownProperties,E=e.baseId;P&&(t+=" var "+g+" = undefined; "),t+=P?" "+g+" = "+g+" || Object.keys("+c+"); for (var "+p+"=0; "+p+"<"+g+".length; "+p+"++) { var "+f+" = "+g+"["+p+"]; ":" for (var "+f+" in "+c+") { ",t+=" var startErrs"+a+" = errors; ";var w=f,b=e.compositeRule;e.compositeRule=h.compositeRule=!0;var S=e.validate(h);h.baseId=E,e.util.varOccurences(S,y)<2?t+=" "+e.util.varReplace(S,y,w)+" ":t+=" var "+y+" = "+w+"; "+S+" ",e.compositeRule=h.compositeRule=b,t+=" if (!"+d+") { for (var "+m+"=startErrs"+a+"; "+m+"<errors; "+m+"++) { vErrors["+m+"].propertyName = "+f+"; } var err = ",!1!==e.createErrors?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { propertyName: '"+v+"' } ",!1!==e.opts.messages&&(t+=" , message: 'property name \\'"+v+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&l&&(t+=e.async?" throw new ValidationError(vErrors); ":" validate.errors = vErrors; return false; "),l&&(t+=" break; "),t+=" } }"}return l&&(t+=" if ("+u+" == errors) {"),t=e.util.cleanUpCode(t)}},{}],35:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a,s=" ",o=e.dataLevel,i=e.schema[r],n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(o||""),u="valid"+e.level;if("#"==i||"#/"==i)a=e.isRoot?(t=e.async,"validate"):(t=!0===e.root.schema.$async,"root.refVal[0]");else{var h=e.resolveRef(e.baseId,i,e.isRoot);if(void 0===h){var d=e.MissingRefError.message(e.baseId,i);if("fail"==e.opts.missingRefs){e.logger.error(d),(v=v||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { ref: '"+e.util.escapeQuotes(i)+"' } ",!1!==e.opts.messages&&(s+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(i)+"' "),e.opts.verbose&&(s+=" , schema: "+e.util.toQuotedString(i)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),s+=" } "):s+=" {} ";var f=s;s=v.pop(),s+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+f+"]); ":" validate.errors = ["+f+"]; return false; ":" var err = "+f+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(s+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,i,d);e.logger.warn(d),l&&(s+=" if (true) { ")}}else if(h.inline){var p=e.util.copy(e);p.level++;var m="valid"+p.level;p.schema=h.schema,p.schemaPath="",p.errSchemaPath=i,s+=" "+e.validate(p).replace(/validate\.schema/g,h.code)+" ",l&&(s+=" if ("+m+") { ")}else t=!0===h.$async||e.async&&!1!==h.$async,a=h.code}if(a){var v;(v=v||[]).push(s),s="",s+=e.opts.passContext?" "+a+".call(this, ":" "+a+"( ",s+=" "+c+", (dataPath || '')",'""'!=e.errorPath&&(s+=" + "+e.errorPath);var y=s+=" , "+(o?"data"+(o-1||""):"parentData")+" , "+(o?e.dataPathArr[o]:"parentDataProperty")+", rootData) ";if(s=v.pop(),t){if(!e.async)throw new Error("async schema referenced by sync schema");l&&(s+=" var "+u+"; "),s+=" try { await "+y+"; ",l&&(s+=" "+u+" = true; "),s+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",l&&(s+=" "+u+" = false; "),s+=" } ",l&&(s+=" if ("+u+") { ")}else s+=" if (!"+y+") { if (vErrors === null) vErrors = "+a+".errors; else vErrors = vErrors.concat("+a+".errors); errors = vErrors.length; } ",l&&(s+=" else { ")}return s}},{}],36:[function(e,r,t){"use strict";r.exports=function(e,r){var t=" ",a=e.level,s=e.dataLevel,o=e.schema[r],i=e.schemaPath+e.util.getProperty(r),n=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,c="data"+(s||""),u="valid"+a,h=e.opts.$data&&o&&o.$data;h&&(t+=" var schema"+a+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ");var d="schema"+a;if(!h)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var f=[],p=o;if(p)for(var m,v=-1,y=p.length-1;v<y;){m=p[v+=1];var g=e.schema.properties[m];g&&(e.opts.strictKeywords?"object"==typeof g&&0<Object.keys(g).length:e.util.schemaHasRules(g,e.RULES.all))||(f[f.length]=m)}}else f=o;if(h||f.length){var P=e.errorPath,E=h||e.opts.loopRequired<=f.length,w=e.opts.ownProperties;if(l)if(t+=" var missing"+a+"; ",E){h||(t+=" var "+d+" = validate.schema"+i+"; ");var b="' + "+(R="schema"+a+"["+(F="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,R,e.opts.jsonPointers)),t+=" var "+u+" = true; ",h&&(t+=" if (schema"+a+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+a+")) "+u+" = false; else {"),t+=" for (var "+F+" = 0; "+F+" < "+d+".length; "+F+"++) { "+u+" = "+c+"["+d+"["+F+"]] !== undefined ",w&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", "+d+"["+F+"]) "),t+="; if (!"+u+") break; } ",h&&(t+=" } "),($=$||[]).push(t+=" if (!"+u+") { "),t="",!1!==e.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { missingProperty: '"+b+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+b+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var S=t;t=$.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+S+"]); ":" validate.errors = ["+S+"]; return false; ":" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var _=f;if(_)for(var F=-1,x=_.length-1;F<x;){j=_[F+=1],F&&(t+=" || "),t+=" ( ( "+(C=c+(A=e.util.getProperty(j)))+" === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?j:A)+") ) "}t+=") { ";var $;b="' + "+(R="missing"+a)+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(P,R,!0):P+" + "+R),($=$||[]).push(t),t="",!1!==e.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { missingProperty: '"+b+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+b+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";S=t;t=$.pop(),t+=!e.compositeRule&&l?e.async?" throw new ValidationError(["+S+"]); ":" validate.errors = ["+S+"]; return false; ":" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(E){h||(t+=" var "+d+" = validate.schema"+i+"; ");var R;b="' + "+(R="schema"+a+"["+(F="i"+a)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(P,R,e.opts.jsonPointers)),h&&(t+=" if ("+d+" && !Array.isArray("+d+")) { var err = ",!1!==e.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { missingProperty: '"+b+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+b+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+d+" !== undefined) { "),t+=" for (var "+F+" = 0; "+F+" < "+d+".length; "+F+"++) { if ("+c+"["+d+"["+F+"]] === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+d+"["+F+"]) "),t+=") { var err = ",!1!==e.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { missingProperty: '"+b+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+b+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(t+=" } ")}else{var D=f;if(D)for(var j,O=-1,I=D.length-1;O<I;){j=D[O+=1];var A=e.util.getProperty(j),C=(b=e.util.escapeQuotes(j),c+A);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,j,e.opts.jsonPointers)),t+=" if ( "+C+" === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(j)+"') "),t+=") { var err = ",!1!==e.createErrors?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(n)+" , params: { missingProperty: '"+b+"' } ",!1!==e.opts.messages&&(t+=" , message: '",t+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+b+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=P}else l&&(t+=" if (true) {");return t}},{}],37:[function(e,r,t){"use strict";r.exports=function(e,r){var t,a=" ",s=e.level,o=e.dataLevel,i=e.schema[r],n=e.schemaPath+e.util.getProperty(r),l=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,u="data"+(o||""),h="valid"+s,d=e.opts.$data&&i&&i.$data;if(t=d?(a+=" var schema"+s+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ","schema"+s):i,(i||d)&&!1!==e.opts.uniqueItems){d&&(a+=" var "+h+"; if ("+t+" === false || "+t+" === undefined) "+h+" = true; else if (typeof "+t+" != 'boolean') "+h+" = false; else { "),a+=" var i = "+u+".length , "+h+" = true , j; if (i > 1) { ";var f=e.schema.items&&e.schema.items.type,p=Array.isArray(f);if(!f||"object"==f||"array"==f||p&&(0<=f.indexOf("object")||0<=f.indexOf("array")))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+h+" = false; break outer; } } } ";else a+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ",a+=" if ("+e.util["checkDataType"+(p?"s":"")](f,"item",!0)+") continue; ",p&&(a+=" if (typeof item == 'string') item = '\"' + item; "),a+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ";a+=" } ",d&&(a+=" } ");var m=m||[];m.push(a+=" if (!"+h+") { "),a="",!1!==e.createErrors?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(a+=" , schema: ",a+=d?"validate.schema"+n:""+i,a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),a+=" } "):a+=" {} ";var v=a;a=m.pop(),a+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+v+"]); ":" validate.errors = ["+v+"]; return false; ":" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",c&&(a+=" else { ")}else c&&(a+=" if (true) { ");return a}},{}],38:[function(e,r,t){"use strict";r.exports=function(a,e){var r="",t=!0===a.schema.$async,s=a.util.schemaHasRulesExcept(a.schema,a.RULES.all,"$ref"),o=a.self._getId(a.schema);if(a.opts.strictKeywords){var i=a.util.schemaUnknownRules(a.schema,a.RULES.keywords);if(i){var n="unknown keyword: "+i;if("log"!==a.opts.strictKeywords)throw new Error(n);a.logger.warn(n)}}if(a.isTop&&(r+=" var validate = ",t&&(a.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(a.opts.sourceCode||a.opts.processCode)&&(r+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof a.schema||!s&&!a.schema.$ref){var l=a.level,c=a.dataLevel,u=a.schema[e="false schema"],h=a.schemaPath+a.util.getProperty(e),d=a.errSchemaPath+"/"+e,f=!a.opts.allErrors,p="data"+(c||""),m="valid"+l;if(!1===a.schema){a.isTop?f=!0:r+=" var "+m+" = false; ",(Z=Z||[]).push(r),r="",!1!==a.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: {} ",!1!==a.opts.messages&&(r+=" , message: 'boolean schema is false' "),a.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+a.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";var v=r;r=Z.pop(),r+=!a.compositeRule&&f?a.async?" throw new ValidationError(["+v+"]); ":" validate.errors = ["+v+"]; return false; ":" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else r+=a.isTop?t?" return data; ":" validate.errors = null; return true; ":" var "+m+" = true; ";return a.isTop&&(r+=" }; return validate; "),r}if(a.isTop){var y=a.isTop;l=a.level=0,c=a.dataLevel=0,p="data";if(a.rootId=a.resolve.fullPath(a.self._getId(a.root.schema)),a.baseId=a.baseId||a.rootId,delete a.isTop,a.dataPathArr=[void 0],void 0!==a.schema.default&&a.opts.useDefaults&&a.opts.strictDefaults){var g="default is ignored in the schema root";if("log"!==a.opts.strictDefaults)throw new Error(g);a.logger.warn(g)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{l=a.level,p="data"+((c=a.dataLevel)||"");if(o&&(a.baseId=a.resolve.url(a.baseId,o)),t&&!a.async)throw new Error("async schema in sync schema");r+=" var errs_"+l+" = errors;"}m="valid"+l,f=!a.opts.allErrors;var P="",E="",w=a.schema.type,b=Array.isArray(w);if(w&&a.opts.nullable&&!0===a.schema.nullable&&(b?-1==w.indexOf("null")&&(w=w.concat("null")):"null"!=w&&(w=[w,"null"],b=!0)),b&&1==w.length&&(w=w[0],b=!1),a.schema.$ref&&s){if("fail"==a.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+a.errSchemaPath+'" (see option extendRefs)');!0!==a.opts.extendRefs&&(s=!1,a.logger.warn('$ref: keywords ignored in schema at path "'+a.errSchemaPath+'"'))}if(a.schema.$comment&&a.opts.$comment&&(r+=" "+a.RULES.all.$comment.code(a,"$comment")),w){if(a.opts.coerceTypes)var S=a.util.coerceToTypes(a.opts.coerceTypes,w);var _=a.RULES.types[w];if(S||b||!0===_||_&&!G(_)){h=a.schemaPath+".type",d=a.errSchemaPath+"/type",h=a.schemaPath+".type",d=a.errSchemaPath+"/type";if(r+=" if ("+a.util[b?"checkDataTypes":"checkDataType"](w,p,!0)+") { ",S){var F="dataType"+l,x="coerced"+l;r+=" var "+F+" = typeof "+p+"; ","array"==a.opts.coerceTypes&&(r+=" if ("+F+" == 'object' && Array.isArray("+p+")) "+F+" = 'array'; "),r+=" var "+x+" = undefined; ";var $="",R=S;if(R)for(var D,j=-1,O=R.length-1;j<O;)D=R[j+=1],j&&(r+=" if ("+x+" === undefined) { ",$+="}"),"array"==a.opts.coerceTypes&&"array"!=D&&(r+=" if ("+F+" == 'array' && "+p+".length == 1) { "+x+" = "+p+" = "+p+"[0]; "+F+" = typeof "+p+"; } "),"string"==D?r+=" if ("+F+" == 'number' || "+F+" == 'boolean') "+x+" = '' + "+p+"; else if ("+p+" === null) "+x+" = ''; ":"number"==D||"integer"==D?(r+=" if ("+F+" == 'boolean' || "+p+" === null || ("+F+" == 'string' && "+p+" && "+p+" == +"+p+" ","integer"==D&&(r+=" && !("+p+" % 1)"),r+=")) "+x+" = +"+p+"; "):"boolean"==D?r+=" if ("+p+" === 'false' || "+p+" === 0 || "+p+" === null) "+x+" = false; else if ("+p+" === 'true' || "+p+" === 1) "+x+" = true; ":"null"==D?r+=" if ("+p+" === '' || "+p+" === 0 || "+p+" === false) "+x+" = null; ":"array"==a.opts.coerceTypes&&"array"==D&&(r+=" if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+p+" == null) "+x+" = ["+p+"]; ");(Z=Z||[]).push(r+=" "+$+" if ("+x+" === undefined) { "),r="",!1!==a.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { type: '",r+=b?""+w.join(","):""+w,r+="' } ",!1!==a.opts.messages&&(r+=" , message: 'should be ",r+=b?""+w.join(","):""+w,r+="' "),a.opts.verbose&&(r+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";v=r;r=Z.pop(),r+=!a.compositeRule&&f?a.async?" throw new ValidationError(["+v+"]); ":" validate.errors = ["+v+"]; return false; ":" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ";var I=c?"data"+(c-1||""):"parentData";r+=" "+p+" = "+x+"; ",c||(r+="if ("+I+" !== undefined)"),r+=" "+I+"["+(c?a.dataPathArr[c]:"parentDataProperty")+"] = "+x+"; } "}else{(Z=Z||[]).push(r),r="",!1!==a.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { type: '",r+=b?""+w.join(","):""+w,r+="' } ",!1!==a.opts.messages&&(r+=" , message: 'should be ",r+=b?""+w.join(","):""+w,r+="' "),a.opts.verbose&&(r+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";v=r;r=Z.pop(),r+=!a.compositeRule&&f?a.async?" throw new ValidationError(["+v+"]); ":" validate.errors = ["+v+"]; return false; ":" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(a.schema.$ref&&!s)r+=" "+a.RULES.all.$ref.code(a,"$ref")+" ",f&&(r+=" } if (errors === ",r+=y?"0":"errs_"+l,r+=") { ",E+="}");else{var A=a.RULES;if(A)for(var C=-1,k=A.length-1;C<k;)if(G(_=A[C+=1])){if(_.type&&(r+=" if ("+a.util.checkDataType(_.type,p)+") { "),a.opts.useDefaults)if("object"==_.type&&a.schema.properties){u=a.schema.properties;var L=Object.keys(u);if(L)for(var z,T=-1,q=L.length-1;T<q;){if(void 0!==(U=u[z=L[T+=1]]).default){var N=p+a.util.getProperty(z);if(a.compositeRule){if(a.opts.strictDefaults){g="default is ignored for: "+N;if("log"!==a.opts.strictDefaults)throw new Error(g);a.logger.warn(g)}}else r+=" if ("+N+" === undefined ","empty"==a.opts.useDefaults&&(r+=" || "+N+" === null || "+N+" === '' "),r+=" ) "+N+" = ",r+="shared"==a.opts.useDefaults?" "+a.useDefault(U.default)+" ":" "+JSON.stringify(U.default)+" ",r+="; "}}}else if("array"==_.type&&Array.isArray(a.schema.items)){var Q=a.schema.items;if(Q){j=-1;for(var U,V=Q.length-1;j<V;)if(void 0!==(U=Q[j+=1]).default){N=p+"["+j+"]";if(a.compositeRule){if(a.opts.strictDefaults){g="default is ignored for: "+N;if("log"!==a.opts.strictDefaults)throw new Error(g);a.logger.warn(g)}}else r+=" if ("+N+" === undefined ","empty"==a.opts.useDefaults&&(r+=" || "+N+" === null || "+N+" === '' "),r+=" ) "+N+" = ",r+="shared"==a.opts.useDefaults?" "+a.useDefault(U.default)+" ":" "+JSON.stringify(U.default)+" ",r+="; "}}}var H=_.rules;if(H)for(var K,M=-1,B=H.length-1;M<B;)if(Y(K=H[M+=1])){var J=K.code(a,K.keyword,_.type);J&&(r+=" "+J+" ",f&&(P+="}"))}if(f&&(r+=" "+P+" ",P=""),_.type&&(r+=" } ",w&&w===_.type&&!S)){var Z;h=a.schemaPath+".type",d=a.errSchemaPath+"/type";(Z=Z||[]).push(r+=" else { "),r="",!1!==a.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+a.errorPath+" , schemaPath: "+a.util.toQuotedString(d)+" , params: { type: '",r+=b?""+w.join(","):""+w,r+="' } ",!1!==a.opts.messages&&(r+=" , message: 'should be ",r+=b?""+w.join(","):""+w,r+="' "),a.opts.verbose&&(r+=" , schema: validate.schema"+h+" , parentSchema: validate.schema"+a.schemaPath+" , data: "+p+" "),r+=" } "):r+=" {} ";v=r;r=Z.pop(),r+=!a.compositeRule&&f?a.async?" throw new ValidationError(["+v+"]); ":" validate.errors = ["+v+"]; return false; ":" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}f&&(r+=" if (errors === ",r+=y?"0":"errs_"+l,r+=") { ",E+="}")}}function G(e){for(var r=e.rules,t=0;t<r.length;t++)if(Y(r[t]))return 1}function Y(e){return void 0!==a.schema[e.keyword]||e.implements&&function(e){for(var r=e.implements,t=0;t<r.length;t++)if(void 0!==a.schema[r[t]])return!0}(e)}return f&&(r+=" "+E+" "),y?(t?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+m+" = errors === errs_"+l+";",r=a.util.cleanUpCode(r),y&&(r=a.util.finalCleanUpCode(r,t)),r}},{}],39:[function(e,r,t){"use strict";var i=/^[a-z_$][a-z0-9_$-]*$/i,l=e("./dotjs/custom"),a=e("./definition_schema");function s(e,r){s.errors=null;var t=this._validateKeyword=this._validateKeyword||this.compile(a,!0);if(t(e))return!0;if(s.errors=t.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(t.errors));return!1}r.exports={add:function(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!i.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var t=r.type;if(Array.isArray(t))for(var a=0;a<t.length;a++)o(e,t[a],r);else o(e,t,r);var s=r.metaSchema;s&&(r.$data&&this._opts.$data&&(s={anyOf:[s,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(s,!0))}function o(e,r,t){for(var a,s=0;s<n.length;s++){var o=n[s];if(o.type==r){a=o;break}}a||n.push(a={type:r,rules:[]});var i={keyword:e,definition:t,custom:!0,code:l,implements:t.implements};a.rules.push(i),n.custom[e]=i}return n.keywords[e]=n.all[e]=!0,this},get:function(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1},remove:function(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var t=0;t<r.length;t++)for(var a=r[t].rules,s=0;s<a.length;s++)if(a[s].keyword==e){a.splice(s,1);break}return this},validate:s}},{"./definition_schema":12,"./dotjs/custom":22}],40:[function(e,r,t){r.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}},{}],41:[function(e,r,t){r.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}},{}],42:[function(e,r,t){"use strict";r.exports=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var a,s,o;if(Array.isArray(r)){if((a=r.length)!=t.length)return!1;for(s=a;0!=s--;)if(!e(r[s],t[s]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((a=(o=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(s=a;0!=s--;)if(!Object.prototype.hasOwnProperty.call(t,o[s]))return!1;for(s=a;0!=s--;){var i=o[s];if(!e(r[i],t[i]))return!1}return!0}return r!=r&&t!=t}},{}],43:[function(e,r,t){"use strict";r.exports=function(e,r){"function"==typeof(r=r||{})&&(r={cmp:r});var a,l="boolean"==typeof r.cycles&&r.cycles,c=r.cmp&&(a=r.cmp,function(t){return function(e,r){return a({key:e,value:t[e]},{key:r,value:t[r]})}}),u=[];return function e(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!=typeof r)return JSON.stringify(r);var t,a;if(Array.isArray(r)){for(a="[",t=0;t<r.length;t++)t&&(a+=","),a+=e(r[t])||"null";return a+"]"}if(null===r)return"null";if(-1!==u.indexOf(r)){if(l)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=u.push(r)-1,o=Object.keys(r).sort(c&&c(r));for(a="",t=0;t<o.length;t++){var i=o[t],n=e(r[i]);n&&(a&&(a+=","),a+=JSON.stringify(i)+":"+n)}return u.splice(s,1),"{"+a+"}"}}(e)}},{}],44:[function(e,r,t){"use strict";var m=r.exports=function(e,r,t){"function"==typeof r&&(t=r,r={}),function e(r,t,a,s,o,i,n,l,c,u){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var h in t(s,o,i,n,l,c,u),s){var d=s[h];if(Array.isArray(d)){if(h in m.arrayKeywords)for(var f=0;f<d.length;f++)e(r,t,a,d[f],o+"/"+h+"/"+f,i,o,h,s,f)}else if(h in m.propsKeywords){if(d&&"object"==typeof d)for(var p in d)e(r,t,a,d[p],o+"/"+h+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),i,o,h,s,p)}else(h in m.keywords||r.allKeys&&!(h in m.skipKeywords))&&e(r,t,a,d,o+"/"+h,i,o,h,s)}a(s,o,i,n,l,c,u)}}(r,"function"==typeof(t=r.cb||t)?t:t.pre||function(){},t.post||function(){},e,"",e)};m.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},m.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},m.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},m.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},{}],45:[function(e,r,t){var a;a=this,function(e){"use strict";function J(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];if(1<r.length){r[0]=r[0].slice(0,-1);for(var a=r.length-1,s=1;s<a;++s)r[s]=r[s].slice(1,-1);return r[a]=r[a].slice(1),r.join("")}return r[0]}function Z(e){return"(?:"+e+")"}function a(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function p(e){return e.toUpperCase()}function r(e){var r="[A-Za-z]",t="[0-9]",a=J(t,"[A-Fa-f]"),s=Z(Z("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+Z("%[89A-Fa-f]"+a+"%"+a+a)+"|"+Z("%"+a+a)),o="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",i=J("[\\:\\/\\?\\#\\[\\]\\@]",o),n=e?"[\\uE000-\\uF8FF]":"[]",l=J(r,t,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),c=Z(r+J(r,t,"[\\+\\-\\.]")+"*"),u=Z(Z(s+"|"+J(l,o,"[\\:]"))+"*"),h=(Z("(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9][0-9])|(?:[1-9][0-9])|"+t),Z("(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9][0-9])|(?:0?[1-9][0-9])|0?0?"+t)),d=Z(h+"\\."+h+"\\."+h+"\\."+h),f=Z(a+"{1,4}"),p=Z(Z(f+"\\:"+f)+"|"+d),m=Z(Z(f+"\\:")+"{6}"+p),v=Z("\\:\\:"+Z(f+"\\:")+"{5}"+p),y=Z(Z(f)+"?\\:\\:"+Z(f+"\\:")+"{4}"+p),g=Z(Z(Z(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+Z(f+"\\:")+"{3}"+p),P=Z(Z(Z(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+Z(f+"\\:")+"{2}"+p),E=Z(Z(Z(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+p),w=Z(Z(Z(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+p),b=Z(Z(Z(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),S=Z(Z(Z(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),_=Z([m,v,y,g,P,E,w,b,S].join("|")),F=Z(Z(l+"|"+s)+"+"),x=(Z(_+"\\%25"+F),Z(_+Z("\\%25|\\%(?!"+a+"{2})")+F)),$=Z("[vV]"+a+"+\\."+J(l,o,"[\\:]")+"+"),R=Z("\\["+Z(x+"|"+_+"|"+$)+"\\]"),D=Z(Z(s+"|"+J(l,o))+"*"),j=Z(R+"|"+d+"(?!"+D+")|"+D),O=Z(t+"*"),I=Z(Z(u+"@")+"?"+j+Z("\\:"+O)+"?"),A=Z(s+"|"+J(l,o,"[\\:\\@]")),C=Z(A+"*"),k=Z(A+"+"),L=Z(Z(s+"|"+J(l,o,"[\\@]"))+"+"),z=Z(Z("\\/"+C)+"*"),T=Z("\\/"+Z(k+z)+"?"),q=Z(L+z),N=Z(k+z),Q="(?!"+A+")",U=(Z(z+"|"+T+"|"+q+"|"+N+"|"+Q),Z(Z(A+"|"+J("[\\/\\?]",n))+"*")),V=Z(Z(A+"|[\\/\\?]")+"*"),H=Z(Z("\\/\\/"+I+z)+"|"+T+"|"+N+"|"+Q),K=Z(c+"\\:"+H+Z("\\?"+U)+"?"+Z("\\#"+V)+"?"),M=Z(Z("\\/\\/"+I+z)+"|"+T+"|"+q+"|"+Q),B=Z(M+Z("\\?"+U)+"?"+Z("\\#"+V)+"?");Z(K+"|"+B),Z(c+"\\:"+H+Z("\\?"+U)+"?"),Z(Z("\\/\\/("+Z("("+u+")@")+"?("+j+")"+Z("\\:("+O+")")+"?)")+"?("+z+"|"+T+"|"+N+"|"+Q+")"),Z("\\?("+U+")"),Z("\\#("+V+")"),Z(Z("\\/\\/("+Z("("+u+")@")+"?("+j+")"+Z("\\:("+O+")")+"?)")+"?("+z+"|"+T+"|"+q+"|"+Q+")"),Z("\\?("+U+")"),Z("\\#("+V+")"),Z(Z("\\/\\/("+Z("("+u+")@")+"?("+j+")"+Z("\\:("+O+")")+"?)")+"?("+z+"|"+T+"|"+N+"|"+Q+")"),Z("\\?("+U+")"),Z("\\#("+V+")"),Z("("+u+")@"),Z("\\:("+O+")");return{NOT_SCHEME:new RegExp(J("[^]",r,t,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(J("[^\\%\\:]",l,o),"g"),NOT_HOST:new RegExp(J("[^\\%\\[\\]\\:]",l,o),"g"),NOT_PATH:new RegExp(J("[^\\%\\/\\:\\@]",l,o),"g"),NOT_PATH_NOSCHEME:new RegExp(J("[^\\%\\/\\@]",l,o),"g"),NOT_QUERY:new RegExp(J("[^\\%]",l,o,"[\\:\\@\\/\\?]",n),"g"),NOT_FRAGMENT:new RegExp(J("[^\\%]",l,o,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(J("[^]",l,o),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(J("[^\\%]",l,i),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+_+")"+Z(Z("\\%25|\\%(?!"+a+"{2})")+"("+F+")")+"?\\]?$")}}var u=r(!1),h=r(!0),w=function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,r){var t=[],a=!0,s=!1,o=void 0;try{for(var i,n=e[Symbol.iterator]();!(a=(i=n.next()).done)&&(t.push(i.value),!r||t.length!==r);a=!0);}catch(e){s=!0,o=e}finally{try{!a&&n.return&&n.return()}finally{if(s)throw o}}return t}(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")},A=2147483647,t=/^xn--/,s=/[^\0-\x7E]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,i={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=Math.floor,k=String.fromCharCode;function L(e){throw new RangeError(i[e])}function n(e,r){var t=e.split("@"),a="";return 1<t.length&&(a=t[0]+"@",e=t[1]),a+function(e,r){for(var t=[],a=e.length;a--;)t[a]=r(e[a]);return t}((e=e.replace(o,".")).split("."),r).join(".")}function z(e){for(var r=[],t=0,a=e.length;t<a;){var s=e.charCodeAt(t++);if(55296<=s&&s<=56319&&t<a){var o=e.charCodeAt(t++);56320==(64512&o)?r.push(((1023&s)<<10)+(1023&o)+65536):(r.push(s),t--)}else r.push(s)}return r}function T(e,r){return e+22+75*(e<26)-((0!=r)<<5)}function q(e,r,t){var a=0;for(e=t?C(e/700):e>>1,e+=C(e/r);455<e;a+=36)e=C(e/35);return C(a+36*e/(e+38))}function l(e){var r,t=[],a=e.length,s=0,o=128,i=72,n=e.lastIndexOf("-");n<0&&(n=0);for(var l=0;l<n;++l)128<=e.charCodeAt(l)&&L("not-basic"),t.push(e.charCodeAt(l));for(var c=0<n?n+1:0;c<a;){for(var u=s,h=1,d=36;;d+=36){a<=c&&L("invalid-input");var f=(r=e.charCodeAt(c++))-48<10?r-22:r-65<26?r-65:r-97<26?r-97:36;(36<=f||f>C((A-s)/h))&&L("overflow"),s+=f*h;var p=d<=i?1:i+26<=d?26:d-i;if(f<p)break;var m=36-p;h>C(A/m)&&L("overflow"),h*=m}var v=t.length+1;i=q(s-u,v,0==u),C(s/v)>A-o&&L("overflow"),o+=C(s/v),s%=v,t.splice(s++,0,o)}return String.fromCodePoint.apply(String,t)}function c(e){var r=[],t=(e=z(e)).length,a=128,s=0,o=72,i=!0,n=!1,l=void 0;try{for(var c,u=e[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var h=c.value;h<128&&r.push(k(h))}}catch(e){n=!0,l=e}finally{try{!i&&u.return&&u.return()}finally{if(n)throw l}}var d=r.length,f=d;for(d&&r.push("-");f<t;){var p=A,m=!0,v=!1,y=void 0;try{for(var g,P=e[Symbol.iterator]();!(m=(g=P.next()).done);m=!0){var E=g.value;a<=E&&E<p&&(p=E)}}catch(e){v=!0,y=e}finally{try{!m&&P.return&&P.return()}finally{if(v)throw y}}var w=f+1;p-a>C((A-s)/w)&&L("overflow"),s+=(p-a)*w,a=p;var b=!0,S=!1,_=void 0;try{for(var F,x=e[Symbol.iterator]();!(b=(F=x.next()).done);b=!0){var $=F.value;if($<a&&++s>A&&L("overflow"),$==a){for(var R=s,D=36;;D+=36){var j=D<=o?1:o+26<=D?26:D-o;if(R<j)break;var O=R-j,I=36-j;r.push(k(T(j+O%I,0))),R=C(O/I)}r.push(k(T(R,0))),o=q(s,w,f==d),s=0,++f}}}catch(e){S=!0,_=e}finally{try{!b&&x.return&&x.return()}finally{if(S)throw _}}++s,++a}return r.join("")}var v={version:"2.1.0",ucs2:{decode:z,encode:function(e){return String.fromCodePoint.apply(String,function(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}return Array.from(e)}(e))}},decode:l,encode:c,toASCII:function(e){return n(e,function(e){return s.test(e)?"xn--"+c(e):e})},toUnicode:function(e){return n(e,function(e){return t.test(e)?l(e.slice(4).toLowerCase()):e})}},d={};function m(e){var r=e.charCodeAt(0);return r<16?"%0"+r.toString(16).toUpperCase():r<128?"%"+r.toString(16).toUpperCase():r<2048?"%"+(r>>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function f(e){for(var r="",t=0,a=e.length;t<a;){var s=parseInt(e.substr(t+1,2),16);if(s<128)r+=String.fromCharCode(s),t+=3;else if(194<=s&&s<224){if(6<=a-t){var o=parseInt(e.substr(t+4,2),16);r+=String.fromCharCode((31&s)<<6|63&o)}else r+=e.substr(t,6);t+=6}else if(224<=s){if(9<=a-t){var i=parseInt(e.substr(t+4,2),16),n=parseInt(e.substr(t+7,2),16);r+=String.fromCharCode((15&s)<<12|(63&i)<<6|63&n)}else r+=e.substr(t,9);t+=9}else r+=e.substr(t,3),t+=3}return r}function y(e,t){function r(e){var r=f(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,m).replace(t.PCT_ENCODED,p)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,m).replace(t.PCT_ENCODED,p)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,m).replace(t.PCT_ENCODED,p)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,m).replace(t.PCT_ENCODED,p)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,m).replace(t.PCT_ENCODED,p)),e}function b(e){return e.replace(/^0*(.*)/,"$1")||"0"}function S(e,r){var t=e.match(r.IPV4ADDRESS)||[],a=w(t,2)[1];return a?a.split(".").map(b).join("."):e}function g(e,r){var t=e.match(r.IPV6ADDRESS)||[],a=w(t,3),s=a[1],o=a[2];if(s){for(var i=s.toLowerCase().split("::").reverse(),n=w(i,2),l=n[0],c=n[1],u=c?c.split(":").map(b):[],h=l.split(":").map(b),d=r.IPV4ADDRESS.test(h[h.length-1]),f=d?7:8,p=h.length-f,m=Array(f),v=0;v<f;++v)m[v]=u[v]||h[p+v]||"";d&&(m[f-1]=S(m[f-1],r));var y=m.reduce(function(e,r,t){if(!r||"0"===r){var a=e[e.length-1];a&&a.index+a.length===t?a.length++:e.push({index:t,length:1})}return e},[]).sort(function(e,r){return r.length-e.length})[0],g=void 0;if(y&&1<y.length){var P=m.slice(0,y.index),E=m.slice(y.index+y.length);g=P.join(":")+"::"+E.join(":")}else g=m.join(":");return o&&(g+="%"+o),g}return e}var P=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,E=void 0==="".match(/(){0}/)[1];function _(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t={},a=!1!==r.iri?h:u;"suffix"===r.reference&&(e=(r.scheme?r.scheme+":":"")+"//"+e);var s=e.match(P);if(s){E?(t.scheme=s[1],t.userinfo=s[3],t.host=s[4],t.port=parseInt(s[5],10),t.path=s[6]||"",t.query=s[7],t.fragment=s[8],isNaN(t.port)&&(t.port=s[5])):(t.scheme=s[1]||void 0,t.userinfo=-1!==e.indexOf("@")?s[3]:void 0,t.host=-1!==e.indexOf("//")?s[4]:void 0,t.port=parseInt(s[5],10),t.path=s[6]||"",t.query=-1!==e.indexOf("?")?s[7]:void 0,t.fragment=-1!==e.indexOf("#")?s[8]:void 0,isNaN(t.port)&&(t.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:void 0)),t.host&&(t.host=g(S(t.host,a),a)),t.reference=void 0!==t.scheme||void 0!==t.userinfo||void 0!==t.host||void 0!==t.port||t.path||void 0!==t.query?void 0===t.scheme?"relative":void 0===t.fragment?"absolute":"uri":"same-document",r.reference&&"suffix"!==r.reference&&r.reference!==t.reference&&(t.error=t.error||"URI is not a "+r.reference+" reference.");var o=d[(r.scheme||t.scheme||"").toLowerCase()];if(r.unicodeSupport||o&&o.unicodeSupport)y(t,a);else{if(t.host&&(r.domainHost||o&&o.domainHost))try{t.host=v.toASCII(t.host.replace(a.PCT_ENCODED,f).toLowerCase())}catch(e){t.error=t.error||"Host's domain name can not be converted to ASCII via punycode: "+e}y(t,u)}o&&o.parse&&o.parse(t,r)}else t.error=t.error||"URI can not be parsed.";return t}var F=/^\.\.?\//,x=/^\/\.(\/|$)/,$=/^\/\.\.(\/|$)/,R=/^\/?(?:.|\n)*?(?=\/|$)/;function D(e){for(var r=[];e.length;)if(e.match(F))e=e.replace(F,"");else if(e.match(x))e=e.replace(x,"/");else if(e.match($))e=e.replace($,"/"),r.pop();else if("."===e||".."===e)e="";else{var t=e.match(R);if(!t)throw new Error("Unexpected dot segment condition");var a=t[0];e=e.slice(a.length),r.push(a)}return r.join("")}function j(r){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=t.iri?h:u,a=[],s=d[(t.scheme||r.scheme||"").toLowerCase()];if(s&&s.serialize&&s.serialize(r,t),r.host&&!e.IPV6ADDRESS.test(r.host)&&(t.domainHost||s&&s.domainHost))try{r.host=t.iri?v.toUnicode(r.host):v.toASCII(r.host.replace(e.PCT_ENCODED,f).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}y(r,e),"suffix"!==t.reference&&r.scheme&&(a.push(r.scheme),a.push(":"));var o,i,n,l=(i=!1!==t.iri?h:u,n=[],void 0!==(o=r).userinfo&&(n.push(o.userinfo),n.push("@")),void 0!==o.host&&n.push(g(S(String(o.host),i),i).replace(i.IPV6ADDRESS,function(e,r,t){return"["+r+(t?"%25"+t:"")+"]"})),"number"==typeof o.port&&(n.push(":"),n.push(o.port.toString(10))),n.length?n.join(""):void 0);if(void 0!==l&&("suffix"!==t.reference&&a.push("//"),a.push(l),r.path&&"/"!==r.path.charAt(0)&&a.push("/")),void 0!==r.path){var c=r.path;t.absolutePath||s&&s.absolutePath||(c=D(c)),void 0===l&&(c=c.replace(/^\/\//,"/%2F")),a.push(c)}return void 0!==r.query&&(a.push("?"),a.push(r.query)),void 0!==r.fragment&&(a.push("#"),a.push(r.fragment)),a.join("")}function O(e,r){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a={};return arguments[3]||(e=_(j(e,t),t),r=_(j(r,t),t)),!(t=t||{}).tolerant&&r.scheme?(a.scheme=r.scheme,a.userinfo=r.userinfo,a.host=r.host,a.port=r.port,a.path=D(r.path||""),a.query=r.query):(void 0!==r.userinfo||void 0!==r.host||void 0!==r.port?(a.userinfo=r.userinfo,a.host=r.host,a.port=r.port,a.path=D(r.path||""),a.query=r.query):(r.path?("/"===r.path.charAt(0)?a.path=D(r.path):(a.path=void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:r.path:"/"+r.path,a.path=D(a.path)),a.query=r.query):(a.path=e.path,a.query=void 0!==r.query?r.query:e.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=r.fragment,a}function I(e,r){return e&&e.toString().replace(r&&r.iri?h.PCT_ENCODED:u.PCT_ENCODED,f)}var N={scheme:"http",domainHost:!0,parse:function(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},Q={scheme:"https",domainHost:N.domainHost,parse:N.parse,serialize:N.serialize},U={},V="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",H="[0-9A-Fa-f]",K=(Z(Z("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+Z("%[89A-Fa-f]"+H+"%"+H+H)+"|"+Z("%"+H+H)),J("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]')),M=new RegExp(V,"g"),B=new RegExp("(?:(?:%[EFef][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[89A-Fa-f][0-9A-Fa-f]%[0-9A-Fa-f][0-9A-Fa-f])|(?:%[0-9A-Fa-f][0-9A-Fa-f]))","g"),G=new RegExp(J("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',K),"g"),Y=new RegExp(J("[^]",V,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),W=Y;function X(e){var r=f(e);return r.match(M)?r:e}var ee={scheme:"mailto",parse:function(e,r){var t=e,a=t.to=t.path?t.path.split(","):[];if(t.path=void 0,t.query){for(var s=!1,o={},i=t.query.split("&"),n=0,l=i.length;n<l;++n){var c=i[n].split("=");switch(c[0]){case"to":for(var u=c[1].split(","),h=0,d=u.length;h<d;++h)a.push(u[h]);break;case"subject":t.subject=I(c[1],r);break;case"body":t.body=I(c[1],r);break;default:s=!0,o[I(c[0],r)]=I(c[1],r)}}s&&(t.headers=o)}t.query=void 0;for(var f=0,p=a.length;f<p;++f){var m=a[f].split("@");if(m[0]=I(m[0]),r.unicodeSupport)m[1]=I(m[1],r).toLowerCase();else try{m[1]=v.toASCII(I(m[1],r).toLowerCase())}catch(e){t.error=t.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}a[f]=m.join("@")}return t},serialize:function(e,r){var t,a=e,s=null!=(t=e.to)?t instanceof Array?t:"number"!=typeof t.length||t.split||t.setInterval||t.call?[t]:Array.prototype.slice.call(t):[];if(s){for(var o=0,i=s.length;o<i;++o){var n=String(s[o]),l=n.lastIndexOf("@"),c=n.slice(0,l).replace(B,X).replace(B,p).replace(G,m),u=n.slice(l+1);try{u=r.iri?v.toUnicode(u):v.toASCII(I(u,r).toLowerCase())}catch(e){a.error=a.error||"Email address's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+e}s[o]=c+"@"+u}a.path=s.join(",")}var h=e.headers=e.headers||{};e.subject&&(h.subject=e.subject),e.body&&(h.body=e.body);var d=[];for(var f in h)h[f]!==U[f]&&d.push(f.replace(B,X).replace(B,p).replace(Y,m)+"="+h[f].replace(B,X).replace(B,p).replace(W,m));return d.length&&(a.query=d.join("&")),a}},re=/^([^\:]+)\:(.*)/,te={scheme:"urn",parse:function(e,r){var t=e.path&&e.path.match(re),a=e;if(t){var s=r.scheme||a.scheme||"urn",o=t[1].toLowerCase(),i=t[2],n=d[s+":"+(r.nid||o)];a.nid=o,a.nss=i,a.path=void 0,n&&(a=n.parse(a,r))}else a.error=a.error||"URN can not be parsed.";return a},serialize:function(e,r){var t=e.nid,a=d[(r.scheme||e.scheme||"urn")+":"+(r.nid||t)];a&&(e=a.serialize(e,r));var s=e;return s.path=(t||r.nid)+":"+e.nss,s}},ae=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,se={scheme:"urn:uuid",parse:function(e,r){var t=e;return t.uuid=t.nss,t.nss=void 0,r.tolerant||t.uuid&&t.uuid.match(ae)||(t.error=t.error||"UUID is not valid."),t},serialize:function(e){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};d[N.scheme]=N,d[Q.scheme]=Q,d[ee.scheme]=ee,d[te.scheme]=te,d[se.scheme]=se,e.SCHEMES=d,e.pctEncChar=m,e.pctDecChars=f,e.parse=_,e.removeDotSegments=D,e.serialize=j,e.resolveComponents=O,e.resolve=function(e,r,t){var a=function(e,r){var t=e;if(r)for(var a in r)t[a]=r[a];return t}({scheme:"null"},t);return j(O(_(e,a),_(r,a),a,!0),a)},e.normalize=function(e,r){return"string"==typeof e?e=j(_(e,r),r):"object"===a(e)&&(e=_(j(e,r),r)),e},e.equal=function(e,r,t){return"string"==typeof e?e=j(_(e,t),t):"object"===a(e)&&(e=j(e,t)),"string"==typeof r?r=j(_(r,t),t):"object"===a(r)&&(r=j(r,t)),e===r},e.escapeComponent=function(e,r){return e&&e.toString().replace(r&&r.iri?h.ESCAPE:u.ESCAPE,m)},e.unescapeComponent=I,Object.defineProperty(e,"__esModule",{value:!0})}("object"==typeof t&&void 0!==r?t:a.URI=a.URI||{})},{}],ajv:[function(a,e,r){"use strict";var n=a("./compile"),d=a("./compile/resolve"),t=a("./cache"),f=a("./compile/schema_obj"),s=a("fast-json-stable-stringify"),o=a("./compile/formats"),i=a("./compile/rules"),l=a("./data"),c=a("./compile/util");(e.exports=y).prototype.validate=function(e,r){var t;if("string"==typeof e){if(!(t=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);t=a.validate||this._compile(a)}var s=t(r);!0!==t.$async&&(this.errors=t.errors);return s},y.prototype.compile=function(e,r){var t=this._addSchema(e,void 0,r);return t.validate||this._compile(t)},y.prototype.addSchema=function(e,r,t,a){if(Array.isArray(e)){for(var s=0;s<e.length;s++)this.addSchema(e[s],void 0,t,a);return this}var o=this._getId(e);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return S(this,r=d.normalizeId(r||o)),this._schemas[r]=this._addSchema(e,t,a,!0),this},y.prototype.addMetaSchema=function(e,r,t){return this.addSchema(e,r,t,!0),this},y.prototype.validateSchema=function(e,r){var t=e.$schema;if(void 0!==t&&"string"!=typeof t)throw new Error("$schema must be a string");if(!(t=t||this._opts.defaultMeta||function(e){var r=e._opts.meta;return e._opts.defaultMeta="object"==typeof r?e._getId(r)||r:e.getSchema(p)?p:void 0,e._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),!(this.errors=null);var a=this.validate(t,e);if(!a&&r){var s="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(s);this.logger.error(s)}return a},y.prototype.getSchema=function(e){var r=g(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return function(e,r){var t=d.schema.call(e,{schema:{}},r);if(t){var a=t.schema,s=t.root,o=t.baseId,i=n.call(e,a,s,void 0,o);return e._fragments[r]=new f({ref:r,fragment:!0,schema:a,root:s,baseId:o,validate:i}),i}}(this,e)}},y.prototype.removeSchema=function(e){if(e instanceof RegExp)return P(this,this._schemas,e),P(this,this._refs,e),this;switch(typeof e){case"undefined":return P(this,this._schemas),P(this,this._refs),this._cache.clear(),this;case"string":var r=g(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var t=this._opts.serialize,a=t?t(e):e;this._cache.del(a);var s=this._getId(e);s&&(s=d.normalizeId(s),delete this._schemas[s],delete this._refs[s])}return this},y.prototype.addFormat=function(e,r){"string"==typeof r&&(r=new RegExp(r));return this._formats[e]=r,this},y.prototype.errorsText=function(e,r){if(!(e=e||this.errors))return"No errors";for(var t=void 0===(r=r||{}).separator?", ":r.separator,a=void 0===r.dataVar?"data":r.dataVar,s="",o=0;o<e.length;o++){var i=e[o];i&&(s+=a+i.dataPath+" "+i.message+t)}return s.slice(0,-t.length)},y.prototype._addSchema=function(e,r,t,a){if("object"!=typeof e&&"boolean"!=typeof e)throw new Error("schema should be object or boolean");var s=this._opts.serialize,o=s?s(e):e,i=this._cache.get(o);if(i)return i;a=a||!1!==this._opts.addUsedSchema;var n=d.normalizeId(this._getId(e));n&&a&&S(this,n);var l,c=!1!==this._opts.validateSchema&&!r;c&&!(l=n&&n==d.normalizeId(e.$schema))&&this.validateSchema(e,!0);var u=d.ids.call(this,e),h=new f({id:n,schema:e,localRefs:u,cacheKey:o,meta:t});"#"!=n[0]&&a&&(this._refs[n]=h);this._cache.put(o,h),c&&l&&this.validateSchema(e,!0);return h},y.prototype._compile=function(t,e){if(t.compiling)return(t.validate=s).schema=t.schema,s.errors=null,s.root=e||s,!0===t.schema.$async&&(s.$async=!0),s;var r,a;t.compiling=!0,t.meta&&(r=this._opts,this._opts=this._metaOpts);try{a=n.call(this,t.schema,e,t.localRefs)}catch(e){throw delete t.validate,e}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function s(){var e=t.validate,r=e.apply(this,arguments);return s.errors=e.errors,r}},y.prototype.compileAsync=a("./compile/async");var u=a("./keyword");y.prototype.addKeyword=u.add,y.prototype.getKeyword=u.get,y.prototype.removeKeyword=u.remove,y.prototype.validateKeyword=u.validate;var h=a("./compile/error_classes");y.ValidationError=h.Validation,y.MissingRefError=h.MissingRef,y.$dataMetaSchema=l;var p="http://json-schema.org/draft-07/schema",m=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],v=["/properties"];function y(e){if(!(this instanceof y))return new y(e);e=this._opts=c.copy(e)||{},function(e){var r=e._opts.logger;if(!1===r)e.logger={log:_,warn:_,error:_};else{if(void 0===r&&(r=console),!("object"==typeof r&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=o(e.format),this._cache=e.cache||new t,this._loadingSchemas={},this._compilations=[],this.RULES=i(),this._getId=function(e){switch(e.schemaId){case"auto":return b;case"id":return E;default:return w}}(e),e.loopRequired=e.loopRequired||1/0,"property"==e.errorDataPath&&(e._errorDataPathProperty=!0),void 0===e.serialize&&(e.serialize=s),this._metaOpts=function(e){for(var r=c.copy(e._opts),t=0;t<m.length;t++)delete r[m[t]];return r}(this),e.formats&&function(e){for(var r in e._opts.formats){e.addFormat(r,e._opts.formats[r])}}(this),e.keywords&&function(e){for(var r in e._opts.keywords){e.addKeyword(r,e._opts.keywords[r])}}(this),function(e){var r;e._opts.$data&&(r=a("./refs/data.json"),e.addMetaSchema(r,r.$id,!0));if(!1===e._opts.meta)return;var t=a("./refs/json-schema-draft-07.json");e._opts.$data&&(t=l(t,v));e.addMetaSchema(t,p,!0),e._refs["http://json-schema.org/schema"]=p}(this),"object"==typeof e.meta&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(e){var r=e._opts.schemas;if(!r)return;if(Array.isArray(r))e.addSchema(r);else for(var t in r)e.addSchema(r[t],t)}(this)}function g(e,r){return r=d.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function P(e,r,t){for(var a in r){var s=r[a];s.meta||t&&!t.test(a)||(e._cache.del(s.cacheKey),delete r[a])}}function E(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function w(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function b(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function S(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function _(){}},{"./cache":1,"./compile":5,"./compile/async":2,"./compile/error_classes":3,"./compile/formats":4,"./compile/resolve":6,"./compile/rules":7,"./compile/schema_obj":8,"./compile/util":10,"./data":11,"./keyword":39,"./refs/data.json":40,"./refs/json-schema-draft-07.json":41,"fast-json-stable-stringify":43}]},{},[])("ajv")});
-//# sourceMappingURL=ajv.min.js.map \ No newline at end of file
diff --git a/node_modules/ajv/dist/ajv.min.js.map b/node_modules/ajv/dist/ajv.min.js.map
deleted file mode 100644
index 2bbcc42..0000000
--- a/node_modules/ajv/dist/ajv.min.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ajv.min.js","sources":["0"],"names":["f","exports","module","define","amd","window","global","self","this","Ajv","r","e","n","t","o","i","c","require","u","a","Error","code","p","call","length","1","Cache","_cache","prototype","put","key","value","get","del","clear","2","MissingRefError","MissingRef","compileAsync","schema","meta","callback","_opts","loadSchema","undefined","loadMetaSchemaOf","then","schemaObj","_addSchema","validate","_compileAsync","_compile","loadMissingSchema","ref","missingSchema","added","missingRef","schemaPromise","_loadingSchemas","removePromise","sch","addSchema","_refs","_schemas","v","$schema","getSchema","$ref","Promise","resolve","./error_classes","3","baseId","message","url","normalizeId","fullPath","errorSubclass","Subclass","Object","create","constructor","Validation","errors","ajv","validation","./resolve","4","util","DATE","DAYS","TIME","HOSTNAME","URI","URITEMPLATE","URL","UUID","JSON_POINTER","JSON_POINTER_URI_FRAGMENT","RELATIVE_JSON_POINTER","formats","mode","copy","date","str","matches","match","year","month","day","time","full","hour","minute","second","fast","date-time","uri","uri-reference","uri-template","email","hostname","ipv4","ipv6","regex","uuid","json-pointer","json-pointer-uri-fragment","relative-json-pointer","dateTime","split","DATE_TIME_SEPARATOR","NOT_URI_FRAGMENT","test","Z_ANCHOR","RegExp","./util","5","errorClasses","stableStringify","validateGenerator","ucs2length","equal","ValidationError","compile","root","localRefs","opts","refVal","refs","patterns","patternsHash","defaults","defaultsHash","customRules","index","compIndex","compiling","_compilations","compilation","callValidate","_formats","RULES","localCompile","cv","$async","sourceCode","source","splice","result","apply","arguments","_schema","_root","isRoot","isTop","schemaPath","errSchemaPath","errorPath","resolveRef","usePattern","useDefault","useCustomRule","logger","vars","refValCode","patternCode","defaultCode","customRuleCode","processCode","Function","makeValidate","error","_refVal","refCode","refIndex","resolvedRef","rootRefId","addLocalRef","localSchema","inlineRef","inlineRefs","refId","inline","regexStr","toQuotedString","valueStr","rule","parentSchema","it","validateSchema","deps","definition","dependencies","every","keyword","hasOwnProperty","join","errorsText","macro","arr","statement","../dotjs/validate","fast-deep-equal","fast-json-stable-stringify","6","SchemaObject","traverse","res","resolveSchema","parse","refPath","_getFullPath","getFullPath","_getId","keys","id","parsedRef","resolveUrl","getJsonPointer","ids","schemaId","baseIds","","fullPaths","allKeys","jsonPtr","rootSchema","parentJsonPtr","parentKeyword","keyIndex","escapeFragment","PREVENT_SCOPE_CHANGE","toHash","fragment","slice","parts","part","unescapeFragment","SIMPLE_INLINED","limit","checkNoRef","item","Array","isArray","countKeys","count","Infinity","normalize","serialize","TRAILING_SLASH_HASH","replace","./schema_obj","json-schema-traverse","uri-js","7","ruleModules","type","rules","maximum","minimum","properties","ALL","all","types","forEach","group","map","implKeywords","k","push","implements","$comment","keywords","concat","custom","../dotjs","8","obj","9","len","pos","charCodeAt","10","checkDataType","dataType","data","negate","EQUAL","AND","OK","NOT","to","checkDataTypes","dataTypes","array","object","null","number","integer","coerceToTypes","optionCoerceTypes","COERCE_TO_TYPES","getProperty","escapeQuotes","varOccurences","dataVar","varReplace","expr","cleanUpCode","out","EMPTY_ELSE","EMPTY_IF_NO_ELSE","EMPTY_IF_WITH_ELSE","finalCleanUpCode","async","ERRORS_REGEXP","REMOVE_ERRORS_ASYNC","RETURN_ASYNC","RETURN_DATA_ASYNC","REMOVE_ERRORS","RETURN_VALID","RETURN_TRUE","ROOTDATA_REGEXP","REMOVE_ROOTDATA","schemaHasRules","schemaHasRulesExcept","exceptKeyword","schemaUnknownRules","getPathExpr","currentPath","jsonPointers","isNumber","joinPaths","getPath","prop","path","escapeJsonPointer","getData","$data","lvl","paths","up","jsonPointer","segments","segment","unescapeJsonPointer","decodeURIComponent","encodeURIComponent","hash","IDENTIFIER","SINGLE_QUOTE","b","./ucs2length","11","KEYWORDS","metaSchema","keywordsJsonPointers","JSON","stringify","j","anyOf","12","$id","definitions","simpleTypes","statements","valid","not","required","items","modifying","const","./refs/json-schema-draft-07.json","13","$keyword","$schemaValue","$lvl","level","$dataLvl","dataLevel","$schemaPath","$errSchemaPath","$breakOnError","allErrors","$isData","dataPathArr","$isMax","$exclusiveKeyword","$schemaExcl","$isDataExcl","$op","$notOp","$errorKeyword","$schemaValueExcl","$exclusive","$exclType","$exclIsNumber","$opStr","$opExpr","$$outStack","createErrors","messages","verbose","__err","pop","compositeRule","Math","14","15","unicode","16","17","$it","$closingBraces","$nextValid","$currentBaseId","$allSchemasEmpty","arr1","$sch","$i","l1","strictKeywords","18","$valid","$errs","$wasComposite","19","20","21","$idx","$dataNxt","$nextData","$nonEmptySchema","$passData","$code","22","$compile","$inline","$macro","$ruleValidate","$validateCode","$rule","$definition","$rDef","$validateSchema","$ruleErrs","$ruleErr","$asyncKeyword","passContext","$parentData","$parentDataProperty","def_callRuleValidate","def_customError","23","$schemaDeps","$propertyDeps","$ownProperties","ownProperties","$property","$deps","$currentErrorPath","$propertyKey","$useData","$prop","$propertyPath","$missingProperty","_errorDataPathProperty","arr2","i2","l2","24","$vSchema","25","$ruleType","format","$unknownFormats","unknownFormats","$allowUnknown","$format","$isObject","$formatType","warn","indexOf","$formatRef","26","$thenSch","$elseSch","$thenPresent","$elsePresent","$ifClause","27","allOf","contains","enum","if","maxItems","minItems","maxLength","minLength","maxProperties","minProperties","multipleOf","oneOf","pattern","propertyNames","uniqueItems","./_limit","./_limitItems","./_limitLength","./_limitProperties","./allOf","./anyOf","./comment","./const","./contains","./dependencies","./enum","./format","./if","./items","./multipleOf","./not","./oneOf","./pattern","./properties","./propertyNames","./ref","./required","./uniqueItems","./validate","28","$additionalItems","additionalItems","$currErrSchemaPath","29","multipleOfPrecision","30","$allErrorsOption","31","$prevValid","$passingSchemas","32","$regexp","33","$key","$dataProperties","$schemaKeys","$pProperties","patternProperties","$pPropertyKeys","$aProperties","additionalProperties","$someProperties","$noAdditional","$additionalIsSchema","$removeAdditional","removeAdditional","$checkAdditional","$required","loopRequired","$requiredHash","i1","$pProperty","$additionalProperty","$useDefaults","useDefaults","arr3","i3","l3","$hasDefault","default","arr4","i4","l4","34","$invalidName","35","$refCode","$refVal","$message","missingRefs","__callValidate","36","$propertySch","$loopRequired","37","$itemType","$typeIsArray","38","$refKeywords","$unknownKwd","$keywordsMsg","$top","rootId","strictDefaults","$defaultMsg","$closingBraces1","$closingBraces2","$typeSchema","nullable","extendRefs","coerceTypes","$coerceToTypes","$rulesGroup","$shouldUseGroup","$dataType","$coerced","$bracesCoercion","$type","arr5","i5","l5","$shouldUseRule","impl","$ruleImplementsSomeKeyword","39","definitionSchema","validateKeyword","throwError","_validateKeyword","add","_addRule","ruleGroup","rg","remove","./definition_schema","./dotjs/custom","40","description","41","title","schemaArray","nonNegativeInteger","nonNegativeIntegerDefault0","stringArray","readOnly","examples","exclusiveMinimum","exclusiveMaximum","contentMediaType","contentEncoding","else","42","flags","valueOf","toString","43","cmp","cycles","node","seen","toJSON","isFinite","TypeError","seenIndex","sort","44","cb","_traverse","pre","post","arrayKeywords","propsKeywords","skipKeywords","45","merge","_len","sets","_key","xl","x","subexp","typeOf","shift","toLowerCase","toUpperCase","buildExps","isIRI","ALPHA$$","DIGIT$$","HEXDIG$$","PCT_ENCODED$","SUB_DELIMS$$","RESERVED$$","IPRIVATE$$","UNRESERVED$$","SCHEME$","USERINFO$","DEC_OCTET_RELAXED$","IPV4ADDRESS$","H16$","LS32$","IPV6ADDRESS1$","IPV6ADDRESS2$","IPV6ADDRESS3$","IPV6ADDRESS4$","IPV6ADDRESS5$","IPV6ADDRESS6$","IPV6ADDRESS7$","IPV6ADDRESS8$","IPV6ADDRESS9$","IPV6ADDRESS$","ZONEID$","IPV6ADDRZ_RELAXED$","IPVFUTURE$","IP_LITERAL$","REG_NAME$","HOST$","PORT$","AUTHORITY$","PCHAR$","SEGMENT$","SEGMENT_NZ$","SEGMENT_NZ_NC$","PATH_ABEMPTY$","PATH_ABSOLUTE$","PATH_NOSCHEME$","PATH_ROOTLESS$","PATH_EMPTY$","QUERY$","FRAGMENT$","HIER_PART$","URI$","RELATIVE_PART$","RELATIVE$","NOT_SCHEME","NOT_USERINFO","NOT_HOST","NOT_PATH","NOT_PATH_NOSCHEME","NOT_QUERY","NOT_FRAGMENT","ESCAPE","UNRESERVED","OTHER_CHARS","PCT_ENCODED","IPV4ADDRESS","IPV6ADDRESS","URI_PROTOCOL","IRI_PROTOCOL","slicedToArray","Symbol","iterator","_arr","_n","_d","_e","_s","_i","next","done","err","sliceIterator","maxInt","regexPunycode","regexNonASCII","regexSeparators","overflow","not-basic","invalid-input","floor","stringFromCharCode","String","fromCharCode","error$1","RangeError","mapDomain","string","fn","ucs2decode","output","counter","extra","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","baseMinusTMin","base","decode","input","codePoint","inputLength","bias","basic","lastIndexOf","oldi","w","baseMinusT","fromCodePoint","encode","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","_currentValue2","return","basicLength","handledCPCount","m","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_step2","_iterator2","currentValue","handledCPCountPlusOne","_iteratorNormalCompletion3","_didIteratorError3","_iteratorError3","_step3","_iterator3","_currentValue","q","qMinusT","punycode","version","ucs2","from","toConsumableArray","toASCII","toUnicode","SCHEMES","pctEncChar","chr","pctDecChars","newStr","il","parseInt","substr","c2","_c","c3","_normalizeComponentEncoding","components","protocol","decodeUnreserved","decStr","scheme","userinfo","host","query","_stripLeadingZeros","_normalizeIPv4","address","_normalizeIPv6","_matches2","zone","_address$toLowerCase$","reverse","_address$toLowerCase$2","last","first","firstFields","lastFields","isLastFieldIPv4Address","fieldCount","lastFieldsStart","fields","longestZeroFields","reduce","acc","field","lastLongest","newHost","newFirst","newLast","URI_PARSE","NO_MATCH_IS_UNDEFINED","uriString","options","iri","reference","port","isNaN","schemeHandler","unicodeSupport","domainHost","RDS1","RDS2","RDS3","RDS5","removeDotSegments","im","s","uriTokens","authority","_","$1","$2","charAt","absolutePath","resolveComponents","relative","target","tolerant","unescapeComponent","handler","handler$1","O","VCHAR$$","NOT_LOCAL_PART","NOT_HFNAME","NOT_HFVALUE","handler$2","mailtoComponents","unknownHeaders","headers","hfields","hfield","toAddrs","_x","_xl","subject","body","_x2","_xl2","addr","setInterval","toAddr","atIdx","localPart","domain","name","URN_PARSE","handler$3","urnComponents","nid","nss","uriComponents","handler$4","uuidComponents","baseURI","relativeURI","schemelessOptions","assign","uriA","uriB","escapeComponent","defineProperty","factory","compileSchema","$dataMetaSchema","schemaKeyRef","_meta","_skipValidation","checkUnique","addMetaSchema","skipValidation","throwOrLogError","defaultMeta","META_SCHEMA_ID","keyRef","_getSchemaObj","_fragments","_getSchemaFragment","removeSchema","_removeAllSchemas","cacheKey","addFormat","separator","text","dataPath","shouldAddSchema","cached","addUsedSchema","recursiveMeta","willValidate","currentOpts","_metaOpts","_validate","customKeyword","addKeyword","getKeyword","removeKeyword","META_IGNORE_OPTIONS","META_SUPPORT_DATA","log","noop","console","setLogger","cache","_get$IdOrId","_get$Id","chooseGetId","errorDataPath","metaOpts","getMetaSchemaOptions","addInitialFormats","addInitialKeywords","$dataSchema","addDefaultMetaSchema","optsSchemas","schemas","addInitialSchemas","./cache","./compile","./compile/async","./compile/error_classes","./compile/formats","./compile/resolve","./compile/rules","./compile/schema_obj","./compile/util","./data","./keyword","./refs/data.json"],"mappings":";CAAA,SAAUA,GAAG,GAAoB,iBAAVC,SAAoC,oBAATC,OAAsBA,OAAOD,QAAQD,SAAS,GAAmB,mBAATG,QAAqBA,OAAOC,IAAKD,OAAO,GAAGH,OAAO,EAA0B,oBAATK,OAAwBA,OAA+B,oBAATC,OAAwBA,OAA6B,oBAAPC,KAAsBA,KAAYC,MAAOC,IAAMT,KAAxT,CAA+T,WAAqC,OAAmB,SAASU,EAAEC,EAAEC,EAAEC,GAAG,SAASC,EAAEC,EAAEf,GAAG,IAAIY,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,IAAIC,EAAE,mBAAmBC,SAASA,QAAQ,IAAIjB,GAAGgB,EAAE,OAAOA,EAAED,GAAE,GAAI,GAAGG,EAAE,OAAOA,EAAEH,GAAE,GAAI,IAAII,EAAE,IAAIC,MAAM,uBAAuBL,EAAE,KAAK,MAAMI,EAAEE,KAAK,mBAAmBF,EAAE,IAAIG,EAAEV,EAAEG,GAAG,CAACd,QAAQ,IAAIU,EAAEI,GAAG,GAAGQ,KAAKD,EAAErB,QAAQ,SAASS,GAAoB,OAAOI,EAAlBH,EAAEI,GAAG,GAAGL,IAAeA,IAAIY,EAAEA,EAAErB,QAAQS,EAAEC,EAAEC,EAAEC,GAAG,OAAOD,EAAEG,GAAGd,QAAQ,IAAI,IAAIiB,EAAE,mBAAmBD,SAASA,QAAQF,EAAE,EAAEA,EAAEF,EAAEW,OAAOT,IAAID,EAAED,EAAEE,IAAI,OAAOD,EAA7b,CAA4c,CAACW,EAAE,CAAC,SAASR,EAAQf,EAAOD,GACn1B,aAGA,IAAIyB,EAAQxB,EAAOD,QAAU,WAC3BO,KAAKmB,OAAS,IAIhBD,EAAME,UAAUC,IAAM,SAAmBC,EAAKC,GAC5CvB,KAAKmB,OAAOG,GAAOC,GAIrBL,EAAME,UAAUI,IAAM,SAAmBF,GACvC,OAAOtB,KAAKmB,OAAOG,IAIrBJ,EAAME,UAAUK,IAAM,SAAmBH,UAChCtB,KAAKmB,OAAOG,IAIrBJ,EAAME,UAAUM,MAAQ,WACtB1B,KAAKmB,OAAS,KAGd,IAAIQ,EAAE,CAAC,SAASlB,EAAQf,EAAOD,GACjC,aAEA,IAAImC,EAAkBnB,EAAQ,mBAAmBoB,WAcjD,SAASC,EAAaC,EAAQC,EAAMC,GAIlC,IAAIlC,EAAOC,KACX,GAAoC,mBAAzBA,KAAKkC,MAAMC,WACpB,MAAM,IAAIvB,MAAM,2CAEC,mBAARoB,IACTC,EAAWD,EACXA,OAAOI,GAGT,IAAItB,EAAIuB,EAAiBN,GAAQO,KAAK,WACpC,IAAIC,EAAYxC,EAAKyC,WAAWT,OAAQK,EAAWJ,GACnD,OAAOO,EAAUE,UAqBnB,SAASC,EAAcH,GACrB,IAAM,OAAOxC,EAAK4C,SAASJ,GAC3B,MAAMpC,GACJ,GAAIA,aAAayB,EAAiB,OAAOgB,EAAkBzC,GAC3D,MAAMA,EAIR,SAASyC,EAAkBzC,GACzB,IAAI0C,EAAM1C,EAAE2C,cACZ,GAAIC,EAAMF,GAAM,MAAM,IAAIjC,MAAM,UAAYiC,EAAM,kBAAoB1C,EAAE6C,WAAa,uBAErF,IAAIC,EAAgBlD,EAAKmD,gBAAgBL,GAMzC,OALKI,IACHA,EAAgBlD,EAAKmD,gBAAgBL,GAAO9C,EAAKmC,MAAMC,WAAWU,IACpDP,KAAKa,EAAeA,GAG7BF,EAAcX,KAAK,SAAUc,GAClC,IAAKL,EAAMF,GACT,OAAOR,EAAiBe,GAAKd,KAAK,WAC3BS,EAAMF,IAAM9C,EAAKsD,UAAUD,EAAKP,OAAKT,EAAWJ,OAGxDM,KAAK,WACN,OAAOI,EAAcH,KAGvB,SAASY,WACApD,EAAKmD,gBAAgBL,GAG9B,SAASE,EAAMF,GACb,OAAO9C,EAAKuD,MAAMT,IAAQ9C,EAAKwD,SAASV,KAtDfH,CAAcH,KAU7C,OAPIN,GACFnB,EAAEwB,KACA,SAASkB,GAAKvB,EAAS,KAAMuB,IAC7BvB,GAIGnB,EAGP,SAASuB,EAAiBe,GACxB,IAAIK,EAAUL,EAAIK,QAClB,OAAOA,IAAY1D,EAAK2D,UAAUD,GACxB3B,EAAaf,KAAKhB,EAAM,CAAE4D,KAAMF,IAAW,GAC3CG,QAAQC,WA5CtBnE,EAAOD,QAAUqC,GAuFf,CAACgC,kBAAkB,IAAIC,EAAE,CAAC,SAAStD,EAAQf,EAAOD,GACpD,aAEA,IAAIoE,EAAUpD,EAAQ,aAoBtB,SAASmB,EAAgBoC,EAAQnB,EAAKoB,GACpCjE,KAAKiE,QAAUA,GAAWrC,EAAgBqC,QAAQD,EAAQnB,GAC1D7C,KAAKgD,WAAaa,EAAQK,IAAIF,EAAQnB,GACtC7C,KAAK8C,cAAgBe,EAAQM,YAAYN,EAAQO,SAASpE,KAAKgD,aAIjE,SAASqB,EAAcC,GAGrB,OAFAA,EAASlD,UAAYmD,OAAOC,OAAO5D,MAAMQ,WACzCkD,EAASlD,UAAUqD,YAAcH,EA3BnC5E,EAAOD,QAAU,CACfiF,WAAYL,EAKd,SAAyBM,GACvB3E,KAAKiE,QAAU,oBACfjE,KAAK2E,OAASA,EACd3E,KAAK4E,IAAM5E,KAAK6E,YAAa,IAP7BhD,WAAYwC,EAAczC,IAW5BA,EAAgBqC,QAAU,SAAUD,EAAQnB,GAC1C,MAAO,2BAA8BA,EAAM,YAAcmB,IAiBzD,CAACc,YAAY,IAAIC,EAAE,CAAC,SAAStE,EAAQf,EAAOD,GAC9C,aAEA,IAAIuF,EAAOvE,EAAQ,UAEfwE,EAAO,6BACPC,EAAO,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAC3CC,EAAO,0DACPC,EAAW,wGACXC,EAAM,+nCAGNC,EAAc,oLAKdC,EAAM,4rDACNC,EAAO,+DACPC,EAAe,4BACfC,EAA4B,+DAC5BC,EAAwB,mDAK5B,SAASC,EAAQC,GAEf,OAAOb,EAAKc,KAAKF,EADjBC,EAAe,QAARA,EAAiB,OAAS,SA+DnC,SAASE,EAAKC,GAEZ,IAAIC,EAAUD,EAAIE,MAAMjB,GACxB,IAAKgB,EAAS,OAAO,EAErB,IAXkBE,EAYdC,GAASH,EAAQ,GACjBI,GAAOJ,EAAQ,GAEnB,OAAgB,GAATG,GAAcA,GAAS,IAAa,GAAPC,GAC5BA,IAAiB,GAATD,KAhBED,GAWNF,EAAQ,IATN,GAAM,GAAME,EAAO,KAAQ,GAAKA,EAAO,KAAQ,GAcPjB,EAAKkB,GAAV,IAInD,SAASE,EAAKN,EAAKO,GACjB,IAAIN,EAAUD,EAAIE,MAAMf,GACxB,IAAKc,EAAS,OAAO,EAErB,IAAIO,EAAOP,EAAQ,GACfQ,EAASR,EAAQ,GACjBS,EAAST,EAAQ,GAErB,OAASO,GAAQ,IAAMC,GAAU,IAAMC,GAAU,IAChC,IAARF,GAAwB,IAAVC,GAA0B,IAAVC,MAC9BH,GAHMN,EAAQ,KAvFzBvG,EAAOD,QAAUmG,GAQTe,KAAO,CAEbZ,KAAM,6BAENO,KAAM,8EACNM,YAAa,0GAEbC,IAAK,4CACLC,gBAAiB,yEACjBC,eAAgBzB,EAChBpB,IAAKqB,EAILyB,MAAO,mHACPC,SAAU7B,EAEV8B,KAAM,4EAENC,KAAM,qpCACNC,MAAOA,EAEPC,KAAM7B,EAGN8B,eAAgB7B,EAChB8B,4BAA6B7B,EAE7B8B,wBAAyB7B,GAI3BC,EAAQW,KAAO,CACbR,KAAMA,EACNO,KAAMA,EACNM,YAoDF,SAAmBZ,GAEjB,IAAIyB,EAAWzB,EAAI0B,MAAMC,GACzB,OAA0B,GAAnBF,EAASzG,QAAe+E,EAAK0B,EAAS,KAAOnB,EAAKmB,EAAS,IAAI,IAtDtEZ,IA2DF,SAAab,GAEX,OAAO4B,EAAiBC,KAAK7B,IAAQX,EAAIwC,KAAK7B,IA5D9Cc,gBA3DW,yoCA4DXC,eAAgBzB,EAChBpB,IAAKqB,EACLyB,MAAO,2IACPC,SAAU7B,EACV8B,KAAM,4EACNC,KAAM,qpCACNC,MAAOA,EACPC,KAAM7B,EACN8B,eAAgB7B,EAChB8B,4BAA6B7B,EAC7B8B,wBAAyB7B,GAsC3B,IAAIgC,EAAsB,QAQ1B,IAAIC,EAAmB,OAOvB,IAAIE,EAAW,WACf,SAASV,EAAMpB,GACb,GAAI8B,EAASD,KAAK7B,GAAM,OAAO,EAC/B,IAEE,OADA,IAAI+B,OAAO/B,IACJ,EACP,MAAM7F,GACN,OAAO,KAIT,CAAC6H,SAAS,KAAKC,EAAE,CAAC,SAASxH,EAAQf,EAAOD,GAC5C,aAEA,IAAIoE,EAAUpD,EAAQ,aAClBuE,EAAOvE,EAAQ,UACfyH,EAAezH,EAAQ,mBACvB0H,EAAkB1H,EAAQ,8BAE1B2H,EAAoB3H,EAAQ,qBAM5B4H,EAAarD,EAAKqD,WAClBC,EAAQ7H,EAAQ,mBAGhB8H,EAAkBL,EAAaxD,WAcnC,SAAS8D,EAAQzG,EAAQ0G,EAAMC,EAAW1E,GAGxC,IAAIjE,EAAOC,KACP2I,EAAO3I,KAAKkC,MACZ0G,EAAS,MAAExG,GACXyG,EAAO,GACPC,EAAW,GACXC,EAAe,GACfC,EAAW,GACXC,EAAe,GACfC,EAAc,GAId1I,EA4QN,SAAwBuB,EAAQ0G,EAAMzE,GAEpC,IAAImF,EAAQC,EAAUrI,KAAKf,KAAM+B,EAAQ0G,EAAMzE,GAC/C,OAAa,GAATmF,EAAmB,CAAEA,MAAOA,EAAOE,WAAW,GAO3C,CAAEF,MANTA,EAAQnJ,KAAKsJ,cAActI,OAMJqI,YALvBrJ,KAAKsJ,cAAcH,GAAS,CAC1BpH,OAAQA,EACR0G,KAAMA,EACNzE,OAAQA,MApRajD,KAAKf,KAAM+B,EAFlC0G,EAAOA,GAAQ,CAAE1G,OAAQA,EAAQ6G,OAAQA,EAAQC,KAAMA,GAEP7E,GAC5CuF,EAAcvJ,KAAKsJ,cAAc9I,EAAE2I,OACvC,GAAI3I,EAAE6I,UAAW,OAAQE,EAAYC,aAAeA,EAEpD,IAAI5D,EAAU5F,KAAKyJ,SACfC,EAAQ1J,KAAK0J,MAEjB,IACE,IAAIlG,EAAImG,EAAa5H,EAAQ0G,EAAMC,EAAW1E,GAC9CuF,EAAY9G,SAAWe,EACvB,IAAIoG,EAAKL,EAAYC,aAUrB,OATII,IACFA,EAAG7H,OAASyB,EAAEzB,OACd6H,EAAGjF,OAAS,KACZiF,EAAGf,KAAOrF,EAAEqF,KACZe,EAAGhB,OAASpF,EAAEoF,OACdgB,EAAGnB,KAAOjF,EAAEiF,KACZmB,EAAGC,OAASrG,EAAEqG,OACVlB,EAAKmB,aAAYF,EAAGG,OAASvG,EAAEuG,SAE9BvG,EACP,SA4QJ,SAAsBzB,EAAQ0G,EAAMzE,GAElC,IAAIzD,EAAI6I,EAAUrI,KAAKf,KAAM+B,EAAQ0G,EAAMzE,GAClC,GAALzD,GAAQP,KAAKsJ,cAAcU,OAAOzJ,EAAG,KA9Q1BQ,KAAKf,KAAM+B,EAAQ0G,EAAMzE,GAIxC,SAASwF,IAEP,IAAI/G,EAAW8G,EAAY9G,SACvBwH,EAASxH,EAASyH,MAAMlK,KAAMmK,WAElC,OADAX,EAAa7E,OAASlC,EAASkC,OACxBsF,EAGT,SAASN,EAAaS,EAASC,EAAO3B,EAAW1E,GAC/C,IAAIsG,GAAUD,GAAUA,GAASA,EAAMtI,QAAUqI,EACjD,GAAIC,EAAMtI,QAAU0G,EAAK1G,OACvB,OAAOyG,EAAQzH,KAAKhB,EAAMqK,EAASC,EAAO3B,EAAW1E,GAEvD,IAgCIvB,EAhCAoH,GAA4B,IAAnBO,EAAQP,OAEjBC,EAAa1B,EAAkB,CACjCmC,OAAO,EACPxI,OAAQqI,EACRE,OAAQA,EACRtG,OAAQA,EACRyE,KAAM4B,EACNG,WAAY,GACZC,cAAe,IACfC,UAAW,KACX9I,gBAAiBsG,EAAarG,WAC9B6H,MAAOA,EACPjH,SAAU2F,EACVpD,KAAMA,EACNnB,QAASA,EACT8G,WAAYA,EACZC,WAAYA,EACZC,WAAYA,EACZC,cAAeA,EACfnC,KAAMA,EACN/C,QAASA,EACTmF,OAAQhL,EAAKgL,OACbhL,KAAMA,IAGR+J,EAAakB,EAAKpC,EAAQqC,GAAcD,EAAKlC,EAAUoC,GACtCF,EAAKhC,EAAUmC,GAAeH,EAAK9B,EAAakC,GAChDtB,EAEbnB,EAAK0C,cAAavB,EAAanB,EAAK0C,YAAYvB,IAGpD,IAeErH,EAdmB,IAAI6I,SACrB,OACA,QACA,UACA,OACA,SACA,WACA,cACA,QACA,aACA,kBACAxB,EAGSyB,CACTxL,EACA2J,EACA9D,EACA6C,EACAG,EACAI,EACAE,EACAZ,EACAD,EACAE,GAGFK,EAAO,GAAKnG,EACZ,MAAMtC,GAEN,MADAJ,EAAKgL,OAAOS,MAAM,yCAA0C1B,GACtD3J,EAiBR,OAdAsC,EAASV,OAASqI,EAClB3H,EAASkC,OAAS,KAClBlC,EAASoG,KAAOA,EAChBpG,EAASmG,OAASA,EAClBnG,EAASgG,KAAO6B,EAAS7H,EAAW4H,EAChCR,IAAQpH,EAASoH,QAAS,IACN,IAApBlB,EAAKmB,aACPrH,EAASsH,OAAS,CAChBlJ,KAAMiJ,EACNhB,SAAUA,EACVE,SAAUA,IAIPvG,EAGT,SAASkI,EAAW3G,EAAQnB,EAAKyH,GAC/BzH,EAAMgB,EAAQK,IAAIF,EAAQnB,GAC1B,IACI4I,EAASC,EADTC,EAAW9C,EAAKhG,GAEpB,QAAiBT,IAAbuJ,EAGF,OAAOC,EAFPH,EAAU7C,EAAO+C,GACjBD,EAAU,UAAYC,EAAW,KAGnC,IAAKrB,GAAU7B,EAAKI,KAAM,CACxB,IAAIgD,EAAYpD,EAAKI,KAAKhG,GAC1B,QAAkBT,IAAdyJ,EAGF,OAAOD,EAFPH,EAAUhD,EAAKG,OAAOiD,GACtBH,EAAUI,EAAYjJ,EAAK4I,IAK/BC,EAAUI,EAAYjJ,GACtB,IAAIW,EAAIK,EAAQ9C,KAAKhB,EAAM4J,EAAclB,EAAM5F,GAC/C,QAAUT,IAANoB,EAAiB,CACnB,IAAIuI,EAAcrD,GAAaA,EAAU7F,GACrCkJ,IACFvI,EAAIK,EAAQmI,UAAUD,EAAapD,EAAKsD,YAClCF,EACAvD,EAAQzH,KAAKhB,EAAMgM,EAAatD,EAAMC,EAAW1E,IAI3D,QAAU5B,IAANoB,EAIF,OAiBFoF,EADYC,EAjBMhG,IAAKW,EACdoI,EAAYpI,EAAGkI,UAYjB7C,EAfUhG,GAOnB,SAASiJ,EAAYjJ,EAAKW,GACxB,IAAI0I,EAAQtD,EAAO5H,OAGnB,OAFA4H,EAAOsD,GAAS1I,EAET,UADPqF,EAAKhG,GAAOqJ,GAad,SAASN,EAAYhD,EAAQ/H,GAC3B,MAAwB,iBAAV+H,GAAuC,kBAAVA,EACjC,CAAE/H,KAAMA,EAAMkB,OAAQ6G,EAAQuD,QAAQ,GACtC,CAAEtL,KAAMA,EAAMgJ,OAAQjB,KAAYA,EAAOiB,QAGrD,SAASe,EAAWwB,GAClB,IAAIjD,EAAQJ,EAAaqD,GAKzB,YAJchK,IAAV+G,IACFA,EAAQJ,EAAaqD,GAAYtD,EAAS9H,OAC1C8H,EAASK,GAASiD,GAEb,UAAYjD,EAGrB,SAAS0B,EAAWtJ,GAClB,cAAeA,GACb,IAAK,UACL,IAAK,SACH,MAAO,GAAKA,EACd,IAAK,SACH,OAAOyD,EAAKqH,eAAe9K,GAC7B,IAAK,SACH,GAAc,OAAVA,EAAgB,MAAO,OAC3B,IAAI+K,EAAWnE,EAAgB5G,GAC3B4H,EAAQF,EAAaqD,GAKzB,YAJclK,IAAV+G,IACFA,EAAQF,EAAaqD,GAAYtD,EAAShI,OAC1CgI,EAASG,GAAS5H,GAEb,UAAY4H,GAIzB,SAAS2B,EAAcyB,EAAMxK,EAAQyK,EAAcC,GACjD,IAAkC,IAA9B1M,EAAKmC,MAAMwK,eAA0B,CACvC,IAAIC,EAAOJ,EAAKK,WAAWC,aAC3B,GAAIF,IAASA,EAAKG,MAAM,SAASC,GAC/B,OAAOxI,OAAOnD,UAAU4L,eAAejM,KAAKyL,EAAcO,KAE1D,MAAM,IAAInM,MAAM,kDAAoD+L,EAAKM,KAAK,MAEhF,IAAIP,EAAiBH,EAAKK,WAAWF,eACrC,GAAIA,EAEF,IADYA,EAAe3K,GACf,CACV,IAAIkC,EAAU,8BAAgClE,EAAKmN,WAAWR,EAAe/H,QAC7E,GAAiC,OAA7B5E,EAAKmC,MAAMwK,eACV,MAAM,IAAI9L,MAAMqD,GADmBlE,EAAKgL,OAAOS,MAAMvH,IAMhE,IAIIxB,EAJA+F,EAAU+D,EAAKK,WAAWpE,QAC1B2D,EAASI,EAAKK,WAAWT,OACzBgB,EAAQZ,EAAKK,WAAWO,MAG5B,GAAI3E,EACF/F,EAAW+F,EAAQzH,KAAKhB,EAAMgC,EAAQyK,EAAcC,QAC/C,GAAIU,EACT1K,EAAW0K,EAAMpM,KAAKhB,EAAMgC,EAAQyK,EAAcC,IACtB,IAAxB9D,EAAK+D,gBAA0B3M,EAAK2M,eAAejK,GAAU,QAC5D,GAAI0J,EACT1J,EAAW0J,EAAOpL,KAAKhB,EAAM0M,EAAIF,EAAKQ,QAAShL,EAAQyK,QAGvD,KADA/J,EAAW8J,EAAKK,WAAWnK,UACZ,OAGjB,QAAiBL,IAAbK,EACF,MAAM,IAAI7B,MAAM,mBAAqB2L,EAAKQ,QAAU,sBAEtD,IAAI5D,EAAQD,EAAYlI,OAGxB,MAAO,CACLH,KAAM,aAAesI,EACrB1G,SAJFyG,EAAYC,GAAS1G,IAsDzB,SAAS2G,EAAUrH,EAAQ0G,EAAMzE,GAE/B,IAAK,IAAIzD,EAAE,EAAGA,EAAEP,KAAKsJ,cAActI,OAAQT,IAAK,CAC9C,IAAIC,EAAIR,KAAKsJ,cAAc/I,GAC3B,GAAIC,EAAEuB,QAAUA,GAAUvB,EAAEiI,MAAQA,GAAQjI,EAAEwD,QAAUA,EAAQ,OAAOzD,EAEzE,OAAQ,EAIV,SAAS2K,EAAY3K,EAAGuI,GACtB,MAAO,cAAgBvI,EAAI,iBAAmByE,EAAKqH,eAAevD,EAASvI,IAAM,KAInF,SAAS4K,EAAY5K,GACnB,MAAO,cAAgBA,EAAI,eAAiBA,EAAI,KAIlD,SAAS0K,EAAW1K,EAAGqI,GACrB,YAAqBxG,IAAdwG,EAAOrI,GAAmB,GAAK,aAAeA,EAAI,aAAeA,EAAI,KAI9E,SAAS6K,EAAe7K,GACtB,MAAO,iBAAmBA,EAAI,kBAAoBA,EAAI,KAIxD,SAASyK,EAAKoC,EAAKC,GACjB,IAAKD,EAAIpM,OAAQ,MAAO,GAExB,IADA,IAAIH,EAAO,GACFN,EAAE,EAAGA,EAAE6M,EAAIpM,OAAQT,IAC1BM,GAAQwM,EAAU9M,EAAG6M,GACvB,OAAOvM,EA9WTnB,EAAOD,QAAU+I,GAiXf,CAAC8E,oBAAoB,GAAGxJ,kBAAkB,EAAEgB,YAAY,EAAEkD,SAAS,GAAGuF,kBAAkB,GAAGC,6BAA6B,KAAKC,EAAE,CAAC,SAAShN,EAAQf,EAAOD,GAC1J,aAEA,IAAI4F,EAAM5E,EAAQ,UACd6H,EAAQ7H,EAAQ,mBAChBuE,EAAOvE,EAAQ,UACfiN,EAAejN,EAAQ,gBACvBkN,EAAWlN,EAAQ,wBAmBvB,SAASoD,EAAQ2E,EAASC,EAAM5F,GAE9B,IAAI+F,EAAS5I,KAAKsD,MAAMT,GACxB,GAAqB,iBAAV+F,EAAoB,CAC7B,IAAI5I,KAAKsD,MAAMsF,GACV,OAAO/E,EAAQ9C,KAAKf,KAAMwI,EAASC,EAAMG,GADtBA,EAAS5I,KAAKsD,MAAMsF,GAK9C,IADAA,EAASA,GAAU5I,KAAKuD,SAASV,cACX6K,EACpB,OAAO1B,EAAUpD,EAAO7G,OAAQ/B,KAAKkC,MAAM+J,YACjCrD,EAAO7G,OACP6G,EAAOnG,UAAYzC,KAAK2C,SAASiG,GAG7C,IACI7G,EAAQyB,EAAGQ,EADX4J,EAAMC,EAAc9M,KAAKf,KAAMyI,EAAM5F,GAgBzC,OAdI+K,IACF7L,EAAS6L,EAAI7L,OACb0G,EAAOmF,EAAInF,KACXzE,EAAS4J,EAAI5J,QAGXjC,aAAkB2L,EACpBlK,EAAIzB,EAAOU,UAAY+F,EAAQzH,KAAKf,KAAM+B,EAAOA,OAAQ0G,OAAMrG,EAAW4B,QACtD5B,IAAXL,IACTyB,EAAIwI,EAAUjK,EAAQ/B,KAAKkC,MAAM+J,YAC3BlK,EACAyG,EAAQzH,KAAKf,KAAM+B,EAAQ0G,OAAMrG,EAAW4B,IAG7CR,EAWT,SAASqK,EAAcpF,EAAM5F,GAE3B,IAAI/B,EAAIuE,EAAIyI,MAAMjL,GACdkL,EAAUC,EAAalN,GACvBkD,EAASiK,EAAYjO,KAAKkO,OAAOzF,EAAK1G,SAC1C,GAAwC,IAApCwC,OAAO4J,KAAK1F,EAAK1G,QAAQf,QAAgB+M,IAAY/J,EAAQ,CAC/D,IAAIoK,EAAKjK,EAAY4J,GACjBnF,EAAS5I,KAAKsD,MAAM8K,GACxB,GAAqB,iBAAVxF,EACT,OAuBN,SAA0BH,EAAM5F,EAAKwL,GAEnC,IAAIT,EAAMC,EAAc9M,KAAKf,KAAMyI,EAAM5F,GACzC,GAAI+K,EAAK,CACP,IAAI7L,EAAS6L,EAAI7L,OACbiC,EAAS4J,EAAI5J,OACjByE,EAAOmF,EAAInF,KACX,IAAI2F,EAAKpO,KAAKkO,OAAOnM,GAErB,OADIqM,IAAIpK,EAASsK,EAAWtK,EAAQoK,IAC7BG,EAAexN,KAAKf,KAAMqO,EAAWrK,EAAQjC,EAAQ0G,KAhClC1H,KAAKf,KAAMyI,EAAMG,EAAQ9H,GAC5C,GAAI8H,aAAkB8E,EACtB9E,EAAOnG,UAAUzC,KAAK2C,SAASiG,GACpCH,EAAOG,MACF,CAEL,MADAA,EAAS5I,KAAKuD,SAAS6K,cACDV,GAMpB,OAJA,GADK9E,EAAOnG,UAAUzC,KAAK2C,SAASiG,GAChCwF,GAAMjK,EAAYtB,GACpB,MAAO,CAAEd,OAAQ6G,EAAQH,KAAMA,EAAMzE,OAAQA,GAC/CyE,EAAOG,EAKX,IAAKH,EAAK1G,OAAQ,OAClBiC,EAASiK,EAAYjO,KAAKkO,OAAOzF,EAAK1G,SAExC,OAAOwM,EAAexN,KAAKf,KAAMc,EAAGkD,EAAQyE,EAAK1G,OAAQ0G,IAtF3D/I,EAAOD,QAAUoE,GAETM,YAAcA,EACtBN,EAAQO,SAAW6J,EACnBpK,EAAQK,IAAMoK,EACdzK,EAAQ2K,IA0NR,SAAoBzM,GAClB,IAAI0M,EAAWtK,EAAYnE,KAAKkO,OAAOnM,IACnC2M,EAAU,CAACC,GAAIF,GACfG,EAAY,CAACD,GAAIV,EAAYQ,GAAU,IACvC/F,EAAY,GACZ3I,EAAOC,KAgCX,OA9BA2N,EAAS5L,EAAQ,CAAC8M,SAAS,GAAO,SAASzL,EAAK0L,EAASC,EAAYC,EAAeC,EAAezC,EAAc0C,GAC/G,GAAgB,KAAZJ,EAAJ,CACA,IAAIV,EAAKrO,EAAKmO,OAAO9K,GACjBY,EAAS0K,EAAQM,GACjB5K,EAAWwK,EAAUI,GAAiB,IAAMC,EAIhD,QAHiB7M,IAAb8M,IACF9K,GAAY,KAA0B,iBAAZ8K,EAAuBA,EAAWlK,EAAKmK,eAAeD,KAEjE,iBAANd,EAAgB,CACzBA,EAAKpK,EAASG,EAAYH,EAASqB,EAAIxB,QAAQG,EAAQoK,GAAMA,GAE7D,IAAIxF,EAAS7I,EAAKuD,MAAM8K,GAExB,GADqB,iBAAVxF,IAAoBA,EAAS7I,EAAKuD,MAAMsF,IAC/CA,GAAUA,EAAO7G,QACnB,IAAKuG,EAAMlF,EAAKwF,EAAO7G,QACrB,MAAM,IAAInB,MAAM,OAASwN,EAAK,2CAC3B,GAAIA,GAAMjK,EAAYC,GAC3B,GAAa,KAATgK,EAAG,GAAW,CAChB,GAAI1F,EAAU0F,KAAQ9F,EAAMlF,EAAKsF,EAAU0F,IACzC,MAAM,IAAIxN,MAAM,OAASwN,EAAK,sCAChC1F,EAAU0F,GAAMhL,OAEhBrD,EAAKuD,MAAM8K,GAAMhK,EAIvBsK,EAAQI,GAAW9K,EACnB4K,EAAUE,GAAW1K,KAGhBsE,GA9PT7E,EAAQmI,UAAYA,EACpBnI,EAAQ9B,OAAS8L,EAkGjB,IAAIuB,EAAuBpK,EAAKqK,OAAO,CAAC,aAAc,oBAAqB,OAAQ,eAAgB,gBAEnG,SAASd,EAAeF,EAAWrK,EAAQjC,EAAQ0G,GAGjD,GADA4F,EAAUiB,SAAWjB,EAAUiB,UAAY,GACN,KAAjCjB,EAAUiB,SAASC,MAAM,EAAE,GAA/B,CAGA,IAFA,IAAIC,EAAQnB,EAAUiB,SAAS5H,MAAM,KAE5BnH,EAAI,EAAGA,EAAIiP,EAAMxO,OAAQT,IAAK,CACrC,IAAIkP,EAAOD,EAAMjP,GACjB,GAAIkP,EAAM,CAGR,QAAerN,KADfL,EAASA,EADT0N,EAAOzK,EAAK0K,iBAAiBD,KAEH,MAC1B,IAAIrB,EACJ,IAAKgB,EAAqBK,MACxBrB,EAAKpO,KAAKkO,OAAOnM,MACTiC,EAASsK,EAAWtK,EAAQoK,IAChCrM,EAAO4B,MAAM,CACf,IAAIA,EAAO2K,EAAWtK,EAAQjC,EAAO4B,MACjCiK,EAAMC,EAAc9M,KAAKf,KAAMyI,EAAM9E,GACrCiK,IACF7L,EAAS6L,EAAI7L,OACb0G,EAAOmF,EAAInF,KACXzE,EAAS4J,EAAI5J,UAMvB,YAAe5B,IAAXL,GAAwBA,IAAW0G,EAAK1G,OACnC,CAAEA,OAAQA,EAAQ0G,KAAMA,EAAMzE,OAAQA,QAD/C,GAKF,IAAI2L,EAAiB3K,EAAKqK,OAAO,CAC/B,OAAQ,SAAU,UAClB,YAAa,YACb,gBAAiB,gBACjB,WAAY,WACZ,UAAW,UACX,cAAe,aACf,WAAY,SAEd,SAASrD,EAAUjK,EAAQ6N,GACzB,OAAc,IAAVA,SACUxN,IAAVwN,IAAiC,IAAVA,EAK7B,SAASC,EAAW9N,GAClB,IAAI+N,EACJ,GAAIC,MAAMC,QAAQjO,IAChB,IAAK,IAAIxB,EAAE,EAAGA,EAAEwB,EAAOf,OAAQT,IAE7B,GAAmB,iBADnBuP,EAAO/N,EAAOxB,MACkBsP,EAAWC,GAAO,OAAO,OAG3D,IAAK,IAAIxO,KAAOS,EAAQ,CACtB,GAAW,QAAPT,EAAe,OAAO,EAE1B,GAAmB,iBADnBwO,EAAO/N,EAAOT,MACkBuO,EAAWC,GAAO,OAAO,EAG7D,OAAO,EAnB2CD,CAAW9N,GACpD6N,EAsBX,SAASK,EAAUlO,GACjB,IAAe+N,EAAXI,EAAQ,EACZ,GAAIH,MAAMC,QAAQjO,IAChB,IAAK,IAAIxB,EAAE,EAAGA,EAAEwB,EAAOf,OAAQT,IAG7B,GADmB,iBADnBuP,EAAO/N,EAAOxB,MACe2P,GAASD,EAAUH,IAC5CI,GAASC,EAAAA,EAAU,OAAOA,EAAAA,OAGhC,IAAK,IAAI7O,KAAOS,EAAQ,CACtB,GAAW,QAAPT,EAAe,OAAO6O,EAAAA,EAC1B,GAAIR,EAAerO,GACjB4O,SAIA,GADmB,iBADnBJ,EAAO/N,EAAOT,MACe4O,GAASD,EAAUH,GAAQ,GACpDI,GAASC,EAAAA,EAAU,OAAOA,EAAAA,EAIpC,OAAOD,EA1CgBD,CAAUlO,IAAW6N,OAAvC,GA8CP,SAAS3B,EAAYG,EAAIgC,GAGvB,OAFkB,IAAdA,IAAqBhC,EAAKjK,EAAYiK,IAEnCJ,EADC3I,EAAIyI,MAAMM,IAKpB,SAASJ,EAAalN,GACpB,OAAOuE,EAAIgL,UAAUvP,GAAG4G,MAAM,KAAK,GAAK,IAI1C,IAAI4I,EAAsB,QAC1B,SAASnM,EAAYiK,GACnB,OAAOA,EAAKA,EAAGmC,QAAQD,EAAqB,IAAM,GAIpD,SAAShC,EAAWtK,EAAQoK,GAE1B,OADAA,EAAKjK,EAAYiK,GACV/I,EAAIxB,QAAQG,EAAQoK,KA6C3B,CAACoC,eAAe,EAAExI,SAAS,GAAGuF,kBAAkB,GAAGkD,uBAAuB,GAAGC,SAAS,KAAKC,EAAE,CAAC,SAASlQ,EAAQf,EAAOD,GACxH,aAEA,IAAImR,EAAcnQ,EAAQ,YACtB4O,EAAS5O,EAAQ,UAAU4O,OAE/B3P,EAAOD,QAAU,WACf,IAAIiK,EAAQ,CACV,CAAEmH,KAAM,SACNC,MAAO,CAAE,CAAEC,QAAW,CAAC,qBACd,CAAEC,QAAW,CAAC,qBAAuB,aAAc,WAC9D,CAAEH,KAAM,SACNC,MAAO,CAAE,YAAa,YAAa,UAAW,WAChD,CAAED,KAAM,QACNC,MAAO,CAAE,WAAY,WAAY,QAAS,WAAY,gBACxD,CAAED,KAAM,SACNC,MAAO,CAAE,gBAAiB,gBAAiB,WAAY,eAAgB,gBAC9D,CAAEG,WAAc,CAAC,uBAAwB,wBACpD,CAAEH,MAAO,CAAE,OAAQ,QAAS,OAAQ,MAAO,QAAS,QAAS,QAAS,QAGpEI,EAAM,CAAE,OAAQ,YA4CpB,OAnCAxH,EAAMyH,IAAM9B,EAAO6B,GACnBxH,EAAM0H,MAAQ/B,EAFF,CAAE,SAAU,UAAW,SAAU,QAAS,SAAU,UAAW,SAI3E3F,EAAM2H,QAAQ,SAAUC,GACtBA,EAAMR,MAAQQ,EAAMR,MAAMS,IAAI,SAAUxE,GACtC,IAAIyE,EACJ,GAAsB,iBAAXzE,EAAqB,CAC9B,IAAIzL,EAAMiD,OAAO4J,KAAKpB,GAAS,GAC/ByE,EAAezE,EAAQzL,GACvByL,EAAUzL,EACVkQ,EAAaH,QAAQ,SAAUI,GAC7BP,EAAIQ,KAAKD,GACT/H,EAAMyH,IAAIM,IAAK,IASnB,OANAP,EAAIQ,KAAK3E,GACErD,EAAMyH,IAAIpE,GAAW,CAC9BA,QAASA,EACTlM,KAAM+P,EAAY7D,GAClB4E,WAAYH,KAKhB9H,EAAMyH,IAAIS,SAAW,CACnB7E,QAAS,WACTlM,KAAM+P,EAAYgB,UAGhBN,EAAMT,OAAMnH,EAAM0H,MAAME,EAAMT,MAAQS,KAG5C5H,EAAMmI,SAAWxC,EAAO6B,EAAIY,OAxCb,CACb,UAAW,MAAO,KAAM,QAAS,SAAU,QAC3C,cAAe,UAAW,cAC1B,WAAY,WAAY,YACxB,mBAAoB,kBACpB,kBAAmB,OAAQ,UAoC7BpI,EAAMqI,OAAS,GAERrI,IAGP,CAACsI,WAAW,GAAGhK,SAAS,KAAKiK,EAAE,CAAC,SAASxR,EAAQf,EAAOD,GAC1D,aAEA,IAAIuF,EAAOvE,EAAQ,UAEnBf,EAAOD,QAEP,SAAsByS,GACpBlN,EAAKc,KAAKoM,EAAKlS,QAGf,CAACgI,SAAS,KAAKmK,EAAE,CAAC,SAAS1R,EAAQf,EAAOD,GAC5C,aAIAC,EAAOD,QAAU,SAAoBuG,GAKnC,IAJA,IAGIzE,EAHAP,EAAS,EACToR,EAAMpM,EAAIhF,OACVqR,EAAM,EAEHA,EAAMD,GACXpR,IAEa,QADbO,EAAQyE,EAAIsM,WAAWD,OACA9Q,GAAS,OAAU8Q,EAAMD,GAGtB,QAAX,OADb7Q,EAAQyE,EAAIsM,WAAWD,MACSA,IAGpC,OAAOrR,IAGP,IAAIuR,GAAG,CAAC,SAAS9R,EAAQf,EAAOD,GAClC,aAsCA,SAAS+S,EAAcC,EAAUC,EAAMC,GACrC,IAAIC,EAAQD,EAAS,QAAU,QAC3BE,EAAMF,EAAS,OAAS,OACxBG,EAAKH,EAAS,IAAM,GACpBI,EAAMJ,EAAS,GAAK,IACxB,OAAQF,GACN,IAAK,OAAQ,OAAOC,EAAOE,EAAQ,OACnC,IAAK,QAAS,OAAOE,EAAK,iBAAmBJ,EAAO,IACpD,IAAK,SAAU,MAAO,IAAMI,EAAKJ,EAAOG,EAClB,UAAYH,EAAOE,EAAQ,WAAaC,EACxCE,EAAM,iBAAmBL,EAAO,KACtD,IAAK,UAAW,MAAO,WAAaA,EAAOE,EAAQ,WAAaC,EACzCE,EAAM,IAAML,EAAO,QACnBG,EAAMH,EAAOE,EAAQF,EAAO,IACnD,QAAS,MAAO,UAAYA,EAAOE,EAAQ,IAAMH,EAAW,KAjDhE/S,EAAOD,QAAU,CACfqG,KA2BF,SAAcxF,EAAG0S,GAEf,IAAK,IAAI1R,KADT0R,EAAKA,GAAM,GACK1S,EAAG0S,EAAG1R,GAAOhB,EAAEgB,GAC/B,OAAO0R,GA7BPR,cAAeA,EACfS,eAmDF,SAAwBC,EAAWR,GACjC,OAAQQ,EAAUlS,QAChB,KAAK,EAAG,OAAOwR,EAAcU,EAAU,GAAIR,GAAM,GACjD,QACE,IAAI7R,EAAO,GACPuQ,EAAQ/B,EAAO6D,GASnB,IAAK,IAAI7S,KARL+Q,EAAM+B,OAAS/B,EAAMgC,SACvBvS,EAAOuQ,EAAMiC,KAAO,IAAK,KAAOX,EAAO,OACvC7R,GAAQ,UAAY6R,EAAO,wBACpBtB,EAAMiC,YACNjC,EAAM+B,aACN/B,EAAMgC,QAEXhC,EAAMkC,eAAelC,EAAMmC,QACjBnC,EACZvQ,IAASA,EAAO,OAAS,IAAO2R,EAAcnS,EAAGqS,GAAM,GAEzD,OAAO7R,IAnEX2S,cAyEF,SAAuBC,EAAmBP,GACxC,GAAInD,MAAMC,QAAQkD,GAAY,CAE5B,IADA,IAAI9B,EAAQ,GACH7Q,EAAE,EAAGA,EAAE2S,EAAUlS,OAAQT,IAAK,CACrC,IAAIF,EAAI6S,EAAU3S,IACdmT,EAAgBrT,IACW,UAAtBoT,GAAuC,UAANpT,KADlB+Q,EAAMA,EAAMpQ,QAAUX,GAGhD,GAAI+Q,EAAMpQ,OAAQ,OAAOoQ,MACpB,CAAA,GAAIsC,EAAgBR,GACzB,MAAO,CAACA,GACH,GAA0B,UAAtBO,GAA+C,UAAdP,EAC1C,MAAO,CAAC,WApFV7D,OAAQA,EACRsE,YAAaA,EACbC,aAAcA,EACdtL,MAAO7H,EAAQ,mBACf4H,WAAY5H,EAAQ,gBACpBoT,cA+GF,SAAuB7N,EAAK8N,GAC1BA,GAAW,SACX,IAAI7N,EAAUD,EAAIE,MAAM,IAAI6B,OAAO+L,EAAS,MAC5C,OAAO7N,EAAUA,EAAQjF,OAAS,GAjHlC+S,WAqHF,SAAoB/N,EAAK8N,EAASE,GAGhC,OAFAF,GAAW,WACXE,EAAOA,EAAKzD,QAAQ,MAAO,QACpBvK,EAAIuK,QAAQ,IAAIxI,OAAO+L,EAAS,KAAME,EAAO,OAvHpDC,YA8HF,SAAqBC,GACnB,OAAOA,EAAI3D,QAAQ4D,EAAY,IACpB5D,QAAQ6D,EAAkB,IAC1B7D,QAAQ8D,EAAoB,eAhIvCC,iBA8IF,SAA0BJ,EAAKK,GAC7B,IAAItO,EAAUiO,EAAIhO,MAAMsO,GACpBvO,GAA6B,GAAlBA,EAAQjF,SACrBkT,EAAMK,EACEL,EAAI3D,QAAQkE,EAAqB,IAC7BlE,QAAQmE,EAAcC,GAC1BT,EAAI3D,QAAQqE,EAAe,IACvBrE,QAAQsE,EAAcC,IAIpC,OADA7O,EAAUiO,EAAIhO,MAAM6O,KACe,IAAnB9O,EAAQjF,OACjBkT,EAAI3D,QAAQyE,EAAiB,IADSd,GAxJ7Ce,eA6JF,SAAwBlT,EAAQ+O,GAC9B,GAAqB,kBAAV/O,EAAqB,OAAQA,EACxC,IAAK,IAAIT,KAAOS,EAAQ,GAAI+O,EAAMxP,GAAM,OAAO,GA9J/C4T,qBAkKF,SAA8BnT,EAAQ+O,EAAOqE,GAC3C,GAAqB,kBAAVpT,EAAqB,OAAQA,GAA2B,OAAjBoT,EAClD,IAAK,IAAI7T,KAAOS,EAAQ,GAAIT,GAAO6T,GAAiBrE,EAAMxP,GAAM,OAAO,GAnKvE8T,mBAuKF,SAA4BrT,EAAQ+O,GAClC,GAAqB,kBAAV/O,EAAqB,OAChC,IAAK,IAAIT,KAAOS,EAAQ,IAAK+O,EAAMxP,GAAM,OAAOA,GAxKhD+K,eAAgBA,EAChBgJ,YAgLF,SAAqBC,EAAatB,EAAMuB,EAAcC,GAIpD,OAAOC,EAAUH,EAHNC,EACG,SAAavB,GAAQwB,EAAW,GAAK,8CACpCA,EAAW,SAAaxB,EAAO,SAAa,YAAiBA,EAAO,cAlLnF0B,QAuLF,SAAiBJ,EAAaK,EAAMJ,GAClC,IAAIK,EACUvJ,EADHkJ,EACkB,IAAMM,EAAkBF,GACxBhC,EAAYgC,IACzC,OAAOF,EAAUH,EAAaM,IA1L9BE,QAgMF,SAAiBC,EAAOC,EAAKC,GAC3B,IAAIC,EAAIC,EAAazD,EAAMzM,EAC3B,GAAc,KAAV8P,EAAc,MAAO,WACzB,GAAgB,KAAZA,EAAM,GAAW,CACnB,IAAKtQ,EAAaoC,KAAKkO,GAAQ,MAAM,IAAInV,MAAM,yBAA2BmV,GAC1EI,EAAcJ,EACdrD,EAAO,eACF,CAEL,KADAzM,EAAU8P,EAAM7P,MAAMP,IACR,MAAM,IAAI/E,MAAM,yBAA2BmV,GAGzD,GAFAG,GAAMjQ,EAAQ,GAEK,MADnBkQ,EAAclQ,EAAQ,IACE,CACtB,GAAU+P,GAANE,EAAW,MAAM,IAAItV,MAAM,gCAAkCsV,EAAK,gCAAkCF,GACxG,OAAOC,EAAMD,EAAME,GAGrB,GAASF,EAALE,EAAU,MAAM,IAAItV,MAAM,sBAAwBsV,EAAK,gCAAkCF,GAE7F,GADAtD,EAAO,QAAWsD,EAAME,GAAO,KAC1BC,EAAa,OAAOzD,EAK3B,IAFA,IAAIsB,EAAOtB,EACP0D,EAAWD,EAAYzO,MAAM,KACxBnH,EAAE,EAAGA,EAAE6V,EAASpV,OAAQT,IAAK,CACpC,IAAI8V,EAAUD,EAAS7V,GACnB8V,IACF3D,GAAQiB,EAAY2C,EAAoBD,IACxCrC,GAAQ,OAAStB,GAGrB,OAAOsB,GA9NPtE,iBAwOF,SAA0B1J,GACxB,OAAOsQ,EAAoBC,mBAAmBvQ,KAxO9CsQ,oBAAqBA,EACrBnH,eA2OF,SAAwBnJ,GACtB,OAAOwQ,mBAAmBX,EAAkB7P,KA3O5C6P,kBAAmBA,GAoDrB,IAAInC,EAAkBrE,EAAO,CAAE,SAAU,SAAU,UAAW,UAAW,SAkBzE,SAASA,EAAOjC,GAEd,IADA,IAAIqJ,EAAO,GACFlW,EAAE,EAAGA,EAAE6M,EAAIpM,OAAQT,IAAKkW,EAAKrJ,EAAI7M,KAAM,EAChD,OAAOkW,EAIT,IAAIC,EAAa,wBACbC,EAAe,QACnB,SAAShD,EAAYrS,GACnB,MAAqB,iBAAPA,EACJ,IAAMA,EAAM,IACZoV,EAAW7O,KAAKvG,GACd,IAAMA,EACN,KAAOsS,EAAatS,GAAO,KAIzC,SAASsS,EAAa5N,GACpB,OAAOA,EAAIuK,QAAQoG,EAAc,QACtBpG,QAAQ,MAAO,OACfA,QAAQ,MAAO,OACfA,QAAQ,MAAO,OACfA,QAAQ,MAAO,OAkB5B,IAAI4D,EAAa,gBACbC,EAAmB,uCACnBC,EAAqB,8CAQzB,IAAIG,EAAgB,eAChBI,EAAgB,kEAChBH,EAAsB,uCACtBI,EAAe,uBACfC,EAAc,uCACdJ,EAAe,gFACfC,EAAoB,eACpBI,EAAkB,qCAClBC,EAAkB,iDAoCtB,SAAS3I,EAAerG,GACtB,MAAO,IAAO4N,EAAa5N,GAAO,IAoBpC,IAAIP,EAAe,sBACfE,EAAwB,mCAoC5B,SAAS8P,EAAW9U,EAAGiW,GACrB,MAAS,MAALjW,EAAkBiW,GACdjW,EAAI,MAAQiW,GAAGrG,QAAQ,UAAW,IAc5C,SAASsF,EAAkB7P,GACzB,OAAOA,EAAIuK,QAAQ,KAAM,MAAMA,QAAQ,MAAO,MAIhD,SAAS+F,EAAoBtQ,GAC3B,OAAOA,EAAIuK,QAAQ,MAAO,KAAKA,QAAQ,MAAO,OAG9C,CAACsG,eAAe,EAAEtJ,kBAAkB,KAAKuJ,GAAG,CAAC,SAASrW,EAAQf,EAAOD,GACvE,aAEA,IAAIsX,EAAW,CACb,aACA,UACA,mBACA,UACA,mBACA,YACA,YACA,UACA,kBACA,WACA,WACA,cACA,gBACA,gBACA,WACA,uBACA,OACA,SACA,SAGFrX,EAAOD,QAAU,SAAUuX,EAAYC,GACrC,IAAK,IAAI1W,EAAE,EAAGA,EAAE0W,EAAqBjW,OAAQT,IAAK,CAChDyW,EAAaE,KAAKpJ,MAAMoJ,KAAKC,UAAUH,IACvC,IAEII,EAFAhB,EAAWa,EAAqB1W,GAAGmH,MAAM,KACzCmK,EAAWmF,EAEf,IAAKI,EAAE,EAAGA,EAAEhB,EAASpV,OAAQoW,IAC3BvF,EAAWA,EAASuE,EAASgB,IAE/B,IAAKA,EAAE,EAAGA,EAAEL,EAAS/V,OAAQoW,IAAK,CAChC,IAAI9V,EAAMyV,EAASK,GACfrV,EAAS8P,EAASvQ,GAClBS,IACF8P,EAASvQ,GAAO,CACd+V,MAAO,CACLtV,EACA,CAAE4B,KAAM,oFAOlB,OAAOqT,IAGP,IAAIM,GAAG,CAAC,SAAS7W,EAAQf,EAAOD,GAClC,aAEA,IAAIuX,EAAavW,EAAQ,oCAEzBf,EAAOD,QAAU,CACf8X,IAAK,0EACLC,YAAa,CACXC,YAAaT,EAAWQ,YAAYC,aAEtC5G,KAAM,SACNhE,aAAc,CACZ9K,OAAQ,CAAC,YACTgU,MAAO,CAAC,YACR2B,WAAY,CAAC,UACbC,MAAO,CAACC,IAAK,CAACC,SAAU,CAAC,YAE3B5G,WAAY,CACVJ,KAAMmG,EAAW/F,WAAWJ,KAC5B9O,OAAQ,CAAC8O,KAAM,WACf6G,WAAY,CAAC7G,KAAM,WACnBhE,aAAc,CACZgE,KAAM,QACNiH,MAAO,CAACjH,KAAM,WAEhBmG,WAAY,CAACnG,KAAM,UACnBkH,UAAW,CAAClH,KAAM,WAClB8G,MAAO,CAAC9G,KAAM,WACdkF,MAAO,CAAClF,KAAM,WACd0D,MAAO,CAAC1D,KAAM,WACdlM,OAAQ,CACN0S,MAAO,CACL,CAACxG,KAAM,WACP,CAACmH,MAAO,aAMd,CAACC,mCAAmC,KAAKC,GAAG,CAAC,SAASzX,EAAQf,EAAOD,GACvE,aACAC,EAAOD,QAAU,SAAyBgN,EAAI0L,GAC5C,IAUEC,EAVElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UAEzB7C,EAAQ,QAAUwC,GAAY,IAC9BM,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAEjB,IAAIsV,EAAqB,WAAZZ,EACXa,EAAoBD,EAAS,mBAAqB,mBAClDE,EAAcxM,EAAG1K,OAAOiX,GACxBE,EAAczM,EAAG9D,KAAKoN,OAASkD,GAAeA,EAAYlD,MAC1DoD,EAAMJ,EAAS,IAAM,IACrBK,EAASL,EAAS,IAAM,IACxBM,OAAgBjX,EAClB,GAAI8W,EAAa,CACf,IAAII,EAAmB7M,EAAGzH,KAAK8Q,QAAQmD,EAAYlD,MAAOwC,EAAU9L,EAAGqM,aACrES,EAAa,YAAclB,EAC3BmB,EAAY,WAAanB,EACzBoB,EAAgB,eAAiBpB,EAEjCqB,EAAS,QADTC,EAAU,KAAOtB,GACY,OAC/BnE,GAAO,kBAAoB,EAAS,MAAQ,EAAqB,KAGjE,IACI0F,EADAP,EAAgBL,GAChBY,EAAaA,GAAc,IACpBlI,KAHXwC,GAAO,QAAU,EAAe,SAAW,EAAc,cADzDoF,EAAmB,aAAejB,GAC2D,SAAW,EAAc,oBAAwB,EAAc,sBAA0B,EAAc,oBAIpMnE,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,iBAAoBmF,GAAiB,mBAAqB,oCAA0C5M,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kBACjK,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAAmB,EAAsB,wBAE9CzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,gBACH2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAEhFA,GAAO,IAAM,EAAc,qBAAyB,EAAe,MAAQ,EAAiB,qBAAuB,EAAqB,IAAM,EAAQ,KAAO,EAAiB,OAAS,EAAU,IAAM,EAAW,KAAO,EAAqB,MAAQ,EAAU,IAAM,EAAW,IAAM,EAAiB,WAAa,EAAe,MAAQ,EAAqB,gBAAkB,EAAU,IAAM,EAAW,KAAO,EAAiB,MAAQ,EAAU,IAAM,EAAW,IAAM,EAAiB,SAAW,EAAU,QAAU,EAAU,aAAe,EAAS,MAAQ,EAAe,OAAU,EAAQ,QAAY,EAAQ,YAC9kB9R,IAAZqB,IAEFiV,EAAiBjM,EAAGhC,cAAgB,KADpC4O,EAAgBL,GAEhBZ,EAAekB,EACfT,EAAUK,OAEP,CAEHQ,EAASP,EACX,IAFIM,EAAsC,iBAAfR,IAENJ,EAAS,CAC5B,IAAIc,EAAU,IAAOD,EAAS,IAC9BxF,GAAO,SACH2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAEhFA,GAAO,MAAQ,EAAiB,qBAAuB,EAAgB,IAAM,EAAQ,KAAO,EAAiB,MAAQ,EAAU,IAAM,EAAW,KAAO,EAAgB,MAAQ,EAAU,IAAM,EAAW,IAAM,EAAiB,SAAW,EAAU,QAAU,EAAU,WACrQ,CACDuF,QAA6BrX,IAAZqB,GACnB8V,GAAa,EAEbb,EAAiBjM,EAAGhC,cAAgB,KADpC4O,EAAgBL,GAEhBZ,EAAea,EACfG,GAAU,MAENK,IAAerB,EAAe+B,KAAKpB,EAAS,MAAQ,OAAOE,EAAaxV,IACxEwV,MAAiBQ,GAAgBrB,IACnCmB,GAAa,EAEbb,EAAiBjM,EAAGhC,cAAgB,KADpC4O,EAAgBL,GAEhBI,GAAU,MAEVG,GAAa,EACbG,GAAU,MAGVC,EAAU,IAAOD,EAAS,IAC9BxF,GAAO,SACH2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAEhFA,GAAO,IAAM,EAAU,IAAM,EAAW,IAAM,EAAiB,OAAS,EAAU,QAAU,EAAU,QAG1GmF,EAAgBA,GAAiBlB,GAC7ByB,EAAaA,GAAc,IACpBlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,iBAAoBmF,GAAiB,UAAY,oCAA0C5M,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,4BAA8B,EAAY,YAAc,EAAiB,gBAAkB,EAAe,OAClQ,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,0BAA6B,EAAW,IAE7CA,GADE2E,EACK,OAAU,EAEL,EAAiB,KAG7BpM,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAK,EAEd3E,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAEL8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,MACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAIkG,GAAG,CAAC,SAAS3Z,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA8BgN,EAAI0L,GACjD,IAUEC,EAVElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UAEzB7C,EAAQ,QAAUwC,GAAY,IAC9BM,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAGjByQ,GAAO,QACH2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAGhF,IAAImF,EAAgBlB,EAChByB,EAAaA,GAAc,GAC/BA,EAAWlI,KAHXwC,GAAO,IAAM,EAAU,YALD,YAAZiE,EAAyB,IAAM,KAKG,IAAM,EAAiB,QAInEjE,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,iBAAoBmF,GAAiB,eAAiB,oCAA0C5M,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,uBAAyB,EAAiB,OACvM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gCAELA,GADc,YAAZiE,EACK,OAEA,QAETjE,GAAO,SAELA,GADE2E,EACK,OAAU,EAAiB,OAE3B,GAAK,EAEd3E,GAAO,YAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAK,EAEd3E,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,KACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAImG,GAAG,CAAC,SAAS5Z,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA+BgN,EAAI0L,GAClD,IAUEC,EAVElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UAEzB7C,EAAQ,QAAUwC,GAAY,IAC9BM,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAGjByQ,GAAO,QACH2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAG9EA,IADsB,IAApBzH,EAAG9D,KAAK2R,QACH,IAAM,EAAU,WAEhB,eAAiB,EAAU,KAGpC,IAAIjB,EAAgBlB,EAChByB,EAAaA,GAAc,GAC/BA,EAAWlI,KAHXwC,GAAO,KAVe,aAAZiE,EAA0B,IAAM,KAUrB,IAAM,EAAiB,QAI5CjE,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,iBAAoBmF,GAAiB,gBAAkB,oCAA0C5M,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,uBAAyB,EAAiB,OACxM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,8BAELA,GADc,aAAZiE,EACK,SAEA,UAETjE,GAAO,SAELA,GADE2E,EACK,OAAU,EAAiB,OAE3B,GAAK,EAEd3E,GAAO,iBAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAK,EAEd3E,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,KACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAIqG,GAAG,CAAC,SAAS9Z,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAmCgN,EAAI0L,GACtD,IAUEC,EAVElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UAEzB7C,EAAQ,QAAUwC,GAAY,IAC9BM,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAGjByQ,GAAO,QACH2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAGhF,IAAImF,EAAgBlB,EAChByB,EAAaA,GAAc,GAC/BA,EAAWlI,KAHXwC,GAAO,gBAAkB,EAAU,aALb,iBAAZiE,EAA8B,IAAM,KAKW,IAAM,EAAiB,QAIhFjE,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,iBAAoBmF,GAAiB,oBAAsB,oCAA0C5M,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,uBAAyB,EAAiB,OAC5M,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gCAELA,GADc,iBAAZiE,EACK,OAEA,QAETjE,GAAO,SAELA,GADE2E,EACK,OAAU,EAAiB,OAE3B,GAAK,EAEd3E,GAAO,iBAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAK,EAEd3E,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,KACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAIsG,GAAG,CAAC,SAAS/Z,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAwBgN,EAAI0L,GAC3C,IAAIjE,EAAM,IACNzQ,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB6B,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACnBiO,EAAiB,GACrBD,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC3BsC,EAAiBH,EAAIzW,OACvB6W,GAAmB,EACjBC,EAAOrX,EACX,GAAIqX,EAGF,IAFA,IAAIC,EAAMC,GAAM,EACdC,EAAKH,EAAK9Z,OAAS,EACdga,EAAKC,GACVF,EAAOD,EAAKE,GAAM,IACbvO,EAAG9D,KAAKuS,eAAgC,iBAARH,GAA+C,EAA3BxW,OAAO4J,KAAK4M,GAAM/Z,OAAayL,EAAGzH,KAAKiQ,eAAe8F,EAAMtO,EAAG/C,MAAMyH,QAC5H0J,GAAmB,EACnBJ,EAAI1Y,OAASgZ,EACbN,EAAIjQ,WAAaiO,EAAc,IAAMuC,EAAK,IAC1CP,EAAIhQ,cAAgBiO,EAAiB,IAAMsC,EAC3C9G,GAAO,KAAQzH,EAAGhK,SAASgY,GAAQ,IACnCA,EAAIzW,OAAS4W,EACTjC,IACFzE,GAAO,QAAU,EAAe,OAChCwG,GAAkB,MAa1B,OARI/B,IAEAzE,GADE2G,EACK,gBAEA,IAAOH,EAAenL,MAAM,GAAI,GAAM,KAGjD2E,EAAMzH,EAAGzH,KAAKiP,YAAYC,KAI1B,IAAIiH,GAAG,CAAC,SAAS1a,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAwBgN,EAAI0L,GAC3C,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBgD,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACnBiO,EAAiB,GACrBD,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAI/B,GAHqB7U,EAAQqJ,MAAM,SAASiO,GAC1C,OAAQtO,EAAG9D,KAAKuS,eAAgC,iBAARH,GAA+C,EAA3BxW,OAAO4J,KAAK4M,GAAM/Z,OAAayL,EAAGzH,KAAKiQ,eAAe8F,EAAMtO,EAAG/C,MAAMyH,OAE/G,CAClB,IAAIyJ,EAAiBH,EAAIzW,OACzBkQ,GAAO,QAAU,EAAU,kBAAoB,EAAW,cAC1D,IAAIoH,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvC,IAAIY,EAAOrX,EACX,GAAIqX,EAGF,IAFA,IAAIC,EAAMC,GAAM,EACdC,EAAKH,EAAK9Z,OAAS,EACdga,EAAKC,GACVF,EAAOD,EAAKE,GAAM,GAClBP,EAAI1Y,OAASgZ,EACbN,EAAIjQ,WAAaiO,EAAc,IAAMuC,EAAK,IAC1CP,EAAIhQ,cAAgBiO,EAAiB,IAAMsC,EAC3C9G,GAAO,KAAQzH,EAAGhK,SAASgY,GAAQ,IACnCA,EAAIzW,OAAS4W,EACb1G,GAAO,IAAM,EAAW,MAAQ,EAAW,OAAS,EAAe,UAAY,EAAW,OAC1FwG,GAAkB,IAGtBjO,EAAGyN,cAAgBO,EAAIP,cAAgBoB,EACvCpH,GAAO,IAAM,EAAmB,SAAW,EAAW,sBAC9B,IAApBzH,EAAGoN,cACL3F,GAAO,sDAAyEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kBACtI,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,oDAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,gFACFzH,EAAGyN,eAAiBvB,IAGrBzE,GADEzH,EAAG8H,MACE,wCAEA,8CAGXL,GAAO,uBAAyB,EAAU,iCAAmC,EAAU,sBAAwB,EAAU,4BACrHzH,EAAG9D,KAAKiQ,YACV1E,GAAO,OAETA,EAAMzH,EAAGzH,KAAKiP,YAAYC,QAEtByE,IACFzE,GAAO,iBAGX,OAAOA,IAGP,IAAIqH,GAAG,CAAC,SAAS9a,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA0BgN,EAAI0L,GAC7C,IAAIjE,EAAM,IAENwE,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAE1CvG,EAAWnF,EAAGzH,KAAKqH,eAHTI,EAAG1K,OAAOoW,IASxB,OALyB,IAArB1L,EAAG9D,KAAKiJ,SACVsC,GAAO,gBAAkB,EAAa,KACF,mBAApBzH,EAAG9D,KAAKiJ,WACxBsC,GAAO,wBAA0B,EAAa,KAAQzH,EAAGzH,KAAKqH,eAAeqM,GAAmB,4BAE3FxE,IAGP,IAAIsH,GAAG,CAAC,SAAS/a,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAwBgN,EAAI0L,GAC3C,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBQ,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAE9C8C,IACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,MAKlGD,IACH3E,GAAO,cAAgB,EAAS,qBAAuB,EAAgB,KAGzE,IAAI0F,EAAaA,GAAc,GAC/BA,EAAWlI,KAFXwC,GAAO,OAAS,EAAW,YAAc,EAAU,WAAa,EAAS,WAAa,EAAW,UAGjGA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,sDAAyEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,oCAAsC,EAAS,OACrL,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,8CAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,KACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAIuH,GAAG,CAAC,SAAShb,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA2BgN,EAAI0L,GAC9C,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBgD,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GAEvBgO,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC3BoD,EAAO,IAAMrD,EACfsD,EAAWlB,EAAIjC,UAAY/L,EAAG+L,UAAY,EAC1CoD,EAAY,OAASD,EACrBf,EAAiBnO,EAAGzI,OACpB6X,EAAmBpP,EAAG9D,KAAKuS,eAAmC,iBAAXzX,GAAqD,EAA9Bc,OAAO4J,KAAK1K,GAASzC,OAAayL,EAAGzH,KAAKiQ,eAAexR,EAASgJ,EAAG/C,MAAMyH,KAEvJ,GADA+C,GAAO,OAAS,EAAU,iBAAmB,EAAW,IACpD2H,EAAiB,CACnB,IAAIP,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvCO,EAAI1Y,OAAS0B,EACbgX,EAAIjQ,WAAaiO,EACjBgC,EAAIhQ,cAAgBiO,EACpBxE,GAAO,QAAU,EAAe,sBAAwB,EAAS,SAAW,EAAS,MAAQ,EAAU,YAAc,EAAS,SAC9HuG,EAAI/P,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWgR,EAAMjP,EAAG9D,KAAK4M,cAAc,GAC9E,IAAIuG,EAAY/F,EAAQ,IAAM2F,EAAO,IACrCjB,EAAI3B,YAAY6C,GAAYD,EAC5B,IAAIK,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAExEA,GAAO,QAAU,EAAe,eAChCzH,EAAGyN,cAAgBO,EAAIP,cAAgBoB,EACvCpH,GAAO,UAAoC,EAAe,WAE1DA,GAAO,QAAU,EAAU,kBAE7B,IAAI0F,EAAaA,GAAc,GAC/BA,EAAWlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,yDAA4EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kBACzI,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,8CAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAoBZ,OAnBAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,aACH2H,IACF3H,GAAO,cAAgB,EAAU,iCAAmC,EAAU,sBAAwB,EAAU,6BAE9GzH,EAAG9D,KAAKiQ,YACV1E,GAAO,OAETA,EAAMzH,EAAGzH,KAAKiP,YAAYC,KAI1B,IAAI8H,GAAG,CAAC,SAASvb,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAyBgN,EAAI0L,GAC5C,IAOIkB,EAKFjB,EAZElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UAEzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBgD,EAAQ,SAAWhD,EACnBQ,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAEjB,IAIIwY,EAAUC,EAASC,EAAQC,EAAeC,EAJ1CC,EAAQtc,KACVuc,EAAc,aAAelE,EAC7BmE,EAAQF,EAAM1P,WACd8N,EAAiB,GAEnB,GAAI7B,GAAW2D,EAAMzG,MAAO,CAE1B,IAAI0G,EAAkBD,EAAM9P,eAC5BwH,GAAO,QAAU,EAAgB,oBAAuB,EAAa,uBAFrEmI,EAAgB,kBAAoBhE,GAE4E,MAAQ,EAAgB,iBACnI,CAEL,KADA+D,EAAgB3P,EAAG3B,cAAcwR,EAAO7Y,EAASgJ,EAAG1K,OAAQ0K,IACxC,OACpB2L,EAAe,kBAAoBK,EACnC4D,EAAgBD,EAAcvb,KAC9Bob,EAAWO,EAAMhU,QACjB0T,EAAUM,EAAMrQ,OAChBgQ,EAASK,EAAMrP,MAEjB,IAAIuP,EAAYL,EAAgB,UAC9BrB,EAAK,IAAM3C,EACXsE,EAAW,UAAYtE,EACvBuE,EAAgBJ,EAAMjI,MACxB,GAAIqI,IAAkBnQ,EAAG8H,MAAO,MAAM,IAAI3T,MAAM,gCAahD,GAZMsb,GAAWC,IACfjI,GAAY,EAAc,YAE5BA,GAAO,OAAS,EAAU,iBAAmB,EAAW,IACpD2E,GAAW2D,EAAMzG,QACnB2E,GAAkB,IAClBxG,GAAO,QAAU,EAAiB,qBAAuB,EAAW,qBAChEuI,IACF/B,GAAkB,IAClBxG,GAAO,IAAM,EAAW,MAAQ,EAAgB,mBAAqB,EAAiB,UAAY,EAAW,SAG7GgI,EAEAhI,GADEsI,EAAM9E,WACD,IAAO0E,EAAsB,SAAI,IAEjC,IAAM,EAAW,MAASA,EAAsB,SAAI,UAExD,GAAID,EAAQ,CACjB,IAAI1B,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACnBiO,EAAiB,GACrBD,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC/BmC,EAAI1Y,OAASqa,EAAc3Z,SAC3BgY,EAAIjQ,WAAa,GACjB,IAAI8Q,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvC,IAAI6B,EAAQtP,EAAGhK,SAASgY,GAAKlK,QAAQ,oBAAqB8L,GAC1D5P,EAAGyN,cAAgBO,EAAIP,cAAgBoB,EACvCpH,GAAO,IAAM,MACR,EACD0F,EAAaA,GAAc,IACpBlI,KAAKwC,GAChBA,EAAM,GACNA,GAAO,KAAO,EAAkB,UAE9BA,GADEzH,EAAG9D,KAAKkU,YACH,OAEA,OAGP3I,GADE+H,IAA6B,IAAjBO,EAAMza,OACb,MAAQ,EAAU,IAElB,MAAQ,EAAiB,MAAQ,EAAU,qBAAwB0K,EAAa,WAAI,IAE7FyH,GAAO,sBACa,MAAhBzH,EAAG/B,YACLwJ,GAAO,MAASzH,EAAY,WAE9B,IAAIqQ,EAAcvE,EAAW,QAAWA,EAAW,GAAM,IAAM,aAC7DwE,EAAsBxE,EAAW9L,EAAGqM,YAAYP,GAAY,qBAE1DyE,EADJ9I,GAAO,MAAQ,EAAgB,MAAQ,EAAwB,kBAE/DA,EAAM0F,EAAWK,OACI,IAAjBuC,EAAM7X,QACRuP,GAAO,IAAM,EAAW,MACpB0I,IACF1I,GAAO,UAETA,GAAY,EAAyB,MAInCA,GAFE0I,EAEK,SADPF,EAAY,eAAiBrE,GACE,kBAAoB,EAAW,YAAc,EAAyB,mBAAqB,EAAW,+CAAiD,EAAc,gCAE7L,IAAM,EAAc,YAAc,EAAW,MAAQ,EAAyB,KAQ3F,GAJImE,EAAMzE,YACR7D,GAAO,QAAU,EAAgB,KAAO,EAAU,MAAQ,EAAgB,IAAM,EAAwB,MAE1GA,GAAO,GAAK,EACRsI,EAAM7E,MACJgB,IACFzE,GAAO,qBAEJ,CAcL,IAGI0F,EAhBJ1F,GAAO,cACa9R,IAAhBoa,EAAM7E,OACRzD,GAAO,KAELA,GADEiI,EACK,GAAK,EAEA,GAGdjI,GAAO,KAAQsI,EAAM7E,MAAS,IAGhC0B,EAAgBiD,EAAMvP,SAClB6M,EAAaA,GAAc,IACpBlI,KAHXwC,GAAO,SAKH0F,EAAaA,GAAc,IACpBlI,KAFXwC,EAAM,IAGNA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,iBAAoBmF,GAAiB,UAAY,oCAA0C5M,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,0BAA8B4D,EAAa,QAAI,QACvM,IAArB7P,EAAG9D,KAAKmR,WACV5F,GAAO,8BAAiCoI,EAAa,QAAI,2BAEvD7P,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAWjB,IAAIgD,EAPA/I,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAGnCL,EAAM0F,EAAWK,MACbiC,EACEM,EAAM7X,OACY,QAAhB6X,EAAM7X,SACRuP,GAAO,cAAgB,EAAO,IAAM,EAAU,KAAO,EAAO,YAAc,EAAO,aAAe,EAAa,cAAgB,EAAO,UAAY,EAAa,4BAA8B,EAAa,kCAAuCzH,EAAY,UAAI,SAAW,EAAa,gCAAkC,EAAa,kBAAoB,EAAmB,QACzWA,EAAG9D,KAAKoR,UACV7F,GAAO,IAAM,EAAa,aAAe,EAAiB,KAAO,EAAa,WAAa,EAAU,MAEvGA,GAAO,QAGY,IAAjBsI,EAAM7X,OACRuP,GAAO,IAAM,EAAoB,KAEjCA,GAAO,QAAU,EAAU,iBAAmB,EAAoB,uBAAyB,EAAO,IAAM,EAAU,KAAO,EAAO,YAAc,EAAO,aAAe,EAAa,cAAgB,EAAO,UAAY,EAAa,4BAA8B,EAAa,kCAAuCzH,EAAY,UAAI,SAAW,EAAa,gCAAkC,EAAa,kBAAoB,EAAmB,QAC7aA,EAAG9D,KAAKoR,UACV7F,GAAO,IAAM,EAAa,aAAe,EAAiB,KAAO,EAAa,WAAa,EAAU,MAEvGA,GAAO,SAGFiI,GACTjI,GAAO,mBACiB,IAApBzH,EAAGoN,cACL3F,GAAO,iBAAoBmF,GAAiB,UAAY,oCAA0C5M,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,0BAA8B4D,EAAa,QAAI,QACvM,IAArB7P,EAAG9D,KAAKmR,WACV5F,GAAO,8BAAiCoI,EAAa,QAAI,2BAEvD7P,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,gFACFzH,EAAGyN,eAAiBvB,IAGrBzE,GADEzH,EAAG8H,MACE,wCAEA,gDAIU,IAAjBiI,EAAM7X,OACRuP,GAAO,IAAM,EAAoB,KAEjCA,GAAO,sBAAwB,EAAc,wCAA0C,EAAc,mCAAqC,EAAc,yCAA2C,EAAO,IAAM,EAAU,KAAO,EAAO,YAAc,EAAO,aAAe,EAAa,cAAgB,EAAO,UAAY,EAAa,4BAA8B,EAAa,kCAAuCzH,EAAY,UAAI,MAAQ,EAAa,kBAAoB,EAAmB,OACneA,EAAG9D,KAAKoR,UACV7F,GAAO,IAAM,EAAa,aAAe,EAAiB,KAAO,EAAa,WAAa,EAAU,MAEvGA,GAAO,eAAiB,EAAoB,OAGhDA,GAAO,MACHyE,IACFzE,GAAO,YAGX,OAAOA,IAGP,IAAIgJ,GAAG,CAAC,SAASzc,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA+BgN,EAAI0L,GAClD,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B8C,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACnBiO,EAAiB,GACrBD,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC3B6E,EAAc,GAChBC,EAAgB,GAChBC,EAAiB5Q,EAAG9D,KAAK2U,cAC3B,IAAKC,KAAa9Z,EAAS,CACzB,IAAIsX,EAAOtX,EAAQ8Z,GACfC,EAAQzN,MAAMC,QAAQ+K,GAAQqC,EAAgBD,EAClDK,EAAMD,GAAaxC,EAErB7G,GAAO,OAAS,EAAU,aAC1B,IAAIuJ,EAAoBhR,EAAG/B,UAE3B,IAAK,IAAI6S,KADTrJ,GAAO,cAAgB,EAAS,IACVkJ,EAEpB,IADAI,EAAQJ,EAAcG,IACZvc,OAAQ,CAKhB,GAJAkT,GAAO,SAAW,EAAWzH,EAAGzH,KAAK2O,YAAY4J,GAAc,kBAC3DF,IACFnJ,GAAO,4CAA8C,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa2J,GAAc,OAE1G5E,EAAe,CACjBzE,GAAO,SACP,IAAI4G,EAAO0C,EACX,GAAI1C,EAGF,IAFA,IAAkBE,GAAM,EACtBC,EAAKH,EAAK9Z,OAAS,EACdga,EAAKC,GAAI,CACdyC,EAAe5C,EAAKE,GAAM,GACtBA,IACF9G,GAAO,QAITA,GAAO,SADLyJ,EAAW5H,GADT6H,EAAQnR,EAAGzH,KAAK2O,YAAY+J,KAEF,kBAC1BL,IACFnJ,GAAO,8CAAgD,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa8J,GAAiB,OAEnHxJ,GAAO,gBAAkB,EAAS,MAASzH,EAAGzH,KAAKqH,eAAeI,EAAG9D,KAAK4M,aAAemI,EAAeE,GAAU,OAGtH1J,GAAO,SACP,IAAI2J,EAAgB,UAAYxF,EAC9ByF,EAAmB,OAAUD,EAAgB,OAC3CpR,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAG9D,KAAK4M,aAAe9I,EAAGzH,KAAKqQ,YAAYoI,EAAmBI,GAAe,GAAQJ,EAAoB,MAAQI,GAElI,IAAIjE,EAAaA,GAAc,GAC/BA,EAAWlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,6DAAgFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,2BAA+BjM,EAAGzH,KAAK4O,aAAa2J,GAAc,wBAA4B,EAAqB,iBAAqBC,EAAY,OAAI,YAAgB/Q,EAAGzH,KAAK4O,aAA6B,GAAhB4J,EAAMxc,OAAcwc,EAAM,GAAKA,EAAMvQ,KAAK,OAAU,QAC9X,IAArBR,EAAG9D,KAAKmR,WACV5F,GAAO,4BAELA,GADkB,GAAhBsJ,EAAMxc,OACD,YAAeyL,EAAGzH,KAAK4O,aAAa4J,EAAM,IAE1C,cAAiB/Q,EAAGzH,KAAK4O,aAAa4J,EAAMvQ,KAAK,OAE1DiH,GAAO,kBAAqBzH,EAAGzH,KAAK4O,aAAa2J,GAAc,iBAE7D9Q,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,mFAE9B,CACLL,GAAO,QACP,IAAI8J,EAAOR,EACX,GAAIQ,EAGF,IAFA,IAAIN,EAAcO,GAAM,EACtBC,EAAKF,EAAKhd,OAAS,EACdid,EAAKC,GAAI,CACdR,EAAeM,EAAKC,GAAM,GAC1B,IAAIL,EAAQnR,EAAGzH,KAAK2O,YAAY+J,GAE9BC,GADAG,EAAmBrR,EAAGzH,KAAK4O,aAAa8J,GAC7B3H,EAAQ6H,GACjBnR,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAGzH,KAAK0Q,QAAQ+H,EAAmBC,EAAcjR,EAAG9D,KAAK4M,eAE1ErB,GAAO,SAAW,EAAa,kBAC3BmJ,IACFnJ,GAAO,8CAAgD,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa8J,GAAiB,OAEnHxJ,GAAO,qBACiB,IAApBzH,EAAGoN,cACL3F,GAAO,6DAAgFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,2BAA+BjM,EAAGzH,KAAK4O,aAAa2J,GAAc,wBAA4B,EAAqB,iBAAqBC,EAAY,OAAI,YAAgB/Q,EAAGzH,KAAK4O,aAA6B,GAAhB4J,EAAMxc,OAAcwc,EAAM,GAAKA,EAAMvQ,KAAK,OAAU,QAC9X,IAArBR,EAAG9D,KAAKmR,WACV5F,GAAO,4BAELA,GADkB,GAAhBsJ,EAAMxc,OACD,YAAeyL,EAAGzH,KAAK4O,aAAa4J,EAAM,IAE1C,cAAiB/Q,EAAGzH,KAAK4O,aAAa4J,EAAMvQ,KAAK,OAE1DiH,GAAO,kBAAqBzH,EAAGzH,KAAK4O,aAAa2J,GAAc,iBAE7D9Q,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,kFAIbA,GAAO,QACHyE,IACF+B,GAAkB,IAClBxG,GAAO,YAIbzH,EAAG/B,UAAY+S,EACf,IAAI7C,EAAiBH,EAAIzW,OACzB,IAAK,IAAIuZ,KAAaJ,EAAa,CAC7BpC,EAAOoC,EAAYI,IAClB9Q,EAAG9D,KAAKuS,eAAgC,iBAARH,GAA+C,EAA3BxW,OAAO4J,KAAK4M,GAAM/Z,OAAayL,EAAGzH,KAAKiQ,eAAe8F,EAAMtO,EAAG/C,MAAMyH,QAC5H+C,GAAO,IAAM,EAAe,iBAAmB,EAAWzH,EAAGzH,KAAK2O,YAAY4J,GAAc,kBACxFF,IACFnJ,GAAO,4CAA8C,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa2J,GAAc,OAE9GrJ,GAAO,OACPuG,EAAI1Y,OAASgZ,EACbN,EAAIjQ,WAAaiO,EAAchM,EAAGzH,KAAK2O,YAAY4J,GACnD9C,EAAIhQ,cAAgBiO,EAAiB,IAAMjM,EAAGzH,KAAKmK,eAAeoO,GAClErJ,GAAO,KAAQzH,EAAGhK,SAASgY,GAAQ,IACnCA,EAAIzW,OAAS4W,EACb1G,GAAO,OACHyE,IACFzE,GAAO,QAAU,EAAe,OAChCwG,GAAkB,MAQxB,OAJI/B,IACFzE,GAAO,MAAQ,EAAmB,QAAU,EAAU,iBAExDA,EAAMzH,EAAGzH,KAAKiP,YAAYC,KAI1B,IAAIiK,GAAG,CAAC,SAAS1d,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAuBgN,EAAI0L,GAC1C,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBQ,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAE9C8C,IACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,MAKvG,IAAIkC,EAAK,IAAM3C,EACb+F,EAAW,SAAW/F,EACnBQ,IACH3E,GAAO,QAAU,EAAa,qBAAuB,EAAgB,KAEvEA,GAAO,OAAS,EAAW,IACvB2E,IACF3E,GAAO,cAAgB,EAAS,mBAAqB,EAAW,0CAA4C,EAAS,MAAQ,EAAW,oBAE1IA,GAAY,EAAW,qBAAuB,EAAO,OAAS,EAAO,IAAM,EAAa,YAAc,EAAO,iBAAmB,EAAU,KAAO,EAAa,IAAM,EAAO,SAAW,EAAW,oBAC7L2E,IACF3E,GAAO,SAGT,IAAI0F,EAAaA,GAAc,GAC/BA,EAAWlI,KAFXwC,GAAO,SAAW,EAAW,UAG7BA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,qDAAwEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,qCAAuC,EAAS,OACrL,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,+DAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,KACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAImK,GAAG,CAAC,SAAS5d,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAyBgN,EAAI0L,EAAUmG,GACtD,IAAIpK,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAClC,IAAuB,IAAnB9L,EAAG9D,KAAK4V,OAIV,OAHI5F,IACFzE,GAAO,iBAEFA,EAET,IACEkE,EADES,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAEjB,IAAI+a,EAAkB/R,EAAG9D,KAAK8V,eAC5BC,EAAgB3O,MAAMC,QAAQwO,GAChC,GAAI3F,EAAS,CAIX3E,GAAO,SAHHyK,EAAU,SAAWtG,GAGI,cAAgB,EAAiB,WAF5DuG,EAAY,WAAavG,GAE6D,aAAe,EAAY,qBAAyB,EAAY,0BAA4B,EAAY,mBAD9LwG,EAAc,aAAexG,GACqM,MAAQ,EAAc,OAAS,EAAY,0BAA8B,EAAc,OACvT5L,EAAG8H,QACLL,GAAO,aAAe,EAAS,MAAQ,EAAY,YAErDA,GAAO,IAAM,EAAY,MAAQ,EAAY,sBACzC2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAEhFA,GAAO,KACgB,UAAnBsK,IACFtK,GAAO,KAAO,EAAiB,QAAU,EAAY,IACjDwK,IACFxK,GAAO,yCAA2C,EAAiB,YAErEA,GAAO,SAETA,GAAO,KAAO,EAAY,OAAS,EAAgB,QAAW,EAAc,iBAAoB,EAAY,oBAE1GA,GADEzH,EAAG8H,MACE,UAAY,EAAS,YAAc,EAAY,IAAM,EAAU,OAAS,EAAY,IAAM,EAAU,MAEpG,IAAM,EAAY,IAAM,EAAU,KAE3CL,GAAO,MAAQ,EAAY,SAAW,EAAU,cAC3C,CACL,IAAIyK,EACJ,KADIA,EAAUlS,EAAG7G,QAAQnC,IACX,CACZ,GAAuB,UAAnB+a,EAKF,OAJA/R,EAAG1B,OAAO+T,KAAK,mBAAqBrb,EAAU,gCAAkCgJ,EAAGhC,cAAgB,KAC/FkO,IACFzE,GAAO,iBAEFA,EACF,GAAIwK,GAAqD,GAApCF,EAAgBO,QAAQtb,GAIlD,OAHIkV,IACFzE,GAAO,iBAEFA,EAEP,MAAM,IAAItT,MAAM,mBAAqB6C,EAAU,gCAAkCgJ,EAAGhC,cAAgB,KAGxG,IAAImU,EACAC,GADAD,EAA8B,iBAAXD,KAAyBA,aAAmB5W,SAAW4W,EAAQlc,WACvDkc,EAAQ9N,MAAQ,SAC/C,GAAI+N,EAAW,CACb,IAAI/U,GAA2B,IAAlB8U,EAAQpK,MACrBoK,EAAUA,EAAQlc,SAEpB,GAAIoc,GAAeP,EAIjB,OAHI3F,IACFzE,GAAO,iBAEFA,EAET,GAAIrK,EAAQ,CACV,IAAK4C,EAAG8H,MAAO,MAAM,IAAI3T,MAAM,+BAE/BsT,GAAO,iBADH8K,EAAa,UAAYvS,EAAGzH,KAAK2O,YAAYlQ,GAAW,aACpB,IAAM,EAAU,aACnD,CACLyQ,GAAO,UACP,IAAI8K,EAAa,UAAYvS,EAAGzH,KAAK2O,YAAYlQ,GAC7Cmb,IAAWI,GAAc,aAE3B9K,GADoB,mBAAXyK,EACF,IAAM,EAAe,IAAM,EAAU,KAErC,IAAM,EAAe,SAAW,EAAU,KAEnDzK,GAAO,QAGX,IAAI0F,EAAaA,GAAc,GAC/BA,EAAWlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,uDAA0EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,yBAE9JxE,GADE2E,EACK,GAAK,EAEL,GAAMpM,EAAGzH,KAAKqH,eAAe5I,GAEtCyQ,GAAO,QACkB,IAArBzH,EAAG9D,KAAKmR,WACV5F,GAAO,sCAELA,GADE2E,EACK,OAAU,EAAiB,OAE3B,GAAMpM,EAAGzH,KAAK4O,aAAanQ,GAEpCyQ,GAAO,QAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAMpM,EAAGzH,KAAKqH,eAAe5I,GAEtCyQ,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,MACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAI+K,GAAG,CAAC,SAASxe,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAqBgN,EAAI0L,GACxC,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBgD,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACvBgO,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC3B4G,EAAWzS,EAAG1K,OAAa,KAC7Bod,EAAW1S,EAAG1K,OAAa,KAC3Bqd,OAA4Bhd,IAAb8c,IAA2BzS,EAAG9D,KAAKuS,eAAoC,iBAAZgE,GAAuD,EAA/B3a,OAAO4J,KAAK+Q,GAAUle,OAAayL,EAAGzH,KAAKiQ,eAAeiK,EAAUzS,EAAG/C,MAAMyH,MAC/KkO,OAA4Bjd,IAAb+c,IAA2B1S,EAAG9D,KAAKuS,eAAoC,iBAAZiE,GAAuD,EAA/B5a,OAAO4J,KAAKgR,GAAUne,OAAayL,EAAGzH,KAAKiQ,eAAekK,EAAU1S,EAAG/C,MAAMyH,MAC/KyJ,EAAiBH,EAAIzW,OACvB,GAAIob,GAAgBC,EAAc,CAChC,IAAIC,EACJ7E,EAAIZ,cAAe,EACnBY,EAAI1Y,OAAS0B,EACbgX,EAAIjQ,WAAaiO,EACjBgC,EAAIhQ,cAAgBiO,EACpBxE,GAAO,QAAU,EAAU,kBAAoB,EAAW,aAC1D,IAAIoH,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvChG,GAAO,KAAQzH,EAAGhK,SAASgY,GAAQ,IACnCA,EAAIzW,OAAS4W,EACbH,EAAIZ,cAAe,EACnB3F,GAAO,cAAgB,EAAU,iCAAmC,EAAU,sBAAwB,EAAU,6BAChHzH,EAAGyN,cAAgBO,EAAIP,cAAgBoB,EACnC8D,GACFlL,GAAO,QAAU,EAAe,QAChCuG,EAAI1Y,OAAS0K,EAAG1K,OAAa,KAC7B0Y,EAAIjQ,WAAaiC,EAAGjC,WAAa,QACjCiQ,EAAIhQ,cAAgBgC,EAAGhC,cAAgB,QACvCyJ,GAAO,KAAQzH,EAAGhK,SAASgY,GAAQ,IACnCA,EAAIzW,OAAS4W,EACb1G,GAAO,IAAM,EAAW,MAAQ,EAAe,KAC3CkL,GAAgBC,EAElBnL,GAAO,SADPoL,EAAY,WAAajH,GACM,cAE/BiH,EAAY,SAEdpL,GAAO,MACHmL,IACFnL,GAAO,aAGTA,GAAO,SAAW,EAAe,OAE/BmL,IACF5E,EAAI1Y,OAAS0K,EAAG1K,OAAa,KAC7B0Y,EAAIjQ,WAAaiC,EAAGjC,WAAa,QACjCiQ,EAAIhQ,cAAgBgC,EAAGhC,cAAgB,QACvCyJ,GAAO,KAAQzH,EAAGhK,SAASgY,GAAQ,IACnCA,EAAIzW,OAAS4W,EACb1G,GAAO,IAAM,EAAW,MAAQ,EAAe,KAC3CkL,GAAgBC,EAElBnL,GAAO,SADPoL,EAAY,WAAajH,GACM,cAE/BiH,EAAY,SAEdpL,GAAO,OAETA,GAAO,SAAW,EAAW,sBACL,IAApBzH,EAAGoN,cACL3F,GAAO,mDAAsEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,gCAAkC,EAAc,OACnL,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,mCAAsC,EAAc,mBAEzDzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,gFACFzH,EAAGyN,eAAiBvB,IAGrBzE,GADEzH,EAAG8H,MACE,wCAEA,8CAGXL,GAAO,QACHyE,IACFzE,GAAO,YAETA,EAAMzH,EAAGzH,KAAKiP,YAAYC,QAEtByE,IACFzE,GAAO,iBAGX,OAAOA,IAGP,IAAIqL,GAAG,CAAC,SAAS9e,EAAQf,EAAOD,GAClC,aAGAC,EAAOD,QAAU,CACfkE,KAAQlD,EAAQ,SAChB+e,MAAO/e,EAAQ,WACf4W,MAAO5W,EAAQ,WACfmR,SAAYnR,EAAQ,aACpBuX,MAAOvX,EAAQ,WACfgf,SAAUhf,EAAQ,cAClBoM,aAAcpM,EAAQ,kBACtBif,KAAQjf,EAAQ,UAChB8d,OAAQ9d,EAAQ,YAChBkf,GAAMlf,EAAQ,QACdqX,MAAOrX,EAAQ,WACfsQ,QAAStQ,EAAQ,YACjBuQ,QAASvQ,EAAQ,YACjBmf,SAAUnf,EAAQ,iBAClBof,SAAUpf,EAAQ,iBAClBqf,UAAWrf,EAAQ,kBACnBsf,UAAWtf,EAAQ,kBACnBuf,cAAevf,EAAQ,sBACvBwf,cAAexf,EAAQ,sBACvByf,WAAYzf,EAAQ,gBACpBmX,IAAKnX,EAAQ,SACb0f,MAAO1f,EAAQ,WACf2f,QAAS3f,EAAQ,aACjBwQ,WAAYxQ,EAAQ,gBACpB4f,cAAe5f,EAAQ,mBACvBoX,SAAUpX,EAAQ,cAClB6f,YAAa7f,EAAQ,iBACrBgC,SAAUhC,EAAQ,gBAGlB,CAAC8f,WAAW,GAAGC,gBAAgB,GAAGC,iBAAiB,GAAGC,qBAAqB,GAAGC,UAAU,GAAGC,UAAU,GAAGC,YAAY,GAAGC,UAAU,GAAGC,aAAa,GAAGC,iBAAiB,GAAGC,SAAS,GAAGC,WAAW,GAAGC,OAAO,GAAGC,UAAU,GAAGC,eAAe,GAAGC,QAAQ,GAAGC,UAAU,GAAGC,YAAY,GAAGC,eAAe,GAAGC,kBAAkB,GAAGC,QAAQ,GAAGC,aAAa,GAAGC,gBAAgB,GAAGC,aAAa,KAAKC,GAAG,CAAC,SAASthB,EAAQf,EAAOD,GACvZ,aACAC,EAAOD,QAAU,SAAwBgN,EAAI0L,GAC3C,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBgD,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACnBiO,EAAiB,GACrBD,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC3BoD,EAAO,IAAMrD,EACfsD,EAAWlB,EAAIjC,UAAY/L,EAAG+L,UAAY,EAC1CoD,EAAY,OAASD,EACrBf,EAAiBnO,EAAGzI,OAEtB,GADAkQ,GAAO,OAAS,EAAU,iBAAmB,EAAW,IACpDnE,MAAMC,QAAQvM,GAAU,CAC1B,IAAIue,EAAmBvV,EAAG1K,OAAOkgB,gBACjC,IAAyB,IAArBD,EAA4B,CAC9B9N,GAAO,IAAM,EAAW,MAAQ,EAAU,cAAiBzQ,EAAc,OAAI,KAC7E,IAAIye,EAAqBxJ,EACzBA,EAAiBjM,EAAGhC,cAAgB,mBAEpC,IAAImP,EAAaA,GAAc,GAC/BA,EAAWlI,KAFXwC,GAAO,UAAY,EAAW,UAG9BA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,gEAAmFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,uBAA0BjV,EAAc,OAAI,OAC5L,IAArBgJ,EAAG9D,KAAKmR,WACV5F,GAAO,0CAA8CzQ,EAAc,OAAI,YAErEgJ,EAAG9D,KAAKoR,UACV7F,GAAO,mDAAsDzH,EAAa,WAAI,YAAc,EAAU,KAExGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,MACPwE,EAAiBwJ,EACbvJ,IACF+B,GAAkB,IAClBxG,GAAO,YAGX,IAAI4G,EAAOrX,EACX,GAAIqX,EAGF,IAFA,IAAIC,EAAMC,GAAM,EACdC,EAAKH,EAAK9Z,OAAS,EACdga,EAAKC,GAEV,GADAF,EAAOD,EAAKE,GAAM,GACbvO,EAAG9D,KAAKuS,eAAgC,iBAARH,GAA+C,EAA3BxW,OAAO4J,KAAK4M,GAAM/Z,OAAayL,EAAGzH,KAAKiQ,eAAe8F,EAAMtO,EAAG/C,MAAMyH,KAAO,CACnI+C,GAAO,IAAM,EAAe,gBAAkB,EAAU,aAAe,EAAO,OAC9E,IAAI4H,EAAY/F,EAAQ,IAAMiF,EAAK,IACnCP,EAAI1Y,OAASgZ,EACbN,EAAIjQ,WAAaiO,EAAc,IAAMuC,EAAK,IAC1CP,EAAIhQ,cAAgBiO,EAAiB,IAAMsC,EAC3CP,EAAI/P,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWsQ,EAAIvO,EAAG9D,KAAK4M,cAAc,GAC5EkF,EAAI3B,YAAY6C,GAAYX,EAC5B,IAAIe,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAExEA,GAAO,OACHyE,IACFzE,GAAO,QAAU,EAAe,OAChCwG,GAAkB,KAK1B,GAA+B,iBAApBsH,IAAiCvV,EAAG9D,KAAKuS,eAA4C,iBAApB8G,GAAuE,EAAvCzd,OAAO4J,KAAK6T,GAAkBhhB,OAAayL,EAAGzH,KAAKiQ,eAAe+M,EAAkBvV,EAAG/C,MAAMyH,MAAO,CAC9MsJ,EAAI1Y,OAASigB,EACbvH,EAAIjQ,WAAaiC,EAAGjC,WAAa,mBACjCiQ,EAAIhQ,cAAgBgC,EAAGhC,cAAgB,mBACvCyJ,GAAO,IAAM,EAAe,gBAAkB,EAAU,aAAgBzQ,EAAc,OAAI,iBAAmB,EAAS,MAASA,EAAc,OAAI,KAAO,EAAS,MAAQ,EAAU,YAAc,EAAS,SAC1MgX,EAAI/P,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWgR,EAAMjP,EAAG9D,KAAK4M,cAAc,GAC1EuG,EAAY/F,EAAQ,IAAM2F,EAAO,IACrCjB,EAAI3B,YAAY6C,GAAYD,EACxBK,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAEpEyE,IACFzE,GAAO,SAAW,EAAe,aAEnCA,GAAO,SACHyE,IACFzE,GAAO,QAAU,EAAe,OAChCwG,GAAkB,WAGjB,GAAKjO,EAAG9D,KAAKuS,eAAmC,iBAAXzX,GAAqD,EAA9Bc,OAAO4J,KAAK1K,GAASzC,OAAayL,EAAGzH,KAAKiQ,eAAexR,EAASgJ,EAAG/C,MAAMyH,KAAO,CACnJsJ,EAAI1Y,OAAS0B,EACbgX,EAAIjQ,WAAaiO,EACjBgC,EAAIhQ,cAAgBiO,EACpBxE,GAAO,cAAgB,EAAS,SAAqB,EAAS,MAAQ,EAAU,YAAc,EAAS,SACvGuG,EAAI/P,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWgR,EAAMjP,EAAG9D,KAAK4M,cAAc,GAC1EuG,EAAY/F,EAAQ,IAAM2F,EAAO,IACrCjB,EAAI3B,YAAY6C,GAAYD,EACxBK,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAEpEyE,IACFzE,GAAO,SAAW,EAAe,aAEnCA,GAAO,KAMT,OAJIyE,IACFzE,GAAO,IAAM,EAAmB,QAAU,EAAU,iBAEtDA,EAAMzH,EAAGzH,KAAKiP,YAAYC,KAI1B,IAAIiO,GAAG,CAAC,SAAS1hB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA6BgN,EAAI0L,GAChD,IASEC,EATElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9BM,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAEjByQ,GAAO,eAAiB,EAAS,QAC7B2E,IACF3E,GAAO,IAAM,EAAiB,8BAAgC,EAAiB,oBAEjFA,GAAO,aAAe,EAAS,MAAQ,EAAU,MAAQ,EAAiB,KAExEA,GADEzH,EAAG9D,KAAKyZ,oBACH,gCAAkC,EAAS,eAAiB,EAAS,UAAa3V,EAAG9D,KAAwB,oBAAI,IAEjH,YAAc,EAAS,yBAA2B,EAAS,KAEpEuL,GAAO,MACH2E,IACF3E,GAAO,SAGT,IAAI0F,EAAaA,GAAc,GAC/BA,EAAWlI,KAFXwC,GAAO,WAGPA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,2DAA8EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,4BAA8B,EAAiB,OAC1L,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,sCAELA,GADE2E,EACK,OAAU,EAEL,EAAiB,KAG7BpM,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAK,EAEd3E,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,KACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAImO,GAAG,CAAC,SAAS5hB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAsBgN,EAAI0L,GACzC,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B8C,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACvBgO,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC/B,GAAK7L,EAAG9D,KAAKuS,eAAmC,iBAAXzX,GAAqD,EAA9Bc,OAAO4J,KAAK1K,GAASzC,OAAayL,EAAGzH,KAAKiQ,eAAexR,EAASgJ,EAAG/C,MAAMyH,KAAO,CAC5IsJ,EAAI1Y,OAAS0B,EACbgX,EAAIjQ,WAAaiO,EACjBgC,EAAIhQ,cAAgBiO,EACpBxE,GAAO,QAAU,EAAU,eAC3B,IAGIoO,EAHAhH,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvCO,EAAIZ,cAAe,EAEfY,EAAI9R,KAAKiQ,YACX0J,EAAmB7H,EAAI9R,KAAKiQ,UAC5B6B,EAAI9R,KAAKiQ,WAAY,GAEvB1E,GAAO,IAAOzH,EAAGhK,SAASgY,GAAQ,IAClCA,EAAIZ,cAAe,EACfyI,IAAkB7H,EAAI9R,KAAKiQ,UAAY0J,GAC3C7V,EAAGyN,cAAgBO,EAAIP,cAAgBoB,EAEvC,IAAI1B,EAAaA,GAAc,GAC/BA,EAAWlI,KAFXwC,GAAO,QAAU,EAAe,UAGhCA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,oDAAuEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kBACpI,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,sCAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,uBAAyB,EAAU,iCAAmC,EAAU,sBAAwB,EAAU,4BACrHzH,EAAG9D,KAAKiQ,YACV1E,GAAO,YAGTA,GAAO,kBACiB,IAApBzH,EAAGoN,cACL3F,GAAO,oDAAuEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kBACpI,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,sCAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,+EACHyE,IACFzE,GAAO,kBAGX,OAAOA,IAGP,IAAIqO,GAAG,CAAC,SAAS9hB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAwBgN,EAAI0L,GAC3C,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBgD,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACnBiO,EAAiB,GACrBD,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC3BsC,EAAiBH,EAAIzW,OACvBwe,EAAa,YAAcnK,EAC3BoK,EAAkB,iBAAmBpK,EACvCnE,GAAO,OAAS,EAAU,eAAiB,EAAe,cAAgB,EAAW,cAAgB,EAAoB,YACzH,IAAIoH,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvC,IAAIY,EAAOrX,EACX,GAAIqX,EAGF,IAFA,IAAIC,EAAMC,GAAM,EACdC,EAAKH,EAAK9Z,OAAS,EACdga,EAAKC,GACVF,EAAOD,EAAKE,GAAM,IACbvO,EAAG9D,KAAKuS,eAAgC,iBAARH,GAA+C,EAA3BxW,OAAO4J,KAAK4M,GAAM/Z,OAAayL,EAAGzH,KAAKiQ,eAAe8F,EAAMtO,EAAG/C,MAAMyH,OAC5HsJ,EAAI1Y,OAASgZ,EACbN,EAAIjQ,WAAaiO,EAAc,IAAMuC,EAAK,IAC1CP,EAAIhQ,cAAgBiO,EAAiB,IAAMsC,EAC3C9G,GAAO,KAAQzH,EAAGhK,SAASgY,GAAQ,IACnCA,EAAIzW,OAAS4W,GAEb1G,GAAO,QAAU,EAAe,YAE9B8G,IACF9G,GAAO,QAAU,EAAe,OAAS,EAAe,OAAS,EAAW,aAAe,EAAoB,OAAS,EAAoB,KAAO,EAAO,eAC1JwG,GAAkB,KAEpBxG,GAAO,QAAU,EAAe,OAAS,EAAW,MAAQ,EAAe,YAAc,EAAoB,MAAQ,EAAO,MA8BhI,OA3BAzH,EAAGyN,cAAgBO,EAAIP,cAAgBoB,EACvCpH,GAAY,EAAmB,QAAU,EAAW,sBAC5B,IAApBzH,EAAGoN,cACL3F,GAAO,sDAAyEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,gCAAkC,EAAoB,OAC5L,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,2DAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,gFACFzH,EAAGyN,eAAiBvB,IAGrBzE,GADEzH,EAAG8H,MACE,wCAEA,8CAGXL,GAAO,sBAAwB,EAAU,iCAAmC,EAAU,sBAAwB,EAAU,2BACpHzH,EAAG9D,KAAKiQ,YACV1E,GAAO,OAEFA,IAGP,IAAIwO,GAAG,CAAC,SAASjiB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA0BgN,EAAI0L,GAC7C,IASEC,EATElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9BM,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAIhDqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,EAEjB,IAAIkf,EAAU9J,EAAU,eAAiBT,EAAe,KAAO3L,EAAG7B,WAAWnH,GAC7EyQ,GAAO,QACH2E,IACF3E,GAAO,KAAO,EAAiB,4BAA8B,EAAiB,qBAGhF,IAAI0F,EAAaA,GAAc,GAC/BA,EAAWlI,KAFXwC,GAAO,KAAO,EAAY,SAAW,EAAU,YAG/CA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,wDAA2EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,0BAE/JxE,GADE2E,EACK,GAAK,EAEL,GAAMpM,EAAGzH,KAAKqH,eAAe5I,GAEtCyQ,GAAO,QACkB,IAArBzH,EAAG9D,KAAKmR,WACV5F,GAAO,uCAELA,GADE2E,EACK,OAAU,EAAiB,OAE3B,GAAMpM,EAAGzH,KAAK4O,aAAanQ,GAEpCyQ,GAAO,QAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAMpM,EAAGzH,KAAKqH,eAAe5I,GAEtCyQ,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EAgBZ,OAfAA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,KACHyE,IACFzE,GAAO,YAEFA,IAGP,IAAI0O,GAAG,CAAC,SAASniB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA6BgN,EAAI0L,GAChD,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B8C,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACnBiO,EAAiB,GACrBD,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC3BuK,EAAO,MAAQxK,EACjBqD,EAAO,MAAQrD,EACfsD,EAAWlB,EAAIjC,UAAY/L,EAAG+L,UAAY,EAC1CoD,EAAY,OAASD,EACrBmH,EAAkB,iBAAmBzK,EACnC0K,EAAcxe,OAAO4J,KAAK1K,GAAW,IACvCuf,EAAevW,EAAG1K,OAAOkhB,mBAAqB,GAC9CC,EAAiB3e,OAAO4J,KAAK6U,GAC7BG,EAAe1W,EAAG1K,OAAOqhB,qBACzBC,EAAkBN,EAAY/hB,QAAUkiB,EAAeliB,OACvDsiB,GAAiC,IAAjBH,EAChBI,EAA6C,iBAAhBJ,GAA4B5e,OAAO4J,KAAKgV,GAAcniB,OACnFwiB,EAAoB/W,EAAG9D,KAAK8a,iBAC5BC,EAAmBJ,GAAiBC,GAAuBC,EAC3DnG,EAAiB5Q,EAAG9D,KAAK2U,cACzB1C,EAAiBnO,EAAGzI,OAClB2f,EAAYlX,EAAG1K,OAAO8V,SAC1B,GAAI8L,KAAelX,EAAG9D,KAAKoN,QAAS4N,EAAU5N,QAAU4N,EAAU3iB,OAASyL,EAAG9D,KAAKib,aAAc,IAAIC,EAAgBpX,EAAGzH,KAAKqK,OAAOsU,GAKpI,GAJAzP,GAAO,OAAS,EAAU,iBAAmB,EAAe,WACxDmJ,IACFnJ,GAAO,QAAU,EAAoB,iBAEnCwP,EAAkB,CAMpB,GAJExP,GADEmJ,EACK,IAAM,EAAoB,MAAQ,EAAoB,mBAAqB,EAAU,eAAiB,EAAS,OAAS,EAAS,IAAM,EAAoB,YAAc,EAAS,aAAe,EAAS,MAAQ,EAAoB,IAAM,EAAS,MAErP,aAAe,EAAS,OAAS,EAAU,OAEhDgG,EAAiB,CAEnB,GADAnP,GAAO,oBAAsB,EAAS,cAClC6O,EAAY/hB,OACd,GAAyB,EAArB+hB,EAAY/hB,OACdkT,GAAO,sBAAwB,EAAgB,mBAAqB,EAAS,SACxE,CACL,IAAI4G,EAAOiI,EACX,GAAIjI,EAGF,IAFA,IAAkBgJ,GAAM,EACtB7I,EAAKH,EAAK9Z,OAAS,EACd8iB,EAAK7I,GACVyC,EAAe5C,EAAKgJ,GAAM,GAC1B5P,GAAO,OAAS,EAAS,OAAUzH,EAAGzH,KAAKqH,eAAeqR,GAAiB,IAKnF,GAAIwF,EAAeliB,OAAQ,CACzB,IAAIgd,EAAOkF,EACX,GAAIlF,EAGF,IAFA,IAAgBhD,GAAM,EACpBkD,EAAKF,EAAKhd,OAAS,EACdga,EAAKkD,GACV6F,GAAa/F,EAAKhD,GAAM,GACxB9G,GAAO,OAAUzH,EAAG7B,WAAWmZ,IAAe,SAAW,EAAS,KAIxE7P,GAAO,uBAAyB,EAAS,OAE3C,GAAyB,OAArBsP,EACFtP,GAAO,WAAa,EAAU,IAAM,EAAS,UACxC,CACL,IAAIuJ,EAAoBhR,EAAG/B,UACvBsZ,EAAsB,OAAUnB,EAAO,OAI3C,GAHIpW,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWmY,EAAMpW,EAAG9D,KAAK4M,eAE7D+N,EACF,GAAIE,EACFtP,GAAO,WAAa,EAAU,IAAM,EAAS,UACxC,CAEL,IAAIgO,EAAqBxJ,EACzBA,EAAiBjM,EAAGhC,cAAgB,yBAChCmP,GAAaA,IAAc,IACpBlI,KAJXwC,GAAO,IAAM,EAAe,cAK5BA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,qEAAwFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,qCAAwC,EAAwB,QACrN,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAELA,GADEzH,EAAG9D,KAAKoV,uBACH,oCAEA,wCAET7J,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,mDAAsDzH,EAAa,WAAI,YAAc,EAAU,KAExGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,GAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCmE,EAAiBwJ,EACbvJ,IACFzE,GAAO,iBAGN,GAAIqP,EACT,GAAyB,WAArBC,EAAgC,CAClCtP,GAAO,QAAU,EAAU,eAC3B,IAAIoH,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvCO,EAAI1Y,OAASohB,EACb1I,EAAIjQ,WAAaiC,EAAGjC,WAAa,wBACjCiQ,EAAIhQ,cAAgBgC,EAAGhC,cAAgB,wBACvCgQ,EAAI/P,UAAY+B,EAAG9D,KAAKoV,uBAAyBtR,EAAG/B,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWmY,EAAMpW,EAAG9D,KAAK4M,cAChH,IAAIuG,EAAY/F,EAAQ,IAAM8M,EAAO,IACrCpI,EAAI3B,YAAY6C,GAAYkH,EAC5B,IAAI9G,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAExEA,GAAO,SAAW,EAAe,gBAAkB,EAAU,wHAA0H,EAAU,IAAM,EAAS,SAChNzH,EAAGyN,cAAgBO,EAAIP,cAAgBoB,MAClC,CACLb,EAAI1Y,OAASohB,EACb1I,EAAIjQ,WAAaiC,EAAGjC,WAAa,wBACjCiQ,EAAIhQ,cAAgBgC,EAAGhC,cAAgB,wBACvCgQ,EAAI/P,UAAY+B,EAAG9D,KAAKoV,uBAAyBtR,EAAG/B,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWmY,EAAMpW,EAAG9D,KAAK4M,cAC5GuG,EAAY/F,EAAQ,IAAM8M,EAAO,IACrCpI,EAAI3B,YAAY6C,GAAYkH,EACxB9G,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAEpEyE,IACFzE,GAAO,SAAW,EAAe,aAIvCzH,EAAG/B,UAAY+S,EAEb4F,IACFnP,GAAO,OAETA,GAAO,OACHyE,IACFzE,GAAO,QAAU,EAAe,OAChCwG,GAAkB,KAGtB,IAAIuJ,EAAexX,EAAG9D,KAAKub,cAAgBzX,EAAGyN,cAC9C,GAAI6I,EAAY/hB,OAAQ,CACtB,IAAImjB,EAAOpB,EACX,GAAIoB,EAGF,IAFA,IAAIzG,EAAc0G,GAAM,EACtBC,EAAKF,EAAKnjB,OAAS,EACdojB,EAAKC,GAAI,CAEd,IAAItJ,EAAOtX,EADXia,EAAeyG,EAAKC,GAAM,IAE1B,GAAK3X,EAAG9D,KAAKuS,eAAgC,iBAARH,GAA+C,EAA3BxW,OAAO4J,KAAK4M,GAAM/Z,OAAayL,EAAGzH,KAAKiQ,eAAe8F,EAAMtO,EAAG/C,MAAMyH,KAAO,CACnI,IAAIyM,EAAQnR,EAAGzH,KAAK2O,YAAY+J,GAE9B4G,GADAxI,EAAY/F,EAAQ6H,EACNqG,QAAiC7hB,IAAjB2Y,EAAKwJ,SACrC9J,EAAI1Y,OAASgZ,EACbN,EAAIjQ,WAAaiO,EAAcmF,EAC/BnD,EAAIhQ,cAAgBiO,EAAiB,IAAMjM,EAAGzH,KAAKmK,eAAeuO,GAClEjD,EAAI/P,UAAY+B,EAAGzH,KAAK0Q,QAAQjJ,EAAG/B,UAAWgT,EAAcjR,EAAG9D,KAAK4M,cACpEkF,EAAI3B,YAAY6C,GAAYlP,EAAGzH,KAAKqH,eAAeqR,GAC/C3B,EAAQtP,EAAGhK,SAASgY,GAExB,GADAA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAAG,CAC/CG,EAAQtP,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAC7C,IAAI6B,EAAW7B,MACV,CACD6B,EAAW/B,EACf1H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAEvD,GAAIoQ,EACFpQ,GAAO,IAAM,EAAU,QAClB,CACL,GAAI2P,GAAiBA,EAAcnG,GAAe,CAChDxJ,GAAO,SAAW,EAAa,kBAC3BmJ,IACFnJ,GAAO,8CAAgD,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa8J,GAAiB,OAEnHxJ,GAAO,OAAS,EAAe,aAC3BuJ,EAAoBhR,EAAG/B,UACzBwX,EAAqBxJ,EADvB,IAOIkB,GALFkE,GAAmBrR,EAAGzH,KAAK4O,aAAa8J,GACtCjR,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAGzH,KAAK0Q,QAAQ+H,EAAmBC,EAAcjR,EAAG9D,KAAK4M,eAE1EmD,EAAiBjM,EAAGhC,cAAgB,aAChCmP,GAAaA,IAAc,IACpBlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,yDAA4EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kCAAqC,GAAqB,QACnM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAELA,GADEzH,EAAG9D,KAAKoV,uBACH,yBAEA,oCAAuC,GAAqB,MAErE7J,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAEL8F,EAAQ9F,EACZA,EAAM0F,GAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCmE,EAAiBwJ,EACjBzV,EAAG/B,UAAY+S,EACfvJ,GAAO,kBAEHyE,GACFzE,GAAO,SAAW,EAAa,kBAC3BmJ,IACFnJ,GAAO,8CAAgD,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa8J,GAAiB,OAEnHxJ,GAAO,OAAS,EAAe,uBAE/BA,GAAO,QAAU,EAAa,kBAC1BmJ,IACFnJ,GAAO,8CAAgD,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa8J,GAAiB,OAEnHxJ,GAAO,SAGXA,GAAO,IAAM,EAAU,OAGvByE,IACFzE,GAAO,QAAU,EAAe,OAChCwG,GAAkB,MAK1B,GAAIwI,EAAeliB,OAAQ,CACzB,IAAIwjB,GAAOtB,EACX,GAAIsB,GAGF,IAFA,IAAIT,GAAYU,IAAM,EACpBC,GAAKF,GAAKxjB,OAAS,EACdyjB,GAAKC,IAAI,CAEV3J,EAAOiI,EADXe,GAAaS,GAAKC,IAAM,IAExB,GAAKhY,EAAG9D,KAAKuS,eAAgC,iBAARH,GAA+C,EAA3BxW,OAAO4J,KAAK4M,GAAM/Z,OAAayL,EAAGzH,KAAKiQ,eAAe8F,EAAMtO,EAAG/C,MAAMyH,KAAO,CACnIsJ,EAAI1Y,OAASgZ,EACbN,EAAIjQ,WAAaiC,EAAGjC,WAAa,qBAAuBiC,EAAGzH,KAAK2O,YAAYoQ,IAC5EtJ,EAAIhQ,cAAgBgC,EAAGhC,cAAgB,sBAAwBgC,EAAGzH,KAAKmK,eAAe4U,IAEpF7P,GADEmJ,EACK,IAAM,EAAoB,MAAQ,EAAoB,mBAAqB,EAAU,eAAiB,EAAS,OAAS,EAAS,IAAM,EAAoB,YAAc,EAAS,aAAe,EAAS,MAAQ,EAAoB,IAAM,EAAS,MAErP,aAAe,EAAS,OAAS,EAAU,OAEpDnJ,GAAO,QAAWzH,EAAG7B,WAAWmZ,IAAe,SAAW,EAAS,QACnEtJ,EAAI/P,UAAY+B,EAAGzH,KAAKqQ,YAAY5I,EAAG/B,UAAWmY,EAAMpW,EAAG9D,KAAK4M,cAC5DuG,EAAY/F,EAAQ,IAAM8M,EAAO,IACrCpI,EAAI3B,YAAY6C,GAAYkH,EACxB9G,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAEpEyE,IACFzE,GAAO,SAAW,EAAe,aAEnCA,GAAO,MACHyE,IACFzE,GAAO,SAAW,EAAe,aAEnCA,GAAO,OACHyE,IACFzE,GAAO,QAAU,EAAe,OAChCwG,GAAkB,OAU5B,OAJI/B,IACFzE,GAAO,IAAM,EAAmB,QAAU,EAAU,iBAEtDA,EAAMzH,EAAGzH,KAAKiP,YAAYC,KAI1B,IAAIyQ,GAAG,CAAC,SAASlkB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAgCgN,EAAI0L,GACnD,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B8C,EAAQ,SAAWhD,EACnBoC,EAAMhO,EAAGzH,KAAKc,KAAK2G,GAEvBgO,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAE/B,GADApE,GAAO,OAAS,EAAU,aACrBzH,EAAG9D,KAAKuS,eAAmC,iBAAXzX,GAAqD,EAA9Bc,OAAO4J,KAAK1K,GAASzC,OAAayL,EAAGzH,KAAKiQ,eAAexR,EAASgJ,EAAG/C,MAAMyH,KAAO,CAC5IsJ,EAAI1Y,OAAS0B,EACbgX,EAAIjQ,WAAaiO,EACjBgC,EAAIhQ,cAAgBiO,EACpB,IAAImK,EAAO,MAAQxK,EACjBqD,EAAO,MAAQrD,EACf2C,EAAK,IAAM3C,EACXuM,EAAe,OAAU/B,EAAO,OAEhCjH,EAAY,QADDnB,EAAIjC,UAAY/L,EAAG+L,UAAY,GAE1CsK,EAAkB,iBAAmBzK,EACrCgF,EAAiB5Q,EAAG9D,KAAK2U,cACzB1C,EAAiBnO,EAAGzI,OAClBqZ,IACFnJ,GAAO,QAAU,EAAoB,kBAGrCA,GADEmJ,EACK,IAAM,EAAoB,MAAQ,EAAoB,mBAAqB,EAAU,eAAiB,EAAS,OAAS,EAAS,IAAM,EAAoB,YAAc,EAAS,aAAe,EAAS,MAAQ,EAAoB,IAAM,EAAS,MAErP,aAAe,EAAS,OAAS,EAAU,OAEpDnJ,GAAO,iBAAmB,EAAS,cACnC,IAAI4H,EAAY+G,EACZvH,EAAgB7O,EAAGyN,cACvBzN,EAAGyN,cAAgBO,EAAIP,eAAgB,EACvC,IAAI6B,EAAQtP,EAAGhK,SAASgY,GACxBA,EAAIzW,OAAS4W,EACTnO,EAAGzH,KAAK6O,cAAckI,EAAOH,GAAa,EAC5C1H,GAAO,IAAOzH,EAAGzH,KAAK+O,WAAWgI,EAAOH,EAAWE,GAAc,IAEjE5H,GAAO,QAAU,EAAc,MAAQ,EAAc,KAAO,EAAU,IAExEzH,EAAGyN,cAAgBO,EAAIP,cAAgBoB,EACvCpH,GAAO,SAAW,EAAe,gBAAkB,EAAO,aAAe,EAAS,KAAO,EAAO,YAAc,EAAO,iBAAmB,EAAO,oBAAsB,EAAS,sBACtJ,IAApBzH,EAAGoN,cACL3F,GAAO,8DAAiFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,+BAAkC,EAAiB,QACjM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,iCAAqC,EAAiB,oBAE3DzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,gFACFzH,EAAGyN,eAAiBvB,IAGrBzE,GADEzH,EAAG8H,MACE,wCAEA,8CAGPoE,IACFzE,GAAO,YAETA,GAAO,OAMT,OAJIyE,IACFzE,GAAO,SAAmC,EAAU,iBAEtDA,EAAMzH,EAAGzH,KAAKiP,YAAYC,KAI1B,IAAI2Q,GAAG,CAAC,SAASpkB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAAsBgN,EAAI0L,GACzC,IAQItO,EAAQib,EARR5Q,EAAM,IAENqE,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QANF3O,EAAG6L,MAQd,GAAe,KAAX7U,GAA6B,MAAXA,EAGlBqhB,EAFErY,EAAGnC,QACLT,EAAS4C,EAAG8H,MACD,aAEX1K,GAAmC,IAA1B4C,EAAGhE,KAAK1G,OAAO8H,OACb,sBAER,CACL,IAAIkb,EAAUtY,EAAG9B,WAAW8B,EAAGzI,OAAQP,EAASgJ,EAAGnC,QACnD,QAAgBlI,IAAZ2iB,EAAuB,CACzB,IAAIC,EAAWvY,EAAG7K,gBAAgBqC,QAAQwI,EAAGzI,OAAQP,GACrD,GAA2B,QAAvBgJ,EAAG9D,KAAKsc,YAAuB,CACjCxY,EAAG1B,OAAOS,MAAMwZ,IACZpL,EAAaA,GAAc,IACpBlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,qDAAwEzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,sBAA0BjM,EAAGzH,KAAK4O,aAAanQ,GAAY,QAChM,IAArBgJ,EAAG9D,KAAKmR,WACV5F,GAAO,0CAA+CzH,EAAGzH,KAAK4O,aAAanQ,GAAY,MAErFgJ,EAAG9D,KAAKoR,UACV7F,GAAO,cAAiBzH,EAAGzH,KAAKqH,eAAe5I,GAAY,mCAAsCgJ,EAAa,WAAI,YAAc,EAAU,KAE5IyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAE/BoE,IACFzE,GAAO,sBAEJ,CAAA,GAA2B,UAAvBzH,EAAG9D,KAAKsc,YAMjB,MAAM,IAAIxY,EAAG7K,gBAAgB6K,EAAGzI,OAAQP,EAASuhB,GALjDvY,EAAG1B,OAAO+T,KAAKkG,GACXrM,IACFzE,GAAO,uBAKN,GAAI6Q,EAAQ5Y,OAAQ,CACzB,IAAIsO,EAAMhO,EAAGzH,KAAKc,KAAK2G,GACvBgO,EAAInC,QACJ,IAAIqC,EAAa,QAAUF,EAAInC,MAC/BmC,EAAI1Y,OAASgjB,EAAQhjB,OACrB0Y,EAAIjQ,WAAa,GACjBiQ,EAAIhQ,cAAgBhH,EAEpByQ,GAAO,IADKzH,EAAGhK,SAASgY,GAAKlK,QAAQ,oBAAqBwU,EAAQlkB,MAC3C,IACnB8X,IACFzE,GAAO,QAAU,EAAe,aAGlCrK,GAA4B,IAAnBkb,EAAQlb,QAAoB4C,EAAG8H,QAA4B,IAAnBwQ,EAAQlb,OACzDib,EAAWC,EAAQlkB,KAGvB,GAAIikB,EAAU,CACZ,IAAIlL,GAAAA,EAAaA,GAAc,IACpBlI,KAAKwC,GAChBA,EAAM,GAEJA,GADEzH,EAAG9D,KAAKkU,YACH,IAAM,EAAa,eAEnB,IAAM,EAAa,KAE5B3I,GAAO,IAAM,EAAU,qBACH,MAAhBzH,EAAG/B,YACLwJ,GAAO,MAASzH,EAAY,WAK9B,IAAIyY,EADJhR,GAAO,OAFWqE,EAAW,QAAWA,EAAW,GAAM,IAAM,cAEhC,OADPA,EAAW9L,EAAGqM,YAAYP,GAAY,sBACC,gBAG/D,GADArE,EAAM0F,EAAWK,MACbpQ,EAAQ,CACV,IAAK4C,EAAG8H,MAAO,MAAM,IAAI3T,MAAM,0CAC3B+X,IACFzE,GAAO,QAAU,EAAW,MAE9BA,GAAO,gBAAkB,EAAmB,KACxCyE,IACFzE,GAAO,IAAM,EAAW,aAE1BA,GAAO,4KACHyE,IACFzE,GAAO,IAAM,EAAW,cAE1BA,GAAO,MACHyE,IACFzE,GAAO,QAAU,EAAW,aAG9BA,GAAO,SAAW,EAAmB,uCAAyC,EAAa,0CAA4C,EAAa,wCAChJyE,IACFzE,GAAO,YAIb,OAAOA,IAGP,IAAIiR,GAAG,CAAC,SAAS1kB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA2BgN,EAAI0L,GAC9C,IAAIjE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBQ,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAE9C8C,IACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,MAKvG,IAAIsF,EAAW,SAAW/F,EAC1B,IAAKQ,EACH,GAAIpV,EAAQzC,OAASyL,EAAG9D,KAAKib,cAAgBnX,EAAG1K,OAAOkP,YAAc1M,OAAO4J,KAAK1B,EAAG1K,OAAOkP,YAAYjQ,OAAQ,CAC7G,IAAI2iB,EAAY,GACZ7I,EAAOrX,EACX,GAAIqX,EAGF,IAFA,IAAIyC,EAAWuG,GAAM,EACnB7I,EAAKH,EAAK9Z,OAAS,EACd8iB,EAAK7I,GAAI,CACdsC,EAAYzC,EAAKgJ,GAAM,GACvB,IAAIsB,EAAe3Y,EAAG1K,OAAOkP,WAAWsM,GAClC6H,IAAiB3Y,EAAG9D,KAAKuS,eAAwC,iBAAhBkK,GAA+D,EAAnC7gB,OAAO4J,KAAKiX,GAAcpkB,OAAayL,EAAGzH,KAAKiQ,eAAemQ,EAAc3Y,EAAG/C,MAAMyH,QACtKwS,EAAUA,EAAU3iB,QAAUuc,SAKhCoG,EAAYlgB,EAGpB,GAAIoV,GAAW8K,EAAU3iB,OAAQ,CAC/B,IAAIyc,EAAoBhR,EAAG/B,UACzB2a,EAAgBxM,GAA+BpM,EAAG9D,KAAKib,cAA5BD,EAAU3iB,OACrCqc,EAAiB5Q,EAAG9D,KAAK2U,cAC3B,GAAI3E,EAEF,GADAzE,GAAO,eAAiB,EAAS,KAC7BmR,EAAe,CACZxM,IACH3E,GAAO,QAAU,EAAa,qBAAuB,EAAgB,MAEvE,IAEE4J,EAAmB,QADnBD,EAAgB,SAAWxF,EAAO,KADhC2C,EAAK,IAAM3C,GACgC,KACA,OAC3C5L,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAGzH,KAAKqQ,YAAYoI,EAAmBI,EAAepR,EAAG9D,KAAK4M,eAE/ErB,GAAO,QAAU,EAAW,YACxB2E,IACF3E,GAAO,cAAgB,EAAS,mBAAqB,EAAW,0CAA4C,EAAS,MAAQ,EAAW,oBAE1IA,GAAO,aAAe,EAAO,SAAW,EAAO,MAAQ,EAAa,YAAc,EAAO,SAAW,EAAW,MAAQ,EAAU,IAAM,EAAa,IAAM,EAAO,oBAC7JmJ,IACFnJ,GAAO,8CAAgD,EAAU,KAAO,EAAa,IAAM,EAAO,OAEpGA,GAAO,UAAY,EAAW,cAC1B2E,IACF3E,GAAO,UAGL0F,EAAaA,GAAc,IACpBlI,KAFXwC,GAAO,UAAY,EAAW,UAG9BA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,yDAA4EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kCAAqC,EAAqB,QACnM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAELA,GADEzH,EAAG9D,KAAKoV,uBACH,yBAEA,oCAAuC,EAAqB,MAErE7J,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,iBACF,CACLA,GAAO,SACP,IAAI8J,EAAO2F,EACX,GAAI3F,EAGF,IAFA,IAAkBhD,GAAM,EACtBkD,EAAKF,EAAKhd,OAAS,EACdga,EAAKkD,GAAI,CACdR,EAAeM,EAAKhD,GAAM,GACtBA,IACF9G,GAAO,QAITA,GAAO,SADLyJ,EAAW5H,GADT6H,EAAQnR,EAAGzH,KAAK2O,YAAY+J,KAEF,kBAC1BL,IACFnJ,GAAO,8CAAgD,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa8J,GAAiB,OAEnHxJ,GAAO,gBAAkB,EAAS,MAASzH,EAAGzH,KAAKqH,eAAeI,EAAG9D,KAAK4M,aAAemI,EAAeE,GAAU,OAGtH1J,GAAO,QACP,IAKI0F,EAJFkE,EAAmB,QADjBD,EAAgB,UAAYxF,GACe,OAC3C5L,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAG9D,KAAK4M,aAAe9I,EAAGzH,KAAKqQ,YAAYoI,EAAmBI,GAAe,GAAQJ,EAAoB,MAAQI,IAE9HjE,EAAaA,GAAc,IACpBlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,yDAA4EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kCAAqC,EAAqB,QACnM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAELA,GADEzH,EAAG9D,KAAKoV,uBACH,yBAEA,oCAAuC,EAAqB,MAErE7J,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAEL8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,kBAGT,GAAImR,EAAe,CACZxM,IACH3E,GAAO,QAAU,EAAa,qBAAuB,EAAgB,MAEvE,IACE2J,EACAC,EAAmB,QADnBD,EAAgB,SAAWxF,EAAO,KADhC2C,EAAK,IAAM3C,GACgC,KACA,OAC3C5L,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAGzH,KAAKqQ,YAAYoI,EAAmBI,EAAepR,EAAG9D,KAAK4M,eAE3EsD,IACF3E,GAAO,QAAU,EAAa,sBAAwB,EAAa,sBAC3C,IAApBzH,EAAGoN,cACL3F,GAAO,yDAA4EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kCAAqC,EAAqB,QACnM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAELA,GADEzH,EAAG9D,KAAKoV,uBACH,yBAEA,oCAAuC,EAAqB,MAErE7J,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,0FAA4F,EAAa,sBAElHA,GAAO,aAAe,EAAO,SAAW,EAAO,MAAQ,EAAa,YAAc,EAAO,aAAe,EAAU,IAAM,EAAa,IAAM,EAAO,oBAC9ImJ,IACFnJ,GAAO,8CAAgD,EAAU,KAAO,EAAa,IAAM,EAAO,OAEpGA,GAAO,qBACiB,IAApBzH,EAAGoN,cACL3F,GAAO,yDAA4EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kCAAqC,EAAqB,QACnM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAELA,GADEzH,EAAG9D,KAAKoV,uBACH,yBAEA,oCAAuC,EAAqB,MAErE7J,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,mFACH2E,IACF3E,GAAO,aAEJ,CACL,IAAIiQ,EAAOR,EACX,GAAIQ,EAGF,IAFA,IAAIzG,EAAc0G,GAAM,EACtBC,EAAKF,EAAKnjB,OAAS,EACdojB,EAAKC,GAAI,CACd3G,EAAeyG,EAAKC,GAAM,GAC1B,IAAIxG,EAAQnR,EAAGzH,KAAK2O,YAAY+J,GAE9BC,GADAG,EAAmBrR,EAAGzH,KAAK4O,aAAa8J,GAC7B3H,EAAQ6H,GACjBnR,EAAG9D,KAAKoV,yBACVtR,EAAG/B,UAAY+B,EAAGzH,KAAK0Q,QAAQ+H,EAAmBC,EAAcjR,EAAG9D,KAAK4M,eAE1ErB,GAAO,SAAW,EAAa,kBAC3BmJ,IACFnJ,GAAO,8CAAgD,EAAU,MAAUzH,EAAGzH,KAAK4O,aAAa8J,GAAiB,OAEnHxJ,GAAO,qBACiB,IAApBzH,EAAGoN,cACL3F,GAAO,yDAA4EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kCAAqC,EAAqB,QACnM,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,gBAELA,GADEzH,EAAG9D,KAAKoV,uBACH,yBAEA,oCAAuC,EAAqB,MAErE7J,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAETA,GAAO,kFAKfzH,EAAG/B,UAAY+S,OACN9E,IACTzE,GAAO,gBAET,OAAOA,IAGP,IAAIoR,GAAG,CAAC,SAAS7kB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA8BgN,EAAI0L,GACjD,IAUEC,EAVElE,EAAM,IACNmE,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAAOoW,GACpBM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UACzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACnBQ,EAAUpM,EAAG9D,KAAKoN,OAAStS,GAAWA,EAAQsS,MAQlD,GAJEqC,EAFES,GACF3E,GAAO,cAAgB,EAAS,MAASzH,EAAGzH,KAAK8Q,QAAQrS,EAAQsS,MAAOwC,EAAU9L,EAAGqM,aAAgB,KACtF,SAAWT,GAEX5U,GAEZA,GAAWoV,KAAoC,IAAxBpM,EAAG9D,KAAK2X,YAAuB,CACrDzH,IACF3E,GAAO,QAAU,EAAW,SAAW,EAAiB,iBAAmB,EAAiB,mBAAqB,EAAW,4BAA8B,EAAiB,kBAAsB,EAAW,qBAE9MA,GAAO,YAAc,EAAU,aAAe,EAAW,6BACzD,IAAIqR,EAAY9Y,EAAG1K,OAAO+V,OAASrL,EAAG1K,OAAO+V,MAAMjH,KACjD2U,EAAezV,MAAMC,QAAQuV,GAC/B,IAAKA,GAA0B,UAAbA,GAAsC,SAAbA,GAAyBC,IAAgD,GAA/BD,EAAUxG,QAAQ,WAAgD,GAA9BwG,EAAUxG,QAAQ,UACzI7K,GAAO,uDAAyD,EAAU,QAAU,EAAU,WAAa,EAAW,qCAEtHA,GAAO,yDAA2D,EAAU,QAE5EA,GAAO,QAAWzH,EAAGzH,KADP,iBAAmBwgB,EAAe,IAAM,KACnBD,EAAW,QAAQ,GAAS,eAC3DC,IACFtR,GAAO,sDAETA,GAAO,gDAAoD,EAAW,sEAExEA,GAAO,MACH2E,IACF3E,GAAO,SAGT,IAAI0F,EAAaA,GAAc,GAC/BA,EAAWlI,KAFXwC,GAAO,SAAW,EAAW,UAG7BA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,4DAA+EzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,8BAC5I,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,mGAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,eAELA,GADE2E,EACK,kBAAoB,EAEpB,GAAK,EAEd3E,GAAO,2CAA8CzH,EAAa,WAAI,YAAc,EAAU,KAEhGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,MACHyE,IACFzE,GAAO,iBAGLyE,IACFzE,GAAO,iBAGX,OAAOA,IAGP,IAAIuR,GAAG,CAAC,SAAShlB,EAAQf,EAAOD,GAClC,aACAC,EAAOD,QAAU,SAA2BgN,EAAI0L,GAC9C,IAAIjE,EAAM,GACNrK,GAA8B,IAArB4C,EAAG1K,OAAO8H,OACrB6b,EAAejZ,EAAGzH,KAAKkQ,qBAAqBzI,EAAG1K,OAAQ0K,EAAG/C,MAAMyH,IAAK,QACrEoG,EAAM9K,EAAG1M,KAAKmO,OAAOzB,EAAG1K,QAC1B,GAAI0K,EAAG9D,KAAKuS,eAAgB,CAC1B,IAAIyK,EAAclZ,EAAGzH,KAAKoQ,mBAAmB3I,EAAG1K,OAAQ0K,EAAG/C,MAAMmI,UACjE,GAAI8T,EAAa,CACf,IAAIC,EAAe,oBAAsBD,EACzC,GAA+B,QAA3BlZ,EAAG9D,KAAKuS,eACP,MAAM,IAAIta,MAAMglB,GADiBnZ,EAAG1B,OAAO+T,KAAK8G,IAezD,GAXInZ,EAAGlC,QACL2J,GAAO,mBACHrK,IACF4C,EAAG8H,OAAQ,EACXL,GAAO,UAETA,GAAO,sFACHqD,IAAQ9K,EAAG9D,KAAKmB,YAAc2C,EAAG9D,KAAK0C,eACxC6I,GAAO,kBAA2BqD,EAAM,SAGpB,kBAAb9K,EAAG1K,SAAyB2jB,IAAgBjZ,EAAG1K,OAAO4B,KAAO,CACtE,IACI0U,EAAO5L,EAAG6L,MACVC,EAAW9L,EAAG+L,UACd/U,EAAUgJ,EAAG1K,OAHboW,EAAW,gBAIXM,EAAchM,EAAGjC,WAAaiC,EAAGzH,KAAK2O,YAAYwE,GAClDO,EAAiBjM,EAAGhC,cAAgB,IAAM0N,EAC1CQ,GAAiBlM,EAAG9D,KAAKiQ,UAEzB7C,EAAQ,QAAUwC,GAAY,IAC9B6C,EAAS,QAAU/C,EACvB,IAAkB,IAAd5L,EAAG1K,OAAkB,CACnB0K,EAAGlC,MACLoO,GAAgB,EAEhBzE,GAAO,QAAU,EAAW,cAE1B0F,EAAaA,GAAc,IACpBlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,6DAAiGzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,kBAC9J,IAArBjM,EAAG9D,KAAKmR,WACV5F,GAAO,0CAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,mDAAsDzH,EAAa,WAAI,YAAc,EAAU,KAExGyH,GAAO,OAEPA,GAAO,OAET,IAAI8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,oFAK/BL,GAFAzH,EAAGlC,MACDV,EACK,iBAEA,yCAGF,QAAU,EAAW,YAMhC,OAHI4C,EAAGlC,QACL2J,GAAO,yBAEFA,EAET,GAAIzH,EAAGlC,MAAO,CACZ,IAAIsb,EAAOpZ,EAAGlC,MACZ8N,EAAO5L,EAAG6L,MAAQ,EAClBC,EAAW9L,EAAG+L,UAAY,EAC1BzC,EAAQ,OAKV,GAJAtJ,EAAGqZ,OAASrZ,EAAG5I,QAAQO,SAASqI,EAAG1M,KAAKmO,OAAOzB,EAAGhE,KAAK1G,SACvD0K,EAAGzI,OAASyI,EAAGzI,QAAUyI,EAAGqZ,cACrBrZ,EAAGlC,MACVkC,EAAGqM,YAAc,MAAC1W,QACQA,IAAtBqK,EAAG1K,OAAOwiB,SAAyB9X,EAAG9D,KAAKub,aAAezX,EAAG9D,KAAKod,eAAgB,CACpF,IAAIC,EAAc,wCAClB,GAA+B,QAA3BvZ,EAAG9D,KAAKod,eACP,MAAM,IAAInlB,MAAMolB,GADiBvZ,EAAG1B,OAAO+T,KAAKkH,GAGvD9R,GAAO,wBACPA,GAAO,wBACPA,GAAO,qDACF,CACDmE,EAAO5L,EAAG6L,MAEZvC,EAAQ,SADRwC,EAAW9L,EAAG+L,YACgB,IAEhC,GADIjB,IAAK9K,EAAGzI,OAASyI,EAAG5I,QAAQK,IAAIuI,EAAGzI,OAAQuT,IAC3C1N,IAAW4C,EAAG8H,MAAO,MAAM,IAAI3T,MAAM,+BACzCsT,GAAO,aAAe,EAAS,aAE7BkH,EAAS,QAAU/C,EACrBM,GAAiBlM,EAAG9D,KAAKiQ,UAD3B,IAEEqN,EAAkB,GAClBC,EAAkB,GAEhBC,EAAc1Z,EAAG1K,OAAO8O,KAC1B2U,EAAezV,MAAMC,QAAQmW,GAa/B,GAZIA,GAAe1Z,EAAG9D,KAAKyd,WAAmC,IAAvB3Z,EAAG1K,OAAOqkB,WAC3CZ,GACkC,GAAhCW,EAAYpH,QAAQ,UAAeoH,EAAcA,EAAYrU,OAAO,SAChD,QAAfqU,IACTA,EAAc,CAACA,EAAa,QAC5BX,GAAe,IAGfA,GAAsC,GAAtBW,EAAYnlB,SAC9BmlB,EAAcA,EAAY,GAC1BX,GAAe,GAEb/Y,EAAG1K,OAAO4B,MAAQ+hB,EAAc,CAClC,GAA0B,QAAtBjZ,EAAG9D,KAAK0d,WACV,MAAM,IAAIzlB,MAAM,qDAAuD6L,EAAGhC,cAAgB,8BAC1D,IAAvBgC,EAAG9D,KAAK0d,aACjBX,GAAe,EACfjZ,EAAG1B,OAAO+T,KAAK,6CAA+CrS,EAAGhC,cAAgB,MAMrF,GAHIgC,EAAG1K,OAAO6P,UAAYnF,EAAG9D,KAAKiJ,WAChCsC,GAAO,IAAOzH,EAAG/C,MAAMyH,IAAIS,SAAS/Q,KAAK4L,EAAI,aAE3C0Z,EAAa,CACf,GAAI1Z,EAAG9D,KAAK2d,YACV,IAAIC,EAAiB9Z,EAAGzH,KAAKwO,cAAc/G,EAAG9D,KAAK2d,YAAaH,GAElE,IAAIK,EAAc/Z,EAAG/C,MAAM0H,MAAM+U,GACjC,GAAII,GAAkBf,IAAgC,IAAhBgB,GAAyBA,IAAgBC,EAAgBD,GAAe,CACxG/N,EAAchM,EAAGjC,WAAa,QAChCkO,EAAiBjM,EAAGhC,cAAgB,QAClCgO,EAAchM,EAAGjC,WAAa,QAChCkO,EAAiBjM,EAAGhC,cAAgB,QAGtC,GADAyJ,GAAO,QAAWzH,EAAGzH,KADTwgB,EAAe,iBAAmB,iBACXW,EAAapQ,GAAO,GAAS,OAC5DwQ,EAAgB,CAClB,IAAIG,EAAY,WAAarO,EAC3BsO,EAAW,UAAYtO,EACzBnE,GAAO,QAAU,EAAc,aAAe,EAAU,KAC7B,SAAvBzH,EAAG9D,KAAK2d,cACVpS,GAAO,QAAU,EAAc,iCAAqC,EAAU,MAAQ,EAAc,gBAEtGA,GAAO,QAAU,EAAa,iBAC9B,IAAI0S,EAAkB,GAClB9L,EAAOyL,EACX,GAAIzL,EAGF,IAFA,IAAI+L,EAAO7L,GAAM,EACfC,EAAKH,EAAK9Z,OAAS,EACdga,EAAKC,GACV4L,EAAQ/L,EAAKE,GAAM,GACfA,IACF9G,GAAO,QAAU,EAAa,qBAC9B0S,GAAmB,KAEM,SAAvBna,EAAG9D,KAAK2d,aAAmC,SAATO,IACpC3S,GAAO,QAAU,EAAc,kBAAsB,EAAU,mBAAqB,EAAa,MAAQ,EAAU,MAAQ,EAAU,QAAU,EAAc,aAAe,EAAU,SAE3K,UAAT2S,EACF3S,GAAO,QAAU,EAAc,mBAAuB,EAAc,kBAAsB,EAAa,WAAe,EAAU,cAAgB,EAAU,cAAgB,EAAa,UACrK,UAAT2S,GAA8B,WAATA,GAC9B3S,GAAO,QAAU,EAAc,oBAAwB,EAAU,iBAAmB,EAAc,mBAAuB,EAAU,OAAS,EAAU,QAAU,EAAU,IAC7J,WAAT2S,IACF3S,GAAO,SAAW,EAAU,SAE9BA,GAAO,MAAQ,EAAa,OAAS,EAAU,MAC7B,WAAT2S,EACT3S,GAAO,QAAU,EAAU,mBAAuB,EAAU,aAAe,EAAU,cAAgB,EAAa,sBAAwB,EAAU,kBAAsB,EAAU,WAAa,EAAa,YAC5L,QAAT2S,EACT3S,GAAO,QAAU,EAAU,cAAkB,EAAU,aAAe,EAAU,eAAiB,EAAa,YAC9E,SAAvBzH,EAAG9D,KAAK2d,aAAmC,SAATO,IAC3C3S,GAAO,QAAU,EAAc,mBAAuB,EAAc,mBAAuB,EAAc,oBAAwB,EAAU,aAAe,EAAa,OAAS,EAAU,QAK5L0F,EAAaA,GAAc,IACpBlI,KAFXwC,GAAO,IAAM,EAAoB,QAAU,EAAa,wBAGxDA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,qDAAyFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,uBAE7KxE,GADEsR,EACK,GAAMW,EAAYlZ,KAAK,KAEvB,GAAK,EAEdiH,GAAO,QACkB,IAArBzH,EAAG9D,KAAKmR,WACV5F,GAAO,0BAELA,GADEsR,EACK,GAAMW,EAAYlZ,KAAK,KAEvB,GAAK,EAEdiH,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAEL8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,cACP,IAAI4I,EAAcvE,EAAW,QAAWA,EAAW,GAAM,IAAM,aAE/DrE,GAAO,IAAM,EAAU,MAAQ,EAAa,KACvCqE,IACHrE,GAAO,OAAS,EAAgB,mBAElCA,GAAO,IAAM,EAAgB,KALLqE,EAAW9L,EAAGqM,YAAYP,GAAY,sBAKH,OAAS,EAAa,WAC5E,EACDqB,EAAaA,GAAc,IACpBlI,KAAKwC,GAChBA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,qDAAyFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,uBAE7KxE,GADEsR,EACK,GAAMW,EAAYlZ,KAAK,KAEvB,GAAK,EAEdiH,GAAO,QACkB,IAArBzH,EAAG9D,KAAKmR,WACV5F,GAAO,0BAELA,GADEsR,EACK,GAAMW,EAAYlZ,KAAK,KAEvB,GAAK,EAEdiH,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAEL8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAGrCL,GAAO,OAGX,GAAIzH,EAAG1K,OAAO4B,OAAS+hB,EACrBxR,GAAO,IAAOzH,EAAG/C,MAAMyH,IAAIxN,KAAK9C,KAAK4L,EAAI,QAAW,IAChDkM,IACFzE,GAAO,qBAELA,GADE2R,EACK,IAEA,QAAU,EAEnB3R,GAAO,OACPgS,GAAmB,SAEhB,CACL,IAAIlI,EAAOvR,EAAG/C,MACd,GAAIsU,EAGF,IAFA,IAAiBC,GAAM,EACrBC,EAAKF,EAAKhd,OAAS,EACdid,EAAKC,GAEV,GAAIuI,EADJD,EAAcxI,EAAKC,GAAM,IACS,CAIhC,GAHIuI,EAAY3V,OACdqD,GAAO,QAAWzH,EAAGzH,KAAKwN,cAAcgU,EAAY3V,KAAMkF,GAAU,QAElEtJ,EAAG9D,KAAKub,YACV,GAAwB,UAApBsC,EAAY3V,MAAoBpE,EAAG1K,OAAOkP,WAAY,CACpDxN,EAAUgJ,EAAG1K,OAAOkP,WAAxB,IAEIkT,EADY5f,OAAO4J,KAAK1K,GAE5B,GAAI0gB,EAGF,IAFA,IAAIzG,EAAc0G,GAAM,EACtBC,EAAKF,EAAKnjB,OAAS,EACdojB,EAAKC,GAAI,CAGd,QAAqBjiB,KADjB2Y,EAAOtX,EADXia,EAAeyG,EAAKC,GAAM,KAEjBG,QAAuB,CAC9B,IAAIzI,EAAY/F,EAAQtJ,EAAGzH,KAAK2O,YAAY+J,GAC5C,GAAIjR,EAAGyN,eACL,GAAIzN,EAAG9D,KAAKod,eAAgB,CACtBC,EAAc,2BAA6BlK,EAC/C,GAA+B,QAA3BrP,EAAG9D,KAAKod,eACP,MAAM,IAAInlB,MAAMolB,GADiBvZ,EAAG1B,OAAO+T,KAAKkH,SAIvD9R,GAAO,QAAU,EAAc,kBACJ,SAAvBzH,EAAG9D,KAAKub,cACVhQ,GAAO,OAAS,EAAc,gBAAkB,EAAc,YAEhEA,GAAO,MAAQ,EAAc,MAE3BA,GADyB,UAAvBzH,EAAG9D,KAAKub,YACH,IAAOzX,EAAG5B,WAAWkQ,EAAKwJ,SAAY,IAEtC,IAAOrN,KAAKC,UAAU4D,EAAKwJ,SAAY,IAEhDrQ,GAAO,YAKV,GAAwB,SAApBsS,EAAY3V,MAAmBd,MAAMC,QAAQvD,EAAG1K,OAAO+V,OAAQ,CACxE,IAAI0M,EAAO/X,EAAG1K,OAAO+V,MACrB,GAAI0M,EACF,CAAUxJ,GAAM,EAEhB,IAFA,IAAID,EACF2J,EAAKF,EAAKxjB,OAAS,EACdga,EAAK0J,GAEV,QAAqBtiB,KADrB2Y,EAAOyJ,EAAKxJ,GAAM,IACTuJ,QAAuB,CAC1BzI,EAAY/F,EAAQ,IAAMiF,EAAK,IACnC,GAAIvO,EAAGyN,eACL,GAAIzN,EAAG9D,KAAKod,eAAgB,CACtBC,EAAc,2BAA6BlK,EAC/C,GAA+B,QAA3BrP,EAAG9D,KAAKod,eACP,MAAM,IAAInlB,MAAMolB,GADiBvZ,EAAG1B,OAAO+T,KAAKkH,SAIvD9R,GAAO,QAAU,EAAc,kBACJ,SAAvBzH,EAAG9D,KAAKub,cACVhQ,GAAO,OAAS,EAAc,gBAAkB,EAAc,YAEhEA,GAAO,MAAQ,EAAc,MAE3BA,GADyB,UAAvBzH,EAAG9D,KAAKub,YACH,IAAOzX,EAAG5B,WAAWkQ,EAAKwJ,SAAY,IAEtC,IAAOrN,KAAKC,UAAU4D,EAAKwJ,SAAY,IAEhDrQ,GAAO,OAOnB,IAAI4S,EAAON,EAAY1V,MACvB,GAAIgW,EAGF,IAFA,IAAIxK,EAAOyK,GAAM,EACfC,EAAKF,EAAK9lB,OAAS,EACd+lB,EAAKC,GAEV,GAAIC,EADJ3K,EAAQwK,EAAKC,GAAM,IACQ,CACzB,IAAIhL,EAAQO,EAAMzb,KAAK4L,EAAI6P,EAAMvP,QAASyZ,EAAY3V,MAClDkL,IACF7H,GAAO,IAAM,EAAU,IACnByE,IACFsN,GAAmB,MAU7B,GAJItN,IACFzE,GAAO,IAAM,EAAoB,IACjC+R,EAAkB,IAEhBO,EAAY3V,OACdqD,GAAO,MACHiS,GAAeA,IAAgBK,EAAY3V,OAAS0V,GAAgB,CAEtE,IAEI3M,EAFAnB,EAAchM,EAAGjC,WAAa,QAChCkO,EAAiBjM,EAAGhC,cAAgB,SAClCmP,EAAaA,GAAc,IACpBlI,KAJXwC,GAAO,YAKPA,EAAM,IACkB,IAApBzH,EAAGoN,cACL3F,GAAO,qDAAyFzH,EAAY,UAAI,kBAAqBA,EAAGzH,KAAKqH,eAAeqM,GAAmB,uBAE7KxE,GADEsR,EACK,GAAMW,EAAYlZ,KAAK,KAEvB,GAAK,EAEdiH,GAAO,QACkB,IAArBzH,EAAG9D,KAAKmR,WACV5F,GAAO,0BAELA,GADEsR,EACK,GAAMW,EAAYlZ,KAAK,KAEvB,GAAK,EAEdiH,GAAO,MAELzH,EAAG9D,KAAKoR,UACV7F,GAAO,6BAA+B,EAAgB,mCAAsCzH,EAAa,WAAI,YAAc,EAAU,KAEvIyH,GAAO,OAEPA,GAAO,OAEL8F,EAAQ9F,EACZA,EAAM0F,EAAWK,MAIb/F,IAHCzH,EAAGyN,eAAiBvB,EAEnBlM,EAAG8H,MACE,+BAAiC,EAAU,OAE3C,uBAAyB,EAAU,oBAGrC,cAAgB,EAAU,+EAEnCL,GAAO,MAGPyE,IACFzE,GAAO,mBAELA,GADE2R,EACK,IAEA,QAAU,EAEnB3R,GAAO,OACPgS,GAAmB,MA0B7B,SAASO,EAAgBD,GAEvB,IADA,IAAI1V,EAAQ0V,EAAY1V,MACfvQ,EAAI,EAAGA,EAAIuQ,EAAM9P,OAAQT,IAChC,GAAI0mB,EAAenW,EAAMvQ,IAAK,OAAO,EAGzC,SAAS0mB,EAAe3K,GACtB,YAAoCla,IAA7BqK,EAAG1K,OAAOua,EAAMvP,UAA2BuP,EAAM3K,YAG1D,SAAoC2K,GAElC,IADA,IAAI4K,EAAO5K,EAAM3K,WACRpR,EAAI,EAAGA,EAAI2mB,EAAKlmB,OAAQT,IAC/B,QAA2B6B,IAAvBqK,EAAG1K,OAAOmlB,EAAK3mB,IAAmB,OAAO,EANuB4mB,CAA2B7K,GAQnG,OAnCI3D,IACFzE,GAAO,IAAM,EAAoB,KAE/B2R,GACEhc,GACFqK,GAAO,6CACPA,GAAO,+CAEPA,GAAO,+BACPA,GAAO,gCAETA,GAAO,wBAEPA,GAAO,QAAU,EAAW,sBAAwB,EAAS,IAE/DA,EAAMzH,EAAGzH,KAAKiP,YAAYC,GACtB2R,IACF3R,EAAMzH,EAAGzH,KAAKsP,iBAAiBJ,EAAKrK,IAkB/BqK,IAGP,IAAIkT,GAAG,CAAC,SAAS3mB,EAAQf,EAAOD,GAClC,aAEA,IAAIiX,EAAa,yBACbtL,EAAiB3K,EAAQ,kBACzB4mB,EAAmB5mB,EAAQ,uBAkI/B,SAAS6mB,EAAgB1a,EAAY2a,GACnCD,EAAgB3iB,OAAS,KACzB,IAAInB,EAAIxD,KAAKwnB,iBAAmBxnB,KAAKwnB,kBACFxnB,KAAKwI,QAAQ6e,GAAkB,GAElE,GAAI7jB,EAAEoJ,GAAa,OAAO,EAE1B,GADA0a,EAAgB3iB,OAASnB,EAAEmB,OACvB4iB,EACF,MAAM,IAAI3mB,MAAM,yCAA4CZ,KAAKkN,WAAW1J,EAAEmB,SAE9E,OAAO,EA1IXjF,EAAOD,QAAU,CACfgoB,IAcF,SAAoB1a,EAASH,GAG3B,IAAIlD,EAAQ1J,KAAK0J,MACjB,GAAIA,EAAMmI,SAAS9E,GACjB,MAAM,IAAInM,MAAM,WAAamM,EAAU,uBAEzC,IAAK2J,EAAW7O,KAAKkF,GACnB,MAAM,IAAInM,MAAM,WAAamM,EAAU,8BAEzC,GAAIH,EAAY,CACd5M,KAAKsnB,gBAAgB1a,GAAY,GAEjC,IAAI6F,EAAW7F,EAAWiE,KAC1B,GAAId,MAAMC,QAAQyC,GAChB,IAAK,IAAIlS,EAAE,EAAGA,EAAEkS,EAASzR,OAAQT,IAC/BmnB,EAAS3a,EAAS0F,EAASlS,GAAIqM,QAEjC8a,EAAS3a,EAAS0F,EAAU7F,GAG9B,IAAIoK,EAAapK,EAAWoK,WACxBA,IACEpK,EAAWmJ,OAAS/V,KAAKkC,MAAM6T,QACjCiB,EAAa,CACXK,MAAO,CACLL,EACA,CAAErT,KAAQ,mFAIhBiJ,EAAWF,eAAiB1M,KAAKwI,QAAQwO,GAAY,IAOzD,SAAS0Q,EAAS3a,EAAS0F,EAAU7F,GAEnC,IADA,IAAI+a,EACKpnB,EAAE,EAAGA,EAAEmJ,EAAM1I,OAAQT,IAAK,CACjC,IAAIqnB,EAAKle,EAAMnJ,GACf,GAAIqnB,EAAG/W,MAAQ4B,EAAU,CACvBkV,EAAYC,EACZ,OAICD,GAEHje,EAAMgI,KADNiW,EAAY,CAAE9W,KAAM4B,EAAU3B,MAAO,KAIvC,IAAIvE,EAAO,CACTQ,QAASA,EACTH,WAAYA,EACZmF,QAAQ,EACRlR,KAAMuK,EACNuG,WAAY/E,EAAW+E,YAEzBgW,EAAU7W,MAAMY,KAAKnF,GACrB7C,EAAMqI,OAAOhF,GAAWR,EAG1B,OA7BA7C,EAAMmI,SAAS9E,GAAWrD,EAAMyH,IAAIpE,IAAW,EA6BxC/M,MA7EPwB,IAuFF,SAAoBuL,GAElB,IAAIR,EAAOvM,KAAK0J,MAAMqI,OAAOhF,GAC7B,OAAOR,EAAOA,EAAKK,WAAa5M,KAAK0J,MAAMmI,SAAS9E,KAAY,GAzFhE8a,OAmGF,SAAuB9a,GAErB,IAAIrD,EAAQ1J,KAAK0J,aACVA,EAAMmI,SAAS9E,UACfrD,EAAMyH,IAAIpE,UACVrD,EAAMqI,OAAOhF,GACpB,IAAK,IAAIxM,EAAE,EAAGA,EAAEmJ,EAAM1I,OAAQT,IAE5B,IADA,IAAIuQ,EAAQpH,EAAMnJ,GAAGuQ,MACZsG,EAAE,EAAGA,EAAEtG,EAAM9P,OAAQoW,IAC5B,GAAItG,EAAMsG,GAAGrK,SAAWA,EAAS,CAC/B+D,EAAM9G,OAAOoN,EAAG,GAChB,MAIN,OAAOpX,MAjHPyC,SAAU6kB,IAyIV,CAACQ,sBAAsB,GAAGC,iBAAiB,KAAKC,GAAG,CAAC,SAASvnB,EAAQf,EAAOD,GAC9EC,EAAOD,QAAQ,CACXgE,QAAW,0CACX8T,IAAO,+EACP0Q,YAAe,mEACfpX,KAAQ,SACRgH,SAAY,CAAE,SACd5G,WAAc,CACV8E,MAAS,CACLlF,KAAQ,SACRwG,MAAS,CACL,CAAEkH,OAAU,yBACZ,CAAEA,OAAU,mBAIxB6E,sBAAwB,IAG1B,IAAI8E,GAAG,CAAC,SAASznB,EAAQf,EAAOD,GAClCC,EAAOD,QAAQ,CACXgE,QAAW,0CACX8T,IAAO,0CACP4Q,MAAS,0BACT3Q,YAAe,CACX4Q,YAAe,CACXvX,KAAQ,QACRgP,SAAY,EACZ/H,MAAS,CAAEnU,KAAQ,MAEvB0kB,mBAAsB,CAClBxX,KAAQ,UACRG,QAAW,GAEfsX,2BAA8B,CAC1B9I,MAAS,CACL,CAAE7b,KAAQ,oCACV,CAAE4gB,QAAW,KAGrB9M,YAAe,CACXiI,KAAQ,CACJ,QACA,UACA,UACA,OACA,SACA,SACA,WAGR6I,YAAe,CACX1X,KAAQ,QACRiH,MAAS,CAAEjH,KAAQ,UACnByP,aAAe,EACfiE,QAAW,KAGnB1T,KAAQ,CAAC,SAAU,WACnBI,WAAc,CACVsG,IAAO,CACH1G,KAAQ,SACR0N,OAAU,iBAEd9a,QAAW,CACPoN,KAAQ,SACR0N,OAAU,OAEd5a,KAAQ,CACJkN,KAAQ,SACR0N,OAAU,iBAEd3M,SAAY,CACRf,KAAQ,UAEZsX,MAAS,CACLtX,KAAQ,UAEZoX,YAAe,CACXpX,KAAQ,UAEZ0T,SAAW,EACXiE,SAAY,CACR3X,KAAQ,UACR0T,SAAW,GAEfkE,SAAY,CACR5X,KAAQ,QACRiH,OAAS,GAEboI,WAAc,CACVrP,KAAQ,SACR6X,iBAAoB,GAExB3X,QAAW,CACPF,KAAQ,UAEZ8X,iBAAoB,CAChB9X,KAAQ,UAEZG,QAAW,CACPH,KAAQ,UAEZ6X,iBAAoB,CAChB7X,KAAQ,UAEZiP,UAAa,CAAEnc,KAAQ,oCACvBoc,UAAa,CAAEpc,KAAQ,4CACvByc,QAAW,CACPvP,KAAQ,SACR0N,OAAU,SAEd0D,gBAAmB,CAAEte,KAAQ,KAC7BmU,MAAS,CACLT,MAAS,CACL,CAAE1T,KAAQ,KACV,CAAEA,KAAQ,8BAEd4gB,SAAW,GAEf3E,SAAY,CAAEjc,KAAQ,oCACtBkc,SAAY,CAAElc,KAAQ,4CACtB2c,YAAe,CACXzP,KAAQ,UACR0T,SAAW,GAEf9E,SAAY,CAAE9b,KAAQ,KACtBqc,cAAiB,CAAErc,KAAQ,oCAC3Bsc,cAAiB,CAAEtc,KAAQ,4CAC3BkU,SAAY,CAAElU,KAAQ,6BACtByf,qBAAwB,CAAEzf,KAAQ,KAClC6T,YAAe,CACX3G,KAAQ,SACRuS,qBAAwB,CAAEzf,KAAQ,KAClC4gB,QAAW,IAEftT,WAAc,CACVJ,KAAQ,SACRuS,qBAAwB,CAAEzf,KAAQ,KAClC4gB,QAAW,IAEftB,kBAAqB,CACjBpS,KAAQ,SACRuS,qBAAwB,CAAEzf,KAAQ,KAClC0c,cAAiB,CAAE9B,OAAU,SAC7BgG,QAAW,IAEf1X,aAAgB,CACZgE,KAAQ,SACRuS,qBAAwB,CACpB/L,MAAS,CACL,CAAE1T,KAAQ,KACV,CAAEA,KAAQ,gCAItB0c,cAAiB,CAAE1c,KAAQ,KAC3BqU,OAAS,EACT0H,KAAQ,CACJ7O,KAAQ,QACRiH,OAAS,EACT+H,SAAY,EACZS,aAAe,GAEnBzP,KAAQ,CACJwG,MAAS,CACL,CAAE1T,KAAQ,6BACV,CACIkN,KAAQ,QACRiH,MAAS,CAAEnU,KAAQ,6BACnBkc,SAAY,EACZS,aAAe,KAI3B/B,OAAU,CAAE1N,KAAQ,UACpB+X,iBAAoB,CAAE/X,KAAQ,UAC9BgY,gBAAmB,CAAEhY,KAAQ,UAC7B8O,GAAM,CAAChc,KAAQ,KACfrB,KAAQ,CAACqB,KAAQ,KACjBmlB,KAAQ,CAACnlB,KAAQ,KACjB6b,MAAS,CAAE7b,KAAQ,6BACnB0T,MAAS,CAAE1T,KAAQ,6BACnBwc,MAAS,CAAExc,KAAQ,6BACnBiU,IAAO,CAAEjU,KAAQ,MAErB4gB,SAAW,IAGb,IAAIwE,GAAG,CAAC,SAAStoB,EAAQf,EAAOD,GAClC,aAMAC,EAAOD,QAAU,SAAS6I,EAAM3H,EAAGiW,GACjC,GAAIjW,IAAMiW,EAAG,OAAO,EAEpB,GAAIjW,GAAKiW,GAAiB,iBAALjW,GAA6B,iBAALiW,EAAe,CAC1D,GAAIjW,EAAE8D,cAAgBmS,EAAEnS,YAAa,OAAO,EAE5C,IAAIzD,EAAQT,EAAG4N,EACf,GAAI4B,MAAMC,QAAQrP,GAAI,CAEpB,IADAK,EAASL,EAAEK,SACG4V,EAAE5V,OAAQ,OAAO,EAC/B,IAAKT,EAAIS,EAAgB,GAART,KACf,IAAK+H,EAAM3H,EAAEJ,GAAIqW,EAAErW,IAAK,OAAO,EACjC,OAAO,EAKT,GAAII,EAAE8D,cAAgBsD,OAAQ,OAAOpH,EAAEoJ,SAAW6M,EAAE7M,QAAUpJ,EAAEqoB,QAAUpS,EAAEoS,MAC5E,GAAIroB,EAAEsoB,UAAY1kB,OAAOnD,UAAU6nB,QAAS,OAAOtoB,EAAEsoB,YAAcrS,EAAEqS,UACrE,GAAItoB,EAAEuoB,WAAa3kB,OAAOnD,UAAU8nB,SAAU,OAAOvoB,EAAEuoB,aAAetS,EAAEsS,WAIxE,IADAloB,GADAmN,EAAO5J,OAAO4J,KAAKxN,IACLK,UACCuD,OAAO4J,KAAKyI,GAAG5V,OAAQ,OAAO,EAE7C,IAAKT,EAAIS,EAAgB,GAART,KACf,IAAKgE,OAAOnD,UAAU4L,eAAejM,KAAK6V,EAAGzI,EAAK5N,IAAK,OAAO,EAEhE,IAAKA,EAAIS,EAAgB,GAART,KAAY,CAC3B,IAAIe,EAAM6M,EAAK5N,GAEf,IAAK+H,EAAM3H,EAAEW,GAAMsV,EAAEtV,IAAO,OAAO,EAGrC,OAAO,EAIT,OAAOX,GAAIA,GAAKiW,GAAIA,IAGpB,IAAIuS,GAAG,CAAC,SAAS1oB,EAAQf,EAAOD,GAClC,aAEAC,EAAOD,QAAU,SAAUiT,EAAM/J,GAET,mBADTA,EAANA,GAAa,MACcA,EAAO,CAAEygB,IAAKzgB,IAC9C,IAEiCnJ,EAF7B6pB,EAAiC,kBAAhB1gB,EAAK0gB,QAAwB1gB,EAAK0gB,OAEnDD,EAAMzgB,EAAKygB,MAAkB5pB,EAQ9BmJ,EAAKygB,IAPG,SAAUE,GACb,OAAO,SAAU3oB,EAAGiW,GAGhB,OAAOpX,EAFI,CAAE8B,IAAKX,EAAGY,MAAO+nB,EAAK3oB,IACtB,CAAEW,IAAKsV,EAAGrV,MAAO+nB,EAAK1S,QAMzC2S,EAAO,GACX,OAAO,SAAUpS,EAAWmS,GAKxB,GAJIA,GAAQA,EAAKE,QAAiC,mBAAhBF,EAAKE,SACnCF,EAAOA,EAAKE,eAGHpnB,IAATknB,EAAJ,CACA,GAAmB,iBAARA,EAAkB,OAAOG,SAASH,GAAQ,GAAKA,EAAO,OACjE,GAAoB,iBAATA,EAAmB,OAAOpS,KAAKC,UAAUmS,GAEpD,IAAI/oB,EAAG2T,EACP,GAAInE,MAAMC,QAAQsZ,GAAO,CAErB,IADApV,EAAM,IACD3T,EAAI,EAAGA,EAAI+oB,EAAKtoB,OAAQT,IACrBA,IAAG2T,GAAO,KACdA,GAAOiD,EAAUmS,EAAK/oB,KAAO,OAEjC,OAAO2T,EAAM,IAGjB,GAAa,OAAToV,EAAe,MAAO,OAE1B,IAA4B,IAAxBC,EAAKxK,QAAQuK,GAAc,CAC3B,GAAID,EAAQ,OAAOnS,KAAKC,UAAU,aAClC,MAAM,IAAIuS,UAAU,yCAGxB,IAAIC,EAAYJ,EAAK7X,KAAK4X,GAAQ,EAC9Bnb,EAAO5J,OAAO4J,KAAKmb,GAAMM,KAAKR,GAAOA,EAAIE,IAE7C,IADApV,EAAM,GACD3T,EAAI,EAAGA,EAAI4N,EAAKnN,OAAQT,IAAK,CAC9B,IAAIe,EAAM6M,EAAK5N,GACXgB,EAAQ4V,EAAUmS,EAAKhoB,IAEtBC,IACD2S,IAAKA,GAAO,KAChBA,GAAOgD,KAAKC,UAAU7V,GAAO,IAAMC,GAGvC,OADAgoB,EAAKvf,OAAO2f,EAAW,GAChB,IAAMzV,EAAM,KAtChB,CAuCJxB,KAGL,IAAImX,GAAG,CAAC,SAASppB,EAAQf,EAAOD,GAClC,aAEA,IAAIkO,EAAWjO,EAAOD,QAAU,SAAUsC,EAAQ4G,EAAMmhB,GAEnC,mBAARnhB,IACTmhB,EAAKnhB,EACLA,EAAO,IAwDX,SAASohB,EAAUphB,EAAMqhB,EAAKC,EAAMloB,EAAQ+M,EAASC,EAAYC,EAAeC,EAAezC,EAAc0C,GAC3G,GAAInN,GAA2B,iBAAVA,IAAuBgO,MAAMC,QAAQjO,GAAS,CAEjE,IAAK,IAAIT,KADT0oB,EAAIjoB,EAAQ+M,EAASC,EAAYC,EAAeC,EAAezC,EAAc0C,GAC7DnN,EAAQ,CACtB,IAAIqB,EAAMrB,EAAOT,GACjB,GAAIyO,MAAMC,QAAQ5M,IAChB,GAAI9B,KAAOqM,EAASuc,cAClB,IAAK,IAAI3pB,EAAE,EAAGA,EAAE6C,EAAIpC,OAAQT,IAC1BwpB,EAAUphB,EAAMqhB,EAAKC,EAAM7mB,EAAI7C,GAAIuO,EAAU,IAAMxN,EAAM,IAAMf,EAAGwO,EAAYD,EAASxN,EAAKS,EAAQxB,QAEnG,GAAIe,KAAOqM,EAASwc,eACzB,GAAI/mB,GAAqB,iBAAPA,EAChB,IAAK,IAAIuS,KAAQvS,EACf2mB,EAAUphB,EAAMqhB,EAAKC,EAAM7mB,EAAIuS,GAAO7G,EAAU,IAAMxN,EAAM,IAAoBqU,EAY/EpF,QAAQ,KAAM,MAAMA,QAAQ,MAAO,MAZmDxB,EAAYD,EAASxN,EAAKS,EAAQ4T,QAEpHrU,KAAOqM,EAASkE,UAAalJ,EAAKkG,WAAavN,KAAOqM,EAASyc,gBACxEL,EAAUphB,EAAMqhB,EAAKC,EAAM7mB,EAAK0L,EAAU,IAAMxN,EAAKyN,EAAYD,EAASxN,EAAKS,GAGnFkoB,EAAKloB,EAAQ+M,EAASC,EAAYC,EAAeC,EAAezC,EAAc0C,IApEhF6a,CAAUphB,EAHc,mBADxBmhB,EAAKnhB,EAAKmhB,IAAMA,GACsBA,EAAKA,EAAGE,KAAO,aAC1CF,EAAGG,MAAQ,aAEKloB,EAAQ,GAAIA,IAIzC4L,EAASkE,SAAW,CAClBoQ,iBAAiB,EACjBnK,OAAO,EACP2H,UAAU,EACV2D,sBAAsB,EACtB/C,eAAe,EACfzI,KAAK,GAGPjK,EAASuc,cAAgB,CACvBpS,OAAO,EACP0H,OAAO,EACPnI,OAAO,EACP8I,OAAO,GAGTxS,EAASwc,cAAgB,CACvB3S,aAAa,EACbvG,YAAY,EACZgS,mBAAmB,EACnBpW,cAAc,GAGhBc,EAASyc,aAAe,CACtB7F,SAAS,EACT7E,MAAM,EACN1H,OAAO,EACPH,UAAU,EACV9G,SAAS,EACTC,SAAS,EACT2X,kBAAkB,EAClBD,kBAAkB,EAClBxI,YAAY,EACZJ,WAAW,EACXC,WAAW,EACXK,SAAS,EACT7B,QAAQ,EACRqB,UAAU,EACVC,UAAU,EACVS,aAAa,EACbN,eAAe,EACfC,eAAe,IAgCf,IAAIoK,GAAG,CAAC,SAAS5pB,EAAQf,EAAOD,GAEjC,IAAUK,EAAAA,EAITE,KAAM,SAAWP,GAAW,aAE9B,SAAS6qB,IACL,IAAK,IAAIC,EAAOpgB,UAAUnJ,OAAQwpB,EAAOza,MAAMwa,GAAOE,EAAO,EAAGA,EAAOF,EAAME,IACzED,EAAKC,GAAQtgB,UAAUsgB,GAG3B,GAAkB,EAAdD,EAAKxpB,OAAY,CACjBwpB,EAAK,GAAKA,EAAK,GAAGjb,MAAM,GAAI,GAE5B,IADA,IAAImb,EAAKF,EAAKxpB,OAAS,EACd2pB,EAAI,EAAGA,EAAID,IAAMC,EACtBH,EAAKG,GAAKH,EAAKG,GAAGpb,MAAM,GAAI,GAGhC,OADAib,EAAKE,GAAMF,EAAKE,GAAInb,MAAM,GACnBib,EAAKvd,KAAK,IAEjB,OAAOud,EAAK,GAGpB,SAASI,EAAO5kB,GACZ,MAAO,MAAQA,EAAM,IAEzB,SAAS6kB,EAAOvqB,GACZ,YAAa8B,IAAN9B,EAAkB,YAAoB,OAANA,EAAa,OAASiE,OAAOnD,UAAU8nB,SAASnoB,KAAKT,GAAGoH,MAAM,KAAKuS,MAAMvS,MAAM,KAAKojB,QAAQC,cAEvI,SAASC,EAAYhlB,GACjB,OAAOA,EAAIglB,cAef,SAASC,EAAUC,GACf,IAAIC,EAAU,WAEVC,EAAU,QAEVC,EAAWf,EAAMc,EAAS,YAI1BE,EAAeV,EAAOA,EAAO,UAAYS,EAAW,IAAMA,EAAWA,EAAW,IAAMA,EAAWA,GAAY,IAAMT,EAAO,cAAgBS,EAAW,IAAMA,EAAWA,GAAY,IAAMT,EAAO,IAAMS,EAAWA,IAGhNE,EAAe,sCACfC,EAAalB,EAFF,0BAEsBiB,GAGrCE,EAAaP,EAAQ,oBAAsB,KAE3CQ,EAAepB,EAAMa,EAASC,EAAS,iBAJvBF,EAAQ,8EAAgF,MAKpGS,EAAUf,EAAOO,EAAUb,EAAMa,EAASC,EAAS,eAAiB,KACpEQ,EAAYhB,EAAOA,EAAOU,EAAe,IAAMhB,EAAMoB,EAAcH,EAAc,UAAY,KAE7FM,GADajB,EAAOA,8DAAuIQ,GACtIR,EAAOA,oEAA6IQ,IAE7KU,EAAelB,EAAOiB,EAAqB,MAAQA,EAAqB,MAAQA,EAAqB,MAAQA,GACzGE,EAAOnB,EAAOS,EAAW,SACzBW,EAAQpB,EAAOA,EAAOmB,EAAO,MAAQA,GAAQ,IAAMD,GACnDG,EAAgBrB,EAAOA,EAAOmB,EAAO,OAAS,MAAQC,GAE1DE,EAAgBtB,EAAO,SAAWA,EAAOmB,EAAO,OAAS,MAAQC,GAEjEG,EAAgBvB,EAAOA,EAAOmB,GAAQ,UAAYnB,EAAOmB,EAAO,OAAS,MAAQC,GAEjFI,EAAgBxB,EAAOA,EAAOA,EAAOmB,EAAO,OAAS,QAAUA,GAAQ,UAAYnB,EAAOmB,EAAO,OAAS,MAAQC,GAElHK,EAAgBzB,EAAOA,EAAOA,EAAOmB,EAAO,OAAS,QAAUA,GAAQ,UAAYnB,EAAOmB,EAAO,OAAS,MAAQC,GAElHM,EAAgB1B,EAAOA,EAAOA,EAAOmB,EAAO,OAAS,QAAUA,GAAQ,UAAYA,EAAO,MAAQC,GAElGO,EAAgB3B,EAAOA,EAAOA,EAAOmB,EAAO,OAAS,QAAUA,GAAQ,UAAYC,GAEnFQ,EAAgB5B,EAAOA,EAAOA,EAAOmB,EAAO,OAAS,QAAUA,GAAQ,UAAYA,GAEnFU,EAAgB7B,EAAOA,EAAOA,EAAOmB,EAAO,OAAS,QAAUA,GAAQ,WAEvEW,EAAe9B,EAAO,CAACqB,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,GAAexf,KAAK,MAC/J0f,EAAU/B,EAAOA,EAAOc,EAAe,IAAMJ,GAAgB,KAIjEsB,GAFahC,EAAO8B,EAAe,QAAUC,GAExB/B,EAAO8B,EAAe9B,EAAO,eAAiBS,EAAW,QAAUsB,IAExFE,EAAajC,EAAO,OAASS,EAAW,OAASf,EAAMoB,EAAcH,EAAc,SAAW,KAC1FuB,EAAclC,EAAO,MAAQA,EAAOgC,EAAqB,IAAMF,EAAe,IAAMG,GAAc,OAEtGE,EAAYnC,EAAOA,EAAOU,EAAe,IAAMhB,EAAMoB,EAAcH,IAAiB,KAChFyB,EAAQpC,EAAOkC,EAAc,IAAMhB,EAAe,MAAQiB,EAAY,KAAYA,GAClFE,EAAQrC,EAAOQ,EAAU,KACzB8B,EAAatC,EAAOA,EAAOgB,EAAY,KAAO,IAAMoB,EAAQpC,EAAO,MAAQqC,GAAS,KACpFE,EAASvC,EAAOU,EAAe,IAAMhB,EAAMoB,EAAcH,EAAc,aACvE6B,EAAWxC,EAAOuC,EAAS,KAC3BE,EAAczC,EAAOuC,EAAS,KAC9BG,EAAiB1C,EAAOA,EAAOU,EAAe,IAAMhB,EAAMoB,EAAcH,EAAc,UAAY,KAClGgC,EAAgB3C,EAAOA,EAAO,MAAQwC,GAAY,KAClDI,EAAiB5C,EAAO,MAAQA,EAAOyC,EAAcE,GAAiB,KAE1EE,EAAiB7C,EAAO0C,EAAiBC,GAEzCG,EAAiB9C,EAAOyC,EAAcE,GAEtCI,EAAc,MAAQR,EAAS,IAE3BS,GADQhD,EAAO2C,EAAgB,IAAMC,EAAiB,IAAMC,EAAiB,IAAMC,EAAiB,IAAMC,GACjG/C,EAAOA,EAAOuC,EAAS,IAAM7C,EAAM,WAAYmB,IAAe,MACvEoC,EAAYjD,EAAOA,EAAOuC,EAAS,aAAe,KAClDW,EAAalD,EAAOA,EAAO,SAAWsC,EAAaK,GAAiB,IAAMC,EAAiB,IAAME,EAAiB,IAAMC,GACxHI,EAAOnD,EAAOe,EAAU,MAAQmC,EAAalD,EAAO,MAAQgD,GAAU,IAAMhD,EAAO,MAAQiD,GAAa,KACxGG,EAAiBpD,EAAOA,EAAO,SAAWsC,EAAaK,GAAiB,IAAMC,EAAiB,IAAMC,EAAiB,IAAME,GAC5HM,EAAYrD,EAAOoD,EAAiBpD,EAAO,MAAQgD,GAAU,IAAMhD,EAAO,MAAQiD,GAAa,KAC9EjD,EAAOmD,EAAO,IAAME,GACrBrD,EAAOe,EAAU,MAAQmC,EAAalD,EAAO,MAAQgD,GAAU,KACtChD,EAAOA,EAAO,UAAYA,EAAO,IAAMgB,EAAY,MAAQ,KAAOoB,EAAQ,IAAMpC,EAAO,OAASqC,EAAQ,KAAO,MAAQ,KAAOM,EAAgB,IAAMC,EAAiB,IAAME,EAAiB,IAAMC,EAAc,KAAO/C,EAAO,OAASgD,EAAS,KAAahD,EAAO,OAASiD,EAAY,KACvSjD,EAAOA,EAAO,UAAYA,EAAO,IAAMgB,EAAY,MAAQ,KAAOoB,EAAQ,IAAMpC,EAAO,OAASqC,EAAQ,KAAO,MAAQ,KAAOM,EAAgB,IAAMC,EAAiB,IAAMC,EAAiB,IAAME,EAAc,KAAO/C,EAAO,OAASgD,EAAS,KAAahD,EAAO,OAASiD,EAAY,KAC1QjD,EAAOA,EAAO,UAAYA,EAAO,IAAMgB,EAAY,MAAQ,KAAOoB,EAAQ,IAAMpC,EAAO,OAASqC,EAAQ,KAAO,MAAQ,KAAOM,EAAgB,IAAMC,EAAiB,IAAME,EAAiB,IAAMC,EAAc,KAAO/C,EAAO,OAASgD,EAAS,KACrQhD,EAAO,OAASiD,EAAY,KAC1BjD,EAAO,IAAMgB,EAAY,MAA6BhB,EAAO,OAASqC,EAAQ,KACzG,MAAO,CACHiB,WAAY,IAAInmB,OAAOuiB,EAAM,MAAOa,EAASC,EAAS,eAAgB,KACtE+C,aAAc,IAAIpmB,OAAOuiB,EAAM,YAAaoB,EAAcH,GAAe,KACzE6C,SAAU,IAAIrmB,OAAOuiB,EAAM,kBAAmBoB,EAAcH,GAAe,KAC3E8C,SAAU,IAAItmB,OAAOuiB,EAAM,kBAAmBoB,EAAcH,GAAe,KAC3E+C,kBAAmB,IAAIvmB,OAAOuiB,EAAM,eAAgBoB,EAAcH,GAAe,KACjFgD,UAAW,IAAIxmB,OAAOuiB,EAAM,SAAUoB,EAAcH,EAAc,iBAAkBE,GAAa,KACjG+C,aAAc,IAAIzmB,OAAOuiB,EAAM,SAAUoB,EAAcH,EAAc,kBAAmB,KACxFkD,OAAQ,IAAI1mB,OAAOuiB,EAAM,MAAOoB,EAAcH,GAAe,KAC7DmD,WAAY,IAAI3mB,OAAO2jB,EAAc,KACrCiD,YAAa,IAAI5mB,OAAOuiB,EAAM,SAAUoB,EAAcF,GAAa,KACnEoD,YAAa,IAAI7mB,OAAOujB,EAAc,KACtCuD,YAAa,IAAI9mB,OAAO,KAAO+jB,EAAe,MAC9CgD,YAAa,IAAI/mB,OAAO,SAAW2kB,EAAe,IAAM9B,EAAOA,EAAO,eAAiBS,EAAW,QAAU,IAAMsB,EAAU,KAAO,WAG3I,IAAIoC,EAAe9D,GAAU,GAEzB+D,EAAe/D,GAAU,GAEzBgE,EA2BK,SAAU7hB,EAAK7M,GACpB,GAAIwP,MAAMC,QAAQ5C,GAChB,OAAOA,EACF,GAAI8hB,OAAOC,YAAY5qB,OAAO6I,GACnC,OA9BJ,SAAuBA,EAAK7M,GAC1B,IAAI6uB,EAAO,GACPC,GAAK,EACLC,GAAK,EACLC,OAAKntB,EAET,IACE,IAAK,IAAiCotB,EAA7BC,EAAKriB,EAAI8hB,OAAOC,cAAmBE,GAAMG,EAAKC,EAAGC,QAAQC,QAChEP,EAAK1d,KAAK8d,EAAGjuB,QAEThB,GAAK6uB,EAAKpuB,SAAWT,GAH8C8uB,GAAK,IAK9E,MAAOO,GACPN,GAAK,EACLC,EAAKK,EACL,QACA,KACOP,GAAMI,EAAW,QAAGA,EAAW,SACpC,QACA,GAAIH,EAAI,MAAMC,GAIlB,OAAOH,EAOES,CAAcziB,EAAK7M,GAE1B,MAAM,IAAImpB,UAAU,yDA6BtBoG,EAAS,WAaTC,EAAgB,QAChBC,EAAgB,aAChBC,EAAkB,4BAGlBtrB,EAAS,CACZurB,SAAY,kDACZC,YAAa,iDACbC,gBAAiB,iBAKdC,EAAQlW,KAAKkW,MACbC,EAAqBC,OAAOC,aAUhC,SAASC,EAAQ5f,GAChB,MAAM,IAAI6f,WAAW/rB,EAAOkM,IA8B7B,SAAS8f,EAAUC,EAAQC,GAC1B,IAAIrhB,EAAQohB,EAAOlpB,MAAM,KACrBuC,EAAS,GAWb,OAVmB,EAAfuF,EAAMxO,SAGTiJ,EAASuF,EAAM,GAAK,IACpBohB,EAASphB,EAAM,IAMTvF,EAhCR,SAAakJ,EAAO0d,GAGnB,IAFA,IAAI5mB,EAAS,GACTjJ,EAASmS,EAAMnS,OACZA,KACNiJ,EAAOjJ,GAAU6vB,EAAG1d,EAAMnS,IAE3B,OAAOiJ,EAyBOsH,EAFdqf,EAASA,EAAOrgB,QAAQ0f,EAAiB,MACrBvoB,MAAM,KACAmpB,GAAI5jB,KAAK,KAiBpC,SAAS6jB,EAAWF,GAInB,IAHA,IAAIG,EAAS,GACTC,EAAU,EACVhwB,EAAS4vB,EAAO5vB,OACbgwB,EAAUhwB,GAAQ,CACxB,IAAIO,EAAQqvB,EAAOte,WAAW0e,KAC9B,GAAa,OAATzvB,GAAmBA,GAAS,OAAUyvB,EAAUhwB,EAAQ,CAE3D,IAAIiwB,EAAQL,EAAOte,WAAW0e,KACN,QAAX,MAARC,GAEJF,EAAOrf,OAAe,KAARnQ,IAAkB,KAAe,KAAR0vB,GAAiB,QAIxDF,EAAOrf,KAAKnQ,GACZyvB,UAGDD,EAAOrf,KAAKnQ,GAGd,OAAOwvB,EAgDW,SAAfG,EAAqCC,EAAOC,GAG/C,OAAOD,EAAQ,GAAK,IAAMA,EAAQ,MAAgB,GAARC,IAAc,GAQ7C,SAARC,EAAuBC,EAAOC,EAAWC,GAC5C,IAAI/f,EAAI,EAGR,IAFA6f,EAAQE,EAAYnB,EAAMiB,EA7KhB,KA6KgCA,GAAS,EACnDA,GAASjB,EAAMiB,EAAQC,GACeE,IAARH,EAAmC7f,GAnLvD,GAoLT6f,EAAQjB,EAAMiB,EA9JII,IAgKnB,OAAOrB,EAAM5e,EAAI,GAAsB6f,GAASA,EAnLtC,KA6LE,SAATK,EAAyBC,GAE5B,IAtDwCC,EAsDpCd,EAAS,GACTe,EAAcF,EAAM5wB,OACpBT,EAAI,EACJH,EA/LU,IAgMV2xB,EAjMa,GAuMbC,EAAQJ,EAAMK,YArMH,KAsMXD,EAAQ,IACXA,EAAQ,GAGT,IAAK,IAAI5a,EAAI,EAAGA,EAAI4a,IAAS5a,EAED,KAAvBwa,EAAMtf,WAAW8E,IACpBqZ,EAAQ,aAETM,EAAOrf,KAAKkgB,EAAMtf,WAAW8E,IAM9B,IAAK,IAAIjO,EAAgB,EAAR6oB,EAAYA,EAAQ,EAAI,EAAG7oB,EAAQ2oB,GAAuC,CAQ1F,IADA,IAAII,EAAO3xB,EACF4xB,EAAI,EAAG1gB,EApOP,IAoOoCA,GApOpC,GAoO+C,CAE1CqgB,GAAT3oB,GACHsnB,EAAQ,iBAGT,IAAIU,GA9FkCU,EA8FbD,EAAMtf,WAAWnJ,MA7F5B,GAAO,GACf0oB,EAAY,GAEhBA,EAAY,GAAO,GACfA,EAAY,GAEhBA,EAAY,GAAO,GACfA,EAAY,GApJV,IAAA,IA4OJV,GAAiBA,EAAQd,GAAOP,EAASvvB,GAAK4xB,KACjD1B,EAAQ,YAGTlwB,GAAK4wB,EAAQgB,EACb,IAAI9xB,EAAIoR,GAAKsgB,EAhPL,EAgPwBA,EA/OxB,IA+OmBtgB,EA/OnB,GA+O6CA,EAAIsgB,EAEzD,GAAIZ,EAAQ9wB,EACX,MAGD,IAAI+xB,EAvPI,GAuPgB/xB,EACpB8xB,EAAI9B,EAAMP,EAASsC,IACtB3B,EAAQ,YAGT0B,GAAKC,EAGN,IAAIle,EAAM6c,EAAO/vB,OAAS,EAC1B+wB,EAAOV,EAAM9wB,EAAI2xB,EAAMhe,EAAa,GAARge,GAIxB7B,EAAM9vB,EAAI2T,GAAO4b,EAAS1vB,GAC7BqwB,EAAQ,YAGTrwB,GAAKiwB,EAAM9vB,EAAI2T,GACf3T,GAAK2T,EAGL6c,EAAO/mB,OAAOzJ,IAAK,EAAGH,GAGvB,OAAOmwB,OAAO8B,cAAcnoB,MAAMqmB,OAAQQ,GAU9B,SAATuB,EAAyBV,GAC5B,IAAIb,EAAS,GAMTe,GAHJF,EAAQd,EAAWc,IAGK5wB,OAGpBZ,EA7RU,IA8RVkxB,EAAQ,EACRS,EAhSa,GAmSbQ,GAA4B,EAC5BC,GAAoB,EACpBC,OAAiBrwB,EAErB,IACC,IAAK,IAA0CswB,EAAtCC,EAAYf,EAAM1C,OAAOC,cAAsBoD,GAA6BG,EAAQC,EAAUjD,QAAQC,MAAO4C,GAA4B,EAAM,CACvJ,IAAIK,EAAiBF,EAAMnxB,MAEvBqxB,EAAiB,KACpB7B,EAAOrf,KAAK4e,EAAmBsC,KAGhC,MAAOhD,GACR4C,GAAoB,EACpBC,EAAiB7C,EAChB,QACD,KACM2C,GAA6BI,EAAUE,QAC3CF,EAAUE,SAEV,QACD,GAAIL,EACH,MAAMC,GAKT,IAAIK,EAAc/B,EAAO/vB,OACrB+xB,EAAiBD,EAWrB,IALIA,GACH/B,EAAOrf,KApUO,KAwURqhB,EAAiBjB,GAAa,CAIpC,IAAIkB,EAAIlD,EACJmD,GAA6B,EAC7BC,GAAqB,EACrBC,OAAkB/wB,EAEtB,IACC,IAAK,IAA2CgxB,EAAvCC,EAAazB,EAAM1C,OAAOC,cAAuB8D,GAA8BG,EAASC,EAAW3D,QAAQC,MAAOsD,GAA6B,EAAM,CAC7J,IAAIK,EAAeF,EAAO7xB,MAENnB,GAAhBkzB,GAAqBA,EAAeN,IACvCA,EAAIM,IAML,MAAO1D,GACRsD,GAAqB,EACrBC,EAAkBvD,EACjB,QACD,KACMqD,GAA8BI,EAAWR,QAC7CQ,EAAWR,SAEX,QACD,GAAIK,EACH,MAAMC,GAKT,IAAII,EAAwBR,EAAiB,EACzCC,EAAI5yB,EAAIiwB,GAAOP,EAASwB,GAASiC,IACpC9C,EAAQ,YAGTa,IAAU0B,EAAI5yB,GAAKmzB,EACnBnzB,EAAI4yB,EAEJ,IAAIQ,GAA6B,EAC7BC,GAAqB,EACrBC,OAAkBtxB,EAEtB,IACC,IAAK,IAA2CuxB,EAAvCC,EAAahC,EAAM1C,OAAOC,cAAuBqE,GAA8BG,EAASC,EAAWlE,QAAQC,MAAO6D,GAA6B,EAAM,CAC7J,IAAIK,EAAgBF,EAAOpyB,MAK3B,GAHIsyB,EAAgBzzB,KAAOkxB,EAAQxB,GAClCW,EAAQ,YAELoD,GAAiBzzB,EAAG,CAGvB,IADA,IAAI0zB,EAAIxC,EACC7f,EAxYH,IAwYgCA,GAxYhC,GAwY2C,CAChD,IAAIpR,EAAIoR,GAAKsgB,EAxYR,EAwY2BA,EAvY3B,IAuYsBtgB,EAvYtB,GAuYgDA,EAAIsgB,EACzD,GAAI+B,EAAIzzB,EACP,MAED,IAAI0zB,EAAUD,EAAIzzB,EACd+xB,EA9YC,GA8YmB/xB,EACxB0wB,EAAOrf,KAAK4e,EAAmBY,EAAa7wB,EAAI0zB,EAAU3B,EAAY,KACtE0B,EAAIzD,EAAM0D,EAAU3B,GAGrBrB,EAAOrf,KAAK4e,EAAmBY,EAAa4C,EAAG,KAC/C/B,EAAOV,EAAMC,EAAOiC,EAAuBR,GAAkBD,GAC7DxB,EAAQ,IACNyB,IAGH,MAAOnD,GACR6D,GAAqB,EACrBC,EAAkB9D,EACjB,QACD,KACM4D,GAA8BI,EAAWf,QAC7Ce,EAAWf,SAEX,QACD,GAAIY,EACH,MAAMC,KAKPpC,IACAlxB,EAEH,OAAO2wB,EAAO9jB,KAAK,IA5SpB,IAoVI+mB,EAAW,CAMdC,QAAW,QAQXC,KAAQ,CACPvC,OAAUb,EACVwB,OApWe,SAAoBnf,GACpC,OAAOod,OAAO8B,cAAcnoB,MAAMqmB,OA/IX,SAAUnjB,GAChC,GAAI2C,MAAMC,QAAQ5C,GAAM,CACtB,IAAK,IAAI7M,EAAI,EAAGyd,EAAOjO,MAAM3C,EAAIpM,QAAST,EAAI6M,EAAIpM,OAAQT,IAAKyd,EAAKzd,GAAK6M,EAAI7M,GAE7E,OAAOyd,EAEP,OAAOjO,MAAMokB,KAAK/mB,GAyIqBgnB,CAAkBjhB,MAqW5Dwe,OAAUA,EACVW,OAAUA,EACV+B,QA7Ba,SAAiBzC,GAC9B,OAAOjB,EAAUiB,EAAO,SAAUhB,GACjC,OAAOZ,EAAcnoB,KAAK+oB,GAAU,OAAS0B,EAAO1B,GAAUA,KA4B/D0D,UA/Ce,SAAmB1C,GAClC,OAAOjB,EAAUiB,EAAO,SAAUhB,GACjC,OAAOb,EAAcloB,KAAK+oB,GAAUe,EAAOf,EAAOrhB,MAAM,GAAGwb,eAAiB6F,MAkF1E2D,EAAU,GACd,SAASC,EAAWC,GAChB,IAAIj0B,EAAIi0B,EAAIniB,WAAW,GAGvB,OADI9R,EAAI,GAAQ,KAAOA,EAAE0oB,SAAS,IAAI8B,cAAuBxqB,EAAI,IAAS,IAAMA,EAAE0oB,SAAS,IAAI8B,cAAuBxqB,EAAI,KAAU,KAAOA,GAAK,EAAI,KAAK0oB,SAAS,IAAI8B,cAAgB,KAAW,GAAJxqB,EAAS,KAAK0oB,SAAS,IAAI8B,cAAuB,KAAOxqB,GAAK,GAAK,KAAK0oB,SAAS,IAAI8B,cAAgB,KAAOxqB,GAAK,EAAI,GAAK,KAAK0oB,SAAS,IAAI8B,cAAgB,KAAW,GAAJxqB,EAAS,KAAK0oB,SAAS,IAAI8B,cAG/X,SAAS0J,EAAY1uB,GAIjB,IAHA,IAAI2uB,EAAS,GACTp0B,EAAI,EACJq0B,EAAK5uB,EAAIhF,OACNT,EAAIq0B,GAAI,CACX,IAAIp0B,EAAIq0B,SAAS7uB,EAAI8uB,OAAOv0B,EAAI,EAAG,GAAI,IACvC,GAAIC,EAAI,IACJm0B,GAAUpE,OAAOC,aAAahwB,GAC9BD,GAAK,OACF,GAAS,KAALC,GAAYA,EAAI,IAAK,CAC5B,GAAc,GAAVo0B,EAAKr0B,EAAQ,CACb,IAAIw0B,EAAKF,SAAS7uB,EAAI8uB,OAAOv0B,EAAI,EAAG,GAAI,IACxCo0B,GAAUpE,OAAOC,cAAkB,GAAJhwB,IAAW,EAAS,GAALu0B,QAE9CJ,GAAU3uB,EAAI8uB,OAAOv0B,EAAG,GAE5BA,GAAK,OACF,GAAS,KAALC,EAAU,CACjB,GAAc,GAAVo0B,EAAKr0B,EAAQ,CACb,IAAIy0B,EAAKH,SAAS7uB,EAAI8uB,OAAOv0B,EAAI,EAAG,GAAI,IACpC00B,EAAKJ,SAAS7uB,EAAI8uB,OAAOv0B,EAAI,EAAG,GAAI,IACxCo0B,GAAUpE,OAAOC,cAAkB,GAAJhwB,IAAW,IAAW,GAALw0B,IAAY,EAAS,GAALC,QAEhEN,GAAU3uB,EAAI8uB,OAAOv0B,EAAG,GAE5BA,GAAK,OAELo0B,GAAU3uB,EAAI8uB,OAAOv0B,EAAG,GACxBA,GAAK,EAGb,OAAOo0B,EAEX,SAASO,EAA4BC,EAAYC,GAC7C,SAASC,EAAiBrvB,GACtB,IAAIsvB,EAASZ,EAAY1uB,GACzB,OAAQsvB,EAAOpvB,MAAMkvB,EAAS1G,YAAoB4G,EAANtvB,EAQhD,OANImvB,EAAWI,SAAQJ,EAAWI,OAAShF,OAAO4E,EAAWI,QAAQhlB,QAAQ6kB,EAASxG,YAAayG,GAAkBtK,cAAcxa,QAAQ6kB,EAASlH,WAAY,UACpI9rB,IAAxB+yB,EAAWK,WAAwBL,EAAWK,SAAWjF,OAAO4E,EAAWK,UAAUjlB,QAAQ6kB,EAASxG,YAAayG,GAAkB9kB,QAAQ6kB,EAASjH,aAAcqG,GAAYjkB,QAAQ6kB,EAASxG,YAAa5D,SAC1L5oB,IAApB+yB,EAAWM,OAAoBN,EAAWM,KAAOlF,OAAO4E,EAAWM,MAAMllB,QAAQ6kB,EAASxG,YAAayG,GAAkBtK,cAAcxa,QAAQ6kB,EAAShH,SAAUoG,GAAYjkB,QAAQ6kB,EAASxG,YAAa5D,SACxL5oB,IAApB+yB,EAAWvf,OAAoBuf,EAAWvf,KAAO2a,OAAO4E,EAAWvf,MAAMrF,QAAQ6kB,EAASxG,YAAayG,GAAkB9kB,QAAQ4kB,EAAWI,OAASH,EAAS/G,SAAW+G,EAAS9G,kBAAmBkG,GAAYjkB,QAAQ6kB,EAASxG,YAAa5D,SAC1N5oB,IAArB+yB,EAAWO,QAAqBP,EAAWO,MAAQnF,OAAO4E,EAAWO,OAAOnlB,QAAQ6kB,EAASxG,YAAayG,GAAkB9kB,QAAQ6kB,EAAS7G,UAAWiG,GAAYjkB,QAAQ6kB,EAASxG,YAAa5D,SAC1K5oB,IAAxB+yB,EAAW7lB,WAAwB6lB,EAAW7lB,SAAWihB,OAAO4E,EAAW7lB,UAAUiB,QAAQ6kB,EAASxG,YAAayG,GAAkB9kB,QAAQ6kB,EAAS5G,aAAcgG,GAAYjkB,QAAQ6kB,EAASxG,YAAa5D,IAC3MmK,EAGX,SAASQ,EAAmB3vB,GACxB,OAAOA,EAAIuK,QAAQ,UAAW,OAAS,IAE3C,SAASqlB,EAAeH,EAAML,GAC1B,IAAInvB,EAAUwvB,EAAKvvB,MAAMkvB,EAASvG,cAAgB,GAG9CgH,EADW5G,EAAchpB,EAAS,GACf,GAEvB,OAAI4vB,EACOA,EAAQnuB,MAAM,KAAK6J,IAAIokB,GAAoB1oB,KAAK,KAEhDwoB,EAGf,SAASK,EAAeL,EAAML,GAC1B,IAAInvB,EAAUwvB,EAAKvvB,MAAMkvB,EAAStG,cAAgB,GAE9CiH,EAAY9G,EAAchpB,EAAS,GACnC4vB,EAAUE,EAAU,GACpBC,EAAOD,EAAU,GAErB,GAAIF,EAAS,CAYT,IAXA,IAAII,EAAwBJ,EAAQ9K,cAAcrjB,MAAM,MAAMwuB,UAC1DC,EAAyBlH,EAAcgH,EAAuB,GAC9DG,EAAOD,EAAuB,GAC9BE,EAAQF,EAAuB,GAE/BG,EAAcD,EAAQA,EAAM3uB,MAAM,KAAK6J,IAAIokB,GAAsB,GACjEY,EAAaH,EAAK1uB,MAAM,KAAK6J,IAAIokB,GACjCa,EAAyBpB,EAASvG,YAAYhnB,KAAK0uB,EAAWA,EAAWv1B,OAAS,IAClFy1B,EAAaD,EAAyB,EAAI,EAC1CE,EAAkBH,EAAWv1B,OAASy1B,EACtCE,EAAS5mB,MAAM0mB,GACV9L,EAAI,EAAGA,EAAI8L,IAAc9L,EAC9BgM,EAAOhM,GAAK2L,EAAY3L,IAAM4L,EAAWG,EAAkB/L,IAAM,GAEjE6L,IACAG,EAAOF,EAAa,GAAKb,EAAee,EAAOF,EAAa,GAAIrB,IAEpE,IAWIwB,EAXgBD,EAAOE,OAAO,SAAUC,EAAKC,EAAO5tB,GACpD,IAAK4tB,GAAmB,MAAVA,EAAe,CACzB,IAAIC,EAAcF,EAAIA,EAAI91B,OAAS,GAC/Bg2B,GAAeA,EAAY7tB,MAAQ6tB,EAAYh2B,SAAWmI,EAC1D6tB,EAAYh2B,SAEZ81B,EAAIplB,KAAK,CAAEvI,MAAOA,EAAOnI,OAAQ,IAGzC,OAAO81B,GACR,IACmClN,KAAK,SAAUjpB,EAAGiW,GACpD,OAAOA,EAAE5V,OAASL,EAAEK,SACrB,GACCi2B,OAAU,EACd,GAAIL,GAAgD,EAA3BA,EAAkB51B,OAAY,CACnD,IAAIk2B,EAAWP,EAAOpnB,MAAM,EAAGqnB,EAAkBztB,OAC7CguB,EAAUR,EAAOpnB,MAAMqnB,EAAkBztB,MAAQytB,EAAkB51B,QACvEi2B,EAAUC,EAASjqB,KAAK,KAAO,KAAOkqB,EAAQlqB,KAAK,UAEnDgqB,EAAUN,EAAO1pB,KAAK,KAK1B,OAHI+oB,IACAiB,GAAW,IAAMjB,GAEdiB,EAEP,OAAOxB,EAGf,IAAI2B,EAAY,kIACZC,OAAiDj1B,IAAzB,GAAG8D,MAAM,SAAS,GAC9C,SAAS4H,EAAMwpB,GACX,IAAIC,EAA6B,EAAnBptB,UAAUnJ,aAA+BoB,IAAjB+H,UAAU,GAAmBA,UAAU,GAAK,GAE9EgrB,EAAa,GACbC,GAA2B,IAAhBmC,EAAQC,IAAgBxI,EAAeD,EAC5B,WAAtBwI,EAAQE,YAAwBH,GAAaC,EAAQhC,OAASgC,EAAQhC,OAAS,IAAM,IAAM,KAAO+B,GACtG,IAAIrxB,EAAUqxB,EAAUpxB,MAAMkxB,GAC9B,GAAInxB,EAAS,CACLoxB,GAEAlC,EAAWI,OAAStvB,EAAQ,GAC5BkvB,EAAWK,SAAWvvB,EAAQ,GAC9BkvB,EAAWM,KAAOxvB,EAAQ,GAC1BkvB,EAAWuC,KAAO7C,SAAS5uB,EAAQ,GAAI,IACvCkvB,EAAWvf,KAAO3P,EAAQ,IAAM,GAChCkvB,EAAWO,MAAQzvB,EAAQ,GAC3BkvB,EAAW7lB,SAAWrJ,EAAQ,GAE1B0xB,MAAMxC,EAAWuC,QACjBvC,EAAWuC,KAAOzxB,EAAQ,MAK9BkvB,EAAWI,OAAStvB,EAAQ,SAAM7D,EAClC+yB,EAAWK,UAAuC,IAA5B8B,EAAUvY,QAAQ,KAAc9Y,EAAQ,QAAK7D,EACnE+yB,EAAWM,MAAoC,IAA7B6B,EAAUvY,QAAQ,MAAe9Y,EAAQ,QAAK7D,EAChE+yB,EAAWuC,KAAO7C,SAAS5uB,EAAQ,GAAI,IACvCkvB,EAAWvf,KAAO3P,EAAQ,IAAM,GAChCkvB,EAAWO,OAAoC,IAA5B4B,EAAUvY,QAAQ,KAAc9Y,EAAQ,QAAK7D,EAChE+yB,EAAW7lB,UAAuC,IAA5BgoB,EAAUvY,QAAQ,KAAc9Y,EAAQ,QAAK7D,EAE/Du1B,MAAMxC,EAAWuC,QACjBvC,EAAWuC,KAAOJ,EAAUpxB,MAAM,iCAAmCD,EAAQ,QAAK7D,IAGtF+yB,EAAWM,OAEXN,EAAWM,KAAOK,EAAeF,EAAeT,EAAWM,KAAML,GAAWA,IAM5ED,EAAWsC,eAHWr1B,IAAtB+yB,EAAWI,aAAgDnzB,IAAxB+yB,EAAWK,eAA8CpzB,IAApB+yB,EAAWM,WAA0CrzB,IAApB+yB,EAAWuC,MAAuBvC,EAAWvf,WAA6BxT,IAArB+yB,EAAWO,WAE5ItzB,IAAtB+yB,EAAWI,OACK,gBACQnzB,IAAxB+yB,EAAW7lB,SACK,WAEA,MANA,gBASvBioB,EAAQE,WAAmC,WAAtBF,EAAQE,WAA0BF,EAAQE,YAActC,EAAWsC,YACxFtC,EAAW3pB,MAAQ2pB,EAAW3pB,OAAS,gBAAkB+rB,EAAQE,UAAY,eAGjF,IAAIG,EAAgBrD,GAASgD,EAAQhC,QAAUJ,EAAWI,QAAU,IAAIxK,eAExE,GAAKwM,EAAQM,gBAAoBD,GAAkBA,EAAcC,eAc7D3C,EAA4BC,EAAYC,OAdsC,CAE9E,GAAID,EAAWM,OAAS8B,EAAQO,YAAcF,GAAiBA,EAAcE,YAEzE,IACI3C,EAAWM,KAAOzB,EAASK,QAAQc,EAAWM,KAAKllB,QAAQ6kB,EAASxG,YAAa8F,GAAa3J,eAChG,MAAO5qB,GACLg1B,EAAW3pB,MAAQ2pB,EAAW3pB,OAAS,kEAAoErL,EAInH+0B,EAA4BC,EAAYpG,GAMxC6I,GAAiBA,EAAc9pB,OAC/B8pB,EAAc9pB,MAAMqnB,EAAYoC,QAGpCpC,EAAW3pB,MAAQ2pB,EAAW3pB,OAAS,yBAE3C,OAAO2pB,EAuBX,IAAI4C,EAAO,WACPC,EAAO,cACPC,EAAO,gBACPC,EAAO,yBACX,SAASC,EAAkBvG,GAEvB,IADA,IAAIb,EAAS,GACNa,EAAM5wB,QACT,GAAI4wB,EAAM1rB,MAAM6xB,GACZnG,EAAQA,EAAMrhB,QAAQwnB,EAAM,SACzB,GAAInG,EAAM1rB,MAAM8xB,GACnBpG,EAAQA,EAAMrhB,QAAQynB,EAAM,UACzB,GAAIpG,EAAM1rB,MAAM+xB,GACnBrG,EAAQA,EAAMrhB,QAAQ0nB,EAAM,KAC5BlH,EAAO9W,WACJ,GAAc,MAAV2X,GAA2B,OAAVA,EACxBA,EAAQ,OACL,CACH,IAAIwG,EAAKxG,EAAM1rB,MAAMgyB,GACrB,IAAIE,EAKA,MAAM,IAAIx3B,MAAM,oCAJhB,IAAIy3B,EAAID,EAAG,GACXxG,EAAQA,EAAMriB,MAAM8oB,EAAEr3B,QACtB+vB,EAAOrf,KAAK2mB,GAMxB,OAAOtH,EAAO9jB,KAAK,IAGvB,SAASoD,EAAU8kB,GACf,IAAIoC,EAA6B,EAAnBptB,UAAUnJ,aAA+BoB,IAAjB+H,UAAU,GAAmBA,UAAU,GAAK,GAE9EirB,EAAWmC,EAAQC,IAAMxI,EAAeD,EACxCuJ,EAAY,GAEZV,EAAgBrD,GAASgD,EAAQhC,QAAUJ,EAAWI,QAAU,IAAIxK,eAGxE,GADI6M,GAAiBA,EAAcvnB,WAAWunB,EAAcvnB,UAAU8kB,EAAYoC,GAC9EpC,EAAWM,OAEPL,EAAStG,YAAYjnB,KAAKstB,EAAWM,QAIhC8B,EAAQO,YAAcF,GAAiBA,EAAcE,YAEtD,IACI3C,EAAWM,KAAQ8B,EAAQC,IAAmGxD,EAASM,UAAUa,EAAWM,MAA3HzB,EAASK,QAAQc,EAAWM,KAAKllB,QAAQ6kB,EAASxG,YAAa8F,GAAa3J,eAC/G,MAAO5qB,GACLg1B,EAAW3pB,MAAQ2pB,EAAW3pB,OAAS,+CAAkD+rB,EAAQC,IAAgB,UAAV,SAAuB,kBAAoBr3B,EAKlK+0B,EAA4BC,EAAYC,GACd,WAAtBmC,EAAQE,WAA0BtC,EAAWI,SAC7C+C,EAAU5mB,KAAKyjB,EAAWI,QAC1B+C,EAAU5mB,KAAK,MAEnB,IAhFyByjB,EACrBC,EACAkD,EA8EAC,GA/EAnD,GAA2B,IA+EiBmC,EA/EzBC,IAAgBxI,EAAeD,EAClDuJ,EAAY,QACYl2B,KAHH+yB,EAgFWA,GA7ErBK,WACX8C,EAAU5mB,KAAKyjB,EAAWK,UAC1B8C,EAAU5mB,KAAK,WAEKtP,IAApB+yB,EAAWM,MAEX6C,EAAU5mB,KAAKokB,EAAeF,EAAerF,OAAO4E,EAAWM,MAAOL,GAAWA,GAAU7kB,QAAQ6kB,EAAStG,YAAa,SAAU0J,EAAGC,EAAIC,GACtI,MAAO,IAAMD,GAAMC,EAAK,MAAQA,EAAK,IAAM,OAGpB,iBAApBvD,EAAWuC,OAClBY,EAAU5mB,KAAK,KACf4mB,EAAU5mB,KAAKyjB,EAAWuC,KAAKxO,SAAS,MAErCoP,EAAUt3B,OAASs3B,EAAUrrB,KAAK,SAAM7K,GAyE/C,QATkBA,IAAdm2B,IAC0B,WAAtBhB,EAAQE,WACRa,EAAU5mB,KAAK,MAEnB4mB,EAAU5mB,KAAK6mB,GACXpD,EAAWvf,MAAsC,MAA9Buf,EAAWvf,KAAK+iB,OAAO,IAC1CL,EAAU5mB,KAAK,WAGCtP,IAApB+yB,EAAWvf,KAAoB,CAC/B,IAAIyiB,EAAIlD,EAAWvf,KACd2hB,EAAQqB,cAAkBhB,GAAkBA,EAAcgB,eAC3DP,EAAIF,EAAkBE,SAERj2B,IAAdm2B,IACAF,EAAIA,EAAE9nB,QAAQ,QAAS,SAE3B+nB,EAAU5mB,KAAK2mB,GAUnB,YARyBj2B,IAArB+yB,EAAWO,QACX4C,EAAU5mB,KAAK,KACf4mB,EAAU5mB,KAAKyjB,EAAWO,aAEFtzB,IAAxB+yB,EAAW7lB,WACXgpB,EAAU5mB,KAAK,KACf4mB,EAAU5mB,KAAKyjB,EAAW7lB,WAEvBgpB,EAAUrrB,KAAK,IAG1B,SAAS4rB,EAAkBnH,EAAMoH,GAC7B,IAAIvB,EAA6B,EAAnBptB,UAAUnJ,aAA+BoB,IAAjB+H,UAAU,GAAmBA,UAAU,GAAK,GAG9E4uB,EAAS,GAqDb,OAvDwB5uB,UAAU,KAI9BunB,EAAO5jB,EAAMuC,EAAUqhB,EAAM6F,GAAUA,GACvCuB,EAAWhrB,EAAMuC,EAAUyoB,EAAUvB,GAAUA,MAEnDA,EAAUA,GAAW,IACRyB,UAAYF,EAASvD,QAC9BwD,EAAOxD,OAASuD,EAASvD,OAEzBwD,EAAOvD,SAAWsD,EAAStD,SAC3BuD,EAAOtD,KAAOqD,EAASrD,KACvBsD,EAAOrB,KAAOoB,EAASpB,KACvBqB,EAAOnjB,KAAOuiB,EAAkBW,EAASljB,MAAQ,IACjDmjB,EAAOrD,MAAQoD,EAASpD,aAEEtzB,IAAtB02B,EAAStD,eAA4CpzB,IAAlB02B,EAASrD,WAAwCrzB,IAAlB02B,EAASpB,MAE3EqB,EAAOvD,SAAWsD,EAAStD,SAC3BuD,EAAOtD,KAAOqD,EAASrD,KACvBsD,EAAOrB,KAAOoB,EAASpB,KACvBqB,EAAOnjB,KAAOuiB,EAAkBW,EAASljB,MAAQ,IACjDmjB,EAAOrD,MAAQoD,EAASpD,QAEnBoD,EAASljB,MAQsB,MAA5BkjB,EAASljB,KAAK+iB,OAAO,GACrBI,EAAOnjB,KAAOuiB,EAAkBW,EAASljB,OAOrCmjB,EAAOnjB,UALYxT,IAAlBsvB,EAAK8D,eAAwCpzB,IAAdsvB,EAAK+D,WAAoCrzB,IAAdsvB,EAAKgG,MAAwBhG,EAAK9b,KAErF8b,EAAK9b,KAGC8b,EAAK9b,KAAKrG,MAAM,EAAGmiB,EAAK9b,KAAKqc,YAAY,KAAO,GAAK6G,EAASljB,KAF9DkjB,EAASljB,KAFT,IAAMkjB,EAASljB,KAMjCmjB,EAAOnjB,KAAOuiB,EAAkBY,EAAOnjB,OAE3CmjB,EAAOrD,MAAQoD,EAASpD,QAnBxBqD,EAAOnjB,KAAO8b,EAAK9b,KAEfmjB,EAAOrD,WADYtzB,IAAnB02B,EAASpD,MACMoD,EAASpD,MAEThE,EAAKgE,OAkB5BqD,EAAOvD,SAAW9D,EAAK8D,SACvBuD,EAAOtD,KAAO/D,EAAK+D,KACnBsD,EAAOrB,KAAOhG,EAAKgG,MAEvBqB,EAAOxD,OAAS7D,EAAK6D,QAEzBwD,EAAOzpB,SAAWwpB,EAASxpB,SACpBypB,EAmCX,SAASE,EAAkBjzB,EAAKuxB,GAC5B,OAAOvxB,GAAOA,EAAIkjB,WAAW3Y,QAASgnB,GAAYA,EAAQC,IAAiCxI,EAAaJ,YAAxCG,EAAaH,YAAwC8F,GAGzH,IAAIwE,EAAU,CACV3D,OAAQ,OACRuC,YAAY,EACZhqB,MAAO,SAAeqnB,GAKlB,OAHKA,EAAWM,OACZN,EAAW3pB,MAAQ2pB,EAAW3pB,OAAS,+BAEpC2pB,GAEX9kB,UAAW,SAAmB8kB,GAY1B,OAVIA,EAAWuC,QAAsD,UAA5CnH,OAAO4E,EAAWI,QAAQxK,cAA4B,GAAK,MAA4B,KAApBoK,EAAWuC,OACnGvC,EAAWuC,UAAOt1B,GAGjB+yB,EAAWvf,OACZuf,EAAWvf,KAAO,KAKfuf,IAIXgE,EAAY,CACZ5D,OAAQ,QACRuC,WAAYoB,EAAQpB,WACpBhqB,MAAOorB,EAAQprB,MACfuC,UAAW6oB,EAAQ7oB,WAGnB+oB,EAAI,GAGJ1N,EAAe,mGACfL,EAAW,cAeXgO,GAdezO,EAAOA,EAAO,UAAYS,EAAW,IAAMA,EAAWA,EAAW,IAAMA,EAAWA,GAAY,IAAMT,EAAO,cAAgBS,EAAW,IAAMA,EAAWA,GAAY,IAAMT,EAAO,IAAMS,EAAWA,IActMf,EADA,6DACe,cAEzBoE,EAAa,IAAI3mB,OAAO2jB,EAAc,KACtCkD,EAAc,IAAI7mB,OAjBH6iB,yJAiBwB,KACvC0O,EAAiB,IAAIvxB,OAAOuiB,EAAM,MANxB,wDAMwC,QAAS,QAAS+O,GAAU,KAC9EE,EAAa,IAAIxxB,OAAOuiB,EAAM,MAAOoB,EAJrB,uCAImD,KACnE8N,EAAcD,EAClB,SAASlE,EAAiBrvB,GACtB,IAAIsvB,EAASZ,EAAY1uB,GACzB,OAAQsvB,EAAOpvB,MAAMwoB,GAAoB4G,EAANtvB,EAEvC,IAAIyzB,GAAY,CACZlE,OAAQ,SACRznB,MAAO,SAAkBqnB,EAAYoC,GACjC,IAAImC,EAAmBvE,EACnBniB,EAAK0mB,EAAiB1mB,GAAK0mB,EAAiB9jB,KAAO8jB,EAAiB9jB,KAAKlO,MAAM,KAAO,GAE1F,GADAgyB,EAAiB9jB,UAAOxT,EACpBs3B,EAAiBhE,MAAO,CAIxB,IAHA,IAAIiE,GAAiB,EACjBC,EAAU,GACVC,EAAUH,EAAiBhE,MAAMhuB,MAAM,KAClCijB,EAAI,EAAGD,EAAKmP,EAAQ74B,OAAQ2pB,EAAID,IAAMC,EAAG,CAC9C,IAAImP,EAASD,EAAQlP,GAAGjjB,MAAM,KAC9B,OAAQoyB,EAAO,IACX,IAAK,KAED,IADA,IAAIC,EAAUD,EAAO,GAAGpyB,MAAM,KACrBsyB,EAAK,EAAGC,EAAMF,EAAQ/4B,OAAQg5B,EAAKC,IAAOD,EAC/ChnB,EAAGtB,KAAKqoB,EAAQC,IAEpB,MACJ,IAAK,UACDN,EAAiBQ,QAAUjB,EAAkBa,EAAO,GAAIvC,GACxD,MACJ,IAAK,OACDmC,EAAiBS,KAAOlB,EAAkBa,EAAO,GAAIvC,GACrD,MACJ,QACIoC,GAAiB,EACjBC,EAAQX,EAAkBa,EAAO,GAAIvC,IAAY0B,EAAkBa,EAAO,GAAIvC,IAItFoC,IAAgBD,EAAiBE,QAAUA,GAEnDF,EAAiBhE,WAAQtzB,EACzB,IAAK,IAAIg4B,EAAM,EAAGC,EAAOrnB,EAAGhS,OAAQo5B,EAAMC,IAAQD,EAAK,CACnD,IAAIE,EAAOtnB,EAAGonB,GAAK1yB,MAAM,KAEzB,GADA4yB,EAAK,GAAKrB,EAAkBqB,EAAK,IAC5B/C,EAAQM,eAQTyC,EAAK,GAAKrB,EAAkBqB,EAAK,GAAI/C,GAASxM,mBAN9C,IACIuP,EAAK,GAAKtG,EAASK,QAAQ4E,EAAkBqB,EAAK,GAAI/C,GAASxM,eACjE,MAAO5qB,GACLu5B,EAAiBluB,MAAQkuB,EAAiBluB,OAAS,2EAA6ErL,EAKxI6S,EAAGonB,GAAOE,EAAKrtB,KAAK,KAExB,OAAOysB,GAEXrpB,UAAW,SAAsBqpB,EAAkBnC,GAC/C,IAvtCSrlB,EAutCLijB,EAAauE,EACb1mB,EAvtCDd,OADMA,EAwtCQwnB,EAAiB1mB,IAvtCKd,aAAenC,MAAQmC,EAA4B,iBAAfA,EAAIlR,QAAuBkR,EAAIxK,OAASwK,EAAIqoB,aAAeroB,EAAInR,KAAO,CAACmR,GAAOnC,MAAM3O,UAAUmO,MAAMxO,KAAKmR,GAAO,GAwtC3L,GAAIc,EAAI,CACJ,IAAK,IAAI2X,EAAI,EAAGD,EAAK1X,EAAGhS,OAAQ2pB,EAAID,IAAMC,EAAG,CACzC,IAAI6P,EAASjK,OAAOvd,EAAG2X,IACnB8P,EAAQD,EAAOvI,YAAY,KAC3ByI,EAAYF,EAAOjrB,MAAM,EAAGkrB,GAAOlqB,QAAQqe,EAAayG,GAAkB9kB,QAAQqe,EAAa5D,GAAaza,QAAQ+oB,EAAgB9E,GACpImG,EAASH,EAAOjrB,MAAMkrB,EAAQ,GAElC,IACIE,EAAUpD,EAAQC,IAA2ExD,EAASM,UAAUqG,GAAxF3G,EAASK,QAAQ4E,EAAkB0B,EAAQpD,GAASxM,eAC9E,MAAO5qB,GACLg1B,EAAW3pB,MAAQ2pB,EAAW3pB,OAAS,wDAA2D+rB,EAAQC,IAAgB,UAAV,SAAuB,kBAAoBr3B,EAE/J6S,EAAG2X,GAAK+P,EAAY,IAAMC,EAE9BxF,EAAWvf,KAAO5C,EAAG/F,KAAK,KAE9B,IAAI2sB,EAAUF,EAAiBE,QAAUF,EAAiBE,SAAW,GACjEF,EAAiBQ,UAASN,EAAiB,QAAIF,EAAiBQ,SAChER,EAAiBS,OAAMP,EAAc,KAAIF,EAAiBS,MAC9D,IAAIxD,EAAS,GACb,IAAK,IAAIiE,KAAQhB,EACTA,EAAQgB,KAAUxB,EAAEwB,IACpBjE,EAAOjlB,KAAKkpB,EAAKrqB,QAAQqe,EAAayG,GAAkB9kB,QAAQqe,EAAa5D,GAAaza,QAAQgpB,EAAY/E,GAAc,IAAMoF,EAAQgB,GAAMrqB,QAAQqe,EAAayG,GAAkB9kB,QAAQqe,EAAa5D,GAAaza,QAAQipB,EAAahF,IAMtP,OAHImC,EAAO31B,SACPm0B,EAAWO,MAAQiB,EAAO1pB,KAAK,MAE5BkoB,IAIX0F,GAAY,kBAEZC,GAAY,CACZvF,OAAQ,MACRznB,MAAO,SAAkBqnB,EAAYoC,GACjC,IAAItxB,EAAUkvB,EAAWvf,MAAQuf,EAAWvf,KAAK1P,MAAM20B,IACnDE,EAAgB5F,EACpB,GAAIlvB,EAAS,CACT,IAAIsvB,EAASgC,EAAQhC,QAAUwF,EAAcxF,QAAU,MACnDyF,EAAM/0B,EAAQ,GAAG8kB,cACjBkQ,EAAMh1B,EAAQ,GAEd2xB,EAAgBrD,EADJgB,EAAS,KAAOgC,EAAQyD,KAAOA,IAE/CD,EAAcC,IAAMA,EACpBD,EAAcE,IAAMA,EACpBF,EAAcnlB,UAAOxT,EACjBw1B,IACAmD,EAAgBnD,EAAc9pB,MAAMitB,EAAexD,SAGvDwD,EAAcvvB,MAAQuvB,EAAcvvB,OAAS,yBAEjD,OAAOuvB,GAEX1qB,UAAW,SAAsB0qB,EAAexD,GAC5C,IACIyD,EAAMD,EAAcC,IAEpBpD,EAAgBrD,GAHPgD,EAAQhC,QAAUwF,EAAcxF,QAAU,OAE9B,KAAOgC,EAAQyD,KAAOA,IAE3CpD,IACAmD,EAAgBnD,EAAcvnB,UAAU0qB,EAAexD,IAE3D,IAAI2D,EAAgBH,EAGpB,OADAG,EAActlB,MAAQolB,GAAOzD,EAAQyD,KAAO,IADlCD,EAAcE,IAEjBC,IAIX11B,GAAO,2DAEP21B,GAAY,CACZ5F,OAAQ,WACRznB,MAAO,SAAeitB,EAAexD,GACjC,IAAI6D,EAAiBL,EAMrB,OALAK,EAAe/zB,KAAO+zB,EAAeH,IACrCG,EAAeH,SAAM74B,EAChBm1B,EAAQyB,UAAcoC,EAAe/zB,MAAS+zB,EAAe/zB,KAAKnB,MAAMV,MACzE41B,EAAe5vB,MAAQ4vB,EAAe5vB,OAAS,sBAE5C4vB,GAEX/qB,UAAW,SAAmB+qB,GAC1B,IAAIL,EAAgBK,EAGpB,OADAL,EAAcE,KAAOG,EAAe/zB,MAAQ,IAAI0jB,cACzCgQ,IAIfxG,EAAQ2E,EAAQ3D,QAAU2D,EAC1B3E,EAAQ4E,EAAU5D,QAAU4D,EAC5B5E,EAAQkF,GAAUlE,QAAUkE,GAC5BlF,EAAQuG,GAAUvF,QAAUuF,GAC5BvG,EAAQ4G,GAAU5F,QAAU4F,GAE5B17B,EAAQ80B,QAAUA,EAClB90B,EAAQ+0B,WAAaA,EACrB/0B,EAAQi1B,YAAcA,EACtBj1B,EAAQqO,MAAQA,EAChBrO,EAAQ04B,kBAAoBA,EAC5B14B,EAAQ4Q,UAAYA,EACpB5Q,EAAQo5B,kBAAoBA,EAC5Bp5B,EAAQoE,QAlQR,SAAiBw3B,EAASC,EAAa/D,GACnC,IAAIgE,EA9jCR,SAAgBxC,EAAQhvB,GACpB,IAAImI,EAAM6mB,EACV,GAAIhvB,EACA,IAAK,IAAIzI,KAAOyI,EACZmI,EAAI5Q,GAAOyI,EAAOzI,GAG1B,OAAO4Q,EAujCiBspB,CAAO,CAAEjG,OAAQ,QAAUgC,GACnD,OAAOlnB,EAAUwoB,EAAkB/qB,EAAMutB,EAASE,GAAoBztB,EAAMwtB,EAAaC,GAAoBA,GAAmB,GAAOA,IAiQ3I97B,EAAQ2Q,UA9PR,SAAmBvJ,EAAK0wB,GAMpB,MALmB,iBAAR1wB,EACPA,EAAMwJ,EAAUvC,EAAMjH,EAAK0wB,GAAUA,GACd,WAAhB1M,EAAOhkB,KACdA,EAAMiH,EAAMuC,EAAUxJ,EAAK0wB,GAAUA,IAElC1wB,GAyPXpH,EAAQ6I,MAtPR,SAAemzB,EAAMC,EAAMnE,GAWvB,MAVoB,iBAATkE,EACPA,EAAOprB,EAAUvC,EAAM2tB,EAAMlE,GAAUA,GACf,WAAjB1M,EAAO4Q,KACdA,EAAOprB,EAAUorB,EAAMlE,IAEP,iBAATmE,EACPA,EAAOrrB,EAAUvC,EAAM4tB,EAAMnE,GAAUA,GACf,WAAjB1M,EAAO6Q,KACdA,EAAOrrB,EAAUqrB,EAAMnE,IAEpBkE,IAASC,GA4OpBj8B,EAAQk8B,gBAzOR,SAAyB31B,EAAKuxB,GAC1B,OAAOvxB,GAAOA,EAAIkjB,WAAW3Y,QAASgnB,GAAYA,EAAQC,IAA4BxI,EAAaP,OAAnCM,EAAaN,OAA8B+F,IAyO/G/0B,EAAQw5B,kBAAoBA,EAE5B10B,OAAOq3B,eAAen8B,EAAS,aAAc,CAAE8B,OAAO,IAv2CUs6B,CAA5C,iBAAZp8B,QAA0C,IAAXC,EAAiCD,EAE7DK,EAAOuF,IAAMvF,EAAOuF,KAAO,KA02CpC,IAAIT,IAAM,CAAC,SAASnE,EAAQf,EAAOD,GACrC,aAEA,IAAIq8B,EAAgBr7B,EAAQ,aACxBoD,EAAUpD,EAAQ,qBAClBS,EAAQT,EAAQ,WAChBiN,EAAejN,EAAQ,wBACvB0H,EAAkB1H,EAAQ,8BAC1BmF,EAAUnF,EAAQ,qBAClBqQ,EAAQrQ,EAAQ,mBAChBs7B,EAAkBt7B,EAAQ,UAC1BuE,EAAOvE,EAAQ,mBAEnBf,EAAOD,QAAUQ,GAEbmB,UAAUqB,SA0Ed,SAAkBu5B,EAActpB,GAC9B,IAAIlP,EACJ,GAA2B,iBAAhBw4B,GAET,KADAx4B,EAAIxD,KAAK0D,UAAUs4B,IACX,MAAM,IAAIp7B,MAAM,8BAAgCo7B,EAAe,SAClE,CACL,IAAIz5B,EAAYvC,KAAKwC,WAAWw5B,GAChCx4B,EAAIjB,EAAUE,UAAYzC,KAAK2C,SAASJ,GAG1C,IAAIoV,EAAQnU,EAAEkP,IACG,IAAblP,EAAEqG,SAAiB7J,KAAK2E,OAASnB,EAAEmB,QACvC,OAAOgT,GArFT1X,EAAImB,UAAUoH,QAgGd,SAAiBzG,EAAQk6B,GACvB,IAAI15B,EAAYvC,KAAKwC,WAAWT,OAAQK,EAAW65B,GACnD,OAAO15B,EAAUE,UAAYzC,KAAK2C,SAASJ,IAjG7CtC,EAAImB,UAAUiC,UA8Gd,SAAmBtB,EAAQT,EAAK46B,EAAiBD,GAC/C,GAAIlsB,MAAMC,QAAQjO,GAAQ,CACxB,IAAK,IAAIxB,EAAE,EAAGA,EAAEwB,EAAOf,OAAQT,IAAKP,KAAKqD,UAAUtB,EAAOxB,QAAI6B,EAAW85B,EAAiBD,GAC1F,OAAOj8B,KAET,IAAIoO,EAAKpO,KAAKkO,OAAOnM,GACrB,QAAWK,IAAPgM,GAAiC,iBAANA,EAC7B,MAAM,IAAIxN,MAAM,4BAIlB,OAFAu7B,EAAYn8B,KADZsB,EAAMuC,EAAQM,YAAY7C,GAAO8M,IAEjCpO,KAAKuD,SAASjC,GAAOtB,KAAKwC,WAAWT,EAAQm6B,EAAiBD,GAAO,GAC9Dj8B,MAxHTC,EAAImB,UAAUg7B,cAqId,SAAuBr6B,EAAQT,EAAK+6B,GAElC,OADAr8B,KAAKqD,UAAUtB,EAAQT,EAAK+6B,GAAgB,GACrCr8B,MAtITC,EAAImB,UAAUsL,eAiJd,SAAwB3K,EAAQu6B,GAC9B,IAAI74B,EAAU1B,EAAO0B,QACrB,QAAgBrB,IAAZqB,GAA2C,iBAAXA,EAClC,MAAM,IAAI7C,MAAM,4BAElB,KADA6C,EAAUA,GAAWzD,KAAKkC,MAAMq6B,aAgBlC,SAAqBx8B,GACnB,IAAIiC,EAAOjC,EAAKmC,MAAMF,KAMtB,OALAjC,EAAKmC,MAAMq6B,YAA6B,iBAARv6B,EACJjC,EAAKmO,OAAOlM,IAASA,EACrBjC,EAAK2D,UAAU84B,GACbA,OACAp6B,EACvBrC,EAAKmC,MAAMq6B,YAvB6BA,CAAYv8B,OAIzD,OAFAA,KAAK+K,OAAO+T,KAAK,+BACjB9e,KAAK2E,OAAS,MAGhB,IAAIgT,EAAQ3X,KAAKyC,SAASgB,EAAS1B,GACnC,IAAK4V,GAAS2kB,EAAiB,CAC7B,IAAIr4B,EAAU,sBAAwBjE,KAAKkN,aAC3C,GAAiC,OAA7BlN,KAAKkC,MAAMwK,eACV,MAAM,IAAI9L,MAAMqD,GADmBjE,KAAK+K,OAAOS,MAAMvH,GAG5D,OAAO0T,GAhKT1X,EAAImB,UAAUsC,UAqLd,SAAmB+4B,GACjB,IAAIl6B,EAAYm6B,EAAc18B,KAAMy8B,GACpC,cAAel6B,GACb,IAAK,SAAU,OAAOA,EAAUE,UAAYzC,KAAK2C,SAASJ,GAC1D,IAAK,SAAU,OAAOvC,KAAK0D,UAAUnB,GACrC,IAAK,YAAa,OAKtB,SAA4BxC,EAAM8C,GAChC,IAAI+K,EAAM/J,EAAQ9B,OAAOhB,KAAKhB,EAAM,CAAEgC,OAAQ,IAAMc,GACpD,GAAI+K,EAAK,CACP,IAAI7L,EAAS6L,EAAI7L,OACb0G,EAAOmF,EAAInF,KACXzE,EAAS4J,EAAI5J,OACbR,EAAIs4B,EAAc/6B,KAAKhB,EAAMgC,EAAQ0G,OAAMrG,EAAW4B,GAS1D,OARAjE,EAAK48B,WAAW95B,GAAO,IAAI6K,EAAa,CACtC7K,IAAKA,EACLyM,UAAU,EACVvN,OAAQA,EACR0G,KAAMA,EACNzE,OAAQA,EACRvB,SAAUe,IAELA,GApBkBo5B,CAAmB58B,KAAMy8B,KAzLtDx8B,EAAImB,UAAUy7B,aAiOd,SAAsBb,GACpB,GAAIA,aAAwBj0B,OAG1B,OAFA+0B,EAAkB98B,KAAMA,KAAKuD,SAAUy4B,GACvCc,EAAkB98B,KAAMA,KAAKsD,MAAO04B,GAC7Bh8B,KAET,cAAeg8B,GACb,IAAK,YAIH,OAHAc,EAAkB98B,KAAMA,KAAKuD,UAC7Bu5B,EAAkB98B,KAAMA,KAAKsD,OAC7BtD,KAAKmB,OAAOO,QACL1B,KACT,IAAK,SACH,IAAIuC,EAAYm6B,EAAc18B,KAAMg8B,GAIpC,OAHIz5B,GAAWvC,KAAKmB,OAAOM,IAAIc,EAAUw6B,iBAClC/8B,KAAKuD,SAASy4B,UACdh8B,KAAKsD,MAAM04B,GACXh8B,KACT,IAAK,SACH,IAAIqQ,EAAYrQ,KAAKkC,MAAMmO,UACvB0sB,EAAW1sB,EAAYA,EAAU2rB,GAAgBA,EACrDh8B,KAAKmB,OAAOM,IAAIs7B,GAChB,IAAI3uB,EAAKpO,KAAKkO,OAAO8tB,GACjB5tB,IACFA,EAAKvK,EAAQM,YAAYiK,UAClBpO,KAAKuD,SAAS6K,UACdpO,KAAKsD,MAAM8K,IAGxB,OAAOpO,MA7PTC,EAAImB,UAAU47B,UA4Zd,SAAmBpC,EAAMrc,GACF,iBAAVA,IAAoBA,EAAS,IAAIxW,OAAOwW,IAEnD,OADAve,KAAKyJ,SAASmxB,GAAQrc,EACfve,MA9ZTC,EAAImB,UAAU8L,WAoYd,SAAoBvI,EAAQ4yB,GAE1B,KADA5yB,EAASA,GAAU3E,KAAK2E,QACX,MAAO,YAMpB,IAJA,IAAIs4B,OAAkC76B,KADtCm1B,EAAUA,GAAW,IACG0F,UAA0B,KAAO1F,EAAQ0F,UAC7DnpB,OAA8B1R,IAApBm1B,EAAQzjB,QAAwB,OAASyjB,EAAQzjB,QAE3DopB,EAAO,GACF38B,EAAE,EAAGA,EAAEoE,EAAO3D,OAAQT,IAAK,CAClC,IAAIJ,EAAIwE,EAAOpE,GACXJ,IAAG+8B,GAAQppB,EAAU3T,EAAEg9B,SAAW,IAAMh9B,EAAE8D,QAAUg5B,GAE1D,OAAOC,EAAK3tB,MAAM,GAAI0tB,EAAUj8B,SA9YlCf,EAAImB,UAAUoB,WA0Qd,SAAoBT,EAAQs6B,EAAgBr6B,EAAMo7B,GAChD,GAAqB,iBAAVr7B,GAAuC,kBAAVA,EACtC,MAAM,IAAInB,MAAM,sCAClB,IAAIyP,EAAYrQ,KAAKkC,MAAMmO,UACvB0sB,EAAW1sB,EAAYA,EAAUtO,GAAUA,EAC3Cs7B,EAASr9B,KAAKmB,OAAOK,IAAIu7B,GAC7B,GAAIM,EAAQ,OAAOA,EAEnBD,EAAkBA,IAAgD,IAA7Bp9B,KAAKkC,MAAMo7B,cAEhD,IAAIlvB,EAAKvK,EAAQM,YAAYnE,KAAKkO,OAAOnM,IACrCqM,GAAMgvB,GAAiBjB,EAAYn8B,KAAMoO,GAE7C,IACImvB,EADAC,GAA6C,IAA9Bx9B,KAAKkC,MAAMwK,iBAA6B2vB,EAEvDmB,KAAkBD,EAAgBnvB,GAAMA,GAAMvK,EAAQM,YAAYpC,EAAO0B,WAC3EzD,KAAK0M,eAAe3K,GAAQ,GAE9B,IAAI2G,EAAY7E,EAAQ2K,IAAIzN,KAAKf,KAAM+B,GAEnCQ,EAAY,IAAImL,EAAa,CAC/BU,GAAIA,EACJrM,OAAQA,EACR2G,UAAWA,EACXq0B,SAAUA,EACV/6B,KAAMA,IAGK,KAAToM,EAAG,IAAagvB,IAAiBp9B,KAAKsD,MAAM8K,GAAM7L,GACtDvC,KAAKmB,OAAOE,IAAI07B,EAAUx6B,GAEtBi7B,GAAgBD,GAAev9B,KAAK0M,eAAe3K,GAAQ,GAE/D,OAAOQ,GA1STtC,EAAImB,UAAUuB,SA+Sd,SAAkBJ,EAAWkG,GAC3B,GAAIlG,EAAU8G,UAOZ,OANA9G,EAAUE,SAAW+G,GACRzH,OAASQ,EAAUR,OAChCyH,EAAa7E,OAAS,KACtB6E,EAAaf,KAAOA,GAAce,GACF,IAA5BjH,EAAUR,OAAO8H,SACnBL,EAAaK,QAAS,GACjBL,EAIT,IAAIi0B,EAMAj6B,EARJjB,EAAU8G,WAAY,EAGlB9G,EAAUP,OACZy7B,EAAcz9B,KAAKkC,MACnBlC,KAAKkC,MAAQlC,KAAK09B,WAIpB,IAAMl6B,EAAIs4B,EAAc/6B,KAAKf,KAAMuC,EAAUR,OAAQ0G,EAAMlG,EAAUmG,WACrE,MAAMvI,GAEJ,aADOoC,EAAUE,SACXtC,EAER,QACEoC,EAAU8G,WAAY,EAClB9G,EAAUP,OAAMhC,KAAKkC,MAAQu7B,GAOnC,OAJAl7B,EAAUE,SAAWe,EACrBjB,EAAUsG,KAAOrF,EAAEqF,KACnBtG,EAAUqG,OAASpF,EAAEoF,OACrBrG,EAAUkG,KAAOjF,EAAEiF,KACZjF,EAIP,SAASgG,IAEP,IAAIm0B,EAAYp7B,EAAUE,SACtBwH,EAAS0zB,EAAUzzB,MAAMlK,KAAMmK,WAEnC,OADAX,EAAa7E,OAASg5B,EAAUh5B,OACzBsF,IAvVXhK,EAAImB,UAAUU,aAAerB,EAAQ,mBACrC,IAAIm9B,EAAgBn9B,EAAQ,aAC5BR,EAAImB,UAAUy8B,WAAaD,EAAcnW,IACzCxnB,EAAImB,UAAU08B,WAAaF,EAAcp8B,IACzCvB,EAAImB,UAAU28B,cAAgBH,EAAc/V,OAC5C5nB,EAAImB,UAAUkmB,gBAAkBsW,EAAcn7B,SAE9C,IAAIyF,EAAezH,EAAQ,2BAC3BR,EAAIsI,gBAAkBL,EAAaxD,WACnCzE,EAAI2B,gBAAkBsG,EAAarG,WACnC5B,EAAI87B,gBAAkBA,EAEtB,IAAIS,EAAiB,yCAEjBwB,EAAsB,CAAE,mBAAoB,cAAe,cAAe,kBAC1EC,EAAoB,CAAC,eAQzB,SAASh+B,EAAI0I,GACX,KAAM3I,gBAAgBC,GAAM,OAAO,IAAIA,EAAI0I,GAC3CA,EAAO3I,KAAKkC,MAAQ8C,EAAKc,KAAK6C,IAAS,GAwbzC,SAAmB5I,GACjB,IAAIgL,EAAShL,EAAKmC,MAAM6I,OACxB,IAAe,IAAXA,EACFhL,EAAKgL,OAAS,CAACmzB,IAAKC,EAAMrf,KAAMqf,EAAM3yB,MAAO2yB,OACxC,CAEL,QADe/7B,IAAX2I,IAAsBA,EAASqzB,WACZ,iBAAVrzB,GAAsBA,EAAOmzB,KAAOnzB,EAAO+T,MAAQ/T,EAAOS,OACrE,MAAM,IAAI5K,MAAM,qDAClBb,EAAKgL,OAASA,GA/bhBszB,CAAUr+B,MACVA,KAAKuD,SAAW,GAChBvD,KAAKsD,MAAQ,GACbtD,KAAK28B,WAAa,GAClB38B,KAAKyJ,SAAW7D,EAAQ+C,EAAK4V,QAE7Bve,KAAKmB,OAASwH,EAAK21B,OAAS,IAAIp9B,EAChClB,KAAKkD,gBAAkB,GACvBlD,KAAKsJ,cAAgB,GACrBtJ,KAAK0J,MAAQoH,IACb9Q,KAAKkO,OAwTP,SAAqBvF,GACnB,OAAQA,EAAK8F,UACX,IAAK,OAAQ,OAAO8vB,EACpB,IAAK,KAAM,OAAOrwB,EAClB,QAAS,OAAOswB,GA5TJC,CAAY91B,GAE1BA,EAAKib,aAAejb,EAAKib,cAAgBzT,EAAAA,EACf,YAAtBxH,EAAK+1B,gBAA6B/1B,EAAKoV,wBAAyB,QAC7C3b,IAAnBuG,EAAK0H,YAAyB1H,EAAK0H,UAAYlI,GACnDnI,KAAK09B,UAgaP,SAA8B39B,GAE5B,IADA,IAAI4+B,EAAW35B,EAAKc,KAAK/F,EAAKmC,OACrB3B,EAAE,EAAGA,EAAEy9B,EAAoBh9B,OAAQT,WACnCo+B,EAASX,EAAoBz9B,IACtC,OAAOo+B,EApaUC,CAAqB5+B,MAElC2I,EAAK/C,SAwYX,SAA2B7F,GACzB,IAAK,IAAI66B,KAAQ76B,EAAKmC,MAAM0D,QAAS,CAEnC7F,EAAKi9B,UAAUpC,EADF76B,EAAKmC,MAAM0D,QAAQg1B,KA1YhBiE,CAAkB7+B,MAChC2I,EAAKkJ,UA+YX,SAA4B9R,GAC1B,IAAK,IAAI66B,KAAQ76B,EAAKmC,MAAM2P,SAAU,CAEpC9R,EAAK89B,WAAWjD,EADF76B,EAAKmC,MAAM2P,SAAS+oB,KAjZjBkE,CAAmB9+B,MAiXxC,SAA8BD,GAC5B,IAAIg/B,EACAh/B,EAAKmC,MAAM6T,QACbgpB,EAAct+B,EAAQ,oBACtBV,EAAKq8B,cAAc2C,EAAaA,EAAYxnB,KAAK,IAEnD,IAAwB,IAApBxX,EAAKmC,MAAMF,KAAgB,OAC/B,IAAIgV,EAAavW,EAAQ,oCACrBV,EAAKmC,MAAM6T,QAAOiB,EAAa+kB,EAAgB/kB,EAAYinB,IAC/Dl+B,EAAKq8B,cAAcplB,EAAYwlB,GAAgB,GAC/Cz8B,EAAKuD,MAAM,iCAAmCk5B,EA1X9CwC,CAAqBh/B,MACG,iBAAb2I,EAAK3G,MAAkBhC,KAAKo8B,cAAczzB,EAAK3G,MACtD2G,EAAKyd,UAAUpmB,KAAK69B,WAAW,WAAY,CAAC7mB,WAAY,CAACnG,KAAM,aA4XrE,SAA2B9Q,GACzB,IAAIk/B,EAAcl/B,EAAKmC,MAAMg9B,QAC7B,IAAKD,EAAa,OAClB,GAAIlvB,MAAMC,QAAQivB,GAAcl/B,EAAKsD,UAAU47B,QAC1C,IAAK,IAAI39B,KAAO29B,EAAal/B,EAAKsD,UAAU47B,EAAY39B,GAAMA,GA/XnE69B,CAAkBn/B,MA2JpB,SAAS08B,EAAc38B,EAAM08B,GAE3B,OADAA,EAAS54B,EAAQM,YAAYs4B,GACtB18B,EAAKwD,SAASk5B,IAAW18B,EAAKuD,MAAMm5B,IAAW18B,EAAK48B,WAAWF,GA8CxE,SAASK,EAAkB/8B,EAAMm/B,EAAS93B,GACxC,IAAK,IAAIq1B,KAAUyC,EAAS,CAC1B,IAAI38B,EAAY28B,EAAQzC,GACnBl6B,EAAUP,MAAUoF,IAASA,EAAMS,KAAK40B,KAC3C18B,EAAKoB,OAAOM,IAAIc,EAAUw6B,iBACnBmC,EAAQzC,KAqGrB,SAASvuB,EAAOnM,GAEd,OADIA,EAAOwV,KAAKvX,KAAK+K,OAAO+T,KAAK,qBAAsB/c,EAAOwV,KACvDxV,EAAOqM,GAIhB,SAASowB,EAAQz8B,GAEf,OADIA,EAAOqM,IAAIpO,KAAK+K,OAAO+T,KAAK,oBAAqB/c,EAAOqM,IACrDrM,EAAOwV,IAIhB,SAASgnB,EAAYx8B,GACnB,GAAIA,EAAOwV,KAAOxV,EAAOqM,IAAMrM,EAAOwV,KAAOxV,EAAOqM,GAClD,MAAM,IAAIxN,MAAM,mCAClB,OAAOmB,EAAOwV,KAAOxV,EAAOqM,GA+E9B,SAAS+tB,EAAYp8B,EAAMqO,GACzB,GAAIrO,EAAKwD,SAAS6K,IAAOrO,EAAKuD,MAAM8K,GAClC,MAAM,IAAIxN,MAAM,0BAA4BwN,EAAK,oBAyBrD,SAAS+vB,OAEP,CAACiB,UAAU,EAAEC,YAAY,EAAEC,kBAAkB,EAAEC,0BAA0B,EAAEC,oBAAoB,EAAEC,oBAAoB,EAAEC,kBAAkB,EAAEC,uBAAuB,EAAEC,iBAAiB,GAAGC,SAAS,GAAGC,YAAY,GAAGC,mBAAmB,GAAG9nB,mCAAmC,GAAGzK,6BAA6B,MAAM,GAAG,GA3/NoD,CA2/NhD"} \ No newline at end of file
diff --git a/node_modules/ajv/lib/ajv.d.ts b/node_modules/ajv/lib/ajv.d.ts
deleted file mode 100644
index cb600e1..0000000
--- a/node_modules/ajv/lib/ajv.d.ts
+++ /dev/null
@@ -1,395 +0,0 @@
-declare var ajv: {
- (options?: ajv.Options): ajv.Ajv;
- new(options?: ajv.Options): ajv.Ajv;
- ValidationError: typeof AjvErrors.ValidationError;
- MissingRefError: typeof AjvErrors.MissingRefError;
- $dataMetaSchema: object;
-}
-
-declare namespace AjvErrors {
- class ValidationError extends Error {
- constructor(errors: Array<ajv.ErrorObject>);
-
- message: string;
- errors: Array<ajv.ErrorObject>;
- ajv: true;
- validation: true;
- }
-
- class MissingRefError extends Error {
- constructor(baseId: string, ref: string, message?: string);
- static message: (baseId: string, ref: string) => string;
-
- message: string;
- missingRef: string;
- missingSchema: string;
- }
-}
-
-declare namespace ajv {
- type ValidationError = AjvErrors.ValidationError;
-
- type MissingRefError = AjvErrors.MissingRefError;
-
- interface Ajv {
- /**
- * Validate data using schema
- * Schema will be compiled and cached (using serialized JSON as key, [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize by default).
- * @param {string|object|Boolean} schemaKeyRef key, ref or schema object
- * @param {Any} data to be validated
- * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
- */
- validate(schemaKeyRef: object | string | boolean, data: any): boolean | PromiseLike<any>;
- /**
- * Create validating function for passed schema.
- * @param {object|Boolean} schema schema object
- * @return {Function} validating function
- */
- compile(schema: object | boolean): ValidateFunction;
- /**
- * Creates validating function for passed schema with asynchronous loading of missing schemas.
- * `loadSchema` option should be a function that accepts schema uri and node-style callback.
- * @this Ajv
- * @param {object|Boolean} schema schema object
- * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped
- * @param {Function} callback optional node-style callback, it is always called with 2 parameters: error (or null) and validating function.
- * @return {PromiseLike<ValidateFunction>} validating function
- */
- compileAsync(schema: object | boolean, meta?: Boolean, callback?: (err: Error, validate: ValidateFunction) => any): PromiseLike<ValidateFunction>;
- /**
- * Adds schema to the instance.
- * @param {object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.
- * @param {string} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
- * @return {Ajv} this for method chaining
- */
- addSchema(schema: Array<object> | object, key?: string): Ajv;
- /**
- * Add schema that will be used to validate other schemas
- * options in META_IGNORE_OPTIONS are alway set to false
- * @param {object} schema schema object
- * @param {string} key optional schema key
- * @return {Ajv} this for method chaining
- */
- addMetaSchema(schema: object, key?: string): Ajv;
- /**
- * Validate schema
- * @param {object|Boolean} schema schema to validate
- * @return {Boolean} true if schema is valid
- */
- validateSchema(schema: object | boolean): boolean;
- /**
- * Get compiled schema from the instance by `key` or `ref`.
- * @param {string} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id).
- * @return {Function} schema validating function (with property `schema`). Returns undefined if keyRef can't be resolved to an existing schema.
- */
- getSchema(keyRef: string): ValidateFunction | undefined;
- /**
- * Remove cached schema(s).
- * If no parameter is passed all schemas but meta-schemas are removed.
- * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
- * Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
- * @param {string|object|RegExp|Boolean} schemaKeyRef key, ref, pattern to match key/ref or schema object
- * @return {Ajv} this for method chaining
- */
- removeSchema(schemaKeyRef?: object | string | RegExp | boolean): Ajv;
- /**
- * Add custom format
- * @param {string} name format name
- * @param {string|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid)
- * @return {Ajv} this for method chaining
- */
- addFormat(name: string, format: FormatValidator | FormatDefinition): Ajv;
- /**
- * Define custom keyword
- * @this Ajv
- * @param {string} keyword custom keyword, should be a valid identifier, should be different from all standard, custom and macro keywords.
- * @param {object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.
- * @return {Ajv} this for method chaining
- */
- addKeyword(keyword: string, definition: KeywordDefinition): Ajv;
- /**
- * Get keyword definition
- * @this Ajv
- * @param {string} keyword pre-defined or custom keyword.
- * @return {object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise.
- */
- getKeyword(keyword: string): object | boolean;
- /**
- * Remove keyword
- * @this Ajv
- * @param {string} keyword pre-defined or custom keyword.
- * @return {Ajv} this for method chaining
- */
- removeKeyword(keyword: string): Ajv;
- /**
- * Validate keyword
- * @this Ajv
- * @param {object} definition keyword definition object
- * @param {boolean} throwError true to throw exception if definition is invalid
- * @return {boolean} validation result
- */
- validateKeyword(definition: KeywordDefinition, throwError: boolean): boolean;
- /**
- * Convert array of error message objects to string
- * @param {Array<object>} errors optional array of validation errors, if not passed errors from the instance are used.
- * @param {object} options optional options with properties `separator` and `dataVar`.
- * @return {string} human readable string with all errors descriptions
- */
- errorsText(errors?: Array<ErrorObject> | null, options?: ErrorsTextOptions): string;
- errors?: Array<ErrorObject> | null;
- }
-
- interface CustomLogger {
- log(...args: any[]): any;
- warn(...args: any[]): any;
- error(...args: any[]): any;
- }
-
- interface ValidateFunction {
- (
- data: any,
- dataPath?: string,
- parentData?: object | Array<any>,
- parentDataProperty?: string | number,
- rootData?: object | Array<any>
- ): boolean | PromiseLike<any>;
- schema?: object | boolean;
- errors?: null | Array<ErrorObject>;
- refs?: object;
- refVal?: Array<any>;
- root?: ValidateFunction | object;
- $async?: true;
- source?: object;
- }
-
- interface Options {
- $data?: boolean;
- allErrors?: boolean;
- verbose?: boolean;
- jsonPointers?: boolean;
- uniqueItems?: boolean;
- unicode?: boolean;
- format?: false | string;
- formats?: object;
- keywords?: object;
- unknownFormats?: true | string[] | 'ignore';
- schemas?: Array<object> | object;
- schemaId?: '$id' | 'id' | 'auto';
- missingRefs?: true | 'ignore' | 'fail';
- extendRefs?: true | 'ignore' | 'fail';
- loadSchema?: (uri: string, cb?: (err: Error, schema: object) => void) => PromiseLike<object | boolean>;
- removeAdditional?: boolean | 'all' | 'failing';
- useDefaults?: boolean | 'empty' | 'shared';
- coerceTypes?: boolean | 'array';
- strictDefaults?: boolean | 'log';
- strictKeywords?: boolean | 'log';
- async?: boolean | string;
- transpile?: string | ((code: string) => string);
- meta?: boolean | object;
- validateSchema?: boolean | 'log';
- addUsedSchema?: boolean;
- inlineRefs?: boolean | number;
- passContext?: boolean;
- loopRequired?: number;
- ownProperties?: boolean;
- multipleOfPrecision?: boolean | number;
- errorDataPath?: string,
- messages?: boolean;
- sourceCode?: boolean;
- processCode?: (code: string) => string;
- cache?: object;
- logger?: CustomLogger | false;
- nullable?: boolean;
- serialize?: ((schema: object | boolean) => any) | false;
- }
-
- type FormatValidator = string | RegExp | ((data: string) => boolean | PromiseLike<any>);
- type NumberFormatValidator = ((data: number) => boolean | PromiseLike<any>);
-
- interface NumberFormatDefinition {
- type: "number",
- validate: NumberFormatValidator;
- compare?: (data1: number, data2: number) => number;
- async?: boolean;
- }
-
- interface StringFormatDefinition {
- type?: "string",
- validate: FormatValidator;
- compare?: (data1: string, data2: string) => number;
- async?: boolean;
- }
-
- type FormatDefinition = NumberFormatDefinition | StringFormatDefinition;
-
- interface KeywordDefinition {
- type?: string | Array<string>;
- async?: boolean;
- $data?: boolean;
- errors?: boolean | string;
- metaSchema?: object;
- // schema: false makes validate not to expect schema (ValidateFunction)
- schema?: boolean;
- statements?: boolean;
- dependencies?: Array<string>;
- modifying?: boolean;
- valid?: boolean;
- // one and only one of the following properties should be present
- validate?: SchemaValidateFunction | ValidateFunction;
- compile?: (schema: any, parentSchema: object, it: CompilationContext) => ValidateFunction;
- macro?: (schema: any, parentSchema: object, it: CompilationContext) => object | boolean;
- inline?: (it: CompilationContext, keyword: string, schema: any, parentSchema: object) => string;
- }
-
- interface CompilationContext {
- level: number;
- dataLevel: number;
- dataPathArr: string[];
- schema: any;
- schemaPath: string;
- baseId: string;
- async: boolean;
- opts: Options;
- formats: {
- [index: string]: FormatDefinition | undefined;
- };
- keywords: {
- [index: string]: KeywordDefinition | undefined;
- };
- compositeRule: boolean;
- validate: (schema: object) => boolean;
- util: {
- copy(obj: any, target?: any): any;
- toHash(source: string[]): { [index: string]: true | undefined };
- equal(obj: any, target: any): boolean;
- getProperty(str: string): string;
- schemaHasRules(schema: object, rules: any): string;
- escapeQuotes(str: string): string;
- toQuotedString(str: string): string;
- getData(jsonPointer: string, dataLevel: number, paths: string[]): string;
- escapeJsonPointer(str: string): string;
- unescapeJsonPointer(str: string): string;
- escapeFragment(str: string): string;
- unescapeFragment(str: string): string;
- };
- self: Ajv;
- }
-
- interface SchemaValidateFunction {
- (
- schema: any,
- data: any,
- parentSchema?: object,
- dataPath?: string,
- parentData?: object | Array<any>,
- parentDataProperty?: string | number,
- rootData?: object | Array<any>
- ): boolean | PromiseLike<any>;
- errors?: Array<ErrorObject>;
- }
-
- interface ErrorsTextOptions {
- separator?: string;
- dataVar?: string;
- }
-
- interface ErrorObject {
- keyword: string;
- dataPath: string;
- schemaPath: string;
- params: ErrorParameters;
- // Added to validation errors of propertyNames keyword schema
- propertyName?: string;
- // Excluded if messages set to false.
- message?: string;
- // These are added with the `verbose` option.
- schema?: any;
- parentSchema?: object;
- data?: any;
- }
-
- type ErrorParameters = RefParams | LimitParams | AdditionalPropertiesParams |
- DependenciesParams | FormatParams | ComparisonParams |
- MultipleOfParams | PatternParams | RequiredParams |
- TypeParams | UniqueItemsParams | CustomParams |
- PatternRequiredParams | PropertyNamesParams |
- IfParams | SwitchParams | NoParams | EnumParams;
-
- interface RefParams {
- ref: string;
- }
-
- interface LimitParams {
- limit: number;
- }
-
- interface AdditionalPropertiesParams {
- additionalProperty: string;
- }
-
- interface DependenciesParams {
- property: string;
- missingProperty: string;
- depsCount: number;
- deps: string;
- }
-
- interface FormatParams {
- format: string
- }
-
- interface ComparisonParams {
- comparison: string;
- limit: number | string;
- exclusive: boolean;
- }
-
- interface MultipleOfParams {
- multipleOf: number;
- }
-
- interface PatternParams {
- pattern: string;
- }
-
- interface RequiredParams {
- missingProperty: string;
- }
-
- interface TypeParams {
- type: string;
- }
-
- interface UniqueItemsParams {
- i: number;
- j: number;
- }
-
- interface CustomParams {
- keyword: string;
- }
-
- interface PatternRequiredParams {
- missingPattern: string;
- }
-
- interface PropertyNamesParams {
- propertyName: string;
- }
-
- interface IfParams {
- failingKeyword: string;
- }
-
- interface SwitchParams {
- caseIndex: number;
- }
-
- interface NoParams { }
-
- interface EnumParams {
- allowedValues: Array<any>;
- }
-}
-
-export = ajv;
diff --git a/node_modules/ajv/lib/ajv.js b/node_modules/ajv/lib/ajv.js
deleted file mode 100644
index 06a45b6..0000000
--- a/node_modules/ajv/lib/ajv.js
+++ /dev/null
@@ -1,506 +0,0 @@
-'use strict';
-
-var compileSchema = require('./compile')
- , resolve = require('./compile/resolve')
- , Cache = require('./cache')
- , SchemaObject = require('./compile/schema_obj')
- , stableStringify = require('fast-json-stable-stringify')
- , formats = require('./compile/formats')
- , rules = require('./compile/rules')
- , $dataMetaSchema = require('./data')
- , util = require('./compile/util');
-
-module.exports = Ajv;
-
-Ajv.prototype.validate = validate;
-Ajv.prototype.compile = compile;
-Ajv.prototype.addSchema = addSchema;
-Ajv.prototype.addMetaSchema = addMetaSchema;
-Ajv.prototype.validateSchema = validateSchema;
-Ajv.prototype.getSchema = getSchema;
-Ajv.prototype.removeSchema = removeSchema;
-Ajv.prototype.addFormat = addFormat;
-Ajv.prototype.errorsText = errorsText;
-
-Ajv.prototype._addSchema = _addSchema;
-Ajv.prototype._compile = _compile;
-
-Ajv.prototype.compileAsync = require('./compile/async');
-var customKeyword = require('./keyword');
-Ajv.prototype.addKeyword = customKeyword.add;
-Ajv.prototype.getKeyword = customKeyword.get;
-Ajv.prototype.removeKeyword = customKeyword.remove;
-Ajv.prototype.validateKeyword = customKeyword.validate;
-
-var errorClasses = require('./compile/error_classes');
-Ajv.ValidationError = errorClasses.Validation;
-Ajv.MissingRefError = errorClasses.MissingRef;
-Ajv.$dataMetaSchema = $dataMetaSchema;
-
-var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';
-
-var META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ];
-var META_SUPPORT_DATA = ['/properties'];
-
-/**
- * Creates validator instance.
- * Usage: `Ajv(opts)`
- * @param {Object} opts optional options
- * @return {Object} ajv instance
- */
-function Ajv(opts) {
- if (!(this instanceof Ajv)) return new Ajv(opts);
- opts = this._opts = util.copy(opts) || {};
- setLogger(this);
- this._schemas = {};
- this._refs = {};
- this._fragments = {};
- this._formats = formats(opts.format);
-
- this._cache = opts.cache || new Cache;
- this._loadingSchemas = {};
- this._compilations = [];
- this.RULES = rules();
- this._getId = chooseGetId(opts);
-
- opts.loopRequired = opts.loopRequired || Infinity;
- if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
- if (opts.serialize === undefined) opts.serialize = stableStringify;
- this._metaOpts = getMetaSchemaOptions(this);
-
- if (opts.formats) addInitialFormats(this);
- if (opts.keywords) addInitialKeywords(this);
- addDefaultMetaSchema(this);
- if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta);
- if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}});
- addInitialSchemas(this);
-}
-
-
-
-/**
- * Validate data using schema
- * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize.
- * @this Ajv
- * @param {String|Object} schemaKeyRef key, ref or schema object
- * @param {Any} data to be validated
- * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
- */
-function validate(schemaKeyRef, data) {
- var v;
- if (typeof schemaKeyRef == 'string') {
- v = this.getSchema(schemaKeyRef);
- if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"');
- } else {
- var schemaObj = this._addSchema(schemaKeyRef);
- v = schemaObj.validate || this._compile(schemaObj);
- }
-
- var valid = v(data);
- if (v.$async !== true) this.errors = v.errors;
- return valid;
-}
-
-
-/**
- * Create validating function for passed schema.
- * @this Ajv
- * @param {Object} schema schema object
- * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.
- * @return {Function} validating function
- */
-function compile(schema, _meta) {
- var schemaObj = this._addSchema(schema, undefined, _meta);
- return schemaObj.validate || this._compile(schemaObj);
-}
-
-
-/**
- * Adds schema to the instance.
- * @this Ajv
- * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.
- * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
- * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead.
- * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.
- * @return {Ajv} this for method chaining
- */
-function addSchema(schema, key, _skipValidation, _meta) {
- if (Array.isArray(schema)){
- for (var i=0; i<schema.length; i++) this.addSchema(schema[i], undefined, _skipValidation, _meta);
- return this;
- }
- var id = this._getId(schema);
- if (id !== undefined && typeof id != 'string')
- throw new Error('schema id must be string');
- key = resolve.normalizeId(key || id);
- checkUnique(this, key);
- this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
- return this;
-}
-
-
-/**
- * Add schema that will be used to validate other schemas
- * options in META_IGNORE_OPTIONS are alway set to false
- * @this Ajv
- * @param {Object} schema schema object
- * @param {String} key optional schema key
- * @param {Boolean} skipValidation true to skip schema validation, can be used to override validateSchema option for meta-schema
- * @return {Ajv} this for method chaining
- */
-function addMetaSchema(schema, key, skipValidation) {
- this.addSchema(schema, key, skipValidation, true);
- return this;
-}
-
-
-/**
- * Validate schema
- * @this Ajv
- * @param {Object} schema schema to validate
- * @param {Boolean} throwOrLogError pass true to throw (or log) an error if invalid
- * @return {Boolean} true if schema is valid
- */
-function validateSchema(schema, throwOrLogError) {
- var $schema = schema.$schema;
- if ($schema !== undefined && typeof $schema != 'string')
- throw new Error('$schema must be a string');
- $schema = $schema || this._opts.defaultMeta || defaultMeta(this);
- if (!$schema) {
- this.logger.warn('meta-schema not available');
- this.errors = null;
- return true;
- }
- var valid = this.validate($schema, schema);
- if (!valid && throwOrLogError) {
- var message = 'schema is invalid: ' + this.errorsText();
- if (this._opts.validateSchema == 'log') this.logger.error(message);
- else throw new Error(message);
- }
- return valid;
-}
-
-
-function defaultMeta(self) {
- var meta = self._opts.meta;
- self._opts.defaultMeta = typeof meta == 'object'
- ? self._getId(meta) || meta
- : self.getSchema(META_SCHEMA_ID)
- ? META_SCHEMA_ID
- : undefined;
- return self._opts.defaultMeta;
-}
-
-
-/**
- * Get compiled schema from the instance by `key` or `ref`.
- * @this Ajv
- * @param {String} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id).
- * @return {Function} schema validating function (with property `schema`).
- */
-function getSchema(keyRef) {
- var schemaObj = _getSchemaObj(this, keyRef);
- switch (typeof schemaObj) {
- case 'object': return schemaObj.validate || this._compile(schemaObj);
- case 'string': return this.getSchema(schemaObj);
- case 'undefined': return _getSchemaFragment(this, keyRef);
- }
-}
-
-
-function _getSchemaFragment(self, ref) {
- var res = resolve.schema.call(self, { schema: {} }, ref);
- if (res) {
- var schema = res.schema
- , root = res.root
- , baseId = res.baseId;
- var v = compileSchema.call(self, schema, root, undefined, baseId);
- self._fragments[ref] = new SchemaObject({
- ref: ref,
- fragment: true,
- schema: schema,
- root: root,
- baseId: baseId,
- validate: v
- });
- return v;
- }
-}
-
-
-function _getSchemaObj(self, keyRef) {
- keyRef = resolve.normalizeId(keyRef);
- return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
-}
-
-
-/**
- * Remove cached schema(s).
- * If no parameter is passed all schemas but meta-schemas are removed.
- * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
- * Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
- * @this Ajv
- * @param {String|Object|RegExp} schemaKeyRef key, ref, pattern to match key/ref or schema object
- * @return {Ajv} this for method chaining
- */
-function removeSchema(schemaKeyRef) {
- if (schemaKeyRef instanceof RegExp) {
- _removeAllSchemas(this, this._schemas, schemaKeyRef);
- _removeAllSchemas(this, this._refs, schemaKeyRef);
- return this;
- }
- switch (typeof schemaKeyRef) {
- case 'undefined':
- _removeAllSchemas(this, this._schemas);
- _removeAllSchemas(this, this._refs);
- this._cache.clear();
- return this;
- case 'string':
- var schemaObj = _getSchemaObj(this, schemaKeyRef);
- if (schemaObj) this._cache.del(schemaObj.cacheKey);
- delete this._schemas[schemaKeyRef];
- delete this._refs[schemaKeyRef];
- return this;
- case 'object':
- var serialize = this._opts.serialize;
- var cacheKey = serialize ? serialize(schemaKeyRef) : schemaKeyRef;
- this._cache.del(cacheKey);
- var id = this._getId(schemaKeyRef);
- if (id) {
- id = resolve.normalizeId(id);
- delete this._schemas[id];
- delete this._refs[id];
- }
- }
- return this;
-}
-
-
-function _removeAllSchemas(self, schemas, regex) {
- for (var keyRef in schemas) {
- var schemaObj = schemas[keyRef];
- if (!schemaObj.meta && (!regex || regex.test(keyRef))) {
- self._cache.del(schemaObj.cacheKey);
- delete schemas[keyRef];
- }
- }
-}
-
-
-/* @this Ajv */
-function _addSchema(schema, skipValidation, meta, shouldAddSchema) {
- if (typeof schema != 'object' && typeof schema != 'boolean')
- throw new Error('schema should be object or boolean');
- var serialize = this._opts.serialize;
- var cacheKey = serialize ? serialize(schema) : schema;
- var cached = this._cache.get(cacheKey);
- if (cached) return cached;
-
- shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
-
- var id = resolve.normalizeId(this._getId(schema));
- if (id && shouldAddSchema) checkUnique(this, id);
-
- var willValidate = this._opts.validateSchema !== false && !skipValidation;
- var recursiveMeta;
- if (willValidate && !(recursiveMeta = id && id == resolve.normalizeId(schema.$schema)))
- this.validateSchema(schema, true);
-
- var localRefs = resolve.ids.call(this, schema);
-
- var schemaObj = new SchemaObject({
- id: id,
- schema: schema,
- localRefs: localRefs,
- cacheKey: cacheKey,
- meta: meta
- });
-
- if (id[0] != '#' && shouldAddSchema) this._refs[id] = schemaObj;
- this._cache.put(cacheKey, schemaObj);
-
- if (willValidate && recursiveMeta) this.validateSchema(schema, true);
-
- return schemaObj;
-}
-
-
-/* @this Ajv */
-function _compile(schemaObj, root) {
- if (schemaObj.compiling) {
- schemaObj.validate = callValidate;
- callValidate.schema = schemaObj.schema;
- callValidate.errors = null;
- callValidate.root = root ? root : callValidate;
- if (schemaObj.schema.$async === true)
- callValidate.$async = true;
- return callValidate;
- }
- schemaObj.compiling = true;
-
- var currentOpts;
- if (schemaObj.meta) {
- currentOpts = this._opts;
- this._opts = this._metaOpts;
- }
-
- var v;
- try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
- catch(e) {
- delete schemaObj.validate;
- throw e;
- }
- finally {
- schemaObj.compiling = false;
- if (schemaObj.meta) this._opts = currentOpts;
- }
-
- schemaObj.validate = v;
- schemaObj.refs = v.refs;
- schemaObj.refVal = v.refVal;
- schemaObj.root = v.root;
- return v;
-
-
- /* @this {*} - custom context, see passContext option */
- function callValidate() {
- /* jshint validthis: true */
- var _validate = schemaObj.validate;
- var result = _validate.apply(this, arguments);
- callValidate.errors = _validate.errors;
- return result;
- }
-}
-
-
-function chooseGetId(opts) {
- switch (opts.schemaId) {
- case 'auto': return _get$IdOrId;
- case 'id': return _getId;
- default: return _get$Id;
- }
-}
-
-/* @this Ajv */
-function _getId(schema) {
- if (schema.$id) this.logger.warn('schema $id ignored', schema.$id);
- return schema.id;
-}
-
-/* @this Ajv */
-function _get$Id(schema) {
- if (schema.id) this.logger.warn('schema id ignored', schema.id);
- return schema.$id;
-}
-
-
-function _get$IdOrId(schema) {
- if (schema.$id && schema.id && schema.$id != schema.id)
- throw new Error('schema $id is different from id');
- return schema.$id || schema.id;
-}
-
-
-/**
- * Convert array of error message objects to string
- * @this Ajv
- * @param {Array<Object>} errors optional array of validation errors, if not passed errors from the instance are used.
- * @param {Object} options optional options with properties `separator` and `dataVar`.
- * @return {String} human readable string with all errors descriptions
- */
-function errorsText(errors, options) {
- errors = errors || this.errors;
- if (!errors) return 'No errors';
- options = options || {};
- var separator = options.separator === undefined ? ', ' : options.separator;
- var dataVar = options.dataVar === undefined ? 'data' : options.dataVar;
-
- var text = '';
- for (var i=0; i<errors.length; i++) {
- var e = errors[i];
- if (e) text += dataVar + e.dataPath + ' ' + e.message + separator;
- }
- return text.slice(0, -separator.length);
-}
-
-
-/**
- * Add custom format
- * @this Ajv
- * @param {String} name format name
- * @param {String|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid)
- * @return {Ajv} this for method chaining
- */
-function addFormat(name, format) {
- if (typeof format == 'string') format = new RegExp(format);
- this._formats[name] = format;
- return this;
-}
-
-
-function addDefaultMetaSchema(self) {
- var $dataSchema;
- if (self._opts.$data) {
- $dataSchema = require('./refs/data.json');
- self.addMetaSchema($dataSchema, $dataSchema.$id, true);
- }
- if (self._opts.meta === false) return;
- var metaSchema = require('./refs/json-schema-draft-07.json');
- if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
- self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
- self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
-}
-
-
-function addInitialSchemas(self) {
- var optsSchemas = self._opts.schemas;
- if (!optsSchemas) return;
- if (Array.isArray(optsSchemas)) self.addSchema(optsSchemas);
- else for (var key in optsSchemas) self.addSchema(optsSchemas[key], key);
-}
-
-
-function addInitialFormats(self) {
- for (var name in self._opts.formats) {
- var format = self._opts.formats[name];
- self.addFormat(name, format);
- }
-}
-
-
-function addInitialKeywords(self) {
- for (var name in self._opts.keywords) {
- var keyword = self._opts.keywords[name];
- self.addKeyword(name, keyword);
- }
-}
-
-
-function checkUnique(self, id) {
- if (self._schemas[id] || self._refs[id])
- throw new Error('schema with key or id "' + id + '" already exists');
-}
-
-
-function getMetaSchemaOptions(self) {
- var metaOpts = util.copy(self._opts);
- for (var i=0; i<META_IGNORE_OPTIONS.length; i++)
- delete metaOpts[META_IGNORE_OPTIONS[i]];
- return metaOpts;
-}
-
-
-function setLogger(self) {
- var logger = self._opts.logger;
- if (logger === false) {
- self.logger = {log: noop, warn: noop, error: noop};
- } else {
- if (logger === undefined) logger = console;
- if (!(typeof logger == 'object' && logger.log && logger.warn && logger.error))
- throw new Error('logger must implement log, warn and error methods');
- self.logger = logger;
- }
-}
-
-
-function noop() {}
diff --git a/node_modules/ajv/lib/cache.js b/node_modules/ajv/lib/cache.js
deleted file mode 100644
index 7558874..0000000
--- a/node_modules/ajv/lib/cache.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-
-
-var Cache = module.exports = function Cache() {
- this._cache = {};
-};
-
-
-Cache.prototype.put = function Cache_put(key, value) {
- this._cache[key] = value;
-};
-
-
-Cache.prototype.get = function Cache_get(key) {
- return this._cache[key];
-};
-
-
-Cache.prototype.del = function Cache_del(key) {
- delete this._cache[key];
-};
-
-
-Cache.prototype.clear = function Cache_clear() {
- this._cache = {};
-};
diff --git a/node_modules/ajv/lib/compile/async.js b/node_modules/ajv/lib/compile/async.js
deleted file mode 100644
index 6a30b88..0000000
--- a/node_modules/ajv/lib/compile/async.js
+++ /dev/null
@@ -1,90 +0,0 @@
-'use strict';
-
-var MissingRefError = require('./error_classes').MissingRef;
-
-module.exports = compileAsync;
-
-
-/**
- * Creates validating function for passed schema with asynchronous loading of missing schemas.
- * `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.
- * @this Ajv
- * @param {Object} schema schema object
- * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped
- * @param {Function} callback an optional node-style callback, it is called with 2 parameters: error (or null) and validating function.
- * @return {Promise} promise that resolves with a validating function.
- */
-function compileAsync(schema, meta, callback) {
- /* eslint no-shadow: 0 */
- /* global Promise */
- /* jshint validthis: true */
- var self = this;
- if (typeof this._opts.loadSchema != 'function')
- throw new Error('options.loadSchema should be a function');
-
- if (typeof meta == 'function') {
- callback = meta;
- meta = undefined;
- }
-
- var p = loadMetaSchemaOf(schema).then(function () {
- var schemaObj = self._addSchema(schema, undefined, meta);
- return schemaObj.validate || _compileAsync(schemaObj);
- });
-
- if (callback) {
- p.then(
- function(v) { callback(null, v); },
- callback
- );
- }
-
- return p;
-
-
- function loadMetaSchemaOf(sch) {
- var $schema = sch.$schema;
- return $schema && !self.getSchema($schema)
- ? compileAsync.call(self, { $ref: $schema }, true)
- : Promise.resolve();
- }
-
-
- function _compileAsync(schemaObj) {
- try { return self._compile(schemaObj); }
- catch(e) {
- if (e instanceof MissingRefError) return loadMissingSchema(e);
- throw e;
- }
-
-
- function loadMissingSchema(e) {
- var ref = e.missingSchema;
- if (added(ref)) throw new Error('Schema ' + ref + ' is loaded but ' + e.missingRef + ' cannot be resolved');
-
- var schemaPromise = self._loadingSchemas[ref];
- if (!schemaPromise) {
- schemaPromise = self._loadingSchemas[ref] = self._opts.loadSchema(ref);
- schemaPromise.then(removePromise, removePromise);
- }
-
- return schemaPromise.then(function (sch) {
- if (!added(ref)) {
- return loadMetaSchemaOf(sch).then(function () {
- if (!added(ref)) self.addSchema(sch, ref, undefined, meta);
- });
- }
- }).then(function() {
- return _compileAsync(schemaObj);
- });
-
- function removePromise() {
- delete self._loadingSchemas[ref];
- }
-
- function added(ref) {
- return self._refs[ref] || self._schemas[ref];
- }
- }
- }
-}
diff --git a/node_modules/ajv/lib/compile/equal.js b/node_modules/ajv/lib/compile/equal.js
deleted file mode 100644
index 4b271d5..0000000
--- a/node_modules/ajv/lib/compile/equal.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-// do NOT remove this file - it would break pre-compiled schemas
-// https://github.com/epoberezkin/ajv/issues/889
-module.exports = require('fast-deep-equal');
diff --git a/node_modules/ajv/lib/compile/error_classes.js b/node_modules/ajv/lib/compile/error_classes.js
deleted file mode 100644
index 0b0ec4e..0000000
--- a/node_modules/ajv/lib/compile/error_classes.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-
-var resolve = require('./resolve');
-
-module.exports = {
- Validation: errorSubclass(ValidationError),
- MissingRef: errorSubclass(MissingRefError)
-};
-
-
-function ValidationError(errors) {
- this.message = 'validation failed';
- this.errors = errors;
- this.ajv = this.validation = true;
-}
-
-
-MissingRefError.message = function (baseId, ref) {
- return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
-};
-
-
-function MissingRefError(baseId, ref, message) {
- this.message = message || MissingRefError.message(baseId, ref);
- this.missingRef = resolve.url(baseId, ref);
- this.missingSchema = resolve.normalizeId(resolve.fullPath(this.missingRef));
-}
-
-
-function errorSubclass(Subclass) {
- Subclass.prototype = Object.create(Error.prototype);
- Subclass.prototype.constructor = Subclass;
- return Subclass;
-}
diff --git a/node_modules/ajv/lib/compile/formats.js b/node_modules/ajv/lib/compile/formats.js
deleted file mode 100644
index 44895b0..0000000
--- a/node_modules/ajv/lib/compile/formats.js
+++ /dev/null
@@ -1,142 +0,0 @@
-'use strict';
-
-var util = require('./util');
-
-var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
-var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
-var TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
-var HOSTNAME = /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;
-var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
-var URIREF = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
-// uri-template: https://tools.ietf.org/html/rfc6570
-var URITEMPLATE = /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;
-// For the source: https://gist.github.com/dperini/729294
-// For test cases: https://mathiasbynens.be/demo/url-regex
-// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.
-// var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;
-var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
-var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
-var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
-var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
-var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
-
-
-module.exports = formats;
-
-function formats(mode) {
- mode = mode == 'full' ? 'full' : 'fast';
- return util.copy(formats[mode]);
-}
-
-
-formats.fast = {
- // date: http://tools.ietf.org/html/rfc3339#section-5.6
- date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
- // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
- time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,
- 'date-time': /^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,
- // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
- uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,
- 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
- 'uri-template': URITEMPLATE,
- url: URL,
- // email (sources from jsen validator):
- // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
- // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')
- email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
- hostname: HOSTNAME,
- // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
- ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
- // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses
- ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
- regex: regex,
- // uuid: http://tools.ietf.org/html/rfc4122
- uuid: UUID,
- // JSON-pointer: https://tools.ietf.org/html/rfc6901
- // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
- 'json-pointer': JSON_POINTER,
- 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
- // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
- 'relative-json-pointer': RELATIVE_JSON_POINTER
-};
-
-
-formats.full = {
- date: date,
- time: time,
- 'date-time': date_time,
- uri: uri,
- 'uri-reference': URIREF,
- 'uri-template': URITEMPLATE,
- url: URL,
- email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
- hostname: HOSTNAME,
- ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
- ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
- regex: regex,
- uuid: UUID,
- 'json-pointer': JSON_POINTER,
- 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
- 'relative-json-pointer': RELATIVE_JSON_POINTER
-};
-
-
-function isLeapYear(year) {
- // https://tools.ietf.org/html/rfc3339#appendix-C
- return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
-}
-
-
-function date(str) {
- // full-date from http://tools.ietf.org/html/rfc3339#section-5.6
- var matches = str.match(DATE);
- if (!matches) return false;
-
- var year = +matches[1];
- var month = +matches[2];
- var day = +matches[3];
-
- return month >= 1 && month <= 12 && day >= 1 &&
- day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);
-}
-
-
-function time(str, full) {
- var matches = str.match(TIME);
- if (!matches) return false;
-
- var hour = matches[1];
- var minute = matches[2];
- var second = matches[3];
- var timeZone = matches[5];
- return ((hour <= 23 && minute <= 59 && second <= 59) ||
- (hour == 23 && minute == 59 && second == 60)) &&
- (!full || timeZone);
-}
-
-
-var DATE_TIME_SEPARATOR = /t|\s/i;
-function date_time(str) {
- // http://tools.ietf.org/html/rfc3339#section-5.6
- var dateTime = str.split(DATE_TIME_SEPARATOR);
- return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true);
-}
-
-
-var NOT_URI_FRAGMENT = /\/|:/;
-function uri(str) {
- // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required "."
- return NOT_URI_FRAGMENT.test(str) && URI.test(str);
-}
-
-
-var Z_ANCHOR = /[^\\]\\Z/;
-function regex(str) {
- if (Z_ANCHOR.test(str)) return false;
- try {
- new RegExp(str);
- return true;
- } catch(e) {
- return false;
- }
-}
diff --git a/node_modules/ajv/lib/compile/index.js b/node_modules/ajv/lib/compile/index.js
deleted file mode 100644
index f4d3f0d..0000000
--- a/node_modules/ajv/lib/compile/index.js
+++ /dev/null
@@ -1,387 +0,0 @@
-'use strict';
-
-var resolve = require('./resolve')
- , util = require('./util')
- , errorClasses = require('./error_classes')
- , stableStringify = require('fast-json-stable-stringify');
-
-var validateGenerator = require('../dotjs/validate');
-
-/**
- * Functions below are used inside compiled validations function
- */
-
-var ucs2length = util.ucs2length;
-var equal = require('fast-deep-equal');
-
-// this error is thrown by async schemas to return validation errors via exception
-var ValidationError = errorClasses.Validation;
-
-module.exports = compile;
-
-
-/**
- * Compiles schema to validation function
- * @this Ajv
- * @param {Object} schema schema object
- * @param {Object} root object with information about the root schema for this schema
- * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution
- * @param {String} baseId base ID for IDs in the schema
- * @return {Function} validation function
- */
-function compile(schema, root, localRefs, baseId) {
- /* jshint validthis: true, evil: true */
- /* eslint no-shadow: 0 */
- var self = this
- , opts = this._opts
- , refVal = [ undefined ]
- , refs = {}
- , patterns = []
- , patternsHash = {}
- , defaults = []
- , defaultsHash = {}
- , customRules = [];
-
- root = root || { schema: schema, refVal: refVal, refs: refs };
-
- var c = checkCompiling.call(this, schema, root, baseId);
- var compilation = this._compilations[c.index];
- if (c.compiling) return (compilation.callValidate = callValidate);
-
- var formats = this._formats;
- var RULES = this.RULES;
-
- try {
- var v = localCompile(schema, root, localRefs, baseId);
- compilation.validate = v;
- var cv = compilation.callValidate;
- if (cv) {
- cv.schema = v.schema;
- cv.errors = null;
- cv.refs = v.refs;
- cv.refVal = v.refVal;
- cv.root = v.root;
- cv.$async = v.$async;
- if (opts.sourceCode) cv.source = v.source;
- }
- return v;
- } finally {
- endCompiling.call(this, schema, root, baseId);
- }
-
- /* @this {*} - custom context, see passContext option */
- function callValidate() {
- /* jshint validthis: true */
- var validate = compilation.validate;
- var result = validate.apply(this, arguments);
- callValidate.errors = validate.errors;
- return result;
- }
-
- function localCompile(_schema, _root, localRefs, baseId) {
- var isRoot = !_root || (_root && _root.schema == _schema);
- if (_root.schema != root.schema)
- return compile.call(self, _schema, _root, localRefs, baseId);
-
- var $async = _schema.$async === true;
-
- var sourceCode = validateGenerator({
- isTop: true,
- schema: _schema,
- isRoot: isRoot,
- baseId: baseId,
- root: _root,
- schemaPath: '',
- errSchemaPath: '#',
- errorPath: '""',
- MissingRefError: errorClasses.MissingRef,
- RULES: RULES,
- validate: validateGenerator,
- util: util,
- resolve: resolve,
- resolveRef: resolveRef,
- usePattern: usePattern,
- useDefault: useDefault,
- useCustomRule: useCustomRule,
- opts: opts,
- formats: formats,
- logger: self.logger,
- self: self
- });
-
- sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)
- + vars(defaults, defaultCode) + vars(customRules, customRuleCode)
- + sourceCode;
-
- if (opts.processCode) sourceCode = opts.processCode(sourceCode);
- // console.log('\n\n\n *** \n', JSON.stringify(sourceCode));
- var validate;
- try {
- var makeValidate = new Function(
- 'self',
- 'RULES',
- 'formats',
- 'root',
- 'refVal',
- 'defaults',
- 'customRules',
- 'equal',
- 'ucs2length',
- 'ValidationError',
- sourceCode
- );
-
- validate = makeValidate(
- self,
- RULES,
- formats,
- root,
- refVal,
- defaults,
- customRules,
- equal,
- ucs2length,
- ValidationError
- );
-
- refVal[0] = validate;
- } catch(e) {
- self.logger.error('Error compiling schema, function code:', sourceCode);
- throw e;
- }
-
- validate.schema = _schema;
- validate.errors = null;
- validate.refs = refs;
- validate.refVal = refVal;
- validate.root = isRoot ? validate : _root;
- if ($async) validate.$async = true;
- if (opts.sourceCode === true) {
- validate.source = {
- code: sourceCode,
- patterns: patterns,
- defaults: defaults
- };
- }
-
- return validate;
- }
-
- function resolveRef(baseId, ref, isRoot) {
- ref = resolve.url(baseId, ref);
- var refIndex = refs[ref];
- var _refVal, refCode;
- if (refIndex !== undefined) {
- _refVal = refVal[refIndex];
- refCode = 'refVal[' + refIndex + ']';
- return resolvedRef(_refVal, refCode);
- }
- if (!isRoot && root.refs) {
- var rootRefId = root.refs[ref];
- if (rootRefId !== undefined) {
- _refVal = root.refVal[rootRefId];
- refCode = addLocalRef(ref, _refVal);
- return resolvedRef(_refVal, refCode);
- }
- }
-
- refCode = addLocalRef(ref);
- var v = resolve.call(self, localCompile, root, ref);
- if (v === undefined) {
- var localSchema = localRefs && localRefs[ref];
- if (localSchema) {
- v = resolve.inlineRef(localSchema, opts.inlineRefs)
- ? localSchema
- : compile.call(self, localSchema, root, localRefs, baseId);
- }
- }
-
- if (v === undefined) {
- removeLocalRef(ref);
- } else {
- replaceLocalRef(ref, v);
- return resolvedRef(v, refCode);
- }
- }
-
- function addLocalRef(ref, v) {
- var refId = refVal.length;
- refVal[refId] = v;
- refs[ref] = refId;
- return 'refVal' + refId;
- }
-
- function removeLocalRef(ref) {
- delete refs[ref];
- }
-
- function replaceLocalRef(ref, v) {
- var refId = refs[ref];
- refVal[refId] = v;
- }
-
- function resolvedRef(refVal, code) {
- return typeof refVal == 'object' || typeof refVal == 'boolean'
- ? { code: code, schema: refVal, inline: true }
- : { code: code, $async: refVal && !!refVal.$async };
- }
-
- function usePattern(regexStr) {
- var index = patternsHash[regexStr];
- if (index === undefined) {
- index = patternsHash[regexStr] = patterns.length;
- patterns[index] = regexStr;
- }
- return 'pattern' + index;
- }
-
- function useDefault(value) {
- switch (typeof value) {
- case 'boolean':
- case 'number':
- return '' + value;
- case 'string':
- return util.toQuotedString(value);
- case 'object':
- if (value === null) return 'null';
- var valueStr = stableStringify(value);
- var index = defaultsHash[valueStr];
- if (index === undefined) {
- index = defaultsHash[valueStr] = defaults.length;
- defaults[index] = value;
- }
- return 'default' + index;
- }
- }
-
- function useCustomRule(rule, schema, parentSchema, it) {
- if (self._opts.validateSchema !== false) {
- var deps = rule.definition.dependencies;
- if (deps && !deps.every(function(keyword) {
- return Object.prototype.hasOwnProperty.call(parentSchema, keyword);
- }))
- throw new Error('parent schema must have all required keywords: ' + deps.join(','));
-
- var validateSchema = rule.definition.validateSchema;
- if (validateSchema) {
- var valid = validateSchema(schema);
- if (!valid) {
- var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors);
- if (self._opts.validateSchema == 'log') self.logger.error(message);
- else throw new Error(message);
- }
- }
- }
-
- var compile = rule.definition.compile
- , inline = rule.definition.inline
- , macro = rule.definition.macro;
-
- var validate;
- if (compile) {
- validate = compile.call(self, schema, parentSchema, it);
- } else if (macro) {
- validate = macro.call(self, schema, parentSchema, it);
- if (opts.validateSchema !== false) self.validateSchema(validate, true);
- } else if (inline) {
- validate = inline.call(self, it, rule.keyword, schema, parentSchema);
- } else {
- validate = rule.definition.validate;
- if (!validate) return;
- }
-
- if (validate === undefined)
- throw new Error('custom keyword "' + rule.keyword + '"failed to compile');
-
- var index = customRules.length;
- customRules[index] = validate;
-
- return {
- code: 'customRule' + index,
- validate: validate
- };
- }
-}
-
-
-/**
- * Checks if the schema is currently compiled
- * @this Ajv
- * @param {Object} schema schema to compile
- * @param {Object} root root object
- * @param {String} baseId base schema ID
- * @return {Object} object with properties "index" (compilation index) and "compiling" (boolean)
- */
-function checkCompiling(schema, root, baseId) {
- /* jshint validthis: true */
- var index = compIndex.call(this, schema, root, baseId);
- if (index >= 0) return { index: index, compiling: true };
- index = this._compilations.length;
- this._compilations[index] = {
- schema: schema,
- root: root,
- baseId: baseId
- };
- return { index: index, compiling: false };
-}
-
-
-/**
- * Removes the schema from the currently compiled list
- * @this Ajv
- * @param {Object} schema schema to compile
- * @param {Object} root root object
- * @param {String} baseId base schema ID
- */
-function endCompiling(schema, root, baseId) {
- /* jshint validthis: true */
- var i = compIndex.call(this, schema, root, baseId);
- if (i >= 0) this._compilations.splice(i, 1);
-}
-
-
-/**
- * Index of schema compilation in the currently compiled list
- * @this Ajv
- * @param {Object} schema schema to compile
- * @param {Object} root root object
- * @param {String} baseId base schema ID
- * @return {Integer} compilation index
- */
-function compIndex(schema, root, baseId) {
- /* jshint validthis: true */
- for (var i=0; i<this._compilations.length; i++) {
- var c = this._compilations[i];
- if (c.schema == schema && c.root == root && c.baseId == baseId) return i;
- }
- return -1;
-}
-
-
-function patternCode(i, patterns) {
- return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
-}
-
-
-function defaultCode(i) {
- return 'var default' + i + ' = defaults[' + i + '];';
-}
-
-
-function refValCode(i, refVal) {
- return refVal[i] === undefined ? '' : 'var refVal' + i + ' = refVal[' + i + '];';
-}
-
-
-function customRuleCode(i) {
- return 'var customRule' + i + ' = customRules[' + i + '];';
-}
-
-
-function vars(arr, statement) {
- if (!arr.length) return '';
- var code = '';
- for (var i=0; i<arr.length; i++)
- code += statement(i, arr);
- return code;
-}
diff --git a/node_modules/ajv/lib/compile/resolve.js b/node_modules/ajv/lib/compile/resolve.js
deleted file mode 100644
index 66f2aee..0000000
--- a/node_modules/ajv/lib/compile/resolve.js
+++ /dev/null
@@ -1,270 +0,0 @@
-'use strict';
-
-var URI = require('uri-js')
- , equal = require('fast-deep-equal')
- , util = require('./util')
- , SchemaObject = require('./schema_obj')
- , traverse = require('json-schema-traverse');
-
-module.exports = resolve;
-
-resolve.normalizeId = normalizeId;
-resolve.fullPath = getFullPath;
-resolve.url = resolveUrl;
-resolve.ids = resolveIds;
-resolve.inlineRef = inlineRef;
-resolve.schema = resolveSchema;
-
-/**
- * [resolve and compile the references ($ref)]
- * @this Ajv
- * @param {Function} compile reference to schema compilation funciton (localCompile)
- * @param {Object} root object with information about the root schema for the current schema
- * @param {String} ref reference to resolve
- * @return {Object|Function} schema object (if the schema can be inlined) or validation function
- */
-function resolve(compile, root, ref) {
- /* jshint validthis: true */
- var refVal = this._refs[ref];
- if (typeof refVal == 'string') {
- if (this._refs[refVal]) refVal = this._refs[refVal];
- else return resolve.call(this, compile, root, refVal);
- }
-
- refVal = refVal || this._schemas[ref];
- if (refVal instanceof SchemaObject) {
- return inlineRef(refVal.schema, this._opts.inlineRefs)
- ? refVal.schema
- : refVal.validate || this._compile(refVal);
- }
-
- var res = resolveSchema.call(this, root, ref);
- var schema, v, baseId;
- if (res) {
- schema = res.schema;
- root = res.root;
- baseId = res.baseId;
- }
-
- if (schema instanceof SchemaObject) {
- v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);
- } else if (schema !== undefined) {
- v = inlineRef(schema, this._opts.inlineRefs)
- ? schema
- : compile.call(this, schema, root, undefined, baseId);
- }
-
- return v;
-}
-
-
-/**
- * Resolve schema, its root and baseId
- * @this Ajv
- * @param {Object} root root object with properties schema, refVal, refs
- * @param {String} ref reference to resolve
- * @return {Object} object with properties schema, root, baseId
- */
-function resolveSchema(root, ref) {
- /* jshint validthis: true */
- var p = URI.parse(ref)
- , refPath = _getFullPath(p)
- , baseId = getFullPath(this._getId(root.schema));
- if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
- var id = normalizeId(refPath);
- var refVal = this._refs[id];
- if (typeof refVal == 'string') {
- return resolveRecursive.call(this, root, refVal, p);
- } else if (refVal instanceof SchemaObject) {
- if (!refVal.validate) this._compile(refVal);
- root = refVal;
- } else {
- refVal = this._schemas[id];
- if (refVal instanceof SchemaObject) {
- if (!refVal.validate) this._compile(refVal);
- if (id == normalizeId(ref))
- return { schema: refVal, root: root, baseId: baseId };
- root = refVal;
- } else {
- return;
- }
- }
- if (!root.schema) return;
- baseId = getFullPath(this._getId(root.schema));
- }
- return getJsonPointer.call(this, p, baseId, root.schema, root);
-}
-
-
-/* @this Ajv */
-function resolveRecursive(root, ref, parsedRef) {
- /* jshint validthis: true */
- var res = resolveSchema.call(this, root, ref);
- if (res) {
- var schema = res.schema;
- var baseId = res.baseId;
- root = res.root;
- var id = this._getId(schema);
- if (id) baseId = resolveUrl(baseId, id);
- return getJsonPointer.call(this, parsedRef, baseId, schema, root);
- }
-}
-
-
-var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
-/* @this Ajv */
-function getJsonPointer(parsedRef, baseId, schema, root) {
- /* jshint validthis: true */
- parsedRef.fragment = parsedRef.fragment || '';
- if (parsedRef.fragment.slice(0,1) != '/') return;
- var parts = parsedRef.fragment.split('/');
-
- for (var i = 1; i < parts.length; i++) {
- var part = parts[i];
- if (part) {
- part = util.unescapeFragment(part);
- schema = schema[part];
- if (schema === undefined) break;
- var id;
- if (!PREVENT_SCOPE_CHANGE[part]) {
- id = this._getId(schema);
- if (id) baseId = resolveUrl(baseId, id);
- if (schema.$ref) {
- var $ref = resolveUrl(baseId, schema.$ref);
- var res = resolveSchema.call(this, root, $ref);
- if (res) {
- schema = res.schema;
- root = res.root;
- baseId = res.baseId;
- }
- }
- }
- }
- }
- if (schema !== undefined && schema !== root.schema)
- return { schema: schema, root: root, baseId: baseId };
-}
-
-
-var SIMPLE_INLINED = util.toHash([
- 'type', 'format', 'pattern',
- 'maxLength', 'minLength',
- 'maxProperties', 'minProperties',
- 'maxItems', 'minItems',
- 'maximum', 'minimum',
- 'uniqueItems', 'multipleOf',
- 'required', 'enum'
-]);
-function inlineRef(schema, limit) {
- if (limit === false) return false;
- if (limit === undefined || limit === true) return checkNoRef(schema);
- else if (limit) return countKeys(schema) <= limit;
-}
-
-
-function checkNoRef(schema) {
- var item;
- if (Array.isArray(schema)) {
- for (var i=0; i<schema.length; i++) {
- item = schema[i];
- if (typeof item == 'object' && !checkNoRef(item)) return false;
- }
- } else {
- for (var key in schema) {
- if (key == '$ref') return false;
- item = schema[key];
- if (typeof item == 'object' && !checkNoRef(item)) return false;
- }
- }
- return true;
-}
-
-
-function countKeys(schema) {
- var count = 0, item;
- if (Array.isArray(schema)) {
- for (var i=0; i<schema.length; i++) {
- item = schema[i];
- if (typeof item == 'object') count += countKeys(item);
- if (count == Infinity) return Infinity;
- }
- } else {
- for (var key in schema) {
- if (key == '$ref') return Infinity;
- if (SIMPLE_INLINED[key]) {
- count++;
- } else {
- item = schema[key];
- if (typeof item == 'object') count += countKeys(item) + 1;
- if (count == Infinity) return Infinity;
- }
- }
- }
- return count;
-}
-
-
-function getFullPath(id, normalize) {
- if (normalize !== false) id = normalizeId(id);
- var p = URI.parse(id);
- return _getFullPath(p);
-}
-
-
-function _getFullPath(p) {
- return URI.serialize(p).split('#')[0] + '#';
-}
-
-
-var TRAILING_SLASH_HASH = /#\/?$/;
-function normalizeId(id) {
- return id ? id.replace(TRAILING_SLASH_HASH, '') : '';
-}
-
-
-function resolveUrl(baseId, id) {
- id = normalizeId(id);
- return URI.resolve(baseId, id);
-}
-
-
-/* @this Ajv */
-function resolveIds(schema) {
- var schemaId = normalizeId(this._getId(schema));
- var baseIds = {'': schemaId};
- var fullPaths = {'': getFullPath(schemaId, false)};
- var localRefs = {};
- var self = this;
-
- traverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
- if (jsonPtr === '') return;
- var id = self._getId(sch);
- var baseId = baseIds[parentJsonPtr];
- var fullPath = fullPaths[parentJsonPtr] + '/' + parentKeyword;
- if (keyIndex !== undefined)
- fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util.escapeFragment(keyIndex));
-
- if (typeof id == 'string') {
- id = baseId = normalizeId(baseId ? URI.resolve(baseId, id) : id);
-
- var refVal = self._refs[id];
- if (typeof refVal == 'string') refVal = self._refs[refVal];
- if (refVal && refVal.schema) {
- if (!equal(sch, refVal.schema))
- throw new Error('id "' + id + '" resolves to more than one schema');
- } else if (id != normalizeId(fullPath)) {
- if (id[0] == '#') {
- if (localRefs[id] && !equal(sch, localRefs[id]))
- throw new Error('id "' + id + '" resolves to more than one schema');
- localRefs[id] = sch;
- } else {
- self._refs[id] = fullPath;
- }
- }
- }
- baseIds[jsonPtr] = baseId;
- fullPaths[jsonPtr] = fullPath;
- });
-
- return localRefs;
-}
diff --git a/node_modules/ajv/lib/compile/rules.js b/node_modules/ajv/lib/compile/rules.js
deleted file mode 100644
index 08b25ae..0000000
--- a/node_modules/ajv/lib/compile/rules.js
+++ /dev/null
@@ -1,66 +0,0 @@
-'use strict';
-
-var ruleModules = require('../dotjs')
- , toHash = require('./util').toHash;
-
-module.exports = function rules() {
- var RULES = [
- { type: 'number',
- rules: [ { 'maximum': ['exclusiveMaximum'] },
- { 'minimum': ['exclusiveMinimum'] }, 'multipleOf', 'format'] },
- { type: 'string',
- rules: [ 'maxLength', 'minLength', 'pattern', 'format' ] },
- { type: 'array',
- rules: [ 'maxItems', 'minItems', 'items', 'contains', 'uniqueItems' ] },
- { type: 'object',
- rules: [ 'maxProperties', 'minProperties', 'required', 'dependencies', 'propertyNames',
- { 'properties': ['additionalProperties', 'patternProperties'] } ] },
- { rules: [ '$ref', 'const', 'enum', 'not', 'anyOf', 'oneOf', 'allOf', 'if' ] }
- ];
-
- var ALL = [ 'type', '$comment' ];
- var KEYWORDS = [
- '$schema', '$id', 'id', '$data', '$async', 'title',
- 'description', 'default', 'definitions',
- 'examples', 'readOnly', 'writeOnly',
- 'contentMediaType', 'contentEncoding',
- 'additionalItems', 'then', 'else'
- ];
- var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
- RULES.all = toHash(ALL);
- RULES.types = toHash(TYPES);
-
- RULES.forEach(function (group) {
- group.rules = group.rules.map(function (keyword) {
- var implKeywords;
- if (typeof keyword == 'object') {
- var key = Object.keys(keyword)[0];
- implKeywords = keyword[key];
- keyword = key;
- implKeywords.forEach(function (k) {
- ALL.push(k);
- RULES.all[k] = true;
- });
- }
- ALL.push(keyword);
- var rule = RULES.all[keyword] = {
- keyword: keyword,
- code: ruleModules[keyword],
- implements: implKeywords
- };
- return rule;
- });
-
- RULES.all.$comment = {
- keyword: '$comment',
- code: ruleModules.$comment
- };
-
- if (group.type) RULES.types[group.type] = group;
- });
-
- RULES.keywords = toHash(ALL.concat(KEYWORDS));
- RULES.custom = {};
-
- return RULES;
-};
diff --git a/node_modules/ajv/lib/compile/schema_obj.js b/node_modules/ajv/lib/compile/schema_obj.js
deleted file mode 100644
index e7903b0..0000000
--- a/node_modules/ajv/lib/compile/schema_obj.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var util = require('./util');
-
-module.exports = SchemaObject;
-
-function SchemaObject(obj) {
- util.copy(obj, this);
-}
diff --git a/node_modules/ajv/lib/compile/ucs2length.js b/node_modules/ajv/lib/compile/ucs2length.js
deleted file mode 100644
index d193fb1..0000000
--- a/node_modules/ajv/lib/compile/ucs2length.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-// https://mathiasbynens.be/notes/javascript-encoding
-// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
-module.exports = function ucs2length(str) {
- var length = 0
- , len = str.length
- , pos = 0
- , value;
- while (pos < len) {
- length++;
- value = str.charCodeAt(pos++);
- if (value >= 0xD800 && value <= 0xDBFF && pos < len) {
- // high surrogate, and there is a next character
- value = str.charCodeAt(pos);
- if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate
- }
- }
- return length;
-};
diff --git a/node_modules/ajv/lib/compile/util.js b/node_modules/ajv/lib/compile/util.js
deleted file mode 100644
index 0efa001..0000000
--- a/node_modules/ajv/lib/compile/util.js
+++ /dev/null
@@ -1,274 +0,0 @@
-'use strict';
-
-
-module.exports = {
- copy: copy,
- checkDataType: checkDataType,
- checkDataTypes: checkDataTypes,
- coerceToTypes: coerceToTypes,
- toHash: toHash,
- getProperty: getProperty,
- escapeQuotes: escapeQuotes,
- equal: require('fast-deep-equal'),
- ucs2length: require('./ucs2length'),
- varOccurences: varOccurences,
- varReplace: varReplace,
- cleanUpCode: cleanUpCode,
- finalCleanUpCode: finalCleanUpCode,
- schemaHasRules: schemaHasRules,
- schemaHasRulesExcept: schemaHasRulesExcept,
- schemaUnknownRules: schemaUnknownRules,
- toQuotedString: toQuotedString,
- getPathExpr: getPathExpr,
- getPath: getPath,
- getData: getData,
- unescapeFragment: unescapeFragment,
- unescapeJsonPointer: unescapeJsonPointer,
- escapeFragment: escapeFragment,
- escapeJsonPointer: escapeJsonPointer
-};
-
-
-function copy(o, to) {
- to = to || {};
- for (var key in o) to[key] = o[key];
- return to;
-}
-
-
-function checkDataType(dataType, data, negate) {
- var EQUAL = negate ? ' !== ' : ' === '
- , AND = negate ? ' || ' : ' && '
- , OK = negate ? '!' : ''
- , NOT = negate ? '' : '!';
- switch (dataType) {
- case 'null': return data + EQUAL + 'null';
- case 'array': return OK + 'Array.isArray(' + data + ')';
- case 'object': return '(' + OK + data + AND +
- 'typeof ' + data + EQUAL + '"object"' + AND +
- NOT + 'Array.isArray(' + data + '))';
- case 'integer': return '(typeof ' + data + EQUAL + '"number"' + AND +
- NOT + '(' + data + ' % 1)' +
- AND + data + EQUAL + data + ')';
- default: return 'typeof ' + data + EQUAL + '"' + dataType + '"';
- }
-}
-
-
-function checkDataTypes(dataTypes, data) {
- switch (dataTypes.length) {
- case 1: return checkDataType(dataTypes[0], data, true);
- default:
- var code = '';
- var types = toHash(dataTypes);
- if (types.array && types.object) {
- code = types.null ? '(': '(!' + data + ' || ';
- code += 'typeof ' + data + ' !== "object")';
- delete types.null;
- delete types.array;
- delete types.object;
- }
- if (types.number) delete types.integer;
- for (var t in types)
- code += (code ? ' && ' : '' ) + checkDataType(t, data, true);
-
- return code;
- }
-}
-
-
-var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);
-function coerceToTypes(optionCoerceTypes, dataTypes) {
- if (Array.isArray(dataTypes)) {
- var types = [];
- for (var i=0; i<dataTypes.length; i++) {
- var t = dataTypes[i];
- if (COERCE_TO_TYPES[t]) types[types.length] = t;
- else if (optionCoerceTypes === 'array' && t === 'array') types[types.length] = t;
- }
- if (types.length) return types;
- } else if (COERCE_TO_TYPES[dataTypes]) {
- return [dataTypes];
- } else if (optionCoerceTypes === 'array' && dataTypes === 'array') {
- return ['array'];
- }
-}
-
-
-function toHash(arr) {
- var hash = {};
- for (var i=0; i<arr.length; i++) hash[arr[i]] = true;
- return hash;
-}
-
-
-var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
-var SINGLE_QUOTE = /'|\\/g;
-function getProperty(key) {
- return typeof key == 'number'
- ? '[' + key + ']'
- : IDENTIFIER.test(key)
- ? '.' + key
- : "['" + escapeQuotes(key) + "']";
-}
-
-
-function escapeQuotes(str) {
- return str.replace(SINGLE_QUOTE, '\\$&')
- .replace(/\n/g, '\\n')
- .replace(/\r/g, '\\r')
- .replace(/\f/g, '\\f')
- .replace(/\t/g, '\\t');
-}
-
-
-function varOccurences(str, dataVar) {
- dataVar += '[^0-9]';
- var matches = str.match(new RegExp(dataVar, 'g'));
- return matches ? matches.length : 0;
-}
-
-
-function varReplace(str, dataVar, expr) {
- dataVar += '([^0-9])';
- expr = expr.replace(/\$/g, '$$$$');
- return str.replace(new RegExp(dataVar, 'g'), expr + '$1');
-}
-
-
-var EMPTY_ELSE = /else\s*{\s*}/g
- , EMPTY_IF_NO_ELSE = /if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g
- , EMPTY_IF_WITH_ELSE = /if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g;
-function cleanUpCode(out) {
- return out.replace(EMPTY_ELSE, '')
- .replace(EMPTY_IF_NO_ELSE, '')
- .replace(EMPTY_IF_WITH_ELSE, 'if (!($1))');
-}
-
-
-var ERRORS_REGEXP = /[^v.]errors/g
- , REMOVE_ERRORS = /var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g
- , REMOVE_ERRORS_ASYNC = /var errors = 0;|var vErrors = null;/g
- , RETURN_VALID = 'return errors === 0;'
- , RETURN_TRUE = 'validate.errors = null; return true;'
- , RETURN_ASYNC = /if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/
- , RETURN_DATA_ASYNC = 'return data;'
- , ROOTDATA_REGEXP = /[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g
- , REMOVE_ROOTDATA = /if \(rootData === undefined\) rootData = data;/;
-
-function finalCleanUpCode(out, async) {
- var matches = out.match(ERRORS_REGEXP);
- if (matches && matches.length == 2) {
- out = async
- ? out.replace(REMOVE_ERRORS_ASYNC, '')
- .replace(RETURN_ASYNC, RETURN_DATA_ASYNC)
- : out.replace(REMOVE_ERRORS, '')
- .replace(RETURN_VALID, RETURN_TRUE);
- }
-
- matches = out.match(ROOTDATA_REGEXP);
- if (!matches || matches.length !== 3) return out;
- return out.replace(REMOVE_ROOTDATA, '');
-}
-
-
-function schemaHasRules(schema, rules) {
- if (typeof schema == 'boolean') return !schema;
- for (var key in schema) if (rules[key]) return true;
-}
-
-
-function schemaHasRulesExcept(schema, rules, exceptKeyword) {
- if (typeof schema == 'boolean') return !schema && exceptKeyword != 'not';
- for (var key in schema) if (key != exceptKeyword && rules[key]) return true;
-}
-
-
-function schemaUnknownRules(schema, rules) {
- if (typeof schema == 'boolean') return;
- for (var key in schema) if (!rules[key]) return key;
-}
-
-
-function toQuotedString(str) {
- return '\'' + escapeQuotes(str) + '\'';
-}
-
-
-function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
- var path = jsonPointers // false by default
- ? '\'/\' + ' + expr + (isNumber ? '' : '.replace(/~/g, \'~0\').replace(/\\//g, \'~1\')')
- : (isNumber ? '\'[\' + ' + expr + ' + \']\'' : '\'[\\\'\' + ' + expr + ' + \'\\\']\'');
- return joinPaths(currentPath, path);
-}
-
-
-function getPath(currentPath, prop, jsonPointers) {
- var path = jsonPointers // false by default
- ? toQuotedString('/' + escapeJsonPointer(prop))
- : toQuotedString(getProperty(prop));
- return joinPaths(currentPath, path);
-}
-
-
-var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
-var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
-function getData($data, lvl, paths) {
- var up, jsonPointer, data, matches;
- if ($data === '') return 'rootData';
- if ($data[0] == '/') {
- if (!JSON_POINTER.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
- jsonPointer = $data;
- data = 'rootData';
- } else {
- matches = $data.match(RELATIVE_JSON_POINTER);
- if (!matches) throw new Error('Invalid JSON-pointer: ' + $data);
- up = +matches[1];
- jsonPointer = matches[2];
- if (jsonPointer == '#') {
- if (up >= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl);
- return paths[lvl - up];
- }
-
- if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl);
- data = 'data' + ((lvl - up) || '');
- if (!jsonPointer) return data;
- }
-
- var expr = data;
- var segments = jsonPointer.split('/');
- for (var i=0; i<segments.length; i++) {
- var segment = segments[i];
- if (segment) {
- data += getProperty(unescapeJsonPointer(segment));
- expr += ' && ' + data;
- }
- }
- return expr;
-}
-
-
-function joinPaths (a, b) {
- if (a == '""') return b;
- return (a + ' + ' + b).replace(/' \+ '/g, '');
-}
-
-
-function unescapeFragment(str) {
- return unescapeJsonPointer(decodeURIComponent(str));
-}
-
-
-function escapeFragment(str) {
- return encodeURIComponent(escapeJsonPointer(str));
-}
-
-
-function escapeJsonPointer(str) {
- return str.replace(/~/g, '~0').replace(/\//g, '~1');
-}
-
-
-function unescapeJsonPointer(str) {
- return str.replace(/~1/g, '/').replace(/~0/g, '~');
-}
diff --git a/node_modules/ajv/lib/data.js b/node_modules/ajv/lib/data.js
deleted file mode 100644
index 5f1ad85..0000000
--- a/node_modules/ajv/lib/data.js
+++ /dev/null
@@ -1,49 +0,0 @@
-'use strict';
-
-var KEYWORDS = [
- 'multipleOf',
- 'maximum',
- 'exclusiveMaximum',
- 'minimum',
- 'exclusiveMinimum',
- 'maxLength',
- 'minLength',
- 'pattern',
- 'additionalItems',
- 'maxItems',
- 'minItems',
- 'uniqueItems',
- 'maxProperties',
- 'minProperties',
- 'required',
- 'additionalProperties',
- 'enum',
- 'format',
- 'const'
-];
-
-module.exports = function (metaSchema, keywordsJsonPointers) {
- for (var i=0; i<keywordsJsonPointers.length; i++) {
- metaSchema = JSON.parse(JSON.stringify(metaSchema));
- var segments = keywordsJsonPointers[i].split('/');
- var keywords = metaSchema;
- var j;
- for (j=1; j<segments.length; j++)
- keywords = keywords[segments[j]];
-
- for (j=0; j<KEYWORDS.length; j++) {
- var key = KEYWORDS[j];
- var schema = keywords[key];
- if (schema) {
- keywords[key] = {
- anyOf: [
- schema,
- { $ref: 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#' }
- ]
- };
- }
- }
- }
-
- return metaSchema;
-};
diff --git a/node_modules/ajv/lib/definition_schema.js b/node_modules/ajv/lib/definition_schema.js
deleted file mode 100644
index e5f6b91..0000000
--- a/node_modules/ajv/lib/definition_schema.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-
-var metaSchema = require('./refs/json-schema-draft-07.json');
-
-module.exports = {
- $id: 'https://github.com/epoberezkin/ajv/blob/master/lib/definition_schema.js',
- definitions: {
- simpleTypes: metaSchema.definitions.simpleTypes
- },
- type: 'object',
- dependencies: {
- schema: ['validate'],
- $data: ['validate'],
- statements: ['inline'],
- valid: {not: {required: ['macro']}}
- },
- properties: {
- type: metaSchema.properties.type,
- schema: {type: 'boolean'},
- statements: {type: 'boolean'},
- dependencies: {
- type: 'array',
- items: {type: 'string'}
- },
- metaSchema: {type: 'object'},
- modifying: {type: 'boolean'},
- valid: {type: 'boolean'},
- $data: {type: 'boolean'},
- async: {type: 'boolean'},
- errors: {
- anyOf: [
- {type: 'boolean'},
- {const: 'full'}
- ]
- }
- }
-};
diff --git a/node_modules/ajv/lib/dot/_limit.jst b/node_modules/ajv/lib/dot/_limit.jst
deleted file mode 100644
index e10806f..0000000
--- a/node_modules/ajv/lib/dot/_limit.jst
+++ /dev/null
@@ -1,104 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{## def.setExclusiveLimit:
- $exclusive = true;
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
-#}}
-
-{{
- var $isMax = $keyword == 'maximum'
- , $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum'
- , $schemaExcl = it.schema[$exclusiveKeyword]
- , $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data
- , $op = $isMax ? '<' : '>'
- , $notOp = $isMax ? '>' : '<'
- , $errorKeyword = undefined;
-}}
-
-{{? $isDataExcl }}
- {{
- var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr)
- , $exclusive = 'exclusive' + $lvl
- , $exclType = 'exclType' + $lvl
- , $exclIsNumber = 'exclIsNumber' + $lvl
- , $opExpr = 'op' + $lvl
- , $opStr = '\' + ' + $opExpr + ' + \'';
- }}
- var schemaExcl{{=$lvl}} = {{=$schemaValueExcl}};
- {{ $schemaValueExcl = 'schemaExcl' + $lvl; }}
-
- var {{=$exclusive}};
- var {{=$exclType}} = typeof {{=$schemaValueExcl}};
- if ({{=$exclType}} != 'boolean' && {{=$exclType}} != 'undefined' && {{=$exclType}} != 'number') {
- {{ var $errorKeyword = $exclusiveKeyword; }}
- {{# def.error:'_exclusiveLimit' }}
- } else if ({{# def.$dataNotType:'number' }}
- {{=$exclType}} == 'number'
- ? (
- ({{=$exclusive}} = {{=$schemaValue}} === undefined || {{=$schemaValueExcl}} {{=$op}}= {{=$schemaValue}})
- ? {{=$data}} {{=$notOp}}= {{=$schemaValueExcl}}
- : {{=$data}} {{=$notOp}} {{=$schemaValue}}
- )
- : (
- ({{=$exclusive}} = {{=$schemaValueExcl}} === true)
- ? {{=$data}} {{=$notOp}}= {{=$schemaValue}}
- : {{=$data}} {{=$notOp}} {{=$schemaValue}}
- )
- || {{=$data}} !== {{=$data}}) {
- var op{{=$lvl}} = {{=$exclusive}} ? '{{=$op}}' : '{{=$op}}=';
- {{
- if ($schema === undefined) {
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
- $schemaValue = $schemaValueExcl;
- $isData = $isDataExcl;
- }
- }}
-{{??}}
- {{
- var $exclIsNumber = typeof $schemaExcl == 'number'
- , $opStr = $op; /*used in error*/
- }}
-
- {{? $exclIsNumber && $isData }}
- {{ var $opExpr = '\'' + $opStr + '\''; /*used in error*/ }}
- if ({{# def.$dataNotType:'number' }}
- ( {{=$schemaValue}} === undefined
- || {{=$schemaExcl}} {{=$op}}= {{=$schemaValue}}
- ? {{=$data}} {{=$notOp}}= {{=$schemaExcl}}
- : {{=$data}} {{=$notOp}} {{=$schemaValue}} )
- || {{=$data}} !== {{=$data}}) {
- {{??}}
- {{
- if ($exclIsNumber && $schema === undefined) {
- {{# def.setExclusiveLimit }}
- $schemaValue = $schemaExcl;
- $notOp += '=';
- } else {
- if ($exclIsNumber)
- $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema);
-
- if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) {
- {{# def.setExclusiveLimit }}
- $notOp += '=';
- } else {
- $exclusive = false;
- $opStr += '=';
- }
- }
-
- var $opExpr = '\'' + $opStr + '\''; /*used in error*/
- }}
-
- if ({{# def.$dataNotType:'number' }}
- {{=$data}} {{=$notOp}} {{=$schemaValue}}
- || {{=$data}} !== {{=$data}}) {
- {{?}}
-{{?}}
- {{ $errorKeyword = $errorKeyword || $keyword; }}
- {{# def.error:'_limit' }}
- } {{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/_limitItems.jst b/node_modules/ajv/lib/dot/_limitItems.jst
deleted file mode 100644
index a3e078e..0000000
--- a/node_modules/ajv/lib/dot/_limitItems.jst
+++ /dev/null
@@ -1,10 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{ var $op = $keyword == 'maxItems' ? '>' : '<'; }}
-if ({{# def.$dataNotType:'number' }} {{=$data}}.length {{=$op}} {{=$schemaValue}}) {
- {{ var $errorKeyword = $keyword; }}
- {{# def.error:'_limitItems' }}
-} {{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/_limitLength.jst b/node_modules/ajv/lib/dot/_limitLength.jst
deleted file mode 100644
index cfc8dbb..0000000
--- a/node_modules/ajv/lib/dot/_limitLength.jst
+++ /dev/null
@@ -1,10 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{ var $op = $keyword == 'maxLength' ? '>' : '<'; }}
-if ({{# def.$dataNotType:'number' }} {{# def.strLength }} {{=$op}} {{=$schemaValue}}) {
- {{ var $errorKeyword = $keyword; }}
- {{# def.error:'_limitLength' }}
-} {{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/_limitProperties.jst b/node_modules/ajv/lib/dot/_limitProperties.jst
deleted file mode 100644
index da7ea77..0000000
--- a/node_modules/ajv/lib/dot/_limitProperties.jst
+++ /dev/null
@@ -1,10 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{ var $op = $keyword == 'maxProperties' ? '>' : '<'; }}
-if ({{# def.$dataNotType:'number' }} Object.keys({{=$data}}).length {{=$op}} {{=$schemaValue}}) {
- {{ var $errorKeyword = $keyword; }}
- {{# def.error:'_limitProperties' }}
-} {{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/allOf.jst b/node_modules/ajv/lib/dot/allOf.jst
deleted file mode 100644
index 4c28363..0000000
--- a/node_modules/ajv/lib/dot/allOf.jst
+++ /dev/null
@@ -1,34 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-{{
- var $currentBaseId = $it.baseId
- , $allSchemasEmpty = true;
-}}
-
-{{~ $schema:$sch:$i }}
- {{? {{# def.nonEmptySchema:$sch }} }}
- {{
- $allSchemasEmpty = false;
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- }}
-
- {{# def.insertSubschemaCode }}
-
- {{# def.ifResultValid }}
- {{?}}
-{{~}}
-
-{{? $breakOnError }}
- {{? $allSchemasEmpty }}
- if (true) {
- {{??}}
- {{= $closingBraces.slice(0,-1) }}
- {{?}}
-{{?}}
-
-{{# def.cleanUp }}
diff --git a/node_modules/ajv/lib/dot/anyOf.jst b/node_modules/ajv/lib/dot/anyOf.jst
deleted file mode 100644
index 086cf2b..0000000
--- a/node_modules/ajv/lib/dot/anyOf.jst
+++ /dev/null
@@ -1,48 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-{{
- var $noEmptySchema = $schema.every(function($sch) {
- return {{# def.nonEmptySchema:$sch }};
- });
-}}
-{{? $noEmptySchema }}
- {{ var $currentBaseId = $it.baseId; }}
- var {{=$errs}} = errors;
- var {{=$valid}} = false;
-
- {{# def.setCompositeRule }}
-
- {{~ $schema:$sch:$i }}
- {{
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- }}
-
- {{# def.insertSubschemaCode }}
-
- {{=$valid}} = {{=$valid}} || {{=$nextValid}};
-
- if (!{{=$valid}}) {
- {{ $closingBraces += '}'; }}
- {{~}}
-
- {{# def.resetCompositeRule }}
-
- {{= $closingBraces }}
-
- if (!{{=$valid}}) {
- {{# def.extraError:'anyOf' }}
- } else {
- {{# def.resetErrors }}
- {{? it.opts.allErrors }} } {{?}}
-
- {{# def.cleanUp }}
-{{??}}
- {{? $breakOnError }}
- if (true) {
- {{?}}
-{{?}}
diff --git a/node_modules/ajv/lib/dot/coerce.def b/node_modules/ajv/lib/dot/coerce.def
deleted file mode 100644
index 86e0e18..0000000
--- a/node_modules/ajv/lib/dot/coerce.def
+++ /dev/null
@@ -1,61 +0,0 @@
-{{## def.coerceType:
- {{
- var $dataType = 'dataType' + $lvl
- , $coerced = 'coerced' + $lvl;
- }}
- var {{=$dataType}} = typeof {{=$data}};
- {{? it.opts.coerceTypes == 'array'}}
- if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array';
- {{?}}
-
- var {{=$coerced}} = undefined;
-
- {{ var $bracesCoercion = ''; }}
- {{~ $coerceToTypes:$type:$i }}
- {{? $i }}
- if ({{=$coerced}} === undefined) {
- {{ $bracesCoercion += '}'; }}
- {{?}}
-
- {{? it.opts.coerceTypes == 'array' && $type != 'array' }}
- if ({{=$dataType}} == 'array' && {{=$data}}.length == 1) {
- {{=$coerced}} = {{=$data}} = {{=$data}}[0];
- {{=$dataType}} = typeof {{=$data}};
- /*if ({{=$dataType}} == 'object' && Array.isArray({{=$data}})) {{=$dataType}} = 'array';*/
- }
- {{?}}
-
- {{? $type == 'string' }}
- if ({{=$dataType}} == 'number' || {{=$dataType}} == 'boolean')
- {{=$coerced}} = '' + {{=$data}};
- else if ({{=$data}} === null) {{=$coerced}} = '';
- {{?? $type == 'number' || $type == 'integer' }}
- if ({{=$dataType}} == 'boolean' || {{=$data}} === null
- || ({{=$dataType}} == 'string' && {{=$data}} && {{=$data}} == +{{=$data}}
- {{? $type == 'integer' }} && !({{=$data}} % 1){{?}}))
- {{=$coerced}} = +{{=$data}};
- {{?? $type == 'boolean' }}
- if ({{=$data}} === 'false' || {{=$data}} === 0 || {{=$data}} === null)
- {{=$coerced}} = false;
- else if ({{=$data}} === 'true' || {{=$data}} === 1)
- {{=$coerced}} = true;
- {{?? $type == 'null' }}
- if ({{=$data}} === '' || {{=$data}} === 0 || {{=$data}} === false)
- {{=$coerced}} = null;
- {{?? it.opts.coerceTypes == 'array' && $type == 'array' }}
- if ({{=$dataType}} == 'string' || {{=$dataType}} == 'number' || {{=$dataType}} == 'boolean' || {{=$data}} == null)
- {{=$coerced}} = [{{=$data}}];
- {{?}}
- {{~}}
-
- {{= $bracesCoercion }}
-
- if ({{=$coerced}} === undefined) {
- {{# def.error:'type' }}
- } else {
- {{# def.setParentData }}
- {{=$data}} = {{=$coerced}};
- {{? !$dataLvl }}if ({{=$parentData}} !== undefined){{?}}
- {{=$parentData}}[{{=$parentDataProperty}}] = {{=$coerced}};
- }
-#}}
diff --git a/node_modules/ajv/lib/dot/comment.jst b/node_modules/ajv/lib/dot/comment.jst
deleted file mode 100644
index f959150..0000000
--- a/node_modules/ajv/lib/dot/comment.jst
+++ /dev/null
@@ -1,9 +0,0 @@
-{{# def.definitions }}
-{{# def.setupKeyword }}
-
-{{ var $comment = it.util.toQuotedString($schema); }}
-{{? it.opts.$comment === true }}
- console.log({{=$comment}});
-{{?? typeof it.opts.$comment == 'function' }}
- self._opts.$comment({{=$comment}}, {{=it.util.toQuotedString($errSchemaPath)}}, validate.root.schema);
-{{?}}
diff --git a/node_modules/ajv/lib/dot/const.jst b/node_modules/ajv/lib/dot/const.jst
deleted file mode 100644
index 2aa2298..0000000
--- a/node_modules/ajv/lib/dot/const.jst
+++ /dev/null
@@ -1,11 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{? !$isData }}
- var schema{{=$lvl}} = validate.schema{{=$schemaPath}};
-{{?}}
-var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}});
-{{# def.checkError:'const' }}
-{{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/contains.jst b/node_modules/ajv/lib/dot/contains.jst
deleted file mode 100644
index 925d2c8..0000000
--- a/node_modules/ajv/lib/dot/contains.jst
+++ /dev/null
@@ -1,57 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-
-{{
- var $idx = 'i' + $lvl
- , $dataNxt = $it.dataLevel = it.dataLevel + 1
- , $nextData = 'data' + $dataNxt
- , $currentBaseId = it.baseId
- , $nonEmptySchema = {{# def.nonEmptySchema:$schema }};
-}}
-
-var {{=$errs}} = errors;
-var {{=$valid}};
-
-{{? $nonEmptySchema }}
- {{# def.setCompositeRule }}
-
- {{
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- }}
-
- var {{=$nextValid}} = false;
-
- for (var {{=$idx}} = 0; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) {
- {{
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- }}
-
- {{# def.generateSubschemaCode }}
- {{# def.optimizeValidate }}
-
- if ({{=$nextValid}}) break;
- }
-
- {{# def.resetCompositeRule }}
- {{= $closingBraces }}
-
- if (!{{=$nextValid}}) {
-{{??}}
- if ({{=$data}}.length == 0) {
-{{?}}
-
- {{# def.error:'contains' }}
- } else {
- {{? $nonEmptySchema }}
- {{# def.resetErrors }}
- {{?}}
- {{? it.opts.allErrors }} } {{?}}
-
-{{# def.cleanUp }}
diff --git a/node_modules/ajv/lib/dot/custom.jst b/node_modules/ajv/lib/dot/custom.jst
deleted file mode 100644
index d30588f..0000000
--- a/node_modules/ajv/lib/dot/custom.jst
+++ /dev/null
@@ -1,191 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{
- var $rule = this
- , $definition = 'definition' + $lvl
- , $rDef = $rule.definition
- , $closingBraces = '';
- var $validate = $rDef.validate;
- var $compile, $inline, $macro, $ruleValidate, $validateCode;
-}}
-
-{{? $isData && $rDef.$data }}
- {{
- $validateCode = 'keywordValidate' + $lvl;
- var $validateSchema = $rDef.validateSchema;
- }}
- var {{=$definition}} = RULES.custom['{{=$keyword}}'].definition;
- var {{=$validateCode}} = {{=$definition}}.validate;
-{{??}}
- {{
- $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);
- if (!$ruleValidate) return;
- $schemaValue = 'validate.schema' + $schemaPath;
- $validateCode = $ruleValidate.code;
- $compile = $rDef.compile;
- $inline = $rDef.inline;
- $macro = $rDef.macro;
- }}
-{{?}}
-
-{{
- var $ruleErrs = $validateCode + '.errors'
- , $i = 'i' + $lvl
- , $ruleErr = 'ruleErr' + $lvl
- , $asyncKeyword = $rDef.async;
-
- if ($asyncKeyword && !it.async)
- throw new Error('async keyword in sync schema');
-}}
-
-
-{{? !($inline || $macro) }}{{=$ruleErrs}} = null;{{?}}
-var {{=$errs}} = errors;
-var {{=$valid}};
-
-{{## def.callRuleValidate:
- {{=$validateCode}}.call(
- {{? it.opts.passContext }}this{{??}}self{{?}}
- {{? $compile || $rDef.schema === false }}
- , {{=$data}}
- {{??}}
- , {{=$schemaValue}}
- , {{=$data}}
- , validate.schema{{=it.schemaPath}}
- {{?}}
- , {{# def.dataPath }}
- {{# def.passParentData }}
- , rootData
- )
-#}}
-
-{{## def.extendErrors:_inline:
- for (var {{=$i}}={{=$errs}}; {{=$i}}<errors; {{=$i}}++) {
- var {{=$ruleErr}} = vErrors[{{=$i}}];
- if ({{=$ruleErr}}.dataPath === undefined)
- {{=$ruleErr}}.dataPath = (dataPath || '') + {{= it.errorPath }};
- {{# _inline ? 'if (\{\{=$ruleErr\}\}.schemaPath === undefined) {' : '' }}
- {{=$ruleErr}}.schemaPath = "{{=$errSchemaPath}}";
- {{# _inline ? '}' : '' }}
- {{? it.opts.verbose }}
- {{=$ruleErr}}.schema = {{=$schemaValue}};
- {{=$ruleErr}}.data = {{=$data}};
- {{?}}
- }
-#}}
-
-
-{{? $isData && $rDef.$data }}
- {{ $closingBraces += '}'; }}
- if ({{=$schemaValue}} === undefined) {
- {{=$valid}} = true;
- } else {
- {{? $validateSchema }}
- {{ $closingBraces += '}'; }}
- {{=$valid}} = {{=$definition}}.validateSchema({{=$schemaValue}});
- if ({{=$valid}}) {
- {{?}}
-{{?}}
-
-{{? $inline }}
- {{? $rDef.statements }}
- {{= $ruleValidate.validate }}
- {{??}}
- {{=$valid}} = {{= $ruleValidate.validate }};
- {{?}}
-{{?? $macro }}
- {{# def.setupNextLevel }}
- {{
- $it.schema = $ruleValidate.validate;
- $it.schemaPath = '';
- }}
- {{# def.setCompositeRule }}
- {{ var $code = it.validate($it).replace(/validate\.schema/g, $validateCode); }}
- {{# def.resetCompositeRule }}
- {{= $code }}
-{{??}}
- {{# def.beginDefOut}}
- {{# def.callRuleValidate }}
- {{# def.storeDefOut:def_callRuleValidate }}
-
- {{? $rDef.errors === false }}
- {{=$valid}} = {{? $asyncKeyword }}await {{?}}{{= def_callRuleValidate }};
- {{??}}
- {{? $asyncKeyword }}
- {{ $ruleErrs = 'customErrors' + $lvl; }}
- var {{=$ruleErrs}} = null;
- try {
- {{=$valid}} = await {{= def_callRuleValidate }};
- } catch (e) {
- {{=$valid}} = false;
- if (e instanceof ValidationError) {{=$ruleErrs}} = e.errors;
- else throw e;
- }
- {{??}}
- {{=$ruleErrs}} = null;
- {{=$valid}} = {{= def_callRuleValidate }};
- {{?}}
- {{?}}
-{{?}}
-
-{{? $rDef.modifying }}
- if ({{=$parentData}}) {{=$data}} = {{=$parentData}}[{{=$parentDataProperty}}];
-{{?}}
-
-{{= $closingBraces }}
-
-{{## def.notValidationResult:
- {{? $rDef.valid === undefined }}
- !{{? $macro }}{{=$nextValid}}{{??}}{{=$valid}}{{?}}
- {{??}}
- {{= !$rDef.valid }}
- {{?}}
-#}}
-
-{{? $rDef.valid }}
- {{? $breakOnError }} if (true) { {{?}}
-{{??}}
- if ({{# def.notValidationResult }}) {
- {{ $errorKeyword = $rule.keyword; }}
- {{# def.beginDefOut}}
- {{# def.error:'custom' }}
- {{# def.storeDefOut:def_customError }}
-
- {{? $inline }}
- {{? $rDef.errors }}
- {{? $rDef.errors != 'full' }}
- {{# def.extendErrors:true }}
- {{?}}
- {{??}}
- {{? $rDef.errors === false}}
- {{= def_customError }}
- {{??}}
- if ({{=$errs}} == errors) {
- {{= def_customError }}
- } else {
- {{# def.extendErrors:true }}
- }
- {{?}}
- {{?}}
- {{?? $macro }}
- {{# def.extraError:'custom' }}
- {{??}}
- {{? $rDef.errors === false}}
- {{= def_customError }}
- {{??}}
- if (Array.isArray({{=$ruleErrs}})) {
- if (vErrors === null) vErrors = {{=$ruleErrs}};
- else vErrors = vErrors.concat({{=$ruleErrs}});
- errors = vErrors.length;
- {{# def.extendErrors:false }}
- } else {
- {{= def_customError }}
- }
- {{?}}
- {{?}}
-
- } {{? $breakOnError }} else { {{?}}
-{{?}}
diff --git a/node_modules/ajv/lib/dot/defaults.def b/node_modules/ajv/lib/dot/defaults.def
deleted file mode 100644
index a844cf2..0000000
--- a/node_modules/ajv/lib/dot/defaults.def
+++ /dev/null
@@ -1,47 +0,0 @@
-{{## def.assignDefault:
- {{? it.compositeRule }}
- {{
- if (it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored for: ' + $passData;
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- }}
- {{??}}
- if ({{=$passData}} === undefined
- {{? it.opts.useDefaults == 'empty' }}
- || {{=$passData}} === null
- || {{=$passData}} === ''
- {{?}}
- )
- {{=$passData}} = {{? it.opts.useDefaults == 'shared' }}
- {{= it.useDefault($sch.default) }}
- {{??}}
- {{= JSON.stringify($sch.default) }}
- {{?}};
- {{?}}
-#}}
-
-
-{{## def.defaultProperties:
- {{
- var $schema = it.schema.properties
- , $schemaKeys = Object.keys($schema); }}
- {{~ $schemaKeys:$propertyKey }}
- {{ var $sch = $schema[$propertyKey]; }}
- {{? $sch.default !== undefined }}
- {{ var $passData = $data + it.util.getProperty($propertyKey); }}
- {{# def.assignDefault }}
- {{?}}
- {{~}}
-#}}
-
-
-{{## def.defaultItems:
- {{~ it.schema.items:$sch:$i }}
- {{? $sch.default !== undefined }}
- {{ var $passData = $data + '[' + $i + ']'; }}
- {{# def.assignDefault }}
- {{?}}
- {{~}}
-#}}
diff --git a/node_modules/ajv/lib/dot/definitions.def b/node_modules/ajv/lib/dot/definitions.def
deleted file mode 100644
index b68e064..0000000
--- a/node_modules/ajv/lib/dot/definitions.def
+++ /dev/null
@@ -1,201 +0,0 @@
-{{## def.setupKeyword:
- {{
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
-
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- }}
-#}}
-
-
-{{## def.setCompositeRule:
- {{
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- }}
-#}}
-
-
-{{## def.resetCompositeRule:
- {{ it.compositeRule = $it.compositeRule = $wasComposite; }}
-#}}
-
-
-{{## def.setupNextLevel:
- {{
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- }}
-#}}
-
-
-{{## def.ifValid:
- {{? $breakOnError }}
- if ({{=$valid}}) {
- {{ $closingBraces += '}'; }}
- {{?}}
-#}}
-
-
-{{## def.ifResultValid:
- {{? $breakOnError }}
- if ({{=$nextValid}}) {
- {{ $closingBraces += '}'; }}
- {{?}}
-#}}
-
-
-{{## def.elseIfValid:
- {{? $breakOnError }}
- {{ $closingBraces += '}'; }}
- else {
- {{?}}
-#}}
-
-
-{{## def.nonEmptySchema:_schema:
- (it.opts.strictKeywords
- ? typeof _schema == 'object' && Object.keys(_schema).length > 0
- : it.util.schemaHasRules(_schema, it.RULES.all))
-#}}
-
-
-{{## def.strLength:
- {{? it.opts.unicode === false }}
- {{=$data}}.length
- {{??}}
- ucs2length({{=$data}})
- {{?}}
-#}}
-
-
-{{## def.willOptimize:
- it.util.varOccurences($code, $nextData) < 2
-#}}
-
-
-{{## def.generateSubschemaCode:
- {{
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- }}
-#}}
-
-
-{{## def.insertSubschemaCode:
- {{= it.validate($it) }}
- {{ $it.baseId = $currentBaseId; }}
-#}}
-
-
-{{## def._optimizeValidate:
- it.util.varReplace($code, $nextData, $passData)
-#}}
-
-
-{{## def.optimizeValidate:
- {{? {{# def.willOptimize}} }}
- {{= {{# def._optimizeValidate }} }}
- {{??}}
- var {{=$nextData}} = {{=$passData}};
- {{= $code }}
- {{?}}
-#}}
-
-
-{{## def.cleanUp: {{ out = it.util.cleanUpCode(out); }} #}}
-
-
-{{## def.finalCleanUp: {{ out = it.util.finalCleanUpCode(out, $async); }} #}}
-
-
-{{## def.$data:
- {{
- var $isData = it.opts.$data && $schema && $schema.$data
- , $schemaValue;
- }}
- {{? $isData }}
- var schema{{=$lvl}} = {{= it.util.getData($schema.$data, $dataLvl, it.dataPathArr) }};
- {{ $schemaValue = 'schema' + $lvl; }}
- {{??}}
- {{ $schemaValue = $schema; }}
- {{?}}
-#}}
-
-
-{{## def.$dataNotType:_type:
- {{?$isData}} ({{=$schemaValue}} !== undefined && typeof {{=$schemaValue}} != _type) || {{?}}
-#}}
-
-
-{{## def.check$dataIsArray:
- if (schema{{=$lvl}} === undefined) {{=$valid}} = true;
- else if (!Array.isArray(schema{{=$lvl}})) {{=$valid}} = false;
- else {
-#}}
-
-
-{{## def.beginDefOut:
- {{
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = '';
- }}
-#}}
-
-
-{{## def.storeDefOut:_variable:
- {{
- var _variable = out;
- out = $$outStack.pop();
- }}
-#}}
-
-
-{{## def.dataPath:(dataPath || ''){{? it.errorPath != '""'}} + {{= it.errorPath }}{{?}}#}}
-
-{{## def.setParentData:
- {{
- var $parentData = $dataLvl ? 'data' + (($dataLvl-1)||'') : 'parentData'
- , $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
- }}
-#}}
-
-{{## def.passParentData:
- {{# def.setParentData }}
- , {{= $parentData }}
- , {{= $parentDataProperty }}
-#}}
-
-
-{{## def.iterateProperties:
- {{? $ownProperties }}
- {{=$dataProperties}} = {{=$dataProperties}} || Object.keys({{=$data}});
- for (var {{=$idx}}=0; {{=$idx}}<{{=$dataProperties}}.length; {{=$idx}}++) {
- var {{=$key}} = {{=$dataProperties}}[{{=$idx}}];
- {{??}}
- for (var {{=$key}} in {{=$data}}) {
- {{?}}
-#}}
-
-
-{{## def.noPropertyInData:
- {{=$useData}} === undefined
- {{? $ownProperties }}
- || !{{# def.isOwnProperty }}
- {{?}}
-#}}
-
-
-{{## def.isOwnProperty:
- Object.prototype.hasOwnProperty.call({{=$data}}, '{{=it.util.escapeQuotes($propertyKey)}}')
-#}}
diff --git a/node_modules/ajv/lib/dot/dependencies.jst b/node_modules/ajv/lib/dot/dependencies.jst
deleted file mode 100644
index c41f334..0000000
--- a/node_modules/ajv/lib/dot/dependencies.jst
+++ /dev/null
@@ -1,80 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.missing }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-
-{{## def.propertyInData:
- {{=$data}}{{= it.util.getProperty($property) }} !== undefined
- {{? $ownProperties }}
- && Object.prototype.hasOwnProperty.call({{=$data}}, '{{=it.util.escapeQuotes($property)}}')
- {{?}}
-#}}
-
-
-{{
- var $schemaDeps = {}
- , $propertyDeps = {}
- , $ownProperties = it.opts.ownProperties;
-
- for ($property in $schema) {
- var $sch = $schema[$property];
- var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
- $deps[$property] = $sch;
- }
-}}
-
-var {{=$errs}} = errors;
-
-{{ var $currentErrorPath = it.errorPath; }}
-
-var missing{{=$lvl}};
-{{ for (var $property in $propertyDeps) { }}
- {{ $deps = $propertyDeps[$property]; }}
- {{? $deps.length }}
- if ({{# def.propertyInData }}
- {{? $breakOnError }}
- && ({{# def.checkMissingProperty:$deps }})) {
- {{# def.errorMissingProperty:'dependencies' }}
- {{??}}
- ) {
- {{~ $deps:$propertyKey }}
- {{# def.allErrorsMissingProperty:'dependencies' }}
- {{~}}
- {{?}}
- } {{# def.elseIfValid }}
- {{?}}
-{{ } }}
-
-{{
- it.errorPath = $currentErrorPath;
- var $currentBaseId = $it.baseId;
-}}
-
-
-{{ for (var $property in $schemaDeps) { }}
- {{ var $sch = $schemaDeps[$property]; }}
- {{? {{# def.nonEmptySchema:$sch }} }}
- {{=$nextValid}} = true;
-
- if ({{# def.propertyInData }}) {
- {{
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + it.util.getProperty($property);
- $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);
- }}
-
- {{# def.insertSubschemaCode }}
- }
-
- {{# def.ifResultValid }}
- {{?}}
-{{ } }}
-
-{{? $breakOnError }}
- {{= $closingBraces }}
- if ({{=$errs}} == errors) {
-{{?}}
-
-{{# def.cleanUp }}
diff --git a/node_modules/ajv/lib/dot/enum.jst b/node_modules/ajv/lib/dot/enum.jst
deleted file mode 100644
index 357c2e8..0000000
--- a/node_modules/ajv/lib/dot/enum.jst
+++ /dev/null
@@ -1,30 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{
- var $i = 'i' + $lvl
- , $vSchema = 'schema' + $lvl;
-}}
-
-{{? !$isData }}
- var {{=$vSchema}} = validate.schema{{=$schemaPath}};
-{{?}}
-var {{=$valid}};
-
-{{?$isData}}{{# def.check$dataIsArray }}{{?}}
-
-{{=$valid}} = false;
-
-for (var {{=$i}}=0; {{=$i}}<{{=$vSchema}}.length; {{=$i}}++)
- if (equal({{=$data}}, {{=$vSchema}}[{{=$i}}])) {
- {{=$valid}} = true;
- break;
- }
-
-{{? $isData }} } {{?}}
-
-{{# def.checkError:'enum' }}
-
-{{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/errors.def b/node_modules/ajv/lib/dot/errors.def
deleted file mode 100644
index 5c5752c..0000000
--- a/node_modules/ajv/lib/dot/errors.def
+++ /dev/null
@@ -1,194 +0,0 @@
-{{# def.definitions }}
-
-{{## def._error:_rule:
- {{ 'istanbul ignore else'; }}
- {{? it.createErrors !== false }}
- {
- keyword: '{{= $errorKeyword || _rule }}'
- , dataPath: (dataPath || '') + {{= it.errorPath }}
- , schemaPath: {{=it.util.toQuotedString($errSchemaPath)}}
- , params: {{# def._errorParams[_rule] }}
- {{? it.opts.messages !== false }}
- , message: {{# def._errorMessages[_rule] }}
- {{?}}
- {{? it.opts.verbose }}
- , schema: {{# def._errorSchemas[_rule] }}
- , parentSchema: validate.schema{{=it.schemaPath}}
- , data: {{=$data}}
- {{?}}
- }
- {{??}}
- {}
- {{?}}
-#}}
-
-
-{{## def._addError:_rule:
- if (vErrors === null) vErrors = [err];
- else vErrors.push(err);
- errors++;
-#}}
-
-
-{{## def.addError:_rule:
- var err = {{# def._error:_rule }};
- {{# def._addError:_rule }}
-#}}
-
-
-{{## def.error:_rule:
- {{# def.beginDefOut}}
- {{# def._error:_rule }}
- {{# def.storeDefOut:__err }}
-
- {{? !it.compositeRule && $breakOnError }}
- {{ 'istanbul ignore if'; }}
- {{? it.async }}
- throw new ValidationError([{{=__err}}]);
- {{??}}
- validate.errors = [{{=__err}}];
- return false;
- {{?}}
- {{??}}
- var err = {{=__err}};
- {{# def._addError:_rule }}
- {{?}}
-#}}
-
-
-{{## def.extraError:_rule:
- {{# def.addError:_rule}}
- {{? !it.compositeRule && $breakOnError }}
- {{ 'istanbul ignore if'; }}
- {{? it.async }}
- throw new ValidationError(vErrors);
- {{??}}
- validate.errors = vErrors;
- return false;
- {{?}}
- {{?}}
-#}}
-
-
-{{## def.checkError:_rule:
- if (!{{=$valid}}) {
- {{# def.error:_rule }}
- }
-#}}
-
-
-{{## def.resetErrors:
- errors = {{=$errs}};
- if (vErrors !== null) {
- if ({{=$errs}}) vErrors.length = {{=$errs}};
- else vErrors = null;
- }
-#}}
-
-
-{{## def.concatSchema:{{?$isData}}' + {{=$schemaValue}} + '{{??}}{{=$schema}}{{?}}#}}
-{{## def.appendSchema:{{?$isData}}' + {{=$schemaValue}}{{??}}{{=$schemaValue}}'{{?}}#}}
-{{## def.concatSchemaEQ:{{?$isData}}' + {{=$schemaValue}} + '{{??}}{{=it.util.escapeQuotes($schema)}}{{?}}#}}
-
-{{## def._errorMessages = {
- 'false schema': "'boolean schema is false'",
- $ref: "'can\\\'t resolve reference {{=it.util.escapeQuotes($schema)}}'",
- additionalItems: "'should NOT have more than {{=$schema.length}} items'",
- additionalProperties: "'{{? it.opts._errorDataPathProperty }}is an invalid additional property{{??}}should NOT have additional properties{{?}}'",
- anyOf: "'should match some schema in anyOf'",
- const: "'should be equal to constant'",
- contains: "'should contain a valid item'",
- dependencies: "'should have {{? $deps.length == 1 }}property {{= it.util.escapeQuotes($deps[0]) }}{{??}}properties {{= it.util.escapeQuotes($deps.join(\", \")) }}{{?}} when property {{= it.util.escapeQuotes($property) }} is present'",
- 'enum': "'should be equal to one of the allowed values'",
- format: "'should match format \"{{#def.concatSchemaEQ}}\"'",
- 'if': "'should match \"' + {{=$ifClause}} + '\" schema'",
- _limit: "'should be {{=$opStr}} {{#def.appendSchema}}",
- _exclusiveLimit: "'{{=$exclusiveKeyword}} should be boolean'",
- _limitItems: "'should NOT have {{?$keyword=='maxItems'}}more{{??}}fewer{{?}} than {{#def.concatSchema}} items'",
- _limitLength: "'should NOT be {{?$keyword=='maxLength'}}longer{{??}}shorter{{?}} than {{#def.concatSchema}} characters'",
- _limitProperties:"'should NOT have {{?$keyword=='maxProperties'}}more{{??}}fewer{{?}} than {{#def.concatSchema}} properties'",
- multipleOf: "'should be multiple of {{#def.appendSchema}}",
- not: "'should NOT be valid'",
- oneOf: "'should match exactly one schema in oneOf'",
- pattern: "'should match pattern \"{{#def.concatSchemaEQ}}\"'",
- propertyNames: "'property name \\'{{=$invalidName}}\\' is invalid'",
- required: "'{{? it.opts._errorDataPathProperty }}is a required property{{??}}should have required property \\'{{=$missingProperty}}\\'{{?}}'",
- type: "'should be {{? $typeIsArray }}{{= $typeSchema.join(\",\") }}{{??}}{{=$typeSchema}}{{?}}'",
- uniqueItems: "'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)'",
- custom: "'should pass \"{{=$rule.keyword}}\" keyword validation'",
- patternRequired: "'should have property matching pattern \\'{{=$missingPattern}}\\''",
- switch: "'should pass \"switch\" keyword validation'",
- _formatLimit: "'should be {{=$opStr}} \"{{#def.concatSchemaEQ}}\"'",
- _formatExclusiveLimit: "'{{=$exclusiveKeyword}} should be boolean'"
-} #}}
-
-
-{{## def.schemaRefOrVal: {{?$isData}}validate.schema{{=$schemaPath}}{{??}}{{=$schema}}{{?}} #}}
-{{## def.schemaRefOrQS: {{?$isData}}validate.schema{{=$schemaPath}}{{??}}{{=it.util.toQuotedString($schema)}}{{?}} #}}
-
-{{## def._errorSchemas = {
- 'false schema': "false",
- $ref: "{{=it.util.toQuotedString($schema)}}",
- additionalItems: "false",
- additionalProperties: "false",
- anyOf: "validate.schema{{=$schemaPath}}",
- const: "validate.schema{{=$schemaPath}}",
- contains: "validate.schema{{=$schemaPath}}",
- dependencies: "validate.schema{{=$schemaPath}}",
- 'enum': "validate.schema{{=$schemaPath}}",
- format: "{{#def.schemaRefOrQS}}",
- 'if': "validate.schema{{=$schemaPath}}",
- _limit: "{{#def.schemaRefOrVal}}",
- _exclusiveLimit: "validate.schema{{=$schemaPath}}",
- _limitItems: "{{#def.schemaRefOrVal}}",
- _limitLength: "{{#def.schemaRefOrVal}}",
- _limitProperties:"{{#def.schemaRefOrVal}}",
- multipleOf: "{{#def.schemaRefOrVal}}",
- not: "validate.schema{{=$schemaPath}}",
- oneOf: "validate.schema{{=$schemaPath}}",
- pattern: "{{#def.schemaRefOrQS}}",
- propertyNames: "validate.schema{{=$schemaPath}}",
- required: "validate.schema{{=$schemaPath}}",
- type: "validate.schema{{=$schemaPath}}",
- uniqueItems: "{{#def.schemaRefOrVal}}",
- custom: "validate.schema{{=$schemaPath}}",
- patternRequired: "validate.schema{{=$schemaPath}}",
- switch: "validate.schema{{=$schemaPath}}",
- _formatLimit: "{{#def.schemaRefOrQS}}",
- _formatExclusiveLimit: "validate.schema{{=$schemaPath}}"
-} #}}
-
-
-{{## def.schemaValueQS: {{?$isData}}{{=$schemaValue}}{{??}}{{=it.util.toQuotedString($schema)}}{{?}} #}}
-
-{{## def._errorParams = {
- 'false schema': "{}",
- $ref: "{ ref: '{{=it.util.escapeQuotes($schema)}}' }",
- additionalItems: "{ limit: {{=$schema.length}} }",
- additionalProperties: "{ additionalProperty: '{{=$additionalProperty}}' }",
- anyOf: "{}",
- const: "{ allowedValue: schema{{=$lvl}} }",
- contains: "{}",
- dependencies: "{ property: '{{= it.util.escapeQuotes($property) }}', missingProperty: '{{=$missingProperty}}', depsCount: {{=$deps.length}}, deps: '{{= it.util.escapeQuotes($deps.length==1 ? $deps[0] : $deps.join(\", \")) }}' }",
- 'enum': "{ allowedValues: schema{{=$lvl}} }",
- format: "{ format: {{#def.schemaValueQS}} }",
- 'if': "{ failingKeyword: {{=$ifClause}} }",
- _limit: "{ comparison: {{=$opExpr}}, limit: {{=$schemaValue}}, exclusive: {{=$exclusive}} }",
- _exclusiveLimit: "{}",
- _limitItems: "{ limit: {{=$schemaValue}} }",
- _limitLength: "{ limit: {{=$schemaValue}} }",
- _limitProperties:"{ limit: {{=$schemaValue}} }",
- multipleOf: "{ multipleOf: {{=$schemaValue}} }",
- not: "{}",
- oneOf: "{ passingSchemas: {{=$passingSchemas}} }",
- pattern: "{ pattern: {{#def.schemaValueQS}} }",
- propertyNames: "{ propertyName: '{{=$invalidName}}' }",
- required: "{ missingProperty: '{{=$missingProperty}}' }",
- type: "{ type: '{{? $typeIsArray }}{{= $typeSchema.join(\",\") }}{{??}}{{=$typeSchema}}{{?}}' }",
- uniqueItems: "{ i: i, j: j }",
- custom: "{ keyword: '{{=$rule.keyword}}' }",
- patternRequired: "{ missingPattern: '{{=$missingPattern}}' }",
- switch: "{ caseIndex: {{=$caseIndex}} }",
- _formatLimit: "{ comparison: {{=$opExpr}}, limit: {{#def.schemaValueQS}}, exclusive: {{=$exclusive}} }",
- _formatExclusiveLimit: "{}"
-} #}}
diff --git a/node_modules/ajv/lib/dot/format.jst b/node_modules/ajv/lib/dot/format.jst
deleted file mode 100644
index 37f14da..0000000
--- a/node_modules/ajv/lib/dot/format.jst
+++ /dev/null
@@ -1,106 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-
-{{## def.skipFormat:
- {{? $breakOnError }} if (true) { {{?}}
- {{ return out; }}
-#}}
-
-{{? it.opts.format === false }}{{# def.skipFormat }}{{?}}
-
-
-{{# def.$data }}
-
-
-{{## def.$dataCheckFormat:
- {{# def.$dataNotType:'string' }}
- ({{? $unknownFormats != 'ignore' }}
- ({{=$schemaValue}} && !{{=$format}}
- {{? $allowUnknown }}
- && self._opts.unknownFormats.indexOf({{=$schemaValue}}) == -1
- {{?}}) ||
- {{?}}
- ({{=$format}} && {{=$formatType}} == '{{=$ruleType}}'
- && !(typeof {{=$format}} == 'function'
- ? {{? it.async}}
- (async{{=$lvl}} ? await {{=$format}}({{=$data}}) : {{=$format}}({{=$data}}))
- {{??}}
- {{=$format}}({{=$data}})
- {{?}}
- : {{=$format}}.test({{=$data}}))))
-#}}
-
-{{## def.checkFormat:
- {{
- var $formatRef = 'formats' + it.util.getProperty($schema);
- if ($isObject) $formatRef += '.validate';
- }}
- {{? typeof $format == 'function' }}
- {{=$formatRef}}({{=$data}})
- {{??}}
- {{=$formatRef}}.test({{=$data}})
- {{?}}
-#}}
-
-
-{{
- var $unknownFormats = it.opts.unknownFormats
- , $allowUnknown = Array.isArray($unknownFormats);
-}}
-
-{{? $isData }}
- {{
- var $format = 'format' + $lvl
- , $isObject = 'isObject' + $lvl
- , $formatType = 'formatType' + $lvl;
- }}
- var {{=$format}} = formats[{{=$schemaValue}}];
- var {{=$isObject}} = typeof {{=$format}} == 'object'
- && !({{=$format}} instanceof RegExp)
- && {{=$format}}.validate;
- var {{=$formatType}} = {{=$isObject}} && {{=$format}}.type || 'string';
- if ({{=$isObject}}) {
- {{? it.async}}
- var async{{=$lvl}} = {{=$format}}.async;
- {{?}}
- {{=$format}} = {{=$format}}.validate;
- }
- if ({{# def.$dataCheckFormat }}) {
-{{??}}
- {{ var $format = it.formats[$schema]; }}
- {{? !$format }}
- {{? $unknownFormats == 'ignore' }}
- {{ it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"'); }}
- {{# def.skipFormat }}
- {{?? $allowUnknown && $unknownFormats.indexOf($schema) >= 0 }}
- {{# def.skipFormat }}
- {{??}}
- {{ throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"'); }}
- {{?}}
- {{?}}
- {{
- var $isObject = typeof $format == 'object'
- && !($format instanceof RegExp)
- && $format.validate;
- var $formatType = $isObject && $format.type || 'string';
- if ($isObject) {
- var $async = $format.async === true;
- $format = $format.validate;
- }
- }}
- {{? $formatType != $ruleType }}
- {{# def.skipFormat }}
- {{?}}
- {{? $async }}
- {{
- if (!it.async) throw new Error('async format in sync schema');
- var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';
- }}
- if (!(await {{=$formatRef}}({{=$data}}))) {
- {{??}}
- if (!{{# def.checkFormat }}) {
- {{?}}
-{{?}}
- {{# def.error:'format' }}
- } {{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/if.jst b/node_modules/ajv/lib/dot/if.jst
deleted file mode 100644
index 7ccc9b7..0000000
--- a/node_modules/ajv/lib/dot/if.jst
+++ /dev/null
@@ -1,75 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-
-{{## def.validateIfClause:_clause:
- {{
- $it.schema = it.schema['_clause'];
- $it.schemaPath = it.schemaPath + '._clause';
- $it.errSchemaPath = it.errSchemaPath + '/_clause';
- }}
- {{# def.insertSubschemaCode }}
- {{=$valid}} = {{=$nextValid}};
- {{? $thenPresent && $elsePresent }}
- {{ $ifClause = 'ifClause' + $lvl; }}
- var {{=$ifClause}} = '_clause';
- {{??}}
- {{ $ifClause = '\'_clause\''; }}
- {{?}}
-#}}
-
-{{
- var $thenSch = it.schema['then']
- , $elseSch = it.schema['else']
- , $thenPresent = $thenSch !== undefined && {{# def.nonEmptySchema:$thenSch }}
- , $elsePresent = $elseSch !== undefined && {{# def.nonEmptySchema:$elseSch }}
- , $currentBaseId = $it.baseId;
-}}
-
-{{? $thenPresent || $elsePresent }}
- {{
- var $ifClause;
- $it.createErrors = false;
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- }}
- var {{=$errs}} = errors;
- var {{=$valid}} = true;
-
- {{# def.setCompositeRule }}
- {{# def.insertSubschemaCode }}
- {{ $it.createErrors = true; }}
- {{# def.resetErrors }}
- {{# def.resetCompositeRule }}
-
- {{? $thenPresent }}
- if ({{=$nextValid}}) {
- {{# def.validateIfClause:then }}
- }
- {{? $elsePresent }}
- else {
- {{?}}
- {{??}}
- if (!{{=$nextValid}}) {
- {{?}}
-
- {{? $elsePresent }}
- {{# def.validateIfClause:else }}
- }
- {{?}}
-
- if (!{{=$valid}}) {
- {{# def.extraError:'if' }}
- }
- {{? $breakOnError }} else { {{?}}
-
- {{# def.cleanUp }}
-{{??}}
- {{? $breakOnError }}
- if (true) {
- {{?}}
-{{?}}
-
diff --git a/node_modules/ajv/lib/dot/items.jst b/node_modules/ajv/lib/dot/items.jst
deleted file mode 100644
index 8c0f5ac..0000000
--- a/node_modules/ajv/lib/dot/items.jst
+++ /dev/null
@@ -1,100 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-
-{{## def.validateItems:startFrom:
- for (var {{=$idx}} = {{=startFrom}}; {{=$idx}} < {{=$data}}.length; {{=$idx}}++) {
- {{
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- }}
-
- {{# def.generateSubschemaCode }}
- {{# def.optimizeValidate }}
-
- {{? $breakOnError }}
- if (!{{=$nextValid}}) break;
- {{?}}
- }
-#}}
-
-{{
- var $idx = 'i' + $lvl
- , $dataNxt = $it.dataLevel = it.dataLevel + 1
- , $nextData = 'data' + $dataNxt
- , $currentBaseId = it.baseId;
-}}
-
-var {{=$errs}} = errors;
-var {{=$valid}};
-
-{{? Array.isArray($schema) }}
- {{ /* 'items' is an array of schemas */}}
- {{ var $additionalItems = it.schema.additionalItems; }}
- {{? $additionalItems === false }}
- {{=$valid}} = {{=$data}}.length <= {{= $schema.length }};
- {{
- var $currErrSchemaPath = $errSchemaPath;
- $errSchemaPath = it.errSchemaPath + '/additionalItems';
- }}
- {{# def.checkError:'additionalItems' }}
- {{ $errSchemaPath = $currErrSchemaPath; }}
- {{# def.elseIfValid}}
- {{?}}
-
- {{~ $schema:$sch:$i }}
- {{? {{# def.nonEmptySchema:$sch }} }}
- {{=$nextValid}} = true;
-
- if ({{=$data}}.length > {{=$i}}) {
- {{
- var $passData = $data + '[' + $i + ']';
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);
- $it.dataPathArr[$dataNxt] = $i;
- }}
-
- {{# def.generateSubschemaCode }}
- {{# def.optimizeValidate }}
- }
-
- {{# def.ifResultValid }}
- {{?}}
- {{~}}
-
- {{? typeof $additionalItems == 'object' && {{# def.nonEmptySchema:$additionalItems }} }}
- {{
- $it.schema = $additionalItems;
- $it.schemaPath = it.schemaPath + '.additionalItems';
- $it.errSchemaPath = it.errSchemaPath + '/additionalItems';
- }}
- {{=$nextValid}} = true;
-
- if ({{=$data}}.length > {{= $schema.length }}) {
- {{# def.validateItems: $schema.length }}
- }
-
- {{# def.ifResultValid }}
- {{?}}
-
-{{?? {{# def.nonEmptySchema:$schema }} }}
- {{ /* 'items' is a single schema */}}
- {{
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- }}
- {{# def.validateItems: 0 }}
-{{?}}
-
-{{? $breakOnError }}
- {{= $closingBraces }}
- if ({{=$errs}} == errors) {
-{{?}}
-
-{{# def.cleanUp }}
diff --git a/node_modules/ajv/lib/dot/missing.def b/node_modules/ajv/lib/dot/missing.def
deleted file mode 100644
index a73b9f9..0000000
--- a/node_modules/ajv/lib/dot/missing.def
+++ /dev/null
@@ -1,39 +0,0 @@
-{{## def.checkMissingProperty:_properties:
- {{~ _properties:$propertyKey:$i }}
- {{?$i}} || {{?}}
- {{
- var $prop = it.util.getProperty($propertyKey)
- , $useData = $data + $prop;
- }}
- ( ({{# def.noPropertyInData }}) && (missing{{=$lvl}} = {{= it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop) }}) )
- {{~}}
-#}}
-
-
-{{## def.errorMissingProperty:_error:
- {{
- var $propertyPath = 'missing' + $lvl
- , $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.opts.jsonPointers
- ? it.util.getPathExpr($currentErrorPath, $propertyPath, true)
- : $currentErrorPath + ' + ' + $propertyPath;
- }
- }}
- {{# def.error:_error }}
-#}}
-
-
-{{## def.allErrorsMissingProperty:_error:
- {{
- var $prop = it.util.getProperty($propertyKey)
- , $missingProperty = it.util.escapeQuotes($propertyKey)
- , $useData = $data + $prop;
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- }}
- if ({{# def.noPropertyInData }}) {
- {{# def.addError:_error }}
- }
-#}}
diff --git a/node_modules/ajv/lib/dot/multipleOf.jst b/node_modules/ajv/lib/dot/multipleOf.jst
deleted file mode 100644
index 5f8dd33..0000000
--- a/node_modules/ajv/lib/dot/multipleOf.jst
+++ /dev/null
@@ -1,20 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-var division{{=$lvl}};
-if ({{?$isData}}
- {{=$schemaValue}} !== undefined && (
- typeof {{=$schemaValue}} != 'number' ||
- {{?}}
- (division{{=$lvl}} = {{=$data}} / {{=$schemaValue}},
- {{? it.opts.multipleOfPrecision }}
- Math.abs(Math.round(division{{=$lvl}}) - division{{=$lvl}}) > 1e-{{=it.opts.multipleOfPrecision}}
- {{??}}
- division{{=$lvl}} !== parseInt(division{{=$lvl}})
- {{?}}
- )
- {{?$isData}} ) {{?}} ) {
- {{# def.error:'multipleOf' }}
-} {{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/not.jst b/node_modules/ajv/lib/dot/not.jst
deleted file mode 100644
index e03185a..0000000
--- a/node_modules/ajv/lib/dot/not.jst
+++ /dev/null
@@ -1,43 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-{{? {{# def.nonEmptySchema:$schema }} }}
- {{
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- }}
-
- var {{=$errs}} = errors;
-
- {{# def.setCompositeRule }}
-
- {{
- $it.createErrors = false;
- var $allErrorsOption;
- if ($it.opts.allErrors) {
- $allErrorsOption = $it.opts.allErrors;
- $it.opts.allErrors = false;
- }
- }}
- {{= it.validate($it) }}
- {{
- $it.createErrors = true;
- if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
- }}
-
- {{# def.resetCompositeRule }}
-
- if ({{=$nextValid}}) {
- {{# def.error:'not' }}
- } else {
- {{# def.resetErrors }}
- {{? it.opts.allErrors }} } {{?}}
-{{??}}
- {{# def.addError:'not' }}
- {{? $breakOnError}}
- if (false) {
- {{?}}
-{{?}}
diff --git a/node_modules/ajv/lib/dot/oneOf.jst b/node_modules/ajv/lib/dot/oneOf.jst
deleted file mode 100644
index bcce2c6..0000000
--- a/node_modules/ajv/lib/dot/oneOf.jst
+++ /dev/null
@@ -1,54 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-{{
- var $currentBaseId = $it.baseId
- , $prevValid = 'prevValid' + $lvl
- , $passingSchemas = 'passingSchemas' + $lvl;
-}}
-
-var {{=$errs}} = errors
- , {{=$prevValid}} = false
- , {{=$valid}} = false
- , {{=$passingSchemas}} = null;
-
-{{# def.setCompositeRule }}
-
-{{~ $schema:$sch:$i }}
- {{? {{# def.nonEmptySchema:$sch }} }}
- {{
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- }}
-
- {{# def.insertSubschemaCode }}
- {{??}}
- var {{=$nextValid}} = true;
- {{?}}
-
- {{? $i }}
- if ({{=$nextValid}} && {{=$prevValid}}) {
- {{=$valid}} = false;
- {{=$passingSchemas}} = [{{=$passingSchemas}}, {{=$i}}];
- } else {
- {{ $closingBraces += '}'; }}
- {{?}}
-
- if ({{=$nextValid}}) {
- {{=$valid}} = {{=$prevValid}} = true;
- {{=$passingSchemas}} = {{=$i}};
- }
-{{~}}
-
-{{# def.resetCompositeRule }}
-
-{{= $closingBraces }}
-
-if (!{{=$valid}}) {
- {{# def.extraError:'oneOf' }}
-} else {
- {{# def.resetErrors }}
-{{? it.opts.allErrors }} } {{?}}
diff --git a/node_modules/ajv/lib/dot/pattern.jst b/node_modules/ajv/lib/dot/pattern.jst
deleted file mode 100644
index 3a37ef6..0000000
--- a/node_modules/ajv/lib/dot/pattern.jst
+++ /dev/null
@@ -1,14 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{
- var $regexp = $isData
- ? '(new RegExp(' + $schemaValue + '))'
- : it.usePattern($schema);
-}}
-
-if ({{# def.$dataNotType:'string' }} !{{=$regexp}}.test({{=$data}}) ) {
- {{# def.error:'pattern' }}
-} {{? $breakOnError }} else { {{?}}
diff --git a/node_modules/ajv/lib/dot/properties.jst b/node_modules/ajv/lib/dot/properties.jst
deleted file mode 100644
index 862067e..0000000
--- a/node_modules/ajv/lib/dot/properties.jst
+++ /dev/null
@@ -1,244 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-
-{{## def.validateAdditional:
- {{ /* additionalProperties is schema */
- $it.schema = $aProperties;
- $it.schemaPath = it.schemaPath + '.additionalProperties';
- $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';
- $it.errorPath = it.opts._errorDataPathProperty
- ? it.errorPath
- : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- }}
-
- {{# def.generateSubschemaCode }}
- {{# def.optimizeValidate }}
-#}}
-
-
-{{
- var $key = 'key' + $lvl
- , $idx = 'idx' + $lvl
- , $dataNxt = $it.dataLevel = it.dataLevel + 1
- , $nextData = 'data' + $dataNxt
- , $dataProperties = 'dataProperties' + $lvl;
-
- var $schemaKeys = Object.keys($schema || {})
- , $pProperties = it.schema.patternProperties || {}
- , $pPropertyKeys = Object.keys($pProperties)
- , $aProperties = it.schema.additionalProperties
- , $someProperties = $schemaKeys.length || $pPropertyKeys.length
- , $noAdditional = $aProperties === false
- , $additionalIsSchema = typeof $aProperties == 'object'
- && Object.keys($aProperties).length
- , $removeAdditional = it.opts.removeAdditional
- , $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional
- , $ownProperties = it.opts.ownProperties
- , $currentBaseId = it.baseId;
-
- var $required = it.schema.required;
- if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired)
- var $requiredHash = it.util.toHash($required);
-}}
-
-
-var {{=$errs}} = errors;
-var {{=$nextValid}} = true;
-{{? $ownProperties }}
- var {{=$dataProperties}} = undefined;
-{{?}}
-
-{{? $checkAdditional }}
- {{# def.iterateProperties }}
- {{? $someProperties }}
- var isAdditional{{=$lvl}} = !(false
- {{? $schemaKeys.length }}
- {{? $schemaKeys.length > 8 }}
- || validate.schema{{=$schemaPath}}.hasOwnProperty({{=$key}})
- {{??}}
- {{~ $schemaKeys:$propertyKey }}
- || {{=$key}} == {{= it.util.toQuotedString($propertyKey) }}
- {{~}}
- {{?}}
- {{?}}
- {{? $pPropertyKeys.length }}
- {{~ $pPropertyKeys:$pProperty:$i }}
- || {{= it.usePattern($pProperty) }}.test({{=$key}})
- {{~}}
- {{?}}
- );
-
- if (isAdditional{{=$lvl}}) {
- {{?}}
- {{? $removeAdditional == 'all' }}
- delete {{=$data}}[{{=$key}}];
- {{??}}
- {{
- var $currentErrorPath = it.errorPath;
- var $additionalProperty = '\' + ' + $key + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- }
- }}
- {{? $noAdditional }}
- {{? $removeAdditional }}
- delete {{=$data}}[{{=$key}}];
- {{??}}
- {{=$nextValid}} = false;
- {{
- var $currErrSchemaPath = $errSchemaPath;
- $errSchemaPath = it.errSchemaPath + '/additionalProperties';
- }}
- {{# def.error:'additionalProperties' }}
- {{ $errSchemaPath = $currErrSchemaPath; }}
- {{? $breakOnError }} break; {{?}}
- {{?}}
- {{?? $additionalIsSchema }}
- {{? $removeAdditional == 'failing' }}
- var {{=$errs}} = errors;
- {{# def.setCompositeRule }}
-
- {{# def.validateAdditional }}
-
- if (!{{=$nextValid}}) {
- errors = {{=$errs}};
- if (validate.errors !== null) {
- if (errors) validate.errors.length = errors;
- else validate.errors = null;
- }
- delete {{=$data}}[{{=$key}}];
- }
-
- {{# def.resetCompositeRule }}
- {{??}}
- {{# def.validateAdditional }}
- {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}}
- {{?}}
- {{?}}
- {{ it.errorPath = $currentErrorPath; }}
- {{?}}
- {{? $someProperties }}
- }
- {{?}}
- }
-
- {{# def.ifResultValid }}
-{{?}}
-
-{{ var $useDefaults = it.opts.useDefaults && !it.compositeRule; }}
-
-{{? $schemaKeys.length }}
- {{~ $schemaKeys:$propertyKey }}
- {{ var $sch = $schema[$propertyKey]; }}
-
- {{? {{# def.nonEmptySchema:$sch}} }}
- {{
- var $prop = it.util.getProperty($propertyKey)
- , $passData = $data + $prop
- , $hasDefault = $useDefaults && $sch.default !== undefined;
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + $prop;
- $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey);
- $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);
- $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);
- }}
-
- {{# def.generateSubschemaCode }}
-
- {{? {{# def.willOptimize }} }}
- {{
- $code = {{# def._optimizeValidate }};
- var $useData = $passData;
- }}
- {{??}}
- {{ var $useData = $nextData; }}
- var {{=$nextData}} = {{=$passData}};
- {{?}}
-
- {{? $hasDefault }}
- {{= $code }}
- {{??}}
- {{? $requiredHash && $requiredHash[$propertyKey] }}
- if ({{# def.noPropertyInData }}) {
- {{=$nextValid}} = false;
- {{
- var $currentErrorPath = it.errorPath
- , $currErrSchemaPath = $errSchemaPath
- , $missingProperty = it.util.escapeQuotes($propertyKey);
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- $errSchemaPath = it.errSchemaPath + '/required';
- }}
- {{# def.error:'required' }}
- {{ $errSchemaPath = $currErrSchemaPath; }}
- {{ it.errorPath = $currentErrorPath; }}
- } else {
- {{??}}
- {{? $breakOnError }}
- if ({{# def.noPropertyInData }}) {
- {{=$nextValid}} = true;
- } else {
- {{??}}
- if ({{=$useData}} !== undefined
- {{? $ownProperties }}
- && {{# def.isOwnProperty }}
- {{?}}
- ) {
- {{?}}
- {{?}}
-
- {{= $code }}
- }
- {{?}} {{ /* $hasDefault */ }}
- {{?}} {{ /* def.nonEmptySchema */ }}
-
- {{# def.ifResultValid }}
- {{~}}
-{{?}}
-
-{{? $pPropertyKeys.length }}
- {{~ $pPropertyKeys:$pProperty }}
- {{ var $sch = $pProperties[$pProperty]; }}
-
- {{? {{# def.nonEmptySchema:$sch}} }}
- {{
- $it.schema = $sch;
- $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty);
- $it.errSchemaPath = it.errSchemaPath + '/patternProperties/'
- + it.util.escapeFragment($pProperty);
- }}
-
- {{# def.iterateProperties }}
- if ({{= it.usePattern($pProperty) }}.test({{=$key}})) {
- {{
- $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- }}
-
- {{# def.generateSubschemaCode }}
- {{# def.optimizeValidate }}
-
- {{? $breakOnError }} if (!{{=$nextValid}}) break; {{?}}
- }
- {{? $breakOnError }} else {{=$nextValid}} = true; {{?}}
- }
-
- {{# def.ifResultValid }}
- {{?}} {{ /* def.nonEmptySchema */ }}
- {{~}}
-{{?}}
-
-
-{{? $breakOnError }}
- {{= $closingBraces }}
- if ({{=$errs}} == errors) {
-{{?}}
-
-{{# def.cleanUp }}
diff --git a/node_modules/ajv/lib/dot/propertyNames.jst b/node_modules/ajv/lib/dot/propertyNames.jst
deleted file mode 100644
index ee52b21..0000000
--- a/node_modules/ajv/lib/dot/propertyNames.jst
+++ /dev/null
@@ -1,54 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.setupNextLevel }}
-
-var {{=$errs}} = errors;
-
-{{? {{# def.nonEmptySchema:$schema }} }}
- {{
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- }}
-
- {{
- var $key = 'key' + $lvl
- , $idx = 'idx' + $lvl
- , $i = 'i' + $lvl
- , $invalidName = '\' + ' + $key + ' + \''
- , $dataNxt = $it.dataLevel = it.dataLevel + 1
- , $nextData = 'data' + $dataNxt
- , $dataProperties = 'dataProperties' + $lvl
- , $ownProperties = it.opts.ownProperties
- , $currentBaseId = it.baseId;
- }}
-
- {{? $ownProperties }}
- var {{=$dataProperties}} = undefined;
- {{?}}
- {{# def.iterateProperties }}
- var startErrs{{=$lvl}} = errors;
-
- {{ var $passData = $key; }}
- {{# def.setCompositeRule }}
- {{# def.generateSubschemaCode }}
- {{# def.optimizeValidate }}
- {{# def.resetCompositeRule }}
-
- if (!{{=$nextValid}}) {
- for (var {{=$i}}=startErrs{{=$lvl}}; {{=$i}}<errors; {{=$i}}++) {
- vErrors[{{=$i}}].propertyName = {{=$key}};
- }
- {{# def.extraError:'propertyNames' }}
- {{? $breakOnError }} break; {{?}}
- }
- }
-{{?}}
-
-{{? $breakOnError }}
- {{= $closingBraces }}
- if ({{=$errs}} == errors) {
-{{?}}
-
-{{# def.cleanUp }}
diff --git a/node_modules/ajv/lib/dot/ref.jst b/node_modules/ajv/lib/dot/ref.jst
deleted file mode 100644
index 253e350..0000000
--- a/node_modules/ajv/lib/dot/ref.jst
+++ /dev/null
@@ -1,85 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-
-{{## def._validateRef:_v:
- {{? it.opts.passContext }}
- {{=_v}}.call(this,
- {{??}}
- {{=_v}}(
- {{?}}
- {{=$data}}, {{# def.dataPath }}{{# def.passParentData }}, rootData)
-#}}
-
-{{ var $async, $refCode; }}
-{{? $schema == '#' || $schema == '#/' }}
- {{
- if (it.isRoot) {
- $async = it.async;
- $refCode = 'validate';
- } else {
- $async = it.root.schema.$async === true;
- $refCode = 'root.refVal[0]';
- }
- }}
-{{??}}
- {{ var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot); }}
- {{? $refVal === undefined }}
- {{ var $message = it.MissingRefError.message(it.baseId, $schema); }}
- {{? it.opts.missingRefs == 'fail' }}
- {{ it.logger.error($message); }}
- {{# def.error:'$ref' }}
- {{? $breakOnError }} if (false) { {{?}}
- {{?? it.opts.missingRefs == 'ignore' }}
- {{ it.logger.warn($message); }}
- {{? $breakOnError }} if (true) { {{?}}
- {{??}}
- {{ throw new it.MissingRefError(it.baseId, $schema, $message); }}
- {{?}}
- {{?? $refVal.inline }}
- {{# def.setupNextLevel }}
- {{
- $it.schema = $refVal.schema;
- $it.schemaPath = '';
- $it.errSchemaPath = $schema;
- }}
- {{ var $code = it.validate($it).replace(/validate\.schema/g, $refVal.code); }}
- {{= $code }}
- {{? $breakOnError}}
- if ({{=$nextValid}}) {
- {{?}}
- {{??}}
- {{
- $async = $refVal.$async === true || (it.async && $refVal.$async !== false);
- $refCode = $refVal.code;
- }}
- {{?}}
-{{?}}
-
-{{? $refCode }}
- {{# def.beginDefOut}}
- {{# def._validateRef:$refCode }}
- {{# def.storeDefOut:__callValidate }}
-
- {{? $async }}
- {{ if (!it.async) throw new Error('async schema referenced by sync schema'); }}
- {{? $breakOnError }} var {{=$valid}}; {{?}}
- try {
- await {{=__callValidate}};
- {{? $breakOnError }} {{=$valid}} = true; {{?}}
- } catch (e) {
- if (!(e instanceof ValidationError)) throw e;
- if (vErrors === null) vErrors = e.errors;
- else vErrors = vErrors.concat(e.errors);
- errors = vErrors.length;
- {{? $breakOnError }} {{=$valid}} = false; {{?}}
- }
- {{? $breakOnError }} if ({{=$valid}}) { {{?}}
- {{??}}
- if (!{{=__callValidate}}) {
- if (vErrors === null) vErrors = {{=$refCode}}.errors;
- else vErrors = vErrors.concat({{=$refCode}}.errors);
- errors = vErrors.length;
- } {{? $breakOnError }} else { {{?}}
- {{?}}
-{{?}}
diff --git a/node_modules/ajv/lib/dot/required.jst b/node_modules/ajv/lib/dot/required.jst
deleted file mode 100644
index 80fde35..0000000
--- a/node_modules/ajv/lib/dot/required.jst
+++ /dev/null
@@ -1,108 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.missing }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-{{ var $vSchema = 'schema' + $lvl; }}
-
-{{## def.setupLoop:
- {{? !$isData }}
- var {{=$vSchema}} = validate.schema{{=$schemaPath}};
- {{?}}
-
- {{
- var $i = 'i' + $lvl
- , $propertyPath = 'schema' + $lvl + '[' + $i + ']'
- , $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
- }
- }}
-#}}
-
-
-{{## def.isRequiredOwnProperty:
- Object.prototype.hasOwnProperty.call({{=$data}}, {{=$vSchema}}[{{=$i}}])
-#}}
-
-
-{{? !$isData }}
- {{? $schema.length < it.opts.loopRequired &&
- it.schema.properties && Object.keys(it.schema.properties).length }}
- {{ var $required = []; }}
- {{~ $schema:$property }}
- {{ var $propertySch = it.schema.properties[$property]; }}
- {{? !($propertySch && {{# def.nonEmptySchema:$propertySch}}) }}
- {{ $required[$required.length] = $property; }}
- {{?}}
- {{~}}
- {{??}}
- {{ var $required = $schema; }}
- {{?}}
-{{?}}
-
-
-{{? $isData || $required.length }}
- {{
- var $currentErrorPath = it.errorPath
- , $loopRequired = $isData || $required.length >= it.opts.loopRequired
- , $ownProperties = it.opts.ownProperties;
- }}
-
- {{? $breakOnError }}
- var missing{{=$lvl}};
- {{? $loopRequired }}
- {{# def.setupLoop }}
- var {{=$valid}} = true;
-
- {{?$isData}}{{# def.check$dataIsArray }}{{?}}
-
- for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) {
- {{=$valid}} = {{=$data}}[{{=$vSchema}}[{{=$i}}]] !== undefined
- {{? $ownProperties }}
- && {{# def.isRequiredOwnProperty }}
- {{?}};
- if (!{{=$valid}}) break;
- }
-
- {{? $isData }} } {{?}}
-
- {{# def.checkError:'required' }}
- else {
- {{??}}
- if ({{# def.checkMissingProperty:$required }}) {
- {{# def.errorMissingProperty:'required' }}
- } else {
- {{?}}
- {{??}}
- {{? $loopRequired }}
- {{# def.setupLoop }}
- {{? $isData }}
- if ({{=$vSchema}} && !Array.isArray({{=$vSchema}})) {
- {{# def.addError:'required' }}
- } else if ({{=$vSchema}} !== undefined) {
- {{?}}
-
- for (var {{=$i}} = 0; {{=$i}} < {{=$vSchema}}.length; {{=$i}}++) {
- if ({{=$data}}[{{=$vSchema}}[{{=$i}}]] === undefined
- {{? $ownProperties }}
- || !{{# def.isRequiredOwnProperty }}
- {{?}}) {
- {{# def.addError:'required' }}
- }
- }
-
- {{? $isData }} } {{?}}
- {{??}}
- {{~ $required:$propertyKey }}
- {{# def.allErrorsMissingProperty:'required' }}
- {{~}}
- {{?}}
- {{?}}
-
- {{ it.errorPath = $currentErrorPath; }}
-
-{{?? $breakOnError }}
- if (true) {
-{{?}}
diff --git a/node_modules/ajv/lib/dot/uniqueItems.jst b/node_modules/ajv/lib/dot/uniqueItems.jst
deleted file mode 100644
index 22f82f9..0000000
--- a/node_modules/ajv/lib/dot/uniqueItems.jst
+++ /dev/null
@@ -1,62 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.setupKeyword }}
-{{# def.$data }}
-
-
-{{? ($schema || $isData) && it.opts.uniqueItems !== false }}
- {{? $isData }}
- var {{=$valid}};
- if ({{=$schemaValue}} === false || {{=$schemaValue}} === undefined)
- {{=$valid}} = true;
- else if (typeof {{=$schemaValue}} != 'boolean')
- {{=$valid}} = false;
- else {
- {{?}}
-
- var i = {{=$data}}.length
- , {{=$valid}} = true
- , j;
- if (i > 1) {
- {{
- var $itemType = it.schema.items && it.schema.items.type
- , $typeIsArray = Array.isArray($itemType);
- }}
- {{? !$itemType || $itemType == 'object' || $itemType == 'array' ||
- ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0)) }}
- outer:
- for (;i--;) {
- for (j = i; j--;) {
- if (equal({{=$data}}[i], {{=$data}}[j])) {
- {{=$valid}} = false;
- break outer;
- }
- }
- }
- {{??}}
- var itemIndices = {}, item;
- for (;i--;) {
- var item = {{=$data}}[i];
- {{ var $method = 'checkDataType' + ($typeIsArray ? 's' : ''); }}
- if ({{= it.util[$method]($itemType, 'item', true) }}) continue;
- {{? $typeIsArray}}
- if (typeof item == 'string') item = '"' + item;
- {{?}}
- if (typeof itemIndices[item] == 'number') {
- {{=$valid}} = false;
- j = itemIndices[item];
- break;
- }
- itemIndices[item] = i;
- }
- {{?}}
- }
-
- {{? $isData }} } {{?}}
-
- if (!{{=$valid}}) {
- {{# def.error:'uniqueItems' }}
- } {{? $breakOnError }} else { {{?}}
-{{??}}
- {{? $breakOnError }} if (true) { {{?}}
-{{?}}
diff --git a/node_modules/ajv/lib/dot/validate.jst b/node_modules/ajv/lib/dot/validate.jst
deleted file mode 100644
index f8a1edf..0000000
--- a/node_modules/ajv/lib/dot/validate.jst
+++ /dev/null
@@ -1,282 +0,0 @@
-{{# def.definitions }}
-{{# def.errors }}
-{{# def.defaults }}
-{{# def.coerce }}
-
-{{ /**
- * schema compilation (render) time:
- * it = { schema, RULES, _validate, opts }
- * it.validate - this template function,
- * it is used recursively to generate code for subschemas
- *
- * runtime:
- * "validate" is a variable name to which this function will be assigned
- * validateRef etc. are defined in the parent scope in index.js
- */ }}
-
-{{
- var $async = it.schema.$async === true
- , $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref')
- , $id = it.self._getId(it.schema);
-}}
-
-{{
- if (it.opts.strictKeywords) {
- var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);
- if ($unknownKwd) {
- var $keywordsMsg = 'unknown keyword: ' + $unknownKwd;
- if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg);
- else throw new Error($keywordsMsg);
- }
- }
-}}
-
-{{? it.isTop }}
- var validate = {{?$async}}{{it.async = true;}}async {{?}}function(data, dataPath, parentData, parentDataProperty, rootData) {
- 'use strict';
- {{? $id && (it.opts.sourceCode || it.opts.processCode) }}
- {{= '/\*# sourceURL=' + $id + ' */' }}
- {{?}}
-{{?}}
-
-{{? typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref) }}
- {{ var $keyword = 'false schema'; }}
- {{# def.setupKeyword }}
- {{? it.schema === false}}
- {{? it.isTop}}
- {{ $breakOnError = true; }}
- {{??}}
- var {{=$valid}} = false;
- {{?}}
- {{# def.error:'false schema' }}
- {{??}}
- {{? it.isTop}}
- {{? $async }}
- return data;
- {{??}}
- validate.errors = null;
- return true;
- {{?}}
- {{??}}
- var {{=$valid}} = true;
- {{?}}
- {{?}}
-
- {{? it.isTop}}
- };
- return validate;
- {{?}}
-
- {{ return out; }}
-{{?}}
-
-
-{{? it.isTop }}
- {{
- var $top = it.isTop
- , $lvl = it.level = 0
- , $dataLvl = it.dataLevel = 0
- , $data = 'data';
- it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));
- it.baseId = it.baseId || it.rootId;
- delete it.isTop;
-
- it.dataPathArr = [undefined];
-
- if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored in the schema root';
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- }}
-
- var vErrors = null; {{ /* don't edit, used in replace */ }}
- var errors = 0; {{ /* don't edit, used in replace */ }}
- if (rootData === undefined) rootData = data; {{ /* don't edit, used in replace */ }}
-{{??}}
- {{
- var $lvl = it.level
- , $dataLvl = it.dataLevel
- , $data = 'data' + ($dataLvl || '');
-
- if ($id) it.baseId = it.resolve.url(it.baseId, $id);
-
- if ($async && !it.async) throw new Error('async schema in sync schema');
- }}
-
- var errs_{{=$lvl}} = errors;
-{{?}}
-
-{{
- var $valid = 'valid' + $lvl
- , $breakOnError = !it.opts.allErrors
- , $closingBraces1 = ''
- , $closingBraces2 = '';
-
- var $errorKeyword;
- var $typeSchema = it.schema.type
- , $typeIsArray = Array.isArray($typeSchema);
-
- if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {
- if ($typeIsArray) {
- if ($typeSchema.indexOf('null') == -1)
- $typeSchema = $typeSchema.concat('null');
- } else if ($typeSchema != 'null') {
- $typeSchema = [$typeSchema, 'null'];
- $typeIsArray = true;
- }
- }
-
- if ($typeIsArray && $typeSchema.length == 1) {
- $typeSchema = $typeSchema[0];
- $typeIsArray = false;
- }
-}}
-
-{{## def.checkType:
- {{
- var $schemaPath = it.schemaPath + '.type'
- , $errSchemaPath = it.errSchemaPath + '/type'
- , $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';
- }}
-
- if ({{= it.util[$method]($typeSchema, $data, true) }}) {
-#}}
-
-{{? it.schema.$ref && $refKeywords }}
- {{? it.opts.extendRefs == 'fail' }}
- {{ throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)'); }}
- {{?? it.opts.extendRefs !== true }}
- {{
- $refKeywords = false;
- it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"');
- }}
- {{?}}
-{{?}}
-
-{{? it.schema.$comment && it.opts.$comment }}
- {{= it.RULES.all.$comment.code(it, '$comment') }}
-{{?}}
-
-{{? $typeSchema }}
- {{? it.opts.coerceTypes }}
- {{ var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema); }}
- {{?}}
-
- {{ var $rulesGroup = it.RULES.types[$typeSchema]; }}
- {{? $coerceToTypes || $typeIsArray || $rulesGroup === true ||
- ($rulesGroup && !$shouldUseGroup($rulesGroup)) }}
- {{
- var $schemaPath = it.schemaPath + '.type'
- , $errSchemaPath = it.errSchemaPath + '/type';
- }}
- {{# def.checkType }}
- {{? $coerceToTypes }}
- {{# def.coerceType }}
- {{??}}
- {{# def.error:'type' }}
- {{?}}
- }
- {{?}}
-{{?}}
-
-
-{{? it.schema.$ref && !$refKeywords }}
- {{= it.RULES.all.$ref.code(it, '$ref') }}
- {{? $breakOnError }}
- }
- if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) {
- {{ $closingBraces2 += '}'; }}
- {{?}}
-{{??}}
- {{~ it.RULES:$rulesGroup }}
- {{? $shouldUseGroup($rulesGroup) }}
- {{? $rulesGroup.type }}
- if ({{= it.util.checkDataType($rulesGroup.type, $data) }}) {
- {{?}}
- {{? it.opts.useDefaults }}
- {{? $rulesGroup.type == 'object' && it.schema.properties }}
- {{# def.defaultProperties }}
- {{?? $rulesGroup.type == 'array' && Array.isArray(it.schema.items) }}
- {{# def.defaultItems }}
- {{?}}
- {{?}}
- {{~ $rulesGroup.rules:$rule }}
- {{? $shouldUseRule($rule) }}
- {{ var $code = $rule.code(it, $rule.keyword, $rulesGroup.type); }}
- {{? $code }}
- {{= $code }}
- {{? $breakOnError }}
- {{ $closingBraces1 += '}'; }}
- {{?}}
- {{?}}
- {{?}}
- {{~}}
- {{? $breakOnError }}
- {{= $closingBraces1 }}
- {{ $closingBraces1 = ''; }}
- {{?}}
- {{? $rulesGroup.type }}
- }
- {{? $typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes }}
- else {
- {{
- var $schemaPath = it.schemaPath + '.type'
- , $errSchemaPath = it.errSchemaPath + '/type';
- }}
- {{# def.error:'type' }}
- }
- {{?}}
- {{?}}
-
- {{? $breakOnError }}
- if (errors === {{?$top}}0{{??}}errs_{{=$lvl}}{{?}}) {
- {{ $closingBraces2 += '}'; }}
- {{?}}
- {{?}}
- {{~}}
-{{?}}
-
-{{? $breakOnError }} {{= $closingBraces2 }} {{?}}
-
-{{? $top }}
- {{? $async }}
- if (errors === 0) return data; {{ /* don't edit, used in replace */ }}
- else throw new ValidationError(vErrors); {{ /* don't edit, used in replace */ }}
- {{??}}
- validate.errors = vErrors; {{ /* don't edit, used in replace */ }}
- return errors === 0; {{ /* don't edit, used in replace */ }}
- {{?}}
- };
-
- return validate;
-{{??}}
- var {{=$valid}} = errors === errs_{{=$lvl}};
-{{?}}
-
-{{# def.cleanUp }}
-
-{{? $top }}
- {{# def.finalCleanUp }}
-{{?}}
-
-{{
- function $shouldUseGroup($rulesGroup) {
- var rules = $rulesGroup.rules;
- for (var i=0; i < rules.length; i++)
- if ($shouldUseRule(rules[i]))
- return true;
- }
-
- function $shouldUseRule($rule) {
- return it.schema[$rule.keyword] !== undefined ||
- ($rule.implements && $ruleImplementsSomeKeyword($rule));
- }
-
- function $ruleImplementsSomeKeyword($rule) {
- var impl = $rule.implements;
- for (var i=0; i < impl.length; i++)
- if (it.schema[impl[i]] !== undefined)
- return true;
- }
-}}
diff --git a/node_modules/ajv/lib/dotjs/README.md b/node_modules/ajv/lib/dotjs/README.md
deleted file mode 100644
index 4d99484..0000000
--- a/node_modules/ajv/lib/dotjs/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-These files are compiled dot templates from dot folder.
-
-Do NOT edit them directly, edit the templates and run `npm run build` from main ajv folder.
diff --git a/node_modules/ajv/lib/dotjs/_limit.js b/node_modules/ajv/lib/dotjs/_limit.js
deleted file mode 100644
index f02a760..0000000
--- a/node_modules/ajv/lib/dotjs/_limit.js
+++ /dev/null
@@ -1,157 +0,0 @@
-'use strict';
-module.exports = function generate__limit(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $isMax = $keyword == 'maximum',
- $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum',
- $schemaExcl = it.schema[$exclusiveKeyword],
- $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data,
- $op = $isMax ? '<' : '>',
- $notOp = $isMax ? '>' : '<',
- $errorKeyword = undefined;
- if ($isDataExcl) {
- var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr),
- $exclusive = 'exclusive' + $lvl,
- $exclType = 'exclType' + $lvl,
- $exclIsNumber = 'exclIsNumber' + $lvl,
- $opExpr = 'op' + $lvl,
- $opStr = '\' + ' + $opExpr + ' + \'';
- out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; ';
- $schemaValueExcl = 'schemaExcl' + $lvl;
- out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \'boolean\' && ' + ($exclType) + ' != \'undefined\' && ' + ($exclType) + ' != \'number\') { ';
- var $errorKeyword = $exclusiveKeyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_exclusiveLimit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'' + ($exclusiveKeyword) + ' should be boolean\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ' + ($exclType) + ' == \'number\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \'' + ($op) + '\' : \'' + ($op) + '=\'; ';
- if ($schema === undefined) {
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
- $schemaValue = $schemaValueExcl;
- $isData = $isDataExcl;
- }
- } else {
- var $exclIsNumber = typeof $schemaExcl == 'number',
- $opStr = $op;
- if ($exclIsNumber && $isData) {
- var $opExpr = '\'' + $opStr + '\'';
- out += ' if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { ';
- } else {
- if ($exclIsNumber && $schema === undefined) {
- $exclusive = true;
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
- $schemaValue = $schemaExcl;
- $notOp += '=';
- } else {
- if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema);
- if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) {
- $exclusive = true;
- $errorKeyword = $exclusiveKeyword;
- $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;
- $notOp += '=';
- } else {
- $exclusive = false;
- $opStr += '=';
- }
- }
- var $opExpr = '\'' + $opStr + '\'';
- out += ' if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { ';
- }
- }
- $errorKeyword = $errorKeyword || $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limit') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ' + ($opStr) + ' ';
- if ($isData) {
- out += '\' + ' + ($schemaValue);
- } else {
- out += '' + ($schemaValue) + '\'';
- }
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/_limitItems.js b/node_modules/ajv/lib/dotjs/_limitItems.js
deleted file mode 100644
index a27d118..0000000
--- a/node_modules/ajv/lib/dotjs/_limitItems.js
+++ /dev/null
@@ -1,77 +0,0 @@
-'use strict';
-module.exports = function generate__limitItems(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $op = $keyword == 'maxItems' ? '>' : '<';
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { ';
- var $errorKeyword = $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limitItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have ';
- if ($keyword == 'maxItems') {
- out += 'more';
- } else {
- out += 'fewer';
- }
- out += ' than ';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + ($schema);
- }
- out += ' items\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/_limitLength.js b/node_modules/ajv/lib/dotjs/_limitLength.js
deleted file mode 100644
index 789f374..0000000
--- a/node_modules/ajv/lib/dotjs/_limitLength.js
+++ /dev/null
@@ -1,82 +0,0 @@
-'use strict';
-module.exports = function generate__limitLength(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $op = $keyword == 'maxLength' ? '>' : '<';
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- if (it.opts.unicode === false) {
- out += ' ' + ($data) + '.length ';
- } else {
- out += ' ucs2length(' + ($data) + ') ';
- }
- out += ' ' + ($op) + ' ' + ($schemaValue) + ') { ';
- var $errorKeyword = $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limitLength') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT be ';
- if ($keyword == 'maxLength') {
- out += 'longer';
- } else {
- out += 'shorter';
- }
- out += ' than ';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + ($schema);
- }
- out += ' characters\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/_limitProperties.js b/node_modules/ajv/lib/dotjs/_limitProperties.js
deleted file mode 100644
index 11dc939..0000000
--- a/node_modules/ajv/lib/dotjs/_limitProperties.js
+++ /dev/null
@@ -1,77 +0,0 @@
-'use strict';
-module.exports = function generate__limitProperties(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $op = $keyword == 'maxProperties' ? '>' : '<';
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'number\') || ';
- }
- out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { ';
- var $errorKeyword = $keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || '_limitProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have ';
- if ($keyword == 'maxProperties') {
- out += 'more';
- } else {
- out += 'fewer';
- }
- out += ' than ';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + ($schema);
- }
- out += ' properties\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/allOf.js b/node_modules/ajv/lib/dotjs/allOf.js
deleted file mode 100644
index 4bad914..0000000
--- a/node_modules/ajv/lib/dotjs/allOf.js
+++ /dev/null
@@ -1,43 +0,0 @@
-'use strict';
-module.exports = function generate_allOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $currentBaseId = $it.baseId,
- $allSchemasEmpty = true;
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- $allSchemasEmpty = false;
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- if ($breakOnError) {
- if ($allSchemasEmpty) {
- out += ' if (true) { ';
- } else {
- out += ' ' + ($closingBraces.slice(0, -1)) + ' ';
- }
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/anyOf.js b/node_modules/ajv/lib/dotjs/anyOf.js
deleted file mode 100644
index 01551d5..0000000
--- a/node_modules/ajv/lib/dotjs/anyOf.js
+++ /dev/null
@@ -1,74 +0,0 @@
-'use strict';
-module.exports = function generate_anyOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $noEmptySchema = $schema.every(function($sch) {
- return (it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all));
- });
- if ($noEmptySchema) {
- var $currentBaseId = $it.baseId;
- out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { ';
- $closingBraces += '}';
- }
- }
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('anyOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match some schema in anyOf\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- if (it.opts.allErrors) {
- out += ' } ';
- }
- out = it.util.cleanUpCode(out);
- } else {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/comment.js b/node_modules/ajv/lib/dotjs/comment.js
deleted file mode 100644
index dd66bb8..0000000
--- a/node_modules/ajv/lib/dotjs/comment.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-module.exports = function generate_comment(it, $keyword, $ruleType) {
- var out = ' ';
- var $schema = it.schema[$keyword];
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $comment = it.util.toQuotedString($schema);
- if (it.opts.$comment === true) {
- out += ' console.log(' + ($comment) + ');';
- } else if (typeof it.opts.$comment == 'function') {
- out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/const.js b/node_modules/ajv/lib/dotjs/const.js
deleted file mode 100644
index 15b7c61..0000000
--- a/node_modules/ajv/lib/dotjs/const.js
+++ /dev/null
@@ -1,56 +0,0 @@
-'use strict';
-module.exports = function generate_const(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- if (!$isData) {
- out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';';
- }
- out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('const') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be equal to constant\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' }';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/contains.js b/node_modules/ajv/lib/dotjs/contains.js
deleted file mode 100644
index cd4dfab..0000000
--- a/node_modules/ajv/lib/dotjs/contains.js
+++ /dev/null
@@ -1,82 +0,0 @@
-'use strict';
-module.exports = function generate_contains(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $idx = 'i' + $lvl,
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $currentBaseId = it.baseId,
- $nonEmptySchema = (it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all));
- out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
- if ($nonEmptySchema) {
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- out += ' if (' + ($nextValid) + ') break; } ';
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {';
- } else {
- out += ' if (' + ($data) + '.length == 0) {';
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('contains') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should contain a valid item\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- if ($nonEmptySchema) {
- out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- }
- if (it.opts.allErrors) {
- out += ' } ';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/custom.js b/node_modules/ajv/lib/dotjs/custom.js
deleted file mode 100644
index f3e641e..0000000
--- a/node_modules/ajv/lib/dotjs/custom.js
+++ /dev/null
@@ -1,228 +0,0 @@
-'use strict';
-module.exports = function generate_custom(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $rule = this,
- $definition = 'definition' + $lvl,
- $rDef = $rule.definition,
- $closingBraces = '';
- var $compile, $inline, $macro, $ruleValidate, $validateCode;
- if ($isData && $rDef.$data) {
- $validateCode = 'keywordValidate' + $lvl;
- var $validateSchema = $rDef.validateSchema;
- out += ' var ' + ($definition) + ' = RULES.custom[\'' + ($keyword) + '\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;';
- } else {
- $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);
- if (!$ruleValidate) return;
- $schemaValue = 'validate.schema' + $schemaPath;
- $validateCode = $ruleValidate.code;
- $compile = $rDef.compile;
- $inline = $rDef.inline;
- $macro = $rDef.macro;
- }
- var $ruleErrs = $validateCode + '.errors',
- $i = 'i' + $lvl,
- $ruleErr = 'ruleErr' + $lvl,
- $asyncKeyword = $rDef.async;
- if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');
- if (!($inline || $macro)) {
- out += '' + ($ruleErrs) + ' = null;';
- }
- out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
- if ($isData && $rDef.$data) {
- $closingBraces += '}';
- out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { ';
- if ($validateSchema) {
- $closingBraces += '}';
- out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { ';
- }
- }
- if ($inline) {
- if ($rDef.statements) {
- out += ' ' + ($ruleValidate.validate) + ' ';
- } else {
- out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; ';
- }
- } else if ($macro) {
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- $it.schema = $ruleValidate.validate;
- $it.schemaPath = '';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var $code = it.validate($it).replace(/validate\.schema/g, $validateCode);
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' ' + ($code);
- } else {
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = '';
- out += ' ' + ($validateCode) + '.call( ';
- if (it.opts.passContext) {
- out += 'this';
- } else {
- out += 'self';
- }
- if ($compile || $rDef.schema === false) {
- out += ' , ' + ($data) + ' ';
- } else {
- out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';
- }
- out += ' , (dataPath || \'\')';
- if (it.errorPath != '""') {
- out += ' + ' + (it.errorPath);
- }
- var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
- $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
- out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) ';
- var def_callRuleValidate = out;
- out = $$outStack.pop();
- if ($rDef.errors === false) {
- out += ' ' + ($valid) + ' = ';
- if ($asyncKeyword) {
- out += 'await ';
- }
- out += '' + (def_callRuleValidate) + '; ';
- } else {
- if ($asyncKeyword) {
- $ruleErrs = 'customErrors' + $lvl;
- out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';
- } else {
- out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; ';
- }
- }
- }
- if ($rDef.modifying) {
- out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];';
- }
- out += '' + ($closingBraces);
- if ($rDef.valid) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- } else {
- out += ' if ( ';
- if ($rDef.valid === undefined) {
- out += ' !';
- if ($macro) {
- out += '' + ($nextValid);
- } else {
- out += '' + ($valid);
- }
- } else {
- out += ' ' + (!$rDef.valid) + ' ';
- }
- out += ') { ';
- $errorKeyword = $rule.keyword;
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = '';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- var def_customError = out;
- out = $$outStack.pop();
- if ($inline) {
- if ($rDef.errors) {
- if ($rDef.errors != 'full') {
- out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
- if (it.opts.verbose) {
- out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
- }
- out += ' } ';
- }
- } else {
- if ($rDef.errors === false) {
- out += ' ' + (def_customError) + ' ';
- } else {
- out += ' if (' + ($errs) + ' == errors) { ' + (def_customError) + ' } else { for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; if (' + ($ruleErr) + '.schemaPath === undefined) { ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; } ';
- if (it.opts.verbose) {
- out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
- }
- out += ' } } ';
- }
- }
- } else if ($macro) {
- out += ' var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'custom') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \'' + ($rule.keyword) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should pass "' + ($rule.keyword) + '" keyword validation\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- } else {
- if ($rDef.errors === false) {
- out += ' ' + (def_customError) + ' ';
- } else {
- out += ' if (Array.isArray(' + ($ruleErrs) + ')) { if (vErrors === null) vErrors = ' + ($ruleErrs) + '; else vErrors = vErrors.concat(' + ($ruleErrs) + '); errors = vErrors.length; for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + '<errors; ' + ($i) + '++) { var ' + ($ruleErr) + ' = vErrors[' + ($i) + ']; if (' + ($ruleErr) + '.dataPath === undefined) ' + ($ruleErr) + '.dataPath = (dataPath || \'\') + ' + (it.errorPath) + '; ' + ($ruleErr) + '.schemaPath = "' + ($errSchemaPath) + '"; ';
- if (it.opts.verbose) {
- out += ' ' + ($ruleErr) + '.schema = ' + ($schemaValue) + '; ' + ($ruleErr) + '.data = ' + ($data) + '; ';
- }
- out += ' } } else { ' + (def_customError) + ' } ';
- }
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/dependencies.js b/node_modules/ajv/lib/dotjs/dependencies.js
deleted file mode 100644
index 9678936..0000000
--- a/node_modules/ajv/lib/dotjs/dependencies.js
+++ /dev/null
@@ -1,168 +0,0 @@
-'use strict';
-module.exports = function generate_dependencies(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $schemaDeps = {},
- $propertyDeps = {},
- $ownProperties = it.opts.ownProperties;
- for ($property in $schema) {
- var $sch = $schema[$property];
- var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;
- $deps[$property] = $sch;
- }
- out += 'var ' + ($errs) + ' = errors;';
- var $currentErrorPath = it.errorPath;
- out += 'var missing' + ($lvl) + ';';
- for (var $property in $propertyDeps) {
- $deps = $propertyDeps[$property];
- if ($deps.length) {
- out += ' if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
- }
- if ($breakOnError) {
- out += ' && ( ';
- var arr1 = $deps;
- if (arr1) {
- var $propertyKey, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $propertyKey = arr1[$i += 1];
- if ($i) {
- out += ' || ';
- }
- var $prop = it.util.getProperty($propertyKey),
- $useData = $data + $prop;
- out += ' ( ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';
- }
- }
- out += ')) { ';
- var $propertyPath = 'missing' + $lvl,
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should have ';
- if ($deps.length == 1) {
- out += 'property ' + (it.util.escapeQuotes($deps[0]));
- } else {
- out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
- }
- out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- } else {
- out += ' ) { ';
- var arr2 = $deps;
- if (arr2) {
- var $propertyKey, i2 = -1,
- l2 = arr2.length - 1;
- while (i2 < l2) {
- $propertyKey = arr2[i2 += 1];
- var $prop = it.util.getProperty($propertyKey),
- $missingProperty = it.util.escapeQuotes($propertyKey),
- $useData = $data + $prop;
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('dependencies') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \'' + (it.util.escapeQuotes($property)) + '\', missingProperty: \'' + ($missingProperty) + '\', depsCount: ' + ($deps.length) + ', deps: \'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(", "))) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should have ';
- if ($deps.length == 1) {
- out += 'property ' + (it.util.escapeQuotes($deps[0]));
- } else {
- out += 'properties ' + (it.util.escapeQuotes($deps.join(", ")));
- }
- out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';
- }
- }
- }
- out += ' } ';
- if ($breakOnError) {
- $closingBraces += '}';
- out += ' else { ';
- }
- }
- }
- it.errorPath = $currentErrorPath;
- var $currentBaseId = $it.baseId;
- for (var $property in $schemaDeps) {
- var $sch = $schemaDeps[$property];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($property)) + '\') ';
- }
- out += ') { ';
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + it.util.getProperty($property);
- $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/enum.js b/node_modules/ajv/lib/dotjs/enum.js
deleted file mode 100644
index 90580b9..0000000
--- a/node_modules/ajv/lib/dotjs/enum.js
+++ /dev/null
@@ -1,66 +0,0 @@
-'use strict';
-module.exports = function generate_enum(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $i = 'i' + $lvl,
- $vSchema = 'schema' + $lvl;
- if (!$isData) {
- out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';
- }
- out += 'var ' + ($valid) + ';';
- if ($isData) {
- out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
- }
- out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';
- if ($isData) {
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('enum') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be equal to one of the allowed values\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' }';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/format.js b/node_modules/ajv/lib/dotjs/format.js
deleted file mode 100644
index cd9a569..0000000
--- a/node_modules/ajv/lib/dotjs/format.js
+++ /dev/null
@@ -1,150 +0,0 @@
-'use strict';
-module.exports = function generate_format(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- if (it.opts.format === false) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- }
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $unknownFormats = it.opts.unknownFormats,
- $allowUnknown = Array.isArray($unknownFormats);
- if ($isData) {
- var $format = 'format' + $lvl,
- $isObject = 'isObject' + $lvl,
- $formatType = 'formatType' + $lvl;
- out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \'object\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \'string\'; if (' + ($isObject) + ') { ';
- if (it.async) {
- out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; ';
- }
- out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
- }
- out += ' (';
- if ($unknownFormats != 'ignore') {
- out += ' (' + ($schemaValue) + ' && !' + ($format) + ' ';
- if ($allowUnknown) {
- out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 ';
- }
- out += ') || ';
- }
- out += ' (' + ($format) + ' && ' + ($formatType) + ' == \'' + ($ruleType) + '\' && !(typeof ' + ($format) + ' == \'function\' ? ';
- if (it.async) {
- out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';
- } else {
- out += ' ' + ($format) + '(' + ($data) + ') ';
- }
- out += ' : ' + ($format) + '.test(' + ($data) + '))))) {';
- } else {
- var $format = it.formats[$schema];
- if (!$format) {
- if ($unknownFormats == 'ignore') {
- it.logger.warn('unknown format "' + $schema + '" ignored in schema at path "' + it.errSchemaPath + '"');
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- } else {
- throw new Error('unknown format "' + $schema + '" is used in schema at path "' + it.errSchemaPath + '"');
- }
- }
- var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;
- var $formatType = $isObject && $format.type || 'string';
- if ($isObject) {
- var $async = $format.async === true;
- $format = $format.validate;
- }
- if ($formatType != $ruleType) {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- return out;
- }
- if ($async) {
- if (!it.async) throw new Error('async format in sync schema');
- var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';
- out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { ';
- } else {
- out += ' if (! ';
- var $formatRef = 'formats' + it.util.getProperty($schema);
- if ($isObject) $formatRef += '.validate';
- if (typeof $format == 'function') {
- out += ' ' + ($formatRef) + '(' + ($data) + ') ';
- } else {
- out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';
- }
- out += ') { ';
- }
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('format') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: ';
- if ($isData) {
- out += '' + ($schemaValue);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match format "';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + (it.util.escapeQuotes($schema));
- }
- out += '"\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/if.js b/node_modules/ajv/lib/dotjs/if.js
deleted file mode 100644
index 019f61a..0000000
--- a/node_modules/ajv/lib/dotjs/if.js
+++ /dev/null
@@ -1,104 +0,0 @@
-'use strict';
-module.exports = function generate_if(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $thenSch = it.schema['then'],
- $elseSch = it.schema['else'],
- $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? typeof $thenSch == 'object' && Object.keys($thenSch).length > 0 : it.util.schemaHasRules($thenSch, it.RULES.all)),
- $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? typeof $elseSch == 'object' && Object.keys($elseSch).length > 0 : it.util.schemaHasRules($elseSch, it.RULES.all)),
- $currentBaseId = $it.baseId;
- if ($thenPresent || $elsePresent) {
- var $ifClause;
- $it.createErrors = false;
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- $it.createErrors = true;
- out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- it.compositeRule = $it.compositeRule = $wasComposite;
- if ($thenPresent) {
- out += ' if (' + ($nextValid) + ') { ';
- $it.schema = it.schema['then'];
- $it.schemaPath = it.schemaPath + '.then';
- $it.errSchemaPath = it.errSchemaPath + '/then';
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
- if ($thenPresent && $elsePresent) {
- $ifClause = 'ifClause' + $lvl;
- out += ' var ' + ($ifClause) + ' = \'then\'; ';
- } else {
- $ifClause = '\'then\'';
- }
- out += ' } ';
- if ($elsePresent) {
- out += ' else { ';
- }
- } else {
- out += ' if (!' + ($nextValid) + ') { ';
- }
- if ($elsePresent) {
- $it.schema = it.schema['else'];
- $it.schemaPath = it.schemaPath + '.else';
- $it.errSchemaPath = it.errSchemaPath + '/else';
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';
- if ($thenPresent && $elsePresent) {
- $ifClause = 'ifClause' + $lvl;
- out += ' var ' + ($ifClause) + ' = \'else\'; ';
- } else {
- $ifClause = '\'else\'';
- }
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('if') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match "\' + ' + ($ifClause) + ' + \'" schema\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- out = it.util.cleanUpCode(out);
- } else {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/index.js b/node_modules/ajv/lib/dotjs/index.js
deleted file mode 100644
index 2fb1b00..0000000
--- a/node_modules/ajv/lib/dotjs/index.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-
-//all requires must be explicit because browserify won't work with dynamic requires
-module.exports = {
- '$ref': require('./ref'),
- allOf: require('./allOf'),
- anyOf: require('./anyOf'),
- '$comment': require('./comment'),
- const: require('./const'),
- contains: require('./contains'),
- dependencies: require('./dependencies'),
- 'enum': require('./enum'),
- format: require('./format'),
- 'if': require('./if'),
- items: require('./items'),
- maximum: require('./_limit'),
- minimum: require('./_limit'),
- maxItems: require('./_limitItems'),
- minItems: require('./_limitItems'),
- maxLength: require('./_limitLength'),
- minLength: require('./_limitLength'),
- maxProperties: require('./_limitProperties'),
- minProperties: require('./_limitProperties'),
- multipleOf: require('./multipleOf'),
- not: require('./not'),
- oneOf: require('./oneOf'),
- pattern: require('./pattern'),
- properties: require('./properties'),
- propertyNames: require('./propertyNames'),
- required: require('./required'),
- uniqueItems: require('./uniqueItems'),
- validate: require('./validate')
-};
diff --git a/node_modules/ajv/lib/dotjs/items.js b/node_modules/ajv/lib/dotjs/items.js
deleted file mode 100644
index d5532f0..0000000
--- a/node_modules/ajv/lib/dotjs/items.js
+++ /dev/null
@@ -1,141 +0,0 @@
-'use strict';
-module.exports = function generate_items(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $idx = 'i' + $lvl,
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $currentBaseId = it.baseId;
- out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';
- if (Array.isArray($schema)) {
- var $additionalItems = it.schema.additionalItems;
- if ($additionalItems === false) {
- out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; ';
- var $currErrSchemaPath = $errSchemaPath;
- $errSchemaPath = it.errSchemaPath + '/additionalItems';
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('additionalItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have more than ' + ($schema.length) + ' items\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- $errSchemaPath = $currErrSchemaPath;
- if ($breakOnError) {
- $closingBraces += '}';
- out += ' else { ';
- }
- }
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { ';
- var $passData = $data + '[' + $i + ']';
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);
- $it.dataPathArr[$dataNxt] = $i;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0 : it.util.schemaHasRules($additionalItems, it.RULES.all))) {
- $it.schema = $additionalItems;
- $it.schemaPath = it.schemaPath + '.additionalItems';
- $it.errSchemaPath = it.errSchemaPath + '/additionalItems';
- out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- out += ' } } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- } else if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);
- var $passData = $data + '[' + $idx + ']';
- $it.dataPathArr[$dataNxt] = $idx;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- out += ' }';
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/multipleOf.js b/node_modules/ajv/lib/dotjs/multipleOf.js
deleted file mode 100644
index af087d2..0000000
--- a/node_modules/ajv/lib/dotjs/multipleOf.js
+++ /dev/null
@@ -1,77 +0,0 @@
-'use strict';
-module.exports = function generate_multipleOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- out += 'var division' + ($lvl) + ';if (';
- if ($isData) {
- out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \'number\' || ';
- }
- out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', ';
- if (it.opts.multipleOfPrecision) {
- out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' ';
- } else {
- out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') ';
- }
- out += ' ) ';
- if ($isData) {
- out += ' ) ';
- }
- out += ' ) { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('multipleOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be multiple of ';
- if ($isData) {
- out += '\' + ' + ($schemaValue);
- } else {
- out += '' + ($schemaValue) + '\'';
- }
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/not.js b/node_modules/ajv/lib/dotjs/not.js
deleted file mode 100644
index 6aea659..0000000
--- a/node_modules/ajv/lib/dotjs/not.js
+++ /dev/null
@@ -1,84 +0,0 @@
-'use strict';
-module.exports = function generate_not(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- out += ' var ' + ($errs) + ' = errors; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- $it.createErrors = false;
- var $allErrorsOption;
- if ($it.opts.allErrors) {
- $allErrorsOption = $it.opts.allErrors;
- $it.opts.allErrors = false;
- }
- out += ' ' + (it.validate($it)) + ' ';
- $it.createErrors = true;
- if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' if (' + ($nextValid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT be valid\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';
- if (it.opts.allErrors) {
- out += ' } ';
- }
- } else {
- out += ' var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('not') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT be valid\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if ($breakOnError) {
- out += ' if (false) { ';
- }
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/oneOf.js b/node_modules/ajv/lib/dotjs/oneOf.js
deleted file mode 100644
index 30988d5..0000000
--- a/node_modules/ajv/lib/dotjs/oneOf.js
+++ /dev/null
@@ -1,73 +0,0 @@
-'use strict';
-module.exports = function generate_oneOf(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $currentBaseId = $it.baseId,
- $prevValid = 'prevValid' + $lvl,
- $passingSchemas = 'passingSchemas' + $lvl;
- out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var arr1 = $schema;
- if (arr1) {
- var $sch, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $sch = arr1[$i += 1];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + '[' + $i + ']';
- $it.errSchemaPath = $errSchemaPath + '/' + $i;
- out += ' ' + (it.validate($it)) + ' ';
- $it.baseId = $currentBaseId;
- } else {
- out += ' var ' + ($nextValid) + ' = true; ';
- }
- if ($i) {
- out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { ';
- $closingBraces += '}';
- }
- out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }';
- }
- }
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('oneOf') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match exactly one schema in oneOf\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }';
- if (it.opts.allErrors) {
- out += ' } ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/pattern.js b/node_modules/ajv/lib/dotjs/pattern.js
deleted file mode 100644
index 1d74d6b..0000000
--- a/node_modules/ajv/lib/dotjs/pattern.js
+++ /dev/null
@@ -1,75 +0,0 @@
-'use strict';
-module.exports = function generate_pattern(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);
- out += 'if ( ';
- if ($isData) {
- out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \'string\') || ';
- }
- out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('pattern') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: ';
- if ($isData) {
- out += '' + ($schemaValue);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should match pattern "';
- if ($isData) {
- out += '\' + ' + ($schemaValue) + ' + \'';
- } else {
- out += '' + (it.util.escapeQuotes($schema));
- }
- out += '"\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + (it.util.toQuotedString($schema));
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += '} ';
- if ($breakOnError) {
- out += ' else { ';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/properties.js b/node_modules/ajv/lib/dotjs/properties.js
deleted file mode 100644
index 34a82c6..0000000
--- a/node_modules/ajv/lib/dotjs/properties.js
+++ /dev/null
@@ -1,330 +0,0 @@
-'use strict';
-module.exports = function generate_properties(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- var $key = 'key' + $lvl,
- $idx = 'idx' + $lvl,
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $dataProperties = 'dataProperties' + $lvl;
- var $schemaKeys = Object.keys($schema || {}),
- $pProperties = it.schema.patternProperties || {},
- $pPropertyKeys = Object.keys($pProperties),
- $aProperties = it.schema.additionalProperties,
- $someProperties = $schemaKeys.length || $pPropertyKeys.length,
- $noAdditional = $aProperties === false,
- $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length,
- $removeAdditional = it.opts.removeAdditional,
- $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional,
- $ownProperties = it.opts.ownProperties,
- $currentBaseId = it.baseId;
- var $required = it.schema.required;
- if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) var $requiredHash = it.util.toHash($required);
- out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;';
- if ($ownProperties) {
- out += ' var ' + ($dataProperties) + ' = undefined;';
- }
- if ($checkAdditional) {
- if ($ownProperties) {
- out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
- } else {
- out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
- }
- if ($someProperties) {
- out += ' var isAdditional' + ($lvl) + ' = !(false ';
- if ($schemaKeys.length) {
- if ($schemaKeys.length > 8) {
- out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') ';
- } else {
- var arr1 = $schemaKeys;
- if (arr1) {
- var $propertyKey, i1 = -1,
- l1 = arr1.length - 1;
- while (i1 < l1) {
- $propertyKey = arr1[i1 += 1];
- out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' ';
- }
- }
- }
- }
- if ($pPropertyKeys.length) {
- var arr2 = $pPropertyKeys;
- if (arr2) {
- var $pProperty, $i = -1,
- l2 = arr2.length - 1;
- while ($i < l2) {
- $pProperty = arr2[$i += 1];
- out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') ';
- }
- }
- }
- out += ' ); if (isAdditional' + ($lvl) + ') { ';
- }
- if ($removeAdditional == 'all') {
- out += ' delete ' + ($data) + '[' + ($key) + ']; ';
- } else {
- var $currentErrorPath = it.errorPath;
- var $additionalProperty = '\' + ' + $key + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- }
- if ($noAdditional) {
- if ($removeAdditional) {
- out += ' delete ' + ($data) + '[' + ($key) + ']; ';
- } else {
- out += ' ' + ($nextValid) + ' = false; ';
- var $currErrSchemaPath = $errSchemaPath;
- $errSchemaPath = it.errSchemaPath + '/additionalProperties';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('additionalProperties') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \'' + ($additionalProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is an invalid additional property';
- } else {
- out += 'should NOT have additional properties';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- $errSchemaPath = $currErrSchemaPath;
- if ($breakOnError) {
- out += ' break; ';
- }
- }
- } else if ($additionalIsSchema) {
- if ($removeAdditional == 'failing') {
- out += ' var ' + ($errs) + ' = errors; ';
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- $it.schema = $aProperties;
- $it.schemaPath = it.schemaPath + '.additionalProperties';
- $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';
- $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } ';
- it.compositeRule = $it.compositeRule = $wasComposite;
- } else {
- $it.schema = $aProperties;
- $it.schemaPath = it.schemaPath + '.additionalProperties';
- $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';
- $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- }
- }
- it.errorPath = $currentErrorPath;
- }
- if ($someProperties) {
- out += ' } ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- var $useDefaults = it.opts.useDefaults && !it.compositeRule;
- if ($schemaKeys.length) {
- var arr3 = $schemaKeys;
- if (arr3) {
- var $propertyKey, i3 = -1,
- l3 = arr3.length - 1;
- while (i3 < l3) {
- $propertyKey = arr3[i3 += 1];
- var $sch = $schema[$propertyKey];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- var $prop = it.util.getProperty($propertyKey),
- $passData = $data + $prop,
- $hasDefault = $useDefaults && $sch.default !== undefined;
- $it.schema = $sch;
- $it.schemaPath = $schemaPath + $prop;
- $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey);
- $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);
- $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- $code = it.util.varReplace($code, $nextData, $passData);
- var $useData = $passData;
- } else {
- var $useData = $nextData;
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ';
- }
- if ($hasDefault) {
- out += ' ' + ($code) + ' ';
- } else {
- if ($requiredHash && $requiredHash[$propertyKey]) {
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { ' + ($nextValid) + ' = false; ';
- var $currentErrorPath = it.errorPath,
- $currErrSchemaPath = $errSchemaPath,
- $missingProperty = it.util.escapeQuotes($propertyKey);
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- $errSchemaPath = it.errSchemaPath + '/required';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- $errSchemaPath = $currErrSchemaPath;
- it.errorPath = $currentErrorPath;
- out += ' } else { ';
- } else {
- if ($breakOnError) {
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { ' + ($nextValid) + ' = true; } else { ';
- } else {
- out += ' if (' + ($useData) + ' !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ' ) { ';
- }
- }
- out += ' ' + ($code) + ' } ';
- }
- }
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- if ($pPropertyKeys.length) {
- var arr4 = $pPropertyKeys;
- if (arr4) {
- var $pProperty, i4 = -1,
- l4 = arr4.length - 1;
- while (i4 < l4) {
- $pProperty = arr4[i4 += 1];
- var $sch = $pProperties[$pProperty];
- if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {
- $it.schema = $sch;
- $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty);
- $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty);
- if ($ownProperties) {
- out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
- } else {
- out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
- }
- out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { ';
- $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);
- var $passData = $data + '[' + $key + ']';
- $it.dataPathArr[$dataNxt] = $key;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- if ($breakOnError) {
- out += ' if (!' + ($nextValid) + ') break; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else ' + ($nextValid) + ' = true; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- $closingBraces += '}';
- }
- }
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/propertyNames.js b/node_modules/ajv/lib/dotjs/propertyNames.js
deleted file mode 100644
index b2bf295..0000000
--- a/node_modules/ajv/lib/dotjs/propertyNames.js
+++ /dev/null
@@ -1,82 +0,0 @@
-'use strict';
-module.exports = function generate_propertyNames(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $errs = 'errs__' + $lvl;
- var $it = it.util.copy(it);
- var $closingBraces = '';
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- out += 'var ' + ($errs) + ' = errors;';
- if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {
- $it.schema = $schema;
- $it.schemaPath = $schemaPath;
- $it.errSchemaPath = $errSchemaPath;
- var $key = 'key' + $lvl,
- $idx = 'idx' + $lvl,
- $i = 'i' + $lvl,
- $invalidName = '\' + ' + $key + ' + \'',
- $dataNxt = $it.dataLevel = it.dataLevel + 1,
- $nextData = 'data' + $dataNxt,
- $dataProperties = 'dataProperties' + $lvl,
- $ownProperties = it.opts.ownProperties,
- $currentBaseId = it.baseId;
- if ($ownProperties) {
- out += ' var ' + ($dataProperties) + ' = undefined; ';
- }
- if ($ownProperties) {
- out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';
- } else {
- out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';
- }
- out += ' var startErrs' + ($lvl) + ' = errors; ';
- var $passData = $key;
- var $wasComposite = it.compositeRule;
- it.compositeRule = $it.compositeRule = true;
- var $code = it.validate($it);
- $it.baseId = $currentBaseId;
- if (it.util.varOccurences($code, $nextData) < 2) {
- out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';
- } else {
- out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';
- }
- it.compositeRule = $it.compositeRule = $wasComposite;
- out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + '<errors; ' + ($i) + '++) { vErrors[' + ($i) + '].propertyName = ' + ($key) + '; } var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('propertyNames') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { propertyName: \'' + ($invalidName) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'property name \\\'' + ($invalidName) + '\\\' is invalid\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; return false; ';
- }
- }
- if ($breakOnError) {
- out += ' break; ';
- }
- out += ' } }';
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';
- }
- out = it.util.cleanUpCode(out);
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/ref.js b/node_modules/ajv/lib/dotjs/ref.js
deleted file mode 100644
index 8042a47..0000000
--- a/node_modules/ajv/lib/dotjs/ref.js
+++ /dev/null
@@ -1,124 +0,0 @@
-'use strict';
-module.exports = function generate_ref(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $async, $refCode;
- if ($schema == '#' || $schema == '#/') {
- if (it.isRoot) {
- $async = it.async;
- $refCode = 'validate';
- } else {
- $async = it.root.schema.$async === true;
- $refCode = 'root.refVal[0]';
- }
- } else {
- var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot);
- if ($refVal === undefined) {
- var $message = it.MissingRefError.message(it.baseId, $schema);
- if (it.opts.missingRefs == 'fail') {
- it.logger.error($message);
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('$ref') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { ref: \'' + (it.util.escapeQuotes($schema)) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'can\\\'t resolve reference ' + (it.util.escapeQuotes($schema)) + '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ' + (it.util.toQuotedString($schema)) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- if ($breakOnError) {
- out += ' if (false) { ';
- }
- } else if (it.opts.missingRefs == 'ignore') {
- it.logger.warn($message);
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- } else {
- throw new it.MissingRefError(it.baseId, $schema, $message);
- }
- } else if ($refVal.inline) {
- var $it = it.util.copy(it);
- $it.level++;
- var $nextValid = 'valid' + $it.level;
- $it.schema = $refVal.schema;
- $it.schemaPath = '';
- $it.errSchemaPath = $schema;
- var $code = it.validate($it).replace(/validate\.schema/g, $refVal.code);
- out += ' ' + ($code) + ' ';
- if ($breakOnError) {
- out += ' if (' + ($nextValid) + ') { ';
- }
- } else {
- $async = $refVal.$async === true || (it.async && $refVal.$async !== false);
- $refCode = $refVal.code;
- }
- }
- if ($refCode) {
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = '';
- if (it.opts.passContext) {
- out += ' ' + ($refCode) + '.call(this, ';
- } else {
- out += ' ' + ($refCode) + '( ';
- }
- out += ' ' + ($data) + ', (dataPath || \'\')';
- if (it.errorPath != '""') {
- out += ' + ' + (it.errorPath);
- }
- var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
- $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
- out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ', rootData) ';
- var __callValidate = out;
- out = $$outStack.pop();
- if ($async) {
- if (!it.async) throw new Error('async schema referenced by sync schema');
- if ($breakOnError) {
- out += ' var ' + ($valid) + '; ';
- }
- out += ' try { await ' + (__callValidate) + '; ';
- if ($breakOnError) {
- out += ' ' + ($valid) + ' = true; ';
- }
- out += ' } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ';
- if ($breakOnError) {
- out += ' ' + ($valid) + ' = false; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' if (' + ($valid) + ') { ';
- }
- } else {
- out += ' if (!' + (__callValidate) + ') { if (vErrors === null) vErrors = ' + ($refCode) + '.errors; else vErrors = vErrors.concat(' + ($refCode) + '.errors); errors = vErrors.length; } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- }
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/required.js b/node_modules/ajv/lib/dotjs/required.js
deleted file mode 100644
index 12110a4..0000000
--- a/node_modules/ajv/lib/dotjs/required.js
+++ /dev/null
@@ -1,270 +0,0 @@
-'use strict';
-module.exports = function generate_required(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- var $vSchema = 'schema' + $lvl;
- if (!$isData) {
- if ($schema.length < it.opts.loopRequired && it.schema.properties && Object.keys(it.schema.properties).length) {
- var $required = [];
- var arr1 = $schema;
- if (arr1) {
- var $property, i1 = -1,
- l1 = arr1.length - 1;
- while (i1 < l1) {
- $property = arr1[i1 += 1];
- var $propertySch = it.schema.properties[$property];
- if (!($propertySch && (it.opts.strictKeywords ? typeof $propertySch == 'object' && Object.keys($propertySch).length > 0 : it.util.schemaHasRules($propertySch, it.RULES.all)))) {
- $required[$required.length] = $property;
- }
- }
- }
- } else {
- var $required = $schema;
- }
- }
- if ($isData || $required.length) {
- var $currentErrorPath = it.errorPath,
- $loopRequired = $isData || $required.length >= it.opts.loopRequired,
- $ownProperties = it.opts.ownProperties;
- if ($breakOnError) {
- out += ' var missing' + ($lvl) + '; ';
- if ($loopRequired) {
- if (!$isData) {
- out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';
- }
- var $i = 'i' + $lvl,
- $propertyPath = 'schema' + $lvl + '[' + $i + ']',
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
- }
- out += ' var ' + ($valid) + ' = true; ';
- if ($isData) {
- out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';
- }
- out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined ';
- if ($ownProperties) {
- out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';
- }
- out += '; if (!' + ($valid) + ') break; } ';
- if ($isData) {
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- } else {
- out += ' if ( ';
- var arr2 = $required;
- if (arr2) {
- var $propertyKey, $i = -1,
- l2 = arr2.length - 1;
- while ($i < l2) {
- $propertyKey = arr2[$i += 1];
- if ($i) {
- out += ' || ';
- }
- var $prop = it.util.getProperty($propertyKey),
- $useData = $data + $prop;
- out += ' ( ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';
- }
- }
- out += ') { ';
- var $propertyPath = 'missing' + $lvl,
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- }
- } else {
- if ($loopRequired) {
- if (!$isData) {
- out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';
- }
- var $i = 'i' + $lvl,
- $propertyPath = 'schema' + $lvl + '[' + $i + ']',
- $missingProperty = '\' + ' + $propertyPath + ' + \'';
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);
- }
- if ($isData) {
- out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { ';
- }
- out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';
- }
- out += ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ';
- if ($isData) {
- out += ' } ';
- }
- } else {
- var arr3 = $required;
- if (arr3) {
- var $propertyKey, i3 = -1,
- l3 = arr3.length - 1;
- while (i3 < l3) {
- $propertyKey = arr3[i3 += 1];
- var $prop = it.util.getProperty($propertyKey),
- $missingProperty = it.util.escapeQuotes($propertyKey),
- $useData = $data + $prop;
- if (it.opts._errorDataPathProperty) {
- it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);
- }
- out += ' if ( ' + ($useData) + ' === undefined ';
- if ($ownProperties) {
- out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \'' + (it.util.escapeQuotes($propertyKey)) + '\') ';
- }
- out += ') { var err = '; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('required') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \'' + ($missingProperty) + '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'';
- if (it.opts._errorDataPathProperty) {
- out += 'is a required property';
- } else {
- out += 'should have required property \\\'' + ($missingProperty) + '\\\'';
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';
- }
- }
- }
- }
- it.errorPath = $currentErrorPath;
- } else if ($breakOnError) {
- out += ' if (true) {';
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/uniqueItems.js b/node_modules/ajv/lib/dotjs/uniqueItems.js
deleted file mode 100644
index c4f6536..0000000
--- a/node_modules/ajv/lib/dotjs/uniqueItems.js
+++ /dev/null
@@ -1,86 +0,0 @@
-'use strict';
-module.exports = function generate_uniqueItems(it, $keyword, $ruleType) {
- var out = ' ';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- var $isData = it.opts.$data && $schema && $schema.$data,
- $schemaValue;
- if ($isData) {
- out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';
- $schemaValue = 'schema' + $lvl;
- } else {
- $schemaValue = $schema;
- }
- if (($schema || $isData) && it.opts.uniqueItems !== false) {
- if ($isData) {
- out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \'boolean\') ' + ($valid) + ' = false; else { ';
- }
- out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { ';
- var $itemType = it.schema.items && it.schema.items.type,
- $typeIsArray = Array.isArray($itemType);
- if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) {
- out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } ';
- } else {
- out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; ';
- var $method = 'checkDataType' + ($typeIsArray ? 's' : '');
- out += ' if (' + (it.util[$method]($itemType, 'item', true)) + ') continue; ';
- if ($typeIsArray) {
- out += ' if (typeof item == \'string\') item = \'"\' + item; ';
- }
- out += ' if (typeof itemIndices[item] == \'number\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ';
- }
- out += ' } ';
- if ($isData) {
- out += ' } ';
- }
- out += ' if (!' + ($valid) + ') { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ('uniqueItems') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should NOT have duplicate items (items ## \' + j + \' and \' + i + \' are identical)\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: ';
- if ($isData) {
- out += 'validate.schema' + ($schemaPath);
- } else {
- out += '' + ($schema);
- }
- out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- if ($breakOnError) {
- out += ' else { ';
- }
- } else {
- if ($breakOnError) {
- out += ' if (true) { ';
- }
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/dotjs/validate.js b/node_modules/ajv/lib/dotjs/validate.js
deleted file mode 100644
index cd0efc8..0000000
--- a/node_modules/ajv/lib/dotjs/validate.js
+++ /dev/null
@@ -1,494 +0,0 @@
-'use strict';
-module.exports = function generate_validate(it, $keyword, $ruleType) {
- var out = '';
- var $async = it.schema.$async === true,
- $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
- $id = it.self._getId(it.schema);
- if (it.opts.strictKeywords) {
- var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);
- if ($unknownKwd) {
- var $keywordsMsg = 'unknown keyword: ' + $unknownKwd;
- if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg);
- else throw new Error($keywordsMsg);
- }
- }
- if (it.isTop) {
- out += ' var validate = ';
- if ($async) {
- it.async = true;
- out += 'async ';
- }
- out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \'use strict\'; ';
- if ($id && (it.opts.sourceCode || it.opts.processCode)) {
- out += ' ' + ('/\*# sourceURL=' + $id + ' */') + ' ';
- }
- }
- if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) {
- var $keyword = 'false schema';
- var $lvl = it.level;
- var $dataLvl = it.dataLevel;
- var $schema = it.schema[$keyword];
- var $schemaPath = it.schemaPath + it.util.getProperty($keyword);
- var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
- var $breakOnError = !it.opts.allErrors;
- var $errorKeyword;
- var $data = 'data' + ($dataLvl || '');
- var $valid = 'valid' + $lvl;
- if (it.schema === false) {
- if (it.isTop) {
- $breakOnError = true;
- } else {
- out += ' var ' + ($valid) + ' = false; ';
- }
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'false schema') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';
- if (it.opts.messages !== false) {
- out += ' , message: \'boolean schema is false\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- } else {
- if (it.isTop) {
- if ($async) {
- out += ' return data; ';
- } else {
- out += ' validate.errors = null; return true; ';
- }
- } else {
- out += ' var ' + ($valid) + ' = true; ';
- }
- }
- if (it.isTop) {
- out += ' }; return validate; ';
- }
- return out;
- }
- if (it.isTop) {
- var $top = it.isTop,
- $lvl = it.level = 0,
- $dataLvl = it.dataLevel = 0,
- $data = 'data';
- it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));
- it.baseId = it.baseId || it.rootId;
- delete it.isTop;
- it.dataPathArr = [undefined];
- if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored in the schema root';
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- out += ' var vErrors = null; ';
- out += ' var errors = 0; ';
- out += ' if (rootData === undefined) rootData = data; ';
- } else {
- var $lvl = it.level,
- $dataLvl = it.dataLevel,
- $data = 'data' + ($dataLvl || '');
- if ($id) it.baseId = it.resolve.url(it.baseId, $id);
- if ($async && !it.async) throw new Error('async schema in sync schema');
- out += ' var errs_' + ($lvl) + ' = errors;';
- }
- var $valid = 'valid' + $lvl,
- $breakOnError = !it.opts.allErrors,
- $closingBraces1 = '',
- $closingBraces2 = '';
- var $errorKeyword;
- var $typeSchema = it.schema.type,
- $typeIsArray = Array.isArray($typeSchema);
- if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {
- if ($typeIsArray) {
- if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null');
- } else if ($typeSchema != 'null') {
- $typeSchema = [$typeSchema, 'null'];
- $typeIsArray = true;
- }
- }
- if ($typeIsArray && $typeSchema.length == 1) {
- $typeSchema = $typeSchema[0];
- $typeIsArray = false;
- }
- if (it.schema.$ref && $refKeywords) {
- if (it.opts.extendRefs == 'fail') {
- throw new Error('$ref: validation keywords used in schema at path "' + it.errSchemaPath + '" (see option extendRefs)');
- } else if (it.opts.extendRefs !== true) {
- $refKeywords = false;
- it.logger.warn('$ref: keywords ignored in schema at path "' + it.errSchemaPath + '"');
- }
- }
- if (it.schema.$comment && it.opts.$comment) {
- out += ' ' + (it.RULES.all.$comment.code(it, '$comment'));
- }
- if ($typeSchema) {
- if (it.opts.coerceTypes) {
- var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);
- }
- var $rulesGroup = it.RULES.types[$typeSchema];
- if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) {
- var $schemaPath = it.schemaPath + '.type',
- $errSchemaPath = it.errSchemaPath + '/type';
- var $schemaPath = it.schemaPath + '.type',
- $errSchemaPath = it.errSchemaPath + '/type',
- $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';
- out += ' if (' + (it.util[$method]($typeSchema, $data, true)) + ') { ';
- if ($coerceToTypes) {
- var $dataType = 'dataType' + $lvl,
- $coerced = 'coerced' + $lvl;
- out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; ';
- if (it.opts.coerceTypes == 'array') {
- out += ' if (' + ($dataType) + ' == \'object\' && Array.isArray(' + ($data) + ')) ' + ($dataType) + ' = \'array\'; ';
- }
- out += ' var ' + ($coerced) + ' = undefined; ';
- var $bracesCoercion = '';
- var arr1 = $coerceToTypes;
- if (arr1) {
- var $type, $i = -1,
- l1 = arr1.length - 1;
- while ($i < l1) {
- $type = arr1[$i += 1];
- if ($i) {
- out += ' if (' + ($coerced) + ' === undefined) { ';
- $bracesCoercion += '}';
- }
- if (it.opts.coerceTypes == 'array' && $type != 'array') {
- out += ' if (' + ($dataType) + ' == \'array\' && ' + ($data) + '.length == 1) { ' + ($coerced) + ' = ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; } ';
- }
- if ($type == 'string') {
- out += ' if (' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\') ' + ($coerced) + ' = \'\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \'\'; ';
- } else if ($type == 'number' || $type == 'integer') {
- out += ' if (' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \'string\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';
- if ($type == 'integer') {
- out += ' && !(' + ($data) + ' % 1)';
- }
- out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';
- } else if ($type == 'boolean') {
- out += ' if (' + ($data) + ' === \'false\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \'true\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';
- } else if ($type == 'null') {
- out += ' if (' + ($data) + ' === \'\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';
- } else if (it.opts.coerceTypes == 'array' && $type == 'array') {
- out += ' if (' + ($dataType) + ' == \'string\' || ' + ($dataType) + ' == \'number\' || ' + ($dataType) + ' == \'boolean\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; ';
- }
- }
- }
- out += ' ' + ($bracesCoercion) + ' if (' + ($coerced) + ' === undefined) { ';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } else { ';
- var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',
- $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';
- out += ' ' + ($data) + ' = ' + ($coerced) + '; ';
- if (!$dataLvl) {
- out += 'if (' + ($parentData) + ' !== undefined)';
- }
- out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } ';
- } else {
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- }
- out += ' } ';
- }
- }
- if (it.schema.$ref && !$refKeywords) {
- out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' ';
- if ($breakOnError) {
- out += ' } if (errors === ';
- if ($top) {
- out += '0';
- } else {
- out += 'errs_' + ($lvl);
- }
- out += ') { ';
- $closingBraces2 += '}';
- }
- } else {
- var arr2 = it.RULES;
- if (arr2) {
- var $rulesGroup, i2 = -1,
- l2 = arr2.length - 1;
- while (i2 < l2) {
- $rulesGroup = arr2[i2 += 1];
- if ($shouldUseGroup($rulesGroup)) {
- if ($rulesGroup.type) {
- out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data)) + ') { ';
- }
- if (it.opts.useDefaults) {
- if ($rulesGroup.type == 'object' && it.schema.properties) {
- var $schema = it.schema.properties,
- $schemaKeys = Object.keys($schema);
- var arr3 = $schemaKeys;
- if (arr3) {
- var $propertyKey, i3 = -1,
- l3 = arr3.length - 1;
- while (i3 < l3) {
- $propertyKey = arr3[i3 += 1];
- var $sch = $schema[$propertyKey];
- if ($sch.default !== undefined) {
- var $passData = $data + it.util.getProperty($propertyKey);
- if (it.compositeRule) {
- if (it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored for: ' + $passData;
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- } else {
- out += ' if (' + ($passData) + ' === undefined ';
- if (it.opts.useDefaults == 'empty') {
- out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' ';
- }
- out += ' ) ' + ($passData) + ' = ';
- if (it.opts.useDefaults == 'shared') {
- out += ' ' + (it.useDefault($sch.default)) + ' ';
- } else {
- out += ' ' + (JSON.stringify($sch.default)) + ' ';
- }
- out += '; ';
- }
- }
- }
- }
- } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {
- var arr4 = it.schema.items;
- if (arr4) {
- var $sch, $i = -1,
- l4 = arr4.length - 1;
- while ($i < l4) {
- $sch = arr4[$i += 1];
- if ($sch.default !== undefined) {
- var $passData = $data + '[' + $i + ']';
- if (it.compositeRule) {
- if (it.opts.strictDefaults) {
- var $defaultMsg = 'default is ignored for: ' + $passData;
- if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);
- else throw new Error($defaultMsg);
- }
- } else {
- out += ' if (' + ($passData) + ' === undefined ';
- if (it.opts.useDefaults == 'empty') {
- out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \'\' ';
- }
- out += ' ) ' + ($passData) + ' = ';
- if (it.opts.useDefaults == 'shared') {
- out += ' ' + (it.useDefault($sch.default)) + ' ';
- } else {
- out += ' ' + (JSON.stringify($sch.default)) + ' ';
- }
- out += '; ';
- }
- }
- }
- }
- }
- }
- var arr5 = $rulesGroup.rules;
- if (arr5) {
- var $rule, i5 = -1,
- l5 = arr5.length - 1;
- while (i5 < l5) {
- $rule = arr5[i5 += 1];
- if ($shouldUseRule($rule)) {
- var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);
- if ($code) {
- out += ' ' + ($code) + ' ';
- if ($breakOnError) {
- $closingBraces1 += '}';
- }
- }
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces1) + ' ';
- $closingBraces1 = '';
- }
- if ($rulesGroup.type) {
- out += ' } ';
- if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {
- out += ' else { ';
- var $schemaPath = it.schemaPath + '.type',
- $errSchemaPath = it.errSchemaPath + '/type';
- var $$outStack = $$outStack || [];
- $$outStack.push(out);
- out = ''; /* istanbul ignore else */
- if (it.createErrors !== false) {
- out += ' { keyword: \'' + ($errorKeyword || 'type') + '\' , dataPath: (dataPath || \'\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \'';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' } ';
- if (it.opts.messages !== false) {
- out += ' , message: \'should be ';
- if ($typeIsArray) {
- out += '' + ($typeSchema.join(","));
- } else {
- out += '' + ($typeSchema);
- }
- out += '\' ';
- }
- if (it.opts.verbose) {
- out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';
- }
- out += ' } ';
- } else {
- out += ' {} ';
- }
- var __err = out;
- out = $$outStack.pop();
- if (!it.compositeRule && $breakOnError) {
- /* istanbul ignore if */
- if (it.async) {
- out += ' throw new ValidationError([' + (__err) + ']); ';
- } else {
- out += ' validate.errors = [' + (__err) + ']; return false; ';
- }
- } else {
- out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';
- }
- out += ' } ';
- }
- }
- if ($breakOnError) {
- out += ' if (errors === ';
- if ($top) {
- out += '0';
- } else {
- out += 'errs_' + ($lvl);
- }
- out += ') { ';
- $closingBraces2 += '}';
- }
- }
- }
- }
- }
- if ($breakOnError) {
- out += ' ' + ($closingBraces2) + ' ';
- }
- if ($top) {
- if ($async) {
- out += ' if (errors === 0) return data; ';
- out += ' else throw new ValidationError(vErrors); ';
- } else {
- out += ' validate.errors = vErrors; ';
- out += ' return errors === 0; ';
- }
- out += ' }; return validate;';
- } else {
- out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';
- }
- out = it.util.cleanUpCode(out);
- if ($top) {
- out = it.util.finalCleanUpCode(out, $async);
- }
-
- function $shouldUseGroup($rulesGroup) {
- var rules = $rulesGroup.rules;
- for (var i = 0; i < rules.length; i++)
- if ($shouldUseRule(rules[i])) return true;
- }
-
- function $shouldUseRule($rule) {
- return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule));
- }
-
- function $ruleImplementsSomeKeyword($rule) {
- var impl = $rule.implements;
- for (var i = 0; i < impl.length; i++)
- if (it.schema[impl[i]] !== undefined) return true;
- }
- return out;
-}
diff --git a/node_modules/ajv/lib/keyword.js b/node_modules/ajv/lib/keyword.js
deleted file mode 100644
index 5fec19a..0000000
--- a/node_modules/ajv/lib/keyword.js
+++ /dev/null
@@ -1,146 +0,0 @@
-'use strict';
-
-var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
-var customRuleCode = require('./dotjs/custom');
-var definitionSchema = require('./definition_schema');
-
-module.exports = {
- add: addKeyword,
- get: getKeyword,
- remove: removeKeyword,
- validate: validateKeyword
-};
-
-
-/**
- * Define custom keyword
- * @this Ajv
- * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords).
- * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.
- * @return {Ajv} this for method chaining
- */
-function addKeyword(keyword, definition) {
- /* jshint validthis: true */
- /* eslint no-shadow: 0 */
- var RULES = this.RULES;
- if (RULES.keywords[keyword])
- throw new Error('Keyword ' + keyword + ' is already defined');
-
- if (!IDENTIFIER.test(keyword))
- throw new Error('Keyword ' + keyword + ' is not a valid identifier');
-
- if (definition) {
- this.validateKeyword(definition, true);
-
- var dataType = definition.type;
- if (Array.isArray(dataType)) {
- for (var i=0; i<dataType.length; i++)
- _addRule(keyword, dataType[i], definition);
- } else {
- _addRule(keyword, dataType, definition);
- }
-
- var metaSchema = definition.metaSchema;
- if (metaSchema) {
- if (definition.$data && this._opts.$data) {
- metaSchema = {
- anyOf: [
- metaSchema,
- { '$ref': 'https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#' }
- ]
- };
- }
- definition.validateSchema = this.compile(metaSchema, true);
- }
- }
-
- RULES.keywords[keyword] = RULES.all[keyword] = true;
-
-
- function _addRule(keyword, dataType, definition) {
- var ruleGroup;
- for (var i=0; i<RULES.length; i++) {
- var rg = RULES[i];
- if (rg.type == dataType) {
- ruleGroup = rg;
- break;
- }
- }
-
- if (!ruleGroup) {
- ruleGroup = { type: dataType, rules: [] };
- RULES.push(ruleGroup);
- }
-
- var rule = {
- keyword: keyword,
- definition: definition,
- custom: true,
- code: customRuleCode,
- implements: definition.implements
- };
- ruleGroup.rules.push(rule);
- RULES.custom[keyword] = rule;
- }
-
- return this;
-}
-
-
-/**
- * Get keyword
- * @this Ajv
- * @param {String} keyword pre-defined or custom keyword.
- * @return {Object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise.
- */
-function getKeyword(keyword) {
- /* jshint validthis: true */
- var rule = this.RULES.custom[keyword];
- return rule ? rule.definition : this.RULES.keywords[keyword] || false;
-}
-
-
-/**
- * Remove keyword
- * @this Ajv
- * @param {String} keyword pre-defined or custom keyword.
- * @return {Ajv} this for method chaining
- */
-function removeKeyword(keyword) {
- /* jshint validthis: true */
- var RULES = this.RULES;
- delete RULES.keywords[keyword];
- delete RULES.all[keyword];
- delete RULES.custom[keyword];
- for (var i=0; i<RULES.length; i++) {
- var rules = RULES[i].rules;
- for (var j=0; j<rules.length; j++) {
- if (rules[j].keyword == keyword) {
- rules.splice(j, 1);
- break;
- }
- }
- }
- return this;
-}
-
-
-/**
- * Validate keyword definition
- * @this Ajv
- * @param {Object} definition keyword definition object.
- * @param {Boolean} throwError true to throw exception if definition is invalid
- * @return {boolean} validation result
- */
-function validateKeyword(definition, throwError) {
- validateKeyword.errors = null;
- var v = this._validateKeyword = this._validateKeyword
- || this.compile(definitionSchema, true);
-
- if (v(definition)) return true;
- validateKeyword.errors = v.errors;
- if (throwError)
- throw new Error('custom keyword definition is invalid: ' + this.errorsText(v.errors));
- else
- return false;
-}
diff --git a/node_modules/ajv/lib/refs/data.json b/node_modules/ajv/lib/refs/data.json
deleted file mode 100644
index 87a2d14..0000000
--- a/node_modules/ajv/lib/refs/data.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#",
- "description": "Meta-schema for $data reference (JSON Schema extension proposal)",
- "type": "object",
- "required": [ "$data" ],
- "properties": {
- "$data": {
- "type": "string",
- "anyOf": [
- { "format": "relative-json-pointer" },
- { "format": "json-pointer" }
- ]
- }
- },
- "additionalProperties": false
-}
diff --git a/node_modules/ajv/lib/refs/json-schema-draft-04.json b/node_modules/ajv/lib/refs/json-schema-draft-04.json
deleted file mode 100644
index bcbb847..0000000
--- a/node_modules/ajv/lib/refs/json-schema-draft-04.json
+++ /dev/null
@@ -1,149 +0,0 @@
-{
- "id": "http://json-schema.org/draft-04/schema#",
- "$schema": "http://json-schema.org/draft-04/schema#",
- "description": "Core schema meta-schema",
- "definitions": {
- "schemaArray": {
- "type": "array",
- "minItems": 1,
- "items": { "$ref": "#" }
- },
- "positiveInteger": {
- "type": "integer",
- "minimum": 0
- },
- "positiveIntegerDefault0": {
- "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]
- },
- "simpleTypes": {
- "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]
- },
- "stringArray": {
- "type": "array",
- "items": { "type": "string" },
- "minItems": 1,
- "uniqueItems": true
- }
- },
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "$schema": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "default": {},
- "multipleOf": {
- "type": "number",
- "minimum": 0,
- "exclusiveMinimum": true
- },
- "maximum": {
- "type": "number"
- },
- "exclusiveMaximum": {
- "type": "boolean",
- "default": false
- },
- "minimum": {
- "type": "number"
- },
- "exclusiveMinimum": {
- "type": "boolean",
- "default": false
- },
- "maxLength": { "$ref": "#/definitions/positiveInteger" },
- "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
- "pattern": {
- "type": "string",
- "format": "regex"
- },
- "additionalItems": {
- "anyOf": [
- { "type": "boolean" },
- { "$ref": "#" }
- ],
- "default": {}
- },
- "items": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/schemaArray" }
- ],
- "default": {}
- },
- "maxItems": { "$ref": "#/definitions/positiveInteger" },
- "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
- "uniqueItems": {
- "type": "boolean",
- "default": false
- },
- "maxProperties": { "$ref": "#/definitions/positiveInteger" },
- "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
- "required": { "$ref": "#/definitions/stringArray" },
- "additionalProperties": {
- "anyOf": [
- { "type": "boolean" },
- { "$ref": "#" }
- ],
- "default": {}
- },
- "definitions": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "properties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "patternProperties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "dependencies": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/stringArray" }
- ]
- }
- },
- "enum": {
- "type": "array",
- "minItems": 1,
- "uniqueItems": true
- },
- "type": {
- "anyOf": [
- { "$ref": "#/definitions/simpleTypes" },
- {
- "type": "array",
- "items": { "$ref": "#/definitions/simpleTypes" },
- "minItems": 1,
- "uniqueItems": true
- }
- ]
- },
- "format": { "type": "string" },
- "allOf": { "$ref": "#/definitions/schemaArray" },
- "anyOf": { "$ref": "#/definitions/schemaArray" },
- "oneOf": { "$ref": "#/definitions/schemaArray" },
- "not": { "$ref": "#" }
- },
- "dependencies": {
- "exclusiveMaximum": [ "maximum" ],
- "exclusiveMinimum": [ "minimum" ]
- },
- "default": {}
-}
diff --git a/node_modules/ajv/lib/refs/json-schema-draft-06.json b/node_modules/ajv/lib/refs/json-schema-draft-06.json
deleted file mode 100644
index 5656240..0000000
--- a/node_modules/ajv/lib/refs/json-schema-draft-06.json
+++ /dev/null
@@ -1,154 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-06/schema#",
- "$id": "http://json-schema.org/draft-06/schema#",
- "title": "Core schema meta-schema",
- "definitions": {
- "schemaArray": {
- "type": "array",
- "minItems": 1,
- "items": { "$ref": "#" }
- },
- "nonNegativeInteger": {
- "type": "integer",
- "minimum": 0
- },
- "nonNegativeIntegerDefault0": {
- "allOf": [
- { "$ref": "#/definitions/nonNegativeInteger" },
- { "default": 0 }
- ]
- },
- "simpleTypes": {
- "enum": [
- "array",
- "boolean",
- "integer",
- "null",
- "number",
- "object",
- "string"
- ]
- },
- "stringArray": {
- "type": "array",
- "items": { "type": "string" },
- "uniqueItems": true,
- "default": []
- }
- },
- "type": ["object", "boolean"],
- "properties": {
- "$id": {
- "type": "string",
- "format": "uri-reference"
- },
- "$schema": {
- "type": "string",
- "format": "uri"
- },
- "$ref": {
- "type": "string",
- "format": "uri-reference"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "default": {},
- "examples": {
- "type": "array",
- "items": {}
- },
- "multipleOf": {
- "type": "number",
- "exclusiveMinimum": 0
- },
- "maximum": {
- "type": "number"
- },
- "exclusiveMaximum": {
- "type": "number"
- },
- "minimum": {
- "type": "number"
- },
- "exclusiveMinimum": {
- "type": "number"
- },
- "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
- "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "pattern": {
- "type": "string",
- "format": "regex"
- },
- "additionalItems": { "$ref": "#" },
- "items": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/schemaArray" }
- ],
- "default": {}
- },
- "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
- "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "uniqueItems": {
- "type": "boolean",
- "default": false
- },
- "contains": { "$ref": "#" },
- "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
- "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "required": { "$ref": "#/definitions/stringArray" },
- "additionalProperties": { "$ref": "#" },
- "definitions": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "properties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "patternProperties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "dependencies": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/stringArray" }
- ]
- }
- },
- "propertyNames": { "$ref": "#" },
- "const": {},
- "enum": {
- "type": "array",
- "minItems": 1,
- "uniqueItems": true
- },
- "type": {
- "anyOf": [
- { "$ref": "#/definitions/simpleTypes" },
- {
- "type": "array",
- "items": { "$ref": "#/definitions/simpleTypes" },
- "minItems": 1,
- "uniqueItems": true
- }
- ]
- },
- "format": { "type": "string" },
- "allOf": { "$ref": "#/definitions/schemaArray" },
- "anyOf": { "$ref": "#/definitions/schemaArray" },
- "oneOf": { "$ref": "#/definitions/schemaArray" },
- "not": { "$ref": "#" }
- },
- "default": {}
-}
diff --git a/node_modules/ajv/lib/refs/json-schema-draft-07.json b/node_modules/ajv/lib/refs/json-schema-draft-07.json
deleted file mode 100644
index 5bee90e..0000000
--- a/node_modules/ajv/lib/refs/json-schema-draft-07.json
+++ /dev/null
@@ -1,168 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "http://json-schema.org/draft-07/schema#",
- "title": "Core schema meta-schema",
- "definitions": {
- "schemaArray": {
- "type": "array",
- "minItems": 1,
- "items": { "$ref": "#" }
- },
- "nonNegativeInteger": {
- "type": "integer",
- "minimum": 0
- },
- "nonNegativeIntegerDefault0": {
- "allOf": [
- { "$ref": "#/definitions/nonNegativeInteger" },
- { "default": 0 }
- ]
- },
- "simpleTypes": {
- "enum": [
- "array",
- "boolean",
- "integer",
- "null",
- "number",
- "object",
- "string"
- ]
- },
- "stringArray": {
- "type": "array",
- "items": { "type": "string" },
- "uniqueItems": true,
- "default": []
- }
- },
- "type": ["object", "boolean"],
- "properties": {
- "$id": {
- "type": "string",
- "format": "uri-reference"
- },
- "$schema": {
- "type": "string",
- "format": "uri"
- },
- "$ref": {
- "type": "string",
- "format": "uri-reference"
- },
- "$comment": {
- "type": "string"
- },
- "title": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "default": true,
- "readOnly": {
- "type": "boolean",
- "default": false
- },
- "examples": {
- "type": "array",
- "items": true
- },
- "multipleOf": {
- "type": "number",
- "exclusiveMinimum": 0
- },
- "maximum": {
- "type": "number"
- },
- "exclusiveMaximum": {
- "type": "number"
- },
- "minimum": {
- "type": "number"
- },
- "exclusiveMinimum": {
- "type": "number"
- },
- "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
- "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "pattern": {
- "type": "string",
- "format": "regex"
- },
- "additionalItems": { "$ref": "#" },
- "items": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/schemaArray" }
- ],
- "default": true
- },
- "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
- "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "uniqueItems": {
- "type": "boolean",
- "default": false
- },
- "contains": { "$ref": "#" },
- "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
- "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
- "required": { "$ref": "#/definitions/stringArray" },
- "additionalProperties": { "$ref": "#" },
- "definitions": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "properties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "default": {}
- },
- "patternProperties": {
- "type": "object",
- "additionalProperties": { "$ref": "#" },
- "propertyNames": { "format": "regex" },
- "default": {}
- },
- "dependencies": {
- "type": "object",
- "additionalProperties": {
- "anyOf": [
- { "$ref": "#" },
- { "$ref": "#/definitions/stringArray" }
- ]
- }
- },
- "propertyNames": { "$ref": "#" },
- "const": true,
- "enum": {
- "type": "array",
- "items": true,
- "minItems": 1,
- "uniqueItems": true
- },
- "type": {
- "anyOf": [
- { "$ref": "#/definitions/simpleTypes" },
- {
- "type": "array",
- "items": { "$ref": "#/definitions/simpleTypes" },
- "minItems": 1,
- "uniqueItems": true
- }
- ]
- },
- "format": { "type": "string" },
- "contentMediaType": { "type": "string" },
- "contentEncoding": { "type": "string" },
- "if": {"$ref": "#"},
- "then": {"$ref": "#"},
- "else": {"$ref": "#"},
- "allOf": { "$ref": "#/definitions/schemaArray" },
- "anyOf": { "$ref": "#/definitions/schemaArray" },
- "oneOf": { "$ref": "#/definitions/schemaArray" },
- "not": { "$ref": "#" }
- },
- "default": true
-}
diff --git a/node_modules/ajv/lib/refs/json-schema-secure.json b/node_modules/ajv/lib/refs/json-schema-secure.json
deleted file mode 100644
index 66faf84..0000000
--- a/node_modules/ajv/lib/refs/json-schema-secure.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-secure.json#",
- "title": "Meta-schema for the security assessment of JSON Schemas",
- "description": "If a JSON Schema fails validation against this meta-schema, it may be unsafe to validate untrusted data",
- "definitions": {
- "schemaArray": {
- "type": "array",
- "minItems": 1,
- "items": {"$ref": "#"}
- }
- },
- "dependencies": {
- "patternProperties": {
- "description": "prevent slow validation of large property names",
- "required": ["propertyNames"],
- "properties": {
- "propertyNames": {
- "required": ["maxLength"]
- }
- }
- },
- "uniqueItems": {
- "description": "prevent slow validation of large non-scalar arrays",
- "if": {
- "properties": {
- "uniqueItems": {"const": true},
- "items": {
- "properties": {
- "type": {
- "anyOf": [
- {
- "enum": ["object", "array"]
- },
- {
- "type": "array",
- "contains": {"enum": ["object", "array"]}
- }
- ]
- }
- }
- }
- }
- },
- "then": {
- "required": ["maxItems"]
- }
- },
- "pattern": {
- "description": "prevent slow pattern matching of large strings",
- "required": ["maxLength"]
- },
- "format": {
- "description": "prevent slow format validation of large strings",
- "required": ["maxLength"]
- }
- },
- "properties": {
- "additionalItems": {"$ref": "#"},
- "additionalProperties": {"$ref": "#"},
- "dependencies": {
- "additionalProperties": {
- "anyOf": [
- {"type": "array"},
- {"$ref": "#"}
- ]
- }
- },
- "items": {
- "anyOf": [
- {"$ref": "#"},
- {"$ref": "#/definitions/schemaArray"}
- ]
- },
- "definitions": {
- "additionalProperties": {"$ref": "#"}
- },
- "patternProperties": {
- "additionalProperties": {"$ref": "#"}
- },
- "properties": {
- "additionalProperties": {"$ref": "#"}
- },
- "if": {"$ref": "#"},
- "then": {"$ref": "#"},
- "else": {"$ref": "#"},
- "allOf": {"$ref": "#/definitions/schemaArray"},
- "anyOf": {"$ref": "#/definitions/schemaArray"},
- "oneOf": {"$ref": "#/definitions/schemaArray"},
- "not": {"$ref": "#"},
- "contains": {"$ref": "#"},
- "propertyNames": {"$ref": "#"}
- }
-}
diff --git a/node_modules/ajv/package.json b/node_modules/ajv/package.json
deleted file mode 100644
index b14afc9..0000000
--- a/node_modules/ajv/package.json
+++ /dev/null
@@ -1,129 +0,0 @@
-{
- "_from": "ajv@^6.5.5",
- "_id": "ajv@6.12.2",
- "_inBundle": false,
- "_integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==",
- "_location": "/ajv",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ajv@^6.5.5",
- "name": "ajv",
- "escapedName": "ajv",
- "rawSpec": "^6.5.5",
- "saveSpec": null,
- "fetchSpec": "^6.5.5"
- },
- "_requiredBy": [
- "/har-validator"
- ],
- "_resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz",
- "_shasum": "c629c5eced17baf314437918d2da88c99d5958cd",
- "_spec": "ajv@^6.5.5",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/har-validator",
- "author": {
- "name": "Evgeny Poberezkin"
- },
- "bugs": {
- "url": "https://github.com/epoberezkin/ajv/issues"
- },
- "bundleDependencies": false,
- "collective": {
- "type": "opencollective",
- "url": "https://opencollective.com/ajv"
- },
- "dependencies": {
- "fast-deep-equal": "^3.1.1",
- "fast-json-stable-stringify": "^2.0.0",
- "json-schema-traverse": "^0.4.1",
- "uri-js": "^4.2.2"
- },
- "deprecated": false,
- "description": "Another JSON Schema Validator",
- "devDependencies": {
- "ajv-async": "^1.0.0",
- "bluebird": "^3.5.3",
- "brfs": "^2.0.0",
- "browserify": "^16.2.0",
- "chai": "^4.0.1",
- "coveralls": "^3.0.1",
- "del-cli": "^3.0.0",
- "dot": "^1.0.3",
- "eslint": "^6.0.0",
- "gh-pages-generator": "^0.2.3",
- "glob": "^7.0.0",
- "if-node-version": "^1.0.0",
- "js-beautify": "^1.7.3",
- "jshint": "^2.10.2",
- "json-schema-test": "^2.0.0",
- "karma": "^5.0.0",
- "karma-chrome-launcher": "^3.0.0",
- "karma-mocha": "^2.0.0",
- "karma-sauce-launcher": "^4.1.3",
- "mocha": "^7.0.1",
- "nyc": "^15.0.0",
- "pre-commit": "^1.1.1",
- "require-globify": "^1.3.0",
- "typescript": "^2.8.3",
- "uglify-js": "^3.6.9",
- "watch": "^1.0.0"
- },
- "files": [
- "lib/",
- "dist/",
- "scripts/",
- "LICENSE",
- ".tonic_example.js"
- ],
- "homepage": "https://github.com/epoberezkin/ajv",
- "keywords": [
- "JSON",
- "schema",
- "validator",
- "validation",
- "jsonschema",
- "json-schema",
- "json-schema-validator",
- "json-schema-validation"
- ],
- "license": "MIT",
- "main": "lib/ajv.js",
- "name": "ajv",
- "nyc": {
- "exclude": [
- "**/spec/**",
- "node_modules"
- ],
- "reporter": [
- "lcov",
- "text-summary"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/epoberezkin/ajv.git"
- },
- "scripts": {
- "build": "del-cli lib/dotjs/*.js \"!lib/dotjs/index.js\" && node scripts/compile-dots.js",
- "bundle": "del-cli dist && node ./scripts/bundle.js . Ajv pure_getters",
- "bundle-beautify": "node ./scripts/bundle.js js-beautify",
- "eslint": "eslint lib/{compile/,}*.js spec/{**/,}*.js scripts --ignore-pattern spec/JSON-Schema-Test-Suite",
- "jshint": "jshint lib/{compile/,}*.js",
- "lint": "npm run jshint && npm run eslint",
- "prepublish": "npm run build && npm run bundle",
- "test": "npm run lint && npm run build && npm run test-all",
- "test-all": "npm run test-cov && if-node-version 10 npm run test-browser",
- "test-browser": "del-cli .browser && npm run bundle && scripts/prepare-tests && npm run test-karma",
- "test-cov": "nyc npm run test-spec",
- "test-debug": "npm run test-spec -- --inspect-brk",
- "test-fast": "AJV_FAST_TEST=true npm run test-spec",
- "test-karma": "karma start",
- "test-spec": "mocha spec/{**/,}*.spec.js -R spec",
- "test-ts": "tsc --target ES5 --noImplicitAny --noEmit spec/typescript/index.ts",
- "watch": "watch \"npm run build\" ./lib/dot"
- },
- "tonicExampleFilename": ".tonic_example.js",
- "typings": "lib/ajv.d.ts",
- "version": "6.12.2"
-}
diff --git a/node_modules/ajv/scripts/.eslintrc.yml b/node_modules/ajv/scripts/.eslintrc.yml
deleted file mode 100644
index 493d7d3..0000000
--- a/node_modules/ajv/scripts/.eslintrc.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-rules:
- no-console: 0
- no-empty: [2, allowEmptyCatch: true]
diff --git a/node_modules/ajv/scripts/bundle.js b/node_modules/ajv/scripts/bundle.js
deleted file mode 100644
index e381a76..0000000
--- a/node_modules/ajv/scripts/bundle.js
+++ /dev/null
@@ -1,61 +0,0 @@
-'use strict';
-
-var fs = require('fs')
- , path = require('path')
- , browserify = require('browserify')
- , uglify = require('uglify-js');
-
-var pkg = process.argv[2]
- , standalone = process.argv[3]
- , compress = process.argv[4];
-
-var packageDir = path.join(__dirname, '..');
-if (pkg != '.') packageDir = path.join(packageDir, 'node_modules', pkg);
-
-var json = require(path.join(packageDir, 'package.json'));
-
-var distDir = path.join(__dirname, '..', 'dist');
-if (!fs.existsSync(distDir)) fs.mkdirSync(distDir);
-
-var bOpts = {};
-if (standalone) bOpts.standalone = standalone;
-
-browserify(bOpts)
-.require(path.join(packageDir, json.main), {expose: json.name})
-.bundle(function (err, buf) {
- if (err) {
- console.error('browserify error:', err);
- process.exit(1);
- }
-
- var outputFile = path.join(distDir, json.name);
- var uglifyOpts = {
- warnings: true,
- compress: {},
- output: {
- preamble: '/* ' + json.name + ' ' + json.version + ': ' + json.description + ' */'
- }
- };
- if (compress) {
- var compressOpts = compress.split(',');
- for (var i=0, il = compressOpts.length; i<il; ++i) {
- var pair = compressOpts[i].split('=');
- uglifyOpts.compress[pair[0]] = pair.length < 1 || pair[1] != 'false';
- }
- }
- if (standalone) {
- uglifyOpts.sourceMap = {
- filename: json.name + '.min.js',
- url: json.name + '.min.js.map'
- };
- }
-
- var result = uglify.minify(buf.toString(), uglifyOpts);
- fs.writeFileSync(outputFile + '.min.js', result.code);
- if (result.map) fs.writeFileSync(outputFile + '.min.js.map', result.map);
- if (standalone) fs.writeFileSync(outputFile + '.bundle.js', buf);
- if (result.warnings) {
- for (var j=0, jl = result.warnings.length; j<jl; ++j)
- console.warn('UglifyJS warning:', result.warnings[j]);
- }
-});
diff --git a/node_modules/ajv/scripts/compile-dots.js b/node_modules/ajv/scripts/compile-dots.js
deleted file mode 100644
index 5a21a7d..0000000
--- a/node_modules/ajv/scripts/compile-dots.js
+++ /dev/null
@@ -1,73 +0,0 @@
-//compile doT templates to js functions
-'use strict';
-
-var glob = require('glob')
- , fs = require('fs')
- , path = require('path')
- , doT = require('dot')
- , beautify = require('js-beautify').js_beautify;
-
-var defsRootPath = process.argv[2] || path.join(__dirname, '../lib');
-
-var defs = {};
-var defFiles = glob.sync('./dot/**/*.def', { cwd: defsRootPath });
-defFiles.forEach(function (f) {
- var name = path.basename(f, '.def');
- defs[name] = fs.readFileSync(path.join(defsRootPath, f));
-});
-
-var filesRootPath = process.argv[3] || path.join(__dirname, '../lib');
-var files = glob.sync('./dot/**/*.jst', { cwd: filesRootPath });
-
-var dotjsPath = path.join(filesRootPath, './dotjs');
-try { fs.mkdirSync(dotjsPath); } catch(e) {}
-
-console.log('\n\nCompiling:');
-
-var FUNCTION_NAME = /function\s+anonymous\s*\(it[^)]*\)\s*{/;
-var OUT_EMPTY_STRING = /out\s*\+=\s*'\s*';/g;
-var ISTANBUL = /'(istanbul[^']+)';/g;
-var ERROR_KEYWORD = /\$errorKeyword/g;
-var ERROR_KEYWORD_OR = /\$errorKeyword\s+\|\|/g;
-var VARS = [
- '$errs', '$valid', '$lvl', '$data', '$dataLvl',
- '$errorKeyword', '$closingBraces', '$schemaPath',
- '$validate'
-];
-
-files.forEach(function (f) {
- var keyword = path.basename(f, '.jst');
- var targetPath = path.join(dotjsPath, keyword + '.js');
- var template = fs.readFileSync(path.join(filesRootPath, f));
- var code = doT.compile(template, defs);
- code = code.toString()
- .replace(OUT_EMPTY_STRING, '')
- .replace(FUNCTION_NAME, 'function generate_' + keyword + '(it, $keyword, $ruleType) {')
- .replace(ISTANBUL, '/* $1 */');
- removeAlwaysFalsyInOr();
- VARS.forEach(removeUnusedVar);
- code = "'use strict';\nmodule.exports = " + code;
- code = beautify(code, { indent_size: 2 }) + '\n';
- fs.writeFileSync(targetPath, code);
- console.log('compiled', keyword);
-
- function removeUnusedVar(v) {
- v = v.replace(/\$/g, '\\$$');
- var regexp = new RegExp(v + '[^A-Za-z0-9_$]', 'g');
- var count = occurrences(regexp);
- if (count == 1) {
- regexp = new RegExp('var\\s+' + v + '\\s*=[^;]+;|var\\s+' + v + ';');
- code = code.replace(regexp, '');
- }
- }
-
- function removeAlwaysFalsyInOr() {
- var countUsed = occurrences(ERROR_KEYWORD);
- var countOr = occurrences(ERROR_KEYWORD_OR);
- if (countUsed == countOr + 1) code = code.replace(ERROR_KEYWORD_OR, '');
- }
-
- function occurrences(regexp) {
- return (code.match(regexp) || []).length;
- }
-});
diff --git a/node_modules/ajv/scripts/info b/node_modules/ajv/scripts/info
deleted file mode 100755
index 77269ab..0000000
--- a/node_modules/ajv/scripts/info
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env node
-
-'use strict';
-
-var fs = require('fs');
-var name = process.argv[2] || '.';
-var property = process.argv[3] || 'version';
-if (name != '.') name = 'node_modules/' + name;
-var json = JSON.parse(fs.readFileSync(name + '/package.json', 'utf8'));
-console.log(json[property]);
diff --git a/node_modules/ajv/scripts/prepare-tests b/node_modules/ajv/scripts/prepare-tests
deleted file mode 100755
index 6847033..0000000
--- a/node_modules/ajv/scripts/prepare-tests
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env sh
-
-set -e
-
-mkdir -p .browser
-
-echo
-echo Preparing browser tests:
-
-find spec -type f -name '*.spec.js' | \
-xargs -I {} sh -c \
-'export f="{}"; echo $f; browserify $f -t require-globify -t brfs -x ajv -u buffer -o $(echo $f | sed -e "s/spec/.browser/");'
diff --git a/node_modules/ajv/scripts/publish-built-version b/node_modules/ajv/scripts/publish-built-version
deleted file mode 100755
index 2796ed2..0000000
--- a/node_modules/ajv/scripts/publish-built-version
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-if [[ -n $TRAVIS_TAG && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
- echo "About to publish $TRAVIS_TAG to ajv-dist..."
-
- git config user.email "$GIT_USER_EMAIL"
- git config user.name "$GIT_USER_NAME"
-
- git clone https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv-dist.git ../ajv-dist
-
- rm -rf ../ajv-dist/dist
- mkdir ../ajv-dist/dist
- cp ./dist/ajv.* ../ajv-dist/dist
- cat bower.json | sed 's/"name": "ajv"/"name": "ajv-dist"/' > ../ajv-dist/bower.json
- cd ../ajv-dist
-
- if [[ `git status --porcelain` ]]; then
- echo "Changes detected. Updating master branch..."
- git add -A
- git commit -m "updated by travis build #$TRAVIS_BUILD_NUMBER"
- git push --quiet origin master > /dev/null 2>&1
- fi
-
- echo "Publishing tag..."
-
- git tag $TRAVIS_TAG
- git push --tags > /dev/null 2>&1
-
- echo "Done"
-fi
diff --git a/node_modules/ajv/scripts/travis-gh-pages b/node_modules/ajv/scripts/travis-gh-pages
deleted file mode 100755
index 46ded16..0000000
--- a/node_modules/ajv/scripts/travis-gh-pages
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
- git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && {
- rm -rf ../gh-pages
- git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv.git ../gh-pages
- mkdir -p ../gh-pages/_source
- cp *.md ../gh-pages/_source
- cp LICENSE ../gh-pages/_source
- currentDir=$(pwd)
- cd ../gh-pages
- $currentDir/node_modules/.bin/gh-pages-generator
- # remove logo from README
- sed -i -E "s/<img[^>]+ajv_logo[^>]+>//" index.md
- git config user.email "$GIT_USER_EMAIL"
- git config user.name "$GIT_USER_NAME"
- git add .
- git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER"
- git push --quiet origin gh-pages > /dev/null 2>&1
- }
-fi
diff --git a/node_modules/amdefine/LICENSE b/node_modules/amdefine/LICENSE
deleted file mode 100644
index 9b25ee0..0000000
--- a/node_modules/amdefine/LICENSE
+++ /dev/null
@@ -1,58 +0,0 @@
-amdefine is released under two licenses: new BSD, and MIT. You may pick the
-license that best suits your development needs. The text of both licenses are
-provided below.
-
-
-The "New" BSD License:
-----------------------
-
-Copyright (c) 2011-2016, The Dojo Foundation
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of the Dojo Foundation nor the names of its contributors
- may be used to endorse or promote products derived from this software
- without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-
-MIT License
------------
-
-Copyright (c) 2011-2016, The Dojo Foundation
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/amdefine/README.md b/node_modules/amdefine/README.md
deleted file mode 100644
index 037a6e8..0000000
--- a/node_modules/amdefine/README.md
+++ /dev/null
@@ -1,171 +0,0 @@
-# amdefine
-
-A module that can be used to implement AMD's define() in Node. This allows you
-to code to the AMD API and have the module work in node programs without
-requiring those other programs to use AMD.
-
-## Usage
-
-**1)** Update your package.json to indicate amdefine as a dependency:
-
-```javascript
- "dependencies": {
- "amdefine": ">=0.1.0"
- }
-```
-
-Then run `npm install` to get amdefine into your project.
-
-**2)** At the top of each module that uses define(), place this code:
-
-```javascript
-if (typeof define !== 'function') { var define = require('amdefine')(module) }
-```
-
-**Only use these snippets** when loading amdefine. If you preserve the basic structure,
-with the braces, it will be stripped out when using the [RequireJS optimizer](#optimizer).
-
-You can add spaces, line breaks and even require amdefine with a local path, but
-keep the rest of the structure to get the stripping behavior.
-
-As you may know, because `if` statements in JavaScript don't have their own scope, the var
-declaration in the above snippet is made whether the `if` expression is truthy or not. If
-RequireJS is loaded then the declaration is superfluous because `define` is already already
-declared in the same scope in RequireJS. Fortunately JavaScript handles multiple `var`
-declarations of the same variable in the same scope gracefully.
-
-If you want to deliver amdefine.js with your code rather than specifying it as a dependency
-with npm, then just download the latest release and refer to it using a relative path:
-
-[Latest Version](https://github.com/jrburke/amdefine/raw/latest/amdefine.js)
-
-### amdefine/intercept
-
-Consider this very experimental.
-
-Instead of pasting the piece of text for the amdefine setup of a `define`
-variable in each module you create or consume, you can use `amdefine/intercept`
-instead. It will automatically insert the above snippet in each .js file loaded
-by Node.
-
-**Warning**: you should only use this if you are creating an application that
-is consuming AMD style defined()'d modules that are distributed via npm and want
-to run that code in Node.
-
-For library code where you are not sure if it will be used by others in Node or
-in the browser, then explicitly depending on amdefine and placing the code
-snippet above is suggested path, instead of using `amdefine/intercept`. The
-intercept module affects all .js files loaded in the Node app, and it is
-inconsiderate to modify global state like that unless you are also controlling
-the top level app.
-
-#### Why distribute AMD-style modules via npm?
-
-npm has a lot of weaknesses for front-end use (installed layout is not great,
-should have better support for the `baseUrl + moduleID + '.js' style of loading,
-single file JS installs), but some people want a JS package manager and are
-willing to live with those constraints. If that is you, but still want to author
-in AMD style modules to get dynamic require([]), better direct source usage and
-powerful loader plugin support in the browser, then this tool can help.
-
-#### amdefine/intercept usage
-
-Just require it in your top level app module (for example index.js, server.js):
-
-```javascript
-require('amdefine/intercept');
-```
-
-The module does not return a value, so no need to assign the result to a local
-variable.
-
-Then just require() code as you normally would with Node's require(). Any .js
-loaded after the intercept require will have the amdefine check injected in
-the .js source as it is loaded. It does not modify the source on disk, just
-prepends some content to the text of the module as it is loaded by Node.
-
-#### How amdefine/intercept works
-
-It overrides the `Module._extensions['.js']` in Node to automatically prepend
-the amdefine snippet above. So, it will affect any .js file loaded by your
-app.
-
-## define() usage
-
-It is best if you use the anonymous forms of define() in your module:
-
-```javascript
-define(function (require) {
- var dependency = require('dependency');
-});
-```
-
-or
-
-```javascript
-define(['dependency'], function (dependency) {
-
-});
-```
-
-## RequireJS optimizer integration. <a name="optimizer"></name>
-
-Version 1.0.3 of the [RequireJS optimizer](http://requirejs.org/docs/optimization.html)
-will have support for stripping the `if (typeof define !== 'function')` check
-mentioned above, so you can include this snippet for code that runs in the
-browser, but avoid taking the cost of the if() statement once the code is
-optimized for deployment.
-
-## Node 0.4 Support
-
-If you want to support Node 0.4, then add `require` as the second parameter to amdefine:
-
-```javascript
-//Only if you want Node 0.4. If using 0.5 or later, use the above snippet.
-if (typeof define !== 'function') { var define = require('amdefine')(module, require) }
-```
-
-## Limitations
-
-### Synchronous vs Asynchronous
-
-amdefine creates a define() function that is callable by your code. It will
-execute and trace dependencies and call the factory function *synchronously*,
-to keep the behavior in line with Node's synchronous dependency tracing.
-
-The exception: calling AMD's callback-style require() from inside a factory
-function. The require callback is called on process.nextTick():
-
-```javascript
-define(function (require) {
- require(['a'], function(a) {
- //'a' is loaded synchronously, but
- //this callback is called on process.nextTick().
- });
-});
-```
-
-### Loader Plugins
-
-Loader plugins are supported as long as they call their load() callbacks
-synchronously. So ones that do network requests will not work. However plugins
-like [text](http://requirejs.org/docs/api.html#text) can load text files locally.
-
-The plugin API's `load.fromText()` is **not supported** in amdefine, so this means
-transpiler plugins like the [CoffeeScript loader plugin](https://github.com/jrburke/require-cs)
-will not work. This may be fixable, but it is a bit complex, and I do not have
-enough node-fu to figure it out yet. See the source for amdefine.js if you want
-to get an idea of the issues involved.
-
-## Tests
-
-To run the tests, cd to **tests** and run:
-
-```
-node all.js
-node all-intercept.js
-```
-
-## License
-
-New BSD and MIT. Check the LICENSE file for all the details.
diff --git a/node_modules/amdefine/amdefine.js b/node_modules/amdefine/amdefine.js
deleted file mode 100644
index ca830ba..0000000
--- a/node_modules/amdefine/amdefine.js
+++ /dev/null
@@ -1,301 +0,0 @@
-/** vim: et:ts=4:sw=4:sts=4
- * @license amdefine 1.0.1 Copyright (c) 2011-2016, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/amdefine for details
- */
-
-/*jslint node: true */
-/*global module, process */
-'use strict';
-
-/**
- * Creates a define for node.
- * @param {Object} module the "module" object that is defined by Node for the
- * current module.
- * @param {Function} [requireFn]. Node's require function for the current module.
- * It only needs to be passed in Node versions before 0.5, when module.require
- * did not exist.
- * @returns {Function} a define function that is usable for the current node
- * module.
- */
-function amdefine(module, requireFn) {
- 'use strict';
- var defineCache = {},
- loaderCache = {},
- alreadyCalled = false,
- path = require('path'),
- makeRequire, stringRequire;
-
- /**
- * Trims the . and .. from an array of path segments.
- * It will keep a leading path segment if a .. will become
- * the first path segment, to help with module name lookups,
- * which act like paths, but can be remapped. But the end result,
- * all paths that use this function should look normalized.
- * NOTE: this method MODIFIES the input array.
- * @param {Array} ary the array of path segments.
- */
- function trimDots(ary) {
- var i, part;
- for (i = 0; ary[i]; i+= 1) {
- part = ary[i];
- if (part === '.') {
- ary.splice(i, 1);
- i -= 1;
- } else if (part === '..') {
- if (i === 1 && (ary[2] === '..' || ary[0] === '..')) {
- //End of the line. Keep at least one non-dot
- //path segment at the front so it can be mapped
- //correctly to disk. Otherwise, there is likely
- //no path mapping for a path starting with '..'.
- //This can still fail, but catches the most reasonable
- //uses of ..
- break;
- } else if (i > 0) {
- ary.splice(i - 1, 2);
- i -= 2;
- }
- }
- }
- }
-
- function normalize(name, baseName) {
- var baseParts;
-
- //Adjust any relative paths.
- if (name && name.charAt(0) === '.') {
- //If have a base name, try to normalize against it,
- //otherwise, assume it is a top-level require that will
- //be relative to baseUrl in the end.
- if (baseName) {
- baseParts = baseName.split('/');
- baseParts = baseParts.slice(0, baseParts.length - 1);
- baseParts = baseParts.concat(name.split('/'));
- trimDots(baseParts);
- name = baseParts.join('/');
- }
- }
-
- return name;
- }
-
- /**
- * Create the normalize() function passed to a loader plugin's
- * normalize method.
- */
- function makeNormalize(relName) {
- return function (name) {
- return normalize(name, relName);
- };
- }
-
- function makeLoad(id) {
- function load(value) {
- loaderCache[id] = value;
- }
-
- load.fromText = function (id, text) {
- //This one is difficult because the text can/probably uses
- //define, and any relative paths and requires should be relative
- //to that id was it would be found on disk. But this would require
- //bootstrapping a module/require fairly deeply from node core.
- //Not sure how best to go about that yet.
- throw new Error('amdefine does not implement load.fromText');
- };
-
- return load;
- }
-
- makeRequire = function (systemRequire, exports, module, relId) {
- function amdRequire(deps, callback) {
- if (typeof deps === 'string') {
- //Synchronous, single module require('')
- return stringRequire(systemRequire, exports, module, deps, relId);
- } else {
- //Array of dependencies with a callback.
-
- //Convert the dependencies to modules.
- deps = deps.map(function (depName) {
- return stringRequire(systemRequire, exports, module, depName, relId);
- });
-
- //Wait for next tick to call back the require call.
- if (callback) {
- process.nextTick(function () {
- callback.apply(null, deps);
- });
- }
- }
- }
-
- amdRequire.toUrl = function (filePath) {
- if (filePath.indexOf('.') === 0) {
- return normalize(filePath, path.dirname(module.filename));
- } else {
- return filePath;
- }
- };
-
- return amdRequire;
- };
-
- //Favor explicit value, passed in if the module wants to support Node 0.4.
- requireFn = requireFn || function req() {
- return module.require.apply(module, arguments);
- };
-
- function runFactory(id, deps, factory) {
- var r, e, m, result;
-
- if (id) {
- e = loaderCache[id] = {};
- m = {
- id: id,
- uri: __filename,
- exports: e
- };
- r = makeRequire(requireFn, e, m, id);
- } else {
- //Only support one define call per file
- if (alreadyCalled) {
- throw new Error('amdefine with no module ID cannot be called more than once per file.');
- }
- alreadyCalled = true;
-
- //Use the real variables from node
- //Use module.exports for exports, since
- //the exports in here is amdefine exports.
- e = module.exports;
- m = module;
- r = makeRequire(requireFn, e, m, module.id);
- }
-
- //If there are dependencies, they are strings, so need
- //to convert them to dependency values.
- if (deps) {
- deps = deps.map(function (depName) {
- return r(depName);
- });
- }
-
- //Call the factory with the right dependencies.
- if (typeof factory === 'function') {
- result = factory.apply(m.exports, deps);
- } else {
- result = factory;
- }
-
- if (result !== undefined) {
- m.exports = result;
- if (id) {
- loaderCache[id] = m.exports;
- }
- }
- }
-
- stringRequire = function (systemRequire, exports, module, id, relId) {
- //Split the ID by a ! so that
- var index = id.indexOf('!'),
- originalId = id,
- prefix, plugin;
-
- if (index === -1) {
- id = normalize(id, relId);
-
- //Straight module lookup. If it is one of the special dependencies,
- //deal with it, otherwise, delegate to node.
- if (id === 'require') {
- return makeRequire(systemRequire, exports, module, relId);
- } else if (id === 'exports') {
- return exports;
- } else if (id === 'module') {
- return module;
- } else if (loaderCache.hasOwnProperty(id)) {
- return loaderCache[id];
- } else if (defineCache[id]) {
- runFactory.apply(null, defineCache[id]);
- return loaderCache[id];
- } else {
- if(systemRequire) {
- return systemRequire(originalId);
- } else {
- throw new Error('No module with ID: ' + id);
- }
- }
- } else {
- //There is a plugin in play.
- prefix = id.substring(0, index);
- id = id.substring(index + 1, id.length);
-
- plugin = stringRequire(systemRequire, exports, module, prefix, relId);
-
- if (plugin.normalize) {
- id = plugin.normalize(id, makeNormalize(relId));
- } else {
- //Normalize the ID normally.
- id = normalize(id, relId);
- }
-
- if (loaderCache[id]) {
- return loaderCache[id];
- } else {
- plugin.load(id, makeRequire(systemRequire, exports, module, relId), makeLoad(id), {});
-
- return loaderCache[id];
- }
- }
- };
-
- //Create a define function specific to the module asking for amdefine.
- function define(id, deps, factory) {
- if (Array.isArray(id)) {
- factory = deps;
- deps = id;
- id = undefined;
- } else if (typeof id !== 'string') {
- factory = id;
- id = deps = undefined;
- }
-
- if (deps && !Array.isArray(deps)) {
- factory = deps;
- deps = undefined;
- }
-
- if (!deps) {
- deps = ['require', 'exports', 'module'];
- }
-
- //Set up properties for this module. If an ID, then use
- //internal cache. If no ID, then use the external variables
- //for this node module.
- if (id) {
- //Put the module in deep freeze until there is a
- //require call for it.
- defineCache[id] = [id, deps, factory];
- } else {
- runFactory(id, deps, factory);
- }
- }
-
- //define.require, which has access to all the values in the
- //cache. Useful for AMD modules that all have IDs in the file,
- //but need to finally export a value to node based on one of those
- //IDs.
- define.require = function (id) {
- if (loaderCache[id]) {
- return loaderCache[id];
- }
-
- if (defineCache[id]) {
- runFactory.apply(null, defineCache[id]);
- return loaderCache[id];
- }
- };
-
- define.amd = {};
-
- return define;
-}
-
-module.exports = amdefine;
diff --git a/node_modules/amdefine/intercept.js b/node_modules/amdefine/intercept.js
deleted file mode 100644
index 771a983..0000000
--- a/node_modules/amdefine/intercept.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*jshint node: true */
-var inserted,
- Module = require('module'),
- fs = require('fs'),
- existingExtFn = Module._extensions['.js'],
- amdefineRegExp = /amdefine\.js/;
-
-inserted = "if (typeof define !== 'function') {var define = require('amdefine')(module)}";
-
-//From the node/lib/module.js source:
-function stripBOM(content) {
- // Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
- // because the buffer-to-string conversion in `fs.readFileSync()`
- // translates it to FEFF, the UTF-16 BOM.
- if (content.charCodeAt(0) === 0xFEFF) {
- content = content.slice(1);
- }
- return content;
-}
-
-//Also adapted from the node/lib/module.js source:
-function intercept(module, filename) {
- var content = stripBOM(fs.readFileSync(filename, 'utf8'));
-
- if (!amdefineRegExp.test(module.id)) {
- content = inserted + content;
- }
-
- module._compile(content, filename);
-}
-
-intercept._id = 'amdefine/intercept';
-
-if (!existingExtFn._id || existingExtFn._id !== intercept._id) {
- Module._extensions['.js'] = intercept;
-}
diff --git a/node_modules/amdefine/package.json b/node_modules/amdefine/package.json
deleted file mode 100644
index d4208e2..0000000
--- a/node_modules/amdefine/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_from": "amdefine@>=0.0.4",
- "_id": "amdefine@1.0.1",
- "_inBundle": false,
- "_integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
- "_location": "/amdefine",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "amdefine@>=0.0.4",
- "name": "amdefine",
- "escapedName": "amdefine",
- "rawSpec": ">=0.0.4",
- "saveSpec": null,
- "fetchSpec": ">=0.0.4"
- },
- "_requiredBy": [
- "/source-map"
- ],
- "_resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
- "_shasum": "4a5282ac164729e93619bcfd3ad151f817ce91f5",
- "_spec": "amdefine@>=0.0.4",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/source-map",
- "author": {
- "name": "James Burke",
- "email": "jrburke@gmail.com",
- "url": "http://github.com/jrburke"
- },
- "bugs": {
- "url": "https://github.com/jrburke/amdefine/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Provide AMD's define() API for declaring modules in the AMD format",
- "engines": {
- "node": ">=0.4.2"
- },
- "homepage": "http://github.com/jrburke/amdefine",
- "license": "BSD-3-Clause OR MIT",
- "main": "./amdefine.js",
- "name": "amdefine",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jrburke/amdefine.git"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/ansi-regex/index.js b/node_modules/ansi-regex/index.js
deleted file mode 100644
index b9574ed..0000000
--- a/node_modules/ansi-regex/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict';
-module.exports = function () {
- return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
-};
diff --git a/node_modules/ansi-regex/license b/node_modules/ansi-regex/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/ansi-regex/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/ansi-regex/package.json b/node_modules/ansi-regex/package.json
deleted file mode 100644
index e36e46f..0000000
--- a/node_modules/ansi-regex/package.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "_from": "ansi-regex@^2.0.0",
- "_id": "ansi-regex@2.1.1",
- "_inBundle": false,
- "_integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
- "_location": "/ansi-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ansi-regex@^2.0.0",
- "name": "ansi-regex",
- "escapedName": "ansi-regex",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/has-ansi",
- "/strip-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "_shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df",
- "_spec": "ansi-regex@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/has-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-regex/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Regular expression for matching ANSI escape codes",
- "devDependencies": {
- "ava": "0.17.0",
- "xo": "0.16.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/ansi-regex#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "command-line",
- "text",
- "regex",
- "regexp",
- "re",
- "match",
- "test",
- "find",
- "pattern"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Appelman",
- "email": "jappelman@xebia.com",
- "url": "jbnicolai.com"
- },
- {
- "name": "JD Ballard",
- "email": "i.am.qix@gmail.com",
- "url": "github.com/qix-"
- }
- ],
- "name": "ansi-regex",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-regex.git"
- },
- "scripts": {
- "test": "xo && ava --verbose",
- "view-supported": "node fixtures/view-codes.js"
- },
- "version": "2.1.1",
- "xo": {
- "rules": {
- "guard-for-in": 0,
- "no-loop-func": 0
- }
- }
-}
diff --git a/node_modules/ansi-regex/readme.md b/node_modules/ansi-regex/readme.md
deleted file mode 100644
index 6a928ed..0000000
--- a/node_modules/ansi-regex/readme.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)
-
-> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
-
-
-## Install
-
-```
-$ npm install --save ansi-regex
-```
-
-
-## Usage
-
-```js
-const ansiRegex = require('ansi-regex');
-
-ansiRegex().test('\u001b[4mcake\u001b[0m');
-//=> true
-
-ansiRegex().test('cake');
-//=> false
-
-'\u001b[4mcake\u001b[0m'.match(ansiRegex());
-//=> ['\u001b[4m', '\u001b[0m']
-```
-
-## FAQ
-
-### Why do you test for codes not in the ECMA 48 standard?
-
-Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. If I recall correctly, we test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
-
-On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/ansi-styles/index.js b/node_modules/ansi-styles/index.js
deleted file mode 100644
index 7894527..0000000
--- a/node_modules/ansi-styles/index.js
+++ /dev/null
@@ -1,65 +0,0 @@
-'use strict';
-
-function assembleStyles () {
- var styles = {
- modifiers: {
- reset: [0, 0],
- bold: [1, 22], // 21 isn't widely supported and 22 does the same thing
- dim: [2, 22],
- italic: [3, 23],
- underline: [4, 24],
- inverse: [7, 27],
- hidden: [8, 28],
- strikethrough: [9, 29]
- },
- colors: {
- black: [30, 39],
- red: [31, 39],
- green: [32, 39],
- yellow: [33, 39],
- blue: [34, 39],
- magenta: [35, 39],
- cyan: [36, 39],
- white: [37, 39],
- gray: [90, 39]
- },
- bgColors: {
- bgBlack: [40, 49],
- bgRed: [41, 49],
- bgGreen: [42, 49],
- bgYellow: [43, 49],
- bgBlue: [44, 49],
- bgMagenta: [45, 49],
- bgCyan: [46, 49],
- bgWhite: [47, 49]
- }
- };
-
- // fix humans
- styles.colors.grey = styles.colors.gray;
-
- Object.keys(styles).forEach(function (groupName) {
- var group = styles[groupName];
-
- Object.keys(group).forEach(function (styleName) {
- var style = group[styleName];
-
- styles[styleName] = group[styleName] = {
- open: '\u001b[' + style[0] + 'm',
- close: '\u001b[' + style[1] + 'm'
- };
- });
-
- Object.defineProperty(styles, groupName, {
- value: group,
- enumerable: false
- });
- });
-
- return styles;
-}
-
-Object.defineProperty(module, 'exports', {
- enumerable: true,
- get: assembleStyles
-});
diff --git a/node_modules/ansi-styles/license b/node_modules/ansi-styles/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/ansi-styles/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/ansi-styles/package.json b/node_modules/ansi-styles/package.json
deleted file mode 100644
index 143ef66..0000000
--- a/node_modules/ansi-styles/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_from": "ansi-styles@^2.2.1",
- "_id": "ansi-styles@2.2.1",
- "_inBundle": false,
- "_integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
- "_location": "/ansi-styles",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ansi-styles@^2.2.1",
- "name": "ansi-styles",
- "escapedName": "ansi-styles",
- "rawSpec": "^2.2.1",
- "saveSpec": null,
- "fetchSpec": "^2.2.1"
- },
- "_requiredBy": [
- "/chalk"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
- "_shasum": "b432dd3358b634cf75e1e4664368240533c1ddbe",
- "_spec": "ansi-styles@^2.2.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/chalk",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-styles/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "ANSI escape codes for styling strings in the terminal",
- "devDependencies": {
- "mocha": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/ansi-styles#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Appelman",
- "email": "jappelman@xebia.com",
- "url": "jbnicolai.com"
- }
- ],
- "name": "ansi-styles",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-styles.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "2.2.1"
-}
diff --git a/node_modules/ansi-styles/readme.md b/node_modules/ansi-styles/readme.md
deleted file mode 100644
index 3f933f6..0000000
--- a/node_modules/ansi-styles/readme.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles)
-
-> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
-
-You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
-
-![](screenshot.png)
-
-
-## Install
-
-```
-$ npm install --save ansi-styles
-```
-
-
-## Usage
-
-```js
-var ansi = require('ansi-styles');
-
-console.log(ansi.green.open + 'Hello world!' + ansi.green.close);
-```
-
-
-## API
-
-Each style has an `open` and `close` property.
-
-
-## Styles
-
-### Modifiers
-
-- `reset`
-- `bold`
-- `dim`
-- `italic` *(not widely supported)*
-- `underline`
-- `inverse`
-- `hidden`
-- `strikethrough` *(not widely supported)*
-
-### Colors
-
-- `black`
-- `red`
-- `green`
-- `yellow`
-- `blue`
-- `magenta`
-- `cyan`
-- `white`
-- `gray`
-
-### Background colors
-
-- `bgBlack`
-- `bgRed`
-- `bgGreen`
-- `bgYellow`
-- `bgBlue`
-- `bgMagenta`
-- `bgCyan`
-- `bgWhite`
-
-
-## Advanced usage
-
-By default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
-
-- `ansi.modifiers`
-- `ansi.colors`
-- `ansi.bgColors`
-
-
-###### Example
-
-```js
-console.log(ansi.colors.green.open);
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/aproba/LICENSE b/node_modules/aproba/LICENSE
deleted file mode 100644
index f4be44d..0000000
--- a/node_modules/aproba/LICENSE
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2015, Rebecca Turner <me@re-becca.org>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/node_modules/aproba/README.md b/node_modules/aproba/README.md
deleted file mode 100644
index 0bfc594..0000000
--- a/node_modules/aproba/README.md
+++ /dev/null
@@ -1,94 +0,0 @@
-aproba
-======
-
-A ridiculously light-weight function argument validator
-
-```
-var validate = require("aproba")
-
-function myfunc(a, b, c) {
- // `a` must be a string, `b` a number, `c` a function
- validate('SNF', arguments) // [a,b,c] is also valid
-}
-
-myfunc('test', 23, function () {}) // ok
-myfunc(123, 23, function () {}) // type error
-myfunc('test', 23) // missing arg error
-myfunc('test', 23, function () {}, true) // too many args error
-
-```
-
-Valid types are:
-
-| type | description
-| :--: | :----------
-| * | matches any type
-| A | `Array.isArray` OR an `arguments` object
-| S | typeof == string
-| N | typeof == number
-| F | typeof == function
-| O | typeof == object and not type A and not type E
-| B | typeof == boolean
-| E | `instanceof Error` OR `null` **(special: see below)**
-| Z | == `null`
-
-Validation failures throw one of three exception types, distinguished by a
-`code` property of `EMISSINGARG`, `EINVALIDTYPE` or `ETOOMANYARGS`.
-
-If you pass in an invalid type then it will throw with a code of
-`EUNKNOWNTYPE`.
-
-If an **error** argument is found and is not null then the remaining
-arguments are optional. That is, if you say `ESO` then that's like using a
-non-magical `E` in: `E|ESO|ZSO`.
-
-### But I have optional arguments?!
-
-You can provide more than one signature by separating them with pipes `|`.
-If any signature matches the arguments then they'll be considered valid.
-
-So for example, say you wanted to write a signature for
-`fs.createWriteStream`. The docs for it describe it thusly:
-
-```
-fs.createWriteStream(path[, options])
-```
-
-This would be a signature of `SO|S`. That is, a string and and object, or
-just a string.
-
-Now, if you read the full `fs` docs, you'll see that actually path can ALSO
-be a buffer. And options can be a string, that is:
-```
-path <String> | <Buffer>
-options <String> | <Object>
-```
-
-To reproduce this you have to fully enumerate all of the possible
-combinations and that implies a signature of `SO|SS|OO|OS|S|O`. The
-awkwardness is a feature: It reminds you of the complexity you're adding to
-your API when you do this sort of thing.
-
-
-### Browser support
-
-This has no dependencies and should work in browsers, though you'll have
-noisier stack traces.
-
-### Why this exists
-
-I wanted a very simple argument validator. It needed to do two things:
-
-1. Be more concise and easier to use than assertions
-
-2. Not encourage an infinite bikeshed of DSLs
-
-This is why types are specified by a single character and there's no such
-thing as an optional argument.
-
-This is not intended to validate user data. This is specifically about
-asserting the interface of your functions.
-
-If you need greater validation, I encourage you to write them by hand or
-look elsewhere.
-
diff --git a/node_modules/aproba/index.js b/node_modules/aproba/index.js
deleted file mode 100644
index 6f3f797..0000000
--- a/node_modules/aproba/index.js
+++ /dev/null
@@ -1,105 +0,0 @@
-'use strict'
-
-function isArguments (thingy) {
- return thingy != null && typeof thingy === 'object' && thingy.hasOwnProperty('callee')
-}
-
-var types = {
- '*': {label: 'any', check: function () { return true }},
- A: {label: 'array', check: function (thingy) { return Array.isArray(thingy) || isArguments(thingy) }},
- S: {label: 'string', check: function (thingy) { return typeof thingy === 'string' }},
- N: {label: 'number', check: function (thingy) { return typeof thingy === 'number' }},
- F: {label: 'function', check: function (thingy) { return typeof thingy === 'function' }},
- O: {label: 'object', check: function (thingy) { return typeof thingy === 'object' && thingy != null && !types.A.check(thingy) && !types.E.check(thingy) }},
- B: {label: 'boolean', check: function (thingy) { return typeof thingy === 'boolean' }},
- E: {label: 'error', check: function (thingy) { return thingy instanceof Error }},
- Z: {label: 'null', check: function (thingy) { return thingy == null }}
-}
-
-function addSchema (schema, arity) {
- var group = arity[schema.length] = arity[schema.length] || []
- if (group.indexOf(schema) === -1) group.push(schema)
-}
-
-var validate = module.exports = function (rawSchemas, args) {
- if (arguments.length !== 2) throw wrongNumberOfArgs(['SA'], arguments.length)
- if (!rawSchemas) throw missingRequiredArg(0, 'rawSchemas')
- if (!args) throw missingRequiredArg(1, 'args')
- if (!types.S.check(rawSchemas)) throw invalidType(0, ['string'], rawSchemas)
- if (!types.A.check(args)) throw invalidType(1, ['array'], args)
- var schemas = rawSchemas.split('|')
- var arity = {}
-
- schemas.forEach(function (schema) {
- for (var ii = 0; ii < schema.length; ++ii) {
- var type = schema[ii]
- if (!types[type]) throw unknownType(ii, type)
- }
- if (/E.*E/.test(schema)) throw moreThanOneError(schema)
- addSchema(schema, arity)
- if (/E/.test(schema)) {
- addSchema(schema.replace(/E.*$/, 'E'), arity)
- addSchema(schema.replace(/E/, 'Z'), arity)
- if (schema.length === 1) addSchema('', arity)
- }
- })
- var matching = arity[args.length]
- if (!matching) {
- throw wrongNumberOfArgs(Object.keys(arity), args.length)
- }
- for (var ii = 0; ii < args.length; ++ii) {
- var newMatching = matching.filter(function (schema) {
- var type = schema[ii]
- var typeCheck = types[type].check
- return typeCheck(args[ii])
- })
- if (!newMatching.length) {
- var labels = matching.map(function (schema) {
- return types[schema[ii]].label
- }).filter(function (schema) { return schema != null })
- throw invalidType(ii, labels, args[ii])
- }
- matching = newMatching
- }
-}
-
-function missingRequiredArg (num) {
- return newException('EMISSINGARG', 'Missing required argument #' + (num + 1))
-}
-
-function unknownType (num, type) {
- return newException('EUNKNOWNTYPE', 'Unknown type ' + type + ' in argument #' + (num + 1))
-}
-
-function invalidType (num, expectedTypes, value) {
- var valueType
- Object.keys(types).forEach(function (typeCode) {
- if (types[typeCode].check(value)) valueType = types[typeCode].label
- })
- return newException('EINVALIDTYPE', 'Argument #' + (num + 1) + ': Expected ' +
- englishList(expectedTypes) + ' but got ' + valueType)
-}
-
-function englishList (list) {
- return list.join(', ').replace(/, ([^,]+)$/, ' or $1')
-}
-
-function wrongNumberOfArgs (expected, got) {
- var english = englishList(expected)
- var args = expected.every(function (ex) { return ex.length === 1 })
- ? 'argument'
- : 'arguments'
- return newException('EWRONGARGCOUNT', 'Expected ' + english + ' ' + args + ' but got ' + got)
-}
-
-function moreThanOneError (schema) {
- return newException('ETOOMANYERRORTYPES',
- 'Only one error type per argument signature is allowed, more than one found in "' + schema + '"')
-}
-
-function newException (code, msg) {
- var e = new Error(msg)
- e.code = code
- if (Error.captureStackTrace) Error.captureStackTrace(e, validate)
- return e
-}
diff --git a/node_modules/aproba/package.json b/node_modules/aproba/package.json
deleted file mode 100644
index a763f3d..0000000
--- a/node_modules/aproba/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_from": "aproba@^1.0.3",
- "_id": "aproba@1.2.0",
- "_inBundle": false,
- "_integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
- "_location": "/aproba",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "aproba@^1.0.3",
- "name": "aproba",
- "escapedName": "aproba",
- "rawSpec": "^1.0.3",
- "saveSpec": null,
- "fetchSpec": "^1.0.3"
- },
- "_requiredBy": [
- "/gauge"
- ],
- "_resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
- "_shasum": "6802e6264efd18c790a1b0d517f0f2627bf2c94a",
- "_spec": "aproba@^1.0.3",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/gauge",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org"
- },
- "bugs": {
- "url": "https://github.com/iarna/aproba/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "A ridiculously light-weight argument validator (now browser friendly)",
- "devDependencies": {
- "standard": "^10.0.3",
- "tap": "^10.0.2"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/iarna/aproba",
- "keywords": [
- "argument",
- "validate"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "aproba",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/aproba.git"
- },
- "scripts": {
- "test": "standard && tap -j3 test/*.js"
- },
- "version": "1.2.0"
-}
diff --git a/node_modules/are-we-there-yet/CHANGES.md b/node_modules/are-we-there-yet/CHANGES.md
deleted file mode 100644
index 21f3b1c..0000000
--- a/node_modules/are-we-there-yet/CHANGES.md
+++ /dev/null
@@ -1,37 +0,0 @@
-Hi, figured we could actually use a changelog now:
-
-## 1.1.5 2018-05-24
-
-* [#92](https://github.com/iarna/are-we-there-yet/pull/92) Fix bug where
- `finish` would throw errors when including `TrackerStream` objects in
- `TrackerGroup` collections. (@brianloveswords)
-
-## 1.1.4 2017-04-21
-
-* Fix typo in package.json
-
-## 1.1.3 2017-04-21
-
-* Improve documentation and limit files included in the distribution.
-
-## 1.1.2 2016-03-15
-
-* Add tracker group cycle detection and tests for it
-
-## 1.1.1 2016-01-29
-
-* Fix a typo in stream completion tracker
-
-## 1.1.0 2016-01-29
-
-* Rewrote completion percent computation to be low impact– no more walking a
- tree of completion groups every time we need this info. Previously, with
- medium sized tree of completion groups, even a relatively modest number of
- calls to the top level `completed()` method would result in absurd numbers
- of calls overall as it walked down the tree. We now, instead, keep track as
- we bubble up changes, so the computation is limited to when data changes and
- to the depth of that one branch, instead of _every_ node. (Plus, we were already
- incurring _this_ cost, since we already bubbled out changes.)
-* Moved different tracker types out to their own files.
-* Made tests test for TOO MANY events too.
-* Standarized the source code formatting
diff --git a/node_modules/are-we-there-yet/LICENSE b/node_modules/are-we-there-yet/LICENSE
deleted file mode 100644
index af45880..0000000
--- a/node_modules/are-we-there-yet/LICENSE
+++ /dev/null
@@ -1,5 +0,0 @@
-Copyright (c) 2015, Rebecca Turner
-
-Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/are-we-there-yet/README.md b/node_modules/are-we-there-yet/README.md
deleted file mode 100644
index 7e2b42d..0000000
--- a/node_modules/are-we-there-yet/README.md
+++ /dev/null
@@ -1,195 +0,0 @@
-are-we-there-yet
-----------------
-
-Track complex hiearchies of asynchronous task completion statuses. This is
-intended to give you a way of recording and reporting the progress of the big
-recursive fan-out and gather type workflows that are so common in async.
-
-What you do with this completion data is up to you, but the most common use case is to
-feed it to one of the many progress bar modules.
-
-Most progress bar modules include a rudamentary version of this, but my
-needs were more complex.
-
-Usage
-=====
-
-```javascript
-var TrackerGroup = require("are-we-there-yet").TrackerGroup
-
-var top = new TrackerGroup("program")
-
-var single = top.newItem("one thing", 100)
-single.completeWork(20)
-
-console.log(top.completed()) // 0.2
-
-fs.stat("file", function(er, stat) {
- if (er) throw er
- var stream = top.newStream("file", stat.size)
- console.log(top.completed()) // now 0.1 as single is 50% of the job and is 20% complete
- // and 50% * 20% == 10%
- fs.createReadStream("file").pipe(stream).on("data", function (chunk) {
- // do stuff with chunk
- })
- top.on("change", function (name) {
- // called each time a chunk is read from "file"
- // top.completed() will start at 0.1 and fill up to 0.6 as the file is read
- })
-})
-```
-
-Shared Methods
-==============
-
-* var completed = tracker.completed()
-
-Implemented in: `Tracker`, `TrackerGroup`, `TrackerStream`
-
-Returns the ratio of completed work to work to be done. Range of 0 to 1.
-
-* tracker.finish()
-
-Implemented in: `Tracker`, `TrackerGroup`
-
-Marks the tracker as completed. With a TrackerGroup this marks all of its
-components as completed.
-
-Marks all of the components of this tracker as finished, which in turn means
-that `tracker.completed()` for this will now be 1.
-
-This will result in one or more `change` events being emitted.
-
-Events
-======
-
-All tracker objects emit `change` events with the following arguments:
-
-```
-function (name, completed, tracker)
-```
-
-`name` is the name of the tracker that originally emitted the event,
-or if it didn't have one, the first containing tracker group that had one.
-
-`completed` is the percent complete (as returned by `tracker.completed()` method).
-
-`tracker` is the tracker object that you are listening for events on.
-
-TrackerGroup
-============
-
-* var tracker = new TrackerGroup(**name**)
-
- * **name** *(optional)* - The name of this tracker group, used in change
- notifications if the component updating didn't have a name. Defaults to undefined.
-
-Creates a new empty tracker aggregation group. These are trackers whose
-completion status is determined by the completion status of other trackers.
-
-* tracker.addUnit(**otherTracker**, **weight**)
-
- * **otherTracker** - Any of the other are-we-there-yet tracker objects
- * **weight** *(optional)* - The weight to give the tracker, defaults to 1.
-
-Adds the **otherTracker** to this aggregation group. The weight determines
-how long you expect this tracker to take to complete in proportion to other
-units. So for instance, if you add one tracker with a weight of 1 and
-another with a weight of 2, you're saying the second will take twice as long
-to complete as the first. As such, the first will account for 33% of the
-completion of this tracker and the second will account for the other 67%.
-
-Returns **otherTracker**.
-
-* var subGroup = tracker.newGroup(**name**, **weight**)
-
-The above is exactly equivalent to:
-
-```javascript
- var subGroup = tracker.addUnit(new TrackerGroup(name), weight)
-```
-
-* var subItem = tracker.newItem(**name**, **todo**, **weight**)
-
-The above is exactly equivalent to:
-
-```javascript
- var subItem = tracker.addUnit(new Tracker(name, todo), weight)
-```
-
-* var subStream = tracker.newStream(**name**, **todo**, **weight**)
-
-The above is exactly equivalent to:
-
-```javascript
- var subStream = tracker.addUnit(new TrackerStream(name, todo), weight)
-```
-
-* console.log( tracker.debug() )
-
-Returns a tree showing the completion of this tracker group and all of its
-children, including recursively entering all of the children.
-
-Tracker
-=======
-
-* var tracker = new Tracker(**name**, **todo**)
-
- * **name** *(optional)* The name of this counter to report in change
- events. Defaults to undefined.
- * **todo** *(optional)* The amount of work todo (a number). Defaults to 0.
-
-Ordinarily these are constructed as a part of a tracker group (via
-`newItem`).
-
-* var completed = tracker.completed()
-
-Returns the ratio of completed work to work to be done. Range of 0 to 1. If
-total work to be done is 0 then it will return 0.
-
-* tracker.addWork(**todo**)
-
- * **todo** A number to add to the amount of work to be done.
-
-Increases the amount of work to be done, thus decreasing the completion
-percentage. Triggers a `change` event.
-
-* tracker.completeWork(**completed**)
-
- * **completed** A number to add to the work complete
-
-Increase the amount of work complete, thus increasing the completion percentage.
-Will never increase the work completed past the amount of work todo. That is,
-percentages > 100% are not allowed. Triggers a `change` event.
-
-* tracker.finish()
-
-Marks this tracker as finished, tracker.completed() will now be 1. Triggers
-a `change` event.
-
-TrackerStream
-=============
-
-* var tracker = new TrackerStream(**name**, **size**, **options**)
-
- * **name** *(optional)* The name of this counter to report in change
- events. Defaults to undefined.
- * **size** *(optional)* The number of bytes being sent through this stream.
- * **options** *(optional)* A hash of stream options
-
-The tracker stream object is a pass through stream that updates an internal
-tracker object each time a block passes through. It's intended to track
-downloads, file extraction and other related activities. You use it by piping
-your data source into it and then using it as your data source.
-
-If your data has a length attribute then that's used as the amount of work
-completed when the chunk is passed through. If it does not (eg, object
-streams) then each chunk counts as completing 1 unit of work, so your size
-should be the total number of objects being streamed.
-
-* tracker.addWork(**todo**)
-
- * **todo** Increase the expected overall size by **todo** bytes.
-
-Increases the amount of work to be done, thus decreasing the completion
-percentage. Triggers a `change` event.
diff --git a/node_modules/are-we-there-yet/index.js b/node_modules/are-we-there-yet/index.js
deleted file mode 100644
index 57d8743..0000000
--- a/node_modules/are-we-there-yet/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict'
-exports.TrackerGroup = require('./tracker-group.js')
-exports.Tracker = require('./tracker.js')
-exports.TrackerStream = require('./tracker-stream.js')
diff --git a/node_modules/are-we-there-yet/package.json b/node_modules/are-we-there-yet/package.json
deleted file mode 100644
index 45c4d89..0000000
--- a/node_modules/are-we-there-yet/package.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "_from": "are-we-there-yet@~1.1.2",
- "_id": "are-we-there-yet@1.1.5",
- "_inBundle": false,
- "_integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
- "_location": "/are-we-there-yet",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "are-we-there-yet@~1.1.2",
- "name": "are-we-there-yet",
- "escapedName": "are-we-there-yet",
- "rawSpec": "~1.1.2",
- "saveSpec": null,
- "fetchSpec": "~1.1.2"
- },
- "_requiredBy": [
- "/npmlog"
- ],
- "_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
- "_shasum": "4b35c2944f062a8bfcda66410760350fe9ddfc21",
- "_spec": "are-we-there-yet@~1.1.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/npmlog",
- "author": {
- "name": "Rebecca Turner",
- "url": "http://re-becca.org"
- },
- "bugs": {
- "url": "https://github.com/iarna/are-we-there-yet/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "delegates": "^1.0.0",
- "readable-stream": "^2.0.6"
- },
- "deprecated": false,
- "description": "Keep track of the overall completion of many disparate processes",
- "devDependencies": {
- "standard": "^11.0.1",
- "tap": "^12.0.1"
- },
- "files": [
- "index.js",
- "tracker-base.js",
- "tracker-group.js",
- "tracker-stream.js",
- "tracker.js",
- "CHANGES.md"
- ],
- "homepage": "https://github.com/iarna/are-we-there-yet",
- "license": "ISC",
- "main": "index.js",
- "name": "are-we-there-yet",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/are-we-there-yet.git"
- },
- "scripts": {
- "test": "standard && tap test/*.js"
- },
- "version": "1.1.5"
-}
diff --git a/node_modules/are-we-there-yet/tracker-base.js b/node_modules/are-we-there-yet/tracker-base.js
deleted file mode 100644
index 6f43687..0000000
--- a/node_modules/are-we-there-yet/tracker-base.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict'
-var EventEmitter = require('events').EventEmitter
-var util = require('util')
-
-var trackerId = 0
-var TrackerBase = module.exports = function (name) {
- EventEmitter.call(this)
- this.id = ++trackerId
- this.name = name
-}
-util.inherits(TrackerBase, EventEmitter)
diff --git a/node_modules/are-we-there-yet/tracker-group.js b/node_modules/are-we-there-yet/tracker-group.js
deleted file mode 100644
index 9759e12..0000000
--- a/node_modules/are-we-there-yet/tracker-group.js
+++ /dev/null
@@ -1,107 +0,0 @@
-'use strict'
-var util = require('util')
-var TrackerBase = require('./tracker-base.js')
-var Tracker = require('./tracker.js')
-var TrackerStream = require('./tracker-stream.js')
-
-var TrackerGroup = module.exports = function (name) {
- TrackerBase.call(this, name)
- this.parentGroup = null
- this.trackers = []
- this.completion = {}
- this.weight = {}
- this.totalWeight = 0
- this.finished = false
- this.bubbleChange = bubbleChange(this)
-}
-util.inherits(TrackerGroup, TrackerBase)
-
-function bubbleChange (trackerGroup) {
- return function (name, completed, tracker) {
- trackerGroup.completion[tracker.id] = completed
- if (trackerGroup.finished) return
- trackerGroup.emit('change', name || trackerGroup.name, trackerGroup.completed(), trackerGroup)
- }
-}
-
-TrackerGroup.prototype.nameInTree = function () {
- var names = []
- var from = this
- while (from) {
- names.unshift(from.name)
- from = from.parentGroup
- }
- return names.join('/')
-}
-
-TrackerGroup.prototype.addUnit = function (unit, weight) {
- if (unit.addUnit) {
- var toTest = this
- while (toTest) {
- if (unit === toTest) {
- throw new Error(
- 'Attempted to add tracker group ' +
- unit.name + ' to tree that already includes it ' +
- this.nameInTree(this))
- }
- toTest = toTest.parentGroup
- }
- unit.parentGroup = this
- }
- this.weight[unit.id] = weight || 1
- this.totalWeight += this.weight[unit.id]
- this.trackers.push(unit)
- this.completion[unit.id] = unit.completed()
- unit.on('change', this.bubbleChange)
- if (!this.finished) this.emit('change', unit.name, this.completion[unit.id], unit)
- return unit
-}
-
-TrackerGroup.prototype.completed = function () {
- if (this.trackers.length === 0) return 0
- var valPerWeight = 1 / this.totalWeight
- var completed = 0
- for (var ii = 0; ii < this.trackers.length; ii++) {
- var trackerId = this.trackers[ii].id
- completed += valPerWeight * this.weight[trackerId] * this.completion[trackerId]
- }
- return completed
-}
-
-TrackerGroup.prototype.newGroup = function (name, weight) {
- return this.addUnit(new TrackerGroup(name), weight)
-}
-
-TrackerGroup.prototype.newItem = function (name, todo, weight) {
- return this.addUnit(new Tracker(name, todo), weight)
-}
-
-TrackerGroup.prototype.newStream = function (name, todo, weight) {
- return this.addUnit(new TrackerStream(name, todo), weight)
-}
-
-TrackerGroup.prototype.finish = function () {
- this.finished = true
- if (!this.trackers.length) this.addUnit(new Tracker(), 1, true)
- for (var ii = 0; ii < this.trackers.length; ii++) {
- var tracker = this.trackers[ii]
- tracker.finish()
- tracker.removeListener('change', this.bubbleChange)
- }
- this.emit('change', this.name, 1, this)
-}
-
-var buffer = ' '
-TrackerGroup.prototype.debug = function (depth) {
- depth = depth || 0
- var indent = depth ? buffer.substr(0, depth) : ''
- var output = indent + (this.name || 'top') + ': ' + this.completed() + '\n'
- this.trackers.forEach(function (tracker) {
- if (tracker instanceof TrackerGroup) {
- output += tracker.debug(depth + 1)
- } else {
- output += indent + ' ' + tracker.name + ': ' + tracker.completed() + '\n'
- }
- })
- return output
-}
diff --git a/node_modules/are-we-there-yet/tracker-stream.js b/node_modules/are-we-there-yet/tracker-stream.js
deleted file mode 100644
index e1cf850..0000000
--- a/node_modules/are-we-there-yet/tracker-stream.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict'
-var util = require('util')
-var stream = require('readable-stream')
-var delegate = require('delegates')
-var Tracker = require('./tracker.js')
-
-var TrackerStream = module.exports = function (name, size, options) {
- stream.Transform.call(this, options)
- this.tracker = new Tracker(name, size)
- this.name = name
- this.id = this.tracker.id
- this.tracker.on('change', delegateChange(this))
-}
-util.inherits(TrackerStream, stream.Transform)
-
-function delegateChange (trackerStream) {
- return function (name, completion, tracker) {
- trackerStream.emit('change', name, completion, trackerStream)
- }
-}
-
-TrackerStream.prototype._transform = function (data, encoding, cb) {
- this.tracker.completeWork(data.length ? data.length : 1)
- this.push(data)
- cb()
-}
-
-TrackerStream.prototype._flush = function (cb) {
- this.tracker.finish()
- cb()
-}
-
-delegate(TrackerStream.prototype, 'tracker')
- .method('completed')
- .method('addWork')
- .method('finish')
diff --git a/node_modules/are-we-there-yet/tracker.js b/node_modules/are-we-there-yet/tracker.js
deleted file mode 100644
index 68c2339..0000000
--- a/node_modules/are-we-there-yet/tracker.js
+++ /dev/null
@@ -1,30 +0,0 @@
-'use strict'
-var util = require('util')
-var TrackerBase = require('./tracker-base.js')
-
-var Tracker = module.exports = function (name, todo) {
- TrackerBase.call(this, name)
- this.workDone = 0
- this.workTodo = todo || 0
-}
-util.inherits(Tracker, TrackerBase)
-
-Tracker.prototype.completed = function () {
- return this.workTodo === 0 ? 0 : this.workDone / this.workTodo
-}
-
-Tracker.prototype.addWork = function (work) {
- this.workTodo += work
- this.emit('change', this.name, this.completed(), this)
-}
-
-Tracker.prototype.completeWork = function (work) {
- this.workDone += work
- if (this.workDone > this.workTodo) this.workDone = this.workTodo
- this.emit('change', this.name, this.completed(), this)
-}
-
-Tracker.prototype.finish = function () {
- this.workTodo = this.workDone = 1
- this.emit('change', this.name, 1, this)
-}
diff --git a/node_modules/array-find-index/index.js b/node_modules/array-find-index/index.js
deleted file mode 100644
index e2dcd9a..0000000
--- a/node_modules/array-find-index/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-module.exports = function (arr, predicate, ctx) {
- if (typeof Array.prototype.findIndex === 'function') {
- return arr.findIndex(predicate, ctx);
- }
-
- if (typeof predicate !== 'function') {
- throw new TypeError('predicate must be a function');
- }
-
- var list = Object(arr);
- var len = list.length;
-
- if (len === 0) {
- return -1;
- }
-
- for (var i = 0; i < len; i++) {
- if (predicate.call(ctx, list[i], i, list)) {
- return i;
- }
- }
-
- return -1;
-};
diff --git a/node_modules/array-find-index/license b/node_modules/array-find-index/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/array-find-index/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/array-find-index/package.json b/node_modules/array-find-index/package.json
deleted file mode 100644
index 58505cf..0000000
--- a/node_modules/array-find-index/package.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "_from": "array-find-index@^1.0.1",
- "_id": "array-find-index@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
- "_location": "/array-find-index",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "array-find-index@^1.0.1",
- "name": "array-find-index",
- "escapedName": "array-find-index",
- "rawSpec": "^1.0.1",
- "saveSpec": null,
- "fetchSpec": "^1.0.1"
- },
- "_requiredBy": [
- "/currently-unhandled"
- ],
- "_resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
- "_shasum": "df010aa1287e164bbda6f9723b0a96a1ec4187a1",
- "_spec": "array-find-index@^1.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/currently-unhandled",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/array-find-index/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "ES2015 `Array#findIndex()` ponyfill",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/array-find-index#readme",
- "keywords": [
- "es2015",
- "ponyfill",
- "polyfill",
- "shim",
- "find",
- "index",
- "findindex",
- "array"
- ],
- "license": "MIT",
- "name": "array-find-index",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/array-find-index.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/array-find-index/readme.md b/node_modules/array-find-index/readme.md
deleted file mode 100644
index 3166341..0000000
--- a/node_modules/array-find-index/readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# array-find-index [![Build Status](https://travis-ci.org/sindresorhus/array-find-index.svg?branch=master)](https://travis-ci.org/sindresorhus/array-find-index)
-
-> ES2015 [`Array#findIndex()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex) [ponyfill](https://ponyfill.com)
-
-
-## Install
-
-```
-$ npm install --save array-find-index
-```
-
-
-## Usage
-
-```js
-const arrayFindIndex = require('array-find-index');
-
-arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
-//=> 1
-```
-
-
-## API
-
-Same as `Array#findIndex()`, but with the input array as the first argument.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/asn1/LICENSE b/node_modules/asn1/LICENSE
deleted file mode 100644
index 9b5dcdb..0000000
--- a/node_modules/asn1/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2011 Mark Cavage, All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE
diff --git a/node_modules/asn1/README.md b/node_modules/asn1/README.md
deleted file mode 100644
index 2208210..0000000
--- a/node_modules/asn1/README.md
+++ /dev/null
@@ -1,50 +0,0 @@
-node-asn1 is a library for encoding and decoding ASN.1 datatypes in pure JS.
-Currently BER encoding is supported; at some point I'll likely have to do DER.
-
-## Usage
-
-Mostly, if you're *actually* needing to read and write ASN.1, you probably don't
-need this readme to explain what and why. If you have no idea what ASN.1 is,
-see this: ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc
-
-The source is pretty much self-explanatory, and has read/write methods for the
-common types out there.
-
-### Decoding
-
-The following reads an ASN.1 sequence with a boolean.
-
- var Ber = require('asn1').Ber;
-
- var reader = new Ber.Reader(Buffer.from([0x30, 0x03, 0x01, 0x01, 0xff]));
-
- reader.readSequence();
- console.log('Sequence len: ' + reader.length);
- if (reader.peek() === Ber.Boolean)
- console.log(reader.readBoolean());
-
-### Encoding
-
-The following generates the same payload as above.
-
- var Ber = require('asn1').Ber;
-
- var writer = new Ber.Writer();
-
- writer.startSequence();
- writer.writeBoolean(true);
- writer.endSequence();
-
- console.log(writer.buffer);
-
-## Installation
-
- npm install asn1
-
-## License
-
-MIT.
-
-## Bugs
-
-See <https://github.com/joyent/node-asn1/issues>.
diff --git a/node_modules/asn1/lib/ber/errors.js b/node_modules/asn1/lib/ber/errors.js
deleted file mode 100644
index 4557b8a..0000000
--- a/node_modules/asn1/lib/ber/errors.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
-
-
-module.exports = {
-
- newInvalidAsn1Error: function (msg) {
- var e = new Error();
- e.name = 'InvalidAsn1Error';
- e.message = msg || '';
- return e;
- }
-
-};
diff --git a/node_modules/asn1/lib/ber/index.js b/node_modules/asn1/lib/ber/index.js
deleted file mode 100644
index 387d132..0000000
--- a/node_modules/asn1/lib/ber/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
-
-var errors = require('./errors');
-var types = require('./types');
-
-var Reader = require('./reader');
-var Writer = require('./writer');
-
-
-// --- Exports
-
-module.exports = {
-
- Reader: Reader,
-
- Writer: Writer
-
-};
-
-for (var t in types) {
- if (types.hasOwnProperty(t))
- module.exports[t] = types[t];
-}
-for (var e in errors) {
- if (errors.hasOwnProperty(e))
- module.exports[e] = errors[e];
-}
diff --git a/node_modules/asn1/lib/ber/reader.js b/node_modules/asn1/lib/ber/reader.js
deleted file mode 100644
index 8a7e4ca..0000000
--- a/node_modules/asn1/lib/ber/reader.js
+++ /dev/null
@@ -1,262 +0,0 @@
-// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
-
-var assert = require('assert');
-var Buffer = require('safer-buffer').Buffer;
-
-var ASN1 = require('./types');
-var errors = require('./errors');
-
-
-// --- Globals
-
-var newInvalidAsn1Error = errors.newInvalidAsn1Error;
-
-
-
-// --- API
-
-function Reader(data) {
- if (!data || !Buffer.isBuffer(data))
- throw new TypeError('data must be a node Buffer');
-
- this._buf = data;
- this._size = data.length;
-
- // These hold the "current" state
- this._len = 0;
- this._offset = 0;
-}
-
-Object.defineProperty(Reader.prototype, 'length', {
- enumerable: true,
- get: function () { return (this._len); }
-});
-
-Object.defineProperty(Reader.prototype, 'offset', {
- enumerable: true,
- get: function () { return (this._offset); }
-});
-
-Object.defineProperty(Reader.prototype, 'remain', {
- get: function () { return (this._size - this._offset); }
-});
-
-Object.defineProperty(Reader.prototype, 'buffer', {
- get: function () { return (this._buf.slice(this._offset)); }
-});
-
-
-/**
- * Reads a single byte and advances offset; you can pass in `true` to make this
- * a "peek" operation (i.e., get the byte, but don't advance the offset).
- *
- * @param {Boolean} peek true means don't move offset.
- * @return {Number} the next byte, null if not enough data.
- */
-Reader.prototype.readByte = function (peek) {
- if (this._size - this._offset < 1)
- return null;
-
- var b = this._buf[this._offset] & 0xff;
-
- if (!peek)
- this._offset += 1;
-
- return b;
-};
-
-
-Reader.prototype.peek = function () {
- return this.readByte(true);
-};
-
-
-/**
- * Reads a (potentially) variable length off the BER buffer. This call is
- * not really meant to be called directly, as callers have to manipulate
- * the internal buffer afterwards.
- *
- * As a result of this call, you can call `Reader.length`, until the
- * next thing called that does a readLength.
- *
- * @return {Number} the amount of offset to advance the buffer.
- * @throws {InvalidAsn1Error} on bad ASN.1
- */
-Reader.prototype.readLength = function (offset) {
- if (offset === undefined)
- offset = this._offset;
-
- if (offset >= this._size)
- return null;
-
- var lenB = this._buf[offset++] & 0xff;
- if (lenB === null)
- return null;
-
- if ((lenB & 0x80) === 0x80) {
- lenB &= 0x7f;
-
- if (lenB === 0)
- throw newInvalidAsn1Error('Indefinite length not supported');
-
- if (lenB > 4)
- throw newInvalidAsn1Error('encoding too long');
-
- if (this._size - offset < lenB)
- return null;
-
- this._len = 0;
- for (var i = 0; i < lenB; i++)
- this._len = (this._len << 8) + (this._buf[offset++] & 0xff);
-
- } else {
- // Wasn't a variable length
- this._len = lenB;
- }
-
- return offset;
-};
-
-
-/**
- * Parses the next sequence in this BER buffer.
- *
- * To get the length of the sequence, call `Reader.length`.
- *
- * @return {Number} the sequence's tag.
- */
-Reader.prototype.readSequence = function (tag) {
- var seq = this.peek();
- if (seq === null)
- return null;
- if (tag !== undefined && tag !== seq)
- throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) +
- ': got 0x' + seq.toString(16));
-
- var o = this.readLength(this._offset + 1); // stored in `length`
- if (o === null)
- return null;
-
- this._offset = o;
- return seq;
-};
-
-
-Reader.prototype.readInt = function () {
- return this._readTag(ASN1.Integer);
-};
-
-
-Reader.prototype.readBoolean = function () {
- return (this._readTag(ASN1.Boolean) === 0 ? false : true);
-};
-
-
-Reader.prototype.readEnumeration = function () {
- return this._readTag(ASN1.Enumeration);
-};
-
-
-Reader.prototype.readString = function (tag, retbuf) {
- if (!tag)
- tag = ASN1.OctetString;
-
- var b = this.peek();
- if (b === null)
- return null;
-
- if (b !== tag)
- throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) +
- ': got 0x' + b.toString(16));
-
- var o = this.readLength(this._offset + 1); // stored in `length`
-
- if (o === null)
- return null;
-
- if (this.length > this._size - o)
- return null;
-
- this._offset = o;
-
- if (this.length === 0)
- return retbuf ? Buffer.alloc(0) : '';
-
- var str = this._buf.slice(this._offset, this._offset + this.length);
- this._offset += this.length;
-
- return retbuf ? str : str.toString('utf8');
-};
-
-Reader.prototype.readOID = function (tag) {
- if (!tag)
- tag = ASN1.OID;
-
- var b = this.readString(tag, true);
- if (b === null)
- return null;
-
- var values = [];
- var value = 0;
-
- for (var i = 0; i < b.length; i++) {
- var byte = b[i] & 0xff;
-
- value <<= 7;
- value += byte & 0x7f;
- if ((byte & 0x80) === 0) {
- values.push(value);
- value = 0;
- }
- }
-
- value = values.shift();
- values.unshift(value % 40);
- values.unshift((value / 40) >> 0);
-
- return values.join('.');
-};
-
-
-Reader.prototype._readTag = function (tag) {
- assert.ok(tag !== undefined);
-
- var b = this.peek();
-
- if (b === null)
- return null;
-
- if (b !== tag)
- throw newInvalidAsn1Error('Expected 0x' + tag.toString(16) +
- ': got 0x' + b.toString(16));
-
- var o = this.readLength(this._offset + 1); // stored in `length`
- if (o === null)
- return null;
-
- if (this.length > 4)
- throw newInvalidAsn1Error('Integer too long: ' + this.length);
-
- if (this.length > this._size - o)
- return null;
- this._offset = o;
-
- var fb = this._buf[this._offset];
- var value = 0;
-
- for (var i = 0; i < this.length; i++) {
- value <<= 8;
- value |= (this._buf[this._offset++] & 0xff);
- }
-
- if ((fb & 0x80) === 0x80 && i !== 4)
- value -= (1 << (i * 8));
-
- return value >> 0;
-};
-
-
-
-// --- Exported API
-
-module.exports = Reader;
diff --git a/node_modules/asn1/lib/ber/types.js b/node_modules/asn1/lib/ber/types.js
deleted file mode 100644
index 8aea000..0000000
--- a/node_modules/asn1/lib/ber/types.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
-
-
-module.exports = {
- EOC: 0,
- Boolean: 1,
- Integer: 2,
- BitString: 3,
- OctetString: 4,
- Null: 5,
- OID: 6,
- ObjectDescriptor: 7,
- External: 8,
- Real: 9, // float
- Enumeration: 10,
- PDV: 11,
- Utf8String: 12,
- RelativeOID: 13,
- Sequence: 16,
- Set: 17,
- NumericString: 18,
- PrintableString: 19,
- T61String: 20,
- VideotexString: 21,
- IA5String: 22,
- UTCTime: 23,
- GeneralizedTime: 24,
- GraphicString: 25,
- VisibleString: 26,
- GeneralString: 28,
- UniversalString: 29,
- CharacterString: 30,
- BMPString: 31,
- Constructor: 32,
- Context: 128
-};
diff --git a/node_modules/asn1/lib/ber/writer.js b/node_modules/asn1/lib/ber/writer.js
deleted file mode 100644
index 3515acf..0000000
--- a/node_modules/asn1/lib/ber/writer.js
+++ /dev/null
@@ -1,317 +0,0 @@
-// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
-
-var assert = require('assert');
-var Buffer = require('safer-buffer').Buffer;
-var ASN1 = require('./types');
-var errors = require('./errors');
-
-
-// --- Globals
-
-var newInvalidAsn1Error = errors.newInvalidAsn1Error;
-
-var DEFAULT_OPTS = {
- size: 1024,
- growthFactor: 8
-};
-
-
-// --- Helpers
-
-function merge(from, to) {
- assert.ok(from);
- assert.equal(typeof (from), 'object');
- assert.ok(to);
- assert.equal(typeof (to), 'object');
-
- var keys = Object.getOwnPropertyNames(from);
- keys.forEach(function (key) {
- if (to[key])
- return;
-
- var value = Object.getOwnPropertyDescriptor(from, key);
- Object.defineProperty(to, key, value);
- });
-
- return to;
-}
-
-
-
-// --- API
-
-function Writer(options) {
- options = merge(DEFAULT_OPTS, options || {});
-
- this._buf = Buffer.alloc(options.size || 1024);
- this._size = this._buf.length;
- this._offset = 0;
- this._options = options;
-
- // A list of offsets in the buffer where we need to insert
- // sequence tag/len pairs.
- this._seq = [];
-}
-
-Object.defineProperty(Writer.prototype, 'buffer', {
- get: function () {
- if (this._seq.length)
- throw newInvalidAsn1Error(this._seq.length + ' unended sequence(s)');
-
- return (this._buf.slice(0, this._offset));
- }
-});
-
-Writer.prototype.writeByte = function (b) {
- if (typeof (b) !== 'number')
- throw new TypeError('argument must be a Number');
-
- this._ensure(1);
- this._buf[this._offset++] = b;
-};
-
-
-Writer.prototype.writeInt = function (i, tag) {
- if (typeof (i) !== 'number')
- throw new TypeError('argument must be a Number');
- if (typeof (tag) !== 'number')
- tag = ASN1.Integer;
-
- var sz = 4;
-
- while ((((i & 0xff800000) === 0) || ((i & 0xff800000) === 0xff800000 >> 0)) &&
- (sz > 1)) {
- sz--;
- i <<= 8;
- }
-
- if (sz > 4)
- throw newInvalidAsn1Error('BER ints cannot be > 0xffffffff');
-
- this._ensure(2 + sz);
- this._buf[this._offset++] = tag;
- this._buf[this._offset++] = sz;
-
- while (sz-- > 0) {
- this._buf[this._offset++] = ((i & 0xff000000) >>> 24);
- i <<= 8;
- }
-
-};
-
-
-Writer.prototype.writeNull = function () {
- this.writeByte(ASN1.Null);
- this.writeByte(0x00);
-};
-
-
-Writer.prototype.writeEnumeration = function (i, tag) {
- if (typeof (i) !== 'number')
- throw new TypeError('argument must be a Number');
- if (typeof (tag) !== 'number')
- tag = ASN1.Enumeration;
-
- return this.writeInt(i, tag);
-};
-
-
-Writer.prototype.writeBoolean = function (b, tag) {
- if (typeof (b) !== 'boolean')
- throw new TypeError('argument must be a Boolean');
- if (typeof (tag) !== 'number')
- tag = ASN1.Boolean;
-
- this._ensure(3);
- this._buf[this._offset++] = tag;
- this._buf[this._offset++] = 0x01;
- this._buf[this._offset++] = b ? 0xff : 0x00;
-};
-
-
-Writer.prototype.writeString = function (s, tag) {
- if (typeof (s) !== 'string')
- throw new TypeError('argument must be a string (was: ' + typeof (s) + ')');
- if (typeof (tag) !== 'number')
- tag = ASN1.OctetString;
-
- var len = Buffer.byteLength(s);
- this.writeByte(tag);
- this.writeLength(len);
- if (len) {
- this._ensure(len);
- this._buf.write(s, this._offset);
- this._offset += len;
- }
-};
-
-
-Writer.prototype.writeBuffer = function (buf, tag) {
- if (typeof (tag) !== 'number')
- throw new TypeError('tag must be a number');
- if (!Buffer.isBuffer(buf))
- throw new TypeError('argument must be a buffer');
-
- this.writeByte(tag);
- this.writeLength(buf.length);
- this._ensure(buf.length);
- buf.copy(this._buf, this._offset, 0, buf.length);
- this._offset += buf.length;
-};
-
-
-Writer.prototype.writeStringArray = function (strings) {
- if ((!strings instanceof Array))
- throw new TypeError('argument must be an Array[String]');
-
- var self = this;
- strings.forEach(function (s) {
- self.writeString(s);
- });
-};
-
-// This is really to solve DER cases, but whatever for now
-Writer.prototype.writeOID = function (s, tag) {
- if (typeof (s) !== 'string')
- throw new TypeError('argument must be a string');
- if (typeof (tag) !== 'number')
- tag = ASN1.OID;
-
- if (!/^([0-9]+\.){3,}[0-9]+$/.test(s))
- throw new Error('argument is not a valid OID string');
-
- function encodeOctet(bytes, octet) {
- if (octet < 128) {
- bytes.push(octet);
- } else if (octet < 16384) {
- bytes.push((octet >>> 7) | 0x80);
- bytes.push(octet & 0x7F);
- } else if (octet < 2097152) {
- bytes.push((octet >>> 14) | 0x80);
- bytes.push(((octet >>> 7) | 0x80) & 0xFF);
- bytes.push(octet & 0x7F);
- } else if (octet < 268435456) {
- bytes.push((octet >>> 21) | 0x80);
- bytes.push(((octet >>> 14) | 0x80) & 0xFF);
- bytes.push(((octet >>> 7) | 0x80) & 0xFF);
- bytes.push(octet & 0x7F);
- } else {
- bytes.push(((octet >>> 28) | 0x80) & 0xFF);
- bytes.push(((octet >>> 21) | 0x80) & 0xFF);
- bytes.push(((octet >>> 14) | 0x80) & 0xFF);
- bytes.push(((octet >>> 7) | 0x80) & 0xFF);
- bytes.push(octet & 0x7F);
- }
- }
-
- var tmp = s.split('.');
- var bytes = [];
- bytes.push(parseInt(tmp[0], 10) * 40 + parseInt(tmp[1], 10));
- tmp.slice(2).forEach(function (b) {
- encodeOctet(bytes, parseInt(b, 10));
- });
-
- var self = this;
- this._ensure(2 + bytes.length);
- this.writeByte(tag);
- this.writeLength(bytes.length);
- bytes.forEach(function (b) {
- self.writeByte(b);
- });
-};
-
-
-Writer.prototype.writeLength = function (len) {
- if (typeof (len) !== 'number')
- throw new TypeError('argument must be a Number');
-
- this._ensure(4);
-
- if (len <= 0x7f) {
- this._buf[this._offset++] = len;
- } else if (len <= 0xff) {
- this._buf[this._offset++] = 0x81;
- this._buf[this._offset++] = len;
- } else if (len <= 0xffff) {
- this._buf[this._offset++] = 0x82;
- this._buf[this._offset++] = len >> 8;
- this._buf[this._offset++] = len;
- } else if (len <= 0xffffff) {
- this._buf[this._offset++] = 0x83;
- this._buf[this._offset++] = len >> 16;
- this._buf[this._offset++] = len >> 8;
- this._buf[this._offset++] = len;
- } else {
- throw newInvalidAsn1Error('Length too long (> 4 bytes)');
- }
-};
-
-Writer.prototype.startSequence = function (tag) {
- if (typeof (tag) !== 'number')
- tag = ASN1.Sequence | ASN1.Constructor;
-
- this.writeByte(tag);
- this._seq.push(this._offset);
- this._ensure(3);
- this._offset += 3;
-};
-
-
-Writer.prototype.endSequence = function () {
- var seq = this._seq.pop();
- var start = seq + 3;
- var len = this._offset - start;
-
- if (len <= 0x7f) {
- this._shift(start, len, -2);
- this._buf[seq] = len;
- } else if (len <= 0xff) {
- this._shift(start, len, -1);
- this._buf[seq] = 0x81;
- this._buf[seq + 1] = len;
- } else if (len <= 0xffff) {
- this._buf[seq] = 0x82;
- this._buf[seq + 1] = len >> 8;
- this._buf[seq + 2] = len;
- } else if (len <= 0xffffff) {
- this._shift(start, len, 1);
- this._buf[seq] = 0x83;
- this._buf[seq + 1] = len >> 16;
- this._buf[seq + 2] = len >> 8;
- this._buf[seq + 3] = len;
- } else {
- throw newInvalidAsn1Error('Sequence too long');
- }
-};
-
-
-Writer.prototype._shift = function (start, len, shift) {
- assert.ok(start !== undefined);
- assert.ok(len !== undefined);
- assert.ok(shift);
-
- this._buf.copy(this._buf, start + shift, start, start + len);
- this._offset += shift;
-};
-
-Writer.prototype._ensure = function (len) {
- assert.ok(len);
-
- if (this._size - this._offset < len) {
- var sz = this._size * this._options.growthFactor;
- if (sz - this._offset < len)
- sz += len;
-
- var buf = Buffer.alloc(sz);
-
- this._buf.copy(buf, 0, 0, this._offset);
- this._buf = buf;
- this._size = sz;
- }
-};
-
-
-
-// --- Exported API
-
-module.exports = Writer;
diff --git a/node_modules/asn1/lib/index.js b/node_modules/asn1/lib/index.js
deleted file mode 100644
index ede3ab2..0000000
--- a/node_modules/asn1/lib/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
-
-// If you have no idea what ASN.1 or BER is, see this:
-// ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc
-
-var Ber = require('./ber/index');
-
-
-
-// --- Exported API
-
-module.exports = {
-
- Ber: Ber,
-
- BerReader: Ber.Reader,
-
- BerWriter: Ber.Writer
-
-};
diff --git a/node_modules/asn1/package.json b/node_modules/asn1/package.json
deleted file mode 100644
index 1c21378..0000000
--- a/node_modules/asn1/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "asn1@~0.2.3",
- "_id": "asn1@0.2.4",
- "_inBundle": false,
- "_integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
- "_location": "/asn1",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "asn1@~0.2.3",
- "name": "asn1",
- "escapedName": "asn1",
- "rawSpec": "~0.2.3",
- "saveSpec": null,
- "fetchSpec": "~0.2.3"
- },
- "_requiredBy": [
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
- "_shasum": "8d2475dfab553bb33e77b54e59e880bb8ce23136",
- "_spec": "asn1@~0.2.3",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "author": {
- "name": "Joyent",
- "url": "joyent.com"
- },
- "bugs": {
- "url": "https://github.com/joyent/node-asn1/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- {
- "name": "David Gwynne",
- "email": "loki@animata.net"
- },
- {
- "name": "Yunong Xiao",
- "email": "yunong@joyent.com"
- },
- {
- "name": "Alex Wilson",
- "email": "alex.wilson@joyent.com"
- }
- ],
- "dependencies": {
- "safer-buffer": "~2.1.0"
- },
- "deprecated": false,
- "description": "Contains parsers and serializers for ASN.1 (currently BER only)",
- "devDependencies": {
- "eslint": "2.13.1",
- "eslint-plugin-joyent": "~1.3.0",
- "faucet": "0.0.1",
- "istanbul": "^0.3.6",
- "tape": "^3.5.0"
- },
- "homepage": "https://github.com/joyent/node-asn1#readme",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "asn1",
- "repository": {
- "type": "git",
- "url": "git://github.com/joyent/node-asn1.git"
- },
- "scripts": {
- "test": "tape ./test/ber/*.test.js"
- },
- "version": "0.2.4"
-}
diff --git a/node_modules/assert-plus/AUTHORS b/node_modules/assert-plus/AUTHORS
deleted file mode 100644
index 1923524..0000000
--- a/node_modules/assert-plus/AUTHORS
+++ /dev/null
@@ -1,6 +0,0 @@
-Dave Eddy <dave@daveeddy.com>
-Fred Kuo <fred.kuo@joyent.com>
-Lars-Magnus Skog <ralphtheninja@riseup.net>
-Mark Cavage <mcavage@gmail.com>
-Patrick Mooney <pmooney@pfmooney.com>
-Rob Gulewich <robert.gulewich@joyent.com>
diff --git a/node_modules/assert-plus/CHANGES.md b/node_modules/assert-plus/CHANGES.md
deleted file mode 100644
index 57d92bf..0000000
--- a/node_modules/assert-plus/CHANGES.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# assert-plus Changelog
-
-## 1.0.0
-
-- *BREAKING* assert.number (and derivatives) now accept Infinity as valid input
-- Add assert.finite check. Previous assert.number callers should use this if
- they expect Infinity inputs to throw.
-
-## 0.2.0
-
-- Fix `assert.object(null)` so it throws
-- Fix optional/arrayOf exports for non-type-of asserts
-- Add optiona/arrayOf exports for Stream/Date/Regex/uuid
-- Add basic unit test coverage
diff --git a/node_modules/assert-plus/README.md b/node_modules/assert-plus/README.md
deleted file mode 100644
index ec200d1..0000000
--- a/node_modules/assert-plus/README.md
+++ /dev/null
@@ -1,162 +0,0 @@
-# assert-plus
-
-This library is a super small wrapper over node's assert module that has two
-things: (1) the ability to disable assertions with the environment variable
-NODE\_NDEBUG, and (2) some API wrappers for argument testing. Like
-`assert.string(myArg, 'myArg')`. As a simple example, most of my code looks
-like this:
-
-```javascript
- var assert = require('assert-plus');
-
- function fooAccount(options, callback) {
- assert.object(options, 'options');
- assert.number(options.id, 'options.id');
- assert.bool(options.isManager, 'options.isManager');
- assert.string(options.name, 'options.name');
- assert.arrayOfString(options.email, 'options.email');
- assert.func(callback, 'callback');
-
- // Do stuff
- callback(null, {});
- }
-```
-
-# API
-
-All methods that *aren't* part of node's core assert API are simply assumed to
-take an argument, and then a string 'name' that's not a message; `AssertionError`
-will be thrown if the assertion fails with a message like:
-
- AssertionError: foo (string) is required
- at test (/home/mark/work/foo/foo.js:3:9)
- at Object.<anonymous> (/home/mark/work/foo/foo.js:15:1)
- at Module._compile (module.js:446:26)
- at Object..js (module.js:464:10)
- at Module.load (module.js:353:31)
- at Function._load (module.js:311:12)
- at Array.0 (module.js:484:10)
- at EventEmitter._tickCallback (node.js:190:38)
-
-from:
-
-```javascript
- function test(foo) {
- assert.string(foo, 'foo');
- }
-```
-
-There you go. You can check that arrays are of a homogeneous type with `Arrayof$Type`:
-
-```javascript
- function test(foo) {
- assert.arrayOfString(foo, 'foo');
- }
-```
-
-You can assert IFF an argument is not `undefined` (i.e., an optional arg):
-
-```javascript
- assert.optionalString(foo, 'foo');
-```
-
-Lastly, you can opt-out of assertion checking altogether by setting the
-environment variable `NODE_NDEBUG=1`. This is pseudo-useful if you have
-lots of assertions, and don't want to pay `typeof ()` taxes to v8 in
-production. Be advised: The standard functions re-exported from `assert` are
-also disabled in assert-plus if NDEBUG is specified. Using them directly from
-the `assert` module avoids this behavior.
-
-The complete list of APIs is:
-
-* assert.array
-* assert.bool
-* assert.buffer
-* assert.func
-* assert.number
-* assert.finite
-* assert.object
-* assert.string
-* assert.stream
-* assert.date
-* assert.regexp
-* assert.uuid
-* assert.arrayOfArray
-* assert.arrayOfBool
-* assert.arrayOfBuffer
-* assert.arrayOfFunc
-* assert.arrayOfNumber
-* assert.arrayOfFinite
-* assert.arrayOfObject
-* assert.arrayOfString
-* assert.arrayOfStream
-* assert.arrayOfDate
-* assert.arrayOfRegexp
-* assert.arrayOfUuid
-* assert.optionalArray
-* assert.optionalBool
-* assert.optionalBuffer
-* assert.optionalFunc
-* assert.optionalNumber
-* assert.optionalFinite
-* assert.optionalObject
-* assert.optionalString
-* assert.optionalStream
-* assert.optionalDate
-* assert.optionalRegexp
-* assert.optionalUuid
-* assert.optionalArrayOfArray
-* assert.optionalArrayOfBool
-* assert.optionalArrayOfBuffer
-* assert.optionalArrayOfFunc
-* assert.optionalArrayOfNumber
-* assert.optionalArrayOfFinite
-* assert.optionalArrayOfObject
-* assert.optionalArrayOfString
-* assert.optionalArrayOfStream
-* assert.optionalArrayOfDate
-* assert.optionalArrayOfRegexp
-* assert.optionalArrayOfUuid
-* assert.AssertionError
-* assert.fail
-* assert.ok
-* assert.equal
-* assert.notEqual
-* assert.deepEqual
-* assert.notDeepEqual
-* assert.strictEqual
-* assert.notStrictEqual
-* assert.throws
-* assert.doesNotThrow
-* assert.ifError
-
-# Installation
-
- npm install assert-plus
-
-## License
-
-The MIT License (MIT)
-Copyright (c) 2012 Mark Cavage
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-## Bugs
-
-See <https://github.com/mcavage/node-assert-plus/issues>.
diff --git a/node_modules/assert-plus/assert.js b/node_modules/assert-plus/assert.js
deleted file mode 100644
index 26f944e..0000000
--- a/node_modules/assert-plus/assert.js
+++ /dev/null
@@ -1,211 +0,0 @@
-// Copyright (c) 2012, Mark Cavage. All rights reserved.
-// Copyright 2015 Joyent, Inc.
-
-var assert = require('assert');
-var Stream = require('stream').Stream;
-var util = require('util');
-
-
-///--- Globals
-
-/* JSSTYLED */
-var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
-
-
-///--- Internal
-
-function _capitalize(str) {
- return (str.charAt(0).toUpperCase() + str.slice(1));
-}
-
-function _toss(name, expected, oper, arg, actual) {
- throw new assert.AssertionError({
- message: util.format('%s (%s) is required', name, expected),
- actual: (actual === undefined) ? typeof (arg) : actual(arg),
- expected: expected,
- operator: oper || '===',
- stackStartFunction: _toss.caller
- });
-}
-
-function _getClass(arg) {
- return (Object.prototype.toString.call(arg).slice(8, -1));
-}
-
-function noop() {
- // Why even bother with asserts?
-}
-
-
-///--- Exports
-
-var types = {
- bool: {
- check: function (arg) { return typeof (arg) === 'boolean'; }
- },
- func: {
- check: function (arg) { return typeof (arg) === 'function'; }
- },
- string: {
- check: function (arg) { return typeof (arg) === 'string'; }
- },
- object: {
- check: function (arg) {
- return typeof (arg) === 'object' && arg !== null;
- }
- },
- number: {
- check: function (arg) {
- return typeof (arg) === 'number' && !isNaN(arg);
- }
- },
- finite: {
- check: function (arg) {
- return typeof (arg) === 'number' && !isNaN(arg) && isFinite(arg);
- }
- },
- buffer: {
- check: function (arg) { return Buffer.isBuffer(arg); },
- operator: 'Buffer.isBuffer'
- },
- array: {
- check: function (arg) { return Array.isArray(arg); },
- operator: 'Array.isArray'
- },
- stream: {
- check: function (arg) { return arg instanceof Stream; },
- operator: 'instanceof',
- actual: _getClass
- },
- date: {
- check: function (arg) { return arg instanceof Date; },
- operator: 'instanceof',
- actual: _getClass
- },
- regexp: {
- check: function (arg) { return arg instanceof RegExp; },
- operator: 'instanceof',
- actual: _getClass
- },
- uuid: {
- check: function (arg) {
- return typeof (arg) === 'string' && UUID_REGEXP.test(arg);
- },
- operator: 'isUUID'
- }
-};
-
-function _setExports(ndebug) {
- var keys = Object.keys(types);
- var out;
-
- /* re-export standard assert */
- if (process.env.NODE_NDEBUG) {
- out = noop;
- } else {
- out = function (arg, msg) {
- if (!arg) {
- _toss(msg, 'true', arg);
- }
- };
- }
-
- /* standard checks */
- keys.forEach(function (k) {
- if (ndebug) {
- out[k] = noop;
- return;
- }
- var type = types[k];
- out[k] = function (arg, msg) {
- if (!type.check(arg)) {
- _toss(msg, k, type.operator, arg, type.actual);
- }
- };
- });
-
- /* optional checks */
- keys.forEach(function (k) {
- var name = 'optional' + _capitalize(k);
- if (ndebug) {
- out[name] = noop;
- return;
- }
- var type = types[k];
- out[name] = function (arg, msg) {
- if (arg === undefined || arg === null) {
- return;
- }
- if (!type.check(arg)) {
- _toss(msg, k, type.operator, arg, type.actual);
- }
- };
- });
-
- /* arrayOf checks */
- keys.forEach(function (k) {
- var name = 'arrayOf' + _capitalize(k);
- if (ndebug) {
- out[name] = noop;
- return;
- }
- var type = types[k];
- var expected = '[' + k + ']';
- out[name] = function (arg, msg) {
- if (!Array.isArray(arg)) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- var i;
- for (i = 0; i < arg.length; i++) {
- if (!type.check(arg[i])) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- }
- };
- });
-
- /* optionalArrayOf checks */
- keys.forEach(function (k) {
- var name = 'optionalArrayOf' + _capitalize(k);
- if (ndebug) {
- out[name] = noop;
- return;
- }
- var type = types[k];
- var expected = '[' + k + ']';
- out[name] = function (arg, msg) {
- if (arg === undefined || arg === null) {
- return;
- }
- if (!Array.isArray(arg)) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- var i;
- for (i = 0; i < arg.length; i++) {
- if (!type.check(arg[i])) {
- _toss(msg, expected, type.operator, arg, type.actual);
- }
- }
- };
- });
-
- /* re-export built-in assertions */
- Object.keys(assert).forEach(function (k) {
- if (k === 'AssertionError') {
- out[k] = assert[k];
- return;
- }
- if (ndebug) {
- out[k] = noop;
- return;
- }
- out[k] = assert[k];
- });
-
- /* export ourselves (for unit tests _only_) */
- out._setExports = _setExports;
-
- return out;
-}
-
-module.exports = _setExports(process.env.NODE_NDEBUG);
diff --git a/node_modules/assert-plus/package.json b/node_modules/assert-plus/package.json
deleted file mode 100644
index 2d1122d..0000000
--- a/node_modules/assert-plus/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_from": "assert-plus@^1.0.0",
- "_id": "assert-plus@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "_location": "/assert-plus",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "assert-plus@^1.0.0",
- "name": "assert-plus",
- "escapedName": "assert-plus",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/dashdash",
- "/getpass",
- "/http-signature",
- "/jsprim",
- "/sshpk",
- "/verror"
- ],
- "_resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "_shasum": "f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525",
- "_spec": "assert-plus@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/http-signature",
- "author": {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/mcavage/node-assert-plus/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Dave Eddy",
- "email": "dave@daveeddy.com"
- },
- {
- "name": "Fred Kuo",
- "email": "fred.kuo@joyent.com"
- },
- {
- "name": "Lars-Magnus Skog",
- "email": "ralphtheninja@riseup.net"
- },
- {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- {
- "name": "Patrick Mooney",
- "email": "pmooney@pfmooney.com"
- },
- {
- "name": "Rob Gulewich",
- "email": "robert.gulewich@joyent.com"
- }
- ],
- "dependencies": {},
- "deprecated": false,
- "description": "Extra assertions on top of node's assert module",
- "devDependencies": {
- "faucet": "0.0.1",
- "tape": "4.2.2"
- },
- "engines": {
- "node": ">=0.8"
- },
- "homepage": "https://github.com/mcavage/node-assert-plus#readme",
- "license": "MIT",
- "main": "./assert.js",
- "name": "assert-plus",
- "optionalDependencies": {},
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mcavage/node-assert-plus.git"
- },
- "scripts": {
- "test": "tape tests/*.js | ./node_modules/.bin/faucet"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/async-foreach/LICENSE-MIT b/node_modules/async-foreach/LICENSE-MIT
deleted file mode 100644
index 7505716..0000000
--- a/node_modules/async-foreach/LICENSE-MIT
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2011 "Cowboy" Ben Alman
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/async-foreach/README.md b/node_modules/async-foreach/README.md
deleted file mode 100644
index f574204..0000000
--- a/node_modules/async-foreach/README.md
+++ /dev/null
@@ -1,195 +0,0 @@
-# JavaScript Sync/Async forEach
-
-An optionally-asynchronous forEach with an interesting interface.
-
-## Getting Started
-
-This code should work just fine in Node.js:
-
-First, install the module with: `npm install async-foreach`
-
-```javascript
-var forEach = require('async-foreach').forEach;
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
-});
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// each c 2 ["a", "b", "c"]
-```
-
-Or in the browser:
-
-```html
-<script src="dist/ba-foreach.min.js"></script>
-<script>
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
-});
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// each c 2 ["a", "b", "c"]
-</script>
-```
-
-In the browser, you can attach the forEach method to any object.
-
-```html
-<script>
-this.exports = Bocoup.utils;
-</script>
-<script src="dist/ba-foreach.min.js"></script>
-<script>
-Bocoup.utils.forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
-});
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// each c 2 ["a", "b", "c"]
-</script>
-```
-
-## The General Idea (Why I thought this was worth sharing)
-
-The idea is to allow the callback to decide _at runtime_ whether the loop will be synchronous or asynchronous. By using `this` in a creative way (in situations where that value isn't already spoken for), an entire control API can be offered without over-complicating function signatures.
-
-```javascript
-forEach(arr, function(item, index) {
- // Synchronous.
-});
-
-forEach(arr, function(item, index) {
- // Only when `this.async` is called does iteration becomes asynchronous. The
- // loop won't be continued until the `done` function is executed.
- var done = this.async();
- // Continue in one second.
- setTimeout(done, 1000);
-});
-
-forEach(arr, function(item, index) {
- // Break out of synchronous iteration early by returning false.
- return index !== 1;
-});
-
-forEach(arr, function(item, index) {
- // Break out of asynchronous iteration early...
- var done = this.async();
- // ...by passing false to the done function.
- setTimeout(function() {
- done(index !== 1);
- });
-});
-```
-
-## Examples
-See the unit tests for more examples.
-
-```javascript
-// Generic "done" callback.
-function allDone(notAborted, arr) {
- console.log("done", notAborted, arr);
-}
-
-// Synchronous.
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
-}, allDone);
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// each c 2 ["a", "b", "c"]
-// done true ["a", "b", "c"]
-
-// Synchronous with early abort.
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
- if (item === "b") { return false; }
-}, allDone);
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// done false ["a", "b", "c"]
-
-// Asynchronous.
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
- var done = this.async();
- setTimeout(function() {
- done();
- }, 500);
-}, allDone);
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// each c 2 ["a", "b", "c"]
-// done true ["a", "b", "c"]
-
-// Asynchronous with early abort.
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
- var done = this.async();
- setTimeout(function() {
- done(item !== "b");
- }, 500);
-}, allDone);
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// done false ["a", "b", "c"]
-
-// Not actually asynchronous.
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
- var done = this.async()
- done();
-}, allDone);
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// each c 2 ["a", "b", "c"]
-// done true ["a", "b", "c"]
-
-// Not actually asynchronous with early abort.
-forEach(["a", "b", "c"], function(item, index, arr) {
- console.log("each", item, index, arr);
- var done = this.async();
- done(item !== "b");
-}, allDone);
-// logs:
-// each a 0 ["a", "b", "c"]
-// each b 1 ["a", "b", "c"]
-// done false ["a", "b", "c"]
-```
-
-## Contributing
-In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).
-
-_Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "lib" subdirectory!_
-
-## Release History
-
-04/29/2013
-v0.1.3
-Removed hard Node.js version dependency.
-
-11/17/2011
-v0.1.2
-Adding sparse array support.
-Invalid length properties are now sanitized.
-This closes issue #1 (like a boss).
-
-11/11/2011
-v0.1.1
-Refactored code to be much simpler. Yay for unit tests!
-
-11/11/2011
-v0.1.0
-Initial Release.
-
-## License
-Copyright (c) 2012 "Cowboy" Ben Alman
-Licensed under the MIT license.
-<http://benalman.com/about/license/>
diff --git a/node_modules/async-foreach/dist/ba-foreach.js b/node_modules/async-foreach/dist/ba-foreach.js
deleted file mode 100644
index 64c6eb8..0000000
--- a/node_modules/async-foreach/dist/ba-foreach.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/* JavaScript Sync/Async forEach - v0.1.2 - 1/10/2012
- * http://github.com/cowboy/javascript-sync-async-foreach
- * Copyright (c) 2012 "Cowboy" Ben Alman; Licensed MIT */
-
-(function(exports) {
-
- // Iterate synchronously or asynchronously.
- exports.forEach = function(arr, eachFn, doneFn) {
- var i = -1;
- // Resolve array length to a valid (ToUint32) number.
- var len = arr.length >>> 0;
-
- // This IIFE is called once now, and then again, by name, for each loop
- // iteration.
- (function next(result) {
- // This flag will be set to true if `this.async` is called inside the
- // eachFn` callback.
- var async;
- // Was false returned from the `eachFn` callback or passed to the
- // `this.async` done function?
- var abort = result === false;
-
- // Increment counter variable and skip any indices that don't exist. This
- // allows sparse arrays to be iterated.
- do { ++i; } while (!(i in arr) && i !== len);
-
- // Exit if result passed to `this.async` done function or returned from
- // the `eachFn` callback was false, or when done iterating.
- if (abort || i === len) {
- // If a `doneFn` callback was specified, invoke that now. Pass in a
- // boolean value representing "not aborted" state along with the array.
- if (doneFn) {
- doneFn(!abort, arr);
- }
- return;
- }
-
- // Invoke the `eachFn` callback, setting `this` inside the callback to a
- // custom object that contains one method, and passing in the array item,
- // index, and the array.
- result = eachFn.call({
- // If `this.async` is called inside the `eachFn` callback, set the async
- // flag and return a function that can be used to continue iterating.
- async: function() {
- async = true;
- return next;
- }
- }, arr[i], i, arr);
-
- // If the async flag wasn't set, continue by calling `next` synchronously,
- // passing in the result of the `eachFn` callback.
- if (!async) {
- next(result);
- }
- }());
- };
-
-}(typeof exports === "object" && exports || this)); \ No newline at end of file
diff --git a/node_modules/async-foreach/dist/ba-foreach.min.js b/node_modules/async-foreach/dist/ba-foreach.min.js
deleted file mode 100644
index c218a91..0000000
--- a/node_modules/async-foreach/dist/ba-foreach.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/* JavaScript Sync/Async forEach - v0.1.2 - 1/10/2012
- * http://github.com/cowboy/javascript-sync-async-foreach
- * Copyright (c) 2012 "Cowboy" Ben Alman; Licensed MIT */
-(function(a){a.forEach=function(a,b,c){var d=-1,e=a.length>>>0;(function f(g){var h,j=g===!1;do++d;while(!(d in a)&&d!==e);if(j||d===e){c&&c(!j,a);return}g=b.call({async:function(){return h=!0,f}},a[d],d,a),h||f(g)})()}})(typeof exports=="object"&&exports||this) \ No newline at end of file
diff --git a/node_modules/async-foreach/grunt.js b/node_modules/async-foreach/grunt.js
deleted file mode 100644
index 079a23a..0000000
--- a/node_modules/async-foreach/grunt.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*global config:true, task:true*/
-config.init({
- pkg: '<json:package.json>',
- meta: {
- title: 'JavaScript Sync/Async forEach',
- license: ['MIT'],
- copyright: 'Copyright (c) 2012 "Cowboy" Ben Alman',
- banner: '/* {{meta.title}} - v{{pkg.version}} - {{today "m/d/yyyy"}}\n' +
- ' * {{pkg.homepage}}\n' +
- ' * {{{meta.copyright}}}; Licensed {{join meta.license}} */'
- },
- concat: {
- 'dist/ba-foreach.js': ['<banner>', '<file_strip_banner:lib/foreach.js>']
- },
- min: {
- 'dist/ba-foreach.min.js': ['<banner>', 'dist/ba-foreach.js']
- },
- test: {
- files: ['test/**/*.js']
- },
- lint: {
- files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
- },
- watch: {
- files: '<config:lint.files>',
- tasks: 'lint:files test:files'
- },
- jshint: {
- options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- eqnull: true
- },
- globals: {
- exports: true
- }
- },
- uglify: {}
-});
-
-// Default task.
-task.registerTask('default', 'lint:files test:files concat min');
diff --git a/node_modules/async-foreach/lib/foreach.js b/node_modules/async-foreach/lib/foreach.js
deleted file mode 100644
index 9ee98b0..0000000
--- a/node_modules/async-foreach/lib/foreach.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/*!
- * Sync/Async forEach
- * https://github.com/cowboy/javascript-sync-async-foreach
- *
- * Copyright (c) 2012 "Cowboy" Ben Alman
- * Licensed under the MIT license.
- * http://benalman.com/about/license/
- */
-
-(function(exports) {
-
- // Iterate synchronously or asynchronously.
- exports.forEach = function(arr, eachFn, doneFn) {
- var i = -1;
- // Resolve array length to a valid (ToUint32) number.
- var len = arr.length >>> 0;
-
- // This IIFE is called once now, and then again, by name, for each loop
- // iteration.
- (function next(result) {
- // This flag will be set to true if `this.async` is called inside the
- // eachFn` callback.
- var async;
- // Was false returned from the `eachFn` callback or passed to the
- // `this.async` done function?
- var abort = result === false;
-
- // Increment counter variable and skip any indices that don't exist. This
- // allows sparse arrays to be iterated.
- do { ++i; } while (!(i in arr) && i !== len);
-
- // Exit if result passed to `this.async` done function or returned from
- // the `eachFn` callback was false, or when done iterating.
- if (abort || i === len) {
- // If a `doneFn` callback was specified, invoke that now. Pass in a
- // boolean value representing "not aborted" state along with the array.
- if (doneFn) {
- doneFn(!abort, arr);
- }
- return;
- }
-
- // Invoke the `eachFn` callback, setting `this` inside the callback to a
- // custom object that contains one method, and passing in the array item,
- // index, and the array.
- result = eachFn.call({
- // If `this.async` is called inside the `eachFn` callback, set the async
- // flag and return a function that can be used to continue iterating.
- async: function() {
- async = true;
- return next;
- }
- }, arr[i], i, arr);
-
- // If the async flag wasn't set, continue by calling `next` synchronously,
- // passing in the result of the `eachFn` callback.
- if (!async) {
- next(result);
- }
- }());
- };
-
-}(typeof exports === "object" && exports || this)); \ No newline at end of file
diff --git a/node_modules/async-foreach/package.json b/node_modules/async-foreach/package.json
deleted file mode 100644
index 02c82d9..0000000
--- a/node_modules/async-foreach/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "_from": "async-foreach@^0.1.3",
- "_id": "async-foreach@0.1.3",
- "_inBundle": false,
- "_integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=",
- "_location": "/async-foreach",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "async-foreach@^0.1.3",
- "name": "async-foreach",
- "escapedName": "async-foreach",
- "rawSpec": "^0.1.3",
- "saveSpec": null,
- "fetchSpec": "^0.1.3"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz",
- "_shasum": "36121f845c0578172de419a97dbeb1d16ec34542",
- "_spec": "async-foreach@^0.1.3",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "\"Cowboy\" Ben Alman",
- "url": "http://benalman.com/"
- },
- "bugs": {
- "url": "https://github.com/cowboy/javascript-sync-async-foreach/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "An optionally-asynchronous forEach with an interesting interface.",
- "devDependencies": {},
- "engines": {
- "node": "*"
- },
- "homepage": "http://github.com/cowboy/javascript-sync-async-foreach",
- "keywords": [
- "array",
- "loop",
- "sync",
- "async",
- "foreach"
- ],
- "main": "lib/foreach",
- "name": "async-foreach",
- "repository": {
- "type": "git",
- "url": "git://github.com/cowboy/javascript-sync-async-foreach.git"
- },
- "version": "0.1.3"
-}
diff --git a/node_modules/async-foreach/test/foreach_test.js b/node_modules/async-foreach/test/foreach_test.js
deleted file mode 100644
index be18c43..0000000
--- a/node_modules/async-foreach/test/foreach_test.js
+++ /dev/null
@@ -1,200 +0,0 @@
-/*global require:true, setTimeout:true */
-var forEach = require('../lib/foreach').forEach;
-
-exports['foreach'] = {
- setUp: function(done) {
- this.order = [];
- this.track = function() {
- [].push.apply(this.order, arguments);
- };
- done();
- },
- 'Synchronous': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- });
-
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "each", "c", 2, arr
- ], "should call eachFn for each array item, in order.");
- test.done();
- },
- 'Synchronous, done': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- }, function(notAborted, arr) {
- that.track("done", notAborted, arr);
- });
-
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "each", "c", 2, arr,
- "done", true, arr
- ], "should call eachFn for each array item, in order, followed by doneFn.");
- test.done();
- },
- 'Synchronous, early abort': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- if (item === "b") { return false; }
- }, function(notAborted, arr) {
- that.track("done", notAborted, arr);
- });
-
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "done", false, arr
- ], "should call eachFn for each array item, in order, followed by doneFn.");
- test.done();
- },
- 'Asynchronous': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- var done = this.async();
- setTimeout(done, 10);
- });
-
- setTimeout(function() {
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "each", "c", 2, arr
- ], "should call eachFn for each array item, in order.");
- test.done();
- }, 100);
- },
- 'Asynchronous, done': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- var done = this.async();
- setTimeout(done, 10);
- }, function(notAborted, arr) {
- that.track("done", notAborted, arr);
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "each", "c", 2, arr,
- "done", true, arr
- ], "should call eachFn for each array item, in order, followed by doneFn.");
- test.done();
- });
- },
- 'Asynchronous, early abort': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- var done = this.async();
- setTimeout(function() {
- done(item !== "b");
- }, 10);
- }, function(notAborted, arr) {
- that.track("done", notAborted, arr);
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "done", false, arr
- ], "should call eachFn for each array item, in order, followed by doneFn.");
- test.done();
- });
- },
- 'Not actually asynchronous': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- var done = this.async();
- done();
- }, function(notAborted, arr) {
- that.track("done", notAborted, arr);
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "each", "c", 2, arr,
- "done", true, arr
- ], "should call eachFn for each array item, in order, followed by doneFn.");
- test.done();
- });
- },
- 'Not actually asynchronous, early abort': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = ["a", "b", "c"];
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- var done = this.async();
- done(item !== "b");
- }, function(notAborted, arr) {
- that.track("done", notAborted, arr);
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "b", 1, arr,
- "done", false, arr
- ], "should call eachFn for each array item, in order, followed by doneFn.");
- test.done();
- });
- },
- 'Sparse array support': function(test) {
- test.expect(1);
- var that = this;
-
- var arr = [];
- arr[0] = "a";
- arr[9] = "z";
-
- forEach(arr, function(item, index, arr) {
- that.track("each", item, index, arr);
- });
-
- test.deepEqual(that.order, [
- "each", "a", 0, arr,
- "each", "z", 9, arr
- ], "should skip nonexistent array items.");
- test.done();
- },
- 'Invalid length sanitization': function(test) {
- test.expect(1);
- var that = this;
-
- var obj = {length: 4294967299, 0: "a", 2: "b", 3: "c" };
-
- forEach(obj, function(item, index, arr) {
- that.track("each", item, index, arr);
- });
-
- test.deepEqual(that.order, [
- "each", "a", 0, obj,
- "each", "b", 2, obj
- ], "should sanitize length property (ToUint32).");
- test.done();
- }
-};
diff --git a/node_modules/asynckit/LICENSE b/node_modules/asynckit/LICENSE
deleted file mode 100644
index c9eca5d..0000000
--- a/node_modules/asynckit/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2016 Alex Indigo
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/asynckit/README.md b/node_modules/asynckit/README.md
deleted file mode 100644
index ddcc7e6..0000000
--- a/node_modules/asynckit/README.md
+++ /dev/null
@@ -1,233 +0,0 @@
-# asynckit [![NPM Module](https://img.shields.io/npm/v/asynckit.svg?style=flat)](https://www.npmjs.com/package/asynckit)
-
-Minimal async jobs utility library, with streams support.
-
-[![PhantomJS Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=browser&style=flat)](https://travis-ci.org/alexindigo/asynckit)
-[![Linux Build](https://img.shields.io/travis/alexindigo/asynckit/v0.4.0.svg?label=linux:0.12-6.x&style=flat)](https://travis-ci.org/alexindigo/asynckit)
-[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/asynckit/v0.4.0.svg?label=windows:0.12-6.x&style=flat)](https://ci.appveyor.com/project/alexindigo/asynckit)
-
-[![Coverage Status](https://img.shields.io/coveralls/alexindigo/asynckit/v0.4.0.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/asynckit?branch=master)
-[![Dependency Status](https://img.shields.io/david/alexindigo/asynckit/v0.4.0.svg?style=flat)](https://david-dm.org/alexindigo/asynckit)
-[![bitHound Overall Score](https://www.bithound.io/github/alexindigo/asynckit/badges/score.svg)](https://www.bithound.io/github/alexindigo/asynckit)
-
-<!-- [![Readme](https://img.shields.io/badge/readme-tested-brightgreen.svg?style=flat)](https://www.npmjs.com/package/reamde) -->
-
-AsyncKit provides harness for `parallel` and `serial` iterators over list of items represented by arrays or objects.
-Optionally it accepts abort function (should be synchronously return by iterator for each item), and terminates left over jobs upon an error event. For specific iteration order built-in (`ascending` and `descending`) and custom sort helpers also supported, via `asynckit.serialOrdered` method.
-
-It ensures async operations to keep behavior more stable and prevent `Maximum call stack size exceeded` errors, from sync iterators.
-
-| compression | size |
-| :----------------- | -------: |
-| asynckit.js | 12.34 kB |
-| asynckit.min.js | 4.11 kB |
-| asynckit.min.js.gz | 1.47 kB |
-
-
-## Install
-
-```sh
-$ npm install --save asynckit
-```
-
-## Examples
-
-### Parallel Jobs
-
-Runs iterator over provided array in parallel. Stores output in the `result` array,
-on the matching positions. In unlikely event of an error from one of the jobs,
-will terminate rest of the active jobs (if abort function is provided)
-and return error along with salvaged data to the main callback function.
-
-#### Input Array
-
-```javascript
-var parallel = require('asynckit').parallel
- , assert = require('assert')
- ;
-
-var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
- , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
- , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
- , target = []
- ;
-
-parallel(source, asyncJob, function(err, result)
-{
- assert.deepEqual(result, expectedResult);
- assert.deepEqual(target, expectedTarget);
-});
-
-// async job accepts one element from the array
-// and a callback function
-function asyncJob(item, cb)
-{
- // different delays (in ms) per item
- var delay = item * 25;
-
- // pretend different jobs take different time to finish
- // and not in consequential order
- var timeoutId = setTimeout(function() {
- target.push(item);
- cb(null, item * 2);
- }, delay);
-
- // allow to cancel "leftover" jobs upon error
- // return function, invoking of which will abort this job
- return clearTimeout.bind(null, timeoutId);
-}
-```
-
-More examples could be found in [test/test-parallel-array.js](test/test-parallel-array.js).
-
-#### Input Object
-
-Also it supports named jobs, listed via object.
-
-```javascript
-var parallel = require('asynckit/parallel')
- , assert = require('assert')
- ;
-
-var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
- , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
- , expectedTarget = [ 1, 1, 2, 4, 8, 16, 32, 64 ]
- , expectedKeys = [ 'first', 'one', 'two', 'four', 'eight', 'sixteen', 'thirtyTwo', 'sixtyFour' ]
- , target = []
- , keys = []
- ;
-
-parallel(source, asyncJob, function(err, result)
-{
- assert.deepEqual(result, expectedResult);
- assert.deepEqual(target, expectedTarget);
- assert.deepEqual(keys, expectedKeys);
-});
-
-// supports full value, key, callback (shortcut) interface
-function asyncJob(item, key, cb)
-{
- // different delays (in ms) per item
- var delay = item * 25;
-
- // pretend different jobs take different time to finish
- // and not in consequential order
- var timeoutId = setTimeout(function() {
- keys.push(key);
- target.push(item);
- cb(null, item * 2);
- }, delay);
-
- // allow to cancel "leftover" jobs upon error
- // return function, invoking of which will abort this job
- return clearTimeout.bind(null, timeoutId);
-}
-```
-
-More examples could be found in [test/test-parallel-object.js](test/test-parallel-object.js).
-
-### Serial Jobs
-
-Runs iterator over provided array sequentially. Stores output in the `result` array,
-on the matching positions. In unlikely event of an error from one of the jobs,
-will not proceed to the rest of the items in the list
-and return error along with salvaged data to the main callback function.
-
-#### Input Array
-
-```javascript
-var serial = require('asynckit/serial')
- , assert = require('assert')
- ;
-
-var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
- , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
- , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
- , target = []
- ;
-
-serial(source, asyncJob, function(err, result)
-{
- assert.deepEqual(result, expectedResult);
- assert.deepEqual(target, expectedTarget);
-});
-
-// extended interface (item, key, callback)
-// also supported for arrays
-function asyncJob(item, key, cb)
-{
- target.push(key);
-
- // it will be automatically made async
- // even it iterator "returns" in the same event loop
- cb(null, item * 2);
-}
-```
-
-More examples could be found in [test/test-serial-array.js](test/test-serial-array.js).
-
-#### Input Object
-
-Also it supports named jobs, listed via object.
-
-```javascript
-var serial = require('asynckit').serial
- , assert = require('assert')
- ;
-
-var source = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
- , expectedResult = [ 2, 2, 8, 32, 128, 64, 16, 4 ]
- , expectedTarget = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
- , target = []
- ;
-
-var source = { first: 1, one: 1, four: 4, sixteen: 16, sixtyFour: 64, thirtyTwo: 32, eight: 8, two: 2 }
- , expectedResult = { first: 2, one: 2, four: 8, sixteen: 32, sixtyFour: 128, thirtyTwo: 64, eight: 16, two: 4 }
- , expectedTarget = [ 1, 1, 4, 16, 64, 32, 8, 2 ]
- , target = []
- ;
-
-
-serial(source, asyncJob, function(err, result)
-{
- assert.deepEqual(result, expectedResult);
- assert.deepEqual(target, expectedTarget);
-});
-
-// shortcut interface (item, callback)
-// works for object as well as for the arrays
-function asyncJob(item, cb)
-{
- target.push(item);
-
- // it will be automatically made async
- // even it iterator "returns" in the same event loop
- cb(null, item * 2);
-}
-```
-
-More examples could be found in [test/test-serial-object.js](test/test-serial-object.js).
-
-_Note: Since _object_ is an _unordered_ collection of properties,
-it may produce unexpected results with sequential iterations.
-Whenever order of the jobs' execution is important please use `serialOrdered` method._
-
-### Ordered Serial Iterations
-
-TBD
-
-For example [compare-property](compare-property) package.
-
-### Streaming interface
-
-TBD
-
-## Want to Know More?
-
-More examples can be found in [test folder](test/).
-
-Or open an [issue](https://github.com/alexindigo/asynckit/issues) with questions and/or suggestions.
-
-## License
-
-AsyncKit is licensed under the MIT license.
diff --git a/node_modules/asynckit/bench.js b/node_modules/asynckit/bench.js
deleted file mode 100644
index c612f1a..0000000
--- a/node_modules/asynckit/bench.js
+++ /dev/null
@@ -1,76 +0,0 @@
-/* eslint no-console: "off" */
-
-var asynckit = require('./')
- , async = require('async')
- , assert = require('assert')
- , expected = 0
- ;
-
-var Benchmark = require('benchmark');
-var suite = new Benchmark.Suite;
-
-var source = [];
-for (var z = 1; z < 100; z++)
-{
- source.push(z);
- expected += z;
-}
-
-suite
-// add tests
-
-.add('async.map', function(deferred)
-{
- var total = 0;
-
- async.map(source,
- function(i, cb)
- {
- setImmediate(function()
- {
- total += i;
- cb(null, total);
- });
- },
- function(err, result)
- {
- assert.ifError(err);
- assert.equal(result[result.length - 1], expected);
- deferred.resolve();
- });
-}, {'defer': true})
-
-
-.add('asynckit.parallel', function(deferred)
-{
- var total = 0;
-
- asynckit.parallel(source,
- function(i, cb)
- {
- setImmediate(function()
- {
- total += i;
- cb(null, total);
- });
- },
- function(err, result)
- {
- assert.ifError(err);
- assert.equal(result[result.length - 1], expected);
- deferred.resolve();
- });
-}, {'defer': true})
-
-
-// add listeners
-.on('cycle', function(ev)
-{
- console.log(String(ev.target));
-})
-.on('complete', function()
-{
- console.log('Fastest is ' + this.filter('fastest').map('name'));
-})
-// run async
-.run({ 'async': true });
diff --git a/node_modules/asynckit/index.js b/node_modules/asynckit/index.js
deleted file mode 100644
index 455f945..0000000
--- a/node_modules/asynckit/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports =
-{
- parallel : require('./parallel.js'),
- serial : require('./serial.js'),
- serialOrdered : require('./serialOrdered.js')
-};
diff --git a/node_modules/asynckit/lib/abort.js b/node_modules/asynckit/lib/abort.js
deleted file mode 100644
index 114367e..0000000
--- a/node_modules/asynckit/lib/abort.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// API
-module.exports = abort;
-
-/**
- * Aborts leftover active jobs
- *
- * @param {object} state - current state object
- */
-function abort(state)
-{
- Object.keys(state.jobs).forEach(clean.bind(state));
-
- // reset leftover jobs
- state.jobs = {};
-}
-
-/**
- * Cleans up leftover job by invoking abort function for the provided job id
- *
- * @this state
- * @param {string|number} key - job id to abort
- */
-function clean(key)
-{
- if (typeof this.jobs[key] == 'function')
- {
- this.jobs[key]();
- }
-}
diff --git a/node_modules/asynckit/lib/async.js b/node_modules/asynckit/lib/async.js
deleted file mode 100644
index 7f1288a..0000000
--- a/node_modules/asynckit/lib/async.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var defer = require('./defer.js');
-
-// API
-module.exports = async;
-
-/**
- * Runs provided callback asynchronously
- * even if callback itself is not
- *
- * @param {function} callback - callback to invoke
- * @returns {function} - augmented callback
- */
-function async(callback)
-{
- var isAsync = false;
-
- // check if async happened
- defer(function() { isAsync = true; });
-
- return function async_callback(err, result)
- {
- if (isAsync)
- {
- callback(err, result);
- }
- else
- {
- defer(function nextTick_callback()
- {
- callback(err, result);
- });
- }
- };
-}
diff --git a/node_modules/asynckit/lib/defer.js b/node_modules/asynckit/lib/defer.js
deleted file mode 100644
index b67110c..0000000
--- a/node_modules/asynckit/lib/defer.js
+++ /dev/null
@@ -1,26 +0,0 @@
-module.exports = defer;
-
-/**
- * Runs provided function on next iteration of the event loop
- *
- * @param {function} fn - function to run
- */
-function defer(fn)
-{
- var nextTick = typeof setImmediate == 'function'
- ? setImmediate
- : (
- typeof process == 'object' && typeof process.nextTick == 'function'
- ? process.nextTick
- : null
- );
-
- if (nextTick)
- {
- nextTick(fn);
- }
- else
- {
- setTimeout(fn, 0);
- }
-}
diff --git a/node_modules/asynckit/lib/iterate.js b/node_modules/asynckit/lib/iterate.js
deleted file mode 100644
index 5d2839a..0000000
--- a/node_modules/asynckit/lib/iterate.js
+++ /dev/null
@@ -1,75 +0,0 @@
-var async = require('./async.js')
- , abort = require('./abort.js')
- ;
-
-// API
-module.exports = iterate;
-
-/**
- * Iterates over each job object
- *
- * @param {array|object} list - array or object (named list) to iterate over
- * @param {function} iterator - iterator to run
- * @param {object} state - current job status
- * @param {function} callback - invoked when all elements processed
- */
-function iterate(list, iterator, state, callback)
-{
- // store current index
- var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;
-
- state.jobs[key] = runJob(iterator, key, list[key], function(error, output)
- {
- // don't repeat yourself
- // skip secondary callbacks
- if (!(key in state.jobs))
- {
- return;
- }
-
- // clean up jobs
- delete state.jobs[key];
-
- if (error)
- {
- // don't process rest of the results
- // stop still active jobs
- // and reset the list
- abort(state);
- }
- else
- {
- state.results[key] = output;
- }
-
- // return salvaged results
- callback(error, state.results);
- });
-}
-
-/**
- * Runs iterator over provided job element
- *
- * @param {function} iterator - iterator to invoke
- * @param {string|number} key - key/index of the element in the list of jobs
- * @param {mixed} item - job description
- * @param {function} callback - invoked after iterator is done with the job
- * @returns {function|mixed} - job abort function or something else
- */
-function runJob(iterator, key, item, callback)
-{
- var aborter;
-
- // allow shortcut if iterator expects only two arguments
- if (iterator.length == 2)
- {
- aborter = iterator(item, async(callback));
- }
- // otherwise go with full three arguments
- else
- {
- aborter = iterator(item, key, async(callback));
- }
-
- return aborter;
-}
diff --git a/node_modules/asynckit/lib/readable_asynckit.js b/node_modules/asynckit/lib/readable_asynckit.js
deleted file mode 100644
index 78ad240..0000000
--- a/node_modules/asynckit/lib/readable_asynckit.js
+++ /dev/null
@@ -1,91 +0,0 @@
-var streamify = require('./streamify.js')
- , defer = require('./defer.js')
- ;
-
-// API
-module.exports = ReadableAsyncKit;
-
-/**
- * Base constructor for all streams
- * used to hold properties/methods
- */
-function ReadableAsyncKit()
-{
- ReadableAsyncKit.super_.apply(this, arguments);
-
- // list of active jobs
- this.jobs = {};
-
- // add stream methods
- this.destroy = destroy;
- this._start = _start;
- this._read = _read;
-}
-
-/**
- * Destroys readable stream,
- * by aborting outstanding jobs
- *
- * @returns {void}
- */
-function destroy()
-{
- if (this.destroyed)
- {
- return;
- }
-
- this.destroyed = true;
-
- if (typeof this.terminator == 'function')
- {
- this.terminator();
- }
-}
-
-/**
- * Starts provided jobs in async manner
- *
- * @private
- */
-function _start()
-{
- // first argument – runner function
- var runner = arguments[0]
- // take away first argument
- , args = Array.prototype.slice.call(arguments, 1)
- // second argument - input data
- , input = args[0]
- // last argument - result callback
- , endCb = streamify.callback.call(this, args[args.length - 1])
- ;
-
- args[args.length - 1] = endCb;
- // third argument - iterator
- args[1] = streamify.iterator.call(this, args[1]);
-
- // allow time for proper setup
- defer(function()
- {
- if (!this.destroyed)
- {
- this.terminator = runner.apply(null, args);
- }
- else
- {
- endCb(null, Array.isArray(input) ? [] : {});
- }
- }.bind(this));
-}
-
-
-/**
- * Implement _read to comply with Readable streams
- * Doesn't really make sense for flowing object mode
- *
- * @private
- */
-function _read()
-{
-
-}
diff --git a/node_modules/asynckit/lib/readable_parallel.js b/node_modules/asynckit/lib/readable_parallel.js
deleted file mode 100644
index 5d2929f..0000000
--- a/node_modules/asynckit/lib/readable_parallel.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var parallel = require('../parallel.js');
-
-// API
-module.exports = ReadableParallel;
-
-/**
- * Streaming wrapper to `asynckit.parallel`
- *
- * @param {array|object} list - array or object (named list) to iterate over
- * @param {function} iterator - iterator to run
- * @param {function} callback - invoked when all elements processed
- * @returns {stream.Readable#}
- */
-function ReadableParallel(list, iterator, callback)
-{
- if (!(this instanceof ReadableParallel))
- {
- return new ReadableParallel(list, iterator, callback);
- }
-
- // turn on object mode
- ReadableParallel.super_.call(this, {objectMode: true});
-
- this._start(parallel, list, iterator, callback);
-}
diff --git a/node_modules/asynckit/lib/readable_serial.js b/node_modules/asynckit/lib/readable_serial.js
deleted file mode 100644
index 7822698..0000000
--- a/node_modules/asynckit/lib/readable_serial.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var serial = require('../serial.js');
-
-// API
-module.exports = ReadableSerial;
-
-/**
- * Streaming wrapper to `asynckit.serial`
- *
- * @param {array|object} list - array or object (named list) to iterate over
- * @param {function} iterator - iterator to run
- * @param {function} callback - invoked when all elements processed
- * @returns {stream.Readable#}
- */
-function ReadableSerial(list, iterator, callback)
-{
- if (!(this instanceof ReadableSerial))
- {
- return new ReadableSerial(list, iterator, callback);
- }
-
- // turn on object mode
- ReadableSerial.super_.call(this, {objectMode: true});
-
- this._start(serial, list, iterator, callback);
-}
diff --git a/node_modules/asynckit/lib/readable_serial_ordered.js b/node_modules/asynckit/lib/readable_serial_ordered.js
deleted file mode 100644
index 3de89c4..0000000
--- a/node_modules/asynckit/lib/readable_serial_ordered.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var serialOrdered = require('../serialOrdered.js');
-
-// API
-module.exports = ReadableSerialOrdered;
-// expose sort helpers
-module.exports.ascending = serialOrdered.ascending;
-module.exports.descending = serialOrdered.descending;
-
-/**
- * Streaming wrapper to `asynckit.serialOrdered`
- *
- * @param {array|object} list - array or object (named list) to iterate over
- * @param {function} iterator - iterator to run
- * @param {function} sortMethod - custom sort function
- * @param {function} callback - invoked when all elements processed
- * @returns {stream.Readable#}
- */
-function ReadableSerialOrdered(list, iterator, sortMethod, callback)
-{
- if (!(this instanceof ReadableSerialOrdered))
- {
- return new ReadableSerialOrdered(list, iterator, sortMethod, callback);
- }
-
- // turn on object mode
- ReadableSerialOrdered.super_.call(this, {objectMode: true});
-
- this._start(serialOrdered, list, iterator, sortMethod, callback);
-}
diff --git a/node_modules/asynckit/lib/state.js b/node_modules/asynckit/lib/state.js
deleted file mode 100644
index cbea7ad..0000000
--- a/node_modules/asynckit/lib/state.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// API
-module.exports = state;
-
-/**
- * Creates initial state object
- * for iteration over list
- *
- * @param {array|object} list - list to iterate over
- * @param {function|null} sortMethod - function to use for keys sort,
- * or `null` to keep them as is
- * @returns {object} - initial state object
- */
-function state(list, sortMethod)
-{
- var isNamedList = !Array.isArray(list)
- , initState =
- {
- index : 0,
- keyedList: isNamedList || sortMethod ? Object.keys(list) : null,
- jobs : {},
- results : isNamedList ? {} : [],
- size : isNamedList ? Object.keys(list).length : list.length
- }
- ;
-
- if (sortMethod)
- {
- // sort array keys based on it's values
- // sort object's keys just on own merit
- initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)
- {
- return sortMethod(list[a], list[b]);
- });
- }
-
- return initState;
-}
diff --git a/node_modules/asynckit/lib/streamify.js b/node_modules/asynckit/lib/streamify.js
deleted file mode 100644
index f56a1c9..0000000
--- a/node_modules/asynckit/lib/streamify.js
+++ /dev/null
@@ -1,141 +0,0 @@
-var async = require('./async.js');
-
-// API
-module.exports = {
- iterator: wrapIterator,
- callback: wrapCallback
-};
-
-/**
- * Wraps iterators with long signature
- *
- * @this ReadableAsyncKit#
- * @param {function} iterator - function to wrap
- * @returns {function} - wrapped function
- */
-function wrapIterator(iterator)
-{
- var stream = this;
-
- return function(item, key, cb)
- {
- var aborter
- , wrappedCb = async(wrapIteratorCallback.call(stream, cb, key))
- ;
-
- stream.jobs[key] = wrappedCb;
-
- // it's either shortcut (item, cb)
- if (iterator.length == 2)
- {
- aborter = iterator(item, wrappedCb);
- }
- // or long format (item, key, cb)
- else
- {
- aborter = iterator(item, key, wrappedCb);
- }
-
- return aborter;
- };
-}
-
-/**
- * Wraps provided callback function
- * allowing to execute snitch function before
- * real callback
- *
- * @this ReadableAsyncKit#
- * @param {function} callback - function to wrap
- * @returns {function} - wrapped function
- */
-function wrapCallback(callback)
-{
- var stream = this;
-
- var wrapped = function(error, result)
- {
- return finisher.call(stream, error, result, callback);
- };
-
- return wrapped;
-}
-
-/**
- * Wraps provided iterator callback function
- * makes sure snitch only called once,
- * but passes secondary calls to the original callback
- *
- * @this ReadableAsyncKit#
- * @param {function} callback - callback to wrap
- * @param {number|string} key - iteration key
- * @returns {function} wrapped callback
- */
-function wrapIteratorCallback(callback, key)
-{
- var stream = this;
-
- return function(error, output)
- {
- // don't repeat yourself
- if (!(key in stream.jobs))
- {
- callback(error, output);
- return;
- }
-
- // clean up jobs
- delete stream.jobs[key];
-
- return streamer.call(stream, error, {key: key, value: output}, callback);
- };
-}
-
-/**
- * Stream wrapper for iterator callback
- *
- * @this ReadableAsyncKit#
- * @param {mixed} error - error response
- * @param {mixed} output - iterator output
- * @param {function} callback - callback that expects iterator results
- */
-function streamer(error, output, callback)
-{
- if (error && !this.error)
- {
- this.error = error;
- this.pause();
- this.emit('error', error);
- // send back value only, as expected
- callback(error, output && output.value);
- return;
- }
-
- // stream stuff
- this.push(output);
-
- // back to original track
- // send back value only, as expected
- callback(error, output && output.value);
-}
-
-/**
- * Stream wrapper for finishing callback
- *
- * @this ReadableAsyncKit#
- * @param {mixed} error - error response
- * @param {mixed} output - iterator output
- * @param {function} callback - callback that expects final results
- */
-function finisher(error, output, callback)
-{
- // signal end of the stream
- // only for successfully finished streams
- if (!error)
- {
- this.push(null);
- }
-
- // back to original track
- callback(error, output);
-}
diff --git a/node_modules/asynckit/lib/terminator.js b/node_modules/asynckit/lib/terminator.js
deleted file mode 100644
index d6eb992..0000000
--- a/node_modules/asynckit/lib/terminator.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var abort = require('./abort.js')
- , async = require('./async.js')
- ;
-
-// API
-module.exports = terminator;
-
-/**
- * Terminates jobs in the attached state context
- *
- * @this AsyncKitState#
- * @param {function} callback - final callback to invoke after termination
- */
-function terminator(callback)
-{
- if (!Object.keys(this.jobs).length)
- {
- return;
- }
-
- // fast forward iteration index
- this.index = this.size;
-
- // abort jobs
- abort(this);
-
- // send back results we have so far
- async(callback)(null, this.results);
-}
diff --git a/node_modules/asynckit/package.json b/node_modules/asynckit/package.json
deleted file mode 100644
index 6e172d7..0000000
--- a/node_modules/asynckit/package.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "_from": "asynckit@^0.4.0",
- "_id": "asynckit@0.4.0",
- "_inBundle": false,
- "_integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
- "_location": "/asynckit",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "asynckit@^0.4.0",
- "name": "asynckit",
- "escapedName": "asynckit",
- "rawSpec": "^0.4.0",
- "saveSpec": null,
- "fetchSpec": "^0.4.0"
- },
- "_requiredBy": [
- "/form-data"
- ],
- "_resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "_shasum": "c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79",
- "_spec": "asynckit@^0.4.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/form-data",
- "author": {
- "name": "Alex Indigo",
- "email": "iam@alexindigo.com"
- },
- "bugs": {
- "url": "https://github.com/alexindigo/asynckit/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Minimal async jobs utility library, with streams support",
- "devDependencies": {
- "browserify": "^13.0.0",
- "browserify-istanbul": "^2.0.0",
- "coveralls": "^2.11.9",
- "eslint": "^2.9.0",
- "istanbul": "^0.4.3",
- "obake": "^0.1.2",
- "phantomjs-prebuilt": "^2.1.7",
- "pre-commit": "^1.1.3",
- "reamde": "^1.1.0",
- "rimraf": "^2.5.2",
- "size-table": "^0.2.0",
- "tap-spec": "^4.1.1",
- "tape": "^4.5.1"
- },
- "homepage": "https://github.com/alexindigo/asynckit#readme",
- "keywords": [
- "async",
- "jobs",
- "parallel",
- "serial",
- "iterator",
- "array",
- "object",
- "stream",
- "destroy",
- "terminate",
- "abort"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "asynckit",
- "pre-commit": [
- "clean",
- "lint",
- "test",
- "browser",
- "report",
- "size"
- ],
- "repository": {
- "type": "git",
- "url": "git+https://github.com/alexindigo/asynckit.git"
- },
- "scripts": {
- "browser": "browserify -t browserify-istanbul test/lib/browserify_adjustment.js test/test-*.js | obake --coverage | tap-spec",
- "clean": "rimraf coverage",
- "debug": "tape test/test-*.js",
- "lint": "eslint *.js lib/*.js test/*.js",
- "report": "istanbul report",
- "size": "browserify index.js | size-table asynckit",
- "test": "istanbul cover --reporter=json tape -- 'test/test-*.js' | tap-spec",
- "win-test": "tape test/test-*.js"
- },
- "version": "0.4.0"
-}
diff --git a/node_modules/asynckit/parallel.js b/node_modules/asynckit/parallel.js
deleted file mode 100644
index 3c50344..0000000
--- a/node_modules/asynckit/parallel.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var iterate = require('./lib/iterate.js')
- , initState = require('./lib/state.js')
- , terminator = require('./lib/terminator.js')
- ;
-
-// Public API
-module.exports = parallel;
-
-/**
- * Runs iterator over provided array elements in parallel
- *
- * @param {array|object} list - array or object (named list) to iterate over
- * @param {function} iterator - iterator to run
- * @param {function} callback - invoked when all elements processed
- * @returns {function} - jobs terminator
- */
-function parallel(list, iterator, callback)
-{
- var state = initState(list);
-
- while (state.index < (state['keyedList'] || list).length)
- {
- iterate(list, iterator, state, function(error, result)
- {
- if (error)
- {
- callback(error, result);
- return;
- }
-
- // looks like it's the last one
- if (Object.keys(state.jobs).length === 0)
- {
- callback(null, state.results);
- return;
- }
- });
-
- state.index++;
- }
-
- return terminator.bind(state, callback);
-}
diff --git a/node_modules/asynckit/serial.js b/node_modules/asynckit/serial.js
deleted file mode 100644
index 6cd949a..0000000
--- a/node_modules/asynckit/serial.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var serialOrdered = require('./serialOrdered.js');
-
-// Public API
-module.exports = serial;
-
-/**
- * Runs iterator over provided array elements in series
- *
- * @param {array|object} list - array or object (named list) to iterate over
- * @param {function} iterator - iterator to run
- * @param {function} callback - invoked when all elements processed
- * @returns {function} - jobs terminator
- */
-function serial(list, iterator, callback)
-{
- return serialOrdered(list, iterator, null, callback);
-}
diff --git a/node_modules/asynckit/serialOrdered.js b/node_modules/asynckit/serialOrdered.js
deleted file mode 100644
index 607eafe..0000000
--- a/node_modules/asynckit/serialOrdered.js
+++ /dev/null
@@ -1,75 +0,0 @@
-var iterate = require('./lib/iterate.js')
- , initState = require('./lib/state.js')
- , terminator = require('./lib/terminator.js')
- ;
-
-// Public API
-module.exports = serialOrdered;
-// sorting helpers
-module.exports.ascending = ascending;
-module.exports.descending = descending;
-
-/**
- * Runs iterator over provided sorted array elements in series
- *
- * @param {array|object} list - array or object (named list) to iterate over
- * @param {function} iterator - iterator to run
- * @param {function} sortMethod - custom sort function
- * @param {function} callback - invoked when all elements processed
- * @returns {function} - jobs terminator
- */
-function serialOrdered(list, iterator, sortMethod, callback)
-{
- var state = initState(list, sortMethod);
-
- iterate(list, iterator, state, function iteratorHandler(error, result)
- {
- if (error)
- {
- callback(error, result);
- return;
- }
-
- state.index++;
-
- // are we there yet?
- if (state.index < (state['keyedList'] || list).length)
- {
- iterate(list, iterator, state, iteratorHandler);
- return;
- }
-
- // done here
- callback(null, state.results);
- });
-
- return terminator.bind(state, callback);
-}
-
-/*
- * -- Sort methods
- */
-
-/**
- * sort helper to sort array elements in ascending order
- *
- * @param {mixed} a - an item to compare
- * @param {mixed} b - an item to compare
- * @returns {number} - comparison result
- */
-function ascending(a, b)
-{
- return a < b ? -1 : a > b ? 1 : 0;
-}
-
-/**
- * sort helper to sort array elements in descending order
- *
- * @param {mixed} a - an item to compare
- * @param {mixed} b - an item to compare
- * @returns {number} - comparison result
- */
-function descending(a, b)
-{
- return -1 * ascending(a, b);
-}
diff --git a/node_modules/asynckit/stream.js b/node_modules/asynckit/stream.js
deleted file mode 100644
index d43465f..0000000
--- a/node_modules/asynckit/stream.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var inherits = require('util').inherits
- , Readable = require('stream').Readable
- , ReadableAsyncKit = require('./lib/readable_asynckit.js')
- , ReadableParallel = require('./lib/readable_parallel.js')
- , ReadableSerial = require('./lib/readable_serial.js')
- , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js')
- ;
-
-// API
-module.exports =
-{
- parallel : ReadableParallel,
- serial : ReadableSerial,
- serialOrdered : ReadableSerialOrdered,
-};
-
-inherits(ReadableAsyncKit, Readable);
-
-inherits(ReadableParallel, ReadableAsyncKit);
-inherits(ReadableSerial, ReadableAsyncKit);
-inherits(ReadableSerialOrdered, ReadableAsyncKit);
diff --git a/node_modules/aws-sign2/LICENSE b/node_modules/aws-sign2/LICENSE
deleted file mode 100644
index a4a9aee..0000000
--- a/node_modules/aws-sign2/LICENSE
+++ /dev/null
@@ -1,55 +0,0 @@
-Apache License
-
-Version 2.0, January 2004
-
-http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-
-You must give any other recipients of the Work or Derivative Works a copy of this License; and
-
-You must cause any modified files to carry prominent notices stating that You changed the files; and
-
-You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-
-If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS \ No newline at end of file
diff --git a/node_modules/aws-sign2/README.md b/node_modules/aws-sign2/README.md
deleted file mode 100644
index 763564e..0000000
--- a/node_modules/aws-sign2/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-aws-sign
-========
-
-AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.
diff --git a/node_modules/aws-sign2/index.js b/node_modules/aws-sign2/index.js
deleted file mode 100644
index fb35f6d..0000000
--- a/node_modules/aws-sign2/index.js
+++ /dev/null
@@ -1,212 +0,0 @@
-
-/*!
- * Copyright 2010 LearnBoost <dev@learnboost.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * Module dependencies.
- */
-
-var crypto = require('crypto')
- , parse = require('url').parse
- ;
-
-/**
- * Valid keys.
- */
-
-var keys =
- [ 'acl'
- , 'location'
- , 'logging'
- , 'notification'
- , 'partNumber'
- , 'policy'
- , 'requestPayment'
- , 'torrent'
- , 'uploadId'
- , 'uploads'
- , 'versionId'
- , 'versioning'
- , 'versions'
- , 'website'
- ]
-
-/**
- * Return an "Authorization" header value with the given `options`
- * in the form of "AWS <key>:<signature>"
- *
- * @param {Object} options
- * @return {String}
- * @api private
- */
-
-function authorization (options) {
- return 'AWS ' + options.key + ':' + sign(options)
-}
-
-module.exports = authorization
-module.exports.authorization = authorization
-
-/**
- * Simple HMAC-SHA1 Wrapper
- *
- * @param {Object} options
- * @return {String}
- * @api private
- */
-
-function hmacSha1 (options) {
- return crypto.createHmac('sha1', options.secret).update(options.message).digest('base64')
-}
-
-module.exports.hmacSha1 = hmacSha1
-
-/**
- * Create a base64 sha1 HMAC for `options`.
- *
- * @param {Object} options
- * @return {String}
- * @api private
- */
-
-function sign (options) {
- options.message = stringToSign(options)
- return hmacSha1(options)
-}
-module.exports.sign = sign
-
-/**
- * Create a base64 sha1 HMAC for `options`.
- *
- * Specifically to be used with S3 presigned URLs
- *
- * @param {Object} options
- * @return {String}
- * @api private
- */
-
-function signQuery (options) {
- options.message = queryStringToSign(options)
- return hmacSha1(options)
-}
-module.exports.signQuery= signQuery
-
-/**
- * Return a string for sign() with the given `options`.
- *
- * Spec:
- *
- * <verb>\n
- * <md5>\n
- * <content-type>\n
- * <date>\n
- * [headers\n]
- * <resource>
- *
- * @param {Object} options
- * @return {String}
- * @api private
- */
-
-function stringToSign (options) {
- var headers = options.amazonHeaders || ''
- if (headers) headers += '\n'
- var r =
- [ options.verb
- , options.md5
- , options.contentType
- , options.date ? options.date.toUTCString() : ''
- , headers + options.resource
- ]
- return r.join('\n')
-}
-module.exports.stringToSign = stringToSign
-
-/**
- * Return a string for sign() with the given `options`, but is meant exclusively
- * for S3 presigned URLs
- *
- * Spec:
- *
- * <date>\n
- * <resource>
- *
- * @param {Object} options
- * @return {String}
- * @api private
- */
-
-function queryStringToSign (options){
- return 'GET\n\n\n' + options.date + '\n' + options.resource
-}
-module.exports.queryStringToSign = queryStringToSign
-
-/**
- * Perform the following:
- *
- * - ignore non-amazon headers
- * - lowercase fields
- * - sort lexicographically
- * - trim whitespace between ":"
- * - join with newline
- *
- * @param {Object} headers
- * @return {String}
- * @api private
- */
-
-function canonicalizeHeaders (headers) {
- var buf = []
- , fields = Object.keys(headers)
- ;
- for (var i = 0, len = fields.length; i < len; ++i) {
- var field = fields[i]
- , val = headers[field]
- , field = field.toLowerCase()
- ;
- if (0 !== field.indexOf('x-amz')) continue
- buf.push(field + ':' + val)
- }
- return buf.sort().join('\n')
-}
-module.exports.canonicalizeHeaders = canonicalizeHeaders
-
-/**
- * Perform the following:
- *
- * - ignore non sub-resources
- * - sort lexicographically
- *
- * @param {String} resource
- * @return {String}
- * @api private
- */
-
-function canonicalizeResource (resource) {
- var url = parse(resource, true)
- , path = url.pathname
- , buf = []
- ;
-
- Object.keys(url.query).forEach(function(key){
- if (!~keys.indexOf(key)) return
- var val = '' == url.query[key] ? '' : '=' + encodeURIComponent(url.query[key])
- buf.push(key + val)
- })
-
- return path + (buf.length ? '?' + buf.sort().join('&') : '')
-}
-module.exports.canonicalizeResource = canonicalizeResource
diff --git a/node_modules/aws-sign2/package.json b/node_modules/aws-sign2/package.json
deleted file mode 100644
index 0e85911..0000000
--- a/node_modules/aws-sign2/package.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "_from": "aws-sign2@~0.7.0",
- "_id": "aws-sign2@0.7.0",
- "_inBundle": false,
- "_integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=",
- "_location": "/aws-sign2",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "aws-sign2@~0.7.0",
- "name": "aws-sign2",
- "escapedName": "aws-sign2",
- "rawSpec": "~0.7.0",
- "saveSpec": null,
- "fetchSpec": "~0.7.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
- "_shasum": "b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8",
- "_spec": "aws-sign2@~0.7.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Mikeal Rogers",
- "email": "mikeal.rogers@gmail.com",
- "url": "http://www.futurealoof.com"
- },
- "bugs": {
- "url": "https://github.com/mikeal/aws-sign/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module.",
- "devDependencies": {},
- "engines": {
- "node": "*"
- },
- "homepage": "https://github.com/mikeal/aws-sign#readme",
- "license": "Apache-2.0",
- "main": "index.js",
- "name": "aws-sign2",
- "optionalDependencies": {},
- "repository": {
- "url": "git+https://github.com/mikeal/aws-sign.git"
- },
- "version": "0.7.0"
-}
diff --git a/node_modules/aws4/.travis.yml b/node_modules/aws4/.travis.yml
deleted file mode 100644
index 178bf31..0000000
--- a/node_modules/aws4/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: node_js
-node_js:
- - "0.10"
- - "0.12"
- - "4"
- - "6"
- - "8"
- - "10"
- - "12"
diff --git a/node_modules/aws4/LICENSE b/node_modules/aws4/LICENSE
deleted file mode 100644
index 4f321e5..0000000
--- a/node_modules/aws4/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright 2013 Michael Hart (michael.hart.au@gmail.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/aws4/README.md b/node_modules/aws4/README.md
deleted file mode 100644
index f4dc271..0000000
--- a/node_modules/aws4/README.md
+++ /dev/null
@@ -1,174 +0,0 @@
-aws4
-----
-
-[![Build Status](https://api.travis-ci.org/mhart/aws4.png?branch=master)](https://travis-ci.org/github/mhart/aws4)
-
-A small utility to sign vanilla Node.js http(s) request options using Amazon's
-[AWS Signature Version 4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
-
-If you want to sign and send AWS requests in a modern browser, or an environment like [Cloudflare Workers](https://developers.cloudflare.com/workers/), then check out [aws4fetch](https://github.com/mhart/aws4fetch) – otherwise you can also bundle this library for use [in older browsers](./browser).
-
-The only AWS service that *doesn't* support v4 as of 2020-05-22 is
-[SimpleDB](https://docs.aws.amazon.com/AmazonSimpleDB/latest/DeveloperGuide/SDB_API.html)
-(it only supports [AWS Signature Version 2](https://github.com/mhart/aws2)).
-
-It also provides defaults for a number of core AWS headers and
-request parameters, making it very easy to query AWS services, or
-build out a fully-featured AWS library.
-
-Example
--------
-
-```javascript
-var http = require('https')
-var aws4 = require('aws4')
-
-// to illustrate usage, we'll create a utility function to request and pipe to stdout
-function request(opts) { http.request(opts, function(res) { res.pipe(process.stdout) }).end(opts.body || '') }
-
-// aws4 will sign an options object as you'd pass to http.request, with an AWS service and region
-var opts = { host: 'my-bucket.s3.us-west-1.amazonaws.com', path: '/my-object', service: 's3', region: 'us-west-1' }
-
-// aws4.sign() will sign and modify these options, ready to pass to http.request
-aws4.sign(opts, { accessKeyId: '', secretAccessKey: '' })
-
-// or it can get credentials from process.env.AWS_ACCESS_KEY_ID, etc
-aws4.sign(opts)
-
-// for most AWS services, aws4 can figure out the service and region if you pass a host
-opts = { host: 'my-bucket.s3.us-west-1.amazonaws.com', path: '/my-object' }
-
-// usually it will add/modify request headers, but you can also sign the query:
-opts = { host: 'my-bucket.s3.amazonaws.com', path: '/?X-Amz-Expires=12345', signQuery: true }
-
-// and for services with simple hosts, aws4 can infer the host from service and region:
-opts = { service: 'sqs', region: 'us-east-1', path: '/?Action=ListQueues' }
-
-// and if you're using us-east-1, it's the default:
-opts = { service: 'sqs', path: '/?Action=ListQueues' }
-
-aws4.sign(opts)
-console.log(opts)
-/*
-{
- host: 'sqs.us-east-1.amazonaws.com',
- path: '/?Action=ListQueues',
- headers: {
- Host: 'sqs.us-east-1.amazonaws.com',
- 'X-Amz-Date': '20121226T061030Z',
- Authorization: 'AWS4-HMAC-SHA256 Credential=ABCDEF/20121226/us-east-1/sqs/aws4_request, ...'
- }
-}
-*/
-
-// we can now use this to query AWS
-request(opts)
-/*
-<?xml version="1.0"?>
-<ListQueuesResponse xmlns="https://queue.amazonaws.com/doc/2012-11-05/">
-...
-*/
-
-// aws4 can infer the HTTP method if a body is passed in
-// method will be POST and Content-Type: 'application/x-www-form-urlencoded; charset=utf-8'
-request(aws4.sign({ service: 'iam', body: 'Action=ListGroups&Version=2010-05-08' }))
-/*
-<ListGroupsResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
-...
-*/
-
-// you can specify any custom option or header as per usual
-request(aws4.sign({
- service: 'dynamodb',
- region: 'ap-southeast-2',
- method: 'POST',
- path: '/',
- headers: {
- 'Content-Type': 'application/x-amz-json-1.0',
- 'X-Amz-Target': 'DynamoDB_20120810.ListTables'
- },
- body: '{}'
-}))
-/*
-{"TableNames":[]}
-...
-*/
-
-// see example.js for examples with other services
-```
-
-API
----
-
-### aws4.sign(requestOptions, [credentials])
-
-This calculates and populates the `Authorization` header of
-`requestOptions`, and any other necessary AWS headers and/or request
-options. Returns `requestOptions` as a convenience for chaining.
-
-`requestOptions` is an object holding the same options that the node.js
-[http.request](https://nodejs.org/docs/latest/api/http.html#http_http_request_options_callback)
-function takes.
-
-The following properties of `requestOptions` are used in the signing or
-populated if they don't already exist:
-
-- `hostname` or `host` (will try to be determined from `service` and `region` if not given)
-- `method` (will use `'GET'` if not given or `'POST'` if there is a `body`)
-- `path` (will use `'/'` if not given)
-- `body` (will use `''` if not given)
-- `service` (will try to be calculated from `hostname` or `host` if not given)
-- `region` (will try to be calculated from `hostname` or `host` or use `'us-east-1'` if not given)
-- `headers['Host']` (will use `hostname` or `host` or be calculated if not given)
-- `headers['Content-Type']` (will use `'application/x-www-form-urlencoded; charset=utf-8'`
- if not given and there is a `body`)
-- `headers['Date']` (used to calculate the signature date if given, otherwise `new Date` is used)
-
-Your AWS credentials (which can be found in your
-[AWS console](https://portal.aws.amazon.com/gp/aws/securityCredentials))
-can be specified in one of two ways:
-
-- As the second argument, like this:
-
-```javascript
-aws4.sign(requestOptions, {
- secretAccessKey: "<your-secret-access-key>",
- accessKeyId: "<your-access-key-id>",
- sessionToken: "<your-session-token>"
-})
-```
-
-- From `process.env`, such as this:
-
-```
-export AWS_ACCESS_KEY_ID="<your-access-key-id>"
-export AWS_SECRET_ACCESS_KEY="<your-secret-access-key>"
-export AWS_SESSION_TOKEN="<your-session-token>"
-```
-
-(will also use `AWS_ACCESS_KEY` and `AWS_SECRET_KEY` if available)
-
-The `sessionToken` property and `AWS_SESSION_TOKEN` environment variable are optional for signing
-with [IAM STS temporary credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html).
-
-Installation
-------------
-
-With [npm](https://www.npmjs.com/) do:
-
-```
-npm install aws4
-```
-
-Can also be used [in the browser](./browser).
-
-Thanks
-------
-
-Thanks to [@jed](https://github.com/jed) for his
-[dynamo-client](https://github.com/jed/dynamo-client) lib where I first
-committed and subsequently extracted this code.
-
-Also thanks to the
-[official node.js AWS SDK](https://github.com/aws/aws-sdk-js) for giving
-me a start on implementing the v4 signature.
diff --git a/node_modules/aws4/aws4.js b/node_modules/aws4/aws4.js
deleted file mode 100644
index ed282f8..0000000
--- a/node_modules/aws4/aws4.js
+++ /dev/null
@@ -1,357 +0,0 @@
-var aws4 = exports,
- url = require('url'),
- querystring = require('querystring'),
- crypto = require('crypto'),
- lru = require('./lru'),
- credentialsCache = lru(1000)
-
-// http://docs.amazonwebservices.com/general/latest/gr/signature-version-4.html
-
-function hmac(key, string, encoding) {
- return crypto.createHmac('sha256', key).update(string, 'utf8').digest(encoding)
-}
-
-function hash(string, encoding) {
- return crypto.createHash('sha256').update(string, 'utf8').digest(encoding)
-}
-
-// This function assumes the string has already been percent encoded
-function encodeRfc3986(urlEncodedString) {
- return urlEncodedString.replace(/[!'()*]/g, function(c) {
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
- })
-}
-
-function encodeRfc3986Full(str) {
- return encodeRfc3986(encodeURIComponent(str))
-}
-
-// request: { path | body, [host], [method], [headers], [service], [region] }
-// credentials: { accessKeyId, secretAccessKey, [sessionToken] }
-function RequestSigner(request, credentials) {
-
- if (typeof request === 'string') request = url.parse(request)
-
- var headers = request.headers = (request.headers || {}),
- hostParts = (!this.service || !this.region) && this.matchHost(request.hostname || request.host || headers.Host || headers.host)
-
- this.request = request
- this.credentials = credentials || this.defaultCredentials()
-
- this.service = request.service || hostParts[0] || ''
- this.region = request.region || hostParts[1] || 'us-east-1'
-
- // SES uses a different domain from the service name
- if (this.service === 'email') this.service = 'ses'
-
- if (!request.method && request.body)
- request.method = 'POST'
-
- if (!headers.Host && !headers.host) {
- headers.Host = request.hostname || request.host || this.createHost()
-
- // If a port is specified explicitly, use it as is
- if (request.port)
- headers.Host += ':' + request.port
- }
- if (!request.hostname && !request.host)
- request.hostname = headers.Host || headers.host
-
- this.isCodeCommitGit = this.service === 'codecommit' && request.method === 'GIT'
-}
-
-RequestSigner.prototype.matchHost = function(host) {
- var match = (host || '').match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/)
- var hostParts = (match || []).slice(1, 3)
-
- // ES's hostParts are sometimes the other way round, if the value that is expected
- // to be region equals ‘es’ switch them back
- // e.g. search-cluster-name-aaaa00aaaa0aaa0aaaaaaa0aaa.us-east-1.es.amazonaws.com
- if (hostParts[1] === 'es')
- hostParts = hostParts.reverse()
-
- if (hostParts[1] == 's3') {
- hostParts[0] = 's3'
- hostParts[1] = 'us-east-1'
- } else {
- for (var i = 0; i < 2; i++) {
- if (/^s3-/.test(hostParts[i])) {
- hostParts[1] = hostParts[i].slice(3)
- hostParts[0] = 's3'
- break
- }
- }
- }
-
- return hostParts
-}
-
-// http://docs.aws.amazon.com/general/latest/gr/rande.html
-RequestSigner.prototype.isSingleRegion = function() {
- // Special case for S3 and SimpleDB in us-east-1
- if (['s3', 'sdb'].indexOf(this.service) >= 0 && this.region === 'us-east-1') return true
-
- return ['cloudfront', 'ls', 'route53', 'iam', 'importexport', 'sts']
- .indexOf(this.service) >= 0
-}
-
-RequestSigner.prototype.createHost = function() {
- var region = this.isSingleRegion() ? '' : '.' + this.region,
- subdomain = this.service === 'ses' ? 'email' : this.service
- return subdomain + region + '.amazonaws.com'
-}
-
-RequestSigner.prototype.prepareRequest = function() {
- this.parsePath()
-
- var request = this.request, headers = request.headers, query
-
- if (request.signQuery) {
-
- this.parsedPath.query = query = this.parsedPath.query || {}
-
- if (this.credentials.sessionToken)
- query['X-Amz-Security-Token'] = this.credentials.sessionToken
-
- if (this.service === 's3' && !query['X-Amz-Expires'])
- query['X-Amz-Expires'] = 86400
-
- if (query['X-Amz-Date'])
- this.datetime = query['X-Amz-Date']
- else
- query['X-Amz-Date'] = this.getDateTime()
-
- query['X-Amz-Algorithm'] = 'AWS4-HMAC-SHA256'
- query['X-Amz-Credential'] = this.credentials.accessKeyId + '/' + this.credentialString()
- query['X-Amz-SignedHeaders'] = this.signedHeaders()
-
- } else {
-
- if (!request.doNotModifyHeaders && !this.isCodeCommitGit) {
- if (request.body && !headers['Content-Type'] && !headers['content-type'])
- headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=utf-8'
-
- if (request.body && !headers['Content-Length'] && !headers['content-length'])
- headers['Content-Length'] = Buffer.byteLength(request.body)
-
- if (this.credentials.sessionToken && !headers['X-Amz-Security-Token'] && !headers['x-amz-security-token'])
- headers['X-Amz-Security-Token'] = this.credentials.sessionToken
-
- if (this.service === 's3' && !headers['X-Amz-Content-Sha256'] && !headers['x-amz-content-sha256'])
- headers['X-Amz-Content-Sha256'] = hash(this.request.body || '', 'hex')
-
- if (headers['X-Amz-Date'] || headers['x-amz-date'])
- this.datetime = headers['X-Amz-Date'] || headers['x-amz-date']
- else
- headers['X-Amz-Date'] = this.getDateTime()
- }
-
- delete headers.Authorization
- delete headers.authorization
- }
-}
-
-RequestSigner.prototype.sign = function() {
- if (!this.parsedPath) this.prepareRequest()
-
- if (this.request.signQuery) {
- this.parsedPath.query['X-Amz-Signature'] = this.signature()
- } else {
- this.request.headers.Authorization = this.authHeader()
- }
-
- this.request.path = this.formatPath()
-
- return this.request
-}
-
-RequestSigner.prototype.getDateTime = function() {
- if (!this.datetime) {
- var headers = this.request.headers,
- date = new Date(headers.Date || headers.date || new Date)
-
- this.datetime = date.toISOString().replace(/[:\-]|\.\d{3}/g, '')
-
- // Remove the trailing 'Z' on the timestamp string for CodeCommit git access
- if (this.isCodeCommitGit) this.datetime = this.datetime.slice(0, -1)
- }
- return this.datetime
-}
-
-RequestSigner.prototype.getDate = function() {
- return this.getDateTime().substr(0, 8)
-}
-
-RequestSigner.prototype.authHeader = function() {
- return [
- 'AWS4-HMAC-SHA256 Credential=' + this.credentials.accessKeyId + '/' + this.credentialString(),
- 'SignedHeaders=' + this.signedHeaders(),
- 'Signature=' + this.signature(),
- ].join(', ')
-}
-
-RequestSigner.prototype.signature = function() {
- var date = this.getDate(),
- cacheKey = [this.credentials.secretAccessKey, date, this.region, this.service].join(),
- kDate, kRegion, kService, kCredentials = credentialsCache.get(cacheKey)
- if (!kCredentials) {
- kDate = hmac('AWS4' + this.credentials.secretAccessKey, date)
- kRegion = hmac(kDate, this.region)
- kService = hmac(kRegion, this.service)
- kCredentials = hmac(kService, 'aws4_request')
- credentialsCache.set(cacheKey, kCredentials)
- }
- return hmac(kCredentials, this.stringToSign(), 'hex')
-}
-
-RequestSigner.prototype.stringToSign = function() {
- return [
- 'AWS4-HMAC-SHA256',
- this.getDateTime(),
- this.credentialString(),
- hash(this.canonicalString(), 'hex'),
- ].join('\n')
-}
-
-RequestSigner.prototype.canonicalString = function() {
- if (!this.parsedPath) this.prepareRequest()
-
- var pathStr = this.parsedPath.path,
- query = this.parsedPath.query,
- headers = this.request.headers,
- queryStr = '',
- normalizePath = this.service !== 's3',
- decodePath = this.service === 's3' || this.request.doNotEncodePath,
- decodeSlashesInPath = this.service === 's3',
- firstValOnly = this.service === 's3',
- bodyHash
-
- if (this.service === 's3' && this.request.signQuery) {
- bodyHash = 'UNSIGNED-PAYLOAD'
- } else if (this.isCodeCommitGit) {
- bodyHash = ''
- } else {
- bodyHash = headers['X-Amz-Content-Sha256'] || headers['x-amz-content-sha256'] ||
- hash(this.request.body || '', 'hex')
- }
-
- if (query) {
- var reducedQuery = Object.keys(query).reduce(function(obj, key) {
- if (!key) return obj
- obj[encodeRfc3986Full(key)] = !Array.isArray(query[key]) ? query[key] :
- (firstValOnly ? query[key][0] : query[key])
- return obj
- }, {})
- var encodedQueryPieces = []
- Object.keys(reducedQuery).sort().forEach(function(key) {
- if (!Array.isArray(reducedQuery[key])) {
- encodedQueryPieces.push(key + '=' + encodeRfc3986Full(reducedQuery[key]))
- } else {
- reducedQuery[key].map(encodeRfc3986Full).sort()
- .forEach(function(val) { encodedQueryPieces.push(key + '=' + val) })
- }
- })
- queryStr = encodedQueryPieces.join('&')
- }
- if (pathStr !== '/') {
- if (normalizePath) pathStr = pathStr.replace(/\/{2,}/g, '/')
- pathStr = pathStr.split('/').reduce(function(path, piece) {
- if (normalizePath && piece === '..') {
- path.pop()
- } else if (!normalizePath || piece !== '.') {
- if (decodePath) piece = decodeURIComponent(piece).replace(/\+/g, ' ')
- path.push(encodeRfc3986Full(piece))
- }
- return path
- }, []).join('/')
- if (pathStr[0] !== '/') pathStr = '/' + pathStr
- if (decodeSlashesInPath) pathStr = pathStr.replace(/%2F/g, '/')
- }
-
- return [
- this.request.method || 'GET',
- pathStr,
- queryStr,
- this.canonicalHeaders() + '\n',
- this.signedHeaders(),
- bodyHash,
- ].join('\n')
-}
-
-RequestSigner.prototype.canonicalHeaders = function() {
- var headers = this.request.headers
- function trimAll(header) {
- return header.toString().trim().replace(/\s+/g, ' ')
- }
- return Object.keys(headers)
- .sort(function(a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1 })
- .map(function(key) { return key.toLowerCase() + ':' + trimAll(headers[key]) })
- .join('\n')
-}
-
-RequestSigner.prototype.signedHeaders = function() {
- return Object.keys(this.request.headers)
- .map(function(key) { return key.toLowerCase() })
- .sort()
- .join(';')
-}
-
-RequestSigner.prototype.credentialString = function() {
- return [
- this.getDate(),
- this.region,
- this.service,
- 'aws4_request',
- ].join('/')
-}
-
-RequestSigner.prototype.defaultCredentials = function() {
- var env = process.env
- return {
- accessKeyId: env.AWS_ACCESS_KEY_ID || env.AWS_ACCESS_KEY,
- secretAccessKey: env.AWS_SECRET_ACCESS_KEY || env.AWS_SECRET_KEY,
- sessionToken: env.AWS_SESSION_TOKEN,
- }
-}
-
-RequestSigner.prototype.parsePath = function() {
- var path = this.request.path || '/'
-
- // S3 doesn't always encode characters > 127 correctly and
- // all services don't encode characters > 255 correctly
- // So if there are non-reserved chars (and it's not already all % encoded), just encode them all
- if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path)) {
- path = encodeURI(decodeURI(path))
- }
-
- var queryIx = path.indexOf('?'),
- query = null
-
- if (queryIx >= 0) {
- query = querystring.parse(path.slice(queryIx + 1))
- path = path.slice(0, queryIx)
- }
-
- this.parsedPath = {
- path: path,
- query: query,
- }
-}
-
-RequestSigner.prototype.formatPath = function() {
- var path = this.parsedPath.path,
- query = this.parsedPath.query
-
- if (!query) return path
-
- // Services don't support empty query string keys
- if (query[''] != null) delete query['']
-
- return path + '?' + encodeRfc3986(querystring.stringify(query))
-}
-
-aws4.RequestSigner = RequestSigner
-
-aws4.sign = function(request, credentials) {
- return new RequestSigner(request, credentials).sign()
-}
diff --git a/node_modules/aws4/lru.js b/node_modules/aws4/lru.js
deleted file mode 100644
index 333f66a..0000000
--- a/node_modules/aws4/lru.js
+++ /dev/null
@@ -1,96 +0,0 @@
-module.exports = function(size) {
- return new LruCache(size)
-}
-
-function LruCache(size) {
- this.capacity = size | 0
- this.map = Object.create(null)
- this.list = new DoublyLinkedList()
-}
-
-LruCache.prototype.get = function(key) {
- var node = this.map[key]
- if (node == null) return undefined
- this.used(node)
- return node.val
-}
-
-LruCache.prototype.set = function(key, val) {
- var node = this.map[key]
- if (node != null) {
- node.val = val
- } else {
- if (!this.capacity) this.prune()
- if (!this.capacity) return false
- node = new DoublyLinkedNode(key, val)
- this.map[key] = node
- this.capacity--
- }
- this.used(node)
- return true
-}
-
-LruCache.prototype.used = function(node) {
- this.list.moveToFront(node)
-}
-
-LruCache.prototype.prune = function() {
- var node = this.list.pop()
- if (node != null) {
- delete this.map[node.key]
- this.capacity++
- }
-}
-
-
-function DoublyLinkedList() {
- this.firstNode = null
- this.lastNode = null
-}
-
-DoublyLinkedList.prototype.moveToFront = function(node) {
- if (this.firstNode == node) return
-
- this.remove(node)
-
- if (this.firstNode == null) {
- this.firstNode = node
- this.lastNode = node
- node.prev = null
- node.next = null
- } else {
- node.prev = null
- node.next = this.firstNode
- node.next.prev = node
- this.firstNode = node
- }
-}
-
-DoublyLinkedList.prototype.pop = function() {
- var lastNode = this.lastNode
- if (lastNode != null) {
- this.remove(lastNode)
- }
- return lastNode
-}
-
-DoublyLinkedList.prototype.remove = function(node) {
- if (this.firstNode == node) {
- this.firstNode = node.next
- } else if (node.prev != null) {
- node.prev.next = node.next
- }
- if (this.lastNode == node) {
- this.lastNode = node.prev
- } else if (node.next != null) {
- node.next.prev = node.prev
- }
-}
-
-
-function DoublyLinkedNode(key, val) {
- this.key = key
- this.val = val
- this.prev = null
- this.next = null
-}
diff --git a/node_modules/aws4/package.json b/node_modules/aws4/package.json
deleted file mode 100644
index 79c9996..0000000
--- a/node_modules/aws4/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_from": "aws4@^1.8.0",
- "_id": "aws4@1.10.0",
- "_inBundle": false,
- "_integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==",
- "_location": "/aws4",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "aws4@^1.8.0",
- "name": "aws4",
- "escapedName": "aws4",
- "rawSpec": "^1.8.0",
- "saveSpec": null,
- "fetchSpec": "^1.8.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz",
- "_shasum": "a17b3a8ea811060e74d47d306122400ad4497ae2",
- "_spec": "aws4@^1.8.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/request",
- "author": {
- "name": "Michael Hart",
- "email": "michael.hart.au@gmail.com",
- "url": "https://github.com/mhart"
- },
- "bugs": {
- "url": "https://github.com/mhart/aws4/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Signs and prepares requests using AWS Signature Version 4",
- "devDependencies": {
- "mocha": "^7.1.2",
- "should": "^13.2.3"
- },
- "homepage": "https://github.com/mhart/aws4#readme",
- "license": "MIT",
- "main": "aws4.js",
- "name": "aws4",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mhart/aws4.git"
- },
- "scripts": {
- "integration": "node ./test/slow.js",
- "test": "mocha ./test/fast.js -R list"
- },
- "version": "1.10.0"
-}
diff --git a/node_modules/balanced-match/.npmignore b/node_modules/balanced-match/.npmignore
deleted file mode 100644
index ae5d8c3..0000000
--- a/node_modules/balanced-match/.npmignore
+++ /dev/null
@@ -1,5 +0,0 @@
-test
-.gitignore
-.travis.yml
-Makefile
-example.js
diff --git a/node_modules/balanced-match/LICENSE.md b/node_modules/balanced-match/LICENSE.md
deleted file mode 100644
index 2cdc8e4..0000000
--- a/node_modules/balanced-match/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-(MIT)
-
-Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/balanced-match/README.md b/node_modules/balanced-match/README.md
deleted file mode 100644
index 08e918c..0000000
--- a/node_modules/balanced-match/README.md
+++ /dev/null
@@ -1,91 +0,0 @@
-# balanced-match
-
-Match balanced string pairs, like `{` and `}` or `<b>` and `</b>`. Supports regular expressions as well!
-
-[![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match)
-[![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match)
-
-[![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match)
-
-## Example
-
-Get the first matching pair of braces:
-
-```js
-var balanced = require('balanced-match');
-
-console.log(balanced('{', '}', 'pre{in{nested}}post'));
-console.log(balanced('{', '}', 'pre{first}between{second}post'));
-console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post'));
-```
-
-The matches are:
-
-```bash
-$ node example.js
-{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }
-{ start: 3,
- end: 9,
- pre: 'pre',
- body: 'first',
- post: 'between{second}post' }
-{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' }
-```
-
-## API
-
-### var m = balanced(a, b, str)
-
-For the first non-nested matching pair of `a` and `b` in `str`, return an
-object with those keys:
-
-* **start** the index of the first match of `a`
-* **end** the index of the matching `b`
-* **pre** the preamble, `a` and `b` not included
-* **body** the match, `a` and `b` not included
-* **post** the postscript, `a` and `b` not included
-
-If there's no match, `undefined` will be returned.
-
-If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`.
-
-### var r = balanced.range(a, b, str)
-
-For the first non-nested matching pair of `a` and `b` in `str`, return an
-array with indexes: `[ <a index>, <b index> ]`.
-
-If there's no match, `undefined` will be returned.
-
-If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`.
-
-## Installation
-
-With [npm](https://npmjs.org) do:
-
-```bash
-npm install balanced-match
-```
-
-## License
-
-(MIT)
-
-Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/balanced-match/index.js b/node_modules/balanced-match/index.js
deleted file mode 100644
index 1685a76..0000000
--- a/node_modules/balanced-match/index.js
+++ /dev/null
@@ -1,59 +0,0 @@
-'use strict';
-module.exports = balanced;
-function balanced(a, b, str) {
- if (a instanceof RegExp) a = maybeMatch(a, str);
- if (b instanceof RegExp) b = maybeMatch(b, str);
-
- var r = range(a, b, str);
-
- return r && {
- start: r[0],
- end: r[1],
- pre: str.slice(0, r[0]),
- body: str.slice(r[0] + a.length, r[1]),
- post: str.slice(r[1] + b.length)
- };
-}
-
-function maybeMatch(reg, str) {
- var m = str.match(reg);
- return m ? m[0] : null;
-}
-
-balanced.range = range;
-function range(a, b, str) {
- var begs, beg, left, right, result;
- var ai = str.indexOf(a);
- var bi = str.indexOf(b, ai + 1);
- var i = ai;
-
- if (ai >= 0 && bi > 0) {
- begs = [];
- left = str.length;
-
- while (i >= 0 && !result) {
- if (i == ai) {
- begs.push(i);
- ai = str.indexOf(a, i + 1);
- } else if (begs.length == 1) {
- result = [ begs.pop(), bi ];
- } else {
- beg = begs.pop();
- if (beg < left) {
- left = beg;
- right = bi;
- }
-
- bi = str.indexOf(b, i + 1);
- }
-
- i = ai < bi && ai >= 0 ? ai : bi;
- }
-
- if (begs.length) {
- result = [ left, right ];
- }
- }
-
- return result;
-}
diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json
deleted file mode 100644
index a15e817..0000000
--- a/node_modules/balanced-match/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "balanced-match@^1.0.0",
- "_id": "balanced-match@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
- "_location": "/balanced-match",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "balanced-match@^1.0.0",
- "name": "balanced-match",
- "escapedName": "balanced-match",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/brace-expansion"
- ],
- "_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
- "_shasum": "89b4d199ab2bee49de164ea02b89ce462d71b767",
- "_spec": "balanced-match@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/brace-expansion",
- "author": {
- "name": "Julian Gruber",
- "email": "mail@juliangruber.com",
- "url": "http://juliangruber.com"
- },
- "bugs": {
- "url": "https://github.com/juliangruber/balanced-match/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Match balanced character pairs, like \"{\" and \"}\"",
- "devDependencies": {
- "matcha": "^0.7.0",
- "tape": "^4.6.0"
- },
- "homepage": "https://github.com/juliangruber/balanced-match",
- "keywords": [
- "match",
- "regexp",
- "test",
- "balanced",
- "parse"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "balanced-match",
- "repository": {
- "type": "git",
- "url": "git://github.com/juliangruber/balanced-match.git"
- },
- "scripts": {
- "bench": "make bench",
- "test": "make test"
- },
- "testling": {
- "files": "test/*.js",
- "browsers": [
- "ie/8..latest",
- "firefox/20..latest",
- "firefox/nightly",
- "chrome/25..latest",
- "chrome/canary",
- "opera/12..latest",
- "opera/next",
- "safari/5.1..latest",
- "ipad/6.0..latest",
- "iphone/6.0..latest",
- "android-browser/4.2..latest"
- ]
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/bcrypt-pbkdf/CONTRIBUTING.md b/node_modules/bcrypt-pbkdf/CONTRIBUTING.md
deleted file mode 100644
index 401d34e..0000000
--- a/node_modules/bcrypt-pbkdf/CONTRIBUTING.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# Contributing
-
-This repository uses [cr.joyent.us](https://cr.joyent.us) (Gerrit) for new
-changes. Anyone can submit changes. To get started, see the [cr.joyent.us user
-guide](https://github.com/joyent/joyent-gerrit/blob/master/docs/user/README.md).
-This repo does not use GitHub pull requests.
-
-See the [Joyent Engineering
-Guidelines](https://github.com/joyent/eng/blob/master/docs/index.md) for general
-best practices expected in this repository.
-
-If you're changing something non-trivial or user-facing, you may want to submit
-an issue first.
diff --git a/node_modules/bcrypt-pbkdf/LICENSE b/node_modules/bcrypt-pbkdf/LICENSE
deleted file mode 100644
index fc58d2a..0000000
--- a/node_modules/bcrypt-pbkdf/LICENSE
+++ /dev/null
@@ -1,66 +0,0 @@
-The Blowfish portions are under the following license:
-
-Blowfish block cipher for OpenBSD
-Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
-All rights reserved.
-
-Implementation advice by David Mazieres <dm@lcs.mit.edu>.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-3. The name of the author may not be used to endorse or promote products
- derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-
-The bcrypt_pbkdf portions are under the following license:
-
-Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-
-
-Performance improvements (Javascript-specific):
-
-Copyright 2016, Joyent Inc
-Author: Alex Wilson <alex.wilson@joyent.com>
-
-Permission to use, copy, modify, and distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/bcrypt-pbkdf/README.md b/node_modules/bcrypt-pbkdf/README.md
deleted file mode 100644
index 7551f33..0000000
--- a/node_modules/bcrypt-pbkdf/README.md
+++ /dev/null
@@ -1,45 +0,0 @@
-Port of the OpenBSD `bcrypt_pbkdf` function to pure Javascript. `npm`-ified
-version of [Devi Mandiri's port](https://github.com/devi/tmp/blob/master/js/bcrypt_pbkdf.js),
-with some minor performance improvements. The code is copied verbatim (and
-un-styled) from Devi's work.
-
-This product includes software developed by Niels Provos.
-
-## API
-
-### `bcrypt_pbkdf.pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds)`
-
-Derive a cryptographic key of arbitrary length from a given password and salt,
-using the OpenBSD `bcrypt_pbkdf` function. This is a combination of Blowfish and
-SHA-512.
-
-See [this article](http://www.tedunangst.com/flak/post/bcrypt-pbkdf) for
-further information.
-
-Parameters:
-
- * `pass`, a Uint8Array of length `passlen`
- * `passlen`, an integer Number
- * `salt`, a Uint8Array of length `saltlen`
- * `saltlen`, an integer Number
- * `key`, a Uint8Array of length `keylen`, will be filled with output
- * `keylen`, an integer Number
- * `rounds`, an integer Number, number of rounds of the PBKDF to run
-
-### `bcrypt_pbkdf.hash(sha2pass, sha2salt, out)`
-
-Calculate a Blowfish hash, given SHA2-512 output of a password and salt. Used as
-part of the inner round function in the PBKDF.
-
-Parameters:
-
- * `sha2pass`, a Uint8Array of length 64
- * `sha2salt`, a Uint8Array of length 64
- * `out`, a Uint8Array of length 32, will be filled with output
-
-## License
-
-This source form is a 1:1 port from the OpenBSD `blowfish.c` and `bcrypt_pbkdf.c`.
-As a result, it retains the original copyright and license. The two files are
-under slightly different (but compatible) licenses, and are here combined in
-one file. For each of the full license texts see `LICENSE`.
diff --git a/node_modules/bcrypt-pbkdf/index.js b/node_modules/bcrypt-pbkdf/index.js
deleted file mode 100644
index b1b5ad4..0000000
--- a/node_modules/bcrypt-pbkdf/index.js
+++ /dev/null
@@ -1,556 +0,0 @@
-'use strict';
-
-var crypto_hash_sha512 = require('tweetnacl').lowlevel.crypto_hash;
-
-/*
- * This file is a 1:1 port from the OpenBSD blowfish.c and bcrypt_pbkdf.c. As a
- * result, it retains the original copyright and license. The two files are
- * under slightly different (but compatible) licenses, and are here combined in
- * one file.
- *
- * Credit for the actual porting work goes to:
- * Devi Mandiri <me@devi.web.id>
- */
-
-/*
- * The Blowfish portions are under the following license:
- *
- * Blowfish block cipher for OpenBSD
- * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
- * All rights reserved.
- *
- * Implementation advice by David Mazieres <dm@lcs.mit.edu>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * The bcrypt_pbkdf portions are under the following license:
- *
- * Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-/*
- * Performance improvements (Javascript-specific):
- *
- * Copyright 2016, Joyent Inc
- * Author: Alex Wilson <alex.wilson@joyent.com>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-// Ported from OpenBSD bcrypt_pbkdf.c v1.9
-
-var BLF_J = 0;
-
-var Blowfish = function() {
- this.S = [
- new Uint32Array([
- 0xd1310ba6, 0x98dfb5ac, 0x2ffd72db, 0xd01adfb7,
- 0xb8e1afed, 0x6a267e96, 0xba7c9045, 0xf12c7f99,
- 0x24a19947, 0xb3916cf7, 0x0801f2e2, 0x858efc16,
- 0x636920d8, 0x71574e69, 0xa458fea3, 0xf4933d7e,
- 0x0d95748f, 0x728eb658, 0x718bcd58, 0x82154aee,
- 0x7b54a41d, 0xc25a59b5, 0x9c30d539, 0x2af26013,
- 0xc5d1b023, 0x286085f0, 0xca417918, 0xb8db38ef,
- 0x8e79dcb0, 0x603a180e, 0x6c9e0e8b, 0xb01e8a3e,
- 0xd71577c1, 0xbd314b27, 0x78af2fda, 0x55605c60,
- 0xe65525f3, 0xaa55ab94, 0x57489862, 0x63e81440,
- 0x55ca396a, 0x2aab10b6, 0xb4cc5c34, 0x1141e8ce,
- 0xa15486af, 0x7c72e993, 0xb3ee1411, 0x636fbc2a,
- 0x2ba9c55d, 0x741831f6, 0xce5c3e16, 0x9b87931e,
- 0xafd6ba33, 0x6c24cf5c, 0x7a325381, 0x28958677,
- 0x3b8f4898, 0x6b4bb9af, 0xc4bfe81b, 0x66282193,
- 0x61d809cc, 0xfb21a991, 0x487cac60, 0x5dec8032,
- 0xef845d5d, 0xe98575b1, 0xdc262302, 0xeb651b88,
- 0x23893e81, 0xd396acc5, 0x0f6d6ff3, 0x83f44239,
- 0x2e0b4482, 0xa4842004, 0x69c8f04a, 0x9e1f9b5e,
- 0x21c66842, 0xf6e96c9a, 0x670c9c61, 0xabd388f0,
- 0x6a51a0d2, 0xd8542f68, 0x960fa728, 0xab5133a3,
- 0x6eef0b6c, 0x137a3be4, 0xba3bf050, 0x7efb2a98,
- 0xa1f1651d, 0x39af0176, 0x66ca593e, 0x82430e88,
- 0x8cee8619, 0x456f9fb4, 0x7d84a5c3, 0x3b8b5ebe,
- 0xe06f75d8, 0x85c12073, 0x401a449f, 0x56c16aa6,
- 0x4ed3aa62, 0x363f7706, 0x1bfedf72, 0x429b023d,
- 0x37d0d724, 0xd00a1248, 0xdb0fead3, 0x49f1c09b,
- 0x075372c9, 0x80991b7b, 0x25d479d8, 0xf6e8def7,
- 0xe3fe501a, 0xb6794c3b, 0x976ce0bd, 0x04c006ba,
- 0xc1a94fb6, 0x409f60c4, 0x5e5c9ec2, 0x196a2463,
- 0x68fb6faf, 0x3e6c53b5, 0x1339b2eb, 0x3b52ec6f,
- 0x6dfc511f, 0x9b30952c, 0xcc814544, 0xaf5ebd09,
- 0xbee3d004, 0xde334afd, 0x660f2807, 0x192e4bb3,
- 0xc0cba857, 0x45c8740f, 0xd20b5f39, 0xb9d3fbdb,
- 0x5579c0bd, 0x1a60320a, 0xd6a100c6, 0x402c7279,
- 0x679f25fe, 0xfb1fa3cc, 0x8ea5e9f8, 0xdb3222f8,
- 0x3c7516df, 0xfd616b15, 0x2f501ec8, 0xad0552ab,
- 0x323db5fa, 0xfd238760, 0x53317b48, 0x3e00df82,
- 0x9e5c57bb, 0xca6f8ca0, 0x1a87562e, 0xdf1769db,
- 0xd542a8f6, 0x287effc3, 0xac6732c6, 0x8c4f5573,
- 0x695b27b0, 0xbbca58c8, 0xe1ffa35d, 0xb8f011a0,
- 0x10fa3d98, 0xfd2183b8, 0x4afcb56c, 0x2dd1d35b,
- 0x9a53e479, 0xb6f84565, 0xd28e49bc, 0x4bfb9790,
- 0xe1ddf2da, 0xa4cb7e33, 0x62fb1341, 0xcee4c6e8,
- 0xef20cada, 0x36774c01, 0xd07e9efe, 0x2bf11fb4,
- 0x95dbda4d, 0xae909198, 0xeaad8e71, 0x6b93d5a0,
- 0xd08ed1d0, 0xafc725e0, 0x8e3c5b2f, 0x8e7594b7,
- 0x8ff6e2fb, 0xf2122b64, 0x8888b812, 0x900df01c,
- 0x4fad5ea0, 0x688fc31c, 0xd1cff191, 0xb3a8c1ad,
- 0x2f2f2218, 0xbe0e1777, 0xea752dfe, 0x8b021fa1,
- 0xe5a0cc0f, 0xb56f74e8, 0x18acf3d6, 0xce89e299,
- 0xb4a84fe0, 0xfd13e0b7, 0x7cc43b81, 0xd2ada8d9,
- 0x165fa266, 0x80957705, 0x93cc7314, 0x211a1477,
- 0xe6ad2065, 0x77b5fa86, 0xc75442f5, 0xfb9d35cf,
- 0xebcdaf0c, 0x7b3e89a0, 0xd6411bd3, 0xae1e7e49,
- 0x00250e2d, 0x2071b35e, 0x226800bb, 0x57b8e0af,
- 0x2464369b, 0xf009b91e, 0x5563911d, 0x59dfa6aa,
- 0x78c14389, 0xd95a537f, 0x207d5ba2, 0x02e5b9c5,
- 0x83260376, 0x6295cfa9, 0x11c81968, 0x4e734a41,
- 0xb3472dca, 0x7b14a94a, 0x1b510052, 0x9a532915,
- 0xd60f573f, 0xbc9bc6e4, 0x2b60a476, 0x81e67400,
- 0x08ba6fb5, 0x571be91f, 0xf296ec6b, 0x2a0dd915,
- 0xb6636521, 0xe7b9f9b6, 0xff34052e, 0xc5855664,
- 0x53b02d5d, 0xa99f8fa1, 0x08ba4799, 0x6e85076a]),
- new Uint32Array([
- 0x4b7a70e9, 0xb5b32944, 0xdb75092e, 0xc4192623,
- 0xad6ea6b0, 0x49a7df7d, 0x9cee60b8, 0x8fedb266,
- 0xecaa8c71, 0x699a17ff, 0x5664526c, 0xc2b19ee1,
- 0x193602a5, 0x75094c29, 0xa0591340, 0xe4183a3e,
- 0x3f54989a, 0x5b429d65, 0x6b8fe4d6, 0x99f73fd6,
- 0xa1d29c07, 0xefe830f5, 0x4d2d38e6, 0xf0255dc1,
- 0x4cdd2086, 0x8470eb26, 0x6382e9c6, 0x021ecc5e,
- 0x09686b3f, 0x3ebaefc9, 0x3c971814, 0x6b6a70a1,
- 0x687f3584, 0x52a0e286, 0xb79c5305, 0xaa500737,
- 0x3e07841c, 0x7fdeae5c, 0x8e7d44ec, 0x5716f2b8,
- 0xb03ada37, 0xf0500c0d, 0xf01c1f04, 0x0200b3ff,
- 0xae0cf51a, 0x3cb574b2, 0x25837a58, 0xdc0921bd,
- 0xd19113f9, 0x7ca92ff6, 0x94324773, 0x22f54701,
- 0x3ae5e581, 0x37c2dadc, 0xc8b57634, 0x9af3dda7,
- 0xa9446146, 0x0fd0030e, 0xecc8c73e, 0xa4751e41,
- 0xe238cd99, 0x3bea0e2f, 0x3280bba1, 0x183eb331,
- 0x4e548b38, 0x4f6db908, 0x6f420d03, 0xf60a04bf,
- 0x2cb81290, 0x24977c79, 0x5679b072, 0xbcaf89af,
- 0xde9a771f, 0xd9930810, 0xb38bae12, 0xdccf3f2e,
- 0x5512721f, 0x2e6b7124, 0x501adde6, 0x9f84cd87,
- 0x7a584718, 0x7408da17, 0xbc9f9abc, 0xe94b7d8c,
- 0xec7aec3a, 0xdb851dfa, 0x63094366, 0xc464c3d2,
- 0xef1c1847, 0x3215d908, 0xdd433b37, 0x24c2ba16,
- 0x12a14d43, 0x2a65c451, 0x50940002, 0x133ae4dd,
- 0x71dff89e, 0x10314e55, 0x81ac77d6, 0x5f11199b,
- 0x043556f1, 0xd7a3c76b, 0x3c11183b, 0x5924a509,
- 0xf28fe6ed, 0x97f1fbfa, 0x9ebabf2c, 0x1e153c6e,
- 0x86e34570, 0xeae96fb1, 0x860e5e0a, 0x5a3e2ab3,
- 0x771fe71c, 0x4e3d06fa, 0x2965dcb9, 0x99e71d0f,
- 0x803e89d6, 0x5266c825, 0x2e4cc978, 0x9c10b36a,
- 0xc6150eba, 0x94e2ea78, 0xa5fc3c53, 0x1e0a2df4,
- 0xf2f74ea7, 0x361d2b3d, 0x1939260f, 0x19c27960,
- 0x5223a708, 0xf71312b6, 0xebadfe6e, 0xeac31f66,
- 0xe3bc4595, 0xa67bc883, 0xb17f37d1, 0x018cff28,
- 0xc332ddef, 0xbe6c5aa5, 0x65582185, 0x68ab9802,
- 0xeecea50f, 0xdb2f953b, 0x2aef7dad, 0x5b6e2f84,
- 0x1521b628, 0x29076170, 0xecdd4775, 0x619f1510,
- 0x13cca830, 0xeb61bd96, 0x0334fe1e, 0xaa0363cf,
- 0xb5735c90, 0x4c70a239, 0xd59e9e0b, 0xcbaade14,
- 0xeecc86bc, 0x60622ca7, 0x9cab5cab, 0xb2f3846e,
- 0x648b1eaf, 0x19bdf0ca, 0xa02369b9, 0x655abb50,
- 0x40685a32, 0x3c2ab4b3, 0x319ee9d5, 0xc021b8f7,
- 0x9b540b19, 0x875fa099, 0x95f7997e, 0x623d7da8,
- 0xf837889a, 0x97e32d77, 0x11ed935f, 0x16681281,
- 0x0e358829, 0xc7e61fd6, 0x96dedfa1, 0x7858ba99,
- 0x57f584a5, 0x1b227263, 0x9b83c3ff, 0x1ac24696,
- 0xcdb30aeb, 0x532e3054, 0x8fd948e4, 0x6dbc3128,
- 0x58ebf2ef, 0x34c6ffea, 0xfe28ed61, 0xee7c3c73,
- 0x5d4a14d9, 0xe864b7e3, 0x42105d14, 0x203e13e0,
- 0x45eee2b6, 0xa3aaabea, 0xdb6c4f15, 0xfacb4fd0,
- 0xc742f442, 0xef6abbb5, 0x654f3b1d, 0x41cd2105,
- 0xd81e799e, 0x86854dc7, 0xe44b476a, 0x3d816250,
- 0xcf62a1f2, 0x5b8d2646, 0xfc8883a0, 0xc1c7b6a3,
- 0x7f1524c3, 0x69cb7492, 0x47848a0b, 0x5692b285,
- 0x095bbf00, 0xad19489d, 0x1462b174, 0x23820e00,
- 0x58428d2a, 0x0c55f5ea, 0x1dadf43e, 0x233f7061,
- 0x3372f092, 0x8d937e41, 0xd65fecf1, 0x6c223bdb,
- 0x7cde3759, 0xcbee7460, 0x4085f2a7, 0xce77326e,
- 0xa6078084, 0x19f8509e, 0xe8efd855, 0x61d99735,
- 0xa969a7aa, 0xc50c06c2, 0x5a04abfc, 0x800bcadc,
- 0x9e447a2e, 0xc3453484, 0xfdd56705, 0x0e1e9ec9,
- 0xdb73dbd3, 0x105588cd, 0x675fda79, 0xe3674340,
- 0xc5c43465, 0x713e38d8, 0x3d28f89e, 0xf16dff20,
- 0x153e21e7, 0x8fb03d4a, 0xe6e39f2b, 0xdb83adf7]),
- new Uint32Array([
- 0xe93d5a68, 0x948140f7, 0xf64c261c, 0x94692934,
- 0x411520f7, 0x7602d4f7, 0xbcf46b2e, 0xd4a20068,
- 0xd4082471, 0x3320f46a, 0x43b7d4b7, 0x500061af,
- 0x1e39f62e, 0x97244546, 0x14214f74, 0xbf8b8840,
- 0x4d95fc1d, 0x96b591af, 0x70f4ddd3, 0x66a02f45,
- 0xbfbc09ec, 0x03bd9785, 0x7fac6dd0, 0x31cb8504,
- 0x96eb27b3, 0x55fd3941, 0xda2547e6, 0xabca0a9a,
- 0x28507825, 0x530429f4, 0x0a2c86da, 0xe9b66dfb,
- 0x68dc1462, 0xd7486900, 0x680ec0a4, 0x27a18dee,
- 0x4f3ffea2, 0xe887ad8c, 0xb58ce006, 0x7af4d6b6,
- 0xaace1e7c, 0xd3375fec, 0xce78a399, 0x406b2a42,
- 0x20fe9e35, 0xd9f385b9, 0xee39d7ab, 0x3b124e8b,
- 0x1dc9faf7, 0x4b6d1856, 0x26a36631, 0xeae397b2,
- 0x3a6efa74, 0xdd5b4332, 0x6841e7f7, 0xca7820fb,
- 0xfb0af54e, 0xd8feb397, 0x454056ac, 0xba489527,
- 0x55533a3a, 0x20838d87, 0xfe6ba9b7, 0xd096954b,
- 0x55a867bc, 0xa1159a58, 0xcca92963, 0x99e1db33,
- 0xa62a4a56, 0x3f3125f9, 0x5ef47e1c, 0x9029317c,
- 0xfdf8e802, 0x04272f70, 0x80bb155c, 0x05282ce3,
- 0x95c11548, 0xe4c66d22, 0x48c1133f, 0xc70f86dc,
- 0x07f9c9ee, 0x41041f0f, 0x404779a4, 0x5d886e17,
- 0x325f51eb, 0xd59bc0d1, 0xf2bcc18f, 0x41113564,
- 0x257b7834, 0x602a9c60, 0xdff8e8a3, 0x1f636c1b,
- 0x0e12b4c2, 0x02e1329e, 0xaf664fd1, 0xcad18115,
- 0x6b2395e0, 0x333e92e1, 0x3b240b62, 0xeebeb922,
- 0x85b2a20e, 0xe6ba0d99, 0xde720c8c, 0x2da2f728,
- 0xd0127845, 0x95b794fd, 0x647d0862, 0xe7ccf5f0,
- 0x5449a36f, 0x877d48fa, 0xc39dfd27, 0xf33e8d1e,
- 0x0a476341, 0x992eff74, 0x3a6f6eab, 0xf4f8fd37,
- 0xa812dc60, 0xa1ebddf8, 0x991be14c, 0xdb6e6b0d,
- 0xc67b5510, 0x6d672c37, 0x2765d43b, 0xdcd0e804,
- 0xf1290dc7, 0xcc00ffa3, 0xb5390f92, 0x690fed0b,
- 0x667b9ffb, 0xcedb7d9c, 0xa091cf0b, 0xd9155ea3,
- 0xbb132f88, 0x515bad24, 0x7b9479bf, 0x763bd6eb,
- 0x37392eb3, 0xcc115979, 0x8026e297, 0xf42e312d,
- 0x6842ada7, 0xc66a2b3b, 0x12754ccc, 0x782ef11c,
- 0x6a124237, 0xb79251e7, 0x06a1bbe6, 0x4bfb6350,
- 0x1a6b1018, 0x11caedfa, 0x3d25bdd8, 0xe2e1c3c9,
- 0x44421659, 0x0a121386, 0xd90cec6e, 0xd5abea2a,
- 0x64af674e, 0xda86a85f, 0xbebfe988, 0x64e4c3fe,
- 0x9dbc8057, 0xf0f7c086, 0x60787bf8, 0x6003604d,
- 0xd1fd8346, 0xf6381fb0, 0x7745ae04, 0xd736fccc,
- 0x83426b33, 0xf01eab71, 0xb0804187, 0x3c005e5f,
- 0x77a057be, 0xbde8ae24, 0x55464299, 0xbf582e61,
- 0x4e58f48f, 0xf2ddfda2, 0xf474ef38, 0x8789bdc2,
- 0x5366f9c3, 0xc8b38e74, 0xb475f255, 0x46fcd9b9,
- 0x7aeb2661, 0x8b1ddf84, 0x846a0e79, 0x915f95e2,
- 0x466e598e, 0x20b45770, 0x8cd55591, 0xc902de4c,
- 0xb90bace1, 0xbb8205d0, 0x11a86248, 0x7574a99e,
- 0xb77f19b6, 0xe0a9dc09, 0x662d09a1, 0xc4324633,
- 0xe85a1f02, 0x09f0be8c, 0x4a99a025, 0x1d6efe10,
- 0x1ab93d1d, 0x0ba5a4df, 0xa186f20f, 0x2868f169,
- 0xdcb7da83, 0x573906fe, 0xa1e2ce9b, 0x4fcd7f52,
- 0x50115e01, 0xa70683fa, 0xa002b5c4, 0x0de6d027,
- 0x9af88c27, 0x773f8641, 0xc3604c06, 0x61a806b5,
- 0xf0177a28, 0xc0f586e0, 0x006058aa, 0x30dc7d62,
- 0x11e69ed7, 0x2338ea63, 0x53c2dd94, 0xc2c21634,
- 0xbbcbee56, 0x90bcb6de, 0xebfc7da1, 0xce591d76,
- 0x6f05e409, 0x4b7c0188, 0x39720a3d, 0x7c927c24,
- 0x86e3725f, 0x724d9db9, 0x1ac15bb4, 0xd39eb8fc,
- 0xed545578, 0x08fca5b5, 0xd83d7cd3, 0x4dad0fc4,
- 0x1e50ef5e, 0xb161e6f8, 0xa28514d9, 0x6c51133c,
- 0x6fd5c7e7, 0x56e14ec4, 0x362abfce, 0xddc6c837,
- 0xd79a3234, 0x92638212, 0x670efa8e, 0x406000e0]),
- new Uint32Array([
- 0x3a39ce37, 0xd3faf5cf, 0xabc27737, 0x5ac52d1b,
- 0x5cb0679e, 0x4fa33742, 0xd3822740, 0x99bc9bbe,
- 0xd5118e9d, 0xbf0f7315, 0xd62d1c7e, 0xc700c47b,
- 0xb78c1b6b, 0x21a19045, 0xb26eb1be, 0x6a366eb4,
- 0x5748ab2f, 0xbc946e79, 0xc6a376d2, 0x6549c2c8,
- 0x530ff8ee, 0x468dde7d, 0xd5730a1d, 0x4cd04dc6,
- 0x2939bbdb, 0xa9ba4650, 0xac9526e8, 0xbe5ee304,
- 0xa1fad5f0, 0x6a2d519a, 0x63ef8ce2, 0x9a86ee22,
- 0xc089c2b8, 0x43242ef6, 0xa51e03aa, 0x9cf2d0a4,
- 0x83c061ba, 0x9be96a4d, 0x8fe51550, 0xba645bd6,
- 0x2826a2f9, 0xa73a3ae1, 0x4ba99586, 0xef5562e9,
- 0xc72fefd3, 0xf752f7da, 0x3f046f69, 0x77fa0a59,
- 0x80e4a915, 0x87b08601, 0x9b09e6ad, 0x3b3ee593,
- 0xe990fd5a, 0x9e34d797, 0x2cf0b7d9, 0x022b8b51,
- 0x96d5ac3a, 0x017da67d, 0xd1cf3ed6, 0x7c7d2d28,
- 0x1f9f25cf, 0xadf2b89b, 0x5ad6b472, 0x5a88f54c,
- 0xe029ac71, 0xe019a5e6, 0x47b0acfd, 0xed93fa9b,
- 0xe8d3c48d, 0x283b57cc, 0xf8d56629, 0x79132e28,
- 0x785f0191, 0xed756055, 0xf7960e44, 0xe3d35e8c,
- 0x15056dd4, 0x88f46dba, 0x03a16125, 0x0564f0bd,
- 0xc3eb9e15, 0x3c9057a2, 0x97271aec, 0xa93a072a,
- 0x1b3f6d9b, 0x1e6321f5, 0xf59c66fb, 0x26dcf319,
- 0x7533d928, 0xb155fdf5, 0x03563482, 0x8aba3cbb,
- 0x28517711, 0xc20ad9f8, 0xabcc5167, 0xccad925f,
- 0x4de81751, 0x3830dc8e, 0x379d5862, 0x9320f991,
- 0xea7a90c2, 0xfb3e7bce, 0x5121ce64, 0x774fbe32,
- 0xa8b6e37e, 0xc3293d46, 0x48de5369, 0x6413e680,
- 0xa2ae0810, 0xdd6db224, 0x69852dfd, 0x09072166,
- 0xb39a460a, 0x6445c0dd, 0x586cdecf, 0x1c20c8ae,
- 0x5bbef7dd, 0x1b588d40, 0xccd2017f, 0x6bb4e3bb,
- 0xdda26a7e, 0x3a59ff45, 0x3e350a44, 0xbcb4cdd5,
- 0x72eacea8, 0xfa6484bb, 0x8d6612ae, 0xbf3c6f47,
- 0xd29be463, 0x542f5d9e, 0xaec2771b, 0xf64e6370,
- 0x740e0d8d, 0xe75b1357, 0xf8721671, 0xaf537d5d,
- 0x4040cb08, 0x4eb4e2cc, 0x34d2466a, 0x0115af84,
- 0xe1b00428, 0x95983a1d, 0x06b89fb4, 0xce6ea048,
- 0x6f3f3b82, 0x3520ab82, 0x011a1d4b, 0x277227f8,
- 0x611560b1, 0xe7933fdc, 0xbb3a792b, 0x344525bd,
- 0xa08839e1, 0x51ce794b, 0x2f32c9b7, 0xa01fbac9,
- 0xe01cc87e, 0xbcc7d1f6, 0xcf0111c3, 0xa1e8aac7,
- 0x1a908749, 0xd44fbd9a, 0xd0dadecb, 0xd50ada38,
- 0x0339c32a, 0xc6913667, 0x8df9317c, 0xe0b12b4f,
- 0xf79e59b7, 0x43f5bb3a, 0xf2d519ff, 0x27d9459c,
- 0xbf97222c, 0x15e6fc2a, 0x0f91fc71, 0x9b941525,
- 0xfae59361, 0xceb69ceb, 0xc2a86459, 0x12baa8d1,
- 0xb6c1075e, 0xe3056a0c, 0x10d25065, 0xcb03a442,
- 0xe0ec6e0e, 0x1698db3b, 0x4c98a0be, 0x3278e964,
- 0x9f1f9532, 0xe0d392df, 0xd3a0342b, 0x8971f21e,
- 0x1b0a7441, 0x4ba3348c, 0xc5be7120, 0xc37632d8,
- 0xdf359f8d, 0x9b992f2e, 0xe60b6f47, 0x0fe3f11d,
- 0xe54cda54, 0x1edad891, 0xce6279cf, 0xcd3e7e6f,
- 0x1618b166, 0xfd2c1d05, 0x848fd2c5, 0xf6fb2299,
- 0xf523f357, 0xa6327623, 0x93a83531, 0x56cccd02,
- 0xacf08162, 0x5a75ebb5, 0x6e163697, 0x88d273cc,
- 0xde966292, 0x81b949d0, 0x4c50901b, 0x71c65614,
- 0xe6c6c7bd, 0x327a140a, 0x45e1d006, 0xc3f27b9a,
- 0xc9aa53fd, 0x62a80f00, 0xbb25bfe2, 0x35bdd2f6,
- 0x71126905, 0xb2040222, 0xb6cbcf7c, 0xcd769c2b,
- 0x53113ec0, 0x1640e3d3, 0x38abbd60, 0x2547adf0,
- 0xba38209c, 0xf746ce76, 0x77afa1c5, 0x20756060,
- 0x85cbfe4e, 0x8ae88dd8, 0x7aaaf9b0, 0x4cf9aa7e,
- 0x1948c25c, 0x02fb8a8c, 0x01c36ae4, 0xd6ebe1f9,
- 0x90d4f869, 0xa65cdea0, 0x3f09252d, 0xc208e69f,
- 0xb74e6132, 0xce77e25b, 0x578fdfe3, 0x3ac372e6])
- ];
- this.P = new Uint32Array([
- 0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344,
- 0xa4093822, 0x299f31d0, 0x082efa98, 0xec4e6c89,
- 0x452821e6, 0x38d01377, 0xbe5466cf, 0x34e90c6c,
- 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5, 0xb5470917,
- 0x9216d5d9, 0x8979fb1b]);
-};
-
-function F(S, x8, i) {
- return (((S[0][x8[i+3]] +
- S[1][x8[i+2]]) ^
- S[2][x8[i+1]]) +
- S[3][x8[i]]);
-};
-
-Blowfish.prototype.encipher = function(x, x8) {
- if (x8 === undefined) {
- x8 = new Uint8Array(x.buffer);
- if (x.byteOffset !== 0)
- x8 = x8.subarray(x.byteOffset);
- }
- x[0] ^= this.P[0];
- for (var i = 1; i < 16; i += 2) {
- x[1] ^= F(this.S, x8, 0) ^ this.P[i];
- x[0] ^= F(this.S, x8, 4) ^ this.P[i+1];
- }
- var t = x[0];
- x[0] = x[1] ^ this.P[17];
- x[1] = t;
-};
-
-Blowfish.prototype.decipher = function(x) {
- var x8 = new Uint8Array(x.buffer);
- if (x.byteOffset !== 0)
- x8 = x8.subarray(x.byteOffset);
- x[0] ^= this.P[17];
- for (var i = 16; i > 0; i -= 2) {
- x[1] ^= F(this.S, x8, 0) ^ this.P[i];
- x[0] ^= F(this.S, x8, 4) ^ this.P[i-1];
- }
- var t = x[0];
- x[0] = x[1] ^ this.P[0];
- x[1] = t;
-};
-
-function stream2word(data, databytes){
- var i, temp = 0;
- for (i = 0; i < 4; i++, BLF_J++) {
- if (BLF_J >= databytes) BLF_J = 0;
- temp = (temp << 8) | data[BLF_J];
- }
- return temp;
-};
-
-Blowfish.prototype.expand0state = function(key, keybytes) {
- var d = new Uint32Array(2), i, k;
- var d8 = new Uint8Array(d.buffer);
-
- for (i = 0, BLF_J = 0; i < 18; i++) {
- this.P[i] ^= stream2word(key, keybytes);
- }
- BLF_J = 0;
-
- for (i = 0; i < 18; i += 2) {
- this.encipher(d, d8);
- this.P[i] = d[0];
- this.P[i+1] = d[1];
- }
-
- for (i = 0; i < 4; i++) {
- for (k = 0; k < 256; k += 2) {
- this.encipher(d, d8);
- this.S[i][k] = d[0];
- this.S[i][k+1] = d[1];
- }
- }
-};
-
-Blowfish.prototype.expandstate = function(data, databytes, key, keybytes) {
- var d = new Uint32Array(2), i, k;
-
- for (i = 0, BLF_J = 0; i < 18; i++) {
- this.P[i] ^= stream2word(key, keybytes);
- }
-
- for (i = 0, BLF_J = 0; i < 18; i += 2) {
- d[0] ^= stream2word(data, databytes);
- d[1] ^= stream2word(data, databytes);
- this.encipher(d);
- this.P[i] = d[0];
- this.P[i+1] = d[1];
- }
-
- for (i = 0; i < 4; i++) {
- for (k = 0; k < 256; k += 2) {
- d[0] ^= stream2word(data, databytes);
- d[1] ^= stream2word(data, databytes);
- this.encipher(d);
- this.S[i][k] = d[0];
- this.S[i][k+1] = d[1];
- }
- }
- BLF_J = 0;
-};
-
-Blowfish.prototype.enc = function(data, blocks) {
- for (var i = 0; i < blocks; i++) {
- this.encipher(data.subarray(i*2));
- }
-};
-
-Blowfish.prototype.dec = function(data, blocks) {
- for (var i = 0; i < blocks; i++) {
- this.decipher(data.subarray(i*2));
- }
-};
-
-var BCRYPT_BLOCKS = 8,
- BCRYPT_HASHSIZE = 32;
-
-function bcrypt_hash(sha2pass, sha2salt, out) {
- var state = new Blowfish(),
- cdata = new Uint32Array(BCRYPT_BLOCKS), i,
- ciphertext = new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,
- 99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,
- 105,116,101]); //"OxychromaticBlowfishSwatDynamite"
-
- state.expandstate(sha2salt, 64, sha2pass, 64);
- for (i = 0; i < 64; i++) {
- state.expand0state(sha2salt, 64);
- state.expand0state(sha2pass, 64);
- }
-
- for (i = 0; i < BCRYPT_BLOCKS; i++)
- cdata[i] = stream2word(ciphertext, ciphertext.byteLength);
- for (i = 0; i < 64; i++)
- state.enc(cdata, cdata.byteLength / 8);
-
- for (i = 0; i < BCRYPT_BLOCKS; i++) {
- out[4*i+3] = cdata[i] >>> 24;
- out[4*i+2] = cdata[i] >>> 16;
- out[4*i+1] = cdata[i] >>> 8;
- out[4*i+0] = cdata[i];
- }
-};
-
-function bcrypt_pbkdf(pass, passlen, salt, saltlen, key, keylen, rounds) {
- var sha2pass = new Uint8Array(64),
- sha2salt = new Uint8Array(64),
- out = new Uint8Array(BCRYPT_HASHSIZE),
- tmpout = new Uint8Array(BCRYPT_HASHSIZE),
- countsalt = new Uint8Array(saltlen+4),
- i, j, amt, stride, dest, count,
- origkeylen = keylen;
-
- if (rounds < 1)
- return -1;
- if (passlen === 0 || saltlen === 0 || keylen === 0 ||
- keylen > (out.byteLength * out.byteLength) || saltlen > (1<<20))
- return -1;
-
- stride = Math.floor((keylen + out.byteLength - 1) / out.byteLength);
- amt = Math.floor((keylen + stride - 1) / stride);
-
- for (i = 0; i < saltlen; i++)
- countsalt[i] = salt[i];
-
- crypto_hash_sha512(sha2pass, pass, passlen);
-
- for (count = 1; keylen > 0; count++) {
- countsalt[saltlen+0] = count >>> 24;
- countsalt[saltlen+1] = count >>> 16;
- countsalt[saltlen+2] = count >>> 8;
- countsalt[saltlen+3] = count;
-
- crypto_hash_sha512(sha2salt, countsalt, saltlen + 4);
- bcrypt_hash(sha2pass, sha2salt, tmpout);
- for (i = out.byteLength; i--;)
- out[i] = tmpout[i];
-
- for (i = 1; i < rounds; i++) {
- crypto_hash_sha512(sha2salt, tmpout, tmpout.byteLength);
- bcrypt_hash(sha2pass, sha2salt, tmpout);
- for (j = 0; j < out.byteLength; j++)
- out[j] ^= tmpout[j];
- }
-
- amt = Math.min(amt, keylen);
- for (i = 0; i < amt; i++) {
- dest = i * stride + (count - 1);
- if (dest >= origkeylen)
- break;
- key[dest] = out[i];
- }
- keylen -= i;
- }
-
- return 0;
-};
-
-module.exports = {
- BLOCKS: BCRYPT_BLOCKS,
- HASHSIZE: BCRYPT_HASHSIZE,
- hash: bcrypt_hash,
- pbkdf: bcrypt_pbkdf
-};
diff --git a/node_modules/bcrypt-pbkdf/package.json b/node_modules/bcrypt-pbkdf/package.json
deleted file mode 100644
index 0295261..0000000
--- a/node_modules/bcrypt-pbkdf/package.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "_from": "bcrypt-pbkdf@^1.0.0",
- "_id": "bcrypt-pbkdf@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
- "_location": "/bcrypt-pbkdf",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "bcrypt-pbkdf@^1.0.0",
- "name": "bcrypt-pbkdf",
- "escapedName": "bcrypt-pbkdf",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
- "_shasum": "a4301d389b6a43f9b67ff3ca11a3f6637e360e9e",
- "_spec": "bcrypt-pbkdf@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "bugs": {
- "url": "https://github.com/joyent/node-bcrypt-pbkdf/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "tweetnacl": "^0.14.3"
- },
- "deprecated": false,
- "description": "Port of the OpenBSD bcrypt_pbkdf function to pure JS",
- "devDependencies": {},
- "homepage": "https://github.com/joyent/node-bcrypt-pbkdf#readme",
- "license": "BSD-3-Clause",
- "main": "index.js",
- "name": "bcrypt-pbkdf",
- "repository": {
- "type": "git",
- "url": "git://github.com/joyent/node-bcrypt-pbkdf.git"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/block-stream/LICENCE b/node_modules/block-stream/LICENCE
deleted file mode 100644
index 74489e2..0000000
--- a/node_modules/block-stream/LICENCE
+++ /dev/null
@@ -1,25 +0,0 @@
-Copyright (c) Isaac Z. Schlueter
-All rights reserved.
-
-The BSD License
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/block-stream/LICENSE b/node_modules/block-stream/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/block-stream/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/block-stream/README.md b/node_modules/block-stream/README.md
deleted file mode 100644
index c16e9c4..0000000
--- a/node_modules/block-stream/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# block-stream
-
-A stream of blocks.
-
-Write data into it, and it'll output data in buffer blocks the size you
-specify, padding with zeroes if necessary.
-
-```javascript
-var block = new BlockStream(512)
-fs.createReadStream("some-file").pipe(block)
-block.pipe(fs.createWriteStream("block-file"))
-```
-
-When `.end()` or `.flush()` is called, it'll pad the block with zeroes.
diff --git a/node_modules/block-stream/block-stream.js b/node_modules/block-stream/block-stream.js
deleted file mode 100644
index 008de03..0000000
--- a/node_modules/block-stream/block-stream.js
+++ /dev/null
@@ -1,209 +0,0 @@
-// write data to it, and it'll emit data in 512 byte blocks.
-// if you .end() or .flush(), it'll emit whatever it's got,
-// padded with nulls to 512 bytes.
-
-module.exports = BlockStream
-
-var Stream = require("stream").Stream
- , inherits = require("inherits")
- , assert = require("assert").ok
- , debug = process.env.DEBUG ? console.error : function () {}
-
-function BlockStream (size, opt) {
- this.writable = this.readable = true
- this._opt = opt || {}
- this._chunkSize = size || 512
- this._offset = 0
- this._buffer = []
- this._bufferLength = 0
- if (this._opt.nopad) this._zeroes = false
- else {
- this._zeroes = new Buffer(this._chunkSize)
- for (var i = 0; i < this._chunkSize; i ++) {
- this._zeroes[i] = 0
- }
- }
-}
-
-inherits(BlockStream, Stream)
-
-BlockStream.prototype.write = function (c) {
- // debug(" BS write", c)
- if (this._ended) throw new Error("BlockStream: write after end")
- if (c && !Buffer.isBuffer(c)) c = new Buffer(c + "")
- if (c.length) {
- this._buffer.push(c)
- this._bufferLength += c.length
- }
- // debug("pushed onto buffer", this._bufferLength)
- if (this._bufferLength >= this._chunkSize) {
- if (this._paused) {
- // debug(" BS paused, return false, need drain")
- this._needDrain = true
- return false
- }
- this._emitChunk()
- }
- return true
-}
-
-BlockStream.prototype.pause = function () {
- // debug(" BS pausing")
- this._paused = true
-}
-
-BlockStream.prototype.resume = function () {
- // debug(" BS resume")
- this._paused = false
- return this._emitChunk()
-}
-
-BlockStream.prototype.end = function (chunk) {
- // debug("end", chunk)
- if (typeof chunk === "function") cb = chunk, chunk = null
- if (chunk) this.write(chunk)
- this._ended = true
- this.flush()
-}
-
-BlockStream.prototype.flush = function () {
- this._emitChunk(true)
-}
-
-BlockStream.prototype._emitChunk = function (flush) {
- // debug("emitChunk flush=%j emitting=%j paused=%j", flush, this._emitting, this._paused)
-
- // emit a <chunkSize> chunk
- if (flush && this._zeroes) {
- // debug(" BS push zeroes", this._bufferLength)
- // push a chunk of zeroes
- var padBytes = (this._bufferLength % this._chunkSize)
- if (padBytes !== 0) padBytes = this._chunkSize - padBytes
- if (padBytes > 0) {
- // debug("padBytes", padBytes, this._zeroes.slice(0, padBytes))
- this._buffer.push(this._zeroes.slice(0, padBytes))
- this._bufferLength += padBytes
- // debug(this._buffer[this._buffer.length - 1].length, this._bufferLength)
- }
- }
-
- if (this._emitting || this._paused) return
- this._emitting = true
-
- // debug(" BS entering loops")
- var bufferIndex = 0
- while (this._bufferLength >= this._chunkSize &&
- (flush || !this._paused)) {
- // debug(" BS data emission loop", this._bufferLength)
-
- var out
- , outOffset = 0
- , outHas = this._chunkSize
-
- while (outHas > 0 && (flush || !this._paused) ) {
- // debug(" BS data inner emit loop", this._bufferLength)
- var cur = this._buffer[bufferIndex]
- , curHas = cur.length - this._offset
- // debug("cur=", cur)
- // debug("curHas=%j", curHas)
- // If it's not big enough to fill the whole thing, then we'll need
- // to copy multiple buffers into one. However, if it is big enough,
- // then just slice out the part we want, to save unnecessary copying.
- // Also, need to copy if we've already done some copying, since buffers
- // can't be joined like cons strings.
- if (out || curHas < outHas) {
- out = out || new Buffer(this._chunkSize)
- cur.copy(out, outOffset,
- this._offset, this._offset + Math.min(curHas, outHas))
- } else if (cur.length === outHas && this._offset === 0) {
- // shortcut -- cur is exactly long enough, and no offset.
- out = cur
- } else {
- // slice out the piece of cur that we need.
- out = cur.slice(this._offset, this._offset + outHas)
- }
-
- if (curHas > outHas) {
- // means that the current buffer couldn't be completely output
- // update this._offset to reflect how much WAS written
- this._offset += outHas
- outHas = 0
- } else {
- // output the entire current chunk.
- // toss it away
- outHas -= curHas
- outOffset += curHas
- bufferIndex ++
- this._offset = 0
- }
- }
-
- this._bufferLength -= this._chunkSize
- assert(out.length === this._chunkSize)
- // debug("emitting data", out)
- // debug(" BS emitting, paused=%j", this._paused, this._bufferLength)
- this.emit("data", out)
- out = null
- }
- // debug(" BS out of loops", this._bufferLength)
-
- // whatever is left, it's not enough to fill up a block, or we're paused
- this._buffer = this._buffer.slice(bufferIndex)
- if (this._paused) {
- // debug(" BS paused, leaving", this._bufferLength)
- this._needsDrain = true
- this._emitting = false
- return
- }
-
- // if flushing, and not using null-padding, then need to emit the last
- // chunk(s) sitting in the queue. We know that it's not enough to
- // fill up a whole block, because otherwise it would have been emitted
- // above, but there may be some offset.
- var l = this._buffer.length
- if (flush && !this._zeroes && l) {
- if (l === 1) {
- if (this._offset) {
- this.emit("data", this._buffer[0].slice(this._offset))
- } else {
- this.emit("data", this._buffer[0])
- }
- } else {
- var outHas = this._bufferLength
- , out = new Buffer(outHas)
- , outOffset = 0
- for (var i = 0; i < l; i ++) {
- var cur = this._buffer[i]
- , curHas = cur.length - this._offset
- cur.copy(out, outOffset, this._offset)
- this._offset = 0
- outOffset += curHas
- this._bufferLength -= curHas
- }
- this.emit("data", out)
- }
- // truncate
- this._buffer.length = 0
- this._bufferLength = 0
- this._offset = 0
- }
-
- // now either drained or ended
- // debug("either draining, or ended", this._bufferLength, this._ended)
- // means that we've flushed out all that we can so far.
- if (this._needDrain) {
- // debug("emitting drain", this._bufferLength)
- this._needDrain = false
- this.emit("drain")
- }
-
- if ((this._bufferLength === 0) && this._ended && !this._endEmitted) {
- // debug("emitting end", this._bufferLength)
- this._endEmitted = true
- this.emit("end")
- }
-
- this._emitting = false
-
- // debug(" BS no longer emitting", flush, this._paused, this._emitting, this._bufferLength, this._chunkSize)
-}
diff --git a/node_modules/block-stream/package.json b/node_modules/block-stream/package.json
deleted file mode 100644
index eccaa98..0000000
--- a/node_modules/block-stream/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_from": "block-stream@*",
- "_id": "block-stream@0.0.9",
- "_inBundle": false,
- "_integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
- "_location": "/block-stream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "block-stream@*",
- "name": "block-stream",
- "escapedName": "block-stream",
- "rawSpec": "*",
- "saveSpec": null,
- "fetchSpec": "*"
- },
- "_requiredBy": [
- "/tar"
- ],
- "_resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
- "_shasum": "13ebfe778a03205cfe03751481ebb4b3300c126a",
- "_spec": "block-stream@*",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/tar",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/block-stream/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "inherits": "~2.0.0"
- },
- "deprecated": false,
- "description": "a stream of blocks",
- "devDependencies": {
- "tap": "^5.7.1"
- },
- "engines": {
- "node": "0.4 || >=0.5.8"
- },
- "files": [
- "block-stream.js"
- ],
- "homepage": "https://github.com/isaacs/block-stream#readme",
- "license": "ISC",
- "main": "block-stream.js",
- "name": "block-stream",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/block-stream.git"
- },
- "scripts": {
- "test": "tap test/*.js --cov"
- },
- "version": "0.0.9"
-}
diff --git a/node_modules/brace-expansion/LICENSE b/node_modules/brace-expansion/LICENSE
deleted file mode 100644
index de32266..0000000
--- a/node_modules/brace-expansion/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/brace-expansion/README.md b/node_modules/brace-expansion/README.md
deleted file mode 100644
index 6b4e0e1..0000000
--- a/node_modules/brace-expansion/README.md
+++ /dev/null
@@ -1,129 +0,0 @@
-# brace-expansion
-
-[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html),
-as known from sh/bash, in JavaScript.
-
-[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion)
-[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion)
-[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/)
-
-[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion)
-
-## Example
-
-```js
-var expand = require('brace-expansion');
-
-expand('file-{a,b,c}.jpg')
-// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
-
-expand('-v{,,}')
-// => ['-v', '-v', '-v']
-
-expand('file{0..2}.jpg')
-// => ['file0.jpg', 'file1.jpg', 'file2.jpg']
-
-expand('file-{a..c}.jpg')
-// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
-
-expand('file{2..0}.jpg')
-// => ['file2.jpg', 'file1.jpg', 'file0.jpg']
-
-expand('file{0..4..2}.jpg')
-// => ['file0.jpg', 'file2.jpg', 'file4.jpg']
-
-expand('file-{a..e..2}.jpg')
-// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']
-
-expand('file{00..10..5}.jpg')
-// => ['file00.jpg', 'file05.jpg', 'file10.jpg']
-
-expand('{{A..C},{a..c}}')
-// => ['A', 'B', 'C', 'a', 'b', 'c']
-
-expand('ppp{,config,oe{,conf}}')
-// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']
-```
-
-## API
-
-```js
-var expand = require('brace-expansion');
-```
-
-### var expanded = expand(str)
-
-Return an array of all possible and valid expansions of `str`. If none are
-found, `[str]` is returned.
-
-Valid expansions are:
-
-```js
-/^(.*,)+(.+)?$/
-// {a,b,...}
-```
-
-A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`.
-
-```js
-/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
-// {x..y[..incr]}
-```
-
-A numeric sequence from `x` to `y` inclusive, with optional increment.
-If `x` or `y` start with a leading `0`, all the numbers will be padded
-to have equal length. Negative numbers and backwards iteration work too.
-
-```js
-/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
-// {x..y[..incr]}
-```
-
-An alphabetic sequence from `x` to `y` inclusive, with optional increment.
-`x` and `y` must be exactly one character, and if given, `incr` must be a
-number.
-
-For compatibility reasons, the string `${` is not eligible for brace expansion.
-
-## Installation
-
-With [npm](https://npmjs.org) do:
-
-```bash
-npm install brace-expansion
-```
-
-## Contributors
-
-- [Julian Gruber](https://github.com/juliangruber)
-- [Isaac Z. Schlueter](https://github.com/isaacs)
-
-## Sponsors
-
-This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)!
-
-Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!
-
-## License
-
-(MIT)
-
-Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/brace-expansion/index.js b/node_modules/brace-expansion/index.js
deleted file mode 100644
index 0478be8..0000000
--- a/node_modules/brace-expansion/index.js
+++ /dev/null
@@ -1,201 +0,0 @@
-var concatMap = require('concat-map');
-var balanced = require('balanced-match');
-
-module.exports = expandTop;
-
-var escSlash = '\0SLASH'+Math.random()+'\0';
-var escOpen = '\0OPEN'+Math.random()+'\0';
-var escClose = '\0CLOSE'+Math.random()+'\0';
-var escComma = '\0COMMA'+Math.random()+'\0';
-var escPeriod = '\0PERIOD'+Math.random()+'\0';
-
-function numeric(str) {
- return parseInt(str, 10) == str
- ? parseInt(str, 10)
- : str.charCodeAt(0);
-}
-
-function escapeBraces(str) {
- return str.split('\\\\').join(escSlash)
- .split('\\{').join(escOpen)
- .split('\\}').join(escClose)
- .split('\\,').join(escComma)
- .split('\\.').join(escPeriod);
-}
-
-function unescapeBraces(str) {
- return str.split(escSlash).join('\\')
- .split(escOpen).join('{')
- .split(escClose).join('}')
- .split(escComma).join(',')
- .split(escPeriod).join('.');
-}
-
-
-// Basically just str.split(","), but handling cases
-// where we have nested braced sections, which should be
-// treated as individual members, like {a,{b,c},d}
-function parseCommaParts(str) {
- if (!str)
- return [''];
-
- var parts = [];
- var m = balanced('{', '}', str);
-
- if (!m)
- return str.split(',');
-
- var pre = m.pre;
- var body = m.body;
- var post = m.post;
- var p = pre.split(',');
-
- p[p.length-1] += '{' + body + '}';
- var postParts = parseCommaParts(post);
- if (post.length) {
- p[p.length-1] += postParts.shift();
- p.push.apply(p, postParts);
- }
-
- parts.push.apply(parts, p);
-
- return parts;
-}
-
-function expandTop(str) {
- if (!str)
- return [];
-
- // I don't know why Bash 4.3 does this, but it does.
- // Anything starting with {} will have the first two bytes preserved
- // but *only* at the top level, so {},a}b will not expand to anything,
- // but a{},b}c will be expanded to [a}c,abc].
- // One could argue that this is a bug in Bash, but since the goal of
- // this module is to match Bash's rules, we escape a leading {}
- if (str.substr(0, 2) === '{}') {
- str = '\\{\\}' + str.substr(2);
- }
-
- return expand(escapeBraces(str), true).map(unescapeBraces);
-}
-
-function identity(e) {
- return e;
-}
-
-function embrace(str) {
- return '{' + str + '}';
-}
-function isPadded(el) {
- return /^-?0\d/.test(el);
-}
-
-function lte(i, y) {
- return i <= y;
-}
-function gte(i, y) {
- return i >= y;
-}
-
-function expand(str, isTop) {
- var expansions = [];
-
- var m = balanced('{', '}', str);
- if (!m || /\$$/.test(m.pre)) return [str];
-
- var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
- var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
- var isSequence = isNumericSequence || isAlphaSequence;
- var isOptions = m.body.indexOf(',') >= 0;
- if (!isSequence && !isOptions) {
- // {a},b}
- if (m.post.match(/,.*\}/)) {
- str = m.pre + '{' + m.body + escClose + m.post;
- return expand(str);
- }
- return [str];
- }
-
- var n;
- if (isSequence) {
- n = m.body.split(/\.\./);
- } else {
- n = parseCommaParts(m.body);
- if (n.length === 1) {
- // x{{a,b}}y ==> x{a}y x{b}y
- n = expand(n[0], false).map(embrace);
- if (n.length === 1) {
- var post = m.post.length
- ? expand(m.post, false)
- : [''];
- return post.map(function(p) {
- return m.pre + n[0] + p;
- });
- }
- }
- }
-
- // at this point, n is the parts, and we know it's not a comma set
- // with a single entry.
-
- // no need to expand pre, since it is guaranteed to be free of brace-sets
- var pre = m.pre;
- var post = m.post.length
- ? expand(m.post, false)
- : [''];
-
- var N;
-
- if (isSequence) {
- var x = numeric(n[0]);
- var y = numeric(n[1]);
- var width = Math.max(n[0].length, n[1].length)
- var incr = n.length == 3
- ? Math.abs(numeric(n[2]))
- : 1;
- var test = lte;
- var reverse = y < x;
- if (reverse) {
- incr *= -1;
- test = gte;
- }
- var pad = n.some(isPadded);
-
- N = [];
-
- for (var i = x; test(i, y); i += incr) {
- var c;
- if (isAlphaSequence) {
- c = String.fromCharCode(i);
- if (c === '\\')
- c = '';
- } else {
- c = String(i);
- if (pad) {
- var need = width - c.length;
- if (need > 0) {
- var z = new Array(need + 1).join('0');
- if (i < 0)
- c = '-' + z + c.slice(1);
- else
- c = z + c;
- }
- }
- }
- N.push(c);
- }
- } else {
- N = concatMap(n, function(el) { return expand(el, false) });
- }
-
- for (var j = 0; j < N.length; j++) {
- for (var k = 0; k < post.length; k++) {
- var expansion = pre + N[j] + post[k];
- if (!isTop || isSequence || expansion)
- expansions.push(expansion);
- }
- }
-
- return expansions;
-}
-
diff --git a/node_modules/brace-expansion/package.json b/node_modules/brace-expansion/package.json
deleted file mode 100644
index 011baa3..0000000
--- a/node_modules/brace-expansion/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "brace-expansion@^1.1.7",
- "_id": "brace-expansion@1.1.11",
- "_inBundle": false,
- "_integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "_location": "/brace-expansion",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "brace-expansion@^1.1.7",
- "name": "brace-expansion",
- "escapedName": "brace-expansion",
- "rawSpec": "^1.1.7",
- "saveSpec": null,
- "fetchSpec": "^1.1.7"
- },
- "_requiredBy": [
- "/minimatch"
- ],
- "_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "_shasum": "3c7fcbf529d87226f3d2f52b966ff5271eb441dd",
- "_spec": "brace-expansion@^1.1.7",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/minimatch",
- "author": {
- "name": "Julian Gruber",
- "email": "mail@juliangruber.com",
- "url": "http://juliangruber.com"
- },
- "bugs": {
- "url": "https://github.com/juliangruber/brace-expansion/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- },
- "deprecated": false,
- "description": "Brace expansion as known from sh/bash",
- "devDependencies": {
- "matcha": "^0.7.0",
- "tape": "^4.6.0"
- },
- "homepage": "https://github.com/juliangruber/brace-expansion",
- "keywords": [],
- "license": "MIT",
- "main": "index.js",
- "name": "brace-expansion",
- "repository": {
- "type": "git",
- "url": "git://github.com/juliangruber/brace-expansion.git"
- },
- "scripts": {
- "bench": "matcha test/perf/bench.js",
- "gentest": "bash test/generate.sh",
- "test": "tape test/*.js"
- },
- "testling": {
- "files": "test/*.js",
- "browsers": [
- "ie/8..latest",
- "firefox/20..latest",
- "firefox/nightly",
- "chrome/25..latest",
- "chrome/canary",
- "opera/12..latest",
- "opera/next",
- "safari/5.1..latest",
- "ipad/6.0..latest",
- "iphone/6.0..latest",
- "android-browser/4.2..latest"
- ]
- },
- "version": "1.1.11"
-}
diff --git a/node_modules/camelcase-keys/index.js b/node_modules/camelcase-keys/index.js
deleted file mode 100644
index 0eca08c..0000000
--- a/node_modules/camelcase-keys/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-var mapObj = require('map-obj');
-var camelCase = require('camelcase');
-
-module.exports = function (input, options) {
- options = options || {};
- var exclude = options.exclude || [];
- return mapObj(input, function (key, val) {
- key = exclude.indexOf(key) === -1 ? camelCase(key) : key;
- return [key, val];
- });
-};
diff --git a/node_modules/camelcase-keys/license b/node_modules/camelcase-keys/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/camelcase-keys/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/camelcase-keys/package.json b/node_modules/camelcase-keys/package.json
deleted file mode 100644
index 6e8843a..0000000
--- a/node_modules/camelcase-keys/package.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_from": "camelcase-keys@^2.0.0",
- "_id": "camelcase-keys@2.1.0",
- "_inBundle": false,
- "_integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
- "_location": "/camelcase-keys",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "camelcase-keys@^2.0.0",
- "name": "camelcase-keys",
- "escapedName": "camelcase-keys",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/meow"
- ],
- "_resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
- "_shasum": "308beeaffdf28119051efa1d932213c91b8f92e7",
- "_spec": "camelcase-keys@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/camelcase-keys/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "camelcase": "^2.0.0",
- "map-obj": "^1.0.0"
- },
- "deprecated": false,
- "description": "Convert object keys to camelCase",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/camelcase-keys#readme",
- "keywords": [
- "map",
- "obj",
- "object",
- "key",
- "keys",
- "value",
- "values",
- "val",
- "iterate",
- "camelcase",
- "camel-case",
- "camel",
- "case",
- "dash",
- "hyphen",
- "dot",
- "underscore",
- "separator",
- "string",
- "text",
- "convert"
- ],
- "license": "MIT",
- "name": "camelcase-keys",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/camelcase-keys.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "2.1.0"
-}
diff --git a/node_modules/camelcase-keys/readme.md b/node_modules/camelcase-keys/readme.md
deleted file mode 100644
index ca37328..0000000
--- a/node_modules/camelcase-keys/readme.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# camelcase-keys [![Build Status](https://travis-ci.org/sindresorhus/camelcase-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase-keys)
-
-> Convert object keys to camelCase using [`camelcase`](https://github.com/sindresorhus/camelcase)
-
-
-## Install
-
-```
-$ npm install --save camelcase-keys
-```
-
-
-## Usage
-
-```js
-const camelcaseKeys = require('camelcase-keys');
-
-camelcaseKeys({'foo-bar': true});
-//=> {fooBar: true}
-
-
-const argv = require('minimist')(process.argv.slice(2));
-//=> {_: [], 'foo-bar': true}
-
-camelcaseKeys(argv);
-//=> {_: [], fooBar: true}
-```
-
-
-## API
-
-### camelcaseKeys(input, [options])
-
-#### input
-
-Type: `object`
-
-Object to camelCase.
-
-#### options
-
-Type: `object`
-
-##### exclude
-
-Type: `array`
-Default: `[]`
-
-Exclude keys from being camelCased.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/camelcase/index.js b/node_modules/camelcase/index.js
deleted file mode 100644
index 929facb..0000000
--- a/node_modules/camelcase/index.js
+++ /dev/null
@@ -1,56 +0,0 @@
-'use strict';
-
-function preserveCamelCase(str) {
- var isLastCharLower = false;
-
- for (var i = 0; i < str.length; i++) {
- var c = str.charAt(i);
-
- if (isLastCharLower && (/[a-zA-Z]/).test(c) && c.toUpperCase() === c) {
- str = str.substr(0, i) + '-' + str.substr(i);
- isLastCharLower = false;
- i++;
- } else {
- isLastCharLower = (c.toLowerCase() === c);
- }
- }
-
- return str;
-}
-
-module.exports = function () {
- var str = [].map.call(arguments, function (str) {
- return str.trim();
- }).filter(function (str) {
- return str.length;
- }).join('-');
-
- if (!str.length) {
- return '';
- }
-
- if (str.length === 1) {
- return str;
- }
-
- if (!(/[_.\- ]+/).test(str)) {
- if (str === str.toUpperCase()) {
- return str.toLowerCase();
- }
-
- if (str[0] !== str[0].toLowerCase()) {
- return str[0].toLowerCase() + str.slice(1);
- }
-
- return str;
- }
-
- str = preserveCamelCase(str);
-
- return str
- .replace(/^[_.\- ]+/, '')
- .toLowerCase()
- .replace(/[_.\- ]+(\w|$)/g, function (m, p1) {
- return p1.toUpperCase();
- });
-};
diff --git a/node_modules/camelcase/license b/node_modules/camelcase/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/camelcase/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/camelcase/package.json b/node_modules/camelcase/package.json
deleted file mode 100644
index 98e937b..0000000
--- a/node_modules/camelcase/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "camelcase@^2.0.0",
- "_id": "camelcase@2.1.1",
- "_inBundle": false,
- "_integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=",
- "_location": "/camelcase",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "camelcase@^2.0.0",
- "name": "camelcase",
- "escapedName": "camelcase",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/camelcase-keys"
- ],
- "_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
- "_shasum": "7c1d16d679a1bbe59ca02cacecfb011e201f5a1f",
- "_spec": "camelcase@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/camelcase-keys",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/camelcase/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/camelcase#readme",
- "keywords": [
- "camelcase",
- "camel-case",
- "camel",
- "case",
- "dash",
- "hyphen",
- "dot",
- "underscore",
- "separator",
- "string",
- "text",
- "convert"
- ],
- "license": "MIT",
- "name": "camelcase",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/camelcase.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "2.1.1"
-}
diff --git a/node_modules/camelcase/readme.md b/node_modules/camelcase/readme.md
deleted file mode 100644
index 080b2a1..0000000
--- a/node_modules/camelcase/readme.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase)
-
-> Convert a dash/dot/underscore/space separated string to camelCase: `foo-bar` → `fooBar`
-
-
-## Install
-
-```
-$ npm install --save camelcase
-```
-
-
-## Usage
-
-```js
-const camelCase = require('camelcase');
-
-camelCase('foo-bar');
-//=> 'fooBar'
-
-camelCase('foo_bar');
-//=> 'fooBar'
-
-camelCase('Foo-Bar');
-//=> 'fooBar'
-
-camelCase('--foo.bar');
-//=> 'fooBar'
-
-camelCase('__foo__bar__');
-//=> 'fooBar'
-
-camelCase('foo bar');
-//=> 'fooBar'
-
-console.log(process.argv[3]);
-//=> '--foo-bar'
-camelCase(process.argv[3]);
-//=> 'fooBar'
-
-camelCase('foo', 'bar');
-//=> 'fooBar'
-
-camelCase('__foo__', '--bar');
-//=> 'fooBar'
-```
-
-
-## Related
-
-- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
-- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/caseless/LICENSE b/node_modules/caseless/LICENSE
deleted file mode 100644
index 61789f4..0000000
--- a/node_modules/caseless/LICENSE
+++ /dev/null
@@ -1,28 +0,0 @@
-Apache License
-Version 2.0, January 2004
-http://www.apache.org/licenses/
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-1. Definitions.
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-You must give any other recipients of the Work or Derivative Works a copy of this License; and
-You must cause any modified files to carry prominent notices stating that You changed the files; and
-You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-END OF TERMS AND CONDITIONS \ No newline at end of file
diff --git a/node_modules/caseless/README.md b/node_modules/caseless/README.md
deleted file mode 100644
index e5077a2..0000000
--- a/node_modules/caseless/README.md
+++ /dev/null
@@ -1,45 +0,0 @@
-## Caseless -- wrap an object to set and get property with caseless semantics but also preserve caseing.
-
-This library is incredibly useful when working with HTTP headers. It allows you to get/set/check for headers in a caseless manner while also preserving the caseing of headers the first time they are set.
-
-## Usage
-
-```javascript
-var headers = {}
- , c = caseless(headers)
- ;
-c.set('a-Header', 'asdf')
-c.get('a-header') === 'asdf'
-```
-
-## has(key)
-
-Has takes a name and if it finds a matching header will return that header name with the preserved caseing it was set with.
-
-```javascript
-c.has('a-header') === 'a-Header'
-```
-
-## set(key, value[, clobber=true])
-
-Set is fairly straight forward except that if the header exists and clobber is disabled it will add `','+value` to the existing header.
-
-```javascript
-c.set('a-Header', 'fdas')
-c.set('a-HEADER', 'more', false)
-c.get('a-header') === 'fdsa,more'
-```
-
-## swap(key)
-
-Swaps the casing of a header with the new one that is passed in.
-
-```javascript
-var headers = {}
- , c = caseless(headers)
- ;
-c.set('a-Header', 'fdas')
-c.swap('a-HEADER')
-c.has('a-header') === 'a-HEADER'
-headers === {'a-HEADER': 'fdas'}
-```
diff --git a/node_modules/caseless/index.js b/node_modules/caseless/index.js
deleted file mode 100644
index b194734..0000000
--- a/node_modules/caseless/index.js
+++ /dev/null
@@ -1,67 +0,0 @@
-function Caseless (dict) {
- this.dict = dict || {}
-}
-Caseless.prototype.set = function (name, value, clobber) {
- if (typeof name === 'object') {
- for (var i in name) {
- this.set(i, name[i], value)
- }
- } else {
- if (typeof clobber === 'undefined') clobber = true
- var has = this.has(name)
-
- if (!clobber && has) this.dict[has] = this.dict[has] + ',' + value
- else this.dict[has || name] = value
- return has
- }
-}
-Caseless.prototype.has = function (name) {
- var keys = Object.keys(this.dict)
- , name = name.toLowerCase()
- ;
- for (var i=0;i<keys.length;i++) {
- if (keys[i].toLowerCase() === name) return keys[i]
- }
- return false
-}
-Caseless.prototype.get = function (name) {
- name = name.toLowerCase()
- var result, _key
- var headers = this.dict
- Object.keys(headers).forEach(function (key) {
- _key = key.toLowerCase()
- if (name === _key) result = headers[key]
- })
- return result
-}
-Caseless.prototype.swap = function (name) {
- var has = this.has(name)
- if (has === name) return
- if (!has) throw new Error('There is no header than matches "'+name+'"')
- this.dict[name] = this.dict[has]
- delete this.dict[has]
-}
-Caseless.prototype.del = function (name) {
- var has = this.has(name)
- return delete this.dict[has || name]
-}
-
-module.exports = function (dict) {return new Caseless(dict)}
-module.exports.httpify = function (resp, headers) {
- var c = new Caseless(headers)
- resp.setHeader = function (key, value, clobber) {
- if (typeof value === 'undefined') return
- return c.set(key, value, clobber)
- }
- resp.hasHeader = function (key) {
- return c.has(key)
- }
- resp.getHeader = function (key) {
- return c.get(key)
- }
- resp.removeHeader = function (key) {
- return c.del(key)
- }
- resp.headers = c.dict
- return c
-}
diff --git a/node_modules/caseless/package.json b/node_modules/caseless/package.json
deleted file mode 100644
index 2c572f0..0000000
--- a/node_modules/caseless/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_from": "caseless@~0.12.0",
- "_id": "caseless@0.12.0",
- "_inBundle": false,
- "_integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
- "_location": "/caseless",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "caseless@~0.12.0",
- "name": "caseless",
- "escapedName": "caseless",
- "rawSpec": "~0.12.0",
- "saveSpec": null,
- "fetchSpec": "~0.12.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
- "_shasum": "1b681c21ff84033c826543090689420d187151dc",
- "_spec": "caseless@~0.12.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Mikeal Rogers",
- "email": "mikeal.rogers@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/mikeal/caseless/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Caseless object set/get/has, very useful when working with HTTP headers.",
- "devDependencies": {
- "tape": "^2.10.2"
- },
- "homepage": "https://github.com/mikeal/caseless#readme",
- "keywords": [
- "headers",
- "http",
- "caseless"
- ],
- "license": "Apache-2.0",
- "main": "index.js",
- "name": "caseless",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mikeal/caseless.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "test": "node test.js",
- "version": "0.12.0"
-}
diff --git a/node_modules/caseless/test.js b/node_modules/caseless/test.js
deleted file mode 100644
index f55196c..0000000
--- a/node_modules/caseless/test.js
+++ /dev/null
@@ -1,67 +0,0 @@
-var tape = require('tape')
- , caseless = require('./')
- ;
-
-tape('set get has', function (t) {
- var headers = {}
- , c = caseless(headers)
- ;
- t.plan(17)
- c.set('a-Header', 'asdf')
- t.equal(c.get('a-header'), 'asdf')
- t.equal(c.has('a-header'), 'a-Header')
- t.ok(!c.has('nothing'))
- // old bug where we used the wrong regex
- t.ok(!c.has('a-hea'))
- c.set('a-header', 'fdsa')
- t.equal(c.get('a-header'), 'fdsa')
- t.equal(c.get('a-Header'), 'fdsa')
- c.set('a-HEADER', 'more', false)
- t.equal(c.get('a-header'), 'fdsa,more')
-
- t.deepEqual(headers, {'a-Header': 'fdsa,more'})
- c.swap('a-HEADER')
- t.deepEqual(headers, {'a-HEADER': 'fdsa,more'})
-
- c.set('deleteme', 'foobar')
- t.ok(c.has('deleteme'))
- t.ok(c.del('deleteme'))
- t.notOk(c.has('deleteme'))
- t.notOk(c.has('idonotexist'))
- t.ok(c.del('idonotexist'))
-
- c.set('tva', 'test1')
- c.set('tva-header', 'test2')
- t.equal(c.has('tva'), 'tva')
- t.notOk(c.has('header'))
-
- t.equal(c.get('tva'), 'test1')
-
-})
-
-tape('swap', function (t) {
- var headers = {}
- , c = caseless(headers)
- ;
- t.plan(4)
- // No Header to Swap.
- t.throws(function () {
- c.swap('content-type')
- })
- // Set Header.
- c.set('content-type', 'application/json')
- // Swap Header With Itself.
- c.swap('content-type')
- // Does Not Delete Itself.
- t.ok(c.has('content-type'))
- // Swap Header With a Different Header.
- c.swap('Content-Type')
- // Still Has Header.
- t.ok(c.has('Content-Type'))
- // Delete Header.
- c.del('Content-Type')
- // No Header to Swap.
- t.throws(function () {
- c.swap('content-type')
- })
-})
diff --git a/node_modules/chalk/index.js b/node_modules/chalk/index.js
deleted file mode 100644
index 2d85a91..0000000
--- a/node_modules/chalk/index.js
+++ /dev/null
@@ -1,116 +0,0 @@
-'use strict';
-var escapeStringRegexp = require('escape-string-regexp');
-var ansiStyles = require('ansi-styles');
-var stripAnsi = require('strip-ansi');
-var hasAnsi = require('has-ansi');
-var supportsColor = require('supports-color');
-var defineProps = Object.defineProperties;
-var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM);
-
-function Chalk(options) {
- // detect mode if not set manually
- this.enabled = !options || options.enabled === undefined ? supportsColor : options.enabled;
-}
-
-// use bright blue on Windows as the normal blue color is illegible
-if (isSimpleWindowsTerm) {
- ansiStyles.blue.open = '\u001b[94m';
-}
-
-var styles = (function () {
- var ret = {};
-
- Object.keys(ansiStyles).forEach(function (key) {
- ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g');
-
- ret[key] = {
- get: function () {
- return build.call(this, this._styles.concat(key));
- }
- };
- });
-
- return ret;
-})();
-
-var proto = defineProps(function chalk() {}, styles);
-
-function build(_styles) {
- var builder = function () {
- return applyStyle.apply(builder, arguments);
- };
-
- builder._styles = _styles;
- builder.enabled = this.enabled;
- // __proto__ is used because we must return a function, but there is
- // no way to create a function with a different prototype.
- /* eslint-disable no-proto */
- builder.__proto__ = proto;
-
- return builder;
-}
-
-function applyStyle() {
- // support varags, but simply cast to string in case there's only one arg
- var args = arguments;
- var argsLen = args.length;
- var str = argsLen !== 0 && String(arguments[0]);
-
- if (argsLen > 1) {
- // don't slice `arguments`, it prevents v8 optimizations
- for (var a = 1; a < argsLen; a++) {
- str += ' ' + args[a];
- }
- }
-
- if (!this.enabled || !str) {
- return str;
- }
-
- var nestedStyles = this._styles;
- var i = nestedStyles.length;
-
- // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe,
- // see https://github.com/chalk/chalk/issues/58
- // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop.
- var originalDim = ansiStyles.dim.open;
- if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) {
- ansiStyles.dim.open = '';
- }
-
- while (i--) {
- var code = ansiStyles[nestedStyles[i]];
-
- // Replace any instances already present with a re-opening code
- // otherwise only the part of the string until said closing code
- // will be colored, and the rest will simply be 'plain'.
- str = code.open + str.replace(code.closeRe, code.open) + code.close;
- }
-
- // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue.
- ansiStyles.dim.open = originalDim;
-
- return str;
-}
-
-function init() {
- var ret = {};
-
- Object.keys(styles).forEach(function (name) {
- ret[name] = {
- get: function () {
- return build.call(this, [name]);
- }
- };
- });
-
- return ret;
-}
-
-defineProps(Chalk.prototype, init());
-
-module.exports = new Chalk();
-module.exports.styles = ansiStyles;
-module.exports.hasColor = hasAnsi;
-module.exports.stripColor = stripAnsi;
-module.exports.supportsColor = supportsColor;
diff --git a/node_modules/chalk/license b/node_modules/chalk/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/chalk/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/chalk/package.json b/node_modules/chalk/package.json
deleted file mode 100644
index 52177e4..0000000
--- a/node_modules/chalk/package.json
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "_from": "chalk@^1.1.1",
- "_id": "chalk@1.1.3",
- "_inBundle": false,
- "_integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
- "_location": "/chalk",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "chalk@^1.1.1",
- "name": "chalk",
- "escapedName": "chalk",
- "rawSpec": "^1.1.1",
- "saveSpec": null,
- "fetchSpec": "^1.1.1"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
- "_shasum": "a8115c55e4a702fe4d150abd3872822a7e09fc98",
- "_spec": "chalk@^1.1.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "bugs": {
- "url": "https://github.com/chalk/chalk/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ansi-styles": "^2.2.1",
- "escape-string-regexp": "^1.0.2",
- "has-ansi": "^2.0.0",
- "strip-ansi": "^3.0.0",
- "supports-color": "^2.0.0"
- },
- "deprecated": false,
- "description": "Terminal string styling done right. Much color.",
- "devDependencies": {
- "coveralls": "^2.11.2",
- "matcha": "^0.6.0",
- "mocha": "*",
- "nyc": "^3.0.0",
- "require-uncached": "^1.0.2",
- "resolve-from": "^1.0.0",
- "semver": "^4.3.3",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/chalk#readme",
- "keywords": [
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "str",
- "ansi",
- "style",
- "styles",
- "tty",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Appelman",
- "email": "jappelman@xebia.com",
- "url": "jbnicolai.com"
- },
- {
- "name": "JD Ballard",
- "email": "i.am.qix@gmail.com",
- "url": "github.com/qix-"
- }
- ],
- "name": "chalk",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/chalk.git"
- },
- "scripts": {
- "bench": "matcha benchmark.js",
- "coverage": "nyc npm test && nyc report",
- "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
- "test": "xo && mocha"
- },
- "version": "1.1.3",
- "xo": {
- "envs": [
- "node",
- "mocha"
- ]
- }
-}
diff --git a/node_modules/chalk/readme.md b/node_modules/chalk/readme.md
deleted file mode 100644
index 5cf111e..0000000
--- a/node_modules/chalk/readme.md
+++ /dev/null
@@ -1,213 +0,0 @@
-<h1 align="center">
- <br>
- <br>
- <img width="360" src="https://cdn.rawgit.com/chalk/chalk/19935d6484811c5e468817f846b7b3d417d7bf4a/logo.svg" alt="chalk">
- <br>
- <br>
- <br>
-</h1>
-
-> Terminal string styling done right
-
-[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk)
-[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master)
-[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4)
-
-
-[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough.
-
-**Chalk is a clean and focused alternative.**
-
-![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png)
-
-
-## Why
-
-- Highly performant
-- Doesn't extend `String.prototype`
-- Expressive API
-- Ability to nest styles
-- Clean and focused
-- Auto-detects color support
-- Actively maintained
-- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015
-
-
-## Install
-
-```
-$ npm install --save chalk
-```
-
-
-## Usage
-
-Chalk comes with an easy to use composable API where you just chain and nest the styles you want.
-
-```js
-var chalk = require('chalk');
-
-// style a string
-chalk.blue('Hello world!');
-
-// combine styled and normal strings
-chalk.blue('Hello') + 'World' + chalk.red('!');
-
-// compose multiple styles using the chainable API
-chalk.blue.bgRed.bold('Hello world!');
-
-// pass in multiple arguments
-chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz');
-
-// nest styles
-chalk.red('Hello', chalk.underline.bgBlue('world') + '!');
-
-// nest styles of the same type even (color, underline, background)
-chalk.green(
- 'I am a green line ' +
- chalk.blue.underline.bold('with a blue substring') +
- ' that becomes green again!'
-);
-```
-
-Easily define your own themes.
-
-```js
-var chalk = require('chalk');
-var error = chalk.bold.red;
-console.log(error('Error!'));
-```
-
-Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data).
-
-```js
-var name = 'Sindre';
-console.log(chalk.green('Hello %s'), name);
-//=> Hello Sindre
-```
-
-
-## API
-
-### chalk.`<style>[.<style>...](string, [string...])`
-
-Example: `chalk.red.bold.underline('Hello', 'world');`
-
-Chain [styles](#styles) and call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that `Chalk.red.yellow.green` is equivalent to `Chalk.green`.
-
-Multiple arguments will be separated by space.
-
-### chalk.enabled
-
-Color support is automatically detected, but you can override it by setting the `enabled` property. You should however only do this in your own code as it applies globally to all chalk consumers.
-
-If you need to change this in a reusable module create a new instance:
-
-```js
-var ctx = new chalk.constructor({enabled: false});
-```
-
-### chalk.supportsColor
-
-Detect whether the terminal [supports color](https://github.com/chalk/supports-color). Used internally and handled for you, but exposed for convenience.
-
-Can be overridden by the user with the flags `--color` and `--no-color`. For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`.
-
-### chalk.styles
-
-Exposes the styles as [ANSI escape codes](https://github.com/chalk/ansi-styles).
-
-Generally not useful, but you might need just the `.open` or `.close` escape code if you're mixing externally styled strings with your own.
-
-```js
-var chalk = require('chalk');
-
-console.log(chalk.styles.red);
-//=> {open: '\u001b[31m', close: '\u001b[39m'}
-
-console.log(chalk.styles.red.open + 'Hello' + chalk.styles.red.close);
-```
-
-### chalk.hasColor(string)
-
-Check whether a string [has color](https://github.com/chalk/has-ansi).
-
-### chalk.stripColor(string)
-
-[Strip color](https://github.com/chalk/strip-ansi) from a string.
-
-Can be useful in combination with `.supportsColor` to strip color on externally styled text when it's not supported.
-
-Example:
-
-```js
-var chalk = require('chalk');
-var styledString = getText();
-
-if (!chalk.supportsColor) {
- styledString = chalk.stripColor(styledString);
-}
-```
-
-
-## Styles
-
-### Modifiers
-
-- `reset`
-- `bold`
-- `dim`
-- `italic` *(not widely supported)*
-- `underline`
-- `inverse`
-- `hidden`
-- `strikethrough` *(not widely supported)*
-
-### Colors
-
-- `black`
-- `red`
-- `green`
-- `yellow`
-- `blue` *(on Windows the bright version is used as normal blue is illegible)*
-- `magenta`
-- `cyan`
-- `white`
-- `gray`
-
-### Background colors
-
-- `bgBlack`
-- `bgRed`
-- `bgGreen`
-- `bgYellow`
-- `bgBlue`
-- `bgMagenta`
-- `bgCyan`
-- `bgWhite`
-
-
-## 256-colors
-
-Chalk does not support anything other than the base eight colors, which guarantees it will work on all terminals and systems. Some terminals, specifically `xterm` compliant ones, will support the full range of 8-bit colors. For this the lower level [ansi-256-colors](https://github.com/jbnicolai/ansi-256-colors) package can be used.
-
-
-## Windows
-
-If you're on Windows, do yourself a favor and use [`cmder`](http://bliker.github.io/cmder/) instead of `cmd.exe`.
-
-
-## Related
-
-- [chalk-cli](https://github.com/chalk/chalk-cli) - CLI for this module
-- [ansi-styles](https://github.com/chalk/ansi-styles/) - ANSI escape codes for styling strings in the terminal
-- [supports-color](https://github.com/chalk/supports-color/) - Detect whether a terminal supports color
-- [strip-ansi](https://github.com/chalk/strip-ansi) - Strip ANSI escape codes
-- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
-- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
-- [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/cliui/CHANGELOG.md b/node_modules/cliui/CHANGELOG.md
deleted file mode 100644
index 37f259a..0000000
--- a/node_modules/cliui/CHANGELOG.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-# [5.0.0](https://github.com/yargs/cliui/compare/v4.1.0...v5.0.0) (2019-04-10)
-
-
-### Bug Fixes
-
-* Update wrap-ansi to fix compatibility with latest versions of chalk. ([#60](https://github.com/yargs/cliui/issues/60)) ([7bf79ae](https://github.com/yargs/cliui/commit/7bf79ae))
-
-
-### BREAKING CHANGES
-
-* Drop support for node < 6.
-
-
-
-<a name="4.1.0"></a>
-# [4.1.0](https://github.com/yargs/cliui/compare/v4.0.0...v4.1.0) (2018-04-23)
-
-
-### Features
-
-* add resetOutput method ([#57](https://github.com/yargs/cliui/issues/57)) ([7246902](https://github.com/yargs/cliui/commit/7246902))
-
-
-
-<a name="4.0.0"></a>
-# [4.0.0](https://github.com/yargs/cliui/compare/v3.2.0...v4.0.0) (2017-12-18)
-
-
-### Bug Fixes
-
-* downgrades strip-ansi to version 3.0.1 ([#54](https://github.com/yargs/cliui/issues/54)) ([5764c46](https://github.com/yargs/cliui/commit/5764c46))
-* set env variable FORCE_COLOR. ([#56](https://github.com/yargs/cliui/issues/56)) ([7350e36](https://github.com/yargs/cliui/commit/7350e36))
-
-
-### Chores
-
-* drop support for node < 4 ([#53](https://github.com/yargs/cliui/issues/53)) ([b105376](https://github.com/yargs/cliui/commit/b105376))
-
-
-### Features
-
-* add fallback for window width ([#45](https://github.com/yargs/cliui/issues/45)) ([d064922](https://github.com/yargs/cliui/commit/d064922))
-
-
-### BREAKING CHANGES
-
-* officially drop support for Node < 4
-
-
-
-<a name="3.2.0"></a>
-# [3.2.0](https://github.com/yargs/cliui/compare/v3.1.2...v3.2.0) (2016-04-11)
-
-
-### Bug Fixes
-
-* reduces tarball size ([acc6c33](https://github.com/yargs/cliui/commit/acc6c33))
-
-### Features
-
-* adds standard-version for release management ([ff84e32](https://github.com/yargs/cliui/commit/ff84e32))
diff --git a/node_modules/cliui/LICENSE.txt b/node_modules/cliui/LICENSE.txt
deleted file mode 100644
index c7e2747..0000000
--- a/node_modules/cliui/LICENSE.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2015, Contributors
-
-Permission to use, copy, modify, and/or distribute this software
-for any purpose with or without fee is hereby granted, provided
-that the above copyright notice and this permission notice
-appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
-LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
-OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/cliui/README.md b/node_modules/cliui/README.md
deleted file mode 100644
index deacfa0..0000000
--- a/node_modules/cliui/README.md
+++ /dev/null
@@ -1,115 +0,0 @@
-# cliui
-
-[![Build Status](https://travis-ci.org/yargs/cliui.svg)](https://travis-ci.org/yargs/cliui)
-[![Coverage Status](https://coveralls.io/repos/yargs/cliui/badge.svg?branch=)](https://coveralls.io/r/yargs/cliui?branch=)
-[![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui)
-[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
-
-easily create complex multi-column command-line-interfaces.
-
-## Example
-
-```js
-var ui = require('cliui')()
-
-ui.div('Usage: $0 [command] [options]')
-
-ui.div({
- text: 'Options:',
- padding: [2, 0, 2, 0]
-})
-
-ui.div(
- {
- text: "-f, --file",
- width: 20,
- padding: [0, 4, 0, 4]
- },
- {
- text: "the file to load." +
- chalk.green("(if this description is long it wraps).")
- ,
- width: 20
- },
- {
- text: chalk.red("[required]"),
- align: 'right'
- }
-)
-
-console.log(ui.toString())
-```
-
-<img width="500" src="screenshot.png">
-
-## Layout DSL
-
-cliui exposes a simple layout DSL:
-
-If you create a single `ui.div`, passing a string rather than an
-object:
-
-* `\n`: characters will be interpreted as new rows.
-* `\t`: characters will be interpreted as new columns.
-* `\s`: characters will be interpreted as padding.
-
-**as an example...**
-
-```js
-var ui = require('./')({
- width: 60
-})
-
-ui.div(
- 'Usage: node ./bin/foo.js\n' +
- ' <regex>\t provide a regex\n' +
- ' <glob>\t provide a glob\t [required]'
-)
-
-console.log(ui.toString())
-```
-
-**will output:**
-
-```shell
-Usage: node ./bin/foo.js
- <regex> provide a regex
- <glob> provide a glob [required]
-```
-
-## Methods
-
-```js
-cliui = require('cliui')
-```
-
-### cliui({width: integer})
-
-Specify the maximum width of the UI being generated.
-If no width is provided, cliui will try to get the current window's width and use it, and if that doesn't work, width will be set to `80`.
-
-### cliui({wrap: boolean})
-
-Enable or disable the wrapping of text in a column.
-
-### cliui.div(column, column, column)
-
-Create a row with any number of columns, a column
-can either be a string, or an object with the following
-options:
-
-* **text:** some text to place in the column.
-* **width:** the width of a column.
-* **align:** alignment, `right` or `center`.
-* **padding:** `[top, right, bottom, left]`.
-* **border:** should a border be placed around the div?
-
-### cliui.span(column, column, column)
-
-Similar to `div`, except the next row will be appended without
-a new line being created.
-
-### cliui.resetOutput()
-
-Resets the UI elements of the current cliui instance, maintaining the values
-set for `width` and `wrap`.
diff --git a/node_modules/cliui/index.js b/node_modules/cliui/index.js
deleted file mode 100644
index b42d982..0000000
--- a/node_modules/cliui/index.js
+++ /dev/null
@@ -1,324 +0,0 @@
-var stringWidth = require('string-width')
-var stripAnsi = require('strip-ansi')
-var wrap = require('wrap-ansi')
-var align = {
- right: alignRight,
- center: alignCenter
-}
-var top = 0
-var right = 1
-var bottom = 2
-var left = 3
-
-function UI (opts) {
- this.width = opts.width
- this.wrap = opts.wrap
- this.rows = []
-}
-
-UI.prototype.span = function () {
- var cols = this.div.apply(this, arguments)
- cols.span = true
-}
-
-UI.prototype.resetOutput = function () {
- this.rows = []
-}
-
-UI.prototype.div = function () {
- if (arguments.length === 0) this.div('')
- if (this.wrap && this._shouldApplyLayoutDSL.apply(this, arguments)) {
- return this._applyLayoutDSL(arguments[0])
- }
-
- var cols = []
-
- for (var i = 0, arg; (arg = arguments[i]) !== undefined; i++) {
- if (typeof arg === 'string') cols.push(this._colFromString(arg))
- else cols.push(arg)
- }
-
- this.rows.push(cols)
- return cols
-}
-
-UI.prototype._shouldApplyLayoutDSL = function () {
- return arguments.length === 1 && typeof arguments[0] === 'string' &&
- /[\t\n]/.test(arguments[0])
-}
-
-UI.prototype._applyLayoutDSL = function (str) {
- var _this = this
- var rows = str.split('\n')
- var leftColumnWidth = 0
-
- // simple heuristic for layout, make sure the
- // second column lines up along the left-hand.
- // don't allow the first column to take up more
- // than 50% of the screen.
- rows.forEach(function (row) {
- var columns = row.split('\t')
- if (columns.length > 1 && stringWidth(columns[0]) > leftColumnWidth) {
- leftColumnWidth = Math.min(
- Math.floor(_this.width * 0.5),
- stringWidth(columns[0])
- )
- }
- })
-
- // generate a table:
- // replacing ' ' with padding calculations.
- // using the algorithmically generated width.
- rows.forEach(function (row) {
- var columns = row.split('\t')
- _this.div.apply(_this, columns.map(function (r, i) {
- return {
- text: r.trim(),
- padding: _this._measurePadding(r),
- width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined
- }
- }))
- })
-
- return this.rows[this.rows.length - 1]
-}
-
-UI.prototype._colFromString = function (str) {
- return {
- text: str,
- padding: this._measurePadding(str)
- }
-}
-
-UI.prototype._measurePadding = function (str) {
- // measure padding without ansi escape codes
- var noAnsi = stripAnsi(str)
- return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length]
-}
-
-UI.prototype.toString = function () {
- var _this = this
- var lines = []
-
- _this.rows.forEach(function (row, i) {
- _this.rowToString(row, lines)
- })
-
- // don't display any lines with the
- // hidden flag set.
- lines = lines.filter(function (line) {
- return !line.hidden
- })
-
- return lines.map(function (line) {
- return line.text
- }).join('\n')
-}
-
-UI.prototype.rowToString = function (row, lines) {
- var _this = this
- var padding
- var rrows = this._rasterize(row)
- var str = ''
- var ts
- var width
- var wrapWidth
-
- rrows.forEach(function (rrow, r) {
- str = ''
- rrow.forEach(function (col, c) {
- ts = '' // temporary string used during alignment/padding.
- width = row[c].width // the width with padding.
- wrapWidth = _this._negatePadding(row[c]) // the width without padding.
-
- ts += col
-
- for (var i = 0; i < wrapWidth - stringWidth(col); i++) {
- ts += ' '
- }
-
- // align the string within its column.
- if (row[c].align && row[c].align !== 'left' && _this.wrap) {
- ts = align[row[c].align](ts, wrapWidth)
- if (stringWidth(ts) < wrapWidth) ts += new Array(width - stringWidth(ts)).join(' ')
- }
-
- // apply border and padding to string.
- padding = row[c].padding || [0, 0, 0, 0]
- if (padding[left]) str += new Array(padding[left] + 1).join(' ')
- str += addBorder(row[c], ts, '| ')
- str += ts
- str += addBorder(row[c], ts, ' |')
- if (padding[right]) str += new Array(padding[right] + 1).join(' ')
-
- // if prior row is span, try to render the
- // current row on the prior line.
- if (r === 0 && lines.length > 0) {
- str = _this._renderInline(str, lines[lines.length - 1])
- }
- })
-
- // remove trailing whitespace.
- lines.push({
- text: str.replace(/ +$/, ''),
- span: row.span
- })
- })
-
- return lines
-}
-
-function addBorder (col, ts, style) {
- if (col.border) {
- if (/[.']-+[.']/.test(ts)) return ''
- else if (ts.trim().length) return style
- else return ' '
- }
- return ''
-}
-
-// if the full 'source' can render in
-// the target line, do so.
-UI.prototype._renderInline = function (source, previousLine) {
- var leadingWhitespace = source.match(/^ */)[0].length
- var target = previousLine.text
- var targetTextWidth = stringWidth(target.trimRight())
-
- if (!previousLine.span) return source
-
- // if we're not applying wrapping logic,
- // just always append to the span.
- if (!this.wrap) {
- previousLine.hidden = true
- return target + source
- }
-
- if (leadingWhitespace < targetTextWidth) return source
-
- previousLine.hidden = true
-
- return target.trimRight() + new Array(leadingWhitespace - targetTextWidth + 1).join(' ') + source.trimLeft()
-}
-
-UI.prototype._rasterize = function (row) {
- var _this = this
- var i
- var rrow
- var rrows = []
- var widths = this._columnWidths(row)
- var wrapped
-
- // word wrap all columns, and create
- // a data-structure that is easy to rasterize.
- row.forEach(function (col, c) {
- // leave room for left and right padding.
- col.width = widths[c]
- if (_this.wrap) wrapped = wrap(col.text, _this._negatePadding(col), { hard: true }).split('\n')
- else wrapped = col.text.split('\n')
-
- if (col.border) {
- wrapped.unshift('.' + new Array(_this._negatePadding(col) + 3).join('-') + '.')
- wrapped.push("'" + new Array(_this._negatePadding(col) + 3).join('-') + "'")
- }
-
- // add top and bottom padding.
- if (col.padding) {
- for (i = 0; i < (col.padding[top] || 0); i++) wrapped.unshift('')
- for (i = 0; i < (col.padding[bottom] || 0); i++) wrapped.push('')
- }
-
- wrapped.forEach(function (str, r) {
- if (!rrows[r]) rrows.push([])
-
- rrow = rrows[r]
-
- for (var i = 0; i < c; i++) {
- if (rrow[i] === undefined) rrow.push('')
- }
- rrow.push(str)
- })
- })
-
- return rrows
-}
-
-UI.prototype._negatePadding = function (col) {
- var wrapWidth = col.width
- if (col.padding) wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0)
- if (col.border) wrapWidth -= 4
- return wrapWidth
-}
-
-UI.prototype._columnWidths = function (row) {
- var _this = this
- var widths = []
- var unset = row.length
- var unsetWidth
- var remainingWidth = this.width
-
- // column widths can be set in config.
- row.forEach(function (col, i) {
- if (col.width) {
- unset--
- widths[i] = col.width
- remainingWidth -= col.width
- } else {
- widths[i] = undefined
- }
- })
-
- // any unset widths should be calculated.
- if (unset) unsetWidth = Math.floor(remainingWidth / unset)
- widths.forEach(function (w, i) {
- if (!_this.wrap) widths[i] = row[i].width || stringWidth(row[i].text)
- else if (w === undefined) widths[i] = Math.max(unsetWidth, _minWidth(row[i]))
- })
-
- return widths
-}
-
-// calculates the minimum width of
-// a column, based on padding preferences.
-function _minWidth (col) {
- var padding = col.padding || []
- var minWidth = 1 + (padding[left] || 0) + (padding[right] || 0)
- if (col.border) minWidth += 4
- return minWidth
-}
-
-function getWindowWidth () {
- if (typeof process === 'object' && process.stdout && process.stdout.columns) return process.stdout.columns
-}
-
-function alignRight (str, width) {
- str = str.trim()
- var padding = ''
- var strWidth = stringWidth(str)
-
- if (strWidth < width) {
- padding = new Array(width - strWidth + 1).join(' ')
- }
-
- return padding + str
-}
-
-function alignCenter (str, width) {
- str = str.trim()
- var padding = ''
- var strWidth = stringWidth(str.trim())
-
- if (strWidth < width) {
- padding = new Array(parseInt((width - strWidth) / 2, 10) + 1).join(' ')
- }
-
- return padding + str
-}
-
-module.exports = function (opts) {
- opts = opts || {}
-
- return new UI({
- width: (opts || {}).width || getWindowWidth() || 80,
- wrap: typeof opts.wrap === 'boolean' ? opts.wrap : true
- })
-}
diff --git a/node_modules/cliui/node_modules/ansi-regex/index.js b/node_modules/cliui/node_modules/ansi-regex/index.js
deleted file mode 100644
index c254480..0000000
--- a/node_modules/cliui/node_modules/ansi-regex/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = options => {
- options = Object.assign({
- onlyFirst: false
- }, options);
-
- const pattern = [
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
- ].join('|');
-
- return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
-};
diff --git a/node_modules/cliui/node_modules/ansi-regex/license b/node_modules/cliui/node_modules/ansi-regex/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/cliui/node_modules/ansi-regex/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/cliui/node_modules/ansi-regex/package.json b/node_modules/cliui/node_modules/ansi-regex/package.json
deleted file mode 100644
index 8a3a685..0000000
--- a/node_modules/cliui/node_modules/ansi-regex/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "_from": "ansi-regex@^4.1.0",
- "_id": "ansi-regex@4.1.0",
- "_inBundle": false,
- "_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
- "_location": "/cliui/ansi-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ansi-regex@^4.1.0",
- "name": "ansi-regex",
- "escapedName": "ansi-regex",
- "rawSpec": "^4.1.0",
- "saveSpec": null,
- "fetchSpec": "^4.1.0"
- },
- "_requiredBy": [
- "/cliui/strip-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "_shasum": "8b9f8f08cf1acb843756a839ca8c7e3168c51997",
- "_spec": "ansi-regex@^4.1.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/cliui/node_modules/strip-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-regex/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Regular expression for matching ANSI escape codes",
- "devDependencies": {
- "ava": "^0.25.0",
- "xo": "^0.23.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/ansi-regex#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "command-line",
- "text",
- "regex",
- "regexp",
- "re",
- "match",
- "test",
- "find",
- "pattern"
- ],
- "license": "MIT",
- "name": "ansi-regex",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-regex.git"
- },
- "scripts": {
- "test": "xo && ava",
- "view-supported": "node fixtures/view-codes.js"
- },
- "version": "4.1.0"
-}
diff --git a/node_modules/cliui/node_modules/ansi-regex/readme.md b/node_modules/cliui/node_modules/ansi-regex/readme.md
deleted file mode 100644
index d19c446..0000000
--- a/node_modules/cliui/node_modules/ansi-regex/readme.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)
-
-> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-
-## Install
-
-```
-$ npm install ansi-regex
-```
-
-
-## Usage
-
-```js
-const ansiRegex = require('ansi-regex');
-
-ansiRegex().test('\u001B[4mcake\u001B[0m');
-//=> true
-
-ansiRegex().test('cake');
-//=> false
-
-'\u001B[4mcake\u001B[0m'.match(ansiRegex());
-//=> ['\u001B[4m', '\u001B[0m']
-
-'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
-//=> ['\u001B[4m']
-
-'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
-//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
-```
-
-
-## API
-
-### ansiRegex([options])
-
-Returns a regex for matching ANSI escape codes.
-
-#### options
-
-##### onlyFirst
-
-Type: `boolean`<br>
-Default: `false` *(Matches any ANSI escape codes in a string)*
-
-Match only the first ANSI escape.
-
-
-## FAQ
-
-### Why do you test for codes not in the ECMA 48 standard?
-
-Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
-
-On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-
-
-## License
-
-MIT
diff --git a/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js b/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js
deleted file mode 100644
index d506327..0000000
--- a/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-/* eslint-disable yoda */
-module.exports = x => {
- if (Number.isNaN(x)) {
- return false;
- }
-
- // code points are derived from:
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
- if (
- x >= 0x1100 && (
- x <= 0x115f || // Hangul Jamo
- x === 0x2329 || // LEFT-POINTING ANGLE BRACKET
- x === 0x232a || // RIGHT-POINTING ANGLE BRACKET
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
- (0x2e80 <= x && x <= 0x3247 && x !== 0x303f) ||
- // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
- (0x3250 <= x && x <= 0x4dbf) ||
- // CJK Unified Ideographs .. Yi Radicals
- (0x4e00 <= x && x <= 0xa4c6) ||
- // Hangul Jamo Extended-A
- (0xa960 <= x && x <= 0xa97c) ||
- // Hangul Syllables
- (0xac00 <= x && x <= 0xd7a3) ||
- // CJK Compatibility Ideographs
- (0xf900 <= x && x <= 0xfaff) ||
- // Vertical Forms
- (0xfe10 <= x && x <= 0xfe19) ||
- // CJK Compatibility Forms .. Small Form Variants
- (0xfe30 <= x && x <= 0xfe6b) ||
- // Halfwidth and Fullwidth Forms
- (0xff01 <= x && x <= 0xff60) ||
- (0xffe0 <= x && x <= 0xffe6) ||
- // Kana Supplement
- (0x1b000 <= x && x <= 0x1b001) ||
- // Enclosed Ideographic Supplement
- (0x1f200 <= x && x <= 0x1f251) ||
- // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
- (0x20000 <= x && x <= 0x3fffd)
- )
- ) {
- return true;
- }
-
- return false;
-};
diff --git a/node_modules/cliui/node_modules/is-fullwidth-code-point/license b/node_modules/cliui/node_modules/is-fullwidth-code-point/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/cliui/node_modules/is-fullwidth-code-point/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json b/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json
deleted file mode 100644
index bcf38fa..0000000
--- a/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "is-fullwidth-code-point@^2.0.0",
- "_id": "is-fullwidth-code-point@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "_location": "/cliui/is-fullwidth-code-point",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-fullwidth-code-point@^2.0.0",
- "name": "is-fullwidth-code-point",
- "escapedName": "is-fullwidth-code-point",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/cliui/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "_shasum": "a3b30a5c4f199183167aaab93beefae3ddfb654f",
- "_spec": "is-fullwidth-code-point@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/cliui/node_modules/string-width",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/is-fullwidth-code-point/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/is-fullwidth-code-point#readme",
- "keywords": [
- "fullwidth",
- "full-width",
- "full",
- "width",
- "unicode",
- "character",
- "char",
- "string",
- "str",
- "codepoint",
- "code",
- "point",
- "is",
- "detect",
- "check"
- ],
- "license": "MIT",
- "name": "is-fullwidth-code-point",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/is-fullwidth-code-point.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "2.0.0",
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md b/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md
deleted file mode 100644
index 093b028..0000000
--- a/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
-
-> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
-
-
-## Install
-
-```
-$ npm install --save is-fullwidth-code-point
-```
-
-
-## Usage
-
-```js
-const isFullwidthCodePoint = require('is-fullwidth-code-point');
-
-isFullwidthCodePoint('谢'.codePointAt());
-//=> true
-
-isFullwidthCodePoint('a'.codePointAt());
-//=> false
-```
-
-
-## API
-
-### isFullwidthCodePoint(input)
-
-#### input
-
-Type: `number`
-
-[Code point](https://en.wikipedia.org/wiki/Code_point) of a character.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/cliui/node_modules/string-width/index.js b/node_modules/cliui/node_modules/string-width/index.js
deleted file mode 100644
index 33c9d6c..0000000
--- a/node_modules/cliui/node_modules/string-width/index.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-const stripAnsi = require('strip-ansi');
-const isFullwidthCodePoint = require('is-fullwidth-code-point');
-const emojiRegex = require('emoji-regex')();
-
-module.exports = input => {
- input = input.replace(emojiRegex, ' ');
-
- if (typeof input !== 'string' || input.length === 0) {
- return 0;
- }
-
- input = stripAnsi(input);
-
- let width = 0;
-
- for (let i = 0; i < input.length; i++) {
- const code = input.codePointAt(i);
-
- // Ignore control characters
- if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
- continue;
- }
-
- // Ignore combining characters
- if (code >= 0x300 && code <= 0x36F) {
- continue;
- }
-
- // Surrogates
- if (code > 0xFFFF) {
- i++;
- }
-
- width += isFullwidthCodePoint(code) ? 2 : 1;
- }
-
- return width;
-};
diff --git a/node_modules/cliui/node_modules/string-width/license b/node_modules/cliui/node_modules/string-width/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/cliui/node_modules/string-width/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/cliui/node_modules/string-width/package.json b/node_modules/cliui/node_modules/string-width/package.json
deleted file mode 100644
index 190b18b..0000000
--- a/node_modules/cliui/node_modules/string-width/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "string-width@^3.1.0",
- "_id": "string-width@3.1.0",
- "_inBundle": false,
- "_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "_location": "/cliui/string-width",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "string-width@^3.1.0",
- "name": "string-width",
- "escapedName": "string-width",
- "rawSpec": "^3.1.0",
- "saveSpec": null,
- "fetchSpec": "^3.1.0"
- },
- "_requiredBy": [
- "/cliui"
- ],
- "_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "_shasum": "22767be21b62af1081574306f69ac51b62203961",
- "_spec": "string-width@^3.1.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/cliui",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/string-width/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- },
- "deprecated": false,
- "description": "Get the visual width of a string - the number of columns required to display it",
- "devDependencies": {
- "ava": "^1.0.1",
- "xo": "^0.23.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/string-width#readme",
- "keywords": [
- "string",
- "str",
- "character",
- "char",
- "unicode",
- "width",
- "visual",
- "column",
- "columns",
- "fullwidth",
- "full-width",
- "full",
- "ansi",
- "escape",
- "codes",
- "cli",
- "command-line",
- "terminal",
- "console",
- "cjk",
- "chinese",
- "japanese",
- "korean",
- "fixed-width"
- ],
- "license": "MIT",
- "name": "string-width",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/string-width.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.1.0"
-}
diff --git a/node_modules/cliui/node_modules/string-width/readme.md b/node_modules/cliui/node_modules/string-width/readme.md
deleted file mode 100644
index d39d95f..0000000
--- a/node_modules/cliui/node_modules/string-width/readme.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width)
-
-> Get the visual width of a string - the number of columns required to display it
-
-Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
-
-Useful to be able to measure the actual width of command-line output.
-
-
-## Install
-
-```
-$ npm install string-width
-```
-
-
-## Usage
-
-```js
-const stringWidth = require('string-width');
-
-stringWidth('古');
-//=> 2
-
-stringWidth('\u001b[1m古\u001b[22m');
-//=> 2
-
-stringWidth('a');
-//=> 1
-
-stringWidth('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-// => 5
-```
-
-
-## Related
-
-- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module
-- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string
-- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/cliui/node_modules/strip-ansi/index.d.ts b/node_modules/cliui/node_modules/strip-ansi/index.d.ts
deleted file mode 100644
index 44e954d..0000000
--- a/node_modules/cliui/node_modules/strip-ansi/index.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
-Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
-
-@example
-```
-import stripAnsi from 'strip-ansi';
-
-stripAnsi('\u001B[4mUnicorn\u001B[0m');
-//=> 'Unicorn'
-
-stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-//=> 'Click'
-```
-*/
-export default function stripAnsi(string: string): string;
diff --git a/node_modules/cliui/node_modules/strip-ansi/index.js b/node_modules/cliui/node_modules/strip-ansi/index.js
deleted file mode 100644
index 9788c96..0000000
--- a/node_modules/cliui/node_modules/strip-ansi/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-const ansiRegex = require('ansi-regex');
-
-const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
-
-module.exports = stripAnsi;
-module.exports.default = stripAnsi;
diff --git a/node_modules/cliui/node_modules/strip-ansi/license b/node_modules/cliui/node_modules/strip-ansi/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/cliui/node_modules/strip-ansi/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/cliui/node_modules/strip-ansi/package.json b/node_modules/cliui/node_modules/strip-ansi/package.json
deleted file mode 100644
index 3c9a541..0000000
--- a/node_modules/cliui/node_modules/strip-ansi/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_from": "strip-ansi@^5.2.0",
- "_id": "strip-ansi@5.2.0",
- "_inBundle": false,
- "_integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "_location": "/cliui/strip-ansi",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "strip-ansi@^5.2.0",
- "name": "strip-ansi",
- "escapedName": "strip-ansi",
- "rawSpec": "^5.2.0",
- "saveSpec": null,
- "fetchSpec": "^5.2.0"
- },
- "_requiredBy": [
- "/cliui",
- "/cliui/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "_shasum": "8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae",
- "_spec": "strip-ansi@^5.2.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/cliui",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/strip-ansi/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ansi-regex": "^4.1.0"
- },
- "deprecated": false,
- "description": "Strip ANSI escape codes from a string",
- "devDependencies": {
- "ava": "^1.3.1",
- "tsd-check": "^0.5.0",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "homepage": "https://github.com/chalk/strip-ansi#readme",
- "keywords": [
- "strip",
- "trim",
- "remove",
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "name": "strip-ansi",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/strip-ansi.git"
- },
- "scripts": {
- "test": "xo && ava && tsd-check"
- },
- "version": "5.2.0"
-}
diff --git a/node_modules/cliui/node_modules/strip-ansi/readme.md b/node_modules/cliui/node_modules/strip-ansi/readme.md
deleted file mode 100644
index 8681fe8..0000000
--- a/node_modules/cliui/node_modules/strip-ansi/readme.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
-
-> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for 'strip-ansi' with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-## Install
-
-```
-$ npm install strip-ansi
-```
-
-
-## Usage
-
-```js
-const stripAnsi = require('strip-ansi');
-
-stripAnsi('\u001B[4mUnicorn\u001B[0m');
-//=> 'Unicorn'
-
-stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-//=> 'Click'
-```
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## Related
-
-- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
-- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
-- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
-- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
-- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-
-
-## License
-
-MIT
diff --git a/node_modules/cliui/package.json b/node_modules/cliui/package.json
deleted file mode 100644
index a04a9e5..0000000
--- a/node_modules/cliui/package.json
+++ /dev/null
@@ -1,101 +0,0 @@
-{
- "_from": "cliui@^5.0.0",
- "_id": "cliui@5.0.0",
- "_inBundle": false,
- "_integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
- "_location": "/cliui",
- "_phantomChildren": {
- "emoji-regex": "7.0.3"
- },
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "cliui@^5.0.0",
- "name": "cliui",
- "escapedName": "cliui",
- "rawSpec": "^5.0.0",
- "saveSpec": null,
- "fetchSpec": "^5.0.0"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
- "_shasum": "deefcfdb2e800784aa34f46fa08e06851c7bbbc5",
- "_spec": "cliui@^5.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "Ben Coe",
- "email": "ben@npmjs.com"
- },
- "bugs": {
- "url": "https://github.com/yargs/cliui/issues"
- },
- "bundleDependencies": false,
- "config": {
- "blanket": {
- "pattern": [
- "index.js"
- ],
- "data-cover-never": [
- "node_modules",
- "test"
- ],
- "output-reporter": "spec"
- }
- },
- "dependencies": {
- "string-width": "^3.1.0",
- "strip-ansi": "^5.2.0",
- "wrap-ansi": "^5.1.0"
- },
- "deprecated": false,
- "description": "easily create complex multi-column command-line-interfaces",
- "devDependencies": {
- "chai": "^4.2.0",
- "chalk": "^2.4.2",
- "coveralls": "^3.0.3",
- "mocha": "^6.0.2",
- "nyc": "^13.3.0",
- "standard": "^12.0.1",
- "standard-version": "^5.0.2"
- },
- "engine": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/yargs/cliui#readme",
- "keywords": [
- "cli",
- "command-line",
- "layout",
- "design",
- "console",
- "wrap",
- "table"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "cliui",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/yargs/cliui.git"
- },
- "scripts": {
- "coverage": "nyc --reporter=text-lcov mocha | coveralls",
- "pretest": "standard",
- "release": "standard-version",
- "test": "nyc mocha"
- },
- "standard": {
- "ignore": [
- "**/example/**"
- ],
- "globals": [
- "it"
- ]
- },
- "version": "5.0.0"
-}
diff --git a/node_modules/code-point-at/index.js b/node_modules/code-point-at/index.js
deleted file mode 100644
index 0432fe6..0000000
--- a/node_modules/code-point-at/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/* eslint-disable babel/new-cap, xo/throw-new-error */
-'use strict';
-module.exports = function (str, pos) {
- if (str === null || str === undefined) {
- throw TypeError();
- }
-
- str = String(str);
-
- var size = str.length;
- var i = pos ? Number(pos) : 0;
-
- if (Number.isNaN(i)) {
- i = 0;
- }
-
- if (i < 0 || i >= size) {
- return undefined;
- }
-
- var first = str.charCodeAt(i);
-
- if (first >= 0xD800 && first <= 0xDBFF && size > i + 1) {
- var second = str.charCodeAt(i + 1);
-
- if (second >= 0xDC00 && second <= 0xDFFF) {
- return ((first - 0xD800) * 0x400) + second - 0xDC00 + 0x10000;
- }
- }
-
- return first;
-};
diff --git a/node_modules/code-point-at/license b/node_modules/code-point-at/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/code-point-at/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/code-point-at/package.json b/node_modules/code-point-at/package.json
deleted file mode 100644
index 6621fca..0000000
--- a/node_modules/code-point-at/package.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "_from": "code-point-at@^1.0.0",
- "_id": "code-point-at@1.1.0",
- "_inBundle": false,
- "_integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
- "_location": "/code-point-at",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "code-point-at@^1.0.0",
- "name": "code-point-at",
- "escapedName": "code-point-at",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
- "_shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77",
- "_spec": "code-point-at@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/string-width",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/code-point-at/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "ES2015 `String#codePointAt()` ponyfill",
- "devDependencies": {
- "ava": "*",
- "xo": "^0.16.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/code-point-at#readme",
- "keywords": [
- "es2015",
- "ponyfill",
- "polyfill",
- "shim",
- "string",
- "str",
- "code",
- "point",
- "at",
- "codepoint",
- "unicode"
- ],
- "license": "MIT",
- "name": "code-point-at",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/code-point-at.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.1.0"
-}
diff --git a/node_modules/code-point-at/readme.md b/node_modules/code-point-at/readme.md
deleted file mode 100644
index 4c97730..0000000
--- a/node_modules/code-point-at/readme.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# code-point-at [![Build Status](https://travis-ci.org/sindresorhus/code-point-at.svg?branch=master)](https://travis-ci.org/sindresorhus/code-point-at)
-
-> ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) [ponyfill](https://ponyfill.com)
-
-
-## Install
-
-```
-$ npm install --save code-point-at
-```
-
-
-## Usage
-
-```js
-var codePointAt = require('code-point-at');
-
-codePointAt('🐴');
-//=> 128052
-
-codePointAt('abc', 2);
-//=> 99
-```
-
-## API
-
-### codePointAt(input, [position])
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/color-convert/CHANGELOG.md b/node_modules/color-convert/CHANGELOG.md
deleted file mode 100644
index 0a7bce4..0000000
--- a/node_modules/color-convert/CHANGELOG.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# 1.0.0 - 2016-01-07
-
-- Removed: unused speed test
-- Added: Automatic routing between previously unsupported conversions
-([#27](https://github.com/Qix-/color-convert/pull/27))
-- Removed: `xxx2xxx()` and `xxx2xxxRaw()` functions
-([#27](https://github.com/Qix-/color-convert/pull/27))
-- Removed: `convert()` class
-([#27](https://github.com/Qix-/color-convert/pull/27))
-- Changed: all functions to lookup dictionary
-([#27](https://github.com/Qix-/color-convert/pull/27))
-- Changed: `ansi` to `ansi256`
-([#27](https://github.com/Qix-/color-convert/pull/27))
-- Fixed: argument grouping for functions requiring only one argument
-([#27](https://github.com/Qix-/color-convert/pull/27))
-
-# 0.6.0 - 2015-07-23
-
-- Added: methods to handle
-[ANSI](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors) 16/256 colors:
- - rgb2ansi16
- - rgb2ansi
- - hsl2ansi16
- - hsl2ansi
- - hsv2ansi16
- - hsv2ansi
- - hwb2ansi16
- - hwb2ansi
- - cmyk2ansi16
- - cmyk2ansi
- - keyword2ansi16
- - keyword2ansi
- - ansi162rgb
- - ansi162hsl
- - ansi162hsv
- - ansi162hwb
- - ansi162cmyk
- - ansi162keyword
- - ansi2rgb
- - ansi2hsl
- - ansi2hsv
- - ansi2hwb
- - ansi2cmyk
- - ansi2keyword
-([#18](https://github.com/harthur/color-convert/pull/18))
-
-# 0.5.3 - 2015-06-02
-
-- Fixed: hsl2hsv does not return `NaN` anymore when using `[0,0,0]`
-([#15](https://github.com/harthur/color-convert/issues/15))
-
----
-
-Check out commit logs for older releases
diff --git a/node_modules/color-convert/LICENSE b/node_modules/color-convert/LICENSE
deleted file mode 100644
index 5b4c386..0000000
--- a/node_modules/color-convert/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright (c) 2011-2016 Heather Arthur <fayearthur@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
diff --git a/node_modules/color-convert/README.md b/node_modules/color-convert/README.md
deleted file mode 100644
index d4b08fc..0000000
--- a/node_modules/color-convert/README.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# color-convert
-
-[![Build Status](https://travis-ci.org/Qix-/color-convert.svg?branch=master)](https://travis-ci.org/Qix-/color-convert)
-
-Color-convert is a color conversion library for JavaScript and node.
-It converts all ways between `rgb`, `hsl`, `hsv`, `hwb`, `cmyk`, `ansi`, `ansi16`, `hex` strings, and CSS `keyword`s (will round to closest):
-
-```js
-var convert = require('color-convert');
-
-convert.rgb.hsl(140, 200, 100); // [96, 48, 59]
-convert.keyword.rgb('blue'); // [0, 0, 255]
-
-var rgbChannels = convert.rgb.channels; // 3
-var cmykChannels = convert.cmyk.channels; // 4
-var ansiChannels = convert.ansi16.channels; // 1
-```
-
-# Install
-
-```console
-$ npm install color-convert
-```
-
-# API
-
-Simply get the property of the _from_ and _to_ conversion that you're looking for.
-
-All functions have a rounded and unrounded variant. By default, return values are rounded. To get the unrounded (raw) results, simply tack on `.raw` to the function.
-
-All 'from' functions have a hidden property called `.channels` that indicates the number of channels the function expects (not including alpha).
-
-```js
-var convert = require('color-convert');
-
-// Hex to LAB
-convert.hex.lab('DEADBF'); // [ 76, 21, -2 ]
-convert.hex.lab.raw('DEADBF'); // [ 75.56213190997677, 20.653827952644754, -2.290532499330533 ]
-
-// RGB to CMYK
-convert.rgb.cmyk(167, 255, 4); // [ 35, 0, 98, 0 ]
-convert.rgb.cmyk.raw(167, 255, 4); // [ 34.509803921568626, 0, 98.43137254901961, 0 ]
-```
-
-### Arrays
-All functions that accept multiple arguments also support passing an array.
-
-Note that this does **not** apply to functions that convert from a color that only requires one value (e.g. `keyword`, `ansi256`, `hex`, etc.)
-
-```js
-var convert = require('color-convert');
-
-convert.rgb.hex(123, 45, 67); // '7B2D43'
-convert.rgb.hex([123, 45, 67]); // '7B2D43'
-```
-
-## Routing
-
-Conversions that don't have an _explicitly_ defined conversion (in [conversions.js](conversions.js)), but can be converted by means of sub-conversions (e.g. XYZ -> **RGB** -> CMYK), are automatically routed together. This allows just about any color model supported by `color-convert` to be converted to any other model, so long as a sub-conversion path exists. This is also true for conversions requiring more than one step in between (e.g. LCH -> **LAB** -> **XYZ** -> **RGB** -> Hex).
-
-Keep in mind that extensive conversions _may_ result in a loss of precision, and exist only to be complete. For a list of "direct" (single-step) conversions, see [conversions.js](conversions.js).
-
-# Contribute
-
-If there is a new model you would like to support, or want to add a direct conversion between two existing models, please send us a pull request.
-
-# License
-Copyright &copy; 2011-2016, Heather Arthur and Josh Junon. Licensed under the [MIT License](LICENSE).
diff --git a/node_modules/color-convert/conversions.js b/node_modules/color-convert/conversions.js
deleted file mode 100644
index 3217200..0000000
--- a/node_modules/color-convert/conversions.js
+++ /dev/null
@@ -1,868 +0,0 @@
-/* MIT license */
-var cssKeywords = require('color-name');
-
-// NOTE: conversions should only return primitive values (i.e. arrays, or
-// values that give correct `typeof` results).
-// do not use box values types (i.e. Number(), String(), etc.)
-
-var reverseKeywords = {};
-for (var key in cssKeywords) {
- if (cssKeywords.hasOwnProperty(key)) {
- reverseKeywords[cssKeywords[key]] = key;
- }
-}
-
-var convert = module.exports = {
- rgb: {channels: 3, labels: 'rgb'},
- hsl: {channels: 3, labels: 'hsl'},
- hsv: {channels: 3, labels: 'hsv'},
- hwb: {channels: 3, labels: 'hwb'},
- cmyk: {channels: 4, labels: 'cmyk'},
- xyz: {channels: 3, labels: 'xyz'},
- lab: {channels: 3, labels: 'lab'},
- lch: {channels: 3, labels: 'lch'},
- hex: {channels: 1, labels: ['hex']},
- keyword: {channels: 1, labels: ['keyword']},
- ansi16: {channels: 1, labels: ['ansi16']},
- ansi256: {channels: 1, labels: ['ansi256']},
- hcg: {channels: 3, labels: ['h', 'c', 'g']},
- apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
- gray: {channels: 1, labels: ['gray']}
-};
-
-// hide .channels and .labels properties
-for (var model in convert) {
- if (convert.hasOwnProperty(model)) {
- if (!('channels' in convert[model])) {
- throw new Error('missing channels property: ' + model);
- }
-
- if (!('labels' in convert[model])) {
- throw new Error('missing channel labels property: ' + model);
- }
-
- if (convert[model].labels.length !== convert[model].channels) {
- throw new Error('channel and label counts mismatch: ' + model);
- }
-
- var channels = convert[model].channels;
- var labels = convert[model].labels;
- delete convert[model].channels;
- delete convert[model].labels;
- Object.defineProperty(convert[model], 'channels', {value: channels});
- Object.defineProperty(convert[model], 'labels', {value: labels});
- }
-}
-
-convert.rgb.hsl = function (rgb) {
- var r = rgb[0] / 255;
- var g = rgb[1] / 255;
- var b = rgb[2] / 255;
- var min = Math.min(r, g, b);
- var max = Math.max(r, g, b);
- var delta = max - min;
- var h;
- var s;
- var l;
-
- if (max === min) {
- h = 0;
- } else if (r === max) {
- h = (g - b) / delta;
- } else if (g === max) {
- h = 2 + (b - r) / delta;
- } else if (b === max) {
- h = 4 + (r - g) / delta;
- }
-
- h = Math.min(h * 60, 360);
-
- if (h < 0) {
- h += 360;
- }
-
- l = (min + max) / 2;
-
- if (max === min) {
- s = 0;
- } else if (l <= 0.5) {
- s = delta / (max + min);
- } else {
- s = delta / (2 - max - min);
- }
-
- return [h, s * 100, l * 100];
-};
-
-convert.rgb.hsv = function (rgb) {
- var rdif;
- var gdif;
- var bdif;
- var h;
- var s;
-
- var r = rgb[0] / 255;
- var g = rgb[1] / 255;
- var b = rgb[2] / 255;
- var v = Math.max(r, g, b);
- var diff = v - Math.min(r, g, b);
- var diffc = function (c) {
- return (v - c) / 6 / diff + 1 / 2;
- };
-
- if (diff === 0) {
- h = s = 0;
- } else {
- s = diff / v;
- rdif = diffc(r);
- gdif = diffc(g);
- bdif = diffc(b);
-
- if (r === v) {
- h = bdif - gdif;
- } else if (g === v) {
- h = (1 / 3) + rdif - bdif;
- } else if (b === v) {
- h = (2 / 3) + gdif - rdif;
- }
- if (h < 0) {
- h += 1;
- } else if (h > 1) {
- h -= 1;
- }
- }
-
- return [
- h * 360,
- s * 100,
- v * 100
- ];
-};
-
-convert.rgb.hwb = function (rgb) {
- var r = rgb[0];
- var g = rgb[1];
- var b = rgb[2];
- var h = convert.rgb.hsl(rgb)[0];
- var w = 1 / 255 * Math.min(r, Math.min(g, b));
-
- b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
-
- return [h, w * 100, b * 100];
-};
-
-convert.rgb.cmyk = function (rgb) {
- var r = rgb[0] / 255;
- var g = rgb[1] / 255;
- var b = rgb[2] / 255;
- var c;
- var m;
- var y;
- var k;
-
- k = Math.min(1 - r, 1 - g, 1 - b);
- c = (1 - r - k) / (1 - k) || 0;
- m = (1 - g - k) / (1 - k) || 0;
- y = (1 - b - k) / (1 - k) || 0;
-
- return [c * 100, m * 100, y * 100, k * 100];
-};
-
-/**
- * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
- * */
-function comparativeDistance(x, y) {
- return (
- Math.pow(x[0] - y[0], 2) +
- Math.pow(x[1] - y[1], 2) +
- Math.pow(x[2] - y[2], 2)
- );
-}
-
-convert.rgb.keyword = function (rgb) {
- var reversed = reverseKeywords[rgb];
- if (reversed) {
- return reversed;
- }
-
- var currentClosestDistance = Infinity;
- var currentClosestKeyword;
-
- for (var keyword in cssKeywords) {
- if (cssKeywords.hasOwnProperty(keyword)) {
- var value = cssKeywords[keyword];
-
- // Compute comparative distance
- var distance = comparativeDistance(rgb, value);
-
- // Check if its less, if so set as closest
- if (distance < currentClosestDistance) {
- currentClosestDistance = distance;
- currentClosestKeyword = keyword;
- }
- }
- }
-
- return currentClosestKeyword;
-};
-
-convert.keyword.rgb = function (keyword) {
- return cssKeywords[keyword];
-};
-
-convert.rgb.xyz = function (rgb) {
- var r = rgb[0] / 255;
- var g = rgb[1] / 255;
- var b = rgb[2] / 255;
-
- // assume sRGB
- r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);
- g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);
- b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);
-
- var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
- var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
- var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
-
- return [x * 100, y * 100, z * 100];
-};
-
-convert.rgb.lab = function (rgb) {
- var xyz = convert.rgb.xyz(rgb);
- var x = xyz[0];
- var y = xyz[1];
- var z = xyz[2];
- var l;
- var a;
- var b;
-
- x /= 95.047;
- y /= 100;
- z /= 108.883;
-
- x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
- y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
- z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
-
- l = (116 * y) - 16;
- a = 500 * (x - y);
- b = 200 * (y - z);
-
- return [l, a, b];
-};
-
-convert.hsl.rgb = function (hsl) {
- var h = hsl[0] / 360;
- var s = hsl[1] / 100;
- var l = hsl[2] / 100;
- var t1;
- var t2;
- var t3;
- var rgb;
- var val;
-
- if (s === 0) {
- val = l * 255;
- return [val, val, val];
- }
-
- if (l < 0.5) {
- t2 = l * (1 + s);
- } else {
- t2 = l + s - l * s;
- }
-
- t1 = 2 * l - t2;
-
- rgb = [0, 0, 0];
- for (var i = 0; i < 3; i++) {
- t3 = h + 1 / 3 * -(i - 1);
- if (t3 < 0) {
- t3++;
- }
- if (t3 > 1) {
- t3--;
- }
-
- if (6 * t3 < 1) {
- val = t1 + (t2 - t1) * 6 * t3;
- } else if (2 * t3 < 1) {
- val = t2;
- } else if (3 * t3 < 2) {
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
- } else {
- val = t1;
- }
-
- rgb[i] = val * 255;
- }
-
- return rgb;
-};
-
-convert.hsl.hsv = function (hsl) {
- var h = hsl[0];
- var s = hsl[1] / 100;
- var l = hsl[2] / 100;
- var smin = s;
- var lmin = Math.max(l, 0.01);
- var sv;
- var v;
-
- l *= 2;
- s *= (l <= 1) ? l : 2 - l;
- smin *= lmin <= 1 ? lmin : 2 - lmin;
- v = (l + s) / 2;
- sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
-
- return [h, sv * 100, v * 100];
-};
-
-convert.hsv.rgb = function (hsv) {
- var h = hsv[0] / 60;
- var s = hsv[1] / 100;
- var v = hsv[2] / 100;
- var hi = Math.floor(h) % 6;
-
- var f = h - Math.floor(h);
- var p = 255 * v * (1 - s);
- var q = 255 * v * (1 - (s * f));
- var t = 255 * v * (1 - (s * (1 - f)));
- v *= 255;
-
- switch (hi) {
- case 0:
- return [v, t, p];
- case 1:
- return [q, v, p];
- case 2:
- return [p, v, t];
- case 3:
- return [p, q, v];
- case 4:
- return [t, p, v];
- case 5:
- return [v, p, q];
- }
-};
-
-convert.hsv.hsl = function (hsv) {
- var h = hsv[0];
- var s = hsv[1] / 100;
- var v = hsv[2] / 100;
- var vmin = Math.max(v, 0.01);
- var lmin;
- var sl;
- var l;
-
- l = (2 - s) * v;
- lmin = (2 - s) * vmin;
- sl = s * vmin;
- sl /= (lmin <= 1) ? lmin : 2 - lmin;
- sl = sl || 0;
- l /= 2;
-
- return [h, sl * 100, l * 100];
-};
-
-// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
-convert.hwb.rgb = function (hwb) {
- var h = hwb[0] / 360;
- var wh = hwb[1] / 100;
- var bl = hwb[2] / 100;
- var ratio = wh + bl;
- var i;
- var v;
- var f;
- var n;
-
- // wh + bl cant be > 1
- if (ratio > 1) {
- wh /= ratio;
- bl /= ratio;
- }
-
- i = Math.floor(6 * h);
- v = 1 - bl;
- f = 6 * h - i;
-
- if ((i & 0x01) !== 0) {
- f = 1 - f;
- }
-
- n = wh + f * (v - wh); // linear interpolation
-
- var r;
- var g;
- var b;
- switch (i) {
- default:
- case 6:
- case 0: r = v; g = n; b = wh; break;
- case 1: r = n; g = v; b = wh; break;
- case 2: r = wh; g = v; b = n; break;
- case 3: r = wh; g = n; b = v; break;
- case 4: r = n; g = wh; b = v; break;
- case 5: r = v; g = wh; b = n; break;
- }
-
- return [r * 255, g * 255, b * 255];
-};
-
-convert.cmyk.rgb = function (cmyk) {
- var c = cmyk[0] / 100;
- var m = cmyk[1] / 100;
- var y = cmyk[2] / 100;
- var k = cmyk[3] / 100;
- var r;
- var g;
- var b;
-
- r = 1 - Math.min(1, c * (1 - k) + k);
- g = 1 - Math.min(1, m * (1 - k) + k);
- b = 1 - Math.min(1, y * (1 - k) + k);
-
- return [r * 255, g * 255, b * 255];
-};
-
-convert.xyz.rgb = function (xyz) {
- var x = xyz[0] / 100;
- var y = xyz[1] / 100;
- var z = xyz[2] / 100;
- var r;
- var g;
- var b;
-
- r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
- g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
- b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
-
- // assume sRGB
- r = r > 0.0031308
- ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)
- : r * 12.92;
-
- g = g > 0.0031308
- ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)
- : g * 12.92;
-
- b = b > 0.0031308
- ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)
- : b * 12.92;
-
- r = Math.min(Math.max(0, r), 1);
- g = Math.min(Math.max(0, g), 1);
- b = Math.min(Math.max(0, b), 1);
-
- return [r * 255, g * 255, b * 255];
-};
-
-convert.xyz.lab = function (xyz) {
- var x = xyz[0];
- var y = xyz[1];
- var z = xyz[2];
- var l;
- var a;
- var b;
-
- x /= 95.047;
- y /= 100;
- z /= 108.883;
-
- x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);
- y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);
- z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);
-
- l = (116 * y) - 16;
- a = 500 * (x - y);
- b = 200 * (y - z);
-
- return [l, a, b];
-};
-
-convert.lab.xyz = function (lab) {
- var l = lab[0];
- var a = lab[1];
- var b = lab[2];
- var x;
- var y;
- var z;
-
- y = (l + 16) / 116;
- x = a / 500 + y;
- z = y - b / 200;
-
- var y2 = Math.pow(y, 3);
- var x2 = Math.pow(x, 3);
- var z2 = Math.pow(z, 3);
- y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
- x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
- z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
-
- x *= 95.047;
- y *= 100;
- z *= 108.883;
-
- return [x, y, z];
-};
-
-convert.lab.lch = function (lab) {
- var l = lab[0];
- var a = lab[1];
- var b = lab[2];
- var hr;
- var h;
- var c;
-
- hr = Math.atan2(b, a);
- h = hr * 360 / 2 / Math.PI;
-
- if (h < 0) {
- h += 360;
- }
-
- c = Math.sqrt(a * a + b * b);
-
- return [l, c, h];
-};
-
-convert.lch.lab = function (lch) {
- var l = lch[0];
- var c = lch[1];
- var h = lch[2];
- var a;
- var b;
- var hr;
-
- hr = h / 360 * 2 * Math.PI;
- a = c * Math.cos(hr);
- b = c * Math.sin(hr);
-
- return [l, a, b];
-};
-
-convert.rgb.ansi16 = function (args) {
- var r = args[0];
- var g = args[1];
- var b = args[2];
- var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization
-
- value = Math.round(value / 50);
-
- if (value === 0) {
- return 30;
- }
-
- var ansi = 30
- + ((Math.round(b / 255) << 2)
- | (Math.round(g / 255) << 1)
- | Math.round(r / 255));
-
- if (value === 2) {
- ansi += 60;
- }
-
- return ansi;
-};
-
-convert.hsv.ansi16 = function (args) {
- // optimization here; we already know the value and don't need to get
- // it converted for us.
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
-};
-
-convert.rgb.ansi256 = function (args) {
- var r = args[0];
- var g = args[1];
- var b = args[2];
-
- // we use the extended greyscale palette here, with the exception of
- // black and white. normal palette only has 4 greyscale shades.
- if (r === g && g === b) {
- if (r < 8) {
- return 16;
- }
-
- if (r > 248) {
- return 231;
- }
-
- return Math.round(((r - 8) / 247) * 24) + 232;
- }
-
- var ansi = 16
- + (36 * Math.round(r / 255 * 5))
- + (6 * Math.round(g / 255 * 5))
- + Math.round(b / 255 * 5);
-
- return ansi;
-};
-
-convert.ansi16.rgb = function (args) {
- var color = args % 10;
-
- // handle greyscale
- if (color === 0 || color === 7) {
- if (args > 50) {
- color += 3.5;
- }
-
- color = color / 10.5 * 255;
-
- return [color, color, color];
- }
-
- var mult = (~~(args > 50) + 1) * 0.5;
- var r = ((color & 1) * mult) * 255;
- var g = (((color >> 1) & 1) * mult) * 255;
- var b = (((color >> 2) & 1) * mult) * 255;
-
- return [r, g, b];
-};
-
-convert.ansi256.rgb = function (args) {
- // handle greyscale
- if (args >= 232) {
- var c = (args - 232) * 10 + 8;
- return [c, c, c];
- }
-
- args -= 16;
-
- var rem;
- var r = Math.floor(args / 36) / 5 * 255;
- var g = Math.floor((rem = args % 36) / 6) / 5 * 255;
- var b = (rem % 6) / 5 * 255;
-
- return [r, g, b];
-};
-
-convert.rgb.hex = function (args) {
- var integer = ((Math.round(args[0]) & 0xFF) << 16)
- + ((Math.round(args[1]) & 0xFF) << 8)
- + (Math.round(args[2]) & 0xFF);
-
- var string = integer.toString(16).toUpperCase();
- return '000000'.substring(string.length) + string;
-};
-
-convert.hex.rgb = function (args) {
- var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
- if (!match) {
- return [0, 0, 0];
- }
-
- var colorString = match[0];
-
- if (match[0].length === 3) {
- colorString = colorString.split('').map(function (char) {
- return char + char;
- }).join('');
- }
-
- var integer = parseInt(colorString, 16);
- var r = (integer >> 16) & 0xFF;
- var g = (integer >> 8) & 0xFF;
- var b = integer & 0xFF;
-
- return [r, g, b];
-};
-
-convert.rgb.hcg = function (rgb) {
- var r = rgb[0] / 255;
- var g = rgb[1] / 255;
- var b = rgb[2] / 255;
- var max = Math.max(Math.max(r, g), b);
- var min = Math.min(Math.min(r, g), b);
- var chroma = (max - min);
- var grayscale;
- var hue;
-
- if (chroma < 1) {
- grayscale = min / (1 - chroma);
- } else {
- grayscale = 0;
- }
-
- if (chroma <= 0) {
- hue = 0;
- } else
- if (max === r) {
- hue = ((g - b) / chroma) % 6;
- } else
- if (max === g) {
- hue = 2 + (b - r) / chroma;
- } else {
- hue = 4 + (r - g) / chroma + 4;
- }
-
- hue /= 6;
- hue %= 1;
-
- return [hue * 360, chroma * 100, grayscale * 100];
-};
-
-convert.hsl.hcg = function (hsl) {
- var s = hsl[1] / 100;
- var l = hsl[2] / 100;
- var c = 1;
- var f = 0;
-
- if (l < 0.5) {
- c = 2.0 * s * l;
- } else {
- c = 2.0 * s * (1.0 - l);
- }
-
- if (c < 1.0) {
- f = (l - 0.5 * c) / (1.0 - c);
- }
-
- return [hsl[0], c * 100, f * 100];
-};
-
-convert.hsv.hcg = function (hsv) {
- var s = hsv[1] / 100;
- var v = hsv[2] / 100;
-
- var c = s * v;
- var f = 0;
-
- if (c < 1.0) {
- f = (v - c) / (1 - c);
- }
-
- return [hsv[0], c * 100, f * 100];
-};
-
-convert.hcg.rgb = function (hcg) {
- var h = hcg[0] / 360;
- var c = hcg[1] / 100;
- var g = hcg[2] / 100;
-
- if (c === 0.0) {
- return [g * 255, g * 255, g * 255];
- }
-
- var pure = [0, 0, 0];
- var hi = (h % 1) * 6;
- var v = hi % 1;
- var w = 1 - v;
- var mg = 0;
-
- switch (Math.floor(hi)) {
- case 0:
- pure[0] = 1; pure[1] = v; pure[2] = 0; break;
- case 1:
- pure[0] = w; pure[1] = 1; pure[2] = 0; break;
- case 2:
- pure[0] = 0; pure[1] = 1; pure[2] = v; break;
- case 3:
- pure[0] = 0; pure[1] = w; pure[2] = 1; break;
- case 4:
- pure[0] = v; pure[1] = 0; pure[2] = 1; break;
- default:
- pure[0] = 1; pure[1] = 0; pure[2] = w;
- }
-
- mg = (1.0 - c) * g;
-
- return [
- (c * pure[0] + mg) * 255,
- (c * pure[1] + mg) * 255,
- (c * pure[2] + mg) * 255
- ];
-};
-
-convert.hcg.hsv = function (hcg) {
- var c = hcg[1] / 100;
- var g = hcg[2] / 100;
-
- var v = c + g * (1.0 - c);
- var f = 0;
-
- if (v > 0.0) {
- f = c / v;
- }
-
- return [hcg[0], f * 100, v * 100];
-};
-
-convert.hcg.hsl = function (hcg) {
- var c = hcg[1] / 100;
- var g = hcg[2] / 100;
-
- var l = g * (1.0 - c) + 0.5 * c;
- var s = 0;
-
- if (l > 0.0 && l < 0.5) {
- s = c / (2 * l);
- } else
- if (l >= 0.5 && l < 1.0) {
- s = c / (2 * (1 - l));
- }
-
- return [hcg[0], s * 100, l * 100];
-};
-
-convert.hcg.hwb = function (hcg) {
- var c = hcg[1] / 100;
- var g = hcg[2] / 100;
- var v = c + g * (1.0 - c);
- return [hcg[0], (v - c) * 100, (1 - v) * 100];
-};
-
-convert.hwb.hcg = function (hwb) {
- var w = hwb[1] / 100;
- var b = hwb[2] / 100;
- var v = 1 - b;
- var c = v - w;
- var g = 0;
-
- if (c < 1) {
- g = (v - c) / (1 - c);
- }
-
- return [hwb[0], c * 100, g * 100];
-};
-
-convert.apple.rgb = function (apple) {
- return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
-};
-
-convert.rgb.apple = function (rgb) {
- return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
-};
-
-convert.gray.rgb = function (args) {
- return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
-};
-
-convert.gray.hsl = convert.gray.hsv = function (args) {
- return [0, 0, args[0]];
-};
-
-convert.gray.hwb = function (gray) {
- return [0, 100, gray[0]];
-};
-
-convert.gray.cmyk = function (gray) {
- return [0, 0, 0, gray[0]];
-};
-
-convert.gray.lab = function (gray) {
- return [gray[0], 0, 0];
-};
-
-convert.gray.hex = function (gray) {
- var val = Math.round(gray[0] / 100 * 255) & 0xFF;
- var integer = (val << 16) + (val << 8) + val;
-
- var string = integer.toString(16).toUpperCase();
- return '000000'.substring(string.length) + string;
-};
-
-convert.rgb.gray = function (rgb) {
- var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
- return [val / 255 * 100];
-};
diff --git a/node_modules/color-convert/index.js b/node_modules/color-convert/index.js
deleted file mode 100644
index e65b5d7..0000000
--- a/node_modules/color-convert/index.js
+++ /dev/null
@@ -1,78 +0,0 @@
-var conversions = require('./conversions');
-var route = require('./route');
-
-var convert = {};
-
-var models = Object.keys(conversions);
-
-function wrapRaw(fn) {
- var wrappedFn = function (args) {
- if (args === undefined || args === null) {
- return args;
- }
-
- if (arguments.length > 1) {
- args = Array.prototype.slice.call(arguments);
- }
-
- return fn(args);
- };
-
- // preserve .conversion property if there is one
- if ('conversion' in fn) {
- wrappedFn.conversion = fn.conversion;
- }
-
- return wrappedFn;
-}
-
-function wrapRounded(fn) {
- var wrappedFn = function (args) {
- if (args === undefined || args === null) {
- return args;
- }
-
- if (arguments.length > 1) {
- args = Array.prototype.slice.call(arguments);
- }
-
- var result = fn(args);
-
- // we're assuming the result is an array here.
- // see notice in conversions.js; don't use box types
- // in conversion functions.
- if (typeof result === 'object') {
- for (var len = result.length, i = 0; i < len; i++) {
- result[i] = Math.round(result[i]);
- }
- }
-
- return result;
- };
-
- // preserve .conversion property if there is one
- if ('conversion' in fn) {
- wrappedFn.conversion = fn.conversion;
- }
-
- return wrappedFn;
-}
-
-models.forEach(function (fromModel) {
- convert[fromModel] = {};
-
- Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
- Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
-
- var routes = route(fromModel);
- var routeModels = Object.keys(routes);
-
- routeModels.forEach(function (toModel) {
- var fn = routes[toModel];
-
- convert[fromModel][toModel] = wrapRounded(fn);
- convert[fromModel][toModel].raw = wrapRaw(fn);
- });
-});
-
-module.exports = convert;
diff --git a/node_modules/color-convert/package.json b/node_modules/color-convert/package.json
deleted file mode 100644
index 48c3f06..0000000
--- a/node_modules/color-convert/package.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_from": "color-convert@^1.9.0",
- "_id": "color-convert@1.9.3",
- "_inBundle": false,
- "_integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "_location": "/color-convert",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "color-convert@^1.9.0",
- "name": "color-convert",
- "escapedName": "color-convert",
- "rawSpec": "^1.9.0",
- "saveSpec": null,
- "fetchSpec": "^1.9.0"
- },
- "_requiredBy": [
- "/wrap-ansi/ansi-styles"
- ],
- "_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "_shasum": "bb71850690e1f136567de629d2d5471deda4c1e8",
- "_spec": "color-convert@^1.9.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/wrap-ansi/node_modules/ansi-styles",
- "author": {
- "name": "Heather Arthur",
- "email": "fayearthur@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/Qix-/color-convert/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "color-name": "1.1.3"
- },
- "deprecated": false,
- "description": "Plain color conversion functions",
- "devDependencies": {
- "chalk": "1.1.1",
- "xo": "0.11.2"
- },
- "files": [
- "index.js",
- "conversions.js",
- "css-keywords.js",
- "route.js"
- ],
- "homepage": "https://github.com/Qix-/color-convert#readme",
- "keywords": [
- "color",
- "colour",
- "convert",
- "converter",
- "conversion",
- "rgb",
- "hsl",
- "hsv",
- "hwb",
- "cmyk",
- "ansi",
- "ansi16"
- ],
- "license": "MIT",
- "name": "color-convert",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/Qix-/color-convert.git"
- },
- "scripts": {
- "pretest": "xo",
- "test": "node test/basic.js"
- },
- "version": "1.9.3",
- "xo": {
- "rules": {
- "default-case": 0,
- "no-inline-comments": 0,
- "operator-linebreak": 0
- }
- }
-}
diff --git a/node_modules/color-convert/route.js b/node_modules/color-convert/route.js
deleted file mode 100644
index 0a1fdea..0000000
--- a/node_modules/color-convert/route.js
+++ /dev/null
@@ -1,97 +0,0 @@
-var conversions = require('./conversions');
-
-/*
- this function routes a model to all other models.
-
- all functions that are routed have a property `.conversion` attached
- to the returned synthetic function. This property is an array
- of strings, each with the steps in between the 'from' and 'to'
- color models (inclusive).
-
- conversions that are not possible simply are not included.
-*/
-
-function buildGraph() {
- var graph = {};
- // https://jsperf.com/object-keys-vs-for-in-with-closure/3
- var models = Object.keys(conversions);
-
- for (var len = models.length, i = 0; i < len; i++) {
- graph[models[i]] = {
- // http://jsperf.com/1-vs-infinity
- // micro-opt, but this is simple.
- distance: -1,
- parent: null
- };
- }
-
- return graph;
-}
-
-// https://en.wikipedia.org/wiki/Breadth-first_search
-function deriveBFS(fromModel) {
- var graph = buildGraph();
- var queue = [fromModel]; // unshift -> queue -> pop
-
- graph[fromModel].distance = 0;
-
- while (queue.length) {
- var current = queue.pop();
- var adjacents = Object.keys(conversions[current]);
-
- for (var len = adjacents.length, i = 0; i < len; i++) {
- var adjacent = adjacents[i];
- var node = graph[adjacent];
-
- if (node.distance === -1) {
- node.distance = graph[current].distance + 1;
- node.parent = current;
- queue.unshift(adjacent);
- }
- }
- }
-
- return graph;
-}
-
-function link(from, to) {
- return function (args) {
- return to(from(args));
- };
-}
-
-function wrapConversion(toModel, graph) {
- var path = [graph[toModel].parent, toModel];
- var fn = conversions[graph[toModel].parent][toModel];
-
- var cur = graph[toModel].parent;
- while (graph[cur].parent) {
- path.unshift(graph[cur].parent);
- fn = link(conversions[graph[cur].parent][cur], fn);
- cur = graph[cur].parent;
- }
-
- fn.conversion = path;
- return fn;
-}
-
-module.exports = function (fromModel) {
- var graph = deriveBFS(fromModel);
- var conversion = {};
-
- var models = Object.keys(graph);
- for (var len = models.length, i = 0; i < len; i++) {
- var toModel = models[i];
- var node = graph[toModel];
-
- if (node.parent === null) {
- // no possible conversion, or this node is the source model.
- continue;
- }
-
- conversion[toModel] = wrapConversion(toModel, graph);
- }
-
- return conversion;
-};
-
diff --git a/node_modules/color-name/.eslintrc.json b/node_modules/color-name/.eslintrc.json
deleted file mode 100644
index c50c250..0000000
--- a/node_modules/color-name/.eslintrc.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "env": {
- "browser": true,
- "node": true,
- "commonjs": true,
- "es6": true
- },
- "extends": "eslint:recommended",
- "rules": {
- "strict": 2,
- "indent": 0,
- "linebreak-style": 0,
- "quotes": 0,
- "semi": 0,
- "no-cond-assign": 1,
- "no-constant-condition": 1,
- "no-duplicate-case": 1,
- "no-empty": 1,
- "no-ex-assign": 1,
- "no-extra-boolean-cast": 1,
- "no-extra-semi": 1,
- "no-fallthrough": 1,
- "no-func-assign": 1,
- "no-global-assign": 1,
- "no-implicit-globals": 2,
- "no-inner-declarations": ["error", "functions"],
- "no-irregular-whitespace": 2,
- "no-loop-func": 1,
- "no-multi-str": 1,
- "no-mixed-spaces-and-tabs": 1,
- "no-proto": 1,
- "no-sequences": 1,
- "no-throw-literal": 1,
- "no-unmodified-loop-condition": 1,
- "no-useless-call": 1,
- "no-void": 1,
- "no-with": 2,
- "wrap-iife": 1,
- "no-redeclare": 1,
- "no-unused-vars": ["error", { "vars": "all", "args": "none" }],
- "no-sparse-arrays": 1
- }
-}
diff --git a/node_modules/color-name/.npmignore b/node_modules/color-name/.npmignore
deleted file mode 100644
index f9f2816..0000000
--- a/node_modules/color-name/.npmignore
+++ /dev/null
@@ -1,107 +0,0 @@
-//this will affect all the git repos
-git config --global core.excludesfile ~/.gitignore
-
-
-//update files since .ignore won't if already tracked
-git rm --cached <file>
-
-# Compiled source #
-###################
-*.com
-*.class
-*.dll
-*.exe
-*.o
-*.so
-
-# Packages #
-############
-# it's better to unpack these files and commit the raw source
-# git has its own built in compression methods
-*.7z
-*.dmg
-*.gz
-*.iso
-*.jar
-*.rar
-*.tar
-*.zip
-
-# Logs and databases #
-######################
-*.log
-*.sql
-*.sqlite
-
-# OS generated files #
-######################
-.DS_Store
-.DS_Store?
-._*
-.Spotlight-V100
-.Trashes
-# Icon?
-ehthumbs.db
-Thumbs.db
-.cache
-.project
-.settings
-.tmproj
-*.esproj
-nbproject
-
-# Numerous always-ignore extensions #
-#####################################
-*.diff
-*.err
-*.orig
-*.rej
-*.swn
-*.swo
-*.swp
-*.vi
-*~
-*.sass-cache
-*.grunt
-*.tmp
-
-# Dreamweaver added files #
-###########################
-_notes
-dwsync.xml
-
-# Komodo #
-###########################
-*.komodoproject
-.komodotools
-
-# Node #
-#####################
-node_modules
-
-# Bower #
-#####################
-bower_components
-
-# Folders to ignore #
-#####################
-.hg
-.svn
-.CVS
-intermediate
-publish
-.idea
-.graphics
-_test
-_archive
-uploads
-tmp
-
-# Vim files to ignore #
-#######################
-.VimballRecord
-.netrwhist
-
-bundle.*
-
-_demo \ No newline at end of file
diff --git a/node_modules/color-name/LICENSE b/node_modules/color-name/LICENSE
deleted file mode 100644
index c6b1001..0000000
--- a/node_modules/color-name/LICENSE
+++ /dev/null
@@ -1,8 +0,0 @@
-The MIT License (MIT)
-Copyright (c) 2015 Dmitry Ivanov
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/color-name/README.md b/node_modules/color-name/README.md
deleted file mode 100644
index 932b979..0000000
--- a/node_modules/color-name/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors.
-
-[![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/)
-
-
-```js
-var colors = require('color-name');
-colors.red //[255,0,0]
-```
-
-<a href="LICENSE"><img src="https://upload.wikimedia.org/wikipedia/commons/0/0c/MIT_logo.svg" width="120"/></a>
diff --git a/node_modules/color-name/index.js b/node_modules/color-name/index.js
deleted file mode 100644
index b7c198a..0000000
--- a/node_modules/color-name/index.js
+++ /dev/null
@@ -1,152 +0,0 @@
-'use strict'
-
-module.exports = {
- "aliceblue": [240, 248, 255],
- "antiquewhite": [250, 235, 215],
- "aqua": [0, 255, 255],
- "aquamarine": [127, 255, 212],
- "azure": [240, 255, 255],
- "beige": [245, 245, 220],
- "bisque": [255, 228, 196],
- "black": [0, 0, 0],
- "blanchedalmond": [255, 235, 205],
- "blue": [0, 0, 255],
- "blueviolet": [138, 43, 226],
- "brown": [165, 42, 42],
- "burlywood": [222, 184, 135],
- "cadetblue": [95, 158, 160],
- "chartreuse": [127, 255, 0],
- "chocolate": [210, 105, 30],
- "coral": [255, 127, 80],
- "cornflowerblue": [100, 149, 237],
- "cornsilk": [255, 248, 220],
- "crimson": [220, 20, 60],
- "cyan": [0, 255, 255],
- "darkblue": [0, 0, 139],
- "darkcyan": [0, 139, 139],
- "darkgoldenrod": [184, 134, 11],
- "darkgray": [169, 169, 169],
- "darkgreen": [0, 100, 0],
- "darkgrey": [169, 169, 169],
- "darkkhaki": [189, 183, 107],
- "darkmagenta": [139, 0, 139],
- "darkolivegreen": [85, 107, 47],
- "darkorange": [255, 140, 0],
- "darkorchid": [153, 50, 204],
- "darkred": [139, 0, 0],
- "darksalmon": [233, 150, 122],
- "darkseagreen": [143, 188, 143],
- "darkslateblue": [72, 61, 139],
- "darkslategray": [47, 79, 79],
- "darkslategrey": [47, 79, 79],
- "darkturquoise": [0, 206, 209],
- "darkviolet": [148, 0, 211],
- "deeppink": [255, 20, 147],
- "deepskyblue": [0, 191, 255],
- "dimgray": [105, 105, 105],
- "dimgrey": [105, 105, 105],
- "dodgerblue": [30, 144, 255],
- "firebrick": [178, 34, 34],
- "floralwhite": [255, 250, 240],
- "forestgreen": [34, 139, 34],
- "fuchsia": [255, 0, 255],
- "gainsboro": [220, 220, 220],
- "ghostwhite": [248, 248, 255],
- "gold": [255, 215, 0],
- "goldenrod": [218, 165, 32],
- "gray": [128, 128, 128],
- "green": [0, 128, 0],
- "greenyellow": [173, 255, 47],
- "grey": [128, 128, 128],
- "honeydew": [240, 255, 240],
- "hotpink": [255, 105, 180],
- "indianred": [205, 92, 92],
- "indigo": [75, 0, 130],
- "ivory": [255, 255, 240],
- "khaki": [240, 230, 140],
- "lavender": [230, 230, 250],
- "lavenderblush": [255, 240, 245],
- "lawngreen": [124, 252, 0],
- "lemonchiffon": [255, 250, 205],
- "lightblue": [173, 216, 230],
- "lightcoral": [240, 128, 128],
- "lightcyan": [224, 255, 255],
- "lightgoldenrodyellow": [250, 250, 210],
- "lightgray": [211, 211, 211],
- "lightgreen": [144, 238, 144],
- "lightgrey": [211, 211, 211],
- "lightpink": [255, 182, 193],
- "lightsalmon": [255, 160, 122],
- "lightseagreen": [32, 178, 170],
- "lightskyblue": [135, 206, 250],
- "lightslategray": [119, 136, 153],
- "lightslategrey": [119, 136, 153],
- "lightsteelblue": [176, 196, 222],
- "lightyellow": [255, 255, 224],
- "lime": [0, 255, 0],
- "limegreen": [50, 205, 50],
- "linen": [250, 240, 230],
- "magenta": [255, 0, 255],
- "maroon": [128, 0, 0],
- "mediumaquamarine": [102, 205, 170],
- "mediumblue": [0, 0, 205],
- "mediumorchid": [186, 85, 211],
- "mediumpurple": [147, 112, 219],
- "mediumseagreen": [60, 179, 113],
- "mediumslateblue": [123, 104, 238],
- "mediumspringgreen": [0, 250, 154],
- "mediumturquoise": [72, 209, 204],
- "mediumvioletred": [199, 21, 133],
- "midnightblue": [25, 25, 112],
- "mintcream": [245, 255, 250],
- "mistyrose": [255, 228, 225],
- "moccasin": [255, 228, 181],
- "navajowhite": [255, 222, 173],
- "navy": [0, 0, 128],
- "oldlace": [253, 245, 230],
- "olive": [128, 128, 0],
- "olivedrab": [107, 142, 35],
- "orange": [255, 165, 0],
- "orangered": [255, 69, 0],
- "orchid": [218, 112, 214],
- "palegoldenrod": [238, 232, 170],
- "palegreen": [152, 251, 152],
- "paleturquoise": [175, 238, 238],
- "palevioletred": [219, 112, 147],
- "papayawhip": [255, 239, 213],
- "peachpuff": [255, 218, 185],
- "peru": [205, 133, 63],
- "pink": [255, 192, 203],
- "plum": [221, 160, 221],
- "powderblue": [176, 224, 230],
- "purple": [128, 0, 128],
- "rebeccapurple": [102, 51, 153],
- "red": [255, 0, 0],
- "rosybrown": [188, 143, 143],
- "royalblue": [65, 105, 225],
- "saddlebrown": [139, 69, 19],
- "salmon": [250, 128, 114],
- "sandybrown": [244, 164, 96],
- "seagreen": [46, 139, 87],
- "seashell": [255, 245, 238],
- "sienna": [160, 82, 45],
- "silver": [192, 192, 192],
- "skyblue": [135, 206, 235],
- "slateblue": [106, 90, 205],
- "slategray": [112, 128, 144],
- "slategrey": [112, 128, 144],
- "snow": [255, 250, 250],
- "springgreen": [0, 255, 127],
- "steelblue": [70, 130, 180],
- "tan": [210, 180, 140],
- "teal": [0, 128, 128],
- "thistle": [216, 191, 216],
- "tomato": [255, 99, 71],
- "turquoise": [64, 224, 208],
- "violet": [238, 130, 238],
- "wheat": [245, 222, 179],
- "white": [255, 255, 255],
- "whitesmoke": [245, 245, 245],
- "yellow": [255, 255, 0],
- "yellowgreen": [154, 205, 50]
-};
diff --git a/node_modules/color-name/package.json b/node_modules/color-name/package.json
deleted file mode 100644
index 54beeca..0000000
--- a/node_modules/color-name/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_from": "color-name@1.1.3",
- "_id": "color-name@1.1.3",
- "_inBundle": false,
- "_integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
- "_location": "/color-name",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "color-name@1.1.3",
- "name": "color-name",
- "escapedName": "color-name",
- "rawSpec": "1.1.3",
- "saveSpec": null,
- "fetchSpec": "1.1.3"
- },
- "_requiredBy": [
- "/color-convert"
- ],
- "_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "_shasum": "a7d0558bd89c42f795dd42328f740831ca53bc25",
- "_spec": "color-name@1.1.3",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/color-convert",
- "author": {
- "name": "DY",
- "email": "dfcreative@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/dfcreative/color-name/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "A list of color names and its values",
- "homepage": "https://github.com/dfcreative/color-name",
- "keywords": [
- "color-name",
- "color",
- "color-keyword",
- "keyword"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "color-name",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/dfcreative/color-name.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "1.1.3"
-}
diff --git a/node_modules/color-name/test.js b/node_modules/color-name/test.js
deleted file mode 100644
index 6e6bf30..0000000
--- a/node_modules/color-name/test.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict'
-
-var names = require('./');
-var assert = require('assert');
-
-assert.deepEqual(names.red, [255,0,0]);
-assert.deepEqual(names.aliceblue, [240,248,255]);
diff --git a/node_modules/combined-stream/License b/node_modules/combined-stream/License
deleted file mode 100644
index 4804b7a..0000000
--- a/node_modules/combined-stream/License
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2011 Debuggable Limited <felix@debuggable.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/combined-stream/Readme.md b/node_modules/combined-stream/Readme.md
deleted file mode 100644
index 9e367b5..0000000
--- a/node_modules/combined-stream/Readme.md
+++ /dev/null
@@ -1,138 +0,0 @@
-# combined-stream
-
-A stream that emits multiple other streams one after another.
-
-**NB** Currently `combined-stream` works with streams version 1 only. There is ongoing effort to switch this library to streams version 2. Any help is welcome. :) Meanwhile you can explore other libraries that provide streams2 support with more or less compatibility with `combined-stream`.
-
-- [combined-stream2](https://www.npmjs.com/package/combined-stream2): A drop-in streams2-compatible replacement for the combined-stream module.
-
-- [multistream](https://www.npmjs.com/package/multistream): A stream that emits multiple other streams one after another.
-
-## Installation
-
-``` bash
-npm install combined-stream
-```
-
-## Usage
-
-Here is a simple example that shows how you can use combined-stream to combine
-two files into one:
-
-``` javascript
-var CombinedStream = require('combined-stream');
-var fs = require('fs');
-
-var combinedStream = CombinedStream.create();
-combinedStream.append(fs.createReadStream('file1.txt'));
-combinedStream.append(fs.createReadStream('file2.txt'));
-
-combinedStream.pipe(fs.createWriteStream('combined.txt'));
-```
-
-While the example above works great, it will pause all source streams until
-they are needed. If you don't want that to happen, you can set `pauseStreams`
-to `false`:
-
-``` javascript
-var CombinedStream = require('combined-stream');
-var fs = require('fs');
-
-var combinedStream = CombinedStream.create({pauseStreams: false});
-combinedStream.append(fs.createReadStream('file1.txt'));
-combinedStream.append(fs.createReadStream('file2.txt'));
-
-combinedStream.pipe(fs.createWriteStream('combined.txt'));
-```
-
-However, what if you don't have all the source streams yet, or you don't want
-to allocate the resources (file descriptors, memory, etc.) for them right away?
-Well, in that case you can simply provide a callback that supplies the stream
-by calling a `next()` function:
-
-``` javascript
-var CombinedStream = require('combined-stream');
-var fs = require('fs');
-
-var combinedStream = CombinedStream.create();
-combinedStream.append(function(next) {
- next(fs.createReadStream('file1.txt'));
-});
-combinedStream.append(function(next) {
- next(fs.createReadStream('file2.txt'));
-});
-
-combinedStream.pipe(fs.createWriteStream('combined.txt'));
-```
-
-## API
-
-### CombinedStream.create([options])
-
-Returns a new combined stream object. Available options are:
-
-* `maxDataSize`
-* `pauseStreams`
-
-The effect of those options is described below.
-
-### combinedStream.pauseStreams = `true`
-
-Whether to apply back pressure to the underlaying streams. If set to `false`,
-the underlaying streams will never be paused. If set to `true`, the
-underlaying streams will be paused right after being appended, as well as when
-`delayedStream.pipe()` wants to throttle.
-
-### combinedStream.maxDataSize = `2 * 1024 * 1024`
-
-The maximum amount of bytes (or characters) to buffer for all source streams.
-If this value is exceeded, `combinedStream` emits an `'error'` event.
-
-### combinedStream.dataSize = `0`
-
-The amount of bytes (or characters) currently buffered by `combinedStream`.
-
-### combinedStream.append(stream)
-
-Appends the given `stream` to the combinedStream object. If `pauseStreams` is
-set to `true, this stream will also be paused right away.
-
-`streams` can also be a function that takes one parameter called `next`. `next`
-is a function that must be invoked in order to provide the `next` stream, see
-example above.
-
-Regardless of how the `stream` is appended, combined-stream always attaches an
-`'error'` listener to it, so you don't have to do that manually.
-
-Special case: `stream` can also be a String or Buffer.
-
-### combinedStream.write(data)
-
-You should not call this, `combinedStream` takes care of piping the appended
-streams into itself for you.
-
-### combinedStream.resume()
-
-Causes `combinedStream` to start drain the streams it manages. The function is
-idempotent, and also emits a `'resume'` event each time which usually goes to
-the stream that is currently being drained.
-
-### combinedStream.pause();
-
-If `combinedStream.pauseStreams` is set to `false`, this does nothing.
-Otherwise a `'pause'` event is emitted, this goes to the stream that is
-currently being drained, so you can use it to apply back pressure.
-
-### combinedStream.end();
-
-Sets `combinedStream.writable` to false, emits an `'end'` event, and removes
-all streams from the queue.
-
-### combinedStream.destroy();
-
-Same as `combinedStream.end()`, except it emits a `'close'` event instead of
-`'end'`.
-
-## License
-
-combined-stream is licensed under the MIT license.
diff --git a/node_modules/combined-stream/lib/combined_stream.js b/node_modules/combined-stream/lib/combined_stream.js
deleted file mode 100644
index 125f097..0000000
--- a/node_modules/combined-stream/lib/combined_stream.js
+++ /dev/null
@@ -1,208 +0,0 @@
-var util = require('util');
-var Stream = require('stream').Stream;
-var DelayedStream = require('delayed-stream');
-
-module.exports = CombinedStream;
-function CombinedStream() {
- this.writable = false;
- this.readable = true;
- this.dataSize = 0;
- this.maxDataSize = 2 * 1024 * 1024;
- this.pauseStreams = true;
-
- this._released = false;
- this._streams = [];
- this._currentStream = null;
- this._insideLoop = false;
- this._pendingNext = false;
-}
-util.inherits(CombinedStream, Stream);
-
-CombinedStream.create = function(options) {
- var combinedStream = new this();
-
- options = options || {};
- for (var option in options) {
- combinedStream[option] = options[option];
- }
-
- return combinedStream;
-};
-
-CombinedStream.isStreamLike = function(stream) {
- return (typeof stream !== 'function')
- && (typeof stream !== 'string')
- && (typeof stream !== 'boolean')
- && (typeof stream !== 'number')
- && (!Buffer.isBuffer(stream));
-};
-
-CombinedStream.prototype.append = function(stream) {
- var isStreamLike = CombinedStream.isStreamLike(stream);
-
- if (isStreamLike) {
- if (!(stream instanceof DelayedStream)) {
- var newStream = DelayedStream.create(stream, {
- maxDataSize: Infinity,
- pauseStream: this.pauseStreams,
- });
- stream.on('data', this._checkDataSize.bind(this));
- stream = newStream;
- }
-
- this._handleErrors(stream);
-
- if (this.pauseStreams) {
- stream.pause();
- }
- }
-
- this._streams.push(stream);
- return this;
-};
-
-CombinedStream.prototype.pipe = function(dest, options) {
- Stream.prototype.pipe.call(this, dest, options);
- this.resume();
- return dest;
-};
-
-CombinedStream.prototype._getNext = function() {
- this._currentStream = null;
-
- if (this._insideLoop) {
- this._pendingNext = true;
- return; // defer call
- }
-
- this._insideLoop = true;
- try {
- do {
- this._pendingNext = false;
- this._realGetNext();
- } while (this._pendingNext);
- } finally {
- this._insideLoop = false;
- }
-};
-
-CombinedStream.prototype._realGetNext = function() {
- var stream = this._streams.shift();
-
-
- if (typeof stream == 'undefined') {
- this.end();
- return;
- }
-
- if (typeof stream !== 'function') {
- this._pipeNext(stream);
- return;
- }
-
- var getStream = stream;
- getStream(function(stream) {
- var isStreamLike = CombinedStream.isStreamLike(stream);
- if (isStreamLike) {
- stream.on('data', this._checkDataSize.bind(this));
- this._handleErrors(stream);
- }
-
- this._pipeNext(stream);
- }.bind(this));
-};
-
-CombinedStream.prototype._pipeNext = function(stream) {
- this._currentStream = stream;
-
- var isStreamLike = CombinedStream.isStreamLike(stream);
- if (isStreamLike) {
- stream.on('end', this._getNext.bind(this));
- stream.pipe(this, {end: false});
- return;
- }
-
- var value = stream;
- this.write(value);
- this._getNext();
-};
-
-CombinedStream.prototype._handleErrors = function(stream) {
- var self = this;
- stream.on('error', function(err) {
- self._emitError(err);
- });
-};
-
-CombinedStream.prototype.write = function(data) {
- this.emit('data', data);
-};
-
-CombinedStream.prototype.pause = function() {
- if (!this.pauseStreams) {
- return;
- }
-
- if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause();
- this.emit('pause');
-};
-
-CombinedStream.prototype.resume = function() {
- if (!this._released) {
- this._released = true;
- this.writable = true;
- this._getNext();
- }
-
- if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume();
- this.emit('resume');
-};
-
-CombinedStream.prototype.end = function() {
- this._reset();
- this.emit('end');
-};
-
-CombinedStream.prototype.destroy = function() {
- this._reset();
- this.emit('close');
-};
-
-CombinedStream.prototype._reset = function() {
- this.writable = false;
- this._streams = [];
- this._currentStream = null;
-};
-
-CombinedStream.prototype._checkDataSize = function() {
- this._updateDataSize();
- if (this.dataSize <= this.maxDataSize) {
- return;
- }
-
- var message =
- 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';
- this._emitError(new Error(message));
-};
-
-CombinedStream.prototype._updateDataSize = function() {
- this.dataSize = 0;
-
- var self = this;
- this._streams.forEach(function(stream) {
- if (!stream.dataSize) {
- return;
- }
-
- self.dataSize += stream.dataSize;
- });
-
- if (this._currentStream && this._currentStream.dataSize) {
- this.dataSize += this._currentStream.dataSize;
- }
-};
-
-CombinedStream.prototype._emitError = function(err) {
- this._reset();
- this.emit('error', err);
-};
diff --git a/node_modules/combined-stream/package.json b/node_modules/combined-stream/package.json
deleted file mode 100644
index a7ff4b9..0000000
--- a/node_modules/combined-stream/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_from": "combined-stream@~1.0.6",
- "_id": "combined-stream@1.0.8",
- "_inBundle": false,
- "_integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "_location": "/combined-stream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "combined-stream@~1.0.6",
- "name": "combined-stream",
- "escapedName": "combined-stream",
- "rawSpec": "~1.0.6",
- "saveSpec": null,
- "fetchSpec": "~1.0.6"
- },
- "_requiredBy": [
- "/form-data",
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "_shasum": "c3d45a8b34fd730631a110a8a2520682b31d5a7f",
- "_spec": "combined-stream@~1.0.6",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Felix Geisendörfer",
- "email": "felix@debuggable.com",
- "url": "http://debuggable.com/"
- },
- "bugs": {
- "url": "https://github.com/felixge/node-combined-stream/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "delayed-stream": "~1.0.0"
- },
- "deprecated": false,
- "description": "A stream that emits multiple other streams one after another.",
- "devDependencies": {
- "far": "~0.0.7"
- },
- "engines": {
- "node": ">= 0.8"
- },
- "homepage": "https://github.com/felixge/node-combined-stream",
- "license": "MIT",
- "main": "./lib/combined_stream",
- "name": "combined-stream",
- "repository": {
- "type": "git",
- "url": "git://github.com/felixge/node-combined-stream.git"
- },
- "scripts": {
- "test": "node test/run.js"
- },
- "version": "1.0.8"
-}
diff --git a/node_modules/combined-stream/yarn.lock b/node_modules/combined-stream/yarn.lock
deleted file mode 100644
index 7edf418..0000000
--- a/node_modules/combined-stream/yarn.lock
+++ /dev/null
@@ -1,17 +0,0 @@
-# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
-# yarn lockfile v1
-
-
-delayed-stream@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
-
-far@~0.0.7:
- version "0.0.7"
- resolved "https://registry.yarnpkg.com/far/-/far-0.0.7.tgz#01c1fd362bcd26ce9cf161af3938aa34619f79a7"
- dependencies:
- oop "0.0.3"
-
-oop@0.0.3:
- version "0.0.3"
- resolved "https://registry.yarnpkg.com/oop/-/oop-0.0.3.tgz#70fa405a5650891a194fdc82ca68dad6dabf4401"
diff --git a/node_modules/concat-map/.travis.yml b/node_modules/concat-map/.travis.yml
deleted file mode 100644
index f1d0f13..0000000
--- a/node_modules/concat-map/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.4
- - 0.6
diff --git a/node_modules/concat-map/LICENSE b/node_modules/concat-map/LICENSE
deleted file mode 100644
index ee27ba4..0000000
--- a/node_modules/concat-map/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-This software is released under the MIT license:
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/concat-map/README.markdown b/node_modules/concat-map/README.markdown
deleted file mode 100644
index 408f70a..0000000
--- a/node_modules/concat-map/README.markdown
+++ /dev/null
@@ -1,62 +0,0 @@
-concat-map
-==========
-
-Concatenative mapdashery.
-
-[![browser support](http://ci.testling.com/substack/node-concat-map.png)](http://ci.testling.com/substack/node-concat-map)
-
-[![build status](https://secure.travis-ci.org/substack/node-concat-map.png)](http://travis-ci.org/substack/node-concat-map)
-
-example
-=======
-
-``` js
-var concatMap = require('concat-map');
-var xs = [ 1, 2, 3, 4, 5, 6 ];
-var ys = concatMap(xs, function (x) {
- return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
-});
-console.dir(ys);
-```
-
-***
-
-```
-[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]
-```
-
-methods
-=======
-
-``` js
-var concatMap = require('concat-map')
-```
-
-concatMap(xs, fn)
------------------
-
-Return an array of concatenated elements by calling `fn(x, i)` for each element
-`x` and each index `i` in the array `xs`.
-
-When `fn(x, i)` returns an array, its result will be concatenated with the
-result array. If `fn(x, i)` returns anything else, that value will be pushed
-onto the end of the result array.
-
-install
-=======
-
-With [npm](http://npmjs.org) do:
-
-```
-npm install concat-map
-```
-
-license
-=======
-
-MIT
-
-notes
-=====
-
-This module was written while sitting high above the ground in a tree.
diff --git a/node_modules/concat-map/example/map.js b/node_modules/concat-map/example/map.js
deleted file mode 100644
index 3365621..0000000
--- a/node_modules/concat-map/example/map.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var concatMap = require('../');
-var xs = [ 1, 2, 3, 4, 5, 6 ];
-var ys = concatMap(xs, function (x) {
- return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
-});
-console.dir(ys);
diff --git a/node_modules/concat-map/index.js b/node_modules/concat-map/index.js
deleted file mode 100644
index b29a781..0000000
--- a/node_modules/concat-map/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-module.exports = function (xs, fn) {
- var res = [];
- for (var i = 0; i < xs.length; i++) {
- var x = fn(xs[i], i);
- if (isArray(x)) res.push.apply(res, x);
- else res.push(x);
- }
- return res;
-};
-
-var isArray = Array.isArray || function (xs) {
- return Object.prototype.toString.call(xs) === '[object Array]';
-};
diff --git a/node_modules/concat-map/package.json b/node_modules/concat-map/package.json
deleted file mode 100644
index b34cac2..0000000
--- a/node_modules/concat-map/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "concat-map@0.0.1",
- "_id": "concat-map@0.0.1",
- "_inBundle": false,
- "_integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
- "_location": "/concat-map",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "concat-map@0.0.1",
- "name": "concat-map",
- "escapedName": "concat-map",
- "rawSpec": "0.0.1",
- "saveSpec": null,
- "fetchSpec": "0.0.1"
- },
- "_requiredBy": [
- "/brace-expansion"
- ],
- "_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "_shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
- "_spec": "concat-map@0.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/brace-expansion",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "bugs": {
- "url": "https://github.com/substack/node-concat-map/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "concatenative mapdashery",
- "devDependencies": {
- "tape": "~2.4.0"
- },
- "directories": {
- "example": "example",
- "test": "test"
- },
- "homepage": "https://github.com/substack/node-concat-map#readme",
- "keywords": [
- "concat",
- "concatMap",
- "map",
- "functional",
- "higher-order"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "concat-map",
- "repository": {
- "type": "git",
- "url": "git://github.com/substack/node-concat-map.git"
- },
- "scripts": {
- "test": "tape test/*.js"
- },
- "testling": {
- "files": "test/*.js",
- "browsers": {
- "ie": [
- 6,
- 7,
- 8,
- 9
- ],
- "ff": [
- 3.5,
- 10,
- 15
- ],
- "chrome": [
- 10,
- 22
- ],
- "safari": [
- 5.1
- ],
- "opera": [
- 12
- ]
- }
- },
- "version": "0.0.1"
-}
diff --git a/node_modules/concat-map/test/map.js b/node_modules/concat-map/test/map.js
deleted file mode 100644
index fdbd702..0000000
--- a/node_modules/concat-map/test/map.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var concatMap = require('../');
-var test = require('tape');
-
-test('empty or not', function (t) {
- var xs = [ 1, 2, 3, 4, 5, 6 ];
- var ixes = [];
- var ys = concatMap(xs, function (x, ix) {
- ixes.push(ix);
- return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
- });
- t.same(ys, [ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]);
- t.same(ixes, [ 0, 1, 2, 3, 4, 5 ]);
- t.end();
-});
-
-test('always something', function (t) {
- var xs = [ 'a', 'b', 'c', 'd' ];
- var ys = concatMap(xs, function (x) {
- return x === 'b' ? [ 'B', 'B', 'B' ] : [ x ];
- });
- t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
- t.end();
-});
-
-test('scalars', function (t) {
- var xs = [ 'a', 'b', 'c', 'd' ];
- var ys = concatMap(xs, function (x) {
- return x === 'b' ? [ 'B', 'B', 'B' ] : x;
- });
- t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
- t.end();
-});
-
-test('undefs', function (t) {
- var xs = [ 'a', 'b', 'c', 'd' ];
- var ys = concatMap(xs, function () {});
- t.same(ys, [ undefined, undefined, undefined, undefined ]);
- t.end();
-});
diff --git a/node_modules/console-control-strings/LICENSE b/node_modules/console-control-strings/LICENSE
deleted file mode 100644
index e756052..0000000
--- a/node_modules/console-control-strings/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2014, Rebecca Turner <me@re-becca.org>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/console-control-strings/README.md b/node_modules/console-control-strings/README.md
deleted file mode 100644
index f58cc8d..0000000
--- a/node_modules/console-control-strings/README.md
+++ /dev/null
@@ -1,145 +0,0 @@
-# Console Control Strings
-
-A library of cross-platform tested terminal/console command strings for
-doing things like color and cursor positioning. This is a subset of both
-ansi and vt100. All control codes included work on both Windows & Unix-like
-OSes, except where noted.
-
-## Usage
-
-```js
-var consoleControl = require('console-control-strings')
-
-console.log(consoleControl.color('blue','bgRed', 'bold') + 'hi there' + consoleControl.color('reset'))
-process.stdout.write(consoleControl.goto(75, 10))
-```
-
-## Why Another?
-
-There are tons of libraries similar to this one. I wanted one that was:
-
-1. Very clear about compatibility goals.
-2. Could emit, for instance, a start color code without an end one.
-3. Returned strings w/o writing to streams.
-4. Was not weighed down with other unrelated baggage.
-
-## Functions
-
-### var code = consoleControl.up(_num = 1_)
-
-Returns the escape sequence to move _num_ lines up.
-
-### var code = consoleControl.down(_num = 1_)
-
-Returns the escape sequence to move _num_ lines down.
-
-### var code = consoleControl.forward(_num = 1_)
-
-Returns the escape sequence to move _num_ lines righ.
-
-### var code = consoleControl.back(_num = 1_)
-
-Returns the escape sequence to move _num_ lines left.
-
-### var code = consoleControl.nextLine(_num = 1_)
-
-Returns the escape sequence to move _num_ lines down and to the beginning of
-the line.
-
-### var code = consoleControl.previousLine(_num = 1_)
-
-Returns the escape sequence to move _num_ lines up and to the beginning of
-the line.
-
-### var code = consoleControl.eraseData()
-
-Returns the escape sequence to erase everything from the current cursor
-position to the bottom right of the screen. This is line based, so it
-erases the remainder of the current line and all following lines.
-
-### var code = consoleControl.eraseLine()
-
-Returns the escape sequence to erase to the end of the current line.
-
-### var code = consoleControl.goto(_x_, _y_)
-
-Returns the escape sequence to move the cursor to the designated position.
-Note that the origin is _1, 1_ not _0, 0_.
-
-### var code = consoleControl.gotoSOL()
-
-Returns the escape sequence to move the cursor to the beginning of the
-current line. (That is, it returns a carriage return, `\r`.)
-
-### var code = consoleControl.beep()
-
-Returns the escape sequence to cause the termianl to beep. (That is, it
-returns unicode character `\x0007`, a Control-G.)
-
-### var code = consoleControl.hideCursor()
-
-Returns the escape sequence to hide the cursor.
-
-### var code = consoleControl.showCursor()
-
-Returns the escape sequence to show the cursor.
-
-### var code = consoleControl.color(_colors = []_)
-
-### var code = consoleControl.color(_color1_, _color2_, _…_, _colorn_)
-
-Returns the escape sequence to set the current terminal display attributes
-(mostly colors). Arguments can either be a list of attributes or an array
-of attributes. The difference between passing in an array or list of colors
-and calling `.color` separately for each one, is that in the former case a
-single escape sequence will be produced where as in the latter each change
-will have its own distinct escape sequence. Each attribute can be one of:
-
-* Reset:
- * **reset** – Reset all attributes to the terminal default.
-* Styles:
- * **bold** – Display text as bold. In some terminals this means using a
- bold font, in others this means changing the color. In some it means
- both.
- * **italic** – Display text as italic. This is not available in most Windows terminals.
- * **underline** – Underline text. This is not available in most Windows Terminals.
- * **inverse** – Invert the foreground and background colors.
- * **stopBold** – Do not display text as bold.
- * **stopItalic** – Do not display text as italic.
- * **stopUnderline** – Do not underline text.
- * **stopInverse** – Do not invert foreground and background.
-* Colors:
- * **white**
- * **black**
- * **blue**
- * **cyan**
- * **green**
- * **magenta**
- * **red**
- * **yellow**
- * **grey** / **brightBlack**
- * **brightRed**
- * **brightGreen**
- * **brightYellow**
- * **brightBlue**
- * **brightMagenta**
- * **brightCyan**
- * **brightWhite**
-* Background Colors:
- * **bgWhite**
- * **bgBlack**
- * **bgBlue**
- * **bgCyan**
- * **bgGreen**
- * **bgMagenta**
- * **bgRed**
- * **bgYellow**
- * **bgGrey** / **bgBrightBlack**
- * **bgBrightRed**
- * **bgBrightGreen**
- * **bgBrightYellow**
- * **bgBrightBlue**
- * **bgBrightMagenta**
- * **bgBrightCyan**
- * **bgBrightWhite**
-
diff --git a/node_modules/console-control-strings/README.md~ b/node_modules/console-control-strings/README.md~
deleted file mode 100644
index 6eb34e8..0000000
--- a/node_modules/console-control-strings/README.md~
+++ /dev/null
@@ -1,140 +0,0 @@
-# Console Control Strings
-
-A library of cross-platform tested terminal/console command strings for
-doing things like color and cursor positioning. This is a subset of both
-ansi and vt100. All control codes included work on both Windows & Unix-like
-OSes, except where noted.
-
-## Usage
-
-```js
-var consoleControl = require('console-control-strings')
-
-console.log(consoleControl.color('blue','bgRed', 'bold') + 'hi there' + consoleControl.color('reset'))
-process.stdout.write(consoleControl.goto(75, 10))
-```
-
-## Why Another?
-
-There are tons of libraries similar to this one. I wanted one that was:
-
-1. Very clear about compatibility goals.
-2. Could emit, for instance, a start color code without an end one.
-3. Returned strings w/o writing to streams.
-4. Was not weighed down with other unrelated baggage.
-
-## Functions
-
-### var code = consoleControl.up(_num = 1_)
-
-Returns the escape sequence to move _num_ lines up.
-
-### var code = consoleControl.down(_num = 1_)
-
-Returns the escape sequence to move _num_ lines down.
-
-### var code = consoleControl.forward(_num = 1_)
-
-Returns the escape sequence to move _num_ lines righ.
-
-### var code = consoleControl.back(_num = 1_)
-
-Returns the escape sequence to move _num_ lines left.
-
-### var code = consoleControl.nextLine(_num = 1_)
-
-Returns the escape sequence to move _num_ lines down and to the beginning of
-the line.
-
-### var code = consoleControl.previousLine(_num = 1_)
-
-Returns the escape sequence to move _num_ lines up and to the beginning of
-the line.
-
-### var code = consoleControl.eraseData()
-
-Returns the escape sequence to erase everything from the current cursor
-position to the bottom right of the screen. This is line based, so it
-erases the remainder of the current line and all following lines.
-
-### var code = consoleControl.eraseLine()
-
-Returns the escape sequence to erase to the end of the current line.
-
-### var code = consoleControl.goto(_x_, _y_)
-
-Returns the escape sequence to move the cursor to the designated position.
-Note that the origin is _1, 1_ not _0, 0_.
-
-### var code = consoleControl.gotoSOL()
-
-Returns the escape sequence to move the cursor to the beginning of the
-current line. (That is, it returns a carriage return, `\r`.)
-
-### var code = consoleControl.hideCursor()
-
-Returns the escape sequence to hide the cursor.
-
-### var code = consoleControl.showCursor()
-
-Returns the escape sequence to show the cursor.
-
-### var code = consoleControl.color(_colors = []_)
-
-### var code = consoleControl.color(_color1_, _color2_, _…_, _colorn_)
-
-Returns the escape sequence to set the current terminal display attributes
-(mostly colors). Arguments can either be a list of attributes or an array
-of attributes. The difference between passing in an array or list of colors
-and calling `.color` separately for each one, is that in the former case a
-single escape sequence will be produced where as in the latter each change
-will have its own distinct escape sequence. Each attribute can be one of:
-
-* Reset:
- * **reset** – Reset all attributes to the terminal default.
-* Styles:
- * **bold** – Display text as bold. In some terminals this means using a
- bold font, in others this means changing the color. In some it means
- both.
- * **italic** – Display text as italic. This is not available in most Windows terminals.
- * **underline** – Underline text. This is not available in most Windows Terminals.
- * **inverse** – Invert the foreground and background colors.
- * **stopBold** – Do not display text as bold.
- * **stopItalic** – Do not display text as italic.
- * **stopUnderline** – Do not underline text.
- * **stopInverse** – Do not invert foreground and background.
-* Colors:
- * **white**
- * **black**
- * **blue**
- * **cyan**
- * **green**
- * **magenta**
- * **red**
- * **yellow**
- * **grey** / **brightBlack**
- * **brightRed**
- * **brightGreen**
- * **brightYellow**
- * **brightBlue**
- * **brightMagenta**
- * **brightCyan**
- * **brightWhite**
-* Background Colors:
- * **bgWhite**
- * **bgBlack**
- * **bgBlue**
- * **bgCyan**
- * **bgGreen**
- * **bgMagenta**
- * **bgRed**
- * **bgYellow**
- * **bgGrey** / **bgBrightBlack**
- * **bgBrightRed**
- * **bgBrightGreen**
- * **bgBrightYellow**
- * **bgBrightBlue**
- * **bgBrightMagenta**
- * **bgBrightCyan**
- * **bgBrightWhite**
-
diff --git a/node_modules/console-control-strings/index.js b/node_modules/console-control-strings/index.js
deleted file mode 100644
index bf89034..0000000
--- a/node_modules/console-control-strings/index.js
+++ /dev/null
@@ -1,125 +0,0 @@
-'use strict'
-
-// These tables borrowed from `ansi`
-
-var prefix = '\x1b['
-
-exports.up = function up (num) {
- return prefix + (num || '') + 'A'
-}
-
-exports.down = function down (num) {
- return prefix + (num || '') + 'B'
-}
-
-exports.forward = function forward (num) {
- return prefix + (num || '') + 'C'
-}
-
-exports.back = function back (num) {
- return prefix + (num || '') + 'D'
-}
-
-exports.nextLine = function nextLine (num) {
- return prefix + (num || '') + 'E'
-}
-
-exports.previousLine = function previousLine (num) {
- return prefix + (num || '') + 'F'
-}
-
-exports.horizontalAbsolute = function horizontalAbsolute (num) {
- if (num == null) throw new Error('horizontalAboslute requires a column to position to')
- return prefix + num + 'G'
-}
-
-exports.eraseData = function eraseData () {
- return prefix + 'J'
-}
-
-exports.eraseLine = function eraseLine () {
- return prefix + 'K'
-}
-
-exports.goto = function (x, y) {
- return prefix + y + ';' + x + 'H'
-}
-
-exports.gotoSOL = function () {
- return '\r'
-}
-
-exports.beep = function () {
- return '\x07'
-}
-
-exports.hideCursor = function hideCursor () {
- return prefix + '?25l'
-}
-
-exports.showCursor = function showCursor () {
- return prefix + '?25h'
-}
-
-var colors = {
- reset: 0,
-// styles
- bold: 1,
- italic: 3,
- underline: 4,
- inverse: 7,
-// resets
- stopBold: 22,
- stopItalic: 23,
- stopUnderline: 24,
- stopInverse: 27,
-// colors
- white: 37,
- black: 30,
- blue: 34,
- cyan: 36,
- green: 32,
- magenta: 35,
- red: 31,
- yellow: 33,
- bgWhite: 47,
- bgBlack: 40,
- bgBlue: 44,
- bgCyan: 46,
- bgGreen: 42,
- bgMagenta: 45,
- bgRed: 41,
- bgYellow: 43,
-
- grey: 90,
- brightBlack: 90,
- brightRed: 91,
- brightGreen: 92,
- brightYellow: 93,
- brightBlue: 94,
- brightMagenta: 95,
- brightCyan: 96,
- brightWhite: 97,
-
- bgGrey: 100,
- bgBrightBlack: 100,
- bgBrightRed: 101,
- bgBrightGreen: 102,
- bgBrightYellow: 103,
- bgBrightBlue: 104,
- bgBrightMagenta: 105,
- bgBrightCyan: 106,
- bgBrightWhite: 107
-}
-
-exports.color = function color (colorWith) {
- if (arguments.length !== 1 || !Array.isArray(colorWith)) {
- colorWith = Array.prototype.slice.call(arguments)
- }
- return prefix + colorWith.map(colorNameToCode).join(';') + 'm'
-}
-
-function colorNameToCode (color) {
- if (colors[color] != null) return colors[color]
- throw new Error('Unknown color or style name: ' + color)
-}
diff --git a/node_modules/console-control-strings/package.json b/node_modules/console-control-strings/package.json
deleted file mode 100644
index fa3dc39..0000000
--- a/node_modules/console-control-strings/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "_from": "console-control-strings@~1.1.0",
- "_id": "console-control-strings@1.1.0",
- "_inBundle": false,
- "_integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
- "_location": "/console-control-strings",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "console-control-strings@~1.1.0",
- "name": "console-control-strings",
- "escapedName": "console-control-strings",
- "rawSpec": "~1.1.0",
- "saveSpec": null,
- "fetchSpec": "~1.1.0"
- },
- "_requiredBy": [
- "/gauge",
- "/npmlog"
- ],
- "_resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "_shasum": "3d7cf4464db6446ea644bf4b39507f9851008e8e",
- "_spec": "console-control-strings@~1.1.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/npmlog",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org",
- "url": "http://re-becca.org/"
- },
- "bugs": {
- "url": "https://github.com/iarna/console-control-strings/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.",
- "devDependencies": {
- "standard": "^7.1.2",
- "tap": "^5.7.2"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "LICENSE",
- "index.js"
- ],
- "homepage": "https://github.com/iarna/console-control-strings#readme",
- "keywords": [],
- "license": "ISC",
- "main": "index.js",
- "name": "console-control-strings",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/console-control-strings.git"
- },
- "scripts": {
- "test": "standard && tap test/*.js"
- },
- "version": "1.1.0"
-}
diff --git a/node_modules/core-util-is/LICENSE b/node_modules/core-util-is/LICENSE
deleted file mode 100644
index d8d7f94..0000000
--- a/node_modules/core-util-is/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright Node.js contributors. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
diff --git a/node_modules/core-util-is/README.md b/node_modules/core-util-is/README.md
deleted file mode 100644
index 5a76b41..0000000
--- a/node_modules/core-util-is/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# core-util-is
-
-The `util.is*` functions introduced in Node v0.12.
diff --git a/node_modules/core-util-is/float.patch b/node_modules/core-util-is/float.patch
deleted file mode 100644
index a06d5c0..0000000
--- a/node_modules/core-util-is/float.patch
+++ /dev/null
@@ -1,604 +0,0 @@
-diff --git a/lib/util.js b/lib/util.js
-index a03e874..9074e8e 100644
---- a/lib/util.js
-+++ b/lib/util.js
-@@ -19,430 +19,6 @@
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
-
--var formatRegExp = /%[sdj%]/g;
--exports.format = function(f) {
-- if (!isString(f)) {
-- var objects = [];
-- for (var i = 0; i < arguments.length; i++) {
-- objects.push(inspect(arguments[i]));
-- }
-- return objects.join(' ');
-- }
--
-- var i = 1;
-- var args = arguments;
-- var len = args.length;
-- var str = String(f).replace(formatRegExp, function(x) {
-- if (x === '%%') return '%';
-- if (i >= len) return x;
-- switch (x) {
-- case '%s': return String(args[i++]);
-- case '%d': return Number(args[i++]);
-- case '%j':
-- try {
-- return JSON.stringify(args[i++]);
-- } catch (_) {
-- return '[Circular]';
-- }
-- default:
-- return x;
-- }
-- });
-- for (var x = args[i]; i < len; x = args[++i]) {
-- if (isNull(x) || !isObject(x)) {
-- str += ' ' + x;
-- } else {
-- str += ' ' + inspect(x);
-- }
-- }
-- return str;
--};
--
--
--// Mark that a method should not be used.
--// Returns a modified function which warns once by default.
--// If --no-deprecation is set, then it is a no-op.
--exports.deprecate = function(fn, msg) {
-- // Allow for deprecating things in the process of starting up.
-- if (isUndefined(global.process)) {
-- return function() {
-- return exports.deprecate(fn, msg).apply(this, arguments);
-- };
-- }
--
-- if (process.noDeprecation === true) {
-- return fn;
-- }
--
-- var warned = false;
-- function deprecated() {
-- if (!warned) {
-- if (process.throwDeprecation) {
-- throw new Error(msg);
-- } else if (process.traceDeprecation) {
-- console.trace(msg);
-- } else {
-- console.error(msg);
-- }
-- warned = true;
-- }
-- return fn.apply(this, arguments);
-- }
--
-- return deprecated;
--};
--
--
--var debugs = {};
--var debugEnviron;
--exports.debuglog = function(set) {
-- if (isUndefined(debugEnviron))
-- debugEnviron = process.env.NODE_DEBUG || '';
-- set = set.toUpperCase();
-- if (!debugs[set]) {
-- if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
-- var pid = process.pid;
-- debugs[set] = function() {
-- var msg = exports.format.apply(exports, arguments);
-- console.error('%s %d: %s', set, pid, msg);
-- };
-- } else {
-- debugs[set] = function() {};
-- }
-- }
-- return debugs[set];
--};
--
--
--/**
-- * Echos the value of a value. Trys to print the value out
-- * in the best way possible given the different types.
-- *
-- * @param {Object} obj The object to print out.
-- * @param {Object} opts Optional options object that alters the output.
-- */
--/* legacy: obj, showHidden, depth, colors*/
--function inspect(obj, opts) {
-- // default options
-- var ctx = {
-- seen: [],
-- stylize: stylizeNoColor
-- };
-- // legacy...
-- if (arguments.length >= 3) ctx.depth = arguments[2];
-- if (arguments.length >= 4) ctx.colors = arguments[3];
-- if (isBoolean(opts)) {
-- // legacy...
-- ctx.showHidden = opts;
-- } else if (opts) {
-- // got an "options" object
-- exports._extend(ctx, opts);
-- }
-- // set default options
-- if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
-- if (isUndefined(ctx.depth)) ctx.depth = 2;
-- if (isUndefined(ctx.colors)) ctx.colors = false;
-- if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
-- if (ctx.colors) ctx.stylize = stylizeWithColor;
-- return formatValue(ctx, obj, ctx.depth);
--}
--exports.inspect = inspect;
--
--
--// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
--inspect.colors = {
-- 'bold' : [1, 22],
-- 'italic' : [3, 23],
-- 'underline' : [4, 24],
-- 'inverse' : [7, 27],
-- 'white' : [37, 39],
-- 'grey' : [90, 39],
-- 'black' : [30, 39],
-- 'blue' : [34, 39],
-- 'cyan' : [36, 39],
-- 'green' : [32, 39],
-- 'magenta' : [35, 39],
-- 'red' : [31, 39],
-- 'yellow' : [33, 39]
--};
--
--// Don't use 'blue' not visible on cmd.exe
--inspect.styles = {
-- 'special': 'cyan',
-- 'number': 'yellow',
-- 'boolean': 'yellow',
-- 'undefined': 'grey',
-- 'null': 'bold',
-- 'string': 'green',
-- 'date': 'magenta',
-- // "name": intentionally not styling
-- 'regexp': 'red'
--};
--
--
--function stylizeWithColor(str, styleType) {
-- var style = inspect.styles[styleType];
--
-- if (style) {
-- return '\u001b[' + inspect.colors[style][0] + 'm' + str +
-- '\u001b[' + inspect.colors[style][1] + 'm';
-- } else {
-- return str;
-- }
--}
--
--
--function stylizeNoColor(str, styleType) {
-- return str;
--}
--
--
--function arrayToHash(array) {
-- var hash = {};
--
-- array.forEach(function(val, idx) {
-- hash[val] = true;
-- });
--
-- return hash;
--}
--
--
--function formatValue(ctx, value, recurseTimes) {
-- // Provide a hook for user-specified inspect functions.
-- // Check that value is an object with an inspect function on it
-- if (ctx.customInspect &&
-- value &&
-- isFunction(value.inspect) &&
-- // Filter out the util module, it's inspect function is special
-- value.inspect !== exports.inspect &&
-- // Also filter out any prototype objects using the circular check.
-- !(value.constructor && value.constructor.prototype === value)) {
-- var ret = value.inspect(recurseTimes, ctx);
-- if (!isString(ret)) {
-- ret = formatValue(ctx, ret, recurseTimes);
-- }
-- return ret;
-- }
--
-- // Primitive types cannot have properties
-- var primitive = formatPrimitive(ctx, value);
-- if (primitive) {
-- return primitive;
-- }
--
-- // Look up the keys of the object.
-- var keys = Object.keys(value);
-- var visibleKeys = arrayToHash(keys);
--
-- if (ctx.showHidden) {
-- keys = Object.getOwnPropertyNames(value);
-- }
--
-- // Some type of object without properties can be shortcutted.
-- if (keys.length === 0) {
-- if (isFunction(value)) {
-- var name = value.name ? ': ' + value.name : '';
-- return ctx.stylize('[Function' + name + ']', 'special');
-- }
-- if (isRegExp(value)) {
-- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
-- }
-- if (isDate(value)) {
-- return ctx.stylize(Date.prototype.toString.call(value), 'date');
-- }
-- if (isError(value)) {
-- return formatError(value);
-- }
-- }
--
-- var base = '', array = false, braces = ['{', '}'];
--
-- // Make Array say that they are Array
-- if (isArray(value)) {
-- array = true;
-- braces = ['[', ']'];
-- }
--
-- // Make functions say that they are functions
-- if (isFunction(value)) {
-- var n = value.name ? ': ' + value.name : '';
-- base = ' [Function' + n + ']';
-- }
--
-- // Make RegExps say that they are RegExps
-- if (isRegExp(value)) {
-- base = ' ' + RegExp.prototype.toString.call(value);
-- }
--
-- // Make dates with properties first say the date
-- if (isDate(value)) {
-- base = ' ' + Date.prototype.toUTCString.call(value);
-- }
--
-- // Make error with message first say the error
-- if (isError(value)) {
-- base = ' ' + formatError(value);
-- }
--
-- if (keys.length === 0 && (!array || value.length == 0)) {
-- return braces[0] + base + braces[1];
-- }
--
-- if (recurseTimes < 0) {
-- if (isRegExp(value)) {
-- return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
-- } else {
-- return ctx.stylize('[Object]', 'special');
-- }
-- }
--
-- ctx.seen.push(value);
--
-- var output;
-- if (array) {
-- output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
-- } else {
-- output = keys.map(function(key) {
-- return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
-- });
-- }
--
-- ctx.seen.pop();
--
-- return reduceToSingleString(output, base, braces);
--}
--
--
--function formatPrimitive(ctx, value) {
-- if (isUndefined(value))
-- return ctx.stylize('undefined', 'undefined');
-- if (isString(value)) {
-- var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
-- .replace(/'/g, "\\'")
-- .replace(/\\"/g, '"') + '\'';
-- return ctx.stylize(simple, 'string');
-- }
-- if (isNumber(value)) {
-- // Format -0 as '-0'. Strict equality won't distinguish 0 from -0,
-- // so instead we use the fact that 1 / -0 < 0 whereas 1 / 0 > 0 .
-- if (value === 0 && 1 / value < 0)
-- return ctx.stylize('-0', 'number');
-- return ctx.stylize('' + value, 'number');
-- }
-- if (isBoolean(value))
-- return ctx.stylize('' + value, 'boolean');
-- // For some reason typeof null is "object", so special case here.
-- if (isNull(value))
-- return ctx.stylize('null', 'null');
--}
--
--
--function formatError(value) {
-- return '[' + Error.prototype.toString.call(value) + ']';
--}
--
--
--function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
-- var output = [];
-- for (var i = 0, l = value.length; i < l; ++i) {
-- if (hasOwnProperty(value, String(i))) {
-- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
-- String(i), true));
-- } else {
-- output.push('');
-- }
-- }
-- keys.forEach(function(key) {
-- if (!key.match(/^\d+$/)) {
-- output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
-- key, true));
-- }
-- });
-- return output;
--}
--
--
--function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
-- var name, str, desc;
-- desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
-- if (desc.get) {
-- if (desc.set) {
-- str = ctx.stylize('[Getter/Setter]', 'special');
-- } else {
-- str = ctx.stylize('[Getter]', 'special');
-- }
-- } else {
-- if (desc.set) {
-- str = ctx.stylize('[Setter]', 'special');
-- }
-- }
-- if (!hasOwnProperty(visibleKeys, key)) {
-- name = '[' + key + ']';
-- }
-- if (!str) {
-- if (ctx.seen.indexOf(desc.value) < 0) {
-- if (isNull(recurseTimes)) {
-- str = formatValue(ctx, desc.value, null);
-- } else {
-- str = formatValue(ctx, desc.value, recurseTimes - 1);
-- }
-- if (str.indexOf('\n') > -1) {
-- if (array) {
-- str = str.split('\n').map(function(line) {
-- return ' ' + line;
-- }).join('\n').substr(2);
-- } else {
-- str = '\n' + str.split('\n').map(function(line) {
-- return ' ' + line;
-- }).join('\n');
-- }
-- }
-- } else {
-- str = ctx.stylize('[Circular]', 'special');
-- }
-- }
-- if (isUndefined(name)) {
-- if (array && key.match(/^\d+$/)) {
-- return str;
-- }
-- name = JSON.stringify('' + key);
-- if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
-- name = name.substr(1, name.length - 2);
-- name = ctx.stylize(name, 'name');
-- } else {
-- name = name.replace(/'/g, "\\'")
-- .replace(/\\"/g, '"')
-- .replace(/(^"|"$)/g, "'");
-- name = ctx.stylize(name, 'string');
-- }
-- }
--
-- return name + ': ' + str;
--}
--
--
--function reduceToSingleString(output, base, braces) {
-- var numLinesEst = 0;
-- var length = output.reduce(function(prev, cur) {
-- numLinesEst++;
-- if (cur.indexOf('\n') >= 0) numLinesEst++;
-- return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
-- }, 0);
--
-- if (length > 60) {
-- return braces[0] +
-- (base === '' ? '' : base + '\n ') +
-- ' ' +
-- output.join(',\n ') +
-- ' ' +
-- braces[1];
-- }
--
-- return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
--}
--
--
- // NOTE: These type checking functions intentionally don't use `instanceof`
- // because it is fragile and can be easily faked with `Object.create()`.
- function isArray(ar) {
-@@ -522,166 +98,10 @@ function isPrimitive(arg) {
- exports.isPrimitive = isPrimitive;
-
- function isBuffer(arg) {
-- return arg instanceof Buffer;
-+ return Buffer.isBuffer(arg);
- }
- exports.isBuffer = isBuffer;
-
- function objectToString(o) {
- return Object.prototype.toString.call(o);
--}
--
--
--function pad(n) {
-- return n < 10 ? '0' + n.toString(10) : n.toString(10);
--}
--
--
--var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
-- 'Oct', 'Nov', 'Dec'];
--
--// 26 Feb 16:19:34
--function timestamp() {
-- var d = new Date();
-- var time = [pad(d.getHours()),
-- pad(d.getMinutes()),
-- pad(d.getSeconds())].join(':');
-- return [d.getDate(), months[d.getMonth()], time].join(' ');
--}
--
--
--// log is just a thin wrapper to console.log that prepends a timestamp
--exports.log = function() {
-- console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));
--};
--
--
--/**
-- * Inherit the prototype methods from one constructor into another.
-- *
-- * The Function.prototype.inherits from lang.js rewritten as a standalone
-- * function (not on Function.prototype). NOTE: If this file is to be loaded
-- * during bootstrapping this function needs to be rewritten using some native
-- * functions as prototype setup using normal JavaScript does not work as
-- * expected during bootstrapping (see mirror.js in r114903).
-- *
-- * @param {function} ctor Constructor function which needs to inherit the
-- * prototype.
-- * @param {function} superCtor Constructor function to inherit prototype from.
-- */
--exports.inherits = function(ctor, superCtor) {
-- ctor.super_ = superCtor;
-- ctor.prototype = Object.create(superCtor.prototype, {
-- constructor: {
-- value: ctor,
-- enumerable: false,
-- writable: true,
-- configurable: true
-- }
-- });
--};
--
--exports._extend = function(origin, add) {
-- // Don't do anything if add isn't an object
-- if (!add || !isObject(add)) return origin;
--
-- var keys = Object.keys(add);
-- var i = keys.length;
-- while (i--) {
-- origin[keys[i]] = add[keys[i]];
-- }
-- return origin;
--};
--
--function hasOwnProperty(obj, prop) {
-- return Object.prototype.hasOwnProperty.call(obj, prop);
--}
--
--
--// Deprecated old stuff.
--
--exports.p = exports.deprecate(function() {
-- for (var i = 0, len = arguments.length; i < len; ++i) {
-- console.error(exports.inspect(arguments[i]));
-- }
--}, 'util.p: Use console.error() instead');
--
--
--exports.exec = exports.deprecate(function() {
-- return require('child_process').exec.apply(this, arguments);
--}, 'util.exec is now called `child_process.exec`.');
--
--
--exports.print = exports.deprecate(function() {
-- for (var i = 0, len = arguments.length; i < len; ++i) {
-- process.stdout.write(String(arguments[i]));
-- }
--}, 'util.print: Use console.log instead');
--
--
--exports.puts = exports.deprecate(function() {
-- for (var i = 0, len = arguments.length; i < len; ++i) {
-- process.stdout.write(arguments[i] + '\n');
-- }
--}, 'util.puts: Use console.log instead');
--
--
--exports.debug = exports.deprecate(function(x) {
-- process.stderr.write('DEBUG: ' + x + '\n');
--}, 'util.debug: Use console.error instead');
--
--
--exports.error = exports.deprecate(function(x) {
-- for (var i = 0, len = arguments.length; i < len; ++i) {
-- process.stderr.write(arguments[i] + '\n');
-- }
--}, 'util.error: Use console.error instead');
--
--
--exports.pump = exports.deprecate(function(readStream, writeStream, callback) {
-- var callbackCalled = false;
--
-- function call(a, b, c) {
-- if (callback && !callbackCalled) {
-- callback(a, b, c);
-- callbackCalled = true;
-- }
-- }
--
-- readStream.addListener('data', function(chunk) {
-- if (writeStream.write(chunk) === false) readStream.pause();
-- });
--
-- writeStream.addListener('drain', function() {
-- readStream.resume();
-- });
--
-- readStream.addListener('end', function() {
-- writeStream.end();
-- });
--
-- readStream.addListener('close', function() {
-- call();
-- });
--
-- readStream.addListener('error', function(err) {
-- writeStream.end();
-- call(err);
-- });
--
-- writeStream.addListener('error', function(err) {
-- readStream.destroy();
-- call(err);
-- });
--}, 'util.pump(): Use readableStream.pipe() instead');
--
--
--var uv;
--exports._errnoException = function(err, syscall) {
-- if (isUndefined(uv)) uv = process.binding('uv');
-- var errname = uv.errname(err);
-- var e = new Error(syscall + ' ' + errname);
-- e.code = errname;
-- e.errno = errname;
-- e.syscall = syscall;
-- return e;
--};
-+} \ No newline at end of file
diff --git a/node_modules/core-util-is/lib/util.js b/node_modules/core-util-is/lib/util.js
deleted file mode 100644
index ff4c851..0000000
--- a/node_modules/core-util-is/lib/util.js
+++ /dev/null
@@ -1,107 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// NOTE: These type checking functions intentionally don't use `instanceof`
-// because it is fragile and can be easily faked with `Object.create()`.
-
-function isArray(arg) {
- if (Array.isArray) {
- return Array.isArray(arg);
- }
- return objectToString(arg) === '[object Array]';
-}
-exports.isArray = isArray;
-
-function isBoolean(arg) {
- return typeof arg === 'boolean';
-}
-exports.isBoolean = isBoolean;
-
-function isNull(arg) {
- return arg === null;
-}
-exports.isNull = isNull;
-
-function isNullOrUndefined(arg) {
- return arg == null;
-}
-exports.isNullOrUndefined = isNullOrUndefined;
-
-function isNumber(arg) {
- return typeof arg === 'number';
-}
-exports.isNumber = isNumber;
-
-function isString(arg) {
- return typeof arg === 'string';
-}
-exports.isString = isString;
-
-function isSymbol(arg) {
- return typeof arg === 'symbol';
-}
-exports.isSymbol = isSymbol;
-
-function isUndefined(arg) {
- return arg === void 0;
-}
-exports.isUndefined = isUndefined;
-
-function isRegExp(re) {
- return objectToString(re) === '[object RegExp]';
-}
-exports.isRegExp = isRegExp;
-
-function isObject(arg) {
- return typeof arg === 'object' && arg !== null;
-}
-exports.isObject = isObject;
-
-function isDate(d) {
- return objectToString(d) === '[object Date]';
-}
-exports.isDate = isDate;
-
-function isError(e) {
- return (objectToString(e) === '[object Error]' || e instanceof Error);
-}
-exports.isError = isError;
-
-function isFunction(arg) {
- return typeof arg === 'function';
-}
-exports.isFunction = isFunction;
-
-function isPrimitive(arg) {
- return arg === null ||
- typeof arg === 'boolean' ||
- typeof arg === 'number' ||
- typeof arg === 'string' ||
- typeof arg === 'symbol' || // ES6 symbol
- typeof arg === 'undefined';
-}
-exports.isPrimitive = isPrimitive;
-
-exports.isBuffer = Buffer.isBuffer;
-
-function objectToString(o) {
- return Object.prototype.toString.call(o);
-}
diff --git a/node_modules/core-util-is/package.json b/node_modules/core-util-is/package.json
deleted file mode 100644
index a6a755d..0000000
--- a/node_modules/core-util-is/package.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "_from": "core-util-is@~1.0.0",
- "_id": "core-util-is@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
- "_location": "/core-util-is",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "core-util-is@~1.0.0",
- "name": "core-util-is",
- "escapedName": "core-util-is",
- "rawSpec": "~1.0.0",
- "saveSpec": null,
- "fetchSpec": "~1.0.0"
- },
- "_requiredBy": [
- "/readable-stream",
- "/verror"
- ],
- "_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
- "_shasum": "b5fd54220aa2bc5ab57aab7140c940754503c1a7",
- "_spec": "core-util-is@~1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/readable-stream",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/core-util-is/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "The `util.is*` functions introduced in Node v0.12.",
- "devDependencies": {
- "tap": "^2.3.0"
- },
- "homepage": "https://github.com/isaacs/core-util-is#readme",
- "keywords": [
- "util",
- "isBuffer",
- "isArray",
- "isNumber",
- "isString",
- "isRegExp",
- "isThis",
- "isThat",
- "polyfill"
- ],
- "license": "MIT",
- "main": "lib/util.js",
- "name": "core-util-is",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/core-util-is.git"
- },
- "scripts": {
- "test": "tap test.js"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/core-util-is/test.js b/node_modules/core-util-is/test.js
deleted file mode 100644
index 1a490c6..0000000
--- a/node_modules/core-util-is/test.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var assert = require('tap');
-
-var t = require('./lib/util');
-
-assert.equal(t.isArray([]), true);
-assert.equal(t.isArray({}), false);
-
-assert.equal(t.isBoolean(null), false);
-assert.equal(t.isBoolean(true), true);
-assert.equal(t.isBoolean(false), true);
-
-assert.equal(t.isNull(null), true);
-assert.equal(t.isNull(undefined), false);
-assert.equal(t.isNull(false), false);
-assert.equal(t.isNull(), false);
-
-assert.equal(t.isNullOrUndefined(null), true);
-assert.equal(t.isNullOrUndefined(undefined), true);
-assert.equal(t.isNullOrUndefined(false), false);
-assert.equal(t.isNullOrUndefined(), true);
-
-assert.equal(t.isNumber(null), false);
-assert.equal(t.isNumber('1'), false);
-assert.equal(t.isNumber(1), true);
-
-assert.equal(t.isString(null), false);
-assert.equal(t.isString('1'), true);
-assert.equal(t.isString(1), false);
-
-assert.equal(t.isSymbol(null), false);
-assert.equal(t.isSymbol('1'), false);
-assert.equal(t.isSymbol(1), false);
-assert.equal(t.isSymbol(Symbol()), true);
-
-assert.equal(t.isUndefined(null), false);
-assert.equal(t.isUndefined(undefined), true);
-assert.equal(t.isUndefined(false), false);
-assert.equal(t.isUndefined(), true);
-
-assert.equal(t.isRegExp(null), false);
-assert.equal(t.isRegExp('1'), false);
-assert.equal(t.isRegExp(new RegExp()), true);
-
-assert.equal(t.isObject({}), true);
-assert.equal(t.isObject([]), true);
-assert.equal(t.isObject(new RegExp()), true);
-assert.equal(t.isObject(new Date()), true);
-
-assert.equal(t.isDate(null), false);
-assert.equal(t.isDate('1'), false);
-assert.equal(t.isDate(new Date()), true);
-
-assert.equal(t.isError(null), false);
-assert.equal(t.isError({ err: true }), false);
-assert.equal(t.isError(new Error()), true);
-
-assert.equal(t.isFunction(null), false);
-assert.equal(t.isFunction({ }), false);
-assert.equal(t.isFunction(function() {}), true);
-
-assert.equal(t.isPrimitive(null), true);
-assert.equal(t.isPrimitive(''), true);
-assert.equal(t.isPrimitive(0), true);
-assert.equal(t.isPrimitive(new Date()), false);
-
-assert.equal(t.isBuffer(null), false);
-assert.equal(t.isBuffer({}), false);
-assert.equal(t.isBuffer(new Buffer(0)), true);
diff --git a/node_modules/cross-spawn/.editorconfig b/node_modules/cross-spawn/.editorconfig
deleted file mode 100644
index 8bc4f10..0000000
--- a/node_modules/cross-spawn/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-root = true
-
-[*]
-indent_style = space
-indent_size = 4
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.md]
-trim_trailing_whitespace = false
-
-[package.json]
-indent_size = 2
diff --git a/node_modules/cross-spawn/.eslintrc b/node_modules/cross-spawn/.eslintrc
deleted file mode 100644
index f34b41d..0000000
--- a/node_modules/cross-spawn/.eslintrc
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "root": true,
- "extends": [
- "@satazor/eslint-config/es5",
- "@satazor/eslint-config/addons/node"
- ]
-} \ No newline at end of file
diff --git a/node_modules/cross-spawn/.npmignore b/node_modules/cross-spawn/.npmignore
deleted file mode 100644
index 93f2f73..0000000
--- a/node_modules/cross-spawn/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-node_modules/
-npm-debug.*
-test/
diff --git a/node_modules/cross-spawn/.travis.yml b/node_modules/cross-spawn/.travis.yml
deleted file mode 100644
index 1fc99b1..0000000
--- a/node_modules/cross-spawn/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
- - '0.10'
- - '0.12'
- - '4'
- - '6'
diff --git a/node_modules/cross-spawn/LICENSE b/node_modules/cross-spawn/LICENSE
deleted file mode 100644
index db5e914..0000000
--- a/node_modules/cross-spawn/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014 IndigoUnited
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is furnished
-to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/cross-spawn/README.md b/node_modules/cross-spawn/README.md
deleted file mode 100644
index 7df2d5f..0000000
--- a/node_modules/cross-spawn/README.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# cross-spawn
-
-[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build status][appveyor-image]][appveyor-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url]
-
-[npm-url]:https://npmjs.org/package/cross-spawn
-[downloads-image]:http://img.shields.io/npm/dm/cross-spawn.svg
-[npm-image]:http://img.shields.io/npm/v/cross-spawn.svg
-[travis-url]:https://travis-ci.org/IndigoUnited/node-cross-spawn
-[travis-image]:http://img.shields.io/travis/IndigoUnited/node-cross-spawn/master.svg
-[appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn
-[appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg
-[david-dm-url]:https://david-dm.org/IndigoUnited/node-cross-spawn
-[david-dm-image]:https://img.shields.io/david/IndigoUnited/node-cross-spawn.svg
-[david-dm-dev-url]:https://david-dm.org/IndigoUnited/node-cross-spawn#info=devDependencies
-[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/node-cross-spawn.svg
-
-A cross platform solution to node's spawn and spawnSync.
-
-
-## Installation
-
-`$ npm install cross-spawn`
-
-If you are using `spawnSync` on node 0.10 or older, you will also need to install `spawn-sync`:
-
-`$ npm install spawn-sync`
-
-
-## Why
-
-Node has issues when using spawn on Windows:
-
-- It ignores [PATHEXT](https://github.com/joyent/node/issues/2318)
-- It does not support [shebangs](http://pt.wikipedia.org/wiki/Shebang)
-- It does not allow you to run `del` or `dir`
-- It does not properly escape arguments with spaces or special characters
-
-All these issues are handled correctly by `cross-spawn`.
-There are some known modules, such as [win-spawn](https://github.com/ForbesLindesay/win-spawn), that try to solve this but they are either broken or provide faulty escaping of shell arguments.
-
-
-## Usage
-
-Exactly the same way as node's [`spawn`](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) or [`spawnSync`](https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options), so it's a drop in replacement.
-
-```javascript
-var spawn = require('cross-spawn');
-
-// Spawn NPM asynchronously
-var child = spawn('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });
-
-// Spawn NPM synchronously
-var results = spawn.sync('npm', ['list', '-g', '-depth', '0'], { stdio: 'inherit' });
-```
-
-
-## Tests
-
-`$ npm test`
-
-
-## License
-
-Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
diff --git a/node_modules/cross-spawn/appveyor.yml b/node_modules/cross-spawn/appveyor.yml
deleted file mode 100644
index f8c4e7a..0000000
--- a/node_modules/cross-spawn/appveyor.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-# appveyor file
-# http://www.appveyor.com/docs/appveyor-yml
-
-# build version format
-version: "{build}"
-
-# fix lineendings in Windows
-init:
- - git config --global core.autocrlf input
-
-# what combinations to test
-environment:
- matrix:
- - nodejs_version: 0.10
- - nodejs_version: 0.12
- - nodejs_version: 4
- - nodejs_version: 6
-
-# get the latest stable version of Node 0.STABLE.latest
-install:
- - ps: Install-Product node $env:nodejs_version
- - npm install
-
-build: off
-
-test_script:
- - node --version
- - npm --version
- - cmd: npm test --no-color
diff --git a/node_modules/cross-spawn/index.js b/node_modules/cross-spawn/index.js
deleted file mode 100644
index 7814a96..0000000
--- a/node_modules/cross-spawn/index.js
+++ /dev/null
@@ -1,59 +0,0 @@
-'use strict';
-
-var cp = require('child_process');
-var parse = require('./lib/parse');
-var enoent = require('./lib/enoent');
-
-var cpSpawnSync = cp.spawnSync;
-
-function spawn(command, args, options) {
- var parsed;
- var spawned;
-
- // Parse the arguments
- parsed = parse(command, args, options);
-
- // Spawn the child process
- spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
-
- // Hook into child process "exit" event to emit an error if the command
- // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
- enoent.hookChildProcess(spawned, parsed);
-
- return spawned;
-}
-
-function spawnSync(command, args, options) {
- var parsed;
- var result;
-
- if (!cpSpawnSync) {
- try {
- cpSpawnSync = require('spawn-sync'); // eslint-disable-line global-require
- } catch (ex) {
- throw new Error(
- 'In order to use spawnSync on node 0.10 or older, you must ' +
- 'install spawn-sync:\n\n' +
- ' npm install spawn-sync --save'
- );
- }
- }
-
- // Parse the arguments
- parsed = parse(command, args, options);
-
- // Spawn the child process
- result = cpSpawnSync(parsed.command, parsed.args, parsed.options);
-
- // Analyze if the command does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
-
- return result;
-}
-
-module.exports = spawn;
-module.exports.spawn = spawn;
-module.exports.sync = spawnSync;
-
-module.exports._parse = parse;
-module.exports._enoent = enoent;
diff --git a/node_modules/cross-spawn/lib/enoent.js b/node_modules/cross-spawn/lib/enoent.js
deleted file mode 100644
index 74ff06e..0000000
--- a/node_modules/cross-spawn/lib/enoent.js
+++ /dev/null
@@ -1,73 +0,0 @@
-'use strict';
-
-var isWin = process.platform === 'win32';
-var resolveCommand = require('./resolveCommand');
-
-var isNode10 = process.version.indexOf('v0.10.') === 0;
-
-function notFoundError(command, syscall) {
- var err;
-
- err = new Error(syscall + ' ' + command + ' ENOENT');
- err.code = err.errno = 'ENOENT';
- err.syscall = syscall + ' ' + command;
-
- return err;
-}
-
-function hookChildProcess(cp, parsed) {
- var originalEmit;
-
- if (!isWin) {
- return;
- }
-
- originalEmit = cp.emit;
- cp.emit = function (name, arg1) {
- var err;
-
- // If emitting "exit" event and exit code is 1, we need to check if
- // the command exists and emit an "error" instead
- // See: https://github.com/IndigoUnited/node-cross-spawn/issues/16
- if (name === 'exit') {
- err = verifyENOENT(arg1, parsed, 'spawn');
-
- if (err) {
- return originalEmit.call(cp, 'error', err);
- }
- }
-
- return originalEmit.apply(cp, arguments);
- };
-}
-
-function verifyENOENT(status, parsed) {
- if (isWin && status === 1 && !parsed.file) {
- return notFoundError(parsed.original, 'spawn');
- }
-
- return null;
-}
-
-function verifyENOENTSync(status, parsed) {
- if (isWin && status === 1 && !parsed.file) {
- return notFoundError(parsed.original, 'spawnSync');
- }
-
- // If we are in node 10, then we are using spawn-sync; if it exited
- // with -1 it probably means that the command does not exist
- if (isNode10 && status === -1) {
- parsed.file = isWin ? parsed.file : resolveCommand(parsed.original);
-
- if (!parsed.file) {
- return notFoundError(parsed.original, 'spawnSync');
- }
- }
-
- return null;
-}
-
-module.exports.hookChildProcess = hookChildProcess;
-module.exports.verifyENOENT = verifyENOENT;
-module.exports.verifyENOENTSync = verifyENOENTSync;
-module.exports.notFoundError = notFoundError;
diff --git a/node_modules/cross-spawn/lib/parse.js b/node_modules/cross-spawn/lib/parse.js
deleted file mode 100644
index 923e05e..0000000
--- a/node_modules/cross-spawn/lib/parse.js
+++ /dev/null
@@ -1,128 +0,0 @@
-'use strict';
-
-var fs = require('fs');
-var LRU = require('lru-cache');
-var resolveCommand = require('./resolveCommand');
-
-var isWin = process.platform === 'win32';
-var shebangCache = new LRU({ max: 50, maxAge: 30 * 1000 }); // Cache just for 30sec
-
-function readShebang(command) {
- var buffer;
- var fd;
- var match;
- var shebang;
-
- // Check if it is in the cache first
- if (shebangCache.has(command)) {
- return shebangCache.get(command);
- }
-
- // Read the first 150 bytes from the file
- buffer = new Buffer(150);
-
- try {
- fd = fs.openSync(command, 'r');
- fs.readSync(fd, buffer, 0, 150, 0);
- fs.closeSync(fd);
- } catch (e) { /* empty */ }
-
- // Check if it is a shebang
- match = buffer.toString().trim().match(/#!(.+)/i);
-
- if (match) {
- shebang = match[1].replace(/\/usr\/bin\/env\s+/i, ''); // Remove /usr/bin/env
- }
-
- // Store the shebang in the cache
- shebangCache.set(command, shebang);
-
- return shebang;
-}
-
-function escapeArg(arg, quote) {
- // Convert to string
- arg = '' + arg;
-
- // If we are not going to quote the argument,
- // escape shell metacharacters, including double and single quotes:
- if (!quote) {
- arg = arg.replace(/([\(\)%!\^<>&|;,"'\s])/g, '^$1');
- } else {
- // Sequence of backslashes followed by a double quote:
- // double up all the backslashes and escape the double quote
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
-
- // Sequence of backslashes followed by the end of the string
- // (which will become a double quote later):
- // double up all the backslashes
- arg = arg.replace(/(\\*)$/, '$1$1');
-
- // All other backslashes occur literally
-
- // Quote the whole thing:
- arg = '"' + arg + '"';
- }
-
- return arg;
-}
-
-function escapeCommand(command) {
- // Do not escape if this command is not dangerous..
- // We do this so that commands like "echo" or "ifconfig" work
- // Quoting them, will make them unaccessible
- return /^[a-z0-9_-]+$/i.test(command) ? command : escapeArg(command, true);
-}
-
-function parse(command, args, options) {
- var shebang;
- var applyQuotes;
- var file;
- var original;
-
- // Normalize arguments, similar to nodejs
- if (args && !Array.isArray(args)) {
- options = args;
- args = null;
- }
-
- args = args ? args.slice(0) : []; // Clone array to avoid changing the original
- options = options || {};
- original = command;
-
- if (isWin) {
- // Detect & add support for shebangs
- file = resolveCommand(command);
- file = file || resolveCommand(command, true);
- shebang = file && readShebang(file);
-
- if (shebang) {
- args.unshift(file);
- command = shebang;
- }
-
- // Escape command & arguments
- applyQuotes = command !== 'echo'; // Do not quote arguments for the special "echo" command
- command = escapeCommand(command);
- args = args.map(function (arg) {
- return escapeArg(arg, applyQuotes);
- });
-
- // Use cmd.exe
- args = ['/s', '/c', '"' + command + (args.length ? ' ' + args.join(' ') : '') + '"'];
- command = process.env.comspec || 'cmd.exe';
-
- // Tell node's spawn that the arguments are already escaped
- options.windowsVerbatimArguments = true;
- }
-
- return {
- command: command,
- args: args,
- options: options,
- file: file,
- original: original,
- };
-}
-
-module.exports = parse;
diff --git a/node_modules/cross-spawn/lib/resolveCommand.js b/node_modules/cross-spawn/lib/resolveCommand.js
deleted file mode 100644
index b7a9490..0000000
--- a/node_modules/cross-spawn/lib/resolveCommand.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-var path = require('path');
-var which = require('which');
-var LRU = require('lru-cache');
-
-var commandCache = new LRU({ max: 50, maxAge: 30 * 1000 }); // Cache just for 30sec
-
-function resolveCommand(command, noExtension) {
- var resolved;
-
- noExtension = !!noExtension;
- resolved = commandCache.get(command + '!' + noExtension);
-
- // Check if its resolved in the cache
- if (commandCache.has(command)) {
- return commandCache.get(command);
- }
-
- try {
- resolved = !noExtension ?
- which.sync(command) :
- which.sync(command, { pathExt: path.delimiter + (process.env.PATHEXT || '') });
- } catch (e) { /* empty */ }
-
- commandCache.set(command + '!' + noExtension, resolved);
-
- return resolved;
-}
-
-module.exports = resolveCommand;
diff --git a/node_modules/cross-spawn/package.json b/node_modules/cross-spawn/package.json
deleted file mode 100644
index d6c10ac..0000000
--- a/node_modules/cross-spawn/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "cross-spawn@^3.0.0",
- "_id": "cross-spawn@3.0.1",
- "_inBundle": false,
- "_integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=",
- "_location": "/cross-spawn",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "cross-spawn@^3.0.0",
- "name": "cross-spawn",
- "escapedName": "cross-spawn",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz",
- "_shasum": "1256037ecb9f0c5f79e3d6ef135e30770184b982",
- "_spec": "cross-spawn@^3.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "IndigoUnited",
- "email": "hello@indigounited.com",
- "url": "http://indigounited.com"
- },
- "bugs": {
- "url": "https://github.com/IndigoUnited/node-cross-spawn/issues/"
- },
- "bundleDependencies": false,
- "dependencies": {
- "lru-cache": "^4.0.1",
- "which": "^1.2.9"
- },
- "deprecated": false,
- "description": "Cross platform child_process#spawn and child_process#spawnSync",
- "devDependencies": {
- "@satazor/eslint-config": "^2.3.0",
- "eslint": "^2.10.2",
- "expect.js": "^0.3.0",
- "glob": "^7.0.0",
- "mkdirp": "^0.5.1",
- "mocha": "^2.2.5",
- "rimraf": "^2.5.0"
- },
- "homepage": "https://github.com/IndigoUnited/node-cross-spawn#readme",
- "keywords": [
- "spawn",
- "spawnSync",
- "windows",
- "cross",
- "platform",
- "path",
- "ext",
- "path-ext",
- "path_ext",
- "shebang",
- "hashbang",
- "cmd",
- "execute"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "cross-spawn",
- "repository": {
- "type": "git",
- "url": "git://github.com/IndigoUnited/node-cross-spawn.git"
- },
- "scripts": {
- "lint": "eslint '{*.js,lib/**/*.js,test/**/*.js}'",
- "test": "node test/prepare && mocha --bail test/test"
- },
- "version": "3.0.1"
-}
diff --git a/node_modules/currently-unhandled/browser.js b/node_modules/currently-unhandled/browser.js
deleted file mode 100644
index aa9e56f..0000000
--- a/node_modules/currently-unhandled/browser.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-var core = require('./core');
-
-function unwrapEvent(event) {
- if (event && event.detail && event.detail.promise) {
- return event.detail;
- }
-
- return event;
-}
-
-module.exports = function (w) {
- w = w || window;
- var c = core();
-
- w.addEventListener('unhandledrejection', function (event) {
- event = unwrapEvent(event);
- c.onUnhandledRejection(event.reason, event.promise);
- });
-
- w.addEventListener('rejectionhandled', function (event) {
- event = unwrapEvent(event);
- c.onRejectionHandled(event.promise);
- });
-
- return c.currentlyUnhandled;
-};
diff --git a/node_modules/currently-unhandled/core.js b/node_modules/currently-unhandled/core.js
deleted file mode 100644
index 73db22e..0000000
--- a/node_modules/currently-unhandled/core.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-var arrayFindIndex = require('array-find-index');
-
-module.exports = function () {
- var unhandledRejections = [];
-
- function onUnhandledRejection(reason, promise) {
- unhandledRejections.push({reason: reason, promise: promise});
- }
-
- function onRejectionHandled(promise) {
- var index = arrayFindIndex(unhandledRejections, function (x) {
- return x.promise === promise;
- });
-
- unhandledRejections.splice(index, 1);
- }
-
- function currentlyUnhandled() {
- return unhandledRejections.map(function (entry) {
- return {
- reason: entry.reason,
- promise: entry.promise
- };
- });
- }
-
- return {
- onUnhandledRejection: onUnhandledRejection,
- onRejectionHandled: onRejectionHandled,
- currentlyUnhandled: currentlyUnhandled
- };
-};
diff --git a/node_modules/currently-unhandled/index.js b/node_modules/currently-unhandled/index.js
deleted file mode 100644
index 238b9d9..0000000
--- a/node_modules/currently-unhandled/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-var core = require('./core');
-
-module.exports = function (p) {
- p = p || process;
- var c = core();
-
- p.on('unhandledRejection', c.onUnhandledRejection);
- p.on('rejectionHandled', c.onRejectionHandled);
-
- return c.currentlyUnhandled;
-};
diff --git a/node_modules/currently-unhandled/license b/node_modules/currently-unhandled/license
deleted file mode 100644
index ad5d021..0000000
--- a/node_modules/currently-unhandled/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/currently-unhandled/package.json b/node_modules/currently-unhandled/package.json
deleted file mode 100644
index 81633a4..0000000
--- a/node_modules/currently-unhandled/package.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "_from": "currently-unhandled@^0.4.1",
- "_id": "currently-unhandled@0.4.1",
- "_inBundle": false,
- "_integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=",
- "_location": "/currently-unhandled",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "currently-unhandled@^0.4.1",
- "name": "currently-unhandled",
- "escapedName": "currently-unhandled",
- "rawSpec": "^0.4.1",
- "saveSpec": null,
- "fetchSpec": "^0.4.1"
- },
- "_requiredBy": [
- "/loud-rejection"
- ],
- "_resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
- "_shasum": "988df33feab191ef799a61369dd76c17adf957ea",
- "_spec": "currently-unhandled@^0.4.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/loud-rejection",
- "author": {
- "name": "James Talmage",
- "email": "james@talmage.io",
- "url": "github.com/jamestalmage"
- },
- "ava": {
- "files": "test.js"
- },
- "browser": {
- "./index.js": "./browser.js"
- },
- "bugs": {
- "url": "https://github.com/jamestalmage/currently-unhandled/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "array-find-index": "^1.0.1"
- },
- "deprecated": false,
- "description": "Track the list of currently unhandled promise rejections.",
- "devDependencies": {
- "ava": "^0.15.1",
- "bluebird": "^3.4.0",
- "browserify": "^13.0.1",
- "coveralls": "^2.11.9",
- "delay": "^1.3.1",
- "is-ci": "^1.0.8",
- "karma": "^0.13.22",
- "karma-browserify": "^5.0.5",
- "karma-chrome-launcher": "^1.0.1",
- "karma-firefox-launcher": "^1.0.0",
- "karma-mocha": "^1.0.1",
- "mocha": "^2.5.3",
- "nyc": "^6.4.0",
- "watchify": "^3.7.0",
- "xo": "^0.15.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js",
- "core.js",
- "browser.js"
- ],
- "homepage": "https://github.com/jamestalmage/currently-unhandled#readme",
- "keywords": [
- "unhandled",
- "unhandledRejection",
- "rejected",
- "promises"
- ],
- "license": "MIT",
- "name": "currently-unhandled",
- "nyc": {
- "reporter": [
- "lcov",
- "text"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jamestalmage/currently-unhandled.git"
- },
- "scripts": {
- "test": "xo && nyc ava"
- },
- "version": "0.4.1",
- "xo": {
- "ignores": [
- "browser-bluebird-test.js"
- ],
- "envs": [
- "browser",
- "mocha",
- "node"
- ]
- }
-}
diff --git a/node_modules/currently-unhandled/readme.md b/node_modules/currently-unhandled/readme.md
deleted file mode 100644
index b73c568..0000000
--- a/node_modules/currently-unhandled/readme.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# currently-unhandled [![Build Status](https://travis-ci.org/jamestalmage/currently-unhandled.svg?branch=master)](https://travis-ci.org/jamestalmage/currently-unhandled) [![Coverage Status](https://coveralls.io/repos/github/jamestalmage/currently-unhandled/badge.svg?branch=master)](https://coveralls.io/github/jamestalmage/currently-unhandled?branch=master)
-
-> Track the list of currently unhandled promise rejections.
-
-
-## Install
-
-```
-$ npm install --save currently-unhandled
-```
-
-
-## Usage
-
-```js
-const currentlyUnhandled = require('currently-unhandled')(); // <- note the invocation
-
-var fooError = new Error('foo');
-var p = Promise.reject(new Error('foo'));
-
-// on the next tick - unhandled rejected promise is added to the list:
-currentlyUnhandled();
-//=> [{promise: p, reason: fooError}]'
-
-p.catch(() => {});
-
-// on the next tick - handled promise is now removed from the list:
-currentlyUnhandled();
-//=> [];
-```
-
-## API
-
-### currentlyUnhandled()
-
-Returns an array of objects with `promise` and `reason` properties representing the rejected promises that currently do not have a rejection handler. The list grows and shrinks as unhandledRejections are published, and later handled.
-
-## Browser Support
-
-This module can be bundled with `browserify`. At time of writing, it will work with native Promises in the Chrome browser only. For best cross-browser support, use `bluebird` instead of native Promise support in browsers.
-
-## License
-
-MIT © [James Talmage](http://github.com/jamestalmage)
diff --git a/node_modules/dashdash/CHANGES.md b/node_modules/dashdash/CHANGES.md
deleted file mode 100644
index d7c8f4e..0000000
--- a/node_modules/dashdash/CHANGES.md
+++ /dev/null
@@ -1,364 +0,0 @@
-# node-dashdash changelog
-
-## not yet released
-
-(nothing yet)
-
-## 1.14.1
-
-- [issue #30] Change the output used by dashdash's Bash completion support to
- indicate "there are no completions for this argument" to cope with different
- sorting rules on different Bash/platforms. For example:
-
- $ triton -v -p test2 package get <TAB> # before
- ##-no -tritonpackage- completions-##
-
- $ triton -v -p test2 package get <TAB> # after
- ##-no-completion- -results-##
-
-## 1.14.0
-
-- New `synopsisFromOpt(<option spec>)` function. This will be used by
- [node-cmdln](https://github.com/trentm/node-cmdln) to put together a synopsis
- of options for a command. Some examples:
-
- > synopsisFromOpt({names: ['help', 'h'], type: 'bool'});
- '[ --help | -h ]'
- > synopsisFromOpt({name: 'file', type: 'string', helpArg: 'FILE'});
- '[ --file=FILE ]'
-
-
-## 1.13.1
-
-- [issue #20] `bashCompletionSpecFromOptions` breaks on an options array with
- an empty-string group.
-
-
-## 1.13.0
-
-- Update assert-plus dep to 1.x to get recent fixes (particularly for
- `assert.optional*`).
-
-- Drop testing (and official support in packages.json#engines) for node 0.8.x.
- Add testing against node 5.x and 4.x with `make testall`.
-
-- [pull #16] Change the `positiveInteger` type to NOT accept zero (0).
- For those who might need the old behaviour, see
- "examples/custom-option-intGteZero.js". (By Dave Pacheco.)
-
-
-## 1.12.2
-
-- Bash completion: Add `argtypes` to specify the types of positional args.
- E.g. this would allow you to have an `ssh` command with `argtypes = ['host',
- 'cmd']` for bash completion. You then have to provide Bash functions to
- handle completing those types via the `specExtra` arg. See
- "[examples/ddcompletion.js](examples/ddcompletion.js)" for an example.
-
-- Bash completion: Tweak so that options or only offered as completions when
- there is a leading '-'. E.g. `mytool <TAB>` does NOT offer options, `mytool
- -<TAB>` *does*. Without this, a tool with options would never be able to
- fallback to Bash's "default" completion. For example `ls <TAB>` wouldn't
- result in filename completion. Now it will.
-
-- Bash completion: A workaround for not being able to explicitly have *no*
- completion results. Because dashdash's completion uses `complete -o default`,
- we fallback to Bash's "default" completion (typically for filename
- completion). Before this change, an attempt to explicitly say "there are
- no completions that match" would unintentionally trigger filename completion.
- Instead as a workaround we return:
-
- $ ddcompletion --none <TAB> # the 'none' argtype
- ##-no completions-##
-
- $ ddcompletion # a custom 'fruit' argtype
- apple banana orange
- $ ddcompletion z
- ##-no -fruit- completions-##
-
- This is a bit of a hack, but IMO a better experience than the surprise
- of matching a local filename beginning with 'z', which isn't, in this
- case, a "fruit".
-
-## 1.12.1
-
-- Bash completion: Document `<option spec>.completionType`. Add `includeHidden`
- option to `bashCompletionSpecFromOptions()`. Add support for dealing with
- hidden subcmds.
-
-
-## 1.12.0
-
-- Support for generating Bash completion files. See the "Bash completion"
- section of the README.md and "examples/ddcompletion.js" for an example.
-
-
-## 1.11.0
-
-- Add the `arrayFlatten` boolean option to `dashdash.addOptionType` used for
- custom option types. This allows one to create an `arrayOf...` option type
- where each usage of the option can return multiple results. For example:
-
- node mytool.js --foo a,b --foo c
-
- We could define an option type for `--foo` such that
- `opts.foo = ['a', 'b', 'c']`. See
- "[examples/custom-option-arrayOfCommaSepString.js](examples/custom-option-arrayOfCommaSepString.js)"
- for an example.
-
-
-## 1.10.1
-
-- Trim the published package to the minimal bits. Before: 24K tarball, 144K unpacked.
- After: 12K tarball, 48K unpacked. `npm` won't let me drop the README.md. :)
-
-
-## 1.10.0
-
-- [issue #9] Support `includeDefault` in help config (similar to `includeEnv`) to have a
- note of an option's default value, if any, in help output.
-- [issue #11] Fix option group breakage introduced in v1.9.0.
-
-
-## 1.9.0
-
-- [issue #10] Custom option types added with `addOptionType` can specify a
- "default" value. See "examples/custom-option-fruit.js".
-
-
-## 1.8.0
-
-- Support `hidden: true` in an option spec to have help output exclude this
- option.
-
-
-## 1.7.3
-
-- [issue #8] Fix parsing of a short option group when one of the
- option takes an argument. For example, consider `tail` with
- a `-f` boolean option and a `-n` option that takes a number
- argument. This should parse:
-
- tail -fn5
-
- Before this change, that would not parse correctly.
- It is suspected that this was introduced in version 1.4.0
- (with commit 656fa8bc71c372ebddad0a7026bd71611e2ec99a).
-
-
-## 1.7.2
-
-- Known issues: #8
-
-- Exclude 'tools/' dir in packages published to npm.
-
-
-## 1.7.1
-
-- Known issues: #8
-
-- Support an option group *empty string* value:
-
- ...
- { group: '' },
- ...
-
- to render as a blank line in option help. This can help separate loosely
- related sets of options without resorting to a title for option groups.
-
-
-## 1.7.0
-
-- Known issues: #8
-
-- [pull #7] Support for `<parser>.help({helpWrap: false, ...})` option to be able
- to fully control the formatting for option help (by Patrick Mooney) `helpWrap:
- false` can also be set on individual options in the option objects, e.g.:
-
- var options = [
- {
- names: ['foo'],
- type: 'string',
- helpWrap: false,
- help: 'long help with\n newlines' +
- '\n spaces\n and such\nwill render correctly'
- },
- ...
- ];
-
-
-## 1.6.0
-
-- Known issues: #8
-
-- [pull #6] Support headings between groups of options (by Joshua M. Clulow)
- so that this code:
-
- var options = [
- { group: 'Armament Options' },
- { names: [ 'weapon', 'w' ], type: 'string' },
- { group: 'General Options' },
- { names: [ 'help', 'h' ], type: 'bool' }
- ];
- ...
-
- will give you this help output:
-
- ...
- Armament Options:
- -w, --weapon
-
- General Options:
- -h, --help
- ...
-
-
-## 1.5.0
-
-- Known issues: #8
-
-- Add support for adding custom option types. "examples/custom-option-duration.js"
- shows an example adding a "duration" option type.
-
- $ node custom-option-duration.js -t 1h
- duration: 3600000 ms
- $ node custom-option-duration.js -t 1s
- duration: 1000 ms
- $ node custom-option-duration.js -t 5d
- duration: 432000000 ms
- $ node custom-option-duration.js -t bogus
- custom-option-duration.js: error: arg for "-t" is not a valid duration: "bogus"
-
- A custom option type is added via:
-
- var dashdash = require('dashdash');
- dashdash.addOptionType({
- name: '...',
- takesArg: true,
- helpArg: '...',
- parseArg: function (option, optstr, arg) {
- ...
- }
- });
-
-- [issue #4] Add `date` and `arrayOfDate` option types. They accept these date
- formats: epoch second times (e.g. 1396031701) and ISO 8601 format:
- `YYYY-MM-DD[THH:MM:SS[.sss][Z]]` (e.g. "2014-03-28",
- "2014-03-28T18:35:01.489Z"). See "examples/date.js" for an example usage.
-
- $ node examples/date.js -s 2014-01-01 -e $(date +%s)
- start at 2014-01-01T00:00:00.000Z
- end at 2014-03-29T04:26:18.000Z
-
-
-## 1.4.0
-
-- Known issues: #8
-
-- [pull #2, pull #3] Add a `allowUnknown: true` option on `createParser` to
- allow unknown options to be passed through as `opts._args` instead of parsing
- throwing an exception (by https://github.com/isaacs).
-
- See 'allowUnknown' in the README for a subtle caveat.
-
-
-## 1.3.2
-
-- Fix a subtlety where a *bool* option using both `env` and `default` didn't
- work exactly correctly. If `default: false` then all was fine (by luck).
- However, if you had an option like this:
-
- options: [ {
- names: ['verbose', 'v'],
- env: 'FOO_VERBOSE',
- 'default': true, // <--- this
- type: 'bool'
- } ],
-
- wanted `FOO_VERBOSE=0` to make the option false, then you need the fix
- in this version of dashdash.
-
-
-## 1.3.1
-
-- [issue #1] Fix an envvar not winning over an option 'default'. Previously
- an option with both `default` and `env` would never take a value from the
- environment variable. E.g. `FOO_FILE` would never work here:
-
- options: [ {
- names: ['file', 'f'],
- env: 'FOO_FILE',
- 'default': 'default.file',
- type: 'string'
- } ],
-
-
-## 1.3.0
-
-- [Backward incompatible change for boolean envvars] Change the
- interpretation of environment variables for boolean options to consider '0'
- to be false. Previous to this *any* value to the envvar was considered
- true -- which was quite misleading. Example:
-
- $ FOO_VERBOSE=0 node examples/foo.js
- # opts: { verbose: [ false ],
- _order: [ { key: 'verbose', value: false, from: 'env' } ],
- _args: [] }
- # args: []
-
-
-## 1.2.1
-
-- Fix for `parse.help({includeEnv: true, ...})` handling to ensure that an
- option with an `env` **but no `help`** still has the "Environment: ..."
- output. E.g.:
-
- { names: ['foo'], type: 'string', env: 'FOO' }
-
- ...
-
- --foo=ARG Environment: FOO=ARG
-
-
-## 1.2.0
-
-- Transform the option key on the `opts` object returned from
- `<parser>.parse()` for convenience. Currently this is just
- `s/-/_/g`, e.g. '--dry-run' -> `opts.dry_run`. This allow one to use hyphen
- in option names (common) but not have to do silly things like
- `opt["dry-run"]` to access the parsed results.
-
-
-## 1.1.0
-
-- Environment variable integration. Envvars can be associated with an option,
- then option processing will fallback to using that envvar if defined and
- if the option isn't specified in argv. See the "Environment variable
- integration" section in the README.
-
-- Change the `<parser>.parse()` signature to take a single object with keys
- for arguments. The old signature is still supported.
-
-- `dashdash.createParser(CONFIG)` alternative to `new dashdash.Parser(CONFIG)`
- a la many node-land APIs.
-
-
-## 1.0.2
-
-- Add "positiveInteger" and "arrayOfPositiveInteger" option types that only
- accept positive integers.
-
-- Add "integer" and "arrayOfInteger" option types that accepts only integers.
- Note that, for better or worse, these do NOT accept: "0x42" (hex), "1e2"
- (with exponent) or "1.", "3.0" (floats).
-
-
-## 1.0.1
-
-- Fix not modifying the given option spec objects (which breaks creating
- a Parser with them more than once).
-
-
-## 1.0.0
-
-First release.
diff --git a/node_modules/dashdash/LICENSE.txt b/node_modules/dashdash/LICENSE.txt
deleted file mode 100644
index 54706c6..0000000
--- a/node_modules/dashdash/LICENSE.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-# This is the MIT license
-
-Copyright (c) 2013 Trent Mick. All rights reserved.
-Copyright (c) 2013 Joyent Inc. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
diff --git a/node_modules/dashdash/README.md b/node_modules/dashdash/README.md
deleted file mode 100644
index e47b106..0000000
--- a/node_modules/dashdash/README.md
+++ /dev/null
@@ -1,574 +0,0 @@
-A light, featureful and explicit option parsing library for node.js.
-
-[Why another one? See below](#why). tl;dr: The others I've tried are one of
-too loosey goosey (not explicit), too big/too many deps, or ill specified.
-YMMV.
-
-Follow <a href="https://twitter.com/intent/user?screen_name=trentmick" target="_blank">@trentmick</a>
-for updates to node-dashdash.
-
-# Install
-
- npm install dashdash
-
-
-# Usage
-
-```javascript
-var dashdash = require('dashdash');
-
-// Specify the options. Minimally `name` (or `names`) and `type`
-// must be given for each.
-var options = [
- {
- // `names` or a single `name`. First element is the `opts.KEY`.
- names: ['help', 'h'],
- // See "Option specs" below for types.
- type: 'bool',
- help: 'Print this help and exit.'
- }
-];
-
-// Shortcut form. As called it infers `process.argv`. See below for
-// the longer form to use methods like `.help()` on the Parser object.
-var opts = dashdash.parse({options: options});
-
-console.log("opts:", opts);
-console.log("args:", opts._args);
-```
-
-
-# Longer Example
-
-A more realistic [starter script "foo.js"](./examples/foo.js) is as follows.
-This also shows using `parser.help()` for formatted option help.
-
-```javascript
-var dashdash = require('./lib/dashdash');
-
-var options = [
- {
- name: 'version',
- type: 'bool',
- help: 'Print tool version and exit.'
- },
- {
- names: ['help', 'h'],
- type: 'bool',
- help: 'Print this help and exit.'
- },
- {
- names: ['verbose', 'v'],
- type: 'arrayOfBool',
- help: 'Verbose output. Use multiple times for more verbose.'
- },
- {
- names: ['file', 'f'],
- type: 'string',
- help: 'File to process',
- helpArg: 'FILE'
- }
-];
-
-var parser = dashdash.createParser({options: options});
-try {
- var opts = parser.parse(process.argv);
-} catch (e) {
- console.error('foo: error: %s', e.message);
- process.exit(1);
-}
-
-console.log("# opts:", opts);
-console.log("# args:", opts._args);
-
-// Use `parser.help()` for formatted options help.
-if (opts.help) {
- var help = parser.help({includeEnv: true}).trimRight();
- console.log('usage: node foo.js [OPTIONS]\n'
- + 'options:\n'
- + help);
- process.exit(0);
-}
-
-// ...
-```
-
-
-Some example output from this script (foo.js):
-
-```
-$ node foo.js -h
-# opts: { help: true,
- _order: [ { name: 'help', value: true, from: 'argv' } ],
- _args: [] }
-# args: []
-usage: node foo.js [OPTIONS]
-options:
- --version Print tool version and exit.
- -h, --help Print this help and exit.
- -v, --verbose Verbose output. Use multiple times for more verbose.
- -f FILE, --file=FILE File to process
-
-$ node foo.js -v
-# opts: { verbose: [ true ],
- _order: [ { name: 'verbose', value: true, from: 'argv' } ],
- _args: [] }
-# args: []
-
-$ node foo.js --version arg1
-# opts: { version: true,
- _order: [ { name: 'version', value: true, from: 'argv' } ],
- _args: [ 'arg1' ] }
-# args: [ 'arg1' ]
-
-$ node foo.js -f bar.txt
-# opts: { file: 'bar.txt',
- _order: [ { name: 'file', value: 'bar.txt', from: 'argv' } ],
- _args: [] }
-# args: []
-
-$ node foo.js -vvv --file=blah
-# opts: { verbose: [ true, true, true ],
- file: 'blah',
- _order:
- [ { name: 'verbose', value: true, from: 'argv' },
- { name: 'verbose', value: true, from: 'argv' },
- { name: 'verbose', value: true, from: 'argv' },
- { name: 'file', value: 'blah', from: 'argv' } ],
- _args: [] }
-# args: []
-```
-
-
-See the ["examples"](examples/) dir for a number of starter examples using
-some of dashdash's features.
-
-
-# Environment variable integration
-
-If you want to allow environment variables to specify options to your tool,
-dashdash makes this easy. We can change the 'verbose' option in the example
-above to include an 'env' field:
-
-```javascript
- {
- names: ['verbose', 'v'],
- type: 'arrayOfBool',
- env: 'FOO_VERBOSE', // <--- add this line
- help: 'Verbose output. Use multiple times for more verbose.'
- },
-```
-
-then the **"FOO_VERBOSE" environment variable** can be used to set this
-option:
-
-```shell
-$ FOO_VERBOSE=1 node foo.js
-# opts: { verbose: [ true ],
- _order: [ { name: 'verbose', value: true, from: 'env' } ],
- _args: [] }
-# args: []
-```
-
-Boolean options will interpret the empty string as unset, '0' as false
-and anything else as true.
-
-```shell
-$ FOO_VERBOSE= node examples/foo.js # not set
-# opts: { _order: [], _args: [] }
-# args: []
-
-$ FOO_VERBOSE=0 node examples/foo.js # '0' is false
-# opts: { verbose: [ false ],
- _order: [ { key: 'verbose', value: false, from: 'env' } ],
- _args: [] }
-# args: []
-
-$ FOO_VERBOSE=1 node examples/foo.js # true
-# opts: { verbose: [ true ],
- _order: [ { key: 'verbose', value: true, from: 'env' } ],
- _args: [] }
-# args: []
-
-$ FOO_VERBOSE=boogabooga node examples/foo.js # true
-# opts: { verbose: [ true ],
- _order: [ { key: 'verbose', value: true, from: 'env' } ],
- _args: [] }
-# args: []
-```
-
-Non-booleans can be used as well. Strings:
-
-```shell
-$ FOO_FILE=data.txt node examples/foo.js
-# opts: { file: 'data.txt',
- _order: [ { key: 'file', value: 'data.txt', from: 'env' } ],
- _args: [] }
-# args: []
-```
-
-Numbers:
-
-```shell
-$ FOO_TIMEOUT=5000 node examples/foo.js
-# opts: { timeout: 5000,
- _order: [ { key: 'timeout', value: 5000, from: 'env' } ],
- _args: [] }
-# args: []
-
-$ FOO_TIMEOUT=blarg node examples/foo.js
-foo: error: arg for "FOO_TIMEOUT" is not a positive integer: "blarg"
-```
-
-With the `includeEnv: true` config to `parser.help()` the environment
-variable can also be included in **help output**:
-
- usage: node foo.js [OPTIONS]
- options:
- --version Print tool version and exit.
- -h, --help Print this help and exit.
- -v, --verbose Verbose output. Use multiple times for more verbose.
- Environment: FOO_VERBOSE=1
- -f FILE, --file=FILE File to process
-
-
-# Bash completion
-
-Dashdash provides a simple way to create a Bash completion file that you
-can place in your "bash_completion.d" directory -- sometimes that is
-"/usr/local/etc/bash_completion.d/"). Features:
-
-- Support for short and long opts
-- Support for knowing which options take arguments
-- Support for subcommands (e.g. 'git log <TAB>' to show just options for the
- log subcommand). See
- [node-cmdln](https://github.com/trentm/node-cmdln#bash-completion) for
- how to integrate that.
-- Does the right thing with "--" to stop options.
-- Custom optarg and arg types for custom completions.
-
-Dashdash will return bash completion file content given a parser instance:
-
- var parser = dashdash.createParser({options: options});
- console.log( parser.bashCompletion({name: 'mycli'}) );
-
-or directly from a `options` array of options specs:
-
- var code = dashdash.bashCompletionFromOptions({
- name: 'mycli',
- options: OPTIONS
- });
-
-Write that content to "/usr/local/etc/bash_completion.d/mycli" and you will
-have Bash completions for `mycli`. Alternatively you can write it to
-any file (e.g. "~/.bashrc") and source it.
-
-You could add a `--completion` hidden option to your tool that emits the
-completion content and document for your users to call that to install
-Bash completions.
-
-See [examples/ddcompletion.js](examples/ddcompletion.js) for a complete
-example, including how one can define bash functions for completion of custom
-option types. Also see [node-cmdln](https://github.com/trentm/node-cmdln) for
-how it uses this for Bash completion for full multi-subcommand tools.
-
-- TODO: document specExtra
-- TODO: document includeHidden
-- TODO: document custom types, `function complete\_FOO` guide, completionType
-- TODO: document argtypes
-
-
-# Parser config
-
-Parser construction (i.e. `dashdash.createParser(CONFIG)`) takes the
-following fields:
-
-- `options` (Array of option specs). Required. See the
- [Option specs](#option-specs) section below.
-
-- `interspersed` (Boolean). Optional. Default is true. If true this allows
- interspersed arguments and options. I.e.:
-
- node ./tool.js -v arg1 arg2 -h # '-h' is after interspersed args
-
- Set it to false to have '-h' **not** get parsed as an option in the above
- example.
-
-- `allowUnknown` (Boolean). Optional. Default is false. If false, this causes
- unknown arguments to throw an error. I.e.:
-
- node ./tool.js -v arg1 --afe8asefksjefhas
-
- Set it to true to treat the unknown option as a positional
- argument.
-
- **Caveat**: When a shortopt group, such as `-xaz` contains a mix of
- known and unknown options, the *entire* group is passed through
- unmolested as a positional argument.
-
- Consider if you have a known short option `-a`, and parse the
- following command line:
-
- node ./tool.js -xaz
-
- where `-x` and `-z` are unknown. There are multiple ways to
- interpret this:
-
- 1. `-x` takes a value: `{x: 'az'}`
- 2. `-x` and `-z` are both booleans: `{x:true,a:true,z:true}`
-
- Since dashdash does not know what `-x` and `-z` are, it can't know
- if you'd prefer to receive `{a:true,_args:['-x','-z']}` or
- `{x:'az'}`, or `{_args:['-xaz']}`. Leaving the positional arg unprocessed
- is the easiest mistake for the user to recover from.
-
-
-# Option specs
-
-Example using all fields (required fields are noted):
-
-```javascript
-{
- names: ['file', 'f'], // Required (one of `names` or `name`).
- type: 'string', // Required.
- completionType: 'filename',
- env: 'MYTOOL_FILE',
- help: 'Config file to load before running "mytool"',
- helpArg: 'PATH',
- helpWrap: false,
- default: path.resolve(process.env.HOME, '.mytoolrc')
-}
-```
-
-Each option spec in the `options` array must/can have the following fields:
-
-- `name` (String) or `names` (Array). Required. These give the option name
- and aliases. The first name (if more than one given) is the key for the
- parsed `opts` object.
-
-- `type` (String). Required. One of:
-
- - bool
- - string
- - number
- - integer
- - positiveInteger
- - date (epoch seconds, e.g. 1396031701, or ISO 8601 format
- `YYYY-MM-DD[THH:MM:SS[.sss][Z]]`, e.g. "2014-03-28T18:35:01.489Z")
- - arrayOfBool
- - arrayOfString
- - arrayOfNumber
- - arrayOfInteger
- - arrayOfPositiveInteger
- - arrayOfDate
-
- FWIW, these names attempt to match with asserts on
- [assert-plus](https://github.com/mcavage/node-assert-plus).
- You can add your own custom option types with `dashdash.addOptionType`.
- See below.
-
-- `completionType` (String). Optional. This is used for [Bash
- completion](#bash-completion) for an option argument. If not specified,
- then the value of `type` is used. Any string may be specified, but only the
- following values have meaning:
-
- - `none`: Provide no completions.
- - `file`: Bash's default completion (i.e. `complete -o default`), which
- includes filenames.
- - *Any string FOO for which a `function complete_FOO` Bash function is
- defined.* This is for custom completions for a given tool. Typically
- these custom functions are provided in the `specExtra` argument to
- `dashdash.bashCompletionFromOptions()`. See
- ["examples/ddcompletion.js"](examples/ddcompletion.js) for an example.
-
-- `env` (String or Array of String). Optional. An environment variable name
- (or names) that can be used as a fallback for this option. For example,
- given a "foo.js" like this:
-
- var options = [{names: ['dry-run', 'n'], env: 'FOO_DRY_RUN'}];
- var opts = dashdash.parse({options: options});
-
- Both `node foo.js --dry-run` and `FOO_DRY_RUN=1 node foo.js` would result
- in `opts.dry_run = true`.
-
- An environment variable is only used as a fallback, i.e. it is ignored if
- the associated option is given in `argv`.
-
-- `help` (String). Optional. Used for `parser.help()` output.
-
-- `helpArg` (String). Optional. Used in help output as the placeholder for
- the option argument, e.g. the "PATH" in:
-
- ...
- -f PATH, --file=PATH File to process
- ...
-
-- `helpWrap` (Boolean). Optional, default true. Set this to `false` to have
- that option's `help` *not* be text wrapped in `<parser>.help()` output.
-
-- `default`. Optional. A default value used for this option, if the
- option isn't specified in argv.
-
-- `hidden` (Boolean). Optional, default false. If true, help output will not
- include this option. See also the `includeHidden` option to
- `bashCompletionFromOptions()` for [Bash completion](#bash-completion).
-
-
-# Option group headings
-
-You can add headings between option specs in the `options` array. To do so,
-simply add an object with only a `group` property -- the string to print as
-the heading for the subsequent options in the array. For example:
-
-```javascript
-var options = [
- {
- group: 'Armament Options'
- },
- {
- names: [ 'weapon', 'w' ],
- type: 'string'
- },
- {
- group: 'General Options'
- },
- {
- names: [ 'help', 'h' ],
- type: 'bool'
- }
-];
-...
-```
-
-Note: You can use an empty string, `{group: ''}`, to get a blank line in help
-output between groups of options.
-
-
-# Help config
-
-The `parser.help(...)` function is configurable as follows:
-
- Options:
- Armament Options:
- ^^ -w WEAPON, --weapon=WEAPON Weapon with which to crush. One of: |
- / sword, spear, maul |
- / General Options: |
- / -h, --help Print this help and exit. |
- / ^^^^ ^ |
- \ `-- indent `-- helpCol maxCol ---'
- `-- headingIndent
-
-- `indent` (Number or String). Default 4. Set to a number (for that many
- spaces) or a string for the literal indent.
-- `headingIndent` (Number or String). Default half length of `indent`. Set to
- a number (for that many spaces) or a string for the literal indent. This
- indent applies to group heading lines, between normal option lines.
-- `nameSort` (String). Default is 'length'. By default the names are
- sorted to put the short opts first (i.e. '-h, --help' preferred
- to '--help, -h'). Set to 'none' to not do this sorting.
-- `maxCol` (Number). Default 80. Note that reflow is just done on whitespace
- so a long token in the option help can overflow maxCol.
-- `helpCol` (Number). If not set a reasonable value will be determined
- between `minHelpCol` and `maxHelpCol`.
-- `minHelpCol` (Number). Default 20.
-- `maxHelpCol` (Number). Default 40.
-- `helpWrap` (Boolean). Default true. Set to `false` to have option `help`
- strings *not* be textwrapped to the helpCol..maxCol range.
-- `includeEnv` (Boolean). Default false. If the option has associated
- environment variables (via the `env` option spec attribute), then
- append mentioned of those envvars to the help string.
-- `includeDefault` (Boolean). Default false. If the option has a default value
- (via the `default` option spec attribute, or a default on the option's type),
- then a "Default: VALUE" string will be appended to the help string.
-
-
-# Custom option types
-
-Dashdash includes a good starter set of option types that it will parse for
-you. However, you can add your own via:
-
- var dashdash = require('dashdash');
- dashdash.addOptionType({
- name: '...',
- takesArg: true,
- helpArg: '...',
- parseArg: function (option, optstr, arg) {
- ...
- },
- array: false, // optional
- arrayFlatten: false, // optional
- default: ..., // optional
- completionType: ... // optional
- });
-
-For example, a simple option type that accepts 'yes', 'y', 'no' or 'n' as
-a boolean argument would look like:
-
- var dashdash = require('dashdash');
-
- function parseYesNo(option, optstr, arg) {
- var argLower = arg.toLowerCase()
- if (~['yes', 'y'].indexOf(argLower)) {
- return true;
- } else if (~['no', 'n'].indexOf(argLower)) {
- return false;
- } else {
- throw new Error(format(
- 'arg for "%s" is not "yes" or "no": "%s"',
- optstr, arg));
- }
- }
-
- dashdash.addOptionType({
- name: 'yesno'
- takesArg: true,
- helpArg: '<yes|no>',
- parseArg: parseYesNo
- });
-
- var options = {
- {names: ['answer', 'a'], type: 'yesno'}
- };
- var opts = dashdash.parse({options: options});
-
-See "examples/custom-option-\*.js" for other examples.
-See the `addOptionType` block comment in "lib/dashdash.js" for more details.
-Please let me know [with an
-issue](https://github.com/trentm/node-dashdash/issues/new) if you write a
-generally useful one.
-
-
-
-# Why
-
-Why another node.js option parsing lib?
-
-- `nopt` really is just for "tools like npm". Implicit opts (e.g. '--no-foo'
- works for every '--foo'). Can't disable abbreviated opts. Can't do multiple
- usages of same opt, e.g. '-vvv' (I think). Can't do grouped short opts.
-
-- `optimist` has surprise interpretation of options (at least to me).
- Implicit opts mean ambiguities and poor error handling for fat-fingering.
- `process.exit` calls makes it hard to use as a libary.
-
-- `optparse` Incomplete docs. Is this an attempted clone of Python's `optparse`.
- Not clear. Some divergence. `parser.on("name", ...)` API is weird.
-
-- `argparse` Dep on underscore. No thanks just for option processing.
- `find lib | wc -l` -> `26`. Overkill.
- Argparse is a bit different anyway. Not sure I want that.
-
-- `posix-getopt` No type validation. Though that isn't a killer. AFAIK can't
- have a long opt without a short alias. I.e. no `getopt_long` semantics.
- Also, no whizbang features like generated help output.
-
-- ["commander.js"](https://github.com/visionmedia/commander.js): I wrote
- [a critique](http://trentm.com/2014/01/a-critique-of-commander-for-nodejs.html)
- a while back. It seems fine, but last I checked had
- [an outstanding bug](https://github.com/visionmedia/commander.js/pull/121)
- that would prevent me from using it.
-
-
-# License
-
-MIT. See LICENSE.txt.
diff --git a/node_modules/dashdash/etc/dashdash.bash_completion.in b/node_modules/dashdash/etc/dashdash.bash_completion.in
deleted file mode 100644
index dc33309..0000000
--- a/node_modules/dashdash/etc/dashdash.bash_completion.in
+++ /dev/null
@@ -1,389 +0,0 @@
-#!/bin/bash
-#
-# Bash completion generated for '{{name}}' at {{date}}.
-#
-# The original template lives here:
-# https://github.com/trentm/node-dashdash/blob/master/etc/dashdash.bash_completion.in
-#
-
-#
-# Copyright 2016 Trent Mick
-# Copyright 2016 Joyent, Inc.
-#
-#
-# A generic Bash completion driver script.
-#
-# This is meant to provide a re-usable chunk of Bash to use for
-# "etc/bash_completion.d/" files for individual tools. Only the "Configuration"
-# section with tool-specific info need differ. Features:
-#
-# - support for short and long opts
-# - support for knowing which options take arguments
-# - support for subcommands (e.g. 'git log <TAB>' to show just options for the
-# log subcommand)
-# - does the right thing with "--" to stop options
-# - custom optarg and arg types for custom completions
-# - (TODO) support for shells other than Bash (tcsh, zsh, fish?, etc.)
-#
-#
-# Examples/design:
-#
-# 1. Bash "default" completion. By default Bash's 'complete -o default' is
-# enabled. That means when there are no completions (e.g. if no opts match
-# the current word), then you'll get Bash's default completion. Most notably
-# that means you get filename completion. E.g.:
-# $ tool ./<TAB>
-# $ tool READ<TAB>
-#
-# 2. all opts and subcmds:
-# $ tool <TAB>
-# $ tool -v <TAB> # assuming '-v' doesn't take an arg
-# $ tool -<TAB> # matching opts
-# $ git lo<TAB> # matching subcmds
-#
-# Long opt completions are given *without* the '=', i.e. we prefer space
-# separated because that's easier for good completions.
-#
-# 3. long opt arg with '='
-# $ tool --file=<TAB>
-# $ tool --file=./d<TAB>
-# We maintain the "--file=" prefix. Limitation: With the attached prefix
-# the 'complete -o filenames' doesn't know to do dirname '/' suffixing. Meh.
-#
-# 4. envvars:
-# $ tool $<TAB>
-# $ tool $P<TAB>
-# Limitation: Currently only getting exported vars, so we miss "PS1" and
-# others.
-#
-# 5. Defer to other completion in a subshell:
-# $ tool --file $(cat ./<TAB>
-# We get this from 'complete -o default ...'.
-#
-# 6. Custom completion types from a provided bash function.
-# $ tool --profile <TAB> # complete available "profiles"
-#
-#
-# Dev Notes:
-# - compgen notes, from http://unix.stackexchange.com/questions/151118/understand-compgen-builtin-command
-# - https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html
-#
-
-
-# Debugging this completion:
-# 1. Uncomment the "_{{name}}_log_file=..." line.
-# 2. 'tail -f /var/tmp/dashdash-completion.log' in one terminal.
-# 3. Re-source this bash completion file.
-#_{{name}}_log=/var/tmp/dashdash-completion.log
-
-function _{{name}}_completer {
-
- # ---- cmd definition
-
- {{spec}}
-
-
- # ---- locals
-
- declare -a argv
-
-
- # ---- support functions
-
- function trace {
- [[ -n "$_{{name}}_log" ]] && echo "$*" >&2
- }
-
- function _dashdash_complete {
- local idx context
- idx=$1
- context=$2
-
- local shortopts longopts optargs subcmds allsubcmds argtypes
- shortopts="$(eval "echo \${cmd${context}_shortopts}")"
- longopts="$(eval "echo \${cmd${context}_longopts}")"
- optargs="$(eval "echo \${cmd${context}_optargs}")"
- subcmds="$(eval "echo \${cmd${context}_subcmds}")"
- allsubcmds="$(eval "echo \${cmd${context}_allsubcmds}")"
- IFS=', ' read -r -a argtypes <<< "$(eval "echo \${cmd${context}_argtypes}")"
-
- trace ""
- trace "_dashdash_complete(idx=$idx, context=$context)"
- trace " shortopts: $shortopts"
- trace " longopts: $longopts"
- trace " optargs: $optargs"
- trace " subcmds: $subcmds"
- trace " allsubcmds: $allsubcmds"
-
- # Get 'state' of option parsing at this COMP_POINT.
- # Copying "dashdash.js#parse()" behaviour here.
- local state=
- local nargs=0
- local i=$idx
- local argtype
- local optname
- local prefix
- local word
- local dashdashseen=
- while [[ $i -lt $len && $i -le $COMP_CWORD ]]; do
- argtype=
- optname=
- prefix=
- word=
-
- arg=${argv[$i]}
- trace " consider argv[$i]: '$arg'"
-
- if [[ "$arg" == "--" && $i -lt $COMP_CWORD ]]; then
- trace " dashdash seen"
- dashdashseen=yes
- state=arg
- word=$arg
- elif [[ -z "$dashdashseen" && "${arg:0:2}" == "--" ]]; then
- arg=${arg:2}
- if [[ "$arg" == *"="* ]]; then
- optname=${arg%%=*}
- val=${arg##*=}
- trace " long opt: optname='$optname' val='$val'"
- state=arg
- argtype=$(echo "$optargs" | awk -F "-$optname=" '{print $2}' | cut -d' ' -f1)
- word=$val
- prefix="--$optname="
- else
- optname=$arg
- val=
- trace " long opt: optname='$optname'"
- state=longopt
- word=--$optname
-
- if [[ "$optargs" == *"-$optname="* && $i -lt $COMP_CWORD ]]; then
- i=$(( $i + 1 ))
- state=arg
- argtype=$(echo "$optargs" | awk -F "-$optname=" '{print $2}' | cut -d' ' -f1)
- word=${argv[$i]}
- trace " takes arg (consume argv[$i], word='$word')"
- fi
- fi
- elif [[ -z "$dashdashseen" && "${arg:0:1}" == "-" ]]; then
- trace " short opt group"
- state=shortopt
- word=$arg
-
- local j=1
- while [[ $j -lt ${#arg} ]]; do
- optname=${arg:$j:1}
- trace " consider index $j: optname '$optname'"
-
- if [[ "$optargs" == *"-$optname="* ]]; then
- argtype=$(echo "$optargs" | awk -F "-$optname=" '{print $2}' | cut -d' ' -f1)
- if [[ $(( $j + 1 )) -lt ${#arg} ]]; then
- state=arg
- word=${arg:$(( $j + 1 ))}
- trace " takes arg (rest of this arg, word='$word', argtype='$argtype')"
- elif [[ $i -lt $COMP_CWORD ]]; then
- state=arg
- i=$(( $i + 1 ))
- word=${argv[$i]}
- trace " takes arg (word='$word', argtype='$argtype')"
- fi
- break
- fi
-
- j=$(( $j + 1 ))
- done
- elif [[ $i -lt $COMP_CWORD && -n "$arg" ]] && $(echo "$allsubcmds" | grep -w "$arg" >/dev/null); then
- trace " complete subcmd: recurse _dashdash_complete"
- _dashdash_complete $(( $i + 1 )) "${context}__${arg/-/_}"
- return
- else
- trace " not an opt or a complete subcmd"
- state=arg
- word=$arg
- nargs=$(( $nargs + 1 ))
- if [[ ${#argtypes[@]} -gt 0 ]]; then
- argtype="${argtypes[$(( $nargs - 1 ))]}"
- if [[ -z "$argtype" ]]; then
- # If we have more args than argtypes, we use the
- # last type.
- argtype="${argtypes[@]: -1:1}"
- fi
- fi
- fi
-
- trace " state=$state prefix='$prefix' word='$word'"
- i=$(( $i + 1 ))
- done
-
- trace " parsed: state=$state optname='$optname' argtype='$argtype' prefix='$prefix' word='$word' dashdashseen=$dashdashseen"
- local compgen_opts=
- if [[ -n "$prefix" ]]; then
- compgen_opts="$compgen_opts -P $prefix"
- fi
-
- case $state in
- shortopt)
- compgen $compgen_opts -W "$shortopts $longopts" -- "$word"
- ;;
- longopt)
- compgen $compgen_opts -W "$longopts" -- "$word"
- ;;
- arg)
- # If we don't know what completion to do, then emit nothing. We
- # expect that we are running with:
- # complete -o default ...
- # where "default" means: "Use Readline's default completion if
- # the compspec generates no matches." This gives us the good filename
- # completion, completion in subshells/backticks.
- #
- # We cannot support an argtype="directory" because
- # compgen -S '/' -A directory -- "$word"
- # doesn't give a satisfying result. It doesn't stop at the trailing '/'
- # so you cannot descend into dirs.
- if [[ "${word:0:1}" == '$' ]]; then
- # By default, Bash will complete '$<TAB>' to all envvars. Apparently
- # 'complete -o default' does *not* give us that. The following
- # gets *close* to the same completions: '-A export' misses envvars
- # like "PS1".
- trace " completing envvars"
- compgen $compgen_opts -P '$' -A export -- "${word:1}"
- elif [[ -z "$argtype" ]]; then
- # Only include opts in completions if $word is not empty.
- # This is to avoid completing the leading '-', which foils
- # using 'default' completion.
- if [[ -n "$dashdashseen" ]]; then
- trace " completing subcmds, if any (no argtype, dashdash seen)"
- compgen $compgen_opts -W "$subcmds" -- "$word"
- elif [[ -z "$word" ]]; then
- trace " completing subcmds, if any (no argtype, empty word)"
- compgen $compgen_opts -W "$subcmds" -- "$word"
- else
- trace " completing opts & subcmds (no argtype)"
- compgen $compgen_opts -W "$shortopts $longopts $subcmds" -- "$word"
- fi
- elif [[ $argtype == "none" ]]; then
- # We want *no* completions, i.e. some way to get the active
- # 'complete -o default' to not do filename completion.
- trace " completing 'none' (hack to imply no completions)"
- echo "##-no-completion- -results-##"
- elif [[ $argtype == "file" ]]; then
- # 'complete -o default' gives the best filename completion, at least
- # on Mac.
- trace " completing 'file' (let 'complete -o default' handle it)"
- echo ""
- elif ! type complete_$argtype 2>/dev/null >/dev/null; then
- trace " completing '$argtype' (fallback to default b/c complete_$argtype is unknown)"
- echo ""
- else
- trace " completing custom '$argtype'"
- completions=$(complete_$argtype "$word")
- if [[ -z "$completions" ]]; then
- trace " no custom '$argtype' completions"
- # These are in ascii and "dictionary" order so they sort
- # correctly.
- echo "##-no-completion- -results-##"
- else
- echo $completions
- fi
- fi
- ;;
- *)
- trace " unknown state: $state"
- ;;
- esac
- }
-
-
- trace ""
- trace "-- $(date)"
- #trace "\$IFS: '$IFS'"
- #trace "\$@: '$@'"
- #trace "COMP_WORDBREAKS: '$COMP_WORDBREAKS'"
- trace "COMP_CWORD: '$COMP_CWORD'"
- trace "COMP_LINE: '$COMP_LINE'"
- trace "COMP_POINT: $COMP_POINT"
-
- # Guard against negative COMP_CWORD. This is a Bash bug at least on
- # Mac 10.10.4's bash. See
- # <https://lists.gnu.org/archive/html/bug-bash/2009-07/msg00125.html>.
- if [[ $COMP_CWORD -lt 0 ]]; then
- trace "abort on negative COMP_CWORD"
- exit 1;
- fi
-
- # I don't know how to do array manip on argv vars,
- # so copy over to argv array to work on them.
- shift # the leading '--'
- i=0
- len=$#
- while [[ $# -gt 0 ]]; do
- argv[$i]=$1
- shift;
- i=$(( $i + 1 ))
- done
- trace "argv: '${argv[@]}'"
- trace "argv[COMP_CWORD-1]: '${argv[$(( $COMP_CWORD - 1 ))]}'"
- trace "argv[COMP_CWORD]: '${argv[$COMP_CWORD]}'"
- trace "argv len: '$len'"
-
- _dashdash_complete 1 ""
-}
-
-
-# ---- mainline
-
-# Note: This if-block to help work with 'compdef' and 'compctl' is
-# adapted from 'npm completion'.
-if type complete &>/dev/null; then
- function _{{name}}_completion {
- local _log_file=/dev/null
- [[ -z "$_{{name}}_log" ]] || _log_file="$_{{name}}_log"
- COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
- COMP_LINE="$COMP_LINE" \
- COMP_POINT="$COMP_POINT" \
- _{{name}}_completer -- "${COMP_WORDS[@]}" \
- 2>$_log_file)) || return $?
- }
- complete -o default -F _{{name}}_completion {{name}}
-elif type compdef &>/dev/null; then
- function _{{name}}_completion {
- local _log_file=/dev/null
- [[ -z "$_{{name}}_log" ]] || _log_file="$_{{name}}_log"
- compadd -- $(COMP_CWORD=$((CURRENT-1)) \
- COMP_LINE=$BUFFER \
- COMP_POINT=0 \
- _{{name}}_completer -- "${words[@]}" \
- 2>$_log_file)
- }
- compdef _{{name}}_completion {{name}}
-elif type compctl &>/dev/null; then
- function _{{name}}_completion {
- local cword line point words si
- read -Ac words
- read -cn cword
- let cword-=1
- read -l line
- read -ln point
- local _log_file=/dev/null
- [[ -z "$_{{name}}_log" ]] || _log_file="$_{{name}}_log"
- reply=($(COMP_CWORD="$cword" \
- COMP_LINE="$line" \
- COMP_POINT="$point" \
- _{{name}}_completer -- "${words[@]}" \
- 2>$_log_file)) || return $?
- }
- compctl -K _{{name}}_completion {{name}}
-fi
-
-
-##
-## This is a Bash completion file for the '{{name}}' command. You can install
-## with either:
-##
-## cp FILE /usr/local/etc/bash_completion.d/{{name}} # Mac
-## cp FILE /etc/bash_completion.d/{{name}} # Linux
-##
-## or:
-##
-## cp FILE > ~/.{{name}}.completion
-## echo "source ~/.{{name}}.completion" >> ~/.bashrc
-## \ No newline at end of file
diff --git a/node_modules/dashdash/lib/dashdash.js b/node_modules/dashdash/lib/dashdash.js
deleted file mode 100644
index adb6f13..0000000
--- a/node_modules/dashdash/lib/dashdash.js
+++ /dev/null
@@ -1,1055 +0,0 @@
-/**
- * dashdash - A light, featureful and explicit option parsing library for
- * node.js.
- */
-// vim: set ts=4 sts=4 sw=4 et:
-
-var assert = require('assert-plus');
-var format = require('util').format;
-var fs = require('fs');
-var path = require('path');
-
-
-var DEBUG = true;
-if (DEBUG) {
- var debug = console.warn;
-} else {
- var debug = function () {};
-}
-
-
-
-// ---- internal support stuff
-
-// Replace {{variable}} in `s` with the template data in `d`.
-function renderTemplate(s, d) {
- return s.replace(/{{([a-zA-Z]+)}}/g, function (match, key) {
- return d.hasOwnProperty(key) ? d[key] : match;
- });
-}
-
-/**
- * Return a shallow copy of the given object;
- */
-function shallowCopy(obj) {
- if (!obj) {
- return (obj);
- }
- var copy = {};
- Object.keys(obj).forEach(function (k) {
- copy[k] = obj[k];
- });
- return (copy);
-}
-
-
-function space(n) {
- var s = '';
- for (var i = 0; i < n; i++) {
- s += ' ';
- }
- return s;
-}
-
-
-function makeIndent(arg, deflen, name) {
- if (arg === null || arg === undefined)
- return space(deflen);
- else if (typeof (arg) === 'number')
- return space(arg);
- else if (typeof (arg) === 'string')
- return arg;
- else
- assert.fail('invalid "' + name + '": not a string or number: ' + arg);
-}
-
-
-/**
- * Return an array of lines wrapping the given text to the given width.
- * This splits on whitespace. Single tokens longer than `width` are not
- * broken up.
- */
-function textwrap(s, width) {
- var words = s.trim().split(/\s+/);
- var lines = [];
- var line = '';
- words.forEach(function (w) {
- var newLength = line.length + w.length;
- if (line.length > 0)
- newLength += 1;
- if (newLength > width) {
- lines.push(line);
- line = '';
- }
- if (line.length > 0)
- line += ' ';
- line += w;
- });
- lines.push(line);
- return lines;
-}
-
-
-/**
- * Transform an option name to a "key" that is used as the field
- * on the `opts` object returned from `<parser>.parse()`.
- *
- * Transformations:
- * - '-' -> '_': This allow one to use hyphen in option names (common)
- * but not have to do silly things like `opt["dry-run"]` to access the
- * parsed results.
- */
-function optionKeyFromName(name) {
- return name.replace(/-/g, '_');
-}
-
-
-
-// ---- Option types
-
-function parseBool(option, optstr, arg) {
- return Boolean(arg);
-}
-
-function parseString(option, optstr, arg) {
- assert.string(arg, 'arg');
- return arg;
-}
-
-function parseNumber(option, optstr, arg) {
- assert.string(arg, 'arg');
- var num = Number(arg);
- if (isNaN(num)) {
- throw new Error(format('arg for "%s" is not a number: "%s"',
- optstr, arg));
- }
- return num;
-}
-
-function parseInteger(option, optstr, arg) {
- assert.string(arg, 'arg');
- var num = Number(arg);
- if (!/^[0-9-]+$/.test(arg) || isNaN(num)) {
- throw new Error(format('arg for "%s" is not an integer: "%s"',
- optstr, arg));
- }
- return num;
-}
-
-function parsePositiveInteger(option, optstr, arg) {
- assert.string(arg, 'arg');
- var num = Number(arg);
- if (!/^[0-9]+$/.test(arg) || isNaN(num) || num === 0) {
- throw new Error(format('arg for "%s" is not a positive integer: "%s"',
- optstr, arg));
- }
- return num;
-}
-
-/**
- * Supported date args:
- * - epoch second times (e.g. 1396031701)
- * - ISO 8601 format: YYYY-MM-DD[THH:MM:SS[.sss][Z]]
- * 2014-03-28T18:35:01.489Z
- * 2014-03-28T18:35:01.489
- * 2014-03-28T18:35:01Z
- * 2014-03-28T18:35:01
- * 2014-03-28
- */
-function parseDate(option, optstr, arg) {
- assert.string(arg, 'arg');
- var date;
- if (/^\d+$/.test(arg)) {
- // epoch seconds
- date = new Date(Number(arg) * 1000);
- /* JSSTYLED */
- } else if (/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?Z?)?$/i.test(arg)) {
- // ISO 8601 format
- date = new Date(arg);
- } else {
- throw new Error(format('arg for "%s" is not a valid date format: "%s"',
- optstr, arg));
- }
- if (date.toString() === 'Invalid Date') {
- throw new Error(format('arg for "%s" is an invalid date: "%s"',
- optstr, arg));
- }
- return date;
-}
-
-var optionTypes = {
- bool: {
- takesArg: false,
- parseArg: parseBool
- },
- string: {
- takesArg: true,
- helpArg: 'ARG',
- parseArg: parseString
- },
- number: {
- takesArg: true,
- helpArg: 'NUM',
- parseArg: parseNumber
- },
- integer: {
- takesArg: true,
- helpArg: 'INT',
- parseArg: parseInteger
- },
- positiveInteger: {
- takesArg: true,
- helpArg: 'INT',
- parseArg: parsePositiveInteger
- },
- date: {
- takesArg: true,
- helpArg: 'DATE',
- parseArg: parseDate
- },
- arrayOfBool: {
- takesArg: false,
- array: true,
- parseArg: parseBool
- },
- arrayOfString: {
- takesArg: true,
- helpArg: 'ARG',
- array: true,
- parseArg: parseString
- },
- arrayOfNumber: {
- takesArg: true,
- helpArg: 'NUM',
- array: true,
- parseArg: parseNumber
- },
- arrayOfInteger: {
- takesArg: true,
- helpArg: 'INT',
- array: true,
- parseArg: parseInteger
- },
- arrayOfPositiveInteger: {
- takesArg: true,
- helpArg: 'INT',
- array: true,
- parseArg: parsePositiveInteger
- },
- arrayOfDate: {
- takesArg: true,
- helpArg: 'INT',
- array: true,
- parseArg: parseDate
- },
-};
-
-
-
-// ---- Parser
-
-/**
- * Parser constructor.
- *
- * @param config {Object} The parser configuration
- * - options {Array} Array of option specs. See the README for how to
- * specify each option spec.
- * - allowUnknown {Boolean} Default false. Whether to throw on unknown
- * options. If false, then unknown args are included in the _args array.
- * - interspersed {Boolean} Default true. Whether to allow interspersed
- * arguments (non-options) and options. E.g.:
- * node tool.js arg1 arg2 -v
- * '-v' is after some args here. If `interspersed: false` then '-v'
- * would not be parsed out. Note that regardless of `interspersed`
- * the presence of '--' will stop option parsing, as all good
- * option parsers should.
- */
-function Parser(config) {
- assert.object(config, 'config');
- assert.arrayOfObject(config.options, 'config.options');
- assert.optionalBool(config.interspersed, 'config.interspersed');
- var self = this;
-
- // Allow interspersed arguments (true by default).
- this.interspersed = (config.interspersed !== undefined
- ? config.interspersed : true);
-
- // Don't allow unknown flags (true by default).
- this.allowUnknown = (config.allowUnknown !== undefined
- ? config.allowUnknown : false);
-
- this.options = config.options.map(function (o) { return shallowCopy(o); });
- this.optionFromName = {};
- this.optionFromEnv = {};
- for (var i = 0; i < this.options.length; i++) {
- var o = this.options[i];
- if (o.group !== undefined && o.group !== null) {
- assert.optionalString(o.group,
- format('config.options.%d.group', i));
- continue;
- }
- assert.ok(optionTypes[o.type],
- format('invalid config.options.%d.type: "%s" in %j',
- i, o.type, o));
- assert.optionalString(o.name, format('config.options.%d.name', i));
- assert.optionalArrayOfString(o.names,
- format('config.options.%d.names', i));
- assert.ok((o.name || o.names) && !(o.name && o.names),
- format('exactly one of "name" or "names" required: %j', o));
- assert.optionalString(o.help, format('config.options.%d.help', i));
- var env = o.env || [];
- if (typeof (env) === 'string') {
- env = [env];
- }
- assert.optionalArrayOfString(env, format('config.options.%d.env', i));
- assert.optionalString(o.helpGroup,
- format('config.options.%d.helpGroup', i));
- assert.optionalBool(o.helpWrap,
- format('config.options.%d.helpWrap', i));
- assert.optionalBool(o.hidden, format('config.options.%d.hidden', i));
-
- if (o.name) {
- o.names = [o.name];
- } else {
- assert.string(o.names[0],
- format('config.options.%d.names is empty', i));
- }
- o.key = optionKeyFromName(o.names[0]);
- o.names.forEach(function (n) {
- if (self.optionFromName[n]) {
- throw new Error(format(
- 'option name collision: "%s" used in %j and %j',
- n, self.optionFromName[n], o));
- }
- self.optionFromName[n] = o;
- });
- env.forEach(function (n) {
- if (self.optionFromEnv[n]) {
- throw new Error(format(
- 'option env collision: "%s" used in %j and %j',
- n, self.optionFromEnv[n], o));
- }
- self.optionFromEnv[n] = o;
- });
- }
-}
-
-Parser.prototype.optionTakesArg = function optionTakesArg(option) {
- return optionTypes[option.type].takesArg;
-};
-
-/**
- * Parse options from the given argv.
- *
- * @param inputs {Object} Optional.
- * - argv {Array} Optional. The argv to parse. Defaults to
- * `process.argv`.
- * - slice {Number} The index into argv at which options/args begin.
- * Default is 2, as appropriate for `process.argv`.
- * - env {Object} Optional. The env to use for 'env' entries in the
- * option specs. Defaults to `process.env`.
- * @returns {Object} Parsed `opts`. It has special keys `_args` (the
- * remaining args from `argv`) and `_order` (gives the order that
- * options were specified).
- */
-Parser.prototype.parse = function parse(inputs) {
- var self = this;
-
- // Old API was `parse([argv, [slice]])`
- if (Array.isArray(arguments[0])) {
- inputs = {argv: arguments[0], slice: arguments[1]};
- }
-
- assert.optionalObject(inputs, 'inputs');
- if (!inputs) {
- inputs = {};
- }
- assert.optionalArrayOfString(inputs.argv, 'inputs.argv');
- //assert.optionalNumber(slice, 'slice');
- var argv = inputs.argv || process.argv;
- var slice = inputs.slice !== undefined ? inputs.slice : 2;
- var args = argv.slice(slice);
- var env = inputs.env || process.env;
- var opts = {};
- var _order = [];
-
- function addOpt(option, optstr, key, val, from) {
- var type = optionTypes[option.type];
- var parsedVal = type.parseArg(option, optstr, val);
- if (type.array) {
- if (!opts[key]) {
- opts[key] = [];
- }
- if (type.arrayFlatten && Array.isArray(parsedVal)) {
- for (var i = 0; i < parsedVal.length; i++) {
- opts[key].push(parsedVal[i]);
- }
- } else {
- opts[key].push(parsedVal);
- }
- } else {
- opts[key] = parsedVal;
- }
- var item = { key: key, value: parsedVal, from: from };
- _order.push(item);
- }
-
- // Parse args.
- var _args = [];
- var i = 0;
- outer: while (i < args.length) {
- var arg = args[i];
-
- // End of options marker.
- if (arg === '--') {
- i++;
- break;
-
- // Long option
- } else if (arg.slice(0, 2) === '--') {
- var name = arg.slice(2);
- var val = null;
- var idx = name.indexOf('=');
- if (idx !== -1) {
- val = name.slice(idx + 1);
- name = name.slice(0, idx);
- }
- var option = this.optionFromName[name];
- if (!option) {
- if (!this.allowUnknown)
- throw new Error(format('unknown option: "--%s"', name));
- else if (this.interspersed)
- _args.push(arg);
- else
- break outer;
- } else {
- var takesArg = this.optionTakesArg(option);
- if (val !== null && !takesArg) {
- throw new Error(format('argument given to "--%s" option '
- + 'that does not take one: "%s"', name, arg));
- }
- if (!takesArg) {
- addOpt(option, '--'+name, option.key, true, 'argv');
- } else if (val !== null) {
- addOpt(option, '--'+name, option.key, val, 'argv');
- } else if (i + 1 >= args.length) {
- throw new Error(format('do not have enough args for "--%s" '
- + 'option', name));
- } else {
- addOpt(option, '--'+name, option.key, args[i + 1], 'argv');
- i++;
- }
- }
-
- // Short option
- } else if (arg[0] === '-' && arg.length > 1) {
- var j = 1;
- var allFound = true;
- while (j < arg.length) {
- var name = arg[j];
- var option = this.optionFromName[name];
- if (!option) {
- allFound = false;
- if (this.allowUnknown) {
- if (this.interspersed) {
- _args.push(arg);
- break;
- } else
- break outer;
- } else if (arg.length > 2) {
- throw new Error(format(
- 'unknown option: "-%s" in "%s" group',
- name, arg));
- } else {
- throw new Error(format('unknown option: "-%s"', name));
- }
- } else if (this.optionTakesArg(option)) {
- break;
- }
- j++;
- }
-
- j = 1;
- while (allFound && j < arg.length) {
- var name = arg[j];
- var val = arg.slice(j + 1); // option val if it takes an arg
- var option = this.optionFromName[name];
- var takesArg = this.optionTakesArg(option);
- if (!takesArg) {
- addOpt(option, '-'+name, option.key, true, 'argv');
- } else if (val) {
- addOpt(option, '-'+name, option.key, val, 'argv');
- break;
- } else {
- if (i + 1 >= args.length) {
- throw new Error(format('do not have enough args '
- + 'for "-%s" option', name));
- }
- addOpt(option, '-'+name, option.key, args[i + 1], 'argv');
- i++;
- break;
- }
- j++;
- }
-
- // An interspersed arg
- } else if (this.interspersed) {
- _args.push(arg);
-
- // An arg and interspersed args are not allowed, so done options.
- } else {
- break outer;
- }
- i++;
- }
- _args = _args.concat(args.slice(i));
-
- // Parse environment.
- Object.keys(this.optionFromEnv).forEach(function (envname) {
- var val = env[envname];
- if (val === undefined)
- return;
- var option = self.optionFromEnv[envname];
- if (opts[option.key] !== undefined)
- return;
- var takesArg = self.optionTakesArg(option);
- if (takesArg) {
- addOpt(option, envname, option.key, val, 'env');
- } else if (val !== '') {
- // Boolean envvar handling:
- // - VAR=<empty-string> not set (as if the VAR was not set)
- // - VAR=0 false
- // - anything else true
- addOpt(option, envname, option.key, (val !== '0'), 'env');
- }
- });
-
- // Apply default values.
- this.options.forEach(function (o) {
- if (opts[o.key] === undefined) {
- if (o.default !== undefined) {
- opts[o.key] = o.default;
- } else if (o.type && optionTypes[o.type].default !== undefined) {
- opts[o.key] = optionTypes[o.type].default;
- }
- }
- });
-
- opts._order = _order;
- opts._args = _args;
- return opts;
-};
-
-
-/**
- * Return help output for the current options.
- *
- * E.g.: if the current options are:
- * [{names: ['help', 'h'], type: 'bool', help: 'Show help and exit.'}]
- * then this would return:
- * ' -h, --help Show help and exit.\n'
- *
- * @param config {Object} Config for controlling the option help output.
- * - indent {Number|String} Default 4. An indent/prefix to use for
- * each option line.
- * - nameSort {String} Default is 'length'. By default the names are
- * sorted to put the short opts first (i.e. '-h, --help' preferred
- * to '--help, -h'). Set to 'none' to not do this sorting.
- * - maxCol {Number} Default 80. Note that long tokens in a help string
- * can go past this.
- * - helpCol {Number} Set to specify a specific column at which
- * option help will be aligned. By default this is determined
- * automatically.
- * - minHelpCol {Number} Default 20.
- * - maxHelpCol {Number} Default 40.
- * - includeEnv {Boolean} Default false. If true, a note stating the `env`
- * envvar (if specified for this option) will be appended to the help
- * output.
- * - includeDefault {Boolean} Default false. If true, a note stating
- * the `default` for this option, if any, will be appended to the help
- * output.
- * - helpWrap {Boolean} Default true. Wrap help text in helpCol..maxCol
- * bounds.
- * @returns {String}
- */
-Parser.prototype.help = function help(config) {
- config = config || {};
- assert.object(config, 'config');
-
- var indent = makeIndent(config.indent, 4, 'config.indent');
- var headingIndent = makeIndent(config.headingIndent,
- Math.round(indent.length / 2), 'config.headingIndent');
-
- assert.optionalString(config.nameSort, 'config.nameSort');
- var nameSort = config.nameSort || 'length';
- assert.ok(~['length', 'none'].indexOf(nameSort),
- 'invalid "config.nameSort"');
- assert.optionalNumber(config.maxCol, 'config.maxCol');
- assert.optionalNumber(config.maxHelpCol, 'config.maxHelpCol');
- assert.optionalNumber(config.minHelpCol, 'config.minHelpCol');
- assert.optionalNumber(config.helpCol, 'config.helpCol');
- assert.optionalBool(config.includeEnv, 'config.includeEnv');
- assert.optionalBool(config.includeDefault, 'config.includeDefault');
- assert.optionalBool(config.helpWrap, 'config.helpWrap');
- var maxCol = config.maxCol || 80;
- var minHelpCol = config.minHelpCol || 20;
- var maxHelpCol = config.maxHelpCol || 40;
-
- var lines = [];
- var maxWidth = 0;
- this.options.forEach(function (o) {
- if (o.hidden) {
- return;
- }
- if (o.group !== undefined && o.group !== null) {
- // We deal with groups in the next pass
- lines.push(null);
- return;
- }
- var type = optionTypes[o.type];
- var arg = o.helpArg || type.helpArg || 'ARG';
- var line = '';
- var names = o.names.slice();
- if (nameSort === 'length') {
- names.sort(function (a, b) {
- if (a.length < b.length)
- return -1;
- else if (b.length < a.length)
- return 1;
- else
- return 0;
- })
- }
- names.forEach(function (name, i) {
- if (i > 0)
- line += ', ';
- if (name.length === 1) {
- line += '-' + name
- if (type.takesArg)
- line += ' ' + arg;
- } else {
- line += '--' + name
- if (type.takesArg)
- line += '=' + arg;
- }
- });
- maxWidth = Math.max(maxWidth, line.length);
- lines.push(line);
- });
-
- // Add help strings.
- var helpCol = config.helpCol;
- if (!helpCol) {
- helpCol = maxWidth + indent.length + 2;
- helpCol = Math.min(Math.max(helpCol, minHelpCol), maxHelpCol);
- }
- var i = -1;
- this.options.forEach(function (o) {
- if (o.hidden) {
- return;
- }
- i++;
-
- if (o.group !== undefined && o.group !== null) {
- if (o.group === '') {
- // Support a empty string "group" to have a blank line between
- // sets of options.
- lines[i] = '';
- } else {
- // Render the group heading with the heading-specific indent.
- lines[i] = (i === 0 ? '' : '\n') + headingIndent +
- o.group + ':';
- }
- return;
- }
-
- var helpDefault;
- if (config.includeDefault) {
- if (o.default !== undefined) {
- helpDefault = format('Default: %j', o.default);
- } else if (o.type && optionTypes[o.type].default !== undefined) {
- helpDefault = format('Default: %j',
- optionTypes[o.type].default);
- }
- }
-
- var line = lines[i] = indent + lines[i];
- if (!o.help && !(config.includeEnv && o.env) && !helpDefault) {
- return;
- }
- var n = helpCol - line.length;
- if (n >= 0) {
- line += space(n);
- } else {
- line += '\n' + space(helpCol);
- }
-
- var helpEnv = '';
- if (o.env && o.env.length && config.includeEnv) {
- helpEnv += 'Environment: ';
- var type = optionTypes[o.type];
- var arg = o.helpArg || type.helpArg || 'ARG';
- var envs = (Array.isArray(o.env) ? o.env : [o.env]).map(
- function (e) {
- if (type.takesArg) {
- return e + '=' + arg;
- } else {
- return e + '=1';
- }
- }
- );
- helpEnv += envs.join(', ');
- }
- var help = (o.help || '').trim();
- if (o.helpWrap !== false && config.helpWrap !== false) {
- // Wrap help description normally.
- if (help.length && !~'.!?"\''.indexOf(help.slice(-1))) {
- help += '.';
- }
- if (help.length) {
- help += ' ';
- }
- help += helpEnv;
- if (helpDefault) {
- if (helpEnv) {
- help += '. ';
- }
- help += helpDefault;
- }
- line += textwrap(help, maxCol - helpCol).join(
- '\n' + space(helpCol));
- } else {
- // Do not wrap help description, but indent newlines appropriately.
- var helpLines = help.split('\n').filter(
- function (ln) { return ln.length });
- if (helpEnv !== '') {
- helpLines.push(helpEnv);
- }
- if (helpDefault) {
- helpLines.push(helpDefault);
- }
- line += helpLines.join('\n' + space(helpCol));
- }
-
- lines[i] = line;
- });
-
- var rv = '';
- if (lines.length > 0) {
- rv = lines.join('\n') + '\n';
- }
- return rv;
-};
-
-
-/**
- * Return a string suitable for a Bash completion file for this tool.
- *
- * @param args.name {String} The tool name.
- * @param args.specExtra {String} Optional. Extra Bash code content to add
- * to the end of the "spec". Typically this is used to append Bash
- * "complete_TYPE" functions for custom option types. See
- * "examples/ddcompletion.js" for an example.
- * @param args.argtypes {Array} Optional. Array of completion types for
- * positional args (i.e. non-options). E.g.
- * argtypes = ['fruit', 'veggie', 'file']
- * will result in completion of fruits for the first arg, veggies for the
- * second, and filenames for the third and subsequent positional args.
- * If not given, positional args will use Bash's 'default' completion.
- * See `specExtra` for providing Bash `complete_TYPE` functions, e.g.
- * `complete_fruit` and `complete_veggie` in this example.
- */
-Parser.prototype.bashCompletion = function bashCompletion(args) {
- assert.object(args, 'args');
- assert.string(args.name, 'args.name');
- assert.optionalString(args.specExtra, 'args.specExtra');
- assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
-
- return bashCompletionFromOptions({
- name: args.name,
- specExtra: args.specExtra,
- argtypes: args.argtypes,
- options: this.options
- });
-};
-
-
-// ---- Bash completion
-
-const BASH_COMPLETION_TEMPLATE_PATH = path.join(
- __dirname, '../etc/dashdash.bash_completion.in');
-
-/**
- * Return the Bash completion "spec" (the string value for the "{{spec}}"
- * var in the "dashdash.bash_completion.in" template) for this tool.
- *
- * The "spec" is Bash code that defines the CLI options and subcmds for
- * the template's completion code. It looks something like this:
- *
- * local cmd_shortopts="-J ..."
- * local cmd_longopts="--help ..."
- * local cmd_optargs="-p=tritonprofile ..."
- *
- * @param args.options {Array} The array of dashdash option specs.
- * @param args.context {String} Optional. A context string for the "local cmd*"
- * vars in the spec. By default it is the empty string. When used to
- * scope for completion on a *sub-command* (e.g. for "git log" on a "git"
- * tool), then it would have a value (e.g. "__log"). See
- * <http://github.com/trentm/node-cmdln> Bash completion for details.
- * @param opts.includeHidden {Boolean} Optional. Default false. By default
- * hidden options and subcmds are "excluded". Here excluded means they
- * won't be offered as a completion, but if used, their argument type
- * will be completed. "Hidden" options and subcmds are ones with the
- * `hidden: true` attribute to exclude them from default help output.
- * @param args.argtypes {Array} Optional. Array of completion types for
- * positional args (i.e. non-options). E.g.
- * argtypes = ['fruit', 'veggie', 'file']
- * will result in completion of fruits for the first arg, veggies for the
- * second, and filenames for the third and subsequent positional args.
- * If not given, positional args will use Bash's 'default' completion.
- * See `specExtra` for providing Bash `complete_TYPE` functions, e.g.
- * `complete_fruit` and `complete_veggie` in this example.
- */
-function bashCompletionSpecFromOptions(args) {
- assert.object(args, 'args');
- assert.object(args.options, 'args.options');
- assert.optionalString(args.context, 'args.context');
- assert.optionalBool(args.includeHidden, 'args.includeHidden');
- assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
-
- var context = args.context || '';
- var includeHidden = (args.includeHidden === undefined
- ? false : args.includeHidden);
-
- var spec = [];
- var shortopts = [];
- var longopts = [];
- var optargs = [];
- (args.options || []).forEach(function (o) {
- if (o.group !== undefined && o.group !== null) {
- // Skip group headers.
- return;
- }
-
- var optNames = o.names || [o.name];
- var optType = getOptionType(o.type);
- if (optType.takesArg) {
- var completionType = o.completionType ||
- optType.completionType || o.type;
- optNames.forEach(function (optName) {
- if (optName.length === 1) {
- if (includeHidden || !o.hidden) {
- shortopts.push('-' + optName);
- }
- // Include even hidden options in `optargs` so that bash
- // completion of its arg still works.
- optargs.push('-' + optName + '=' + completionType);
- } else {
- if (includeHidden || !o.hidden) {
- longopts.push('--' + optName);
- }
- optargs.push('--' + optName + '=' + completionType);
- }
- });
- } else {
- optNames.forEach(function (optName) {
- if (includeHidden || !o.hidden) {
- if (optName.length === 1) {
- shortopts.push('-' + optName);
- } else {
- longopts.push('--' + optName);
- }
- }
- });
- }
- });
-
- spec.push(format('local cmd%s_shortopts="%s"',
- context, shortopts.sort().join(' ')));
- spec.push(format('local cmd%s_longopts="%s"',
- context, longopts.sort().join(' ')));
- spec.push(format('local cmd%s_optargs="%s"',
- context, optargs.sort().join(' ')));
- if (args.argtypes) {
- spec.push(format('local cmd%s_argtypes="%s"',
- context, args.argtypes.join(' ')));
- }
- return spec.join('\n');
-}
-
-
-/**
- * Return a string suitable for a Bash completion file for this tool.
- *
- * @param args.name {String} The tool name.
- * @param args.options {Array} The array of dashdash option specs.
- * @param args.specExtra {String} Optional. Extra Bash code content to add
- * to the end of the "spec". Typically this is used to append Bash
- * "complete_TYPE" functions for custom option types. See
- * "examples/ddcompletion.js" for an example.
- * @param args.argtypes {Array} Optional. Array of completion types for
- * positional args (i.e. non-options). E.g.
- * argtypes = ['fruit', 'veggie', 'file']
- * will result in completion of fruits for the first arg, veggies for the
- * second, and filenames for the third and subsequent positional args.
- * If not given, positional args will use Bash's 'default' completion.
- * See `specExtra` for providing Bash `complete_TYPE` functions, e.g.
- * `complete_fruit` and `complete_veggie` in this example.
- */
-function bashCompletionFromOptions(args) {
- assert.object(args, 'args');
- assert.object(args.options, 'args.options');
- assert.string(args.name, 'args.name');
- assert.optionalString(args.specExtra, 'args.specExtra');
- assert.optionalArrayOfString(args.argtypes, 'args.argtypes');
-
- // Gather template data.
- var data = {
- name: args.name,
- date: new Date(),
- spec: bashCompletionSpecFromOptions({
- options: args.options,
- argtypes: args.argtypes
- }),
- };
- if (args.specExtra) {
- data.spec += '\n\n' + args.specExtra;
- }
-
- // Render template.
- var template = fs.readFileSync(BASH_COMPLETION_TEMPLATE_PATH, 'utf8');
- return renderTemplate(template, data);
-}
-
-
-
-// ---- exports
-
-function createParser(config) {
- return new Parser(config);
-}
-
-/**
- * Parse argv with the given options.
- *
- * @param config {Object} A merge of all the available fields from
- * `dashdash.Parser` and `dashdash.Parser.parse`: options, interspersed,
- * argv, env, slice.
- */
-function parse(config) {
- assert.object(config, 'config');
- assert.optionalArrayOfString(config.argv, 'config.argv');
- assert.optionalObject(config.env, 'config.env');
- var config = shallowCopy(config);
- var argv = config.argv;
- delete config.argv;
- var env = config.env;
- delete config.env;
-
- var parser = new Parser(config);
- return parser.parse({argv: argv, env: env});
-}
-
-
-/**
- * Add a new option type.
- *
- * @params optionType {Object}:
- * - name {String} Required.
- * - takesArg {Boolean} Required. Whether this type of option takes an
- * argument on process.argv. Typically this is true for all but the
- * "bool" type.
- * - helpArg {String} Required iff `takesArg === true`. The string to
- * show in generated help for options of this type.
- * - parseArg {Function} Require. `function (option, optstr, arg)` parser
- * that takes a string argument and returns an instance of the
- * appropriate type, or throws an error if the arg is invalid.
- * - array {Boolean} Optional. Set to true if this is an 'arrayOf' type
- * that collects multiple usages of the option in process.argv and
- * puts results in an array.
- * - arrayFlatten {Boolean} Optional. XXX
- * - default Optional. Default value for options of this type, if no
- * default is specified in the option type usage.
- */
-function addOptionType(optionType) {
- assert.object(optionType, 'optionType');
- assert.string(optionType.name, 'optionType.name');
- assert.bool(optionType.takesArg, 'optionType.takesArg');
- if (optionType.takesArg) {
- assert.string(optionType.helpArg, 'optionType.helpArg');
- }
- assert.func(optionType.parseArg, 'optionType.parseArg');
- assert.optionalBool(optionType.array, 'optionType.array');
- assert.optionalBool(optionType.arrayFlatten, 'optionType.arrayFlatten');
-
- optionTypes[optionType.name] = {
- takesArg: optionType.takesArg,
- helpArg: optionType.helpArg,
- parseArg: optionType.parseArg,
- array: optionType.array,
- arrayFlatten: optionType.arrayFlatten,
- default: optionType.default
- }
-}
-
-
-function getOptionType(name) {
- assert.string(name, 'name');
- return optionTypes[name];
-}
-
-
-/**
- * Return a synopsis string for the given option spec.
- *
- * Examples:
- * > synopsisFromOpt({names: ['help', 'h'], type: 'bool'});
- * '[ --help | -h ]'
- * > synopsisFromOpt({name: 'file', type: 'string', helpArg: 'FILE'});
- * '[ --file=FILE ]'
- */
-function synopsisFromOpt(o) {
- assert.object(o, 'o');
-
- if (o.hasOwnProperty('group')) {
- return null;
- }
- var names = o.names || [o.name];
- // `type` here could be undefined if, for example, the command has a
- // dashdash option spec with a bogus 'type'.
- var type = getOptionType(o.type);
- var helpArg = o.helpArg || (type && type.helpArg) || 'ARG';
- var parts = [];
- names.forEach(function (name) {
- var part = (name.length === 1 ? '-' : '--') + name;
- if (type && type.takesArg) {
- part += (name.length === 1 ? ' ' + helpArg : '=' + helpArg);
- }
- parts.push(part);
- });
- return ('[ ' + parts.join(' | ') + ' ]');
-};
-
-
-module.exports = {
- createParser: createParser,
- Parser: Parser,
- parse: parse,
- addOptionType: addOptionType,
- getOptionType: getOptionType,
- synopsisFromOpt: synopsisFromOpt,
-
- // Bash completion-related exports
- BASH_COMPLETION_TEMPLATE_PATH: BASH_COMPLETION_TEMPLATE_PATH,
- bashCompletionFromOptions: bashCompletionFromOptions,
- bashCompletionSpecFromOptions: bashCompletionSpecFromOptions,
-
- // Export the parseFoo parsers because they might be useful as primitives
- // for custom option types.
- parseBool: parseBool,
- parseString: parseString,
- parseNumber: parseNumber,
- parseInteger: parseInteger,
- parsePositiveInteger: parsePositiveInteger,
- parseDate: parseDate
-};
diff --git a/node_modules/dashdash/package.json b/node_modules/dashdash/package.json
deleted file mode 100644
index f9e277c..0000000
--- a/node_modules/dashdash/package.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "_from": "dashdash@^1.12.0",
- "_id": "dashdash@1.14.1",
- "_inBundle": false,
- "_integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
- "_location": "/dashdash",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "dashdash@^1.12.0",
- "name": "dashdash",
- "escapedName": "dashdash",
- "rawSpec": "^1.12.0",
- "saveSpec": null,
- "fetchSpec": "^1.12.0"
- },
- "_requiredBy": [
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
- "_shasum": "853cfa0f7cbe2fed5de20326b8dd581035f6e2f0",
- "_spec": "dashdash@^1.12.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "author": {
- "name": "Trent Mick",
- "email": "trentm@gmail.com",
- "url": "http://trentm.com"
- },
- "bugs": {
- "url": "https://github.com/trentm/node-dashdash/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "assert-plus": "^1.0.0"
- },
- "deprecated": false,
- "description": "A light, featureful and explicit option parsing library.",
- "devDependencies": {
- "nodeunit": "0.9.x"
- },
- "engines": {
- "node": ">=0.10"
- },
- "homepage": "https://github.com/trentm/node-dashdash#readme",
- "keywords": [
- "option",
- "parser",
- "parsing",
- "cli",
- "command",
- "args",
- "bash",
- "completion"
- ],
- "license": "MIT",
- "main": "./lib/dashdash.js",
- "name": "dashdash",
- "repository": {
- "type": "git",
- "url": "git://github.com/trentm/node-dashdash.git"
- },
- "scripts": {
- "test": "nodeunit test/*.test.js"
- },
- "version": "1.14.1"
-}
diff --git a/node_modules/decamelize/index.js b/node_modules/decamelize/index.js
deleted file mode 100644
index 8d5bab7..0000000
--- a/node_modules/decamelize/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-module.exports = function (str, sep) {
- if (typeof str !== 'string') {
- throw new TypeError('Expected a string');
- }
-
- sep = typeof sep === 'undefined' ? '_' : sep;
-
- return str
- .replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
- .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
- .toLowerCase();
-};
diff --git a/node_modules/decamelize/license b/node_modules/decamelize/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/decamelize/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/decamelize/package.json b/node_modules/decamelize/package.json
deleted file mode 100644
index 47efc1c..0000000
--- a/node_modules/decamelize/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "decamelize@^1.1.2",
- "_id": "decamelize@1.2.0",
- "_inBundle": false,
- "_integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
- "_location": "/decamelize",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "decamelize@^1.1.2",
- "name": "decamelize",
- "escapedName": "decamelize",
- "rawSpec": "^1.1.2",
- "saveSpec": null,
- "fetchSpec": "^1.1.2"
- },
- "_requiredBy": [
- "/meow",
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
- "_shasum": "f6534d15148269b20352e7bee26f501f9a191290",
- "_spec": "decamelize@^1.1.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/decamelize/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/decamelize#readme",
- "keywords": [
- "decamelize",
- "decamelcase",
- "camelcase",
- "lowercase",
- "case",
- "dash",
- "hyphen",
- "string",
- "str",
- "text",
- "convert"
- ],
- "license": "MIT",
- "name": "decamelize",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/decamelize.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.2.0"
-}
diff --git a/node_modules/decamelize/readme.md b/node_modules/decamelize/readme.md
deleted file mode 100644
index 624c7ee..0000000
--- a/node_modules/decamelize/readme.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# decamelize [![Build Status](https://travis-ci.org/sindresorhus/decamelize.svg?branch=master)](https://travis-ci.org/sindresorhus/decamelize)
-
-> Convert a camelized string into a lowercased one with a custom separator<br>
-> Example: `unicornRainbow` → `unicorn_rainbow`
-
-
-## Install
-
-```
-$ npm install --save decamelize
-```
-
-
-## Usage
-
-```js
-const decamelize = require('decamelize');
-
-decamelize('unicornRainbow');
-//=> 'unicorn_rainbow'
-
-decamelize('unicornRainbow', '-');
-//=> 'unicorn-rainbow'
-```
-
-
-## API
-
-### decamelize(input, [separator])
-
-#### input
-
-Type: `string`
-
-#### separator
-
-Type: `string`<br>
-Default: `_`
-
-
-## Related
-
-See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/delayed-stream/.npmignore b/node_modules/delayed-stream/.npmignore
deleted file mode 100644
index 9daeafb..0000000
--- a/node_modules/delayed-stream/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-test
diff --git a/node_modules/delayed-stream/License b/node_modules/delayed-stream/License
deleted file mode 100644
index 4804b7a..0000000
--- a/node_modules/delayed-stream/License
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2011 Debuggable Limited <felix@debuggable.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/delayed-stream/Makefile b/node_modules/delayed-stream/Makefile
deleted file mode 100644
index b4ff85a..0000000
--- a/node_modules/delayed-stream/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-SHELL := /bin/bash
-
-test:
- @./test/run.js
-
-.PHONY: test
-
diff --git a/node_modules/delayed-stream/Readme.md b/node_modules/delayed-stream/Readme.md
deleted file mode 100644
index aca36f9..0000000
--- a/node_modules/delayed-stream/Readme.md
+++ /dev/null
@@ -1,141 +0,0 @@
-# delayed-stream
-
-Buffers events from a stream until you are ready to handle them.
-
-## Installation
-
-``` bash
-npm install delayed-stream
-```
-
-## Usage
-
-The following example shows how to write a http echo server that delays its
-response by 1000 ms.
-
-``` javascript
-var DelayedStream = require('delayed-stream');
-var http = require('http');
-
-http.createServer(function(req, res) {
- var delayed = DelayedStream.create(req);
-
- setTimeout(function() {
- res.writeHead(200);
- delayed.pipe(res);
- }, 1000);
-});
-```
-
-If you are not using `Stream#pipe`, you can also manually release the buffered
-events by calling `delayedStream.resume()`:
-
-``` javascript
-var delayed = DelayedStream.create(req);
-
-setTimeout(function() {
- // Emit all buffered events and resume underlaying source
- delayed.resume();
-}, 1000);
-```
-
-## Implementation
-
-In order to use this meta stream properly, here are a few things you should
-know about the implementation.
-
-### Event Buffering / Proxying
-
-All events of the `source` stream are hijacked by overwriting the `source.emit`
-method. Until node implements a catch-all event listener, this is the only way.
-
-However, delayed-stream still continues to emit all events it captures on the
-`source`, regardless of whether you have released the delayed stream yet or
-not.
-
-Upon creation, delayed-stream captures all `source` events and stores them in
-an internal event buffer. Once `delayedStream.release()` is called, all
-buffered events are emitted on the `delayedStream`, and the event buffer is
-cleared. After that, delayed-stream merely acts as a proxy for the underlaying
-source.
-
-### Error handling
-
-Error events on `source` are buffered / proxied just like any other events.
-However, `delayedStream.create` attaches a no-op `'error'` listener to the
-`source`. This way you only have to handle errors on the `delayedStream`
-object, rather than in two places.
-
-### Buffer limits
-
-delayed-stream provides a `maxDataSize` property that can be used to limit
-the amount of data being buffered. In order to protect you from bad `source`
-streams that don't react to `source.pause()`, this feature is enabled by
-default.
-
-## API
-
-### DelayedStream.create(source, [options])
-
-Returns a new `delayedStream`. Available options are:
-
-* `pauseStream`
-* `maxDataSize`
-
-The description for those properties can be found below.
-
-### delayedStream.source
-
-The `source` stream managed by this object. This is useful if you are
-passing your `delayedStream` around, and you still want to access properties
-on the `source` object.
-
-### delayedStream.pauseStream = true
-
-Whether to pause the underlaying `source` when calling
-`DelayedStream.create()`. Modifying this property afterwards has no effect.
-
-### delayedStream.maxDataSize = 1024 * 1024
-
-The amount of data to buffer before emitting an `error`.
-
-If the underlaying source is emitting `Buffer` objects, the `maxDataSize`
-refers to bytes.
-
-If the underlaying source is emitting JavaScript strings, the size refers to
-characters.
-
-If you know what you are doing, you can set this property to `Infinity` to
-disable this feature. You can also modify this property during runtime.
-
-### delayedStream.dataSize = 0
-
-The amount of data buffered so far.
-
-### delayedStream.readable
-
-An ECMA5 getter that returns the value of `source.readable`.
-
-### delayedStream.resume()
-
-If the `delayedStream` has not been released so far, `delayedStream.release()`
-is called.
-
-In either case, `source.resume()` is called.
-
-### delayedStream.pause()
-
-Calls `source.pause()`.
-
-### delayedStream.pipe(dest)
-
-Calls `delayedStream.resume()` and then proxies the arguments to `source.pipe`.
-
-### delayedStream.release()
-
-Emits and clears all events that have been buffered up so far. This does not
-resume the underlaying source, use `delayedStream.resume()` instead.
-
-## License
-
-delayed-stream is licensed under the MIT license.
diff --git a/node_modules/delayed-stream/lib/delayed_stream.js b/node_modules/delayed-stream/lib/delayed_stream.js
deleted file mode 100644
index b38fc85..0000000
--- a/node_modules/delayed-stream/lib/delayed_stream.js
+++ /dev/null
@@ -1,107 +0,0 @@
-var Stream = require('stream').Stream;
-var util = require('util');
-
-module.exports = DelayedStream;
-function DelayedStream() {
- this.source = null;
- this.dataSize = 0;
- this.maxDataSize = 1024 * 1024;
- this.pauseStream = true;
-
- this._maxDataSizeExceeded = false;
- this._released = false;
- this._bufferedEvents = [];
-}
-util.inherits(DelayedStream, Stream);
-
-DelayedStream.create = function(source, options) {
- var delayedStream = new this();
-
- options = options || {};
- for (var option in options) {
- delayedStream[option] = options[option];
- }
-
- delayedStream.source = source;
-
- var realEmit = source.emit;
- source.emit = function() {
- delayedStream._handleEmit(arguments);
- return realEmit.apply(source, arguments);
- };
-
- source.on('error', function() {});
- if (delayedStream.pauseStream) {
- source.pause();
- }
-
- return delayedStream;
-};
-
-Object.defineProperty(DelayedStream.prototype, 'readable', {
- configurable: true,
- enumerable: true,
- get: function() {
- return this.source.readable;
- }
-});
-
-DelayedStream.prototype.setEncoding = function() {
- return this.source.setEncoding.apply(this.source, arguments);
-};
-
-DelayedStream.prototype.resume = function() {
- if (!this._released) {
- this.release();
- }
-
- this.source.resume();
-};
-
-DelayedStream.prototype.pause = function() {
- this.source.pause();
-};
-
-DelayedStream.prototype.release = function() {
- this._released = true;
-
- this._bufferedEvents.forEach(function(args) {
- this.emit.apply(this, args);
- }.bind(this));
- this._bufferedEvents = [];
-};
-
-DelayedStream.prototype.pipe = function() {
- var r = Stream.prototype.pipe.apply(this, arguments);
- this.resume();
- return r;
-};
-
-DelayedStream.prototype._handleEmit = function(args) {
- if (this._released) {
- this.emit.apply(this, args);
- return;
- }
-
- if (args[0] === 'data') {
- this.dataSize += args[1].length;
- this._checkIfMaxDataSizeExceeded();
- }
-
- this._bufferedEvents.push(args);
-};
-
-DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
- if (this._maxDataSizeExceeded) {
- return;
- }
-
- if (this.dataSize <= this.maxDataSize) {
- return;
- }
-
- this._maxDataSizeExceeded = true;
- var message =
- 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'
- this.emit('error', new Error(message));
-};
diff --git a/node_modules/delayed-stream/package.json b/node_modules/delayed-stream/package.json
deleted file mode 100644
index c8d9f51..0000000
--- a/node_modules/delayed-stream/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_from": "delayed-stream@~1.0.0",
- "_id": "delayed-stream@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
- "_location": "/delayed-stream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "delayed-stream@~1.0.0",
- "name": "delayed-stream",
- "escapedName": "delayed-stream",
- "rawSpec": "~1.0.0",
- "saveSpec": null,
- "fetchSpec": "~1.0.0"
- },
- "_requiredBy": [
- "/combined-stream"
- ],
- "_resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "_shasum": "df3ae199acadfb7d440aaae0b29e2272b24ec619",
- "_spec": "delayed-stream@~1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/combined-stream",
- "author": {
- "name": "Felix Geisendörfer",
- "email": "felix@debuggable.com",
- "url": "http://debuggable.com/"
- },
- "bugs": {
- "url": "https://github.com/felixge/node-delayed-stream/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Mike Atkins",
- "email": "apeherder@gmail.com"
- }
- ],
- "dependencies": {},
- "deprecated": false,
- "description": "Buffers events from a stream until you are ready to handle them.",
- "devDependencies": {
- "fake": "0.2.0",
- "far": "0.0.1"
- },
- "engines": {
- "node": ">=0.4.0"
- },
- "homepage": "https://github.com/felixge/node-delayed-stream",
- "license": "MIT",
- "main": "./lib/delayed_stream",
- "name": "delayed-stream",
- "repository": {
- "type": "git",
- "url": "git://github.com/felixge/node-delayed-stream.git"
- },
- "scripts": {
- "test": "make test"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/delegates/.npmignore b/node_modules/delegates/.npmignore
deleted file mode 100644
index c2658d7..0000000
--- a/node_modules/delegates/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules/
diff --git a/node_modules/delegates/History.md b/node_modules/delegates/History.md
deleted file mode 100644
index 25959ea..0000000
--- a/node_modules/delegates/History.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-1.0.0 / 2015-12-14
-==================
-
- * Merge pull request #12 from kasicka/master
- * Add license text
-
-0.1.0 / 2014-10-17
-==================
-
- * adds `.fluent()` to api
-
-0.0.3 / 2014-01-13
-==================
-
- * fix receiver for .method()
-
-0.0.2 / 2014-01-13
-==================
-
- * Object.defineProperty() sucks
- * Initial commit
diff --git a/node_modules/delegates/License b/node_modules/delegates/License
deleted file mode 100644
index 60de60a..0000000
--- a/node_modules/delegates/License
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2015 TJ Holowaychuk <tj@vision-media.ca>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/delegates/Makefile b/node_modules/delegates/Makefile
deleted file mode 100644
index a9dcfd5..0000000
--- a/node_modules/delegates/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-
-test:
- @./node_modules/.bin/mocha \
- --require should \
- --reporter spec \
- --bail
-
-.PHONY: test \ No newline at end of file
diff --git a/node_modules/delegates/Readme.md b/node_modules/delegates/Readme.md
deleted file mode 100644
index ab8cf4a..0000000
--- a/node_modules/delegates/Readme.md
+++ /dev/null
@@ -1,94 +0,0 @@
-
-# delegates
-
- Node method and accessor delegation utilty.
-
-## Installation
-
-```
-$ npm install delegates
-```
-
-## Example
-
-```js
-var delegate = require('delegates');
-
-...
-
-delegate(proto, 'request')
- .method('acceptsLanguages')
- .method('acceptsEncodings')
- .method('acceptsCharsets')
- .method('accepts')
- .method('is')
- .access('querystring')
- .access('idempotent')
- .access('socket')
- .access('length')
- .access('query')
- .access('search')
- .access('status')
- .access('method')
- .access('path')
- .access('body')
- .access('host')
- .access('url')
- .getter('subdomains')
- .getter('protocol')
- .getter('header')
- .getter('stale')
- .getter('fresh')
- .getter('secure')
- .getter('ips')
- .getter('ip')
-```
-
-# API
-
-## Delegate(proto, prop)
-
-Creates a delegator instance used to configure using the `prop` on the given
-`proto` object. (which is usually a prototype)
-
-## Delegate#method(name)
-
-Allows the given method `name` to be accessed on the host.
-
-## Delegate#getter(name)
-
-Creates a "getter" for the property with the given `name` on the delegated
-object.
-
-## Delegate#setter(name)
-
-Creates a "setter" for the property with the given `name` on the delegated
-object.
-
-## Delegate#access(name)
-
-Creates an "accessor" (ie: both getter *and* setter) for the property with the
-given `name` on the delegated object.
-
-## Delegate#fluent(name)
-
-A unique type of "accessor" that works for a "fluent" API. When called as a
-getter, the method returns the expected value. However, if the method is called
-with a value, it will return itself so it can be chained. For example:
-
-```js
-delegate(proto, 'request')
- .fluent('query')
-
-// getter
-var q = request.query();
-
-// setter (chainable)
-request
- .query({ a: 1 })
- .query({ b: 2 });
-```
-
-# License
-
- MIT
diff --git a/node_modules/delegates/index.js b/node_modules/delegates/index.js
deleted file mode 100644
index 17c222d..0000000
--- a/node_modules/delegates/index.js
+++ /dev/null
@@ -1,121 +0,0 @@
-
-/**
- * Expose `Delegator`.
- */
-
-module.exports = Delegator;
-
-/**
- * Initialize a delegator.
- *
- * @param {Object} proto
- * @param {String} target
- * @api public
- */
-
-function Delegator(proto, target) {
- if (!(this instanceof Delegator)) return new Delegator(proto, target);
- this.proto = proto;
- this.target = target;
- this.methods = [];
- this.getters = [];
- this.setters = [];
- this.fluents = [];
-}
-
-/**
- * Delegate method `name`.
- *
- * @param {String} name
- * @return {Delegator} self
- * @api public
- */
-
-Delegator.prototype.method = function(name){
- var proto = this.proto;
- var target = this.target;
- this.methods.push(name);
-
- proto[name] = function(){
- return this[target][name].apply(this[target], arguments);
- };
-
- return this;
-};
-
-/**
- * Delegator accessor `name`.
- *
- * @param {String} name
- * @return {Delegator} self
- * @api public
- */
-
-Delegator.prototype.access = function(name){
- return this.getter(name).setter(name);
-};
-
-/**
- * Delegator getter `name`.
- *
- * @param {String} name
- * @return {Delegator} self
- * @api public
- */
-
-Delegator.prototype.getter = function(name){
- var proto = this.proto;
- var target = this.target;
- this.getters.push(name);
-
- proto.__defineGetter__(name, function(){
- return this[target][name];
- });
-
- return this;
-};
-
-/**
- * Delegator setter `name`.
- *
- * @param {String} name
- * @return {Delegator} self
- * @api public
- */
-
-Delegator.prototype.setter = function(name){
- var proto = this.proto;
- var target = this.target;
- this.setters.push(name);
-
- proto.__defineSetter__(name, function(val){
- return this[target][name] = val;
- });
-
- return this;
-};
-
-/**
- * Delegator fluent accessor
- *
- * @param {String} name
- * @return {Delegator} self
- * @api public
- */
-
-Delegator.prototype.fluent = function (name) {
- var proto = this.proto;
- var target = this.target;
- this.fluents.push(name);
-
- proto[name] = function(val){
- if ('undefined' != typeof val) {
- this[target][name] = val;
- return this;
- } else {
- return this[target][name];
- }
- };
-
- return this;
-};
diff --git a/node_modules/delegates/package.json b/node_modules/delegates/package.json
deleted file mode 100644
index 0192b6b..0000000
--- a/node_modules/delegates/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_from": "delegates@^1.0.0",
- "_id": "delegates@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
- "_location": "/delegates",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "delegates@^1.0.0",
- "name": "delegates",
- "escapedName": "delegates",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/are-we-there-yet"
- ],
- "_resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "_shasum": "84c6e159b81904fdca59a0ef44cd870d31250f9a",
- "_spec": "delegates@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/are-we-there-yet",
- "bugs": {
- "url": "https://github.com/visionmedia/node-delegates/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "delegate methods and accessors to another property",
- "devDependencies": {
- "mocha": "*",
- "should": "*"
- },
- "homepage": "https://github.com/visionmedia/node-delegates#readme",
- "keywords": [
- "delegate",
- "delegation"
- ],
- "license": "MIT",
- "name": "delegates",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/visionmedia/node-delegates.git"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/delegates/test/index.js b/node_modules/delegates/test/index.js
deleted file mode 100644
index 7b6e3d4..0000000
--- a/node_modules/delegates/test/index.js
+++ /dev/null
@@ -1,94 +0,0 @@
-
-var assert = require('assert');
-var delegate = require('..');
-
-describe('.method(name)', function(){
- it('should delegate methods', function(){
- var obj = {};
-
- obj.request = {
- foo: function(bar){
- assert(this == obj.request);
- return bar;
- }
- };
-
- delegate(obj, 'request').method('foo');
-
- obj.foo('something').should.equal('something');
- })
-})
-
-describe('.getter(name)', function(){
- it('should delegate getters', function(){
- var obj = {};
-
- obj.request = {
- get type() {
- return 'text/html';
- }
- }
-
- delegate(obj, 'request').getter('type');
-
- obj.type.should.equal('text/html');
- })
-})
-
-describe('.setter(name)', function(){
- it('should delegate setters', function(){
- var obj = {};
-
- obj.request = {
- get type() {
- return this._type.toUpperCase();
- },
-
- set type(val) {
- this._type = val;
- }
- }
-
- delegate(obj, 'request').setter('type');
-
- obj.type = 'hey';
- obj.request.type.should.equal('HEY');
- })
-})
-
-describe('.access(name)', function(){
- it('should delegate getters and setters', function(){
- var obj = {};
-
- obj.request = {
- get type() {
- return this._type.toUpperCase();
- },
-
- set type(val) {
- this._type = val;
- }
- }
-
- delegate(obj, 'request').access('type');
-
- obj.type = 'hey';
- obj.type.should.equal('HEY');
- })
-})
-
-describe('.fluent(name)', function () {
- it('should delegate in a fluent fashion', function () {
- var obj = {
- settings: {
- env: 'development'
- }
- };
-
- delegate(obj, 'settings').fluent('env');
-
- obj.env().should.equal('development');
- obj.env('production').should.equal(obj);
- obj.settings.env.should.equal('production');
- })
-})
diff --git a/node_modules/ecc-jsbn/LICENSE b/node_modules/ecc-jsbn/LICENSE
deleted file mode 100755
index f668fef..0000000
--- a/node_modules/ecc-jsbn/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Jeremie Miller
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE. \ No newline at end of file
diff --git a/node_modules/ecc-jsbn/README.md b/node_modules/ecc-jsbn/README.md
deleted file mode 100755
index b5d0b9d..0000000
--- a/node_modules/ecc-jsbn/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-ecc-jsbn
-========
-
-ECC package based on [jsbn](https://github.com/andyperlitch/jsbn) from [Tom Wu](http://www-cs-students.stanford.edu/~tjw/).
-
-This is a subset of the same interface as the [node compiled module](https://github.com/quartzjer/ecc), but works in the browser too.
-
-Also uses point compression now from [https://github.com/kaielvin](https://github.com/kaielvin/jsbn-ec-point-compression).
diff --git a/node_modules/ecc-jsbn/index.js b/node_modules/ecc-jsbn/index.js
deleted file mode 100755
index fb19a1d..0000000
--- a/node_modules/ecc-jsbn/index.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var crypto = require("crypto");
-var BigInteger = require("jsbn").BigInteger;
-var ECPointFp = require("./lib/ec.js").ECPointFp;
-var Buffer = require("safer-buffer").Buffer;
-exports.ECCurves = require("./lib/sec.js");
-
-// zero prepad
-function unstupid(hex,len)
-{
- return (hex.length >= len) ? hex : unstupid("0"+hex,len);
-}
-
-exports.ECKey = function(curve, key, isPublic)
-{
- var priv;
- var c = curve();
- var n = c.getN();
- var bytes = Math.floor(n.bitLength()/8);
-
- if(key)
- {
- if(isPublic)
- {
- var curve = c.getCurve();
-// var x = key.slice(1,bytes+1); // skip the 04 for uncompressed format
-// var y = key.slice(bytes+1);
-// this.P = new ECPointFp(curve,
-// curve.fromBigInteger(new BigInteger(x.toString("hex"), 16)),
-// curve.fromBigInteger(new BigInteger(y.toString("hex"), 16)));
- this.P = curve.decodePointHex(key.toString("hex"));
- }else{
- if(key.length != bytes) return false;
- priv = new BigInteger(key.toString("hex"), 16);
- }
- }else{
- var n1 = n.subtract(BigInteger.ONE);
- var r = new BigInteger(crypto.randomBytes(n.bitLength()));
- priv = r.mod(n1).add(BigInteger.ONE);
- this.P = c.getG().multiply(priv);
- }
- if(this.P)
- {
-// var pubhex = unstupid(this.P.getX().toBigInteger().toString(16),bytes*2)+unstupid(this.P.getY().toBigInteger().toString(16),bytes*2);
-// this.PublicKey = Buffer.from("04"+pubhex,"hex");
- this.PublicKey = Buffer.from(c.getCurve().encodeCompressedPointHex(this.P),"hex");
- }
- if(priv)
- {
- this.PrivateKey = Buffer.from(unstupid(priv.toString(16),bytes*2),"hex");
- this.deriveSharedSecret = function(key)
- {
- if(!key || !key.P) return false;
- var S = key.P.multiply(priv);
- return Buffer.from(unstupid(S.getX().toBigInteger().toString(16),bytes*2),"hex");
- }
- }
-}
-
diff --git a/node_modules/ecc-jsbn/lib/LICENSE-jsbn b/node_modules/ecc-jsbn/lib/LICENSE-jsbn
deleted file mode 100755
index 24502a9..0000000
--- a/node_modules/ecc-jsbn/lib/LICENSE-jsbn
+++ /dev/null
@@ -1,40 +0,0 @@
-Licensing
----------
-
-This software is covered under the following copyright:
-
-/*
- * Copyright (c) 2003-2005 Tom Wu
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
- * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
- *
- * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
- * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
- * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
- * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * In addition, the following condition applies:
- *
- * All redistributions must retain an intact copy of this copyright notice
- * and disclaimer.
- */
-
-Address all questions regarding this license to:
-
- Tom Wu
- tjw@cs.Stanford.EDU
diff --git a/node_modules/ecc-jsbn/lib/ec.js b/node_modules/ecc-jsbn/lib/ec.js
deleted file mode 100755
index 3852671..0000000
--- a/node_modules/ecc-jsbn/lib/ec.js
+++ /dev/null
@@ -1,561 +0,0 @@
-// Basic Javascript Elliptic Curve implementation
-// Ported loosely from BouncyCastle's Java EC code
-// Only Fp curves implemented for now
-
-// Requires jsbn.js and jsbn2.js
-var BigInteger = require('jsbn').BigInteger
-var Barrett = BigInteger.prototype.Barrett
-
-// ----------------
-// ECFieldElementFp
-
-// constructor
-function ECFieldElementFp(q,x) {
- this.x = x;
- // TODO if(x.compareTo(q) >= 0) error
- this.q = q;
-}
-
-function feFpEquals(other) {
- if(other == this) return true;
- return (this.q.equals(other.q) && this.x.equals(other.x));
-}
-
-function feFpToBigInteger() {
- return this.x;
-}
-
-function feFpNegate() {
- return new ECFieldElementFp(this.q, this.x.negate().mod(this.q));
-}
-
-function feFpAdd(b) {
- return new ECFieldElementFp(this.q, this.x.add(b.toBigInteger()).mod(this.q));
-}
-
-function feFpSubtract(b) {
- return new ECFieldElementFp(this.q, this.x.subtract(b.toBigInteger()).mod(this.q));
-}
-
-function feFpMultiply(b) {
- return new ECFieldElementFp(this.q, this.x.multiply(b.toBigInteger()).mod(this.q));
-}
-
-function feFpSquare() {
- return new ECFieldElementFp(this.q, this.x.square().mod(this.q));
-}
-
-function feFpDivide(b) {
- return new ECFieldElementFp(this.q, this.x.multiply(b.toBigInteger().modInverse(this.q)).mod(this.q));
-}
-
-ECFieldElementFp.prototype.equals = feFpEquals;
-ECFieldElementFp.prototype.toBigInteger = feFpToBigInteger;
-ECFieldElementFp.prototype.negate = feFpNegate;
-ECFieldElementFp.prototype.add = feFpAdd;
-ECFieldElementFp.prototype.subtract = feFpSubtract;
-ECFieldElementFp.prototype.multiply = feFpMultiply;
-ECFieldElementFp.prototype.square = feFpSquare;
-ECFieldElementFp.prototype.divide = feFpDivide;
-
-// ----------------
-// ECPointFp
-
-// constructor
-function ECPointFp(curve,x,y,z) {
- this.curve = curve;
- this.x = x;
- this.y = y;
- // Projective coordinates: either zinv == null or z * zinv == 1
- // z and zinv are just BigIntegers, not fieldElements
- if(z == null) {
- this.z = BigInteger.ONE;
- }
- else {
- this.z = z;
- }
- this.zinv = null;
- //TODO: compression flag
-}
-
-function pointFpGetX() {
- if(this.zinv == null) {
- this.zinv = this.z.modInverse(this.curve.q);
- }
- var r = this.x.toBigInteger().multiply(this.zinv);
- this.curve.reduce(r);
- return this.curve.fromBigInteger(r);
-}
-
-function pointFpGetY() {
- if(this.zinv == null) {
- this.zinv = this.z.modInverse(this.curve.q);
- }
- var r = this.y.toBigInteger().multiply(this.zinv);
- this.curve.reduce(r);
- return this.curve.fromBigInteger(r);
-}
-
-function pointFpEquals(other) {
- if(other == this) return true;
- if(this.isInfinity()) return other.isInfinity();
- if(other.isInfinity()) return this.isInfinity();
- var u, v;
- // u = Y2 * Z1 - Y1 * Z2
- u = other.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(other.z)).mod(this.curve.q);
- if(!u.equals(BigInteger.ZERO)) return false;
- // v = X2 * Z1 - X1 * Z2
- v = other.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(other.z)).mod(this.curve.q);
- return v.equals(BigInteger.ZERO);
-}
-
-function pointFpIsInfinity() {
- if((this.x == null) && (this.y == null)) return true;
- return this.z.equals(BigInteger.ZERO) && !this.y.toBigInteger().equals(BigInteger.ZERO);
-}
-
-function pointFpNegate() {
- return new ECPointFp(this.curve, this.x, this.y.negate(), this.z);
-}
-
-function pointFpAdd(b) {
- if(this.isInfinity()) return b;
- if(b.isInfinity()) return this;
-
- // u = Y2 * Z1 - Y1 * Z2
- var u = b.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(b.z)).mod(this.curve.q);
- // v = X2 * Z1 - X1 * Z2
- var v = b.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(b.z)).mod(this.curve.q);
-
- if(BigInteger.ZERO.equals(v)) {
- if(BigInteger.ZERO.equals(u)) {
- return this.twice(); // this == b, so double
- }
- return this.curve.getInfinity(); // this = -b, so infinity
- }
-
- var THREE = new BigInteger("3");
- var x1 = this.x.toBigInteger();
- var y1 = this.y.toBigInteger();
- var x2 = b.x.toBigInteger();
- var y2 = b.y.toBigInteger();
-
- var v2 = v.square();
- var v3 = v2.multiply(v);
- var x1v2 = x1.multiply(v2);
- var zu2 = u.square().multiply(this.z);
-
- // x3 = v * (z2 * (z1 * u^2 - 2 * x1 * v^2) - v^3)
- var x3 = zu2.subtract(x1v2.shiftLeft(1)).multiply(b.z).subtract(v3).multiply(v).mod(this.curve.q);
- // y3 = z2 * (3 * x1 * u * v^2 - y1 * v^3 - z1 * u^3) + u * v^3
- var y3 = x1v2.multiply(THREE).multiply(u).subtract(y1.multiply(v3)).subtract(zu2.multiply(u)).multiply(b.z).add(u.multiply(v3)).mod(this.curve.q);
- // z3 = v^3 * z1 * z2
- var z3 = v3.multiply(this.z).multiply(b.z).mod(this.curve.q);
-
- return new ECPointFp(this.curve, this.curve.fromBigInteger(x3), this.curve.fromBigInteger(y3), z3);
-}
-
-function pointFpTwice() {
- if(this.isInfinity()) return this;
- if(this.y.toBigInteger().signum() == 0) return this.curve.getInfinity();
-
- // TODO: optimized handling of constants
- var THREE = new BigInteger("3");
- var x1 = this.x.toBigInteger();
- var y1 = this.y.toBigInteger();
-
- var y1z1 = y1.multiply(this.z);
- var y1sqz1 = y1z1.multiply(y1).mod(this.curve.q);
- var a = this.curve.a.toBigInteger();
-
- // w = 3 * x1^2 + a * z1^2
- var w = x1.square().multiply(THREE);
- if(!BigInteger.ZERO.equals(a)) {
- w = w.add(this.z.square().multiply(a));
- }
- w = w.mod(this.curve.q);
- //this.curve.reduce(w);
- // x3 = 2 * y1 * z1 * (w^2 - 8 * x1 * y1^2 * z1)
- var x3 = w.square().subtract(x1.shiftLeft(3).multiply(y1sqz1)).shiftLeft(1).multiply(y1z1).mod(this.curve.q);
- // y3 = 4 * y1^2 * z1 * (3 * w * x1 - 2 * y1^2 * z1) - w^3
- var y3 = w.multiply(THREE).multiply(x1).subtract(y1sqz1.shiftLeft(1)).shiftLeft(2).multiply(y1sqz1).subtract(w.square().multiply(w)).mod(this.curve.q);
- // z3 = 8 * (y1 * z1)^3
- var z3 = y1z1.square().multiply(y1z1).shiftLeft(3).mod(this.curve.q);
-
- return new ECPointFp(this.curve, this.curve.fromBigInteger(x3), this.curve.fromBigInteger(y3), z3);
-}
-
-// Simple NAF (Non-Adjacent Form) multiplication algorithm
-// TODO: modularize the multiplication algorithm
-function pointFpMultiply(k) {
- if(this.isInfinity()) return this;
- if(k.signum() == 0) return this.curve.getInfinity();
-
- var e = k;
- var h = e.multiply(new BigInteger("3"));
-
- var neg = this.negate();
- var R = this;
-
- var i;
- for(i = h.bitLength() - 2; i > 0; --i) {
- R = R.twice();
-
- var hBit = h.testBit(i);
- var eBit = e.testBit(i);
-
- if (hBit != eBit) {
- R = R.add(hBit ? this : neg);
- }
- }
-
- return R;
-}
-
-// Compute this*j + x*k (simultaneous multiplication)
-function pointFpMultiplyTwo(j,x,k) {
- var i;
- if(j.bitLength() > k.bitLength())
- i = j.bitLength() - 1;
- else
- i = k.bitLength() - 1;
-
- var R = this.curve.getInfinity();
- var both = this.add(x);
- while(i >= 0) {
- R = R.twice();
- if(j.testBit(i)) {
- if(k.testBit(i)) {
- R = R.add(both);
- }
- else {
- R = R.add(this);
- }
- }
- else {
- if(k.testBit(i)) {
- R = R.add(x);
- }
- }
- --i;
- }
-
- return R;
-}
-
-ECPointFp.prototype.getX = pointFpGetX;
-ECPointFp.prototype.getY = pointFpGetY;
-ECPointFp.prototype.equals = pointFpEquals;
-ECPointFp.prototype.isInfinity = pointFpIsInfinity;
-ECPointFp.prototype.negate = pointFpNegate;
-ECPointFp.prototype.add = pointFpAdd;
-ECPointFp.prototype.twice = pointFpTwice;
-ECPointFp.prototype.multiply = pointFpMultiply;
-ECPointFp.prototype.multiplyTwo = pointFpMultiplyTwo;
-
-// ----------------
-// ECCurveFp
-
-// constructor
-function ECCurveFp(q,a,b) {
- this.q = q;
- this.a = this.fromBigInteger(a);
- this.b = this.fromBigInteger(b);
- this.infinity = new ECPointFp(this, null, null);
- this.reducer = new Barrett(this.q);
-}
-
-function curveFpGetQ() {
- return this.q;
-}
-
-function curveFpGetA() {
- return this.a;
-}
-
-function curveFpGetB() {
- return this.b;
-}
-
-function curveFpEquals(other) {
- if(other == this) return true;
- return(this.q.equals(other.q) && this.a.equals(other.a) && this.b.equals(other.b));
-}
-
-function curveFpGetInfinity() {
- return this.infinity;
-}
-
-function curveFpFromBigInteger(x) {
- return new ECFieldElementFp(this.q, x);
-}
-
-function curveReduce(x) {
- this.reducer.reduce(x);
-}
-
-// for now, work with hex strings because they're easier in JS
-function curveFpDecodePointHex(s) {
- switch(parseInt(s.substr(0,2), 16)) { // first byte
- case 0:
- return this.infinity;
- case 2:
- case 3:
- // point compression not supported yet
- return null;
- case 4:
- case 6:
- case 7:
- var len = (s.length - 2) / 2;
- var xHex = s.substr(2, len);
- var yHex = s.substr(len+2, len);
-
- return new ECPointFp(this,
- this.fromBigInteger(new BigInteger(xHex, 16)),
- this.fromBigInteger(new BigInteger(yHex, 16)));
-
- default: // unsupported
- return null;
- }
-}
-
-function curveFpEncodePointHex(p) {
- if (p.isInfinity()) return "00";
- var xHex = p.getX().toBigInteger().toString(16);
- var yHex = p.getY().toBigInteger().toString(16);
- var oLen = this.getQ().toString(16).length;
- if ((oLen % 2) != 0) oLen++;
- while (xHex.length < oLen) {
- xHex = "0" + xHex;
- }
- while (yHex.length < oLen) {
- yHex = "0" + yHex;
- }
- return "04" + xHex + yHex;
-}
-
-ECCurveFp.prototype.getQ = curveFpGetQ;
-ECCurveFp.prototype.getA = curveFpGetA;
-ECCurveFp.prototype.getB = curveFpGetB;
-ECCurveFp.prototype.equals = curveFpEquals;
-ECCurveFp.prototype.getInfinity = curveFpGetInfinity;
-ECCurveFp.prototype.fromBigInteger = curveFpFromBigInteger;
-ECCurveFp.prototype.reduce = curveReduce;
-//ECCurveFp.prototype.decodePointHex = curveFpDecodePointHex;
-ECCurveFp.prototype.encodePointHex = curveFpEncodePointHex;
-
-// from: https://github.com/kaielvin/jsbn-ec-point-compression
-ECCurveFp.prototype.decodePointHex = function(s)
-{
- var yIsEven;
- switch(parseInt(s.substr(0,2), 16)) { // first byte
- case 0:
- return this.infinity;
- case 2:
- yIsEven = false;
- case 3:
- if(yIsEven == undefined) yIsEven = true;
- var len = s.length - 2;
- var xHex = s.substr(2, len);
- var x = this.fromBigInteger(new BigInteger(xHex,16));
- var alpha = x.multiply(x.square().add(this.getA())).add(this.getB());
- var beta = alpha.sqrt();
-
- if (beta == null) throw "Invalid point compression";
-
- var betaValue = beta.toBigInteger();
- if (betaValue.testBit(0) != yIsEven)
- {
- // Use the other root
- beta = this.fromBigInteger(this.getQ().subtract(betaValue));
- }
- return new ECPointFp(this,x,beta);
- case 4:
- case 6:
- case 7:
- var len = (s.length - 2) / 2;
- var xHex = s.substr(2, len);
- var yHex = s.substr(len+2, len);
-
- return new ECPointFp(this,
- this.fromBigInteger(new BigInteger(xHex, 16)),
- this.fromBigInteger(new BigInteger(yHex, 16)));
-
- default: // unsupported
- return null;
- }
-}
-ECCurveFp.prototype.encodeCompressedPointHex = function(p)
-{
- if (p.isInfinity()) return "00";
- var xHex = p.getX().toBigInteger().toString(16);
- var oLen = this.getQ().toString(16).length;
- if ((oLen % 2) != 0) oLen++;
- while (xHex.length < oLen)
- xHex = "0" + xHex;
- var yPrefix;
- if(p.getY().toBigInteger().isEven()) yPrefix = "02";
- else yPrefix = "03";
-
- return yPrefix + xHex;
-}
-
-
-ECFieldElementFp.prototype.getR = function()
-{
- if(this.r != undefined) return this.r;
-
- this.r = null;
- var bitLength = this.q.bitLength();
- if (bitLength > 128)
- {
- var firstWord = this.q.shiftRight(bitLength - 64);
- if (firstWord.intValue() == -1)
- {
- this.r = BigInteger.ONE.shiftLeft(bitLength).subtract(this.q);
- }
- }
- return this.r;
-}
-ECFieldElementFp.prototype.modMult = function(x1,x2)
-{
- return this.modReduce(x1.multiply(x2));
-}
-ECFieldElementFp.prototype.modReduce = function(x)
-{
- if (this.getR() != null)
- {
- var qLen = q.bitLength();
- while (x.bitLength() > (qLen + 1))
- {
- var u = x.shiftRight(qLen);
- var v = x.subtract(u.shiftLeft(qLen));
- if (!this.getR().equals(BigInteger.ONE))
- {
- u = u.multiply(this.getR());
- }
- x = u.add(v);
- }
- while (x.compareTo(q) >= 0)
- {
- x = x.subtract(q);
- }
- }
- else
- {
- x = x.mod(q);
- }
- return x;
-}
-ECFieldElementFp.prototype.sqrt = function()
-{
- if (!this.q.testBit(0)) throw "unsupported";
-
- // p mod 4 == 3
- if (this.q.testBit(1))
- {
- var z = new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(BigInteger.ONE),this.q));
- return z.square().equals(this) ? z : null;
- }
-
- // p mod 4 == 1
- var qMinusOne = this.q.subtract(BigInteger.ONE);
-
- var legendreExponent = qMinusOne.shiftRight(1);
- if (!(this.x.modPow(legendreExponent, this.q).equals(BigInteger.ONE)))
- {
- return null;
- }
-
- var u = qMinusOne.shiftRight(2);
- var k = u.shiftLeft(1).add(BigInteger.ONE);
-
- var Q = this.x;
- var fourQ = modDouble(modDouble(Q));
-
- var U, V;
- do
- {
- var P;
- do
- {
- P = new BigInteger(this.q.bitLength(), new SecureRandom());
- }
- while (P.compareTo(this.q) >= 0
- || !(P.multiply(P).subtract(fourQ).modPow(legendreExponent, this.q).equals(qMinusOne)));
-
- var result = this.lucasSequence(P, Q, k);
- U = result[0];
- V = result[1];
-
- if (this.modMult(V, V).equals(fourQ))
- {
- // Integer division by 2, mod q
- if (V.testBit(0))
- {
- V = V.add(q);
- }
-
- V = V.shiftRight(1);
-
- return new ECFieldElementFp(q,V);
- }
- }
- while (U.equals(BigInteger.ONE) || U.equals(qMinusOne));
-
- return null;
-}
-ECFieldElementFp.prototype.lucasSequence = function(P,Q,k)
-{
- var n = k.bitLength();
- var s = k.getLowestSetBit();
-
- var Uh = BigInteger.ONE;
- var Vl = BigInteger.TWO;
- var Vh = P;
- var Ql = BigInteger.ONE;
- var Qh = BigInteger.ONE;
-
- for (var j = n - 1; j >= s + 1; --j)
- {
- Ql = this.modMult(Ql, Qh);
-
- if (k.testBit(j))
- {
- Qh = this.modMult(Ql, Q);
- Uh = this.modMult(Uh, Vh);
- Vl = this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));
- Vh = this.modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1)));
- }
- else
- {
- Qh = Ql;
- Uh = this.modReduce(Uh.multiply(Vl).subtract(Ql));
- Vh = this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));
- Vl = this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));
- }
- }
-
- Ql = this.modMult(Ql, Qh);
- Qh = this.modMult(Ql, Q);
- Uh = this.modReduce(Uh.multiply(Vl).subtract(Ql));
- Vl = this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));
- Ql = this.modMult(Ql, Qh);
-
- for (var j = 1; j <= s; ++j)
- {
- Uh = this.modMult(Uh, Vl);
- Vl = this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));
- Ql = this.modMult(Ql, Ql);
- }
-
- return [ Uh, Vl ];
-}
-
-var exports = {
- ECCurveFp: ECCurveFp,
- ECPointFp: ECPointFp,
- ECFieldElementFp: ECFieldElementFp
-}
-
-module.exports = exports
diff --git a/node_modules/ecc-jsbn/lib/sec.js b/node_modules/ecc-jsbn/lib/sec.js
deleted file mode 100755
index 5eec817..0000000
--- a/node_modules/ecc-jsbn/lib/sec.js
+++ /dev/null
@@ -1,170 +0,0 @@
-// Named EC curves
-
-// Requires ec.js, jsbn.js, and jsbn2.js
-var BigInteger = require('jsbn').BigInteger
-var ECCurveFp = require('./ec.js').ECCurveFp
-
-
-// ----------------
-// X9ECParameters
-
-// constructor
-function X9ECParameters(curve,g,n,h) {
- this.curve = curve;
- this.g = g;
- this.n = n;
- this.h = h;
-}
-
-function x9getCurve() {
- return this.curve;
-}
-
-function x9getG() {
- return this.g;
-}
-
-function x9getN() {
- return this.n;
-}
-
-function x9getH() {
- return this.h;
-}
-
-X9ECParameters.prototype.getCurve = x9getCurve;
-X9ECParameters.prototype.getG = x9getG;
-X9ECParameters.prototype.getN = x9getN;
-X9ECParameters.prototype.getH = x9getH;
-
-// ----------------
-// SECNamedCurves
-
-function fromHex(s) { return new BigInteger(s, 16); }
-
-function secp128r1() {
- // p = 2^128 - 2^97 - 1
- var p = fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF");
- var a = fromHex("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC");
- var b = fromHex("E87579C11079F43DD824993C2CEE5ED3");
- //byte[] S = Hex.decode("000E0D4D696E6768756151750CC03A4473D03679");
- var n = fromHex("FFFFFFFE0000000075A30D1B9038A115");
- var h = BigInteger.ONE;
- var curve = new ECCurveFp(p, a, b);
- var G = curve.decodePointHex("04"
- + "161FF7528B899B2D0C28607CA52C5B86"
- + "CF5AC8395BAFEB13C02DA292DDED7A83");
- return new X9ECParameters(curve, G, n, h);
-}
-
-function secp160k1() {
- // p = 2^160 - 2^32 - 2^14 - 2^12 - 2^9 - 2^8 - 2^7 - 2^3 - 2^2 - 1
- var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73");
- var a = BigInteger.ZERO;
- var b = fromHex("7");
- //byte[] S = null;
- var n = fromHex("0100000000000000000001B8FA16DFAB9ACA16B6B3");
- var h = BigInteger.ONE;
- var curve = new ECCurveFp(p, a, b);
- var G = curve.decodePointHex("04"
- + "3B4C382CE37AA192A4019E763036F4F5DD4D7EBB"
- + "938CF935318FDCED6BC28286531733C3F03C4FEE");
- return new X9ECParameters(curve, G, n, h);
-}
-
-function secp160r1() {
- // p = 2^160 - 2^31 - 1
- var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF");
- var a = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC");
- var b = fromHex("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45");
- //byte[] S = Hex.decode("1053CDE42C14D696E67687561517533BF3F83345");
- var n = fromHex("0100000000000000000001F4C8F927AED3CA752257");
- var h = BigInteger.ONE;
- var curve = new ECCurveFp(p, a, b);
- var G = curve.decodePointHex("04"
- + "4A96B5688EF573284664698968C38BB913CBFC82"
- + "23A628553168947D59DCC912042351377AC5FB32");
- return new X9ECParameters(curve, G, n, h);
-}
-
-function secp192k1() {
- // p = 2^192 - 2^32 - 2^12 - 2^8 - 2^7 - 2^6 - 2^3 - 1
- var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37");
- var a = BigInteger.ZERO;
- var b = fromHex("3");
- //byte[] S = null;
- var n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D");
- var h = BigInteger.ONE;
- var curve = new ECCurveFp(p, a, b);
- var G = curve.decodePointHex("04"
- + "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D"
- + "9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");
- return new X9ECParameters(curve, G, n, h);
-}
-
-function secp192r1() {
- // p = 2^192 - 2^64 - 1
- var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF");
- var a = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC");
- var b = fromHex("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1");
- //byte[] S = Hex.decode("3045AE6FC8422F64ED579528D38120EAE12196D5");
- var n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831");
- var h = BigInteger.ONE;
- var curve = new ECCurveFp(p, a, b);
- var G = curve.decodePointHex("04"
- + "188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012"
- + "07192B95FFC8DA78631011ED6B24CDD573F977A11E794811");
- return new X9ECParameters(curve, G, n, h);
-}
-
-function secp224r1() {
- // p = 2^224 - 2^96 + 1
- var p = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001");
- var a = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE");
- var b = fromHex("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4");
- //byte[] S = Hex.decode("BD71344799D5C7FCDC45B59FA3B9AB8F6A948BC5");
- var n = fromHex("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D");
- var h = BigInteger.ONE;
- var curve = new ECCurveFp(p, a, b);
- var G = curve.decodePointHex("04"
- + "B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21"
- + "BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");
- return new X9ECParameters(curve, G, n, h);
-}
-
-function secp256r1() {
- // p = 2^224 (2^32 - 1) + 2^192 + 2^96 - 1
- var p = fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF");
- var a = fromHex("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC");
- var b = fromHex("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B");
- //byte[] S = Hex.decode("C49D360886E704936A6678E1139D26B7819F7E90");
- var n = fromHex("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551");
- var h = BigInteger.ONE;
- var curve = new ECCurveFp(p, a, b);
- var G = curve.decodePointHex("04"
- + "6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296"
- + "4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");
- return new X9ECParameters(curve, G, n, h);
-}
-
-// TODO: make this into a proper hashtable
-function getSECCurveByName(name) {
- if(name == "secp128r1") return secp128r1();
- if(name == "secp160k1") return secp160k1();
- if(name == "secp160r1") return secp160r1();
- if(name == "secp192k1") return secp192k1();
- if(name == "secp192r1") return secp192r1();
- if(name == "secp224r1") return secp224r1();
- if(name == "secp256r1") return secp256r1();
- return null;
-}
-
-module.exports = {
- "secp128r1":secp128r1,
- "secp160k1":secp160k1,
- "secp160r1":secp160r1,
- "secp192k1":secp192k1,
- "secp192r1":secp192r1,
- "secp224r1":secp224r1,
- "secp256r1":secp256r1
-}
diff --git a/node_modules/ecc-jsbn/package.json b/node_modules/ecc-jsbn/package.json
deleted file mode 100755
index 7784db2..0000000
--- a/node_modules/ecc-jsbn/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "_from": "ecc-jsbn@~0.1.1",
- "_id": "ecc-jsbn@0.1.2",
- "_inBundle": false,
- "_integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
- "_location": "/ecc-jsbn",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ecc-jsbn@~0.1.1",
- "name": "ecc-jsbn",
- "escapedName": "ecc-jsbn",
- "rawSpec": "~0.1.1",
- "saveSpec": null,
- "fetchSpec": "~0.1.1"
- },
- "_requiredBy": [
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
- "_shasum": "3a83a904e54353287874c564b7549386849a98c9",
- "_spec": "ecc-jsbn@~0.1.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "author": {
- "name": "Jeremie Miller",
- "email": "jeremie@jabber.org",
- "url": "http://jeremie.com/"
- },
- "bugs": {
- "url": "https://github.com/quartzjer/ecc-jsbn/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.1.0"
- },
- "deprecated": false,
- "description": "ECC JS code based on JSBN",
- "homepage": "https://github.com/quartzjer/ecc-jsbn",
- "keywords": [
- "jsbn",
- "ecc",
- "browserify"
- ],
- "license": "MIT",
- "main": "index.js",
- "maintainers": [
- {
- "name": "Jeremie Miller",
- "email": "jeremie@jabber.org",
- "url": "http://jeremie.com/"
- },
- {
- "name": "Ryan Bennett",
- "url": "https://github.com/rynomad"
- }
- ],
- "name": "ecc-jsbn",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/quartzjer/ecc-jsbn.git"
- },
- "version": "0.1.2"
-}
diff --git a/node_modules/ecc-jsbn/test.js b/node_modules/ecc-jsbn/test.js
deleted file mode 100755
index bd52abf..0000000
--- a/node_modules/ecc-jsbn/test.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var ecc = require("./index.js");
-var key1 = new ecc.ECKey(ecc.ECCurves.secp160r1);
-var key2 = new ecc.ECKey(ecc.ECCurves.secp160r1);
-console.log(key1.deriveSharedSecret(key2));
-var key3 = new ecc.ECKey(ecc.ECCurves.secp160r1,key1.PrivateKey);
-var key4 = new ecc.ECKey(ecc.ECCurves.secp160r1,key2.PublicKey,true);
-console.log(key3.deriveSharedSecret(key4));
-
-var key1 = new ecc.ECKey(ecc.ECCurves.secp256r1);
-var key2 = new ecc.ECKey(ecc.ECCurves.secp256r1);
-console.log(key1.deriveSharedSecret(key2));
-var key3 = new ecc.ECKey(ecc.ECCurves.secp256r1,key1.PrivateKey);
-var key4 = new ecc.ECKey(ecc.ECCurves.secp256r1,key2.PublicKey,true);
-console.log(key3.deriveSharedSecret(key4));
diff --git a/node_modules/emoji-regex/LICENSE-MIT.txt b/node_modules/emoji-regex/LICENSE-MIT.txt
deleted file mode 100644
index a41e0a7..0000000
--- a/node_modules/emoji-regex/LICENSE-MIT.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright Mathias Bynens <https://mathiasbynens.be/>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/emoji-regex/README.md b/node_modules/emoji-regex/README.md
deleted file mode 100644
index 37cf14e..0000000
--- a/node_modules/emoji-regex/README.md
+++ /dev/null
@@ -1,73 +0,0 @@
-# emoji-regex [![Build status](https://travis-ci.org/mathiasbynens/emoji-regex.svg?branch=master)](https://travis-ci.org/mathiasbynens/emoji-regex)
-
-_emoji-regex_ offers a regular expression to match all emoji symbols (including textual representations of emoji) as per the Unicode Standard.
-
-This repository contains a script that generates this regular expression based on [the data from Unicode Technical Report #51](https://github.com/mathiasbynens/unicode-tr51). Because of this, the regular expression can easily be updated whenever new emoji are added to the Unicode standard.
-
-## Installation
-
-Via [npm](https://www.npmjs.com/):
-
-```bash
-npm install emoji-regex
-```
-
-In [Node.js](https://nodejs.org/):
-
-```js
-const emojiRegex = require('emoji-regex');
-// Note: because the regular expression has the global flag set, this module
-// exports a function that returns the regex rather than exporting the regular
-// expression itself, to make it impossible to (accidentally) mutate the
-// original regular expression.
-
-const text = `
-\u{231A}: ⌚ default emoji presentation character (Emoji_Presentation)
-\u{2194}\u{FE0F}: ↔️ default text presentation character rendered as emoji
-\u{1F469}: 👩 emoji modifier base (Emoji_Modifier_Base)
-\u{1F469}\u{1F3FF}: 👩🏿 emoji modifier base followed by a modifier
-`;
-
-const regex = emojiRegex();
-let match;
-while (match = regex.exec(text)) {
- const emoji = match[0];
- console.log(`Matched sequence ${ emoji } — code points: ${ [...emoji].length }`);
-}
-```
-
-Console output:
-
-```
-Matched sequence ⌚ — code points: 1
-Matched sequence ⌚ — code points: 1
-Matched sequence ↔️ — code points: 2
-Matched sequence ↔️ — code points: 2
-Matched sequence 👩 — code points: 1
-Matched sequence 👩 — code points: 1
-Matched sequence 👩🏿 — code points: 2
-Matched sequence 👩🏿 — code points: 2
-```
-
-To match emoji in their textual representation as well (i.e. emoji that are not `Emoji_Presentation` symbols and that aren’t forced to render as emoji by a variation selector), `require` the other regex:
-
-```js
-const emojiRegex = require('emoji-regex/text.js');
-```
-
-Additionally, in environments which support ES2015 Unicode escapes, you may `require` ES2015-style versions of the regexes:
-
-```js
-const emojiRegex = require('emoji-regex/es2015/index.js');
-const emojiRegexText = require('emoji-regex/es2015/text.js');
-```
-
-## Author
-
-| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
-|---|
-| [Mathias Bynens](https://mathiasbynens.be/) |
-
-## License
-
-_emoji-regex_ is available under the [MIT](https://mths.be/mit) license.
diff --git a/node_modules/emoji-regex/es2015/index.js b/node_modules/emoji-regex/es2015/index.js
deleted file mode 100644
index 0216db9..0000000
--- a/node_modules/emoji-regex/es2015/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = () => {
- // https://mths.be/emoji
- return /\u{1F3F4}(?:\u{E0067}\u{E0062}(?:\u{E0065}\u{E006E}\u{E0067}|\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074})\u{E007F}|\u200D\u2620\uFE0F)|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F468}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u{1F468}(?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}]\uFE0F|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}](?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\u{1F469}\u200D[\u2695\u2696\u2708])\uFE0F|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F468}(?:\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|[\u{1F3FB}-\u{1F3FF}])|\u{1F3F3}\uFE0F\u200D\u{1F308}|\u{1F469}\u200D\u{1F467}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}]|\u{1F469}\u200D\u{1F466}|\u{1F1F6}\u{1F1E6}|\u{1F1FD}\u{1F1F0}|\u{1F1F4}\u{1F1F2}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]|\u{1F1ED}[\u{1F1F0}\u{1F1F2}\u{1F1F3}\u{1F1F7}\u{1F1F9}\u{1F1FA}]|\u{1F1EC}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EE}\u{1F1F1}-\u{1F1F3}\u{1F1F5}-\u{1F1FA}\u{1F1FC}\u{1F1FE}]|\u{1F1EA}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1ED}\u{1F1F7}-\u{1F1FA}]|\u{1F1E8}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1EE}\u{1F1F0}-\u{1F1F5}\u{1F1F7}\u{1F1FA}-\u{1F1FF}]|\u{1F1F2}[\u{1F1E6}\u{1F1E8}-\u{1F1ED}\u{1F1F0}-\u{1F1FF}]|\u{1F1F3}[\u{1F1E6}\u{1F1E8}\u{1F1EA}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F4}\u{1F1F5}\u{1F1F7}\u{1F1FA}\u{1F1FF}]|\u{1F1FC}[\u{1F1EB}\u{1F1F8}]|\u{1F1FA}[\u{1F1E6}\u{1F1EC}\u{1F1F2}\u{1F1F3}\u{1F1F8}\u{1F1FE}\u{1F1FF}]|\u{1F1F0}[\u{1F1EA}\u{1F1EC}-\u{1F1EE}\u{1F1F2}\u{1F1F3}\u{1F1F5}\u{1F1F7}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|\u{1F1EF}[\u{1F1EA}\u{1F1F2}\u{1F1F4}\u{1F1F5}]|\u{1F1F8}[\u{1F1E6}-\u{1F1EA}\u{1F1EC}-\u{1F1F4}\u{1F1F7}-\u{1F1F9}\u{1F1FB}\u{1F1FD}-\u{1F1FF}]|\u{1F1EE}[\u{1F1E8}-\u{1F1EA}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}]|\u{1F1FF}[\u{1F1E6}\u{1F1F2}\u{1F1FC}]|\u{1F1EB}[\u{1F1EE}-\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1F7}]|\u{1F1F5}[\u{1F1E6}\u{1F1EA}-\u{1F1ED}\u{1F1F0}-\u{1F1F3}\u{1F1F7}-\u{1F1F9}\u{1F1FC}\u{1F1FE}]|\u{1F1E9}[\u{1F1EA}\u{1F1EC}\u{1F1EF}\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1FF}]|\u{1F1F9}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1ED}\u{1F1EF}-\u{1F1F4}\u{1F1F7}\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FF}]|\u{1F1E7}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EF}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|[#\*0-9]\uFE0F\u20E3|\u{1F1F1}[\u{1F1E6}-\u{1F1E8}\u{1F1EE}\u{1F1F0}\u{1F1F7}-\u{1F1FB}\u{1F1FE}]|\u{1F1E6}[\u{1F1E8}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F2}\u{1F1F4}\u{1F1F6}-\u{1F1FA}\u{1F1FC}\u{1F1FD}\u{1F1FF}]|\u{1F1F7}[\u{1F1EA}\u{1F1F4}\u{1F1F8}\u{1F1FA}\u{1F1FC}]|\u{1F1FB}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1EE}\u{1F1F3}\u{1F1FA}]|\u{1F1FE}[\u{1F1EA}\u{1F1F9}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270A-\u270D\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F470}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F4AA}\u{1F574}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F936}\u{1F9B5}\u{1F9B6}\u{1F9D1}-\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F393}\u{1F3A0}-\u{1F3CA}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F4}\u{1F3F8}-\u{1F43E}\u{1F440}\u{1F442}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F57A}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5FB}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CC}\u{1F6D0}-\u{1F6D2}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]\uFE0F|[\u261D\u26F9\u270A-\u270D\u{1F385}\u{1F3C2}-\u{1F3C4}\u{1F3C7}\u{1F3CA}-\u{1F3CC}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}-\u{1F469}\u{1F46E}\u{1F470}-\u{1F478}\u{1F47C}\u{1F481}-\u{1F483}\u{1F485}-\u{1F487}\u{1F4AA}\u{1F574}\u{1F575}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F645}-\u{1F647}\u{1F64B}-\u{1F64F}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F926}\u{1F930}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B5}\u{1F9B6}\u{1F9B8}\u{1F9B9}\u{1F9D1}-\u{1F9DD}]/gu;
-};
diff --git a/node_modules/emoji-regex/es2015/text.js b/node_modules/emoji-regex/es2015/text.js
deleted file mode 100644
index d0a771d..0000000
--- a/node_modules/emoji-regex/es2015/text.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = () => {
- // https://mths.be/emoji
- return /\u{1F3F4}(?:\u{E0067}\u{E0062}(?:\u{E0065}\u{E006E}\u{E0067}|\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074})\u{E007F}|\u200D\u2620\uFE0F)|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F468}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u{1F468}(?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}]\uFE0F|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}](?:[\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\u{1F469}\u200D[\u2695\u2696\u2708])\uFE0F|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F468}(?:\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|[\u{1F3FB}-\u{1F3FF}])|\u{1F3F3}\uFE0F\u200D\u{1F308}|\u{1F469}\u200D\u{1F467}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]\u200D[\u{1F33E}\u{1F373}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9B0}-\u{1F9B3}]|\u{1F469}\u200D\u{1F466}|\u{1F1F6}\u{1F1E6}|\u{1F1FD}\u{1F1F0}|\u{1F1F4}\u{1F1F2}|\u{1F469}[\u{1F3FB}-\u{1F3FF}]|\u{1F1ED}[\u{1F1F0}\u{1F1F2}\u{1F1F3}\u{1F1F7}\u{1F1F9}\u{1F1FA}]|\u{1F1EC}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EE}\u{1F1F1}-\u{1F1F3}\u{1F1F5}-\u{1F1FA}\u{1F1FC}\u{1F1FE}]|\u{1F1EA}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1ED}\u{1F1F7}-\u{1F1FA}]|\u{1F1E8}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1EE}\u{1F1F0}-\u{1F1F5}\u{1F1F7}\u{1F1FA}-\u{1F1FF}]|\u{1F1F2}[\u{1F1E6}\u{1F1E8}-\u{1F1ED}\u{1F1F0}-\u{1F1FF}]|\u{1F1F3}[\u{1F1E6}\u{1F1E8}\u{1F1EA}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F4}\u{1F1F5}\u{1F1F7}\u{1F1FA}\u{1F1FF}]|\u{1F1FC}[\u{1F1EB}\u{1F1F8}]|\u{1F1FA}[\u{1F1E6}\u{1F1EC}\u{1F1F2}\u{1F1F3}\u{1F1F8}\u{1F1FE}\u{1F1FF}]|\u{1F1F0}[\u{1F1EA}\u{1F1EC}-\u{1F1EE}\u{1F1F2}\u{1F1F3}\u{1F1F5}\u{1F1F7}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|\u{1F1EF}[\u{1F1EA}\u{1F1F2}\u{1F1F4}\u{1F1F5}]|\u{1F1F8}[\u{1F1E6}-\u{1F1EA}\u{1F1EC}-\u{1F1F4}\u{1F1F7}-\u{1F1F9}\u{1F1FB}\u{1F1FD}-\u{1F1FF}]|\u{1F1EE}[\u{1F1E8}-\u{1F1EA}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}]|\u{1F1FF}[\u{1F1E6}\u{1F1F2}\u{1F1FC}]|\u{1F1EB}[\u{1F1EE}-\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1F7}]|\u{1F1F5}[\u{1F1E6}\u{1F1EA}-\u{1F1ED}\u{1F1F0}-\u{1F1F3}\u{1F1F7}-\u{1F1F9}\u{1F1FC}\u{1F1FE}]|\u{1F1E9}[\u{1F1EA}\u{1F1EC}\u{1F1EF}\u{1F1F0}\u{1F1F2}\u{1F1F4}\u{1F1FF}]|\u{1F1F9}[\u{1F1E6}\u{1F1E8}\u{1F1E9}\u{1F1EB}-\u{1F1ED}\u{1F1EF}-\u{1F1F4}\u{1F1F7}\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FF}]|\u{1F1E7}[\u{1F1E6}\u{1F1E7}\u{1F1E9}-\u{1F1EF}\u{1F1F1}-\u{1F1F4}\u{1F1F6}-\u{1F1F9}\u{1F1FB}\u{1F1FC}\u{1F1FE}\u{1F1FF}]|[#\*0-9]\uFE0F\u20E3|\u{1F1F1}[\u{1F1E6}-\u{1F1E8}\u{1F1EE}\u{1F1F0}\u{1F1F7}-\u{1F1FB}\u{1F1FE}]|\u{1F1E6}[\u{1F1E8}-\u{1F1EC}\u{1F1EE}\u{1F1F1}\u{1F1F2}\u{1F1F4}\u{1F1F6}-\u{1F1FA}\u{1F1FC}\u{1F1FD}\u{1F1FF}]|\u{1F1F7}[\u{1F1EA}\u{1F1F4}\u{1F1F8}\u{1F1FA}\u{1F1FC}]|\u{1F1FB}[\u{1F1E6}\u{1F1E8}\u{1F1EA}\u{1F1EC}\u{1F1EE}\u{1F1F3}\u{1F1FA}]|\u{1F1FE}[\u{1F1EA}\u{1F1F9}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270A-\u270D\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F470}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F4AA}\u{1F574}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F936}\u{1F9B5}\u{1F9B6}\u{1F9D1}-\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F393}\u{1F3A0}-\u{1F3CA}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F4}\u{1F3F8}-\u{1F43E}\u{1F440}\u{1F442}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F57A}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5FB}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CC}\u{1F6D0}-\u{1F6D2}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6F9}\u{1F910}-\u{1F93A}\u{1F93C}-\u{1F93E}\u{1F940}-\u{1F945}\u{1F947}-\u{1F970}\u{1F973}-\u{1F976}\u{1F97A}\u{1F97C}-\u{1F9A2}\u{1F9B0}-\u{1F9B9}\u{1F9C0}-\u{1F9C2}\u{1F9D0}-\u{1F9FF}]\uFE0F?|[\u261D\u26F9\u270A-\u270D\u{1F385}\u{1F3C2}-\u{1F3C4}\u{1F3C7}\u{1F3CA}-\u{1F3CC}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}-\u{1F469}\u{1F46E}\u{1F470}-\u{1F478}\u{1F47C}\u{1F481}-\u{1F483}\u{1F485}-\u{1F487}\u{1F4AA}\u{1F574}\u{1F575}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F645}-\u{1F647}\u{1F64B}-\u{1F64F}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F6C0}\u{1F6CC}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F926}\u{1F930}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B5}\u{1F9B6}\u{1F9B8}\u{1F9B9}\u{1F9D1}-\u{1F9DD}]/gu;
-};
diff --git a/node_modules/emoji-regex/index.d.ts b/node_modules/emoji-regex/index.d.ts
deleted file mode 100644
index 2c317cd..0000000
--- a/node_modules/emoji-regex/index.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-declare module 'emoji-regex' {
- function emojiRegex(): RegExp;
-
- export default emojiRegex;
-}
diff --git a/node_modules/emoji-regex/index.js b/node_modules/emoji-regex/index.js
deleted file mode 100644
index e2237a4..0000000
--- a/node_modules/emoji-regex/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = function () {
- // https://mths.be/emoji
- return /\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;
-};
diff --git a/node_modules/emoji-regex/package.json b/node_modules/emoji-regex/package.json
deleted file mode 100644
index 6c524e8..0000000
--- a/node_modules/emoji-regex/package.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "_from": "emoji-regex@^7.0.1",
- "_id": "emoji-regex@7.0.3",
- "_inBundle": false,
- "_integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
- "_location": "/emoji-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "emoji-regex@^7.0.1",
- "name": "emoji-regex",
- "escapedName": "emoji-regex",
- "rawSpec": "^7.0.1",
- "saveSpec": null,
- "fetchSpec": "^7.0.1"
- },
- "_requiredBy": [
- "/cliui/string-width",
- "/wrap-ansi/string-width",
- "/yargs/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
- "_shasum": "933a04052860c85e83c122479c4748a8e4c72156",
- "_spec": "emoji-regex@^7.0.1",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/cliui/node_modules/string-width",
- "author": {
- "name": "Mathias Bynens",
- "url": "https://mathiasbynens.be/"
- },
- "bugs": {
- "url": "https://github.com/mathiasbynens/emoji-regex/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "A regular expression to match all Emoji-only symbols as per the Unicode Standard.",
- "devDependencies": {
- "@babel/cli": "^7.0.0",
- "@babel/core": "^7.0.0",
- "@babel/plugin-proposal-unicode-property-regex": "^7.0.0",
- "@babel/preset-env": "^7.0.0",
- "mocha": "^5.2.0",
- "regexgen": "^1.3.0",
- "unicode-11.0.0": "^0.7.7",
- "unicode-tr51": "^9.0.1"
- },
- "files": [
- "LICENSE-MIT.txt",
- "index.js",
- "index.d.ts",
- "text.js",
- "es2015/index.js",
- "es2015/text.js"
- ],
- "homepage": "https://mths.be/emoji-regex",
- "keywords": [
- "unicode",
- "regex",
- "regexp",
- "regular expressions",
- "code points",
- "symbols",
- "characters",
- "emoji"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "emoji-regex",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mathiasbynens/emoji-regex.git"
- },
- "scripts": {
- "build": "rm -rf -- es2015; babel src -d .; NODE_ENV=es2015 babel src -d ./es2015; node script/inject-sequences.js",
- "test": "mocha",
- "test:watch": "npm run test -- --watch"
- },
- "types": "index.d.ts",
- "version": "7.0.3"
-}
diff --git a/node_modules/emoji-regex/text.js b/node_modules/emoji-regex/text.js
deleted file mode 100644
index 199ae3b..0000000
--- a/node_modules/emoji-regex/text.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = function () {
- // https://mths.be/emoji
- return /\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F?|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;
-};
diff --git a/node_modules/error-ex/LICENSE b/node_modules/error-ex/LICENSE
deleted file mode 100644
index 0a5f461..0000000
--- a/node_modules/error-ex/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 JD Ballard
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/error-ex/README.md b/node_modules/error-ex/README.md
deleted file mode 100644
index 97f744a..0000000
--- a/node_modules/error-ex/README.md
+++ /dev/null
@@ -1,144 +0,0 @@
-# node-error-ex [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/node-error-ex.svg?style=flat-square)](https://travis-ci.org/Qix-/node-error-ex) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/node-error-ex.svg?style=flat-square)](https://coveralls.io/r/Qix-/node-error-ex)
-> Easily subclass and customize new Error types
-
-## Examples
-To include in your project:
-```javascript
-var errorEx = require('error-ex');
-```
-
-To create an error message type with a specific name (note, that `ErrorFn.name`
-will not reflect this):
-```javascript
-var JSONError = errorEx('JSONError');
-
-var err = new JSONError('error');
-err.name; //-> JSONError
-throw err; //-> JSONError: error
-```
-
-To add a stack line:
-```javascript
-var JSONError = errorEx('JSONError', {fileName: errorEx.line('in %s')});
-
-var err = new JSONError('error')
-err.fileName = '/a/b/c/foo.json';
-throw err; //-> (line 2)-> in /a/b/c/foo.json
-```
-
-To append to the error message:
-```javascript
-var JSONError = errorEx('JSONError', {fileName: errorEx.append('in %s')});
-
-var err = new JSONError('error');
-err.fileName = '/a/b/c/foo.json';
-throw err; //-> JSONError: error in /a/b/c/foo.json
-```
-
-## API
-
-#### `errorEx([name], [properties])`
-Creates a new ErrorEx error type
-
-- `name`: the name of the new type (appears in the error message upon throw;
- defaults to `Error.name`)
-- `properties`: if supplied, used as a key/value dictionary of properties to
- use when building up the stack message. Keys are property names that are
- looked up on the error message, and then passed to function values.
- - `line`: if specified and is a function, return value is added as a stack
- entry (error-ex will indent for you). Passed the property value given
- the key.
- - `stack`: if specified and is a function, passed the value of the property
- using the key, and the raw stack lines as a second argument. Takes no
- return value (but the stack can be modified directly).
- - `message`: if specified and is a function, return value is used as new
- `.message` value upon get. Passed the property value of the property named
- by key, and the existing message is passed as the second argument as an
- array of lines (suitable for multi-line messages).
-
-Returns a constructor (Function) that can be used just like the regular Error
-constructor.
-
-```javascript
-var errorEx = require('error-ex');
-
-var BasicError = errorEx();
-
-var NamedError = errorEx('NamedError');
-
-// --
-
-var AdvancedError = errorEx('AdvancedError', {
- foo: {
- line: function (value, stack) {
- if (value) {
- return 'bar ' + value;
- }
- return null;
- }
- }
-}
-
-var err = new AdvancedError('hello, world');
-err.foo = 'baz';
-throw err;
-
-/*
- AdvancedError: hello, world
- bar baz
- at tryReadme() (readme.js:20:1)
-*/
-```
-
-#### `errorEx.line(str)`
-Creates a stack line using a delimiter
-
-> This is a helper function. It is to be used in lieu of writing a value object
-> for `properties` values.
-
-- `str`: The string to create
- - Use the delimiter `%s` to specify where in the string the value should go
-
-```javascript
-var errorEx = require('error-ex');
-
-var FileError = errorEx('FileError', {fileName: errorEx.line('in %s')});
-
-var err = new FileError('problem reading file');
-err.fileName = '/a/b/c/d/foo.js';
-throw err;
-
-/*
- FileError: problem reading file
- in /a/b/c/d/foo.js
- at tryReadme() (readme.js:7:1)
-*/
-```
-
-#### `errorEx.append(str)`
-Appends to the `error.message` string
-
-> This is a helper function. It is to be used in lieu of writing a value object
-> for `properties` values.
-
-- `str`: The string to append
- - Use the delimiter `%s` to specify where in the string the value should go
-
-```javascript
-var errorEx = require('error-ex');
-
-var SyntaxError = errorEx('SyntaxError', {fileName: errorEx.append('in %s')});
-
-var err = new SyntaxError('improper indentation');
-err.fileName = '/a/b/c/d/foo.js';
-throw err;
-
-/*
- SyntaxError: improper indentation in /a/b/c/d/foo.js
- at tryReadme() (readme.js:7:1)
-*/
-```
-
-## License
-Licensed under the [MIT License](http://opensource.org/licenses/MIT).
-You can find a copy of it in [LICENSE](LICENSE).
diff --git a/node_modules/error-ex/index.js b/node_modules/error-ex/index.js
deleted file mode 100644
index 4fb20b4..0000000
--- a/node_modules/error-ex/index.js
+++ /dev/null
@@ -1,141 +0,0 @@
-'use strict';
-
-var util = require('util');
-var isArrayish = require('is-arrayish');
-
-var errorEx = function errorEx(name, properties) {
- if (!name || name.constructor !== String) {
- properties = name || {};
- name = Error.name;
- }
-
- var errorExError = function ErrorEXError(message) {
- if (!this) {
- return new ErrorEXError(message);
- }
-
- message = message instanceof Error
- ? message.message
- : (message || this.message);
-
- Error.call(this, message);
- Error.captureStackTrace(this, errorExError);
-
- this.name = name;
-
- Object.defineProperty(this, 'message', {
- configurable: true,
- enumerable: false,
- get: function () {
- var newMessage = message.split(/\r?\n/g);
-
- for (var key in properties) {
- if (!properties.hasOwnProperty(key)) {
- continue;
- }
-
- var modifier = properties[key];
-
- if ('message' in modifier) {
- newMessage = modifier.message(this[key], newMessage) || newMessage;
- if (!isArrayish(newMessage)) {
- newMessage = [newMessage];
- }
- }
- }
-
- return newMessage.join('\n');
- },
- set: function (v) {
- message = v;
- }
- });
-
- var overwrittenStack = null;
-
- var stackDescriptor = Object.getOwnPropertyDescriptor(this, 'stack');
- var stackGetter = stackDescriptor.get;
- var stackValue = stackDescriptor.value;
- delete stackDescriptor.value;
- delete stackDescriptor.writable;
-
- stackDescriptor.set = function (newstack) {
- overwrittenStack = newstack;
- };
-
- stackDescriptor.get = function () {
- var stack = (overwrittenStack || ((stackGetter)
- ? stackGetter.call(this)
- : stackValue)).split(/\r?\n+/g);
-
- // starting in Node 7, the stack builder caches the message.
- // just replace it.
- if (!overwrittenStack) {
- stack[0] = this.name + ': ' + this.message;
- }
-
- var lineCount = 1;
- for (var key in properties) {
- if (!properties.hasOwnProperty(key)) {
- continue;
- }
-
- var modifier = properties[key];
-
- if ('line' in modifier) {
- var line = modifier.line(this[key]);
- if (line) {
- stack.splice(lineCount++, 0, ' ' + line);
- }
- }
-
- if ('stack' in modifier) {
- modifier.stack(this[key], stack);
- }
- }
-
- return stack.join('\n');
- };
-
- Object.defineProperty(this, 'stack', stackDescriptor);
- };
-
- if (Object.setPrototypeOf) {
- Object.setPrototypeOf(errorExError.prototype, Error.prototype);
- Object.setPrototypeOf(errorExError, Error);
- } else {
- util.inherits(errorExError, Error);
- }
-
- return errorExError;
-};
-
-errorEx.append = function (str, def) {
- return {
- message: function (v, message) {
- v = v || def;
-
- if (v) {
- message[0] += ' ' + str.replace('%s', v.toString());
- }
-
- return message;
- }
- };
-};
-
-errorEx.line = function (str, def) {
- return {
- line: function (v) {
- v = v || def;
-
- if (v) {
- return str.replace('%s', v.toString());
- }
-
- return null;
- }
- };
-};
-
-module.exports = errorEx;
diff --git a/node_modules/error-ex/package.json b/node_modules/error-ex/package.json
deleted file mode 100644
index 1657fd8..0000000
--- a/node_modules/error-ex/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_from": "error-ex@^1.2.0",
- "_id": "error-ex@1.3.2",
- "_inBundle": false,
- "_integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
- "_location": "/error-ex",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "error-ex@^1.2.0",
- "name": "error-ex",
- "escapedName": "error-ex",
- "rawSpec": "^1.2.0",
- "saveSpec": null,
- "fetchSpec": "^1.2.0"
- },
- "_requiredBy": [
- "/parse-json"
- ],
- "_resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
- "_shasum": "b4ac40648107fdcdcfae242f428bea8a14d4f1bf",
- "_spec": "error-ex@^1.2.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/parse-json",
- "bugs": {
- "url": "https://github.com/qix-/node-error-ex/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "is-arrayish": "^0.2.1"
- },
- "deprecated": false,
- "description": "Easy error subclassing and stack customization",
- "devDependencies": {
- "coffee-script": "^1.9.3",
- "coveralls": "^2.11.2",
- "istanbul": "^0.3.17",
- "mocha": "^2.2.5",
- "should": "^7.0.1",
- "xo": "^0.7.1"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/qix-/node-error-ex#readme",
- "keywords": [
- "error",
- "errors",
- "extend",
- "extending",
- "extension",
- "subclass",
- "stack",
- "custom"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Josh Junon",
- "email": "i.am.qix@gmail.com",
- "url": "github.com/qix-"
- },
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- }
- ],
- "name": "error-ex",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/qix-/node-error-ex.git"
- },
- "scripts": {
- "pretest": "xo",
- "test": "mocha --compilers coffee:coffee-script/register"
- },
- "version": "1.3.2",
- "xo": {
- "rules": {
- "operator-linebreak": [
- 0
- ]
- }
- }
-}
diff --git a/node_modules/escape-string-regexp/index.js b/node_modules/escape-string-regexp/index.js
deleted file mode 100644
index 7834bf9..0000000
--- a/node_modules/escape-string-regexp/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
-
-module.exports = function (str) {
- if (typeof str !== 'string') {
- throw new TypeError('Expected a string');
- }
-
- return str.replace(matchOperatorsRe, '\\$&');
-};
diff --git a/node_modules/escape-string-regexp/license b/node_modules/escape-string-regexp/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/escape-string-regexp/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/escape-string-regexp/package.json b/node_modules/escape-string-regexp/package.json
deleted file mode 100644
index 59bbbd1..0000000
--- a/node_modules/escape-string-regexp/package.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_from": "escape-string-regexp@^1.0.2",
- "_id": "escape-string-regexp@1.0.5",
- "_inBundle": false,
- "_integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
- "_location": "/escape-string-regexp",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "escape-string-regexp@^1.0.2",
- "name": "escape-string-regexp",
- "escapedName": "escape-string-regexp",
- "rawSpec": "^1.0.2",
- "saveSpec": null,
- "fetchSpec": "^1.0.2"
- },
- "_requiredBy": [
- "/chalk"
- ],
- "_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "_shasum": "1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
- "_spec": "escape-string-regexp@^1.0.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/chalk",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/escape-string-regexp/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Escape RegExp special characters",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.8.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/escape-string-regexp#readme",
- "keywords": [
- "escape",
- "regex",
- "regexp",
- "re",
- "regular",
- "expression",
- "string",
- "str",
- "special",
- "characters"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Boy Nicolai Appelman",
- "email": "joshua@jbna.nl",
- "url": "jbna.nl"
- }
- ],
- "name": "escape-string-regexp",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/escape-string-regexp.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.5"
-}
diff --git a/node_modules/escape-string-regexp/readme.md b/node_modules/escape-string-regexp/readme.md
deleted file mode 100644
index 87ac82d..0000000
--- a/node_modules/escape-string-regexp/readme.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# escape-string-regexp [![Build Status](https://travis-ci.org/sindresorhus/escape-string-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/escape-string-regexp)
-
-> Escape RegExp special characters
-
-
-## Install
-
-```
-$ npm install --save escape-string-regexp
-```
-
-
-## Usage
-
-```js
-const escapeStringRegexp = require('escape-string-regexp');
-
-const escapedString = escapeStringRegexp('how much $ for a unicorn?');
-//=> 'how much \$ for a unicorn\?'
-
-new RegExp(escapedString);
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/extend/.editorconfig b/node_modules/extend/.editorconfig
deleted file mode 100644
index bc228f8..0000000
--- a/node_modules/extend/.editorconfig
+++ /dev/null
@@ -1,20 +0,0 @@
-root = true
-
-[*]
-indent_style = tab
-indent_size = 4
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-max_line_length = 150
-
-[CHANGELOG.md]
-indent_style = space
-indent_size = 2
-
-[*.json]
-max_line_length = off
-
-[Makefile]
-max_line_length = off
diff --git a/node_modules/extend/.eslintrc b/node_modules/extend/.eslintrc
deleted file mode 100644
index a34cf28..0000000
--- a/node_modules/extend/.eslintrc
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "root": true,
-
- "extends": "@ljharb",
-
- "rules": {
- "complexity": [2, 20],
- "eqeqeq": [2, "allow-null"],
- "func-name-matching": [1],
- "max-depth": [1, 4],
- "max-statements": [2, 26],
- "no-extra-parens": [1],
- "no-magic-numbers": [0],
- "no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
- "sort-keys": [0],
- }
-}
diff --git a/node_modules/extend/.jscs.json b/node_modules/extend/.jscs.json
deleted file mode 100644
index 3cce01d..0000000
--- a/node_modules/extend/.jscs.json
+++ /dev/null
@@ -1,175 +0,0 @@
-{
- "es3": true,
-
- "additionalRules": [],
-
- "requireSemicolons": true,
-
- "disallowMultipleSpaces": true,
-
- "disallowIdentifierNames": [],
-
- "requireCurlyBraces": {
- "allExcept": [],
- "keywords": ["if", "else", "for", "while", "do", "try", "catch"]
- },
-
- "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
-
- "disallowSpaceAfterKeywords": [],
-
- "disallowSpaceBeforeComma": true,
- "disallowSpaceAfterComma": false,
- "disallowSpaceBeforeSemicolon": true,
-
- "disallowNodeTypes": [
- "DebuggerStatement",
- "LabeledStatement",
- "SwitchCase",
- "SwitchStatement",
- "WithStatement"
- ],
-
- "requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
-
- "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
- "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
- "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
- "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
- "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
-
- "requireSpaceBetweenArguments": true,
-
- "disallowSpacesInsideParentheses": true,
-
- "disallowSpacesInsideArrayBrackets": true,
-
- "disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },
-
- "disallowSpaceAfterObjectKeys": true,
-
- "requireCommaBeforeLineBreak": true,
-
- "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
- "requireSpaceAfterPrefixUnaryOperators": [],
-
- "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
- "requireSpaceBeforePostfixUnaryOperators": [],
-
- "disallowSpaceBeforeBinaryOperators": [],
- "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
-
- "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
- "disallowSpaceAfterBinaryOperators": [],
-
- "disallowImplicitTypeConversion": ["binary", "string"],
-
- "disallowKeywords": ["with", "eval"],
-
- "requireKeywordsOnNewLine": [],
- "disallowKeywordsOnNewLine": ["else"],
-
- "requireLineFeedAtFileEnd": true,
-
- "disallowTrailingWhitespace": true,
-
- "disallowTrailingComma": true,
-
- "excludeFiles": ["node_modules/**", "vendor/**"],
-
- "disallowMultipleLineStrings": true,
-
- "requireDotNotation": { "allExcept": ["keywords"] },
-
- "requireParenthesesAroundIIFE": true,
-
- "validateLineBreaks": "LF",
-
- "validateQuoteMarks": {
- "escape": true,
- "mark": "'"
- },
-
- "disallowOperatorBeforeLineBreak": [],
-
- "requireSpaceBeforeKeywords": [
- "do",
- "for",
- "if",
- "else",
- "switch",
- "case",
- "try",
- "catch",
- "finally",
- "while",
- "with",
- "return"
- ],
-
- "validateAlignedFunctionParameters": {
- "lineBreakAfterOpeningBraces": true,
- "lineBreakBeforeClosingBraces": true
- },
-
- "requirePaddingNewLinesBeforeExport": true,
-
- "validateNewlineAfterArrayElements": {
- "maximum": 6
- },
-
- "requirePaddingNewLinesAfterUseStrict": true,
-
- "disallowArrowFunctions": true,
-
- "disallowMultiLineTernary": true,
-
- "validateOrderInObjectKeys": false,
-
- "disallowIdenticalDestructuringNames": true,
-
- "disallowNestedTernaries": { "maxLevel": 1 },
-
- "requireSpaceAfterComma": { "allExcept": ["trailing"] },
- "requireAlignedMultilineParams": false,
-
- "requireSpacesInGenerator": {
- "afterStar": true
- },
-
- "disallowSpacesInGenerator": {
- "beforeStar": true
- },
-
- "disallowVar": false,
-
- "requireArrayDestructuring": false,
-
- "requireEnhancedObjectLiterals": false,
-
- "requireObjectDestructuring": false,
-
- "requireEarlyReturn": false,
-
- "requireCapitalizedConstructorsNew": {
- "allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
- },
-
- "requireImportAlphabetized": false,
-
- "requireSpaceBeforeObjectValues": true,
- "requireSpaceBeforeDestructuredValues": true,
-
- "disallowSpacesInsideTemplateStringPlaceholders": true,
-
- "disallowArrayDestructuringReturn": false,
-
- "requireNewlineBeforeSingleStatementsInIf": false,
-
- "disallowUnusedVariables": true,
-
- "requireSpacesInsideImportedObjectBraces": true,
-
- "requireUseStrict": true
-}
-
diff --git a/node_modules/extend/.travis.yml b/node_modules/extend/.travis.yml
deleted file mode 100644
index 5ccdfc4..0000000
--- a/node_modules/extend/.travis.yml
+++ /dev/null
@@ -1,230 +0,0 @@
-language: node_js
-os:
- - linux
-node_js:
- - "10.7"
- - "9.11"
- - "8.11"
- - "7.10"
- - "6.14"
- - "5.12"
- - "4.9"
- - "iojs-v3.3"
- - "iojs-v2.5"
- - "iojs-v1.8"
- - "0.12"
- - "0.10"
- - "0.8"
-before_install:
- - 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
- - 'nvm install-latest-npm'
-install:
- - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
-script:
- - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
- - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
- - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
- - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
-sudo: false
-env:
- - TEST=true
-matrix:
- fast_finish: true
- include:
- - node_js: "lts/*"
- env: PRETEST=true
- - node_js: "lts/*"
- env: POSTTEST=true
- - node_js: "4"
- env: COVERAGE=true
- - node_js: "10.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "10.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "10.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "10.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "10.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "10.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "10.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.10"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.9"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.8"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.7"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "9.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.10"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.9"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.8"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.7"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "8.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.9"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.8"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.7"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "7.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.13"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.12"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.11"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.10"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.9"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.8"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.7"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "6.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.11"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.10"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.9"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.8"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.7"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "5.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.8"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.7"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "4.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v3.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v3.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v3.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v2.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v2.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v2.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v2.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v2.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.7"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.5"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.4"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.3"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.2"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.1"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "iojs-v1.0"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "0.11"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "0.9"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "0.6"
- env: TEST=true ALLOW_FAILURE=true
- - node_js: "0.4"
- env: TEST=true ALLOW_FAILURE=true
- allow_failures:
- - os: osx
- - env: TEST=true ALLOW_FAILURE=true
diff --git a/node_modules/extend/CHANGELOG.md b/node_modules/extend/CHANGELOG.md
deleted file mode 100644
index 2cf7de6..0000000
--- a/node_modules/extend/CHANGELOG.md
+++ /dev/null
@@ -1,83 +0,0 @@
-3.0.2 / 2018-07-19
-==================
- * [Fix] Prevent merging `__proto__` property (#48)
- * [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`
- * [Tests] up to `node` `v10.7`, `v9.11`, `v8.11`, `v7.10`, `v6.14`, `v4.9`; use `nvm install-latest-npm`
-
-3.0.1 / 2017-04-27
-==================
- * [Fix] deep extending should work with a non-object (#46)
- * [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`
- * [Tests] up to `node` `v7.9`, `v6.10`, `v4.8`; improve matrix
- * [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG.
- * [Docs] Add example to readme (#34)
-
-3.0.0 / 2015-07-01
-==================
- * [Possible breaking change] Use global "strict" directive (#32)
- * [Tests] `int` is an ES3 reserved word
- * [Tests] Test up to `io.js` `v2.3`
- * [Tests] Add `npm run eslint`
- * [Dev Deps] Update `covert`, `jscs`
-
-2.0.1 / 2015-04-25
-==================
- * Use an inline `isArray` check, for ES3 browsers. (#27)
- * Some old browsers fail when an identifier is `toString`
- * Test latest `node` and `io.js` versions on `travis-ci`; speed up builds
- * Add license info to package.json (#25)
- * Update `tape`, `jscs`
- * Adding a CHANGELOG
-
-2.0.0 / 2014-10-01
-==================
- * Increase code coverage to 100%; run code coverage as part of tests
- * Add `npm run lint`; Run linter as part of tests
- * Remove nodeType and setInterval checks in isPlainObject
- * Updating `tape`, `jscs`, `covert`
- * General style and README cleanup
-
-1.3.0 / 2014-06-20
-==================
- * Add component.json for browser support (#18)
- * Use SVG for badges in README (#16)
- * Updating `tape`, `covert`
- * Updating travis-ci to work with multiple node versions
- * Fix `deep === false` bug (returning target as {}) (#14)
- * Fixing constructor checks in isPlainObject
- * Adding additional test coverage
- * Adding `npm run coverage`
- * Add LICENSE (#13)
- * Adding a warning about `false`, per #11
- * General style and whitespace cleanup
-
-1.2.1 / 2013-09-14
-==================
- * Fixing hasOwnProperty bugs that would only have shown up in specific browsers. Fixes #8
- * Updating `tape`
-
-1.2.0 / 2013-09-02
-==================
- * Updating the README: add badges
- * Adding a missing variable reference.
- * Using `tape` instead of `buster` for tests; add more tests (#7)
- * Adding node 0.10 to Travis CI (#6)
- * Enabling "npm test" and cleaning up package.json (#5)
- * Add Travis CI.
-
-1.1.3 / 2012-12-06
-==================
- * Added unit tests.
- * Ensure extend function is named. (Looks nicer in a stack trace.)
- * README cleanup.
-
-1.1.1 / 2012-11-07
-==================
- * README cleanup.
- * Added installation instructions.
- * Added a missing semicolon
-
-1.0.0 / 2012-04-08
-==================
- * Initial commit
-
diff --git a/node_modules/extend/LICENSE b/node_modules/extend/LICENSE
deleted file mode 100644
index e16d6a5..0000000
--- a/node_modules/extend/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2014 Stefan Thomas
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
diff --git a/node_modules/extend/README.md b/node_modules/extend/README.md
deleted file mode 100644
index 5b8249a..0000000
--- a/node_modules/extend/README.md
+++ /dev/null
@@ -1,81 +0,0 @@
-[![Build Status][travis-svg]][travis-url]
-[![dependency status][deps-svg]][deps-url]
-[![dev dependency status][dev-deps-svg]][dev-deps-url]
-
-# extend() for Node.js <sup>[![Version Badge][npm-version-png]][npm-url]</sup>
-
-`node-extend` is a port of the classic extend() method from jQuery. It behaves as you expect. It is simple, tried and true.
-
-Notes:
-
-* Since Node.js >= 4,
- [`Object.assign`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
- now offers the same functionality natively (but without the "deep copy" option).
- See [ECMAScript 2015 (ES6) in Node.js](https://nodejs.org/en/docs/es6).
-* Some native implementations of `Object.assign` in both Node.js and many
- browsers (since NPM modules are for the browser too) may not be fully
- spec-compliant.
- Check [`object.assign`](https://www.npmjs.com/package/object.assign) module for
- a compliant candidate.
-
-## Installation
-
-This package is available on [npm][npm-url] as: `extend`
-
-``` sh
-npm install extend
-```
-
-## Usage
-
-**Syntax:** extend **(** [`deep`], `target`, `object1`, [`objectN`] **)**
-
-*Extend one object with one or more others, returning the modified object.*
-
-**Example:**
-
-``` js
-var extend = require('extend');
-extend(targetObject, object1, object2);
-```
-
-Keep in mind that the target object will be modified, and will be returned from extend().
-
-If a boolean true is specified as the first argument, extend performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s).
-Undefined properties are not copied. However, properties inherited from the object's prototype will be copied over.
-Warning: passing `false` as the first argument is not supported.
-
-### Arguments
-
-* `deep` *Boolean* (optional)
-If set, the merge becomes recursive (i.e. deep copy).
-* `target` *Object*
-The object to extend.
-* `object1` *Object*
-The object that will be merged into the first.
-* `objectN` *Object* (Optional)
-More objects to merge into the first.
-
-## License
-
-`node-extend` is licensed under the [MIT License][mit-license-url].
-
-## Acknowledgements
-
-All credit to the jQuery authors for perfecting this amazing utility.
-
-Ported to Node.js by [Stefan Thomas][github-justmoon] with contributions by [Jonathan Buchanan][github-insin] and [Jordan Harband][github-ljharb].
-
-[travis-svg]: https://travis-ci.org/justmoon/node-extend.svg
-[travis-url]: https://travis-ci.org/justmoon/node-extend
-[npm-url]: https://npmjs.org/package/extend
-[mit-license-url]: http://opensource.org/licenses/MIT
-[github-justmoon]: https://github.com/justmoon
-[github-insin]: https://github.com/insin
-[github-ljharb]: https://github.com/ljharb
-[npm-version-png]: http://versionbadg.es/justmoon/node-extend.svg
-[deps-svg]: https://david-dm.org/justmoon/node-extend.svg
-[deps-url]: https://david-dm.org/justmoon/node-extend
-[dev-deps-svg]: https://david-dm.org/justmoon/node-extend/dev-status.svg
-[dev-deps-url]: https://david-dm.org/justmoon/node-extend#info=devDependencies
-
diff --git a/node_modules/extend/component.json b/node_modules/extend/component.json
deleted file mode 100644
index 1500a2f..0000000
--- a/node_modules/extend/component.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "extend",
- "author": "Stefan Thomas <justmoon@members.fsf.org> (http://www.justmoon.net)",
- "version": "3.0.0",
- "description": "Port of jQuery.extend for node.js and the browser.",
- "scripts": [
- "index.js"
- ],
- "contributors": [
- {
- "name": "Jordan Harband",
- "url": "https://github.com/ljharb"
- }
- ],
- "keywords": [
- "extend",
- "clone",
- "merge"
- ],
- "repository" : {
- "type": "git",
- "url": "https://github.com/justmoon/node-extend.git"
- },
- "dependencies": {
- },
- "devDependencies": {
- "tape" : "~3.0.0",
- "covert": "~0.4.0",
- "jscs": "~1.6.2"
- }
-}
-
diff --git a/node_modules/extend/index.js b/node_modules/extend/index.js
deleted file mode 100644
index 2aa3faa..0000000
--- a/node_modules/extend/index.js
+++ /dev/null
@@ -1,117 +0,0 @@
-'use strict';
-
-var hasOwn = Object.prototype.hasOwnProperty;
-var toStr = Object.prototype.toString;
-var defineProperty = Object.defineProperty;
-var gOPD = Object.getOwnPropertyDescriptor;
-
-var isArray = function isArray(arr) {
- if (typeof Array.isArray === 'function') {
- return Array.isArray(arr);
- }
-
- return toStr.call(arr) === '[object Array]';
-};
-
-var isPlainObject = function isPlainObject(obj) {
- if (!obj || toStr.call(obj) !== '[object Object]') {
- return false;
- }
-
- var hasOwnConstructor = hasOwn.call(obj, 'constructor');
- var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');
- // Not own constructor property must be Object
- if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
- return false;
- }
-
- // Own properties are enumerated firstly, so to speed up,
- // if last one is own, then all properties are own.
- var key;
- for (key in obj) { /**/ }
-
- return typeof key === 'undefined' || hasOwn.call(obj, key);
-};
-
-// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
-var setProperty = function setProperty(target, options) {
- if (defineProperty && options.name === '__proto__') {
- defineProperty(target, options.name, {
- enumerable: true,
- configurable: true,
- value: options.newValue,
- writable: true
- });
- } else {
- target[options.name] = options.newValue;
- }
-};
-
-// Return undefined instead of __proto__ if '__proto__' is not an own property
-var getProperty = function getProperty(obj, name) {
- if (name === '__proto__') {
- if (!hasOwn.call(obj, name)) {
- return void 0;
- } else if (gOPD) {
- // In early versions of node, obj['__proto__'] is buggy when obj has
- // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
- return gOPD(obj, name).value;
- }
- }
-
- return obj[name];
-};
-
-module.exports = function extend() {
- var options, name, src, copy, copyIsArray, clone;
- var target = arguments[0];
- var i = 1;
- var length = arguments.length;
- var deep = false;
-
- // Handle a deep copy situation
- if (typeof target === 'boolean') {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
- if (target == null || (typeof target !== 'object' && typeof target !== 'function')) {
- target = {};
- }
-
- for (; i < length; ++i) {
- options = arguments[i];
- // Only deal with non-null/undefined values
- if (options != null) {
- // Extend the base object
- for (name in options) {
- src = getProperty(target, name);
- copy = getProperty(options, name);
-
- // Prevent never-ending loop
- if (target !== copy) {
- // Recurse if we're merging plain objects or arrays
- if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
- if (copyIsArray) {
- copyIsArray = false;
- clone = src && isArray(src) ? src : [];
- } else {
- clone = src && isPlainObject(src) ? src : {};
- }
-
- // Never move original objects, clone them
- setProperty(target, { name: name, newValue: extend(deep, clone, copy) });
-
- // Don't bring in undefined values
- } else if (typeof copy !== 'undefined') {
- setProperty(target, { name: name, newValue: copy });
- }
- }
- }
- }
- }
-
- // Return the modified object
- return target;
-};
diff --git a/node_modules/extend/package.json b/node_modules/extend/package.json
deleted file mode 100644
index f7cc3c4..0000000
--- a/node_modules/extend/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "extend@~3.0.2",
- "_id": "extend@3.0.2",
- "_inBundle": false,
- "_integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
- "_location": "/extend",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "extend@~3.0.2",
- "name": "extend",
- "escapedName": "extend",
- "rawSpec": "~3.0.2",
- "saveSpec": null,
- "fetchSpec": "~3.0.2"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
- "_shasum": "f8b1136b4071fbd8eb140aff858b1019ec2915fa",
- "_spec": "extend@~3.0.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Stefan Thomas",
- "email": "justmoon@members.fsf.org",
- "url": "http://www.justmoon.net"
- },
- "bugs": {
- "url": "https://github.com/justmoon/node-extend/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Jordan Harband",
- "url": "https://github.com/ljharb"
- }
- ],
- "dependencies": {},
- "deprecated": false,
- "description": "Port of jQuery.extend for node.js and the browser",
- "devDependencies": {
- "@ljharb/eslint-config": "^12.2.1",
- "covert": "^1.1.0",
- "eslint": "^4.19.1",
- "jscs": "^3.0.7",
- "tape": "^4.9.1"
- },
- "homepage": "https://github.com/justmoon/node-extend#readme",
- "keywords": [
- "extend",
- "clone",
- "merge"
- ],
- "license": "MIT",
- "main": "index",
- "name": "extend",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/justmoon/node-extend.git"
- },
- "scripts": {
- "coverage": "covert test/index.js",
- "coverage-quiet": "covert test/index.js --quiet",
- "eslint": "eslint *.js */*.js",
- "jscs": "jscs *.js */*.js",
- "lint": "npm run jscs && npm run eslint",
- "posttest": "npm run coverage-quiet",
- "pretest": "npm run lint",
- "test": "npm run tests-only",
- "tests-only": "node test"
- },
- "version": "3.0.2"
-}
diff --git a/node_modules/extsprintf/.gitmodules b/node_modules/extsprintf/.gitmodules
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/extsprintf/.gitmodules
+++ /dev/null
diff --git a/node_modules/extsprintf/.npmignore b/node_modules/extsprintf/.npmignore
deleted file mode 100644
index 6ed1ae9..0000000
--- a/node_modules/extsprintf/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/deps
-/examples
diff --git a/node_modules/extsprintf/LICENSE b/node_modules/extsprintf/LICENSE
deleted file mode 100644
index cbc0bb3..0000000
--- a/node_modules/extsprintf/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2012, Joyent, Inc. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE
diff --git a/node_modules/extsprintf/Makefile b/node_modules/extsprintf/Makefile
deleted file mode 100644
index db84518..0000000
--- a/node_modules/extsprintf/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Copyright (c) 2012, Joyent, Inc. All rights reserved.
-#
-# Makefile: top-level Makefile
-#
-# This Makefile contains only repo-specific logic and uses included makefiles
-# to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are
-# used by other repos as well.
-#
-
-#
-# Files
-#
-JSL = jsl
-JSSTYLE = jsstyle
-JS_FILES := $(shell find examples lib -name '*.js')
-JSL_FILES_NODE = $(JS_FILES)
-JSSTYLE_FILES = $(JS_FILES)
-JSL_CONF_NODE = jsl.node.conf
-
-# Default target is "check"
-check:
-
-include ./Makefile.targ
diff --git a/node_modules/extsprintf/Makefile.targ b/node_modules/extsprintf/Makefile.targ
deleted file mode 100644
index 2a64fe7..0000000
--- a/node_modules/extsprintf/Makefile.targ
+++ /dev/null
@@ -1,285 +0,0 @@
-# -*- mode: makefile -*-
-#
-# Copyright (c) 2012, Joyent, Inc. All rights reserved.
-#
-# Makefile.targ: common targets.
-#
-# NOTE: This makefile comes from the "eng" repo. It's designed to be dropped
-# into other repos as-is without requiring any modifications. If you find
-# yourself changing this file, you should instead update the original copy in
-# eng.git and then update your repo to use the new version.
-#
-# This Makefile defines several useful targets and rules. You can use it by
-# including it from a Makefile that specifies some of the variables below.
-#
-# Targets defined in this Makefile:
-#
-# check Checks JavaScript files for lint and style
-# Checks bash scripts for syntax
-# Checks SMF manifests for validity against the SMF DTD
-#
-# clean Removes built files
-#
-# docs Builds restdown documentation in docs/
-#
-# prepush Depends on "check" and "test"
-#
-# test Does nothing (you should override this)
-#
-# xref Generates cscope (source cross-reference index)
-#
-# For details on what these targets are supposed to do, see the Joyent
-# Engineering Guide.
-#
-# To make use of these targets, you'll need to set some of these variables. Any
-# variables left unset will simply not be used.
-#
-# BASH_FILES Bash scripts to check for syntax
-# (paths relative to top-level Makefile)
-#
-# CLEAN_FILES Files to remove as part of the "clean" target. Note
-# that files generated by targets in this Makefile are
-# automatically included in CLEAN_FILES. These include
-# restdown-generated HTML and JSON files.
-#
-# DOC_FILES Restdown (documentation source) files. These are
-# assumed to be contained in "docs/", and must NOT
-# contain the "docs/" prefix.
-#
-# JSL_CONF_NODE Specify JavaScriptLint configuration files
-# JSL_CONF_WEB (paths relative to top-level Makefile)
-#
-# Node.js and Web configuration files are separate
-# because you'll usually want different global variable
-# configurations. If no file is specified, none is given
-# to jsl, which causes it to use a default configuration,
-# which probably isn't what you want.
-#
-# JSL_FILES_NODE JavaScript files to check with Node config file.
-# JSL_FILES_WEB JavaScript files to check with Web config file.
-#
-# You can also override these variables:
-#
-# BASH Path to bash (default: bash)
-#
-# CSCOPE_DIRS Directories to search for source files for the cscope
-# index. (default: ".")
-#
-# JSL Path to JavaScriptLint (default: "jsl")
-#
-# JSL_FLAGS_NODE Additional flags to pass through to JSL
-# JSL_FLAGS_WEB
-# JSL_FLAGS
-#
-# JSSTYLE Path to jsstyle (default: jsstyle)
-#
-# JSSTYLE_FLAGS Additional flags to pass through to jsstyle
-#
-
-#
-# Defaults for the various tools we use.
-#
-BASH ?= bash
-BASHSTYLE ?= tools/bashstyle
-CP ?= cp
-CSCOPE ?= cscope
-CSCOPE_DIRS ?= .
-JSL ?= jsl
-JSSTYLE ?= jsstyle
-MKDIR ?= mkdir -p
-MV ?= mv
-RESTDOWN_FLAGS ?=
-RMTREE ?= rm -rf
-JSL_FLAGS ?= --nologo --nosummary
-
-ifeq ($(shell uname -s),SunOS)
- TAR ?= gtar
-else
- TAR ?= tar
-endif
-
-
-#
-# Defaults for other fixed values.
-#
-BUILD = build
-DISTCLEAN_FILES += $(BUILD)
-DOC_BUILD = $(BUILD)/docs/public
-
-#
-# Configure JSL_FLAGS_{NODE,WEB} based on JSL_CONF_{NODE,WEB}.
-#
-ifneq ($(origin JSL_CONF_NODE), undefined)
- JSL_FLAGS_NODE += --conf=$(JSL_CONF_NODE)
-endif
-
-ifneq ($(origin JSL_CONF_WEB), undefined)
- JSL_FLAGS_WEB += --conf=$(JSL_CONF_WEB)
-endif
-
-#
-# Targets. For descriptions on what these are supposed to do, see the
-# Joyent Engineering Guide.
-#
-
-#
-# Instruct make to keep around temporary files. We have rules below that
-# automatically update git submodules as needed, but they employ a deps/*/.git
-# temporary file. Without this directive, make tries to remove these .git
-# directories after the build has completed.
-#
-.SECONDARY: $($(wildcard deps/*):%=%/.git)
-
-#
-# This rule enables other rules that use files from a git submodule to have
-# those files depend on deps/module/.git and have "make" automatically check
-# out the submodule as needed.
-#
-deps/%/.git:
- git submodule update --init deps/$*
-
-#
-# These recipes make heavy use of dynamically-created phony targets. The parent
-# Makefile defines a list of input files like BASH_FILES. We then say that each
-# of these files depends on a fake target called filename.bashchk, and then we
-# define a pattern rule for those targets that runs bash in check-syntax-only
-# mode. This mechanism has the nice properties that if you specify zero files,
-# the rule becomes a noop (unlike a single rule to check all bash files, which
-# would invoke bash with zero files), and you can check individual files from
-# the command line with "make filename.bashchk".
-#
-.PHONY: check-bash
-check-bash: $(BASH_FILES:%=%.bashchk) $(BASH_FILES:%=%.bashstyle)
-
-%.bashchk: %
- $(BASH) -n $^
-
-%.bashstyle: %
- $(BASHSTYLE) $^
-
-.PHONY: check-jsl check-jsl-node check-jsl-web
-check-jsl: check-jsl-node check-jsl-web
-
-check-jsl-node: $(JSL_FILES_NODE:%=%.jslnodechk)
-
-check-jsl-web: $(JSL_FILES_WEB:%=%.jslwebchk)
-
-%.jslnodechk: % $(JSL_EXEC)
- $(JSL) $(JSL_FLAGS) $(JSL_FLAGS_NODE) $<
-
-%.jslwebchk: % $(JSL_EXEC)
- $(JSL) $(JSL_FLAGS) $(JSL_FLAGS_WEB) $<
-
-.PHONY: check-jsstyle
-check-jsstyle: $(JSSTYLE_FILES:%=%.jsstylechk)
-
-%.jsstylechk: % $(JSSTYLE_EXEC)
- $(JSSTYLE) $(JSSTYLE_FLAGS) $<
-
-.PHONY: check
-check: check-jsl check-jsstyle check-bash
- @echo check ok
-
-.PHONY: clean
-clean::
- -$(RMTREE) $(CLEAN_FILES)
-
-.PHONY: distclean
-distclean:: clean
- -$(RMTREE) $(DISTCLEAN_FILES)
-
-CSCOPE_FILES = cscope.in.out cscope.out cscope.po.out
-CLEAN_FILES += $(CSCOPE_FILES)
-
-.PHONY: xref
-xref: cscope.files
- $(CSCOPE) -bqR
-
-.PHONY: cscope.files
-cscope.files:
- find $(CSCOPE_DIRS) -name '*.c' -o -name '*.h' -o -name '*.cc' \
- -o -name '*.js' -o -name '*.s' -o -name '*.cpp' > $@
-
-#
-# The "docs" target is complicated because we do several things here:
-#
-# (1) Use restdown to build HTML and JSON files from each of DOC_FILES.
-#
-# (2) Copy these files into $(DOC_BUILD) (build/docs/public), which
-# functions as a complete copy of the documentation that could be
-# mirrored or served over HTTP.
-#
-# (3) Then copy any directories and media from docs/media into
-# $(DOC_BUILD)/media. This allows projects to include their own media,
-# including files that will override same-named files provided by
-# restdown.
-#
-# Step (3) is the surprisingly complex part: in order to do this, we need to
-# identify the subdirectories in docs/media, recreate them in
-# $(DOC_BUILD)/media, then do the same with the files.
-#
-DOC_MEDIA_DIRS := $(shell find docs/media -type d 2>/dev/null | grep -v "^docs/media$$")
-DOC_MEDIA_DIRS := $(DOC_MEDIA_DIRS:docs/media/%=%)
-DOC_MEDIA_DIRS_BUILD := $(DOC_MEDIA_DIRS:%=$(DOC_BUILD)/media/%)
-
-DOC_MEDIA_FILES := $(shell find docs/media -type f 2>/dev/null)
-DOC_MEDIA_FILES := $(DOC_MEDIA_FILES:docs/media/%=%)
-DOC_MEDIA_FILES_BUILD := $(DOC_MEDIA_FILES:%=$(DOC_BUILD)/media/%)
-
-#
-# Like the other targets, "docs" just depends on the final files we want to
-# create in $(DOC_BUILD), leveraging other targets and recipes to define how
-# to get there.
-#
-.PHONY: docs
-docs: \
- $(DOC_FILES:%.restdown=$(DOC_BUILD)/%.html) \
- $(DOC_FILES:%.restdown=$(DOC_BUILD)/%.json) \
- $(DOC_MEDIA_FILES_BUILD)
-
-#
-# We keep the intermediate files so that the next build can see whether the
-# files in DOC_BUILD are up to date.
-#
-.PRECIOUS: \
- $(DOC_FILES:%.restdown=docs/%.html) \
- $(DOC_FILES:%.restdown=docs/%json)
-
-#
-# We do clean those intermediate files, as well as all of DOC_BUILD.
-#
-CLEAN_FILES += \
- $(DOC_BUILD) \
- $(DOC_FILES:%.restdown=docs/%.html) \
- $(DOC_FILES:%.restdown=docs/%.json)
-
-#
-# Before installing the files, we must make sure the directories exist. The |
-# syntax tells make that the dependency need only exist, not be up to date.
-# Otherwise, it might try to rebuild spuriously because the directory itself
-# appears out of date.
-#
-$(DOC_MEDIA_FILES_BUILD): | $(DOC_MEDIA_DIRS_BUILD)
-
-$(DOC_BUILD)/%: docs/% | $(DOC_BUILD)
- $(CP) $< $@
-
-docs/%.json docs/%.html: docs/%.restdown | $(DOC_BUILD) $(RESTDOWN_EXEC)
- $(RESTDOWN) $(RESTDOWN_FLAGS) -m $(DOC_BUILD) $<
-
-$(DOC_BUILD):
- $(MKDIR) $@
-
-$(DOC_MEDIA_DIRS_BUILD):
- $(MKDIR) $@
-
-#
-# The default "test" target does nothing. This should usually be overridden by
-# the parent Makefile. It's included here so we can define "prepush" without
-# requiring the repo to define "test".
-#
-.PHONY: test
-test:
-
-.PHONY: prepush
-prepush: check test
diff --git a/node_modules/extsprintf/README.md b/node_modules/extsprintf/README.md
deleted file mode 100644
index b22998d..0000000
--- a/node_modules/extsprintf/README.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# extsprintf: extended POSIX-style sprintf
-
-Stripped down version of s[n]printf(3c). We make a best effort to throw an
-exception when given a format string we don't understand, rather than ignoring
-it, so that we won't break existing programs if/when we go implement the rest
-of this.
-
-This implementation currently supports specifying
-
-* field alignment ('-' flag),
-* zero-pad ('0' flag)
-* always show numeric sign ('+' flag),
-* field width
-* conversions for strings, decimal integers, and floats (numbers).
-* argument size specifiers. These are all accepted but ignored, since
- Javascript has no notion of the physical size of an argument.
-
-Everything else is currently unsupported, most notably: precision, unsigned
-numbers, non-decimal numbers, and characters.
-
-Besides the usual POSIX conversions, this implementation supports:
-
-* `%j`: pretty-print a JSON object (using node's "inspect")
-* `%r`: pretty-print an Error object
-
-# Example
-
-First, install it:
-
- # npm install extsprintf
-
-Now, use it:
-
- var mod_extsprintf = require('extsprintf');
- console.log(mod_extsprintf.sprintf('hello %25s', 'world'));
-
-outputs:
-
- hello world
-
-# Also supported
-
-**printf**: same args as sprintf, but prints the result to stdout
-
-**fprintf**: same args as sprintf, preceded by a Node stream. Prints the result
-to the given stream.
diff --git a/node_modules/extsprintf/jsl.node.conf b/node_modules/extsprintf/jsl.node.conf
deleted file mode 100644
index 03f787f..0000000
--- a/node_modules/extsprintf/jsl.node.conf
+++ /dev/null
@@ -1,137 +0,0 @@
-#
-# Configuration File for JavaScript Lint
-#
-# This configuration file can be used to lint a collection of scripts, or to enable
-# or disable warnings for scripts that are linted via the command line.
-#
-
-### Warnings
-# Enable or disable warnings based on requirements.
-# Use "+WarningName" to display or "-WarningName" to suppress.
-#
-+ambiguous_else_stmt # the else statement could be matched with one of multiple if statements (use curly braces to indicate intent
-+ambiguous_nested_stmt # block statements containing block statements should use curly braces to resolve ambiguity
-+ambiguous_newline # unexpected end of line; it is ambiguous whether these lines are part of the same statement
-+anon_no_return_value # anonymous function does not always return value
-+assign_to_function_call # assignment to a function call
--block_without_braces # block statement without curly braces
-+comma_separated_stmts # multiple statements separated by commas (use semicolons?)
-+comparison_type_conv # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)
-+default_not_at_end # the default case is not at the end of the switch statement
-+dup_option_explicit # duplicate "option explicit" control comment
-+duplicate_case_in_switch # duplicate case in switch statement
-+duplicate_formal # duplicate formal argument {name}
-+empty_statement # empty statement or extra semicolon
-+identifier_hides_another # identifer {name} hides an identifier in a parent scope
--inc_dec_within_stmt # increment (++) and decrement (--) operators used as part of greater statement
-+incorrect_version # Expected /*jsl:content-type*/ control comment. The script was parsed with the wrong version.
-+invalid_fallthru # unexpected "fallthru" control comment
-+invalid_pass # unexpected "pass" control comment
-+jsl_cc_not_understood # couldn't understand control comment using /*jsl:keyword*/ syntax
-+leading_decimal_point # leading decimal point may indicate a number or an object member
-+legacy_cc_not_understood # couldn't understand control comment using /*@keyword@*/ syntax
-+meaningless_block # meaningless block; curly braces have no impact
-+mismatch_ctrl_comments # mismatched control comment; "ignore" and "end" control comments must have a one-to-one correspondence
-+misplaced_regex # regular expressions should be preceded by a left parenthesis, assignment, colon, or comma
-+missing_break # missing break statement
-+missing_break_for_last_case # missing break statement for last case in switch
-+missing_default_case # missing default case in switch statement
-+missing_option_explicit # the "option explicit" control comment is missing
-+missing_semicolon # missing semicolon
-+missing_semicolon_for_lambda # missing semicolon for lambda assignment
-+multiple_plus_minus # unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs
-+nested_comment # nested comment
-+no_return_value # function {name} does not always return a value
-+octal_number # leading zeros make an octal number
-+parseint_missing_radix # parseInt missing radix parameter
-+partial_option_explicit # the "option explicit" control comment, if used, must be in the first script tag
-+redeclared_var # redeclaration of {name}
-+trailing_comma_in_array # extra comma is not recommended in array initializers
-+trailing_decimal_point # trailing decimal point may indicate a number or an object member
-+undeclared_identifier # undeclared identifier: {name}
-+unreachable_code # unreachable code
--unreferenced_argument # argument declared but never referenced: {name}
--unreferenced_function # function is declared but never referenced: {name}
-+unreferenced_variable # variable is declared but never referenced: {name}
-+unsupported_version # JavaScript {version} is not supported
-+use_of_label # use of label
-+useless_assign # useless assignment
-+useless_comparison # useless comparison; comparing identical expressions
--useless_quotes # the quotation marks are unnecessary
-+useless_void # use of the void type may be unnecessary (void is always undefined)
-+var_hides_arg # variable {name} hides argument
-+want_assign_or_call # expected an assignment or function call
-+with_statement # with statement hides undeclared variables; use temporary variable instead
-
-
-### Output format
-# Customize the format of the error message.
-# __FILE__ indicates current file path
-# __FILENAME__ indicates current file name
-# __LINE__ indicates current line
-# __COL__ indicates current column
-# __ERROR__ indicates error message (__ERROR_PREFIX__: __ERROR_MSG__)
-# __ERROR_NAME__ indicates error name (used in configuration file)
-# __ERROR_PREFIX__ indicates error prefix
-# __ERROR_MSG__ indicates error message
-#
-# For machine-friendly output, the output format can be prefixed with
-# "encode:". If specified, all items will be encoded with C-slashes.
-#
-# Visual Studio syntax (default):
-+output-format __FILE__(__LINE__): __ERROR__
-# Alternative syntax:
-#+output-format __FILE__:__LINE__: __ERROR__
-
-
-### Context
-# Show the in-line position of the error.
-# Use "+context" to display or "-context" to suppress.
-#
-+context
-
-
-### Control Comments
-# Both JavaScript Lint and the JScript interpreter confuse each other with the syntax for
-# the /*@keyword@*/ control comments and JScript conditional comments. (The latter is
-# enabled in JScript with @cc_on@). The /*jsl:keyword*/ syntax is preferred for this reason,
-# although legacy control comments are enabled by default for backward compatibility.
-#
--legacy_control_comments
-
-
-### Defining identifiers
-# By default, "option explicit" is enabled on a per-file basis.
-# To enable this for all files, use "+always_use_option_explicit"
--always_use_option_explicit
-
-# Define certain identifiers of which the lint is not aware.
-# (Use this in conjunction with the "undeclared identifier" warning.)
-#
-# Common uses for webpages might be:
-+define __dirname
-+define clearInterval
-+define clearTimeout
-+define console
-+define exports
-+define global
-+define process
-+define require
-+define setInterval
-+define setTimeout
-+define Buffer
-+define JSON
-+define Math
-
-### JavaScript Version
-# To change the default JavaScript version:
-#+default-type text/javascript;version=1.5
-#+default-type text/javascript;e4x=1
-
-### Files
-# Specify which files to lint
-# Use "+recurse" to enable recursion (disabled by default).
-# To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
-# or "+process Folder\Path\*.htm".
-#
-
diff --git a/node_modules/extsprintf/lib/extsprintf.js b/node_modules/extsprintf/lib/extsprintf.js
deleted file mode 100644
index ed883d3..0000000
--- a/node_modules/extsprintf/lib/extsprintf.js
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * extsprintf.js: extended POSIX-style sprintf
- */
-
-var mod_assert = require('assert');
-var mod_util = require('util');
-
-/*
- * Public interface
- */
-exports.sprintf = jsSprintf;
-exports.printf = jsPrintf;
-exports.fprintf = jsFprintf;
-
-/*
- * Stripped down version of s[n]printf(3c). We make a best effort to throw an
- * exception when given a format string we don't understand, rather than
- * ignoring it, so that we won't break existing programs if/when we go implement
- * the rest of this.
- *
- * This implementation currently supports specifying
- * - field alignment ('-' flag),
- * - zero-pad ('0' flag)
- * - always show numeric sign ('+' flag),
- * - field width
- * - conversions for strings, decimal integers, and floats (numbers).
- * - argument size specifiers. These are all accepted but ignored, since
- * Javascript has no notion of the physical size of an argument.
- *
- * Everything else is currently unsupported, most notably precision, unsigned
- * numbers, non-decimal numbers, and characters.
- */
-function jsSprintf(fmt)
-{
- var regex = [
- '([^%]*)', /* normal text */
- '%', /* start of format */
- '([\'\\-+ #0]*?)', /* flags (optional) */
- '([1-9]\\d*)?', /* width (optional) */
- '(\\.([1-9]\\d*))?', /* precision (optional) */
- '[lhjztL]*?', /* length mods (ignored) */
- '([diouxXfFeEgGaAcCsSp%jr])' /* conversion */
- ].join('');
-
- var re = new RegExp(regex);
- var args = Array.prototype.slice.call(arguments, 1);
- var flags, width, precision, conversion;
- var left, pad, sign, arg, match;
- var ret = '';
- var argn = 1;
-
- mod_assert.equal('string', typeof (fmt));
-
- while ((match = re.exec(fmt)) !== null) {
- ret += match[1];
- fmt = fmt.substring(match[0].length);
-
- flags = match[2] || '';
- width = match[3] || 0;
- precision = match[4] || '';
- conversion = match[6];
- left = false;
- sign = false;
- pad = ' ';
-
- if (conversion == '%') {
- ret += '%';
- continue;
- }
-
- if (args.length === 0)
- throw (new Error('too few args to sprintf'));
-
- arg = args.shift();
- argn++;
-
- if (flags.match(/[\' #]/))
- throw (new Error(
- 'unsupported flags: ' + flags));
-
- if (precision.length > 0)
- throw (new Error(
- 'non-zero precision not supported'));
-
- if (flags.match(/-/))
- left = true;
-
- if (flags.match(/0/))
- pad = '0';
-
- if (flags.match(/\+/))
- sign = true;
-
- switch (conversion) {
- case 's':
- if (arg === undefined || arg === null)
- throw (new Error('argument ' + argn +
- ': attempted to print undefined or null ' +
- 'as a string'));
- ret += doPad(pad, width, left, arg.toString());
- break;
-
- case 'd':
- arg = Math.floor(arg);
- /*jsl:fallthru*/
- case 'f':
- sign = sign && arg > 0 ? '+' : '';
- ret += sign + doPad(pad, width, left,
- arg.toString());
- break;
-
- case 'x':
- ret += doPad(pad, width, left, arg.toString(16));
- break;
-
- case 'j': /* non-standard */
- if (width === 0)
- width = 10;
- ret += mod_util.inspect(arg, false, width);
- break;
-
- case 'r': /* non-standard */
- ret += dumpException(arg);
- break;
-
- default:
- throw (new Error('unsupported conversion: ' +
- conversion));
- }
- }
-
- ret += fmt;
- return (ret);
-}
-
-function jsPrintf() {
- var args = Array.prototype.slice.call(arguments);
- args.unshift(process.stdout);
- jsFprintf.apply(null, args);
-}
-
-function jsFprintf(stream) {
- var args = Array.prototype.slice.call(arguments, 1);
- return (stream.write(jsSprintf.apply(this, args)));
-}
-
-function doPad(chr, width, left, str)
-{
- var ret = str;
-
- while (ret.length < width) {
- if (left)
- ret += chr;
- else
- ret = chr + ret;
- }
-
- return (ret);
-}
-
-/*
- * This function dumps long stack traces for exceptions having a cause() method.
- * See node-verror for an example.
- */
-function dumpException(ex)
-{
- var ret;
-
- if (!(ex instanceof Error))
- throw (new Error(jsSprintf('invalid type for %%r: %j', ex)));
-
- /* Note that V8 prepends "ex.stack" with ex.toString(). */
- ret = 'EXCEPTION: ' + ex.constructor.name + ': ' + ex.stack;
-
- if (ex.cause && typeof (ex.cause) === 'function') {
- var cex = ex.cause();
- if (cex) {
- ret += '\nCaused by: ' + dumpException(cex);
- }
- }
-
- return (ret);
-}
diff --git a/node_modules/extsprintf/package.json b/node_modules/extsprintf/package.json
deleted file mode 100644
index 42ba5d4..0000000
--- a/node_modules/extsprintf/package.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "_from": "extsprintf@1.3.0",
- "_id": "extsprintf@1.3.0",
- "_inBundle": false,
- "_integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
- "_location": "/extsprintf",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "extsprintf@1.3.0",
- "name": "extsprintf",
- "escapedName": "extsprintf",
- "rawSpec": "1.3.0",
- "saveSpec": null,
- "fetchSpec": "1.3.0"
- },
- "_requiredBy": [
- "/jsprim",
- "/verror"
- ],
- "_resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
- "_shasum": "96918440e3041a7a414f8c52e3c574eb3c3e1e05",
- "_spec": "extsprintf@1.3.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/jsprim",
- "bugs": {
- "url": "https://github.com/davepacheco/node-extsprintf/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "extended POSIX-style sprintf",
- "engines": [
- "node >=0.6.0"
- ],
- "homepage": "https://github.com/davepacheco/node-extsprintf#readme",
- "license": "MIT",
- "main": "./lib/extsprintf.js",
- "name": "extsprintf",
- "repository": {
- "type": "git",
- "url": "git://github.com/davepacheco/node-extsprintf.git"
- },
- "version": "1.3.0"
-}
diff --git a/node_modules/fast-deep-equal/LICENSE b/node_modules/fast-deep-equal/LICENSE
deleted file mode 100644
index 7f15435..0000000
--- a/node_modules/fast-deep-equal/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 Evgeny Poberezkin
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/fast-deep-equal/README.md b/node_modules/fast-deep-equal/README.md
deleted file mode 100644
index d3f4ffc..0000000
--- a/node_modules/fast-deep-equal/README.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# fast-deep-equal
-The fastest deep equal with ES6 Map, Set and Typed arrays support.
-
-[![Build Status](https://travis-ci.org/epoberezkin/fast-deep-equal.svg?branch=master)](https://travis-ci.org/epoberezkin/fast-deep-equal)
-[![npm](https://img.shields.io/npm/v/fast-deep-equal.svg)](https://www.npmjs.com/package/fast-deep-equal)
-[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/fast-deep-equal/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/fast-deep-equal?branch=master)
-
-
-## Install
-
-```bash
-npm install fast-deep-equal
-```
-
-
-## Features
-
-- ES5 compatible
-- works in node.js (8+) and browsers (IE9+)
-- checks equality of Date and RegExp objects by value.
-
-ES6 equal (`require('fast-deep-equal/es6')`) also supports:
-- Maps
-- Sets
-- Typed arrays
-
-
-## Usage
-
-```javascript
-var equal = require('fast-deep-equal');
-console.log(equal({foo: 'bar'}, {foo: 'bar'})); // true
-```
-
-To support ES6 Maps, Sets and Typed arrays equality use:
-
-```javascript
-var equal = require('fast-deep-equal/es6');
-console.log(equal(Int16Array([1, 2]), Int16Array([1, 2]))); // true
-```
-
-To use with React (avoiding the traversal of React elements' _owner
-property that contains circular references and is not needed when
-comparing the elements - borrowed from [react-fast-compare](https://github.com/FormidableLabs/react-fast-compare)):
-
-```javascript
-var equal = require('fast-deep-equal/react');
-var equal = require('fast-deep-equal/es6/react');
-```
-
-
-## Performance benchmark
-
-Node.js v12.6.0:
-
-```
-fast-deep-equal x 261,950 ops/sec ±0.52% (89 runs sampled)
-fast-deep-equal/es6 x 212,991 ops/sec ±0.34% (92 runs sampled)
-fast-equals x 230,957 ops/sec ±0.83% (85 runs sampled)
-nano-equal x 187,995 ops/sec ±0.53% (88 runs sampled)
-shallow-equal-fuzzy x 138,302 ops/sec ±0.49% (90 runs sampled)
-underscore.isEqual x 74,423 ops/sec ±0.38% (89 runs sampled)
-lodash.isEqual x 36,637 ops/sec ±0.72% (90 runs sampled)
-deep-equal x 2,310 ops/sec ±0.37% (90 runs sampled)
-deep-eql x 35,312 ops/sec ±0.67% (91 runs sampled)
-ramda.equals x 12,054 ops/sec ±0.40% (91 runs sampled)
-util.isDeepStrictEqual x 46,440 ops/sec ±0.43% (90 runs sampled)
-assert.deepStrictEqual x 456 ops/sec ±0.71% (88 runs sampled)
-
-The fastest is fast-deep-equal
-```
-
-To run benchmark (requires node.js 6+):
-
-```bash
-npm run benchmark
-```
-
-__Please note__: this benchmark runs against the available test cases. To choose the most performant library for your application, it is recommended to benchmark against your data and to NOT expect this benchmark to reflect the performance difference in your application.
-
-
-## Enterprise support
-
-fast-deep-equal package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-fast-deep-equal?utm_source=npm-fast-deep-equal&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers.
-
-
-## Security contact
-
-To report a security vulnerability, please use the
-[Tidelift security contact](https://tidelift.com/security).
-Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues.
-
-
-## License
-
-[MIT](https://github.com/epoberezkin/fast-deep-equal/blob/master/LICENSE)
diff --git a/node_modules/fast-deep-equal/es6/index.d.ts b/node_modules/fast-deep-equal/es6/index.d.ts
deleted file mode 100644
index 0fc8d3b..0000000
--- a/node_modules/fast-deep-equal/es6/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-const equal: (a: any, b: any) => boolean;
-export = equal;
diff --git a/node_modules/fast-deep-equal/es6/index.js b/node_modules/fast-deep-equal/es6/index.js
deleted file mode 100644
index d980be2..0000000
--- a/node_modules/fast-deep-equal/es6/index.js
+++ /dev/null
@@ -1,72 +0,0 @@
-'use strict';
-
-// do not edit .js files directly - edit src/index.jst
-
-
- var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
-
-
-module.exports = function equal(a, b) {
- if (a === b) return true;
-
- if (a && b && typeof a == 'object' && typeof b == 'object') {
- if (a.constructor !== b.constructor) return false;
-
- var length, i, keys;
- if (Array.isArray(a)) {
- length = a.length;
- if (length != b.length) return false;
- for (i = length; i-- !== 0;)
- if (!equal(a[i], b[i])) return false;
- return true;
- }
-
-
- if ((a instanceof Map) && (b instanceof Map)) {
- if (a.size !== b.size) return false;
- for (i of a.entries())
- if (!b.has(i[0])) return false;
- for (i of a.entries())
- if (!equal(i[1], b.get(i[0]))) return false;
- return true;
- }
-
- if ((a instanceof Set) && (b instanceof Set)) {
- if (a.size !== b.size) return false;
- for (i of a.entries())
- if (!b.has(i[0])) return false;
- return true;
- }
-
- if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
- length = a.length;
- if (length != b.length) return false;
- for (i = length; i-- !== 0;)
- if (a[i] !== b[i]) return false;
- return true;
- }
-
-
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
-
- keys = Object.keys(a);
- length = keys.length;
- if (length !== Object.keys(b).length) return false;
-
- for (i = length; i-- !== 0;)
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
-
- for (i = length; i-- !== 0;) {
- var key = keys[i];
-
- if (!equal(a[key], b[key])) return false;
- }
-
- return true;
- }
-
- // true if both NaN, false otherwise
- return a!==a && b!==b;
-};
diff --git a/node_modules/fast-deep-equal/es6/react.d.ts b/node_modules/fast-deep-equal/es6/react.d.ts
deleted file mode 100644
index 0fc8d3b..0000000
--- a/node_modules/fast-deep-equal/es6/react.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-const equal: (a: any, b: any) => boolean;
-export = equal;
diff --git a/node_modules/fast-deep-equal/es6/react.js b/node_modules/fast-deep-equal/es6/react.js
deleted file mode 100644
index 98e2f9b..0000000
--- a/node_modules/fast-deep-equal/es6/react.js
+++ /dev/null
@@ -1,79 +0,0 @@
-'use strict';
-
-// do not edit .js files directly - edit src/index.jst
-
-
- var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
-
-
-module.exports = function equal(a, b) {
- if (a === b) return true;
-
- if (a && b && typeof a == 'object' && typeof b == 'object') {
- if (a.constructor !== b.constructor) return false;
-
- var length, i, keys;
- if (Array.isArray(a)) {
- length = a.length;
- if (length != b.length) return false;
- for (i = length; i-- !== 0;)
- if (!equal(a[i], b[i])) return false;
- return true;
- }
-
-
- if ((a instanceof Map) && (b instanceof Map)) {
- if (a.size !== b.size) return false;
- for (i of a.entries())
- if (!b.has(i[0])) return false;
- for (i of a.entries())
- if (!equal(i[1], b.get(i[0]))) return false;
- return true;
- }
-
- if ((a instanceof Set) && (b instanceof Set)) {
- if (a.size !== b.size) return false;
- for (i of a.entries())
- if (!b.has(i[0])) return false;
- return true;
- }
-
- if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
- length = a.length;
- if (length != b.length) return false;
- for (i = length; i-- !== 0;)
- if (a[i] !== b[i]) return false;
- return true;
- }
-
-
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
-
- keys = Object.keys(a);
- length = keys.length;
- if (length !== Object.keys(b).length) return false;
-
- for (i = length; i-- !== 0;)
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
-
- for (i = length; i-- !== 0;) {
- var key = keys[i];
-
- if (key === '_owner' && a.$$typeof) {
- // React-specific: avoid traversing React elements' _owner.
- // _owner contains circular references
- // and is not needed when comparing the actual elements (and not their owners)
- continue;
- }
-
- if (!equal(a[key], b[key])) return false;
- }
-
- return true;
- }
-
- // true if both NaN, false otherwise
- return a!==a && b!==b;
-};
diff --git a/node_modules/fast-deep-equal/index.d.ts b/node_modules/fast-deep-equal/index.d.ts
deleted file mode 100644
index 3c042ca..0000000
--- a/node_modules/fast-deep-equal/index.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-declare module 'fast-deep-equal' {
- const equal: (a: any, b: any) => boolean;
- export = equal;
-}
diff --git a/node_modules/fast-deep-equal/index.js b/node_modules/fast-deep-equal/index.js
deleted file mode 100644
index 30dd1ba..0000000
--- a/node_modules/fast-deep-equal/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-
-// do not edit .js files directly - edit src/index.jst
-
-
-
-module.exports = function equal(a, b) {
- if (a === b) return true;
-
- if (a && b && typeof a == 'object' && typeof b == 'object') {
- if (a.constructor !== b.constructor) return false;
-
- var length, i, keys;
- if (Array.isArray(a)) {
- length = a.length;
- if (length != b.length) return false;
- for (i = length; i-- !== 0;)
- if (!equal(a[i], b[i])) return false;
- return true;
- }
-
-
-
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
-
- keys = Object.keys(a);
- length = keys.length;
- if (length !== Object.keys(b).length) return false;
-
- for (i = length; i-- !== 0;)
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
-
- for (i = length; i-- !== 0;) {
- var key = keys[i];
-
- if (!equal(a[key], b[key])) return false;
- }
-
- return true;
- }
-
- // true if both NaN, false otherwise
- return a!==a && b!==b;
-};
diff --git a/node_modules/fast-deep-equal/package.json b/node_modules/fast-deep-equal/package.json
deleted file mode 100644
index 1829852..0000000
--- a/node_modules/fast-deep-equal/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "fast-deep-equal@^3.1.1",
- "_id": "fast-deep-equal@3.1.1",
- "_inBundle": false,
- "_integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==",
- "_location": "/fast-deep-equal",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "fast-deep-equal@^3.1.1",
- "name": "fast-deep-equal",
- "escapedName": "fast-deep-equal",
- "rawSpec": "^3.1.1",
- "saveSpec": null,
- "fetchSpec": "^3.1.1"
- },
- "_requiredBy": [
- "/ajv"
- ],
- "_resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
- "_shasum": "545145077c501491e33b15ec408c294376e94ae4",
- "_spec": "fast-deep-equal@^3.1.1",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/ajv",
- "author": {
- "name": "Evgeny Poberezkin"
- },
- "bugs": {
- "url": "https://github.com/epoberezkin/fast-deep-equal/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Fast deep equal",
- "devDependencies": {
- "coveralls": "^2.13.1",
- "dot": "^1.1.2",
- "eslint": "^4.0.0",
- "mocha": "^3.4.2",
- "nyc": "^11.0.2",
- "pre-commit": "^1.2.2",
- "react": "^16.12.0",
- "react-test-renderer": "^16.12.0",
- "sinon": "^7.5.0",
- "typescript": "^2.6.1"
- },
- "files": [
- "index.js",
- "index.d.ts",
- "react.js",
- "react.d.ts",
- "es6/"
- ],
- "homepage": "https://github.com/epoberezkin/fast-deep-equal#readme",
- "keywords": [
- "fast",
- "equal",
- "deep-equal"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "fast-deep-equal",
- "nyc": {
- "exclude": [
- "**/spec/**",
- "node_modules"
- ],
- "reporter": [
- "lcov",
- "text-summary"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/epoberezkin/fast-deep-equal.git"
- },
- "scripts": {
- "benchmark": "npm i && npm run build && cd ./benchmark && npm i && node ./",
- "build": "node build",
- "eslint": "eslint *.js benchmark/*.js spec/*.js",
- "prepublish": "npm run build",
- "test": "npm run build && npm run eslint && npm run test-ts && npm run test-cov",
- "test-cov": "nyc npm run test-spec",
- "test-spec": "mocha spec/*.spec.js -R spec",
- "test-ts": "tsc --target ES5 --noImplicitAny index.d.ts"
- },
- "types": "index.d.ts",
- "version": "3.1.1"
-}
diff --git a/node_modules/fast-deep-equal/react.d.ts b/node_modules/fast-deep-equal/react.d.ts
deleted file mode 100644
index 0fc8d3b..0000000
--- a/node_modules/fast-deep-equal/react.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-const equal: (a: any, b: any) => boolean;
-export = equal;
diff --git a/node_modules/fast-deep-equal/react.js b/node_modules/fast-deep-equal/react.js
deleted file mode 100644
index 3489b98..0000000
--- a/node_modules/fast-deep-equal/react.js
+++ /dev/null
@@ -1,53 +0,0 @@
-'use strict';
-
-// do not edit .js files directly - edit src/index.jst
-
-
-
-module.exports = function equal(a, b) {
- if (a === b) return true;
-
- if (a && b && typeof a == 'object' && typeof b == 'object') {
- if (a.constructor !== b.constructor) return false;
-
- var length, i, keys;
- if (Array.isArray(a)) {
- length = a.length;
- if (length != b.length) return false;
- for (i = length; i-- !== 0;)
- if (!equal(a[i], b[i])) return false;
- return true;
- }
-
-
-
- if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
- if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
- if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
-
- keys = Object.keys(a);
- length = keys.length;
- if (length !== Object.keys(b).length) return false;
-
- for (i = length; i-- !== 0;)
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
-
- for (i = length; i-- !== 0;) {
- var key = keys[i];
-
- if (key === '_owner' && a.$$typeof) {
- // React-specific: avoid traversing React elements' _owner.
- // _owner contains circular references
- // and is not needed when comparing the actual elements (and not their owners)
- continue;
- }
-
- if (!equal(a[key], b[key])) return false;
- }
-
- return true;
- }
-
- // true if both NaN, false otherwise
- return a!==a && b!==b;
-};
diff --git a/node_modules/fast-json-stable-stringify/.eslintrc.yml b/node_modules/fast-json-stable-stringify/.eslintrc.yml
deleted file mode 100644
index 1c77b0d..0000000
--- a/node_modules/fast-json-stable-stringify/.eslintrc.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-extends: eslint:recommended
-env:
- node: true
- browser: true
-rules:
- block-scoped-var: 2
- callback-return: 2
- dot-notation: 2
- indent: 2
- linebreak-style: [2, unix]
- new-cap: 2
- no-console: [2, allow: [warn, error]]
- no-else-return: 2
- no-eq-null: 2
- no-fallthrough: 2
- no-invalid-this: 2
- no-return-assign: 2
- no-shadow: 1
- no-trailing-spaces: 2
- no-use-before-define: [2, nofunc]
- quotes: [2, single, avoid-escape]
- semi: [2, always]
- strict: [2, global]
- valid-jsdoc: [2, requireReturn: false]
- no-control-regex: 0
- no-useless-escape: 2
diff --git a/node_modules/fast-json-stable-stringify/.github/FUNDING.yml b/node_modules/fast-json-stable-stringify/.github/FUNDING.yml
deleted file mode 100644
index 61f9daa..0000000
--- a/node_modules/fast-json-stable-stringify/.github/FUNDING.yml
+++ /dev/null
@@ -1 +0,0 @@
-tidelift: "npm/fast-json-stable-stringify"
diff --git a/node_modules/fast-json-stable-stringify/.travis.yml b/node_modules/fast-json-stable-stringify/.travis.yml
deleted file mode 100644
index b61e8f0..0000000
--- a/node_modules/fast-json-stable-stringify/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-language: node_js
-node_js:
- - "8"
- - "10"
- - "12"
- - "13"
-after_script:
- - coveralls < coverage/lcov.info
diff --git a/node_modules/fast-json-stable-stringify/LICENSE b/node_modules/fast-json-stable-stringify/LICENSE
deleted file mode 100644
index c932223..0000000
--- a/node_modules/fast-json-stable-stringify/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-This software is released under the MIT license:
-
-Copyright (c) 2017 Evgeny Poberezkin
-Copyright (c) 2013 James Halliday
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/fast-json-stable-stringify/README.md b/node_modules/fast-json-stable-stringify/README.md
deleted file mode 100644
index 02cf49f..0000000
--- a/node_modules/fast-json-stable-stringify/README.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# fast-json-stable-stringify
-
-Deterministic `JSON.stringify()` - a faster version of [@substack](https://github.com/substack)'s json-stable-strigify without [jsonify](https://github.com/substack/jsonify).
-
-You can also pass in a custom comparison function.
-
-[![Build Status](https://travis-ci.org/epoberezkin/fast-json-stable-stringify.svg?branch=master)](https://travis-ci.org/epoberezkin/fast-json-stable-stringify)
-[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/fast-json-stable-stringify/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/fast-json-stable-stringify?branch=master)
-
-# example
-
-``` js
-var stringify = require('fast-json-stable-stringify');
-var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
-console.log(stringify(obj));
-```
-
-output:
-
-```
-{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}
-```
-
-
-# methods
-
-``` js
-var stringify = require('fast-json-stable-stringify')
-```
-
-## var str = stringify(obj, opts)
-
-Return a deterministic stringified string `str` from the object `obj`.
-
-
-## options
-
-### cmp
-
-If `opts` is given, you can supply an `opts.cmp` to have a custom comparison
-function for object keys. Your function `opts.cmp` is called with these
-parameters:
-
-``` js
-opts.cmp({ key: akey, value: avalue }, { key: bkey, value: bvalue })
-```
-
-For example, to sort on the object key names in reverse order you could write:
-
-``` js
-var stringify = require('fast-json-stable-stringify');
-
-var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
-var s = stringify(obj, function (a, b) {
- return a.key < b.key ? 1 : -1;
-});
-console.log(s);
-```
-
-which results in the output string:
-
-```
-{"c":8,"b":[{"z":6,"y":5,"x":4},7],"a":3}
-```
-
-Or if you wanted to sort on the object values in reverse order, you could write:
-
-```
-var stringify = require('fast-json-stable-stringify');
-
-var obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 };
-var s = stringify(obj, function (a, b) {
- return a.value < b.value ? 1 : -1;
-});
-console.log(s);
-```
-
-which outputs:
-
-```
-{"d":6,"c":5,"b":[{"z":3,"y":2,"x":1},9],"a":10}
-```
-
-### cycles
-
-Pass `true` in `opts.cycles` to stringify circular property as `__cycle__` - the result will not be a valid JSON string in this case.
-
-TypeError will be thrown in case of circular object without this option.
-
-
-# install
-
-With [npm](https://npmjs.org) do:
-
-```
-npm install fast-json-stable-stringify
-```
-
-
-# benchmark
-
-To run benchmark (requires Node.js 6+):
-```
-node benchmark
-```
-
-Results:
-```
-fast-json-stable-stringify x 17,189 ops/sec ±1.43% (83 runs sampled)
-json-stable-stringify x 13,634 ops/sec ±1.39% (85 runs sampled)
-fast-stable-stringify x 20,212 ops/sec ±1.20% (84 runs sampled)
-faster-stable-stringify x 15,549 ops/sec ±1.12% (84 runs sampled)
-The fastest is fast-stable-stringify
-```
-
-
-## Enterprise support
-
-fast-json-stable-stringify package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-fast-json-stable-stringify?utm_source=npm-fast-json-stable-stringify&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers.
-
-
-## Security contact
-
-To report a security vulnerability, please use the
-[Tidelift security contact](https://tidelift.com/security).
-Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues.
-
-
-# license
-
-[MIT](https://github.com/epoberezkin/fast-json-stable-stringify/blob/master/LICENSE)
diff --git a/node_modules/fast-json-stable-stringify/benchmark/index.js b/node_modules/fast-json-stable-stringify/benchmark/index.js
deleted file mode 100644
index e725f9f..0000000
--- a/node_modules/fast-json-stable-stringify/benchmark/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-const Benchmark = require('benchmark');
-const suite = new Benchmark.Suite;
-const testData = require('./test.json');
-
-
-const stringifyPackages = {
- // 'JSON.stringify': JSON.stringify,
- 'fast-json-stable-stringify': require('../index'),
- 'json-stable-stringify': true,
- 'fast-stable-stringify': true,
- 'faster-stable-stringify': true
-};
-
-
-for (const name in stringifyPackages) {
- let func = stringifyPackages[name];
- if (func === true) func = require(name);
-
- suite.add(name, function() {
- func(testData);
- });
-}
-
-suite
- .on('cycle', (event) => console.log(String(event.target)))
- .on('complete', function () {
- console.log('The fastest is ' + this.filter('fastest').map('name'));
- })
- .run({async: true});
diff --git a/node_modules/fast-json-stable-stringify/benchmark/test.json b/node_modules/fast-json-stable-stringify/benchmark/test.json
deleted file mode 100644
index c9118c1..0000000
--- a/node_modules/fast-json-stable-stringify/benchmark/test.json
+++ /dev/null
@@ -1,137 +0,0 @@
-[
- {
- "_id": "59ef4a83ee8364808d761beb",
- "index": 0,
- "guid": "e50ffae9-7128-4148-9ee5-40c3fc523c5d",
- "isActive": false,
- "balance": "$2,341.81",
- "picture": "http://placehold.it/32x32",
- "age": 28,
- "eyeColor": "brown",
- "name": "Carey Savage",
- "gender": "female",
- "company": "VERAQ",
- "email": "careysavage@veraq.com",
- "phone": "+1 (897) 574-3014",
- "address": "458 Willow Street, Henrietta, California, 7234",
- "about": "Nisi reprehenderit nulla ad officia pariatur non dolore laboris irure cupidatat laborum. Minim eu ex Lorem adipisicing exercitation irure minim sunt est enim mollit incididunt voluptate nulla. Ut mollit anim reprehenderit et aliqua ex esse aliquip. Aute sit duis deserunt do incididunt consequat minim qui dolor commodo deserunt et voluptate.\r\n",
- "registered": "2014-05-21T01:56:51 -01:00",
- "latitude": 63.89502,
- "longitude": 62.369807,
- "tags": [
- "nostrud",
- "nisi",
- "consectetur",
- "ullamco",
- "cupidatat",
- "culpa",
- "commodo"
- ],
- "friends": [
- {
- "id": 0,
- "name": "Henry Walls"
- },
- {
- "id": 1,
- "name": "Janice Baker"
- },
- {
- "id": 2,
- "name": "Russell Bush"
- }
- ],
- "greeting": "Hello, Carey Savage! You have 4 unread messages.",
- "favoriteFruit": "banana"
- },
- {
- "_id": "59ef4a83ff5774a691454e89",
- "index": 1,
- "guid": "2bee9efc-4095-4c2e-87ef-d08c8054c89d",
- "isActive": true,
- "balance": "$1,618.15",
- "picture": "http://placehold.it/32x32",
- "age": 35,
- "eyeColor": "blue",
- "name": "Elinor Pearson",
- "gender": "female",
- "company": "FLEXIGEN",
- "email": "elinorpearson@flexigen.com",
- "phone": "+1 (923) 548-3751",
- "address": "600 Bayview Avenue, Draper, Montana, 3088",
- "about": "Mollit commodo ea sit Lorem velit. Irure anim esse Lorem sint quis officia ut. Aliqua nisi dolore in aute deserunt mollit ex ea in mollit.\r\n",
- "registered": "2017-04-22T07:58:41 -01:00",
- "latitude": -87.824919,
- "longitude": 69.538927,
- "tags": [
- "fugiat",
- "labore",
- "proident",
- "quis",
- "eiusmod",
- "qui",
- "est"
- ],
- "friends": [
- {
- "id": 0,
- "name": "Massey Wagner"
- },
- {
- "id": 1,
- "name": "Marcella Ferrell"
- },
- {
- "id": 2,
- "name": "Evans Mckee"
- }
- ],
- "greeting": "Hello, Elinor Pearson! You have 3 unread messages.",
- "favoriteFruit": "strawberry"
- },
- {
- "_id": "59ef4a839ec8a4be4430b36b",
- "index": 2,
- "guid": "ddd6e8c0-95bd-416d-8b46-a768d6363809",
- "isActive": false,
- "balance": "$2,046.95",
- "picture": "http://placehold.it/32x32",
- "age": 40,
- "eyeColor": "green",
- "name": "Irwin Davidson",
- "gender": "male",
- "company": "DANJA",
- "email": "irwindavidson@danja.com",
- "phone": "+1 (883) 537-2041",
- "address": "439 Cook Street, Chapin, Kentucky, 7398",
- "about": "Irure velit non commodo aliqua exercitation ut nostrud minim magna. Dolor ad ad ut irure eu. Non pariatur dolor eiusmod ipsum do et exercitation cillum. Et amet laboris minim eiusmod ullamco magna ea reprehenderit proident sunt.\r\n",
- "registered": "2016-09-01T07:49:08 -01:00",
- "latitude": -49.803812,
- "longitude": 104.93279,
- "tags": [
- "consequat",
- "enim",
- "quis",
- "magna",
- "est",
- "culpa",
- "tempor"
- ],
- "friends": [
- {
- "id": 0,
- "name": "Ruth Hansen"
- },
- {
- "id": 1,
- "name": "Kathrine Austin"
- },
- {
- "id": 2,
- "name": "Rivera Munoz"
- }
- ],
- "greeting": "Hello, Irwin Davidson! You have 2 unread messages.",
- "favoriteFruit": "banana"
- }
-]
diff --git a/node_modules/fast-json-stable-stringify/example/key_cmp.js b/node_modules/fast-json-stable-stringify/example/key_cmp.js
deleted file mode 100644
index d5f6675..0000000
--- a/node_modules/fast-json-stable-stringify/example/key_cmp.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var stringify = require('../');
-
-var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
-var s = stringify(obj, function (a, b) {
- return a.key < b.key ? 1 : -1;
-});
-console.log(s);
diff --git a/node_modules/fast-json-stable-stringify/example/nested.js b/node_modules/fast-json-stable-stringify/example/nested.js
deleted file mode 100644
index 9a672fc..0000000
--- a/node_modules/fast-json-stable-stringify/example/nested.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var stringify = require('../');
-var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
-console.log(stringify(obj));
diff --git a/node_modules/fast-json-stable-stringify/example/str.js b/node_modules/fast-json-stable-stringify/example/str.js
deleted file mode 100644
index 9b4b3cd..0000000
--- a/node_modules/fast-json-stable-stringify/example/str.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var stringify = require('../');
-var obj = { c: 6, b: [4,5], a: 3 };
-console.log(stringify(obj));
diff --git a/node_modules/fast-json-stable-stringify/example/value_cmp.js b/node_modules/fast-json-stable-stringify/example/value_cmp.js
deleted file mode 100644
index 09f1c5f..0000000
--- a/node_modules/fast-json-stable-stringify/example/value_cmp.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var stringify = require('../');
-
-var obj = { d: 6, c: 5, b: [{z:3,y:2,x:1},9], a: 10 };
-var s = stringify(obj, function (a, b) {
- return a.value < b.value ? 1 : -1;
-});
-console.log(s);
diff --git a/node_modules/fast-json-stable-stringify/index.d.ts b/node_modules/fast-json-stable-stringify/index.d.ts
deleted file mode 100644
index 23e46ca..0000000
--- a/node_modules/fast-json-stable-stringify/index.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-declare module 'fast-json-stable-stringify' {
- function stringify(obj: any): string;
- export = stringify;
-}
diff --git a/node_modules/fast-json-stable-stringify/index.js b/node_modules/fast-json-stable-stringify/index.js
deleted file mode 100644
index c44e6a4..0000000
--- a/node_modules/fast-json-stable-stringify/index.js
+++ /dev/null
@@ -1,59 +0,0 @@
-'use strict';
-
-module.exports = function (data, opts) {
- if (!opts) opts = {};
- if (typeof opts === 'function') opts = { cmp: opts };
- var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;
-
- var cmp = opts.cmp && (function (f) {
- return function (node) {
- return function (a, b) {
- var aobj = { key: a, value: node[a] };
- var bobj = { key: b, value: node[b] };
- return f(aobj, bobj);
- };
- };
- })(opts.cmp);
-
- var seen = [];
- return (function stringify (node) {
- if (node && node.toJSON && typeof node.toJSON === 'function') {
- node = node.toJSON();
- }
-
- if (node === undefined) return;
- if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';
- if (typeof node !== 'object') return JSON.stringify(node);
-
- var i, out;
- if (Array.isArray(node)) {
- out = '[';
- for (i = 0; i < node.length; i++) {
- if (i) out += ',';
- out += stringify(node[i]) || 'null';
- }
- return out + ']';
- }
-
- if (node === null) return 'null';
-
- if (seen.indexOf(node) !== -1) {
- if (cycles) return JSON.stringify('__cycle__');
- throw new TypeError('Converting circular structure to JSON');
- }
-
- var seenIndex = seen.push(node) - 1;
- var keys = Object.keys(node).sort(cmp && cmp(node));
- out = '';
- for (i = 0; i < keys.length; i++) {
- var key = keys[i];
- var value = stringify(node[key]);
-
- if (!value) continue;
- if (out) out += ',';
- out += JSON.stringify(key) + ':' + value;
- }
- seen.splice(seenIndex, 1);
- return '{' + out + '}';
- })(data);
-};
diff --git a/node_modules/fast-json-stable-stringify/package.json b/node_modules/fast-json-stable-stringify/package.json
deleted file mode 100644
index 45ab357..0000000
--- a/node_modules/fast-json-stable-stringify/package.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "_from": "fast-json-stable-stringify@^2.0.0",
- "_id": "fast-json-stable-stringify@2.1.0",
- "_inBundle": false,
- "_integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
- "_location": "/fast-json-stable-stringify",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "fast-json-stable-stringify@^2.0.0",
- "name": "fast-json-stable-stringify",
- "escapedName": "fast-json-stable-stringify",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/ajv"
- ],
- "_resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
- "_shasum": "874bf69c6f404c2b5d99c481341399fd55892633",
- "_spec": "fast-json-stable-stringify@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/ajv",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "bugs": {
- "url": "https://github.com/epoberezkin/fast-json-stable-stringify/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify",
- "devDependencies": {
- "benchmark": "^2.1.4",
- "coveralls": "^3.0.0",
- "eslint": "^6.7.0",
- "fast-stable-stringify": "latest",
- "faster-stable-stringify": "latest",
- "json-stable-stringify": "latest",
- "nyc": "^14.1.0",
- "pre-commit": "^1.2.2",
- "tape": "^4.11.0"
- },
- "homepage": "https://github.com/epoberezkin/fast-json-stable-stringify",
- "keywords": [
- "json",
- "stringify",
- "deterministic",
- "hash",
- "stable"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "fast-json-stable-stringify",
- "nyc": {
- "exclude": [
- "test",
- "node_modules"
- ],
- "reporter": [
- "lcov",
- "text-summary"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/epoberezkin/fast-json-stable-stringify.git"
- },
- "scripts": {
- "eslint": "eslint index.js test",
- "test": "npm run eslint && nyc npm run test-spec",
- "test-spec": "tape test/*.js"
- },
- "types": "index.d.ts",
- "version": "2.1.0"
-}
diff --git a/node_modules/fast-json-stable-stringify/test/cmp.js b/node_modules/fast-json-stable-stringify/test/cmp.js
deleted file mode 100644
index 4efd6b5..0000000
--- a/node_modules/fast-json-stable-stringify/test/cmp.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var stringify = require('../');
-
-test('custom comparison function', function (t) {
- t.plan(1);
- var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
- var s = stringify(obj, function (a, b) {
- return a.key < b.key ? 1 : -1;
- });
- t.equal(s, '{"c":8,"b":[{"z":6,"y":5,"x":4},7],"a":3}');
-});
diff --git a/node_modules/fast-json-stable-stringify/test/nested.js b/node_modules/fast-json-stable-stringify/test/nested.js
deleted file mode 100644
index 167a358..0000000
--- a/node_modules/fast-json-stable-stringify/test/nested.js
+++ /dev/null
@@ -1,44 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var stringify = require('../');
-
-test('nested', function (t) {
- t.plan(1);
- var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
- t.equal(stringify(obj), '{"a":3,"b":[{"x":4,"y":5,"z":6},7],"c":8}');
-});
-
-test('cyclic (default)', function (t) {
- t.plan(1);
- var one = { a: 1 };
- var two = { a: 2, one: one };
- one.two = two;
- try {
- stringify(one);
- } catch (ex) {
- t.equal(ex.toString(), 'TypeError: Converting circular structure to JSON');
- }
-});
-
-test('cyclic (specifically allowed)', function (t) {
- t.plan(1);
- var one = { a: 1 };
- var two = { a: 2, one: one };
- one.two = two;
- t.equal(stringify(one, {cycles:true}), '{"a":1,"two":{"a":2,"one":"__cycle__"}}');
-});
-
-test('repeated non-cyclic value', function(t) {
- t.plan(1);
- var one = { x: 1 };
- var two = { a: one, b: one };
- t.equal(stringify(two), '{"a":{"x":1},"b":{"x":1}}');
-});
-
-test('acyclic but with reused obj-property pointers', function (t) {
- t.plan(1);
- var x = { a: 1 };
- var y = { b: x, c: x };
- t.equal(stringify(y), '{"b":{"a":1},"c":{"a":1}}');
-});
diff --git a/node_modules/fast-json-stable-stringify/test/str.js b/node_modules/fast-json-stable-stringify/test/str.js
deleted file mode 100644
index 99a9ade..0000000
--- a/node_modules/fast-json-stable-stringify/test/str.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var stringify = require('../');
-
-test('simple object', function (t) {
- t.plan(1);
- var obj = { c: 6, b: [4,5], a: 3, z: null };
- t.equal(stringify(obj), '{"a":3,"b":[4,5],"c":6,"z":null}');
-});
-
-test('object with undefined', function (t) {
- t.plan(1);
- var obj = { a: 3, z: undefined };
- t.equal(stringify(obj), '{"a":3}');
-});
-
-test('object with null', function (t) {
- t.plan(1);
- var obj = { a: 3, z: null };
- t.equal(stringify(obj), '{"a":3,"z":null}');
-});
-
-test('object with NaN and Infinity', function (t) {
- t.plan(1);
- var obj = { a: 3, b: NaN, c: Infinity };
- t.equal(stringify(obj), '{"a":3,"b":null,"c":null}');
-});
-
-test('array with undefined', function (t) {
- t.plan(1);
- var obj = [4, undefined, 6];
- t.equal(stringify(obj), '[4,null,6]');
-});
-
-test('object with empty string', function (t) {
- t.plan(1);
- var obj = { a: 3, z: '' };
- t.equal(stringify(obj), '{"a":3,"z":""}');
-});
-
-test('array with empty string', function (t) {
- t.plan(1);
- var obj = [4, '', 6];
- t.equal(stringify(obj), '[4,"",6]');
-});
diff --git a/node_modules/fast-json-stable-stringify/test/to-json.js b/node_modules/fast-json-stable-stringify/test/to-json.js
deleted file mode 100644
index 2fb2cfa..0000000
--- a/node_modules/fast-json-stable-stringify/test/to-json.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var stringify = require('../');
-
-test('toJSON function', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2, toJSON: function() { return { one: 1 }; } };
- t.equal(stringify(obj), '{"one":1}' );
-});
-
-test('toJSON returns string', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2, toJSON: function() { return 'one'; } };
- t.equal(stringify(obj), '"one"');
-});
-
-test('toJSON returns array', function (t) {
- t.plan(1);
- var obj = { one: 1, two: 2, toJSON: function() { return ['one']; } };
- t.equal(stringify(obj), '["one"]');
-});
diff --git a/node_modules/find-up/index.js b/node_modules/find-up/index.js
deleted file mode 100644
index 7ff0e2b..0000000
--- a/node_modules/find-up/index.js
+++ /dev/null
@@ -1,53 +0,0 @@
-'use strict';
-var path = require('path');
-var pathExists = require('path-exists');
-var Promise = require('pinkie-promise');
-
-function splitPath(x) {
- return path.resolve(x || '').split(path.sep);
-}
-
-function join(parts, filename) {
- return path.resolve(parts.join(path.sep) + path.sep, filename);
-}
-
-module.exports = function (filename, opts) {
- opts = opts || {};
-
- var parts = splitPath(opts.cwd);
-
- return new Promise(function (resolve) {
- (function find() {
- var fp = join(parts, filename);
-
- pathExists(fp).then(function (exists) {
- if (exists) {
- resolve(fp);
- } else if (parts.pop()) {
- find();
- } else {
- resolve(null);
- }
- });
- })();
- });
-};
-
-module.exports.sync = function (filename, opts) {
- opts = opts || {};
-
- var parts = splitPath(opts.cwd);
- var len = parts.length;
-
- while (len--) {
- var fp = join(parts, filename);
-
- if (pathExists.sync(fp)) {
- return fp;
- }
-
- parts.pop();
- }
-
- return null;
-};
diff --git a/node_modules/find-up/license b/node_modules/find-up/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/find-up/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/find-up/package.json b/node_modules/find-up/package.json
deleted file mode 100644
index 3d34049..0000000
--- a/node_modules/find-up/package.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "_from": "find-up@^1.0.0",
- "_id": "find-up@1.1.2",
- "_inBundle": false,
- "_integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
- "_location": "/find-up",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "find-up@^1.0.0",
- "name": "find-up",
- "escapedName": "find-up",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/read-pkg-up"
- ],
- "_resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
- "_shasum": "6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f",
- "_spec": "find-up@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/read-pkg-up",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/find-up/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "path-exists": "^2.0.0",
- "pinkie-promise": "^2.0.0"
- },
- "deprecated": false,
- "description": "Find a file by walking up parent directories",
- "devDependencies": {
- "ava": "*",
- "tempfile": "^1.1.1",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/find-up#readme",
- "keywords": [
- "find",
- "up",
- "find-up",
- "findup",
- "look-up",
- "look",
- "file",
- "search",
- "match",
- "package",
- "resolve",
- "parent",
- "parents",
- "folder",
- "directory",
- "dir",
- "walk",
- "walking",
- "path"
- ],
- "license": "MIT",
- "name": "find-up",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/find-up.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.1.2"
-}
diff --git a/node_modules/find-up/readme.md b/node_modules/find-up/readme.md
deleted file mode 100644
index 9ea0611..0000000
--- a/node_modules/find-up/readme.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# find-up [![Build Status](https://travis-ci.org/sindresorhus/find-up.svg?branch=master)](https://travis-ci.org/sindresorhus/find-up)
-
-> Find a file by walking up parent directories
-
-
-## Install
-
-```
-$ npm install --save find-up
-```
-
-
-## Usage
-
-```
-/
-└── Users
- └── sindresorhus
- ├── unicorn.png
- └── foo
- └── bar
- ├── baz
- └── example.js
-```
-
-```js
-// example.js
-const findUp = require('find-up');
-
-findUp('unicorn.png').then(filepath => {
- console.log(filepath);
- //=> '/Users/sindresorhus/unicorn.png'
-});
-```
-
-
-## API
-
-### findUp(filename, [options])
-
-Returns a promise for the filepath or `null`.
-
-### findUp.sync(filename, [options])
-
-Returns a filepath or `null`.
-
-#### filename
-
-Type: `string`
-
-Filename of the file to find.
-
-#### options
-
-##### cwd
-
-Type: `string`
-Default: `process.cwd()`
-
-Directory to start from.
-
-
-## Related
-
-- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module
-- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file
-- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/forever-agent/LICENSE b/node_modules/forever-agent/LICENSE
deleted file mode 100644
index a4a9aee..0000000
--- a/node_modules/forever-agent/LICENSE
+++ /dev/null
@@ -1,55 +0,0 @@
-Apache License
-
-Version 2.0, January 2004
-
-http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-
-You must give any other recipients of the Work or Derivative Works a copy of this License; and
-
-You must cause any modified files to carry prominent notices stating that You changed the files; and
-
-You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-
-If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS \ No newline at end of file
diff --git a/node_modules/forever-agent/README.md b/node_modules/forever-agent/README.md
deleted file mode 100644
index 9d5b663..0000000
--- a/node_modules/forever-agent/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-forever-agent
-=============
-
-HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.
diff --git a/node_modules/forever-agent/index.js b/node_modules/forever-agent/index.js
deleted file mode 100644
index 416c7ab..0000000
--- a/node_modules/forever-agent/index.js
+++ /dev/null
@@ -1,138 +0,0 @@
-module.exports = ForeverAgent
-ForeverAgent.SSL = ForeverAgentSSL
-
-var util = require('util')
- , Agent = require('http').Agent
- , net = require('net')
- , tls = require('tls')
- , AgentSSL = require('https').Agent
-
-function getConnectionName(host, port) {
- var name = ''
- if (typeof host === 'string') {
- name = host + ':' + port
- } else {
- // For node.js v012.0 and iojs-v1.5.1, host is an object. And any existing localAddress is part of the connection name.
- name = host.host + ':' + host.port + ':' + (host.localAddress ? (host.localAddress + ':') : ':')
- }
- return name
-}
-
-function ForeverAgent(options) {
- var self = this
- self.options = options || {}
- self.requests = {}
- self.sockets = {}
- self.freeSockets = {}
- self.maxSockets = self.options.maxSockets || Agent.defaultMaxSockets
- self.minSockets = self.options.minSockets || ForeverAgent.defaultMinSockets
- self.on('free', function(socket, host, port) {
- var name = getConnectionName(host, port)
-
- if (self.requests[name] && self.requests[name].length) {
- self.requests[name].shift().onSocket(socket)
- } else if (self.sockets[name].length < self.minSockets) {
- if (!self.freeSockets[name]) self.freeSockets[name] = []
- self.freeSockets[name].push(socket)
-
- // if an error happens while we don't use the socket anyway, meh, throw the socket away
- var onIdleError = function() {
- socket.destroy()
- }
- socket._onIdleError = onIdleError
- socket.on('error', onIdleError)
- } else {
- // If there are no pending requests just destroy the
- // socket and it will get removed from the pool. This
- // gets us out of timeout issues and allows us to
- // default to Connection:keep-alive.
- socket.destroy()
- }
- })
-
-}
-util.inherits(ForeverAgent, Agent)
-
-ForeverAgent.defaultMinSockets = 5
-
-
-ForeverAgent.prototype.createConnection = net.createConnection
-ForeverAgent.prototype.addRequestNoreuse = Agent.prototype.addRequest
-ForeverAgent.prototype.addRequest = function(req, host, port) {
- var name = getConnectionName(host, port)
-
- if (typeof host !== 'string') {
- var options = host
- port = options.port
- host = options.host
- }
-
- if (this.freeSockets[name] && this.freeSockets[name].length > 0 && !req.useChunkedEncodingByDefault) {
- var idleSocket = this.freeSockets[name].pop()
- idleSocket.removeListener('error', idleSocket._onIdleError)
- delete idleSocket._onIdleError
- req._reusedSocket = true
- req.onSocket(idleSocket)
- } else {
- this.addRequestNoreuse(req, host, port)
- }
-}
-
-ForeverAgent.prototype.removeSocket = function(s, name, host, port) {
- if (this.sockets[name]) {
- var index = this.sockets[name].indexOf(s)
- if (index !== -1) {
- this.sockets[name].splice(index, 1)
- }
- } else if (this.sockets[name] && this.sockets[name].length === 0) {
- // don't leak
- delete this.sockets[name]
- delete this.requests[name]
- }
-
- if (this.freeSockets[name]) {
- var index = this.freeSockets[name].indexOf(s)
- if (index !== -1) {
- this.freeSockets[name].splice(index, 1)
- if (this.freeSockets[name].length === 0) {
- delete this.freeSockets[name]
- }
- }
- }
-
- if (this.requests[name] && this.requests[name].length) {
- // If we have pending requests and a socket gets closed a new one
- // needs to be created to take over in the pool for the one that closed.
- this.createSocket(name, host, port).emit('free')
- }
-}
-
-function ForeverAgentSSL (options) {
- ForeverAgent.call(this, options)
-}
-util.inherits(ForeverAgentSSL, ForeverAgent)
-
-ForeverAgentSSL.prototype.createConnection = createConnectionSSL
-ForeverAgentSSL.prototype.addRequestNoreuse = AgentSSL.prototype.addRequest
-
-function createConnectionSSL (port, host, options) {
- if (typeof port === 'object') {
- options = port;
- } else if (typeof host === 'object') {
- options = host;
- } else if (typeof options === 'object') {
- options = options;
- } else {
- options = {};
- }
-
- if (typeof port === 'number') {
- options.port = port;
- }
-
- if (typeof host === 'string') {
- options.host = host;
- }
-
- return tls.connect(options);
-}
diff --git a/node_modules/forever-agent/package.json b/node_modules/forever-agent/package.json
deleted file mode 100644
index 56f0d67..0000000
--- a/node_modules/forever-agent/package.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "_from": "forever-agent@~0.6.1",
- "_id": "forever-agent@0.6.1",
- "_inBundle": false,
- "_integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
- "_location": "/forever-agent",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "forever-agent@~0.6.1",
- "name": "forever-agent",
- "escapedName": "forever-agent",
- "rawSpec": "~0.6.1",
- "saveSpec": null,
- "fetchSpec": "~0.6.1"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
- "_shasum": "fbc71f0c41adeb37f96c577ad1ed42d8fdacca91",
- "_spec": "forever-agent@~0.6.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Mikeal Rogers",
- "email": "mikeal.rogers@gmail.com",
- "url": "http://www.futurealoof.com"
- },
- "bugs": {
- "url": "https://github.com/mikeal/forever-agent/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module.",
- "devDependencies": {},
- "engines": {
- "node": "*"
- },
- "homepage": "https://github.com/mikeal/forever-agent#readme",
- "license": "Apache-2.0",
- "main": "index.js",
- "name": "forever-agent",
- "optionalDependencies": {},
- "repository": {
- "url": "git+https://github.com/mikeal/forever-agent.git"
- },
- "version": "0.6.1"
-}
diff --git a/node_modules/form-data/License b/node_modules/form-data/License
deleted file mode 100644
index c7ff12a..0000000
--- a/node_modules/form-data/License
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2012 Felix Geisendörfer (felix@debuggable.com) and contributors
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
diff --git a/node_modules/form-data/README.md b/node_modules/form-data/README.md
deleted file mode 100644
index d780936..0000000
--- a/node_modules/form-data/README.md
+++ /dev/null
@@ -1,234 +0,0 @@
-# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data)
-
-A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications.
-
-The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd].
-
-[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
-
-[![Linux Build](https://img.shields.io/travis/form-data/form-data/v2.3.3.svg?label=linux:4.x-9.x)](https://travis-ci.org/form-data/form-data)
-[![MacOS Build](https://img.shields.io/travis/form-data/form-data/v2.3.3.svg?label=macos:4.x-9.x)](https://travis-ci.org/form-data/form-data)
-[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/form-data/v2.3.3.svg?label=windows:4.x-9.x)](https://ci.appveyor.com/project/alexindigo/form-data)
-
-[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/v2.3.3.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master)
-[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data)
-[![bitHound Overall Score](https://www.bithound.io/github/form-data/form-data/badges/score.svg)](https://www.bithound.io/github/form-data/form-data)
-
-## Install
-
-```
-npm install --save form-data
-```
-
-## Usage
-
-In this example we are constructing a form with 3 fields that contain a string,
-a buffer and a file stream.
-
-``` javascript
-var FormData = require('form-data');
-var fs = require('fs');
-
-var form = new FormData();
-form.append('my_field', 'my value');
-form.append('my_buffer', new Buffer(10));
-form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
-```
-
-Also you can use http-response stream:
-
-``` javascript
-var FormData = require('form-data');
-var http = require('http');
-
-var form = new FormData();
-
-http.request('http://nodejs.org/images/logo.png', function(response) {
- form.append('my_field', 'my value');
- form.append('my_buffer', new Buffer(10));
- form.append('my_logo', response);
-});
-```
-
-Or @mikeal's [request](https://github.com/request/request) stream:
-
-``` javascript
-var FormData = require('form-data');
-var request = require('request');
-
-var form = new FormData();
-
-form.append('my_field', 'my value');
-form.append('my_buffer', new Buffer(10));
-form.append('my_logo', request('http://nodejs.org/images/logo.png'));
-```
-
-In order to submit this form to a web application, call ```submit(url, [callback])``` method:
-
-``` javascript
-form.submit('http://example.org/', function(err, res) {
- // res – response object (http.IncomingMessage) //
- res.resume();
-});
-
-```
-
-For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods.
-
-### Custom options
-
-You can provide custom options, such as `maxDataSize`:
-
-``` javascript
-var FormData = require('form-data');
-
-var form = new FormData({ maxDataSize: 20971520 });
-form.append('my_field', 'my value');
-form.append('my_buffer', /* something big */);
-```
-
-List of available options could be found in [combined-stream](https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L7-L15)
-
-### Alternative submission methods
-
-You can use node's http client interface:
-
-``` javascript
-var http = require('http');
-
-var request = http.request({
- method: 'post',
- host: 'example.org',
- path: '/upload',
- headers: form.getHeaders()
-});
-
-form.pipe(request);
-
-request.on('response', function(res) {
- console.log(res.statusCode);
-});
-```
-
-Or if you would prefer the `'Content-Length'` header to be set for you:
-
-``` javascript
-form.submit('example.org/upload', function(err, res) {
- console.log(res.statusCode);
-});
-```
-
-To use custom headers and pre-known length in parts:
-
-``` javascript
-var CRLF = '\r\n';
-var form = new FormData();
-
-var options = {
- header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF,
- knownLength: 1
-};
-
-form.append('my_buffer', buffer, options);
-
-form.submit('http://example.com/', function(err, res) {
- if (err) throw err;
- console.log('Done');
-});
-```
-
-Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually:
-
-``` javascript
-someModule.stream(function(err, stdout, stderr) {
- if (err) throw err;
-
- var form = new FormData();
-
- form.append('file', stdout, {
- filename: 'unicycle.jpg', // ... or:
- filepath: 'photos/toys/unicycle.jpg',
- contentType: 'image/jpeg',
- knownLength: 19806
- });
-
- form.submit('http://example.com/', function(err, res) {
- if (err) throw err;
- console.log('Done');
- });
-});
-```
-
-The `filepath` property overrides `filename` and may contain a relative path. This is typically used when uploading [multiple files from a directory](https://wicg.github.io/entries-api/#dom-htmlinputelement-webkitdirectory).
-
-For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter:
-
-``` javascript
-form.submit({
- host: 'example.com',
- path: '/probably.php?extra=params',
- auth: 'username:password'
-}, function(err, res) {
- console.log(res.statusCode);
-});
-```
-
-In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`:
-
-``` javascript
-form.submit({
- host: 'example.com',
- path: '/surelynot.php',
- headers: {'x-test-header': 'test-header-value'}
-}, function(err, res) {
- console.log(res.statusCode);
-});
-```
-
-### Integration with other libraries
-
-#### Request
-
-Form submission using [request](https://github.com/request/request):
-
-```javascript
-var formData = {
- my_field: 'my_value',
- my_file: fs.createReadStream(__dirname + '/unicycle.jpg'),
-};
-
-request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) {
- if (err) {
- return console.error('upload failed:', err);
- }
- console.log('Upload successful! Server responded with:', body);
-});
-```
-
-For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads).
-
-#### node-fetch
-
-You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch):
-
-```javascript
-var form = new FormData();
-
-form.append('a', 1);
-
-fetch('http://example.com', { method: 'POST', body: form })
- .then(function(res) {
- return res.json();
- }).then(function(json) {
- console.log(json);
- });
-```
-
-## Notes
-
-- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround.
-- Starting version `2.x` FormData has dropped support for `node@0.10.x`.
-
-## License
-
-Form-Data is released under the [MIT](License) license.
diff --git a/node_modules/form-data/README.md.bak b/node_modules/form-data/README.md.bak
deleted file mode 100644
index 0524d60..0000000
--- a/node_modules/form-data/README.md.bak
+++ /dev/null
@@ -1,234 +0,0 @@
-# Form-Data [![NPM Module](https://img.shields.io/npm/v/form-data.svg)](https://www.npmjs.com/package/form-data) [![Join the chat at https://gitter.im/form-data/form-data](http://form-data.github.io/images/gitterbadge.svg)](https://gitter.im/form-data/form-data)
-
-A library to create readable ```"multipart/form-data"``` streams. Can be used to submit forms and file uploads to other web applications.
-
-The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface][xhr2-fd].
-
-[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
-
-[![Linux Build](https://img.shields.io/travis/form-data/form-data/master.svg?label=linux:4.x-9.x)](https://travis-ci.org/form-data/form-data)
-[![MacOS Build](https://img.shields.io/travis/form-data/form-data/master.svg?label=macos:4.x-9.x)](https://travis-ci.org/form-data/form-data)
-[![Windows Build](https://img.shields.io/appveyor/ci/alexindigo/form-data/master.svg?label=windows:4.x-9.x)](https://ci.appveyor.com/project/alexindigo/form-data)
-
-[![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/master.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master)
-[![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data)
-[![bitHound Overall Score](https://www.bithound.io/github/form-data/form-data/badges/score.svg)](https://www.bithound.io/github/form-data/form-data)
-
-## Install
-
-```
-npm install --save form-data
-```
-
-## Usage
-
-In this example we are constructing a form with 3 fields that contain a string,
-a buffer and a file stream.
-
-``` javascript
-var FormData = require('form-data');
-var fs = require('fs');
-
-var form = new FormData();
-form.append('my_field', 'my value');
-form.append('my_buffer', new Buffer(10));
-form.append('my_file', fs.createReadStream('/foo/bar.jpg'));
-```
-
-Also you can use http-response stream:
-
-``` javascript
-var FormData = require('form-data');
-var http = require('http');
-
-var form = new FormData();
-
-http.request('http://nodejs.org/images/logo.png', function(response) {
- form.append('my_field', 'my value');
- form.append('my_buffer', new Buffer(10));
- form.append('my_logo', response);
-});
-```
-
-Or @mikeal's [request](https://github.com/request/request) stream:
-
-``` javascript
-var FormData = require('form-data');
-var request = require('request');
-
-var form = new FormData();
-
-form.append('my_field', 'my value');
-form.append('my_buffer', new Buffer(10));
-form.append('my_logo', request('http://nodejs.org/images/logo.png'));
-```
-
-In order to submit this form to a web application, call ```submit(url, [callback])``` method:
-
-``` javascript
-form.submit('http://example.org/', function(err, res) {
- // res – response object (http.IncomingMessage) //
- res.resume();
-});
-
-```
-
-For more advanced request manipulations ```submit()``` method returns ```http.ClientRequest``` object, or you can choose from one of the alternative submission methods.
-
-### Custom options
-
-You can provide custom options, such as `maxDataSize`:
-
-``` javascript
-var FormData = require('form-data');
-
-var form = new FormData({ maxDataSize: 20971520 });
-form.append('my_field', 'my value');
-form.append('my_buffer', /* something big */);
-```
-
-List of available options could be found in [combined-stream](https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L7-L15)
-
-### Alternative submission methods
-
-You can use node's http client interface:
-
-``` javascript
-var http = require('http');
-
-var request = http.request({
- method: 'post',
- host: 'example.org',
- path: '/upload',
- headers: form.getHeaders()
-});
-
-form.pipe(request);
-
-request.on('response', function(res) {
- console.log(res.statusCode);
-});
-```
-
-Or if you would prefer the `'Content-Length'` header to be set for you:
-
-``` javascript
-form.submit('example.org/upload', function(err, res) {
- console.log(res.statusCode);
-});
-```
-
-To use custom headers and pre-known length in parts:
-
-``` javascript
-var CRLF = '\r\n';
-var form = new FormData();
-
-var options = {
- header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF,
- knownLength: 1
-};
-
-form.append('my_buffer', buffer, options);
-
-form.submit('http://example.com/', function(err, res) {
- if (err) throw err;
- console.log('Done');
-});
-```
-
-Form-Data can recognize and fetch all the required information from common types of streams (```fs.readStream```, ```http.response``` and ```mikeal's request```), for some other types of streams you'd need to provide "file"-related information manually:
-
-``` javascript
-someModule.stream(function(err, stdout, stderr) {
- if (err) throw err;
-
- var form = new FormData();
-
- form.append('file', stdout, {
- filename: 'unicycle.jpg', // ... or:
- filepath: 'photos/toys/unicycle.jpg',
- contentType: 'image/jpeg',
- knownLength: 19806
- });
-
- form.submit('http://example.com/', function(err, res) {
- if (err) throw err;
- console.log('Done');
- });
-});
-```
-
-The `filepath` property overrides `filename` and may contain a relative path. This is typically used when uploading [multiple files from a directory](https://wicg.github.io/entries-api/#dom-htmlinputelement-webkitdirectory).
-
-For edge cases, like POST request to URL with query string or to pass HTTP auth credentials, object can be passed to `form.submit()` as first parameter:
-
-``` javascript
-form.submit({
- host: 'example.com',
- path: '/probably.php?extra=params',
- auth: 'username:password'
-}, function(err, res) {
- console.log(res.statusCode);
-});
-```
-
-In case you need to also send custom HTTP headers with the POST request, you can use the `headers` key in first parameter of `form.submit()`:
-
-``` javascript
-form.submit({
- host: 'example.com',
- path: '/surelynot.php',
- headers: {'x-test-header': 'test-header-value'}
-}, function(err, res) {
- console.log(res.statusCode);
-});
-```
-
-### Integration with other libraries
-
-#### Request
-
-Form submission using [request](https://github.com/request/request):
-
-```javascript
-var formData = {
- my_field: 'my_value',
- my_file: fs.createReadStream(__dirname + '/unicycle.jpg'),
-};
-
-request.post({url:'http://service.com/upload', formData: formData}, function(err, httpResponse, body) {
- if (err) {
- return console.error('upload failed:', err);
- }
- console.log('Upload successful! Server responded with:', body);
-});
-```
-
-For more details see [request readme](https://github.com/request/request#multipartform-data-multipart-form-uploads).
-
-#### node-fetch
-
-You can also submit a form using [node-fetch](https://github.com/bitinn/node-fetch):
-
-```javascript
-var form = new FormData();
-
-form.append('a', 1);
-
-fetch('http://example.com', { method: 'POST', body: form })
- .then(function(res) {
- return res.json();
- }).then(function(json) {
- console.log(json);
- });
-```
-
-## Notes
-
-- ```getLengthSync()``` method DOESN'T calculate length for streams, use ```knownLength``` options as workaround.
-- Starting version `2.x` FormData has dropped support for `node@0.10.x`.
-
-## License
-
-Form-Data is released under the [MIT](License) license.
diff --git a/node_modules/form-data/lib/browser.js b/node_modules/form-data/lib/browser.js
deleted file mode 100644
index 09e7c70..0000000
--- a/node_modules/form-data/lib/browser.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/* eslint-env browser */
-module.exports = typeof self == 'object' ? self.FormData : window.FormData;
diff --git a/node_modules/form-data/lib/form_data.js b/node_modules/form-data/lib/form_data.js
deleted file mode 100644
index 3a1bb82..0000000
--- a/node_modules/form-data/lib/form_data.js
+++ /dev/null
@@ -1,457 +0,0 @@
-var CombinedStream = require('combined-stream');
-var util = require('util');
-var path = require('path');
-var http = require('http');
-var https = require('https');
-var parseUrl = require('url').parse;
-var fs = require('fs');
-var mime = require('mime-types');
-var asynckit = require('asynckit');
-var populate = require('./populate.js');
-
-// Public API
-module.exports = FormData;
-
-// make it a Stream
-util.inherits(FormData, CombinedStream);
-
-/**
- * Create readable "multipart/form-data" streams.
- * Can be used to submit forms
- * and file uploads to other web applications.
- *
- * @constructor
- * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream
- */
-function FormData(options) {
- if (!(this instanceof FormData)) {
- return new FormData();
- }
-
- this._overheadLength = 0;
- this._valueLength = 0;
- this._valuesToMeasure = [];
-
- CombinedStream.call(this);
-
- options = options || {};
- for (var option in options) {
- this[option] = options[option];
- }
-}
-
-FormData.LINE_BREAK = '\r\n';
-FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
-
-FormData.prototype.append = function(field, value, options) {
-
- options = options || {};
-
- // allow filename as single option
- if (typeof options == 'string') {
- options = {filename: options};
- }
-
- var append = CombinedStream.prototype.append.bind(this);
-
- // all that streamy business can't handle numbers
- if (typeof value == 'number') {
- value = '' + value;
- }
-
- // https://github.com/felixge/node-form-data/issues/38
- if (util.isArray(value)) {
- // Please convert your array into string
- // the way web server expects it
- this._error(new Error('Arrays are not supported.'));
- return;
- }
-
- var header = this._multiPartHeader(field, value, options);
- var footer = this._multiPartFooter();
-
- append(header);
- append(value);
- append(footer);
-
- // pass along options.knownLength
- this._trackLength(header, value, options);
-};
-
-FormData.prototype._trackLength = function(header, value, options) {
- var valueLength = 0;
-
- // used w/ getLengthSync(), when length is known.
- // e.g. for streaming directly from a remote server,
- // w/ a known file a size, and not wanting to wait for
- // incoming file to finish to get its size.
- if (options.knownLength != null) {
- valueLength += +options.knownLength;
- } else if (Buffer.isBuffer(value)) {
- valueLength = value.length;
- } else if (typeof value === 'string') {
- valueLength = Buffer.byteLength(value);
- }
-
- this._valueLength += valueLength;
-
- // @check why add CRLF? does this account for custom/multiple CRLFs?
- this._overheadLength +=
- Buffer.byteLength(header) +
- FormData.LINE_BREAK.length;
-
- // empty or either doesn't have path or not an http response
- if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) )) {
- return;
- }
-
- // no need to bother with the length
- if (!options.knownLength) {
- this._valuesToMeasure.push(value);
- }
-};
-
-FormData.prototype._lengthRetriever = function(value, callback) {
-
- if (value.hasOwnProperty('fd')) {
-
- // take read range into a account
- // `end` = Infinity –> read file till the end
- //
- // TODO: Looks like there is bug in Node fs.createReadStream
- // it doesn't respect `end` options without `start` options
- // Fix it when node fixes it.
- // https://github.com/joyent/node/issues/7819
- if (value.end != undefined && value.end != Infinity && value.start != undefined) {
-
- // when end specified
- // no need to calculate range
- // inclusive, starts with 0
- callback(null, value.end + 1 - (value.start ? value.start : 0));
-
- // not that fast snoopy
- } else {
- // still need to fetch file size from fs
- fs.stat(value.path, function(err, stat) {
-
- var fileSize;
-
- if (err) {
- callback(err);
- return;
- }
-
- // update final size based on the range options
- fileSize = stat.size - (value.start ? value.start : 0);
- callback(null, fileSize);
- });
- }
-
- // or http response
- } else if (value.hasOwnProperty('httpVersion')) {
- callback(null, +value.headers['content-length']);
-
- // or request stream http://github.com/mikeal/request
- } else if (value.hasOwnProperty('httpModule')) {
- // wait till response come back
- value.on('response', function(response) {
- value.pause();
- callback(null, +response.headers['content-length']);
- });
- value.resume();
-
- // something else
- } else {
- callback('Unknown stream');
- }
-};
-
-FormData.prototype._multiPartHeader = function(field, value, options) {
- // custom header specified (as string)?
- // it becomes responsible for boundary
- // (e.g. to handle extra CRLFs on .NET servers)
- if (typeof options.header == 'string') {
- return options.header;
- }
-
- var contentDisposition = this._getContentDisposition(value, options);
- var contentType = this._getContentType(value, options);
-
- var contents = '';
- var headers = {
- // add custom disposition as third element or keep it two elements if not
- 'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
- // if no content type. allow it to be empty array
- 'Content-Type': [].concat(contentType || [])
- };
-
- // allow custom headers.
- if (typeof options.header == 'object') {
- populate(headers, options.header);
- }
-
- var header;
- for (var prop in headers) {
- if (!headers.hasOwnProperty(prop)) continue;
- header = headers[prop];
-
- // skip nullish headers.
- if (header == null) {
- continue;
- }
-
- // convert all headers to arrays.
- if (!Array.isArray(header)) {
- header = [header];
- }
-
- // add non-empty headers.
- if (header.length) {
- contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
- }
- }
-
- return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
-};
-
-FormData.prototype._getContentDisposition = function(value, options) {
-
- var filename
- , contentDisposition
- ;
-
- if (typeof options.filepath === 'string') {
- // custom filepath for relative paths
- filename = path.normalize(options.filepath).replace(/\\/g, '/');
- } else if (options.filename || value.name || value.path) {
- // custom filename take precedence
- // formidable and the browser add a name property
- // fs- and request- streams have path property
- filename = path.basename(options.filename || value.name || value.path);
- } else if (value.readable && value.hasOwnProperty('httpVersion')) {
- // or try http response
- filename = path.basename(value.client._httpMessage.path);
- }
-
- if (filename) {
- contentDisposition = 'filename="' + filename + '"';
- }
-
- return contentDisposition;
-};
-
-FormData.prototype._getContentType = function(value, options) {
-
- // use custom content-type above all
- var contentType = options.contentType;
-
- // or try `name` from formidable, browser
- if (!contentType && value.name) {
- contentType = mime.lookup(value.name);
- }
-
- // or try `path` from fs-, request- streams
- if (!contentType && value.path) {
- contentType = mime.lookup(value.path);
- }
-
- // or if it's http-reponse
- if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {
- contentType = value.headers['content-type'];
- }
-
- // or guess it from the filepath or filename
- if (!contentType && (options.filepath || options.filename)) {
- contentType = mime.lookup(options.filepath || options.filename);
- }
-
- // fallback to the default content type if `value` is not simple value
- if (!contentType && typeof value == 'object') {
- contentType = FormData.DEFAULT_CONTENT_TYPE;
- }
-
- return contentType;
-};
-
-FormData.prototype._multiPartFooter = function() {
- return function(next) {
- var footer = FormData.LINE_BREAK;
-
- var lastPart = (this._streams.length === 0);
- if (lastPart) {
- footer += this._lastBoundary();
- }
-
- next(footer);
- }.bind(this);
-};
-
-FormData.prototype._lastBoundary = function() {
- return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
-};
-
-FormData.prototype.getHeaders = function(userHeaders) {
- var header;
- var formHeaders = {
- 'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
- };
-
- for (header in userHeaders) {
- if (userHeaders.hasOwnProperty(header)) {
- formHeaders[header.toLowerCase()] = userHeaders[header];
- }
- }
-
- return formHeaders;
-};
-
-FormData.prototype.getBoundary = function() {
- if (!this._boundary) {
- this._generateBoundary();
- }
-
- return this._boundary;
-};
-
-FormData.prototype._generateBoundary = function() {
- // This generates a 50 character boundary similar to those used by Firefox.
- // They are optimized for boyer-moore parsing.
- var boundary = '--------------------------';
- for (var i = 0; i < 24; i++) {
- boundary += Math.floor(Math.random() * 10).toString(16);
- }
-
- this._boundary = boundary;
-};
-
-// Note: getLengthSync DOESN'T calculate streams length
-// As workaround one can calculate file size manually
-// and add it as knownLength option
-FormData.prototype.getLengthSync = function() {
- var knownLength = this._overheadLength + this._valueLength;
-
- // Don't get confused, there are 3 "internal" streams for each keyval pair
- // so it basically checks if there is any value added to the form
- if (this._streams.length) {
- knownLength += this._lastBoundary().length;
- }
-
- // https://github.com/form-data/form-data/issues/40
- if (!this.hasKnownLength()) {
- // Some async length retrievers are present
- // therefore synchronous length calculation is false.
- // Please use getLength(callback) to get proper length
- this._error(new Error('Cannot calculate proper length in synchronous way.'));
- }
-
- return knownLength;
-};
-
-// Public API to check if length of added values is known
-// https://github.com/form-data/form-data/issues/196
-// https://github.com/form-data/form-data/issues/262
-FormData.prototype.hasKnownLength = function() {
- var hasKnownLength = true;
-
- if (this._valuesToMeasure.length) {
- hasKnownLength = false;
- }
-
- return hasKnownLength;
-};
-
-FormData.prototype.getLength = function(cb) {
- var knownLength = this._overheadLength + this._valueLength;
-
- if (this._streams.length) {
- knownLength += this._lastBoundary().length;
- }
-
- if (!this._valuesToMeasure.length) {
- process.nextTick(cb.bind(this, null, knownLength));
- return;
- }
-
- asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
- if (err) {
- cb(err);
- return;
- }
-
- values.forEach(function(length) {
- knownLength += length;
- });
-
- cb(null, knownLength);
- });
-};
-
-FormData.prototype.submit = function(params, cb) {
- var request
- , options
- , defaults = {method: 'post'}
- ;
-
- // parse provided url if it's string
- // or treat it as options object
- if (typeof params == 'string') {
-
- params = parseUrl(params);
- options = populate({
- port: params.port,
- path: params.pathname,
- host: params.hostname,
- protocol: params.protocol
- }, defaults);
-
- // use custom params
- } else {
-
- options = populate(params, defaults);
- // if no port provided use default one
- if (!options.port) {
- options.port = options.protocol == 'https:' ? 443 : 80;
- }
- }
-
- // put that good code in getHeaders to some use
- options.headers = this.getHeaders(params.headers);
-
- // https if specified, fallback to http in any other case
- if (options.protocol == 'https:') {
- request = https.request(options);
- } else {
- request = http.request(options);
- }
-
- // get content length and fire away
- this.getLength(function(err, length) {
- if (err) {
- this._error(err);
- return;
- }
-
- // add content length
- request.setHeader('Content-Length', length);
-
- this.pipe(request);
- if (cb) {
- request.on('error', cb);
- request.on('response', cb.bind(this, null));
- }
- }.bind(this));
-
- return request;
-};
-
-FormData.prototype._error = function(err) {
- if (!this.error) {
- this.error = err;
- this.pause();
- this.emit('error', err);
- }
-};
-
-FormData.prototype.toString = function () {
- return '[object FormData]';
-};
diff --git a/node_modules/form-data/lib/populate.js b/node_modules/form-data/lib/populate.js
deleted file mode 100644
index 4d35738..0000000
--- a/node_modules/form-data/lib/populate.js
+++ /dev/null
@@ -1,10 +0,0 @@
-// populates missing values
-module.exports = function(dst, src) {
-
- Object.keys(src).forEach(function(prop)
- {
- dst[prop] = dst[prop] || src[prop];
- });
-
- return dst;
-};
diff --git a/node_modules/form-data/package.json b/node_modules/form-data/package.json
deleted file mode 100644
index b0fb30e..0000000
--- a/node_modules/form-data/package.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "_from": "form-data@~2.3.2",
- "_id": "form-data@2.3.3",
- "_inBundle": false,
- "_integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
- "_location": "/form-data",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "form-data@~2.3.2",
- "name": "form-data",
- "escapedName": "form-data",
- "rawSpec": "~2.3.2",
- "saveSpec": null,
- "fetchSpec": "~2.3.2"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
- "_shasum": "dcce52c05f644f298c6a7ab936bd724ceffbf3a6",
- "_spec": "form-data@~2.3.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Felix Geisendörfer",
- "email": "felix@debuggable.com",
- "url": "http://debuggable.com/"
- },
- "browser": "./lib/browser",
- "bugs": {
- "url": "https://github.com/form-data/form-data/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.6",
- "mime-types": "^2.1.12"
- },
- "deprecated": false,
- "description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
- "devDependencies": {
- "browserify": "^13.1.1",
- "browserify-istanbul": "^2.0.0",
- "coveralls": "^2.11.14",
- "cross-spawn": "^4.0.2",
- "eslint": "^3.9.1",
- "fake": "^0.2.2",
- "far": "^0.0.7",
- "formidable": "^1.0.17",
- "in-publish": "^2.0.0",
- "is-node-modern": "^1.0.0",
- "istanbul": "^0.4.5",
- "obake": "^0.1.2",
- "phantomjs-prebuilt": "^2.1.13",
- "pkgfiles": "^2.3.0",
- "pre-commit": "^1.1.3",
- "request": "2.76.0",
- "rimraf": "^2.5.4",
- "tape": "^4.6.2"
- },
- "engines": {
- "node": ">= 0.12"
- },
- "homepage": "https://github.com/form-data/form-data#readme",
- "license": "MIT",
- "main": "./lib/form_data",
- "name": "form-data",
- "pre-commit": [
- "lint",
- "ci-test",
- "check"
- ],
- "repository": {
- "type": "git",
- "url": "git://github.com/form-data/form-data.git"
- },
- "scripts": {
- "browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage",
- "check": "istanbul check-coverage coverage/coverage*.json",
- "ci-lint": "is-node-modern 6 && npm run lint || is-node-not-modern 6",
- "ci-test": "npm run test && npm run browser && npm run report",
- "debug": "verbose=1 ./test/run.js",
- "files": "pkgfiles --sort=name",
- "get-version": "node -e \"console.log(require('./package.json').version)\"",
- "lint": "eslint lib/*.js test/*.js test/integration/*.js",
- "postpublish": "npm run restore-readme",
- "posttest": "istanbul report lcov text",
- "predebug": "rimraf coverage test/tmp",
- "prepublish": "in-publish && npm run update-readme || not-in-publish",
- "pretest": "rimraf coverage test/tmp",
- "report": "istanbul report lcov text",
- "restore-readme": "mv README.md.bak README.md",
- "test": "istanbul cover test/run.js",
- "update-readme": "sed -i.bak 's/\\/master\\.svg/\\/v'$(npm --silent run get-version)'.svg/g' README.md"
- },
- "version": "2.3.3"
-}
diff --git a/node_modules/form-data/yarn.lock b/node_modules/form-data/yarn.lock
deleted file mode 100644
index ab55059..0000000
--- a/node_modules/form-data/yarn.lock
+++ /dev/null
@@ -1,2662 +0,0 @@
-# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
-# yarn lockfile v1
-
-
-JSONStream@^1.0.3:
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.2.tgz#c102371b6ec3a7cf3b847ca00c20bb0fce4c6dea"
- dependencies:
- jsonparse "^1.2.0"
- through ">=2.2.7 <3"
-
-abbrev@1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
-
-abbrev@1.0.x:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.0.9.tgz#91b4792588a7738c25f35dd6f63752a2f8776135"
-
-acorn-jsx@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b"
- dependencies:
- acorn "^3.0.4"
-
-acorn-node@^1.2.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/acorn-node/-/acorn-node-1.3.0.tgz#5f86d73346743810ef1269b901dbcbded020861b"
- dependencies:
- acorn "^5.4.1"
- xtend "^4.0.1"
-
-acorn@^3.0.4:
- version "3.3.0"
- resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a"
-
-acorn@^4.0.3:
- version "4.0.13"
- resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787"
-
-acorn@^5.2.1, acorn@^5.4.0, acorn@^5.4.1:
- version "5.4.1"
- resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102"
-
-ajv-keywords@^1.0.0:
- version "1.5.1"
- resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c"
-
-ajv@^4.7.0:
- version "4.11.8"
- resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536"
- dependencies:
- co "^4.6.0"
- json-stable-stringify "^1.0.1"
-
-ajv@^5.1.0:
- version "5.5.2"
- resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965"
- dependencies:
- co "^4.6.0"
- fast-deep-equal "^1.0.0"
- fast-json-stable-stringify "^2.0.0"
- json-schema-traverse "^0.3.0"
-
-align-text@^0.1.1, align-text@^0.1.3:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
- dependencies:
- kind-of "^3.0.2"
- longest "^1.0.1"
- repeat-string "^1.5.2"
-
-amdefine@>=0.0.4:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
-
-ansi-escapes@^1.1.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e"
-
-ansi-regex@^2.0.0:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
-
-ansi-regex@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
-
-ansi-styles@^2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
-
-argparse@^1.0.7:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86"
- dependencies:
- sprintf-js "~1.0.2"
-
-array-filter@~0.0.0:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec"
-
-array-map@~0.0.0:
- version "0.0.0"
- resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662"
-
-array-reduce@~0.0.0:
- version "0.0.0"
- resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b"
-
-array-union@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39"
- dependencies:
- array-uniq "^1.0.1"
-
-array-uniq@^1.0.1:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
-
-arrify@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
-
-asn1.js@^4.0.0:
- version "4.9.2"
- resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.9.2.tgz#8117ef4f7ed87cd8f89044b5bff97ac243a16c9a"
- dependencies:
- bn.js "^4.0.0"
- inherits "^2.0.1"
- minimalistic-assert "^1.0.0"
-
-asn1@~0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
-
-assert-plus@1.0.0, assert-plus@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
-
-assert-plus@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
-
-assert@^1.4.0:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/assert/-/assert-1.4.1.tgz#99912d591836b5a6f5b345c0f07eefc08fc65d91"
- dependencies:
- util "0.10.3"
-
-astw@^2.0.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/astw/-/astw-2.2.0.tgz#7bd41784d32493987aeb239b6b4e1c57a873b917"
- dependencies:
- acorn "^4.0.3"
-
-async@1.x, async@^1.4.0:
- version "1.5.2"
- resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
-
-async@~0.1.22:
- version "0.1.22"
- resolved "https://registry.yarnpkg.com/async/-/async-0.1.22.tgz#0fc1aaa088a0e3ef0ebe2d8831bab0dcf8845061"
-
-asynckit@^0.4.0:
- version "0.4.0"
- resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
-
-aws-sign2@~0.6.0:
- version "0.6.0"
- resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f"
-
-aws-sign2@~0.7.0:
- version "0.7.0"
- resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8"
-
-aws4@^1.2.1, aws4@^1.6.0:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"
-
-babel-code-frame@^6.16.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
- dependencies:
- chalk "^1.1.3"
- esutils "^2.0.2"
- js-tokens "^3.0.2"
-
-balanced-match@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
-
-base64-js@^1.0.2:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.1.tgz#a91947da1f4a516ea38e5b4ec0ec3773675e0886"
-
-bcrypt-pbkdf@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d"
- dependencies:
- tweetnacl "^0.14.3"
-
-bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0:
- version "4.11.8"
- resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f"
-
-boom@2.x.x:
- version "2.10.1"
- resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f"
- dependencies:
- hoek "2.x.x"
-
-boom@4.x.x:
- version "4.3.1"
- resolved "https://registry.yarnpkg.com/boom/-/boom-4.3.1.tgz#4f8a3005cb4a7e3889f749030fd25b96e01d2e31"
- dependencies:
- hoek "4.x.x"
-
-boom@5.x.x:
- version "5.2.0"
- resolved "https://registry.yarnpkg.com/boom/-/boom-5.2.0.tgz#5dd9da6ee3a5f302077436290cb717d3f4a54e02"
- dependencies:
- hoek "4.x.x"
-
-brace-expansion@^1.1.7:
- version "1.1.11"
- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
- dependencies:
- balanced-match "^1.0.0"
- concat-map "0.0.1"
-
-brorand@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
-
-browser-pack@^6.0.1:
- version "6.0.4"
- resolved "https://registry.yarnpkg.com/browser-pack/-/browser-pack-6.0.4.tgz#9a73beb3b48f9e36868be007b64400102c04a99f"
- dependencies:
- JSONStream "^1.0.3"
- combine-source-map "~0.8.0"
- defined "^1.0.0"
- safe-buffer "^5.1.1"
- through2 "^2.0.0"
- umd "^3.0.0"
-
-browser-resolve@^1.11.0, browser-resolve@^1.7.0:
- version "1.11.2"
- resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce"
- dependencies:
- resolve "1.1.7"
-
-browserify-aes@^1.0.0, browserify-aes@^1.0.4:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.1.1.tgz#38b7ab55edb806ff2dcda1a7f1620773a477c49f"
- dependencies:
- buffer-xor "^1.0.3"
- cipher-base "^1.0.0"
- create-hash "^1.1.0"
- evp_bytestokey "^1.0.3"
- inherits "^2.0.1"
- safe-buffer "^5.0.1"
-
-browserify-cipher@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.0.tgz#9988244874bf5ed4e28da95666dcd66ac8fc363a"
- dependencies:
- browserify-aes "^1.0.4"
- browserify-des "^1.0.0"
- evp_bytestokey "^1.0.0"
-
-browserify-des@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.0.tgz#daa277717470922ed2fe18594118a175439721dd"
- dependencies:
- cipher-base "^1.0.1"
- des.js "^1.0.0"
- inherits "^2.0.1"
-
-browserify-istanbul@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/browserify-istanbul/-/browserify-istanbul-2.0.0.tgz#85a4b425da1f7c09e02ba32a3b44f6535d38c257"
- dependencies:
- minimatch "^3.0.0"
- through "^2.3.8"
-
-browserify-rsa@^4.0.0:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524"
- dependencies:
- bn.js "^4.1.0"
- randombytes "^2.0.1"
-
-browserify-sign@^4.0.0:
- version "4.0.4"
- resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298"
- dependencies:
- bn.js "^4.1.1"
- browserify-rsa "^4.0.0"
- create-hash "^1.1.0"
- create-hmac "^1.1.2"
- elliptic "^6.0.0"
- inherits "^2.0.1"
- parse-asn1 "^5.0.0"
-
-browserify-zlib@~0.1.2:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.1.4.tgz#bb35f8a519f600e0fa6b8485241c979d0141fb2d"
- dependencies:
- pako "~0.2.0"
-
-browserify@^13.1.1:
- version "13.3.0"
- resolved "https://registry.yarnpkg.com/browserify/-/browserify-13.3.0.tgz#b5a9c9020243f0c70e4675bec8223bc627e415ce"
- dependencies:
- JSONStream "^1.0.3"
- assert "^1.4.0"
- browser-pack "^6.0.1"
- browser-resolve "^1.11.0"
- browserify-zlib "~0.1.2"
- buffer "^4.1.0"
- cached-path-relative "^1.0.0"
- concat-stream "~1.5.1"
- console-browserify "^1.1.0"
- constants-browserify "~1.0.0"
- crypto-browserify "^3.0.0"
- defined "^1.0.0"
- deps-sort "^2.0.0"
- domain-browser "~1.1.0"
- duplexer2 "~0.1.2"
- events "~1.1.0"
- glob "^7.1.0"
- has "^1.0.0"
- htmlescape "^1.1.0"
- https-browserify "~0.0.0"
- inherits "~2.0.1"
- insert-module-globals "^7.0.0"
- labeled-stream-splicer "^2.0.0"
- module-deps "^4.0.8"
- os-browserify "~0.1.1"
- parents "^1.0.1"
- path-browserify "~0.0.0"
- process "~0.11.0"
- punycode "^1.3.2"
- querystring-es3 "~0.2.0"
- read-only-stream "^2.0.0"
- readable-stream "^2.0.2"
- resolve "^1.1.4"
- shasum "^1.0.0"
- shell-quote "^1.6.1"
- stream-browserify "^2.0.0"
- stream-http "^2.0.0"
- string_decoder "~0.10.0"
- subarg "^1.0.0"
- syntax-error "^1.1.1"
- through2 "^2.0.0"
- timers-browserify "^1.0.1"
- tty-browserify "~0.0.0"
- url "~0.11.0"
- util "~0.10.1"
- vm-browserify "~0.0.1"
- xtend "^4.0.0"
-
-buffer-xor@^1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9"
-
-buffer@^4.1.0:
- version "4.9.1"
- resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298"
- dependencies:
- base64-js "^1.0.2"
- ieee754 "^1.1.4"
- isarray "^1.0.0"
-
-builtin-status-codes@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
-
-cached-path-relative@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/cached-path-relative/-/cached-path-relative-1.0.1.tgz#d09c4b52800aa4c078e2dd81a869aac90d2e54e7"
-
-caller-path@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f"
- dependencies:
- callsites "^0.2.0"
-
-callsites@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca"
-
-camelcase@^1.0.2:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39"
-
-caseless@~0.11.0:
- version "0.11.0"
- resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"
-
-caseless@~0.12.0:
- version "0.12.0"
- resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
-
-center-align@^0.1.1:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad"
- dependencies:
- align-text "^0.1.3"
- lazy-cache "^1.0.3"
-
-chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
- dependencies:
- ansi-styles "^2.2.1"
- escape-string-regexp "^1.0.2"
- has-ansi "^2.0.0"
- strip-ansi "^3.0.0"
- supports-color "^2.0.0"
-
-cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de"
- dependencies:
- inherits "^2.0.1"
- safe-buffer "^5.0.1"
-
-circular-json@^0.3.1:
- version "0.3.3"
- resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66"
-
-cli-cursor@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"
- dependencies:
- restore-cursor "^1.0.1"
-
-cli-width@^2.0.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"
-
-cliui@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1"
- dependencies:
- center-align "^0.1.1"
- right-align "^0.1.1"
- wordwrap "0.0.2"
-
-clone@^1.0.2:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.3.tgz#298d7e2231660f40c003c2ed3140decf3f53085f"
-
-co@^4.6.0:
- version "4.6.0"
- resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
-
-code-point-at@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
-
-columnify@^1.5.4:
- version "1.5.4"
- resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb"
- dependencies:
- strip-ansi "^3.0.0"
- wcwidth "^1.0.0"
-
-combine-source-map@~0.7.1:
- version "0.7.2"
- resolved "https://registry.yarnpkg.com/combine-source-map/-/combine-source-map-0.7.2.tgz#0870312856b307a87cc4ac486f3a9a62aeccc09e"
- dependencies:
- convert-source-map "~1.1.0"
- inline-source-map "~0.6.0"
- lodash.memoize "~3.0.3"
- source-map "~0.5.3"
-
-combine-source-map@~0.8.0:
- version "0.8.0"
- resolved "https://registry.yarnpkg.com/combine-source-map/-/combine-source-map-0.8.0.tgz#a58d0df042c186fcf822a8e8015f5450d2d79a8b"
- dependencies:
- convert-source-map "~1.1.0"
- inline-source-map "~0.6.0"
- lodash.memoize "~3.0.3"
- source-map "~0.5.3"
-
-combined-stream@1.0.6:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818"
- dependencies:
- delayed-stream "~1.0.0"
-
-combined-stream@^1.0.5, combined-stream@~1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009"
- dependencies:
- delayed-stream "~1.0.0"
-
-commander@^2.9.0:
- version "2.14.1"
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.1.tgz#2235123e37af8ca3c65df45b026dbd357b01b9aa"
-
-concat-map@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
-
-concat-stream@1.6.0, concat-stream@^1.4.7, concat-stream@^1.4.8, concat-stream@^1.5.2:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7"
- dependencies:
- inherits "^2.0.3"
- readable-stream "^2.2.2"
- typedarray "^0.0.6"
-
-concat-stream@~1.5.0, concat-stream@~1.5.1:
- version "1.5.2"
- resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.5.2.tgz#708978624d856af41a5a741defdd261da752c266"
- dependencies:
- inherits "~2.0.1"
- readable-stream "~2.0.0"
- typedarray "~0.0.5"
-
-console-browserify@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10"
- dependencies:
- date-now "^0.1.4"
-
-constants-browserify@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75"
-
-convert-source-map@^1.0.0:
- version "1.5.1"
- resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5"
-
-convert-source-map@~1.1.0:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.1.3.tgz#4829c877e9fe49b3161f3bf3673888e204699860"
-
-core-util-is@1.0.2, core-util-is@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
-
-coveralls@^2.11.14:
- version "2.13.3"
- resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.3.tgz#9ad7c2ae527417f361e8b626483f48ee92dd2bc7"
- dependencies:
- js-yaml "3.6.1"
- lcov-parse "0.0.10"
- log-driver "1.2.5"
- minimist "1.2.0"
- request "2.79.0"
-
-create-ecdh@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d"
- dependencies:
- bn.js "^4.1.0"
- elliptic "^6.0.0"
-
-create-hash@^1.1.0, create-hash@^1.1.2:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.3.tgz#606042ac8b9262750f483caddab0f5819172d8fd"
- dependencies:
- cipher-base "^1.0.1"
- inherits "^2.0.1"
- ripemd160 "^2.0.0"
- sha.js "^2.4.0"
-
-create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
- version "1.1.6"
- resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.6.tgz#acb9e221a4e17bdb076e90657c42b93e3726cf06"
- dependencies:
- cipher-base "^1.0.3"
- create-hash "^1.1.0"
- inherits "^2.0.1"
- ripemd160 "^2.0.0"
- safe-buffer "^5.0.1"
- sha.js "^2.4.8"
-
-cross-spawn@^4.0.2:
- version "4.0.2"
- resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
- dependencies:
- lru-cache "^4.0.1"
- which "^1.2.9"
-
-cross-spawn@^5.0.1:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
- dependencies:
- lru-cache "^4.0.1"
- shebang-command "^1.2.0"
- which "^1.2.9"
-
-cryptiles@2.x.x:
- version "2.0.5"
- resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
- dependencies:
- boom "2.x.x"
-
-cryptiles@3.x.x:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-3.1.2.tgz#a89fbb220f5ce25ec56e8c4aa8a4fd7b5b0d29fe"
- dependencies:
- boom "5.x.x"
-
-crypto-browserify@^3.0.0:
- version "3.12.0"
- resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"
- dependencies:
- browserify-cipher "^1.0.0"
- browserify-sign "^4.0.0"
- create-ecdh "^4.0.0"
- create-hash "^1.1.0"
- create-hmac "^1.1.0"
- diffie-hellman "^5.0.0"
- inherits "^2.0.1"
- pbkdf2 "^3.0.3"
- public-encrypt "^4.0.0"
- randombytes "^2.0.0"
- randomfill "^1.0.3"
-
-d@1:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f"
- dependencies:
- es5-ext "^0.10.9"
-
-dashdash@^1.12.0:
- version "1.14.1"
- resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
- dependencies:
- assert-plus "^1.0.0"
-
-date-now@^0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
-
-debug@2.6.9, debug@^2.1.1:
- version "2.6.9"
- resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
- dependencies:
- ms "2.0.0"
-
-decamelize@^1.0.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
-
-deep-equal@~1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5"
-
-deep-is@~0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34"
-
-deeply@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/deeply/-/deeply-1.0.0.tgz#ed573160b5c91ff5138917bf701e5453b19f574b"
-
-defaults@^1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d"
- dependencies:
- clone "^1.0.2"
-
-define-properties@^1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
- dependencies:
- foreach "^2.0.5"
- object-keys "^1.0.8"
-
-defined@^1.0.0, defined@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693"
-
-del@^2.0.2:
- version "2.2.2"
- resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8"
- dependencies:
- globby "^5.0.0"
- is-path-cwd "^1.0.0"
- is-path-in-cwd "^1.0.0"
- object-assign "^4.0.1"
- pify "^2.0.0"
- pinkie-promise "^2.0.0"
- rimraf "^2.2.8"
-
-delayed-stream@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
-
-deps-sort@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/deps-sort/-/deps-sort-2.0.0.tgz#091724902e84658260eb910748cccd1af6e21fb5"
- dependencies:
- JSONStream "^1.0.3"
- shasum "^1.0.0"
- subarg "^1.0.0"
- through2 "^2.0.0"
-
-des.js@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc"
- dependencies:
- inherits "^2.0.1"
- minimalistic-assert "^1.0.0"
-
-detective@^4.0.0:
- version "4.7.1"
- resolved "https://registry.yarnpkg.com/detective/-/detective-4.7.1.tgz#0eca7314338442febb6d65da54c10bb1c82b246e"
- dependencies:
- acorn "^5.2.1"
- defined "^1.0.0"
-
-diffie-hellman@^5.0.0:
- version "5.0.2"
- resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.2.tgz#b5835739270cfe26acf632099fded2a07f209e5e"
- dependencies:
- bn.js "^4.1.0"
- miller-rabin "^4.0.0"
- randombytes "^2.0.0"
-
-doctrine@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
- dependencies:
- esutils "^2.0.2"
-
-domain-browser@~1.1.0:
- version "1.1.7"
- resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.1.7.tgz#867aa4b093faa05f1de08c06f4d7b21fdf8698bc"
-
-du@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/du/-/du-0.1.0.tgz#f26e340a09c7bc5b6fd69af6dbadea60fa8c6f4d"
- dependencies:
- async "~0.1.22"
-
-duplexer2@^0.1.2, duplexer2@~0.1.0, duplexer2@~0.1.2:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1"
- dependencies:
- readable-stream "^2.0.2"
-
-ecc-jsbn@~0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505"
- dependencies:
- jsbn "~0.1.0"
-
-elliptic@^6.0.0:
- version "6.4.0"
- resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.4.0.tgz#cac9af8762c85836187003c8dfe193e5e2eae5df"
- dependencies:
- bn.js "^4.4.0"
- brorand "^1.0.1"
- hash.js "^1.0.0"
- hmac-drbg "^1.0.0"
- inherits "^2.0.1"
- minimalistic-assert "^1.0.0"
- minimalistic-crypto-utils "^1.0.0"
-
-envar@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/envar/-/envar-2.0.0.tgz#44f7cdafbf976b732b73ad1acb2e8808ecf8876e"
- dependencies:
- deeply "^1.0.0"
- minimist "^1.2.0"
-
-es-abstract@^1.5.0:
- version "1.10.0"
- resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.10.0.tgz#1ecb36c197842a00d8ee4c2dfd8646bb97d60864"
- dependencies:
- es-to-primitive "^1.1.1"
- function-bind "^1.1.1"
- has "^1.0.1"
- is-callable "^1.1.3"
- is-regex "^1.0.4"
-
-es-to-primitive@^1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.1.1.tgz#45355248a88979034b6792e19bb81f2b7975dd0d"
- dependencies:
- is-callable "^1.1.1"
- is-date-object "^1.0.1"
- is-symbol "^1.0.1"
-
-es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14:
- version "0.10.38"
- resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.38.tgz#fa7d40d65bbc9bb8a67e1d3f9cc656a00530eed3"
- dependencies:
- es6-iterator "~2.0.3"
- es6-symbol "~3.1.1"
-
-es6-iterator@^2.0.1, es6-iterator@~2.0.1, es6-iterator@~2.0.3:
- version "2.0.3"
- resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7"
- dependencies:
- d "1"
- es5-ext "^0.10.35"
- es6-symbol "^3.1.1"
-
-es6-map@^0.1.3:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0"
- dependencies:
- d "1"
- es5-ext "~0.10.14"
- es6-iterator "~2.0.1"
- es6-set "~0.1.5"
- es6-symbol "~3.1.1"
- event-emitter "~0.3.5"
-
-es6-promise@^4.0.3:
- version "4.2.4"
- resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.4.tgz#dc4221c2b16518760bd8c39a52d8f356fc00ed29"
-
-es6-set@~0.1.5:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1"
- dependencies:
- d "1"
- es5-ext "~0.10.14"
- es6-iterator "~2.0.1"
- es6-symbol "3.1.1"
- event-emitter "~0.3.5"
-
-es6-symbol@3.1.1, es6-symbol@^3.1.1, es6-symbol@~3.1.1:
- version "3.1.1"
- resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
- dependencies:
- d "1"
- es5-ext "~0.10.14"
-
-es6-weak-map@^2.0.1:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f"
- dependencies:
- d "1"
- es5-ext "^0.10.14"
- es6-iterator "^2.0.1"
- es6-symbol "^3.1.1"
-
-escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
-
-escodegen@1.8.x:
- version "1.8.1"
- resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018"
- dependencies:
- esprima "^2.7.1"
- estraverse "^1.9.1"
- esutils "^2.0.2"
- optionator "^0.8.1"
- optionalDependencies:
- source-map "~0.2.0"
-
-escope@^3.6.0:
- version "3.6.0"
- resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3"
- dependencies:
- es6-map "^0.1.3"
- es6-weak-map "^2.0.1"
- esrecurse "^4.1.0"
- estraverse "^4.1.1"
-
-eslint@^3.9.1:
- version "3.19.0"
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc"
- dependencies:
- babel-code-frame "^6.16.0"
- chalk "^1.1.3"
- concat-stream "^1.5.2"
- debug "^2.1.1"
- doctrine "^2.0.0"
- escope "^3.6.0"
- espree "^3.4.0"
- esquery "^1.0.0"
- estraverse "^4.2.0"
- esutils "^2.0.2"
- file-entry-cache "^2.0.0"
- glob "^7.0.3"
- globals "^9.14.0"
- ignore "^3.2.0"
- imurmurhash "^0.1.4"
- inquirer "^0.12.0"
- is-my-json-valid "^2.10.0"
- is-resolvable "^1.0.0"
- js-yaml "^3.5.1"
- json-stable-stringify "^1.0.0"
- levn "^0.3.0"
- lodash "^4.0.0"
- mkdirp "^0.5.0"
- natural-compare "^1.4.0"
- optionator "^0.8.2"
- path-is-inside "^1.0.1"
- pluralize "^1.2.1"
- progress "^1.1.8"
- require-uncached "^1.0.2"
- shelljs "^0.7.5"
- strip-bom "^3.0.0"
- strip-json-comments "~2.0.1"
- table "^3.7.8"
- text-table "~0.2.0"
- user-home "^2.0.0"
-
-espree@^3.4.0:
- version "3.5.3"
- resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.3.tgz#931e0af64e7fbbed26b050a29daad1fc64799fa6"
- dependencies:
- acorn "^5.4.0"
- acorn-jsx "^3.0.0"
-
-esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1:
- version "2.7.3"
- resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581"
-
-esprima@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804"
-
-esquery@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa"
- dependencies:
- estraverse "^4.0.0"
-
-esrecurse@^4.1.0:
- version "4.2.0"
- resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163"
- dependencies:
- estraverse "^4.1.0"
- object-assign "^4.0.1"
-
-estraverse@^1.9.1:
- version "1.9.3"
- resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44"
-
-estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0:
- version "4.2.0"
- resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
-
-esutils@^2.0.2:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
-
-event-emitter@~0.3.5:
- version "0.3.5"
- resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39"
- dependencies:
- d "1"
- es5-ext "~0.10.14"
-
-events@~1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"
-
-evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02"
- dependencies:
- md5.js "^1.3.4"
- safe-buffer "^5.1.1"
-
-exit-hook@^1.0.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
-
-extend@~3.0.0, extend@~3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
-
-extract-zip@^1.6.5:
- version "1.6.6"
- resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.6.tgz#1290ede8d20d0872b429fd3f351ca128ec5ef85c"
- dependencies:
- concat-stream "1.6.0"
- debug "2.6.9"
- mkdirp "0.5.0"
- yauzl "2.4.1"
-
-extsprintf@1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
-
-extsprintf@^1.2.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"
-
-fake@^0.2.2:
- version "0.2.2"
- resolved "https://registry.yarnpkg.com/fake/-/fake-0.2.2.tgz#68fe672725ff0f5c89ba92c539b31111f122d1f3"
-
-far@^0.0.7:
- version "0.0.7"
- resolved "https://registry.yarnpkg.com/far/-/far-0.0.7.tgz#01c1fd362bcd26ce9cf161af3938aa34619f79a7"
- dependencies:
- oop "0.0.3"
-
-fast-deep-equal@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff"
-
-fast-json-stable-stringify@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
-
-fast-levenshtein@~2.0.4:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
-
-fd-slicer@~1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65"
- dependencies:
- pend "~1.2.0"
-
-figures@^1.3.5:
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
- dependencies:
- escape-string-regexp "^1.0.5"
- object-assign "^4.1.0"
-
-file-entry-cache@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361"
- dependencies:
- flat-cache "^1.2.1"
- object-assign "^4.0.1"
-
-flat-cache@^1.2.1:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.3.0.tgz#d3030b32b38154f4e3b7e9c709f490f7ef97c481"
- dependencies:
- circular-json "^0.3.1"
- del "^2.0.2"
- graceful-fs "^4.1.2"
- write "^0.2.1"
-
-for-each@~0.3.2:
- version "0.3.2"
- resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.2.tgz#2c40450b9348e97f281322593ba96704b9abd4d4"
- dependencies:
- is-function "~1.0.0"
-
-foreach@^2.0.5:
- version "2.0.5"
- resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
-
-forever-agent@~0.6.1:
- version "0.6.1"
- resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
-
-form-data@~2.1.1:
- version "2.1.4"
- resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1"
- dependencies:
- asynckit "^0.4.0"
- combined-stream "^1.0.5"
- mime-types "^2.1.12"
-
-form-data@~2.3.1:
- version "2.3.1"
- resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.1.tgz#6fb94fbd71885306d73d15cc497fe4cc4ecd44bf"
- dependencies:
- asynckit "^0.4.0"
- combined-stream "^1.0.5"
- mime-types "^2.1.12"
-
-formidable@^1.0.17:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.1.1.tgz#96b8886f7c3c3508b932d6bd70c4d3a88f35f1a9"
-
-fs-extra@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
- dependencies:
- graceful-fs "^4.1.2"
- jsonfile "^2.1.0"
- klaw "^1.0.0"
-
-fs.realpath@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
-
-fstream-ignore@^1.0.0:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105"
- dependencies:
- fstream "^1.0.0"
- inherits "2"
- minimatch "^3.0.0"
-
-fstream-npm@^1.2.0:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/fstream-npm/-/fstream-npm-1.2.1.tgz#08c4a452f789dcbac4c89a4563c902b2c862fd5b"
- dependencies:
- fstream-ignore "^1.0.0"
- inherits "2"
-
-fstream@^1.0.0:
- version "1.0.11"
- resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171"
- dependencies:
- graceful-fs "^4.1.2"
- inherits "~2.0.0"
- mkdirp ">=0.5 0"
- rimraf "2"
-
-function-bind@^1.0.2, function-bind@^1.1.1, function-bind@~1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
-
-generate-function@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74"
-
-generate-object-property@^1.1.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0"
- dependencies:
- is-property "^1.0.0"
-
-getpass@^0.1.1:
- version "0.1.7"
- resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
- dependencies:
- assert-plus "^1.0.0"
-
-ghostface@^1.5.0:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/ghostface/-/ghostface-1.5.0.tgz#b93e7ab6560ec93b4509032fdd43a4bec93044fd"
- dependencies:
- chalk "^1.0.0"
- concat-stream "^1.4.8"
- convert-source-map "^1.0.0"
- minimist "^1.1.1"
- semver "^4.3.3"
- source-map "^0.4.2"
- which "^1.0.9"
-
-glob@^5.0.15:
- version "5.0.15"
- resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1"
- dependencies:
- inflight "^1.0.4"
- inherits "2"
- minimatch "2 || 3"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
-glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.0, glob@~7.1.2:
- version "7.1.2"
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.4"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
-globals@^9.14.0:
- version "9.18.0"
- resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
-
-globby@^5.0.0:
- version "5.0.0"
- resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d"
- dependencies:
- array-union "^1.0.1"
- arrify "^1.0.0"
- glob "^7.0.3"
- object-assign "^4.0.1"
- pify "^2.0.0"
- pinkie-promise "^2.0.0"
-
-graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9:
- version "4.1.11"
- resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
-
-handlebars@^4.0.1:
- version "4.0.11"
- resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc"
- dependencies:
- async "^1.4.0"
- optimist "^0.6.1"
- source-map "^0.4.4"
- optionalDependencies:
- uglify-js "^2.6"
-
-har-schema@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92"
-
-har-validator@~2.0.6:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d"
- dependencies:
- chalk "^1.1.1"
- commander "^2.9.0"
- is-my-json-valid "^2.12.4"
- pinkie-promise "^2.0.0"
-
-har-validator@~5.0.3:
- version "5.0.3"
- resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.0.3.tgz#ba402c266194f15956ef15e0fcf242993f6a7dfd"
- dependencies:
- ajv "^5.1.0"
- har-schema "^2.0.0"
-
-has-ansi@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
- dependencies:
- ansi-regex "^2.0.0"
-
-has-flag@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
-
-has@^1.0.0, has@^1.0.1, has@~1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28"
- dependencies:
- function-bind "^1.0.2"
-
-hash-base@^2.0.0:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-2.0.2.tgz#66ea1d856db4e8a5470cadf6fce23ae5244ef2e1"
- dependencies:
- inherits "^2.0.1"
-
-hash-base@^3.0.0:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918"
- dependencies:
- inherits "^2.0.1"
- safe-buffer "^5.0.1"
-
-hash.js@^1.0.0, hash.js@^1.0.3:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.3.tgz#340dedbe6290187151c1ea1d777a3448935df846"
- dependencies:
- inherits "^2.0.3"
- minimalistic-assert "^1.0.0"
-
-hasha@^2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/hasha/-/hasha-2.2.0.tgz#78d7cbfc1e6d66303fe79837365984517b2f6ee1"
- dependencies:
- is-stream "^1.0.1"
- pinkie-promise "^2.0.0"
-
-hawk@~3.1.3:
- version "3.1.3"
- resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4"
- dependencies:
- boom "2.x.x"
- cryptiles "2.x.x"
- hoek "2.x.x"
- sntp "1.x.x"
-
-hawk@~6.0.2:
- version "6.0.2"
- resolved "https://registry.yarnpkg.com/hawk/-/hawk-6.0.2.tgz#af4d914eb065f9b5ce4d9d11c1cb2126eecc3038"
- dependencies:
- boom "4.x.x"
- cryptiles "3.x.x"
- hoek "4.x.x"
- sntp "2.x.x"
-
-hmac-drbg@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
- dependencies:
- hash.js "^1.0.3"
- minimalistic-assert "^1.0.0"
- minimalistic-crypto-utils "^1.0.1"
-
-hoek@2.x.x:
- version "2.16.3"
- resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"
-
-hoek@4.x.x:
- version "4.2.0"
- resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.0.tgz#72d9d0754f7fe25ca2d01ad8f8f9a9449a89526d"
-
-htmlescape@^1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/htmlescape/-/htmlescape-1.1.1.tgz#3a03edc2214bca3b66424a3e7959349509cb0351"
-
-http-signature@~1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf"
- dependencies:
- assert-plus "^0.2.0"
- jsprim "^1.2.2"
- sshpk "^1.7.0"
-
-http-signature@~1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1"
- dependencies:
- assert-plus "^1.0.0"
- jsprim "^1.2.2"
- sshpk "^1.7.0"
-
-https-browserify@~0.0.0:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82"
-
-ieee754@^1.1.4:
- version "1.1.8"
- resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.8.tgz#be33d40ac10ef1926701f6f08a2d86fbfd1ad3e4"
-
-ignore@^3.2.0:
- version "3.3.7"
- resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"
-
-imurmurhash@^0.1.4:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
-
-in-publish@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51"
-
-indexof@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d"
-
-inflight@^1.0.4:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
- dependencies:
- once "^1.3.0"
- wrappy "1"
-
-inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3:
- version "2.0.3"
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
-
-inherits@2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1"
-
-inline-source-map@~0.6.0:
- version "0.6.2"
- resolved "https://registry.yarnpkg.com/inline-source-map/-/inline-source-map-0.6.2.tgz#f9393471c18a79d1724f863fa38b586370ade2a5"
- dependencies:
- source-map "~0.5.3"
-
-inquirer@^0.12.0:
- version "0.12.0"
- resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e"
- dependencies:
- ansi-escapes "^1.1.0"
- ansi-regex "^2.0.0"
- chalk "^1.0.0"
- cli-cursor "^1.0.1"
- cli-width "^2.0.0"
- figures "^1.3.5"
- lodash "^4.3.0"
- readline2 "^1.0.1"
- run-async "^0.1.0"
- rx-lite "^3.1.2"
- string-width "^1.0.1"
- strip-ansi "^3.0.0"
- through "^2.3.6"
-
-insert-module-globals@^7.0.0:
- version "7.0.1"
- resolved "https://registry.yarnpkg.com/insert-module-globals/-/insert-module-globals-7.0.1.tgz#c03bf4e01cb086d5b5e5ace8ad0afe7889d638c3"
- dependencies:
- JSONStream "^1.0.3"
- combine-source-map "~0.7.1"
- concat-stream "~1.5.1"
- is-buffer "^1.1.0"
- lexical-scope "^1.2.0"
- process "~0.11.0"
- through2 "^2.0.0"
- xtend "^4.0.0"
-
-interpret@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614"
-
-is-buffer@^1.1.0, is-buffer@^1.1.5:
- version "1.1.6"
- resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
-
-is-callable@^1.1.1, is-callable@^1.1.3:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
-
-is-date-object@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16"
-
-is-fullwidth-code-point@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
- dependencies:
- number-is-nan "^1.0.0"
-
-is-fullwidth-code-point@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f"
-
-is-function@~1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
-
-is-my-json-valid@^2.10.0, is-my-json-valid@^2.12.4:
- version "2.17.1"
- resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.17.1.tgz#3da98914a70a22f0a8563ef1511a246c6fc55471"
- dependencies:
- generate-function "^2.0.0"
- generate-object-property "^1.1.0"
- jsonpointer "^4.0.0"
- xtend "^4.0.0"
-
-is-node-modern@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-node-modern/-/is-node-modern-1.0.0.tgz#cfe2607be7403b05b28a566f66cbf8a583d4fc63"
-
-is-path-cwd@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d"
-
-is-path-in-cwd@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc"
- dependencies:
- is-path-inside "^1.0.0"
-
-is-path-inside@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036"
- dependencies:
- path-is-inside "^1.0.1"
-
-is-property@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84"
-
-is-regex@^1.0.4:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491"
- dependencies:
- has "^1.0.1"
-
-is-resolvable@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
-
-is-stream@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
-
-is-symbol@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
-
-is-typedarray@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
-
-isarray@^1.0.0, isarray@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
-
-isarray@~0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
-
-isexe@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
-
-isstream@~0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
-
-istanbul@^0.4.5:
- version "0.4.5"
- resolved "https://registry.yarnpkg.com/istanbul/-/istanbul-0.4.5.tgz#65c7d73d4c4da84d4f3ac310b918fb0b8033733b"
- dependencies:
- abbrev "1.0.x"
- async "1.x"
- escodegen "1.8.x"
- esprima "2.7.x"
- glob "^5.0.15"
- handlebars "^4.0.1"
- js-yaml "3.x"
- mkdirp "0.5.x"
- nopt "3.x"
- once "1.x"
- resolve "1.1.x"
- supports-color "^3.1.0"
- which "^1.1.1"
- wordwrap "^1.0.0"
-
-js-tokens@^3.0.2:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
-
-js-yaml@3.6.1:
- version "3.6.1"
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30"
- dependencies:
- argparse "^1.0.7"
- esprima "^2.6.0"
-
-js-yaml@3.x, js-yaml@^3.5.1:
- version "3.10.0"
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
- dependencies:
- argparse "^1.0.7"
- esprima "^4.0.0"
-
-jsbn@~0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
-
-json-schema-traverse@^0.3.0:
- version "0.3.1"
- resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340"
-
-json-schema@0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
-
-json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af"
- dependencies:
- jsonify "~0.0.0"
-
-json-stable-stringify@~0.0.0:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz#611c23e814db375527df851193db59dd2af27f45"
- dependencies:
- jsonify "~0.0.0"
-
-json-stringify-safe@~5.0.1:
- version "5.0.1"
- resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
-
-jsonfile@^2.1.0:
- version "2.4.0"
- resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8"
- optionalDependencies:
- graceful-fs "^4.1.6"
-
-jsonify@~0.0.0:
- version "0.0.0"
- resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
-
-jsonparse@^1.2.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"
-
-jsonpointer@^4.0.0:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
-
-jsprim@^1.2.2:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
- dependencies:
- assert-plus "1.0.0"
- extsprintf "1.3.0"
- json-schema "0.2.3"
- verror "1.10.0"
-
-kew@^0.7.0:
- version "0.7.0"
- resolved "https://registry.yarnpkg.com/kew/-/kew-0.7.0.tgz#79d93d2d33363d6fdd2970b335d9141ad591d79b"
-
-kind-of@^3.0.2:
- version "3.2.2"
- resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
- dependencies:
- is-buffer "^1.1.5"
-
-klaw@^1.0.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"
- optionalDependencies:
- graceful-fs "^4.1.9"
-
-labeled-stream-splicer@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/labeled-stream-splicer/-/labeled-stream-splicer-2.0.0.tgz#a52e1d138024c00b86b1c0c91f677918b8ae0a59"
- dependencies:
- inherits "^2.0.1"
- isarray "~0.0.1"
- stream-splicer "^2.0.0"
-
-lazy-cache@^1.0.3:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
-
-lcov-parse@0.0.10:
- version "0.0.10"
- resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
-
-levn@^0.3.0, levn@~0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee"
- dependencies:
- prelude-ls "~1.1.2"
- type-check "~0.3.2"
-
-lexical-scope@^1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/lexical-scope/-/lexical-scope-1.2.0.tgz#fcea5edc704a4b3a8796cdca419c3a0afaf22df4"
- dependencies:
- astw "^2.0.0"
-
-lodash.memoize@~3.0.3:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-3.0.4.tgz#2dcbd2c287cbc0a55cc42328bd0c736150d53e3f"
-
-lodash@^4.0.0, lodash@^4.3.0:
- version "4.17.5"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
-
-log-driver@1.2.5:
- version "1.2.5"
- resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056"
-
-longest@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
-
-lru-cache@^4.0.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55"
- dependencies:
- pseudomap "^1.0.2"
- yallist "^2.1.2"
-
-map-limit@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/map-limit/-/map-limit-0.0.1.tgz#eb7961031c0f0e8d001bf2d56fab685d58822f38"
- dependencies:
- once "~1.3.0"
-
-md5.js@^1.3.4:
- version "1.3.4"
- resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.4.tgz#e9bdbde94a20a5ac18b04340fc5764d5b09d901d"
- dependencies:
- hash-base "^3.0.0"
- inherits "^2.0.1"
-
-miller-rabin@^4.0.0:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d"
- dependencies:
- bn.js "^4.0.0"
- brorand "^1.0.1"
-
-mime-db@~1.30.0:
- version "1.30.0"
- resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01"
-
-mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.7:
- version "2.1.17"
- resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.17.tgz#09d7a393f03e995a79f8af857b70a9e0ab16557a"
- dependencies:
- mime-db "~1.30.0"
-
-minimalistic-assert@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz#702be2dda6b37f4836bcb3f5db56641b64a1d3d3"
-
-minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
-
-"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.4:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
- dependencies:
- brace-expansion "^1.1.7"
-
-minimist@0.0.8:
- version "0.0.8"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
-
-minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0, minimist@~1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
-
-minimist@~0.0.1:
- version "0.0.10"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
-
-mkdirp@0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.0.tgz#1d73076a6df986cd9344e15e71fcc05a4c9abf12"
- dependencies:
- minimist "0.0.8"
-
-mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1:
- version "0.5.1"
- resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
- dependencies:
- minimist "0.0.8"
-
-module-deps@^4.0.8:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/module-deps/-/module-deps-4.1.1.tgz#23215833f1da13fd606ccb8087b44852dcb821fd"
- dependencies:
- JSONStream "^1.0.3"
- browser-resolve "^1.7.0"
- cached-path-relative "^1.0.0"
- concat-stream "~1.5.0"
- defined "^1.0.0"
- detective "^4.0.0"
- duplexer2 "^0.1.2"
- inherits "^2.0.1"
- parents "^1.0.0"
- readable-stream "^2.0.2"
- resolve "^1.1.3"
- stream-combiner2 "^1.1.1"
- subarg "^1.0.0"
- through2 "^2.0.0"
- xtend "^4.0.0"
-
-ms@2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
-
-mute-stream@0.0.5:
- version "0.0.5"
- resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
-
-natural-compare@^1.4.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
-
-node-uuid@~1.4.7:
- version "1.4.8"
- resolved "https://registry.yarnpkg.com/node-uuid/-/node-uuid-1.4.8.tgz#b040eb0923968afabf8d32fb1f17f1167fdab907"
-
-nopt@3.x:
- version "3.0.6"
- resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
- dependencies:
- abbrev "1"
-
-number-is-nan@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
-
-oauth-sign@~0.8.1, oauth-sign@~0.8.2:
- version "0.8.2"
- resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43"
-
-obake@^0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/obake/-/obake-0.1.2.tgz#64a477c9ddfbbccc18cff3a750924974d22c29d3"
- dependencies:
- envar "^2.0.0"
- ghostface "^1.5.0"
-
-object-assign@^4.0.1, object-assign@^4.1.0:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
-
-object-inspect@~1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.3.0.tgz#5b1eb8e6742e2ee83342a637034d844928ba2f6d"
-
-object-keys@^1.0.8:
- version "1.0.11"
- resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d"
-
-once@1.x, once@^1.3.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
- dependencies:
- wrappy "1"
-
-once@~1.3.0:
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20"
- dependencies:
- wrappy "1"
-
-onetime@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
-
-oop@0.0.3:
- version "0.0.3"
- resolved "https://registry.yarnpkg.com/oop/-/oop-0.0.3.tgz#70fa405a5650891a194fdc82ca68dad6dabf4401"
-
-optimist@^0.6.1:
- version "0.6.1"
- resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
- dependencies:
- minimist "~0.0.1"
- wordwrap "~0.0.2"
-
-optionator@^0.8.1, optionator@^0.8.2:
- version "0.8.2"
- resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
- dependencies:
- deep-is "~0.1.3"
- fast-levenshtein "~2.0.4"
- levn "~0.3.0"
- prelude-ls "~1.1.2"
- type-check "~0.3.2"
- wordwrap "~1.0.0"
-
-os-browserify@~0.1.1:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.1.2.tgz#49ca0293e0b19590a5f5de10c7f265a617d8fe54"
-
-os-homedir@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
-
-os-shim@^0.1.2:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/os-shim/-/os-shim-0.1.3.tgz#6b62c3791cf7909ea35ed46e17658bb417cb3917"
-
-pako@~0.2.0:
- version "0.2.9"
- resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75"
-
-parents@^1.0.0, parents@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/parents/-/parents-1.0.1.tgz#fedd4d2bf193a77745fe71e371d73c3307d9c751"
- dependencies:
- path-platform "~0.11.15"
-
-parse-asn1@^5.0.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712"
- dependencies:
- asn1.js "^4.0.0"
- browserify-aes "^1.0.0"
- create-hash "^1.1.0"
- evp_bytestokey "^1.0.0"
- pbkdf2 "^3.0.3"
-
-path-browserify@~0.0.0:
- version "0.0.0"
- resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a"
-
-path-is-absolute@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
-
-path-is-inside@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
-
-path-parse@^1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
-
-path-platform@~0.11.15:
- version "0.11.15"
- resolved "https://registry.yarnpkg.com/path-platform/-/path-platform-0.11.15.tgz#e864217f74c36850f0852b78dc7bf7d4a5721bf2"
-
-pbkdf2@^3.0.3:
- version "3.0.14"
- resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.14.tgz#a35e13c64799b06ce15320f459c230e68e73bade"
- dependencies:
- create-hash "^1.1.2"
- create-hmac "^1.1.4"
- ripemd160 "^2.0.1"
- safe-buffer "^5.0.1"
- sha.js "^2.4.8"
-
-pend@~1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
-
-performance-now@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
-
-phantomjs-prebuilt@^2.1.13:
- version "2.1.16"
- resolved "https://registry.yarnpkg.com/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.16.tgz#efd212a4a3966d3647684ea8ba788549be2aefef"
- dependencies:
- es6-promise "^4.0.3"
- extract-zip "^1.6.5"
- fs-extra "^1.0.0"
- hasha "^2.2.0"
- kew "^0.7.0"
- progress "^1.1.8"
- request "^2.81.0"
- request-progress "^2.0.1"
- which "^1.2.10"
-
-pify@^2.0.0:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
-
-pinkie-promise@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
- dependencies:
- pinkie "^2.0.0"
-
-pinkie@^2.0.0:
- version "2.0.4"
- resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
-
-pkgfiles@^2.3.0:
- version "2.3.2"
- resolved "https://registry.yarnpkg.com/pkgfiles/-/pkgfiles-2.3.2.tgz#1b54a7a8dbe32caa84b0955f44917e1500d33d05"
- dependencies:
- columnify "^1.5.4"
- du "^0.1.0"
- fstream-npm "^1.2.0"
- map-limit "0.0.1"
- minimist "^1.2.0"
- pkgresolve "^1.1.4"
- pretty-bytes "^4.0.2"
-
-pkgresolve@^1.1.4:
- version "1.1.4"
- resolved "https://registry.yarnpkg.com/pkgresolve/-/pkgresolve-1.1.4.tgz#0fa499ca366888c31e97357446c6053025ae47b6"
- dependencies:
- minimist "~1.2.0"
-
-pluralize@^1.2.1:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45"
-
-pre-commit@^1.1.3:
- version "1.2.2"
- resolved "https://registry.yarnpkg.com/pre-commit/-/pre-commit-1.2.2.tgz#dbcee0ee9de7235e57f79c56d7ce94641a69eec6"
- dependencies:
- cross-spawn "^5.0.1"
- spawn-sync "^1.0.15"
- which "1.2.x"
-
-prelude-ls@~1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
-
-pretty-bytes@^4.0.2:
- version "4.0.2"
- resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
-
-process-nextick-args@~1.0.6:
- version "1.0.7"
- resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3"
-
-process-nextick-args@~2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
-
-process@~0.11.0:
- version "0.11.10"
- resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
-
-progress@^1.1.8:
- version "1.1.8"
- resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
-
-pseudomap@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
-
-public-encrypt@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.0.tgz#39f699f3a46560dd5ebacbca693caf7c65c18cc6"
- dependencies:
- bn.js "^4.1.0"
- browserify-rsa "^4.0.0"
- create-hash "^1.1.0"
- parse-asn1 "^5.0.0"
- randombytes "^2.0.1"
-
-punycode@1.3.2:
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d"
-
-punycode@^1.3.2, punycode@^1.4.1:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
-
-qs@~6.3.0:
- version "6.3.2"
- resolved "https://registry.yarnpkg.com/qs/-/qs-6.3.2.tgz#e75bd5f6e268122a2a0e0bda630b2550c166502c"
-
-qs@~6.5.1:
- version "6.5.1"
- resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"
-
-querystring-es3@~0.2.0:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
-
-querystring@0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"
-
-randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.0.6.tgz#d302c522948588848a8d300c932b44c24231da80"
- dependencies:
- safe-buffer "^5.1.0"
-
-randomfill@^1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.3.tgz#b96b7df587f01dd91726c418f30553b1418e3d62"
- dependencies:
- randombytes "^2.0.5"
- safe-buffer "^5.1.0"
-
-read-only-stream@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/read-only-stream/-/read-only-stream-2.0.0.tgz#2724fd6a8113d73764ac288d4386270c1dbf17f0"
- dependencies:
- readable-stream "^2.0.2"
-
-readable-stream@^2.0.2, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3:
- version "2.3.4"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.4.tgz#c946c3f47fa7d8eabc0b6150f4a12f69a4574071"
- dependencies:
- core-util-is "~1.0.0"
- inherits "~2.0.3"
- isarray "~1.0.0"
- process-nextick-args "~2.0.0"
- safe-buffer "~5.1.1"
- string_decoder "~1.0.3"
- util-deprecate "~1.0.1"
-
-readable-stream@~2.0.0:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.0.6.tgz#8f90341e68a53ccc928788dacfcd11b36eb9b78e"
- dependencies:
- core-util-is "~1.0.0"
- inherits "~2.0.1"
- isarray "~1.0.0"
- process-nextick-args "~1.0.6"
- string_decoder "~0.10.x"
- util-deprecate "~1.0.1"
-
-readline2@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35"
- dependencies:
- code-point-at "^1.0.0"
- is-fullwidth-code-point "^1.0.0"
- mute-stream "0.0.5"
-
-rechoir@^0.6.2:
- version "0.6.2"
- resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
- dependencies:
- resolve "^1.1.6"
-
-repeat-string@^1.5.2:
- version "1.6.1"
- resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
-
-request-progress@^2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-2.0.1.tgz#5d36bb57961c673aa5b788dbc8141fdf23b44e08"
- dependencies:
- throttleit "^1.0.0"
-
-request@2.76.0:
- version "2.76.0"
- resolved "https://registry.yarnpkg.com/request/-/request-2.76.0.tgz#be44505afef70360a0436955106be3945d95560e"
- dependencies:
- aws-sign2 "~0.6.0"
- aws4 "^1.2.1"
- caseless "~0.11.0"
- combined-stream "~1.0.5"
- extend "~3.0.0"
- forever-agent "~0.6.1"
- form-data "~2.1.1"
- har-validator "~2.0.6"
- hawk "~3.1.3"
- http-signature "~1.1.0"
- is-typedarray "~1.0.0"
- isstream "~0.1.2"
- json-stringify-safe "~5.0.1"
- mime-types "~2.1.7"
- node-uuid "~1.4.7"
- oauth-sign "~0.8.1"
- qs "~6.3.0"
- stringstream "~0.0.4"
- tough-cookie "~2.3.0"
- tunnel-agent "~0.4.1"
-
-request@2.79.0:
- version "2.79.0"
- resolved "https://registry.yarnpkg.com/request/-/request-2.79.0.tgz#4dfe5bf6be8b8cdc37fcf93e04b65577722710de"
- dependencies:
- aws-sign2 "~0.6.0"
- aws4 "^1.2.1"
- caseless "~0.11.0"
- combined-stream "~1.0.5"
- extend "~3.0.0"
- forever-agent "~0.6.1"
- form-data "~2.1.1"
- har-validator "~2.0.6"
- hawk "~3.1.3"
- http-signature "~1.1.0"
- is-typedarray "~1.0.0"
- isstream "~0.1.2"
- json-stringify-safe "~5.0.1"
- mime-types "~2.1.7"
- oauth-sign "~0.8.1"
- qs "~6.3.0"
- stringstream "~0.0.4"
- tough-cookie "~2.3.0"
- tunnel-agent "~0.4.1"
- uuid "^3.0.0"
-
-request@^2.81.0:
- version "2.83.0"
- resolved "https://registry.yarnpkg.com/request/-/request-2.83.0.tgz#ca0b65da02ed62935887808e6f510381034e3356"
- dependencies:
- aws-sign2 "~0.7.0"
- aws4 "^1.6.0"
- caseless "~0.12.0"
- combined-stream "~1.0.5"
- extend "~3.0.1"
- forever-agent "~0.6.1"
- form-data "~2.3.1"
- har-validator "~5.0.3"
- hawk "~6.0.2"
- http-signature "~1.2.0"
- is-typedarray "~1.0.0"
- isstream "~0.1.2"
- json-stringify-safe "~5.0.1"
- mime-types "~2.1.17"
- oauth-sign "~0.8.2"
- performance-now "^2.1.0"
- qs "~6.5.1"
- safe-buffer "^5.1.1"
- stringstream "~0.0.5"
- tough-cookie "~2.3.3"
- tunnel-agent "^0.6.0"
- uuid "^3.1.0"
-
-require-uncached@^1.0.2:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3"
- dependencies:
- caller-path "^0.1.0"
- resolve-from "^1.0.0"
-
-resolve-from@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226"
-
-resolve@1.1.7, resolve@1.1.x:
- version "1.1.7"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
-
-resolve@^1.1.3, resolve@^1.1.4, resolve@^1.1.6:
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
- dependencies:
- path-parse "^1.0.5"
-
-resolve@~1.4.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86"
- dependencies:
- path-parse "^1.0.5"
-
-restore-cursor@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541"
- dependencies:
- exit-hook "^1.0.0"
- onetime "^1.0.0"
-
-resumer@~0.0.0:
- version "0.0.0"
- resolved "https://registry.yarnpkg.com/resumer/-/resumer-0.0.0.tgz#f1e8f461e4064ba39e82af3cdc2a8c893d076759"
- dependencies:
- through "~2.3.4"
-
-right-align@^0.1.1:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
- dependencies:
- align-text "^0.1.1"
-
-rimraf@2, rimraf@^2.2.8, rimraf@^2.5.4:
- version "2.6.2"
- resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
- dependencies:
- glob "^7.0.5"
-
-ripemd160@^2.0.0, ripemd160@^2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.1.tgz#0f4584295c53a3628af7e6d79aca21ce57d1c6e7"
- dependencies:
- hash-base "^2.0.0"
- inherits "^2.0.1"
-
-run-async@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389"
- dependencies:
- once "^1.3.0"
-
-rx-lite@^3.1.2:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
-
-safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
-
-semver@^4.3.3:
- version "4.3.6"
- resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.6.tgz#300bc6e0e86374f7ba61068b5b1ecd57fc6532da"
-
-sha.js@^2.4.0, sha.js@^2.4.8, sha.js@~2.4.4:
- version "2.4.10"
- resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.10.tgz#b1fde5cd7d11a5626638a07c604ab909cfa31f9b"
- dependencies:
- inherits "^2.0.1"
- safe-buffer "^5.0.1"
-
-shasum@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/shasum/-/shasum-1.0.2.tgz#e7012310d8f417f4deb5712150e5678b87ae565f"
- dependencies:
- json-stable-stringify "~0.0.0"
- sha.js "~2.4.4"
-
-shebang-command@^1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
- dependencies:
- shebang-regex "^1.0.0"
-
-shebang-regex@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
-
-shell-quote@^1.6.1:
- version "1.6.1"
- resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767"
- dependencies:
- array-filter "~0.0.0"
- array-map "~0.0.0"
- array-reduce "~0.0.0"
- jsonify "~0.0.0"
-
-shelljs@^0.7.5:
- version "0.7.8"
- resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
- dependencies:
- glob "^7.0.0"
- interpret "^1.0.0"
- rechoir "^0.6.2"
-
-slice-ansi@0.0.4:
- version "0.0.4"
- resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35"
-
-sntp@1.x.x:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198"
- dependencies:
- hoek "2.x.x"
-
-sntp@2.x.x:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/sntp/-/sntp-2.1.0.tgz#2c6cec14fedc2222739caf9b5c3d85d1cc5a2cc8"
- dependencies:
- hoek "4.x.x"
-
-source-map@^0.4.2, source-map@^0.4.4:
- version "0.4.4"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b"
- dependencies:
- amdefine ">=0.0.4"
-
-source-map@~0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d"
- dependencies:
- amdefine ">=0.0.4"
-
-source-map@~0.5.1, source-map@~0.5.3:
- version "0.5.7"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
-
-spawn-sync@^1.0.15:
- version "1.0.15"
- resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476"
- dependencies:
- concat-stream "^1.4.7"
- os-shim "^0.1.2"
-
-sprintf-js@~1.0.2:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
-
-sshpk@^1.7.0:
- version "1.13.1"
- resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3"
- dependencies:
- asn1 "~0.2.3"
- assert-plus "^1.0.0"
- dashdash "^1.12.0"
- getpass "^0.1.1"
- optionalDependencies:
- bcrypt-pbkdf "^1.0.0"
- ecc-jsbn "~0.1.1"
- jsbn "~0.1.0"
- tweetnacl "~0.14.0"
-
-stream-browserify@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.1.tgz#66266ee5f9bdb9940a4e4514cafb43bb71e5c9db"
- dependencies:
- inherits "~2.0.1"
- readable-stream "^2.0.2"
-
-stream-combiner2@^1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/stream-combiner2/-/stream-combiner2-1.1.1.tgz#fb4d8a1420ea362764e21ad4780397bebcb41cbe"
- dependencies:
- duplexer2 "~0.1.0"
- readable-stream "^2.0.2"
-
-stream-http@^2.0.0:
- version "2.8.0"
- resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.0.tgz#fd86546dac9b1c91aff8fc5d287b98fafb41bc10"
- dependencies:
- builtin-status-codes "^3.0.0"
- inherits "^2.0.1"
- readable-stream "^2.3.3"
- to-arraybuffer "^1.0.0"
- xtend "^4.0.0"
-
-stream-splicer@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/stream-splicer/-/stream-splicer-2.0.0.tgz#1b63be438a133e4b671cc1935197600175910d83"
- dependencies:
- inherits "^2.0.1"
- readable-stream "^2.0.2"
-
-string-width@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
- dependencies:
- code-point-at "^1.0.0"
- is-fullwidth-code-point "^1.0.0"
- strip-ansi "^3.0.0"
-
-string-width@^2.0.0:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
- dependencies:
- is-fullwidth-code-point "^2.0.0"
- strip-ansi "^4.0.0"
-
-string.prototype.trim@~1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea"
- dependencies:
- define-properties "^1.1.2"
- es-abstract "^1.5.0"
- function-bind "^1.0.2"
-
-string_decoder@~0.10.0, string_decoder@~0.10.x:
- version "0.10.31"
- resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
-
-string_decoder@~1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab"
- dependencies:
- safe-buffer "~5.1.0"
-
-stringstream@~0.0.4, stringstream@~0.0.5:
- version "0.0.5"
- resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
-
-strip-ansi@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
- dependencies:
- ansi-regex "^2.0.0"
-
-strip-ansi@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f"
- dependencies:
- ansi-regex "^3.0.0"
-
-strip-bom@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
-
-strip-json-comments@~2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
-
-subarg@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2"
- dependencies:
- minimist "^1.1.0"
-
-supports-color@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
-
-supports-color@^3.1.0:
- version "3.2.3"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
- dependencies:
- has-flag "^1.0.0"
-
-syntax-error@^1.1.1:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/syntax-error/-/syntax-error-1.4.0.tgz#2d9d4ff5c064acb711594a3e3b95054ad51d907c"
- dependencies:
- acorn-node "^1.2.0"
-
-table@^3.7.8:
- version "3.8.3"
- resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f"
- dependencies:
- ajv "^4.7.0"
- ajv-keywords "^1.0.0"
- chalk "^1.1.1"
- lodash "^4.0.0"
- slice-ansi "0.0.4"
- string-width "^2.0.0"
-
-tape@^4.6.2:
- version "4.8.0"
- resolved "https://registry.yarnpkg.com/tape/-/tape-4.8.0.tgz#f6a9fec41cc50a1de50fa33603ab580991f6068e"
- dependencies:
- deep-equal "~1.0.1"
- defined "~1.0.0"
- for-each "~0.3.2"
- function-bind "~1.1.0"
- glob "~7.1.2"
- has "~1.0.1"
- inherits "~2.0.3"
- minimist "~1.2.0"
- object-inspect "~1.3.0"
- resolve "~1.4.0"
- resumer "~0.0.0"
- string.prototype.trim "~1.1.2"
- through "~2.3.8"
-
-text-table@~0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
-
-throttleit@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c"
-
-through2@^2.0.0:
- version "2.0.3"
- resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be"
- dependencies:
- readable-stream "^2.1.5"
- xtend "~4.0.1"
-
-"through@>=2.2.7 <3", through@^2.3.6, through@^2.3.8, through@~2.3.4, through@~2.3.8:
- version "2.3.8"
- resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
-
-timers-browserify@^1.0.1:
- version "1.4.2"
- resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-1.4.2.tgz#c9c58b575be8407375cb5e2462dacee74359f41d"
- dependencies:
- process "~0.11.0"
-
-to-arraybuffer@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43"
-
-tough-cookie@~2.3.0, tough-cookie@~2.3.3:
- version "2.3.3"
- resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561"
- dependencies:
- punycode "^1.4.1"
-
-tty-browserify@~0.0.0:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.1.tgz#3f05251ee17904dfd0677546670db9651682b811"
-
-tunnel-agent@^0.6.0:
- version "0.6.0"
- resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
- dependencies:
- safe-buffer "^5.0.1"
-
-tunnel-agent@~0.4.1:
- version "0.4.3"
- resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.4.3.tgz#6373db76909fe570e08d73583365ed828a74eeeb"
-
-tweetnacl@^0.14.3, tweetnacl@~0.14.0:
- version "0.14.5"
- resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
-
-type-check@~0.3.2:
- version "0.3.2"
- resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"
- dependencies:
- prelude-ls "~1.1.2"
-
-typedarray@^0.0.6, typedarray@~0.0.5:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
-
-uglify-js@^2.6:
- version "2.8.29"
- resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd"
- dependencies:
- source-map "~0.5.1"
- yargs "~3.10.0"
- optionalDependencies:
- uglify-to-browserify "~1.0.0"
-
-uglify-to-browserify@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"
-
-umd@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/umd/-/umd-3.0.1.tgz#8ae556e11011f63c2596708a8837259f01b3d60e"
-
-url@~0.11.0:
- version "0.11.0"
- resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
- dependencies:
- punycode "1.3.2"
- querystring "0.2.0"
-
-user-home@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f"
- dependencies:
- os-homedir "^1.0.0"
-
-util-deprecate@~1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
-
-util@0.10.3, util@~0.10.1:
- version "0.10.3"
- resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9"
- dependencies:
- inherits "2.0.1"
-
-uuid@^3.0.0, uuid@^3.1.0:
- version "3.2.1"
- resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14"
-
-verror@1.10.0:
- version "1.10.0"
- resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400"
- dependencies:
- assert-plus "^1.0.0"
- core-util-is "1.0.2"
- extsprintf "^1.2.0"
-
-vm-browserify@~0.0.1:
- version "0.0.4"
- resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-0.0.4.tgz#5d7ea45bbef9e4a6ff65f95438e0a87c357d5a73"
- dependencies:
- indexof "0.0.1"
-
-wcwidth@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"
- dependencies:
- defaults "^1.0.3"
-
-which@1.2.x:
- version "1.2.14"
- resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5"
- dependencies:
- isexe "^2.0.0"
-
-which@^1.0.9, which@^1.1.1, which@^1.2.10, which@^1.2.9:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
- dependencies:
- isexe "^2.0.0"
-
-window-size@0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
-
-wordwrap@0.0.2:
- version "0.0.2"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
-
-wordwrap@^1.0.0, wordwrap@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
-
-wordwrap@~0.0.2:
- version "0.0.3"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
-
-wrappy@1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
-
-write@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757"
- dependencies:
- mkdirp "^0.5.1"
-
-xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
-
-yallist@^2.1.2:
- version "2.1.2"
- resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
-
-yargs@~3.10.0:
- version "3.10.0"
- resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"
- dependencies:
- camelcase "^1.0.2"
- cliui "^2.1.0"
- decamelize "^1.0.0"
- window-size "0.1.0"
-
-yauzl@2.4.1:
- version "2.4.1"
- resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005"
- dependencies:
- fd-slicer "~1.0.1"
diff --git a/node_modules/fs.realpath/LICENSE b/node_modules/fs.realpath/LICENSE
deleted file mode 100644
index 5bd884c..0000000
--- a/node_modules/fs.realpath/LICENSE
+++ /dev/null
@@ -1,43 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-----
-
-This library bundles a version of the `fs.realpath` and `fs.realpathSync`
-methods from Node.js v0.10 under the terms of the Node.js MIT license.
-
-Node's license follows, also included at the header of `old.js` which contains
-the licensed code:
-
- Copyright Joyent, Inc. and other Node contributors.
-
- Permission is hereby granted, free of charge, to any person obtaining a
- copy of this software and associated documentation files (the "Software"),
- to deal in the Software without restriction, including without limitation
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
- and/or sell copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/fs.realpath/README.md b/node_modules/fs.realpath/README.md
deleted file mode 100644
index a42ceac..0000000
--- a/node_modules/fs.realpath/README.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# fs.realpath
-
-A backwards-compatible fs.realpath for Node v6 and above
-
-In Node v6, the JavaScript implementation of fs.realpath was replaced
-with a faster (but less resilient) native implementation. That raises
-new and platform-specific errors and cannot handle long or excessively
-symlink-looping paths.
-
-This module handles those cases by detecting the new errors and
-falling back to the JavaScript implementation. On versions of Node
-prior to v6, it has no effect.
-
-## USAGE
-
-```js
-var rp = require('fs.realpath')
-
-// async version
-rp.realpath(someLongAndLoopingPath, function (er, real) {
- // the ELOOP was handled, but it was a bit slower
-})
-
-// sync version
-var real = rp.realpathSync(someLongAndLoopingPath)
-
-// monkeypatch at your own risk!
-// This replaces the fs.realpath/fs.realpathSync builtins
-rp.monkeypatch()
-
-// un-do the monkeypatching
-rp.unmonkeypatch()
-```
diff --git a/node_modules/fs.realpath/index.js b/node_modules/fs.realpath/index.js
deleted file mode 100644
index b09c7c7..0000000
--- a/node_modules/fs.realpath/index.js
+++ /dev/null
@@ -1,66 +0,0 @@
-module.exports = realpath
-realpath.realpath = realpath
-realpath.sync = realpathSync
-realpath.realpathSync = realpathSync
-realpath.monkeypatch = monkeypatch
-realpath.unmonkeypatch = unmonkeypatch
-
-var fs = require('fs')
-var origRealpath = fs.realpath
-var origRealpathSync = fs.realpathSync
-
-var version = process.version
-var ok = /^v[0-5]\./.test(version)
-var old = require('./old.js')
-
-function newError (er) {
- return er && er.syscall === 'realpath' && (
- er.code === 'ELOOP' ||
- er.code === 'ENOMEM' ||
- er.code === 'ENAMETOOLONG'
- )
-}
-
-function realpath (p, cache, cb) {
- if (ok) {
- return origRealpath(p, cache, cb)
- }
-
- if (typeof cache === 'function') {
- cb = cache
- cache = null
- }
- origRealpath(p, cache, function (er, result) {
- if (newError(er)) {
- old.realpath(p, cache, cb)
- } else {
- cb(er, result)
- }
- })
-}
-
-function realpathSync (p, cache) {
- if (ok) {
- return origRealpathSync(p, cache)
- }
-
- try {
- return origRealpathSync(p, cache)
- } catch (er) {
- if (newError(er)) {
- return old.realpathSync(p, cache)
- } else {
- throw er
- }
- }
-}
-
-function monkeypatch () {
- fs.realpath = realpath
- fs.realpathSync = realpathSync
-}
-
-function unmonkeypatch () {
- fs.realpath = origRealpath
- fs.realpathSync = origRealpathSync
-}
diff --git a/node_modules/fs.realpath/old.js b/node_modules/fs.realpath/old.js
deleted file mode 100644
index b40305e..0000000
--- a/node_modules/fs.realpath/old.js
+++ /dev/null
@@ -1,303 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var pathModule = require('path');
-var isWindows = process.platform === 'win32';
-var fs = require('fs');
-
-// JavaScript implementation of realpath, ported from node pre-v6
-
-var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
-
-function rethrow() {
- // Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and
- // is fairly slow to generate.
- var callback;
- if (DEBUG) {
- var backtrace = new Error;
- callback = debugCallback;
- } else
- callback = missingCallback;
-
- return callback;
-
- function debugCallback(err) {
- if (err) {
- backtrace.message = err.message;
- err = backtrace;
- missingCallback(err);
- }
- }
-
- function missingCallback(err) {
- if (err) {
- if (process.throwDeprecation)
- throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs
- else if (!process.noDeprecation) {
- var msg = 'fs: missing callback ' + (err.stack || err.message);
- if (process.traceDeprecation)
- console.trace(msg);
- else
- console.error(msg);
- }
- }
- }
-}
-
-function maybeCallback(cb) {
- return typeof cb === 'function' ? cb : rethrow();
-}
-
-var normalize = pathModule.normalize;
-
-// Regexp that finds the next partion of a (partial) path
-// result is [base_with_slash, base], e.g. ['somedir/', 'somedir']
-if (isWindows) {
- var nextPartRe = /(.*?)(?:[\/\\]+|$)/g;
-} else {
- var nextPartRe = /(.*?)(?:[\/]+|$)/g;
-}
-
-// Regex to find the device root, including trailing slash. E.g. 'c:\\'.
-if (isWindows) {
- var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;
-} else {
- var splitRootRe = /^[\/]*/;
-}
-
-exports.realpathSync = function realpathSync(p, cache) {
- // make p is absolute
- p = pathModule.resolve(p);
-
- if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
- return cache[p];
- }
-
- var original = p,
- seenLinks = {},
- knownHard = {};
-
- // current character position in p
- var pos;
- // the partial path so far, including a trailing slash if any
- var current;
- // the partial path without a trailing slash (except when pointing at a root)
- var base;
- // the partial path scanned in the previous round, with slash
- var previous;
-
- start();
-
- function start() {
- // Skip over roots
- var m = splitRootRe.exec(p);
- pos = m[0].length;
- current = m[0];
- base = m[0];
- previous = '';
-
- // On windows, check that the root exists. On unix there is no need.
- if (isWindows && !knownHard[base]) {
- fs.lstatSync(base);
- knownHard[base] = true;
- }
- }
-
- // walk down the path, swapping out linked pathparts for their real
- // values
- // NB: p.length changes.
- while (pos < p.length) {
- // find the next part
- nextPartRe.lastIndex = pos;
- var result = nextPartRe.exec(p);
- previous = current;
- current += result[0];
- base = previous + result[1];
- pos = nextPartRe.lastIndex;
-
- // continue if not a symlink
- if (knownHard[base] || (cache && cache[base] === base)) {
- continue;
- }
-
- var resolvedLink;
- if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
- // some known symbolic link. no need to stat again.
- resolvedLink = cache[base];
- } else {
- var stat = fs.lstatSync(base);
- if (!stat.isSymbolicLink()) {
- knownHard[base] = true;
- if (cache) cache[base] = base;
- continue;
- }
-
- // read the link if it wasn't read before
- // dev/ino always return 0 on windows, so skip the check.
- var linkTarget = null;
- if (!isWindows) {
- var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
- if (seenLinks.hasOwnProperty(id)) {
- linkTarget = seenLinks[id];
- }
- }
- if (linkTarget === null) {
- fs.statSync(base);
- linkTarget = fs.readlinkSync(base);
- }
- resolvedLink = pathModule.resolve(previous, linkTarget);
- // track this, if given a cache.
- if (cache) cache[base] = resolvedLink;
- if (!isWindows) seenLinks[id] = linkTarget;
- }
-
- // resolve the link, then start over
- p = pathModule.resolve(resolvedLink, p.slice(pos));
- start();
- }
-
- if (cache) cache[original] = p;
-
- return p;
-};
-
-
-exports.realpath = function realpath(p, cache, cb) {
- if (typeof cb !== 'function') {
- cb = maybeCallback(cache);
- cache = null;
- }
-
- // make p is absolute
- p = pathModule.resolve(p);
-
- if (cache && Object.prototype.hasOwnProperty.call(cache, p)) {
- return process.nextTick(cb.bind(null, null, cache[p]));
- }
-
- var original = p,
- seenLinks = {},
- knownHard = {};
-
- // current character position in p
- var pos;
- // the partial path so far, including a trailing slash if any
- var current;
- // the partial path without a trailing slash (except when pointing at a root)
- var base;
- // the partial path scanned in the previous round, with slash
- var previous;
-
- start();
-
- function start() {
- // Skip over roots
- var m = splitRootRe.exec(p);
- pos = m[0].length;
- current = m[0];
- base = m[0];
- previous = '';
-
- // On windows, check that the root exists. On unix there is no need.
- if (isWindows && !knownHard[base]) {
- fs.lstat(base, function(err) {
- if (err) return cb(err);
- knownHard[base] = true;
- LOOP();
- });
- } else {
- process.nextTick(LOOP);
- }
- }
-
- // walk down the path, swapping out linked pathparts for their real
- // values
- function LOOP() {
- // stop if scanned past end of path
- if (pos >= p.length) {
- if (cache) cache[original] = p;
- return cb(null, p);
- }
-
- // find the next part
- nextPartRe.lastIndex = pos;
- var result = nextPartRe.exec(p);
- previous = current;
- current += result[0];
- base = previous + result[1];
- pos = nextPartRe.lastIndex;
-
- // continue if not a symlink
- if (knownHard[base] || (cache && cache[base] === base)) {
- return process.nextTick(LOOP);
- }
-
- if (cache && Object.prototype.hasOwnProperty.call(cache, base)) {
- // known symbolic link. no need to stat again.
- return gotResolvedLink(cache[base]);
- }
-
- return fs.lstat(base, gotStat);
- }
-
- function gotStat(err, stat) {
- if (err) return cb(err);
-
- // if not a symlink, skip to the next path part
- if (!stat.isSymbolicLink()) {
- knownHard[base] = true;
- if (cache) cache[base] = base;
- return process.nextTick(LOOP);
- }
-
- // stat & read the link if not read before
- // call gotTarget as soon as the link target is known
- // dev/ino always return 0 on windows, so skip the check.
- if (!isWindows) {
- var id = stat.dev.toString(32) + ':' + stat.ino.toString(32);
- if (seenLinks.hasOwnProperty(id)) {
- return gotTarget(null, seenLinks[id], base);
- }
- }
- fs.stat(base, function(err) {
- if (err) return cb(err);
-
- fs.readlink(base, function(err, target) {
- if (!isWindows) seenLinks[id] = target;
- gotTarget(err, target);
- });
- });
- }
-
- function gotTarget(err, target, base) {
- if (err) return cb(err);
-
- var resolvedLink = pathModule.resolve(previous, target);
- if (cache) cache[base] = resolvedLink;
- gotResolvedLink(resolvedLink);
- }
-
- function gotResolvedLink(resolvedLink) {
- // resolve the link, then start over
- p = pathModule.resolve(resolvedLink, p.slice(pos));
- start();
- }
-};
diff --git a/node_modules/fs.realpath/package.json b/node_modules/fs.realpath/package.json
deleted file mode 100644
index a7b567b..0000000
--- a/node_modules/fs.realpath/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_from": "fs.realpath@^1.0.0",
- "_id": "fs.realpath@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
- "_location": "/fs.realpath",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "fs.realpath@^1.0.0",
- "name": "fs.realpath",
- "escapedName": "fs.realpath",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/glob"
- ],
- "_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "_shasum": "1504ad2523158caa40db4a2787cb01411994ea4f",
- "_spec": "fs.realpath@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/glob",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/fs.realpath/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Use node's fs.realpath, but fall back to the JS implementation if the native one fails",
- "devDependencies": {},
- "files": [
- "old.js",
- "index.js"
- ],
- "homepage": "https://github.com/isaacs/fs.realpath#readme",
- "keywords": [
- "realpath",
- "fs",
- "polyfill"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "fs.realpath",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/isaacs/fs.realpath.git"
- },
- "scripts": {
- "test": "tap test/*.js --cov"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/fstream/.travis.yml b/node_modules/fstream/.travis.yml
deleted file mode 100644
index 9f5972a..0000000
--- a/node_modules/fstream/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: node_js
-node_js:
- - "6"
- - "4"
- - "0.10"
- - "0.12"
-before_install:
- - "npm config set spin false"
- - "npm install -g npm/npm"
diff --git a/node_modules/fstream/LICENSE b/node_modules/fstream/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/fstream/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/fstream/README.md b/node_modules/fstream/README.md
deleted file mode 100644
index 9d8cb77..0000000
--- a/node_modules/fstream/README.md
+++ /dev/null
@@ -1,76 +0,0 @@
-Like FS streams, but with stat on them, and supporting directories and
-symbolic links, as well as normal files. Also, you can use this to set
-the stats on a file, even if you don't change its contents, or to create
-a symlink, etc.
-
-So, for example, you can "write" a directory, and it'll call `mkdir`. You
-can specify a uid and gid, and it'll call `chown`. You can specify a
-`mtime` and `atime`, and it'll call `utimes`. You can call it a symlink
-and provide a `linkpath` and it'll call `symlink`.
-
-Note that it won't automatically resolve symbolic links. So, if you
-call `fstream.Reader('/some/symlink')` then you'll get an object
-that stats and then ends immediately (since it has no data). To follow
-symbolic links, do this: `fstream.Reader({path:'/some/symlink', follow:
-true })`.
-
-There are various checks to make sure that the bytes emitted are the
-same as the intended size, if the size is set.
-
-## Examples
-
-```javascript
-fstream
- .Writer({ path: "path/to/file"
- , mode: 0755
- , size: 6
- })
- .write("hello\n")
- .end()
-```
-
-This will create the directories if they're missing, and then write
-`hello\n` into the file, chmod it to 0755, and assert that 6 bytes have
-been written when it's done.
-
-```javascript
-fstream
- .Writer({ path: "path/to/file"
- , mode: 0755
- , size: 6
- , flags: "a"
- })
- .write("hello\n")
- .end()
-```
-
-You can pass flags in, if you want to append to a file.
-
-```javascript
-fstream
- .Writer({ path: "path/to/symlink"
- , linkpath: "./file"
- , SymbolicLink: true
- , mode: "0755" // octal strings supported
- })
- .end()
-```
-
-If isSymbolicLink is a function, it'll be called, and if it returns
-true, then it'll treat it as a symlink. If it's not a function, then
-any truish value will make a symlink, or you can set `type:
-'SymbolicLink'`, which does the same thing.
-
-Note that the linkpath is relative to the symbolic link location, not
-the parent dir or cwd.
-
-```javascript
-fstream
- .Reader("path/to/dir")
- .pipe(fstream.Writer("path/to/other/dir"))
-```
-
-This will do like `cp -Rp path/to/dir path/to/other/dir`. If the other
-dir exists and isn't a directory, then it'll emit an error. It'll also
-set the uid, gid, mode, etc. to be identical. In this way, it's more
-like `rsync -a` than simply a copy.
diff --git a/node_modules/fstream/examples/filter-pipe.js b/node_modules/fstream/examples/filter-pipe.js
deleted file mode 100644
index 83dadef..0000000
--- a/node_modules/fstream/examples/filter-pipe.js
+++ /dev/null
@@ -1,134 +0,0 @@
-var fstream = require('../fstream.js')
-var path = require('path')
-
-var r = fstream.Reader({
- path: path.dirname(__dirname),
- filter: function () {
- return !this.basename.match(/^\./) &&
- !this.basename.match(/^node_modules$/) &&
- !this.basename.match(/^deep-copy$/) &&
- !this.basename.match(/^filter-copy$/)
- }
-})
-
-// this writer will only write directories
-var w = fstream.Writer({
- path: path.resolve(__dirname, 'filter-copy'),
- type: 'Directory',
- filter: function () {
- return this.type === 'Directory'
- }
-})
-
-var indent = ''
-
-r.on('entry', appears)
-r.on('ready', function () {
- console.error('ready to begin!', r.path)
-})
-
-function appears (entry) {
- console.error(indent + 'a %s appears!', entry.type, entry.basename, typeof entry.basename)
- if (foggy) {
- console.error('FOGGY!')
- var p = entry
- do {
- console.error(p.depth, p.path, p._paused)
- p = p.parent
- } while (p)
-
- throw new Error('\u001b[mshould not have entries while foggy')
- }
- indent += '\t'
- entry.on('data', missile(entry))
- entry.on('end', runaway(entry))
- entry.on('entry', appears)
-}
-
-var foggy
-function missile (entry) {
- function liftFog (who) {
- if (!foggy) return
- if (who) {
- console.error('%s breaks the spell!', who && who.path)
- } else {
- console.error('the spell expires!')
- }
- console.error('\u001b[mthe fog lifts!\n')
- clearTimeout(foggy)
- foggy = null
- if (entry._paused) entry.resume()
- }
-
- if (entry.type === 'Directory') {
- var ended = false
- entry.once('end', function () { ended = true })
- return function (c) {
- // throw in some pathological pause()/resume() behavior
- // just for extra fun.
- process.nextTick(function () {
- if (!foggy && !ended) { // && Math.random() < 0.3) {
- console.error(indent + '%s casts a spell', entry.basename)
- console.error('\na slowing fog comes over the battlefield...\n\u001b[32m')
- entry.pause()
- entry.once('resume', liftFog)
- foggy = setTimeout(liftFog, 1000)
- }
- })
- }
- }
-
- return function (c) {
- var e = Math.random() < 0.5
- console.error(indent + '%s %s for %d damage!',
- entry.basename,
- e ? 'is struck' : 'fires a chunk',
- c.length)
- }
-}
-
-function runaway (entry) {
- return function () {
- var e = Math.random() < 0.5
- console.error(indent + '%s %s',
- entry.basename,
- e ? 'turns to flee' : 'is vanquished!')
- indent = indent.slice(0, -1)
- }
-}
-
-w.on('entry', attacks)
-// w.on('ready', function () { attacks(w) })
-function attacks (entry) {
- console.error(indent + '%s %s!', entry.basename,
- entry.type === 'Directory' ? 'calls for backup' : 'attacks')
- entry.on('entry', attacks)
-}
-
-var ended = false
-var i = 1
-r.on('end', function () {
- if (foggy) clearTimeout(foggy)
- console.error("\u001b[mIT'S OVER!!")
- console.error('A WINNAR IS YOU!')
-
- console.log('ok ' + (i++) + ' A WINNAR IS YOU')
- ended = true
- // now go through and verify that everything in there is a dir.
- var p = path.resolve(__dirname, 'filter-copy')
- var checker = fstream.Reader({ path: p })
- checker.checker = true
- checker.on('child', function (e) {
- var ok = e.type === 'Directory'
- console.log((ok ? '' : 'not ') + 'ok ' + (i++) +
- ' should be a dir: ' +
- e.path.substr(checker.path.length + 1))
- })
-})
-
-process.on('exit', function () {
- console.log((ended ? '' : 'not ') + 'ok ' + (i) + ' ended')
- console.log('1..' + i)
-})
-
-r.pipe(w)
diff --git a/node_modules/fstream/examples/pipe.js b/node_modules/fstream/examples/pipe.js
deleted file mode 100644
index 3de42ef..0000000
--- a/node_modules/fstream/examples/pipe.js
+++ /dev/null
@@ -1,118 +0,0 @@
-var fstream = require('../fstream.js')
-var path = require('path')
-
-var r = fstream.Reader({
- path: path.dirname(__dirname),
- filter: function () {
- return !this.basename.match(/^\./) &&
- !this.basename.match(/^node_modules$/) &&
- !this.basename.match(/^deep-copy$/)
- }
-})
-
-var w = fstream.Writer({
- path: path.resolve(__dirname, 'deep-copy'),
- type: 'Directory'
-})
-
-var indent = ''
-
-r.on('entry', appears)
-r.on('ready', function () {
- console.error('ready to begin!', r.path)
-})
-
-function appears (entry) {
- console.error(indent + 'a %s appears!', entry.type, entry.basename, typeof entry.basename, entry)
- if (foggy) {
- console.error('FOGGY!')
- var p = entry
- do {
- console.error(p.depth, p.path, p._paused)
- p = p.parent
- } while (p)
-
- throw new Error('\u001b[mshould not have entries while foggy')
- }
- indent += '\t'
- entry.on('data', missile(entry))
- entry.on('end', runaway(entry))
- entry.on('entry', appears)
-}
-
-var foggy
-function missile (entry) {
- function liftFog (who) {
- if (!foggy) return
- if (who) {
- console.error('%s breaks the spell!', who && who.path)
- } else {
- console.error('the spell expires!')
- }
- console.error('\u001b[mthe fog lifts!\n')
- clearTimeout(foggy)
- foggy = null
- if (entry._paused) entry.resume()
- }
-
- if (entry.type === 'Directory') {
- var ended = false
- entry.once('end', function () { ended = true })
- return function (c) {
- // throw in some pathological pause()/resume() behavior
- // just for extra fun.
- process.nextTick(function () {
- if (!foggy && !ended) { // && Math.random() < 0.3) {
- console.error(indent + '%s casts a spell', entry.basename)
- console.error('\na slowing fog comes over the battlefield...\n\u001b[32m')
- entry.pause()
- entry.once('resume', liftFog)
- foggy = setTimeout(liftFog, 10)
- }
- })
- }
- }
-
- return function (c) {
- var e = Math.random() < 0.5
- console.error(indent + '%s %s for %d damage!',
- entry.basename,
- e ? 'is struck' : 'fires a chunk',
- c.length)
- }
-}
-
-function runaway (entry) {
- return function () {
- var e = Math.random() < 0.5
- console.error(indent + '%s %s',
- entry.basename,
- e ? 'turns to flee' : 'is vanquished!')
- indent = indent.slice(0, -1)
- }
-}
-
-w.on('entry', attacks)
-// w.on('ready', function () { attacks(w) })
-function attacks (entry) {
- console.error(indent + '%s %s!', entry.basename,
- entry.type === 'Directory' ? 'calls for backup' : 'attacks')
- entry.on('entry', attacks)
-}
-
-var ended = false
-r.on('end', function () {
- if (foggy) clearTimeout(foggy)
- console.error("\u001b[mIT'S OVER!!")
- console.error('A WINNAR IS YOU!')
-
- console.log('ok 1 A WINNAR IS YOU')
- ended = true
-})
-
-process.on('exit', function () {
- console.log((ended ? '' : 'not ') + 'ok 2 ended')
- console.log('1..2')
-})
-
-r.pipe(w)
diff --git a/node_modules/fstream/examples/reader.js b/node_modules/fstream/examples/reader.js
deleted file mode 100644
index 19affbe..0000000
--- a/node_modules/fstream/examples/reader.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var fstream = require('../fstream.js')
-var tap = require('tap')
-var fs = require('fs')
-var path = require('path')
-var dir = path.dirname(__dirname)
-
-tap.test('reader test', function (t) {
- var children = -1
- var gotReady = false
- var ended = false
-
- var r = fstream.Reader({
- path: dir,
- filter: function () {
- // return this.parent === r
- return this.parent === r || this === r
- }
- })
-
- r.on('ready', function () {
- gotReady = true
- children = fs.readdirSync(dir).length
- console.error('Setting expected children to ' + children)
- t.equal(r.type, 'Directory', 'should be a directory')
- })
-
- r.on('entry', function (entry) {
- children--
- if (!gotReady) {
- t.fail('children before ready!')
- }
- t.equal(entry.dirname, r.path, 'basename is parent dir')
- })
-
- r.on('error', function (er) {
- t.fail(er)
- t.end()
- process.exit(1)
- })
-
- r.on('end', function () {
- t.equal(children, 0, 'should have seen all children')
- ended = true
- })
-
- var closed = false
- r.on('close', function () {
- t.ok(ended, 'saw end before close')
- t.notOk(closed, 'close should only happen once')
- closed = true
- t.end()
- })
-})
-
-tap.test('reader error test', function (t) {
- // assumes non-root on a *nix system
- var r = fstream.Reader({ path: '/etc/shadow' })
-
- r.once('error', function (er) {
- t.ok(true)
- t.end()
- })
-
- r.on('end', function () {
- t.fail('reader ended without error')
- t.end()
- })
-})
diff --git a/node_modules/fstream/examples/symlink-write.js b/node_modules/fstream/examples/symlink-write.js
deleted file mode 100644
index 19e81ee..0000000
--- a/node_modules/fstream/examples/symlink-write.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var fstream = require('../fstream.js')
-var notOpen = false
-process.chdir(__dirname)
-
-fstream
- .Writer({
- path: 'path/to/symlink',
- linkpath: './file',
- isSymbolicLink: true,
- mode: '0755' // octal strings supported
- })
- .on('close', function () {
- notOpen = true
- var fs = require('fs')
- var s = fs.lstatSync('path/to/symlink')
- var isSym = s.isSymbolicLink()
- console.log((isSym ? '' : 'not ') + 'ok 1 should be symlink')
- var t = fs.readlinkSync('path/to/symlink')
- var isTarget = t === './file'
- console.log((isTarget ? '' : 'not ') + 'ok 2 should link to ./file')
- })
- .end()
-
-process.on('exit', function () {
- console.log((notOpen ? '' : 'not ') + 'ok 3 should be closed')
- console.log('1..3')
-})
diff --git a/node_modules/fstream/fstream.js b/node_modules/fstream/fstream.js
deleted file mode 100644
index c0eb3be..0000000
--- a/node_modules/fstream/fstream.js
+++ /dev/null
@@ -1,35 +0,0 @@
-exports.Abstract = require('./lib/abstract.js')
-exports.Reader = require('./lib/reader.js')
-exports.Writer = require('./lib/writer.js')
-
-exports.File = {
- Reader: require('./lib/file-reader.js'),
- Writer: require('./lib/file-writer.js')
-}
-
-exports.Dir = {
- Reader: require('./lib/dir-reader.js'),
- Writer: require('./lib/dir-writer.js')
-}
-
-exports.Link = {
- Reader: require('./lib/link-reader.js'),
- Writer: require('./lib/link-writer.js')
-}
-
-exports.Proxy = {
- Reader: require('./lib/proxy-reader.js'),
- Writer: require('./lib/proxy-writer.js')
-}
-
-exports.Reader.Dir = exports.DirReader = exports.Dir.Reader
-exports.Reader.File = exports.FileReader = exports.File.Reader
-exports.Reader.Link = exports.LinkReader = exports.Link.Reader
-exports.Reader.Proxy = exports.ProxyReader = exports.Proxy.Reader
-
-exports.Writer.Dir = exports.DirWriter = exports.Dir.Writer
-exports.Writer.File = exports.FileWriter = exports.File.Writer
-exports.Writer.Link = exports.LinkWriter = exports.Link.Writer
-exports.Writer.Proxy = exports.ProxyWriter = exports.Proxy.Writer
-
-exports.collect = require('./lib/collect.js')
diff --git a/node_modules/fstream/lib/abstract.js b/node_modules/fstream/lib/abstract.js
deleted file mode 100644
index 97c120e..0000000
--- a/node_modules/fstream/lib/abstract.js
+++ /dev/null
@@ -1,85 +0,0 @@
-// the parent class for all fstreams.
-
-module.exports = Abstract
-
-var Stream = require('stream').Stream
-var inherits = require('inherits')
-
-function Abstract () {
- Stream.call(this)
-}
-
-inherits(Abstract, Stream)
-
-Abstract.prototype.on = function (ev, fn) {
- if (ev === 'ready' && this.ready) {
- process.nextTick(fn.bind(this))
- } else {
- Stream.prototype.on.call(this, ev, fn)
- }
- return this
-}
-
-Abstract.prototype.abort = function () {
- this._aborted = true
- this.emit('abort')
-}
-
-Abstract.prototype.destroy = function () {}
-
-Abstract.prototype.warn = function (msg, code) {
- var self = this
- var er = decorate(msg, code, self)
- if (!self.listeners('warn')) {
- console.error('%s %s\n' +
- 'path = %s\n' +
- 'syscall = %s\n' +
- 'fstream_type = %s\n' +
- 'fstream_path = %s\n' +
- 'fstream_unc_path = %s\n' +
- 'fstream_class = %s\n' +
- 'fstream_stack =\n%s\n',
- code || 'UNKNOWN',
- er.stack,
- er.path,
- er.syscall,
- er.fstream_type,
- er.fstream_path,
- er.fstream_unc_path,
- er.fstream_class,
- er.fstream_stack.join('\n'))
- } else {
- self.emit('warn', er)
- }
-}
-
-Abstract.prototype.info = function (msg, code) {
- this.emit('info', msg, code)
-}
-
-Abstract.prototype.error = function (msg, code, th) {
- var er = decorate(msg, code, this)
- if (th) throw er
- else this.emit('error', er)
-}
-
-function decorate (er, code, self) {
- if (!(er instanceof Error)) er = new Error(er)
- er.code = er.code || code
- er.path = er.path || self.path
- er.fstream_type = er.fstream_type || self.type
- er.fstream_path = er.fstream_path || self.path
- if (self._path !== self.path) {
- er.fstream_unc_path = er.fstream_unc_path || self._path
- }
- if (self.linkpath) {
- er.fstream_linkpath = er.fstream_linkpath || self.linkpath
- }
- er.fstream_class = er.fstream_class || self.constructor.name
- er.fstream_stack = er.fstream_stack ||
- new Error().stack.split(/\n/).slice(3).map(function (s) {
- return s.replace(/^ {4}at /, '')
- })
-
- return er
-}
diff --git a/node_modules/fstream/lib/collect.js b/node_modules/fstream/lib/collect.js
deleted file mode 100644
index e5d4f35..0000000
--- a/node_modules/fstream/lib/collect.js
+++ /dev/null
@@ -1,70 +0,0 @@
-module.exports = collect
-
-function collect (stream) {
- if (stream._collected) return
-
- if (stream._paused) return stream.on('resume', collect.bind(null, stream))
-
- stream._collected = true
- stream.pause()
-
- stream.on('data', save)
- stream.on('end', save)
- var buf = []
- function save (b) {
- if (typeof b === 'string') b = new Buffer(b)
- if (Buffer.isBuffer(b) && !b.length) return
- buf.push(b)
- }
-
- stream.on('entry', saveEntry)
- var entryBuffer = []
- function saveEntry (e) {
- collect(e)
- entryBuffer.push(e)
- }
-
- stream.on('proxy', proxyPause)
- function proxyPause (p) {
- p.pause()
- }
-
- // replace the pipe method with a new version that will
- // unlock the buffered stuff. if you just call .pipe()
- // without a destination, then it'll re-play the events.
- stream.pipe = (function (orig) {
- return function (dest) {
- // console.error(' === open the pipes', dest && dest.path)
-
- // let the entries flow through one at a time.
- // Once they're all done, then we can resume completely.
- var e = 0
- ;(function unblockEntry () {
- var entry = entryBuffer[e++]
- // console.error(" ==== unblock entry", entry && entry.path)
- if (!entry) return resume()
- entry.on('end', unblockEntry)
- if (dest) dest.add(entry)
- else stream.emit('entry', entry)
- })()
-
- function resume () {
- stream.removeListener('entry', saveEntry)
- stream.removeListener('data', save)
- stream.removeListener('end', save)
-
- stream.pipe = orig
- if (dest) stream.pipe(dest)
-
- buf.forEach(function (b) {
- if (b) stream.emit('data', b)
- else stream.emit('end')
- })
-
- stream.resume()
- }
-
- return dest
- }
- })(stream.pipe)
-}
diff --git a/node_modules/fstream/lib/dir-reader.js b/node_modules/fstream/lib/dir-reader.js
deleted file mode 100644
index 820cdc8..0000000
--- a/node_modules/fstream/lib/dir-reader.js
+++ /dev/null
@@ -1,252 +0,0 @@
-// A thing that emits "entry" events with Reader objects
-// Pausing it causes it to stop emitting entry events, and also
-// pauses the current entry if there is one.
-
-module.exports = DirReader
-
-var fs = require('graceful-fs')
-var inherits = require('inherits')
-var path = require('path')
-var Reader = require('./reader.js')
-var assert = require('assert').ok
-
-inherits(DirReader, Reader)
-
-function DirReader (props) {
- var self = this
- if (!(self instanceof DirReader)) {
- throw new Error('DirReader must be called as constructor.')
- }
-
- // should already be established as a Directory type
- if (props.type !== 'Directory' || !props.Directory) {
- throw new Error('Non-directory type ' + props.type)
- }
-
- self.entries = null
- self._index = -1
- self._paused = false
- self._length = -1
-
- if (props.sort) {
- this.sort = props.sort
- }
-
- Reader.call(this, props)
-}
-
-DirReader.prototype._getEntries = function () {
- var self = this
-
- // race condition. might pause() before calling _getEntries,
- // and then resume, and try to get them a second time.
- if (self._gotEntries) return
- self._gotEntries = true
-
- fs.readdir(self._path, function (er, entries) {
- if (er) return self.error(er)
-
- self.entries = entries
-
- self.emit('entries', entries)
- if (self._paused) self.once('resume', processEntries)
- else processEntries()
-
- function processEntries () {
- self._length = self.entries.length
- if (typeof self.sort === 'function') {
- self.entries = self.entries.sort(self.sort.bind(self))
- }
- self._read()
- }
- })
-}
-
-// start walking the dir, and emit an "entry" event for each one.
-DirReader.prototype._read = function () {
- var self = this
-
- if (!self.entries) return self._getEntries()
-
- if (self._paused || self._currentEntry || self._aborted) {
- // console.error('DR paused=%j, current=%j, aborted=%j', self._paused, !!self._currentEntry, self._aborted)
- return
- }
-
- self._index++
- if (self._index >= self.entries.length) {
- if (!self._ended) {
- self._ended = true
- self.emit('end')
- self.emit('close')
- }
- return
- }
-
- // ok, handle this one, then.
-
- // save creating a proxy, by stat'ing the thing now.
- var p = path.resolve(self._path, self.entries[self._index])
- assert(p !== self._path)
- assert(self.entries[self._index])
-
- // set this to prevent trying to _read() again in the stat time.
- self._currentEntry = p
- fs[ self.props.follow ? 'stat' : 'lstat' ](p, function (er, stat) {
- if (er) return self.error(er)
-
- var who = self._proxy || self
-
- stat.path = p
- stat.basename = path.basename(p)
- stat.dirname = path.dirname(p)
- var childProps = self.getChildProps.call(who, stat)
- childProps.path = p
- childProps.basename = path.basename(p)
- childProps.dirname = path.dirname(p)
-
- var entry = Reader(childProps, stat)
-
- // console.error("DR Entry", p, stat.size)
-
- self._currentEntry = entry
-
- // "entry" events are for direct entries in a specific dir.
- // "child" events are for any and all children at all levels.
- // This nomenclature is not completely final.
-
- entry.on('pause', function (who) {
- if (!self._paused && !entry._disowned) {
- self.pause(who)
- }
- })
-
- entry.on('resume', function (who) {
- if (self._paused && !entry._disowned) {
- self.resume(who)
- }
- })
-
- entry.on('stat', function (props) {
- self.emit('_entryStat', entry, props)
- if (entry._aborted) return
- if (entry._paused) {
- entry.once('resume', function () {
- self.emit('entryStat', entry, props)
- })
- } else self.emit('entryStat', entry, props)
- })
-
- entry.on('ready', function EMITCHILD () {
- // console.error("DR emit child", entry._path)
- if (self._paused) {
- // console.error(" DR emit child - try again later")
- // pause the child, and emit the "entry" event once we drain.
- // console.error("DR pausing child entry")
- entry.pause(self)
- return self.once('resume', EMITCHILD)
- }
-
- // skip over sockets. they can't be piped around properly,
- // so there's really no sense even acknowledging them.
- // if someone really wants to see them, they can listen to
- // the "socket" events.
- if (entry.type === 'Socket') {
- self.emit('socket', entry)
- } else {
- self.emitEntry(entry)
- }
- })
-
- var ended = false
- entry.on('close', onend)
- entry.on('disown', onend)
- function onend () {
- if (ended) return
- ended = true
- self.emit('childEnd', entry)
- self.emit('entryEnd', entry)
- self._currentEntry = null
- if (!self._paused) {
- self._read()
- }
- }
-
- // XXX Remove this. Works in node as of 0.6.2 or so.
- // Long filenames should not break stuff.
- entry.on('error', function (er) {
- if (entry._swallowErrors) {
- self.warn(er)
- entry.emit('end')
- entry.emit('close')
- } else {
- self.emit('error', er)
- }
- })
-
- // proxy up some events.
- ;[
- 'child',
- 'childEnd',
- 'warn'
- ].forEach(function (ev) {
- entry.on(ev, self.emit.bind(self, ev))
- })
- })
-}
-
-DirReader.prototype.disown = function (entry) {
- entry.emit('beforeDisown')
- entry._disowned = true
- entry.parent = entry.root = null
- if (entry === this._currentEntry) {
- this._currentEntry = null
- }
- entry.emit('disown')
-}
-
-DirReader.prototype.getChildProps = function () {
- return {
- depth: this.depth + 1,
- root: this.root || this,
- parent: this,
- follow: this.follow,
- filter: this.filter,
- sort: this.props.sort,
- hardlinks: this.props.hardlinks
- }
-}
-
-DirReader.prototype.pause = function (who) {
- var self = this
- if (self._paused) return
- who = who || self
- self._paused = true
- if (self._currentEntry && self._currentEntry.pause) {
- self._currentEntry.pause(who)
- }
- self.emit('pause', who)
-}
-
-DirReader.prototype.resume = function (who) {
- var self = this
- if (!self._paused) return
- who = who || self
-
- self._paused = false
- // console.error('DR Emit Resume', self._path)
- self.emit('resume', who)
- if (self._paused) {
- // console.error('DR Re-paused', self._path)
- return
- }
-
- if (self._currentEntry) {
- if (self._currentEntry.resume) self._currentEntry.resume(who)
- } else self._read()
-}
-
-DirReader.prototype.emitEntry = function (entry) {
- this.emit('entry', entry)
- this.emit('child', entry)
-}
diff --git a/node_modules/fstream/lib/dir-writer.js b/node_modules/fstream/lib/dir-writer.js
deleted file mode 100644
index ec50dca..0000000
--- a/node_modules/fstream/lib/dir-writer.js
+++ /dev/null
@@ -1,174 +0,0 @@
-// It is expected that, when .add() returns false, the consumer
-// of the DirWriter will pause until a "drain" event occurs. Note
-// that this is *almost always going to be the case*, unless the
-// thing being written is some sort of unsupported type, and thus
-// skipped over.
-
-module.exports = DirWriter
-
-var Writer = require('./writer.js')
-var inherits = require('inherits')
-var mkdir = require('mkdirp')
-var path = require('path')
-var collect = require('./collect.js')
-
-inherits(DirWriter, Writer)
-
-function DirWriter (props) {
- var self = this
- if (!(self instanceof DirWriter)) {
- self.error('DirWriter must be called as constructor.', null, true)
- }
-
- // should already be established as a Directory type
- if (props.type !== 'Directory' || !props.Directory) {
- self.error('Non-directory type ' + props.type + ' ' +
- JSON.stringify(props), null, true)
- }
-
- Writer.call(this, props)
-}
-
-DirWriter.prototype._create = function () {
- var self = this
- mkdir(self._path, Writer.dirmode, function (er) {
- if (er) return self.error(er)
- // ready to start getting entries!
- self.ready = true
- self.emit('ready')
- self._process()
- })
-}
-
-// a DirWriter has an add(entry) method, but its .write() doesn't
-// do anything. Why a no-op rather than a throw? Because this
-// leaves open the door for writing directory metadata for
-// gnu/solaris style dumpdirs.
-DirWriter.prototype.write = function () {
- return true
-}
-
-DirWriter.prototype.end = function () {
- this._ended = true
- this._process()
-}
-
-DirWriter.prototype.add = function (entry) {
- var self = this
-
- // console.error('\tadd', entry._path, '->', self._path)
- collect(entry)
- if (!self.ready || self._currentEntry) {
- self._buffer.push(entry)
- return false
- }
-
- // create a new writer, and pipe the incoming entry into it.
- if (self._ended) {
- return self.error('add after end')
- }
-
- self._buffer.push(entry)
- self._process()
-
- return this._buffer.length === 0
-}
-
-DirWriter.prototype._process = function () {
- var self = this
-
- // console.error('DW Process p=%j', self._processing, self.basename)
-
- if (self._processing) return
-
- var entry = self._buffer.shift()
- if (!entry) {
- // console.error("DW Drain")
- self.emit('drain')
- if (self._ended) self._finish()
- return
- }
-
- self._processing = true
- // console.error("DW Entry", entry._path)
-
- self.emit('entry', entry)
-
- // ok, add this entry
- //
- // don't allow recursive copying
- var p = entry
- var pp
- do {
- pp = p._path || p.path
- if (pp === self.root._path || pp === self._path ||
- (pp && pp.indexOf(self._path) === 0)) {
- // console.error('DW Exit (recursive)', entry.basename, self._path)
- self._processing = false
- if (entry._collected) entry.pipe()
- return self._process()
- }
- p = p.parent
- } while (p)
-
- // console.error("DW not recursive")
-
- // chop off the entry's root dir, replace with ours
- var props = {
- parent: self,
- root: self.root || self,
- type: entry.type,
- depth: self.depth + 1
- }
-
- pp = entry._path || entry.path || entry.props.path
- if (entry.parent) {
- pp = pp.substr(entry.parent._path.length + 1)
- }
- // get rid of any ../../ shenanigans
- props.path = path.join(self.path, path.join('/', pp))
-
- // if i have a filter, the child should inherit it.
- props.filter = self.filter
-
- // all the rest of the stuff, copy over from the source.
- Object.keys(entry.props).forEach(function (k) {
- if (!props.hasOwnProperty(k)) {
- props[k] = entry.props[k]
- }
- })
-
- // not sure at this point what kind of writer this is.
- var child = self._currentChild = new Writer(props)
- child.on('ready', function () {
- // console.error("DW Child Ready", child.type, child._path)
- // console.error(" resuming", entry._path)
- entry.pipe(child)
- entry.resume()
- })
-
- // XXX Make this work in node.
- // Long filenames should not break stuff.
- child.on('error', function (er) {
- if (child._swallowErrors) {
- self.warn(er)
- child.emit('end')
- child.emit('close')
- } else {
- self.emit('error', er)
- }
- })
-
- // we fire _end internally *after* end, so that we don't move on
- // until any "end" listeners have had their chance to do stuff.
- child.on('close', onend)
- var ended = false
- function onend () {
- if (ended) return
- ended = true
- // console.error("* DW Child end", child.basename)
- self._currentChild = null
- self._processing = false
- self._process()
- }
-}
diff --git a/node_modules/fstream/lib/file-reader.js b/node_modules/fstream/lib/file-reader.js
deleted file mode 100644
index baa01f4..0000000
--- a/node_modules/fstream/lib/file-reader.js
+++ /dev/null
@@ -1,150 +0,0 @@
-// Basically just a wrapper around an fs.ReadStream
-
-module.exports = FileReader
-
-var fs = require('graceful-fs')
-var inherits = require('inherits')
-var Reader = require('./reader.js')
-var EOF = {EOF: true}
-var CLOSE = {CLOSE: true}
-
-inherits(FileReader, Reader)
-
-function FileReader (props) {
- // console.error(" FR create", props.path, props.size, new Error().stack)
- var self = this
- if (!(self instanceof FileReader)) {
- throw new Error('FileReader must be called as constructor.')
- }
-
- // should already be established as a File type
- // XXX Todo: preserve hardlinks by tracking dev+inode+nlink,
- // with a HardLinkReader class.
- if (!((props.type === 'Link' && props.Link) ||
- (props.type === 'File' && props.File))) {
- throw new Error('Non-file type ' + props.type)
- }
-
- self._buffer = []
- self._bytesEmitted = 0
- Reader.call(self, props)
-}
-
-FileReader.prototype._getStream = function () {
- var self = this
- var stream = self._stream = fs.createReadStream(self._path, self.props)
-
- if (self.props.blksize) {
- stream.bufferSize = self.props.blksize
- }
-
- stream.on('open', self.emit.bind(self, 'open'))
-
- stream.on('data', function (c) {
- // console.error('\t\t%d %s', c.length, self.basename)
- self._bytesEmitted += c.length
- // no point saving empty chunks
- if (!c.length) {
- return
- } else if (self._paused || self._buffer.length) {
- self._buffer.push(c)
- self._read()
- } else self.emit('data', c)
- })
-
- stream.on('end', function () {
- if (self._paused || self._buffer.length) {
- // console.error('FR Buffering End', self._path)
- self._buffer.push(EOF)
- self._read()
- } else {
- self.emit('end')
- }
-
- if (self._bytesEmitted !== self.props.size) {
- self.error("Didn't get expected byte count\n" +
- 'expect: ' + self.props.size + '\n' +
- 'actual: ' + self._bytesEmitted)
- }
- })
-
- stream.on('close', function () {
- if (self._paused || self._buffer.length) {
- // console.error('FR Buffering Close', self._path)
- self._buffer.push(CLOSE)
- self._read()
- } else {
- // console.error('FR close 1', self._path)
- self.emit('close')
- }
- })
-
- stream.on('error', function (e) {
- self.emit('error', e)
- })
-
- self._read()
-}
-
-FileReader.prototype._read = function () {
- var self = this
- // console.error('FR _read', self._path)
- if (self._paused) {
- // console.error('FR _read paused', self._path)
- return
- }
-
- if (!self._stream) {
- // console.error('FR _getStream calling', self._path)
- return self._getStream()
- }
-
- // clear out the buffer, if there is one.
- if (self._buffer.length) {
- // console.error('FR _read has buffer', self._buffer.length, self._path)
- var buf = self._buffer
- for (var i = 0, l = buf.length; i < l; i++) {
- var c = buf[i]
- if (c === EOF) {
- // console.error('FR Read emitting buffered end', self._path)
- self.emit('end')
- } else if (c === CLOSE) {
- // console.error('FR Read emitting buffered close', self._path)
- self.emit('close')
- } else {
- // console.error('FR Read emitting buffered data', self._path)
- self.emit('data', c)
- }
-
- if (self._paused) {
- // console.error('FR Read Re-pausing at '+i, self._path)
- self._buffer = buf.slice(i)
- return
- }
- }
- self._buffer.length = 0
- }
-// console.error("FR _read done")
-// that's about all there is to it.
-}
-
-FileReader.prototype.pause = function (who) {
- var self = this
- // console.error('FR Pause', self._path)
- if (self._paused) return
- who = who || self
- self._paused = true
- if (self._stream) self._stream.pause()
- self.emit('pause', who)
-}
-
-FileReader.prototype.resume = function (who) {
- var self = this
- // console.error('FR Resume', self._path)
- if (!self._paused) return
- who = who || self
- self.emit('resume', who)
- self._paused = false
- if (self._stream) self._stream.resume()
- self._read()
-}
diff --git a/node_modules/fstream/lib/file-writer.js b/node_modules/fstream/lib/file-writer.js
deleted file mode 100644
index 4c803d8..0000000
--- a/node_modules/fstream/lib/file-writer.js
+++ /dev/null
@@ -1,107 +0,0 @@
-module.exports = FileWriter
-
-var fs = require('graceful-fs')
-var Writer = require('./writer.js')
-var inherits = require('inherits')
-var EOF = {}
-
-inherits(FileWriter, Writer)
-
-function FileWriter (props) {
- var self = this
- if (!(self instanceof FileWriter)) {
- throw new Error('FileWriter must be called as constructor.')
- }
-
- // should already be established as a File type
- if (props.type !== 'File' || !props.File) {
- throw new Error('Non-file type ' + props.type)
- }
-
- self._buffer = []
- self._bytesWritten = 0
-
- Writer.call(this, props)
-}
-
-FileWriter.prototype._create = function () {
- var self = this
- if (self._stream) return
-
- var so = {}
- if (self.props.flags) so.flags = self.props.flags
- so.mode = Writer.filemode
- if (self._old && self._old.blksize) so.bufferSize = self._old.blksize
-
- self._stream = fs.createWriteStream(self._path, so)
-
- self._stream.on('open', function () {
- // console.error("FW open", self._buffer, self._path)
- self.ready = true
- self._buffer.forEach(function (c) {
- if (c === EOF) self._stream.end()
- else self._stream.write(c)
- })
- self.emit('ready')
- // give this a kick just in case it needs it.
- self.emit('drain')
- })
-
- self._stream.on('error', function (er) { self.emit('error', er) })
-
- self._stream.on('drain', function () { self.emit('drain') })
-
- self._stream.on('close', function () {
- // console.error('\n\nFW Stream Close', self._path, self.size)
- self._finish()
- })
-}
-
-FileWriter.prototype.write = function (c) {
- var self = this
-
- self._bytesWritten += c.length
-
- if (!self.ready) {
- if (!Buffer.isBuffer(c) && typeof c !== 'string') {
- throw new Error('invalid write data')
- }
- self._buffer.push(c)
- return false
- }
-
- var ret = self._stream.write(c)
- // console.error('\t-- fw wrote, _stream says', ret, self._stream._queue.length)
-
- // allow 2 buffered writes, because otherwise there's just too
- // much stop and go bs.
- if (ret === false && self._stream._queue) {
- return self._stream._queue.length <= 2
- } else {
- return ret
- }
-}
-
-FileWriter.prototype.end = function (c) {
- var self = this
-
- if (c) self.write(c)
-
- if (!self.ready) {
- self._buffer.push(EOF)
- return false
- }
-
- return self._stream.end()
-}
-
-FileWriter.prototype._finish = function () {
- var self = this
- if (typeof self.size === 'number' && self._bytesWritten !== self.size) {
- self.error(
- 'Did not get expected byte count.\n' +
- 'expect: ' + self.size + '\n' +
- 'actual: ' + self._bytesWritten)
- }
- Writer.prototype._finish.call(self)
-}
diff --git a/node_modules/fstream/lib/get-type.js b/node_modules/fstream/lib/get-type.js
deleted file mode 100644
index 19f6a65..0000000
--- a/node_modules/fstream/lib/get-type.js
+++ /dev/null
@@ -1,33 +0,0 @@
-module.exports = getType
-
-function getType (st) {
- var types = [
- 'Directory',
- 'File',
- 'SymbolicLink',
- 'Link', // special for hardlinks from tarballs
- 'BlockDevice',
- 'CharacterDevice',
- 'FIFO',
- 'Socket'
- ]
- var type
-
- if (st.type && types.indexOf(st.type) !== -1) {
- st[st.type] = true
- return st.type
- }
-
- for (var i = 0, l = types.length; i < l; i++) {
- type = types[i]
- var is = st[type] || st['is' + type]
- if (typeof is === 'function') is = is.call(st)
- if (is) {
- st[type] = true
- st.type = type
- return type
- }
- }
-
- return null
-}
diff --git a/node_modules/fstream/lib/link-reader.js b/node_modules/fstream/lib/link-reader.js
deleted file mode 100644
index fb4cc67..0000000
--- a/node_modules/fstream/lib/link-reader.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// Basically just a wrapper around an fs.readlink
-//
-// XXX: Enhance this to support the Link type, by keeping
-// a lookup table of {<dev+inode>:<path>}, so that hardlinks
-// can be preserved in tarballs.
-
-module.exports = LinkReader
-
-var fs = require('graceful-fs')
-var inherits = require('inherits')
-var Reader = require('./reader.js')
-
-inherits(LinkReader, Reader)
-
-function LinkReader (props) {
- var self = this
- if (!(self instanceof LinkReader)) {
- throw new Error('LinkReader must be called as constructor.')
- }
-
- if (!((props.type === 'Link' && props.Link) ||
- (props.type === 'SymbolicLink' && props.SymbolicLink))) {
- throw new Error('Non-link type ' + props.type)
- }
-
- Reader.call(self, props)
-}
-
-// When piping a LinkReader into a LinkWriter, we have to
-// already have the linkpath property set, so that has to
-// happen *before* the "ready" event, which means we need to
-// override the _stat method.
-LinkReader.prototype._stat = function (currentStat) {
- var self = this
- fs.readlink(self._path, function (er, linkpath) {
- if (er) return self.error(er)
- self.linkpath = self.props.linkpath = linkpath
- self.emit('linkpath', linkpath)
- Reader.prototype._stat.call(self, currentStat)
- })
-}
-
-LinkReader.prototype._read = function () {
- var self = this
- if (self._paused) return
- // basically just a no-op, since we got all the info we need
- // from the _stat method
- if (!self._ended) {
- self.emit('end')
- self.emit('close')
- self._ended = true
- }
-}
diff --git a/node_modules/fstream/lib/link-writer.js b/node_modules/fstream/lib/link-writer.js
deleted file mode 100644
index af54284..0000000
--- a/node_modules/fstream/lib/link-writer.js
+++ /dev/null
@@ -1,95 +0,0 @@
-module.exports = LinkWriter
-
-var fs = require('graceful-fs')
-var Writer = require('./writer.js')
-var inherits = require('inherits')
-var path = require('path')
-var rimraf = require('rimraf')
-
-inherits(LinkWriter, Writer)
-
-function LinkWriter (props) {
- var self = this
- if (!(self instanceof LinkWriter)) {
- throw new Error('LinkWriter must be called as constructor.')
- }
-
- // should already be established as a Link type
- if (!((props.type === 'Link' && props.Link) ||
- (props.type === 'SymbolicLink' && props.SymbolicLink))) {
- throw new Error('Non-link type ' + props.type)
- }
-
- if (props.linkpath === '') props.linkpath = '.'
- if (!props.linkpath) {
- self.error('Need linkpath property to create ' + props.type)
- }
-
- Writer.call(this, props)
-}
-
-LinkWriter.prototype._create = function () {
- // console.error(" LW _create")
- var self = this
- var hard = self.type === 'Link' || process.platform === 'win32'
- var link = hard ? 'link' : 'symlink'
- var lp = hard ? path.resolve(self.dirname, self.linkpath) : self.linkpath
-
- // can only change the link path by clobbering
- // For hard links, let's just assume that's always the case, since
- // there's no good way to read them if we don't already know.
- if (hard) return clobber(self, lp, link)
-
- fs.readlink(self._path, function (er, p) {
- // only skip creation if it's exactly the same link
- if (p && p === lp) return finish(self)
- clobber(self, lp, link)
- })
-}
-
-function clobber (self, lp, link) {
- rimraf(self._path, function (er) {
- if (er) return self.error(er)
- create(self, lp, link)
- })
-}
-
-function create (self, lp, link) {
- fs[link](lp, self._path, function (er) {
- // if this is a hard link, and we're in the process of writing out a
- // directory, it's very possible that the thing we're linking to
- // doesn't exist yet (especially if it was intended as a symlink),
- // so swallow ENOENT errors here and just soldier in.
- // Additionally, an EPERM or EACCES can happen on win32 if it's trying
- // to make a link to a directory. Again, just skip it.
- // A better solution would be to have fs.symlink be supported on
- // windows in some nice fashion.
- if (er) {
- if ((er.code === 'ENOENT' ||
- er.code === 'EACCES' ||
- er.code === 'EPERM') && process.platform === 'win32') {
- self.ready = true
- self.emit('ready')
- self.emit('end')
- self.emit('close')
- self.end = self._finish = function () {}
- } else return self.error(er)
- }
- finish(self)
- })
-}
-
-function finish (self) {
- self.ready = true
- self.emit('ready')
- if (self._ended && !self._finished) self._finish()
-}
-
-LinkWriter.prototype.end = function () {
- // console.error("LW finish in end")
- this._ended = true
- if (this.ready) {
- this._finished = true
- this._finish()
- }
-}
diff --git a/node_modules/fstream/lib/proxy-reader.js b/node_modules/fstream/lib/proxy-reader.js
deleted file mode 100644
index 4f431c9..0000000
--- a/node_modules/fstream/lib/proxy-reader.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// A reader for when we don't yet know what kind of thing
-// the thing is.
-
-module.exports = ProxyReader
-
-var Reader = require('./reader.js')
-var getType = require('./get-type.js')
-var inherits = require('inherits')
-var fs = require('graceful-fs')
-
-inherits(ProxyReader, Reader)
-
-function ProxyReader (props) {
- var self = this
- if (!(self instanceof ProxyReader)) {
- throw new Error('ProxyReader must be called as constructor.')
- }
-
- self.props = props
- self._buffer = []
- self.ready = false
-
- Reader.call(self, props)
-}
-
-ProxyReader.prototype._stat = function () {
- var self = this
- var props = self.props
- // stat the thing to see what the proxy should be.
- var stat = props.follow ? 'stat' : 'lstat'
-
- fs[stat](props.path, function (er, current) {
- var type
- if (er || !current) {
- type = 'File'
- } else {
- type = getType(current)
- }
-
- props[type] = true
- props.type = self.type = type
-
- self._old = current
- self._addProxy(Reader(props, current))
- })
-}
-
-ProxyReader.prototype._addProxy = function (proxy) {
- var self = this
- if (self._proxyTarget) {
- return self.error('proxy already set')
- }
-
- self._proxyTarget = proxy
- proxy._proxy = self
-
- ;[
- 'error',
- 'data',
- 'end',
- 'close',
- 'linkpath',
- 'entry',
- 'entryEnd',
- 'child',
- 'childEnd',
- 'warn',
- 'stat'
- ].forEach(function (ev) {
- // console.error('~~ proxy event', ev, self.path)
- proxy.on(ev, self.emit.bind(self, ev))
- })
-
- self.emit('proxy', proxy)
-
- proxy.on('ready', function () {
- // console.error("~~ proxy is ready!", self.path)
- self.ready = true
- self.emit('ready')
- })
-
- var calls = self._buffer
- self._buffer.length = 0
- calls.forEach(function (c) {
- proxy[c[0]].apply(proxy, c[1])
- })
-}
-
-ProxyReader.prototype.pause = function () {
- return this._proxyTarget ? this._proxyTarget.pause() : false
-}
-
-ProxyReader.prototype.resume = function () {
- return this._proxyTarget ? this._proxyTarget.resume() : false
-}
diff --git a/node_modules/fstream/lib/proxy-writer.js b/node_modules/fstream/lib/proxy-writer.js
deleted file mode 100644
index a654462..0000000
--- a/node_modules/fstream/lib/proxy-writer.js
+++ /dev/null
@@ -1,111 +0,0 @@
-// A writer for when we don't know what kind of thing
-// the thing is. That is, it's not explicitly set,
-// so we're going to make it whatever the thing already
-// is, or "File"
-//
-// Until then, collect all events.
-
-module.exports = ProxyWriter
-
-var Writer = require('./writer.js')
-var getType = require('./get-type.js')
-var inherits = require('inherits')
-var collect = require('./collect.js')
-var fs = require('fs')
-
-inherits(ProxyWriter, Writer)
-
-function ProxyWriter (props) {
- var self = this
- if (!(self instanceof ProxyWriter)) {
- throw new Error('ProxyWriter must be called as constructor.')
- }
-
- self.props = props
- self._needDrain = false
-
- Writer.call(self, props)
-}
-
-ProxyWriter.prototype._stat = function () {
- var self = this
- var props = self.props
- // stat the thing to see what the proxy should be.
- var stat = props.follow ? 'stat' : 'lstat'
-
- fs[stat](props.path, function (er, current) {
- var type
- if (er || !current) {
- type = 'File'
- } else {
- type = getType(current)
- }
-
- props[type] = true
- props.type = self.type = type
-
- self._old = current
- self._addProxy(Writer(props, current))
- })
-}
-
-ProxyWriter.prototype._addProxy = function (proxy) {
- // console.error("~~ set proxy", this.path)
- var self = this
- if (self._proxy) {
- return self.error('proxy already set')
- }
-
- self._proxy = proxy
- ;[
- 'ready',
- 'error',
- 'close',
- 'pipe',
- 'drain',
- 'warn'
- ].forEach(function (ev) {
- proxy.on(ev, self.emit.bind(self, ev))
- })
-
- self.emit('proxy', proxy)
-
- var calls = self._buffer
- calls.forEach(function (c) {
- // console.error("~~ ~~ proxy buffered call", c[0], c[1])
- proxy[c[0]].apply(proxy, c[1])
- })
- self._buffer.length = 0
- if (self._needsDrain) self.emit('drain')
-}
-
-ProxyWriter.prototype.add = function (entry) {
- // console.error("~~ proxy add")
- collect(entry)
-
- if (!this._proxy) {
- this._buffer.push(['add', [entry]])
- this._needDrain = true
- return false
- }
- return this._proxy.add(entry)
-}
-
-ProxyWriter.prototype.write = function (c) {
- // console.error('~~ proxy write')
- if (!this._proxy) {
- this._buffer.push(['write', [c]])
- this._needDrain = true
- return false
- }
- return this._proxy.write(c)
-}
-
-ProxyWriter.prototype.end = function (c) {
- // console.error('~~ proxy end')
- if (!this._proxy) {
- this._buffer.push(['end', [c]])
- return false
- }
- return this._proxy.end(c)
-}
diff --git a/node_modules/fstream/lib/reader.js b/node_modules/fstream/lib/reader.js
deleted file mode 100644
index be4f570..0000000
--- a/node_modules/fstream/lib/reader.js
+++ /dev/null
@@ -1,255 +0,0 @@
-module.exports = Reader
-
-var fs = require('graceful-fs')
-var Stream = require('stream').Stream
-var inherits = require('inherits')
-var path = require('path')
-var getType = require('./get-type.js')
-var hardLinks = Reader.hardLinks = {}
-var Abstract = require('./abstract.js')
-
-// Must do this *before* loading the child classes
-inherits(Reader, Abstract)
-
-var LinkReader = require('./link-reader.js')
-
-function Reader (props, currentStat) {
- var self = this
- if (!(self instanceof Reader)) return new Reader(props, currentStat)
-
- if (typeof props === 'string') {
- props = { path: props }
- }
-
- // polymorphism.
- // call fstream.Reader(dir) to get a DirReader object, etc.
- // Note that, unlike in the Writer case, ProxyReader is going
- // to be the *normal* state of affairs, since we rarely know
- // the type of a file prior to reading it.
-
- var type
- var ClassType
-
- if (props.type && typeof props.type === 'function') {
- type = props.type
- ClassType = type
- } else {
- type = getType(props)
- ClassType = Reader
- }
-
- if (currentStat && !type) {
- type = getType(currentStat)
- props[type] = true
- props.type = type
- }
-
- switch (type) {
- case 'Directory':
- ClassType = require('./dir-reader.js')
- break
-
- case 'Link':
- // XXX hard links are just files.
- // However, it would be good to keep track of files' dev+inode
- // and nlink values, and create a HardLinkReader that emits
- // a linkpath value of the original copy, so that the tar
- // writer can preserve them.
- // ClassType = HardLinkReader
- // break
-
- case 'File':
- ClassType = require('./file-reader.js')
- break
-
- case 'SymbolicLink':
- ClassType = LinkReader
- break
-
- case 'Socket':
- ClassType = require('./socket-reader.js')
- break
-
- case null:
- ClassType = require('./proxy-reader.js')
- break
- }
-
- if (!(self instanceof ClassType)) {
- return new ClassType(props)
- }
-
- Abstract.call(self)
-
- if (!props.path) {
- self.error('Must provide a path', null, true)
- }
-
- self.readable = true
- self.writable = false
-
- self.type = type
- self.props = props
- self.depth = props.depth = props.depth || 0
- self.parent = props.parent || null
- self.root = props.root || (props.parent && props.parent.root) || self
-
- self._path = self.path = path.resolve(props.path)
- if (process.platform === 'win32') {
- self.path = self._path = self.path.replace(/\?/g, '_')
- if (self._path.length >= 260) {
- // how DOES one create files on the moon?
- // if the path has spaces in it, then UNC will fail.
- self._swallowErrors = true
- // if (self._path.indexOf(" ") === -1) {
- self._path = '\\\\?\\' + self.path.replace(/\//g, '\\')
- // }
- }
- }
- self.basename = props.basename = path.basename(self.path)
- self.dirname = props.dirname = path.dirname(self.path)
-
- // these have served their purpose, and are now just noisy clutter
- props.parent = props.root = null
-
- // console.error("\n\n\n%s setting size to", props.path, props.size)
- self.size = props.size
- self.filter = typeof props.filter === 'function' ? props.filter : null
- if (props.sort === 'alpha') props.sort = alphasort
-
- // start the ball rolling.
- // this will stat the thing, and then call self._read()
- // to start reading whatever it is.
- // console.error("calling stat", props.path, currentStat)
- self._stat(currentStat)
-}
-
-function alphasort (a, b) {
- return a === b ? 0
- : a.toLowerCase() > b.toLowerCase() ? 1
- : a.toLowerCase() < b.toLowerCase() ? -1
- : a > b ? 1
- : -1
-}
-
-Reader.prototype._stat = function (currentStat) {
- var self = this
- var props = self.props
- var stat = props.follow ? 'stat' : 'lstat'
- // console.error("Reader._stat", self._path, currentStat)
- if (currentStat) process.nextTick(statCb.bind(null, null, currentStat))
- else fs[stat](self._path, statCb)
-
- function statCb (er, props_) {
- // console.error("Reader._stat, statCb", self._path, props_, props_.nlink)
- if (er) return self.error(er)
-
- Object.keys(props_).forEach(function (k) {
- props[k] = props_[k]
- })
-
- // if it's not the expected size, then abort here.
- if (undefined !== self.size && props.size !== self.size) {
- return self.error('incorrect size')
- }
- self.size = props.size
-
- var type = getType(props)
- var handleHardlinks = props.hardlinks !== false
-
- // special little thing for handling hardlinks.
- if (handleHardlinks && type !== 'Directory' && props.nlink && props.nlink > 1) {
- var k = props.dev + ':' + props.ino
- // console.error("Reader has nlink", self._path, k)
- if (hardLinks[k] === self._path || !hardLinks[k]) {
- hardLinks[k] = self._path
- } else {
- // switch into hardlink mode.
- type = self.type = self.props.type = 'Link'
- self.Link = self.props.Link = true
- self.linkpath = self.props.linkpath = hardLinks[k]
- // console.error("Hardlink detected, switching mode", self._path, self.linkpath)
- // Setting __proto__ would arguably be the "correct"
- // approach here, but that just seems too wrong.
- self._stat = self._read = LinkReader.prototype._read
- }
- }
-
- if (self.type && self.type !== type) {
- self.error('Unexpected type: ' + type)
- }
-
- // if the filter doesn't pass, then just skip over this one.
- // still have to emit end so that dir-walking can move on.
- if (self.filter) {
- var who = self._proxy || self
- // special handling for ProxyReaders
- if (!self.filter.call(who, who, props)) {
- if (!self._disowned) {
- self.abort()
- self.emit('end')
- self.emit('close')
- }
- return
- }
- }
-
- // last chance to abort or disown before the flow starts!
- var events = ['_stat', 'stat', 'ready']
- var e = 0
- ;(function go () {
- if (self._aborted) {
- self.emit('end')
- self.emit('close')
- return
- }
-
- if (self._paused && self.type !== 'Directory') {
- self.once('resume', go)
- return
- }
-
- var ev = events[e++]
- if (!ev) {
- return self._read()
- }
- self.emit(ev, props)
- go()
- })()
- }
-}
-
-Reader.prototype.pipe = function (dest) {
- var self = this
- if (typeof dest.add === 'function') {
- // piping to a multi-compatible, and we've got directory entries.
- self.on('entry', function (entry) {
- var ret = dest.add(entry)
- if (ret === false) {
- self.pause()
- }
- })
- }
-
- // console.error("R Pipe apply Stream Pipe")
- return Stream.prototype.pipe.apply(this, arguments)
-}
-
-Reader.prototype.pause = function (who) {
- this._paused = true
- who = who || this
- this.emit('pause', who)
- if (this._stream) this._stream.pause(who)
-}
-
-Reader.prototype.resume = function (who) {
- this._paused = false
- who = who || this
- this.emit('resume', who)
- if (this._stream) this._stream.resume(who)
- this._read()
-}
-
-Reader.prototype._read = function () {
- this.error('Cannot read unknown type: ' + this.type)
-}
diff --git a/node_modules/fstream/lib/socket-reader.js b/node_modules/fstream/lib/socket-reader.js
deleted file mode 100644
index e0456ba..0000000
--- a/node_modules/fstream/lib/socket-reader.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Just get the stats, and then don't do anything.
-// You can't really "read" from a socket. You "connect" to it.
-// Mostly, this is here so that reading a dir with a socket in it
-// doesn't blow up.
-
-module.exports = SocketReader
-
-var inherits = require('inherits')
-var Reader = require('./reader.js')
-
-inherits(SocketReader, Reader)
-
-function SocketReader (props) {
- var self = this
- if (!(self instanceof SocketReader)) {
- throw new Error('SocketReader must be called as constructor.')
- }
-
- if (!(props.type === 'Socket' && props.Socket)) {
- throw new Error('Non-socket type ' + props.type)
- }
-
- Reader.call(self, props)
-}
-
-SocketReader.prototype._read = function () {
- var self = this
- if (self._paused) return
- // basically just a no-op, since we got all the info we have
- // from the _stat method
- if (!self._ended) {
- self.emit('end')
- self.emit('close')
- self._ended = true
- }
-}
diff --git a/node_modules/fstream/lib/writer.js b/node_modules/fstream/lib/writer.js
deleted file mode 100644
index 3f10547..0000000
--- a/node_modules/fstream/lib/writer.js
+++ /dev/null
@@ -1,390 +0,0 @@
-module.exports = Writer
-
-var fs = require('graceful-fs')
-var inherits = require('inherits')
-var rimraf = require('rimraf')
-var mkdir = require('mkdirp')
-var path = require('path')
-var umask = process.platform === 'win32' ? 0 : process.umask()
-var getType = require('./get-type.js')
-var Abstract = require('./abstract.js')
-
-// Must do this *before* loading the child classes
-inherits(Writer, Abstract)
-
-Writer.dirmode = parseInt('0777', 8) & (~umask)
-Writer.filemode = parseInt('0666', 8) & (~umask)
-
-var DirWriter = require('./dir-writer.js')
-var LinkWriter = require('./link-writer.js')
-var FileWriter = require('./file-writer.js')
-var ProxyWriter = require('./proxy-writer.js')
-
-// props is the desired state. current is optionally the current stat,
-// provided here so that subclasses can avoid statting the target
-// more than necessary.
-function Writer (props, current) {
- var self = this
-
- if (typeof props === 'string') {
- props = { path: props }
- }
-
- // polymorphism.
- // call fstream.Writer(dir) to get a DirWriter object, etc.
- var type = getType(props)
- var ClassType = Writer
-
- switch (type) {
- case 'Directory':
- ClassType = DirWriter
- break
- case 'File':
- ClassType = FileWriter
- break
- case 'Link':
- case 'SymbolicLink':
- ClassType = LinkWriter
- break
- case null:
- default:
- // Don't know yet what type to create, so we wrap in a proxy.
- ClassType = ProxyWriter
- break
- }
-
- if (!(self instanceof ClassType)) return new ClassType(props)
-
- // now get down to business.
-
- Abstract.call(self)
-
- if (!props.path) self.error('Must provide a path', null, true)
-
- // props is what we want to set.
- // set some convenience properties as well.
- self.type = props.type
- self.props = props
- self.depth = props.depth || 0
- self.clobber = props.clobber === false ? props.clobber : true
- self.parent = props.parent || null
- self.root = props.root || (props.parent && props.parent.root) || self
-
- self._path = self.path = path.resolve(props.path)
- if (process.platform === 'win32') {
- self.path = self._path = self.path.replace(/\?/g, '_')
- if (self._path.length >= 260) {
- self._swallowErrors = true
- self._path = '\\\\?\\' + self.path.replace(/\//g, '\\')
- }
- }
- self.basename = path.basename(props.path)
- self.dirname = path.dirname(props.path)
- self.linkpath = props.linkpath || null
-
- props.parent = props.root = null
-
- // console.error("\n\n\n%s setting size to", props.path, props.size)
- self.size = props.size
-
- if (typeof props.mode === 'string') {
- props.mode = parseInt(props.mode, 8)
- }
-
- self.readable = false
- self.writable = true
-
- // buffer until ready, or while handling another entry
- self._buffer = []
- self.ready = false
-
- self.filter = typeof props.filter === 'function' ? props.filter : null
-
- // start the ball rolling.
- // this checks what's there already, and then calls
- // self._create() to call the impl-specific creation stuff.
- self._stat(current)
-}
-
-// Calling this means that it's something we can't create.
-// Just assert that it's already there, otherwise raise a warning.
-Writer.prototype._create = function () {
- var self = this
- fs[self.props.follow ? 'stat' : 'lstat'](self._path, function (er) {
- if (er) {
- return self.warn('Cannot create ' + self._path + '\n' +
- 'Unsupported type: ' + self.type, 'ENOTSUP')
- }
- self._finish()
- })
-}
-
-Writer.prototype._stat = function (current) {
- var self = this
- var props = self.props
- var stat = props.follow ? 'stat' : 'lstat'
- var who = self._proxy || self
-
- if (current) statCb(null, current)
- else fs[stat](self._path, statCb)
-
- function statCb (er, current) {
- if (self.filter && !self.filter.call(who, who, current)) {
- self._aborted = true
- self.emit('end')
- self.emit('close')
- return
- }
-
- // if it's not there, great. We'll just create it.
- // if it is there, then we'll need to change whatever differs
- if (er || !current) {
- return create(self)
- }
-
- self._old = current
- var currentType = getType(current)
-
- // if it's a type change, then we need to clobber or error.
- // if it's not a type change, then let the impl take care of it.
- if (currentType !== self.type || self.type === 'File' && current.nlink > 1) {
- return rimraf(self._path, function (er) {
- if (er) return self.error(er)
- self._old = null
- create(self)
- })
- }
-
- // otherwise, just handle in the app-specific way
- // this creates a fs.WriteStream, or mkdir's, or whatever
- create(self)
- }
-}
-
-function create (self) {
- // console.error("W create", self._path, Writer.dirmode)
-
- // XXX Need to clobber non-dirs that are in the way,
- // unless { clobber: false } in the props.
- mkdir(path.dirname(self._path), Writer.dirmode, function (er, made) {
- // console.error("W created", path.dirname(self._path), er)
- if (er) return self.error(er)
-
- // later on, we have to set the mode and owner for these
- self._madeDir = made
- return self._create()
- })
-}
-
-function endChmod (self, want, current, path, cb) {
- var wantMode = want.mode
- var chmod = want.follow || self.type !== 'SymbolicLink'
- ? 'chmod' : 'lchmod'
-
- if (!fs[chmod]) return cb()
- if (typeof wantMode !== 'number') return cb()
-
- var curMode = current.mode & parseInt('0777', 8)
- wantMode = wantMode & parseInt('0777', 8)
- if (wantMode === curMode) return cb()
-
- fs[chmod](path, wantMode, cb)
-}
-
-function endChown (self, want, current, path, cb) {
- // Don't even try it unless root. Too easy to EPERM.
- if (process.platform === 'win32') return cb()
- if (!process.getuid || process.getuid() !== 0) return cb()
- if (typeof want.uid !== 'number' &&
- typeof want.gid !== 'number') return cb()
-
- if (current.uid === want.uid &&
- current.gid === want.gid) return cb()
-
- var chown = (self.props.follow || self.type !== 'SymbolicLink')
- ? 'chown' : 'lchown'
- if (!fs[chown]) return cb()
-
- if (typeof want.uid !== 'number') want.uid = current.uid
- if (typeof want.gid !== 'number') want.gid = current.gid
-
- fs[chown](path, want.uid, want.gid, cb)
-}
-
-function endUtimes (self, want, current, path, cb) {
- if (!fs.utimes || process.platform === 'win32') return cb()
-
- var utimes = (want.follow || self.type !== 'SymbolicLink')
- ? 'utimes' : 'lutimes'
-
- if (utimes === 'lutimes' && !fs[utimes]) {
- utimes = 'utimes'
- }
-
- if (!fs[utimes]) return cb()
-
- var curA = current.atime
- var curM = current.mtime
- var meA = want.atime
- var meM = want.mtime
-
- if (meA === undefined) meA = curA
- if (meM === undefined) meM = curM
-
- if (!isDate(meA)) meA = new Date(meA)
- if (!isDate(meM)) meA = new Date(meM)
-
- if (meA.getTime() === curA.getTime() &&
- meM.getTime() === curM.getTime()) return cb()
-
- fs[utimes](path, meA, meM, cb)
-}
-
-// XXX This function is beastly. Break it up!
-Writer.prototype._finish = function () {
- var self = this
-
- if (self._finishing) return
- self._finishing = true
-
- // console.error(" W Finish", self._path, self.size)
-
- // set up all the things.
- // At this point, we're already done writing whatever we've gotta write,
- // adding files to the dir, etc.
- var todo = 0
- var errState = null
- var done = false
-
- if (self._old) {
- // the times will almost *certainly* have changed.
- // adds the utimes syscall, but remove another stat.
- self._old.atime = new Date(0)
- self._old.mtime = new Date(0)
- // console.error(" W Finish Stale Stat", self._path, self.size)
- setProps(self._old)
- } else {
- var stat = self.props.follow ? 'stat' : 'lstat'
- // console.error(" W Finish Stating", self._path, self.size)
- fs[stat](self._path, function (er, current) {
- // console.error(" W Finish Stated", self._path, self.size, current)
- if (er) {
- // if we're in the process of writing out a
- // directory, it's very possible that the thing we're linking to
- // doesn't exist yet (especially if it was intended as a symlink),
- // so swallow ENOENT errors here and just soldier on.
- if (er.code === 'ENOENT' &&
- (self.type === 'Link' || self.type === 'SymbolicLink') &&
- process.platform === 'win32') {
- self.ready = true
- self.emit('ready')
- self.emit('end')
- self.emit('close')
- self.end = self._finish = function () {}
- return
- } else return self.error(er)
- }
- setProps(self._old = current)
- })
- }
-
- return
-
- function setProps (current) {
- todo += 3
- endChmod(self, self.props, current, self._path, next('chmod'))
- endChown(self, self.props, current, self._path, next('chown'))
- endUtimes(self, self.props, current, self._path, next('utimes'))
- }
-
- function next (what) {
- return function (er) {
- // console.error(" W Finish", what, todo)
- if (errState) return
- if (er) {
- er.fstream_finish_call = what
- return self.error(errState = er)
- }
- if (--todo > 0) return
- if (done) return
- done = true
-
- // we may still need to set the mode/etc. on some parent dirs
- // that were created previously. delay end/close until then.
- if (!self._madeDir) return end()
- else endMadeDir(self, self._path, end)
-
- function end (er) {
- if (er) {
- er.fstream_finish_call = 'setupMadeDir'
- return self.error(er)
- }
- // all the props have been set, so we're completely done.
- self.emit('end')
- self.emit('close')
- }
- }
- }
-}
-
-function endMadeDir (self, p, cb) {
- var made = self._madeDir
- // everything *between* made and path.dirname(self._path)
- // needs to be set up. Note that this may just be one dir.
- var d = path.dirname(p)
-
- endMadeDir_(self, d, function (er) {
- if (er) return cb(er)
- if (d === made) {
- return cb()
- }
- endMadeDir(self, d, cb)
- })
-}
-
-function endMadeDir_ (self, p, cb) {
- var dirProps = {}
- Object.keys(self.props).forEach(function (k) {
- dirProps[k] = self.props[k]
-
- // only make non-readable dirs if explicitly requested.
- if (k === 'mode' && self.type !== 'Directory') {
- dirProps[k] = dirProps[k] | parseInt('0111', 8)
- }
- })
-
- var todo = 3
- var errState = null
- fs.stat(p, function (er, current) {
- if (er) return cb(errState = er)
- endChmod(self, dirProps, current, p, next)
- endChown(self, dirProps, current, p, next)
- endUtimes(self, dirProps, current, p, next)
- })
-
- function next (er) {
- if (errState) return
- if (er) return cb(errState = er)
- if (--todo === 0) return cb()
- }
-}
-
-Writer.prototype.pipe = function () {
- this.error("Can't pipe from writable stream")
-}
-
-Writer.prototype.add = function () {
- this.error("Can't add to non-Directory type")
-}
-
-Writer.prototype.write = function () {
- return true
-}
-
-function objectToString (d) {
- return Object.prototype.toString.call(d)
-}
-
-function isDate (d) {
- return typeof d === 'object' && objectToString(d) === '[object Date]'
-}
diff --git a/node_modules/fstream/package.json b/node_modules/fstream/package.json
deleted file mode 100644
index d39fd7b..0000000
--- a/node_modules/fstream/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_from": "fstream@^1.0.0",
- "_id": "fstream@1.0.12",
- "_inBundle": false,
- "_integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",
- "_location": "/fstream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "fstream@^1.0.0",
- "name": "fstream",
- "escapedName": "fstream",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/node-gyp",
- "/tar"
- ],
- "_resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz",
- "_shasum": "4e8ba8ee2d48be4f7d0de505455548eae5932045",
- "_spec": "fstream@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-gyp",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/npm/fstream/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "graceful-fs": "^4.1.2",
- "inherits": "~2.0.0",
- "mkdirp": ">=0.5 0",
- "rimraf": "2"
- },
- "deprecated": false,
- "description": "Advanced file system stream things",
- "devDependencies": {
- "standard": "^4.0.0",
- "tap": "^1.2.0"
- },
- "engines": {
- "node": ">=0.6"
- },
- "homepage": "https://github.com/npm/fstream#readme",
- "license": "ISC",
- "main": "fstream.js",
- "name": "fstream",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/fstream.git"
- },
- "scripts": {
- "test": "standard && tap examples/*.js"
- },
- "version": "1.0.12"
-}
diff --git a/node_modules/gauge/CHANGELOG.md b/node_modules/gauge/CHANGELOG.md
deleted file mode 100644
index 407bc19..0000000
--- a/node_modules/gauge/CHANGELOG.md
+++ /dev/null
@@ -1,160 +0,0 @@
-### v2.7.4
-
-* Reset colors prior to ending a line, to eliminate flicker when a line
- is trucated between start and end color sequences.
-
-### v2.7.3
-
-* Only create our onExit handler when we're enabled and remove it when we're
- disabled. This stops us from creating multiple onExit handlers when
- multiple gauge objects are being used.
-* Fix bug where if a theme name were given instead of a theme object, it
- would crash.
-* Remove supports-color because it's not actually used. Uhm. Yes, I just
- updated it. >.>
-
-### v2.7.2
-
-* Use supports-color instead of has-color (as the module has been renamed)
-
-### v2.7.1
-
-* Bug fix: Calls to show/pulse while the progress bar is disabled should still
- update our internal representation of what would be shown should it be enabled.
-
-### v2.7.0
-
-* New feature: Add new `isEnabled` method to allow introspection of the gauge's
- "enabledness" as controlled by `.enable()` and `.disable()`.
-
-### v2.6.0
-
-* Bug fix: Don't run the code associated with `enable`/`disable` if the gauge
- is already enabled or disabled respectively. This prevents leaking event
- listeners, amongst other weirdness.
-* New feature: Template items can have default values that will be used if no
- value was otherwise passed in.
-
-### v2.5.3
-
-* Default to `enabled` only if we have a tty. Users can always override
- this by passing in the `enabled` option explicitly or by calling calling
- `gauge.enable()`.
-
-### v2.5.2
-
-* Externalized `./console-strings.js` into `console-control-strings`.
-
-### v2.5.1
-
-* Update to `signal-exit@3.0.0`, which fixes a compatibility bug with the
- node profiler.
-* [#39](https://github.com/iarna/gauge/pull/39) Fix tests on 0.10 and add
- a missing devDependency. ([@helloyou2012](https://github.com/helloyou2012))
-
-### v2.5.0
-
-* Add way to programmatically fetch a list of theme names in a themeset
- (`Themeset.getThemeNames`).
-
-### v2.4.0
-
-* Add support for setting themesets on existing gauge objects.
-* Add post-IO callback to `gauge.hide()` as it is somtetimes necessary when
- your terminal is interleaving output from multiple filehandles (ie, stdout
- & stderr).
-
-### v2.3.1
-
-* Fix a refactor bug in setTheme where it wasn't accepting the various types
- of args it should.
-
-### v2.3.0
-
-#### FEATURES
-
-* Add setTemplate & setTheme back in.
-* Add support for named themes, you can now ask for things like 'colorASCII'
- and 'brailleSpinner'. Of course, you can still pass in theme objects.
- Additionally you can now pass in an object with `hasUnicode`, `hasColor` and
- `platform` keys in order to override our guesses as to those values when
- selecting a default theme from the themeset.
-* Make the output stream optional (it defaults to `process.stderr` now).
-* Add `setWriteTo(stream[, tty])` to change the output stream and,
- optionally, tty.
-
-#### BUG FIXES & REFACTORING
-
-* Abort the display phase early if we're supposed to be hidden and we are.
-* Stop printing a bunch of spaces at the end of lines, since we're already
- using an erase-to-end-of-line code anyway.
-* The unicode themes were missing the subsection separator.
-
-### v2.2.1
-
-* Fix image in readme
-
-### v2.2.0
-
-* All new themes API– reference themes by name and pass in custom themes and
- themesets (themesets get platform support autodetection done on them to
- select the best theme). Theme mixins let you add features to all existing
- themes.
-* Much, much improved test coverage.
-
-### v2.1.0
-
-* Got rid of ░ in the default platform, noUnicode, hasColor theme. Thanks
- to @yongtw123 for pointing out this had snuck in.
-* Fiddled with the demo output to make it easier to see the spinner spin. Also
- added prints before each platforms test output.
-* I forgot to include `signal-exit` in our deps. <.< Thank you @KenanY for
- finding this. Then I was lazy and made a new commit instead of using his
- PR. Again, thank you for your patience @KenenY.
-* Drastically speed up travis testing.
-* Add a small javascript demo (demo.js) for showing off the various themes
- (and testing them on diff platforms).
-* Change: The subsection separator from ⁄ and / (different chars) to >.
-* Fix crasher: A show or pulse without a label would cause the template renderer
- to complain about a missing value.
-* New feature: Add the ability to disable the clean-up-on-exit behavior.
- Not something I expect to be widely desirable, but important if you have
- multiple distinct gauge instances in your app.
-* Use our own color support detection.
- The `has-color` module proved too magic for my needs, making assumptions
- as to which stream we write to and reading command line arguments.
-
-### v2.0.0
-
-This is a major rewrite of the internals. Externally there are fewer
-changes:
-
-* On node>0.8 gauge object now prints updates at a fixed rate. This means
- that when you call `show` it may wate up to `updateInterval` ms before it
- actually prints an update. You override this behavior with the
- `fixedFramerate` option.
-* The gauge object now keeps the cursor hidden as long as it's enabled and
- shown.
-* The constructor's arguments have changed, now it takes a mandatory output
- stream and an optional options object. The stream no longer needs to be
- an `ansi`ified stream, although it can be if you want (but we won't make
- use of its special features).
-* Previously the gauge was disabled by default if `process.stdout` wasn't a
- tty. Now it always defaults to enabled. If you want the previous
- behavior set the `enabled` option to `process.stdout.isTTY`.
-* The constructor's options have changed– see the docs for details.
-* Themes are entirely different. If you were using a custom theme, or
- referring to one directly (eg via `Gauge.unicode` or `Gauge.ascii`) then
- you'll need to change your code. You can get the equivalent of the latter
- with:
- ```
- var themes = require('gauge/themes')
- var unicodeTheme = themes(true, true) // returns the color unicode theme for your platform
- ```
- The default themes no longer use any ambiguous width characters, so even
- if you choose to display those as wide your progress bar should still
- display correctly.
-* Templates are entirely different and if you were using a custom one, you
- should consult the documentation to learn how to recreate it. If you were
- using the default, be aware that it has changed and the result looks quite
- a bit different.
diff --git a/node_modules/gauge/LICENSE b/node_modules/gauge/LICENSE
deleted file mode 100644
index e756052..0000000
--- a/node_modules/gauge/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2014, Rebecca Turner <me@re-becca.org>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/gauge/README.md b/node_modules/gauge/README.md
deleted file mode 100644
index bdd60e3..0000000
--- a/node_modules/gauge/README.md
+++ /dev/null
@@ -1,399 +0,0 @@
-gauge
-=====
-
-A nearly stateless terminal based horizontal gauge / progress bar.
-
-```javascript
-var Gauge = require("gauge")
-
-var gauge = new Gauge()
-
-gauge.show("test", 0.20)
-
-gauge.pulse("this")
-
-gauge.hide()
-```
-
-![](gauge-demo.gif)
-
-
-### CHANGES FROM 1.x
-
-Gauge 2.x is breaking release, please see the [changelog] for details on
-what's changed if you were previously a user of this module.
-
-[changelog]: CHANGELOG.md
-
-### THE GAUGE CLASS
-
-This is the typical interface to the module– it provides a pretty
-fire-and-forget interface to displaying your status information.
-
-```
-var Gauge = require("gauge")
-
-var gauge = new Gauge([stream], [options])
-```
-
-* **stream** – *(optional, default STDERR)* A stream that progress bar
- updates are to be written to. Gauge honors backpressure and will pause
- most writing if it is indicated.
-* **options** – *(optional)* An option object.
-
-Constructs a new gauge. Gauges are drawn on a single line, and are not drawn
-if **stream** isn't a tty and a tty isn't explicitly provided.
-
-If **stream** is a terminal or if you pass in **tty** to **options** then we
-will detect terminal resizes and redraw to fit. We do this by watching for
-`resize` events on the tty. (To work around a bug in verisons of Node prior
-to 2.5.0, we watch for them on stdout if the tty is stderr.) Resizes to
-larger window sizes will be clean, but shrinking the window will always
-result in some cruft.
-
-**IMPORTANT:** If you prevously were passing in a non-tty stream but you still
-want output (for example, a stream wrapped by the `ansi` module) then you
-need to pass in the **tty** option below, as `gauge` needs access to
-the underlying tty in order to do things like terminal resizes and terminal
-width detection.
-
-The **options** object can have the following properties, all of which are
-optional:
-
-* **updateInterval**: How often gauge updates should be drawn, in miliseconds.
-* **fixedFramerate**: Defaults to false on node 0.8, true on everything
- else. When this is true a timer is created to trigger once every
- `updateInterval` ms, when false, updates are printed as soon as they come
- in but updates more often than `updateInterval` are ignored. The reason
- 0.8 doesn't have this set to true is that it can't `unref` its timer and
- so it would stop your program from exiting– if you want to use this
- feature with 0.8 just make sure you call `gauge.disable()` before you
- expect your program to exit.
-* **themes**: A themeset to use when selecting the theme to use. Defaults
- to `gauge/themes`, see the [themes] documentation for details.
-* **theme**: Select a theme for use, it can be a:
- * Theme object, in which case the **themes** is not used.
- * The name of a theme, which will be looked up in the current *themes*
- object.
- * A configuration object with any of `hasUnicode`, `hasColor` or
- `platform` keys, which if wlll be used to override our guesses when making
- a default theme selection.
-
- If no theme is selected then a default is picked using a combination of our
- best guesses at your OS, color support and unicode support.
-* **template**: Describes what you want your gauge to look like. The
- default is what npm uses. Detailed [documentation] is later in this
- document.
-* **hideCursor**: Defaults to true. If true, then the cursor will be hidden
- while the gauge is displayed.
-* **tty**: The tty that you're ultimately writing to. Defaults to the same
- as **stream**. This is used for detecting the width of the terminal and
- resizes. The width used is `tty.columns - 1`. If no tty is available then
- a width of `79` is assumed.
-* **enabled**: Defaults to true if `tty` is a TTY, false otherwise. If true
- the gauge starts enabled. If disabled then all update commands are
- ignored and no gauge will be printed until you call `.enable()`.
-* **Plumbing**: The class to use to actually generate the gauge for
- printing. This defaults to `require('gauge/plumbing')` and ordinarly you
- shouldn't need to override this.
-* **cleanupOnExit**: Defaults to true. Ordinarily we register an exit
- handler to make sure your cursor is turned back on and the progress bar
- erased when your process exits, even if you Ctrl-C out or otherwise exit
- unexpectedly. You can disable this and it won't register the exit handler.
-
-[has-unicode]: https://www.npmjs.com/package/has-unicode
-[themes]: #themes
-[documentation]: #templates
-
-#### `gauge.show(section | status, [completed])`
-
-The first argument is either the section, the name of the current thing
-contributing to progress, or an object with keys like **section**,
-**subsection** & **completed** (or any others you have types for in a custom
-template). If you don't want to update or set any of these you can pass
-`null` and it will be ignored.
-
-The second argument is the percent completed as a value between 0 and 1.
-Without it, completion is just not updated. You'll also note that completion
-can be passed in as part of a status object as the first argument. If both
-it and the completed argument are passed in, the completed argument wins.
-
-#### `gauge.hide([cb])`
-
-Removes the gauge from the terminal. Optionally, callback `cb` after IO has
-had an opportunity to happen (currently this just means after `setImmediate`
-has called back.)
-
-It turns out this is important when you're pausing the progress bar on one
-filehandle and printing to another– otherwise (with a big enough print) node
-can end up printing the "end progress bar" bits to the progress bar filehandle
-while other stuff is printing to another filehandle. These getting interleaved
-can cause corruption in some terminals.
-
-#### `gauge.pulse([subsection])`
-
-* **subsection** – *(optional)* The specific thing that triggered this pulse
-
-Spins the spinner in the gauge to show output. If **subsection** is
-included then it will be combined with the last name passed to `gauge.show`.
-
-#### `gauge.disable()`
-
-Hides the gauge and ignores further calls to `show` or `pulse`.
-
-#### `gauge.enable()`
-
-Shows the gauge and resumes updating when `show` or `pulse` is called.
-
-#### `gauge.isEnabled()`
-
-Returns true if the gauge is enabled.
-
-#### `gauge.setThemeset(themes)`
-
-Change the themeset to select a theme from. The same as the `themes` option
-used in the constructor. The theme will be reselected from this themeset.
-
-#### `gauge.setTheme(theme)`
-
-Change the active theme, will be displayed with the next show or pulse. This can be:
-
-* Theme object, in which case the **themes** is not used.
-* The name of a theme, which will be looked up in the current *themes*
- object.
-* A configuration object with any of `hasUnicode`, `hasColor` or
- `platform` keys, which if wlll be used to override our guesses when making
- a default theme selection.
-
-If no theme is selected then a default is picked using a combination of our
-best guesses at your OS, color support and unicode support.
-
-#### `gauge.setTemplate(template)`
-
-Change the active template, will be displayed with the next show or pulse
-
-### Tracking Completion
-
-If you have more than one thing going on that you want to track completion
-of, you may find the related [are-we-there-yet] helpful. It's `change`
-event can be wired up to the `show` method to get a more traditional
-progress bar interface.
-
-[are-we-there-yet]: https://www.npmjs.com/package/are-we-there-yet
-
-### THEMES
-
-```
-var themes = require('gauge/themes')
-
-// fetch the default color unicode theme for this platform
-var ourTheme = themes({hasUnicode: true, hasColor: true})
-
-// fetch the default non-color unicode theme for osx
-var ourTheme = themes({hasUnicode: true, hasColor: false, platform: 'darwin'})
-
-// create a new theme based on the color ascii theme for this platform
-// that brackets the progress bar with arrows
-var ourTheme = themes.newTheme(theme(hasUnicode: false, hasColor: true}), {
- preProgressbar: '→',
- postProgressbar: '←'
-})
-```
-
-The object returned by `gauge/themes` is an instance of the `ThemeSet` class.
-
-```
-var ThemeSet = require('gauge/theme-set')
-var themes = new ThemeSet()
-// or
-var themes = require('gauge/themes')
-var mythemes = themes.newThemeset() // creates a new themeset based on the default themes
-```
-
-#### themes(opts)
-#### themes.getDefault(opts)
-
-Theme objects are a function that fetches the default theme based on
-platform, unicode and color support.
-
-Options is an object with the following properties:
-
-* **hasUnicode** - If true, fetch a unicode theme, if no unicode theme is
- available then a non-unicode theme will be used.
-* **hasColor** - If true, fetch a color theme, if no color theme is
- available a non-color theme will be used.
-* **platform** (optional) - Defaults to `process.platform`. If no
- platform match is available then `fallback` is used instead.
-
-If no compatible theme can be found then an error will be thrown with a
-`code` of `EMISSINGTHEME`.
-
-#### themes.addTheme(themeName, themeObj)
-#### themes.addTheme(themeName, [parentTheme], newTheme)
-
-Adds a named theme to the themeset. You can pass in either a theme object,
-as returned by `themes.newTheme` or the arguments you'd pass to
-`themes.newTheme`.
-
-#### themes.getThemeNames()
-
-Return a list of all of the names of the themes in this themeset. Suitable
-for use in `themes.getTheme(…)`.
-
-#### themes.getTheme(name)
-
-Returns the theme object from this theme set named `name`.
-
-If `name` does not exist in this themeset an error will be thrown with
-a `code` of `EMISSINGTHEME`.
-
-#### themes.setDefault([opts], themeName)
-
-`opts` is an object with the following properties.
-
-* **platform** - Defaults to `'fallback'`. If your theme is platform
- specific, specify that here with the platform from `process.platform`, eg,
- `win32`, `darwin`, etc.
-* **hasUnicode** - Defaults to `false`. If your theme uses unicode you
- should set this to true.
-* **hasColor** - Defaults to `false`. If your theme uses color you should
- set this to true.
-
-`themeName` is the name of the theme (as given to `addTheme`) to use for
-this set of `opts`.
-
-#### themes.newTheme([parentTheme,] newTheme)
-
-Create a new theme object based on `parentTheme`. If no `parentTheme` is
-provided then a minimal parentTheme that defines functions for rendering the
-activity indicator (spinner) and progress bar will be defined. (This
-fallback parent is defined in `gauge/base-theme`.)
-
-newTheme should be a bare object– we'll start by discussing the properties
-defined by the default themes:
-
-* **preProgressbar** - displayed prior to the progress bar, if the progress
- bar is displayed.
-* **postProgressbar** - displayed after the progress bar, if the progress bar
- is displayed.
-* **progressBarTheme** - The subtheme passed through to the progress bar
- renderer, it's an object with `complete` and `remaining` properties
- that are the strings you want repeated for those sections of the progress
- bar.
-* **activityIndicatorTheme** - The theme for the activity indicator (spinner),
- this can either be a string, in which each character is a different step, or
- an array of strings.
-* **preSubsection** - Displayed as a separator between the `section` and
- `subsection` when the latter is printed.
-
-More generally, themes can have any value that would be a valid value when rendering
-templates. The properties in the theme are used when their name matches a type in
-the template. Their values can be:
-
-* **strings & numbers** - They'll be included as is
-* **function (values, theme, width)** - Should return what you want in your output.
- *values* is an object with values provided via `gauge.show`,
- *theme* is the theme specific to this item (see below) or this theme object,
- and *width* is the number of characters wide your result should be.
-
-There are a couple of special prefixes:
-
-* **pre** - Is shown prior to the property, if its displayed.
-* **post** - Is shown after the property, if its displayed.
-
-And one special suffix:
-
-* **Theme** - Its value is passed to a function-type item as the theme.
-
-#### themes.addToAllThemes(theme)
-
-This *mixes-in* `theme` into all themes currently defined. It also adds it
-to the default parent theme for this themeset, so future themes added to
-this themeset will get the values from `theme` by default.
-
-#### themes.newThemeset()
-
-Copy the current themeset into a new one. This allows you to easily inherit
-one themeset from another.
-
-### TEMPLATES
-
-A template is an array of objects and strings that, after being evaluated,
-will be turned into the gauge line. The default template is:
-
-```javascript
-[
- {type: 'progressbar', length: 20},
- {type: 'activityIndicator', kerning: 1, length: 1},
- {type: 'section', kerning: 1, default: ''},
- {type: 'subsection', kerning: 1, default: ''}
-]
-```
-
-The various template elements can either be **plain strings**, in which case they will
-be be included verbatum in the output, or objects with the following properties:
-
-* *type* can be any of the following plus any keys you pass into `gauge.show` plus
- any keys you have on a custom theme.
- * `section` – What big thing you're working on now.
- * `subsection` – What component of that thing is currently working.
- * `activityIndicator` – Shows a spinner using the `activityIndicatorTheme`
- from your active theme.
- * `progressbar` – A progress bar representing your current `completed`
- using the `progressbarTheme` from your active theme.
-* *kerning* – Number of spaces that must be between this item and other
- items, if this item is displayed at all.
-* *maxLength* – The maximum length for this element. If its value is longer it
- will be truncated.
-* *minLength* – The minimum length for this element. If its value is shorter it
- will be padded according to the *align* value.
-* *align* – (Default: left) Possible values "left", "right" and "center". Works
- as you'd expect from word processors.
-* *length* – Provides a single value for both *minLength* and *maxLength*. If both
- *length* and *minLength or *maxLength* are specifed then the latter take precedence.
-* *value* – A literal value to use for this template item.
-* *default* – A default value to use for this template item if a value
- wasn't otherwise passed in.
-
-### PLUMBING
-
-This is the super simple, assume nothing, do no magic internals used by gauge to
-implement its ordinary interface.
-
-```
-var Plumbing = require('gauge/plumbing')
-var gauge = new Plumbing(theme, template, width)
-```
-
-* **theme**: The theme to use.
-* **template**: The template to use.
-* **width**: How wide your gauge should be
-
-#### `gauge.setTheme(theme)`
-
-Change the active theme.
-
-#### `gauge.setTemplate(template)`
-
-Change the active template.
-
-#### `gauge.setWidth(width)`
-
-Change the width to render at.
-
-#### `gauge.hide()`
-
-Return the string necessary to hide the progress bar
-
-#### `gauge.hideCursor()`
-
-Return a string to hide the cursor.
-
-#### `gauge.showCursor()`
-
-Return a string to show the cursor.
-
-#### `gauge.show(status)`
-
-Using `status` for values, render the provided template with the theme and return
-a string that is suitable for printing to update the gauge.
diff --git a/node_modules/gauge/base-theme.js b/node_modules/gauge/base-theme.js
deleted file mode 100644
index 0b67638..0000000
--- a/node_modules/gauge/base-theme.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict'
-var spin = require('./spin.js')
-var progressBar = require('./progress-bar.js')
-
-module.exports = {
- activityIndicator: function (values, theme, width) {
- if (values.spun == null) return
- return spin(theme, values.spun)
- },
- progressbar: function (values, theme, width) {
- if (values.completed == null) return
- return progressBar(theme, width, values.completed)
- }
-}
diff --git a/node_modules/gauge/error.js b/node_modules/gauge/error.js
deleted file mode 100644
index d9914ba..0000000
--- a/node_modules/gauge/error.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict'
-var util = require('util')
-
-var User = exports.User = function User (msg) {
- var err = new Error(msg)
- Error.captureStackTrace(err, User)
- err.code = 'EGAUGE'
- return err
-}
-
-exports.MissingTemplateValue = function MissingTemplateValue (item, values) {
- var err = new User(util.format('Missing template value "%s"', item.type))
- Error.captureStackTrace(err, MissingTemplateValue)
- err.template = item
- err.values = values
- return err
-}
-
-exports.Internal = function Internal (msg) {
- var err = new Error(msg)
- Error.captureStackTrace(err, Internal)
- err.code = 'EGAUGEINTERNAL'
- return err
-}
diff --git a/node_modules/gauge/has-color.js b/node_modules/gauge/has-color.js
deleted file mode 100644
index e283a25..0000000
--- a/node_modules/gauge/has-color.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict'
-
-module.exports = isWin32() || isColorTerm()
-
-function isWin32 () {
- return process.platform === 'win32'
-}
-
-function isColorTerm () {
- var termHasColor = /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i
- return !!process.env.COLORTERM || termHasColor.test(process.env.TERM)
-}
diff --git a/node_modules/gauge/index.js b/node_modules/gauge/index.js
deleted file mode 100644
index c553240..0000000
--- a/node_modules/gauge/index.js
+++ /dev/null
@@ -1,233 +0,0 @@
-'use strict'
-var Plumbing = require('./plumbing.js')
-var hasUnicode = require('has-unicode')
-var hasColor = require('./has-color.js')
-var onExit = require('signal-exit')
-var defaultThemes = require('./themes')
-var setInterval = require('./set-interval.js')
-var process = require('./process.js')
-var setImmediate = require('./set-immediate')
-
-module.exports = Gauge
-
-function callWith (obj, method) {
- return function () {
- return method.call(obj)
- }
-}
-
-function Gauge (arg1, arg2) {
- var options, writeTo
- if (arg1 && arg1.write) {
- writeTo = arg1
- options = arg2 || {}
- } else if (arg2 && arg2.write) {
- writeTo = arg2
- options = arg1 || {}
- } else {
- writeTo = process.stderr
- options = arg1 || arg2 || {}
- }
-
- this._status = {
- spun: 0,
- section: '',
- subsection: ''
- }
- this._paused = false // are we paused for back pressure?
- this._disabled = true // are all progress bar updates disabled?
- this._showing = false // do we WANT the progress bar on screen
- this._onScreen = false // IS the progress bar on screen
- this._needsRedraw = false // should we print something at next tick?
- this._hideCursor = options.hideCursor == null ? true : options.hideCursor
- this._fixedFramerate = options.fixedFramerate == null
- ? !(/^v0\.8\./.test(process.version))
- : options.fixedFramerate
- this._lastUpdateAt = null
- this._updateInterval = options.updateInterval == null ? 50 : options.updateInterval
-
- this._themes = options.themes || defaultThemes
- this._theme = options.theme
- var theme = this._computeTheme(options.theme)
- var template = options.template || [
- {type: 'progressbar', length: 20},
- {type: 'activityIndicator', kerning: 1, length: 1},
- {type: 'section', kerning: 1, default: ''},
- {type: 'subsection', kerning: 1, default: ''}
- ]
- this.setWriteTo(writeTo, options.tty)
- var PlumbingClass = options.Plumbing || Plumbing
- this._gauge = new PlumbingClass(theme, template, this.getWidth())
-
- this._$$doRedraw = callWith(this, this._doRedraw)
- this._$$handleSizeChange = callWith(this, this._handleSizeChange)
-
- this._cleanupOnExit = options.cleanupOnExit == null || options.cleanupOnExit
- this._removeOnExit = null
-
- if (options.enabled || (options.enabled == null && this._tty && this._tty.isTTY)) {
- this.enable()
- } else {
- this.disable()
- }
-}
-Gauge.prototype = {}
-
-Gauge.prototype.isEnabled = function () {
- return !this._disabled
-}
-
-Gauge.prototype.setTemplate = function (template) {
- this._gauge.setTemplate(template)
- if (this._showing) this._requestRedraw()
-}
-
-Gauge.prototype._computeTheme = function (theme) {
- if (!theme) theme = {}
- if (typeof theme === 'string') {
- theme = this._themes.getTheme(theme)
- } else if (theme && (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null)) {
- var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode
- var useColor = theme.hasColor == null ? hasColor : theme.hasColor
- theme = this._themes.getDefault({hasUnicode: useUnicode, hasColor: useColor, platform: theme.platform})
- }
- return theme
-}
-
-Gauge.prototype.setThemeset = function (themes) {
- this._themes = themes
- this.setTheme(this._theme)
-}
-
-Gauge.prototype.setTheme = function (theme) {
- this._gauge.setTheme(this._computeTheme(theme))
- if (this._showing) this._requestRedraw()
- this._theme = theme
-}
-
-Gauge.prototype._requestRedraw = function () {
- this._needsRedraw = true
- if (!this._fixedFramerate) this._doRedraw()
-}
-
-Gauge.prototype.getWidth = function () {
- return ((this._tty && this._tty.columns) || 80) - 1
-}
-
-Gauge.prototype.setWriteTo = function (writeTo, tty) {
- var enabled = !this._disabled
- if (enabled) this.disable()
- this._writeTo = writeTo
- this._tty = tty ||
- (writeTo === process.stderr && process.stdout.isTTY && process.stdout) ||
- (writeTo.isTTY && writeTo) ||
- this._tty
- if (this._gauge) this._gauge.setWidth(this.getWidth())
- if (enabled) this.enable()
-}
-
-Gauge.prototype.enable = function () {
- if (!this._disabled) return
- this._disabled = false
- if (this._tty) this._enableEvents()
- if (this._showing) this.show()
-}
-
-Gauge.prototype.disable = function () {
- if (this._disabled) return
- if (this._showing) {
- this._lastUpdateAt = null
- this._showing = false
- this._doRedraw()
- this._showing = true
- }
- this._disabled = true
- if (this._tty) this._disableEvents()
-}
-
-Gauge.prototype._enableEvents = function () {
- if (this._cleanupOnExit) {
- this._removeOnExit = onExit(callWith(this, this.disable))
- }
- this._tty.on('resize', this._$$handleSizeChange)
- if (this._fixedFramerate) {
- this.redrawTracker = setInterval(this._$$doRedraw, this._updateInterval)
- if (this.redrawTracker.unref) this.redrawTracker.unref()
- }
-}
-
-Gauge.prototype._disableEvents = function () {
- this._tty.removeListener('resize', this._$$handleSizeChange)
- if (this._fixedFramerate) clearInterval(this.redrawTracker)
- if (this._removeOnExit) this._removeOnExit()
-}
-
-Gauge.prototype.hide = function (cb) {
- if (this._disabled) return cb && process.nextTick(cb)
- if (!this._showing) return cb && process.nextTick(cb)
- this._showing = false
- this._doRedraw()
- cb && setImmediate(cb)
-}
-
-Gauge.prototype.show = function (section, completed) {
- this._showing = true
- if (typeof section === 'string') {
- this._status.section = section
- } else if (typeof section === 'object') {
- var sectionKeys = Object.keys(section)
- for (var ii = 0; ii < sectionKeys.length; ++ii) {
- var key = sectionKeys[ii]
- this._status[key] = section[key]
- }
- }
- if (completed != null) this._status.completed = completed
- if (this._disabled) return
- this._requestRedraw()
-}
-
-Gauge.prototype.pulse = function (subsection) {
- this._status.subsection = subsection || ''
- this._status.spun ++
- if (this._disabled) return
- if (!this._showing) return
- this._requestRedraw()
-}
-
-Gauge.prototype._handleSizeChange = function () {
- this._gauge.setWidth(this._tty.columns - 1)
- this._requestRedraw()
-}
-
-Gauge.prototype._doRedraw = function () {
- if (this._disabled || this._paused) return
- if (!this._fixedFramerate) {
- var now = Date.now()
- if (this._lastUpdateAt && now - this._lastUpdateAt < this._updateInterval) return
- this._lastUpdateAt = now
- }
- if (!this._showing && this._onScreen) {
- this._onScreen = false
- var result = this._gauge.hide()
- if (this._hideCursor) {
- result += this._gauge.showCursor()
- }
- return this._writeTo.write(result)
- }
- if (!this._showing && !this._onScreen) return
- if (this._showing && !this._onScreen) {
- this._onScreen = true
- this._needsRedraw = true
- if (this._hideCursor) {
- this._writeTo.write(this._gauge.hideCursor())
- }
- }
- if (!this._needsRedraw) return
- if (!this._writeTo.write(this._gauge.show(this._status))) {
- this._paused = true
- this._writeTo.on('drain', callWith(this, function () {
- this._paused = false
- this._doRedraw()
- }))
- }
-}
diff --git a/node_modules/gauge/package.json b/node_modules/gauge/package.json
deleted file mode 100644
index 7019598..0000000
--- a/node_modules/gauge/package.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "_from": "gauge@~2.7.3",
- "_id": "gauge@2.7.4",
- "_inBundle": false,
- "_integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
- "_location": "/gauge",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "gauge@~2.7.3",
- "name": "gauge",
- "escapedName": "gauge",
- "rawSpec": "~2.7.3",
- "saveSpec": null,
- "fetchSpec": "~2.7.3"
- },
- "_requiredBy": [
- "/npmlog"
- ],
- "_resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
- "_shasum": "2c03405c7538c39d7eb37b317022e325fb018bf7",
- "_spec": "gauge@~2.7.3",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/npmlog",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org"
- },
- "bugs": {
- "url": "https://github.com/iarna/gauge/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "aproba": "^1.0.3",
- "console-control-strings": "^1.0.0",
- "has-unicode": "^2.0.0",
- "object-assign": "^4.1.0",
- "signal-exit": "^3.0.0",
- "string-width": "^1.0.1",
- "strip-ansi": "^3.0.1",
- "wide-align": "^1.1.0"
- },
- "deprecated": false,
- "description": "A terminal based horizontal guage",
- "devDependencies": {
- "readable-stream": "^2.0.6",
- "require-inject": "^1.4.0",
- "standard": "^7.1.2",
- "tap": "^5.7.2",
- "through2": "^2.0.0"
- },
- "files": [
- "base-theme.js",
- "CHANGELOG.md",
- "error.js",
- "has-color.js",
- "index.js",
- "LICENSE",
- "package.json",
- "plumbing.js",
- "process.js",
- "progress-bar.js",
- "README.md",
- "render-template.js",
- "set-immediate.js",
- "set-interval.js",
- "spin.js",
- "template-item.js",
- "theme-set.js",
- "themes.js",
- "wide-truncate.js"
- ],
- "homepage": "https://github.com/iarna/gauge",
- "keywords": [
- "progressbar",
- "progress",
- "gauge"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "gauge",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/gauge.git"
- },
- "scripts": {
- "prepublish": "rm -f *~",
- "test": "standard && tap test/*.js --coverage"
- },
- "version": "2.7.4"
-}
diff --git a/node_modules/gauge/plumbing.js b/node_modules/gauge/plumbing.js
deleted file mode 100644
index 1afb4af..0000000
--- a/node_modules/gauge/plumbing.js
+++ /dev/null
@@ -1,48 +0,0 @@
-'use strict'
-var consoleControl = require('console-control-strings')
-var renderTemplate = require('./render-template.js')
-var validate = require('aproba')
-
-var Plumbing = module.exports = function (theme, template, width) {
- if (!width) width = 80
- validate('OAN', [theme, template, width])
- this.showing = false
- this.theme = theme
- this.width = width
- this.template = template
-}
-Plumbing.prototype = {}
-
-Plumbing.prototype.setTheme = function (theme) {
- validate('O', [theme])
- this.theme = theme
-}
-
-Plumbing.prototype.setTemplate = function (template) {
- validate('A', [template])
- this.template = template
-}
-
-Plumbing.prototype.setWidth = function (width) {
- validate('N', [width])
- this.width = width
-}
-
-Plumbing.prototype.hide = function () {
- return consoleControl.gotoSOL() + consoleControl.eraseLine()
-}
-
-Plumbing.prototype.hideCursor = consoleControl.hideCursor
-
-Plumbing.prototype.showCursor = consoleControl.showCursor
-
-Plumbing.prototype.show = function (status) {
- var values = Object.create(this.theme)
- for (var key in status) {
- values[key] = status[key]
- }
-
- return renderTemplate(this.width, this.template, values).trim() +
- consoleControl.color('reset') +
- consoleControl.eraseLine() + consoleControl.gotoSOL()
-}
diff --git a/node_modules/gauge/process.js b/node_modules/gauge/process.js
deleted file mode 100644
index 05e8569..0000000
--- a/node_modules/gauge/process.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict'
-// this exists so we can replace it during testing
-module.exports = process
diff --git a/node_modules/gauge/progress-bar.js b/node_modules/gauge/progress-bar.js
deleted file mode 100644
index 7f8dd68..0000000
--- a/node_modules/gauge/progress-bar.js
+++ /dev/null
@@ -1,35 +0,0 @@
-'use strict'
-var validate = require('aproba')
-var renderTemplate = require('./render-template.js')
-var wideTruncate = require('./wide-truncate')
-var stringWidth = require('string-width')
-
-module.exports = function (theme, width, completed) {
- validate('ONN', [theme, width, completed])
- if (completed < 0) completed = 0
- if (completed > 1) completed = 1
- if (width <= 0) return ''
- var sofar = Math.round(width * completed)
- var rest = width - sofar
- var template = [
- {type: 'complete', value: repeat(theme.complete, sofar), length: sofar},
- {type: 'remaining', value: repeat(theme.remaining, rest), length: rest}
- ]
- return renderTemplate(width, template, theme)
-}
-
-// lodash's way of repeating
-function repeat (string, width) {
- var result = ''
- var n = width
- do {
- if (n % 2) {
- result += string
- }
- n = Math.floor(n / 2)
- /*eslint no-self-assign: 0*/
- string += string
- } while (n && stringWidth(result) < width)
-
- return wideTruncate(result, width)
-}
diff --git a/node_modules/gauge/render-template.js b/node_modules/gauge/render-template.js
deleted file mode 100644
index 3261bfb..0000000
--- a/node_modules/gauge/render-template.js
+++ /dev/null
@@ -1,181 +0,0 @@
-'use strict'
-var align = require('wide-align')
-var validate = require('aproba')
-var objectAssign = require('object-assign')
-var wideTruncate = require('./wide-truncate')
-var error = require('./error')
-var TemplateItem = require('./template-item')
-
-function renderValueWithValues (values) {
- return function (item) {
- return renderValue(item, values)
- }
-}
-
-var renderTemplate = module.exports = function (width, template, values) {
- var items = prepareItems(width, template, values)
- var rendered = items.map(renderValueWithValues(values)).join('')
- return align.left(wideTruncate(rendered, width), width)
-}
-
-function preType (item) {
- var cappedTypeName = item.type[0].toUpperCase() + item.type.slice(1)
- return 'pre' + cappedTypeName
-}
-
-function postType (item) {
- var cappedTypeName = item.type[0].toUpperCase() + item.type.slice(1)
- return 'post' + cappedTypeName
-}
-
-function hasPreOrPost (item, values) {
- if (!item.type) return
- return values[preType(item)] || values[postType(item)]
-}
-
-function generatePreAndPost (baseItem, parentValues) {
- var item = objectAssign({}, baseItem)
- var values = Object.create(parentValues)
- var template = []
- var pre = preType(item)
- var post = postType(item)
- if (values[pre]) {
- template.push({value: values[pre]})
- values[pre] = null
- }
- item.minLength = null
- item.length = null
- item.maxLength = null
- template.push(item)
- values[item.type] = values[item.type]
- if (values[post]) {
- template.push({value: values[post]})
- values[post] = null
- }
- return function ($1, $2, length) {
- return renderTemplate(length, template, values)
- }
-}
-
-function prepareItems (width, template, values) {
- function cloneAndObjectify (item, index, arr) {
- var cloned = new TemplateItem(item, width)
- var type = cloned.type
- if (cloned.value == null) {
- if (!(type in values)) {
- if (cloned.default == null) {
- throw new error.MissingTemplateValue(cloned, values)
- } else {
- cloned.value = cloned.default
- }
- } else {
- cloned.value = values[type]
- }
- }
- if (cloned.value == null || cloned.value === '') return null
- cloned.index = index
- cloned.first = index === 0
- cloned.last = index === arr.length - 1
- if (hasPreOrPost(cloned, values)) cloned.value = generatePreAndPost(cloned, values)
- return cloned
- }
-
- var output = template.map(cloneAndObjectify).filter(function (item) { return item != null })
-
- var outputLength = 0
- var remainingSpace = width
- var variableCount = output.length
-
- function consumeSpace (length) {
- if (length > remainingSpace) length = remainingSpace
- outputLength += length
- remainingSpace -= length
- }
-
- function finishSizing (item, length) {
- if (item.finished) throw new error.Internal('Tried to finish template item that was already finished')
- if (length === Infinity) throw new error.Internal('Length of template item cannot be infinity')
- if (length != null) item.length = length
- item.minLength = null
- item.maxLength = null
- --variableCount
- item.finished = true
- if (item.length == null) item.length = item.getBaseLength()
- if (item.length == null) throw new error.Internal('Finished template items must have a length')
- consumeSpace(item.getLength())
- }
-
- output.forEach(function (item) {
- if (!item.kerning) return
- var prevPadRight = item.first ? 0 : output[item.index - 1].padRight
- if (!item.first && prevPadRight < item.kerning) item.padLeft = item.kerning - prevPadRight
- if (!item.last) item.padRight = item.kerning
- })
-
- // Finish any that have a fixed (literal or intuited) length
- output.forEach(function (item) {
- if (item.getBaseLength() == null) return
- finishSizing(item)
- })
-
- var resized = 0
- var resizing
- var hunkSize
- do {
- resizing = false
- hunkSize = Math.round(remainingSpace / variableCount)
- output.forEach(function (item) {
- if (item.finished) return
- if (!item.maxLength) return
- if (item.getMaxLength() < hunkSize) {
- finishSizing(item, item.maxLength)
- resizing = true
- }
- })
- } while (resizing && resized++ < output.length)
- if (resizing) throw new error.Internal('Resize loop iterated too many times while determining maxLength')
-
- resized = 0
- do {
- resizing = false
- hunkSize = Math.round(remainingSpace / variableCount)
- output.forEach(function (item) {
- if (item.finished) return
- if (!item.minLength) return
- if (item.getMinLength() >= hunkSize) {
- finishSizing(item, item.minLength)
- resizing = true
- }
- })
- } while (resizing && resized++ < output.length)
- if (resizing) throw new error.Internal('Resize loop iterated too many times while determining minLength')
-
- hunkSize = Math.round(remainingSpace / variableCount)
- output.forEach(function (item) {
- if (item.finished) return
- finishSizing(item, hunkSize)
- })
-
- return output
-}
-
-function renderFunction (item, values, length) {
- validate('OON', arguments)
- if (item.type) {
- return item.value(values, values[item.type + 'Theme'] || {}, length)
- } else {
- return item.value(values, {}, length)
- }
-}
-
-function renderValue (item, values) {
- var length = item.getBaseLength()
- var value = typeof item.value === 'function' ? renderFunction(item, values, length) : item.value
- if (value == null || value === '') return ''
- var alignWith = align[item.align] || align.left
- var leftPadding = item.padLeft ? align.left('', item.padLeft) : ''
- var rightPadding = item.padRight ? align.right('', item.padRight) : ''
- var truncated = wideTruncate(String(value), length)
- var aligned = alignWith(truncated, length)
- return leftPadding + aligned + rightPadding
-}
diff --git a/node_modules/gauge/set-immediate.js b/node_modules/gauge/set-immediate.js
deleted file mode 100644
index 6650a48..0000000
--- a/node_modules/gauge/set-immediate.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict'
-var process = require('./process')
-try {
- module.exports = setImmediate
-} catch (ex) {
- module.exports = process.nextTick
-}
diff --git a/node_modules/gauge/set-interval.js b/node_modules/gauge/set-interval.js
deleted file mode 100644
index 5761987..0000000
--- a/node_modules/gauge/set-interval.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict'
-// this exists so we can replace it during testing
-module.exports = setInterval
diff --git a/node_modules/gauge/spin.js b/node_modules/gauge/spin.js
deleted file mode 100644
index 34142ee..0000000
--- a/node_modules/gauge/spin.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict'
-
-module.exports = function spin (spinstr, spun) {
- return spinstr[spun % spinstr.length]
-}
diff --git a/node_modules/gauge/template-item.js b/node_modules/gauge/template-item.js
deleted file mode 100644
index e46f447..0000000
--- a/node_modules/gauge/template-item.js
+++ /dev/null
@@ -1,73 +0,0 @@
-'use strict'
-var stringWidth = require('string-width')
-
-module.exports = TemplateItem
-
-function isPercent (num) {
- if (typeof num !== 'string') return false
- return num.slice(-1) === '%'
-}
-
-function percent (num) {
- return Number(num.slice(0, -1)) / 100
-}
-
-function TemplateItem (values, outputLength) {
- this.overallOutputLength = outputLength
- this.finished = false
- this.type = null
- this.value = null
- this.length = null
- this.maxLength = null
- this.minLength = null
- this.kerning = null
- this.align = 'left'
- this.padLeft = 0
- this.padRight = 0
- this.index = null
- this.first = null
- this.last = null
- if (typeof values === 'string') {
- this.value = values
- } else {
- for (var prop in values) this[prop] = values[prop]
- }
- // Realize percents
- if (isPercent(this.length)) {
- this.length = Math.round(this.overallOutputLength * percent(this.length))
- }
- if (isPercent(this.minLength)) {
- this.minLength = Math.round(this.overallOutputLength * percent(this.minLength))
- }
- if (isPercent(this.maxLength)) {
- this.maxLength = Math.round(this.overallOutputLength * percent(this.maxLength))
- }
- return this
-}
-
-TemplateItem.prototype = {}
-
-TemplateItem.prototype.getBaseLength = function () {
- var length = this.length
- if (length == null && typeof this.value === 'string' && this.maxLength == null && this.minLength == null) {
- length = stringWidth(this.value)
- }
- return length
-}
-
-TemplateItem.prototype.getLength = function () {
- var length = this.getBaseLength()
- if (length == null) return null
- return length + this.padLeft + this.padRight
-}
-
-TemplateItem.prototype.getMaxLength = function () {
- if (this.maxLength == null) return null
- return this.maxLength + this.padLeft + this.padRight
-}
-
-TemplateItem.prototype.getMinLength = function () {
- if (this.minLength == null) return null
- return this.minLength + this.padLeft + this.padRight
-}
-
diff --git a/node_modules/gauge/theme-set.js b/node_modules/gauge/theme-set.js
deleted file mode 100644
index 68971d5..0000000
--- a/node_modules/gauge/theme-set.js
+++ /dev/null
@@ -1,115 +0,0 @@
-'use strict'
-var objectAssign = require('object-assign')
-
-module.exports = function () {
- return ThemeSetProto.newThemeSet()
-}
-
-var ThemeSetProto = {}
-
-ThemeSetProto.baseTheme = require('./base-theme.js')
-
-ThemeSetProto.newTheme = function (parent, theme) {
- if (!theme) {
- theme = parent
- parent = this.baseTheme
- }
- return objectAssign({}, parent, theme)
-}
-
-ThemeSetProto.getThemeNames = function () {
- return Object.keys(this.themes)
-}
-
-ThemeSetProto.addTheme = function (name, parent, theme) {
- this.themes[name] = this.newTheme(parent, theme)
-}
-
-ThemeSetProto.addToAllThemes = function (theme) {
- var themes = this.themes
- Object.keys(themes).forEach(function (name) {
- objectAssign(themes[name], theme)
- })
- objectAssign(this.baseTheme, theme)
-}
-
-ThemeSetProto.getTheme = function (name) {
- if (!this.themes[name]) throw this.newMissingThemeError(name)
- return this.themes[name]
-}
-
-ThemeSetProto.setDefault = function (opts, name) {
- if (name == null) {
- name = opts
- opts = {}
- }
- var platform = opts.platform == null ? 'fallback' : opts.platform
- var hasUnicode = !!opts.hasUnicode
- var hasColor = !!opts.hasColor
- if (!this.defaults[platform]) this.defaults[platform] = {true: {}, false: {}}
- this.defaults[platform][hasUnicode][hasColor] = name
-}
-
-ThemeSetProto.getDefault = function (opts) {
- if (!opts) opts = {}
- var platformName = opts.platform || process.platform
- var platform = this.defaults[platformName] || this.defaults.fallback
- var hasUnicode = !!opts.hasUnicode
- var hasColor = !!opts.hasColor
- if (!platform) throw this.newMissingDefaultThemeError(platformName, hasUnicode, hasColor)
- if (!platform[hasUnicode][hasColor]) {
- if (hasUnicode && hasColor && platform[!hasUnicode][hasColor]) {
- hasUnicode = false
- } else if (hasUnicode && hasColor && platform[hasUnicode][!hasColor]) {
- hasColor = false
- } else if (hasUnicode && hasColor && platform[!hasUnicode][!hasColor]) {
- hasUnicode = false
- hasColor = false
- } else if (hasUnicode && !hasColor && platform[!hasUnicode][hasColor]) {
- hasUnicode = false
- } else if (!hasUnicode && hasColor && platform[hasUnicode][!hasColor]) {
- hasColor = false
- } else if (platform === this.defaults.fallback) {
- throw this.newMissingDefaultThemeError(platformName, hasUnicode, hasColor)
- }
- }
- if (platform[hasUnicode][hasColor]) {
- return this.getTheme(platform[hasUnicode][hasColor])
- } else {
- return this.getDefault(objectAssign({}, opts, {platform: 'fallback'}))
- }
-}
-
-ThemeSetProto.newMissingThemeError = function newMissingThemeError (name) {
- var err = new Error('Could not find a gauge theme named "' + name + '"')
- Error.captureStackTrace.call(err, newMissingThemeError)
- err.theme = name
- err.code = 'EMISSINGTHEME'
- return err
-}
-
-ThemeSetProto.newMissingDefaultThemeError = function newMissingDefaultThemeError (platformName, hasUnicode, hasColor) {
- var err = new Error(
- 'Could not find a gauge theme for your platform/unicode/color use combo:\n' +
- ' platform = ' + platformName + '\n' +
- ' hasUnicode = ' + hasUnicode + '\n' +
- ' hasColor = ' + hasColor)
- Error.captureStackTrace.call(err, newMissingDefaultThemeError)
- err.platform = platformName
- err.hasUnicode = hasUnicode
- err.hasColor = hasColor
- err.code = 'EMISSINGTHEME'
- return err
-}
-
-ThemeSetProto.newThemeSet = function () {
- var themeset = function (opts) {
- return themeset.getDefault(opts)
- }
- return objectAssign(themeset, ThemeSetProto, {
- themes: objectAssign({}, this.themes),
- baseTheme: objectAssign({}, this.baseTheme),
- defaults: JSON.parse(JSON.stringify(this.defaults || {}))
- })
-}
-
diff --git a/node_modules/gauge/themes.js b/node_modules/gauge/themes.js
deleted file mode 100644
index eb5a4f5..0000000
--- a/node_modules/gauge/themes.js
+++ /dev/null
@@ -1,54 +0,0 @@
-'use strict'
-var consoleControl = require('console-control-strings')
-var ThemeSet = require('./theme-set.js')
-
-var themes = module.exports = new ThemeSet()
-
-themes.addTheme('ASCII', {
- preProgressbar: '[',
- postProgressbar: ']',
- progressbarTheme: {
- complete: '#',
- remaining: '.'
- },
- activityIndicatorTheme: '-\\|/',
- preSubsection: '>'
-})
-
-themes.addTheme('colorASCII', themes.getTheme('ASCII'), {
- progressbarTheme: {
- preComplete: consoleControl.color('inverse'),
- complete: ' ',
- postComplete: consoleControl.color('stopInverse'),
- preRemaining: consoleControl.color('brightBlack'),
- remaining: '.',
- postRemaining: consoleControl.color('reset')
- }
-})
-
-themes.addTheme('brailleSpinner', {
- preProgressbar: '⸨',
- postProgressbar: '⸩',
- progressbarTheme: {
- complete: '░',
- remaining: '⠂'
- },
- activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏',
- preSubsection: '>'
-})
-
-themes.addTheme('colorBrailleSpinner', themes.getTheme('brailleSpinner'), {
- progressbarTheme: {
- preComplete: consoleControl.color('inverse'),
- complete: ' ',
- postComplete: consoleControl.color('stopInverse'),
- preRemaining: consoleControl.color('brightBlack'),
- remaining: '░',
- postRemaining: consoleControl.color('reset')
- }
-})
-
-themes.setDefault({}, 'ASCII')
-themes.setDefault({hasColor: true}, 'colorASCII')
-themes.setDefault({platform: 'darwin', hasUnicode: true}, 'brailleSpinner')
-themes.setDefault({platform: 'darwin', hasUnicode: true, hasColor: true}, 'colorBrailleSpinner')
diff --git a/node_modules/gauge/wide-truncate.js b/node_modules/gauge/wide-truncate.js
deleted file mode 100644
index c531bc4..0000000
--- a/node_modules/gauge/wide-truncate.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict'
-var stringWidth = require('string-width')
-var stripAnsi = require('strip-ansi')
-
-module.exports = wideTruncate
-
-function wideTruncate (str, target) {
- if (stringWidth(str) === 0) return str
- if (target <= 0) return ''
- if (stringWidth(str) <= target) return str
-
- // We compute the number of bytes of ansi sequences here and add
- // that to our initial truncation to ensure that we don't slice one
- // that we want to keep in half.
- var noAnsi = stripAnsi(str)
- var ansiSize = str.length + noAnsi.length
- var truncated = str.slice(0, target + ansiSize)
-
- // we have to shrink the result to account for our ansi sequence buffer
- // (if an ansi sequence was truncated) and double width characters.
- while (stringWidth(truncated) > target) {
- truncated = truncated.slice(0, -1)
- }
- return truncated
-}
diff --git a/node_modules/gaze/LICENSE-MIT b/node_modules/gaze/LICENSE-MIT
deleted file mode 100644
index 0733a63..0000000
--- a/node_modules/gaze/LICENSE-MIT
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2018 Kyle Robinson Young
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/gaze/README.md b/node_modules/gaze/README.md
deleted file mode 100644
index d7debb5..0000000
--- a/node_modules/gaze/README.md
+++ /dev/null
@@ -1,196 +0,0 @@
-# gaze [![Build Status](http://img.shields.io/travis/shama/gaze.svg)](https://travis-ci.org/shama/gaze) [![Build status](https://ci.appveyor.com/api/projects/status/vtx65w9eg511tgo4)](https://ci.appveyor.com/project/shama/gaze)
-
-A globbing `fs.watch` wrapper built from the best parts of other fine watch libs.
-Compatible with Node.js >= 4.x, Windows, macOS, and Linux.
-
-![gaze](http://dontkry.com/images/repos/gaze.png)
-
-[![NPM](https://nodei.co/npm/gaze.png?downloads=true)](https://nodei.co/npm/gaze/)
-
-## Usage
-Install the module with: `npm install gaze` or place into your `package.json`
-and run `npm install`.
-
-```javascript
-var gaze = require('gaze');
-
-// Watch all .js files/dirs in process.cwd()
-gaze('**/*.js', function(err, watcher) {
- // Files have all started watching
- // watcher === this
-
- // Get all watched files
- var watched = this.watched();
-
- // On file changed
- this.on('changed', function(filepath) {
- console.log(filepath + ' was changed');
- });
-
- // On file added
- this.on('added', function(filepath) {
- console.log(filepath + ' was added');
- });
-
- // On file deleted
- this.on('deleted', function(filepath) {
- console.log(filepath + ' was deleted');
- });
-
- // On changed/added/deleted
- this.on('all', function(event, filepath) {
- console.log(filepath + ' was ' + event);
- });
-
- // Get watched files with relative paths
- var files = this.relative();
-});
-
-// Also accepts an array of patterns
-gaze(['stylesheets/*.css', 'images/**/*.png'], function() {
- // Add more patterns later to be watched
- this.add(['js/*.js']);
-});
-```
-
-### Alternate Interface
-
-```javascript
-var Gaze = require('gaze').Gaze;
-
-var gaze = new Gaze('**/*');
-
-// Files have all started watching
-gaze.on('ready', function(watcher) { });
-
-// A file has been added/changed/deleted has occurred
-gaze.on('all', function(event, filepath) { });
-```
-
-### Errors
-
-```javascript
-gaze('**/*', function(error, watcher) {
- if (error) {
- // Handle error if it occurred while starting up
- }
-});
-
-// Or with the alternative interface
-var gaze = new Gaze();
-gaze.on('error', function(error) {
- // Handle error here
-});
-gaze.add('**/*');
-```
-
-### Minimatch / Glob
-
-See [isaacs's `minimatch`](https://github.com/isaacs/minimatch) for more
-information on glob patterns.
-
-## Documentation
-
-### gaze([patterns, options, callback])
-
-* `patterns` {`String`|`Array`} File patterns to be matched
-* `options` {`Object`}
-* `callback` {`Function`}
- * `err` {`Error` | `null`}
- * `watcher` {`Object`} Instance of the `Gaze` watcher
-
-### Class: `gaze.Gaze`
-
-Create a `Gaze` object by instancing the `gaze.Gaze` class.
-
-```javascript
-var Gaze = require('gaze').Gaze;
-var gaze = new Gaze(pattern, options, callback);
-```
-
-#### Properties
-
-* `options` The options object passed in.
- * `interval` {integer} Interval to pass to `fs.watchFile`
- * `debounceDelay` {integer} Delay for events called in succession for the same
- file/event in milliseconds
- * `mode` {string} Force the watch mode. Either `'auto'` (default), `'watch'` (force native events), or `'poll'` (force stat polling).
- * `cwd` {string} The current working directory to base file patterns from. Default is `process.cwd()`.
-
-#### Events
-
-* `ready(watcher)` When files have been globbed and watching has begun.
-* `all(event, filepath)` When an `added`, `changed`, `renamed`, or `deleted` event occurs.
-* `added(filepath)` When a file has been added to a watch directory.
-* `changed(filepath)` When a file has been changed.
-* `deleted(filepath)` When a file has been deleted.
-* `renamed(newPath, oldPath)` When a file has been renamed.
-* `end()` When the watcher is closed and watches have been removed.
-* `error(err)` When an error occurs.
-* `nomatch` When no files have been matched.
-
-#### Methods
-
-* `emit(event, [...])` Wrapper for `EventEmitter.emit`.
- `added`|`changed`|`renamed`|`deleted` events will also trigger the `all` event.
-* `close()` Unwatch all files and reset the watch instance.
-* `add(patterns, callback)` Adds file(s) `patterns` to be watched.
-* `remove(filepath)` Removes a file or directory from being watched. Does not
- recurse directories.
-* `watched()` Returns the currently watched files.
-* `relative([dir, unixify])` Returns the currently watched files with relative paths.
- * `dir` {string} Only return relative files for this directory.
- * `unixify` {boolean} Return paths with `/` instead of `\\` if on Windows.
-
-## Similar Projects
-
-Other great watch libraries to try are:
-
-* [paulmillr's `chokidar`](https://github.com/paulmillr/chokidar)
-* [amasad's `sane`](https://github.com/amasad/sane)
-* [mikeal's `watch`](https://github.com/mikeal/watch)
-* [github's `pathwatcher`](https://github.com/atom/node-pathwatcher)
-* [bevry's `watchr`](https://github.com/bevry/watchr)
-
-## Contributing
-In lieu of a formal styleguide, take care to maintain the existing coding style.
-Add unit tests for any new or changed functionality. Lint and test your code
-using [grunt](http://gruntjs.com/).
-
-## Release History
-* 1.1.3 - Fix for Node 10 support (@aredridel). Officially dropping support for Node < 4.
-* 1.1.2 - Prevent more `ENOENT` errors from escaping (@alexgorbatchev).
-* 1.1.1 - Prevent `fs.watch` errors from escaping error handler (@rosen-vladimirov). Fix `_addToWatched` without `path.sep` (@wyicwx).
-* 1.1.0 - Update to `globule@1.0.0` with `minimatch >= 3.0.0`.
-* 1.0.0 - Revert back to 0.5.2. Drop support for Node.js v0.8. Fix for `maxListeners`. Update `globule` to `0.2.0`.
-* 0.6.4 - Catch and emit `error` from `readdir` (@oconnore). Fix for `0 maxListeners`. Use `graceful-fs` to avoid `EMFILE` errors in other places `fs` is used. Better method to determine if `pathwatcher` was built. Fix keeping process alive too much, only init `pathwatcher` if a file is being watched. Set min required to Windows Vista when building on Windows (@pvolok).
-* 0.6.3 - Add support for Node.js v0.11
-* 0.6.2 - Fix argument error with `watched()`. Fix for erroneous `added` events on folders. Ignore `msvs` build error 4244.
-* 0.6.1 - Fix for absolute paths.
-* 0.6.0 - Uses native OS events (fork of `pathwatcher`) but can fall back to stat polling. Everything is async to avoid blocking, including `relative()` and `watched()`. Better error handling. Update to `globule@0.2.0`. No longer watches `cwd` by default. Added `mode` option. Better `EMFILE` message. Avoids `ENOENT` errors with symlinks. All constructor arguments are optional.
-* 0.5.2 - Fix for `ENOENT` error with non-existent symlinks [BACKPORTED].
-* 0.5.1 - Use `setImmediate` (`process.nextTick` for Node.js v0.8) to defer `ready`/`nomatch` events (@amasad).
-* 0.5.0 - Process is now kept alive while watching files. Emits a `nomatch` event when no files are matching.
-* 0.4.3 - Track file additions in newly created folders (@brett-shwom).
-* 0.4.2 - Fix `.remove()` method to remove a single file in a directory (@kaelzhang). Fixing “`Cannot call method 'call' of undefined`” (@krasimir). Track new file additions within folders (@brett-shwom).
-* 0.4.1 - Fix `watchDir` not respecting close in race condition (@chrisirhc).
-* 0.4.0 - Drop support for Node.js v0.6. Use `globule` for file matching. Avoid Node.js v0.10 `path.resolve`/`join` errors. Register new files when added to non-existent folder. Multiple instances can now poll the same files (@jpommerening).
-* 0.3.4 - Code clean up. Fix “`path must be strings`” errors (@groner). Fix incorrect `added` events (@groner).
-* 0.3.3 - Fix for multiple patterns with negate.
-* 0.3.2 - Emit `end` before `removeAllListeners`.
-* 0.3.1 - Fix `added` events within subfolder patterns.
-* 0.3.0 - Handle safewrite events, `forceWatchMethod` option removed, bug fixes and watch optimizations (@rgaskill).
-* 0.2.2 - Fix issue where subsequent `add` calls dont get watched (@samcday). `removeAllListeners` on `close`.
-* 0.2.1 - Fix issue with invalid `added` events in current working dir.
-* 0.2.0 - Support and mark folders with `path.sep`. Add `forceWatchMethod` option. Support `renamed` events.
-* 0.1.6 - Recognize the `cwd` option properly
-* 0.1.5 - Catch “`too many open file`” errors
-* 0.1.4 - Really fix the race condition with 2 watches
-* 0.1.3 - Fix race condition with 2 watches
-* 0.1.2 - Read triggering changed event fix
-* 0.1.1 - Minor fixes
-* 0.1.0 - Initial release
-
-## License
-Copyright (c) 2018 Kyle Robinson Young
-Licensed under the MIT license.
diff --git a/node_modules/gaze/lib/gaze.js b/node_modules/gaze/lib/gaze.js
deleted file mode 100644
index 1f556a6..0000000
--- a/node_modules/gaze/lib/gaze.js
+++ /dev/null
@@ -1,469 +0,0 @@
-/*
- * gaze
- * https://github.com/shama/gaze
- *
- * Copyright (c) 2018 Kyle Robinson Young
- * Licensed under the MIT license.
- */
-
-'use strict';
-
-// libs
-var util = require('util');
-var EE = require('events').EventEmitter;
-var fs = require('fs');
-var path = require('path');
-var globule = require('globule');
-var helper = require('./helper');
-
-// shim setImmediate for node v0.8
-var setImmediate = require('timers').setImmediate;
-if (typeof setImmediate !== 'function') {
- setImmediate = process.nextTick;
-}
-
-// globals
-var delay = 10;
-
-// `Gaze` EventEmitter object to return in the callback
-function Gaze (patterns, opts, done) {
- var self = this;
- EE.call(self);
-
- // If second arg is the callback
- if (typeof opts === 'function') {
- done = opts;
- opts = {};
- }
-
- // Default options
- opts = opts || {};
- opts.mark = true;
- opts.interval = opts.interval || 100;
- opts.debounceDelay = opts.debounceDelay || 500;
- opts.cwd = opts.cwd || process.cwd();
- this.options = opts;
-
- // Default done callback
- done = done || function () {};
-
- // Remember our watched dir:files
- this._watched = Object.create(null);
-
- // Store watchers
- this._watchers = Object.create(null);
-
- // Store watchFile listeners
- this._pollers = Object.create(null);
-
- // Store patterns
- this._patterns = [];
-
- // Cached events for debouncing
- this._cached = Object.create(null);
-
- // Set maxListeners
- if (this.options.maxListeners != null) {
- this.setMaxListeners(this.options.maxListeners);
- Gaze.super_.prototype.setMaxListeners(this.options.maxListeners);
- delete this.options.maxListeners;
- }
-
- // Initialize the watch on files
- if (patterns) {
- this.add(patterns, done);
- }
-
- // keep the process alive
- this._keepalive = setInterval(function () {}, 200);
-
- return this;
-}
-util.inherits(Gaze, EE);
-
-// Main entry point. Start watching and call done when setup
-module.exports = function gaze (patterns, opts, done) {
- return new Gaze(patterns, opts, done);
-};
-module.exports.Gaze = Gaze;
-
-// Override the emit function to emit `all` events
-// and debounce on duplicate events per file
-Gaze.prototype.emit = function () {
- var self = this;
- var args = arguments;
-
- var e = args[0];
- var filepath = args[1];
- var timeoutId;
-
- // If not added/deleted/changed/renamed then just emit the event
- if (e.slice(-2) !== 'ed') {
- Gaze.super_.prototype.emit.apply(self, args);
- return this;
- }
-
- // Detect rename event, if added and previous deleted is in the cache
- if (e === 'added') {
- Object.keys(this._cached).forEach(function (oldFile) {
- if (self._cached[oldFile].indexOf('deleted') !== -1) {
- args[0] = e = 'renamed';
- [].push.call(args, oldFile);
- delete self._cached[oldFile];
- return false;
- }
- });
- }
-
- // If cached doesnt exist, create a delay before running the next
- // then emit the event
- var cache = this._cached[filepath] || [];
- if (cache.indexOf(e) === -1) {
- helper.objectPush(self._cached, filepath, e);
- clearTimeout(timeoutId);
- timeoutId = setTimeout(function () {
- delete self._cached[filepath];
- }, this.options.debounceDelay);
- // Emit the event and `all` event
- Gaze.super_.prototype.emit.apply(self, args);
- Gaze.super_.prototype.emit.apply(self, ['all', e].concat([].slice.call(args, 1)));
- }
-
- // Detect if new folder added to trigger for matching files within folder
- if (e === 'added') {
- if (helper.isDir(filepath)) {
- // It's possible that between `isDir` and `readdirSync()` calls the `filepath`
- // gets removed, which will result in `ENOENT` exception
-
- var files;
-
- try {
- files = fs.readdirSync(filepath);
- } catch (e) {
- // Rethrow the error if it's anything other than `ENOENT`
- if (e.code !== 'ENOENT') {
- throw e;
- }
-
- files = [];
- }
-
- files.map(function (file) {
- return path.join(filepath, file);
- }).filter(function (file) {
- return globule.isMatch(self._patterns, file, self.options);
- }).forEach(function (file) {
- self.emit('added', file);
- });
- }
- }
-
- return this;
-};
-
-// Close watchers
-Gaze.prototype.close = function (_reset) {
- var self = this;
- Object.keys(self._watchers).forEach(function (file) {
- self._watchers[file].close();
- });
- self._watchers = Object.create(null);
- Object.keys(this._watched).forEach(function (dir) {
- self._unpollDir(dir);
- });
- if (_reset !== false) {
- self._watched = Object.create(null);
- setTimeout(function () {
- self.emit('end');
- self.removeAllListeners();
- clearInterval(self._keepalive);
- }, delay + 100);
- }
- return self;
-};
-
-// Add file patterns to be watched
-Gaze.prototype.add = function (files, done) {
- if (typeof files === 'string') { files = [files]; }
- this._patterns = helper.unique.apply(null, [this._patterns, files]);
- files = globule.find(this._patterns, this.options);
- this._addToWatched(files);
- this.close(false);
- this._initWatched(done);
-};
-
-// Dont increment patterns and dont call done if nothing added
-Gaze.prototype._internalAdd = function (file, done) {
- var files = [];
- if (helper.isDir(file)) {
- files = [helper.markDir(file)].concat(globule.find(this._patterns, this.options));
- } else {
- if (globule.isMatch(this._patterns, file, this.options)) {
- files = [file];
- }
- }
- if (files.length > 0) {
- this._addToWatched(files);
- this.close(false);
- this._initWatched(done);
- }
-};
-
-// Remove file/dir from `watched`
-Gaze.prototype.remove = function (file) {
- var self = this;
- if (this._watched[file]) {
- // is dir, remove all files
- this._unpollDir(file);
- delete this._watched[file];
- } else {
- // is a file, find and remove
- Object.keys(this._watched).forEach(function (dir) {
- var index = self._watched[dir].indexOf(file);
- if (index !== -1) {
- self._unpollFile(file);
- self._watched[dir].splice(index, 1);
- return false;
- }
- });
- }
- if (this._watchers[file]) {
- this._watchers[file].close();
- }
- return this;
-};
-
-// Return watched files
-Gaze.prototype.watched = function () {
- return this._watched;
-};
-
-// Returns `watched` files with relative paths to process.cwd()
-Gaze.prototype.relative = function (dir, unixify) {
- var self = this;
- var relative = Object.create(null);
- var relDir, relFile, unixRelDir;
- var cwd = this.options.cwd || process.cwd();
- if (dir === '') { dir = '.'; }
- dir = helper.markDir(dir);
- unixify = unixify || false;
- Object.keys(this._watched).forEach(function (dir) {
- relDir = path.relative(cwd, dir) + path.sep;
- if (relDir === path.sep) { relDir = '.'; }
- unixRelDir = unixify ? helper.unixifyPathSep(relDir) : relDir;
- relative[unixRelDir] = self._watched[dir].map(function (file) {
- relFile = path.relative(path.join(cwd, relDir) || '', file || '');
- if (helper.isDir(file)) {
- relFile = helper.markDir(relFile);
- }
- if (unixify) {
- relFile = helper.unixifyPathSep(relFile);
- }
- return relFile;
- });
- });
- if (dir && unixify) {
- dir = helper.unixifyPathSep(dir);
- }
- return dir ? relative[dir] || [] : relative;
-};
-
-// Adds files and dirs to watched
-Gaze.prototype._addToWatched = function (files) {
- var dirs = [];
-
- for (var i = 0; i < files.length; i++) {
- var file = files[i];
- var filepath = path.resolve(this.options.cwd, file);
-
- var dirname = (helper.isDir(file)) ? filepath : path.dirname(filepath);
- dirname = helper.markDir(dirname);
-
- // If a new dir is added
- if (helper.isDir(file) && !(dirname in this._watched)) {
- helper.objectPush(this._watched, dirname, []);
- }
-
- if (file.slice(-1) === '/') { filepath += path.sep; }
- helper.objectPush(this._watched, path.dirname(filepath) + path.sep, filepath);
-
- dirs.push(dirname);
- }
-
- dirs = helper.unique(dirs);
-
- for (var k = 0; k < dirs.length; k++) {
- dirname = dirs[k];
- // add folders into the mix
- var readdir = fs.readdirSync(dirname);
- for (var j = 0; j < readdir.length; j++) {
- var dirfile = path.join(dirname, readdir[j]);
- if (fs.lstatSync(dirfile).isDirectory()) {
- helper.objectPush(this._watched, dirname, dirfile + path.sep);
- }
- }
- }
-
- return this;
-};
-
-Gaze.prototype._watchDir = function (dir, done) {
- var self = this;
- var timeoutId;
- try {
- this._watchers[dir] = fs.watch(dir, function (event) {
- // race condition. Let's give the fs a little time to settle down. so we
- // don't fire events on non existent files.
- clearTimeout(timeoutId);
- timeoutId = setTimeout(function () {
- // race condition. Ensure that this directory is still being watched
- // before continuing.
- if ((dir in self._watchers) && fs.existsSync(dir)) {
- done(null, dir);
- }
- }, delay + 100);
- });
-
- this._watchers[dir].on('error', function (err) {
- self._handleError(err);
- });
- } catch (err) {
- return this._handleError(err);
- }
- return this;
-};
-
-Gaze.prototype._unpollFile = function (file) {
- if (this._pollers[file]) {
- fs.unwatchFile(file, this._pollers[file]);
- delete this._pollers[file];
- }
- return this;
-};
-
-Gaze.prototype._unpollDir = function (dir) {
- this._unpollFile(dir);
- for (var i = 0; i < this._watched[dir].length; i++) {
- this._unpollFile(this._watched[dir][i]);
- }
-};
-
-Gaze.prototype._pollFile = function (file, done) {
- var opts = { persistent: true, interval: this.options.interval };
- if (!this._pollers[file]) {
- this._pollers[file] = function (curr, prev) {
- done(null, file);
- };
- try {
- fs.watchFile(file, opts, this._pollers[file]);
- } catch (err) {
- return this._handleError(err);
- }
- }
- return this;
-};
-
-// Initialize the actual watch on `watched` files
-Gaze.prototype._initWatched = function (done) {
- var self = this;
- var cwd = this.options.cwd || process.cwd();
- var curWatched = Object.keys(self._watched);
-
- // if no matching files
- if (curWatched.length < 1) {
- // Defer to emitting to give a chance to attach event handlers.
- setImmediate(function () {
- self.emit('ready', self);
- if (done) { done.call(self, null, self); }
- self.emit('nomatch');
- });
- return;
- }
-
- helper.forEachSeries(curWatched, function (dir, next) {
- dir = dir || '';
- var files = self._watched[dir];
- // Triggered when a watched dir has an event
- self._watchDir(dir, function (event, dirpath) {
- var relDir = cwd === dir ? '.' : path.relative(cwd, dir);
- relDir = relDir || '';
-
- fs.readdir(dirpath, function (err, current) {
- if (err) { return self.emit('error', err); }
- if (!current) { return; }
-
- try {
- // append path.sep to directories so they match previous.
- current = current.map(function (curPath) {
- if (fs.existsSync(path.join(dir, curPath)) && fs.lstatSync(path.join(dir, curPath)).isDirectory()) {
- return curPath + path.sep;
- } else {
- return curPath;
- }
- });
- } catch (err) {
- // race condition-- sometimes the file no longer exists
- }
-
- // Get watched files for this dir
- var previous = self.relative(relDir);
-
- // If file was deleted
- previous.filter(function (file) {
- return current.indexOf(file) < 0;
- }).forEach(function (file) {
- if (!helper.isDir(file)) {
- var filepath = path.join(dir, file);
- self.remove(filepath);
- self.emit('deleted', filepath);
- }
- });
-
- // If file was added
- current.filter(function (file) {
- return previous.indexOf(file) < 0;
- }).forEach(function (file) {
- // Is it a matching pattern?
- var relFile = path.join(relDir, file);
- // Add to watch then emit event
- self._internalAdd(relFile, function () {
- self.emit('added', path.join(dir, file));
- });
- });
- });
- });
-
- // Watch for change/rename events on files
- files.forEach(function (file) {
- if (helper.isDir(file)) { return; }
- self._pollFile(file, function (err, filepath) {
- if (err) {
- self.emit('error', err);
- return;
- }
- // Only emit changed if the file still exists
- // Prevents changed/deleted duplicate events
- if (fs.existsSync(filepath)) {
- self.emit('changed', filepath);
- }
- });
- });
-
- next();
- }, function () {
- // Return this instance of Gaze
- // delay before ready solves a lot of issues
- setTimeout(function () {
- self.emit('ready', self);
- if (done) { done.call(self, null, self); }
- }, delay + 100);
- });
-};
-
-// If an error, handle it here
-Gaze.prototype._handleError = function (err) {
- if (err.code === 'EMFILE') {
- return this.emit('error', new Error('EMFILE: Too many opened files.'));
- }
- return this.emit('error', err);
-};
diff --git a/node_modules/gaze/lib/helper.js b/node_modules/gaze/lib/helper.js
deleted file mode 100644
index 8e5727d..0000000
--- a/node_modules/gaze/lib/helper.js
+++ /dev/null
@@ -1,84 +0,0 @@
-'use strict';
-
-var path = require('path');
-var helper = module.exports = {};
-
-// Returns boolean whether filepath is dir terminated
-helper.isDir = function isDir (dir) {
- if (typeof dir !== 'string') {
- return false;
- }
- return (dir.slice(-(path.sep.length)) === path.sep);
-};
-
-// Create a `key:[]` if doesnt exist on `obj` then push or concat the `val`
-helper.objectPush = function objectPush (obj, key, val) {
- if (obj[key] == null) {
- obj[key] = [];
- }
- if (Array.isArray(val)) {
- obj[key] = obj[key].concat(val);
- } else if (val) {
- obj[key].push(val);
- }
- obj[key] = helper.unique(obj[key]);
- return obj[key];
-};
-
-// Ensures the dir is marked with path.sep
-helper.markDir = function markDir (dir) {
- if (typeof dir === 'string' &&
- dir.slice(-(path.sep.length)) !== path.sep &&
- dir !== '.') {
- dir += path.sep;
- }
- return dir;
-};
-
-// Changes path.sep to unix ones for testing
-helper.unixifyPathSep = function unixifyPathSep (filepath) {
- return (process.platform === 'win32') ? String(filepath).replace(/\\/g, '/') : filepath;
-};
-
-/**
- * Lo-Dash 1.0.1 <http://lodash.com/>
- * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
- * Based on Underscore.js 1.4.4 <http://underscorejs.org/>
- * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
- * Available under MIT license <http://lodash.com/license>
- */
-helper.unique = function unique () {
- var array = Array.prototype.concat.apply(Array.prototype, arguments);
- var result = [];
- for (var i = 0; i < array.length; i++) {
- if (result.indexOf(array[i]) === -1) {
- result.push(array[i]);
- }
- }
- return result;
-};
-
-/**
- * Copyright (c) 2010 Caolan McMahon
- * Available under MIT license <https://raw.github.com/caolan/async/master/LICENSE>
- */
-helper.forEachSeries = function forEachSeries (arr, iterator, callback) {
- if (!arr.length) { return callback(); }
- var completed = 0;
- var iterate = function () {
- iterator(arr[completed], function (err) {
- if (err) {
- callback(err);
- callback = function () {};
- } else {
- completed += 1;
- if (completed === arr.length) {
- callback(null);
- } else {
- iterate();
- }
- }
- });
- };
- iterate();
-};
diff --git a/node_modules/gaze/package.json b/node_modules/gaze/package.json
deleted file mode 100644
index a72f8e6..0000000
--- a/node_modules/gaze/package.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_from": "gaze@^1.0.0",
- "_id": "gaze@1.1.3",
- "_inBundle": false,
- "_integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==",
- "_location": "/gaze",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "gaze@^1.0.0",
- "name": "gaze",
- "escapedName": "gaze",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz",
- "_shasum": "c441733e13b927ac8c0ff0b4c3b033f28812924a",
- "_spec": "gaze@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "Kyle Robinson Young",
- "email": "kyle@dontkry.com"
- },
- "bugs": {
- "url": "https://github.com/shama/gaze/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "globule": "^1.0.0"
- },
- "deprecated": false,
- "description": "A globbing fs.watch wrapper built from the best parts of other fine watch libs.",
- "devDependencies": {
- "async": "^2.6.1",
- "grunt": "^1.0.1",
- "grunt-benchmark": "^1.0.0",
- "grunt-cli": "^1.2.0",
- "grunt-contrib-jshint": "^1.1.0",
- "grunt-contrib-nodeunit": "^2.0.0",
- "rimraf": "^2.5.2",
- "semistandard": "^12.0.1"
- },
- "engines": {
- "node": ">= 4.0.0"
- },
- "files": [
- "lib",
- "LICENSE-MIT"
- ],
- "homepage": "https://github.com/shama/gaze",
- "keywords": [
- "watch",
- "glob"
- ],
- "license": "MIT",
- "main": "lib/gaze",
- "name": "gaze",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/shama/gaze.git"
- },
- "scripts": {
- "test": "semistandard && grunt nodeunit -v"
- },
- "semistandard": {
- "ignore": [
- "benchmarks",
- "experiments",
- "build",
- "test"
- ]
- },
- "version": "1.1.3"
-}
diff --git a/node_modules/get-caller-file/LICENSE.md b/node_modules/get-caller-file/LICENSE.md
deleted file mode 100644
index bf3e1c0..0000000
--- a/node_modules/get-caller-file/LICENSE.md
+++ /dev/null
@@ -1,6 +0,0 @@
-ISC License (ISC)
-Copyright 2018 Stefan Penner
-
-Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/get-caller-file/README.md b/node_modules/get-caller-file/README.md
deleted file mode 100644
index a7d8c07..0000000
--- a/node_modules/get-caller-file/README.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# get-caller-file
-
-[![Build Status](https://travis-ci.org/stefanpenner/get-caller-file.svg?branch=master)](https://travis-ci.org/stefanpenner/get-caller-file)
-[![Build status](https://ci.appveyor.com/api/projects/status/ol2q94g1932cy14a/branch/master?svg=true)](https://ci.appveyor.com/project/embercli/get-caller-file/branch/master)
-
-This is a utility, which allows a function to figure out from which file it was invoked. It does so by inspecting v8's stack trace at the time it is invoked.
-
-Inspired by http://stackoverflow.com/questions/13227489
-
-*note: this relies on Node/V8 specific APIs, as such other runtimes may not work*
-
-## Installation
-
-```bash
-yarn add get-caller-file
-```
-
-## Usage
-
-Given:
-
-```js
-// ./foo.js
-const getCallerFile = require('get-caller-file');
-
-module.exports = function() {
- return getCallerFile(); // figures out who called it
-};
-```
-
-```js
-// index.js
-const foo = require('./foo');
-
-foo() // => /full/path/to/this/file/index.js
-```
-
-
-## Options:
-
-* `getCallerFile(position = 2)`: where position is stack frame whos fileName we want.
diff --git a/node_modules/get-caller-file/index.d.ts b/node_modules/get-caller-file/index.d.ts
deleted file mode 100644
index babed69..0000000
--- a/node_modules/get-caller-file/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-declare const _default: (position?: number) => any;
-export = _default;
diff --git a/node_modules/get-caller-file/index.js b/node_modules/get-caller-file/index.js
deleted file mode 100644
index 57304f8..0000000
--- a/node_modules/get-caller-file/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-// Call this function in a another function to find out the file from
-// which that function was called from. (Inspects the v8 stack trace)
-//
-// Inspired by http://stackoverflow.com/questions/13227489
-module.exports = function getCallerFile(position) {
- if (position === void 0) { position = 2; }
- if (position >= Error.stackTraceLimit) {
- throw new TypeError('getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `' + position + '` and Error.stackTraceLimit was: `' + Error.stackTraceLimit + '`');
- }
- var oldPrepareStackTrace = Error.prepareStackTrace;
- Error.prepareStackTrace = function (_, stack) { return stack; };
- var stack = new Error().stack;
- Error.prepareStackTrace = oldPrepareStackTrace;
- if (stack !== null && typeof stack === 'object') {
- // stack[0] holds this file
- // stack[1] holds where this function was called
- // stack[2] holds the file we're interested in
- return stack[position] ? stack[position].getFileName() : undefined;
- }
-};
-//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/node_modules/get-caller-file/index.js.map b/node_modules/get-caller-file/index.js.map
deleted file mode 100644
index 89c655c..0000000
--- a/node_modules/get-caller-file/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,qEAAqE;AACrE,EAAE;AACF,0DAA0D;AAE1D,iBAAS,SAAS,aAAa,CAAC,QAAY;IAAZ,yBAAA,EAAA,YAAY;IAC1C,IAAI,QAAQ,IAAI,KAAK,CAAC,eAAe,EAAE;QACrC,MAAM,IAAI,SAAS,CAAC,kGAAkG,GAAG,QAAQ,GAAG,oCAAoC,GAAG,KAAK,CAAC,eAAe,GAAG,GAAG,CAAC,CAAC;KACzM;IAED,IAAM,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACrD,KAAK,CAAC,iBAAiB,GAAG,UAAC,CAAC,EAAE,KAAK,IAAM,OAAA,KAAK,EAAL,CAAK,CAAC;IAC/C,IAAM,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;IAChC,KAAK,CAAC,iBAAiB,GAAG,oBAAoB,CAAC;IAG/C,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC/C,2BAA2B;QAC3B,gDAAgD;QAChD,8CAA8C;QAC9C,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,QAAQ,CAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;KAC7E;AACH,CAAC,CAAC"} \ No newline at end of file
diff --git a/node_modules/get-caller-file/package.json b/node_modules/get-caller-file/package.json
deleted file mode 100644
index 171bee6..0000000
--- a/node_modules/get-caller-file/package.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "_from": "get-caller-file@^2.0.1",
- "_id": "get-caller-file@2.0.5",
- "_inBundle": false,
- "_integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
- "_location": "/get-caller-file",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "get-caller-file@^2.0.1",
- "name": "get-caller-file",
- "escapedName": "get-caller-file",
- "rawSpec": "^2.0.1",
- "saveSpec": null,
- "fetchSpec": "^2.0.1"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "_shasum": "4f94412a82db32f36e3b0b9741f8a97feb031f7e",
- "_spec": "get-caller-file@^2.0.1",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "Stefan Penner"
- },
- "bugs": {
- "url": "https://github.com/stefanpenner/get-caller-file/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "[![Build Status](https://travis-ci.org/stefanpenner/get-caller-file.svg?branch=master)](https://travis-ci.org/stefanpenner/get-caller-file) [![Build status](https://ci.appveyor.com/api/projects/status/ol2q94g1932cy14a/branch/master?svg=true)](https://ci.appveyor.com/project/embercli/get-caller-file/branch/master)",
- "devDependencies": {
- "@types/chai": "^4.1.7",
- "@types/ensure-posix-path": "^1.0.0",
- "@types/mocha": "^5.2.6",
- "@types/node": "^11.10.5",
- "chai": "^4.1.2",
- "ensure-posix-path": "^1.0.1",
- "mocha": "^5.2.0",
- "typescript": "^3.3.3333"
- },
- "directories": {
- "test": "tests"
- },
- "engines": {
- "node": "6.* || 8.* || >= 10.*"
- },
- "files": [
- "index.js",
- "index.js.map",
- "index.d.ts"
- ],
- "homepage": "https://github.com/stefanpenner/get-caller-file#readme",
- "license": "ISC",
- "main": "index.js",
- "name": "get-caller-file",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/stefanpenner/get-caller-file.git"
- },
- "scripts": {
- "prepare": "tsc",
- "test": "mocha test",
- "test:debug": "mocha test"
- },
- "version": "2.0.5"
-}
diff --git a/node_modules/get-stdin/index.js b/node_modules/get-stdin/index.js
deleted file mode 100644
index 0f1aeb3..0000000
--- a/node_modules/get-stdin/index.js
+++ /dev/null
@@ -1,49 +0,0 @@
-'use strict';
-
-module.exports = function (cb) {
- var stdin = process.stdin;
- var ret = '';
-
- if (stdin.isTTY) {
- setImmediate(cb, '');
- return;
- }
-
- stdin.setEncoding('utf8');
-
- stdin.on('readable', function () {
- var chunk;
-
- while (chunk = stdin.read()) {
- ret += chunk;
- }
- });
-
- stdin.on('end', function () {
- cb(ret);
- });
-};
-
-module.exports.buffer = function (cb) {
- var stdin = process.stdin;
- var ret = [];
- var len = 0;
-
- if (stdin.isTTY) {
- setImmediate(cb, new Buffer(''));
- return;
- }
-
- stdin.on('readable', function () {
- var chunk;
-
- while (chunk = stdin.read()) {
- ret.push(chunk);
- len += chunk.length;
- }
- });
-
- stdin.on('end', function () {
- cb(Buffer.concat(ret, len));
- });
-};
diff --git a/node_modules/get-stdin/package.json b/node_modules/get-stdin/package.json
deleted file mode 100644
index 4d4467c..0000000
--- a/node_modules/get-stdin/package.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "_from": "get-stdin@^4.0.1",
- "_id": "get-stdin@4.0.1",
- "_inBundle": false,
- "_integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=",
- "_location": "/get-stdin",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "get-stdin@^4.0.1",
- "name": "get-stdin",
- "escapedName": "get-stdin",
- "rawSpec": "^4.0.1",
- "saveSpec": null,
- "fetchSpec": "^4.0.1"
- },
- "_requiredBy": [
- "/node-sass",
- "/strip-indent"
- ],
- "_resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
- "_shasum": "b968c6b0a04384324902e8bf1a5df32579a450fe",
- "_spec": "get-stdin@^4.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/get-stdin/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Easier stdin",
- "devDependencies": {
- "ava": "0.0.4",
- "buffer-equal": "0.0.1"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/get-stdin#readme",
- "keywords": [
- "std",
- "stdin",
- "stdio",
- "concat",
- "buffer",
- "stream",
- "process",
- "stream"
- ],
- "license": "MIT",
- "name": "get-stdin",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/get-stdin.git"
- },
- "scripts": {
- "test": "node test.js && node test-buffer.js && echo unicorns | node test-real.js"
- },
- "version": "4.0.1"
-}
diff --git a/node_modules/get-stdin/readme.md b/node_modules/get-stdin/readme.md
deleted file mode 100644
index bc1d32a..0000000
--- a/node_modules/get-stdin/readme.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# get-stdin [![Build Status](https://travis-ci.org/sindresorhus/get-stdin.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stdin)
-
-> Easier stdin
-
-
-## Install
-
-```sh
-$ npm install --save get-stdin
-```
-
-
-## Usage
-
-```js
-// example.js
-var stdin = require('get-stdin');
-
-stdin(function (data) {
- console.log(data);
- //=> unicorns
-});
-```
-
-```sh
-$ echo unicorns | node example.js
-unicorns
-```
-
-
-## API
-
-### stdin(callback)
-
-Get `stdin` as a string.
-
-### stdin.buffer(callback)
-
-Get `stdin` as a buffer.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/getpass/.npmignore b/node_modules/getpass/.npmignore
deleted file mode 100644
index a4261fc..0000000
--- a/node_modules/getpass/.npmignore
+++ /dev/null
@@ -1,8 +0,0 @@
-.gitmodules
-deps
-docs
-Makefile
-node_modules
-test
-tools
-coverage
diff --git a/node_modules/getpass/.travis.yml b/node_modules/getpass/.travis.yml
deleted file mode 100644
index d8b5833..0000000
--- a/node_modules/getpass/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: node_js
-node_js:
- - "5.10"
- - "4.4"
- - "4.1"
- - "0.12"
- - "0.10"
-before_install:
- - "make check"
diff --git a/node_modules/getpass/LICENSE b/node_modules/getpass/LICENSE
deleted file mode 100644
index f6d947d..0000000
--- a/node_modules/getpass/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-Copyright Joyent, Inc. All rights reserved.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
diff --git a/node_modules/getpass/README.md b/node_modules/getpass/README.md
deleted file mode 100644
index 6e4a50f..0000000
--- a/node_modules/getpass/README.md
+++ /dev/null
@@ -1,32 +0,0 @@
-## getpass
-
-Get a password from the terminal. Sounds simple? Sounds like the `readline`
-module should be able to do it? NOPE.
-
-## Install and use it
-
-```bash
-npm install --save getpass
-```
-
-```javascript
-const mod_getpass = require('getpass');
-```
-
-## API
-
-### `mod_getpass.getPass([options, ]callback)`
-
-Gets a password from the terminal. If available, this uses `/dev/tty` to avoid
-interfering with any data being piped in or out of stdio.
-
-This function prints a prompt (by default `Password:`) and then accepts input
-without echoing.
-
-Parameters:
-
- * `options`, an Object, with properties:
- * `prompt`, an optional String
- * `callback`, a `Func(error, password)`, with arguments:
- * `error`, either `null` (no error) or an `Error` instance
- * `password`, a String
diff --git a/node_modules/getpass/lib/index.js b/node_modules/getpass/lib/index.js
deleted file mode 100644
index 55a7718..0000000
--- a/node_modules/getpass/lib/index.js
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * Copyright 2016, Joyent, Inc. All rights reserved.
- * Author: Alex Wilson <alex.wilson@joyent.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
- * deal in the Software without restriction, including without limitation the
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- * sell copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
-*/
-
-module.exports = {
- getPass: getPass
-};
-
-const mod_tty = require('tty');
-const mod_fs = require('fs');
-const mod_assert = require('assert-plus');
-
-var BACKSPACE = String.fromCharCode(127);
-var CTRLC = '\u0003';
-var CTRLD = '\u0004';
-
-function getPass(opts, cb) {
- if (typeof (opts) === 'function' && cb === undefined) {
- cb = opts;
- opts = {};
- }
- mod_assert.object(opts, 'options');
- mod_assert.func(cb, 'callback');
-
- mod_assert.optionalString(opts.prompt, 'options.prompt');
- if (opts.prompt === undefined)
- opts.prompt = 'Password';
-
- openTTY(function (err, rfd, wfd, rtty, wtty) {
- if (err) {
- cb(err);
- return;
- }
-
- wtty.write(opts.prompt + ':');
- rtty.resume();
- rtty.setRawMode(true);
- rtty.resume();
- rtty.setEncoding('utf8');
-
- var pw = '';
- rtty.on('data', onData);
-
- function onData(data) {
- var str = data.toString('utf8');
- for (var i = 0; i < str.length; ++i) {
- var ch = str[i];
- switch (ch) {
- case '\r':
- case '\n':
- case CTRLD:
- cleanup();
- cb(null, pw);
- return;
- case CTRLC:
- cleanup();
- cb(new Error('Aborted'));
- return;
- case BACKSPACE:
- pw = pw.slice(0, pw.length - 1);
- break;
- default:
- pw += ch;
- break;
- }
- }
- }
-
- function cleanup() {
- wtty.write('\r\n');
- rtty.setRawMode(false);
- rtty.pause();
- rtty.removeListener('data', onData);
- if (wfd !== undefined && wfd !== rfd) {
- wtty.end();
- mod_fs.closeSync(wfd);
- }
- if (rfd !== undefined) {
- rtty.end();
- mod_fs.closeSync(rfd);
- }
- }
- });
-}
-
-function openTTY(cb) {
- mod_fs.open('/dev/tty', 'r+', function (err, rttyfd) {
- if ((err && (err.code === 'ENOENT' || err.code === 'EACCES')) ||
- (process.version.match(/^v0[.][0-8][.]/))) {
- cb(null, undefined, undefined, process.stdin,
- process.stdout);
- return;
- }
- var rtty = new mod_tty.ReadStream(rttyfd);
- mod_fs.open('/dev/tty', 'w+', function (err3, wttyfd) {
- var wtty = new mod_tty.WriteStream(wttyfd);
- if (err3) {
- cb(err3);
- return;
- }
- cb(null, rttyfd, wttyfd, rtty, wtty);
- });
- });
-}
diff --git a/node_modules/getpass/package.json b/node_modules/getpass/package.json
deleted file mode 100644
index 9f5a511..0000000
--- a/node_modules/getpass/package.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "_from": "getpass@^0.1.1",
- "_id": "getpass@0.1.7",
- "_inBundle": false,
- "_integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
- "_location": "/getpass",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "getpass@^0.1.1",
- "name": "getpass",
- "escapedName": "getpass",
- "rawSpec": "^0.1.1",
- "saveSpec": null,
- "fetchSpec": "^0.1.1"
- },
- "_requiredBy": [
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
- "_shasum": "5eff8e3e684d569ae4cb2b1282604e8ba62149fa",
- "_spec": "getpass@^0.1.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "author": {
- "name": "Alex Wilson",
- "email": "alex.wilson@joyent.com"
- },
- "bugs": {
- "url": "https://github.com/arekinath/node-getpass/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "assert-plus": "^1.0.0"
- },
- "deprecated": false,
- "description": "getpass for node.js",
- "homepage": "https://github.com/arekinath/node-getpass#readme",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "getpass",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/arekinath/node-getpass.git"
- },
- "scripts": {
- "test": "tape test/*.test.js"
- },
- "version": "0.1.7"
-}
diff --git a/node_modules/glob/LICENSE b/node_modules/glob/LICENSE
deleted file mode 100644
index 42ca266..0000000
--- a/node_modules/glob/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-## Glob Logo
-
-Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
-under a Creative Commons Attribution-ShareAlike 4.0 International License
-https://creativecommons.org/licenses/by-sa/4.0/
diff --git a/node_modules/glob/README.md b/node_modules/glob/README.md
deleted file mode 100644
index 0916a48..0000000
--- a/node_modules/glob/README.md
+++ /dev/null
@@ -1,375 +0,0 @@
-# Glob
-
-Match files using the patterns the shell uses, like stars and stuff.
-
-[![Build Status](https://travis-ci.org/isaacs/node-glob.svg?branch=master)](https://travis-ci.org/isaacs/node-glob/) [![Build Status](https://ci.appveyor.com/api/projects/status/kd7f3yftf7unxlsx?svg=true)](https://ci.appveyor.com/project/isaacs/node-glob) [![Coverage Status](https://coveralls.io/repos/isaacs/node-glob/badge.svg?branch=master&service=github)](https://coveralls.io/github/isaacs/node-glob?branch=master)
-
-This is a glob implementation in JavaScript. It uses the `minimatch`
-library to do its matching.
-
-![](logo/glob.png)
-
-## Usage
-
-Install with npm
-
-```
-npm i glob
-```
-
-```javascript
-var glob = require("glob")
-
-// options is optional
-glob("**/*.js", options, function (er, files) {
- // files is an array of filenames.
- // If the `nonull` option is set, and nothing
- // was found, then files is ["**/*.js"]
- // er is an error object or null.
-})
-```
-
-## Glob Primer
-
-"Globs" are the patterns you type when you do stuff like `ls *.js` on
-the command line, or put `build/*` in a `.gitignore` file.
-
-Before parsing the path part patterns, braced sections are expanded
-into a set. Braced sections start with `{` and end with `}`, with any
-number of comma-delimited sections within. Braced sections may contain
-slash characters, so `a{/b/c,bcd}` would expand into `a/b/c` and `abcd`.
-
-The following characters have special magic meaning when used in a
-path portion:
-
-* `*` Matches 0 or more characters in a single path portion
-* `?` Matches 1 character
-* `[...]` Matches a range of characters, similar to a RegExp range.
- If the first character of the range is `!` or `^` then it matches
- any character not in the range.
-* `!(pattern|pattern|pattern)` Matches anything that does not match
- any of the patterns provided.
-* `?(pattern|pattern|pattern)` Matches zero or one occurrence of the
- patterns provided.
-* `+(pattern|pattern|pattern)` Matches one or more occurrences of the
- patterns provided.
-* `*(a|b|c)` Matches zero or more occurrences of the patterns provided
-* `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns
- provided
-* `**` If a "globstar" is alone in a path portion, then it matches
- zero or more directories and subdirectories searching for matches.
- It does not crawl symlinked directories.
-
-### Dots
-
-If a file or directory path portion has a `.` as the first character,
-then it will not match any glob pattern unless that pattern's
-corresponding path part also has a `.` as its first character.
-
-For example, the pattern `a/.*/c` would match the file at `a/.b/c`.
-However the pattern `a/*/c` would not, because `*` does not start with
-a dot character.
-
-You can make glob treat dots as normal characters by setting
-`dot:true` in the options.
-
-### Basename Matching
-
-If you set `matchBase:true` in the options, and the pattern has no
-slashes in it, then it will seek for any file anywhere in the tree
-with a matching basename. For example, `*.js` would match
-`test/simple/basic.js`.
-
-### Empty Sets
-
-If no matching files are found, then an empty array is returned. This
-differs from the shell, where the pattern itself is returned. For
-example:
-
- $ echo a*s*d*f
- a*s*d*f
-
-To get the bash-style behavior, set the `nonull:true` in the options.
-
-### See Also:
-
-* `man sh`
-* `man bash` (Search for "Pattern Matching")
-* `man 3 fnmatch`
-* `man 5 gitignore`
-* [minimatch documentation](https://github.com/isaacs/minimatch)
-
-## glob.hasMagic(pattern, [options])
-
-Returns `true` if there are any special characters in the pattern, and
-`false` otherwise.
-
-Note that the options affect the results. If `noext:true` is set in
-the options object, then `+(a|b)` will not be considered a magic
-pattern. If the pattern has a brace expansion, like `a/{b/c,x/y}`
-then that is considered magical, unless `nobrace:true` is set in the
-options.
-
-## glob(pattern, [options], cb)
-
-* `pattern` `{String}` Pattern to be matched
-* `options` `{Object}`
-* `cb` `{Function}`
- * `err` `{Error | null}`
- * `matches` `{Array<String>}` filenames found matching the pattern
-
-Perform an asynchronous glob search.
-
-## glob.sync(pattern, [options])
-
-* `pattern` `{String}` Pattern to be matched
-* `options` `{Object}`
-* return: `{Array<String>}` filenames found matching the pattern
-
-Perform a synchronous glob search.
-
-## Class: glob.Glob
-
-Create a Glob object by instantiating the `glob.Glob` class.
-
-```javascript
-var Glob = require("glob").Glob
-var mg = new Glob(pattern, options, cb)
-```
-
-It's an EventEmitter, and starts walking the filesystem to find matches
-immediately.
-
-### new glob.Glob(pattern, [options], [cb])
-
-* `pattern` `{String}` pattern to search for
-* `options` `{Object}`
-* `cb` `{Function}` Called when an error occurs, or matches are found
- * `err` `{Error | null}`
- * `matches` `{Array<String>}` filenames found matching the pattern
-
-Note that if the `sync` flag is set in the options, then matches will
-be immediately available on the `g.found` member.
-
-### Properties
-
-* `minimatch` The minimatch object that the glob uses.
-* `options` The options object passed in.
-* `aborted` Boolean which is set to true when calling `abort()`. There
- is no way at this time to continue a glob search after aborting, but
- you can re-use the statCache to avoid having to duplicate syscalls.
-* `cache` Convenience object. Each field has the following possible
- values:
- * `false` - Path does not exist
- * `true` - Path exists
- * `'FILE'` - Path exists, and is not a directory
- * `'DIR'` - Path exists, and is a directory
- * `[file, entries, ...]` - Path exists, is a directory, and the
- array value is the results of `fs.readdir`
-* `statCache` Cache of `fs.stat` results, to prevent statting the same
- path multiple times.
-* `symlinks` A record of which paths are symbolic links, which is
- relevant in resolving `**` patterns.
-* `realpathCache` An optional object which is passed to `fs.realpath`
- to minimize unnecessary syscalls. It is stored on the instantiated
- Glob object, and may be re-used.
-
-### Events
-
-* `end` When the matching is finished, this is emitted with all the
- matches found. If the `nonull` option is set, and no match was found,
- then the `matches` list contains the original pattern. The matches
- are sorted, unless the `nosort` flag is set.
-* `match` Every time a match is found, this is emitted with the specific
- thing that matched. It is not deduplicated or resolved to a realpath.
-* `error` Emitted when an unexpected error is encountered, or whenever
- any fs error occurs if `options.strict` is set.
-* `abort` When `abort()` is called, this event is raised.
-
-### Methods
-
-* `pause` Temporarily stop the search
-* `resume` Resume the search
-* `abort` Stop the search forever
-
-### Options
-
-All the options that can be passed to Minimatch can also be passed to
-Glob to change pattern matching behavior. Also, some have been added,
-or have glob-specific ramifications.
-
-All options are false by default, unless otherwise noted.
-
-All options are added to the Glob object, as well.
-
-If you are running many `glob` operations, you can pass a Glob object
-as the `options` argument to a subsequent operation to shortcut some
-`stat` and `readdir` calls. At the very least, you may pass in shared
-`symlinks`, `statCache`, `realpathCache`, and `cache` options, so that
-parallel glob operations will be sped up by sharing information about
-the filesystem.
-
-* `cwd` The current working directory in which to search. Defaults
- to `process.cwd()`.
-* `root` The place where patterns starting with `/` will be mounted
- onto. Defaults to `path.resolve(options.cwd, "/")` (`/` on Unix
- systems, and `C:\` or some such on Windows.)
-* `dot` Include `.dot` files in normal matches and `globstar` matches.
- Note that an explicit dot in a portion of the pattern will always
- match dot files.
-* `nomount` By default, a pattern starting with a forward-slash will be
- "mounted" onto the root setting, so that a valid filesystem path is
- returned. Set this flag to disable that behavior.
-* `mark` Add a `/` character to directory matches. Note that this
- requires additional stat calls.
-* `nosort` Don't sort the results.
-* `stat` Set to true to stat *all* results. This reduces performance
- somewhat, and is completely unnecessary, unless `readdir` is presumed
- to be an untrustworthy indicator of file existence.
-* `silent` When an unusual error is encountered when attempting to
- read a directory, a warning will be printed to stderr. Set the
- `silent` option to true to suppress these warnings.
-* `strict` When an unusual error is encountered when attempting to
- read a directory, the process will just continue on in search of
- other matches. Set the `strict` option to raise an error in these
- cases.
-* `cache` See `cache` property above. Pass in a previously generated
- cache object to save some fs calls.
-* `statCache` A cache of results of filesystem information, to prevent
- unnecessary stat calls. While it should not normally be necessary
- to set this, you may pass the statCache from one glob() call to the
- options object of another, if you know that the filesystem will not
- change between calls. (See "Race Conditions" below.)
-* `symlinks` A cache of known symbolic links. You may pass in a
- previously generated `symlinks` object to save `lstat` calls when
- resolving `**` matches.
-* `sync` DEPRECATED: use `glob.sync(pattern, opts)` instead.
-* `nounique` In some cases, brace-expanded patterns can result in the
- same file showing up multiple times in the result set. By default,
- this implementation prevents duplicates in the result set. Set this
- flag to disable that behavior.
-* `nonull` Set to never return an empty set, instead returning a set
- containing the pattern itself. This is the default in glob(3).
-* `debug` Set to enable debug logging in minimatch and glob.
-* `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets.
-* `noglobstar` Do not match `**` against multiple filenames. (Ie,
- treat it as a normal `*` instead.)
-* `noext` Do not match `+(a|b)` "extglob" patterns.
-* `nocase` Perform a case-insensitive match. Note: on
- case-insensitive filesystems, non-magic patterns will match by
- default, since `stat` and `readdir` will not raise errors.
-* `matchBase` Perform a basename-only match if the pattern does not
- contain any slash characters. That is, `*.js` would be treated as
- equivalent to `**/*.js`, matching all js files in all directories.
-* `nodir` Do not match directories, only files. (Note: to match
- *only* directories, simply put a `/` at the end of the pattern.)
-* `ignore` Add a pattern or an array of glob patterns to exclude matches.
- Note: `ignore` patterns are *always* in `dot:true` mode, regardless
- of any other settings.
-* `follow` Follow symlinked directories when expanding `**` patterns.
- Note that this can result in a lot of duplicate references in the
- presence of cyclic links.
-* `realpath` Set to true to call `fs.realpath` on all of the results.
- In the case of a symlink that cannot be resolved, the full absolute
- path to the matched entry is returned (though it will usually be a
- broken symlink)
-* `absolute` Set to true to always receive absolute paths for matched
- files. Unlike `realpath`, this also affects the values returned in
- the `match` event.
-
-## Comparisons to other fnmatch/glob implementations
-
-While strict compliance with the existing standards is a worthwhile
-goal, some discrepancies exist between node-glob and other
-implementations, and are intentional.
-
-The double-star character `**` is supported by default, unless the
-`noglobstar` flag is set. This is supported in the manner of bsdglob
-and bash 4.3, where `**` only has special significance if it is the only
-thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
-`a/**b` will not.
-
-Note that symlinked directories are not crawled as part of a `**`,
-though their contents may match against subsequent portions of the
-pattern. This prevents infinite loops and duplicates and the like.
-
-If an escaped pattern has no matches, and the `nonull` flag is set,
-then glob returns the pattern as-provided, rather than
-interpreting the character escapes. For example,
-`glob.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
-`"*a?"`. This is akin to setting the `nullglob` option in bash, except
-that it does not resolve escaped pattern characters.
-
-If brace expansion is not disabled, then it is performed before any
-other interpretation of the glob pattern. Thus, a pattern like
-`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
-**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
-checked for validity. Since those two are valid, matching proceeds.
-
-### Comments and Negation
-
-Previously, this module let you mark a pattern as a "comment" if it
-started with a `#` character, or a "negated" pattern if it started
-with a `!` character.
-
-These options were deprecated in version 5, and removed in version 6.
-
-To specify things that should not match, use the `ignore` option.
-
-## Windows
-
-**Please only use forward-slashes in glob expressions.**
-
-Though windows uses either `/` or `\` as its path separator, only `/`
-characters are used by this glob implementation. You must use
-forward-slashes **only** in glob expressions. Back-slashes will always
-be interpreted as escape characters, not path separators.
-
-Results from absolute patterns such as `/foo/*` are mounted onto the
-root setting using `path.join`. On windows, this will by default result
-in `/foo/*` matching `C:\foo\bar.txt`.
-
-## Race Conditions
-
-Glob searching, by its very nature, is susceptible to race conditions,
-since it relies on directory walking and such.
-
-As a result, it is possible that a file that exists when glob looks for
-it may have been deleted or modified by the time it returns the result.
-
-As part of its internal implementation, this program caches all stat
-and readdir calls that it makes, in order to cut down on system
-overhead. However, this also makes it even more susceptible to races,
-especially if the cache or statCache objects are reused between glob
-calls.
-
-Users are thus advised not to use a glob result as a guarantee of
-filesystem state in the face of rapid changes. For the vast majority
-of operations, this is never a problem.
-
-## Glob Logo
-Glob's logo was created by [Tanya Brassie](http://tanyabrassie.com/). Logo files can be found [here](https://github.com/isaacs/node-glob/tree/master/logo).
-
-The logo is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
-
-## Contributing
-
-Any change to behavior (including bugfixes) must come with a test.
-
-Patches that fail tests or reduce performance will be rejected.
-
-```
-# to run tests
-npm test
-
-# to re-generate test fixtures
-npm run test-regen
-
-# to benchmark against bash/zsh
-npm run bench
-
-# to profile javascript
-npm run prof
-```
-
-![](oh-my-glob.gif)
diff --git a/node_modules/glob/changelog.md b/node_modules/glob/changelog.md
deleted file mode 100644
index 4163677..0000000
--- a/node_modules/glob/changelog.md
+++ /dev/null
@@ -1,67 +0,0 @@
-## 7.0
-
-- Raise error if `options.cwd` is specified, and not a directory
-
-## 6.0
-
-- Remove comment and negation pattern support
-- Ignore patterns are always in `dot:true` mode
-
-## 5.0
-
-- Deprecate comment and negation patterns
-- Fix regression in `mark` and `nodir` options from making all cache
- keys absolute path.
-- Abort if `fs.readdir` returns an error that's unexpected
-- Don't emit `match` events for ignored items
-- Treat ENOTSUP like ENOTDIR in readdir
-
-## 4.5
-
-- Add `options.follow` to always follow directory symlinks in globstar
-- Add `options.realpath` to call `fs.realpath` on all results
-- Always cache based on absolute path
-
-## 4.4
-
-- Add `options.ignore`
-- Fix handling of broken symlinks
-
-## 4.3
-
-- Bump minimatch to 2.x
-- Pass all tests on Windows
-
-## 4.2
-
-- Add `glob.hasMagic` function
-- Add `options.nodir` flag
-
-## 4.1
-
-- Refactor sync and async implementations for performance
-- Throw if callback provided to sync glob function
-- Treat symbolic links in globstar results the same as Bash 4.3
-
-## 4.0
-
-- Use `^` for dependency versions (bumped major because this breaks
- older npm versions)
-- Ensure callbacks are only ever called once
-- switch to ISC license
-
-## 3.x
-
-- Rewrite in JavaScript
-- Add support for setting root, cwd, and windows support
-- Cache many fs calls
-- Add globstar support
-- emit match events
-
-## 2.x
-
-- Use `glob.h` and `fnmatch.h` from NetBSD
-
-## 1.x
-
-- `glob.h` static binding.
diff --git a/node_modules/glob/common.js b/node_modules/glob/common.js
deleted file mode 100644
index 66651bb..0000000
--- a/node_modules/glob/common.js
+++ /dev/null
@@ -1,240 +0,0 @@
-exports.alphasort = alphasort
-exports.alphasorti = alphasorti
-exports.setopts = setopts
-exports.ownProp = ownProp
-exports.makeAbs = makeAbs
-exports.finish = finish
-exports.mark = mark
-exports.isIgnored = isIgnored
-exports.childrenIgnored = childrenIgnored
-
-function ownProp (obj, field) {
- return Object.prototype.hasOwnProperty.call(obj, field)
-}
-
-var path = require("path")
-var minimatch = require("minimatch")
-var isAbsolute = require("path-is-absolute")
-var Minimatch = minimatch.Minimatch
-
-function alphasorti (a, b) {
- return a.toLowerCase().localeCompare(b.toLowerCase())
-}
-
-function alphasort (a, b) {
- return a.localeCompare(b)
-}
-
-function setupIgnores (self, options) {
- self.ignore = options.ignore || []
-
- if (!Array.isArray(self.ignore))
- self.ignore = [self.ignore]
-
- if (self.ignore.length) {
- self.ignore = self.ignore.map(ignoreMap)
- }
-}
-
-// ignore patterns are always in dot:true mode.
-function ignoreMap (pattern) {
- var gmatcher = null
- if (pattern.slice(-3) === '/**') {
- var gpattern = pattern.replace(/(\/\*\*)+$/, '')
- gmatcher = new Minimatch(gpattern, { dot: true })
- }
-
- return {
- matcher: new Minimatch(pattern, { dot: true }),
- gmatcher: gmatcher
- }
-}
-
-function setopts (self, pattern, options) {
- if (!options)
- options = {}
-
- // base-matching: just use globstar for that.
- if (options.matchBase && -1 === pattern.indexOf("/")) {
- if (options.noglobstar) {
- throw new Error("base matching requires globstar")
- }
- pattern = "**/" + pattern
- }
-
- self.silent = !!options.silent
- self.pattern = pattern
- self.strict = options.strict !== false
- self.realpath = !!options.realpath
- self.realpathCache = options.realpathCache || Object.create(null)
- self.follow = !!options.follow
- self.dot = !!options.dot
- self.mark = !!options.mark
- self.nodir = !!options.nodir
- if (self.nodir)
- self.mark = true
- self.sync = !!options.sync
- self.nounique = !!options.nounique
- self.nonull = !!options.nonull
- self.nosort = !!options.nosort
- self.nocase = !!options.nocase
- self.stat = !!options.stat
- self.noprocess = !!options.noprocess
- self.absolute = !!options.absolute
-
- self.maxLength = options.maxLength || Infinity
- self.cache = options.cache || Object.create(null)
- self.statCache = options.statCache || Object.create(null)
- self.symlinks = options.symlinks || Object.create(null)
-
- setupIgnores(self, options)
-
- self.changedCwd = false
- var cwd = process.cwd()
- if (!ownProp(options, "cwd"))
- self.cwd = cwd
- else {
- self.cwd = path.resolve(options.cwd)
- self.changedCwd = self.cwd !== cwd
- }
-
- self.root = options.root || path.resolve(self.cwd, "/")
- self.root = path.resolve(self.root)
- if (process.platform === "win32")
- self.root = self.root.replace(/\\/g, "/")
-
- // TODO: is an absolute `cwd` supposed to be resolved against `root`?
- // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
- self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
- if (process.platform === "win32")
- self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
- self.nomount = !!options.nomount
-
- // disable comments and negation in Minimatch.
- // Note that they are not supported in Glob itself anyway.
- options.nonegate = true
- options.nocomment = true
-
- self.minimatch = new Minimatch(pattern, options)
- self.options = self.minimatch.options
-}
-
-function finish (self) {
- var nou = self.nounique
- var all = nou ? [] : Object.create(null)
-
- for (var i = 0, l = self.matches.length; i < l; i ++) {
- var matches = self.matches[i]
- if (!matches || Object.keys(matches).length === 0) {
- if (self.nonull) {
- // do like the shell, and spit out the literal glob
- var literal = self.minimatch.globSet[i]
- if (nou)
- all.push(literal)
- else
- all[literal] = true
- }
- } else {
- // had matches
- var m = Object.keys(matches)
- if (nou)
- all.push.apply(all, m)
- else
- m.forEach(function (m) {
- all[m] = true
- })
- }
- }
-
- if (!nou)
- all = Object.keys(all)
-
- if (!self.nosort)
- all = all.sort(self.nocase ? alphasorti : alphasort)
-
- // at *some* point we statted all of these
- if (self.mark) {
- for (var i = 0; i < all.length; i++) {
- all[i] = self._mark(all[i])
- }
- if (self.nodir) {
- all = all.filter(function (e) {
- var notDir = !(/\/$/.test(e))
- var c = self.cache[e] || self.cache[makeAbs(self, e)]
- if (notDir && c)
- notDir = c !== 'DIR' && !Array.isArray(c)
- return notDir
- })
- }
- }
-
- if (self.ignore.length)
- all = all.filter(function(m) {
- return !isIgnored(self, m)
- })
-
- self.found = all
-}
-
-function mark (self, p) {
- var abs = makeAbs(self, p)
- var c = self.cache[abs]
- var m = p
- if (c) {
- var isDir = c === 'DIR' || Array.isArray(c)
- var slash = p.slice(-1) === '/'
-
- if (isDir && !slash)
- m += '/'
- else if (!isDir && slash)
- m = m.slice(0, -1)
-
- if (m !== p) {
- var mabs = makeAbs(self, m)
- self.statCache[mabs] = self.statCache[abs]
- self.cache[mabs] = self.cache[abs]
- }
- }
-
- return m
-}
-
-// lotta situps...
-function makeAbs (self, f) {
- var abs = f
- if (f.charAt(0) === '/') {
- abs = path.join(self.root, f)
- } else if (isAbsolute(f) || f === '') {
- abs = f
- } else if (self.changedCwd) {
- abs = path.resolve(self.cwd, f)
- } else {
- abs = path.resolve(f)
- }
-
- if (process.platform === 'win32')
- abs = abs.replace(/\\/g, '/')
-
- return abs
-}
-
-
-// Return true, if pattern ends with globstar '**', for the accompanying parent directory.
-// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents
-function isIgnored (self, path) {
- if (!self.ignore.length)
- return false
-
- return self.ignore.some(function(item) {
- return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
- })
-}
-
-function childrenIgnored (self, path) {
- if (!self.ignore.length)
- return false
-
- return self.ignore.some(function(item) {
- return !!(item.gmatcher && item.gmatcher.match(path))
- })
-}
diff --git a/node_modules/glob/glob.js b/node_modules/glob/glob.js
deleted file mode 100644
index 58dec0f..0000000
--- a/node_modules/glob/glob.js
+++ /dev/null
@@ -1,790 +0,0 @@
-// Approach:
-//
-// 1. Get the minimatch set
-// 2. For each pattern in the set, PROCESS(pattern, false)
-// 3. Store matches per-set, then uniq them
-//
-// PROCESS(pattern, inGlobStar)
-// Get the first [n] items from pattern that are all strings
-// Join these together. This is PREFIX.
-// If there is no more remaining, then stat(PREFIX) and
-// add to matches if it succeeds. END.
-//
-// If inGlobStar and PREFIX is symlink and points to dir
-// set ENTRIES = []
-// else readdir(PREFIX) as ENTRIES
-// If fail, END
-//
-// with ENTRIES
-// If pattern[n] is GLOBSTAR
-// // handle the case where the globstar match is empty
-// // by pruning it out, and testing the resulting pattern
-// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)
-// // handle other cases.
-// for ENTRY in ENTRIES (not dotfiles)
-// // attach globstar + tail onto the entry
-// // Mark that this entry is a globstar match
-// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)
-//
-// else // not globstar
-// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)
-// Test ENTRY against pattern[n]
-// If fails, continue
-// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
-//
-// Caveat:
-// Cache all stats and readdirs results to minimize syscall. Since all
-// we ever care about is existence and directory-ness, we can just keep
-// `true` for files, and [children,...] for directories, or `false` for
-// things that don't exist.
-
-module.exports = glob
-
-var fs = require('fs')
-var rp = require('fs.realpath')
-var minimatch = require('minimatch')
-var Minimatch = minimatch.Minimatch
-var inherits = require('inherits')
-var EE = require('events').EventEmitter
-var path = require('path')
-var assert = require('assert')
-var isAbsolute = require('path-is-absolute')
-var globSync = require('./sync.js')
-var common = require('./common.js')
-var alphasort = common.alphasort
-var alphasorti = common.alphasorti
-var setopts = common.setopts
-var ownProp = common.ownProp
-var inflight = require('inflight')
-var util = require('util')
-var childrenIgnored = common.childrenIgnored
-var isIgnored = common.isIgnored
-
-var once = require('once')
-
-function glob (pattern, options, cb) {
- if (typeof options === 'function') cb = options, options = {}
- if (!options) options = {}
-
- if (options.sync) {
- if (cb)
- throw new TypeError('callback provided to sync glob')
- return globSync(pattern, options)
- }
-
- return new Glob(pattern, options, cb)
-}
-
-glob.sync = globSync
-var GlobSync = glob.GlobSync = globSync.GlobSync
-
-// old api surface
-glob.glob = glob
-
-function extend (origin, add) {
- if (add === null || typeof add !== 'object') {
- return origin
- }
-
- var keys = Object.keys(add)
- var i = keys.length
- while (i--) {
- origin[keys[i]] = add[keys[i]]
- }
- return origin
-}
-
-glob.hasMagic = function (pattern, options_) {
- var options = extend({}, options_)
- options.noprocess = true
-
- var g = new Glob(pattern, options)
- var set = g.minimatch.set
-
- if (!pattern)
- return false
-
- if (set.length > 1)
- return true
-
- for (var j = 0; j < set[0].length; j++) {
- if (typeof set[0][j] !== 'string')
- return true
- }
-
- return false
-}
-
-glob.Glob = Glob
-inherits(Glob, EE)
-function Glob (pattern, options, cb) {
- if (typeof options === 'function') {
- cb = options
- options = null
- }
-
- if (options && options.sync) {
- if (cb)
- throw new TypeError('callback provided to sync glob')
- return new GlobSync(pattern, options)
- }
-
- if (!(this instanceof Glob))
- return new Glob(pattern, options, cb)
-
- setopts(this, pattern, options)
- this._didRealPath = false
-
- // process each pattern in the minimatch set
- var n = this.minimatch.set.length
-
- // The matches are stored as {<filename>: true,...} so that
- // duplicates are automagically pruned.
- // Later, we do an Object.keys() on these.
- // Keep them as a list so we can fill in when nonull is set.
- this.matches = new Array(n)
-
- if (typeof cb === 'function') {
- cb = once(cb)
- this.on('error', cb)
- this.on('end', function (matches) {
- cb(null, matches)
- })
- }
-
- var self = this
- this._processing = 0
-
- this._emitQueue = []
- this._processQueue = []
- this.paused = false
-
- if (this.noprocess)
- return this
-
- if (n === 0)
- return done()
-
- var sync = true
- for (var i = 0; i < n; i ++) {
- this._process(this.minimatch.set[i], i, false, done)
- }
- sync = false
-
- function done () {
- --self._processing
- if (self._processing <= 0) {
- if (sync) {
- process.nextTick(function () {
- self._finish()
- })
- } else {
- self._finish()
- }
- }
- }
-}
-
-Glob.prototype._finish = function () {
- assert(this instanceof Glob)
- if (this.aborted)
- return
-
- if (this.realpath && !this._didRealpath)
- return this._realpath()
-
- common.finish(this)
- this.emit('end', this.found)
-}
-
-Glob.prototype._realpath = function () {
- if (this._didRealpath)
- return
-
- this._didRealpath = true
-
- var n = this.matches.length
- if (n === 0)
- return this._finish()
-
- var self = this
- for (var i = 0; i < this.matches.length; i++)
- this._realpathSet(i, next)
-
- function next () {
- if (--n === 0)
- self._finish()
- }
-}
-
-Glob.prototype._realpathSet = function (index, cb) {
- var matchset = this.matches[index]
- if (!matchset)
- return cb()
-
- var found = Object.keys(matchset)
- var self = this
- var n = found.length
-
- if (n === 0)
- return cb()
-
- var set = this.matches[index] = Object.create(null)
- found.forEach(function (p, i) {
- // If there's a problem with the stat, then it means that
- // one or more of the links in the realpath couldn't be
- // resolved. just return the abs value in that case.
- p = self._makeAbs(p)
- rp.realpath(p, self.realpathCache, function (er, real) {
- if (!er)
- set[real] = true
- else if (er.syscall === 'stat')
- set[p] = true
- else
- self.emit('error', er) // srsly wtf right here
-
- if (--n === 0) {
- self.matches[index] = set
- cb()
- }
- })
- })
-}
-
-Glob.prototype._mark = function (p) {
- return common.mark(this, p)
-}
-
-Glob.prototype._makeAbs = function (f) {
- return common.makeAbs(this, f)
-}
-
-Glob.prototype.abort = function () {
- this.aborted = true
- this.emit('abort')
-}
-
-Glob.prototype.pause = function () {
- if (!this.paused) {
- this.paused = true
- this.emit('pause')
- }
-}
-
-Glob.prototype.resume = function () {
- if (this.paused) {
- this.emit('resume')
- this.paused = false
- if (this._emitQueue.length) {
- var eq = this._emitQueue.slice(0)
- this._emitQueue.length = 0
- for (var i = 0; i < eq.length; i ++) {
- var e = eq[i]
- this._emitMatch(e[0], e[1])
- }
- }
- if (this._processQueue.length) {
- var pq = this._processQueue.slice(0)
- this._processQueue.length = 0
- for (var i = 0; i < pq.length; i ++) {
- var p = pq[i]
- this._processing--
- this._process(p[0], p[1], p[2], p[3])
- }
- }
- }
-}
-
-Glob.prototype._process = function (pattern, index, inGlobStar, cb) {
- assert(this instanceof Glob)
- assert(typeof cb === 'function')
-
- if (this.aborted)
- return
-
- this._processing++
- if (this.paused) {
- this._processQueue.push([pattern, index, inGlobStar, cb])
- return
- }
-
- //console.error('PROCESS %d', this._processing, pattern)
-
- // Get the first [n] parts of pattern that are all strings.
- var n = 0
- while (typeof pattern[n] === 'string') {
- n ++
- }
- // now n is the index of the first one that is *not* a string.
-
- // see if there's anything else
- var prefix
- switch (n) {
- // if not, then this is rather simple
- case pattern.length:
- this._processSimple(pattern.join('/'), index, cb)
- return
-
- case 0:
- // pattern *starts* with some non-trivial item.
- // going to readdir(cwd), but not include the prefix in matches.
- prefix = null
- break
-
- default:
- // pattern has some string bits in the front.
- // whatever it starts with, whether that's 'absolute' like /foo/bar,
- // or 'relative' like '../baz'
- prefix = pattern.slice(0, n).join('/')
- break
- }
-
- var remain = pattern.slice(n)
-
- // get the list of entries.
- var read
- if (prefix === null)
- read = '.'
- else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
- if (!prefix || !isAbsolute(prefix))
- prefix = '/' + prefix
- read = prefix
- } else
- read = prefix
-
- var abs = this._makeAbs(read)
-
- //if ignored, skip _processing
- if (childrenIgnored(this, read))
- return cb()
-
- var isGlobStar = remain[0] === minimatch.GLOBSTAR
- if (isGlobStar)
- this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)
- else
- this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)
-}
-
-Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {
- var self = this
- this._readdir(abs, inGlobStar, function (er, entries) {
- return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
- })
-}
-
-Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
-
- // if the abs isn't a dir, then nothing can match!
- if (!entries)
- return cb()
-
- // It will only match dot entries if it starts with a dot, or if
- // dot is set. Stuff like @(.foo|.bar) isn't allowed.
- var pn = remain[0]
- var negate = !!this.minimatch.negate
- var rawGlob = pn._glob
- var dotOk = this.dot || rawGlob.charAt(0) === '.'
-
- var matchedEntries = []
- for (var i = 0; i < entries.length; i++) {
- var e = entries[i]
- if (e.charAt(0) !== '.' || dotOk) {
- var m
- if (negate && !prefix) {
- m = !e.match(pn)
- } else {
- m = e.match(pn)
- }
- if (m)
- matchedEntries.push(e)
- }
- }
-
- //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)
-
- var len = matchedEntries.length
- // If there are no matched entries, then nothing matches.
- if (len === 0)
- return cb()
-
- // if this is the last remaining pattern bit, then no need for
- // an additional stat *unless* the user has specified mark or
- // stat explicitly. We know they exist, since readdir returned
- // them.
-
- if (remain.length === 1 && !this.mark && !this.stat) {
- if (!this.matches[index])
- this.matches[index] = Object.create(null)
-
- for (var i = 0; i < len; i ++) {
- var e = matchedEntries[i]
- if (prefix) {
- if (prefix !== '/')
- e = prefix + '/' + e
- else
- e = prefix + e
- }
-
- if (e.charAt(0) === '/' && !this.nomount) {
- e = path.join(this.root, e)
- }
- this._emitMatch(index, e)
- }
- // This was the last one, and no stats were needed
- return cb()
- }
-
- // now test all matched entries as stand-ins for that part
- // of the pattern.
- remain.shift()
- for (var i = 0; i < len; i ++) {
- var e = matchedEntries[i]
- var newPattern
- if (prefix) {
- if (prefix !== '/')
- e = prefix + '/' + e
- else
- e = prefix + e
- }
- this._process([e].concat(remain), index, inGlobStar, cb)
- }
- cb()
-}
-
-Glob.prototype._emitMatch = function (index, e) {
- if (this.aborted)
- return
-
- if (isIgnored(this, e))
- return
-
- if (this.paused) {
- this._emitQueue.push([index, e])
- return
- }
-
- var abs = isAbsolute(e) ? e : this._makeAbs(e)
-
- if (this.mark)
- e = this._mark(e)
-
- if (this.absolute)
- e = abs
-
- if (this.matches[index][e])
- return
-
- if (this.nodir) {
- var c = this.cache[abs]
- if (c === 'DIR' || Array.isArray(c))
- return
- }
-
- this.matches[index][e] = true
-
- var st = this.statCache[abs]
- if (st)
- this.emit('stat', e, st)
-
- this.emit('match', e)
-}
-
-Glob.prototype._readdirInGlobStar = function (abs, cb) {
- if (this.aborted)
- return
-
- // follow all symlinked directories forever
- // just proceed as if this is a non-globstar situation
- if (this.follow)
- return this._readdir(abs, false, cb)
-
- var lstatkey = 'lstat\0' + abs
- var self = this
- var lstatcb = inflight(lstatkey, lstatcb_)
-
- if (lstatcb)
- fs.lstat(abs, lstatcb)
-
- function lstatcb_ (er, lstat) {
- if (er && er.code === 'ENOENT')
- return cb()
-
- var isSym = lstat && lstat.isSymbolicLink()
- self.symlinks[abs] = isSym
-
- // If it's not a symlink or a dir, then it's definitely a regular file.
- // don't bother doing a readdir in that case.
- if (!isSym && lstat && !lstat.isDirectory()) {
- self.cache[abs] = 'FILE'
- cb()
- } else
- self._readdir(abs, false, cb)
- }
-}
-
-Glob.prototype._readdir = function (abs, inGlobStar, cb) {
- if (this.aborted)
- return
-
- cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb)
- if (!cb)
- return
-
- //console.error('RD %j %j', +inGlobStar, abs)
- if (inGlobStar && !ownProp(this.symlinks, abs))
- return this._readdirInGlobStar(abs, cb)
-
- if (ownProp(this.cache, abs)) {
- var c = this.cache[abs]
- if (!c || c === 'FILE')
- return cb()
-
- if (Array.isArray(c))
- return cb(null, c)
- }
-
- var self = this
- fs.readdir(abs, readdirCb(this, abs, cb))
-}
-
-function readdirCb (self, abs, cb) {
- return function (er, entries) {
- if (er)
- self._readdirError(abs, er, cb)
- else
- self._readdirEntries(abs, entries, cb)
- }
-}
-
-Glob.prototype._readdirEntries = function (abs, entries, cb) {
- if (this.aborted)
- return
-
- // if we haven't asked to stat everything, then just
- // assume that everything in there exists, so we can avoid
- // having to stat it a second time.
- if (!this.mark && !this.stat) {
- for (var i = 0; i < entries.length; i ++) {
- var e = entries[i]
- if (abs === '/')
- e = abs + e
- else
- e = abs + '/' + e
- this.cache[e] = true
- }
- }
-
- this.cache[abs] = entries
- return cb(null, entries)
-}
-
-Glob.prototype._readdirError = function (f, er, cb) {
- if (this.aborted)
- return
-
- // handle errors, and cache the information
- switch (er.code) {
- case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
- case 'ENOTDIR': // totally normal. means it *does* exist.
- var abs = this._makeAbs(f)
- this.cache[abs] = 'FILE'
- if (abs === this.cwdAbs) {
- var error = new Error(er.code + ' invalid cwd ' + this.cwd)
- error.path = this.cwd
- error.code = er.code
- this.emit('error', error)
- this.abort()
- }
- break
-
- case 'ENOENT': // not terribly unusual
- case 'ELOOP':
- case 'ENAMETOOLONG':
- case 'UNKNOWN':
- this.cache[this._makeAbs(f)] = false
- break
-
- default: // some unusual error. Treat as failure.
- this.cache[this._makeAbs(f)] = false
- if (this.strict) {
- this.emit('error', er)
- // If the error is handled, then we abort
- // if not, we threw out of here
- this.abort()
- }
- if (!this.silent)
- console.error('glob error', er)
- break
- }
-
- return cb()
-}
-
-Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {
- var self = this
- this._readdir(abs, inGlobStar, function (er, entries) {
- self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
- })
-}
-
-
-Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {
- //console.error('pgs2', prefix, remain[0], entries)
-
- // no entries means not a dir, so it can never have matches
- // foo.txt/** doesn't match foo.txt
- if (!entries)
- return cb()
-
- // test without the globstar, and with every child both below
- // and replacing the globstar.
- var remainWithoutGlobStar = remain.slice(1)
- var gspref = prefix ? [ prefix ] : []
- var noGlobStar = gspref.concat(remainWithoutGlobStar)
-
- // the noGlobStar pattern exits the inGlobStar state
- this._process(noGlobStar, index, false, cb)
-
- var isSym = this.symlinks[abs]
- var len = entries.length
-
- // If it's a symlink, and we're in a globstar, then stop
- if (isSym && inGlobStar)
- return cb()
-
- for (var i = 0; i < len; i++) {
- var e = entries[i]
- if (e.charAt(0) === '.' && !this.dot)
- continue
-
- // these two cases enter the inGlobStar state
- var instead = gspref.concat(entries[i], remainWithoutGlobStar)
- this._process(instead, index, true, cb)
-
- var below = gspref.concat(entries[i], remain)
- this._process(below, index, true, cb)
- }
-
- cb()
-}
-
-Glob.prototype._processSimple = function (prefix, index, cb) {
- // XXX review this. Shouldn't it be doing the mounting etc
- // before doing stat? kinda weird?
- var self = this
- this._stat(prefix, function (er, exists) {
- self._processSimple2(prefix, index, er, exists, cb)
- })
-}
-Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {
-
- //console.error('ps2', prefix, exists)
-
- if (!this.matches[index])
- this.matches[index] = Object.create(null)
-
- // If it doesn't exist, then just mark the lack of results
- if (!exists)
- return cb()
-
- if (prefix && isAbsolute(prefix) && !this.nomount) {
- var trail = /[\/\\]$/.test(prefix)
- if (prefix.charAt(0) === '/') {
- prefix = path.join(this.root, prefix)
- } else {
- prefix = path.resolve(this.root, prefix)
- if (trail)
- prefix += '/'
- }
- }
-
- if (process.platform === 'win32')
- prefix = prefix.replace(/\\/g, '/')
-
- // Mark this as a match
- this._emitMatch(index, prefix)
- cb()
-}
-
-// Returns either 'DIR', 'FILE', or false
-Glob.prototype._stat = function (f, cb) {
- var abs = this._makeAbs(f)
- var needDir = f.slice(-1) === '/'
-
- if (f.length > this.maxLength)
- return cb()
-
- if (!this.stat && ownProp(this.cache, abs)) {
- var c = this.cache[abs]
-
- if (Array.isArray(c))
- c = 'DIR'
-
- // It exists, but maybe not how we need it
- if (!needDir || c === 'DIR')
- return cb(null, c)
-
- if (needDir && c === 'FILE')
- return cb()
-
- // otherwise we have to stat, because maybe c=true
- // if we know it exists, but not what it is.
- }
-
- var exists
- var stat = this.statCache[abs]
- if (stat !== undefined) {
- if (stat === false)
- return cb(null, stat)
- else {
- var type = stat.isDirectory() ? 'DIR' : 'FILE'
- if (needDir && type === 'FILE')
- return cb()
- else
- return cb(null, type, stat)
- }
- }
-
- var self = this
- var statcb = inflight('stat\0' + abs, lstatcb_)
- if (statcb)
- fs.lstat(abs, statcb)
-
- function lstatcb_ (er, lstat) {
- if (lstat && lstat.isSymbolicLink()) {
- // If it's a symlink, then treat it as the target, unless
- // the target does not exist, then treat it as a file.
- return fs.stat(abs, function (er, stat) {
- if (er)
- self._stat2(f, abs, null, lstat, cb)
- else
- self._stat2(f, abs, er, stat, cb)
- })
- } else {
- self._stat2(f, abs, er, lstat, cb)
- }
- }
-}
-
-Glob.prototype._stat2 = function (f, abs, er, stat, cb) {
- if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
- this.statCache[abs] = false
- return cb()
- }
-
- var needDir = f.slice(-1) === '/'
- this.statCache[abs] = stat
-
- if (abs.slice(-1) === '/' && stat && !stat.isDirectory())
- return cb(null, false, stat)
-
- var c = true
- if (stat)
- c = stat.isDirectory() ? 'DIR' : 'FILE'
- this.cache[abs] = this.cache[abs] || c
-
- if (needDir && c === 'FILE')
- return cb()
-
- return cb(null, c, stat)
-}
diff --git a/node_modules/glob/package.json b/node_modules/glob/package.json
deleted file mode 100644
index cdab324..0000000
--- a/node_modules/glob/package.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_from": "glob@^7.0.3",
- "_id": "glob@7.1.6",
- "_inBundle": false,
- "_integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "_location": "/glob",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "glob@^7.0.3",
- "name": "glob",
- "escapedName": "glob",
- "rawSpec": "^7.0.3",
- "saveSpec": null,
- "fetchSpec": "^7.0.3"
- },
- "_requiredBy": [
- "/globule",
- "/node-gyp",
- "/node-sass",
- "/rimraf",
- "/sass-graph",
- "/true-case-path"
- ],
- "_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "_shasum": "141f33b81a7c2492e125594307480c46679278a6",
- "_spec": "glob@^7.0.3",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/node-sass",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/node-glob/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "deprecated": false,
- "description": "a little globber",
- "devDependencies": {
- "mkdirp": "0",
- "rimraf": "^2.2.8",
- "tap": "^12.0.1",
- "tick": "0.0.6"
- },
- "engines": {
- "node": "*"
- },
- "files": [
- "glob.js",
- "sync.js",
- "common.js"
- ],
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- },
- "homepage": "https://github.com/isaacs/node-glob#readme",
- "license": "ISC",
- "main": "glob.js",
- "name": "glob",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/node-glob.git"
- },
- "scripts": {
- "bench": "bash benchmark.sh",
- "benchclean": "node benchclean.js",
- "prepublish": "npm run benchclean",
- "prof": "bash prof.sh && cat profile.txt",
- "profclean": "rm -f v8.log profile.txt",
- "test": "tap test/*.js --cov",
- "test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js"
- },
- "version": "7.1.6"
-}
diff --git a/node_modules/glob/sync.js b/node_modules/glob/sync.js
deleted file mode 100644
index c952134..0000000
--- a/node_modules/glob/sync.js
+++ /dev/null
@@ -1,486 +0,0 @@
-module.exports = globSync
-globSync.GlobSync = GlobSync
-
-var fs = require('fs')
-var rp = require('fs.realpath')
-var minimatch = require('minimatch')
-var Minimatch = minimatch.Minimatch
-var Glob = require('./glob.js').Glob
-var util = require('util')
-var path = require('path')
-var assert = require('assert')
-var isAbsolute = require('path-is-absolute')
-var common = require('./common.js')
-var alphasort = common.alphasort
-var alphasorti = common.alphasorti
-var setopts = common.setopts
-var ownProp = common.ownProp
-var childrenIgnored = common.childrenIgnored
-var isIgnored = common.isIgnored
-
-function globSync (pattern, options) {
- if (typeof options === 'function' || arguments.length === 3)
- throw new TypeError('callback provided to sync glob\n'+
- 'See: https://github.com/isaacs/node-glob/issues/167')
-
- return new GlobSync(pattern, options).found
-}
-
-function GlobSync (pattern, options) {
- if (!pattern)
- throw new Error('must provide pattern')
-
- if (typeof options === 'function' || arguments.length === 3)
- throw new TypeError('callback provided to sync glob\n'+
- 'See: https://github.com/isaacs/node-glob/issues/167')
-
- if (!(this instanceof GlobSync))
- return new GlobSync(pattern, options)
-
- setopts(this, pattern, options)
-
- if (this.noprocess)
- return this
-
- var n = this.minimatch.set.length
- this.matches = new Array(n)
- for (var i = 0; i < n; i ++) {
- this._process(this.minimatch.set[i], i, false)
- }
- this._finish()
-}
-
-GlobSync.prototype._finish = function () {
- assert(this instanceof GlobSync)
- if (this.realpath) {
- var self = this
- this.matches.forEach(function (matchset, index) {
- var set = self.matches[index] = Object.create(null)
- for (var p in matchset) {
- try {
- p = self._makeAbs(p)
- var real = rp.realpathSync(p, self.realpathCache)
- set[real] = true
- } catch (er) {
- if (er.syscall === 'stat')
- set[self._makeAbs(p)] = true
- else
- throw er
- }
- }
- })
- }
- common.finish(this)
-}
-
-
-GlobSync.prototype._process = function (pattern, index, inGlobStar) {
- assert(this instanceof GlobSync)
-
- // Get the first [n] parts of pattern that are all strings.
- var n = 0
- while (typeof pattern[n] === 'string') {
- n ++
- }
- // now n is the index of the first one that is *not* a string.
-
- // See if there's anything else
- var prefix
- switch (n) {
- // if not, then this is rather simple
- case pattern.length:
- this._processSimple(pattern.join('/'), index)
- return
-
- case 0:
- // pattern *starts* with some non-trivial item.
- // going to readdir(cwd), but not include the prefix in matches.
- prefix = null
- break
-
- default:
- // pattern has some string bits in the front.
- // whatever it starts with, whether that's 'absolute' like /foo/bar,
- // or 'relative' like '../baz'
- prefix = pattern.slice(0, n).join('/')
- break
- }
-
- var remain = pattern.slice(n)
-
- // get the list of entries.
- var read
- if (prefix === null)
- read = '.'
- else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {
- if (!prefix || !isAbsolute(prefix))
- prefix = '/' + prefix
- read = prefix
- } else
- read = prefix
-
- var abs = this._makeAbs(read)
-
- //if ignored, skip processing
- if (childrenIgnored(this, read))
- return
-
- var isGlobStar = remain[0] === minimatch.GLOBSTAR
- if (isGlobStar)
- this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)
- else
- this._processReaddir(prefix, read, abs, remain, index, inGlobStar)
-}
-
-
-GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {
- var entries = this._readdir(abs, inGlobStar)
-
- // if the abs isn't a dir, then nothing can match!
- if (!entries)
- return
-
- // It will only match dot entries if it starts with a dot, or if
- // dot is set. Stuff like @(.foo|.bar) isn't allowed.
- var pn = remain[0]
- var negate = !!this.minimatch.negate
- var rawGlob = pn._glob
- var dotOk = this.dot || rawGlob.charAt(0) === '.'
-
- var matchedEntries = []
- for (var i = 0; i < entries.length; i++) {
- var e = entries[i]
- if (e.charAt(0) !== '.' || dotOk) {
- var m
- if (negate && !prefix) {
- m = !e.match(pn)
- } else {
- m = e.match(pn)
- }
- if (m)
- matchedEntries.push(e)
- }
- }
-
- var len = matchedEntries.length
- // If there are no matched entries, then nothing matches.
- if (len === 0)
- return
-
- // if this is the last remaining pattern bit, then no need for
- // an additional stat *unless* the user has specified mark or
- // stat explicitly. We know they exist, since readdir returned
- // them.
-
- if (remain.length === 1 && !this.mark && !this.stat) {
- if (!this.matches[index])
- this.matches[index] = Object.create(null)
-
- for (var i = 0; i < len; i ++) {
- var e = matchedEntries[i]
- if (prefix) {
- if (prefix.slice(-1) !== '/')
- e = prefix + '/' + e
- else
- e = prefix + e
- }
-
- if (e.charAt(0) === '/' && !this.nomount) {
- e = path.join(this.root, e)
- }
- this._emitMatch(index, e)
- }
- // This was the last one, and no stats were needed
- return
- }
-
- // now test all matched entries as stand-ins for that part
- // of the pattern.
- remain.shift()
- for (var i = 0; i < len; i ++) {
- var e = matchedEntries[i]
- var newPattern
- if (prefix)
- newPattern = [prefix, e]
- else
- newPattern = [e]
- this._process(newPattern.concat(remain), index, inGlobStar)
- }
-}
-
-
-GlobSync.prototype._emitMatch = function (index, e) {
- if (isIgnored(this, e))
- return
-
- var abs = this._makeAbs(e)
-
- if (this.mark)
- e = this._mark(e)
-
- if (this.absolute) {
- e = abs
- }
-
- if (this.matches[index][e])
- return
-
- if (this.nodir) {
- var c = this.cache[abs]
- if (c === 'DIR' || Array.isArray(c))
- return
- }
-
- this.matches[index][e] = true
-
- if (this.stat)
- this._stat(e)
-}
-
-
-GlobSync.prototype._readdirInGlobStar = function (abs) {
- // follow all symlinked directories forever
- // just proceed as if this is a non-globstar situation
- if (this.follow)
- return this._readdir(abs, false)
-
- var entries
- var lstat
- var stat
- try {
- lstat = fs.lstatSync(abs)
- } catch (er) {
- if (er.code === 'ENOENT') {
- // lstat failed, doesn't exist
- return null
- }
- }
-
- var isSym = lstat && lstat.isSymbolicLink()
- this.symlinks[abs] = isSym
-
- // If it's not a symlink or a dir, then it's definitely a regular file.
- // don't bother doing a readdir in that case.
- if (!isSym && lstat && !lstat.isDirectory())
- this.cache[abs] = 'FILE'
- else
- entries = this._readdir(abs, false)
-
- return entries
-}
-
-GlobSync.prototype._readdir = function (abs, inGlobStar) {
- var entries
-
- if (inGlobStar && !ownProp(this.symlinks, abs))
- return this._readdirInGlobStar(abs)
-
- if (ownProp(this.cache, abs)) {
- var c = this.cache[abs]
- if (!c || c === 'FILE')
- return null
-
- if (Array.isArray(c))
- return c
- }
-
- try {
- return this._readdirEntries(abs, fs.readdirSync(abs))
- } catch (er) {
- this._readdirError(abs, er)
- return null
- }
-}
-
-GlobSync.prototype._readdirEntries = function (abs, entries) {
- // if we haven't asked to stat everything, then just
- // assume that everything in there exists, so we can avoid
- // having to stat it a second time.
- if (!this.mark && !this.stat) {
- for (var i = 0; i < entries.length; i ++) {
- var e = entries[i]
- if (abs === '/')
- e = abs + e
- else
- e = abs + '/' + e
- this.cache[e] = true
- }
- }
-
- this.cache[abs] = entries
-
- // mark and cache dir-ness
- return entries
-}
-
-GlobSync.prototype._readdirError = function (f, er) {
- // handle errors, and cache the information
- switch (er.code) {
- case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205
- case 'ENOTDIR': // totally normal. means it *does* exist.
- var abs = this._makeAbs(f)
- this.cache[abs] = 'FILE'
- if (abs === this.cwdAbs) {
- var error = new Error(er.code + ' invalid cwd ' + this.cwd)
- error.path = this.cwd
- error.code = er.code
- throw error
- }
- break
-
- case 'ENOENT': // not terribly unusual
- case 'ELOOP':
- case 'ENAMETOOLONG':
- case 'UNKNOWN':
- this.cache[this._makeAbs(f)] = false
- break
-
- default: // some unusual error. Treat as failure.
- this.cache[this._makeAbs(f)] = false
- if (this.strict)
- throw er
- if (!this.silent)
- console.error('glob error', er)
- break
- }
-}
-
-GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {
-
- var entries = this._readdir(abs, inGlobStar)
-
- // no entries means not a dir, so it can never have matches
- // foo.txt/** doesn't match foo.txt
- if (!entries)
- return
-
- // test without the globstar, and with every child both below
- // and replacing the globstar.
- var remainWithoutGlobStar = remain.slice(1)
- var gspref = prefix ? [ prefix ] : []
- var noGlobStar = gspref.concat(remainWithoutGlobStar)
-
- // the noGlobStar pattern exits the inGlobStar state
- this._process(noGlobStar, index, false)
-
- var len = entries.length
- var isSym = this.symlinks[abs]
-
- // If it's a symlink, and we're in a globstar, then stop
- if (isSym && inGlobStar)
- return
-
- for (var i = 0; i < len; i++) {
- var e = entries[i]
- if (e.charAt(0) === '.' && !this.dot)
- continue
-
- // these two cases enter the inGlobStar state
- var instead = gspref.concat(entries[i], remainWithoutGlobStar)
- this._process(instead, index, true)
-
- var below = gspref.concat(entries[i], remain)
- this._process(below, index, true)
- }
-}
-
-GlobSync.prototype._processSimple = function (prefix, index) {
- // XXX review this. Shouldn't it be doing the mounting etc
- // before doing stat? kinda weird?
- var exists = this._stat(prefix)
-
- if (!this.matches[index])
- this.matches[index] = Object.create(null)
-
- // If it doesn't exist, then just mark the lack of results
- if (!exists)
- return
-
- if (prefix && isAbsolute(prefix) && !this.nomount) {
- var trail = /[\/\\]$/.test(prefix)
- if (prefix.charAt(0) === '/') {
- prefix = path.join(this.root, prefix)
- } else {
- prefix = path.resolve(this.root, prefix)
- if (trail)
- prefix += '/'
- }
- }
-
- if (process.platform === 'win32')
- prefix = prefix.replace(/\\/g, '/')
-
- // Mark this as a match
- this._emitMatch(index, prefix)
-}
-
-// Returns either 'DIR', 'FILE', or false
-GlobSync.prototype._stat = function (f) {
- var abs = this._makeAbs(f)
- var needDir = f.slice(-1) === '/'
-
- if (f.length > this.maxLength)
- return false
-
- if (!this.stat && ownProp(this.cache, abs)) {
- var c = this.cache[abs]
-
- if (Array.isArray(c))
- c = 'DIR'
-
- // It exists, but maybe not how we need it
- if (!needDir || c === 'DIR')
- return c
-
- if (needDir && c === 'FILE')
- return false
-
- // otherwise we have to stat, because maybe c=true
- // if we know it exists, but not what it is.
- }
-
- var exists
- var stat = this.statCache[abs]
- if (!stat) {
- var lstat
- try {
- lstat = fs.lstatSync(abs)
- } catch (er) {
- if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
- this.statCache[abs] = false
- return false
- }
- }
-
- if (lstat && lstat.isSymbolicLink()) {
- try {
- stat = fs.statSync(abs)
- } catch (er) {
- stat = lstat
- }
- } else {
- stat = lstat
- }
- }
-
- this.statCache[abs] = stat
-
- var c = true
- if (stat)
- c = stat.isDirectory() ? 'DIR' : 'FILE'
-
- this.cache[abs] = this.cache[abs] || c
-
- if (needDir && c === 'FILE')
- return false
-
- return c
-}
-
-GlobSync.prototype._mark = function (p) {
- return common.mark(this, p)
-}
-
-GlobSync.prototype._makeAbs = function (f) {
- return common.makeAbs(this, f)
-}
diff --git a/node_modules/globule/LICENSE b/node_modules/globule/LICENSE
deleted file mode 100644
index 5c0695e..0000000
--- a/node_modules/globule/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright (c) 2018 "Cowboy" Ben Alman
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/globule/README.md b/node_modules/globule/README.md
deleted file mode 100644
index d50f8c5..0000000
--- a/node_modules/globule/README.md
+++ /dev/null
@@ -1,132 +0,0 @@
-# globule [![Build Status: Linux](https://travis-ci.org/cowboy/node-globule.svg?branch=master)](https://travis-ci.org/cowboy/node-globule) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/i9fnc38q952r9nc0/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/node-globule/branch/master)
-
-An easy-to-use wildcard globbing library.
-
-## Getting Started
-Install the module with: `npm install globule`
-
-```javascript
-var globule = require('globule');
-var filepaths = globule.find('**/*.js');
-```
-
-## Documentation
-
-### globule.find
-Returns a unique array of all file or directory paths that match the given globbing pattern(s). This method accepts either comma separated globbing patterns or an array of globbing patterns. Paths matching patterns that begin with `!` will be excluded from the returned array. Patterns are processed in order, so inclusion and exclusion order is significant. Patterns may be specified as function arguments or as a `src` property of the options object.
-
-```js
-globule.find(patterns [, patterns [, ...]] [, options])
-globule.find({src: patterns, /* other options */})
-```
-
-The `options` object supports all [glob][] library options, along with a few extras. These are the most commonly used:
-
-* `src` This property may be used instead of specifying patterns as function arguments.
-* `filter` Either a valid [fs.Stats method name](http://nodejs.org/docs/latest/api/fs.html#fs_class_fs_stats) or a function that will be passed the matched `src` filepath and `options` object as arguments. This function should return a `Boolean` value.
-* `nonull` Retain globbing patterns in result set even if they fail to match files.
-* `matchBase` Patterns without slashes will match just the basename part. Eg. this makes `*.js` work like `**/*.js`.
-* `srcBase` Patterns will be matched relative to the specified path instead of the current working directory. This is a synonym for `cwd`.
-* `prefixBase` Any specified `srcBase` will be prefixed to all returned filepaths.
-
-[glob]: https://github.com/isaacs/node-glob
-
-### globule.match
-Match one or more globbing patterns against one or more file paths. Returns a uniqued array of all file paths that match any of the specified globbing patterns. Both the `patterns` and `filepaths` arguments can be a single string or array of strings. Paths matching patterns that begin with `!` will be excluded from the returned array. Patterns are processed in order, so inclusion and exclusion order is significant.
-
-```js
-globule.match(patterns, filepaths [, options])
-```
-
-### globule.isMatch
-This method contains the same signature and logic as the `globule.match` method, but returns `true` if any files were matched, otherwise `false`.
-
-```js
-globule.isMatch(patterns, filepaths [, options])
-```
-
-### globule.mapping
-Given a set of source file paths, returns an array of src-dest file mapping objects. Both src and dest paths may be renamed, depending on the options specified. Patterns may be specified as function arguments or as a `src` property of the options object.
-
-```js
-globule.mapping(filepaths [, filepaths [, ...]] [, options])
-globule.mapping({src: filepaths, /* other options */})
-```
-
-In addition to the options the `globule.find` method supports, the options object also supports these properties:
-
-* `srcBase` The directory from which patterns are matched. Any string specified as `srcBase` is effectively stripped from the beginning of all matched paths.
-* `destBase` The specified path is prefixed to all `dest` filepaths.
-* `ext` Remove anything after (and including) the first `.` in the destination path, then append this value.
-* `extDot` Change the behavior of `ext`, `"first"` and `"last"` will remove anything after the first or last `.` in the destination filename, respectively. Defaults to `"first"`.
-* `flatten` Remove the path component from all matched src files. The src file path is still joined to the specified destBase.
-* `rename` If specified, this function will be responsible for returning the final `dest` filepath. By default, it flattens paths (if specified), changes extensions (if specified) and joins the matched path to the `destBase`.
-
-### globule.findMapping
-This method is a convenience wrapper around the `globule.find` and `globule.mapping` methods.
-
-```js
-globule.findMapping(patterns [, options])
-```
-
-
-## Examples
-
-Given the files `foo/a.js` and `foo/b.js`:
-
-### srcBase and destBase
-
-```js
-globule.find("foo/*.js")
-// ["foo/a.js", "foo/b.js"]
-
-globule.find("*.js", {srcBase: "foo"})
-// ["a.js", "b.js"]
-
-globule.find({src: "*.js", srcBase: "foo", prefixBase: true})
-// ["foo/a.js", "foo/b.js"]
-```
-
-```js
-globule.findMapping("foo/*.js")
-// [{src: ["foo/a.js"], dest: "foo/a.js"}, {src: ["foo/b.js"], dest: "foo/b.js"}]
-
-globule.findMapping("foo/*.js", {destBase: "bar"})
-// [{src: ["foo/a.js"], dest: "bar/foo/a.js"}, {src: ["foo/b.js"], dest: "bar/foo/b.js"}]
-
-globule.findMapping({src: "*.js", srcBase: "foo", destBase: "bar"})
-// [{src: ["foo/a.js"], dest: "bar/a.js"}, {src: ["foo/b.js"], dest: "bar/b.js"}]
-```
-
-```js
-globule.mapping(["foo/a.js", "foo/b.js"])
-// [{src: ["foo/a.js"], dest: "foo/a.js"}, {src: ["foo/b.js"], dest: "foo/b.js"}]
-
-globule.mapping(["foo/a.js", "foo/b.js"], {destBase: "bar"})
-// [{src: ["foo/a.js"], dest: "bar/foo/a.js"}, {src: ["foo/b.js"], dest: "bar/foo/b.js"}]
-
-globule.mapping("foo/a.js", "foo/b.js", {destBase: "bar"})
-// [{src: ["foo/a.js"], dest: "bar/foo/a.js"}, {src: ["foo/b.js"], dest: "bar/foo/b.js"}]
-
-globule.mapping(["a.js", "b.js"], {srcBase: "foo", destBase: "bar"})
-// [{src: ["foo/a.js"], dest: "bar/a.js"}, {src: ["foo/b.js"], dest: "bar/b.js"}]
-
-globule.mapping({src: ["a.js", "b.js"], srcBase: "foo", destBase: "bar"})
-// [{src: ["foo/a.js"], dest: "bar/a.js"}, {src: ["foo/b.js"], dest: "bar/b.js"}]
-```
-
-## Contributing
-In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
-
-## Release History
-2020-02-12 - v1.3.1 - Update dependencies.
-2018-05-29 - v1.2.1 - Update dependencies, lodash@4.17.10 to avoid errant security warnings.
-2017-06-10 - v1.2.0 - Update dependencies, lodash@4.17.
-2016-10-23 - v1.1.0 - Update dependencies, lodash@4.16, glob@7.1.
-2016-04-14 - v1.0.0 - Update dependencies, lodash@4.9, glob@7.0, minimatch@3.0. Paths are unix-style with prefixBase enabled.
-2014-01-07 - v0.2.0 - Updated dependencies. Added `src` option. Improved exclusion speed significantly.
-2013-04-11 - v0.1.0 - Initial release.
-
-## License
-Copyright (c) 2018 "Cowboy" Ben Alman
-Licensed under the MIT license.
diff --git a/node_modules/globule/lib/globule.js b/node_modules/globule/lib/globule.js
deleted file mode 100644
index 2efe361..0000000
--- a/node_modules/globule/lib/globule.js
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * globule
- * https://github.com/cowboy/node-globule
- *
- * Copyright (c) 2018 "Cowboy" Ben Alman
- * Licensed under the MIT license.
- */
-
-'use strict';
-
-var fs = require('fs');
-var path = require('path');
-
-var _ = require('lodash');
-var glob = require('glob');
-var minimatch = require('minimatch');
-
-// The module.
-var globule = exports;
-
-// Process specified wildcard glob patterns or filenames against a
-// callback, excluding and uniquing files in the result set.
-function processPatterns(patterns, options, fn) {
- var result = [];
- _.each(patterns, function(pattern) {
- // The first character is not ! (inclusion). Add all matching filepaths
- // to the result set.
- if (pattern.indexOf('!') !== 0) {
- result = _.union(result, fn(pattern));
- return;
- }
- // The first character is ! (exclusion). Remove any filepaths from the
- // result set that match this pattern, sans leading !.
- var filterFn = minimatch.filter(pattern.slice(1), options);
- result = _.filter(result, function(filepath) {
- return !filterFn(filepath);
- });
- });
- return result;
-}
-
-// Normalize paths to be unix-style.
-var pathSeparatorRe = /[\/\\]/g;
-function normalizePath(path) {
- return path.replace(pathSeparatorRe, '/');
-}
-
-// Match a filepath or filepaths against one or more wildcard patterns. Returns
-// all matching filepaths. This behaves just like minimatch.match, but supports
-// any number of patterns.
-globule.match = function(patterns, filepaths, options) {
- // Return empty set if either patterns or filepaths was omitted.
- if (patterns == null || filepaths == null) { return []; }
- // Normalize patterns and filepaths to flattened arrays.
- patterns = _.isArray(patterns) ? _.flattenDeep(patterns) : [patterns];
- filepaths = _.isArray(filepaths) ? _.flattenDeep(filepaths) : [filepaths];
- // Return empty set if there are no patterns or filepaths.
- if (patterns.length === 0 || filepaths.length === 0) { return []; }
- // Return all matching filepaths.
- return processPatterns(patterns, options, function(pattern) {
- return minimatch.match(filepaths, pattern, options || {});
- });
-};
-
-// Match a filepath or filepaths against one or more wildcard patterns. Returns
-// true if any of the patterns match.
-globule.isMatch = function() {
- return globule.match.apply(null, arguments).length > 0;
-};
-
-// Return an array of all file paths that match the given wildcard patterns.
-globule.find = function() {
- var args = _.toArray(arguments);
- // If the last argument is an options object, remove it from args.
- var options = _.isPlainObject(args[args.length - 1]) ? args.pop() : {};
- // If options.src was specified, use it. Otherwise, use all non-options
- // arguments. Flatten nested arrays.
- var patterns;
- if (options.src) {
- patterns = _.isArray(options.src) ? _.flattenDeep(options.src) : [options.src];
- } else {
- patterns = _.flattenDeep(args);
- }
- // Return empty set if there are no patterns.
- if (patterns.length === 0) { return []; }
- var srcBase = options.srcBase || options.cwd;
- // Create glob-specific options object.
- var globOptions = _.extend({}, options);
- if (srcBase) {
- globOptions.cwd = srcBase;
- }
- // Get all matching filepaths.
- var matches = processPatterns(patterns, options, function(pattern) {
- return glob.sync(pattern, globOptions);
- });
- // If srcBase and prefixBase were specified, prefix srcBase to matched paths.
- if (srcBase && options.prefixBase) {
- matches = matches.map(function(filepath) {
- return normalizePath(path.join(srcBase, filepath));
- });
- }
- // Filter result set?
- if (options.filter) {
- matches = matches.filter(function(filepath) {
- // If srcBase was specified but prefixBase was NOT, prefix srcBase
- // temporarily, for filtering.
- if (srcBase && !options.prefixBase) {
- filepath = normalizePath(path.join(srcBase, filepath));
- }
- try {
- if (_.isFunction(options.filter)) {
- return options.filter(filepath, options);
- } else {
- // If the file is of the right type and exists, this should work.
- return fs.statSync(filepath)[options.filter]();
- }
- } catch(err) {
- // Otherwise, it's probably not the right type.
- return false;
- }
- });
- }
- return matches;
-};
-
-var extDotRe = {
- first: /(\.[^\/]*)?$/,
- last: /(\.[^\/\.]*)?$/,
-};
-function rename(dest, options) {
- // Flatten path?
- if (options.flatten) {
- dest = path.basename(dest);
- }
- // Change the extension?
- if (options.ext) {
- dest = dest.replace(extDotRe[options.extDot], options.ext);
- }
- // Join dest and destBase?
- if (options.destBase) {
- dest = path.join(options.destBase, dest);
- }
- return dest;
-}
-
-// Build a mapping of src-dest filepaths from the given set of filepaths.
-globule.mapping = function(filepaths, options) {
- // Return empty set if filepaths was omitted.
- if (filepaths == null) { return []; }
- options = _.defaults({}, options, {
- extDot: 'first',
- rename: rename,
- });
- var files = [];
- var fileByDest = {};
- // Find all files matching pattern, using passed-in options.
- filepaths.forEach(function(src) {
- // Generate destination filename.
- var dest = options.rename(src, options);
- // Prepend srcBase to all src paths.
- if (options.srcBase) {
- src = path.join(options.srcBase, src);
- }
- // Normalize filepaths to be unix-style.
- dest = normalizePath(dest);
- src = normalizePath(src);
- // Map correct src path to dest path.
- if (fileByDest[dest]) {
- // If dest already exists, push this src onto that dest's src array.
- fileByDest[dest].src.push(src);
- } else {
- // Otherwise create a new src-dest file mapping object.
- files.push({
- src: [src],
- dest: dest,
- });
- // And store a reference for later use.
- fileByDest[dest] = files[files.length - 1];
- }
- });
- return files;
-};
-
-// Return a mapping of src-dest filepaths from files matching the given
-// wildcard patterns.
-globule.findMapping = function() {
- var args = _.toArray(arguments);
- // If the last argument is an options object, remove it from args.
- var options = _.isPlainObject(args[args.length - 1]) ? args.pop() : {};
- // Generate mapping from found filepaths.
- return globule.mapping(globule.find(args, options), options);
-};
diff --git a/node_modules/globule/package.json b/node_modules/globule/package.json
deleted file mode 100644
index 6552a98..0000000
--- a/node_modules/globule/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "globule@^1.0.0",
- "_id": "globule@1.3.1",
- "_inBundle": false,
- "_integrity": "sha512-OVyWOHgw29yosRHCHo7NncwR1hW5ew0W/UrvtwvjefVJeQ26q4/8r8FmPsSF1hJ93IgWkyv16pCTz6WblMzm/g==",
- "_location": "/globule",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "globule@^1.0.0",
- "name": "globule",
- "escapedName": "globule",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/gaze"
- ],
- "_resolved": "https://registry.npmjs.org/globule/-/globule-1.3.1.tgz",
- "_shasum": "90a25338f22b7fbeb527cee63c629aea754d33b9",
- "_spec": "globule@^1.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/gaze",
- "author": {
- "name": "\"Cowboy\" Ben Alman",
- "url": "http://benalman.com/"
- },
- "bugs": {
- "url": "https://github.com/cowboy/node-globule/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "glob": "~7.1.1",
- "lodash": "~4.17.12",
- "minimatch": "~3.0.2"
- },
- "deprecated": false,
- "description": "An easy-to-use wildcard globbing library.",
- "devDependencies": {
- "grunt": "^1.0.2",
- "grunt-contrib-jshint": "^1.0.0",
- "grunt-contrib-nodeunit": "^2.0.0",
- "grunt-contrib-watch": "^1.1.0"
- },
- "engines": {
- "node": ">= 0.10"
- },
- "files": [
- "lib"
- ],
- "homepage": "https://github.com/cowboy/node-globule",
- "keywords": [
- "glob",
- "file",
- "match",
- "mapping",
- "expand",
- "wildcard",
- "pattern",
- "sync",
- "awesome"
- ],
- "license": "MIT",
- "main": "lib/globule",
- "name": "globule",
- "repository": {
- "type": "git",
- "url": "git://github.com/cowboy/node-globule.git"
- },
- "scripts": {
- "test": "grunt"
- },
- "version": "1.3.1"
-}
diff --git a/node_modules/graceful-fs/LICENSE b/node_modules/graceful-fs/LICENSE
deleted file mode 100644
index 9d2c803..0000000
--- a/node_modules/graceful-fs/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/graceful-fs/README.md b/node_modules/graceful-fs/README.md
deleted file mode 100644
index 5273a50..0000000
--- a/node_modules/graceful-fs/README.md
+++ /dev/null
@@ -1,133 +0,0 @@
-# graceful-fs
-
-graceful-fs functions as a drop-in replacement for the fs module,
-making various improvements.
-
-The improvements are meant to normalize behavior across different
-platforms and environments, and to make filesystem access more
-resilient to errors.
-
-## Improvements over [fs module](https://nodejs.org/api/fs.html)
-
-* Queues up `open` and `readdir` calls, and retries them once
- something closes if there is an EMFILE error from too many file
- descriptors.
-* fixes `lchmod` for Node versions prior to 0.6.2.
-* implements `fs.lutimes` if possible. Otherwise it becomes a noop.
-* ignores `EINVAL` and `EPERM` errors in `chown`, `fchown` or
- `lchown` if the user isn't root.
-* makes `lchmod` and `lchown` become noops, if not available.
-* retries reading a file if `read` results in EAGAIN error.
-
-On Windows, it retries renaming a file for up to one second if `EACCESS`
-or `EPERM` error occurs, likely because antivirus software has locked
-the directory.
-
-## USAGE
-
-```javascript
-// use just like fs
-var fs = require('graceful-fs')
-
-// now go and do stuff with it...
-fs.readFileSync('some-file-or-whatever')
-```
-
-## Global Patching
-
-If you want to patch the global fs module (or any other fs-like
-module) you can do this:
-
-```javascript
-// Make sure to read the caveat below.
-var realFs = require('fs')
-var gracefulFs = require('graceful-fs')
-gracefulFs.gracefulify(realFs)
-```
-
-This should only ever be done at the top-level application layer, in
-order to delay on EMFILE errors from any fs-using dependencies. You
-should **not** do this in a library, because it can cause unexpected
-delays in other parts of the program.
-
-## Changes
-
-This module is fairly stable at this point, and used by a lot of
-things. That being said, because it implements a subtle behavior
-change in a core part of the node API, even modest changes can be
-extremely breaking, and the versioning is thus biased towards
-bumping the major when in doubt.
-
-The main change between major versions has been switching between
-providing a fully-patched `fs` module vs monkey-patching the node core
-builtin, and the approach by which a non-monkey-patched `fs` was
-created.
-
-The goal is to trade `EMFILE` errors for slower fs operations. So, if
-you try to open a zillion files, rather than crashing, `open`
-operations will be queued up and wait for something else to `close`.
-
-There are advantages to each approach. Monkey-patching the fs means
-that no `EMFILE` errors can possibly occur anywhere in your
-application, because everything is using the same core `fs` module,
-which is patched. However, it can also obviously cause undesirable
-side-effects, especially if the module is loaded multiple times.
-
-Implementing a separate-but-identical patched `fs` module is more
-surgical (and doesn't run the risk of patching multiple times), but
-also imposes the challenge of keeping in sync with the core module.
-
-The current approach loads the `fs` module, and then creates a
-lookalike object that has all the same methods, except a few that are
-patched. It is safe to use in all versions of Node from 0.8 through
-7.0.
-
-### v4
-
-* Do not monkey-patch the fs module. This module may now be used as a
- drop-in dep, and users can opt into monkey-patching the fs builtin
- if their app requires it.
-
-### v3
-
-* Monkey-patch fs, because the eval approach no longer works on recent
- node.
-* fixed possible type-error throw if rename fails on windows
-* verify that we *never* get EMFILE errors
-* Ignore ENOSYS from chmod/chown
-* clarify that graceful-fs must be used as a drop-in
-
-### v2.1.0
-
-* Use eval rather than monkey-patching fs.
-* readdir: Always sort the results
-* win32: requeue a file if error has an OK status
-
-### v2.0
-
-* A return to monkey patching
-* wrap process.cwd
-
-### v1.1
-
-* wrap readFile
-* Wrap fs.writeFile.
-* readdir protection
-* Don't clobber the fs builtin
-* Handle fs.read EAGAIN errors by trying again
-* Expose the curOpen counter
-* No-op lchown/lchmod if not implemented
-* fs.rename patch only for win32
-* Patch fs.rename to handle AV software on Windows
-* Close #4 Chown should not fail on einval or eperm if non-root
-* Fix isaacs/fstream#1 Only wrap fs one time
-* Fix #3 Start at 1024 max files, then back off on EMFILE
-* lutimes that doens't blow up on Linux
-* A full on-rewrite using a queue instead of just swallowing the EMFILE error
-* Wrap Read/Write streams as well
-
-### 1.0
-
-* Update engines for node 0.6
-* Be lstat-graceful on Windows
-* first
diff --git a/node_modules/graceful-fs/clone.js b/node_modules/graceful-fs/clone.js
deleted file mode 100644
index 028356c..0000000
--- a/node_modules/graceful-fs/clone.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict'
-
-module.exports = clone
-
-function clone (obj) {
- if (obj === null || typeof obj !== 'object')
- return obj
-
- if (obj instanceof Object)
- var copy = { __proto__: obj.__proto__ }
- else
- var copy = Object.create(null)
-
- Object.getOwnPropertyNames(obj).forEach(function (key) {
- Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
- })
-
- return copy
-}
diff --git a/node_modules/graceful-fs/graceful-fs.js b/node_modules/graceful-fs/graceful-fs.js
deleted file mode 100644
index de3df47..0000000
--- a/node_modules/graceful-fs/graceful-fs.js
+++ /dev/null
@@ -1,354 +0,0 @@
-var fs = require('fs')
-var polyfills = require('./polyfills.js')
-var legacy = require('./legacy-streams.js')
-var clone = require('./clone.js')
-
-var util = require('util')
-
-/* istanbul ignore next - node 0.x polyfill */
-var gracefulQueue
-var previousSymbol
-
-/* istanbul ignore else - node 0.x polyfill */
-if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
- gracefulQueue = Symbol.for('graceful-fs.queue')
- // This is used in testing by future versions
- previousSymbol = Symbol.for('graceful-fs.previous')
-} else {
- gracefulQueue = '___graceful-fs.queue'
- previousSymbol = '___graceful-fs.previous'
-}
-
-function noop () {}
-
-function publishQueue(context, queue) {
- Object.defineProperty(context, gracefulQueue, {
- get: function() {
- return queue
- }
- })
-}
-
-var debug = noop
-if (util.debuglog)
- debug = util.debuglog('gfs4')
-else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ''))
- debug = function() {
- var m = util.format.apply(util, arguments)
- m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ')
- console.error(m)
- }
-
-// Once time initialization
-if (!fs[gracefulQueue]) {
- // This queue can be shared by multiple loaded instances
- var queue = global[gracefulQueue] || []
- publishQueue(fs, queue)
-
- // Patch fs.close/closeSync to shared queue version, because we need
- // to retry() whenever a close happens *anywhere* in the program.
- // This is essential when multiple graceful-fs instances are
- // in play at the same time.
- fs.close = (function (fs$close) {
- function close (fd, cb) {
- return fs$close.call(fs, fd, function (err) {
- // This function uses the graceful-fs shared queue
- if (!err) {
- retry()
- }
-
- if (typeof cb === 'function')
- cb.apply(this, arguments)
- })
- }
-
- Object.defineProperty(close, previousSymbol, {
- value: fs$close
- })
- return close
- })(fs.close)
-
- fs.closeSync = (function (fs$closeSync) {
- function closeSync (fd) {
- // This function uses the graceful-fs shared queue
- fs$closeSync.apply(fs, arguments)
- retry()
- }
-
- Object.defineProperty(closeSync, previousSymbol, {
- value: fs$closeSync
- })
- return closeSync
- })(fs.closeSync)
-
- if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
- process.on('exit', function() {
- debug(fs[gracefulQueue])
- require('assert').equal(fs[gracefulQueue].length, 0)
- })
- }
-}
-
-if (!global[gracefulQueue]) {
- publishQueue(global, fs[gracefulQueue]);
-}
-
-module.exports = patch(clone(fs))
-if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
- module.exports = patch(fs)
- fs.__patched = true;
-}
-
-function patch (fs) {
- // Everything that references the open() function needs to be in here
- polyfills(fs)
- fs.gracefulify = patch
-
- fs.createReadStream = createReadStream
- fs.createWriteStream = createWriteStream
- var fs$readFile = fs.readFile
- fs.readFile = readFile
- function readFile (path, options, cb) {
- if (typeof options === 'function')
- cb = options, options = null
-
- return go$readFile(path, options, cb)
-
- function go$readFile (path, options, cb) {
- return fs$readFile(path, options, function (err) {
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
- enqueue([go$readFile, [path, options, cb]])
- else {
- if (typeof cb === 'function')
- cb.apply(this, arguments)
- retry()
- }
- })
- }
- }
-
- var fs$writeFile = fs.writeFile
- fs.writeFile = writeFile
- function writeFile (path, data, options, cb) {
- if (typeof options === 'function')
- cb = options, options = null
-
- return go$writeFile(path, data, options, cb)
-
- function go$writeFile (path, data, options, cb) {
- return fs$writeFile(path, data, options, function (err) {
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
- enqueue([go$writeFile, [path, data, options, cb]])
- else {
- if (typeof cb === 'function')
- cb.apply(this, arguments)
- retry()
- }
- })
- }
- }
-
- var fs$appendFile = fs.appendFile
- if (fs$appendFile)
- fs.appendFile = appendFile
- function appendFile (path, data, options, cb) {
- if (typeof options === 'function')
- cb = options, options = null
-
- return go$appendFile(path, data, options, cb)
-
- function go$appendFile (path, data, options, cb) {
- return fs$appendFile(path, data, options, function (err) {
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
- enqueue([go$appendFile, [path, data, options, cb]])
- else {
- if (typeof cb === 'function')
- cb.apply(this, arguments)
- retry()
- }
- })
- }
- }
-
- var fs$readdir = fs.readdir
- fs.readdir = readdir
- function readdir (path, options, cb) {
- var args = [path]
- if (typeof options !== 'function') {
- args.push(options)
- } else {
- cb = options
- }
- args.push(go$readdir$cb)
-
- return go$readdir(args)
-
- function go$readdir$cb (err, files) {
- if (files && files.sort)
- files.sort()
-
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
- enqueue([go$readdir, [args]])
-
- else {
- if (typeof cb === 'function')
- cb.apply(this, arguments)
- retry()
- }
- }
- }
-
- function go$readdir (args) {
- return fs$readdir.apply(fs, args)
- }
-
- if (process.version.substr(0, 4) === 'v0.8') {
- var legStreams = legacy(fs)
- ReadStream = legStreams.ReadStream
- WriteStream = legStreams.WriteStream
- }
-
- var fs$ReadStream = fs.ReadStream
- if (fs$ReadStream) {
- ReadStream.prototype = Object.create(fs$ReadStream.prototype)
- ReadStream.prototype.open = ReadStream$open
- }
-
- var fs$WriteStream = fs.WriteStream
- if (fs$WriteStream) {
- WriteStream.prototype = Object.create(fs$WriteStream.prototype)
- WriteStream.prototype.open = WriteStream$open
- }
-
- Object.defineProperty(fs, 'ReadStream', {
- get: function () {
- return ReadStream
- },
- set: function (val) {
- ReadStream = val
- },
- enumerable: true,
- configurable: true
- })
- Object.defineProperty(fs, 'WriteStream', {
- get: function () {
- return WriteStream
- },
- set: function (val) {
- WriteStream = val
- },
- enumerable: true,
- configurable: true
- })
-
- // legacy names
- var FileReadStream = ReadStream
- Object.defineProperty(fs, 'FileReadStream', {
- get: function () {
- return FileReadStream
- },
- set: function (val) {
- FileReadStream = val
- },
- enumerable: true,
- configurable: true
- })
- var FileWriteStream = WriteStream
- Object.defineProperty(fs, 'FileWriteStream', {
- get: function () {
- return FileWriteStream
- },
- set: function (val) {
- FileWriteStream = val
- },
- enumerable: true,
- configurable: true
- })
-
- function ReadStream (path, options) {
- if (this instanceof ReadStream)
- return fs$ReadStream.apply(this, arguments), this
- else
- return ReadStream.apply(Object.create(ReadStream.prototype), arguments)
- }
-
- function ReadStream$open () {
- var that = this
- open(that.path, that.flags, that.mode, function (err, fd) {
- if (err) {
- if (that.autoClose)
- that.destroy()
-
- that.emit('error', err)
- } else {
- that.fd = fd
- that.emit('open', fd)
- that.read()
- }
- })
- }
-
- function WriteStream (path, options) {
- if (this instanceof WriteStream)
- return fs$WriteStream.apply(this, arguments), this
- else
- return WriteStream.apply(Object.create(WriteStream.prototype), arguments)
- }
-
- function WriteStream$open () {
- var that = this
- open(that.path, that.flags, that.mode, function (err, fd) {
- if (err) {
- that.destroy()
- that.emit('error', err)
- } else {
- that.fd = fd
- that.emit('open', fd)
- }
- })
- }
-
- function createReadStream (path, options) {
- return new fs.ReadStream(path, options)
- }
-
- function createWriteStream (path, options) {
- return new fs.WriteStream(path, options)
- }
-
- var fs$open = fs.open
- fs.open = open
- function open (path, flags, mode, cb) {
- if (typeof mode === 'function')
- cb = mode, mode = null
-
- return go$open(path, flags, mode, cb)
-
- function go$open (path, flags, mode, cb) {
- return fs$open(path, flags, mode, function (err, fd) {
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))
- enqueue([go$open, [path, flags, mode, cb]])
- else {
- if (typeof cb === 'function')
- cb.apply(this, arguments)
- retry()
- }
- })
- }
- }
-
- return fs
-}
-
-function enqueue (elem) {
- debug('ENQUEUE', elem[0].name, elem[1])
- fs[gracefulQueue].push(elem)
-}
-
-function retry () {
- var elem = fs[gracefulQueue].shift()
- if (elem) {
- debug('RETRY', elem[0].name, elem[1])
- elem[0].apply(null, elem[1])
- }
-}
diff --git a/node_modules/graceful-fs/legacy-streams.js b/node_modules/graceful-fs/legacy-streams.js
deleted file mode 100644
index d617b50..0000000
--- a/node_modules/graceful-fs/legacy-streams.js
+++ /dev/null
@@ -1,118 +0,0 @@
-var Stream = require('stream').Stream
-
-module.exports = legacy
-
-function legacy (fs) {
- return {
- ReadStream: ReadStream,
- WriteStream: WriteStream
- }
-
- function ReadStream (path, options) {
- if (!(this instanceof ReadStream)) return new ReadStream(path, options);
-
- Stream.call(this);
-
- var self = this;
-
- this.path = path;
- this.fd = null;
- this.readable = true;
- this.paused = false;
-
- this.flags = 'r';
- this.mode = 438; /*=0666*/
- this.bufferSize = 64 * 1024;
-
- options = options || {};
-
- // Mixin options into this
- var keys = Object.keys(options);
- for (var index = 0, length = keys.length; index < length; index++) {
- var key = keys[index];
- this[key] = options[key];
- }
-
- if (this.encoding) this.setEncoding(this.encoding);
-
- if (this.start !== undefined) {
- if ('number' !== typeof this.start) {
- throw TypeError('start must be a Number');
- }
- if (this.end === undefined) {
- this.end = Infinity;
- } else if ('number' !== typeof this.end) {
- throw TypeError('end must be a Number');
- }
-
- if (this.start > this.end) {
- throw new Error('start must be <= end');
- }
-
- this.pos = this.start;
- }
-
- if (this.fd !== null) {
- process.nextTick(function() {
- self._read();
- });
- return;
- }
-
- fs.open(this.path, this.flags, this.mode, function (err, fd) {
- if (err) {
- self.emit('error', err);
- self.readable = false;
- return;
- }
-
- self.fd = fd;
- self.emit('open', fd);
- self._read();
- })
- }
-
- function WriteStream (path, options) {
- if (!(this instanceof WriteStream)) return new WriteStream(path, options);
-
- Stream.call(this);
-
- this.path = path;
- this.fd = null;
- this.writable = true;
-
- this.flags = 'w';
- this.encoding = 'binary';
- this.mode = 438; /*=0666*/
- this.bytesWritten = 0;
-
- options = options || {};
-
- // Mixin options into this
- var keys = Object.keys(options);
- for (var index = 0, length = keys.length; index < length; index++) {
- var key = keys[index];
- this[key] = options[key];
- }
-
- if (this.start !== undefined) {
- if ('number' !== typeof this.start) {
- throw TypeError('start must be a Number');
- }
- if (this.start < 0) {
- throw new Error('start must be >= zero');
- }
-
- this.pos = this.start;
- }
-
- this.busy = false;
- this._queue = [];
-
- if (this.fd === null) {
- this._open = fs.open;
- this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
- this.flush();
- }
- }
-}
diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json
deleted file mode 100644
index 675a42b..0000000
--- a/node_modules/graceful-fs/package.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "_from": "graceful-fs@^4.1.2",
- "_id": "graceful-fs@4.2.4",
- "_inBundle": false,
- "_integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==",
- "_location": "/graceful-fs",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "graceful-fs@^4.1.2",
- "name": "graceful-fs",
- "escapedName": "graceful-fs",
- "rawSpec": "^4.1.2",
- "saveSpec": null,
- "fetchSpec": "^4.1.2"
- },
- "_requiredBy": [
- "/fstream",
- "/load-json-file",
- "/node-gyp",
- "/path-type"
- ],
- "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
- "_shasum": "2256bde14d3632958c465ebc96dc467ca07a29fb",
- "_spec": "graceful-fs@^4.1.2",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/load-json-file",
- "bugs": {
- "url": "https://github.com/isaacs/node-graceful-fs/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "A drop-in replacement for fs, making various improvements.",
- "devDependencies": {
- "import-fresh": "^2.0.0",
- "mkdirp": "^0.5.0",
- "rimraf": "^2.2.8",
- "tap": "^12.7.0"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "fs.js",
- "graceful-fs.js",
- "legacy-streams.js",
- "polyfills.js",
- "clone.js"
- ],
- "homepage": "https://github.com/isaacs/node-graceful-fs#readme",
- "keywords": [
- "fs",
- "module",
- "reading",
- "retry",
- "retries",
- "queue",
- "error",
- "errors",
- "handling",
- "EMFILE",
- "EAGAIN",
- "EINVAL",
- "EPERM",
- "EACCESS"
- ],
- "license": "ISC",
- "main": "graceful-fs.js",
- "name": "graceful-fs",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/isaacs/node-graceful-fs.git"
- },
- "scripts": {
- "postpublish": "git push origin --follow-tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "node test.js | tap -"
- },
- "version": "4.2.4"
-}
diff --git a/node_modules/graceful-fs/polyfills.js b/node_modules/graceful-fs/polyfills.js
deleted file mode 100644
index a5808d2..0000000
--- a/node_modules/graceful-fs/polyfills.js
+++ /dev/null
@@ -1,342 +0,0 @@
-var constants = require('constants')
-
-var origCwd = process.cwd
-var cwd = null
-
-var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform
-
-process.cwd = function() {
- if (!cwd)
- cwd = origCwd.call(process)
- return cwd
-}
-try {
- process.cwd()
-} catch (er) {}
-
-var chdir = process.chdir
-process.chdir = function(d) {
- cwd = null
- chdir.call(process, d)
-}
-
-module.exports = patch
-
-function patch (fs) {
- // (re-)implement some things that are known busted or missing.
-
- // lchmod, broken prior to 0.6.2
- // back-port the fix here.
- if (constants.hasOwnProperty('O_SYMLINK') &&
- process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
- patchLchmod(fs)
- }
-
- // lutimes implementation, or no-op
- if (!fs.lutimes) {
- patchLutimes(fs)
- }
-
- // https://github.com/isaacs/node-graceful-fs/issues/4
- // Chown should not fail on einval or eperm if non-root.
- // It should not fail on enosys ever, as this just indicates
- // that a fs doesn't support the intended operation.
-
- fs.chown = chownFix(fs.chown)
- fs.fchown = chownFix(fs.fchown)
- fs.lchown = chownFix(fs.lchown)
-
- fs.chmod = chmodFix(fs.chmod)
- fs.fchmod = chmodFix(fs.fchmod)
- fs.lchmod = chmodFix(fs.lchmod)
-
- fs.chownSync = chownFixSync(fs.chownSync)
- fs.fchownSync = chownFixSync(fs.fchownSync)
- fs.lchownSync = chownFixSync(fs.lchownSync)
-
- fs.chmodSync = chmodFixSync(fs.chmodSync)
- fs.fchmodSync = chmodFixSync(fs.fchmodSync)
- fs.lchmodSync = chmodFixSync(fs.lchmodSync)
-
- fs.stat = statFix(fs.stat)
- fs.fstat = statFix(fs.fstat)
- fs.lstat = statFix(fs.lstat)
-
- fs.statSync = statFixSync(fs.statSync)
- fs.fstatSync = statFixSync(fs.fstatSync)
- fs.lstatSync = statFixSync(fs.lstatSync)
-
- // if lchmod/lchown do not exist, then make them no-ops
- if (!fs.lchmod) {
- fs.lchmod = function (path, mode, cb) {
- if (cb) process.nextTick(cb)
- }
- fs.lchmodSync = function () {}
- }
- if (!fs.lchown) {
- fs.lchown = function (path, uid, gid, cb) {
- if (cb) process.nextTick(cb)
- }
- fs.lchownSync = function () {}
- }
-
- // on Windows, A/V software can lock the directory, causing this
- // to fail with an EACCES or EPERM if the directory contains newly
- // created files. Try again on failure, for up to 60 seconds.
-
- // Set the timeout this long because some Windows Anti-Virus, such as Parity
- // bit9, may lock files for up to a minute, causing npm package install
- // failures. Also, take care to yield the scheduler. Windows scheduling gives
- // CPU to a busy looping process, which can cause the program causing the lock
- // contention to be starved of CPU by node, so the contention doesn't resolve.
- if (platform === "win32") {
- fs.rename = (function (fs$rename) { return function (from, to, cb) {
- var start = Date.now()
- var backoff = 0;
- fs$rename(from, to, function CB (er) {
- if (er
- && (er.code === "EACCES" || er.code === "EPERM")
- && Date.now() - start < 60000) {
- setTimeout(function() {
- fs.stat(to, function (stater, st) {
- if (stater && stater.code === "ENOENT")
- fs$rename(from, to, CB);
- else
- cb(er)
- })
- }, backoff)
- if (backoff < 100)
- backoff += 10;
- return;
- }
- if (cb) cb(er)
- })
- }})(fs.rename)
- }
-
- // if read() returns EAGAIN, then just try it again.
- fs.read = (function (fs$read) {
- function read (fd, buffer, offset, length, position, callback_) {
- var callback
- if (callback_ && typeof callback_ === 'function') {
- var eagCounter = 0
- callback = function (er, _, __) {
- if (er && er.code === 'EAGAIN' && eagCounter < 10) {
- eagCounter ++
- return fs$read.call(fs, fd, buffer, offset, length, position, callback)
- }
- callback_.apply(this, arguments)
- }
- }
- return fs$read.call(fs, fd, buffer, offset, length, position, callback)
- }
-
- // This ensures `util.promisify` works as it does for native `fs.read`.
- read.__proto__ = fs$read
- return read
- })(fs.read)
-
- fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
- var eagCounter = 0
- while (true) {
- try {
- return fs$readSync.call(fs, fd, buffer, offset, length, position)
- } catch (er) {
- if (er.code === 'EAGAIN' && eagCounter < 10) {
- eagCounter ++
- continue
- }
- throw er
- }
- }
- }})(fs.readSync)
-
- function patchLchmod (fs) {
- fs.lchmod = function (path, mode, callback) {
- fs.open( path
- , constants.O_WRONLY | constants.O_SYMLINK
- , mode
- , function (err, fd) {
- if (err) {
- if (callback) callback(err)
- return
- }
- // prefer to return the chmod error, if one occurs,
- // but still try to close, and report closing errors if they occur.
- fs.fchmod(fd, mode, function (err) {
- fs.close(fd, function(err2) {
- if (callback) callback(err || err2)
- })
- })
- })
- }
-
- fs.lchmodSync = function (path, mode) {
- var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)
-
- // prefer to return the chmod error, if one occurs,
- // but still try to close, and report closing errors if they occur.
- var threw = true
- var ret
- try {
- ret = fs.fchmodSync(fd, mode)
- threw = false
- } finally {
- if (threw) {
- try {
- fs.closeSync(fd)
- } catch (er) {}
- } else {
- fs.closeSync(fd)
- }
- }
- return ret
- }
- }
-
- function patchLutimes (fs) {
- if (constants.hasOwnProperty("O_SYMLINK")) {
- fs.lutimes = function (path, at, mt, cb) {
- fs.open(path, constants.O_SYMLINK, function (er, fd) {
- if (er) {
- if (cb) cb(er)
- return
- }
- fs.futimes(fd, at, mt, function (er) {
- fs.close(fd, function (er2) {
- if (cb) cb(er || er2)
- })
- })
- })
- }
-
- fs.lutimesSync = function (path, at, mt) {
- var fd = fs.openSync(path, constants.O_SYMLINK)
- var ret
- var threw = true
- try {
- ret = fs.futimesSync(fd, at, mt)
- threw = false
- } finally {
- if (threw) {
- try {
- fs.closeSync(fd)
- } catch (er) {}
- } else {
- fs.closeSync(fd)
- }
- }
- return ret
- }
-
- } else {
- fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
- fs.lutimesSync = function () {}
- }
- }
-
- function chmodFix (orig) {
- if (!orig) return orig
- return function (target, mode, cb) {
- return orig.call(fs, target, mode, function (er) {
- if (chownErOk(er)) er = null
- if (cb) cb.apply(this, arguments)
- })
- }
- }
-
- function chmodFixSync (orig) {
- if (!orig) return orig
- return function (target, mode) {
- try {
- return orig.call(fs, target, mode)
- } catch (er) {
- if (!chownErOk(er)) throw er
- }
- }
- }
-
-
- function chownFix (orig) {
- if (!orig) return orig
- return function (target, uid, gid, cb) {
- return orig.call(fs, target, uid, gid, function (er) {
- if (chownErOk(er)) er = null
- if (cb) cb.apply(this, arguments)
- })
- }
- }
-
- function chownFixSync (orig) {
- if (!orig) return orig
- return function (target, uid, gid) {
- try {
- return orig.call(fs, target, uid, gid)
- } catch (er) {
- if (!chownErOk(er)) throw er
- }
- }
- }
-
- function statFix (orig) {
- if (!orig) return orig
- // Older versions of Node erroneously returned signed integers for
- // uid + gid.
- return function (target, options, cb) {
- if (typeof options === 'function') {
- cb = options
- options = null
- }
- function callback (er, stats) {
- if (stats) {
- if (stats.uid < 0) stats.uid += 0x100000000
- if (stats.gid < 0) stats.gid += 0x100000000
- }
- if (cb) cb.apply(this, arguments)
- }
- return options ? orig.call(fs, target, options, callback)
- : orig.call(fs, target, callback)
- }
- }
-
- function statFixSync (orig) {
- if (!orig) return orig
- // Older versions of Node erroneously returned signed integers for
- // uid + gid.
- return function (target, options) {
- var stats = options ? orig.call(fs, target, options)
- : orig.call(fs, target)
- if (stats.uid < 0) stats.uid += 0x100000000
- if (stats.gid < 0) stats.gid += 0x100000000
- return stats;
- }
- }
-
- // ENOSYS means that the fs doesn't support the op. Just ignore
- // that, because it doesn't matter.
- //
- // if there's no getuid, or if getuid() is something other
- // than 0, and the error is EINVAL or EPERM, then just ignore
- // it.
- //
- // This specific case is a silent failure in cp, install, tar,
- // and most other unix tools that manage permissions.
- //
- // When running as root, or if other types of errors are
- // encountered, then it's strict.
- function chownErOk (er) {
- if (!er)
- return true
-
- if (er.code === "ENOSYS")
- return true
-
- var nonroot = !process.getuid || process.getuid() !== 0
- if (nonroot) {
- if (er.code === "EINVAL" || er.code === "EPERM")
- return true
- }
-
- return false
- }
-}
diff --git a/node_modules/har-schema/LICENSE b/node_modules/har-schema/LICENSE
deleted file mode 100644
index ca55c91..0000000
--- a/node_modules/har-schema/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2015, Ahmad Nassri <ahmad@ahmadnassri.com>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/har-schema/README.md b/node_modules/har-schema/README.md
deleted file mode 100644
index cd0a28e..0000000
--- a/node_modules/har-schema/README.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# HAR Schema [![version][npm-version]][npm-url] [![License][npm-license]][license-url]
-
-> JSON Schema for HTTP Archive ([HAR][spec]).
-
-[![Build Status][travis-image]][travis-url]
-[![Downloads][npm-downloads]][npm-url]
-[![Code Climate][codeclimate-quality]][codeclimate-url]
-[![Coverage Status][codeclimate-coverage]][codeclimate-url]
-[![Dependency Status][dependencyci-image]][dependencyci-url]
-[![Dependencies][david-image]][david-url]
-
-## Install
-
-```bash
-npm install --only=production --save har-schema
-```
-
-## Usage
-
-Compatible with any [JSON Schema validation tool][validator].
-
-----
-> :copyright: [ahmadnassri.com](https://www.ahmadnassri.com/) &nbsp;&middot;&nbsp;
-> License: [ISC][license-url] &nbsp;&middot;&nbsp;
-> Github: [@ahmadnassri](https://github.com/ahmadnassri) &nbsp;&middot;&nbsp;
-> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
-
-[license-url]: http://choosealicense.com/licenses/isc/
-
-[travis-url]: https://travis-ci.org/ahmadnassri/har-schema
-[travis-image]: https://img.shields.io/travis/ahmadnassri/har-schema.svg?style=flat-square
-
-[npm-url]: https://www.npmjs.com/package/har-schema
-[npm-license]: https://img.shields.io/npm/l/har-schema.svg?style=flat-square
-[npm-version]: https://img.shields.io/npm/v/har-schema.svg?style=flat-square
-[npm-downloads]: https://img.shields.io/npm/dm/har-schema.svg?style=flat-square
-
-[codeclimate-url]: https://codeclimate.com/github/ahmadnassri/har-schema
-[codeclimate-quality]: https://img.shields.io/codeclimate/github/ahmadnassri/har-schema.svg?style=flat-square
-[codeclimate-coverage]: https://img.shields.io/codeclimate/coverage/github/ahmadnassri/har-schema.svg?style=flat-square
-
-[david-url]: https://david-dm.org/ahmadnassri/har-schema
-[david-image]: https://img.shields.io/david/ahmadnassri/har-schema.svg?style=flat-square
-
-[dependencyci-url]: https://dependencyci.com/github/ahmadnassri/har-schema
-[dependencyci-image]: https://dependencyci.com/github/ahmadnassri/har-schema/badge?style=flat-square
-
-[spec]: https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md
-[validator]: https://github.com/ahmadnassri/har-validator
diff --git a/node_modules/har-schema/lib/afterRequest.json b/node_modules/har-schema/lib/afterRequest.json
deleted file mode 100644
index 5f52581..0000000
--- a/node_modules/har-schema/lib/afterRequest.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "$id": "afterRequest.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "optional": true,
- "required": [
- "lastAccess",
- "eTag",
- "hitCount"
- ],
- "properties": {
- "expires": {
- "type": "string",
- "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
- },
- "lastAccess": {
- "type": "string",
- "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
- },
- "eTag": {
- "type": "string"
- },
- "hitCount": {
- "type": "integer"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/beforeRequest.json b/node_modules/har-schema/lib/beforeRequest.json
deleted file mode 100644
index c7b5c10..0000000
--- a/node_modules/har-schema/lib/beforeRequest.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "$id": "beforeRequest.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "optional": true,
- "required": [
- "lastAccess",
- "eTag",
- "hitCount"
- ],
- "properties": {
- "expires": {
- "type": "string",
- "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
- },
- "lastAccess": {
- "type": "string",
- "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"
- },
- "eTag": {
- "type": "string"
- },
- "hitCount": {
- "type": "integer"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/browser.json b/node_modules/har-schema/lib/browser.json
deleted file mode 100644
index d6869f7..0000000
--- a/node_modules/har-schema/lib/browser.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "$id": "browser.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "name",
- "version"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/cache.json b/node_modules/har-schema/lib/cache.json
deleted file mode 100644
index 30a7182..0000000
--- a/node_modules/har-schema/lib/cache.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "$id": "cache.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "properties": {
- "beforeRequest": {
- "oneOf": [
- { "type": "null" },
- { "$ref": "beforeRequest.json#" }
- ]
- },
- "afterRequest": {
- "oneOf": [
- { "type": "null" },
- { "$ref": "afterRequest.json#" }
- ]
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/content.json b/node_modules/har-schema/lib/content.json
deleted file mode 100644
index 43944bf..0000000
--- a/node_modules/har-schema/lib/content.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "$id": "content.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "size",
- "mimeType"
- ],
- "properties": {
- "size": {
- "type": "integer"
- },
- "compression": {
- "type": "integer"
- },
- "mimeType": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "encoding": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/cookie.json b/node_modules/har-schema/lib/cookie.json
deleted file mode 100644
index 661f7f3..0000000
--- a/node_modules/har-schema/lib/cookie.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "$id": "cookie.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "name",
- "value"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
- },
- "path": {
- "type": "string"
- },
- "domain": {
- "type": "string"
- },
- "expires": {
- "type": ["string", "null"],
- "format": "date-time"
- },
- "httpOnly": {
- "type": "boolean"
- },
- "secure": {
- "type": "boolean"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/creator.json b/node_modules/har-schema/lib/creator.json
deleted file mode 100644
index 71a75cd..0000000
--- a/node_modules/har-schema/lib/creator.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "$id": "creator.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "name",
- "version"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "version": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/entry.json b/node_modules/har-schema/lib/entry.json
deleted file mode 100644
index 18025f4..0000000
--- a/node_modules/har-schema/lib/entry.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "$id": "entry.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "optional": true,
- "required": [
- "startedDateTime",
- "time",
- "request",
- "response",
- "cache",
- "timings"
- ],
- "properties": {
- "pageref": {
- "type": "string"
- },
- "startedDateTime": {
- "type": "string",
- "format": "date-time",
- "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"
- },
- "time": {
- "type": "number",
- "min": 0
- },
- "request": {
- "$ref": "request.json#"
- },
- "response": {
- "$ref": "response.json#"
- },
- "cache": {
- "$ref": "cache.json#"
- },
- "timings": {
- "$ref": "timings.json#"
- },
- "serverIPAddress": {
- "type": "string",
- "oneOf": [
- { "format": "ipv4" },
- { "format": "ipv6" }
- ]
- },
- "connection": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/har.json b/node_modules/har-schema/lib/har.json
deleted file mode 100644
index d1a1de5..0000000
--- a/node_modules/har-schema/lib/har.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "$id": "har.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "log"
- ],
- "properties": {
- "log": {
- "$ref": "log.json#"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/header.json b/node_modules/har-schema/lib/header.json
deleted file mode 100644
index 103d949..0000000
--- a/node_modules/har-schema/lib/header.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "$id": "header.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "name",
- "value"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/index.js b/node_modules/har-schema/lib/index.js
deleted file mode 100644
index 244c08e..0000000
--- a/node_modules/har-schema/lib/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict'
-
-module.exports = {
- afterRequest: require('./afterRequest.json'),
- beforeRequest: require('./beforeRequest.json'),
- browser: require('./browser.json'),
- cache: require('./cache.json'),
- content: require('./content.json'),
- cookie: require('./cookie.json'),
- creator: require('./creator.json'),
- entry: require('./entry.json'),
- har: require('./har.json'),
- header: require('./header.json'),
- log: require('./log.json'),
- page: require('./page.json'),
- pageTimings: require('./pageTimings.json'),
- postData: require('./postData.json'),
- query: require('./query.json'),
- request: require('./request.json'),
- response: require('./response.json'),
- timings: require('./timings.json')
-}
diff --git a/node_modules/har-schema/lib/log.json b/node_modules/har-schema/lib/log.json
deleted file mode 100644
index c353b40..0000000
--- a/node_modules/har-schema/lib/log.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "$id": "log.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "version",
- "creator",
- "entries"
- ],
- "properties": {
- "version": {
- "type": "string"
- },
- "creator": {
- "$ref": "creator.json#"
- },
- "browser": {
- "$ref": "browser.json#"
- },
- "pages": {
- "type": "array",
- "items": {
- "$ref": "page.json#"
- }
- },
- "entries": {
- "type": "array",
- "items": {
- "$ref": "entry.json#"
- }
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/page.json b/node_modules/har-schema/lib/page.json
deleted file mode 100644
index e24a3ce..0000000
--- a/node_modules/har-schema/lib/page.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "$id": "page.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "optional": true,
- "required": [
- "startedDateTime",
- "id",
- "title",
- "pageTimings"
- ],
- "properties": {
- "startedDateTime": {
- "type": "string",
- "format": "date-time",
- "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"
- },
- "id": {
- "type": "string",
- "unique": true
- },
- "title": {
- "type": "string"
- },
- "pageTimings": {
- "$ref": "pageTimings.json#"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/pageTimings.json b/node_modules/har-schema/lib/pageTimings.json
deleted file mode 100644
index 130411f..0000000
--- a/node_modules/har-schema/lib/pageTimings.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "$id": "pageTimings.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "properties": {
- "onContentLoad": {
- "type": "number",
- "min": -1
- },
- "onLoad": {
- "type": "number",
- "min": -1
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/postData.json b/node_modules/har-schema/lib/postData.json
deleted file mode 100644
index 3aa6294..0000000
--- a/node_modules/har-schema/lib/postData.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "$id": "postData.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "optional": true,
- "required": [
- "mimeType"
- ],
- "properties": {
- "mimeType": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "params": {
- "type": "array",
- "required": [
- "name"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
- },
- "fileName": {
- "type": "string"
- },
- "contentType": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/query.json b/node_modules/har-schema/lib/query.json
deleted file mode 100644
index f82d8d8..0000000
--- a/node_modules/har-schema/lib/query.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "$id": "query.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "name",
- "value"
- ],
- "properties": {
- "name": {
- "type": "string"
- },
- "value": {
- "type": "string"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/request.json b/node_modules/har-schema/lib/request.json
deleted file mode 100644
index 0e2566d..0000000
--- a/node_modules/har-schema/lib/request.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "$id": "request.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "method",
- "url",
- "httpVersion",
- "cookies",
- "headers",
- "queryString",
- "headersSize",
- "bodySize"
- ],
- "properties": {
- "method": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "httpVersion": {
- "type": "string"
- },
- "cookies": {
- "type": "array",
- "items": {
- "$ref": "cookie.json#"
- }
- },
- "headers": {
- "type": "array",
- "items": {
- "$ref": "header.json#"
- }
- },
- "queryString": {
- "type": "array",
- "items": {
- "$ref": "query.json#"
- }
- },
- "postData": {
- "$ref": "postData.json#"
- },
- "headersSize": {
- "type": "integer"
- },
- "bodySize": {
- "type": "integer"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/response.json b/node_modules/har-schema/lib/response.json
deleted file mode 100644
index ec30f80..0000000
--- a/node_modules/har-schema/lib/response.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "$id": "response.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "type": "object",
- "required": [
- "status",
- "statusText",
- "httpVersion",
- "cookies",
- "headers",
- "content",
- "redirectURL",
- "headersSize",
- "bodySize"
- ],
- "properties": {
- "status": {
- "type": "integer"
- },
- "statusText": {
- "type": "string"
- },
- "httpVersion": {
- "type": "string"
- },
- "cookies": {
- "type": "array",
- "items": {
- "$ref": "cookie.json#"
- }
- },
- "headers": {
- "type": "array",
- "items": {
- "$ref": "header.json#"
- }
- },
- "content": {
- "$ref": "content.json#"
- },
- "redirectURL": {
- "type": "string"
- },
- "headersSize": {
- "type": "integer"
- },
- "bodySize": {
- "type": "integer"
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/lib/timings.json b/node_modules/har-schema/lib/timings.json
deleted file mode 100644
index 5fe7dc7..0000000
--- a/node_modules/har-schema/lib/timings.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "$id": "timings.json#",
- "$schema": "http://json-schema.org/draft-06/schema#",
- "required": [
- "send",
- "wait",
- "receive"
- ],
- "properties": {
- "dns": {
- "type": "number",
- "min": -1
- },
- "connect": {
- "type": "number",
- "min": -1
- },
- "blocked": {
- "type": "number",
- "min": -1
- },
- "send": {
- "type": "number",
- "min": -1
- },
- "wait": {
- "type": "number",
- "min": -1
- },
- "receive": {
- "type": "number",
- "min": -1
- },
- "ssl": {
- "type": "number",
- "min": -1
- },
- "comment": {
- "type": "string"
- }
- }
-}
diff --git a/node_modules/har-schema/package.json b/node_modules/har-schema/package.json
deleted file mode 100644
index d06ff3b..0000000
--- a/node_modules/har-schema/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_from": "har-schema@^2.0.0",
- "_id": "har-schema@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=",
- "_location": "/har-schema",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "har-schema@^2.0.0",
- "name": "har-schema",
- "escapedName": "har-schema",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/har-validator"
- ],
- "_resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
- "_shasum": "a94c2224ebcac04782a0d9035521f24735b7ec92",
- "_spec": "har-schema@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/har-validator",
- "author": {
- "name": "Ahmad Nassri",
- "email": "ahmad@ahmadnassri.com",
- "url": "https://www.ahmadnassri.com/"
- },
- "bugs": {
- "url": "https://github.com/ahmadnassri/har-schema/issues"
- },
- "bundleDependencies": false,
- "config": {
- "commitizen": {
- "path": "./node_modules/cz-conventional-changelog"
- }
- },
- "contributors": [
- {
- "name": "Evgeny Poberezkin",
- "email": "e.poberezkin@me.com"
- }
- ],
- "deprecated": false,
- "description": "JSON Schema for HTTP Archive (HAR)",
- "devDependencies": {
- "ajv": "^5.0.0",
- "codeclimate-test-reporter": "^0.4.0",
- "cz-conventional-changelog": "^1.2.0",
- "echint": "^2.1.0",
- "semantic-release": "^6.3.2",
- "snazzy": "^5.0.0",
- "tap": "^8.0.1"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "lib"
- ],
- "homepage": "https://github.com/ahmadnassri/har-schema",
- "keywords": [
- "har",
- "http",
- "archive",
- "JSON",
- "schema",
- "JSON-schema"
- ],
- "license": "ISC",
- "main": "lib/index.js",
- "name": "har-schema",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ahmadnassri/har-schema.git"
- },
- "scripts": {
- "codeclimate": "tap --coverage-report=text-lcov | codeclimate-test-reporter",
- "coverage": "tap test --reporter silent --coverage",
- "pretest": "snazzy && echint",
- "semantic-release": "semantic-release pre && npm publish && semantic-release post",
- "test": "tap test --reporter spec"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/har-validator/LICENSE b/node_modules/har-validator/LICENSE
deleted file mode 100644
index a545266..0000000
--- a/node_modules/har-validator/LICENSE
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) 2018 Ahmad Nassri <ahmad@ahmadnassri.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/har-validator/README.md b/node_modules/har-validator/README.md
deleted file mode 100644
index dee6756..0000000
--- a/node_modules/har-validator/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# HAR Validator
-
-[![License][license-image]][license-url] [![version][npm-image]][npm-url] [![Build Status][circle-image]][circle-url]
-
-> Extremely fast HTTP Archive ([HAR](https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md)) validator using JSON Schema.
-
-## Install
-
-```bash
-npm install har-validator
-```
-
-## CLI Usage
-
-Please refer to [`har-cli`](https://github.com/ahmadnassri/har-cli) for more info.
-
-## API
-
-**Note**: as of [`v2.0.0`](https://github.com/ahmadnassri/node-har-validator/releases/tag/v2.0.0) this module defaults to Promise based API. _For backward compatibility with `v1.x` an [async/callback API](docs/async.md) is also provided_
-
-- [async API](docs/async.md)
-- [callback API](docs/async.md)
-- [Promise API](docs/promise.md) _(default)_
-
----
-> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) &bull;
-> Github: [@ahmadnassri](https://github.com/ahmadnassri) &bull;
-> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
-
-[license-url]: LICENSE
-[license-image]: https://img.shields.io/github/license/ahmadnassri/node-har-validator.svg?style=for-the-badge&logo=circleci
-
-[circle-url]: https://circleci.com/gh/ahmadnassri/workflows/node-har-validator
-[circle-image]: https://img.shields.io/circleci/project/github/ahmadnassri/node-har-validator/master.svg?style=for-the-badge&logo=circleci
-
-[npm-url]: https://www.npmjs.com/package/har-validator
-[npm-image]: https://img.shields.io/npm/v/har-validator.svg?style=for-the-badge&logo=npm
diff --git a/node_modules/har-validator/lib/async.js b/node_modules/har-validator/lib/async.js
deleted file mode 100644
index 90701f2..0000000
--- a/node_modules/har-validator/lib/async.js
+++ /dev/null
@@ -1,105 +0,0 @@
-var Ajv = require('ajv')
-var HARError = require('./error')
-var schemas = require('har-schema')
-
-var ajv
-
-function createAjvInstance () {
- var ajv = new Ajv({
- allErrors: true
- })
- ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
- ajv.addSchema(schemas)
-
- return ajv
-}
-
-function validate (name, data, next) {
- data = data || {}
-
- // validator config
- ajv = ajv || createAjvInstance()
-
- var validate = ajv.getSchema(name + '.json')
-
- var valid = validate(data)
-
- // callback?
- if (typeof next === 'function') {
- return next(!valid ? new HARError(validate.errors) : null, valid)
- }
-
- return valid
-}
-
-exports.afterRequest = function (data, next) {
- return validate('afterRequest', data, next)
-}
-
-exports.beforeRequest = function (data, next) {
- return validate('beforeRequest', data, next)
-}
-
-exports.browser = function (data, next) {
- return validate('browser', data, next)
-}
-
-exports.cache = function (data, next) {
- return validate('cache', data, next)
-}
-
-exports.content = function (data, next) {
- return validate('content', data, next)
-}
-
-exports.cookie = function (data, next) {
- return validate('cookie', data, next)
-}
-
-exports.creator = function (data, next) {
- return validate('creator', data, next)
-}
-
-exports.entry = function (data, next) {
- return validate('entry', data, next)
-}
-
-exports.har = function (data, next) {
- return validate('har', data, next)
-}
-
-exports.header = function (data, next) {
- return validate('header', data, next)
-}
-
-exports.log = function (data, next) {
- return validate('log', data, next)
-}
-
-exports.page = function (data, next) {
- return validate('page', data, next)
-}
-
-exports.pageTimings = function (data, next) {
- return validate('pageTimings', data, next)
-}
-
-exports.postData = function (data, next) {
- return validate('postData', data, next)
-}
-
-exports.query = function (data, next) {
- return validate('query', data, next)
-}
-
-exports.request = function (data, next) {
- return validate('request', data, next)
-}
-
-exports.response = function (data, next) {
- return validate('response', data, next)
-}
-
-exports.timings = function (data, next) {
- return validate('timings', data, next)
-}
diff --git a/node_modules/har-validator/lib/error.js b/node_modules/har-validator/lib/error.js
deleted file mode 100644
index f2618dc..0000000
--- a/node_modules/har-validator/lib/error.js
+++ /dev/null
@@ -1,17 +0,0 @@
-function HARError (errors) {
- var message = 'validation failed'
-
- this.name = 'HARError'
- this.message = message
- this.errors = errors
-
- if (typeof Error.captureStackTrace === 'function') {
- Error.captureStackTrace(this, this.constructor)
- } else {
- this.stack = (new Error(message)).stack
- }
-}
-
-HARError.prototype = Error.prototype
-
-module.exports = HARError
diff --git a/node_modules/har-validator/lib/promise.js b/node_modules/har-validator/lib/promise.js
deleted file mode 100644
index 46f4647..0000000
--- a/node_modules/har-validator/lib/promise.js
+++ /dev/null
@@ -1,102 +0,0 @@
-var Ajv = require('ajv')
-var HARError = require('./error')
-var schemas = require('har-schema')
-
-var ajv
-
-function createAjvInstance () {
- var ajv = new Ajv({
- allErrors: true
- })
- ajv.addMetaSchema(require('ajv/lib/refs/json-schema-draft-06.json'))
- ajv.addSchema(schemas)
-
- return ajv
-}
-
-function validate (name, data) {
- data = data || {}
-
- // validator config
- ajv = ajv || createAjvInstance()
-
- var validate = ajv.getSchema(name + '.json')
-
- return new Promise(function (resolve, reject) {
- var valid = validate(data)
-
- !valid ? reject(new HARError(validate.errors)) : resolve(data)
- })
-}
-
-exports.afterRequest = function (data) {
- return validate('afterRequest', data)
-}
-
-exports.beforeRequest = function (data) {
- return validate('beforeRequest', data)
-}
-
-exports.browser = function (data) {
- return validate('browser', data)
-}
-
-exports.cache = function (data) {
- return validate('cache', data)
-}
-
-exports.content = function (data) {
- return validate('content', data)
-}
-
-exports.cookie = function (data) {
- return validate('cookie', data)
-}
-
-exports.creator = function (data) {
- return validate('creator', data)
-}
-
-exports.entry = function (data) {
- return validate('entry', data)
-}
-
-exports.har = function (data) {
- return validate('har', data)
-}
-
-exports.header = function (data) {
- return validate('header', data)
-}
-
-exports.log = function (data) {
- return validate('log', data)
-}
-
-exports.page = function (data) {
- return validate('page', data)
-}
-
-exports.pageTimings = function (data) {
- return validate('pageTimings', data)
-}
-
-exports.postData = function (data) {
- return validate('postData', data)
-}
-
-exports.query = function (data) {
- return validate('query', data)
-}
-
-exports.request = function (data) {
- return validate('request', data)
-}
-
-exports.response = function (data) {
- return validate('response', data)
-}
-
-exports.timings = function (data) {
- return validate('timings', data)
-}
diff --git a/node_modules/har-validator/package.json b/node_modules/har-validator/package.json
deleted file mode 100644
index 2184e2c..0000000
--- a/node_modules/har-validator/package.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "_from": "har-validator@~5.1.0",
- "_id": "har-validator@5.1.3",
- "_inBundle": false,
- "_integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
- "_location": "/har-validator",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "har-validator@~5.1.0",
- "name": "har-validator",
- "escapedName": "har-validator",
- "rawSpec": "~5.1.0",
- "saveSpec": null,
- "fetchSpec": "~5.1.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
- "_shasum": "1ef89ebd3e4996557675eed9893110dc350fa080",
- "_spec": "har-validator@~5.1.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Ahmad Nassri",
- "email": "ahmad@ahmadnassri.com",
- "url": "https://www.ahmadnassri.com/"
- },
- "bugs": {
- "url": "https://github.com/ahmadnassri/node-har-validator/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ajv": "^6.5.5",
- "har-schema": "^2.0.0"
- },
- "deprecated": false,
- "description": "Extremely fast HTTP Archive (HAR) validator using JSON Schema",
- "devDependencies": {
- "tap": "^12.0.1"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "lib"
- ],
- "homepage": "https://github.com/ahmadnassri/node-har-validator",
- "keywords": [
- "har",
- "cli",
- "ajv",
- "http",
- "archive",
- "validate",
- "validator"
- ],
- "license": "MIT",
- "main": "lib/promise.js",
- "name": "har-validator",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ahmadnassri/node-har-validator.git"
- },
- "scripts": {
- "lint": "npx run-p lint:*",
- "lint:deps": "npx updated",
- "lint:ec": "npx editorconfig-checker .",
- "lint:js": "npx eslint .",
- "lint:md": "npx remark --quiet --frail .",
- "open:coverage": "opener coverage/lcov-report/index.html",
- "test": "tap test --coverage-report=lcov --no-browser"
- },
- "version": "5.1.3"
-}
diff --git a/node_modules/has-ansi/index.js b/node_modules/has-ansi/index.js
deleted file mode 100644
index 98fae06..0000000
--- a/node_modules/has-ansi/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict';
-var ansiRegex = require('ansi-regex');
-var re = new RegExp(ansiRegex().source); // remove the `g` flag
-module.exports = re.test.bind(re);
diff --git a/node_modules/has-ansi/license b/node_modules/has-ansi/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/has-ansi/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/has-ansi/package.json b/node_modules/has-ansi/package.json
deleted file mode 100644
index 6670002..0000000
--- a/node_modules/has-ansi/package.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "_from": "has-ansi@^2.0.0",
- "_id": "has-ansi@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
- "_location": "/has-ansi",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "has-ansi@^2.0.0",
- "name": "has-ansi",
- "escapedName": "has-ansi",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/chalk"
- ],
- "_resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
- "_shasum": "34f5049ce1ecdf2b0649af3ef24e45ed35416d91",
- "_spec": "has-ansi@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/chalk",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/has-ansi/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ansi-regex": "^2.0.0"
- },
- "deprecated": false,
- "description": "Check if a string has ANSI escape codes",
- "devDependencies": {
- "ava": "0.0.4"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/has-ansi#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "string",
- "tty",
- "escape",
- "shell",
- "xterm",
- "command-line",
- "text",
- "regex",
- "regexp",
- "re",
- "match",
- "test",
- "find",
- "pattern",
- "has"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Appelman",
- "email": "jappelman@xebia.com",
- "url": "jbnicolai.com"
- }
- ],
- "name": "has-ansi",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/has-ansi.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/has-ansi/readme.md b/node_modules/has-ansi/readme.md
deleted file mode 100644
index 02bc7c2..0000000
--- a/node_modules/has-ansi/readme.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# has-ansi [![Build Status](https://travis-ci.org/sindresorhus/has-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/has-ansi)
-
-> Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
-
-
-## Install
-
-```
-$ npm install --save has-ansi
-```
-
-
-## Usage
-
-```js
-var hasAnsi = require('has-ansi');
-
-hasAnsi('\u001b[4mcake\u001b[0m');
-//=> true
-
-hasAnsi('cake');
-//=> false
-```
-
-
-## Related
-
-- [has-ansi-cli](https://github.com/sindresorhus/has-ansi-cli) - CLI for this module
-- [strip-ansi](https://github.com/sindresorhus/strip-ansi) - Strip ANSI escape codes
-- [ansi-regex](https://github.com/sindresorhus/ansi-regex) - Regular expression for matching ANSI escape codes
-- [chalk](https://github.com/sindresorhus/chalk) - Terminal string styling done right
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/has-unicode/LICENSE b/node_modules/has-unicode/LICENSE
deleted file mode 100644
index d42e25e..0000000
--- a/node_modules/has-unicode/LICENSE
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2014, Rebecca Turner <me@re-becca.org>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/node_modules/has-unicode/README.md b/node_modules/has-unicode/README.md
deleted file mode 100644
index 5a03e59..0000000
--- a/node_modules/has-unicode/README.md
+++ /dev/null
@@ -1,43 +0,0 @@
-has-unicode
-===========
-
-Try to guess if your terminal supports unicode
-
-```javascript
-var hasUnicode = require("has-unicode")
-
-if (hasUnicode()) {
- // the terminal probably has unicode support
-}
-```
-```javascript
-var hasUnicode = require("has-unicode").tryHarder
-hasUnicode(function(unicodeSupported) {
- if (unicodeSupported) {
- // the terminal probably has unicode support
- }
-})
-```
-
-## Detecting Unicode
-
-What we actually detect is UTF-8 support, as that's what Node itself supports.
-If you have a UTF-16 locale then you won't be detected as unicode capable.
-
-### Windows
-
-Since at least Windows 7, `cmd` and `powershell` have been unicode capable,
-but unfortunately even then it's not guaranteed. In many localizations it
-still uses legacy code pages and there's no facility short of running
-programs or linking C++ that will let us detect this. As such, we
-report any Windows installation as NOT unicode capable, and recommend
-that you encourage your users to override this via config.
-
-### Unix Like Operating Systems
-
-We look at the environment variables `LC_ALL`, `LC_CTYPE`, and `LANG` in
-that order. For `LC_ALL` and `LANG`, it looks for `.UTF-8` in the value.
-For `LC_CTYPE` it looks to see if the value is `UTF-8`. This is sufficient
-for most POSIX systems. While locale data can be put in `/etc/locale.conf`
-as well, AFAIK it's always copied into the environment.
-
diff --git a/node_modules/has-unicode/index.js b/node_modules/has-unicode/index.js
deleted file mode 100644
index 9b0fe44..0000000
--- a/node_modules/has-unicode/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict"
-var os = require("os")
-
-var hasUnicode = module.exports = function () {
- // Recent Win32 platforms (>XP) CAN support unicode in the console but
- // don't have to, and in non-english locales often use traditional local
- // code pages. There's no way, short of windows system calls or execing
- // the chcp command line program to figure this out. As such, we default
- // this to false and encourage your users to override it via config if
- // appropriate.
- if (os.type() == "Windows_NT") { return false }
-
- var isUTF8 = /UTF-?8$/i
- var ctype = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG
- return isUTF8.test(ctype)
-}
diff --git a/node_modules/has-unicode/package.json b/node_modules/has-unicode/package.json
deleted file mode 100644
index 3439c1b..0000000
--- a/node_modules/has-unicode/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_from": "has-unicode@^2.0.0",
- "_id": "has-unicode@2.0.1",
- "_inBundle": false,
- "_integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
- "_location": "/has-unicode",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "has-unicode@^2.0.0",
- "name": "has-unicode",
- "escapedName": "has-unicode",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/gauge"
- ],
- "_resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "_shasum": "e0e6fe6a28cf51138855e086d1691e771de2a8b9",
- "_spec": "has-unicode@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/gauge",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org"
- },
- "bugs": {
- "url": "https://github.com/iarna/has-unicode/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Try to guess if your terminal supports unicode",
- "devDependencies": {
- "require-inject": "^1.3.0",
- "tap": "^2.3.1"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/iarna/has-unicode",
- "keywords": [
- "unicode",
- "terminal"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "has-unicode",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/has-unicode.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "2.0.1"
-}
diff --git a/node_modules/hosted-git-info/CHANGELOG.md b/node_modules/hosted-git-info/CHANGELOG.md
deleted file mode 100644
index 4f86601..0000000
--- a/node_modules/hosted-git-info/CHANGELOG.md
+++ /dev/null
@@ -1,141 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="2.8.8"></a>
-## [2.8.8](https://github.com/npm/hosted-git-info/compare/v2.8.7...v2.8.8) (2020-02-29)
-
-
-### Bug Fixes
-
-* [#61](https://github.com/npm/hosted-git-info/issues/61) & [#65](https://github.com/npm/hosted-git-info/issues/65) addressing issues w/ url.URL implmentation which regressed node 6 support ([5038b18](https://github.com/npm/hosted-git-info/commit/5038b18)), closes [#66](https://github.com/npm/hosted-git-info/issues/66)
-
-
-
-<a name="2.8.7"></a>
-## [2.8.7](https://github.com/npm/hosted-git-info/compare/v2.8.6...v2.8.7) (2020-02-26)
-
-
-### Bug Fixes
-
-* Do not attempt to use url.URL when unavailable ([2d0bb66](https://github.com/npm/hosted-git-info/commit/2d0bb66)), closes [#61](https://github.com/npm/hosted-git-info/issues/61) [#62](https://github.com/npm/hosted-git-info/issues/62)
-* Do not pass scp-style URLs to the WhatWG url.URL ([f2cdfcf](https://github.com/npm/hosted-git-info/commit/f2cdfcf)), closes [#60](https://github.com/npm/hosted-git-info/issues/60)
-
-
-
-<a name="2.8.6"></a>
-## [2.8.6](https://github.com/npm/hosted-git-info/compare/v2.8.5...v2.8.6) (2020-02-25)
-
-
-
-<a name="2.8.5"></a>
-## [2.8.5](https://github.com/npm/hosted-git-info/compare/v2.8.4...v2.8.5) (2019-10-07)
-
-
-### Bug Fixes
-
-* updated pathmatch for gitlab ([e8325b5](https://github.com/npm/hosted-git-info/commit/e8325b5)), closes [#51](https://github.com/npm/hosted-git-info/issues/51)
-* updated pathmatch for gitlab ([ffe056f](https://github.com/npm/hosted-git-info/commit/ffe056f))
-
-
-
-<a name="2.8.4"></a>
-## [2.8.4](https://github.com/npm/hosted-git-info/compare/v2.8.3...v2.8.4) (2019-08-12)
-
-
-
-<a name="2.8.3"></a>
-## [2.8.3](https://github.com/npm/hosted-git-info/compare/v2.8.2...v2.8.3) (2019-08-12)
-
-
-
-<a name="2.8.2"></a>
-## [2.8.2](https://github.com/npm/hosted-git-info/compare/v2.8.1...v2.8.2) (2019-08-05)
-
-
-### Bug Fixes
-
-* http protocol use sshurl by default ([3b1d629](https://github.com/npm/hosted-git-info/commit/3b1d629)), closes [#48](https://github.com/npm/hosted-git-info/issues/48)
-
-
-
-<a name="2.8.1"></a>
-## [2.8.1](https://github.com/npm/hosted-git-info/compare/v2.8.0...v2.8.1) (2019-08-05)
-
-
-### Bug Fixes
-
-* ignore noCommittish on tarball url generation ([5d4a8d7](https://github.com/npm/hosted-git-info/commit/5d4a8d7))
-* use gist tarball url that works for anonymous gists ([1692435](https://github.com/npm/hosted-git-info/commit/1692435))
-
-
-
-<a name="2.8.0"></a>
-# [2.8.0](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.0) (2019-08-05)
-
-
-### Bug Fixes
-
-* Allow slashes in gitlab project section ([bbcf7b2](https://github.com/npm/hosted-git-info/commit/bbcf7b2)), closes [#46](https://github.com/npm/hosted-git-info/issues/46) [#43](https://github.com/npm/hosted-git-info/issues/43)
-* **git-host:** disallow URI-encoded slash (%2F) in `path` ([3776fa5](https://github.com/npm/hosted-git-info/commit/3776fa5)), closes [#44](https://github.com/npm/hosted-git-info/issues/44)
-* **gitlab:** Do not URL encode slashes in project name for GitLab https URL ([cbf04f9](https://github.com/npm/hosted-git-info/commit/cbf04f9)), closes [#47](https://github.com/npm/hosted-git-info/issues/47)
-* do not allow invalid gist urls ([d5cf830](https://github.com/npm/hosted-git-info/commit/d5cf830))
-* **cache:** Switch to lru-cache to save ourselves from unlimited memory consumption ([e518222](https://github.com/npm/hosted-git-info/commit/e518222)), closes [#38](https://github.com/npm/hosted-git-info/issues/38)
-
-
-### Features
-
-* give these objects a name ([60abaea](https://github.com/npm/hosted-git-info/commit/60abaea))
-
-
-
-<a name="2.7.1"></a>
-## [2.7.1](https://github.com/npm/hosted-git-info/compare/v2.7.0...v2.7.1) (2018-07-07)
-
-
-### Bug Fixes
-
-* **index:** Guard against non-string types ([5bc580d](https://github.com/npm/hosted-git-info/commit/5bc580d))
-* **parse:** Crash on strings that parse to having no host ([c931482](https://github.com/npm/hosted-git-info/commit/c931482)), closes [#35](https://github.com/npm/hosted-git-info/issues/35)
-
-
-
-<a name="2.7.0"></a>
-# [2.7.0](https://github.com/npm/hosted-git-info/compare/v2.6.1...v2.7.0) (2018-07-06)
-
-
-### Bug Fixes
-
-* **github tarball:** update github tarballtemplate ([6efd582](https://github.com/npm/hosted-git-info/commit/6efd582)), closes [#34](https://github.com/npm/hosted-git-info/issues/34)
-* **gitlab docs:** switched to lowercase anchors for readmes ([701bcd1](https://github.com/npm/hosted-git-info/commit/701bcd1))
-
-
-### Features
-
-* **all:** Support www. prefixes on hostnames ([3349575](https://github.com/npm/hosted-git-info/commit/3349575)), closes [#32](https://github.com/npm/hosted-git-info/issues/32)
-
-
-
-<a name="2.6.1"></a>
-## [2.6.1](https://github.com/npm/hosted-git-info/compare/v2.6.0...v2.6.1) (2018-06-25)
-
-### Bug Fixes
-
-* **Revert:** "compat: remove Object.assign fallback ([#25](https://github.com/npm/hosted-git-info/issues/25))" ([cce5a62](https://github.com/npm/hosted-git-info/commit/cce5a62))
-* **Revert:** "git-host: fix forgotten extend()" ([a815ec9](https://github.com/npm/hosted-git-info/commit/a815ec9))
-
-
-
-<a name="2.6.0"></a>
-# [2.6.0](https://github.com/npm/hosted-git-info/compare/v2.5.0...v2.6.0) (2018-03-07)
-
-
-### Bug Fixes
-
-* **compat:** remove Object.assign fallback ([#25](https://github.com/npm/hosted-git-info/issues/25)) ([627ab55](https://github.com/npm/hosted-git-info/commit/627ab55))
-* **git-host:** fix forgotten extend() ([eba1f7b](https://github.com/npm/hosted-git-info/commit/eba1f7b))
-
-
-### Features
-
-* **browse:** fragment support for browse() ([#28](https://github.com/npm/hosted-git-info/issues/28)) ([cd5e5bb](https://github.com/npm/hosted-git-info/commit/cd5e5bb))
diff --git a/node_modules/hosted-git-info/LICENSE b/node_modules/hosted-git-info/LICENSE
deleted file mode 100644
index 4505576..0000000
--- a/node_modules/hosted-git-info/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2015, Rebecca Turner
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/hosted-git-info/README.md b/node_modules/hosted-git-info/README.md
deleted file mode 100644
index 7b723f6..0000000
--- a/node_modules/hosted-git-info/README.md
+++ /dev/null
@@ -1,133 +0,0 @@
-# hosted-git-info
-
-This will let you identify and transform various git hosts URLs between
-protocols. It also can tell you what the URL is for the raw path for
-particular file for direct access without git.
-
-## Example
-
-```javascript
-var hostedGitInfo = require("hosted-git-info")
-var info = hostedGitInfo.fromUrl("git@github.com:npm/hosted-git-info.git", opts)
-/* info looks like:
-{
- type: "github",
- domain: "github.com",
- user: "npm",
- project: "hosted-git-info"
-}
-*/
-```
-
-If the URL can't be matched with a git host, `null` will be returned. We
-can match git, ssh and https urls. Additionally, we can match ssh connect
-strings (`git@github.com:npm/hosted-git-info`) and shortcuts (eg,
-`github:npm/hosted-git-info`). Github specifically, is detected in the case
-of a third, unprefixed, form: `npm/hosted-git-info`.
-
-If it does match, the returned object has properties of:
-
-* info.type -- The short name of the service
-* info.domain -- The domain for git protocol use
-* info.user -- The name of the user/org on the git host
-* info.project -- The name of the project on the git host
-
-## Version Contract
-
-The major version will be bumped any time…
-
-* The constructor stops accepting URLs that it previously accepted.
-* A method is removed.
-* A method can no longer accept the number and type of arguments it previously accepted.
-* A method can return a different type than it currently returns.
-
-Implications:
-
-* I do not consider the specific format of the urls returned from, say
- `.https()` to be a part of the contract. The contract is that it will
- return a string that can be used to fetch the repo via HTTPS. But what
- that string looks like, specifically, can change.
-* Dropping support for a hosted git provider would constitute a breaking
- change.
-
-## Usage
-
-### var info = hostedGitInfo.fromUrl(gitSpecifier[, options])
-
-* *gitSpecifer* is a URL of a git repository or a SCP-style specifier of one.
-* *options* is an optional object. It can have the following properties:
- * *noCommittish* — If true then committishes won't be included in generated URLs.
- * *noGitPlus* — If true then `git+` won't be prefixed on URLs.
-
-## Methods
-
-All of the methods take the same options as the `fromUrl` factory. Options
-provided to a method override those provided to the constructor.
-
-* info.file(path, opts)
-
-Given the path of a file relative to the repository, returns a URL for
-directly fetching it from the githost. If no committish was set then
-`master` will be used as the default.
-
-For example `hostedGitInfo.fromUrl("git@github.com:npm/hosted-git-info.git#v1.0.0").file("package.json")`
-would return `https://raw.githubusercontent.com/npm/hosted-git-info/v1.0.0/package.json`
-
-* info.shortcut(opts)
-
-eg, `github:npm/hosted-git-info`
-
-* info.browse(path, fragment, opts)
-
-eg, `https://github.com/npm/hosted-git-info/tree/v1.2.0`,
-`https://github.com/npm/hosted-git-info/tree/v1.2.0/package.json`,
-`https://github.com/npm/hosted-git-info/tree/v1.2.0/REAMDE.md#supported-hosts`
-
-* info.bugs(opts)
-
-eg, `https://github.com/npm/hosted-git-info/issues`
-
-* info.docs(opts)
-
-eg, `https://github.com/npm/hosted-git-info/tree/v1.2.0#readme`
-
-* info.https(opts)
-
-eg, `git+https://github.com/npm/hosted-git-info.git`
-
-* info.sshurl(opts)
-
-eg, `git+ssh://git@github.com/npm/hosted-git-info.git`
-
-* info.ssh(opts)
-
-eg, `git@github.com:npm/hosted-git-info.git`
-
-* info.path(opts)
-
-eg, `npm/hosted-git-info`
-
-* info.tarball(opts)
-
-eg, `https://github.com/npm/hosted-git-info/archive/v1.2.0.tar.gz`
-
-* info.getDefaultRepresentation()
-
-Returns the default output type. The default output type is based on the
-string you passed in to be parsed
-
-* info.toString(opts)
-
-Uses the getDefaultRepresentation to call one of the other methods to get a URL for
-this resource. As such `hostedGitInfo.fromUrl(url).toString()` will give
-you a normalized version of the URL that still uses the same protocol.
-
-Shortcuts will still be returned as shortcuts, but the special case github
-form of `org/project` will be normalized to `github:org/project`.
-
-SSH connect strings will be normalized into `git+ssh` URLs.
-
-## Supported hosts
-
-Currently this supports Github, Bitbucket and Gitlab. Pull requests for
-additional hosts welcome.
diff --git a/node_modules/hosted-git-info/git-host-info.js b/node_modules/hosted-git-info/git-host-info.js
deleted file mode 100644
index 8147e33..0000000
--- a/node_modules/hosted-git-info/git-host-info.js
+++ /dev/null
@@ -1,79 +0,0 @@
-'use strict'
-
-var gitHosts = module.exports = {
- github: {
- // First two are insecure and generally shouldn't be used any more, but
- // they are still supported.
- 'protocols': [ 'git', 'http', 'git+ssh', 'git+https', 'ssh', 'https' ],
- 'domain': 'github.com',
- 'treepath': 'tree',
- 'filetemplate': 'https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}',
- 'bugstemplate': 'https://{domain}/{user}/{project}/issues',
- 'gittemplate': 'git://{auth@}{domain}/{user}/{project}.git{#committish}',
- 'tarballtemplate': 'https://codeload.{domain}/{user}/{project}/tar.gz/{committish}'
- },
- bitbucket: {
- 'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ],
- 'domain': 'bitbucket.org',
- 'treepath': 'src',
- 'tarballtemplate': 'https://{domain}/{user}/{project}/get/{committish}.tar.gz'
- },
- gitlab: {
- 'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ],
- 'domain': 'gitlab.com',
- 'treepath': 'tree',
- 'bugstemplate': 'https://{domain}/{user}/{project}/issues',
- 'httpstemplate': 'git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}',
- 'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}',
- 'pathmatch': /^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/
- },
- gist: {
- 'protocols': [ 'git', 'git+ssh', 'git+https', 'ssh', 'https' ],
- 'domain': 'gist.github.com',
- 'pathmatch': /^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/,
- 'filetemplate': 'https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}',
- 'bugstemplate': 'https://{domain}/{project}',
- 'gittemplate': 'git://{domain}/{project}.git{#committish}',
- 'sshtemplate': 'git@{domain}:/{project}.git{#committish}',
- 'sshurltemplate': 'git+ssh://git@{domain}/{project}.git{#committish}',
- 'browsetemplate': 'https://{domain}/{project}{/committish}',
- 'browsefiletemplate': 'https://{domain}/{project}{/committish}{#path}',
- 'docstemplate': 'https://{domain}/{project}{/committish}',
- 'httpstemplate': 'git+https://{domain}/{project}.git{#committish}',
- 'shortcuttemplate': '{type}:{project}{#committish}',
- 'pathtemplate': '{project}{#committish}',
- 'tarballtemplate': 'https://codeload.github.com/gist/{project}/tar.gz/{committish}',
- 'hashformat': function (fragment) {
- return 'file-' + formatHashFragment(fragment)
- }
- }
-}
-
-var gitHostDefaults = {
- 'sshtemplate': 'git@{domain}:{user}/{project}.git{#committish}',
- 'sshurltemplate': 'git+ssh://git@{domain}/{user}/{project}.git{#committish}',
- 'browsetemplate': 'https://{domain}/{user}/{project}{/tree/committish}',
- 'browsefiletemplate': 'https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}',
- 'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#readme',
- 'httpstemplate': 'git+https://{auth@}{domain}/{user}/{project}.git{#committish}',
- 'filetemplate': 'https://{domain}/{user}/{project}/raw/{committish}/{path}',
- 'shortcuttemplate': '{type}:{user}/{project}{#committish}',
- 'pathtemplate': '{user}/{project}{#committish}',
- 'pathmatch': /^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,
- 'hashformat': formatHashFragment
-}
-
-Object.keys(gitHosts).forEach(function (name) {
- Object.keys(gitHostDefaults).forEach(function (key) {
- if (gitHosts[name][key]) return
- gitHosts[name][key] = gitHostDefaults[key]
- })
- gitHosts[name].protocols_re = RegExp('^(' +
- gitHosts[name].protocols.map(function (protocol) {
- return protocol.replace(/([\\+*{}()[\]$^|])/g, '\\$1')
- }).join('|') + '):$')
-})
-
-function formatHashFragment (fragment) {
- return fragment.toLowerCase().replace(/^\W+|\/|\W+$/g, '').replace(/\W+/g, '-')
-}
diff --git a/node_modules/hosted-git-info/git-host.js b/node_modules/hosted-git-info/git-host.js
deleted file mode 100644
index 9616fba..0000000
--- a/node_modules/hosted-git-info/git-host.js
+++ /dev/null
@@ -1,156 +0,0 @@
-'use strict'
-var gitHosts = require('./git-host-info.js')
-/* eslint-disable node/no-deprecated-api */
-
-// copy-pasta util._extend from node's source, to avoid pulling
-// the whole util module into peoples' webpack bundles.
-/* istanbul ignore next */
-var extend = Object.assign || function _extend (target, source) {
- // Don't do anything if source isn't an object
- if (source === null || typeof source !== 'object') return target
-
- var keys = Object.keys(source)
- var i = keys.length
- while (i--) {
- target[keys[i]] = source[keys[i]]
- }
- return target
-}
-
-module.exports = GitHost
-function GitHost (type, user, auth, project, committish, defaultRepresentation, opts) {
- var gitHostInfo = this
- gitHostInfo.type = type
- Object.keys(gitHosts[type]).forEach(function (key) {
- gitHostInfo[key] = gitHosts[type][key]
- })
- gitHostInfo.user = user
- gitHostInfo.auth = auth
- gitHostInfo.project = project
- gitHostInfo.committish = committish
- gitHostInfo.default = defaultRepresentation
- gitHostInfo.opts = opts || {}
-}
-
-GitHost.prototype.hash = function () {
- return this.committish ? '#' + this.committish : ''
-}
-
-GitHost.prototype._fill = function (template, opts) {
- if (!template) return
- var vars = extend({}, opts)
- vars.path = vars.path ? vars.path.replace(/^[/]+/g, '') : ''
- opts = extend(extend({}, this.opts), opts)
- var self = this
- Object.keys(this).forEach(function (key) {
- if (self[key] != null && vars[key] == null) vars[key] = self[key]
- })
- var rawAuth = vars.auth
- var rawcommittish = vars.committish
- var rawFragment = vars.fragment
- var rawPath = vars.path
- var rawProject = vars.project
- Object.keys(vars).forEach(function (key) {
- var value = vars[key]
- if ((key === 'path' || key === 'project') && typeof value === 'string') {
- vars[key] = value.split('/').map(function (pathComponent) {
- return encodeURIComponent(pathComponent)
- }).join('/')
- } else {
- vars[key] = encodeURIComponent(value)
- }
- })
- vars['auth@'] = rawAuth ? rawAuth + '@' : ''
- vars['#fragment'] = rawFragment ? '#' + this.hashformat(rawFragment) : ''
- vars.fragment = vars.fragment ? vars.fragment : ''
- vars['#path'] = rawPath ? '#' + this.hashformat(rawPath) : ''
- vars['/path'] = vars.path ? '/' + vars.path : ''
- vars.projectPath = rawProject.split('/').map(encodeURIComponent).join('/')
- if (opts.noCommittish) {
- vars['#committish'] = ''
- vars['/tree/committish'] = ''
- vars['/committish'] = ''
- vars.committish = ''
- } else {
- vars['#committish'] = rawcommittish ? '#' + rawcommittish : ''
- vars['/tree/committish'] = vars.committish
- ? '/' + vars.treepath + '/' + vars.committish
- : ''
- vars['/committish'] = vars.committish ? '/' + vars.committish : ''
- vars.committish = vars.committish || 'master'
- }
- var res = template
- Object.keys(vars).forEach(function (key) {
- res = res.replace(new RegExp('[{]' + key + '[}]', 'g'), vars[key])
- })
- if (opts.noGitPlus) {
- return res.replace(/^git[+]/, '')
- } else {
- return res
- }
-}
-
-GitHost.prototype.ssh = function (opts) {
- return this._fill(this.sshtemplate, opts)
-}
-
-GitHost.prototype.sshurl = function (opts) {
- return this._fill(this.sshurltemplate, opts)
-}
-
-GitHost.prototype.browse = function (P, F, opts) {
- if (typeof P === 'string') {
- if (typeof F !== 'string') {
- opts = F
- F = null
- }
- return this._fill(this.browsefiletemplate, extend({
- fragment: F,
- path: P
- }, opts))
- } else {
- return this._fill(this.browsetemplate, P)
- }
-}
-
-GitHost.prototype.docs = function (opts) {
- return this._fill(this.docstemplate, opts)
-}
-
-GitHost.prototype.bugs = function (opts) {
- return this._fill(this.bugstemplate, opts)
-}
-
-GitHost.prototype.https = function (opts) {
- return this._fill(this.httpstemplate, opts)
-}
-
-GitHost.prototype.git = function (opts) {
- return this._fill(this.gittemplate, opts)
-}
-
-GitHost.prototype.shortcut = function (opts) {
- return this._fill(this.shortcuttemplate, opts)
-}
-
-GitHost.prototype.path = function (opts) {
- return this._fill(this.pathtemplate, opts)
-}
-
-GitHost.prototype.tarball = function (opts_) {
- var opts = extend({}, opts_, { noCommittish: false })
- return this._fill(this.tarballtemplate, opts)
-}
-
-GitHost.prototype.file = function (P, opts) {
- return this._fill(this.filetemplate, extend({ path: P }, opts))
-}
-
-GitHost.prototype.getDefaultRepresentation = function () {
- return this.default
-}
-
-GitHost.prototype.toString = function (opts) {
- if (this.default && typeof this[this.default] === 'function') return this[this.default](opts)
- return this.sshurl(opts)
-}
diff --git a/node_modules/hosted-git-info/index.js b/node_modules/hosted-git-info/index.js
deleted file mode 100644
index 21e53fe..0000000
--- a/node_modules/hosted-git-info/index.js
+++ /dev/null
@@ -1,148 +0,0 @@
-'use strict'
-var url = require('url')
-var gitHosts = require('./git-host-info.js')
-var GitHost = module.exports = require('./git-host.js')
-
-var protocolToRepresentationMap = {
- 'git+ssh:': 'sshurl',
- 'git+https:': 'https',
- 'ssh:': 'sshurl',
- 'git:': 'git'
-}
-
-function protocolToRepresentation (protocol) {
- return protocolToRepresentationMap[protocol] || protocol.slice(0, -1)
-}
-
-var authProtocols = {
- 'git:': true,
- 'https:': true,
- 'git+https:': true,
- 'http:': true,
- 'git+http:': true
-}
-
-var cache = {}
-
-module.exports.fromUrl = function (giturl, opts) {
- if (typeof giturl !== 'string') return
- var key = giturl + JSON.stringify(opts || {})
-
- if (!(key in cache)) {
- cache[key] = fromUrl(giturl, opts)
- }
-
- return cache[key]
-}
-
-function fromUrl (giturl, opts) {
- if (giturl == null || giturl === '') return
- var url = fixupUnqualifiedGist(
- isGitHubShorthand(giturl) ? 'github:' + giturl : giturl
- )
- var parsed = parseGitUrl(url)
- var shortcutMatch = url.match(new RegExp('^([^:]+):(?:(?:[^@:]+(?:[^@]+)?@)?([^/]*))[/](.+?)(?:[.]git)?($|#)'))
- var matches = Object.keys(gitHosts).map(function (gitHostName) {
- try {
- var gitHostInfo = gitHosts[gitHostName]
- var auth = null
- if (parsed.auth && authProtocols[parsed.protocol]) {
- auth = parsed.auth
- }
- var committish = parsed.hash ? decodeURIComponent(parsed.hash.substr(1)) : null
- var user = null
- var project = null
- var defaultRepresentation = null
- if (shortcutMatch && shortcutMatch[1] === gitHostName) {
- user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2])
- project = decodeURIComponent(shortcutMatch[3])
- defaultRepresentation = 'shortcut'
- } else {
- if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, '') !== gitHostInfo.domain) return
- if (!gitHostInfo.protocols_re.test(parsed.protocol)) return
- if (!parsed.path) return
- var pathmatch = gitHostInfo.pathmatch
- var matched = parsed.path.match(pathmatch)
- if (!matched) return
- /* istanbul ignore else */
- if (matched[1] !== null && matched[1] !== undefined) {
- user = decodeURIComponent(matched[1].replace(/^:/, ''))
- }
- project = decodeURIComponent(matched[2])
- defaultRepresentation = protocolToRepresentation(parsed.protocol)
- }
- return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts)
- } catch (ex) {
- /* istanbul ignore else */
- if (ex instanceof URIError) {
- } else throw ex
- }
- }).filter(function (gitHostInfo) { return gitHostInfo })
- if (matches.length !== 1) return
- return matches[0]
-}
-
-function isGitHubShorthand (arg) {
- // Note: This does not fully test the git ref format.
- // See https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
- //
- // The only way to do this properly would be to shell out to
- // git-check-ref-format, and as this is a fast sync function,
- // we don't want to do that. Just let git fail if it turns
- // out that the commit-ish is invalid.
- // GH usernames cannot start with . or -
- return /^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(arg)
-}
-
-function fixupUnqualifiedGist (giturl) {
- // necessary for round-tripping gists
- var parsed = url.parse(giturl)
- if (parsed.protocol === 'gist:' && parsed.host && !parsed.path) {
- return parsed.protocol + '/' + parsed.host
- } else {
- return giturl
- }
-}
-
-function parseGitUrl (giturl) {
- var matched = giturl.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/)
- if (!matched) {
- var legacy = url.parse(giturl)
- // If we don't have url.URL, then sorry, this is just not fixable.
- // This affects Node <= 6.12.
- if (legacy.auth && typeof url.URL === 'function') {
- // git urls can be in the form of scp-style/ssh-connect strings, like
- // git+ssh://user@host.com:some/path, which the legacy url parser
- // supports, but WhatWG url.URL class does not. However, the legacy
- // parser de-urlencodes the username and password, so something like
- // https://user%3An%40me:p%40ss%3Aword@x.com/ becomes
- // https://user:n@me:p@ss:word@x.com/ which is all kinds of wrong.
- // Pull off just the auth and host, so we dont' get the confusing
- // scp-style URL, then pass that to the WhatWG parser to get the
- // auth properly escaped.
- var authmatch = giturl.match(/[^@]+@[^:/]+/)
- /* istanbul ignore else - this should be impossible */
- if (authmatch) {
- var whatwg = new url.URL(authmatch[0])
- legacy.auth = whatwg.username || ''
- if (whatwg.password) legacy.auth += ':' + whatwg.password
- }
- }
- return legacy
- }
- return {
- protocol: 'git+ssh:',
- slashes: true,
- auth: matched[1],
- host: matched[2],
- port: null,
- hostname: matched[2],
- hash: matched[4],
- search: null,
- query: null,
- pathname: '/' + matched[3],
- path: '/' + matched[3],
- href: 'git+ssh://' + matched[1] + '@' + matched[2] +
- '/' + matched[3] + (matched[4] || '')
- }
-}
diff --git a/node_modules/hosted-git-info/package.json b/node_modules/hosted-git-info/package.json
deleted file mode 100644
index f7bd38e..0000000
--- a/node_modules/hosted-git-info/package.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "_from": "hosted-git-info@^2.1.4",
- "_id": "hosted-git-info@2.8.8",
- "_inBundle": false,
- "_integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
- "_location": "/hosted-git-info",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "hosted-git-info@^2.1.4",
- "name": "hosted-git-info",
- "escapedName": "hosted-git-info",
- "rawSpec": "^2.1.4",
- "saveSpec": null,
- "fetchSpec": "^2.1.4"
- },
- "_requiredBy": [
- "/normalize-package-data"
- ],
- "_resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
- "_shasum": "7539bd4bc1e0e0a895815a2e0262420b12858488",
- "_spec": "hosted-git-info@^2.1.4",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/normalize-package-data",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org",
- "url": "http://re-becca.org"
- },
- "bugs": {
- "url": "https://github.com/npm/hosted-git-info/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab",
- "devDependencies": {
- "standard": "^11.0.1",
- "standard-version": "^4.4.0",
- "tap": "^12.7.0"
- },
- "files": [
- "index.js",
- "git-host.js",
- "git-host-info.js"
- ],
- "homepage": "https://github.com/npm/hosted-git-info",
- "keywords": [
- "git",
- "github",
- "bitbucket",
- "gitlab"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "hosted-git-info",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/hosted-git-info.git"
- },
- "scripts": {
- "postrelease": "npm publish --tag=ancient-legacy-fixes && git push --follow-tags",
- "posttest": "standard",
- "prerelease": "npm t",
- "release": "standard-version -s",
- "test": "tap -J --coverage=90 --no-esm test/*.js",
- "test:coverage": "tap --coverage-report=html -J --coverage=90 --no-esm test/*.js"
- },
- "version": "2.8.8"
-}
diff --git a/node_modules/http-signature/.dir-locals.el b/node_modules/http-signature/.dir-locals.el
deleted file mode 100644
index 3bc9235..0000000
--- a/node_modules/http-signature/.dir-locals.el
+++ /dev/null
@@ -1,6 +0,0 @@
-((nil . ((indent-tabs-mode . nil)
- (tab-width . 8)
- (fill-column . 80)))
- (js-mode . ((js-indent-level . 2)
- (indent-tabs-mode . nil)
- ))) \ No newline at end of file
diff --git a/node_modules/http-signature/.npmignore b/node_modules/http-signature/.npmignore
deleted file mode 100644
index c143fb3..0000000
--- a/node_modules/http-signature/.npmignore
+++ /dev/null
@@ -1,7 +0,0 @@
-.gitmodules
-deps
-docs
-Makefile
-node_modules
-test
-tools \ No newline at end of file
diff --git a/node_modules/http-signature/CHANGES.md b/node_modules/http-signature/CHANGES.md
deleted file mode 100644
index 6f69444..0000000
--- a/node_modules/http-signature/CHANGES.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# node-http-signature changelog
-
-## 1.1.1
-
-- Version of dependency `assert-plus` updated: old version was missing
- some license information
-- Corrected examples in `http_signing.md`, added auto-tests to
- automatically validate these examples
-
-## 1.1.0
-
-- Bump version of `sshpk` dependency, remove peerDependency on it since
- it now supports exchanging objects between multiple versions of itself
- where possible
-
-## 1.0.2
-
-- Bump min version of `jsprim` dependency, to include fixes for using
- http-signature with `browserify`
-
-## 1.0.1
-
-- Bump minimum version of `sshpk` dependency, to include fixes for
- whitespace tolerance in key parsing.
-
-## 1.0.0
-
-- First semver release.
-- #36: Ensure verifySignature does not leak useful timing information
-- #42: Bring the library up to the latest version of the spec (including the
- request-target changes)
-- Support for ECDSA keys and signatures.
-- Now uses `sshpk` for key parsing, validation and conversion.
-- Fixes for #21, #47, #39 and compatibility with node 0.8
-
-## 0.11.0
-
-- Split up HMAC and Signature verification to avoid vulnerabilities where a
- key intended for use with one can be validated against the other method
- instead.
-
-## 0.10.2
-
-- Updated versions of most dependencies.
-- Utility functions exported for PEM => SSH-RSA conversion.
-- Improvements to tests and examples.
diff --git a/node_modules/http-signature/LICENSE b/node_modules/http-signature/LICENSE
deleted file mode 100644
index f6d947d..0000000
--- a/node_modules/http-signature/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-Copyright Joyent, Inc. All rights reserved.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
diff --git a/node_modules/http-signature/README.md b/node_modules/http-signature/README.md
deleted file mode 100644
index de487d3..0000000
--- a/node_modules/http-signature/README.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# node-http-signature
-
-node-http-signature is a node.js library that has client and server components
-for Joyent's [HTTP Signature Scheme](http_signing.md).
-
-## Usage
-
-Note the example below signs a request with the same key/cert used to start an
-HTTP server. This is almost certainly not what you actually want, but is just
-used to illustrate the API calls; you will need to provide your own key
-management in addition to this library.
-
-### Client
-
-```js
-var fs = require('fs');
-var https = require('https');
-var httpSignature = require('http-signature');
-
-var key = fs.readFileSync('./key.pem', 'ascii');
-
-var options = {
- host: 'localhost',
- port: 8443,
- path: '/',
- method: 'GET',
- headers: {}
-};
-
-// Adds a 'Date' header in, signs it, and adds the
-// 'Authorization' header in.
-var req = https.request(options, function(res) {
- console.log(res.statusCode);
-});
-
-
-httpSignature.sign(req, {
- key: key,
- keyId: './cert.pem'
-});
-
-req.end();
-```
-
-### Server
-
-```js
-var fs = require('fs');
-var https = require('https');
-var httpSignature = require('http-signature');
-
-var options = {
- key: fs.readFileSync('./key.pem'),
- cert: fs.readFileSync('./cert.pem')
-};
-
-https.createServer(options, function (req, res) {
- var rc = 200;
- var parsed = httpSignature.parseRequest(req);
- var pub = fs.readFileSync(parsed.keyId, 'ascii');
- if (!httpSignature.verifySignature(parsed, pub))
- rc = 401;
-
- res.writeHead(rc);
- res.end();
-}).listen(8443);
-```
-
-## Installation
-
- npm install http-signature
-
-## License
-
-MIT.
-
-## Bugs
-
-See <https://github.com/joyent/node-http-signature/issues>.
diff --git a/node_modules/http-signature/http_signing.md b/node_modules/http-signature/http_signing.md
deleted file mode 100644
index 4f24d28..0000000
--- a/node_modules/http-signature/http_signing.md
+++ /dev/null
@@ -1,363 +0,0 @@
-# Abstract
-
-This document describes a way to add origin authentication, message integrity,
-and replay resistance to HTTP REST requests. It is intended to be used over
-the HTTPS protocol.
-
-# Copyright Notice
-
-Copyright (c) 2011 Joyent, Inc. and the persons identified as document authors.
-All rights reserved.
-
-Code Components extracted from this document must include MIT License text.
-
-# Introduction
-
-This protocol is intended to provide a standard way for clients to sign HTTP
-requests. RFC2617 (HTTP Authentication) defines Basic and Digest authentication
-mechanisms, and RFC5246 (TLS 1.2) defines client-auth, both of which are widely
-employed on the Internet today. However, it is common place that the burdens of
-PKI prevent web service operators from deploying that methodology, and so many
-fall back to Basic authentication, which has poor security characteristics.
-
-Additionally, OAuth provides a fully-specified alternative for authorization
-of web service requests, but is not (always) ideal for machine to machine
-communication, as the key acquisition steps (generally) imply a fixed
-infrastructure that may not make sense to a service provider (e.g., symmetric
-keys).
-
-Several web service providers have invented their own schemes for signing
-HTTP requests, but to date, none have been placed in the public domain as a
-standard. This document serves that purpose. There are no techniques in this
-proposal that are novel beyond previous art, however, this aims to be a simple
-mechanism for signing these requests.
-
-# Signature Authentication Scheme
-
-The "signature" authentication scheme is based on the model that the client must
-authenticate itself with a digital signature produced by either a private
-asymmetric key (e.g., RSA) or a shared symmetric key (e.g., HMAC). The scheme
-is parameterized enough such that it is not bound to any particular key type or
-signing algorithm. However, it does explicitly assume that clients can send an
-HTTP `Date` header.
-
-## Authorization Header
-
-The client is expected to send an Authorization header (as defined in RFC 2617)
-with the following parameterization:
-
- credentials := "Signature" params
- params := 1#(keyId | algorithm | [headers] | [ext] | signature)
- digitalSignature := plain-string
-
- keyId := "keyId" "=" <"> plain-string <">
- algorithm := "algorithm" "=" <"> plain-string <">
- headers := "headers" "=" <"> 1#headers-value <">
- ext := "ext" "=" <"> plain-string <">
- signature := "signature" "=" <"> plain-string <">
-
- headers-value := plain-string
- plain-string = 1*( %x20-21 / %x23-5B / %x5D-7E )
-
-### Signature Parameters
-
-#### keyId
-
-REQUIRED. The `keyId` field is an opaque string that the server can use to look
-up the component they need to validate the signature. It could be an SSH key
-fingerprint, an LDAP DN, etc. Management of keys and assignment of `keyId` is
-out of scope for this document.
-
-#### algorithm
-
-REQUIRED. The `algorithm` parameter is used if the client and server agree on a
-non-standard digital signature algorithm. The full list of supported signature
-mechanisms is listed below.
-
-#### headers
-
-OPTIONAL. The `headers` parameter is used to specify the list of HTTP headers
-used to sign the request. If specified, it should be a quoted list of HTTP
-header names, separated by a single space character. By default, only one
-HTTP header is signed, which is the `Date` header. Note that the list MUST be
-specified in the order the values are concatenated together during signing. To
-include the HTTP request line in the signature calculation, use the special
-`request-line` value. While this is overloading the definition of `headers` in
-HTTP linguism, the request-line is defined in RFC 2616, and as the outlier from
-headers in useful signature calculation, it is deemed simpler to simply use
-`request-line` than to add a separate parameter for it.
-
-#### extensions
-
-OPTIONAL. The `extensions` parameter is used to include additional information
-which is covered by the request. The content and format of the string is out of
-scope for this document, and expected to be specified by implementors.
-
-#### signature
-
-REQUIRED. The `signature` parameter is a `Base64` encoded digital signature
-generated by the client. The client uses the `algorithm` and `headers` request
-parameters to form a canonicalized `signing string`. This `signing string` is
-then signed with the key associated with `keyId` and the algorithm
-corresponding to `algorithm`. The `signature` parameter is then set to the
-`Base64` encoding of the signature.
-
-### Signing String Composition
-
-In order to generate the string that is signed with a key, the client MUST take
-the values of each HTTP header specified by `headers` in the order they appear.
-
-1. If the header name is not `request-line` then append the lowercased header
- name followed with an ASCII colon `:` and an ASCII space ` `.
-2. If the header name is `request-line` then append the HTTP request line,
- otherwise append the header value.
-3. If value is not the last value then append an ASCII newline `\n`. The string
- MUST NOT include a trailing ASCII newline.
-
-# Example Requests
-
-All requests refer to the following request (body omitted):
-
- POST /foo HTTP/1.1
- Host: example.org
- Date: Tue, 07 Jun 2014 20:51:35 GMT
- Content-Type: application/json
- Digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=
- Content-Length: 18
-
-The "rsa-key-1" keyId refers to a private key known to the client and a public
-key known to the server. The "hmac-key-1" keyId refers to key known to the
-client and server.
-
-## Default parameterization
-
-The authorization header and signature would be generated as:
-
- Authorization: Signature keyId="rsa-key-1",algorithm="rsa-sha256",signature="Base64(RSA-SHA256(signing string))"
-
-The client would compose the signing string as:
-
- date: Tue, 07 Jun 2014 20:51:35 GMT
-
-## Header List
-
-The authorization header and signature would be generated as:
-
- Authorization: Signature keyId="rsa-key-1",algorithm="rsa-sha256",headers="(request-target) date content-type digest",signature="Base64(RSA-SHA256(signing string))"
-
-The client would compose the signing string as (`+ "\n"` inserted for
-readability):
-
- (request-target) post /foo + "\n"
- date: Tue, 07 Jun 2011 20:51:35 GMT + "\n"
- content-type: application/json + "\n"
- digest: SHA-256=Base64(SHA256(Body))
-
-## Algorithm
-
-The authorization header and signature would be generated as:
-
- Authorization: Signature keyId="hmac-key-1",algorithm="hmac-sha1",signature="Base64(HMAC-SHA1(signing string))"
-
-The client would compose the signing string as:
-
- date: Tue, 07 Jun 2011 20:51:35 GMT
-
-# Signing Algorithms
-
-Currently supported algorithm names are:
-
-* rsa-sha1
-* rsa-sha256
-* rsa-sha512
-* dsa-sha1
-* hmac-sha1
-* hmac-sha256
-* hmac-sha512
-
-# Security Considerations
-
-## Default Parameters
-
-Note the default parameterization of the `Signature` scheme is only safe if all
-requests are carried over a secure transport (i.e., TLS). Sending the default
-scheme over a non-secure transport will leave the request vulnerable to
-spoofing, tampering, replay/repudiation, and integrity violations (if using the
-STRIDE threat-modeling methodology).
-
-## Insecure Transports
-
-If sending the request over plain HTTP, service providers SHOULD require clients
-to sign ALL HTTP headers, and the `request-line`. Additionally, service
-providers SHOULD require `Content-MD5` calculations to be performed to ensure
-against any tampering from clients.
-
-## Nonces
-
-Nonces are out of scope for this document simply because many service providers
-fail to implement them correctly, or do not adopt security specifications
-because of the infrastructure complexity. Given the `header` parameterization,
-a service provider is fully enabled to add nonce semantics into this scheme by
-using something like an `x-request-nonce` header, and ensuring it is signed
-with the `Date` header.
-
-## Clock Skew
-
-As the default scheme is to sign the `Date` header, service providers SHOULD
-protect against logged replay attacks by enforcing a clock skew. The server
-SHOULD be synchronized with NTP, and the recommendation in this specification
-is to allow 300s of clock skew (in either direction).
-
-## Required Headers to Sign
-
-It is out of scope for this document to dictate what headers a service provider
-will want to enforce, but service providers SHOULD at minimum include the
-`Date` header.
-
-# References
-
-## Normative References
-
-* [RFC2616] Hypertext Transfer Protocol -- HTTP/1.1
-* [RFC2617] HTTP Authentication: Basic and Digest Access Authentication
-* [RFC5246] The Transport Layer Security (TLS) Protocol Version 1.2
-
-## Informative References
-
- Name: Mark Cavage (editor)
- Company: Joyent, Inc.
- Email: mark.cavage@joyent.com
- URI: http://www.joyent.com
-
-# Appendix A - Test Values
-
-The following test data uses the RSA (1024b) keys, which we will refer
-to as `keyId=Test` in the following samples:
-
- -----BEGIN PUBLIC KEY-----
- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDCFENGw33yGihy92pDjZQhl0C3
- 6rPJj+CvfSC8+q28hxA161QFNUd13wuCTUcq0Qd2qsBe/2hFyc2DCJJg0h1L78+6
- Z4UMR7EOcpfdUE9Hf3m/hs+FUR45uBJeDK1HSFHD8bHKD6kv8FPGfJTotc+2xjJw
- oYi+1hqp1fIekaxsyQIDAQAB
- -----END PUBLIC KEY-----
-
- -----BEGIN RSA PRIVATE KEY-----
- MIICXgIBAAKBgQDCFENGw33yGihy92pDjZQhl0C36rPJj+CvfSC8+q28hxA161QF
- NUd13wuCTUcq0Qd2qsBe/2hFyc2DCJJg0h1L78+6Z4UMR7EOcpfdUE9Hf3m/hs+F
- UR45uBJeDK1HSFHD8bHKD6kv8FPGfJTotc+2xjJwoYi+1hqp1fIekaxsyQIDAQAB
- AoGBAJR8ZkCUvx5kzv+utdl7T5MnordT1TvoXXJGXK7ZZ+UuvMNUCdN2QPc4sBiA
- QWvLw1cSKt5DsKZ8UETpYPy8pPYnnDEz2dDYiaew9+xEpubyeW2oH4Zx71wqBtOK
- kqwrXa/pzdpiucRRjk6vE6YY7EBBs/g7uanVpGibOVAEsqH1AkEA7DkjVH28WDUg
- f1nqvfn2Kj6CT7nIcE3jGJsZZ7zlZmBmHFDONMLUrXR/Zm3pR5m0tCmBqa5RK95u
- 412jt1dPIwJBANJT3v8pnkth48bQo/fKel6uEYyboRtA5/uHuHkZ6FQF7OUkGogc
- mSJluOdc5t6hI1VsLn0QZEjQZMEOWr+wKSMCQQCC4kXJEsHAve77oP6HtG/IiEn7
- kpyUXRNvFsDE0czpJJBvL/aRFUJxuRK91jhjC68sA7NsKMGg5OXb5I5Jj36xAkEA
- gIT7aFOYBFwGgQAQkWNKLvySgKbAZRTeLBacpHMuQdl1DfdntvAyqpAZ0lY0RKmW
- G6aFKaqQfOXKCyWoUiVknQJAXrlgySFci/2ueKlIE1QqIiLSZ8V8OlpFLRnb1pzI
- 7U1yQXnTAEFYM560yJlzUpOb1V4cScGd365tiSMvxLOvTA==
- -----END RSA PRIVATE KEY-----
-
-And all examples use this request:
-
-<!-- httpreq -->
-
- POST /foo?param=value&pet=dog HTTP/1.1
- Host: example.com
- Date: Thu, 05 Jan 2014 21:31:40 GMT
- Content-Type: application/json
- Digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=
- Content-Length: 18
-
- {"hello": "world"}
-
-<!-- /httpreq -->
-
-### Default
-
-The string to sign would be:
-
-<!-- sign {"name": "Default", "options": {"keyId":"Test", "algorithm": "rsa-sha256"}} -->
-<!-- signstring -->
-
- date: Thu, 05 Jan 2014 21:31:40 GMT
-
-<!-- /signstring -->
-
-The Authorization header would be:
-
-<!-- authz -->
-
- Authorization: Signature keyId="Test",algorithm="rsa-sha256",headers="date",signature="jKyvPcxB4JbmYY4mByyBY7cZfNl4OW9HpFQlG7N4YcJPteKTu4MWCLyk+gIr0wDgqtLWf9NLpMAMimdfsH7FSWGfbMFSrsVTHNTk0rK3usrfFnti1dxsM4jl0kYJCKTGI/UWkqiaxwNiKqGcdlEDrTcUhhsFsOIo8VhddmZTZ8w="
-
-<!-- /authz -->
-
-### All Headers
-
-Parameterized to include all headers, the string to sign would be (`+ "\n"`
-inserted for readability):
-
-<!-- sign {"name": "All Headers", "options": {"keyId":"Test", "algorithm": "rsa-sha256", "headers": ["(request-target)", "host", "date", "content-type", "digest", "content-length"]}} -->
-<!-- signstring -->
-
- (request-target): post /foo?param=value&pet=dog
- host: example.com
- date: Thu, 05 Jan 2014 21:31:40 GMT
- content-type: application/json
- digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=
- content-length: 18
-
-<!-- /signstring -->
-
-The Authorization header would be:
-
-<!-- authz -->
-
- Authorization: Signature keyId="Test",algorithm="rsa-sha256",headers="(request-target) host date content-type digest content-length",signature="Ef7MlxLXoBovhil3AlyjtBwAL9g4TN3tibLj7uuNB3CROat/9KaeQ4hW2NiJ+pZ6HQEOx9vYZAyi+7cmIkmJszJCut5kQLAwuX+Ms/mUFvpKlSo9StS2bMXDBNjOh4Auj774GFj4gwjS+3NhFeoqyr/MuN6HsEnkvn6zdgfE2i0="
-
-<!-- /authz -->
-
-## Generating and verifying signatures using `openssl`
-
-The `openssl` commandline tool can be used to generate or verify the signatures listed above.
-
-Compose the signing string as usual, and pipe it into the the `openssl dgst` command, then into `openssl enc -base64`, as follows:
-
- $ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
- openssl dgst -binary -sign /path/to/private.pem -sha256 | \
- openssl enc -base64
- jKyvPcxB4JbmYY4mByyBY7cZfNl4OW9Hp...
- $
-
-The `-sha256` option is necessary to produce an `rsa-sha256` signature. You can select other hash algorithms such as `sha1` by changing this argument.
-
-To verify a signature, first save the signature data, Base64-decoded, into a file, then use `openssl dgst` again with the `-verify` option:
-
- $ echo 'jKyvPcxB4JbmYY4mByy...' | openssl enc -A -d -base64 > signature
- $ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
- openssl dgst -sha256 -verify /path/to/public.pem -signature ./signature
- Verified OK
- $
-
-## Generating and verifying signatures using `sshpk-sign`
-
-You can also generate and check signatures using the `sshpk-sign` tool which is
-included with the `sshpk` package in `npm`.
-
-Compose the signing string as above, and pipe it into `sshpk-sign` as follows:
-
- $ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
- sshpk-sign -i /path/to/private.pem
- jKyvPcxB4JbmYY4mByyBY7cZfNl4OW9Hp...
- $
-
-This will produce an `rsa-sha256` signature by default, as you can see using
-the `-v` option:
-
- sshpk-sign: using rsa-sha256 with a 1024 bit key
-
-You can also use `sshpk-verify` in a similar manner:
-
- $ printf 'date: Thu, 05 Jan 2014 21:31:40 GMT' | \
- sshpk-verify -i ./public.pem -s 'jKyvPcxB4JbmYY...'
- OK
- $
diff --git a/node_modules/http-signature/lib/index.js b/node_modules/http-signature/lib/index.js
deleted file mode 100644
index 54d4603..0000000
--- a/node_modules/http-signature/lib/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-var parser = require('./parser');
-var signer = require('./signer');
-var verify = require('./verify');
-var utils = require('./utils');
-
-
-
-///--- API
-
-module.exports = {
-
- parse: parser.parseRequest,
- parseRequest: parser.parseRequest,
-
- sign: signer.signRequest,
- signRequest: signer.signRequest,
- createSigner: signer.createSigner,
- isSigner: signer.isSigner,
-
- sshKeyToPEM: utils.sshKeyToPEM,
- sshKeyFingerprint: utils.fingerprint,
- pemToRsaSSHKey: utils.pemToRsaSSHKey,
-
- verify: verify.verifySignature,
- verifySignature: verify.verifySignature,
- verifyHMAC: verify.verifyHMAC
-};
diff --git a/node_modules/http-signature/lib/parser.js b/node_modules/http-signature/lib/parser.js
deleted file mode 100644
index 5994a7e..0000000
--- a/node_modules/http-signature/lib/parser.js
+++ /dev/null
@@ -1,315 +0,0 @@
-// Copyright 2012 Joyent, Inc. All rights reserved.
-
-var assert = require('assert-plus');
-var util = require('util');
-var utils = require('./utils');
-
-
-
-///--- Globals
-
-var HASH_ALGOS = utils.HASH_ALGOS;
-var PK_ALGOS = utils.PK_ALGOS;
-var HttpSignatureError = utils.HttpSignatureError;
-var InvalidAlgorithmError = utils.InvalidAlgorithmError;
-var validateAlgorithm = utils.validateAlgorithm;
-
-var State = {
- New: 0,
- Params: 1
-};
-
-var ParamsState = {
- Name: 0,
- Quote: 1,
- Value: 2,
- Comma: 3
-};
-
-
-///--- Specific Errors
-
-
-function ExpiredRequestError(message) {
- HttpSignatureError.call(this, message, ExpiredRequestError);
-}
-util.inherits(ExpiredRequestError, HttpSignatureError);
-
-
-function InvalidHeaderError(message) {
- HttpSignatureError.call(this, message, InvalidHeaderError);
-}
-util.inherits(InvalidHeaderError, HttpSignatureError);
-
-
-function InvalidParamsError(message) {
- HttpSignatureError.call(this, message, InvalidParamsError);
-}
-util.inherits(InvalidParamsError, HttpSignatureError);
-
-
-function MissingHeaderError(message) {
- HttpSignatureError.call(this, message, MissingHeaderError);
-}
-util.inherits(MissingHeaderError, HttpSignatureError);
-
-function StrictParsingError(message) {
- HttpSignatureError.call(this, message, StrictParsingError);
-}
-util.inherits(StrictParsingError, HttpSignatureError);
-
-///--- Exported API
-
-module.exports = {
-
- /**
- * Parses the 'Authorization' header out of an http.ServerRequest object.
- *
- * Note that this API will fully validate the Authorization header, and throw
- * on any error. It will not however check the signature, or the keyId format
- * as those are specific to your environment. You can use the options object
- * to pass in extra constraints.
- *
- * As a response object you can expect this:
- *
- * {
- * "scheme": "Signature",
- * "params": {
- * "keyId": "foo",
- * "algorithm": "rsa-sha256",
- * "headers": [
- * "date" or "x-date",
- * "digest"
- * ],
- * "signature": "base64"
- * },
- * "signingString": "ready to be passed to crypto.verify()"
- * }
- *
- * @param {Object} request an http.ServerRequest.
- * @param {Object} options an optional options object with:
- * - clockSkew: allowed clock skew in seconds (default 300).
- * - headers: required header names (def: date or x-date)
- * - algorithms: algorithms to support (default: all).
- * - strict: should enforce latest spec parsing
- * (default: false).
- * @return {Object} parsed out object (see above).
- * @throws {TypeError} on invalid input.
- * @throws {InvalidHeaderError} on an invalid Authorization header error.
- * @throws {InvalidParamsError} if the params in the scheme are invalid.
- * @throws {MissingHeaderError} if the params indicate a header not present,
- * either in the request headers from the params,
- * or not in the params from a required header
- * in options.
- * @throws {StrictParsingError} if old attributes are used in strict parsing
- * mode.
- * @throws {ExpiredRequestError} if the value of date or x-date exceeds skew.
- */
- parseRequest: function parseRequest(request, options) {
- assert.object(request, 'request');
- assert.object(request.headers, 'request.headers');
- if (options === undefined) {
- options = {};
- }
- if (options.headers === undefined) {
- options.headers = [request.headers['x-date'] ? 'x-date' : 'date'];
- }
- assert.object(options, 'options');
- assert.arrayOfString(options.headers, 'options.headers');
- assert.optionalFinite(options.clockSkew, 'options.clockSkew');
-
- var authzHeaderName = options.authorizationHeaderName || 'authorization';
-
- if (!request.headers[authzHeaderName]) {
- throw new MissingHeaderError('no ' + authzHeaderName + ' header ' +
- 'present in the request');
- }
-
- options.clockSkew = options.clockSkew || 300;
-
-
- var i = 0;
- var state = State.New;
- var substate = ParamsState.Name;
- var tmpName = '';
- var tmpValue = '';
-
- var parsed = {
- scheme: '',
- params: {},
- signingString: ''
- };
-
- var authz = request.headers[authzHeaderName];
- for (i = 0; i < authz.length; i++) {
- var c = authz.charAt(i);
-
- switch (Number(state)) {
-
- case State.New:
- if (c !== ' ') parsed.scheme += c;
- else state = State.Params;
- break;
-
- case State.Params:
- switch (Number(substate)) {
-
- case ParamsState.Name:
- var code = c.charCodeAt(0);
- // restricted name of A-Z / a-z
- if ((code >= 0x41 && code <= 0x5a) || // A-Z
- (code >= 0x61 && code <= 0x7a)) { // a-z
- tmpName += c;
- } else if (c === '=') {
- if (tmpName.length === 0)
- throw new InvalidHeaderError('bad param format');
- substate = ParamsState.Quote;
- } else {
- throw new InvalidHeaderError('bad param format');
- }
- break;
-
- case ParamsState.Quote:
- if (c === '"') {
- tmpValue = '';
- substate = ParamsState.Value;
- } else {
- throw new InvalidHeaderError('bad param format');
- }
- break;
-
- case ParamsState.Value:
- if (c === '"') {
- parsed.params[tmpName] = tmpValue;
- substate = ParamsState.Comma;
- } else {
- tmpValue += c;
- }
- break;
-
- case ParamsState.Comma:
- if (c === ',') {
- tmpName = '';
- substate = ParamsState.Name;
- } else {
- throw new InvalidHeaderError('bad param format');
- }
- break;
-
- default:
- throw new Error('Invalid substate');
- }
- break;
-
- default:
- throw new Error('Invalid substate');
- }
-
- }
-
- if (!parsed.params.headers || parsed.params.headers === '') {
- if (request.headers['x-date']) {
- parsed.params.headers = ['x-date'];
- } else {
- parsed.params.headers = ['date'];
- }
- } else {
- parsed.params.headers = parsed.params.headers.split(' ');
- }
-
- // Minimally validate the parsed object
- if (!parsed.scheme || parsed.scheme !== 'Signature')
- throw new InvalidHeaderError('scheme was not "Signature"');
-
- if (!parsed.params.keyId)
- throw new InvalidHeaderError('keyId was not specified');
-
- if (!parsed.params.algorithm)
- throw new InvalidHeaderError('algorithm was not specified');
-
- if (!parsed.params.signature)
- throw new InvalidHeaderError('signature was not specified');
-
- // Check the algorithm against the official list
- parsed.params.algorithm = parsed.params.algorithm.toLowerCase();
- try {
- validateAlgorithm(parsed.params.algorithm);
- } catch (e) {
- if (e instanceof InvalidAlgorithmError)
- throw (new InvalidParamsError(parsed.params.algorithm + ' is not ' +
- 'supported'));
- else
- throw (e);
- }
-
- // Build the signingString
- for (i = 0; i < parsed.params.headers.length; i++) {
- var h = parsed.params.headers[i].toLowerCase();
- parsed.params.headers[i] = h;
-
- if (h === 'request-line') {
- if (!options.strict) {
- /*
- * We allow headers from the older spec drafts if strict parsing isn't
- * specified in options.
- */
- parsed.signingString +=
- request.method + ' ' + request.url + ' HTTP/' + request.httpVersion;
- } else {
- /* Strict parsing doesn't allow older draft headers. */
- throw (new StrictParsingError('request-line is not a valid header ' +
- 'with strict parsing enabled.'));
- }
- } else if (h === '(request-target)') {
- parsed.signingString +=
- '(request-target): ' + request.method.toLowerCase() + ' ' +
- request.url;
- } else {
- var value = request.headers[h];
- if (value === undefined)
- throw new MissingHeaderError(h + ' was not in the request');
- parsed.signingString += h + ': ' + value;
- }
-
- if ((i + 1) < parsed.params.headers.length)
- parsed.signingString += '\n';
- }
-
- // Check against the constraints
- var date;
- if (request.headers.date || request.headers['x-date']) {
- if (request.headers['x-date']) {
- date = new Date(request.headers['x-date']);
- } else {
- date = new Date(request.headers.date);
- }
- var now = new Date();
- var skew = Math.abs(now.getTime() - date.getTime());
-
- if (skew > options.clockSkew * 1000) {
- throw new ExpiredRequestError('clock skew of ' +
- (skew / 1000) +
- 's was greater than ' +
- options.clockSkew + 's');
- }
- }
-
- options.headers.forEach(function (hdr) {
- // Remember that we already checked any headers in the params
- // were in the request, so if this passes we're good.
- if (parsed.params.headers.indexOf(hdr.toLowerCase()) < 0)
- throw new MissingHeaderError(hdr + ' was not a signed header');
- });
-
- if (options.algorithms) {
- if (options.algorithms.indexOf(parsed.params.algorithm) === -1)
- throw new InvalidParamsError(parsed.params.algorithm +
- ' is not a supported algorithm');
- }
-
- parsed.algorithm = parsed.params.algorithm.toUpperCase();
- parsed.keyId = parsed.params.keyId;
- return parsed;
- }
-
-};
diff --git a/node_modules/http-signature/lib/signer.js b/node_modules/http-signature/lib/signer.js
deleted file mode 100644
index deb5878..0000000
--- a/node_modules/http-signature/lib/signer.js
+++ /dev/null
@@ -1,401 +0,0 @@
-// Copyright 2012 Joyent, Inc. All rights reserved.
-
-var assert = require('assert-plus');
-var crypto = require('crypto');
-var http = require('http');
-var util = require('util');
-var sshpk = require('sshpk');
-var jsprim = require('jsprim');
-var utils = require('./utils');
-
-var sprintf = require('util').format;
-
-var HASH_ALGOS = utils.HASH_ALGOS;
-var PK_ALGOS = utils.PK_ALGOS;
-var InvalidAlgorithmError = utils.InvalidAlgorithmError;
-var HttpSignatureError = utils.HttpSignatureError;
-var validateAlgorithm = utils.validateAlgorithm;
-
-///--- Globals
-
-var AUTHZ_FMT =
- 'Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';
-
-///--- Specific Errors
-
-function MissingHeaderError(message) {
- HttpSignatureError.call(this, message, MissingHeaderError);
-}
-util.inherits(MissingHeaderError, HttpSignatureError);
-
-function StrictParsingError(message) {
- HttpSignatureError.call(this, message, StrictParsingError);
-}
-util.inherits(StrictParsingError, HttpSignatureError);
-
-/* See createSigner() */
-function RequestSigner(options) {
- assert.object(options, 'options');
-
- var alg = [];
- if (options.algorithm !== undefined) {
- assert.string(options.algorithm, 'options.algorithm');
- alg = validateAlgorithm(options.algorithm);
- }
- this.rs_alg = alg;
-
- /*
- * RequestSigners come in two varieties: ones with an rs_signFunc, and ones
- * with an rs_signer.
- *
- * rs_signFunc-based RequestSigners have to build up their entire signing
- * string within the rs_lines array and give it to rs_signFunc as a single
- * concat'd blob. rs_signer-based RequestSigners can add a line at a time to
- * their signing state by using rs_signer.update(), thus only needing to
- * buffer the hash function state and one line at a time.
- */
- if (options.sign !== undefined) {
- assert.func(options.sign, 'options.sign');
- this.rs_signFunc = options.sign;
-
- } else if (alg[0] === 'hmac' && options.key !== undefined) {
- assert.string(options.keyId, 'options.keyId');
- this.rs_keyId = options.keyId;
-
- if (typeof (options.key) !== 'string' && !Buffer.isBuffer(options.key))
- throw (new TypeError('options.key for HMAC must be a string or Buffer'));
-
- /*
- * Make an rs_signer for HMACs, not a rs_signFunc -- HMACs digest their
- * data in chunks rather than requiring it all to be given in one go
- * at the end, so they are more similar to signers than signFuncs.
- */
- this.rs_signer = crypto.createHmac(alg[1].toUpperCase(), options.key);
- this.rs_signer.sign = function () {
- var digest = this.digest('base64');
- return ({
- hashAlgorithm: alg[1],
- toString: function () { return (digest); }
- });
- };
-
- } else if (options.key !== undefined) {
- var key = options.key;
- if (typeof (key) === 'string' || Buffer.isBuffer(key))
- key = sshpk.parsePrivateKey(key);
-
- assert.ok(sshpk.PrivateKey.isPrivateKey(key, [1, 2]),
- 'options.key must be a sshpk.PrivateKey');
- this.rs_key = key;
-
- assert.string(options.keyId, 'options.keyId');
- this.rs_keyId = options.keyId;
-
- if (!PK_ALGOS[key.type]) {
- throw (new InvalidAlgorithmError(key.type.toUpperCase() + ' type ' +
- 'keys are not supported'));
- }
-
- if (alg[0] !== undefined && key.type !== alg[0]) {
- throw (new InvalidAlgorithmError('options.key must be a ' +
- alg[0].toUpperCase() + ' key, was given a ' +
- key.type.toUpperCase() + ' key instead'));
- }
-
- this.rs_signer = key.createSign(alg[1]);
-
- } else {
- throw (new TypeError('options.sign (func) or options.key is required'));
- }
-
- this.rs_headers = [];
- this.rs_lines = [];
-}
-
-/**
- * Adds a header to be signed, with its value, into this signer.
- *
- * @param {String} header
- * @param {String} value
- * @return {String} value written
- */
-RequestSigner.prototype.writeHeader = function (header, value) {
- assert.string(header, 'header');
- header = header.toLowerCase();
- assert.string(value, 'value');
-
- this.rs_headers.push(header);
-
- if (this.rs_signFunc) {
- this.rs_lines.push(header + ': ' + value);
-
- } else {
- var line = header + ': ' + value;
- if (this.rs_headers.length > 0)
- line = '\n' + line;
- this.rs_signer.update(line);
- }
-
- return (value);
-};
-
-/**
- * Adds a default Date header, returning its value.
- *
- * @return {String}
- */
-RequestSigner.prototype.writeDateHeader = function () {
- return (this.writeHeader('date', jsprim.rfc1123(new Date())));
-};
-
-/**
- * Adds the request target line to be signed.
- *
- * @param {String} method, HTTP method (e.g. 'get', 'post', 'put')
- * @param {String} path
- */
-RequestSigner.prototype.writeTarget = function (method, path) {
- assert.string(method, 'method');
- assert.string(path, 'path');
- method = method.toLowerCase();
- this.writeHeader('(request-target)', method + ' ' + path);
-};
-
-/**
- * Calculate the value for the Authorization header on this request
- * asynchronously.
- *
- * @param {Func} callback (err, authz)
- */
-RequestSigner.prototype.sign = function (cb) {
- assert.func(cb, 'callback');
-
- if (this.rs_headers.length < 1)
- throw (new Error('At least one header must be signed'));
-
- var alg, authz;
- if (this.rs_signFunc) {
- var data = this.rs_lines.join('\n');
- var self = this;
- this.rs_signFunc(data, function (err, sig) {
- if (err) {
- cb(err);
- return;
- }
- try {
- assert.object(sig, 'signature');
- assert.string(sig.keyId, 'signature.keyId');
- assert.string(sig.algorithm, 'signature.algorithm');
- assert.string(sig.signature, 'signature.signature');
- alg = validateAlgorithm(sig.algorithm);
-
- authz = sprintf(AUTHZ_FMT,
- sig.keyId,
- sig.algorithm,
- self.rs_headers.join(' '),
- sig.signature);
- } catch (e) {
- cb(e);
- return;
- }
- cb(null, authz);
- });
-
- } else {
- try {
- var sigObj = this.rs_signer.sign();
- } catch (e) {
- cb(e);
- return;
- }
- alg = (this.rs_alg[0] || this.rs_key.type) + '-' + sigObj.hashAlgorithm;
- var signature = sigObj.toString();
- authz = sprintf(AUTHZ_FMT,
- this.rs_keyId,
- alg,
- this.rs_headers.join(' '),
- signature);
- cb(null, authz);
- }
-};
-
-///--- Exported API
-
-module.exports = {
- /**
- * Identifies whether a given object is a request signer or not.
- *
- * @param {Object} object, the object to identify
- * @returns {Boolean}
- */
- isSigner: function (obj) {
- if (typeof (obj) === 'object' && obj instanceof RequestSigner)
- return (true);
- return (false);
- },
-
- /**
- * Creates a request signer, used to asynchronously build a signature
- * for a request (does not have to be an http.ClientRequest).
- *
- * @param {Object} options, either:
- * - {String} keyId
- * - {String|Buffer} key
- * - {String} algorithm (optional, required for HMAC)
- * or:
- * - {Func} sign (data, cb)
- * @return {RequestSigner}
- */
- createSigner: function createSigner(options) {
- return (new RequestSigner(options));
- },
-
- /**
- * Adds an 'Authorization' header to an http.ClientRequest object.
- *
- * Note that this API will add a Date header if it's not already set. Any
- * other headers in the options.headers array MUST be present, or this
- * will throw.
- *
- * You shouldn't need to check the return type; it's just there if you want
- * to be pedantic.
- *
- * The optional flag indicates whether parsing should use strict enforcement
- * of the version draft-cavage-http-signatures-04 of the spec or beyond.
- * The default is to be loose and support
- * older versions for compatibility.
- *
- * @param {Object} request an instance of http.ClientRequest.
- * @param {Object} options signing parameters object:
- * - {String} keyId required.
- * - {String} key required (either a PEM or HMAC key).
- * - {Array} headers optional; defaults to ['date'].
- * - {String} algorithm optional (unless key is HMAC);
- * default is the same as the sshpk default
- * signing algorithm for the type of key given
- * - {String} httpVersion optional; defaults to '1.1'.
- * - {Boolean} strict optional; defaults to 'false'.
- * @return {Boolean} true if Authorization (and optionally Date) were added.
- * @throws {TypeError} on bad parameter types (input).
- * @throws {InvalidAlgorithmError} if algorithm was bad or incompatible with
- * the given key.
- * @throws {sshpk.KeyParseError} if key was bad.
- * @throws {MissingHeaderError} if a header to be signed was specified but
- * was not present.
- */
- signRequest: function signRequest(request, options) {
- assert.object(request, 'request');
- assert.object(options, 'options');
- assert.optionalString(options.algorithm, 'options.algorithm');
- assert.string(options.keyId, 'options.keyId');
- assert.optionalArrayOfString(options.headers, 'options.headers');
- assert.optionalString(options.httpVersion, 'options.httpVersion');
-
- if (!request.getHeader('Date'))
- request.setHeader('Date', jsprim.rfc1123(new Date()));
- if (!options.headers)
- options.headers = ['date'];
- if (!options.httpVersion)
- options.httpVersion = '1.1';
-
- var alg = [];
- if (options.algorithm) {
- options.algorithm = options.algorithm.toLowerCase();
- alg = validateAlgorithm(options.algorithm);
- }
-
- var i;
- var stringToSign = '';
- for (i = 0; i < options.headers.length; i++) {
- if (typeof (options.headers[i]) !== 'string')
- throw new TypeError('options.headers must be an array of Strings');
-
- var h = options.headers[i].toLowerCase();
-
- if (h === 'request-line') {
- if (!options.strict) {
- /**
- * We allow headers from the older spec drafts if strict parsing isn't
- * specified in options.
- */
- stringToSign +=
- request.method + ' ' + request.path + ' HTTP/' +
- options.httpVersion;
- } else {
- /* Strict parsing doesn't allow older draft headers. */
- throw (new StrictParsingError('request-line is not a valid header ' +
- 'with strict parsing enabled.'));
- }
- } else if (h === '(request-target)') {
- stringToSign +=
- '(request-target): ' + request.method.toLowerCase() + ' ' +
- request.path;
- } else {
- var value = request.getHeader(h);
- if (value === undefined || value === '') {
- throw new MissingHeaderError(h + ' was not in the request');
- }
- stringToSign += h + ': ' + value;
- }
-
- if ((i + 1) < options.headers.length)
- stringToSign += '\n';
- }
-
- /* This is just for unit tests. */
- if (request.hasOwnProperty('_stringToSign')) {
- request._stringToSign = stringToSign;
- }
-
- var signature;
- if (alg[0] === 'hmac') {
- if (typeof (options.key) !== 'string' && !Buffer.isBuffer(options.key))
- throw (new TypeError('options.key must be a string or Buffer'));
-
- var hmac = crypto.createHmac(alg[1].toUpperCase(), options.key);
- hmac.update(stringToSign);
- signature = hmac.digest('base64');
-
- } else {
- var key = options.key;
- if (typeof (key) === 'string' || Buffer.isBuffer(key))
- key = sshpk.parsePrivateKey(options.key);
-
- assert.ok(sshpk.PrivateKey.isPrivateKey(key, [1, 2]),
- 'options.key must be a sshpk.PrivateKey');
-
- if (!PK_ALGOS[key.type]) {
- throw (new InvalidAlgorithmError(key.type.toUpperCase() + ' type ' +
- 'keys are not supported'));
- }
-
- if (alg[0] !== undefined && key.type !== alg[0]) {
- throw (new InvalidAlgorithmError('options.key must be a ' +
- alg[0].toUpperCase() + ' key, was given a ' +
- key.type.toUpperCase() + ' key instead'));
- }
-
- var signer = key.createSign(alg[1]);
- signer.update(stringToSign);
- var sigObj = signer.sign();
- if (!HASH_ALGOS[sigObj.hashAlgorithm]) {
- throw (new InvalidAlgorithmError(sigObj.hashAlgorithm.toUpperCase() +
- ' is not a supported hash algorithm'));
- }
- options.algorithm = key.type + '-' + sigObj.hashAlgorithm;
- signature = sigObj.toString();
- assert.notStrictEqual(signature, '', 'empty signature produced');
- }
-
- var authzHeaderName = options.authorizationHeaderName || 'Authorization';
-
- request.setHeader(authzHeaderName, sprintf(AUTHZ_FMT,
- options.keyId,
- options.algorithm,
- options.headers.join(' '),
- signature));
-
- return true;
- }
-
-};
diff --git a/node_modules/http-signature/lib/utils.js b/node_modules/http-signature/lib/utils.js
deleted file mode 100644
index bbf2aa8..0000000
--- a/node_modules/http-signature/lib/utils.js
+++ /dev/null
@@ -1,112 +0,0 @@
-// Copyright 2012 Joyent, Inc. All rights reserved.
-
-var assert = require('assert-plus');
-var sshpk = require('sshpk');
-var util = require('util');
-
-var HASH_ALGOS = {
- 'sha1': true,
- 'sha256': true,
- 'sha512': true
-};
-
-var PK_ALGOS = {
- 'rsa': true,
- 'dsa': true,
- 'ecdsa': true
-};
-
-function HttpSignatureError(message, caller) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, caller || HttpSignatureError);
-
- this.message = message;
- this.name = caller.name;
-}
-util.inherits(HttpSignatureError, Error);
-
-function InvalidAlgorithmError(message) {
- HttpSignatureError.call(this, message, InvalidAlgorithmError);
-}
-util.inherits(InvalidAlgorithmError, HttpSignatureError);
-
-function validateAlgorithm(algorithm) {
- var alg = algorithm.toLowerCase().split('-');
-
- if (alg.length !== 2) {
- throw (new InvalidAlgorithmError(alg[0].toUpperCase() + ' is not a ' +
- 'valid algorithm'));
- }
-
- if (alg[0] !== 'hmac' && !PK_ALGOS[alg[0]]) {
- throw (new InvalidAlgorithmError(alg[0].toUpperCase() + ' type keys ' +
- 'are not supported'));
- }
-
- if (!HASH_ALGOS[alg[1]]) {
- throw (new InvalidAlgorithmError(alg[1].toUpperCase() + ' is not a ' +
- 'supported hash algorithm'));
- }
-
- return (alg);
-}
-
-///--- API
-
-module.exports = {
-
- HASH_ALGOS: HASH_ALGOS,
- PK_ALGOS: PK_ALGOS,
-
- HttpSignatureError: HttpSignatureError,
- InvalidAlgorithmError: InvalidAlgorithmError,
-
- validateAlgorithm: validateAlgorithm,
-
- /**
- * Converts an OpenSSH public key (rsa only) to a PKCS#8 PEM file.
- *
- * The intent of this module is to interoperate with OpenSSL only,
- * specifically the node crypto module's `verify` method.
- *
- * @param {String} key an OpenSSH public key.
- * @return {String} PEM encoded form of the RSA public key.
- * @throws {TypeError} on bad input.
- * @throws {Error} on invalid ssh key formatted data.
- */
- sshKeyToPEM: function sshKeyToPEM(key) {
- assert.string(key, 'ssh_key');
-
- var k = sshpk.parseKey(key, 'ssh');
- return (k.toString('pem'));
- },
-
-
- /**
- * Generates an OpenSSH fingerprint from an ssh public key.
- *
- * @param {String} key an OpenSSH public key.
- * @return {String} key fingerprint.
- * @throws {TypeError} on bad input.
- * @throws {Error} if what you passed doesn't look like an ssh public key.
- */
- fingerprint: function fingerprint(key) {
- assert.string(key, 'ssh_key');
-
- var k = sshpk.parseKey(key, 'ssh');
- return (k.fingerprint('md5').toString('hex'));
- },
-
- /**
- * Converts a PKGCS#8 PEM file to an OpenSSH public key (rsa)
- *
- * The reverse of the above function.
- */
- pemToRsaSSHKey: function pemToRsaSSHKey(pem, comment) {
- assert.equal('string', typeof (pem), 'typeof pem');
-
- var k = sshpk.parseKey(pem, 'pem');
- k.comment = comment;
- return (k.toString('ssh'));
- }
-};
diff --git a/node_modules/http-signature/lib/verify.js b/node_modules/http-signature/lib/verify.js
deleted file mode 100644
index b053fd6..0000000
--- a/node_modules/http-signature/lib/verify.js
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-var assert = require('assert-plus');
-var crypto = require('crypto');
-var sshpk = require('sshpk');
-var utils = require('./utils');
-
-var HASH_ALGOS = utils.HASH_ALGOS;
-var PK_ALGOS = utils.PK_ALGOS;
-var InvalidAlgorithmError = utils.InvalidAlgorithmError;
-var HttpSignatureError = utils.HttpSignatureError;
-var validateAlgorithm = utils.validateAlgorithm;
-
-///--- Exported API
-
-module.exports = {
- /**
- * Verify RSA/DSA signature against public key. You are expected to pass in
- * an object that was returned from `parse()`.
- *
- * @param {Object} parsedSignature the object you got from `parse`.
- * @param {String} pubkey RSA/DSA private key PEM.
- * @return {Boolean} true if valid, false otherwise.
- * @throws {TypeError} if you pass in bad arguments.
- * @throws {InvalidAlgorithmError}
- */
- verifySignature: function verifySignature(parsedSignature, pubkey) {
- assert.object(parsedSignature, 'parsedSignature');
- if (typeof (pubkey) === 'string' || Buffer.isBuffer(pubkey))
- pubkey = sshpk.parseKey(pubkey);
- assert.ok(sshpk.Key.isKey(pubkey, [1, 1]), 'pubkey must be a sshpk.Key');
-
- var alg = validateAlgorithm(parsedSignature.algorithm);
- if (alg[0] === 'hmac' || alg[0] !== pubkey.type)
- return (false);
-
- var v = pubkey.createVerify(alg[1]);
- v.update(parsedSignature.signingString);
- return (v.verify(parsedSignature.params.signature, 'base64'));
- },
-
- /**
- * Verify HMAC against shared secret. You are expected to pass in an object
- * that was returned from `parse()`.
- *
- * @param {Object} parsedSignature the object you got from `parse`.
- * @param {String} secret HMAC shared secret.
- * @return {Boolean} true if valid, false otherwise.
- * @throws {TypeError} if you pass in bad arguments.
- * @throws {InvalidAlgorithmError}
- */
- verifyHMAC: function verifyHMAC(parsedSignature, secret) {
- assert.object(parsedSignature, 'parsedHMAC');
- assert.string(secret, 'secret');
-
- var alg = validateAlgorithm(parsedSignature.algorithm);
- if (alg[0] !== 'hmac')
- return (false);
-
- var hashAlg = alg[1].toUpperCase();
-
- var hmac = crypto.createHmac(hashAlg, secret);
- hmac.update(parsedSignature.signingString);
-
- /*
- * Now double-hash to avoid leaking timing information - there's
- * no easy constant-time compare in JS, so we use this approach
- * instead. See for more info:
- * https://www.isecpartners.com/blog/2011/february/double-hmac-
- * verification.aspx
- */
- var h1 = crypto.createHmac(hashAlg, secret);
- h1.update(hmac.digest());
- h1 = h1.digest();
- var h2 = crypto.createHmac(hashAlg, secret);
- h2.update(new Buffer(parsedSignature.params.signature, 'base64'));
- h2 = h2.digest();
-
- /* Node 0.8 returns strings from .digest(). */
- if (typeof (h1) === 'string')
- return (h1 === h2);
- /* And node 0.10 lacks the .equals() method on Buffers. */
- if (Buffer.isBuffer(h1) && !h1.equals)
- return (h1.toString('binary') === h2.toString('binary'));
-
- return (h1.equals(h2));
- }
-};
diff --git a/node_modules/http-signature/package.json b/node_modules/http-signature/package.json
deleted file mode 100644
index 20e8981..0000000
--- a/node_modules/http-signature/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "http-signature@~1.2.0",
- "_id": "http-signature@1.2.0",
- "_inBundle": false,
- "_integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
- "_location": "/http-signature",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "http-signature@~1.2.0",
- "name": "http-signature",
- "escapedName": "http-signature",
- "rawSpec": "~1.2.0",
- "saveSpec": null,
- "fetchSpec": "~1.2.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
- "_shasum": "9aecd925114772f3d95b65a60abb8f7c18fbace1",
- "_spec": "http-signature@~1.2.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Joyent, Inc"
- },
- "bugs": {
- "url": "https://github.com/joyent/node-http-signature/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- {
- "name": "David I. Lehn",
- "email": "dil@lehn.org"
- },
- {
- "name": "Patrick Mooney",
- "email": "patrick.f.mooney@gmail.com"
- }
- ],
- "dependencies": {
- "assert-plus": "^1.0.0",
- "jsprim": "^1.2.2",
- "sshpk": "^1.7.0"
- },
- "deprecated": false,
- "description": "Reference implementation of Joyent's HTTP Signature scheme.",
- "devDependencies": {
- "tap": "0.4.2",
- "uuid": "^2.0.2"
- },
- "engines": {
- "node": ">=0.8",
- "npm": ">=1.3.7"
- },
- "homepage": "https://github.com/joyent/node-http-signature/",
- "keywords": [
- "https",
- "request"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "http-signature",
- "repository": {
- "type": "git",
- "url": "git://github.com/joyent/node-http-signature.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "1.2.0"
-}
diff --git a/node_modules/in-publish/LICENSE b/node_modules/in-publish/LICENSE
deleted file mode 100644
index f4be44d..0000000
--- a/node_modules/in-publish/LICENSE
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2015, Rebecca Turner <me@re-becca.org>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/node_modules/in-publish/README.md b/node_modules/in-publish/README.md
deleted file mode 100644
index de0b2a7..0000000
--- a/node_modules/in-publish/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-in-publish
-==========
-
-> For background, see [npm#10074](https://github.com/npm/npm/issues/10074).
-
-Detect if we were run as a result of `npm publish`. This is intended to allow you to
-easily have prepublish lifecycle scripts that don't run when you run `npm install`.
-
-```
-$ npm install --save-dev in-publish
-in-publish@1.0.0 node_modules/in-publish
-```
-
-Then edit your package.json to have:
-
-```json
- "scripts": {
- "prepublish": "in-publish && thing-I-dont-want-on-dev-install || not-in-publish"
- }
-```
-
-Now when you run:
-
-```
-$ npm install
-```
-Then `thing-I-dont-want-on-dev-install` won't be run, but...
-
-```
-$ npm publish
-```
-And `thing-I-dont-want-on-dev-install` will be run.
-
-It's worth noting that the `prepublish` lifecycle is _ALSO_ called when you build a tarball, so:
-
-```
-$ npm pack
-```
-
-Will call your `prepublish` lifecycle, but with the example above,
-`thing-I-dont-want-on-dev-install` won't be run.
-
-If you want this, you can use another helper included here:
-
-```json
- "scripts": {
- "prepublish": "not-in-install && thing-I-dont-want-on-dev-install || in-install"
- }
-```
-
-The above will run your `thing-I-dont-want-on-dev-install` on `publish` and
-on `pack` but not on `install`.
diff --git a/node_modules/in-publish/in-install.js b/node_modules/in-publish/in-install.js
deleted file mode 100755
index 98a955e..0000000
--- a/node_modules/in-publish/in-install.js
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env node
-'use strict'
-var inInstall = require('./index.js').inInstall
-process.exit(inInstall() ? 0 : 1)
diff --git a/node_modules/in-publish/in-publish.js b/node_modules/in-publish/in-publish.js
deleted file mode 100755
index 79823fd..0000000
--- a/node_modules/in-publish/in-publish.js
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env node
-'use strict'
-var inPublish = require('./index.js').inPublish
-process.exit(inPublish() ? 0 : 1)
diff --git a/node_modules/in-publish/index.js b/node_modules/in-publish/index.js
deleted file mode 100644
index 8cfc92f..0000000
--- a/node_modules/in-publish/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict'
-function inCommand (cmd, cmdStr) {
- if (process.env.npm_command) {
- return process.env.npm_command === cmdStr
- }
-
- try {
- var npm_config_argv = JSON.parse(process.env['npm_config_argv'])
- } catch (e) {
- return false
- }
-
- if (typeof npm_config_argv !== 'object') process.exit(1)
- if (!npm_config_argv.cooked) process.exit(1)
- if (!npm_config_argv.cooked instanceof Array) process.exit(1)
-
- var V
- while ((V = npm_config_argv.cooked.shift()) !== undefined) {
- if (/^-/.test(V)) continue
- if (cmd.test(V)) return true
- return false
- }
- return false
-}
-
-exports.inPublish = function () {
- return inCommand(/^pu(b(l(i(sh?)?)?)?)?$/, 'publish')
-}
-
-exports.inInstall = function () {
- return inCommand(/^i(n(s(t(a(ll?)?)?)?)?)?$/, 'install')
-}
diff --git a/node_modules/in-publish/not-in-install.js b/node_modules/in-publish/not-in-install.js
deleted file mode 100755
index b0d5dae..0000000
--- a/node_modules/in-publish/not-in-install.js
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env node
-'use strict'
-var inInstall = require('./index.js').inInstall
-process.exit(inInstall() ? 1 : 0)
diff --git a/node_modules/in-publish/not-in-publish.js b/node_modules/in-publish/not-in-publish.js
deleted file mode 100755
index 9528f5c..0000000
--- a/node_modules/in-publish/not-in-publish.js
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env node
-'use strict'
-var inPublish = require('./index.js').inPublish
-process.exit(inPublish() ? 1 : 0)
diff --git a/node_modules/in-publish/package.json b/node_modules/in-publish/package.json
deleted file mode 100644
index e7df246..0000000
--- a/node_modules/in-publish/package.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "_from": "in-publish@^2.0.0",
- "_id": "in-publish@2.0.1",
- "_inBundle": false,
- "_integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ==",
- "_location": "/in-publish",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "in-publish@^2.0.0",
- "name": "in-publish",
- "escapedName": "in-publish",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz",
- "_shasum": "948b1a535c8030561cea522f73f78f4be357e00c",
- "_spec": "in-publish@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/node-sass",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org"
- },
- "bin": {
- "in-publish": "in-publish.js",
- "in-install": "in-install.js",
- "not-in-publish": "not-in-publish.js",
- "not-in-install": "not-in-install.js"
- },
- "bugs": {
- "url": "https://github.com/iarna/in-publish/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Detect if we were run as a result of `npm publish`",
- "homepage": "https://github.com/iarna/in-publish",
- "license": "ISC",
- "main": "index.js",
- "name": "in-publish",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/in-publish.git"
- },
- "version": "2.0.1"
-}
diff --git a/node_modules/in-publish/test/package.json b/node_modules/in-publish/test/package.json
deleted file mode 100644
index 541061a..0000000
--- a/node_modules/in-publish/test/package.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "name": "test",
- "version": "1.0.0",
- "devDependencies": {
- "in-publish": "file:///Users/rebecca/code/in-publish"
- },
- "scripts": {
- "prepublish": "in-publish && exit 1 || not-in-publish"
- }
-}
diff --git a/node_modules/indent-string/index.js b/node_modules/indent-string/index.js
deleted file mode 100644
index 4a21687..0000000
--- a/node_modules/indent-string/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-var repeating = require('repeating');
-
-module.exports = function (str, indent, count) {
- if (typeof str !== 'string' || typeof indent !== 'string') {
- throw new TypeError('`string` and `indent` should be strings');
- }
-
- if (count != null && typeof count !== 'number') {
- throw new TypeError('`count` should be a number');
- }
-
- if (count === 0) {
- return str;
- }
-
- indent = count > 1 ? repeating(indent, count) : indent;
-
- return str.replace(/^(?!\s*$)/mg, indent);
-};
diff --git a/node_modules/indent-string/license b/node_modules/indent-string/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/indent-string/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/indent-string/package.json b/node_modules/indent-string/package.json
deleted file mode 100644
index 8bd9df9..0000000
--- a/node_modules/indent-string/package.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "_from": "indent-string@^2.1.0",
- "_id": "indent-string@2.1.0",
- "_inBundle": false,
- "_integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=",
- "_location": "/indent-string",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "indent-string@^2.1.0",
- "name": "indent-string",
- "escapedName": "indent-string",
- "rawSpec": "^2.1.0",
- "saveSpec": null,
- "fetchSpec": "^2.1.0"
- },
- "_requiredBy": [
- "/redent"
- ],
- "_resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
- "_shasum": "8e2d48348742121b4a8218b7a137e9a52049dc80",
- "_spec": "indent-string@^2.1.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/redent",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/indent-string/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "repeating": "^2.0.0"
- },
- "deprecated": false,
- "description": "Indent each line in a string",
- "devDependencies": {
- "mocha": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/indent-string#readme",
- "keywords": [
- "indent",
- "string",
- "str",
- "pad",
- "align",
- "line",
- "text"
- ],
- "license": "MIT",
- "name": "indent-string",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/indent-string.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "2.1.0"
-}
diff --git a/node_modules/indent-string/readme.md b/node_modules/indent-string/readme.md
deleted file mode 100644
index 89f14ac..0000000
--- a/node_modules/indent-string/readme.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# indent-string [![Build Status](https://travis-ci.org/sindresorhus/indent-string.svg?branch=master)](https://travis-ci.org/sindresorhus/indent-string)
-
-> Indent each line in a string
-
-
-## Install
-
-```
-$ npm install --save indent-string
-```
-
-
-## Usage
-
-```js
-var indentString = require('indent-string');
-
-indentString('Unicorns\nRainbows', '♥', 4);
-//=> ♥♥♥♥Unicorns
-//=> ♥♥♥♥Rainbows
-```
-
-
-## API
-
-### indentString(string, indent, count)
-
-#### string
-
-**Required**
-Type: `string`
-
-The string you want to indent.
-
-#### indent
-
-**Required**
-Type: `string`
-
-The string to use for the indent.
-
-#### count
-
-Type: `number`
-Default: `1`
-
-How many times you want `indent` repeated.
-
-
-## Related
-
-- [indent-string-cli](https://github.com/sindresorhus/indent-string-cli) - CLI for this module
-- [strip-indent](https://github.com/sindresorhus/strip-indent) - Strip leading whitespace from every line in a string
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/inflight/LICENSE b/node_modules/inflight/LICENSE
deleted file mode 100644
index 05eeeb8..0000000
--- a/node_modules/inflight/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/inflight/README.md b/node_modules/inflight/README.md
deleted file mode 100644
index 6dc8929..0000000
--- a/node_modules/inflight/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# inflight
-
-Add callbacks to requests in flight to avoid async duplication
-
-## USAGE
-
-```javascript
-var inflight = require('inflight')
-
-// some request that does some stuff
-function req(key, callback) {
- // key is any random string. like a url or filename or whatever.
- //
- // will return either a falsey value, indicating that the
- // request for this key is already in flight, or a new callback
- // which when called will call all callbacks passed to inflightk
- // with the same key
- callback = inflight(key, callback)
-
- // If we got a falsey value back, then there's already a req going
- if (!callback) return
-
- // this is where you'd fetch the url or whatever
- // callback is also once()-ified, so it can safely be assigned
- // to multiple events etc. First call wins.
- setTimeout(function() {
- callback(null, key)
- }, 100)
-}
-
-// only assigns a single setTimeout
-// when it dings, all cbs get called
-req('foo', cb1)
-req('foo', cb2)
-req('foo', cb3)
-req('foo', cb4)
-```
diff --git a/node_modules/inflight/inflight.js b/node_modules/inflight/inflight.js
deleted file mode 100644
index 48202b3..0000000
--- a/node_modules/inflight/inflight.js
+++ /dev/null
@@ -1,54 +0,0 @@
-var wrappy = require('wrappy')
-var reqs = Object.create(null)
-var once = require('once')
-
-module.exports = wrappy(inflight)
-
-function inflight (key, cb) {
- if (reqs[key]) {
- reqs[key].push(cb)
- return null
- } else {
- reqs[key] = [cb]
- return makeres(key)
- }
-}
-
-function makeres (key) {
- return once(function RES () {
- var cbs = reqs[key]
- var len = cbs.length
- var args = slice(arguments)
-
- // XXX It's somewhat ambiguous whether a new callback added in this
- // pass should be queued for later execution if something in the
- // list of callbacks throws, or if it should just be discarded.
- // However, it's such an edge case that it hardly matters, and either
- // choice is likely as surprising as the other.
- // As it happens, we do go ahead and schedule it for later execution.
- try {
- for (var i = 0; i < len; i++) {
- cbs[i].apply(null, args)
- }
- } finally {
- if (cbs.length > len) {
- // added more in the interim.
- // de-zalgo, just in case, but don't call again.
- cbs.splice(0, len)
- process.nextTick(function () {
- RES.apply(null, args)
- })
- } else {
- delete reqs[key]
- }
- }
- })
-}
-
-function slice (args) {
- var length = args.length
- var array = []
-
- for (var i = 0; i < length; i++) array[i] = args[i]
- return array
-}
diff --git a/node_modules/inflight/package.json b/node_modules/inflight/package.json
deleted file mode 100644
index 5bbb599..0000000
--- a/node_modules/inflight/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_from": "inflight@^1.0.4",
- "_id": "inflight@1.0.6",
- "_inBundle": false,
- "_integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "_location": "/inflight",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "inflight@^1.0.4",
- "name": "inflight",
- "escapedName": "inflight",
- "rawSpec": "^1.0.4",
- "saveSpec": null,
- "fetchSpec": "^1.0.4"
- },
- "_requiredBy": [
- "/glob"
- ],
- "_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "_shasum": "49bd6331d7d02d0c09bc910a1075ba8165b56df9",
- "_spec": "inflight@^1.0.4",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/glob",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/inflight/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "once": "^1.3.0",
- "wrappy": "1"
- },
- "deprecated": false,
- "description": "Add callbacks to requests in flight to avoid async duplication",
- "devDependencies": {
- "tap": "^7.1.2"
- },
- "files": [
- "inflight.js"
- ],
- "homepage": "https://github.com/isaacs/inflight",
- "license": "ISC",
- "main": "inflight.js",
- "name": "inflight",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/inflight.git"
- },
- "scripts": {
- "test": "tap test.js --100"
- },
- "version": "1.0.6"
-}
diff --git a/node_modules/inherits/LICENSE b/node_modules/inherits/LICENSE
deleted file mode 100644
index dea3013..0000000
--- a/node_modules/inherits/LICENSE
+++ /dev/null
@@ -1,16 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/node_modules/inherits/README.md b/node_modules/inherits/README.md
deleted file mode 100644
index b1c5665..0000000
--- a/node_modules/inherits/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-Browser-friendly inheritance fully compatible with standard node.js
-[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
-
-This package exports standard `inherits` from node.js `util` module in
-node environment, but also provides alternative browser-friendly
-implementation through [browser
-field](https://gist.github.com/shtylman/4339901). Alternative
-implementation is a literal copy of standard one located in standalone
-module to avoid requiring of `util`. It also has a shim for old
-browsers with no `Object.create` support.
-
-While keeping you sure you are using standard `inherits`
-implementation in node.js environment, it allows bundlers such as
-[browserify](https://github.com/substack/node-browserify) to not
-include full `util` package to your client code if all you need is
-just `inherits` function. It worth, because browser shim for `util`
-package is large and `inherits` is often the single function you need
-from it.
-
-It's recommended to use this package instead of
-`require('util').inherits` for any code that has chances to be used
-not only in node.js but in browser too.
-
-## usage
-
-```js
-var inherits = require('inherits');
-// then use exactly as the standard one
-```
-
-## note on version ~1.0
-
-Version ~1.0 had completely different motivation and is not compatible
-neither with 2.0 nor with standard node.js `inherits`.
-
-If you are using version ~1.0 and planning to switch to ~2.0, be
-careful:
-
-* new version uses `super_` instead of `super` for referencing
- superclass
-* new version overwrites current prototype while old one preserves any
- existing fields on it
diff --git a/node_modules/inherits/inherits.js b/node_modules/inherits/inherits.js
deleted file mode 100644
index f71f2d9..0000000
--- a/node_modules/inherits/inherits.js
+++ /dev/null
@@ -1,9 +0,0 @@
-try {
- var util = require('util');
- /* istanbul ignore next */
- if (typeof util.inherits !== 'function') throw '';
- module.exports = util.inherits;
-} catch (e) {
- /* istanbul ignore next */
- module.exports = require('./inherits_browser.js');
-}
diff --git a/node_modules/inherits/inherits_browser.js b/node_modules/inherits/inherits_browser.js
deleted file mode 100644
index 86bbb3d..0000000
--- a/node_modules/inherits/inherits_browser.js
+++ /dev/null
@@ -1,27 +0,0 @@
-if (typeof Object.create === 'function') {
- // implementation from standard node.js 'util' module
- module.exports = function inherits(ctor, superCtor) {
- if (superCtor) {
- ctor.super_ = superCtor
- ctor.prototype = Object.create(superCtor.prototype, {
- constructor: {
- value: ctor,
- enumerable: false,
- writable: true,
- configurable: true
- }
- })
- }
- };
-} else {
- // old school shim for old browsers
- module.exports = function inherits(ctor, superCtor) {
- if (superCtor) {
- ctor.super_ = superCtor
- var TempCtor = function () {}
- TempCtor.prototype = superCtor.prototype
- ctor.prototype = new TempCtor()
- ctor.prototype.constructor = ctor
- }
- }
-}
diff --git a/node_modules/inherits/package.json b/node_modules/inherits/package.json
deleted file mode 100644
index e83122f..0000000
--- a/node_modules/inherits/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "_from": "inherits@2",
- "_id": "inherits@2.0.4",
- "_inBundle": false,
- "_integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "_location": "/inherits",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "inherits@2",
- "name": "inherits",
- "escapedName": "inherits",
- "rawSpec": "2",
- "saveSpec": null,
- "fetchSpec": "2"
- },
- "_requiredBy": [
- "/block-stream",
- "/fstream",
- "/glob",
- "/readable-stream",
- "/tar"
- ],
- "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "_shasum": "0fa2c64f932917c3433a0ded55363aae37416b7c",
- "_spec": "inherits@2",
- "_where": "/Users/gebauer/Workspace/hugo-dev-theme/themes/ag/node_modules/glob",
- "browser": "./inherits_browser.js",
- "bugs": {
- "url": "https://github.com/isaacs/inherits/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
- "devDependencies": {
- "tap": "^14.2.4"
- },
- "files": [
- "inherits.js",
- "inherits_browser.js"
- ],
- "homepage": "https://github.com/isaacs/inherits#readme",
- "keywords": [
- "inheritance",
- "class",
- "klass",
- "oop",
- "object-oriented",
- "inherits",
- "browser",
- "browserify"
- ],
- "license": "ISC",
- "main": "./inherits.js",
- "name": "inherits",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/inherits.git"
- },
- "scripts": {
- "test": "tap"
- },
- "version": "2.0.4"
-}
diff --git a/node_modules/is-arrayish/.editorconfig b/node_modules/is-arrayish/.editorconfig
deleted file mode 100644
index 4c017f8..0000000
--- a/node_modules/is-arrayish/.editorconfig
+++ /dev/null
@@ -1,18 +0,0 @@
-root = true
-
-[*]
-indent_style = tab
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.coffee]
-indent_style = space
-
-[{package.json,*.yml}]
-indent_style = space
-indent_size = 2
-
-[*.md]
-trim_trailing_whitespace = false
diff --git a/node_modules/is-arrayish/.istanbul.yml b/node_modules/is-arrayish/.istanbul.yml
deleted file mode 100644
index 19fbec3..0000000
--- a/node_modules/is-arrayish/.istanbul.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-instrumentation:
- excludes:
- - test.js
- - test/**/*
diff --git a/node_modules/is-arrayish/.npmignore b/node_modules/is-arrayish/.npmignore
deleted file mode 100644
index 8d5eacb..0000000
--- a/node_modules/is-arrayish/.npmignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/coverage/
-/test.js
-/test/
-*.sw[a-p]
-/node_modules/
diff --git a/node_modules/is-arrayish/.travis.yml b/node_modules/is-arrayish/.travis.yml
deleted file mode 100644
index 5a04243..0000000
--- a/node_modules/is-arrayish/.travis.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-language: node_js
-
-script:
- - node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --compilers coffee:coffee-script/register
- - cat coverage/lcov.info | node_modules/.bin/coveralls
-node_js:
- - "0.10"
- - "0.11"
- - "0.12"
- - "iojs"
-os:
- - linux
- - osx
-
-notifications:
- slack:
- secure: oOt8QGzdrPDsTMcyahtIq5Q+0U1iwfgJgFCxBLsomQ0bpIMn+y5m4viJydA2UinHPGc944HS3LMZS9iKQyv+DjTgbhUyNXqeVjtxCwRe37f5rKQlXVvdfmjHk2kln4H8DcK3r5Qd/+2hd9BeMsp2GImTrkRSud1CZQlhhe5IgZOboSoWpGVMMy1iazWT06tAtiB2LRVhmsdUaFZDWAhGZ+UAvCPf+mnBOAylIj+U0GDrofhfTi25RK0gddG2f/p2M1HCu49O6wECGWkt2hVei233DkNJyLLLJVcvmhf+aXkV5TjMyaoxh/HdcV4DrA7KvYuWmWWKsINa9hlwAsdd/FYmJ6PjRkKWas2JoQ1C+qOzDxyQvn3CaUZFKD99pdsq0rBBZujqXQKZZ/hWb/CE74BI6fKmqQkiEPaD/7uADj04FEg6HVBZaMCyauOaK5b3VC97twbALZ1qVxYV6mU+zSEvnUbpnjjvRO0fSl9ZHA+rzkW73kX3GmHY0wAozEZbSy7QLuZlQ2QtHmBLr+APaGMdL1sFF9qFfzqKy0WDbSE0WS6hpAEJpTsjYmeBrnI8UmK3m++iEgyQPvZoH9LhUT+ek7XIfHZMe04BmC6wuO24/RfpmR6bQK9VMarFCYlBiWxg/z30vkP0KTpUi3o/cqFm7/Noxc0i2LVqM3E0Sy4=
diff --git a/node_modules/is-arrayish/LICENSE b/node_modules/is-arrayish/LICENSE
deleted file mode 100644
index 0a5f461..0000000
--- a/node_modules/is-arrayish/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 JD Ballard
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/is-arrayish/README.md b/node_modules/is-arrayish/README.md
deleted file mode 100644
index 7d36072..0000000
--- a/node_modules/is-arrayish/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# node-is-arrayish [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/node-is-arrayish.svg?style=flat-square)](https://travis-ci.org/Qix-/node-is-arrayish) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/node-is-arrayish.svg?style=flat-square)](https://coveralls.io/r/Qix-/node-is-arrayish)
-> Determines if an object can be used like an Array
-
-## Example
-```javascript
-var isArrayish = require('is-arrayish');
-
-isArrayish([]); // true
-isArrayish({__proto__: []}); // true
-isArrayish({}); // false
-isArrayish({length:10}); // false
-```
-
-## License
-Licensed under the [MIT License](http://opensource.org/licenses/MIT).
-You can find a copy of it in [LICENSE](LICENSE).
diff --git a/node_modules/is-arrayish/index.js b/node_modules/is-arrayish/index.js
deleted file mode 100644
index 5b97186..0000000
--- a/node_modules/is-arrayish/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-module.exports = function isArrayish(obj) {
- if (!obj) {
- return false;
- }
-
- return obj instanceof Array || Array.isArray(obj) ||
- (obj.length >= 0 && obj.splice instanceof Function);
-};
diff --git a/node_modules/is-arrayish/package.json b/node_modules/is-arrayish/package.json
deleted file mode 100644
index 69c5b8a..0000000
--- a/node_modules/is-arrayish/package.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "_from": "is-arrayish@^0.2.1",
- "_id": "is-arrayish@0.2.1",
- "_inBundle": false,
- "_integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
- "_location": "/is-arrayish",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-arrayish@^0.2.1",
- "name": "is-arrayish",
- "escapedName": "is-arrayish",
- "rawSpec": "^0.2.1",
- "saveSpec": null,
- "fetchSpec": "^0.2.1"
- },
- "_requiredBy": [
- "/error-ex"
- ],
- "_resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
- "_shasum": "77c99840527aa8ecb1a8ba697b80645a7a926a9d",
- "_spec": "is-arrayish@^0.2.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/error-ex",
- "author": {
- "name": "Qix",
- "url": "http://github.com/qix-"
- },
- "bugs": {
- "url": "https://github.com/qix-/node-is-arrayish/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Determines if an object can be used as an array",
- "devDependencies": {
- "coffee-script": "^1.9.3",
- "coveralls": "^2.11.2",
- "istanbul": "^0.3.17",
- "mocha": "^2.2.5",
- "should": "^7.0.1",
- "xo": "^0.6.1"
- },
- "homepage": "https://github.com/qix-/node-is-arrayish#readme",
- "keywords": [
- "is",
- "array",
- "duck",
- "type",
- "arrayish",
- "similar",
- "proto",
- "prototype",
- "type"
- ],
- "license": "MIT",
- "name": "is-arrayish",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/qix-/node-is-arrayish.git"
- },
- "scripts": {
- "pretest": "xo",
- "test": "mocha --compilers coffee:coffee-script/register"
- },
- "version": "0.2.1"
-}
diff --git a/node_modules/is-finite/index.js b/node_modules/is-finite/index.js
deleted file mode 100644
index 421dd39..0000000
--- a/node_modules/is-finite/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = Number.isFinite || function (value) {
- return !(typeof value !== 'number' || value !== value || value === Infinity || value === -Infinity);
-};
diff --git a/node_modules/is-finite/license b/node_modules/is-finite/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/is-finite/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/is-finite/package.json b/node_modules/is-finite/package.json
deleted file mode 100644
index 4a14484..0000000
--- a/node_modules/is-finite/package.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "_from": "is-finite@^1.0.0",
- "_id": "is-finite@1.1.0",
- "_inBundle": false,
- "_integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==",
- "_location": "/is-finite",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-finite@^1.0.0",
- "name": "is-finite",
- "escapedName": "is-finite",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/repeating"
- ],
- "_resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz",
- "_shasum": "904135c77fb42c0641d6aa1bcdbc4daa8da082f3",
- "_spec": "is-finite@^1.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/repeating",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/is-finite/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "ES2015 Number.isFinite() ponyfill",
- "devDependencies": {
- "ava": "^3.2.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "funding": "https://github.com/sponsors/sindresorhus",
- "homepage": "https://github.com/sindresorhus/is-finite#readme",
- "keywords": [
- "es2015",
- "ponyfill",
- "polyfill",
- "shim",
- "number",
- "finite",
- "is"
- ],
- "license": "MIT",
- "name": "is-finite",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/is-finite.git"
- },
- "scripts": {
- "test": "ava"
- },
- "version": "1.1.0"
-}
diff --git a/node_modules/is-finite/readme.md b/node_modules/is-finite/readme.md
deleted file mode 100644
index c5ca7ef..0000000
--- a/node_modules/is-finite/readme.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# is-finite [![Build Status](https://travis-ci.org/sindresorhus/is-finite.svg?branch=master)](https://travis-ci.org/sindresorhus/is-finite)
-
-> ES2015 [`Number.isFinite()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite) [ponyfill](https://ponyfill.com)
-
-## Install
-
-```
-$ npm install is-finite
-```
-
-## Usage
-
-```js
-var numIsFinite = require('is-finite');
-
-numIsFinite(4);
-//=> true
-
-numIsFinite(Infinity);
-//=> false
-```
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-is-finite?utm_source=npm-is-finite&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
diff --git a/node_modules/is-fullwidth-code-point/index.js b/node_modules/is-fullwidth-code-point/index.js
deleted file mode 100644
index a7d3e38..0000000
--- a/node_modules/is-fullwidth-code-point/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-var numberIsNan = require('number-is-nan');
-
-module.exports = function (x) {
- if (numberIsNan(x)) {
- return false;
- }
-
- // https://github.com/nodejs/io.js/blob/cff7300a578be1b10001f2d967aaedc88aee6402/lib/readline.js#L1369
-
- // code points are derived from:
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
- if (x >= 0x1100 && (
- x <= 0x115f || // Hangul Jamo
- 0x2329 === x || // LEFT-POINTING ANGLE BRACKET
- 0x232a === x || // RIGHT-POINTING ANGLE BRACKET
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
- (0x2e80 <= x && x <= 0x3247 && x !== 0x303f) ||
- // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
- 0x3250 <= x && x <= 0x4dbf ||
- // CJK Unified Ideographs .. Yi Radicals
- 0x4e00 <= x && x <= 0xa4c6 ||
- // Hangul Jamo Extended-A
- 0xa960 <= x && x <= 0xa97c ||
- // Hangul Syllables
- 0xac00 <= x && x <= 0xd7a3 ||
- // CJK Compatibility Ideographs
- 0xf900 <= x && x <= 0xfaff ||
- // Vertical Forms
- 0xfe10 <= x && x <= 0xfe19 ||
- // CJK Compatibility Forms .. Small Form Variants
- 0xfe30 <= x && x <= 0xfe6b ||
- // Halfwidth and Fullwidth Forms
- 0xff01 <= x && x <= 0xff60 ||
- 0xffe0 <= x && x <= 0xffe6 ||
- // Kana Supplement
- 0x1b000 <= x && x <= 0x1b001 ||
- // Enclosed Ideographic Supplement
- 0x1f200 <= x && x <= 0x1f251 ||
- // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
- 0x20000 <= x && x <= 0x3fffd)) {
- return true;
- }
-
- return false;
-}
diff --git a/node_modules/is-fullwidth-code-point/license b/node_modules/is-fullwidth-code-point/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/is-fullwidth-code-point/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/is-fullwidth-code-point/package.json b/node_modules/is-fullwidth-code-point/package.json
deleted file mode 100644
index 4ecf355..0000000
--- a/node_modules/is-fullwidth-code-point/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "is-fullwidth-code-point@^1.0.0",
- "_id": "is-fullwidth-code-point@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
- "_location": "/is-fullwidth-code-point",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-fullwidth-code-point@^1.0.0",
- "name": "is-fullwidth-code-point",
- "escapedName": "is-fullwidth-code-point",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "_shasum": "ef9e31386f031a7f0d643af82fde50c457ef00cb",
- "_spec": "is-fullwidth-code-point@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/string-width",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/is-fullwidth-code-point/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "number-is-nan": "^1.0.0"
- },
- "deprecated": false,
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
- "devDependencies": {
- "ava": "0.0.4",
- "code-point-at": "^1.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/is-fullwidth-code-point#readme",
- "keywords": [
- "fullwidth",
- "full-width",
- "full",
- "width",
- "unicode",
- "character",
- "char",
- "string",
- "str",
- "codepoint",
- "code",
- "point",
- "is",
- "detect",
- "check"
- ],
- "license": "MIT",
- "name": "is-fullwidth-code-point",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/is-fullwidth-code-point.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/is-fullwidth-code-point/readme.md b/node_modules/is-fullwidth-code-point/readme.md
deleted file mode 100644
index 4936464..0000000
--- a/node_modules/is-fullwidth-code-point/readme.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
-
-> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
-
-
-## Install
-
-```
-$ npm install --save is-fullwidth-code-point
-```
-
-
-## Usage
-
-```js
-var isFullwidthCodePoint = require('is-fullwidth-code-point');
-
-isFullwidthCodePoint('谢'.codePointAt());
-//=> true
-
-isFullwidthCodePoint('a'.codePointAt());
-//=> false
-```
-
-
-## API
-
-### isFullwidthCodePoint(input)
-
-#### input
-
-Type: `number`
-
-[Code point](https://en.wikipedia.org/wiki/Code_point) of a character.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/is-typedarray/LICENSE.md b/node_modules/is-typedarray/LICENSE.md
deleted file mode 100644
index ee27ba4..0000000
--- a/node_modules/is-typedarray/LICENSE.md
+++ /dev/null
@@ -1,18 +0,0 @@
-This software is released under the MIT license:
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/is-typedarray/README.md b/node_modules/is-typedarray/README.md
deleted file mode 100644
index 2752863..0000000
--- a/node_modules/is-typedarray/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# is-typedarray [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges)
-
-Detect whether or not an object is a
-[Typed Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays).
-
-## Usage
-
-[![NPM](https://nodei.co/npm/is-typedarray.png)](https://nodei.co/npm/is-typedarray/)
-
-### isTypedArray(array)
-
-Returns `true` when array is a Typed Array, and `false` when it is not.
-
-## License
-
-MIT. See [LICENSE.md](http://github.com/hughsk/is-typedarray/blob/master/LICENSE.md) for details.
diff --git a/node_modules/is-typedarray/index.js b/node_modules/is-typedarray/index.js
deleted file mode 100644
index 5859603..0000000
--- a/node_modules/is-typedarray/index.js
+++ /dev/null
@@ -1,41 +0,0 @@
-module.exports = isTypedArray
-isTypedArray.strict = isStrictTypedArray
-isTypedArray.loose = isLooseTypedArray
-
-var toString = Object.prototype.toString
-var names = {
- '[object Int8Array]': true
- , '[object Int16Array]': true
- , '[object Int32Array]': true
- , '[object Uint8Array]': true
- , '[object Uint8ClampedArray]': true
- , '[object Uint16Array]': true
- , '[object Uint32Array]': true
- , '[object Float32Array]': true
- , '[object Float64Array]': true
-}
-
-function isTypedArray(arr) {
- return (
- isStrictTypedArray(arr)
- || isLooseTypedArray(arr)
- )
-}
-
-function isStrictTypedArray(arr) {
- return (
- arr instanceof Int8Array
- || arr instanceof Int16Array
- || arr instanceof Int32Array
- || arr instanceof Uint8Array
- || arr instanceof Uint8ClampedArray
- || arr instanceof Uint16Array
- || arr instanceof Uint32Array
- || arr instanceof Float32Array
- || arr instanceof Float64Array
- )
-}
-
-function isLooseTypedArray(arr) {
- return names[toString.call(arr)]
-}
diff --git a/node_modules/is-typedarray/package.json b/node_modules/is-typedarray/package.json
deleted file mode 100644
index eabea81..0000000
--- a/node_modules/is-typedarray/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_from": "is-typedarray@~1.0.0",
- "_id": "is-typedarray@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
- "_location": "/is-typedarray",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-typedarray@~1.0.0",
- "name": "is-typedarray",
- "escapedName": "is-typedarray",
- "rawSpec": "~1.0.0",
- "saveSpec": null,
- "fetchSpec": "~1.0.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "_shasum": "e479c80858df0c1b11ddda6940f96011fcda4a9a",
- "_spec": "is-typedarray@~1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Hugh Kennedy",
- "email": "hughskennedy@gmail.com",
- "url": "http://hughsk.io/"
- },
- "bugs": {
- "url": "https://github.com/hughsk/is-typedarray/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Detect whether or not an object is a Typed Array",
- "devDependencies": {
- "tape": "^2.13.1"
- },
- "homepage": "https://github.com/hughsk/is-typedarray",
- "keywords": [
- "typed",
- "array",
- "detect",
- "is",
- "util"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "is-typedarray",
- "repository": {
- "type": "git",
- "url": "git://github.com/hughsk/is-typedarray.git"
- },
- "scripts": {
- "test": "node test"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/is-typedarray/test.js b/node_modules/is-typedarray/test.js
deleted file mode 100644
index b0c176f..0000000
--- a/node_modules/is-typedarray/test.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var test = require('tape')
-var ista = require('./')
-
-test('strict', function(t) {
- t.ok(ista.strict(new Int8Array), 'Int8Array')
- t.ok(ista.strict(new Int16Array), 'Int16Array')
- t.ok(ista.strict(new Int32Array), 'Int32Array')
- t.ok(ista.strict(new Uint8Array), 'Uint8Array')
- t.ok(ista.strict(new Uint16Array), 'Uint16Array')
- t.ok(ista.strict(new Uint32Array), 'Uint32Array')
- t.ok(ista.strict(new Float32Array), 'Float32Array')
- t.ok(ista.strict(new Float64Array), 'Float64Array')
-
- t.ok(!ista.strict(new Array), 'Array')
- t.ok(!ista.strict([]), '[]')
-
- t.end()
-})
-
-test('loose', function(t) {
- t.ok(ista.loose(new Int8Array), 'Int8Array')
- t.ok(ista.loose(new Int16Array), 'Int16Array')
- t.ok(ista.loose(new Int32Array), 'Int32Array')
- t.ok(ista.loose(new Uint8Array), 'Uint8Array')
- t.ok(ista.loose(new Uint16Array), 'Uint16Array')
- t.ok(ista.loose(new Uint32Array), 'Uint32Array')
- t.ok(ista.loose(new Float32Array), 'Float32Array')
- t.ok(ista.loose(new Float64Array), 'Float64Array')
-
- t.ok(!ista.loose(new Array), 'Array')
- t.ok(!ista.loose([]), '[]')
-
- t.end()
-})
diff --git a/node_modules/is-utf8/LICENSE b/node_modules/is-utf8/LICENSE
deleted file mode 100644
index 2c8d4b9..0000000
--- a/node_modules/is-utf8/LICENSE
+++ /dev/null
@@ -1,9 +0,0 @@
-The MIT License (MIT)
-
-Copyright (C) 2014 Wei Fanzhe
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-  
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/is-utf8/README.md b/node_modules/is-utf8/README.md
deleted file mode 100644
index b62ddde..0000000
--- a/node_modules/is-utf8/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-#utf8 detector
-
-Detect if a Buffer is utf8 encoded.
-It need The minimum amount of bytes is 4.
-
-
-```javascript
- var fs = require('fs');
- var isUtf8 = require('is-utf8');
- var ansi = fs.readFileSync('ansi.txt');
- var utf8 = fs.readFileSync('utf8.txt');
-
- console.log('ansi.txt is utf8: '+isUtf8(ansi)); //false
- console.log('utf8.txt is utf8: '+isUtf8(utf8)); //true
-```
-
diff --git a/node_modules/is-utf8/is-utf8.js b/node_modules/is-utf8/is-utf8.js
deleted file mode 100644
index 8a5f15d..0000000
--- a/node_modules/is-utf8/is-utf8.js
+++ /dev/null
@@ -1,76 +0,0 @@
-
-exports = module.exports = function(bytes)
-{
- var i = 0;
- while(i < bytes.length)
- {
- if( (// ASCII
- bytes[i] == 0x09 ||
- bytes[i] == 0x0A ||
- bytes[i] == 0x0D ||
- (0x20 <= bytes[i] && bytes[i] <= 0x7E)
- )
- ) {
- i += 1;
- continue;
- }
-
- if( (// non-overlong 2-byte
- (0xC2 <= bytes[i] && bytes[i] <= 0xDF) &&
- (0x80 <= bytes[i+1] && bytes[i+1] <= 0xBF)
- )
- ) {
- i += 2;
- continue;
- }
-
- if( (// excluding overlongs
- bytes[i] == 0xE0 &&
- (0xA0 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&
- (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF)
- ) ||
- (// straight 3-byte
- ((0xE1 <= bytes[i] && bytes[i] <= 0xEC) ||
- bytes[i] == 0xEE ||
- bytes[i] == 0xEF) &&
- (0x80 <= bytes[i + 1] && bytes[i+1] <= 0xBF) &&
- (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)
- ) ||
- (// excluding surrogates
- bytes[i] == 0xED &&
- (0x80 <= bytes[i+1] && bytes[i+1] <= 0x9F) &&
- (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)
- )
- ) {
- i += 3;
- continue;
- }
-
- if( (// planes 1-3
- bytes[i] == 0xF0 &&
- (0x90 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&
- (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&
- (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)
- ) ||
- (// planes 4-15
- (0xF1 <= bytes[i] && bytes[i] <= 0xF3) &&
- (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&
- (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&
- (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)
- ) ||
- (// plane 16
- bytes[i] == 0xF4 &&
- (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0x8F) &&
- (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&
- (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)
- )
- ) {
- i += 4;
- continue;
- }
-
- return false;
- }
-
- return true;
-}
diff --git a/node_modules/is-utf8/package.json b/node_modules/is-utf8/package.json
deleted file mode 100644
index d7b02d7..0000000
--- a/node_modules/is-utf8/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_from": "is-utf8@^0.2.0",
- "_id": "is-utf8@0.2.1",
- "_inBundle": false,
- "_integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=",
- "_location": "/is-utf8",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-utf8@^0.2.0",
- "name": "is-utf8",
- "escapedName": "is-utf8",
- "rawSpec": "^0.2.0",
- "saveSpec": null,
- "fetchSpec": "^0.2.0"
- },
- "_requiredBy": [
- "/strip-bom"
- ],
- "_resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
- "_shasum": "4b0da1442104d1b336340e80797e865cf39f7d72",
- "_spec": "is-utf8@^0.2.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/strip-bom",
- "author": {
- "name": "wayfind"
- },
- "bugs": {
- "url": "https://github.com/wayfind/is-utf8/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Detect if a buffer is utf8 encoded.",
- "files": [
- "is-utf8.js"
- ],
- "homepage": "https://github.com/wayfind/is-utf8#readme",
- "keywords": [
- "utf8",
- "charset"
- ],
- "license": "MIT",
- "main": "is-utf8.js",
- "name": "is-utf8",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/wayfind/is-utf8.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "0.2.1"
-}
diff --git a/node_modules/isarray/.npmignore b/node_modules/isarray/.npmignore
deleted file mode 100644
index 3c3629e..0000000
--- a/node_modules/isarray/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/node_modules/isarray/.travis.yml b/node_modules/isarray/.travis.yml
deleted file mode 100644
index cc4dba2..0000000
--- a/node_modules/isarray/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - "0.8"
- - "0.10"
diff --git a/node_modules/isarray/Makefile b/node_modules/isarray/Makefile
deleted file mode 100644
index 787d56e..0000000
--- a/node_modules/isarray/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-
-test:
- @node_modules/.bin/tape test.js
-
-.PHONY: test
-
diff --git a/node_modules/isarray/README.md b/node_modules/isarray/README.md
deleted file mode 100644
index 16d2c59..0000000
--- a/node_modules/isarray/README.md
+++ /dev/null
@@ -1,60 +0,0 @@
-
-# isarray
-
-`Array#isArray` for older browsers.
-
-[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray)
-[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray)
-
-[![browser support](https://ci.testling.com/juliangruber/isarray.png)
-](https://ci.testling.com/juliangruber/isarray)
-
-## Usage
-
-```js
-var isArray = require('isarray');
-
-console.log(isArray([])); // => true
-console.log(isArray({})); // => false
-```
-
-## Installation
-
-With [npm](http://npmjs.org) do
-
-```bash
-$ npm install isarray
-```
-
-Then bundle for the browser with
-[browserify](https://github.com/substack/browserify).
-
-With [component](http://component.io) do
-
-```bash
-$ component install juliangruber/isarray
-```
-
-## License
-
-(MIT)
-
-Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/isarray/component.json b/node_modules/isarray/component.json
deleted file mode 100644
index 9e31b68..0000000
--- a/node_modules/isarray/component.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name" : "isarray",
- "description" : "Array#isArray for older browsers",
- "version" : "0.0.1",
- "repository" : "juliangruber/isarray",
- "homepage": "https://github.com/juliangruber/isarray",
- "main" : "index.js",
- "scripts" : [
- "index.js"
- ],
- "dependencies" : {},
- "keywords": ["browser","isarray","array"],
- "author": {
- "name": "Julian Gruber",
- "email": "mail@juliangruber.com",
- "url": "http://juliangruber.com"
- },
- "license": "MIT"
-}
diff --git a/node_modules/isarray/index.js b/node_modules/isarray/index.js
deleted file mode 100644
index a57f634..0000000
--- a/node_modules/isarray/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var toString = {}.toString;
-
-module.exports = Array.isArray || function (arr) {
- return toString.call(arr) == '[object Array]';
-};
diff --git a/node_modules/isarray/package.json b/node_modules/isarray/package.json
deleted file mode 100644
index 67fcb2b..0000000
--- a/node_modules/isarray/package.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "_from": "isarray@~1.0.0",
- "_id": "isarray@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
- "_location": "/isarray",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "isarray@~1.0.0",
- "name": "isarray",
- "escapedName": "isarray",
- "rawSpec": "~1.0.0",
- "saveSpec": null,
- "fetchSpec": "~1.0.0"
- },
- "_requiredBy": [
- "/readable-stream"
- ],
- "_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "_shasum": "bb935d48582cba168c06834957a54a3e07124f11",
- "_spec": "isarray@~1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/readable-stream",
- "author": {
- "name": "Julian Gruber",
- "email": "mail@juliangruber.com",
- "url": "http://juliangruber.com"
- },
- "bugs": {
- "url": "https://github.com/juliangruber/isarray/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Array#isArray for older browsers",
- "devDependencies": {
- "tape": "~2.13.4"
- },
- "homepage": "https://github.com/juliangruber/isarray",
- "keywords": [
- "browser",
- "isarray",
- "array"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "isarray",
- "repository": {
- "type": "git",
- "url": "git://github.com/juliangruber/isarray.git"
- },
- "scripts": {
- "test": "tape test.js"
- },
- "testling": {
- "files": "test.js",
- "browsers": [
- "ie/8..latest",
- "firefox/17..latest",
- "firefox/nightly",
- "chrome/22..latest",
- "chrome/canary",
- "opera/12..latest",
- "opera/next",
- "safari/5.1..latest",
- "ipad/6.0..latest",
- "iphone/6.0..latest",
- "android-browser/4.2..latest"
- ]
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/isarray/test.js b/node_modules/isarray/test.js
deleted file mode 100644
index e0c3444..0000000
--- a/node_modules/isarray/test.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var isArray = require('./');
-var test = require('tape');
-
-test('is array', function(t){
- t.ok(isArray([]));
- t.notOk(isArray({}));
- t.notOk(isArray(null));
- t.notOk(isArray(false));
-
- var obj = {};
- obj[0] = true;
- t.notOk(isArray(obj));
-
- var arr = [];
- arr.foo = 'bar';
- t.ok(isArray(arr));
-
- t.end();
-});
-
diff --git a/node_modules/isexe/.npmignore b/node_modules/isexe/.npmignore
deleted file mode 100644
index c1cb757..0000000
--- a/node_modules/isexe/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.nyc_output/
-coverage/
diff --git a/node_modules/isexe/LICENSE b/node_modules/isexe/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/isexe/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/isexe/README.md b/node_modules/isexe/README.md
deleted file mode 100644
index 35769e8..0000000
--- a/node_modules/isexe/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# isexe
-
-Minimal module to check if a file is executable, and a normal file.
-
-Uses `fs.stat` and tests against the `PATHEXT` environment variable on
-Windows.
-
-## USAGE
-
-```javascript
-var isexe = require('isexe')
-isexe('some-file-name', function (err, isExe) {
- if (err) {
- console.error('probably file does not exist or something', err)
- } else if (isExe) {
- console.error('this thing can be run')
- } else {
- console.error('cannot be run')
- }
-})
-
-// same thing but synchronous, throws errors
-var isExe = isexe.sync('some-file-name')
-
-// treat errors as just "not executable"
-isexe('maybe-missing-file', { ignoreErrors: true }, callback)
-var isExe = isexe.sync('maybe-missing-file', { ignoreErrors: true })
-```
-
-## API
-
-### `isexe(path, [options], [callback])`
-
-Check if the path is executable. If no callback provided, and a
-global `Promise` object is available, then a Promise will be returned.
-
-Will raise whatever errors may be raised by `fs.stat`, unless
-`options.ignoreErrors` is set to true.
-
-### `isexe.sync(path, [options])`
-
-Same as `isexe` but returns the value and throws any errors raised.
-
-### Options
-
-* `ignoreErrors` Treat all errors as "no, this is not executable", but
- don't raise them.
-* `uid` Number to use as the user id
-* `gid` Number to use as the group id
-* `pathExt` List of path extensions to use instead of `PATHEXT`
- environment variable on Windows.
diff --git a/node_modules/isexe/index.js b/node_modules/isexe/index.js
deleted file mode 100644
index 553fb32..0000000
--- a/node_modules/isexe/index.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var fs = require('fs')
-var core
-if (process.platform === 'win32' || global.TESTING_WINDOWS) {
- core = require('./windows.js')
-} else {
- core = require('./mode.js')
-}
-
-module.exports = isexe
-isexe.sync = sync
-
-function isexe (path, options, cb) {
- if (typeof options === 'function') {
- cb = options
- options = {}
- }
-
- if (!cb) {
- if (typeof Promise !== 'function') {
- throw new TypeError('callback not provided')
- }
-
- return new Promise(function (resolve, reject) {
- isexe(path, options || {}, function (er, is) {
- if (er) {
- reject(er)
- } else {
- resolve(is)
- }
- })
- })
- }
-
- core(path, options || {}, function (er, is) {
- // ignore EACCES because that just means we aren't allowed to run it
- if (er) {
- if (er.code === 'EACCES' || options && options.ignoreErrors) {
- er = null
- is = false
- }
- }
- cb(er, is)
- })
-}
-
-function sync (path, options) {
- // my kingdom for a filtered catch
- try {
- return core.sync(path, options || {})
- } catch (er) {
- if (options && options.ignoreErrors || er.code === 'EACCES') {
- return false
- } else {
- throw er
- }
- }
-}
diff --git a/node_modules/isexe/mode.js b/node_modules/isexe/mode.js
deleted file mode 100644
index 1995ea4..0000000
--- a/node_modules/isexe/mode.js
+++ /dev/null
@@ -1,41 +0,0 @@
-module.exports = isexe
-isexe.sync = sync
-
-var fs = require('fs')
-
-function isexe (path, options, cb) {
- fs.stat(path, function (er, stat) {
- cb(er, er ? false : checkStat(stat, options))
- })
-}
-
-function sync (path, options) {
- return checkStat(fs.statSync(path), options)
-}
-
-function checkStat (stat, options) {
- return stat.isFile() && checkMode(stat, options)
-}
-
-function checkMode (stat, options) {
- var mod = stat.mode
- var uid = stat.uid
- var gid = stat.gid
-
- var myUid = options.uid !== undefined ?
- options.uid : process.getuid && process.getuid()
- var myGid = options.gid !== undefined ?
- options.gid : process.getgid && process.getgid()
-
- var u = parseInt('100', 8)
- var g = parseInt('010', 8)
- var o = parseInt('001', 8)
- var ug = u | g
-
- var ret = (mod & o) ||
- (mod & g) && gid === myGid ||
- (mod & u) && uid === myUid ||
- (mod & ug) && myUid === 0
-
- return ret
-}
diff --git a/node_modules/isexe/package.json b/node_modules/isexe/package.json
deleted file mode 100644
index 1f7ed7a..0000000
--- a/node_modules/isexe/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_from": "isexe@^2.0.0",
- "_id": "isexe@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
- "_location": "/isexe",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "isexe@^2.0.0",
- "name": "isexe",
- "escapedName": "isexe",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/which"
- ],
- "_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "_shasum": "e8fbf374dc556ff8947a10dcb0572d633f2cfa10",
- "_spec": "isexe@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/which",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/isexe/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Minimal module to check if a file is executable.",
- "devDependencies": {
- "mkdirp": "^0.5.1",
- "rimraf": "^2.5.0",
- "tap": "^10.3.0"
- },
- "directories": {
- "test": "test"
- },
- "homepage": "https://github.com/isaacs/isexe#readme",
- "keywords": [],
- "license": "ISC",
- "main": "index.js",
- "name": "isexe",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/isaacs/isexe.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test/*.js --100"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/isexe/test/basic.js b/node_modules/isexe/test/basic.js
deleted file mode 100644
index d926df6..0000000
--- a/node_modules/isexe/test/basic.js
+++ /dev/null
@@ -1,221 +0,0 @@
-var t = require('tap')
-var fs = require('fs')
-var path = require('path')
-var fixture = path.resolve(__dirname, 'fixtures')
-var meow = fixture + '/meow.cat'
-var mine = fixture + '/mine.cat'
-var ours = fixture + '/ours.cat'
-var fail = fixture + '/fail.false'
-var noent = fixture + '/enoent.exe'
-var mkdirp = require('mkdirp')
-var rimraf = require('rimraf')
-
-var isWindows = process.platform === 'win32'
-var hasAccess = typeof fs.access === 'function'
-var winSkip = isWindows && 'windows'
-var accessSkip = !hasAccess && 'no fs.access function'
-var hasPromise = typeof Promise === 'function'
-var promiseSkip = !hasPromise && 'no global Promise'
-
-function reset () {
- delete require.cache[require.resolve('../')]
- return require('../')
-}
-
-t.test('setup fixtures', function (t) {
- rimraf.sync(fixture)
- mkdirp.sync(fixture)
- fs.writeFileSync(meow, '#!/usr/bin/env cat\nmeow\n')
- fs.chmodSync(meow, parseInt('0755', 8))
- fs.writeFileSync(fail, '#!/usr/bin/env false\n')
- fs.chmodSync(fail, parseInt('0644', 8))
- fs.writeFileSync(mine, '#!/usr/bin/env cat\nmine\n')
- fs.chmodSync(mine, parseInt('0744', 8))
- fs.writeFileSync(ours, '#!/usr/bin/env cat\nours\n')
- fs.chmodSync(ours, parseInt('0754', 8))
- t.end()
-})
-
-t.test('promise', { skip: promiseSkip }, function (t) {
- var isexe = reset()
- t.test('meow async', function (t) {
- isexe(meow).then(function (is) {
- t.ok(is)
- t.end()
- })
- })
- t.test('fail async', function (t) {
- isexe(fail).then(function (is) {
- t.notOk(is)
- t.end()
- })
- })
- t.test('noent async', function (t) {
- isexe(noent).catch(function (er) {
- t.ok(er)
- t.end()
- })
- })
- t.test('noent ignore async', function (t) {
- isexe(noent, { ignoreErrors: true }).then(function (is) {
- t.notOk(is)
- t.end()
- })
- })
- t.end()
-})
-
-t.test('no promise', function (t) {
- global.Promise = null
- var isexe = reset()
- t.throws('try to meow a promise', function () {
- isexe(meow)
- })
- t.end()
-})
-
-t.test('access', { skip: accessSkip || winSkip }, function (t) {
- runTest(t)
-})
-
-t.test('mode', { skip: winSkip }, function (t) {
- delete fs.access
- delete fs.accessSync
- var isexe = reset()
- t.ok(isexe.sync(ours, { uid: 0, gid: 0 }))
- t.ok(isexe.sync(mine, { uid: 0, gid: 0 }))
- runTest(t)
-})
-
-t.test('windows', function (t) {
- global.TESTING_WINDOWS = true
- var pathExt = '.EXE;.CAT;.CMD;.COM'
- t.test('pathExt option', function (t) {
- runTest(t, { pathExt: '.EXE;.CAT;.CMD;.COM' })
- })
- t.test('pathExt env', function (t) {
- process.env.PATHEXT = pathExt
- runTest(t)
- })
- t.test('no pathExt', function (t) {
- // with a pathExt of '', any filename is fine.
- // so the "fail" one would still pass.
- runTest(t, { pathExt: '', skipFail: true })
- })
- t.test('pathext with empty entry', function (t) {
- // with a pathExt of '', any filename is fine.
- // so the "fail" one would still pass.
- runTest(t, { pathExt: ';' + pathExt, skipFail: true })
- })
- t.end()
-})
-
-t.test('cleanup', function (t) {
- rimraf.sync(fixture)
- t.end()
-})
-
-function runTest (t, options) {
- var isexe = reset()
-
- var optionsIgnore = Object.create(options || {})
- optionsIgnore.ignoreErrors = true
-
- if (!options || !options.skipFail) {
- t.notOk(isexe.sync(fail, options))
- }
- t.notOk(isexe.sync(noent, optionsIgnore))
- if (!options) {
- t.ok(isexe.sync(meow))
- } else {
- t.ok(isexe.sync(meow, options))
- }
-
- t.ok(isexe.sync(mine, options))
- t.ok(isexe.sync(ours, options))
- t.throws(function () {
- isexe.sync(noent, options)
- })
-
- t.test('meow async', function (t) {
- if (!options) {
- isexe(meow, function (er, is) {
- if (er) {
- throw er
- }
- t.ok(is)
- t.end()
- })
- } else {
- isexe(meow, options, function (er, is) {
- if (er) {
- throw er
- }
- t.ok(is)
- t.end()
- })
- }
- })
-
- t.test('mine async', function (t) {
- isexe(mine, options, function (er, is) {
- if (er) {
- throw er
- }
- t.ok(is)
- t.end()
- })
- })
-
- t.test('ours async', function (t) {
- isexe(ours, options, function (er, is) {
- if (er) {
- throw er
- }
- t.ok(is)
- t.end()
- })
- })
-
- if (!options || !options.skipFail) {
- t.test('fail async', function (t) {
- isexe(fail, options, function (er, is) {
- if (er) {
- throw er
- }
- t.notOk(is)
- t.end()
- })
- })
- }
-
- t.test('noent async', function (t) {
- isexe(noent, options, function (er, is) {
- t.ok(er)
- t.notOk(is)
- t.end()
- })
- })
-
- t.test('noent ignore async', function (t) {
- isexe(noent, optionsIgnore, function (er, is) {
- if (er) {
- throw er
- }
- t.notOk(is)
- t.end()
- })
- })
-
- t.test('directory is not executable', function (t) {
- isexe(__dirname, options, function (er, is) {
- if (er) {
- throw er
- }
- t.notOk(is)
- t.end()
- })
- })
-
- t.end()
-}
diff --git a/node_modules/isexe/windows.js b/node_modules/isexe/windows.js
deleted file mode 100644
index 3499673..0000000
--- a/node_modules/isexe/windows.js
+++ /dev/null
@@ -1,42 +0,0 @@
-module.exports = isexe
-isexe.sync = sync
-
-var fs = require('fs')
-
-function checkPathExt (path, options) {
- var pathext = options.pathExt !== undefined ?
- options.pathExt : process.env.PATHEXT
-
- if (!pathext) {
- return true
- }
-
- pathext = pathext.split(';')
- if (pathext.indexOf('') !== -1) {
- return true
- }
- for (var i = 0; i < pathext.length; i++) {
- var p = pathext[i].toLowerCase()
- if (p && path.substr(-p.length).toLowerCase() === p) {
- return true
- }
- }
- return false
-}
-
-function checkStat (stat, path, options) {
- if (!stat.isSymbolicLink() && !stat.isFile()) {
- return false
- }
- return checkPathExt(path, options)
-}
-
-function isexe (path, options, cb) {
- fs.stat(path, function (er, stat) {
- cb(er, er ? false : checkStat(stat, path, options))
- })
-}
-
-function sync (path, options) {
- return checkStat(fs.statSync(path), path, options)
-}
diff --git a/node_modules/isstream/.jshintrc b/node_modules/isstream/.jshintrc
deleted file mode 100644
index c8ef3ca..0000000
--- a/node_modules/isstream/.jshintrc
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "predef": [ ]
- , "bitwise": false
- , "camelcase": false
- , "curly": false
- , "eqeqeq": false
- , "forin": false
- , "immed": false
- , "latedef": false
- , "noarg": true
- , "noempty": true
- , "nonew": true
- , "plusplus": false
- , "quotmark": true
- , "regexp": false
- , "undef": true
- , "unused": true
- , "strict": false
- , "trailing": true
- , "maxlen": 120
- , "asi": true
- , "boss": true
- , "debug": true
- , "eqnull": true
- , "esnext": true
- , "evil": true
- , "expr": true
- , "funcscope": false
- , "globalstrict": false
- , "iterator": false
- , "lastsemic": true
- , "laxbreak": true
- , "laxcomma": true
- , "loopfunc": true
- , "multistr": false
- , "onecase": false
- , "proto": false
- , "regexdash": false
- , "scripturl": true
- , "smarttabs": false
- , "shadow": false
- , "sub": true
- , "supernew": false
- , "validthis": true
- , "browser": true
- , "couch": false
- , "devel": false
- , "dojo": false
- , "mootools": false
- , "node": true
- , "nonstandard": true
- , "prototypejs": false
- , "rhino": false
- , "worker": true
- , "wsh": false
- , "nomen": false
- , "onevar": false
- , "passfail": false
-} \ No newline at end of file
diff --git a/node_modules/isstream/.npmignore b/node_modules/isstream/.npmignore
deleted file mode 100644
index aa1ec1e..0000000
--- a/node_modules/isstream/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-*.tgz
diff --git a/node_modules/isstream/.travis.yml b/node_modules/isstream/.travis.yml
deleted file mode 100644
index 1fec2ab..0000000
--- a/node_modules/isstream/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-language: node_js
-node_js:
- - "0.8"
- - "0.10"
- - "0.11"
-branches:
- only:
- - master
-notifications:
- email:
- - rod@vagg.org
-script: npm test
diff --git a/node_modules/isstream/LICENSE.md b/node_modules/isstream/LICENSE.md
deleted file mode 100644
index 43f7153..0000000
--- a/node_modules/isstream/LICENSE.md
+++ /dev/null
@@ -1,11 +0,0 @@
-The MIT License (MIT)
-=====================
-
-Copyright (c) 2015 Rod Vagg
----------------------------
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/isstream/README.md b/node_modules/isstream/README.md
deleted file mode 100644
index 06770e8..0000000
--- a/node_modules/isstream/README.md
+++ /dev/null
@@ -1,66 +0,0 @@
-# isStream
-
-[![Build Status](https://secure.travis-ci.org/rvagg/isstream.png)](http://travis-ci.org/rvagg/isstream)
-
-**Test if an object is a `Stream`**
-
-[![NPM](https://nodei.co/npm/isstream.svg)](https://nodei.co/npm/isstream/)
-
-The missing `Stream.isStream(obj)`: determine if an object is standard Node.js `Stream`. Works for Node-core `Stream` objects (for 0.8, 0.10, 0.11, and in theory, older and newer versions) and all versions of **[readable-stream](https://github.com/isaacs/readable-stream)**.
-
-## Usage:
-
-```js
-var isStream = require('isstream')
-var Stream = require('stream')
-
-isStream(new Stream()) // true
-
-isStream({}) // false
-
-isStream(new Stream.Readable()) // true
-isStream(new Stream.Writable()) // true
-isStream(new Stream.Duplex()) // true
-isStream(new Stream.Transform()) // true
-isStream(new Stream.PassThrough()) // true
-```
-
-## But wait! There's more!
-
-You can also test for `isReadable(obj)`, `isWritable(obj)` and `isDuplex(obj)` to test for implementations of Streams2 (and Streams3) base classes.
-
-```js
-var isReadable = require('isstream').isReadable
-var isWritable = require('isstream').isWritable
-var isDuplex = require('isstream').isDuplex
-var Stream = require('stream')
-
-isReadable(new Stream()) // false
-isWritable(new Stream()) // false
-isDuplex(new Stream()) // false
-
-isReadable(new Stream.Readable()) // true
-isReadable(new Stream.Writable()) // false
-isReadable(new Stream.Duplex()) // true
-isReadable(new Stream.Transform()) // true
-isReadable(new Stream.PassThrough()) // true
-
-isWritable(new Stream.Readable()) // false
-isWritable(new Stream.Writable()) // true
-isWritable(new Stream.Duplex()) // true
-isWritable(new Stream.Transform()) // true
-isWritable(new Stream.PassThrough()) // true
-
-isDuplex(new Stream.Readable()) // false
-isDuplex(new Stream.Writable()) // false
-isDuplex(new Stream.Duplex()) // true
-isDuplex(new Stream.Transform()) // true
-isDuplex(new Stream.PassThrough()) // true
-```
-
-*Reminder: when implementing your own streams, please [use **readable-stream** rather than core streams](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html).*
-
-
-## License
-
-**isStream** is Copyright (c) 2015 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.
diff --git a/node_modules/isstream/isstream.js b/node_modules/isstream/isstream.js
deleted file mode 100644
index a1d104a..0000000
--- a/node_modules/isstream/isstream.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var stream = require('stream')
-
-
-function isStream (obj) {
- return obj instanceof stream.Stream
-}
-
-
-function isReadable (obj) {
- return isStream(obj) && typeof obj._read == 'function' && typeof obj._readableState == 'object'
-}
-
-
-function isWritable (obj) {
- return isStream(obj) && typeof obj._write == 'function' && typeof obj._writableState == 'object'
-}
-
-
-function isDuplex (obj) {
- return isReadable(obj) && isWritable(obj)
-}
-
-
-module.exports = isStream
-module.exports.isReadable = isReadable
-module.exports.isWritable = isWritable
-module.exports.isDuplex = isDuplex
diff --git a/node_modules/isstream/package.json b/node_modules/isstream/package.json
deleted file mode 100644
index 570fedf..0000000
--- a/node_modules/isstream/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "_from": "isstream@~0.1.2",
- "_id": "isstream@0.1.2",
- "_inBundle": false,
- "_integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
- "_location": "/isstream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "isstream@~0.1.2",
- "name": "isstream",
- "escapedName": "isstream",
- "rawSpec": "~0.1.2",
- "saveSpec": null,
- "fetchSpec": "~0.1.2"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
- "_shasum": "47e63f7af55afa6f92e1500e690eb8b8529c099a",
- "_spec": "isstream@~0.1.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Rod Vagg",
- "email": "rod@vagg.org"
- },
- "bugs": {
- "url": "https://github.com/rvagg/isstream/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Determine if an object is a Stream",
- "devDependencies": {
- "core-util-is": "~1.0.0",
- "inherits": "~2.0.1",
- "isarray": "0.0.1",
- "string_decoder": "~0.10.x",
- "tape": "~2.12.3"
- },
- "homepage": "https://github.com/rvagg/isstream",
- "keywords": [
- "stream",
- "type",
- "streams",
- "readable-stream",
- "hippo"
- ],
- "license": "MIT",
- "main": "isstream.js",
- "name": "isstream",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/rvagg/isstream.git"
- },
- "scripts": {
- "test": "tar --xform 's/^package/readable-stream-1.0/' -zxf readable-stream-1.0.*.tgz && tar --xform 's/^package/readable-stream-1.1/' -zxf readable-stream-1.1.*.tgz && node test.js; rm -rf readable-stream-1.?/"
- },
- "version": "0.1.2"
-}
diff --git a/node_modules/isstream/test.js b/node_modules/isstream/test.js
deleted file mode 100644
index 8c950c5..0000000
--- a/node_modules/isstream/test.js
+++ /dev/null
@@ -1,168 +0,0 @@
-var tape = require('tape')
- , EE = require('events').EventEmitter
- , util = require('util')
-
-
- , isStream = require('./')
- , isReadable = require('./').isReadable
- , isWritable = require('./').isWritable
- , isDuplex = require('./').isDuplex
-
- , CoreStreams = require('stream')
- , ReadableStream10 = require('./readable-stream-1.0/')
- , ReadableStream11 = require('./readable-stream-1.1/')
-
-
-function test (pass, type, stream) {
- tape('isStream(' + type + ')', function (t) {
- t.plan(1)
- t.ok(pass === isStream(stream), type)
- })
-}
-
-
-function testReadable (pass, type, stream) {
- tape('isReadable(' + type + ')', function (t) {
- t.plan(1)
- t.ok(pass === isReadable(stream), type)
- })
-}
-
-
-function testWritable (pass, type, stream) {
- tape('isWritable(' + type + ')', function (t) {
- t.plan(1)
- t.ok(pass === isWritable(stream), type)
- })
-}
-
-
-function testDuplex (pass, type, stream) {
- tape('isDuplex(' + type + ')', function (t) {
- t.plan(1)
- t.ok(pass === isDuplex(stream), type)
- })
-}
-
-
-[ undefined, null, '', true, false, 0, 1, 1.0, 'string', {}, function foo () {} ].forEach(function (o) {
- test(false, 'non-stream / primitive: ' + (JSON.stringify(o) || (o && o.toString()) || o), o)
-})
-
-
-test(false, 'fake stream obj', { pipe: function () {} })
-
-
-;(function () {
-
- // looks like a stream!
-
- function Stream () {
- EE.call(this)
- }
- util.inherits(Stream, EE)
- Stream.prototype.pipe = function () {}
- Stream.Stream = Stream
-
- test(false, 'fake stream "new Stream()"', new Stream())
-
-}())
-
-
-test(true, 'CoreStreams.Stream', new (CoreStreams.Stream)())
-test(true, 'CoreStreams.Readable', new (CoreStreams.Readable)())
-test(true, 'CoreStreams.Writable', new (CoreStreams.Writable)())
-test(true, 'CoreStreams.Duplex', new (CoreStreams.Duplex)())
-test(true, 'CoreStreams.Transform', new (CoreStreams.Transform)())
-test(true, 'CoreStreams.PassThrough', new (CoreStreams.PassThrough)())
-
-test(true, 'ReadableStream10.Readable', new (ReadableStream10.Readable)())
-test(true, 'ReadableStream10.Writable', new (ReadableStream10.Writable)())
-test(true, 'ReadableStream10.Duplex', new (ReadableStream10.Duplex)())
-test(true, 'ReadableStream10.Transform', new (ReadableStream10.Transform)())
-test(true, 'ReadableStream10.PassThrough', new (ReadableStream10.PassThrough)())
-
-test(true, 'ReadableStream11.Readable', new (ReadableStream11.Readable)())
-test(true, 'ReadableStream11.Writable', new (ReadableStream11.Writable)())
-test(true, 'ReadableStream11.Duplex', new (ReadableStream11.Duplex)())
-test(true, 'ReadableStream11.Transform', new (ReadableStream11.Transform)())
-test(true, 'ReadableStream11.PassThrough', new (ReadableStream11.PassThrough)())
-
-
-testReadable(false, 'CoreStreams.Stream', new (CoreStreams.Stream)())
-testReadable(true, 'CoreStreams.Readable', new (CoreStreams.Readable)())
-testReadable(false, 'CoreStreams.Writable', new (CoreStreams.Writable)())
-testReadable(true, 'CoreStreams.Duplex', new (CoreStreams.Duplex)())
-testReadable(true, 'CoreStreams.Transform', new (CoreStreams.Transform)())
-testReadable(true, 'CoreStreams.PassThrough', new (CoreStreams.PassThrough)())
-
-testReadable(true, 'ReadableStream10.Readable', new (ReadableStream10.Readable)())
-testReadable(false, 'ReadableStream10.Writable', new (ReadableStream10.Writable)())
-testReadable(true, 'ReadableStream10.Duplex', new (ReadableStream10.Duplex)())
-testReadable(true, 'ReadableStream10.Transform', new (ReadableStream10.Transform)())
-testReadable(true, 'ReadableStream10.PassThrough', new (ReadableStream10.PassThrough)())
-
-testReadable(true, 'ReadableStream11.Readable', new (ReadableStream11.Readable)())
-testReadable(false, 'ReadableStream11.Writable', new (ReadableStream11.Writable)())
-testReadable(true, 'ReadableStream11.Duplex', new (ReadableStream11.Duplex)())
-testReadable(true, 'ReadableStream11.Transform', new (ReadableStream11.Transform)())
-testReadable(true, 'ReadableStream11.PassThrough', new (ReadableStream11.PassThrough)())
-
-
-testWritable(false, 'CoreStreams.Stream', new (CoreStreams.Stream)())
-testWritable(false, 'CoreStreams.Readable', new (CoreStreams.Readable)())
-testWritable(true, 'CoreStreams.Writable', new (CoreStreams.Writable)())
-testWritable(true, 'CoreStreams.Duplex', new (CoreStreams.Duplex)())
-testWritable(true, 'CoreStreams.Transform', new (CoreStreams.Transform)())
-testWritable(true, 'CoreStreams.PassThrough', new (CoreStreams.PassThrough)())
-
-testWritable(false, 'ReadableStream10.Readable', new (ReadableStream10.Readable)())
-testWritable(true, 'ReadableStream10.Writable', new (ReadableStream10.Writable)())
-testWritable(true, 'ReadableStream10.Duplex', new (ReadableStream10.Duplex)())
-testWritable(true, 'ReadableStream10.Transform', new (ReadableStream10.Transform)())
-testWritable(true, 'ReadableStream10.PassThrough', new (ReadableStream10.PassThrough)())
-
-testWritable(false, 'ReadableStream11.Readable', new (ReadableStream11.Readable)())
-testWritable(true, 'ReadableStream11.Writable', new (ReadableStream11.Writable)())
-testWritable(true, 'ReadableStream11.Duplex', new (ReadableStream11.Duplex)())
-testWritable(true, 'ReadableStream11.Transform', new (ReadableStream11.Transform)())
-testWritable(true, 'ReadableStream11.PassThrough', new (ReadableStream11.PassThrough)())
-
-
-testDuplex(false, 'CoreStreams.Stream', new (CoreStreams.Stream)())
-testDuplex(false, 'CoreStreams.Readable', new (CoreStreams.Readable)())
-testDuplex(false, 'CoreStreams.Writable', new (CoreStreams.Writable)())
-testDuplex(true, 'CoreStreams.Duplex', new (CoreStreams.Duplex)())
-testDuplex(true, 'CoreStreams.Transform', new (CoreStreams.Transform)())
-testDuplex(true, 'CoreStreams.PassThrough', new (CoreStreams.PassThrough)())
-
-testDuplex(false, 'ReadableStream10.Readable', new (ReadableStream10.Readable)())
-testDuplex(false, 'ReadableStream10.Writable', new (ReadableStream10.Writable)())
-testDuplex(true, 'ReadableStream10.Duplex', new (ReadableStream10.Duplex)())
-testDuplex(true, 'ReadableStream10.Transform', new (ReadableStream10.Transform)())
-testDuplex(true, 'ReadableStream10.PassThrough', new (ReadableStream10.PassThrough)())
-
-testDuplex(false, 'ReadableStream11.Readable', new (ReadableStream11.Readable)())
-testDuplex(false, 'ReadableStream11.Writable', new (ReadableStream11.Writable)())
-testDuplex(true, 'ReadableStream11.Duplex', new (ReadableStream11.Duplex)())
-testDuplex(true, 'ReadableStream11.Transform', new (ReadableStream11.Transform)())
-testDuplex(true, 'ReadableStream11.PassThrough', new (ReadableStream11.PassThrough)())
-
-
-;[ CoreStreams, ReadableStream10, ReadableStream11 ].forEach(function (p) {
- [ 'Stream', 'Readable', 'Writable', 'Duplex', 'Transform', 'PassThrough' ].forEach(function (k) {
- if (!p[k])
- return
-
- function SubStream () {
- p[k].call(this)
- }
- util.inherits(SubStream, p[k])
-
- test(true, 'Stream subclass: ' + p.name + '.' + k, new SubStream())
-
- })
-})
-
-
-
diff --git a/node_modules/js-base64/.attic/test-moment/dankogai.js b/node_modules/js-base64/.attic/test-moment/dankogai.js
deleted file mode 100644
index b631414..0000000
--- a/node_modules/js-base64/.attic/test-moment/dankogai.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * $Id: dankogai.js,v 0.4 2012/08/24 05:23:18 dankogai Exp dankogai $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-describe('basic', function () {
- it('d', is(Base64.encode('d'), 'ZA=='));
- it('da', is(Base64.encode('da'), 'ZGE='));
- it('dan', is(Base64.encode('dan'), 'ZGFu'));
- it('ZA==', is(Base64.decode('ZA=='), 'd' ));
- it('ZGE=', is(Base64.decode('ZGE='), 'da' ));
- it('ZGFu', is(Base64.decode('ZGFu'), 'dan' ));
-});
-
-describe('whitespace', function () {
- it('Z A==', is(Base64.decode('ZA =='), 'd' ));
- it('ZG E=', is(Base64.decode('ZG E='), 'da' ));
- it('ZGF u', is(Base64.decode('ZGF u'), 'dan' ));
-});
-
-describe('null', function () {
- it('\\0', is(Base64.encode('\0'), 'AA=='));
- it('\\0\\0', is(Base64.encode('\0\0'), 'AAA='));
- it('\\0\\0\\0', is(Base64.encode('\0\0\0'), 'AAAA'));
- it('AA==', is(Base64.decode('AA=='), '\0' ));
- it('AAA=', is(Base64.decode('AAA='), '\0\0' ));
- it('AAAA', is(Base64.decode('AAAA'), '\0\0\0'));
-});
-
-describe('Base64', function () {
- it('.encode', is(Base64.encode('小飼弾'), '5bCP6aO85by+'));
- it('.encodeURI', is(Base64.encodeURI('小飼弾'), '5bCP6aO85by-'));
- it('.decode', is(Base64.decode('5bCP6aO85by+'), '小飼弾'));
- it('.decode', is(Base64.decode('5bCP6aO85by-'), '小飼弾'));
-});
diff --git a/node_modules/js-base64/.attic/test-moment/es5.js b/node_modules/js-base64/.attic/test-moment/es5.js
deleted file mode 100644
index ef134f6..0000000
--- a/node_modules/js-base64/.attic/test-moment/es5.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * $Id: es5.js,v 0.1 2012/08/23 19:43:17 dankogai Exp dankogai $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-if ('extendString' in Base64){
- Base64.extendString();
- describe('String', function () {
- it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
- it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
- it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
- it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
- it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));
- });
-}
diff --git a/node_modules/js-base64/.attic/test-moment/es6.js b/node_modules/js-base64/.attic/test-moment/es6.js
deleted file mode 100644
index 7dbe475..0000000
--- a/node_modules/js-base64/.attic/test-moment/es6.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * $Id: es6.js,v 0.1 2017/11/29 21:43:17 ufolux Exp ufolux $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-import {Base64} from '../base64'
-
-var assert = assert || require("assert");
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-if ('extendString' in Base64){
- Base64.extendString();
- describe('String', function () {
- it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
- it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
- it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
- it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
- it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));
- });
-}
diff --git a/node_modules/js-base64/.attic/test-moment/index.html b/node_modules/js-base64/.attic/test-moment/index.html
deleted file mode 100644
index 13136c9..0000000
--- a/node_modules/js-base64/.attic/test-moment/index.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
- <head>
- <meta charset="utf-8">
- <title>Mocha Tests</title>
- <link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
- </head>
- <body>
- <div id="mocha"></div>
-
- <script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script>
- <script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
- <script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
- <script>
- mocha.setup('bdd');
- </script>
- <script src="./moment.js"></script>
- <script src="../base64.js"></script>
- <script>
- var assert = function(expr, msg) {
- if (!expr) throw new Error(msg || 'failed');
- };
- assert.equal = function(a, b, msg) {
- if (a !== b) throw new Error(msg || ('failed : '+a+','+b));
- };
- </script>
- <script src="./dankogai.js"></script>
- <script src="./es5.js"></script>
- <script src="./large.js"></script>
- <script src="./yoshinoya.js"></script>
- <script>
- $(function() {
- mocha.run();
- });
- </script>
-</head>
-<body>
- $Id: index.html,v 0.3 2017/09/11 08:43:43 dankogai Exp dankogai $
- <div id="mocha"></div>
-</body>
-</html>
diff --git a/node_modules/js-base64/.attic/test-moment/large.js b/node_modules/js-base64/.attic/test-moment/large.js
deleted file mode 100644
index 20d7842..0000000
--- a/node_modules/js-base64/.attic/test-moment/large.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * $Id: large.js,v 0.3 2012/08/23 19:14:37 dankogai Exp dankogai $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-var seed = function () {
- var a, i;
- for (a = [], i = 0; i < 256; i++) {
- a.push(String.fromCharCode(i));
- }
- return a.join('');
-}();
-describe('Base64', function () {
- for (var i = 0, str = seed; i < 16; str += str, i++) {
- it(''+str.length, is(Base64.decode(Base64.encode(str)), str));
- }
-});
diff --git a/node_modules/js-base64/.attic/test-moment/moment.js b/node_modules/js-base64/.attic/test-moment/moment.js
deleted file mode 100644
index 71b15f9..0000000
--- a/node_modules/js-base64/.attic/test-moment/moment.js
+++ /dev/null
@@ -1,4535 +0,0 @@
-//! moment.js
-//! version : 2.20.1
-//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
-//! license : MIT
-//! momentjs.com
-
-;(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
- typeof define === 'function' && define.amd ? define(factory) :
- global.moment = factory()
-}(this, (function () { 'use strict';
-
-var hookCallback;
-
-function hooks () {
- return hookCallback.apply(null, arguments);
-}
-
-// This is done to register the method called with moment()
-// without creating circular dependencies.
-function setHookCallback (callback) {
- hookCallback = callback;
-}
-
-function isArray(input) {
- return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
-}
-
-function isObject(input) {
- // IE8 will treat undefined and null as object if it wasn't for
- // input != null
- return input != null && Object.prototype.toString.call(input) === '[object Object]';
-}
-
-function isObjectEmpty(obj) {
- if (Object.getOwnPropertyNames) {
- return (Object.getOwnPropertyNames(obj).length === 0);
- } else {
- var k;
- for (k in obj) {
- if (obj.hasOwnProperty(k)) {
- return false;
- }
- }
- return true;
- }
-}
-
-function isUndefined(input) {
- return input === void 0;
-}
-
-function isNumber(input) {
- return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
-}
-
-function isDate(input) {
- return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
-}
-
-function map(arr, fn) {
- var res = [], i;
- for (i = 0; i < arr.length; ++i) {
- res.push(fn(arr[i], i));
- }
- return res;
-}
-
-function hasOwnProp(a, b) {
- return Object.prototype.hasOwnProperty.call(a, b);
-}
-
-function extend(a, b) {
- for (var i in b) {
- if (hasOwnProp(b, i)) {
- a[i] = b[i];
- }
- }
-
- if (hasOwnProp(b, 'toString')) {
- a.toString = b.toString;
- }
-
- if (hasOwnProp(b, 'valueOf')) {
- a.valueOf = b.valueOf;
- }
-
- return a;
-}
-
-function createUTC (input, format, locale, strict) {
- return createLocalOrUTC(input, format, locale, strict, true).utc();
-}
-
-function defaultParsingFlags() {
- // We need to deep clone this object.
- return {
- empty : false,
- unusedTokens : [],
- unusedInput : [],
- overflow : -2,
- charsLeftOver : 0,
- nullInput : false,
- invalidMonth : null,
- invalidFormat : false,
- userInvalidated : false,
- iso : false,
- parsedDateParts : [],
- meridiem : null,
- rfc2822 : false,
- weekdayMismatch : false
- };
-}
-
-function getParsingFlags(m) {
- if (m._pf == null) {
- m._pf = defaultParsingFlags();
- }
- return m._pf;
-}
-
-var some;
-if (Array.prototype.some) {
- some = Array.prototype.some;
-} else {
- some = function (fun) {
- var t = Object(this);
- var len = t.length >>> 0;
-
- for (var i = 0; i < len; i++) {
- if (i in t && fun.call(this, t[i], i, t)) {
- return true;
- }
- }
-
- return false;
- };
-}
-
-function isValid(m) {
- if (m._isValid == null) {
- var flags = getParsingFlags(m);
- var parsedParts = some.call(flags.parsedDateParts, function (i) {
- return i != null;
- });
- var isNowValid = !isNaN(m._d.getTime()) &&
- flags.overflow < 0 &&
- !flags.empty &&
- !flags.invalidMonth &&
- !flags.invalidWeekday &&
- !flags.weekdayMismatch &&
- !flags.nullInput &&
- !flags.invalidFormat &&
- !flags.userInvalidated &&
- (!flags.meridiem || (flags.meridiem && parsedParts));
-
- if (m._strict) {
- isNowValid = isNowValid &&
- flags.charsLeftOver === 0 &&
- flags.unusedTokens.length === 0 &&
- flags.bigHour === undefined;
- }
-
- if (Object.isFrozen == null || !Object.isFrozen(m)) {
- m._isValid = isNowValid;
- }
- else {
- return isNowValid;
- }
- }
- return m._isValid;
-}
-
-function createInvalid (flags) {
- var m = createUTC(NaN);
- if (flags != null) {
- extend(getParsingFlags(m), flags);
- }
- else {
- getParsingFlags(m).userInvalidated = true;
- }
-
- return m;
-}
-
-// Plugins that add properties should also add the key here (null value),
-// so we can properly clone ourselves.
-var momentProperties = hooks.momentProperties = [];
-
-function copyConfig(to, from) {
- var i, prop, val;
-
- if (!isUndefined(from._isAMomentObject)) {
- to._isAMomentObject = from._isAMomentObject;
- }
- if (!isUndefined(from._i)) {
- to._i = from._i;
- }
- if (!isUndefined(from._f)) {
- to._f = from._f;
- }
- if (!isUndefined(from._l)) {
- to._l = from._l;
- }
- if (!isUndefined(from._strict)) {
- to._strict = from._strict;
- }
- if (!isUndefined(from._tzm)) {
- to._tzm = from._tzm;
- }
- if (!isUndefined(from._isUTC)) {
- to._isUTC = from._isUTC;
- }
- if (!isUndefined(from._offset)) {
- to._offset = from._offset;
- }
- if (!isUndefined(from._pf)) {
- to._pf = getParsingFlags(from);
- }
- if (!isUndefined(from._locale)) {
- to._locale = from._locale;
- }
-
- if (momentProperties.length > 0) {
- for (i = 0; i < momentProperties.length; i++) {
- prop = momentProperties[i];
- val = from[prop];
- if (!isUndefined(val)) {
- to[prop] = val;
- }
- }
- }
-
- return to;
-}
-
-var updateInProgress = false;
-
-// Moment prototype object
-function Moment(config) {
- copyConfig(this, config);
- this._d = new Date(config._d != null ? config._d.getTime() : NaN);
- if (!this.isValid()) {
- this._d = new Date(NaN);
- }
- // Prevent infinite loop in case updateOffset creates new moment
- // objects.
- if (updateInProgress === false) {
- updateInProgress = true;
- hooks.updateOffset(this);
- updateInProgress = false;
- }
-}
-
-function isMoment (obj) {
- return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
-}
-
-function absFloor (number) {
- if (number < 0) {
- // -0 -> 0
- return Math.ceil(number) || 0;
- } else {
- return Math.floor(number);
- }
-}
-
-function toInt(argumentForCoercion) {
- var coercedNumber = +argumentForCoercion,
- value = 0;
-
- if (coercedNumber !== 0 && isFinite(coercedNumber)) {
- value = absFloor(coercedNumber);
- }
-
- return value;
-}
-
-// compare two arrays, return the number of differences
-function compareArrays(array1, array2, dontConvert) {
- var len = Math.min(array1.length, array2.length),
- lengthDiff = Math.abs(array1.length - array2.length),
- diffs = 0,
- i;
- for (i = 0; i < len; i++) {
- if ((dontConvert && array1[i] !== array2[i]) ||
- (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
- diffs++;
- }
- }
- return diffs + lengthDiff;
-}
-
-function warn(msg) {
- if (hooks.suppressDeprecationWarnings === false &&
- (typeof console !== 'undefined') && console.warn) {
- console.warn('Deprecation warning: ' + msg);
- }
-}
-
-function deprecate(msg, fn) {
- var firstTime = true;
-
- return extend(function () {
- if (hooks.deprecationHandler != null) {
- hooks.deprecationHandler(null, msg);
- }
- if (firstTime) {
- var args = [];
- var arg;
- for (var i = 0; i < arguments.length; i++) {
- arg = '';
- if (typeof arguments[i] === 'object') {
- arg += '\n[' + i + '] ';
- for (var key in arguments[0]) {
- arg += key + ': ' + arguments[0][key] + ', ';
- }
- arg = arg.slice(0, -2); // Remove trailing comma and space
- } else {
- arg = arguments[i];
- }
- args.push(arg);
- }
- warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
- firstTime = false;
- }
- return fn.apply(this, arguments);
- }, fn);
-}
-
-var deprecations = {};
-
-function deprecateSimple(name, msg) {
- if (hooks.deprecationHandler != null) {
- hooks.deprecationHandler(name, msg);
- }
- if (!deprecations[name]) {
- warn(msg);
- deprecations[name] = true;
- }
-}
-
-hooks.suppressDeprecationWarnings = false;
-hooks.deprecationHandler = null;
-
-function isFunction(input) {
- return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
-}
-
-function set (config) {
- var prop, i;
- for (i in config) {
- prop = config[i];
- if (isFunction(prop)) {
- this[i] = prop;
- } else {
- this['_' + i] = prop;
- }
- }
- this._config = config;
- // Lenient ordinal parsing accepts just a number in addition to
- // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
- // TODO: Remove "ordinalParse" fallback in next major release.
- this._dayOfMonthOrdinalParseLenient = new RegExp(
- (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
- '|' + (/\d{1,2}/).source);
-}
-
-function mergeConfigs(parentConfig, childConfig) {
- var res = extend({}, parentConfig), prop;
- for (prop in childConfig) {
- if (hasOwnProp(childConfig, prop)) {
- if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
- res[prop] = {};
- extend(res[prop], parentConfig[prop]);
- extend(res[prop], childConfig[prop]);
- } else if (childConfig[prop] != null) {
- res[prop] = childConfig[prop];
- } else {
- delete res[prop];
- }
- }
- }
- for (prop in parentConfig) {
- if (hasOwnProp(parentConfig, prop) &&
- !hasOwnProp(childConfig, prop) &&
- isObject(parentConfig[prop])) {
- // make sure changes to properties don't modify parent config
- res[prop] = extend({}, res[prop]);
- }
- }
- return res;
-}
-
-function Locale(config) {
- if (config != null) {
- this.set(config);
- }
-}
-
-var keys;
-
-if (Object.keys) {
- keys = Object.keys;
-} else {
- keys = function (obj) {
- var i, res = [];
- for (i in obj) {
- if (hasOwnProp(obj, i)) {
- res.push(i);
- }
- }
- return res;
- };
-}
-
-var defaultCalendar = {
- sameDay : '[Today at] LT',
- nextDay : '[Tomorrow at] LT',
- nextWeek : 'dddd [at] LT',
- lastDay : '[Yesterday at] LT',
- lastWeek : '[Last] dddd [at] LT',
- sameElse : 'L'
-};
-
-function calendar (key, mom, now) {
- var output = this._calendar[key] || this._calendar['sameElse'];
- return isFunction(output) ? output.call(mom, now) : output;
-}
-
-var defaultLongDateFormat = {
- LTS : 'h:mm:ss A',
- LT : 'h:mm A',
- L : 'MM/DD/YYYY',
- LL : 'MMMM D, YYYY',
- LLL : 'MMMM D, YYYY h:mm A',
- LLLL : 'dddd, MMMM D, YYYY h:mm A'
-};
-
-function longDateFormat (key) {
- var format = this._longDateFormat[key],
- formatUpper = this._longDateFormat[key.toUpperCase()];
-
- if (format || !formatUpper) {
- return format;
- }
-
- this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
- return val.slice(1);
- });
-
- return this._longDateFormat[key];
-}
-
-var defaultInvalidDate = 'Invalid date';
-
-function invalidDate () {
- return this._invalidDate;
-}
-
-var defaultOrdinal = '%d';
-var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
-
-function ordinal (number) {
- return this._ordinal.replace('%d', number);
-}
-
-var defaultRelativeTime = {
- future : 'in %s',
- past : '%s ago',
- s : 'a few seconds',
- ss : '%d seconds',
- m : 'a minute',
- mm : '%d minutes',
- h : 'an hour',
- hh : '%d hours',
- d : 'a day',
- dd : '%d days',
- M : 'a month',
- MM : '%d months',
- y : 'a year',
- yy : '%d years'
-};
-
-function relativeTime (number, withoutSuffix, string, isFuture) {
- var output = this._relativeTime[string];
- return (isFunction(output)) ?
- output(number, withoutSuffix, string, isFuture) :
- output.replace(/%d/i, number);
-}
-
-function pastFuture (diff, output) {
- var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
- return isFunction(format) ? format(output) : format.replace(/%s/i, output);
-}
-
-var aliases = {};
-
-function addUnitAlias (unit, shorthand) {
- var lowerCase = unit.toLowerCase();
- aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
-}
-
-function normalizeUnits(units) {
- return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
-}
-
-function normalizeObjectUnits(inputObject) {
- var normalizedInput = {},
- normalizedProp,
- prop;
-
- for (prop in inputObject) {
- if (hasOwnProp(inputObject, prop)) {
- normalizedProp = normalizeUnits(prop);
- if (normalizedProp) {
- normalizedInput[normalizedProp] = inputObject[prop];
- }
- }
- }
-
- return normalizedInput;
-}
-
-var priorities = {};
-
-function addUnitPriority(unit, priority) {
- priorities[unit] = priority;
-}
-
-function getPrioritizedUnits(unitsObj) {
- var units = [];
- for (var u in unitsObj) {
- units.push({unit: u, priority: priorities[u]});
- }
- units.sort(function (a, b) {
- return a.priority - b.priority;
- });
- return units;
-}
-
-function zeroFill(number, targetLength, forceSign) {
- var absNumber = '' + Math.abs(number),
- zerosToFill = targetLength - absNumber.length,
- sign = number >= 0;
- return (sign ? (forceSign ? '+' : '') : '-') +
- Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
-}
-
-var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
-
-var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
-
-var formatFunctions = {};
-
-var formatTokenFunctions = {};
-
-// token: 'M'
-// padded: ['MM', 2]
-// ordinal: 'Mo'
-// callback: function () { this.month() + 1 }
-function addFormatToken (token, padded, ordinal, callback) {
- var func = callback;
- if (typeof callback === 'string') {
- func = function () {
- return this[callback]();
- };
- }
- if (token) {
- formatTokenFunctions[token] = func;
- }
- if (padded) {
- formatTokenFunctions[padded[0]] = function () {
- return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
- };
- }
- if (ordinal) {
- formatTokenFunctions[ordinal] = function () {
- return this.localeData().ordinal(func.apply(this, arguments), token);
- };
- }
-}
-
-function removeFormattingTokens(input) {
- if (input.match(/\[[\s\S]/)) {
- return input.replace(/^\[|\]$/g, '');
- }
- return input.replace(/\\/g, '');
-}
-
-function makeFormatFunction(format) {
- var array = format.match(formattingTokens), i, length;
-
- for (i = 0, length = array.length; i < length; i++) {
- if (formatTokenFunctions[array[i]]) {
- array[i] = formatTokenFunctions[array[i]];
- } else {
- array[i] = removeFormattingTokens(array[i]);
- }
- }
-
- return function (mom) {
- var output = '', i;
- for (i = 0; i < length; i++) {
- output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
- }
- return output;
- };
-}
-
-// format date using native date object
-function formatMoment(m, format) {
- if (!m.isValid()) {
- return m.localeData().invalidDate();
- }
-
- format = expandFormat(format, m.localeData());
- formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
-
- return formatFunctions[format](m);
-}
-
-function expandFormat(format, locale) {
- var i = 5;
-
- function replaceLongDateFormatTokens(input) {
- return locale.longDateFormat(input) || input;
- }
-
- localFormattingTokens.lastIndex = 0;
- while (i >= 0 && localFormattingTokens.test(format)) {
- format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
- localFormattingTokens.lastIndex = 0;
- i -= 1;
- }
-
- return format;
-}
-
-var match1 = /\d/; // 0 - 9
-var match2 = /\d\d/; // 00 - 99
-var match3 = /\d{3}/; // 000 - 999
-var match4 = /\d{4}/; // 0000 - 9999
-var match6 = /[+-]?\d{6}/; // -999999 - 999999
-var match1to2 = /\d\d?/; // 0 - 99
-var match3to4 = /\d\d\d\d?/; // 999 - 9999
-var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
-var match1to3 = /\d{1,3}/; // 0 - 999
-var match1to4 = /\d{1,4}/; // 0 - 9999
-var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
-
-var matchUnsigned = /\d+/; // 0 - inf
-var matchSigned = /[+-]?\d+/; // -inf - inf
-
-var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
-var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
-
-var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 12.4.8789 123456789.123
-
-// any word (or two) characters or numbers including two/three word month in arabic.
-// includes scottish gaelic two word and hyphenated months
-var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
-
-
-var regexes = {};
-
-function addRegexToken (token, regex, strictRegex) {
- regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
- return (isStrict && strictRegex) ? strictRegex : regex;
- };
-}
-
-function getParseRegexForToken (token, config) {
- if (!hasOwnProp(regexes, token)) {
- return new RegExp(unescapeFormat(token));
- }
-
- return regexes[token](config._strict, config._locale);
-}
-
-// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
-function unescapeFormat(s) {
- return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
- return p1 || p2 || p3 || p4;
- }));
-}
-
-function regexEscape(s) {
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
-}
-
-var tokens = {};
-
-function addParseToken (token, callback) {
- var i, func = callback;
- if (typeof token === 'string') {
- token = [token];
- }
- if (isNumber(callback)) {
- func = function (input, array) {
- array[callback] = toInt(input);
- };
- }
- for (i = 0; i < token.length; i++) {
- tokens[token[i]] = func;
- }
-}
-
-function addWeekParseToken (token, callback) {
- addParseToken(token, function (input, array, config, token) {
- config._w = config._w || {};
- callback(input, config._w, config, token);
- });
-}
-
-function addTimeToArrayFromToken(token, input, config) {
- if (input != null && hasOwnProp(tokens, token)) {
- tokens[token](input, config._a, config, token);
- }
-}
-
-var YEAR = 0;
-var MONTH = 1;
-var DATE = 2;
-var HOUR = 3;
-var MINUTE = 4;
-var SECOND = 5;
-var MILLISECOND = 6;
-var WEEK = 7;
-var WEEKDAY = 8;
-
-// FORMATTING
-
-addFormatToken('Y', 0, 0, function () {
- var y = this.year();
- return y <= 9999 ? '' + y : '+' + y;
-});
-
-addFormatToken(0, ['YY', 2], 0, function () {
- return this.year() % 100;
-});
-
-addFormatToken(0, ['YYYY', 4], 0, 'year');
-addFormatToken(0, ['YYYYY', 5], 0, 'year');
-addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
-
-// ALIASES
-
-addUnitAlias('year', 'y');
-
-// PRIORITIES
-
-addUnitPriority('year', 1);
-
-// PARSING
-
-addRegexToken('Y', matchSigned);
-addRegexToken('YY', match1to2, match2);
-addRegexToken('YYYY', match1to4, match4);
-addRegexToken('YYYYY', match1to6, match6);
-addRegexToken('YYYYYY', match1to6, match6);
-
-addParseToken(['YYYYY', 'YYYYYY'], YEAR);
-addParseToken('YYYY', function (input, array) {
- array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
-});
-addParseToken('YY', function (input, array) {
- array[YEAR] = hooks.parseTwoDigitYear(input);
-});
-addParseToken('Y', function (input, array) {
- array[YEAR] = parseInt(input, 10);
-});
-
-// HELPERS
-
-function daysInYear(year) {
- return isLeapYear(year) ? 366 : 365;
-}
-
-function isLeapYear(year) {
- return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
-}
-
-// HOOKS
-
-hooks.parseTwoDigitYear = function (input) {
- return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
-};
-
-// MOMENTS
-
-var getSetYear = makeGetSet('FullYear', true);
-
-function getIsLeapYear () {
- return isLeapYear(this.year());
-}
-
-function makeGetSet (unit, keepTime) {
- return function (value) {
- if (value != null) {
- set$1(this, unit, value);
- hooks.updateOffset(this, keepTime);
- return this;
- } else {
- return get(this, unit);
- }
- };
-}
-
-function get (mom, unit) {
- return mom.isValid() ?
- mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
-}
-
-function set$1 (mom, unit, value) {
- if (mom.isValid() && !isNaN(value)) {
- if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
- }
- else {
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
- }
- }
-}
-
-// MOMENTS
-
-function stringGet (units) {
- units = normalizeUnits(units);
- if (isFunction(this[units])) {
- return this[units]();
- }
- return this;
-}
-
-
-function stringSet (units, value) {
- if (typeof units === 'object') {
- units = normalizeObjectUnits(units);
- var prioritized = getPrioritizedUnits(units);
- for (var i = 0; i < prioritized.length; i++) {
- this[prioritized[i].unit](units[prioritized[i].unit]);
- }
- } else {
- units = normalizeUnits(units);
- if (isFunction(this[units])) {
- return this[units](value);
- }
- }
- return this;
-}
-
-function mod(n, x) {
- return ((n % x) + x) % x;
-}
-
-var indexOf;
-
-if (Array.prototype.indexOf) {
- indexOf = Array.prototype.indexOf;
-} else {
- indexOf = function (o) {
- // I know
- var i;
- for (i = 0; i < this.length; ++i) {
- if (this[i] === o) {
- return i;
- }
- }
- return -1;
- };
-}
-
-function daysInMonth(year, month) {
- if (isNaN(year) || isNaN(month)) {
- return NaN;
- }
- var modMonth = mod(month, 12);
- year += (month - modMonth) / 12;
- return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
-}
-
-// FORMATTING
-
-addFormatToken('M', ['MM', 2], 'Mo', function () {
- return this.month() + 1;
-});
-
-addFormatToken('MMM', 0, 0, function (format) {
- return this.localeData().monthsShort(this, format);
-});
-
-addFormatToken('MMMM', 0, 0, function (format) {
- return this.localeData().months(this, format);
-});
-
-// ALIASES
-
-addUnitAlias('month', 'M');
-
-// PRIORITY
-
-addUnitPriority('month', 8);
-
-// PARSING
-
-addRegexToken('M', match1to2);
-addRegexToken('MM', match1to2, match2);
-addRegexToken('MMM', function (isStrict, locale) {
- return locale.monthsShortRegex(isStrict);
-});
-addRegexToken('MMMM', function (isStrict, locale) {
- return locale.monthsRegex(isStrict);
-});
-
-addParseToken(['M', 'MM'], function (input, array) {
- array[MONTH] = toInt(input) - 1;
-});
-
-addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
- var month = config._locale.monthsParse(input, token, config._strict);
- // if we didn't find a month name, mark the date as invalid.
- if (month != null) {
- array[MONTH] = month;
- } else {
- getParsingFlags(config).invalidMonth = input;
- }
-});
-
-// LOCALES
-
-var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
-var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
-function localeMonths (m, format) {
- if (!m) {
- return isArray(this._months) ? this._months :
- this._months['standalone'];
- }
- return isArray(this._months) ? this._months[m.month()] :
- this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
-}
-
-var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
-function localeMonthsShort (m, format) {
- if (!m) {
- return isArray(this._monthsShort) ? this._monthsShort :
- this._monthsShort['standalone'];
- }
- return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
- this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
-}
-
-function handleStrictParse(monthName, format, strict) {
- var i, ii, mom, llc = monthName.toLocaleLowerCase();
- if (!this._monthsParse) {
- // this is not used
- this._monthsParse = [];
- this._longMonthsParse = [];
- this._shortMonthsParse = [];
- for (i = 0; i < 12; ++i) {
- mom = createUTC([2000, i]);
- this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
- this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
- }
- }
-
- if (strict) {
- if (format === 'MMM') {
- ii = indexOf.call(this._shortMonthsParse, llc);
- return ii !== -1 ? ii : null;
- } else {
- ii = indexOf.call(this._longMonthsParse, llc);
- return ii !== -1 ? ii : null;
- }
- } else {
- if (format === 'MMM') {
- ii = indexOf.call(this._shortMonthsParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._longMonthsParse, llc);
- return ii !== -1 ? ii : null;
- } else {
- ii = indexOf.call(this._longMonthsParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._shortMonthsParse, llc);
- return ii !== -1 ? ii : null;
- }
- }
-}
-
-function localeMonthsParse (monthName, format, strict) {
- var i, mom, regex;
-
- if (this._monthsParseExact) {
- return handleStrictParse.call(this, monthName, format, strict);
- }
-
- if (!this._monthsParse) {
- this._monthsParse = [];
- this._longMonthsParse = [];
- this._shortMonthsParse = [];
- }
-
- // TODO: add sorting
- // Sorting makes sure if one month (or abbr) is a prefix of another
- // see sorting in computeMonthsParse
- for (i = 0; i < 12; i++) {
- // make the regex if we don't have it already
- mom = createUTC([2000, i]);
- if (strict && !this._longMonthsParse[i]) {
- this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
- this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
- }
- if (!strict && !this._monthsParse[i]) {
- regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
- this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
- }
- // test the regex
- if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
- return i;
- } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
- return i;
- } else if (!strict && this._monthsParse[i].test(monthName)) {
- return i;
- }
- }
-}
-
-// MOMENTS
-
-function setMonth (mom, value) {
- var dayOfMonth;
-
- if (!mom.isValid()) {
- // No op
- return mom;
- }
-
- if (typeof value === 'string') {
- if (/^\d+$/.test(value)) {
- value = toInt(value);
- } else {
- value = mom.localeData().monthsParse(value);
- // TODO: Another silent failure?
- if (!isNumber(value)) {
- return mom;
- }
- }
- }
-
- dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
- return mom;
-}
-
-function getSetMonth (value) {
- if (value != null) {
- setMonth(this, value);
- hooks.updateOffset(this, true);
- return this;
- } else {
- return get(this, 'Month');
- }
-}
-
-function getDaysInMonth () {
- return daysInMonth(this.year(), this.month());
-}
-
-var defaultMonthsShortRegex = matchWord;
-function monthsShortRegex (isStrict) {
- if (this._monthsParseExact) {
- if (!hasOwnProp(this, '_monthsRegex')) {
- computeMonthsParse.call(this);
- }
- if (isStrict) {
- return this._monthsShortStrictRegex;
- } else {
- return this._monthsShortRegex;
- }
- } else {
- if (!hasOwnProp(this, '_monthsShortRegex')) {
- this._monthsShortRegex = defaultMonthsShortRegex;
- }
- return this._monthsShortStrictRegex && isStrict ?
- this._monthsShortStrictRegex : this._monthsShortRegex;
- }
-}
-
-var defaultMonthsRegex = matchWord;
-function monthsRegex (isStrict) {
- if (this._monthsParseExact) {
- if (!hasOwnProp(this, '_monthsRegex')) {
- computeMonthsParse.call(this);
- }
- if (isStrict) {
- return this._monthsStrictRegex;
- } else {
- return this._monthsRegex;
- }
- } else {
- if (!hasOwnProp(this, '_monthsRegex')) {
- this._monthsRegex = defaultMonthsRegex;
- }
- return this._monthsStrictRegex && isStrict ?
- this._monthsStrictRegex : this._monthsRegex;
- }
-}
-
-function computeMonthsParse () {
- function cmpLenRev(a, b) {
- return b.length - a.length;
- }
-
- var shortPieces = [], longPieces = [], mixedPieces = [],
- i, mom;
- for (i = 0; i < 12; i++) {
- // make the regex if we don't have it already
- mom = createUTC([2000, i]);
- shortPieces.push(this.monthsShort(mom, ''));
- longPieces.push(this.months(mom, ''));
- mixedPieces.push(this.months(mom, ''));
- mixedPieces.push(this.monthsShort(mom, ''));
- }
- // Sorting makes sure if one month (or abbr) is a prefix of another it
- // will match the longer piece.
- shortPieces.sort(cmpLenRev);
- longPieces.sort(cmpLenRev);
- mixedPieces.sort(cmpLenRev);
- for (i = 0; i < 12; i++) {
- shortPieces[i] = regexEscape(shortPieces[i]);
- longPieces[i] = regexEscape(longPieces[i]);
- }
- for (i = 0; i < 24; i++) {
- mixedPieces[i] = regexEscape(mixedPieces[i]);
- }
-
- this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
- this._monthsShortRegex = this._monthsRegex;
- this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
- this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
-}
-
-function createDate (y, m, d, h, M, s, ms) {
- // can't just apply() to create a date:
- // https://stackoverflow.com/q/181348
- var date = new Date(y, m, d, h, M, s, ms);
-
- // the date constructor remaps years 0-99 to 1900-1999
- if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
- date.setFullYear(y);
- }
- return date;
-}
-
-function createUTCDate (y) {
- var date = new Date(Date.UTC.apply(null, arguments));
-
- // the Date.UTC function remaps years 0-99 to 1900-1999
- if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
- date.setUTCFullYear(y);
- }
- return date;
-}
-
-// start-of-first-week - start-of-year
-function firstWeekOffset(year, dow, doy) {
- var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
- fwd = 7 + dow - doy,
- // first-week day local weekday -- which local weekday is fwd
- fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
-
- return -fwdlw + fwd - 1;
-}
-
-// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
-function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
- var localWeekday = (7 + weekday - dow) % 7,
- weekOffset = firstWeekOffset(year, dow, doy),
- dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
- resYear, resDayOfYear;
-
- if (dayOfYear <= 0) {
- resYear = year - 1;
- resDayOfYear = daysInYear(resYear) + dayOfYear;
- } else if (dayOfYear > daysInYear(year)) {
- resYear = year + 1;
- resDayOfYear = dayOfYear - daysInYear(year);
- } else {
- resYear = year;
- resDayOfYear = dayOfYear;
- }
-
- return {
- year: resYear,
- dayOfYear: resDayOfYear
- };
-}
-
-function weekOfYear(mom, dow, doy) {
- var weekOffset = firstWeekOffset(mom.year(), dow, doy),
- week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
- resWeek, resYear;
-
- if (week < 1) {
- resYear = mom.year() - 1;
- resWeek = week + weeksInYear(resYear, dow, doy);
- } else if (week > weeksInYear(mom.year(), dow, doy)) {
- resWeek = week - weeksInYear(mom.year(), dow, doy);
- resYear = mom.year() + 1;
- } else {
- resYear = mom.year();
- resWeek = week;
- }
-
- return {
- week: resWeek,
- year: resYear
- };
-}
-
-function weeksInYear(year, dow, doy) {
- var weekOffset = firstWeekOffset(year, dow, doy),
- weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
- return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
-}
-
-// FORMATTING
-
-addFormatToken('w', ['ww', 2], 'wo', 'week');
-addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
-
-// ALIASES
-
-addUnitAlias('week', 'w');
-addUnitAlias('isoWeek', 'W');
-
-// PRIORITIES
-
-addUnitPriority('week', 5);
-addUnitPriority('isoWeek', 5);
-
-// PARSING
-
-addRegexToken('w', match1to2);
-addRegexToken('ww', match1to2, match2);
-addRegexToken('W', match1to2);
-addRegexToken('WW', match1to2, match2);
-
-addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
- week[token.substr(0, 1)] = toInt(input);
-});
-
-// HELPERS
-
-// LOCALES
-
-function localeWeek (mom) {
- return weekOfYear(mom, this._week.dow, this._week.doy).week;
-}
-
-var defaultLocaleWeek = {
- dow : 0, // Sunday is the first day of the week.
- doy : 6 // The week that contains Jan 1st is the first week of the year.
-};
-
-function localeFirstDayOfWeek () {
- return this._week.dow;
-}
-
-function localeFirstDayOfYear () {
- return this._week.doy;
-}
-
-// MOMENTS
-
-function getSetWeek (input) {
- var week = this.localeData().week(this);
- return input == null ? week : this.add((input - week) * 7, 'd');
-}
-
-function getSetISOWeek (input) {
- var week = weekOfYear(this, 1, 4).week;
- return input == null ? week : this.add((input - week) * 7, 'd');
-}
-
-// FORMATTING
-
-addFormatToken('d', 0, 'do', 'day');
-
-addFormatToken('dd', 0, 0, function (format) {
- return this.localeData().weekdaysMin(this, format);
-});
-
-addFormatToken('ddd', 0, 0, function (format) {
- return this.localeData().weekdaysShort(this, format);
-});
-
-addFormatToken('dddd', 0, 0, function (format) {
- return this.localeData().weekdays(this, format);
-});
-
-addFormatToken('e', 0, 0, 'weekday');
-addFormatToken('E', 0, 0, 'isoWeekday');
-
-// ALIASES
-
-addUnitAlias('day', 'd');
-addUnitAlias('weekday', 'e');
-addUnitAlias('isoWeekday', 'E');
-
-// PRIORITY
-addUnitPriority('day', 11);
-addUnitPriority('weekday', 11);
-addUnitPriority('isoWeekday', 11);
-
-// PARSING
-
-addRegexToken('d', match1to2);
-addRegexToken('e', match1to2);
-addRegexToken('E', match1to2);
-addRegexToken('dd', function (isStrict, locale) {
- return locale.weekdaysMinRegex(isStrict);
-});
-addRegexToken('ddd', function (isStrict, locale) {
- return locale.weekdaysShortRegex(isStrict);
-});
-addRegexToken('dddd', function (isStrict, locale) {
- return locale.weekdaysRegex(isStrict);
-});
-
-addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
- var weekday = config._locale.weekdaysParse(input, token, config._strict);
- // if we didn't get a weekday name, mark the date as invalid
- if (weekday != null) {
- week.d = weekday;
- } else {
- getParsingFlags(config).invalidWeekday = input;
- }
-});
-
-addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
- week[token] = toInt(input);
-});
-
-// HELPERS
-
-function parseWeekday(input, locale) {
- if (typeof input !== 'string') {
- return input;
- }
-
- if (!isNaN(input)) {
- return parseInt(input, 10);
- }
-
- input = locale.weekdaysParse(input);
- if (typeof input === 'number') {
- return input;
- }
-
- return null;
-}
-
-function parseIsoWeekday(input, locale) {
- if (typeof input === 'string') {
- return locale.weekdaysParse(input) % 7 || 7;
- }
- return isNaN(input) ? null : input;
-}
-
-// LOCALES
-
-var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
-function localeWeekdays (m, format) {
- if (!m) {
- return isArray(this._weekdays) ? this._weekdays :
- this._weekdays['standalone'];
- }
- return isArray(this._weekdays) ? this._weekdays[m.day()] :
- this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
-}
-
-var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
-function localeWeekdaysShort (m) {
- return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
-}
-
-var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
-function localeWeekdaysMin (m) {
- return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
-}
-
-function handleStrictParse$1(weekdayName, format, strict) {
- var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
- if (!this._weekdaysParse) {
- this._weekdaysParse = [];
- this._shortWeekdaysParse = [];
- this._minWeekdaysParse = [];
-
- for (i = 0; i < 7; ++i) {
- mom = createUTC([2000, 1]).day(i);
- this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
- this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
- this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
- }
- }
-
- if (strict) {
- if (format === 'dddd') {
- ii = indexOf.call(this._weekdaysParse, llc);
- return ii !== -1 ? ii : null;
- } else if (format === 'ddd') {
- ii = indexOf.call(this._shortWeekdaysParse, llc);
- return ii !== -1 ? ii : null;
- } else {
- ii = indexOf.call(this._minWeekdaysParse, llc);
- return ii !== -1 ? ii : null;
- }
- } else {
- if (format === 'dddd') {
- ii = indexOf.call(this._weekdaysParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._shortWeekdaysParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._minWeekdaysParse, llc);
- return ii !== -1 ? ii : null;
- } else if (format === 'ddd') {
- ii = indexOf.call(this._shortWeekdaysParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._weekdaysParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._minWeekdaysParse, llc);
- return ii !== -1 ? ii : null;
- } else {
- ii = indexOf.call(this._minWeekdaysParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._weekdaysParse, llc);
- if (ii !== -1) {
- return ii;
- }
- ii = indexOf.call(this._shortWeekdaysParse, llc);
- return ii !== -1 ? ii : null;
- }
- }
-}
-
-function localeWeekdaysParse (weekdayName, format, strict) {
- var i, mom, regex;
-
- if (this._weekdaysParseExact) {
- return handleStrictParse$1.call(this, weekdayName, format, strict);
- }
-
- if (!this._weekdaysParse) {
- this._weekdaysParse = [];
- this._minWeekdaysParse = [];
- this._shortWeekdaysParse = [];
- this._fullWeekdaysParse = [];
- }
-
- for (i = 0; i < 7; i++) {
- // make the regex if we don't have it already
-
- mom = createUTC([2000, 1]).day(i);
- if (strict && !this._fullWeekdaysParse[i]) {
- this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
- this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
- this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
- }
- if (!this._weekdaysParse[i]) {
- regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
- this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
- }
- // test the regex
- if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
- return i;
- } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
- return i;
- } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
- return i;
- } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
- return i;
- }
- }
-}
-
-// MOMENTS
-
-function getSetDayOfWeek (input) {
- if (!this.isValid()) {
- return input != null ? this : NaN;
- }
- var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
- if (input != null) {
- input = parseWeekday(input, this.localeData());
- return this.add(input - day, 'd');
- } else {
- return day;
- }
-}
-
-function getSetLocaleDayOfWeek (input) {
- if (!this.isValid()) {
- return input != null ? this : NaN;
- }
- var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
- return input == null ? weekday : this.add(input - weekday, 'd');
-}
-
-function getSetISODayOfWeek (input) {
- if (!this.isValid()) {
- return input != null ? this : NaN;
- }
-
- // behaves the same as moment#day except
- // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
- // as a setter, sunday should belong to the previous week.
-
- if (input != null) {
- var weekday = parseIsoWeekday(input, this.localeData());
- return this.day(this.day() % 7 ? weekday : weekday - 7);
- } else {
- return this.day() || 7;
- }
-}
-
-var defaultWeekdaysRegex = matchWord;
-function weekdaysRegex (isStrict) {
- if (this._weekdaysParseExact) {
- if (!hasOwnProp(this, '_weekdaysRegex')) {
- computeWeekdaysParse.call(this);
- }
- if (isStrict) {
- return this._weekdaysStrictRegex;
- } else {
- return this._weekdaysRegex;
- }
- } else {
- if (!hasOwnProp(this, '_weekdaysRegex')) {
- this._weekdaysRegex = defaultWeekdaysRegex;
- }
- return this._weekdaysStrictRegex && isStrict ?
- this._weekdaysStrictRegex : this._weekdaysRegex;
- }
-}
-
-var defaultWeekdaysShortRegex = matchWord;
-function weekdaysShortRegex (isStrict) {
- if (this._weekdaysParseExact) {
- if (!hasOwnProp(this, '_weekdaysRegex')) {
- computeWeekdaysParse.call(this);
- }
- if (isStrict) {
- return this._weekdaysShortStrictRegex;
- } else {
- return this._weekdaysShortRegex;
- }
- } else {
- if (!hasOwnProp(this, '_weekdaysShortRegex')) {
- this._weekdaysShortRegex = defaultWeekdaysShortRegex;
- }
- return this._weekdaysShortStrictRegex && isStrict ?
- this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
- }
-}
-
-var defaultWeekdaysMinRegex = matchWord;
-function weekdaysMinRegex (isStrict) {
- if (this._weekdaysParseExact) {
- if (!hasOwnProp(this, '_weekdaysRegex')) {
- computeWeekdaysParse.call(this);
- }
- if (isStrict) {
- return this._weekdaysMinStrictRegex;
- } else {
- return this._weekdaysMinRegex;
- }
- } else {
- if (!hasOwnProp(this, '_weekdaysMinRegex')) {
- this._weekdaysMinRegex = defaultWeekdaysMinRegex;
- }
- return this._weekdaysMinStrictRegex && isStrict ?
- this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
- }
-}
-
-
-function computeWeekdaysParse () {
- function cmpLenRev(a, b) {
- return b.length - a.length;
- }
-
- var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
- i, mom, minp, shortp, longp;
- for (i = 0; i < 7; i++) {
- // make the regex if we don't have it already
- mom = createUTC([2000, 1]).day(i);
- minp = this.weekdaysMin(mom, '');
- shortp = this.weekdaysShort(mom, '');
- longp = this.weekdays(mom, '');
- minPieces.push(minp);
- shortPieces.push(shortp);
- longPieces.push(longp);
- mixedPieces.push(minp);
- mixedPieces.push(shortp);
- mixedPieces.push(longp);
- }
- // Sorting makes sure if one weekday (or abbr) is a prefix of another it
- // will match the longer piece.
- minPieces.sort(cmpLenRev);
- shortPieces.sort(cmpLenRev);
- longPieces.sort(cmpLenRev);
- mixedPieces.sort(cmpLenRev);
- for (i = 0; i < 7; i++) {
- shortPieces[i] = regexEscape(shortPieces[i]);
- longPieces[i] = regexEscape(longPieces[i]);
- mixedPieces[i] = regexEscape(mixedPieces[i]);
- }
-
- this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
- this._weekdaysShortRegex = this._weekdaysRegex;
- this._weekdaysMinRegex = this._weekdaysRegex;
-
- this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
- this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
- this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
-}
-
-// FORMATTING
-
-function hFormat() {
- return this.hours() % 12 || 12;
-}
-
-function kFormat() {
- return this.hours() || 24;
-}
-
-addFormatToken('H', ['HH', 2], 0, 'hour');
-addFormatToken('h', ['hh', 2], 0, hFormat);
-addFormatToken('k', ['kk', 2], 0, kFormat);
-
-addFormatToken('hmm', 0, 0, function () {
- return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
-});
-
-addFormatToken('hmmss', 0, 0, function () {
- return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
- zeroFill(this.seconds(), 2);
-});
-
-addFormatToken('Hmm', 0, 0, function () {
- return '' + this.hours() + zeroFill(this.minutes(), 2);
-});
-
-addFormatToken('Hmmss', 0, 0, function () {
- return '' + this.hours() + zeroFill(this.minutes(), 2) +
- zeroFill(this.seconds(), 2);
-});
-
-function meridiem (token, lowercase) {
- addFormatToken(token, 0, 0, function () {
- return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
- });
-}
-
-meridiem('a', true);
-meridiem('A', false);
-
-// ALIASES
-
-addUnitAlias('hour', 'h');
-
-// PRIORITY
-addUnitPriority('hour', 13);
-
-// PARSING
-
-function matchMeridiem (isStrict, locale) {
- return locale._meridiemParse;
-}
-
-addRegexToken('a', matchMeridiem);
-addRegexToken('A', matchMeridiem);
-addRegexToken('H', match1to2);
-addRegexToken('h', match1to2);
-addRegexToken('k', match1to2);
-addRegexToken('HH', match1to2, match2);
-addRegexToken('hh', match1to2, match2);
-addRegexToken('kk', match1to2, match2);
-
-addRegexToken('hmm', match3to4);
-addRegexToken('hmmss', match5to6);
-addRegexToken('Hmm', match3to4);
-addRegexToken('Hmmss', match5to6);
-
-addParseToken(['H', 'HH'], HOUR);
-addParseToken(['k', 'kk'], function (input, array, config) {
- var kInput = toInt(input);
- array[HOUR] = kInput === 24 ? 0 : kInput;
-});
-addParseToken(['a', 'A'], function (input, array, config) {
- config._isPm = config._locale.isPM(input);
- config._meridiem = input;
-});
-addParseToken(['h', 'hh'], function (input, array, config) {
- array[HOUR] = toInt(input);
- getParsingFlags(config).bigHour = true;
-});
-addParseToken('hmm', function (input, array, config) {
- var pos = input.length - 2;
- array[HOUR] = toInt(input.substr(0, pos));
- array[MINUTE] = toInt(input.substr(pos));
- getParsingFlags(config).bigHour = true;
-});
-addParseToken('hmmss', function (input, array, config) {
- var pos1 = input.length - 4;
- var pos2 = input.length - 2;
- array[HOUR] = toInt(input.substr(0, pos1));
- array[MINUTE] = toInt(input.substr(pos1, 2));
- array[SECOND] = toInt(input.substr(pos2));
- getParsingFlags(config).bigHour = true;
-});
-addParseToken('Hmm', function (input, array, config) {
- var pos = input.length - 2;
- array[HOUR] = toInt(input.substr(0, pos));
- array[MINUTE] = toInt(input.substr(pos));
-});
-addParseToken('Hmmss', function (input, array, config) {
- var pos1 = input.length - 4;
- var pos2 = input.length - 2;
- array[HOUR] = toInt(input.substr(0, pos1));
- array[MINUTE] = toInt(input.substr(pos1, 2));
- array[SECOND] = toInt(input.substr(pos2));
-});
-
-// LOCALES
-
-function localeIsPM (input) {
- // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
- // Using charAt should be more compatible.
- return ((input + '').toLowerCase().charAt(0) === 'p');
-}
-
-var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
-function localeMeridiem (hours, minutes, isLower) {
- if (hours > 11) {
- return isLower ? 'pm' : 'PM';
- } else {
- return isLower ? 'am' : 'AM';
- }
-}
-
-
-// MOMENTS
-
-// Setting the hour should keep the time, because the user explicitly
-// specified which hour he wants. So trying to maintain the same hour (in
-// a new timezone) makes sense. Adding/subtracting hours does not follow
-// this rule.
-var getSetHour = makeGetSet('Hours', true);
-
-// months
-// week
-// weekdays
-// meridiem
-var baseConfig = {
- calendar: defaultCalendar,
- longDateFormat: defaultLongDateFormat,
- invalidDate: defaultInvalidDate,
- ordinal: defaultOrdinal,
- dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
- relativeTime: defaultRelativeTime,
-
- months: defaultLocaleMonths,
- monthsShort: defaultLocaleMonthsShort,
-
- week: defaultLocaleWeek,
-
- weekdays: defaultLocaleWeekdays,
- weekdaysMin: defaultLocaleWeekdaysMin,
- weekdaysShort: defaultLocaleWeekdaysShort,
-
- meridiemParse: defaultLocaleMeridiemParse
-};
-
-// internal storage for locale config files
-var locales = {};
-var localeFamilies = {};
-var globalLocale;
-
-function normalizeLocale(key) {
- return key ? key.toLowerCase().replace('_', '-') : key;
-}
-
-// pick the locale from the array
-// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
-// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
-function chooseLocale(names) {
- var i = 0, j, next, locale, split;
-
- while (i < names.length) {
- split = normalizeLocale(names[i]).split('-');
- j = split.length;
- next = normalizeLocale(names[i + 1]);
- next = next ? next.split('-') : null;
- while (j > 0) {
- locale = loadLocale(split.slice(0, j).join('-'));
- if (locale) {
- return locale;
- }
- if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
- //the next array item is better than a shallower substring of this one
- break;
- }
- j--;
- }
- i++;
- }
- return null;
-}
-
-function loadLocale(name) {
- var oldLocale = null;
- // TODO: Find a better way to register and load all the locales in Node
- if (!locales[name] && (typeof module !== 'undefined') &&
- module && module.exports) {
- try {
- oldLocale = globalLocale._abbr;
- var aliasedRequire = require;
- aliasedRequire('./locale/' + name);
- getSetGlobalLocale(oldLocale);
- } catch (e) {}
- }
- return locales[name];
-}
-
-// This function will load locale and then set the global locale. If
-// no arguments are passed in, it will simply return the current global
-// locale key.
-function getSetGlobalLocale (key, values) {
- var data;
- if (key) {
- if (isUndefined(values)) {
- data = getLocale(key);
- }
- else {
- data = defineLocale(key, values);
- }
-
- if (data) {
- // moment.duration._locale = moment._locale = data;
- globalLocale = data;
- }
- }
-
- return globalLocale._abbr;
-}
-
-function defineLocale (name, config) {
- if (config !== null) {
- var parentConfig = baseConfig;
- config.abbr = name;
- if (locales[name] != null) {
- deprecateSimple('defineLocaleOverride',
- 'use moment.updateLocale(localeName, config) to change ' +
- 'an existing locale. moment.defineLocale(localeName, ' +
- 'config) should only be used for creating a new locale ' +
- 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
- parentConfig = locales[name]._config;
- } else if (config.parentLocale != null) {
- if (locales[config.parentLocale] != null) {
- parentConfig = locales[config.parentLocale]._config;
- } else {
- if (!localeFamilies[config.parentLocale]) {
- localeFamilies[config.parentLocale] = [];
- }
- localeFamilies[config.parentLocale].push({
- name: name,
- config: config
- });
- return null;
- }
- }
- locales[name] = new Locale(mergeConfigs(parentConfig, config));
-
- if (localeFamilies[name]) {
- localeFamilies[name].forEach(function (x) {
- defineLocale(x.name, x.config);
- });
- }
-
- // backwards compat for now: also set the locale
- // make sure we set the locale AFTER all child locales have been
- // created, so we won't end up with the child locale set.
- getSetGlobalLocale(name);
-
-
- return locales[name];
- } else {
- // useful for testing
- delete locales[name];
- return null;
- }
-}
-
-function updateLocale(name, config) {
- if (config != null) {
- var locale, tmpLocale, parentConfig = baseConfig;
- // MERGE
- tmpLocale = loadLocale(name);
- if (tmpLocale != null) {
- parentConfig = tmpLocale._config;
- }
- config = mergeConfigs(parentConfig, config);
- locale = new Locale(config);
- locale.parentLocale = locales[name];
- locales[name] = locale;
-
- // backwards compat for now: also set the locale
- getSetGlobalLocale(name);
- } else {
- // pass null for config to unupdate, useful for tests
- if (locales[name] != null) {
- if (locales[name].parentLocale != null) {
- locales[name] = locales[name].parentLocale;
- } else if (locales[name] != null) {
- delete locales[name];
- }
- }
- }
- return locales[name];
-}
-
-// returns locale data
-function getLocale (key) {
- var locale;
-
- if (key && key._locale && key._locale._abbr) {
- key = key._locale._abbr;
- }
-
- if (!key) {
- return globalLocale;
- }
-
- if (!isArray(key)) {
- //short-circuit everything else
- locale = loadLocale(key);
- if (locale) {
- return locale;
- }
- key = [key];
- }
-
- return chooseLocale(key);
-}
-
-function listLocales() {
- return keys(locales);
-}
-
-function checkOverflow (m) {
- var overflow;
- var a = m._a;
-
- if (a && getParsingFlags(m).overflow === -2) {
- overflow =
- a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
- a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
- a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
- a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
- a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
- a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
- -1;
-
- if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
- overflow = DATE;
- }
- if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
- overflow = WEEK;
- }
- if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
- overflow = WEEKDAY;
- }
-
- getParsingFlags(m).overflow = overflow;
- }
-
- return m;
-}
-
-// Pick the first defined of two or three arguments.
-function defaults(a, b, c) {
- if (a != null) {
- return a;
- }
- if (b != null) {
- return b;
- }
- return c;
-}
-
-function currentDateArray(config) {
- // hooks is actually the exported moment object
- var nowValue = new Date(hooks.now());
- if (config._useUTC) {
- return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
- }
- return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
-}
-
-// convert an array to a date.
-// the array should mirror the parameters below
-// note: all values past the year are optional and will default to the lowest possible value.
-// [year, month, day , hour, minute, second, millisecond]
-function configFromArray (config) {
- var i, date, input = [], currentDate, expectedWeekday, yearToUse;
-
- if (config._d) {
- return;
- }
-
- currentDate = currentDateArray(config);
-
- //compute day of the year from weeks and weekdays
- if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
- dayOfYearFromWeekInfo(config);
- }
-
- //if the day of the year is set, figure out what it is
- if (config._dayOfYear != null) {
- yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
-
- if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
- getParsingFlags(config)._overflowDayOfYear = true;
- }
-
- date = createUTCDate(yearToUse, 0, config._dayOfYear);
- config._a[MONTH] = date.getUTCMonth();
- config._a[DATE] = date.getUTCDate();
- }
-
- // Default to current date.
- // * if no year, month, day of month are given, default to today
- // * if day of month is given, default month and year
- // * if month is given, default only year
- // * if year is given, don't default anything
- for (i = 0; i < 3 && config._a[i] == null; ++i) {
- config._a[i] = input[i] = currentDate[i];
- }
-
- // Zero out whatever was not defaulted, including time
- for (; i < 7; i++) {
- config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
- }
-
- // Check for 24:00:00.000
- if (config._a[HOUR] === 24 &&
- config._a[MINUTE] === 0 &&
- config._a[SECOND] === 0 &&
- config._a[MILLISECOND] === 0) {
- config._nextDay = true;
- config._a[HOUR] = 0;
- }
-
- config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
- expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
-
- // Apply timezone offset from input. The actual utcOffset can be changed
- // with parseZone.
- if (config._tzm != null) {
- config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
- }
-
- if (config._nextDay) {
- config._a[HOUR] = 24;
- }
-
- // check for mismatching day of week
- if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
- getParsingFlags(config).weekdayMismatch = true;
- }
-}
-
-function dayOfYearFromWeekInfo(config) {
- var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
-
- w = config._w;
- if (w.GG != null || w.W != null || w.E != null) {
- dow = 1;
- doy = 4;
-
- // TODO: We need to take the current isoWeekYear, but that depends on
- // how we interpret now (local, utc, fixed offset). So create
- // a now version of current config (take local/utc/offset flags, and
- // create now).
- weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
- week = defaults(w.W, 1);
- weekday = defaults(w.E, 1);
- if (weekday < 1 || weekday > 7) {
- weekdayOverflow = true;
- }
- } else {
- dow = config._locale._week.dow;
- doy = config._locale._week.doy;
-
- var curWeek = weekOfYear(createLocal(), dow, doy);
-
- weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
-
- // Default to current week.
- week = defaults(w.w, curWeek.week);
-
- if (w.d != null) {
- // weekday -- low day numbers are considered next week
- weekday = w.d;
- if (weekday < 0 || weekday > 6) {
- weekdayOverflow = true;
- }
- } else if (w.e != null) {
- // local weekday -- counting starts from begining of week
- weekday = w.e + dow;
- if (w.e < 0 || w.e > 6) {
- weekdayOverflow = true;
- }
- } else {
- // default to begining of week
- weekday = dow;
- }
- }
- if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
- getParsingFlags(config)._overflowWeeks = true;
- } else if (weekdayOverflow != null) {
- getParsingFlags(config)._overflowWeekday = true;
- } else {
- temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
- config._a[YEAR] = temp.year;
- config._dayOfYear = temp.dayOfYear;
- }
-}
-
-// iso 8601 regex
-// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
-var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
-var basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
-
-var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
-
-var isoDates = [
- ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
- ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
- ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
- ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
- ['YYYY-DDD', /\d{4}-\d{3}/],
- ['YYYY-MM', /\d{4}-\d\d/, false],
- ['YYYYYYMMDD', /[+-]\d{10}/],
- ['YYYYMMDD', /\d{8}/],
- // YYYYMM is NOT allowed by the standard
- ['GGGG[W]WWE', /\d{4}W\d{3}/],
- ['GGGG[W]WW', /\d{4}W\d{2}/, false],
- ['YYYYDDD', /\d{7}/]
-];
-
-// iso time formats and regexes
-var isoTimes = [
- ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
- ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
- ['HH:mm:ss', /\d\d:\d\d:\d\d/],
- ['HH:mm', /\d\d:\d\d/],
- ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
- ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
- ['HHmmss', /\d\d\d\d\d\d/],
- ['HHmm', /\d\d\d\d/],
- ['HH', /\d\d/]
-];
-
-var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
-
-// date from iso format
-function configFromISO(config) {
- var i, l,
- string = config._i,
- match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
- allowTime, dateFormat, timeFormat, tzFormat;
-
- if (match) {
- getParsingFlags(config).iso = true;
-
- for (i = 0, l = isoDates.length; i < l; i++) {
- if (isoDates[i][1].exec(match[1])) {
- dateFormat = isoDates[i][0];
- allowTime = isoDates[i][2] !== false;
- break;
- }
- }
- if (dateFormat == null) {
- config._isValid = false;
- return;
- }
- if (match[3]) {
- for (i = 0, l = isoTimes.length; i < l; i++) {
- if (isoTimes[i][1].exec(match[3])) {
- // match[2] should be 'T' or space
- timeFormat = (match[2] || ' ') + isoTimes[i][0];
- break;
- }
- }
- if (timeFormat == null) {
- config._isValid = false;
- return;
- }
- }
- if (!allowTime && timeFormat != null) {
- config._isValid = false;
- return;
- }
- if (match[4]) {
- if (tzRegex.exec(match[4])) {
- tzFormat = 'Z';
- } else {
- config._isValid = false;
- return;
- }
- }
- config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
- configFromStringAndFormat(config);
- } else {
- config._isValid = false;
- }
-}
-
-// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
-var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
-
-function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
- var result = [
- untruncateYear(yearStr),
- defaultLocaleMonthsShort.indexOf(monthStr),
- parseInt(dayStr, 10),
- parseInt(hourStr, 10),
- parseInt(minuteStr, 10)
- ];
-
- if (secondStr) {
- result.push(parseInt(secondStr, 10));
- }
-
- return result;
-}
-
-function untruncateYear(yearStr) {
- var year = parseInt(yearStr, 10);
- if (year <= 49) {
- return 2000 + year;
- } else if (year <= 999) {
- return 1900 + year;
- }
- return year;
-}
-
-function preprocessRFC2822(s) {
- // Remove comments and folding whitespace and replace multiple-spaces with a single space
- return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
-}
-
-function checkWeekday(weekdayStr, parsedInput, config) {
- if (weekdayStr) {
- // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
- var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
- weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
- if (weekdayProvided !== weekdayActual) {
- getParsingFlags(config).weekdayMismatch = true;
- config._isValid = false;
- return false;
- }
- }
- return true;
-}
-
-var obsOffsets = {
- UT: 0,
- GMT: 0,
- EDT: -4 * 60,
- EST: -5 * 60,
- CDT: -5 * 60,
- CST: -6 * 60,
- MDT: -6 * 60,
- MST: -7 * 60,
- PDT: -7 * 60,
- PST: -8 * 60
-};
-
-function calculateOffset(obsOffset, militaryOffset, numOffset) {
- if (obsOffset) {
- return obsOffsets[obsOffset];
- } else if (militaryOffset) {
- // the only allowed military tz is Z
- return 0;
- } else {
- var hm = parseInt(numOffset, 10);
- var m = hm % 100, h = (hm - m) / 100;
- return h * 60 + m;
- }
-}
-
-// date and time from ref 2822 format
-function configFromRFC2822(config) {
- var match = rfc2822.exec(preprocessRFC2822(config._i));
- if (match) {
- var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
- if (!checkWeekday(match[1], parsedArray, config)) {
- return;
- }
-
- config._a = parsedArray;
- config._tzm = calculateOffset(match[8], match[9], match[10]);
-
- config._d = createUTCDate.apply(null, config._a);
- config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
-
- getParsingFlags(config).rfc2822 = true;
- } else {
- config._isValid = false;
- }
-}
-
-// date from iso format or fallback
-function configFromString(config) {
- var matched = aspNetJsonRegex.exec(config._i);
-
- if (matched !== null) {
- config._d = new Date(+matched[1]);
- return;
- }
-
- configFromISO(config);
- if (config._isValid === false) {
- delete config._isValid;
- } else {
- return;
- }
-
- configFromRFC2822(config);
- if (config._isValid === false) {
- delete config._isValid;
- } else {
- return;
- }
-
- // Final attempt, use Input Fallback
- hooks.createFromInputFallback(config);
-}
-
-hooks.createFromInputFallback = deprecate(
- 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
- 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
- 'discouraged and will be removed in an upcoming major release. Please refer to ' +
- 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
- function (config) {
- config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
- }
-);
-
-// constant that refers to the ISO standard
-hooks.ISO_8601 = function () {};
-
-// constant that refers to the RFC 2822 form
-hooks.RFC_2822 = function () {};
-
-// date from string and format string
-function configFromStringAndFormat(config) {
- // TODO: Move this to another part of the creation flow to prevent circular deps
- if (config._f === hooks.ISO_8601) {
- configFromISO(config);
- return;
- }
- if (config._f === hooks.RFC_2822) {
- configFromRFC2822(config);
- return;
- }
- config._a = [];
- getParsingFlags(config).empty = true;
-
- // This array is used to make a Date, either with `new Date` or `Date.UTC`
- var string = '' + config._i,
- i, parsedInput, tokens, token, skipped,
- stringLength = string.length,
- totalParsedInputLength = 0;
-
- tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
-
- for (i = 0; i < tokens.length; i++) {
- token = tokens[i];
- parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
- // console.log('token', token, 'parsedInput', parsedInput,
- // 'regex', getParseRegexForToken(token, config));
- if (parsedInput) {
- skipped = string.substr(0, string.indexOf(parsedInput));
- if (skipped.length > 0) {
- getParsingFlags(config).unusedInput.push(skipped);
- }
- string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
- totalParsedInputLength += parsedInput.length;
- }
- // don't parse if it's not a known token
- if (formatTokenFunctions[token]) {
- if (parsedInput) {
- getParsingFlags(config).empty = false;
- }
- else {
- getParsingFlags(config).unusedTokens.push(token);
- }
- addTimeToArrayFromToken(token, parsedInput, config);
- }
- else if (config._strict && !parsedInput) {
- getParsingFlags(config).unusedTokens.push(token);
- }
- }
-
- // add remaining unparsed input length to the string
- getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
- if (string.length > 0) {
- getParsingFlags(config).unusedInput.push(string);
- }
-
- // clear _12h flag if hour is <= 12
- if (config._a[HOUR] <= 12 &&
- getParsingFlags(config).bigHour === true &&
- config._a[HOUR] > 0) {
- getParsingFlags(config).bigHour = undefined;
- }
-
- getParsingFlags(config).parsedDateParts = config._a.slice(0);
- getParsingFlags(config).meridiem = config._meridiem;
- // handle meridiem
- config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
-
- configFromArray(config);
- checkOverflow(config);
-}
-
-
-function meridiemFixWrap (locale, hour, meridiem) {
- var isPm;
-
- if (meridiem == null) {
- // nothing to do
- return hour;
- }
- if (locale.meridiemHour != null) {
- return locale.meridiemHour(hour, meridiem);
- } else if (locale.isPM != null) {
- // Fallback
- isPm = locale.isPM(meridiem);
- if (isPm && hour < 12) {
- hour += 12;
- }
- if (!isPm && hour === 12) {
- hour = 0;
- }
- return hour;
- } else {
- // this is not supposed to happen
- return hour;
- }
-}
-
-// date from string and array of format strings
-function configFromStringAndArray(config) {
- var tempConfig,
- bestMoment,
-
- scoreToBeat,
- i,
- currentScore;
-
- if (config._f.length === 0) {
- getParsingFlags(config).invalidFormat = true;
- config._d = new Date(NaN);
- return;
- }
-
- for (i = 0; i < config._f.length; i++) {
- currentScore = 0;
- tempConfig = copyConfig({}, config);
- if (config._useUTC != null) {
- tempConfig._useUTC = config._useUTC;
- }
- tempConfig._f = config._f[i];
- configFromStringAndFormat(tempConfig);
-
- if (!isValid(tempConfig)) {
- continue;
- }
-
- // if there is any input that was not parsed add a penalty for that format
- currentScore += getParsingFlags(tempConfig).charsLeftOver;
-
- //or tokens
- currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
-
- getParsingFlags(tempConfig).score = currentScore;
-
- if (scoreToBeat == null || currentScore < scoreToBeat) {
- scoreToBeat = currentScore;
- bestMoment = tempConfig;
- }
- }
-
- extend(config, bestMoment || tempConfig);
-}
-
-function configFromObject(config) {
- if (config._d) {
- return;
- }
-
- var i = normalizeObjectUnits(config._i);
- config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
- return obj && parseInt(obj, 10);
- });
-
- configFromArray(config);
-}
-
-function createFromConfig (config) {
- var res = new Moment(checkOverflow(prepareConfig(config)));
- if (res._nextDay) {
- // Adding is smart enough around DST
- res.add(1, 'd');
- res._nextDay = undefined;
- }
-
- return res;
-}
-
-function prepareConfig (config) {
- var input = config._i,
- format = config._f;
-
- config._locale = config._locale || getLocale(config._l);
-
- if (input === null || (format === undefined && input === '')) {
- return createInvalid({nullInput: true});
- }
-
- if (typeof input === 'string') {
- config._i = input = config._locale.preparse(input);
- }
-
- if (isMoment(input)) {
- return new Moment(checkOverflow(input));
- } else if (isDate(input)) {
- config._d = input;
- } else if (isArray(format)) {
- configFromStringAndArray(config);
- } else if (format) {
- configFromStringAndFormat(config);
- } else {
- configFromInput(config);
- }
-
- if (!isValid(config)) {
- config._d = null;
- }
-
- return config;
-}
-
-function configFromInput(config) {
- var input = config._i;
- if (isUndefined(input)) {
- config._d = new Date(hooks.now());
- } else if (isDate(input)) {
- config._d = new Date(input.valueOf());
- } else if (typeof input === 'string') {
- configFromString(config);
- } else if (isArray(input)) {
- config._a = map(input.slice(0), function (obj) {
- return parseInt(obj, 10);
- });
- configFromArray(config);
- } else if (isObject(input)) {
- configFromObject(config);
- } else if (isNumber(input)) {
- // from milliseconds
- config._d = new Date(input);
- } else {
- hooks.createFromInputFallback(config);
- }
-}
-
-function createLocalOrUTC (input, format, locale, strict, isUTC) {
- var c = {};
-
- if (locale === true || locale === false) {
- strict = locale;
- locale = undefined;
- }
-
- if ((isObject(input) && isObjectEmpty(input)) ||
- (isArray(input) && input.length === 0)) {
- input = undefined;
- }
- // object construction must be done this way.
- // https://github.com/moment/moment/issues/1423
- c._isAMomentObject = true;
- c._useUTC = c._isUTC = isUTC;
- c._l = locale;
- c._i = input;
- c._f = format;
- c._strict = strict;
-
- return createFromConfig(c);
-}
-
-function createLocal (input, format, locale, strict) {
- return createLocalOrUTC(input, format, locale, strict, false);
-}
-
-var prototypeMin = deprecate(
- 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
- function () {
- var other = createLocal.apply(null, arguments);
- if (this.isValid() && other.isValid()) {
- return other < this ? this : other;
- } else {
- return createInvalid();
- }
- }
-);
-
-var prototypeMax = deprecate(
- 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
- function () {
- var other = createLocal.apply(null, arguments);
- if (this.isValid() && other.isValid()) {
- return other > this ? this : other;
- } else {
- return createInvalid();
- }
- }
-);
-
-// Pick a moment m from moments so that m[fn](other) is true for all
-// other. This relies on the function fn to be transitive.
-//
-// moments should either be an array of moment objects or an array, whose
-// first element is an array of moment objects.
-function pickBy(fn, moments) {
- var res, i;
- if (moments.length === 1 && isArray(moments[0])) {
- moments = moments[0];
- }
- if (!moments.length) {
- return createLocal();
- }
- res = moments[0];
- for (i = 1; i < moments.length; ++i) {
- if (!moments[i].isValid() || moments[i][fn](res)) {
- res = moments[i];
- }
- }
- return res;
-}
-
-// TODO: Use [].sort instead?
-function min () {
- var args = [].slice.call(arguments, 0);
-
- return pickBy('isBefore', args);
-}
-
-function max () {
- var args = [].slice.call(arguments, 0);
-
- return pickBy('isAfter', args);
-}
-
-var now = function () {
- return Date.now ? Date.now() : +(new Date());
-};
-
-var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
-
-function isDurationValid(m) {
- for (var key in m) {
- if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
- return false;
- }
- }
-
- var unitHasDecimal = false;
- for (var i = 0; i < ordering.length; ++i) {
- if (m[ordering[i]]) {
- if (unitHasDecimal) {
- return false; // only allow non-integers for smallest unit
- }
- if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
- unitHasDecimal = true;
- }
- }
- }
-
- return true;
-}
-
-function isValid$1() {
- return this._isValid;
-}
-
-function createInvalid$1() {
- return createDuration(NaN);
-}
-
-function Duration (duration) {
- var normalizedInput = normalizeObjectUnits(duration),
- years = normalizedInput.year || 0,
- quarters = normalizedInput.quarter || 0,
- months = normalizedInput.month || 0,
- weeks = normalizedInput.week || 0,
- days = normalizedInput.day || 0,
- hours = normalizedInput.hour || 0,
- minutes = normalizedInput.minute || 0,
- seconds = normalizedInput.second || 0,
- milliseconds = normalizedInput.millisecond || 0;
-
- this._isValid = isDurationValid(normalizedInput);
-
- // representation for dateAddRemove
- this._milliseconds = +milliseconds +
- seconds * 1e3 + // 1000
- minutes * 6e4 + // 1000 * 60
- hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
- // Because of dateAddRemove treats 24 hours as different from a
- // day when working around DST, we need to store them separately
- this._days = +days +
- weeks * 7;
- // It is impossible to translate months into days without knowing
- // which months you are are talking about, so we have to store
- // it separately.
- this._months = +months +
- quarters * 3 +
- years * 12;
-
- this._data = {};
-
- this._locale = getLocale();
-
- this._bubble();
-}
-
-function isDuration (obj) {
- return obj instanceof Duration;
-}
-
-function absRound (number) {
- if (number < 0) {
- return Math.round(-1 * number) * -1;
- } else {
- return Math.round(number);
- }
-}
-
-// FORMATTING
-
-function offset (token, separator) {
- addFormatToken(token, 0, 0, function () {
- var offset = this.utcOffset();
- var sign = '+';
- if (offset < 0) {
- offset = -offset;
- sign = '-';
- }
- return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
- });
-}
-
-offset('Z', ':');
-offset('ZZ', '');
-
-// PARSING
-
-addRegexToken('Z', matchShortOffset);
-addRegexToken('ZZ', matchShortOffset);
-addParseToken(['Z', 'ZZ'], function (input, array, config) {
- config._useUTC = true;
- config._tzm = offsetFromString(matchShortOffset, input);
-});
-
-// HELPERS
-
-// timezone chunker
-// '+10:00' > ['10', '00']
-// '-1530' > ['-15', '30']
-var chunkOffset = /([\+\-]|\d\d)/gi;
-
-function offsetFromString(matcher, string) {
- var matches = (string || '').match(matcher);
-
- if (matches === null) {
- return null;
- }
-
- var chunk = matches[matches.length - 1] || [];
- var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
- var minutes = +(parts[1] * 60) + toInt(parts[2]);
-
- return minutes === 0 ?
- 0 :
- parts[0] === '+' ? minutes : -minutes;
-}
-
-// Return a moment from input, that is local/utc/zone equivalent to model.
-function cloneWithOffset(input, model) {
- var res, diff;
- if (model._isUTC) {
- res = model.clone();
- diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
- // Use low-level api, because this fn is low-level api.
- res._d.setTime(res._d.valueOf() + diff);
- hooks.updateOffset(res, false);
- return res;
- } else {
- return createLocal(input).local();
- }
-}
-
-function getDateOffset (m) {
- // On Firefox.24 Date#getTimezoneOffset returns a floating point.
- // https://github.com/moment/moment/pull/1871
- return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
-}
-
-// HOOKS
-
-// This function will be called whenever a moment is mutated.
-// It is intended to keep the offset in sync with the timezone.
-hooks.updateOffset = function () {};
-
-// MOMENTS
-
-// keepLocalTime = true means only change the timezone, without
-// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
-// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
-// +0200, so we adjust the time as needed, to be valid.
-//
-// Keeping the time actually adds/subtracts (one hour)
-// from the actual represented time. That is why we call updateOffset
-// a second time. In case it wants us to change the offset again
-// _changeInProgress == true case, then we have to adjust, because
-// there is no such time in the given timezone.
-function getSetOffset (input, keepLocalTime, keepMinutes) {
- var offset = this._offset || 0,
- localAdjust;
- if (!this.isValid()) {
- return input != null ? this : NaN;
- }
- if (input != null) {
- if (typeof input === 'string') {
- input = offsetFromString(matchShortOffset, input);
- if (input === null) {
- return this;
- }
- } else if (Math.abs(input) < 16 && !keepMinutes) {
- input = input * 60;
- }
- if (!this._isUTC && keepLocalTime) {
- localAdjust = getDateOffset(this);
- }
- this._offset = input;
- this._isUTC = true;
- if (localAdjust != null) {
- this.add(localAdjust, 'm');
- }
- if (offset !== input) {
- if (!keepLocalTime || this._changeInProgress) {
- addSubtract(this, createDuration(input - offset, 'm'), 1, false);
- } else if (!this._changeInProgress) {
- this._changeInProgress = true;
- hooks.updateOffset(this, true);
- this._changeInProgress = null;
- }
- }
- return this;
- } else {
- return this._isUTC ? offset : getDateOffset(this);
- }
-}
-
-function getSetZone (input, keepLocalTime) {
- if (input != null) {
- if (typeof input !== 'string') {
- input = -input;
- }
-
- this.utcOffset(input, keepLocalTime);
-
- return this;
- } else {
- return -this.utcOffset();
- }
-}
-
-function setOffsetToUTC (keepLocalTime) {
- return this.utcOffset(0, keepLocalTime);
-}
-
-function setOffsetToLocal (keepLocalTime) {
- if (this._isUTC) {
- this.utcOffset(0, keepLocalTime);
- this._isUTC = false;
-
- if (keepLocalTime) {
- this.subtract(getDateOffset(this), 'm');
- }
- }
- return this;
-}
-
-function setOffsetToParsedOffset () {
- if (this._tzm != null) {
- this.utcOffset(this._tzm, false, true);
- } else if (typeof this._i === 'string') {
- var tZone = offsetFromString(matchOffset, this._i);
- if (tZone != null) {
- this.utcOffset(tZone);
- }
- else {
- this.utcOffset(0, true);
- }
- }
- return this;
-}
-
-function hasAlignedHourOffset (input) {
- if (!this.isValid()) {
- return false;
- }
- input = input ? createLocal(input).utcOffset() : 0;
-
- return (this.utcOffset() - input) % 60 === 0;
-}
-
-function isDaylightSavingTime () {
- return (
- this.utcOffset() > this.clone().month(0).utcOffset() ||
- this.utcOffset() > this.clone().month(5).utcOffset()
- );
-}
-
-function isDaylightSavingTimeShifted () {
- if (!isUndefined(this._isDSTShifted)) {
- return this._isDSTShifted;
- }
-
- var c = {};
-
- copyConfig(c, this);
- c = prepareConfig(c);
-
- if (c._a) {
- var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
- this._isDSTShifted = this.isValid() &&
- compareArrays(c._a, other.toArray()) > 0;
- } else {
- this._isDSTShifted = false;
- }
-
- return this._isDSTShifted;
-}
-
-function isLocal () {
- return this.isValid() ? !this._isUTC : false;
-}
-
-function isUtcOffset () {
- return this.isValid() ? this._isUTC : false;
-}
-
-function isUtc () {
- return this.isValid() ? this._isUTC && this._offset === 0 : false;
-}
-
-// ASP.NET json date format regex
-var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
-
-// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
-// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
-// and further modified to allow for strings containing both week and day
-var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
-
-function createDuration (input, key) {
- var duration = input,
- // matching against regexp is expensive, do it on demand
- match = null,
- sign,
- ret,
- diffRes;
-
- if (isDuration(input)) {
- duration = {
- ms : input._milliseconds,
- d : input._days,
- M : input._months
- };
- } else if (isNumber(input)) {
- duration = {};
- if (key) {
- duration[key] = input;
- } else {
- duration.milliseconds = input;
- }
- } else if (!!(match = aspNetRegex.exec(input))) {
- sign = (match[1] === '-') ? -1 : 1;
- duration = {
- y : 0,
- d : toInt(match[DATE]) * sign,
- h : toInt(match[HOUR]) * sign,
- m : toInt(match[MINUTE]) * sign,
- s : toInt(match[SECOND]) * sign,
- ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
- };
- } else if (!!(match = isoRegex.exec(input))) {
- sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
- duration = {
- y : parseIso(match[2], sign),
- M : parseIso(match[3], sign),
- w : parseIso(match[4], sign),
- d : parseIso(match[5], sign),
- h : parseIso(match[6], sign),
- m : parseIso(match[7], sign),
- s : parseIso(match[8], sign)
- };
- } else if (duration == null) {// checks for null or undefined
- duration = {};
- } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
- diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
-
- duration = {};
- duration.ms = diffRes.milliseconds;
- duration.M = diffRes.months;
- }
-
- ret = new Duration(duration);
-
- if (isDuration(input) && hasOwnProp(input, '_locale')) {
- ret._locale = input._locale;
- }
-
- return ret;
-}
-
-createDuration.fn = Duration.prototype;
-createDuration.invalid = createInvalid$1;
-
-function parseIso (inp, sign) {
- // We'd normally use ~~inp for this, but unfortunately it also
- // converts floats to ints.
- // inp may be undefined, so careful calling replace on it.
- var res = inp && parseFloat(inp.replace(',', '.'));
- // apply sign while we're at it
- return (isNaN(res) ? 0 : res) * sign;
-}
-
-function positiveMomentsDifference(base, other) {
- var res = {milliseconds: 0, months: 0};
-
- res.months = other.month() - base.month() +
- (other.year() - base.year()) * 12;
- if (base.clone().add(res.months, 'M').isAfter(other)) {
- --res.months;
- }
-
- res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
-
- return res;
-}
-
-function momentsDifference(base, other) {
- var res;
- if (!(base.isValid() && other.isValid())) {
- return {milliseconds: 0, months: 0};
- }
-
- other = cloneWithOffset(other, base);
- if (base.isBefore(other)) {
- res = positiveMomentsDifference(base, other);
- } else {
- res = positiveMomentsDifference(other, base);
- res.milliseconds = -res.milliseconds;
- res.months = -res.months;
- }
-
- return res;
-}
-
-// TODO: remove 'name' arg after deprecation is removed
-function createAdder(direction, name) {
- return function (val, period) {
- var dur, tmp;
- //invert the arguments, but complain about it
- if (period !== null && !isNaN(+period)) {
- deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
- 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
- tmp = val; val = period; period = tmp;
- }
-
- val = typeof val === 'string' ? +val : val;
- dur = createDuration(val, period);
- addSubtract(this, dur, direction);
- return this;
- };
-}
-
-function addSubtract (mom, duration, isAdding, updateOffset) {
- var milliseconds = duration._milliseconds,
- days = absRound(duration._days),
- months = absRound(duration._months);
-
- if (!mom.isValid()) {
- // No op
- return;
- }
-
- updateOffset = updateOffset == null ? true : updateOffset;
-
- if (months) {
- setMonth(mom, get(mom, 'Month') + months * isAdding);
- }
- if (days) {
- set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
- }
- if (milliseconds) {
- mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
- }
- if (updateOffset) {
- hooks.updateOffset(mom, days || months);
- }
-}
-
-var add = createAdder(1, 'add');
-var subtract = createAdder(-1, 'subtract');
-
-function getCalendarFormat(myMoment, now) {
- var diff = myMoment.diff(now, 'days', true);
- return diff < -6 ? 'sameElse' :
- diff < -1 ? 'lastWeek' :
- diff < 0 ? 'lastDay' :
- diff < 1 ? 'sameDay' :
- diff < 2 ? 'nextDay' :
- diff < 7 ? 'nextWeek' : 'sameElse';
-}
-
-function calendar$1 (time, formats) {
- // We want to compare the start of today, vs this.
- // Getting start-of-today depends on whether we're local/utc/offset or not.
- var now = time || createLocal(),
- sod = cloneWithOffset(now, this).startOf('day'),
- format = hooks.calendarFormat(this, sod) || 'sameElse';
-
- var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
-
- return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
-}
-
-function clone () {
- return new Moment(this);
-}
-
-function isAfter (input, units) {
- var localInput = isMoment(input) ? input : createLocal(input);
- if (!(this.isValid() && localInput.isValid())) {
- return false;
- }
- units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
- if (units === 'millisecond') {
- return this.valueOf() > localInput.valueOf();
- } else {
- return localInput.valueOf() < this.clone().startOf(units).valueOf();
- }
-}
-
-function isBefore (input, units) {
- var localInput = isMoment(input) ? input : createLocal(input);
- if (!(this.isValid() && localInput.isValid())) {
- return false;
- }
- units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
- if (units === 'millisecond') {
- return this.valueOf() < localInput.valueOf();
- } else {
- return this.clone().endOf(units).valueOf() < localInput.valueOf();
- }
-}
-
-function isBetween (from, to, units, inclusivity) {
- inclusivity = inclusivity || '()';
- return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
- (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
-}
-
-function isSame (input, units) {
- var localInput = isMoment(input) ? input : createLocal(input),
- inputMs;
- if (!(this.isValid() && localInput.isValid())) {
- return false;
- }
- units = normalizeUnits(units || 'millisecond');
- if (units === 'millisecond') {
- return this.valueOf() === localInput.valueOf();
- } else {
- inputMs = localInput.valueOf();
- return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
- }
-}
-
-function isSameOrAfter (input, units) {
- return this.isSame(input, units) || this.isAfter(input,units);
-}
-
-function isSameOrBefore (input, units) {
- return this.isSame(input, units) || this.isBefore(input,units);
-}
-
-function diff (input, units, asFloat) {
- var that,
- zoneDelta,
- delta, output;
-
- if (!this.isValid()) {
- return NaN;
- }
-
- that = cloneWithOffset(input, this);
-
- if (!that.isValid()) {
- return NaN;
- }
-
- zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
-
- units = normalizeUnits(units);
-
- switch (units) {
- case 'year': output = monthDiff(this, that) / 12; break;
- case 'month': output = monthDiff(this, that); break;
- case 'quarter': output = monthDiff(this, that) / 3; break;
- case 'second': output = (this - that) / 1e3; break; // 1000
- case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
- case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
- case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
- case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
- default: output = this - that;
- }
-
- return asFloat ? output : absFloor(output);
-}
-
-function monthDiff (a, b) {
- // difference in months
- var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
- // b is in (anchor - 1 month, anchor + 1 month)
- anchor = a.clone().add(wholeMonthDiff, 'months'),
- anchor2, adjust;
-
- if (b - anchor < 0) {
- anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
- // linear across the month
- adjust = (b - anchor) / (anchor - anchor2);
- } else {
- anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
- // linear across the month
- adjust = (b - anchor) / (anchor2 - anchor);
- }
-
- //check for negative zero, return zero if negative zero
- return -(wholeMonthDiff + adjust) || 0;
-}
-
-hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
-hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
-
-function toString () {
- return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
-}
-
-function toISOString(keepOffset) {
- if (!this.isValid()) {
- return null;
- }
- var utc = keepOffset !== true;
- var m = utc ? this.clone().utc() : this;
- if (m.year() < 0 || m.year() > 9999) {
- return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
- }
- if (isFunction(Date.prototype.toISOString)) {
- // native implementation is ~50x faster, use it when we can
- if (utc) {
- return this.toDate().toISOString();
- } else {
- return new Date(this._d.valueOf()).toISOString().replace('Z', formatMoment(m, 'Z'));
- }
- }
- return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
-}
-
-/**
- * Return a human readable representation of a moment that can
- * also be evaluated to get a new moment which is the same
- *
- * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
- */
-function inspect () {
- if (!this.isValid()) {
- return 'moment.invalid(/* ' + this._i + ' */)';
- }
- var func = 'moment';
- var zone = '';
- if (!this.isLocal()) {
- func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
- zone = 'Z';
- }
- var prefix = '[' + func + '("]';
- var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
- var datetime = '-MM-DD[T]HH:mm:ss.SSS';
- var suffix = zone + '[")]';
-
- return this.format(prefix + year + datetime + suffix);
-}
-
-function format (inputString) {
- if (!inputString) {
- inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
- }
- var output = formatMoment(this, inputString);
- return this.localeData().postformat(output);
-}
-
-function from (time, withoutSuffix) {
- if (this.isValid() &&
- ((isMoment(time) && time.isValid()) ||
- createLocal(time).isValid())) {
- return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
- } else {
- return this.localeData().invalidDate();
- }
-}
-
-function fromNow (withoutSuffix) {
- return this.from(createLocal(), withoutSuffix);
-}
-
-function to (time, withoutSuffix) {
- if (this.isValid() &&
- ((isMoment(time) && time.isValid()) ||
- createLocal(time).isValid())) {
- return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
- } else {
- return this.localeData().invalidDate();
- }
-}
-
-function toNow (withoutSuffix) {
- return this.to(createLocal(), withoutSuffix);
-}
-
-// If passed a locale key, it will set the locale for this
-// instance. Otherwise, it will return the locale configuration
-// variables for this instance.
-function locale (key) {
- var newLocaleData;
-
- if (key === undefined) {
- return this._locale._abbr;
- } else {
- newLocaleData = getLocale(key);
- if (newLocaleData != null) {
- this._locale = newLocaleData;
- }
- return this;
- }
-}
-
-var lang = deprecate(
- 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
- function (key) {
- if (key === undefined) {
- return this.localeData();
- } else {
- return this.locale(key);
- }
- }
-);
-
-function localeData () {
- return this._locale;
-}
-
-function startOf (units) {
- units = normalizeUnits(units);
- // the following switch intentionally omits break keywords
- // to utilize falling through the cases.
- switch (units) {
- case 'year':
- this.month(0);
- /* falls through */
- case 'quarter':
- case 'month':
- this.date(1);
- /* falls through */
- case 'week':
- case 'isoWeek':
- case 'day':
- case 'date':
- this.hours(0);
- /* falls through */
- case 'hour':
- this.minutes(0);
- /* falls through */
- case 'minute':
- this.seconds(0);
- /* falls through */
- case 'second':
- this.milliseconds(0);
- }
-
- // weeks are a special case
- if (units === 'week') {
- this.weekday(0);
- }
- if (units === 'isoWeek') {
- this.isoWeekday(1);
- }
-
- // quarters are also special
- if (units === 'quarter') {
- this.month(Math.floor(this.month() / 3) * 3);
- }
-
- return this;
-}
-
-function endOf (units) {
- units = normalizeUnits(units);
- if (units === undefined || units === 'millisecond') {
- return this;
- }
-
- // 'date' is an alias for 'day', so it should be considered as such.
- if (units === 'date') {
- units = 'day';
- }
-
- return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
-}
-
-function valueOf () {
- return this._d.valueOf() - ((this._offset || 0) * 60000);
-}
-
-function unix () {
- return Math.floor(this.valueOf() / 1000);
-}
-
-function toDate () {
- return new Date(this.valueOf());
-}
-
-function toArray () {
- var m = this;
- return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
-}
-
-function toObject () {
- var m = this;
- return {
- years: m.year(),
- months: m.month(),
- date: m.date(),
- hours: m.hours(),
- minutes: m.minutes(),
- seconds: m.seconds(),
- milliseconds: m.milliseconds()
- };
-}
-
-function toJSON () {
- // new Date(NaN).toJSON() === null
- return this.isValid() ? this.toISOString() : null;
-}
-
-function isValid$2 () {
- return isValid(this);
-}
-
-function parsingFlags () {
- return extend({}, getParsingFlags(this));
-}
-
-function invalidAt () {
- return getParsingFlags(this).overflow;
-}
-
-function creationData() {
- return {
- input: this._i,
- format: this._f,
- locale: this._locale,
- isUTC: this._isUTC,
- strict: this._strict
- };
-}
-
-// FORMATTING
-
-addFormatToken(0, ['gg', 2], 0, function () {
- return this.weekYear() % 100;
-});
-
-addFormatToken(0, ['GG', 2], 0, function () {
- return this.isoWeekYear() % 100;
-});
-
-function addWeekYearFormatToken (token, getter) {
- addFormatToken(0, [token, token.length], 0, getter);
-}
-
-addWeekYearFormatToken('gggg', 'weekYear');
-addWeekYearFormatToken('ggggg', 'weekYear');
-addWeekYearFormatToken('GGGG', 'isoWeekYear');
-addWeekYearFormatToken('GGGGG', 'isoWeekYear');
-
-// ALIASES
-
-addUnitAlias('weekYear', 'gg');
-addUnitAlias('isoWeekYear', 'GG');
-
-// PRIORITY
-
-addUnitPriority('weekYear', 1);
-addUnitPriority('isoWeekYear', 1);
-
-
-// PARSING
-
-addRegexToken('G', matchSigned);
-addRegexToken('g', matchSigned);
-addRegexToken('GG', match1to2, match2);
-addRegexToken('gg', match1to2, match2);
-addRegexToken('GGGG', match1to4, match4);
-addRegexToken('gggg', match1to4, match4);
-addRegexToken('GGGGG', match1to6, match6);
-addRegexToken('ggggg', match1to6, match6);
-
-addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
- week[token.substr(0, 2)] = toInt(input);
-});
-
-addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
- week[token] = hooks.parseTwoDigitYear(input);
-});
-
-// MOMENTS
-
-function getSetWeekYear (input) {
- return getSetWeekYearHelper.call(this,
- input,
- this.week(),
- this.weekday(),
- this.localeData()._week.dow,
- this.localeData()._week.doy);
-}
-
-function getSetISOWeekYear (input) {
- return getSetWeekYearHelper.call(this,
- input, this.isoWeek(), this.isoWeekday(), 1, 4);
-}
-
-function getISOWeeksInYear () {
- return weeksInYear(this.year(), 1, 4);
-}
-
-function getWeeksInYear () {
- var weekInfo = this.localeData()._week;
- return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
-}
-
-function getSetWeekYearHelper(input, week, weekday, dow, doy) {
- var weeksTarget;
- if (input == null) {
- return weekOfYear(this, dow, doy).year;
- } else {
- weeksTarget = weeksInYear(input, dow, doy);
- if (week > weeksTarget) {
- week = weeksTarget;
- }
- return setWeekAll.call(this, input, week, weekday, dow, doy);
- }
-}
-
-function setWeekAll(weekYear, week, weekday, dow, doy) {
- var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
- date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
-
- this.year(date.getUTCFullYear());
- this.month(date.getUTCMonth());
- this.date(date.getUTCDate());
- return this;
-}
-
-// FORMATTING
-
-addFormatToken('Q', 0, 'Qo', 'quarter');
-
-// ALIASES
-
-addUnitAlias('quarter', 'Q');
-
-// PRIORITY
-
-addUnitPriority('quarter', 7);
-
-// PARSING
-
-addRegexToken('Q', match1);
-addParseToken('Q', function (input, array) {
- array[MONTH] = (toInt(input) - 1) * 3;
-});
-
-// MOMENTS
-
-function getSetQuarter (input) {
- return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
-}
-
-// FORMATTING
-
-addFormatToken('D', ['DD', 2], 'Do', 'date');
-
-// ALIASES
-
-addUnitAlias('date', 'D');
-
-// PRIOROITY
-addUnitPriority('date', 9);
-
-// PARSING
-
-addRegexToken('D', match1to2);
-addRegexToken('DD', match1to2, match2);
-addRegexToken('Do', function (isStrict, locale) {
- // TODO: Remove "ordinalParse" fallback in next major release.
- return isStrict ?
- (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
- locale._dayOfMonthOrdinalParseLenient;
-});
-
-addParseToken(['D', 'DD'], DATE);
-addParseToken('Do', function (input, array) {
- array[DATE] = toInt(input.match(match1to2)[0]);
-});
-
-// MOMENTS
-
-var getSetDayOfMonth = makeGetSet('Date', true);
-
-// FORMATTING
-
-addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
-
-// ALIASES
-
-addUnitAlias('dayOfYear', 'DDD');
-
-// PRIORITY
-addUnitPriority('dayOfYear', 4);
-
-// PARSING
-
-addRegexToken('DDD', match1to3);
-addRegexToken('DDDD', match3);
-addParseToken(['DDD', 'DDDD'], function (input, array, config) {
- config._dayOfYear = toInt(input);
-});
-
-// HELPERS
-
-// MOMENTS
-
-function getSetDayOfYear (input) {
- var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
- return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
-}
-
-// FORMATTING
-
-addFormatToken('m', ['mm', 2], 0, 'minute');
-
-// ALIASES
-
-addUnitAlias('minute', 'm');
-
-// PRIORITY
-
-addUnitPriority('minute', 14);
-
-// PARSING
-
-addRegexToken('m', match1to2);
-addRegexToken('mm', match1to2, match2);
-addParseToken(['m', 'mm'], MINUTE);
-
-// MOMENTS
-
-var getSetMinute = makeGetSet('Minutes', false);
-
-// FORMATTING
-
-addFormatToken('s', ['ss', 2], 0, 'second');
-
-// ALIASES
-
-addUnitAlias('second', 's');
-
-// PRIORITY
-
-addUnitPriority('second', 15);
-
-// PARSING
-
-addRegexToken('s', match1to2);
-addRegexToken('ss', match1to2, match2);
-addParseToken(['s', 'ss'], SECOND);
-
-// MOMENTS
-
-var getSetSecond = makeGetSet('Seconds', false);
-
-// FORMATTING
-
-addFormatToken('S', 0, 0, function () {
- return ~~(this.millisecond() / 100);
-});
-
-addFormatToken(0, ['SS', 2], 0, function () {
- return ~~(this.millisecond() / 10);
-});
-
-addFormatToken(0, ['SSS', 3], 0, 'millisecond');
-addFormatToken(0, ['SSSS', 4], 0, function () {
- return this.millisecond() * 10;
-});
-addFormatToken(0, ['SSSSS', 5], 0, function () {
- return this.millisecond() * 100;
-});
-addFormatToken(0, ['SSSSSS', 6], 0, function () {
- return this.millisecond() * 1000;
-});
-addFormatToken(0, ['SSSSSSS', 7], 0, function () {
- return this.millisecond() * 10000;
-});
-addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
- return this.millisecond() * 100000;
-});
-addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
- return this.millisecond() * 1000000;
-});
-
-
-// ALIASES
-
-addUnitAlias('millisecond', 'ms');
-
-// PRIORITY
-
-addUnitPriority('millisecond', 16);
-
-// PARSING
-
-addRegexToken('S', match1to3, match1);
-addRegexToken('SS', match1to3, match2);
-addRegexToken('SSS', match1to3, match3);
-
-var token;
-for (token = 'SSSS'; token.length <= 9; token += 'S') {
- addRegexToken(token, matchUnsigned);
-}
-
-function parseMs(input, array) {
- array[MILLISECOND] = toInt(('0.' + input) * 1000);
-}
-
-for (token = 'S'; token.length <= 9; token += 'S') {
- addParseToken(token, parseMs);
-}
-// MOMENTS
-
-var getSetMillisecond = makeGetSet('Milliseconds', false);
-
-// FORMATTING
-
-addFormatToken('z', 0, 0, 'zoneAbbr');
-addFormatToken('zz', 0, 0, 'zoneName');
-
-// MOMENTS
-
-function getZoneAbbr () {
- return this._isUTC ? 'UTC' : '';
-}
-
-function getZoneName () {
- return this._isUTC ? 'Coordinated Universal Time' : '';
-}
-
-var proto = Moment.prototype;
-
-proto.add = add;
-proto.calendar = calendar$1;
-proto.clone = clone;
-proto.diff = diff;
-proto.endOf = endOf;
-proto.format = format;
-proto.from = from;
-proto.fromNow = fromNow;
-proto.to = to;
-proto.toNow = toNow;
-proto.get = stringGet;
-proto.invalidAt = invalidAt;
-proto.isAfter = isAfter;
-proto.isBefore = isBefore;
-proto.isBetween = isBetween;
-proto.isSame = isSame;
-proto.isSameOrAfter = isSameOrAfter;
-proto.isSameOrBefore = isSameOrBefore;
-proto.isValid = isValid$2;
-proto.lang = lang;
-proto.locale = locale;
-proto.localeData = localeData;
-proto.max = prototypeMax;
-proto.min = prototypeMin;
-proto.parsingFlags = parsingFlags;
-proto.set = stringSet;
-proto.startOf = startOf;
-proto.subtract = subtract;
-proto.toArray = toArray;
-proto.toObject = toObject;
-proto.toDate = toDate;
-proto.toISOString = toISOString;
-proto.inspect = inspect;
-proto.toJSON = toJSON;
-proto.toString = toString;
-proto.unix = unix;
-proto.valueOf = valueOf;
-proto.creationData = creationData;
-
-// Year
-proto.year = getSetYear;
-proto.isLeapYear = getIsLeapYear;
-
-// Week Year
-proto.weekYear = getSetWeekYear;
-proto.isoWeekYear = getSetISOWeekYear;
-
-// Quarter
-proto.quarter = proto.quarters = getSetQuarter;
-
-// Month
-proto.month = getSetMonth;
-proto.daysInMonth = getDaysInMonth;
-
-// Week
-proto.week = proto.weeks = getSetWeek;
-proto.isoWeek = proto.isoWeeks = getSetISOWeek;
-proto.weeksInYear = getWeeksInYear;
-proto.isoWeeksInYear = getISOWeeksInYear;
-
-// Day
-proto.date = getSetDayOfMonth;
-proto.day = proto.days = getSetDayOfWeek;
-proto.weekday = getSetLocaleDayOfWeek;
-proto.isoWeekday = getSetISODayOfWeek;
-proto.dayOfYear = getSetDayOfYear;
-
-// Hour
-proto.hour = proto.hours = getSetHour;
-
-// Minute
-proto.minute = proto.minutes = getSetMinute;
-
-// Second
-proto.second = proto.seconds = getSetSecond;
-
-// Millisecond
-proto.millisecond = proto.milliseconds = getSetMillisecond;
-
-// Offset
-proto.utcOffset = getSetOffset;
-proto.utc = setOffsetToUTC;
-proto.local = setOffsetToLocal;
-proto.parseZone = setOffsetToParsedOffset;
-proto.hasAlignedHourOffset = hasAlignedHourOffset;
-proto.isDST = isDaylightSavingTime;
-proto.isLocal = isLocal;
-proto.isUtcOffset = isUtcOffset;
-proto.isUtc = isUtc;
-proto.isUTC = isUtc;
-
-// Timezone
-proto.zoneAbbr = getZoneAbbr;
-proto.zoneName = getZoneName;
-
-// Deprecations
-proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
-proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
-proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
-proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
-proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
-
-function createUnix (input) {
- return createLocal(input * 1000);
-}
-
-function createInZone () {
- return createLocal.apply(null, arguments).parseZone();
-}
-
-function preParsePostFormat (string) {
- return string;
-}
-
-var proto$1 = Locale.prototype;
-
-proto$1.calendar = calendar;
-proto$1.longDateFormat = longDateFormat;
-proto$1.invalidDate = invalidDate;
-proto$1.ordinal = ordinal;
-proto$1.preparse = preParsePostFormat;
-proto$1.postformat = preParsePostFormat;
-proto$1.relativeTime = relativeTime;
-proto$1.pastFuture = pastFuture;
-proto$1.set = set;
-
-// Month
-proto$1.months = localeMonths;
-proto$1.monthsShort = localeMonthsShort;
-proto$1.monthsParse = localeMonthsParse;
-proto$1.monthsRegex = monthsRegex;
-proto$1.monthsShortRegex = monthsShortRegex;
-
-// Week
-proto$1.week = localeWeek;
-proto$1.firstDayOfYear = localeFirstDayOfYear;
-proto$1.firstDayOfWeek = localeFirstDayOfWeek;
-
-// Day of Week
-proto$1.weekdays = localeWeekdays;
-proto$1.weekdaysMin = localeWeekdaysMin;
-proto$1.weekdaysShort = localeWeekdaysShort;
-proto$1.weekdaysParse = localeWeekdaysParse;
-
-proto$1.weekdaysRegex = weekdaysRegex;
-proto$1.weekdaysShortRegex = weekdaysShortRegex;
-proto$1.weekdaysMinRegex = weekdaysMinRegex;
-
-// Hours
-proto$1.isPM = localeIsPM;
-proto$1.meridiem = localeMeridiem;
-
-function get$1 (format, index, field, setter) {
- var locale = getLocale();
- var utc = createUTC().set(setter, index);
- return locale[field](utc, format);
-}
-
-function listMonthsImpl (format, index, field) {
- if (isNumber(format)) {
- index = format;
- format = undefined;
- }
-
- format = format || '';
-
- if (index != null) {
- return get$1(format, index, field, 'month');
- }
-
- var i;
- var out = [];
- for (i = 0; i < 12; i++) {
- out[i] = get$1(format, i, field, 'month');
- }
- return out;
-}
-
-// ()
-// (5)
-// (fmt, 5)
-// (fmt)
-// (true)
-// (true, 5)
-// (true, fmt, 5)
-// (true, fmt)
-function listWeekdaysImpl (localeSorted, format, index, field) {
- if (typeof localeSorted === 'boolean') {
- if (isNumber(format)) {
- index = format;
- format = undefined;
- }
-
- format = format || '';
- } else {
- format = localeSorted;
- index = format;
- localeSorted = false;
-
- if (isNumber(format)) {
- index = format;
- format = undefined;
- }
-
- format = format || '';
- }
-
- var locale = getLocale(),
- shift = localeSorted ? locale._week.dow : 0;
-
- if (index != null) {
- return get$1(format, (index + shift) % 7, field, 'day');
- }
-
- var i;
- var out = [];
- for (i = 0; i < 7; i++) {
- out[i] = get$1(format, (i + shift) % 7, field, 'day');
- }
- return out;
-}
-
-function listMonths (format, index) {
- return listMonthsImpl(format, index, 'months');
-}
-
-function listMonthsShort (format, index) {
- return listMonthsImpl(format, index, 'monthsShort');
-}
-
-function listWeekdays (localeSorted, format, index) {
- return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
-}
-
-function listWeekdaysShort (localeSorted, format, index) {
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
-}
-
-function listWeekdaysMin (localeSorted, format, index) {
- return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
-}
-
-getSetGlobalLocale('en', {
- dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
- ordinal : function (number) {
- var b = number % 10,
- output = (toInt(number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- return number + output;
- }
-});
-
-// Side effect imports
-hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
-hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
-
-var mathAbs = Math.abs;
-
-function abs () {
- var data = this._data;
-
- this._milliseconds = mathAbs(this._milliseconds);
- this._days = mathAbs(this._days);
- this._months = mathAbs(this._months);
-
- data.milliseconds = mathAbs(data.milliseconds);
- data.seconds = mathAbs(data.seconds);
- data.minutes = mathAbs(data.minutes);
- data.hours = mathAbs(data.hours);
- data.months = mathAbs(data.months);
- data.years = mathAbs(data.years);
-
- return this;
-}
-
-function addSubtract$1 (duration, input, value, direction) {
- var other = createDuration(input, value);
-
- duration._milliseconds += direction * other._milliseconds;
- duration._days += direction * other._days;
- duration._months += direction * other._months;
-
- return duration._bubble();
-}
-
-// supports only 2.0-style add(1, 's') or add(duration)
-function add$1 (input, value) {
- return addSubtract$1(this, input, value, 1);
-}
-
-// supports only 2.0-style subtract(1, 's') or subtract(duration)
-function subtract$1 (input, value) {
- return addSubtract$1(this, input, value, -1);
-}
-
-function absCeil (number) {
- if (number < 0) {
- return Math.floor(number);
- } else {
- return Math.ceil(number);
- }
-}
-
-function bubble () {
- var milliseconds = this._milliseconds;
- var days = this._days;
- var months = this._months;
- var data = this._data;
- var seconds, minutes, hours, years, monthsFromDays;
-
- // if we have a mix of positive and negative values, bubble down first
- // check: https://github.com/moment/moment/issues/2166
- if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
- (milliseconds <= 0 && days <= 0 && months <= 0))) {
- milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
- days = 0;
- months = 0;
- }
-
- // The following code bubbles up values, see the tests for
- // examples of what that means.
- data.milliseconds = milliseconds % 1000;
-
- seconds = absFloor(milliseconds / 1000);
- data.seconds = seconds % 60;
-
- minutes = absFloor(seconds / 60);
- data.minutes = minutes % 60;
-
- hours = absFloor(minutes / 60);
- data.hours = hours % 24;
-
- days += absFloor(hours / 24);
-
- // convert days to months
- monthsFromDays = absFloor(daysToMonths(days));
- months += monthsFromDays;
- days -= absCeil(monthsToDays(monthsFromDays));
-
- // 12 months -> 1 year
- years = absFloor(months / 12);
- months %= 12;
-
- data.days = days;
- data.months = months;
- data.years = years;
-
- return this;
-}
-
-function daysToMonths (days) {
- // 400 years have 146097 days (taking into account leap year rules)
- // 400 years have 12 months === 4800
- return days * 4800 / 146097;
-}
-
-function monthsToDays (months) {
- // the reverse of daysToMonths
- return months * 146097 / 4800;
-}
-
-function as (units) {
- if (!this.isValid()) {
- return NaN;
- }
- var days;
- var months;
- var milliseconds = this._milliseconds;
-
- units = normalizeUnits(units);
-
- if (units === 'month' || units === 'year') {
- days = this._days + milliseconds / 864e5;
- months = this._months + daysToMonths(days);
- return units === 'month' ? months : months / 12;
- } else {
- // handle milliseconds separately because of floating point math errors (issue #1867)
- days = this._days + Math.round(monthsToDays(this._months));
- switch (units) {
- case 'week' : return days / 7 + milliseconds / 6048e5;
- case 'day' : return days + milliseconds / 864e5;
- case 'hour' : return days * 24 + milliseconds / 36e5;
- case 'minute' : return days * 1440 + milliseconds / 6e4;
- case 'second' : return days * 86400 + milliseconds / 1000;
- // Math.floor prevents floating point math errors here
- case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
- default: throw new Error('Unknown unit ' + units);
- }
- }
-}
-
-// TODO: Use this.as('ms')?
-function valueOf$1 () {
- if (!this.isValid()) {
- return NaN;
- }
- return (
- this._milliseconds +
- this._days * 864e5 +
- (this._months % 12) * 2592e6 +
- toInt(this._months / 12) * 31536e6
- );
-}
-
-function makeAs (alias) {
- return function () {
- return this.as(alias);
- };
-}
-
-var asMilliseconds = makeAs('ms');
-var asSeconds = makeAs('s');
-var asMinutes = makeAs('m');
-var asHours = makeAs('h');
-var asDays = makeAs('d');
-var asWeeks = makeAs('w');
-var asMonths = makeAs('M');
-var asYears = makeAs('y');
-
-function clone$1 () {
- return createDuration(this);
-}
-
-function get$2 (units) {
- units = normalizeUnits(units);
- return this.isValid() ? this[units + 's']() : NaN;
-}
-
-function makeGetter(name) {
- return function () {
- return this.isValid() ? this._data[name] : NaN;
- };
-}
-
-var milliseconds = makeGetter('milliseconds');
-var seconds = makeGetter('seconds');
-var minutes = makeGetter('minutes');
-var hours = makeGetter('hours');
-var days = makeGetter('days');
-var months = makeGetter('months');
-var years = makeGetter('years');
-
-function weeks () {
- return absFloor(this.days() / 7);
-}
-
-var round = Math.round;
-var thresholds = {
- ss: 44, // a few seconds to seconds
- s : 45, // seconds to minute
- m : 45, // minutes to hour
- h : 22, // hours to day
- d : 26, // days to month
- M : 11 // months to year
-};
-
-// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
-function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
- return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
-}
-
-function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
- var duration = createDuration(posNegDuration).abs();
- var seconds = round(duration.as('s'));
- var minutes = round(duration.as('m'));
- var hours = round(duration.as('h'));
- var days = round(duration.as('d'));
- var months = round(duration.as('M'));
- var years = round(duration.as('y'));
-
- var a = seconds <= thresholds.ss && ['s', seconds] ||
- seconds < thresholds.s && ['ss', seconds] ||
- minutes <= 1 && ['m'] ||
- minutes < thresholds.m && ['mm', minutes] ||
- hours <= 1 && ['h'] ||
- hours < thresholds.h && ['hh', hours] ||
- days <= 1 && ['d'] ||
- days < thresholds.d && ['dd', days] ||
- months <= 1 && ['M'] ||
- months < thresholds.M && ['MM', months] ||
- years <= 1 && ['y'] || ['yy', years];
-
- a[2] = withoutSuffix;
- a[3] = +posNegDuration > 0;
- a[4] = locale;
- return substituteTimeAgo.apply(null, a);
-}
-
-// This function allows you to set the rounding function for relative time strings
-function getSetRelativeTimeRounding (roundingFunction) {
- if (roundingFunction === undefined) {
- return round;
- }
- if (typeof(roundingFunction) === 'function') {
- round = roundingFunction;
- return true;
- }
- return false;
-}
-
-// This function allows you to set a threshold for relative time strings
-function getSetRelativeTimeThreshold (threshold, limit) {
- if (thresholds[threshold] === undefined) {
- return false;
- }
- if (limit === undefined) {
- return thresholds[threshold];
- }
- thresholds[threshold] = limit;
- if (threshold === 's') {
- thresholds.ss = limit - 1;
- }
- return true;
-}
-
-function humanize (withSuffix) {
- if (!this.isValid()) {
- return this.localeData().invalidDate();
- }
-
- var locale = this.localeData();
- var output = relativeTime$1(this, !withSuffix, locale);
-
- if (withSuffix) {
- output = locale.pastFuture(+this, output);
- }
-
- return locale.postformat(output);
-}
-
-var abs$1 = Math.abs;
-
-function sign(x) {
- return ((x > 0) - (x < 0)) || +x;
-}
-
-function toISOString$1() {
- // for ISO strings we do not use the normal bubbling rules:
- // * milliseconds bubble up until they become hours
- // * days do not bubble at all
- // * months bubble up until they become years
- // This is because there is no context-free conversion between hours and days
- // (think of clock changes)
- // and also not between days and months (28-31 days per month)
- if (!this.isValid()) {
- return this.localeData().invalidDate();
- }
-
- var seconds = abs$1(this._milliseconds) / 1000;
- var days = abs$1(this._days);
- var months = abs$1(this._months);
- var minutes, hours, years;
-
- // 3600 seconds -> 60 minutes -> 1 hour
- minutes = absFloor(seconds / 60);
- hours = absFloor(minutes / 60);
- seconds %= 60;
- minutes %= 60;
-
- // 12 months -> 1 year
- years = absFloor(months / 12);
- months %= 12;
-
-
- // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
- var Y = years;
- var M = months;
- var D = days;
- var h = hours;
- var m = minutes;
- var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
- var total = this.asSeconds();
-
- if (!total) {
- // this is the same as C#'s (Noda) and python (isodate)...
- // but not other JS (goog.date)
- return 'P0D';
- }
-
- var totalSign = total < 0 ? '-' : '';
- var ymSign = sign(this._months) !== sign(total) ? '-' : '';
- var daysSign = sign(this._days) !== sign(total) ? '-' : '';
- var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
-
- return totalSign + 'P' +
- (Y ? ymSign + Y + 'Y' : '') +
- (M ? ymSign + M + 'M' : '') +
- (D ? daysSign + D + 'D' : '') +
- ((h || m || s) ? 'T' : '') +
- (h ? hmsSign + h + 'H' : '') +
- (m ? hmsSign + m + 'M' : '') +
- (s ? hmsSign + s + 'S' : '');
-}
-
-var proto$2 = Duration.prototype;
-
-proto$2.isValid = isValid$1;
-proto$2.abs = abs;
-proto$2.add = add$1;
-proto$2.subtract = subtract$1;
-proto$2.as = as;
-proto$2.asMilliseconds = asMilliseconds;
-proto$2.asSeconds = asSeconds;
-proto$2.asMinutes = asMinutes;
-proto$2.asHours = asHours;
-proto$2.asDays = asDays;
-proto$2.asWeeks = asWeeks;
-proto$2.asMonths = asMonths;
-proto$2.asYears = asYears;
-proto$2.valueOf = valueOf$1;
-proto$2._bubble = bubble;
-proto$2.clone = clone$1;
-proto$2.get = get$2;
-proto$2.milliseconds = milliseconds;
-proto$2.seconds = seconds;
-proto$2.minutes = minutes;
-proto$2.hours = hours;
-proto$2.days = days;
-proto$2.weeks = weeks;
-proto$2.months = months;
-proto$2.years = years;
-proto$2.humanize = humanize;
-proto$2.toISOString = toISOString$1;
-proto$2.toString = toISOString$1;
-proto$2.toJSON = toISOString$1;
-proto$2.locale = locale;
-proto$2.localeData = localeData;
-
-// Deprecations
-proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
-proto$2.lang = lang;
-
-// Side effect imports
-
-// FORMATTING
-
-addFormatToken('X', 0, 0, 'unix');
-addFormatToken('x', 0, 0, 'valueOf');
-
-// PARSING
-
-addRegexToken('x', matchSigned);
-addRegexToken('X', matchTimestamp);
-addParseToken('X', function (input, array, config) {
- config._d = new Date(parseFloat(input, 10) * 1000);
-});
-addParseToken('x', function (input, array, config) {
- config._d = new Date(toInt(input));
-});
-
-// Side effect imports
-
-
-hooks.version = '2.20.1';
-
-setHookCallback(createLocal);
-
-hooks.fn = proto;
-hooks.min = min;
-hooks.max = max;
-hooks.now = now;
-hooks.utc = createUTC;
-hooks.unix = createUnix;
-hooks.months = listMonths;
-hooks.isDate = isDate;
-hooks.locale = getSetGlobalLocale;
-hooks.invalid = createInvalid;
-hooks.duration = createDuration;
-hooks.isMoment = isMoment;
-hooks.weekdays = listWeekdays;
-hooks.parseZone = createInZone;
-hooks.localeData = getLocale;
-hooks.isDuration = isDuration;
-hooks.monthsShort = listMonthsShort;
-hooks.weekdaysMin = listWeekdaysMin;
-hooks.defineLocale = defineLocale;
-hooks.updateLocale = updateLocale;
-hooks.locales = listLocales;
-hooks.weekdaysShort = listWeekdaysShort;
-hooks.normalizeUnits = normalizeUnits;
-hooks.relativeTimeRounding = getSetRelativeTimeRounding;
-hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
-hooks.calendarFormat = getCalendarFormat;
-hooks.prototype = proto;
-
-// currently HTML5 input type only supports 24-hour formats
-hooks.HTML5_FMT = {
- DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
- DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
- DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
- DATE: 'YYYY-MM-DD', // <input type="date" />
- TIME: 'HH:mm', // <input type="time" />
- TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
- TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
- WEEK: 'YYYY-[W]WW', // <input type="week" />
- MONTH: 'YYYY-MM' // <input type="month" />
-};
-
-return hooks;
-
-})));
diff --git a/node_modules/js-base64/.attic/test-moment/yoshinoya.js b/node_modules/js-base64/.attic/test-moment/yoshinoya.js
deleted file mode 100644
index 4576c79..0000000
--- a/node_modules/js-base64/.attic/test-moment/yoshinoya.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-describe('Yoshinoya', function () {
- it('.encode', is(Base64.encode('𠮷野家'), '8KCut+mHjuWutg=='));
- it('.encodeURI', is(Base64.encodeURI('𠮷野家'), '8KCut-mHjuWutg'));
- it('.decode', is(Base64.decode('8KCut+mHjuWutg=='), '𠮷野家'));
- it('.decode', is(Base64.decode('8KCut-mHjuWutg'), '𠮷野家'));
- /* it('.decode', is(Base64.decode('7aGC7b636YeO5a62'), '𠮷野家')); */
-});
diff --git a/node_modules/js-base64/1x1.png b/node_modules/js-base64/1x1.png
deleted file mode 100644
index 909c66d..0000000
--- a/node_modules/js-base64/1x1.png
+++ /dev/null
Binary files differ
diff --git a/node_modules/js-base64/LICENSE.md b/node_modules/js-base64/LICENSE.md
deleted file mode 100644
index fd579a4..0000000
--- a/node_modules/js-base64/LICENSE.md
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) 2014, Dan Kogai
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-* Neither the name of {{{project}}} nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/js-base64/README.md b/node_modules/js-base64/README.md
deleted file mode 100644
index 1dfb104..0000000
--- a/node_modules/js-base64/README.md
+++ /dev/null
@@ -1,94 +0,0 @@
-[![build status](https://secure.travis-ci.org/dankogai/js-base64.png)](http://travis-ci.org/dankogai/js-base64)
-
-# base64.js
-
-Yet another Base64 transcoder
-
-## Install
-
-```javascript
-$ npm install --save js-base64
-```
-
-If you are using it on ES6 transpilers, you may also need:
-
-```javascript
-$ npm install --save babel-preset-env
-```
-
-Note `js-base64` itself is stand-alone so its `package.json` has no `dependencies`.  However, it is also tested on ES6 environment so `"babel-preset-env": "^1.7.0"` is on `devDependencies`.
-
-
-## Usage
-
-### In Browser
-
-```html
-<script src="base64.js"></script>
-```
-
-### node.js
-
-```javascript
-var Base64 = require('js-base64').Base64;
-```
-
-## es6+
-
-```javascript
-import { Base64 } from 'js-base64';
-```
-
-## SYNOPSIS
-
-```javascript
-Base64.encode('dankogai'); // ZGFua29nYWk=
-Base64.encode('小飼弾'); // 5bCP6aO85by+
-Base64.encodeURI('小飼弾'); // 5bCP6aO85by-
-
-Base64.decode('ZGFua29nYWk='); // dankogai
-Base64.decode('5bCP6aO85by+'); // 小飼弾
-// note .decodeURI() is unnecessary since it accepts both flavors
-Base64.decode('5bCP6aO85by-'); // 小飼弾
-```
-
-### String Extension for ES5
-
-```javascript
-if (Base64.extendString) {
- // you have to explicitly extend String.prototype
- Base64.extendString();
- // once extended, you can do the following
- 'dankogai'.toBase64(); // ZGFua29nYWk=
- '小飼弾'.toBase64(); // 5bCP6aO85by+
- '小飼弾'.toBase64(true); // 5bCP6aO85by-
- '小飼弾'.toBase64URI(); // 5bCP6aO85by-
- 'ZGFua29nYWk='.fromBase64(); // dankogai
- '5bCP6aO85by+'.fromBase64(); // 小飼弾
- '5bCP6aO85by-'.fromBase64(); // 小飼弾
-}
-```
-
-### TypeScript
-
-TypeScript 2.0 type definition was added to the [DefinitelyTyped repository](https://github.com/DefinitelyTyped/DefinitelyTyped).
-
-```bash
-$ npm install --save @types/js-base64
-```
-
-## `.decode()` vs `.atob` (and `.encode()` vs `btoa()`)
-
-Suppose you have:
-
-```
-var pngBase64 =
- "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
-```
-
-Which is a Base64-encoded 1x1 transparent PNG, **DO NOT USE** `Base64.decode(pngBase64)`.  Use `Base64.atob(pngBase64)` instead.  `Base64.decode()` decodes to UTF-8 string while `Base64.atob()` decodes to bytes, which is compatible to browser built-in `atob()` (Which is absent in node.js).  The same rule applies to the opposite direction.
-
-
-## SEE ALSO
-
-+ http://en.wikipedia.org/wiki/Base64
diff --git a/node_modules/js-base64/base64.html b/node_modules/js-base64/base64.html
deleted file mode 100644
index aca61ae..0000000
--- a/node_modules/js-base64/base64.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- $Id: base64.html,v 1.1 2009/03/01 22:00:28 dankogai Exp dankogai $ -->
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<title>Demo for base64.js</title>
-</head>
-<body>
-<h1>Demo for base64.js</h1>
-<p>$Id: base64.html,v 1.1 2009/03/01 22:00:28 dankogai Exp dankogai $</p>
-<table width="640"><tbody>
-<tr><th width="50%">Text</th><th>Base64
-(URL Safe <input id="encodeURI" type="checkbox" onclick="doit()">)</th></tr>
-<tr>
-<th><textarea id="srctxt" cols="32" rows="4" onkeyup="doit()">
-</textarea></th>
-<th><textarea id="base64" cols="32" rows="4" onkeyup="
- $('srctxt').value = Base64.decode(this.value);
- doit();
- if (1 /*@cc_on -1 @*/) $('data').src = 'data:text/plain;base64,' + this.value;
-"></textarea></th>
-</tr>
-<tr><th width="50%">Roundtrip</th><th>iframe w/ data: (no IE)</th></tr>
-<tr>
-<th><textarea id="roundtrip" cols="32" rows="4" disabled></textarea></th>
-<th><iframe id="data" width="80%" height="64"></iframe></th>
-</tr>
-</tbody></table>
-
-
-<script src="./base64.js"></script>
-<script>
-$ = function(id){ return document.getElementById(id) };
-function doit(){
- var encoded = Base64[
- 'encode' + ($('encodeURI').checked ? 'URI' : '')
- ]($('srctxt').value);
- $('base64').value = encoded;
- if (1 /*@cc_on -1 @*/) {
- $('data').src = 'data:text/plain;base64,'
- + Base64.encode(Base64.decode(encoded));
- }
- $('roundtrip').value = Base64.decode(encoded);
-}
-</script>
-</body>
-</html>
diff --git a/node_modules/js-base64/base64.js b/node_modules/js-base64/base64.js
deleted file mode 100644
index f310b1f..0000000
--- a/node_modules/js-base64/base64.js
+++ /dev/null
@@ -1,225 +0,0 @@
-/*
- * base64.js
- *
- * Licensed under the BSD 3-Clause License.
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * References:
- * http://en.wikipedia.org/wiki/Base64
- */
-;(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined'
- ? module.exports = factory(global)
- : typeof define === 'function' && define.amd
- ? define(factory) : factory(global)
-}((
- typeof self !== 'undefined' ? self
- : typeof window !== 'undefined' ? window
- : typeof global !== 'undefined' ? global
-: this
-), function(global) {
- 'use strict';
- // existing version for noConflict()
- global = global || {};
- var _Base64 = global.Base64;
- var version = "2.5.2";
- // if node.js and NOT React Native, we use Buffer
- var buffer;
- if (typeof module !== 'undefined' && module.exports) {
- try {
- buffer = eval("require('buffer').Buffer");
- } catch (err) {
- buffer = undefined;
- }
- }
- // constants
- var b64chars
- = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
- var b64tab = function(bin) {
- var t = {};
- for (var i = 0, l = bin.length; i < l; i++) t[bin.charAt(i)] = i;
- return t;
- }(b64chars);
- var fromCharCode = String.fromCharCode;
- // encoder stuff
- var cb_utob = function(c) {
- if (c.length < 2) {
- var cc = c.charCodeAt(0);
- return cc < 0x80 ? c
- : cc < 0x800 ? (fromCharCode(0xc0 | (cc >>> 6))
- + fromCharCode(0x80 | (cc & 0x3f)))
- : (fromCharCode(0xe0 | ((cc >>> 12) & 0x0f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- } else {
- var cc = 0x10000
- + (c.charCodeAt(0) - 0xD800) * 0x400
- + (c.charCodeAt(1) - 0xDC00);
- return (fromCharCode(0xf0 | ((cc >>> 18) & 0x07))
- + fromCharCode(0x80 | ((cc >>> 12) & 0x3f))
- + fromCharCode(0x80 | ((cc >>> 6) & 0x3f))
- + fromCharCode(0x80 | ( cc & 0x3f)));
- }
- };
- var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
- var utob = function(u) {
- return u.replace(re_utob, cb_utob);
- };
- var cb_encode = function(ccc) {
- var padlen = [0, 2, 1][ccc.length % 3],
- ord = ccc.charCodeAt(0) << 16
- | ((ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8)
- | ((ccc.length > 2 ? ccc.charCodeAt(2) : 0)),
- chars = [
- b64chars.charAt( ord >>> 18),
- b64chars.charAt((ord >>> 12) & 63),
- padlen >= 2 ? '=' : b64chars.charAt((ord >>> 6) & 63),
- padlen >= 1 ? '=' : b64chars.charAt(ord & 63)
- ];
- return chars.join('');
- };
- var btoa = global.btoa ? function(b) {
- return global.btoa(b);
- } : function(b) {
- return b.replace(/[\s\S]{1,3}/g, cb_encode);
- };
- var _encode = function(u) {
- var isUint8Array = Object.prototype.toString.call(u) === '[object Uint8Array]';
- return isUint8Array ? u.toString('base64')
- : btoa(utob(String(u)));
- }
- var encode = function(u, urisafe) {
- return !urisafe
- ? _encode(u)
- : _encode(String(u)).replace(/[+\/]/g, function(m0) {
- return m0 == '+' ? '-' : '_';
- }).replace(/=/g, '');
- };
- var encodeURI = function(u) { return encode(u, true) };
- // decoder stuff
- var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
- var cb_btou = function(cccc) {
- switch(cccc.length) {
- case 4:
- var cp = ((0x07 & cccc.charCodeAt(0)) << 18)
- | ((0x3f & cccc.charCodeAt(1)) << 12)
- | ((0x3f & cccc.charCodeAt(2)) << 6)
- | (0x3f & cccc.charCodeAt(3)),
- offset = cp - 0x10000;
- return (fromCharCode((offset >>> 10) + 0xD800)
- + fromCharCode((offset & 0x3FF) + 0xDC00));
- case 3:
- return fromCharCode(
- ((0x0f & cccc.charCodeAt(0)) << 12)
- | ((0x3f & cccc.charCodeAt(1)) << 6)
- | (0x3f & cccc.charCodeAt(2))
- );
- default:
- return fromCharCode(
- ((0x1f & cccc.charCodeAt(0)) << 6)
- | (0x3f & cccc.charCodeAt(1))
- );
- }
- };
- var btou = function(b) {
- return b.replace(re_btou, cb_btou);
- };
- var cb_decode = function(cccc) {
- var len = cccc.length,
- padlen = len % 4,
- n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0)
- | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0)
- | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0)
- | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
- chars = [
- fromCharCode( n >>> 16),
- fromCharCode((n >>> 8) & 0xff),
- fromCharCode( n & 0xff)
- ];
- chars.length -= [0, 0, 2, 1][padlen];
- return chars.join('');
- };
- var _atob = global.atob ? function(a) {
- return global.atob(a);
- } : function(a){
- return a.replace(/\S{1,4}/g, cb_decode);
- };
- var atob = function(a) {
- return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
- };
- var _decode = buffer ?
- buffer.from && Uint8Array && buffer.from !== Uint8Array.from
- ? function(a) {
- return (a.constructor === buffer.constructor
- ? a : buffer.from(a, 'base64')).toString();
- }
- : function(a) {
- return (a.constructor === buffer.constructor
- ? a : new buffer(a, 'base64')).toString();
- }
- : function(a) { return btou(_atob(a)) };
- var decode = function(a){
- return _decode(
- String(a).replace(/[-_]/g, function(m0) { return m0 == '-' ? '+' : '/' })
- .replace(/[^A-Za-z0-9\+\/]/g, '')
- );
- };
- var noConflict = function() {
- var Base64 = global.Base64;
- global.Base64 = _Base64;
- return Base64;
- };
- // export Base64
- global.Base64 = {
- VERSION: version,
- atob: atob,
- btoa: btoa,
- fromBase64: decode,
- toBase64: encode,
- utob: utob,
- encode: encode,
- encodeURI: encodeURI,
- btou: btou,
- decode: decode,
- noConflict: noConflict,
- __buffer__: buffer
- };
- // if ES5 is available, make Base64.extendString() available
- if (typeof Object.defineProperty === 'function') {
- var noEnum = function(v){
- return {value:v,enumerable:false,writable:true,configurable:true};
- };
- global.Base64.extendString = function () {
- Object.defineProperty(
- String.prototype, 'fromBase64', noEnum(function () {
- return decode(this)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64', noEnum(function (urisafe) {
- return encode(this, urisafe)
- }));
- Object.defineProperty(
- String.prototype, 'toBase64URI', noEnum(function () {
- return encode(this, true)
- }));
- };
- }
- //
- // export Base64 to the namespace
- //
- if (global['Meteor']) { // Meteor.js
- Base64 = global.Base64;
- }
- // module.exports and AMD are mutually exclusive.
- // module.exports has precedence.
- if (typeof module !== 'undefined' && module.exports) {
- module.exports.Base64 = global.Base64;
- }
- else if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define([], function(){ return global.Base64 });
- }
- // that's it!
- return {Base64: global.Base64}
-}));
-
diff --git a/node_modules/js-base64/base64.min.js b/node_modules/js-base64/base64.min.js
deleted file mode 100644
index 177008c..0000000
--- a/node_modules/js-base64/base64.min.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory(global):typeof define==="function"&&define.amd?define(factory):factory(global)})(typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64;var version="2.5.2";var buffer;if(typeof module!=="undefined"&&module.exports){try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=undefined}}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b64tab=function(bin){var t={};for(var i=0,l=bin.length;i<l;i++)t[bin.charAt(i)]=i;return t}(b64chars);var fromCharCode=String.fromCharCode;var cb_utob=function(c){if(c.length<2){var cc=c.charCodeAt(0);return cc<128?c:cc<2048?fromCharCode(192|cc>>>6)+fromCharCode(128|cc&63):fromCharCode(224|cc>>>12&15)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}else{var cc=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return fromCharCode(240|cc>>>18&7)+fromCharCode(128|cc>>>12&63)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}};var re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(u){return u.replace(re_utob,cb_utob)};var cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|(ccc.length>1?ccc.charCodeAt(1):0)<<8|(ccc.length>2?ccc.charCodeAt(2):0),chars=[b64chars.charAt(ord>>>18),b64chars.charAt(ord>>>12&63),padlen>=2?"=":b64chars.charAt(ord>>>6&63),padlen>=1?"=":b64chars.charAt(ord&63)];return chars.join("")};var btoa=global.btoa?function(b){return global.btoa(b)}:function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode)};var _encode=function(u){var isUint8Array=Object.prototype.toString.call(u)==="[object Uint8Array]";return isUint8Array?u.toString("base64"):btoa(utob(String(u)))};var encode=function(u,urisafe){return!urisafe?_encode(u):_encode(String(u)).replace(/[+\/]/g,function(m0){return m0=="+"?"-":"_"}).replace(/=/g,"")};var encodeURI=function(u){return encode(u,true)};var re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;var cb_btou=function(cccc){switch(cccc.length){case 4:var cp=(7&cccc.charCodeAt(0))<<18|(63&cccc.charCodeAt(1))<<12|(63&cccc.charCodeAt(2))<<6|63&cccc.charCodeAt(3),offset=cp-65536;return fromCharCode((offset>>>10)+55296)+fromCharCode((offset&1023)+56320);case 3:return fromCharCode((15&cccc.charCodeAt(0))<<12|(63&cccc.charCodeAt(1))<<6|63&cccc.charCodeAt(2));default:return fromCharCode((31&cccc.charCodeAt(0))<<6|63&cccc.charCodeAt(1))}};var btou=function(b){return b.replace(re_btou,cb_btou)};var cb_decode=function(cccc){var len=cccc.length,padlen=len%4,n=(len>0?b64tab[cccc.charAt(0)]<<18:0)|(len>1?b64tab[cccc.charAt(1)]<<12:0)|(len>2?b64tab[cccc.charAt(2)]<<6:0)|(len>3?b64tab[cccc.charAt(3)]:0),chars=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(n&255)];chars.length-=[0,0,2,1][padlen];return chars.join("")};var _atob=global.atob?function(a){return global.atob(a)}:function(a){return a.replace(/\S{1,4}/g,cb_decode)};var atob=function(a){return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g,""))};var _decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(a){return(a.constructor===buffer.constructor?a:buffer.from(a,"base64")).toString()}:function(a){return(a.constructor===buffer.constructor?a:new buffer(a,"base64")).toString()}:function(a){return btou(_atob(a))};var decode=function(a){return _decode(String(a).replace(/[-_]/g,function(m0){return m0=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};var noConflict=function(){var Base64=global.Base64;global.Base64=_Base64;return Base64};global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer};if(typeof Object.defineProperty==="function"){var noEnum=function(v){return{value:v,enumerable:false,writable:true,configurable:true}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,"toBase64",noEnum(function(urisafe){return encode(this,urisafe)}));Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,true)}))}}if(global["Meteor"]){Base64=global.Base64}if(typeof module!=="undefined"&&module.exports){module.exports.Base64=global.Base64}else if(typeof define==="function"&&define.amd){define([],function(){return global.Base64})}return{Base64:global.Base64}}); \ No newline at end of file
diff --git a/node_modules/js-base64/bower.json b/node_modules/js-base64/bower.json
deleted file mode 100644
index 287903e..0000000
--- a/node_modules/js-base64/bower.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "js-base64",
- "version": "2.5.2",
- "license": "BSD-3-Clause",
- "main": [
- "./base64.js"
- ],
- "ignore": [
- "old",
- "test",
- ".gitignore",
- ".travis.yml",
- "base64.html",
- "package.json"
- ],
- "dependencies": {
- }
-}
diff --git a/node_modules/js-base64/package.js b/node_modules/js-base64/package.js
deleted file mode 100644
index 5b56425..0000000
--- a/node_modules/js-base64/package.js
+++ /dev/null
@@ -1,9 +0,0 @@
-Package.describe({
- summary: "Yet another Base64 transcoder"
-})
-
-Package.on_use(function(api){
- api.export('Base64');
-
- api.add_files(['base64.js'], 'server');
-}); \ No newline at end of file
diff --git a/node_modules/js-base64/package.json b/node_modules/js-base64/package.json
deleted file mode 100644
index 0caf63b..0000000
--- a/node_modules/js-base64/package.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "_from": "js-base64@^2.1.8",
- "_id": "js-base64@2.5.2",
- "_inBundle": false,
- "_integrity": "sha512-Vg8czh0Q7sFBSUMWWArX/miJeBWYBPpdU/3M/DKSaekLMqrqVPaedp+5mZhie/r0lgrcaYBfwXatEew6gwgiQQ==",
- "_location": "/js-base64",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "js-base64@^2.1.8",
- "name": "js-base64",
- "escapedName": "js-base64",
- "rawSpec": "^2.1.8",
- "saveSpec": null,
- "fetchSpec": "^2.1.8"
- },
- "_requiredBy": [
- "/scss-tokenizer"
- ],
- "_resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.2.tgz",
- "_shasum": "313b6274dda718f714d00b3330bbae6e38e90209",
- "_spec": "js-base64@^2.1.8",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/scss-tokenizer",
- "author": {
- "name": "Dan Kogai"
- },
- "bugs": {
- "url": "https://github.com/dankogai/js-base64/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Yet another Base64 transcoder in pure-JS",
- "devDependencies": {
- "babel-preset-env": "^1.7.0",
- "babel-register": "^6.26.0",
- "mocha": "5.x.x"
- },
- "directories": {
- "test": "test"
- },
- "gitHead": "8bfa436f733bec60c95c720e1d720c28b43ae0b2",
- "homepage": "https://github.com/dankogai/js-base64#readme",
- "keywords": [
- "base64"
- ],
- "license": "BSD-3-Clause",
- "main": "base64.js",
- "name": "js-base64",
- "repository": {
- "type": "git",
- "url": "git://github.com/dankogai/js-base64.git"
- },
- "scripts": {
- "test": "mocha --compilers js:babel-register"
- },
- "version": "2.5.2"
-}
diff --git a/node_modules/js-base64/test/atob.js b/node_modules/js-base64/test/atob.js
deleted file mode 100644
index f7ab106..0000000
--- a/node_modules/js-base64/test/atob.js
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-describe('atob', function () {
-
- describe('basic', function () {
- it('d', is(Base64.btoa('d'), 'ZA=='));
- it('da', is(Base64.btoa('da'), 'ZGE='));
- it('dan', is(Base64.btoa('dan'), 'ZGFu'));
- it('ZA==', is(Base64.atob('ZA=='), 'd' ));
- it('ZGE=', is(Base64.atob('ZGE='), 'da' ));
- it('ZGFu', is(Base64.atob('ZGFu'), 'dan' ));
- });
-
- describe('whitespace', function () {
- it('Z A==', is(Base64.atob('ZA =='), 'd' ));
- it('ZG E=', is(Base64.atob('ZG E='), 'da' ));
- it('ZGF u', is(Base64.atob('ZGF u'), 'dan' ));
- });
-
- describe('null', function () {
- it('\\0', is(Base64.btoa('\0'), 'AA=='));
- it('\\0\\0', is(Base64.btoa('\0\0'), 'AAA='));
- it('\\0\\0\\0', is(Base64.btoa('\0\0\0'), 'AAAA'));
- it('AA==', is(Base64.atob('AA=='), '\0' ));
- it('AAA=', is(Base64.atob('AAA='), '\0\0' ));
- it('AAAA', is(Base64.atob('AAAA'), '\0\0\0'));
- });
-
- describe('binary', function () {
- var pngBase64 = 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=';
- var pngBinary = '\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\x00\x00\x01\x00\x00\x00\x01\x08\x04\x00\x00\x00\xb5\x1c\x0c\x02\x00\x00\x00\x0b\x49\x44\x41\x54\x78\xda\x63\x64\x60\x00\x00\x00\x06\x00\x02\x30\x81\xd0\x2f\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82';
- it('.btoa', is(Base64.btoa(pngBinary), pngBase64));
- it('.atob', is(Base64.atob(pngBase64), pngBinary));
- });
-
-});
diff --git a/node_modules/js-base64/test/dankogai.js b/node_modules/js-base64/test/dankogai.js
deleted file mode 100644
index b631414..0000000
--- a/node_modules/js-base64/test/dankogai.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * $Id: dankogai.js,v 0.4 2012/08/24 05:23:18 dankogai Exp dankogai $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-describe('basic', function () {
- it('d', is(Base64.encode('d'), 'ZA=='));
- it('da', is(Base64.encode('da'), 'ZGE='));
- it('dan', is(Base64.encode('dan'), 'ZGFu'));
- it('ZA==', is(Base64.decode('ZA=='), 'd' ));
- it('ZGE=', is(Base64.decode('ZGE='), 'da' ));
- it('ZGFu', is(Base64.decode('ZGFu'), 'dan' ));
-});
-
-describe('whitespace', function () {
- it('Z A==', is(Base64.decode('ZA =='), 'd' ));
- it('ZG E=', is(Base64.decode('ZG E='), 'da' ));
- it('ZGF u', is(Base64.decode('ZGF u'), 'dan' ));
-});
-
-describe('null', function () {
- it('\\0', is(Base64.encode('\0'), 'AA=='));
- it('\\0\\0', is(Base64.encode('\0\0'), 'AAA='));
- it('\\0\\0\\0', is(Base64.encode('\0\0\0'), 'AAAA'));
- it('AA==', is(Base64.decode('AA=='), '\0' ));
- it('AAA=', is(Base64.decode('AAA='), '\0\0' ));
- it('AAAA', is(Base64.decode('AAAA'), '\0\0\0'));
-});
-
-describe('Base64', function () {
- it('.encode', is(Base64.encode('小飼弾'), '5bCP6aO85by+'));
- it('.encodeURI', is(Base64.encodeURI('小飼弾'), '5bCP6aO85by-'));
- it('.decode', is(Base64.decode('5bCP6aO85by+'), '小飼弾'));
- it('.decode', is(Base64.decode('5bCP6aO85by-'), '小飼弾'));
-});
diff --git a/node_modules/js-base64/test/es5.js b/node_modules/js-base64/test/es5.js
deleted file mode 100644
index ef134f6..0000000
--- a/node_modules/js-base64/test/es5.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * $Id: es5.js,v 0.1 2012/08/23 19:43:17 dankogai Exp dankogai $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-if ('extendString' in Base64){
- Base64.extendString();
- describe('String', function () {
- it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
- it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
- it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
- it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
- it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));
- });
-}
diff --git a/node_modules/js-base64/test/es6.js b/node_modules/js-base64/test/es6.js
deleted file mode 100644
index 7dbe475..0000000
--- a/node_modules/js-base64/test/es6.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * $Id: es6.js,v 0.1 2017/11/29 21:43:17 ufolux Exp ufolux $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-import {Base64} from '../base64'
-
-var assert = assert || require("assert");
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-if ('extendString' in Base64){
- Base64.extendString();
- describe('String', function () {
- it('.toBase64', is('小飼弾'.toBase64(), '5bCP6aO85by+'));
- it('.toBase64', is('小飼弾'.toBase64(true), '5bCP6aO85by-'));
- it('.toBase64URI', is('小飼弾'.toBase64URI(), '5bCP6aO85by-'));
- it('.fromBase64', is('5bCP6aO85by+'.fromBase64(), '小飼弾'));
- it('.fromBase64', is('5bCP6aO85by-'.fromBase64(), '小飼弾'));
- });
-}
diff --git a/node_modules/js-base64/test/index.html b/node_modules/js-base64/test/index.html
deleted file mode 100644
index 5066bcc..0000000
--- a/node_modules/js-base64/test/index.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
- <head>
- <meta charset="utf-8">
- <title>Mocha Tests</title>
- <link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
- </head>
- <body>
- <div id="mocha"></div>
-
- <script src="https://cdn.rawgit.com/jquery/jquery/3.4.0/dist/jquery.min.js"></script>
- <script src="https://cdn.rawgit.com/Automattic/expect.js/0.3.1/index.js"></script>
- <script src="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.js"></script>
- <script>
- mocha.setup('bdd');
- </script>
- <script src="../base64.js"></script>
- <script>
- var assert = function(expr, msg) {
- if (!expr) throw new Error(msg || 'failed');
- };
- assert.equal = function(a, b, msg) {
- if (a !== b) throw new Error(msg || ('failed : '+a+','+b));
- };
- </script>
- <script src="./dankogai.js"></script>
- <script src="./es5.js"></script>
- <script src="./large.js"></script>
- <script src="./yoshinoya.js"></script>
- <script src="./atob.js"></script>
- <script>
- $(function() {
- mocha.run();
- });
- </script>
-</head>
-<body>
- $Id: index.html,v 0.3 2017/09/11 08:43:43 dankogai Exp dankogai $
- <div id="mocha"></div>
-</body>
-</html>
diff --git a/node_modules/js-base64/test/large.js b/node_modules/js-base64/test/large.js
deleted file mode 100644
index 20d7842..0000000
--- a/node_modules/js-base64/test/large.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * $Id: large.js,v 0.3 2012/08/23 19:14:37 dankogai Exp dankogai $
- *
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-var seed = function () {
- var a, i;
- for (a = [], i = 0; i < 256; i++) {
- a.push(String.fromCharCode(i));
- }
- return a.join('');
-}();
-describe('Base64', function () {
- for (var i = 0, str = seed; i < 16; str += str, i++) {
- it(''+str.length, is(Base64.decode(Base64.encode(str)), str));
- }
-});
diff --git a/node_modules/js-base64/test/yoshinoya.js b/node_modules/js-base64/test/yoshinoya.js
deleted file mode 100644
index 4576c79..0000000
--- a/node_modules/js-base64/test/yoshinoya.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * use mocha to test me
- * http://visionmedia.github.com/mocha/
- */
-var assert = assert || require("assert");
-var Base64 = Base64 || require('../base64.js').Base64;
-var is = function (a, e, m) {
- return function () {
- assert.equal(a, e, m)
- }
-};
-
-describe('Yoshinoya', function () {
- it('.encode', is(Base64.encode('𠮷野家'), '8KCut+mHjuWutg=='));
- it('.encodeURI', is(Base64.encodeURI('𠮷野家'), '8KCut-mHjuWutg'));
- it('.decode', is(Base64.decode('8KCut+mHjuWutg=='), '𠮷野家'));
- it('.decode', is(Base64.decode('8KCut-mHjuWutg'), '𠮷野家'));
- /* it('.decode', is(Base64.decode('7aGC7b636YeO5a62'), '𠮷野家')); */
-});
diff --git a/node_modules/jsbn/.npmignore b/node_modules/jsbn/.npmignore
deleted file mode 100644
index 28f1ba7..0000000
--- a/node_modules/jsbn/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules
-.DS_Store \ No newline at end of file
diff --git a/node_modules/jsbn/LICENSE b/node_modules/jsbn/LICENSE
deleted file mode 100644
index 2a6457e..0000000
--- a/node_modules/jsbn/LICENSE
+++ /dev/null
@@ -1,40 +0,0 @@
-Licensing
----------
-
-This software is covered under the following copyright:
-
-/*
- * Copyright (c) 2003-2005 Tom Wu
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
- * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
- *
- * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
- * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
- * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
- * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * In addition, the following condition applies:
- *
- * All redistributions must retain an intact copy of this copyright notice
- * and disclaimer.
- */
-
-Address all questions regarding this license to:
-
- Tom Wu
- tjw@cs.Stanford.EDU \ No newline at end of file
diff --git a/node_modules/jsbn/README.md b/node_modules/jsbn/README.md
deleted file mode 100644
index 7aac67f..0000000
--- a/node_modules/jsbn/README.md
+++ /dev/null
@@ -1,175 +0,0 @@
-# jsbn: javascript big number
-
-[Tom Wu's Original Website](http://www-cs-students.stanford.edu/~tjw/jsbn/)
-
-I felt compelled to put this on github and publish to npm. I haven't tested every other big integer library out there, but the few that I have tested in comparison to this one have not even come close in performance. I am aware of the `bi` module on npm, however it has been modified and I wanted to publish the original without modifications. This is jsbn and jsbn2 from Tom Wu's original website above, with the modular pattern applied to prevent global leaks and to allow for use with node.js on the server side.
-
-## usage
-
- var BigInteger = require('jsbn');
-
- var a = new BigInteger('91823918239182398123');
- alert(a.bitLength()); // 67
-
-
-## API
-
-### bi.toString()
-
-returns the base-10 number as a string
-
-### bi.negate()
-
-returns a new BigInteger equal to the negation of `bi`
-
-### bi.abs
-
-returns new BI of absolute value
-
-### bi.compareTo
-
-
-
-### bi.bitLength
-
-
-
-### bi.mod
-
-
-
-### bi.modPowInt
-
-
-
-### bi.clone
-
-
-
-### bi.intValue
-
-
-
-### bi.byteValue
-
-
-
-### bi.shortValue
-
-
-
-### bi.signum
-
-
-
-### bi.toByteArray
-
-
-
-### bi.equals
-
-
-
-### bi.min
-
-
-
-### bi.max
-
-
-
-### bi.and
-
-
-
-### bi.or
-
-
-
-### bi.xor
-
-
-
-### bi.andNot
-
-
-
-### bi.not
-
-
-
-### bi.shiftLeft
-
-
-
-### bi.shiftRight
-
-
-
-### bi.getLowestSetBit
-
-
-
-### bi.bitCount
-
-
-
-### bi.testBit
-
-
-
-### bi.setBit
-
-
-
-### bi.clearBit
-
-
-
-### bi.flipBit
-
-
-
-### bi.add
-
-
-
-### bi.subtract
-
-
-
-### bi.multiply
-
-
-
-### bi.divide
-
-
-
-### bi.remainder
-
-
-
-### bi.divideAndRemainder
-
-
-
-### bi.modPow
-
-
-
-### bi.modInverse
-
-
-
-### bi.pow
-
-
-
-### bi.gcd
-
-
-
-### bi.isProbablePrime
-
-
diff --git a/node_modules/jsbn/example.html b/node_modules/jsbn/example.html
deleted file mode 100644
index 7c26a56..0000000
--- a/node_modules/jsbn/example.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title></title>
- </head>
- <body>
-
-
- <script src="index.js"></script>
- </body>
-</html> \ No newline at end of file
diff --git a/node_modules/jsbn/example.js b/node_modules/jsbn/example.js
deleted file mode 100644
index 664c1b4..0000000
--- a/node_modules/jsbn/example.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var BigInteger = require('./');
-var a = new BigInteger('91823918239182398123');
-console.log(a.bitLength()); \ No newline at end of file
diff --git a/node_modules/jsbn/index.js b/node_modules/jsbn/index.js
deleted file mode 100644
index 973226d..0000000
--- a/node_modules/jsbn/index.js
+++ /dev/null
@@ -1,1357 +0,0 @@
-(function(){
-
- // Copyright (c) 2005 Tom Wu
- // All Rights Reserved.
- // See "LICENSE" for details.
-
- // Basic JavaScript BN library - subset useful for RSA encryption.
-
- // Bits per digit
- var dbits;
-
- // JavaScript engine analysis
- var canary = 0xdeadbeefcafe;
- var j_lm = ((canary&0xffffff)==0xefcafe);
-
- // (public) Constructor
- function BigInteger(a,b,c) {
- if(a != null)
- if("number" == typeof a) this.fromNumber(a,b,c);
- else if(b == null && "string" != typeof a) this.fromString(a,256);
- else this.fromString(a,b);
- }
-
- // return new, unset BigInteger
- function nbi() { return new BigInteger(null); }
-
- // am: Compute w_j += (x*this_i), propagate carries,
- // c is initial carry, returns final carry.
- // c < 3*dvalue, x < 2*dvalue, this_i < dvalue
- // We need to select the fastest one that works in this environment.
-
- // am1: use a single mult and divide to get the high bits,
- // max digit bits should be 26 because
- // max internal value = 2*dvalue^2-2*dvalue (< 2^53)
- function am1(i,x,w,j,c,n) {
- while(--n >= 0) {
- var v = x*this[i++]+w[j]+c;
- c = Math.floor(v/0x4000000);
- w[j++] = v&0x3ffffff;
- }
- return c;
- }
- // am2 avoids a big mult-and-extract completely.
- // Max digit bits should be <= 30 because we do bitwise ops
- // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)
- function am2(i,x,w,j,c,n) {
- var xl = x&0x7fff, xh = x>>15;
- while(--n >= 0) {
- var l = this[i]&0x7fff;
- var h = this[i++]>>15;
- var m = xh*l+h*xl;
- l = xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff);
- c = (l>>>30)+(m>>>15)+xh*h+(c>>>30);
- w[j++] = l&0x3fffffff;
- }
- return c;
- }
- // Alternately, set max digit bits to 28 since some
- // browsers slow down when dealing with 32-bit numbers.
- function am3(i,x,w,j,c,n) {
- var xl = x&0x3fff, xh = x>>14;
- while(--n >= 0) {
- var l = this[i]&0x3fff;
- var h = this[i++]>>14;
- var m = xh*l+h*xl;
- l = xl*l+((m&0x3fff)<<14)+w[j]+c;
- c = (l>>28)+(m>>14)+xh*h;
- w[j++] = l&0xfffffff;
- }
- return c;
- }
- var inBrowser = typeof navigator !== "undefined";
- if(inBrowser && j_lm && (navigator.appName == "Microsoft Internet Explorer")) {
- BigInteger.prototype.am = am2;
- dbits = 30;
- }
- else if(inBrowser && j_lm && (navigator.appName != "Netscape")) {
- BigInteger.prototype.am = am1;
- dbits = 26;
- }
- else { // Mozilla/Netscape seems to prefer am3
- BigInteger.prototype.am = am3;
- dbits = 28;
- }
-
- BigInteger.prototype.DB = dbits;
- BigInteger.prototype.DM = ((1<<dbits)-1);
- BigInteger.prototype.DV = (1<<dbits);
-
- var BI_FP = 52;
- BigInteger.prototype.FV = Math.pow(2,BI_FP);
- BigInteger.prototype.F1 = BI_FP-dbits;
- BigInteger.prototype.F2 = 2*dbits-BI_FP;
-
- // Digit conversions
- var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz";
- var BI_RC = new Array();
- var rr,vv;
- rr = "0".charCodeAt(0);
- for(vv = 0; vv <= 9; ++vv) BI_RC[rr++] = vv;
- rr = "a".charCodeAt(0);
- for(vv = 10; vv < 36; ++vv) BI_RC[rr++] = vv;
- rr = "A".charCodeAt(0);
- for(vv = 10; vv < 36; ++vv) BI_RC[rr++] = vv;
-
- function int2char(n) { return BI_RM.charAt(n); }
- function intAt(s,i) {
- var c = BI_RC[s.charCodeAt(i)];
- return (c==null)?-1:c;
- }
-
- // (protected) copy this to r
- function bnpCopyTo(r) {
- for(var i = this.t-1; i >= 0; --i) r[i] = this[i];
- r.t = this.t;
- r.s = this.s;
- }
-
- // (protected) set from integer value x, -DV <= x < DV
- function bnpFromInt(x) {
- this.t = 1;
- this.s = (x<0)?-1:0;
- if(x > 0) this[0] = x;
- else if(x < -1) this[0] = x+this.DV;
- else this.t = 0;
- }
-
- // return bigint initialized to value
- function nbv(i) { var r = nbi(); r.fromInt(i); return r; }
-
- // (protected) set from string and radix
- function bnpFromString(s,b) {
- var k;
- if(b == 16) k = 4;
- else if(b == 8) k = 3;
- else if(b == 256) k = 8; // byte array
- else if(b == 2) k = 1;
- else if(b == 32) k = 5;
- else if(b == 4) k = 2;
- else { this.fromRadix(s,b); return; }
- this.t = 0;
- this.s = 0;
- var i = s.length, mi = false, sh = 0;
- while(--i >= 0) {
- var x = (k==8)?s[i]&0xff:intAt(s,i);
- if(x < 0) {
- if(s.charAt(i) == "-") mi = true;
- continue;
- }
- mi = false;
- if(sh == 0)
- this[this.t++] = x;
- else if(sh+k > this.DB) {
- this[this.t-1] |= (x&((1<<(this.DB-sh))-1))<<sh;
- this[this.t++] = (x>>(this.DB-sh));
- }
- else
- this[this.t-1] |= x<<sh;
- sh += k;
- if(sh >= this.DB) sh -= this.DB;
- }
- if(k == 8 && (s[0]&0x80) != 0) {
- this.s = -1;
- if(sh > 0) this[this.t-1] |= ((1<<(this.DB-sh))-1)<<sh;
- }
- this.clamp();
- if(mi) BigInteger.ZERO.subTo(this,this);
- }
-
- // (protected) clamp off excess high words
- function bnpClamp() {
- var c = this.s&this.DM;
- while(this.t > 0 && this[this.t-1] == c) --this.t;
- }
-
- // (public) return string representation in given radix
- function bnToString(b) {
- if(this.s < 0) return "-"+this.negate().toString(b);
- var k;
- if(b == 16) k = 4;
- else if(b == 8) k = 3;
- else if(b == 2) k = 1;
- else if(b == 32) k = 5;
- else if(b == 4) k = 2;
- else return this.toRadix(b);
- var km = (1<<k)-1, d, m = false, r = "", i = this.t;
- var p = this.DB-(i*this.DB)%k;
- if(i-- > 0) {
- if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); }
- while(i >= 0) {
- if(p < k) {
- d = (this[i]&((1<<p)-1))<<(k-p);
- d |= this[--i]>>(p+=this.DB-k);
- }
- else {
- d = (this[i]>>(p-=k))&km;
- if(p <= 0) { p += this.DB; --i; }
- }
- if(d > 0) m = true;
- if(m) r += int2char(d);
- }
- }
- return m?r:"0";
- }
-
- // (public) -this
- function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; }
-
- // (public) |this|
- function bnAbs() { return (this.s<0)?this.negate():this; }
-
- // (public) return + if this > a, - if this < a, 0 if equal
- function bnCompareTo(a) {
- var r = this.s-a.s;
- if(r != 0) return r;
- var i = this.t;
- r = i-a.t;
- if(r != 0) return (this.s<0)?-r:r;
- while(--i >= 0) if((r=this[i]-a[i]) != 0) return r;
- return 0;
- }
-
- // returns bit length of the integer x
- function nbits(x) {
- var r = 1, t;
- if((t=x>>>16) != 0) { x = t; r += 16; }
- if((t=x>>8) != 0) { x = t; r += 8; }
- if((t=x>>4) != 0) { x = t; r += 4; }
- if((t=x>>2) != 0) { x = t; r += 2; }
- if((t=x>>1) != 0) { x = t; r += 1; }
- return r;
- }
-
- // (public) return the number of bits in "this"
- function bnBitLength() {
- if(this.t <= 0) return 0;
- return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM));
- }
-
- // (protected) r = this << n*DB
- function bnpDLShiftTo(n,r) {
- var i;
- for(i = this.t-1; i >= 0; --i) r[i+n] = this[i];
- for(i = n-1; i >= 0; --i) r[i] = 0;
- r.t = this.t+n;
- r.s = this.s;
- }
-
- // (protected) r = this >> n*DB
- function bnpDRShiftTo(n,r) {
- for(var i = n; i < this.t; ++i) r[i-n] = this[i];
- r.t = Math.max(this.t-n,0);
- r.s = this.s;
- }
-
- // (protected) r = this << n
- function bnpLShiftTo(n,r) {
- var bs = n%this.DB;
- var cbs = this.DB-bs;
- var bm = (1<<cbs)-1;
- var ds = Math.floor(n/this.DB), c = (this.s<<bs)&this.DM, i;
- for(i = this.t-1; i >= 0; --i) {
- r[i+ds+1] = (this[i]>>cbs)|c;
- c = (this[i]&bm)<<bs;
- }
- for(i = ds-1; i >= 0; --i) r[i] = 0;
- r[ds] = c;
- r.t = this.t+ds+1;
- r.s = this.s;
- r.clamp();
- }
-
- // (protected) r = this >> n
- function bnpRShiftTo(n,r) {
- r.s = this.s;
- var ds = Math.floor(n/this.DB);
- if(ds >= this.t) { r.t = 0; return; }
- var bs = n%this.DB;
- var cbs = this.DB-bs;
- var bm = (1<<bs)-1;
- r[0] = this[ds]>>bs;
- for(var i = ds+1; i < this.t; ++i) {
- r[i-ds-1] |= (this[i]&bm)<<cbs;
- r[i-ds] = this[i]>>bs;
- }
- if(bs > 0) r[this.t-ds-1] |= (this.s&bm)<<cbs;
- r.t = this.t-ds;
- r.clamp();
- }
-
- // (protected) r = this - a
- function bnpSubTo(a,r) {
- var i = 0, c = 0, m = Math.min(a.t,this.t);
- while(i < m) {
- c += this[i]-a[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- if(a.t < this.t) {
- c -= a.s;
- while(i < this.t) {
- c += this[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c += this.s;
- }
- else {
- c += this.s;
- while(i < a.t) {
- c -= a[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c -= a.s;
- }
- r.s = (c<0)?-1:0;
- if(c < -1) r[i++] = this.DV+c;
- else if(c > 0) r[i++] = c;
- r.t = i;
- r.clamp();
- }
-
- // (protected) r = this * a, r != this,a (HAC 14.12)
- // "this" should be the larger one if appropriate.
- function bnpMultiplyTo(a,r) {
- var x = this.abs(), y = a.abs();
- var i = x.t;
- r.t = i+y.t;
- while(--i >= 0) r[i] = 0;
- for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t);
- r.s = 0;
- r.clamp();
- if(this.s != a.s) BigInteger.ZERO.subTo(r,r);
- }
-
- // (protected) r = this^2, r != this (HAC 14.16)
- function bnpSquareTo(r) {
- var x = this.abs();
- var i = r.t = 2*x.t;
- while(--i >= 0) r[i] = 0;
- for(i = 0; i < x.t-1; ++i) {
- var c = x.am(i,x[i],r,2*i,0,1);
- if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) {
- r[i+x.t] -= x.DV;
- r[i+x.t+1] = 1;
- }
- }
- if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1);
- r.s = 0;
- r.clamp();
- }
-
- // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)
- // r != q, this != m. q or r may be null.
- function bnpDivRemTo(m,q,r) {
- var pm = m.abs();
- if(pm.t <= 0) return;
- var pt = this.abs();
- if(pt.t < pm.t) {
- if(q != null) q.fromInt(0);
- if(r != null) this.copyTo(r);
- return;
- }
- if(r == null) r = nbi();
- var y = nbi(), ts = this.s, ms = m.s;
- var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus
- if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); }
- else { pm.copyTo(y); pt.copyTo(r); }
- var ys = y.t;
- var y0 = y[ys-1];
- if(y0 == 0) return;
- var yt = y0*(1<<this.F1)+((ys>1)?y[ys-2]>>this.F2:0);
- var d1 = this.FV/yt, d2 = (1<<this.F1)/yt, e = 1<<this.F2;
- var i = r.t, j = i-ys, t = (q==null)?nbi():q;
- y.dlShiftTo(j,t);
- if(r.compareTo(t) >= 0) {
- r[r.t++] = 1;
- r.subTo(t,r);
- }
- BigInteger.ONE.dlShiftTo(ys,t);
- t.subTo(y,y); // "negative" y so we can replace sub with am later
- while(y.t < ys) y[y.t++] = 0;
- while(--j >= 0) {
- // Estimate quotient digit
- var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);
- if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out
- y.dlShiftTo(j,t);
- r.subTo(t,r);
- while(r[i] < --qd) r.subTo(t,r);
- }
- }
- if(q != null) {
- r.drShiftTo(ys,q);
- if(ts != ms) BigInteger.ZERO.subTo(q,q);
- }
- r.t = ys;
- r.clamp();
- if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder
- if(ts < 0) BigInteger.ZERO.subTo(r,r);
- }
-
- // (public) this mod a
- function bnMod(a) {
- var r = nbi();
- this.abs().divRemTo(a,null,r);
- if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r);
- return r;
- }
-
- // Modular reduction using "classic" algorithm
- function Classic(m) { this.m = m; }
- function cConvert(x) {
- if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m);
- else return x;
- }
- function cRevert(x) { return x; }
- function cReduce(x) { x.divRemTo(this.m,null,x); }
- function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
- function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
-
- Classic.prototype.convert = cConvert;
- Classic.prototype.revert = cRevert;
- Classic.prototype.reduce = cReduce;
- Classic.prototype.mulTo = cMulTo;
- Classic.prototype.sqrTo = cSqrTo;
-
- // (protected) return "-1/this % 2^DB"; useful for Mont. reduction
- // justification:
- // xy == 1 (mod m)
- // xy = 1+km
- // xy(2-xy) = (1+km)(1-km)
- // x[y(2-xy)] = 1-k^2m^2
- // x[y(2-xy)] == 1 (mod m^2)
- // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2
- // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.
- // JS multiply "overflows" differently from C/C++, so care is needed here.
- function bnpInvDigit() {
- if(this.t < 1) return 0;
- var x = this[0];
- if((x&1) == 0) return 0;
- var y = x&3; // y == 1/x mod 2^2
- y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4
- y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8
- y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16
- // last step - calculate inverse mod DV directly;
- // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints
- y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits
- // we really want the negative inverse, and -DV < y < DV
- return (y>0)?this.DV-y:-y;
- }
-
- // Montgomery reduction
- function Montgomery(m) {
- this.m = m;
- this.mp = m.invDigit();
- this.mpl = this.mp&0x7fff;
- this.mph = this.mp>>15;
- this.um = (1<<(m.DB-15))-1;
- this.mt2 = 2*m.t;
- }
-
- // xR mod m
- function montConvert(x) {
- var r = nbi();
- x.abs().dlShiftTo(this.m.t,r);
- r.divRemTo(this.m,null,r);
- if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r);
- return r;
- }
-
- // x/R mod m
- function montRevert(x) {
- var r = nbi();
- x.copyTo(r);
- this.reduce(r);
- return r;
- }
-
- // x = x/R mod m (HAC 14.32)
- function montReduce(x) {
- while(x.t <= this.mt2) // pad x so am has enough room later
- x[x.t++] = 0;
- for(var i = 0; i < this.m.t; ++i) {
- // faster way of calculating u0 = x[i]*mp mod DV
- var j = x[i]&0x7fff;
- var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM;
- // use am to combine the multiply-shift-add into one call
- j = i+this.m.t;
- x[j] += this.m.am(0,u0,x,i,0,this.m.t);
- // propagate carry
- while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; }
- }
- x.clamp();
- x.drShiftTo(this.m.t,x);
- if(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
- }
-
- // r = "x^2/R mod m"; x != r
- function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
-
- // r = "xy/R mod m"; x,y != r
- function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
-
- Montgomery.prototype.convert = montConvert;
- Montgomery.prototype.revert = montRevert;
- Montgomery.prototype.reduce = montReduce;
- Montgomery.prototype.mulTo = montMulTo;
- Montgomery.prototype.sqrTo = montSqrTo;
-
- // (protected) true iff this is even
- function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; }
-
- // (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79)
- function bnpExp(e,z) {
- if(e > 0xffffffff || e < 1) return BigInteger.ONE;
- var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1;
- g.copyTo(r);
- while(--i >= 0) {
- z.sqrTo(r,r2);
- if((e&(1<<i)) > 0) z.mulTo(r2,g,r);
- else { var t = r; r = r2; r2 = t; }
- }
- return z.revert(r);
- }
-
- // (public) this^e % m, 0 <= e < 2^32
- function bnModPowInt(e,m) {
- var z;
- if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m);
- return this.exp(e,z);
- }
-
- // protected
- BigInteger.prototype.copyTo = bnpCopyTo;
- BigInteger.prototype.fromInt = bnpFromInt;
- BigInteger.prototype.fromString = bnpFromString;
- BigInteger.prototype.clamp = bnpClamp;
- BigInteger.prototype.dlShiftTo = bnpDLShiftTo;
- BigInteger.prototype.drShiftTo = bnpDRShiftTo;
- BigInteger.prototype.lShiftTo = bnpLShiftTo;
- BigInteger.prototype.rShiftTo = bnpRShiftTo;
- BigInteger.prototype.subTo = bnpSubTo;
- BigInteger.prototype.multiplyTo = bnpMultiplyTo;
- BigInteger.prototype.squareTo = bnpSquareTo;
- BigInteger.prototype.divRemTo = bnpDivRemTo;
- BigInteger.prototype.invDigit = bnpInvDigit;
- BigInteger.prototype.isEven = bnpIsEven;
- BigInteger.prototype.exp = bnpExp;
-
- // public
- BigInteger.prototype.toString = bnToString;
- BigInteger.prototype.negate = bnNegate;
- BigInteger.prototype.abs = bnAbs;
- BigInteger.prototype.compareTo = bnCompareTo;
- BigInteger.prototype.bitLength = bnBitLength;
- BigInteger.prototype.mod = bnMod;
- BigInteger.prototype.modPowInt = bnModPowInt;
-
- // "constants"
- BigInteger.ZERO = nbv(0);
- BigInteger.ONE = nbv(1);
-
- // Copyright (c) 2005-2009 Tom Wu
- // All Rights Reserved.
- // See "LICENSE" for details.
-
- // Extended JavaScript BN functions, required for RSA private ops.
-
- // Version 1.1: new BigInteger("0", 10) returns "proper" zero
- // Version 1.2: square() API, isProbablePrime fix
-
- // (public)
- function bnClone() { var r = nbi(); this.copyTo(r); return r; }
-
- // (public) return value as integer
- function bnIntValue() {
- if(this.s < 0) {
- if(this.t == 1) return this[0]-this.DV;
- else if(this.t == 0) return -1;
- }
- else if(this.t == 1) return this[0];
- else if(this.t == 0) return 0;
- // assumes 16 < DB < 32
- return ((this[1]&((1<<(32-this.DB))-1))<<this.DB)|this[0];
- }
-
- // (public) return value as byte
- function bnByteValue() { return (this.t==0)?this.s:(this[0]<<24)>>24; }
-
- // (public) return value as short (assumes DB>=16)
- function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; }
-
- // (protected) return x s.t. r^x < DV
- function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); }
-
- // (public) 0 if this == 0, 1 if this > 0
- function bnSigNum() {
- if(this.s < 0) return -1;
- else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0;
- else return 1;
- }
-
- // (protected) convert to radix string
- function bnpToRadix(b) {
- if(b == null) b = 10;
- if(this.signum() == 0 || b < 2 || b > 36) return "0";
- var cs = this.chunkSize(b);
- var a = Math.pow(b,cs);
- var d = nbv(a), y = nbi(), z = nbi(), r = "";
- this.divRemTo(d,y,z);
- while(y.signum() > 0) {
- r = (a+z.intValue()).toString(b).substr(1) + r;
- y.divRemTo(d,y,z);
- }
- return z.intValue().toString(b) + r;
- }
-
- // (protected) convert from radix string
- function bnpFromRadix(s,b) {
- this.fromInt(0);
- if(b == null) b = 10;
- var cs = this.chunkSize(b);
- var d = Math.pow(b,cs), mi = false, j = 0, w = 0;
- for(var i = 0; i < s.length; ++i) {
- var x = intAt(s,i);
- if(x < 0) {
- if(s.charAt(i) == "-" && this.signum() == 0) mi = true;
- continue;
- }
- w = b*w+x;
- if(++j >= cs) {
- this.dMultiply(d);
- this.dAddOffset(w,0);
- j = 0;
- w = 0;
- }
- }
- if(j > 0) {
- this.dMultiply(Math.pow(b,j));
- this.dAddOffset(w,0);
- }
- if(mi) BigInteger.ZERO.subTo(this,this);
- }
-
- // (protected) alternate constructor
- function bnpFromNumber(a,b,c) {
- if("number" == typeof b) {
- // new BigInteger(int,int,RNG)
- if(a < 2) this.fromInt(1);
- else {
- this.fromNumber(a,c);
- if(!this.testBit(a-1)) // force MSB set
- this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);
- if(this.isEven()) this.dAddOffset(1,0); // force odd
- while(!this.isProbablePrime(b)) {
- this.dAddOffset(2,0);
- if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this);
- }
- }
- }
- else {
- // new BigInteger(int,RNG)
- var x = new Array(), t = a&7;
- x.length = (a>>3)+1;
- b.nextBytes(x);
- if(t > 0) x[0] &= ((1<<t)-1); else x[0] = 0;
- this.fromString(x,256);
- }
- }
-
- // (public) convert to bigendian byte array
- function bnToByteArray() {
- var i = this.t, r = new Array();
- r[0] = this.s;
- var p = this.DB-(i*this.DB)%8, d, k = 0;
- if(i-- > 0) {
- if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p)
- r[k++] = d|(this.s<<(this.DB-p));
- while(i >= 0) {
- if(p < 8) {
- d = (this[i]&((1<<p)-1))<<(8-p);
- d |= this[--i]>>(p+=this.DB-8);
- }
- else {
- d = (this[i]>>(p-=8))&0xff;
- if(p <= 0) { p += this.DB; --i; }
- }
- if((d&0x80) != 0) d |= -256;
- if(k == 0 && (this.s&0x80) != (d&0x80)) ++k;
- if(k > 0 || d != this.s) r[k++] = d;
- }
- }
- return r;
- }
-
- function bnEquals(a) { return(this.compareTo(a)==0); }
- function bnMin(a) { return(this.compareTo(a)<0)?this:a; }
- function bnMax(a) { return(this.compareTo(a)>0)?this:a; }
-
- // (protected) r = this op a (bitwise)
- function bnpBitwiseTo(a,op,r) {
- var i, f, m = Math.min(a.t,this.t);
- for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]);
- if(a.t < this.t) {
- f = a.s&this.DM;
- for(i = m; i < this.t; ++i) r[i] = op(this[i],f);
- r.t = this.t;
- }
- else {
- f = this.s&this.DM;
- for(i = m; i < a.t; ++i) r[i] = op(f,a[i]);
- r.t = a.t;
- }
- r.s = op(this.s,a.s);
- r.clamp();
- }
-
- // (public) this & a
- function op_and(x,y) { return x&y; }
- function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; }
-
- // (public) this | a
- function op_or(x,y) { return x|y; }
- function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; }
-
- // (public) this ^ a
- function op_xor(x,y) { return x^y; }
- function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; }
-
- // (public) this & ~a
- function op_andnot(x,y) { return x&~y; }
- function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; }
-
- // (public) ~this
- function bnNot() {
- var r = nbi();
- for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i];
- r.t = this.t;
- r.s = ~this.s;
- return r;
- }
-
- // (public) this << n
- function bnShiftLeft(n) {
- var r = nbi();
- if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r);
- return r;
- }
-
- // (public) this >> n
- function bnShiftRight(n) {
- var r = nbi();
- if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r);
- return r;
- }
-
- // return index of lowest 1-bit in x, x < 2^31
- function lbit(x) {
- if(x == 0) return -1;
- var r = 0;
- if((x&0xffff) == 0) { x >>= 16; r += 16; }
- if((x&0xff) == 0) { x >>= 8; r += 8; }
- if((x&0xf) == 0) { x >>= 4; r += 4; }
- if((x&3) == 0) { x >>= 2; r += 2; }
- if((x&1) == 0) ++r;
- return r;
- }
-
- // (public) returns index of lowest 1-bit (or -1 if none)
- function bnGetLowestSetBit() {
- for(var i = 0; i < this.t; ++i)
- if(this[i] != 0) return i*this.DB+lbit(this[i]);
- if(this.s < 0) return this.t*this.DB;
- return -1;
- }
-
- // return number of 1 bits in x
- function cbit(x) {
- var r = 0;
- while(x != 0) { x &= x-1; ++r; }
- return r;
- }
-
- // (public) return number of set bits
- function bnBitCount() {
- var r = 0, x = this.s&this.DM;
- for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x);
- return r;
- }
-
- // (public) true iff nth bit is set
- function bnTestBit(n) {
- var j = Math.floor(n/this.DB);
- if(j >= this.t) return(this.s!=0);
- return((this[j]&(1<<(n%this.DB)))!=0);
- }
-
- // (protected) this op (1<<n)
- function bnpChangeBit(n,op) {
- var r = BigInteger.ONE.shiftLeft(n);
- this.bitwiseTo(r,op,r);
- return r;
- }
-
- // (public) this | (1<<n)
- function bnSetBit(n) { return this.changeBit(n,op_or); }
-
- // (public) this & ~(1<<n)
- function bnClearBit(n) { return this.changeBit(n,op_andnot); }
-
- // (public) this ^ (1<<n)
- function bnFlipBit(n) { return this.changeBit(n,op_xor); }
-
- // (protected) r = this + a
- function bnpAddTo(a,r) {
- var i = 0, c = 0, m = Math.min(a.t,this.t);
- while(i < m) {
- c += this[i]+a[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- if(a.t < this.t) {
- c += a.s;
- while(i < this.t) {
- c += this[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c += this.s;
- }
- else {
- c += this.s;
- while(i < a.t) {
- c += a[i];
- r[i++] = c&this.DM;
- c >>= this.DB;
- }
- c += a.s;
- }
- r.s = (c<0)?-1:0;
- if(c > 0) r[i++] = c;
- else if(c < -1) r[i++] = this.DV+c;
- r.t = i;
- r.clamp();
- }
-
- // (public) this + a
- function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; }
-
- // (public) this - a
- function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; }
-
- // (public) this * a
- function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; }
-
- // (public) this^2
- function bnSquare() { var r = nbi(); this.squareTo(r); return r; }
-
- // (public) this / a
- function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; }
-
- // (public) this % a
- function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; }
-
- // (public) [this/a,this%a]
- function bnDivideAndRemainder(a) {
- var q = nbi(), r = nbi();
- this.divRemTo(a,q,r);
- return new Array(q,r);
- }
-
- // (protected) this *= n, this >= 0, 1 < n < DV
- function bnpDMultiply(n) {
- this[this.t] = this.am(0,n-1,this,0,0,this.t);
- ++this.t;
- this.clamp();
- }
-
- // (protected) this += n << w words, this >= 0
- function bnpDAddOffset(n,w) {
- if(n == 0) return;
- while(this.t <= w) this[this.t++] = 0;
- this[w] += n;
- while(this[w] >= this.DV) {
- this[w] -= this.DV;
- if(++w >= this.t) this[this.t++] = 0;
- ++this[w];
- }
- }
-
- // A "null" reducer
- function NullExp() {}
- function nNop(x) { return x; }
- function nMulTo(x,y,r) { x.multiplyTo(y,r); }
- function nSqrTo(x,r) { x.squareTo(r); }
-
- NullExp.prototype.convert = nNop;
- NullExp.prototype.revert = nNop;
- NullExp.prototype.mulTo = nMulTo;
- NullExp.prototype.sqrTo = nSqrTo;
-
- // (public) this^e
- function bnPow(e) { return this.exp(e,new NullExp()); }
-
- // (protected) r = lower n words of "this * a", a.t <= n
- // "this" should be the larger one if appropriate.
- function bnpMultiplyLowerTo(a,n,r) {
- var i = Math.min(this.t+a.t,n);
- r.s = 0; // assumes a,this >= 0
- r.t = i;
- while(i > 0) r[--i] = 0;
- var j;
- for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t);
- for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i);
- r.clamp();
- }
-
- // (protected) r = "this * a" without lower n words, n > 0
- // "this" should be the larger one if appropriate.
- function bnpMultiplyUpperTo(a,n,r) {
- --n;
- var i = r.t = this.t+a.t-n;
- r.s = 0; // assumes a,this >= 0
- while(--i >= 0) r[i] = 0;
- for(i = Math.max(n-this.t,0); i < a.t; ++i)
- r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n);
- r.clamp();
- r.drShiftTo(1,r);
- }
-
- // Barrett modular reduction
- function Barrett(m) {
- // setup Barrett
- this.r2 = nbi();
- this.q3 = nbi();
- BigInteger.ONE.dlShiftTo(2*m.t,this.r2);
- this.mu = this.r2.divide(m);
- this.m = m;
- }
-
- function barrettConvert(x) {
- if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m);
- else if(x.compareTo(this.m) < 0) return x;
- else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; }
- }
-
- function barrettRevert(x) { return x; }
-
- // x = x mod m (HAC 14.42)
- function barrettReduce(x) {
- x.drShiftTo(this.m.t-1,this.r2);
- if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); }
- this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);
- this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);
- while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1);
- x.subTo(this.r2,x);
- while(x.compareTo(this.m) >= 0) x.subTo(this.m,x);
- }
-
- // r = x^2 mod m; x != r
- function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); }
-
- // r = x*y mod m; x,y != r
- function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); }
-
- Barrett.prototype.convert = barrettConvert;
- Barrett.prototype.revert = barrettRevert;
- Barrett.prototype.reduce = barrettReduce;
- Barrett.prototype.mulTo = barrettMulTo;
- Barrett.prototype.sqrTo = barrettSqrTo;
-
- // (public) this^e % m (HAC 14.85)
- function bnModPow(e,m) {
- var i = e.bitLength(), k, r = nbv(1), z;
- if(i <= 0) return r;
- else if(i < 18) k = 1;
- else if(i < 48) k = 3;
- else if(i < 144) k = 4;
- else if(i < 768) k = 5;
- else k = 6;
- if(i < 8)
- z = new Classic(m);
- else if(m.isEven())
- z = new Barrett(m);
- else
- z = new Montgomery(m);
-
- // precomputation
- var g = new Array(), n = 3, k1 = k-1, km = (1<<k)-1;
- g[1] = z.convert(this);
- if(k > 1) {
- var g2 = nbi();
- z.sqrTo(g[1],g2);
- while(n <= km) {
- g[n] = nbi();
- z.mulTo(g2,g[n-2],g[n]);
- n += 2;
- }
- }
-
- var j = e.t-1, w, is1 = true, r2 = nbi(), t;
- i = nbits(e[j])-1;
- while(j >= 0) {
- if(i >= k1) w = (e[j]>>(i-k1))&km;
- else {
- w = (e[j]&((1<<(i+1))-1))<<(k1-i);
- if(j > 0) w |= e[j-1]>>(this.DB+i-k1);
- }
-
- n = k;
- while((w&1) == 0) { w >>= 1; --n; }
- if((i -= n) < 0) { i += this.DB; --j; }
- if(is1) { // ret == 1, don't bother squaring or multiplying it
- g[w].copyTo(r);
- is1 = false;
- }
- else {
- while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; }
- if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; }
- z.mulTo(r2,g[w],r);
- }
-
- while(j >= 0 && (e[j]&(1<<i)) == 0) {
- z.sqrTo(r,r2); t = r; r = r2; r2 = t;
- if(--i < 0) { i = this.DB-1; --j; }
- }
- }
- return z.revert(r);
- }
-
- // (public) gcd(this,a) (HAC 14.54)
- function bnGCD(a) {
- var x = (this.s<0)?this.negate():this.clone();
- var y = (a.s<0)?a.negate():a.clone();
- if(x.compareTo(y) < 0) { var t = x; x = y; y = t; }
- var i = x.getLowestSetBit(), g = y.getLowestSetBit();
- if(g < 0) return x;
- if(i < g) g = i;
- if(g > 0) {
- x.rShiftTo(g,x);
- y.rShiftTo(g,y);
- }
- while(x.signum() > 0) {
- if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x);
- if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y);
- if(x.compareTo(y) >= 0) {
- x.subTo(y,x);
- x.rShiftTo(1,x);
- }
- else {
- y.subTo(x,y);
- y.rShiftTo(1,y);
- }
- }
- if(g > 0) y.lShiftTo(g,y);
- return y;
- }
-
- // (protected) this % n, n < 2^26
- function bnpModInt(n) {
- if(n <= 0) return 0;
- var d = this.DV%n, r = (this.s<0)?n-1:0;
- if(this.t > 0)
- if(d == 0) r = this[0]%n;
- else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n;
- return r;
- }
-
- // (public) 1/this % m (HAC 14.61)
- function bnModInverse(m) {
- var ac = m.isEven();
- if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;
- var u = m.clone(), v = this.clone();
- var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1);
- while(u.signum() != 0) {
- while(u.isEven()) {
- u.rShiftTo(1,u);
- if(ac) {
- if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); }
- a.rShiftTo(1,a);
- }
- else if(!b.isEven()) b.subTo(m,b);
- b.rShiftTo(1,b);
- }
- while(v.isEven()) {
- v.rShiftTo(1,v);
- if(ac) {
- if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); }
- c.rShiftTo(1,c);
- }
- else if(!d.isEven()) d.subTo(m,d);
- d.rShiftTo(1,d);
- }
- if(u.compareTo(v) >= 0) {
- u.subTo(v,u);
- if(ac) a.subTo(c,a);
- b.subTo(d,b);
- }
- else {
- v.subTo(u,v);
- if(ac) c.subTo(a,c);
- d.subTo(b,d);
- }
- }
- if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO;
- if(d.compareTo(m) >= 0) return d.subtract(m);
- if(d.signum() < 0) d.addTo(m,d); else return d;
- if(d.signum() < 0) return d.add(m); else return d;
- }
-
- var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];
- var lplim = (1<<26)/lowprimes[lowprimes.length-1];
-
- // (public) test primality with certainty >= 1-.5^t
- function bnIsProbablePrime(t) {
- var i, x = this.abs();
- if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) {
- for(i = 0; i < lowprimes.length; ++i)
- if(x[0] == lowprimes[i]) return true;
- return false;
- }
- if(x.isEven()) return false;
- i = 1;
- while(i < lowprimes.length) {
- var m = lowprimes[i], j = i+1;
- while(j < lowprimes.length && m < lplim) m *= lowprimes[j++];
- m = x.modInt(m);
- while(i < j) if(m%lowprimes[i++] == 0) return false;
- }
- return x.millerRabin(t);
- }
-
- // (protected) true if probably prime (HAC 4.24, Miller-Rabin)
- function bnpMillerRabin(t) {
- var n1 = this.subtract(BigInteger.ONE);
- var k = n1.getLowestSetBit();
- if(k <= 0) return false;
- var r = n1.shiftRight(k);
- t = (t+1)>>1;
- if(t > lowprimes.length) t = lowprimes.length;
- var a = nbi();
- for(var i = 0; i < t; ++i) {
- //Pick bases at random, instead of starting at 2
- a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]);
- var y = a.modPow(r,this);
- if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {
- var j = 1;
- while(j++ < k && y.compareTo(n1) != 0) {
- y = y.modPowInt(2,this);
- if(y.compareTo(BigInteger.ONE) == 0) return false;
- }
- if(y.compareTo(n1) != 0) return false;
- }
- }
- return true;
- }
-
- // protected
- BigInteger.prototype.chunkSize = bnpChunkSize;
- BigInteger.prototype.toRadix = bnpToRadix;
- BigInteger.prototype.fromRadix = bnpFromRadix;
- BigInteger.prototype.fromNumber = bnpFromNumber;
- BigInteger.prototype.bitwiseTo = bnpBitwiseTo;
- BigInteger.prototype.changeBit = bnpChangeBit;
- BigInteger.prototype.addTo = bnpAddTo;
- BigInteger.prototype.dMultiply = bnpDMultiply;
- BigInteger.prototype.dAddOffset = bnpDAddOffset;
- BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;
- BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;
- BigInteger.prototype.modInt = bnpModInt;
- BigInteger.prototype.millerRabin = bnpMillerRabin;
-
- // public
- BigInteger.prototype.clone = bnClone;
- BigInteger.prototype.intValue = bnIntValue;
- BigInteger.prototype.byteValue = bnByteValue;
- BigInteger.prototype.shortValue = bnShortValue;
- BigInteger.prototype.signum = bnSigNum;
- BigInteger.prototype.toByteArray = bnToByteArray;
- BigInteger.prototype.equals = bnEquals;
- BigInteger.prototype.min = bnMin;
- BigInteger.prototype.max = bnMax;
- BigInteger.prototype.and = bnAnd;
- BigInteger.prototype.or = bnOr;
- BigInteger.prototype.xor = bnXor;
- BigInteger.prototype.andNot = bnAndNot;
- BigInteger.prototype.not = bnNot;
- BigInteger.prototype.shiftLeft = bnShiftLeft;
- BigInteger.prototype.shiftRight = bnShiftRight;
- BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;
- BigInteger.prototype.bitCount = bnBitCount;
- BigInteger.prototype.testBit = bnTestBit;
- BigInteger.prototype.setBit = bnSetBit;
- BigInteger.prototype.clearBit = bnClearBit;
- BigInteger.prototype.flipBit = bnFlipBit;
- BigInteger.prototype.add = bnAdd;
- BigInteger.prototype.subtract = bnSubtract;
- BigInteger.prototype.multiply = bnMultiply;
- BigInteger.prototype.divide = bnDivide;
- BigInteger.prototype.remainder = bnRemainder;
- BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder;
- BigInteger.prototype.modPow = bnModPow;
- BigInteger.prototype.modInverse = bnModInverse;
- BigInteger.prototype.pow = bnPow;
- BigInteger.prototype.gcd = bnGCD;
- BigInteger.prototype.isProbablePrime = bnIsProbablePrime;
-
- // JSBN-specific extension
- BigInteger.prototype.square = bnSquare;
-
- // Expose the Barrett function
- BigInteger.prototype.Barrett = Barrett
-
- // BigInteger interfaces not implemented in jsbn:
-
- // BigInteger(int signum, byte[] magnitude)
- // double doubleValue()
- // float floatValue()
- // int hashCode()
- // long longValue()
- // static BigInteger valueOf(long val)
-
- // Random number generator - requires a PRNG backend, e.g. prng4.js
-
- // For best results, put code like
- // <body onClick='rng_seed_time();' onKeyPress='rng_seed_time();'>
- // in your main HTML document.
-
- var rng_state;
- var rng_pool;
- var rng_pptr;
-
- // Mix in a 32-bit integer into the pool
- function rng_seed_int(x) {
- rng_pool[rng_pptr++] ^= x & 255;
- rng_pool[rng_pptr++] ^= (x >> 8) & 255;
- rng_pool[rng_pptr++] ^= (x >> 16) & 255;
- rng_pool[rng_pptr++] ^= (x >> 24) & 255;
- if(rng_pptr >= rng_psize) rng_pptr -= rng_psize;
- }
-
- // Mix in the current time (w/milliseconds) into the pool
- function rng_seed_time() {
- rng_seed_int(new Date().getTime());
- }
-
- // Initialize the pool with junk if needed.
- if(rng_pool == null) {
- rng_pool = new Array();
- rng_pptr = 0;
- var t;
- if(typeof window !== "undefined" && window.crypto) {
- if (window.crypto.getRandomValues) {
- // Use webcrypto if available
- var ua = new Uint8Array(32);
- window.crypto.getRandomValues(ua);
- for(t = 0; t < 32; ++t)
- rng_pool[rng_pptr++] = ua[t];
- }
- else if(navigator.appName == "Netscape" && navigator.appVersion < "5") {
- // Extract entropy (256 bits) from NS4 RNG if available
- var z = window.crypto.random(32);
- for(t = 0; t < z.length; ++t)
- rng_pool[rng_pptr++] = z.charCodeAt(t) & 255;
- }
- }
- while(rng_pptr < rng_psize) { // extract some randomness from Math.random()
- t = Math.floor(65536 * Math.random());
- rng_pool[rng_pptr++] = t >>> 8;
- rng_pool[rng_pptr++] = t & 255;
- }
- rng_pptr = 0;
- rng_seed_time();
- //rng_seed_int(window.screenX);
- //rng_seed_int(window.screenY);
- }
-
- function rng_get_byte() {
- if(rng_state == null) {
- rng_seed_time();
- rng_state = prng_newstate();
- rng_state.init(rng_pool);
- for(rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr)
- rng_pool[rng_pptr] = 0;
- rng_pptr = 0;
- //rng_pool = null;
- }
- // TODO: allow reseeding after first request
- return rng_state.next();
- }
-
- function rng_get_bytes(ba) {
- var i;
- for(i = 0; i < ba.length; ++i) ba[i] = rng_get_byte();
- }
-
- function SecureRandom() {}
-
- SecureRandom.prototype.nextBytes = rng_get_bytes;
-
- // prng4.js - uses Arcfour as a PRNG
-
- function Arcfour() {
- this.i = 0;
- this.j = 0;
- this.S = new Array();
- }
-
- // Initialize arcfour context from key, an array of ints, each from [0..255]
- function ARC4init(key) {
- var i, j, t;
- for(i = 0; i < 256; ++i)
- this.S[i] = i;
- j = 0;
- for(i = 0; i < 256; ++i) {
- j = (j + this.S[i] + key[i % key.length]) & 255;
- t = this.S[i];
- this.S[i] = this.S[j];
- this.S[j] = t;
- }
- this.i = 0;
- this.j = 0;
- }
-
- function ARC4next() {
- var t;
- this.i = (this.i + 1) & 255;
- this.j = (this.j + this.S[this.i]) & 255;
- t = this.S[this.i];
- this.S[this.i] = this.S[this.j];
- this.S[this.j] = t;
- return this.S[(t + this.S[this.i]) & 255];
- }
-
- Arcfour.prototype.init = ARC4init;
- Arcfour.prototype.next = ARC4next;
-
- // Plug in your RNG constructor here
- function prng_newstate() {
- return new Arcfour();
- }
-
- // Pool size must be a multiple of 4 and greater than 32.
- // An array of bytes the size of the pool will be passed to init()
- var rng_psize = 256;
-
- BigInteger.SecureRandom = SecureRandom;
- BigInteger.BigInteger = BigInteger;
- if (typeof exports !== 'undefined') {
- exports = module.exports = BigInteger;
- } else {
- this.BigInteger = BigInteger;
- this.SecureRandom = SecureRandom;
- }
-
-}).call(this);
diff --git a/node_modules/jsbn/package.json b/node_modules/jsbn/package.json
deleted file mode 100644
index 169701c..0000000
--- a/node_modules/jsbn/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_from": "jsbn@~0.1.0",
- "_id": "jsbn@0.1.1",
- "_inBundle": false,
- "_integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
- "_location": "/jsbn",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "jsbn@~0.1.0",
- "name": "jsbn",
- "escapedName": "jsbn",
- "rawSpec": "~0.1.0",
- "saveSpec": null,
- "fetchSpec": "~0.1.0"
- },
- "_requiredBy": [
- "/ecc-jsbn",
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
- "_shasum": "a5e654c2e5a2deb5f201d96cefbca80c0ef2f513",
- "_spec": "jsbn@~0.1.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "author": {
- "name": "Tom Wu"
- },
- "bugs": {
- "url": "https://github.com/andyperlitch/jsbn/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.",
- "homepage": "https://github.com/andyperlitch/jsbn#readme",
- "keywords": [
- "biginteger",
- "bignumber",
- "big",
- "integer"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "jsbn",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/andyperlitch/jsbn.git"
- },
- "scripts": {
- "test": "mocha test.js"
- },
- "version": "0.1.1"
-}
diff --git a/node_modules/json-schema-traverse/.eslintrc.yml b/node_modules/json-schema-traverse/.eslintrc.yml
deleted file mode 100644
index ab1762d..0000000
--- a/node_modules/json-schema-traverse/.eslintrc.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-extends: eslint:recommended
-env:
- node: true
- browser: true
-rules:
- block-scoped-var: 2
- complexity: [2, 13]
- curly: [2, multi-or-nest, consistent]
- dot-location: [2, property]
- dot-notation: 2
- indent: [2, 2, SwitchCase: 1]
- linebreak-style: [2, unix]
- new-cap: 2
- no-console: [2, allow: [warn, error]]
- no-else-return: 2
- no-eq-null: 2
- no-fallthrough: 2
- no-invalid-this: 2
- no-return-assign: 2
- no-shadow: 1
- no-trailing-spaces: 2
- no-use-before-define: [2, nofunc]
- quotes: [2, single, avoid-escape]
- semi: [2, always]
- strict: [2, global]
- valid-jsdoc: [2, requireReturn: false]
- no-control-regex: 0
diff --git a/node_modules/json-schema-traverse/.travis.yml b/node_modules/json-schema-traverse/.travis.yml
deleted file mode 100644
index 7ddce74..0000000
--- a/node_modules/json-schema-traverse/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-language: node_js
-node_js:
- - "4"
- - "6"
- - "7"
- - "8"
-after_script:
- - coveralls < coverage/lcov.info
diff --git a/node_modules/json-schema-traverse/LICENSE b/node_modules/json-schema-traverse/LICENSE
deleted file mode 100644
index 7f15435..0000000
--- a/node_modules/json-schema-traverse/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 Evgeny Poberezkin
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/json-schema-traverse/README.md b/node_modules/json-schema-traverse/README.md
deleted file mode 100644
index d5ccaf4..0000000
--- a/node_modules/json-schema-traverse/README.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# json-schema-traverse
-Traverse JSON Schema passing each schema object to callback
-
-[![Build Status](https://travis-ci.org/epoberezkin/json-schema-traverse.svg?branch=master)](https://travis-ci.org/epoberezkin/json-schema-traverse)
-[![npm version](https://badge.fury.io/js/json-schema-traverse.svg)](https://www.npmjs.com/package/json-schema-traverse)
-[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master)
-
-
-## Install
-
-```
-npm install json-schema-traverse
-```
-
-
-## Usage
-
-```javascript
-const traverse = require('json-schema-traverse');
-const schema = {
- properties: {
- foo: {type: 'string'},
- bar: {type: 'integer'}
- }
-};
-
-traverse(schema, {cb});
-// cb is called 3 times with:
-// 1. root schema
-// 2. {type: 'string'}
-// 3. {type: 'integer'}
-
-// Or:
-
-traverse(schema, {cb: {pre, post}});
-// pre is called 3 times with:
-// 1. root schema
-// 2. {type: 'string'}
-// 3. {type: 'integer'}
-//
-// post is called 3 times with:
-// 1. {type: 'string'}
-// 2. {type: 'integer'}
-// 3. root schema
-
-```
-
-Callback function `cb` is called for each schema object (not including draft-06 boolean schemas), including the root schema, in pre-order traversal. Schema references ($ref) are not resolved, they are passed as is. Alternatively, you can pass a `{pre, post}` object as `cb`, and then `pre` will be called before traversing child elements, and `post` will be called after all child elements have been traversed.
-
-Callback is passed these parameters:
-
-- _schema_: the current schema object
-- _JSON pointer_: from the root schema to the current schema object
-- _root schema_: the schema passed to `traverse` object
-- _parent JSON pointer_: from the root schema to the parent schema object (see below)
-- _parent keyword_: the keyword inside which this schema appears (e.g. `properties`, `anyOf`, etc.)
-- _parent schema_: not necessarily parent object/array; in the example above the parent schema for `{type: 'string'}` is the root schema
-- _index/property_: index or property name in the array/object containing multiple schemas; in the example above for `{type: 'string'}` the property name is `'foo'`
-
-
-## Traverse objects in all unknown keywords
-
-```javascript
-const traverse = require('json-schema-traverse');
-const schema = {
- mySchema: {
- minimum: 1,
- maximum: 2
- }
-};
-
-traverse(schema, {allKeys: true, cb});
-// cb is called 2 times with:
-// 1. root schema
-// 2. mySchema
-```
-
-Without option `allKeys: true` callback will be called only with root schema.
-
-
-## License
-
-[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE)
diff --git a/node_modules/json-schema-traverse/index.js b/node_modules/json-schema-traverse/index.js
deleted file mode 100644
index d4a18df..0000000
--- a/node_modules/json-schema-traverse/index.js
+++ /dev/null
@@ -1,89 +0,0 @@
-'use strict';
-
-var traverse = module.exports = function (schema, opts, cb) {
- // Legacy support for v0.3.1 and earlier.
- if (typeof opts == 'function') {
- cb = opts;
- opts = {};
- }
-
- cb = opts.cb || cb;
- var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};
- var post = cb.post || function() {};
-
- _traverse(opts, pre, post, schema, '', schema);
-};
-
-
-traverse.keywords = {
- additionalItems: true,
- items: true,
- contains: true,
- additionalProperties: true,
- propertyNames: true,
- not: true
-};
-
-traverse.arrayKeywords = {
- items: true,
- allOf: true,
- anyOf: true,
- oneOf: true
-};
-
-traverse.propsKeywords = {
- definitions: true,
- properties: true,
- patternProperties: true,
- dependencies: true
-};
-
-traverse.skipKeywords = {
- default: true,
- enum: true,
- const: true,
- required: true,
- maximum: true,
- minimum: true,
- exclusiveMaximum: true,
- exclusiveMinimum: true,
- multipleOf: true,
- maxLength: true,
- minLength: true,
- pattern: true,
- format: true,
- maxItems: true,
- minItems: true,
- uniqueItems: true,
- maxProperties: true,
- minProperties: true
-};
-
-
-function _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
- if (schema && typeof schema == 'object' && !Array.isArray(schema)) {
- pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
- for (var key in schema) {
- var sch = schema[key];
- if (Array.isArray(sch)) {
- if (key in traverse.arrayKeywords) {
- for (var i=0; i<sch.length; i++)
- _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
- }
- } else if (key in traverse.propsKeywords) {
- if (sch && typeof sch == 'object') {
- for (var prop in sch)
- _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
- }
- } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
- _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
- }
- }
- post(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);
- }
-}
-
-
-function escapeJsonPtr(str) {
- return str.replace(/~/g, '~0').replace(/\//g, '~1');
-}
diff --git a/node_modules/json-schema-traverse/package.json b/node_modules/json-schema-traverse/package.json
deleted file mode 100644
index 538d61f..0000000
--- a/node_modules/json-schema-traverse/package.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "_from": "json-schema-traverse@^0.4.1",
- "_id": "json-schema-traverse@0.4.1",
- "_inBundle": false,
- "_integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
- "_location": "/json-schema-traverse",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "json-schema-traverse@^0.4.1",
- "name": "json-schema-traverse",
- "escapedName": "json-schema-traverse",
- "rawSpec": "^0.4.1",
- "saveSpec": null,
- "fetchSpec": "^0.4.1"
- },
- "_requiredBy": [
- "/ajv"
- ],
- "_resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
- "_shasum": "69f6a87d9513ab8bb8fe63bdb0979c448e684660",
- "_spec": "json-schema-traverse@^0.4.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/ajv",
- "author": {
- "name": "Evgeny Poberezkin"
- },
- "bugs": {
- "url": "https://github.com/epoberezkin/json-schema-traverse/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Traverse JSON Schema passing each schema object to callback",
- "devDependencies": {
- "coveralls": "^2.13.1",
- "eslint": "^3.19.0",
- "mocha": "^3.4.2",
- "nyc": "^11.0.2",
- "pre-commit": "^1.2.2"
- },
- "homepage": "https://github.com/epoberezkin/json-schema-traverse#readme",
- "keywords": [
- "JSON-Schema",
- "traverse",
- "iterate"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "json-schema-traverse",
- "nyc": {
- "exclude": [
- "**/spec/**",
- "node_modules"
- ],
- "reporter": [
- "lcov",
- "text-summary"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/epoberezkin/json-schema-traverse.git"
- },
- "scripts": {
- "eslint": "eslint index.js spec",
- "test": "npm run eslint && nyc npm run test-spec",
- "test-spec": "mocha spec -R spec"
- },
- "version": "0.4.1"
-}
diff --git a/node_modules/json-schema-traverse/spec/.eslintrc.yml b/node_modules/json-schema-traverse/spec/.eslintrc.yml
deleted file mode 100644
index 3344da7..0000000
--- a/node_modules/json-schema-traverse/spec/.eslintrc.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-parserOptions:
- ecmaVersion: 6
-globals:
- beforeEach: false
- describe: false
- it: false
diff --git a/node_modules/json-schema-traverse/spec/fixtures/schema.js b/node_modules/json-schema-traverse/spec/fixtures/schema.js
deleted file mode 100644
index c51430c..0000000
--- a/node_modules/json-schema-traverse/spec/fixtures/schema.js
+++ /dev/null
@@ -1,125 +0,0 @@
-'use strict';
-
-var schema = {
- additionalItems: subschema('additionalItems'),
- items: subschema('items'),
- contains: subschema('contains'),
- additionalProperties: subschema('additionalProperties'),
- propertyNames: subschema('propertyNames'),
- not: subschema('not'),
- allOf: [
- subschema('allOf_0'),
- subschema('allOf_1'),
- {
- items: [
- subschema('items_0'),
- subschema('items_1'),
- ]
- }
- ],
- anyOf: [
- subschema('anyOf_0'),
- subschema('anyOf_1'),
- ],
- oneOf: [
- subschema('oneOf_0'),
- subschema('oneOf_1'),
- ],
- definitions: {
- foo: subschema('definitions_foo'),
- bar: subschema('definitions_bar'),
- },
- properties: {
- foo: subschema('properties_foo'),
- bar: subschema('properties_bar'),
- },
- patternProperties: {
- foo: subschema('patternProperties_foo'),
- bar: subschema('patternProperties_bar'),
- },
- dependencies: {
- foo: subschema('dependencies_foo'),
- bar: subschema('dependencies_bar'),
- },
- required: ['foo', 'bar']
-};
-
-
-function subschema(keyword) {
- var sch = {
- properties: {},
- additionalProperties: false,
- additionalItems: false,
- anyOf: [
- {format: 'email'},
- {format: 'hostname'}
- ]
- };
- sch.properties['foo_' + keyword] = {title: 'foo'};
- sch.properties['bar_' + keyword] = {title: 'bar'};
- return sch;
-}
-
-
-module.exports = {
- schema: schema,
-
- // schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex
- expectedCalls: [[schema, '', schema, undefined, undefined, undefined, undefined]]
- .concat(expectedCalls('additionalItems'))
- .concat(expectedCalls('items'))
- .concat(expectedCalls('contains'))
- .concat(expectedCalls('additionalProperties'))
- .concat(expectedCalls('propertyNames'))
- .concat(expectedCalls('not'))
- .concat(expectedCallsChild('allOf', 0))
- .concat(expectedCallsChild('allOf', 1))
- .concat([
- [schema.allOf[2], '/allOf/2', schema, '', 'allOf', schema, 2],
- [schema.allOf[2].items[0], '/allOf/2/items/0', schema, '/allOf/2', 'items', schema.allOf[2], 0],
- [schema.allOf[2].items[0].properties.foo_items_0, '/allOf/2/items/0/properties/foo_items_0', schema, '/allOf/2/items/0', 'properties', schema.allOf[2].items[0], 'foo_items_0'],
- [schema.allOf[2].items[0].properties.bar_items_0, '/allOf/2/items/0/properties/bar_items_0', schema, '/allOf/2/items/0', 'properties', schema.allOf[2].items[0], 'bar_items_0'],
- [schema.allOf[2].items[0].anyOf[0], '/allOf/2/items/0/anyOf/0', schema, '/allOf/2/items/0', 'anyOf', schema.allOf[2].items[0], 0],
- [schema.allOf[2].items[0].anyOf[1], '/allOf/2/items/0/anyOf/1', schema, '/allOf/2/items/0', 'anyOf', schema.allOf[2].items[0], 1],
-
- [schema.allOf[2].items[1], '/allOf/2/items/1', schema, '/allOf/2', 'items', schema.allOf[2], 1],
- [schema.allOf[2].items[1].properties.foo_items_1, '/allOf/2/items/1/properties/foo_items_1', schema, '/allOf/2/items/1', 'properties', schema.allOf[2].items[1], 'foo_items_1'],
- [schema.allOf[2].items[1].properties.bar_items_1, '/allOf/2/items/1/properties/bar_items_1', schema, '/allOf/2/items/1', 'properties', schema.allOf[2].items[1], 'bar_items_1'],
- [schema.allOf[2].items[1].anyOf[0], '/allOf/2/items/1/anyOf/0', schema, '/allOf/2/items/1', 'anyOf', schema.allOf[2].items[1], 0],
- [schema.allOf[2].items[1].anyOf[1], '/allOf/2/items/1/anyOf/1', schema, '/allOf/2/items/1', 'anyOf', schema.allOf[2].items[1], 1]
- ])
- .concat(expectedCallsChild('anyOf', 0))
- .concat(expectedCallsChild('anyOf', 1))
- .concat(expectedCallsChild('oneOf', 0))
- .concat(expectedCallsChild('oneOf', 1))
- .concat(expectedCallsChild('definitions', 'foo'))
- .concat(expectedCallsChild('definitions', 'bar'))
- .concat(expectedCallsChild('properties', 'foo'))
- .concat(expectedCallsChild('properties', 'bar'))
- .concat(expectedCallsChild('patternProperties', 'foo'))
- .concat(expectedCallsChild('patternProperties', 'bar'))
- .concat(expectedCallsChild('dependencies', 'foo'))
- .concat(expectedCallsChild('dependencies', 'bar'))
-};
-
-
-function expectedCalls(keyword) {
- return [
- [schema[keyword], `/${keyword}`, schema, '', keyword, schema, undefined],
- [schema[keyword].properties[`foo_${keyword}`], `/${keyword}/properties/foo_${keyword}`, schema, `/${keyword}`, 'properties', schema[keyword], `foo_${keyword}`],
- [schema[keyword].properties[`bar_${keyword}`], `/${keyword}/properties/bar_${keyword}`, schema, `/${keyword}`, 'properties', schema[keyword], `bar_${keyword}`],
- [schema[keyword].anyOf[0], `/${keyword}/anyOf/0`, schema, `/${keyword}`, 'anyOf', schema[keyword], 0],
- [schema[keyword].anyOf[1], `/${keyword}/anyOf/1`, schema, `/${keyword}`, 'anyOf', schema[keyword], 1]
- ];
-}
-
-
-function expectedCallsChild(keyword, i) {
- return [
- [schema[keyword][i], `/${keyword}/${i}`, schema, '', keyword, schema, i],
- [schema[keyword][i].properties[`foo_${keyword}_${i}`], `/${keyword}/${i}/properties/foo_${keyword}_${i}`, schema, `/${keyword}/${i}`, 'properties', schema[keyword][i], `foo_${keyword}_${i}`],
- [schema[keyword][i].properties[`bar_${keyword}_${i}`], `/${keyword}/${i}/properties/bar_${keyword}_${i}`, schema, `/${keyword}/${i}`, 'properties', schema[keyword][i], `bar_${keyword}_${i}`],
- [schema[keyword][i].anyOf[0], `/${keyword}/${i}/anyOf/0`, schema, `/${keyword}/${i}`, 'anyOf', schema[keyword][i], 0],
- [schema[keyword][i].anyOf[1], `/${keyword}/${i}/anyOf/1`, schema, `/${keyword}/${i}`, 'anyOf', schema[keyword][i], 1]
- ];
-}
diff --git a/node_modules/json-schema-traverse/spec/index.spec.js b/node_modules/json-schema-traverse/spec/index.spec.js
deleted file mode 100644
index c76b64f..0000000
--- a/node_modules/json-schema-traverse/spec/index.spec.js
+++ /dev/null
@@ -1,171 +0,0 @@
-'use strict';
-
-var traverse = require('../index');
-var assert = require('assert');
-
-describe('json-schema-traverse', function() {
- var calls;
-
- beforeEach(function() {
- calls = [];
- });
-
- it('should traverse all keywords containing schemas recursively', function() {
- var schema = require('./fixtures/schema').schema;
- var expectedCalls = require('./fixtures/schema').expectedCalls;
-
- traverse(schema, {cb: callback});
- assert.deepStrictEqual(calls, expectedCalls);
- });
-
- describe('Legacy v0.3.1 API', function() {
- it('should traverse all keywords containing schemas recursively', function() {
- var schema = require('./fixtures/schema').schema;
- var expectedCalls = require('./fixtures/schema').expectedCalls;
-
- traverse(schema, callback);
- assert.deepStrictEqual(calls, expectedCalls);
- });
-
- it('should work when an options object is provided', function() {
- // schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex
- var schema = require('./fixtures/schema').schema;
- var expectedCalls = require('./fixtures/schema').expectedCalls;
-
- traverse(schema, {}, callback);
- assert.deepStrictEqual(calls, expectedCalls);
- });
- });
-
-
- describe('allKeys option', function() {
- var schema = {
- someObject: {
- minimum: 1,
- maximum: 2
- }
- };
-
- it('should traverse objects with allKeys: true option', function() {
- // schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex
- var expectedCalls = [
- [schema, '', schema, undefined, undefined, undefined, undefined],
- [schema.someObject, '/someObject', schema, '', 'someObject', schema, undefined]
- ];
-
- traverse(schema, {allKeys: true, cb: callback});
- assert.deepStrictEqual(calls, expectedCalls);
- });
-
-
- it('should NOT traverse objects with allKeys: false option', function() {
- // schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex
- var expectedCalls = [
- [schema, '', schema, undefined, undefined, undefined, undefined]
- ];
-
- traverse(schema, {allKeys: false, cb: callback});
- assert.deepStrictEqual(calls, expectedCalls);
- });
-
-
- it('should NOT traverse objects without allKeys option', function() {
- // schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex
- var expectedCalls = [
- [schema, '', schema, undefined, undefined, undefined, undefined]
- ];
-
- traverse(schema, {cb: callback});
- assert.deepStrictEqual(calls, expectedCalls);
- });
-
-
- it('should NOT travers objects in standard keywords which value is not a schema', function() {
- var schema2 = {
- const: {foo: 'bar'},
- enum: ['a', 'b'],
- required: ['foo'],
- another: {
-
- },
- patternProperties: {}, // will not traverse - no properties
- dependencies: true, // will not traverse - invalid
- properties: {
- smaller: {
- type: 'number'
- },
- larger: {
- type: 'number',
- minimum: {$data: '1/smaller'}
- }
- }
- };
-
- // schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex
- var expectedCalls = [
- [schema2, '', schema2, undefined, undefined, undefined, undefined],
- [schema2.another, '/another', schema2, '', 'another', schema2, undefined],
- [schema2.properties.smaller, '/properties/smaller', schema2, '', 'properties', schema2, 'smaller'],
- [schema2.properties.larger, '/properties/larger', schema2, '', 'properties', schema2, 'larger'],
- ];
-
- traverse(schema2, {allKeys: true, cb: callback});
- assert.deepStrictEqual(calls, expectedCalls);
- });
- });
-
- describe('pre and post', function() {
- var schema = {
- type: 'object',
- properties: {
- name: {type: 'string'},
- age: {type: 'number'}
- }
- };
-
- it('should traverse schema in pre-order', function() {
- traverse(schema, {cb: {pre}});
- var expectedCalls = [
- ['pre', schema, '', schema, undefined, undefined, undefined, undefined],
- ['pre', schema.properties.name, '/properties/name', schema, '', 'properties', schema, 'name'],
- ['pre', schema.properties.age, '/properties/age', schema, '', 'properties', schema, 'age'],
- ];
- assert.deepStrictEqual(calls, expectedCalls);
- });
-
- it('should traverse schema in post-order', function() {
- traverse(schema, {cb: {post}});
- var expectedCalls = [
- ['post', schema.properties.name, '/properties/name', schema, '', 'properties', schema, 'name'],
- ['post', schema.properties.age, '/properties/age', schema, '', 'properties', schema, 'age'],
- ['post', schema, '', schema, undefined, undefined, undefined, undefined],
- ];
- assert.deepStrictEqual(calls, expectedCalls);
- });
-
- it('should traverse schema in pre- and post-order at the same time', function() {
- traverse(schema, {cb: {pre, post}});
- var expectedCalls = [
- ['pre', schema, '', schema, undefined, undefined, undefined, undefined],
- ['pre', schema.properties.name, '/properties/name', schema, '', 'properties', schema, 'name'],
- ['post', schema.properties.name, '/properties/name', schema, '', 'properties', schema, 'name'],
- ['pre', schema.properties.age, '/properties/age', schema, '', 'properties', schema, 'age'],
- ['post', schema.properties.age, '/properties/age', schema, '', 'properties', schema, 'age'],
- ['post', schema, '', schema, undefined, undefined, undefined, undefined],
- ];
- assert.deepStrictEqual(calls, expectedCalls);
- });
- });
-
- function callback() {
- calls.push(Array.prototype.slice.call(arguments));
- }
-
- function pre() {
- calls.push(['pre'].concat(Array.prototype.slice.call(arguments)));
- }
-
- function post() {
- calls.push(['post'].concat(Array.prototype.slice.call(arguments)));
- }
-});
diff --git a/node_modules/json-schema/README.md b/node_modules/json-schema/README.md
deleted file mode 100644
index ccc591b..0000000
--- a/node_modules/json-schema/README.md
+++ /dev/null
@@ -1,5 +0,0 @@
-JSON Schema is a repository for the JSON Schema specification, reference schemas and a CommonJS implementation of JSON Schema (not the only JavaScript implementation of JSON Schema, JSV is another excellent JavaScript validator).
-
-Code is licensed under the AFL or BSD license as part of the Persevere
-project which is administered under the Dojo foundation,
-and all contributions require a Dojo CLA. \ No newline at end of file
diff --git a/node_modules/json-schema/draft-00/hyper-schema b/node_modules/json-schema/draft-00/hyper-schema
deleted file mode 100644
index 12fe26b..0000000
--- a/node_modules/json-schema/draft-00/hyper-schema
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
- "id" : "http://json-schema.org/draft-00/hyper-schema#",
-
- "properties" : {
- "links" : {
- "type" : "array",
- "items" : {"$ref" : "http://json-schema.org/draft-00/links#"},
- "optional" : true
- },
-
- "fragmentResolution" : {
- "type" : "string",
- "optional" : true,
- "default" : "dot-delimited"
- },
-
- "root" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "readonly" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "pathStart" : {
- "type" : "string",
- "optional" : true,
- "format" : "uri"
- },
-
- "mediaType" : {
- "type" : "string",
- "optional" : true,
- "format" : "media-type"
- },
-
- "alternate" : {
- "type" : "array",
- "items" : {"$ref" : "#"},
- "optional" : true
- }
- },
-
- "links" : [
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- },
-
- {
- "href" : "{id}",
- "rel" : "self"
- }
- ],
-
- "fragmentResolution" : "dot-delimited",
- "extends" : {"$ref" : "http://json-schema.org/draft-00/schema#"}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-00/json-ref b/node_modules/json-schema/draft-00/json-ref
deleted file mode 100644
index 0c825bc..0000000
--- a/node_modules/json-schema/draft-00/json-ref
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
- "id" : "http://json-schema.org/draft-00/json-ref#",
-
- "items" : {"$ref" : "#"},
- "additionalProperties" : {"$ref" : "#"},
-
- "links" : [
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- },
-
- {
- "href" : "{id}",
- "rel" : "self"
- }
- ],
-
- "fragmentResolution" : "dot-delimited"
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-00/links b/node_modules/json-schema/draft-00/links
deleted file mode 100644
index c9b5517..0000000
--- a/node_modules/json-schema/draft-00/links
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
- "id" : "http://json-schema.org/draft-00/links#",
- "type" : "object",
-
- "properties" : {
- "href" : {
- "type" : "string"
- },
-
- "rel" : {
- "type" : "string"
- },
-
- "method" : {
- "type" : "string",
- "default" : "GET",
- "optional" : true
- },
-
- "enctype" : {
- "type" : "string",
- "requires" : "method",
- "optional" : true
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "http://json-schema.org/draft-00/hyper-schema#"},
- "optional" : true
- }
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-00/schema b/node_modules/json-schema/draft-00/schema
deleted file mode 100644
index a3a2144..0000000
--- a/node_modules/json-schema/draft-00/schema
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
- "id" : "http://json-schema.org/draft-00/schema#",
- "type" : "object",
-
- "properties" : {
- "type" : {
- "type" : ["string", "array"],
- "items" : {
- "type" : ["string", {"$ref" : "#"}]
- },
- "optional" : true,
- "default" : "any"
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- },
-
- "items" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- },
-
- "optional" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "additionalProperties" : {
- "type" : [{"$ref" : "#"}, "boolean"],
- "optional" : true,
- "default" : {}
- },
-
- "requires" : {
- "type" : ["string", {"$ref" : "#"}],
- "optional" : true
- },
-
- "minimum" : {
- "type" : "number",
- "optional" : true
- },
-
- "maximum" : {
- "type" : "number",
- "optional" : true
- },
-
- "minimumCanEqual" : {
- "type" : "boolean",
- "optional" : true,
- "requires" : "minimum",
- "default" : true
- },
-
- "maximumCanEqual" : {
- "type" : "boolean",
- "optional" : true,
- "requires" : "maximum",
- "default" : true
- },
-
- "minItems" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0,
- "default" : 0
- },
-
- "maxItems" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0
- },
-
- "pattern" : {
- "type" : "string",
- "optional" : true,
- "format" : "regex"
- },
-
- "minLength" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0,
- "default" : 0
- },
-
- "maxLength" : {
- "type" : "integer",
- "optional" : true
- },
-
- "enum" : {
- "type" : "array",
- "optional" : true,
- "minItems" : 1
- },
-
- "title" : {
- "type" : "string",
- "optional" : true
- },
-
- "description" : {
- "type" : "string",
- "optional" : true
- },
-
- "format" : {
- "type" : "string",
- "optional" : true
- },
-
- "contentEncoding" : {
- "type" : "string",
- "optional" : true
- },
-
- "default" : {
- "type" : "any",
- "optional" : true
- },
-
- "maxDecimal" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0
- },
-
- "disallow" : {
- "type" : ["string", "array"],
- "items" : {"type" : "string"},
- "optional" : true
- },
-
- "extends" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- }
- },
-
- "optional" : true,
- "default" : {}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-01/hyper-schema b/node_modules/json-schema/draft-01/hyper-schema
deleted file mode 100644
index 66e835b..0000000
--- a/node_modules/json-schema/draft-01/hyper-schema
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-01/hyper-schema#",
- "id" : "http://json-schema.org/draft-01/hyper-schema#",
-
- "properties" : {
- "links" : {
- "type" : "array",
- "items" : {"$ref" : "http://json-schema.org/draft-01/links#"},
- "optional" : true
- },
-
- "fragmentResolution" : {
- "type" : "string",
- "optional" : true,
- "default" : "dot-delimited"
- },
-
- "root" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "readonly" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "pathStart" : {
- "type" : "string",
- "optional" : true,
- "format" : "uri"
- },
-
- "mediaType" : {
- "type" : "string",
- "optional" : true,
- "format" : "media-type"
- },
-
- "alternate" : {
- "type" : "array",
- "items" : {"$ref" : "#"},
- "optional" : true
- }
- },
-
- "links" : [
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- },
-
- {
- "href" : "{id}",
- "rel" : "self"
- }
- ],
-
- "fragmentResolution" : "dot-delimited",
- "extends" : {"$ref" : "http://json-schema.org/draft-01/schema#"}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-01/json-ref b/node_modules/json-schema/draft-01/json-ref
deleted file mode 100644
index f2ad55b..0000000
--- a/node_modules/json-schema/draft-01/json-ref
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-01/hyper-schema#",
- "id" : "http://json-schema.org/draft-01/json-ref#",
-
- "items" : {"$ref" : "#"},
- "additionalProperties" : {"$ref" : "#"},
-
- "links" : [
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- },
-
- {
- "href" : "{id}",
- "rel" : "self"
- }
- ],
-
- "fragmentResolution" : "dot-delimited"
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-01/links b/node_modules/json-schema/draft-01/links
deleted file mode 100644
index cb183c4..0000000
--- a/node_modules/json-schema/draft-01/links
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-01/hyper-schema#",
- "id" : "http://json-schema.org/draft-01/links#",
- "type" : "object",
-
- "properties" : {
- "href" : {
- "type" : "string"
- },
-
- "rel" : {
- "type" : "string"
- },
-
- "method" : {
- "type" : "string",
- "default" : "GET",
- "optional" : true
- },
-
- "enctype" : {
- "type" : "string",
- "requires" : "method",
- "optional" : true
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "http://json-schema.org/draft-01/hyper-schema#"},
- "optional" : true
- }
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-01/schema b/node_modules/json-schema/draft-01/schema
deleted file mode 100644
index e6b6aea..0000000
--- a/node_modules/json-schema/draft-01/schema
+++ /dev/null
@@ -1,155 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-01/hyper-schema#",
- "id" : "http://json-schema.org/draft-01/schema#",
- "type" : "object",
-
- "properties" : {
- "type" : {
- "type" : ["string", "array"],
- "items" : {
- "type" : ["string", {"$ref" : "#"}]
- },
- "optional" : true,
- "default" : "any"
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- },
-
- "items" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- },
-
- "optional" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "additionalProperties" : {
- "type" : [{"$ref" : "#"}, "boolean"],
- "optional" : true,
- "default" : {}
- },
-
- "requires" : {
- "type" : ["string", {"$ref" : "#"}],
- "optional" : true
- },
-
- "minimum" : {
- "type" : "number",
- "optional" : true
- },
-
- "maximum" : {
- "type" : "number",
- "optional" : true
- },
-
- "minimumCanEqual" : {
- "type" : "boolean",
- "optional" : true,
- "requires" : "minimum",
- "default" : true
- },
-
- "maximumCanEqual" : {
- "type" : "boolean",
- "optional" : true,
- "requires" : "maximum",
- "default" : true
- },
-
- "minItems" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0,
- "default" : 0
- },
-
- "maxItems" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0
- },
-
- "pattern" : {
- "type" : "string",
- "optional" : true,
- "format" : "regex"
- },
-
- "minLength" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0,
- "default" : 0
- },
-
- "maxLength" : {
- "type" : "integer",
- "optional" : true
- },
-
- "enum" : {
- "type" : "array",
- "optional" : true,
- "minItems" : 1
- },
-
- "title" : {
- "type" : "string",
- "optional" : true
- },
-
- "description" : {
- "type" : "string",
- "optional" : true
- },
-
- "format" : {
- "type" : "string",
- "optional" : true
- },
-
- "contentEncoding" : {
- "type" : "string",
- "optional" : true
- },
-
- "default" : {
- "type" : "any",
- "optional" : true
- },
-
- "maxDecimal" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0
- },
-
- "disallow" : {
- "type" : ["string", "array"],
- "items" : {"type" : "string"},
- "optional" : true
- },
-
- "extends" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- }
- },
-
- "optional" : true,
- "default" : {}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-02/hyper-schema b/node_modules/json-schema/draft-02/hyper-schema
deleted file mode 100644
index 2d2bc68..0000000
--- a/node_modules/json-schema/draft-02/hyper-schema
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-02/hyper-schema#",
- "id" : "http://json-schema.org/draft-02/hyper-schema#",
-
- "properties" : {
- "links" : {
- "type" : "array",
- "items" : {"$ref" : "http://json-schema.org/draft-02/links#"},
- "optional" : true
- },
-
- "fragmentResolution" : {
- "type" : "string",
- "optional" : true,
- "default" : "slash-delimited"
- },
-
- "root" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "readonly" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "pathStart" : {
- "type" : "string",
- "optional" : true,
- "format" : "uri"
- },
-
- "mediaType" : {
- "type" : "string",
- "optional" : true,
- "format" : "media-type"
- },
-
- "alternate" : {
- "type" : "array",
- "items" : {"$ref" : "#"},
- "optional" : true
- }
- },
-
- "links" : [
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- },
-
- {
- "href" : "{id}",
- "rel" : "self"
- }
- ],
-
- "fragmentResolution" : "slash-delimited",
- "extends" : {"$ref" : "http://json-schema.org/draft-02/schema#"}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-02/json-ref b/node_modules/json-schema/draft-02/json-ref
deleted file mode 100644
index 2b23fcd..0000000
--- a/node_modules/json-schema/draft-02/json-ref
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-02/hyper-schema#",
- "id" : "http://json-schema.org/draft-02/json-ref#",
-
- "items" : {"$ref" : "#"},
- "additionalProperties" : {"$ref" : "#"},
-
- "links" : [
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- },
-
- {
- "href" : "{id}",
- "rel" : "self"
- }
- ],
-
- "fragmentResolution" : "dot-delimited"
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-02/links b/node_modules/json-schema/draft-02/links
deleted file mode 100644
index ab971b7..0000000
--- a/node_modules/json-schema/draft-02/links
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-02/hyper-schema#",
- "id" : "http://json-schema.org/draft-02/links#",
- "type" : "object",
-
- "properties" : {
- "href" : {
- "type" : "string"
- },
-
- "rel" : {
- "type" : "string"
- },
-
- "targetSchema" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"},
-
- "method" : {
- "type" : "string",
- "default" : "GET",
- "optional" : true
- },
-
- "enctype" : {
- "type" : "string",
- "requires" : "method",
- "optional" : true
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "http://json-schema.org/draft-02/hyper-schema#"},
- "optional" : true
- }
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-02/schema b/node_modules/json-schema/draft-02/schema
deleted file mode 100644
index cc2b669..0000000
--- a/node_modules/json-schema/draft-02/schema
+++ /dev/null
@@ -1,166 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-02/hyper-schema#",
- "id" : "http://json-schema.org/draft-02/schema#",
- "type" : "object",
-
- "properties" : {
- "type" : {
- "type" : ["string", "array"],
- "items" : {
- "type" : ["string", {"$ref" : "#"}]
- },
- "optional" : true,
- "uniqueItems" : true,
- "default" : "any"
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- },
-
- "items" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- },
-
- "optional" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "additionalProperties" : {
- "type" : [{"$ref" : "#"}, "boolean"],
- "optional" : true,
- "default" : {}
- },
-
- "requires" : {
- "type" : ["string", {"$ref" : "#"}],
- "optional" : true
- },
-
- "minimum" : {
- "type" : "number",
- "optional" : true
- },
-
- "maximum" : {
- "type" : "number",
- "optional" : true
- },
-
- "minimumCanEqual" : {
- "type" : "boolean",
- "optional" : true,
- "requires" : "minimum",
- "default" : true
- },
-
- "maximumCanEqual" : {
- "type" : "boolean",
- "optional" : true,
- "requires" : "maximum",
- "default" : true
- },
-
- "minItems" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0,
- "default" : 0
- },
-
- "maxItems" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0
- },
-
- "uniqueItems" : {
- "type" : "boolean",
- "optional" : true,
- "default" : false
- },
-
- "pattern" : {
- "type" : "string",
- "optional" : true,
- "format" : "regex"
- },
-
- "minLength" : {
- "type" : "integer",
- "optional" : true,
- "minimum" : 0,
- "default" : 0
- },
-
- "maxLength" : {
- "type" : "integer",
- "optional" : true
- },
-
- "enum" : {
- "type" : "array",
- "optional" : true,
- "minItems" : 1,
- "uniqueItems" : true
- },
-
- "title" : {
- "type" : "string",
- "optional" : true
- },
-
- "description" : {
- "type" : "string",
- "optional" : true
- },
-
- "format" : {
- "type" : "string",
- "optional" : true
- },
-
- "contentEncoding" : {
- "type" : "string",
- "optional" : true
- },
-
- "default" : {
- "type" : "any",
- "optional" : true
- },
-
- "divisibleBy" : {
- "type" : "number",
- "minimum" : 0,
- "minimumCanEqual" : false,
- "optional" : true,
- "default" : 1
- },
-
- "disallow" : {
- "type" : ["string", "array"],
- "items" : {"type" : "string"},
- "optional" : true,
- "uniqueItems" : true
- },
-
- "extends" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "optional" : true,
- "default" : {}
- }
- },
-
- "optional" : true,
- "default" : {}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-03/examples/address b/node_modules/json-schema/draft-03/examples/address
deleted file mode 100644
index 401f20f..0000000
--- a/node_modules/json-schema/draft-03/examples/address
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "description" : "An Address following the convention of http://microformats.org/wiki/hcard",
- "type" : "object",
- "properties" : {
- "post-office-box" : { "type" : "string" },
- "extended-address" : { "type" : "string" },
- "street-address" : { "type":"string" },
- "locality" : { "type" : "string", "required" : true },
- "region" : { "type" : "string", "required" : true },
- "postal-code" : { "type" : "string" },
- "country-name" : { "type" : "string", "required" : true }
- },
- "dependencies" : {
- "post-office-box" : "street-address",
- "extended-address" : "street-address",
- "street-address" : "region",
- "locality" : "region",
- "region" : "country-name"
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-03/examples/calendar b/node_modules/json-schema/draft-03/examples/calendar
deleted file mode 100644
index 0ec47c2..0000000
--- a/node_modules/json-schema/draft-03/examples/calendar
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "description" : "A representation of an event",
- "type" : "object",
- "properties" : {
- "dtstart" : {
- "format" : "date-time",
- "type" : "string",
- "description" : "Event starting time",
- "required":true
- },
- "summary" : {
- "type":"string",
- "required":true
- },
- "location" : {
- "type" : "string"
- },
- "url" : {
- "type" : "string",
- "format" : "url"
- },
- "dtend" : {
- "format" : "date-time",
- "type" : "string",
- "description" : "Event ending time"
- },
- "duration" : {
- "format" : "date",
- "type" : "string",
- "description" : "Event duration"
- },
- "rdate" : {
- "format" : "date-time",
- "type" : "string",
- "description" : "Recurrence date"
- },
- "rrule" : {
- "type" : "string",
- "description" : "Recurrence rule"
- },
- "category" : {
- "type" : "string"
- },
- "description" : {
- "type" : "string"
- },
- "geo" : { "$ref" : "http://json-schema.org/draft-03/geo" }
- }
-}
-
-
-
-
diff --git a/node_modules/json-schema/draft-03/examples/card b/node_modules/json-schema/draft-03/examples/card
deleted file mode 100644
index a5667ff..0000000
--- a/node_modules/json-schema/draft-03/examples/card
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "description":"A representation of a person, company, organization, or place",
- "type":"object",
- "properties":{
- "fn":{
- "description":"Formatted Name",
- "type":"string"
- },
- "familyName":{
- "type":"string",
- "required":true
- },
- "givenName":{
- "type":"string",
- "required":true
- },
- "additionalName":{
- "type":"array",
- "items":{
- "type":"string"
- }
- },
- "honorificPrefix":{
- "type":"array",
- "items":{
- "type":"string"
- }
- },
- "honorificSuffix":{
- "type":"array",
- "items":{
- "type":"string"
- }
- },
- "nickname":{
- "type":"string"
- },
- "url":{
- "type":"string",
- "format":"url"
- },
- "email":{
- "type":"object",
- "properties":{
- "type":{
- "type":"string"
- },
- "value":{
- "type":"string",
- "format":"email"
- }
- }
- },
- "tel":{
- "type":"object",
- "properties":{
- "type":{
- "type":"string"
- },
- "value":{
- "type":"string",
- "format":"phone"
- }
- }
- },
- "adr":{"$ref" : "http://json-schema.org/address"},
- "geo":{"$ref" : "http://json-schema.org/geo"},
- "tz":{
- "type":"string"
- },
- "photo":{
- "format":"image",
- "type":"string"
- },
- "logo":{
- "format":"image",
- "type":"string"
- },
- "sound":{
- "format":"attachment",
- "type":"string"
- },
- "bday":{
- "type":"string",
- "format":"date"
- },
- "title":{
- "type":"string"
- },
- "role":{
- "type":"string"
- },
- "org":{
- "type":"object",
- "properties":{
- "organizationName":{
- "type":"string"
- },
- "organizationUnit":{
- "type":"string"
- }
- }
- }
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-03/examples/geo b/node_modules/json-schema/draft-03/examples/geo
deleted file mode 100644
index 4357a90..0000000
--- a/node_modules/json-schema/draft-03/examples/geo
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "description" : "A geographical coordinate",
- "type" : "object",
- "properties" : {
- "latitude" : { "type" : "number" },
- "longitude" : { "type" : "number" }
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-03/examples/interfaces b/node_modules/json-schema/draft-03/examples/interfaces
deleted file mode 100644
index b8532f2..0000000
--- a/node_modules/json-schema/draft-03/examples/interfaces
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "extends":"http://json-schema.org/hyper-schema",
- "description":"A schema for schema interface definitions that describe programmatic class structures using JSON schema syntax",
- "properties":{
- "methods":{
- "type":"object",
- "description":"This defines the set of methods available to the class instances",
- "additionalProperties":{
- "type":"object",
- "description":"The definition of the method",
- "properties":{
- "parameters":{
- "type":"array",
- "description":"The set of parameters that should be passed to the method when it is called",
- "items":{"$ref":"#"},
- "required": true
- },
- "returns":{"$ref":"#"}
- }
- }
- }
- }
-}
diff --git a/node_modules/json-schema/draft-03/hyper-schema b/node_modules/json-schema/draft-03/hyper-schema
deleted file mode 100644
index 38ca2e1..0000000
--- a/node_modules/json-schema/draft-03/hyper-schema
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-03/hyper-schema#",
- "extends" : {"$ref" : "http://json-schema.org/draft-03/schema#"},
- "id" : "http://json-schema.org/draft-03/hyper-schema#",
-
- "properties" : {
- "links" : {
- "type" : "array",
- "items" : {"$ref" : "http://json-schema.org/draft-03/links#"}
- },
-
- "fragmentResolution" : {
- "type" : "string",
- "default" : "slash-delimited"
- },
-
- "root" : {
- "type" : "boolean",
- "default" : false
- },
-
- "readonly" : {
- "type" : "boolean",
- "default" : false
- },
-
- "contentEncoding" : {
- "type" : "string"
- },
-
- "pathStart" : {
- "type" : "string",
- "format" : "uri"
- },
-
- "mediaType" : {
- "type" : "string",
- "format" : "media-type"
- }
- },
-
- "links" : [
- {
- "href" : "{id}",
- "rel" : "self"
- },
-
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- }
- ],
-
- "fragmentResolution" : "slash-delimited"
-}
diff --git a/node_modules/json-schema/draft-03/json-ref b/node_modules/json-schema/draft-03/json-ref
deleted file mode 100644
index 66e08f2..0000000
--- a/node_modules/json-schema/draft-03/json-ref
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-03/hyper-schema#",
- "id" : "http://json-schema.org/draft-03/json-ref#",
-
- "additionalItems" : {"$ref" : "#"},
- "additionalProperties" : {"$ref" : "#"},
-
- "links" : [
- {
- "href" : "{id}",
- "rel" : "self"
- },
-
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- }
- ],
-
- "fragmentResolution" : "dot-delimited"
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-03/links b/node_modules/json-schema/draft-03/links
deleted file mode 100644
index 9fa63f9..0000000
--- a/node_modules/json-schema/draft-03/links
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-03/hyper-schema#",
- "id" : "http://json-schema.org/draft-03/links#",
- "type" : "object",
-
- "properties" : {
- "href" : {
- "type" : "string",
- "required" : true,
- "format" : "link-description-object-template"
- },
-
- "rel" : {
- "type" : "string",
- "required" : true
- },
-
- "targetSchema" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"},
-
- "method" : {
- "type" : "string",
- "default" : "GET"
- },
-
- "enctype" : {
- "type" : "string",
- "requires" : "method"
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "http://json-schema.org/draft-03/hyper-schema#"}
- }
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-03/schema b/node_modules/json-schema/draft-03/schema
deleted file mode 100644
index 29d9469..0000000
--- a/node_modules/json-schema/draft-03/schema
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-03/schema#",
- "id" : "http://json-schema.org/draft-03/schema#",
- "type" : "object",
-
- "properties" : {
- "type" : {
- "type" : ["string", "array"],
- "items" : {
- "type" : ["string", {"$ref" : "#"}]
- },
- "uniqueItems" : true,
- "default" : "any"
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "#"},
- "default" : {}
- },
-
- "patternProperties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "#"},
- "default" : {}
- },
-
- "additionalProperties" : {
- "type" : [{"$ref" : "#"}, "boolean"],
- "default" : {}
- },
-
- "items" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "default" : {}
- },
-
- "additionalItems" : {
- "type" : [{"$ref" : "#"}, "boolean"],
- "default" : {}
- },
-
- "required" : {
- "type" : "boolean",
- "default" : false
- },
-
- "dependencies" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : ["string", "array", {"$ref" : "#"}],
- "items" : {
- "type" : "string"
- }
- },
- "default" : {}
- },
-
- "minimum" : {
- "type" : "number"
- },
-
- "maximum" : {
- "type" : "number"
- },
-
- "exclusiveMinimum" : {
- "type" : "boolean",
- "default" : false
- },
-
- "exclusiveMaximum" : {
- "type" : "boolean",
- "default" : false
- },
-
- "minItems" : {
- "type" : "integer",
- "minimum" : 0,
- "default" : 0
- },
-
- "maxItems" : {
- "type" : "integer",
- "minimum" : 0
- },
-
- "uniqueItems" : {
- "type" : "boolean",
- "default" : false
- },
-
- "pattern" : {
- "type" : "string",
- "format" : "regex"
- },
-
- "minLength" : {
- "type" : "integer",
- "minimum" : 0,
- "default" : 0
- },
-
- "maxLength" : {
- "type" : "integer"
- },
-
- "enum" : {
- "type" : "array",
- "minItems" : 1,
- "uniqueItems" : true
- },
-
- "default" : {
- "type" : "any"
- },
-
- "title" : {
- "type" : "string"
- },
-
- "description" : {
- "type" : "string"
- },
-
- "format" : {
- "type" : "string"
- },
-
- "divisibleBy" : {
- "type" : "number",
- "minimum" : 0,
- "exclusiveMinimum" : true,
- "default" : 1
- },
-
- "disallow" : {
- "type" : ["string", "array"],
- "items" : {
- "type" : ["string", {"$ref" : "#"}]
- },
- "uniqueItems" : true
- },
-
- "extends" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "default" : {}
- },
-
- "id" : {
- "type" : "string",
- "format" : "uri"
- },
-
- "$ref" : {
- "type" : "string",
- "format" : "uri"
- },
-
- "$schema" : {
- "type" : "string",
- "format" : "uri"
- }
- },
-
- "dependencies" : {
- "exclusiveMinimum" : "minimum",
- "exclusiveMaximum" : "maximum"
- },
-
- "default" : {}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-04/hyper-schema b/node_modules/json-schema/draft-04/hyper-schema
deleted file mode 100644
index 63fb34d..0000000
--- a/node_modules/json-schema/draft-04/hyper-schema
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-04/hyper-schema#",
- "extends" : {"$ref" : "http://json-schema.org/draft-04/schema#"},
- "id" : "http://json-schema.org/draft-04/hyper-schema#",
-
- "properties" : {
- "links" : {
- "type" : "array",
- "items" : {"$ref" : "http://json-schema.org/draft-04/links#"}
- },
-
- "fragmentResolution" : {
- "type" : "string",
- "default" : "json-pointer"
- },
-
- "root" : {
- "type" : "boolean",
- "default" : false
- },
-
- "readonly" : {
- "type" : "boolean",
- "default" : false
- },
-
- "contentEncoding" : {
- "type" : "string"
- },
-
- "pathStart" : {
- "type" : "string",
- "format" : "uri"
- },
-
- "mediaType" : {
- "type" : "string",
- "format" : "media-type"
- }
- },
-
- "links" : [
- {
- "href" : "{id}",
- "rel" : "self"
- },
-
- {
- "href" : "{$ref}",
- "rel" : "full"
- },
-
- {
- "href" : "{$schema}",
- "rel" : "describedby"
- }
- ],
-
- "fragmentResolution" : "json-pointer"
-}
diff --git a/node_modules/json-schema/draft-04/links b/node_modules/json-schema/draft-04/links
deleted file mode 100644
index 6c06d29..0000000
--- a/node_modules/json-schema/draft-04/links
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-04/hyper-schema#",
- "id" : "http://json-schema.org/draft-04/links#",
- "type" : "object",
-
- "properties" : {
- "rel" : {
- "type" : "string"
- },
-
- "href" : {
- "type" : "string"
- },
-
- "template" : {
- "type" : "string"
- },
-
- "targetSchema" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"},
-
- "method" : {
- "type" : "string",
- "default" : "GET"
- },
-
- "enctype" : {
- "type" : "string"
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "http://json-schema.org/draft-04/hyper-schema#"}
- }
- },
-
- "required" : ["rel", "href"],
-
- "dependencies" : {
- "enctype" : "method"
- }
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-04/schema b/node_modules/json-schema/draft-04/schema
deleted file mode 100644
index 4231b16..0000000
--- a/node_modules/json-schema/draft-04/schema
+++ /dev/null
@@ -1,189 +0,0 @@
-{
- "$schema" : "http://json-schema.org/draft-04/schema#",
- "id" : "http://json-schema.org/draft-04/schema#",
- "type" : "object",
-
- "properties" : {
- "type" : {
- "type" : [
- {
- "id" : "#simple-type",
- "type" : "string",
- "enum" : ["object", "array", "string", "number", "boolean", "null", "any"]
- },
- "array"
- ],
- "items" : {
- "type" : [
- {"$ref" : "#simple-type"},
- {"$ref" : "#"}
- ]
- },
- "uniqueItems" : true,
- "default" : "any"
- },
-
- "disallow" : {
- "type" : ["string", "array"],
- "items" : {
- "type" : ["string", {"$ref" : "#"}]
- },
- "uniqueItems" : true
- },
-
- "extends" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "default" : {}
- },
-
- "enum" : {
- "type" : "array",
- "minItems" : 1,
- "uniqueItems" : true
- },
-
- "minimum" : {
- "type" : "number"
- },
-
- "maximum" : {
- "type" : "number"
- },
-
- "exclusiveMinimum" : {
- "type" : "boolean",
- "default" : false
- },
-
- "exclusiveMaximum" : {
- "type" : "boolean",
- "default" : false
- },
-
- "divisibleBy" : {
- "type" : "number",
- "minimum" : 0,
- "exclusiveMinimum" : true,
- "default" : 1
- },
-
- "minLength" : {
- "type" : "integer",
- "minimum" : 0,
- "default" : 0
- },
-
- "maxLength" : {
- "type" : "integer"
- },
-
- "pattern" : {
- "type" : "string"
- },
-
- "items" : {
- "type" : [{"$ref" : "#"}, "array"],
- "items" : {"$ref" : "#"},
- "default" : {}
- },
-
- "additionalItems" : {
- "type" : [{"$ref" : "#"}, "boolean"],
- "default" : {}
- },
-
- "minItems" : {
- "type" : "integer",
- "minimum" : 0,
- "default" : 0
- },
-
- "maxItems" : {
- "type" : "integer",
- "minimum" : 0
- },
-
- "uniqueItems" : {
- "type" : "boolean",
- "default" : false
- },
-
- "properties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "#"},
- "default" : {}
- },
-
- "patternProperties" : {
- "type" : "object",
- "additionalProperties" : {"$ref" : "#"},
- "default" : {}
- },
-
- "additionalProperties" : {
- "type" : [{"$ref" : "#"}, "boolean"],
- "default" : {}
- },
-
- "minProperties" : {
- "type" : "integer",
- "minimum" : 0,
- "default" : 0
- },
-
- "maxProperties" : {
- "type" : "integer",
- "minimum" : 0
- },
-
- "required" : {
- "type" : "array",
- "items" : {
- "type" : "string"
- }
- },
-
- "dependencies" : {
- "type" : "object",
- "additionalProperties" : {
- "type" : ["string", "array", {"$ref" : "#"}],
- "items" : {
- "type" : "string"
- }
- },
- "default" : {}
- },
-
- "id" : {
- "type" : "string"
- },
-
- "$ref" : {
- "type" : "string"
- },
-
- "$schema" : {
- "type" : "string"
- },
-
- "title" : {
- "type" : "string"
- },
-
- "description" : {
- "type" : "string"
- },
-
- "default" : {
- "type" : "any"
- }
- },
-
- "dependencies" : {
- "exclusiveMinimum" : "minimum",
- "exclusiveMaximum" : "maximum"
- },
-
- "default" : {}
-} \ No newline at end of file
diff --git a/node_modules/json-schema/draft-zyp-json-schema-03.xml b/node_modules/json-schema/draft-zyp-json-schema-03.xml
deleted file mode 100644
index cf60620..0000000
--- a/node_modules/json-schema/draft-zyp-json-schema-03.xml
+++ /dev/null
@@ -1,1120 +0,0 @@
-<?xml version="1.0" encoding="US-ASCII"?>
-<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
-<!ENTITY rfc4627 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4627.xml">
-<!ENTITY rfc3986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3986.xml">
-<!ENTITY rfc2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
-<!ENTITY rfc4287 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4287.xml">
-<!ENTITY rfc2616 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2616.xml">
-<!ENTITY rfc3339 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3339.xml">
-<!ENTITY rfc2045 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2045.xml">
-<!ENTITY rfc5226 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5226.xml">
-<!ENTITY rfc2396 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2396.xml">
-<!ENTITY iddiscovery SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.hammer-discovery.xml">
-<!ENTITY uritemplate SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.gregorio-uritemplate.xml">
-<!ENTITY linkheader SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.nottingham-http-link-header.xml">
-<!ENTITY html401 SYSTEM "http://xml.resource.org/public/rfc/bibxml4/reference.W3C.REC-html401-19991224.xml">
-<!ENTITY css21 SYSTEM "http://xml.resource.org/public/rfc/bibxml4/reference.W3C.CR-CSS21-20070719.xml">
-]>
-<?rfc toc="yes"?>
-<?rfc symrefs="yes"?>
-<?rfc compact="yes"?>
-<?rfc subcompact="no"?>
-<?rfc strict="no"?>
-<?rfc rfcedstyle="yes"?>
-<rfc category="info" docName="draft-zyp-json-schema-03" ipr="trust200902">
- <front>
- <title abbrev="JSON Schema Media Type">A JSON Media Type for Describing the Structure and Meaning of JSON Documents</title>
-
- <author fullname="Kris Zyp" initials="K" role="editor" surname="Zyp">
- <organization>SitePen (USA)</organization>
- <address>
- <postal>
- <street>530 Lytton Avenue</street>
- <city>Palo Alto, CA 94301</city>
- <country>USA</country>
- </postal>
- <phone>+1 650 968 8787</phone>
- <email>kris@sitepen.com</email>
- </address>
- </author>
-
- <author fullname="Gary Court" initials="G" surname="Court">
- <address>
- <postal>
- <street></street>
- <city>Calgary, AB</city>
- <country>Canada</country>
- </postal>
- <email>gary.court@gmail.com</email>
- </address>
- </author>
-
- <date year="2011" />
- <workgroup>Internet Engineering Task Force</workgroup>
- <keyword>JSON</keyword>
- <keyword>Schema</keyword>
- <keyword>JavaScript</keyword>
- <keyword>Object</keyword>
- <keyword>Notation</keyword>
- <keyword>Hyper Schema</keyword>
- <keyword>Hypermedia</keyword>
-
- <abstract>
- <t>
- JSON (JavaScript Object Notation) Schema defines the media type "application/schema+json",
- a JSON based format for defining
- the structure of JSON data. JSON Schema provides a contract for what JSON
- data is required for a given application and how to interact with it. JSON
- Schema is intended to define validation, documentation, hyperlink
- navigation, and interaction control of JSON data.
- </t>
- </abstract>
- </front>
-
- <middle>
- <section title="Introduction">
- <t>
- JSON (JavaScript Object Notation) Schema is a JSON media type for defining
- the structure of JSON data. JSON Schema provides a contract for what JSON
- data is required for a given application and how to interact with it. JSON
- Schema is intended to define validation, documentation, hyperlink
- navigation, and interaction control of JSON data.
- </t>
- </section>
-
- <section title="Conventions">
- <t>
- <!-- The text in this section has been copied from the official boilerplate,
- and should not be modified.-->
-
- The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
- "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
- interpreted as described in <xref target="RFC2119">RFC 2119</xref>.
- </t>
- </section>
-
- <!-- ********************************************* -->
-
- <section title="Overview">
- <t>
- JSON Schema defines the media type "application/schema+json" for
- describing the structure of other
- JSON documents. JSON Schema is JSON-based and includes facilities
- for describing the structure of JSON documents in terms of
- allowable values, descriptions, and interpreting relations with other resources.
- </t>
- <t>
- JSON Schema format is organized into several separate definitions. The first
- definition is the core schema specification. This definition is primary
- concerned with describing a JSON structure and specifying valid elements
- in the structure. The second definition is the Hyper Schema specification
- which is intended define elements in a structure that can be interpreted as
- hyperlinks.
- Hyper Schema builds on JSON Schema to describe the hyperlink structure of
- other JSON documents and elements of interaction. This allows user agents to be able to successfully navigate
- JSON documents based on their schemas.
- </t>
- <t>
- Cumulatively JSON Schema acts as a meta-document that can be used to define the required type and constraints on
- property values, as well as define the meaning of the property values
- for the purpose of describing a resource and determining hyperlinks
- within the representation.
- </t>
- <figure>
- <preamble>An example JSON Schema that describes products might look like:</preamble>
- <artwork>
-<![CDATA[
-{
- "title": "Product",
- "properties": {
- "id": {
- "type": "number",
- "description": "Product identifier",
- "required": true
- },
- "name": {
- "description": "Name of the product",
- "type": "string",
- "required": true
- },
- "price": {
- "required": true,
- "type": "number",
- "minimum": 0,
- "required": true
- },
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "links": [{
- "rel": "full",
- "href": "{id}"
- }, {
- "rel": "comments",
- "href": "comments/?id={id}"
- }]
-}
-]]>
- </artwork>
- <postamble>
- This schema defines the properties of the instance JSON documents,
- the required properties (id, name, and price), as well as an optional
- property (tags). This also defines the link relations of the instance
- JSON documents.
- </postamble>
- </figure>
-
- <section title="Terminology">
- <t>
- For this specification, <spanx style="strong">schema</spanx> will be used to denote a JSON Schema
- definition, and an <spanx style="strong">instance</spanx> refers to a JSON value that the schema
- will be describing and validating.
- </t>
- </section>
-
- <section title="Design Considerations">
- <t>
- The JSON Schema media type does not attempt to dictate the structure of JSON
- representations that contain data, but rather provides a separate format
- for flexibly communicating how a JSON representation should be
- interpreted and validated, such that user agents can properly understand
- acceptable structures and extrapolate hyperlink information
- with the JSON document. It is acknowledged that JSON documents come
- in a variety of structures, and JSON is unique in that the structure
- of stored data structures often prescribes a non-ambiguous definite
- JSON representation. Attempting to force a specific structure is generally
- not viable, and therefore JSON Schema allows for a great flexibility
- in the structure of the JSON data that it describes.
- </t>
- <t>
- This specification is protocol agnostic.
- The underlying protocol (such as HTTP) should sufficiently define the
- semantics of the client-server interface, the retrieval of resource
- representations linked to by JSON representations, and modification of
- those resources. The goal of this
- format is to sufficiently describe JSON structures such that one can
- utilize existing information available in existing JSON
- representations from a large variety of services that leverage a representational state transfer
- architecture using existing protocols.
- </t>
- </section>
- </section>
-
- <section title="Schema/Instance Association">
- <t>
- JSON Schema instances are correlated to their schema by the "describedby"
- relation, where the schema is defined to be the target of the relation.
- Instance representations may be of the "application/json" media type or
- any other subtype. Consequently, dictating how an instance
- representation should specify the relation to the schema is beyond the normative scope
- of this document (since this document specifically defines the JSON
- Schema media type, and no other), but it is recommended that instances
- specify their schema so that user agents can interpret the instance
- representation and messages may retain the self-descriptive
- characteristic, avoiding the need for out-of-band information about
- instance data. Two approaches are recommended for declaring the
- relation to the schema that describes the meaning of a JSON instance's (or collection
- of instances) structure. A MIME type parameter named
- "profile" or a relation of "describedby" (which could be defined by a Link header) may be used:
-
- <figure>
- <artwork>
-<![CDATA[
-Content-Type: application/my-media-type+json;
- profile=http://json.com/my-hyper-schema
-]]>
- </artwork>
- </figure>
-
- or if the content is being transferred by a protocol (such as HTTP) that
- provides headers, a Link header can be used:
-
- <figure>
- <artwork>
-<![CDATA[
-Link: <http://json.com/my-hyper-schema>; rel="describedby"
-]]>
- </artwork>
- </figure>
-
- Instances MAY specify multiple schemas, to indicate all the schemas that
- are applicable to the data, and the data SHOULD be valid by all the schemas.
- The instance data MAY have multiple schemas
- that it is defined by (the instance data SHOULD be valid for those schemas).
- Or if the document is a collection of instances, the collection MAY contain
- instances from different schemas. When collections contain heterogeneous
- instances, the "pathStart" attribute MAY be specified in the
- schema to disambiguate which schema should be applied for each item in the
- collection. However, ultimately, the mechanism for referencing a schema is up to the
- media type of the instance documents (if they choose to specify that schemas
- can be referenced).
- </t>
-
- <section title="Self-Descriptive Schema">
- <t>
- JSON Schemas can themselves be described using JSON Schemas.
- A self-describing JSON Schema for the core JSON Schema can
- be found at <eref target="http://json-schema.org/schema">http://json-schema.org/schema</eref> for the latest version or
- <eref target="http://json-schema.org/draft-03/schema">http://json-schema.org/draft-03/schema</eref> for the draft-03 version. The hyper schema
- self-description can be found at <eref target="http://json-schema.org/hyper-schema">http://json-schema.org/hyper-schema</eref>
- or <eref target="http://json-schema.org/draft-03/hyper-schema">http://json-schema.org/draft-03/hyper-schema</eref>. All schemas
- used within a protocol with media type definitions
- SHOULD include a MIME parameter that refers to the self-descriptive
- hyper schema or another schema that extends this hyper schema:
-
- <figure>
- <artwork>
-<![CDATA[
-Content-Type: application/json;
- profile=http://json-schema.org/draft-03/hyper-schema
-]]>
- </artwork>
- </figure>
- </t>
- </section>
- </section>
-
- <section title="Core Schema Definition">
- <t>
- A JSON Schema is a JSON Object that defines various attributes
- (including usage and valid values) of a JSON value. JSON
- Schema has recursive capabilities; there are a number of elements
- in the structure that allow for nested JSON Schemas.
- </t>
-
- <figure>
- <preamble>An example JSON Schema definition could look like:</preamble>
- <artwork>
-<![CDATA[
-{
- "description": "A person",
- "type": "object",
-
- "properties": {
- "name": {
- "type": "string"
- },
- "age": {
- "type": "integer",
- "maximum": 125
- }
- }
-}
-]]>
- </artwork>
- </figure>
-
- <t>
- A JSON Schema object may have any of the following properties, called schema
- attributes (all attributes are optional):
- </t>
-
- <section title="type">
- <t>
- This attribute defines what the primitive type or the schema of the instance MUST be in order to validate.
- This attribute can take one of two forms:
-
- <list style="hanging">
- <t hangText="Simple Types">
- A string indicating a primitive or simple type. The following are acceptable string values:
-
- <list style="hanging">
- <t hangText="string">Value MUST be a string.</t>
- <t hangText="number">Value MUST be a number, floating point numbers are allowed. </t>
- <t hangText="integer">Value MUST be an integer, no floating point numbers are allowed. This is a subset of the number type.</t>
- <t hangText="boolean">Value MUST be a boolean. </t>
- <t hangText="object">Value MUST be an object.</t>
- <t hangText="array">Value MUST be an array.</t>
- <t hangText="null">Value MUST be null. Note this is mainly for purpose of being able use union types to define nullability. If this type is not included in a union, null values are not allowed (the primitives listed above do not allow nulls on their own).</t>
- <t hangText="any">Value MAY be of any type including null.</t>
- </list>
-
- If the property is not defined or is not in this list, then any type of value is acceptable.
- Other type values MAY be used for custom purposes, but minimal validators of the specification
- implementation can allow any instance value on unknown type values.
- </t>
-
- <t hangText="Union Types">
- An array of two or more simple type definitions. Each item in the array MUST be a simple type definition or a schema.
- The instance value is valid if it is of the same type as one of the simple type definitions, or valid by one of the schemas, in the array.
- </t>
- </list>
- </t>
-
- <figure>
- <preamble>For example, a schema that defines if an instance can be a string or a number would be:</preamble>
- <artwork>
-<![CDATA[
-{
- "type": ["string", "number"]
-}
-]]></artwork>
- </figure>
- </section>
-
- <section title="properties" anchor="properties">
- <t>This attribute is an object with property definitions that define the valid values of instance object property values. When the instance value is an object, the property values of the instance object MUST conform to the property definitions in this object. In this object, each property definition's value MUST be a schema, and the property's name MUST be the name of the instance property that it defines. The instance property value MUST be valid according to the schema from the property definition. Properties are considered unordered, the order of the instance properties MAY be in any order.</t>
- </section>
-
- <section title="patternProperties">
- <t>This attribute is an object that defines the schema for a set of property names of an object instance. The name of each property of this attribute's object is a regular expression pattern in the ECMA 262/Perl 5 format, while the value is a schema. If the pattern matches the name of a property on the instance object, the value of the instance's property MUST be valid against the pattern name's schema value.</t>
- </section>
-
- <section title="additionalProperties" anchor="additionalProperties">
- <t>This attribute defines a schema for all properties that are not explicitly defined in an object type definition. If specified, the value MUST be a schema or a boolean. If false is provided, no additional properties are allowed beyond the properties defined in the schema. The default value is an empty schema which allows any value for additional properties.</t>
- </section>
-
- <section title="items">
- <t>This attribute defines the allowed items in an instance array, and MUST be a schema or an array of schemas. The default value is an empty schema which allows any value for items in the instance array.</t>
- <t>When this attribute value is a schema and the instance value is an array, then all the items in the array MUST be valid according to the schema.</t>
- <t>When this attribute value is an array of schemas and the instance value is an array, each position in the instance array MUST conform to the schema in the corresponding position for this array. This called tuple typing. When tuple typing is used, additional items are allowed, disallowed, or constrained by the <xref target="additionalItems">"additionalItems"</xref> attribute using the same rules as <xref target="additionalProperties">"additionalProperties"</xref> for objects.</t>
- </section>
-
- <section title="additionalItems" anchor="additionalItems">
- <t>This provides a definition for additional items in an array instance when tuple definitions of the items is provided. This can be false to indicate additional items in the array are not allowed, or it can be a schema that defines the schema of the additional items.</t>
- </section>
-
- <section title="required">
- <t>This attribute indicates if the instance must have a value, and not be undefined. This is false by default, making the instance optional.</t>
- </section>
-
- <section title="dependencies">
- <t>This attribute is an object that defines the requirements of a property on an instance object. If an object instance has a property with the same name as a property in this attribute's object, then the instance must be valid against the attribute's property value (hereafter referred to as the "dependency value").</t>
- <t>
- The dependency value can take one of two forms:
-
- <list style="hanging">
- <t hangText="Simple Dependency">
- If the dependency value is a string, then the instance object MUST have a property with the same name as the dependency value.
- If the dependency value is an array of strings, then the instance object MUST have a property with the same name as each string in the dependency value's array.
- </t>
- <t hangText="Schema Dependency">
- If the dependency value is a schema, then the instance object MUST be valid against the schema.
- </t>
- </list>
- </t>
- </section>
-
- <section title="minimum">
- <t>This attribute defines the minimum value of the instance property when the type of the instance value is a number.</t>
- </section>
-
- <section title="maximum">
- <t>This attribute defines the maximum value of the instance property when the type of the instance value is a number.</t>
- </section>
-
- <section title="exclusiveMinimum">
- <t>This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "minimum" attribute. This is false by default, meaning the instance value can be greater then or equal to the minimum value.</t>
- </section>
-
- <section title="exclusiveMaximum">
- <t>This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "maximum" attribute. This is false by default, meaning the instance value can be less then or equal to the maximum value.</t>
- </section>
-
- <section title="minItems">
- <t>This attribute defines the minimum number of values in an array when the array is the instance value.</t>
- </section>
-
- <section title="maxItems">
- <t>This attribute defines the maximum number of values in an array when the array is the instance value.</t>
- </section>
-
- <section title="uniqueItems" anchor="uniqueItems">
- <t>This attribute indicates that all items in an array instance MUST be unique (contains no two identical values).</t>
- <t>
- Two instance are consider equal if they are both of the same type and:
-
- <list>
- <t>are null; or</t>
- <t>are booleans/numbers/strings and have the same value; or</t>
- <t>are arrays, contains the same number of items, and each item in the array is equal to the corresponding item in the other array; or</t>
- <t>are objects, contains the same property names, and each property in the object is equal to the corresponding property in the other object.</t>
- </list>
- </t>
- </section>
-
- <section title="pattern">
- <t>When the instance value is a string, this provides a regular expression that a string instance MUST match in order to be valid. Regular expressions SHOULD follow the regular expression specification from ECMA 262/Perl 5</t>
- </section>
-
- <section title="minLength">
- <t>When the instance value is a string, this defines the minimum length of the string.</t>
- </section>
-
- <section title="maxLength">
- <t>When the instance value is a string, this defines the maximum length of the string.</t>
- </section>
-
- <section title="enum">
- <t>This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in <xref target="uniqueItems">"uniqueItems"</xref>.</t>
- </section>
-
- <section title="default">
- <t>This attribute defines the default value of the instance when the instance is undefined.</t>
- </section>
-
- <section title="title">
- <t>This attribute is a string that provides a short description of the instance property.</t>
- </section>
-
- <section title="description">
- <t>This attribute is a string that provides a full description of the of purpose the instance property.</t>
- </section>
-
- <section title="format">
- <t>This property defines the type of data, content type, or microformat to be expected in the instance property values. A format attribute MAY be one of the values listed below, and if so, SHOULD adhere to the semantics describing for the format. A format SHOULD only be used to give meaning to primitive types (string, integer, number, or boolean). Validators MAY (but are not required to) validate that the instance values conform to a format.</t>
-
- <t>
- The following formats are predefined:
-
- <list style="hanging">
- <t hangText="date-time">This SHOULD be a date in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time. This is the recommended form of date/timestamp.</t>
- <t hangText="date">This SHOULD be a date in the format of YYYY-MM-DD. It is recommended that you use the "date-time" format instead of "date" unless you need to transfer only the date part.</t>
- <t hangText="time">This SHOULD be a time in the format of hh:mm:ss. It is recommended that you use the "date-time" format instead of "time" unless you need to transfer only the time part.</t>
- <t hangText="utc-millisec">This SHOULD be the difference, measured in milliseconds, between the specified time and midnight, 00:00 of January 1, 1970 UTC. The value SHOULD be a number (integer or float).</t>
- <t hangText="regex">A regular expression, following the regular expression specification from ECMA 262/Perl 5.</t>
- <t hangText="color">This is a CSS color (like "#FF0000" or "red"), based on <xref target="W3C.CR-CSS21-20070719">CSS 2.1</xref>.</t>
- <t hangText="style">This is a CSS style definition (like "color: red; background-color:#FFF"), based on <xref target="W3C.CR-CSS21-20070719">CSS 2.1</xref>.</t>
- <t hangText="phone">This SHOULD be a phone number (format MAY follow E.123).</t>
- <t hangText="uri">This value SHOULD be a URI.</t>
- <t hangText="email">This SHOULD be an email address.</t>
- <t hangText="ip-address">This SHOULD be an ip version 4 address.</t>
- <t hangText="ipv6">This SHOULD be an ip version 6 address.</t>
- <t hangText="host-name">This SHOULD be a host-name.</t>
- </list>
- </t>
-
- <t>Additional custom formats MAY be created. These custom formats MAY be expressed as an URI, and this URI MAY reference a schema of that format.</t>
- </section>
-
- <section title="divisibleBy">
- <t>This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0.</t>
- </section>
-
- <section title="disallow">
- <t>This attribute takes the same values as the "type" attribute, however if the instance matches the type or if this value is an array and the instance matches any type or schema in the array, then this instance is not valid.</t>
- </section>
-
- <section title="extends">
- <t>The value of this property MUST be another schema which will provide a base schema which the current schema will inherit from. The inheritance rules are such that any instance that is valid according to the current schema MUST be valid according to the referenced schema. This MAY also be an array, in which case, the instance MUST be valid for all the schemas in the array. A schema that extends another schema MAY define additional attributes, constrain existing attributes, or add other constraints.</t>
- <t>
- Conceptually, the behavior of extends can be seen as validating an
- instance against all constraints in the extending schema as well as
- the extended schema(s). More optimized implementations that merge
- schemas are possible, but are not required. Some examples of using "extends":
-
- <figure>
- <artwork>
-<![CDATA[
-{
- "description": "An adult",
- "properties": {
- "age": {
- "minimum": 21
- }
- },
- "extends": {"$ref": "person"}
-}
-]]>
- </artwork>
- </figure>
-
- <figure>
- <artwork>
-<![CDATA[
-{
- "description": "Extended schema",
- "properties": {
- "deprecated": {
- "type": "boolean"
- }
- },
- "extends": {"$ref": "http://json-schema.org/draft-03/schema"}
-}
-]]>
- </artwork>
- </figure>
- </t>
- </section>
-
- <section title="id">
- <t>
- This attribute defines the current URI of this schema (this attribute is
- effectively a "self" link). This URI MAY be relative or absolute. If
- the URI is relative it is resolved against the current URI of the parent
- schema it is contained in. If this schema is not contained in any
- parent schema, the current URI of the parent schema is held to be the
- URI under which this schema was addressed. If id is missing, the current URI of a schema is
- defined to be that of the parent schema. The current URI of the schema
- is also used to construct relative references such as for $ref.
- </t>
- </section>
-
- <section title="$ref">
- <t>
- This attribute defines a URI of a schema that contains the full representation of this schema.
- When a validator encounters this attribute, it SHOULD replace the current schema with the schema referenced by the value's URI (if known and available) and re-validate the instance.
- This URI MAY be relative or absolute, and relative URIs SHOULD be resolved against the URI of the current schema.
- </t>
- </section>
-
- <section title="$schema">
- <t>
- This attribute defines a URI of a JSON Schema that is the schema of the current schema.
- When this attribute is defined, a validator SHOULD use the schema referenced by the value's URI (if known and available) when resolving <xref target="hyper-schema">Hyper Schema</xref><xref target="links">links</xref>.
- </t>
-
- <t>
- A validator MAY use this attribute's value to determine which version of JSON Schema the current schema is written in, and provide the appropriate validation features and behavior.
- Therefore, it is RECOMMENDED that all schema authors include this attribute in their schemas to prevent conflicts with future JSON Schema specification changes.
- </t>
- </section>
- </section>
-
- <section title="Hyper Schema" anchor="hyper-schema">
- <t>
- The following attributes are specified in addition to those
- attributes that already provided by the core schema with the specific
- purpose of informing user agents of relations between resources based
- on JSON data. Just as with JSON
- schema attributes, all the attributes in hyper schemas are optional.
- Therefore, an empty object is a valid (non-informative) schema, and
- essentially describes plain JSON (no constraints on the structures).
- Addition of attributes provides additive information for user agents.
- </t>
-
- <section title="links" anchor="links">
- <t>
- The value of the links property MUST be an array, where each item
- in the array is a link description object which describes the link
- relations of the instances.
- </t>
-
- <section title="Link Description Object">
- <t>
- A link description object is used to describe link relations. In
- the context of a schema, it defines the link relations of the
- instances of the schema, and can be parameterized by the instance
- values. The link description format can be used on its own in
- regular (non-schema documents), and use of this format can
- be declared by referencing the normative link description
- schema as the the schema for the data structure that uses the
- links. The URI of the normative link description schema is:
- <eref target="http://json-schema.org/links">http://json-schema.org/links</eref> (latest version) or
- <eref target="http://json-schema.org/draft-03/links">http://json-schema.org/draft-03/links</eref> (draft-03 version).
- </t>
-
- <section title="href">
- <t>
- The value of the "href" link description property
- indicates the target URI of the related resource. The value
- of the instance property SHOULD be resolved as a URI-Reference per <xref target="RFC3986">RFC 3986</xref>
- and MAY be a relative URI. The base URI to be used for relative resolution
- SHOULD be the URI used to retrieve the instance object (not the schema)
- when used within a schema. Also, when links are used within a schema, the URI
- SHOULD be parametrized by the property values of the instance
- object, if property values exist for the corresponding variables
- in the template (otherwise they MAY be provided from alternate sources, like user input).
- </t>
-
- <t>
- Instance property values SHOULD be substituted into the URIs where
- matching braces ('{', '}') are found surrounding zero or more characters,
- creating an expanded URI. Instance property value substitutions are resolved
- by using the text between the braces to denote the property name
- from the instance to get the value to substitute.
-
- <figure>
- <preamble>For example, if an href value is defined:</preamble>
- <artwork>
-<![CDATA[
-http://somesite.com/{id}
-]]>
- </artwork>
- <postamble>Then it would be resolved by replace the value of the "id" property value from the instance object.</postamble>
- </figure>
-
- <figure>
- <preamble>If the value of the "id" property was "45", the expanded URI would be:</preamble>
- <artwork>
-<![CDATA[
-http://somesite.com/45
-]]>
- </artwork>
- </figure>
-
- If matching braces are found with the string "@" (no quotes) between the braces, then the
- actual instance value SHOULD be used to replace the braces, rather than a property value.
- This should only be used in situations where the instance is a scalar (string,
- boolean, or number), and not for objects or arrays.
- </t>
- </section>
-
- <section title="rel">
- <t>
- The value of the "rel" property indicates the name of the
- relation to the target resource. The relation to the target SHOULD be interpreted as specifically from the instance object that the schema (or sub-schema) applies to, not just the top level resource that contains the object within its hierarchy. If a resource JSON representation contains a sub object with a property interpreted as a link, that sub-object holds the relation with the target. A relation to target from the top level resource MUST be indicated with the schema describing the top level JSON representation.
- </t>
-
- <t>
- Relationship definitions SHOULD NOT be media type dependent, and users are encouraged to utilize existing accepted relation definitions, including those in existing relation registries (see <xref target="RFC4287">RFC 4287</xref>). However, we define these relations here for clarity of normative interpretation within the context of JSON hyper schema defined relations:
-
- <list style="hanging">
- <t hangText="self">
- If the relation value is "self", when this property is encountered in
- the instance object, the object represents a resource and the instance object is
- treated as a full representation of the target resource identified by
- the specified URI.
- </t>
-
- <t hangText="full">
- This indicates that the target of the link is the full representation for the instance object. The object that contains this link possibly may not be the full representation.
- </t>
-
- <t hangText="describedby">
- This indicates the target of the link is the schema for the instance object. This MAY be used to specifically denote the schemas of objects within a JSON object hierarchy, facilitating polymorphic type data structures.
- </t>
-
- <t hangText="root">
- This relation indicates that the target of the link
- SHOULD be treated as the root or the body of the representation for the
- purposes of user agent interaction or fragment resolution. All other
- properties of the instance objects can be regarded as meta-data
- descriptions for the data.
- </t>
- </list>
- </t>
-
- <t>
- The following relations are applicable for schemas (the schema as the "from" resource in the relation):
-
- <list style="hanging">
- <t hangText="instances">This indicates the target resource that represents collection of instances of a schema.</t>
- <t hangText="create">This indicates a target to use for creating new instances of a schema. This link definition SHOULD be a submission link with a non-safe method (like POST).</t>
- </list>
- </t>
-
- <t>
- <figure>
- <preamble>For example, if a schema is defined:</preamble>
- <artwork>
-<![CDATA[
-{
- "links": [{
- "rel": "self",
- "href": "{id}"
- }, {
- "rel": "up",
- "href": "{upId}"
- }, {
- "rel": "children",
- "href": "?upId={id}"
- }]
-}
-]]>
- </artwork>
- </figure>
-
- <figure>
- <preamble>And if a collection of instance resource's JSON representation was retrieved:</preamble>
- <artwork>
-<![CDATA[
-GET /Resource/
-
-[{
- "id": "thing",
- "upId": "parent"
-}, {
- "id": "thing2",
- "upId": "parent"
-}]
-]]>
- </artwork>
- </figure>
-
- This would indicate that for the first item in the collection, its own
- (self) URI would resolve to "/Resource/thing" and the first item's "up"
- relation SHOULD be resolved to the resource at "/Resource/parent".
- The "children" collection would be located at "/Resource/?upId=thing".
- </t>
- </section>
-
- <section title="targetSchema">
- <t>This property value is a schema that defines the expected structure of the JSON representation of the target of the link.</t>
- </section>
-
- <section title="Submission Link Properties">
- <t>
- The following properties also apply to link definition objects, and
- provide functionality analogous to HTML forms, in providing a
- means for submitting extra (often user supplied) information to send to a server.
- </t>
-
- <section title="method">
- <t>
- This attribute defines which method can be used to access the target resource.
- In an HTTP environment, this would be "GET" or "POST" (other HTTP methods
- such as "PUT" and "DELETE" have semantics that are clearly implied by
- accessed resources, and do not need to be defined here).
- This defaults to "GET".
- </t>
- </section>
-
- <section title="enctype">
- <t>
- If present, this property indicates a query media type format that the server
- supports for querying or posting to the collection of instances at the target
- resource. The query can be
- suffixed to the target URI to query the collection with
- property-based constraints on the resources that SHOULD be returned from
- the server or used to post data to the resource (depending on the method).
-
- <figure>
- <preamble>For example, with the following schema:</preamble>
- <artwork>
-<![CDATA[
-{
- "links": [{
- "enctype": "application/x-www-form-urlencoded",
- "method": "GET",
- "href": "/Product/",
- "properties": {
- "name": {
- "description": "name of the product"
- }
- }
- }]
-}
-]]>
- </artwork>
- <postamble>This indicates that the client can query the server for instances that have a specific name.</postamble>
- </figure>
-
- <figure>
- <preamble>For example:</preamble>
- <artwork>
-<![CDATA[
-/Product/?name=Slinky
-]]>
- </artwork>
- </figure>
-
- If no enctype or method is specified, only the single URI specified by
- the href property is defined. If the method is POST, "application/json" is
- the default media type.
- </t>
- </section>
-
- <section title="schema">
- <t>
- This attribute contains a schema which defines the acceptable structure of the submitted
- request (for a GET request, this schema would define the properties for the query string
- and for a POST request, this would define the body).
- </t>
- </section>
- </section>
- </section>
- </section>
-
- <section title="fragmentResolution">
- <t>
- This property indicates the fragment resolution protocol to use for
- resolving fragment identifiers in URIs within the instance
- representations. This applies to the instance object URIs and all
- children of the instance object's URIs. The default fragment resolution
- protocol is "slash-delimited", which is defined below. Other fragment
- resolution protocols MAY be used, but are not defined in this document.
- </t>
-
- <t>
- The fragment identifier is based on <xref target="RFC2396">RFC 2396, Sec 5</xref>, and defines the
- mechanism for resolving references to entities within a document.
- </t>
-
- <section title="slash-delimited fragment resolution">
- <t>
- With the slash-delimited fragment resolution protocol, the fragment
- identifier is interpreted as a series of property reference tokens that start with and
- are delimited by the "/" character (\x2F). Each property reference token
- is a series of unreserved or escaped URI characters. Each property
- reference token SHOULD be interpreted, starting from the beginning of
- the fragment identifier, as a path reference in the target JSON
- structure. The final target value of the fragment can be determined by
- starting with the root of the JSON structure from the representation of
- the resource identified by the pre-fragment URI. If the target is a JSON
- object, then the new target is the value of the property with the name
- identified by the next property reference token in the fragment. If the
- target is a JSON array, then the target is determined by finding the
- item in array the array with the index defined by the next property
- reference token (which MUST be a number). The target is successively
- updated for each property reference token, until the entire fragment has
- been traversed.
- </t>
-
- <t>
- Property names SHOULD be URI-encoded. In particular, any "/" in a
- property name MUST be encoded to avoid being interpreted as a property
- delimiter.
- </t>
-
- <t>
- <figure>
- <preamble>For example, for the following JSON representation:</preamble>
- <artwork>
-<![CDATA[
-{
- "foo": {
- "anArray": [{
- "prop": 44
- }],
- "another prop": {
- "baz": "A string"
- }
- }
-}
-]]>
- </artwork>
- </figure>
-
- <figure>
- <preamble>The following fragment identifiers would be resolved:</preamble>
- <artwork>
-<![CDATA[
-fragment identifier resolution
-------------------- ----------
-# self, the root of the resource itself
-#/foo the object referred to by the foo property
-#/foo/another%20prop the object referred to by the "another prop"
- property of the object referred to by the
- "foo" property
-#/foo/another%20prop/baz the string referred to by the value of "baz"
- property of the "another prop" property of
- the object referred to by the "foo" property
-#/foo/anArray/0 the first object in the "anArray" array
-]]>
- </artwork>
- </figure>
- </t>
- </section>
-
- <section title="dot-delimited fragment resolution">
- <t>
- The dot-delimited fragment resolution protocol is the same as
- slash-delimited fragment resolution protocol except that the "." character
- (\x2E) is used as the delimiter between property names (instead of "/") and
- the path does not need to start with a ".". For example, #.foo and #foo are a valid fragment
- identifiers for referencing the value of the foo propery.
- </t>
- </section>
- </section>
-
- <section title="readonly">
- <t>This attribute indicates that the instance property SHOULD NOT be changed. Attempts by a user agent to modify the value of this property are expected to be rejected by a server.</t>
- </section>
-
- <section title="contentEncoding">
- <t>If the instance property value is a string, this attribute defines that the string SHOULD be interpreted as binary data and decoded using the encoding named by this schema property. <xref target="RFC2045">RFC 2045, Sec 6.1</xref> lists the possible values for this property.</t>
- </section>
-
- <section title="pathStart">
- <t>
- This attribute is a URI that defines what the instance's URI MUST start with in order to validate.
- The value of the "pathStart" attribute MUST be resolved as per <xref target="RFC3986">RFC 3986, Sec 5</xref>,
- and is relative to the instance's URI.
- </t>
-
- <t>
- When multiple schemas have been referenced for an instance, the user agent
- can determine if this schema is applicable for a particular instance by
- determining if the URI of the instance begins with the the value of the "pathStart"
- attribute. If the URI of the instance does not start with this URI,
- or if another schema specifies a starting URI that is longer and also matches the
- instance, this schema SHOULD NOT be applied to the instance. Any schema
- that does not have a pathStart attribute SHOULD be considered applicable
- to all the instances for which it is referenced.
- </t>
- </section>
-
- <section title="mediaType">
- <t>This attribute defines the media type of the instance representations that this schema is defining.</t>
- </section>
- </section>
-
- <section title="Security Considerations">
- <t>
- This specification is a sub-type of the JSON format, and
- consequently the security considerations are generally the same as <xref target="RFC4627">RFC 4627</xref>.
- However, an additional issue is that when link relation of "self"
- is used to denote a full representation of an object, the user agent
- SHOULD NOT consider the representation to be the authoritative representation
- of the resource denoted by the target URI if the target URI is not
- equivalent to or a sub-path of the the URI used to request the resource
- representation which contains the target URI with the "self" link.
-
- <figure>
- <preamble>For example, if a hyper schema was defined:</preamble>
- <artwork>
-<![CDATA[
-{
- "links": [{
- "rel": "self",
- "href": "{id}"
- }]
-}
-]]>
- </artwork>
- </figure>
-
- <figure>
- <preamble>And a resource was requested from somesite.com:</preamble>
- <artwork>
-<![CDATA[
-GET /foo/
-]]>
- </artwork>
- </figure>
-
- <figure>
- <preamble>With a response of:</preamble>
- <artwork>
-<![CDATA[
-Content-Type: application/json; profile=/schema-for-this-data
-
-[{
- "id": "bar",
- "name": "This representation can be safely treated \
- as authoritative "
-}, {
- "id": "/baz",
- "name": "This representation should not be treated as \
- authoritative the user agent should make request the resource\
- from '/baz' to ensure it has the authoritative representation"
-}, {
- "id": "http://othersite.com/something",
- "name": "This representation\
- should also not be treated as authoritative and the target\
- resource representation should be retrieved for the\
- authoritative representation"
-}]
-]]>
- </artwork>
- </figure>
- </t>
- </section>
-
- <section title="IANA Considerations">
- <t>The proposed MIME media type for JSON Schema is "application/schema+json".</t>
- <t>Type name: application</t>
- <t>Subtype name: schema+json</t>
- <t>Required parameters: profile</t>
- <t>
- The value of the profile parameter SHOULD be a URI (relative or absolute) that
- refers to the schema used to define the structure of this structure (the
- meta-schema). Normally the value would be http://json-schema.org/draft-03/hyper-schema,
- but it is allowable to use other schemas that extend the hyper schema's meta-
- schema.
- </t>
- <t>Optional parameters: pretty</t>
- <t>The value of the pretty parameter MAY be true or false to indicate if additional whitespace has been included to make the JSON representation easier to read.</t>
-
- <section title="Registry of Link Relations">
- <t>
- This registry is maintained by IANA per <xref target="RFC4287">RFC 4287</xref> and this specification adds
- four values: "full", "create", "instances", "root". New
- assignments are subject to IESG Approval, as outlined in <xref target="RFC5226">RFC 5226</xref>.
- Requests should be made by email to IANA, which will then forward the
- request to the IESG, requesting approval.
- </t>
- </section>
- </section>
- </middle>
-
- <back>
- <!-- References Section -->
- <references title="Normative References">
- &rfc2045;
- &rfc2119;
- &rfc2396;
- &rfc3339;
- &rfc3986;
- &rfc4287;
- </references>
- <references title="Informative References">
- &rfc2616;
- &rfc4627;
- &rfc5226;
- &iddiscovery;
- &uritemplate;
- &linkheader;
- &html401;
- &css21;
- </references>
-
- <section title="Change Log">
- <t>
- <list style="hanging">
- <t hangText="draft-03">
- <list style="symbols">
- <t>Added example and verbiage to "extends" attribute.</t>
- <t>Defined slash-delimited to use a leading slash.</t>
- <t>Made "root" a relation instead of an attribute.</t>
- <t>Removed address values, and MIME media type from format to reduce confusion (mediaType already exists, so it can be used for MIME types).</t>
- <t>Added more explanation of nullability.</t>
- <t>Removed "alternate" attribute.</t>
- <t>Upper cased many normative usages of must, may, and should.</t>
- <t>Replaced the link submission "properties" attribute to "schema" attribute.</t>
- <t>Replaced "optional" attribute with "required" attribute.</t>
- <t>Replaced "maximumCanEqual" attribute with "exclusiveMaximum" attribute.</t>
- <t>Replaced "minimumCanEqual" attribute with "exclusiveMinimum" attribute.</t>
- <t>Replaced "requires" attribute with "dependencies" attribute.</t>
- <t>Moved "contentEncoding" attribute to hyper schema.</t>
- <t>Added "additionalItems" attribute.</t>
- <t>Added "id" attribute.</t>
- <t>Switched self-referencing variable substitution from "-this" to "@" to align with reserved characters in URI template.</t>
- <t>Added "patternProperties" attribute.</t>
- <t>Schema URIs are now namespace versioned.</t>
- <t>Added "$ref" and "$schema" attributes.</t>
- </list>
- </t>
-
- <t hangText="draft-02">
- <list style="symbols">
- <t>Replaced "maxDecimal" attribute with "divisibleBy" attribute.</t>
- <t>Added slash-delimited fragment resolution protocol and made it the default.</t>
- <t>Added language about using links outside of schemas by referencing its normative URI.</t>
- <t>Added "uniqueItems" attribute.</t>
- <t>Added "targetSchema" attribute to link description object.</t>
- </list>
- </t>
-
- <t hangText="draft-01">
- <list style="symbols">
- <t>Fixed category and updates from template.</t>
- </list>
- </t>
-
- <t hangText="draft-00">
- <list style="symbols">
- <t>Initial draft.</t>
- </list>
- </t>
- </list>
- </t>
- </section>
-
- <section title="Open Issues">
- <t>
- <list>
- <t>Should we give a preference to MIME headers over Link headers (or only use one)?</t>
- <t>Should "root" be a MIME parameter?</t>
- <t>Should "format" be renamed to "mediaType" or "contentType" to reflect the usage MIME media types that are allowed?</t>
- <t>How should dates be handled?</t>
- </list>
- </t>
- </section>
- </back>
-</rfc>
diff --git a/node_modules/json-schema/draft-zyp-json-schema-04.xml b/node_modules/json-schema/draft-zyp-json-schema-04.xml
deleted file mode 100644
index 8ede6bf..0000000
--- a/node_modules/json-schema/draft-zyp-json-schema-04.xml
+++ /dev/null
@@ -1,1072 +0,0 @@
-<?xml version="1.0" encoding="US-ASCII"?>
-<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
-<!ENTITY rfc4627 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4627.xml">
-<!ENTITY rfc3986 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3986.xml">
-<!ENTITY rfc2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
-<!ENTITY rfc4287 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4287.xml">
-<!ENTITY rfc2616 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2616.xml">
-<!ENTITY rfc3339 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3339.xml">
-<!ENTITY rfc2045 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2045.xml">
-<!ENTITY rfc5226 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5226.xml">
-<!ENTITY iddiscovery SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.hammer-discovery.xml">
-<!ENTITY uritemplate SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.gregorio-uritemplate.xml">
-<!ENTITY linkheader SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.nottingham-http-link-header.xml">
-<!ENTITY html401 SYSTEM "http://xml.resource.org/public/rfc/bibxml4/reference.W3C.REC-html401-19991224.xml">
-<!ENTITY css21 SYSTEM "http://xml.resource.org/public/rfc/bibxml4/reference.W3C.CR-CSS21-20070719.xml">
-]>
-<?rfc toc="yes"?>
-<?rfc symrefs="yes"?>
-<?rfc compact="yes"?>
-<?rfc subcompact="no"?>
-<?rfc strict="no"?>
-<?rfc rfcedstyle="yes"?>
-<rfc category="info" docName="draft-zyp-json-schema-04" ipr="trust200902">
- <front>
- <title abbrev="JSON Schema Media Type">A JSON Media Type for Describing the Structure and Meaning of JSON Documents</title>
-
- <author fullname="Kris Zyp" initials="K" role="editor" surname="Zyp">
- <organization>SitePen (USA)</organization>
- <address>
- <postal>
- <street>530 Lytton Avenue</street>
- <city>Palo Alto, CA 94301</city>
- <country>USA</country>
- </postal>
- <phone>+1 650 968 8787</phone>
- <email>kris@sitepen.com</email>
- </address>
- </author>
-
- <author fullname="Gary Court" initials="G" surname="Court">
- <address>
- <postal>
- <street></street>
- <city>Calgary, AB</city>
- <country>Canada</country>
- </postal>
- <email>gary.court@gmail.com</email>
- </address>
- </author>
-
- <date year="2011" />
- <workgroup>Internet Engineering Task Force</workgroup>
- <keyword>JSON</keyword>
- <keyword>Schema</keyword>
- <keyword>JavaScript</keyword>
- <keyword>Object</keyword>
- <keyword>Notation</keyword>
- <keyword>Hyper Schema</keyword>
- <keyword>Hypermedia</keyword>
-
- <abstract>
- <t>
- JSON (JavaScript Object Notation) Schema defines the media type "application/schema+json",
- a JSON based format for defining the structure of JSON data. JSON Schema provides a contract for what JSON
- data is required for a given application and how to interact with it. JSON
- Schema is intended to define validation, documentation, hyperlink
- navigation, and interaction control of JSON data.
- </t>
- </abstract>
- </front>
-
- <middle>
- <section title="Introduction">
- <t>
- JSON (JavaScript Object Notation) Schema is a JSON media type for defining
- the structure of JSON data. JSON Schema provides a contract for what JSON
- data is required for a given application and how to interact with it. JSON
- Schema is intended to define validation, documentation, hyperlink
- navigation, and interaction control of JSON data.
- </t>
- </section>
-
- <section title="Conventions and Terminology">
- <t>
- <!-- The text in this section has been copied from the official boilerplate,
- and should not be modified.-->
-
- The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
- "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
- interpreted as described in <xref target="RFC2119">RFC 2119</xref>.
- </t>
-
- <t>
- The terms "JSON", "JSON text", "JSON value", "member", "element", "object",
- "array", "number", "string", "boolean", "true", "false", and "null" in this
- document are to be interpreted as defined in <xref target="RFC4627">RFC 4627</xref>.
- </t>
-
- <t>
- This specification also uses the following defined terms:
-
- <list style="hanging">
- <t hangText="schema">A JSON Schema object.</t>
- <t hangText="instance">Equivalent to "JSON value" as defined in <xref target="RFC4627">RFC 4627</xref>.</t>
- <t hangText="property">Equivalent to "member" as defined in <xref target="RFC4627">RFC 4627</xref>.</t>
- <t hangText="item">Equivalent to "element" as defined in <xref target="RFC4627">RFC 4627</xref>.</t>
- <t hangText="attribute">A property of a JSON Schema object.</t>
- </list>
- </t>
- </section>
-
- <section title="Overview">
- <t>
- JSON Schema defines the media type "application/schema+json" for
- describing the structure of JSON text. JSON Schemas are also written in JSON and includes facilities
- for describing the structure of JSON in terms of
- allowable values, descriptions, and interpreting relations with other resources.
- </t>
- <t>
- This document is organized into several separate definitions. The first
- definition is the core schema specification. This definition is primary
- concerned with describing a JSON structure and specifying valid elements
- in the structure. The second definition is the Hyper Schema specification
- which is intended to define elements in a structure that can be interpreted as
- hyperlinks.
- Hyper Schema builds on JSON Schema to describe the hyperlink structure of
- JSON values. This allows user agents to be able to successfully navigate
- documents containing JSON based on their schemas.
- </t>
- <t>
- Cumulatively JSON Schema acts as meta-JSON that can be used to define the
- required type and constraints on JSON values, as well as define the meaning
- of the JSON values for the purpose of describing a resource and determining
- hyperlinks within the representation.
- </t>
- <figure>
- <preamble>An example JSON Schema that describes products might look like:</preamble>
- <artwork>
-<![CDATA[
-{
- "title": "Product",
- "properties": {
- "id": {
- "title": "Product Identifier",
- "type": "number"
- },
- "name": {
- "title": "Product Name",
- "type": "string"
- },
- "price": {
- "type": "number",
- "minimum": 0
- },
- "tags": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required" : ["id", "name", "price"],
- "links": [{
- "rel": "full",
- "href": "{id}"
- }, {
- "rel": "comments",
- "href": "comments/?id={id}"
- }]
-}
-]]>
- </artwork>
- <postamble>
- This schema defines the properties of the instance,
- the required properties (id, name, and price), as well as an optional
- property (tags). This also defines the link relations of the instance.
- </postamble>
- </figure>
-
- <section title="Design Considerations">
- <t>
- The JSON Schema media type does not attempt to dictate the structure of JSON
- values that contain data, but rather provides a separate format
- for flexibly communicating how a JSON value should be
- interpreted and validated, such that user agents can properly understand
- acceptable structures and extrapolate hyperlink information
- from the JSON. It is acknowledged that JSON values come
- in a variety of structures, and JSON is unique in that the structure
- of stored data structures often prescribes a non-ambiguous definite
- JSON representation. Attempting to force a specific structure is generally
- not viable, and therefore JSON Schema allows for a great flexibility
- in the structure of the JSON data that it describes.
- </t>
- <t>
- This specification is protocol agnostic.
- The underlying protocol (such as HTTP) should sufficiently define the
- semantics of the client-server interface, the retrieval of resource
- representations linked to by JSON representations, and modification of
- those resources. The goal of this
- format is to sufficiently describe JSON structures such that one can
- utilize existing information available in existing JSON
- representations from a large variety of services that leverage a representational state transfer
- architecture using existing protocols.
- </t>
- </section>
- </section>
-
- <section title="Schema/Instance Association">
- <t>
- JSON values are correlated to their schema by the "describedby"
- relation, where the schema is the target of the relation.
- JSON values MUST be of the "application/json" media type or
- any other subtype. Consequently, dictating how a JSON value should
- specify the relation to the schema is beyond the normative scope
- of this document since this document specifically defines the JSON
- Schema media type, and no other. It is RECOMMNENDED that JSON values
- specify their schema so that user agents can interpret the instance
- and retain the self-descriptive characteristics. This avoides the need for out-of-band information about
- instance data. Two approaches are recommended for declaring the
- relation to the schema that describes the meaning of a JSON instance's (or collection
- of instances) structure. A MIME type parameter named
- "profile" or a relation of "describedby" (which could be specified by a Link header) may be used:
-
- <figure>
- <artwork>
-<![CDATA[
-Content-Type: application/my-media-type+json;
- profile=http://example.com/my-hyper-schema
-]]>
- </artwork>
- </figure>
-
- or if the content is being transferred by a protocol (such as HTTP) that
- provides headers, a Link header can be used:
-
- <figure>
- <artwork>
-<![CDATA[
-Link: <http://example.com/my-hyper-schema>; rel="describedby"
-]]>
- </artwork>
- </figure>
-
- Instances MAY specify multiple schemas, to indicate all the schemas that
- are applicable to the data, and the data SHOULD be valid by all the schemas.
- The instance data MAY have multiple schemas
- that it is described by (the instance data SHOULD be valid for those schemas).
- Or if the document is a collection of instances, the collection MAY contain
- instances from different schemas. The mechanism for referencing a schema is
- determined by the media type of the instance (if it provides a method for
- referencing schemas).
- </t>
-
- <section title="Self-Descriptive Schema">
- <t>
- JSON Schemas can themselves be described using JSON Schemas.
- A self-describing JSON Schema for the core JSON Schema can
- be found at <eref target="http://json-schema.org/schema">http://json-schema.org/schema</eref> for the latest version or
- <eref target="http://json-schema.org/draft-04/schema">http://json-schema.org/draft-04/schema</eref> for the draft-04 version. The hyper schema
- self-description can be found at <eref target="http://json-schema.org/hyper-schema">http://json-schema.org/hyper-schema</eref>
- or <eref target="http://json-schema.org/draft-04/hyper-schema">http://json-schema.org/draft-04/hyper-schema</eref>. All schemas
- used within a protocol with a media type specified SHOULD include a MIME parameter that refers to the self-descriptive
- hyper schema or another schema that extends this hyper schema:
-
- <figure>
- <artwork>
-<![CDATA[
-Content-Type: application/json;
- profile=http://json-schema.org/draft-04/hyper-schema
-]]>
- </artwork>
- </figure>
- </t>
- </section>
- </section>
-
- <section title="Core Schema Definition">
- <t>
- A JSON Schema is a JSON object that defines various attributes
- (including usage and valid values) of a JSON value. JSON
- Schema has recursive capabilities; there are a number of elements
- in the structure that allow for nested JSON Schemas.
- </t>
-
- <figure>
- <preamble>An example JSON Schema could look like:</preamble>
- <artwork>
-<![CDATA[
-{
- "description": "A person",
- "type": "object",
-
- "properties": {
- "name": {
- "type": "string"
- },
- "age": {
- "type": "number",
- "divisibleBy": 1,
- "minimum": 0,
- "maximum": 125
- }
- }
-}
-]]>
- </artwork>
- </figure>
-
- <t>
- A JSON Schema object MAY have any of the following optional properties:
- </t>
-
- <!-- TODO: Break attributes up into type sections -->
- <!-- TODO: Add examples for (almost) every attribute -->
-
- <section title="type" anchor="type">
- <t>
- This attribute defines what the primitive type or the schema of the instance MUST be in order to validate.
- This attribute can take one of two forms:
-
- <list style="hanging">
- <t hangText="Simple Types">
- A string indicating a primitive or simple type. The string MUST be one of the following values:
-
- <list style="hanging">
- <t hangText="object">Instance MUST be an object.</t>
- <t hangText="array">Instance MUST be an array.</t>
- <t hangText="string">Instance MUST be a string.</t>
- <t hangText="number">Instance MUST be a number, including floating point numbers.</t>
- <t hangText="boolean">Instance MUST be the JSON literal "true" or "false".</t>
- <t hangText="null">Instance MUST be the JSON literal "null". Note that without this type, null values are not allowed.</t>
- <t hangText="any">Instance MAY be of any type, including null.</t>
- </list>
- </t>
-
- <t hangText="Union Types">
- An array of one or more simple or schema types.
- The instance value is valid if it is of the same type as one of the simple types, or valid by one of the schemas, in the array.
- </t>
- </list>
-
- If this attribute is not specified, then all value types are accepted.
- </t>
-
- <figure>
- <preamble>For example, a schema that defines if an instance can be a string or a number would be:</preamble>
- <artwork>
-<![CDATA[
-{
- "type": ["string", "number"]
-}
-]]></artwork>
- </figure>
- </section>
-
- <section title="properties" anchor="properties">
- <t>
- This attribute is an object with properties that specify the schemas for the properties of the instance object.
- In this attribute's object, each property value MUST be a schema.
- When the instance value is an object, the value of the instance's properties MUST be valid according to the schemas with the same property names specified in this attribute.
- Objects are unordered, so therefore the order of the instance properties or attribute properties MUST NOT determine validation success.
- </t>
- </section>
-
- <section title="patternProperties" anchor="patternProperties">
- <t>
- This attribute is an object that defines the schema for a set of property names of an object instance.
- The name of each property of this attribute's object is a regular expression pattern in the ECMA 262/Perl 5 format, while the value is a schema.
- If the pattern matches the name of a property on the instance object, the value of the instance's property MUST be valid against the pattern name's schema value.
- </t>
- </section>
-
- <section title="additionalProperties" anchor="additionalProperties">
- <t>This attribute specifies how any instance property that is not explicitly defined by either the <xref target="properties">"properties"</xref> or <xref target="patternProperties">"patternProperties"</xref> attributes (hereafter referred to as "additional properties") is handled. If specified, the value MUST be a schema or a boolean.</t>
- <t>If a schema is provided, then all additional properties MUST be valid according to the schema.</t>
- <t>If false is provided, then no additional properties are allowed.</t>
- <t>The default value is an empty schema, which allows any value for additional properties.</t>
- </section>
-
- <section title="items" anchor="items">
- <t>This attribute provides the allowed items in an array instance. If specified, this attribute MUST be a schema or an array of schemas.</t>
- <t>When this attribute value is a schema and the instance value is an array, then all the items in the array MUST be valid according to the schema.</t>
- <t>When this attribute value is an array of schemas and the instance value is an array, each position in the instance array MUST be valid according to the schema in the corresponding position for this array. This called tuple typing. When tuple typing is used, additional items are allowed, disallowed, or constrained by the <xref target="additionalItems">"additionalItems"</xref> attribute the same way as <xref target="additionalProperties">"additionalProperties"</xref> for objects is.</t>
- </section>
-
- <section title="additionalItems" anchor="additionalItems">
- <t>This attribute specifies how any item in the array instance that is not explicitly defined by <xref target="items">"items"</xref> (hereafter referred to as "additional items") is handled. If specified, the value MUST be a schema or a boolean.</t>
- <t>If a schema is provided:
- <list>
- <t>If the <xref target="items">"items"</xref> attribute is unspecified, then all items in the array instance must be valid against this schema.</t>
- <t>If the <xref target="items">"items"</xref> attribute is a schema, then this attribute is ignored.</t>
- <t>If the <xref target="items">"items"</xref> attribute is an array (during tuple typing), then any additional items MUST be valid against this schema.</t>
- </list>
- </t>
- <t>If false is provided, then any additional items in the array are not allowed.</t>
- <t>The default value is an empty schema, which allows any value for additional items.</t>
- </section>
-
- <section title="required" anchor="required">
- <t>This attribute is an array of strings that defines all the property names that must exist on the object instance.</t>
- </section>
-
- <section title="dependencies" anchor="dependencies">
- <t>This attribute is an object that specifies the requirements of a property on an object instance. If an object instance has a property with the same name as a property in this attribute's object, then the instance must be valid against the attribute's property value (hereafter referred to as the "dependency value").</t>
- <t>
- The dependency value can take one of two forms:
-
- <list style="hanging">
- <t hangText="Simple Dependency">
- If the dependency value is a string, then the instance object MUST have a property with the same name as the dependency value.
- If the dependency value is an array of strings, then the instance object MUST have a property with the same name as each string in the dependency value's array.
- </t>
- <t hangText="Schema Dependency">
- If the dependency value is a schema, then the instance object MUST be valid against the schema.
- </t>
- </list>
- </t>
- </section>
-
- <section title="minimum" anchor="minimum">
- <t>This attribute defines the minimum value of the instance property when the type of the instance value is a number.</t>
- </section>
-
- <section title="maximum" anchor="maximum">
- <t>This attribute defines the maximum value of the instance property when the type of the instance value is a number.</t>
- </section>
-
- <section title="exclusiveMinimum" anchor="exclusiveMinimum">
- <t>This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "minimum" attribute. This is false by default, meaning the instance value can be greater then or equal to the minimum value.</t>
- </section>
-
- <section title="exclusiveMaximum" anchor="exclusiveMaximum">
- <t>This attribute indicates if the value of the instance (if the instance is a number) can not equal the number defined by the "maximum" attribute. This is false by default, meaning the instance value can be less then or equal to the maximum value.</t>
- </section>
-
- <section title="minItems" anchor="minItems">
- <t>This attribute defines the minimum number of values in an array when the array is the instance value.</t>
- </section>
-
- <section title="maxItems" anchor="maxItems">
- <t>This attribute defines the maximum number of values in an array when the array is the instance value.</t>
- </section>
-
- <section title="minProperties" anchor="minProperties">
- <t>This attribute defines the minimum number of properties required on an object instance.</t>
- </section>
-
- <section title="maxProperties" anchor="maxProperties">
- <t>This attribute defines the maximum number of properties the object instance can have.</t>
- </section>
-
- <section title="uniqueItems" anchor="uniqueItems">
- <t>This attribute indicates that all items in an array instance MUST be unique (contains no two identical values).</t>
- <t>
- Two instance are consider equal if they are both of the same type and:
-
- <list>
- <t>are null; or</t>
- <t>are booleans/numbers/strings and have the same value; or</t>
- <t>are arrays, contains the same number of items, and each item in the array is equal to the item at the corresponding index in the other array; or</t>
- <t>are objects, contains the same property names, and each property in the object is equal to the corresponding property in the other object.</t>
- </list>
- </t>
- </section>
-
- <section title="pattern" anchor="pattern">
- <t>When the instance value is a string, this provides a regular expression that a string instance MUST match in order to be valid. Regular expressions SHOULD follow the regular expression specification from ECMA 262/Perl 5</t>
- </section>
-
- <section title="minLength" anchor="minLength">
- <t>When the instance value is a string, this defines the minimum length of the string.</t>
- </section>
-
- <section title="maxLength" anchor="maxLength">
- <t>When the instance value is a string, this defines the maximum length of the string.</t>
- </section>
-
- <section title="enum" anchor="enum">
- <t>This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in <xref target="uniqueItems">"uniqueItems"</xref>.</t>
- </section>
-
- <section title="default" anchor="default">
- <t>This attribute defines the default value of the instance when the instance is undefined.</t>
- </section>
-
- <section title="title" anchor="title">
- <t>This attribute is a string that provides a short description of the instance property.</t>
- </section>
-
- <section title="description" anchor="description">
- <t>This attribute is a string that provides a full description of the of purpose the instance property.</t>
- </section>
-
- <section title="divisibleBy" anchor="divisibleBy">
- <t>This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0.</t>
- </section>
-
- <section title="disallow" anchor="disallow">
- <t>This attribute takes the same values as the "type" attribute, however if the instance matches the type or if this value is an array and the instance matches any type or schema in the array, then this instance is not valid.</t>
- </section>
-
- <section title="extends" anchor="extends">
- <t>The value of this property MUST be another schema which will provide a base schema which the current schema will inherit from. The inheritance rules are such that any instance that is valid according to the current schema MUST be valid according to the referenced schema. This MAY also be an array, in which case, the instance MUST be valid for all the schemas in the array. A schema that extends another schema MAY define additional attributes, constrain existing attributes, or add other constraints.</t>
- <t>
- Conceptually, the behavior of extends can be seen as validating an
- instance against all constraints in the extending schema as well as
- the extended schema(s). More optimized implementations that merge
- schemas are possible, but are not required. Some examples of using "extends":
-
- <figure>
- <artwork>
-<![CDATA[
-{
- "description": "An adult",
- "properties": {
- "age": {
- "minimum": 21
- }
- },
- "extends": {"$ref": "person"}
-}
-]]>
- </artwork>
- </figure>
-
- <figure>
- <artwork>
-<![CDATA[
-{
- "description": "Extended schema",
- "properties": {
- "deprecated": {
- "type": "boolean"
- }
- },
- "extends": {"$ref": "http://json-schema.org/draft-04/schema"}
-}
-]]>
- </artwork>
- </figure>
- </t>
- </section>
-
- <section title="id" anchor="id">
- <t>
- This attribute defines the current URI of this schema (this attribute is
- effectively a "self" link). This URI MAY be relative or absolute. If
- the URI is relative it is resolved against the current URI of the parent
- schema it is contained in. If this schema is not contained in any
- parent schema, the current URI of the parent schema is held to be the
- URI under which this schema was addressed. If id is missing, the current URI of a schema is
- defined to be that of the parent schema. The current URI of the schema
- is also used to construct relative references such as for $ref.
- </t>
- </section>
-
- <section title="$ref" anchor="ref">
- <t>
- This attribute defines a URI of a schema that contains the full representation of this schema.
- When a validator encounters this attribute, it SHOULD replace the current schema with the schema referenced by the value's URI (if known and available) and re-validate the instance.
- This URI MAY be relative or absolute, and relative URIs SHOULD be resolved against the URI of the current schema.
- </t>
- </section>
-
- <section title="$schema" anchor="schema">
- <t>
- This attribute defines a URI of a JSON Schema that is the schema of the current schema.
- When this attribute is defined, a validator SHOULD use the schema referenced by the value's URI (if known and available) when resolving <xref target="hyper-schema">Hyper Schema</xref><xref target="links">links</xref>.
- </t>
-
- <t>
- A validator MAY use this attribute's value to determine which version of JSON Schema the current schema is written in, and provide the appropriate validation features and behavior.
- Therefore, it is RECOMMENDED that all schema authors include this attribute in their schemas to prevent conflicts with future JSON Schema specification changes.
- </t>
- </section>
- </section>
-
- <section title="Hyper Schema" anchor="hyper-schema">
- <t>
- The following attributes are specified in addition to those
- attributes that already provided by the core schema with the specific
- purpose of informing user agents of relations between resources based
- on JSON data. Just as with JSON
- schema attributes, all the attributes in hyper schemas are optional.
- Therefore, an empty object is a valid (non-informative) schema, and
- essentially describes plain JSON (no constraints on the structures).
- Addition of attributes provides additive information for user agents.
- </t>
-
- <section title="links" anchor="links">
- <t>
- The value of the links property MUST be an array, where each item
- in the array is a link description object which describes the link
- relations of the instances.
- </t>
-
- <!-- TODO: Needs more clarification and examples -->
-
- <section title="Link Description Object">
- <t>
- A link description object is used to describe link relations. In
- the context of a schema, it defines the link relations of the
- instances of the schema, and can be parameterized by the instance
- values. The link description format can be used without JSON Schema,
- and use of this format can
- be declared by referencing the normative link description
- schema as the the schema for the data structure that uses the
- links. The URI of the normative link description schema is:
- <eref target="http://json-schema.org/links">http://json-schema.org/links</eref> (latest version) or
- <eref target="http://json-schema.org/draft-04/links">http://json-schema.org/draft-04/links</eref> (draft-04 version).
- </t>
-
- <section title="href" anchor="href">
- <t>
- The value of the "href" link description property
- indicates the target URI of the related resource. The value
- of the instance property SHOULD be resolved as a URI-Reference per <xref target="RFC3986">RFC 3986</xref>
- and MAY be a relative URI. The base URI to be used for relative resolution
- SHOULD be the URI used to retrieve the instance object (not the schema)
- when used within a schema. Also, when links are used within a schema, the URI
- SHOULD be parametrized by the property values of the instance
- object, if property values exist for the corresponding variables
- in the template (otherwise they MAY be provided from alternate sources, like user input).
- </t>
-
- <t>
- Instance property values SHOULD be substituted into the URIs where
- matching braces ('{', '}') are found surrounding zero or more characters,
- creating an expanded URI. Instance property value substitutions are resolved
- by using the text between the braces to denote the property name
- from the instance to get the value to substitute.
-
- <figure>
- <preamble>For example, if an href value is defined:</preamble>
- <artwork>
-<![CDATA[
-http://somesite.com/{id}
-]]>
- </artwork>
- <postamble>Then it would be resolved by replace the value of the "id" property value from the instance object.</postamble>
- </figure>
-
- <figure>
- <preamble>If the value of the "id" property was "45", the expanded URI would be:</preamble>
- <artwork>
-<![CDATA[
-http://somesite.com/45
-]]>
- </artwork>
- </figure>
-
- If matching braces are found with the string "@" (no quotes) between the braces, then the
- actual instance value SHOULD be used to replace the braces, rather than a property value.
- This should only be used in situations where the instance is a scalar (string,
- boolean, or number), and not for objects or arrays.
- </t>
- </section>
-
- <section title="rel">
- <t>
- The value of the "rel" property indicates the name of the
- relation to the target resource. The relation to the target SHOULD be interpreted as specifically from the instance object that the schema (or sub-schema) applies to, not just the top level resource that contains the object within its hierarchy. If a resource JSON representation contains a sub object with a property interpreted as a link, that sub-object holds the relation with the target. A relation to target from the top level resource MUST be indicated with the schema describing the top level JSON representation.
- </t>
-
- <t>
- Relationship definitions SHOULD NOT be media type dependent, and users are encouraged to utilize existing accepted relation definitions, including those in existing relation registries (see <xref target="RFC4287">RFC 4287</xref>). However, we define these relations here for clarity of normative interpretation within the context of JSON hyper schema defined relations:
-
- <list style="hanging">
- <t hangText="self">
- If the relation value is "self", when this property is encountered in
- the instance object, the object represents a resource and the instance object is
- treated as a full representation of the target resource identified by
- the specified URI.
- </t>
-
- <t hangText="full">
- This indicates that the target of the link is the full representation for the instance object. The object that contains this link possibly may not be the full representation.
- </t>
-
- <t hangText="describedby">
- This indicates the target of the link is the schema for the instance object. This MAY be used to specifically denote the schemas of objects within a JSON object hierarchy, facilitating polymorphic type data structures.
- </t>
-
- <t hangText="root">
- This relation indicates that the target of the link
- SHOULD be treated as the root or the body of the representation for the
- purposes of user agent interaction or fragment resolution. All other
- properties of the instance objects can be regarded as meta-data
- descriptions for the data.
- </t>
- </list>
- </t>
-
- <t>
- The following relations are applicable for schemas (the schema as the "from" resource in the relation):
-
- <list style="hanging">
- <t hangText="instances">This indicates the target resource that represents collection of instances of a schema.</t>
- <t hangText="create">This indicates a target to use for creating new instances of a schema. This link definition SHOULD be a submission link with a non-safe method (like POST).</t>
- </list>
- </t>
-
- <t>
- <figure>
- <preamble>For example, if a schema is defined:</preamble>
- <artwork>
-<![CDATA[
-{
- "links": [{
- "rel": "self",
- "href": "{id}"
- }, {
- "rel": "up",
- "href": "{upId}"
- }, {
- "rel": "children",
- "href": "?upId={id}"
- }]
-}
-]]>
- </artwork>
- </figure>
-
- <figure>
- <preamble>And if a collection of instance resource's JSON representation was retrieved:</preamble>
- <artwork>
-<![CDATA[
-GET /Resource/
-
-[{
- "id": "thing",
- "upId": "parent"
-}, {
- "id": "thing2",
- "upId": "parent"
-}]
-]]>
- </artwork>
- </figure>
-
- This would indicate that for the first item in the collection, its own
- (self) URI would resolve to "/Resource/thing" and the first item's "up"
- relation SHOULD be resolved to the resource at "/Resource/parent".
- The "children" collection would be located at "/Resource/?upId=thing".
- </t>
- </section>
-
- <section title="template">
- <t>This property value is a string that defines the templating language used in the <xref target="href">"href"</xref> attribute. If no templating language is defined, then the default <xref target="href">Link Description Object templating langauge</xref> is used.</t>
- </section>
-
- <section title="targetSchema">
- <t>This property value is a schema that defines the expected structure of the JSON representation of the target of the link.</t>
- </section>
-
- <section title="Submission Link Properties">
- <t>
- The following properties also apply to link definition objects, and
- provide functionality analogous to HTML forms, in providing a
- means for submitting extra (often user supplied) information to send to a server.
- </t>
-
- <section title="method">
- <t>
- This attribute defines which method can be used to access the target resource.
- In an HTTP environment, this would be "GET" or "POST" (other HTTP methods
- such as "PUT" and "DELETE" have semantics that are clearly implied by
- accessed resources, and do not need to be defined here).
- This defaults to "GET".
- </t>
- </section>
-
- <section title="enctype">
- <t>
- If present, this property indicates a query media type format that the server
- supports for querying or posting to the collection of instances at the target
- resource. The query can be
- suffixed to the target URI to query the collection with
- property-based constraints on the resources that SHOULD be returned from
- the server or used to post data to the resource (depending on the method).
-
- <figure>
- <preamble>For example, with the following schema:</preamble>
- <artwork>
-<![CDATA[
-{
- "links": [{
- "enctype": "application/x-www-form-urlencoded",
- "method": "GET",
- "href": "/Product/",
- "properties": {
- "name": {
- "description": "name of the product"
- }
- }
- }]
-}
-]]>
- </artwork>
- <postamble>This indicates that the client can query the server for instances that have a specific name.</postamble>
- </figure>
-
- <figure>
- <preamble>For example:</preamble>
- <artwork>
-<![CDATA[
-/Product/?name=Slinky
-]]>
- </artwork>
- </figure>
-
- If no enctype or method is specified, only the single URI specified by
- the href property is defined. If the method is POST, "application/json" is
- the default media type.
- </t>
- </section>
-
- <section title="schema">
- <t>
- This attribute contains a schema which defines the acceptable structure of the submitted
- request (for a GET request, this schema would define the properties for the query string
- and for a POST request, this would define the body).
- </t>
- </section>
- </section>
- </section>
- </section>
-
- <section title="fragmentResolution">
- <t>
- This property indicates the fragment resolution protocol to use for
- resolving fragment identifiers in URIs within the instance
- representations. This applies to the instance object URIs and all
- children of the instance object's URIs. The default fragment resolution
- protocol is "json-pointer", which is defined below. Other fragment
- resolution protocols MAY be used, but are not defined in this document.
- </t>
-
- <t>
- The fragment identifier is based on <xref target="RFC3986">RFC 3986, Sec 5</xref>, and defines the
- mechanism for resolving references to entities within a document.
- </t>
-
- <section title="json-pointer fragment resolution">
- <t>The "json-pointer" fragment resolution protocol uses a <xref target="json-pointer">JSON Pointer</xref> to resolve fragment identifiers in URIs within instance representations.</t>
- </section>
- </section>
-
- <!-- TODO: Remove this? -->
-
- <section title="readonly">
- <t>This attribute indicates that the instance value SHOULD NOT be changed. Attempts by a user agent to modify the value of this property are expected to be rejected by a server.</t>
- </section>
-
- <section title="contentEncoding">
- <t>If the instance property value is a string, this attribute defines that the string SHOULD be interpreted as binary data and decoded using the encoding named by this schema property. <xref target="RFC2045">RFC 2045, Sec 6.1</xref> lists the possible values for this property.</t>
- </section>
-
- <section title="pathStart">
- <t>
- This attribute is a URI that defines what the instance's URI MUST start with in order to validate.
- The value of the "pathStart" attribute MUST be resolved as per <xref target="RFC3986">RFC 3986, Sec 5</xref>,
- and is relative to the instance's URI.
- </t>
-
- <t>
- When multiple schemas have been referenced for an instance, the user agent
- can determine if this schema is applicable for a particular instance by
- determining if the URI of the instance begins with the the value of the "pathStart"
- attribute. If the URI of the instance does not start with this URI,
- or if another schema specifies a starting URI that is longer and also matches the
- instance, this schema SHOULD NOT be applied to the instance. Any schema
- that does not have a pathStart attribute SHOULD be considered applicable
- to all the instances for which it is referenced.
- </t>
- </section>
-
- <section title="mediaType">
- <t>This attribute defines the media type of the instance representations that this schema is defining.</t>
- </section>
- </section>
-
- <section title="Security Considerations">
- <t>
- This specification is a sub-type of the JSON format, and
- consequently the security considerations are generally the same as <xref target="RFC4627">RFC 4627</xref>.
- However, an additional issue is that when link relation of "self"
- is used to denote a full representation of an object, the user agent
- SHOULD NOT consider the representation to be the authoritative representation
- of the resource denoted by the target URI if the target URI is not
- equivalent to or a sub-path of the the URI used to request the resource
- representation which contains the target URI with the "self" link.
-
- <figure>
- <preamble>For example, if a hyper schema was defined:</preamble>
- <artwork>
-<![CDATA[
-{
- "links": [{
- "rel": "self",
- "href": "{id}"
- }]
-}
-]]>
- </artwork>
- </figure>
-
- <figure>
- <preamble>And a resource was requested from somesite.com:</preamble>
- <artwork>
-<![CDATA[
-GET /foo/
-]]>
- </artwork>
- </figure>
-
- <figure>
- <preamble>With a response of:</preamble>
- <artwork>
-<![CDATA[
-Content-Type: application/json; profile=/schema-for-this-data
-
-[{
- "id": "bar",
- "name": "This representation can be safely treated \
- as authoritative "
-}, {
- "id": "/baz",
- "name": "This representation should not be treated as \
- authoritative the user agent should make request the resource\
- from '/baz' to ensure it has the authoritative representation"
-}, {
- "id": "http://othersite.com/something",
- "name": "This representation\
- should also not be treated as authoritative and the target\
- resource representation should be retrieved for the\
- authoritative representation"
-}]
-]]>
- </artwork>
- </figure>
- </t>
- </section>
-
- <section title="IANA Considerations">
- <t>The proposed MIME media type for JSON Schema is "application/schema+json".</t>
- <t>Type name: application</t>
- <t>Subtype name: schema+json</t>
- <t>Required parameters: profile</t>
- <t>
- The value of the profile parameter SHOULD be a URI (relative or absolute) that
- refers to the schema used to define the structure of this structure (the
- meta-schema). Normally the value would be http://json-schema.org/draft-04/hyper-schema,
- but it is allowable to use other schemas that extend the hyper schema's meta-
- schema.
- </t>
- <t>Optional parameters: pretty</t>
- <t>The value of the pretty parameter MAY be true or false to indicate if additional whitespace has been included to make the JSON representation easier to read.</t>
-
- <section title="Registry of Link Relations">
- <t>
- This registry is maintained by IANA per <xref target="RFC4287">RFC 4287</xref> and this specification adds
- four values: "full", "create", "instances", "root". New
- assignments are subject to IESG Approval, as outlined in <xref target="RFC5226">RFC 5226</xref>.
- Requests should be made by email to IANA, which will then forward the
- request to the IESG, requesting approval.
- </t>
- </section>
- </section>
- </middle>
-
- <back>
- <!-- References Section -->
- <references title="Normative References">
- &rfc2045;
- &rfc2119;
- &rfc3339;
- &rfc3986;
- &rfc4287;
- <reference anchor="json-pointer" target="http://tools.ietf.org/html/draft-pbryan-zyp-json-pointer-02">
- <front>
- <title>JSON Pointer</title>
- <author initials="P." surname="Bryan">
- <organization>ForgeRock US, Inc.</organization>
- </author>
- <author initials="K." surname="Zyp">
- <organization>SitePen (USA)</organization>
- </author>
- <date year="2011" month="October" />
- </front>
- </reference>
- </references>
- <references title="Informative References">
- &rfc2616;
- &rfc4627;
- &rfc5226;
- &iddiscovery;
- &uritemplate;
- &linkheader;
- &html401;
- &css21;
- </references>
-
- <section title="Change Log">
- <t>
- <list style="hanging">
- <t hangText="draft-04">
- <list style="symbols">
- <t>Changed "required" attribute to an array of strings.</t>
- <t>Removed "format" attribute.</t>
- <t>Added "minProperties" and "maxProperties" attributes.</t>
- <t>Replaced "slash-delimited" fragment resolution with "json-pointer".</t>
- <t>Added "template" LDO attribute.</t>
- <t>Removed irrelevant "Open Issues" section.</t>
- <t>Merged Conventions and Terminology sections.</t>
- <t>Defined terms used in specification.</t>
- <t>Removed "integer" type in favor of {"type":"number", "divisibleBy":1}.</t>
- <t>Restricted "type" to only the core JSON types.</t>
- <t>Improved wording of many sections.</t>
- </list>
- </t>
-
- <t hangText="draft-03">
- <list style="symbols">
- <t>Added example and verbiage to "extends" attribute.</t>
- <t>Defined slash-delimited to use a leading slash.</t>
- <t>Made "root" a relation instead of an attribute.</t>
- <t>Removed address values, and MIME media type from format to reduce confusion (mediaType already exists, so it can be used for MIME types).</t>
- <t>Added more explanation of nullability.</t>
- <t>Removed "alternate" attribute.</t>
- <t>Upper cased many normative usages of must, may, and should.</t>
- <t>Replaced the link submission "properties" attribute to "schema" attribute.</t>
- <t>Replaced "optional" attribute with "required" attribute.</t>
- <t>Replaced "maximumCanEqual" attribute with "exclusiveMaximum" attribute.</t>
- <t>Replaced "minimumCanEqual" attribute with "exclusiveMinimum" attribute.</t>
- <t>Replaced "requires" attribute with "dependencies" attribute.</t>
- <t>Moved "contentEncoding" attribute to hyper schema.</t>
- <t>Added "additionalItems" attribute.</t>
- <t>Added "id" attribute.</t>
- <t>Switched self-referencing variable substitution from "-this" to "@" to align with reserved characters in URI template.</t>
- <t>Added "patternProperties" attribute.</t>
- <t>Schema URIs are now namespace versioned.</t>
- <t>Added "$ref" and "$schema" attributes.</t>
- </list>
- </t>
-
- <t hangText="draft-02">
- <list style="symbols">
- <t>Replaced "maxDecimal" attribute with "divisibleBy" attribute.</t>
- <t>Added slash-delimited fragment resolution protocol and made it the default.</t>
- <t>Added language about using links outside of schemas by referencing its normative URI.</t>
- <t>Added "uniqueItems" attribute.</t>
- <t>Added "targetSchema" attribute to link description object.</t>
- </list>
- </t>
-
- <t hangText="draft-01">
- <list style="symbols">
- <t>Fixed category and updates from template.</t>
- </list>
- </t>
-
- <t hangText="draft-00">
- <list style="symbols">
- <t>Initial draft.</t>
- </list>
- </t>
- </list>
- </t>
- </section>
- </back>
-</rfc>
diff --git a/node_modules/json-schema/lib/links.js b/node_modules/json-schema/lib/links.js
deleted file mode 100644
index 8a87f02..0000000
--- a/node_modules/json-schema/lib/links.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * JSON Schema link handler
- * Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
- * Licensed under the MIT (MIT-LICENSE.txt) license.
- */
-(function (root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define([], function () {
- return factory();
- });
- } else if (typeof module === 'object' && module.exports) {
- // Node. Does not work with strict CommonJS, but
- // only CommonJS-like environments that support module.exports,
- // like Node.
- module.exports = factory();
- } else {
- // Browser globals
- root.jsonSchemaLinks = factory();
- }
-}(this, function () {// setup primitive classes to be JSON Schema types
-var exports = {};
-exports.cacheLinks = true;
-exports.getLink = function(relation, instance, schema){
- // gets the URI of the link for the given relation based on the instance and schema
- // for example:
- // getLink(
- // "brother",
- // {"brother_id":33},
- // {links:[{rel:"brother", href:"Brother/{brother_id}"}]}) ->
- // "Brother/33"
- var links = schema.__linkTemplates;
- if(!links){
- links = {};
- var schemaLinks = schema.links;
- if(schemaLinks && schemaLinks instanceof Array){
- schemaLinks.forEach(function(link){
- /* // TODO: allow for multiple same-name relations
- if(links[link.rel]){
- if(!(links[link.rel] instanceof Array)){
- links[link.rel] = [links[link.rel]];
- }
- }*/
- links[link.rel] = link.href;
- });
- }
- if(exports.cacheLinks){
- schema.__linkTemplates = links;
- }
- }
- var linkTemplate = links[relation];
- return linkTemplate && exports.substitute(linkTemplate, instance);
-};
-
-exports.substitute = function(linkTemplate, instance){
- return linkTemplate.replace(/\{([^\}]*)\}/g, function(t, property){
- var value = instance[decodeURIComponent(property)];
- if(value instanceof Array){
- // the value is an array, it should produce a URI like /Table/(4,5,8) and store.get() should handle that as an array of values
- return '(' + value.join(',') + ')';
- }
- return value;
- });
-};
-return exports;
-})); \ No newline at end of file
diff --git a/node_modules/json-schema/lib/validate.js b/node_modules/json-schema/lib/validate.js
deleted file mode 100644
index e4dc151..0000000
--- a/node_modules/json-schema/lib/validate.js
+++ /dev/null
@@ -1,273 +0,0 @@
-/**
- * JSONSchema Validator - Validates JavaScript objects using JSON Schemas
- * (http://www.json.com/json-schema-proposal/)
- *
- * Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
- * Licensed under the MIT (MIT-LICENSE.txt) license.
-To use the validator call the validate function with an instance object and an optional schema object.
-If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
-that schema will be used to validate and the schema parameter is not necessary (if both exist,
-both validations will occur).
-The validate method will return an array of validation errors. If there are no errors, then an
-empty list will be returned. A validation error will have two properties:
-"property" which indicates which property had the error
-"message" which indicates what the error was
- */
-(function (root, factory) {
- if (typeof define === 'function' && define.amd) {
- // AMD. Register as an anonymous module.
- define([], function () {
- return factory();
- });
- } else if (typeof module === 'object' && module.exports) {
- // Node. Does not work with strict CommonJS, but
- // only CommonJS-like environments that support module.exports,
- // like Node.
- module.exports = factory();
- } else {
- // Browser globals
- root.jsonSchema = factory();
- }
-}(this, function () {// setup primitive classes to be JSON Schema types
-var exports = validate
-exports.Integer = {type:"integer"};
-var primitiveConstructors = {
- String: String,
- Boolean: Boolean,
- Number: Number,
- Object: Object,
- Array: Array,
- Date: Date
-}
-exports.validate = validate;
-function validate(/*Any*/instance,/*Object*/schema) {
- // Summary:
- // To use the validator call JSONSchema.validate with an instance object and an optional schema object.
- // If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
- // that schema will be used to validate and the schema parameter is not necessary (if both exist,
- // both validations will occur).
- // The validate method will return an object with two properties:
- // valid: A boolean indicating if the instance is valid by the schema
- // errors: An array of validation errors. If there are no errors, then an
- // empty list will be returned. A validation error will have two properties:
- // property: which indicates which property had the error
- // message: which indicates what the error was
- //
- return validate(instance, schema, {changing: false});//, coerce: false, existingOnly: false});
- };
-exports.checkPropertyChange = function(/*Any*/value,/*Object*/schema, /*String*/property) {
- // Summary:
- // The checkPropertyChange method will check to see if an value can legally be in property with the given schema
- // This is slightly different than the validate method in that it will fail if the schema is readonly and it will
- // not check for self-validation, it is assumed that the passed in value is already internally valid.
- // The checkPropertyChange method will return the same object type as validate, see JSONSchema.validate for
- // information.
- //
- return validate(value, schema, {changing: property || "property"});
- };
-var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*Object*/options) {
-
- if (!options) options = {};
- var _changing = options.changing;
-
- function getType(schema){
- return schema.type || (primitiveConstructors[schema.name] == schema && schema.name.toLowerCase());
- }
- var errors = [];
- // validate a value against a property definition
- function checkProp(value, schema, path,i){
-
- var l;
- path += path ? typeof i == 'number' ? '[' + i + ']' : typeof i == 'undefined' ? '' : '.' + i : i;
- function addError(message){
- errors.push({property:path,message:message});
- }
-
- if((typeof schema != 'object' || schema instanceof Array) && (path || typeof schema != 'function') && !(schema && getType(schema))){
- if(typeof schema == 'function'){
- if(!(value instanceof schema)){
- addError("is not an instance of the class/constructor " + schema.name);
- }
- }else if(schema){
- addError("Invalid schema/property definition " + schema);
- }
- return null;
- }
- if(_changing && schema.readonly){
- addError("is a readonly field, it can not be changed");
- }
- if(schema['extends']){ // if it extends another schema, it must pass that schema as well
- checkProp(value,schema['extends'],path,i);
- }
- // validate a value against a type definition
- function checkType(type,value){
- if(type){
- if(typeof type == 'string' && type != 'any' &&
- (type == 'null' ? value !== null : typeof value != type) &&
- !(value instanceof Array && type == 'array') &&
- !(value instanceof Date && type == 'date') &&
- !(type == 'integer' && value%1===0)){
- return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}];
- }
- if(type instanceof Array){
- var unionErrors=[];
- for(var j = 0; j < type.length; j++){ // a union type
- if(!(unionErrors=checkType(type[j],value)).length){
- break;
- }
- }
- if(unionErrors.length){
- return unionErrors;
- }
- }else if(typeof type == 'object'){
- var priorErrors = errors;
- errors = [];
- checkProp(value,type,path);
- var theseErrors = errors;
- errors = priorErrors;
- return theseErrors;
- }
- }
- return [];
- }
- if(value === undefined){
- if(schema.required){
- addError("is missing and it is required");
- }
- }else{
- errors = errors.concat(checkType(getType(schema),value));
- if(schema.disallow && !checkType(schema.disallow,value).length){
- addError(" disallowed value was matched");
- }
- if(value !== null){
- if(value instanceof Array){
- if(schema.items){
- var itemsIsArray = schema.items instanceof Array;
- var propDef = schema.items;
- for (i = 0, l = value.length; i < l; i += 1) {
- if (itemsIsArray)
- propDef = schema.items[i];
- if (options.coerce)
- value[i] = options.coerce(value[i], propDef);
- errors.concat(checkProp(value[i],propDef,path,i));
- }
- }
- if(schema.minItems && value.length < schema.minItems){
- addError("There must be a minimum of " + schema.minItems + " in the array");
- }
- if(schema.maxItems && value.length > schema.maxItems){
- addError("There must be a maximum of " + schema.maxItems + " in the array");
- }
- }else if(schema.properties || schema.additionalProperties){
- errors.concat(checkObj(value, schema.properties, path, schema.additionalProperties));
- }
- if(schema.pattern && typeof value == 'string' && !value.match(schema.pattern)){
- addError("does not match the regex pattern " + schema.pattern);
- }
- if(schema.maxLength && typeof value == 'string' && value.length > schema.maxLength){
- addError("may only be " + schema.maxLength + " characters long");
- }
- if(schema.minLength && typeof value == 'string' && value.length < schema.minLength){
- addError("must be at least " + schema.minLength + " characters long");
- }
- if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum &&
- schema.minimum > value){
- addError("must have a minimum value of " + schema.minimum);
- }
- if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum &&
- schema.maximum < value){
- addError("must have a maximum value of " + schema.maximum);
- }
- if(schema['enum']){
- var enumer = schema['enum'];
- l = enumer.length;
- var found;
- for(var j = 0; j < l; j++){
- if(enumer[j]===value){
- found=1;
- break;
- }
- }
- if(!found){
- addError("does not have a value in the enumeration " + enumer.join(", "));
- }
- }
- if(typeof schema.maxDecimal == 'number' &&
- (value.toString().match(new RegExp("\\.[0-9]{" + (schema.maxDecimal + 1) + ",}")))){
- addError("may only have " + schema.maxDecimal + " digits of decimal places");
- }
- }
- }
- return null;
- }
- // validate an object against a schema
- function checkObj(instance,objTypeDef,path,additionalProp){
-
- if(typeof objTypeDef =='object'){
- if(typeof instance != 'object' || instance instanceof Array){
- errors.push({property:path,message:"an object is required"});
- }
-
- for(var i in objTypeDef){
- if(objTypeDef.hasOwnProperty(i)){
- var value = instance[i];
- // skip _not_ specified properties
- if (value === undefined && options.existingOnly) continue;
- var propDef = objTypeDef[i];
- // set default
- if(value === undefined && propDef["default"]){
- value = instance[i] = propDef["default"];
- }
- if(options.coerce && i in instance){
- value = instance[i] = options.coerce(value, propDef);
- }
- checkProp(value,propDef,path,i);
- }
- }
- }
- for(i in instance){
- if(instance.hasOwnProperty(i) && !(i.charAt(0) == '_' && i.charAt(1) == '_') && objTypeDef && !objTypeDef[i] && additionalProp===false){
- if (options.filter) {
- delete instance[i];
- continue;
- } else {
- errors.push({property:path,message:(typeof value) + "The property " + i +
- " is not defined in the schema and the schema does not allow additional properties"});
- }
- }
- var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires;
- if(requires && !(requires in instance)){
- errors.push({property:path,message:"the presence of the property " + i + " requires that " + requires + " also be present"});
- }
- value = instance[i];
- if(additionalProp && (!(objTypeDef && typeof objTypeDef == 'object') || !(i in objTypeDef))){
- if(options.coerce){
- value = instance[i] = options.coerce(value, additionalProp);
- }
- checkProp(value,additionalProp,path,i);
- }
- if(!_changing && value && value.$schema){
- errors = errors.concat(checkProp(value,value.$schema,path,i));
- }
- }
- return errors;
- }
- if(schema){
- checkProp(instance,schema,'',_changing || '');
- }
- if(!_changing && instance && instance.$schema){
- checkProp(instance,instance.$schema,'','');
- }
- return {valid:!errors.length,errors:errors};
-};
-exports.mustBeValid = function(result){
- // summary:
- // This checks to ensure that the result is valid and will throw an appropriate error message if it is not
- // result: the result returned from checkPropertyChange or validate
- if(!result.valid){
- throw new TypeError(result.errors.map(function(error){return "for property " + error.property + ': ' + error.message;}).join(", \n"));
- }
-}
-
-return exports;
-}));
diff --git a/node_modules/json-schema/package.json b/node_modules/json-schema/package.json
deleted file mode 100644
index 3c5c81f..0000000
--- a/node_modules/json-schema/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "json-schema@0.2.3",
- "_id": "json-schema@0.2.3",
- "_inBundle": false,
- "_integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
- "_location": "/json-schema",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "json-schema@0.2.3",
- "name": "json-schema",
- "escapedName": "json-schema",
- "rawSpec": "0.2.3",
- "saveSpec": null,
- "fetchSpec": "0.2.3"
- },
- "_requiredBy": [
- "/jsprim"
- ],
- "_resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
- "_shasum": "b480c892e59a2f05954ce727bd3f2a4e882f9e13",
- "_spec": "json-schema@0.2.3",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/jsprim",
- "author": {
- "name": "Kris Zyp"
- },
- "bugs": {
- "url": "https://github.com/kriszyp/json-schema/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "JSON Schema validation and specifications",
- "devDependencies": {
- "vows": "*"
- },
- "directories": {
- "lib": "./lib"
- },
- "homepage": "https://github.com/kriszyp/json-schema#readme",
- "keywords": [
- "json",
- "schema"
- ],
- "licenses": [
- {
- "type": "AFLv2.1",
- "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L43"
- },
- {
- "type": "BSD",
- "url": "http://trac.dojotoolkit.org/browser/dojo/trunk/LICENSE#L13"
- }
- ],
- "main": "./lib/validate.js",
- "maintainers": [
- {
- "name": "Kris Zyp",
- "email": "kriszyp@gmail.com"
- }
- ],
- "name": "json-schema",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/kriszyp/json-schema.git"
- },
- "scripts": {
- "test": "echo TESTS DISABLED vows --spec test/*.js"
- },
- "version": "0.2.3"
-}
diff --git a/node_modules/json-schema/test/tests.js b/node_modules/json-schema/test/tests.js
deleted file mode 100644
index 2938aea..0000000
--- a/node_modules/json-schema/test/tests.js
+++ /dev/null
@@ -1,95 +0,0 @@
-var assert = require('assert');
-var vows = require('vows');
-var path = require('path');
-var fs = require('fs');
-
-var validate = require('../lib/validate').validate;
-
-
-var revision = 'draft-03';
-var schemaRoot = path.join(__dirname, '..', revision);
-var schemaNames = ['schema', 'hyper-schema', 'links', 'json-ref' ];
-var schemas = {};
-
-schemaNames.forEach(function(name) {
- var file = path.join(schemaRoot, name);
- schemas[name] = loadSchema(file);
-});
-
-schemaNames.forEach(function(name) {
- var s, n = name+'-nsd', f = path.join(schemaRoot, name);
- schemas[n] = loadSchema(f);
- s = schemas[n];
- delete s['$schema'];
-});
-
-function loadSchema(path) {
- var data = fs.readFileSync(path, 'utf-8');
- var schema = JSON.parse(data);
- return schema;
-}
-
-function resultIsValid() {
- return function(result) {
- assert.isObject(result);
- //assert.isBoolean(result.valid);
- assert.equal(typeof(result.valid), 'boolean');
- assert.isArray(result.errors);
- for (var i = 0; i < result.errors.length; i++) {
- assert.notEqual(result.errors[i], null, 'errors['+i+'] is null');
- }
- }
-}
-
-function assertValidates(doc, schema) {
- var context = {};
-
- context[': validate('+doc+', '+schema+')'] = {
- topic: validate(schemas[doc], schemas[schema]),
- 'returns valid result': resultIsValid(),
- 'with valid=true': function(result) { assert.equal(result.valid, true); },
- 'and no errors': function(result) {
- // XXX work-around for bug in vows: [null] chokes it
- if (result.errors[0] == null) assert.fail('(errors contains null)');
- assert.length(result.errors, 0);
- }
- };
-
- return context;
-}
-
-function assertSelfValidates(doc) {
- var context = {};
-
- context[': validate('+doc+')'] = {
- topic: validate(schemas[doc]),
- 'returns valid result': resultIsValid(),
- 'with valid=true': function(result) { assert.equal(result.valid, true); },
- 'and no errors': function(result) { assert.length(result.errors, 0); }
- };
-
- return context;
-}
-
-var suite = vows.describe('JSON Schema').addBatch({
- 'Core-NSD self-validates': assertSelfValidates('schema-nsd'),
- 'Core-NSD/Core-NSD': assertValidates('schema-nsd', 'schema-nsd'),
- 'Core-NSD/Core': assertValidates('schema-nsd', 'schema'),
-
- 'Core self-validates': assertSelfValidates('schema'),
- 'Core/Core': assertValidates('schema', 'schema'),
-
- 'Hyper-NSD self-validates': assertSelfValidates('hyper-schema-nsd'),
- 'Hyper self-validates': assertSelfValidates('hyper-schema'),
- 'Hyper/Hyper': assertValidates('hyper-schema', 'hyper-schema'),
- 'Hyper/Core': assertValidates('hyper-schema', 'schema'),
-
- 'Links-NSD self-validates': assertSelfValidates('links-nsd'),
- 'Links self-validates': assertSelfValidates('links'),
- 'Links/Hyper': assertValidates('links', 'hyper-schema'),
- 'Links/Core': assertValidates('links', 'schema'),
-
- 'Json-Ref self-validates': assertSelfValidates('json-ref'),
- 'Json-Ref/Hyper': assertValidates('json-ref', 'hyper-schema'),
- 'Json-Ref/Core': assertValidates('json-ref', 'schema')
-}).export(module);
diff --git a/node_modules/json-stringify-safe/.npmignore b/node_modules/json-stringify-safe/.npmignore
deleted file mode 100644
index 17d6b36..0000000
--- a/node_modules/json-stringify-safe/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-/*.tgz
diff --git a/node_modules/json-stringify-safe/CHANGELOG.md b/node_modules/json-stringify-safe/CHANGELOG.md
deleted file mode 100644
index 42bcb60..0000000
--- a/node_modules/json-stringify-safe/CHANGELOG.md
+++ /dev/null
@@ -1,14 +0,0 @@
-## Unreleased
-- Fixes stringify to only take ancestors into account when checking
- circularity.
- It previously assumed every visited object was circular which led to [false
- positives][issue9].
- Uses the tiny serializer I wrote for [Must.js][must] a year and a half ago.
-- Fixes calling the `replacer` function in the proper context (`thisArg`).
-- Fixes calling the `cycleReplacer` function in the proper context (`thisArg`).
-- Speeds serializing by a factor of
- Big-O(h-my-god-it-linearly-searched-every-object) it had ever seen. Searching
- only the ancestors for a circular references speeds up things considerably.
-
-[must]: https://github.com/moll/js-must
-[issue9]: https://github.com/isaacs/json-stringify-safe/issues/9
diff --git a/node_modules/json-stringify-safe/LICENSE b/node_modules/json-stringify-safe/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/json-stringify-safe/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/json-stringify-safe/Makefile b/node_modules/json-stringify-safe/Makefile
deleted file mode 100644
index 36088c7..0000000
--- a/node_modules/json-stringify-safe/Makefile
+++ /dev/null
@@ -1,35 +0,0 @@
-NODE_OPTS =
-TEST_OPTS =
-
-love:
- @echo "Feel like makin' love."
-
-test:
- @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot $(TEST_OPTS)
-
-spec:
- @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec $(TEST_OPTS)
-
-autotest:
- @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R dot --watch $(TEST_OPTS)
-
-autospec:
- @node $(NODE_OPTS) ./node_modules/.bin/_mocha -R spec --watch $(TEST_OPTS)
-
-pack:
- @file=$$(npm pack); echo "$$file"; tar tf "$$file"
-
-publish:
- npm publish
-
-tag:
- git tag "v$$(node -e 'console.log(require("./package").version)')"
-
-clean:
- rm -f *.tgz
- npm prune --production
-
-.PHONY: love
-.PHONY: test spec autotest autospec
-.PHONY: pack publish tag
-.PHONY: clean
diff --git a/node_modules/json-stringify-safe/README.md b/node_modules/json-stringify-safe/README.md
deleted file mode 100644
index a11f302..0000000
--- a/node_modules/json-stringify-safe/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# json-stringify-safe
-
-Like JSON.stringify, but doesn't throw on circular references.
-
-## Usage
-
-Takes the same arguments as `JSON.stringify`.
-
-```javascript
-var stringify = require('json-stringify-safe');
-var circularObj = {};
-circularObj.circularRef = circularObj;
-circularObj.list = [ circularObj, circularObj ];
-console.log(stringify(circularObj, null, 2));
-```
-
-Output:
-
-```json
-{
- "circularRef": "[Circular]",
- "list": [
- "[Circular]",
- "[Circular]"
- ]
-}
-```
-
-## Details
-
-```
-stringify(obj, serializer, indent, decycler)
-```
-
-The first three arguments are the same as to JSON.stringify. The last
-is an argument that's only used when the object has been seen already.
-
-The default `decycler` function returns the string `'[Circular]'`.
-If, for example, you pass in `function(k,v){}` (return nothing) then it
-will prune cycles. If you pass in `function(k,v){ return {foo: 'bar'}}`,
-then cyclical objects will always be represented as `{"foo":"bar"}` in
-the result.
-
-```
-stringify.getSerialize(serializer, decycler)
-```
-
-Returns a serializer that can be used elsewhere. This is the actual
-function that's passed to JSON.stringify.
-
-**Note** that the function returned from `getSerialize` is stateful for now, so
-do **not** use it more than once.
diff --git a/node_modules/json-stringify-safe/package.json b/node_modules/json-stringify-safe/package.json
deleted file mode 100644
index 5b8e037..0000000
--- a/node_modules/json-stringify-safe/package.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "_from": "json-stringify-safe@~5.0.1",
- "_id": "json-stringify-safe@5.0.1",
- "_inBundle": false,
- "_integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
- "_location": "/json-stringify-safe",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "json-stringify-safe@~5.0.1",
- "name": "json-stringify-safe",
- "escapedName": "json-stringify-safe",
- "rawSpec": "~5.0.1",
- "saveSpec": null,
- "fetchSpec": "~5.0.1"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "_shasum": "1296a2d58fd45f19a0f6ce01d65701e2c735b6eb",
- "_spec": "json-stringify-safe@~5.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me"
- },
- "bugs": {
- "url": "https://github.com/isaacs/json-stringify-safe/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Andri Möll",
- "email": "andri@dot.ee",
- "url": "http://themoll.com"
- }
- ],
- "deprecated": false,
- "description": "Like JSON.stringify, but doesn't blow up on circular refs.",
- "devDependencies": {
- "mocha": ">= 2.1.0 < 3",
- "must": ">= 0.12 < 0.13",
- "sinon": ">= 1.12.2 < 2"
- },
- "homepage": "https://github.com/isaacs/json-stringify-safe",
- "keywords": [
- "json",
- "stringify",
- "circular",
- "safe"
- ],
- "license": "ISC",
- "main": "stringify.js",
- "name": "json-stringify-safe",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/json-stringify-safe.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "5.0.1"
-}
diff --git a/node_modules/json-stringify-safe/stringify.js b/node_modules/json-stringify-safe/stringify.js
deleted file mode 100644
index 124a452..0000000
--- a/node_modules/json-stringify-safe/stringify.js
+++ /dev/null
@@ -1,27 +0,0 @@
-exports = module.exports = stringify
-exports.getSerialize = serializer
-
-function stringify(obj, replacer, spaces, cycleReplacer) {
- return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)
-}
-
-function serializer(replacer, cycleReplacer) {
- var stack = [], keys = []
-
- if (cycleReplacer == null) cycleReplacer = function(key, value) {
- if (stack[0] === value) return "[Circular ~]"
- return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"
- }
-
- return function(key, value) {
- if (stack.length > 0) {
- var thisPos = stack.indexOf(this)
- ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)
- ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)
- if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)
- }
- else stack.push(value)
-
- return replacer == null ? value : replacer.call(this, key, value)
- }
-}
diff --git a/node_modules/json-stringify-safe/test/mocha.opts b/node_modules/json-stringify-safe/test/mocha.opts
deleted file mode 100644
index 2544e58..0000000
--- a/node_modules/json-stringify-safe/test/mocha.opts
+++ /dev/null
@@ -1,2 +0,0 @@
---recursive
---require must
diff --git a/node_modules/json-stringify-safe/test/stringify_test.js b/node_modules/json-stringify-safe/test/stringify_test.js
deleted file mode 100644
index 5b32583..0000000
--- a/node_modules/json-stringify-safe/test/stringify_test.js
+++ /dev/null
@@ -1,246 +0,0 @@
-var Sinon = require("sinon")
-var stringify = require("..")
-function jsonify(obj) { return JSON.stringify(obj, null, 2) }
-
-describe("Stringify", function() {
- it("must stringify circular objects", function() {
- var obj = {name: "Alice"}
- obj.self = obj
- var json = stringify(obj, null, 2)
- json.must.eql(jsonify({name: "Alice", self: "[Circular ~]"}))
- })
-
- it("must stringify circular objects with intermediaries", function() {
- var obj = {name: "Alice"}
- obj.identity = {self: obj}
- var json = stringify(obj, null, 2)
- json.must.eql(jsonify({name: "Alice", identity: {self: "[Circular ~]"}}))
- })
-
- it("must stringify circular objects deeper", function() {
- var obj = {name: "Alice", child: {name: "Bob"}}
- obj.child.self = obj.child
-
- stringify(obj, null, 2).must.eql(jsonify({
- name: "Alice",
- child: {name: "Bob", self: "[Circular ~.child]"}
- }))
- })
-
- it("must stringify circular objects deeper with intermediaries", function() {
- var obj = {name: "Alice", child: {name: "Bob"}}
- obj.child.identity = {self: obj.child}
-
- stringify(obj, null, 2).must.eql(jsonify({
- name: "Alice",
- child: {name: "Bob", identity: {self: "[Circular ~.child]"}}
- }))
- })
-
- it("must stringify circular objects in an array", function() {
- var obj = {name: "Alice"}
- obj.self = [obj, obj]
-
- stringify(obj, null, 2).must.eql(jsonify({
- name: "Alice", self: ["[Circular ~]", "[Circular ~]"]
- }))
- })
-
- it("must stringify circular objects deeper in an array", function() {
- var obj = {name: "Alice", children: [{name: "Bob"}, {name: "Eve"}]}
- obj.children[0].self = obj.children[0]
- obj.children[1].self = obj.children[1]
-
- stringify(obj, null, 2).must.eql(jsonify({
- name: "Alice",
- children: [
- {name: "Bob", self: "[Circular ~.children.0]"},
- {name: "Eve", self: "[Circular ~.children.1]"}
- ]
- }))
- })
-
- it("must stringify circular arrays", function() {
- var obj = []
- obj.push(obj)
- obj.push(obj)
- var json = stringify(obj, null, 2)
- json.must.eql(jsonify(["[Circular ~]", "[Circular ~]"]))
- })
-
- it("must stringify circular arrays with intermediaries", function() {
- var obj = []
- obj.push({name: "Alice", self: obj})
- obj.push({name: "Bob", self: obj})
-
- stringify(obj, null, 2).must.eql(jsonify([
- {name: "Alice", self: "[Circular ~]"},
- {name: "Bob", self: "[Circular ~]"}
- ]))
- })
-
- it("must stringify repeated objects in objects", function() {
- var obj = {}
- var alice = {name: "Alice"}
- obj.alice1 = alice
- obj.alice2 = alice
-
- stringify(obj, null, 2).must.eql(jsonify({
- alice1: {name: "Alice"},
- alice2: {name: "Alice"}
- }))
- })
-
- it("must stringify repeated objects in arrays", function() {
- var alice = {name: "Alice"}
- var obj = [alice, alice]
- var json = stringify(obj, null, 2)
- json.must.eql(jsonify([{name: "Alice"}, {name: "Alice"}]))
- })
-
- it("must call given decycler and use its output", function() {
- var obj = {}
- obj.a = obj
- obj.b = obj
-
- var decycle = Sinon.spy(function() { return decycle.callCount })
- var json = stringify(obj, null, 2, decycle)
- json.must.eql(jsonify({a: 1, b: 2}, null, 2))
-
- decycle.callCount.must.equal(2)
- decycle.thisValues[0].must.equal(obj)
- decycle.args[0][0].must.equal("a")
- decycle.args[0][1].must.equal(obj)
- decycle.thisValues[1].must.equal(obj)
- decycle.args[1][0].must.equal("b")
- decycle.args[1][1].must.equal(obj)
- })
-
- it("must call replacer and use its output", function() {
- var obj = {name: "Alice", child: {name: "Bob"}}
-
- var replacer = Sinon.spy(bangString)
- var json = stringify(obj, replacer, 2)
- json.must.eql(jsonify({name: "Alice!", child: {name: "Bob!"}}))
-
- replacer.callCount.must.equal(4)
- replacer.args[0][0].must.equal("")
- replacer.args[0][1].must.equal(obj)
- replacer.thisValues[1].must.equal(obj)
- replacer.args[1][0].must.equal("name")
- replacer.args[1][1].must.equal("Alice")
- replacer.thisValues[2].must.equal(obj)
- replacer.args[2][0].must.equal("child")
- replacer.args[2][1].must.equal(obj.child)
- replacer.thisValues[3].must.equal(obj.child)
- replacer.args[3][0].must.equal("name")
- replacer.args[3][1].must.equal("Bob")
- })
-
- it("must call replacer after describing circular references", function() {
- var obj = {name: "Alice"}
- obj.self = obj
-
- var replacer = Sinon.spy(bangString)
- var json = stringify(obj, replacer, 2)
- json.must.eql(jsonify({name: "Alice!", self: "[Circular ~]!"}))
-
- replacer.callCount.must.equal(3)
- replacer.args[0][0].must.equal("")
- replacer.args[0][1].must.equal(obj)
- replacer.thisValues[1].must.equal(obj)
- replacer.args[1][0].must.equal("name")
- replacer.args[1][1].must.equal("Alice")
- replacer.thisValues[2].must.equal(obj)
- replacer.args[2][0].must.equal("self")
- replacer.args[2][1].must.equal("[Circular ~]")
- })
-
- it("must call given decycler and use its output for nested objects",
- function() {
- var obj = {}
- obj.a = obj
- obj.b = {self: obj}
-
- var decycle = Sinon.spy(function() { return decycle.callCount })
- var json = stringify(obj, null, 2, decycle)
- json.must.eql(jsonify({a: 1, b: {self: 2}}))
-
- decycle.callCount.must.equal(2)
- decycle.args[0][0].must.equal("a")
- decycle.args[0][1].must.equal(obj)
- decycle.args[1][0].must.equal("self")
- decycle.args[1][1].must.equal(obj)
- })
-
- it("must use decycler's output when it returned null", function() {
- var obj = {a: "b"}
- obj.self = obj
- obj.selves = [obj, obj]
-
- function decycle() { return null }
- stringify(obj, null, 2, decycle).must.eql(jsonify({
- a: "b",
- self: null,
- selves: [null, null]
- }))
- })
-
- it("must use decycler's output when it returned undefined", function() {
- var obj = {a: "b"}
- obj.self = obj
- obj.selves = [obj, obj]
-
- function decycle() {}
- stringify(obj, null, 2, decycle).must.eql(jsonify({
- a: "b",
- selves: [null, null]
- }))
- })
-
- it("must throw given a decycler that returns a cycle", function() {
- var obj = {}
- obj.self = obj
- var err
- function identity(key, value) { return value }
- try { stringify(obj, null, 2, identity) } catch (ex) { err = ex }
- err.must.be.an.instanceof(TypeError)
- })
-
- describe(".getSerialize", function() {
- it("must stringify circular objects", function() {
- var obj = {a: "b"}
- obj.circularRef = obj
- obj.list = [obj, obj]
-
- var json = JSON.stringify(obj, stringify.getSerialize(), 2)
- json.must.eql(jsonify({
- "a": "b",
- "circularRef": "[Circular ~]",
- "list": ["[Circular ~]", "[Circular ~]"]
- }))
- })
-
- // This is the behavior as of Mar 3, 2015.
- // The serializer function keeps state inside the returned function and
- // so far I'm not sure how to not do that. JSON.stringify's replacer is not
- // called _after_ serialization.
- xit("must return a function that could be called twice", function() {
- var obj = {name: "Alice"}
- obj.self = obj
-
- var json
- var serializer = stringify.getSerialize()
-
- json = JSON.stringify(obj, serializer, 2)
- json.must.eql(jsonify({name: "Alice", self: "[Circular ~]"}))
-
- json = JSON.stringify(obj, serializer, 2)
- json.must.eql(jsonify({name: "Alice", self: "[Circular ~]"}))
- })
- })
-})
-
-function bangString(key, value) {
- return typeof value == "string" ? value + "!" : value
-}
diff --git a/node_modules/jsprim/CHANGES.md b/node_modules/jsprim/CHANGES.md
deleted file mode 100644
index c52d39d..0000000
--- a/node_modules/jsprim/CHANGES.md
+++ /dev/null
@@ -1,49 +0,0 @@
-# Changelog
-
-## not yet released
-
-None yet.
-
-## v1.4.1 (2017-08-02)
-
-* #21 Update verror dep
-* #22 Update extsprintf dependency
-* #23 update contribution guidelines
-
-## v1.4.0 (2017-03-13)
-
-* #7 Add parseInteger() function for safer number parsing
-
-## v1.3.1 (2016-09-12)
-
-* #13 Incompatible with webpack
-
-## v1.3.0 (2016-06-22)
-
-* #14 add safer version of hasOwnProperty()
-* #15 forEachKey() should ignore inherited properties
-
-## v1.2.2 (2015-10-15)
-
-* #11 NPM package shouldn't include any code that does `require('JSV')`
-* #12 jsl.node.conf missing definition for "module"
-
-## v1.2.1 (2015-10-14)
-
-* #8 odd date parsing behaviour
-
-## v1.2.0 (2015-10-13)
-
-* #9 want function for returning RFC1123 dates
-
-## v1.1.0 (2015-09-02)
-
-* #6 a new suite of hrtime manipulation routines: `hrtimeAdd()`,
- `hrtimeAccum()`, `hrtimeNanosec()`, `hrtimeMicrosec()` and
- `hrtimeMillisec()`.
-
-## v1.0.0 (2015-09-01)
-
-First tracked release. Includes everything in previous releases, plus:
-
-* #4 want function for merging objects
diff --git a/node_modules/jsprim/CONTRIBUTING.md b/node_modules/jsprim/CONTRIBUTING.md
deleted file mode 100644
index 750cef8..0000000
--- a/node_modules/jsprim/CONTRIBUTING.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Contributing
-
-This repository uses [cr.joyent.us](https://cr.joyent.us) (Gerrit) for new
-changes. Anyone can submit changes. To get started, see the [cr.joyent.us user
-guide](https://github.com/joyent/joyent-gerrit/blob/master/docs/user/README.md).
-This repo does not use GitHub pull requests.
-
-See the [Joyent Engineering
-Guidelines](https://github.com/joyent/eng/blob/master/docs/index.md) for general
-best practices expected in this repository.
-
-Contributions should be "make prepush" clean. The "prepush" target runs the
-"check" target, which requires these separate tools:
-
-* https://github.com/davepacheco/jsstyle
-* https://github.com/davepacheco/javascriptlint
-
-If you're changing something non-trivial or user-facing, you may want to submit
-an issue first.
diff --git a/node_modules/jsprim/LICENSE b/node_modules/jsprim/LICENSE
deleted file mode 100644
index cbc0bb3..0000000
--- a/node_modules/jsprim/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2012, Joyent, Inc. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE
diff --git a/node_modules/jsprim/README.md b/node_modules/jsprim/README.md
deleted file mode 100644
index b3f28a4..0000000
--- a/node_modules/jsprim/README.md
+++ /dev/null
@@ -1,287 +0,0 @@
-# jsprim: utilities for primitive JavaScript types
-
-This module provides miscellaneous facilities for working with strings,
-numbers, dates, and objects and arrays of these basic types.
-
-
-### deepCopy(obj)
-
-Creates a deep copy of a primitive type, object, or array of primitive types.
-
-
-### deepEqual(obj1, obj2)
-
-Returns whether two objects are equal.
-
-
-### isEmpty(obj)
-
-Returns true if the given object has no properties and false otherwise. This
-is O(1) (unlike `Object.keys(obj).length === 0`, which is O(N)).
-
-### hasKey(obj, key)
-
-Returns true if the given object has an enumerable, non-inherited property
-called `key`. [For information on enumerability and ownership of properties, see
-the MDN
-documentation.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties)
-
-### forEachKey(obj, callback)
-
-Like Array.forEach, but iterates enumerable, owned properties of an object
-rather than elements of an array. Equivalent to:
-
- for (var key in obj) {
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
- callback(key, obj[key]);
- }
- }
-
-
-### flattenObject(obj, depth)
-
-Flattens an object up to a given level of nesting, returning an array of arrays
-of length "depth + 1", where the first "depth" elements correspond to flattened
-columns and the last element contains the remaining object . For example:
-
- flattenObject({
- 'I': {
- 'A': {
- 'i': {
- 'datum1': [ 1, 2 ],
- 'datum2': [ 3, 4 ]
- },
- 'ii': {
- 'datum1': [ 3, 4 ]
- }
- },
- 'B': {
- 'i': {
- 'datum1': [ 5, 6 ]
- },
- 'ii': {
- 'datum1': [ 7, 8 ],
- 'datum2': [ 3, 4 ],
- },
- 'iii': {
- }
- }
- },
- 'II': {
- 'A': {
- 'i': {
- 'datum1': [ 1, 2 ],
- 'datum2': [ 3, 4 ]
- }
- }
- }
- }, 3)
-
-becomes:
-
- [
- [ 'I', 'A', 'i', { 'datum1': [ 1, 2 ], 'datum2': [ 3, 4 ] } ],
- [ 'I', 'A', 'ii', { 'datum1': [ 3, 4 ] } ],
- [ 'I', 'B', 'i', { 'datum1': [ 5, 6 ] } ],
- [ 'I', 'B', 'ii', { 'datum1': [ 7, 8 ], 'datum2': [ 3, 4 ] } ],
- [ 'I', 'B', 'iii', {} ],
- [ 'II', 'A', 'i', { 'datum1': [ 1, 2 ], 'datum2': [ 3, 4 ] } ]
- ]
-
-This function is strict: "depth" must be a non-negative integer and "obj" must
-be a non-null object with at least "depth" levels of nesting under all keys.
-
-
-### flattenIter(obj, depth, func)
-
-This is similar to `flattenObject` except that instead of returning an array,
-this function invokes `func(entry)` for each `entry` in the array that
-`flattenObject` would return. `flattenIter(obj, depth, func)` is logically
-equivalent to `flattenObject(obj, depth).forEach(func)`. Importantly, this
-version never constructs the full array. Its memory usage is O(depth) rather
-than O(n) (where `n` is the number of flattened elements).
-
-There's another difference between `flattenObject` and `flattenIter` that's
-related to the special case where `depth === 0`. In this case, `flattenObject`
-omits the array wrapping `obj` (which is regrettable).
-
-
-### pluck(obj, key)
-
-Fetch nested property "key" from object "obj", traversing objects as needed.
-For example, `pluck(obj, "foo.bar.baz")` is roughly equivalent to
-`obj.foo.bar.baz`, except that:
-
-1. If traversal fails, the resulting value is undefined, and no error is
- thrown. For example, `pluck({}, "foo.bar")` is just undefined.
-2. If "obj" has property "key" directly (without traversing), the
- corresponding property is returned. For example,
- `pluck({ 'foo.bar': 1 }, 'foo.bar')` is 1, not undefined. This is also
- true recursively, so `pluck({ 'a': { 'foo.bar': 1 } }, 'a.foo.bar')` is
- also 1, not undefined.
-
-
-### randElt(array)
-
-Returns an element from "array" selected uniformly at random. If "array" is
-empty, throws an Error.
-
-
-### startsWith(str, prefix)
-
-Returns true if the given string starts with the given prefix and false
-otherwise.
-
-
-### endsWith(str, suffix)
-
-Returns true if the given string ends with the given suffix and false
-otherwise.
-
-
-### parseInteger(str, options)
-
-Parses the contents of `str` (a string) as an integer. On success, the integer
-value is returned (as a number). On failure, an error is **returned** describing
-why parsing failed.
-
-By default, leading and trailing whitespace characters are not allowed, nor are
-trailing characters that are not part of the numeric representation. This
-behaviour can be toggled by using the options below. The empty string (`''`) is
-not considered valid input. If the return value cannot be precisely represented
-as a number (i.e., is smaller than `Number.MIN_SAFE_INTEGER` or larger than
-`Number.MAX_SAFE_INTEGER`), an error is returned. Additionally, the string
-`'-0'` will be parsed as the integer `0`, instead of as the IEEE floating point
-value `-0`.
-
-This function accepts both upper and lowercase characters for digits, similar to
-`parseInt()`, `Number()`, and [strtol(3C)](https://illumos.org/man/3C/strtol).
-
-The following may be specified in `options`:
-
-Option | Type | Default | Meaning
------------------- | ------- | ------- | ---------------------------
-base | number | 10 | numeric base (radix) to use, in the range 2 to 36
-allowSign | boolean | true | whether to interpret any leading `+` (positive) and `-` (negative) characters
-allowImprecise | boolean | false | whether to accept values that may have lost precision (past `MAX_SAFE_INTEGER` or below `MIN_SAFE_INTEGER`)
-allowPrefix | boolean | false | whether to interpret the prefixes `0b` (base 2), `0o` (base 8), `0t` (base 10), or `0x` (base 16)
-allowTrailing | boolean | false | whether to ignore trailing characters
-trimWhitespace | boolean | false | whether to trim any leading or trailing whitespace/line terminators
-leadingZeroIsOctal | boolean | false | whether a leading zero indicates octal
-
-Note that if `base` is unspecified, and `allowPrefix` or `leadingZeroIsOctal`
-are, then the leading characters can change the default base from 10. If `base`
-is explicitly specified and `allowPrefix` is true, then the prefix will only be
-accepted if it matches the specified base. `base` and `leadingZeroIsOctal`
-cannot be used together.
-
-**Context:** It's tricky to parse integers with JavaScript's built-in facilities
-for several reasons:
-
-- `parseInt()` and `Number()` by default allow the base to be specified in the
- input string by a prefix (e.g., `0x` for hex).
-- `parseInt()` allows trailing nonnumeric characters.
-- `Number(str)` returns 0 when `str` is the empty string (`''`).
-- Both functions return incorrect values when the input string represents a
- valid integer outside the range of integers that can be represented precisely.
- Specifically, `parseInt('9007199254740993')` returns 9007199254740992.
-- Both functions always accept `-` and `+` signs before the digit.
-- Some older JavaScript engines always interpret a leading 0 as indicating
- octal, which can be surprising when parsing input from users who expect a
- leading zero to be insignificant.
-
-While each of these may be desirable in some contexts, there are also times when
-none of them are wanted. `parseInteger()` grants greater control over what
-input's permissible.
-
-### iso8601(date)
-
-Converts a Date object to an ISO8601 date string of the form
-"YYYY-MM-DDTHH:MM:SS.sssZ". This format is not customizable.
-
-
-### parseDateTime(str)
-
-Parses a date expressed as a string, as either a number of milliseconds since
-the epoch or any string format that Date accepts, giving preference to the
-former where these two sets overlap (e.g., strings containing small numbers).
-
-
-### hrtimeDiff(timeA, timeB)
-
-Given two hrtime readings (as from Node's `process.hrtime()`), where timeA is
-later than timeB, compute the difference and return that as an hrtime. It is
-illegal to invoke this for a pair of times where timeB is newer than timeA.
-
-### hrtimeAdd(timeA, timeB)
-
-Add two hrtime intervals (as from Node's `process.hrtime()`), returning a new
-hrtime interval array. This function does not modify either input argument.
-
-
-### hrtimeAccum(timeA, timeB)
-
-Add two hrtime intervals (as from Node's `process.hrtime()`), storing the
-result in `timeA`. This function overwrites (and returns) the first argument
-passed in.
-
-
-### hrtimeNanosec(timeA), hrtimeMicrosec(timeA), hrtimeMillisec(timeA)
-
-This suite of functions converts a hrtime interval (as from Node's
-`process.hrtime()`) into a scalar number of nanoseconds, microseconds or
-milliseconds. Results are truncated, as with `Math.floor()`.
-
-
-### validateJsonObject(schema, object)
-
-Uses JSON validation (via JSV) to validate the given object against the given
-schema. On success, returns null. On failure, *returns* (does not throw) a
-useful Error object.
-
-
-### extraProperties(object, allowed)
-
-Check an object for unexpected properties. Accepts the object to check, and an
-array of allowed property name strings. If extra properties are detected, an
-array of extra property names is returned. If no properties other than those
-in the allowed list are present on the object, the returned array will be of
-zero length.
-
-### mergeObjects(provided, overrides, defaults)
-
-Merge properties from objects "provided", "overrides", and "defaults". The
-intended use case is for functions that accept named arguments in an "args"
-object, but want to provide some default values and override other values. In
-that case, "provided" is what the caller specified, "overrides" are what the
-function wants to override, and "defaults" contains default values.
-
-The function starts with the values in "defaults", overrides them with the
-values in "provided", and then overrides those with the values in "overrides".
-For convenience, any of these objects may be falsey, in which case they will be
-ignored. The input objects are never modified, but properties in the returned
-object are not deep-copied.
-
-For example:
-
- mergeObjects(undefined, { 'objectMode': true }, { 'highWaterMark': 0 })
-
-returns:
-
- { 'objectMode': true, 'highWaterMark': 0 }
-
-For another example:
-
- mergeObjects(
- { 'highWaterMark': 16, 'objectMode': 7 }, /* from caller */
- { 'objectMode': true }, /* overrides */
- { 'highWaterMark': 0 }); /* default */
-
-returns:
-
- { 'objectMode': true, 'highWaterMark': 16 }
-
-
-# Contributing
-
-See separate [contribution guidelines](CONTRIBUTING.md).
diff --git a/node_modules/jsprim/lib/jsprim.js b/node_modules/jsprim/lib/jsprim.js
deleted file mode 100644
index f7d0d81..0000000
--- a/node_modules/jsprim/lib/jsprim.js
+++ /dev/null
@@ -1,735 +0,0 @@
-/*
- * lib/jsprim.js: utilities for primitive JavaScript types
- */
-
-var mod_assert = require('assert-plus');
-var mod_util = require('util');
-
-var mod_extsprintf = require('extsprintf');
-var mod_verror = require('verror');
-var mod_jsonschema = require('json-schema');
-
-/*
- * Public interface
- */
-exports.deepCopy = deepCopy;
-exports.deepEqual = deepEqual;
-exports.isEmpty = isEmpty;
-exports.hasKey = hasKey;
-exports.forEachKey = forEachKey;
-exports.pluck = pluck;
-exports.flattenObject = flattenObject;
-exports.flattenIter = flattenIter;
-exports.validateJsonObject = validateJsonObjectJS;
-exports.validateJsonObjectJS = validateJsonObjectJS;
-exports.randElt = randElt;
-exports.extraProperties = extraProperties;
-exports.mergeObjects = mergeObjects;
-
-exports.startsWith = startsWith;
-exports.endsWith = endsWith;
-
-exports.parseInteger = parseInteger;
-
-exports.iso8601 = iso8601;
-exports.rfc1123 = rfc1123;
-exports.parseDateTime = parseDateTime;
-
-exports.hrtimediff = hrtimeDiff;
-exports.hrtimeDiff = hrtimeDiff;
-exports.hrtimeAccum = hrtimeAccum;
-exports.hrtimeAdd = hrtimeAdd;
-exports.hrtimeNanosec = hrtimeNanosec;
-exports.hrtimeMicrosec = hrtimeMicrosec;
-exports.hrtimeMillisec = hrtimeMillisec;
-
-
-/*
- * Deep copy an acyclic *basic* Javascript object. This only handles basic
- * scalars (strings, numbers, booleans) and arbitrarily deep arrays and objects
- * containing these. This does *not* handle instances of other classes.
- */
-function deepCopy(obj)
-{
- var ret, key;
- var marker = '__deepCopy';
-
- if (obj && obj[marker])
- throw (new Error('attempted deep copy of cyclic object'));
-
- if (obj && obj.constructor == Object) {
- ret = {};
- obj[marker] = true;
-
- for (key in obj) {
- if (key == marker)
- continue;
-
- ret[key] = deepCopy(obj[key]);
- }
-
- delete (obj[marker]);
- return (ret);
- }
-
- if (obj && obj.constructor == Array) {
- ret = [];
- obj[marker] = true;
-
- for (key = 0; key < obj.length; key++)
- ret.push(deepCopy(obj[key]));
-
- delete (obj[marker]);
- return (ret);
- }
-
- /*
- * It must be a primitive type -- just return it.
- */
- return (obj);
-}
-
-function deepEqual(obj1, obj2)
-{
- if (typeof (obj1) != typeof (obj2))
- return (false);
-
- if (obj1 === null || obj2 === null || typeof (obj1) != 'object')
- return (obj1 === obj2);
-
- if (obj1.constructor != obj2.constructor)
- return (false);
-
- var k;
- for (k in obj1) {
- if (!obj2.hasOwnProperty(k))
- return (false);
-
- if (!deepEqual(obj1[k], obj2[k]))
- return (false);
- }
-
- for (k in obj2) {
- if (!obj1.hasOwnProperty(k))
- return (false);
- }
-
- return (true);
-}
-
-function isEmpty(obj)
-{
- var key;
- for (key in obj)
- return (false);
- return (true);
-}
-
-function hasKey(obj, key)
-{
- mod_assert.equal(typeof (key), 'string');
- return (Object.prototype.hasOwnProperty.call(obj, key));
-}
-
-function forEachKey(obj, callback)
-{
- for (var key in obj) {
- if (hasKey(obj, key)) {
- callback(key, obj[key]);
- }
- }
-}
-
-function pluck(obj, key)
-{
- mod_assert.equal(typeof (key), 'string');
- return (pluckv(obj, key));
-}
-
-function pluckv(obj, key)
-{
- if (obj === null || typeof (obj) !== 'object')
- return (undefined);
-
- if (obj.hasOwnProperty(key))
- return (obj[key]);
-
- var i = key.indexOf('.');
- if (i == -1)
- return (undefined);
-
- var key1 = key.substr(0, i);
- if (!obj.hasOwnProperty(key1))
- return (undefined);
-
- return (pluckv(obj[key1], key.substr(i + 1)));
-}
-
-/*
- * Invoke callback(row) for each entry in the array that would be returned by
- * flattenObject(data, depth). This is just like flattenObject(data,
- * depth).forEach(callback), except that the intermediate array is never
- * created.
- */
-function flattenIter(data, depth, callback)
-{
- doFlattenIter(data, depth, [], callback);
-}
-
-function doFlattenIter(data, depth, accum, callback)
-{
- var each;
- var key;
-
- if (depth === 0) {
- each = accum.slice(0);
- each.push(data);
- callback(each);
- return;
- }
-
- mod_assert.ok(data !== null);
- mod_assert.equal(typeof (data), 'object');
- mod_assert.equal(typeof (depth), 'number');
- mod_assert.ok(depth >= 0);
-
- for (key in data) {
- each = accum.slice(0);
- each.push(key);
- doFlattenIter(data[key], depth - 1, each, callback);
- }
-}
-
-function flattenObject(data, depth)
-{
- if (depth === 0)
- return ([ data ]);
-
- mod_assert.ok(data !== null);
- mod_assert.equal(typeof (data), 'object');
- mod_assert.equal(typeof (depth), 'number');
- mod_assert.ok(depth >= 0);
-
- var rv = [];
- var key;
-
- for (key in data) {
- flattenObject(data[key], depth - 1).forEach(function (p) {
- rv.push([ key ].concat(p));
- });
- }
-
- return (rv);
-}
-
-function startsWith(str, prefix)
-{
- return (str.substr(0, prefix.length) == prefix);
-}
-
-function endsWith(str, suffix)
-{
- return (str.substr(
- str.length - suffix.length, suffix.length) == suffix);
-}
-
-function iso8601(d)
-{
- if (typeof (d) == 'number')
- d = new Date(d);
- mod_assert.ok(d.constructor === Date);
- return (mod_extsprintf.sprintf('%4d-%02d-%02dT%02d:%02d:%02d.%03dZ',
- d.getUTCFullYear(), d.getUTCMonth() + 1, d.getUTCDate(),
- d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(),
- d.getUTCMilliseconds()));
-}
-
-var RFC1123_MONTHS = [
- 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
- 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
-var RFC1123_DAYS = [
- 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
-
-function rfc1123(date) {
- return (mod_extsprintf.sprintf('%s, %02d %s %04d %02d:%02d:%02d GMT',
- RFC1123_DAYS[date.getUTCDay()], date.getUTCDate(),
- RFC1123_MONTHS[date.getUTCMonth()], date.getUTCFullYear(),
- date.getUTCHours(), date.getUTCMinutes(),
- date.getUTCSeconds()));
-}
-
-/*
- * Parses a date expressed as a string, as either a number of milliseconds since
- * the epoch or any string format that Date accepts, giving preference to the
- * former where these two sets overlap (e.g., small numbers).
- */
-function parseDateTime(str)
-{
- /*
- * This is irritatingly implicit, but significantly more concise than
- * alternatives. The "+str" will convert a string containing only a
- * number directly to a Number, or NaN for other strings. Thus, if the
- * conversion succeeds, we use it (this is the milliseconds-since-epoch
- * case). Otherwise, we pass the string directly to the Date
- * constructor to parse.
- */
- var numeric = +str;
- if (!isNaN(numeric)) {
- return (new Date(numeric));
- } else {
- return (new Date(str));
- }
-}
-
-
-/*
- * Number.*_SAFE_INTEGER isn't present before node v0.12, so we hardcode
- * the ES6 definitions here, while allowing for them to someday be higher.
- */
-var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
-var MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991;
-
-
-/*
- * Default options for parseInteger().
- */
-var PI_DEFAULTS = {
- base: 10,
- allowSign: true,
- allowPrefix: false,
- allowTrailing: false,
- allowImprecise: false,
- trimWhitespace: false,
- leadingZeroIsOctal: false
-};
-
-var CP_0 = 0x30;
-var CP_9 = 0x39;
-
-var CP_A = 0x41;
-var CP_B = 0x42;
-var CP_O = 0x4f;
-var CP_T = 0x54;
-var CP_X = 0x58;
-var CP_Z = 0x5a;
-
-var CP_a = 0x61;
-var CP_b = 0x62;
-var CP_o = 0x6f;
-var CP_t = 0x74;
-var CP_x = 0x78;
-var CP_z = 0x7a;
-
-var PI_CONV_DEC = 0x30;
-var PI_CONV_UC = 0x37;
-var PI_CONV_LC = 0x57;
-
-
-/*
- * A stricter version of parseInt() that provides options for changing what
- * is an acceptable string (for example, disallowing trailing characters).
- */
-function parseInteger(str, uopts)
-{
- mod_assert.string(str, 'str');
- mod_assert.optionalObject(uopts, 'options');
-
- var baseOverride = false;
- var options = PI_DEFAULTS;
-
- if (uopts) {
- baseOverride = hasKey(uopts, 'base');
- options = mergeObjects(options, uopts);
- mod_assert.number(options.base, 'options.base');
- mod_assert.ok(options.base >= 2, 'options.base >= 2');
- mod_assert.ok(options.base <= 36, 'options.base <= 36');
- mod_assert.bool(options.allowSign, 'options.allowSign');
- mod_assert.bool(options.allowPrefix, 'options.allowPrefix');
- mod_assert.bool(options.allowTrailing,
- 'options.allowTrailing');
- mod_assert.bool(options.allowImprecise,
- 'options.allowImprecise');
- mod_assert.bool(options.trimWhitespace,
- 'options.trimWhitespace');
- mod_assert.bool(options.leadingZeroIsOctal,
- 'options.leadingZeroIsOctal');
-
- if (options.leadingZeroIsOctal) {
- mod_assert.ok(!baseOverride,
- '"base" and "leadingZeroIsOctal" are ' +
- 'mutually exclusive');
- }
- }
-
- var c;
- var pbase = -1;
- var base = options.base;
- var start;
- var mult = 1;
- var value = 0;
- var idx = 0;
- var len = str.length;
-
- /* Trim any whitespace on the left side. */
- if (options.trimWhitespace) {
- while (idx < len && isSpace(str.charCodeAt(idx))) {
- ++idx;
- }
- }
-
- /* Check the number for a leading sign. */
- if (options.allowSign) {
- if (str[idx] === '-') {
- idx += 1;
- mult = -1;
- } else if (str[idx] === '+') {
- idx += 1;
- }
- }
-
- /* Parse the base-indicating prefix if there is one. */
- if (str[idx] === '0') {
- if (options.allowPrefix) {
- pbase = prefixToBase(str.charCodeAt(idx + 1));
- if (pbase !== -1 && (!baseOverride || pbase === base)) {
- base = pbase;
- idx += 2;
- }
- }
-
- if (pbase === -1 && options.leadingZeroIsOctal) {
- base = 8;
- }
- }
-
- /* Parse the actual digits. */
- for (start = idx; idx < len; ++idx) {
- c = translateDigit(str.charCodeAt(idx));
- if (c !== -1 && c < base) {
- value *= base;
- value += c;
- } else {
- break;
- }
- }
-
- /* If we didn't parse any digits, we have an invalid number. */
- if (start === idx) {
- return (new Error('invalid number: ' + JSON.stringify(str)));
- }
-
- /* Trim any whitespace on the right side. */
- if (options.trimWhitespace) {
- while (idx < len && isSpace(str.charCodeAt(idx))) {
- ++idx;
- }
- }
-
- /* Check for trailing characters. */
- if (idx < len && !options.allowTrailing) {
- return (new Error('trailing characters after number: ' +
- JSON.stringify(str.slice(idx))));
- }
-
- /* If our value is 0, we return now, to avoid returning -0. */
- if (value === 0) {
- return (0);
- }
-
- /* Calculate our final value. */
- var result = value * mult;
-
- /*
- * If the string represents a value that cannot be precisely represented
- * by JavaScript, then we want to check that:
- *
- * - We never increased the value past MAX_SAFE_INTEGER
- * - We don't make the result negative and below MIN_SAFE_INTEGER
- *
- * Because we only ever increment the value during parsing, there's no
- * chance of moving past MAX_SAFE_INTEGER and then dropping below it
- * again, losing precision in the process. This means that we only need
- * to do our checks here, at the end.
- */
- if (!options.allowImprecise &&
- (value > MAX_SAFE_INTEGER || result < MIN_SAFE_INTEGER)) {
- return (new Error('number is outside of the supported range: ' +
- JSON.stringify(str.slice(start, idx))));
- }
-
- return (result);
-}
-
-
-/*
- * Interpret a character code as a base-36 digit.
- */
-function translateDigit(d)
-{
- if (d >= CP_0 && d <= CP_9) {
- /* '0' to '9' -> 0 to 9 */
- return (d - PI_CONV_DEC);
- } else if (d >= CP_A && d <= CP_Z) {
- /* 'A' - 'Z' -> 10 to 35 */
- return (d - PI_CONV_UC);
- } else if (d >= CP_a && d <= CP_z) {
- /* 'a' - 'z' -> 10 to 35 */
- return (d - PI_CONV_LC);
- } else {
- /* Invalid character code */
- return (-1);
- }
-}
-
-
-/*
- * Test if a value matches the ECMAScript definition of trimmable whitespace.
- */
-function isSpace(c)
-{
- return (c === 0x20) ||
- (c >= 0x0009 && c <= 0x000d) ||
- (c === 0x00a0) ||
- (c === 0x1680) ||
- (c === 0x180e) ||
- (c >= 0x2000 && c <= 0x200a) ||
- (c === 0x2028) ||
- (c === 0x2029) ||
- (c === 0x202f) ||
- (c === 0x205f) ||
- (c === 0x3000) ||
- (c === 0xfeff);
-}
-
-
-/*
- * Determine which base a character indicates (e.g., 'x' indicates hex).
- */
-function prefixToBase(c)
-{
- if (c === CP_b || c === CP_B) {
- /* 0b/0B (binary) */
- return (2);
- } else if (c === CP_o || c === CP_O) {
- /* 0o/0O (octal) */
- return (8);
- } else if (c === CP_t || c === CP_T) {
- /* 0t/0T (decimal) */
- return (10);
- } else if (c === CP_x || c === CP_X) {
- /* 0x/0X (hexadecimal) */
- return (16);
- } else {
- /* Not a meaningful character */
- return (-1);
- }
-}
-
-
-function validateJsonObjectJS(schema, input)
-{
- var report = mod_jsonschema.validate(input, schema);
-
- if (report.errors.length === 0)
- return (null);
-
- /* Currently, we only do anything useful with the first error. */
- var error = report.errors[0];
-
- /* The failed property is given by a URI with an irrelevant prefix. */
- var propname = error['property'];
- var reason = error['message'].toLowerCase();
- var i, j;
-
- /*
- * There's at least one case where the property error message is
- * confusing at best. We work around this here.
- */
- if ((i = reason.indexOf('the property ')) != -1 &&
- (j = reason.indexOf(' is not defined in the schema and the ' +
- 'schema does not allow additional properties')) != -1) {
- i += 'the property '.length;
- if (propname === '')
- propname = reason.substr(i, j - i);
- else
- propname = propname + '.' + reason.substr(i, j - i);
-
- reason = 'unsupported property';
- }
-
- var rv = new mod_verror.VError('property "%s": %s', propname, reason);
- rv.jsv_details = error;
- return (rv);
-}
-
-function randElt(arr)
-{
- mod_assert.ok(Array.isArray(arr) && arr.length > 0,
- 'randElt argument must be a non-empty array');
-
- return (arr[Math.floor(Math.random() * arr.length)]);
-}
-
-function assertHrtime(a)
-{
- mod_assert.ok(a[0] >= 0 && a[1] >= 0,
- 'negative numbers not allowed in hrtimes');
- mod_assert.ok(a[1] < 1e9, 'nanoseconds column overflow');
-}
-
-/*
- * Compute the time elapsed between hrtime readings A and B, where A is later
- * than B. hrtime readings come from Node's process.hrtime(). There is no
- * defined way to represent negative deltas, so it's illegal to diff B from A
- * where the time denoted by B is later than the time denoted by A. If this
- * becomes valuable, we can define a representation and extend the
- * implementation to support it.
- */
-function hrtimeDiff(a, b)
-{
- assertHrtime(a);
- assertHrtime(b);
- mod_assert.ok(a[0] > b[0] || (a[0] == b[0] && a[1] >= b[1]),
- 'negative differences not allowed');
-
- var rv = [ a[0] - b[0], 0 ];
-
- if (a[1] >= b[1]) {
- rv[1] = a[1] - b[1];
- } else {
- rv[0]--;
- rv[1] = 1e9 - (b[1] - a[1]);
- }
-
- return (rv);
-}
-
-/*
- * Convert a hrtime reading from the array format returned by Node's
- * process.hrtime() into a scalar number of nanoseconds.
- */
-function hrtimeNanosec(a)
-{
- assertHrtime(a);
-
- return (Math.floor(a[0] * 1e9 + a[1]));
-}
-
-/*
- * Convert a hrtime reading from the array format returned by Node's
- * process.hrtime() into a scalar number of microseconds.
- */
-function hrtimeMicrosec(a)
-{
- assertHrtime(a);
-
- return (Math.floor(a[0] * 1e6 + a[1] / 1e3));
-}
-
-/*
- * Convert a hrtime reading from the array format returned by Node's
- * process.hrtime() into a scalar number of milliseconds.
- */
-function hrtimeMillisec(a)
-{
- assertHrtime(a);
-
- return (Math.floor(a[0] * 1e3 + a[1] / 1e6));
-}
-
-/*
- * Add two hrtime readings A and B, overwriting A with the result of the
- * addition. This function is useful for accumulating several hrtime intervals
- * into a counter. Returns A.
- */
-function hrtimeAccum(a, b)
-{
- assertHrtime(a);
- assertHrtime(b);
-
- /*
- * Accumulate the nanosecond component.
- */
- a[1] += b[1];
- if (a[1] >= 1e9) {
- /*
- * The nanosecond component overflowed, so carry to the seconds
- * field.
- */
- a[0]++;
- a[1] -= 1e9;
- }
-
- /*
- * Accumulate the seconds component.
- */
- a[0] += b[0];
-
- return (a);
-}
-
-/*
- * Add two hrtime readings A and B, returning the result as a new hrtime array.
- * Does not modify either input argument.
- */
-function hrtimeAdd(a, b)
-{
- assertHrtime(a);
-
- var rv = [ a[0], a[1] ];
-
- return (hrtimeAccum(rv, b));
-}
-
-
-/*
- * Check an object for unexpected properties. Accepts the object to check, and
- * an array of allowed property names (strings). Returns an array of key names
- * that were found on the object, but did not appear in the list of allowed
- * properties. If no properties were found, the returned array will be of
- * zero length.
- */
-function extraProperties(obj, allowed)
-{
- mod_assert.ok(typeof (obj) === 'object' && obj !== null,
- 'obj argument must be a non-null object');
- mod_assert.ok(Array.isArray(allowed),
- 'allowed argument must be an array of strings');
- for (var i = 0; i < allowed.length; i++) {
- mod_assert.ok(typeof (allowed[i]) === 'string',
- 'allowed argument must be an array of strings');
- }
-
- return (Object.keys(obj).filter(function (key) {
- return (allowed.indexOf(key) === -1);
- }));
-}
-
-/*
- * Given three sets of properties "provided" (may be undefined), "overrides"
- * (required), and "defaults" (may be undefined), construct an object containing
- * the union of these sets with "overrides" overriding "provided", and
- * "provided" overriding "defaults". None of the input objects are modified.
- */
-function mergeObjects(provided, overrides, defaults)
-{
- var rv, k;
-
- rv = {};
- if (defaults) {
- for (k in defaults)
- rv[k] = defaults[k];
- }
-
- if (provided) {
- for (k in provided)
- rv[k] = provided[k];
- }
-
- if (overrides) {
- for (k in overrides)
- rv[k] = overrides[k];
- }
-
- return (rv);
-}
diff --git a/node_modules/jsprim/package.json b/node_modules/jsprim/package.json
deleted file mode 100644
index 54c971e..0000000
--- a/node_modules/jsprim/package.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "_from": "jsprim@^1.2.2",
- "_id": "jsprim@1.4.1",
- "_inBundle": false,
- "_integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
- "_location": "/jsprim",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "jsprim@^1.2.2",
- "name": "jsprim",
- "escapedName": "jsprim",
- "rawSpec": "^1.2.2",
- "saveSpec": null,
- "fetchSpec": "^1.2.2"
- },
- "_requiredBy": [
- "/http-signature"
- ],
- "_resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
- "_shasum": "313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2",
- "_spec": "jsprim@^1.2.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/http-signature",
- "bugs": {
- "url": "https://github.com/joyent/node-jsprim/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "assert-plus": "1.0.0",
- "extsprintf": "1.3.0",
- "json-schema": "0.2.3",
- "verror": "1.10.0"
- },
- "deprecated": false,
- "description": "utilities for primitive JavaScript types",
- "engines": [
- "node >=0.6.0"
- ],
- "homepage": "https://github.com/joyent/node-jsprim#readme",
- "license": "MIT",
- "main": "./lib/jsprim.js",
- "name": "jsprim",
- "repository": {
- "type": "git",
- "url": "git://github.com/joyent/node-jsprim.git"
- },
- "version": "1.4.1"
-}
diff --git a/node_modules/load-json-file/index.js b/node_modules/load-json-file/index.js
deleted file mode 100644
index 96d4d9f..0000000
--- a/node_modules/load-json-file/index.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-var path = require('path');
-var fs = require('graceful-fs');
-var stripBom = require('strip-bom');
-var parseJson = require('parse-json');
-var Promise = require('pinkie-promise');
-var pify = require('pify');
-
-function parse(x, fp) {
- return parseJson(stripBom(x), path.relative(process.cwd(), fp));
-}
-
-module.exports = function (fp) {
- return pify(fs.readFile, Promise)(fp, 'utf8').then(function (data) {
- return parse(data, fp);
- });
-};
-
-module.exports.sync = function (fp) {
- return parse(fs.readFileSync(fp, 'utf8'), fp);
-};
diff --git a/node_modules/load-json-file/license b/node_modules/load-json-file/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/load-json-file/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/load-json-file/package.json b/node_modules/load-json-file/package.json
deleted file mode 100644
index e806c2a..0000000
--- a/node_modules/load-json-file/package.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "_from": "load-json-file@^1.0.0",
- "_id": "load-json-file@1.1.0",
- "_inBundle": false,
- "_integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
- "_location": "/load-json-file",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "load-json-file@^1.0.0",
- "name": "load-json-file",
- "escapedName": "load-json-file",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/read-pkg"
- ],
- "_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
- "_shasum": "956905708d58b4bab4c2261b04f59f31c99374c0",
- "_spec": "load-json-file@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/read-pkg",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/load-json-file/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "graceful-fs": "^4.1.2",
- "parse-json": "^2.2.0",
- "pify": "^2.0.0",
- "pinkie-promise": "^2.0.0",
- "strip-bom": "^2.0.0"
- },
- "deprecated": false,
- "description": "Read and parse a JSON file",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/load-json-file#readme",
- "keywords": [
- "json",
- "read",
- "parse",
- "file",
- "fs",
- "graceful",
- "load"
- ],
- "license": "MIT",
- "name": "load-json-file",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/load-json-file.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.1.0",
- "xo": {
- "ignores": [
- "test.js"
- ]
- }
-}
diff --git a/node_modules/load-json-file/readme.md b/node_modules/load-json-file/readme.md
deleted file mode 100644
index fa982b5..0000000
--- a/node_modules/load-json-file/readme.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# load-json-file [![Build Status](https://travis-ci.org/sindresorhus/load-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/load-json-file)
-
-> Read and parse a JSON file
-
-[Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom), uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs), and throws more [helpful JSON errors](https://github.com/sindresorhus/parse-json).
-
-
-## Install
-
-```
-$ npm install --save load-json-file
-```
-
-
-## Usage
-
-```js
-const loadJsonFile = require('load-json-file');
-
-loadJsonFile('foo.json').then(json => {
- console.log(json);
- //=> {foo: true}
-});
-```
-
-
-## API
-
-### loadJsonFile(filepath)
-
-Returns a promise that resolves to the parsed JSON.
-
-### loadJsonFile.sync(filepath)
-
-Returns the parsed JSON.
-
-
-## Related
-
-- [write-json-file](https://github.com/sindresorhus/write-json-file) - Stringify and write JSON to a file atomically
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/locate-path/index.js b/node_modules/locate-path/index.js
deleted file mode 100644
index 5aae6ee..0000000
--- a/node_modules/locate-path/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-const path = require('path');
-const pathExists = require('path-exists');
-const pLocate = require('p-locate');
-
-module.exports = (iterable, options) => {
- options = Object.assign({
- cwd: process.cwd()
- }, options);
-
- return pLocate(iterable, el => pathExists(path.resolve(options.cwd, el)), options);
-};
-
-module.exports.sync = (iterable, options) => {
- options = Object.assign({
- cwd: process.cwd()
- }, options);
-
- for (const el of iterable) {
- if (pathExists.sync(path.resolve(options.cwd, el))) {
- return el;
- }
- }
-};
diff --git a/node_modules/locate-path/license b/node_modules/locate-path/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/locate-path/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/locate-path/node_modules/path-exists/index.js b/node_modules/locate-path/node_modules/path-exists/index.js
deleted file mode 100644
index 16ae60a..0000000
--- a/node_modules/locate-path/node_modules/path-exists/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-const fs = require('fs');
-
-module.exports = fp => new Promise(resolve => {
- fs.access(fp, err => {
- resolve(!err);
- });
-});
-
-module.exports.sync = fp => {
- try {
- fs.accessSync(fp);
- return true;
- } catch (err) {
- return false;
- }
-};
diff --git a/node_modules/locate-path/node_modules/path-exists/license b/node_modules/locate-path/node_modules/path-exists/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/locate-path/node_modules/path-exists/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/locate-path/node_modules/path-exists/package.json b/node_modules/locate-path/node_modules/path-exists/package.json
deleted file mode 100644
index a85a325..0000000
--- a/node_modules/locate-path/node_modules/path-exists/package.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "_from": "path-exists@^3.0.0",
- "_id": "path-exists@3.0.0",
- "_inBundle": false,
- "_integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
- "_location": "/locate-path/path-exists",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "path-exists@^3.0.0",
- "name": "path-exists",
- "escapedName": "path-exists",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/locate-path"
- ],
- "_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
- "_shasum": "ce0ebeaa5f78cb18925ea7d810d7b59b010fd515",
- "_spec": "path-exists@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/locate-path",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/path-exists/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Check if a path exists",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/path-exists#readme",
- "keywords": [
- "path",
- "exists",
- "exist",
- "file",
- "filepath",
- "fs",
- "filesystem",
- "file-system",
- "access",
- "stat"
- ],
- "license": "MIT",
- "name": "path-exists",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/path-exists.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.0.0",
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/locate-path/node_modules/path-exists/readme.md b/node_modules/locate-path/node_modules/path-exists/readme.md
deleted file mode 100644
index 1b65fa7..0000000
--- a/node_modules/locate-path/node_modules/path-exists/readme.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# path-exists [![Build Status](https://travis-ci.org/sindresorhus/path-exists.svg?branch=master)](https://travis-ci.org/sindresorhus/path-exists)
-
-> Check if a path exists
-
-Because [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), but there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it.
-
-Never use this before handling a file though:
-
-> In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there.
-
-
-## Install
-
-```
-$ npm install --save path-exists
-```
-
-
-## Usage
-
-```js
-// foo.js
-const pathExists = require('path-exists');
-
-pathExists('foo.js').then(exists => {
- console.log(exists);
- //=> true
-});
-```
-
-
-## API
-
-### pathExists(path)
-
-Returns a promise for a boolean of whether the path exists.
-
-### pathExists.sync(path)
-
-Returns a boolean of whether the path exists.
-
-
-## Related
-
-- [path-exists-cli](https://github.com/sindresorhus/path-exists-cli) - CLI for this module
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/locate-path/package.json b/node_modules/locate-path/package.json
deleted file mode 100644
index edd2bc1..0000000
--- a/node_modules/locate-path/package.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "_from": "locate-path@^3.0.0",
- "_id": "locate-path@3.0.0",
- "_inBundle": false,
- "_integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
- "_location": "/locate-path",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "locate-path@^3.0.0",
- "name": "locate-path",
- "escapedName": "locate-path",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/yargs/find-up"
- ],
- "_resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
- "_shasum": "dbec3b3ab759758071b58fe59fc41871af21400e",
- "_spec": "locate-path@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs/node_modules/find-up",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/locate-path/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "p-locate": "^3.0.0",
- "path-exists": "^3.0.0"
- },
- "deprecated": false,
- "description": "Get the first path that exists on disk of multiple paths",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/locate-path#readme",
- "keywords": [
- "locate",
- "path",
- "paths",
- "file",
- "files",
- "exists",
- "find",
- "finder",
- "search",
- "searcher",
- "array",
- "iterable",
- "iterator"
- ],
- "license": "MIT",
- "name": "locate-path",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/locate-path.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.0.0"
-}
diff --git a/node_modules/locate-path/readme.md b/node_modules/locate-path/readme.md
deleted file mode 100644
index a1d2e62..0000000
--- a/node_modules/locate-path/readme.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# locate-path [![Build Status](https://travis-ci.org/sindresorhus/locate-path.svg?branch=master)](https://travis-ci.org/sindresorhus/locate-path)
-
-> Get the first path that exists on disk of multiple paths
-
-
-## Install
-
-```
-$ npm install locate-path
-```
-
-
-## Usage
-
-Here we find the first file that exists on disk, in array order.
-
-```js
-const locatePath = require('locate-path');
-
-const files = [
- 'unicorn.png',
- 'rainbow.png', // Only this one actually exists on disk
- 'pony.png'
-];
-
-(async () => {
- console(await locatePath(files));
- //=> 'rainbow'
-})();
-```
-
-
-## API
-
-### locatePath(input, [options])
-
-Returns a `Promise` for the first path that exists or `undefined` if none exists.
-
-#### input
-
-Type: `Iterable<string>`
-
-Paths to check.
-
-#### options
-
-Type: `Object`
-
-##### concurrency
-
-Type: `number`<br>
-Default: `Infinity`<br>
-Minimum: `1`
-
-Number of concurrently pending promises.
-
-##### preserveOrder
-
-Type: `boolean`<br>
-Default: `true`
-
-Preserve `input` order when searching.
-
-Disable this to improve performance if you don't care about the order.
-
-##### cwd
-
-Type: `string`<br>
-Default: `process.cwd()`
-
-Current working directory.
-
-### locatePath.sync(input, [options])
-
-Returns the first path that exists or `undefined` if none exists.
-
-#### input
-
-Type: `Iterable<string>`
-
-Paths to check.
-
-#### options
-
-Type: `Object`
-
-##### cwd
-
-Same as above.
-
-
-## Related
-
-- [path-exists](https://github.com/sindresorhus/path-exists) - Check if a path exists
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/lodash/LICENSE b/node_modules/lodash/LICENSE
deleted file mode 100644
index 77c42f1..0000000
--- a/node_modules/lodash/LICENSE
+++ /dev/null
@@ -1,47 +0,0 @@
-Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
-
-Based on Underscore.js, copyright Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
-
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/lodash/lodash
-
-The following license applies to all parts of this software except as
-documented below:
-
-====
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-====
-
-Copyright and related rights for sample code are waived via CC0. Sample
-code is defined as all source code displayed within the prose of the
-documentation.
-
-CC0: http://creativecommons.org/publicdomain/zero/1.0/
-
-====
-
-Files located in the node_modules and vendor directories are externally
-maintained libraries used by this software which have their own
-licenses; we recommend you read them, as their terms may differ from the
-terms above.
diff --git a/node_modules/lodash/README.md b/node_modules/lodash/README.md
deleted file mode 100644
index 292832f..0000000
--- a/node_modules/lodash/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# lodash v4.17.15
-
-The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules.
-
-## Installation
-
-Using npm:
-```shell
-$ npm i -g npm
-$ npm i --save lodash
-```
-
-In Node.js:
-```js
-// Load the full build.
-var _ = require('lodash');
-// Load the core build.
-var _ = require('lodash/core');
-// Load the FP build for immutable auto-curried iteratee-first data-last methods.
-var fp = require('lodash/fp');
-
-// Load method categories.
-var array = require('lodash/array');
-var object = require('lodash/fp/object');
-
-// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
-var at = require('lodash/at');
-var curryN = require('lodash/fp/curryN');
-```
-
-See the [package source](https://github.com/lodash/lodash/tree/4.17.15-npm) for more details.
-
-**Note:**<br>
-Install [n_](https://www.npmjs.com/package/n_) for Lodash use in the Node.js < 6 REPL.
-
-## Support
-
-Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.<br>
-Automated [browser](https://saucelabs.com/u/lodash) & [CI](https://travis-ci.org/lodash/lodash/) test runs are available.
diff --git a/node_modules/lodash/_DataView.js b/node_modules/lodash/_DataView.js
deleted file mode 100644
index ac2d57c..0000000
--- a/node_modules/lodash/_DataView.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var getNative = require('./_getNative'),
- root = require('./_root');
-
-/* Built-in method references that are verified to be native. */
-var DataView = getNative(root, 'DataView');
-
-module.exports = DataView;
diff --git a/node_modules/lodash/_Hash.js b/node_modules/lodash/_Hash.js
deleted file mode 100644
index b504fe3..0000000
--- a/node_modules/lodash/_Hash.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var hashClear = require('./_hashClear'),
- hashDelete = require('./_hashDelete'),
- hashGet = require('./_hashGet'),
- hashHas = require('./_hashHas'),
- hashSet = require('./_hashSet');
-
-/**
- * Creates a hash object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function Hash(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
-
-// Add methods to `Hash`.
-Hash.prototype.clear = hashClear;
-Hash.prototype['delete'] = hashDelete;
-Hash.prototype.get = hashGet;
-Hash.prototype.has = hashHas;
-Hash.prototype.set = hashSet;
-
-module.exports = Hash;
diff --git a/node_modules/lodash/_LazyWrapper.js b/node_modules/lodash/_LazyWrapper.js
deleted file mode 100644
index 81786c7..0000000
--- a/node_modules/lodash/_LazyWrapper.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseCreate = require('./_baseCreate'),
- baseLodash = require('./_baseLodash');
-
-/** Used as references for the maximum length and index of an array. */
-var MAX_ARRAY_LENGTH = 4294967295;
-
-/**
- * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
- *
- * @private
- * @constructor
- * @param {*} value The value to wrap.
- */
-function LazyWrapper(value) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__dir__ = 1;
- this.__filtered__ = false;
- this.__iteratees__ = [];
- this.__takeCount__ = MAX_ARRAY_LENGTH;
- this.__views__ = [];
-}
-
-// Ensure `LazyWrapper` is an instance of `baseLodash`.
-LazyWrapper.prototype = baseCreate(baseLodash.prototype);
-LazyWrapper.prototype.constructor = LazyWrapper;
-
-module.exports = LazyWrapper;
diff --git a/node_modules/lodash/_ListCache.js b/node_modules/lodash/_ListCache.js
deleted file mode 100644
index 26895c3..0000000
--- a/node_modules/lodash/_ListCache.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var listCacheClear = require('./_listCacheClear'),
- listCacheDelete = require('./_listCacheDelete'),
- listCacheGet = require('./_listCacheGet'),
- listCacheHas = require('./_listCacheHas'),
- listCacheSet = require('./_listCacheSet');
-
-/**
- * Creates an list cache object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function ListCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
-
-// Add methods to `ListCache`.
-ListCache.prototype.clear = listCacheClear;
-ListCache.prototype['delete'] = listCacheDelete;
-ListCache.prototype.get = listCacheGet;
-ListCache.prototype.has = listCacheHas;
-ListCache.prototype.set = listCacheSet;
-
-module.exports = ListCache;
diff --git a/node_modules/lodash/_LodashWrapper.js b/node_modules/lodash/_LodashWrapper.js
deleted file mode 100644
index c1e4d9d..0000000
--- a/node_modules/lodash/_LodashWrapper.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseCreate = require('./_baseCreate'),
- baseLodash = require('./_baseLodash');
-
-/**
- * The base constructor for creating `lodash` wrapper objects.
- *
- * @private
- * @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable explicit method chain sequences.
- */
-function LodashWrapper(value, chainAll) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__chain__ = !!chainAll;
- this.__index__ = 0;
- this.__values__ = undefined;
-}
-
-LodashWrapper.prototype = baseCreate(baseLodash.prototype);
-LodashWrapper.prototype.constructor = LodashWrapper;
-
-module.exports = LodashWrapper;
diff --git a/node_modules/lodash/_Map.js b/node_modules/lodash/_Map.js
deleted file mode 100644
index b73f29a..0000000
--- a/node_modules/lodash/_Map.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var getNative = require('./_getNative'),
- root = require('./_root');
-
-/* Built-in method references that are verified to be native. */
-var Map = getNative(root, 'Map');
-
-module.exports = Map;
diff --git a/node_modules/lodash/_MapCache.js b/node_modules/lodash/_MapCache.js
deleted file mode 100644
index 4a4eea7..0000000
--- a/node_modules/lodash/_MapCache.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mapCacheClear = require('./_mapCacheClear'),
- mapCacheDelete = require('./_mapCacheDelete'),
- mapCacheGet = require('./_mapCacheGet'),
- mapCacheHas = require('./_mapCacheHas'),
- mapCacheSet = require('./_mapCacheSet');
-
-/**
- * Creates a map cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function MapCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
-
-// Add methods to `MapCache`.
-MapCache.prototype.clear = mapCacheClear;
-MapCache.prototype['delete'] = mapCacheDelete;
-MapCache.prototype.get = mapCacheGet;
-MapCache.prototype.has = mapCacheHas;
-MapCache.prototype.set = mapCacheSet;
-
-module.exports = MapCache;
diff --git a/node_modules/lodash/_Promise.js b/node_modules/lodash/_Promise.js
deleted file mode 100644
index 247b9e1..0000000
--- a/node_modules/lodash/_Promise.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var getNative = require('./_getNative'),
- root = require('./_root');
-
-/* Built-in method references that are verified to be native. */
-var Promise = getNative(root, 'Promise');
-
-module.exports = Promise;
diff --git a/node_modules/lodash/_Set.js b/node_modules/lodash/_Set.js
deleted file mode 100644
index b3c8dcb..0000000
--- a/node_modules/lodash/_Set.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var getNative = require('./_getNative'),
- root = require('./_root');
-
-/* Built-in method references that are verified to be native. */
-var Set = getNative(root, 'Set');
-
-module.exports = Set;
diff --git a/node_modules/lodash/_SetCache.js b/node_modules/lodash/_SetCache.js
deleted file mode 100644
index 6468b06..0000000
--- a/node_modules/lodash/_SetCache.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var MapCache = require('./_MapCache'),
- setCacheAdd = require('./_setCacheAdd'),
- setCacheHas = require('./_setCacheHas');
-
-/**
- *
- * Creates an array cache object to store unique values.
- *
- * @private
- * @constructor
- * @param {Array} [values] The values to cache.
- */
-function SetCache(values) {
- var index = -1,
- length = values == null ? 0 : values.length;
-
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
-}
-
-// Add methods to `SetCache`.
-SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
-SetCache.prototype.has = setCacheHas;
-
-module.exports = SetCache;
diff --git a/node_modules/lodash/_Stack.js b/node_modules/lodash/_Stack.js
deleted file mode 100644
index 80b2cf1..0000000
--- a/node_modules/lodash/_Stack.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var ListCache = require('./_ListCache'),
- stackClear = require('./_stackClear'),
- stackDelete = require('./_stackDelete'),
- stackGet = require('./_stackGet'),
- stackHas = require('./_stackHas'),
- stackSet = require('./_stackSet');
-
-/**
- * Creates a stack cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
-function Stack(entries) {
- var data = this.__data__ = new ListCache(entries);
- this.size = data.size;
-}
-
-// Add methods to `Stack`.
-Stack.prototype.clear = stackClear;
-Stack.prototype['delete'] = stackDelete;
-Stack.prototype.get = stackGet;
-Stack.prototype.has = stackHas;
-Stack.prototype.set = stackSet;
-
-module.exports = Stack;
diff --git a/node_modules/lodash/_Symbol.js b/node_modules/lodash/_Symbol.js
deleted file mode 100644
index a013f7c..0000000
--- a/node_modules/lodash/_Symbol.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var root = require('./_root');
-
-/** Built-in value references. */
-var Symbol = root.Symbol;
-
-module.exports = Symbol;
diff --git a/node_modules/lodash/_Uint8Array.js b/node_modules/lodash/_Uint8Array.js
deleted file mode 100644
index 2fb30e1..0000000
--- a/node_modules/lodash/_Uint8Array.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var root = require('./_root');
-
-/** Built-in value references. */
-var Uint8Array = root.Uint8Array;
-
-module.exports = Uint8Array;
diff --git a/node_modules/lodash/_WeakMap.js b/node_modules/lodash/_WeakMap.js
deleted file mode 100644
index 567f86c..0000000
--- a/node_modules/lodash/_WeakMap.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var getNative = require('./_getNative'),
- root = require('./_root');
-
-/* Built-in method references that are verified to be native. */
-var WeakMap = getNative(root, 'WeakMap');
-
-module.exports = WeakMap;
diff --git a/node_modules/lodash/_apply.js b/node_modules/lodash/_apply.js
deleted file mode 100644
index 36436dd..0000000
--- a/node_modules/lodash/_apply.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} args The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
-function apply(func, thisArg, args) {
- switch (args.length) {
- case 0: return func.call(thisArg);
- case 1: return func.call(thisArg, args[0]);
- case 2: return func.call(thisArg, args[0], args[1]);
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
-}
-
-module.exports = apply;
diff --git a/node_modules/lodash/_arrayAggregator.js b/node_modules/lodash/_arrayAggregator.js
deleted file mode 100644
index d96c3ca..0000000
--- a/node_modules/lodash/_arrayAggregator.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * A specialized version of `baseAggregator` for arrays.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
-function arrayAggregator(array, setter, iteratee, accumulator) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- var value = array[index];
- setter(accumulator, value, iteratee(value), array);
- }
- return accumulator;
-}
-
-module.exports = arrayAggregator;
diff --git a/node_modules/lodash/_arrayEach.js b/node_modules/lodash/_arrayEach.js
deleted file mode 100644
index 2c5f579..0000000
--- a/node_modules/lodash/_arrayEach.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * A specialized version of `_.forEach` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
-function arrayEach(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (iteratee(array[index], index, array) === false) {
- break;
- }
- }
- return array;
-}
-
-module.exports = arrayEach;
diff --git a/node_modules/lodash/_arrayEachRight.js b/node_modules/lodash/_arrayEachRight.js
deleted file mode 100644
index 976ca5c..0000000
--- a/node_modules/lodash/_arrayEachRight.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * A specialized version of `_.forEachRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
-function arrayEachRight(array, iteratee) {
- var length = array == null ? 0 : array.length;
-
- while (length--) {
- if (iteratee(array[length], length, array) === false) {
- break;
- }
- }
- return array;
-}
-
-module.exports = arrayEachRight;
diff --git a/node_modules/lodash/_arrayEvery.js b/node_modules/lodash/_arrayEvery.js
deleted file mode 100644
index e26a918..0000000
--- a/node_modules/lodash/_arrayEvery.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * A specialized version of `_.every` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- */
-function arrayEvery(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (!predicate(array[index], index, array)) {
- return false;
- }
- }
- return true;
-}
-
-module.exports = arrayEvery;
diff --git a/node_modules/lodash/_arrayFilter.js b/node_modules/lodash/_arrayFilter.js
deleted file mode 100644
index 75ea254..0000000
--- a/node_modules/lodash/_arrayFilter.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * A specialized version of `_.filter` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
-function arrayFilter(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result[resIndex++] = value;
- }
- }
- return result;
-}
-
-module.exports = arrayFilter;
diff --git a/node_modules/lodash/_arrayIncludes.js b/node_modules/lodash/_arrayIncludes.js
deleted file mode 100644
index 3737a6d..0000000
--- a/node_modules/lodash/_arrayIncludes.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var baseIndexOf = require('./_baseIndexOf');
-
-/**
- * A specialized version of `_.includes` for arrays without support for
- * specifying an index to search from.
- *
- * @private
- * @param {Array} [array] The array to inspect.
- * @param {*} target The value to search for.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
-function arrayIncludes(array, value) {
- var length = array == null ? 0 : array.length;
- return !!length && baseIndexOf(array, value, 0) > -1;
-}
-
-module.exports = arrayIncludes;
diff --git a/node_modules/lodash/_arrayIncludesWith.js b/node_modules/lodash/_arrayIncludesWith.js
deleted file mode 100644
index 235fd97..0000000
--- a/node_modules/lodash/_arrayIncludesWith.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * This function is like `arrayIncludes` except that it accepts a comparator.
- *
- * @private
- * @param {Array} [array] The array to inspect.
- * @param {*} target The value to search for.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
-function arrayIncludesWith(array, value, comparator) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (comparator(value, array[index])) {
- return true;
- }
- }
- return false;
-}
-
-module.exports = arrayIncludesWith;
diff --git a/node_modules/lodash/_arrayLikeKeys.js b/node_modules/lodash/_arrayLikeKeys.js
deleted file mode 100644
index b2ec9ce..0000000
--- a/node_modules/lodash/_arrayLikeKeys.js
+++ /dev/null
@@ -1,49 +0,0 @@
-var baseTimes = require('./_baseTimes'),
- isArguments = require('./isArguments'),
- isArray = require('./isArray'),
- isBuffer = require('./isBuffer'),
- isIndex = require('./_isIndex'),
- isTypedArray = require('./isTypedArray');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Creates an array of the enumerable property names of the array-like `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @param {boolean} inherited Specify returning inherited property names.
- * @returns {Array} Returns the array of property names.
- */
-function arrayLikeKeys(value, inherited) {
- var isArr = isArray(value),
- isArg = !isArr && isArguments(value),
- isBuff = !isArr && !isArg && isBuffer(value),
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
- skipIndexes = isArr || isArg || isBuff || isType,
- result = skipIndexes ? baseTimes(value.length, String) : [],
- length = result.length;
-
- for (var key in value) {
- if ((inherited || hasOwnProperty.call(value, key)) &&
- !(skipIndexes && (
- // Safari 9 has enumerable `arguments.length` in strict mode.
- key == 'length' ||
- // Node.js 0.10 has enumerable non-index properties on buffers.
- (isBuff && (key == 'offset' || key == 'parent')) ||
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
- // Skip index properties.
- isIndex(key, length)
- ))) {
- result.push(key);
- }
- }
- return result;
-}
-
-module.exports = arrayLikeKeys;
diff --git a/node_modules/lodash/_arrayMap.js b/node_modules/lodash/_arrayMap.js
deleted file mode 100644
index 22b2246..0000000
--- a/node_modules/lodash/_arrayMap.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
-function arrayMap(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length,
- result = Array(length);
-
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
-}
-
-module.exports = arrayMap;
diff --git a/node_modules/lodash/_arrayPush.js b/node_modules/lodash/_arrayPush.js
deleted file mode 100644
index 7d742b3..0000000
--- a/node_modules/lodash/_arrayPush.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
-function arrayPush(array, values) {
- var index = -1,
- length = values.length,
- offset = array.length;
-
- while (++index < length) {
- array[offset + index] = values[index];
- }
- return array;
-}
-
-module.exports = arrayPush;
diff --git a/node_modules/lodash/_arrayReduce.js b/node_modules/lodash/_arrayReduce.js
deleted file mode 100644
index de8b79b..0000000
--- a/node_modules/lodash/_arrayReduce.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * A specialized version of `_.reduce` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
-function arrayReduce(array, iteratee, accumulator, initAccum) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- if (initAccum && length) {
- accumulator = array[++index];
- }
- while (++index < length) {
- accumulator = iteratee(accumulator, array[index], index, array);
- }
- return accumulator;
-}
-
-module.exports = arrayReduce;
diff --git a/node_modules/lodash/_arrayReduceRight.js b/node_modules/lodash/_arrayReduceRight.js
deleted file mode 100644
index 22d8976..0000000
--- a/node_modules/lodash/_arrayReduceRight.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * A specialized version of `_.reduceRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the last element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
-function arrayReduceRight(array, iteratee, accumulator, initAccum) {
- var length = array == null ? 0 : array.length;
- if (initAccum && length) {
- accumulator = array[--length];
- }
- while (length--) {
- accumulator = iteratee(accumulator, array[length], length, array);
- }
- return accumulator;
-}
-
-module.exports = arrayReduceRight;
diff --git a/node_modules/lodash/_arraySample.js b/node_modules/lodash/_arraySample.js
deleted file mode 100644
index fcab010..0000000
--- a/node_modules/lodash/_arraySample.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var baseRandom = require('./_baseRandom');
-
-/**
- * A specialized version of `_.sample` for arrays.
- *
- * @private
- * @param {Array} array The array to sample.
- * @returns {*} Returns the random element.
- */
-function arraySample(array) {
- var length = array.length;
- return length ? array[baseRandom(0, length - 1)] : undefined;
-}
-
-module.exports = arraySample;
diff --git a/node_modules/lodash/_arraySampleSize.js b/node_modules/lodash/_arraySampleSize.js
deleted file mode 100644
index 8c7e364..0000000
--- a/node_modules/lodash/_arraySampleSize.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var baseClamp = require('./_baseClamp'),
- copyArray = require('./_copyArray'),
- shuffleSelf = require('./_shuffleSelf');
-
-/**
- * A specialized version of `_.sampleSize` for arrays.
- *
- * @private
- * @param {Array} array The array to sample.
- * @param {number} n The number of elements to sample.
- * @returns {Array} Returns the random elements.
- */
-function arraySampleSize(array, n) {
- return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
-}
-
-module.exports = arraySampleSize;
diff --git a/node_modules/lodash/_arrayShuffle.js b/node_modules/lodash/_arrayShuffle.js
deleted file mode 100644
index 46313a3..0000000
--- a/node_modules/lodash/_arrayShuffle.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var copyArray = require('./_copyArray'),
- shuffleSelf = require('./_shuffleSelf');
-
-/**
- * A specialized version of `_.shuffle` for arrays.
- *
- * @private
- * @param {Array} array The array to shuffle.
- * @returns {Array} Returns the new shuffled array.
- */
-function arrayShuffle(array) {
- return shuffleSelf(copyArray(array));
-}
-
-module.exports = arrayShuffle;
diff --git a/node_modules/lodash/_arraySome.js b/node_modules/lodash/_arraySome.js
deleted file mode 100644
index 6fd02fd..0000000
--- a/node_modules/lodash/_arraySome.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
-function arraySome(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (predicate(array[index], index, array)) {
- return true;
- }
- }
- return false;
-}
-
-module.exports = arraySome;
diff --git a/node_modules/lodash/_asciiSize.js b/node_modules/lodash/_asciiSize.js
deleted file mode 100644
index 11d29c3..0000000
--- a/node_modules/lodash/_asciiSize.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var baseProperty = require('./_baseProperty');
-
-/**
- * Gets the size of an ASCII `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
-var asciiSize = baseProperty('length');
-
-module.exports = asciiSize;
diff --git a/node_modules/lodash/_asciiToArray.js b/node_modules/lodash/_asciiToArray.js
deleted file mode 100644
index 8e3dd5b..0000000
--- a/node_modules/lodash/_asciiToArray.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Converts an ASCII `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
-function asciiToArray(string) {
- return string.split('');
-}
-
-module.exports = asciiToArray;
diff --git a/node_modules/lodash/_asciiWords.js b/node_modules/lodash/_asciiWords.js
deleted file mode 100644
index d765f0f..0000000
--- a/node_modules/lodash/_asciiWords.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/** Used to match words composed of alphanumeric characters. */
-var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
-
-/**
- * Splits an ASCII `string` into an array of its words.
- *
- * @private
- * @param {string} The string to inspect.
- * @returns {Array} Returns the words of `string`.
- */
-function asciiWords(string) {
- return string.match(reAsciiWord) || [];
-}
-
-module.exports = asciiWords;
diff --git a/node_modules/lodash/_assignMergeValue.js b/node_modules/lodash/_assignMergeValue.js
deleted file mode 100644
index cb1185e..0000000
--- a/node_modules/lodash/_assignMergeValue.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var baseAssignValue = require('./_baseAssignValue'),
- eq = require('./eq');
-
-/**
- * This function is like `assignValue` except that it doesn't assign
- * `undefined` values.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function assignMergeValue(object, key, value) {
- if ((value !== undefined && !eq(object[key], value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
- }
-}
-
-module.exports = assignMergeValue;
diff --git a/node_modules/lodash/_assignValue.js b/node_modules/lodash/_assignValue.js
deleted file mode 100644
index 4083957..0000000
--- a/node_modules/lodash/_assignValue.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseAssignValue = require('./_baseAssignValue'),
- eq = require('./eq');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
- }
-}
-
-module.exports = assignValue;
diff --git a/node_modules/lodash/_assocIndexOf.js b/node_modules/lodash/_assocIndexOf.js
deleted file mode 100644
index 5b77a2b..0000000
--- a/node_modules/lodash/_assocIndexOf.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var eq = require('./eq');
-
-/**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function assocIndexOf(array, key) {
- var length = array.length;
- while (length--) {
- if (eq(array[length][0], key)) {
- return length;
- }
- }
- return -1;
-}
-
-module.exports = assocIndexOf;
diff --git a/node_modules/lodash/_baseAggregator.js b/node_modules/lodash/_baseAggregator.js
deleted file mode 100644
index 4bc9e91..0000000
--- a/node_modules/lodash/_baseAggregator.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var baseEach = require('./_baseEach');
-
-/**
- * Aggregates elements of `collection` on `accumulator` with keys transformed
- * by `iteratee` and values set by `setter`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
-function baseAggregator(collection, setter, iteratee, accumulator) {
- baseEach(collection, function(value, key, collection) {
- setter(accumulator, value, iteratee(value), collection);
- });
- return accumulator;
-}
-
-module.exports = baseAggregator;
diff --git a/node_modules/lodash/_baseAssign.js b/node_modules/lodash/_baseAssign.js
deleted file mode 100644
index e5c4a1a..0000000
--- a/node_modules/lodash/_baseAssign.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var copyObject = require('./_copyObject'),
- keys = require('./keys');
-
-/**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
-function baseAssign(object, source) {
- return object && copyObject(source, keys(source), object);
-}
-
-module.exports = baseAssign;
diff --git a/node_modules/lodash/_baseAssignIn.js b/node_modules/lodash/_baseAssignIn.js
deleted file mode 100644
index 6624f90..0000000
--- a/node_modules/lodash/_baseAssignIn.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var copyObject = require('./_copyObject'),
- keysIn = require('./keysIn');
-
-/**
- * The base implementation of `_.assignIn` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
-function baseAssignIn(object, source) {
- return object && copyObject(source, keysIn(source), object);
-}
-
-module.exports = baseAssignIn;
diff --git a/node_modules/lodash/_baseAssignValue.js b/node_modules/lodash/_baseAssignValue.js
deleted file mode 100644
index d6f66ef..0000000
--- a/node_modules/lodash/_baseAssignValue.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var defineProperty = require('./_defineProperty');
-
-/**
- * The base implementation of `assignValue` and `assignMergeValue` without
- * value checks.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
-function baseAssignValue(object, key, value) {
- if (key == '__proto__' && defineProperty) {
- defineProperty(object, key, {
- 'configurable': true,
- 'enumerable': true,
- 'value': value,
- 'writable': true
- });
- } else {
- object[key] = value;
- }
-}
-
-module.exports = baseAssignValue;
diff --git a/node_modules/lodash/_baseAt.js b/node_modules/lodash/_baseAt.js
deleted file mode 100644
index 90e4237..0000000
--- a/node_modules/lodash/_baseAt.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var get = require('./get');
-
-/**
- * The base implementation of `_.at` without support for individual paths.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {string[]} paths The property paths to pick.
- * @returns {Array} Returns the picked elements.
- */
-function baseAt(object, paths) {
- var index = -1,
- length = paths.length,
- result = Array(length),
- skip = object == null;
-
- while (++index < length) {
- result[index] = skip ? undefined : get(object, paths[index]);
- }
- return result;
-}
-
-module.exports = baseAt;
diff --git a/node_modules/lodash/_baseClamp.js b/node_modules/lodash/_baseClamp.js
deleted file mode 100644
index a1c5692..0000000
--- a/node_modules/lodash/_baseClamp.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * The base implementation of `_.clamp` which doesn't coerce arguments.
- *
- * @private
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- */
-function baseClamp(number, lower, upper) {
- if (number === number) {
- if (upper !== undefined) {
- number = number <= upper ? number : upper;
- }
- if (lower !== undefined) {
- number = number >= lower ? number : lower;
- }
- }
- return number;
-}
-
-module.exports = baseClamp;
diff --git a/node_modules/lodash/_baseClone.js b/node_modules/lodash/_baseClone.js
deleted file mode 100644
index 290de92..0000000
--- a/node_modules/lodash/_baseClone.js
+++ /dev/null
@@ -1,165 +0,0 @@
-var Stack = require('./_Stack'),
- arrayEach = require('./_arrayEach'),
- assignValue = require('./_assignValue'),
- baseAssign = require('./_baseAssign'),
- baseAssignIn = require('./_baseAssignIn'),
- cloneBuffer = require('./_cloneBuffer'),
- copyArray = require('./_copyArray'),
- copySymbols = require('./_copySymbols'),
- copySymbolsIn = require('./_copySymbolsIn'),
- getAllKeys = require('./_getAllKeys'),
- getAllKeysIn = require('./_getAllKeysIn'),
- getTag = require('./_getTag'),
- initCloneArray = require('./_initCloneArray'),
- initCloneByTag = require('./_initCloneByTag'),
- initCloneObject = require('./_initCloneObject'),
- isArray = require('./isArray'),
- isBuffer = require('./isBuffer'),
- isMap = require('./isMap'),
- isObject = require('./isObject'),
- isSet = require('./isSet'),
- keys = require('./keys');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1,
- CLONE_FLAT_FLAG = 2,
- CLONE_SYMBOLS_FLAG = 4;
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]',
- weakMapTag = '[object WeakMap]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
-
-/** Used to identify `toStringTag` values supported by `_.clone`. */
-var cloneableTags = {};
-cloneableTags[argsTag] = cloneableTags[arrayTag] =
-cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
-cloneableTags[boolTag] = cloneableTags[dateTag] =
-cloneableTags[float32Tag] = cloneableTags[float64Tag] =
-cloneableTags[int8Tag] = cloneableTags[int16Tag] =
-cloneableTags[int32Tag] = cloneableTags[mapTag] =
-cloneableTags[numberTag] = cloneableTags[objectTag] =
-cloneableTags[regexpTag] = cloneableTags[setTag] =
-cloneableTags[stringTag] = cloneableTags[symbolTag] =
-cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
-cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
-cloneableTags[errorTag] = cloneableTags[funcTag] =
-cloneableTags[weakMapTag] = false;
-
-/**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} bitmask The bitmask flags.
- * 1 - Deep clone
- * 2 - Flatten inherited properties
- * 4 - Clone symbols
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
-function baseClone(value, bitmask, customizer, key, object, stack) {
- var result,
- isDeep = bitmask & CLONE_DEEP_FLAG,
- isFlat = bitmask & CLONE_FLAT_FLAG,
- isFull = bitmask & CLONE_SYMBOLS_FLAG;
-
- if (customizer) {
- result = object ? customizer(value, key, object, stack) : customizer(value);
- }
- if (result !== undefined) {
- return result;
- }
- if (!isObject(value)) {
- return value;
- }
- var isArr = isArray(value);
- if (isArr) {
- result = initCloneArray(value);
- if (!isDeep) {
- return copyArray(value, result);
- }
- } else {
- var tag = getTag(value),
- isFunc = tag == funcTag || tag == genTag;
-
- if (isBuffer(value)) {
- return cloneBuffer(value, isDeep);
- }
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
- result = (isFlat || isFunc) ? {} : initCloneObject(value);
- if (!isDeep) {
- return isFlat
- ? copySymbolsIn(value, baseAssignIn(result, value))
- : copySymbols(value, baseAssign(result, value));
- }
- } else {
- if (!cloneableTags[tag]) {
- return object ? value : {};
- }
- result = initCloneByTag(value, tag, isDeep);
- }
- }
- // Check for circular references and return its corresponding clone.
- stack || (stack = new Stack);
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result);
-
- if (isSet(value)) {
- value.forEach(function(subValue) {
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
- });
- } else if (isMap(value)) {
- value.forEach(function(subValue, key) {
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
- });
- }
-
- var keysFunc = isFull
- ? (isFlat ? getAllKeysIn : getAllKeys)
- : (isFlat ? keysIn : keys);
-
- var props = isArr ? undefined : keysFunc(value);
- arrayEach(props || value, function(subValue, key) {
- if (props) {
- key = subValue;
- subValue = value[key];
- }
- // Recursively populate clone (susceptible to call stack limits).
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
- });
- return result;
-}
-
-module.exports = baseClone;
diff --git a/node_modules/lodash/_baseConforms.js b/node_modules/lodash/_baseConforms.js
deleted file mode 100644
index 947e20d..0000000
--- a/node_modules/lodash/_baseConforms.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseConformsTo = require('./_baseConformsTo'),
- keys = require('./keys');
-
-/**
- * The base implementation of `_.conforms` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- */
-function baseConforms(source) {
- var props = keys(source);
- return function(object) {
- return baseConformsTo(object, source, props);
- };
-}
-
-module.exports = baseConforms;
diff --git a/node_modules/lodash/_baseConformsTo.js b/node_modules/lodash/_baseConformsTo.js
deleted file mode 100644
index e449cb8..0000000
--- a/node_modules/lodash/_baseConformsTo.js
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * The base implementation of `_.conformsTo` which accepts `props` to check.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property predicates to conform to.
- * @returns {boolean} Returns `true` if `object` conforms, else `false`.
- */
-function baseConformsTo(object, source, props) {
- var length = props.length;
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (length--) {
- var key = props[length],
- predicate = source[key],
- value = object[key];
-
- if ((value === undefined && !(key in object)) || !predicate(value)) {
- return false;
- }
- }
- return true;
-}
-
-module.exports = baseConformsTo;
diff --git a/node_modules/lodash/_baseCreate.js b/node_modules/lodash/_baseCreate.js
deleted file mode 100644
index ffa6a52..0000000
--- a/node_modules/lodash/_baseCreate.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var isObject = require('./isObject');
-
-/** Built-in value references. */
-var objectCreate = Object.create;
-
-/**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} proto The object to inherit from.
- * @returns {Object} Returns the new object.
- */
-var baseCreate = (function() {
- function object() {}
- return function(proto) {
- if (!isObject(proto)) {
- return {};
- }
- if (objectCreate) {
- return objectCreate(proto);
- }
- object.prototype = proto;
- var result = new object;
- object.prototype = undefined;
- return result;
- };
-}());
-
-module.exports = baseCreate;
diff --git a/node_modules/lodash/_baseDelay.js b/node_modules/lodash/_baseDelay.js
deleted file mode 100644
index 1486d69..0000000
--- a/node_modules/lodash/_baseDelay.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * The base implementation of `_.delay` and `_.defer` which accepts `args`
- * to provide to `func`.
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {Array} args The arguments to provide to `func`.
- * @returns {number|Object} Returns the timer id or timeout object.
- */
-function baseDelay(func, wait, args) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return setTimeout(function() { func.apply(undefined, args); }, wait);
-}
-
-module.exports = baseDelay;
diff --git a/node_modules/lodash/_baseDifference.js b/node_modules/lodash/_baseDifference.js
deleted file mode 100644
index 343ac19..0000000
--- a/node_modules/lodash/_baseDifference.js
+++ /dev/null
@@ -1,67 +0,0 @@
-var SetCache = require('./_SetCache'),
- arrayIncludes = require('./_arrayIncludes'),
- arrayIncludesWith = require('./_arrayIncludesWith'),
- arrayMap = require('./_arrayMap'),
- baseUnary = require('./_baseUnary'),
- cacheHas = require('./_cacheHas');
-
-/** Used as the size to enable large array optimizations. */
-var LARGE_ARRAY_SIZE = 200;
-
-/**
- * The base implementation of methods like `_.difference` without support
- * for excluding multiple arrays or iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Array} values The values to exclude.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- */
-function baseDifference(array, values, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- isCommon = true,
- length = array.length,
- result = [],
- valuesLength = values.length;
-
- if (!length) {
- return result;
- }
- if (iteratee) {
- values = arrayMap(values, baseUnary(iteratee));
- }
- if (comparator) {
- includes = arrayIncludesWith;
- isCommon = false;
- }
- else if (values.length >= LARGE_ARRAY_SIZE) {
- includes = cacheHas;
- isCommon = false;
- values = new SetCache(values);
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee == null ? value : iteratee(value);
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var valuesIndex = valuesLength;
- while (valuesIndex--) {
- if (values[valuesIndex] === computed) {
- continue outer;
- }
- }
- result.push(value);
- }
- else if (!includes(values, computed, comparator)) {
- result.push(value);
- }
- }
- return result;
-}
-
-module.exports = baseDifference;
diff --git a/node_modules/lodash/_baseEach.js b/node_modules/lodash/_baseEach.js
deleted file mode 100644
index 512c067..0000000
--- a/node_modules/lodash/_baseEach.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var baseForOwn = require('./_baseForOwn'),
- createBaseEach = require('./_createBaseEach');
-
-/**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
-var baseEach = createBaseEach(baseForOwn);
-
-module.exports = baseEach;
diff --git a/node_modules/lodash/_baseEachRight.js b/node_modules/lodash/_baseEachRight.js
deleted file mode 100644
index 0a8feec..0000000
--- a/node_modules/lodash/_baseEachRight.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var baseForOwnRight = require('./_baseForOwnRight'),
- createBaseEach = require('./_createBaseEach');
-
-/**
- * The base implementation of `_.forEachRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
-var baseEachRight = createBaseEach(baseForOwnRight, true);
-
-module.exports = baseEachRight;
diff --git a/node_modules/lodash/_baseEvery.js b/node_modules/lodash/_baseEvery.js
deleted file mode 100644
index fa52f7b..0000000
--- a/node_modules/lodash/_baseEvery.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var baseEach = require('./_baseEach');
-
-/**
- * The base implementation of `_.every` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`
- */
-function baseEvery(collection, predicate) {
- var result = true;
- baseEach(collection, function(value, index, collection) {
- result = !!predicate(value, index, collection);
- return result;
- });
- return result;
-}
-
-module.exports = baseEvery;
diff --git a/node_modules/lodash/_baseExtremum.js b/node_modules/lodash/_baseExtremum.js
deleted file mode 100644
index 9d6aa77..0000000
--- a/node_modules/lodash/_baseExtremum.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var isSymbol = require('./isSymbol');
-
-/**
- * The base implementation of methods like `_.max` and `_.min` which accepts a
- * `comparator` to determine the extremum value.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The iteratee invoked per iteration.
- * @param {Function} comparator The comparator used to compare values.
- * @returns {*} Returns the extremum value.
- */
-function baseExtremum(array, iteratee, comparator) {
- var index = -1,
- length = array.length;
-
- while (++index < length) {
- var value = array[index],
- current = iteratee(value);
-
- if (current != null && (computed === undefined
- ? (current === current && !isSymbol(current))
- : comparator(current, computed)
- )) {
- var computed = current,
- result = value;
- }
- }
- return result;
-}
-
-module.exports = baseExtremum;
diff --git a/node_modules/lodash/_baseFill.js b/node_modules/lodash/_baseFill.js
deleted file mode 100644
index 46ef9c7..0000000
--- a/node_modules/lodash/_baseFill.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var toInteger = require('./toInteger'),
- toLength = require('./toLength');
-
-/**
- * The base implementation of `_.fill` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- */
-function baseFill(array, value, start, end) {
- var length = array.length;
-
- start = toInteger(start);
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = (end === undefined || end > length) ? length : toInteger(end);
- if (end < 0) {
- end += length;
- }
- end = start > end ? 0 : toLength(end);
- while (start < end) {
- array[start++] = value;
- }
- return array;
-}
-
-module.exports = baseFill;
diff --git a/node_modules/lodash/_baseFilter.js b/node_modules/lodash/_baseFilter.js
deleted file mode 100644
index 4678477..0000000
--- a/node_modules/lodash/_baseFilter.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var baseEach = require('./_baseEach');
-
-/**
- * The base implementation of `_.filter` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
-function baseFilter(collection, predicate) {
- var result = [];
- baseEach(collection, function(value, index, collection) {
- if (predicate(value, index, collection)) {
- result.push(value);
- }
- });
- return result;
-}
-
-module.exports = baseFilter;
diff --git a/node_modules/lodash/_baseFindIndex.js b/node_modules/lodash/_baseFindIndex.js
deleted file mode 100644
index e3f5d8a..0000000
--- a/node_modules/lodash/_baseFindIndex.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} predicate The function invoked per iteration.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function baseFindIndex(array, predicate, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (predicate(array[index], index, array)) {
- return index;
- }
- }
- return -1;
-}
-
-module.exports = baseFindIndex;
diff --git a/node_modules/lodash/_baseFindKey.js b/node_modules/lodash/_baseFindKey.js
deleted file mode 100644
index 2e430f3..0000000
--- a/node_modules/lodash/_baseFindKey.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * The base implementation of methods like `_.findKey` and `_.findLastKey`,
- * without support for iteratee shorthands, which iterates over `collection`
- * using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} predicate The function invoked per iteration.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the found element or its key, else `undefined`.
- */
-function baseFindKey(collection, predicate, eachFunc) {
- var result;
- eachFunc(collection, function(value, key, collection) {
- if (predicate(value, key, collection)) {
- result = key;
- return false;
- }
- });
- return result;
-}
-
-module.exports = baseFindKey;
diff --git a/node_modules/lodash/_baseFlatten.js b/node_modules/lodash/_baseFlatten.js
deleted file mode 100644
index 4b1e009..0000000
--- a/node_modules/lodash/_baseFlatten.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var arrayPush = require('./_arrayPush'),
- isFlattenable = require('./_isFlattenable');
-
-/**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
-function baseFlatten(array, depth, predicate, isStrict, result) {
- var index = -1,
- length = array.length;
-
- predicate || (predicate = isFlattenable);
- result || (result = []);
-
- while (++index < length) {
- var value = array[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- // Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
-}
-
-module.exports = baseFlatten;
diff --git a/node_modules/lodash/_baseFor.js b/node_modules/lodash/_baseFor.js
deleted file mode 100644
index d946590..0000000
--- a/node_modules/lodash/_baseFor.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var createBaseFor = require('./_createBaseFor');
-
-/**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
-var baseFor = createBaseFor();
-
-module.exports = baseFor;
diff --git a/node_modules/lodash/_baseForOwn.js b/node_modules/lodash/_baseForOwn.js
deleted file mode 100644
index 503d523..0000000
--- a/node_modules/lodash/_baseForOwn.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var baseFor = require('./_baseFor'),
- keys = require('./keys');
-
-/**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
-function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
-}
-
-module.exports = baseForOwn;
diff --git a/node_modules/lodash/_baseForOwnRight.js b/node_modules/lodash/_baseForOwnRight.js
deleted file mode 100644
index a4b10e6..0000000
--- a/node_modules/lodash/_baseForOwnRight.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var baseForRight = require('./_baseForRight'),
- keys = require('./keys');
-
-/**
- * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
-function baseForOwnRight(object, iteratee) {
- return object && baseForRight(object, iteratee, keys);
-}
-
-module.exports = baseForOwnRight;
diff --git a/node_modules/lodash/_baseForRight.js b/node_modules/lodash/_baseForRight.js
deleted file mode 100644
index 32842cd..0000000
--- a/node_modules/lodash/_baseForRight.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var createBaseFor = require('./_createBaseFor');
-
-/**
- * This function is like `baseFor` except that it iterates over properties
- * in the opposite order.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
-var baseForRight = createBaseFor(true);
-
-module.exports = baseForRight;
diff --git a/node_modules/lodash/_baseFunctions.js b/node_modules/lodash/_baseFunctions.js
deleted file mode 100644
index d23bc9b..0000000
--- a/node_modules/lodash/_baseFunctions.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- isFunction = require('./isFunction');
-
-/**
- * The base implementation of `_.functions` which creates an array of
- * `object` function property names filtered from `props`.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Array} props The property names to filter.
- * @returns {Array} Returns the function names.
- */
-function baseFunctions(object, props) {
- return arrayFilter(props, function(key) {
- return isFunction(object[key]);
- });
-}
-
-module.exports = baseFunctions;
diff --git a/node_modules/lodash/_baseGet.js b/node_modules/lodash/_baseGet.js
deleted file mode 100644
index a194913..0000000
--- a/node_modules/lodash/_baseGet.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var castPath = require('./_castPath'),
- toKey = require('./_toKey');
-
-/**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
-function baseGet(object, path) {
- path = castPath(path, object);
-
- var index = 0,
- length = path.length;
-
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
- }
- return (index && index == length) ? object : undefined;
-}
-
-module.exports = baseGet;
diff --git a/node_modules/lodash/_baseGetAllKeys.js b/node_modules/lodash/_baseGetAllKeys.js
deleted file mode 100644
index 8ad204e..0000000
--- a/node_modules/lodash/_baseGetAllKeys.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var arrayPush = require('./_arrayPush'),
- isArray = require('./isArray');
-
-/**
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
- * @returns {Array} Returns the array of property names and symbols.
- */
-function baseGetAllKeys(object, keysFunc, symbolsFunc) {
- var result = keysFunc(object);
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
-}
-
-module.exports = baseGetAllKeys;
diff --git a/node_modules/lodash/_baseGetTag.js b/node_modules/lodash/_baseGetTag.js
deleted file mode 100644
index b927ccc..0000000
--- a/node_modules/lodash/_baseGetTag.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var Symbol = require('./_Symbol'),
- getRawTag = require('./_getRawTag'),
- objectToString = require('./_objectToString');
-
-/** `Object#toString` result references. */
-var nullTag = '[object Null]',
- undefinedTag = '[object Undefined]';
-
-/** Built-in value references. */
-var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
-
-/**
- * The base implementation of `getTag` without fallbacks for buggy environments.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
-function baseGetTag(value) {
- if (value == null) {
- return value === undefined ? undefinedTag : nullTag;
- }
- return (symToStringTag && symToStringTag in Object(value))
- ? getRawTag(value)
- : objectToString(value);
-}
-
-module.exports = baseGetTag;
diff --git a/node_modules/lodash/_baseGt.js b/node_modules/lodash/_baseGt.js
deleted file mode 100644
index 502d273..0000000
--- a/node_modules/lodash/_baseGt.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.gt` which doesn't coerce arguments.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- */
-function baseGt(value, other) {
- return value > other;
-}
-
-module.exports = baseGt;
diff --git a/node_modules/lodash/_baseHas.js b/node_modules/lodash/_baseHas.js
deleted file mode 100644
index 1b73032..0000000
--- a/node_modules/lodash/_baseHas.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * The base implementation of `_.has` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
-function baseHas(object, key) {
- return object != null && hasOwnProperty.call(object, key);
-}
-
-module.exports = baseHas;
diff --git a/node_modules/lodash/_baseHasIn.js b/node_modules/lodash/_baseHasIn.js
deleted file mode 100644
index 2e0d042..0000000
--- a/node_modules/lodash/_baseHasIn.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * The base implementation of `_.hasIn` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
-function baseHasIn(object, key) {
- return object != null && key in Object(object);
-}
-
-module.exports = baseHasIn;
diff --git a/node_modules/lodash/_baseInRange.js b/node_modules/lodash/_baseInRange.js
deleted file mode 100644
index ec95666..0000000
--- a/node_modules/lodash/_baseInRange.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max,
- nativeMin = Math.min;
-
-/**
- * The base implementation of `_.inRange` which doesn't coerce arguments.
- *
- * @private
- * @param {number} number The number to check.
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- */
-function baseInRange(number, start, end) {
- return number >= nativeMin(start, end) && number < nativeMax(start, end);
-}
-
-module.exports = baseInRange;
diff --git a/node_modules/lodash/_baseIndexOf.js b/node_modules/lodash/_baseIndexOf.js
deleted file mode 100644
index 167e706..0000000
--- a/node_modules/lodash/_baseIndexOf.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var baseFindIndex = require('./_baseFindIndex'),
- baseIsNaN = require('./_baseIsNaN'),
- strictIndexOf = require('./_strictIndexOf');
-
-/**
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function baseIndexOf(array, value, fromIndex) {
- return value === value
- ? strictIndexOf(array, value, fromIndex)
- : baseFindIndex(array, baseIsNaN, fromIndex);
-}
-
-module.exports = baseIndexOf;
diff --git a/node_modules/lodash/_baseIndexOfWith.js b/node_modules/lodash/_baseIndexOfWith.js
deleted file mode 100644
index f815fe0..0000000
--- a/node_modules/lodash/_baseIndexOfWith.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * This function is like `baseIndexOf` except that it accepts a comparator.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function baseIndexOfWith(array, value, fromIndex, comparator) {
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (comparator(array[index], value)) {
- return index;
- }
- }
- return -1;
-}
-
-module.exports = baseIndexOfWith;
diff --git a/node_modules/lodash/_baseIntersection.js b/node_modules/lodash/_baseIntersection.js
deleted file mode 100644
index c1d250c..0000000
--- a/node_modules/lodash/_baseIntersection.js
+++ /dev/null
@@ -1,74 +0,0 @@
-var SetCache = require('./_SetCache'),
- arrayIncludes = require('./_arrayIncludes'),
- arrayIncludesWith = require('./_arrayIncludesWith'),
- arrayMap = require('./_arrayMap'),
- baseUnary = require('./_baseUnary'),
- cacheHas = require('./_cacheHas');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min;
-
-/**
- * The base implementation of methods like `_.intersection`, without support
- * for iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
- */
-function baseIntersection(arrays, iteratee, comparator) {
- var includes = comparator ? arrayIncludesWith : arrayIncludes,
- length = arrays[0].length,
- othLength = arrays.length,
- othIndex = othLength,
- caches = Array(othLength),
- maxLength = Infinity,
- result = [];
-
- while (othIndex--) {
- var array = arrays[othIndex];
- if (othIndex && iteratee) {
- array = arrayMap(array, baseUnary(iteratee));
- }
- maxLength = nativeMin(array.length, maxLength);
- caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
- ? new SetCache(othIndex && array)
- : undefined;
- }
- array = arrays[0];
-
- var index = -1,
- seen = caches[0];
-
- outer:
- while (++index < length && result.length < maxLength) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (!(seen
- ? cacheHas(seen, computed)
- : includes(result, computed, comparator)
- )) {
- othIndex = othLength;
- while (--othIndex) {
- var cache = caches[othIndex];
- if (!(cache
- ? cacheHas(cache, computed)
- : includes(arrays[othIndex], computed, comparator))
- ) {
- continue outer;
- }
- }
- if (seen) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
-}
-
-module.exports = baseIntersection;
diff --git a/node_modules/lodash/_baseInverter.js b/node_modules/lodash/_baseInverter.js
deleted file mode 100644
index fbc337f..0000000
--- a/node_modules/lodash/_baseInverter.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var baseForOwn = require('./_baseForOwn');
-
-/**
- * The base implementation of `_.invert` and `_.invertBy` which inverts
- * `object` with values transformed by `iteratee` and set by `setter`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform values.
- * @param {Object} accumulator The initial inverted object.
- * @returns {Function} Returns `accumulator`.
- */
-function baseInverter(object, setter, iteratee, accumulator) {
- baseForOwn(object, function(value, key, object) {
- setter(accumulator, iteratee(value), key, object);
- });
- return accumulator;
-}
-
-module.exports = baseInverter;
diff --git a/node_modules/lodash/_baseInvoke.js b/node_modules/lodash/_baseInvoke.js
deleted file mode 100644
index 49bcf3c..0000000
--- a/node_modules/lodash/_baseInvoke.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var apply = require('./_apply'),
- castPath = require('./_castPath'),
- last = require('./last'),
- parent = require('./_parent'),
- toKey = require('./_toKey');
-
-/**
- * The base implementation of `_.invoke` without support for individual
- * method arguments.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {Array} args The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- */
-function baseInvoke(object, path, args) {
- path = castPath(path, object);
- object = parent(object, path);
- var func = object == null ? object : object[toKey(last(path))];
- return func == null ? undefined : apply(func, object, args);
-}
-
-module.exports = baseInvoke;
diff --git a/node_modules/lodash/_baseIsArguments.js b/node_modules/lodash/_baseIsArguments.js
deleted file mode 100644
index b3562cc..0000000
--- a/node_modules/lodash/_baseIsArguments.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]';
-
-/**
- * The base implementation of `_.isArguments`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- */
-function baseIsArguments(value) {
- return isObjectLike(value) && baseGetTag(value) == argsTag;
-}
-
-module.exports = baseIsArguments;
diff --git a/node_modules/lodash/_baseIsArrayBuffer.js b/node_modules/lodash/_baseIsArrayBuffer.js
deleted file mode 100644
index a2c4f30..0000000
--- a/node_modules/lodash/_baseIsArrayBuffer.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-var arrayBufferTag = '[object ArrayBuffer]';
-
-/**
- * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
- */
-function baseIsArrayBuffer(value) {
- return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
-}
-
-module.exports = baseIsArrayBuffer;
diff --git a/node_modules/lodash/_baseIsDate.js b/node_modules/lodash/_baseIsDate.js
deleted file mode 100644
index ba67c78..0000000
--- a/node_modules/lodash/_baseIsDate.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var dateTag = '[object Date]';
-
-/**
- * The base implementation of `_.isDate` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
- */
-function baseIsDate(value) {
- return isObjectLike(value) && baseGetTag(value) == dateTag;
-}
-
-module.exports = baseIsDate;
diff --git a/node_modules/lodash/_baseIsEqual.js b/node_modules/lodash/_baseIsEqual.js
deleted file mode 100644
index 00a68a4..0000000
--- a/node_modules/lodash/_baseIsEqual.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseIsEqualDeep = require('./_baseIsEqualDeep'),
- isObjectLike = require('./isObjectLike');
-
-/**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {boolean} bitmask The bitmask flags.
- * 1 - Unordered comparison
- * 2 - Partial comparison
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
-function baseIsEqual(value, other, bitmask, customizer, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
-}
-
-module.exports = baseIsEqual;
diff --git a/node_modules/lodash/_baseIsEqualDeep.js b/node_modules/lodash/_baseIsEqualDeep.js
deleted file mode 100644
index e3cfd6a..0000000
--- a/node_modules/lodash/_baseIsEqualDeep.js
+++ /dev/null
@@ -1,83 +0,0 @@
-var Stack = require('./_Stack'),
- equalArrays = require('./_equalArrays'),
- equalByTag = require('./_equalByTag'),
- equalObjects = require('./_equalObjects'),
- getTag = require('./_getTag'),
- isArray = require('./isArray'),
- isBuffer = require('./isBuffer'),
- isTypedArray = require('./isTypedArray');
-
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1;
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- objectTag = '[object Object]';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = objIsArr ? arrayTag : getTag(object),
- othTag = othIsArr ? arrayTag : getTag(other);
-
- objTag = objTag == argsTag ? objectTag : objTag;
- othTag = othTag == argsTag ? objectTag : othTag;
-
- var objIsObj = objTag == objectTag,
- othIsObj = othTag == objectTag,
- isSameTag = objTag == othTag;
-
- if (isSameTag && isBuffer(object)) {
- if (!isBuffer(other)) {
- return false;
- }
- objIsArr = true;
- objIsObj = false;
- }
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack);
- return (objIsArr || isTypedArray(object))
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
-
- stack || (stack = new Stack);
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack);
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
-}
-
-module.exports = baseIsEqualDeep;
diff --git a/node_modules/lodash/_baseIsMap.js b/node_modules/lodash/_baseIsMap.js
deleted file mode 100644
index 02a4021..0000000
--- a/node_modules/lodash/_baseIsMap.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var getTag = require('./_getTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]';
-
-/**
- * The base implementation of `_.isMap` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
- */
-function baseIsMap(value) {
- return isObjectLike(value) && getTag(value) == mapTag;
-}
-
-module.exports = baseIsMap;
diff --git a/node_modules/lodash/_baseIsMatch.js b/node_modules/lodash/_baseIsMatch.js
deleted file mode 100644
index 72494be..0000000
--- a/node_modules/lodash/_baseIsMatch.js
+++ /dev/null
@@ -1,62 +0,0 @@
-var Stack = require('./_Stack'),
- baseIsEqual = require('./_baseIsEqual');
-
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
-
-/**
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Array} matchData The property names, values, and compare flags to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- */
-function baseIsMatch(object, source, matchData, customizer) {
- var index = matchData.length,
- length = index,
- noCustomizer = !customizer;
-
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (index--) {
- var data = matchData[index];
- if ((noCustomizer && data[2])
- ? data[1] !== object[data[0]]
- : !(data[0] in object)
- ) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0],
- objValue = object[key],
- srcValue = data[1];
-
- if (noCustomizer && data[2]) {
- if (objValue === undefined && !(key in object)) {
- return false;
- }
- } else {
- var stack = new Stack;
- if (customizer) {
- var result = customizer(objValue, srcValue, key, object, source, stack);
- }
- if (!(result === undefined
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
- : result
- )) {
- return false;
- }
- }
- }
- return true;
-}
-
-module.exports = baseIsMatch;
diff --git a/node_modules/lodash/_baseIsNaN.js b/node_modules/lodash/_baseIsNaN.js
deleted file mode 100644
index 316f1eb..0000000
--- a/node_modules/lodash/_baseIsNaN.js
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * The base implementation of `_.isNaN` without support for number objects.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- */
-function baseIsNaN(value) {
- return value !== value;
-}
-
-module.exports = baseIsNaN;
diff --git a/node_modules/lodash/_baseIsNative.js b/node_modules/lodash/_baseIsNative.js
deleted file mode 100644
index 8702330..0000000
--- a/node_modules/lodash/_baseIsNative.js
+++ /dev/null
@@ -1,47 +0,0 @@
-var isFunction = require('./isFunction'),
- isMasked = require('./_isMasked'),
- isObject = require('./isObject'),
- toSource = require('./_toSource');
-
-/**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
- */
-var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
-
-/** Used to detect host constructors (Safari). */
-var reIsHostCtor = /^\[object .+?Constructor\]$/;
-
-/** Used for built-in method references. */
-var funcProto = Function.prototype,
- objectProto = Object.prototype;
-
-/** Used to resolve the decompiled source of functions. */
-var funcToString = funcProto.toString;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/** Used to detect if a method is native. */
-var reIsNative = RegExp('^' +
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
-);
-
-/**
- * The base implementation of `_.isNative` without bad shim checks.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- */
-function baseIsNative(value) {
- if (!isObject(value) || isMasked(value)) {
- return false;
- }
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
- return pattern.test(toSource(value));
-}
-
-module.exports = baseIsNative;
diff --git a/node_modules/lodash/_baseIsRegExp.js b/node_modules/lodash/_baseIsRegExp.js
deleted file mode 100644
index 6cd7c1a..0000000
--- a/node_modules/lodash/_baseIsRegExp.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var regexpTag = '[object RegExp]';
-
-/**
- * The base implementation of `_.isRegExp` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- */
-function baseIsRegExp(value) {
- return isObjectLike(value) && baseGetTag(value) == regexpTag;
-}
-
-module.exports = baseIsRegExp;
diff --git a/node_modules/lodash/_baseIsSet.js b/node_modules/lodash/_baseIsSet.js
deleted file mode 100644
index 6dee367..0000000
--- a/node_modules/lodash/_baseIsSet.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var getTag = require('./_getTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var setTag = '[object Set]';
-
-/**
- * The base implementation of `_.isSet` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
- */
-function baseIsSet(value) {
- return isObjectLike(value) && getTag(value) == setTag;
-}
-
-module.exports = baseIsSet;
diff --git a/node_modules/lodash/_baseIsTypedArray.js b/node_modules/lodash/_baseIsTypedArray.js
deleted file mode 100644
index 1edb32f..0000000
--- a/node_modules/lodash/_baseIsTypedArray.js
+++ /dev/null
@@ -1,60 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isLength = require('./isLength'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- weakMapTag = '[object WeakMap]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
-
-/** Used to identify `toStringTag` values of typed arrays. */
-var typedArrayTags = {};
-typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
-typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
-typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
-typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
-typedArrayTags[uint32Tag] = true;
-typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
-typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
-typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
-typedArrayTags[errorTag] = typedArrayTags[funcTag] =
-typedArrayTags[mapTag] = typedArrayTags[numberTag] =
-typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
-typedArrayTags[setTag] = typedArrayTags[stringTag] =
-typedArrayTags[weakMapTag] = false;
-
-/**
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
- */
-function baseIsTypedArray(value) {
- return isObjectLike(value) &&
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
-}
-
-module.exports = baseIsTypedArray;
diff --git a/node_modules/lodash/_baseIteratee.js b/node_modules/lodash/_baseIteratee.js
deleted file mode 100644
index 995c257..0000000
--- a/node_modules/lodash/_baseIteratee.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseMatches = require('./_baseMatches'),
- baseMatchesProperty = require('./_baseMatchesProperty'),
- identity = require('./identity'),
- isArray = require('./isArray'),
- property = require('./property');
-
-/**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
-function baseIteratee(value) {
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
- if (typeof value == 'function') {
- return value;
- }
- if (value == null) {
- return identity;
- }
- if (typeof value == 'object') {
- return isArray(value)
- ? baseMatchesProperty(value[0], value[1])
- : baseMatches(value);
- }
- return property(value);
-}
-
-module.exports = baseIteratee;
diff --git a/node_modules/lodash/_baseKeys.js b/node_modules/lodash/_baseKeys.js
deleted file mode 100644
index 45e9e6f..0000000
--- a/node_modules/lodash/_baseKeys.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var isPrototype = require('./_isPrototype'),
- nativeKeys = require('./_nativeKeys');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function baseKeys(object) {
- if (!isPrototype(object)) {
- return nativeKeys(object);
- }
- var result = [];
- for (var key in Object(object)) {
- if (hasOwnProperty.call(object, key) && key != 'constructor') {
- result.push(key);
- }
- }
- return result;
-}
-
-module.exports = baseKeys;
diff --git a/node_modules/lodash/_baseKeysIn.js b/node_modules/lodash/_baseKeysIn.js
deleted file mode 100644
index ea8a0a1..0000000
--- a/node_modules/lodash/_baseKeysIn.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var isObject = require('./isObject'),
- isPrototype = require('./_isPrototype'),
- nativeKeysIn = require('./_nativeKeysIn');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function baseKeysIn(object) {
- if (!isObject(object)) {
- return nativeKeysIn(object);
- }
- var isProto = isPrototype(object),
- result = [];
-
- for (var key in object) {
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
- result.push(key);
- }
- }
- return result;
-}
-
-module.exports = baseKeysIn;
diff --git a/node_modules/lodash/_baseLodash.js b/node_modules/lodash/_baseLodash.js
deleted file mode 100644
index f76c790..0000000
--- a/node_modules/lodash/_baseLodash.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * The function whose prototype chain sequence wrappers inherit from.
- *
- * @private
- */
-function baseLodash() {
- // No operation performed.
-}
-
-module.exports = baseLodash;
diff --git a/node_modules/lodash/_baseLt.js b/node_modules/lodash/_baseLt.js
deleted file mode 100644
index 8674d29..0000000
--- a/node_modules/lodash/_baseLt.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.lt` which doesn't coerce arguments.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- */
-function baseLt(value, other) {
- return value < other;
-}
-
-module.exports = baseLt;
diff --git a/node_modules/lodash/_baseMap.js b/node_modules/lodash/_baseMap.js
deleted file mode 100644
index 0bf5cea..0000000
--- a/node_modules/lodash/_baseMap.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseEach = require('./_baseEach'),
- isArrayLike = require('./isArrayLike');
-
-/**
- * The base implementation of `_.map` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
-function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
- return result;
-}
-
-module.exports = baseMap;
diff --git a/node_modules/lodash/_baseMatches.js b/node_modules/lodash/_baseMatches.js
deleted file mode 100644
index e56582a..0000000
--- a/node_modules/lodash/_baseMatches.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseIsMatch = require('./_baseIsMatch'),
- getMatchData = require('./_getMatchData'),
- matchesStrictComparable = require('./_matchesStrictComparable');
-
-/**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
-function baseMatches(source) {
- var matchData = getMatchData(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
- }
- return function(object) {
- return object === source || baseIsMatch(object, source, matchData);
- };
-}
-
-module.exports = baseMatches;
diff --git a/node_modules/lodash/_baseMatchesProperty.js b/node_modules/lodash/_baseMatchesProperty.js
deleted file mode 100644
index 24afd89..0000000
--- a/node_modules/lodash/_baseMatchesProperty.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseIsEqual = require('./_baseIsEqual'),
- get = require('./get'),
- hasIn = require('./hasIn'),
- isKey = require('./_isKey'),
- isStrictComparable = require('./_isStrictComparable'),
- matchesStrictComparable = require('./_matchesStrictComparable'),
- toKey = require('./_toKey');
-
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
-
-/**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
- *
- * @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
-function baseMatchesProperty(path, srcValue) {
- if (isKey(path) && isStrictComparable(srcValue)) {
- return matchesStrictComparable(toKey(path), srcValue);
- }
- return function(object) {
- var objValue = get(object, path);
- return (objValue === undefined && objValue === srcValue)
- ? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
- };
-}
-
-module.exports = baseMatchesProperty;
diff --git a/node_modules/lodash/_baseMean.js b/node_modules/lodash/_baseMean.js
deleted file mode 100644
index fa9e00a..0000000
--- a/node_modules/lodash/_baseMean.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var baseSum = require('./_baseSum');
-
-/** Used as references for various `Number` constants. */
-var NAN = 0 / 0;
-
-/**
- * The base implementation of `_.mean` and `_.meanBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the mean.
- */
-function baseMean(array, iteratee) {
- var length = array == null ? 0 : array.length;
- return length ? (baseSum(array, iteratee) / length) : NAN;
-}
-
-module.exports = baseMean;
diff --git a/node_modules/lodash/_baseMerge.js b/node_modules/lodash/_baseMerge.js
deleted file mode 100644
index c98b5eb..0000000
--- a/node_modules/lodash/_baseMerge.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var Stack = require('./_Stack'),
- assignMergeValue = require('./_assignMergeValue'),
- baseFor = require('./_baseFor'),
- baseMergeDeep = require('./_baseMergeDeep'),
- isObject = require('./isObject'),
- keysIn = require('./keysIn'),
- safeGet = require('./_safeGet');
-
-/**
- * The base implementation of `_.merge` without support for multiple sources.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
-function baseMerge(object, source, srcIndex, customizer, stack) {
- if (object === source) {
- return;
- }
- baseFor(source, function(srcValue, key) {
- stack || (stack = new Stack);
- if (isObject(srcValue)) {
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
- }
- else {
- var newValue = customizer
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
- : undefined;
-
- if (newValue === undefined) {
- newValue = srcValue;
- }
- assignMergeValue(object, key, newValue);
- }
- }, keysIn);
-}
-
-module.exports = baseMerge;
diff --git a/node_modules/lodash/_baseMergeDeep.js b/node_modules/lodash/_baseMergeDeep.js
deleted file mode 100644
index 4679e8d..0000000
--- a/node_modules/lodash/_baseMergeDeep.js
+++ /dev/null
@@ -1,94 +0,0 @@
-var assignMergeValue = require('./_assignMergeValue'),
- cloneBuffer = require('./_cloneBuffer'),
- cloneTypedArray = require('./_cloneTypedArray'),
- copyArray = require('./_copyArray'),
- initCloneObject = require('./_initCloneObject'),
- isArguments = require('./isArguments'),
- isArray = require('./isArray'),
- isArrayLikeObject = require('./isArrayLikeObject'),
- isBuffer = require('./isBuffer'),
- isFunction = require('./isFunction'),
- isObject = require('./isObject'),
- isPlainObject = require('./isPlainObject'),
- isTypedArray = require('./isTypedArray'),
- safeGet = require('./_safeGet'),
- toPlainObject = require('./toPlainObject');
-
-/**
- * A specialized version of `baseMerge` for arrays and objects which performs
- * deep merges and tracks traversed objects enabling objects with circular
- * references to be merged.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {string} key The key of the value to merge.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} mergeFunc The function to merge values.
- * @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
-function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
- var objValue = safeGet(object, key),
- srcValue = safeGet(source, key),
- stacked = stack.get(srcValue);
-
- if (stacked) {
- assignMergeValue(object, key, stacked);
- return;
- }
- var newValue = customizer
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
- : undefined;
-
- var isCommon = newValue === undefined;
-
- if (isCommon) {
- var isArr = isArray(srcValue),
- isBuff = !isArr && isBuffer(srcValue),
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
-
- newValue = srcValue;
- if (isArr || isBuff || isTyped) {
- if (isArray(objValue)) {
- newValue = objValue;
- }
- else if (isArrayLikeObject(objValue)) {
- newValue = copyArray(objValue);
- }
- else if (isBuff) {
- isCommon = false;
- newValue = cloneBuffer(srcValue, true);
- }
- else if (isTyped) {
- isCommon = false;
- newValue = cloneTypedArray(srcValue, true);
- }
- else {
- newValue = [];
- }
- }
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
- newValue = objValue;
- if (isArguments(objValue)) {
- newValue = toPlainObject(objValue);
- }
- else if (!isObject(objValue) || isFunction(objValue)) {
- newValue = initCloneObject(srcValue);
- }
- }
- else {
- isCommon = false;
- }
- }
- if (isCommon) {
- // Recursively merge objects and arrays (susceptible to call stack limits).
- stack.set(srcValue, newValue);
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
- stack['delete'](srcValue);
- }
- assignMergeValue(object, key, newValue);
-}
-
-module.exports = baseMergeDeep;
diff --git a/node_modules/lodash/_baseNth.js b/node_modules/lodash/_baseNth.js
deleted file mode 100644
index 0403c2a..0000000
--- a/node_modules/lodash/_baseNth.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var isIndex = require('./_isIndex');
-
-/**
- * The base implementation of `_.nth` which doesn't coerce arguments.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {number} n The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- */
-function baseNth(array, n) {
- var length = array.length;
- if (!length) {
- return;
- }
- n += n < 0 ? length : 0;
- return isIndex(n, length) ? array[n] : undefined;
-}
-
-module.exports = baseNth;
diff --git a/node_modules/lodash/_baseOrderBy.js b/node_modules/lodash/_baseOrderBy.js
deleted file mode 100644
index d8a46ab..0000000
--- a/node_modules/lodash/_baseOrderBy.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIteratee = require('./_baseIteratee'),
- baseMap = require('./_baseMap'),
- baseSortBy = require('./_baseSortBy'),
- baseUnary = require('./_baseUnary'),
- compareMultiple = require('./_compareMultiple'),
- identity = require('./identity');
-
-/**
- * The base implementation of `_.orderBy` without param guards.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
- * @param {string[]} orders The sort orders of `iteratees`.
- * @returns {Array} Returns the new sorted array.
- */
-function baseOrderBy(collection, iteratees, orders) {
- var index = -1;
- iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
-
- var result = baseMap(collection, function(value, key, collection) {
- var criteria = arrayMap(iteratees, function(iteratee) {
- return iteratee(value);
- });
- return { 'criteria': criteria, 'index': ++index, 'value': value };
- });
-
- return baseSortBy(result, function(object, other) {
- return compareMultiple(object, other, orders);
- });
-}
-
-module.exports = baseOrderBy;
diff --git a/node_modules/lodash/_basePick.js b/node_modules/lodash/_basePick.js
deleted file mode 100644
index 09b458a..0000000
--- a/node_modules/lodash/_basePick.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var basePickBy = require('./_basePickBy'),
- hasIn = require('./hasIn');
-
-/**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} paths The property paths to pick.
- * @returns {Object} Returns the new object.
- */
-function basePick(object, paths) {
- return basePickBy(object, paths, function(value, path) {
- return hasIn(object, path);
- });
-}
-
-module.exports = basePick;
diff --git a/node_modules/lodash/_basePickBy.js b/node_modules/lodash/_basePickBy.js
deleted file mode 100644
index 85be68c..0000000
--- a/node_modules/lodash/_basePickBy.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var baseGet = require('./_baseGet'),
- baseSet = require('./_baseSet'),
- castPath = require('./_castPath');
-
-/**
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} paths The property paths to pick.
- * @param {Function} predicate The function invoked per property.
- * @returns {Object} Returns the new object.
- */
-function basePickBy(object, paths, predicate) {
- var index = -1,
- length = paths.length,
- result = {};
-
- while (++index < length) {
- var path = paths[index],
- value = baseGet(object, path);
-
- if (predicate(value, path)) {
- baseSet(result, castPath(path, object), value);
- }
- }
- return result;
-}
-
-module.exports = basePickBy;
diff --git a/node_modules/lodash/_baseProperty.js b/node_modules/lodash/_baseProperty.js
deleted file mode 100644
index 496281e..0000000
--- a/node_modules/lodash/_baseProperty.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
-function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
-}
-
-module.exports = baseProperty;
diff --git a/node_modules/lodash/_basePropertyDeep.js b/node_modules/lodash/_basePropertyDeep.js
deleted file mode 100644
index 1e5aae5..0000000
--- a/node_modules/lodash/_basePropertyDeep.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var baseGet = require('./_baseGet');
-
-/**
- * A specialized version of `baseProperty` which supports deep paths.
- *
- * @private
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
-function basePropertyDeep(path) {
- return function(object) {
- return baseGet(object, path);
- };
-}
-
-module.exports = basePropertyDeep;
diff --git a/node_modules/lodash/_basePropertyOf.js b/node_modules/lodash/_basePropertyOf.js
deleted file mode 100644
index 4617399..0000000
--- a/node_modules/lodash/_basePropertyOf.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.propertyOf` without support for deep paths.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Function} Returns the new accessor function.
- */
-function basePropertyOf(object) {
- return function(key) {
- return object == null ? undefined : object[key];
- };
-}
-
-module.exports = basePropertyOf;
diff --git a/node_modules/lodash/_basePullAll.js b/node_modules/lodash/_basePullAll.js
deleted file mode 100644
index 305720e..0000000
--- a/node_modules/lodash/_basePullAll.js
+++ /dev/null
@@ -1,51 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIndexOf = require('./_baseIndexOf'),
- baseIndexOfWith = require('./_baseIndexOfWith'),
- baseUnary = require('./_baseUnary'),
- copyArray = require('./_copyArray');
-
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/** Built-in value references. */
-var splice = arrayProto.splice;
-
-/**
- * The base implementation of `_.pullAllBy` without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- */
-function basePullAll(array, values, iteratee, comparator) {
- var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
- index = -1,
- length = values.length,
- seen = array;
-
- if (array === values) {
- values = copyArray(values);
- }
- if (iteratee) {
- seen = arrayMap(array, baseUnary(iteratee));
- }
- while (++index < length) {
- var fromIndex = 0,
- value = values[index],
- computed = iteratee ? iteratee(value) : value;
-
- while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
- if (seen !== array) {
- splice.call(seen, fromIndex, 1);
- }
- splice.call(array, fromIndex, 1);
- }
- }
- return array;
-}
-
-module.exports = basePullAll;
diff --git a/node_modules/lodash/_basePullAt.js b/node_modules/lodash/_basePullAt.js
deleted file mode 100644
index c3e9e71..0000000
--- a/node_modules/lodash/_basePullAt.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseUnset = require('./_baseUnset'),
- isIndex = require('./_isIndex');
-
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/** Built-in value references. */
-var splice = arrayProto.splice;
-
-/**
- * The base implementation of `_.pullAt` without support for individual
- * indexes or capturing the removed elements.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {number[]} indexes The indexes of elements to remove.
- * @returns {Array} Returns `array`.
- */
-function basePullAt(array, indexes) {
- var length = array ? indexes.length : 0,
- lastIndex = length - 1;
-
- while (length--) {
- var index = indexes[length];
- if (length == lastIndex || index !== previous) {
- var previous = index;
- if (isIndex(index)) {
- splice.call(array, index, 1);
- } else {
- baseUnset(array, index);
- }
- }
- }
- return array;
-}
-
-module.exports = basePullAt;
diff --git a/node_modules/lodash/_baseRandom.js b/node_modules/lodash/_baseRandom.js
deleted file mode 100644
index 94f76a7..0000000
--- a/node_modules/lodash/_baseRandom.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeFloor = Math.floor,
- nativeRandom = Math.random;
-
-/**
- * The base implementation of `_.random` without support for returning
- * floating-point numbers.
- *
- * @private
- * @param {number} lower The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the random number.
- */
-function baseRandom(lower, upper) {
- return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
-}
-
-module.exports = baseRandom;
diff --git a/node_modules/lodash/_baseRange.js b/node_modules/lodash/_baseRange.js
deleted file mode 100644
index 0fb8e41..0000000
--- a/node_modules/lodash/_baseRange.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeCeil = Math.ceil,
- nativeMax = Math.max;
-
-/**
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
- * coerce arguments.
- *
- * @private
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @param {number} step The value to increment or decrement by.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the range of numbers.
- */
-function baseRange(start, end, step, fromRight) {
- var index = -1,
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
- result = Array(length);
-
- while (length--) {
- result[fromRight ? length : ++index] = start;
- start += step;
- }
- return result;
-}
-
-module.exports = baseRange;
diff --git a/node_modules/lodash/_baseReduce.js b/node_modules/lodash/_baseReduce.js
deleted file mode 100644
index 5a1f8b5..0000000
--- a/node_modules/lodash/_baseReduce.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of
- * `collection` as the initial value.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the accumulated value.
- */
-function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
- eachFunc(collection, function(value, index, collection) {
- accumulator = initAccum
- ? (initAccum = false, value)
- : iteratee(accumulator, value, index, collection);
- });
- return accumulator;
-}
-
-module.exports = baseReduce;
diff --git a/node_modules/lodash/_baseRepeat.js b/node_modules/lodash/_baseRepeat.js
deleted file mode 100644
index ee44c31..0000000
--- a/node_modules/lodash/_baseRepeat.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeFloor = Math.floor;
-
-/**
- * The base implementation of `_.repeat` which doesn't coerce arguments.
- *
- * @private
- * @param {string} string The string to repeat.
- * @param {number} n The number of times to repeat the string.
- * @returns {string} Returns the repeated string.
- */
-function baseRepeat(string, n) {
- var result = '';
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
- return result;
- }
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
- do {
- if (n % 2) {
- result += string;
- }
- n = nativeFloor(n / 2);
- if (n) {
- string += string;
- }
- } while (n);
-
- return result;
-}
-
-module.exports = baseRepeat;
diff --git a/node_modules/lodash/_baseRest.js b/node_modules/lodash/_baseRest.js
deleted file mode 100644
index d0dc4bd..0000000
--- a/node_modules/lodash/_baseRest.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var identity = require('./identity'),
- overRest = require('./_overRest'),
- setToString = require('./_setToString');
-
-/**
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- */
-function baseRest(func, start) {
- return setToString(overRest(func, start, identity), func + '');
-}
-
-module.exports = baseRest;
diff --git a/node_modules/lodash/_baseSample.js b/node_modules/lodash/_baseSample.js
deleted file mode 100644
index 58582b9..0000000
--- a/node_modules/lodash/_baseSample.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var arraySample = require('./_arraySample'),
- values = require('./values');
-
-/**
- * The base implementation of `_.sample`.
- *
- * @private
- * @param {Array|Object} collection The collection to sample.
- * @returns {*} Returns the random element.
- */
-function baseSample(collection) {
- return arraySample(values(collection));
-}
-
-module.exports = baseSample;
diff --git a/node_modules/lodash/_baseSampleSize.js b/node_modules/lodash/_baseSampleSize.js
deleted file mode 100644
index 5c90ec5..0000000
--- a/node_modules/lodash/_baseSampleSize.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseClamp = require('./_baseClamp'),
- shuffleSelf = require('./_shuffleSelf'),
- values = require('./values');
-
-/**
- * The base implementation of `_.sampleSize` without param guards.
- *
- * @private
- * @param {Array|Object} collection The collection to sample.
- * @param {number} n The number of elements to sample.
- * @returns {Array} Returns the random elements.
- */
-function baseSampleSize(collection, n) {
- var array = values(collection);
- return shuffleSelf(array, baseClamp(n, 0, array.length));
-}
-
-module.exports = baseSampleSize;
diff --git a/node_modules/lodash/_baseSet.js b/node_modules/lodash/_baseSet.js
deleted file mode 100644
index 612a24c..0000000
--- a/node_modules/lodash/_baseSet.js
+++ /dev/null
@@ -1,47 +0,0 @@
-var assignValue = require('./_assignValue'),
- castPath = require('./_castPath'),
- isIndex = require('./_isIndex'),
- isObject = require('./isObject'),
- toKey = require('./_toKey');
-
-/**
- * The base implementation of `_.set`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
-function baseSet(object, path, value, customizer) {
- if (!isObject(object)) {
- return object;
- }
- path = castPath(path, object);
-
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- nested = object;
-
- while (nested != null && ++index < length) {
- var key = toKey(path[index]),
- newValue = value;
-
- if (index != lastIndex) {
- var objValue = nested[key];
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
- if (newValue === undefined) {
- newValue = isObject(objValue)
- ? objValue
- : (isIndex(path[index + 1]) ? [] : {});
- }
- }
- assignValue(nested, key, newValue);
- nested = nested[key];
- }
- return object;
-}
-
-module.exports = baseSet;
diff --git a/node_modules/lodash/_baseSetData.js b/node_modules/lodash/_baseSetData.js
deleted file mode 100644
index c409947..0000000
--- a/node_modules/lodash/_baseSetData.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var identity = require('./identity'),
- metaMap = require('./_metaMap');
-
-/**
- * The base implementation of `setData` without support for hot loop shorting.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
-var baseSetData = !metaMap ? identity : function(func, data) {
- metaMap.set(func, data);
- return func;
-};
-
-module.exports = baseSetData;
diff --git a/node_modules/lodash/_baseSetToString.js b/node_modules/lodash/_baseSetToString.js
deleted file mode 100644
index 89eaca3..0000000
--- a/node_modules/lodash/_baseSetToString.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var constant = require('./constant'),
- defineProperty = require('./_defineProperty'),
- identity = require('./identity');
-
-/**
- * The base implementation of `setToString` without support for hot loop shorting.
- *
- * @private
- * @param {Function} func The function to modify.
- * @param {Function} string The `toString` result.
- * @returns {Function} Returns `func`.
- */
-var baseSetToString = !defineProperty ? identity : function(func, string) {
- return defineProperty(func, 'toString', {
- 'configurable': true,
- 'enumerable': false,
- 'value': constant(string),
- 'writable': true
- });
-};
-
-module.exports = baseSetToString;
diff --git a/node_modules/lodash/_baseShuffle.js b/node_modules/lodash/_baseShuffle.js
deleted file mode 100644
index 023077a..0000000
--- a/node_modules/lodash/_baseShuffle.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var shuffleSelf = require('./_shuffleSelf'),
- values = require('./values');
-
-/**
- * The base implementation of `_.shuffle`.
- *
- * @private
- * @param {Array|Object} collection The collection to shuffle.
- * @returns {Array} Returns the new shuffled array.
- */
-function baseShuffle(collection) {
- return shuffleSelf(values(collection));
-}
-
-module.exports = baseShuffle;
diff --git a/node_modules/lodash/_baseSlice.js b/node_modules/lodash/_baseSlice.js
deleted file mode 100644
index 786f6c9..0000000
--- a/node_modules/lodash/_baseSlice.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
-function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
-}
-
-module.exports = baseSlice;
diff --git a/node_modules/lodash/_baseSome.js b/node_modules/lodash/_baseSome.js
deleted file mode 100644
index 58f3f44..0000000
--- a/node_modules/lodash/_baseSome.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseEach = require('./_baseEach');
-
-/**
- * The base implementation of `_.some` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
-function baseSome(collection, predicate) {
- var result;
-
- baseEach(collection, function(value, index, collection) {
- result = predicate(value, index, collection);
- return !result;
- });
- return !!result;
-}
-
-module.exports = baseSome;
diff --git a/node_modules/lodash/_baseSortBy.js b/node_modules/lodash/_baseSortBy.js
deleted file mode 100644
index a25c92e..0000000
--- a/node_modules/lodash/_baseSortBy.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * The base implementation of `_.sortBy` which uses `comparer` to define the
- * sort order of `array` and replaces criteria objects with their corresponding
- * values.
- *
- * @private
- * @param {Array} array The array to sort.
- * @param {Function} comparer The function to define sort order.
- * @returns {Array} Returns `array`.
- */
-function baseSortBy(array, comparer) {
- var length = array.length;
-
- array.sort(comparer);
- while (length--) {
- array[length] = array[length].value;
- }
- return array;
-}
-
-module.exports = baseSortBy;
diff --git a/node_modules/lodash/_baseSortedIndex.js b/node_modules/lodash/_baseSortedIndex.js
deleted file mode 100644
index 638c366..0000000
--- a/node_modules/lodash/_baseSortedIndex.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var baseSortedIndexBy = require('./_baseSortedIndexBy'),
- identity = require('./identity'),
- isSymbol = require('./isSymbol');
-
-/** Used as references for the maximum length and index of an array. */
-var MAX_ARRAY_LENGTH = 4294967295,
- HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
-
-/**
- * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
- * performs a binary search of `array` to determine the index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
-function baseSortedIndex(array, value, retHighest) {
- var low = 0,
- high = array == null ? low : array.length;
-
- if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
- while (low < high) {
- var mid = (low + high) >>> 1,
- computed = array[mid];
-
- if (computed !== null && !isSymbol(computed) &&
- (retHighest ? (computed <= value) : (computed < value))) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return high;
- }
- return baseSortedIndexBy(array, value, identity, retHighest);
-}
-
-module.exports = baseSortedIndex;
diff --git a/node_modules/lodash/_baseSortedIndexBy.js b/node_modules/lodash/_baseSortedIndexBy.js
deleted file mode 100644
index bb22e36..0000000
--- a/node_modules/lodash/_baseSortedIndexBy.js
+++ /dev/null
@@ -1,64 +0,0 @@
-var isSymbol = require('./isSymbol');
-
-/** Used as references for the maximum length and index of an array. */
-var MAX_ARRAY_LENGTH = 4294967295,
- MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeFloor = Math.floor,
- nativeMin = Math.min;
-
-/**
- * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
- * which invokes `iteratee` for `value` and each element of `array` to compute
- * their sort ranking. The iteratee is invoked with one argument; (value).
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} iteratee The iteratee invoked per element.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
-function baseSortedIndexBy(array, value, iteratee, retHighest) {
- value = iteratee(value);
-
- var low = 0,
- high = array == null ? 0 : array.length,
- valIsNaN = value !== value,
- valIsNull = value === null,
- valIsSymbol = isSymbol(value),
- valIsUndefined = value === undefined;
-
- while (low < high) {
- var mid = nativeFloor((low + high) / 2),
- computed = iteratee(array[mid]),
- othIsDefined = computed !== undefined,
- othIsNull = computed === null,
- othIsReflexive = computed === computed,
- othIsSymbol = isSymbol(computed);
-
- if (valIsNaN) {
- var setLow = retHighest || othIsReflexive;
- } else if (valIsUndefined) {
- setLow = othIsReflexive && (retHighest || othIsDefined);
- } else if (valIsNull) {
- setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
- } else if (valIsSymbol) {
- setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
- } else if (othIsNull || othIsSymbol) {
- setLow = false;
- } else {
- setLow = retHighest ? (computed <= value) : (computed < value);
- }
- if (setLow) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return nativeMin(high, MAX_ARRAY_INDEX);
-}
-
-module.exports = baseSortedIndexBy;
diff --git a/node_modules/lodash/_baseSortedUniq.js b/node_modules/lodash/_baseSortedUniq.js
deleted file mode 100644
index 802159a..0000000
--- a/node_modules/lodash/_baseSortedUniq.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var eq = require('./eq');
-
-/**
- * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
-function baseSortedUniq(array, iteratee) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- if (!index || !eq(computed, seen)) {
- var seen = computed;
- result[resIndex++] = value === 0 ? 0 : value;
- }
- }
- return result;
-}
-
-module.exports = baseSortedUniq;
diff --git a/node_modules/lodash/_baseSum.js b/node_modules/lodash/_baseSum.js
deleted file mode 100644
index a9e84c1..0000000
--- a/node_modules/lodash/_baseSum.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * The base implementation of `_.sum` and `_.sumBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the sum.
- */
-function baseSum(array, iteratee) {
- var result,
- index = -1,
- length = array.length;
-
- while (++index < length) {
- var current = iteratee(array[index]);
- if (current !== undefined) {
- result = result === undefined ? current : (result + current);
- }
- }
- return result;
-}
-
-module.exports = baseSum;
diff --git a/node_modules/lodash/_baseTimes.js b/node_modules/lodash/_baseTimes.js
deleted file mode 100644
index 0603fc3..0000000
--- a/node_modules/lodash/_baseTimes.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * The base implementation of `_.times` without support for iteratee shorthands
- * or max array length checks.
- *
- * @private
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- */
-function baseTimes(n, iteratee) {
- var index = -1,
- result = Array(n);
-
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
-}
-
-module.exports = baseTimes;
diff --git a/node_modules/lodash/_baseToNumber.js b/node_modules/lodash/_baseToNumber.js
deleted file mode 100644
index 04859f3..0000000
--- a/node_modules/lodash/_baseToNumber.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var isSymbol = require('./isSymbol');
-
-/** Used as references for various `Number` constants. */
-var NAN = 0 / 0;
-
-/**
- * The base implementation of `_.toNumber` which doesn't ensure correct
- * conversions of binary, hexadecimal, or octal string values.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- */
-function baseToNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- return +value;
-}
-
-module.exports = baseToNumber;
diff --git a/node_modules/lodash/_baseToPairs.js b/node_modules/lodash/_baseToPairs.js
deleted file mode 100644
index bff1991..0000000
--- a/node_modules/lodash/_baseToPairs.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var arrayMap = require('./_arrayMap');
-
-/**
- * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
- * of key-value pairs for `object` corresponding to the property names of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the key-value pairs.
- */
-function baseToPairs(object, props) {
- return arrayMap(props, function(key) {
- return [key, object[key]];
- });
-}
-
-module.exports = baseToPairs;
diff --git a/node_modules/lodash/_baseToString.js b/node_modules/lodash/_baseToString.js
deleted file mode 100644
index ada6ad2..0000000
--- a/node_modules/lodash/_baseToString.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var Symbol = require('./_Symbol'),
- arrayMap = require('./_arrayMap'),
- isArray = require('./isArray'),
- isSymbol = require('./isSymbol');
-
-/** Used as references for various `Number` constants. */
-var INFINITY = 1 / 0;
-
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
-
-/**
- * The base implementation of `_.toString` which doesn't convert nullish
- * values to empty strings.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- */
-function baseToString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (isArray(value)) {
- // Recursively convert values (susceptible to call stack limits).
- return arrayMap(value, baseToString) + '';
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
-}
-
-module.exports = baseToString;
diff --git a/node_modules/lodash/_baseUnary.js b/node_modules/lodash/_baseUnary.js
deleted file mode 100644
index 98639e9..0000000
--- a/node_modules/lodash/_baseUnary.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * The base implementation of `_.unary` without support for storing metadata.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- */
-function baseUnary(func) {
- return function(value) {
- return func(value);
- };
-}
-
-module.exports = baseUnary;
diff --git a/node_modules/lodash/_baseUniq.js b/node_modules/lodash/_baseUniq.js
deleted file mode 100644
index aea459d..0000000
--- a/node_modules/lodash/_baseUniq.js
+++ /dev/null
@@ -1,72 +0,0 @@
-var SetCache = require('./_SetCache'),
- arrayIncludes = require('./_arrayIncludes'),
- arrayIncludesWith = require('./_arrayIncludesWith'),
- cacheHas = require('./_cacheHas'),
- createSet = require('./_createSet'),
- setToArray = require('./_setToArray');
-
-/** Used as the size to enable large array optimizations. */
-var LARGE_ARRAY_SIZE = 200;
-
-/**
- * The base implementation of `_.uniqBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
-function baseUniq(array, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- length = array.length,
- isCommon = true,
- result = [],
- seen = result;
-
- if (comparator) {
- isCommon = false;
- includes = arrayIncludesWith;
- }
- else if (length >= LARGE_ARRAY_SIZE) {
- var set = iteratee ? null : createSet(array);
- if (set) {
- return setToArray(set);
- }
- isCommon = false;
- includes = cacheHas;
- seen = new SetCache;
- }
- else {
- seen = iteratee ? [] : result;
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var seenIndex = seen.length;
- while (seenIndex--) {
- if (seen[seenIndex] === computed) {
- continue outer;
- }
- }
- if (iteratee) {
- seen.push(computed);
- }
- result.push(value);
- }
- else if (!includes(seen, computed, comparator)) {
- if (seen !== result) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
-}
-
-module.exports = baseUniq;
diff --git a/node_modules/lodash/_baseUnset.js b/node_modules/lodash/_baseUnset.js
deleted file mode 100644
index eefc6e3..0000000
--- a/node_modules/lodash/_baseUnset.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var castPath = require('./_castPath'),
- last = require('./last'),
- parent = require('./_parent'),
- toKey = require('./_toKey');
-
-/**
- * The base implementation of `_.unset`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The property path to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- */
-function baseUnset(object, path) {
- path = castPath(path, object);
- object = parent(object, path);
- return object == null || delete object[toKey(last(path))];
-}
-
-module.exports = baseUnset;
diff --git a/node_modules/lodash/_baseUpdate.js b/node_modules/lodash/_baseUpdate.js
deleted file mode 100644
index 92a6237..0000000
--- a/node_modules/lodash/_baseUpdate.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseGet = require('./_baseGet'),
- baseSet = require('./_baseSet');
-
-/**
- * The base implementation of `_.update`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to update.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
-function baseUpdate(object, path, updater, customizer) {
- return baseSet(object, path, updater(baseGet(object, path)), customizer);
-}
-
-module.exports = baseUpdate;
diff --git a/node_modules/lodash/_baseValues.js b/node_modules/lodash/_baseValues.js
deleted file mode 100644
index b95faad..0000000
--- a/node_modules/lodash/_baseValues.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var arrayMap = require('./_arrayMap');
-
-/**
- * The base implementation of `_.values` and `_.valuesIn` which creates an
- * array of `object` property values corresponding to the property names
- * of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the array of property values.
- */
-function baseValues(object, props) {
- return arrayMap(props, function(key) {
- return object[key];
- });
-}
-
-module.exports = baseValues;
diff --git a/node_modules/lodash/_baseWhile.js b/node_modules/lodash/_baseWhile.js
deleted file mode 100644
index 07eac61..0000000
--- a/node_modules/lodash/_baseWhile.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var baseSlice = require('./_baseSlice');
-
-/**
- * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
- * without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {Function} predicate The function invoked per iteration.
- * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the slice of `array`.
- */
-function baseWhile(array, predicate, isDrop, fromRight) {
- var length = array.length,
- index = fromRight ? length : -1;
-
- while ((fromRight ? index-- : ++index < length) &&
- predicate(array[index], index, array)) {}
-
- return isDrop
- ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
- : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
-}
-
-module.exports = baseWhile;
diff --git a/node_modules/lodash/_baseWrapperValue.js b/node_modules/lodash/_baseWrapperValue.js
deleted file mode 100644
index 443e0df..0000000
--- a/node_modules/lodash/_baseWrapperValue.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper'),
- arrayPush = require('./_arrayPush'),
- arrayReduce = require('./_arrayReduce');
-
-/**
- * The base implementation of `wrapperValue` which returns the result of
- * performing a sequence of actions on the unwrapped `value`, where each
- * successive action is supplied the return value of the previous.
- *
- * @private
- * @param {*} value The unwrapped value.
- * @param {Array} actions Actions to perform to resolve the unwrapped value.
- * @returns {*} Returns the resolved value.
- */
-function baseWrapperValue(value, actions) {
- var result = value;
- if (result instanceof LazyWrapper) {
- result = result.value();
- }
- return arrayReduce(actions, function(result, action) {
- return action.func.apply(action.thisArg, arrayPush([result], action.args));
- }, result);
-}
-
-module.exports = baseWrapperValue;
diff --git a/node_modules/lodash/_baseXor.js b/node_modules/lodash/_baseXor.js
deleted file mode 100644
index 8e69338..0000000
--- a/node_modules/lodash/_baseXor.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseDifference = require('./_baseDifference'),
- baseFlatten = require('./_baseFlatten'),
- baseUniq = require('./_baseUniq');
-
-/**
- * The base implementation of methods like `_.xor`, without support for
- * iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of values.
- */
-function baseXor(arrays, iteratee, comparator) {
- var length = arrays.length;
- if (length < 2) {
- return length ? baseUniq(arrays[0]) : [];
- }
- var index = -1,
- result = Array(length);
-
- while (++index < length) {
- var array = arrays[index],
- othIndex = -1;
-
- while (++othIndex < length) {
- if (othIndex != index) {
- result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
- }
- }
- }
- return baseUniq(baseFlatten(result, 1), iteratee, comparator);
-}
-
-module.exports = baseXor;
diff --git a/node_modules/lodash/_baseZipObject.js b/node_modules/lodash/_baseZipObject.js
deleted file mode 100644
index 401f85b..0000000
--- a/node_modules/lodash/_baseZipObject.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
- *
- * @private
- * @param {Array} props The property identifiers.
- * @param {Array} values The property values.
- * @param {Function} assignFunc The function to assign values.
- * @returns {Object} Returns the new object.
- */
-function baseZipObject(props, values, assignFunc) {
- var index = -1,
- length = props.length,
- valsLength = values.length,
- result = {};
-
- while (++index < length) {
- var value = index < valsLength ? values[index] : undefined;
- assignFunc(result, props[index], value);
- }
- return result;
-}
-
-module.exports = baseZipObject;
diff --git a/node_modules/lodash/_cacheHas.js b/node_modules/lodash/_cacheHas.js
deleted file mode 100644
index 2dec892..0000000
--- a/node_modules/lodash/_cacheHas.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Checks if a `cache` value for `key` exists.
- *
- * @private
- * @param {Object} cache The cache to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function cacheHas(cache, key) {
- return cache.has(key);
-}
-
-module.exports = cacheHas;
diff --git a/node_modules/lodash/_castArrayLikeObject.js b/node_modules/lodash/_castArrayLikeObject.js
deleted file mode 100644
index 92c75fa..0000000
--- a/node_modules/lodash/_castArrayLikeObject.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var isArrayLikeObject = require('./isArrayLikeObject');
-
-/**
- * Casts `value` to an empty array if it's not an array like object.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array|Object} Returns the cast array-like object.
- */
-function castArrayLikeObject(value) {
- return isArrayLikeObject(value) ? value : [];
-}
-
-module.exports = castArrayLikeObject;
diff --git a/node_modules/lodash/_castFunction.js b/node_modules/lodash/_castFunction.js
deleted file mode 100644
index 98c91ae..0000000
--- a/node_modules/lodash/_castFunction.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var identity = require('./identity');
-
-/**
- * Casts `value` to `identity` if it's not a function.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Function} Returns cast function.
- */
-function castFunction(value) {
- return typeof value == 'function' ? value : identity;
-}
-
-module.exports = castFunction;
diff --git a/node_modules/lodash/_castPath.js b/node_modules/lodash/_castPath.js
deleted file mode 100644
index 017e4c1..0000000
--- a/node_modules/lodash/_castPath.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var isArray = require('./isArray'),
- isKey = require('./_isKey'),
- stringToPath = require('./_stringToPath'),
- toString = require('./toString');
-
-/**
- * Casts `value` to a path array if it's not one.
- *
- * @private
- * @param {*} value The value to inspect.
- * @param {Object} [object] The object to query keys on.
- * @returns {Array} Returns the cast property path array.
- */
-function castPath(value, object) {
- if (isArray(value)) {
- return value;
- }
- return isKey(value, object) ? [value] : stringToPath(toString(value));
-}
-
-module.exports = castPath;
diff --git a/node_modules/lodash/_castRest.js b/node_modules/lodash/_castRest.js
deleted file mode 100644
index 213c66f..0000000
--- a/node_modules/lodash/_castRest.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var baseRest = require('./_baseRest');
-
-/**
- * A `baseRest` alias which can be replaced with `identity` by module
- * replacement plugins.
- *
- * @private
- * @type {Function}
- * @param {Function} func The function to apply a rest parameter to.
- * @returns {Function} Returns the new function.
- */
-var castRest = baseRest;
-
-module.exports = castRest;
diff --git a/node_modules/lodash/_castSlice.js b/node_modules/lodash/_castSlice.js
deleted file mode 100644
index 071faeb..0000000
--- a/node_modules/lodash/_castSlice.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseSlice = require('./_baseSlice');
-
-/**
- * Casts `array` to a slice if it's needed.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {number} start The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the cast slice.
- */
-function castSlice(array, start, end) {
- var length = array.length;
- end = end === undefined ? length : end;
- return (!start && end >= length) ? array : baseSlice(array, start, end);
-}
-
-module.exports = castSlice;
diff --git a/node_modules/lodash/_charsEndIndex.js b/node_modules/lodash/_charsEndIndex.js
deleted file mode 100644
index 07908ff..0000000
--- a/node_modules/lodash/_charsEndIndex.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var baseIndexOf = require('./_baseIndexOf');
-
-/**
- * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the last unmatched string symbol.
- */
-function charsEndIndex(strSymbols, chrSymbols) {
- var index = strSymbols.length;
-
- while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
-}
-
-module.exports = charsEndIndex;
diff --git a/node_modules/lodash/_charsStartIndex.js b/node_modules/lodash/_charsStartIndex.js
deleted file mode 100644
index b17afd2..0000000
--- a/node_modules/lodash/_charsStartIndex.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var baseIndexOf = require('./_baseIndexOf');
-
-/**
- * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the first unmatched string symbol.
- */
-function charsStartIndex(strSymbols, chrSymbols) {
- var index = -1,
- length = strSymbols.length;
-
- while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
-}
-
-module.exports = charsStartIndex;
diff --git a/node_modules/lodash/_cloneArrayBuffer.js b/node_modules/lodash/_cloneArrayBuffer.js
deleted file mode 100644
index c3d8f6e..0000000
--- a/node_modules/lodash/_cloneArrayBuffer.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var Uint8Array = require('./_Uint8Array');
-
-/**
- * Creates a clone of `arrayBuffer`.
- *
- * @private
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
- */
-function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
- return result;
-}
-
-module.exports = cloneArrayBuffer;
diff --git a/node_modules/lodash/_cloneBuffer.js b/node_modules/lodash/_cloneBuffer.js
deleted file mode 100644
index 27c4810..0000000
--- a/node_modules/lodash/_cloneBuffer.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var root = require('./_root');
-
-/** Detect free variable `exports`. */
-var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
-
-/** Detect free variable `module`. */
-var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
-/** Detect the popular CommonJS extension `module.exports`. */
-var moduleExports = freeModule && freeModule.exports === freeExports;
-
-/** Built-in value references. */
-var Buffer = moduleExports ? root.Buffer : undefined,
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
-
-/**
- * Creates a clone of `buffer`.
- *
- * @private
- * @param {Buffer} buffer The buffer to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Buffer} Returns the cloned buffer.
- */
-function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var length = buffer.length,
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
-
- buffer.copy(result);
- return result;
-}
-
-module.exports = cloneBuffer;
diff --git a/node_modules/lodash/_cloneDataView.js b/node_modules/lodash/_cloneDataView.js
deleted file mode 100644
index 9c9b7b0..0000000
--- a/node_modules/lodash/_cloneDataView.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var cloneArrayBuffer = require('./_cloneArrayBuffer');
-
-/**
- * Creates a clone of `dataView`.
- *
- * @private
- * @param {Object} dataView The data view to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned data view.
- */
-function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
-}
-
-module.exports = cloneDataView;
diff --git a/node_modules/lodash/_cloneRegExp.js b/node_modules/lodash/_cloneRegExp.js
deleted file mode 100644
index 64a30df..0000000
--- a/node_modules/lodash/_cloneRegExp.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/** Used to match `RegExp` flags from their coerced string values. */
-var reFlags = /\w*$/;
-
-/**
- * Creates a clone of `regexp`.
- *
- * @private
- * @param {Object} regexp The regexp to clone.
- * @returns {Object} Returns the cloned regexp.
- */
-function cloneRegExp(regexp) {
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
- result.lastIndex = regexp.lastIndex;
- return result;
-}
-
-module.exports = cloneRegExp;
diff --git a/node_modules/lodash/_cloneSymbol.js b/node_modules/lodash/_cloneSymbol.js
deleted file mode 100644
index bede39f..0000000
--- a/node_modules/lodash/_cloneSymbol.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var Symbol = require('./_Symbol');
-
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
-
-/**
- * Creates a clone of the `symbol` object.
- *
- * @private
- * @param {Object} symbol The symbol object to clone.
- * @returns {Object} Returns the cloned symbol object.
- */
-function cloneSymbol(symbol) {
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
-}
-
-module.exports = cloneSymbol;
diff --git a/node_modules/lodash/_cloneTypedArray.js b/node_modules/lodash/_cloneTypedArray.js
deleted file mode 100644
index 7aad84d..0000000
--- a/node_modules/lodash/_cloneTypedArray.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var cloneArrayBuffer = require('./_cloneArrayBuffer');
-
-/**
- * Creates a clone of `typedArray`.
- *
- * @private
- * @param {Object} typedArray The typed array to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned typed array.
- */
-function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
-}
-
-module.exports = cloneTypedArray;
diff --git a/node_modules/lodash/_compareAscending.js b/node_modules/lodash/_compareAscending.js
deleted file mode 100644
index 8dc2791..0000000
--- a/node_modules/lodash/_compareAscending.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var isSymbol = require('./isSymbol');
-
-/**
- * Compares values to sort them in ascending order.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {number} Returns the sort order indicator for `value`.
- */
-function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== undefined,
- valIsNull = value === null,
- valIsReflexive = value === value,
- valIsSymbol = isSymbol(value);
-
- var othIsDefined = other !== undefined,
- othIsNull = other === null,
- othIsReflexive = other === other,
- othIsSymbol = isSymbol(other);
-
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
- (valIsNull && othIsDefined && othIsReflexive) ||
- (!valIsDefined && othIsReflexive) ||
- !valIsReflexive) {
- return 1;
- }
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
- (othIsNull && valIsDefined && valIsReflexive) ||
- (!othIsDefined && valIsReflexive) ||
- !othIsReflexive) {
- return -1;
- }
- }
- return 0;
-}
-
-module.exports = compareAscending;
diff --git a/node_modules/lodash/_compareMultiple.js b/node_modules/lodash/_compareMultiple.js
deleted file mode 100644
index ad61f0f..0000000
--- a/node_modules/lodash/_compareMultiple.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var compareAscending = require('./_compareAscending');
-
-/**
- * Used by `_.orderBy` to compare multiple properties of a value to another
- * and stable sort them.
- *
- * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
- * specify an order of "desc" for descending or "asc" for ascending sort order
- * of corresponding values.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {boolean[]|string[]} orders The order to sort by for each property.
- * @returns {number} Returns the sort order indicator for `object`.
- */
-function compareMultiple(object, other, orders) {
- var index = -1,
- objCriteria = object.criteria,
- othCriteria = other.criteria,
- length = objCriteria.length,
- ordersLength = orders.length;
-
- while (++index < length) {
- var result = compareAscending(objCriteria[index], othCriteria[index]);
- if (result) {
- if (index >= ordersLength) {
- return result;
- }
- var order = orders[index];
- return result * (order == 'desc' ? -1 : 1);
- }
- }
- // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
- // that causes it, under certain circumstances, to provide the same value for
- // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
- // for more details.
- //
- // This also ensures a stable sort in V8 and other engines.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
- return object.index - other.index;
-}
-
-module.exports = compareMultiple;
diff --git a/node_modules/lodash/_composeArgs.js b/node_modules/lodash/_composeArgs.js
deleted file mode 100644
index 1ce40f4..0000000
--- a/node_modules/lodash/_composeArgs.js
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * Creates an array that is the composition of partially applied arguments,
- * placeholders, and provided arguments into a single array of arguments.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to prepend to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
-function composeArgs(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersLength = holders.length,
- leftIndex = -1,
- leftLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(leftLength + rangeLength),
- isUncurried = !isCurried;
-
- while (++leftIndex < leftLength) {
- result[leftIndex] = partials[leftIndex];
- }
- while (++argsIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[holders[argsIndex]] = args[argsIndex];
- }
- }
- while (rangeLength--) {
- result[leftIndex++] = args[argsIndex++];
- }
- return result;
-}
-
-module.exports = composeArgs;
diff --git a/node_modules/lodash/_composeArgsRight.js b/node_modules/lodash/_composeArgsRight.js
deleted file mode 100644
index 8dc588d..0000000
--- a/node_modules/lodash/_composeArgsRight.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * This function is like `composeArgs` except that the arguments composition
- * is tailored for `_.partialRight`.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to append to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
-function composeArgsRight(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersIndex = -1,
- holdersLength = holders.length,
- rightIndex = -1,
- rightLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(rangeLength + rightLength),
- isUncurried = !isCurried;
-
- while (++argsIndex < rangeLength) {
- result[argsIndex] = args[argsIndex];
- }
- var offset = argsIndex;
- while (++rightIndex < rightLength) {
- result[offset + rightIndex] = partials[rightIndex];
- }
- while (++holdersIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[offset + holders[holdersIndex]] = args[argsIndex++];
- }
- }
- return result;
-}
-
-module.exports = composeArgsRight;
diff --git a/node_modules/lodash/_copyArray.js b/node_modules/lodash/_copyArray.js
deleted file mode 100644
index cd94d5d..0000000
--- a/node_modules/lodash/_copyArray.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
-function copyArray(source, array) {
- var index = -1,
- length = source.length;
-
- array || (array = Array(length));
- while (++index < length) {
- array[index] = source[index];
- }
- return array;
-}
-
-module.exports = copyArray;
diff --git a/node_modules/lodash/_copyObject.js b/node_modules/lodash/_copyObject.js
deleted file mode 100644
index 2f2a5c2..0000000
--- a/node_modules/lodash/_copyObject.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var assignValue = require('./_assignValue'),
- baseAssignValue = require('./_baseAssignValue');
-
-/**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
-function copyObject(source, props, object, customizer) {
- var isNew = !object;
- object || (object = {});
-
- var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : undefined;
-
- if (newValue === undefined) {
- newValue = source[key];
- }
- if (isNew) {
- baseAssignValue(object, key, newValue);
- } else {
- assignValue(object, key, newValue);
- }
- }
- return object;
-}
-
-module.exports = copyObject;
diff --git a/node_modules/lodash/_copySymbols.js b/node_modules/lodash/_copySymbols.js
deleted file mode 100644
index c35944a..0000000
--- a/node_modules/lodash/_copySymbols.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var copyObject = require('./_copyObject'),
- getSymbols = require('./_getSymbols');
-
-/**
- * Copies own symbols of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
-function copySymbols(source, object) {
- return copyObject(source, getSymbols(source), object);
-}
-
-module.exports = copySymbols;
diff --git a/node_modules/lodash/_copySymbolsIn.js b/node_modules/lodash/_copySymbolsIn.js
deleted file mode 100644
index fdf20a7..0000000
--- a/node_modules/lodash/_copySymbolsIn.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var copyObject = require('./_copyObject'),
- getSymbolsIn = require('./_getSymbolsIn');
-
-/**
- * Copies own and inherited symbols of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
-function copySymbolsIn(source, object) {
- return copyObject(source, getSymbolsIn(source), object);
-}
-
-module.exports = copySymbolsIn;
diff --git a/node_modules/lodash/_coreJsData.js b/node_modules/lodash/_coreJsData.js
deleted file mode 100644
index f8e5b4e..0000000
--- a/node_modules/lodash/_coreJsData.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var root = require('./_root');
-
-/** Used to detect overreaching core-js shims. */
-var coreJsData = root['__core-js_shared__'];
-
-module.exports = coreJsData;
diff --git a/node_modules/lodash/_countHolders.js b/node_modules/lodash/_countHolders.js
deleted file mode 100644
index 718fcda..0000000
--- a/node_modules/lodash/_countHolders.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Gets the number of `placeholder` occurrences in `array`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} placeholder The placeholder to search for.
- * @returns {number} Returns the placeholder count.
- */
-function countHolders(array, placeholder) {
- var length = array.length,
- result = 0;
-
- while (length--) {
- if (array[length] === placeholder) {
- ++result;
- }
- }
- return result;
-}
-
-module.exports = countHolders;
diff --git a/node_modules/lodash/_createAggregator.js b/node_modules/lodash/_createAggregator.js
deleted file mode 100644
index 0be42c4..0000000
--- a/node_modules/lodash/_createAggregator.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var arrayAggregator = require('./_arrayAggregator'),
- baseAggregator = require('./_baseAggregator'),
- baseIteratee = require('./_baseIteratee'),
- isArray = require('./isArray');
-
-/**
- * Creates a function like `_.groupBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} [initializer] The accumulator object initializer.
- * @returns {Function} Returns the new aggregator function.
- */
-function createAggregator(setter, initializer) {
- return function(collection, iteratee) {
- var func = isArray(collection) ? arrayAggregator : baseAggregator,
- accumulator = initializer ? initializer() : {};
-
- return func(collection, setter, baseIteratee(iteratee, 2), accumulator);
- };
-}
-
-module.exports = createAggregator;
diff --git a/node_modules/lodash/_createAssigner.js b/node_modules/lodash/_createAssigner.js
deleted file mode 100644
index 1f904c5..0000000
--- a/node_modules/lodash/_createAssigner.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseRest = require('./_baseRest'),
- isIterateeCall = require('./_isIterateeCall');
-
-/**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
-function createAssigner(assigner) {
- return baseRest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined,
- guard = length > 2 ? sources[2] : undefined;
-
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- customizer = length < 3 ? undefined : customizer;
- length = 1;
- }
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
-}
-
-module.exports = createAssigner;
diff --git a/node_modules/lodash/_createBaseEach.js b/node_modules/lodash/_createBaseEach.js
deleted file mode 100644
index d24fdd1..0000000
--- a/node_modules/lodash/_createBaseEach.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var isArrayLike = require('./isArrayLike');
-
-/**
- * Creates a `baseEach` or `baseEachRight` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
-function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
-}
-
-module.exports = createBaseEach;
diff --git a/node_modules/lodash/_createBaseFor.js b/node_modules/lodash/_createBaseFor.js
deleted file mode 100644
index 94cbf29..0000000
--- a/node_modules/lodash/_createBaseFor.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
-function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
-
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
-}
-
-module.exports = createBaseFor;
diff --git a/node_modules/lodash/_createBind.js b/node_modules/lodash/_createBind.js
deleted file mode 100644
index 07cb99f..0000000
--- a/node_modules/lodash/_createBind.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var createCtor = require('./_createCtor'),
- root = require('./_root');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1;
-
-/**
- * Creates a function that wraps `func` to invoke it with the optional `this`
- * binding of `thisArg`.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
-function createBind(func, bitmask, thisArg) {
- var isBind = bitmask & WRAP_BIND_FLAG,
- Ctor = createCtor(func);
-
- function wrapper() {
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return fn.apply(isBind ? thisArg : this, arguments);
- }
- return wrapper;
-}
-
-module.exports = createBind;
diff --git a/node_modules/lodash/_createCaseFirst.js b/node_modules/lodash/_createCaseFirst.js
deleted file mode 100644
index fe8ea48..0000000
--- a/node_modules/lodash/_createCaseFirst.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var castSlice = require('./_castSlice'),
- hasUnicode = require('./_hasUnicode'),
- stringToArray = require('./_stringToArray'),
- toString = require('./toString');
-
-/**
- * Creates a function like `_.lowerFirst`.
- *
- * @private
- * @param {string} methodName The name of the `String` case method to use.
- * @returns {Function} Returns the new case function.
- */
-function createCaseFirst(methodName) {
- return function(string) {
- string = toString(string);
-
- var strSymbols = hasUnicode(string)
- ? stringToArray(string)
- : undefined;
-
- var chr = strSymbols
- ? strSymbols[0]
- : string.charAt(0);
-
- var trailing = strSymbols
- ? castSlice(strSymbols, 1).join('')
- : string.slice(1);
-
- return chr[methodName]() + trailing;
- };
-}
-
-module.exports = createCaseFirst;
diff --git a/node_modules/lodash/_createCompounder.js b/node_modules/lodash/_createCompounder.js
deleted file mode 100644
index 8d4cee2..0000000
--- a/node_modules/lodash/_createCompounder.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var arrayReduce = require('./_arrayReduce'),
- deburr = require('./deburr'),
- words = require('./words');
-
-/** Used to compose unicode capture groups. */
-var rsApos = "['\u2019]";
-
-/** Used to match apostrophes. */
-var reApos = RegExp(rsApos, 'g');
-
-/**
- * Creates a function like `_.camelCase`.
- *
- * @private
- * @param {Function} callback The function to combine each word.
- * @returns {Function} Returns the new compounder function.
- */
-function createCompounder(callback) {
- return function(string) {
- return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
- };
-}
-
-module.exports = createCompounder;
diff --git a/node_modules/lodash/_createCtor.js b/node_modules/lodash/_createCtor.js
deleted file mode 100644
index 9047aa5..0000000
--- a/node_modules/lodash/_createCtor.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseCreate = require('./_baseCreate'),
- isObject = require('./isObject');
-
-/**
- * Creates a function that produces an instance of `Ctor` regardless of
- * whether it was invoked as part of a `new` expression or by `call` or `apply`.
- *
- * @private
- * @param {Function} Ctor The constructor to wrap.
- * @returns {Function} Returns the new wrapped function.
- */
-function createCtor(Ctor) {
- return function() {
- // Use a `switch` statement to work with class constructors. See
- // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
- // for more details.
- var args = arguments;
- switch (args.length) {
- case 0: return new Ctor;
- case 1: return new Ctor(args[0]);
- case 2: return new Ctor(args[0], args[1]);
- case 3: return new Ctor(args[0], args[1], args[2]);
- case 4: return new Ctor(args[0], args[1], args[2], args[3]);
- case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
- case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
- case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
- }
- var thisBinding = baseCreate(Ctor.prototype),
- result = Ctor.apply(thisBinding, args);
-
- // Mimic the constructor's `return` behavior.
- // See https://es5.github.io/#x13.2.2 for more details.
- return isObject(result) ? result : thisBinding;
- };
-}
-
-module.exports = createCtor;
diff --git a/node_modules/lodash/_createCurry.js b/node_modules/lodash/_createCurry.js
deleted file mode 100644
index f06c2cd..0000000
--- a/node_modules/lodash/_createCurry.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var apply = require('./_apply'),
- createCtor = require('./_createCtor'),
- createHybrid = require('./_createHybrid'),
- createRecurry = require('./_createRecurry'),
- getHolder = require('./_getHolder'),
- replaceHolders = require('./_replaceHolders'),
- root = require('./_root');
-
-/**
- * Creates a function that wraps `func` to enable currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {number} arity The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
-function createCurry(func, bitmask, arity) {
- var Ctor = createCtor(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length,
- placeholder = getHolder(wrapper);
-
- while (index--) {
- args[index] = arguments[index];
- }
- var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
- ? []
- : replaceHolders(args, placeholder);
-
- length -= holders.length;
- if (length < arity) {
- return createRecurry(
- func, bitmask, createHybrid, wrapper.placeholder, undefined,
- args, holders, undefined, undefined, arity - length);
- }
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return apply(fn, this, args);
- }
- return wrapper;
-}
-
-module.exports = createCurry;
diff --git a/node_modules/lodash/_createFind.js b/node_modules/lodash/_createFind.js
deleted file mode 100644
index 8859ff8..0000000
--- a/node_modules/lodash/_createFind.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- isArrayLike = require('./isArrayLike'),
- keys = require('./keys');
-
-/**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} findIndexFunc The function to find the collection index.
- * @returns {Function} Returns the new find function.
- */
-function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- if (!isArrayLike(collection)) {
- var iteratee = baseIteratee(predicate, 3);
- collection = keys(collection);
- predicate = function(key) { return iteratee(iterable[key], key, iterable); };
- }
- var index = findIndexFunc(collection, predicate, fromIndex);
- return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
- };
-}
-
-module.exports = createFind;
diff --git a/node_modules/lodash/_createFlow.js b/node_modules/lodash/_createFlow.js
deleted file mode 100644
index baaddbf..0000000
--- a/node_modules/lodash/_createFlow.js
+++ /dev/null
@@ -1,78 +0,0 @@
-var LodashWrapper = require('./_LodashWrapper'),
- flatRest = require('./_flatRest'),
- getData = require('./_getData'),
- getFuncName = require('./_getFuncName'),
- isArray = require('./isArray'),
- isLaziable = require('./_isLaziable');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_CURRY_FLAG = 8,
- WRAP_PARTIAL_FLAG = 32,
- WRAP_ARY_FLAG = 128,
- WRAP_REARG_FLAG = 256;
-
-/**
- * Creates a `_.flow` or `_.flowRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new flow function.
- */
-function createFlow(fromRight) {
- return flatRest(function(funcs) {
- var length = funcs.length,
- index = length,
- prereq = LodashWrapper.prototype.thru;
-
- if (fromRight) {
- funcs.reverse();
- }
- while (index--) {
- var func = funcs[index];
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
- var wrapper = new LodashWrapper([], true);
- }
- }
- index = wrapper ? index : length;
- while (++index < length) {
- func = funcs[index];
-
- var funcName = getFuncName(func),
- data = funcName == 'wrapper' ? getData(func) : undefined;
-
- if (data && isLaziable(data[0]) &&
- data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
- !data[4].length && data[9] == 1
- ) {
- wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
- } else {
- wrapper = (func.length == 1 && isLaziable(func))
- ? wrapper[funcName]()
- : wrapper.thru(func);
- }
- }
- return function() {
- var args = arguments,
- value = args[0];
-
- if (wrapper && args.length == 1 && isArray(value)) {
- return wrapper.plant(value).value();
- }
- var index = 0,
- result = length ? funcs[index].apply(this, args) : value;
-
- while (++index < length) {
- result = funcs[index].call(this, result);
- }
- return result;
- };
- });
-}
-
-module.exports = createFlow;
diff --git a/node_modules/lodash/_createHybrid.js b/node_modules/lodash/_createHybrid.js
deleted file mode 100644
index b671bd1..0000000
--- a/node_modules/lodash/_createHybrid.js
+++ /dev/null
@@ -1,92 +0,0 @@
-var composeArgs = require('./_composeArgs'),
- composeArgsRight = require('./_composeArgsRight'),
- countHolders = require('./_countHolders'),
- createCtor = require('./_createCtor'),
- createRecurry = require('./_createRecurry'),
- getHolder = require('./_getHolder'),
- reorder = require('./_reorder'),
- replaceHolders = require('./_replaceHolders'),
- root = require('./_root');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1,
- WRAP_BIND_KEY_FLAG = 2,
- WRAP_CURRY_FLAG = 8,
- WRAP_CURRY_RIGHT_FLAG = 16,
- WRAP_ARY_FLAG = 128,
- WRAP_FLIP_FLAG = 512;
-
-/**
- * Creates a function that wraps `func` to invoke it with optional `this`
- * binding of `thisArg`, partial application, and currying.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [partialsRight] The arguments to append to those provided
- * to the new function.
- * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
-function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
- var isAry = bitmask & WRAP_ARY_FLAG,
- isBind = bitmask & WRAP_BIND_FLAG,
- isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
- isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
- isFlip = bitmask & WRAP_FLIP_FLAG,
- Ctor = isBindKey ? undefined : createCtor(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length;
-
- while (index--) {
- args[index] = arguments[index];
- }
- if (isCurried) {
- var placeholder = getHolder(wrapper),
- holdersCount = countHolders(args, placeholder);
- }
- if (partials) {
- args = composeArgs(args, partials, holders, isCurried);
- }
- if (partialsRight) {
- args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
- }
- length -= holdersCount;
- if (isCurried && length < arity) {
- var newHolders = replaceHolders(args, placeholder);
- return createRecurry(
- func, bitmask, createHybrid, wrapper.placeholder, thisArg,
- args, newHolders, argPos, ary, arity - length
- );
- }
- var thisBinding = isBind ? thisArg : this,
- fn = isBindKey ? thisBinding[func] : func;
-
- length = args.length;
- if (argPos) {
- args = reorder(args, argPos);
- } else if (isFlip && length > 1) {
- args.reverse();
- }
- if (isAry && ary < length) {
- args.length = ary;
- }
- if (this && this !== root && this instanceof wrapper) {
- fn = Ctor || createCtor(fn);
- }
- return fn.apply(thisBinding, args);
- }
- return wrapper;
-}
-
-module.exports = createHybrid;
diff --git a/node_modules/lodash/_createInverter.js b/node_modules/lodash/_createInverter.js
deleted file mode 100644
index 6c0c562..0000000
--- a/node_modules/lodash/_createInverter.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var baseInverter = require('./_baseInverter');
-
-/**
- * Creates a function like `_.invertBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} toIteratee The function to resolve iteratees.
- * @returns {Function} Returns the new inverter function.
- */
-function createInverter(setter, toIteratee) {
- return function(object, iteratee) {
- return baseInverter(object, setter, toIteratee(iteratee), {});
- };
-}
-
-module.exports = createInverter;
diff --git a/node_modules/lodash/_createMathOperation.js b/node_modules/lodash/_createMathOperation.js
deleted file mode 100644
index f1e238a..0000000
--- a/node_modules/lodash/_createMathOperation.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var baseToNumber = require('./_baseToNumber'),
- baseToString = require('./_baseToString');
-
-/**
- * Creates a function that performs a mathematical operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @param {number} [defaultValue] The value used for `undefined` arguments.
- * @returns {Function} Returns the new mathematical operation function.
- */
-function createMathOperation(operator, defaultValue) {
- return function(value, other) {
- var result;
- if (value === undefined && other === undefined) {
- return defaultValue;
- }
- if (value !== undefined) {
- result = value;
- }
- if (other !== undefined) {
- if (result === undefined) {
- return other;
- }
- if (typeof value == 'string' || typeof other == 'string') {
- value = baseToString(value);
- other = baseToString(other);
- } else {
- value = baseToNumber(value);
- other = baseToNumber(other);
- }
- result = operator(value, other);
- }
- return result;
- };
-}
-
-module.exports = createMathOperation;
diff --git a/node_modules/lodash/_createOver.js b/node_modules/lodash/_createOver.js
deleted file mode 100644
index 3b94551..0000000
--- a/node_modules/lodash/_createOver.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var apply = require('./_apply'),
- arrayMap = require('./_arrayMap'),
- baseIteratee = require('./_baseIteratee'),
- baseRest = require('./_baseRest'),
- baseUnary = require('./_baseUnary'),
- flatRest = require('./_flatRest');
-
-/**
- * Creates a function like `_.over`.
- *
- * @private
- * @param {Function} arrayFunc The function to iterate over iteratees.
- * @returns {Function} Returns the new over function.
- */
-function createOver(arrayFunc) {
- return flatRest(function(iteratees) {
- iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
- return baseRest(function(args) {
- var thisArg = this;
- return arrayFunc(iteratees, function(iteratee) {
- return apply(iteratee, thisArg, args);
- });
- });
- });
-}
-
-module.exports = createOver;
diff --git a/node_modules/lodash/_createPadding.js b/node_modules/lodash/_createPadding.js
deleted file mode 100644
index 2124612..0000000
--- a/node_modules/lodash/_createPadding.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseRepeat = require('./_baseRepeat'),
- baseToString = require('./_baseToString'),
- castSlice = require('./_castSlice'),
- hasUnicode = require('./_hasUnicode'),
- stringSize = require('./_stringSize'),
- stringToArray = require('./_stringToArray');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeCeil = Math.ceil;
-
-/**
- * Creates the padding for `string` based on `length`. The `chars` string
- * is truncated if the number of characters exceeds `length`.
- *
- * @private
- * @param {number} length The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padding for `string`.
- */
-function createPadding(length, chars) {
- chars = chars === undefined ? ' ' : baseToString(chars);
-
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat(chars, length) : chars;
- }
- var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
- return hasUnicode(chars)
- ? castSlice(stringToArray(result), 0, length).join('')
- : result.slice(0, length);
-}
-
-module.exports = createPadding;
diff --git a/node_modules/lodash/_createPartial.js b/node_modules/lodash/_createPartial.js
deleted file mode 100644
index e16c248..0000000
--- a/node_modules/lodash/_createPartial.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var apply = require('./_apply'),
- createCtor = require('./_createCtor'),
- root = require('./_root');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1;
-
-/**
- * Creates a function that wraps `func` to invoke it with the `this` binding
- * of `thisArg` and `partials` prepended to the arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to
- * the new function.
- * @returns {Function} Returns the new wrapped function.
- */
-function createPartial(func, bitmask, thisArg, partials) {
- var isBind = bitmask & WRAP_BIND_FLAG,
- Ctor = createCtor(func);
-
- function wrapper() {
- var argsIndex = -1,
- argsLength = arguments.length,
- leftIndex = -1,
- leftLength = partials.length,
- args = Array(leftLength + argsLength),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-
- while (++leftIndex < leftLength) {
- args[leftIndex] = partials[leftIndex];
- }
- while (argsLength--) {
- args[leftIndex++] = arguments[++argsIndex];
- }
- return apply(fn, isBind ? thisArg : this, args);
- }
- return wrapper;
-}
-
-module.exports = createPartial;
diff --git a/node_modules/lodash/_createRange.js b/node_modules/lodash/_createRange.js
deleted file mode 100644
index 9f52c77..0000000
--- a/node_modules/lodash/_createRange.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var baseRange = require('./_baseRange'),
- isIterateeCall = require('./_isIterateeCall'),
- toFinite = require('./toFinite');
-
-/**
- * Creates a `_.range` or `_.rangeRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new range function.
- */
-function createRange(fromRight) {
- return function(start, end, step) {
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
- end = step = undefined;
- }
- // Ensure the sign of `-0` is preserved.
- start = toFinite(start);
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toFinite(end);
- }
- step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
- return baseRange(start, end, step, fromRight);
- };
-}
-
-module.exports = createRange;
diff --git a/node_modules/lodash/_createRecurry.js b/node_modules/lodash/_createRecurry.js
deleted file mode 100644
index eb29fb2..0000000
--- a/node_modules/lodash/_createRecurry.js
+++ /dev/null
@@ -1,56 +0,0 @@
-var isLaziable = require('./_isLaziable'),
- setData = require('./_setData'),
- setWrapToString = require('./_setWrapToString');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1,
- WRAP_BIND_KEY_FLAG = 2,
- WRAP_CURRY_BOUND_FLAG = 4,
- WRAP_CURRY_FLAG = 8,
- WRAP_PARTIAL_FLAG = 32,
- WRAP_PARTIAL_RIGHT_FLAG = 64;
-
-/**
- * Creates a function that wraps `func` to continue currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {Function} wrapFunc The function to create the `func` wrapper.
- * @param {*} placeholder The placeholder value.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
-function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
- var isCurry = bitmask & WRAP_CURRY_FLAG,
- newHolders = isCurry ? holders : undefined,
- newHoldersRight = isCurry ? undefined : holders,
- newPartials = isCurry ? partials : undefined,
- newPartialsRight = isCurry ? undefined : partials;
-
- bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
- bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
-
- if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
- bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
- }
- var newData = [
- func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
- newHoldersRight, argPos, ary, arity
- ];
-
- var result = wrapFunc.apply(undefined, newData);
- if (isLaziable(func)) {
- setData(result, newData);
- }
- result.placeholder = placeholder;
- return setWrapToString(result, func, bitmask);
-}
-
-module.exports = createRecurry;
diff --git a/node_modules/lodash/_createRelationalOperation.js b/node_modules/lodash/_createRelationalOperation.js
deleted file mode 100644
index a17c6b5..0000000
--- a/node_modules/lodash/_createRelationalOperation.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var toNumber = require('./toNumber');
-
-/**
- * Creates a function that performs a relational operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @returns {Function} Returns the new relational operation function.
- */
-function createRelationalOperation(operator) {
- return function(value, other) {
- if (!(typeof value == 'string' && typeof other == 'string')) {
- value = toNumber(value);
- other = toNumber(other);
- }
- return operator(value, other);
- };
-}
-
-module.exports = createRelationalOperation;
diff --git a/node_modules/lodash/_createRound.js b/node_modules/lodash/_createRound.js
deleted file mode 100644
index 88be5df..0000000
--- a/node_modules/lodash/_createRound.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var root = require('./_root'),
- toInteger = require('./toInteger'),
- toNumber = require('./toNumber'),
- toString = require('./toString');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeIsFinite = root.isFinite,
- nativeMin = Math.min;
-
-/**
- * Creates a function like `_.round`.
- *
- * @private
- * @param {string} methodName The name of the `Math` method to use when rounding.
- * @returns {Function} Returns the new round function.
- */
-function createRound(methodName) {
- var func = Math[methodName];
- return function(number, precision) {
- number = toNumber(number);
- precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
- if (precision && nativeIsFinite(number)) {
- // Shift with exponential notation to avoid floating-point issues.
- // See [MDN](https://mdn.io/round#Examples) for more details.
- var pair = (toString(number) + 'e').split('e'),
- value = func(pair[0] + 'e' + (+pair[1] + precision));
-
- pair = (toString(value) + 'e').split('e');
- return +(pair[0] + 'e' + (+pair[1] - precision));
- }
- return func(number);
- };
-}
-
-module.exports = createRound;
diff --git a/node_modules/lodash/_createSet.js b/node_modules/lodash/_createSet.js
deleted file mode 100644
index 0f644ee..0000000
--- a/node_modules/lodash/_createSet.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var Set = require('./_Set'),
- noop = require('./noop'),
- setToArray = require('./_setToArray');
-
-/** Used as references for various `Number` constants. */
-var INFINITY = 1 / 0;
-
-/**
- * Creates a set object of `values`.
- *
- * @private
- * @param {Array} values The values to add to the set.
- * @returns {Object} Returns the new set.
- */
-var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
- return new Set(values);
-};
-
-module.exports = createSet;
diff --git a/node_modules/lodash/_createToPairs.js b/node_modules/lodash/_createToPairs.js
deleted file mode 100644
index 568417a..0000000
--- a/node_modules/lodash/_createToPairs.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var baseToPairs = require('./_baseToPairs'),
- getTag = require('./_getTag'),
- mapToArray = require('./_mapToArray'),
- setToPairs = require('./_setToPairs');
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
- setTag = '[object Set]';
-
-/**
- * Creates a `_.toPairs` or `_.toPairsIn` function.
- *
- * @private
- * @param {Function} keysFunc The function to get the keys of a given object.
- * @returns {Function} Returns the new pairs function.
- */
-function createToPairs(keysFunc) {
- return function(object) {
- var tag = getTag(object);
- if (tag == mapTag) {
- return mapToArray(object);
- }
- if (tag == setTag) {
- return setToPairs(object);
- }
- return baseToPairs(object, keysFunc(object));
- };
-}
-
-module.exports = createToPairs;
diff --git a/node_modules/lodash/_createWrap.js b/node_modules/lodash/_createWrap.js
deleted file mode 100644
index 33f0633..0000000
--- a/node_modules/lodash/_createWrap.js
+++ /dev/null
@@ -1,106 +0,0 @@
-var baseSetData = require('./_baseSetData'),
- createBind = require('./_createBind'),
- createCurry = require('./_createCurry'),
- createHybrid = require('./_createHybrid'),
- createPartial = require('./_createPartial'),
- getData = require('./_getData'),
- mergeData = require('./_mergeData'),
- setData = require('./_setData'),
- setWrapToString = require('./_setWrapToString'),
- toInteger = require('./toInteger');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1,
- WRAP_BIND_KEY_FLAG = 2,
- WRAP_CURRY_FLAG = 8,
- WRAP_CURRY_RIGHT_FLAG = 16,
- WRAP_PARTIAL_FLAG = 32,
- WRAP_PARTIAL_RIGHT_FLAG = 64;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * Creates a function that either curries or invokes `func` with optional
- * `this` binding and partially applied arguments.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask flags.
- * 1 - `_.bind`
- * 2 - `_.bindKey`
- * 4 - `_.curry` or `_.curryRight` of a bound function
- * 8 - `_.curry`
- * 16 - `_.curryRight`
- * 32 - `_.partial`
- * 64 - `_.partialRight`
- * 128 - `_.rearg`
- * 256 - `_.ary`
- * 512 - `_.flip`
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to be partially applied.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
-function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
- var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
- if (!isBindKey && typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var length = partials ? partials.length : 0;
- if (!length) {
- bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
- partials = holders = undefined;
- }
- ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
- arity = arity === undefined ? arity : toInteger(arity);
- length -= holders ? holders.length : 0;
-
- if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
- var partialsRight = partials,
- holdersRight = holders;
-
- partials = holders = undefined;
- }
- var data = isBindKey ? undefined : getData(func);
-
- var newData = [
- func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
- argPos, ary, arity
- ];
-
- if (data) {
- mergeData(newData, data);
- }
- func = newData[0];
- bitmask = newData[1];
- thisArg = newData[2];
- partials = newData[3];
- holders = newData[4];
- arity = newData[9] = newData[9] === undefined
- ? (isBindKey ? 0 : func.length)
- : nativeMax(newData[9] - length, 0);
-
- if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
- bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
- }
- if (!bitmask || bitmask == WRAP_BIND_FLAG) {
- var result = createBind(func, bitmask, thisArg);
- } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
- result = createCurry(func, bitmask, arity);
- } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
- result = createPartial(func, bitmask, thisArg, partials);
- } else {
- result = createHybrid.apply(undefined, newData);
- }
- var setter = data ? baseSetData : setData;
- return setWrapToString(setter(result, newData), func, bitmask);
-}
-
-module.exports = createWrap;
diff --git a/node_modules/lodash/_customDefaultsAssignIn.js b/node_modules/lodash/_customDefaultsAssignIn.js
deleted file mode 100644
index 1f49e6f..0000000
--- a/node_modules/lodash/_customDefaultsAssignIn.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var eq = require('./eq');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
- * of source objects to the destination object for all destination properties
- * that resolve to `undefined`.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to assign.
- * @param {Object} object The parent object of `objValue`.
- * @returns {*} Returns the value to assign.
- */
-function customDefaultsAssignIn(objValue, srcValue, key, object) {
- if (objValue === undefined ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- return srcValue;
- }
- return objValue;
-}
-
-module.exports = customDefaultsAssignIn;
diff --git a/node_modules/lodash/_customDefaultsMerge.js b/node_modules/lodash/_customDefaultsMerge.js
deleted file mode 100644
index 4cab317..0000000
--- a/node_modules/lodash/_customDefaultsMerge.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseMerge = require('./_baseMerge'),
- isObject = require('./isObject');
-
-/**
- * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
- * objects into destination objects that are passed thru.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to merge.
- * @param {Object} object The parent object of `objValue`.
- * @param {Object} source The parent object of `srcValue`.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- * @returns {*} Returns the value to assign.
- */
-function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
- if (isObject(objValue) && isObject(srcValue)) {
- // Recursively merge objects and arrays (susceptible to call stack limits).
- stack.set(srcValue, objValue);
- baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
- stack['delete'](srcValue);
- }
- return objValue;
-}
-
-module.exports = customDefaultsMerge;
diff --git a/node_modules/lodash/_customOmitClone.js b/node_modules/lodash/_customOmitClone.js
deleted file mode 100644
index 968db2e..0000000
--- a/node_modules/lodash/_customOmitClone.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var isPlainObject = require('./isPlainObject');
-
-/**
- * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
- * objects.
- *
- * @private
- * @param {*} value The value to inspect.
- * @param {string} key The key of the property to inspect.
- * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
- */
-function customOmitClone(value) {
- return isPlainObject(value) ? undefined : value;
-}
-
-module.exports = customOmitClone;
diff --git a/node_modules/lodash/_deburrLetter.js b/node_modules/lodash/_deburrLetter.js
deleted file mode 100644
index 3e531ed..0000000
--- a/node_modules/lodash/_deburrLetter.js
+++ /dev/null
@@ -1,71 +0,0 @@
-var basePropertyOf = require('./_basePropertyOf');
-
-/** Used to map Latin Unicode letters to basic Latin letters. */
-var deburredLetters = {
- // Latin-1 Supplement block.
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
- '\xc7': 'C', '\xe7': 'c',
- '\xd0': 'D', '\xf0': 'd',
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
- '\xd1': 'N', '\xf1': 'n',
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
- '\xc6': 'Ae', '\xe6': 'ae',
- '\xde': 'Th', '\xfe': 'th',
- '\xdf': 'ss',
- // Latin Extended-A block.
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
- '\u0134': 'J', '\u0135': 'j',
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
- '\u0174': 'W', '\u0175': 'w',
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
- '\u0132': 'IJ', '\u0133': 'ij',
- '\u0152': 'Oe', '\u0153': 'oe',
- '\u0149': "'n", '\u017f': 's'
-};
-
-/**
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
- * letters to basic Latin letters.
- *
- * @private
- * @param {string} letter The matched letter to deburr.
- * @returns {string} Returns the deburred letter.
- */
-var deburrLetter = basePropertyOf(deburredLetters);
-
-module.exports = deburrLetter;
diff --git a/node_modules/lodash/_defineProperty.js b/node_modules/lodash/_defineProperty.js
deleted file mode 100644
index b6116d9..0000000
--- a/node_modules/lodash/_defineProperty.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var getNative = require('./_getNative');
-
-var defineProperty = (function() {
- try {
- var func = getNative(Object, 'defineProperty');
- func({}, '', {});
- return func;
- } catch (e) {}
-}());
-
-module.exports = defineProperty;
diff --git a/node_modules/lodash/_equalArrays.js b/node_modules/lodash/_equalArrays.js
deleted file mode 100644
index f6a3b7c..0000000
--- a/node_modules/lodash/_equalArrays.js
+++ /dev/null
@@ -1,83 +0,0 @@
-var SetCache = require('./_SetCache'),
- arraySome = require('./_arraySome'),
- cacheHas = require('./_cacheHas');
-
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
-
-/**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
-function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- arrLength = array.length,
- othLength = other.length;
-
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(array);
- if (stacked && stack.get(other)) {
- return stacked == other;
- }
- var index = -1,
- result = true,
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
-
- stack.set(array, other);
- stack.set(other, array);
-
- // Ignore non-index properties.
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, arrValue, index, other, array, stack)
- : customizer(arrValue, othValue, index, array, other, stack);
- }
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- // Recursively compare arrays (susceptible to call stack limits).
- if (seen) {
- if (!arraySome(other, function(othValue, othIndex) {
- if (!cacheHas(seen, othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
- )) {
- result = false;
- break;
- }
- }
- stack['delete'](array);
- stack['delete'](other);
- return result;
-}
-
-module.exports = equalArrays;
diff --git a/node_modules/lodash/_equalByTag.js b/node_modules/lodash/_equalByTag.js
deleted file mode 100644
index 71919e8..0000000
--- a/node_modules/lodash/_equalByTag.js
+++ /dev/null
@@ -1,112 +0,0 @@
-var Symbol = require('./_Symbol'),
- Uint8Array = require('./_Uint8Array'),
- eq = require('./eq'),
- equalArrays = require('./_equalArrays'),
- mapToArray = require('./_mapToArray'),
- setToArray = require('./_setToArray');
-
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
-
-/** `Object#toString` result references. */
-var boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]';
-
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
-
-/**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
- case dataViewTag:
- if ((object.byteLength != other.byteLength) ||
- (object.byteOffset != other.byteOffset)) {
- return false;
- }
- object = object.buffer;
- other = other.buffer;
-
- case arrayBufferTag:
- if ((object.byteLength != other.byteLength) ||
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
- return false;
- }
- return true;
-
- case boolTag:
- case dateTag:
- case numberTag:
- // Coerce booleans to `1` or `0` and dates to milliseconds.
- // Invalid dates are coerced to `NaN`.
- return eq(+object, +other);
-
- case errorTag:
- return object.name == other.name && object.message == other.message;
-
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
-
- case mapTag:
- var convert = mapToArray;
-
- case setTag:
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
- convert || (convert = setToArray);
-
- if (object.size != other.size && !isPartial) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= COMPARE_UNORDERED_FLAG;
-
- // Recursively compare objects (susceptible to call stack limits).
- stack.set(object, other);
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
- stack['delete'](object);
- return result;
-
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object) == symbolValueOf.call(other);
- }
- }
- return false;
-}
-
-module.exports = equalByTag;
diff --git a/node_modules/lodash/_equalObjects.js b/node_modules/lodash/_equalObjects.js
deleted file mode 100644
index 17421f3..0000000
--- a/node_modules/lodash/_equalObjects.js
+++ /dev/null
@@ -1,89 +0,0 @@
-var getAllKeys = require('./_getAllKeys');
-
-/** Used to compose bitmasks for value comparisons. */
-var COMPARE_PARTIAL_FLAG = 1;
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
-function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- objProps = getAllKeys(object),
- objLength = objProps.length,
- othProps = getAllKeys(other),
- othLength = othProps.length;
-
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
- return false;
- }
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked && stack.get(other)) {
- return stacked == other;
- }
- var result = true;
- stack.set(object, other);
- stack.set(other, object);
-
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, objValue, key, other, object, stack)
- : customizer(objValue, othValue, key, object, other, stack);
- }
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
-
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- stack['delete'](object);
- stack['delete'](other);
- return result;
-}
-
-module.exports = equalObjects;
diff --git a/node_modules/lodash/_escapeHtmlChar.js b/node_modules/lodash/_escapeHtmlChar.js
deleted file mode 100644
index 7ca68ee..0000000
--- a/node_modules/lodash/_escapeHtmlChar.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var basePropertyOf = require('./_basePropertyOf');
-
-/** Used to map characters to HTML entities. */
-var htmlEscapes = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#39;'
-};
-
-/**
- * Used by `_.escape` to convert characters to HTML entities.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
-var escapeHtmlChar = basePropertyOf(htmlEscapes);
-
-module.exports = escapeHtmlChar;
diff --git a/node_modules/lodash/_escapeStringChar.js b/node_modules/lodash/_escapeStringChar.js
deleted file mode 100644
index 44eca96..0000000
--- a/node_modules/lodash/_escapeStringChar.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/** Used to escape characters for inclusion in compiled string literals. */
-var stringEscapes = {
- '\\': '\\',
- "'": "'",
- '\n': 'n',
- '\r': 'r',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
-};
-
-/**
- * Used by `_.template` to escape characters for inclusion in compiled string literals.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
-function escapeStringChar(chr) {
- return '\\' + stringEscapes[chr];
-}
-
-module.exports = escapeStringChar;
diff --git a/node_modules/lodash/_flatRest.js b/node_modules/lodash/_flatRest.js
deleted file mode 100644
index 94ab6cc..0000000
--- a/node_modules/lodash/_flatRest.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var flatten = require('./flatten'),
- overRest = require('./_overRest'),
- setToString = require('./_setToString');
-
-/**
- * A specialized version of `baseRest` which flattens the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @returns {Function} Returns the new function.
- */
-function flatRest(func) {
- return setToString(overRest(func, undefined, flatten), func + '');
-}
-
-module.exports = flatRest;
diff --git a/node_modules/lodash/_freeGlobal.js b/node_modules/lodash/_freeGlobal.js
deleted file mode 100644
index bbec998..0000000
--- a/node_modules/lodash/_freeGlobal.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/** Detect free variable `global` from Node.js. */
-var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
-
-module.exports = freeGlobal;
diff --git a/node_modules/lodash/_getAllKeys.js b/node_modules/lodash/_getAllKeys.js
deleted file mode 100644
index a9ce699..0000000
--- a/node_modules/lodash/_getAllKeys.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var baseGetAllKeys = require('./_baseGetAllKeys'),
- getSymbols = require('./_getSymbols'),
- keys = require('./keys');
-
-/**
- * Creates an array of own enumerable property names and symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
-function getAllKeys(object) {
- return baseGetAllKeys(object, keys, getSymbols);
-}
-
-module.exports = getAllKeys;
diff --git a/node_modules/lodash/_getAllKeysIn.js b/node_modules/lodash/_getAllKeysIn.js
deleted file mode 100644
index 1b46678..0000000
--- a/node_modules/lodash/_getAllKeysIn.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var baseGetAllKeys = require('./_baseGetAllKeys'),
- getSymbolsIn = require('./_getSymbolsIn'),
- keysIn = require('./keysIn');
-
-/**
- * Creates an array of own and inherited enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
-function getAllKeysIn(object) {
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
-}
-
-module.exports = getAllKeysIn;
diff --git a/node_modules/lodash/_getData.js b/node_modules/lodash/_getData.js
deleted file mode 100644
index a1fe7b7..0000000
--- a/node_modules/lodash/_getData.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var metaMap = require('./_metaMap'),
- noop = require('./noop');
-
-/**
- * Gets metadata for `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {*} Returns the metadata for `func`.
- */
-var getData = !metaMap ? noop : function(func) {
- return metaMap.get(func);
-};
-
-module.exports = getData;
diff --git a/node_modules/lodash/_getFuncName.js b/node_modules/lodash/_getFuncName.js
deleted file mode 100644
index 21e15b3..0000000
--- a/node_modules/lodash/_getFuncName.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var realNames = require('./_realNames');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Gets the name of `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {string} Returns the function name.
- */
-function getFuncName(func) {
- var result = (func.name + ''),
- array = realNames[result],
- length = hasOwnProperty.call(realNames, result) ? array.length : 0;
-
- while (length--) {
- var data = array[length],
- otherFunc = data.func;
- if (otherFunc == null || otherFunc == func) {
- return data.name;
- }
- }
- return result;
-}
-
-module.exports = getFuncName;
diff --git a/node_modules/lodash/_getHolder.js b/node_modules/lodash/_getHolder.js
deleted file mode 100644
index 65e94b5..0000000
--- a/node_modules/lodash/_getHolder.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Gets the argument placeholder value for `func`.
- *
- * @private
- * @param {Function} func The function to inspect.
- * @returns {*} Returns the placeholder value.
- */
-function getHolder(func) {
- var object = func;
- return object.placeholder;
-}
-
-module.exports = getHolder;
diff --git a/node_modules/lodash/_getMapData.js b/node_modules/lodash/_getMapData.js
deleted file mode 100644
index 17f6303..0000000
--- a/node_modules/lodash/_getMapData.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var isKeyable = require('./_isKeyable');
-
-/**
- * Gets the data for `map`.
- *
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
- */
-function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
-}
-
-module.exports = getMapData;
diff --git a/node_modules/lodash/_getMatchData.js b/node_modules/lodash/_getMatchData.js
deleted file mode 100644
index 2cc70f9..0000000
--- a/node_modules/lodash/_getMatchData.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var isStrictComparable = require('./_isStrictComparable'),
- keys = require('./keys');
-
-/**
- * Gets the property names, values, and compare flags of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the match data of `object`.
- */
-function getMatchData(object) {
- var result = keys(object),
- length = result.length;
-
- while (length--) {
- var key = result[length],
- value = object[key];
-
- result[length] = [key, value, isStrictComparable(value)];
- }
- return result;
-}
-
-module.exports = getMatchData;
diff --git a/node_modules/lodash/_getNative.js b/node_modules/lodash/_getNative.js
deleted file mode 100644
index 97a622b..0000000
--- a/node_modules/lodash/_getNative.js
+++ /dev/null
@@ -1,17 +0,0 @@
-var baseIsNative = require('./_baseIsNative'),
- getValue = require('./_getValue');
-
-/**
- * Gets the native function at `key` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
- */
-function getNative(object, key) {
- var value = getValue(object, key);
- return baseIsNative(value) ? value : undefined;
-}
-
-module.exports = getNative;
diff --git a/node_modules/lodash/_getPrototype.js b/node_modules/lodash/_getPrototype.js
deleted file mode 100644
index e808612..0000000
--- a/node_modules/lodash/_getPrototype.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var overArg = require('./_overArg');
-
-/** Built-in value references. */
-var getPrototype = overArg(Object.getPrototypeOf, Object);
-
-module.exports = getPrototype;
diff --git a/node_modules/lodash/_getRawTag.js b/node_modules/lodash/_getRawTag.js
deleted file mode 100644
index 49a95c9..0000000
--- a/node_modules/lodash/_getRawTag.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var Symbol = require('./_Symbol');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var nativeObjectToString = objectProto.toString;
-
-/** Built-in value references. */
-var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
-
-/**
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the raw `toStringTag`.
- */
-function getRawTag(value) {
- var isOwn = hasOwnProperty.call(value, symToStringTag),
- tag = value[symToStringTag];
-
- try {
- value[symToStringTag] = undefined;
- var unmasked = true;
- } catch (e) {}
-
- var result = nativeObjectToString.call(value);
- if (unmasked) {
- if (isOwn) {
- value[symToStringTag] = tag;
- } else {
- delete value[symToStringTag];
- }
- }
- return result;
-}
-
-module.exports = getRawTag;
diff --git a/node_modules/lodash/_getSymbols.js b/node_modules/lodash/_getSymbols.js
deleted file mode 100644
index 7d6eafe..0000000
--- a/node_modules/lodash/_getSymbols.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- stubArray = require('./stubArray');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Built-in value references. */
-var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeGetSymbols = Object.getOwnPropertySymbols;
-
-/**
- * Creates an array of the own enumerable symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
-var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
- if (object == null) {
- return [];
- }
- object = Object(object);
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
- return propertyIsEnumerable.call(object, symbol);
- });
-};
-
-module.exports = getSymbols;
diff --git a/node_modules/lodash/_getSymbolsIn.js b/node_modules/lodash/_getSymbolsIn.js
deleted file mode 100644
index cec0855..0000000
--- a/node_modules/lodash/_getSymbolsIn.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var arrayPush = require('./_arrayPush'),
- getPrototype = require('./_getPrototype'),
- getSymbols = require('./_getSymbols'),
- stubArray = require('./stubArray');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeGetSymbols = Object.getOwnPropertySymbols;
-
-/**
- * Creates an array of the own and inherited enumerable symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
-var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
- var result = [];
- while (object) {
- arrayPush(result, getSymbols(object));
- object = getPrototype(object);
- }
- return result;
-};
-
-module.exports = getSymbolsIn;
diff --git a/node_modules/lodash/_getTag.js b/node_modules/lodash/_getTag.js
deleted file mode 100644
index deaf89d..0000000
--- a/node_modules/lodash/_getTag.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var DataView = require('./_DataView'),
- Map = require('./_Map'),
- Promise = require('./_Promise'),
- Set = require('./_Set'),
- WeakMap = require('./_WeakMap'),
- baseGetTag = require('./_baseGetTag'),
- toSource = require('./_toSource');
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
- objectTag = '[object Object]',
- promiseTag = '[object Promise]',
- setTag = '[object Set]',
- weakMapTag = '[object WeakMap]';
-
-var dataViewTag = '[object DataView]';
-
-/** Used to detect maps, sets, and weakmaps. */
-var dataViewCtorString = toSource(DataView),
- mapCtorString = toSource(Map),
- promiseCtorString = toSource(Promise),
- setCtorString = toSource(Set),
- weakMapCtorString = toSource(WeakMap);
-
-/**
- * Gets the `toStringTag` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
-var getTag = baseGetTag;
-
-// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
-if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
- (Map && getTag(new Map) != mapTag) ||
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
- (Set && getTag(new Set) != setTag) ||
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
- getTag = function(value) {
- var result = baseGetTag(value),
- Ctor = result == objectTag ? value.constructor : undefined,
- ctorString = Ctor ? toSource(Ctor) : '';
-
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString: return dataViewTag;
- case mapCtorString: return mapTag;
- case promiseCtorString: return promiseTag;
- case setCtorString: return setTag;
- case weakMapCtorString: return weakMapTag;
- }
- }
- return result;
- };
-}
-
-module.exports = getTag;
diff --git a/node_modules/lodash/_getValue.js b/node_modules/lodash/_getValue.js
deleted file mode 100644
index 5f7d773..0000000
--- a/node_modules/lodash/_getValue.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Gets the value at `key` of `object`.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
-function getValue(object, key) {
- return object == null ? undefined : object[key];
-}
-
-module.exports = getValue;
diff --git a/node_modules/lodash/_getView.js b/node_modules/lodash/_getView.js
deleted file mode 100644
index df1e5d4..0000000
--- a/node_modules/lodash/_getView.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max,
- nativeMin = Math.min;
-
-/**
- * Gets the view, applying any `transforms` to the `start` and `end` positions.
- *
- * @private
- * @param {number} start The start of the view.
- * @param {number} end The end of the view.
- * @param {Array} transforms The transformations to apply to the view.
- * @returns {Object} Returns an object containing the `start` and `end`
- * positions of the view.
- */
-function getView(start, end, transforms) {
- var index = -1,
- length = transforms.length;
-
- while (++index < length) {
- var data = transforms[index],
- size = data.size;
-
- switch (data.type) {
- case 'drop': start += size; break;
- case 'dropRight': end -= size; break;
- case 'take': end = nativeMin(end, start + size); break;
- case 'takeRight': start = nativeMax(start, end - size); break;
- }
- }
- return { 'start': start, 'end': end };
-}
-
-module.exports = getView;
diff --git a/node_modules/lodash/_getWrapDetails.js b/node_modules/lodash/_getWrapDetails.js
deleted file mode 100644
index 3bcc6e4..0000000
--- a/node_modules/lodash/_getWrapDetails.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/** Used to match wrap detail comments. */
-var reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
- reSplitDetails = /,? & /;
-
-/**
- * Extracts wrapper details from the `source` body comment.
- *
- * @private
- * @param {string} source The source to inspect.
- * @returns {Array} Returns the wrapper details.
- */
-function getWrapDetails(source) {
- var match = source.match(reWrapDetails);
- return match ? match[1].split(reSplitDetails) : [];
-}
-
-module.exports = getWrapDetails;
diff --git a/node_modules/lodash/_hasPath.js b/node_modules/lodash/_hasPath.js
deleted file mode 100644
index 93dbde1..0000000
--- a/node_modules/lodash/_hasPath.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var castPath = require('./_castPath'),
- isArguments = require('./isArguments'),
- isArray = require('./isArray'),
- isIndex = require('./_isIndex'),
- isLength = require('./isLength'),
- toKey = require('./_toKey');
-
-/**
- * Checks if `path` exists on `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @param {Function} hasFunc The function to check properties.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- */
-function hasPath(object, path, hasFunc) {
- path = castPath(path, object);
-
- var index = -1,
- length = path.length,
- result = false;
-
- while (++index < length) {
- var key = toKey(path[index]);
- if (!(result = object != null && hasFunc(object, key))) {
- break;
- }
- object = object[key];
- }
- if (result || ++index != length) {
- return result;
- }
- length = object == null ? 0 : object.length;
- return !!length && isLength(length) && isIndex(key, length) &&
- (isArray(object) || isArguments(object));
-}
-
-module.exports = hasPath;
diff --git a/node_modules/lodash/_hasUnicode.js b/node_modules/lodash/_hasUnicode.js
deleted file mode 100644
index cb6ca15..0000000
--- a/node_modules/lodash/_hasUnicode.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/** Used to compose unicode character classes. */
-var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
-
-/** Used to compose unicode capture groups. */
-var rsZWJ = '\\u200d';
-
-/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
-var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
-
-/**
- * Checks if `string` contains Unicode symbols.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
- */
-function hasUnicode(string) {
- return reHasUnicode.test(string);
-}
-
-module.exports = hasUnicode;
diff --git a/node_modules/lodash/_hasUnicodeWord.js b/node_modules/lodash/_hasUnicodeWord.js
deleted file mode 100644
index 95d52c4..0000000
--- a/node_modules/lodash/_hasUnicodeWord.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/** Used to detect strings that need a more robust regexp to match words. */
-var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
-
-/**
- * Checks if `string` contains a word composed of Unicode symbols.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {boolean} Returns `true` if a word is found, else `false`.
- */
-function hasUnicodeWord(string) {
- return reHasUnicodeWord.test(string);
-}
-
-module.exports = hasUnicodeWord;
diff --git a/node_modules/lodash/_hashClear.js b/node_modules/lodash/_hashClear.js
deleted file mode 100644
index 5d4b70c..0000000
--- a/node_modules/lodash/_hashClear.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var nativeCreate = require('./_nativeCreate');
-
-/**
- * Removes all key-value entries from the hash.
- *
- * @private
- * @name clear
- * @memberOf Hash
- */
-function hashClear() {
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
- this.size = 0;
-}
-
-module.exports = hashClear;
diff --git a/node_modules/lodash/_hashDelete.js b/node_modules/lodash/_hashDelete.js
deleted file mode 100644
index ea9dabf..0000000
--- a/node_modules/lodash/_hashDelete.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Removes `key` and its value from the hash.
- *
- * @private
- * @name delete
- * @memberOf Hash
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function hashDelete(key) {
- var result = this.has(key) && delete this.__data__[key];
- this.size -= result ? 1 : 0;
- return result;
-}
-
-module.exports = hashDelete;
diff --git a/node_modules/lodash/_hashGet.js b/node_modules/lodash/_hashGet.js
deleted file mode 100644
index 1fc2f34..0000000
--- a/node_modules/lodash/_hashGet.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var nativeCreate = require('./_nativeCreate');
-
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Gets the hash value for `key`.
- *
- * @private
- * @name get
- * @memberOf Hash
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function hashGet(key) {
- var data = this.__data__;
- if (nativeCreate) {
- var result = data[key];
- return result === HASH_UNDEFINED ? undefined : result;
- }
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
-}
-
-module.exports = hashGet;
diff --git a/node_modules/lodash/_hashHas.js b/node_modules/lodash/_hashHas.js
deleted file mode 100644
index 281a551..0000000
--- a/node_modules/lodash/_hashHas.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var nativeCreate = require('./_nativeCreate');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Checks if a hash value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Hash
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function hashHas(key) {
- var data = this.__data__;
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
-}
-
-module.exports = hashHas;
diff --git a/node_modules/lodash/_hashSet.js b/node_modules/lodash/_hashSet.js
deleted file mode 100644
index e105528..0000000
--- a/node_modules/lodash/_hashSet.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var nativeCreate = require('./_nativeCreate');
-
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-/**
- * Sets the hash `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Hash
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the hash instance.
- */
-function hashSet(key, value) {
- var data = this.__data__;
- this.size += this.has(key) ? 0 : 1;
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
- return this;
-}
-
-module.exports = hashSet;
diff --git a/node_modules/lodash/_initCloneArray.js b/node_modules/lodash/_initCloneArray.js
deleted file mode 100644
index 078c15a..0000000
--- a/node_modules/lodash/_initCloneArray.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Initializes an array clone.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
- */
-function initCloneArray(array) {
- var length = array.length,
- result = new array.constructor(length);
-
- // Add properties assigned by `RegExp#exec`.
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
- result.index = array.index;
- result.input = array.input;
- }
- return result;
-}
-
-module.exports = initCloneArray;
diff --git a/node_modules/lodash/_initCloneByTag.js b/node_modules/lodash/_initCloneByTag.js
deleted file mode 100644
index f69a008..0000000
--- a/node_modules/lodash/_initCloneByTag.js
+++ /dev/null
@@ -1,77 +0,0 @@
-var cloneArrayBuffer = require('./_cloneArrayBuffer'),
- cloneDataView = require('./_cloneDataView'),
- cloneRegExp = require('./_cloneRegExp'),
- cloneSymbol = require('./_cloneSymbol'),
- cloneTypedArray = require('./_cloneTypedArray');
-
-/** `Object#toString` result references. */
-var boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]';
-
-var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
-
-/**
- * Initializes an object clone based on its `toStringTag`.
- *
- * **Note:** This function only supports cloning values with tags of
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {string} tag The `toStringTag` of the object to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the initialized clone.
- */
-function initCloneByTag(object, tag, isDeep) {
- var Ctor = object.constructor;
- switch (tag) {
- case arrayBufferTag:
- return cloneArrayBuffer(object);
-
- case boolTag:
- case dateTag:
- return new Ctor(+object);
-
- case dataViewTag:
- return cloneDataView(object, isDeep);
-
- case float32Tag: case float64Tag:
- case int8Tag: case int16Tag: case int32Tag:
- case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
- return cloneTypedArray(object, isDeep);
-
- case mapTag:
- return new Ctor;
-
- case numberTag:
- case stringTag:
- return new Ctor(object);
-
- case regexpTag:
- return cloneRegExp(object);
-
- case setTag:
- return new Ctor;
-
- case symbolTag:
- return cloneSymbol(object);
- }
-}
-
-module.exports = initCloneByTag;
diff --git a/node_modules/lodash/_initCloneObject.js b/node_modules/lodash/_initCloneObject.js
deleted file mode 100644
index 5a13e64..0000000
--- a/node_modules/lodash/_initCloneObject.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseCreate = require('./_baseCreate'),
- getPrototype = require('./_getPrototype'),
- isPrototype = require('./_isPrototype');
-
-/**
- * Initializes an object clone.
- *
- * @private
- * @param {Object} object The object to clone.
- * @returns {Object} Returns the initialized clone.
- */
-function initCloneObject(object) {
- return (typeof object.constructor == 'function' && !isPrototype(object))
- ? baseCreate(getPrototype(object))
- : {};
-}
-
-module.exports = initCloneObject;
diff --git a/node_modules/lodash/_insertWrapDetails.js b/node_modules/lodash/_insertWrapDetails.js
deleted file mode 100644
index e790808..0000000
--- a/node_modules/lodash/_insertWrapDetails.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/** Used to match wrap detail comments. */
-var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;
-
-/**
- * Inserts wrapper `details` in a comment at the top of the `source` body.
- *
- * @private
- * @param {string} source The source to modify.
- * @returns {Array} details The details to insert.
- * @returns {string} Returns the modified source.
- */
-function insertWrapDetails(source, details) {
- var length = details.length;
- if (!length) {
- return source;
- }
- var lastIndex = length - 1;
- details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
- details = details.join(length > 2 ? ', ' : ' ');
- return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
-}
-
-module.exports = insertWrapDetails;
diff --git a/node_modules/lodash/_isFlattenable.js b/node_modules/lodash/_isFlattenable.js
deleted file mode 100644
index 4cc2c24..0000000
--- a/node_modules/lodash/_isFlattenable.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var Symbol = require('./_Symbol'),
- isArguments = require('./isArguments'),
- isArray = require('./isArray');
-
-/** Built-in value references. */
-var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
-
-/**
- * Checks if `value` is a flattenable `arguments` object or array.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
-function isFlattenable(value) {
- return isArray(value) || isArguments(value) ||
- !!(spreadableSymbol && value && value[spreadableSymbol]);
-}
-
-module.exports = isFlattenable;
diff --git a/node_modules/lodash/_isIndex.js b/node_modules/lodash/_isIndex.js
deleted file mode 100644
index 061cd39..0000000
--- a/node_modules/lodash/_isIndex.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/** Used to detect unsigned integer values. */
-var reIsUint = /^(?:0|[1-9]\d*)$/;
-
-/**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
-function isIndex(value, length) {
- var type = typeof value;
- length = length == null ? MAX_SAFE_INTEGER : length;
-
- return !!length &&
- (type == 'number' ||
- (type != 'symbol' && reIsUint.test(value))) &&
- (value > -1 && value % 1 == 0 && value < length);
-}
-
-module.exports = isIndex;
diff --git a/node_modules/lodash/_isIterateeCall.js b/node_modules/lodash/_isIterateeCall.js
deleted file mode 100644
index a0bb5a9..0000000
--- a/node_modules/lodash/_isIterateeCall.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var eq = require('./eq'),
- isArrayLike = require('./isArrayLike'),
- isIndex = require('./_isIndex'),
- isObject = require('./isObject');
-
-/**
- * Checks if the given arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
- * else `false`.
- */
-function isIterateeCall(value, index, object) {
- if (!isObject(object)) {
- return false;
- }
- var type = typeof index;
- if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)
- ) {
- return eq(object[index], value);
- }
- return false;
-}
-
-module.exports = isIterateeCall;
diff --git a/node_modules/lodash/_isKey.js b/node_modules/lodash/_isKey.js
deleted file mode 100644
index ff08b06..0000000
--- a/node_modules/lodash/_isKey.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var isArray = require('./isArray'),
- isSymbol = require('./isSymbol');
-
-/** Used to match property names within property paths. */
-var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/;
-
-/**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
-function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
-}
-
-module.exports = isKey;
diff --git a/node_modules/lodash/_isKeyable.js b/node_modules/lodash/_isKeyable.js
deleted file mode 100644
index 39f1828..0000000
--- a/node_modules/lodash/_isKeyable.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Checks if `value` is suitable for use as unique object key.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
- */
-function isKeyable(value) {
- var type = typeof value;
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
- ? (value !== '__proto__')
- : (value === null);
-}
-
-module.exports = isKeyable;
diff --git a/node_modules/lodash/_isLaziable.js b/node_modules/lodash/_isLaziable.js
deleted file mode 100644
index a57c4f2..0000000
--- a/node_modules/lodash/_isLaziable.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper'),
- getData = require('./_getData'),
- getFuncName = require('./_getFuncName'),
- lodash = require('./wrapperLodash');
-
-/**
- * Checks if `func` has a lazy counterpart.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
- * else `false`.
- */
-function isLaziable(func) {
- var funcName = getFuncName(func),
- other = lodash[funcName];
-
- if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
- return false;
- }
- if (func === other) {
- return true;
- }
- var data = getData(other);
- return !!data && func === data[0];
-}
-
-module.exports = isLaziable;
diff --git a/node_modules/lodash/_isMaskable.js b/node_modules/lodash/_isMaskable.js
deleted file mode 100644
index eb98d09..0000000
--- a/node_modules/lodash/_isMaskable.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var coreJsData = require('./_coreJsData'),
- isFunction = require('./isFunction'),
- stubFalse = require('./stubFalse');
-
-/**
- * Checks if `func` is capable of being masked.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
- */
-var isMaskable = coreJsData ? isFunction : stubFalse;
-
-module.exports = isMaskable;
diff --git a/node_modules/lodash/_isMasked.js b/node_modules/lodash/_isMasked.js
deleted file mode 100644
index 4b0f21b..0000000
--- a/node_modules/lodash/_isMasked.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var coreJsData = require('./_coreJsData');
-
-/** Used to detect methods masquerading as native. */
-var maskSrcKey = (function() {
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
- return uid ? ('Symbol(src)_1.' + uid) : '';
-}());
-
-/**
- * Checks if `func` has its source masked.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
- */
-function isMasked(func) {
- return !!maskSrcKey && (maskSrcKey in func);
-}
-
-module.exports = isMasked;
diff --git a/node_modules/lodash/_isPrototype.js b/node_modules/lodash/_isPrototype.js
deleted file mode 100644
index 0f29498..0000000
--- a/node_modules/lodash/_isPrototype.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
-function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
- return value === proto;
-}
-
-module.exports = isPrototype;
diff --git a/node_modules/lodash/_isStrictComparable.js b/node_modules/lodash/_isStrictComparable.js
deleted file mode 100644
index b59f40b..0000000
--- a/node_modules/lodash/_isStrictComparable.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var isObject = require('./isObject');
-
-/**
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` if suitable for strict
- * equality comparisons, else `false`.
- */
-function isStrictComparable(value) {
- return value === value && !isObject(value);
-}
-
-module.exports = isStrictComparable;
diff --git a/node_modules/lodash/_iteratorToArray.js b/node_modules/lodash/_iteratorToArray.js
deleted file mode 100644
index 4768566..0000000
--- a/node_modules/lodash/_iteratorToArray.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Converts `iterator` to an array.
- *
- * @private
- * @param {Object} iterator The iterator to convert.
- * @returns {Array} Returns the converted array.
- */
-function iteratorToArray(iterator) {
- var data,
- result = [];
-
- while (!(data = iterator.next()).done) {
- result.push(data.value);
- }
- return result;
-}
-
-module.exports = iteratorToArray;
diff --git a/node_modules/lodash/_lazyClone.js b/node_modules/lodash/_lazyClone.js
deleted file mode 100644
index d8a51f8..0000000
--- a/node_modules/lodash/_lazyClone.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper'),
- copyArray = require('./_copyArray');
-
-/**
- * Creates a clone of the lazy wrapper object.
- *
- * @private
- * @name clone
- * @memberOf LazyWrapper
- * @returns {Object} Returns the cloned `LazyWrapper` object.
- */
-function lazyClone() {
- var result = new LazyWrapper(this.__wrapped__);
- result.__actions__ = copyArray(this.__actions__);
- result.__dir__ = this.__dir__;
- result.__filtered__ = this.__filtered__;
- result.__iteratees__ = copyArray(this.__iteratees__);
- result.__takeCount__ = this.__takeCount__;
- result.__views__ = copyArray(this.__views__);
- return result;
-}
-
-module.exports = lazyClone;
diff --git a/node_modules/lodash/_lazyReverse.js b/node_modules/lodash/_lazyReverse.js
deleted file mode 100644
index c5b5219..0000000
--- a/node_modules/lodash/_lazyReverse.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper');
-
-/**
- * Reverses the direction of lazy iteration.
- *
- * @private
- * @name reverse
- * @memberOf LazyWrapper
- * @returns {Object} Returns the new reversed `LazyWrapper` object.
- */
-function lazyReverse() {
- if (this.__filtered__) {
- var result = new LazyWrapper(this);
- result.__dir__ = -1;
- result.__filtered__ = true;
- } else {
- result = this.clone();
- result.__dir__ *= -1;
- }
- return result;
-}
-
-module.exports = lazyReverse;
diff --git a/node_modules/lodash/_lazyValue.js b/node_modules/lodash/_lazyValue.js
deleted file mode 100644
index 371ca8d..0000000
--- a/node_modules/lodash/_lazyValue.js
+++ /dev/null
@@ -1,69 +0,0 @@
-var baseWrapperValue = require('./_baseWrapperValue'),
- getView = require('./_getView'),
- isArray = require('./isArray');
-
-/** Used to indicate the type of lazy iteratees. */
-var LAZY_FILTER_FLAG = 1,
- LAZY_MAP_FLAG = 2;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min;
-
-/**
- * Extracts the unwrapped value from its lazy wrapper.
- *
- * @private
- * @name value
- * @memberOf LazyWrapper
- * @returns {*} Returns the unwrapped value.
- */
-function lazyValue() {
- var array = this.__wrapped__.value(),
- dir = this.__dir__,
- isArr = isArray(array),
- isRight = dir < 0,
- arrLength = isArr ? array.length : 0,
- view = getView(0, arrLength, this.__views__),
- start = view.start,
- end = view.end,
- length = end - start,
- index = isRight ? end : (start - 1),
- iteratees = this.__iteratees__,
- iterLength = iteratees.length,
- resIndex = 0,
- takeCount = nativeMin(length, this.__takeCount__);
-
- if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
- return baseWrapperValue(array, this.__actions__);
- }
- var result = [];
-
- outer:
- while (length-- && resIndex < takeCount) {
- index += dir;
-
- var iterIndex = -1,
- value = array[index];
-
- while (++iterIndex < iterLength) {
- var data = iteratees[iterIndex],
- iteratee = data.iteratee,
- type = data.type,
- computed = iteratee(value);
-
- if (type == LAZY_MAP_FLAG) {
- value = computed;
- } else if (!computed) {
- if (type == LAZY_FILTER_FLAG) {
- continue outer;
- } else {
- break outer;
- }
- }
- }
- result[resIndex++] = value;
- }
- return result;
-}
-
-module.exports = lazyValue;
diff --git a/node_modules/lodash/_listCacheClear.js b/node_modules/lodash/_listCacheClear.js
deleted file mode 100644
index acbe39a..0000000
--- a/node_modules/lodash/_listCacheClear.js
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Removes all key-value entries from the list cache.
- *
- * @private
- * @name clear
- * @memberOf ListCache
- */
-function listCacheClear() {
- this.__data__ = [];
- this.size = 0;
-}
-
-module.exports = listCacheClear;
diff --git a/node_modules/lodash/_listCacheDelete.js b/node_modules/lodash/_listCacheDelete.js
deleted file mode 100644
index b1384ad..0000000
--- a/node_modules/lodash/_listCacheDelete.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var assocIndexOf = require('./_assocIndexOf');
-
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/** Built-in value references. */
-var splice = arrayProto.splice;
-
-/**
- * Removes `key` and its value from the list cache.
- *
- * @private
- * @name delete
- * @memberOf ListCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function listCacheDelete(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- --this.size;
- return true;
-}
-
-module.exports = listCacheDelete;
diff --git a/node_modules/lodash/_listCacheGet.js b/node_modules/lodash/_listCacheGet.js
deleted file mode 100644
index f8192fc..0000000
--- a/node_modules/lodash/_listCacheGet.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var assocIndexOf = require('./_assocIndexOf');
-
-/**
- * Gets the list cache value for `key`.
- *
- * @private
- * @name get
- * @memberOf ListCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function listCacheGet(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- return index < 0 ? undefined : data[index][1];
-}
-
-module.exports = listCacheGet;
diff --git a/node_modules/lodash/_listCacheHas.js b/node_modules/lodash/_listCacheHas.js
deleted file mode 100644
index 2adf671..0000000
--- a/node_modules/lodash/_listCacheHas.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var assocIndexOf = require('./_assocIndexOf');
-
-/**
- * Checks if a list cache value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf ListCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function listCacheHas(key) {
- return assocIndexOf(this.__data__, key) > -1;
-}
-
-module.exports = listCacheHas;
diff --git a/node_modules/lodash/_listCacheSet.js b/node_modules/lodash/_listCacheSet.js
deleted file mode 100644
index 5855c95..0000000
--- a/node_modules/lodash/_listCacheSet.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var assocIndexOf = require('./_assocIndexOf');
-
-/**
- * Sets the list cache `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf ListCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the list cache instance.
- */
-function listCacheSet(key, value) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- ++this.size;
- data.push([key, value]);
- } else {
- data[index][1] = value;
- }
- return this;
-}
-
-module.exports = listCacheSet;
diff --git a/node_modules/lodash/_mapCacheClear.js b/node_modules/lodash/_mapCacheClear.js
deleted file mode 100644
index bc9ca20..0000000
--- a/node_modules/lodash/_mapCacheClear.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var Hash = require('./_Hash'),
- ListCache = require('./_ListCache'),
- Map = require('./_Map');
-
-/**
- * Removes all key-value entries from the map.
- *
- * @private
- * @name clear
- * @memberOf MapCache
- */
-function mapCacheClear() {
- this.size = 0;
- this.__data__ = {
- 'hash': new Hash,
- 'map': new (Map || ListCache),
- 'string': new Hash
- };
-}
-
-module.exports = mapCacheClear;
diff --git a/node_modules/lodash/_mapCacheDelete.js b/node_modules/lodash/_mapCacheDelete.js
deleted file mode 100644
index 946ca3c..0000000
--- a/node_modules/lodash/_mapCacheDelete.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var getMapData = require('./_getMapData');
-
-/**
- * Removes `key` and its value from the map.
- *
- * @private
- * @name delete
- * @memberOf MapCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function mapCacheDelete(key) {
- var result = getMapData(this, key)['delete'](key);
- this.size -= result ? 1 : 0;
- return result;
-}
-
-module.exports = mapCacheDelete;
diff --git a/node_modules/lodash/_mapCacheGet.js b/node_modules/lodash/_mapCacheGet.js
deleted file mode 100644
index f29f55c..0000000
--- a/node_modules/lodash/_mapCacheGet.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var getMapData = require('./_getMapData');
-
-/**
- * Gets the map value for `key`.
- *
- * @private
- * @name get
- * @memberOf MapCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function mapCacheGet(key) {
- return getMapData(this, key).get(key);
-}
-
-module.exports = mapCacheGet;
diff --git a/node_modules/lodash/_mapCacheHas.js b/node_modules/lodash/_mapCacheHas.js
deleted file mode 100644
index a1214c0..0000000
--- a/node_modules/lodash/_mapCacheHas.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var getMapData = require('./_getMapData');
-
-/**
- * Checks if a map value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf MapCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function mapCacheHas(key) {
- return getMapData(this, key).has(key);
-}
-
-module.exports = mapCacheHas;
diff --git a/node_modules/lodash/_mapCacheSet.js b/node_modules/lodash/_mapCacheSet.js
deleted file mode 100644
index 7346849..0000000
--- a/node_modules/lodash/_mapCacheSet.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var getMapData = require('./_getMapData');
-
-/**
- * Sets the map `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf MapCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the map cache instance.
- */
-function mapCacheSet(key, value) {
- var data = getMapData(this, key),
- size = data.size;
-
- data.set(key, value);
- this.size += data.size == size ? 0 : 1;
- return this;
-}
-
-module.exports = mapCacheSet;
diff --git a/node_modules/lodash/_mapToArray.js b/node_modules/lodash/_mapToArray.js
deleted file mode 100644
index fe3dd53..0000000
--- a/node_modules/lodash/_mapToArray.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Converts `map` to its key-value pairs.
- *
- * @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the key-value pairs.
- */
-function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
-
- map.forEach(function(value, key) {
- result[++index] = [key, value];
- });
- return result;
-}
-
-module.exports = mapToArray;
diff --git a/node_modules/lodash/_matchesStrictComparable.js b/node_modules/lodash/_matchesStrictComparable.js
deleted file mode 100644
index f608af9..0000000
--- a/node_modules/lodash/_matchesStrictComparable.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * A specialized version of `matchesProperty` for source values suitable
- * for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
-function matchesStrictComparable(key, srcValue) {
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === srcValue &&
- (srcValue !== undefined || (key in Object(object)));
- };
-}
-
-module.exports = matchesStrictComparable;
diff --git a/node_modules/lodash/_memoizeCapped.js b/node_modules/lodash/_memoizeCapped.js
deleted file mode 100644
index 7f71c8f..0000000
--- a/node_modules/lodash/_memoizeCapped.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var memoize = require('./memoize');
-
-/** Used as the maximum memoize cache size. */
-var MAX_MEMOIZE_SIZE = 500;
-
-/**
- * A specialized version of `_.memoize` which clears the memoized function's
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
- *
- * @private
- * @param {Function} func The function to have its output memoized.
- * @returns {Function} Returns the new memoized function.
- */
-function memoizeCapped(func) {
- var result = memoize(func, function(key) {
- if (cache.size === MAX_MEMOIZE_SIZE) {
- cache.clear();
- }
- return key;
- });
-
- var cache = result.cache;
- return result;
-}
-
-module.exports = memoizeCapped;
diff --git a/node_modules/lodash/_mergeData.js b/node_modules/lodash/_mergeData.js
deleted file mode 100644
index cb570f9..0000000
--- a/node_modules/lodash/_mergeData.js
+++ /dev/null
@@ -1,90 +0,0 @@
-var composeArgs = require('./_composeArgs'),
- composeArgsRight = require('./_composeArgsRight'),
- replaceHolders = require('./_replaceHolders');
-
-/** Used as the internal argument placeholder. */
-var PLACEHOLDER = '__lodash_placeholder__';
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1,
- WRAP_BIND_KEY_FLAG = 2,
- WRAP_CURRY_BOUND_FLAG = 4,
- WRAP_CURRY_FLAG = 8,
- WRAP_ARY_FLAG = 128,
- WRAP_REARG_FLAG = 256;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min;
-
-/**
- * Merges the function metadata of `source` into `data`.
- *
- * Merging metadata reduces the number of wrappers used to invoke a function.
- * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
- * may be applied regardless of execution order. Methods like `_.ary` and
- * `_.rearg` modify function arguments, making the order in which they are
- * executed important, preventing the merging of metadata. However, we make
- * an exception for a safe combined case where curried functions have `_.ary`
- * and or `_.rearg` applied.
- *
- * @private
- * @param {Array} data The destination metadata.
- * @param {Array} source The source metadata.
- * @returns {Array} Returns `data`.
- */
-function mergeData(data, source) {
- var bitmask = data[1],
- srcBitmask = source[1],
- newBitmask = bitmask | srcBitmask,
- isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
-
- var isCombo =
- ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
- ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
- ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
-
- // Exit early if metadata can't be merged.
- if (!(isCommon || isCombo)) {
- return data;
- }
- // Use source `thisArg` if available.
- if (srcBitmask & WRAP_BIND_FLAG) {
- data[2] = source[2];
- // Set when currying a bound function.
- newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
- }
- // Compose partial arguments.
- var value = source[3];
- if (value) {
- var partials = data[3];
- data[3] = partials ? composeArgs(partials, value, source[4]) : value;
- data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
- }
- // Compose partial right arguments.
- value = source[5];
- if (value) {
- partials = data[5];
- data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
- data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
- }
- // Use source `argPos` if available.
- value = source[7];
- if (value) {
- data[7] = value;
- }
- // Use source `ary` if it's smaller.
- if (srcBitmask & WRAP_ARY_FLAG) {
- data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
- }
- // Use source `arity` if one is not provided.
- if (data[9] == null) {
- data[9] = source[9];
- }
- // Use source `func` and merge bitmasks.
- data[0] = source[0];
- data[1] = newBitmask;
-
- return data;
-}
-
-module.exports = mergeData;
diff --git a/node_modules/lodash/_metaMap.js b/node_modules/lodash/_metaMap.js
deleted file mode 100644
index 0157a0b..0000000
--- a/node_modules/lodash/_metaMap.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var WeakMap = require('./_WeakMap');
-
-/** Used to store function metadata. */
-var metaMap = WeakMap && new WeakMap;
-
-module.exports = metaMap;
diff --git a/node_modules/lodash/_nativeCreate.js b/node_modules/lodash/_nativeCreate.js
deleted file mode 100644
index c7aede8..0000000
--- a/node_modules/lodash/_nativeCreate.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var getNative = require('./_getNative');
-
-/* Built-in method references that are verified to be native. */
-var nativeCreate = getNative(Object, 'create');
-
-module.exports = nativeCreate;
diff --git a/node_modules/lodash/_nativeKeys.js b/node_modules/lodash/_nativeKeys.js
deleted file mode 100644
index 479a104..0000000
--- a/node_modules/lodash/_nativeKeys.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var overArg = require('./_overArg');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeKeys = overArg(Object.keys, Object);
-
-module.exports = nativeKeys;
diff --git a/node_modules/lodash/_nativeKeysIn.js b/node_modules/lodash/_nativeKeysIn.js
deleted file mode 100644
index 00ee505..0000000
--- a/node_modules/lodash/_nativeKeysIn.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * This function is like
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * except that it includes inherited enumerable properties.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
-function nativeKeysIn(object) {
- var result = [];
- if (object != null) {
- for (var key in Object(object)) {
- result.push(key);
- }
- }
- return result;
-}
-
-module.exports = nativeKeysIn;
diff --git a/node_modules/lodash/_nodeUtil.js b/node_modules/lodash/_nodeUtil.js
deleted file mode 100644
index 983d78f..0000000
--- a/node_modules/lodash/_nodeUtil.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var freeGlobal = require('./_freeGlobal');
-
-/** Detect free variable `exports`. */
-var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
-
-/** Detect free variable `module`. */
-var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
-/** Detect the popular CommonJS extension `module.exports`. */
-var moduleExports = freeModule && freeModule.exports === freeExports;
-
-/** Detect free variable `process` from Node.js. */
-var freeProcess = moduleExports && freeGlobal.process;
-
-/** Used to access faster Node.js helpers. */
-var nodeUtil = (function() {
- try {
- // Use `util.types` for Node.js 10+.
- var types = freeModule && freeModule.require && freeModule.require('util').types;
-
- if (types) {
- return types;
- }
-
- // Legacy `process.binding('util')` for Node.js < 10.
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
- } catch (e) {}
-}());
-
-module.exports = nodeUtil;
diff --git a/node_modules/lodash/_objectToString.js b/node_modules/lodash/_objectToString.js
deleted file mode 100644
index c614ec0..0000000
--- a/node_modules/lodash/_objectToString.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var nativeObjectToString = objectProto.toString;
-
-/**
- * Converts `value` to a string using `Object.prototype.toString`.
- *
- * @private
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- */
-function objectToString(value) {
- return nativeObjectToString.call(value);
-}
-
-module.exports = objectToString;
diff --git a/node_modules/lodash/_overArg.js b/node_modules/lodash/_overArg.js
deleted file mode 100644
index 651c5c5..0000000
--- a/node_modules/lodash/_overArg.js
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Creates a unary function that invokes `func` with its argument transformed.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} transform The argument transform.
- * @returns {Function} Returns the new function.
- */
-function overArg(func, transform) {
- return function(arg) {
- return func(transform(arg));
- };
-}
-
-module.exports = overArg;
diff --git a/node_modules/lodash/_overRest.js b/node_modules/lodash/_overRest.js
deleted file mode 100644
index c7cdef3..0000000
--- a/node_modules/lodash/_overRest.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var apply = require('./_apply');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * A specialized version of `baseRest` which transforms the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @param {Function} transform The rest array transform.
- * @returns {Function} Returns the new function.
- */
-function overRest(func, start, transform) {
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- index = -1;
- var otherArgs = Array(start + 1);
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = transform(array);
- return apply(func, this, otherArgs);
- };
-}
-
-module.exports = overRest;
diff --git a/node_modules/lodash/_parent.js b/node_modules/lodash/_parent.js
deleted file mode 100644
index f174328..0000000
--- a/node_modules/lodash/_parent.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var baseGet = require('./_baseGet'),
- baseSlice = require('./_baseSlice');
-
-/**
- * Gets the parent value at `path` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} path The path to get the parent value of.
- * @returns {*} Returns the parent value.
- */
-function parent(object, path) {
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
-}
-
-module.exports = parent;
diff --git a/node_modules/lodash/_reEscape.js b/node_modules/lodash/_reEscape.js
deleted file mode 100644
index 7f47eda..0000000
--- a/node_modules/lodash/_reEscape.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/** Used to match template delimiters. */
-var reEscape = /<%-([\s\S]+?)%>/g;
-
-module.exports = reEscape;
diff --git a/node_modules/lodash/_reEvaluate.js b/node_modules/lodash/_reEvaluate.js
deleted file mode 100644
index 6adfc31..0000000
--- a/node_modules/lodash/_reEvaluate.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/** Used to match template delimiters. */
-var reEvaluate = /<%([\s\S]+?)%>/g;
-
-module.exports = reEvaluate;
diff --git a/node_modules/lodash/_reInterpolate.js b/node_modules/lodash/_reInterpolate.js
deleted file mode 100644
index d02ff0b..0000000
--- a/node_modules/lodash/_reInterpolate.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/** Used to match template delimiters. */
-var reInterpolate = /<%=([\s\S]+?)%>/g;
-
-module.exports = reInterpolate;
diff --git a/node_modules/lodash/_realNames.js b/node_modules/lodash/_realNames.js
deleted file mode 100644
index aa0d529..0000000
--- a/node_modules/lodash/_realNames.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/** Used to lookup unminified function names. */
-var realNames = {};
-
-module.exports = realNames;
diff --git a/node_modules/lodash/_reorder.js b/node_modules/lodash/_reorder.js
deleted file mode 100644
index a3502b0..0000000
--- a/node_modules/lodash/_reorder.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var copyArray = require('./_copyArray'),
- isIndex = require('./_isIndex');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min;
-
-/**
- * Reorder `array` according to the specified indexes where the element at
- * the first index is assigned as the first element, the element at
- * the second index is assigned as the second element, and so on.
- *
- * @private
- * @param {Array} array The array to reorder.
- * @param {Array} indexes The arranged array indexes.
- * @returns {Array} Returns `array`.
- */
-function reorder(array, indexes) {
- var arrLength = array.length,
- length = nativeMin(indexes.length, arrLength),
- oldArray = copyArray(array);
-
- while (length--) {
- var index = indexes[length];
- array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
- }
- return array;
-}
-
-module.exports = reorder;
diff --git a/node_modules/lodash/_replaceHolders.js b/node_modules/lodash/_replaceHolders.js
deleted file mode 100644
index 74360ec..0000000
--- a/node_modules/lodash/_replaceHolders.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/** Used as the internal argument placeholder. */
-var PLACEHOLDER = '__lodash_placeholder__';
-
-/**
- * Replaces all `placeholder` elements in `array` with an internal placeholder
- * and returns an array of their indexes.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {*} placeholder The placeholder to replace.
- * @returns {Array} Returns the new array of placeholder indexes.
- */
-function replaceHolders(array, placeholder) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value === placeholder || value === PLACEHOLDER) {
- array[index] = PLACEHOLDER;
- result[resIndex++] = index;
- }
- }
- return result;
-}
-
-module.exports = replaceHolders;
diff --git a/node_modules/lodash/_root.js b/node_modules/lodash/_root.js
deleted file mode 100644
index d2852be..0000000
--- a/node_modules/lodash/_root.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var freeGlobal = require('./_freeGlobal');
-
-/** Detect free variable `self`. */
-var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
-
-/** Used as a reference to the global object. */
-var root = freeGlobal || freeSelf || Function('return this')();
-
-module.exports = root;
diff --git a/node_modules/lodash/_safeGet.js b/node_modules/lodash/_safeGet.js
deleted file mode 100644
index b070897..0000000
--- a/node_modules/lodash/_safeGet.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
-function safeGet(object, key) {
- if (key === 'constructor' && typeof object[key] === 'function') {
- return;
- }
-
- if (key == '__proto__') {
- return;
- }
-
- return object[key];
-}
-
-module.exports = safeGet;
diff --git a/node_modules/lodash/_setCacheAdd.js b/node_modules/lodash/_setCacheAdd.js
deleted file mode 100644
index 1081a74..0000000
--- a/node_modules/lodash/_setCacheAdd.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/** Used to stand-in for `undefined` hash values. */
-var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
-/**
- * Adds `value` to the array cache.
- *
- * @private
- * @name add
- * @memberOf SetCache
- * @alias push
- * @param {*} value The value to cache.
- * @returns {Object} Returns the cache instance.
- */
-function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED);
- return this;
-}
-
-module.exports = setCacheAdd;
diff --git a/node_modules/lodash/_setCacheHas.js b/node_modules/lodash/_setCacheHas.js
deleted file mode 100644
index 9a49255..0000000
--- a/node_modules/lodash/_setCacheHas.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Checks if `value` is in the array cache.
- *
- * @private
- * @name has
- * @memberOf SetCache
- * @param {*} value The value to search for.
- * @returns {number} Returns `true` if `value` is found, else `false`.
- */
-function setCacheHas(value) {
- return this.__data__.has(value);
-}
-
-module.exports = setCacheHas;
diff --git a/node_modules/lodash/_setData.js b/node_modules/lodash/_setData.js
deleted file mode 100644
index e5cf3eb..0000000
--- a/node_modules/lodash/_setData.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var baseSetData = require('./_baseSetData'),
- shortOut = require('./_shortOut');
-
-/**
- * Sets metadata for `func`.
- *
- * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
- * period of time, it will trip its breaker and transition to an identity
- * function to avoid garbage collection pauses in V8. See
- * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
- * for more details.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
-var setData = shortOut(baseSetData);
-
-module.exports = setData;
diff --git a/node_modules/lodash/_setToArray.js b/node_modules/lodash/_setToArray.js
deleted file mode 100644
index b87f074..0000000
--- a/node_modules/lodash/_setToArray.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Converts `set` to an array of its values.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the values.
- */
-function setToArray(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
-}
-
-module.exports = setToArray;
diff --git a/node_modules/lodash/_setToPairs.js b/node_modules/lodash/_setToPairs.js
deleted file mode 100644
index 36ad37a..0000000
--- a/node_modules/lodash/_setToPairs.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Converts `set` to its value-value pairs.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the value-value pairs.
- */
-function setToPairs(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = [value, value];
- });
- return result;
-}
-
-module.exports = setToPairs;
diff --git a/node_modules/lodash/_setToString.js b/node_modules/lodash/_setToString.js
deleted file mode 100644
index 6ca8419..0000000
--- a/node_modules/lodash/_setToString.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var baseSetToString = require('./_baseSetToString'),
- shortOut = require('./_shortOut');
-
-/**
- * Sets the `toString` method of `func` to return `string`.
- *
- * @private
- * @param {Function} func The function to modify.
- * @param {Function} string The `toString` result.
- * @returns {Function} Returns `func`.
- */
-var setToString = shortOut(baseSetToString);
-
-module.exports = setToString;
diff --git a/node_modules/lodash/_setWrapToString.js b/node_modules/lodash/_setWrapToString.js
deleted file mode 100644
index decdc44..0000000
--- a/node_modules/lodash/_setWrapToString.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var getWrapDetails = require('./_getWrapDetails'),
- insertWrapDetails = require('./_insertWrapDetails'),
- setToString = require('./_setToString'),
- updateWrapDetails = require('./_updateWrapDetails');
-
-/**
- * Sets the `toString` method of `wrapper` to mimic the source of `reference`
- * with wrapper details in a comment at the top of the source body.
- *
- * @private
- * @param {Function} wrapper The function to modify.
- * @param {Function} reference The reference function.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @returns {Function} Returns `wrapper`.
- */
-function setWrapToString(wrapper, reference, bitmask) {
- var source = (reference + '');
- return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
-}
-
-module.exports = setWrapToString;
diff --git a/node_modules/lodash/_shortOut.js b/node_modules/lodash/_shortOut.js
deleted file mode 100644
index 3300a07..0000000
--- a/node_modules/lodash/_shortOut.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/** Used to detect hot functions by number of calls within a span of milliseconds. */
-var HOT_COUNT = 800,
- HOT_SPAN = 16;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeNow = Date.now;
-
-/**
- * Creates a function that'll short out and invoke `identity` instead
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
- * milliseconds.
- *
- * @private
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new shortable function.
- */
-function shortOut(func) {
- var count = 0,
- lastCalled = 0;
-
- return function() {
- var stamp = nativeNow(),
- remaining = HOT_SPAN - (stamp - lastCalled);
-
- lastCalled = stamp;
- if (remaining > 0) {
- if (++count >= HOT_COUNT) {
- return arguments[0];
- }
- } else {
- count = 0;
- }
- return func.apply(undefined, arguments);
- };
-}
-
-module.exports = shortOut;
diff --git a/node_modules/lodash/_shuffleSelf.js b/node_modules/lodash/_shuffleSelf.js
deleted file mode 100644
index 8bcc4f5..0000000
--- a/node_modules/lodash/_shuffleSelf.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseRandom = require('./_baseRandom');
-
-/**
- * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
- *
- * @private
- * @param {Array} array The array to shuffle.
- * @param {number} [size=array.length] The size of `array`.
- * @returns {Array} Returns `array`.
- */
-function shuffleSelf(array, size) {
- var index = -1,
- length = array.length,
- lastIndex = length - 1;
-
- size = size === undefined ? length : size;
- while (++index < size) {
- var rand = baseRandom(index, lastIndex),
- value = array[rand];
-
- array[rand] = array[index];
- array[index] = value;
- }
- array.length = size;
- return array;
-}
-
-module.exports = shuffleSelf;
diff --git a/node_modules/lodash/_stackClear.js b/node_modules/lodash/_stackClear.js
deleted file mode 100644
index ce8e5a9..0000000
--- a/node_modules/lodash/_stackClear.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var ListCache = require('./_ListCache');
-
-/**
- * Removes all key-value entries from the stack.
- *
- * @private
- * @name clear
- * @memberOf Stack
- */
-function stackClear() {
- this.__data__ = new ListCache;
- this.size = 0;
-}
-
-module.exports = stackClear;
diff --git a/node_modules/lodash/_stackDelete.js b/node_modules/lodash/_stackDelete.js
deleted file mode 100644
index ff9887a..0000000
--- a/node_modules/lodash/_stackDelete.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Removes `key` and its value from the stack.
- *
- * @private
- * @name delete
- * @memberOf Stack
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
-function stackDelete(key) {
- var data = this.__data__,
- result = data['delete'](key);
-
- this.size = data.size;
- return result;
-}
-
-module.exports = stackDelete;
diff --git a/node_modules/lodash/_stackGet.js b/node_modules/lodash/_stackGet.js
deleted file mode 100644
index 1cdf004..0000000
--- a/node_modules/lodash/_stackGet.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Gets the stack value for `key`.
- *
- * @private
- * @name get
- * @memberOf Stack
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
-function stackGet(key) {
- return this.__data__.get(key);
-}
-
-module.exports = stackGet;
diff --git a/node_modules/lodash/_stackHas.js b/node_modules/lodash/_stackHas.js
deleted file mode 100644
index 16a3ad1..0000000
--- a/node_modules/lodash/_stackHas.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Checks if a stack value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Stack
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
-function stackHas(key) {
- return this.__data__.has(key);
-}
-
-module.exports = stackHas;
diff --git a/node_modules/lodash/_stackSet.js b/node_modules/lodash/_stackSet.js
deleted file mode 100644
index b790ac5..0000000
--- a/node_modules/lodash/_stackSet.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var ListCache = require('./_ListCache'),
- Map = require('./_Map'),
- MapCache = require('./_MapCache');
-
-/** Used as the size to enable large array optimizations. */
-var LARGE_ARRAY_SIZE = 200;
-
-/**
- * Sets the stack `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Stack
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the stack cache instance.
- */
-function stackSet(key, value) {
- var data = this.__data__;
- if (data instanceof ListCache) {
- var pairs = data.__data__;
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
- pairs.push([key, value]);
- this.size = ++data.size;
- return this;
- }
- data = this.__data__ = new MapCache(pairs);
- }
- data.set(key, value);
- this.size = data.size;
- return this;
-}
-
-module.exports = stackSet;
diff --git a/node_modules/lodash/_strictIndexOf.js b/node_modules/lodash/_strictIndexOf.js
deleted file mode 100644
index 0486a49..0000000
--- a/node_modules/lodash/_strictIndexOf.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * A specialized version of `_.indexOf` which performs strict equality
- * comparisons of values, i.e. `===`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function strictIndexOf(array, value, fromIndex) {
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
-}
-
-module.exports = strictIndexOf;
diff --git a/node_modules/lodash/_strictLastIndexOf.js b/node_modules/lodash/_strictLastIndexOf.js
deleted file mode 100644
index d7310dc..0000000
--- a/node_modules/lodash/_strictLastIndexOf.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * A specialized version of `_.lastIndexOf` which performs strict equality
- * comparisons of values, i.e. `===`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
-function strictLastIndexOf(array, value, fromIndex) {
- var index = fromIndex + 1;
- while (index--) {
- if (array[index] === value) {
- return index;
- }
- }
- return index;
-}
-
-module.exports = strictLastIndexOf;
diff --git a/node_modules/lodash/_stringSize.js b/node_modules/lodash/_stringSize.js
deleted file mode 100644
index 17ef462..0000000
--- a/node_modules/lodash/_stringSize.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var asciiSize = require('./_asciiSize'),
- hasUnicode = require('./_hasUnicode'),
- unicodeSize = require('./_unicodeSize');
-
-/**
- * Gets the number of symbols in `string`.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {number} Returns the string size.
- */
-function stringSize(string) {
- return hasUnicode(string)
- ? unicodeSize(string)
- : asciiSize(string);
-}
-
-module.exports = stringSize;
diff --git a/node_modules/lodash/_stringToArray.js b/node_modules/lodash/_stringToArray.js
deleted file mode 100644
index d161158..0000000
--- a/node_modules/lodash/_stringToArray.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var asciiToArray = require('./_asciiToArray'),
- hasUnicode = require('./_hasUnicode'),
- unicodeToArray = require('./_unicodeToArray');
-
-/**
- * Converts `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
-function stringToArray(string) {
- return hasUnicode(string)
- ? unicodeToArray(string)
- : asciiToArray(string);
-}
-
-module.exports = stringToArray;
diff --git a/node_modules/lodash/_stringToPath.js b/node_modules/lodash/_stringToPath.js
deleted file mode 100644
index 8f39f8a..0000000
--- a/node_modules/lodash/_stringToPath.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var memoizeCapped = require('./_memoizeCapped');
-
-/** Used to match property names within property paths. */
-var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
-
-/** Used to match backslashes in property paths. */
-var reEscapeChar = /\\(\\)?/g;
-
-/**
- * Converts `string` to a property path array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
- */
-var stringToPath = memoizeCapped(function(string) {
- var result = [];
- if (string.charCodeAt(0) === 46 /* . */) {
- result.push('');
- }
- string.replace(rePropName, function(match, number, quote, subString) {
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
-});
-
-module.exports = stringToPath;
diff --git a/node_modules/lodash/_toKey.js b/node_modules/lodash/_toKey.js
deleted file mode 100644
index c6d645c..0000000
--- a/node_modules/lodash/_toKey.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var isSymbol = require('./isSymbol');
-
-/** Used as references for various `Number` constants. */
-var INFINITY = 1 / 0;
-
-/**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
-function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
-}
-
-module.exports = toKey;
diff --git a/node_modules/lodash/_toSource.js b/node_modules/lodash/_toSource.js
deleted file mode 100644
index a020b38..0000000
--- a/node_modules/lodash/_toSource.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/** Used for built-in method references. */
-var funcProto = Function.prototype;
-
-/** Used to resolve the decompiled source of functions. */
-var funcToString = funcProto.toString;
-
-/**
- * Converts `func` to its source code.
- *
- * @private
- * @param {Function} func The function to convert.
- * @returns {string} Returns the source code.
- */
-function toSource(func) {
- if (func != null) {
- try {
- return funcToString.call(func);
- } catch (e) {}
- try {
- return (func + '');
- } catch (e) {}
- }
- return '';
-}
-
-module.exports = toSource;
diff --git a/node_modules/lodash/_unescapeHtmlChar.js b/node_modules/lodash/_unescapeHtmlChar.js
deleted file mode 100644
index a71fecb..0000000
--- a/node_modules/lodash/_unescapeHtmlChar.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var basePropertyOf = require('./_basePropertyOf');
-
-/** Used to map HTML entities to characters. */
-var htmlUnescapes = {
- '&amp;': '&',
- '&lt;': '<',
- '&gt;': '>',
- '&quot;': '"',
- '&#39;': "'"
-};
-
-/**
- * Used by `_.unescape` to convert HTML entities to characters.
- *
- * @private
- * @param {string} chr The matched character to unescape.
- * @returns {string} Returns the unescaped character.
- */
-var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
-
-module.exports = unescapeHtmlChar;
diff --git a/node_modules/lodash/_unicodeSize.js b/node_modules/lodash/_unicodeSize.js
deleted file mode 100644
index 68137ec..0000000
--- a/node_modules/lodash/_unicodeSize.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/** Used to compose unicode character classes. */
-var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
-
-/** Used to compose unicode capture groups. */
-var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsZWJ = '\\u200d';
-
-/** Used to compose unicode regexes. */
-var reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
-/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
-var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
-/**
- * Gets the size of a Unicode `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
-function unicodeSize(string) {
- var result = reUnicode.lastIndex = 0;
- while (reUnicode.test(string)) {
- ++result;
- }
- return result;
-}
-
-module.exports = unicodeSize;
diff --git a/node_modules/lodash/_unicodeToArray.js b/node_modules/lodash/_unicodeToArray.js
deleted file mode 100644
index 2a725c0..0000000
--- a/node_modules/lodash/_unicodeToArray.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/** Used to compose unicode character classes. */
-var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsVarRange = '\\ufe0e\\ufe0f';
-
-/** Used to compose unicode capture groups. */
-var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsZWJ = '\\u200d';
-
-/** Used to compose unicode regexes. */
-var reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
-/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
-var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
-/**
- * Converts a Unicode `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
-function unicodeToArray(string) {
- return string.match(reUnicode) || [];
-}
-
-module.exports = unicodeToArray;
diff --git a/node_modules/lodash/_unicodeWords.js b/node_modules/lodash/_unicodeWords.js
deleted file mode 100644
index e72e6e0..0000000
--- a/node_modules/lodash/_unicodeWords.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/** Used to compose unicode character classes. */
-var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsDingbatRange = '\\u2700-\\u27bf',
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- rsPunctuationRange = '\\u2000-\\u206f',
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- rsVarRange = '\\ufe0e\\ufe0f',
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
-
-/** Used to compose unicode capture groups. */
-var rsApos = "['\u2019]",
- rsBreak = '[' + rsBreakRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsDigits = '\\d+',
- rsDingbat = '[' + rsDingbatRange + ']',
- rsLower = '[' + rsLowerRange + ']',
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsUpper = '[' + rsUpperRange + ']',
- rsZWJ = '\\u200d';
-
-/** Used to compose unicode regexes. */
-var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
- rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
- rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
- reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
-
-/** Used to match complex or compound words. */
-var reUnicodeWord = RegExp([
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
- rsUpper + '+' + rsOptContrUpper,
- rsOrdUpper,
- rsOrdLower,
- rsDigits,
- rsEmoji
-].join('|'), 'g');
-
-/**
- * Splits a Unicode `string` into an array of its words.
- *
- * @private
- * @param {string} The string to inspect.
- * @returns {Array} Returns the words of `string`.
- */
-function unicodeWords(string) {
- return string.match(reUnicodeWord) || [];
-}
-
-module.exports = unicodeWords;
diff --git a/node_modules/lodash/_updateWrapDetails.js b/node_modules/lodash/_updateWrapDetails.js
deleted file mode 100644
index 8759fbd..0000000
--- a/node_modules/lodash/_updateWrapDetails.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var arrayEach = require('./_arrayEach'),
- arrayIncludes = require('./_arrayIncludes');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1,
- WRAP_BIND_KEY_FLAG = 2,
- WRAP_CURRY_FLAG = 8,
- WRAP_CURRY_RIGHT_FLAG = 16,
- WRAP_PARTIAL_FLAG = 32,
- WRAP_PARTIAL_RIGHT_FLAG = 64,
- WRAP_ARY_FLAG = 128,
- WRAP_REARG_FLAG = 256,
- WRAP_FLIP_FLAG = 512;
-
-/** Used to associate wrap methods with their bit flags. */
-var wrapFlags = [
- ['ary', WRAP_ARY_FLAG],
- ['bind', WRAP_BIND_FLAG],
- ['bindKey', WRAP_BIND_KEY_FLAG],
- ['curry', WRAP_CURRY_FLAG],
- ['curryRight', WRAP_CURRY_RIGHT_FLAG],
- ['flip', WRAP_FLIP_FLAG],
- ['partial', WRAP_PARTIAL_FLAG],
- ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
- ['rearg', WRAP_REARG_FLAG]
-];
-
-/**
- * Updates wrapper `details` based on `bitmask` flags.
- *
- * @private
- * @returns {Array} details The details to modify.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @returns {Array} Returns `details`.
- */
-function updateWrapDetails(details, bitmask) {
- arrayEach(wrapFlags, function(pair) {
- var value = '_.' + pair[0];
- if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
- details.push(value);
- }
- });
- return details.sort();
-}
-
-module.exports = updateWrapDetails;
diff --git a/node_modules/lodash/_wrapperClone.js b/node_modules/lodash/_wrapperClone.js
deleted file mode 100644
index 7bb58a2..0000000
--- a/node_modules/lodash/_wrapperClone.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper'),
- LodashWrapper = require('./_LodashWrapper'),
- copyArray = require('./_copyArray');
-
-/**
- * Creates a clone of `wrapper`.
- *
- * @private
- * @param {Object} wrapper The wrapper to clone.
- * @returns {Object} Returns the cloned wrapper.
- */
-function wrapperClone(wrapper) {
- if (wrapper instanceof LazyWrapper) {
- return wrapper.clone();
- }
- var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
- result.__actions__ = copyArray(wrapper.__actions__);
- result.__index__ = wrapper.__index__;
- result.__values__ = wrapper.__values__;
- return result;
-}
-
-module.exports = wrapperClone;
diff --git a/node_modules/lodash/add.js b/node_modules/lodash/add.js
deleted file mode 100644
index f069515..0000000
--- a/node_modules/lodash/add.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var createMathOperation = require('./_createMathOperation');
-
-/**
- * Adds two numbers.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {number} augend The first number in an addition.
- * @param {number} addend The second number in an addition.
- * @returns {number} Returns the total.
- * @example
- *
- * _.add(6, 4);
- * // => 10
- */
-var add = createMathOperation(function(augend, addend) {
- return augend + addend;
-}, 0);
-
-module.exports = add;
diff --git a/node_modules/lodash/after.js b/node_modules/lodash/after.js
deleted file mode 100644
index 3900c97..0000000
--- a/node_modules/lodash/after.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var toInteger = require('./toInteger');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * The opposite of `_.before`; this method creates a function that invokes
- * `func` once it's called `n` or more times.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {number} n The number of calls before `func` is invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var saves = ['profile', 'settings'];
- *
- * var done = _.after(saves.length, function() {
- * console.log('done saving!');
- * });
- *
- * _.forEach(saves, function(type) {
- * asyncSave({ 'type': type, 'complete': done });
- * });
- * // => Logs 'done saving!' after the two async saves have completed.
- */
-function after(n, func) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n < 1) {
- return func.apply(this, arguments);
- }
- };
-}
-
-module.exports = after;
diff --git a/node_modules/lodash/array.js b/node_modules/lodash/array.js
deleted file mode 100644
index af688d3..0000000
--- a/node_modules/lodash/array.js
+++ /dev/null
@@ -1,67 +0,0 @@
-module.exports = {
- 'chunk': require('./chunk'),
- 'compact': require('./compact'),
- 'concat': require('./concat'),
- 'difference': require('./difference'),
- 'differenceBy': require('./differenceBy'),
- 'differenceWith': require('./differenceWith'),
- 'drop': require('./drop'),
- 'dropRight': require('./dropRight'),
- 'dropRightWhile': require('./dropRightWhile'),
- 'dropWhile': require('./dropWhile'),
- 'fill': require('./fill'),
- 'findIndex': require('./findIndex'),
- 'findLastIndex': require('./findLastIndex'),
- 'first': require('./first'),
- 'flatten': require('./flatten'),
- 'flattenDeep': require('./flattenDeep'),
- 'flattenDepth': require('./flattenDepth'),
- 'fromPairs': require('./fromPairs'),
- 'head': require('./head'),
- 'indexOf': require('./indexOf'),
- 'initial': require('./initial'),
- 'intersection': require('./intersection'),
- 'intersectionBy': require('./intersectionBy'),
- 'intersectionWith': require('./intersectionWith'),
- 'join': require('./join'),
- 'last': require('./last'),
- 'lastIndexOf': require('./lastIndexOf'),
- 'nth': require('./nth'),
- 'pull': require('./pull'),
- 'pullAll': require('./pullAll'),
- 'pullAllBy': require('./pullAllBy'),
- 'pullAllWith': require('./pullAllWith'),
- 'pullAt': require('./pullAt'),
- 'remove': require('./remove'),
- 'reverse': require('./reverse'),
- 'slice': require('./slice'),
- 'sortedIndex': require('./sortedIndex'),
- 'sortedIndexBy': require('./sortedIndexBy'),
- 'sortedIndexOf': require('./sortedIndexOf'),
- 'sortedLastIndex': require('./sortedLastIndex'),
- 'sortedLastIndexBy': require('./sortedLastIndexBy'),
- 'sortedLastIndexOf': require('./sortedLastIndexOf'),
- 'sortedUniq': require('./sortedUniq'),
- 'sortedUniqBy': require('./sortedUniqBy'),
- 'tail': require('./tail'),
- 'take': require('./take'),
- 'takeRight': require('./takeRight'),
- 'takeRightWhile': require('./takeRightWhile'),
- 'takeWhile': require('./takeWhile'),
- 'union': require('./union'),
- 'unionBy': require('./unionBy'),
- 'unionWith': require('./unionWith'),
- 'uniq': require('./uniq'),
- 'uniqBy': require('./uniqBy'),
- 'uniqWith': require('./uniqWith'),
- 'unzip': require('./unzip'),
- 'unzipWith': require('./unzipWith'),
- 'without': require('./without'),
- 'xor': require('./xor'),
- 'xorBy': require('./xorBy'),
- 'xorWith': require('./xorWith'),
- 'zip': require('./zip'),
- 'zipObject': require('./zipObject'),
- 'zipObjectDeep': require('./zipObjectDeep'),
- 'zipWith': require('./zipWith')
-};
diff --git a/node_modules/lodash/ary.js b/node_modules/lodash/ary.js
deleted file mode 100644
index 70c87d0..0000000
--- a/node_modules/lodash/ary.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var createWrap = require('./_createWrap');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_ARY_FLAG = 128;
-
-/**
- * Creates a function that invokes `func`, with up to `n` arguments,
- * ignoring any additional arguments.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @param {number} [n=func.length] The arity cap.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.ary(parseInt, 1));
- * // => [6, 8, 10]
- */
-function ary(func, n, guard) {
- n = guard ? undefined : n;
- n = (func && n == null) ? func.length : n;
- return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
-}
-
-module.exports = ary;
diff --git a/node_modules/lodash/assign.js b/node_modules/lodash/assign.js
deleted file mode 100644
index 909db26..0000000
--- a/node_modules/lodash/assign.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var assignValue = require('./_assignValue'),
- copyObject = require('./_copyObject'),
- createAssigner = require('./_createAssigner'),
- isArrayLike = require('./isArrayLike'),
- isPrototype = require('./_isPrototype'),
- keys = require('./keys');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Assigns own enumerable string keyed properties of source objects to the
- * destination object. Source objects are applied from left to right.
- * Subsequent sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object` and is loosely based on
- * [`Object.assign`](https://mdn.io/Object/assign).
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assignIn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * function Bar() {
- * this.c = 3;
- * }
- *
- * Foo.prototype.b = 2;
- * Bar.prototype.d = 4;
- *
- * _.assign({ 'a': 0 }, new Foo, new Bar);
- * // => { 'a': 1, 'c': 3 }
- */
-var assign = createAssigner(function(object, source) {
- if (isPrototype(source) || isArrayLike(source)) {
- copyObject(source, keys(source), object);
- return;
- }
- for (var key in source) {
- if (hasOwnProperty.call(source, key)) {
- assignValue(object, key, source[key]);
- }
- }
-});
-
-module.exports = assign;
diff --git a/node_modules/lodash/assignIn.js b/node_modules/lodash/assignIn.js
deleted file mode 100644
index e663473..0000000
--- a/node_modules/lodash/assignIn.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var copyObject = require('./_copyObject'),
- createAssigner = require('./_createAssigner'),
- keysIn = require('./keysIn');
-
-/**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assign
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * function Bar() {
- * this.c = 3;
- * }
- *
- * Foo.prototype.b = 2;
- * Bar.prototype.d = 4;
- *
- * _.assignIn({ 'a': 0 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
- */
-var assignIn = createAssigner(function(object, source) {
- copyObject(source, keysIn(source), object);
-});
-
-module.exports = assignIn;
diff --git a/node_modules/lodash/assignInWith.js b/node_modules/lodash/assignInWith.js
deleted file mode 100644
index 68fcc0b..0000000
--- a/node_modules/lodash/assignInWith.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var copyObject = require('./_copyObject'),
- createAssigner = require('./_createAssigner'),
- keysIn = require('./keysIn');
-
-/**
- * This method is like `_.assignIn` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extendWith
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignInWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
-var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keysIn(source), object, customizer);
-});
-
-module.exports = assignInWith;
diff --git a/node_modules/lodash/assignWith.js b/node_modules/lodash/assignWith.js
deleted file mode 100644
index 7dc6c76..0000000
--- a/node_modules/lodash/assignWith.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var copyObject = require('./_copyObject'),
- createAssigner = require('./_createAssigner'),
- keys = require('./keys');
-
-/**
- * This method is like `_.assign` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignInWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
-var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keys(source), object, customizer);
-});
-
-module.exports = assignWith;
diff --git a/node_modules/lodash/at.js b/node_modules/lodash/at.js
deleted file mode 100644
index 781ee9e..0000000
--- a/node_modules/lodash/at.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var baseAt = require('./_baseAt'),
- flatRest = require('./_flatRest');
-
-/**
- * Creates an array of values corresponding to `paths` of `object`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Array} Returns the picked values.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _.at(object, ['a[0].b.c', 'a[1]']);
- * // => [3, 4]
- */
-var at = flatRest(baseAt);
-
-module.exports = at;
diff --git a/node_modules/lodash/attempt.js b/node_modules/lodash/attempt.js
deleted file mode 100644
index 624d015..0000000
--- a/node_modules/lodash/attempt.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var apply = require('./_apply'),
- baseRest = require('./_baseRest'),
- isError = require('./isError');
-
-/**
- * Attempts to invoke `func`, returning either the result or the caught error
- * object. Any additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Function} func The function to attempt.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {*} Returns the `func` result or error object.
- * @example
- *
- * // Avoid throwing errors for invalid selectors.
- * var elements = _.attempt(function(selector) {
- * return document.querySelectorAll(selector);
- * }, '>_>');
- *
- * if (_.isError(elements)) {
- * elements = [];
- * }
- */
-var attempt = baseRest(function(func, args) {
- try {
- return apply(func, undefined, args);
- } catch (e) {
- return isError(e) ? e : new Error(e);
- }
-});
-
-module.exports = attempt;
diff --git a/node_modules/lodash/before.js b/node_modules/lodash/before.js
deleted file mode 100644
index a3e0a16..0000000
--- a/node_modules/lodash/before.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var toInteger = require('./toInteger');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * Creates a function that invokes `func`, with the `this` binding and arguments
- * of the created function, while it's called less than `n` times. Subsequent
- * calls to the created function return the result of the last `func` invocation.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {number} n The number of calls at which `func` is no longer invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * jQuery(element).on('click', _.before(5, addContactToList));
- * // => Allows adding up to 4 contacts to the list.
- */
-function before(n, func) {
- var result;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n > 0) {
- result = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = undefined;
- }
- return result;
- };
-}
-
-module.exports = before;
diff --git a/node_modules/lodash/bind.js b/node_modules/lodash/bind.js
deleted file mode 100644
index b1076e9..0000000
--- a/node_modules/lodash/bind.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var baseRest = require('./_baseRest'),
- createWrap = require('./_createWrap'),
- getHolder = require('./_getHolder'),
- replaceHolders = require('./_replaceHolders');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1,
- WRAP_PARTIAL_FLAG = 32;
-
-/**
- * Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and `partials` prepended to the arguments it receives.
- *
- * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for partially applied arguments.
- *
- * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
- * property of bound functions.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to bind.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * function greet(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * }
- *
- * var object = { 'user': 'fred' };
- *
- * var bound = _.bind(greet, object, 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bind(greet, object, _, '!');
- * bound('hi');
- * // => 'hi fred!'
- */
-var bind = baseRest(function(func, thisArg, partials) {
- var bitmask = WRAP_BIND_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bind));
- bitmask |= WRAP_PARTIAL_FLAG;
- }
- return createWrap(func, bitmask, thisArg, partials, holders);
-});
-
-// Assign default placeholders.
-bind.placeholder = {};
-
-module.exports = bind;
diff --git a/node_modules/lodash/bindAll.js b/node_modules/lodash/bindAll.js
deleted file mode 100644
index a35706d..0000000
--- a/node_modules/lodash/bindAll.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var arrayEach = require('./_arrayEach'),
- baseAssignValue = require('./_baseAssignValue'),
- bind = require('./bind'),
- flatRest = require('./_flatRest'),
- toKey = require('./_toKey');
-
-/**
- * Binds methods of an object to the object itself, overwriting the existing
- * method.
- *
- * **Note:** This method doesn't set the "length" property of bound functions.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Object} object The object to bind and assign the bound methods to.
- * @param {...(string|string[])} methodNames The object method names to bind.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var view = {
- * 'label': 'docs',
- * 'click': function() {
- * console.log('clicked ' + this.label);
- * }
- * };
- *
- * _.bindAll(view, ['click']);
- * jQuery(element).on('click', view.click);
- * // => Logs 'clicked docs' when clicked.
- */
-var bindAll = flatRest(function(object, methodNames) {
- arrayEach(methodNames, function(key) {
- key = toKey(key);
- baseAssignValue(object, key, bind(object[key], object));
- });
- return object;
-});
-
-module.exports = bindAll;
diff --git a/node_modules/lodash/bindKey.js b/node_modules/lodash/bindKey.js
deleted file mode 100644
index f7fd64c..0000000
--- a/node_modules/lodash/bindKey.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var baseRest = require('./_baseRest'),
- createWrap = require('./_createWrap'),
- getHolder = require('./_getHolder'),
- replaceHolders = require('./_replaceHolders');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_BIND_FLAG = 1,
- WRAP_BIND_KEY_FLAG = 2,
- WRAP_PARTIAL_FLAG = 32;
-
-/**
- * Creates a function that invokes the method at `object[key]` with `partials`
- * prepended to the arguments it receives.
- *
- * This method differs from `_.bind` by allowing bound functions to reference
- * methods that may be redefined or don't yet exist. See
- * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
- * for more details.
- *
- * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Function
- * @param {Object} object The object to invoke the method on.
- * @param {string} key The key of the method.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * var object = {
- * 'user': 'fred',
- * 'greet': function(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * }
- * };
- *
- * var bound = _.bindKey(object, 'greet', 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * object.greet = function(greeting, punctuation) {
- * return greeting + 'ya ' + this.user + punctuation;
- * };
- *
- * bound('!');
- * // => 'hiya fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bindKey(object, 'greet', _, '!');
- * bound('hi');
- * // => 'hiya fred!'
- */
-var bindKey = baseRest(function(object, key, partials) {
- var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bindKey));
- bitmask |= WRAP_PARTIAL_FLAG;
- }
- return createWrap(key, bitmask, object, partials, holders);
-});
-
-// Assign default placeholders.
-bindKey.placeholder = {};
-
-module.exports = bindKey;
diff --git a/node_modules/lodash/camelCase.js b/node_modules/lodash/camelCase.js
deleted file mode 100644
index d7390de..0000000
--- a/node_modules/lodash/camelCase.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var capitalize = require('./capitalize'),
- createCompounder = require('./_createCompounder');
-
-/**
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the camel cased string.
- * @example
- *
- * _.camelCase('Foo Bar');
- * // => 'fooBar'
- *
- * _.camelCase('--foo-bar--');
- * // => 'fooBar'
- *
- * _.camelCase('__FOO_BAR__');
- * // => 'fooBar'
- */
-var camelCase = createCompounder(function(result, word, index) {
- word = word.toLowerCase();
- return result + (index ? capitalize(word) : word);
-});
-
-module.exports = camelCase;
diff --git a/node_modules/lodash/capitalize.js b/node_modules/lodash/capitalize.js
deleted file mode 100644
index 3e1600e..0000000
--- a/node_modules/lodash/capitalize.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var toString = require('./toString'),
- upperFirst = require('./upperFirst');
-
-/**
- * Converts the first character of `string` to upper case and the remaining
- * to lower case.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to capitalize.
- * @returns {string} Returns the capitalized string.
- * @example
- *
- * _.capitalize('FRED');
- * // => 'Fred'
- */
-function capitalize(string) {
- return upperFirst(toString(string).toLowerCase());
-}
-
-module.exports = capitalize;
diff --git a/node_modules/lodash/castArray.js b/node_modules/lodash/castArray.js
deleted file mode 100644
index e470bdb..0000000
--- a/node_modules/lodash/castArray.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var isArray = require('./isArray');
-
-/**
- * Casts `value` as an array if it's not one.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Lang
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast array.
- * @example
- *
- * _.castArray(1);
- * // => [1]
- *
- * _.castArray({ 'a': 1 });
- * // => [{ 'a': 1 }]
- *
- * _.castArray('abc');
- * // => ['abc']
- *
- * _.castArray(null);
- * // => [null]
- *
- * _.castArray(undefined);
- * // => [undefined]
- *
- * _.castArray();
- * // => []
- *
- * var array = [1, 2, 3];
- * console.log(_.castArray(array) === array);
- * // => true
- */
-function castArray() {
- if (!arguments.length) {
- return [];
- }
- var value = arguments[0];
- return isArray(value) ? value : [value];
-}
-
-module.exports = castArray;
diff --git a/node_modules/lodash/ceil.js b/node_modules/lodash/ceil.js
deleted file mode 100644
index 56c8722..0000000
--- a/node_modules/lodash/ceil.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var createRound = require('./_createRound');
-
-/**
- * Computes `number` rounded up to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round up.
- * @param {number} [precision=0] The precision to round up to.
- * @returns {number} Returns the rounded up number.
- * @example
- *
- * _.ceil(4.006);
- * // => 5
- *
- * _.ceil(6.004, 2);
- * // => 6.01
- *
- * _.ceil(6040, -2);
- * // => 6100
- */
-var ceil = createRound('ceil');
-
-module.exports = ceil;
diff --git a/node_modules/lodash/chain.js b/node_modules/lodash/chain.js
deleted file mode 100644
index f6cd647..0000000
--- a/node_modules/lodash/chain.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var lodash = require('./wrapperLodash');
-
-/**
- * Creates a `lodash` wrapper instance that wraps `value` with explicit method
- * chain sequences enabled. The result of such sequences must be unwrapped
- * with `_#value`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Seq
- * @param {*} value The value to wrap.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'pebbles', 'age': 1 }
- * ];
- *
- * var youngest = _
- * .chain(users)
- * .sortBy('age')
- * .map(function(o) {
- * return o.user + ' is ' + o.age;
- * })
- * .head()
- * .value();
- * // => 'pebbles is 1'
- */
-function chain(value) {
- var result = lodash(value);
- result.__chain__ = true;
- return result;
-}
-
-module.exports = chain;
diff --git a/node_modules/lodash/chunk.js b/node_modules/lodash/chunk.js
deleted file mode 100644
index 5b562fe..0000000
--- a/node_modules/lodash/chunk.js
+++ /dev/null
@@ -1,50 +0,0 @@
-var baseSlice = require('./_baseSlice'),
- isIterateeCall = require('./_isIterateeCall'),
- toInteger = require('./toInteger');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeCeil = Math.ceil,
- nativeMax = Math.max;
-
-/**
- * Creates an array of elements split into groups the length of `size`.
- * If `array` can't be split evenly, the final chunk will be the remaining
- * elements.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to process.
- * @param {number} [size=1] The length of each chunk
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the new array of chunks.
- * @example
- *
- * _.chunk(['a', 'b', 'c', 'd'], 2);
- * // => [['a', 'b'], ['c', 'd']]
- *
- * _.chunk(['a', 'b', 'c', 'd'], 3);
- * // => [['a', 'b', 'c'], ['d']]
- */
-function chunk(array, size, guard) {
- if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
- size = 1;
- } else {
- size = nativeMax(toInteger(size), 0);
- }
- var length = array == null ? 0 : array.length;
- if (!length || size < 1) {
- return [];
- }
- var index = 0,
- resIndex = 0,
- result = Array(nativeCeil(length / size));
-
- while (index < length) {
- result[resIndex++] = baseSlice(array, index, (index += size));
- }
- return result;
-}
-
-module.exports = chunk;
diff --git a/node_modules/lodash/clamp.js b/node_modules/lodash/clamp.js
deleted file mode 100644
index 91a72c9..0000000
--- a/node_modules/lodash/clamp.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseClamp = require('./_baseClamp'),
- toNumber = require('./toNumber');
-
-/**
- * Clamps `number` within the inclusive `lower` and `upper` bounds.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Number
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- * @example
- *
- * _.clamp(-10, -5, 5);
- * // => -5
- *
- * _.clamp(10, -5, 5);
- * // => 5
- */
-function clamp(number, lower, upper) {
- if (upper === undefined) {
- upper = lower;
- lower = undefined;
- }
- if (upper !== undefined) {
- upper = toNumber(upper);
- upper = upper === upper ? upper : 0;
- }
- if (lower !== undefined) {
- lower = toNumber(lower);
- lower = lower === lower ? lower : 0;
- }
- return baseClamp(toNumber(number), lower, upper);
-}
-
-module.exports = clamp;
diff --git a/node_modules/lodash/clone.js b/node_modules/lodash/clone.js
deleted file mode 100644
index dd439d6..0000000
--- a/node_modules/lodash/clone.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseClone = require('./_baseClone');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_SYMBOLS_FLAG = 4;
-
-/**
- * Creates a shallow clone of `value`.
- *
- * **Note:** This method is loosely based on the
- * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
- * and supports cloning arrays, array buffers, booleans, date objects, maps,
- * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
- * arrays. The own enumerable properties of `arguments` objects are cloned
- * as plain objects. An empty object is returned for uncloneable values such
- * as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to clone.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeep
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var shallow = _.clone(objects);
- * console.log(shallow[0] === objects[0]);
- * // => true
- */
-function clone(value) {
- return baseClone(value, CLONE_SYMBOLS_FLAG);
-}
-
-module.exports = clone;
diff --git a/node_modules/lodash/cloneDeep.js b/node_modules/lodash/cloneDeep.js
deleted file mode 100644
index 4425fbe..0000000
--- a/node_modules/lodash/cloneDeep.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseClone = require('./_baseClone');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1,
- CLONE_SYMBOLS_FLAG = 4;
-
-/**
- * This method is like `_.clone` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @returns {*} Returns the deep cloned value.
- * @see _.clone
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var deep = _.cloneDeep(objects);
- * console.log(deep[0] === objects[0]);
- * // => false
- */
-function cloneDeep(value) {
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
-}
-
-module.exports = cloneDeep;
diff --git a/node_modules/lodash/cloneDeepWith.js b/node_modules/lodash/cloneDeepWith.js
deleted file mode 100644
index fd9c6c0..0000000
--- a/node_modules/lodash/cloneDeepWith.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var baseClone = require('./_baseClone');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1,
- CLONE_SYMBOLS_FLAG = 4;
-
-/**
- * This method is like `_.cloneWith` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the deep cloned value.
- * @see _.cloneWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(true);
- * }
- * }
- *
- * var el = _.cloneDeepWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 20
- */
-function cloneDeepWith(value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
-}
-
-module.exports = cloneDeepWith;
diff --git a/node_modules/lodash/cloneWith.js b/node_modules/lodash/cloneWith.js
deleted file mode 100644
index d2f4e75..0000000
--- a/node_modules/lodash/cloneWith.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var baseClone = require('./_baseClone');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_SYMBOLS_FLAG = 4;
-
-/**
- * This method is like `_.clone` except that it accepts `customizer` which
- * is invoked to produce the cloned value. If `customizer` returns `undefined`,
- * cloning is handled by the method instead. The `customizer` is invoked with
- * up to four arguments; (value [, index|key, object, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeepWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(false);
- * }
- * }
- *
- * var el = _.cloneWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 0
- */
-function cloneWith(value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
-}
-
-module.exports = cloneWith;
diff --git a/node_modules/lodash/collection.js b/node_modules/lodash/collection.js
deleted file mode 100644
index 77fe837..0000000
--- a/node_modules/lodash/collection.js
+++ /dev/null
@@ -1,30 +0,0 @@
-module.exports = {
- 'countBy': require('./countBy'),
- 'each': require('./each'),
- 'eachRight': require('./eachRight'),
- 'every': require('./every'),
- 'filter': require('./filter'),
- 'find': require('./find'),
- 'findLast': require('./findLast'),
- 'flatMap': require('./flatMap'),
- 'flatMapDeep': require('./flatMapDeep'),
- 'flatMapDepth': require('./flatMapDepth'),
- 'forEach': require('./forEach'),
- 'forEachRight': require('./forEachRight'),
- 'groupBy': require('./groupBy'),
- 'includes': require('./includes'),
- 'invokeMap': require('./invokeMap'),
- 'keyBy': require('./keyBy'),
- 'map': require('./map'),
- 'orderBy': require('./orderBy'),
- 'partition': require('./partition'),
- 'reduce': require('./reduce'),
- 'reduceRight': require('./reduceRight'),
- 'reject': require('./reject'),
- 'sample': require('./sample'),
- 'sampleSize': require('./sampleSize'),
- 'shuffle': require('./shuffle'),
- 'size': require('./size'),
- 'some': require('./some'),
- 'sortBy': require('./sortBy')
-};
diff --git a/node_modules/lodash/commit.js b/node_modules/lodash/commit.js
deleted file mode 100644
index fe4db71..0000000
--- a/node_modules/lodash/commit.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var LodashWrapper = require('./_LodashWrapper');
-
-/**
- * Executes the chain sequence and returns the wrapped result.
- *
- * @name commit
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2];
- * var wrapped = _(array).push(3);
- *
- * console.log(array);
- * // => [1, 2]
- *
- * wrapped = wrapped.commit();
- * console.log(array);
- * // => [1, 2, 3]
- *
- * wrapped.last();
- * // => 3
- *
- * console.log(array);
- * // => [1, 2, 3]
- */
-function wrapperCommit() {
- return new LodashWrapper(this.value(), this.__chain__);
-}
-
-module.exports = wrapperCommit;
diff --git a/node_modules/lodash/compact.js b/node_modules/lodash/compact.js
deleted file mode 100644
index 031fab4..0000000
--- a/node_modules/lodash/compact.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Creates an array with all falsey values removed. The values `false`, `null`,
- * `0`, `""`, `undefined`, and `NaN` are falsey.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to compact.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.compact([0, 1, false, 2, '', 3]);
- * // => [1, 2, 3]
- */
-function compact(array) {
- var index = -1,
- length = array == null ? 0 : array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value) {
- result[resIndex++] = value;
- }
- }
- return result;
-}
-
-module.exports = compact;
diff --git a/node_modules/lodash/concat.js b/node_modules/lodash/concat.js
deleted file mode 100644
index 1da48a4..0000000
--- a/node_modules/lodash/concat.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var arrayPush = require('./_arrayPush'),
- baseFlatten = require('./_baseFlatten'),
- copyArray = require('./_copyArray'),
- isArray = require('./isArray');
-
-/**
- * Creates a new array concatenating `array` with any additional arrays
- * and/or values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to concatenate.
- * @param {...*} [values] The values to concatenate.
- * @returns {Array} Returns the new concatenated array.
- * @example
- *
- * var array = [1];
- * var other = _.concat(array, 2, [3], [[4]]);
- *
- * console.log(other);
- * // => [1, 2, 3, [4]]
- *
- * console.log(array);
- * // => [1]
- */
-function concat() {
- var length = arguments.length;
- if (!length) {
- return [];
- }
- var args = Array(length - 1),
- array = arguments[0],
- index = length;
-
- while (index--) {
- args[index - 1] = arguments[index];
- }
- return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
-}
-
-module.exports = concat;
diff --git a/node_modules/lodash/cond.js b/node_modules/lodash/cond.js
deleted file mode 100644
index 6455598..0000000
--- a/node_modules/lodash/cond.js
+++ /dev/null
@@ -1,60 +0,0 @@
-var apply = require('./_apply'),
- arrayMap = require('./_arrayMap'),
- baseIteratee = require('./_baseIteratee'),
- baseRest = require('./_baseRest');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * Creates a function that iterates over `pairs` and invokes the corresponding
- * function of the first predicate to return truthy. The predicate-function
- * pairs are invoked with the `this` binding and arguments of the created
- * function.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Array} pairs The predicate-function pairs.
- * @returns {Function} Returns the new composite function.
- * @example
- *
- * var func = _.cond([
- * [_.matches({ 'a': 1 }), _.constant('matches A')],
- * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
- * [_.stubTrue, _.constant('no match')]
- * ]);
- *
- * func({ 'a': 1, 'b': 2 });
- * // => 'matches A'
- *
- * func({ 'a': 0, 'b': 1 });
- * // => 'matches B'
- *
- * func({ 'a': '1', 'b': '2' });
- * // => 'no match'
- */
-function cond(pairs) {
- var length = pairs == null ? 0 : pairs.length,
- toIteratee = baseIteratee;
-
- pairs = !length ? [] : arrayMap(pairs, function(pair) {
- if (typeof pair[1] != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return [toIteratee(pair[0]), pair[1]];
- });
-
- return baseRest(function(args) {
- var index = -1;
- while (++index < length) {
- var pair = pairs[index];
- if (apply(pair[0], this, args)) {
- return apply(pair[1], this, args);
- }
- }
- });
-}
-
-module.exports = cond;
diff --git a/node_modules/lodash/conforms.js b/node_modules/lodash/conforms.js
deleted file mode 100644
index 5501a94..0000000
--- a/node_modules/lodash/conforms.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var baseClone = require('./_baseClone'),
- baseConforms = require('./_baseConforms');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1;
-
-/**
- * Creates a function that invokes the predicate properties of `source` with
- * the corresponding property values of a given object, returning `true` if
- * all predicates return truthy, else `false`.
- *
- * **Note:** The created function is equivalent to `_.conformsTo` with
- * `source` partially applied.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var objects = [
- * { 'a': 2, 'b': 1 },
- * { 'a': 1, 'b': 2 }
- * ];
- *
- * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
- * // => [{ 'a': 1, 'b': 2 }]
- */
-function conforms(source) {
- return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
-}
-
-module.exports = conforms;
diff --git a/node_modules/lodash/conformsTo.js b/node_modules/lodash/conformsTo.js
deleted file mode 100644
index b8a93eb..0000000
--- a/node_modules/lodash/conformsTo.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var baseConformsTo = require('./_baseConformsTo'),
- keys = require('./keys');
-
-/**
- * Checks if `object` conforms to `source` by invoking the predicate
- * properties of `source` with the corresponding property values of `object`.
- *
- * **Note:** This method is equivalent to `_.conforms` when `source` is
- * partially applied.
- *
- * @static
- * @memberOf _
- * @since 4.14.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property predicates to conform to.
- * @returns {boolean} Returns `true` if `object` conforms, else `false`.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- *
- * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
- * // => true
- *
- * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
- * // => false
- */
-function conformsTo(object, source) {
- return source == null || baseConformsTo(object, source, keys(source));
-}
-
-module.exports = conformsTo;
diff --git a/node_modules/lodash/constant.js b/node_modules/lodash/constant.js
deleted file mode 100644
index 655ece3..0000000
--- a/node_modules/lodash/constant.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Creates a function that returns `value`.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {*} value The value to return from the new function.
- * @returns {Function} Returns the new constant function.
- * @example
- *
- * var objects = _.times(2, _.constant({ 'a': 1 }));
- *
- * console.log(objects);
- * // => [{ 'a': 1 }, { 'a': 1 }]
- *
- * console.log(objects[0] === objects[1]);
- * // => true
- */
-function constant(value) {
- return function() {
- return value;
- };
-}
-
-module.exports = constant;
diff --git a/node_modules/lodash/core.js b/node_modules/lodash/core.js
deleted file mode 100644
index 89c77de..0000000
--- a/node_modules/lodash/core.js
+++ /dev/null
@@ -1,3854 +0,0 @@
-/**
- * @license
- * Lodash (Custom Build) <https://lodash.com/>
- * Build: `lodash core -o ./dist/lodash.core.js`
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-;(function() {
-
- /** Used as a safe reference for `undefined` in pre-ES5 environments. */
- var undefined;
-
- /** Used as the semantic version number. */
- var VERSION = '4.17.15';
-
- /** Error message constants. */
- var FUNC_ERROR_TEXT = 'Expected a function';
-
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
-
- /** Used to compose bitmasks for function metadata. */
- var WRAP_BIND_FLAG = 1,
- WRAP_PARTIAL_FLAG = 32;
-
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0,
- MAX_SAFE_INTEGER = 9007199254740991;
-
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- asyncTag = '[object AsyncFunction]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- numberTag = '[object Number]',
- objectTag = '[object Object]',
- proxyTag = '[object Proxy]',
- regexpTag = '[object RegExp]',
- stringTag = '[object String]';
-
- /** Used to match HTML entities and HTML characters. */
- var reUnescapedHtml = /[&<>"']/g,
- reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
-
- /** Used to detect unsigned integer values. */
- var reIsUint = /^(?:0|[1-9]\d*)$/;
-
- /** Used to map characters to HTML entities. */
- var htmlEscapes = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#39;'
- };
-
- /** Detect free variable `global` from Node.js. */
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
-
- /** Detect free variable `self`. */
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
-
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || Function('return this')();
-
- /** Detect free variable `exports`. */
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
-
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
- function arrayPush(array, values) {
- array.push.apply(array, values);
- return array;
- }
-
- /**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} predicate The function invoked per iteration.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (predicate(array[index], index, array)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
-
- /**
- * The base implementation of `_.propertyOf` without support for deep paths.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Function} Returns the new accessor function.
- */
- function basePropertyOf(object) {
- return function(key) {
- return object == null ? undefined : object[key];
- };
- }
-
- /**
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of
- * `collection` as the initial value.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the accumulated value.
- */
- function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
- eachFunc(collection, function(value, index, collection) {
- accumulator = initAccum
- ? (initAccum = false, value)
- : iteratee(accumulator, value, index, collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.values` and `_.valuesIn` which creates an
- * array of `object` property values corresponding to the property names
- * of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the array of property values.
- */
- function baseValues(object, props) {
- return baseMap(props, function(key) {
- return object[key];
- });
- }
-
- /**
- * Used by `_.escape` to convert characters to HTML entities.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- var escapeHtmlChar = basePropertyOf(htmlEscapes);
-
- /**
- * Creates a unary function that invokes `func` with its argument transformed.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} transform The argument transform.
- * @returns {Function} Returns the new function.
- */
- function overArg(func, transform) {
- return function(arg) {
- return func(transform(arg));
- };
- }
-
- /*--------------------------------------------------------------------------*/
-
- /** Used for built-in method references. */
- var arrayProto = Array.prototype,
- objectProto = Object.prototype;
-
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
-
- /** Used to generate unique IDs. */
- var idCounter = 0;
-
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
- var nativeObjectToString = objectProto.toString;
-
- /** Used to restore the original `_` reference in `_.noConflict`. */
- var oldDash = root._;
-
- /** Built-in value references. */
- var objectCreate = Object.create,
- propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeIsFinite = root.isFinite,
- nativeKeys = overArg(Object.keys, Object),
- nativeMax = Math.max;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` object which wraps `value` to enable implicit method
- * chain sequences. Methods that operate on and return arrays, collections,
- * and functions can be chained together. Methods that retrieve a single value
- * or may return a primitive value will automatically end the chain sequence
- * and return the unwrapped value. Otherwise, the value must be unwrapped
- * with `_#value`.
- *
- * Explicit chain sequences, which must be unwrapped with `_#value`, may be
- * enabled using `_.chain`.
- *
- * The execution of chained methods is lazy, that is, it's deferred until
- * `_#value` is implicitly or explicitly called.
- *
- * Lazy evaluation allows several methods to support shortcut fusion.
- * Shortcut fusion is an optimization to merge iteratee calls; this avoids
- * the creation of intermediate arrays and can greatly reduce the number of
- * iteratee executions. Sections of a chain sequence qualify for shortcut
- * fusion if the section is applied to an array and iteratees accept only
- * one argument. The heuristic for whether a section qualifies for shortcut
- * fusion is subject to change.
- *
- * Chaining is supported in custom builds as long as the `_#value` method is
- * directly or indirectly included in the build.
- *
- * In addition to lodash methods, wrappers have `Array` and `String` methods.
- *
- * The wrapper `Array` methods are:
- * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
- *
- * The wrapper `String` methods are:
- * `replace` and `split`
- *
- * The wrapper methods that support shortcut fusion are:
- * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
- * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
- *
- * The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
- * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
- * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
- * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
- * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
- * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
- * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
- * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
- * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
- * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
- * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
- * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
- * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
- * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
- * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
- * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
- * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
- * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
- * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
- * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
- * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
- * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
- * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
- * `zipObject`, `zipObjectDeep`, and `zipWith`
- *
- * The wrapper methods that are **not** chainable by default are:
- * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
- * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
- * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
- * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
- * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
- * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
- * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
- * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
- * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
- * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
- * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
- * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
- * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
- * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
- * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
- * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
- * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
- * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
- * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
- * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
- * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
- * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
- * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
- * `upperFirst`, `value`, and `words`
- *
- * @name _
- * @constructor
- * @category Seq
- * @param {*} value The value to wrap in a `lodash` instance.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2, 3]);
- *
- * // Returns an unwrapped value.
- * wrapped.reduce(_.add);
- * // => 6
- *
- * // Returns a wrapped value.
- * var squares = wrapped.map(square);
- *
- * _.isArray(squares);
- * // => false
- *
- * _.isArray(squares.value());
- * // => true
- */
- function lodash(value) {
- return value instanceof LodashWrapper
- ? value
- : new LodashWrapper(value);
- }
-
- /**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} proto The object to inherit from.
- * @returns {Object} Returns the new object.
- */
- var baseCreate = (function() {
- function object() {}
- return function(proto) {
- if (!isObject(proto)) {
- return {};
- }
- if (objectCreate) {
- return objectCreate(proto);
- }
- object.prototype = proto;
- var result = new object;
- object.prototype = undefined;
- return result;
- };
- }());
-
- /**
- * The base constructor for creating `lodash` wrapper objects.
- *
- * @private
- * @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable explicit method chain sequences.
- */
- function LodashWrapper(value, chainAll) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__chain__ = !!chainAll;
- }
-
- LodashWrapper.prototype = baseCreate(lodash.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
- }
- }
-
- /**
- * The base implementation of `assignValue` and `assignMergeValue` without
- * value checks.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function baseAssignValue(object, key, value) {
- object[key] = value;
- }
-
- /**
- * The base implementation of `_.delay` and `_.defer` which accepts `args`
- * to provide to `func`.
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {Array} args The arguments to provide to `func`.
- * @returns {number|Object} Returns the timer id or timeout object.
- */
- function baseDelay(func, wait, args) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return setTimeout(function() { func.apply(undefined, args); }, wait);
- }
-
- /**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEach = createBaseEach(baseForOwn);
-
- /**
- * The base implementation of `_.every` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`
- */
- function baseEvery(collection, predicate) {
- var result = true;
- baseEach(collection, function(value, index, collection) {
- result = !!predicate(value, index, collection);
- return result;
- });
- return result;
- }
-
- /**
- * The base implementation of methods like `_.max` and `_.min` which accepts a
- * `comparator` to determine the extremum value.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The iteratee invoked per iteration.
- * @param {Function} comparator The comparator used to compare values.
- * @returns {*} Returns the extremum value.
- */
- function baseExtremum(array, iteratee, comparator) {
- var index = -1,
- length = array.length;
-
- while (++index < length) {
- var value = array[index],
- current = iteratee(value);
-
- if (current != null && (computed === undefined
- ? (current === current && !false)
- : comparator(current, computed)
- )) {
- var computed = current,
- result = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.filter` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function baseFilter(collection, predicate) {
- var result = [];
- baseEach(collection, function(value, index, collection) {
- if (predicate(value, index, collection)) {
- result.push(value);
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
- function baseFlatten(array, depth, predicate, isStrict, result) {
- var index = -1,
- length = array.length;
-
- predicate || (predicate = isFlattenable);
- result || (result = []);
-
- while (++index < length) {
- var value = array[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- // Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseFor = createBaseFor();
-
- /**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.functions` which creates an array of
- * `object` function property names filtered from `props`.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Array} props The property names to filter.
- * @returns {Array} Returns the function names.
- */
- function baseFunctions(object, props) {
- return baseFilter(props, function(key) {
- return isFunction(object[key]);
- });
- }
-
- /**
- * The base implementation of `getTag` without fallbacks for buggy environments.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
- function baseGetTag(value) {
- return objectToString(value);
- }
-
- /**
- * The base implementation of `_.gt` which doesn't coerce arguments.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- */
- function baseGt(value, other) {
- return value > other;
- }
-
- /**
- * The base implementation of `_.isArguments`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- */
- var baseIsArguments = noop;
-
- /**
- * The base implementation of `_.isDate` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
- */
- function baseIsDate(value) {
- return isObjectLike(value) && baseGetTag(value) == dateTag;
- }
-
- /**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {boolean} bitmask The bitmask flags.
- * 1 - Unordered comparison
- * 2 - Partial comparison
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
- function baseIsEqual(value, other, bitmask, customizer, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
- }
-
- /**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = objIsArr ? arrayTag : baseGetTag(object),
- othTag = othIsArr ? arrayTag : baseGetTag(other);
-
- objTag = objTag == argsTag ? objectTag : objTag;
- othTag = othTag == argsTag ? objectTag : othTag;
-
- var objIsObj = objTag == objectTag,
- othIsObj = othTag == objectTag,
- isSameTag = objTag == othTag;
-
- stack || (stack = []);
- var objStack = find(stack, function(entry) {
- return entry[0] == object;
- });
- var othStack = find(stack, function(entry) {
- return entry[0] == other;
- });
- if (objStack && othStack) {
- return objStack[1] == other;
- }
- stack.push([object, other]);
- stack.push([other, object]);
- if (isSameTag && !objIsObj) {
- var result = (objIsArr)
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
- stack.pop();
- return result;
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
-
- var result = equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- stack.pop();
- return result;
- }
- }
- if (!isSameTag) {
- return false;
- }
- var result = equalObjects(object, other, bitmask, customizer, equalFunc, stack);
- stack.pop();
- return result;
- }
-
- /**
- * The base implementation of `_.isRegExp` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- */
- function baseIsRegExp(value) {
- return isObjectLike(value) && baseGetTag(value) == regexpTag;
- }
-
- /**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
- function baseIteratee(func) {
- if (typeof func == 'function') {
- return func;
- }
- if (func == null) {
- return identity;
- }
- return (typeof func == 'object' ? baseMatches : baseProperty)(func);
- }
-
- /**
- * The base implementation of `_.lt` which doesn't coerce arguments.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- */
- function baseLt(value, other) {
- return value < other;
- }
-
- /**
- * The base implementation of `_.map` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
- return result;
- }
-
- /**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatches(source) {
- var props = nativeKeys(source);
- return function(object) {
- var length = props.length;
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (length--) {
- var key = props[length];
- if (!(key in object &&
- baseIsEqual(source[key], object[key], COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG)
- )) {
- return false;
- }
- }
- return true;
- };
- }
-
- /**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} paths The property paths to pick.
- * @returns {Object} Returns the new object.
- */
- function basePick(object, props) {
- object = Object(object);
- return reduce(props, function(result, key) {
- if (key in object) {
- result[key] = object[key];
- }
- return result;
- }, {});
- }
-
- /**
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- */
- function baseRest(func, start) {
- return setToString(overRest(func, start, identity), func + '');
- }
-
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
-
- /**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
- function copyArray(source) {
- return baseSlice(source, 0, source.length);
- }
-
- /**
- * The base implementation of `_.some` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function baseSome(collection, predicate) {
- var result;
-
- baseEach(collection, function(value, index, collection) {
- result = predicate(value, index, collection);
- return !result;
- });
- return !!result;
- }
-
- /**
- * The base implementation of `wrapperValue` which returns the result of
- * performing a sequence of actions on the unwrapped `value`, where each
- * successive action is supplied the return value of the previous.
- *
- * @private
- * @param {*} value The unwrapped value.
- * @param {Array} actions Actions to perform to resolve the unwrapped value.
- * @returns {*} Returns the resolved value.
- */
- function baseWrapperValue(value, actions) {
- var result = value;
- return reduce(actions, function(result, action) {
- return action.func.apply(action.thisArg, arrayPush([result], action.args));
- }, result);
- }
-
- /**
- * Compares values to sort them in ascending order.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {number} Returns the sort order indicator for `value`.
- */
- function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== undefined,
- valIsNull = value === null,
- valIsReflexive = value === value,
- valIsSymbol = false;
-
- var othIsDefined = other !== undefined,
- othIsNull = other === null,
- othIsReflexive = other === other,
- othIsSymbol = false;
-
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
- (valIsNull && othIsDefined && othIsReflexive) ||
- (!valIsDefined && othIsReflexive) ||
- !valIsReflexive) {
- return 1;
- }
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
- (othIsNull && valIsDefined && valIsReflexive) ||
- (!othIsDefined && valIsReflexive) ||
- !othIsReflexive) {
- return -1;
- }
- }
- return 0;
- }
-
- /**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
- function copyObject(source, props, object, customizer) {
- var isNew = !object;
- object || (object = {});
-
- var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : undefined;
-
- if (newValue === undefined) {
- newValue = source[key];
- }
- if (isNew) {
- baseAssignValue(object, key, newValue);
- } else {
- assignValue(object, key, newValue);
- }
- }
- return object;
- }
-
- /**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
- function createAssigner(assigner) {
- return baseRest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined;
-
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
-
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
- }
-
- /**
- * Creates a `baseEach` or `baseEachRight` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
-
- /**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
-
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
- }
-
- /**
- * Creates a function that produces an instance of `Ctor` regardless of
- * whether it was invoked as part of a `new` expression or by `call` or `apply`.
- *
- * @private
- * @param {Function} Ctor The constructor to wrap.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCtor(Ctor) {
- return function() {
- // Use a `switch` statement to work with class constructors. See
- // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
- // for more details.
- var args = arguments;
- var thisBinding = baseCreate(Ctor.prototype),
- result = Ctor.apply(thisBinding, args);
-
- // Mimic the constructor's `return` behavior.
- // See https://es5.github.io/#x13.2.2 for more details.
- return isObject(result) ? result : thisBinding;
- };
- }
-
- /**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} findIndexFunc The function to find the collection index.
- * @returns {Function} Returns the new find function.
- */
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- if (!isArrayLike(collection)) {
- var iteratee = baseIteratee(predicate, 3);
- collection = keys(collection);
- predicate = function(key) { return iteratee(iterable[key], key, iterable); };
- }
- var index = findIndexFunc(collection, predicate, fromIndex);
- return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the `this` binding
- * of `thisArg` and `partials` prepended to the arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to
- * the new function.
- * @returns {Function} Returns the new wrapped function.
- */
- function createPartial(func, bitmask, thisArg, partials) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var isBind = bitmask & WRAP_BIND_FLAG,
- Ctor = createCtor(func);
-
- function wrapper() {
- var argsIndex = -1,
- argsLength = arguments.length,
- leftIndex = -1,
- leftLength = partials.length,
- args = Array(leftLength + argsLength),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-
- while (++leftIndex < leftLength) {
- args[leftIndex] = partials[leftIndex];
- }
- while (argsLength--) {
- args[leftIndex++] = arguments[++argsIndex];
- }
- return fn.apply(isBind ? thisArg : this, args);
- }
- return wrapper;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- arrLength = array.length,
- othLength = other.length;
-
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- var index = -1,
- result = true,
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? [] : undefined;
-
- // Ignore non-index properties.
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
-
- var compared;
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- // Recursively compare arrays (susceptible to call stack limits).
- if (seen) {
- if (!baseSome(other, function(othValue, othIndex) {
- if (!indexOf(seen, othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
- )) {
- result = false;
- break;
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
-
- case boolTag:
- case dateTag:
- case numberTag:
- // Coerce booleans to `1` or `0` and dates to milliseconds.
- // Invalid dates are coerced to `NaN`.
- return eq(+object, +other);
-
- case errorTag:
- return object.name == other.name && object.message == other.message;
-
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
-
- }
- return false;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- objProps = keys(object),
- objLength = objProps.length,
- othProps = keys(other),
- othLength = othProps.length;
-
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
- return false;
- }
- }
- var result = true;
-
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
-
- var compared;
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
-
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `baseRest` which flattens the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @returns {Function} Returns the new function.
- */
- function flatRest(func) {
- return setToString(overRest(func, undefined, flatten), func + '');
- }
-
- /**
- * Checks if `value` is a flattenable `arguments` object or array.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenable(value) {
- return isArray(value) || isArguments(value);
- }
-
- /**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
- function isIndex(value, length) {
- var type = typeof value;
- length = length == null ? MAX_SAFE_INTEGER : length;
-
- return !!length &&
- (type == 'number' ||
- (type != 'symbol' && reIsUint.test(value))) &&
- (value > -1 && value % 1 == 0 && value < length);
- }
-
- /**
- * Checks if the given arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
- * else `false`.
- */
- function isIterateeCall(value, index, object) {
- if (!isObject(object)) {
- return false;
- }
- var type = typeof index;
- if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)
- ) {
- return eq(object[index], value);
- }
- return false;
- }
-
- /**
- * This function is like
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * except that it includes inherited enumerable properties.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function nativeKeysIn(object) {
- var result = [];
- if (object != null) {
- for (var key in Object(object)) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * Converts `value` to a string using `Object.prototype.toString`.
- *
- * @private
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- */
- function objectToString(value) {
- return nativeObjectToString.call(value);
- }
-
- /**
- * A specialized version of `baseRest` which transforms the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @param {Function} transform The rest array transform.
- * @returns {Function} Returns the new function.
- */
- function overRest(func, start, transform) {
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- index = -1;
- var otherArgs = Array(start + 1);
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = transform(array);
- return func.apply(this, otherArgs);
- };
- }
-
- /**
- * Sets the `toString` method of `func` to return `string`.
- *
- * @private
- * @param {Function} func The function to modify.
- * @param {Function} string The `toString` result.
- * @returns {Function} Returns `func`.
- */
- var setToString = identity;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an array with all falsey values removed. The values `false`, `null`,
- * `0`, `""`, `undefined`, and `NaN` are falsey.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to compact.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.compact([0, 1, false, 2, '', 3]);
- * // => [1, 2, 3]
- */
- function compact(array) {
- return baseFilter(array, Boolean);
- }
-
- /**
- * Creates a new array concatenating `array` with any additional arrays
- * and/or values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to concatenate.
- * @param {...*} [values] The values to concatenate.
- * @returns {Array} Returns the new concatenated array.
- * @example
- *
- * var array = [1];
- * var other = _.concat(array, 2, [3], [[4]]);
- *
- * console.log(other);
- * // => [1, 2, 3, [4]]
- *
- * console.log(array);
- * // => [1]
- */
- function concat() {
- var length = arguments.length;
- if (!length) {
- return [];
- }
- var args = Array(length - 1),
- array = arguments[0],
- index = length;
-
- while (index--) {
- args[index - 1] = arguments[index];
- }
- return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
- }
-
- /**
- * This method is like `_.find` except that it returns the index of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
- * // => 0
- *
- * // The `_.matches` iteratee shorthand.
- * _.findIndex(users, { 'user': 'fred', 'active': false });
- * // => 1
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findIndex(users, ['active', false]);
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.findIndex(users, 'active');
- * // => 2
- */
- function findIndex(array, predicate, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseFindIndex(array, baseIteratee(predicate, 3), index);
- }
-
- /**
- * Flattens `array` a single level deep.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, [3, [4]], 5]]);
- * // => [1, 2, [3, [4]], 5]
- */
- function flatten(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseFlatten(array, 1) : [];
- }
-
- /**
- * Recursively flattens `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flattenDeep([1, [2, [3, [4]], 5]]);
- * // => [1, 2, 3, 4, 5]
- */
- function flattenDeep(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseFlatten(array, INFINITY) : [];
- }
-
- /**
- * Gets the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias first
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the first element of `array`.
- * @example
- *
- * _.head([1, 2, 3]);
- * // => 1
- *
- * _.head([]);
- * // => undefined
- */
- function head(array) {
- return (array && array.length) ? array[0] : undefined;
- }
-
- /**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the
- * offset from the end of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // Search from the `fromIndex`.
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
- function indexOf(array, value, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (typeof fromIndex == 'number') {
- fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex;
- } else {
- fromIndex = 0;
- }
- var index = (fromIndex || 0) - 1,
- isReflexive = value === value;
-
- while (++index < length) {
- var other = array[index];
- if ((isReflexive ? other === value : other !== other)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
- function last(array) {
- var length = array == null ? 0 : array.length;
- return length ? array[length - 1] : undefined;
- }
-
- /**
- * Creates a slice of `array` from `start` up to, but not including, `end`.
- *
- * **Note:** This method is used instead of
- * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
- * returned.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function slice(array, start, end) {
- var length = array == null ? 0 : array.length;
- start = start == null ? 0 : +start;
- end = end === undefined ? length : +end;
- return length ? baseSlice(array, start, end) : [];
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` wrapper instance that wraps `value` with explicit method
- * chain sequences enabled. The result of such sequences must be unwrapped
- * with `_#value`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Seq
- * @param {*} value The value to wrap.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'pebbles', 'age': 1 }
- * ];
- *
- * var youngest = _
- * .chain(users)
- * .sortBy('age')
- * .map(function(o) {
- * return o.user + ' is ' + o.age;
- * })
- * .head()
- * .value();
- * // => 'pebbles is 1'
- */
- function chain(value) {
- var result = lodash(value);
- result.__chain__ = true;
- return result;
- }
-
- /**
- * This method invokes `interceptor` and returns `value`. The interceptor
- * is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain sequence in order to modify intermediate results.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns `value`.
- * @example
- *
- * _([1, 2, 3])
- * .tap(function(array) {
- * // Mutate input array.
- * array.pop();
- * })
- * .reverse()
- * .value();
- * // => [2, 1]
- */
- function tap(value, interceptor) {
- interceptor(value);
- return value;
- }
-
- /**
- * This method is like `_.tap` except that it returns the result of `interceptor`.
- * The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain sequence.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns the result of `interceptor`.
- * @example
- *
- * _(' abc ')
- * .chain()
- * .trim()
- * .thru(function(value) {
- * return [value];
- * })
- * .value();
- * // => ['abc']
- */
- function thru(value, interceptor) {
- return interceptor(value);
- }
-
- /**
- * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
- *
- * @name chain
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * // A sequence without explicit chaining.
- * _(users).head();
- * // => { 'user': 'barney', 'age': 36 }
- *
- * // A sequence with explicit chaining.
- * _(users)
- * .chain()
- * .head()
- * .pick('user')
- * .value();
- * // => { 'user': 'barney' }
- */
- function wrapperChain() {
- return chain(this);
- }
-
- /**
- * Executes the chain sequence to resolve the unwrapped value.
- *
- * @name value
- * @memberOf _
- * @since 0.1.0
- * @alias toJSON, valueOf
- * @category Seq
- * @returns {*} Returns the resolved unwrapped value.
- * @example
- *
- * _([1, 2, 3]).value();
- * // => [1, 2, 3]
- */
- function wrapperValue() {
- return baseWrapperValue(this.__wrapped__, this.__actions__);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Checks if `predicate` returns truthy for **all** elements of `collection`.
- * Iteration is stopped once `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * **Note:** This method returns `true` for
- * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
- * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
- * elements of empty collections.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- * @example
- *
- * _.every([true, 1, null, 'yes'], Boolean);
- * // => false
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.every(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.every(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.every(users, 'active');
- * // => false
- */
- function every(collection, predicate, guard) {
- predicate = guard ? undefined : predicate;
- return baseEvery(collection, baseIteratee(predicate));
- }
-
- /**
- * Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * **Note:** Unlike `_.remove`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.reject
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, { 'age': 36, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.filter(users, 'active');
- * // => objects for ['barney']
- */
- function filter(collection, predicate) {
- return baseFilter(collection, baseIteratee(predicate));
- }
-
- /**
- * Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false },
- * { 'user': 'pebbles', 'age': 1, 'active': true }
- * ];
- *
- * _.find(users, function(o) { return o.age < 40; });
- * // => object for 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.find(users, { 'age': 1, 'active': true });
- * // => object for 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.find(users, ['active', false]);
- * // => object for 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.find(users, 'active');
- * // => object for 'barney'
- */
- var find = createFind(findIndex);
-
- /**
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * **Note:** As with other "Collections" methods, objects with a "length"
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
- * or `_.forOwn` for object iteration.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias each
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEachRight
- * @example
- *
- * _.forEach([1, 2], function(value) {
- * console.log(value);
- * });
- * // => Logs `1` then `2`.
- *
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forEach(collection, iteratee) {
- return baseEach(collection, baseIteratee(iteratee));
- }
-
- /**
- * Creates an array of values by running each element in `collection` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
- *
- * The guarded methods are:
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * _.map([4, 8], square);
- * // => [16, 64]
- *
- * _.map({ 'a': 4, 'b': 8 }, square);
- * // => [16, 64] (iteration order is not guaranteed)
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, 'user');
- * // => ['barney', 'fred']
- */
- function map(collection, iteratee) {
- return baseMap(collection, baseIteratee(iteratee));
- }
-
- /**
- * Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` thru `iteratee`, where each successive
- * invocation is supplied the return value of the previous. If `accumulator`
- * is not given, the first element of `collection` is used as the initial
- * value. The iteratee is invoked with four arguments:
- * (accumulator, value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.reduce`, `_.reduceRight`, and `_.transform`.
- *
- * The guarded methods are:
- * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
- * and `sortBy`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduceRight
- * @example
- *
- * _.reduce([1, 2], function(sum, n) {
- * return sum + n;
- * }, 0);
- * // => 3
- *
- * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * return result;
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
- */
- function reduce(collection, iteratee, accumulator) {
- return baseReduce(collection, baseIteratee(iteratee), accumulator, arguments.length < 3, baseEach);
- }
-
- /**
- * Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable string keyed properties for objects.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object|string} collection The collection to inspect.
- * @returns {number} Returns the collection size.
- * @example
- *
- * _.size([1, 2, 3]);
- * // => 3
- *
- * _.size({ 'a': 1, 'b': 2 });
- * // => 2
- *
- * _.size('pebbles');
- * // => 7
- */
- function size(collection) {
- if (collection == null) {
- return 0;
- }
- collection = isArrayLike(collection) ? collection : nativeKeys(collection);
- return collection.length;
- }
-
- /**
- * Checks if `predicate` returns truthy for **any** element of `collection`.
- * Iteration is stopped once `predicate` returns truthy. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- * @example
- *
- * _.some([null, 0, 'yes', false], Boolean);
- * // => true
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.some(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.some(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.some(users, 'active');
- * // => true
- */
- function some(collection, predicate, guard) {
- predicate = guard ? undefined : predicate;
- return baseSome(collection, baseIteratee(predicate));
- }
-
- /**
- * Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection thru each iteratee. This method
- * performs a stable sort, that is, it preserves the original sort order of
- * equal elements. The iteratees are invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
- * The iteratees to sort by.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 34 }
- * ];
- *
- * _.sortBy(users, [function(o) { return o.user; }]);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- *
- * _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
- */
- function sortBy(collection, iteratee) {
- var index = 0;
- iteratee = baseIteratee(iteratee);
-
- return baseMap(baseMap(collection, function(value, key, collection) {
- return { 'value': value, 'index': index++, 'criteria': iteratee(value, key, collection) };
- }).sort(function(object, other) {
- return compareAscending(object.criteria, other.criteria) || (object.index - other.index);
- }), baseProperty('value'));
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a function that invokes `func`, with the `this` binding and arguments
- * of the created function, while it's called less than `n` times. Subsequent
- * calls to the created function return the result of the last `func` invocation.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {number} n The number of calls at which `func` is no longer invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * jQuery(element).on('click', _.before(5, addContactToList));
- * // => Allows adding up to 4 contacts to the list.
- */
- function before(n, func) {
- var result;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n > 0) {
- result = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = undefined;
- }
- return result;
- };
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and `partials` prepended to the arguments it receives.
- *
- * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for partially applied arguments.
- *
- * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
- * property of bound functions.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to bind.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * function greet(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * }
- *
- * var object = { 'user': 'fred' };
- *
- * var bound = _.bind(greet, object, 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bind(greet, object, _, '!');
- * bound('hi');
- * // => 'hi fred!'
- */
- var bind = baseRest(function(func, thisArg, partials) {
- return createPartial(func, WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG, thisArg, partials);
- });
-
- /**
- * Defers invoking the `func` until the current call stack has cleared. Any
- * additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to defer.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.defer(function(text) {
- * console.log(text);
- * }, 'deferred');
- * // => Logs 'deferred' after one millisecond.
- */
- var defer = baseRest(function(func, args) {
- return baseDelay(func, 1, args);
- });
-
- /**
- * Invokes `func` after `wait` milliseconds. Any additional arguments are
- * provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.delay(function(text) {
- * console.log(text);
- * }, 1000, 'later');
- * // => Logs 'later' after one second.
- */
- var delay = baseRest(function(func, wait, args) {
- return baseDelay(func, toNumber(wait) || 0, args);
- });
-
- /**
- * Creates a function that negates the result of the predicate `func`. The
- * `func` predicate is invoked with the `this` binding and arguments of the
- * created function.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} predicate The predicate to negate.
- * @returns {Function} Returns the new negated function.
- * @example
- *
- * function isEven(n) {
- * return n % 2 == 0;
- * }
- *
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
- * // => [1, 3, 5]
- */
- function negate(predicate) {
- if (typeof predicate != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return function() {
- var args = arguments;
- return !predicate.apply(this, args);
- };
- }
-
- /**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first invocation. The `func` is
- * invoked with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // => `createApplication` is invoked once
- */
- function once(func) {
- return before(2, func);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a shallow clone of `value`.
- *
- * **Note:** This method is loosely based on the
- * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
- * and supports cloning arrays, array buffers, booleans, date objects, maps,
- * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
- * arrays. The own enumerable properties of `arguments` objects are cloned
- * as plain objects. An empty object is returned for uncloneable values such
- * as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to clone.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeep
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var shallow = _.clone(objects);
- * console.log(shallow[0] === objects[0]);
- * // => true
- */
- function clone(value) {
- if (!isObject(value)) {
- return value;
- }
- return isArray(value) ? copyArray(value) : copyObject(value, nativeKeys(value));
- }
-
- /**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
- function eq(value, other) {
- return value === other || (value !== value && other !== other);
- }
-
- /**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
- !propertyIsEnumerable.call(value, 'callee');
- };
-
- /**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
- var isArray = Array.isArray;
-
- /**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
- function isArrayLike(value) {
- return value != null && isLength(value.length) && !isFunction(value);
- }
-
- /**
- * Checks if `value` is classified as a boolean primitive or object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
- * @example
- *
- * _.isBoolean(false);
- * // => true
- *
- * _.isBoolean(null);
- * // => false
- */
- function isBoolean(value) {
- return value === true || value === false ||
- (isObjectLike(value) && baseGetTag(value) == boolTag);
- }
-
- /**
- * Checks if `value` is classified as a `Date` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
- * @example
- *
- * _.isDate(new Date);
- * // => true
- *
- * _.isDate('Mon April 23 2012');
- * // => false
- */
- var isDate = baseIsDate;
-
- /**
- * Checks if `value` is an empty object, collection, map, or set.
- *
- * Objects are considered empty if they have no own enumerable string keyed
- * properties.
- *
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
- * jQuery-like collections are considered empty if they have a `length` of `0`.
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
- * @example
- *
- * _.isEmpty(null);
- * // => true
- *
- * _.isEmpty(true);
- * // => true
- *
- * _.isEmpty(1);
- * // => true
- *
- * _.isEmpty([1, 2, 3]);
- * // => false
- *
- * _.isEmpty({ 'a': 1 });
- * // => false
- */
- function isEmpty(value) {
- if (isArrayLike(value) &&
- (isArray(value) || isString(value) ||
- isFunction(value.splice) || isArguments(value))) {
- return !value.length;
- }
- return !nativeKeys(value).length;
- }
-
- /**
- * Performs a deep comparison between two values to determine if they are
- * equivalent.
- *
- * **Note:** This method supports comparing arrays, array buffers, booleans,
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
- * by their own, not inherited, enumerable properties. Functions and DOM
- * nodes are compared by strict equality, i.e. `===`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.isEqual(object, other);
- * // => true
- *
- * object === other;
- * // => false
- */
- function isEqual(value, other) {
- return baseIsEqual(value, other);
- }
-
- /**
- * Checks if `value` is a finite primitive number.
- *
- * **Note:** This method is based on
- * [`Number.isFinite`](https://mdn.io/Number/isFinite).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
- * @example
- *
- * _.isFinite(3);
- * // => true
- *
- * _.isFinite(Number.MIN_VALUE);
- * // => true
- *
- * _.isFinite(Infinity);
- * // => false
- *
- * _.isFinite('3');
- * // => false
- */
- function isFinite(value) {
- return typeof value == 'number' && nativeIsFinite(value);
- }
-
- /**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
- function isFunction(value) {
- if (!isObject(value)) {
- return false;
- }
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
- var tag = baseGetTag(value);
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
- }
-
- /**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This method is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
- function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
- function isObject(value) {
- var type = typeof value;
- return value != null && (type == 'object' || type == 'function');
- }
-
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- function isObjectLike(value) {
- return value != null && typeof value == 'object';
- }
-
- /**
- * Checks if `value` is `NaN`.
- *
- * **Note:** This method is based on
- * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
- * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
- * `undefined` and other non-number values.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- * @example
- *
- * _.isNaN(NaN);
- * // => true
- *
- * _.isNaN(new Number(NaN));
- * // => true
- *
- * isNaN(undefined);
- * // => true
- *
- * _.isNaN(undefined);
- * // => false
- */
- function isNaN(value) {
- // An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some
- // ActiveX objects in IE.
- return isNumber(value) && value != +value;
- }
-
- /**
- * Checks if `value` is `null`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
- * @example
- *
- * _.isNull(null);
- * // => true
- *
- * _.isNull(void 0);
- * // => false
- */
- function isNull(value) {
- return value === null;
- }
-
- /**
- * Checks if `value` is classified as a `Number` primitive or object.
- *
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
- * classified as numbers, use the `_.isFinite` method.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a number, else `false`.
- * @example
- *
- * _.isNumber(3);
- * // => true
- *
- * _.isNumber(Number.MIN_VALUE);
- * // => true
- *
- * _.isNumber(Infinity);
- * // => true
- *
- * _.isNumber('3');
- * // => false
- */
- function isNumber(value) {
- return typeof value == 'number' ||
- (isObjectLike(value) && baseGetTag(value) == numberTag);
- }
-
- /**
- * Checks if `value` is classified as a `RegExp` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- * @example
- *
- * _.isRegExp(/abc/);
- * // => true
- *
- * _.isRegExp('/abc/');
- * // => false
- */
- var isRegExp = baseIsRegExp;
-
- /**
- * Checks if `value` is classified as a `String` primitive or object.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a string, else `false`.
- * @example
- *
- * _.isString('abc');
- * // => true
- *
- * _.isString(1);
- * // => false
- */
- function isString(value) {
- return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
- }
-
- /**
- * Checks if `value` is `undefined`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
- * @example
- *
- * _.isUndefined(void 0);
- * // => true
- *
- * _.isUndefined(null);
- * // => false
- */
- function isUndefined(value) {
- return value === undefined;
- }
-
- /**
- * Converts `value` to an array.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Array} Returns the converted array.
- * @example
- *
- * _.toArray({ 'a': 1, 'b': 2 });
- * // => [1, 2]
- *
- * _.toArray('abc');
- * // => ['a', 'b', 'c']
- *
- * _.toArray(1);
- * // => []
- *
- * _.toArray(null);
- * // => []
- */
- function toArray(value) {
- if (!isArrayLike(value)) {
- return values(value);
- }
- return value.length ? copyArray(value) : [];
- }
-
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
- var toInteger = Number;
-
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
- var toNumber = Number;
-
- /**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- if (typeof value == 'string') {
- return value;
- }
- return value == null ? '' : (value + '');
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Assigns own enumerable string keyed properties of source objects to the
- * destination object. Source objects are applied from left to right.
- * Subsequent sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object` and is loosely based on
- * [`Object.assign`](https://mdn.io/Object/assign).
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assignIn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * function Bar() {
- * this.c = 3;
- * }
- *
- * Foo.prototype.b = 2;
- * Bar.prototype.d = 4;
- *
- * _.assign({ 'a': 0 }, new Foo, new Bar);
- * // => { 'a': 1, 'c': 3 }
- */
- var assign = createAssigner(function(object, source) {
- copyObject(source, nativeKeys(source), object);
- });
-
- /**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assign
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * function Bar() {
- * this.c = 3;
- * }
- *
- * Foo.prototype.b = 2;
- * Bar.prototype.d = 4;
- *
- * _.assignIn({ 'a': 0 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
- */
- var assignIn = createAssigner(function(object, source) {
- copyObject(source, nativeKeysIn(source), object);
- });
-
- /**
- * Creates an object that inherits from the `prototype` object. If a
- * `properties` object is given, its own enumerable string keyed properties
- * are assigned to the created object.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Object
- * @param {Object} prototype The object to inherit from.
- * @param {Object} [properties] The properties to assign to the object.
- * @returns {Object} Returns the new object.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * function Circle() {
- * Shape.call(this);
- * }
- *
- * Circle.prototype = _.create(Shape.prototype, {
- * 'constructor': Circle
- * });
- *
- * var circle = new Circle;
- * circle instanceof Circle;
- * // => true
- *
- * circle instanceof Shape;
- * // => true
- */
- function create(prototype, properties) {
- var result = baseCreate(prototype);
- return properties == null ? result : assign(result, properties);
- }
-
- /**
- * Assigns own and inherited enumerable string keyed properties of source
- * objects to the destination object for all destination properties that
- * resolve to `undefined`. Source objects are applied from left to right.
- * Once a property is set, additional values of the same property are ignored.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaultsDeep
- * @example
- *
- * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var defaults = baseRest(function(object, sources) {
- object = Object(object);
-
- var index = -1;
- var length = sources.length;
- var guard = length > 2 ? sources[2] : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- length = 1;
- }
-
- while (++index < length) {
- var source = sources[index];
- var props = keysIn(source);
- var propsIndex = -1;
- var propsLength = props.length;
-
- while (++propsIndex < propsLength) {
- var key = props[propsIndex];
- var value = object[key];
-
- if (value === undefined ||
- (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- object[key] = source[key];
- }
- }
- }
-
- return object;
- });
-
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': 2 } };
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b');
- * // => true
- *
- * _.has(object, ['a', 'b']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- function has(object, path) {
- return object != null && hasOwnProperty.call(object, path);
- }
-
- /**
- * Creates an array of the own enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects. See the
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * for more details.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keys(new Foo);
- * // => ['a', 'b'] (iteration order is not guaranteed)
- *
- * _.keys('hi');
- * // => ['0', '1']
- */
- var keys = nativeKeys;
-
- /**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
- var keysIn = nativeKeysIn;
-
- /**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
- var pick = flatRest(function(object, paths) {
- return object == null ? {} : basePick(object, paths);
- });
-
- /**
- * This method is like `_.get` except that if the resolved value is a
- * function it's invoked with the `this` binding of its parent object and
- * its result is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
- *
- * _.result(object, 'a[0].b.c1');
- * // => 3
- *
- * _.result(object, 'a[0].b.c2');
- * // => 4
- *
- * _.result(object, 'a[0].b.c3', 'default');
- * // => 'default'
- *
- * _.result(object, 'a[0].b.c3', _.constant('default'));
- * // => 'default'
- */
- function result(object, path, defaultValue) {
- var value = object == null ? undefined : object[path];
- if (value === undefined) {
- value = defaultValue;
- }
- return isFunction(value) ? value.call(object) : value;
- }
-
- /**
- * Creates an array of the own enumerable string keyed property values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.values(new Foo);
- * // => [1, 2] (iteration order is not guaranteed)
- *
- * _.values('hi');
- * // => ['h', 'i']
- */
- function values(object) {
- return object == null ? [] : baseValues(object, keys(object));
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
- * corresponding HTML entities.
- *
- * **Note:** No other characters are escaped. To escape additional
- * characters use a third-party library like [_he_](https://mths.be/he).
- *
- * Though the ">" character is escaped for symmetry, characters like
- * ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value. See
- * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
- * (under "semi-related fun fact") for more details.
- *
- * When working with HTML you should always
- * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
- * XSS vectors.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escape('fred, barney, & pebbles');
- * // => 'fred, barney, &amp; pebbles'
- */
- function escape(string) {
- string = toString(string);
- return (string && reHasUnescapedHtml.test(string))
- ? string.replace(reUnescapedHtml, escapeHtmlChar)
- : string;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * This method returns the first argument it receives.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'a': 1 };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
- function identity(value) {
- return value;
- }
-
- /**
- * Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name, the created function returns the
- * property value for a given element. If `func` is an array or object, the
- * created function returns `true` for elements that contain the equivalent
- * source properties, otherwise it returns `false`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Util
- * @param {*} [func=_.identity] The value to convert to a callback.
- * @returns {Function} Returns the callback.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
- * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, _.iteratee(['user', 'fred']));
- * // => [{ 'user': 'fred', 'age': 40 }]
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, _.iteratee('user'));
- * // => ['barney', 'fred']
- *
- * // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
- * return !_.isRegExp(func) ? iteratee(func) : function(string) {
- * return func.test(string);
- * };
- * });
- *
- * _.filter(['abc', 'def'], /ef/);
- * // => ['def']
- */
- var iteratee = baseIteratee;
-
- /**
- * Creates a function that performs a partial deep comparison between a given
- * object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`.
- *
- * **Note:** The created function is equivalent to `_.isMatch` with `source`
- * partially applied.
- *
- * Partial comparisons will match empty array and empty object `source`
- * values against any array or object value, respectively. See `_.isEqual`
- * for a list of supported value comparisons.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var objects = [
- * { 'a': 1, 'b': 2, 'c': 3 },
- * { 'a': 4, 'b': 5, 'c': 6 }
- * ];
- *
- * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
- * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
- */
- function matches(source) {
- return baseMatches(assign({}, source));
- }
-
- /**
- * Adds all own enumerable string keyed function properties of a source
- * object to the destination object. If `object` is a function, then methods
- * are added to its prototype as well.
- *
- * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
- * avoid conflicts caused by modifying the original.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Function|Object} [object=lodash] The destination object.
- * @param {Object} source The object of functions to add.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
- * @returns {Function|Object} Returns `object`.
- * @example
- *
- * function vowels(string) {
- * return _.filter(string, function(v) {
- * return /[aeiou]/i.test(v);
- * });
- * }
- *
- * _.mixin({ 'vowels': vowels });
- * _.vowels('fred');
- * // => ['e']
- *
- * _('fred').vowels().value();
- * // => ['e']
- *
- * _.mixin({ 'vowels': vowels }, { 'chain': false });
- * _('fred').vowels();
- * // => ['e']
- */
- function mixin(object, source, options) {
- var props = keys(source),
- methodNames = baseFunctions(source, props);
-
- if (options == null &&
- !(isObject(source) && (methodNames.length || !props.length))) {
- options = source;
- source = object;
- object = this;
- methodNames = baseFunctions(source, keys(source));
- }
- var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
- isFunc = isFunction(object);
-
- baseEach(methodNames, function(methodName) {
- var func = source[methodName];
- object[methodName] = func;
- if (isFunc) {
- object.prototype[methodName] = function() {
- var chainAll = this.__chain__;
- if (chain || chainAll) {
- var result = object(this.__wrapped__),
- actions = result.__actions__ = copyArray(this.__actions__);
-
- actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
- result.__chain__ = chainAll;
- return result;
- }
- return func.apply(object, arrayPush([this.value()], arguments));
- };
- }
- });
-
- return object;
- }
-
- /**
- * Reverts the `_` variable to its previous value and returns a reference to
- * the `lodash` function.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @returns {Function} Returns the `lodash` function.
- * @example
- *
- * var lodash = _.noConflict();
- */
- function noConflict() {
- if (root._ === this) {
- root._ = oldDash;
- }
- return this;
- }
-
- /**
- * This method returns `undefined`.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Util
- * @example
- *
- * _.times(2, _.noop);
- * // => [undefined, undefined]
- */
- function noop() {
- // No operation performed.
- }
-
- /**
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {string} [prefix=''] The value to prefix the ID with.
- * @returns {string} Returns the unique ID.
- * @example
- *
- * _.uniqueId('contact_');
- * // => 'contact_104'
- *
- * _.uniqueId();
- * // => '105'
- */
- function uniqueId(prefix) {
- var id = ++idCounter;
- return toString(prefix) + id;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Computes the maximum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * _.max([4, 2, 8, 6]);
- * // => 8
- *
- * _.max([]);
- * // => undefined
- */
- function max(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseGt)
- : undefined;
- }
-
- /**
- * Computes the minimum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * _.min([4, 2, 8, 6]);
- * // => 2
- *
- * _.min([]);
- * // => undefined
- */
- function min(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseLt)
- : undefined;
- }
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return wrapped values in chain sequences.
- lodash.assignIn = assignIn;
- lodash.before = before;
- lodash.bind = bind;
- lodash.chain = chain;
- lodash.compact = compact;
- lodash.concat = concat;
- lodash.create = create;
- lodash.defaults = defaults;
- lodash.defer = defer;
- lodash.delay = delay;
- lodash.filter = filter;
- lodash.flatten = flatten;
- lodash.flattenDeep = flattenDeep;
- lodash.iteratee = iteratee;
- lodash.keys = keys;
- lodash.map = map;
- lodash.matches = matches;
- lodash.mixin = mixin;
- lodash.negate = negate;
- lodash.once = once;
- lodash.pick = pick;
- lodash.slice = slice;
- lodash.sortBy = sortBy;
- lodash.tap = tap;
- lodash.thru = thru;
- lodash.toArray = toArray;
- lodash.values = values;
-
- // Add aliases.
- lodash.extend = assignIn;
-
- // Add methods to `lodash.prototype`.
- mixin(lodash, lodash);
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return unwrapped values in chain sequences.
- lodash.clone = clone;
- lodash.escape = escape;
- lodash.every = every;
- lodash.find = find;
- lodash.forEach = forEach;
- lodash.has = has;
- lodash.head = head;
- lodash.identity = identity;
- lodash.indexOf = indexOf;
- lodash.isArguments = isArguments;
- lodash.isArray = isArray;
- lodash.isBoolean = isBoolean;
- lodash.isDate = isDate;
- lodash.isEmpty = isEmpty;
- lodash.isEqual = isEqual;
- lodash.isFinite = isFinite;
- lodash.isFunction = isFunction;
- lodash.isNaN = isNaN;
- lodash.isNull = isNull;
- lodash.isNumber = isNumber;
- lodash.isObject = isObject;
- lodash.isRegExp = isRegExp;
- lodash.isString = isString;
- lodash.isUndefined = isUndefined;
- lodash.last = last;
- lodash.max = max;
- lodash.min = min;
- lodash.noConflict = noConflict;
- lodash.noop = noop;
- lodash.reduce = reduce;
- lodash.result = result;
- lodash.size = size;
- lodash.some = some;
- lodash.uniqueId = uniqueId;
-
- // Add aliases.
- lodash.each = forEach;
- lodash.first = head;
-
- mixin(lodash, (function() {
- var source = {};
- baseForOwn(lodash, function(func, methodName) {
- if (!hasOwnProperty.call(lodash.prototype, methodName)) {
- source[methodName] = func;
- }
- });
- return source;
- }()), { 'chain': false });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The semantic version number.
- *
- * @static
- * @memberOf _
- * @type {string}
- */
- lodash.VERSION = VERSION;
-
- // Add `Array` methods to `lodash.prototype`.
- baseEach(['pop', 'join', 'replace', 'reverse', 'split', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
- var func = (/^(?:replace|split)$/.test(methodName) ? String.prototype : arrayProto)[methodName],
- chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
- retUnwrapped = /^(?:pop|join|replace|shift)$/.test(methodName);
-
- lodash.prototype[methodName] = function() {
- var args = arguments;
- if (retUnwrapped && !this.__chain__) {
- var value = this.value();
- return func.apply(isArray(value) ? value : [], args);
- }
- return this[chainName](function(value) {
- return func.apply(isArray(value) ? value : [], args);
- });
- };
- });
-
- // Add chain sequence methods to the `lodash` wrapper.
- lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
-
- /*--------------------------------------------------------------------------*/
-
- // Some AMD build optimizers, like r.js, check for condition patterns like:
- if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
- // Expose Lodash on the global object to prevent errors when Lodash is
- // loaded by a script tag in the presence of an AMD loader.
- // See http://requirejs.org/docs/errors.html#mismatch for more details.
- // Use `_.noConflict` to remove Lodash from the global object.
- root._ = lodash;
-
- // Define as an anonymous module so, through path mapping, it can be
- // referenced as the "underscore" module.
- define(function() {
- return lodash;
- });
- }
- // Check for `exports` after `define` in case a build optimizer adds it.
- else if (freeModule) {
- // Export for Node.js.
- (freeModule.exports = lodash)._ = lodash;
- // Export for CommonJS support.
- freeExports._ = lodash;
- }
- else {
- // Export to the global object.
- root._ = lodash;
- }
-}.call(this));
diff --git a/node_modules/lodash/core.min.js b/node_modules/lodash/core.min.js
deleted file mode 100644
index bb543ff..0000000
--- a/node_modules/lodash/core.min.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * @license
- * Lodash (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
- * Build: `lodash core -o ./dist/lodash.core.js`
- */
-;(function(){function n(n){return H(n)&&pn.call(n,"callee")&&!yn.call(n,"callee")}function t(n,t){return n.push.apply(n,t),n}function r(n){return function(t){return null==t?Z:t[n]}}function e(n,t,r,e,u){return u(n,function(n,u,o){r=e?(e=false,n):t(r,n,u,o)}),r}function u(n,t){return j(t,function(t){return n[t]})}function o(n){return n instanceof i?n:new i(n)}function i(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function c(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");
-return setTimeout(function(){n.apply(Z,r)},t)}function f(n,t){var r=true;return mn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function a(n,t,r){for(var e=-1,u=n.length;++e<u;){var o=n[e],i=t(o);if(null!=i&&(c===Z?i===i:r(i,c)))var c=i,f=o}return f}function l(n,t){var r=[];return mn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function p(n,r,e,u,o){var i=-1,c=n.length;for(e||(e=R),o||(o=[]);++i<c;){var f=n[i];0<r&&e(f)?1<r?p(f,r-1,e,u,o):t(o,f):u||(o[o.length]=f)}return o}function s(n,t){return n&&On(n,t,Dn);
-}function h(n,t){return l(t,function(t){return U(n[t])})}function v(n,t){return n>t}function b(n,t,r,e,u){return n===t||(null==n||null==t||!H(n)&&!H(t)?n!==n&&t!==t:y(n,t,r,e,b,u))}function y(n,t,r,e,u,o){var i=Nn(n),c=Nn(t),f=i?"[object Array]":hn.call(n),a=c?"[object Array]":hn.call(t),f="[object Arguments]"==f?"[object Object]":f,a="[object Arguments]"==a?"[object Object]":a,l="[object Object]"==f,c="[object Object]"==a,a=f==a;o||(o=[]);var p=An(o,function(t){return t[0]==n}),s=An(o,function(n){
-return n[0]==t});if(p&&s)return p[1]==t;if(o.push([n,t]),o.push([t,n]),a&&!l){if(i)r=T(n,t,r,e,u,o);else n:{switch(f){case"[object Boolean]":case"[object Date]":case"[object Number]":r=J(+n,+t);break n;case"[object Error]":r=n.name==t.name&&n.message==t.message;break n;case"[object RegExp]":case"[object String]":r=n==t+"";break n}r=false}return o.pop(),r}return 1&r||(i=l&&pn.call(n,"__wrapped__"),f=c&&pn.call(t,"__wrapped__"),!i&&!f)?!!a&&(r=B(n,t,r,e,u,o),o.pop(),r):(i=i?n.value():n,f=f?t.value():t,
-r=u(i,f,r,e,o),o.pop(),r)}function g(n){return typeof n=="function"?n:null==n?X:(typeof n=="object"?d:r)(n)}function _(n,t){return n<t}function j(n,t){var r=-1,e=M(n)?Array(n.length):[];return mn(n,function(n,u,o){e[++r]=t(n,u,o)}),e}function d(n){var t=_n(n);return function(r){var e=t.length;if(null==r)return!e;for(r=Object(r);e--;){var u=t[e];if(!(u in r&&b(n[u],r[u],3)))return false}return true}}function m(n,t){return n=Object(n),C(t,function(t,r){return r in n&&(t[r]=n[r]),t},{})}function O(n){return xn(I(n,void 0,X),n+"");
-}function x(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e<u;)r[e]=n[e+t];return r}function A(n){return x(n,0,n.length)}function E(n,t){var r;return mn(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}function w(n,r){return C(r,function(n,r){return r.func.apply(r.thisArg,t([n],r.args))},n)}function k(n,t,r){var e=!r;r||(r={});for(var u=-1,o=t.length;++u<o;){var i=t[u],c=Z;if(c===Z&&(c=n[i]),e)r[i]=c;else{var f=r,a=f[i];pn.call(f,i)&&J(a,c)&&(c!==Z||i in f)||(f[i]=c);
-}}return r}function N(n){return O(function(t,r){var e=-1,u=r.length,o=1<u?r[u-1]:Z,o=3<n.length&&typeof o=="function"?(u--,o):Z;for(t=Object(t);++e<u;){var i=r[e];i&&n(t,i,e,o)}return t})}function F(n){return function(){var t=arguments,r=dn(n.prototype),t=n.apply(r,t);return V(t)?t:r}}function S(n,t,r){function e(){for(var o=-1,i=arguments.length,c=-1,f=r.length,a=Array(f+i),l=this&&this!==on&&this instanceof e?u:n;++c<f;)a[c]=r[c];for(;i--;)a[c++]=arguments[++o];return l.apply(t,a)}if(typeof n!="function")throw new TypeError("Expected a function");
-var u=F(n);return e}function T(n,t,r,e,u,o){var i=n.length,c=t.length;if(i!=c&&!(1&r&&c>i))return false;for(var c=-1,f=true,a=2&r?[]:Z;++c<i;){var l=n[c],p=t[c];if(void 0!==Z){f=false;break}if(a){if(!E(t,function(n,t){if(!P(a,t)&&(l===n||u(l,n,r,e,o)))return a.push(t)})){f=false;break}}else if(l!==p&&!u(l,p,r,e,o)){f=false;break}}return f}function B(n,t,r,e,u,o){var i=1&r,c=Dn(n),f=c.length,a=Dn(t).length;if(f!=a&&!i)return false;for(var l=f;l--;){var p=c[l];if(!(i?p in t:pn.call(t,p)))return false}for(a=true;++l<f;){var p=c[l],s=n[p],h=t[p];
-if(void 0!==Z||s!==h&&!u(s,h,r,e,o)){a=false;break}i||(i="constructor"==p)}return a&&!i&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(a=false)),a}function R(t){return Nn(t)||n(t)}function D(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function I(n,t,r){return t=jn(t===Z?n.length-1:t,0),function(){for(var e=arguments,u=-1,o=jn(e.length-t,0),i=Array(o);++u<o;)i[u]=e[t+u];for(u=-1,
-o=Array(t+1);++u<t;)o[u]=e[u];return o[t]=r(i),n.apply(this,o)}}function $(n){return(null==n?0:n.length)?p(n,1):[]}function q(n){return n&&n.length?n[0]:Z}function P(n,t,r){var e=null==n?0:n.length;r=typeof r=="number"?0>r?jn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++r<e;){var o=n[r];if(u?o===t:o!==o)return r}return-1}function z(n,t){return mn(n,g(t))}function C(n,t,r){return e(n,g(t),r,3>arguments.length,mn)}function G(n,t){var r;if(typeof t!="function")throw new TypeError("Expected a function");return n=Fn(n),
-function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=Z),r}}function J(n,t){return n===t||n!==n&&t!==t}function M(n){var t;return(t=null!=n)&&(t=n.length,t=typeof t=="number"&&-1<t&&0==t%1&&9007199254740991>=t),t&&!U(n)}function U(n){return!!V(n)&&(n=hn.call(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function V(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function H(n){return null!=n&&typeof n=="object"}function K(n){
-return typeof n=="number"||H(n)&&"[object Number]"==hn.call(n)}function L(n){return typeof n=="string"||!Nn(n)&&H(n)&&"[object String]"==hn.call(n)}function Q(n){return typeof n=="string"?n:null==n?"":n+""}function W(n){return null==n?[]:u(n,Dn(n))}function X(n){return n}function Y(n,r,e){var u=Dn(r),o=h(r,u);null!=e||V(r)&&(o.length||!u.length)||(e=r,r=n,n=this,o=h(r,Dn(r)));var i=!(V(e)&&"chain"in e&&!e.chain),c=U(n);return mn(o,function(e){var u=r[e];n[e]=u,c&&(n.prototype[e]=function(){var r=this.__chain__;
-if(i||r){var e=n(this.__wrapped__);return(e.__actions__=A(this.__actions__)).push({func:u,args:arguments,thisArg:n}),e.__chain__=r,e}return u.apply(n,t([this.value()],arguments))})}),n}var Z,nn=1/0,tn=/[&<>"']/g,rn=RegExp(tn.source),en=/^(?:0|[1-9]\d*)$/,un=typeof self=="object"&&self&&self.Object===Object&&self,on=typeof global=="object"&&global&&global.Object===Object&&global||un||Function("return this")(),cn=(un=typeof exports=="object"&&exports&&!exports.nodeType&&exports)&&typeof module=="object"&&module&&!module.nodeType&&module,fn=function(n){
-return function(t){return null==n?Z:n[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),an=Array.prototype,ln=Object.prototype,pn=ln.hasOwnProperty,sn=0,hn=ln.toString,vn=on._,bn=Object.create,yn=ln.propertyIsEnumerable,gn=on.isFinite,_n=function(n,t){return function(r){return n(t(r))}}(Object.keys,Object),jn=Math.max,dn=function(){function n(){}return function(t){return V(t)?bn?bn(t):(n.prototype=t,t=new n,n.prototype=Z,t):{}}}();i.prototype=dn(o.prototype),i.prototype.constructor=i;
-var mn=function(n,t){return function(r,e){if(null==r)return r;if(!M(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++o<u)&&false!==e(i[o],o,i););return r}}(s),On=function(n){return function(t,r,e){var u=-1,o=Object(t);e=e(t);for(var i=e.length;i--;){var c=e[n?i:++u];if(false===r(o[c],c,o))break}return t}}(),xn=X,An=function(n){return function(t,r,e){var u=Object(t);if(!M(t)){var o=g(r);t=Dn(t),r=function(n){return o(u[n],n,u)}}return r=n(t,r,e),-1<r?u[o?t[r]:r]:Z}}(function(n,t,r){var e=null==n?0:n.length;
-if(!e)return-1;r=null==r?0:Fn(r),0>r&&(r=jn(e+r,0));n:{for(t=g(t),e=n.length,r+=-1;++r<e;)if(t(n[r],r,n)){n=r;break n}n=-1}return n}),En=O(function(n,t,r){return S(n,t,r)}),wn=O(function(n,t){return c(n,1,t)}),kn=O(function(n,t,r){return c(n,Sn(t)||0,r)}),Nn=Array.isArray,Fn=Number,Sn=Number,Tn=N(function(n,t){k(t,_n(t),n)}),Bn=N(function(n,t){k(t,D(t),n)}),Rn=O(function(n,t){n=Object(n);var r,e=-1,u=t.length,o=2<u?t[2]:Z;if(r=o){r=t[0];var i=t[1];if(V(o)){var c=typeof i;if("number"==c){if(c=M(o))var c=o.length,f=typeof i,c=null==c?9007199254740991:c,c=!!c&&("number"==f||"symbol"!=f&&en.test(i))&&-1<i&&0==i%1&&i<c;
-}else c="string"==c&&i in o;r=!!c&&J(o[i],r)}else r=false}for(r&&(u=1);++e<u;)for(o=t[e],r=In(o),i=-1,c=r.length;++i<c;){var f=r[i],a=n[f];(a===Z||J(a,ln[f])&&!pn.call(n,f))&&(n[f]=o[f])}return n}),Dn=_n,In=D,$n=function(n){return xn(I(n,Z,$),n+"")}(function(n,t){return null==n?{}:m(n,t)});o.assignIn=Bn,o.before=G,o.bind=En,o.chain=function(n){return n=o(n),n.__chain__=true,n},o.compact=function(n){return l(n,Boolean)},o.concat=function(){var n=arguments.length;if(!n)return[];for(var r=Array(n-1),e=arguments[0];n--;)r[n-1]=arguments[n];
-return t(Nn(e)?A(e):[e],p(r,1))},o.create=function(n,t){var r=dn(n);return null==t?r:Tn(r,t)},o.defaults=Rn,o.defer=wn,o.delay=kn,o.filter=function(n,t){return l(n,g(t))},o.flatten=$,o.flattenDeep=function(n){return(null==n?0:n.length)?p(n,nn):[]},o.iteratee=g,o.keys=Dn,o.map=function(n,t){return j(n,g(t))},o.matches=function(n){return d(Tn({},n))},o.mixin=Y,o.negate=function(n){if(typeof n!="function")throw new TypeError("Expected a function");return function(){return!n.apply(this,arguments)}},o.once=function(n){
-return G(2,n)},o.pick=$n,o.slice=function(n,t,r){var e=null==n?0:n.length;return r=r===Z?e:+r,e?x(n,null==t?0:+t,r):[]},o.sortBy=function(n,t){var e=0;return t=g(t),j(j(n,function(n,r,u){return{value:n,index:e++,criteria:t(n,r,u)}}).sort(function(n,t){var r;n:{r=n.criteria;var e=t.criteria;if(r!==e){var u=r!==Z,o=null===r,i=r===r,c=e!==Z,f=null===e,a=e===e;if(!f&&r>e||o&&c&&a||!u&&a||!i){r=1;break n}if(!o&&r<e||f&&u&&i||!c&&i||!a){r=-1;break n}}r=0}return r||n.index-t.index}),r("value"))},o.tap=function(n,t){
-return t(n),n},o.thru=function(n,t){return t(n)},o.toArray=function(n){return M(n)?n.length?A(n):[]:W(n)},o.values=W,o.extend=Bn,Y(o,o),o.clone=function(n){return V(n)?Nn(n)?A(n):k(n,_n(n)):n},o.escape=function(n){return(n=Q(n))&&rn.test(n)?n.replace(tn,fn):n},o.every=function(n,t,r){return t=r?Z:t,f(n,g(t))},o.find=An,o.forEach=z,o.has=function(n,t){return null!=n&&pn.call(n,t)},o.head=q,o.identity=X,o.indexOf=P,o.isArguments=n,o.isArray=Nn,o.isBoolean=function(n){return true===n||false===n||H(n)&&"[object Boolean]"==hn.call(n);
-},o.isDate=function(n){return H(n)&&"[object Date]"==hn.call(n)},o.isEmpty=function(t){return M(t)&&(Nn(t)||L(t)||U(t.splice)||n(t))?!t.length:!_n(t).length},o.isEqual=function(n,t){return b(n,t)},o.isFinite=function(n){return typeof n=="number"&&gn(n)},o.isFunction=U,o.isNaN=function(n){return K(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=K,o.isObject=V,o.isRegExp=function(n){return H(n)&&"[object RegExp]"==hn.call(n)},o.isString=L,o.isUndefined=function(n){return n===Z},o.last=function(n){
-var t=null==n?0:n.length;return t?n[t-1]:Z},o.max=function(n){return n&&n.length?a(n,X,v):Z},o.min=function(n){return n&&n.length?a(n,X,_):Z},o.noConflict=function(){return on._===this&&(on._=vn),this},o.noop=function(){},o.reduce=C,o.result=function(n,t,r){return t=null==n?Z:n[t],t===Z&&(t=r),U(t)?t.call(n):t},o.size=function(n){return null==n?0:(n=M(n)?n:_n(n),n.length)},o.some=function(n,t,r){return t=r?Z:t,E(n,g(t))},o.uniqueId=function(n){var t=++sn;return Q(n)+t},o.each=z,o.first=q,Y(o,function(){
-var n={};return s(o,function(t,r){pn.call(o.prototype,r)||(n[r]=t)}),n}(),{chain:false}),o.VERSION="4.17.15",mn("pop join replace reverse split push shift sort splice unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:an)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);o.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Nn(u)?u:[],n)}return this[r](function(r){return t.apply(Nn(r)?r:[],n);
-})}}),o.prototype.toJSON=o.prototype.valueOf=o.prototype.value=function(){return w(this.__wrapped__,this.__actions__)},typeof define=="function"&&typeof define.amd=="object"&&define.amd?(on._=o, define(function(){return o})):cn?((cn.exports=o)._=o,un._=o):on._=o}).call(this); \ No newline at end of file
diff --git a/node_modules/lodash/countBy.js b/node_modules/lodash/countBy.js
deleted file mode 100644
index 0e88abc..0000000
--- a/node_modules/lodash/countBy.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var baseAssignValue = require('./_baseAssignValue'),
- createAggregator = require('./_createAggregator');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the number of times the key was returned by `iteratee`. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.countBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': 1, '6': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.countBy(['one', 'two', 'three'], 'length');
- * // => { '3': 2, '5': 1 }
- */
-var countBy = createAggregator(function(result, value, key) {
- if (hasOwnProperty.call(result, key)) {
- ++result[key];
- } else {
- baseAssignValue(result, key, 1);
- }
-});
-
-module.exports = countBy;
diff --git a/node_modules/lodash/create.js b/node_modules/lodash/create.js
deleted file mode 100644
index 919edb8..0000000
--- a/node_modules/lodash/create.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var baseAssign = require('./_baseAssign'),
- baseCreate = require('./_baseCreate');
-
-/**
- * Creates an object that inherits from the `prototype` object. If a
- * `properties` object is given, its own enumerable string keyed properties
- * are assigned to the created object.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Object
- * @param {Object} prototype The object to inherit from.
- * @param {Object} [properties] The properties to assign to the object.
- * @returns {Object} Returns the new object.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * function Circle() {
- * Shape.call(this);
- * }
- *
- * Circle.prototype = _.create(Shape.prototype, {
- * 'constructor': Circle
- * });
- *
- * var circle = new Circle;
- * circle instanceof Circle;
- * // => true
- *
- * circle instanceof Shape;
- * // => true
- */
-function create(prototype, properties) {
- var result = baseCreate(prototype);
- return properties == null ? result : baseAssign(result, properties);
-}
-
-module.exports = create;
diff --git a/node_modules/lodash/curry.js b/node_modules/lodash/curry.js
deleted file mode 100644
index 918db1a..0000000
--- a/node_modules/lodash/curry.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var createWrap = require('./_createWrap');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_CURRY_FLAG = 8;
-
-/**
- * Creates a function that accepts arguments of `func` and either invokes
- * `func` returning its result, if at least `arity` number of arguments have
- * been provided, or returns a function that accepts the remaining `func`
- * arguments, and so on. The arity of `func` may be specified if `func.length`
- * is not sufficient.
- *
- * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curry(abc);
- *
- * curried(1)(2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(1)(_, 3)(2);
- * // => [1, 2, 3]
- */
-function curry(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curry.placeholder;
- return result;
-}
-
-// Assign default placeholders.
-curry.placeholder = {};
-
-module.exports = curry;
diff --git a/node_modules/lodash/curryRight.js b/node_modules/lodash/curryRight.js
deleted file mode 100644
index c85b6f3..0000000
--- a/node_modules/lodash/curryRight.js
+++ /dev/null
@@ -1,54 +0,0 @@
-var createWrap = require('./_createWrap');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_CURRY_RIGHT_FLAG = 16;
-
-/**
- * This method is like `_.curry` except that arguments are applied to `func`
- * in the manner of `_.partialRight` instead of `_.partial`.
- *
- * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curryRight(abc);
- *
- * curried(3)(2)(1);
- * // => [1, 2, 3]
- *
- * curried(2, 3)(1);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(3)(1, _)(2);
- * // => [1, 2, 3]
- */
-function curryRight(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curryRight.placeholder;
- return result;
-}
-
-// Assign default placeholders.
-curryRight.placeholder = {};
-
-module.exports = curryRight;
diff --git a/node_modules/lodash/date.js b/node_modules/lodash/date.js
deleted file mode 100644
index cbf5b41..0000000
--- a/node_modules/lodash/date.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- 'now': require('./now')
-};
diff --git a/node_modules/lodash/debounce.js b/node_modules/lodash/debounce.js
deleted file mode 100644
index 8f751d5..0000000
--- a/node_modules/lodash/debounce.js
+++ /dev/null
@@ -1,191 +0,0 @@
-var isObject = require('./isObject'),
- now = require('./now'),
- toNumber = require('./toNumber');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max,
- nativeMin = Math.min;
-
-/**
- * Creates a debounced function that delays invoking `func` until after `wait`
- * milliseconds have elapsed since the last time the debounced function was
- * invoked. The debounced function comes with a `cancel` method to cancel
- * delayed `func` invocations and a `flush` method to immediately invoke them.
- * Provide `options` to indicate whether `func` should be invoked on the
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
- * with the last arguments provided to the debounced function. Subsequent
- * calls to the debounced function return the result of the last `func`
- * invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the debounced function
- * is invoked more than once during the `wait` timeout.
- *
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.debounce` and `_.throttle`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to debounce.
- * @param {number} [wait=0] The number of milliseconds to delay.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=false]
- * Specify invoking on the leading edge of the timeout.
- * @param {number} [options.maxWait]
- * The maximum time `func` is allowed to be delayed before it's invoked.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new debounced function.
- * @example
- *
- * // Avoid costly calculations while the window size is in flux.
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
- *
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
- * 'leading': true,
- * 'trailing': false
- * }));
- *
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
- * var source = new EventSource('/stream');
- * jQuery(source).on('message', debounced);
- *
- * // Cancel the trailing debounced invocation.
- * jQuery(window).on('popstate', debounced.cancel);
- */
-function debounce(func, wait, options) {
- var lastArgs,
- lastThis,
- maxWait,
- result,
- timerId,
- lastCallTime,
- lastInvokeTime = 0,
- leading = false,
- maxing = false,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- wait = toNumber(wait) || 0;
- if (isObject(options)) {
- leading = !!options.leading;
- maxing = 'maxWait' in options;
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
-
- function invokeFunc(time) {
- var args = lastArgs,
- thisArg = lastThis;
-
- lastArgs = lastThis = undefined;
- lastInvokeTime = time;
- result = func.apply(thisArg, args);
- return result;
- }
-
- function leadingEdge(time) {
- // Reset any `maxWait` timer.
- lastInvokeTime = time;
- // Start the timer for the trailing edge.
- timerId = setTimeout(timerExpired, wait);
- // Invoke the leading edge.
- return leading ? invokeFunc(time) : result;
- }
-
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime,
- timeWaiting = wait - timeSinceLastCall;
-
- return maxing
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
- : timeWaiting;
- }
-
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime;
-
- // Either this is the first call, activity has stopped and we're at the
- // trailing edge, the system time has gone backwards and we're treating
- // it as the trailing edge, or we've hit the `maxWait` limit.
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
- }
-
- function timerExpired() {
- var time = now();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- // Restart the timer.
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
-
- function trailingEdge(time) {
- timerId = undefined;
-
- // Only invoke if we have `lastArgs` which means `func` has been
- // debounced at least once.
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = undefined;
- return result;
- }
-
- function cancel() {
- if (timerId !== undefined) {
- clearTimeout(timerId);
- }
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = undefined;
- }
-
- function flush() {
- return timerId === undefined ? result : trailingEdge(now());
- }
-
- function debounced() {
- var time = now(),
- isInvoking = shouldInvoke(time);
-
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
-
- if (isInvoking) {
- if (timerId === undefined) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- // Handle invocations in a tight loop.
- clearTimeout(timerId);
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === undefined) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
-}
-
-module.exports = debounce;
diff --git a/node_modules/lodash/deburr.js b/node_modules/lodash/deburr.js
deleted file mode 100644
index f85e314..0000000
--- a/node_modules/lodash/deburr.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var deburrLetter = require('./_deburrLetter'),
- toString = require('./toString');
-
-/** Used to match Latin Unicode letters (excluding mathematical operators). */
-var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
-
-/** Used to compose unicode character classes. */
-var rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
-
-/** Used to compose unicode capture groups. */
-var rsCombo = '[' + rsComboRange + ']';
-
-/**
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
- */
-var reComboMark = RegExp(rsCombo, 'g');
-
-/**
- * Deburrs `string` by converting
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
- * letters to basic Latin letters and removing
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to deburr.
- * @returns {string} Returns the deburred string.
- * @example
- *
- * _.deburr('déjà vu');
- * // => 'deja vu'
- */
-function deburr(string) {
- string = toString(string);
- return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
-}
-
-module.exports = deburr;
diff --git a/node_modules/lodash/defaultTo.js b/node_modules/lodash/defaultTo.js
deleted file mode 100644
index 5b33359..0000000
--- a/node_modules/lodash/defaultTo.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Checks `value` to determine whether a default value should be returned in
- * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
- * or `undefined`.
- *
- * @static
- * @memberOf _
- * @since 4.14.0
- * @category Util
- * @param {*} value The value to check.
- * @param {*} defaultValue The default value.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * _.defaultTo(1, 10);
- * // => 1
- *
- * _.defaultTo(undefined, 10);
- * // => 10
- */
-function defaultTo(value, defaultValue) {
- return (value == null || value !== value) ? defaultValue : value;
-}
-
-module.exports = defaultTo;
diff --git a/node_modules/lodash/defaults.js b/node_modules/lodash/defaults.js
deleted file mode 100644
index c74df04..0000000
--- a/node_modules/lodash/defaults.js
+++ /dev/null
@@ -1,64 +0,0 @@
-var baseRest = require('./_baseRest'),
- eq = require('./eq'),
- isIterateeCall = require('./_isIterateeCall'),
- keysIn = require('./keysIn');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Assigns own and inherited enumerable string keyed properties of source
- * objects to the destination object for all destination properties that
- * resolve to `undefined`. Source objects are applied from left to right.
- * Once a property is set, additional values of the same property are ignored.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaultsDeep
- * @example
- *
- * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
-var defaults = baseRest(function(object, sources) {
- object = Object(object);
-
- var index = -1;
- var length = sources.length;
- var guard = length > 2 ? sources[2] : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- length = 1;
- }
-
- while (++index < length) {
- var source = sources[index];
- var props = keysIn(source);
- var propsIndex = -1;
- var propsLength = props.length;
-
- while (++propsIndex < propsLength) {
- var key = props[propsIndex];
- var value = object[key];
-
- if (value === undefined ||
- (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- object[key] = source[key];
- }
- }
- }
-
- return object;
-});
-
-module.exports = defaults;
diff --git a/node_modules/lodash/defaultsDeep.js b/node_modules/lodash/defaultsDeep.js
deleted file mode 100644
index 9b5fa3e..0000000
--- a/node_modules/lodash/defaultsDeep.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var apply = require('./_apply'),
- baseRest = require('./_baseRest'),
- customDefaultsMerge = require('./_customDefaultsMerge'),
- mergeWith = require('./mergeWith');
-
-/**
- * This method is like `_.defaults` except that it recursively assigns
- * default properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaults
- * @example
- *
- * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
- * // => { 'a': { 'b': 2, 'c': 3 } }
- */
-var defaultsDeep = baseRest(function(args) {
- args.push(undefined, customDefaultsMerge);
- return apply(mergeWith, undefined, args);
-});
-
-module.exports = defaultsDeep;
diff --git a/node_modules/lodash/defer.js b/node_modules/lodash/defer.js
deleted file mode 100644
index f6d6c6f..0000000
--- a/node_modules/lodash/defer.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var baseDelay = require('./_baseDelay'),
- baseRest = require('./_baseRest');
-
-/**
- * Defers invoking the `func` until the current call stack has cleared. Any
- * additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to defer.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.defer(function(text) {
- * console.log(text);
- * }, 'deferred');
- * // => Logs 'deferred' after one millisecond.
- */
-var defer = baseRest(function(func, args) {
- return baseDelay(func, 1, args);
-});
-
-module.exports = defer;
diff --git a/node_modules/lodash/delay.js b/node_modules/lodash/delay.js
deleted file mode 100644
index bd55479..0000000
--- a/node_modules/lodash/delay.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseDelay = require('./_baseDelay'),
- baseRest = require('./_baseRest'),
- toNumber = require('./toNumber');
-
-/**
- * Invokes `func` after `wait` milliseconds. Any additional arguments are
- * provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.delay(function(text) {
- * console.log(text);
- * }, 1000, 'later');
- * // => Logs 'later' after one second.
- */
-var delay = baseRest(function(func, wait, args) {
- return baseDelay(func, toNumber(wait) || 0, args);
-});
-
-module.exports = delay;
diff --git a/node_modules/lodash/difference.js b/node_modules/lodash/difference.js
deleted file mode 100644
index fa28bb3..0000000
--- a/node_modules/lodash/difference.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseDifference = require('./_baseDifference'),
- baseFlatten = require('./_baseFlatten'),
- baseRest = require('./_baseRest'),
- isArrayLikeObject = require('./isArrayLikeObject');
-
-/**
- * Creates an array of `array` values not included in the other given arrays
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons. The order and references of result values are
- * determined by the first array.
- *
- * **Note:** Unlike `_.pullAll`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.without, _.xor
- * @example
- *
- * _.difference([2, 1], [2, 3]);
- * // => [1]
- */
-var difference = baseRest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
- : [];
-});
-
-module.exports = difference;
diff --git a/node_modules/lodash/differenceBy.js b/node_modules/lodash/differenceBy.js
deleted file mode 100644
index 2cd63e7..0000000
--- a/node_modules/lodash/differenceBy.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var baseDifference = require('./_baseDifference'),
- baseFlatten = require('./_baseFlatten'),
- baseIteratee = require('./_baseIteratee'),
- baseRest = require('./_baseRest'),
- isArrayLikeObject = require('./isArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.difference` except that it accepts `iteratee` which
- * is invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. The order and references of result values are
- * determined by the first array. The iteratee is invoked with one argument:
- * (value).
- *
- * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
-var differenceBy = baseRest(function(array, values) {
- var iteratee = last(values);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), baseIteratee(iteratee, 2))
- : [];
-});
-
-module.exports = differenceBy;
diff --git a/node_modules/lodash/differenceWith.js b/node_modules/lodash/differenceWith.js
deleted file mode 100644
index c0233f4..0000000
--- a/node_modules/lodash/differenceWith.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var baseDifference = require('./_baseDifference'),
- baseFlatten = require('./_baseFlatten'),
- baseRest = require('./_baseRest'),
- isArrayLikeObject = require('./isArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.difference` except that it accepts `comparator`
- * which is invoked to compare elements of `array` to `values`. The order and
- * references of result values are determined by the first array. The comparator
- * is invoked with two arguments: (arrVal, othVal).
- *
- * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- *
- * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }]
- */
-var differenceWith = baseRest(function(array, values) {
- var comparator = last(values);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
- : [];
-});
-
-module.exports = differenceWith;
diff --git a/node_modules/lodash/divide.js b/node_modules/lodash/divide.js
deleted file mode 100644
index 8cae0cd..0000000
--- a/node_modules/lodash/divide.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var createMathOperation = require('./_createMathOperation');
-
-/**
- * Divide two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} dividend The first number in a division.
- * @param {number} divisor The second number in a division.
- * @returns {number} Returns the quotient.
- * @example
- *
- * _.divide(6, 4);
- * // => 1.5
- */
-var divide = createMathOperation(function(dividend, divisor) {
- return dividend / divisor;
-}, 1);
-
-module.exports = divide;
diff --git a/node_modules/lodash/drop.js b/node_modules/lodash/drop.js
deleted file mode 100644
index d5c3cba..0000000
--- a/node_modules/lodash/drop.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var baseSlice = require('./_baseSlice'),
- toInteger = require('./toInteger');
-
-/**
- * Creates a slice of `array` with `n` elements dropped from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.drop([1, 2, 3]);
- * // => [2, 3]
- *
- * _.drop([1, 2, 3], 2);
- * // => [3]
- *
- * _.drop([1, 2, 3], 5);
- * // => []
- *
- * _.drop([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
-function drop(array, n, guard) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, n < 0 ? 0 : n, length);
-}
-
-module.exports = drop;
diff --git a/node_modules/lodash/dropRight.js b/node_modules/lodash/dropRight.js
deleted file mode 100644
index 441fe99..0000000
--- a/node_modules/lodash/dropRight.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseSlice = require('./_baseSlice'),
- toInteger = require('./toInteger');
-
-/**
- * Creates a slice of `array` with `n` elements dropped from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.dropRight([1, 2, 3]);
- * // => [1, 2]
- *
- * _.dropRight([1, 2, 3], 2);
- * // => [1]
- *
- * _.dropRight([1, 2, 3], 5);
- * // => []
- *
- * _.dropRight([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
-function dropRight(array, n, guard) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, 0, n < 0 ? 0 : n);
-}
-
-module.exports = dropRight;
diff --git a/node_modules/lodash/dropRightWhile.js b/node_modules/lodash/dropRightWhile.js
deleted file mode 100644
index 9ad36a0..0000000
--- a/node_modules/lodash/dropRightWhile.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseWhile = require('./_baseWhile');
-
-/**
- * Creates a slice of `array` excluding elements dropped from the end.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.dropRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropRightWhile(users, ['active', false]);
- * // => objects for ['barney']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropRightWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
-function dropRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, baseIteratee(predicate, 3), true, true)
- : [];
-}
-
-module.exports = dropRightWhile;
diff --git a/node_modules/lodash/dropWhile.js b/node_modules/lodash/dropWhile.js
deleted file mode 100644
index 903ef56..0000000
--- a/node_modules/lodash/dropWhile.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseWhile = require('./_baseWhile');
-
-/**
- * Creates a slice of `array` excluding elements dropped from the beginning.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.dropWhile(users, function(o) { return !o.active; });
- * // => objects for ['pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropWhile(users, ['active', false]);
- * // => objects for ['pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
-function dropWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, baseIteratee(predicate, 3), true)
- : [];
-}
-
-module.exports = dropWhile;
diff --git a/node_modules/lodash/each.js b/node_modules/lodash/each.js
deleted file mode 100644
index 8800f42..0000000
--- a/node_modules/lodash/each.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./forEach');
diff --git a/node_modules/lodash/eachRight.js b/node_modules/lodash/eachRight.js
deleted file mode 100644
index 3252b2a..0000000
--- a/node_modules/lodash/eachRight.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./forEachRight');
diff --git a/node_modules/lodash/endsWith.js b/node_modules/lodash/endsWith.js
deleted file mode 100644
index 76fc866..0000000
--- a/node_modules/lodash/endsWith.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var baseClamp = require('./_baseClamp'),
- baseToString = require('./_baseToString'),
- toInteger = require('./toInteger'),
- toString = require('./toString');
-
-/**
- * Checks if `string` ends with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {string} [target] The string to search for.
- * @param {number} [position=string.length] The position to search up to.
- * @returns {boolean} Returns `true` if `string` ends with `target`,
- * else `false`.
- * @example
- *
- * _.endsWith('abc', 'c');
- * // => true
- *
- * _.endsWith('abc', 'b');
- * // => false
- *
- * _.endsWith('abc', 'b', 2);
- * // => true
- */
-function endsWith(string, target, position) {
- string = toString(string);
- target = baseToString(target);
-
- var length = string.length;
- position = position === undefined
- ? length
- : baseClamp(toInteger(position), 0, length);
-
- var end = position;
- position -= target.length;
- return position >= 0 && string.slice(position, end) == target;
-}
-
-module.exports = endsWith;
diff --git a/node_modules/lodash/entries.js b/node_modules/lodash/entries.js
deleted file mode 100644
index 7a88df2..0000000
--- a/node_modules/lodash/entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./toPairs');
diff --git a/node_modules/lodash/entriesIn.js b/node_modules/lodash/entriesIn.js
deleted file mode 100644
index f6c6331..0000000
--- a/node_modules/lodash/entriesIn.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./toPairsIn');
diff --git a/node_modules/lodash/eq.js b/node_modules/lodash/eq.js
deleted file mode 100644
index a940688..0000000
--- a/node_modules/lodash/eq.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
-function eq(value, other) {
- return value === other || (value !== value && other !== other);
-}
-
-module.exports = eq;
diff --git a/node_modules/lodash/escape.js b/node_modules/lodash/escape.js
deleted file mode 100644
index 9247e00..0000000
--- a/node_modules/lodash/escape.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var escapeHtmlChar = require('./_escapeHtmlChar'),
- toString = require('./toString');
-
-/** Used to match HTML entities and HTML characters. */
-var reUnescapedHtml = /[&<>"']/g,
- reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
-
-/**
- * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
- * corresponding HTML entities.
- *
- * **Note:** No other characters are escaped. To escape additional
- * characters use a third-party library like [_he_](https://mths.be/he).
- *
- * Though the ">" character is escaped for symmetry, characters like
- * ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value. See
- * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
- * (under "semi-related fun fact") for more details.
- *
- * When working with HTML you should always
- * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
- * XSS vectors.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escape('fred, barney, & pebbles');
- * // => 'fred, barney, &amp; pebbles'
- */
-function escape(string) {
- string = toString(string);
- return (string && reHasUnescapedHtml.test(string))
- ? string.replace(reUnescapedHtml, escapeHtmlChar)
- : string;
-}
-
-module.exports = escape;
diff --git a/node_modules/lodash/escapeRegExp.js b/node_modules/lodash/escapeRegExp.js
deleted file mode 100644
index 0a58c69..0000000
--- a/node_modules/lodash/escapeRegExp.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var toString = require('./toString');
-
-/**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
- */
-var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
- reHasRegExpChar = RegExp(reRegExpChar.source);
-
-/**
- * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
- * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escapeRegExp('[lodash](https://lodash.com/)');
- * // => '\[lodash\]\(https://lodash\.com/\)'
- */
-function escapeRegExp(string) {
- string = toString(string);
- return (string && reHasRegExpChar.test(string))
- ? string.replace(reRegExpChar, '\\$&')
- : string;
-}
-
-module.exports = escapeRegExp;
diff --git a/node_modules/lodash/every.js b/node_modules/lodash/every.js
deleted file mode 100644
index 25080da..0000000
--- a/node_modules/lodash/every.js
+++ /dev/null
@@ -1,56 +0,0 @@
-var arrayEvery = require('./_arrayEvery'),
- baseEvery = require('./_baseEvery'),
- baseIteratee = require('./_baseIteratee'),
- isArray = require('./isArray'),
- isIterateeCall = require('./_isIterateeCall');
-
-/**
- * Checks if `predicate` returns truthy for **all** elements of `collection`.
- * Iteration is stopped once `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * **Note:** This method returns `true` for
- * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
- * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
- * elements of empty collections.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- * @example
- *
- * _.every([true, 1, null, 'yes'], Boolean);
- * // => false
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.every(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.every(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.every(users, 'active');
- * // => false
- */
-function every(collection, predicate, guard) {
- var func = isArray(collection) ? arrayEvery : baseEvery;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, baseIteratee(predicate, 3));
-}
-
-module.exports = every;
diff --git a/node_modules/lodash/extend.js b/node_modules/lodash/extend.js
deleted file mode 100644
index e00166c..0000000
--- a/node_modules/lodash/extend.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./assignIn');
diff --git a/node_modules/lodash/extendWith.js b/node_modules/lodash/extendWith.js
deleted file mode 100644
index dbdcb3b..0000000
--- a/node_modules/lodash/extendWith.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./assignInWith');
diff --git a/node_modules/lodash/fill.js b/node_modules/lodash/fill.js
deleted file mode 100644
index ae13aa1..0000000
--- a/node_modules/lodash/fill.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var baseFill = require('./_baseFill'),
- isIterateeCall = require('./_isIterateeCall');
-
-/**
- * Fills elements of `array` with `value` from `start` up to, but not
- * including, `end`.
- *
- * **Note:** This method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Array
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.fill(array, 'a');
- * console.log(array);
- * // => ['a', 'a', 'a']
- *
- * _.fill(Array(3), 2);
- * // => [2, 2, 2]
- *
- * _.fill([4, 6, 8, 10], '*', 1, 3);
- * // => [4, '*', '*', 10]
- */
-function fill(array, value, start, end) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
- start = 0;
- end = length;
- }
- return baseFill(array, value, start, end);
-}
-
-module.exports = fill;
diff --git a/node_modules/lodash/filter.js b/node_modules/lodash/filter.js
deleted file mode 100644
index 52616be..0000000
--- a/node_modules/lodash/filter.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- baseFilter = require('./_baseFilter'),
- baseIteratee = require('./_baseIteratee'),
- isArray = require('./isArray');
-
-/**
- * Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * **Note:** Unlike `_.remove`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.reject
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, { 'age': 36, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.filter(users, 'active');
- * // => objects for ['barney']
- */
-function filter(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, baseIteratee(predicate, 3));
-}
-
-module.exports = filter;
diff --git a/node_modules/lodash/find.js b/node_modules/lodash/find.js
deleted file mode 100644
index de732cc..0000000
--- a/node_modules/lodash/find.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var createFind = require('./_createFind'),
- findIndex = require('./findIndex');
-
-/**
- * Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false },
- * { 'user': 'pebbles', 'age': 1, 'active': true }
- * ];
- *
- * _.find(users, function(o) { return o.age < 40; });
- * // => object for 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.find(users, { 'age': 1, 'active': true });
- * // => object for 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.find(users, ['active', false]);
- * // => object for 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.find(users, 'active');
- * // => object for 'barney'
- */
-var find = createFind(findIndex);
-
-module.exports = find;
diff --git a/node_modules/lodash/findIndex.js b/node_modules/lodash/findIndex.js
deleted file mode 100644
index 4689069..0000000
--- a/node_modules/lodash/findIndex.js
+++ /dev/null
@@ -1,55 +0,0 @@
-var baseFindIndex = require('./_baseFindIndex'),
- baseIteratee = require('./_baseIteratee'),
- toInteger = require('./toInteger');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * This method is like `_.find` except that it returns the index of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
- * // => 0
- *
- * // The `_.matches` iteratee shorthand.
- * _.findIndex(users, { 'user': 'fred', 'active': false });
- * // => 1
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findIndex(users, ['active', false]);
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.findIndex(users, 'active');
- * // => 2
- */
-function findIndex(array, predicate, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseFindIndex(array, baseIteratee(predicate, 3), index);
-}
-
-module.exports = findIndex;
diff --git a/node_modules/lodash/findKey.js b/node_modules/lodash/findKey.js
deleted file mode 100644
index cac0248..0000000
--- a/node_modules/lodash/findKey.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var baseFindKey = require('./_baseFindKey'),
- baseForOwn = require('./_baseForOwn'),
- baseIteratee = require('./_baseIteratee');
-
-/**
- * This method is like `_.find` except that it returns the key of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findKey(users, function(o) { return o.age < 40; });
- * // => 'barney' (iteration order is not guaranteed)
- *
- * // The `_.matches` iteratee shorthand.
- * _.findKey(users, { 'age': 1, 'active': true });
- * // => 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findKey(users, 'active');
- * // => 'barney'
- */
-function findKey(object, predicate) {
- return baseFindKey(object, baseIteratee(predicate, 3), baseForOwn);
-}
-
-module.exports = findKey;
diff --git a/node_modules/lodash/findLast.js b/node_modules/lodash/findLast.js
deleted file mode 100644
index 70b4271..0000000
--- a/node_modules/lodash/findLast.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var createFind = require('./_createFind'),
- findLastIndex = require('./findLastIndex');
-
-/**
- * This method is like `_.find` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=collection.length-1] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * _.findLast([1, 2, 3, 4], function(n) {
- * return n % 2 == 1;
- * });
- * // => 3
- */
-var findLast = createFind(findLastIndex);
-
-module.exports = findLast;
diff --git a/node_modules/lodash/findLastIndex.js b/node_modules/lodash/findLastIndex.js
deleted file mode 100644
index 7da3431..0000000
--- a/node_modules/lodash/findLastIndex.js
+++ /dev/null
@@ -1,59 +0,0 @@
-var baseFindIndex = require('./_baseFindIndex'),
- baseIteratee = require('./_baseIteratee'),
- toInteger = require('./toInteger');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max,
- nativeMin = Math.min;
-
-/**
- * This method is like `_.findIndex` except that it iterates over elements
- * of `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
- * // => 2
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastIndex(users, { 'user': 'barney', 'active': true });
- * // => 0
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastIndex(users, ['active', false]);
- * // => 2
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastIndex(users, 'active');
- * // => 0
- */
-function findLastIndex(array, predicate, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = length - 1;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = fromIndex < 0
- ? nativeMax(length + index, 0)
- : nativeMin(index, length - 1);
- }
- return baseFindIndex(array, baseIteratee(predicate, 3), index, true);
-}
-
-module.exports = findLastIndex;
diff --git a/node_modules/lodash/findLastKey.js b/node_modules/lodash/findLastKey.js
deleted file mode 100644
index 66fb9fb..0000000
--- a/node_modules/lodash/findLastKey.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var baseFindKey = require('./_baseFindKey'),
- baseForOwnRight = require('./_baseForOwnRight'),
- baseIteratee = require('./_baseIteratee');
-
-/**
- * This method is like `_.findKey` except that it iterates over elements of
- * a collection in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findLastKey(users, function(o) { return o.age < 40; });
- * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastKey(users, { 'age': 36, 'active': true });
- * // => 'barney'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastKey(users, 'active');
- * // => 'pebbles'
- */
-function findLastKey(object, predicate) {
- return baseFindKey(object, baseIteratee(predicate, 3), baseForOwnRight);
-}
-
-module.exports = findLastKey;
diff --git a/node_modules/lodash/first.js b/node_modules/lodash/first.js
deleted file mode 100644
index 53f4ad1..0000000
--- a/node_modules/lodash/first.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./head');
diff --git a/node_modules/lodash/flatMap.js b/node_modules/lodash/flatMap.js
deleted file mode 100644
index e668506..0000000
--- a/node_modules/lodash/flatMap.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- map = require('./map');
-
-/**
- * Creates a flattened array of values by running each element in `collection`
- * thru `iteratee` and flattening the mapped results. The iteratee is invoked
- * with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [n, n];
- * }
- *
- * _.flatMap([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
-function flatMap(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), 1);
-}
-
-module.exports = flatMap;
diff --git a/node_modules/lodash/flatMapDeep.js b/node_modules/lodash/flatMapDeep.js
deleted file mode 100644
index 4653d60..0000000
--- a/node_modules/lodash/flatMapDeep.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- map = require('./map');
-
-/** Used as references for various `Number` constants. */
-var INFINITY = 1 / 0;
-
-/**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDeep([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
-function flatMapDeep(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), INFINITY);
-}
-
-module.exports = flatMapDeep;
diff --git a/node_modules/lodash/flatMapDepth.js b/node_modules/lodash/flatMapDepth.js
deleted file mode 100644
index 6d72005..0000000
--- a/node_modules/lodash/flatMapDepth.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- map = require('./map'),
- toInteger = require('./toInteger');
-
-/**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDepth([1, 2], duplicate, 2);
- * // => [[1, 1], [2, 2]]
- */
-function flatMapDepth(collection, iteratee, depth) {
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(map(collection, iteratee), depth);
-}
-
-module.exports = flatMapDepth;
diff --git a/node_modules/lodash/flatten.js b/node_modules/lodash/flatten.js
deleted file mode 100644
index 3f09f7f..0000000
--- a/node_modules/lodash/flatten.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseFlatten = require('./_baseFlatten');
-
-/**
- * Flattens `array` a single level deep.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, [3, [4]], 5]]);
- * // => [1, 2, [3, [4]], 5]
- */
-function flatten(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseFlatten(array, 1) : [];
-}
-
-module.exports = flatten;
diff --git a/node_modules/lodash/flattenDeep.js b/node_modules/lodash/flattenDeep.js
deleted file mode 100644
index 8ad585c..0000000
--- a/node_modules/lodash/flattenDeep.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var baseFlatten = require('./_baseFlatten');
-
-/** Used as references for various `Number` constants. */
-var INFINITY = 1 / 0;
-
-/**
- * Recursively flattens `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flattenDeep([1, [2, [3, [4]], 5]]);
- * // => [1, 2, 3, 4, 5]
- */
-function flattenDeep(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseFlatten(array, INFINITY) : [];
-}
-
-module.exports = flattenDeep;
diff --git a/node_modules/lodash/flattenDepth.js b/node_modules/lodash/flattenDepth.js
deleted file mode 100644
index 441fdcc..0000000
--- a/node_modules/lodash/flattenDepth.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- toInteger = require('./toInteger');
-
-/**
- * Recursively flatten `array` up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * var array = [1, [2, [3, [4]], 5]];
- *
- * _.flattenDepth(array, 1);
- * // => [1, 2, [3, [4]], 5]
- *
- * _.flattenDepth(array, 2);
- * // => [1, 2, 3, [4], 5]
- */
-function flattenDepth(array, depth) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(array, depth);
-}
-
-module.exports = flattenDepth;
diff --git a/node_modules/lodash/flip.js b/node_modules/lodash/flip.js
deleted file mode 100644
index c28dd78..0000000
--- a/node_modules/lodash/flip.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var createWrap = require('./_createWrap');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_FLIP_FLAG = 512;
-
-/**
- * Creates a function that invokes `func` with arguments reversed.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to flip arguments for.
- * @returns {Function} Returns the new flipped function.
- * @example
- *
- * var flipped = _.flip(function() {
- * return _.toArray(arguments);
- * });
- *
- * flipped('a', 'b', 'c', 'd');
- * // => ['d', 'c', 'b', 'a']
- */
-function flip(func) {
- return createWrap(func, WRAP_FLIP_FLAG);
-}
-
-module.exports = flip;
diff --git a/node_modules/lodash/floor.js b/node_modules/lodash/floor.js
deleted file mode 100644
index ab6dfa2..0000000
--- a/node_modules/lodash/floor.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var createRound = require('./_createRound');
-
-/**
- * Computes `number` rounded down to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round down.
- * @param {number} [precision=0] The precision to round down to.
- * @returns {number} Returns the rounded down number.
- * @example
- *
- * _.floor(4.006);
- * // => 4
- *
- * _.floor(0.046, 2);
- * // => 0.04
- *
- * _.floor(4060, -2);
- * // => 4000
- */
-var floor = createRound('floor');
-
-module.exports = floor;
diff --git a/node_modules/lodash/flow.js b/node_modules/lodash/flow.js
deleted file mode 100644
index 74b6b62..0000000
--- a/node_modules/lodash/flow.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var createFlow = require('./_createFlow');
-
-/**
- * Creates a function that returns the result of invoking the given functions
- * with the `this` binding of the created function, where each successive
- * invocation is supplied the return value of the previous.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {...(Function|Function[])} [funcs] The functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flowRight
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flow([_.add, square]);
- * addSquare(1, 2);
- * // => 9
- */
-var flow = createFlow();
-
-module.exports = flow;
diff --git a/node_modules/lodash/flowRight.js b/node_modules/lodash/flowRight.js
deleted file mode 100644
index 1146141..0000000
--- a/node_modules/lodash/flowRight.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var createFlow = require('./_createFlow');
-
-/**
- * This method is like `_.flow` except that it creates a function that
- * invokes the given functions from right to left.
- *
- * @static
- * @since 3.0.0
- * @memberOf _
- * @category Util
- * @param {...(Function|Function[])} [funcs] The functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flow
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flowRight([square, _.add]);
- * addSquare(1, 2);
- * // => 9
- */
-var flowRight = createFlow(true);
-
-module.exports = flowRight;
diff --git a/node_modules/lodash/forEach.js b/node_modules/lodash/forEach.js
deleted file mode 100644
index c64eaa7..0000000
--- a/node_modules/lodash/forEach.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var arrayEach = require('./_arrayEach'),
- baseEach = require('./_baseEach'),
- castFunction = require('./_castFunction'),
- isArray = require('./isArray');
-
-/**
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * **Note:** As with other "Collections" methods, objects with a "length"
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
- * or `_.forOwn` for object iteration.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias each
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEachRight
- * @example
- *
- * _.forEach([1, 2], function(value) {
- * console.log(value);
- * });
- * // => Logs `1` then `2`.
- *
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
-function forEach(collection, iteratee) {
- var func = isArray(collection) ? arrayEach : baseEach;
- return func(collection, castFunction(iteratee));
-}
-
-module.exports = forEach;
diff --git a/node_modules/lodash/forEachRight.js b/node_modules/lodash/forEachRight.js
deleted file mode 100644
index 7390eba..0000000
--- a/node_modules/lodash/forEachRight.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var arrayEachRight = require('./_arrayEachRight'),
- baseEachRight = require('./_baseEachRight'),
- castFunction = require('./_castFunction'),
- isArray = require('./isArray');
-
-/**
- * This method is like `_.forEach` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @alias eachRight
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEach
- * @example
- *
- * _.forEachRight([1, 2], function(value) {
- * console.log(value);
- * });
- * // => Logs `2` then `1`.
- */
-function forEachRight(collection, iteratee) {
- var func = isArray(collection) ? arrayEachRight : baseEachRight;
- return func(collection, castFunction(iteratee));
-}
-
-module.exports = forEachRight;
diff --git a/node_modules/lodash/forIn.js b/node_modules/lodash/forIn.js
deleted file mode 100644
index 583a596..0000000
--- a/node_modules/lodash/forIn.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseFor = require('./_baseFor'),
- castFunction = require('./_castFunction'),
- keysIn = require('./keysIn');
-
-/**
- * Iterates over own and inherited enumerable string keyed properties of an
- * object and invokes `iteratee` for each property. The iteratee is invoked
- * with three arguments: (value, key, object). Iteratee functions may exit
- * iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forInRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forIn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
- */
-function forIn(object, iteratee) {
- return object == null
- ? object
- : baseFor(object, castFunction(iteratee), keysIn);
-}
-
-module.exports = forIn;
diff --git a/node_modules/lodash/forInRight.js b/node_modules/lodash/forInRight.js
deleted file mode 100644
index 4aedf58..0000000
--- a/node_modules/lodash/forInRight.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseForRight = require('./_baseForRight'),
- castFunction = require('./_castFunction'),
- keysIn = require('./keysIn');
-
-/**
- * This method is like `_.forIn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forIn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forInRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
- */
-function forInRight(object, iteratee) {
- return object == null
- ? object
- : baseForRight(object, castFunction(iteratee), keysIn);
-}
-
-module.exports = forInRight;
diff --git a/node_modules/lodash/forOwn.js b/node_modules/lodash/forOwn.js
deleted file mode 100644
index 94eed84..0000000
--- a/node_modules/lodash/forOwn.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseForOwn = require('./_baseForOwn'),
- castFunction = require('./_castFunction');
-
-/**
- * Iterates over own enumerable string keyed properties of an object and
- * invokes `iteratee` for each property. The iteratee is invoked with three
- * arguments: (value, key, object). Iteratee functions may exit iteration
- * early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwnRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
-function forOwn(object, iteratee) {
- return object && baseForOwn(object, castFunction(iteratee));
-}
-
-module.exports = forOwn;
diff --git a/node_modules/lodash/forOwnRight.js b/node_modules/lodash/forOwnRight.js
deleted file mode 100644
index 86f338f..0000000
--- a/node_modules/lodash/forOwnRight.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseForOwnRight = require('./_baseForOwnRight'),
- castFunction = require('./_castFunction');
-
-/**
- * This method is like `_.forOwn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwnRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
- */
-function forOwnRight(object, iteratee) {
- return object && baseForOwnRight(object, castFunction(iteratee));
-}
-
-module.exports = forOwnRight;
diff --git a/node_modules/lodash/fp.js b/node_modules/lodash/fp.js
deleted file mode 100644
index e372dbb..0000000
--- a/node_modules/lodash/fp.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var _ = require('./lodash.min').runInContext();
-module.exports = require('./fp/_baseConvert')(_, _);
diff --git a/node_modules/lodash/fp/F.js b/node_modules/lodash/fp/F.js
deleted file mode 100644
index a05a63a..0000000
--- a/node_modules/lodash/fp/F.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./stubFalse');
diff --git a/node_modules/lodash/fp/T.js b/node_modules/lodash/fp/T.js
deleted file mode 100644
index e2ba8ea..0000000
--- a/node_modules/lodash/fp/T.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./stubTrue');
diff --git a/node_modules/lodash/fp/__.js b/node_modules/lodash/fp/__.js
deleted file mode 100644
index 4af98de..0000000
--- a/node_modules/lodash/fp/__.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./placeholder');
diff --git a/node_modules/lodash/fp/_baseConvert.js b/node_modules/lodash/fp/_baseConvert.js
deleted file mode 100644
index 9baf8e1..0000000
--- a/node_modules/lodash/fp/_baseConvert.js
+++ /dev/null
@@ -1,569 +0,0 @@
-var mapping = require('./_mapping'),
- fallbackHolder = require('./placeholder');
-
-/** Built-in value reference. */
-var push = Array.prototype.push;
-
-/**
- * Creates a function, with an arity of `n`, that invokes `func` with the
- * arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} n The arity of the new function.
- * @returns {Function} Returns the new function.
- */
-function baseArity(func, n) {
- return n == 2
- ? function(a, b) { return func.apply(undefined, arguments); }
- : function(a) { return func.apply(undefined, arguments); };
-}
-
-/**
- * Creates a function that invokes `func`, with up to `n` arguments, ignoring
- * any additional arguments.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @param {number} n The arity cap.
- * @returns {Function} Returns the new function.
- */
-function baseAry(func, n) {
- return n == 2
- ? function(a, b) { return func(a, b); }
- : function(a) { return func(a); };
-}
-
-/**
- * Creates a clone of `array`.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the cloned array.
- */
-function cloneArray(array) {
- var length = array ? array.length : 0,
- result = Array(length);
-
- while (length--) {
- result[length] = array[length];
- }
- return result;
-}
-
-/**
- * Creates a function that clones a given object using the assignment `func`.
- *
- * @private
- * @param {Function} func The assignment function.
- * @returns {Function} Returns the new cloner function.
- */
-function createCloner(func) {
- return function(object) {
- return func({}, object);
- };
-}
-
-/**
- * A specialized version of `_.spread` which flattens the spread array into
- * the arguments of the invoked `func`.
- *
- * @private
- * @param {Function} func The function to spread arguments over.
- * @param {number} start The start position of the spread.
- * @returns {Function} Returns the new function.
- */
-function flatSpread(func, start) {
- return function() {
- var length = arguments.length,
- lastIndex = length - 1,
- args = Array(length);
-
- while (length--) {
- args[length] = arguments[length];
- }
- var array = args[start],
- otherArgs = args.slice(0, start);
-
- if (array) {
- push.apply(otherArgs, array);
- }
- if (start != lastIndex) {
- push.apply(otherArgs, args.slice(start + 1));
- }
- return func.apply(this, otherArgs);
- };
-}
-
-/**
- * Creates a function that wraps `func` and uses `cloner` to clone the first
- * argument it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} cloner The function to clone arguments.
- * @returns {Function} Returns the new immutable function.
- */
-function wrapImmutable(func, cloner) {
- return function() {
- var length = arguments.length;
- if (!length) {
- return;
- }
- var args = Array(length);
- while (length--) {
- args[length] = arguments[length];
- }
- var result = args[0] = cloner.apply(undefined, args);
- func.apply(undefined, args);
- return result;
- };
-}
-
-/**
- * The base implementation of `convert` which accepts a `util` object of methods
- * required to perform conversions.
- *
- * @param {Object} util The util object.
- * @param {string} name The name of the function to convert.
- * @param {Function} func The function to convert.
- * @param {Object} [options] The options object.
- * @param {boolean} [options.cap=true] Specify capping iteratee arguments.
- * @param {boolean} [options.curry=true] Specify currying.
- * @param {boolean} [options.fixed=true] Specify fixed arity.
- * @param {boolean} [options.immutable=true] Specify immutable operations.
- * @param {boolean} [options.rearg=true] Specify rearranging arguments.
- * @returns {Function|Object} Returns the converted function or object.
- */
-function baseConvert(util, name, func, options) {
- var isLib = typeof name == 'function',
- isObj = name === Object(name);
-
- if (isObj) {
- options = func;
- func = name;
- name = undefined;
- }
- if (func == null) {
- throw new TypeError;
- }
- options || (options = {});
-
- var config = {
- 'cap': 'cap' in options ? options.cap : true,
- 'curry': 'curry' in options ? options.curry : true,
- 'fixed': 'fixed' in options ? options.fixed : true,
- 'immutable': 'immutable' in options ? options.immutable : true,
- 'rearg': 'rearg' in options ? options.rearg : true
- };
-
- var defaultHolder = isLib ? func : fallbackHolder,
- forceCurry = ('curry' in options) && options.curry,
- forceFixed = ('fixed' in options) && options.fixed,
- forceRearg = ('rearg' in options) && options.rearg,
- pristine = isLib ? func.runInContext() : undefined;
-
- var helpers = isLib ? func : {
- 'ary': util.ary,
- 'assign': util.assign,
- 'clone': util.clone,
- 'curry': util.curry,
- 'forEach': util.forEach,
- 'isArray': util.isArray,
- 'isError': util.isError,
- 'isFunction': util.isFunction,
- 'isWeakMap': util.isWeakMap,
- 'iteratee': util.iteratee,
- 'keys': util.keys,
- 'rearg': util.rearg,
- 'toInteger': util.toInteger,
- 'toPath': util.toPath
- };
-
- var ary = helpers.ary,
- assign = helpers.assign,
- clone = helpers.clone,
- curry = helpers.curry,
- each = helpers.forEach,
- isArray = helpers.isArray,
- isError = helpers.isError,
- isFunction = helpers.isFunction,
- isWeakMap = helpers.isWeakMap,
- keys = helpers.keys,
- rearg = helpers.rearg,
- toInteger = helpers.toInteger,
- toPath = helpers.toPath;
-
- var aryMethodKeys = keys(mapping.aryMethod);
-
- var wrappers = {
- 'castArray': function(castArray) {
- return function() {
- var value = arguments[0];
- return isArray(value)
- ? castArray(cloneArray(value))
- : castArray.apply(undefined, arguments);
- };
- },
- 'iteratee': function(iteratee) {
- return function() {
- var func = arguments[0],
- arity = arguments[1],
- result = iteratee(func, arity),
- length = result.length;
-
- if (config.cap && typeof arity == 'number') {
- arity = arity > 2 ? (arity - 2) : 1;
- return (length && length <= arity) ? result : baseAry(result, arity);
- }
- return result;
- };
- },
- 'mixin': function(mixin) {
- return function(source) {
- var func = this;
- if (!isFunction(func)) {
- return mixin(func, Object(source));
- }
- var pairs = [];
- each(keys(source), function(key) {
- if (isFunction(source[key])) {
- pairs.push([key, func.prototype[key]]);
- }
- });
-
- mixin(func, Object(source));
-
- each(pairs, function(pair) {
- var value = pair[1];
- if (isFunction(value)) {
- func.prototype[pair[0]] = value;
- } else {
- delete func.prototype[pair[0]];
- }
- });
- return func;
- };
- },
- 'nthArg': function(nthArg) {
- return function(n) {
- var arity = n < 0 ? 1 : (toInteger(n) + 1);
- return curry(nthArg(n), arity);
- };
- },
- 'rearg': function(rearg) {
- return function(func, indexes) {
- var arity = indexes ? indexes.length : 0;
- return curry(rearg(func, indexes), arity);
- };
- },
- 'runInContext': function(runInContext) {
- return function(context) {
- return baseConvert(util, runInContext(context), options);
- };
- }
- };
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Casts `func` to a function with an arity capped iteratee if needed.
- *
- * @private
- * @param {string} name The name of the function to inspect.
- * @param {Function} func The function to inspect.
- * @returns {Function} Returns the cast function.
- */
- function castCap(name, func) {
- if (config.cap) {
- var indexes = mapping.iterateeRearg[name];
- if (indexes) {
- return iterateeRearg(func, indexes);
- }
- var n = !isLib && mapping.iterateeAry[name];
- if (n) {
- return iterateeAry(func, n);
- }
- }
- return func;
- }
-
- /**
- * Casts `func` to a curried function if needed.
- *
- * @private
- * @param {string} name The name of the function to inspect.
- * @param {Function} func The function to inspect.
- * @param {number} n The arity of `func`.
- * @returns {Function} Returns the cast function.
- */
- function castCurry(name, func, n) {
- return (forceCurry || (config.curry && n > 1))
- ? curry(func, n)
- : func;
- }
-
- /**
- * Casts `func` to a fixed arity function if needed.
- *
- * @private
- * @param {string} name The name of the function to inspect.
- * @param {Function} func The function to inspect.
- * @param {number} n The arity cap.
- * @returns {Function} Returns the cast function.
- */
- function castFixed(name, func, n) {
- if (config.fixed && (forceFixed || !mapping.skipFixed[name])) {
- var data = mapping.methodSpread[name],
- start = data && data.start;
-
- return start === undefined ? ary(func, n) : flatSpread(func, start);
- }
- return func;
- }
-
- /**
- * Casts `func` to an rearged function if needed.
- *
- * @private
- * @param {string} name The name of the function to inspect.
- * @param {Function} func The function to inspect.
- * @param {number} n The arity of `func`.
- * @returns {Function} Returns the cast function.
- */
- function castRearg(name, func, n) {
- return (config.rearg && n > 1 && (forceRearg || !mapping.skipRearg[name]))
- ? rearg(func, mapping.methodRearg[name] || mapping.aryRearg[n])
- : func;
- }
-
- /**
- * Creates a clone of `object` by `path`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {Array|string} path The path to clone by.
- * @returns {Object} Returns the cloned object.
- */
- function cloneByPath(object, path) {
- path = toPath(path);
-
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- result = clone(Object(object)),
- nested = result;
-
- while (nested != null && ++index < length) {
- var key = path[index],
- value = nested[key];
-
- if (value != null &&
- !(isFunction(value) || isError(value) || isWeakMap(value))) {
- nested[key] = clone(index == lastIndex ? value : Object(value));
- }
- nested = nested[key];
- }
- return result;
- }
-
- /**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied.
- *
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function} Returns the converted `lodash`.
- */
- function convertLib(options) {
- return _.runInContext.convert(options)(undefined);
- }
-
- /**
- * Create a converter function for `func` of `name`.
- *
- * @param {string} name The name of the function to convert.
- * @param {Function} func The function to convert.
- * @returns {Function} Returns the new converter function.
- */
- function createConverter(name, func) {
- var realName = mapping.aliasToReal[name] || name,
- methodName = mapping.remap[realName] || realName,
- oldOptions = options;
-
- return function(options) {
- var newUtil = isLib ? pristine : helpers,
- newFunc = isLib ? pristine[methodName] : func,
- newOptions = assign(assign({}, oldOptions), options);
-
- return baseConvert(newUtil, realName, newFunc, newOptions);
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke its iteratee, with up to `n`
- * arguments, ignoring any additional arguments.
- *
- * @private
- * @param {Function} func The function to cap iteratee arguments for.
- * @param {number} n The arity cap.
- * @returns {Function} Returns the new function.
- */
- function iterateeAry(func, n) {
- return overArg(func, function(func) {
- return typeof func == 'function' ? baseAry(func, n) : func;
- });
- }
-
- /**
- * Creates a function that wraps `func` to invoke its iteratee with arguments
- * arranged according to the specified `indexes` where the argument value at
- * the first index is provided as the first argument, the argument value at
- * the second index is provided as the second argument, and so on.
- *
- * @private
- * @param {Function} func The function to rearrange iteratee arguments for.
- * @param {number[]} indexes The arranged argument indexes.
- * @returns {Function} Returns the new function.
- */
- function iterateeRearg(func, indexes) {
- return overArg(func, function(func) {
- var n = indexes.length;
- return baseArity(rearg(baseAry(func, n), indexes), n);
- });
- }
-
- /**
- * Creates a function that invokes `func` with its first argument transformed.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} transform The argument transform.
- * @returns {Function} Returns the new function.
- */
- function overArg(func, transform) {
- return function() {
- var length = arguments.length;
- if (!length) {
- return func();
- }
- var args = Array(length);
- while (length--) {
- args[length] = arguments[length];
- }
- var index = config.rearg ? 0 : (length - 1);
- args[index] = transform(args[index]);
- return func.apply(undefined, args);
- };
- }
-
- /**
- * Creates a function that wraps `func` and applys the conversions
- * rules by `name`.
- *
- * @private
- * @param {string} name The name of the function to wrap.
- * @param {Function} func The function to wrap.
- * @returns {Function} Returns the converted function.
- */
- function wrap(name, func, placeholder) {
- var result,
- realName = mapping.aliasToReal[name] || name,
- wrapped = func,
- wrapper = wrappers[realName];
-
- if (wrapper) {
- wrapped = wrapper(func);
- }
- else if (config.immutable) {
- if (mapping.mutate.array[realName]) {
- wrapped = wrapImmutable(func, cloneArray);
- }
- else if (mapping.mutate.object[realName]) {
- wrapped = wrapImmutable(func, createCloner(func));
- }
- else if (mapping.mutate.set[realName]) {
- wrapped = wrapImmutable(func, cloneByPath);
- }
- }
- each(aryMethodKeys, function(aryKey) {
- each(mapping.aryMethod[aryKey], function(otherName) {
- if (realName == otherName) {
- var data = mapping.methodSpread[realName],
- afterRearg = data && data.afterRearg;
-
- result = afterRearg
- ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey)
- : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey);
-
- result = castCap(realName, result);
- result = castCurry(realName, result, aryKey);
- return false;
- }
- });
- return !result;
- });
-
- result || (result = wrapped);
- if (result == func) {
- result = forceCurry ? curry(result, 1) : function() {
- return func.apply(this, arguments);
- };
- }
- result.convert = createConverter(realName, func);
- result.placeholder = func.placeholder = placeholder;
-
- return result;
- }
-
- /*--------------------------------------------------------------------------*/
-
- if (!isObj) {
- return wrap(name, func, defaultHolder);
- }
- var _ = func;
-
- // Convert methods by ary cap.
- var pairs = [];
- each(aryMethodKeys, function(aryKey) {
- each(mapping.aryMethod[aryKey], function(key) {
- var func = _[mapping.remap[key] || key];
- if (func) {
- pairs.push([key, wrap(key, func, _)]);
- }
- });
- });
-
- // Convert remaining methods.
- each(keys(_), function(key) {
- var func = _[key];
- if (typeof func == 'function') {
- var length = pairs.length;
- while (length--) {
- if (pairs[length][0] == key) {
- return;
- }
- }
- func.convert = createConverter(key, func);
- pairs.push([key, func]);
- }
- });
-
- // Assign to `_` leaving `_.prototype` unchanged to allow chaining.
- each(pairs, function(pair) {
- _[pair[0]] = pair[1];
- });
-
- _.convert = convertLib;
- _.placeholder = _;
-
- // Assign aliases.
- each(keys(_), function(key) {
- each(mapping.realToAlias[key] || [], function(alias) {
- _[alias] = _[key];
- });
- });
-
- return _;
-}
-
-module.exports = baseConvert;
diff --git a/node_modules/lodash/fp/_convertBrowser.js b/node_modules/lodash/fp/_convertBrowser.js
deleted file mode 100644
index bde030d..0000000
--- a/node_modules/lodash/fp/_convertBrowser.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseConvert = require('./_baseConvert');
-
-/**
- * Converts `lodash` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied.
- *
- * @param {Function} lodash The lodash function to convert.
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function} Returns the converted `lodash`.
- */
-function browserConvert(lodash, options) {
- return baseConvert(lodash, lodash, options);
-}
-
-if (typeof _ == 'function' && typeof _.runInContext == 'function') {
- _ = browserConvert(_.runInContext());
-}
-module.exports = browserConvert;
diff --git a/node_modules/lodash/fp/_falseOptions.js b/node_modules/lodash/fp/_falseOptions.js
deleted file mode 100644
index 773235e..0000000
--- a/node_modules/lodash/fp/_falseOptions.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
- 'cap': false,
- 'curry': false,
- 'fixed': false,
- 'immutable': false,
- 'rearg': false
-};
diff --git a/node_modules/lodash/fp/_mapping.js b/node_modules/lodash/fp/_mapping.js
deleted file mode 100644
index a642ec0..0000000
--- a/node_modules/lodash/fp/_mapping.js
+++ /dev/null
@@ -1,358 +0,0 @@
-/** Used to map aliases to their real names. */
-exports.aliasToReal = {
-
- // Lodash aliases.
- 'each': 'forEach',
- 'eachRight': 'forEachRight',
- 'entries': 'toPairs',
- 'entriesIn': 'toPairsIn',
- 'extend': 'assignIn',
- 'extendAll': 'assignInAll',
- 'extendAllWith': 'assignInAllWith',
- 'extendWith': 'assignInWith',
- 'first': 'head',
-
- // Methods that are curried variants of others.
- 'conforms': 'conformsTo',
- 'matches': 'isMatch',
- 'property': 'get',
-
- // Ramda aliases.
- '__': 'placeholder',
- 'F': 'stubFalse',
- 'T': 'stubTrue',
- 'all': 'every',
- 'allPass': 'overEvery',
- 'always': 'constant',
- 'any': 'some',
- 'anyPass': 'overSome',
- 'apply': 'spread',
- 'assoc': 'set',
- 'assocPath': 'set',
- 'complement': 'negate',
- 'compose': 'flowRight',
- 'contains': 'includes',
- 'dissoc': 'unset',
- 'dissocPath': 'unset',
- 'dropLast': 'dropRight',
- 'dropLastWhile': 'dropRightWhile',
- 'equals': 'isEqual',
- 'identical': 'eq',
- 'indexBy': 'keyBy',
- 'init': 'initial',
- 'invertObj': 'invert',
- 'juxt': 'over',
- 'omitAll': 'omit',
- 'nAry': 'ary',
- 'path': 'get',
- 'pathEq': 'matchesProperty',
- 'pathOr': 'getOr',
- 'paths': 'at',
- 'pickAll': 'pick',
- 'pipe': 'flow',
- 'pluck': 'map',
- 'prop': 'get',
- 'propEq': 'matchesProperty',
- 'propOr': 'getOr',
- 'props': 'at',
- 'symmetricDifference': 'xor',
- 'symmetricDifferenceBy': 'xorBy',
- 'symmetricDifferenceWith': 'xorWith',
- 'takeLast': 'takeRight',
- 'takeLastWhile': 'takeRightWhile',
- 'unapply': 'rest',
- 'unnest': 'flatten',
- 'useWith': 'overArgs',
- 'where': 'conformsTo',
- 'whereEq': 'isMatch',
- 'zipObj': 'zipObject'
-};
-
-/** Used to map ary to method names. */
-exports.aryMethod = {
- '1': [
- 'assignAll', 'assignInAll', 'attempt', 'castArray', 'ceil', 'create',
- 'curry', 'curryRight', 'defaultsAll', 'defaultsDeepAll', 'floor', 'flow',
- 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method', 'mergeAll',
- 'methodOf', 'mixin', 'nthArg', 'over', 'overEvery', 'overSome','rest', 'reverse',
- 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
- 'uniqueId', 'words', 'zipAll'
- ],
- '2': [
- 'add', 'after', 'ary', 'assign', 'assignAllWith', 'assignIn', 'assignInAllWith',
- 'at', 'before', 'bind', 'bindAll', 'bindKey', 'chunk', 'cloneDeepWith',
- 'cloneWith', 'concat', 'conformsTo', 'countBy', 'curryN', 'curryRightN',
- 'debounce', 'defaults', 'defaultsDeep', 'defaultTo', 'delay', 'difference',
- 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq',
- 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex',
- 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth', 'forEach',
- 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get',
- 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection',
- 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy',
- 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty',
- 'maxBy', 'meanBy', 'merge', 'mergeAllWith', 'minBy', 'multiply', 'nth', 'omit',
- 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial',
- 'partialRight', 'partition', 'pick', 'pickBy', 'propertyOf', 'pull', 'pullAll',
- 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
- 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
- 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
- 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
- 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
- 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
- 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
- 'zipObjectDeep'
- ],
- '3': [
- 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
- 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
- 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
- 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
- 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
- 'padCharsStart', 'pullAllBy', 'pullAllWith', 'rangeStep', 'rangeStepRight',
- 'reduce', 'reduceRight', 'replace', 'set', 'slice', 'sortedIndexBy',
- 'sortedLastIndexBy', 'transform', 'unionBy', 'unionWith', 'update', 'xorBy',
- 'xorWith', 'zipWith'
- ],
- '4': [
- 'fill', 'setWith', 'updateWith'
- ]
-};
-
-/** Used to map ary to rearg configs. */
-exports.aryRearg = {
- '2': [1, 0],
- '3': [2, 0, 1],
- '4': [3, 2, 0, 1]
-};
-
-/** Used to map method names to their iteratee ary. */
-exports.iterateeAry = {
- 'dropRightWhile': 1,
- 'dropWhile': 1,
- 'every': 1,
- 'filter': 1,
- 'find': 1,
- 'findFrom': 1,
- 'findIndex': 1,
- 'findIndexFrom': 1,
- 'findKey': 1,
- 'findLast': 1,
- 'findLastFrom': 1,
- 'findLastIndex': 1,
- 'findLastIndexFrom': 1,
- 'findLastKey': 1,
- 'flatMap': 1,
- 'flatMapDeep': 1,
- 'flatMapDepth': 1,
- 'forEach': 1,
- 'forEachRight': 1,
- 'forIn': 1,
- 'forInRight': 1,
- 'forOwn': 1,
- 'forOwnRight': 1,
- 'map': 1,
- 'mapKeys': 1,
- 'mapValues': 1,
- 'partition': 1,
- 'reduce': 2,
- 'reduceRight': 2,
- 'reject': 1,
- 'remove': 1,
- 'some': 1,
- 'takeRightWhile': 1,
- 'takeWhile': 1,
- 'times': 1,
- 'transform': 2
-};
-
-/** Used to map method names to iteratee rearg configs. */
-exports.iterateeRearg = {
- 'mapKeys': [1],
- 'reduceRight': [1, 0]
-};
-
-/** Used to map method names to rearg configs. */
-exports.methodRearg = {
- 'assignInAllWith': [1, 0],
- 'assignInWith': [1, 2, 0],
- 'assignAllWith': [1, 0],
- 'assignWith': [1, 2, 0],
- 'differenceBy': [1, 2, 0],
- 'differenceWith': [1, 2, 0],
- 'getOr': [2, 1, 0],
- 'intersectionBy': [1, 2, 0],
- 'intersectionWith': [1, 2, 0],
- 'isEqualWith': [1, 2, 0],
- 'isMatchWith': [2, 1, 0],
- 'mergeAllWith': [1, 0],
- 'mergeWith': [1, 2, 0],
- 'padChars': [2, 1, 0],
- 'padCharsEnd': [2, 1, 0],
- 'padCharsStart': [2, 1, 0],
- 'pullAllBy': [2, 1, 0],
- 'pullAllWith': [2, 1, 0],
- 'rangeStep': [1, 2, 0],
- 'rangeStepRight': [1, 2, 0],
- 'setWith': [3, 1, 2, 0],
- 'sortedIndexBy': [2, 1, 0],
- 'sortedLastIndexBy': [2, 1, 0],
- 'unionBy': [1, 2, 0],
- 'unionWith': [1, 2, 0],
- 'updateWith': [3, 1, 2, 0],
- 'xorBy': [1, 2, 0],
- 'xorWith': [1, 2, 0],
- 'zipWith': [1, 2, 0]
-};
-
-/** Used to map method names to spread configs. */
-exports.methodSpread = {
- 'assignAll': { 'start': 0 },
- 'assignAllWith': { 'start': 0 },
- 'assignInAll': { 'start': 0 },
- 'assignInAllWith': { 'start': 0 },
- 'defaultsAll': { 'start': 0 },
- 'defaultsDeepAll': { 'start': 0 },
- 'invokeArgs': { 'start': 2 },
- 'invokeArgsMap': { 'start': 2 },
- 'mergeAll': { 'start': 0 },
- 'mergeAllWith': { 'start': 0 },
- 'partial': { 'start': 1 },
- 'partialRight': { 'start': 1 },
- 'without': { 'start': 1 },
- 'zipAll': { 'start': 0 }
-};
-
-/** Used to identify methods which mutate arrays or objects. */
-exports.mutate = {
- 'array': {
- 'fill': true,
- 'pull': true,
- 'pullAll': true,
- 'pullAllBy': true,
- 'pullAllWith': true,
- 'pullAt': true,
- 'remove': true,
- 'reverse': true
- },
- 'object': {
- 'assign': true,
- 'assignAll': true,
- 'assignAllWith': true,
- 'assignIn': true,
- 'assignInAll': true,
- 'assignInAllWith': true,
- 'assignInWith': true,
- 'assignWith': true,
- 'defaults': true,
- 'defaultsAll': true,
- 'defaultsDeep': true,
- 'defaultsDeepAll': true,
- 'merge': true,
- 'mergeAll': true,
- 'mergeAllWith': true,
- 'mergeWith': true,
- },
- 'set': {
- 'set': true,
- 'setWith': true,
- 'unset': true,
- 'update': true,
- 'updateWith': true
- }
-};
-
-/** Used to map real names to their aliases. */
-exports.realToAlias = (function() {
- var hasOwnProperty = Object.prototype.hasOwnProperty,
- object = exports.aliasToReal,
- result = {};
-
- for (var key in object) {
- var value = object[key];
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
- }
- return result;
-}());
-
-/** Used to map method names to other names. */
-exports.remap = {
- 'assignAll': 'assign',
- 'assignAllWith': 'assignWith',
- 'assignInAll': 'assignIn',
- 'assignInAllWith': 'assignInWith',
- 'curryN': 'curry',
- 'curryRightN': 'curryRight',
- 'defaultsAll': 'defaults',
- 'defaultsDeepAll': 'defaultsDeep',
- 'findFrom': 'find',
- 'findIndexFrom': 'findIndex',
- 'findLastFrom': 'findLast',
- 'findLastIndexFrom': 'findLastIndex',
- 'getOr': 'get',
- 'includesFrom': 'includes',
- 'indexOfFrom': 'indexOf',
- 'invokeArgs': 'invoke',
- 'invokeArgsMap': 'invokeMap',
- 'lastIndexOfFrom': 'lastIndexOf',
- 'mergeAll': 'merge',
- 'mergeAllWith': 'mergeWith',
- 'padChars': 'pad',
- 'padCharsEnd': 'padEnd',
- 'padCharsStart': 'padStart',
- 'propertyOf': 'get',
- 'rangeStep': 'range',
- 'rangeStepRight': 'rangeRight',
- 'restFrom': 'rest',
- 'spreadFrom': 'spread',
- 'trimChars': 'trim',
- 'trimCharsEnd': 'trimEnd',
- 'trimCharsStart': 'trimStart',
- 'zipAll': 'zip'
-};
-
-/** Used to track methods that skip fixing their arity. */
-exports.skipFixed = {
- 'castArray': true,
- 'flow': true,
- 'flowRight': true,
- 'iteratee': true,
- 'mixin': true,
- 'rearg': true,
- 'runInContext': true
-};
-
-/** Used to track methods that skip rearranging arguments. */
-exports.skipRearg = {
- 'add': true,
- 'assign': true,
- 'assignIn': true,
- 'bind': true,
- 'bindKey': true,
- 'concat': true,
- 'difference': true,
- 'divide': true,
- 'eq': true,
- 'gt': true,
- 'gte': true,
- 'isEqual': true,
- 'lt': true,
- 'lte': true,
- 'matchesProperty': true,
- 'merge': true,
- 'multiply': true,
- 'overArgs': true,
- 'partial': true,
- 'partialRight': true,
- 'propertyOf': true,
- 'random': true,
- 'range': true,
- 'rangeRight': true,
- 'subtract': true,
- 'zip': true,
- 'zipObject': true,
- 'zipObjectDeep': true
-};
diff --git a/node_modules/lodash/fp/_util.js b/node_modules/lodash/fp/_util.js
deleted file mode 100644
index 1dbf36f..0000000
--- a/node_modules/lodash/fp/_util.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = {
- 'ary': require('../ary'),
- 'assign': require('../_baseAssign'),
- 'clone': require('../clone'),
- 'curry': require('../curry'),
- 'forEach': require('../_arrayEach'),
- 'isArray': require('../isArray'),
- 'isError': require('../isError'),
- 'isFunction': require('../isFunction'),
- 'isWeakMap': require('../isWeakMap'),
- 'iteratee': require('../iteratee'),
- 'keys': require('../_baseKeys'),
- 'rearg': require('../rearg'),
- 'toInteger': require('../toInteger'),
- 'toPath': require('../toPath')
-};
diff --git a/node_modules/lodash/fp/add.js b/node_modules/lodash/fp/add.js
deleted file mode 100644
index 816eeec..0000000
--- a/node_modules/lodash/fp/add.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('add', require('../add'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/after.js b/node_modules/lodash/fp/after.js
deleted file mode 100644
index 21a0167..0000000
--- a/node_modules/lodash/fp/after.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('after', require('../after'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/all.js b/node_modules/lodash/fp/all.js
deleted file mode 100644
index d0839f7..0000000
--- a/node_modules/lodash/fp/all.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./every');
diff --git a/node_modules/lodash/fp/allPass.js b/node_modules/lodash/fp/allPass.js
deleted file mode 100644
index 79b73ef..0000000
--- a/node_modules/lodash/fp/allPass.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./overEvery');
diff --git a/node_modules/lodash/fp/always.js b/node_modules/lodash/fp/always.js
deleted file mode 100644
index 9887703..0000000
--- a/node_modules/lodash/fp/always.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./constant');
diff --git a/node_modules/lodash/fp/any.js b/node_modules/lodash/fp/any.js
deleted file mode 100644
index 900ac25..0000000
--- a/node_modules/lodash/fp/any.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./some');
diff --git a/node_modules/lodash/fp/anyPass.js b/node_modules/lodash/fp/anyPass.js
deleted file mode 100644
index 2774ab3..0000000
--- a/node_modules/lodash/fp/anyPass.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./overSome');
diff --git a/node_modules/lodash/fp/apply.js b/node_modules/lodash/fp/apply.js
deleted file mode 100644
index 2b75712..0000000
--- a/node_modules/lodash/fp/apply.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./spread');
diff --git a/node_modules/lodash/fp/array.js b/node_modules/lodash/fp/array.js
deleted file mode 100644
index fe939c2..0000000
--- a/node_modules/lodash/fp/array.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../array'));
diff --git a/node_modules/lodash/fp/ary.js b/node_modules/lodash/fp/ary.js
deleted file mode 100644
index 8edf187..0000000
--- a/node_modules/lodash/fp/ary.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('ary', require('../ary'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assign.js b/node_modules/lodash/fp/assign.js
deleted file mode 100644
index 23f47af..0000000
--- a/node_modules/lodash/fp/assign.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assign', require('../assign'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assignAll.js b/node_modules/lodash/fp/assignAll.js
deleted file mode 100644
index b1d36c7..0000000
--- a/node_modules/lodash/fp/assignAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assignAll', require('../assign'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assignAllWith.js b/node_modules/lodash/fp/assignAllWith.js
deleted file mode 100644
index 21e836e..0000000
--- a/node_modules/lodash/fp/assignAllWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assignAllWith', require('../assignWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assignIn.js b/node_modules/lodash/fp/assignIn.js
deleted file mode 100644
index 6e7c65f..0000000
--- a/node_modules/lodash/fp/assignIn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assignIn', require('../assignIn'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assignInAll.js b/node_modules/lodash/fp/assignInAll.js
deleted file mode 100644
index 7ba75db..0000000
--- a/node_modules/lodash/fp/assignInAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assignInAll', require('../assignIn'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assignInAllWith.js b/node_modules/lodash/fp/assignInAllWith.js
deleted file mode 100644
index e766903..0000000
--- a/node_modules/lodash/fp/assignInAllWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assignInAllWith', require('../assignInWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assignInWith.js b/node_modules/lodash/fp/assignInWith.js
deleted file mode 100644
index acb5923..0000000
--- a/node_modules/lodash/fp/assignInWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assignInWith', require('../assignInWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assignWith.js b/node_modules/lodash/fp/assignWith.js
deleted file mode 100644
index eb92521..0000000
--- a/node_modules/lodash/fp/assignWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('assignWith', require('../assignWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/assoc.js b/node_modules/lodash/fp/assoc.js
deleted file mode 100644
index 7648820..0000000
--- a/node_modules/lodash/fp/assoc.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./set');
diff --git a/node_modules/lodash/fp/assocPath.js b/node_modules/lodash/fp/assocPath.js
deleted file mode 100644
index 7648820..0000000
--- a/node_modules/lodash/fp/assocPath.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./set');
diff --git a/node_modules/lodash/fp/at.js b/node_modules/lodash/fp/at.js
deleted file mode 100644
index cc39d25..0000000
--- a/node_modules/lodash/fp/at.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('at', require('../at'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/attempt.js b/node_modules/lodash/fp/attempt.js
deleted file mode 100644
index 26ca42e..0000000
--- a/node_modules/lodash/fp/attempt.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('attempt', require('../attempt'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/before.js b/node_modules/lodash/fp/before.js
deleted file mode 100644
index 7a2de65..0000000
--- a/node_modules/lodash/fp/before.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('before', require('../before'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/bind.js b/node_modules/lodash/fp/bind.js
deleted file mode 100644
index 5cbe4f3..0000000
--- a/node_modules/lodash/fp/bind.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('bind', require('../bind'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/bindAll.js b/node_modules/lodash/fp/bindAll.js
deleted file mode 100644
index 6b4a4a0..0000000
--- a/node_modules/lodash/fp/bindAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('bindAll', require('../bindAll'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/bindKey.js b/node_modules/lodash/fp/bindKey.js
deleted file mode 100644
index 6a46c6b..0000000
--- a/node_modules/lodash/fp/bindKey.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('bindKey', require('../bindKey'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/camelCase.js b/node_modules/lodash/fp/camelCase.js
deleted file mode 100644
index 87b77b4..0000000
--- a/node_modules/lodash/fp/camelCase.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('camelCase', require('../camelCase'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/capitalize.js b/node_modules/lodash/fp/capitalize.js
deleted file mode 100644
index cac74e1..0000000
--- a/node_modules/lodash/fp/capitalize.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('capitalize', require('../capitalize'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/castArray.js b/node_modules/lodash/fp/castArray.js
deleted file mode 100644
index 8681c09..0000000
--- a/node_modules/lodash/fp/castArray.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('castArray', require('../castArray'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/ceil.js b/node_modules/lodash/fp/ceil.js
deleted file mode 100644
index f416b72..0000000
--- a/node_modules/lodash/fp/ceil.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('ceil', require('../ceil'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/chain.js b/node_modules/lodash/fp/chain.js
deleted file mode 100644
index 604fe39..0000000
--- a/node_modules/lodash/fp/chain.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('chain', require('../chain'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/chunk.js b/node_modules/lodash/fp/chunk.js
deleted file mode 100644
index 871ab08..0000000
--- a/node_modules/lodash/fp/chunk.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('chunk', require('../chunk'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/clamp.js b/node_modules/lodash/fp/clamp.js
deleted file mode 100644
index 3b06c01..0000000
--- a/node_modules/lodash/fp/clamp.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('clamp', require('../clamp'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/clone.js b/node_modules/lodash/fp/clone.js
deleted file mode 100644
index cadb59c..0000000
--- a/node_modules/lodash/fp/clone.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('clone', require('../clone'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/cloneDeep.js b/node_modules/lodash/fp/cloneDeep.js
deleted file mode 100644
index a6107aa..0000000
--- a/node_modules/lodash/fp/cloneDeep.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('cloneDeep', require('../cloneDeep'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/cloneDeepWith.js b/node_modules/lodash/fp/cloneDeepWith.js
deleted file mode 100644
index 6f01e44..0000000
--- a/node_modules/lodash/fp/cloneDeepWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('cloneDeepWith', require('../cloneDeepWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/cloneWith.js b/node_modules/lodash/fp/cloneWith.js
deleted file mode 100644
index aa88578..0000000
--- a/node_modules/lodash/fp/cloneWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('cloneWith', require('../cloneWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/collection.js b/node_modules/lodash/fp/collection.js
deleted file mode 100644
index fc8b328..0000000
--- a/node_modules/lodash/fp/collection.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../collection'));
diff --git a/node_modules/lodash/fp/commit.js b/node_modules/lodash/fp/commit.js
deleted file mode 100644
index 130a894..0000000
--- a/node_modules/lodash/fp/commit.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('commit', require('../commit'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/compact.js b/node_modules/lodash/fp/compact.js
deleted file mode 100644
index ce8f7a1..0000000
--- a/node_modules/lodash/fp/compact.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('compact', require('../compact'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/complement.js b/node_modules/lodash/fp/complement.js
deleted file mode 100644
index 93eb462..0000000
--- a/node_modules/lodash/fp/complement.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./negate');
diff --git a/node_modules/lodash/fp/compose.js b/node_modules/lodash/fp/compose.js
deleted file mode 100644
index 1954e94..0000000
--- a/node_modules/lodash/fp/compose.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./flowRight');
diff --git a/node_modules/lodash/fp/concat.js b/node_modules/lodash/fp/concat.js
deleted file mode 100644
index e59346a..0000000
--- a/node_modules/lodash/fp/concat.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('concat', require('../concat'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/cond.js b/node_modules/lodash/fp/cond.js
deleted file mode 100644
index 6a0120e..0000000
--- a/node_modules/lodash/fp/cond.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('cond', require('../cond'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/conforms.js b/node_modules/lodash/fp/conforms.js
deleted file mode 100644
index 3247f64..0000000
--- a/node_modules/lodash/fp/conforms.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./conformsTo');
diff --git a/node_modules/lodash/fp/conformsTo.js b/node_modules/lodash/fp/conformsTo.js
deleted file mode 100644
index aa7f41e..0000000
--- a/node_modules/lodash/fp/conformsTo.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('conformsTo', require('../conformsTo'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/constant.js b/node_modules/lodash/fp/constant.js
deleted file mode 100644
index 9e406fc..0000000
--- a/node_modules/lodash/fp/constant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('constant', require('../constant'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/contains.js b/node_modules/lodash/fp/contains.js
deleted file mode 100644
index 594722a..0000000
--- a/node_modules/lodash/fp/contains.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./includes');
diff --git a/node_modules/lodash/fp/convert.js b/node_modules/lodash/fp/convert.js
deleted file mode 100644
index 4795dc4..0000000
--- a/node_modules/lodash/fp/convert.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var baseConvert = require('./_baseConvert'),
- util = require('./_util');
-
-/**
- * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
- * version with conversion `options` applied. If `name` is an object its methods
- * will be converted.
- *
- * @param {string} name The name of the function to wrap.
- * @param {Function} [func] The function to wrap.
- * @param {Object} [options] The options object. See `baseConvert` for more details.
- * @returns {Function|Object} Returns the converted function or object.
- */
-function convert(name, func, options) {
- return baseConvert(util, name, func, options);
-}
-
-module.exports = convert;
diff --git a/node_modules/lodash/fp/countBy.js b/node_modules/lodash/fp/countBy.js
deleted file mode 100644
index dfa4643..0000000
--- a/node_modules/lodash/fp/countBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('countBy', require('../countBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/create.js b/node_modules/lodash/fp/create.js
deleted file mode 100644
index 752025f..0000000
--- a/node_modules/lodash/fp/create.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('create', require('../create'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/curry.js b/node_modules/lodash/fp/curry.js
deleted file mode 100644
index b0b4168..0000000
--- a/node_modules/lodash/fp/curry.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('curry', require('../curry'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/curryN.js b/node_modules/lodash/fp/curryN.js
deleted file mode 100644
index 2ae7d00..0000000
--- a/node_modules/lodash/fp/curryN.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('curryN', require('../curry'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/curryRight.js b/node_modules/lodash/fp/curryRight.js
deleted file mode 100644
index cb619eb..0000000
--- a/node_modules/lodash/fp/curryRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('curryRight', require('../curryRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/curryRightN.js b/node_modules/lodash/fp/curryRightN.js
deleted file mode 100644
index 2495afc..0000000
--- a/node_modules/lodash/fp/curryRightN.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('curryRightN', require('../curryRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/date.js b/node_modules/lodash/fp/date.js
deleted file mode 100644
index 82cb952..0000000
--- a/node_modules/lodash/fp/date.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../date'));
diff --git a/node_modules/lodash/fp/debounce.js b/node_modules/lodash/fp/debounce.js
deleted file mode 100644
index 2612229..0000000
--- a/node_modules/lodash/fp/debounce.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('debounce', require('../debounce'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/deburr.js b/node_modules/lodash/fp/deburr.js
deleted file mode 100644
index 96463ab..0000000
--- a/node_modules/lodash/fp/deburr.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('deburr', require('../deburr'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/defaultTo.js b/node_modules/lodash/fp/defaultTo.js
deleted file mode 100644
index d6b52a4..0000000
--- a/node_modules/lodash/fp/defaultTo.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('defaultTo', require('../defaultTo'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/defaults.js b/node_modules/lodash/fp/defaults.js
deleted file mode 100644
index e1a8e6e..0000000
--- a/node_modules/lodash/fp/defaults.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('defaults', require('../defaults'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/defaultsAll.js b/node_modules/lodash/fp/defaultsAll.js
deleted file mode 100644
index 238fcc3..0000000
--- a/node_modules/lodash/fp/defaultsAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('defaultsAll', require('../defaults'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/defaultsDeep.js b/node_modules/lodash/fp/defaultsDeep.js
deleted file mode 100644
index 1f172ff..0000000
--- a/node_modules/lodash/fp/defaultsDeep.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('defaultsDeep', require('../defaultsDeep'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/defaultsDeepAll.js b/node_modules/lodash/fp/defaultsDeepAll.js
deleted file mode 100644
index 6835f2f..0000000
--- a/node_modules/lodash/fp/defaultsDeepAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('defaultsDeepAll', require('../defaultsDeep'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/defer.js b/node_modules/lodash/fp/defer.js
deleted file mode 100644
index ec7990f..0000000
--- a/node_modules/lodash/fp/defer.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('defer', require('../defer'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/delay.js b/node_modules/lodash/fp/delay.js
deleted file mode 100644
index 556dbd5..0000000
--- a/node_modules/lodash/fp/delay.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('delay', require('../delay'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/difference.js b/node_modules/lodash/fp/difference.js
deleted file mode 100644
index 2d03765..0000000
--- a/node_modules/lodash/fp/difference.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('difference', require('../difference'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/differenceBy.js b/node_modules/lodash/fp/differenceBy.js
deleted file mode 100644
index 2f91491..0000000
--- a/node_modules/lodash/fp/differenceBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('differenceBy', require('../differenceBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/differenceWith.js b/node_modules/lodash/fp/differenceWith.js
deleted file mode 100644
index bcf5ad2..0000000
--- a/node_modules/lodash/fp/differenceWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('differenceWith', require('../differenceWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/dissoc.js b/node_modules/lodash/fp/dissoc.js
deleted file mode 100644
index 7ec7be1..0000000
--- a/node_modules/lodash/fp/dissoc.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./unset');
diff --git a/node_modules/lodash/fp/dissocPath.js b/node_modules/lodash/fp/dissocPath.js
deleted file mode 100644
index 7ec7be1..0000000
--- a/node_modules/lodash/fp/dissocPath.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./unset');
diff --git a/node_modules/lodash/fp/divide.js b/node_modules/lodash/fp/divide.js
deleted file mode 100644
index 82048c5..0000000
--- a/node_modules/lodash/fp/divide.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('divide', require('../divide'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/drop.js b/node_modules/lodash/fp/drop.js
deleted file mode 100644
index 2fa9b4f..0000000
--- a/node_modules/lodash/fp/drop.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('drop', require('../drop'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/dropLast.js b/node_modules/lodash/fp/dropLast.js
deleted file mode 100644
index 174e525..0000000
--- a/node_modules/lodash/fp/dropLast.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./dropRight');
diff --git a/node_modules/lodash/fp/dropLastWhile.js b/node_modules/lodash/fp/dropLastWhile.js
deleted file mode 100644
index be2a9d2..0000000
--- a/node_modules/lodash/fp/dropLastWhile.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./dropRightWhile');
diff --git a/node_modules/lodash/fp/dropRight.js b/node_modules/lodash/fp/dropRight.js
deleted file mode 100644
index e98881f..0000000
--- a/node_modules/lodash/fp/dropRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('dropRight', require('../dropRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/dropRightWhile.js b/node_modules/lodash/fp/dropRightWhile.js
deleted file mode 100644
index cacaa70..0000000
--- a/node_modules/lodash/fp/dropRightWhile.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('dropRightWhile', require('../dropRightWhile'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/dropWhile.js b/node_modules/lodash/fp/dropWhile.js
deleted file mode 100644
index 285f864..0000000
--- a/node_modules/lodash/fp/dropWhile.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('dropWhile', require('../dropWhile'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/each.js b/node_modules/lodash/fp/each.js
deleted file mode 100644
index 8800f42..0000000
--- a/node_modules/lodash/fp/each.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./forEach');
diff --git a/node_modules/lodash/fp/eachRight.js b/node_modules/lodash/fp/eachRight.js
deleted file mode 100644
index 3252b2a..0000000
--- a/node_modules/lodash/fp/eachRight.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./forEachRight');
diff --git a/node_modules/lodash/fp/endsWith.js b/node_modules/lodash/fp/endsWith.js
deleted file mode 100644
index 17dc2a4..0000000
--- a/node_modules/lodash/fp/endsWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('endsWith', require('../endsWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/entries.js b/node_modules/lodash/fp/entries.js
deleted file mode 100644
index 7a88df2..0000000
--- a/node_modules/lodash/fp/entries.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./toPairs');
diff --git a/node_modules/lodash/fp/entriesIn.js b/node_modules/lodash/fp/entriesIn.js
deleted file mode 100644
index f6c6331..0000000
--- a/node_modules/lodash/fp/entriesIn.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./toPairsIn');
diff --git a/node_modules/lodash/fp/eq.js b/node_modules/lodash/fp/eq.js
deleted file mode 100644
index 9a3d21b..0000000
--- a/node_modules/lodash/fp/eq.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('eq', require('../eq'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/equals.js b/node_modules/lodash/fp/equals.js
deleted file mode 100644
index e6a5ce0..0000000
--- a/node_modules/lodash/fp/equals.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./isEqual');
diff --git a/node_modules/lodash/fp/escape.js b/node_modules/lodash/fp/escape.js
deleted file mode 100644
index 52c1fbb..0000000
--- a/node_modules/lodash/fp/escape.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('escape', require('../escape'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/escapeRegExp.js b/node_modules/lodash/fp/escapeRegExp.js
deleted file mode 100644
index 369b2ef..0000000
--- a/node_modules/lodash/fp/escapeRegExp.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('escapeRegExp', require('../escapeRegExp'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/every.js b/node_modules/lodash/fp/every.js
deleted file mode 100644
index 95c2776..0000000
--- a/node_modules/lodash/fp/every.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('every', require('../every'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/extend.js b/node_modules/lodash/fp/extend.js
deleted file mode 100644
index e00166c..0000000
--- a/node_modules/lodash/fp/extend.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./assignIn');
diff --git a/node_modules/lodash/fp/extendAll.js b/node_modules/lodash/fp/extendAll.js
deleted file mode 100644
index cc55b64..0000000
--- a/node_modules/lodash/fp/extendAll.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./assignInAll');
diff --git a/node_modules/lodash/fp/extendAllWith.js b/node_modules/lodash/fp/extendAllWith.js
deleted file mode 100644
index 6679d20..0000000
--- a/node_modules/lodash/fp/extendAllWith.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./assignInAllWith');
diff --git a/node_modules/lodash/fp/extendWith.js b/node_modules/lodash/fp/extendWith.js
deleted file mode 100644
index dbdcb3b..0000000
--- a/node_modules/lodash/fp/extendWith.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./assignInWith');
diff --git a/node_modules/lodash/fp/fill.js b/node_modules/lodash/fp/fill.js
deleted file mode 100644
index b2d47e8..0000000
--- a/node_modules/lodash/fp/fill.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('fill', require('../fill'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/filter.js b/node_modules/lodash/fp/filter.js
deleted file mode 100644
index 796d501..0000000
--- a/node_modules/lodash/fp/filter.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('filter', require('../filter'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/find.js b/node_modules/lodash/fp/find.js
deleted file mode 100644
index f805d33..0000000
--- a/node_modules/lodash/fp/find.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('find', require('../find'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findFrom.js b/node_modules/lodash/fp/findFrom.js
deleted file mode 100644
index da8275e..0000000
--- a/node_modules/lodash/fp/findFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findFrom', require('../find'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findIndex.js b/node_modules/lodash/fp/findIndex.js
deleted file mode 100644
index 8c15fd1..0000000
--- a/node_modules/lodash/fp/findIndex.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findIndex', require('../findIndex'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findIndexFrom.js b/node_modules/lodash/fp/findIndexFrom.js
deleted file mode 100644
index 32e98cb..0000000
--- a/node_modules/lodash/fp/findIndexFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findIndexFrom', require('../findIndex'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findKey.js b/node_modules/lodash/fp/findKey.js
deleted file mode 100644
index 475bcfa..0000000
--- a/node_modules/lodash/fp/findKey.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findKey', require('../findKey'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findLast.js b/node_modules/lodash/fp/findLast.js
deleted file mode 100644
index 093fe94..0000000
--- a/node_modules/lodash/fp/findLast.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findLast', require('../findLast'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findLastFrom.js b/node_modules/lodash/fp/findLastFrom.js
deleted file mode 100644
index 76c38fb..0000000
--- a/node_modules/lodash/fp/findLastFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findLastFrom', require('../findLast'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findLastIndex.js b/node_modules/lodash/fp/findLastIndex.js
deleted file mode 100644
index 36986df..0000000
--- a/node_modules/lodash/fp/findLastIndex.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findLastIndex', require('../findLastIndex'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findLastIndexFrom.js b/node_modules/lodash/fp/findLastIndexFrom.js
deleted file mode 100644
index 34c8176..0000000
--- a/node_modules/lodash/fp/findLastIndexFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findLastIndexFrom', require('../findLastIndex'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/findLastKey.js b/node_modules/lodash/fp/findLastKey.js
deleted file mode 100644
index 5f81b60..0000000
--- a/node_modules/lodash/fp/findLastKey.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('findLastKey', require('../findLastKey'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/first.js b/node_modules/lodash/fp/first.js
deleted file mode 100644
index 53f4ad1..0000000
--- a/node_modules/lodash/fp/first.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./head');
diff --git a/node_modules/lodash/fp/flatMap.js b/node_modules/lodash/fp/flatMap.js
deleted file mode 100644
index d01dc4d..0000000
--- a/node_modules/lodash/fp/flatMap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flatMap', require('../flatMap'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flatMapDeep.js b/node_modules/lodash/fp/flatMapDeep.js
deleted file mode 100644
index 569c42e..0000000
--- a/node_modules/lodash/fp/flatMapDeep.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flatMapDeep', require('../flatMapDeep'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flatMapDepth.js b/node_modules/lodash/fp/flatMapDepth.js
deleted file mode 100644
index 6eb68fd..0000000
--- a/node_modules/lodash/fp/flatMapDepth.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flatMapDepth', require('../flatMapDepth'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flatten.js b/node_modules/lodash/fp/flatten.js
deleted file mode 100644
index 30425d8..0000000
--- a/node_modules/lodash/fp/flatten.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flatten', require('../flatten'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flattenDeep.js b/node_modules/lodash/fp/flattenDeep.js
deleted file mode 100644
index aed5db2..0000000
--- a/node_modules/lodash/fp/flattenDeep.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flattenDeep', require('../flattenDeep'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flattenDepth.js b/node_modules/lodash/fp/flattenDepth.js
deleted file mode 100644
index ad65e37..0000000
--- a/node_modules/lodash/fp/flattenDepth.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flattenDepth', require('../flattenDepth'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flip.js b/node_modules/lodash/fp/flip.js
deleted file mode 100644
index 0547e7b..0000000
--- a/node_modules/lodash/fp/flip.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flip', require('../flip'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/floor.js b/node_modules/lodash/fp/floor.js
deleted file mode 100644
index a6cf335..0000000
--- a/node_modules/lodash/fp/floor.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('floor', require('../floor'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flow.js b/node_modules/lodash/fp/flow.js
deleted file mode 100644
index cd83677..0000000
--- a/node_modules/lodash/fp/flow.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flow', require('../flow'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/flowRight.js b/node_modules/lodash/fp/flowRight.js
deleted file mode 100644
index 972a5b9..0000000
--- a/node_modules/lodash/fp/flowRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('flowRight', require('../flowRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/forEach.js b/node_modules/lodash/fp/forEach.js
deleted file mode 100644
index 2f49452..0000000
--- a/node_modules/lodash/fp/forEach.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('forEach', require('../forEach'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/forEachRight.js b/node_modules/lodash/fp/forEachRight.js
deleted file mode 100644
index 3ff9733..0000000
--- a/node_modules/lodash/fp/forEachRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('forEachRight', require('../forEachRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/forIn.js b/node_modules/lodash/fp/forIn.js
deleted file mode 100644
index 9341749..0000000
--- a/node_modules/lodash/fp/forIn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('forIn', require('../forIn'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/forInRight.js b/node_modules/lodash/fp/forInRight.js
deleted file mode 100644
index cecf8bb..0000000
--- a/node_modules/lodash/fp/forInRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('forInRight', require('../forInRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/forOwn.js b/node_modules/lodash/fp/forOwn.js
deleted file mode 100644
index 246449e..0000000
--- a/node_modules/lodash/fp/forOwn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('forOwn', require('../forOwn'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/forOwnRight.js b/node_modules/lodash/fp/forOwnRight.js
deleted file mode 100644
index c5e826e..0000000
--- a/node_modules/lodash/fp/forOwnRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('forOwnRight', require('../forOwnRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/fromPairs.js b/node_modules/lodash/fp/fromPairs.js
deleted file mode 100644
index f8cc596..0000000
--- a/node_modules/lodash/fp/fromPairs.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('fromPairs', require('../fromPairs'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/function.js b/node_modules/lodash/fp/function.js
deleted file mode 100644
index dfe69b1..0000000
--- a/node_modules/lodash/fp/function.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../function'));
diff --git a/node_modules/lodash/fp/functions.js b/node_modules/lodash/fp/functions.js
deleted file mode 100644
index 09d1bb1..0000000
--- a/node_modules/lodash/fp/functions.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('functions', require('../functions'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/functionsIn.js b/node_modules/lodash/fp/functionsIn.js
deleted file mode 100644
index 2cfeb83..0000000
--- a/node_modules/lodash/fp/functionsIn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('functionsIn', require('../functionsIn'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/get.js b/node_modules/lodash/fp/get.js
deleted file mode 100644
index 6d3a328..0000000
--- a/node_modules/lodash/fp/get.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('get', require('../get'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/getOr.js b/node_modules/lodash/fp/getOr.js
deleted file mode 100644
index 7dbf771..0000000
--- a/node_modules/lodash/fp/getOr.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('getOr', require('../get'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/groupBy.js b/node_modules/lodash/fp/groupBy.js
deleted file mode 100644
index fc0bc78..0000000
--- a/node_modules/lodash/fp/groupBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('groupBy', require('../groupBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/gt.js b/node_modules/lodash/fp/gt.js
deleted file mode 100644
index 9e57c80..0000000
--- a/node_modules/lodash/fp/gt.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('gt', require('../gt'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/gte.js b/node_modules/lodash/fp/gte.js
deleted file mode 100644
index 4584786..0000000
--- a/node_modules/lodash/fp/gte.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('gte', require('../gte'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/has.js b/node_modules/lodash/fp/has.js
deleted file mode 100644
index b901298..0000000
--- a/node_modules/lodash/fp/has.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('has', require('../has'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/hasIn.js b/node_modules/lodash/fp/hasIn.js
deleted file mode 100644
index b3c3d1a..0000000
--- a/node_modules/lodash/fp/hasIn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('hasIn', require('../hasIn'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/head.js b/node_modules/lodash/fp/head.js
deleted file mode 100644
index 2694f0a..0000000
--- a/node_modules/lodash/fp/head.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('head', require('../head'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/identical.js b/node_modules/lodash/fp/identical.js
deleted file mode 100644
index 85563f4..0000000
--- a/node_modules/lodash/fp/identical.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./eq');
diff --git a/node_modules/lodash/fp/identity.js b/node_modules/lodash/fp/identity.js
deleted file mode 100644
index 096415a..0000000
--- a/node_modules/lodash/fp/identity.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('identity', require('../identity'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/inRange.js b/node_modules/lodash/fp/inRange.js
deleted file mode 100644
index 202d940..0000000
--- a/node_modules/lodash/fp/inRange.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('inRange', require('../inRange'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/includes.js b/node_modules/lodash/fp/includes.js
deleted file mode 100644
index 1146780..0000000
--- a/node_modules/lodash/fp/includes.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('includes', require('../includes'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/includesFrom.js b/node_modules/lodash/fp/includesFrom.js
deleted file mode 100644
index 683afdb..0000000
--- a/node_modules/lodash/fp/includesFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('includesFrom', require('../includes'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/indexBy.js b/node_modules/lodash/fp/indexBy.js
deleted file mode 100644
index 7e64bc0..0000000
--- a/node_modules/lodash/fp/indexBy.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./keyBy');
diff --git a/node_modules/lodash/fp/indexOf.js b/node_modules/lodash/fp/indexOf.js
deleted file mode 100644
index 524658e..0000000
--- a/node_modules/lodash/fp/indexOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('indexOf', require('../indexOf'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/indexOfFrom.js b/node_modules/lodash/fp/indexOfFrom.js
deleted file mode 100644
index d99c822..0000000
--- a/node_modules/lodash/fp/indexOfFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('indexOfFrom', require('../indexOf'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/init.js b/node_modules/lodash/fp/init.js
deleted file mode 100644
index 2f88d8b..0000000
--- a/node_modules/lodash/fp/init.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./initial');
diff --git a/node_modules/lodash/fp/initial.js b/node_modules/lodash/fp/initial.js
deleted file mode 100644
index b732ba0..0000000
--- a/node_modules/lodash/fp/initial.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('initial', require('../initial'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/intersection.js b/node_modules/lodash/fp/intersection.js
deleted file mode 100644
index 52936d5..0000000
--- a/node_modules/lodash/fp/intersection.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('intersection', require('../intersection'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/intersectionBy.js b/node_modules/lodash/fp/intersectionBy.js
deleted file mode 100644
index 72629f2..0000000
--- a/node_modules/lodash/fp/intersectionBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('intersectionBy', require('../intersectionBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/intersectionWith.js b/node_modules/lodash/fp/intersectionWith.js
deleted file mode 100644
index e064f40..0000000
--- a/node_modules/lodash/fp/intersectionWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('intersectionWith', require('../intersectionWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/invert.js b/node_modules/lodash/fp/invert.js
deleted file mode 100644
index 2d5d1f0..0000000
--- a/node_modules/lodash/fp/invert.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('invert', require('../invert'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/invertBy.js b/node_modules/lodash/fp/invertBy.js
deleted file mode 100644
index 63ca97e..0000000
--- a/node_modules/lodash/fp/invertBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('invertBy', require('../invertBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/invertObj.js b/node_modules/lodash/fp/invertObj.js
deleted file mode 100644
index f1d842e..0000000
--- a/node_modules/lodash/fp/invertObj.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./invert');
diff --git a/node_modules/lodash/fp/invoke.js b/node_modules/lodash/fp/invoke.js
deleted file mode 100644
index fcf17f0..0000000
--- a/node_modules/lodash/fp/invoke.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('invoke', require('../invoke'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/invokeArgs.js b/node_modules/lodash/fp/invokeArgs.js
deleted file mode 100644
index d3f2953..0000000
--- a/node_modules/lodash/fp/invokeArgs.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('invokeArgs', require('../invoke'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/invokeArgsMap.js b/node_modules/lodash/fp/invokeArgsMap.js
deleted file mode 100644
index eaa9f84..0000000
--- a/node_modules/lodash/fp/invokeArgsMap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('invokeArgsMap', require('../invokeMap'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/invokeMap.js b/node_modules/lodash/fp/invokeMap.js
deleted file mode 100644
index 6515fd7..0000000
--- a/node_modules/lodash/fp/invokeMap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('invokeMap', require('../invokeMap'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isArguments.js b/node_modules/lodash/fp/isArguments.js
deleted file mode 100644
index 1d93c9e..0000000
--- a/node_modules/lodash/fp/isArguments.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isArguments', require('../isArguments'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isArray.js b/node_modules/lodash/fp/isArray.js
deleted file mode 100644
index ba7ade8..0000000
--- a/node_modules/lodash/fp/isArray.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isArray', require('../isArray'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isArrayBuffer.js b/node_modules/lodash/fp/isArrayBuffer.js
deleted file mode 100644
index 5088513..0000000
--- a/node_modules/lodash/fp/isArrayBuffer.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isArrayBuffer', require('../isArrayBuffer'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isArrayLike.js b/node_modules/lodash/fp/isArrayLike.js
deleted file mode 100644
index 8f1856b..0000000
--- a/node_modules/lodash/fp/isArrayLike.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isArrayLike', require('../isArrayLike'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isArrayLikeObject.js b/node_modules/lodash/fp/isArrayLikeObject.js
deleted file mode 100644
index 2108498..0000000
--- a/node_modules/lodash/fp/isArrayLikeObject.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isArrayLikeObject', require('../isArrayLikeObject'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isBoolean.js b/node_modules/lodash/fp/isBoolean.js
deleted file mode 100644
index 9339f75..0000000
--- a/node_modules/lodash/fp/isBoolean.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isBoolean', require('../isBoolean'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isBuffer.js b/node_modules/lodash/fp/isBuffer.js
deleted file mode 100644
index e60b123..0000000
--- a/node_modules/lodash/fp/isBuffer.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isBuffer', require('../isBuffer'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isDate.js b/node_modules/lodash/fp/isDate.js
deleted file mode 100644
index dc41d08..0000000
--- a/node_modules/lodash/fp/isDate.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isDate', require('../isDate'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isElement.js b/node_modules/lodash/fp/isElement.js
deleted file mode 100644
index 18ee039..0000000
--- a/node_modules/lodash/fp/isElement.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isElement', require('../isElement'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isEmpty.js b/node_modules/lodash/fp/isEmpty.js
deleted file mode 100644
index 0f4ae84..0000000
--- a/node_modules/lodash/fp/isEmpty.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isEmpty', require('../isEmpty'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isEqual.js b/node_modules/lodash/fp/isEqual.js
deleted file mode 100644
index 4138386..0000000
--- a/node_modules/lodash/fp/isEqual.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isEqual', require('../isEqual'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isEqualWith.js b/node_modules/lodash/fp/isEqualWith.js
deleted file mode 100644
index 029ff5c..0000000
--- a/node_modules/lodash/fp/isEqualWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isEqualWith', require('../isEqualWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isError.js b/node_modules/lodash/fp/isError.js
deleted file mode 100644
index 3dfd81c..0000000
--- a/node_modules/lodash/fp/isError.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isError', require('../isError'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isFinite.js b/node_modules/lodash/fp/isFinite.js
deleted file mode 100644
index 0b647b8..0000000
--- a/node_modules/lodash/fp/isFinite.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isFinite', require('../isFinite'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isFunction.js b/node_modules/lodash/fp/isFunction.js
deleted file mode 100644
index ff8e5c4..0000000
--- a/node_modules/lodash/fp/isFunction.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isFunction', require('../isFunction'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isInteger.js b/node_modules/lodash/fp/isInteger.js
deleted file mode 100644
index 67af4ff..0000000
--- a/node_modules/lodash/fp/isInteger.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isInteger', require('../isInteger'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isLength.js b/node_modules/lodash/fp/isLength.js
deleted file mode 100644
index fc101c5..0000000
--- a/node_modules/lodash/fp/isLength.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isLength', require('../isLength'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isMap.js b/node_modules/lodash/fp/isMap.js
deleted file mode 100644
index a209aa6..0000000
--- a/node_modules/lodash/fp/isMap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isMap', require('../isMap'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isMatch.js b/node_modules/lodash/fp/isMatch.js
deleted file mode 100644
index 6264ca1..0000000
--- a/node_modules/lodash/fp/isMatch.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isMatch', require('../isMatch'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isMatchWith.js b/node_modules/lodash/fp/isMatchWith.js
deleted file mode 100644
index d95f319..0000000
--- a/node_modules/lodash/fp/isMatchWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isMatchWith', require('../isMatchWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isNaN.js b/node_modules/lodash/fp/isNaN.js
deleted file mode 100644
index 66a978f..0000000
--- a/node_modules/lodash/fp/isNaN.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isNaN', require('../isNaN'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isNative.js b/node_modules/lodash/fp/isNative.js
deleted file mode 100644
index 3d775ba..0000000
--- a/node_modules/lodash/fp/isNative.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isNative', require('../isNative'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isNil.js b/node_modules/lodash/fp/isNil.js
deleted file mode 100644
index 5952c02..0000000
--- a/node_modules/lodash/fp/isNil.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isNil', require('../isNil'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isNull.js b/node_modules/lodash/fp/isNull.js
deleted file mode 100644
index f201a35..0000000
--- a/node_modules/lodash/fp/isNull.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isNull', require('../isNull'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isNumber.js b/node_modules/lodash/fp/isNumber.js
deleted file mode 100644
index a2b5fa0..0000000
--- a/node_modules/lodash/fp/isNumber.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isNumber', require('../isNumber'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isObject.js b/node_modules/lodash/fp/isObject.js
deleted file mode 100644
index 231ace0..0000000
--- a/node_modules/lodash/fp/isObject.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isObject', require('../isObject'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isObjectLike.js b/node_modules/lodash/fp/isObjectLike.js
deleted file mode 100644
index f16082e..0000000
--- a/node_modules/lodash/fp/isObjectLike.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isObjectLike', require('../isObjectLike'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isPlainObject.js b/node_modules/lodash/fp/isPlainObject.js
deleted file mode 100644
index b5bea90..0000000
--- a/node_modules/lodash/fp/isPlainObject.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isPlainObject', require('../isPlainObject'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isRegExp.js b/node_modules/lodash/fp/isRegExp.js
deleted file mode 100644
index 12a1a3d..0000000
--- a/node_modules/lodash/fp/isRegExp.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isRegExp', require('../isRegExp'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isSafeInteger.js b/node_modules/lodash/fp/isSafeInteger.js
deleted file mode 100644
index 7230f55..0000000
--- a/node_modules/lodash/fp/isSafeInteger.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isSafeInteger', require('../isSafeInteger'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isSet.js b/node_modules/lodash/fp/isSet.js
deleted file mode 100644
index 35c01f6..0000000
--- a/node_modules/lodash/fp/isSet.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isSet', require('../isSet'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isString.js b/node_modules/lodash/fp/isString.js
deleted file mode 100644
index 1fd0679..0000000
--- a/node_modules/lodash/fp/isString.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isString', require('../isString'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isSymbol.js b/node_modules/lodash/fp/isSymbol.js
deleted file mode 100644
index 3867695..0000000
--- a/node_modules/lodash/fp/isSymbol.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isSymbol', require('../isSymbol'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isTypedArray.js b/node_modules/lodash/fp/isTypedArray.js
deleted file mode 100644
index 8567953..0000000
--- a/node_modules/lodash/fp/isTypedArray.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isTypedArray', require('../isTypedArray'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isUndefined.js b/node_modules/lodash/fp/isUndefined.js
deleted file mode 100644
index ddbca31..0000000
--- a/node_modules/lodash/fp/isUndefined.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isUndefined', require('../isUndefined'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isWeakMap.js b/node_modules/lodash/fp/isWeakMap.js
deleted file mode 100644
index ef60c61..0000000
--- a/node_modules/lodash/fp/isWeakMap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isWeakMap', require('../isWeakMap'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/isWeakSet.js b/node_modules/lodash/fp/isWeakSet.js
deleted file mode 100644
index c99bfaa..0000000
--- a/node_modules/lodash/fp/isWeakSet.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('isWeakSet', require('../isWeakSet'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/iteratee.js b/node_modules/lodash/fp/iteratee.js
deleted file mode 100644
index 9f0f717..0000000
--- a/node_modules/lodash/fp/iteratee.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('iteratee', require('../iteratee'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/join.js b/node_modules/lodash/fp/join.js
deleted file mode 100644
index a220e00..0000000
--- a/node_modules/lodash/fp/join.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('join', require('../join'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/juxt.js b/node_modules/lodash/fp/juxt.js
deleted file mode 100644
index f71e04e..0000000
--- a/node_modules/lodash/fp/juxt.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./over');
diff --git a/node_modules/lodash/fp/kebabCase.js b/node_modules/lodash/fp/kebabCase.js
deleted file mode 100644
index 60737f1..0000000
--- a/node_modules/lodash/fp/kebabCase.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('kebabCase', require('../kebabCase'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/keyBy.js b/node_modules/lodash/fp/keyBy.js
deleted file mode 100644
index 9a6a85d..0000000
--- a/node_modules/lodash/fp/keyBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('keyBy', require('../keyBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/keys.js b/node_modules/lodash/fp/keys.js
deleted file mode 100644
index e12bb07..0000000
--- a/node_modules/lodash/fp/keys.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('keys', require('../keys'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/keysIn.js b/node_modules/lodash/fp/keysIn.js
deleted file mode 100644
index f3eb36a..0000000
--- a/node_modules/lodash/fp/keysIn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('keysIn', require('../keysIn'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/lang.js b/node_modules/lodash/fp/lang.js
deleted file mode 100644
index 08cc9c1..0000000
--- a/node_modules/lodash/fp/lang.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../lang'));
diff --git a/node_modules/lodash/fp/last.js b/node_modules/lodash/fp/last.js
deleted file mode 100644
index 0f71699..0000000
--- a/node_modules/lodash/fp/last.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('last', require('../last'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/lastIndexOf.js b/node_modules/lodash/fp/lastIndexOf.js
deleted file mode 100644
index ddf39c3..0000000
--- a/node_modules/lodash/fp/lastIndexOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('lastIndexOf', require('../lastIndexOf'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/lastIndexOfFrom.js b/node_modules/lodash/fp/lastIndexOfFrom.js
deleted file mode 100644
index 1ff6a0b..0000000
--- a/node_modules/lodash/fp/lastIndexOfFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('lastIndexOfFrom', require('../lastIndexOf'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/lowerCase.js b/node_modules/lodash/fp/lowerCase.js
deleted file mode 100644
index ea64bc1..0000000
--- a/node_modules/lodash/fp/lowerCase.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('lowerCase', require('../lowerCase'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/lowerFirst.js b/node_modules/lodash/fp/lowerFirst.js
deleted file mode 100644
index 539720a..0000000
--- a/node_modules/lodash/fp/lowerFirst.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('lowerFirst', require('../lowerFirst'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/lt.js b/node_modules/lodash/fp/lt.js
deleted file mode 100644
index a31d21e..0000000
--- a/node_modules/lodash/fp/lt.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('lt', require('../lt'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/lte.js b/node_modules/lodash/fp/lte.js
deleted file mode 100644
index d795d10..0000000
--- a/node_modules/lodash/fp/lte.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('lte', require('../lte'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/map.js b/node_modules/lodash/fp/map.js
deleted file mode 100644
index cf98794..0000000
--- a/node_modules/lodash/fp/map.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('map', require('../map'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/mapKeys.js b/node_modules/lodash/fp/mapKeys.js
deleted file mode 100644
index 1684587..0000000
--- a/node_modules/lodash/fp/mapKeys.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('mapKeys', require('../mapKeys'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/mapValues.js b/node_modules/lodash/fp/mapValues.js
deleted file mode 100644
index 4004972..0000000
--- a/node_modules/lodash/fp/mapValues.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('mapValues', require('../mapValues'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/matches.js b/node_modules/lodash/fp/matches.js
deleted file mode 100644
index 29d1e1e..0000000
--- a/node_modules/lodash/fp/matches.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./isMatch');
diff --git a/node_modules/lodash/fp/matchesProperty.js b/node_modules/lodash/fp/matchesProperty.js
deleted file mode 100644
index 4575bd2..0000000
--- a/node_modules/lodash/fp/matchesProperty.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('matchesProperty', require('../matchesProperty'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/math.js b/node_modules/lodash/fp/math.js
deleted file mode 100644
index e8f50f7..0000000
--- a/node_modules/lodash/fp/math.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../math'));
diff --git a/node_modules/lodash/fp/max.js b/node_modules/lodash/fp/max.js
deleted file mode 100644
index a66acac..0000000
--- a/node_modules/lodash/fp/max.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('max', require('../max'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/maxBy.js b/node_modules/lodash/fp/maxBy.js
deleted file mode 100644
index d083fd6..0000000
--- a/node_modules/lodash/fp/maxBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('maxBy', require('../maxBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/mean.js b/node_modules/lodash/fp/mean.js
deleted file mode 100644
index 3117246..0000000
--- a/node_modules/lodash/fp/mean.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('mean', require('../mean'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/meanBy.js b/node_modules/lodash/fp/meanBy.js
deleted file mode 100644
index 556f25e..0000000
--- a/node_modules/lodash/fp/meanBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('meanBy', require('../meanBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/memoize.js b/node_modules/lodash/fp/memoize.js
deleted file mode 100644
index 638eec6..0000000
--- a/node_modules/lodash/fp/memoize.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('memoize', require('../memoize'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/merge.js b/node_modules/lodash/fp/merge.js
deleted file mode 100644
index ac66add..0000000
--- a/node_modules/lodash/fp/merge.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('merge', require('../merge'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/mergeAll.js b/node_modules/lodash/fp/mergeAll.js
deleted file mode 100644
index a3674d6..0000000
--- a/node_modules/lodash/fp/mergeAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('mergeAll', require('../merge'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/mergeAllWith.js b/node_modules/lodash/fp/mergeAllWith.js
deleted file mode 100644
index 4bd4206..0000000
--- a/node_modules/lodash/fp/mergeAllWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('mergeAllWith', require('../mergeWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/mergeWith.js b/node_modules/lodash/fp/mergeWith.js
deleted file mode 100644
index 00d44d5..0000000
--- a/node_modules/lodash/fp/mergeWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('mergeWith', require('../mergeWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/method.js b/node_modules/lodash/fp/method.js
deleted file mode 100644
index f4060c6..0000000
--- a/node_modules/lodash/fp/method.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('method', require('../method'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/methodOf.js b/node_modules/lodash/fp/methodOf.js
deleted file mode 100644
index 6139905..0000000
--- a/node_modules/lodash/fp/methodOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('methodOf', require('../methodOf'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/min.js b/node_modules/lodash/fp/min.js
deleted file mode 100644
index d12c6b4..0000000
--- a/node_modules/lodash/fp/min.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('min', require('../min'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/minBy.js b/node_modules/lodash/fp/minBy.js
deleted file mode 100644
index fdb9e24..0000000
--- a/node_modules/lodash/fp/minBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('minBy', require('../minBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/mixin.js b/node_modules/lodash/fp/mixin.js
deleted file mode 100644
index 332e6fb..0000000
--- a/node_modules/lodash/fp/mixin.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('mixin', require('../mixin'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/multiply.js b/node_modules/lodash/fp/multiply.js
deleted file mode 100644
index 4dcf0b0..0000000
--- a/node_modules/lodash/fp/multiply.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('multiply', require('../multiply'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/nAry.js b/node_modules/lodash/fp/nAry.js
deleted file mode 100644
index f262a76..0000000
--- a/node_modules/lodash/fp/nAry.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./ary');
diff --git a/node_modules/lodash/fp/negate.js b/node_modules/lodash/fp/negate.js
deleted file mode 100644
index 8b6dc7c..0000000
--- a/node_modules/lodash/fp/negate.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('negate', require('../negate'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/next.js b/node_modules/lodash/fp/next.js
deleted file mode 100644
index 140155e..0000000
--- a/node_modules/lodash/fp/next.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('next', require('../next'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/noop.js b/node_modules/lodash/fp/noop.js
deleted file mode 100644
index b9e32cc..0000000
--- a/node_modules/lodash/fp/noop.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('noop', require('../noop'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/now.js b/node_modules/lodash/fp/now.js
deleted file mode 100644
index 6de2068..0000000
--- a/node_modules/lodash/fp/now.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('now', require('../now'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/nth.js b/node_modules/lodash/fp/nth.js
deleted file mode 100644
index da4fda7..0000000
--- a/node_modules/lodash/fp/nth.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('nth', require('../nth'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/nthArg.js b/node_modules/lodash/fp/nthArg.js
deleted file mode 100644
index fce3165..0000000
--- a/node_modules/lodash/fp/nthArg.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('nthArg', require('../nthArg'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/number.js b/node_modules/lodash/fp/number.js
deleted file mode 100644
index 5c10b88..0000000
--- a/node_modules/lodash/fp/number.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../number'));
diff --git a/node_modules/lodash/fp/object.js b/node_modules/lodash/fp/object.js
deleted file mode 100644
index ae39a13..0000000
--- a/node_modules/lodash/fp/object.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../object'));
diff --git a/node_modules/lodash/fp/omit.js b/node_modules/lodash/fp/omit.js
deleted file mode 100644
index fd68529..0000000
--- a/node_modules/lodash/fp/omit.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('omit', require('../omit'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/omitAll.js b/node_modules/lodash/fp/omitAll.js
deleted file mode 100644
index 144cf4b..0000000
--- a/node_modules/lodash/fp/omitAll.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./omit');
diff --git a/node_modules/lodash/fp/omitBy.js b/node_modules/lodash/fp/omitBy.js
deleted file mode 100644
index 90df738..0000000
--- a/node_modules/lodash/fp/omitBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('omitBy', require('../omitBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/once.js b/node_modules/lodash/fp/once.js
deleted file mode 100644
index f8f0a5c..0000000
--- a/node_modules/lodash/fp/once.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('once', require('../once'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/orderBy.js b/node_modules/lodash/fp/orderBy.js
deleted file mode 100644
index 848e210..0000000
--- a/node_modules/lodash/fp/orderBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('orderBy', require('../orderBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/over.js b/node_modules/lodash/fp/over.js
deleted file mode 100644
index 01eba7b..0000000
--- a/node_modules/lodash/fp/over.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('over', require('../over'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/overArgs.js b/node_modules/lodash/fp/overArgs.js
deleted file mode 100644
index 738556f..0000000
--- a/node_modules/lodash/fp/overArgs.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('overArgs', require('../overArgs'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/overEvery.js b/node_modules/lodash/fp/overEvery.js
deleted file mode 100644
index 9f5a032..0000000
--- a/node_modules/lodash/fp/overEvery.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('overEvery', require('../overEvery'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/overSome.js b/node_modules/lodash/fp/overSome.js
deleted file mode 100644
index 15939d5..0000000
--- a/node_modules/lodash/fp/overSome.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('overSome', require('../overSome'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pad.js b/node_modules/lodash/fp/pad.js
deleted file mode 100644
index f1dea4a..0000000
--- a/node_modules/lodash/fp/pad.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pad', require('../pad'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/padChars.js b/node_modules/lodash/fp/padChars.js
deleted file mode 100644
index d6e0804..0000000
--- a/node_modules/lodash/fp/padChars.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('padChars', require('../pad'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/padCharsEnd.js b/node_modules/lodash/fp/padCharsEnd.js
deleted file mode 100644
index d4ab79a..0000000
--- a/node_modules/lodash/fp/padCharsEnd.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('padCharsEnd', require('../padEnd'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/padCharsStart.js b/node_modules/lodash/fp/padCharsStart.js
deleted file mode 100644
index a08a300..0000000
--- a/node_modules/lodash/fp/padCharsStart.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('padCharsStart', require('../padStart'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/padEnd.js b/node_modules/lodash/fp/padEnd.js
deleted file mode 100644
index a8522ec..0000000
--- a/node_modules/lodash/fp/padEnd.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('padEnd', require('../padEnd'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/padStart.js b/node_modules/lodash/fp/padStart.js
deleted file mode 100644
index f4ca79d..0000000
--- a/node_modules/lodash/fp/padStart.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('padStart', require('../padStart'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/parseInt.js b/node_modules/lodash/fp/parseInt.js
deleted file mode 100644
index 27314cc..0000000
--- a/node_modules/lodash/fp/parseInt.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('parseInt', require('../parseInt'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/partial.js b/node_modules/lodash/fp/partial.js
deleted file mode 100644
index 5d46015..0000000
--- a/node_modules/lodash/fp/partial.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('partial', require('../partial'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/partialRight.js b/node_modules/lodash/fp/partialRight.js
deleted file mode 100644
index 7f05fed..0000000
--- a/node_modules/lodash/fp/partialRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('partialRight', require('../partialRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/partition.js b/node_modules/lodash/fp/partition.js
deleted file mode 100644
index 2ebcacc..0000000
--- a/node_modules/lodash/fp/partition.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('partition', require('../partition'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/path.js b/node_modules/lodash/fp/path.js
deleted file mode 100644
index b29cfb2..0000000
--- a/node_modules/lodash/fp/path.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./get');
diff --git a/node_modules/lodash/fp/pathEq.js b/node_modules/lodash/fp/pathEq.js
deleted file mode 100644
index 36c027a..0000000
--- a/node_modules/lodash/fp/pathEq.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./matchesProperty');
diff --git a/node_modules/lodash/fp/pathOr.js b/node_modules/lodash/fp/pathOr.js
deleted file mode 100644
index 4ab5820..0000000
--- a/node_modules/lodash/fp/pathOr.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./getOr');
diff --git a/node_modules/lodash/fp/paths.js b/node_modules/lodash/fp/paths.js
deleted file mode 100644
index 1eb7950..0000000
--- a/node_modules/lodash/fp/paths.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./at');
diff --git a/node_modules/lodash/fp/pick.js b/node_modules/lodash/fp/pick.js
deleted file mode 100644
index 197393d..0000000
--- a/node_modules/lodash/fp/pick.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pick', require('../pick'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pickAll.js b/node_modules/lodash/fp/pickAll.js
deleted file mode 100644
index a8ecd46..0000000
--- a/node_modules/lodash/fp/pickAll.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./pick');
diff --git a/node_modules/lodash/fp/pickBy.js b/node_modules/lodash/fp/pickBy.js
deleted file mode 100644
index d832d16..0000000
--- a/node_modules/lodash/fp/pickBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pickBy', require('../pickBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pipe.js b/node_modules/lodash/fp/pipe.js
deleted file mode 100644
index b2e1e2c..0000000
--- a/node_modules/lodash/fp/pipe.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./flow');
diff --git a/node_modules/lodash/fp/placeholder.js b/node_modules/lodash/fp/placeholder.js
deleted file mode 100644
index 1ce1739..0000000
--- a/node_modules/lodash/fp/placeholder.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * The default argument placeholder value for methods.
- *
- * @type {Object}
- */
-module.exports = {};
diff --git a/node_modules/lodash/fp/plant.js b/node_modules/lodash/fp/plant.js
deleted file mode 100644
index eca8f32..0000000
--- a/node_modules/lodash/fp/plant.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('plant', require('../plant'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pluck.js b/node_modules/lodash/fp/pluck.js
deleted file mode 100644
index 0d1e1ab..0000000
--- a/node_modules/lodash/fp/pluck.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./map');
diff --git a/node_modules/lodash/fp/prop.js b/node_modules/lodash/fp/prop.js
deleted file mode 100644
index b29cfb2..0000000
--- a/node_modules/lodash/fp/prop.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./get');
diff --git a/node_modules/lodash/fp/propEq.js b/node_modules/lodash/fp/propEq.js
deleted file mode 100644
index 36c027a..0000000
--- a/node_modules/lodash/fp/propEq.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./matchesProperty');
diff --git a/node_modules/lodash/fp/propOr.js b/node_modules/lodash/fp/propOr.js
deleted file mode 100644
index 4ab5820..0000000
--- a/node_modules/lodash/fp/propOr.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./getOr');
diff --git a/node_modules/lodash/fp/property.js b/node_modules/lodash/fp/property.js
deleted file mode 100644
index b29cfb2..0000000
--- a/node_modules/lodash/fp/property.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./get');
diff --git a/node_modules/lodash/fp/propertyOf.js b/node_modules/lodash/fp/propertyOf.js
deleted file mode 100644
index f6273ee..0000000
--- a/node_modules/lodash/fp/propertyOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('propertyOf', require('../get'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/props.js b/node_modules/lodash/fp/props.js
deleted file mode 100644
index 1eb7950..0000000
--- a/node_modules/lodash/fp/props.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./at');
diff --git a/node_modules/lodash/fp/pull.js b/node_modules/lodash/fp/pull.js
deleted file mode 100644
index 8d7084f..0000000
--- a/node_modules/lodash/fp/pull.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pull', require('../pull'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pullAll.js b/node_modules/lodash/fp/pullAll.js
deleted file mode 100644
index 98d5c9a..0000000
--- a/node_modules/lodash/fp/pullAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pullAll', require('../pullAll'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pullAllBy.js b/node_modules/lodash/fp/pullAllBy.js
deleted file mode 100644
index 876bc3b..0000000
--- a/node_modules/lodash/fp/pullAllBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pullAllBy', require('../pullAllBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pullAllWith.js b/node_modules/lodash/fp/pullAllWith.js
deleted file mode 100644
index f71ba4d..0000000
--- a/node_modules/lodash/fp/pullAllWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pullAllWith', require('../pullAllWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/pullAt.js b/node_modules/lodash/fp/pullAt.js
deleted file mode 100644
index e8b3bb6..0000000
--- a/node_modules/lodash/fp/pullAt.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('pullAt', require('../pullAt'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/random.js b/node_modules/lodash/fp/random.js
deleted file mode 100644
index 99d852e..0000000
--- a/node_modules/lodash/fp/random.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('random', require('../random'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/range.js b/node_modules/lodash/fp/range.js
deleted file mode 100644
index a6bb591..0000000
--- a/node_modules/lodash/fp/range.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('range', require('../range'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/rangeRight.js b/node_modules/lodash/fp/rangeRight.js
deleted file mode 100644
index fdb712f..0000000
--- a/node_modules/lodash/fp/rangeRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('rangeRight', require('../rangeRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/rangeStep.js b/node_modules/lodash/fp/rangeStep.js
deleted file mode 100644
index d72dfc2..0000000
--- a/node_modules/lodash/fp/rangeStep.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('rangeStep', require('../range'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/rangeStepRight.js b/node_modules/lodash/fp/rangeStepRight.js
deleted file mode 100644
index 8b2a67b..0000000
--- a/node_modules/lodash/fp/rangeStepRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('rangeStepRight', require('../rangeRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/rearg.js b/node_modules/lodash/fp/rearg.js
deleted file mode 100644
index 678e02a..0000000
--- a/node_modules/lodash/fp/rearg.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('rearg', require('../rearg'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/reduce.js b/node_modules/lodash/fp/reduce.js
deleted file mode 100644
index 4cef0a0..0000000
--- a/node_modules/lodash/fp/reduce.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('reduce', require('../reduce'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/reduceRight.js b/node_modules/lodash/fp/reduceRight.js
deleted file mode 100644
index caf5bb5..0000000
--- a/node_modules/lodash/fp/reduceRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('reduceRight', require('../reduceRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/reject.js b/node_modules/lodash/fp/reject.js
deleted file mode 100644
index c163273..0000000
--- a/node_modules/lodash/fp/reject.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('reject', require('../reject'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/remove.js b/node_modules/lodash/fp/remove.js
deleted file mode 100644
index e9d1327..0000000
--- a/node_modules/lodash/fp/remove.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('remove', require('../remove'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/repeat.js b/node_modules/lodash/fp/repeat.js
deleted file mode 100644
index 08470f2..0000000
--- a/node_modules/lodash/fp/repeat.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('repeat', require('../repeat'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/replace.js b/node_modules/lodash/fp/replace.js
deleted file mode 100644
index 2227db6..0000000
--- a/node_modules/lodash/fp/replace.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('replace', require('../replace'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/rest.js b/node_modules/lodash/fp/rest.js
deleted file mode 100644
index c1f3d64..0000000
--- a/node_modules/lodash/fp/rest.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('rest', require('../rest'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/restFrom.js b/node_modules/lodash/fp/restFrom.js
deleted file mode 100644
index 714e42b..0000000
--- a/node_modules/lodash/fp/restFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('restFrom', require('../rest'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/result.js b/node_modules/lodash/fp/result.js
deleted file mode 100644
index f86ce07..0000000
--- a/node_modules/lodash/fp/result.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('result', require('../result'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/reverse.js b/node_modules/lodash/fp/reverse.js
deleted file mode 100644
index 07c9f5e..0000000
--- a/node_modules/lodash/fp/reverse.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('reverse', require('../reverse'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/round.js b/node_modules/lodash/fp/round.js
deleted file mode 100644
index 4c0e5c8..0000000
--- a/node_modules/lodash/fp/round.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('round', require('../round'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sample.js b/node_modules/lodash/fp/sample.js
deleted file mode 100644
index 6bea125..0000000
--- a/node_modules/lodash/fp/sample.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sample', require('../sample'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sampleSize.js b/node_modules/lodash/fp/sampleSize.js
deleted file mode 100644
index 359ed6f..0000000
--- a/node_modules/lodash/fp/sampleSize.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sampleSize', require('../sampleSize'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/seq.js b/node_modules/lodash/fp/seq.js
deleted file mode 100644
index d8f42b0..0000000
--- a/node_modules/lodash/fp/seq.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../seq'));
diff --git a/node_modules/lodash/fp/set.js b/node_modules/lodash/fp/set.js
deleted file mode 100644
index 0b56a56..0000000
--- a/node_modules/lodash/fp/set.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('set', require('../set'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/setWith.js b/node_modules/lodash/fp/setWith.js
deleted file mode 100644
index 0b58495..0000000
--- a/node_modules/lodash/fp/setWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('setWith', require('../setWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/shuffle.js b/node_modules/lodash/fp/shuffle.js
deleted file mode 100644
index aa3a1ca..0000000
--- a/node_modules/lodash/fp/shuffle.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('shuffle', require('../shuffle'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/size.js b/node_modules/lodash/fp/size.js
deleted file mode 100644
index 7490136..0000000
--- a/node_modules/lodash/fp/size.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('size', require('../size'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/slice.js b/node_modules/lodash/fp/slice.js
deleted file mode 100644
index 15945d3..0000000
--- a/node_modules/lodash/fp/slice.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('slice', require('../slice'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/snakeCase.js b/node_modules/lodash/fp/snakeCase.js
deleted file mode 100644
index a0ff780..0000000
--- a/node_modules/lodash/fp/snakeCase.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('snakeCase', require('../snakeCase'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/some.js b/node_modules/lodash/fp/some.js
deleted file mode 100644
index a4fa2d0..0000000
--- a/node_modules/lodash/fp/some.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('some', require('../some'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortBy.js b/node_modules/lodash/fp/sortBy.js
deleted file mode 100644
index e0790ad..0000000
--- a/node_modules/lodash/fp/sortBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortBy', require('../sortBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedIndex.js b/node_modules/lodash/fp/sortedIndex.js
deleted file mode 100644
index 364a054..0000000
--- a/node_modules/lodash/fp/sortedIndex.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedIndex', require('../sortedIndex'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedIndexBy.js b/node_modules/lodash/fp/sortedIndexBy.js
deleted file mode 100644
index 9593dbd..0000000
--- a/node_modules/lodash/fp/sortedIndexBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedIndexBy', require('../sortedIndexBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedIndexOf.js b/node_modules/lodash/fp/sortedIndexOf.js
deleted file mode 100644
index c9084ca..0000000
--- a/node_modules/lodash/fp/sortedIndexOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedIndexOf', require('../sortedIndexOf'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedLastIndex.js b/node_modules/lodash/fp/sortedLastIndex.js
deleted file mode 100644
index 47fe241..0000000
--- a/node_modules/lodash/fp/sortedLastIndex.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedLastIndex', require('../sortedLastIndex'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedLastIndexBy.js b/node_modules/lodash/fp/sortedLastIndexBy.js
deleted file mode 100644
index 0f9a347..0000000
--- a/node_modules/lodash/fp/sortedLastIndexBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedLastIndexBy', require('../sortedLastIndexBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedLastIndexOf.js b/node_modules/lodash/fp/sortedLastIndexOf.js
deleted file mode 100644
index 0d4d932..0000000
--- a/node_modules/lodash/fp/sortedLastIndexOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedLastIndexOf', require('../sortedLastIndexOf'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedUniq.js b/node_modules/lodash/fp/sortedUniq.js
deleted file mode 100644
index 882d283..0000000
--- a/node_modules/lodash/fp/sortedUniq.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedUniq', require('../sortedUniq'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sortedUniqBy.js b/node_modules/lodash/fp/sortedUniqBy.js
deleted file mode 100644
index 033db91..0000000
--- a/node_modules/lodash/fp/sortedUniqBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sortedUniqBy', require('../sortedUniqBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/split.js b/node_modules/lodash/fp/split.js
deleted file mode 100644
index 14de1a7..0000000
--- a/node_modules/lodash/fp/split.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('split', require('../split'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/spread.js b/node_modules/lodash/fp/spread.js
deleted file mode 100644
index 2d11b70..0000000
--- a/node_modules/lodash/fp/spread.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('spread', require('../spread'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/spreadFrom.js b/node_modules/lodash/fp/spreadFrom.js
deleted file mode 100644
index 0b630df..0000000
--- a/node_modules/lodash/fp/spreadFrom.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('spreadFrom', require('../spread'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/startCase.js b/node_modules/lodash/fp/startCase.js
deleted file mode 100644
index ada98c9..0000000
--- a/node_modules/lodash/fp/startCase.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('startCase', require('../startCase'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/startsWith.js b/node_modules/lodash/fp/startsWith.js
deleted file mode 100644
index 985e2f2..0000000
--- a/node_modules/lodash/fp/startsWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('startsWith', require('../startsWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/string.js b/node_modules/lodash/fp/string.js
deleted file mode 100644
index 773b037..0000000
--- a/node_modules/lodash/fp/string.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../string'));
diff --git a/node_modules/lodash/fp/stubArray.js b/node_modules/lodash/fp/stubArray.js
deleted file mode 100644
index cd604cb..0000000
--- a/node_modules/lodash/fp/stubArray.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('stubArray', require('../stubArray'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/stubFalse.js b/node_modules/lodash/fp/stubFalse.js
deleted file mode 100644
index 3296664..0000000
--- a/node_modules/lodash/fp/stubFalse.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('stubFalse', require('../stubFalse'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/stubObject.js b/node_modules/lodash/fp/stubObject.js
deleted file mode 100644
index c6c8ec4..0000000
--- a/node_modules/lodash/fp/stubObject.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('stubObject', require('../stubObject'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/stubString.js b/node_modules/lodash/fp/stubString.js
deleted file mode 100644
index 701051e..0000000
--- a/node_modules/lodash/fp/stubString.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('stubString', require('../stubString'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/stubTrue.js b/node_modules/lodash/fp/stubTrue.js
deleted file mode 100644
index 9249082..0000000
--- a/node_modules/lodash/fp/stubTrue.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('stubTrue', require('../stubTrue'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/subtract.js b/node_modules/lodash/fp/subtract.js
deleted file mode 100644
index d32b16d..0000000
--- a/node_modules/lodash/fp/subtract.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('subtract', require('../subtract'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sum.js b/node_modules/lodash/fp/sum.js
deleted file mode 100644
index 5cce12b..0000000
--- a/node_modules/lodash/fp/sum.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sum', require('../sum'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/sumBy.js b/node_modules/lodash/fp/sumBy.js
deleted file mode 100644
index c882656..0000000
--- a/node_modules/lodash/fp/sumBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('sumBy', require('../sumBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/symmetricDifference.js b/node_modules/lodash/fp/symmetricDifference.js
deleted file mode 100644
index 78c16ad..0000000
--- a/node_modules/lodash/fp/symmetricDifference.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./xor');
diff --git a/node_modules/lodash/fp/symmetricDifferenceBy.js b/node_modules/lodash/fp/symmetricDifferenceBy.js
deleted file mode 100644
index 298fc7f..0000000
--- a/node_modules/lodash/fp/symmetricDifferenceBy.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./xorBy');
diff --git a/node_modules/lodash/fp/symmetricDifferenceWith.js b/node_modules/lodash/fp/symmetricDifferenceWith.js
deleted file mode 100644
index 70bc6fa..0000000
--- a/node_modules/lodash/fp/symmetricDifferenceWith.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./xorWith');
diff --git a/node_modules/lodash/fp/tail.js b/node_modules/lodash/fp/tail.js
deleted file mode 100644
index f122f0a..0000000
--- a/node_modules/lodash/fp/tail.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('tail', require('../tail'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/take.js b/node_modules/lodash/fp/take.js
deleted file mode 100644
index 9af98a7..0000000
--- a/node_modules/lodash/fp/take.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('take', require('../take'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/takeLast.js b/node_modules/lodash/fp/takeLast.js
deleted file mode 100644
index e98c84a..0000000
--- a/node_modules/lodash/fp/takeLast.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./takeRight');
diff --git a/node_modules/lodash/fp/takeLastWhile.js b/node_modules/lodash/fp/takeLastWhile.js
deleted file mode 100644
index 5367968..0000000
--- a/node_modules/lodash/fp/takeLastWhile.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./takeRightWhile');
diff --git a/node_modules/lodash/fp/takeRight.js b/node_modules/lodash/fp/takeRight.js
deleted file mode 100644
index b82950a..0000000
--- a/node_modules/lodash/fp/takeRight.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('takeRight', require('../takeRight'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/takeRightWhile.js b/node_modules/lodash/fp/takeRightWhile.js
deleted file mode 100644
index 8ffb0a2..0000000
--- a/node_modules/lodash/fp/takeRightWhile.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('takeRightWhile', require('../takeRightWhile'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/takeWhile.js b/node_modules/lodash/fp/takeWhile.js
deleted file mode 100644
index 2813664..0000000
--- a/node_modules/lodash/fp/takeWhile.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('takeWhile', require('../takeWhile'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/tap.js b/node_modules/lodash/fp/tap.js
deleted file mode 100644
index d33ad6e..0000000
--- a/node_modules/lodash/fp/tap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('tap', require('../tap'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/template.js b/node_modules/lodash/fp/template.js
deleted file mode 100644
index 74857e1..0000000
--- a/node_modules/lodash/fp/template.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('template', require('../template'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/templateSettings.js b/node_modules/lodash/fp/templateSettings.js
deleted file mode 100644
index 7bcc0a8..0000000
--- a/node_modules/lodash/fp/templateSettings.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('templateSettings', require('../templateSettings'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/throttle.js b/node_modules/lodash/fp/throttle.js
deleted file mode 100644
index 77fff14..0000000
--- a/node_modules/lodash/fp/throttle.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('throttle', require('../throttle'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/thru.js b/node_modules/lodash/fp/thru.js
deleted file mode 100644
index d42b3b1..0000000
--- a/node_modules/lodash/fp/thru.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('thru', require('../thru'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/times.js b/node_modules/lodash/fp/times.js
deleted file mode 100644
index 0dab06d..0000000
--- a/node_modules/lodash/fp/times.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('times', require('../times'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toArray.js b/node_modules/lodash/fp/toArray.js
deleted file mode 100644
index f0c360a..0000000
--- a/node_modules/lodash/fp/toArray.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toArray', require('../toArray'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toFinite.js b/node_modules/lodash/fp/toFinite.js
deleted file mode 100644
index 3a47687..0000000
--- a/node_modules/lodash/fp/toFinite.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toFinite', require('../toFinite'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toInteger.js b/node_modules/lodash/fp/toInteger.js
deleted file mode 100644
index e0af6a7..0000000
--- a/node_modules/lodash/fp/toInteger.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toInteger', require('../toInteger'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toIterator.js b/node_modules/lodash/fp/toIterator.js
deleted file mode 100644
index 65e6baa..0000000
--- a/node_modules/lodash/fp/toIterator.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toIterator', require('../toIterator'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toJSON.js b/node_modules/lodash/fp/toJSON.js
deleted file mode 100644
index 2d718d0..0000000
--- a/node_modules/lodash/fp/toJSON.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toJSON', require('../toJSON'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toLength.js b/node_modules/lodash/fp/toLength.js
deleted file mode 100644
index b97cdd9..0000000
--- a/node_modules/lodash/fp/toLength.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toLength', require('../toLength'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toLower.js b/node_modules/lodash/fp/toLower.js
deleted file mode 100644
index 616ef36..0000000
--- a/node_modules/lodash/fp/toLower.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toLower', require('../toLower'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toNumber.js b/node_modules/lodash/fp/toNumber.js
deleted file mode 100644
index d0c6f4d..0000000
--- a/node_modules/lodash/fp/toNumber.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toNumber', require('../toNumber'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toPairs.js b/node_modules/lodash/fp/toPairs.js
deleted file mode 100644
index af78378..0000000
--- a/node_modules/lodash/fp/toPairs.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toPairs', require('../toPairs'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toPairsIn.js b/node_modules/lodash/fp/toPairsIn.js
deleted file mode 100644
index 66504ab..0000000
--- a/node_modules/lodash/fp/toPairsIn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toPairsIn', require('../toPairsIn'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toPath.js b/node_modules/lodash/fp/toPath.js
deleted file mode 100644
index b4d5e50..0000000
--- a/node_modules/lodash/fp/toPath.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toPath', require('../toPath'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toPlainObject.js b/node_modules/lodash/fp/toPlainObject.js
deleted file mode 100644
index 278bb86..0000000
--- a/node_modules/lodash/fp/toPlainObject.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toPlainObject', require('../toPlainObject'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toSafeInteger.js b/node_modules/lodash/fp/toSafeInteger.js
deleted file mode 100644
index 367a26f..0000000
--- a/node_modules/lodash/fp/toSafeInteger.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toSafeInteger', require('../toSafeInteger'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toString.js b/node_modules/lodash/fp/toString.js
deleted file mode 100644
index cec4f8e..0000000
--- a/node_modules/lodash/fp/toString.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toString', require('../toString'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/toUpper.js b/node_modules/lodash/fp/toUpper.js
deleted file mode 100644
index 54f9a56..0000000
--- a/node_modules/lodash/fp/toUpper.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('toUpper', require('../toUpper'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/transform.js b/node_modules/lodash/fp/transform.js
deleted file mode 100644
index 759d088..0000000
--- a/node_modules/lodash/fp/transform.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('transform', require('../transform'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/trim.js b/node_modules/lodash/fp/trim.js
deleted file mode 100644
index e6319a7..0000000
--- a/node_modules/lodash/fp/trim.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('trim', require('../trim'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/trimChars.js b/node_modules/lodash/fp/trimChars.js
deleted file mode 100644
index c9294de..0000000
--- a/node_modules/lodash/fp/trimChars.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('trimChars', require('../trim'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/trimCharsEnd.js b/node_modules/lodash/fp/trimCharsEnd.js
deleted file mode 100644
index 284bc2f..0000000
--- a/node_modules/lodash/fp/trimCharsEnd.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('trimCharsEnd', require('../trimEnd'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/trimCharsStart.js b/node_modules/lodash/fp/trimCharsStart.js
deleted file mode 100644
index ff0ee65..0000000
--- a/node_modules/lodash/fp/trimCharsStart.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('trimCharsStart', require('../trimStart'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/trimEnd.js b/node_modules/lodash/fp/trimEnd.js
deleted file mode 100644
index 7190880..0000000
--- a/node_modules/lodash/fp/trimEnd.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('trimEnd', require('../trimEnd'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/trimStart.js b/node_modules/lodash/fp/trimStart.js
deleted file mode 100644
index fda902c..0000000
--- a/node_modules/lodash/fp/trimStart.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('trimStart', require('../trimStart'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/truncate.js b/node_modules/lodash/fp/truncate.js
deleted file mode 100644
index d265c1d..0000000
--- a/node_modules/lodash/fp/truncate.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('truncate', require('../truncate'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/unapply.js b/node_modules/lodash/fp/unapply.js
deleted file mode 100644
index c5dfe77..0000000
--- a/node_modules/lodash/fp/unapply.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./rest');
diff --git a/node_modules/lodash/fp/unary.js b/node_modules/lodash/fp/unary.js
deleted file mode 100644
index 286c945..0000000
--- a/node_modules/lodash/fp/unary.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('unary', require('../unary'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/unescape.js b/node_modules/lodash/fp/unescape.js
deleted file mode 100644
index fddcb46..0000000
--- a/node_modules/lodash/fp/unescape.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('unescape', require('../unescape'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/union.js b/node_modules/lodash/fp/union.js
deleted file mode 100644
index ef8228d..0000000
--- a/node_modules/lodash/fp/union.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('union', require('../union'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/unionBy.js b/node_modules/lodash/fp/unionBy.js
deleted file mode 100644
index 603687a..0000000
--- a/node_modules/lodash/fp/unionBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('unionBy', require('../unionBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/unionWith.js b/node_modules/lodash/fp/unionWith.js
deleted file mode 100644
index 65bb3a7..0000000
--- a/node_modules/lodash/fp/unionWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('unionWith', require('../unionWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/uniq.js b/node_modules/lodash/fp/uniq.js
deleted file mode 100644
index bc18524..0000000
--- a/node_modules/lodash/fp/uniq.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('uniq', require('../uniq'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/uniqBy.js b/node_modules/lodash/fp/uniqBy.js
deleted file mode 100644
index 634c6a8..0000000
--- a/node_modules/lodash/fp/uniqBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('uniqBy', require('../uniqBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/uniqWith.js b/node_modules/lodash/fp/uniqWith.js
deleted file mode 100644
index 0ec601a..0000000
--- a/node_modules/lodash/fp/uniqWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('uniqWith', require('../uniqWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/uniqueId.js b/node_modules/lodash/fp/uniqueId.js
deleted file mode 100644
index aa8fc2f..0000000
--- a/node_modules/lodash/fp/uniqueId.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('uniqueId', require('../uniqueId'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/unnest.js b/node_modules/lodash/fp/unnest.js
deleted file mode 100644
index 5d34060..0000000
--- a/node_modules/lodash/fp/unnest.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./flatten');
diff --git a/node_modules/lodash/fp/unset.js b/node_modules/lodash/fp/unset.js
deleted file mode 100644
index ea203a0..0000000
--- a/node_modules/lodash/fp/unset.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('unset', require('../unset'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/unzip.js b/node_modules/lodash/fp/unzip.js
deleted file mode 100644
index cc364b3..0000000
--- a/node_modules/lodash/fp/unzip.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('unzip', require('../unzip'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/unzipWith.js b/node_modules/lodash/fp/unzipWith.js
deleted file mode 100644
index 182eaa1..0000000
--- a/node_modules/lodash/fp/unzipWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('unzipWith', require('../unzipWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/update.js b/node_modules/lodash/fp/update.js
deleted file mode 100644
index b8ce2cc..0000000
--- a/node_modules/lodash/fp/update.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('update', require('../update'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/updateWith.js b/node_modules/lodash/fp/updateWith.js
deleted file mode 100644
index d5e8282..0000000
--- a/node_modules/lodash/fp/updateWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('updateWith', require('../updateWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/upperCase.js b/node_modules/lodash/fp/upperCase.js
deleted file mode 100644
index c886f20..0000000
--- a/node_modules/lodash/fp/upperCase.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('upperCase', require('../upperCase'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/upperFirst.js b/node_modules/lodash/fp/upperFirst.js
deleted file mode 100644
index d8c04df..0000000
--- a/node_modules/lodash/fp/upperFirst.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('upperFirst', require('../upperFirst'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/useWith.js b/node_modules/lodash/fp/useWith.js
deleted file mode 100644
index d8b3df5..0000000
--- a/node_modules/lodash/fp/useWith.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./overArgs');
diff --git a/node_modules/lodash/fp/util.js b/node_modules/lodash/fp/util.js
deleted file mode 100644
index 18c00ba..0000000
--- a/node_modules/lodash/fp/util.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var convert = require('./convert');
-module.exports = convert(require('../util'));
diff --git a/node_modules/lodash/fp/value.js b/node_modules/lodash/fp/value.js
deleted file mode 100644
index 555eec7..0000000
--- a/node_modules/lodash/fp/value.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('value', require('../value'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/valueOf.js b/node_modules/lodash/fp/valueOf.js
deleted file mode 100644
index f968807..0000000
--- a/node_modules/lodash/fp/valueOf.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('valueOf', require('../valueOf'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/values.js b/node_modules/lodash/fp/values.js
deleted file mode 100644
index 2dfc561..0000000
--- a/node_modules/lodash/fp/values.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('values', require('../values'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/valuesIn.js b/node_modules/lodash/fp/valuesIn.js
deleted file mode 100644
index a1b2bb8..0000000
--- a/node_modules/lodash/fp/valuesIn.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('valuesIn', require('../valuesIn'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/where.js b/node_modules/lodash/fp/where.js
deleted file mode 100644
index 3247f64..0000000
--- a/node_modules/lodash/fp/where.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./conformsTo');
diff --git a/node_modules/lodash/fp/whereEq.js b/node_modules/lodash/fp/whereEq.js
deleted file mode 100644
index 29d1e1e..0000000
--- a/node_modules/lodash/fp/whereEq.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./isMatch');
diff --git a/node_modules/lodash/fp/without.js b/node_modules/lodash/fp/without.js
deleted file mode 100644
index bad9e12..0000000
--- a/node_modules/lodash/fp/without.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('without', require('../without'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/words.js b/node_modules/lodash/fp/words.js
deleted file mode 100644
index 4a90141..0000000
--- a/node_modules/lodash/fp/words.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('words', require('../words'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/wrap.js b/node_modules/lodash/fp/wrap.js
deleted file mode 100644
index e93bd8a..0000000
--- a/node_modules/lodash/fp/wrap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('wrap', require('../wrap'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/wrapperAt.js b/node_modules/lodash/fp/wrapperAt.js
deleted file mode 100644
index 8f0a310..0000000
--- a/node_modules/lodash/fp/wrapperAt.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('wrapperAt', require('../wrapperAt'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/wrapperChain.js b/node_modules/lodash/fp/wrapperChain.js
deleted file mode 100644
index 2a48ea2..0000000
--- a/node_modules/lodash/fp/wrapperChain.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('wrapperChain', require('../wrapperChain'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/wrapperLodash.js b/node_modules/lodash/fp/wrapperLodash.js
deleted file mode 100644
index a7162d0..0000000
--- a/node_modules/lodash/fp/wrapperLodash.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('wrapperLodash', require('../wrapperLodash'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/wrapperReverse.js b/node_modules/lodash/fp/wrapperReverse.js
deleted file mode 100644
index e1481aa..0000000
--- a/node_modules/lodash/fp/wrapperReverse.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('wrapperReverse', require('../wrapperReverse'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/wrapperValue.js b/node_modules/lodash/fp/wrapperValue.js
deleted file mode 100644
index 8eb9112..0000000
--- a/node_modules/lodash/fp/wrapperValue.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('wrapperValue', require('../wrapperValue'), require('./_falseOptions'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/xor.js b/node_modules/lodash/fp/xor.js
deleted file mode 100644
index 29e2819..0000000
--- a/node_modules/lodash/fp/xor.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('xor', require('../xor'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/xorBy.js b/node_modules/lodash/fp/xorBy.js
deleted file mode 100644
index b355686..0000000
--- a/node_modules/lodash/fp/xorBy.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('xorBy', require('../xorBy'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/xorWith.js b/node_modules/lodash/fp/xorWith.js
deleted file mode 100644
index 8e05739..0000000
--- a/node_modules/lodash/fp/xorWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('xorWith', require('../xorWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/zip.js b/node_modules/lodash/fp/zip.js
deleted file mode 100644
index 69e147a..0000000
--- a/node_modules/lodash/fp/zip.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('zip', require('../zip'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/zipAll.js b/node_modules/lodash/fp/zipAll.js
deleted file mode 100644
index efa8ccb..0000000
--- a/node_modules/lodash/fp/zipAll.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('zipAll', require('../zip'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/zipObj.js b/node_modules/lodash/fp/zipObj.js
deleted file mode 100644
index f4a3453..0000000
--- a/node_modules/lodash/fp/zipObj.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./zipObject');
diff --git a/node_modules/lodash/fp/zipObject.js b/node_modules/lodash/fp/zipObject.js
deleted file mode 100644
index 462dbb6..0000000
--- a/node_modules/lodash/fp/zipObject.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('zipObject', require('../zipObject'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/zipObjectDeep.js b/node_modules/lodash/fp/zipObjectDeep.js
deleted file mode 100644
index 53a5d33..0000000
--- a/node_modules/lodash/fp/zipObjectDeep.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('zipObjectDeep', require('../zipObjectDeep'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fp/zipWith.js b/node_modules/lodash/fp/zipWith.js
deleted file mode 100644
index c5cf9e2..0000000
--- a/node_modules/lodash/fp/zipWith.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var convert = require('./convert'),
- func = convert('zipWith', require('../zipWith'));
-
-func.placeholder = require('./placeholder');
-module.exports = func;
diff --git a/node_modules/lodash/fromPairs.js b/node_modules/lodash/fromPairs.js
deleted file mode 100644
index ee7940d..0000000
--- a/node_modules/lodash/fromPairs.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * The inverse of `_.toPairs`; this method returns an object composed
- * from key-value `pairs`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} pairs The key-value pairs.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.fromPairs([['a', 1], ['b', 2]]);
- * // => { 'a': 1, 'b': 2 }
- */
-function fromPairs(pairs) {
- var index = -1,
- length = pairs == null ? 0 : pairs.length,
- result = {};
-
- while (++index < length) {
- var pair = pairs[index];
- result[pair[0]] = pair[1];
- }
- return result;
-}
-
-module.exports = fromPairs;
diff --git a/node_modules/lodash/function.js b/node_modules/lodash/function.js
deleted file mode 100644
index b0fc6d9..0000000
--- a/node_modules/lodash/function.js
+++ /dev/null
@@ -1,25 +0,0 @@
-module.exports = {
- 'after': require('./after'),
- 'ary': require('./ary'),
- 'before': require('./before'),
- 'bind': require('./bind'),
- 'bindKey': require('./bindKey'),
- 'curry': require('./curry'),
- 'curryRight': require('./curryRight'),
- 'debounce': require('./debounce'),
- 'defer': require('./defer'),
- 'delay': require('./delay'),
- 'flip': require('./flip'),
- 'memoize': require('./memoize'),
- 'negate': require('./negate'),
- 'once': require('./once'),
- 'overArgs': require('./overArgs'),
- 'partial': require('./partial'),
- 'partialRight': require('./partialRight'),
- 'rearg': require('./rearg'),
- 'rest': require('./rest'),
- 'spread': require('./spread'),
- 'throttle': require('./throttle'),
- 'unary': require('./unary'),
- 'wrap': require('./wrap')
-};
diff --git a/node_modules/lodash/functions.js b/node_modules/lodash/functions.js
deleted file mode 100644
index 9722928..0000000
--- a/node_modules/lodash/functions.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseFunctions = require('./_baseFunctions'),
- keys = require('./keys');
-
-/**
- * Creates an array of function property names from own enumerable properties
- * of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functionsIn
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functions(new Foo);
- * // => ['a', 'b']
- */
-function functions(object) {
- return object == null ? [] : baseFunctions(object, keys(object));
-}
-
-module.exports = functions;
diff --git a/node_modules/lodash/functionsIn.js b/node_modules/lodash/functionsIn.js
deleted file mode 100644
index f00345d..0000000
--- a/node_modules/lodash/functionsIn.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseFunctions = require('./_baseFunctions'),
- keysIn = require('./keysIn');
-
-/**
- * Creates an array of function property names from own and inherited
- * enumerable properties of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functions
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functionsIn(new Foo);
- * // => ['a', 'b', 'c']
- */
-function functionsIn(object) {
- return object == null ? [] : baseFunctions(object, keysIn(object));
-}
-
-module.exports = functionsIn;
diff --git a/node_modules/lodash/get.js b/node_modules/lodash/get.js
deleted file mode 100644
index 8805ff9..0000000
--- a/node_modules/lodash/get.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseGet = require('./_baseGet');
-
-/**
- * Gets the value at `path` of `object`. If the resolved value is
- * `undefined`, the `defaultValue` is returned in its place.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.get(object, 'a[0].b.c');
- * // => 3
- *
- * _.get(object, ['a', '0', 'b', 'c']);
- * // => 3
- *
- * _.get(object, 'a.b.c', 'default');
- * // => 'default'
- */
-function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
-}
-
-module.exports = get;
diff --git a/node_modules/lodash/groupBy.js b/node_modules/lodash/groupBy.js
deleted file mode 100644
index babf4f6..0000000
--- a/node_modules/lodash/groupBy.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var baseAssignValue = require('./_baseAssignValue'),
- createAggregator = require('./_createAggregator');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The order of grouped values
- * is determined by the order they occur in `collection`. The corresponding
- * value of each key is an array of elements responsible for generating the
- * key. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.groupBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': [4.2], '6': [6.1, 6.3] }
- *
- * // The `_.property` iteratee shorthand.
- * _.groupBy(['one', 'two', 'three'], 'length');
- * // => { '3': ['one', 'two'], '5': ['three'] }
- */
-var groupBy = createAggregator(function(result, value, key) {
- if (hasOwnProperty.call(result, key)) {
- result[key].push(value);
- } else {
- baseAssignValue(result, key, [value]);
- }
-});
-
-module.exports = groupBy;
diff --git a/node_modules/lodash/gt.js b/node_modules/lodash/gt.js
deleted file mode 100644
index 3a66282..0000000
--- a/node_modules/lodash/gt.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseGt = require('./_baseGt'),
- createRelationalOperation = require('./_createRelationalOperation');
-
-/**
- * Checks if `value` is greater than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- * @see _.lt
- * @example
- *
- * _.gt(3, 1);
- * // => true
- *
- * _.gt(3, 3);
- * // => false
- *
- * _.gt(1, 3);
- * // => false
- */
-var gt = createRelationalOperation(baseGt);
-
-module.exports = gt;
diff --git a/node_modules/lodash/gte.js b/node_modules/lodash/gte.js
deleted file mode 100644
index 4180a68..0000000
--- a/node_modules/lodash/gte.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var createRelationalOperation = require('./_createRelationalOperation');
-
-/**
- * Checks if `value` is greater than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than or equal to
- * `other`, else `false`.
- * @see _.lte
- * @example
- *
- * _.gte(3, 1);
- * // => true
- *
- * _.gte(3, 3);
- * // => true
- *
- * _.gte(1, 3);
- * // => false
- */
-var gte = createRelationalOperation(function(value, other) {
- return value >= other;
-});
-
-module.exports = gte;
diff --git a/node_modules/lodash/has.js b/node_modules/lodash/has.js
deleted file mode 100644
index 34df55e..0000000
--- a/node_modules/lodash/has.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var baseHas = require('./_baseHas'),
- hasPath = require('./_hasPath');
-
-/**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': 2 } };
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b');
- * // => true
- *
- * _.has(object, ['a', 'b']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
-function has(object, path) {
- return object != null && hasPath(object, path, baseHas);
-}
-
-module.exports = has;
diff --git a/node_modules/lodash/hasIn.js b/node_modules/lodash/hasIn.js
deleted file mode 100644
index 06a3686..0000000
--- a/node_modules/lodash/hasIn.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseHasIn = require('./_baseHasIn'),
- hasPath = require('./_hasPath');
-
-/**
- * Checks if `path` is a direct or inherited property of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.hasIn(object, 'a');
- * // => true
- *
- * _.hasIn(object, 'a.b');
- * // => true
- *
- * _.hasIn(object, ['a', 'b']);
- * // => true
- *
- * _.hasIn(object, 'b');
- * // => false
- */
-function hasIn(object, path) {
- return object != null && hasPath(object, path, baseHasIn);
-}
-
-module.exports = hasIn;
diff --git a/node_modules/lodash/head.js b/node_modules/lodash/head.js
deleted file mode 100644
index dee9d1f..0000000
--- a/node_modules/lodash/head.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Gets the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias first
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the first element of `array`.
- * @example
- *
- * _.head([1, 2, 3]);
- * // => 1
- *
- * _.head([]);
- * // => undefined
- */
-function head(array) {
- return (array && array.length) ? array[0] : undefined;
-}
-
-module.exports = head;
diff --git a/node_modules/lodash/identity.js b/node_modules/lodash/identity.js
deleted file mode 100644
index 2d5d963..0000000
--- a/node_modules/lodash/identity.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * This method returns the first argument it receives.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'a': 1 };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
-function identity(value) {
- return value;
-}
-
-module.exports = identity;
diff --git a/node_modules/lodash/inRange.js b/node_modules/lodash/inRange.js
deleted file mode 100644
index f20728d..0000000
--- a/node_modules/lodash/inRange.js
+++ /dev/null
@@ -1,55 +0,0 @@
-var baseInRange = require('./_baseInRange'),
- toFinite = require('./toFinite'),
- toNumber = require('./toNumber');
-
-/**
- * Checks if `n` is between `start` and up to, but not including, `end`. If
- * `end` is not specified, it's set to `start` with `start` then set to `0`.
- * If `start` is greater than `end` the params are swapped to support
- * negative ranges.
- *
- * @static
- * @memberOf _
- * @since 3.3.0
- * @category Number
- * @param {number} number The number to check.
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- * @see _.range, _.rangeRight
- * @example
- *
- * _.inRange(3, 2, 4);
- * // => true
- *
- * _.inRange(4, 8);
- * // => true
- *
- * _.inRange(4, 2);
- * // => false
- *
- * _.inRange(2, 2);
- * // => false
- *
- * _.inRange(1.2, 2);
- * // => true
- *
- * _.inRange(5.2, 4);
- * // => false
- *
- * _.inRange(-3, -2, -6);
- * // => true
- */
-function inRange(number, start, end) {
- start = toFinite(start);
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toFinite(end);
- }
- number = toNumber(number);
- return baseInRange(number, start, end);
-}
-
-module.exports = inRange;
diff --git a/node_modules/lodash/includes.js b/node_modules/lodash/includes.js
deleted file mode 100644
index ae0deed..0000000
--- a/node_modules/lodash/includes.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var baseIndexOf = require('./_baseIndexOf'),
- isArrayLike = require('./isArrayLike'),
- isString = require('./isString'),
- toInteger = require('./toInteger'),
- values = require('./values');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * Checks if `value` is in `collection`. If `collection` is a string, it's
- * checked for a substring of `value`, otherwise
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * is used for equality comparisons. If `fromIndex` is negative, it's used as
- * the offset from the end of `collection`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object|string} collection The collection to inspect.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
- * @example
- *
- * _.includes([1, 2, 3], 1);
- * // => true
- *
- * _.includes([1, 2, 3], 1, 2);
- * // => false
- *
- * _.includes({ 'a': 1, 'b': 2 }, 1);
- * // => true
- *
- * _.includes('abcd', 'bc');
- * // => true
- */
-function includes(collection, value, fromIndex, guard) {
- collection = isArrayLike(collection) ? collection : values(collection);
- fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
-
- var length = collection.length;
- if (fromIndex < 0) {
- fromIndex = nativeMax(length + fromIndex, 0);
- }
- return isString(collection)
- ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
- : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
-}
-
-module.exports = includes;
diff --git a/node_modules/lodash/index.js b/node_modules/lodash/index.js
deleted file mode 100644
index 5d063e2..0000000
--- a/node_modules/lodash/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./lodash'); \ No newline at end of file
diff --git a/node_modules/lodash/indexOf.js b/node_modules/lodash/indexOf.js
deleted file mode 100644
index 3c644af..0000000
--- a/node_modules/lodash/indexOf.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var baseIndexOf = require('./_baseIndexOf'),
- toInteger = require('./toInteger');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the
- * offset from the end of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // Search from the `fromIndex`.
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
-function indexOf(array, value, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseIndexOf(array, value, index);
-}
-
-module.exports = indexOf;
diff --git a/node_modules/lodash/initial.js b/node_modules/lodash/initial.js
deleted file mode 100644
index f47fc50..0000000
--- a/node_modules/lodash/initial.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseSlice = require('./_baseSlice');
-
-/**
- * Gets all but the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.initial([1, 2, 3]);
- * // => [1, 2]
- */
-function initial(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseSlice(array, 0, -1) : [];
-}
-
-module.exports = initial;
diff --git a/node_modules/lodash/intersection.js b/node_modules/lodash/intersection.js
deleted file mode 100644
index a94c135..0000000
--- a/node_modules/lodash/intersection.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIntersection = require('./_baseIntersection'),
- baseRest = require('./_baseRest'),
- castArrayLikeObject = require('./_castArrayLikeObject');
-
-/**
- * Creates an array of unique values that are included in all given arrays
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons. The order and references of result values are
- * determined by the first array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersection([2, 1], [2, 3]);
- * // => [2]
- */
-var intersection = baseRest(function(arrays) {
- var mapped = arrayMap(arrays, castArrayLikeObject);
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped)
- : [];
-});
-
-module.exports = intersection;
diff --git a/node_modules/lodash/intersectionBy.js b/node_modules/lodash/intersectionBy.js
deleted file mode 100644
index 31461aa..0000000
--- a/node_modules/lodash/intersectionBy.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIntersection = require('./_baseIntersection'),
- baseIteratee = require('./_baseIteratee'),
- baseRest = require('./_baseRest'),
- castArrayLikeObject = require('./_castArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.intersection` except that it accepts `iteratee`
- * which is invoked for each element of each `arrays` to generate the criterion
- * by which they're compared. The order and references of result values are
- * determined by the first array. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [2.1]
- *
- * // The `_.property` iteratee shorthand.
- * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }]
- */
-var intersectionBy = baseRest(function(arrays) {
- var iteratee = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- if (iteratee === last(mapped)) {
- iteratee = undefined;
- } else {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, baseIteratee(iteratee, 2))
- : [];
-});
-
-module.exports = intersectionBy;
diff --git a/node_modules/lodash/intersectionWith.js b/node_modules/lodash/intersectionWith.js
deleted file mode 100644
index 63cabfa..0000000
--- a/node_modules/lodash/intersectionWith.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIntersection = require('./_baseIntersection'),
- baseRest = require('./_baseRest'),
- castArrayLikeObject = require('./_castArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.intersection` except that it accepts `comparator`
- * which is invoked to compare elements of `arrays`. The order and references
- * of result values are determined by the first array. The comparator is
- * invoked with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.intersectionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }]
- */
-var intersectionWith = baseRest(function(arrays) {
- var comparator = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- comparator = typeof comparator == 'function' ? comparator : undefined;
- if (comparator) {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, undefined, comparator)
- : [];
-});
-
-module.exports = intersectionWith;
diff --git a/node_modules/lodash/invert.js b/node_modules/lodash/invert.js
deleted file mode 100644
index 8c47950..0000000
--- a/node_modules/lodash/invert.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var constant = require('./constant'),
- createInverter = require('./_createInverter'),
- identity = require('./identity');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var nativeObjectToString = objectProto.toString;
-
-/**
- * Creates an object composed of the inverted keys and values of `object`.
- * If `object` contains duplicate values, subsequent values overwrite
- * property assignments of previous values.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Object
- * @param {Object} object The object to invert.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invert(object);
- * // => { '1': 'c', '2': 'b' }
- */
-var invert = createInverter(function(result, value, key) {
- if (value != null &&
- typeof value.toString != 'function') {
- value = nativeObjectToString.call(value);
- }
-
- result[value] = key;
-}, constant(identity));
-
-module.exports = invert;
diff --git a/node_modules/lodash/invertBy.js b/node_modules/lodash/invertBy.js
deleted file mode 100644
index 3f4f7e5..0000000
--- a/node_modules/lodash/invertBy.js
+++ /dev/null
@@ -1,56 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- createInverter = require('./_createInverter');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var nativeObjectToString = objectProto.toString;
-
-/**
- * This method is like `_.invert` except that the inverted object is generated
- * from the results of running each element of `object` thru `iteratee`. The
- * corresponding inverted value of each inverted key is an array of keys
- * responsible for generating the inverted value. The iteratee is invoked
- * with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Object
- * @param {Object} object The object to invert.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invertBy(object);
- * // => { '1': ['a', 'c'], '2': ['b'] }
- *
- * _.invertBy(object, function(value) {
- * return 'group' + value;
- * });
- * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
- */
-var invertBy = createInverter(function(result, value, key) {
- if (value != null &&
- typeof value.toString != 'function') {
- value = nativeObjectToString.call(value);
- }
-
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
-}, baseIteratee);
-
-module.exports = invertBy;
diff --git a/node_modules/lodash/invoke.js b/node_modules/lodash/invoke.js
deleted file mode 100644
index 97d51eb..0000000
--- a/node_modules/lodash/invoke.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var baseInvoke = require('./_baseInvoke'),
- baseRest = require('./_baseRest');
-
-/**
- * Invokes the method at `path` of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
- *
- * _.invoke(object, 'a[0].b.c.slice', 1, 3);
- * // => [2, 3]
- */
-var invoke = baseRest(baseInvoke);
-
-module.exports = invoke;
diff --git a/node_modules/lodash/invokeMap.js b/node_modules/lodash/invokeMap.js
deleted file mode 100644
index 8da5126..0000000
--- a/node_modules/lodash/invokeMap.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var apply = require('./_apply'),
- baseEach = require('./_baseEach'),
- baseInvoke = require('./_baseInvoke'),
- baseRest = require('./_baseRest'),
- isArrayLike = require('./isArrayLike');
-
-/**
- * Invokes the method at `path` of each element in `collection`, returning
- * an array of the results of each invoked method. Any additional arguments
- * are provided to each invoked method. If `path` is a function, it's invoked
- * for, and `this` bound to, each element in `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|string} path The path of the method to invoke or
- * the function invoked per iteration.
- * @param {...*} [args] The arguments to invoke each method with.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
- * // => [[1, 5, 7], [1, 2, 3]]
- *
- * _.invokeMap([123, 456], String.prototype.split, '');
- * // => [['1', '2', '3'], ['4', '5', '6']]
- */
-var invokeMap = baseRest(function(collection, path, args) {
- var index = -1,
- isFunc = typeof path == 'function',
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value) {
- result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
- });
- return result;
-});
-
-module.exports = invokeMap;
diff --git a/node_modules/lodash/isArguments.js b/node_modules/lodash/isArguments.js
deleted file mode 100644
index 8b9ed66..0000000
--- a/node_modules/lodash/isArguments.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseIsArguments = require('./_baseIsArguments'),
- isObjectLike = require('./isObjectLike');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/** Built-in value references. */
-var propertyIsEnumerable = objectProto.propertyIsEnumerable;
-
-/**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
-var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
- !propertyIsEnumerable.call(value, 'callee');
-};
-
-module.exports = isArguments;
diff --git a/node_modules/lodash/isArray.js b/node_modules/lodash/isArray.js
deleted file mode 100644
index 88ab55f..0000000
--- a/node_modules/lodash/isArray.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
-var isArray = Array.isArray;
-
-module.exports = isArray;
diff --git a/node_modules/lodash/isArrayBuffer.js b/node_modules/lodash/isArrayBuffer.js
deleted file mode 100644
index 12904a6..0000000
--- a/node_modules/lodash/isArrayBuffer.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var baseIsArrayBuffer = require('./_baseIsArrayBuffer'),
- baseUnary = require('./_baseUnary'),
- nodeUtil = require('./_nodeUtil');
-
-/* Node.js helper references. */
-var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer;
-
-/**
- * Checks if `value` is classified as an `ArrayBuffer` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
- * @example
- *
- * _.isArrayBuffer(new ArrayBuffer(2));
- * // => true
- *
- * _.isArrayBuffer(new Array(2));
- * // => false
- */
-var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
-
-module.exports = isArrayBuffer;
diff --git a/node_modules/lodash/isArrayLike.js b/node_modules/lodash/isArrayLike.js
deleted file mode 100644
index 0f96680..0000000
--- a/node_modules/lodash/isArrayLike.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var isFunction = require('./isFunction'),
- isLength = require('./isLength');
-
-/**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
-function isArrayLike(value) {
- return value != null && isLength(value.length) && !isFunction(value);
-}
-
-module.exports = isArrayLike;
diff --git a/node_modules/lodash/isArrayLikeObject.js b/node_modules/lodash/isArrayLikeObject.js
deleted file mode 100644
index 6c4812a..0000000
--- a/node_modules/lodash/isArrayLikeObject.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var isArrayLike = require('./isArrayLike'),
- isObjectLike = require('./isObjectLike');
-
-/**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object,
- * else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
-function isArrayLikeObject(value) {
- return isObjectLike(value) && isArrayLike(value);
-}
-
-module.exports = isArrayLikeObject;
diff --git a/node_modules/lodash/isBoolean.js b/node_modules/lodash/isBoolean.js
deleted file mode 100644
index a43ed4b..0000000
--- a/node_modules/lodash/isBoolean.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var boolTag = '[object Boolean]';
-
-/**
- * Checks if `value` is classified as a boolean primitive or object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
- * @example
- *
- * _.isBoolean(false);
- * // => true
- *
- * _.isBoolean(null);
- * // => false
- */
-function isBoolean(value) {
- return value === true || value === false ||
- (isObjectLike(value) && baseGetTag(value) == boolTag);
-}
-
-module.exports = isBoolean;
diff --git a/node_modules/lodash/isBuffer.js b/node_modules/lodash/isBuffer.js
deleted file mode 100644
index c103cc7..0000000
--- a/node_modules/lodash/isBuffer.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var root = require('./_root'),
- stubFalse = require('./stubFalse');
-
-/** Detect free variable `exports`. */
-var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
-
-/** Detect free variable `module`. */
-var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
-/** Detect the popular CommonJS extension `module.exports`. */
-var moduleExports = freeModule && freeModule.exports === freeExports;
-
-/** Built-in value references. */
-var Buffer = moduleExports ? root.Buffer : undefined;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
-
-/**
- * Checks if `value` is a buffer.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
- * @example
- *
- * _.isBuffer(new Buffer(2));
- * // => true
- *
- * _.isBuffer(new Uint8Array(2));
- * // => false
- */
-var isBuffer = nativeIsBuffer || stubFalse;
-
-module.exports = isBuffer;
diff --git a/node_modules/lodash/isDate.js b/node_modules/lodash/isDate.js
deleted file mode 100644
index 7f0209f..0000000
--- a/node_modules/lodash/isDate.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var baseIsDate = require('./_baseIsDate'),
- baseUnary = require('./_baseUnary'),
- nodeUtil = require('./_nodeUtil');
-
-/* Node.js helper references. */
-var nodeIsDate = nodeUtil && nodeUtil.isDate;
-
-/**
- * Checks if `value` is classified as a `Date` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
- * @example
- *
- * _.isDate(new Date);
- * // => true
- *
- * _.isDate('Mon April 23 2012');
- * // => false
- */
-var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
-
-module.exports = isDate;
diff --git a/node_modules/lodash/isElement.js b/node_modules/lodash/isElement.js
deleted file mode 100644
index 76ae29c..0000000
--- a/node_modules/lodash/isElement.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var isObjectLike = require('./isObjectLike'),
- isPlainObject = require('./isPlainObject');
-
-/**
- * Checks if `value` is likely a DOM element.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
- * @example
- *
- * _.isElement(document.body);
- * // => true
- *
- * _.isElement('<body>');
- * // => false
- */
-function isElement(value) {
- return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
-}
-
-module.exports = isElement;
diff --git a/node_modules/lodash/isEmpty.js b/node_modules/lodash/isEmpty.js
deleted file mode 100644
index 3597294..0000000
--- a/node_modules/lodash/isEmpty.js
+++ /dev/null
@@ -1,77 +0,0 @@
-var baseKeys = require('./_baseKeys'),
- getTag = require('./_getTag'),
- isArguments = require('./isArguments'),
- isArray = require('./isArray'),
- isArrayLike = require('./isArrayLike'),
- isBuffer = require('./isBuffer'),
- isPrototype = require('./_isPrototype'),
- isTypedArray = require('./isTypedArray');
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
- setTag = '[object Set]';
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Checks if `value` is an empty object, collection, map, or set.
- *
- * Objects are considered empty if they have no own enumerable string keyed
- * properties.
- *
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
- * jQuery-like collections are considered empty if they have a `length` of `0`.
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
- * @example
- *
- * _.isEmpty(null);
- * // => true
- *
- * _.isEmpty(true);
- * // => true
- *
- * _.isEmpty(1);
- * // => true
- *
- * _.isEmpty([1, 2, 3]);
- * // => false
- *
- * _.isEmpty({ 'a': 1 });
- * // => false
- */
-function isEmpty(value) {
- if (value == null) {
- return true;
- }
- if (isArrayLike(value) &&
- (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
- isBuffer(value) || isTypedArray(value) || isArguments(value))) {
- return !value.length;
- }
- var tag = getTag(value);
- if (tag == mapTag || tag == setTag) {
- return !value.size;
- }
- if (isPrototype(value)) {
- return !baseKeys(value).length;
- }
- for (var key in value) {
- if (hasOwnProperty.call(value, key)) {
- return false;
- }
- }
- return true;
-}
-
-module.exports = isEmpty;
diff --git a/node_modules/lodash/isEqual.js b/node_modules/lodash/isEqual.js
deleted file mode 100644
index 5e23e76..0000000
--- a/node_modules/lodash/isEqual.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var baseIsEqual = require('./_baseIsEqual');
-
-/**
- * Performs a deep comparison between two values to determine if they are
- * equivalent.
- *
- * **Note:** This method supports comparing arrays, array buffers, booleans,
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
- * by their own, not inherited, enumerable properties. Functions and DOM
- * nodes are compared by strict equality, i.e. `===`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.isEqual(object, other);
- * // => true
- *
- * object === other;
- * // => false
- */
-function isEqual(value, other) {
- return baseIsEqual(value, other);
-}
-
-module.exports = isEqual;
diff --git a/node_modules/lodash/isEqualWith.js b/node_modules/lodash/isEqualWith.js
deleted file mode 100644
index 21bdc7f..0000000
--- a/node_modules/lodash/isEqualWith.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var baseIsEqual = require('./_baseIsEqual');
-
-/**
- * This method is like `_.isEqual` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with up to
- * six arguments: (objValue, othValue [, index|key, object, other, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, othValue) {
- * if (isGreeting(objValue) && isGreeting(othValue)) {
- * return true;
- * }
- * }
- *
- * var array = ['hello', 'goodbye'];
- * var other = ['hi', 'goodbye'];
- *
- * _.isEqualWith(array, other, customizer);
- * // => true
- */
-function isEqualWith(value, other, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- var result = customizer ? customizer(value, other) : undefined;
- return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
-}
-
-module.exports = isEqualWith;
diff --git a/node_modules/lodash/isError.js b/node_modules/lodash/isError.js
deleted file mode 100644
index b4f41e0..0000000
--- a/node_modules/lodash/isError.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike'),
- isPlainObject = require('./isPlainObject');
-
-/** `Object#toString` result references. */
-var domExcTag = '[object DOMException]',
- errorTag = '[object Error]';
-
-/**
- * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
- * `SyntaxError`, `TypeError`, or `URIError` object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
- * @example
- *
- * _.isError(new Error);
- * // => true
- *
- * _.isError(Error);
- * // => false
- */
-function isError(value) {
- if (!isObjectLike(value)) {
- return false;
- }
- var tag = baseGetTag(value);
- return tag == errorTag || tag == domExcTag ||
- (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
-}
-
-module.exports = isError;
diff --git a/node_modules/lodash/isFinite.js b/node_modules/lodash/isFinite.js
deleted file mode 100644
index 601842b..0000000
--- a/node_modules/lodash/isFinite.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var root = require('./_root');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeIsFinite = root.isFinite;
-
-/**
- * Checks if `value` is a finite primitive number.
- *
- * **Note:** This method is based on
- * [`Number.isFinite`](https://mdn.io/Number/isFinite).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
- * @example
- *
- * _.isFinite(3);
- * // => true
- *
- * _.isFinite(Number.MIN_VALUE);
- * // => true
- *
- * _.isFinite(Infinity);
- * // => false
- *
- * _.isFinite('3');
- * // => false
- */
-function isFinite(value) {
- return typeof value == 'number' && nativeIsFinite(value);
-}
-
-module.exports = isFinite;
diff --git a/node_modules/lodash/isFunction.js b/node_modules/lodash/isFunction.js
deleted file mode 100644
index 907a8cd..0000000
--- a/node_modules/lodash/isFunction.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObject = require('./isObject');
-
-/** `Object#toString` result references. */
-var asyncTag = '[object AsyncFunction]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- proxyTag = '[object Proxy]';
-
-/**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
-function isFunction(value) {
- if (!isObject(value)) {
- return false;
- }
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
- var tag = baseGetTag(value);
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
-}
-
-module.exports = isFunction;
diff --git a/node_modules/lodash/isInteger.js b/node_modules/lodash/isInteger.js
deleted file mode 100644
index 66aa87d..0000000
--- a/node_modules/lodash/isInteger.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var toInteger = require('./toInteger');
-
-/**
- * Checks if `value` is an integer.
- *
- * **Note:** This method is based on
- * [`Number.isInteger`](https://mdn.io/Number/isInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
- * @example
- *
- * _.isInteger(3);
- * // => true
- *
- * _.isInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isInteger(Infinity);
- * // => false
- *
- * _.isInteger('3');
- * // => false
- */
-function isInteger(value) {
- return typeof value == 'number' && value == toInteger(value);
-}
-
-module.exports = isInteger;
diff --git a/node_modules/lodash/isLength.js b/node_modules/lodash/isLength.js
deleted file mode 100644
index 3a95caa..0000000
--- a/node_modules/lodash/isLength.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This method is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
-function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
-}
-
-module.exports = isLength;
diff --git a/node_modules/lodash/isMap.js b/node_modules/lodash/isMap.js
deleted file mode 100644
index 44f8517..0000000
--- a/node_modules/lodash/isMap.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var baseIsMap = require('./_baseIsMap'),
- baseUnary = require('./_baseUnary'),
- nodeUtil = require('./_nodeUtil');
-
-/* Node.js helper references. */
-var nodeIsMap = nodeUtil && nodeUtil.isMap;
-
-/**
- * Checks if `value` is classified as a `Map` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
- * @example
- *
- * _.isMap(new Map);
- * // => true
- *
- * _.isMap(new WeakMap);
- * // => false
- */
-var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
-
-module.exports = isMap;
diff --git a/node_modules/lodash/isMatch.js b/node_modules/lodash/isMatch.js
deleted file mode 100644
index 9773a18..0000000
--- a/node_modules/lodash/isMatch.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseIsMatch = require('./_baseIsMatch'),
- getMatchData = require('./_getMatchData');
-
-/**
- * Performs a partial deep comparison between `object` and `source` to
- * determine if `object` contains equivalent property values.
- *
- * **Note:** This method is equivalent to `_.matches` when `source` is
- * partially applied.
- *
- * Partial comparisons will match empty array and empty object `source`
- * values against any array or object value, respectively. See `_.isEqual`
- * for a list of supported value comparisons.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- *
- * _.isMatch(object, { 'b': 2 });
- * // => true
- *
- * _.isMatch(object, { 'b': 1 });
- * // => false
- */
-function isMatch(object, source) {
- return object === source || baseIsMatch(object, source, getMatchData(source));
-}
-
-module.exports = isMatch;
diff --git a/node_modules/lodash/isMatchWith.js b/node_modules/lodash/isMatchWith.js
deleted file mode 100644
index 187b6a6..0000000
--- a/node_modules/lodash/isMatchWith.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var baseIsMatch = require('./_baseIsMatch'),
- getMatchData = require('./_getMatchData');
-
-/**
- * This method is like `_.isMatch` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with five
- * arguments: (objValue, srcValue, index|key, object, source).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, srcValue) {
- * if (isGreeting(objValue) && isGreeting(srcValue)) {
- * return true;
- * }
- * }
- *
- * var object = { 'greeting': 'hello' };
- * var source = { 'greeting': 'hi' };
- *
- * _.isMatchWith(object, source, customizer);
- * // => true
- */
-function isMatchWith(object, source, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseIsMatch(object, source, getMatchData(source), customizer);
-}
-
-module.exports = isMatchWith;
diff --git a/node_modules/lodash/isNaN.js b/node_modules/lodash/isNaN.js
deleted file mode 100644
index 7d0d783..0000000
--- a/node_modules/lodash/isNaN.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var isNumber = require('./isNumber');
-
-/**
- * Checks if `value` is `NaN`.
- *
- * **Note:** This method is based on
- * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
- * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
- * `undefined` and other non-number values.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- * @example
- *
- * _.isNaN(NaN);
- * // => true
- *
- * _.isNaN(new Number(NaN));
- * // => true
- *
- * isNaN(undefined);
- * // => true
- *
- * _.isNaN(undefined);
- * // => false
- */
-function isNaN(value) {
- // An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some
- // ActiveX objects in IE.
- return isNumber(value) && value != +value;
-}
-
-module.exports = isNaN;
diff --git a/node_modules/lodash/isNative.js b/node_modules/lodash/isNative.js
deleted file mode 100644
index f0cb8d5..0000000
--- a/node_modules/lodash/isNative.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var baseIsNative = require('./_baseIsNative'),
- isMaskable = require('./_isMaskable');
-
-/** Error message constants. */
-var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.';
-
-/**
- * Checks if `value` is a pristine native function.
- *
- * **Note:** This method can't reliably detect native functions in the presence
- * of the core-js package because core-js circumvents this kind of detection.
- * Despite multiple requests, the core-js maintainer has made it clear: any
- * attempt to fix the detection will be obstructed. As a result, we're left
- * with little choice but to throw an error. Unfortunately, this also affects
- * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
- * which rely on core-js.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- * @example
- *
- * _.isNative(Array.prototype.push);
- * // => true
- *
- * _.isNative(_);
- * // => false
- */
-function isNative(value) {
- if (isMaskable(value)) {
- throw new Error(CORE_ERROR_TEXT);
- }
- return baseIsNative(value);
-}
-
-module.exports = isNative;
diff --git a/node_modules/lodash/isNil.js b/node_modules/lodash/isNil.js
deleted file mode 100644
index 79f0505..0000000
--- a/node_modules/lodash/isNil.js
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Checks if `value` is `null` or `undefined`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
- * @example
- *
- * _.isNil(null);
- * // => true
- *
- * _.isNil(void 0);
- * // => true
- *
- * _.isNil(NaN);
- * // => false
- */
-function isNil(value) {
- return value == null;
-}
-
-module.exports = isNil;
diff --git a/node_modules/lodash/isNull.js b/node_modules/lodash/isNull.js
deleted file mode 100644
index c0a374d..0000000
--- a/node_modules/lodash/isNull.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Checks if `value` is `null`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
- * @example
- *
- * _.isNull(null);
- * // => true
- *
- * _.isNull(void 0);
- * // => false
- */
-function isNull(value) {
- return value === null;
-}
-
-module.exports = isNull;
diff --git a/node_modules/lodash/isNumber.js b/node_modules/lodash/isNumber.js
deleted file mode 100644
index cd34ee4..0000000
--- a/node_modules/lodash/isNumber.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var numberTag = '[object Number]';
-
-/**
- * Checks if `value` is classified as a `Number` primitive or object.
- *
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
- * classified as numbers, use the `_.isFinite` method.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a number, else `false`.
- * @example
- *
- * _.isNumber(3);
- * // => true
- *
- * _.isNumber(Number.MIN_VALUE);
- * // => true
- *
- * _.isNumber(Infinity);
- * // => true
- *
- * _.isNumber('3');
- * // => false
- */
-function isNumber(value) {
- return typeof value == 'number' ||
- (isObjectLike(value) && baseGetTag(value) == numberTag);
-}
-
-module.exports = isNumber;
diff --git a/node_modules/lodash/isObject.js b/node_modules/lodash/isObject.js
deleted file mode 100644
index 1dc8939..0000000
--- a/node_modules/lodash/isObject.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
-function isObject(value) {
- var type = typeof value;
- return value != null && (type == 'object' || type == 'function');
-}
-
-module.exports = isObject;
diff --git a/node_modules/lodash/isObjectLike.js b/node_modules/lodash/isObjectLike.js
deleted file mode 100644
index 301716b..0000000
--- a/node_modules/lodash/isObjectLike.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
-function isObjectLike(value) {
- return value != null && typeof value == 'object';
-}
-
-module.exports = isObjectLike;
diff --git a/node_modules/lodash/isPlainObject.js b/node_modules/lodash/isPlainObject.js
deleted file mode 100644
index 2387373..0000000
--- a/node_modules/lodash/isPlainObject.js
+++ /dev/null
@@ -1,62 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- getPrototype = require('./_getPrototype'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var objectTag = '[object Object]';
-
-/** Used for built-in method references. */
-var funcProto = Function.prototype,
- objectProto = Object.prototype;
-
-/** Used to resolve the decompiled source of functions. */
-var funcToString = funcProto.toString;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/** Used to infer the `Object` constructor. */
-var objectCtorString = funcToString.call(Object);
-
-/**
- * Checks if `value` is a plain object, that is, an object created by the
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
- *
- * @static
- * @memberOf _
- * @since 0.8.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * _.isPlainObject(new Foo);
- * // => false
- *
- * _.isPlainObject([1, 2, 3]);
- * // => false
- *
- * _.isPlainObject({ 'x': 0, 'y': 0 });
- * // => true
- *
- * _.isPlainObject(Object.create(null));
- * // => true
- */
-function isPlainObject(value) {
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
- return false;
- }
- var proto = getPrototype(value);
- if (proto === null) {
- return true;
- }
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
- funcToString.call(Ctor) == objectCtorString;
-}
-
-module.exports = isPlainObject;
diff --git a/node_modules/lodash/isRegExp.js b/node_modules/lodash/isRegExp.js
deleted file mode 100644
index 76c9b6e..0000000
--- a/node_modules/lodash/isRegExp.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var baseIsRegExp = require('./_baseIsRegExp'),
- baseUnary = require('./_baseUnary'),
- nodeUtil = require('./_nodeUtil');
-
-/* Node.js helper references. */
-var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
-
-/**
- * Checks if `value` is classified as a `RegExp` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- * @example
- *
- * _.isRegExp(/abc/);
- * // => true
- *
- * _.isRegExp('/abc/');
- * // => false
- */
-var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
-
-module.exports = isRegExp;
diff --git a/node_modules/lodash/isSafeInteger.js b/node_modules/lodash/isSafeInteger.js
deleted file mode 100644
index 2a48526..0000000
--- a/node_modules/lodash/isSafeInteger.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var isInteger = require('./isInteger');
-
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/**
- * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
- * double precision number which isn't the result of a rounded unsafe integer.
- *
- * **Note:** This method is based on
- * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
- * @example
- *
- * _.isSafeInteger(3);
- * // => true
- *
- * _.isSafeInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isSafeInteger(Infinity);
- * // => false
- *
- * _.isSafeInteger('3');
- * // => false
- */
-function isSafeInteger(value) {
- return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
-}
-
-module.exports = isSafeInteger;
diff --git a/node_modules/lodash/isSet.js b/node_modules/lodash/isSet.js
deleted file mode 100644
index ab88bdf..0000000
--- a/node_modules/lodash/isSet.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var baseIsSet = require('./_baseIsSet'),
- baseUnary = require('./_baseUnary'),
- nodeUtil = require('./_nodeUtil');
-
-/* Node.js helper references. */
-var nodeIsSet = nodeUtil && nodeUtil.isSet;
-
-/**
- * Checks if `value` is classified as a `Set` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
- * @example
- *
- * _.isSet(new Set);
- * // => true
- *
- * _.isSet(new WeakSet);
- * // => false
- */
-var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
-
-module.exports = isSet;
diff --git a/node_modules/lodash/isString.js b/node_modules/lodash/isString.js
deleted file mode 100644
index 627eb9c..0000000
--- a/node_modules/lodash/isString.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isArray = require('./isArray'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var stringTag = '[object String]';
-
-/**
- * Checks if `value` is classified as a `String` primitive or object.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a string, else `false`.
- * @example
- *
- * _.isString('abc');
- * // => true
- *
- * _.isString(1);
- * // => false
- */
-function isString(value) {
- return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
-}
-
-module.exports = isString;
diff --git a/node_modules/lodash/isSymbol.js b/node_modules/lodash/isSymbol.js
deleted file mode 100644
index dfb60b9..0000000
--- a/node_modules/lodash/isSymbol.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var symbolTag = '[object Symbol]';
-
-/**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
-function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
-}
-
-module.exports = isSymbol;
diff --git a/node_modules/lodash/isTypedArray.js b/node_modules/lodash/isTypedArray.js
deleted file mode 100644
index da3f8dd..0000000
--- a/node_modules/lodash/isTypedArray.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var baseIsTypedArray = require('./_baseIsTypedArray'),
- baseUnary = require('./_baseUnary'),
- nodeUtil = require('./_nodeUtil');
-
-/* Node.js helper references. */
-var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
-
-/**
- * Checks if `value` is classified as a typed array.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
- * @example
- *
- * _.isTypedArray(new Uint8Array);
- * // => true
- *
- * _.isTypedArray([]);
- * // => false
- */
-var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
-
-module.exports = isTypedArray;
diff --git a/node_modules/lodash/isUndefined.js b/node_modules/lodash/isUndefined.js
deleted file mode 100644
index 377d121..0000000
--- a/node_modules/lodash/isUndefined.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Checks if `value` is `undefined`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
- * @example
- *
- * _.isUndefined(void 0);
- * // => true
- *
- * _.isUndefined(null);
- * // => false
- */
-function isUndefined(value) {
- return value === undefined;
-}
-
-module.exports = isUndefined;
diff --git a/node_modules/lodash/isWeakMap.js b/node_modules/lodash/isWeakMap.js
deleted file mode 100644
index 8d36f66..0000000
--- a/node_modules/lodash/isWeakMap.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var getTag = require('./_getTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var weakMapTag = '[object WeakMap]';
-
-/**
- * Checks if `value` is classified as a `WeakMap` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
- * @example
- *
- * _.isWeakMap(new WeakMap);
- * // => true
- *
- * _.isWeakMap(new Map);
- * // => false
- */
-function isWeakMap(value) {
- return isObjectLike(value) && getTag(value) == weakMapTag;
-}
-
-module.exports = isWeakMap;
diff --git a/node_modules/lodash/isWeakSet.js b/node_modules/lodash/isWeakSet.js
deleted file mode 100644
index e628b26..0000000
--- a/node_modules/lodash/isWeakSet.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseGetTag = require('./_baseGetTag'),
- isObjectLike = require('./isObjectLike');
-
-/** `Object#toString` result references. */
-var weakSetTag = '[object WeakSet]';
-
-/**
- * Checks if `value` is classified as a `WeakSet` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
- * @example
- *
- * _.isWeakSet(new WeakSet);
- * // => true
- *
- * _.isWeakSet(new Set);
- * // => false
- */
-function isWeakSet(value) {
- return isObjectLike(value) && baseGetTag(value) == weakSetTag;
-}
-
-module.exports = isWeakSet;
diff --git a/node_modules/lodash/iteratee.js b/node_modules/lodash/iteratee.js
deleted file mode 100644
index 61b73a8..0000000
--- a/node_modules/lodash/iteratee.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var baseClone = require('./_baseClone'),
- baseIteratee = require('./_baseIteratee');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1;
-
-/**
- * Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name, the created function returns the
- * property value for a given element. If `func` is an array or object, the
- * created function returns `true` for elements that contain the equivalent
- * source properties, otherwise it returns `false`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Util
- * @param {*} [func=_.identity] The value to convert to a callback.
- * @returns {Function} Returns the callback.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
- * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, _.iteratee(['user', 'fred']));
- * // => [{ 'user': 'fred', 'age': 40 }]
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, _.iteratee('user'));
- * // => ['barney', 'fred']
- *
- * // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
- * return !_.isRegExp(func) ? iteratee(func) : function(string) {
- * return func.test(string);
- * };
- * });
- *
- * _.filter(['abc', 'def'], /ef/);
- * // => ['def']
- */
-function iteratee(func) {
- return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
-}
-
-module.exports = iteratee;
diff --git a/node_modules/lodash/join.js b/node_modules/lodash/join.js
deleted file mode 100644
index 45de079..0000000
--- a/node_modules/lodash/join.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeJoin = arrayProto.join;
-
-/**
- * Converts all elements in `array` into a string separated by `separator`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to convert.
- * @param {string} [separator=','] The element separator.
- * @returns {string} Returns the joined string.
- * @example
- *
- * _.join(['a', 'b', 'c'], '~');
- * // => 'a~b~c'
- */
-function join(array, separator) {
- return array == null ? '' : nativeJoin.call(array, separator);
-}
-
-module.exports = join;
diff --git a/node_modules/lodash/kebabCase.js b/node_modules/lodash/kebabCase.js
deleted file mode 100644
index 8a52be6..0000000
--- a/node_modules/lodash/kebabCase.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var createCompounder = require('./_createCompounder');
-
-/**
- * Converts `string` to
- * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the kebab cased string.
- * @example
- *
- * _.kebabCase('Foo Bar');
- * // => 'foo-bar'
- *
- * _.kebabCase('fooBar');
- * // => 'foo-bar'
- *
- * _.kebabCase('__FOO_BAR__');
- * // => 'foo-bar'
- */
-var kebabCase = createCompounder(function(result, word, index) {
- return result + (index ? '-' : '') + word.toLowerCase();
-});
-
-module.exports = kebabCase;
diff --git a/node_modules/lodash/keyBy.js b/node_modules/lodash/keyBy.js
deleted file mode 100644
index acc007a..0000000
--- a/node_modules/lodash/keyBy.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseAssignValue = require('./_baseAssignValue'),
- createAggregator = require('./_createAggregator');
-
-/**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the last element responsible for generating the key. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * var array = [
- * { 'dir': 'left', 'code': 97 },
- * { 'dir': 'right', 'code': 100 }
- * ];
- *
- * _.keyBy(array, function(o) {
- * return String.fromCharCode(o.code);
- * });
- * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
- *
- * _.keyBy(array, 'dir');
- * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
- */
-var keyBy = createAggregator(function(result, value, key) {
- baseAssignValue(result, key, value);
-});
-
-module.exports = keyBy;
diff --git a/node_modules/lodash/keys.js b/node_modules/lodash/keys.js
deleted file mode 100644
index d143c71..0000000
--- a/node_modules/lodash/keys.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var arrayLikeKeys = require('./_arrayLikeKeys'),
- baseKeys = require('./_baseKeys'),
- isArrayLike = require('./isArrayLike');
-
-/**
- * Creates an array of the own enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects. See the
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * for more details.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keys(new Foo);
- * // => ['a', 'b'] (iteration order is not guaranteed)
- *
- * _.keys('hi');
- * // => ['0', '1']
- */
-function keys(object) {
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
-}
-
-module.exports = keys;
diff --git a/node_modules/lodash/keysIn.js b/node_modules/lodash/keysIn.js
deleted file mode 100644
index a62308f..0000000
--- a/node_modules/lodash/keysIn.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var arrayLikeKeys = require('./_arrayLikeKeys'),
- baseKeysIn = require('./_baseKeysIn'),
- isArrayLike = require('./isArrayLike');
-
-/**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
-function keysIn(object) {
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
-}
-
-module.exports = keysIn;
diff --git a/node_modules/lodash/lang.js b/node_modules/lodash/lang.js
deleted file mode 100644
index a396216..0000000
--- a/node_modules/lodash/lang.js
+++ /dev/null
@@ -1,58 +0,0 @@
-module.exports = {
- 'castArray': require('./castArray'),
- 'clone': require('./clone'),
- 'cloneDeep': require('./cloneDeep'),
- 'cloneDeepWith': require('./cloneDeepWith'),
- 'cloneWith': require('./cloneWith'),
- 'conformsTo': require('./conformsTo'),
- 'eq': require('./eq'),
- 'gt': require('./gt'),
- 'gte': require('./gte'),
- 'isArguments': require('./isArguments'),
- 'isArray': require('./isArray'),
- 'isArrayBuffer': require('./isArrayBuffer'),
- 'isArrayLike': require('./isArrayLike'),
- 'isArrayLikeObject': require('./isArrayLikeObject'),
- 'isBoolean': require('./isBoolean'),
- 'isBuffer': require('./isBuffer'),
- 'isDate': require('./isDate'),
- 'isElement': require('./isElement'),
- 'isEmpty': require('./isEmpty'),
- 'isEqual': require('./isEqual'),
- 'isEqualWith': require('./isEqualWith'),
- 'isError': require('./isError'),
- 'isFinite': require('./isFinite'),
- 'isFunction': require('./isFunction'),
- 'isInteger': require('./isInteger'),
- 'isLength': require('./isLength'),
- 'isMap': require('./isMap'),
- 'isMatch': require('./isMatch'),
- 'isMatchWith': require('./isMatchWith'),
- 'isNaN': require('./isNaN'),
- 'isNative': require('./isNative'),
- 'isNil': require('./isNil'),
- 'isNull': require('./isNull'),
- 'isNumber': require('./isNumber'),
- 'isObject': require('./isObject'),
- 'isObjectLike': require('./isObjectLike'),
- 'isPlainObject': require('./isPlainObject'),
- 'isRegExp': require('./isRegExp'),
- 'isSafeInteger': require('./isSafeInteger'),
- 'isSet': require('./isSet'),
- 'isString': require('./isString'),
- 'isSymbol': require('./isSymbol'),
- 'isTypedArray': require('./isTypedArray'),
- 'isUndefined': require('./isUndefined'),
- 'isWeakMap': require('./isWeakMap'),
- 'isWeakSet': require('./isWeakSet'),
- 'lt': require('./lt'),
- 'lte': require('./lte'),
- 'toArray': require('./toArray'),
- 'toFinite': require('./toFinite'),
- 'toInteger': require('./toInteger'),
- 'toLength': require('./toLength'),
- 'toNumber': require('./toNumber'),
- 'toPlainObject': require('./toPlainObject'),
- 'toSafeInteger': require('./toSafeInteger'),
- 'toString': require('./toString')
-};
diff --git a/node_modules/lodash/last.js b/node_modules/lodash/last.js
deleted file mode 100644
index cad1eaf..0000000
--- a/node_modules/lodash/last.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
-function last(array) {
- var length = array == null ? 0 : array.length;
- return length ? array[length - 1] : undefined;
-}
-
-module.exports = last;
diff --git a/node_modules/lodash/lastIndexOf.js b/node_modules/lodash/lastIndexOf.js
deleted file mode 100644
index dabfb61..0000000
--- a/node_modules/lodash/lastIndexOf.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var baseFindIndex = require('./_baseFindIndex'),
- baseIsNaN = require('./_baseIsNaN'),
- strictLastIndexOf = require('./_strictLastIndexOf'),
- toInteger = require('./toInteger');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max,
- nativeMin = Math.min;
-
-/**
- * This method is like `_.indexOf` except that it iterates over elements of
- * `array` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.lastIndexOf([1, 2, 1, 2], 2);
- * // => 3
- *
- * // Search from the `fromIndex`.
- * _.lastIndexOf([1, 2, 1, 2], 2, 2);
- * // => 1
- */
-function lastIndexOf(array, value, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = length;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
- }
- return value === value
- ? strictLastIndexOf(array, value, index)
- : baseFindIndex(array, baseIsNaN, index, true);
-}
-
-module.exports = lastIndexOf;
diff --git a/node_modules/lodash/lodash.js b/node_modules/lodash/lodash.js
deleted file mode 100644
index 9b95dfe..0000000
--- a/node_modules/lodash/lodash.js
+++ /dev/null
@@ -1,17112 +0,0 @@
-/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */
-;(function() {
-
- /** Used as a safe reference for `undefined` in pre-ES5 environments. */
- var undefined;
-
- /** Used as the semantic version number. */
- var VERSION = '4.17.15';
-
- /** Used as the size to enable large array optimizations. */
- var LARGE_ARRAY_SIZE = 200;
-
- /** Error message constants. */
- var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
- FUNC_ERROR_TEXT = 'Expected a function';
-
- /** Used to stand-in for `undefined` hash values. */
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
-
- /** Used as the maximum memoize cache size. */
- var MAX_MEMOIZE_SIZE = 500;
-
- /** Used as the internal argument placeholder. */
- var PLACEHOLDER = '__lodash_placeholder__';
-
- /** Used to compose bitmasks for cloning. */
- var CLONE_DEEP_FLAG = 1,
- CLONE_FLAT_FLAG = 2,
- CLONE_SYMBOLS_FLAG = 4;
-
- /** Used to compose bitmasks for value comparisons. */
- var COMPARE_PARTIAL_FLAG = 1,
- COMPARE_UNORDERED_FLAG = 2;
-
- /** Used to compose bitmasks for function metadata. */
- var WRAP_BIND_FLAG = 1,
- WRAP_BIND_KEY_FLAG = 2,
- WRAP_CURRY_BOUND_FLAG = 4,
- WRAP_CURRY_FLAG = 8,
- WRAP_CURRY_RIGHT_FLAG = 16,
- WRAP_PARTIAL_FLAG = 32,
- WRAP_PARTIAL_RIGHT_FLAG = 64,
- WRAP_ARY_FLAG = 128,
- WRAP_REARG_FLAG = 256,
- WRAP_FLIP_FLAG = 512;
-
- /** Used as default options for `_.truncate`. */
- var DEFAULT_TRUNC_LENGTH = 30,
- DEFAULT_TRUNC_OMISSION = '...';
-
- /** Used to detect hot functions by number of calls within a span of milliseconds. */
- var HOT_COUNT = 800,
- HOT_SPAN = 16;
-
- /** Used to indicate the type of lazy iteratees. */
- var LAZY_FILTER_FLAG = 1,
- LAZY_MAP_FLAG = 2,
- LAZY_WHILE_FLAG = 3;
-
- /** Used as references for various `Number` constants. */
- var INFINITY = 1 / 0,
- MAX_SAFE_INTEGER = 9007199254740991,
- MAX_INTEGER = 1.7976931348623157e+308,
- NAN = 0 / 0;
-
- /** Used as references for the maximum length and index of an array. */
- var MAX_ARRAY_LENGTH = 4294967295,
- MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
- HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
-
- /** Used to associate wrap methods with their bit flags. */
- var wrapFlags = [
- ['ary', WRAP_ARY_FLAG],
- ['bind', WRAP_BIND_FLAG],
- ['bindKey', WRAP_BIND_KEY_FLAG],
- ['curry', WRAP_CURRY_FLAG],
- ['curryRight', WRAP_CURRY_RIGHT_FLAG],
- ['flip', WRAP_FLIP_FLAG],
- ['partial', WRAP_PARTIAL_FLAG],
- ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],
- ['rearg', WRAP_REARG_FLAG]
- ];
-
- /** `Object#toString` result references. */
- var argsTag = '[object Arguments]',
- arrayTag = '[object Array]',
- asyncTag = '[object AsyncFunction]',
- boolTag = '[object Boolean]',
- dateTag = '[object Date]',
- domExcTag = '[object DOMException]',
- errorTag = '[object Error]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- mapTag = '[object Map]',
- numberTag = '[object Number]',
- nullTag = '[object Null]',
- objectTag = '[object Object]',
- promiseTag = '[object Promise]',
- proxyTag = '[object Proxy]',
- regexpTag = '[object RegExp]',
- setTag = '[object Set]',
- stringTag = '[object String]',
- symbolTag = '[object Symbol]',
- undefinedTag = '[object Undefined]',
- weakMapTag = '[object WeakMap]',
- weakSetTag = '[object WeakSet]';
-
- var arrayBufferTag = '[object ArrayBuffer]',
- dataViewTag = '[object DataView]',
- float32Tag = '[object Float32Array]',
- float64Tag = '[object Float64Array]',
- int8Tag = '[object Int8Array]',
- int16Tag = '[object Int16Array]',
- int32Tag = '[object Int32Array]',
- uint8Tag = '[object Uint8Array]',
- uint8ClampedTag = '[object Uint8ClampedArray]',
- uint16Tag = '[object Uint16Array]',
- uint32Tag = '[object Uint32Array]';
-
- /** Used to match empty string literals in compiled template source. */
- var reEmptyStringLeading = /\b__p \+= '';/g,
- reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
- reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
-
- /** Used to match HTML entities and HTML characters. */
- var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
- reUnescapedHtml = /[&<>"']/g,
- reHasEscapedHtml = RegExp(reEscapedHtml.source),
- reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
-
- /** Used to match template delimiters. */
- var reEscape = /<%-([\s\S]+?)%>/g,
- reEvaluate = /<%([\s\S]+?)%>/g,
- reInterpolate = /<%=([\s\S]+?)%>/g;
-
- /** Used to match property names within property paths. */
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/,
- rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
-
- /**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
- */
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
- reHasRegExpChar = RegExp(reRegExpChar.source);
-
- /** Used to match leading and trailing whitespace. */
- var reTrim = /^\s+|\s+$/g,
- reTrimStart = /^\s+/,
- reTrimEnd = /\s+$/;
-
- /** Used to match wrap detail comments. */
- var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
- reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
- reSplitDetails = /,? & /;
-
- /** Used to match words composed of alphanumeric characters. */
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
-
- /** Used to match backslashes in property paths. */
- var reEscapeChar = /\\(\\)?/g;
-
- /**
- * Used to match
- * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
- */
- var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
-
- /** Used to match `RegExp` flags from their coerced string values. */
- var reFlags = /\w*$/;
-
- /** Used to detect bad signed hexadecimal string values. */
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
-
- /** Used to detect binary string values. */
- var reIsBinary = /^0b[01]+$/i;
-
- /** Used to detect host constructors (Safari). */
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
-
- /** Used to detect octal string values. */
- var reIsOctal = /^0o[0-7]+$/i;
-
- /** Used to detect unsigned integer values. */
- var reIsUint = /^(?:0|[1-9]\d*)$/;
-
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
-
- /** Used to ensure capturing order of template delimiters. */
- var reNoMatch = /($^)/;
-
- /** Used to match unescaped characters in compiled string literals. */
- var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
-
- /** Used to compose unicode character classes. */
- var rsAstralRange = '\\ud800-\\udfff',
- rsComboMarksRange = '\\u0300-\\u036f',
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
- rsDingbatRange = '\\u2700-\\u27bf',
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- rsPunctuationRange = '\\u2000-\\u206f',
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- rsVarRange = '\\ufe0e\\ufe0f',
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
-
- /** Used to compose unicode capture groups. */
- var rsApos = "['\u2019]",
- rsAstral = '[' + rsAstralRange + ']',
- rsBreak = '[' + rsBreakRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsDigits = '\\d+',
- rsDingbat = '[' + rsDingbatRange + ']',
- rsLower = '[' + rsLowerRange + ']',
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
- rsNonAstral = '[^' + rsAstralRange + ']',
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- rsUpper = '[' + rsUpperRange + ']',
- rsZWJ = '\\u200d';
-
- /** Used to compose unicode regexes. */
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
- rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
- rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
- reOptMod = rsModifier + '?',
- rsOptVar = '[' + rsVarRange + ']?',
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
-
- /** Used to match apostrophes. */
- var reApos = RegExp(rsApos, 'g');
-
- /**
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
- */
- var reComboMark = RegExp(rsCombo, 'g');
-
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
-
- /** Used to match complex or compound words. */
- var reUnicodeWord = RegExp([
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
- rsUpper + '+' + rsOptContrUpper,
- rsOrdUpper,
- rsOrdLower,
- rsDigits,
- rsEmoji
- ].join('|'), 'g');
-
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
- var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
-
- /** Used to detect strings that need a more robust regexp to match words. */
- var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
-
- /** Used to assign default `context` object properties. */
- var contextProps = [
- 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',
- 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',
- 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',
- 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',
- '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'
- ];
-
- /** Used to make template sourceURLs easier to identify. */
- var templateCounter = -1;
-
- /** Used to identify `toStringTag` values of typed arrays. */
- var typedArrayTags = {};
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
- typedArrayTags[uint32Tag] = true;
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
- typedArrayTags[weakMapTag] = false;
-
- /** Used to identify `toStringTag` values supported by `_.clone`. */
- var cloneableTags = {};
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
- cloneableTags[boolTag] = cloneableTags[dateTag] =
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
- cloneableTags[numberTag] = cloneableTags[objectTag] =
- cloneableTags[regexpTag] = cloneableTags[setTag] =
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
- cloneableTags[errorTag] = cloneableTags[funcTag] =
- cloneableTags[weakMapTag] = false;
-
- /** Used to map Latin Unicode letters to basic Latin letters. */
- var deburredLetters = {
- // Latin-1 Supplement block.
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
- '\xc7': 'C', '\xe7': 'c',
- '\xd0': 'D', '\xf0': 'd',
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
- '\xd1': 'N', '\xf1': 'n',
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
- '\xc6': 'Ae', '\xe6': 'ae',
- '\xde': 'Th', '\xfe': 'th',
- '\xdf': 'ss',
- // Latin Extended-A block.
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
- '\u0134': 'J', '\u0135': 'j',
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
- '\u0174': 'W', '\u0175': 'w',
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
- '\u0132': 'IJ', '\u0133': 'ij',
- '\u0152': 'Oe', '\u0153': 'oe',
- '\u0149': "'n", '\u017f': 's'
- };
-
- /** Used to map characters to HTML entities. */
- var htmlEscapes = {
- '&': '&amp;',
- '<': '&lt;',
- '>': '&gt;',
- '"': '&quot;',
- "'": '&#39;'
- };
-
- /** Used to map HTML entities to characters. */
- var htmlUnescapes = {
- '&amp;': '&',
- '&lt;': '<',
- '&gt;': '>',
- '&quot;': '"',
- '&#39;': "'"
- };
-
- /** Used to escape characters for inclusion in compiled string literals. */
- var stringEscapes = {
- '\\': '\\',
- "'": "'",
- '\n': 'n',
- '\r': 'r',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- };
-
- /** Built-in method references without a dependency on `root`. */
- var freeParseFloat = parseFloat,
- freeParseInt = parseInt;
-
- /** Detect free variable `global` from Node.js. */
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
-
- /** Detect free variable `self`. */
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
-
- /** Used as a reference to the global object. */
- var root = freeGlobal || freeSelf || Function('return this')();
-
- /** Detect free variable `exports`. */
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
-
- /** Detect free variable `module`. */
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
-
- /** Detect the popular CommonJS extension `module.exports`. */
- var moduleExports = freeModule && freeModule.exports === freeExports;
-
- /** Detect free variable `process` from Node.js. */
- var freeProcess = moduleExports && freeGlobal.process;
-
- /** Used to access faster Node.js helpers. */
- var nodeUtil = (function() {
- try {
- // Use `util.types` for Node.js 10+.
- var types = freeModule && freeModule.require && freeModule.require('util').types;
-
- if (types) {
- return types;
- }
-
- // Legacy `process.binding('util')` for Node.js < 10.
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
- } catch (e) {}
- }());
-
- /* Node.js helper references. */
- var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
- nodeIsDate = nodeUtil && nodeUtil.isDate,
- nodeIsMap = nodeUtil && nodeUtil.isMap,
- nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
- nodeIsSet = nodeUtil && nodeUtil.isSet,
- nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * A faster alternative to `Function#apply`, this function invokes `func`
- * with the `this` binding of `thisArg` and the arguments of `args`.
- *
- * @private
- * @param {Function} func The function to invoke.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} args The arguments to invoke `func` with.
- * @returns {*} Returns the result of `func`.
- */
- function apply(func, thisArg, args) {
- switch (args.length) {
- case 0: return func.call(thisArg);
- case 1: return func.call(thisArg, args[0]);
- case 2: return func.call(thisArg, args[0], args[1]);
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
- }
- return func.apply(thisArg, args);
- }
-
- /**
- * A specialized version of `baseAggregator` for arrays.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function arrayAggregator(array, setter, iteratee, accumulator) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- var value = array[index];
- setter(accumulator, value, iteratee(value), array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.forEach` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
- function arrayEach(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (iteratee(array[index], index, array) === false) {
- break;
- }
- }
- return array;
- }
-
- /**
- * A specialized version of `_.forEachRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns `array`.
- */
- function arrayEachRight(array, iteratee) {
- var length = array == null ? 0 : array.length;
-
- while (length--) {
- if (iteratee(array[length], length, array) === false) {
- break;
- }
- }
- return array;
- }
-
- /**
- * A specialized version of `_.every` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- */
- function arrayEvery(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (!predicate(array[index], index, array)) {
- return false;
- }
- }
- return true;
- }
-
- /**
- * A specialized version of `_.filter` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function arrayFilter(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `_.includes` for arrays without support for
- * specifying an index to search from.
- *
- * @private
- * @param {Array} [array] The array to inspect.
- * @param {*} target The value to search for.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludes(array, value) {
- var length = array == null ? 0 : array.length;
- return !!length && baseIndexOf(array, value, 0) > -1;
- }
-
- /**
- * This function is like `arrayIncludes` except that it accepts a comparator.
- *
- * @private
- * @param {Array} [array] The array to inspect.
- * @param {*} target The value to search for.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
- */
- function arrayIncludesWith(array, value, comparator) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (comparator(value, array[index])) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * A specialized version of `_.map` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function arrayMap(array, iteratee) {
- var index = -1,
- length = array == null ? 0 : array.length,
- result = Array(length);
-
- while (++index < length) {
- result[index] = iteratee(array[index], index, array);
- }
- return result;
- }
-
- /**
- * Appends the elements of `values` to `array`.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to append.
- * @returns {Array} Returns `array`.
- */
- function arrayPush(array, values) {
- var index = -1,
- length = values.length,
- offset = array.length;
-
- while (++index < length) {
- array[offset + index] = values[index];
- }
- return array;
- }
-
- /**
- * A specialized version of `_.reduce` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the first element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
- function arrayReduce(array, iteratee, accumulator, initAccum) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- if (initAccum && length) {
- accumulator = array[++index];
- }
- while (++index < length) {
- accumulator = iteratee(accumulator, array[index], index, array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.reduceRight` for arrays without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @param {boolean} [initAccum] Specify using the last element of `array` as
- * the initial value.
- * @returns {*} Returns the accumulated value.
- */
- function arrayReduceRight(array, iteratee, accumulator, initAccum) {
- var length = array == null ? 0 : array.length;
- if (initAccum && length) {
- accumulator = array[--length];
- }
- while (length--) {
- accumulator = iteratee(accumulator, array[length], length, array);
- }
- return accumulator;
- }
-
- /**
- * A specialized version of `_.some` for arrays without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} [array] The array to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function arraySome(array, predicate) {
- var index = -1,
- length = array == null ? 0 : array.length;
-
- while (++index < length) {
- if (predicate(array[index], index, array)) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Gets the size of an ASCII `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
- var asciiSize = baseProperty('length');
-
- /**
- * Converts an ASCII `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function asciiToArray(string) {
- return string.split('');
- }
-
- /**
- * Splits an ASCII `string` into an array of its words.
- *
- * @private
- * @param {string} The string to inspect.
- * @returns {Array} Returns the words of `string`.
- */
- function asciiWords(string) {
- return string.match(reAsciiWord) || [];
- }
-
- /**
- * The base implementation of methods like `_.findKey` and `_.findLastKey`,
- * without support for iteratee shorthands, which iterates over `collection`
- * using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} predicate The function invoked per iteration.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the found element or its key, else `undefined`.
- */
- function baseFindKey(collection, predicate, eachFunc) {
- var result;
- eachFunc(collection, function(value, key, collection) {
- if (predicate(value, key, collection)) {
- result = key;
- return false;
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} predicate The function invoked per iteration.
- * @param {number} fromIndex The index to search from.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
- var length = array.length,
- index = fromIndex + (fromRight ? 1 : -1);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (predicate(array[index], index, array)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOf(array, value, fromIndex) {
- return value === value
- ? strictIndexOf(array, value, fromIndex)
- : baseFindIndex(array, baseIsNaN, fromIndex);
- }
-
- /**
- * This function is like `baseIndexOf` except that it accepts a comparator.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @param {Function} comparator The comparator invoked per element.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function baseIndexOfWith(array, value, fromIndex, comparator) {
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (comparator(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * The base implementation of `_.isNaN` without support for number objects.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- */
- function baseIsNaN(value) {
- return value !== value;
- }
-
- /**
- * The base implementation of `_.mean` and `_.meanBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the mean.
- */
- function baseMean(array, iteratee) {
- var length = array == null ? 0 : array.length;
- return length ? (baseSum(array, iteratee) / length) : NAN;
- }
-
- /**
- * The base implementation of `_.property` without support for deep paths.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function baseProperty(key) {
- return function(object) {
- return object == null ? undefined : object[key];
- };
- }
-
- /**
- * The base implementation of `_.propertyOf` without support for deep paths.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Function} Returns the new accessor function.
- */
- function basePropertyOf(object) {
- return function(key) {
- return object == null ? undefined : object[key];
- };
- }
-
- /**
- * The base implementation of `_.reduce` and `_.reduceRight`, without support
- * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {*} accumulator The initial value.
- * @param {boolean} initAccum Specify using the first or last element of
- * `collection` as the initial value.
- * @param {Function} eachFunc The function to iterate over `collection`.
- * @returns {*} Returns the accumulated value.
- */
- function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
- eachFunc(collection, function(value, index, collection) {
- accumulator = initAccum
- ? (initAccum = false, value)
- : iteratee(accumulator, value, index, collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.sortBy` which uses `comparer` to define the
- * sort order of `array` and replaces criteria objects with their corresponding
- * values.
- *
- * @private
- * @param {Array} array The array to sort.
- * @param {Function} comparer The function to define sort order.
- * @returns {Array} Returns `array`.
- */
- function baseSortBy(array, comparer) {
- var length = array.length;
-
- array.sort(comparer);
- while (length--) {
- array[length] = array[length].value;
- }
- return array;
- }
-
- /**
- * The base implementation of `_.sum` and `_.sumBy` without support for
- * iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {number} Returns the sum.
- */
- function baseSum(array, iteratee) {
- var result,
- index = -1,
- length = array.length;
-
- while (++index < length) {
- var current = iteratee(array[index]);
- if (current !== undefined) {
- result = result === undefined ? current : (result + current);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.times` without support for iteratee shorthands
- * or max array length checks.
- *
- * @private
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- */
- function baseTimes(n, iteratee) {
- var index = -1,
- result = Array(n);
-
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
- }
-
- /**
- * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
- * of key-value pairs for `object` corresponding to the property names of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the key-value pairs.
- */
- function baseToPairs(object, props) {
- return arrayMap(props, function(key) {
- return [key, object[key]];
- });
- }
-
- /**
- * The base implementation of `_.unary` without support for storing metadata.
- *
- * @private
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- */
- function baseUnary(func) {
- return function(value) {
- return func(value);
- };
- }
-
- /**
- * The base implementation of `_.values` and `_.valuesIn` which creates an
- * array of `object` property values corresponding to the property names
- * of `props`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} props The property names to get values for.
- * @returns {Object} Returns the array of property values.
- */
- function baseValues(object, props) {
- return arrayMap(props, function(key) {
- return object[key];
- });
- }
-
- /**
- * Checks if a `cache` value for `key` exists.
- *
- * @private
- * @param {Object} cache The cache to query.
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function cacheHas(cache, key) {
- return cache.has(key);
- }
-
- /**
- * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the first unmatched string symbol.
- */
- function charsStartIndex(strSymbols, chrSymbols) {
- var index = -1,
- length = strSymbols.length;
-
- while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
- }
-
- /**
- * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
- * that is not found in the character symbols.
- *
- * @private
- * @param {Array} strSymbols The string symbols to inspect.
- * @param {Array} chrSymbols The character symbols to find.
- * @returns {number} Returns the index of the last unmatched string symbol.
- */
- function charsEndIndex(strSymbols, chrSymbols) {
- var index = strSymbols.length;
-
- while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}
- return index;
- }
-
- /**
- * Gets the number of `placeholder` occurrences in `array`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} placeholder The placeholder to search for.
- * @returns {number} Returns the placeholder count.
- */
- function countHolders(array, placeholder) {
- var length = array.length,
- result = 0;
-
- while (length--) {
- if (array[length] === placeholder) {
- ++result;
- }
- }
- return result;
- }
-
- /**
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
- * letters to basic Latin letters.
- *
- * @private
- * @param {string} letter The matched letter to deburr.
- * @returns {string} Returns the deburred letter.
- */
- var deburrLetter = basePropertyOf(deburredLetters);
-
- /**
- * Used by `_.escape` to convert characters to HTML entities.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- var escapeHtmlChar = basePropertyOf(htmlEscapes);
-
- /**
- * Used by `_.template` to escape characters for inclusion in compiled string literals.
- *
- * @private
- * @param {string} chr The matched character to escape.
- * @returns {string} Returns the escaped character.
- */
- function escapeStringChar(chr) {
- return '\\' + stringEscapes[chr];
- }
-
- /**
- * Gets the value at `key` of `object`.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
- function getValue(object, key) {
- return object == null ? undefined : object[key];
- }
-
- /**
- * Checks if `string` contains Unicode symbols.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
- */
- function hasUnicode(string) {
- return reHasUnicode.test(string);
- }
-
- /**
- * Checks if `string` contains a word composed of Unicode symbols.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {boolean} Returns `true` if a word is found, else `false`.
- */
- function hasUnicodeWord(string) {
- return reHasUnicodeWord.test(string);
- }
-
- /**
- * Converts `iterator` to an array.
- *
- * @private
- * @param {Object} iterator The iterator to convert.
- * @returns {Array} Returns the converted array.
- */
- function iteratorToArray(iterator) {
- var data,
- result = [];
-
- while (!(data = iterator.next()).done) {
- result.push(data.value);
- }
- return result;
- }
-
- /**
- * Converts `map` to its key-value pairs.
- *
- * @private
- * @param {Object} map The map to convert.
- * @returns {Array} Returns the key-value pairs.
- */
- function mapToArray(map) {
- var index = -1,
- result = Array(map.size);
-
- map.forEach(function(value, key) {
- result[++index] = [key, value];
- });
- return result;
- }
-
- /**
- * Creates a unary function that invokes `func` with its argument transformed.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {Function} transform The argument transform.
- * @returns {Function} Returns the new function.
- */
- function overArg(func, transform) {
- return function(arg) {
- return func(transform(arg));
- };
- }
-
- /**
- * Replaces all `placeholder` elements in `array` with an internal placeholder
- * and returns an array of their indexes.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {*} placeholder The placeholder to replace.
- * @returns {Array} Returns the new array of placeholder indexes.
- */
- function replaceHolders(array, placeholder) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value === placeholder || value === PLACEHOLDER) {
- array[index] = PLACEHOLDER;
- result[resIndex++] = index;
- }
- }
- return result;
- }
-
- /**
- * Converts `set` to an array of its values.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the values.
- */
- function setToArray(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = value;
- });
- return result;
- }
-
- /**
- * Converts `set` to its value-value pairs.
- *
- * @private
- * @param {Object} set The set to convert.
- * @returns {Array} Returns the value-value pairs.
- */
- function setToPairs(set) {
- var index = -1,
- result = Array(set.size);
-
- set.forEach(function(value) {
- result[++index] = [value, value];
- });
- return result;
- }
-
- /**
- * A specialized version of `_.indexOf` which performs strict equality
- * comparisons of values, i.e. `===`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function strictIndexOf(array, value, fromIndex) {
- var index = fromIndex - 1,
- length = array.length;
-
- while (++index < length) {
- if (array[index] === value) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * A specialized version of `_.lastIndexOf` which performs strict equality
- * comparisons of values, i.e. `===`.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} fromIndex The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function strictLastIndexOf(array, value, fromIndex) {
- var index = fromIndex + 1;
- while (index--) {
- if (array[index] === value) {
- return index;
- }
- }
- return index;
- }
-
- /**
- * Gets the number of symbols in `string`.
- *
- * @private
- * @param {string} string The string to inspect.
- * @returns {number} Returns the string size.
- */
- function stringSize(string) {
- return hasUnicode(string)
- ? unicodeSize(string)
- : asciiSize(string);
- }
-
- /**
- * Converts `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function stringToArray(string) {
- return hasUnicode(string)
- ? unicodeToArray(string)
- : asciiToArray(string);
- }
-
- /**
- * Used by `_.unescape` to convert HTML entities to characters.
- *
- * @private
- * @param {string} chr The matched character to unescape.
- * @returns {string} Returns the unescaped character.
- */
- var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
-
- /**
- * Gets the size of a Unicode `string`.
- *
- * @private
- * @param {string} string The string inspect.
- * @returns {number} Returns the string size.
- */
- function unicodeSize(string) {
- var result = reUnicode.lastIndex = 0;
- while (reUnicode.test(string)) {
- ++result;
- }
- return result;
- }
-
- /**
- * Converts a Unicode `string` to an array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the converted array.
- */
- function unicodeToArray(string) {
- return string.match(reUnicode) || [];
- }
-
- /**
- * Splits a Unicode `string` into an array of its words.
- *
- * @private
- * @param {string} The string to inspect.
- * @returns {Array} Returns the words of `string`.
- */
- function unicodeWords(string) {
- return string.match(reUnicodeWord) || [];
- }
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * Create a new pristine `lodash` function using the `context` object.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Util
- * @param {Object} [context=root] The context object.
- * @returns {Function} Returns a new `lodash` function.
- * @example
- *
- * _.mixin({ 'foo': _.constant('foo') });
- *
- * var lodash = _.runInContext();
- * lodash.mixin({ 'bar': lodash.constant('bar') });
- *
- * _.isFunction(_.foo);
- * // => true
- * _.isFunction(_.bar);
- * // => false
- *
- * lodash.isFunction(lodash.foo);
- * // => false
- * lodash.isFunction(lodash.bar);
- * // => true
- *
- * // Create a suped-up `defer` in Node.js.
- * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
- */
- var runInContext = (function runInContext(context) {
- context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
-
- /** Built-in constructor references. */
- var Array = context.Array,
- Date = context.Date,
- Error = context.Error,
- Function = context.Function,
- Math = context.Math,
- Object = context.Object,
- RegExp = context.RegExp,
- String = context.String,
- TypeError = context.TypeError;
-
- /** Used for built-in method references. */
- var arrayProto = Array.prototype,
- funcProto = Function.prototype,
- objectProto = Object.prototype;
-
- /** Used to detect overreaching core-js shims. */
- var coreJsData = context['__core-js_shared__'];
-
- /** Used to resolve the decompiled source of functions. */
- var funcToString = funcProto.toString;
-
- /** Used to check objects for own properties. */
- var hasOwnProperty = objectProto.hasOwnProperty;
-
- /** Used to generate unique IDs. */
- var idCounter = 0;
-
- /** Used to detect methods masquerading as native. */
- var maskSrcKey = (function() {
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
- return uid ? ('Symbol(src)_1.' + uid) : '';
- }());
-
- /**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
- var nativeObjectToString = objectProto.toString;
-
- /** Used to infer the `Object` constructor. */
- var objectCtorString = funcToString.call(Object);
-
- /** Used to restore the original `_` reference in `_.noConflict`. */
- var oldDash = root._;
-
- /** Used to detect if a method is native. */
- var reIsNative = RegExp('^' +
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
- );
-
- /** Built-in value references. */
- var Buffer = moduleExports ? context.Buffer : undefined,
- Symbol = context.Symbol,
- Uint8Array = context.Uint8Array,
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
- getPrototype = overArg(Object.getPrototypeOf, Object),
- objectCreate = Object.create,
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
- splice = arrayProto.splice,
- spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
- symIterator = Symbol ? Symbol.iterator : undefined,
- symToStringTag = Symbol ? Symbol.toStringTag : undefined;
-
- var defineProperty = (function() {
- try {
- var func = getNative(Object, 'defineProperty');
- func({}, '', {});
- return func;
- } catch (e) {}
- }());
-
- /** Mocked built-ins. */
- var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
- ctxNow = Date && Date.now !== root.Date.now && Date.now,
- ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
-
- /* Built-in method references for those with the same name as other `lodash` methods. */
- var nativeCeil = Math.ceil,
- nativeFloor = Math.floor,
- nativeGetSymbols = Object.getOwnPropertySymbols,
- nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
- nativeIsFinite = context.isFinite,
- nativeJoin = arrayProto.join,
- nativeKeys = overArg(Object.keys, Object),
- nativeMax = Math.max,
- nativeMin = Math.min,
- nativeNow = Date.now,
- nativeParseInt = context.parseInt,
- nativeRandom = Math.random,
- nativeReverse = arrayProto.reverse;
-
- /* Built-in method references that are verified to be native. */
- var DataView = getNative(context, 'DataView'),
- Map = getNative(context, 'Map'),
- Promise = getNative(context, 'Promise'),
- Set = getNative(context, 'Set'),
- WeakMap = getNative(context, 'WeakMap'),
- nativeCreate = getNative(Object, 'create');
-
- /** Used to store function metadata. */
- var metaMap = WeakMap && new WeakMap;
-
- /** Used to lookup unminified function names. */
- var realNames = {};
-
- /** Used to detect maps, sets, and weakmaps. */
- var dataViewCtorString = toSource(DataView),
- mapCtorString = toSource(Map),
- promiseCtorString = toSource(Promise),
- setCtorString = toSource(Set),
- weakMapCtorString = toSource(WeakMap);
-
- /** Used to convert symbols to primitives and strings. */
- var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` object which wraps `value` to enable implicit method
- * chain sequences. Methods that operate on and return arrays, collections,
- * and functions can be chained together. Methods that retrieve a single value
- * or may return a primitive value will automatically end the chain sequence
- * and return the unwrapped value. Otherwise, the value must be unwrapped
- * with `_#value`.
- *
- * Explicit chain sequences, which must be unwrapped with `_#value`, may be
- * enabled using `_.chain`.
- *
- * The execution of chained methods is lazy, that is, it's deferred until
- * `_#value` is implicitly or explicitly called.
- *
- * Lazy evaluation allows several methods to support shortcut fusion.
- * Shortcut fusion is an optimization to merge iteratee calls; this avoids
- * the creation of intermediate arrays and can greatly reduce the number of
- * iteratee executions. Sections of a chain sequence qualify for shortcut
- * fusion if the section is applied to an array and iteratees accept only
- * one argument. The heuristic for whether a section qualifies for shortcut
- * fusion is subject to change.
- *
- * Chaining is supported in custom builds as long as the `_#value` method is
- * directly or indirectly included in the build.
- *
- * In addition to lodash methods, wrappers have `Array` and `String` methods.
- *
- * The wrapper `Array` methods are:
- * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
- *
- * The wrapper `String` methods are:
- * `replace` and `split`
- *
- * The wrapper methods that support shortcut fusion are:
- * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
- * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
- *
- * The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
- * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
- * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
- * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
- * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
- * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
- * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
- * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
- * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
- * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
- * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
- * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
- * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
- * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
- * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
- * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
- * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
- * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
- * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
- * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
- * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
- * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
- * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
- * `zipObject`, `zipObjectDeep`, and `zipWith`
- *
- * The wrapper methods that are **not** chainable by default are:
- * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
- * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
- * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
- * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
- * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
- * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
- * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
- * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
- * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
- * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
- * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
- * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
- * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
- * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
- * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
- * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
- * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
- * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
- * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
- * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
- * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
- * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
- * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
- * `upperFirst`, `value`, and `words`
- *
- * @name _
- * @constructor
- * @category Seq
- * @param {*} value The value to wrap in a `lodash` instance.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2, 3]);
- *
- * // Returns an unwrapped value.
- * wrapped.reduce(_.add);
- * // => 6
- *
- * // Returns a wrapped value.
- * var squares = wrapped.map(square);
- *
- * _.isArray(squares);
- * // => false
- *
- * _.isArray(squares.value());
- * // => true
- */
- function lodash(value) {
- if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
- if (value instanceof LodashWrapper) {
- return value;
- }
- if (hasOwnProperty.call(value, '__wrapped__')) {
- return wrapperClone(value);
- }
- }
- return new LodashWrapper(value);
- }
-
- /**
- * The base implementation of `_.create` without support for assigning
- * properties to the created object.
- *
- * @private
- * @param {Object} proto The object to inherit from.
- * @returns {Object} Returns the new object.
- */
- var baseCreate = (function() {
- function object() {}
- return function(proto) {
- if (!isObject(proto)) {
- return {};
- }
- if (objectCreate) {
- return objectCreate(proto);
- }
- object.prototype = proto;
- var result = new object;
- object.prototype = undefined;
- return result;
- };
- }());
-
- /**
- * The function whose prototype chain sequence wrappers inherit from.
- *
- * @private
- */
- function baseLodash() {
- // No operation performed.
- }
-
- /**
- * The base constructor for creating `lodash` wrapper objects.
- *
- * @private
- * @param {*} value The value to wrap.
- * @param {boolean} [chainAll] Enable explicit method chain sequences.
- */
- function LodashWrapper(value, chainAll) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__chain__ = !!chainAll;
- this.__index__ = 0;
- this.__values__ = undefined;
- }
-
- /**
- * By default, the template delimiters used by lodash are like those in
- * embedded Ruby (ERB) as well as ES2015 template strings. Change the
- * following template settings to use alternative delimiters.
- *
- * @static
- * @memberOf _
- * @type {Object}
- */
- lodash.templateSettings = {
-
- /**
- * Used to detect `data` property values to be HTML-escaped.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'escape': reEscape,
-
- /**
- * Used to detect code to be evaluated.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'evaluate': reEvaluate,
-
- /**
- * Used to detect `data` property values to inject.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'interpolate': reInterpolate,
-
- /**
- * Used to reference the data object in the template text.
- *
- * @memberOf _.templateSettings
- * @type {string}
- */
- 'variable': '',
-
- /**
- * Used to import variables into the compiled template.
- *
- * @memberOf _.templateSettings
- * @type {Object}
- */
- 'imports': {
-
- /**
- * A reference to the `lodash` function.
- *
- * @memberOf _.templateSettings.imports
- * @type {Function}
- */
- '_': lodash
- }
- };
-
- // Ensure wrappers are instances of `baseLodash`.
- lodash.prototype = baseLodash.prototype;
- lodash.prototype.constructor = lodash;
-
- LodashWrapper.prototype = baseCreate(baseLodash.prototype);
- LodashWrapper.prototype.constructor = LodashWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
- *
- * @private
- * @constructor
- * @param {*} value The value to wrap.
- */
- function LazyWrapper(value) {
- this.__wrapped__ = value;
- this.__actions__ = [];
- this.__dir__ = 1;
- this.__filtered__ = false;
- this.__iteratees__ = [];
- this.__takeCount__ = MAX_ARRAY_LENGTH;
- this.__views__ = [];
- }
-
- /**
- * Creates a clone of the lazy wrapper object.
- *
- * @private
- * @name clone
- * @memberOf LazyWrapper
- * @returns {Object} Returns the cloned `LazyWrapper` object.
- */
- function lazyClone() {
- var result = new LazyWrapper(this.__wrapped__);
- result.__actions__ = copyArray(this.__actions__);
- result.__dir__ = this.__dir__;
- result.__filtered__ = this.__filtered__;
- result.__iteratees__ = copyArray(this.__iteratees__);
- result.__takeCount__ = this.__takeCount__;
- result.__views__ = copyArray(this.__views__);
- return result;
- }
-
- /**
- * Reverses the direction of lazy iteration.
- *
- * @private
- * @name reverse
- * @memberOf LazyWrapper
- * @returns {Object} Returns the new reversed `LazyWrapper` object.
- */
- function lazyReverse() {
- if (this.__filtered__) {
- var result = new LazyWrapper(this);
- result.__dir__ = -1;
- result.__filtered__ = true;
- } else {
- result = this.clone();
- result.__dir__ *= -1;
- }
- return result;
- }
-
- /**
- * Extracts the unwrapped value from its lazy wrapper.
- *
- * @private
- * @name value
- * @memberOf LazyWrapper
- * @returns {*} Returns the unwrapped value.
- */
- function lazyValue() {
- var array = this.__wrapped__.value(),
- dir = this.__dir__,
- isArr = isArray(array),
- isRight = dir < 0,
- arrLength = isArr ? array.length : 0,
- view = getView(0, arrLength, this.__views__),
- start = view.start,
- end = view.end,
- length = end - start,
- index = isRight ? end : (start - 1),
- iteratees = this.__iteratees__,
- iterLength = iteratees.length,
- resIndex = 0,
- takeCount = nativeMin(length, this.__takeCount__);
-
- if (!isArr || (!isRight && arrLength == length && takeCount == length)) {
- return baseWrapperValue(array, this.__actions__);
- }
- var result = [];
-
- outer:
- while (length-- && resIndex < takeCount) {
- index += dir;
-
- var iterIndex = -1,
- value = array[index];
-
- while (++iterIndex < iterLength) {
- var data = iteratees[iterIndex],
- iteratee = data.iteratee,
- type = data.type,
- computed = iteratee(value);
-
- if (type == LAZY_MAP_FLAG) {
- value = computed;
- } else if (!computed) {
- if (type == LAZY_FILTER_FLAG) {
- continue outer;
- } else {
- break outer;
- }
- }
- }
- result[resIndex++] = value;
- }
- return result;
- }
-
- // Ensure `LazyWrapper` is an instance of `baseLodash`.
- LazyWrapper.prototype = baseCreate(baseLodash.prototype);
- LazyWrapper.prototype.constructor = LazyWrapper;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a hash object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Hash(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the hash.
- *
- * @private
- * @name clear
- * @memberOf Hash
- */
- function hashClear() {
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
- this.size = 0;
- }
-
- /**
- * Removes `key` and its value from the hash.
- *
- * @private
- * @name delete
- * @memberOf Hash
- * @param {Object} hash The hash to modify.
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function hashDelete(key) {
- var result = this.has(key) && delete this.__data__[key];
- this.size -= result ? 1 : 0;
- return result;
- }
-
- /**
- * Gets the hash value for `key`.
- *
- * @private
- * @name get
- * @memberOf Hash
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function hashGet(key) {
- var data = this.__data__;
- if (nativeCreate) {
- var result = data[key];
- return result === HASH_UNDEFINED ? undefined : result;
- }
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
- }
-
- /**
- * Checks if a hash value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Hash
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function hashHas(key) {
- var data = this.__data__;
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
- }
-
- /**
- * Sets the hash `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Hash
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the hash instance.
- */
- function hashSet(key, value) {
- var data = this.__data__;
- this.size += this.has(key) ? 0 : 1;
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
- return this;
- }
-
- // Add methods to `Hash`.
- Hash.prototype.clear = hashClear;
- Hash.prototype['delete'] = hashDelete;
- Hash.prototype.get = hashGet;
- Hash.prototype.has = hashHas;
- Hash.prototype.set = hashSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an list cache object.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function ListCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the list cache.
- *
- * @private
- * @name clear
- * @memberOf ListCache
- */
- function listCacheClear() {
- this.__data__ = [];
- this.size = 0;
- }
-
- /**
- * Removes `key` and its value from the list cache.
- *
- * @private
- * @name delete
- * @memberOf ListCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function listCacheDelete(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- --this.size;
- return true;
- }
-
- /**
- * Gets the list cache value for `key`.
- *
- * @private
- * @name get
- * @memberOf ListCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function listCacheGet(key) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- return index < 0 ? undefined : data[index][1];
- }
-
- /**
- * Checks if a list cache value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf ListCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function listCacheHas(key) {
- return assocIndexOf(this.__data__, key) > -1;
- }
-
- /**
- * Sets the list cache `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf ListCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the list cache instance.
- */
- function listCacheSet(key, value) {
- var data = this.__data__,
- index = assocIndexOf(data, key);
-
- if (index < 0) {
- ++this.size;
- data.push([key, value]);
- } else {
- data[index][1] = value;
- }
- return this;
- }
-
- // Add methods to `ListCache`.
- ListCache.prototype.clear = listCacheClear;
- ListCache.prototype['delete'] = listCacheDelete;
- ListCache.prototype.get = listCacheGet;
- ListCache.prototype.has = listCacheHas;
- ListCache.prototype.set = listCacheSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a map cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function MapCache(entries) {
- var index = -1,
- length = entries == null ? 0 : entries.length;
-
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
- }
-
- /**
- * Removes all key-value entries from the map.
- *
- * @private
- * @name clear
- * @memberOf MapCache
- */
- function mapCacheClear() {
- this.size = 0;
- this.__data__ = {
- 'hash': new Hash,
- 'map': new (Map || ListCache),
- 'string': new Hash
- };
- }
-
- /**
- * Removes `key` and its value from the map.
- *
- * @private
- * @name delete
- * @memberOf MapCache
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function mapCacheDelete(key) {
- var result = getMapData(this, key)['delete'](key);
- this.size -= result ? 1 : 0;
- return result;
- }
-
- /**
- * Gets the map value for `key`.
- *
- * @private
- * @name get
- * @memberOf MapCache
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function mapCacheGet(key) {
- return getMapData(this, key).get(key);
- }
-
- /**
- * Checks if a map value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf MapCache
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function mapCacheHas(key) {
- return getMapData(this, key).has(key);
- }
-
- /**
- * Sets the map `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf MapCache
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the map cache instance.
- */
- function mapCacheSet(key, value) {
- var data = getMapData(this, key),
- size = data.size;
-
- data.set(key, value);
- this.size += data.size == size ? 0 : 1;
- return this;
- }
-
- // Add methods to `MapCache`.
- MapCache.prototype.clear = mapCacheClear;
- MapCache.prototype['delete'] = mapCacheDelete;
- MapCache.prototype.get = mapCacheGet;
- MapCache.prototype.has = mapCacheHas;
- MapCache.prototype.set = mapCacheSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- *
- * Creates an array cache object to store unique values.
- *
- * @private
- * @constructor
- * @param {Array} [values] The values to cache.
- */
- function SetCache(values) {
- var index = -1,
- length = values == null ? 0 : values.length;
-
- this.__data__ = new MapCache;
- while (++index < length) {
- this.add(values[index]);
- }
- }
-
- /**
- * Adds `value` to the array cache.
- *
- * @private
- * @name add
- * @memberOf SetCache
- * @alias push
- * @param {*} value The value to cache.
- * @returns {Object} Returns the cache instance.
- */
- function setCacheAdd(value) {
- this.__data__.set(value, HASH_UNDEFINED);
- return this;
- }
-
- /**
- * Checks if `value` is in the array cache.
- *
- * @private
- * @name has
- * @memberOf SetCache
- * @param {*} value The value to search for.
- * @returns {number} Returns `true` if `value` is found, else `false`.
- */
- function setCacheHas(value) {
- return this.__data__.has(value);
- }
-
- // Add methods to `SetCache`.
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
- SetCache.prototype.has = setCacheHas;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a stack cache object to store key-value pairs.
- *
- * @private
- * @constructor
- * @param {Array} [entries] The key-value pairs to cache.
- */
- function Stack(entries) {
- var data = this.__data__ = new ListCache(entries);
- this.size = data.size;
- }
-
- /**
- * Removes all key-value entries from the stack.
- *
- * @private
- * @name clear
- * @memberOf Stack
- */
- function stackClear() {
- this.__data__ = new ListCache;
- this.size = 0;
- }
-
- /**
- * Removes `key` and its value from the stack.
- *
- * @private
- * @name delete
- * @memberOf Stack
- * @param {string} key The key of the value to remove.
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
- */
- function stackDelete(key) {
- var data = this.__data__,
- result = data['delete'](key);
-
- this.size = data.size;
- return result;
- }
-
- /**
- * Gets the stack value for `key`.
- *
- * @private
- * @name get
- * @memberOf Stack
- * @param {string} key The key of the value to get.
- * @returns {*} Returns the entry value.
- */
- function stackGet(key) {
- return this.__data__.get(key);
- }
-
- /**
- * Checks if a stack value for `key` exists.
- *
- * @private
- * @name has
- * @memberOf Stack
- * @param {string} key The key of the entry to check.
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
- */
- function stackHas(key) {
- return this.__data__.has(key);
- }
-
- /**
- * Sets the stack `key` to `value`.
- *
- * @private
- * @name set
- * @memberOf Stack
- * @param {string} key The key of the value to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns the stack cache instance.
- */
- function stackSet(key, value) {
- var data = this.__data__;
- if (data instanceof ListCache) {
- var pairs = data.__data__;
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
- pairs.push([key, value]);
- this.size = ++data.size;
- return this;
- }
- data = this.__data__ = new MapCache(pairs);
- }
- data.set(key, value);
- this.size = data.size;
- return this;
- }
-
- // Add methods to `Stack`.
- Stack.prototype.clear = stackClear;
- Stack.prototype['delete'] = stackDelete;
- Stack.prototype.get = stackGet;
- Stack.prototype.has = stackHas;
- Stack.prototype.set = stackSet;
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an array of the enumerable property names of the array-like `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @param {boolean} inherited Specify returning inherited property names.
- * @returns {Array} Returns the array of property names.
- */
- function arrayLikeKeys(value, inherited) {
- var isArr = isArray(value),
- isArg = !isArr && isArguments(value),
- isBuff = !isArr && !isArg && isBuffer(value),
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
- skipIndexes = isArr || isArg || isBuff || isType,
- result = skipIndexes ? baseTimes(value.length, String) : [],
- length = result.length;
-
- for (var key in value) {
- if ((inherited || hasOwnProperty.call(value, key)) &&
- !(skipIndexes && (
- // Safari 9 has enumerable `arguments.length` in strict mode.
- key == 'length' ||
- // Node.js 0.10 has enumerable non-index properties on buffers.
- (isBuff && (key == 'offset' || key == 'parent')) ||
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
- // Skip index properties.
- isIndex(key, length)
- ))) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `_.sample` for arrays.
- *
- * @private
- * @param {Array} array The array to sample.
- * @returns {*} Returns the random element.
- */
- function arraySample(array) {
- var length = array.length;
- return length ? array[baseRandom(0, length - 1)] : undefined;
- }
-
- /**
- * A specialized version of `_.sampleSize` for arrays.
- *
- * @private
- * @param {Array} array The array to sample.
- * @param {number} n The number of elements to sample.
- * @returns {Array} Returns the random elements.
- */
- function arraySampleSize(array, n) {
- return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
- }
-
- /**
- * A specialized version of `_.shuffle` for arrays.
- *
- * @private
- * @param {Array} array The array to shuffle.
- * @returns {Array} Returns the new shuffled array.
- */
- function arrayShuffle(array) {
- return shuffleSelf(copyArray(array));
- }
-
- /**
- * This function is like `assignValue` except that it doesn't assign
- * `undefined` values.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignMergeValue(object, key, value) {
- if ((value !== undefined && !eq(object[key], value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
- }
- }
-
- /**
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function assignValue(object, key, value) {
- var objValue = object[key];
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
- (value === undefined && !(key in object))) {
- baseAssignValue(object, key, value);
- }
- }
-
- /**
- * Gets the index at which the `key` is found in `array` of key-value pairs.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {*} key The key to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- */
- function assocIndexOf(array, key) {
- var length = array.length;
- while (length--) {
- if (eq(array[length][0], key)) {
- return length;
- }
- }
- return -1;
- }
-
- /**
- * Aggregates elements of `collection` on `accumulator` with keys transformed
- * by `iteratee` and values set by `setter`.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform keys.
- * @param {Object} accumulator The initial aggregated object.
- * @returns {Function} Returns `accumulator`.
- */
- function baseAggregator(collection, setter, iteratee, accumulator) {
- baseEach(collection, function(value, key, collection) {
- setter(accumulator, value, iteratee(value), collection);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.assign` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
- function baseAssign(object, source) {
- return object && copyObject(source, keys(source), object);
- }
-
- /**
- * The base implementation of `_.assignIn` without support for multiple sources
- * or `customizer` functions.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @returns {Object} Returns `object`.
- */
- function baseAssignIn(object, source) {
- return object && copyObject(source, keysIn(source), object);
- }
-
- /**
- * The base implementation of `assignValue` and `assignMergeValue` without
- * value checks.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {string} key The key of the property to assign.
- * @param {*} value The value to assign.
- */
- function baseAssignValue(object, key, value) {
- if (key == '__proto__' && defineProperty) {
- defineProperty(object, key, {
- 'configurable': true,
- 'enumerable': true,
- 'value': value,
- 'writable': true
- });
- } else {
- object[key] = value;
- }
- }
-
- /**
- * The base implementation of `_.at` without support for individual paths.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {string[]} paths The property paths to pick.
- * @returns {Array} Returns the picked elements.
- */
- function baseAt(object, paths) {
- var index = -1,
- length = paths.length,
- result = Array(length),
- skip = object == null;
-
- while (++index < length) {
- result[index] = skip ? undefined : get(object, paths[index]);
- }
- return result;
- }
-
- /**
- * The base implementation of `_.clamp` which doesn't coerce arguments.
- *
- * @private
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- */
- function baseClamp(number, lower, upper) {
- if (number === number) {
- if (upper !== undefined) {
- number = number <= upper ? number : upper;
- }
- if (lower !== undefined) {
- number = number >= lower ? number : lower;
- }
- }
- return number;
- }
-
- /**
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
- * traversed objects.
- *
- * @private
- * @param {*} value The value to clone.
- * @param {boolean} bitmask The bitmask flags.
- * 1 - Deep clone
- * 2 - Flatten inherited properties
- * 4 - Clone symbols
- * @param {Function} [customizer] The function to customize cloning.
- * @param {string} [key] The key of `value`.
- * @param {Object} [object] The parent object of `value`.
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
- * @returns {*} Returns the cloned value.
- */
- function baseClone(value, bitmask, customizer, key, object, stack) {
- var result,
- isDeep = bitmask & CLONE_DEEP_FLAG,
- isFlat = bitmask & CLONE_FLAT_FLAG,
- isFull = bitmask & CLONE_SYMBOLS_FLAG;
-
- if (customizer) {
- result = object ? customizer(value, key, object, stack) : customizer(value);
- }
- if (result !== undefined) {
- return result;
- }
- if (!isObject(value)) {
- return value;
- }
- var isArr = isArray(value);
- if (isArr) {
- result = initCloneArray(value);
- if (!isDeep) {
- return copyArray(value, result);
- }
- } else {
- var tag = getTag(value),
- isFunc = tag == funcTag || tag == genTag;
-
- if (isBuffer(value)) {
- return cloneBuffer(value, isDeep);
- }
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
- result = (isFlat || isFunc) ? {} : initCloneObject(value);
- if (!isDeep) {
- return isFlat
- ? copySymbolsIn(value, baseAssignIn(result, value))
- : copySymbols(value, baseAssign(result, value));
- }
- } else {
- if (!cloneableTags[tag]) {
- return object ? value : {};
- }
- result = initCloneByTag(value, tag, isDeep);
- }
- }
- // Check for circular references and return its corresponding clone.
- stack || (stack = new Stack);
- var stacked = stack.get(value);
- if (stacked) {
- return stacked;
- }
- stack.set(value, result);
-
- if (isSet(value)) {
- value.forEach(function(subValue) {
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
- });
- } else if (isMap(value)) {
- value.forEach(function(subValue, key) {
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
- });
- }
-
- var keysFunc = isFull
- ? (isFlat ? getAllKeysIn : getAllKeys)
- : (isFlat ? keysIn : keys);
-
- var props = isArr ? undefined : keysFunc(value);
- arrayEach(props || value, function(subValue, key) {
- if (props) {
- key = subValue;
- subValue = value[key];
- }
- // Recursively populate clone (susceptible to call stack limits).
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
- });
- return result;
- }
-
- /**
- * The base implementation of `_.conforms` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- */
- function baseConforms(source) {
- var props = keys(source);
- return function(object) {
- return baseConformsTo(object, source, props);
- };
- }
-
- /**
- * The base implementation of `_.conformsTo` which accepts `props` to check.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property predicates to conform to.
- * @returns {boolean} Returns `true` if `object` conforms, else `false`.
- */
- function baseConformsTo(object, source, props) {
- var length = props.length;
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (length--) {
- var key = props[length],
- predicate = source[key],
- value = object[key];
-
- if ((value === undefined && !(key in object)) || !predicate(value)) {
- return false;
- }
- }
- return true;
- }
-
- /**
- * The base implementation of `_.delay` and `_.defer` which accepts `args`
- * to provide to `func`.
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {Array} args The arguments to provide to `func`.
- * @returns {number|Object} Returns the timer id or timeout object.
- */
- function baseDelay(func, wait, args) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return setTimeout(function() { func.apply(undefined, args); }, wait);
- }
-
- /**
- * The base implementation of methods like `_.difference` without support
- * for excluding multiple arrays or iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Array} values The values to exclude.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- */
- function baseDifference(array, values, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- isCommon = true,
- length = array.length,
- result = [],
- valuesLength = values.length;
-
- if (!length) {
- return result;
- }
- if (iteratee) {
- values = arrayMap(values, baseUnary(iteratee));
- }
- if (comparator) {
- includes = arrayIncludesWith;
- isCommon = false;
- }
- else if (values.length >= LARGE_ARRAY_SIZE) {
- includes = cacheHas;
- isCommon = false;
- values = new SetCache(values);
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee == null ? value : iteratee(value);
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var valuesIndex = valuesLength;
- while (valuesIndex--) {
- if (values[valuesIndex] === computed) {
- continue outer;
- }
- }
- result.push(value);
- }
- else if (!includes(values, computed, comparator)) {
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.forEach` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEach = createBaseEach(baseForOwn);
-
- /**
- * The base implementation of `_.forEachRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- */
- var baseEachRight = createBaseEach(baseForOwnRight, true);
-
- /**
- * The base implementation of `_.every` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`
- */
- function baseEvery(collection, predicate) {
- var result = true;
- baseEach(collection, function(value, index, collection) {
- result = !!predicate(value, index, collection);
- return result;
- });
- return result;
- }
-
- /**
- * The base implementation of methods like `_.max` and `_.min` which accepts a
- * `comparator` to determine the extremum value.
- *
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} iteratee The iteratee invoked per iteration.
- * @param {Function} comparator The comparator used to compare values.
- * @returns {*} Returns the extremum value.
- */
- function baseExtremum(array, iteratee, comparator) {
- var index = -1,
- length = array.length;
-
- while (++index < length) {
- var value = array[index],
- current = iteratee(value);
-
- if (current != null && (computed === undefined
- ? (current === current && !isSymbol(current))
- : comparator(current, computed)
- )) {
- var computed = current,
- result = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.fill` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- */
- function baseFill(array, value, start, end) {
- var length = array.length;
-
- start = toInteger(start);
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = (end === undefined || end > length) ? length : toInteger(end);
- if (end < 0) {
- end += length;
- }
- end = start > end ? 0 : toLength(end);
- while (start < end) {
- array[start++] = value;
- }
- return array;
- }
-
- /**
- * The base implementation of `_.filter` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- */
- function baseFilter(collection, predicate) {
- var result = [];
- baseEach(collection, function(value, index, collection) {
- if (predicate(value, index, collection)) {
- result.push(value);
- }
- });
- return result;
- }
-
- /**
- * The base implementation of `_.flatten` with support for restricting flattening.
- *
- * @private
- * @param {Array} array The array to flatten.
- * @param {number} depth The maximum recursion depth.
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
- * @param {Array} [result=[]] The initial result value.
- * @returns {Array} Returns the new flattened array.
- */
- function baseFlatten(array, depth, predicate, isStrict, result) {
- var index = -1,
- length = array.length;
-
- predicate || (predicate = isFlattenable);
- result || (result = []);
-
- while (++index < length) {
- var value = array[index];
- if (depth > 0 && predicate(value)) {
- if (depth > 1) {
- // Recursively flatten arrays (susceptible to call stack limits).
- baseFlatten(value, depth - 1, predicate, isStrict, result);
- } else {
- arrayPush(result, value);
- }
- } else if (!isStrict) {
- result[result.length] = value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `baseForOwn` which iterates over `object`
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseFor = createBaseFor();
-
- /**
- * This function is like `baseFor` except that it iterates over properties
- * in the opposite order.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @returns {Object} Returns `object`.
- */
- var baseForRight = createBaseFor(true);
-
- /**
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwn(object, iteratee) {
- return object && baseFor(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Object} Returns `object`.
- */
- function baseForOwnRight(object, iteratee) {
- return object && baseForRight(object, iteratee, keys);
- }
-
- /**
- * The base implementation of `_.functions` which creates an array of
- * `object` function property names filtered from `props`.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Array} props The property names to filter.
- * @returns {Array} Returns the function names.
- */
- function baseFunctions(object, props) {
- return arrayFilter(props, function(key) {
- return isFunction(object[key]);
- });
- }
-
- /**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
- function baseGet(object, path) {
- path = castPath(path, object);
-
- var index = 0,
- length = path.length;
-
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
- }
- return (index && index == length) ? object : undefined;
- }
-
- /**
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Function} keysFunc The function to get the keys of `object`.
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
- var result = keysFunc(object);
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
- }
-
- /**
- * The base implementation of `getTag` without fallbacks for buggy environments.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
- function baseGetTag(value) {
- if (value == null) {
- return value === undefined ? undefinedTag : nullTag;
- }
- return (symToStringTag && symToStringTag in Object(value))
- ? getRawTag(value)
- : objectToString(value);
- }
-
- /**
- * The base implementation of `_.gt` which doesn't coerce arguments.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- */
- function baseGt(value, other) {
- return value > other;
- }
-
- /**
- * The base implementation of `_.has` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHas(object, key) {
- return object != null && hasOwnProperty.call(object, key);
- }
-
- /**
- * The base implementation of `_.hasIn` without support for deep paths.
- *
- * @private
- * @param {Object} [object] The object to query.
- * @param {Array|string} key The key to check.
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
- */
- function baseHasIn(object, key) {
- return object != null && key in Object(object);
- }
-
- /**
- * The base implementation of `_.inRange` which doesn't coerce arguments.
- *
- * @private
- * @param {number} number The number to check.
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- */
- function baseInRange(number, start, end) {
- return number >= nativeMin(start, end) && number < nativeMax(start, end);
- }
-
- /**
- * The base implementation of methods like `_.intersection`, without support
- * for iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of shared values.
- */
- function baseIntersection(arrays, iteratee, comparator) {
- var includes = comparator ? arrayIncludesWith : arrayIncludes,
- length = arrays[0].length,
- othLength = arrays.length,
- othIndex = othLength,
- caches = Array(othLength),
- maxLength = Infinity,
- result = [];
-
- while (othIndex--) {
- var array = arrays[othIndex];
- if (othIndex && iteratee) {
- array = arrayMap(array, baseUnary(iteratee));
- }
- maxLength = nativeMin(array.length, maxLength);
- caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))
- ? new SetCache(othIndex && array)
- : undefined;
- }
- array = arrays[0];
-
- var index = -1,
- seen = caches[0];
-
- outer:
- while (++index < length && result.length < maxLength) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (!(seen
- ? cacheHas(seen, computed)
- : includes(result, computed, comparator)
- )) {
- othIndex = othLength;
- while (--othIndex) {
- var cache = caches[othIndex];
- if (!(cache
- ? cacheHas(cache, computed)
- : includes(arrays[othIndex], computed, comparator))
- ) {
- continue outer;
- }
- }
- if (seen) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.invert` and `_.invertBy` which inverts
- * `object` with values transformed by `iteratee` and set by `setter`.
- *
- * @private
- * @param {Object} object The object to iterate over.
- * @param {Function} setter The function to set `accumulator` values.
- * @param {Function} iteratee The iteratee to transform values.
- * @param {Object} accumulator The initial inverted object.
- * @returns {Function} Returns `accumulator`.
- */
- function baseInverter(object, setter, iteratee, accumulator) {
- baseForOwn(object, function(value, key, object) {
- setter(accumulator, iteratee(value), key, object);
- });
- return accumulator;
- }
-
- /**
- * The base implementation of `_.invoke` without support for individual
- * method arguments.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {Array} args The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- */
- function baseInvoke(object, path, args) {
- path = castPath(path, object);
- object = parent(object, path);
- var func = object == null ? object : object[toKey(last(path))];
- return func == null ? undefined : apply(func, object, args);
- }
-
- /**
- * The base implementation of `_.isArguments`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- */
- function baseIsArguments(value) {
- return isObjectLike(value) && baseGetTag(value) == argsTag;
- }
-
- /**
- * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
- */
- function baseIsArrayBuffer(value) {
- return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
- }
-
- /**
- * The base implementation of `_.isDate` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
- */
- function baseIsDate(value) {
- return isObjectLike(value) && baseGetTag(value) == dateTag;
- }
-
- /**
- * The base implementation of `_.isEqual` which supports partial comparisons
- * and tracks traversed objects.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {boolean} bitmask The bitmask flags.
- * 1 - Unordered comparison
- * 2 - Partial comparison
- * @param {Function} [customizer] The function to customize comparisons.
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- */
- function baseIsEqual(value, other, bitmask, customizer, stack) {
- if (value === other) {
- return true;
- }
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
- return value !== value && other !== other;
- }
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
- }
-
- /**
- * A specialized version of `baseIsEqual` for arrays and objects which performs
- * deep comparisons and tracks traversed objects enabling objects with circular
- * references to be compared.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
- var objIsArr = isArray(object),
- othIsArr = isArray(other),
- objTag = objIsArr ? arrayTag : getTag(object),
- othTag = othIsArr ? arrayTag : getTag(other);
-
- objTag = objTag == argsTag ? objectTag : objTag;
- othTag = othTag == argsTag ? objectTag : othTag;
-
- var objIsObj = objTag == objectTag,
- othIsObj = othTag == objectTag,
- isSameTag = objTag == othTag;
-
- if (isSameTag && isBuffer(object)) {
- if (!isBuffer(other)) {
- return false;
- }
- objIsArr = true;
- objIsObj = false;
- }
- if (isSameTag && !objIsObj) {
- stack || (stack = new Stack);
- return (objIsArr || isTypedArray(object))
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
- }
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
-
- if (objIsWrapped || othIsWrapped) {
- var objUnwrapped = objIsWrapped ? object.value() : object,
- othUnwrapped = othIsWrapped ? other.value() : other;
-
- stack || (stack = new Stack);
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
- }
- }
- if (!isSameTag) {
- return false;
- }
- stack || (stack = new Stack);
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
- }
-
- /**
- * The base implementation of `_.isMap` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
- */
- function baseIsMap(value) {
- return isObjectLike(value) && getTag(value) == mapTag;
- }
-
- /**
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Array} matchData The property names, values, and compare flags to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- */
- function baseIsMatch(object, source, matchData, customizer) {
- var index = matchData.length,
- length = index,
- noCustomizer = !customizer;
-
- if (object == null) {
- return !length;
- }
- object = Object(object);
- while (index--) {
- var data = matchData[index];
- if ((noCustomizer && data[2])
- ? data[1] !== object[data[0]]
- : !(data[0] in object)
- ) {
- return false;
- }
- }
- while (++index < length) {
- data = matchData[index];
- var key = data[0],
- objValue = object[key],
- srcValue = data[1];
-
- if (noCustomizer && data[2]) {
- if (objValue === undefined && !(key in object)) {
- return false;
- }
- } else {
- var stack = new Stack;
- if (customizer) {
- var result = customizer(objValue, srcValue, key, object, source, stack);
- }
- if (!(result === undefined
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
- : result
- )) {
- return false;
- }
- }
- }
- return true;
- }
-
- /**
- * The base implementation of `_.isNative` without bad shim checks.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- */
- function baseIsNative(value) {
- if (!isObject(value) || isMasked(value)) {
- return false;
- }
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
- return pattern.test(toSource(value));
- }
-
- /**
- * The base implementation of `_.isRegExp` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- */
- function baseIsRegExp(value) {
- return isObjectLike(value) && baseGetTag(value) == regexpTag;
- }
-
- /**
- * The base implementation of `_.isSet` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
- */
- function baseIsSet(value) {
- return isObjectLike(value) && getTag(value) == setTag;
- }
-
- /**
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
- */
- function baseIsTypedArray(value) {
- return isObjectLike(value) &&
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
- }
-
- /**
- * The base implementation of `_.iteratee`.
- *
- * @private
- * @param {*} [value=_.identity] The value to convert to an iteratee.
- * @returns {Function} Returns the iteratee.
- */
- function baseIteratee(value) {
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
- if (typeof value == 'function') {
- return value;
- }
- if (value == null) {
- return identity;
- }
- if (typeof value == 'object') {
- return isArray(value)
- ? baseMatchesProperty(value[0], value[1])
- : baseMatches(value);
- }
- return property(value);
- }
-
- /**
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeys(object) {
- if (!isPrototype(object)) {
- return nativeKeys(object);
- }
- var result = [];
- for (var key in Object(object)) {
- if (hasOwnProperty.call(object, key) && key != 'constructor') {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function baseKeysIn(object) {
- if (!isObject(object)) {
- return nativeKeysIn(object);
- }
- var isProto = isPrototype(object),
- result = [];
-
- for (var key in object) {
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.lt` which doesn't coerce arguments.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- */
- function baseLt(value, other) {
- return value < other;
- }
-
- /**
- * The base implementation of `_.map` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} iteratee The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- */
- function baseMap(collection, iteratee) {
- var index = -1,
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value, key, collection) {
- result[++index] = iteratee(value, key, collection);
- });
- return result;
- }
-
- /**
- * The base implementation of `_.matches` which doesn't clone `source`.
- *
- * @private
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatches(source) {
- var matchData = getMatchData(source);
- if (matchData.length == 1 && matchData[0][2]) {
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
- }
- return function(object) {
- return object === source || baseIsMatch(object, source, matchData);
- };
- }
-
- /**
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
- *
- * @private
- * @param {string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function baseMatchesProperty(path, srcValue) {
- if (isKey(path) && isStrictComparable(srcValue)) {
- return matchesStrictComparable(toKey(path), srcValue);
- }
- return function(object) {
- var objValue = get(object, path);
- return (objValue === undefined && objValue === srcValue)
- ? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
- };
- }
-
- /**
- * The base implementation of `_.merge` without support for multiple sources.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} [customizer] The function to customize merged values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMerge(object, source, srcIndex, customizer, stack) {
- if (object === source) {
- return;
- }
- baseFor(source, function(srcValue, key) {
- stack || (stack = new Stack);
- if (isObject(srcValue)) {
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
- }
- else {
- var newValue = customizer
- ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
- : undefined;
-
- if (newValue === undefined) {
- newValue = srcValue;
- }
- assignMergeValue(object, key, newValue);
- }
- }, keysIn);
- }
-
- /**
- * A specialized version of `baseMerge` for arrays and objects which performs
- * deep merges and tracks traversed objects enabling objects with circular
- * references to be merged.
- *
- * @private
- * @param {Object} object The destination object.
- * @param {Object} source The source object.
- * @param {string} key The key of the value to merge.
- * @param {number} srcIndex The index of `source`.
- * @param {Function} mergeFunc The function to merge values.
- * @param {Function} [customizer] The function to customize assigned values.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- */
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
- var objValue = safeGet(object, key),
- srcValue = safeGet(source, key),
- stacked = stack.get(srcValue);
-
- if (stacked) {
- assignMergeValue(object, key, stacked);
- return;
- }
- var newValue = customizer
- ? customizer(objValue, srcValue, (key + ''), object, source, stack)
- : undefined;
-
- var isCommon = newValue === undefined;
-
- if (isCommon) {
- var isArr = isArray(srcValue),
- isBuff = !isArr && isBuffer(srcValue),
- isTyped = !isArr && !isBuff && isTypedArray(srcValue);
-
- newValue = srcValue;
- if (isArr || isBuff || isTyped) {
- if (isArray(objValue)) {
- newValue = objValue;
- }
- else if (isArrayLikeObject(objValue)) {
- newValue = copyArray(objValue);
- }
- else if (isBuff) {
- isCommon = false;
- newValue = cloneBuffer(srcValue, true);
- }
- else if (isTyped) {
- isCommon = false;
- newValue = cloneTypedArray(srcValue, true);
- }
- else {
- newValue = [];
- }
- }
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
- newValue = objValue;
- if (isArguments(objValue)) {
- newValue = toPlainObject(objValue);
- }
- else if (!isObject(objValue) || isFunction(objValue)) {
- newValue = initCloneObject(srcValue);
- }
- }
- else {
- isCommon = false;
- }
- }
- if (isCommon) {
- // Recursively merge objects and arrays (susceptible to call stack limits).
- stack.set(srcValue, newValue);
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
- stack['delete'](srcValue);
- }
- assignMergeValue(object, key, newValue);
- }
-
- /**
- * The base implementation of `_.nth` which doesn't coerce arguments.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {number} n The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- */
- function baseNth(array, n) {
- var length = array.length;
- if (!length) {
- return;
- }
- n += n < 0 ? length : 0;
- return isIndex(n, length) ? array[n] : undefined;
- }
-
- /**
- * The base implementation of `_.orderBy` without param guards.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
- * @param {string[]} orders The sort orders of `iteratees`.
- * @returns {Array} Returns the new sorted array.
- */
- function baseOrderBy(collection, iteratees, orders) {
- var index = -1;
- iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
-
- var result = baseMap(collection, function(value, key, collection) {
- var criteria = arrayMap(iteratees, function(iteratee) {
- return iteratee(value);
- });
- return { 'criteria': criteria, 'index': ++index, 'value': value };
- });
-
- return baseSortBy(result, function(object, other) {
- return compareMultiple(object, other, orders);
- });
- }
-
- /**
- * The base implementation of `_.pick` without support for individual
- * property identifiers.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} paths The property paths to pick.
- * @returns {Object} Returns the new object.
- */
- function basePick(object, paths) {
- return basePickBy(object, paths, function(value, path) {
- return hasIn(object, path);
- });
- }
-
- /**
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Object} object The source object.
- * @param {string[]} paths The property paths to pick.
- * @param {Function} predicate The function invoked per property.
- * @returns {Object} Returns the new object.
- */
- function basePickBy(object, paths, predicate) {
- var index = -1,
- length = paths.length,
- result = {};
-
- while (++index < length) {
- var path = paths[index],
- value = baseGet(object, path);
-
- if (predicate(value, path)) {
- baseSet(result, castPath(path, object), value);
- }
- }
- return result;
- }
-
- /**
- * A specialized version of `baseProperty` which supports deep paths.
- *
- * @private
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- */
- function basePropertyDeep(path) {
- return function(object) {
- return baseGet(object, path);
- };
- }
-
- /**
- * The base implementation of `_.pullAllBy` without support for iteratee
- * shorthands.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- */
- function basePullAll(array, values, iteratee, comparator) {
- var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
- index = -1,
- length = values.length,
- seen = array;
-
- if (array === values) {
- values = copyArray(values);
- }
- if (iteratee) {
- seen = arrayMap(array, baseUnary(iteratee));
- }
- while (++index < length) {
- var fromIndex = 0,
- value = values[index],
- computed = iteratee ? iteratee(value) : value;
-
- while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
- if (seen !== array) {
- splice.call(seen, fromIndex, 1);
- }
- splice.call(array, fromIndex, 1);
- }
- }
- return array;
- }
-
- /**
- * The base implementation of `_.pullAt` without support for individual
- * indexes or capturing the removed elements.
- *
- * @private
- * @param {Array} array The array to modify.
- * @param {number[]} indexes The indexes of elements to remove.
- * @returns {Array} Returns `array`.
- */
- function basePullAt(array, indexes) {
- var length = array ? indexes.length : 0,
- lastIndex = length - 1;
-
- while (length--) {
- var index = indexes[length];
- if (length == lastIndex || index !== previous) {
- var previous = index;
- if (isIndex(index)) {
- splice.call(array, index, 1);
- } else {
- baseUnset(array, index);
- }
- }
- }
- return array;
- }
-
- /**
- * The base implementation of `_.random` without support for returning
- * floating-point numbers.
- *
- * @private
- * @param {number} lower The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the random number.
- */
- function baseRandom(lower, upper) {
- return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
- }
-
- /**
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
- * coerce arguments.
- *
- * @private
- * @param {number} start The start of the range.
- * @param {number} end The end of the range.
- * @param {number} step The value to increment or decrement by.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the range of numbers.
- */
- function baseRange(start, end, step, fromRight) {
- var index = -1,
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
- result = Array(length);
-
- while (length--) {
- result[fromRight ? length : ++index] = start;
- start += step;
- }
- return result;
- }
-
- /**
- * The base implementation of `_.repeat` which doesn't coerce arguments.
- *
- * @private
- * @param {string} string The string to repeat.
- * @param {number} n The number of times to repeat the string.
- * @returns {string} Returns the repeated string.
- */
- function baseRepeat(string, n) {
- var result = '';
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
- return result;
- }
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
- do {
- if (n % 2) {
- result += string;
- }
- n = nativeFloor(n / 2);
- if (n) {
- string += string;
- }
- } while (n);
-
- return result;
- }
-
- /**
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- */
- function baseRest(func, start) {
- return setToString(overRest(func, start, identity), func + '');
- }
-
- /**
- * The base implementation of `_.sample`.
- *
- * @private
- * @param {Array|Object} collection The collection to sample.
- * @returns {*} Returns the random element.
- */
- function baseSample(collection) {
- return arraySample(values(collection));
- }
-
- /**
- * The base implementation of `_.sampleSize` without param guards.
- *
- * @private
- * @param {Array|Object} collection The collection to sample.
- * @param {number} n The number of elements to sample.
- * @returns {Array} Returns the random elements.
- */
- function baseSampleSize(collection, n) {
- var array = values(collection);
- return shuffleSelf(array, baseClamp(n, 0, array.length));
- }
-
- /**
- * The base implementation of `_.set`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
- function baseSet(object, path, value, customizer) {
- if (!isObject(object)) {
- return object;
- }
- path = castPath(path, object);
-
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- nested = object;
-
- while (nested != null && ++index < length) {
- var key = toKey(path[index]),
- newValue = value;
-
- if (index != lastIndex) {
- var objValue = nested[key];
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
- if (newValue === undefined) {
- newValue = isObject(objValue)
- ? objValue
- : (isIndex(path[index + 1]) ? [] : {});
- }
- }
- assignValue(nested, key, newValue);
- nested = nested[key];
- }
- return object;
- }
-
- /**
- * The base implementation of `setData` without support for hot loop shorting.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
- var baseSetData = !metaMap ? identity : function(func, data) {
- metaMap.set(func, data);
- return func;
- };
-
- /**
- * The base implementation of `setToString` without support for hot loop shorting.
- *
- * @private
- * @param {Function} func The function to modify.
- * @param {Function} string The `toString` result.
- * @returns {Function} Returns `func`.
- */
- var baseSetToString = !defineProperty ? identity : function(func, string) {
- return defineProperty(func, 'toString', {
- 'configurable': true,
- 'enumerable': false,
- 'value': constant(string),
- 'writable': true
- });
- };
-
- /**
- * The base implementation of `_.shuffle`.
- *
- * @private
- * @param {Array|Object} collection The collection to shuffle.
- * @returns {Array} Returns the new shuffled array.
- */
- function baseShuffle(collection) {
- return shuffleSelf(values(collection));
- }
-
- /**
- * The base implementation of `_.slice` without an iteratee call guard.
- *
- * @private
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseSlice(array, start, end) {
- var index = -1,
- length = array.length;
-
- if (start < 0) {
- start = -start > length ? 0 : (length + start);
- }
- end = end > length ? length : end;
- if (end < 0) {
- end += length;
- }
- length = start > end ? 0 : ((end - start) >>> 0);
- start >>>= 0;
-
- var result = Array(length);
- while (++index < length) {
- result[index] = array[index + start];
- }
- return result;
- }
-
- /**
- * The base implementation of `_.some` without support for iteratee shorthands.
- *
- * @private
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} predicate The function invoked per iteration.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- */
- function baseSome(collection, predicate) {
- var result;
-
- baseEach(collection, function(value, index, collection) {
- result = predicate(value, index, collection);
- return !result;
- });
- return !!result;
- }
-
- /**
- * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
- * performs a binary search of `array` to determine the index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
- function baseSortedIndex(array, value, retHighest) {
- var low = 0,
- high = array == null ? low : array.length;
-
- if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
- while (low < high) {
- var mid = (low + high) >>> 1,
- computed = array[mid];
-
- if (computed !== null && !isSymbol(computed) &&
- (retHighest ? (computed <= value) : (computed < value))) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return high;
- }
- return baseSortedIndexBy(array, value, identity, retHighest);
- }
-
- /**
- * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
- * which invokes `iteratee` for `value` and each element of `array` to compute
- * their sort ranking. The iteratee is invoked with one argument; (value).
- *
- * @private
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} iteratee The iteratee invoked per element.
- * @param {boolean} [retHighest] Specify returning the highest qualified index.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- */
- function baseSortedIndexBy(array, value, iteratee, retHighest) {
- value = iteratee(value);
-
- var low = 0,
- high = array == null ? 0 : array.length,
- valIsNaN = value !== value,
- valIsNull = value === null,
- valIsSymbol = isSymbol(value),
- valIsUndefined = value === undefined;
-
- while (low < high) {
- var mid = nativeFloor((low + high) / 2),
- computed = iteratee(array[mid]),
- othIsDefined = computed !== undefined,
- othIsNull = computed === null,
- othIsReflexive = computed === computed,
- othIsSymbol = isSymbol(computed);
-
- if (valIsNaN) {
- var setLow = retHighest || othIsReflexive;
- } else if (valIsUndefined) {
- setLow = othIsReflexive && (retHighest || othIsDefined);
- } else if (valIsNull) {
- setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
- } else if (valIsSymbol) {
- setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
- } else if (othIsNull || othIsSymbol) {
- setLow = false;
- } else {
- setLow = retHighest ? (computed <= value) : (computed < value);
- }
- if (setLow) {
- low = mid + 1;
- } else {
- high = mid;
- }
- }
- return nativeMin(high, MAX_ARRAY_INDEX);
- }
-
- /**
- * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
- * support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
- function baseSortedUniq(array, iteratee) {
- var index = -1,
- length = array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- if (!index || !eq(computed, seen)) {
- var seen = computed;
- result[resIndex++] = value === 0 ? 0 : value;
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.toNumber` which doesn't ensure correct
- * conversions of binary, hexadecimal, or octal string values.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- */
- function baseToNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- return +value;
- }
-
- /**
- * The base implementation of `_.toString` which doesn't convert nullish
- * values to empty strings.
- *
- * @private
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- */
- function baseToString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (isArray(value)) {
- // Recursively convert values (susceptible to call stack limits).
- return arrayMap(value, baseToString) + '';
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
-
- /**
- * The base implementation of `_.uniqBy` without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- */
- function baseUniq(array, iteratee, comparator) {
- var index = -1,
- includes = arrayIncludes,
- length = array.length,
- isCommon = true,
- result = [],
- seen = result;
-
- if (comparator) {
- isCommon = false;
- includes = arrayIncludesWith;
- }
- else if (length >= LARGE_ARRAY_SIZE) {
- var set = iteratee ? null : createSet(array);
- if (set) {
- return setToArray(set);
- }
- isCommon = false;
- includes = cacheHas;
- seen = new SetCache;
- }
- else {
- seen = iteratee ? [] : result;
- }
- outer:
- while (++index < length) {
- var value = array[index],
- computed = iteratee ? iteratee(value) : value;
-
- value = (comparator || value !== 0) ? value : 0;
- if (isCommon && computed === computed) {
- var seenIndex = seen.length;
- while (seenIndex--) {
- if (seen[seenIndex] === computed) {
- continue outer;
- }
- }
- if (iteratee) {
- seen.push(computed);
- }
- result.push(value);
- }
- else if (!includes(seen, computed, comparator)) {
- if (seen !== result) {
- seen.push(computed);
- }
- result.push(value);
- }
- }
- return result;
- }
-
- /**
- * The base implementation of `_.unset`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The property path to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- */
- function baseUnset(object, path) {
- path = castPath(path, object);
- object = parent(object, path);
- return object == null || delete object[toKey(last(path))];
- }
-
- /**
- * The base implementation of `_.update`.
- *
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to update.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
- */
- function baseUpdate(object, path, updater, customizer) {
- return baseSet(object, path, updater(baseGet(object, path)), customizer);
- }
-
- /**
- * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
- * without support for iteratee shorthands.
- *
- * @private
- * @param {Array} array The array to query.
- * @param {Function} predicate The function invoked per iteration.
- * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Array} Returns the slice of `array`.
- */
- function baseWhile(array, predicate, isDrop, fromRight) {
- var length = array.length,
- index = fromRight ? length : -1;
-
- while ((fromRight ? index-- : ++index < length) &&
- predicate(array[index], index, array)) {}
-
- return isDrop
- ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))
- : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));
- }
-
- /**
- * The base implementation of `wrapperValue` which returns the result of
- * performing a sequence of actions on the unwrapped `value`, where each
- * successive action is supplied the return value of the previous.
- *
- * @private
- * @param {*} value The unwrapped value.
- * @param {Array} actions Actions to perform to resolve the unwrapped value.
- * @returns {*} Returns the resolved value.
- */
- function baseWrapperValue(value, actions) {
- var result = value;
- if (result instanceof LazyWrapper) {
- result = result.value();
- }
- return arrayReduce(actions, function(result, action) {
- return action.func.apply(action.thisArg, arrayPush([result], action.args));
- }, result);
- }
-
- /**
- * The base implementation of methods like `_.xor`, without support for
- * iteratee shorthands, that accepts an array of arrays to inspect.
- *
- * @private
- * @param {Array} arrays The arrays to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of values.
- */
- function baseXor(arrays, iteratee, comparator) {
- var length = arrays.length;
- if (length < 2) {
- return length ? baseUniq(arrays[0]) : [];
- }
- var index = -1,
- result = Array(length);
-
- while (++index < length) {
- var array = arrays[index],
- othIndex = -1;
-
- while (++othIndex < length) {
- if (othIndex != index) {
- result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
- }
- }
- }
- return baseUniq(baseFlatten(result, 1), iteratee, comparator);
- }
-
- /**
- * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
- *
- * @private
- * @param {Array} props The property identifiers.
- * @param {Array} values The property values.
- * @param {Function} assignFunc The function to assign values.
- * @returns {Object} Returns the new object.
- */
- function baseZipObject(props, values, assignFunc) {
- var index = -1,
- length = props.length,
- valsLength = values.length,
- result = {};
-
- while (++index < length) {
- var value = index < valsLength ? values[index] : undefined;
- assignFunc(result, props[index], value);
- }
- return result;
- }
-
- /**
- * Casts `value` to an empty array if it's not an array like object.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array|Object} Returns the cast array-like object.
- */
- function castArrayLikeObject(value) {
- return isArrayLikeObject(value) ? value : [];
- }
-
- /**
- * Casts `value` to `identity` if it's not a function.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Function} Returns cast function.
- */
- function castFunction(value) {
- return typeof value == 'function' ? value : identity;
- }
-
- /**
- * Casts `value` to a path array if it's not one.
- *
- * @private
- * @param {*} value The value to inspect.
- * @param {Object} [object] The object to query keys on.
- * @returns {Array} Returns the cast property path array.
- */
- function castPath(value, object) {
- if (isArray(value)) {
- return value;
- }
- return isKey(value, object) ? [value] : stringToPath(toString(value));
- }
-
- /**
- * A `baseRest` alias which can be replaced with `identity` by module
- * replacement plugins.
- *
- * @private
- * @type {Function}
- * @param {Function} func The function to apply a rest parameter to.
- * @returns {Function} Returns the new function.
- */
- var castRest = baseRest;
-
- /**
- * Casts `array` to a slice if it's needed.
- *
- * @private
- * @param {Array} array The array to inspect.
- * @param {number} start The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the cast slice.
- */
- function castSlice(array, start, end) {
- var length = array.length;
- end = end === undefined ? length : end;
- return (!start && end >= length) ? array : baseSlice(array, start, end);
- }
-
- /**
- * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
- *
- * @private
- * @param {number|Object} id The timer id or timeout object of the timer to clear.
- */
- var clearTimeout = ctxClearTimeout || function(id) {
- return root.clearTimeout(id);
- };
-
- /**
- * Creates a clone of `buffer`.
- *
- * @private
- * @param {Buffer} buffer The buffer to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Buffer} Returns the cloned buffer.
- */
- function cloneBuffer(buffer, isDeep) {
- if (isDeep) {
- return buffer.slice();
- }
- var length = buffer.length,
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
-
- buffer.copy(result);
- return result;
- }
-
- /**
- * Creates a clone of `arrayBuffer`.
- *
- * @private
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
- * @returns {ArrayBuffer} Returns the cloned array buffer.
- */
- function cloneArrayBuffer(arrayBuffer) {
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
- return result;
- }
-
- /**
- * Creates a clone of `dataView`.
- *
- * @private
- * @param {Object} dataView The data view to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned data view.
- */
- function cloneDataView(dataView, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
- }
-
- /**
- * Creates a clone of `regexp`.
- *
- * @private
- * @param {Object} regexp The regexp to clone.
- * @returns {Object} Returns the cloned regexp.
- */
- function cloneRegExp(regexp) {
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
- result.lastIndex = regexp.lastIndex;
- return result;
- }
-
- /**
- * Creates a clone of the `symbol` object.
- *
- * @private
- * @param {Object} symbol The symbol object to clone.
- * @returns {Object} Returns the cloned symbol object.
- */
- function cloneSymbol(symbol) {
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
- }
-
- /**
- * Creates a clone of `typedArray`.
- *
- * @private
- * @param {Object} typedArray The typed array to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the cloned typed array.
- */
- function cloneTypedArray(typedArray, isDeep) {
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
- }
-
- /**
- * Compares values to sort them in ascending order.
- *
- * @private
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {number} Returns the sort order indicator for `value`.
- */
- function compareAscending(value, other) {
- if (value !== other) {
- var valIsDefined = value !== undefined,
- valIsNull = value === null,
- valIsReflexive = value === value,
- valIsSymbol = isSymbol(value);
-
- var othIsDefined = other !== undefined,
- othIsNull = other === null,
- othIsReflexive = other === other,
- othIsSymbol = isSymbol(other);
-
- if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
- (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
- (valIsNull && othIsDefined && othIsReflexive) ||
- (!valIsDefined && othIsReflexive) ||
- !valIsReflexive) {
- return 1;
- }
- if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
- (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
- (othIsNull && valIsDefined && valIsReflexive) ||
- (!othIsDefined && valIsReflexive) ||
- !othIsReflexive) {
- return -1;
- }
- }
- return 0;
- }
-
- /**
- * Used by `_.orderBy` to compare multiple properties of a value to another
- * and stable sort them.
- *
- * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
- * specify an order of "desc" for descending or "asc" for ascending sort order
- * of corresponding values.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {boolean[]|string[]} orders The order to sort by for each property.
- * @returns {number} Returns the sort order indicator for `object`.
- */
- function compareMultiple(object, other, orders) {
- var index = -1,
- objCriteria = object.criteria,
- othCriteria = other.criteria,
- length = objCriteria.length,
- ordersLength = orders.length;
-
- while (++index < length) {
- var result = compareAscending(objCriteria[index], othCriteria[index]);
- if (result) {
- if (index >= ordersLength) {
- return result;
- }
- var order = orders[index];
- return result * (order == 'desc' ? -1 : 1);
- }
- }
- // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
- // that causes it, under certain circumstances, to provide the same value for
- // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
- // for more details.
- //
- // This also ensures a stable sort in V8 and other engines.
- // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
- return object.index - other.index;
- }
-
- /**
- * Creates an array that is the composition of partially applied arguments,
- * placeholders, and provided arguments into a single array of arguments.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to prepend to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
- function composeArgs(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersLength = holders.length,
- leftIndex = -1,
- leftLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(leftLength + rangeLength),
- isUncurried = !isCurried;
-
- while (++leftIndex < leftLength) {
- result[leftIndex] = partials[leftIndex];
- }
- while (++argsIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[holders[argsIndex]] = args[argsIndex];
- }
- }
- while (rangeLength--) {
- result[leftIndex++] = args[argsIndex++];
- }
- return result;
- }
-
- /**
- * This function is like `composeArgs` except that the arguments composition
- * is tailored for `_.partialRight`.
- *
- * @private
- * @param {Array} args The provided arguments.
- * @param {Array} partials The arguments to append to those provided.
- * @param {Array} holders The `partials` placeholder indexes.
- * @params {boolean} [isCurried] Specify composing for a curried function.
- * @returns {Array} Returns the new array of composed arguments.
- */
- function composeArgsRight(args, partials, holders, isCurried) {
- var argsIndex = -1,
- argsLength = args.length,
- holdersIndex = -1,
- holdersLength = holders.length,
- rightIndex = -1,
- rightLength = partials.length,
- rangeLength = nativeMax(argsLength - holdersLength, 0),
- result = Array(rangeLength + rightLength),
- isUncurried = !isCurried;
-
- while (++argsIndex < rangeLength) {
- result[argsIndex] = args[argsIndex];
- }
- var offset = argsIndex;
- while (++rightIndex < rightLength) {
- result[offset + rightIndex] = partials[rightIndex];
- }
- while (++holdersIndex < holdersLength) {
- if (isUncurried || argsIndex < argsLength) {
- result[offset + holders[holdersIndex]] = args[argsIndex++];
- }
- }
- return result;
- }
-
- /**
- * Copies the values of `source` to `array`.
- *
- * @private
- * @param {Array} source The array to copy values from.
- * @param {Array} [array=[]] The array to copy values to.
- * @returns {Array} Returns `array`.
- */
- function copyArray(source, array) {
- var index = -1,
- length = source.length;
-
- array || (array = Array(length));
- while (++index < length) {
- array[index] = source[index];
- }
- return array;
- }
-
- /**
- * Copies properties of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy properties from.
- * @param {Array} props The property identifiers to copy.
- * @param {Object} [object={}] The object to copy properties to.
- * @param {Function} [customizer] The function to customize copied values.
- * @returns {Object} Returns `object`.
- */
- function copyObject(source, props, object, customizer) {
- var isNew = !object;
- object || (object = {});
-
- var index = -1,
- length = props.length;
-
- while (++index < length) {
- var key = props[index];
-
- var newValue = customizer
- ? customizer(object[key], source[key], key, object, source)
- : undefined;
-
- if (newValue === undefined) {
- newValue = source[key];
- }
- if (isNew) {
- baseAssignValue(object, key, newValue);
- } else {
- assignValue(object, key, newValue);
- }
- }
- return object;
- }
-
- /**
- * Copies own symbols of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
- function copySymbols(source, object) {
- return copyObject(source, getSymbols(source), object);
- }
-
- /**
- * Copies own and inherited symbols of `source` to `object`.
- *
- * @private
- * @param {Object} source The object to copy symbols from.
- * @param {Object} [object={}] The object to copy symbols to.
- * @returns {Object} Returns `object`.
- */
- function copySymbolsIn(source, object) {
- return copyObject(source, getSymbolsIn(source), object);
- }
-
- /**
- * Creates a function like `_.groupBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} [initializer] The accumulator object initializer.
- * @returns {Function} Returns the new aggregator function.
- */
- function createAggregator(setter, initializer) {
- return function(collection, iteratee) {
- var func = isArray(collection) ? arrayAggregator : baseAggregator,
- accumulator = initializer ? initializer() : {};
-
- return func(collection, setter, getIteratee(iteratee, 2), accumulator);
- };
- }
-
- /**
- * Creates a function like `_.assign`.
- *
- * @private
- * @param {Function} assigner The function to assign values.
- * @returns {Function} Returns the new assigner function.
- */
- function createAssigner(assigner) {
- return baseRest(function(object, sources) {
- var index = -1,
- length = sources.length,
- customizer = length > 1 ? sources[length - 1] : undefined,
- guard = length > 2 ? sources[2] : undefined;
-
- customizer = (assigner.length > 3 && typeof customizer == 'function')
- ? (length--, customizer)
- : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- customizer = length < 3 ? undefined : customizer;
- length = 1;
- }
- object = Object(object);
- while (++index < length) {
- var source = sources[index];
- if (source) {
- assigner(object, source, index, customizer);
- }
- }
- return object;
- });
- }
-
- /**
- * Creates a `baseEach` or `baseEachRight` function.
- *
- * @private
- * @param {Function} eachFunc The function to iterate over a collection.
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseEach(eachFunc, fromRight) {
- return function(collection, iteratee) {
- if (collection == null) {
- return collection;
- }
- if (!isArrayLike(collection)) {
- return eachFunc(collection, iteratee);
- }
- var length = collection.length,
- index = fromRight ? length : -1,
- iterable = Object(collection);
-
- while ((fromRight ? index-- : ++index < length)) {
- if (iteratee(iterable[index], index, iterable) === false) {
- break;
- }
- }
- return collection;
- };
- }
-
- /**
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new base function.
- */
- function createBaseFor(fromRight) {
- return function(object, iteratee, keysFunc) {
- var index = -1,
- iterable = Object(object),
- props = keysFunc(object),
- length = props.length;
-
- while (length--) {
- var key = props[fromRight ? length : ++index];
- if (iteratee(iterable[key], key, iterable) === false) {
- break;
- }
- }
- return object;
- };
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the optional `this`
- * binding of `thisArg`.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createBind(func, bitmask, thisArg) {
- var isBind = bitmask & WRAP_BIND_FLAG,
- Ctor = createCtor(func);
-
- function wrapper() {
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return fn.apply(isBind ? thisArg : this, arguments);
- }
- return wrapper;
- }
-
- /**
- * Creates a function like `_.lowerFirst`.
- *
- * @private
- * @param {string} methodName The name of the `String` case method to use.
- * @returns {Function} Returns the new case function.
- */
- function createCaseFirst(methodName) {
- return function(string) {
- string = toString(string);
-
- var strSymbols = hasUnicode(string)
- ? stringToArray(string)
- : undefined;
-
- var chr = strSymbols
- ? strSymbols[0]
- : string.charAt(0);
-
- var trailing = strSymbols
- ? castSlice(strSymbols, 1).join('')
- : string.slice(1);
-
- return chr[methodName]() + trailing;
- };
- }
-
- /**
- * Creates a function like `_.camelCase`.
- *
- * @private
- * @param {Function} callback The function to combine each word.
- * @returns {Function} Returns the new compounder function.
- */
- function createCompounder(callback) {
- return function(string) {
- return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
- };
- }
-
- /**
- * Creates a function that produces an instance of `Ctor` regardless of
- * whether it was invoked as part of a `new` expression or by `call` or `apply`.
- *
- * @private
- * @param {Function} Ctor The constructor to wrap.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCtor(Ctor) {
- return function() {
- // Use a `switch` statement to work with class constructors. See
- // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
- // for more details.
- var args = arguments;
- switch (args.length) {
- case 0: return new Ctor;
- case 1: return new Ctor(args[0]);
- case 2: return new Ctor(args[0], args[1]);
- case 3: return new Ctor(args[0], args[1], args[2]);
- case 4: return new Ctor(args[0], args[1], args[2], args[3]);
- case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
- case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
- case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
- }
- var thisBinding = baseCreate(Ctor.prototype),
- result = Ctor.apply(thisBinding, args);
-
- // Mimic the constructor's `return` behavior.
- // See https://es5.github.io/#x13.2.2 for more details.
- return isObject(result) ? result : thisBinding;
- };
- }
-
- /**
- * Creates a function that wraps `func` to enable currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {number} arity The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createCurry(func, bitmask, arity) {
- var Ctor = createCtor(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length,
- placeholder = getHolder(wrapper);
-
- while (index--) {
- args[index] = arguments[index];
- }
- var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
- ? []
- : replaceHolders(args, placeholder);
-
- length -= holders.length;
- if (length < arity) {
- return createRecurry(
- func, bitmask, createHybrid, wrapper.placeholder, undefined,
- args, holders, undefined, undefined, arity - length);
- }
- var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
- return apply(fn, this, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a `_.find` or `_.findLast` function.
- *
- * @private
- * @param {Function} findIndexFunc The function to find the collection index.
- * @returns {Function} Returns the new find function.
- */
- function createFind(findIndexFunc) {
- return function(collection, predicate, fromIndex) {
- var iterable = Object(collection);
- if (!isArrayLike(collection)) {
- var iteratee = getIteratee(predicate, 3);
- collection = keys(collection);
- predicate = function(key) { return iteratee(iterable[key], key, iterable); };
- }
- var index = findIndexFunc(collection, predicate, fromIndex);
- return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
- };
- }
-
- /**
- * Creates a `_.flow` or `_.flowRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new flow function.
- */
- function createFlow(fromRight) {
- return flatRest(function(funcs) {
- var length = funcs.length,
- index = length,
- prereq = LodashWrapper.prototype.thru;
-
- if (fromRight) {
- funcs.reverse();
- }
- while (index--) {
- var func = funcs[index];
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
- var wrapper = new LodashWrapper([], true);
- }
- }
- index = wrapper ? index : length;
- while (++index < length) {
- func = funcs[index];
-
- var funcName = getFuncName(func),
- data = funcName == 'wrapper' ? getData(func) : undefined;
-
- if (data && isLaziable(data[0]) &&
- data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
- !data[4].length && data[9] == 1
- ) {
- wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
- } else {
- wrapper = (func.length == 1 && isLaziable(func))
- ? wrapper[funcName]()
- : wrapper.thru(func);
- }
- }
- return function() {
- var args = arguments,
- value = args[0];
-
- if (wrapper && args.length == 1 && isArray(value)) {
- return wrapper.plant(value).value();
- }
- var index = 0,
- result = length ? funcs[index].apply(this, args) : value;
-
- while (++index < length) {
- result = funcs[index].call(this, result);
- }
- return result;
- };
- });
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with optional `this`
- * binding of `thisArg`, partial application, and currying.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [partialsRight] The arguments to append to those provided
- * to the new function.
- * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
- var isAry = bitmask & WRAP_ARY_FLAG,
- isBind = bitmask & WRAP_BIND_FLAG,
- isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
- isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
- isFlip = bitmask & WRAP_FLIP_FLAG,
- Ctor = isBindKey ? undefined : createCtor(func);
-
- function wrapper() {
- var length = arguments.length,
- args = Array(length),
- index = length;
-
- while (index--) {
- args[index] = arguments[index];
- }
- if (isCurried) {
- var placeholder = getHolder(wrapper),
- holdersCount = countHolders(args, placeholder);
- }
- if (partials) {
- args = composeArgs(args, partials, holders, isCurried);
- }
- if (partialsRight) {
- args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
- }
- length -= holdersCount;
- if (isCurried && length < arity) {
- var newHolders = replaceHolders(args, placeholder);
- return createRecurry(
- func, bitmask, createHybrid, wrapper.placeholder, thisArg,
- args, newHolders, argPos, ary, arity - length
- );
- }
- var thisBinding = isBind ? thisArg : this,
- fn = isBindKey ? thisBinding[func] : func;
-
- length = args.length;
- if (argPos) {
- args = reorder(args, argPos);
- } else if (isFlip && length > 1) {
- args.reverse();
- }
- if (isAry && ary < length) {
- args.length = ary;
- }
- if (this && this !== root && this instanceof wrapper) {
- fn = Ctor || createCtor(fn);
- }
- return fn.apply(thisBinding, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a function like `_.invertBy`.
- *
- * @private
- * @param {Function} setter The function to set accumulator values.
- * @param {Function} toIteratee The function to resolve iteratees.
- * @returns {Function} Returns the new inverter function.
- */
- function createInverter(setter, toIteratee) {
- return function(object, iteratee) {
- return baseInverter(object, setter, toIteratee(iteratee), {});
- };
- }
-
- /**
- * Creates a function that performs a mathematical operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @param {number} [defaultValue] The value used for `undefined` arguments.
- * @returns {Function} Returns the new mathematical operation function.
- */
- function createMathOperation(operator, defaultValue) {
- return function(value, other) {
- var result;
- if (value === undefined && other === undefined) {
- return defaultValue;
- }
- if (value !== undefined) {
- result = value;
- }
- if (other !== undefined) {
- if (result === undefined) {
- return other;
- }
- if (typeof value == 'string' || typeof other == 'string') {
- value = baseToString(value);
- other = baseToString(other);
- } else {
- value = baseToNumber(value);
- other = baseToNumber(other);
- }
- result = operator(value, other);
- }
- return result;
- };
- }
-
- /**
- * Creates a function like `_.over`.
- *
- * @private
- * @param {Function} arrayFunc The function to iterate over iteratees.
- * @returns {Function} Returns the new over function.
- */
- function createOver(arrayFunc) {
- return flatRest(function(iteratees) {
- iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
- return baseRest(function(args) {
- var thisArg = this;
- return arrayFunc(iteratees, function(iteratee) {
- return apply(iteratee, thisArg, args);
- });
- });
- });
- }
-
- /**
- * Creates the padding for `string` based on `length`. The `chars` string
- * is truncated if the number of characters exceeds `length`.
- *
- * @private
- * @param {number} length The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padding for `string`.
- */
- function createPadding(length, chars) {
- chars = chars === undefined ? ' ' : baseToString(chars);
-
- var charsLength = chars.length;
- if (charsLength < 2) {
- return charsLength ? baseRepeat(chars, length) : chars;
- }
- var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
- return hasUnicode(chars)
- ? castSlice(stringToArray(result), 0, length).join('')
- : result.slice(0, length);
- }
-
- /**
- * Creates a function that wraps `func` to invoke it with the `this` binding
- * of `thisArg` and `partials` prepended to the arguments it receives.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {Array} partials The arguments to prepend to those provided to
- * the new function.
- * @returns {Function} Returns the new wrapped function.
- */
- function createPartial(func, bitmask, thisArg, partials) {
- var isBind = bitmask & WRAP_BIND_FLAG,
- Ctor = createCtor(func);
-
- function wrapper() {
- var argsIndex = -1,
- argsLength = arguments.length,
- leftIndex = -1,
- leftLength = partials.length,
- args = Array(leftLength + argsLength),
- fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
-
- while (++leftIndex < leftLength) {
- args[leftIndex] = partials[leftIndex];
- }
- while (argsLength--) {
- args[leftIndex++] = arguments[++argsIndex];
- }
- return apply(fn, isBind ? thisArg : this, args);
- }
- return wrapper;
- }
-
- /**
- * Creates a `_.range` or `_.rangeRight` function.
- *
- * @private
- * @param {boolean} [fromRight] Specify iterating from right to left.
- * @returns {Function} Returns the new range function.
- */
- function createRange(fromRight) {
- return function(start, end, step) {
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
- end = step = undefined;
- }
- // Ensure the sign of `-0` is preserved.
- start = toFinite(start);
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toFinite(end);
- }
- step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
- return baseRange(start, end, step, fromRight);
- };
- }
-
- /**
- * Creates a function that performs a relational operation on two values.
- *
- * @private
- * @param {Function} operator The function to perform the operation.
- * @returns {Function} Returns the new relational operation function.
- */
- function createRelationalOperation(operator) {
- return function(value, other) {
- if (!(typeof value == 'string' && typeof other == 'string')) {
- value = toNumber(value);
- other = toNumber(other);
- }
- return operator(value, other);
- };
- }
-
- /**
- * Creates a function that wraps `func` to continue currying.
- *
- * @private
- * @param {Function} func The function to wrap.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @param {Function} wrapFunc The function to create the `func` wrapper.
- * @param {*} placeholder The placeholder value.
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to prepend to those provided to
- * the new function.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
- var isCurry = bitmask & WRAP_CURRY_FLAG,
- newHolders = isCurry ? holders : undefined,
- newHoldersRight = isCurry ? undefined : holders,
- newPartials = isCurry ? partials : undefined,
- newPartialsRight = isCurry ? undefined : partials;
-
- bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);
- bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
-
- if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
- bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
- }
- var newData = [
- func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,
- newHoldersRight, argPos, ary, arity
- ];
-
- var result = wrapFunc.apply(undefined, newData);
- if (isLaziable(func)) {
- setData(result, newData);
- }
- result.placeholder = placeholder;
- return setWrapToString(result, func, bitmask);
- }
-
- /**
- * Creates a function like `_.round`.
- *
- * @private
- * @param {string} methodName The name of the `Math` method to use when rounding.
- * @returns {Function} Returns the new round function.
- */
- function createRound(methodName) {
- var func = Math[methodName];
- return function(number, precision) {
- number = toNumber(number);
- precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
- if (precision && nativeIsFinite(number)) {
- // Shift with exponential notation to avoid floating-point issues.
- // See [MDN](https://mdn.io/round#Examples) for more details.
- var pair = (toString(number) + 'e').split('e'),
- value = func(pair[0] + 'e' + (+pair[1] + precision));
-
- pair = (toString(value) + 'e').split('e');
- return +(pair[0] + 'e' + (+pair[1] - precision));
- }
- return func(number);
- };
- }
-
- /**
- * Creates a set object of `values`.
- *
- * @private
- * @param {Array} values The values to add to the set.
- * @returns {Object} Returns the new set.
- */
- var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
- return new Set(values);
- };
-
- /**
- * Creates a `_.toPairs` or `_.toPairsIn` function.
- *
- * @private
- * @param {Function} keysFunc The function to get the keys of a given object.
- * @returns {Function} Returns the new pairs function.
- */
- function createToPairs(keysFunc) {
- return function(object) {
- var tag = getTag(object);
- if (tag == mapTag) {
- return mapToArray(object);
- }
- if (tag == setTag) {
- return setToPairs(object);
- }
- return baseToPairs(object, keysFunc(object));
- };
- }
-
- /**
- * Creates a function that either curries or invokes `func` with optional
- * `this` binding and partially applied arguments.
- *
- * @private
- * @param {Function|string} func The function or method name to wrap.
- * @param {number} bitmask The bitmask flags.
- * 1 - `_.bind`
- * 2 - `_.bindKey`
- * 4 - `_.curry` or `_.curryRight` of a bound function
- * 8 - `_.curry`
- * 16 - `_.curryRight`
- * 32 - `_.partial`
- * 64 - `_.partialRight`
- * 128 - `_.rearg`
- * 256 - `_.ary`
- * 512 - `_.flip`
- * @param {*} [thisArg] The `this` binding of `func`.
- * @param {Array} [partials] The arguments to be partially applied.
- * @param {Array} [holders] The `partials` placeholder indexes.
- * @param {Array} [argPos] The argument positions of the new function.
- * @param {number} [ary] The arity cap of `func`.
- * @param {number} [arity] The arity of `func`.
- * @returns {Function} Returns the new wrapped function.
- */
- function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
- var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;
- if (!isBindKey && typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var length = partials ? partials.length : 0;
- if (!length) {
- bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
- partials = holders = undefined;
- }
- ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
- arity = arity === undefined ? arity : toInteger(arity);
- length -= holders ? holders.length : 0;
-
- if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
- var partialsRight = partials,
- holdersRight = holders;
-
- partials = holders = undefined;
- }
- var data = isBindKey ? undefined : getData(func);
-
- var newData = [
- func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
- argPos, ary, arity
- ];
-
- if (data) {
- mergeData(newData, data);
- }
- func = newData[0];
- bitmask = newData[1];
- thisArg = newData[2];
- partials = newData[3];
- holders = newData[4];
- arity = newData[9] = newData[9] === undefined
- ? (isBindKey ? 0 : func.length)
- : nativeMax(newData[9] - length, 0);
-
- if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
- bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
- }
- if (!bitmask || bitmask == WRAP_BIND_FLAG) {
- var result = createBind(func, bitmask, thisArg);
- } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
- result = createCurry(func, bitmask, arity);
- } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
- result = createPartial(func, bitmask, thisArg, partials);
- } else {
- result = createHybrid.apply(undefined, newData);
- }
- var setter = data ? baseSetData : setData;
- return setWrapToString(setter(result, newData), func, bitmask);
- }
-
- /**
- * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
- * of source objects to the destination object for all destination properties
- * that resolve to `undefined`.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to assign.
- * @param {Object} object The parent object of `objValue`.
- * @returns {*} Returns the value to assign.
- */
- function customDefaultsAssignIn(objValue, srcValue, key, object) {
- if (objValue === undefined ||
- (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- return srcValue;
- }
- return objValue;
- }
-
- /**
- * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
- * objects into destination objects that are passed thru.
- *
- * @private
- * @param {*} objValue The destination value.
- * @param {*} srcValue The source value.
- * @param {string} key The key of the property to merge.
- * @param {Object} object The parent object of `objValue`.
- * @param {Object} source The parent object of `srcValue`.
- * @param {Object} [stack] Tracks traversed source values and their merged
- * counterparts.
- * @returns {*} Returns the value to assign.
- */
- function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
- if (isObject(objValue) && isObject(srcValue)) {
- // Recursively merge objects and arrays (susceptible to call stack limits).
- stack.set(srcValue, objValue);
- baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
- stack['delete'](srcValue);
- }
- return objValue;
- }
-
- /**
- * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
- * objects.
- *
- * @private
- * @param {*} value The value to inspect.
- * @param {string} key The key of the property to inspect.
- * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
- */
- function customOmitClone(value) {
- return isPlainObject(value) ? undefined : value;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for arrays with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Array} array The array to compare.
- * @param {Array} other The other array to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `array` and `other` objects.
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
- */
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- arrLength = array.length,
- othLength = other.length;
-
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(array);
- if (stacked && stack.get(other)) {
- return stacked == other;
- }
- var index = -1,
- result = true,
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
-
- stack.set(array, other);
- stack.set(other, array);
-
- // Ignore non-index properties.
- while (++index < arrLength) {
- var arrValue = array[index],
- othValue = other[index];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, arrValue, index, other, array, stack)
- : customizer(arrValue, othValue, index, array, other, stack);
- }
- if (compared !== undefined) {
- if (compared) {
- continue;
- }
- result = false;
- break;
- }
- // Recursively compare arrays (susceptible to call stack limits).
- if (seen) {
- if (!arraySome(other, function(othValue, othIndex) {
- if (!cacheHas(seen, othIndex) &&
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
- return seen.push(othIndex);
- }
- })) {
- result = false;
- break;
- }
- } else if (!(
- arrValue === othValue ||
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
- )) {
- result = false;
- break;
- }
- }
- stack['delete'](array);
- stack['delete'](other);
- return result;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for comparing objects of
- * the same `toStringTag`.
- *
- * **Note:** This function only supports comparing values with tags of
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {string} tag The `toStringTag` of the objects to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
- switch (tag) {
- case dataViewTag:
- if ((object.byteLength != other.byteLength) ||
- (object.byteOffset != other.byteOffset)) {
- return false;
- }
- object = object.buffer;
- other = other.buffer;
-
- case arrayBufferTag:
- if ((object.byteLength != other.byteLength) ||
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
- return false;
- }
- return true;
-
- case boolTag:
- case dateTag:
- case numberTag:
- // Coerce booleans to `1` or `0` and dates to milliseconds.
- // Invalid dates are coerced to `NaN`.
- return eq(+object, +other);
-
- case errorTag:
- return object.name == other.name && object.message == other.message;
-
- case regexpTag:
- case stringTag:
- // Coerce regexes to strings and treat strings, primitives and objects,
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
- // for more details.
- return object == (other + '');
-
- case mapTag:
- var convert = mapToArray;
-
- case setTag:
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
- convert || (convert = setToArray);
-
- if (object.size != other.size && !isPartial) {
- return false;
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked) {
- return stacked == other;
- }
- bitmask |= COMPARE_UNORDERED_FLAG;
-
- // Recursively compare objects (susceptible to call stack limits).
- stack.set(object, other);
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
- stack['delete'](object);
- return result;
-
- case symbolTag:
- if (symbolValueOf) {
- return symbolValueOf.call(object) == symbolValueOf.call(other);
- }
- }
- return false;
- }
-
- /**
- * A specialized version of `baseIsEqualDeep` for objects with support for
- * partial deep comparisons.
- *
- * @private
- * @param {Object} object The object to compare.
- * @param {Object} other The other object to compare.
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
- * @param {Function} customizer The function to customize comparisons.
- * @param {Function} equalFunc The function to determine equivalents of values.
- * @param {Object} stack Tracks traversed `object` and `other` objects.
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
- */
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
- objProps = getAllKeys(object),
- objLength = objProps.length,
- othProps = getAllKeys(other),
- othLength = othProps.length;
-
- if (objLength != othLength && !isPartial) {
- return false;
- }
- var index = objLength;
- while (index--) {
- var key = objProps[index];
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
- return false;
- }
- }
- // Assume cyclic values are equal.
- var stacked = stack.get(object);
- if (stacked && stack.get(other)) {
- return stacked == other;
- }
- var result = true;
- stack.set(object, other);
- stack.set(other, object);
-
- var skipCtor = isPartial;
- while (++index < objLength) {
- key = objProps[index];
- var objValue = object[key],
- othValue = other[key];
-
- if (customizer) {
- var compared = isPartial
- ? customizer(othValue, objValue, key, other, object, stack)
- : customizer(objValue, othValue, key, object, other, stack);
- }
- // Recursively compare objects (susceptible to call stack limits).
- if (!(compared === undefined
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
- : compared
- )) {
- result = false;
- break;
- }
- skipCtor || (skipCtor = key == 'constructor');
- }
- if (result && !skipCtor) {
- var objCtor = object.constructor,
- othCtor = other.constructor;
-
- // Non `Object` object instances with different constructors are not equal.
- if (objCtor != othCtor &&
- ('constructor' in object && 'constructor' in other) &&
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
- result = false;
- }
- }
- stack['delete'](object);
- stack['delete'](other);
- return result;
- }
-
- /**
- * A specialized version of `baseRest` which flattens the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @returns {Function} Returns the new function.
- */
- function flatRest(func) {
- return setToString(overRest(func, undefined, flatten), func + '');
- }
-
- /**
- * Creates an array of own enumerable property names and symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeys(object) {
- return baseGetAllKeys(object, keys, getSymbols);
- }
-
- /**
- * Creates an array of own and inherited enumerable property names and
- * symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names and symbols.
- */
- function getAllKeysIn(object) {
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
- }
-
- /**
- * Gets metadata for `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {*} Returns the metadata for `func`.
- */
- var getData = !metaMap ? noop : function(func) {
- return metaMap.get(func);
- };
-
- /**
- * Gets the name of `func`.
- *
- * @private
- * @param {Function} func The function to query.
- * @returns {string} Returns the function name.
- */
- function getFuncName(func) {
- var result = (func.name + ''),
- array = realNames[result],
- length = hasOwnProperty.call(realNames, result) ? array.length : 0;
-
- while (length--) {
- var data = array[length],
- otherFunc = data.func;
- if (otherFunc == null || otherFunc == func) {
- return data.name;
- }
- }
- return result;
- }
-
- /**
- * Gets the argument placeholder value for `func`.
- *
- * @private
- * @param {Function} func The function to inspect.
- * @returns {*} Returns the placeholder value.
- */
- function getHolder(func) {
- var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
- return object.placeholder;
- }
-
- /**
- * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
- * this function returns the custom method, otherwise it returns `baseIteratee`.
- * If arguments are provided, the chosen function is invoked with them and
- * its result is returned.
- *
- * @private
- * @param {*} [value] The value to convert to an iteratee.
- * @param {number} [arity] The arity of the created iteratee.
- * @returns {Function} Returns the chosen function or its result.
- */
- function getIteratee() {
- var result = lodash.iteratee || iteratee;
- result = result === iteratee ? baseIteratee : result;
- return arguments.length ? result(arguments[0], arguments[1]) : result;
- }
-
- /**
- * Gets the data for `map`.
- *
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
- */
- function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
- }
-
- /**
- * Gets the property names, values, and compare flags of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the match data of `object`.
- */
- function getMatchData(object) {
- var result = keys(object),
- length = result.length;
-
- while (length--) {
- var key = result[length],
- value = object[key];
-
- result[length] = [key, value, isStrictComparable(value)];
- }
- return result;
- }
-
- /**
- * Gets the native function at `key` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the method to get.
- * @returns {*} Returns the function if it's native, else `undefined`.
- */
- function getNative(object, key) {
- var value = getValue(object, key);
- return baseIsNative(value) ? value : undefined;
- }
-
- /**
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the raw `toStringTag`.
- */
- function getRawTag(value) {
- var isOwn = hasOwnProperty.call(value, symToStringTag),
- tag = value[symToStringTag];
-
- try {
- value[symToStringTag] = undefined;
- var unmasked = true;
- } catch (e) {}
-
- var result = nativeObjectToString.call(value);
- if (unmasked) {
- if (isOwn) {
- value[symToStringTag] = tag;
- } else {
- delete value[symToStringTag];
- }
- }
- return result;
- }
-
- /**
- * Creates an array of the own enumerable symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
- if (object == null) {
- return [];
- }
- object = Object(object);
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
- return propertyIsEnumerable.call(object, symbol);
- });
- };
-
- /**
- * Creates an array of the own and inherited enumerable symbols of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of symbols.
- */
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
- var result = [];
- while (object) {
- arrayPush(result, getSymbols(object));
- object = getPrototype(object);
- }
- return result;
- };
-
- /**
- * Gets the `toStringTag` of `value`.
- *
- * @private
- * @param {*} value The value to query.
- * @returns {string} Returns the `toStringTag`.
- */
- var getTag = baseGetTag;
-
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
- (Map && getTag(new Map) != mapTag) ||
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
- (Set && getTag(new Set) != setTag) ||
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
- getTag = function(value) {
- var result = baseGetTag(value),
- Ctor = result == objectTag ? value.constructor : undefined,
- ctorString = Ctor ? toSource(Ctor) : '';
-
- if (ctorString) {
- switch (ctorString) {
- case dataViewCtorString: return dataViewTag;
- case mapCtorString: return mapTag;
- case promiseCtorString: return promiseTag;
- case setCtorString: return setTag;
- case weakMapCtorString: return weakMapTag;
- }
- }
- return result;
- };
- }
-
- /**
- * Gets the view, applying any `transforms` to the `start` and `end` positions.
- *
- * @private
- * @param {number} start The start of the view.
- * @param {number} end The end of the view.
- * @param {Array} transforms The transformations to apply to the view.
- * @returns {Object} Returns an object containing the `start` and `end`
- * positions of the view.
- */
- function getView(start, end, transforms) {
- var index = -1,
- length = transforms.length;
-
- while (++index < length) {
- var data = transforms[index],
- size = data.size;
-
- switch (data.type) {
- case 'drop': start += size; break;
- case 'dropRight': end -= size; break;
- case 'take': end = nativeMin(end, start + size); break;
- case 'takeRight': start = nativeMax(start, end - size); break;
- }
- }
- return { 'start': start, 'end': end };
- }
-
- /**
- * Extracts wrapper details from the `source` body comment.
- *
- * @private
- * @param {string} source The source to inspect.
- * @returns {Array} Returns the wrapper details.
- */
- function getWrapDetails(source) {
- var match = source.match(reWrapDetails);
- return match ? match[1].split(reSplitDetails) : [];
- }
-
- /**
- * Checks if `path` exists on `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @param {Function} hasFunc The function to check properties.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- */
- function hasPath(object, path, hasFunc) {
- path = castPath(path, object);
-
- var index = -1,
- length = path.length,
- result = false;
-
- while (++index < length) {
- var key = toKey(path[index]);
- if (!(result = object != null && hasFunc(object, key))) {
- break;
- }
- object = object[key];
- }
- if (result || ++index != length) {
- return result;
- }
- length = object == null ? 0 : object.length;
- return !!length && isLength(length) && isIndex(key, length) &&
- (isArray(object) || isArguments(object));
- }
-
- /**
- * Initializes an array clone.
- *
- * @private
- * @param {Array} array The array to clone.
- * @returns {Array} Returns the initialized clone.
- */
- function initCloneArray(array) {
- var length = array.length,
- result = new array.constructor(length);
-
- // Add properties assigned by `RegExp#exec`.
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
- result.index = array.index;
- result.input = array.input;
- }
- return result;
- }
-
- /**
- * Initializes an object clone.
- *
- * @private
- * @param {Object} object The object to clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneObject(object) {
- return (typeof object.constructor == 'function' && !isPrototype(object))
- ? baseCreate(getPrototype(object))
- : {};
- }
-
- /**
- * Initializes an object clone based on its `toStringTag`.
- *
- * **Note:** This function only supports cloning values with tags of
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
- *
- * @private
- * @param {Object} object The object to clone.
- * @param {string} tag The `toStringTag` of the object to clone.
- * @param {boolean} [isDeep] Specify a deep clone.
- * @returns {Object} Returns the initialized clone.
- */
- function initCloneByTag(object, tag, isDeep) {
- var Ctor = object.constructor;
- switch (tag) {
- case arrayBufferTag:
- return cloneArrayBuffer(object);
-
- case boolTag:
- case dateTag:
- return new Ctor(+object);
-
- case dataViewTag:
- return cloneDataView(object, isDeep);
-
- case float32Tag: case float64Tag:
- case int8Tag: case int16Tag: case int32Tag:
- case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
- return cloneTypedArray(object, isDeep);
-
- case mapTag:
- return new Ctor;
-
- case numberTag:
- case stringTag:
- return new Ctor(object);
-
- case regexpTag:
- return cloneRegExp(object);
-
- case setTag:
- return new Ctor;
-
- case symbolTag:
- return cloneSymbol(object);
- }
- }
-
- /**
- * Inserts wrapper `details` in a comment at the top of the `source` body.
- *
- * @private
- * @param {string} source The source to modify.
- * @returns {Array} details The details to insert.
- * @returns {string} Returns the modified source.
- */
- function insertWrapDetails(source, details) {
- var length = details.length;
- if (!length) {
- return source;
- }
- var lastIndex = length - 1;
- details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
- details = details.join(length > 2 ? ', ' : ' ');
- return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
- }
-
- /**
- * Checks if `value` is a flattenable `arguments` object or array.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
- */
- function isFlattenable(value) {
- return isArray(value) || isArguments(value) ||
- !!(spreadableSymbol && value && value[spreadableSymbol]);
- }
-
- /**
- * Checks if `value` is a valid array-like index.
- *
- * @private
- * @param {*} value The value to check.
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
- */
- function isIndex(value, length) {
- var type = typeof value;
- length = length == null ? MAX_SAFE_INTEGER : length;
-
- return !!length &&
- (type == 'number' ||
- (type != 'symbol' && reIsUint.test(value))) &&
- (value > -1 && value % 1 == 0 && value < length);
- }
-
- /**
- * Checks if the given arguments are from an iteratee call.
- *
- * @private
- * @param {*} value The potential iteratee value argument.
- * @param {*} index The potential iteratee index or key argument.
- * @param {*} object The potential iteratee object argument.
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
- * else `false`.
- */
- function isIterateeCall(value, index, object) {
- if (!isObject(object)) {
- return false;
- }
- var type = typeof index;
- if (type == 'number'
- ? (isArrayLike(object) && isIndex(index, object.length))
- : (type == 'string' && index in object)
- ) {
- return eq(object[index], value);
- }
- return false;
- }
-
- /**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
- function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
- }
-
- /**
- * Checks if `value` is suitable for use as unique object key.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
- */
- function isKeyable(value) {
- var type = typeof value;
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
- ? (value !== '__proto__')
- : (value === null);
- }
-
- /**
- * Checks if `func` has a lazy counterpart.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
- * else `false`.
- */
- function isLaziable(func) {
- var funcName = getFuncName(func),
- other = lodash[funcName];
-
- if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
- return false;
- }
- if (func === other) {
- return true;
- }
- var data = getData(other);
- return !!data && func === data[0];
- }
-
- /**
- * Checks if `func` has its source masked.
- *
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
- */
- function isMasked(func) {
- return !!maskSrcKey && (maskSrcKey in func);
- }
-
- /**
- * Checks if `func` is capable of being masked.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
- */
- var isMaskable = coreJsData ? isFunction : stubFalse;
-
- /**
- * Checks if `value` is likely a prototype object.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
- */
- function isPrototype(value) {
- var Ctor = value && value.constructor,
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
-
- return value === proto;
- }
-
- /**
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` if suitable for strict
- * equality comparisons, else `false`.
- */
- function isStrictComparable(value) {
- return value === value && !isObject(value);
- }
-
- /**
- * A specialized version of `matchesProperty` for source values suitable
- * for strict equality comparisons, i.e. `===`.
- *
- * @private
- * @param {string} key The key of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- */
- function matchesStrictComparable(key, srcValue) {
- return function(object) {
- if (object == null) {
- return false;
- }
- return object[key] === srcValue &&
- (srcValue !== undefined || (key in Object(object)));
- };
- }
-
- /**
- * A specialized version of `_.memoize` which clears the memoized function's
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
- *
- * @private
- * @param {Function} func The function to have its output memoized.
- * @returns {Function} Returns the new memoized function.
- */
- function memoizeCapped(func) {
- var result = memoize(func, function(key) {
- if (cache.size === MAX_MEMOIZE_SIZE) {
- cache.clear();
- }
- return key;
- });
-
- var cache = result.cache;
- return result;
- }
-
- /**
- * Merges the function metadata of `source` into `data`.
- *
- * Merging metadata reduces the number of wrappers used to invoke a function.
- * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
- * may be applied regardless of execution order. Methods like `_.ary` and
- * `_.rearg` modify function arguments, making the order in which they are
- * executed important, preventing the merging of metadata. However, we make
- * an exception for a safe combined case where curried functions have `_.ary`
- * and or `_.rearg` applied.
- *
- * @private
- * @param {Array} data The destination metadata.
- * @param {Array} source The source metadata.
- * @returns {Array} Returns `data`.
- */
- function mergeData(data, source) {
- var bitmask = data[1],
- srcBitmask = source[1],
- newBitmask = bitmask | srcBitmask,
- isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
-
- var isCombo =
- ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||
- ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||
- ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));
-
- // Exit early if metadata can't be merged.
- if (!(isCommon || isCombo)) {
- return data;
- }
- // Use source `thisArg` if available.
- if (srcBitmask & WRAP_BIND_FLAG) {
- data[2] = source[2];
- // Set when currying a bound function.
- newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
- }
- // Compose partial arguments.
- var value = source[3];
- if (value) {
- var partials = data[3];
- data[3] = partials ? composeArgs(partials, value, source[4]) : value;
- data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
- }
- // Compose partial right arguments.
- value = source[5];
- if (value) {
- partials = data[5];
- data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
- data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
- }
- // Use source `argPos` if available.
- value = source[7];
- if (value) {
- data[7] = value;
- }
- // Use source `ary` if it's smaller.
- if (srcBitmask & WRAP_ARY_FLAG) {
- data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
- }
- // Use source `arity` if one is not provided.
- if (data[9] == null) {
- data[9] = source[9];
- }
- // Use source `func` and merge bitmasks.
- data[0] = source[0];
- data[1] = newBitmask;
-
- return data;
- }
-
- /**
- * This function is like
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * except that it includes inherited enumerable properties.
- *
- * @private
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- */
- function nativeKeysIn(object) {
- var result = [];
- if (object != null) {
- for (var key in Object(object)) {
- result.push(key);
- }
- }
- return result;
- }
-
- /**
- * Converts `value` to a string using `Object.prototype.toString`.
- *
- * @private
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- */
- function objectToString(value) {
- return nativeObjectToString.call(value);
- }
-
- /**
- * A specialized version of `baseRest` which transforms the rest array.
- *
- * @private
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @param {Function} transform The rest array transform.
- * @returns {Function} Returns the new function.
- */
- function overRest(func, start, transform) {
- start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
- return function() {
- var args = arguments,
- index = -1,
- length = nativeMax(args.length - start, 0),
- array = Array(length);
-
- while (++index < length) {
- array[index] = args[start + index];
- }
- index = -1;
- var otherArgs = Array(start + 1);
- while (++index < start) {
- otherArgs[index] = args[index];
- }
- otherArgs[start] = transform(array);
- return apply(func, this, otherArgs);
- };
- }
-
- /**
- * Gets the parent value at `path` of `object`.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array} path The path to get the parent value of.
- * @returns {*} Returns the parent value.
- */
- function parent(object, path) {
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
- }
-
- /**
- * Reorder `array` according to the specified indexes where the element at
- * the first index is assigned as the first element, the element at
- * the second index is assigned as the second element, and so on.
- *
- * @private
- * @param {Array} array The array to reorder.
- * @param {Array} indexes The arranged array indexes.
- * @returns {Array} Returns `array`.
- */
- function reorder(array, indexes) {
- var arrLength = array.length,
- length = nativeMin(indexes.length, arrLength),
- oldArray = copyArray(array);
-
- while (length--) {
- var index = indexes[length];
- array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
- }
- return array;
- }
-
- /**
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
- *
- * @private
- * @param {Object} object The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
- */
- function safeGet(object, key) {
- if (key === 'constructor' && typeof object[key] === 'function') {
- return;
- }
-
- if (key == '__proto__') {
- return;
- }
-
- return object[key];
- }
-
- /**
- * Sets metadata for `func`.
- *
- * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
- * period of time, it will trip its breaker and transition to an identity
- * function to avoid garbage collection pauses in V8. See
- * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
- * for more details.
- *
- * @private
- * @param {Function} func The function to associate metadata with.
- * @param {*} data The metadata.
- * @returns {Function} Returns `func`.
- */
- var setData = shortOut(baseSetData);
-
- /**
- * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
- *
- * @private
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @returns {number|Object} Returns the timer id or timeout object.
- */
- var setTimeout = ctxSetTimeout || function(func, wait) {
- return root.setTimeout(func, wait);
- };
-
- /**
- * Sets the `toString` method of `func` to return `string`.
- *
- * @private
- * @param {Function} func The function to modify.
- * @param {Function} string The `toString` result.
- * @returns {Function} Returns `func`.
- */
- var setToString = shortOut(baseSetToString);
-
- /**
- * Sets the `toString` method of `wrapper` to mimic the source of `reference`
- * with wrapper details in a comment at the top of the source body.
- *
- * @private
- * @param {Function} wrapper The function to modify.
- * @param {Function} reference The reference function.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @returns {Function} Returns `wrapper`.
- */
- function setWrapToString(wrapper, reference, bitmask) {
- var source = (reference + '');
- return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
- }
-
- /**
- * Creates a function that'll short out and invoke `identity` instead
- * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
- * milliseconds.
- *
- * @private
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new shortable function.
- */
- function shortOut(func) {
- var count = 0,
- lastCalled = 0;
-
- return function() {
- var stamp = nativeNow(),
- remaining = HOT_SPAN - (stamp - lastCalled);
-
- lastCalled = stamp;
- if (remaining > 0) {
- if (++count >= HOT_COUNT) {
- return arguments[0];
- }
- } else {
- count = 0;
- }
- return func.apply(undefined, arguments);
- };
- }
-
- /**
- * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
- *
- * @private
- * @param {Array} array The array to shuffle.
- * @param {number} [size=array.length] The size of `array`.
- * @returns {Array} Returns `array`.
- */
- function shuffleSelf(array, size) {
- var index = -1,
- length = array.length,
- lastIndex = length - 1;
-
- size = size === undefined ? length : size;
- while (++index < size) {
- var rand = baseRandom(index, lastIndex),
- value = array[rand];
-
- array[rand] = array[index];
- array[index] = value;
- }
- array.length = size;
- return array;
- }
-
- /**
- * Converts `string` to a property path array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
- */
- var stringToPath = memoizeCapped(function(string) {
- var result = [];
- if (string.charCodeAt(0) === 46 /* . */) {
- result.push('');
- }
- string.replace(rePropName, function(match, number, quote, subString) {
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
- });
-
- /**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
- function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
- }
-
- /**
- * Converts `func` to its source code.
- *
- * @private
- * @param {Function} func The function to convert.
- * @returns {string} Returns the source code.
- */
- function toSource(func) {
- if (func != null) {
- try {
- return funcToString.call(func);
- } catch (e) {}
- try {
- return (func + '');
- } catch (e) {}
- }
- return '';
- }
-
- /**
- * Updates wrapper `details` based on `bitmask` flags.
- *
- * @private
- * @returns {Array} details The details to modify.
- * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
- * @returns {Array} Returns `details`.
- */
- function updateWrapDetails(details, bitmask) {
- arrayEach(wrapFlags, function(pair) {
- var value = '_.' + pair[0];
- if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {
- details.push(value);
- }
- });
- return details.sort();
- }
-
- /**
- * Creates a clone of `wrapper`.
- *
- * @private
- * @param {Object} wrapper The wrapper to clone.
- * @returns {Object} Returns the cloned wrapper.
- */
- function wrapperClone(wrapper) {
- if (wrapper instanceof LazyWrapper) {
- return wrapper.clone();
- }
- var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
- result.__actions__ = copyArray(wrapper.__actions__);
- result.__index__ = wrapper.__index__;
- result.__values__ = wrapper.__values__;
- return result;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an array of elements split into groups the length of `size`.
- * If `array` can't be split evenly, the final chunk will be the remaining
- * elements.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to process.
- * @param {number} [size=1] The length of each chunk
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the new array of chunks.
- * @example
- *
- * _.chunk(['a', 'b', 'c', 'd'], 2);
- * // => [['a', 'b'], ['c', 'd']]
- *
- * _.chunk(['a', 'b', 'c', 'd'], 3);
- * // => [['a', 'b', 'c'], ['d']]
- */
- function chunk(array, size, guard) {
- if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {
- size = 1;
- } else {
- size = nativeMax(toInteger(size), 0);
- }
- var length = array == null ? 0 : array.length;
- if (!length || size < 1) {
- return [];
- }
- var index = 0,
- resIndex = 0,
- result = Array(nativeCeil(length / size));
-
- while (index < length) {
- result[resIndex++] = baseSlice(array, index, (index += size));
- }
- return result;
- }
-
- /**
- * Creates an array with all falsey values removed. The values `false`, `null`,
- * `0`, `""`, `undefined`, and `NaN` are falsey.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to compact.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.compact([0, 1, false, 2, '', 3]);
- * // => [1, 2, 3]
- */
- function compact(array) {
- var index = -1,
- length = array == null ? 0 : array.length,
- resIndex = 0,
- result = [];
-
- while (++index < length) {
- var value = array[index];
- if (value) {
- result[resIndex++] = value;
- }
- }
- return result;
- }
-
- /**
- * Creates a new array concatenating `array` with any additional arrays
- * and/or values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to concatenate.
- * @param {...*} [values] The values to concatenate.
- * @returns {Array} Returns the new concatenated array.
- * @example
- *
- * var array = [1];
- * var other = _.concat(array, 2, [3], [[4]]);
- *
- * console.log(other);
- * // => [1, 2, 3, [4]]
- *
- * console.log(array);
- * // => [1]
- */
- function concat() {
- var length = arguments.length;
- if (!length) {
- return [];
- }
- var args = Array(length - 1),
- array = arguments[0],
- index = length;
-
- while (index--) {
- args[index - 1] = arguments[index];
- }
- return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
- }
-
- /**
- * Creates an array of `array` values not included in the other given arrays
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons. The order and references of result values are
- * determined by the first array.
- *
- * **Note:** Unlike `_.pullAll`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.without, _.xor
- * @example
- *
- * _.difference([2, 1], [2, 3]);
- * // => [1]
- */
- var difference = baseRest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
- : [];
- });
-
- /**
- * This method is like `_.difference` except that it accepts `iteratee` which
- * is invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. The order and references of result values are
- * determined by the first array. The iteratee is invoked with one argument:
- * (value).
- *
- * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
- var differenceBy = baseRest(function(array, values) {
- var iteratee = last(values);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))
- : [];
- });
-
- /**
- * This method is like `_.difference` except that it accepts `comparator`
- * which is invoked to compare elements of `array` to `values`. The order and
- * references of result values are determined by the first array. The comparator
- * is invoked with two arguments: (arrVal, othVal).
- *
- * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...Array} [values] The values to exclude.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- *
- * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }]
- */
- var differenceWith = baseRest(function(array, values) {
- var comparator = last(values);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
- return isArrayLikeObject(array)
- ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)
- : [];
- });
-
- /**
- * Creates a slice of `array` with `n` elements dropped from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.drop([1, 2, 3]);
- * // => [2, 3]
- *
- * _.drop([1, 2, 3], 2);
- * // => [3]
- *
- * _.drop([1, 2, 3], 5);
- * // => []
- *
- * _.drop([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
- function drop(array, n, guard) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, n < 0 ? 0 : n, length);
- }
-
- /**
- * Creates a slice of `array` with `n` elements dropped from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to drop.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.dropRight([1, 2, 3]);
- * // => [1, 2]
- *
- * _.dropRight([1, 2, 3], 2);
- * // => [1]
- *
- * _.dropRight([1, 2, 3], 5);
- * // => []
- *
- * _.dropRight([1, 2, 3], 0);
- * // => [1, 2, 3]
- */
- function dropRight(array, n, guard) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, 0, n < 0 ? 0 : n);
- }
-
- /**
- * Creates a slice of `array` excluding elements dropped from the end.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.dropRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropRightWhile(users, ['active', false]);
- * // => objects for ['barney']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropRightWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
- function dropRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), true, true)
- : [];
- }
-
- /**
- * Creates a slice of `array` excluding elements dropped from the beginning.
- * Elements are dropped until `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.dropWhile(users, function(o) { return !o.active; });
- * // => objects for ['pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.dropWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.dropWhile(users, ['active', false]);
- * // => objects for ['pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.dropWhile(users, 'active');
- * // => objects for ['barney', 'fred', 'pebbles']
- */
- function dropWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), true)
- : [];
- }
-
- /**
- * Fills elements of `array` with `value` from `start` up to, but not
- * including, `end`.
- *
- * **Note:** This method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Array
- * @param {Array} array The array to fill.
- * @param {*} value The value to fill `array` with.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.fill(array, 'a');
- * console.log(array);
- * // => ['a', 'a', 'a']
- *
- * _.fill(Array(3), 2);
- * // => [2, 2, 2]
- *
- * _.fill([4, 6, 8, 10], '*', 1, 3);
- * // => [4, '*', '*', 10]
- */
- function fill(array, value, start, end) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
- start = 0;
- end = length;
- }
- return baseFill(array, value, start, end);
- }
-
- /**
- * This method is like `_.find` except that it returns the index of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
- * // => 0
- *
- * // The `_.matches` iteratee shorthand.
- * _.findIndex(users, { 'user': 'fred', 'active': false });
- * // => 1
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findIndex(users, ['active', false]);
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.findIndex(users, 'active');
- * // => 2
- */
- function findIndex(array, predicate, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseFindIndex(array, getIteratee(predicate, 3), index);
- }
-
- /**
- * This method is like `_.findIndex` except that it iterates over elements
- * of `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the found element, else `-1`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
- * // => 2
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastIndex(users, { 'user': 'barney', 'active': true });
- * // => 0
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastIndex(users, ['active', false]);
- * // => 2
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastIndex(users, 'active');
- * // => 0
- */
- function findLastIndex(array, predicate, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = length - 1;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = fromIndex < 0
- ? nativeMax(length + index, 0)
- : nativeMin(index, length - 1);
- }
- return baseFindIndex(array, getIteratee(predicate, 3), index, true);
- }
-
- /**
- * Flattens `array` a single level deep.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, [3, [4]], 5]]);
- * // => [1, 2, [3, [4]], 5]
- */
- function flatten(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseFlatten(array, 1) : [];
- }
-
- /**
- * Recursively flattens `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flattenDeep([1, [2, [3, [4]], 5]]);
- * // => [1, 2, 3, 4, 5]
- */
- function flattenDeep(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseFlatten(array, INFINITY) : [];
- }
-
- /**
- * Recursively flatten `array` up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Array
- * @param {Array} array The array to flatten.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * var array = [1, [2, [3, [4]], 5]];
- *
- * _.flattenDepth(array, 1);
- * // => [1, 2, [3, [4]], 5]
- *
- * _.flattenDepth(array, 2);
- * // => [1, 2, 3, [4], 5]
- */
- function flattenDepth(array, depth) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(array, depth);
- }
-
- /**
- * The inverse of `_.toPairs`; this method returns an object composed
- * from key-value `pairs`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} pairs The key-value pairs.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.fromPairs([['a', 1], ['b', 2]]);
- * // => { 'a': 1, 'b': 2 }
- */
- function fromPairs(pairs) {
- var index = -1,
- length = pairs == null ? 0 : pairs.length,
- result = {};
-
- while (++index < length) {
- var pair = pairs[index];
- result[pair[0]] = pair[1];
- }
- return result;
- }
-
- /**
- * Gets the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias first
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the first element of `array`.
- * @example
- *
- * _.head([1, 2, 3]);
- * // => 1
- *
- * _.head([]);
- * // => undefined
- */
- function head(array) {
- return (array && array.length) ? array[0] : undefined;
- }
-
- /**
- * Gets the index at which the first occurrence of `value` is found in `array`
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons. If `fromIndex` is negative, it's used as the
- * offset from the end of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.indexOf([1, 2, 1, 2], 2);
- * // => 1
- *
- * // Search from the `fromIndex`.
- * _.indexOf([1, 2, 1, 2], 2, 2);
- * // => 3
- */
- function indexOf(array, value, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
- if (index < 0) {
- index = nativeMax(length + index, 0);
- }
- return baseIndexOf(array, value, index);
- }
-
- /**
- * Gets all but the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.initial([1, 2, 3]);
- * // => [1, 2]
- */
- function initial(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseSlice(array, 0, -1) : [];
- }
-
- /**
- * Creates an array of unique values that are included in all given arrays
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons. The order and references of result values are
- * determined by the first array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersection([2, 1], [2, 3]);
- * // => [2]
- */
- var intersection = baseRest(function(arrays) {
- var mapped = arrayMap(arrays, castArrayLikeObject);
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped)
- : [];
- });
-
- /**
- * This method is like `_.intersection` except that it accepts `iteratee`
- * which is invoked for each element of each `arrays` to generate the criterion
- * by which they're compared. The order and references of result values are
- * determined by the first array. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [2.1]
- *
- * // The `_.property` iteratee shorthand.
- * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }]
- */
- var intersectionBy = baseRest(function(arrays) {
- var iteratee = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- if (iteratee === last(mapped)) {
- iteratee = undefined;
- } else {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, getIteratee(iteratee, 2))
- : [];
- });
-
- /**
- * This method is like `_.intersection` except that it accepts `comparator`
- * which is invoked to compare elements of `arrays`. The order and references
- * of result values are determined by the first array. The comparator is
- * invoked with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of intersecting values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.intersectionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }]
- */
- var intersectionWith = baseRest(function(arrays) {
- var comparator = last(arrays),
- mapped = arrayMap(arrays, castArrayLikeObject);
-
- comparator = typeof comparator == 'function' ? comparator : undefined;
- if (comparator) {
- mapped.pop();
- }
- return (mapped.length && mapped[0] === arrays[0])
- ? baseIntersection(mapped, undefined, comparator)
- : [];
- });
-
- /**
- * Converts all elements in `array` into a string separated by `separator`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to convert.
- * @param {string} [separator=','] The element separator.
- * @returns {string} Returns the joined string.
- * @example
- *
- * _.join(['a', 'b', 'c'], '~');
- * // => 'a~b~c'
- */
- function join(array, separator) {
- return array == null ? '' : nativeJoin.call(array, separator);
- }
-
- /**
- * Gets the last element of `array`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {*} Returns the last element of `array`.
- * @example
- *
- * _.last([1, 2, 3]);
- * // => 3
- */
- function last(array) {
- var length = array == null ? 0 : array.length;
- return length ? array[length - 1] : undefined;
- }
-
- /**
- * This method is like `_.indexOf` except that it iterates over elements of
- * `array` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=array.length-1] The index to search from.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.lastIndexOf([1, 2, 1, 2], 2);
- * // => 3
- *
- * // Search from the `fromIndex`.
- * _.lastIndexOf([1, 2, 1, 2], 2, 2);
- * // => 1
- */
- function lastIndexOf(array, value, fromIndex) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return -1;
- }
- var index = length;
- if (fromIndex !== undefined) {
- index = toInteger(fromIndex);
- index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
- }
- return value === value
- ? strictLastIndexOf(array, value, index)
- : baseFindIndex(array, baseIsNaN, index, true);
- }
-
- /**
- * Gets the element at index `n` of `array`. If `n` is negative, the nth
- * element from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.11.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=0] The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- *
- * _.nth(array, 1);
- * // => 'b'
- *
- * _.nth(array, -2);
- * // => 'c';
- */
- function nth(array, n) {
- return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
- }
-
- /**
- * Removes all given values from `array` using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
- * to remove elements from an array by predicate.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...*} [values] The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pull(array, 'a', 'c');
- * console.log(array);
- * // => ['b', 'b']
- */
- var pull = baseRest(pullAll);
-
- /**
- * This method is like `_.pull` except that it accepts an array of values to remove.
- *
- * **Note:** Unlike `_.difference`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pullAll(array, ['a', 'c']);
- * console.log(array);
- * // => ['b', 'b']
- */
- function pullAll(array, values) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values)
- : array;
- }
-
- /**
- * This method is like `_.pullAll` except that it accepts `iteratee` which is
- * invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. The iteratee is invoked with one argument: (value).
- *
- * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
- *
- * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
- * console.log(array);
- * // => [{ 'x': 2 }]
- */
- function pullAllBy(array, values, iteratee) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, getIteratee(iteratee, 2))
- : array;
- }
-
- /**
- * This method is like `_.pullAll` except that it accepts `comparator` which
- * is invoked to compare elements of `array` to `values`. The comparator is
- * invoked with two arguments: (arrVal, othVal).
- *
- * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
- *
- * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
- * console.log(array);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
- */
- function pullAllWith(array, values, comparator) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, undefined, comparator)
- : array;
- }
-
- /**
- * Removes elements from `array` corresponding to `indexes` and returns an
- * array of removed elements.
- *
- * **Note:** Unlike `_.at`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...(number|number[])} [indexes] The indexes of elements to remove.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- * var pulled = _.pullAt(array, [1, 3]);
- *
- * console.log(array);
- * // => ['a', 'c']
- *
- * console.log(pulled);
- * // => ['b', 'd']
- */
- var pullAt = flatRest(function(array, indexes) {
- var length = array == null ? 0 : array.length,
- result = baseAt(array, indexes);
-
- basePullAt(array, arrayMap(indexes, function(index) {
- return isIndex(index, length) ? +index : index;
- }).sort(compareAscending));
-
- return result;
- });
-
- /**
- * Removes all elements from `array` that `predicate` returns truthy for
- * and returns an array of the removed elements. The predicate is invoked
- * with three arguments: (value, index, array).
- *
- * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
- * to pull elements from an array by value.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = [1, 2, 3, 4];
- * var evens = _.remove(array, function(n) {
- * return n % 2 == 0;
- * });
- *
- * console.log(array);
- * // => [1, 3]
- *
- * console.log(evens);
- * // => [2, 4]
- */
- function remove(array, predicate) {
- var result = [];
- if (!(array && array.length)) {
- return result;
- }
- var index = -1,
- indexes = [],
- length = array.length;
-
- predicate = getIteratee(predicate, 3);
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result.push(value);
- indexes.push(index);
- }
- }
- basePullAt(array, indexes);
- return result;
- }
-
- /**
- * Reverses `array` so that the first element becomes the last, the second
- * element becomes the second to last, and so on.
- *
- * **Note:** This method mutates `array` and is based on
- * [`Array#reverse`](https://mdn.io/Array/reverse).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.reverse(array);
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
- function reverse(array) {
- return array == null ? array : nativeReverse.call(array);
- }
-
- /**
- * Creates a slice of `array` from `start` up to, but not including, `end`.
- *
- * **Note:** This method is used instead of
- * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
- * returned.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
- function slice(array, start, end) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
- start = 0;
- end = length;
- }
- else {
- start = start == null ? 0 : toInteger(start);
- end = end === undefined ? length : toInteger(end);
- }
- return baseSlice(array, start, end);
- }
-
- /**
- * Uses a binary search to determine the lowest index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedIndex([30, 50], 40);
- * // => 1
- */
- function sortedIndex(array, value) {
- return baseSortedIndex(array, value);
- }
-
- /**
- * This method is like `_.sortedIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
- * // => 0
- */
- function sortedIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
- }
-
- /**
- * This method is like `_.indexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
- * // => 1
- */
- function sortedIndexOf(array, value) {
- var length = array == null ? 0 : array.length;
- if (length) {
- var index = baseSortedIndex(array, value);
- if (index < length && eq(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This method is like `_.sortedIndex` except that it returns the highest
- * index at which `value` should be inserted into `array` in order to
- * maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
- * // => 4
- */
- function sortedLastIndex(array, value) {
- return baseSortedIndex(array, value, true);
- }
-
- /**
- * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 1
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
- * // => 1
- */
- function sortedLastIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
- }
-
- /**
- * This method is like `_.lastIndexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
- * // => 3
- */
- function sortedLastIndexOf(array, value) {
- var length = array == null ? 0 : array.length;
- if (length) {
- var index = baseSortedIndex(array, value, true) - 1;
- if (eq(array[index], value)) {
- return index;
- }
- }
- return -1;
- }
-
- /**
- * This method is like `_.uniq` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniq([1, 1, 2]);
- * // => [1, 2]
- */
- function sortedUniq(array) {
- return (array && array.length)
- ? baseSortedUniq(array)
- : [];
- }
-
- /**
- * This method is like `_.uniqBy` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
- * // => [1.1, 2.3]
- */
- function sortedUniqBy(array, iteratee) {
- return (array && array.length)
- ? baseSortedUniq(array, getIteratee(iteratee, 2))
- : [];
- }
-
- /**
- * Gets all but the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.tail([1, 2, 3]);
- * // => [2, 3]
- */
- function tail(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseSlice(array, 1, length) : [];
- }
-
- /**
- * Creates a slice of `array` with `n` elements taken from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.take([1, 2, 3]);
- * // => [1]
- *
- * _.take([1, 2, 3], 2);
- * // => [1, 2]
- *
- * _.take([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.take([1, 2, 3], 0);
- * // => []
- */
- function take(array, n, guard) {
- if (!(array && array.length)) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, 0, n < 0 ? 0 : n);
- }
-
- /**
- * Creates a slice of `array` with `n` elements taken from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.takeRight([1, 2, 3]);
- * // => [3]
- *
- * _.takeRight([1, 2, 3], 2);
- * // => [2, 3]
- *
- * _.takeRight([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.takeRight([1, 2, 3], 0);
- * // => []
- */
- function takeRight(array, n, guard) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, n < 0 ? 0 : n, length);
- }
-
- /**
- * Creates a slice of `array` with elements taken from the end. Elements are
- * taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.takeRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeRightWhile(users, ['active', false]);
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeRightWhile(users, 'active');
- * // => []
- */
- function takeRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3), false, true)
- : [];
- }
-
- /**
- * Creates a slice of `array` with elements taken from the beginning. Elements
- * are taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.takeWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeWhile(users, ['active', false]);
- * // => objects for ['barney', 'fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeWhile(users, 'active');
- * // => []
- */
- function takeWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, getIteratee(predicate, 3))
- : [];
- }
-
- /**
- * Creates an array of unique values, in order, from all given arrays using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.union([2], [1, 2]);
- * // => [2, 1]
- */
- var union = baseRest(function(arrays) {
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
- });
-
- /**
- * This method is like `_.union` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which uniqueness is computed. Result values are chosen from the first
- * array in which the value occurs. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.unionBy([2.1], [1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- var unionBy = baseRest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
- });
-
- /**
- * This method is like `_.union` except that it accepts `comparator` which
- * is invoked to compare elements of `arrays`. Result values are chosen from
- * the first array in which the value occurs. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.unionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- var unionWith = baseRest(function(arrays) {
- var comparator = last(arrays);
- comparator = typeof comparator == 'function' ? comparator : undefined;
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
- });
-
- /**
- * Creates a duplicate-free version of an array, using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons, in which only the first occurrence of each element
- * is kept. The order of result values is determined by the order they occur
- * in the array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniq([2, 1, 2]);
- * // => [2, 1]
- */
- function uniq(array) {
- return (array && array.length) ? baseUniq(array) : [];
- }
-
- /**
- * This method is like `_.uniq` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * uniqueness is computed. The order of result values is determined by the
- * order they occur in the array. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
- function uniqBy(array, iteratee) {
- return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
- }
-
- /**
- * This method is like `_.uniq` except that it accepts `comparator` which
- * is invoked to compare elements of `array`. The order of result values is
- * determined by the order they occur in the array.The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.uniqWith(objects, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
- */
- function uniqWith(array, comparator) {
- comparator = typeof comparator == 'function' ? comparator : undefined;
- return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
- }
-
- /**
- * This method is like `_.zip` except that it accepts an array of grouped
- * elements and creates an array regrouping the elements to their pre-zip
- * configuration.
- *
- * @static
- * @memberOf _
- * @since 1.2.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
- * // => [['a', 1, true], ['b', 2, false]]
- *
- * _.unzip(zipped);
- * // => [['a', 'b'], [1, 2], [true, false]]
- */
- function unzip(array) {
- if (!(array && array.length)) {
- return [];
- }
- var length = 0;
- array = arrayFilter(array, function(group) {
- if (isArrayLikeObject(group)) {
- length = nativeMax(group.length, length);
- return true;
- }
- });
- return baseTimes(length, function(index) {
- return arrayMap(array, baseProperty(index));
- });
- }
-
- /**
- * This method is like `_.unzip` except that it accepts `iteratee` to specify
- * how regrouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @param {Function} [iteratee=_.identity] The function to combine
- * regrouped values.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
- * // => [[1, 10, 100], [2, 20, 200]]
- *
- * _.unzipWith(zipped, _.add);
- * // => [3, 30, 300]
- */
- function unzipWith(array, iteratee) {
- if (!(array && array.length)) {
- return [];
- }
- var result = unzip(array);
- if (iteratee == null) {
- return result;
- }
- return arrayMap(result, function(group) {
- return apply(iteratee, undefined, group);
- });
- }
-
- /**
- * Creates an array excluding all given values using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * **Note:** Unlike `_.pull`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...*} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.xor
- * @example
- *
- * _.without([2, 1, 2, 3], 1, 2);
- * // => [3]
- */
- var without = baseRest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, values)
- : [];
- });
-
- /**
- * Creates an array of unique values that is the
- * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
- * of the given arrays. The order of result values is determined by the order
- * they occur in the arrays.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.without
- * @example
- *
- * _.xor([2, 1], [2, 3]);
- * // => [1, 3]
- */
- var xor = baseRest(function(arrays) {
- return baseXor(arrayFilter(arrays, isArrayLikeObject));
- });
-
- /**
- * This method is like `_.xor` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which by which they're compared. The order of result values is determined
- * by the order they occur in the arrays. The iteratee is invoked with one
- * argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2, 3.4]
- *
- * // The `_.property` iteratee shorthand.
- * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
- var xorBy = baseRest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
- });
-
- /**
- * This method is like `_.xor` except that it accepts `comparator` which is
- * invoked to compare elements of `arrays`. The order of result values is
- * determined by the order they occur in the arrays. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.xorWith(objects, others, _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
- var xorWith = baseRest(function(arrays) {
- var comparator = last(arrays);
- comparator = typeof comparator == 'function' ? comparator : undefined;
- return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
- });
-
- /**
- * Creates an array of grouped elements, the first of which contains the
- * first elements of the given arrays, the second of which contains the
- * second elements of the given arrays, and so on.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zip(['a', 'b'], [1, 2], [true, false]);
- * // => [['a', 1, true], ['b', 2, false]]
- */
- var zip = baseRest(unzip);
-
- /**
- * This method is like `_.fromPairs` except that it accepts two arrays,
- * one of property identifiers and one of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 0.4.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObject(['a', 'b'], [1, 2]);
- * // => { 'a': 1, 'b': 2 }
- */
- function zipObject(props, values) {
- return baseZipObject(props || [], values || [], assignValue);
- }
-
- /**
- * This method is like `_.zipObject` except that it supports property paths.
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
- * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
- */
- function zipObjectDeep(props, values) {
- return baseZipObject(props || [], values || [], baseSet);
- }
-
- /**
- * This method is like `_.zip` except that it accepts `iteratee` to specify
- * how grouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @param {Function} [iteratee=_.identity] The function to combine
- * grouped values.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
- * return a + b + c;
- * });
- * // => [111, 222]
- */
- var zipWith = baseRest(function(arrays) {
- var length = arrays.length,
- iteratee = length > 1 ? arrays[length - 1] : undefined;
-
- iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
- return unzipWith(arrays, iteratee);
- });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates a `lodash` wrapper instance that wraps `value` with explicit method
- * chain sequences enabled. The result of such sequences must be unwrapped
- * with `_#value`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Seq
- * @param {*} value The value to wrap.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'pebbles', 'age': 1 }
- * ];
- *
- * var youngest = _
- * .chain(users)
- * .sortBy('age')
- * .map(function(o) {
- * return o.user + ' is ' + o.age;
- * })
- * .head()
- * .value();
- * // => 'pebbles is 1'
- */
- function chain(value) {
- var result = lodash(value);
- result.__chain__ = true;
- return result;
- }
-
- /**
- * This method invokes `interceptor` and returns `value`. The interceptor
- * is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain sequence in order to modify intermediate results.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns `value`.
- * @example
- *
- * _([1, 2, 3])
- * .tap(function(array) {
- * // Mutate input array.
- * array.pop();
- * })
- * .reverse()
- * .value();
- * // => [2, 1]
- */
- function tap(value, interceptor) {
- interceptor(value);
- return value;
- }
-
- /**
- * This method is like `_.tap` except that it returns the result of `interceptor`.
- * The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain sequence.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns the result of `interceptor`.
- * @example
- *
- * _(' abc ')
- * .chain()
- * .trim()
- * .thru(function(value) {
- * return [value];
- * })
- * .value();
- * // => ['abc']
- */
- function thru(value, interceptor) {
- return interceptor(value);
- }
-
- /**
- * This method is the wrapper version of `_.at`.
- *
- * @name at
- * @memberOf _
- * @since 1.0.0
- * @category Seq
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _(object).at(['a[0].b.c', 'a[1]']).value();
- * // => [3, 4]
- */
- var wrapperAt = flatRest(function(paths) {
- var length = paths.length,
- start = length ? paths[0] : 0,
- value = this.__wrapped__,
- interceptor = function(object) { return baseAt(object, paths); };
-
- if (length > 1 || this.__actions__.length ||
- !(value instanceof LazyWrapper) || !isIndex(start)) {
- return this.thru(interceptor);
- }
- value = value.slice(start, +start + (length ? 1 : 0));
- value.__actions__.push({
- 'func': thru,
- 'args': [interceptor],
- 'thisArg': undefined
- });
- return new LodashWrapper(value, this.__chain__).thru(function(array) {
- if (length && !array.length) {
- array.push(undefined);
- }
- return array;
- });
- });
-
- /**
- * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
- *
- * @name chain
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * // A sequence without explicit chaining.
- * _(users).head();
- * // => { 'user': 'barney', 'age': 36 }
- *
- * // A sequence with explicit chaining.
- * _(users)
- * .chain()
- * .head()
- * .pick('user')
- * .value();
- * // => { 'user': 'barney' }
- */
- function wrapperChain() {
- return chain(this);
- }
-
- /**
- * Executes the chain sequence and returns the wrapped result.
- *
- * @name commit
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2];
- * var wrapped = _(array).push(3);
- *
- * console.log(array);
- * // => [1, 2]
- *
- * wrapped = wrapped.commit();
- * console.log(array);
- * // => [1, 2, 3]
- *
- * wrapped.last();
- * // => 3
- *
- * console.log(array);
- * // => [1, 2, 3]
- */
- function wrapperCommit() {
- return new LodashWrapper(this.value(), this.__chain__);
- }
-
- /**
- * Gets the next value on a wrapped object following the
- * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
- *
- * @name next
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the next iterator value.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 1 }
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 2 }
- *
- * wrapped.next();
- * // => { 'done': true, 'value': undefined }
- */
- function wrapperNext() {
- if (this.__values__ === undefined) {
- this.__values__ = toArray(this.value());
- }
- var done = this.__index__ >= this.__values__.length,
- value = done ? undefined : this.__values__[this.__index__++];
-
- return { 'done': done, 'value': value };
- }
-
- /**
- * Enables the wrapper to be iterable.
- *
- * @name Symbol.iterator
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the wrapper object.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped[Symbol.iterator]() === wrapped;
- * // => true
- *
- * Array.from(wrapped);
- * // => [1, 2]
- */
- function wrapperToIterator() {
- return this;
- }
-
- /**
- * Creates a clone of the chain sequence planting `value` as the wrapped value.
- *
- * @name plant
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @param {*} value The value to plant.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2]).map(square);
- * var other = wrapped.plant([3, 4]);
- *
- * other.value();
- * // => [9, 16]
- *
- * wrapped.value();
- * // => [1, 4]
- */
- function wrapperPlant(value) {
- var result,
- parent = this;
-
- while (parent instanceof baseLodash) {
- var clone = wrapperClone(parent);
- clone.__index__ = 0;
- clone.__values__ = undefined;
- if (result) {
- previous.__wrapped__ = clone;
- } else {
- result = clone;
- }
- var previous = clone;
- parent = parent.__wrapped__;
- }
- previous.__wrapped__ = value;
- return result;
- }
-
- /**
- * This method is the wrapper version of `_.reverse`.
- *
- * **Note:** This method mutates the wrapped array.
- *
- * @name reverse
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _(array).reverse().value()
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
- function wrapperReverse() {
- var value = this.__wrapped__;
- if (value instanceof LazyWrapper) {
- var wrapped = value;
- if (this.__actions__.length) {
- wrapped = new LazyWrapper(this);
- }
- wrapped = wrapped.reverse();
- wrapped.__actions__.push({
- 'func': thru,
- 'args': [reverse],
- 'thisArg': undefined
- });
- return new LodashWrapper(wrapped, this.__chain__);
- }
- return this.thru(reverse);
- }
-
- /**
- * Executes the chain sequence to resolve the unwrapped value.
- *
- * @name value
- * @memberOf _
- * @since 0.1.0
- * @alias toJSON, valueOf
- * @category Seq
- * @returns {*} Returns the resolved unwrapped value.
- * @example
- *
- * _([1, 2, 3]).value();
- * // => [1, 2, 3]
- */
- function wrapperValue() {
- return baseWrapperValue(this.__wrapped__, this.__actions__);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the number of times the key was returned by `iteratee`. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.countBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': 1, '6': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.countBy(['one', 'two', 'three'], 'length');
- * // => { '3': 2, '5': 1 }
- */
- var countBy = createAggregator(function(result, value, key) {
- if (hasOwnProperty.call(result, key)) {
- ++result[key];
- } else {
- baseAssignValue(result, key, 1);
- }
- });
-
- /**
- * Checks if `predicate` returns truthy for **all** elements of `collection`.
- * Iteration is stopped once `predicate` returns falsey. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * **Note:** This method returns `true` for
- * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
- * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
- * elements of empty collections.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if all elements pass the predicate check,
- * else `false`.
- * @example
- *
- * _.every([true, 1, null, 'yes'], Boolean);
- * // => false
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.every(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.every(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.every(users, 'active');
- * // => false
- */
- function every(collection, predicate, guard) {
- var func = isArray(collection) ? arrayEvery : baseEvery;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Iterates over elements of `collection`, returning an array of all elements
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * **Note:** Unlike `_.remove`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.reject
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * _.filter(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, { 'age': 36, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.filter(users, 'active');
- * // => objects for ['barney']
- */
- function filter(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Iterates over elements of `collection`, returning the first element
- * `predicate` returns truthy for. The predicate is invoked with three
- * arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=0] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false },
- * { 'user': 'pebbles', 'age': 1, 'active': true }
- * ];
- *
- * _.find(users, function(o) { return o.age < 40; });
- * // => object for 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.find(users, { 'age': 1, 'active': true });
- * // => object for 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.find(users, ['active', false]);
- * // => object for 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.find(users, 'active');
- * // => object for 'barney'
- */
- var find = createFind(findIndex);
-
- /**
- * This method is like `_.find` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param {number} [fromIndex=collection.length-1] The index to search from.
- * @returns {*} Returns the matched element, else `undefined`.
- * @example
- *
- * _.findLast([1, 2, 3, 4], function(n) {
- * return n % 2 == 1;
- * });
- * // => 3
- */
- var findLast = createFind(findLastIndex);
-
- /**
- * Creates a flattened array of values by running each element in `collection`
- * thru `iteratee` and flattening the mapped results. The iteratee is invoked
- * with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [n, n];
- * }
- *
- * _.flatMap([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
- function flatMap(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), 1);
- }
-
- /**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDeep([1, 2], duplicate);
- * // => [1, 1, 2, 2]
- */
- function flatMapDeep(collection, iteratee) {
- return baseFlatten(map(collection, iteratee), INFINITY);
- }
-
- /**
- * This method is like `_.flatMap` except that it recursively flattens the
- * mapped results up to `depth` times.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {number} [depth=1] The maximum recursion depth.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * function duplicate(n) {
- * return [[[n, n]]];
- * }
- *
- * _.flatMapDepth([1, 2], duplicate, 2);
- * // => [[1, 1], [2, 2]]
- */
- function flatMapDepth(collection, iteratee, depth) {
- depth = depth === undefined ? 1 : toInteger(depth);
- return baseFlatten(map(collection, iteratee), depth);
- }
-
- /**
- * Iterates over elements of `collection` and invokes `iteratee` for each element.
- * The iteratee is invoked with three arguments: (value, index|key, collection).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * **Note:** As with other "Collections" methods, objects with a "length"
- * property are iterated like arrays. To avoid this behavior use `_.forIn`
- * or `_.forOwn` for object iteration.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @alias each
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEachRight
- * @example
- *
- * _.forEach([1, 2], function(value) {
- * console.log(value);
- * });
- * // => Logs `1` then `2`.
- *
- * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forEach(collection, iteratee) {
- var func = isArray(collection) ? arrayEach : baseEach;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.forEach` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @alias eachRight
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array|Object} Returns `collection`.
- * @see _.forEach
- * @example
- *
- * _.forEachRight([1, 2], function(value) {
- * console.log(value);
- * });
- * // => Logs `2` then `1`.
- */
- function forEachRight(collection, iteratee) {
- var func = isArray(collection) ? arrayEachRight : baseEachRight;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The order of grouped values
- * is determined by the order they occur in `collection`. The corresponding
- * value of each key is an array of elements responsible for generating the
- * key. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * _.groupBy([6.1, 4.2, 6.3], Math.floor);
- * // => { '4': [4.2], '6': [6.1, 6.3] }
- *
- * // The `_.property` iteratee shorthand.
- * _.groupBy(['one', 'two', 'three'], 'length');
- * // => { '3': ['one', 'two'], '5': ['three'] }
- */
- var groupBy = createAggregator(function(result, value, key) {
- if (hasOwnProperty.call(result, key)) {
- result[key].push(value);
- } else {
- baseAssignValue(result, key, [value]);
- }
- });
-
- /**
- * Checks if `value` is in `collection`. If `collection` is a string, it's
- * checked for a substring of `value`, otherwise
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * is used for equality comparisons. If `fromIndex` is negative, it's used as
- * the offset from the end of `collection`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object|string} collection The collection to inspect.
- * @param {*} value The value to search for.
- * @param {number} [fromIndex=0] The index to search from.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {boolean} Returns `true` if `value` is found, else `false`.
- * @example
- *
- * _.includes([1, 2, 3], 1);
- * // => true
- *
- * _.includes([1, 2, 3], 1, 2);
- * // => false
- *
- * _.includes({ 'a': 1, 'b': 2 }, 1);
- * // => true
- *
- * _.includes('abcd', 'bc');
- * // => true
- */
- function includes(collection, value, fromIndex, guard) {
- collection = isArrayLike(collection) ? collection : values(collection);
- fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
-
- var length = collection.length;
- if (fromIndex < 0) {
- fromIndex = nativeMax(length + fromIndex, 0);
- }
- return isString(collection)
- ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
- : (!!length && baseIndexOf(collection, value, fromIndex) > -1);
- }
-
- /**
- * Invokes the method at `path` of each element in `collection`, returning
- * an array of the results of each invoked method. Any additional arguments
- * are provided to each invoked method. If `path` is a function, it's invoked
- * for, and `this` bound to, each element in `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array|Function|string} path The path of the method to invoke or
- * the function invoked per iteration.
- * @param {...*} [args] The arguments to invoke each method with.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
- * // => [[1, 5, 7], [1, 2, 3]]
- *
- * _.invokeMap([123, 456], String.prototype.split, '');
- * // => [['1', '2', '3'], ['4', '5', '6']]
- */
- var invokeMap = baseRest(function(collection, path, args) {
- var index = -1,
- isFunc = typeof path == 'function',
- result = isArrayLike(collection) ? Array(collection.length) : [];
-
- baseEach(collection, function(value) {
- result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
- });
- return result;
- });
-
- /**
- * Creates an object composed of keys generated from the results of running
- * each element of `collection` thru `iteratee`. The corresponding value of
- * each key is the last element responsible for generating the key. The
- * iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
- * @returns {Object} Returns the composed aggregate object.
- * @example
- *
- * var array = [
- * { 'dir': 'left', 'code': 97 },
- * { 'dir': 'right', 'code': 100 }
- * ];
- *
- * _.keyBy(array, function(o) {
- * return String.fromCharCode(o.code);
- * });
- * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
- *
- * _.keyBy(array, 'dir');
- * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
- */
- var keyBy = createAggregator(function(result, value, key) {
- baseAssignValue(result, key, value);
- });
-
- /**
- * Creates an array of values by running each element in `collection` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
- *
- * The guarded methods are:
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * _.map([4, 8], square);
- * // => [16, 64]
- *
- * _.map({ 'a': 4, 'b': 8 }, square);
- * // => [16, 64] (iteration order is not guaranteed)
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, 'user');
- * // => ['barney', 'fred']
- */
- function map(collection, iteratee) {
- var func = isArray(collection) ? arrayMap : baseMap;
- return func(collection, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.sortBy` except that it allows specifying the sort
- * orders of the iteratees to sort by. If `orders` is unspecified, all values
- * are sorted in ascending order. Otherwise, specify an order of "desc" for
- * descending or "asc" for ascending sort order of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
- * The iteratees to sort by.
- * @param {string[]} [orders] The sort orders of `iteratees`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 34 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 36 }
- * ];
- *
- * // Sort by `user` in ascending order and by `age` in descending order.
- * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- */
- function orderBy(collection, iteratees, orders, guard) {
- if (collection == null) {
- return [];
- }
- if (!isArray(iteratees)) {
- iteratees = iteratees == null ? [] : [iteratees];
- }
- orders = guard ? undefined : orders;
- if (!isArray(orders)) {
- orders = orders == null ? [] : [orders];
- }
- return baseOrderBy(collection, iteratees, orders);
- }
-
- /**
- * Creates an array of elements split into two groups, the first of which
- * contains elements `predicate` returns truthy for, the second of which
- * contains elements `predicate` returns falsey for. The predicate is
- * invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the array of grouped elements.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true },
- * { 'user': 'pebbles', 'age': 1, 'active': false }
- * ];
- *
- * _.partition(users, function(o) { return o.active; });
- * // => objects for [['fred'], ['barney', 'pebbles']]
- *
- * // The `_.matches` iteratee shorthand.
- * _.partition(users, { 'age': 1, 'active': false });
- * // => objects for [['pebbles'], ['barney', 'fred']]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.partition(users, ['active', false]);
- * // => objects for [['barney', 'pebbles'], ['fred']]
- *
- * // The `_.property` iteratee shorthand.
- * _.partition(users, 'active');
- * // => objects for [['fred'], ['barney', 'pebbles']]
- */
- var partition = createAggregator(function(result, value, key) {
- result[key ? 0 : 1].push(value);
- }, function() { return [[], []]; });
-
- /**
- * Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` thru `iteratee`, where each successive
- * invocation is supplied the return value of the previous. If `accumulator`
- * is not given, the first element of `collection` is used as the initial
- * value. The iteratee is invoked with four arguments:
- * (accumulator, value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.reduce`, `_.reduceRight`, and `_.transform`.
- *
- * The guarded methods are:
- * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
- * and `sortBy`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduceRight
- * @example
- *
- * _.reduce([1, 2], function(sum, n) {
- * return sum + n;
- * }, 0);
- * // => 3
- *
- * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * return result;
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
- */
- function reduce(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduce : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
- }
-
- /**
- * This method is like `_.reduce` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduce
- * @example
- *
- * var array = [[0, 1], [2, 3], [4, 5]];
- *
- * _.reduceRight(array, function(flattened, other) {
- * return flattened.concat(other);
- * }, []);
- * // => [4, 5, 2, 3, 0, 1]
- */
- function reduceRight(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduceRight : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
- }
-
- /**
- * The opposite of `_.filter`; this method returns the elements of `collection`
- * that `predicate` does **not** return truthy for.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.filter
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true }
- * ];
- *
- * _.reject(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.reject(users, { 'age': 40, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.reject(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.reject(users, 'active');
- * // => objects for ['barney']
- */
- function reject(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, negate(getIteratee(predicate, 3)));
- }
-
- /**
- * Gets a random element from `collection`.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @returns {*} Returns the random element.
- * @example
- *
- * _.sample([1, 2, 3, 4]);
- * // => 2
- */
- function sample(collection) {
- var func = isArray(collection) ? arraySample : baseSample;
- return func(collection);
- }
-
- /**
- * Gets `n` random elements at unique keys from `collection` up to the
- * size of `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @param {number} [n=1] The number of elements to sample.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the random elements.
- * @example
- *
- * _.sampleSize([1, 2, 3], 2);
- * // => [3, 1]
- *
- * _.sampleSize([1, 2, 3], 4);
- * // => [2, 3, 1]
- */
- function sampleSize(collection, n, guard) {
- if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = toInteger(n);
- }
- var func = isArray(collection) ? arraySampleSize : baseSampleSize;
- return func(collection, n);
- }
-
- /**
- * Creates an array of shuffled values, using a version of the
- * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to shuffle.
- * @returns {Array} Returns the new shuffled array.
- * @example
- *
- * _.shuffle([1, 2, 3, 4]);
- * // => [4, 1, 3, 2]
- */
- function shuffle(collection) {
- var func = isArray(collection) ? arrayShuffle : baseShuffle;
- return func(collection);
- }
-
- /**
- * Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable string keyed properties for objects.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object|string} collection The collection to inspect.
- * @returns {number} Returns the collection size.
- * @example
- *
- * _.size([1, 2, 3]);
- * // => 3
- *
- * _.size({ 'a': 1, 'b': 2 });
- * // => 2
- *
- * _.size('pebbles');
- * // => 7
- */
- function size(collection) {
- if (collection == null) {
- return 0;
- }
- if (isArrayLike(collection)) {
- return isString(collection) ? stringSize(collection) : collection.length;
- }
- var tag = getTag(collection);
- if (tag == mapTag || tag == setTag) {
- return collection.size;
- }
- return baseKeys(collection).length;
- }
-
- /**
- * Checks if `predicate` returns truthy for **any** element of `collection`.
- * Iteration is stopped once `predicate` returns truthy. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- * @example
- *
- * _.some([null, 0, 'yes', false], Boolean);
- * // => true
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.some(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.some(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.some(users, 'active');
- * // => true
- */
- function some(collection, predicate, guard) {
- var func = isArray(collection) ? arraySome : baseSome;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, getIteratee(predicate, 3));
- }
-
- /**
- * Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection thru each iteratee. This method
- * performs a stable sort, that is, it preserves the original sort order of
- * equal elements. The iteratees are invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
- * The iteratees to sort by.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 34 }
- * ];
- *
- * _.sortBy(users, [function(o) { return o.user; }]);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- *
- * _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
- */
- var sortBy = baseRest(function(collection, iteratees) {
- if (collection == null) {
- return [];
- }
- var length = iteratees.length;
- if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
- iteratees = [];
- } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
- iteratees = [iteratees[0]];
- }
- return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
- });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Gets the timestamp of the number of milliseconds that have elapsed since
- * the Unix epoch (1 January 1970 00:00:00 UTC).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Date
- * @returns {number} Returns the timestamp.
- * @example
- *
- * _.defer(function(stamp) {
- * console.log(_.now() - stamp);
- * }, _.now());
- * // => Logs the number of milliseconds it took for the deferred invocation.
- */
- var now = ctxNow || function() {
- return root.Date.now();
- };
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The opposite of `_.before`; this method creates a function that invokes
- * `func` once it's called `n` or more times.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {number} n The number of calls before `func` is invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var saves = ['profile', 'settings'];
- *
- * var done = _.after(saves.length, function() {
- * console.log('done saving!');
- * });
- *
- * _.forEach(saves, function(type) {
- * asyncSave({ 'type': type, 'complete': done });
- * });
- * // => Logs 'done saving!' after the two async saves have completed.
- */
- function after(n, func) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n < 1) {
- return func.apply(this, arguments);
- }
- };
- }
-
- /**
- * Creates a function that invokes `func`, with up to `n` arguments,
- * ignoring any additional arguments.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @param {number} [n=func.length] The arity cap.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.ary(parseInt, 1));
- * // => [6, 8, 10]
- */
- function ary(func, n, guard) {
- n = guard ? undefined : n;
- n = (func && n == null) ? func.length : n;
- return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
- }
-
- /**
- * Creates a function that invokes `func`, with the `this` binding and arguments
- * of the created function, while it's called less than `n` times. Subsequent
- * calls to the created function return the result of the last `func` invocation.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {number} n The number of calls at which `func` is no longer invoked.
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * jQuery(element).on('click', _.before(5, addContactToList));
- * // => Allows adding up to 4 contacts to the list.
- */
- function before(n, func) {
- var result;
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- n = toInteger(n);
- return function() {
- if (--n > 0) {
- result = func.apply(this, arguments);
- }
- if (n <= 1) {
- func = undefined;
- }
- return result;
- };
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of `thisArg`
- * and `partials` prepended to the arguments it receives.
- *
- * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for partially applied arguments.
- *
- * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
- * property of bound functions.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to bind.
- * @param {*} thisArg The `this` binding of `func`.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * function greet(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * }
- *
- * var object = { 'user': 'fred' };
- *
- * var bound = _.bind(greet, object, 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bind(greet, object, _, '!');
- * bound('hi');
- * // => 'hi fred!'
- */
- var bind = baseRest(function(func, thisArg, partials) {
- var bitmask = WRAP_BIND_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bind));
- bitmask |= WRAP_PARTIAL_FLAG;
- }
- return createWrap(func, bitmask, thisArg, partials, holders);
- });
-
- /**
- * Creates a function that invokes the method at `object[key]` with `partials`
- * prepended to the arguments it receives.
- *
- * This method differs from `_.bind` by allowing bound functions to reference
- * methods that may be redefined or don't yet exist. See
- * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
- * for more details.
- *
- * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Function
- * @param {Object} object The object to invoke the method on.
- * @param {string} key The key of the method.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new bound function.
- * @example
- *
- * var object = {
- * 'user': 'fred',
- * 'greet': function(greeting, punctuation) {
- * return greeting + ' ' + this.user + punctuation;
- * }
- * };
- *
- * var bound = _.bindKey(object, 'greet', 'hi');
- * bound('!');
- * // => 'hi fred!'
- *
- * object.greet = function(greeting, punctuation) {
- * return greeting + 'ya ' + this.user + punctuation;
- * };
- *
- * bound('!');
- * // => 'hiya fred!'
- *
- * // Bound with placeholders.
- * var bound = _.bindKey(object, 'greet', _, '!');
- * bound('hi');
- * // => 'hiya fred!'
- */
- var bindKey = baseRest(function(object, key, partials) {
- var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;
- if (partials.length) {
- var holders = replaceHolders(partials, getHolder(bindKey));
- bitmask |= WRAP_PARTIAL_FLAG;
- }
- return createWrap(key, bitmask, object, partials, holders);
- });
-
- /**
- * Creates a function that accepts arguments of `func` and either invokes
- * `func` returning its result, if at least `arity` number of arguments have
- * been provided, or returns a function that accepts the remaining `func`
- * arguments, and so on. The arity of `func` may be specified if `func.length`
- * is not sufficient.
- *
- * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
- * may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curry(abc);
- *
- * curried(1)(2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2)(3);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(1)(_, 3)(2);
- * // => [1, 2, 3]
- */
- function curry(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curry.placeholder;
- return result;
- }
-
- /**
- * This method is like `_.curry` except that arguments are applied to `func`
- * in the manner of `_.partialRight` instead of `_.partial`.
- *
- * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for provided arguments.
- *
- * **Note:** This method doesn't set the "length" property of curried functions.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to curry.
- * @param {number} [arity=func.length] The arity of `func`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the new curried function.
- * @example
- *
- * var abc = function(a, b, c) {
- * return [a, b, c];
- * };
- *
- * var curried = _.curryRight(abc);
- *
- * curried(3)(2)(1);
- * // => [1, 2, 3]
- *
- * curried(2, 3)(1);
- * // => [1, 2, 3]
- *
- * curried(1, 2, 3);
- * // => [1, 2, 3]
- *
- * // Curried with placeholders.
- * curried(3)(1, _)(2);
- * // => [1, 2, 3]
- */
- function curryRight(func, arity, guard) {
- arity = guard ? undefined : arity;
- var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
- result.placeholder = curryRight.placeholder;
- return result;
- }
-
- /**
- * Creates a debounced function that delays invoking `func` until after `wait`
- * milliseconds have elapsed since the last time the debounced function was
- * invoked. The debounced function comes with a `cancel` method to cancel
- * delayed `func` invocations and a `flush` method to immediately invoke them.
- * Provide `options` to indicate whether `func` should be invoked on the
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
- * with the last arguments provided to the debounced function. Subsequent
- * calls to the debounced function return the result of the last `func`
- * invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the debounced function
- * is invoked more than once during the `wait` timeout.
- *
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.debounce` and `_.throttle`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to debounce.
- * @param {number} [wait=0] The number of milliseconds to delay.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=false]
- * Specify invoking on the leading edge of the timeout.
- * @param {number} [options.maxWait]
- * The maximum time `func` is allowed to be delayed before it's invoked.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new debounced function.
- * @example
- *
- * // Avoid costly calculations while the window size is in flux.
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
- *
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
- * 'leading': true,
- * 'trailing': false
- * }));
- *
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
- * var source = new EventSource('/stream');
- * jQuery(source).on('message', debounced);
- *
- * // Cancel the trailing debounced invocation.
- * jQuery(window).on('popstate', debounced.cancel);
- */
- function debounce(func, wait, options) {
- var lastArgs,
- lastThis,
- maxWait,
- result,
- timerId,
- lastCallTime,
- lastInvokeTime = 0,
- leading = false,
- maxing = false,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- wait = toNumber(wait) || 0;
- if (isObject(options)) {
- leading = !!options.leading;
- maxing = 'maxWait' in options;
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
-
- function invokeFunc(time) {
- var args = lastArgs,
- thisArg = lastThis;
-
- lastArgs = lastThis = undefined;
- lastInvokeTime = time;
- result = func.apply(thisArg, args);
- return result;
- }
-
- function leadingEdge(time) {
- // Reset any `maxWait` timer.
- lastInvokeTime = time;
- // Start the timer for the trailing edge.
- timerId = setTimeout(timerExpired, wait);
- // Invoke the leading edge.
- return leading ? invokeFunc(time) : result;
- }
-
- function remainingWait(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime,
- timeWaiting = wait - timeSinceLastCall;
-
- return maxing
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
- : timeWaiting;
- }
-
- function shouldInvoke(time) {
- var timeSinceLastCall = time - lastCallTime,
- timeSinceLastInvoke = time - lastInvokeTime;
-
- // Either this is the first call, activity has stopped and we're at the
- // trailing edge, the system time has gone backwards and we're treating
- // it as the trailing edge, or we've hit the `maxWait` limit.
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
- }
-
- function timerExpired() {
- var time = now();
- if (shouldInvoke(time)) {
- return trailingEdge(time);
- }
- // Restart the timer.
- timerId = setTimeout(timerExpired, remainingWait(time));
- }
-
- function trailingEdge(time) {
- timerId = undefined;
-
- // Only invoke if we have `lastArgs` which means `func` has been
- // debounced at least once.
- if (trailing && lastArgs) {
- return invokeFunc(time);
- }
- lastArgs = lastThis = undefined;
- return result;
- }
-
- function cancel() {
- if (timerId !== undefined) {
- clearTimeout(timerId);
- }
- lastInvokeTime = 0;
- lastArgs = lastCallTime = lastThis = timerId = undefined;
- }
-
- function flush() {
- return timerId === undefined ? result : trailingEdge(now());
- }
-
- function debounced() {
- var time = now(),
- isInvoking = shouldInvoke(time);
-
- lastArgs = arguments;
- lastThis = this;
- lastCallTime = time;
-
- if (isInvoking) {
- if (timerId === undefined) {
- return leadingEdge(lastCallTime);
- }
- if (maxing) {
- // Handle invocations in a tight loop.
- clearTimeout(timerId);
- timerId = setTimeout(timerExpired, wait);
- return invokeFunc(lastCallTime);
- }
- }
- if (timerId === undefined) {
- timerId = setTimeout(timerExpired, wait);
- }
- return result;
- }
- debounced.cancel = cancel;
- debounced.flush = flush;
- return debounced;
- }
-
- /**
- * Defers invoking the `func` until the current call stack has cleared. Any
- * additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to defer.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.defer(function(text) {
- * console.log(text);
- * }, 'deferred');
- * // => Logs 'deferred' after one millisecond.
- */
- var defer = baseRest(function(func, args) {
- return baseDelay(func, 1, args);
- });
-
- /**
- * Invokes `func` after `wait` milliseconds. Any additional arguments are
- * provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to delay.
- * @param {number} wait The number of milliseconds to delay invocation.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {number} Returns the timer id.
- * @example
- *
- * _.delay(function(text) {
- * console.log(text);
- * }, 1000, 'later');
- * // => Logs 'later' after one second.
- */
- var delay = baseRest(function(func, wait, args) {
- return baseDelay(func, toNumber(wait) || 0, args);
- });
-
- /**
- * Creates a function that invokes `func` with arguments reversed.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to flip arguments for.
- * @returns {Function} Returns the new flipped function.
- * @example
- *
- * var flipped = _.flip(function() {
- * return _.toArray(arguments);
- * });
- *
- * flipped('a', 'b', 'c', 'd');
- * // => ['d', 'c', 'b', 'a']
- */
- function flip(func) {
- return createWrap(func, WRAP_FLIP_FLAG);
- }
-
- /**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
- *
- * values(other);
- * // => [3, 4]
- *
- * object.a = 2;
- * values(object);
- * // => [1, 2]
- *
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
- *
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
- */
- function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
-
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result) || cache;
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
- }
-
- // Expose `MapCache`.
- memoize.Cache = MapCache;
-
- /**
- * Creates a function that negates the result of the predicate `func`. The
- * `func` predicate is invoked with the `this` binding and arguments of the
- * created function.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} predicate The predicate to negate.
- * @returns {Function} Returns the new negated function.
- * @example
- *
- * function isEven(n) {
- * return n % 2 == 0;
- * }
- *
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
- * // => [1, 3, 5]
- */
- function negate(predicate) {
- if (typeof predicate != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return function() {
- var args = arguments;
- switch (args.length) {
- case 0: return !predicate.call(this);
- case 1: return !predicate.call(this, args[0]);
- case 2: return !predicate.call(this, args[0], args[1]);
- case 3: return !predicate.call(this, args[0], args[1], args[2]);
- }
- return !predicate.apply(this, args);
- };
- }
-
- /**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first invocation. The `func` is
- * invoked with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // => `createApplication` is invoked once
- */
- function once(func) {
- return before(2, func);
- }
-
- /**
- * Creates a function that invokes `func` with its arguments transformed.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Function
- * @param {Function} func The function to wrap.
- * @param {...(Function|Function[])} [transforms=[_.identity]]
- * The argument transforms.
- * @returns {Function} Returns the new function.
- * @example
- *
- * function doubled(n) {
- * return n * 2;
- * }
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var func = _.overArgs(function(x, y) {
- * return [x, y];
- * }, [square, doubled]);
- *
- * func(9, 3);
- * // => [81, 6]
- *
- * func(10, 5);
- * // => [100, 10]
- */
- var overArgs = castRest(function(func, transforms) {
- transforms = (transforms.length == 1 && isArray(transforms[0]))
- ? arrayMap(transforms[0], baseUnary(getIteratee()))
- : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
-
- var funcsLength = transforms.length;
- return baseRest(function(args) {
- var index = -1,
- length = nativeMin(args.length, funcsLength);
-
- while (++index < length) {
- args[index] = transforms[index].call(this, args[index]);
- }
- return apply(func, this, args);
- });
- });
-
- /**
- * Creates a function that invokes `func` with `partials` prepended to the
- * arguments it receives. This method is like `_.bind` except it does **not**
- * alter the `this` binding.
- *
- * The `_.partial.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 0.2.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * function greet(greeting, name) {
- * return greeting + ' ' + name;
- * }
- *
- * var sayHelloTo = _.partial(greet, 'hello');
- * sayHelloTo('fred');
- * // => 'hello fred'
- *
- * // Partially applied with placeholders.
- * var greetFred = _.partial(greet, _, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- */
- var partial = baseRest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partial));
- return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
- });
-
- /**
- * This method is like `_.partial` except that partially applied arguments
- * are appended to the arguments it receives.
- *
- * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * function greet(greeting, name) {
- * return greeting + ' ' + name;
- * }
- *
- * var greetFred = _.partialRight(greet, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- *
- * // Partially applied with placeholders.
- * var sayHelloTo = _.partialRight(greet, 'hello', _);
- * sayHelloTo('fred');
- * // => 'hello fred'
- */
- var partialRight = baseRest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partialRight));
- return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
- });
-
- /**
- * Creates a function that invokes `func` with arguments arranged according
- * to the specified `indexes` where the argument value at the first index is
- * provided as the first argument, the argument value at the second index is
- * provided as the second argument, and so on.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to rearrange arguments for.
- * @param {...(number|number[])} indexes The arranged argument indexes.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var rearged = _.rearg(function(a, b, c) {
- * return [a, b, c];
- * }, [2, 0, 1]);
- *
- * rearged('b', 'c', 'a')
- * // => ['a', 'b', 'c']
- */
- var rearg = flatRest(function(func, indexes) {
- return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
- });
-
- /**
- * Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as
- * an array.
- *
- * **Note:** This method is based on the
- * [rest parameter](https://mdn.io/rest_parameters).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.rest(function(what, names) {
- * return what + ' ' + _.initial(names).join(', ') +
- * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
- * });
- *
- * say('hello', 'fred', 'barney', 'pebbles');
- * // => 'hello fred, barney, & pebbles'
- */
- function rest(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = start === undefined ? start : toInteger(start);
- return baseRest(func, start);
- }
-
- /**
- * Creates a function that invokes `func` with the `this` binding of the
- * create function and an array of arguments much like
- * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
- *
- * **Note:** This method is based on the
- * [spread operator](https://mdn.io/spread_operator).
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Function
- * @param {Function} func The function to spread arguments over.
- * @param {number} [start=0] The start position of the spread.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.spread(function(who, what) {
- * return who + ' says ' + what;
- * });
- *
- * say(['fred', 'hello']);
- * // => 'fred says hello'
- *
- * var numbers = Promise.all([
- * Promise.resolve(40),
- * Promise.resolve(36)
- * ]);
- *
- * numbers.then(_.spread(function(x, y) {
- * return x + y;
- * }));
- * // => a Promise of 76
- */
- function spread(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = start == null ? 0 : nativeMax(toInteger(start), 0);
- return baseRest(function(args) {
- var array = args[start],
- otherArgs = castSlice(args, 0, start);
-
- if (array) {
- arrayPush(otherArgs, array);
- }
- return apply(func, this, otherArgs);
- });
- }
-
- /**
- * Creates a throttled function that only invokes `func` at most once per
- * every `wait` milliseconds. The throttled function comes with a `cancel`
- * method to cancel delayed `func` invocations and a `flush` method to
- * immediately invoke them. Provide `options` to indicate whether `func`
- * should be invoked on the leading and/or trailing edge of the `wait`
- * timeout. The `func` is invoked with the last arguments provided to the
- * throttled function. Subsequent calls to the throttled function return the
- * result of the last `func` invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the throttled function
- * is invoked more than once during the `wait` timeout.
- *
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.throttle` and `_.debounce`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to throttle.
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=true]
- * Specify invoking on the leading edge of the timeout.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new throttled function.
- * @example
- *
- * // Avoid excessively updating the position while scrolling.
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
- *
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
- * jQuery(element).on('click', throttled);
- *
- * // Cancel the trailing throttled invocation.
- * jQuery(window).on('popstate', throttled.cancel);
- */
- function throttle(func, wait, options) {
- var leading = true,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (isObject(options)) {
- leading = 'leading' in options ? !!options.leading : leading;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
- return debounce(func, wait, {
- 'leading': leading,
- 'maxWait': wait,
- 'trailing': trailing
- });
- }
-
- /**
- * Creates a function that accepts up to one argument, ignoring any
- * additional arguments.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.unary(parseInt));
- * // => [6, 8, 10]
- */
- function unary(func) {
- return ary(func, 1);
- }
-
- /**
- * Creates a function that provides `value` to `wrapper` as its first
- * argument. Any additional arguments provided to the function are appended
- * to those provided to the `wrapper`. The wrapper is invoked with the `this`
- * binding of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {*} value The value to wrap.
- * @param {Function} [wrapper=identity] The wrapper function.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var p = _.wrap(_.escape, function(func, text) {
- * return '<p>' + func(text) + '</p>';
- * });
- *
- * p('fred, barney, & pebbles');
- * // => '<p>fred, barney, &amp; pebbles</p>'
- */
- function wrap(value, wrapper) {
- return partial(castFunction(wrapper), value);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Casts `value` as an array if it's not one.
- *
- * @static
- * @memberOf _
- * @since 4.4.0
- * @category Lang
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast array.
- * @example
- *
- * _.castArray(1);
- * // => [1]
- *
- * _.castArray({ 'a': 1 });
- * // => [{ 'a': 1 }]
- *
- * _.castArray('abc');
- * // => ['abc']
- *
- * _.castArray(null);
- * // => [null]
- *
- * _.castArray(undefined);
- * // => [undefined]
- *
- * _.castArray();
- * // => []
- *
- * var array = [1, 2, 3];
- * console.log(_.castArray(array) === array);
- * // => true
- */
- function castArray() {
- if (!arguments.length) {
- return [];
- }
- var value = arguments[0];
- return isArray(value) ? value : [value];
- }
-
- /**
- * Creates a shallow clone of `value`.
- *
- * **Note:** This method is loosely based on the
- * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
- * and supports cloning arrays, array buffers, booleans, date objects, maps,
- * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
- * arrays. The own enumerable properties of `arguments` objects are cloned
- * as plain objects. An empty object is returned for uncloneable values such
- * as error objects, functions, DOM nodes, and WeakMaps.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to clone.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeep
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var shallow = _.clone(objects);
- * console.log(shallow[0] === objects[0]);
- * // => true
- */
- function clone(value) {
- return baseClone(value, CLONE_SYMBOLS_FLAG);
- }
-
- /**
- * This method is like `_.clone` except that it accepts `customizer` which
- * is invoked to produce the cloned value. If `customizer` returns `undefined`,
- * cloning is handled by the method instead. The `customizer` is invoked with
- * up to four arguments; (value [, index|key, object, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the cloned value.
- * @see _.cloneDeepWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(false);
- * }
- * }
- *
- * var el = _.cloneWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 0
- */
- function cloneWith(value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
- }
-
- /**
- * This method is like `_.clone` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @returns {*} Returns the deep cloned value.
- * @see _.clone
- * @example
- *
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
- *
- * var deep = _.cloneDeep(objects);
- * console.log(deep[0] === objects[0]);
- * // => false
- */
- function cloneDeep(value) {
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
- }
-
- /**
- * This method is like `_.cloneWith` except that it recursively clones `value`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to recursively clone.
- * @param {Function} [customizer] The function to customize cloning.
- * @returns {*} Returns the deep cloned value.
- * @see _.cloneWith
- * @example
- *
- * function customizer(value) {
- * if (_.isElement(value)) {
- * return value.cloneNode(true);
- * }
- * }
- *
- * var el = _.cloneDeepWith(document.body, customizer);
- *
- * console.log(el === document.body);
- * // => false
- * console.log(el.nodeName);
- * // => 'BODY'
- * console.log(el.childNodes.length);
- * // => 20
- */
- function cloneDeepWith(value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
- }
-
- /**
- * Checks if `object` conforms to `source` by invoking the predicate
- * properties of `source` with the corresponding property values of `object`.
- *
- * **Note:** This method is equivalent to `_.conforms` when `source` is
- * partially applied.
- *
- * @static
- * @memberOf _
- * @since 4.14.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property predicates to conform to.
- * @returns {boolean} Returns `true` if `object` conforms, else `false`.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- *
- * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
- * // => true
- *
- * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
- * // => false
- */
- function conformsTo(object, source) {
- return source == null || baseConformsTo(object, source, keys(source));
- }
-
- /**
- * Performs a
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * comparison between two values to determine if they are equivalent.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.eq(object, object);
- * // => true
- *
- * _.eq(object, other);
- * // => false
- *
- * _.eq('a', 'a');
- * // => true
- *
- * _.eq('a', Object('a'));
- * // => false
- *
- * _.eq(NaN, NaN);
- * // => true
- */
- function eq(value, other) {
- return value === other || (value !== value && other !== other);
- }
-
- /**
- * Checks if `value` is greater than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
- * else `false`.
- * @see _.lt
- * @example
- *
- * _.gt(3, 1);
- * // => true
- *
- * _.gt(3, 3);
- * // => false
- *
- * _.gt(1, 3);
- * // => false
- */
- var gt = createRelationalOperation(baseGt);
-
- /**
- * Checks if `value` is greater than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is greater than or equal to
- * `other`, else `false`.
- * @see _.lte
- * @example
- *
- * _.gte(3, 1);
- * // => true
- *
- * _.gte(3, 3);
- * // => true
- *
- * _.gte(1, 3);
- * // => false
- */
- var gte = createRelationalOperation(function(value, other) {
- return value >= other;
- });
-
- /**
- * Checks if `value` is likely an `arguments` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
- * else `false`.
- * @example
- *
- * _.isArguments(function() { return arguments; }());
- * // => true
- *
- * _.isArguments([1, 2, 3]);
- * // => false
- */
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
- !propertyIsEnumerable.call(value, 'callee');
- };
-
- /**
- * Checks if `value` is classified as an `Array` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
- * @example
- *
- * _.isArray([1, 2, 3]);
- * // => true
- *
- * _.isArray(document.body.children);
- * // => false
- *
- * _.isArray('abc');
- * // => false
- *
- * _.isArray(_.noop);
- * // => false
- */
- var isArray = Array.isArray;
-
- /**
- * Checks if `value` is classified as an `ArrayBuffer` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
- * @example
- *
- * _.isArrayBuffer(new ArrayBuffer(2));
- * // => true
- *
- * _.isArrayBuffer(new Array(2));
- * // => false
- */
- var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
-
- /**
- * Checks if `value` is array-like. A value is considered array-like if it's
- * not a function and has a `value.length` that's an integer greater than or
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
- * @example
- *
- * _.isArrayLike([1, 2, 3]);
- * // => true
- *
- * _.isArrayLike(document.body.children);
- * // => true
- *
- * _.isArrayLike('abc');
- * // => true
- *
- * _.isArrayLike(_.noop);
- * // => false
- */
- function isArrayLike(value) {
- return value != null && isLength(value.length) && !isFunction(value);
- }
-
- /**
- * This method is like `_.isArrayLike` except that it also checks if `value`
- * is an object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an array-like object,
- * else `false`.
- * @example
- *
- * _.isArrayLikeObject([1, 2, 3]);
- * // => true
- *
- * _.isArrayLikeObject(document.body.children);
- * // => true
- *
- * _.isArrayLikeObject('abc');
- * // => false
- *
- * _.isArrayLikeObject(_.noop);
- * // => false
- */
- function isArrayLikeObject(value) {
- return isObjectLike(value) && isArrayLike(value);
- }
-
- /**
- * Checks if `value` is classified as a boolean primitive or object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
- * @example
- *
- * _.isBoolean(false);
- * // => true
- *
- * _.isBoolean(null);
- * // => false
- */
- function isBoolean(value) {
- return value === true || value === false ||
- (isObjectLike(value) && baseGetTag(value) == boolTag);
- }
-
- /**
- * Checks if `value` is a buffer.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
- * @example
- *
- * _.isBuffer(new Buffer(2));
- * // => true
- *
- * _.isBuffer(new Uint8Array(2));
- * // => false
- */
- var isBuffer = nativeIsBuffer || stubFalse;
-
- /**
- * Checks if `value` is classified as a `Date` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
- * @example
- *
- * _.isDate(new Date);
- * // => true
- *
- * _.isDate('Mon April 23 2012');
- * // => false
- */
- var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
-
- /**
- * Checks if `value` is likely a DOM element.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
- * @example
- *
- * _.isElement(document.body);
- * // => true
- *
- * _.isElement('<body>');
- * // => false
- */
- function isElement(value) {
- return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
- }
-
- /**
- * Checks if `value` is an empty object, collection, map, or set.
- *
- * Objects are considered empty if they have no own enumerable string keyed
- * properties.
- *
- * Array-like values such as `arguments` objects, arrays, buffers, strings, or
- * jQuery-like collections are considered empty if they have a `length` of `0`.
- * Similarly, maps and sets are considered empty if they have a `size` of `0`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is empty, else `false`.
- * @example
- *
- * _.isEmpty(null);
- * // => true
- *
- * _.isEmpty(true);
- * // => true
- *
- * _.isEmpty(1);
- * // => true
- *
- * _.isEmpty([1, 2, 3]);
- * // => false
- *
- * _.isEmpty({ 'a': 1 });
- * // => false
- */
- function isEmpty(value) {
- if (value == null) {
- return true;
- }
- if (isArrayLike(value) &&
- (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
- isBuffer(value) || isTypedArray(value) || isArguments(value))) {
- return !value.length;
- }
- var tag = getTag(value);
- if (tag == mapTag || tag == setTag) {
- return !value.size;
- }
- if (isPrototype(value)) {
- return !baseKeys(value).length;
- }
- for (var key in value) {
- if (hasOwnProperty.call(value, key)) {
- return false;
- }
- }
- return true;
- }
-
- /**
- * Performs a deep comparison between two values to determine if they are
- * equivalent.
- *
- * **Note:** This method supports comparing arrays, array buffers, booleans,
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
- * by their own, not inherited, enumerable properties. Functions and DOM
- * nodes are compared by strict equality, i.e. `===`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * var object = { 'a': 1 };
- * var other = { 'a': 1 };
- *
- * _.isEqual(object, other);
- * // => true
- *
- * object === other;
- * // => false
- */
- function isEqual(value, other) {
- return baseIsEqual(value, other);
- }
-
- /**
- * This method is like `_.isEqual` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with up to
- * six arguments: (objValue, othValue [, index|key, object, other, stack]).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, othValue) {
- * if (isGreeting(objValue) && isGreeting(othValue)) {
- * return true;
- * }
- * }
- *
- * var array = ['hello', 'goodbye'];
- * var other = ['hi', 'goodbye'];
- *
- * _.isEqualWith(array, other, customizer);
- * // => true
- */
- function isEqualWith(value, other, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- var result = customizer ? customizer(value, other) : undefined;
- return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
- }
-
- /**
- * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
- * `SyntaxError`, `TypeError`, or `URIError` object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
- * @example
- *
- * _.isError(new Error);
- * // => true
- *
- * _.isError(Error);
- * // => false
- */
- function isError(value) {
- if (!isObjectLike(value)) {
- return false;
- }
- var tag = baseGetTag(value);
- return tag == errorTag || tag == domExcTag ||
- (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
- }
-
- /**
- * Checks if `value` is a finite primitive number.
- *
- * **Note:** This method is based on
- * [`Number.isFinite`](https://mdn.io/Number/isFinite).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
- * @example
- *
- * _.isFinite(3);
- * // => true
- *
- * _.isFinite(Number.MIN_VALUE);
- * // => true
- *
- * _.isFinite(Infinity);
- * // => false
- *
- * _.isFinite('3');
- * // => false
- */
- function isFinite(value) {
- return typeof value == 'number' && nativeIsFinite(value);
- }
-
- /**
- * Checks if `value` is classified as a `Function` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
- * @example
- *
- * _.isFunction(_);
- * // => true
- *
- * _.isFunction(/abc/);
- * // => false
- */
- function isFunction(value) {
- if (!isObject(value)) {
- return false;
- }
- // The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
- var tag = baseGetTag(value);
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
- }
-
- /**
- * Checks if `value` is an integer.
- *
- * **Note:** This method is based on
- * [`Number.isInteger`](https://mdn.io/Number/isInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
- * @example
- *
- * _.isInteger(3);
- * // => true
- *
- * _.isInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isInteger(Infinity);
- * // => false
- *
- * _.isInteger('3');
- * // => false
- */
- function isInteger(value) {
- return typeof value == 'number' && value == toInteger(value);
- }
-
- /**
- * Checks if `value` is a valid array-like length.
- *
- * **Note:** This method is loosely based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
- * @example
- *
- * _.isLength(3);
- * // => true
- *
- * _.isLength(Number.MIN_VALUE);
- * // => false
- *
- * _.isLength(Infinity);
- * // => false
- *
- * _.isLength('3');
- * // => false
- */
- function isLength(value) {
- return typeof value == 'number' &&
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is the
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
- * @example
- *
- * _.isObject({});
- * // => true
- *
- * _.isObject([1, 2, 3]);
- * // => true
- *
- * _.isObject(_.noop);
- * // => true
- *
- * _.isObject(null);
- * // => false
- */
- function isObject(value) {
- var type = typeof value;
- return value != null && (type == 'object' || type == 'function');
- }
-
- /**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
- * @example
- *
- * _.isObjectLike({});
- * // => true
- *
- * _.isObjectLike([1, 2, 3]);
- * // => true
- *
- * _.isObjectLike(_.noop);
- * // => false
- *
- * _.isObjectLike(null);
- * // => false
- */
- function isObjectLike(value) {
- return value != null && typeof value == 'object';
- }
-
- /**
- * Checks if `value` is classified as a `Map` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
- * @example
- *
- * _.isMap(new Map);
- * // => true
- *
- * _.isMap(new WeakMap);
- * // => false
- */
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
-
- /**
- * Performs a partial deep comparison between `object` and `source` to
- * determine if `object` contains equivalent property values.
- *
- * **Note:** This method is equivalent to `_.matches` when `source` is
- * partially applied.
- *
- * Partial comparisons will match empty array and empty object `source`
- * values against any array or object value, respectively. See `_.isEqual`
- * for a list of supported value comparisons.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- *
- * _.isMatch(object, { 'b': 2 });
- * // => true
- *
- * _.isMatch(object, { 'b': 1 });
- * // => false
- */
- function isMatch(object, source) {
- return object === source || baseIsMatch(object, source, getMatchData(source));
- }
-
- /**
- * This method is like `_.isMatch` except that it accepts `customizer` which
- * is invoked to compare values. If `customizer` returns `undefined`, comparisons
- * are handled by the method instead. The `customizer` is invoked with five
- * arguments: (objValue, srcValue, index|key, object, source).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {Object} object The object to inspect.
- * @param {Object} source The object of property values to match.
- * @param {Function} [customizer] The function to customize comparisons.
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
- * @example
- *
- * function isGreeting(value) {
- * return /^h(?:i|ello)$/.test(value);
- * }
- *
- * function customizer(objValue, srcValue) {
- * if (isGreeting(objValue) && isGreeting(srcValue)) {
- * return true;
- * }
- * }
- *
- * var object = { 'greeting': 'hello' };
- * var source = { 'greeting': 'hi' };
- *
- * _.isMatchWith(object, source, customizer);
- * // => true
- */
- function isMatchWith(object, source, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return baseIsMatch(object, source, getMatchData(source), customizer);
- }
-
- /**
- * Checks if `value` is `NaN`.
- *
- * **Note:** This method is based on
- * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
- * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
- * `undefined` and other non-number values.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
- * @example
- *
- * _.isNaN(NaN);
- * // => true
- *
- * _.isNaN(new Number(NaN));
- * // => true
- *
- * isNaN(undefined);
- * // => true
- *
- * _.isNaN(undefined);
- * // => false
- */
- function isNaN(value) {
- // An `NaN` primitive is the only value that is not equal to itself.
- // Perform the `toStringTag` check first to avoid errors with some
- // ActiveX objects in IE.
- return isNumber(value) && value != +value;
- }
-
- /**
- * Checks if `value` is a pristine native function.
- *
- * **Note:** This method can't reliably detect native functions in the presence
- * of the core-js package because core-js circumvents this kind of detection.
- * Despite multiple requests, the core-js maintainer has made it clear: any
- * attempt to fix the detection will be obstructed. As a result, we're left
- * with little choice but to throw an error. Unfortunately, this also affects
- * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
- * which rely on core-js.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
- * @example
- *
- * _.isNative(Array.prototype.push);
- * // => true
- *
- * _.isNative(_);
- * // => false
- */
- function isNative(value) {
- if (isMaskable(value)) {
- throw new Error(CORE_ERROR_TEXT);
- }
- return baseIsNative(value);
- }
-
- /**
- * Checks if `value` is `null`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
- * @example
- *
- * _.isNull(null);
- * // => true
- *
- * _.isNull(void 0);
- * // => false
- */
- function isNull(value) {
- return value === null;
- }
-
- /**
- * Checks if `value` is `null` or `undefined`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
- * @example
- *
- * _.isNil(null);
- * // => true
- *
- * _.isNil(void 0);
- * // => true
- *
- * _.isNil(NaN);
- * // => false
- */
- function isNil(value) {
- return value == null;
- }
-
- /**
- * Checks if `value` is classified as a `Number` primitive or object.
- *
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
- * classified as numbers, use the `_.isFinite` method.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a number, else `false`.
- * @example
- *
- * _.isNumber(3);
- * // => true
- *
- * _.isNumber(Number.MIN_VALUE);
- * // => true
- *
- * _.isNumber(Infinity);
- * // => true
- *
- * _.isNumber('3');
- * // => false
- */
- function isNumber(value) {
- return typeof value == 'number' ||
- (isObjectLike(value) && baseGetTag(value) == numberTag);
- }
-
- /**
- * Checks if `value` is a plain object, that is, an object created by the
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
- *
- * @static
- * @memberOf _
- * @since 0.8.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * _.isPlainObject(new Foo);
- * // => false
- *
- * _.isPlainObject([1, 2, 3]);
- * // => false
- *
- * _.isPlainObject({ 'x': 0, 'y': 0 });
- * // => true
- *
- * _.isPlainObject(Object.create(null));
- * // => true
- */
- function isPlainObject(value) {
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
- return false;
- }
- var proto = getPrototype(value);
- if (proto === null) {
- return true;
- }
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
- return typeof Ctor == 'function' && Ctor instanceof Ctor &&
- funcToString.call(Ctor) == objectCtorString;
- }
-
- /**
- * Checks if `value` is classified as a `RegExp` object.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
- * @example
- *
- * _.isRegExp(/abc/);
- * // => true
- *
- * _.isRegExp('/abc/');
- * // => false
- */
- var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
-
- /**
- * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
- * double precision number which isn't the result of a rounded unsafe integer.
- *
- * **Note:** This method is based on
- * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
- * @example
- *
- * _.isSafeInteger(3);
- * // => true
- *
- * _.isSafeInteger(Number.MIN_VALUE);
- * // => false
- *
- * _.isSafeInteger(Infinity);
- * // => false
- *
- * _.isSafeInteger('3');
- * // => false
- */
- function isSafeInteger(value) {
- return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
- }
-
- /**
- * Checks if `value` is classified as a `Set` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
- * @example
- *
- * _.isSet(new Set);
- * // => true
- *
- * _.isSet(new WeakSet);
- * // => false
- */
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
-
- /**
- * Checks if `value` is classified as a `String` primitive or object.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a string, else `false`.
- * @example
- *
- * _.isString('abc');
- * // => true
- *
- * _.isString(1);
- * // => false
- */
- function isString(value) {
- return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
- }
-
- /**
- * Checks if `value` is classified as a `Symbol` primitive or object.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
- * @example
- *
- * _.isSymbol(Symbol.iterator);
- * // => true
- *
- * _.isSymbol('abc');
- * // => false
- */
- function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
- }
-
- /**
- * Checks if `value` is classified as a typed array.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
- * @example
- *
- * _.isTypedArray(new Uint8Array);
- * // => true
- *
- * _.isTypedArray([]);
- * // => false
- */
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
-
- /**
- * Checks if `value` is `undefined`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
- * @example
- *
- * _.isUndefined(void 0);
- * // => true
- *
- * _.isUndefined(null);
- * // => false
- */
- function isUndefined(value) {
- return value === undefined;
- }
-
- /**
- * Checks if `value` is classified as a `WeakMap` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
- * @example
- *
- * _.isWeakMap(new WeakMap);
- * // => true
- *
- * _.isWeakMap(new Map);
- * // => false
- */
- function isWeakMap(value) {
- return isObjectLike(value) && getTag(value) == weakMapTag;
- }
-
- /**
- * Checks if `value` is classified as a `WeakSet` object.
- *
- * @static
- * @memberOf _
- * @since 4.3.0
- * @category Lang
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
- * @example
- *
- * _.isWeakSet(new WeakSet);
- * // => true
- *
- * _.isWeakSet(new Set);
- * // => false
- */
- function isWeakSet(value) {
- return isObjectLike(value) && baseGetTag(value) == weakSetTag;
- }
-
- /**
- * Checks if `value` is less than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- * @see _.gt
- * @example
- *
- * _.lt(1, 3);
- * // => true
- *
- * _.lt(3, 3);
- * // => false
- *
- * _.lt(3, 1);
- * // => false
- */
- var lt = createRelationalOperation(baseLt);
-
- /**
- * Checks if `value` is less than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than or equal to
- * `other`, else `false`.
- * @see _.gte
- * @example
- *
- * _.lte(1, 3);
- * // => true
- *
- * _.lte(3, 3);
- * // => true
- *
- * _.lte(3, 1);
- * // => false
- */
- var lte = createRelationalOperation(function(value, other) {
- return value <= other;
- });
-
- /**
- * Converts `value` to an array.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Array} Returns the converted array.
- * @example
- *
- * _.toArray({ 'a': 1, 'b': 2 });
- * // => [1, 2]
- *
- * _.toArray('abc');
- * // => ['a', 'b', 'c']
- *
- * _.toArray(1);
- * // => []
- *
- * _.toArray(null);
- * // => []
- */
- function toArray(value) {
- if (!value) {
- return [];
- }
- if (isArrayLike(value)) {
- return isString(value) ? stringToArray(value) : copyArray(value);
- }
- if (symIterator && value[symIterator]) {
- return iteratorToArray(value[symIterator]());
- }
- var tag = getTag(value),
- func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
-
- return func(value);
- }
-
- /**
- * Converts `value` to a finite number.
- *
- * @static
- * @memberOf _
- * @since 4.12.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted number.
- * @example
- *
- * _.toFinite(3.2);
- * // => 3.2
- *
- * _.toFinite(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toFinite(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toFinite('3.2');
- * // => 3.2
- */
- function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber(value);
- if (value === INFINITY || value === -INFINITY) {
- var sign = (value < 0 ? -1 : 1);
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
- }
-
- /**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
- function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
-
- return result === result ? (remainder ? result - remainder : result) : 0;
- }
-
- /**
- * Converts `value` to an integer suitable for use as the length of an
- * array-like object.
- *
- * **Note:** This method is based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toLength(3.2);
- * // => 3
- *
- * _.toLength(Number.MIN_VALUE);
- * // => 0
- *
- * _.toLength(Infinity);
- * // => 4294967295
- *
- * _.toLength('3.2');
- * // => 3
- */
- function toLength(value) {
- return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
- }
-
- /**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
- function toNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- if (isObject(value)) {
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
- value = isObject(other) ? (other + '') : other;
- }
- if (typeof value != 'string') {
- return value === 0 ? value : +value;
- }
- value = value.replace(reTrim, '');
- var isBinary = reIsBinary.test(value);
- return (isBinary || reIsOctal.test(value))
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
- : (reIsBadHex.test(value) ? NAN : +value);
- }
-
- /**
- * Converts `value` to a plain object flattening inherited enumerable string
- * keyed properties of `value` to own properties of the plain object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Object} Returns the converted plain object.
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.assign({ 'a': 1 }, new Foo);
- * // => { 'a': 1, 'b': 2 }
- *
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
- * // => { 'a': 1, 'b': 2, 'c': 3 }
- */
- function toPlainObject(value) {
- return copyObject(value, keysIn(value));
- }
-
- /**
- * Converts `value` to a safe integer. A safe integer can be compared and
- * represented correctly.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toSafeInteger(3.2);
- * // => 3
- *
- * _.toSafeInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toSafeInteger(Infinity);
- * // => 9007199254740991
- *
- * _.toSafeInteger('3.2');
- * // => 3
- */
- function toSafeInteger(value) {
- return value
- ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
- : (value === 0 ? value : 0);
- }
-
- /**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
- function toString(value) {
- return value == null ? '' : baseToString(value);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Assigns own enumerable string keyed properties of source objects to the
- * destination object. Source objects are applied from left to right.
- * Subsequent sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object` and is loosely based on
- * [`Object.assign`](https://mdn.io/Object/assign).
- *
- * @static
- * @memberOf _
- * @since 0.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assignIn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * function Bar() {
- * this.c = 3;
- * }
- *
- * Foo.prototype.b = 2;
- * Bar.prototype.d = 4;
- *
- * _.assign({ 'a': 0 }, new Foo, new Bar);
- * // => { 'a': 1, 'c': 3 }
- */
- var assign = createAssigner(function(object, source) {
- if (isPrototype(source) || isArrayLike(source)) {
- copyObject(source, keys(source), object);
- return;
- }
- for (var key in source) {
- if (hasOwnProperty.call(source, key)) {
- assignValue(object, key, source[key]);
- }
- }
- });
-
- /**
- * This method is like `_.assign` except that it iterates over own and
- * inherited source properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extend
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.assign
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * }
- *
- * function Bar() {
- * this.c = 3;
- * }
- *
- * Foo.prototype.b = 2;
- * Bar.prototype.d = 4;
- *
- * _.assignIn({ 'a': 0 }, new Foo, new Bar);
- * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
- */
- var assignIn = createAssigner(function(object, source) {
- copyObject(source, keysIn(source), object);
- });
-
- /**
- * This method is like `_.assignIn` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias extendWith
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignInWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keysIn(source), object, customizer);
- });
-
- /**
- * This method is like `_.assign` except that it accepts `customizer`
- * which is invoked to produce the assigned values. If `customizer` returns
- * `undefined`, assignment is handled by the method instead. The `customizer`
- * is invoked with five arguments: (objValue, srcValue, key, object, source).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @see _.assignInWith
- * @example
- *
- * function customizer(objValue, srcValue) {
- * return _.isUndefined(objValue) ? srcValue : objValue;
- * }
- *
- * var defaults = _.partialRight(_.assignWith, customizer);
- *
- * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
- copyObject(source, keys(source), object, customizer);
- });
-
- /**
- * Creates an array of values corresponding to `paths` of `object`.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Array} Returns the picked values.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _.at(object, ['a[0].b.c', 'a[1]']);
- * // => [3, 4]
- */
- var at = flatRest(baseAt);
-
- /**
- * Creates an object that inherits from the `prototype` object. If a
- * `properties` object is given, its own enumerable string keyed properties
- * are assigned to the created object.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Object
- * @param {Object} prototype The object to inherit from.
- * @param {Object} [properties] The properties to assign to the object.
- * @returns {Object} Returns the new object.
- * @example
- *
- * function Shape() {
- * this.x = 0;
- * this.y = 0;
- * }
- *
- * function Circle() {
- * Shape.call(this);
- * }
- *
- * Circle.prototype = _.create(Shape.prototype, {
- * 'constructor': Circle
- * });
- *
- * var circle = new Circle;
- * circle instanceof Circle;
- * // => true
- *
- * circle instanceof Shape;
- * // => true
- */
- function create(prototype, properties) {
- var result = baseCreate(prototype);
- return properties == null ? result : baseAssign(result, properties);
- }
-
- /**
- * Assigns own and inherited enumerable string keyed properties of source
- * objects to the destination object for all destination properties that
- * resolve to `undefined`. Source objects are applied from left to right.
- * Once a property is set, additional values of the same property are ignored.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaultsDeep
- * @example
- *
- * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
- * // => { 'a': 1, 'b': 2 }
- */
- var defaults = baseRest(function(object, sources) {
- object = Object(object);
-
- var index = -1;
- var length = sources.length;
- var guard = length > 2 ? sources[2] : undefined;
-
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
- length = 1;
- }
-
- while (++index < length) {
- var source = sources[index];
- var props = keysIn(source);
- var propsIndex = -1;
- var propsLength = props.length;
-
- while (++propsIndex < propsLength) {
- var key = props[propsIndex];
- var value = object[key];
-
- if (value === undefined ||
- (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
- object[key] = source[key];
- }
- }
- }
-
- return object;
- });
-
- /**
- * This method is like `_.defaults` except that it recursively assigns
- * default properties.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @see _.defaults
- * @example
- *
- * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
- * // => { 'a': { 'b': 2, 'c': 3 } }
- */
- var defaultsDeep = baseRest(function(args) {
- args.push(undefined, customDefaultsMerge);
- return apply(mergeWith, undefined, args);
- });
-
- /**
- * This method is like `_.find` except that it returns the key of the first
- * element `predicate` returns truthy for instead of the element itself.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findKey(users, function(o) { return o.age < 40; });
- * // => 'barney' (iteration order is not guaranteed)
- *
- * // The `_.matches` iteratee shorthand.
- * _.findKey(users, { 'age': 1, 'active': true });
- * // => 'pebbles'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findKey(users, 'active');
- * // => 'barney'
- */
- function findKey(object, predicate) {
- return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
- }
-
- /**
- * This method is like `_.findKey` except that it iterates over elements of
- * a collection in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {string|undefined} Returns the key of the matched element,
- * else `undefined`.
- * @example
- *
- * var users = {
- * 'barney': { 'age': 36, 'active': true },
- * 'fred': { 'age': 40, 'active': false },
- * 'pebbles': { 'age': 1, 'active': true }
- * };
- *
- * _.findLastKey(users, function(o) { return o.age < 40; });
- * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
- *
- * // The `_.matches` iteratee shorthand.
- * _.findLastKey(users, { 'age': 36, 'active': true });
- * // => 'barney'
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.findLastKey(users, ['active', false]);
- * // => 'fred'
- *
- * // The `_.property` iteratee shorthand.
- * _.findLastKey(users, 'active');
- * // => 'pebbles'
- */
- function findLastKey(object, predicate) {
- return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
- }
-
- /**
- * Iterates over own and inherited enumerable string keyed properties of an
- * object and invokes `iteratee` for each property. The iteratee is invoked
- * with three arguments: (value, key, object). Iteratee functions may exit
- * iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forInRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forIn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
- */
- function forIn(object, iteratee) {
- return object == null
- ? object
- : baseFor(object, getIteratee(iteratee, 3), keysIn);
- }
-
- /**
- * This method is like `_.forIn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forIn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forInRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
- */
- function forInRight(object, iteratee) {
- return object == null
- ? object
- : baseForRight(object, getIteratee(iteratee, 3), keysIn);
- }
-
- /**
- * Iterates over own enumerable string keyed properties of an object and
- * invokes `iteratee` for each property. The iteratee is invoked with three
- * arguments: (value, key, object). Iteratee functions may exit iteration
- * early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 0.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwnRight
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwn(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
- */
- function forOwn(object, iteratee) {
- return object && baseForOwn(object, getIteratee(iteratee, 3));
- }
-
- /**
- * This method is like `_.forOwn` except that it iterates over properties of
- * `object` in the opposite order.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns `object`.
- * @see _.forOwn
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.forOwnRight(new Foo, function(value, key) {
- * console.log(key);
- * });
- * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
- */
- function forOwnRight(object, iteratee) {
- return object && baseForOwnRight(object, getIteratee(iteratee, 3));
- }
-
- /**
- * Creates an array of function property names from own enumerable properties
- * of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functionsIn
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functions(new Foo);
- * // => ['a', 'b']
- */
- function functions(object) {
- return object == null ? [] : baseFunctions(object, keys(object));
- }
-
- /**
- * Creates an array of function property names from own and inherited
- * enumerable properties of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to inspect.
- * @returns {Array} Returns the function names.
- * @see _.functions
- * @example
- *
- * function Foo() {
- * this.a = _.constant('a');
- * this.b = _.constant('b');
- * }
- *
- * Foo.prototype.c = _.constant('c');
- *
- * _.functionsIn(new Foo);
- * // => ['a', 'b', 'c']
- */
- function functionsIn(object) {
- return object == null ? [] : baseFunctions(object, keysIn(object));
- }
-
- /**
- * Gets the value at `path` of `object`. If the resolved value is
- * `undefined`, the `defaultValue` is returned in its place.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.get(object, 'a[0].b.c');
- * // => 3
- *
- * _.get(object, ['a', '0', 'b', 'c']);
- * // => 3
- *
- * _.get(object, 'a.b.c', 'default');
- * // => 'default'
- */
- function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
- }
-
- /**
- * Checks if `path` is a direct property of `object`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = { 'a': { 'b': 2 } };
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.has(object, 'a');
- * // => true
- *
- * _.has(object, 'a.b');
- * // => true
- *
- * _.has(object, ['a', 'b']);
- * // => true
- *
- * _.has(other, 'a');
- * // => false
- */
- function has(object, path) {
- return object != null && hasPath(object, path, baseHas);
- }
-
- /**
- * Checks if `path` is a direct or inherited property of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path to check.
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
- * @example
- *
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
- *
- * _.hasIn(object, 'a');
- * // => true
- *
- * _.hasIn(object, 'a.b');
- * // => true
- *
- * _.hasIn(object, ['a', 'b']);
- * // => true
- *
- * _.hasIn(object, 'b');
- * // => false
- */
- function hasIn(object, path) {
- return object != null && hasPath(object, path, baseHasIn);
- }
-
- /**
- * Creates an object composed of the inverted keys and values of `object`.
- * If `object` contains duplicate values, subsequent values overwrite
- * property assignments of previous values.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Object
- * @param {Object} object The object to invert.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invert(object);
- * // => { '1': 'c', '2': 'b' }
- */
- var invert = createInverter(function(result, value, key) {
- if (value != null &&
- typeof value.toString != 'function') {
- value = nativeObjectToString.call(value);
- }
-
- result[value] = key;
- }, constant(identity));
-
- /**
- * This method is like `_.invert` except that the inverted object is generated
- * from the results of running each element of `object` thru `iteratee`. The
- * corresponding inverted value of each inverted key is an array of keys
- * responsible for generating the inverted value. The iteratee is invoked
- * with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Object
- * @param {Object} object The object to invert.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Object} Returns the new inverted object.
- * @example
- *
- * var object = { 'a': 1, 'b': 2, 'c': 1 };
- *
- * _.invertBy(object);
- * // => { '1': ['a', 'c'], '2': ['b'] }
- *
- * _.invertBy(object, function(value) {
- * return 'group' + value;
- * });
- * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
- */
- var invertBy = createInverter(function(result, value, key) {
- if (value != null &&
- typeof value.toString != 'function') {
- value = nativeObjectToString.call(value);
- }
-
- if (hasOwnProperty.call(result, value)) {
- result[value].push(key);
- } else {
- result[value] = [key];
- }
- }, getIteratee);
-
- /**
- * Invokes the method at `path` of `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {*} Returns the result of the invoked method.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
- *
- * _.invoke(object, 'a[0].b.c.slice', 1, 3);
- * // => [2, 3]
- */
- var invoke = baseRest(baseInvoke);
-
- /**
- * Creates an array of the own enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects. See the
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
- * for more details.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keys(new Foo);
- * // => ['a', 'b'] (iteration order is not guaranteed)
- *
- * _.keys('hi');
- * // => ['0', '1']
- */
- function keys(object) {
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
- }
-
- /**
- * Creates an array of the own and inherited enumerable property names of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property names.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.keysIn(new Foo);
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
- */
- function keysIn(object) {
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
- }
-
- /**
- * The opposite of `_.mapValues`; this method creates an object with the
- * same values as `object` and keys generated by running each own enumerable
- * string keyed property of `object` thru `iteratee`. The iteratee is invoked
- * with three arguments: (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapValues
- * @example
- *
- * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
- * return key + value;
- * });
- * // => { 'a1': 1, 'b2': 2 }
- */
- function mapKeys(object, iteratee) {
- var result = {};
- iteratee = getIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- baseAssignValue(result, iteratee(value, key, object), value);
- });
- return result;
- }
-
- /**
- * Creates an object with the same keys as `object` and values generated
- * by running each own enumerable string keyed property of `object` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapKeys
- * @example
- *
- * var users = {
- * 'fred': { 'user': 'fred', 'age': 40 },
- * 'pebbles': { 'user': 'pebbles', 'age': 1 }
- * };
- *
- * _.mapValues(users, function(o) { return o.age; });
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- *
- * // The `_.property` iteratee shorthand.
- * _.mapValues(users, 'age');
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- */
- function mapValues(object, iteratee) {
- var result = {};
- iteratee = getIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- baseAssignValue(result, key, iteratee(value, key, object));
- });
- return result;
- }
-
- /**
- * This method is like `_.assign` except that it recursively merges own and
- * inherited enumerable string keyed properties of source objects into the
- * destination object. Source properties that resolve to `undefined` are
- * skipped if a destination value exists. Array and plain object properties
- * are merged recursively. Other objects and value types are overridden by
- * assignment. Source objects are applied from left to right. Subsequent
- * sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
- * };
- *
- * var other = {
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
- * };
- *
- * _.merge(object, other);
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
- */
- var merge = createAssigner(function(object, source, srcIndex) {
- baseMerge(object, source, srcIndex);
- });
-
- /**
- * This method is like `_.merge` except that it accepts `customizer` which
- * is invoked to produce the merged values of the destination and source
- * properties. If `customizer` returns `undefined`, merging is handled by the
- * method instead. The `customizer` is invoked with six arguments:
- * (objValue, srcValue, key, object, source, stack).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} customizer The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function customizer(objValue, srcValue) {
- * if (_.isArray(objValue)) {
- * return objValue.concat(srcValue);
- * }
- * }
- *
- * var object = { 'a': [1], 'b': [2] };
- * var other = { 'a': [3], 'b': [4] };
- *
- * _.mergeWith(object, other, customizer);
- * // => { 'a': [1, 3], 'b': [2, 4] }
- */
- var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
- baseMerge(object, source, srcIndex, customizer);
- });
-
- /**
- * The opposite of `_.pick`; this method creates an object composed of the
- * own and inherited enumerable property paths of `object` that are not omitted.
- *
- * **Note:** This method is considerably slower than `_.pick`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [paths] The property paths to omit.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omit(object, ['a', 'c']);
- * // => { 'b': '2' }
- */
- var omit = flatRest(function(object, paths) {
- var result = {};
- if (object == null) {
- return result;
- }
- var isDeep = false;
- paths = arrayMap(paths, function(path) {
- path = castPath(path, object);
- isDeep || (isDeep = path.length > 1);
- return path;
- });
- copyObject(object, getAllKeysIn(object), result);
- if (isDeep) {
- result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
- }
- var length = paths.length;
- while (length--) {
- baseUnset(result, paths[length]);
- }
- return result;
- });
-
- /**
- * The opposite of `_.pickBy`; this method creates an object composed of
- * the own and inherited enumerable string keyed properties of `object` that
- * `predicate` doesn't return truthy for. The predicate is invoked with two
- * arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Function} [predicate=_.identity] The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omitBy(object, _.isNumber);
- * // => { 'b': '2' }
- */
- function omitBy(object, predicate) {
- return pickBy(object, negate(getIteratee(predicate)));
- }
-
- /**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
- var pick = flatRest(function(object, paths) {
- return object == null ? {} : basePick(object, paths);
- });
-
- /**
- * Creates an object composed of the `object` properties `predicate` returns
- * truthy for. The predicate is invoked with two arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Function} [predicate=_.identity] The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pickBy(object, _.isNumber);
- * // => { 'a': 1, 'c': 3 }
- */
- function pickBy(object, predicate) {
- if (object == null) {
- return {};
- }
- var props = arrayMap(getAllKeysIn(object), function(prop) {
- return [prop];
- });
- predicate = getIteratee(predicate);
- return basePickBy(object, props, function(value, path) {
- return predicate(value, path[0]);
- });
- }
-
- /**
- * This method is like `_.get` except that if the resolved value is a
- * function it's invoked with the `this` binding of its parent object and
- * its result is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
- *
- * _.result(object, 'a[0].b.c1');
- * // => 3
- *
- * _.result(object, 'a[0].b.c2');
- * // => 4
- *
- * _.result(object, 'a[0].b.c3', 'default');
- * // => 'default'
- *
- * _.result(object, 'a[0].b.c3', _.constant('default'));
- * // => 'default'
- */
- function result(object, path, defaultValue) {
- path = castPath(path, object);
-
- var index = -1,
- length = path.length;
-
- // Ensure the loop is entered when path is empty.
- if (!length) {
- length = 1;
- object = undefined;
- }
- while (++index < length) {
- var value = object == null ? undefined : object[toKey(path[index])];
- if (value === undefined) {
- index = length;
- value = defaultValue;
- }
- object = isFunction(value) ? value.call(object) : value;
- }
- return object;
- }
-
- /**
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
- * it's created. Arrays are created for missing index properties while objects
- * are created for all other missing properties. Use `_.setWith` to customize
- * `path` creation.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.set(object, 'a[0].b.c', 4);
- * console.log(object.a[0].b.c);
- * // => 4
- *
- * _.set(object, ['x', '0', 'y', 'z'], 5);
- * console.log(object.x[0].y.z);
- * // => 5
- */
- function set(object, path, value) {
- return object == null ? object : baseSet(object, path, value);
- }
-
- /**
- * This method is like `_.set` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.setWith(object, '[0][1]', 'a', Object);
- * // => { '0': { '1': 'a' } }
- */
- function setWith(object, path, value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseSet(object, path, value, customizer);
- }
-
- /**
- * Creates an array of own enumerable string keyed-value pairs for `object`
- * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
- * entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entries
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairs(new Foo);
- * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
- */
- var toPairs = createToPairs(keys);
-
- /**
- * Creates an array of own and inherited enumerable string keyed-value pairs
- * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
- * or set, its entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entriesIn
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairsIn(new Foo);
- * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
- */
- var toPairsIn = createToPairs(keysIn);
-
- /**
- * An alternative to `_.reduce`; this method transforms `object` to a new
- * `accumulator` object which is the result of running each of its own
- * enumerable string keyed properties thru `iteratee`, with each invocation
- * potentially mutating the `accumulator` object. If `accumulator` is not
- * provided, a new object with the same `[[Prototype]]` will be used. The
- * iteratee is invoked with four arguments: (accumulator, value, key, object).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The custom accumulator value.
- * @returns {*} Returns the accumulated value.
- * @example
- *
- * _.transform([2, 3, 4], function(result, n) {
- * result.push(n *= n);
- * return n % 2 == 0;
- * }, []);
- * // => [4, 9]
- *
- * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] }
- */
- function transform(object, iteratee, accumulator) {
- var isArr = isArray(object),
- isArrLike = isArr || isBuffer(object) || isTypedArray(object);
-
- iteratee = getIteratee(iteratee, 4);
- if (accumulator == null) {
- var Ctor = object && object.constructor;
- if (isArrLike) {
- accumulator = isArr ? new Ctor : [];
- }
- else if (isObject(object)) {
- accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
- }
- else {
- accumulator = {};
- }
- }
- (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
- return iteratee(accumulator, value, index, object);
- });
- return accumulator;
- }
-
- /**
- * Removes the property at `path` of `object`.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 7 } }] };
- * _.unset(object, 'a[0].b.c');
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- *
- * _.unset(object, ['a', '0', 'b', 'c']);
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- */
- function unset(object, path) {
- return object == null ? true : baseUnset(object, path);
- }
-
- /**
- * This method is like `_.set` except that accepts `updater` to produce the
- * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
- * is invoked with one argument: (value).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.update(object, 'a[0].b.c', function(n) { return n * n; });
- * console.log(object.a[0].b.c);
- * // => 9
- *
- * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
- * console.log(object.x[0].y.z);
- * // => 0
- */
- function update(object, path, updater) {
- return object == null ? object : baseUpdate(object, path, castFunction(updater));
- }
-
- /**
- * This method is like `_.update` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.updateWith(object, '[0][1]', _.constant('a'), Object);
- * // => { '0': { '1': 'a' } }
- */
- function updateWith(object, path, updater, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
- }
-
- /**
- * Creates an array of the own enumerable string keyed property values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.values(new Foo);
- * // => [1, 2] (iteration order is not guaranteed)
- *
- * _.values('hi');
- * // => ['h', 'i']
- */
- function values(object) {
- return object == null ? [] : baseValues(object, keys(object));
- }
-
- /**
- * Creates an array of the own and inherited enumerable string keyed property
- * values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.valuesIn(new Foo);
- * // => [1, 2, 3] (iteration order is not guaranteed)
- */
- function valuesIn(object) {
- return object == null ? [] : baseValues(object, keysIn(object));
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Clamps `number` within the inclusive `lower` and `upper` bounds.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Number
- * @param {number} number The number to clamp.
- * @param {number} [lower] The lower bound.
- * @param {number} upper The upper bound.
- * @returns {number} Returns the clamped number.
- * @example
- *
- * _.clamp(-10, -5, 5);
- * // => -5
- *
- * _.clamp(10, -5, 5);
- * // => 5
- */
- function clamp(number, lower, upper) {
- if (upper === undefined) {
- upper = lower;
- lower = undefined;
- }
- if (upper !== undefined) {
- upper = toNumber(upper);
- upper = upper === upper ? upper : 0;
- }
- if (lower !== undefined) {
- lower = toNumber(lower);
- lower = lower === lower ? lower : 0;
- }
- return baseClamp(toNumber(number), lower, upper);
- }
-
- /**
- * Checks if `n` is between `start` and up to, but not including, `end`. If
- * `end` is not specified, it's set to `start` with `start` then set to `0`.
- * If `start` is greater than `end` the params are swapped to support
- * negative ranges.
- *
- * @static
- * @memberOf _
- * @since 3.3.0
- * @category Number
- * @param {number} number The number to check.
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
- * @see _.range, _.rangeRight
- * @example
- *
- * _.inRange(3, 2, 4);
- * // => true
- *
- * _.inRange(4, 8);
- * // => true
- *
- * _.inRange(4, 2);
- * // => false
- *
- * _.inRange(2, 2);
- * // => false
- *
- * _.inRange(1.2, 2);
- * // => true
- *
- * _.inRange(5.2, 4);
- * // => false
- *
- * _.inRange(-3, -2, -6);
- * // => true
- */
- function inRange(number, start, end) {
- start = toFinite(start);
- if (end === undefined) {
- end = start;
- start = 0;
- } else {
- end = toFinite(end);
- }
- number = toNumber(number);
- return baseInRange(number, start, end);
- }
-
- /**
- * Produces a random number between the inclusive `lower` and `upper` bounds.
- * If only one argument is provided a number between `0` and the given number
- * is returned. If `floating` is `true`, or either `lower` or `upper` are
- * floats, a floating-point number is returned instead of an integer.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Number
- * @param {number} [lower=0] The lower bound.
- * @param {number} [upper=1] The upper bound.
- * @param {boolean} [floating] Specify returning a floating-point number.
- * @returns {number} Returns the random number.
- * @example
- *
- * _.random(0, 5);
- * // => an integer between 0 and 5
- *
- * _.random(5);
- * // => also an integer between 0 and 5
- *
- * _.random(5, true);
- * // => a floating-point number between 0 and 5
- *
- * _.random(1.2, 5.2);
- * // => a floating-point number between 1.2 and 5.2
- */
- function random(lower, upper, floating) {
- if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
- upper = floating = undefined;
- }
- if (floating === undefined) {
- if (typeof upper == 'boolean') {
- floating = upper;
- upper = undefined;
- }
- else if (typeof lower == 'boolean') {
- floating = lower;
- lower = undefined;
- }
- }
- if (lower === undefined && upper === undefined) {
- lower = 0;
- upper = 1;
- }
- else {
- lower = toFinite(lower);
- if (upper === undefined) {
- upper = lower;
- lower = 0;
- } else {
- upper = toFinite(upper);
- }
- }
- if (lower > upper) {
- var temp = lower;
- lower = upper;
- upper = temp;
- }
- if (floating || lower % 1 || upper % 1) {
- var rand = nativeRandom();
- return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
- }
- return baseRandom(lower, upper);
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the camel cased string.
- * @example
- *
- * _.camelCase('Foo Bar');
- * // => 'fooBar'
- *
- * _.camelCase('--foo-bar--');
- * // => 'fooBar'
- *
- * _.camelCase('__FOO_BAR__');
- * // => 'fooBar'
- */
- var camelCase = createCompounder(function(result, word, index) {
- word = word.toLowerCase();
- return result + (index ? capitalize(word) : word);
- });
-
- /**
- * Converts the first character of `string` to upper case and the remaining
- * to lower case.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to capitalize.
- * @returns {string} Returns the capitalized string.
- * @example
- *
- * _.capitalize('FRED');
- * // => 'Fred'
- */
- function capitalize(string) {
- return upperFirst(toString(string).toLowerCase());
- }
-
- /**
- * Deburrs `string` by converting
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
- * letters to basic Latin letters and removing
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to deburr.
- * @returns {string} Returns the deburred string.
- * @example
- *
- * _.deburr('déjà vu');
- * // => 'deja vu'
- */
- function deburr(string) {
- string = toString(string);
- return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
- }
-
- /**
- * Checks if `string` ends with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {string} [target] The string to search for.
- * @param {number} [position=string.length] The position to search up to.
- * @returns {boolean} Returns `true` if `string` ends with `target`,
- * else `false`.
- * @example
- *
- * _.endsWith('abc', 'c');
- * // => true
- *
- * _.endsWith('abc', 'b');
- * // => false
- *
- * _.endsWith('abc', 'b', 2);
- * // => true
- */
- function endsWith(string, target, position) {
- string = toString(string);
- target = baseToString(target);
-
- var length = string.length;
- position = position === undefined
- ? length
- : baseClamp(toInteger(position), 0, length);
-
- var end = position;
- position -= target.length;
- return position >= 0 && string.slice(position, end) == target;
- }
-
- /**
- * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
- * corresponding HTML entities.
- *
- * **Note:** No other characters are escaped. To escape additional
- * characters use a third-party library like [_he_](https://mths.be/he).
- *
- * Though the ">" character is escaped for symmetry, characters like
- * ">" and "/" don't need escaping in HTML and have no special meaning
- * unless they're part of a tag or unquoted attribute value. See
- * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
- * (under "semi-related fun fact") for more details.
- *
- * When working with HTML you should always
- * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
- * XSS vectors.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escape('fred, barney, & pebbles');
- * // => 'fred, barney, &amp; pebbles'
- */
- function escape(string) {
- string = toString(string);
- return (string && reHasUnescapedHtml.test(string))
- ? string.replace(reUnescapedHtml, escapeHtmlChar)
- : string;
- }
-
- /**
- * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
- * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to escape.
- * @returns {string} Returns the escaped string.
- * @example
- *
- * _.escapeRegExp('[lodash](https://lodash.com/)');
- * // => '\[lodash\]\(https://lodash\.com/\)'
- */
- function escapeRegExp(string) {
- string = toString(string);
- return (string && reHasRegExpChar.test(string))
- ? string.replace(reRegExpChar, '\\$&')
- : string;
- }
-
- /**
- * Converts `string` to
- * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the kebab cased string.
- * @example
- *
- * _.kebabCase('Foo Bar');
- * // => 'foo-bar'
- *
- * _.kebabCase('fooBar');
- * // => 'foo-bar'
- *
- * _.kebabCase('__FOO_BAR__');
- * // => 'foo-bar'
- */
- var kebabCase = createCompounder(function(result, word, index) {
- return result + (index ? '-' : '') + word.toLowerCase();
- });
-
- /**
- * Converts `string`, as space separated words, to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.lowerCase('--Foo-Bar--');
- * // => 'foo bar'
- *
- * _.lowerCase('fooBar');
- * // => 'foo bar'
- *
- * _.lowerCase('__FOO_BAR__');
- * // => 'foo bar'
- */
- var lowerCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toLowerCase();
- });
-
- /**
- * Converts the first character of `string` to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.lowerFirst('Fred');
- * // => 'fred'
- *
- * _.lowerFirst('FRED');
- * // => 'fRED'
- */
- var lowerFirst = createCaseFirst('toLowerCase');
-
- /**
- * Pads `string` on the left and right sides if it's shorter than `length`.
- * Padding characters are truncated if they can't be evenly divided by `length`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.pad('abc', 8);
- * // => ' abc '
- *
- * _.pad('abc', 8, '_-');
- * // => '_-abc_-_'
- *
- * _.pad('abc', 3);
- * // => 'abc'
- */
- function pad(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- if (!length || strLength >= length) {
- return string;
- }
- var mid = (length - strLength) / 2;
- return (
- createPadding(nativeFloor(mid), chars) +
- string +
- createPadding(nativeCeil(mid), chars)
- );
- }
-
- /**
- * Pads `string` on the right side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padEnd('abc', 6);
- * // => 'abc '
- *
- * _.padEnd('abc', 6, '_-');
- * // => 'abc_-_'
- *
- * _.padEnd('abc', 3);
- * // => 'abc'
- */
- function padEnd(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (string + createPadding(length - strLength, chars))
- : string;
- }
-
- /**
- * Pads `string` on the left side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padStart('abc', 6);
- * // => ' abc'
- *
- * _.padStart('abc', 6, '_-');
- * // => '_-_abc'
- *
- * _.padStart('abc', 3);
- * // => 'abc'
- */
- function padStart(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (createPadding(length - strLength, chars) + string)
- : string;
- }
-
- /**
- * Converts `string` to an integer of the specified radix. If `radix` is
- * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
- * hexadecimal, in which case a `radix` of `16` is used.
- *
- * **Note:** This method aligns with the
- * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category String
- * @param {string} string The string to convert.
- * @param {number} [radix=10] The radix to interpret `value` by.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.parseInt('08');
- * // => 8
- *
- * _.map(['6', '08', '10'], _.parseInt);
- * // => [6, 8, 10]
- */
- function parseInt(string, radix, guard) {
- if (guard || radix == null) {
- radix = 0;
- } else if (radix) {
- radix = +radix;
- }
- return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
- }
-
- /**
- * Repeats the given string `n` times.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to repeat.
- * @param {number} [n=1] The number of times to repeat the string.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the repeated string.
- * @example
- *
- * _.repeat('*', 3);
- * // => '***'
- *
- * _.repeat('abc', 2);
- * // => 'abcabc'
- *
- * _.repeat('abc', 0);
- * // => ''
- */
- function repeat(string, n, guard) {
- if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = toInteger(n);
- }
- return baseRepeat(toString(string), n);
- }
-
- /**
- * Replaces matches for `pattern` in `string` with `replacement`.
- *
- * **Note:** This method is based on
- * [`String#replace`](https://mdn.io/String/replace).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to modify.
- * @param {RegExp|string} pattern The pattern to replace.
- * @param {Function|string} replacement The match replacement.
- * @returns {string} Returns the modified string.
- * @example
- *
- * _.replace('Hi Fred', 'Fred', 'Barney');
- * // => 'Hi Barney'
- */
- function replace() {
- var args = arguments,
- string = toString(args[0]);
-
- return args.length < 3 ? string : string.replace(args[1], args[2]);
- }
-
- /**
- * Converts `string` to
- * [snake case](https://en.wikipedia.org/wiki/Snake_case).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the snake cased string.
- * @example
- *
- * _.snakeCase('Foo Bar');
- * // => 'foo_bar'
- *
- * _.snakeCase('fooBar');
- * // => 'foo_bar'
- *
- * _.snakeCase('--FOO-BAR--');
- * // => 'foo_bar'
- */
- var snakeCase = createCompounder(function(result, word, index) {
- return result + (index ? '_' : '') + word.toLowerCase();
- });
-
- /**
- * Splits `string` by `separator`.
- *
- * **Note:** This method is based on
- * [`String#split`](https://mdn.io/String/split).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to split.
- * @param {RegExp|string} separator The separator pattern to split by.
- * @param {number} [limit] The length to truncate results to.
- * @returns {Array} Returns the string segments.
- * @example
- *
- * _.split('a-b-c', '-', 2);
- * // => ['a', 'b']
- */
- function split(string, separator, limit) {
- if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
- separator = limit = undefined;
- }
- limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
- if (!limit) {
- return [];
- }
- string = toString(string);
- if (string && (
- typeof separator == 'string' ||
- (separator != null && !isRegExp(separator))
- )) {
- separator = baseToString(separator);
- if (!separator && hasUnicode(string)) {
- return castSlice(stringToArray(string), 0, limit);
- }
- }
- return string.split(separator, limit);
- }
-
- /**
- * Converts `string` to
- * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
- *
- * @static
- * @memberOf _
- * @since 3.1.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the start cased string.
- * @example
- *
- * _.startCase('--foo-bar--');
- * // => 'Foo Bar'
- *
- * _.startCase('fooBar');
- * // => 'Foo Bar'
- *
- * _.startCase('__FOO_BAR__');
- * // => 'FOO BAR'
- */
- var startCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + upperFirst(word);
- });
-
- /**
- * Checks if `string` starts with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {string} [target] The string to search for.
- * @param {number} [position=0] The position to search from.
- * @returns {boolean} Returns `true` if `string` starts with `target`,
- * else `false`.
- * @example
- *
- * _.startsWith('abc', 'a');
- * // => true
- *
- * _.startsWith('abc', 'b');
- * // => false
- *
- * _.startsWith('abc', 'b', 1);
- * // => true
- */
- function startsWith(string, target, position) {
- string = toString(string);
- position = position == null
- ? 0
- : baseClamp(toInteger(position), 0, string.length);
-
- target = baseToString(target);
- return string.slice(position, position + target.length) == target;
- }
-
- /**
- * Creates a compiled template function that can interpolate data properties
- * in "interpolate" delimiters, HTML-escape interpolated data properties in
- * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
- * properties may be accessed as free variables in the template. If a setting
- * object is given, it takes precedence over `_.templateSettings` values.
- *
- * **Note:** In the development build `_.template` utilizes
- * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
- * for easier debugging.
- *
- * For more information on precompiling templates see
- * [lodash's custom builds documentation](https://lodash.com/custom-builds).
- *
- * For more information on Chrome extension sandboxes see
- * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The template string.
- * @param {Object} [options={}] The options object.
- * @param {RegExp} [options.escape=_.templateSettings.escape]
- * The HTML "escape" delimiter.
- * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
- * The "evaluate" delimiter.
- * @param {Object} [options.imports=_.templateSettings.imports]
- * An object to import into the template as free variables.
- * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
- * The "interpolate" delimiter.
- * @param {string} [options.sourceURL='lodash.templateSources[n]']
- * The sourceURL of the compiled template.
- * @param {string} [options.variable='obj']
- * The data object variable name.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the compiled template function.
- * @example
- *
- * // Use the "interpolate" delimiter to create a compiled template.
- * var compiled = _.template('hello <%= user %>!');
- * compiled({ 'user': 'fred' });
- * // => 'hello fred!'
- *
- * // Use the HTML "escape" delimiter to escape data property values.
- * var compiled = _.template('<b><%- value %></b>');
- * compiled({ 'value': '<script>' });
- * // => '<b>&lt;script&gt;</b>'
- *
- * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
- * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the internal `print` function in "evaluate" delimiters.
- * var compiled = _.template('<% print("hello " + user); %>!');
- * compiled({ 'user': 'barney' });
- * // => 'hello barney!'
- *
- * // Use the ES template literal delimiter as an "interpolate" delimiter.
- * // Disable support by replacing the "interpolate" delimiter.
- * var compiled = _.template('hello ${ user }!');
- * compiled({ 'user': 'pebbles' });
- * // => 'hello pebbles!'
- *
- * // Use backslashes to treat delimiters as plain text.
- * var compiled = _.template('<%= "\\<%- value %\\>" %>');
- * compiled({ 'value': 'ignored' });
- * // => '<%- value %>'
- *
- * // Use the `imports` option to import `jQuery` as `jq`.
- * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
- * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the `sourceURL` option to specify a custom sourceURL for the template.
- * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
- * compiled(data);
- * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
- *
- * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
- * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
- * compiled.source;
- * // => function(data) {
- * // var __t, __p = '';
- * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
- * // return __p;
- * // }
- *
- * // Use custom template delimiters.
- * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
- * var compiled = _.template('hello {{ user }}!');
- * compiled({ 'user': 'mustache' });
- * // => 'hello mustache!'
- *
- * // Use the `source` property to inline compiled templates for meaningful
- * // line numbers in error messages and stack traces.
- * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
- * var JST = {\
- * "main": ' + _.template(mainText).source + '\
- * };\
- * ');
- */
- function template(string, options, guard) {
- // Based on John Resig's `tmpl` implementation
- // (http://ejohn.org/blog/javascript-micro-templating/)
- // and Laura Doktorova's doT.js (https://github.com/olado/doT).
- var settings = lodash.templateSettings;
-
- if (guard && isIterateeCall(string, options, guard)) {
- options = undefined;
- }
- string = toString(string);
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
-
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
- importsKeys = keys(imports),
- importsValues = baseValues(imports, importsKeys);
-
- var isEscaping,
- isEvaluating,
- index = 0,
- interpolate = options.interpolate || reNoMatch,
- source = "__p += '";
-
- // Compile the regexp to match each delimiter.
- var reDelimiters = RegExp(
- (options.escape || reNoMatch).source + '|' +
- interpolate.source + '|' +
- (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
- (options.evaluate || reNoMatch).source + '|$'
- , 'g');
-
- // Use a sourceURL for easier debugging.
- // The sourceURL gets injected into the source that's eval-ed, so be careful
- // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
- // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
- var sourceURL = '//# sourceURL=' +
- (hasOwnProperty.call(options, 'sourceURL')
- ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
- : ('lodash.templateSources[' + (++templateCounter) + ']')
- ) + '\n';
-
- string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
- interpolateValue || (interpolateValue = esTemplateValue);
-
- // Escape characters that can't be included in string literals.
- source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
-
- // Replace delimiters with snippets.
- if (escapeValue) {
- isEscaping = true;
- source += "' +\n__e(" + escapeValue + ") +\n'";
- }
- if (evaluateValue) {
- isEvaluating = true;
- source += "';\n" + evaluateValue + ";\n__p += '";
- }
- if (interpolateValue) {
- source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
- }
- index = offset + match.length;
-
- // The JS engine embedded in Adobe products needs `match` returned in
- // order to produce the correct `offset` value.
- return match;
- });
-
- source += "';\n";
-
- // If `variable` is not specified wrap a with-statement around the generated
- // code to add the data object to the top of the scope chain.
- // Like with sourceURL, we take care to not check the option's prototype,
- // as this configuration is a code injection vector.
- var variable = hasOwnProperty.call(options, 'variable') && options.variable;
- if (!variable) {
- source = 'with (obj) {\n' + source + '\n}\n';
- }
- // Cleanup code by stripping empty strings.
- source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
- .replace(reEmptyStringMiddle, '$1')
- .replace(reEmptyStringTrailing, '$1;');
-
- // Frame code as the function body.
- source = 'function(' + (variable || 'obj') + ') {\n' +
- (variable
- ? ''
- : 'obj || (obj = {});\n'
- ) +
- "var __t, __p = ''" +
- (isEscaping
- ? ', __e = _.escape'
- : ''
- ) +
- (isEvaluating
- ? ', __j = Array.prototype.join;\n' +
- "function print() { __p += __j.call(arguments, '') }\n"
- : ';\n'
- ) +
- source +
- 'return __p\n}';
-
- var result = attempt(function() {
- return Function(importsKeys, sourceURL + 'return ' + source)
- .apply(undefined, importsValues);
- });
-
- // Provide the compiled function's source by its `toString` method or
- // the `source` property as a convenience for inlining compiled templates.
- result.source = source;
- if (isError(result)) {
- throw result;
- }
- return result;
- }
-
- /**
- * Converts `string`, as a whole, to lower case just like
- * [String#toLowerCase](https://mdn.io/toLowerCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.toLower('--Foo-Bar--');
- * // => '--foo-bar--'
- *
- * _.toLower('fooBar');
- * // => 'foobar'
- *
- * _.toLower('__FOO_BAR__');
- * // => '__foo_bar__'
- */
- function toLower(value) {
- return toString(value).toLowerCase();
- }
-
- /**
- * Converts `string`, as a whole, to upper case just like
- * [String#toUpperCase](https://mdn.io/toUpperCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.toUpper('--foo-bar--');
- * // => '--FOO-BAR--'
- *
- * _.toUpper('fooBar');
- * // => 'FOOBAR'
- *
- * _.toUpper('__foo_bar__');
- * // => '__FOO_BAR__'
- */
- function toUpper(value) {
- return toString(value).toUpperCase();
- }
-
- /**
- * Removes leading and trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trim(' abc ');
- * // => 'abc'
- *
- * _.trim('-_-abc-_-', '_-');
- * // => 'abc'
- *
- * _.map([' foo ', ' bar '], _.trim);
- * // => ['foo', 'bar']
- */
- function trim(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrim, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- chrSymbols = stringToArray(chars),
- start = charsStartIndex(strSymbols, chrSymbols),
- end = charsEndIndex(strSymbols, chrSymbols) + 1;
-
- return castSlice(strSymbols, start, end).join('');
- }
-
- /**
- * Removes trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimEnd(' abc ');
- * // => ' abc'
- *
- * _.trimEnd('-_-abc-_-', '_-');
- * // => '-_-abc'
- */
- function trimEnd(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimEnd, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
-
- return castSlice(strSymbols, 0, end).join('');
- }
-
- /**
- * Removes leading whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimStart(' abc ');
- * // => 'abc '
- *
- * _.trimStart('-_-abc-_-', '_-');
- * // => 'abc-_-'
- */
- function trimStart(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimStart, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- start = charsStartIndex(strSymbols, stringToArray(chars));
-
- return castSlice(strSymbols, start).join('');
- }
-
- /**
- * Truncates `string` if it's longer than the given maximum string length.
- * The last characters of the truncated string are replaced with the omission
- * string which defaults to "...".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to truncate.
- * @param {Object} [options={}] The options object.
- * @param {number} [options.length=30] The maximum string length.
- * @param {string} [options.omission='...'] The string to indicate text is omitted.
- * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
- * @returns {string} Returns the truncated string.
- * @example
- *
- * _.truncate('hi-diddly-ho there, neighborino');
- * // => 'hi-diddly-ho there, neighbo...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': ' '
- * });
- * // => 'hi-diddly-ho there,...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': /,? +/
- * });
- * // => 'hi-diddly-ho there...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'omission': ' [...]'
- * });
- * // => 'hi-diddly-ho there, neig [...]'
- */
- function truncate(string, options) {
- var length = DEFAULT_TRUNC_LENGTH,
- omission = DEFAULT_TRUNC_OMISSION;
-
- if (isObject(options)) {
- var separator = 'separator' in options ? options.separator : separator;
- length = 'length' in options ? toInteger(options.length) : length;
- omission = 'omission' in options ? baseToString(options.omission) : omission;
- }
- string = toString(string);
-
- var strLength = string.length;
- if (hasUnicode(string)) {
- var strSymbols = stringToArray(string);
- strLength = strSymbols.length;
- }
- if (length >= strLength) {
- return string;
- }
- var end = length - stringSize(omission);
- if (end < 1) {
- return omission;
- }
- var result = strSymbols
- ? castSlice(strSymbols, 0, end).join('')
- : string.slice(0, end);
-
- if (separator === undefined) {
- return result + omission;
- }
- if (strSymbols) {
- end += (result.length - end);
- }
- if (isRegExp(separator)) {
- if (string.slice(end).search(separator)) {
- var match,
- substring = result;
-
- if (!separator.global) {
- separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
- }
- separator.lastIndex = 0;
- while ((match = separator.exec(substring))) {
- var newEnd = match.index;
- }
- result = result.slice(0, newEnd === undefined ? end : newEnd);
- }
- } else if (string.indexOf(baseToString(separator), end) != end) {
- var index = result.lastIndexOf(separator);
- if (index > -1) {
- result = result.slice(0, index);
- }
- }
- return result + omission;
- }
-
- /**
- * The inverse of `_.escape`; this method converts the HTML entities
- * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
- * their corresponding characters.
- *
- * **Note:** No other HTML entities are unescaped. To unescape additional
- * HTML entities use a third-party library like [_he_](https://mths.be/he).
- *
- * @static
- * @memberOf _
- * @since 0.6.0
- * @category String
- * @param {string} [string=''] The string to unescape.
- * @returns {string} Returns the unescaped string.
- * @example
- *
- * _.unescape('fred, barney, &amp; pebbles');
- * // => 'fred, barney, & pebbles'
- */
- function unescape(string) {
- string = toString(string);
- return (string && reHasEscapedHtml.test(string))
- ? string.replace(reEscapedHtml, unescapeHtmlChar)
- : string;
- }
-
- /**
- * Converts `string`, as space separated words, to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.upperCase('--foo-bar');
- * // => 'FOO BAR'
- *
- * _.upperCase('fooBar');
- * // => 'FOO BAR'
- *
- * _.upperCase('__foo_bar__');
- * // => 'FOO BAR'
- */
- var upperCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toUpperCase();
- });
-
- /**
- * Converts the first character of `string` to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.upperFirst('fred');
- * // => 'Fred'
- *
- * _.upperFirst('FRED');
- * // => 'FRED'
- */
- var upperFirst = createCaseFirst('toUpperCase');
-
- /**
- * Splits `string` into an array of its words.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {RegExp|string} [pattern] The pattern to match words.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the words of `string`.
- * @example
- *
- * _.words('fred, barney, & pebbles');
- * // => ['fred', 'barney', 'pebbles']
- *
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
- * // => ['fred', 'barney', '&', 'pebbles']
- */
- function words(string, pattern, guard) {
- string = toString(string);
- pattern = guard ? undefined : pattern;
-
- if (pattern === undefined) {
- return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
- }
- return string.match(pattern) || [];
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Attempts to invoke `func`, returning either the result or the caught error
- * object. Any additional arguments are provided to `func` when it's invoked.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Function} func The function to attempt.
- * @param {...*} [args] The arguments to invoke `func` with.
- * @returns {*} Returns the `func` result or error object.
- * @example
- *
- * // Avoid throwing errors for invalid selectors.
- * var elements = _.attempt(function(selector) {
- * return document.querySelectorAll(selector);
- * }, '>_>');
- *
- * if (_.isError(elements)) {
- * elements = [];
- * }
- */
- var attempt = baseRest(function(func, args) {
- try {
- return apply(func, undefined, args);
- } catch (e) {
- return isError(e) ? e : new Error(e);
- }
- });
-
- /**
- * Binds methods of an object to the object itself, overwriting the existing
- * method.
- *
- * **Note:** This method doesn't set the "length" property of bound functions.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Object} object The object to bind and assign the bound methods to.
- * @param {...(string|string[])} methodNames The object method names to bind.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var view = {
- * 'label': 'docs',
- * 'click': function() {
- * console.log('clicked ' + this.label);
- * }
- * };
- *
- * _.bindAll(view, ['click']);
- * jQuery(element).on('click', view.click);
- * // => Logs 'clicked docs' when clicked.
- */
- var bindAll = flatRest(function(object, methodNames) {
- arrayEach(methodNames, function(key) {
- key = toKey(key);
- baseAssignValue(object, key, bind(object[key], object));
- });
- return object;
- });
-
- /**
- * Creates a function that iterates over `pairs` and invokes the corresponding
- * function of the first predicate to return truthy. The predicate-function
- * pairs are invoked with the `this` binding and arguments of the created
- * function.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Array} pairs The predicate-function pairs.
- * @returns {Function} Returns the new composite function.
- * @example
- *
- * var func = _.cond([
- * [_.matches({ 'a': 1 }), _.constant('matches A')],
- * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
- * [_.stubTrue, _.constant('no match')]
- * ]);
- *
- * func({ 'a': 1, 'b': 2 });
- * // => 'matches A'
- *
- * func({ 'a': 0, 'b': 1 });
- * // => 'matches B'
- *
- * func({ 'a': '1', 'b': '2' });
- * // => 'no match'
- */
- function cond(pairs) {
- var length = pairs == null ? 0 : pairs.length,
- toIteratee = getIteratee();
-
- pairs = !length ? [] : arrayMap(pairs, function(pair) {
- if (typeof pair[1] != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return [toIteratee(pair[0]), pair[1]];
- });
-
- return baseRest(function(args) {
- var index = -1;
- while (++index < length) {
- var pair = pairs[index];
- if (apply(pair[0], this, args)) {
- return apply(pair[1], this, args);
- }
- }
- });
- }
-
- /**
- * Creates a function that invokes the predicate properties of `source` with
- * the corresponding property values of a given object, returning `true` if
- * all predicates return truthy, else `false`.
- *
- * **Note:** The created function is equivalent to `_.conformsTo` with
- * `source` partially applied.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {Object} source The object of property predicates to conform to.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var objects = [
- * { 'a': 2, 'b': 1 },
- * { 'a': 1, 'b': 2 }
- * ];
- *
- * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
- * // => [{ 'a': 1, 'b': 2 }]
- */
- function conforms(source) {
- return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
- }
-
- /**
- * Creates a function that returns `value`.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {*} value The value to return from the new function.
- * @returns {Function} Returns the new constant function.
- * @example
- *
- * var objects = _.times(2, _.constant({ 'a': 1 }));
- *
- * console.log(objects);
- * // => [{ 'a': 1 }, { 'a': 1 }]
- *
- * console.log(objects[0] === objects[1]);
- * // => true
- */
- function constant(value) {
- return function() {
- return value;
- };
- }
-
- /**
- * Checks `value` to determine whether a default value should be returned in
- * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
- * or `undefined`.
- *
- * @static
- * @memberOf _
- * @since 4.14.0
- * @category Util
- * @param {*} value The value to check.
- * @param {*} defaultValue The default value.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * _.defaultTo(1, 10);
- * // => 1
- *
- * _.defaultTo(undefined, 10);
- * // => 10
- */
- function defaultTo(value, defaultValue) {
- return (value == null || value !== value) ? defaultValue : value;
- }
-
- /**
- * Creates a function that returns the result of invoking the given functions
- * with the `this` binding of the created function, where each successive
- * invocation is supplied the return value of the previous.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {...(Function|Function[])} [funcs] The functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flowRight
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flow([_.add, square]);
- * addSquare(1, 2);
- * // => 9
- */
- var flow = createFlow();
-
- /**
- * This method is like `_.flow` except that it creates a function that
- * invokes the given functions from right to left.
- *
- * @static
- * @since 3.0.0
- * @memberOf _
- * @category Util
- * @param {...(Function|Function[])} [funcs] The functions to invoke.
- * @returns {Function} Returns the new composite function.
- * @see _.flow
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var addSquare = _.flowRight([square, _.add]);
- * addSquare(1, 2);
- * // => 9
- */
- var flowRight = createFlow(true);
-
- /**
- * This method returns the first argument it receives.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {*} value Any value.
- * @returns {*} Returns `value`.
- * @example
- *
- * var object = { 'a': 1 };
- *
- * console.log(_.identity(object) === object);
- * // => true
- */
- function identity(value) {
- return value;
- }
-
- /**
- * Creates a function that invokes `func` with the arguments of the created
- * function. If `func` is a property name, the created function returns the
- * property value for a given element. If `func` is an array or object, the
- * created function returns `true` for elements that contain the equivalent
- * source properties, otherwise it returns `false`.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Util
- * @param {*} [func=_.identity] The value to convert to a callback.
- * @returns {Function} Returns the callback.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': true },
- * { 'user': 'fred', 'age': 40, 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
- * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.filter(users, _.iteratee(['user', 'fred']));
- * // => [{ 'user': 'fred', 'age': 40 }]
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, _.iteratee('user'));
- * // => ['barney', 'fred']
- *
- * // Create custom iteratee shorthands.
- * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
- * return !_.isRegExp(func) ? iteratee(func) : function(string) {
- * return func.test(string);
- * };
- * });
- *
- * _.filter(['abc', 'def'], /ef/);
- * // => ['def']
- */
- function iteratee(func) {
- return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
- }
-
- /**
- * Creates a function that performs a partial deep comparison between a given
- * object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`.
- *
- * **Note:** The created function is equivalent to `_.isMatch` with `source`
- * partially applied.
- *
- * Partial comparisons will match empty array and empty object `source`
- * values against any array or object value, respectively. See `_.isEqual`
- * for a list of supported value comparisons.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var objects = [
- * { 'a': 1, 'b': 2, 'c': 3 },
- * { 'a': 4, 'b': 5, 'c': 6 }
- * ];
- *
- * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
- * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
- */
- function matches(source) {
- return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
- }
-
- /**
- * Creates a function that performs a partial deep comparison between the
- * value at `path` of a given object to `srcValue`, returning `true` if the
- * object value is equivalent, else `false`.
- *
- * **Note:** Partial comparisons will match empty array and empty object
- * `srcValue` values against any array or object value, respectively. See
- * `_.isEqual` for a list of supported value comparisons.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var objects = [
- * { 'a': 1, 'b': 2, 'c': 3 },
- * { 'a': 4, 'b': 5, 'c': 6 }
- * ];
- *
- * _.find(objects, _.matchesProperty('a', 4));
- * // => { 'a': 4, 'b': 5, 'c': 6 }
- */
- function matchesProperty(path, srcValue) {
- return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
- }
-
- /**
- * Creates a function that invokes the method at `path` of a given object.
- * Any additional arguments are provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': _.constant(2) } },
- * { 'a': { 'b': _.constant(1) } }
- * ];
- *
- * _.map(objects, _.method('a.b'));
- * // => [2, 1]
- *
- * _.map(objects, _.method(['a', 'b']));
- * // => [2, 1]
- */
- var method = baseRest(function(path, args) {
- return function(object) {
- return baseInvoke(object, path, args);
- };
- });
-
- /**
- * The opposite of `_.method`; this method creates a function that invokes
- * the method at a given path of `object`. Any additional arguments are
- * provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Object} object The object to query.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var array = _.times(3, _.constant),
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.methodOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
- * // => [2, 0]
- */
- var methodOf = baseRest(function(object, args) {
- return function(path) {
- return baseInvoke(object, path, args);
- };
- });
-
- /**
- * Adds all own enumerable string keyed function properties of a source
- * object to the destination object. If `object` is a function, then methods
- * are added to its prototype as well.
- *
- * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
- * avoid conflicts caused by modifying the original.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Function|Object} [object=lodash] The destination object.
- * @param {Object} source The object of functions to add.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
- * @returns {Function|Object} Returns `object`.
- * @example
- *
- * function vowels(string) {
- * return _.filter(string, function(v) {
- * return /[aeiou]/i.test(v);
- * });
- * }
- *
- * _.mixin({ 'vowels': vowels });
- * _.vowels('fred');
- * // => ['e']
- *
- * _('fred').vowels().value();
- * // => ['e']
- *
- * _.mixin({ 'vowels': vowels }, { 'chain': false });
- * _('fred').vowels();
- * // => ['e']
- */
- function mixin(object, source, options) {
- var props = keys(source),
- methodNames = baseFunctions(source, props);
-
- if (options == null &&
- !(isObject(source) && (methodNames.length || !props.length))) {
- options = source;
- source = object;
- object = this;
- methodNames = baseFunctions(source, keys(source));
- }
- var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
- isFunc = isFunction(object);
-
- arrayEach(methodNames, function(methodName) {
- var func = source[methodName];
- object[methodName] = func;
- if (isFunc) {
- object.prototype[methodName] = function() {
- var chainAll = this.__chain__;
- if (chain || chainAll) {
- var result = object(this.__wrapped__),
- actions = result.__actions__ = copyArray(this.__actions__);
-
- actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
- result.__chain__ = chainAll;
- return result;
- }
- return func.apply(object, arrayPush([this.value()], arguments));
- };
- }
- });
-
- return object;
- }
-
- /**
- * Reverts the `_` variable to its previous value and returns a reference to
- * the `lodash` function.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @returns {Function} Returns the `lodash` function.
- * @example
- *
- * var lodash = _.noConflict();
- */
- function noConflict() {
- if (root._ === this) {
- root._ = oldDash;
- }
- return this;
- }
-
- /**
- * This method returns `undefined`.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Util
- * @example
- *
- * _.times(2, _.noop);
- * // => [undefined, undefined]
- */
- function noop() {
- // No operation performed.
- }
-
- /**
- * Creates a function that gets the argument at index `n`. If `n` is negative,
- * the nth argument from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [n=0] The index of the argument to return.
- * @returns {Function} Returns the new pass-thru function.
- * @example
- *
- * var func = _.nthArg(1);
- * func('a', 'b', 'c', 'd');
- * // => 'b'
- *
- * var func = _.nthArg(-2);
- * func('a', 'b', 'c', 'd');
- * // => 'c'
- */
- function nthArg(n) {
- n = toInteger(n);
- return baseRest(function(args) {
- return baseNth(args, n);
- });
- }
-
- /**
- * Creates a function that invokes `iteratees` with the arguments it receives
- * and returns their results.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
- * The iteratees to invoke.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.over([Math.max, Math.min]);
- *
- * func(1, 2, 3, 4);
- * // => [4, 1]
- */
- var over = createOver(arrayMap);
-
- /**
- * Creates a function that checks if **all** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Function|Function[])} [predicates=[_.identity]]
- * The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overEvery([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => false
- *
- * func(NaN);
- * // => false
- */
- var overEvery = createOver(arrayEvery);
-
- /**
- * Creates a function that checks if **any** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Function|Function[])} [predicates=[_.identity]]
- * The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overSome([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => true
- *
- * func(NaN);
- * // => false
- */
- var overSome = createOver(arraySome);
-
- /**
- * Creates a function that returns the value at `path` of a given object.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': 2 } },
- * { 'a': { 'b': 1 } }
- * ];
- *
- * _.map(objects, _.property('a.b'));
- * // => [2, 1]
- *
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
- * // => [1, 2]
- */
- function property(path) {
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
- }
-
- /**
- * The opposite of `_.property`; this method creates a function that returns
- * the value at a given path of `object`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} object The object to query.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var array = [0, 1, 2],
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
- * // => [2, 0]
- */
- function propertyOf(object) {
- return function(path) {
- return object == null ? undefined : baseGet(object, path);
- };
- }
-
- /**
- * Creates an array of numbers (positive and/or negative) progressing from
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
- * `start` is specified without an `end` or `step`. If `end` is not specified,
- * it's set to `start` with `start` then set to `0`.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.rangeRight
- * @example
- *
- * _.range(4);
- * // => [0, 1, 2, 3]
- *
- * _.range(-4);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 5);
- * // => [1, 2, 3, 4]
- *
- * _.range(0, 20, 5);
- * // => [0, 5, 10, 15]
- *
- * _.range(0, -4, -1);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.range(0);
- * // => []
- */
- var range = createRange();
-
- /**
- * This method is like `_.range` except that it populates values in
- * descending order.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.range
- * @example
- *
- * _.rangeRight(4);
- * // => [3, 2, 1, 0]
- *
- * _.rangeRight(-4);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 5);
- * // => [4, 3, 2, 1]
- *
- * _.rangeRight(0, 20, 5);
- * // => [15, 10, 5, 0]
- *
- * _.rangeRight(0, -4, -1);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.rangeRight(0);
- * // => []
- */
- var rangeRight = createRange(true);
-
- /**
- * This method returns a new empty array.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Array} Returns the new empty array.
- * @example
- *
- * var arrays = _.times(2, _.stubArray);
- *
- * console.log(arrays);
- * // => [[], []]
- *
- * console.log(arrays[0] === arrays[1]);
- * // => false
- */
- function stubArray() {
- return [];
- }
-
- /**
- * This method returns `false`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `false`.
- * @example
- *
- * _.times(2, _.stubFalse);
- * // => [false, false]
- */
- function stubFalse() {
- return false;
- }
-
- /**
- * This method returns a new empty object.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Object} Returns the new empty object.
- * @example
- *
- * var objects = _.times(2, _.stubObject);
- *
- * console.log(objects);
- * // => [{}, {}]
- *
- * console.log(objects[0] === objects[1]);
- * // => false
- */
- function stubObject() {
- return {};
- }
-
- /**
- * This method returns an empty string.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {string} Returns the empty string.
- * @example
- *
- * _.times(2, _.stubString);
- * // => ['', '']
- */
- function stubString() {
- return '';
- }
-
- /**
- * This method returns `true`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `true`.
- * @example
- *
- * _.times(2, _.stubTrue);
- * // => [true, true]
- */
- function stubTrue() {
- return true;
- }
-
- /**
- * Invokes the iteratee `n` times, returning an array of the results of
- * each invocation. The iteratee is invoked with one argument; (index).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.times(3, String);
- * // => ['0', '1', '2']
- *
- * _.times(4, _.constant(0));
- * // => [0, 0, 0, 0]
- */
- function times(n, iteratee) {
- n = toInteger(n);
- if (n < 1 || n > MAX_SAFE_INTEGER) {
- return [];
- }
- var index = MAX_ARRAY_LENGTH,
- length = nativeMin(n, MAX_ARRAY_LENGTH);
-
- iteratee = getIteratee(iteratee);
- n -= MAX_ARRAY_LENGTH;
-
- var result = baseTimes(length, iteratee);
- while (++index < n) {
- iteratee(index);
- }
- return result;
- }
-
- /**
- * Converts `value` to a property path array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {*} value The value to convert.
- * @returns {Array} Returns the new property path array.
- * @example
- *
- * _.toPath('a.b.c');
- * // => ['a', 'b', 'c']
- *
- * _.toPath('a[0].b.c');
- * // => ['a', '0', 'b', 'c']
- */
- function toPath(value) {
- if (isArray(value)) {
- return arrayMap(value, toKey);
- }
- return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
- }
-
- /**
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {string} [prefix=''] The value to prefix the ID with.
- * @returns {string} Returns the unique ID.
- * @example
- *
- * _.uniqueId('contact_');
- * // => 'contact_104'
- *
- * _.uniqueId();
- * // => '105'
- */
- function uniqueId(prefix) {
- var id = ++idCounter;
- return toString(prefix) + id;
- }
-
- /*------------------------------------------------------------------------*/
-
- /**
- * Adds two numbers.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {number} augend The first number in an addition.
- * @param {number} addend The second number in an addition.
- * @returns {number} Returns the total.
- * @example
- *
- * _.add(6, 4);
- * // => 10
- */
- var add = createMathOperation(function(augend, addend) {
- return augend + addend;
- }, 0);
-
- /**
- * Computes `number` rounded up to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round up.
- * @param {number} [precision=0] The precision to round up to.
- * @returns {number} Returns the rounded up number.
- * @example
- *
- * _.ceil(4.006);
- * // => 5
- *
- * _.ceil(6.004, 2);
- * // => 6.01
- *
- * _.ceil(6040, -2);
- * // => 6100
- */
- var ceil = createRound('ceil');
-
- /**
- * Divide two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} dividend The first number in a division.
- * @param {number} divisor The second number in a division.
- * @returns {number} Returns the quotient.
- * @example
- *
- * _.divide(6, 4);
- * // => 1.5
- */
- var divide = createMathOperation(function(dividend, divisor) {
- return dividend / divisor;
- }, 1);
-
- /**
- * Computes `number` rounded down to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round down.
- * @param {number} [precision=0] The precision to round down to.
- * @returns {number} Returns the rounded down number.
- * @example
- *
- * _.floor(4.006);
- * // => 4
- *
- * _.floor(0.046, 2);
- * // => 0.04
- *
- * _.floor(4060, -2);
- * // => 4000
- */
- var floor = createRound('floor');
-
- /**
- * Computes the maximum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * _.max([4, 2, 8, 6]);
- * // => 8
- *
- * _.max([]);
- * // => undefined
- */
- function max(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseGt)
- : undefined;
- }
-
- /**
- * This method is like `_.max` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.maxBy(objects, function(o) { return o.n; });
- * // => { 'n': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.maxBy(objects, 'n');
- * // => { 'n': 2 }
- */
- function maxBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, getIteratee(iteratee, 2), baseGt)
- : undefined;
- }
-
- /**
- * Computes the mean of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the mean.
- * @example
- *
- * _.mean([4, 2, 8, 6]);
- * // => 5
- */
- function mean(array) {
- return baseMean(array, identity);
- }
-
- /**
- * This method is like `_.mean` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be averaged.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the mean.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.meanBy(objects, function(o) { return o.n; });
- * // => 5
- *
- * // The `_.property` iteratee shorthand.
- * _.meanBy(objects, 'n');
- * // => 5
- */
- function meanBy(array, iteratee) {
- return baseMean(array, getIteratee(iteratee, 2));
- }
-
- /**
- * Computes the minimum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * _.min([4, 2, 8, 6]);
- * // => 2
- *
- * _.min([]);
- * // => undefined
- */
- function min(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseLt)
- : undefined;
- }
-
- /**
- * This method is like `_.min` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.minBy(objects, function(o) { return o.n; });
- * // => { 'n': 1 }
- *
- * // The `_.property` iteratee shorthand.
- * _.minBy(objects, 'n');
- * // => { 'n': 1 }
- */
- function minBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, getIteratee(iteratee, 2), baseLt)
- : undefined;
- }
-
- /**
- * Multiply two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} multiplier The first number in a multiplication.
- * @param {number} multiplicand The second number in a multiplication.
- * @returns {number} Returns the product.
- * @example
- *
- * _.multiply(6, 4);
- * // => 24
- */
- var multiply = createMathOperation(function(multiplier, multiplicand) {
- return multiplier * multiplicand;
- }, 1);
-
- /**
- * Computes `number` rounded to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round.
- * @param {number} [precision=0] The precision to round to.
- * @returns {number} Returns the rounded number.
- * @example
- *
- * _.round(4.006);
- * // => 4
- *
- * _.round(4.006, 2);
- * // => 4.01
- *
- * _.round(4060, -2);
- * // => 4100
- */
- var round = createRound('round');
-
- /**
- * Subtract two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {number} minuend The first number in a subtraction.
- * @param {number} subtrahend The second number in a subtraction.
- * @returns {number} Returns the difference.
- * @example
- *
- * _.subtract(6, 4);
- * // => 2
- */
- var subtract = createMathOperation(function(minuend, subtrahend) {
- return minuend - subtrahend;
- }, 0);
-
- /**
- * Computes the sum of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the sum.
- * @example
- *
- * _.sum([4, 2, 8, 6]);
- * // => 20
- */
- function sum(array) {
- return (array && array.length)
- ? baseSum(array, identity)
- : 0;
- }
-
- /**
- * This method is like `_.sum` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be summed.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the sum.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.sumBy(objects, function(o) { return o.n; });
- * // => 20
- *
- * // The `_.property` iteratee shorthand.
- * _.sumBy(objects, 'n');
- * // => 20
- */
- function sumBy(array, iteratee) {
- return (array && array.length)
- ? baseSum(array, getIteratee(iteratee, 2))
- : 0;
- }
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return wrapped values in chain sequences.
- lodash.after = after;
- lodash.ary = ary;
- lodash.assign = assign;
- lodash.assignIn = assignIn;
- lodash.assignInWith = assignInWith;
- lodash.assignWith = assignWith;
- lodash.at = at;
- lodash.before = before;
- lodash.bind = bind;
- lodash.bindAll = bindAll;
- lodash.bindKey = bindKey;
- lodash.castArray = castArray;
- lodash.chain = chain;
- lodash.chunk = chunk;
- lodash.compact = compact;
- lodash.concat = concat;
- lodash.cond = cond;
- lodash.conforms = conforms;
- lodash.constant = constant;
- lodash.countBy = countBy;
- lodash.create = create;
- lodash.curry = curry;
- lodash.curryRight = curryRight;
- lodash.debounce = debounce;
- lodash.defaults = defaults;
- lodash.defaultsDeep = defaultsDeep;
- lodash.defer = defer;
- lodash.delay = delay;
- lodash.difference = difference;
- lodash.differenceBy = differenceBy;
- lodash.differenceWith = differenceWith;
- lodash.drop = drop;
- lodash.dropRight = dropRight;
- lodash.dropRightWhile = dropRightWhile;
- lodash.dropWhile = dropWhile;
- lodash.fill = fill;
- lodash.filter = filter;
- lodash.flatMap = flatMap;
- lodash.flatMapDeep = flatMapDeep;
- lodash.flatMapDepth = flatMapDepth;
- lodash.flatten = flatten;
- lodash.flattenDeep = flattenDeep;
- lodash.flattenDepth = flattenDepth;
- lodash.flip = flip;
- lodash.flow = flow;
- lodash.flowRight = flowRight;
- lodash.fromPairs = fromPairs;
- lodash.functions = functions;
- lodash.functionsIn = functionsIn;
- lodash.groupBy = groupBy;
- lodash.initial = initial;
- lodash.intersection = intersection;
- lodash.intersectionBy = intersectionBy;
- lodash.intersectionWith = intersectionWith;
- lodash.invert = invert;
- lodash.invertBy = invertBy;
- lodash.invokeMap = invokeMap;
- lodash.iteratee = iteratee;
- lodash.keyBy = keyBy;
- lodash.keys = keys;
- lodash.keysIn = keysIn;
- lodash.map = map;
- lodash.mapKeys = mapKeys;
- lodash.mapValues = mapValues;
- lodash.matches = matches;
- lodash.matchesProperty = matchesProperty;
- lodash.memoize = memoize;
- lodash.merge = merge;
- lodash.mergeWith = mergeWith;
- lodash.method = method;
- lodash.methodOf = methodOf;
- lodash.mixin = mixin;
- lodash.negate = negate;
- lodash.nthArg = nthArg;
- lodash.omit = omit;
- lodash.omitBy = omitBy;
- lodash.once = once;
- lodash.orderBy = orderBy;
- lodash.over = over;
- lodash.overArgs = overArgs;
- lodash.overEvery = overEvery;
- lodash.overSome = overSome;
- lodash.partial = partial;
- lodash.partialRight = partialRight;
- lodash.partition = partition;
- lodash.pick = pick;
- lodash.pickBy = pickBy;
- lodash.property = property;
- lodash.propertyOf = propertyOf;
- lodash.pull = pull;
- lodash.pullAll = pullAll;
- lodash.pullAllBy = pullAllBy;
- lodash.pullAllWith = pullAllWith;
- lodash.pullAt = pullAt;
- lodash.range = range;
- lodash.rangeRight = rangeRight;
- lodash.rearg = rearg;
- lodash.reject = reject;
- lodash.remove = remove;
- lodash.rest = rest;
- lodash.reverse = reverse;
- lodash.sampleSize = sampleSize;
- lodash.set = set;
- lodash.setWith = setWith;
- lodash.shuffle = shuffle;
- lodash.slice = slice;
- lodash.sortBy = sortBy;
- lodash.sortedUniq = sortedUniq;
- lodash.sortedUniqBy = sortedUniqBy;
- lodash.split = split;
- lodash.spread = spread;
- lodash.tail = tail;
- lodash.take = take;
- lodash.takeRight = takeRight;
- lodash.takeRightWhile = takeRightWhile;
- lodash.takeWhile = takeWhile;
- lodash.tap = tap;
- lodash.throttle = throttle;
- lodash.thru = thru;
- lodash.toArray = toArray;
- lodash.toPairs = toPairs;
- lodash.toPairsIn = toPairsIn;
- lodash.toPath = toPath;
- lodash.toPlainObject = toPlainObject;
- lodash.transform = transform;
- lodash.unary = unary;
- lodash.union = union;
- lodash.unionBy = unionBy;
- lodash.unionWith = unionWith;
- lodash.uniq = uniq;
- lodash.uniqBy = uniqBy;
- lodash.uniqWith = uniqWith;
- lodash.unset = unset;
- lodash.unzip = unzip;
- lodash.unzipWith = unzipWith;
- lodash.update = update;
- lodash.updateWith = updateWith;
- lodash.values = values;
- lodash.valuesIn = valuesIn;
- lodash.without = without;
- lodash.words = words;
- lodash.wrap = wrap;
- lodash.xor = xor;
- lodash.xorBy = xorBy;
- lodash.xorWith = xorWith;
- lodash.zip = zip;
- lodash.zipObject = zipObject;
- lodash.zipObjectDeep = zipObjectDeep;
- lodash.zipWith = zipWith;
-
- // Add aliases.
- lodash.entries = toPairs;
- lodash.entriesIn = toPairsIn;
- lodash.extend = assignIn;
- lodash.extendWith = assignInWith;
-
- // Add methods to `lodash.prototype`.
- mixin(lodash, lodash);
-
- /*------------------------------------------------------------------------*/
-
- // Add methods that return unwrapped values in chain sequences.
- lodash.add = add;
- lodash.attempt = attempt;
- lodash.camelCase = camelCase;
- lodash.capitalize = capitalize;
- lodash.ceil = ceil;
- lodash.clamp = clamp;
- lodash.clone = clone;
- lodash.cloneDeep = cloneDeep;
- lodash.cloneDeepWith = cloneDeepWith;
- lodash.cloneWith = cloneWith;
- lodash.conformsTo = conformsTo;
- lodash.deburr = deburr;
- lodash.defaultTo = defaultTo;
- lodash.divide = divide;
- lodash.endsWith = endsWith;
- lodash.eq = eq;
- lodash.escape = escape;
- lodash.escapeRegExp = escapeRegExp;
- lodash.every = every;
- lodash.find = find;
- lodash.findIndex = findIndex;
- lodash.findKey = findKey;
- lodash.findLast = findLast;
- lodash.findLastIndex = findLastIndex;
- lodash.findLastKey = findLastKey;
- lodash.floor = floor;
- lodash.forEach = forEach;
- lodash.forEachRight = forEachRight;
- lodash.forIn = forIn;
- lodash.forInRight = forInRight;
- lodash.forOwn = forOwn;
- lodash.forOwnRight = forOwnRight;
- lodash.get = get;
- lodash.gt = gt;
- lodash.gte = gte;
- lodash.has = has;
- lodash.hasIn = hasIn;
- lodash.head = head;
- lodash.identity = identity;
- lodash.includes = includes;
- lodash.indexOf = indexOf;
- lodash.inRange = inRange;
- lodash.invoke = invoke;
- lodash.isArguments = isArguments;
- lodash.isArray = isArray;
- lodash.isArrayBuffer = isArrayBuffer;
- lodash.isArrayLike = isArrayLike;
- lodash.isArrayLikeObject = isArrayLikeObject;
- lodash.isBoolean = isBoolean;
- lodash.isBuffer = isBuffer;
- lodash.isDate = isDate;
- lodash.isElement = isElement;
- lodash.isEmpty = isEmpty;
- lodash.isEqual = isEqual;
- lodash.isEqualWith = isEqualWith;
- lodash.isError = isError;
- lodash.isFinite = isFinite;
- lodash.isFunction = isFunction;
- lodash.isInteger = isInteger;
- lodash.isLength = isLength;
- lodash.isMap = isMap;
- lodash.isMatch = isMatch;
- lodash.isMatchWith = isMatchWith;
- lodash.isNaN = isNaN;
- lodash.isNative = isNative;
- lodash.isNil = isNil;
- lodash.isNull = isNull;
- lodash.isNumber = isNumber;
- lodash.isObject = isObject;
- lodash.isObjectLike = isObjectLike;
- lodash.isPlainObject = isPlainObject;
- lodash.isRegExp = isRegExp;
- lodash.isSafeInteger = isSafeInteger;
- lodash.isSet = isSet;
- lodash.isString = isString;
- lodash.isSymbol = isSymbol;
- lodash.isTypedArray = isTypedArray;
- lodash.isUndefined = isUndefined;
- lodash.isWeakMap = isWeakMap;
- lodash.isWeakSet = isWeakSet;
- lodash.join = join;
- lodash.kebabCase = kebabCase;
- lodash.last = last;
- lodash.lastIndexOf = lastIndexOf;
- lodash.lowerCase = lowerCase;
- lodash.lowerFirst = lowerFirst;
- lodash.lt = lt;
- lodash.lte = lte;
- lodash.max = max;
- lodash.maxBy = maxBy;
- lodash.mean = mean;
- lodash.meanBy = meanBy;
- lodash.min = min;
- lodash.minBy = minBy;
- lodash.stubArray = stubArray;
- lodash.stubFalse = stubFalse;
- lodash.stubObject = stubObject;
- lodash.stubString = stubString;
- lodash.stubTrue = stubTrue;
- lodash.multiply = multiply;
- lodash.nth = nth;
- lodash.noConflict = noConflict;
- lodash.noop = noop;
- lodash.now = now;
- lodash.pad = pad;
- lodash.padEnd = padEnd;
- lodash.padStart = padStart;
- lodash.parseInt = parseInt;
- lodash.random = random;
- lodash.reduce = reduce;
- lodash.reduceRight = reduceRight;
- lodash.repeat = repeat;
- lodash.replace = replace;
- lodash.result = result;
- lodash.round = round;
- lodash.runInContext = runInContext;
- lodash.sample = sample;
- lodash.size = size;
- lodash.snakeCase = snakeCase;
- lodash.some = some;
- lodash.sortedIndex = sortedIndex;
- lodash.sortedIndexBy = sortedIndexBy;
- lodash.sortedIndexOf = sortedIndexOf;
- lodash.sortedLastIndex = sortedLastIndex;
- lodash.sortedLastIndexBy = sortedLastIndexBy;
- lodash.sortedLastIndexOf = sortedLastIndexOf;
- lodash.startCase = startCase;
- lodash.startsWith = startsWith;
- lodash.subtract = subtract;
- lodash.sum = sum;
- lodash.sumBy = sumBy;
- lodash.template = template;
- lodash.times = times;
- lodash.toFinite = toFinite;
- lodash.toInteger = toInteger;
- lodash.toLength = toLength;
- lodash.toLower = toLower;
- lodash.toNumber = toNumber;
- lodash.toSafeInteger = toSafeInteger;
- lodash.toString = toString;
- lodash.toUpper = toUpper;
- lodash.trim = trim;
- lodash.trimEnd = trimEnd;
- lodash.trimStart = trimStart;
- lodash.truncate = truncate;
- lodash.unescape = unescape;
- lodash.uniqueId = uniqueId;
- lodash.upperCase = upperCase;
- lodash.upperFirst = upperFirst;
-
- // Add aliases.
- lodash.each = forEach;
- lodash.eachRight = forEachRight;
- lodash.first = head;
-
- mixin(lodash, (function() {
- var source = {};
- baseForOwn(lodash, function(func, methodName) {
- if (!hasOwnProperty.call(lodash.prototype, methodName)) {
- source[methodName] = func;
- }
- });
- return source;
- }()), { 'chain': false });
-
- /*------------------------------------------------------------------------*/
-
- /**
- * The semantic version number.
- *
- * @static
- * @memberOf _
- * @type {string}
- */
- lodash.VERSION = VERSION;
-
- // Assign default placeholders.
- arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function(methodName) {
- lodash[methodName].placeholder = lodash;
- });
-
- // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.
- arrayEach(['drop', 'take'], function(methodName, index) {
- LazyWrapper.prototype[methodName] = function(n) {
- n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
-
- var result = (this.__filtered__ && !index)
- ? new LazyWrapper(this)
- : this.clone();
-
- if (result.__filtered__) {
- result.__takeCount__ = nativeMin(n, result.__takeCount__);
- } else {
- result.__views__.push({
- 'size': nativeMin(n, MAX_ARRAY_LENGTH),
- 'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
- });
- }
- return result;
- };
-
- LazyWrapper.prototype[methodName + 'Right'] = function(n) {
- return this.reverse()[methodName](n).reverse();
- };
- });
-
- // Add `LazyWrapper` methods that accept an `iteratee` value.
- arrayEach(['filter', 'map', 'takeWhile'], function(methodName, index) {
- var type = index + 1,
- isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
-
- LazyWrapper.prototype[methodName] = function(iteratee) {
- var result = this.clone();
- result.__iteratees__.push({
- 'iteratee': getIteratee(iteratee, 3),
- 'type': type
- });
- result.__filtered__ = result.__filtered__ || isFilter;
- return result;
- };
- });
-
- // Add `LazyWrapper` methods for `_.head` and `_.last`.
- arrayEach(['head', 'last'], function(methodName, index) {
- var takeName = 'take' + (index ? 'Right' : '');
-
- LazyWrapper.prototype[methodName] = function() {
- return this[takeName](1).value()[0];
- };
- });
-
- // Add `LazyWrapper` methods for `_.initial` and `_.tail`.
- arrayEach(['initial', 'tail'], function(methodName, index) {
- var dropName = 'drop' + (index ? '' : 'Right');
-
- LazyWrapper.prototype[methodName] = function() {
- return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
- };
- });
-
- LazyWrapper.prototype.compact = function() {
- return this.filter(identity);
- };
-
- LazyWrapper.prototype.find = function(predicate) {
- return this.filter(predicate).head();
- };
-
- LazyWrapper.prototype.findLast = function(predicate) {
- return this.reverse().find(predicate);
- };
-
- LazyWrapper.prototype.invokeMap = baseRest(function(path, args) {
- if (typeof path == 'function') {
- return new LazyWrapper(this);
- }
- return this.map(function(value) {
- return baseInvoke(value, path, args);
- });
- });
-
- LazyWrapper.prototype.reject = function(predicate) {
- return this.filter(negate(getIteratee(predicate)));
- };
-
- LazyWrapper.prototype.slice = function(start, end) {
- start = toInteger(start);
-
- var result = this;
- if (result.__filtered__ && (start > 0 || end < 0)) {
- return new LazyWrapper(result);
- }
- if (start < 0) {
- result = result.takeRight(-start);
- } else if (start) {
- result = result.drop(start);
- }
- if (end !== undefined) {
- end = toInteger(end);
- result = end < 0 ? result.dropRight(-end) : result.take(end - start);
- }
- return result;
- };
-
- LazyWrapper.prototype.takeRightWhile = function(predicate) {
- return this.reverse().takeWhile(predicate).reverse();
- };
-
- LazyWrapper.prototype.toArray = function() {
- return this.take(MAX_ARRAY_LENGTH);
- };
-
- // Add `LazyWrapper` methods to `lodash.prototype`.
- baseForOwn(LazyWrapper.prototype, function(func, methodName) {
- var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
- isTaker = /^(?:head|last)$/.test(methodName),
- lodashFunc = lodash[isTaker ? ('take' + (methodName == 'last' ? 'Right' : '')) : methodName],
- retUnwrapped = isTaker || /^find/.test(methodName);
-
- if (!lodashFunc) {
- return;
- }
- lodash.prototype[methodName] = function() {
- var value = this.__wrapped__,
- args = isTaker ? [1] : arguments,
- isLazy = value instanceof LazyWrapper,
- iteratee = args[0],
- useLazy = isLazy || isArray(value);
-
- var interceptor = function(value) {
- var result = lodashFunc.apply(lodash, arrayPush([value], args));
- return (isTaker && chainAll) ? result[0] : result;
- };
-
- if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
- // Avoid lazy use if the iteratee has a "length" value other than `1`.
- isLazy = useLazy = false;
- }
- var chainAll = this.__chain__,
- isHybrid = !!this.__actions__.length,
- isUnwrapped = retUnwrapped && !chainAll,
- onlyLazy = isLazy && !isHybrid;
-
- if (!retUnwrapped && useLazy) {
- value = onlyLazy ? value : new LazyWrapper(this);
- var result = func.apply(value, args);
- result.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined });
- return new LodashWrapper(result, chainAll);
- }
- if (isUnwrapped && onlyLazy) {
- return func.apply(this, args);
- }
- result = this.thru(interceptor);
- return isUnwrapped ? (isTaker ? result.value()[0] : result.value()) : result;
- };
- });
-
- // Add `Array` methods to `lodash.prototype`.
- arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function(methodName) {
- var func = arrayProto[methodName],
- chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
- retUnwrapped = /^(?:pop|shift)$/.test(methodName);
-
- lodash.prototype[methodName] = function() {
- var args = arguments;
- if (retUnwrapped && !this.__chain__) {
- var value = this.value();
- return func.apply(isArray(value) ? value : [], args);
- }
- return this[chainName](function(value) {
- return func.apply(isArray(value) ? value : [], args);
- });
- };
- });
-
- // Map minified method names to their real names.
- baseForOwn(LazyWrapper.prototype, function(func, methodName) {
- var lodashFunc = lodash[methodName];
- if (lodashFunc) {
- var key = lodashFunc.name + '';
- if (!hasOwnProperty.call(realNames, key)) {
- realNames[key] = [];
- }
- realNames[key].push({ 'name': methodName, 'func': lodashFunc });
- }
- });
-
- realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
- 'name': 'wrapper',
- 'func': undefined
- }];
-
- // Add methods to `LazyWrapper`.
- LazyWrapper.prototype.clone = lazyClone;
- LazyWrapper.prototype.reverse = lazyReverse;
- LazyWrapper.prototype.value = lazyValue;
-
- // Add chain sequence methods to the `lodash` wrapper.
- lodash.prototype.at = wrapperAt;
- lodash.prototype.chain = wrapperChain;
- lodash.prototype.commit = wrapperCommit;
- lodash.prototype.next = wrapperNext;
- lodash.prototype.plant = wrapperPlant;
- lodash.prototype.reverse = wrapperReverse;
- lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue;
-
- // Add lazy aliases.
- lodash.prototype.first = lodash.prototype.head;
-
- if (symIterator) {
- lodash.prototype[symIterator] = wrapperToIterator;
- }
- return lodash;
- });
-
- /*--------------------------------------------------------------------------*/
-
- // Export lodash.
- var _ = runInContext();
-
- // Some AMD build optimizers, like r.js, check for condition patterns like:
- if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
- // Expose Lodash on the global object to prevent errors when Lodash is
- // loaded by a script tag in the presence of an AMD loader.
- // See http://requirejs.org/docs/errors.html#mismatch for more details.
- // Use `_.noConflict` to remove Lodash from the global object.
- root._ = _;
-
- // Define as an anonymous module so, through path mapping, it can be
- // referenced as the "underscore" module.
- define(function() {
- return _;
- });
- }
- // Check for `exports` after `define` in case a build optimizer adds it.
- else if (freeModule) {
- // Export for Node.js.
- (freeModule.exports = _)._ = _;
- // Export for CommonJS support.
- freeExports._ = _;
- }
- else {
- // Export to the global object.
- root._ = _;
- }
-}.call(this));
diff --git a/node_modules/lodash/lodash.min.js b/node_modules/lodash/lodash.min.js
deleted file mode 100644
index 13ec307..0000000
--- a/node_modules/lodash/lodash.min.js
+++ /dev/null
@@ -1,137 +0,0 @@
-/**
- * @license
- * Lodash lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE
- */
-;(function(){function n(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function t(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function r(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&false!==t(n[r],r,n););return n}function e(n,t){for(var r=null==n?0:n.length;r--&&false!==t(n[r],r,n););return n}function u(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return false;
-return true}function i(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function o(n,t){return!(null==n||!n.length)&&-1<v(n,t,0)}function f(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return true;return false}function c(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function a(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function l(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);
-return r}function s(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function h(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return true;return false}function p(n,t,r){var e;return r(n,function(n,r,u){if(t(n,r,u))return e=r,false}),e}function _(n,t,r,e){var u=n.length;for(r+=e?1:-1;e?r--:++r<u;)if(t(n[r],r,n))return r;return-1}function v(n,t,r){if(t===t)n:{--r;for(var e=n.length;++r<e;)if(n[r]===t){n=r;break n}n=-1}else n=_(n,d,r);return n}function g(n,t,r,e){
---r;for(var u=n.length;++r<u;)if(e(n[r],t))return r;return-1}function d(n){return n!==n}function y(n,t){var r=null==n?0:n.length;return r?m(n,t)/r:F}function b(n){return function(t){return null==t?T:t[n]}}function x(n){return function(t){return null==n?T:n[t]}}function j(n,t,r,e,u){return u(n,function(n,u,i){r=e?(e=false,n):t(r,n,u,i)}),r}function w(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].c;return n}function m(n,t){for(var r,e=-1,u=n.length;++e<u;){var i=t(n[e]);i!==T&&(r=r===T?i:r+i)}return r;
-}function A(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function E(n,t){return c(t,function(t){return[t,n[t]]})}function k(n){return function(t){return n(t)}}function S(n,t){return c(t,function(t){return n[t]})}function O(n,t){return n.has(t)}function I(n,t){for(var r=-1,e=n.length;++r<e&&-1<v(t,n[r],0););return r}function R(n,t){for(var r=n.length;r--&&-1<v(t,n[r],0););return r}function z(n){return"\\"+Un[n]}function W(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n];
-}),r}function B(n,t){return function(r){return n(t(r))}}function L(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&"__lodash_placeholder__"!==o||(n[r]="__lodash_placeholder__",i[u++]=r)}return i}function U(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}function C(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=[n,n]}),r}function D(n){if(Rn.test(n)){for(var t=On.lastIndex=0;On.test(n);)++t;n=t}else n=Qn(n);return n}function M(n){return Rn.test(n)?n.match(On)||[]:n.split("");
-}var T,$=1/0,F=NaN,N=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],P=/\b__p\+='';/g,Z=/\b(__p\+=)''\+/g,q=/(__e\(.*?\)|\b__t\))\+'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,G=RegExp(V.source),H=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nn=/^\w*$/,tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rn=/[\\^$.*+?()[\]{}|]/g,en=RegExp(rn.source),un=/^\s+|\s+$/g,on=/^\s+/,fn=/\s+$/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,an=/\{\n\/\* \[wrapped with (.+)\] \*/,ln=/,? & /,sn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hn=/\\(\\)?/g,pn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_n=/\w*$/,vn=/^[-+]0x[0-9a-f]+$/i,gn=/^0b[01]+$/i,dn=/^\[object .+?Constructor\]$/,yn=/^0o[0-7]+$/i,bn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,wn=/['\n\r\u2028\u2029\\]/g,mn="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",An="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+mn,En="(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])",kn=RegExp("['\u2019]","g"),Sn=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),On=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+En+mn,"g"),In=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",An].join("|"),"g"),Rn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),zn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wn="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Bn={};
-Bn["[object Float32Array]"]=Bn["[object Float64Array]"]=Bn["[object Int8Array]"]=Bn["[object Int16Array]"]=Bn["[object Int32Array]"]=Bn["[object Uint8Array]"]=Bn["[object Uint8ClampedArray]"]=Bn["[object Uint16Array]"]=Bn["[object Uint32Array]"]=true,Bn["[object Arguments]"]=Bn["[object Array]"]=Bn["[object ArrayBuffer]"]=Bn["[object Boolean]"]=Bn["[object DataView]"]=Bn["[object Date]"]=Bn["[object Error]"]=Bn["[object Function]"]=Bn["[object Map]"]=Bn["[object Number]"]=Bn["[object Object]"]=Bn["[object RegExp]"]=Bn["[object Set]"]=Bn["[object String]"]=Bn["[object WeakMap]"]=false;
-var Ln={};Ln["[object Arguments]"]=Ln["[object Array]"]=Ln["[object ArrayBuffer]"]=Ln["[object DataView]"]=Ln["[object Boolean]"]=Ln["[object Date]"]=Ln["[object Float32Array]"]=Ln["[object Float64Array]"]=Ln["[object Int8Array]"]=Ln["[object Int16Array]"]=Ln["[object Int32Array]"]=Ln["[object Map]"]=Ln["[object Number]"]=Ln["[object Object]"]=Ln["[object RegExp]"]=Ln["[object Set]"]=Ln["[object String]"]=Ln["[object Symbol]"]=Ln["[object Uint8Array]"]=Ln["[object Uint8ClampedArray]"]=Ln["[object Uint16Array]"]=Ln["[object Uint32Array]"]=true,
-Ln["[object Error]"]=Ln["[object Function]"]=Ln["[object WeakMap]"]=false;var Un={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cn=parseFloat,Dn=parseInt,Mn=typeof global=="object"&&global&&global.Object===Object&&global,Tn=typeof self=="object"&&self&&self.Object===Object&&self,$n=Mn||Tn||Function("return this")(),Fn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nn=Fn&&typeof module=="object"&&module&&!module.nodeType&&module,Pn=Nn&&Nn.exports===Fn,Zn=Pn&&Mn.process,qn=function(){
-try{var n=Nn&&Nn.f&&Nn.f("util").types;return n?n:Zn&&Zn.binding&&Zn.binding("util")}catch(n){}}(),Vn=qn&&qn.isArrayBuffer,Kn=qn&&qn.isDate,Gn=qn&&qn.isMap,Hn=qn&&qn.isRegExp,Jn=qn&&qn.isSet,Yn=qn&&qn.isTypedArray,Qn=b("length"),Xn=x({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I",
-"\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C",
-"\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i",
-"\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r",
-"\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij",
-"\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),nt=x({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),tt=x({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),rt=function x(mn){function An(n){if(yu(n)&&!ff(n)&&!(n instanceof Un)){if(n instanceof On)return n;if(oi.call(n,"__wrapped__"))return Fe(n)}return new On(n)}function En(){}function On(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=T}function Un(n){this.__wrapped__=n,
-this.__actions__=[],this.__dir__=1,this.__filtered__=false,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Tn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Fn(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Nn(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new Fn;++t<r;)this.add(n[t]);
-}function Zn(n){this.size=(this.__data__=new Tn(n)).size}function qn(n,t){var r,e=ff(n),u=!e&&of(n),i=!e&&!u&&af(n),o=!e&&!u&&!i&&_f(n),u=(e=e||u||i||o)?A(n.length,ni):[],f=u.length;for(r in n)!t&&!oi.call(n,r)||e&&("length"==r||i&&("offset"==r||"parent"==r)||o&&("buffer"==r||"byteLength"==r||"byteOffset"==r)||Se(r,f))||u.push(r);return u}function Qn(n){var t=n.length;return t?n[ir(0,t-1)]:T}function et(n,t){return De(Ur(n),pt(t,0,n.length))}function ut(n){return De(Ur(n))}function it(n,t,r){(r===T||lu(n[t],r))&&(r!==T||t in n)||st(n,t,r);
-}function ot(n,t,r){var e=n[t];oi.call(n,t)&&lu(e,r)&&(r!==T||t in n)||st(n,t,r)}function ft(n,t){for(var r=n.length;r--;)if(lu(n[r][0],t))return r;return-1}function ct(n,t,r,e){return uo(n,function(n,u,i){t(e,n,r(n),i)}),e}function at(n,t){return n&&Cr(t,Wu(t),n)}function lt(n,t){return n&&Cr(t,Bu(t),n)}function st(n,t,r){"__proto__"==t&&Ai?Ai(n,t,{configurable:true,enumerable:true,value:r,writable:true}):n[t]=r}function ht(n,t){for(var r=-1,e=t.length,u=Ku(e),i=null==n;++r<e;)u[r]=i?T:Ru(n,t[r]);return u;
-}function pt(n,t,r){return n===n&&(r!==T&&(n=n<=r?n:r),t!==T&&(n=n>=t?n:t)),n}function _t(n,t,e,u,i,o){var f,c=1&t,a=2&t,l=4&t;if(e&&(f=i?e(n,u,i,o):e(n)),f!==T)return f;if(!du(n))return n;if(u=ff(n)){if(f=me(n),!c)return Ur(n,f)}else{var s=vo(n),h="[object Function]"==s||"[object GeneratorFunction]"==s;if(af(n))return Ir(n,c);if("[object Object]"==s||"[object Arguments]"==s||h&&!i){if(f=a||h?{}:Ae(n),!c)return a?Mr(n,lt(f,n)):Dr(n,at(f,n))}else{if(!Ln[s])return i?n:{};f=Ee(n,s,c)}}if(o||(o=new Zn),
-i=o.get(n))return i;o.set(n,f),pf(n)?n.forEach(function(r){f.add(_t(r,t,e,r,n,o))}):sf(n)&&n.forEach(function(r,u){f.set(u,_t(r,t,e,u,n,o))});var a=l?a?ve:_e:a?Bu:Wu,p=u?T:a(n);return r(p||n,function(r,u){p&&(u=r,r=n[u]),ot(f,u,_t(r,t,e,u,n,o))}),f}function vt(n){var t=Wu(n);return function(r){return gt(r,n,t)}}function gt(n,t,r){var e=r.length;if(null==n)return!e;for(n=Qu(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===T&&!(u in n)||!i(o))return false}return true}function dt(n,t,r){if(typeof n!="function")throw new ti("Expected a function");
-return bo(function(){n.apply(T,r)},t)}function yt(n,t,r,e){var u=-1,i=o,a=true,l=n.length,s=[],h=t.length;if(!l)return s;r&&(t=c(t,k(r))),e?(i=f,a=false):200<=t.length&&(i=O,a=false,t=new Nn(t));n:for(;++u<l;){var p=n[u],_=null==r?p:r(p),p=e||0!==p?p:0;if(a&&_===_){for(var v=h;v--;)if(t[v]===_)continue n;s.push(p)}else i(t,_,e)||s.push(p)}return s}function bt(n,t){var r=true;return uo(n,function(n,e,u){return r=!!t(n,e,u)}),r}function xt(n,t,r){for(var e=-1,u=n.length;++e<u;){var i=n[e],o=t(i);if(null!=o&&(f===T?o===o&&!wu(o):r(o,f)))var f=o,c=i;
-}return c}function jt(n,t){var r=[];return uo(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function wt(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=ke),u||(u=[]);++i<o;){var f=n[i];0<t&&r(f)?1<t?wt(f,t-1,r,e,u):a(u,f):e||(u[u.length]=f)}return u}function mt(n,t){return n&&oo(n,t,Wu)}function At(n,t){return n&&fo(n,t,Wu)}function Et(n,t){return i(t,function(t){return _u(n[t])})}function kt(n,t){t=Sr(t,n);for(var r=0,e=t.length;null!=n&&r<e;)n=n[Me(t[r++])];return r&&r==e?n:T}function St(n,t,r){return t=t(n),
-ff(n)?t:a(t,r(n))}function Ot(n){if(null==n)n=n===T?"[object Undefined]":"[object Null]";else if(mi&&mi in Qu(n)){var t=oi.call(n,mi),r=n[mi];try{n[mi]=T;var e=true}catch(n){}var u=ai.call(n);e&&(t?n[mi]=r:delete n[mi]),n=u}else n=ai.call(n);return n}function It(n,t){return n>t}function Rt(n,t){return null!=n&&oi.call(n,t)}function zt(n,t){return null!=n&&t in Qu(n)}function Wt(n,t,r){for(var e=r?f:o,u=n[0].length,i=n.length,a=i,l=Ku(i),s=1/0,h=[];a--;){var p=n[a];a&&t&&(p=c(p,k(t))),s=Ci(p.length,s),
-l[a]=!r&&(t||120<=u&&120<=p.length)?new Nn(a&&p):T}var p=n[0],_=-1,v=l[0];n:for(;++_<u&&h.length<s;){var g=p[_],d=t?t(g):g,g=r||0!==g?g:0;if(v?!O(v,d):!e(h,d,r)){for(a=i;--a;){var y=l[a];if(y?!O(y,d):!e(n[a],d,r))continue n}v&&v.push(d),h.push(g)}}return h}function Bt(n,t,r){var e={};return mt(n,function(n,u,i){t(e,r(n),u,i)}),e}function Lt(t,r,e){return r=Sr(r,t),t=2>r.length?t:kt(t,hr(r,0,-1)),r=null==t?t:t[Me(Ve(r))],null==r?T:n(r,t,e)}function Ut(n){return yu(n)&&"[object Arguments]"==Ot(n)}function Ct(n){
-return yu(n)&&"[object ArrayBuffer]"==Ot(n)}function Dt(n){return yu(n)&&"[object Date]"==Ot(n)}function Mt(n,t,r,e,u){if(n===t)t=true;else if(null==n||null==t||!yu(n)&&!yu(t))t=n!==n&&t!==t;else n:{var i=ff(n),o=ff(t),f=i?"[object Array]":vo(n),c=o?"[object Array]":vo(t),f="[object Arguments]"==f?"[object Object]":f,c="[object Arguments]"==c?"[object Object]":c,a="[object Object]"==f,o="[object Object]"==c;if((c=f==c)&&af(n)){if(!af(t)){t=false;break n}i=true,a=false}if(c&&!a)u||(u=new Zn),t=i||_f(n)?se(n,t,r,e,Mt,u):he(n,t,f,r,e,Mt,u);else{
-if(!(1&r)&&(i=a&&oi.call(n,"__wrapped__"),f=o&&oi.call(t,"__wrapped__"),i||f)){n=i?n.value():n,t=f?t.value():t,u||(u=new Zn),t=Mt(n,t,r,e,u);break n}if(c)t:if(u||(u=new Zn),i=1&r,f=_e(n),o=f.length,c=_e(t).length,o==c||i){for(a=o;a--;){var l=f[a];if(!(i?l in t:oi.call(t,l))){t=false;break t}}if((c=u.get(n))&&u.get(t))t=c==t;else{c=true,u.set(n,t),u.set(t,n);for(var s=i;++a<o;){var l=f[a],h=n[l],p=t[l];if(e)var _=i?e(p,h,l,t,n,u):e(h,p,l,n,t,u);if(_===T?h!==p&&!Mt(h,p,r,e,u):!_){c=false;break}s||(s="constructor"==l);
-}c&&!s&&(r=n.constructor,e=t.constructor,r!=e&&"constructor"in n&&"constructor"in t&&!(typeof r=="function"&&r instanceof r&&typeof e=="function"&&e instanceof e)&&(c=false)),u.delete(n),u.delete(t),t=c}}else t=false;else t=false}}return t}function Tt(n){return yu(n)&&"[object Map]"==vo(n)}function $t(n,t,r,e){var u=r.length,i=u,o=!e;if(null==n)return!i;for(n=Qu(n);u--;){var f=r[u];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return false}for(;++u<i;){var f=r[u],c=f[0],a=n[c],l=f[1];if(o&&f[2]){if(a===T&&!(c in n))return false;
-}else{if(f=new Zn,e)var s=e(a,l,c,n,t,f);if(s===T?!Mt(l,a,3,e,f):!s)return false}}return true}function Ft(n){return!(!du(n)||ci&&ci in n)&&(_u(n)?hi:dn).test(Te(n))}function Nt(n){return yu(n)&&"[object RegExp]"==Ot(n)}function Pt(n){return yu(n)&&"[object Set]"==vo(n)}function Zt(n){return yu(n)&&gu(n.length)&&!!Bn[Ot(n)]}function qt(n){return typeof n=="function"?n:null==n?$u:typeof n=="object"?ff(n)?Jt(n[0],n[1]):Ht(n):Zu(n)}function Vt(n){if(!ze(n))return Li(n);var t,r=[];for(t in Qu(n))oi.call(n,t)&&"constructor"!=t&&r.push(t);
-return r}function Kt(n,t){return n<t}function Gt(n,t){var r=-1,e=su(n)?Ku(n.length):[];return uo(n,function(n,u,i){e[++r]=t(n,u,i)}),e}function Ht(n){var t=xe(n);return 1==t.length&&t[0][2]?We(t[0][0],t[0][1]):function(r){return r===n||$t(r,n,t)}}function Jt(n,t){return Ie(n)&&t===t&&!du(t)?We(Me(n),t):function(r){var e=Ru(r,n);return e===T&&e===t?zu(r,n):Mt(t,e,3)}}function Yt(n,t,r,e,u){n!==t&&oo(t,function(i,o){if(u||(u=new Zn),du(i)){var f=u,c=Le(n,o),a=Le(t,o),l=f.get(a);if(l)it(n,o,l);else{
-var l=e?e(c,a,o+"",n,t,f):T,s=l===T;if(s){var h=ff(a),p=!h&&af(a),_=!h&&!p&&_f(a),l=a;h||p||_?ff(c)?l=c:hu(c)?l=Ur(c):p?(s=false,l=Ir(a,true)):_?(s=false,l=zr(a,true)):l=[]:xu(a)||of(a)?(l=c,of(c)?l=Ou(c):du(c)&&!_u(c)||(l=Ae(a))):s=false}s&&(f.set(a,l),Yt(l,a,r,e,f),f.delete(a)),it(n,o,l)}}else f=e?e(Le(n,o),i,o+"",n,t,u):T,f===T&&(f=i),it(n,o,f)},Bu)}function Qt(n,t){var r=n.length;if(r)return t+=0>t?r:0,Se(t,r)?n[t]:T}function Xt(n,t,r){var e=-1;return t=c(t.length?t:[$u],k(ye())),n=Gt(n,function(n){return{
-a:c(t,function(t){return t(n)}),b:++e,c:n}}),w(n,function(n,t){var e;n:{e=-1;for(var u=n.a,i=t.a,o=u.length,f=r.length;++e<o;){var c=Wr(u[e],i[e]);if(c){e=e>=f?c:c*("desc"==r[e]?-1:1);break n}}e=n.b-t.b}return e})}function nr(n,t){return tr(n,t,function(t,r){return zu(n,r)})}function tr(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=kt(n,o);r(f,o)&&lr(i,Sr(o,n),f)}return i}function rr(n){return function(t){return kt(t,n)}}function er(n,t,r,e){var u=e?g:v,i=-1,o=t.length,f=n;for(n===t&&(t=Ur(t)),
-r&&(f=c(n,k(r)));++i<o;)for(var a=0,l=t[i],l=r?r(l):l;-1<(a=u(f,l,a,e));)f!==n&&xi.call(f,a,1),xi.call(n,a,1);return n}function ur(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Se(u)?xi.call(n,u,1):xr(n,u)}}}function ir(n,t){return n+Ii(Ti()*(t-n+1))}function or(n,t){var r="";if(!n||1>t||9007199254740991<t)return r;do t%2&&(r+=n),(t=Ii(t/2))&&(n+=n);while(t);return r}function fr(n,t){return xo(Be(n,t,$u),n+"")}function cr(n){return Qn(Uu(n))}function ar(n,t){var r=Uu(n);
-return De(r,pt(t,0,r.length))}function lr(n,t,r,e){if(!du(n))return n;t=Sr(t,n);for(var u=-1,i=t.length,o=i-1,f=n;null!=f&&++u<i;){var c=Me(t[u]),a=r;if(u!=o){var l=f[c],a=e?e(l,c,f):T;a===T&&(a=du(l)?l:Se(t[u+1])?[]:{})}ot(f,c,a),f=f[c]}return n}function sr(n){return De(Uu(n))}function hr(n,t,r){var e=-1,u=n.length;for(0>t&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Ku(u);++e<u;)r[e]=n[e+t];return r}function pr(n,t){var r;return uo(n,function(n,e,u){return r=t(n,e,u),!r}),!!r}
-function _r(n,t,r){var e=0,u=null==n?e:n.length;if(typeof t=="number"&&t===t&&2147483647>=u){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!wu(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return vr(n,t,$u,r)}function vr(n,t,r,e){t=r(t);for(var u=0,i=null==n?0:n.length,o=t!==t,f=null===t,c=wu(t),a=t===T;u<i;){var l=Ii((u+i)/2),s=r(n[l]),h=s!==T,p=null===s,_=s===s,v=wu(s);(o?e||_:a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):p||v?0:e?s<=t:s<t)?u=l+1:i=l}return Ci(i,4294967294)}function gr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){
-var o=n[r],f=t?t(o):o;if(!r||!lu(f,c)){var c=f;i[u++]=0===o?0:o}}return i}function dr(n){return typeof n=="number"?n:wu(n)?F:+n}function yr(n){if(typeof n=="string")return n;if(ff(n))return c(n,yr)+"";if(wu(n))return ro?ro.call(n):"";var t=n+"";return"0"==t&&1/n==-$?"-0":t}function br(n,t,r){var e=-1,u=o,i=n.length,c=true,a=[],l=a;if(r)c=false,u=f;else if(200<=i){if(u=t?null:so(n))return U(u);c=false,u=O,l=new Nn}else l=t?[]:a;n:for(;++e<i;){var s=n[e],h=t?t(s):s,s=r||0!==s?s:0;if(c&&h===h){for(var p=l.length;p--;)if(l[p]===h)continue n;
-t&&l.push(h),a.push(s)}else u(l,h,r)||(l!==a&&l.push(h),a.push(s))}return a}function xr(n,t){return t=Sr(t,n),n=2>t.length?n:kt(n,hr(t,0,-1)),null==n||delete n[Me(Ve(t))]}function jr(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?hr(n,e?0:i,e?i+1:u):hr(n,e?i+1:0,e?u:i)}function wr(n,t){var r=n;return r instanceof Un&&(r=r.value()),l(t,function(n,t){return t.func.apply(t.thisArg,a([n],t.args))},r)}function mr(n,t,r){var e=n.length;if(2>e)return e?br(n[0]):[];for(var u=-1,i=Ku(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=yt(i[u]||o,n[f],t,r));
-return br(wt(i,1),t,r)}function Ar(n,t,r){for(var e=-1,u=n.length,i=t.length,o={};++e<u;)r(o,n[e],e<i?t[e]:T);return o}function Er(n){return hu(n)?n:[]}function kr(n){return typeof n=="function"?n:$u}function Sr(n,t){return ff(n)?n:Ie(n,t)?[n]:jo(Iu(n))}function Or(n,t,r){var e=n.length;return r=r===T?e:r,!t&&r>=e?n:hr(n,t,r)}function Ir(n,t){if(t)return n.slice();var r=n.length,r=gi?gi(r):new n.constructor(r);return n.copy(r),r}function Rr(n){var t=new n.constructor(n.byteLength);return new vi(t).set(new vi(n)),
-t}function zr(n,t){return new n.constructor(t?Rr(n.buffer):n.buffer,n.byteOffset,n.length)}function Wr(n,t){if(n!==t){var r=n!==T,e=null===n,u=n===n,i=wu(n),o=t!==T,f=null===t,c=t===t,a=wu(t);if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n<t||a&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!c)return-1}return 0}function Br(n,t,r,e){var u=-1,i=n.length,o=r.length,f=-1,c=t.length,a=Ui(i-o,0),l=Ku(c+a);for(e=!e;++f<c;)l[f]=t[f];for(;++u<o;)(e||u<i)&&(l[r[u]]=n[u]);for(;a--;)l[f++]=n[u++];
-return l}function Lr(n,t,r,e){var u=-1,i=n.length,o=-1,f=r.length,c=-1,a=t.length,l=Ui(i-f,0),s=Ku(l+a);for(e=!e;++u<l;)s[u]=n[u];for(l=u;++c<a;)s[l+c]=t[c];for(;++o<f;)(e||u<i)&&(s[l+r[o]]=n[u++]);return s}function Ur(n,t){var r=-1,e=n.length;for(t||(t=Ku(e));++r<e;)t[r]=n[r];return t}function Cr(n,t,r,e){var u=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var f=t[i],c=e?e(r[f],n[f],f,r,n):T;c===T&&(c=n[f]),u?st(r,f,c):ot(r,f,c)}return r}function Dr(n,t){return Cr(n,po(n),t)}function Mr(n,t){return Cr(n,_o(n),t);
-}function Tr(n,r){return function(e,u){var i=ff(e)?t:ct,o=r?r():{};return i(e,n,ye(u,2),o)}}function $r(n){return fr(function(t,r){var e=-1,u=r.length,i=1<u?r[u-1]:T,o=2<u?r[2]:T,i=3<n.length&&typeof i=="function"?(u--,i):T;for(o&&Oe(r[0],r[1],o)&&(i=3>u?T:i,u=1),t=Qu(t);++e<u;)(o=r[e])&&n(t,o,e,i);return t})}function Fr(n,t){return function(r,e){if(null==r)return r;if(!su(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=Qu(r);(t?i--:++i<u)&&false!==e(o[i],i,o););return r}}function Nr(n){return function(t,r,e){
-var u=-1,i=Qu(t);e=e(t);for(var o=e.length;o--;){var f=e[n?o:++u];if(false===r(i[f],f,i))break}return t}}function Pr(n,t,r){function e(){return(this&&this!==$n&&this instanceof e?i:n).apply(u?r:this,arguments)}var u=1&t,i=Vr(n);return e}function Zr(n){return function(t){t=Iu(t);var r=Rn.test(t)?M(t):T,e=r?r[0]:t.charAt(0);return t=r?Or(r,1).join(""):t.slice(1),e[n]()+t}}function qr(n){return function(t){return l(Mu(Du(t).replace(kn,"")),n,"")}}function Vr(n){return function(){var t=arguments;switch(t.length){
-case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=eo(n.prototype),t=n.apply(r,t);return du(t)?t:r}}function Kr(t,r,e){function u(){for(var o=arguments.length,f=Ku(o),c=o,a=de(u);c--;)f[c]=arguments[c];return c=3>o&&f[0]!==a&&f[o-1]!==a?[]:L(f,a),
-o-=c.length,o<e?ue(t,r,Jr,u.placeholder,T,f,c,T,T,e-o):n(this&&this!==$n&&this instanceof u?i:t,this,f)}var i=Vr(t);return u}function Gr(n){return function(t,r,e){var u=Qu(t);if(!su(t)){var i=ye(r,3);t=Wu(t),r=function(n){return i(u[n],n,u)}}return r=n(t,r,e),-1<r?u[i?t[r]:r]:T}}function Hr(n){return pe(function(t){var r=t.length,e=r,u=On.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if(typeof i!="function")throw new ti("Expected a function");if(u&&!o&&"wrapper"==ge(i))var o=new On([],true)}for(e=o?e:r;++e<r;)var i=t[e],u=ge(i),f="wrapper"==u?ho(i):T,o=f&&Re(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?o[ge(f[0])].apply(o,f[3]):1==i.length&&Re(i)?o[u]():o.thru(i);
-return function(){var n=arguments,e=n[0];if(o&&1==n.length&&ff(e))return o.plant(e).value();for(var u=0,n=r?t[u].apply(this,n):e;++u<r;)n=t[u].call(this,n);return n}})}function Jr(n,t,r,e,u,i,o,f,c,a){function l(){for(var d=arguments.length,y=Ku(d),b=d;b--;)y[b]=arguments[b];if(_){var x,j=de(l),b=y.length;for(x=0;b--;)y[b]===j&&++x}if(e&&(y=Br(y,e,u,_)),i&&(y=Lr(y,i,o,_)),d-=x,_&&d<a)return j=L(y,j),ue(n,t,Jr,l.placeholder,r,y,j,f,c,a-d);if(j=h?r:this,b=p?j[n]:n,d=y.length,f){x=y.length;for(var w=Ci(f.length,x),m=Ur(y);w--;){
-var A=f[w];y[w]=Se(A,x)?m[A]:T}}else v&&1<d&&y.reverse();return s&&c<d&&(y.length=c),this&&this!==$n&&this instanceof l&&(b=g||Vr(b)),b.apply(j,y)}var s=128&t,h=1&t,p=2&t,_=24&t,v=512&t,g=p?T:Vr(n);return l}function Yr(n,t){return function(r,e){return Bt(r,n,t(e))}}function Qr(n,t){return function(r,e){var u;if(r===T&&e===T)return t;if(r!==T&&(u=r),e!==T){if(u===T)return e;typeof r=="string"||typeof e=="string"?(r=yr(r),e=yr(e)):(r=dr(r),e=dr(e)),u=n(r,e)}return u}}function Xr(t){return pe(function(r){
-return r=c(r,k(ye())),fr(function(e){var u=this;return t(r,function(t){return n(t,u,e)})})})}function ne(n,t){t=t===T?" ":yr(t);var r=t.length;return 2>r?r?or(t,n):t:(r=or(t,Oi(n/D(t))),Rn.test(t)?Or(M(r),0,n).join(""):r.slice(0,n))}function te(t,r,e,u){function i(){for(var r=-1,c=arguments.length,a=-1,l=u.length,s=Ku(l+c),h=this&&this!==$n&&this instanceof i?f:t;++a<l;)s[a]=u[a];for(;c--;)s[a++]=arguments[++r];return n(h,o?e:this,s)}var o=1&r,f=Vr(t);return i}function re(n){return function(t,r,e){
-e&&typeof e!="number"&&Oe(t,r,e)&&(r=e=T),t=Au(t),r===T?(r=t,t=0):r=Au(r),e=e===T?t<r?1:-1:Au(e);var u=-1;r=Ui(Oi((r-t)/(e||1)),0);for(var i=Ku(r);r--;)i[n?r:++u]=t,t+=e;return i}}function ee(n){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Su(t),r=Su(r)),n(t,r)}}function ue(n,t,r,e,u,i,o,f,c,a){var l=8&t,s=l?o:T;o=l?T:o;var h=l?i:T;return i=l?T:i,t=(t|(l?32:64))&~(l?64:32),4&t||(t&=-4),u=[n,t,u,h,s,i,o,f,c,a],r=r.apply(T,u),Re(n)&&yo(r,u),r.placeholder=e,Ue(r,n,t)}function ie(n){
-var t=Yu[n];return function(n,r){if(n=Su(n),(r=null==r?0:Ci(Eu(r),292))&&Wi(n)){var e=(Iu(n)+"e").split("e"),e=t(e[0]+"e"+(+e[1]+r)),e=(Iu(e)+"e").split("e");return+(e[0]+"e"+(+e[1]-r))}return t(n)}}function oe(n){return function(t){var r=vo(t);return"[object Map]"==r?W(t):"[object Set]"==r?C(t):E(t,n(t))}}function fe(n,t,r,e,u,i,o,f){var c=2&t;if(!c&&typeof n!="function")throw new ti("Expected a function");var a=e?e.length:0;if(a||(t&=-97,e=u=T),o=o===T?o:Ui(Eu(o),0),f=f===T?f:Eu(f),a-=u?u.length:0,
-64&t){var l=e,s=u;e=u=T}var h=c?T:ho(n);return i=[n,t,r,e,u,l,s,i,o,f],h&&(r=i[1],n=h[1],t=r|n,e=128==n&&8==r||128==n&&256==r&&i[7].length<=h[8]||384==n&&h[7].length<=h[8]&&8==r,131>t||e)&&(1&n&&(i[2]=h[2],t|=1&r?0:4),(r=h[3])&&(e=i[3],i[3]=e?Br(e,r,h[4]):r,i[4]=e?L(i[3],"__lodash_placeholder__"):h[4]),(r=h[5])&&(e=i[5],i[5]=e?Lr(e,r,h[6]):r,i[6]=e?L(i[5],"__lodash_placeholder__"):h[6]),(r=h[7])&&(i[7]=r),128&n&&(i[8]=null==i[8]?h[8]:Ci(i[8],h[8])),null==i[9]&&(i[9]=h[9]),i[0]=h[0],i[1]=t),n=i[0],
-t=i[1],r=i[2],e=i[3],u=i[4],f=i[9]=i[9]===T?c?0:n.length:Ui(i[9]-a,0),!f&&24&t&&(t&=-25),Ue((h?co:yo)(t&&1!=t?8==t||16==t?Kr(n,t,f):32!=t&&33!=t||u.length?Jr.apply(T,i):te(n,t,r,e):Pr(n,t,r),i),n,t)}function ce(n,t,r,e){return n===T||lu(n,ei[r])&&!oi.call(e,r)?t:n}function ae(n,t,r,e,u,i){return du(n)&&du(t)&&(i.set(t,n),Yt(n,t,T,ae,i),i.delete(t)),n}function le(n){return xu(n)?T:n}function se(n,t,r,e,u,i){var o=1&r,f=n.length,c=t.length;if(f!=c&&!(o&&c>f))return false;if((c=i.get(n))&&i.get(t))return c==t;
-var c=-1,a=true,l=2&r?new Nn:T;for(i.set(n,t),i.set(t,n);++c<f;){var s=n[c],p=t[c];if(e)var _=o?e(p,s,c,t,n,i):e(s,p,c,n,t,i);if(_!==T){if(_)continue;a=false;break}if(l){if(!h(t,function(n,t){if(!O(l,t)&&(s===n||u(s,n,r,e,i)))return l.push(t)})){a=false;break}}else if(s!==p&&!u(s,p,r,e,i)){a=false;break}}return i.delete(n),i.delete(t),a}function he(n,t,r,e,u,i,o){switch(r){case"[object DataView]":if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)break;n=n.buffer,t=t.buffer;case"[object ArrayBuffer]":
-if(n.byteLength!=t.byteLength||!i(new vi(n),new vi(t)))break;return true;case"[object Boolean]":case"[object Date]":case"[object Number]":return lu(+n,+t);case"[object Error]":return n.name==t.name&&n.message==t.message;case"[object RegExp]":case"[object String]":return n==t+"";case"[object Map]":var f=W;case"[object Set]":if(f||(f=U),n.size!=t.size&&!(1&e))break;return(r=o.get(n))?r==t:(e|=2,o.set(n,t),t=se(f(n),f(t),e,u,i,o),o.delete(n),t);case"[object Symbol]":if(to)return to.call(n)==to.call(t)}
-return false}function pe(n){return xo(Be(n,T,Ze),n+"")}function _e(n){return St(n,Wu,po)}function ve(n){return St(n,Bu,_o)}function ge(n){for(var t=n.name+"",r=Gi[t],e=oi.call(Gi,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function de(n){return(oi.call(An,"placeholder")?An:n).placeholder}function ye(){var n=An.iteratee||Fu,n=n===Fu?qt:n;return arguments.length?n(arguments[0],arguments[1]):n}function be(n,t){var r=n.__data__,e=typeof t;return("string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t)?r[typeof t=="string"?"string":"hash"]:r.map;
-}function xe(n){for(var t=Wu(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,u===u&&!du(u)]}return t}function je(n,t){var r=null==n?T:n[t];return Ft(r)?r:T}function we(n,t,r){t=Sr(t,n);for(var e=-1,u=t.length,i=false;++e<u;){var o=Me(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:(u=null==n?0:n.length,!!u&&gu(u)&&Se(o,u)&&(ff(n)||of(n)))}function me(n){var t=n.length,r=new n.constructor(t);return t&&"string"==typeof n[0]&&oi.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Ae(n){
-return typeof n.constructor!="function"||ze(n)?{}:eo(di(n))}function Ee(n,t,r){var e=n.constructor;switch(t){case"[object ArrayBuffer]":return Rr(n);case"[object Boolean]":case"[object Date]":return new e(+n);case"[object DataView]":return t=r?Rr(n.buffer):n.buffer,new n.constructor(t,n.byteOffset,n.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":
-case"[object Uint16Array]":case"[object Uint32Array]":return zr(n,r);case"[object Map]":return new e;case"[object Number]":case"[object String]":return new e(n);case"[object RegExp]":return t=new n.constructor(n.source,_n.exec(n)),t.lastIndex=n.lastIndex,t;case"[object Set]":return new e;case"[object Symbol]":return to?Qu(to.call(n)):{}}}function ke(n){return ff(n)||of(n)||!!(ji&&n&&n[ji])}function Se(n,t){var r=typeof n;return t=null==t?9007199254740991:t,!!t&&("number"==r||"symbol"!=r&&bn.test(n))&&-1<n&&0==n%1&&n<t;
-}function Oe(n,t,r){if(!du(r))return false;var e=typeof t;return!!("number"==e?su(r)&&Se(t,r.length):"string"==e&&t in r)&&lu(r[t],n)}function Ie(n,t){if(ff(n))return false;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!wu(n))||(nn.test(n)||!X.test(n)||null!=t&&n in Qu(t))}function Re(n){var t=ge(n),r=An[t];return typeof r=="function"&&t in Un.prototype&&(n===r||(t=ho(r),!!t&&n===t[0]))}function ze(n){var t=n&&n.constructor;return n===(typeof t=="function"&&t.prototype||ei)}function We(n,t){
-return function(r){return null!=r&&(r[n]===t&&(t!==T||n in Qu(r)))}}function Be(t,r,e){return r=Ui(r===T?t.length-1:r,0),function(){for(var u=arguments,i=-1,o=Ui(u.length-r,0),f=Ku(o);++i<o;)f[i]=u[r+i];for(i=-1,o=Ku(r+1);++i<r;)o[i]=u[i];return o[r]=e(f),n(t,this,o)}}function Le(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}function Ue(n,t,r){var e=t+"";t=xo;var u,i=$e;return u=(u=e.match(an))?u[1].split(ln):[],r=i(u,r),(i=r.length)&&(u=i-1,r[u]=(1<i?"& ":"")+r[u],
-r=r.join(2<i?", ":" "),e=e.replace(cn,"{\n/* [wrapped with "+r+"] */\n")),t(n,e)}function Ce(n){var t=0,r=0;return function(){var e=Di(),u=16-(e-r);if(r=e,0<u){if(800<=++t)return arguments[0]}else t=0;return n.apply(T,arguments)}}function De(n,t){var r=-1,e=n.length,u=e-1;for(t=t===T?e:t;++r<t;){var e=ir(r,u),i=n[e];n[e]=n[r],n[r]=i}return n.length=t,n}function Me(n){if(typeof n=="string"||wu(n))return n;var t=n+"";return"0"==t&&1/n==-$?"-0":t}function Te(n){if(null!=n){try{return ii.call(n)}catch(n){}
-return n+""}return""}function $e(n,t){return r(N,function(r){var e="_."+r[0];t&r[1]&&!o(n,e)&&n.push(e)}),n.sort()}function Fe(n){if(n instanceof Un)return n.clone();var t=new On(n.__wrapped__,n.__chain__);return t.__actions__=Ur(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function Ne(n,t,r){var e=null==n?0:n.length;return e?(r=null==r?0:Eu(r),0>r&&(r=Ui(e+r,0)),_(n,ye(t,3),r)):-1}function Pe(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e-1;return r!==T&&(u=Eu(r),u=0>r?Ui(e+u,0):Ci(u,e-1)),
-_(n,ye(t,3),u,true)}function Ze(n){return(null==n?0:n.length)?wt(n,1):[]}function qe(n){return n&&n.length?n[0]:T}function Ve(n){var t=null==n?0:n.length;return t?n[t-1]:T}function Ke(n,t){return n&&n.length&&t&&t.length?er(n,t):n}function Ge(n){return null==n?n:$i.call(n)}function He(n){if(!n||!n.length)return[];var t=0;return n=i(n,function(n){if(hu(n))return t=Ui(n.length,t),true}),A(t,function(t){return c(n,b(t))})}function Je(t,r){if(!t||!t.length)return[];var e=He(t);return null==r?e:c(e,function(t){
-return n(r,T,t)})}function Ye(n){return n=An(n),n.__chain__=true,n}function Qe(n,t){return t(n)}function Xe(){return this}function nu(n,t){return(ff(n)?r:uo)(n,ye(t,3))}function tu(n,t){return(ff(n)?e:io)(n,ye(t,3))}function ru(n,t){return(ff(n)?c:Gt)(n,ye(t,3))}function eu(n,t,r){return t=r?T:t,t=n&&null==t?n.length:t,fe(n,128,T,T,T,T,t)}function uu(n,t){var r;if(typeof t!="function")throw new ti("Expected a function");return n=Eu(n),function(){return 0<--n&&(r=t.apply(this,arguments)),1>=n&&(t=T),
-r}}function iu(n,t,r){return t=r?T:t,n=fe(n,8,T,T,T,T,T,t),n.placeholder=iu.placeholder,n}function ou(n,t,r){return t=r?T:t,n=fe(n,16,T,T,T,T,T,t),n.placeholder=ou.placeholder,n}function fu(n,t,r){function e(t){var r=c,e=a;return c=a=T,_=t,s=n.apply(e,r)}function u(n){var r=n-p;return n-=_,p===T||r>=t||0>r||g&&n>=l}function i(){var n=Go();if(u(n))return o(n);var r,e=bo;r=n-_,n=t-(n-p),r=g?Ci(n,l-r):n,h=e(i,r)}function o(n){return h=T,d&&c?e(n):(c=a=T,s)}function f(){var n=Go(),r=u(n);if(c=arguments,
-a=this,p=n,r){if(h===T)return _=n=p,h=bo(i,t),v?e(n):s;if(g)return lo(h),h=bo(i,t),e(p)}return h===T&&(h=bo(i,t)),s}var c,a,l,s,h,p,_=0,v=false,g=false,d=true;if(typeof n!="function")throw new ti("Expected a function");return t=Su(t)||0,du(r)&&(v=!!r.leading,l=(g="maxWait"in r)?Ui(Su(r.maxWait)||0,t):l,d="trailing"in r?!!r.trailing:d),f.cancel=function(){h!==T&&lo(h),_=0,c=p=a=h=T},f.flush=function(){return h===T?s:o(Go())},f}function cu(n,t){function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;
-return i.has(u)?i.get(u):(e=n.apply(this,e),r.cache=i.set(u,e)||i,e)}if(typeof n!="function"||null!=t&&typeof t!="function")throw new ti("Expected a function");return r.cache=new(cu.Cache||Fn),r}function au(n){if(typeof n!="function")throw new ti("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function lu(n,t){return n===t||n!==n&&t!==t;
-}function su(n){return null!=n&&gu(n.length)&&!_u(n)}function hu(n){return yu(n)&&su(n)}function pu(n){if(!yu(n))return false;var t=Ot(n);return"[object Error]"==t||"[object DOMException]"==t||typeof n.message=="string"&&typeof n.name=="string"&&!xu(n)}function _u(n){return!!du(n)&&(n=Ot(n),"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n)}function vu(n){return typeof n=="number"&&n==Eu(n)}function gu(n){return typeof n=="number"&&-1<n&&0==n%1&&9007199254740991>=n;
-}function du(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function yu(n){return null!=n&&typeof n=="object"}function bu(n){return typeof n=="number"||yu(n)&&"[object Number]"==Ot(n)}function xu(n){return!(!yu(n)||"[object Object]"!=Ot(n))&&(n=di(n),null===n||(n=oi.call(n,"constructor")&&n.constructor,typeof n=="function"&&n instanceof n&&ii.call(n)==li))}function ju(n){return typeof n=="string"||!ff(n)&&yu(n)&&"[object String]"==Ot(n)}function wu(n){return typeof n=="symbol"||yu(n)&&"[object Symbol]"==Ot(n);
-}function mu(n){if(!n)return[];if(su(n))return ju(n)?M(n):Ur(n);if(wi&&n[wi]){n=n[wi]();for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}return t=vo(n),("[object Map]"==t?W:"[object Set]"==t?U:Uu)(n)}function Au(n){return n?(n=Su(n),n===$||n===-$?1.7976931348623157e308*(0>n?-1:1):n===n?n:0):0===n?n:0}function Eu(n){n=Au(n);var t=n%1;return n===n?t?n-t:n:0}function ku(n){return n?pt(Eu(n),0,4294967295):0}function Su(n){if(typeof n=="number")return n;if(wu(n))return F;if(du(n)&&(n=typeof n.valueOf=="function"?n.valueOf():n,
-n=du(n)?n+"":n),typeof n!="string")return 0===n?n:+n;n=n.replace(un,"");var t=gn.test(n);return t||yn.test(n)?Dn(n.slice(2),t?2:8):vn.test(n)?F:+n}function Ou(n){return Cr(n,Bu(n))}function Iu(n){return null==n?"":yr(n)}function Ru(n,t,r){return n=null==n?T:kt(n,t),n===T?r:n}function zu(n,t){return null!=n&&we(n,t,zt)}function Wu(n){return su(n)?qn(n):Vt(n)}function Bu(n){if(su(n))n=qn(n,true);else if(du(n)){var t,r=ze(n),e=[];for(t in n)("constructor"!=t||!r&&oi.call(n,t))&&e.push(t);n=e}else{if(t=[],
-null!=n)for(r in Qu(n))t.push(r);n=t}return n}function Lu(n,t){if(null==n)return{};var r=c(ve(n),function(n){return[n]});return t=ye(t),tr(n,r,function(n,r){return t(n,r[0])})}function Uu(n){return null==n?[]:S(n,Wu(n))}function Cu(n){return $f(Iu(n).toLowerCase())}function Du(n){return(n=Iu(n))&&n.replace(xn,Xn).replace(Sn,"")}function Mu(n,t,r){return n=Iu(n),t=r?T:t,t===T?zn.test(n)?n.match(In)||[]:n.match(sn)||[]:n.match(t)||[]}function Tu(n){return function(){return n}}function $u(n){return n;
-}function Fu(n){return qt(typeof n=="function"?n:_t(n,1))}function Nu(n,t,e){var u=Wu(t),i=Et(t,u);null!=e||du(t)&&(i.length||!u.length)||(e=t,t=n,n=this,i=Et(t,Wu(t)));var o=!(du(e)&&"chain"in e&&!e.chain),f=_u(n);return r(i,function(r){var e=t[r];n[r]=e,f&&(n.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=n(this.__wrapped__);return(r.__actions__=Ur(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,a([this.value()],arguments))})}),n}function Pu(){}
-function Zu(n){return Ie(n)?b(Me(n)):rr(n)}function qu(){return[]}function Vu(){return false}mn=null==mn?$n:rt.defaults($n.Object(),mn,rt.pick($n,Wn));var Ku=mn.Array,Gu=mn.Date,Hu=mn.Error,Ju=mn.Function,Yu=mn.Math,Qu=mn.Object,Xu=mn.RegExp,ni=mn.String,ti=mn.TypeError,ri=Ku.prototype,ei=Qu.prototype,ui=mn["__core-js_shared__"],ii=Ju.prototype.toString,oi=ei.hasOwnProperty,fi=0,ci=function(){var n=/[^.]+$/.exec(ui&&ui.keys&&ui.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ai=ei.toString,li=ii.call(Qu),si=$n._,hi=Xu("^"+ii.call(oi).replace(rn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pi=Pn?mn.Buffer:T,_i=mn.Symbol,vi=mn.Uint8Array,gi=pi?pi.g:T,di=B(Qu.getPrototypeOf,Qu),yi=Qu.create,bi=ei.propertyIsEnumerable,xi=ri.splice,ji=_i?_i.isConcatSpreadable:T,wi=_i?_i.iterator:T,mi=_i?_i.toStringTag:T,Ai=function(){
-try{var n=je(Qu,"defineProperty");return n({},"",{}),n}catch(n){}}(),Ei=mn.clearTimeout!==$n.clearTimeout&&mn.clearTimeout,ki=Gu&&Gu.now!==$n.Date.now&&Gu.now,Si=mn.setTimeout!==$n.setTimeout&&mn.setTimeout,Oi=Yu.ceil,Ii=Yu.floor,Ri=Qu.getOwnPropertySymbols,zi=pi?pi.isBuffer:T,Wi=mn.isFinite,Bi=ri.join,Li=B(Qu.keys,Qu),Ui=Yu.max,Ci=Yu.min,Di=Gu.now,Mi=mn.parseInt,Ti=Yu.random,$i=ri.reverse,Fi=je(mn,"DataView"),Ni=je(mn,"Map"),Pi=je(mn,"Promise"),Zi=je(mn,"Set"),qi=je(mn,"WeakMap"),Vi=je(Qu,"create"),Ki=qi&&new qi,Gi={},Hi=Te(Fi),Ji=Te(Ni),Yi=Te(Pi),Qi=Te(Zi),Xi=Te(qi),no=_i?_i.prototype:T,to=no?no.valueOf:T,ro=no?no.toString:T,eo=function(){
-function n(){}return function(t){return du(t)?yi?yi(t):(n.prototype=t,t=new n,n.prototype=T,t):{}}}();An.templateSettings={escape:J,evaluate:Y,interpolate:Q,variable:"",imports:{_:An}},An.prototype=En.prototype,An.prototype.constructor=An,On.prototype=eo(En.prototype),On.prototype.constructor=On,Un.prototype=eo(En.prototype),Un.prototype.constructor=Un,Mn.prototype.clear=function(){this.__data__=Vi?Vi(null):{},this.size=0},Mn.prototype.delete=function(n){return n=this.has(n)&&delete this.__data__[n],
-this.size-=n?1:0,n},Mn.prototype.get=function(n){var t=this.__data__;return Vi?(n=t[n],"__lodash_hash_undefined__"===n?T:n):oi.call(t,n)?t[n]:T},Mn.prototype.has=function(n){var t=this.__data__;return Vi?t[n]!==T:oi.call(t,n)},Mn.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Vi&&t===T?"__lodash_hash_undefined__":t,this},Tn.prototype.clear=function(){this.__data__=[],this.size=0},Tn.prototype.delete=function(n){var t=this.__data__;return n=ft(t,n),!(0>n)&&(n==t.length-1?t.pop():xi.call(t,n,1),
---this.size,true)},Tn.prototype.get=function(n){var t=this.__data__;return n=ft(t,n),0>n?T:t[n][1]},Tn.prototype.has=function(n){return-1<ft(this.__data__,n)},Tn.prototype.set=function(n,t){var r=this.__data__,e=ft(r,n);return 0>e?(++this.size,r.push([n,t])):r[e][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Mn,map:new(Ni||Tn),string:new Mn}},Fn.prototype.delete=function(n){return n=be(this,n).delete(n),this.size-=n?1:0,n},Fn.prototype.get=function(n){return be(this,n).get(n);
-},Fn.prototype.has=function(n){return be(this,n).has(n)},Fn.prototype.set=function(n,t){var r=be(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Nn.prototype.add=Nn.prototype.push=function(n){return this.__data__.set(n,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(n){return this.__data__.has(n)},Zn.prototype.clear=function(){this.__data__=new Tn,this.size=0},Zn.prototype.delete=function(n){var t=this.__data__;return n=t.delete(n),this.size=t.size,n},Zn.prototype.get=function(n){
-return this.__data__.get(n)},Zn.prototype.has=function(n){return this.__data__.has(n)},Zn.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Tn){var e=r.__data__;if(!Ni||199>e.length)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Fn(e)}return r.set(n,t),this.size=r.size,this};var uo=Fr(mt),io=Fr(At,true),oo=Nr(),fo=Nr(true),co=Ki?function(n,t){return Ki.set(n,t),n}:$u,ao=Ai?function(n,t){return Ai(n,"toString",{configurable:true,enumerable:false,value:Tu(t),writable:true})}:$u,lo=Ei||function(n){
-return $n.clearTimeout(n)},so=Zi&&1/U(new Zi([,-0]))[1]==$?function(n){return new Zi(n)}:Pu,ho=Ki?function(n){return Ki.get(n)}:Pu,po=Ri?function(n){return null==n?[]:(n=Qu(n),i(Ri(n),function(t){return bi.call(n,t)}))}:qu,_o=Ri?function(n){for(var t=[];n;)a(t,po(n)),n=di(n);return t}:qu,vo=Ot;(Fi&&"[object DataView]"!=vo(new Fi(new ArrayBuffer(1)))||Ni&&"[object Map]"!=vo(new Ni)||Pi&&"[object Promise]"!=vo(Pi.resolve())||Zi&&"[object Set]"!=vo(new Zi)||qi&&"[object WeakMap]"!=vo(new qi))&&(vo=function(n){
-var t=Ot(n);if(n=(n="[object Object]"==t?n.constructor:T)?Te(n):"")switch(n){case Hi:return"[object DataView]";case Ji:return"[object Map]";case Yi:return"[object Promise]";case Qi:return"[object Set]";case Xi:return"[object WeakMap]"}return t});var go=ui?_u:Vu,yo=Ce(co),bo=Si||function(n,t){return $n.setTimeout(n,t)},xo=Ce(ao),jo=function(n){n=cu(n,function(n){return 500===t.size&&t.clear(),n});var t=n.cache;return n}(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(tn,function(n,r,e,u){
-t.push(e?u.replace(hn,"$1"):r||n)}),t}),wo=fr(function(n,t){return hu(n)?yt(n,wt(t,1,hu,true)):[]}),mo=fr(function(n,t){var r=Ve(t);return hu(r)&&(r=T),hu(n)?yt(n,wt(t,1,hu,true),ye(r,2)):[]}),Ao=fr(function(n,t){var r=Ve(t);return hu(r)&&(r=T),hu(n)?yt(n,wt(t,1,hu,true),T,r):[]}),Eo=fr(function(n){var t=c(n,Er);return t.length&&t[0]===n[0]?Wt(t):[]}),ko=fr(function(n){var t=Ve(n),r=c(n,Er);return t===Ve(r)?t=T:r.pop(),r.length&&r[0]===n[0]?Wt(r,ye(t,2)):[]}),So=fr(function(n){var t=Ve(n),r=c(n,Er);return(t=typeof t=="function"?t:T)&&r.pop(),
-r.length&&r[0]===n[0]?Wt(r,T,t):[]}),Oo=fr(Ke),Io=pe(function(n,t){var r=null==n?0:n.length,e=ht(n,t);return ur(n,c(t,function(n){return Se(n,r)?+n:n}).sort(Wr)),e}),Ro=fr(function(n){return br(wt(n,1,hu,true))}),zo=fr(function(n){var t=Ve(n);return hu(t)&&(t=T),br(wt(n,1,hu,true),ye(t,2))}),Wo=fr(function(n){var t=Ve(n),t=typeof t=="function"?t:T;return br(wt(n,1,hu,true),T,t)}),Bo=fr(function(n,t){return hu(n)?yt(n,t):[]}),Lo=fr(function(n){return mr(i(n,hu))}),Uo=fr(function(n){var t=Ve(n);return hu(t)&&(t=T),
-mr(i(n,hu),ye(t,2))}),Co=fr(function(n){var t=Ve(n),t=typeof t=="function"?t:T;return mr(i(n,hu),T,t)}),Do=fr(He),Mo=fr(function(n){var t=n.length,t=1<t?n[t-1]:T,t=typeof t=="function"?(n.pop(),t):T;return Je(n,t)}),To=pe(function(n){function t(t){return ht(t,n)}var r=n.length,e=r?n[0]:0,u=this.__wrapped__;return!(1<r||this.__actions__.length)&&u instanceof Un&&Se(e)?(u=u.slice(e,+e+(r?1:0)),u.__actions__.push({func:Qe,args:[t],thisArg:T}),new On(u,this.__chain__).thru(function(n){return r&&!n.length&&n.push(T),
-n})):this.thru(t)}),$o=Tr(function(n,t,r){oi.call(n,r)?++n[r]:st(n,r,1)}),Fo=Gr(Ne),No=Gr(Pe),Po=Tr(function(n,t,r){oi.call(n,r)?n[r].push(t):st(n,r,[t])}),Zo=fr(function(t,r,e){var u=-1,i=typeof r=="function",o=su(t)?Ku(t.length):[];return uo(t,function(t){o[++u]=i?n(r,t,e):Lt(t,r,e)}),o}),qo=Tr(function(n,t,r){st(n,r,t)}),Vo=Tr(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),Ko=fr(function(n,t){if(null==n)return[];var r=t.length;return 1<r&&Oe(n,t[0],t[1])?t=[]:2<r&&Oe(t[0],t[1],t[2])&&(t=[t[0]]),
-Xt(n,wt(t,1),[])}),Go=ki||function(){return $n.Date.now()},Ho=fr(function(n,t,r){var e=1;if(r.length)var u=L(r,de(Ho)),e=32|e;return fe(n,e,t,r,u)}),Jo=fr(function(n,t,r){var e=3;if(r.length)var u=L(r,de(Jo)),e=32|e;return fe(t,e,n,r,u)}),Yo=fr(function(n,t){return dt(n,1,t)}),Qo=fr(function(n,t,r){return dt(n,Su(t)||0,r)});cu.Cache=Fn;var Xo=fr(function(t,r){r=1==r.length&&ff(r[0])?c(r[0],k(ye())):c(wt(r,1),k(ye()));var e=r.length;return fr(function(u){for(var i=-1,o=Ci(u.length,e);++i<o;)u[i]=r[i].call(this,u[i]);
-return n(t,this,u)})}),nf=fr(function(n,t){return fe(n,32,T,t,L(t,de(nf)))}),tf=fr(function(n,t){return fe(n,64,T,t,L(t,de(tf)))}),rf=pe(function(n,t){return fe(n,256,T,T,T,t)}),ef=ee(It),uf=ee(function(n,t){return n>=t}),of=Ut(function(){return arguments}())?Ut:function(n){return yu(n)&&oi.call(n,"callee")&&!bi.call(n,"callee")},ff=Ku.isArray,cf=Vn?k(Vn):Ct,af=zi||Vu,lf=Kn?k(Kn):Dt,sf=Gn?k(Gn):Tt,hf=Hn?k(Hn):Nt,pf=Jn?k(Jn):Pt,_f=Yn?k(Yn):Zt,vf=ee(Kt),gf=ee(function(n,t){return n<=t}),df=$r(function(n,t){
-if(ze(t)||su(t))Cr(t,Wu(t),n);else for(var r in t)oi.call(t,r)&&ot(n,r,t[r])}),yf=$r(function(n,t){Cr(t,Bu(t),n)}),bf=$r(function(n,t,r,e){Cr(t,Bu(t),n,e)}),xf=$r(function(n,t,r,e){Cr(t,Wu(t),n,e)}),jf=pe(ht),wf=fr(function(n,t){n=Qu(n);var r=-1,e=t.length,u=2<e?t[2]:T;for(u&&Oe(t[0],t[1],u)&&(e=1);++r<e;)for(var u=t[r],i=Bu(u),o=-1,f=i.length;++o<f;){var c=i[o],a=n[c];(a===T||lu(a,ei[c])&&!oi.call(n,c))&&(n[c]=u[c])}return n}),mf=fr(function(t){return t.push(T,ae),n(Of,T,t)}),Af=Yr(function(n,t,r){
-null!=t&&typeof t.toString!="function"&&(t=ai.call(t)),n[t]=r},Tu($u)),Ef=Yr(function(n,t,r){null!=t&&typeof t.toString!="function"&&(t=ai.call(t)),oi.call(n,t)?n[t].push(r):n[t]=[r]},ye),kf=fr(Lt),Sf=$r(function(n,t,r){Yt(n,t,r)}),Of=$r(function(n,t,r,e){Yt(n,t,r,e)}),If=pe(function(n,t){var r={};if(null==n)return r;var e=false;t=c(t,function(t){return t=Sr(t,n),e||(e=1<t.length),t}),Cr(n,ve(n),r),e&&(r=_t(r,7,le));for(var u=t.length;u--;)xr(r,t[u]);return r}),Rf=pe(function(n,t){return null==n?{}:nr(n,t);
-}),zf=oe(Wu),Wf=oe(Bu),Bf=qr(function(n,t,r){return t=t.toLowerCase(),n+(r?Cu(t):t)}),Lf=qr(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Uf=qr(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),Cf=Zr("toLowerCase"),Df=qr(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Mf=qr(function(n,t,r){return n+(r?" ":"")+$f(t)}),Tf=qr(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),$f=Zr("toUpperCase"),Ff=fr(function(t,r){try{return n(t,T,r)}catch(n){return pu(n)?n:new Hu(n)}}),Nf=pe(function(n,t){
-return r(t,function(t){t=Me(t),st(n,t,Ho(n[t],n))}),n}),Pf=Hr(),Zf=Hr(true),qf=fr(function(n,t){return function(r){return Lt(r,n,t)}}),Vf=fr(function(n,t){return function(r){return Lt(n,r,t)}}),Kf=Xr(c),Gf=Xr(u),Hf=Xr(h),Jf=re(),Yf=re(true),Qf=Qr(function(n,t){return n+t},0),Xf=ie("ceil"),nc=Qr(function(n,t){return n/t},1),tc=ie("floor"),rc=Qr(function(n,t){return n*t},1),ec=ie("round"),uc=Qr(function(n,t){return n-t},0);return An.after=function(n,t){if(typeof t!="function")throw new ti("Expected a function");
-return n=Eu(n),function(){if(1>--n)return t.apply(this,arguments)}},An.ary=eu,An.assign=df,An.assignIn=yf,An.assignInWith=bf,An.assignWith=xf,An.at=jf,An.before=uu,An.bind=Ho,An.bindAll=Nf,An.bindKey=Jo,An.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return ff(n)?n:[n]},An.chain=Ye,An.chunk=function(n,t,r){if(t=(r?Oe(n,t,r):t===T)?1:Ui(Eu(t),0),r=null==n?0:n.length,!r||1>t)return[];for(var e=0,u=0,i=Ku(Oi(r/t));e<r;)i[u++]=hr(n,e,e+=t);return i},An.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){
-var i=n[t];i&&(u[e++]=i)}return u},An.concat=function(){var n=arguments.length;if(!n)return[];for(var t=Ku(n-1),r=arguments[0];n--;)t[n-1]=arguments[n];return a(ff(r)?Ur(r):[r],wt(t,1))},An.cond=function(t){var r=null==t?0:t.length,e=ye();return t=r?c(t,function(n){if("function"!=typeof n[1])throw new ti("Expected a function");return[e(n[0]),n[1]]}):[],fr(function(e){for(var u=-1;++u<r;){var i=t[u];if(n(i[0],this,e))return n(i[1],this,e)}})},An.conforms=function(n){return vt(_t(n,1))},An.constant=Tu,
-An.countBy=$o,An.create=function(n,t){var r=eo(n);return null==t?r:at(r,t)},An.curry=iu,An.curryRight=ou,An.debounce=fu,An.defaults=wf,An.defaultsDeep=mf,An.defer=Yo,An.delay=Qo,An.difference=wo,An.differenceBy=mo,An.differenceWith=Ao,An.drop=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===T?1:Eu(t),hr(n,0>t?0:t,e)):[]},An.dropRight=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===T?1:Eu(t),t=e-t,hr(n,0,0>t?0:t)):[]},An.dropRightWhile=function(n,t){return n&&n.length?jr(n,ye(t,3),true,true):[];
-},An.dropWhile=function(n,t){return n&&n.length?jr(n,ye(t,3),true):[]},An.fill=function(n,t,r,e){var u=null==n?0:n.length;if(!u)return[];for(r&&typeof r!="number"&&Oe(n,t,r)&&(r=0,e=u),u=n.length,r=Eu(r),0>r&&(r=-r>u?0:u+r),e=e===T||e>u?u:Eu(e),0>e&&(e+=u),e=r>e?0:ku(e);r<e;)n[r++]=t;return n},An.filter=function(n,t){return(ff(n)?i:jt)(n,ye(t,3))},An.flatMap=function(n,t){return wt(ru(n,t),1)},An.flatMapDeep=function(n,t){return wt(ru(n,t),$)},An.flatMapDepth=function(n,t,r){return r=r===T?1:Eu(r),
-wt(ru(n,t),r)},An.flatten=Ze,An.flattenDeep=function(n){return(null==n?0:n.length)?wt(n,$):[]},An.flattenDepth=function(n,t){return null!=n&&n.length?(t=t===T?1:Eu(t),wt(n,t)):[]},An.flip=function(n){return fe(n,512)},An.flow=Pf,An.flowRight=Zf,An.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e},An.functions=function(n){return null==n?[]:Et(n,Wu(n))},An.functionsIn=function(n){return null==n?[]:Et(n,Bu(n))},An.groupBy=Po,An.initial=function(n){
-return(null==n?0:n.length)?hr(n,0,-1):[]},An.intersection=Eo,An.intersectionBy=ko,An.intersectionWith=So,An.invert=Af,An.invertBy=Ef,An.invokeMap=Zo,An.iteratee=Fu,An.keyBy=qo,An.keys=Wu,An.keysIn=Bu,An.map=ru,An.mapKeys=function(n,t){var r={};return t=ye(t,3),mt(n,function(n,e,u){st(r,t(n,e,u),n)}),r},An.mapValues=function(n,t){var r={};return t=ye(t,3),mt(n,function(n,e,u){st(r,e,t(n,e,u))}),r},An.matches=function(n){return Ht(_t(n,1))},An.matchesProperty=function(n,t){return Jt(n,_t(t,1))},An.memoize=cu,
-An.merge=Sf,An.mergeWith=Of,An.method=qf,An.methodOf=Vf,An.mixin=Nu,An.negate=au,An.nthArg=function(n){return n=Eu(n),fr(function(t){return Qt(t,n)})},An.omit=If,An.omitBy=function(n,t){return Lu(n,au(ye(t)))},An.once=function(n){return uu(2,n)},An.orderBy=function(n,t,r,e){return null==n?[]:(ff(t)||(t=null==t?[]:[t]),r=e?T:r,ff(r)||(r=null==r?[]:[r]),Xt(n,t,r))},An.over=Kf,An.overArgs=Xo,An.overEvery=Gf,An.overSome=Hf,An.partial=nf,An.partialRight=tf,An.partition=Vo,An.pick=Rf,An.pickBy=Lu,An.property=Zu,
-An.propertyOf=function(n){return function(t){return null==n?T:kt(n,t)}},An.pull=Oo,An.pullAll=Ke,An.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?er(n,t,ye(r,2)):n},An.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?er(n,t,T,r):n},An.pullAt=Io,An.range=Jf,An.rangeRight=Yf,An.rearg=rf,An.reject=function(n,t){return(ff(n)?i:jt)(n,au(ye(t,3)))},An.remove=function(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=ye(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),
-u.push(e))}return ur(n,u),r},An.rest=function(n,t){if(typeof n!="function")throw new ti("Expected a function");return t=t===T?t:Eu(t),fr(n,t)},An.reverse=Ge,An.sampleSize=function(n,t,r){return t=(r?Oe(n,t,r):t===T)?1:Eu(t),(ff(n)?et:ar)(n,t)},An.set=function(n,t,r){return null==n?n:lr(n,t,r)},An.setWith=function(n,t,r,e){return e=typeof e=="function"?e:T,null==n?n:lr(n,t,r,e)},An.shuffle=function(n){return(ff(n)?ut:sr)(n)},An.slice=function(n,t,r){var e=null==n?0:n.length;return e?(r&&typeof r!="number"&&Oe(n,t,r)?(t=0,
-r=e):(t=null==t?0:Eu(t),r=r===T?e:Eu(r)),hr(n,t,r)):[]},An.sortBy=Ko,An.sortedUniq=function(n){return n&&n.length?gr(n):[]},An.sortedUniqBy=function(n,t){return n&&n.length?gr(n,ye(t,2)):[]},An.split=function(n,t,r){return r&&typeof r!="number"&&Oe(n,t,r)&&(t=r=T),r=r===T?4294967295:r>>>0,r?(n=Iu(n))&&(typeof t=="string"||null!=t&&!hf(t))&&(t=yr(t),!t&&Rn.test(n))?Or(M(n),0,r):n.split(t,r):[]},An.spread=function(t,r){if(typeof t!="function")throw new ti("Expected a function");return r=null==r?0:Ui(Eu(r),0),
-fr(function(e){var u=e[r];return e=Or(e,0,r),u&&a(e,u),n(t,this,e)})},An.tail=function(n){var t=null==n?0:n.length;return t?hr(n,1,t):[]},An.take=function(n,t,r){return n&&n.length?(t=r||t===T?1:Eu(t),hr(n,0,0>t?0:t)):[]},An.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===T?1:Eu(t),t=e-t,hr(n,0>t?0:t,e)):[]},An.takeRightWhile=function(n,t){return n&&n.length?jr(n,ye(t,3),false,true):[]},An.takeWhile=function(n,t){return n&&n.length?jr(n,ye(t,3)):[]},An.tap=function(n,t){return t(n),
-n},An.throttle=function(n,t,r){var e=true,u=true;if(typeof n!="function")throw new ti("Expected a function");return du(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),fu(n,t,{leading:e,maxWait:t,trailing:u})},An.thru=Qe,An.toArray=mu,An.toPairs=zf,An.toPairsIn=Wf,An.toPath=function(n){return ff(n)?c(n,Me):wu(n)?[n]:Ur(jo(Iu(n)))},An.toPlainObject=Ou,An.transform=function(n,t,e){var u=ff(n),i=u||af(n)||_f(n);if(t=ye(t,4),null==e){var o=n&&n.constructor;e=i?u?new o:[]:du(n)&&_u(o)?eo(di(n)):{};
-}return(i?r:mt)(n,function(n,r,u){return t(e,n,r,u)}),e},An.unary=function(n){return eu(n,1)},An.union=Ro,An.unionBy=zo,An.unionWith=Wo,An.uniq=function(n){return n&&n.length?br(n):[]},An.uniqBy=function(n,t){return n&&n.length?br(n,ye(t,2)):[]},An.uniqWith=function(n,t){return t=typeof t=="function"?t:T,n&&n.length?br(n,T,t):[]},An.unset=function(n,t){return null==n||xr(n,t)},An.unzip=He,An.unzipWith=Je,An.update=function(n,t,r){return null==n?n:lr(n,t,kr(r)(kt(n,t)),void 0)},An.updateWith=function(n,t,r,e){
-return e=typeof e=="function"?e:T,null!=n&&(n=lr(n,t,kr(r)(kt(n,t)),e)),n},An.values=Uu,An.valuesIn=function(n){return null==n?[]:S(n,Bu(n))},An.without=Bo,An.words=Mu,An.wrap=function(n,t){return nf(kr(t),n)},An.xor=Lo,An.xorBy=Uo,An.xorWith=Co,An.zip=Do,An.zipObject=function(n,t){return Ar(n||[],t||[],ot)},An.zipObjectDeep=function(n,t){return Ar(n||[],t||[],lr)},An.zipWith=Mo,An.entries=zf,An.entriesIn=Wf,An.extend=yf,An.extendWith=bf,Nu(An,An),An.add=Qf,An.attempt=Ff,An.camelCase=Bf,An.capitalize=Cu,
-An.ceil=Xf,An.clamp=function(n,t,r){return r===T&&(r=t,t=T),r!==T&&(r=Su(r),r=r===r?r:0),t!==T&&(t=Su(t),t=t===t?t:0),pt(Su(n),t,r)},An.clone=function(n){return _t(n,4)},An.cloneDeep=function(n){return _t(n,5)},An.cloneDeepWith=function(n,t){return t=typeof t=="function"?t:T,_t(n,5,t)},An.cloneWith=function(n,t){return t=typeof t=="function"?t:T,_t(n,4,t)},An.conformsTo=function(n,t){return null==t||gt(n,t,Wu(t))},An.deburr=Du,An.defaultTo=function(n,t){return null==n||n!==n?t:n},An.divide=nc,An.endsWith=function(n,t,r){
-n=Iu(n),t=yr(t);var e=n.length,e=r=r===T?e:pt(Eu(r),0,e);return r-=t.length,0<=r&&n.slice(r,e)==t},An.eq=lu,An.escape=function(n){return(n=Iu(n))&&H.test(n)?n.replace(K,nt):n},An.escapeRegExp=function(n){return(n=Iu(n))&&en.test(n)?n.replace(rn,"\\$&"):n},An.every=function(n,t,r){var e=ff(n)?u:bt;return r&&Oe(n,t,r)&&(t=T),e(n,ye(t,3))},An.find=Fo,An.findIndex=Ne,An.findKey=function(n,t){return p(n,ye(t,3),mt)},An.findLast=No,An.findLastIndex=Pe,An.findLastKey=function(n,t){return p(n,ye(t,3),At);
-},An.floor=tc,An.forEach=nu,An.forEachRight=tu,An.forIn=function(n,t){return null==n?n:oo(n,ye(t,3),Bu)},An.forInRight=function(n,t){return null==n?n:fo(n,ye(t,3),Bu)},An.forOwn=function(n,t){return n&&mt(n,ye(t,3))},An.forOwnRight=function(n,t){return n&&At(n,ye(t,3))},An.get=Ru,An.gt=ef,An.gte=uf,An.has=function(n,t){return null!=n&&we(n,t,Rt)},An.hasIn=zu,An.head=qe,An.identity=$u,An.includes=function(n,t,r,e){return n=su(n)?n:Uu(n),r=r&&!e?Eu(r):0,e=n.length,0>r&&(r=Ui(e+r,0)),ju(n)?r<=e&&-1<n.indexOf(t,r):!!e&&-1<v(n,t,r);
-},An.indexOf=function(n,t,r){var e=null==n?0:n.length;return e?(r=null==r?0:Eu(r),0>r&&(r=Ui(e+r,0)),v(n,t,r)):-1},An.inRange=function(n,t,r){return t=Au(t),r===T?(r=t,t=0):r=Au(r),n=Su(n),n>=Ci(t,r)&&n<Ui(t,r)},An.invoke=kf,An.isArguments=of,An.isArray=ff,An.isArrayBuffer=cf,An.isArrayLike=su,An.isArrayLikeObject=hu,An.isBoolean=function(n){return true===n||false===n||yu(n)&&"[object Boolean]"==Ot(n)},An.isBuffer=af,An.isDate=lf,An.isElement=function(n){return yu(n)&&1===n.nodeType&&!xu(n)},An.isEmpty=function(n){
-if(null==n)return true;if(su(n)&&(ff(n)||typeof n=="string"||typeof n.splice=="function"||af(n)||_f(n)||of(n)))return!n.length;var t=vo(n);if("[object Map]"==t||"[object Set]"==t)return!n.size;if(ze(n))return!Vt(n).length;for(var r in n)if(oi.call(n,r))return false;return true},An.isEqual=function(n,t){return Mt(n,t)},An.isEqualWith=function(n,t,r){var e=(r=typeof r=="function"?r:T)?r(n,t):T;return e===T?Mt(n,t,T,r):!!e},An.isError=pu,An.isFinite=function(n){return typeof n=="number"&&Wi(n)},An.isFunction=_u,
-An.isInteger=vu,An.isLength=gu,An.isMap=sf,An.isMatch=function(n,t){return n===t||$t(n,t,xe(t))},An.isMatchWith=function(n,t,r){return r=typeof r=="function"?r:T,$t(n,t,xe(t),r)},An.isNaN=function(n){return bu(n)&&n!=+n},An.isNative=function(n){if(go(n))throw new Hu("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ft(n)},An.isNil=function(n){return null==n},An.isNull=function(n){return null===n},An.isNumber=bu,An.isObject=du,An.isObjectLike=yu,An.isPlainObject=xu,An.isRegExp=hf,
-An.isSafeInteger=function(n){return vu(n)&&-9007199254740991<=n&&9007199254740991>=n},An.isSet=pf,An.isString=ju,An.isSymbol=wu,An.isTypedArray=_f,An.isUndefined=function(n){return n===T},An.isWeakMap=function(n){return yu(n)&&"[object WeakMap]"==vo(n)},An.isWeakSet=function(n){return yu(n)&&"[object WeakSet]"==Ot(n)},An.join=function(n,t){return null==n?"":Bi.call(n,t)},An.kebabCase=Lf,An.last=Ve,An.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;if(r!==T&&(u=Eu(r),u=0>u?Ui(e+u,0):Ci(u,e-1)),
-t===t){for(r=u+1;r--&&n[r]!==t;);n=r}else n=_(n,d,u,true);return n},An.lowerCase=Uf,An.lowerFirst=Cf,An.lt=vf,An.lte=gf,An.max=function(n){return n&&n.length?xt(n,$u,It):T},An.maxBy=function(n,t){return n&&n.length?xt(n,ye(t,2),It):T},An.mean=function(n){return y(n,$u)},An.meanBy=function(n,t){return y(n,ye(t,2))},An.min=function(n){return n&&n.length?xt(n,$u,Kt):T},An.minBy=function(n,t){return n&&n.length?xt(n,ye(t,2),Kt):T},An.stubArray=qu,An.stubFalse=Vu,An.stubObject=function(){return{}},An.stubString=function(){
-return""},An.stubTrue=function(){return true},An.multiply=rc,An.nth=function(n,t){return n&&n.length?Qt(n,Eu(t)):T},An.noConflict=function(){return $n._===this&&($n._=si),this},An.noop=Pu,An.now=Go,An.pad=function(n,t,r){n=Iu(n);var e=(t=Eu(t))?D(n):0;return!t||e>=t?n:(t=(t-e)/2,ne(Ii(t),r)+n+ne(Oi(t),r))},An.padEnd=function(n,t,r){n=Iu(n);var e=(t=Eu(t))?D(n):0;return t&&e<t?n+ne(t-e,r):n},An.padStart=function(n,t,r){n=Iu(n);var e=(t=Eu(t))?D(n):0;return t&&e<t?ne(t-e,r)+n:n},An.parseInt=function(n,t,r){
-return r||null==t?t=0:t&&(t=+t),Mi(Iu(n).replace(on,""),t||0)},An.random=function(n,t,r){if(r&&typeof r!="boolean"&&Oe(n,t,r)&&(t=r=T),r===T&&(typeof t=="boolean"?(r=t,t=T):typeof n=="boolean"&&(r=n,n=T)),n===T&&t===T?(n=0,t=1):(n=Au(n),t===T?(t=n,n=0):t=Au(t)),n>t){var e=n;n=t,t=e}return r||n%1||t%1?(r=Ti(),Ci(n+r*(t-n+Cn("1e-"+((r+"").length-1))),t)):ir(n,t)},An.reduce=function(n,t,r){var e=ff(n)?l:j,u=3>arguments.length;return e(n,ye(t,4),r,u,uo)},An.reduceRight=function(n,t,r){var e=ff(n)?s:j,u=3>arguments.length;
-return e(n,ye(t,4),r,u,io)},An.repeat=function(n,t,r){return t=(r?Oe(n,t,r):t===T)?1:Eu(t),or(Iu(n),t)},An.replace=function(){var n=arguments,t=Iu(n[0]);return 3>n.length?t:t.replace(n[1],n[2])},An.result=function(n,t,r){t=Sr(t,n);var e=-1,u=t.length;for(u||(u=1,n=T);++e<u;){var i=null==n?T:n[Me(t[e])];i===T&&(e=u,i=r),n=_u(i)?i.call(n):i}return n},An.round=ec,An.runInContext=x,An.sample=function(n){return(ff(n)?Qn:cr)(n)},An.size=function(n){if(null==n)return 0;if(su(n))return ju(n)?D(n):n.length;
-var t=vo(n);return"[object Map]"==t||"[object Set]"==t?n.size:Vt(n).length},An.snakeCase=Df,An.some=function(n,t,r){var e=ff(n)?h:pr;return r&&Oe(n,t,r)&&(t=T),e(n,ye(t,3))},An.sortedIndex=function(n,t){return _r(n,t)},An.sortedIndexBy=function(n,t,r){return vr(n,t,ye(r,2))},An.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=_r(n,t);if(e<r&&lu(n[e],t))return e}return-1},An.sortedLastIndex=function(n,t){return _r(n,t,true)},An.sortedLastIndexBy=function(n,t,r){return vr(n,t,ye(r,2),true);
-},An.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=_r(n,t,true)-1;if(lu(n[r],t))return r}return-1},An.startCase=Mf,An.startsWith=function(n,t,r){return n=Iu(n),r=null==r?0:pt(Eu(r),0,n.length),t=yr(t),n.slice(r,r+t.length)==t},An.subtract=uc,An.sum=function(n){return n&&n.length?m(n,$u):0},An.sumBy=function(n,t){return n&&n.length?m(n,ye(t,2)):0},An.template=function(n,t,r){var e=An.templateSettings;r&&Oe(n,t,r)&&(t=T),n=Iu(n),t=bf({},t,e,ce),r=bf({},t.imports,e.imports,ce);var u,i,o=Wu(r),f=S(r,o),c=0;
-r=t.interpolate||jn;var a="__p+='";r=Xu((t.escape||jn).source+"|"+r.source+"|"+(r===Q?pn:jn).source+"|"+(t.evaluate||jn).source+"|$","g");var l=oi.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";if(n.replace(r,function(t,r,e,o,f,l){return e||(e=o),a+=n.slice(c,l).replace(wn,z),r&&(u=true,a+="'+__e("+r+")+'"),f&&(i=true,a+="';"+f+";\n__p+='"),e&&(a+="'+((__t=("+e+"))==null?'':__t)+'"),c=l+t.length,t}),a+="';",(t=oi.call(t,"variable")&&t.variable)||(a="with(obj){"+a+"}"),
-a=(i?a.replace(P,""):a).replace(Z,"$1").replace(q,"$1;"),a="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+a+"return __p}",t=Ff(function(){return Ju(o,l+"return "+a).apply(T,f)}),t.source=a,pu(t))throw t;return t},An.times=function(n,t){if(n=Eu(n),1>n||9007199254740991<n)return[];var r=4294967295,e=Ci(n,4294967295);for(t=ye(t),n-=4294967295,e=A(e,t);++r<n;)t(r);return e},An.toFinite=Au,
-An.toInteger=Eu,An.toLength=ku,An.toLower=function(n){return Iu(n).toLowerCase()},An.toNumber=Su,An.toSafeInteger=function(n){return n?pt(Eu(n),-9007199254740991,9007199254740991):0===n?n:0},An.toString=Iu,An.toUpper=function(n){return Iu(n).toUpperCase()},An.trim=function(n,t,r){return(n=Iu(n))&&(r||t===T)?n.replace(un,""):n&&(t=yr(t))?(n=M(n),r=M(t),t=I(n,r),r=R(n,r)+1,Or(n,t,r).join("")):n},An.trimEnd=function(n,t,r){return(n=Iu(n))&&(r||t===T)?n.replace(fn,""):n&&(t=yr(t))?(n=M(n),t=R(n,M(t))+1,
-Or(n,0,t).join("")):n},An.trimStart=function(n,t,r){return(n=Iu(n))&&(r||t===T)?n.replace(on,""):n&&(t=yr(t))?(n=M(n),t=I(n,M(t)),Or(n,t).join("")):n},An.truncate=function(n,t){var r=30,e="...";if(du(t))var u="separator"in t?t.separator:u,r="length"in t?Eu(t.length):r,e="omission"in t?yr(t.omission):e;n=Iu(n);var i=n.length;if(Rn.test(n))var o=M(n),i=o.length;if(r>=i)return n;if(i=r-D(e),1>i)return e;if(r=o?Or(o,0,i).join(""):n.slice(0,i),u===T)return r+e;if(o&&(i+=r.length-i),hf(u)){if(n.slice(i).search(u)){
-var f=r;for(u.global||(u=Xu(u.source,Iu(_n.exec(u))+"g")),u.lastIndex=0;o=u.exec(f);)var c=o.index;r=r.slice(0,c===T?i:c)}}else n.indexOf(yr(u),i)!=i&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},An.unescape=function(n){return(n=Iu(n))&&G.test(n)?n.replace(V,tt):n},An.uniqueId=function(n){var t=++fi;return Iu(n)+t},An.upperCase=Tf,An.upperFirst=$f,An.each=nu,An.eachRight=tu,An.first=qe,Nu(An,function(){var n={};return mt(An,function(t,r){oi.call(An.prototype,r)||(n[r]=t)}),n}(),{chain:false
-}),An.VERSION="4.17.15",r("bind bindKey curry curryRight partial partialRight".split(" "),function(n){An[n].placeholder=An}),r(["drop","take"],function(n,t){Un.prototype[n]=function(r){r=r===T?1:Ui(Eu(r),0);var e=this.__filtered__&&!t?new Un(this):this.clone();return e.__filtered__?e.__takeCount__=Ci(r,e.__takeCount__):e.__views__.push({size:Ci(r,4294967295),type:n+(0>e.__dir__?"Right":"")}),e},Un.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),r(["filter","map","takeWhile"],function(n,t){
-var r=t+1,e=1==r||3==r;Un.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ye(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),r(["head","last"],function(n,t){var r="take"+(t?"Right":"");Un.prototype[n]=function(){return this[r](1).value()[0]}}),r(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");Un.prototype[n]=function(){return this.__filtered__?new Un(this):this[r](1)}}),Un.prototype.compact=function(){return this.filter($u)},Un.prototype.find=function(n){
-return this.filter(n).head()},Un.prototype.findLast=function(n){return this.reverse().find(n)},Un.prototype.invokeMap=fr(function(n,t){return typeof n=="function"?new Un(this):this.map(function(r){return Lt(r,n,t)})}),Un.prototype.reject=function(n){return this.filter(au(ye(n)))},Un.prototype.slice=function(n,t){n=Eu(n);var r=this;return r.__filtered__&&(0<n||0>t)?new Un(r):(0>n?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==T&&(t=Eu(t),r=0>t?r.dropRight(-t):r.take(t-n)),r)},Un.prototype.takeRightWhile=function(n){
-return this.reverse().takeWhile(n).reverse()},Un.prototype.toArray=function(){return this.take(4294967295)},mt(Un.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),u=An[e?"take"+("last"==t?"Right":""):t],i=e||/^find/.test(t);u&&(An.prototype[t]=function(){function t(n){return n=u.apply(An,a([n],f)),e&&h?n[0]:n}var o=this.__wrapped__,f=e?[1]:arguments,c=o instanceof Un,l=f[0],s=c||ff(o);s&&r&&typeof l=="function"&&1!=l.length&&(c=s=false);var h=this.__chain__,p=!!this.__actions__.length,l=i&&!h,c=c&&!p;
-return!i&&s?(o=c?o:new Un(this),o=n.apply(o,f),o.__actions__.push({func:Qe,args:[t],thisArg:T}),new On(o,h)):l&&c?n.apply(this,f):(o=this.thru(t),l?e?o.value()[0]:o.value():o)})}),r("pop push shift sort splice unshift".split(" "),function(n){var t=ri[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);An.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(ff(u)?u:[],n)}return this[r](function(r){return t.apply(ff(r)?r:[],n)});
-}}),mt(Un.prototype,function(n,t){var r=An[t];if(r){var e=r.name+"";oi.call(Gi,e)||(Gi[e]=[]),Gi[e].push({name:t,func:r})}}),Gi[Jr(T,2).name]=[{name:"wrapper",func:T}],Un.prototype.clone=function(){var n=new Un(this.__wrapped__);return n.__actions__=Ur(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ur(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ur(this.__views__),n},Un.prototype.reverse=function(){if(this.__filtered__){var n=new Un(this);
-n.__dir__=-1,n.__filtered__=true}else n=this.clone(),n.__dir__*=-1;return n},Un.prototype.value=function(){var n,t=this.__wrapped__.value(),r=this.__dir__,e=ff(t),u=0>r,i=e?t.length:0;n=i;for(var o=this.__views__,f=0,c=-1,a=o.length;++c<a;){var l=o[c],s=l.size;switch(l.type){case"drop":f+=s;break;case"dropRight":n-=s;break;case"take":n=Ci(n,f+s);break;case"takeRight":f=Ui(f,n-s)}}if(n={start:f,end:n},o=n.start,f=n.end,n=f-o,o=u?f:o-1,f=this.__iteratees__,c=f.length,a=0,l=Ci(n,this.__takeCount__),!e||!u&&i==n&&l==n)return wr(t,this.__actions__);
-e=[];n:for(;n--&&a<l;){for(o+=r,u=-1,i=t[o];++u<c;){var h=f[u],s=h.type,h=(0,h.iteratee)(i);if(2==s)i=h;else if(!h){if(1==s)continue n;break n}}e[a++]=i}return e},An.prototype.at=To,An.prototype.chain=function(){return Ye(this)},An.prototype.commit=function(){return new On(this.value(),this.__chain__)},An.prototype.next=function(){this.__values__===T&&(this.__values__=mu(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?T:this.__values__[this.__index__++]}},An.prototype.plant=function(n){
-for(var t,r=this;r instanceof En;){var e=Fe(r);e.__index__=0,e.__values__=T,t?u.__wrapped__=e:t=e;var u=e,r=r.__wrapped__}return u.__wrapped__=n,t},An.prototype.reverse=function(){var n=this.__wrapped__;return n instanceof Un?(this.__actions__.length&&(n=new Un(this)),n=n.reverse(),n.__actions__.push({func:Qe,args:[Ge],thisArg:T}),new On(n,this.__chain__)):this.thru(Ge)},An.prototype.toJSON=An.prototype.valueOf=An.prototype.value=function(){return wr(this.__wrapped__,this.__actions__)},An.prototype.first=An.prototype.head,
-wi&&(An.prototype[wi]=Xe),An}();typeof define=="function"&&typeof define.amd=="object"&&define.amd?($n._=rt, define(function(){return rt})):Nn?((Nn.exports=rt)._=rt,Fn._=rt):$n._=rt}).call(this); \ No newline at end of file
diff --git a/node_modules/lodash/lowerCase.js b/node_modules/lodash/lowerCase.js
deleted file mode 100644
index 66c1f49..0000000
--- a/node_modules/lodash/lowerCase.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var createCompounder = require('./_createCompounder');
-
-/**
- * Converts `string`, as space separated words, to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.lowerCase('--Foo-Bar--');
- * // => 'foo bar'
- *
- * _.lowerCase('fooBar');
- * // => 'foo bar'
- *
- * _.lowerCase('__FOO_BAR__');
- * // => 'foo bar'
- */
-var lowerCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toLowerCase();
-});
-
-module.exports = lowerCase;
diff --git a/node_modules/lodash/lowerFirst.js b/node_modules/lodash/lowerFirst.js
deleted file mode 100644
index c08f082..0000000
--- a/node_modules/lodash/lowerFirst.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var createCaseFirst = require('./_createCaseFirst');
-
-/**
- * Converts the first character of `string` to lower case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.lowerFirst('Fred');
- * // => 'fred'
- *
- * _.lowerFirst('FRED');
- * // => 'fRED'
- */
-var lowerFirst = createCaseFirst('toLowerCase');
-
-module.exports = lowerFirst;
diff --git a/node_modules/lodash/lt.js b/node_modules/lodash/lt.js
deleted file mode 100644
index 813866e..0000000
--- a/node_modules/lodash/lt.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseLt = require('./_baseLt'),
- createRelationalOperation = require('./_createRelationalOperation');
-
-/**
- * Checks if `value` is less than `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than `other`,
- * else `false`.
- * @see _.gt
- * @example
- *
- * _.lt(1, 3);
- * // => true
- *
- * _.lt(3, 3);
- * // => false
- *
- * _.lt(3, 1);
- * // => false
- */
-var lt = createRelationalOperation(baseLt);
-
-module.exports = lt;
diff --git a/node_modules/lodash/lte.js b/node_modules/lodash/lte.js
deleted file mode 100644
index 382f661..0000000
--- a/node_modules/lodash/lte.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var createRelationalOperation = require('./_createRelationalOperation');
-
-/**
- * Checks if `value` is less than or equal to `other`.
- *
- * @static
- * @memberOf _
- * @since 3.9.0
- * @category Lang
- * @param {*} value The value to compare.
- * @param {*} other The other value to compare.
- * @returns {boolean} Returns `true` if `value` is less than or equal to
- * `other`, else `false`.
- * @see _.gte
- * @example
- *
- * _.lte(1, 3);
- * // => true
- *
- * _.lte(3, 3);
- * // => true
- *
- * _.lte(3, 1);
- * // => false
- */
-var lte = createRelationalOperation(function(value, other) {
- return value <= other;
-});
-
-module.exports = lte;
diff --git a/node_modules/lodash/map.js b/node_modules/lodash/map.js
deleted file mode 100644
index 22efee7..0000000
--- a/node_modules/lodash/map.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIteratee = require('./_baseIteratee'),
- baseMap = require('./_baseMap'),
- isArray = require('./isArray');
-
-/**
- * Creates an array of values by running each element in `collection` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
- *
- * The guarded methods are:
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new mapped array.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * _.map([4, 8], square);
- * // => [16, 64]
- *
- * _.map({ 'a': 4, 'b': 8 }, square);
- * // => [16, 64] (iteration order is not guaranteed)
- *
- * var users = [
- * { 'user': 'barney' },
- * { 'user': 'fred' }
- * ];
- *
- * // The `_.property` iteratee shorthand.
- * _.map(users, 'user');
- * // => ['barney', 'fred']
- */
-function map(collection, iteratee) {
- var func = isArray(collection) ? arrayMap : baseMap;
- return func(collection, baseIteratee(iteratee, 3));
-}
-
-module.exports = map;
diff --git a/node_modules/lodash/mapKeys.js b/node_modules/lodash/mapKeys.js
deleted file mode 100644
index 3b68797..0000000
--- a/node_modules/lodash/mapKeys.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var baseAssignValue = require('./_baseAssignValue'),
- baseForOwn = require('./_baseForOwn'),
- baseIteratee = require('./_baseIteratee');
-
-/**
- * The opposite of `_.mapValues`; this method creates an object with the
- * same values as `object` and keys generated by running each own enumerable
- * string keyed property of `object` thru `iteratee`. The iteratee is invoked
- * with three arguments: (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapValues
- * @example
- *
- * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
- * return key + value;
- * });
- * // => { 'a1': 1, 'b2': 2 }
- */
-function mapKeys(object, iteratee) {
- var result = {};
- iteratee = baseIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- baseAssignValue(result, iteratee(value, key, object), value);
- });
- return result;
-}
-
-module.exports = mapKeys;
diff --git a/node_modules/lodash/mapValues.js b/node_modules/lodash/mapValues.js
deleted file mode 100644
index 4ec0825..0000000
--- a/node_modules/lodash/mapValues.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var baseAssignValue = require('./_baseAssignValue'),
- baseForOwn = require('./_baseForOwn'),
- baseIteratee = require('./_baseIteratee');
-
-/**
- * Creates an object with the same keys as `object` and values generated
- * by running each own enumerable string keyed property of `object` thru
- * `iteratee`. The iteratee is invoked with three arguments:
- * (value, key, object).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Object} Returns the new mapped object.
- * @see _.mapKeys
- * @example
- *
- * var users = {
- * 'fred': { 'user': 'fred', 'age': 40 },
- * 'pebbles': { 'user': 'pebbles', 'age': 1 }
- * };
- *
- * _.mapValues(users, function(o) { return o.age; });
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- *
- * // The `_.property` iteratee shorthand.
- * _.mapValues(users, 'age');
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
- */
-function mapValues(object, iteratee) {
- var result = {};
- iteratee = baseIteratee(iteratee, 3);
-
- baseForOwn(object, function(value, key, object) {
- baseAssignValue(result, key, iteratee(value, key, object));
- });
- return result;
-}
-
-module.exports = mapValues;
diff --git a/node_modules/lodash/matches.js b/node_modules/lodash/matches.js
deleted file mode 100644
index 11145db..0000000
--- a/node_modules/lodash/matches.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseClone = require('./_baseClone'),
- baseMatches = require('./_baseMatches');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1;
-
-/**
- * Creates a function that performs a partial deep comparison between a given
- * object and `source`, returning `true` if the given object has equivalent
- * property values, else `false`.
- *
- * **Note:** The created function is equivalent to `_.isMatch` with `source`
- * partially applied.
- *
- * Partial comparisons will match empty array and empty object `source`
- * values against any array or object value, respectively. See `_.isEqual`
- * for a list of supported value comparisons.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} source The object of property values to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var objects = [
- * { 'a': 1, 'b': 2, 'c': 3 },
- * { 'a': 4, 'b': 5, 'c': 6 }
- * ];
- *
- * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
- * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
- */
-function matches(source) {
- return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
-}
-
-module.exports = matches;
diff --git a/node_modules/lodash/matchesProperty.js b/node_modules/lodash/matchesProperty.js
deleted file mode 100644
index cc062ac..0000000
--- a/node_modules/lodash/matchesProperty.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseClone = require('./_baseClone'),
- baseMatchesProperty = require('./_baseMatchesProperty');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1;
-
-/**
- * Creates a function that performs a partial deep comparison between the
- * value at `path` of a given object to `srcValue`, returning `true` if the
- * object value is equivalent, else `false`.
- *
- * **Note:** Partial comparisons will match empty array and empty object
- * `srcValue` values against any array or object value, respectively. See
- * `_.isEqual` for a list of supported value comparisons.
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @param {*} srcValue The value to match.
- * @returns {Function} Returns the new spec function.
- * @example
- *
- * var objects = [
- * { 'a': 1, 'b': 2, 'c': 3 },
- * { 'a': 4, 'b': 5, 'c': 6 }
- * ];
- *
- * _.find(objects, _.matchesProperty('a', 4));
- * // => { 'a': 4, 'b': 5, 'c': 6 }
- */
-function matchesProperty(path, srcValue) {
- return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
-}
-
-module.exports = matchesProperty;
diff --git a/node_modules/lodash/math.js b/node_modules/lodash/math.js
deleted file mode 100644
index 5966887..0000000
--- a/node_modules/lodash/math.js
+++ /dev/null
@@ -1,17 +0,0 @@
-module.exports = {
- 'add': require('./add'),
- 'ceil': require('./ceil'),
- 'divide': require('./divide'),
- 'floor': require('./floor'),
- 'max': require('./max'),
- 'maxBy': require('./maxBy'),
- 'mean': require('./mean'),
- 'meanBy': require('./meanBy'),
- 'min': require('./min'),
- 'minBy': require('./minBy'),
- 'multiply': require('./multiply'),
- 'round': require('./round'),
- 'subtract': require('./subtract'),
- 'sum': require('./sum'),
- 'sumBy': require('./sumBy')
-};
diff --git a/node_modules/lodash/max.js b/node_modules/lodash/max.js
deleted file mode 100644
index 142ad8c..0000000
--- a/node_modules/lodash/max.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseExtremum = require('./_baseExtremum'),
- baseGt = require('./_baseGt'),
- identity = require('./identity');
-
-/**
- * Computes the maximum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * _.max([4, 2, 8, 6]);
- * // => 8
- *
- * _.max([]);
- * // => undefined
- */
-function max(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseGt)
- : undefined;
-}
-
-module.exports = max;
diff --git a/node_modules/lodash/maxBy.js b/node_modules/lodash/maxBy.js
deleted file mode 100644
index 2eba9c0..0000000
--- a/node_modules/lodash/maxBy.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseExtremum = require('./_baseExtremum'),
- baseGt = require('./_baseGt'),
- baseIteratee = require('./_baseIteratee');
-
-/**
- * This method is like `_.max` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {*} Returns the maximum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.maxBy(objects, function(o) { return o.n; });
- * // => { 'n': 2 }
- *
- * // The `_.property` iteratee shorthand.
- * _.maxBy(objects, 'n');
- * // => { 'n': 2 }
- */
-function maxBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, baseIteratee(iteratee, 2), baseGt)
- : undefined;
-}
-
-module.exports = maxBy;
diff --git a/node_modules/lodash/mean.js b/node_modules/lodash/mean.js
deleted file mode 100644
index e3ffff6..0000000
--- a/node_modules/lodash/mean.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseMean = require('./_baseMean'),
- identity = require('./identity');
-
-/**
- * Computes the mean of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the mean.
- * @example
- *
- * _.mean([4, 2, 8, 6]);
- * // => 5
- */
-function mean(array) {
- return baseMean(array, identity);
-}
-
-module.exports = mean;
diff --git a/node_modules/lodash/meanBy.js b/node_modules/lodash/meanBy.js
deleted file mode 100644
index b031671..0000000
--- a/node_modules/lodash/meanBy.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseMean = require('./_baseMean');
-
-/**
- * This method is like `_.mean` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be averaged.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the mean.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.meanBy(objects, function(o) { return o.n; });
- * // => 5
- *
- * // The `_.property` iteratee shorthand.
- * _.meanBy(objects, 'n');
- * // => 5
- */
-function meanBy(array, iteratee) {
- return baseMean(array, baseIteratee(iteratee, 2));
-}
-
-module.exports = meanBy;
diff --git a/node_modules/lodash/memoize.js b/node_modules/lodash/memoize.js
deleted file mode 100644
index d6035af..0000000
--- a/node_modules/lodash/memoize.js
+++ /dev/null
@@ -1,73 +0,0 @@
-var MapCache = require('./_MapCache');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
- *
- * values(other);
- * // => [3, 4]
- *
- * object.a = 2;
- * values(object);
- * // => [1, 2]
- *
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
- *
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
- */
-function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
-
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result) || cache;
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
-}
-
-// Expose `MapCache`.
-memoize.Cache = MapCache;
-
-module.exports = memoize;
diff --git a/node_modules/lodash/merge.js b/node_modules/lodash/merge.js
deleted file mode 100644
index 4bbc3a1..0000000
--- a/node_modules/lodash/merge.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseMerge = require('./_baseMerge'),
- createAssigner = require('./_createAssigner');
-
-/**
- * This method is like `_.assign` except that it recursively merges own and
- * inherited enumerable string keyed properties of source objects into the
- * destination object. Source properties that resolve to `undefined` are
- * skipped if a destination value exists. Array and plain object properties
- * are merged recursively. Other objects and value types are overridden by
- * assignment. Source objects are applied from left to right. Subsequent
- * sources overwrite property assignments of previous sources.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 0.5.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} [sources] The source objects.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
- * };
- *
- * var other = {
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
- * };
- *
- * _.merge(object, other);
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
- */
-var merge = createAssigner(function(object, source, srcIndex) {
- baseMerge(object, source, srcIndex);
-});
-
-module.exports = merge;
diff --git a/node_modules/lodash/mergeWith.js b/node_modules/lodash/mergeWith.js
deleted file mode 100644
index 1b43a2c..0000000
--- a/node_modules/lodash/mergeWith.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseMerge = require('./_baseMerge'),
- createAssigner = require('./_createAssigner');
-
-/**
- * This method is like `_.merge` except that it accepts `customizer` which
- * is invoked to produce the merged values of the destination and source
- * properties. If `customizer` returns `undefined`, merging is handled by the
- * method instead. The `customizer` is invoked with six arguments:
- * (objValue, srcValue, key, object, source, stack).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The destination object.
- * @param {...Object} sources The source objects.
- * @param {Function} customizer The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * function customizer(objValue, srcValue) {
- * if (_.isArray(objValue)) {
- * return objValue.concat(srcValue);
- * }
- * }
- *
- * var object = { 'a': [1], 'b': [2] };
- * var other = { 'a': [3], 'b': [4] };
- *
- * _.mergeWith(object, other, customizer);
- * // => { 'a': [1, 3], 'b': [2, 4] }
- */
-var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
- baseMerge(object, source, srcIndex, customizer);
-});
-
-module.exports = mergeWith;
diff --git a/node_modules/lodash/method.js b/node_modules/lodash/method.js
deleted file mode 100644
index 23ec32d..0000000
--- a/node_modules/lodash/method.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseInvoke = require('./_baseInvoke'),
- baseRest = require('./_baseRest');
-
-/**
- * Creates a function that invokes the method at `path` of a given object.
- * Any additional arguments are provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Array|string} path The path of the method to invoke.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': _.constant(2) } },
- * { 'a': { 'b': _.constant(1) } }
- * ];
- *
- * _.map(objects, _.method('a.b'));
- * // => [2, 1]
- *
- * _.map(objects, _.method(['a', 'b']));
- * // => [2, 1]
- */
-var method = baseRest(function(path, args) {
- return function(object) {
- return baseInvoke(object, path, args);
- };
-});
-
-module.exports = method;
diff --git a/node_modules/lodash/methodOf.js b/node_modules/lodash/methodOf.js
deleted file mode 100644
index df59b57..0000000
--- a/node_modules/lodash/methodOf.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseInvoke = require('./_baseInvoke'),
- baseRest = require('./_baseRest');
-
-/**
- * The opposite of `_.method`; this method creates a function that invokes
- * the method at a given path of `object`. Any additional arguments are
- * provided to the invoked method.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Util
- * @param {Object} object The object to query.
- * @param {...*} [args] The arguments to invoke the method with.
- * @returns {Function} Returns the new invoker function.
- * @example
- *
- * var array = _.times(3, _.constant),
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.methodOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
- * // => [2, 0]
- */
-var methodOf = baseRest(function(object, args) {
- return function(path) {
- return baseInvoke(object, path, args);
- };
-});
-
-module.exports = methodOf;
diff --git a/node_modules/lodash/min.js b/node_modules/lodash/min.js
deleted file mode 100644
index 428f571..0000000
--- a/node_modules/lodash/min.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseExtremum = require('./_baseExtremum'),
- baseLt = require('./_baseLt'),
- identity = require('./identity');
-
-/**
- * Computes the minimum value of `array`. If `array` is empty or falsey,
- * `undefined` is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * _.min([4, 2, 8, 6]);
- * // => 2
- *
- * _.min([]);
- * // => undefined
- */
-function min(array) {
- return (array && array.length)
- ? baseExtremum(array, identity, baseLt)
- : undefined;
-}
-
-module.exports = min;
diff --git a/node_modules/lodash/minBy.js b/node_modules/lodash/minBy.js
deleted file mode 100644
index b2697e4..0000000
--- a/node_modules/lodash/minBy.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseExtremum = require('./_baseExtremum'),
- baseIteratee = require('./_baseIteratee'),
- baseLt = require('./_baseLt');
-
-/**
- * This method is like `_.min` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * the value is ranked. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {*} Returns the minimum value.
- * @example
- *
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
- *
- * _.minBy(objects, function(o) { return o.n; });
- * // => { 'n': 1 }
- *
- * // The `_.property` iteratee shorthand.
- * _.minBy(objects, 'n');
- * // => { 'n': 1 }
- */
-function minBy(array, iteratee) {
- return (array && array.length)
- ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
- : undefined;
-}
-
-module.exports = minBy;
diff --git a/node_modules/lodash/mixin.js b/node_modules/lodash/mixin.js
deleted file mode 100644
index 6dc9674..0000000
--- a/node_modules/lodash/mixin.js
+++ /dev/null
@@ -1,74 +0,0 @@
-var arrayEach = require('./_arrayEach'),
- arrayPush = require('./_arrayPush'),
- baseFunctions = require('./_baseFunctions'),
- copyArray = require('./_copyArray'),
- isFunction = require('./isFunction'),
- isObject = require('./isObject'),
- keys = require('./keys');
-
-/**
- * Adds all own enumerable string keyed function properties of a source
- * object to the destination object. If `object` is a function, then methods
- * are added to its prototype as well.
- *
- * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
- * avoid conflicts caused by modifying the original.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {Function|Object} [object=lodash] The destination object.
- * @param {Object} source The object of functions to add.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
- * @returns {Function|Object} Returns `object`.
- * @example
- *
- * function vowels(string) {
- * return _.filter(string, function(v) {
- * return /[aeiou]/i.test(v);
- * });
- * }
- *
- * _.mixin({ 'vowels': vowels });
- * _.vowels('fred');
- * // => ['e']
- *
- * _('fred').vowels().value();
- * // => ['e']
- *
- * _.mixin({ 'vowels': vowels }, { 'chain': false });
- * _('fred').vowels();
- * // => ['e']
- */
-function mixin(object, source, options) {
- var props = keys(source),
- methodNames = baseFunctions(source, props);
-
- var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
- isFunc = isFunction(object);
-
- arrayEach(methodNames, function(methodName) {
- var func = source[methodName];
- object[methodName] = func;
- if (isFunc) {
- object.prototype[methodName] = function() {
- var chainAll = this.__chain__;
- if (chain || chainAll) {
- var result = object(this.__wrapped__),
- actions = result.__actions__ = copyArray(this.__actions__);
-
- actions.push({ 'func': func, 'args': arguments, 'thisArg': object });
- result.__chain__ = chainAll;
- return result;
- }
- return func.apply(object, arrayPush([this.value()], arguments));
- };
- }
- });
-
- return object;
-}
-
-module.exports = mixin;
diff --git a/node_modules/lodash/multiply.js b/node_modules/lodash/multiply.js
deleted file mode 100644
index d7876e1..0000000
--- a/node_modules/lodash/multiply.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var createMathOperation = require('./_createMathOperation');
-
-/**
- * Multiply two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.7.0
- * @category Math
- * @param {number} multiplier The first number in a multiplication.
- * @param {number} multiplicand The second number in a multiplication.
- * @returns {number} Returns the product.
- * @example
- *
- * _.multiply(6, 4);
- * // => 24
- */
-var multiply = createMathOperation(function(multiplier, multiplicand) {
- return multiplier * multiplicand;
-}, 1);
-
-module.exports = multiply;
diff --git a/node_modules/lodash/negate.js b/node_modules/lodash/negate.js
deleted file mode 100644
index 5a65cd1..0000000
--- a/node_modules/lodash/negate.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * Creates a function that negates the result of the predicate `func`. The
- * `func` predicate is invoked with the `this` binding and arguments of the
- * created function.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} predicate The predicate to negate.
- * @returns {Function} Returns the new negated function.
- * @example
- *
- * function isEven(n) {
- * return n % 2 == 0;
- * }
- *
- * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
- * // => [1, 3, 5]
- */
-function negate(predicate) {
- if (typeof predicate != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- return function() {
- var args = arguments;
- switch (args.length) {
- case 0: return !predicate.call(this);
- case 1: return !predicate.call(this, args[0]);
- case 2: return !predicate.call(this, args[0], args[1]);
- case 3: return !predicate.call(this, args[0], args[1], args[2]);
- }
- return !predicate.apply(this, args);
- };
-}
-
-module.exports = negate;
diff --git a/node_modules/lodash/next.js b/node_modules/lodash/next.js
deleted file mode 100644
index 55f949c..0000000
--- a/node_modules/lodash/next.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var toArray = require('./toArray');
-
-/**
- * Gets the next value on a wrapped object following the
- * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
- *
- * @name next
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the next iterator value.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 1 }
- *
- * wrapped.next();
- * // => { 'done': false, 'value': 2 }
- *
- * wrapped.next();
- * // => { 'done': true, 'value': undefined }
- */
-function wrapperNext() {
- if (this.__values__ === undefined) {
- this.__values__ = toArray(this.value());
- }
- var done = this.__index__ >= this.__values__.length,
- value = done ? undefined : this.__values__[this.__index__++];
-
- return { 'done': done, 'value': value };
-}
-
-module.exports = wrapperNext;
diff --git a/node_modules/lodash/noop.js b/node_modules/lodash/noop.js
deleted file mode 100644
index 3c0862e..0000000
--- a/node_modules/lodash/noop.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * This method returns `undefined`.
- *
- * @static
- * @memberOf _
- * @since 2.3.0
- * @category Util
- * @example
- *
- * _.times(2, _.noop);
- * // => [undefined, undefined]
- */
-function noop() {
- // No operation performed.
-}
-
-module.exports = noop;
diff --git a/node_modules/lodash/now.js b/node_modules/lodash/now.js
deleted file mode 100644
index 44a0562..0000000
--- a/node_modules/lodash/now.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var root = require('./_root');
-
-/**
- * Gets the timestamp of the number of milliseconds that have elapsed since
- * the Unix epoch (1 January 1970 00:00:00 UTC).
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Date
- * @returns {number} Returns the timestamp.
- * @example
- *
- * _.defer(function(stamp) {
- * console.log(_.now() - stamp);
- * }, _.now());
- * // => Logs the number of milliseconds it took for the deferred invocation.
- */
-var now = function() {
- return root.Date.now();
-};
-
-module.exports = now;
diff --git a/node_modules/lodash/nth.js b/node_modules/lodash/nth.js
deleted file mode 100644
index 8a344de..0000000
--- a/node_modules/lodash/nth.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseNth = require('./_baseNth'),
- toInteger = require('./toInteger');
-
-/**
- * Gets the element at index `n` of `array`. If `n` is negative, the nth
- * element from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.11.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=0] The index of the element to return.
- * @returns {*} Returns the nth element of `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- *
- * _.nth(array, 1);
- * // => 'b'
- *
- * _.nth(array, -2);
- * // => 'c';
- */
-function nth(array, n) {
- return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;
-}
-
-module.exports = nth;
diff --git a/node_modules/lodash/nthArg.js b/node_modules/lodash/nthArg.js
deleted file mode 100644
index 09406dd..0000000
--- a/node_modules/lodash/nthArg.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var baseNth = require('./_baseNth'),
- baseRest = require('./_baseRest'),
- toInteger = require('./toInteger');
-
-/**
- * Creates a function that gets the argument at index `n`. If `n` is negative,
- * the nth argument from the end is returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [n=0] The index of the argument to return.
- * @returns {Function} Returns the new pass-thru function.
- * @example
- *
- * var func = _.nthArg(1);
- * func('a', 'b', 'c', 'd');
- * // => 'b'
- *
- * var func = _.nthArg(-2);
- * func('a', 'b', 'c', 'd');
- * // => 'c'
- */
-function nthArg(n) {
- n = toInteger(n);
- return baseRest(function(args) {
- return baseNth(args, n);
- });
-}
-
-module.exports = nthArg;
diff --git a/node_modules/lodash/number.js b/node_modules/lodash/number.js
deleted file mode 100644
index c3b0100..0000000
--- a/node_modules/lodash/number.js
+++ /dev/null
@@ -1,5 +0,0 @@
-module.exports = {
- 'clamp': require('./clamp'),
- 'inRange': require('./inRange'),
- 'random': require('./random')
-};
diff --git a/node_modules/lodash/object.js b/node_modules/lodash/object.js
deleted file mode 100644
index f046b05..0000000
--- a/node_modules/lodash/object.js
+++ /dev/null
@@ -1,49 +0,0 @@
-module.exports = {
- 'assign': require('./assign'),
- 'assignIn': require('./assignIn'),
- 'assignInWith': require('./assignInWith'),
- 'assignWith': require('./assignWith'),
- 'at': require('./at'),
- 'create': require('./create'),
- 'defaults': require('./defaults'),
- 'defaultsDeep': require('./defaultsDeep'),
- 'entries': require('./entries'),
- 'entriesIn': require('./entriesIn'),
- 'extend': require('./extend'),
- 'extendWith': require('./extendWith'),
- 'findKey': require('./findKey'),
- 'findLastKey': require('./findLastKey'),
- 'forIn': require('./forIn'),
- 'forInRight': require('./forInRight'),
- 'forOwn': require('./forOwn'),
- 'forOwnRight': require('./forOwnRight'),
- 'functions': require('./functions'),
- 'functionsIn': require('./functionsIn'),
- 'get': require('./get'),
- 'has': require('./has'),
- 'hasIn': require('./hasIn'),
- 'invert': require('./invert'),
- 'invertBy': require('./invertBy'),
- 'invoke': require('./invoke'),
- 'keys': require('./keys'),
- 'keysIn': require('./keysIn'),
- 'mapKeys': require('./mapKeys'),
- 'mapValues': require('./mapValues'),
- 'merge': require('./merge'),
- 'mergeWith': require('./mergeWith'),
- 'omit': require('./omit'),
- 'omitBy': require('./omitBy'),
- 'pick': require('./pick'),
- 'pickBy': require('./pickBy'),
- 'result': require('./result'),
- 'set': require('./set'),
- 'setWith': require('./setWith'),
- 'toPairs': require('./toPairs'),
- 'toPairsIn': require('./toPairsIn'),
- 'transform': require('./transform'),
- 'unset': require('./unset'),
- 'update': require('./update'),
- 'updateWith': require('./updateWith'),
- 'values': require('./values'),
- 'valuesIn': require('./valuesIn')
-};
diff --git a/node_modules/lodash/omit.js b/node_modules/lodash/omit.js
deleted file mode 100644
index 97f5f54..0000000
--- a/node_modules/lodash/omit.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseClone = require('./_baseClone'),
- baseUnset = require('./_baseUnset'),
- castPath = require('./_castPath'),
- copyObject = require('./_copyObject'),
- customOmitClone = require('./_customOmitClone'),
- flatRest = require('./_flatRest'),
- getAllKeysIn = require('./_getAllKeysIn');
-
-/** Used to compose bitmasks for cloning. */
-var CLONE_DEEP_FLAG = 1,
- CLONE_FLAT_FLAG = 2,
- CLONE_SYMBOLS_FLAG = 4;
-
-/**
- * The opposite of `_.pick`; this method creates an object composed of the
- * own and inherited enumerable property paths of `object` that are not omitted.
- *
- * **Note:** This method is considerably slower than `_.pick`.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [paths] The property paths to omit.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omit(object, ['a', 'c']);
- * // => { 'b': '2' }
- */
-var omit = flatRest(function(object, paths) {
- var result = {};
- if (object == null) {
- return result;
- }
- var isDeep = false;
- paths = arrayMap(paths, function(path) {
- path = castPath(path, object);
- isDeep || (isDeep = path.length > 1);
- return path;
- });
- copyObject(object, getAllKeysIn(object), result);
- if (isDeep) {
- result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
- }
- var length = paths.length;
- while (length--) {
- baseUnset(result, paths[length]);
- }
- return result;
-});
-
-module.exports = omit;
diff --git a/node_modules/lodash/omitBy.js b/node_modules/lodash/omitBy.js
deleted file mode 100644
index a064036..0000000
--- a/node_modules/lodash/omitBy.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- negate = require('./negate'),
- pickBy = require('./pickBy');
-
-/**
- * The opposite of `_.pickBy`; this method creates an object composed of
- * the own and inherited enumerable string keyed properties of `object` that
- * `predicate` doesn't return truthy for. The predicate is invoked with two
- * arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Function} [predicate=_.identity] The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.omitBy(object, _.isNumber);
- * // => { 'b': '2' }
- */
-function omitBy(object, predicate) {
- return pickBy(object, negate(baseIteratee(predicate)));
-}
-
-module.exports = omitBy;
diff --git a/node_modules/lodash/once.js b/node_modules/lodash/once.js
deleted file mode 100644
index 0706fc3..0000000
--- a/node_modules/lodash/once.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var before = require('./before');
-
-/**
- * Creates a function that is restricted to invoking `func` once. Repeat calls
- * to the function return the value of the first invocation. The `func` is
- * invoked with the `this` binding and arguments of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to restrict.
- * @returns {Function} Returns the new restricted function.
- * @example
- *
- * var initialize = _.once(createApplication);
- * initialize();
- * initialize();
- * // => `createApplication` is invoked once
- */
-function once(func) {
- return before(2, func);
-}
-
-module.exports = once;
diff --git a/node_modules/lodash/orderBy.js b/node_modules/lodash/orderBy.js
deleted file mode 100644
index 7195c8c..0000000
--- a/node_modules/lodash/orderBy.js
+++ /dev/null
@@ -1,47 +0,0 @@
-var baseOrderBy = require('./_baseOrderBy'),
- isArray = require('./isArray');
-
-/**
- * This method is like `_.sortBy` except that it allows specifying the sort
- * orders of the iteratees to sort by. If `orders` is unspecified, all values
- * are sorted in ascending order. Otherwise, specify an order of "desc" for
- * descending or "asc" for ascending sort order of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
- * The iteratees to sort by.
- * @param {string[]} [orders] The sort orders of `iteratees`.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 34 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 36 }
- * ];
- *
- * // Sort by `user` in ascending order and by `age` in descending order.
- * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- */
-function orderBy(collection, iteratees, orders, guard) {
- if (collection == null) {
- return [];
- }
- if (!isArray(iteratees)) {
- iteratees = iteratees == null ? [] : [iteratees];
- }
- orders = guard ? undefined : orders;
- if (!isArray(orders)) {
- orders = orders == null ? [] : [orders];
- }
- return baseOrderBy(collection, iteratees, orders);
-}
-
-module.exports = orderBy;
diff --git a/node_modules/lodash/over.js b/node_modules/lodash/over.js
deleted file mode 100644
index bea2f91..0000000
--- a/node_modules/lodash/over.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- createOver = require('./_createOver');
-
-/**
- * Creates a function that invokes `iteratees` with the arguments it receives
- * and returns their results.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
- * The iteratees to invoke.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.over([Math.max, Math.min]);
- *
- * func(1, 2, 3, 4);
- * // => [4, 1]
- */
-var over = createOver(arrayMap);
-
-module.exports = over;
diff --git a/node_modules/lodash/overArgs.js b/node_modules/lodash/overArgs.js
deleted file mode 100644
index f0067db..0000000
--- a/node_modules/lodash/overArgs.js
+++ /dev/null
@@ -1,61 +0,0 @@
-var apply = require('./_apply'),
- arrayMap = require('./_arrayMap'),
- baseFlatten = require('./_baseFlatten'),
- baseIteratee = require('./_baseIteratee'),
- baseRest = require('./_baseRest'),
- baseUnary = require('./_baseUnary'),
- castRest = require('./_castRest'),
- isArray = require('./isArray');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min;
-
-/**
- * Creates a function that invokes `func` with its arguments transformed.
- *
- * @static
- * @since 4.0.0
- * @memberOf _
- * @category Function
- * @param {Function} func The function to wrap.
- * @param {...(Function|Function[])} [transforms=[_.identity]]
- * The argument transforms.
- * @returns {Function} Returns the new function.
- * @example
- *
- * function doubled(n) {
- * return n * 2;
- * }
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var func = _.overArgs(function(x, y) {
- * return [x, y];
- * }, [square, doubled]);
- *
- * func(9, 3);
- * // => [81, 6]
- *
- * func(10, 5);
- * // => [100, 10]
- */
-var overArgs = castRest(function(func, transforms) {
- transforms = (transforms.length == 1 && isArray(transforms[0]))
- ? arrayMap(transforms[0], baseUnary(baseIteratee))
- : arrayMap(baseFlatten(transforms, 1), baseUnary(baseIteratee));
-
- var funcsLength = transforms.length;
- return baseRest(function(args) {
- var index = -1,
- length = nativeMin(args.length, funcsLength);
-
- while (++index < length) {
- args[index] = transforms[index].call(this, args[index]);
- }
- return apply(func, this, args);
- });
-});
-
-module.exports = overArgs;
diff --git a/node_modules/lodash/overEvery.js b/node_modules/lodash/overEvery.js
deleted file mode 100644
index c115d15..0000000
--- a/node_modules/lodash/overEvery.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var arrayEvery = require('./_arrayEvery'),
- createOver = require('./_createOver');
-
-/**
- * Creates a function that checks if **all** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Function|Function[])} [predicates=[_.identity]]
- * The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overEvery([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => false
- *
- * func(NaN);
- * // => false
- */
-var overEvery = createOver(arrayEvery);
-
-module.exports = overEvery;
diff --git a/node_modules/lodash/overSome.js b/node_modules/lodash/overSome.js
deleted file mode 100644
index f902907..0000000
--- a/node_modules/lodash/overSome.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var arraySome = require('./_arraySome'),
- createOver = require('./_createOver');
-
-/**
- * Creates a function that checks if **any** of the `predicates` return
- * truthy when invoked with the arguments it receives.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {...(Function|Function[])} [predicates=[_.identity]]
- * The predicates to check.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var func = _.overSome([Boolean, isFinite]);
- *
- * func('1');
- * // => true
- *
- * func(null);
- * // => true
- *
- * func(NaN);
- * // => false
- */
-var overSome = createOver(arraySome);
-
-module.exports = overSome;
diff --git a/node_modules/lodash/package.json b/node_modules/lodash/package.json
deleted file mode 100644
index 902e8e8..0000000
--- a/node_modules/lodash/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "_from": "lodash@^4.17.11",
- "_id": "lodash@4.17.15",
- "_inBundle": false,
- "_integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
- "_location": "/lodash",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "lodash@^4.17.11",
- "name": "lodash",
- "escapedName": "lodash",
- "rawSpec": "^4.17.11",
- "saveSpec": null,
- "fetchSpec": "^4.17.11"
- },
- "_requiredBy": [
- "/globule",
- "/node-sass",
- "/sass-graph"
- ],
- "_resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
- "_shasum": "b447f6670a0455bbfeedd11392eff330ea097548",
- "_spec": "lodash@^4.17.11",
- "_where": "/Users/gebauer/Workspace/hugo-dev-theme/themes/ag/node_modules/node-sass",
- "author": {
- "name": "John-David Dalton",
- "email": "john.david.dalton@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/lodash/lodash/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "John-David Dalton",
- "email": "john.david.dalton@gmail.com"
- },
- {
- "name": "Mathias Bynens",
- "email": "mathias@qiwi.be"
- }
- ],
- "deprecated": false,
- "description": "Lodash modular utilities.",
- "homepage": "https://lodash.com/",
- "icon": "https://lodash.com/icon.svg",
- "keywords": [
- "modules",
- "stdlib",
- "util"
- ],
- "license": "MIT",
- "main": "lodash.js",
- "name": "lodash",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/lodash/lodash.git"
- },
- "scripts": {
- "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\""
- },
- "version": "4.17.15"
-}
diff --git a/node_modules/lodash/pad.js b/node_modules/lodash/pad.js
deleted file mode 100644
index 77e1f1c..0000000
--- a/node_modules/lodash/pad.js
+++ /dev/null
@@ -1,49 +0,0 @@
-var createPadding = require('./_createPadding'),
- stringSize = require('./_stringSize'),
- toInteger = require('./toInteger'),
- toString = require('./toString');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeCeil = Math.ceil,
- nativeFloor = Math.floor;
-
-/**
- * Pads `string` on the left and right sides if it's shorter than `length`.
- * Padding characters are truncated if they can't be evenly divided by `length`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.pad('abc', 8);
- * // => ' abc '
- *
- * _.pad('abc', 8, '_-');
- * // => '_-abc_-_'
- *
- * _.pad('abc', 3);
- * // => 'abc'
- */
-function pad(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- if (!length || strLength >= length) {
- return string;
- }
- var mid = (length - strLength) / 2;
- return (
- createPadding(nativeFloor(mid), chars) +
- string +
- createPadding(nativeCeil(mid), chars)
- );
-}
-
-module.exports = pad;
diff --git a/node_modules/lodash/padEnd.js b/node_modules/lodash/padEnd.js
deleted file mode 100644
index 224eb80..0000000
--- a/node_modules/lodash/padEnd.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var createPadding = require('./_createPadding'),
- stringSize = require('./_stringSize'),
- toInteger = require('./toInteger'),
- toString = require('./toString');
-
-/**
- * Pads `string` on the right side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padEnd('abc', 6);
- * // => 'abc '
- *
- * _.padEnd('abc', 6, '_-');
- * // => 'abc_-_'
- *
- * _.padEnd('abc', 3);
- * // => 'abc'
- */
-function padEnd(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (string + createPadding(length - strLength, chars))
- : string;
-}
-
-module.exports = padEnd;
diff --git a/node_modules/lodash/padStart.js b/node_modules/lodash/padStart.js
deleted file mode 100644
index f991866..0000000
--- a/node_modules/lodash/padStart.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var createPadding = require('./_createPadding'),
- stringSize = require('./_stringSize'),
- toInteger = require('./toInteger'),
- toString = require('./toString');
-
-/**
- * Pads `string` on the left side if it's shorter than `length`. Padding
- * characters are truncated if they exceed `length`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to pad.
- * @param {number} [length=0] The padding length.
- * @param {string} [chars=' '] The string used as padding.
- * @returns {string} Returns the padded string.
- * @example
- *
- * _.padStart('abc', 6);
- * // => ' abc'
- *
- * _.padStart('abc', 6, '_-');
- * // => '_-_abc'
- *
- * _.padStart('abc', 3);
- * // => 'abc'
- */
-function padStart(string, length, chars) {
- string = toString(string);
- length = toInteger(length);
-
- var strLength = length ? stringSize(string) : 0;
- return (length && strLength < length)
- ? (createPadding(length - strLength, chars) + string)
- : string;
-}
-
-module.exports = padStart;
diff --git a/node_modules/lodash/parseInt.js b/node_modules/lodash/parseInt.js
deleted file mode 100644
index 82badf0..0000000
--- a/node_modules/lodash/parseInt.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var root = require('./_root'),
- toString = require('./toString');
-
-/** Used to match leading and trailing whitespace. */
-var reTrimStart = /^\s+/;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeParseInt = root.parseInt;
-
-/**
- * Converts `string` to an integer of the specified radix. If `radix` is
- * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
- * hexadecimal, in which case a `radix` of `16` is used.
- *
- * **Note:** This method aligns with the
- * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
- *
- * @static
- * @memberOf _
- * @since 1.1.0
- * @category String
- * @param {string} string The string to convert.
- * @param {number} [radix=10] The radix to interpret `value` by.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.parseInt('08');
- * // => 8
- *
- * _.map(['6', '08', '10'], _.parseInt);
- * // => [6, 8, 10]
- */
-function parseInt(string, radix, guard) {
- if (guard || radix == null) {
- radix = 0;
- } else if (radix) {
- radix = +radix;
- }
- return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
-}
-
-module.exports = parseInt;
diff --git a/node_modules/lodash/partial.js b/node_modules/lodash/partial.js
deleted file mode 100644
index 05fe8d3..0000000
--- a/node_modules/lodash/partial.js
+++ /dev/null
@@ -1,50 +0,0 @@
-var baseRest = require('./_baseRest'),
- createWrap = require('./_createWrap'),
- getHolder = require('./_getHolder'),
- replaceHolders = require('./_replaceHolders');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_PARTIAL_FLAG = 32;
-
-/**
- * Creates a function that invokes `func` with `partials` prepended to the
- * arguments it receives. This method is like `_.bind` except it does **not**
- * alter the `this` binding.
- *
- * The `_.partial.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 0.2.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * function greet(greeting, name) {
- * return greeting + ' ' + name;
- * }
- *
- * var sayHelloTo = _.partial(greet, 'hello');
- * sayHelloTo('fred');
- * // => 'hello fred'
- *
- * // Partially applied with placeholders.
- * var greetFred = _.partial(greet, _, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- */
-var partial = baseRest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partial));
- return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
-});
-
-// Assign default placeholders.
-partial.placeholder = {};
-
-module.exports = partial;
diff --git a/node_modules/lodash/partialRight.js b/node_modules/lodash/partialRight.js
deleted file mode 100644
index eee031f..0000000
--- a/node_modules/lodash/partialRight.js
+++ /dev/null
@@ -1,49 +0,0 @@
-var baseRest = require('./_baseRest'),
- createWrap = require('./_createWrap'),
- getHolder = require('./_getHolder'),
- replaceHolders = require('./_replaceHolders');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_PARTIAL_RIGHT_FLAG = 64;
-
-/**
- * This method is like `_.partial` except that partially applied arguments
- * are appended to the arguments it receives.
- *
- * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
- * builds, may be used as a placeholder for partially applied arguments.
- *
- * **Note:** This method doesn't set the "length" property of partially
- * applied functions.
- *
- * @static
- * @memberOf _
- * @since 1.0.0
- * @category Function
- * @param {Function} func The function to partially apply arguments to.
- * @param {...*} [partials] The arguments to be partially applied.
- * @returns {Function} Returns the new partially applied function.
- * @example
- *
- * function greet(greeting, name) {
- * return greeting + ' ' + name;
- * }
- *
- * var greetFred = _.partialRight(greet, 'fred');
- * greetFred('hi');
- * // => 'hi fred'
- *
- * // Partially applied with placeholders.
- * var sayHelloTo = _.partialRight(greet, 'hello', _);
- * sayHelloTo('fred');
- * // => 'hello fred'
- */
-var partialRight = baseRest(function(func, partials) {
- var holders = replaceHolders(partials, getHolder(partialRight));
- return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
-});
-
-// Assign default placeholders.
-partialRight.placeholder = {};
-
-module.exports = partialRight;
diff --git a/node_modules/lodash/partition.js b/node_modules/lodash/partition.js
deleted file mode 100644
index 6b814a9..0000000
--- a/node_modules/lodash/partition.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var createAggregator = require('./_createAggregator');
-
-/**
- * Creates an array of elements split into two groups, the first of which
- * contains elements `predicate` returns truthy for, the second of which
- * contains elements `predicate` returns falsey for. The predicate is
- * invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the array of grouped elements.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true },
- * { 'user': 'pebbles', 'age': 1, 'active': false }
- * ];
- *
- * _.partition(users, function(o) { return o.active; });
- * // => objects for [['fred'], ['barney', 'pebbles']]
- *
- * // The `_.matches` iteratee shorthand.
- * _.partition(users, { 'age': 1, 'active': false });
- * // => objects for [['pebbles'], ['barney', 'fred']]
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.partition(users, ['active', false]);
- * // => objects for [['barney', 'pebbles'], ['fred']]
- *
- * // The `_.property` iteratee shorthand.
- * _.partition(users, 'active');
- * // => objects for [['fred'], ['barney', 'pebbles']]
- */
-var partition = createAggregator(function(result, value, key) {
- result[key ? 0 : 1].push(value);
-}, function() { return [[], []]; });
-
-module.exports = partition;
diff --git a/node_modules/lodash/pick.js b/node_modules/lodash/pick.js
deleted file mode 100644
index 3160199..0000000
--- a/node_modules/lodash/pick.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var basePick = require('./_basePick'),
- flatRest = require('./_flatRest');
-
-/**
- * Creates an object composed of the picked `object` properties.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The source object.
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pick(object, ['a', 'c']);
- * // => { 'a': 1, 'c': 3 }
- */
-var pick = flatRest(function(object, paths) {
- return object == null ? {} : basePick(object, paths);
-});
-
-module.exports = pick;
diff --git a/node_modules/lodash/pickBy.js b/node_modules/lodash/pickBy.js
deleted file mode 100644
index ae7c271..0000000
--- a/node_modules/lodash/pickBy.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseIteratee = require('./_baseIteratee'),
- basePickBy = require('./_basePickBy'),
- getAllKeysIn = require('./_getAllKeysIn');
-
-/**
- * Creates an object composed of the `object` properties `predicate` returns
- * truthy for. The predicate is invoked with two arguments: (value, key).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The source object.
- * @param {Function} [predicate=_.identity] The function invoked per property.
- * @returns {Object} Returns the new object.
- * @example
- *
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
- *
- * _.pickBy(object, _.isNumber);
- * // => { 'a': 1, 'c': 3 }
- */
-function pickBy(object, predicate) {
- if (object == null) {
- return {};
- }
- var props = arrayMap(getAllKeysIn(object), function(prop) {
- return [prop];
- });
- predicate = baseIteratee(predicate);
- return basePickBy(object, props, function(value, path) {
- return predicate(value, path[0]);
- });
-}
-
-module.exports = pickBy;
diff --git a/node_modules/lodash/plant.js b/node_modules/lodash/plant.js
deleted file mode 100644
index 23776f3..0000000
--- a/node_modules/lodash/plant.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var baseLodash = require('./_baseLodash'),
- wrapperClone = require('./_wrapperClone');
-
-/**
- * Creates a clone of the chain sequence planting `value` as the wrapped value.
- *
- * @name plant
- * @memberOf _
- * @since 3.2.0
- * @category Seq
- * @param {*} value The value to plant.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2]).map(square);
- * var other = wrapped.plant([3, 4]);
- *
- * other.value();
- * // => [9, 16]
- *
- * wrapped.value();
- * // => [1, 4]
- */
-function wrapperPlant(value) {
- var result,
- parent = this;
-
- while (parent instanceof baseLodash) {
- var clone = wrapperClone(parent);
- clone.__index__ = 0;
- clone.__values__ = undefined;
- if (result) {
- previous.__wrapped__ = clone;
- } else {
- result = clone;
- }
- var previous = clone;
- parent = parent.__wrapped__;
- }
- previous.__wrapped__ = value;
- return result;
-}
-
-module.exports = wrapperPlant;
diff --git a/node_modules/lodash/property.js b/node_modules/lodash/property.js
deleted file mode 100644
index ca8202f..0000000
--- a/node_modules/lodash/property.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var baseProperty = require('./_baseProperty'),
- basePropertyDeep = require('./_basePropertyDeep'),
- isKey = require('./_isKey'),
- toKey = require('./_toKey');
-
-/**
- * Creates a function that returns the value at `path` of a given object.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Util
- * @param {Array|string} path The path of the property to get.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var objects = [
- * { 'a': { 'b': 2 } },
- * { 'a': { 'b': 1 } }
- * ];
- *
- * _.map(objects, _.property('a.b'));
- * // => [2, 1]
- *
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
- * // => [1, 2]
- */
-function property(path) {
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
-}
-
-module.exports = property;
diff --git a/node_modules/lodash/propertyOf.js b/node_modules/lodash/propertyOf.js
deleted file mode 100644
index 384044d..0000000
--- a/node_modules/lodash/propertyOf.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var baseGet = require('./_baseGet');
-
-/**
- * The opposite of `_.property`; this method creates a function that returns
- * the value at a given path of `object`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Util
- * @param {Object} object The object to query.
- * @returns {Function} Returns the new accessor function.
- * @example
- *
- * var array = [0, 1, 2],
- * object = { 'a': array, 'b': array, 'c': array };
- *
- * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
- * // => [2, 0]
- *
- * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
- * // => [2, 0]
- */
-function propertyOf(object) {
- return function(path) {
- return object == null ? undefined : baseGet(object, path);
- };
-}
-
-module.exports = propertyOf;
diff --git a/node_modules/lodash/pull.js b/node_modules/lodash/pull.js
deleted file mode 100644
index a2efcb5..0000000
--- a/node_modules/lodash/pull.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var baseRest = require('./_baseRest'),
- pullAll = require('./pullAll');
-
-/**
- * Removes all given values from `array` using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
- * to remove elements from an array by predicate.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...*} [values] The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pull(array, 'a', 'c');
- * console.log(array);
- * // => ['b', 'b']
- */
-var pull = baseRest(pullAll);
-
-module.exports = pull;
diff --git a/node_modules/lodash/pullAll.js b/node_modules/lodash/pullAll.js
deleted file mode 100644
index f4605c2..0000000
--- a/node_modules/lodash/pullAll.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var basePullAll = require('./_basePullAll');
-
-/**
- * This method is like `_.pull` except that it accepts an array of values to remove.
- *
- * **Note:** Unlike `_.difference`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
- *
- * _.pullAll(array, ['a', 'c']);
- * console.log(array);
- * // => ['b', 'b']
- */
-function pullAll(array, values) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values)
- : array;
-}
-
-module.exports = pullAll;
diff --git a/node_modules/lodash/pullAllBy.js b/node_modules/lodash/pullAllBy.js
deleted file mode 100644
index 74025e8..0000000
--- a/node_modules/lodash/pullAllBy.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- basePullAll = require('./_basePullAll');
-
-/**
- * This method is like `_.pullAll` except that it accepts `iteratee` which is
- * invoked for each element of `array` and `values` to generate the criterion
- * by which they're compared. The iteratee is invoked with one argument: (value).
- *
- * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
- *
- * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
- * console.log(array);
- * // => [{ 'x': 2 }]
- */
-function pullAllBy(array, values, iteratee) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, baseIteratee(iteratee, 2))
- : array;
-}
-
-module.exports = pullAllBy;
diff --git a/node_modules/lodash/pullAllWith.js b/node_modules/lodash/pullAllWith.js
deleted file mode 100644
index 1d2fd9f..0000000
--- a/node_modules/lodash/pullAllWith.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var basePullAll = require('./_basePullAll');
-
-/**
- * This method is like `_.pullAll` except that it accepts `comparator` which
- * is invoked to compare elements of `array` to `values`. The comparator is
- * invoked with two arguments: (arrVal, othVal).
- *
- * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Array} values The values to remove.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
- *
- * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
- * console.log(array);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
- */
-function pullAllWith(array, values, comparator) {
- return (array && array.length && values && values.length)
- ? basePullAll(array, values, undefined, comparator)
- : array;
-}
-
-module.exports = pullAllWith;
diff --git a/node_modules/lodash/pullAt.js b/node_modules/lodash/pullAt.js
deleted file mode 100644
index 6ed84e0..0000000
--- a/node_modules/lodash/pullAt.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- baseAt = require('./_baseAt'),
- basePullAt = require('./_basePullAt'),
- compareAscending = require('./_compareAscending'),
- flatRest = require('./_flatRest'),
- isIndex = require('./_isIndex');
-
-/**
- * Removes elements from `array` corresponding to `indexes` and returns an
- * array of removed elements.
- *
- * **Note:** Unlike `_.at`, this method mutates `array`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {...(number|number[])} [indexes] The indexes of elements to remove.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = ['a', 'b', 'c', 'd'];
- * var pulled = _.pullAt(array, [1, 3]);
- *
- * console.log(array);
- * // => ['a', 'c']
- *
- * console.log(pulled);
- * // => ['b', 'd']
- */
-var pullAt = flatRest(function(array, indexes) {
- var length = array == null ? 0 : array.length,
- result = baseAt(array, indexes);
-
- basePullAt(array, arrayMap(indexes, function(index) {
- return isIndex(index, length) ? +index : index;
- }).sort(compareAscending));
-
- return result;
-});
-
-module.exports = pullAt;
diff --git a/node_modules/lodash/random.js b/node_modules/lodash/random.js
deleted file mode 100644
index 8067711..0000000
--- a/node_modules/lodash/random.js
+++ /dev/null
@@ -1,82 +0,0 @@
-var baseRandom = require('./_baseRandom'),
- isIterateeCall = require('./_isIterateeCall'),
- toFinite = require('./toFinite');
-
-/** Built-in method references without a dependency on `root`. */
-var freeParseFloat = parseFloat;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min,
- nativeRandom = Math.random;
-
-/**
- * Produces a random number between the inclusive `lower` and `upper` bounds.
- * If only one argument is provided a number between `0` and the given number
- * is returned. If `floating` is `true`, or either `lower` or `upper` are
- * floats, a floating-point number is returned instead of an integer.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @memberOf _
- * @since 0.7.0
- * @category Number
- * @param {number} [lower=0] The lower bound.
- * @param {number} [upper=1] The upper bound.
- * @param {boolean} [floating] Specify returning a floating-point number.
- * @returns {number} Returns the random number.
- * @example
- *
- * _.random(0, 5);
- * // => an integer between 0 and 5
- *
- * _.random(5);
- * // => also an integer between 0 and 5
- *
- * _.random(5, true);
- * // => a floating-point number between 0 and 5
- *
- * _.random(1.2, 5.2);
- * // => a floating-point number between 1.2 and 5.2
- */
-function random(lower, upper, floating) {
- if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
- upper = floating = undefined;
- }
- if (floating === undefined) {
- if (typeof upper == 'boolean') {
- floating = upper;
- upper = undefined;
- }
- else if (typeof lower == 'boolean') {
- floating = lower;
- lower = undefined;
- }
- }
- if (lower === undefined && upper === undefined) {
- lower = 0;
- upper = 1;
- }
- else {
- lower = toFinite(lower);
- if (upper === undefined) {
- upper = lower;
- lower = 0;
- } else {
- upper = toFinite(upper);
- }
- }
- if (lower > upper) {
- var temp = lower;
- lower = upper;
- upper = temp;
- }
- if (floating || lower % 1 || upper % 1) {
- var rand = nativeRandom();
- return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
- }
- return baseRandom(lower, upper);
-}
-
-module.exports = random;
diff --git a/node_modules/lodash/range.js b/node_modules/lodash/range.js
deleted file mode 100644
index fa63b09..0000000
--- a/node_modules/lodash/range.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var createRange = require('./_createRange');
-
-/**
- * Creates an array of numbers (positive and/or negative) progressing from
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
- * `start` is specified without an `end` or `step`. If `end` is not specified,
- * it's set to `start` with `start` then set to `0`.
- *
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
- * floating-point values which can produce unexpected results.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.rangeRight
- * @example
- *
- * _.range(4);
- * // => [0, 1, 2, 3]
- *
- * _.range(-4);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 5);
- * // => [1, 2, 3, 4]
- *
- * _.range(0, 20, 5);
- * // => [0, 5, 10, 15]
- *
- * _.range(0, -4, -1);
- * // => [0, -1, -2, -3]
- *
- * _.range(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.range(0);
- * // => []
- */
-var range = createRange();
-
-module.exports = range;
diff --git a/node_modules/lodash/rangeRight.js b/node_modules/lodash/rangeRight.js
deleted file mode 100644
index 271fafc..0000000
--- a/node_modules/lodash/rangeRight.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var createRange = require('./_createRange');
-
-/**
- * This method is like `_.range` except that it populates values in
- * descending order.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {number} [start=0] The start of the range.
- * @param {number} end The end of the range.
- * @param {number} [step=1] The value to increment or decrement by.
- * @returns {Array} Returns the range of numbers.
- * @see _.inRange, _.range
- * @example
- *
- * _.rangeRight(4);
- * // => [3, 2, 1, 0]
- *
- * _.rangeRight(-4);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 5);
- * // => [4, 3, 2, 1]
- *
- * _.rangeRight(0, 20, 5);
- * // => [15, 10, 5, 0]
- *
- * _.rangeRight(0, -4, -1);
- * // => [-3, -2, -1, 0]
- *
- * _.rangeRight(1, 4, 0);
- * // => [1, 1, 1]
- *
- * _.rangeRight(0);
- * // => []
- */
-var rangeRight = createRange(true);
-
-module.exports = rangeRight;
diff --git a/node_modules/lodash/rearg.js b/node_modules/lodash/rearg.js
deleted file mode 100644
index a3e1970..0000000
--- a/node_modules/lodash/rearg.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var createWrap = require('./_createWrap'),
- flatRest = require('./_flatRest');
-
-/** Used to compose bitmasks for function metadata. */
-var WRAP_REARG_FLAG = 256;
-
-/**
- * Creates a function that invokes `func` with arguments arranged according
- * to the specified `indexes` where the argument value at the first index is
- * provided as the first argument, the argument value at the second index is
- * provided as the second argument, and so on.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Function
- * @param {Function} func The function to rearrange arguments for.
- * @param {...(number|number[])} indexes The arranged argument indexes.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var rearged = _.rearg(function(a, b, c) {
- * return [a, b, c];
- * }, [2, 0, 1]);
- *
- * rearged('b', 'c', 'a')
- * // => ['a', 'b', 'c']
- */
-var rearg = flatRest(function(func, indexes) {
- return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
-});
-
-module.exports = rearg;
diff --git a/node_modules/lodash/reduce.js b/node_modules/lodash/reduce.js
deleted file mode 100644
index 5a1df4d..0000000
--- a/node_modules/lodash/reduce.js
+++ /dev/null
@@ -1,51 +0,0 @@
-var arrayReduce = require('./_arrayReduce'),
- baseEach = require('./_baseEach'),
- baseIteratee = require('./_baseIteratee'),
- baseReduce = require('./_baseReduce'),
- isArray = require('./isArray');
-
-/**
- * Reduces `collection` to a value which is the accumulated result of running
- * each element in `collection` thru `iteratee`, where each successive
- * invocation is supplied the return value of the previous. If `accumulator`
- * is not given, the first element of `collection` is used as the initial
- * value. The iteratee is invoked with four arguments:
- * (accumulator, value, index|key, collection).
- *
- * Many lodash methods are guarded to work as iteratees for methods like
- * `_.reduce`, `_.reduceRight`, and `_.transform`.
- *
- * The guarded methods are:
- * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
- * and `sortBy`
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduceRight
- * @example
- *
- * _.reduce([1, 2], function(sum, n) {
- * return sum + n;
- * }, 0);
- * // => 3
- *
- * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * return result;
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
- */
-function reduce(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduce : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
-}
-
-module.exports = reduce;
diff --git a/node_modules/lodash/reduceRight.js b/node_modules/lodash/reduceRight.js
deleted file mode 100644
index e06a7cb..0000000
--- a/node_modules/lodash/reduceRight.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var arrayReduceRight = require('./_arrayReduceRight'),
- baseEachRight = require('./_baseEachRight'),
- baseIteratee = require('./_baseIteratee'),
- baseReduce = require('./_baseReduce'),
- isArray = require('./isArray');
-
-/**
- * This method is like `_.reduce` except that it iterates over elements of
- * `collection` from right to left.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The initial value.
- * @returns {*} Returns the accumulated value.
- * @see _.reduce
- * @example
- *
- * var array = [[0, 1], [2, 3], [4, 5]];
- *
- * _.reduceRight(array, function(flattened, other) {
- * return flattened.concat(other);
- * }, []);
- * // => [4, 5, 2, 3, 0, 1]
- */
-function reduceRight(collection, iteratee, accumulator) {
- var func = isArray(collection) ? arrayReduceRight : baseReduce,
- initAccum = arguments.length < 3;
-
- return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
-}
-
-module.exports = reduceRight;
diff --git a/node_modules/lodash/reject.js b/node_modules/lodash/reject.js
deleted file mode 100644
index a13e554..0000000
--- a/node_modules/lodash/reject.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- baseFilter = require('./_baseFilter'),
- baseIteratee = require('./_baseIteratee'),
- isArray = require('./isArray'),
- negate = require('./negate');
-
-/**
- * The opposite of `_.filter`; this method returns the elements of `collection`
- * that `predicate` does **not** return truthy for.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new filtered array.
- * @see _.filter
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36, 'active': false },
- * { 'user': 'fred', 'age': 40, 'active': true }
- * ];
- *
- * _.reject(users, function(o) { return !o.active; });
- * // => objects for ['fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.reject(users, { 'age': 40, 'active': true });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.reject(users, ['active', false]);
- * // => objects for ['fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.reject(users, 'active');
- * // => objects for ['barney']
- */
-function reject(collection, predicate) {
- var func = isArray(collection) ? arrayFilter : baseFilter;
- return func(collection, negate(baseIteratee(predicate, 3)));
-}
-
-module.exports = reject;
diff --git a/node_modules/lodash/remove.js b/node_modules/lodash/remove.js
deleted file mode 100644
index 87b1898..0000000
--- a/node_modules/lodash/remove.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- basePullAt = require('./_basePullAt');
-
-/**
- * Removes all elements from `array` that `predicate` returns truthy for
- * and returns an array of the removed elements. The predicate is invoked
- * with three arguments: (value, index, array).
- *
- * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
- * to pull elements from an array by value.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the new array of removed elements.
- * @example
- *
- * var array = [1, 2, 3, 4];
- * var evens = _.remove(array, function(n) {
- * return n % 2 == 0;
- * });
- *
- * console.log(array);
- * // => [1, 3]
- *
- * console.log(evens);
- * // => [2, 4]
- */
-function remove(array, predicate) {
- var result = [];
- if (!(array && array.length)) {
- return result;
- }
- var index = -1,
- indexes = [],
- length = array.length;
-
- predicate = baseIteratee(predicate, 3);
- while (++index < length) {
- var value = array[index];
- if (predicate(value, index, array)) {
- result.push(value);
- indexes.push(index);
- }
- }
- basePullAt(array, indexes);
- return result;
-}
-
-module.exports = remove;
diff --git a/node_modules/lodash/repeat.js b/node_modules/lodash/repeat.js
deleted file mode 100644
index f4d8c69..0000000
--- a/node_modules/lodash/repeat.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseRepeat = require('./_baseRepeat'),
- isIterateeCall = require('./_isIterateeCall'),
- toInteger = require('./toInteger'),
- toString = require('./toString');
-
-/**
- * Repeats the given string `n` times.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to repeat.
- * @param {number} [n=1] The number of times to repeat the string.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the repeated string.
- * @example
- *
- * _.repeat('*', 3);
- * // => '***'
- *
- * _.repeat('abc', 2);
- * // => 'abcabc'
- *
- * _.repeat('abc', 0);
- * // => ''
- */
-function repeat(string, n, guard) {
- if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = toInteger(n);
- }
- return baseRepeat(toString(string), n);
-}
-
-module.exports = repeat;
diff --git a/node_modules/lodash/replace.js b/node_modules/lodash/replace.js
deleted file mode 100644
index 6e26ecd..0000000
--- a/node_modules/lodash/replace.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var toString = require('./toString');
-
-/**
- * Replaces matches for `pattern` in `string` with `replacement`.
- *
- * **Note:** This method is based on
- * [`String#replace`](https://mdn.io/String/replace).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to modify.
- * @param {RegExp|string} pattern The pattern to replace.
- * @param {Function|string} replacement The match replacement.
- * @returns {string} Returns the modified string.
- * @example
- *
- * _.replace('Hi Fred', 'Fred', 'Barney');
- * // => 'Hi Barney'
- */
-function replace() {
- var args = arguments,
- string = toString(args[0]);
-
- return args.length < 3 ? string : string.replace(args[1], args[2]);
-}
-
-module.exports = replace;
diff --git a/node_modules/lodash/rest.js b/node_modules/lodash/rest.js
deleted file mode 100644
index eaaad00..0000000
--- a/node_modules/lodash/rest.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var baseRest = require('./_baseRest'),
- toInteger = require('./toInteger');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * Creates a function that invokes `func` with the `this` binding of the
- * created function and arguments from `start` and beyond provided as
- * an array.
- *
- * **Note:** This method is based on the
- * [rest parameter](https://mdn.io/rest_parameters).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to apply a rest parameter to.
- * @param {number} [start=func.length-1] The start position of the rest parameter.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.rest(function(what, names) {
- * return what + ' ' + _.initial(names).join(', ') +
- * (_.size(names) > 1 ? ', & ' : '') + _.last(names);
- * });
- *
- * say('hello', 'fred', 'barney', 'pebbles');
- * // => 'hello fred, barney, & pebbles'
- */
-function rest(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = start === undefined ? start : toInteger(start);
- return baseRest(func, start);
-}
-
-module.exports = rest;
diff --git a/node_modules/lodash/result.js b/node_modules/lodash/result.js
deleted file mode 100644
index eae1250..0000000
--- a/node_modules/lodash/result.js
+++ /dev/null
@@ -1,56 +0,0 @@
-var castPath = require('./_castPath'),
- isFunction = require('./isFunction'),
- toKey = require('./_toKey');
-
-/**
- * This method is like `_.get` except that if the resolved value is a
- * function it's invoked with the `this` binding of its parent object and
- * its result is returned.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to resolve.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
- *
- * _.result(object, 'a[0].b.c1');
- * // => 3
- *
- * _.result(object, 'a[0].b.c2');
- * // => 4
- *
- * _.result(object, 'a[0].b.c3', 'default');
- * // => 'default'
- *
- * _.result(object, 'a[0].b.c3', _.constant('default'));
- * // => 'default'
- */
-function result(object, path, defaultValue) {
- path = castPath(path, object);
-
- var index = -1,
- length = path.length;
-
- // Ensure the loop is entered when path is empty.
- if (!length) {
- length = 1;
- object = undefined;
- }
- while (++index < length) {
- var value = object == null ? undefined : object[toKey(path[index])];
- if (value === undefined) {
- index = length;
- value = defaultValue;
- }
- object = isFunction(value) ? value.call(object) : value;
- }
- return object;
-}
-
-module.exports = result;
diff --git a/node_modules/lodash/reverse.js b/node_modules/lodash/reverse.js
deleted file mode 100644
index 21764af..0000000
--- a/node_modules/lodash/reverse.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/** Used for built-in method references. */
-var arrayProto = Array.prototype;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeReverse = arrayProto.reverse;
-
-/**
- * Reverses `array` so that the first element becomes the last, the second
- * element becomes the second to last, and so on.
- *
- * **Note:** This method mutates `array` and is based on
- * [`Array#reverse`](https://mdn.io/Array/reverse).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to modify.
- * @returns {Array} Returns `array`.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _.reverse(array);
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
-function reverse(array) {
- return array == null ? array : nativeReverse.call(array);
-}
-
-module.exports = reverse;
diff --git a/node_modules/lodash/round.js b/node_modules/lodash/round.js
deleted file mode 100644
index fccc831..0000000
--- a/node_modules/lodash/round.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var createRound = require('./_createRound');
-
-/**
- * Computes `number` rounded to `precision`.
- *
- * @static
- * @memberOf _
- * @since 3.10.0
- * @category Math
- * @param {number} number The number to round.
- * @param {number} [precision=0] The precision to round to.
- * @returns {number} Returns the rounded number.
- * @example
- *
- * _.round(4.006);
- * // => 4
- *
- * _.round(4.006, 2);
- * // => 4.01
- *
- * _.round(4060, -2);
- * // => 4100
- */
-var round = createRound('round');
-
-module.exports = round;
diff --git a/node_modules/lodash/sample.js b/node_modules/lodash/sample.js
deleted file mode 100644
index 39c3560..0000000
--- a/node_modules/lodash/sample.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var arraySample = require('./_arraySample'),
- baseSample = require('./_baseSample'),
- isArray = require('./isArray');
-
-/**
- * Gets a random element from `collection`.
- *
- * @static
- * @memberOf _
- * @since 2.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @returns {*} Returns the random element.
- * @example
- *
- * _.sample([1, 2, 3, 4]);
- * // => 2
- */
-function sample(collection) {
- var func = isArray(collection) ? arraySample : baseSample;
- return func(collection);
-}
-
-module.exports = sample;
diff --git a/node_modules/lodash/sampleSize.js b/node_modules/lodash/sampleSize.js
deleted file mode 100644
index a303686..0000000
--- a/node_modules/lodash/sampleSize.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var arraySampleSize = require('./_arraySampleSize'),
- baseSampleSize = require('./_baseSampleSize'),
- isArray = require('./isArray'),
- isIterateeCall = require('./_isIterateeCall'),
- toInteger = require('./toInteger');
-
-/**
- * Gets `n` random elements at unique keys from `collection` up to the
- * size of `collection`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Collection
- * @param {Array|Object} collection The collection to sample.
- * @param {number} [n=1] The number of elements to sample.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the random elements.
- * @example
- *
- * _.sampleSize([1, 2, 3], 2);
- * // => [3, 1]
- *
- * _.sampleSize([1, 2, 3], 4);
- * // => [2, 3, 1]
- */
-function sampleSize(collection, n, guard) {
- if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
- n = 1;
- } else {
- n = toInteger(n);
- }
- var func = isArray(collection) ? arraySampleSize : baseSampleSize;
- return func(collection, n);
-}
-
-module.exports = sampleSize;
diff --git a/node_modules/lodash/seq.js b/node_modules/lodash/seq.js
deleted file mode 100644
index 1570c2d..0000000
--- a/node_modules/lodash/seq.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = {
- 'at': require('./wrapperAt'),
- 'chain': require('./chain'),
- 'commit': require('./commit'),
- 'lodash': require('./wrapperLodash'),
- 'next': require('./next'),
- 'plant': require('./plant'),
- 'reverse': require('./wrapperReverse'),
- 'tap': require('./tap'),
- 'thru': require('./thru'),
- 'toIterator': require('./toIterator'),
- 'toJSON': require('./toJSON'),
- 'value': require('./wrapperValue'),
- 'valueOf': require('./valueOf'),
- 'wrapperChain': require('./wrapperChain')
-};
diff --git a/node_modules/lodash/set.js b/node_modules/lodash/set.js
deleted file mode 100644
index d663002..0000000
--- a/node_modules/lodash/set.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var baseSet = require('./_baseSet');
-
-/**
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
- * it's created. Arrays are created for missing index properties while objects
- * are created for all other missing properties. Use `_.setWith` to customize
- * `path` creation.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.set(object, 'a[0].b.c', 4);
- * console.log(object.a[0].b.c);
- * // => 4
- *
- * _.set(object, ['x', '0', 'y', 'z'], 5);
- * console.log(object.x[0].y.z);
- * // => 5
- */
-function set(object, path, value) {
- return object == null ? object : baseSet(object, path, value);
-}
-
-module.exports = set;
diff --git a/node_modules/lodash/setWith.js b/node_modules/lodash/setWith.js
deleted file mode 100644
index fb3e0f6..0000000
--- a/node_modules/lodash/setWith.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var baseSet = require('./_baseSet');
-
-/**
- * This method is like `_.set` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.setWith(object, '[0][1]', 'a', Object);
- * // => { '0': { '1': 'a' } }
- */
-function setWith(object, path, value, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseSet(object, path, value, customizer);
-}
-
-module.exports = setWith;
diff --git a/node_modules/lodash/shuffle.js b/node_modules/lodash/shuffle.js
deleted file mode 100644
index 2b72da7..0000000
--- a/node_modules/lodash/shuffle.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var arrayShuffle = require('./_arrayShuffle'),
- baseShuffle = require('./_baseShuffle'),
- isArray = require('./isArray');
-
-/**
- * Creates an array of shuffled values, using a version of the
- * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to shuffle.
- * @returns {Array} Returns the new shuffled array.
- * @example
- *
- * _.shuffle([1, 2, 3, 4]);
- * // => [4, 1, 3, 2]
- */
-function shuffle(collection) {
- var func = isArray(collection) ? arrayShuffle : baseShuffle;
- return func(collection);
-}
-
-module.exports = shuffle;
diff --git a/node_modules/lodash/size.js b/node_modules/lodash/size.js
deleted file mode 100644
index 3561fc1..0000000
--- a/node_modules/lodash/size.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var baseKeys = require('./_baseKeys'),
- getTag = require('./_getTag'),
- isArrayLike = require('./isArrayLike'),
- isString = require('./isString'),
- stringSize = require('./_stringSize');
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
- setTag = '[object Set]';
-
-/**
- * Gets the size of `collection` by returning its length for array-like
- * values or the number of own enumerable string keyed properties for objects.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object|string} collection The collection to inspect.
- * @returns {number} Returns the collection size.
- * @example
- *
- * _.size([1, 2, 3]);
- * // => 3
- *
- * _.size({ 'a': 1, 'b': 2 });
- * // => 2
- *
- * _.size('pebbles');
- * // => 7
- */
-function size(collection) {
- if (collection == null) {
- return 0;
- }
- if (isArrayLike(collection)) {
- return isString(collection) ? stringSize(collection) : collection.length;
- }
- var tag = getTag(collection);
- if (tag == mapTag || tag == setTag) {
- return collection.size;
- }
- return baseKeys(collection).length;
-}
-
-module.exports = size;
diff --git a/node_modules/lodash/slice.js b/node_modules/lodash/slice.js
deleted file mode 100644
index f732442..0000000
--- a/node_modules/lodash/slice.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseSlice = require('./_baseSlice'),
- isIterateeCall = require('./_isIterateeCall'),
- toInteger = require('./toInteger');
-
-/**
- * Creates a slice of `array` from `start` up to, but not including, `end`.
- *
- * **Note:** This method is used instead of
- * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
- * returned.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to slice.
- * @param {number} [start=0] The start position.
- * @param {number} [end=array.length] The end position.
- * @returns {Array} Returns the slice of `array`.
- */
-function slice(array, start, end) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
- start = 0;
- end = length;
- }
- else {
- start = start == null ? 0 : toInteger(start);
- end = end === undefined ? length : toInteger(end);
- }
- return baseSlice(array, start, end);
-}
-
-module.exports = slice;
diff --git a/node_modules/lodash/snakeCase.js b/node_modules/lodash/snakeCase.js
deleted file mode 100644
index 27f2a76..0000000
--- a/node_modules/lodash/snakeCase.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var createCompounder = require('./_createCompounder');
-
-/**
- * Converts `string` to
- * [snake case](https://en.wikipedia.org/wiki/Snake_case).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the snake cased string.
- * @example
- *
- * _.snakeCase('Foo Bar');
- * // => 'foo_bar'
- *
- * _.snakeCase('fooBar');
- * // => 'foo_bar'
- *
- * _.snakeCase('--FOO-BAR--');
- * // => 'foo_bar'
- */
-var snakeCase = createCompounder(function(result, word, index) {
- return result + (index ? '_' : '') + word.toLowerCase();
-});
-
-module.exports = snakeCase;
diff --git a/node_modules/lodash/some.js b/node_modules/lodash/some.js
deleted file mode 100644
index 9c1d08c..0000000
--- a/node_modules/lodash/some.js
+++ /dev/null
@@ -1,51 +0,0 @@
-var arraySome = require('./_arraySome'),
- baseIteratee = require('./_baseIteratee'),
- baseSome = require('./_baseSome'),
- isArray = require('./isArray'),
- isIterateeCall = require('./_isIterateeCall');
-
-/**
- * Checks if `predicate` returns truthy for **any** element of `collection`.
- * Iteration is stopped once `predicate` returns truthy. The predicate is
- * invoked with three arguments: (value, index|key, collection).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {boolean} Returns `true` if any element passes the predicate check,
- * else `false`.
- * @example
- *
- * _.some([null, 0, 'yes', false], Boolean);
- * // => true
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false }
- * ];
- *
- * // The `_.matches` iteratee shorthand.
- * _.some(users, { 'user': 'barney', 'active': false });
- * // => false
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.some(users, ['active', false]);
- * // => true
- *
- * // The `_.property` iteratee shorthand.
- * _.some(users, 'active');
- * // => true
- */
-function some(collection, predicate, guard) {
- var func = isArray(collection) ? arraySome : baseSome;
- if (guard && isIterateeCall(collection, predicate, guard)) {
- predicate = undefined;
- }
- return func(collection, baseIteratee(predicate, 3));
-}
-
-module.exports = some;
diff --git a/node_modules/lodash/sortBy.js b/node_modules/lodash/sortBy.js
deleted file mode 100644
index 4ba8f7a..0000000
--- a/node_modules/lodash/sortBy.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- baseOrderBy = require('./_baseOrderBy'),
- baseRest = require('./_baseRest'),
- isIterateeCall = require('./_isIterateeCall');
-
-/**
- * Creates an array of elements, sorted in ascending order by the results of
- * running each element in a collection thru each iteratee. This method
- * performs a stable sort, that is, it preserves the original sort order of
- * equal elements. The iteratees are invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Collection
- * @param {Array|Object} collection The collection to iterate over.
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
- * The iteratees to sort by.
- * @returns {Array} Returns the new sorted array.
- * @example
- *
- * var users = [
- * { 'user': 'fred', 'age': 48 },
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 },
- * { 'user': 'barney', 'age': 34 }
- * ];
- *
- * _.sortBy(users, [function(o) { return o.user; }]);
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
- *
- * _.sortBy(users, ['user', 'age']);
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
- */
-var sortBy = baseRest(function(collection, iteratees) {
- if (collection == null) {
- return [];
- }
- var length = iteratees.length;
- if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
- iteratees = [];
- } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
- iteratees = [iteratees[0]];
- }
- return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
-});
-
-module.exports = sortBy;
diff --git a/node_modules/lodash/sortedIndex.js b/node_modules/lodash/sortedIndex.js
deleted file mode 100644
index e763473..0000000
--- a/node_modules/lodash/sortedIndex.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var baseSortedIndex = require('./_baseSortedIndex');
-
-/**
- * Uses a binary search to determine the lowest index at which `value`
- * should be inserted into `array` in order to maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedIndex([30, 50], 40);
- * // => 1
- */
-function sortedIndex(array, value) {
- return baseSortedIndex(array, value);
-}
-
-module.exports = sortedIndex;
diff --git a/node_modules/lodash/sortedIndexBy.js b/node_modules/lodash/sortedIndexBy.js
deleted file mode 100644
index 945f23c..0000000
--- a/node_modules/lodash/sortedIndexBy.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseSortedIndexBy = require('./_baseSortedIndexBy');
-
-/**
- * This method is like `_.sortedIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 0
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
- * // => 0
- */
-function sortedIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, baseIteratee(iteratee, 2));
-}
-
-module.exports = sortedIndexBy;
diff --git a/node_modules/lodash/sortedIndexOf.js b/node_modules/lodash/sortedIndexOf.js
deleted file mode 100644
index e2d3b7a..0000000
--- a/node_modules/lodash/sortedIndexOf.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseSortedIndex = require('./_baseSortedIndex'),
- eq = require('./eq');
-
-/**
- * This method is like `_.indexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
- * // => 1
- */
-function sortedIndexOf(array, value) {
- var length = array == null ? 0 : array.length;
- if (length) {
- var index = baseSortedIndex(array, value);
- if (index < length && eq(array[index], value)) {
- return index;
- }
- }
- return -1;
-}
-
-module.exports = sortedIndexOf;
diff --git a/node_modules/lodash/sortedLastIndex.js b/node_modules/lodash/sortedLastIndex.js
deleted file mode 100644
index 9380cb9..0000000
--- a/node_modules/lodash/sortedLastIndex.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var baseSortedIndex = require('./_baseSortedIndex');
-
-/**
- * This method is like `_.sortedIndex` except that it returns the highest
- * index at which `value` should be inserted into `array` in order to
- * maintain its sort order.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
- * // => 4
- */
-function sortedLastIndex(array, value) {
- return baseSortedIndex(array, value, true);
-}
-
-module.exports = sortedLastIndex;
diff --git a/node_modules/lodash/sortedLastIndexBy.js b/node_modules/lodash/sortedLastIndexBy.js
deleted file mode 100644
index 9225eeb..0000000
--- a/node_modules/lodash/sortedLastIndexBy.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseSortedIndexBy = require('./_baseSortedIndexBy');
-
-/**
- * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
- * which is invoked for `value` and each element of `array` to compute their
- * sort ranking. The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The sorted array to inspect.
- * @param {*} value The value to evaluate.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the index at which `value` should be inserted
- * into `array`.
- * @example
- *
- * var objects = [{ 'x': 4 }, { 'x': 5 }];
- *
- * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
- * // => 1
- *
- * // The `_.property` iteratee shorthand.
- * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
- * // => 1
- */
-function sortedLastIndexBy(array, value, iteratee) {
- return baseSortedIndexBy(array, value, baseIteratee(iteratee, 2), true);
-}
-
-module.exports = sortedLastIndexBy;
diff --git a/node_modules/lodash/sortedLastIndexOf.js b/node_modules/lodash/sortedLastIndexOf.js
deleted file mode 100644
index 18bc4c5..0000000
--- a/node_modules/lodash/sortedLastIndexOf.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseSortedIndex = require('./_baseSortedIndex'),
- eq = require('./eq');
-
-/**
- * This method is like `_.lastIndexOf` except that it performs a binary
- * search on a sorted `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {*} value The value to search for.
- * @returns {number} Returns the index of the matched value, else `-1`.
- * @example
- *
- * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
- * // => 3
- */
-function sortedLastIndexOf(array, value) {
- var length = array == null ? 0 : array.length;
- if (length) {
- var index = baseSortedIndex(array, value, true) - 1;
- if (eq(array[index], value)) {
- return index;
- }
- }
- return -1;
-}
-
-module.exports = sortedLastIndexOf;
diff --git a/node_modules/lodash/sortedUniq.js b/node_modules/lodash/sortedUniq.js
deleted file mode 100644
index 866db31..0000000
--- a/node_modules/lodash/sortedUniq.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var baseSortedUniq = require('./_baseSortedUniq');
-
-/**
- * This method is like `_.uniq` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniq([1, 1, 2]);
- * // => [1, 2]
- */
-function sortedUniq(array) {
- return (array && array.length)
- ? baseSortedUniq(array)
- : [];
-}
-
-module.exports = sortedUniq;
diff --git a/node_modules/lodash/sortedUniqBy.js b/node_modules/lodash/sortedUniqBy.js
deleted file mode 100644
index 4f05ebe..0000000
--- a/node_modules/lodash/sortedUniqBy.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseSortedUniq = require('./_baseSortedUniq');
-
-/**
- * This method is like `_.uniqBy` except that it's designed and optimized
- * for sorted arrays.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
- * // => [1.1, 2.3]
- */
-function sortedUniqBy(array, iteratee) {
- return (array && array.length)
- ? baseSortedUniq(array, baseIteratee(iteratee, 2))
- : [];
-}
-
-module.exports = sortedUniqBy;
diff --git a/node_modules/lodash/split.js b/node_modules/lodash/split.js
deleted file mode 100644
index 956b48a..0000000
--- a/node_modules/lodash/split.js
+++ /dev/null
@@ -1,52 +0,0 @@
-var baseToString = require('./_baseToString'),
- castSlice = require('./_castSlice'),
- hasUnicode = require('./_hasUnicode'),
- isIterateeCall = require('./_isIterateeCall'),
- isRegExp = require('./isRegExp'),
- stringToArray = require('./_stringToArray'),
- toString = require('./toString');
-
-/** Used as references for the maximum length and index of an array. */
-var MAX_ARRAY_LENGTH = 4294967295;
-
-/**
- * Splits `string` by `separator`.
- *
- * **Note:** This method is based on
- * [`String#split`](https://mdn.io/String/split).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to split.
- * @param {RegExp|string} separator The separator pattern to split by.
- * @param {number} [limit] The length to truncate results to.
- * @returns {Array} Returns the string segments.
- * @example
- *
- * _.split('a-b-c', '-', 2);
- * // => ['a', 'b']
- */
-function split(string, separator, limit) {
- if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
- separator = limit = undefined;
- }
- limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;
- if (!limit) {
- return [];
- }
- string = toString(string);
- if (string && (
- typeof separator == 'string' ||
- (separator != null && !isRegExp(separator))
- )) {
- separator = baseToString(separator);
- if (!separator && hasUnicode(string)) {
- return castSlice(stringToArray(string), 0, limit);
- }
- }
- return string.split(separator, limit);
-}
-
-module.exports = split;
diff --git a/node_modules/lodash/spread.js b/node_modules/lodash/spread.js
deleted file mode 100644
index 60a08e2..0000000
--- a/node_modules/lodash/spread.js
+++ /dev/null
@@ -1,63 +0,0 @@
-var apply = require('./_apply'),
- arrayPush = require('./_arrayPush'),
- baseRest = require('./_baseRest'),
- castSlice = require('./_castSlice'),
- toInteger = require('./toInteger');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * Creates a function that invokes `func` with the `this` binding of the
- * create function and an array of arguments much like
- * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
- *
- * **Note:** This method is based on the
- * [spread operator](https://mdn.io/spread_operator).
- *
- * @static
- * @memberOf _
- * @since 3.2.0
- * @category Function
- * @param {Function} func The function to spread arguments over.
- * @param {number} [start=0] The start position of the spread.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var say = _.spread(function(who, what) {
- * return who + ' says ' + what;
- * });
- *
- * say(['fred', 'hello']);
- * // => 'fred says hello'
- *
- * var numbers = Promise.all([
- * Promise.resolve(40),
- * Promise.resolve(36)
- * ]);
- *
- * numbers.then(_.spread(function(x, y) {
- * return x + y;
- * }));
- * // => a Promise of 76
- */
-function spread(func, start) {
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- start = start == null ? 0 : nativeMax(toInteger(start), 0);
- return baseRest(function(args) {
- var array = args[start],
- otherArgs = castSlice(args, 0, start);
-
- if (array) {
- arrayPush(otherArgs, array);
- }
- return apply(func, this, otherArgs);
- });
-}
-
-module.exports = spread;
diff --git a/node_modules/lodash/startCase.js b/node_modules/lodash/startCase.js
deleted file mode 100644
index a48f21c..0000000
--- a/node_modules/lodash/startCase.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var createCompounder = require('./_createCompounder'),
- upperFirst = require('./upperFirst');
-
-/**
- * Converts `string` to
- * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
- *
- * @static
- * @memberOf _
- * @since 3.1.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the start cased string.
- * @example
- *
- * _.startCase('--foo-bar--');
- * // => 'Foo Bar'
- *
- * _.startCase('fooBar');
- * // => 'Foo Bar'
- *
- * _.startCase('__FOO_BAR__');
- * // => 'FOO BAR'
- */
-var startCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + upperFirst(word);
-});
-
-module.exports = startCase;
diff --git a/node_modules/lodash/startsWith.js b/node_modules/lodash/startsWith.js
deleted file mode 100644
index 956c098..0000000
--- a/node_modules/lodash/startsWith.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseClamp = require('./_baseClamp'),
- baseToString = require('./_baseToString'),
- toInteger = require('./toInteger'),
- toString = require('./toString');
-
-/**
- * Checks if `string` starts with the given target string.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {string} [target] The string to search for.
- * @param {number} [position=0] The position to search from.
- * @returns {boolean} Returns `true` if `string` starts with `target`,
- * else `false`.
- * @example
- *
- * _.startsWith('abc', 'a');
- * // => true
- *
- * _.startsWith('abc', 'b');
- * // => false
- *
- * _.startsWith('abc', 'b', 1);
- * // => true
- */
-function startsWith(string, target, position) {
- string = toString(string);
- position = position == null
- ? 0
- : baseClamp(toInteger(position), 0, string.length);
-
- target = baseToString(target);
- return string.slice(position, position + target.length) == target;
-}
-
-module.exports = startsWith;
diff --git a/node_modules/lodash/string.js b/node_modules/lodash/string.js
deleted file mode 100644
index 2c829c1..0000000
--- a/node_modules/lodash/string.js
+++ /dev/null
@@ -1,33 +0,0 @@
-module.exports = {
- 'camelCase': require('./camelCase'),
- 'capitalize': require('./capitalize'),
- 'deburr': require('./deburr'),
- 'endsWith': require('./endsWith'),
- 'escape': require('./escape'),
- 'escapeRegExp': require('./escapeRegExp'),
- 'kebabCase': require('./kebabCase'),
- 'lowerCase': require('./lowerCase'),
- 'lowerFirst': require('./lowerFirst'),
- 'pad': require('./pad'),
- 'padEnd': require('./padEnd'),
- 'padStart': require('./padStart'),
- 'parseInt': require('./parseInt'),
- 'repeat': require('./repeat'),
- 'replace': require('./replace'),
- 'snakeCase': require('./snakeCase'),
- 'split': require('./split'),
- 'startCase': require('./startCase'),
- 'startsWith': require('./startsWith'),
- 'template': require('./template'),
- 'templateSettings': require('./templateSettings'),
- 'toLower': require('./toLower'),
- 'toUpper': require('./toUpper'),
- 'trim': require('./trim'),
- 'trimEnd': require('./trimEnd'),
- 'trimStart': require('./trimStart'),
- 'truncate': require('./truncate'),
- 'unescape': require('./unescape'),
- 'upperCase': require('./upperCase'),
- 'upperFirst': require('./upperFirst'),
- 'words': require('./words')
-};
diff --git a/node_modules/lodash/stubArray.js b/node_modules/lodash/stubArray.js
deleted file mode 100644
index f460c15..0000000
--- a/node_modules/lodash/stubArray.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * This method returns a new empty array.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Array} Returns the new empty array.
- * @example
- *
- * var arrays = _.times(2, _.stubArray);
- *
- * console.log(arrays);
- * // => [[], []]
- *
- * console.log(arrays[0] === arrays[1]);
- * // => false
- */
-function stubArray() {
- return [];
-}
-
-module.exports = stubArray;
diff --git a/node_modules/lodash/stubFalse.js b/node_modules/lodash/stubFalse.js
deleted file mode 100644
index 9b346fc..0000000
--- a/node_modules/lodash/stubFalse.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * This method returns `false`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `false`.
- * @example
- *
- * _.times(2, _.stubFalse);
- * // => [false, false]
- */
-function stubFalse() {
- return false;
-}
-
-module.exports = stubFalse;
diff --git a/node_modules/lodash/stubObject.js b/node_modules/lodash/stubObject.js
deleted file mode 100644
index 1d190a1..0000000
--- a/node_modules/lodash/stubObject.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * This method returns a new empty object.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {Object} Returns the new empty object.
- * @example
- *
- * var objects = _.times(2, _.stubObject);
- *
- * console.log(objects);
- * // => [{}, {}]
- *
- * console.log(objects[0] === objects[1]);
- * // => false
- */
-function stubObject() {
- return {};
-}
-
-module.exports = stubObject;
diff --git a/node_modules/lodash/stubString.js b/node_modules/lodash/stubString.js
deleted file mode 100644
index 2db0bed..0000000
--- a/node_modules/lodash/stubString.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * This method returns an empty string.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {string} Returns the empty string.
- * @example
- *
- * _.times(2, _.stubString);
- * // => ['', '']
- */
-function stubString() {
- return '';
-}
-
-module.exports = stubString;
diff --git a/node_modules/lodash/stubTrue.js b/node_modules/lodash/stubTrue.js
deleted file mode 100644
index af3cc9e..0000000
--- a/node_modules/lodash/stubTrue.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * This method returns `true`.
- *
- * @static
- * @memberOf _
- * @since 4.13.0
- * @category Util
- * @returns {boolean} Returns `true`.
- * @example
- *
- * _.times(2, _.stubTrue);
- * // => [true, true]
- */
-function stubTrue() {
- return true;
-}
-
-module.exports = stubTrue;
diff --git a/node_modules/lodash/subtract.js b/node_modules/lodash/subtract.js
deleted file mode 100644
index 6720778..0000000
--- a/node_modules/lodash/subtract.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var createMathOperation = require('./_createMathOperation');
-
-/**
- * Subtract two numbers.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {number} minuend The first number in a subtraction.
- * @param {number} subtrahend The second number in a subtraction.
- * @returns {number} Returns the difference.
- * @example
- *
- * _.subtract(6, 4);
- * // => 2
- */
-var subtract = createMathOperation(function(minuend, subtrahend) {
- return minuend - subtrahend;
-}, 0);
-
-module.exports = subtract;
diff --git a/node_modules/lodash/sum.js b/node_modules/lodash/sum.js
deleted file mode 100644
index 3b07ee4..0000000
--- a/node_modules/lodash/sum.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var baseSum = require('./_baseSum'),
- identity = require('./identity');
-
-/**
- * Computes the sum of the values in `array`.
- *
- * @static
- * @memberOf _
- * @since 3.4.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @returns {number} Returns the sum.
- * @example
- *
- * _.sum([4, 2, 8, 6]);
- * // => 20
- */
-function sum(array) {
- return (array && array.length)
- ? baseSum(array, identity)
- : 0;
-}
-
-module.exports = sum;
diff --git a/node_modules/lodash/sumBy.js b/node_modules/lodash/sumBy.js
deleted file mode 100644
index 00e36d0..0000000
--- a/node_modules/lodash/sumBy.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseSum = require('./_baseSum');
-
-/**
- * This method is like `_.sum` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the value to be summed.
- * The iteratee is invoked with one argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Math
- * @param {Array} array The array to iterate over.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {number} Returns the sum.
- * @example
- *
- * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
- *
- * _.sumBy(objects, function(o) { return o.n; });
- * // => 20
- *
- * // The `_.property` iteratee shorthand.
- * _.sumBy(objects, 'n');
- * // => 20
- */
-function sumBy(array, iteratee) {
- return (array && array.length)
- ? baseSum(array, baseIteratee(iteratee, 2))
- : 0;
-}
-
-module.exports = sumBy;
diff --git a/node_modules/lodash/tail.js b/node_modules/lodash/tail.js
deleted file mode 100644
index 001c22d..0000000
--- a/node_modules/lodash/tail.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseSlice = require('./_baseSlice');
-
-/**
- * Gets all but the first element of `array`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.tail([1, 2, 3]);
- * // => [2, 3]
- */
-function tail(array) {
- var length = array == null ? 0 : array.length;
- return length ? baseSlice(array, 1, length) : [];
-}
-
-module.exports = tail;
diff --git a/node_modules/lodash/take.js b/node_modules/lodash/take.js
deleted file mode 100644
index b7da712..0000000
--- a/node_modules/lodash/take.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseSlice = require('./_baseSlice'),
- toInteger = require('./toInteger');
-
-/**
- * Creates a slice of `array` with `n` elements taken from the beginning.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.take([1, 2, 3]);
- * // => [1]
- *
- * _.take([1, 2, 3], 2);
- * // => [1, 2]
- *
- * _.take([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.take([1, 2, 3], 0);
- * // => []
- */
-function take(array, n, guard) {
- if (!(array && array.length)) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- return baseSlice(array, 0, n < 0 ? 0 : n);
-}
-
-module.exports = take;
diff --git a/node_modules/lodash/takeRight.js b/node_modules/lodash/takeRight.js
deleted file mode 100644
index 6c37506..0000000
--- a/node_modules/lodash/takeRight.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseSlice = require('./_baseSlice'),
- toInteger = require('./toInteger');
-
-/**
- * Creates a slice of `array` with `n` elements taken from the end.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {number} [n=1] The number of elements to take.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * _.takeRight([1, 2, 3]);
- * // => [3]
- *
- * _.takeRight([1, 2, 3], 2);
- * // => [2, 3]
- *
- * _.takeRight([1, 2, 3], 5);
- * // => [1, 2, 3]
- *
- * _.takeRight([1, 2, 3], 0);
- * // => []
- */
-function takeRight(array, n, guard) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- n = (guard || n === undefined) ? 1 : toInteger(n);
- n = length - n;
- return baseSlice(array, n < 0 ? 0 : n, length);
-}
-
-module.exports = takeRight;
diff --git a/node_modules/lodash/takeRightWhile.js b/node_modules/lodash/takeRightWhile.js
deleted file mode 100644
index 94ab783..0000000
--- a/node_modules/lodash/takeRightWhile.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseWhile = require('./_baseWhile');
-
-/**
- * Creates a slice of `array` with elements taken from the end. Elements are
- * taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': true },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': false }
- * ];
- *
- * _.takeRightWhile(users, function(o) { return !o.active; });
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
- * // => objects for ['pebbles']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeRightWhile(users, ['active', false]);
- * // => objects for ['fred', 'pebbles']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeRightWhile(users, 'active');
- * // => []
- */
-function takeRightWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, baseIteratee(predicate, 3), false, true)
- : [];
-}
-
-module.exports = takeRightWhile;
diff --git a/node_modules/lodash/takeWhile.js b/node_modules/lodash/takeWhile.js
deleted file mode 100644
index e88f591..0000000
--- a/node_modules/lodash/takeWhile.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseWhile = require('./_baseWhile');
-
-/**
- * Creates a slice of `array` with elements taken from the beginning. Elements
- * are taken until `predicate` returns falsey. The predicate is invoked with
- * three arguments: (value, index, array).
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Array
- * @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the slice of `array`.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'active': false },
- * { 'user': 'fred', 'active': false },
- * { 'user': 'pebbles', 'active': true }
- * ];
- *
- * _.takeWhile(users, function(o) { return !o.active; });
- * // => objects for ['barney', 'fred']
- *
- * // The `_.matches` iteratee shorthand.
- * _.takeWhile(users, { 'user': 'barney', 'active': false });
- * // => objects for ['barney']
- *
- * // The `_.matchesProperty` iteratee shorthand.
- * _.takeWhile(users, ['active', false]);
- * // => objects for ['barney', 'fred']
- *
- * // The `_.property` iteratee shorthand.
- * _.takeWhile(users, 'active');
- * // => []
- */
-function takeWhile(array, predicate) {
- return (array && array.length)
- ? baseWhile(array, baseIteratee(predicate, 3))
- : [];
-}
-
-module.exports = takeWhile;
diff --git a/node_modules/lodash/tap.js b/node_modules/lodash/tap.js
deleted file mode 100644
index d007285..0000000
--- a/node_modules/lodash/tap.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * This method invokes `interceptor` and returns `value`. The interceptor
- * is invoked with one argument; (value). The purpose of this method is to
- * "tap into" a method chain sequence in order to modify intermediate results.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns `value`.
- * @example
- *
- * _([1, 2, 3])
- * .tap(function(array) {
- * // Mutate input array.
- * array.pop();
- * })
- * .reverse()
- * .value();
- * // => [2, 1]
- */
-function tap(value, interceptor) {
- interceptor(value);
- return value;
-}
-
-module.exports = tap;
diff --git a/node_modules/lodash/template.js b/node_modules/lodash/template.js
deleted file mode 100644
index f71d130..0000000
--- a/node_modules/lodash/template.js
+++ /dev/null
@@ -1,253 +0,0 @@
-var assignInWith = require('./assignInWith'),
- attempt = require('./attempt'),
- baseValues = require('./_baseValues'),
- customDefaultsAssignIn = require('./_customDefaultsAssignIn'),
- escapeStringChar = require('./_escapeStringChar'),
- isError = require('./isError'),
- isIterateeCall = require('./_isIterateeCall'),
- keys = require('./keys'),
- reInterpolate = require('./_reInterpolate'),
- templateSettings = require('./templateSettings'),
- toString = require('./toString');
-
-/** Used to match empty string literals in compiled template source. */
-var reEmptyStringLeading = /\b__p \+= '';/g,
- reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
- reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
-
-/**
- * Used to match
- * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
- */
-var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
-
-/** Used to ensure capturing order of template delimiters. */
-var reNoMatch = /($^)/;
-
-/** Used to match unescaped characters in compiled string literals. */
-var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Creates a compiled template function that can interpolate data properties
- * in "interpolate" delimiters, HTML-escape interpolated data properties in
- * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
- * properties may be accessed as free variables in the template. If a setting
- * object is given, it takes precedence over `_.templateSettings` values.
- *
- * **Note:** In the development build `_.template` utilizes
- * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
- * for easier debugging.
- *
- * For more information on precompiling templates see
- * [lodash's custom builds documentation](https://lodash.com/custom-builds).
- *
- * For more information on Chrome extension sandboxes see
- * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category String
- * @param {string} [string=''] The template string.
- * @param {Object} [options={}] The options object.
- * @param {RegExp} [options.escape=_.templateSettings.escape]
- * The HTML "escape" delimiter.
- * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
- * The "evaluate" delimiter.
- * @param {Object} [options.imports=_.templateSettings.imports]
- * An object to import into the template as free variables.
- * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
- * The "interpolate" delimiter.
- * @param {string} [options.sourceURL='templateSources[n]']
- * The sourceURL of the compiled template.
- * @param {string} [options.variable='obj']
- * The data object variable name.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Function} Returns the compiled template function.
- * @example
- *
- * // Use the "interpolate" delimiter to create a compiled template.
- * var compiled = _.template('hello <%= user %>!');
- * compiled({ 'user': 'fred' });
- * // => 'hello fred!'
- *
- * // Use the HTML "escape" delimiter to escape data property values.
- * var compiled = _.template('<b><%- value %></b>');
- * compiled({ 'value': '<script>' });
- * // => '<b>&lt;script&gt;</b>'
- *
- * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
- * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the internal `print` function in "evaluate" delimiters.
- * var compiled = _.template('<% print("hello " + user); %>!');
- * compiled({ 'user': 'barney' });
- * // => 'hello barney!'
- *
- * // Use the ES template literal delimiter as an "interpolate" delimiter.
- * // Disable support by replacing the "interpolate" delimiter.
- * var compiled = _.template('hello ${ user }!');
- * compiled({ 'user': 'pebbles' });
- * // => 'hello pebbles!'
- *
- * // Use backslashes to treat delimiters as plain text.
- * var compiled = _.template('<%= "\\<%- value %\\>" %>');
- * compiled({ 'value': 'ignored' });
- * // => '<%- value %>'
- *
- * // Use the `imports` option to import `jQuery` as `jq`.
- * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
- * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
- * compiled({ 'users': ['fred', 'barney'] });
- * // => '<li>fred</li><li>barney</li>'
- *
- * // Use the `sourceURL` option to specify a custom sourceURL for the template.
- * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
- * compiled(data);
- * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
- *
- * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
- * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
- * compiled.source;
- * // => function(data) {
- * // var __t, __p = '';
- * // __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
- * // return __p;
- * // }
- *
- * // Use custom template delimiters.
- * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
- * var compiled = _.template('hello {{ user }}!');
- * compiled({ 'user': 'mustache' });
- * // => 'hello mustache!'
- *
- * // Use the `source` property to inline compiled templates for meaningful
- * // line numbers in error messages and stack traces.
- * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
- * var JST = {\
- * "main": ' + _.template(mainText).source + '\
- * };\
- * ');
- */
-function template(string, options, guard) {
- // Based on John Resig's `tmpl` implementation
- // (http://ejohn.org/blog/javascript-micro-templating/)
- // and Laura Doktorova's doT.js (https://github.com/olado/doT).
- var settings = templateSettings.imports._.templateSettings || templateSettings;
-
- if (guard && isIterateeCall(string, options, guard)) {
- options = undefined;
- }
- string = toString(string);
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
-
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
- importsKeys = keys(imports),
- importsValues = baseValues(imports, importsKeys);
-
- var isEscaping,
- isEvaluating,
- index = 0,
- interpolate = options.interpolate || reNoMatch,
- source = "__p += '";
-
- // Compile the regexp to match each delimiter.
- var reDelimiters = RegExp(
- (options.escape || reNoMatch).source + '|' +
- interpolate.source + '|' +
- (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' +
- (options.evaluate || reNoMatch).source + '|$'
- , 'g');
-
- // Use a sourceURL for easier debugging.
- // The sourceURL gets injected into the source that's eval-ed, so be careful
- // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
- // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
- var sourceURL = hasOwnProperty.call(options, 'sourceURL')
- ? ('//# sourceURL=' +
- (options.sourceURL + '').replace(/[\r\n]/g, ' ') +
- '\n')
- : '';
-
- string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
- interpolateValue || (interpolateValue = esTemplateValue);
-
- // Escape characters that can't be included in string literals.
- source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
-
- // Replace delimiters with snippets.
- if (escapeValue) {
- isEscaping = true;
- source += "' +\n__e(" + escapeValue + ") +\n'";
- }
- if (evaluateValue) {
- isEvaluating = true;
- source += "';\n" + evaluateValue + ";\n__p += '";
- }
- if (interpolateValue) {
- source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
- }
- index = offset + match.length;
-
- // The JS engine embedded in Adobe products needs `match` returned in
- // order to produce the correct `offset` value.
- return match;
- });
-
- source += "';\n";
-
- // If `variable` is not specified wrap a with-statement around the generated
- // code to add the data object to the top of the scope chain.
- // Like with sourceURL, we take care to not check the option's prototype,
- // as this configuration is a code injection vector.
- var variable = hasOwnProperty.call(options, 'variable') && options.variable;
- if (!variable) {
- source = 'with (obj) {\n' + source + '\n}\n';
- }
- // Cleanup code by stripping empty strings.
- source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source)
- .replace(reEmptyStringMiddle, '$1')
- .replace(reEmptyStringTrailing, '$1;');
-
- // Frame code as the function body.
- source = 'function(' + (variable || 'obj') + ') {\n' +
- (variable
- ? ''
- : 'obj || (obj = {});\n'
- ) +
- "var __t, __p = ''" +
- (isEscaping
- ? ', __e = _.escape'
- : ''
- ) +
- (isEvaluating
- ? ', __j = Array.prototype.join;\n' +
- "function print() { __p += __j.call(arguments, '') }\n"
- : ';\n'
- ) +
- source +
- 'return __p\n}';
-
- var result = attempt(function() {
- return Function(importsKeys, sourceURL + 'return ' + source)
- .apply(undefined, importsValues);
- });
-
- // Provide the compiled function's source by its `toString` method or
- // the `source` property as a convenience for inlining compiled templates.
- result.source = source;
- if (isError(result)) {
- throw result;
- }
- return result;
-}
-
-module.exports = template;
diff --git a/node_modules/lodash/templateSettings.js b/node_modules/lodash/templateSettings.js
deleted file mode 100644
index 5aa5924..0000000
--- a/node_modules/lodash/templateSettings.js
+++ /dev/null
@@ -1,67 +0,0 @@
-var escape = require('./escape'),
- reEscape = require('./_reEscape'),
- reEvaluate = require('./_reEvaluate'),
- reInterpolate = require('./_reInterpolate');
-
-/**
- * By default, the template delimiters used by lodash are like those in
- * embedded Ruby (ERB) as well as ES2015 template strings. Change the
- * following template settings to use alternative delimiters.
- *
- * @static
- * @memberOf _
- * @type {Object}
- */
-var templateSettings = {
-
- /**
- * Used to detect `data` property values to be HTML-escaped.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'escape': reEscape,
-
- /**
- * Used to detect code to be evaluated.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'evaluate': reEvaluate,
-
- /**
- * Used to detect `data` property values to inject.
- *
- * @memberOf _.templateSettings
- * @type {RegExp}
- */
- 'interpolate': reInterpolate,
-
- /**
- * Used to reference the data object in the template text.
- *
- * @memberOf _.templateSettings
- * @type {string}
- */
- 'variable': '',
-
- /**
- * Used to import variables into the compiled template.
- *
- * @memberOf _.templateSettings
- * @type {Object}
- */
- 'imports': {
-
- /**
- * A reference to the `lodash` function.
- *
- * @memberOf _.templateSettings.imports
- * @type {Function}
- */
- '_': { 'escape': escape }
- }
-};
-
-module.exports = templateSettings;
diff --git a/node_modules/lodash/throttle.js b/node_modules/lodash/throttle.js
deleted file mode 100644
index e2bb806..0000000
--- a/node_modules/lodash/throttle.js
+++ /dev/null
@@ -1,69 +0,0 @@
-var debounce = require('./debounce'),
- isObject = require('./isObject');
-
-/** Error message constants. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/**
- * Creates a throttled function that only invokes `func` at most once per
- * every `wait` milliseconds. The throttled function comes with a `cancel`
- * method to cancel delayed `func` invocations and a `flush` method to
- * immediately invoke them. Provide `options` to indicate whether `func`
- * should be invoked on the leading and/or trailing edge of the `wait`
- * timeout. The `func` is invoked with the last arguments provided to the
- * throttled function. Subsequent calls to the throttled function return the
- * result of the last `func` invocation.
- *
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
- * invoked on the trailing edge of the timeout only if the throttled function
- * is invoked more than once during the `wait` timeout.
- *
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
- *
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
- * for details over the differences between `_.throttle` and `_.debounce`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to throttle.
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
- * @param {Object} [options={}] The options object.
- * @param {boolean} [options.leading=true]
- * Specify invoking on the leading edge of the timeout.
- * @param {boolean} [options.trailing=true]
- * Specify invoking on the trailing edge of the timeout.
- * @returns {Function} Returns the new throttled function.
- * @example
- *
- * // Avoid excessively updating the position while scrolling.
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
- *
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
- * jQuery(element).on('click', throttled);
- *
- * // Cancel the trailing throttled invocation.
- * jQuery(window).on('popstate', throttled.cancel);
- */
-function throttle(func, wait, options) {
- var leading = true,
- trailing = true;
-
- if (typeof func != 'function') {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- if (isObject(options)) {
- leading = 'leading' in options ? !!options.leading : leading;
- trailing = 'trailing' in options ? !!options.trailing : trailing;
- }
- return debounce(func, wait, {
- 'leading': leading,
- 'maxWait': wait,
- 'trailing': trailing
- });
-}
-
-module.exports = throttle;
diff --git a/node_modules/lodash/thru.js b/node_modules/lodash/thru.js
deleted file mode 100644
index 91e132e..0000000
--- a/node_modules/lodash/thru.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * This method is like `_.tap` except that it returns the result of `interceptor`.
- * The purpose of this method is to "pass thru" values replacing intermediate
- * results in a method chain sequence.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Seq
- * @param {*} value The value to provide to `interceptor`.
- * @param {Function} interceptor The function to invoke.
- * @returns {*} Returns the result of `interceptor`.
- * @example
- *
- * _(' abc ')
- * .chain()
- * .trim()
- * .thru(function(value) {
- * return [value];
- * })
- * .value();
- * // => ['abc']
- */
-function thru(value, interceptor) {
- return interceptor(value);
-}
-
-module.exports = thru;
diff --git a/node_modules/lodash/times.js b/node_modules/lodash/times.js
deleted file mode 100644
index 266c90c..0000000
--- a/node_modules/lodash/times.js
+++ /dev/null
@@ -1,51 +0,0 @@
-var baseTimes = require('./_baseTimes'),
- castFunction = require('./_castFunction'),
- toInteger = require('./toInteger');
-
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/** Used as references for the maximum length and index of an array. */
-var MAX_ARRAY_LENGTH = 4294967295;
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMin = Math.min;
-
-/**
- * Invokes the iteratee `n` times, returning an array of the results of
- * each invocation. The iteratee is invoked with one argument; (index).
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {number} n The number of times to invoke `iteratee`.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @returns {Array} Returns the array of results.
- * @example
- *
- * _.times(3, String);
- * // => ['0', '1', '2']
- *
- * _.times(4, _.constant(0));
- * // => [0, 0, 0, 0]
- */
-function times(n, iteratee) {
- n = toInteger(n);
- if (n < 1 || n > MAX_SAFE_INTEGER) {
- return [];
- }
- var index = MAX_ARRAY_LENGTH,
- length = nativeMin(n, MAX_ARRAY_LENGTH);
-
- iteratee = castFunction(iteratee);
- n -= MAX_ARRAY_LENGTH;
-
- var result = baseTimes(length, iteratee);
- while (++index < n) {
- iteratee(index);
- }
- return result;
-}
-
-module.exports = times;
diff --git a/node_modules/lodash/toArray.js b/node_modules/lodash/toArray.js
deleted file mode 100644
index 9809584..0000000
--- a/node_modules/lodash/toArray.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var Symbol = require('./_Symbol'),
- copyArray = require('./_copyArray'),
- getTag = require('./_getTag'),
- isArrayLike = require('./isArrayLike'),
- isString = require('./isString'),
- iteratorToArray = require('./_iteratorToArray'),
- mapToArray = require('./_mapToArray'),
- setToArray = require('./_setToArray'),
- stringToArray = require('./_stringToArray'),
- values = require('./values');
-
-/** `Object#toString` result references. */
-var mapTag = '[object Map]',
- setTag = '[object Set]';
-
-/** Built-in value references. */
-var symIterator = Symbol ? Symbol.iterator : undefined;
-
-/**
- * Converts `value` to an array.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Array} Returns the converted array.
- * @example
- *
- * _.toArray({ 'a': 1, 'b': 2 });
- * // => [1, 2]
- *
- * _.toArray('abc');
- * // => ['a', 'b', 'c']
- *
- * _.toArray(1);
- * // => []
- *
- * _.toArray(null);
- * // => []
- */
-function toArray(value) {
- if (!value) {
- return [];
- }
- if (isArrayLike(value)) {
- return isString(value) ? stringToArray(value) : copyArray(value);
- }
- if (symIterator && value[symIterator]) {
- return iteratorToArray(value[symIterator]());
- }
- var tag = getTag(value),
- func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
-
- return func(value);
-}
-
-module.exports = toArray;
diff --git a/node_modules/lodash/toFinite.js b/node_modules/lodash/toFinite.js
deleted file mode 100644
index 3b5bba6..0000000
--- a/node_modules/lodash/toFinite.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var toNumber = require('./toNumber');
-
-/** Used as references for various `Number` constants. */
-var INFINITY = 1 / 0,
- MAX_INTEGER = 1.7976931348623157e+308;
-
-/**
- * Converts `value` to a finite number.
- *
- * @static
- * @memberOf _
- * @since 4.12.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted number.
- * @example
- *
- * _.toFinite(3.2);
- * // => 3.2
- *
- * _.toFinite(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toFinite(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toFinite('3.2');
- * // => 3.2
- */
-function toFinite(value) {
- if (!value) {
- return value === 0 ? value : 0;
- }
- value = toNumber(value);
- if (value === INFINITY || value === -INFINITY) {
- var sign = (value < 0 ? -1 : 1);
- return sign * MAX_INTEGER;
- }
- return value === value ? value : 0;
-}
-
-module.exports = toFinite;
diff --git a/node_modules/lodash/toInteger.js b/node_modules/lodash/toInteger.js
deleted file mode 100644
index c6aadf8..0000000
--- a/node_modules/lodash/toInteger.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var toFinite = require('./toFinite');
-
-/**
- * Converts `value` to an integer.
- *
- * **Note:** This method is loosely based on
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toInteger(3.2);
- * // => 3
- *
- * _.toInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toInteger(Infinity);
- * // => 1.7976931348623157e+308
- *
- * _.toInteger('3.2');
- * // => 3
- */
-function toInteger(value) {
- var result = toFinite(value),
- remainder = result % 1;
-
- return result === result ? (remainder ? result - remainder : result) : 0;
-}
-
-module.exports = toInteger;
diff --git a/node_modules/lodash/toIterator.js b/node_modules/lodash/toIterator.js
deleted file mode 100644
index beeed5d..0000000
--- a/node_modules/lodash/toIterator.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Enables the wrapper to be iterable.
- *
- * @name Symbol.iterator
- * @memberOf _
- * @since 4.0.0
- * @category Seq
- * @returns {Object} Returns the wrapper object.
- * @example
- *
- * var wrapped = _([1, 2]);
- *
- * wrapped[Symbol.iterator]() === wrapped;
- * // => true
- *
- * Array.from(wrapped);
- * // => [1, 2]
- */
-function wrapperToIterator() {
- return this;
-}
-
-module.exports = wrapperToIterator;
diff --git a/node_modules/lodash/toJSON.js b/node_modules/lodash/toJSON.js
deleted file mode 100644
index 5e751a2..0000000
--- a/node_modules/lodash/toJSON.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./wrapperValue');
diff --git a/node_modules/lodash/toLength.js b/node_modules/lodash/toLength.js
deleted file mode 100644
index be8f2a7..0000000
--- a/node_modules/lodash/toLength.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var baseClamp = require('./_baseClamp'),
- toInteger = require('./toInteger');
-
-/** Used as references for the maximum length and index of an array. */
-var MAX_ARRAY_LENGTH = 4294967295;
-
-/**
- * Converts `value` to an integer suitable for use as the length of an
- * array-like object.
- *
- * **Note:** This method is based on
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toLength(3.2);
- * // => 3
- *
- * _.toLength(Number.MIN_VALUE);
- * // => 0
- *
- * _.toLength(Infinity);
- * // => 4294967295
- *
- * _.toLength('3.2');
- * // => 3
- */
-function toLength(value) {
- return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
-}
-
-module.exports = toLength;
diff --git a/node_modules/lodash/toLower.js b/node_modules/lodash/toLower.js
deleted file mode 100644
index b4b7858..0000000
--- a/node_modules/lodash/toLower.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var toString = require('./toString');
-
-/**
- * Converts `string`, as a whole, to lower case just like
- * [String#toLowerCase](https://mdn.io/toLowerCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the lower cased string.
- * @example
- *
- * _.toLower('--Foo-Bar--');
- * // => '--foo-bar--'
- *
- * _.toLower('fooBar');
- * // => 'foobar'
- *
- * _.toLower('__FOO_BAR__');
- * // => '__foo_bar__'
- */
-function toLower(value) {
- return toString(value).toLowerCase();
-}
-
-module.exports = toLower;
diff --git a/node_modules/lodash/toNumber.js b/node_modules/lodash/toNumber.js
deleted file mode 100644
index b0f72de..0000000
--- a/node_modules/lodash/toNumber.js
+++ /dev/null
@@ -1,66 +0,0 @@
-var isObject = require('./isObject'),
- isSymbol = require('./isSymbol');
-
-/** Used as references for various `Number` constants. */
-var NAN = 0 / 0;
-
-/** Used to match leading and trailing whitespace. */
-var reTrim = /^\s+|\s+$/g;
-
-/** Used to detect bad signed hexadecimal string values. */
-var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
-
-/** Used to detect binary string values. */
-var reIsBinary = /^0b[01]+$/i;
-
-/** Used to detect octal string values. */
-var reIsOctal = /^0o[0-7]+$/i;
-
-/** Built-in method references without a dependency on `root`. */
-var freeParseInt = parseInt;
-
-/**
- * Converts `value` to a number.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {number} Returns the number.
- * @example
- *
- * _.toNumber(3.2);
- * // => 3.2
- *
- * _.toNumber(Number.MIN_VALUE);
- * // => 5e-324
- *
- * _.toNumber(Infinity);
- * // => Infinity
- *
- * _.toNumber('3.2');
- * // => 3.2
- */
-function toNumber(value) {
- if (typeof value == 'number') {
- return value;
- }
- if (isSymbol(value)) {
- return NAN;
- }
- if (isObject(value)) {
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
- value = isObject(other) ? (other + '') : other;
- }
- if (typeof value != 'string') {
- return value === 0 ? value : +value;
- }
- value = value.replace(reTrim, '');
- var isBinary = reIsBinary.test(value);
- return (isBinary || reIsOctal.test(value))
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
- : (reIsBadHex.test(value) ? NAN : +value);
-}
-
-module.exports = toNumber;
diff --git a/node_modules/lodash/toPairs.js b/node_modules/lodash/toPairs.js
deleted file mode 100644
index c4f52ae..0000000
--- a/node_modules/lodash/toPairs.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var createToPairs = require('./_createToPairs'),
- keys = require('./keys');
-
-/**
- * Creates an array of own enumerable string keyed-value pairs for `object`
- * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
- * entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entries
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairs(new Foo);
- * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
- */
-var toPairs = createToPairs(keys);
-
-module.exports = toPairs;
diff --git a/node_modules/lodash/toPairsIn.js b/node_modules/lodash/toPairsIn.js
deleted file mode 100644
index 32c562c..0000000
--- a/node_modules/lodash/toPairsIn.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var createToPairs = require('./_createToPairs'),
- keysIn = require('./keysIn');
-
-/**
- * Creates an array of own and inherited enumerable string keyed-value pairs
- * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
- * or set, its entries are returned.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @alias entriesIn
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the key-value pairs.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.toPairsIn(new Foo);
- * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
- */
-var toPairsIn = createToPairs(keysIn);
-
-module.exports = toPairsIn;
diff --git a/node_modules/lodash/toPath.js b/node_modules/lodash/toPath.js
deleted file mode 100644
index d3e96ee..0000000
--- a/node_modules/lodash/toPath.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var arrayMap = require('./_arrayMap'),
- copyArray = require('./_copyArray'),
- isArray = require('./isArray'),
- isSymbol = require('./isSymbol'),
- stringToPath = require('./_stringToPath'),
- toKey = require('./_toKey'),
- toString = require('./toString');
-
-/**
- * Converts `value` to a property path array.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Util
- * @param {*} value The value to convert.
- * @returns {Array} Returns the new property path array.
- * @example
- *
- * _.toPath('a.b.c');
- * // => ['a', 'b', 'c']
- *
- * _.toPath('a[0].b.c');
- * // => ['a', '0', 'b', 'c']
- */
-function toPath(value) {
- if (isArray(value)) {
- return arrayMap(value, toKey);
- }
- return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
-}
-
-module.exports = toPath;
diff --git a/node_modules/lodash/toPlainObject.js b/node_modules/lodash/toPlainObject.js
deleted file mode 100644
index 5de79b8..0000000
--- a/node_modules/lodash/toPlainObject.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var copyObject = require('./_copyObject'),
- keysIn = require('./keysIn');
-
-/**
- * Converts `value` to a plain object flattening inherited enumerable string
- * keyed properties of `value` to own properties of the plain object.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {Object} Returns the converted plain object.
- * @example
- *
- * function Foo() {
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.assign({ 'a': 1 }, new Foo);
- * // => { 'a': 1, 'b': 2 }
- *
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
- * // => { 'a': 1, 'b': 2, 'c': 3 }
- */
-function toPlainObject(value) {
- return copyObject(value, keysIn(value));
-}
-
-module.exports = toPlainObject;
diff --git a/node_modules/lodash/toSafeInteger.js b/node_modules/lodash/toSafeInteger.js
deleted file mode 100644
index f564623..0000000
--- a/node_modules/lodash/toSafeInteger.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var baseClamp = require('./_baseClamp'),
- toInteger = require('./toInteger');
-
-/** Used as references for various `Number` constants. */
-var MAX_SAFE_INTEGER = 9007199254740991;
-
-/**
- * Converts `value` to a safe integer. A safe integer can be compared and
- * represented correctly.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {number} Returns the converted integer.
- * @example
- *
- * _.toSafeInteger(3.2);
- * // => 3
- *
- * _.toSafeInteger(Number.MIN_VALUE);
- * // => 0
- *
- * _.toSafeInteger(Infinity);
- * // => 9007199254740991
- *
- * _.toSafeInteger('3.2');
- * // => 3
- */
-function toSafeInteger(value) {
- return value
- ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)
- : (value === 0 ? value : 0);
-}
-
-module.exports = toSafeInteger;
diff --git a/node_modules/lodash/toString.js b/node_modules/lodash/toString.js
deleted file mode 100644
index daaf681..0000000
--- a/node_modules/lodash/toString.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseToString = require('./_baseToString');
-
-/**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
-function toString(value) {
- return value == null ? '' : baseToString(value);
-}
-
-module.exports = toString;
diff --git a/node_modules/lodash/toUpper.js b/node_modules/lodash/toUpper.js
deleted file mode 100644
index b3648e8..0000000
--- a/node_modules/lodash/toUpper.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var toString = require('./toString');
-
-/**
- * Converts `string`, as a whole, to upper case just like
- * [String#toUpperCase](https://mdn.io/toUpperCase).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.toUpper('--foo-bar--');
- * // => '--FOO-BAR--'
- *
- * _.toUpper('fooBar');
- * // => 'FOOBAR'
- *
- * _.toUpper('__foo_bar__');
- * // => '__FOO_BAR__'
- */
-function toUpper(value) {
- return toString(value).toUpperCase();
-}
-
-module.exports = toUpper;
diff --git a/node_modules/lodash/transform.js b/node_modules/lodash/transform.js
deleted file mode 100644
index d755a15..0000000
--- a/node_modules/lodash/transform.js
+++ /dev/null
@@ -1,65 +0,0 @@
-var arrayEach = require('./_arrayEach'),
- baseCreate = require('./_baseCreate'),
- baseForOwn = require('./_baseForOwn'),
- baseIteratee = require('./_baseIteratee'),
- getPrototype = require('./_getPrototype'),
- isArray = require('./isArray'),
- isBuffer = require('./isBuffer'),
- isFunction = require('./isFunction'),
- isObject = require('./isObject'),
- isTypedArray = require('./isTypedArray');
-
-/**
- * An alternative to `_.reduce`; this method transforms `object` to a new
- * `accumulator` object which is the result of running each of its own
- * enumerable string keyed properties thru `iteratee`, with each invocation
- * potentially mutating the `accumulator` object. If `accumulator` is not
- * provided, a new object with the same `[[Prototype]]` will be used. The
- * iteratee is invoked with four arguments: (accumulator, value, key, object).
- * Iteratee functions may exit iteration early by explicitly returning `false`.
- *
- * @static
- * @memberOf _
- * @since 1.3.0
- * @category Object
- * @param {Object} object The object to iterate over.
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
- * @param {*} [accumulator] The custom accumulator value.
- * @returns {*} Returns the accumulated value.
- * @example
- *
- * _.transform([2, 3, 4], function(result, n) {
- * result.push(n *= n);
- * return n % 2 == 0;
- * }, []);
- * // => [4, 9]
- *
- * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
- * (result[value] || (result[value] = [])).push(key);
- * }, {});
- * // => { '1': ['a', 'c'], '2': ['b'] }
- */
-function transform(object, iteratee, accumulator) {
- var isArr = isArray(object),
- isArrLike = isArr || isBuffer(object) || isTypedArray(object);
-
- iteratee = baseIteratee(iteratee, 4);
- if (accumulator == null) {
- var Ctor = object && object.constructor;
- if (isArrLike) {
- accumulator = isArr ? new Ctor : [];
- }
- else if (isObject(object)) {
- accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
- }
- else {
- accumulator = {};
- }
- }
- (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
- return iteratee(accumulator, value, index, object);
- });
- return accumulator;
-}
-
-module.exports = transform;
diff --git a/node_modules/lodash/trim.js b/node_modules/lodash/trim.js
deleted file mode 100644
index 5e38c8e..0000000
--- a/node_modules/lodash/trim.js
+++ /dev/null
@@ -1,49 +0,0 @@
-var baseToString = require('./_baseToString'),
- castSlice = require('./_castSlice'),
- charsEndIndex = require('./_charsEndIndex'),
- charsStartIndex = require('./_charsStartIndex'),
- stringToArray = require('./_stringToArray'),
- toString = require('./toString');
-
-/** Used to match leading and trailing whitespace. */
-var reTrim = /^\s+|\s+$/g;
-
-/**
- * Removes leading and trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trim(' abc ');
- * // => 'abc'
- *
- * _.trim('-_-abc-_-', '_-');
- * // => 'abc'
- *
- * _.map([' foo ', ' bar '], _.trim);
- * // => ['foo', 'bar']
- */
-function trim(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrim, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- chrSymbols = stringToArray(chars),
- start = charsStartIndex(strSymbols, chrSymbols),
- end = charsEndIndex(strSymbols, chrSymbols) + 1;
-
- return castSlice(strSymbols, start, end).join('');
-}
-
-module.exports = trim;
diff --git a/node_modules/lodash/trimEnd.js b/node_modules/lodash/trimEnd.js
deleted file mode 100644
index 82c54a9..0000000
--- a/node_modules/lodash/trimEnd.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var baseToString = require('./_baseToString'),
- castSlice = require('./_castSlice'),
- charsEndIndex = require('./_charsEndIndex'),
- stringToArray = require('./_stringToArray'),
- toString = require('./toString');
-
-/** Used to match leading and trailing whitespace. */
-var reTrimEnd = /\s+$/;
-
-/**
- * Removes trailing whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimEnd(' abc ');
- * // => ' abc'
- *
- * _.trimEnd('-_-abc-_-', '_-');
- * // => '-_-abc'
- */
-function trimEnd(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimEnd, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
-
- return castSlice(strSymbols, 0, end).join('');
-}
-
-module.exports = trimEnd;
diff --git a/node_modules/lodash/trimStart.js b/node_modules/lodash/trimStart.js
deleted file mode 100644
index 30f4f47..0000000
--- a/node_modules/lodash/trimStart.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var baseToString = require('./_baseToString'),
- castSlice = require('./_castSlice'),
- charsStartIndex = require('./_charsStartIndex'),
- stringToArray = require('./_stringToArray'),
- toString = require('./toString');
-
-/** Used to match leading and trailing whitespace. */
-var reTrimStart = /^\s+/;
-
-/**
- * Removes leading whitespace or specified characters from `string`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to trim.
- * @param {string} [chars=whitespace] The characters to trim.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {string} Returns the trimmed string.
- * @example
- *
- * _.trimStart(' abc ');
- * // => 'abc '
- *
- * _.trimStart('-_-abc-_-', '_-');
- * // => 'abc-_-'
- */
-function trimStart(string, chars, guard) {
- string = toString(string);
- if (string && (guard || chars === undefined)) {
- return string.replace(reTrimStart, '');
- }
- if (!string || !(chars = baseToString(chars))) {
- return string;
- }
- var strSymbols = stringToArray(string),
- start = charsStartIndex(strSymbols, stringToArray(chars));
-
- return castSlice(strSymbols, start).join('');
-}
-
-module.exports = trimStart;
diff --git a/node_modules/lodash/truncate.js b/node_modules/lodash/truncate.js
deleted file mode 100644
index 21fcdfe..0000000
--- a/node_modules/lodash/truncate.js
+++ /dev/null
@@ -1,111 +0,0 @@
-var baseToString = require('./_baseToString'),
- castSlice = require('./_castSlice'),
- hasUnicode = require('./_hasUnicode'),
- isObject = require('./isObject'),
- isRegExp = require('./isRegExp'),
- stringSize = require('./_stringSize'),
- stringToArray = require('./_stringToArray'),
- toInteger = require('./toInteger'),
- toString = require('./toString');
-
-/** Used as default options for `_.truncate`. */
-var DEFAULT_TRUNC_LENGTH = 30,
- DEFAULT_TRUNC_OMISSION = '...';
-
-/** Used to match `RegExp` flags from their coerced string values. */
-var reFlags = /\w*$/;
-
-/**
- * Truncates `string` if it's longer than the given maximum string length.
- * The last characters of the truncated string are replaced with the omission
- * string which defaults to "...".
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to truncate.
- * @param {Object} [options={}] The options object.
- * @param {number} [options.length=30] The maximum string length.
- * @param {string} [options.omission='...'] The string to indicate text is omitted.
- * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
- * @returns {string} Returns the truncated string.
- * @example
- *
- * _.truncate('hi-diddly-ho there, neighborino');
- * // => 'hi-diddly-ho there, neighbo...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': ' '
- * });
- * // => 'hi-diddly-ho there,...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'length': 24,
- * 'separator': /,? +/
- * });
- * // => 'hi-diddly-ho there...'
- *
- * _.truncate('hi-diddly-ho there, neighborino', {
- * 'omission': ' [...]'
- * });
- * // => 'hi-diddly-ho there, neig [...]'
- */
-function truncate(string, options) {
- var length = DEFAULT_TRUNC_LENGTH,
- omission = DEFAULT_TRUNC_OMISSION;
-
- if (isObject(options)) {
- var separator = 'separator' in options ? options.separator : separator;
- length = 'length' in options ? toInteger(options.length) : length;
- omission = 'omission' in options ? baseToString(options.omission) : omission;
- }
- string = toString(string);
-
- var strLength = string.length;
- if (hasUnicode(string)) {
- var strSymbols = stringToArray(string);
- strLength = strSymbols.length;
- }
- if (length >= strLength) {
- return string;
- }
- var end = length - stringSize(omission);
- if (end < 1) {
- return omission;
- }
- var result = strSymbols
- ? castSlice(strSymbols, 0, end).join('')
- : string.slice(0, end);
-
- if (separator === undefined) {
- return result + omission;
- }
- if (strSymbols) {
- end += (result.length - end);
- }
- if (isRegExp(separator)) {
- if (string.slice(end).search(separator)) {
- var match,
- substring = result;
-
- if (!separator.global) {
- separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
- }
- separator.lastIndex = 0;
- while ((match = separator.exec(substring))) {
- var newEnd = match.index;
- }
- result = result.slice(0, newEnd === undefined ? end : newEnd);
- }
- } else if (string.indexOf(baseToString(separator), end) != end) {
- var index = result.lastIndexOf(separator);
- if (index > -1) {
- result = result.slice(0, index);
- }
- }
- return result + omission;
-}
-
-module.exports = truncate;
diff --git a/node_modules/lodash/unary.js b/node_modules/lodash/unary.js
deleted file mode 100644
index 76f48f6..0000000
--- a/node_modules/lodash/unary.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var ary = require('./ary');
-
-/**
- * Creates a function that accepts up to one argument, ignoring any
- * additional arguments.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Function
- * @param {Function} func The function to cap arguments for.
- * @returns {Function} Returns the new capped function.
- * @example
- *
- * _.map(['6', '8', '10'], _.unary(parseInt));
- * // => [6, 8, 10]
- */
-function unary(func) {
- return ary(func, 1);
-}
-
-module.exports = unary;
diff --git a/node_modules/lodash/unescape.js b/node_modules/lodash/unescape.js
deleted file mode 100644
index 3b6efd5..0000000
--- a/node_modules/lodash/unescape.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var toString = require('./toString'),
- unescapeHtmlChar = require('./_unescapeHtmlChar');
-
-/** Used to match HTML entities and HTML characters. */
-var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
- reHasEscapedHtml = RegExp(reEscapedHtml.source);
-
-/**
- * The inverse of `_.escape`; this method converts the HTML entities
- * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
- * their corresponding characters.
- *
- * **Note:** No other HTML entities are unescaped. To unescape additional
- * HTML entities use a third-party library like [_he_](https://mths.be/he).
- *
- * @static
- * @memberOf _
- * @since 0.6.0
- * @category String
- * @param {string} [string=''] The string to unescape.
- * @returns {string} Returns the unescaped string.
- * @example
- *
- * _.unescape('fred, barney, &amp; pebbles');
- * // => 'fred, barney, & pebbles'
- */
-function unescape(string) {
- string = toString(string);
- return (string && reHasEscapedHtml.test(string))
- ? string.replace(reEscapedHtml, unescapeHtmlChar)
- : string;
-}
-
-module.exports = unescape;
diff --git a/node_modules/lodash/union.js b/node_modules/lodash/union.js
deleted file mode 100644
index e676dfe..0000000
--- a/node_modules/lodash/union.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- baseRest = require('./_baseRest'),
- baseUniq = require('./_baseUniq'),
- isArrayLikeObject = require('./isArrayLikeObject');
-
-/**
- * Creates an array of unique values, in order, from all given arrays using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.union([2], [1, 2]);
- * // => [2, 1]
- */
-var union = baseRest(function(arrays) {
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
-});
-
-module.exports = union;
diff --git a/node_modules/lodash/unionBy.js b/node_modules/lodash/unionBy.js
deleted file mode 100644
index 6ae8ccd..0000000
--- a/node_modules/lodash/unionBy.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- baseIteratee = require('./_baseIteratee'),
- baseRest = require('./_baseRest'),
- baseUniq = require('./_baseUniq'),
- isArrayLikeObject = require('./isArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.union` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which uniqueness is computed. Result values are chosen from the first
- * array in which the value occurs. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * _.unionBy([2.1], [1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
-var unionBy = baseRest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), baseIteratee(iteratee, 2));
-});
-
-module.exports = unionBy;
diff --git a/node_modules/lodash/unionWith.js b/node_modules/lodash/unionWith.js
deleted file mode 100644
index 78736b2..0000000
--- a/node_modules/lodash/unionWith.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseFlatten = require('./_baseFlatten'),
- baseRest = require('./_baseRest'),
- baseUniq = require('./_baseUniq'),
- isArrayLikeObject = require('./isArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.union` except that it accepts `comparator` which
- * is invoked to compare elements of `arrays`. Result values are chosen from
- * the first array in which the value occurs. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of combined values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.unionWith(objects, others, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
-var unionWith = baseRest(function(arrays) {
- var comparator = last(arrays);
- comparator = typeof comparator == 'function' ? comparator : undefined;
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
-});
-
-module.exports = unionWith;
diff --git a/node_modules/lodash/uniq.js b/node_modules/lodash/uniq.js
deleted file mode 100644
index 157d1cd..0000000
--- a/node_modules/lodash/uniq.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var baseUniq = require('./_baseUniq');
-
-/**
- * Creates a duplicate-free version of an array, using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons, in which only the first occurrence of each element
- * is kept. The order of result values is determined by the order they occur
- * in the array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniq([2, 1, 2]);
- * // => [2, 1]
- */
-function uniq(array) {
- return (array && array.length) ? baseUniq(array) : [];
-}
-
-module.exports = uniq;
diff --git a/node_modules/lodash/uniqBy.js b/node_modules/lodash/uniqBy.js
deleted file mode 100644
index 53402a9..0000000
--- a/node_modules/lodash/uniqBy.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseIteratee = require('./_baseIteratee'),
- baseUniq = require('./_baseUniq');
-
-/**
- * This method is like `_.uniq` except that it accepts `iteratee` which is
- * invoked for each element in `array` to generate the criterion by which
- * uniqueness is computed. The order of result values is determined by the
- * order they occur in the array. The iteratee is invoked with one argument:
- * (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
- * // => [2.1, 1.2]
- *
- * // The `_.property` iteratee shorthand.
- * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 1 }, { 'x': 2 }]
- */
-function uniqBy(array, iteratee) {
- return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];
-}
-
-module.exports = uniqBy;
diff --git a/node_modules/lodash/uniqWith.js b/node_modules/lodash/uniqWith.js
deleted file mode 100644
index 18d72aa..0000000
--- a/node_modules/lodash/uniqWith.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var baseUniq = require('./_baseUniq');
-
-/**
- * This method is like `_.uniq` except that it accepts `comparator` which
- * is invoked to compare elements of `array`. The order of result values is
- * determined by the order they occur in the array.The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new duplicate free array.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.uniqWith(objects, _.isEqual);
- * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
- */
-function uniqWith(array, comparator) {
- comparator = typeof comparator == 'function' ? comparator : undefined;
- return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
-}
-
-module.exports = uniqWith;
diff --git a/node_modules/lodash/uniqueId.js b/node_modules/lodash/uniqueId.js
deleted file mode 100644
index ffa8c03..0000000
--- a/node_modules/lodash/uniqueId.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var toString = require('./toString');
-
-/** Used to generate unique IDs. */
-var idCounter = 0;
-
-/**
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Util
- * @param {string} [prefix=''] The value to prefix the ID with.
- * @returns {string} Returns the unique ID.
- * @example
- *
- * _.uniqueId('contact_');
- * // => 'contact_104'
- *
- * _.uniqueId();
- * // => '105'
- */
-function uniqueId(prefix) {
- var id = ++idCounter;
- return toString(prefix) + id;
-}
-
-module.exports = uniqueId;
diff --git a/node_modules/lodash/unset.js b/node_modules/lodash/unset.js
deleted file mode 100644
index 723c3d4..0000000
--- a/node_modules/lodash/unset.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseUnset = require('./_baseUnset');
-
-/**
- * Removes the property at `path` of `object`.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to unset.
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 7 } }] };
- * _.unset(object, 'a[0].b.c');
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- *
- * _.unset(object, ['a', '0', 'b', 'c']);
- * // => true
- *
- * console.log(object);
- * // => { 'a': [{ 'b': {} }] };
- */
-function unset(object, path) {
- return object == null ? true : baseUnset(object, path);
-}
-
-module.exports = unset;
diff --git a/node_modules/lodash/unzip.js b/node_modules/lodash/unzip.js
deleted file mode 100644
index fce0ec7..0000000
--- a/node_modules/lodash/unzip.js
+++ /dev/null
@@ -1,45 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- arrayMap = require('./_arrayMap'),
- baseProperty = require('./_baseProperty'),
- baseTimes = require('./_baseTimes'),
- isArrayLikeObject = require('./isArrayLikeObject');
-
-/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeMax = Math.max;
-
-/**
- * This method is like `_.zip` except that it accepts an array of grouped
- * elements and creates an array regrouping the elements to their pre-zip
- * configuration.
- *
- * @static
- * @memberOf _
- * @since 1.2.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
- * // => [['a', 1, true], ['b', 2, false]]
- *
- * _.unzip(zipped);
- * // => [['a', 'b'], [1, 2], [true, false]]
- */
-function unzip(array) {
- if (!(array && array.length)) {
- return [];
- }
- var length = 0;
- array = arrayFilter(array, function(group) {
- if (isArrayLikeObject(group)) {
- length = nativeMax(group.length, length);
- return true;
- }
- });
- return baseTimes(length, function(index) {
- return arrayMap(array, baseProperty(index));
- });
-}
-
-module.exports = unzip;
diff --git a/node_modules/lodash/unzipWith.js b/node_modules/lodash/unzipWith.js
deleted file mode 100644
index 926c899..0000000
--- a/node_modules/lodash/unzipWith.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var apply = require('./_apply'),
- arrayMap = require('./_arrayMap'),
- unzip = require('./unzip');
-
-/**
- * This method is like `_.unzip` except that it accepts `iteratee` to specify
- * how regrouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {Array} array The array of grouped elements to process.
- * @param {Function} [iteratee=_.identity] The function to combine
- * regrouped values.
- * @returns {Array} Returns the new array of regrouped elements.
- * @example
- *
- * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
- * // => [[1, 10, 100], [2, 20, 200]]
- *
- * _.unzipWith(zipped, _.add);
- * // => [3, 30, 300]
- */
-function unzipWith(array, iteratee) {
- if (!(array && array.length)) {
- return [];
- }
- var result = unzip(array);
- if (iteratee == null) {
- return result;
- }
- return arrayMap(result, function(group) {
- return apply(iteratee, undefined, group);
- });
-}
-
-module.exports = unzipWith;
diff --git a/node_modules/lodash/update.js b/node_modules/lodash/update.js
deleted file mode 100644
index b90098e..0000000
--- a/node_modules/lodash/update.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var baseUpdate = require('./_baseUpdate'),
- castFunction = require('./_castFunction');
-
-/**
- * This method is like `_.set` except that accepts `updater` to produce the
- * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
- * is invoked with one argument: (value).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.update(object, 'a[0].b.c', function(n) { return n * n; });
- * console.log(object.a[0].b.c);
- * // => 9
- *
- * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
- * console.log(object.x[0].y.z);
- * // => 0
- */
-function update(object, path, updater) {
- return object == null ? object : baseUpdate(object, path, castFunction(updater));
-}
-
-module.exports = update;
diff --git a/node_modules/lodash/updateWith.js b/node_modules/lodash/updateWith.js
deleted file mode 100644
index a2f4a2c..0000000
--- a/node_modules/lodash/updateWith.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var baseUpdate = require('./_baseUpdate'),
- castFunction = require('./_castFunction');
-
-/**
- * This method is like `_.update` except that it accepts `customizer` which is
- * invoked to produce the objects of `path`. If `customizer` returns `undefined`
- * path creation is handled by the method instead. The `customizer` is invoked
- * with three arguments: (nsValue, key, nsObject).
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 4.6.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {Function} updater The function to produce the updated value.
- * @param {Function} [customizer] The function to customize assigned values.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = {};
- *
- * _.updateWith(object, '[0][1]', _.constant('a'), Object);
- * // => { '0': { '1': 'a' } }
- */
-function updateWith(object, path, updater, customizer) {
- customizer = typeof customizer == 'function' ? customizer : undefined;
- return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
-}
-
-module.exports = updateWith;
diff --git a/node_modules/lodash/upperCase.js b/node_modules/lodash/upperCase.js
deleted file mode 100644
index efbb8b0..0000000
--- a/node_modules/lodash/upperCase.js
+++ /dev/null
@@ -1,27 +0,0 @@
-var createCompounder = require('./_createCompounder');
-
-/**
- * Converts `string`, as space separated words, to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the upper cased string.
- * @example
- *
- * _.upperCase('--foo-bar');
- * // => 'FOO BAR'
- *
- * _.upperCase('fooBar');
- * // => 'FOO BAR'
- *
- * _.upperCase('__foo_bar__');
- * // => 'FOO BAR'
- */
-var upperCase = createCompounder(function(result, word, index) {
- return result + (index ? ' ' : '') + word.toUpperCase();
-});
-
-module.exports = upperCase;
diff --git a/node_modules/lodash/upperFirst.js b/node_modules/lodash/upperFirst.js
deleted file mode 100644
index 1dd64e1..0000000
--- a/node_modules/lodash/upperFirst.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var createCaseFirst = require('./_createCaseFirst');
-
-/**
- * Converts the first character of `string` to upper case.
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category String
- * @param {string} [string=''] The string to convert.
- * @returns {string} Returns the converted string.
- * @example
- *
- * _.upperFirst('fred');
- * // => 'Fred'
- *
- * _.upperFirst('FRED');
- * // => 'FRED'
- */
-var upperFirst = createCaseFirst('toUpperCase');
-
-module.exports = upperFirst;
diff --git a/node_modules/lodash/util.js b/node_modules/lodash/util.js
deleted file mode 100644
index d244dc2..0000000
--- a/node_modules/lodash/util.js
+++ /dev/null
@@ -1,34 +0,0 @@
-module.exports = {
- 'attempt': require('./attempt'),
- 'bindAll': require('./bindAll'),
- 'cond': require('./cond'),
- 'conforms': require('./conforms'),
- 'constant': require('./constant'),
- 'defaultTo': require('./defaultTo'),
- 'flow': require('./flow'),
- 'flowRight': require('./flowRight'),
- 'identity': require('./identity'),
- 'iteratee': require('./iteratee'),
- 'matches': require('./matches'),
- 'matchesProperty': require('./matchesProperty'),
- 'method': require('./method'),
- 'methodOf': require('./methodOf'),
- 'mixin': require('./mixin'),
- 'noop': require('./noop'),
- 'nthArg': require('./nthArg'),
- 'over': require('./over'),
- 'overEvery': require('./overEvery'),
- 'overSome': require('./overSome'),
- 'property': require('./property'),
- 'propertyOf': require('./propertyOf'),
- 'range': require('./range'),
- 'rangeRight': require('./rangeRight'),
- 'stubArray': require('./stubArray'),
- 'stubFalse': require('./stubFalse'),
- 'stubObject': require('./stubObject'),
- 'stubString': require('./stubString'),
- 'stubTrue': require('./stubTrue'),
- 'times': require('./times'),
- 'toPath': require('./toPath'),
- 'uniqueId': require('./uniqueId')
-};
diff --git a/node_modules/lodash/value.js b/node_modules/lodash/value.js
deleted file mode 100644
index 5e751a2..0000000
--- a/node_modules/lodash/value.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./wrapperValue');
diff --git a/node_modules/lodash/valueOf.js b/node_modules/lodash/valueOf.js
deleted file mode 100644
index 5e751a2..0000000
--- a/node_modules/lodash/valueOf.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./wrapperValue');
diff --git a/node_modules/lodash/values.js b/node_modules/lodash/values.js
deleted file mode 100644
index b069654..0000000
--- a/node_modules/lodash/values.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var baseValues = require('./_baseValues'),
- keys = require('./keys');
-
-/**
- * Creates an array of the own enumerable string keyed property values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @since 0.1.0
- * @memberOf _
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.values(new Foo);
- * // => [1, 2] (iteration order is not guaranteed)
- *
- * _.values('hi');
- * // => ['h', 'i']
- */
-function values(object) {
- return object == null ? [] : baseValues(object, keys(object));
-}
-
-module.exports = values;
diff --git a/node_modules/lodash/valuesIn.js b/node_modules/lodash/valuesIn.js
deleted file mode 100644
index 6296094..0000000
--- a/node_modules/lodash/valuesIn.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var baseValues = require('./_baseValues'),
- keysIn = require('./keysIn');
-
-/**
- * Creates an array of the own and inherited enumerable string keyed property
- * values of `object`.
- *
- * **Note:** Non-object values are coerced to objects.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category Object
- * @param {Object} object The object to query.
- * @returns {Array} Returns the array of property values.
- * @example
- *
- * function Foo() {
- * this.a = 1;
- * this.b = 2;
- * }
- *
- * Foo.prototype.c = 3;
- *
- * _.valuesIn(new Foo);
- * // => [1, 2, 3] (iteration order is not guaranteed)
- */
-function valuesIn(object) {
- return object == null ? [] : baseValues(object, keysIn(object));
-}
-
-module.exports = valuesIn;
diff --git a/node_modules/lodash/without.js b/node_modules/lodash/without.js
deleted file mode 100644
index 3a28e8a..0000000
--- a/node_modules/lodash/without.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var baseDifference = require('./_baseDifference'),
- baseRest = require('./_baseRest'),
- isArrayLikeObject = require('./isArrayLikeObject');
-
-/**
- * Creates an array excluding all given values using
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
- * for equality comparisons.
- *
- * **Note:** Unlike `_.pull`, this method returns a new array.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {Array} array The array to inspect.
- * @param {...*} [values] The values to exclude.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.xor
- * @example
- *
- * _.without([2, 1, 2, 3], 1, 2);
- * // => [3]
- */
-var without = baseRest(function(array, values) {
- return isArrayLikeObject(array)
- ? baseDifference(array, values)
- : [];
-});
-
-module.exports = without;
diff --git a/node_modules/lodash/words.js b/node_modules/lodash/words.js
deleted file mode 100644
index 6d7cdd1..0000000
--- a/node_modules/lodash/words.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var asciiWords = require('./_asciiWords'),
- hasUnicodeWord = require('./_hasUnicodeWord'),
- toString = require('./toString'),
- unicodeWords = require('./_unicodeWords');
-
-/**
- * Splits `string` into an array of its words.
- *
- * @static
- * @memberOf _
- * @since 3.0.0
- * @category String
- * @param {string} [string=''] The string to inspect.
- * @param {RegExp|string} [pattern] The pattern to match words.
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
- * @returns {Array} Returns the words of `string`.
- * @example
- *
- * _.words('fred, barney, & pebbles');
- * // => ['fred', 'barney', 'pebbles']
- *
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
- * // => ['fred', 'barney', '&', 'pebbles']
- */
-function words(string, pattern, guard) {
- string = toString(string);
- pattern = guard ? undefined : pattern;
-
- if (pattern === undefined) {
- return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
- }
- return string.match(pattern) || [];
-}
-
-module.exports = words;
diff --git a/node_modules/lodash/wrap.js b/node_modules/lodash/wrap.js
deleted file mode 100644
index cad3c50..0000000
--- a/node_modules/lodash/wrap.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var castFunction = require('./_castFunction'),
- partial = require('./partial');
-
-/**
- * Creates a function that provides `value` to `wrapper` as its first
- * argument. Any additional arguments provided to the function are appended
- * to those provided to the `wrapper`. The wrapper is invoked with the `this`
- * binding of the created function.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {*} value The value to wrap.
- * @param {Function} [wrapper=identity] The wrapper function.
- * @returns {Function} Returns the new function.
- * @example
- *
- * var p = _.wrap(_.escape, function(func, text) {
- * return '<p>' + func(text) + '</p>';
- * });
- *
- * p('fred, barney, & pebbles');
- * // => '<p>fred, barney, &amp; pebbles</p>'
- */
-function wrap(value, wrapper) {
- return partial(castFunction(wrapper), value);
-}
-
-module.exports = wrap;
diff --git a/node_modules/lodash/wrapperAt.js b/node_modules/lodash/wrapperAt.js
deleted file mode 100644
index 6f6a1d0..0000000
--- a/node_modules/lodash/wrapperAt.js
+++ /dev/null
@@ -1,48 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper'),
- LodashWrapper = require('./_LodashWrapper'),
- baseAt = require('./_baseAt'),
- flatRest = require('./_flatRest'),
- isIndex = require('./_isIndex'),
- thru = require('./thru');
-
-/**
- * This method is the wrapper version of `_.at`.
- *
- * @name at
- * @memberOf _
- * @since 1.0.0
- * @category Seq
- * @param {...(string|string[])} [paths] The property paths to pick.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
- *
- * _(object).at(['a[0].b.c', 'a[1]']).value();
- * // => [3, 4]
- */
-var wrapperAt = flatRest(function(paths) {
- var length = paths.length,
- start = length ? paths[0] : 0,
- value = this.__wrapped__,
- interceptor = function(object) { return baseAt(object, paths); };
-
- if (length > 1 || this.__actions__.length ||
- !(value instanceof LazyWrapper) || !isIndex(start)) {
- return this.thru(interceptor);
- }
- value = value.slice(start, +start + (length ? 1 : 0));
- value.__actions__.push({
- 'func': thru,
- 'args': [interceptor],
- 'thisArg': undefined
- });
- return new LodashWrapper(value, this.__chain__).thru(function(array) {
- if (length && !array.length) {
- array.push(undefined);
- }
- return array;
- });
-});
-
-module.exports = wrapperAt;
diff --git a/node_modules/lodash/wrapperChain.js b/node_modules/lodash/wrapperChain.js
deleted file mode 100644
index bda2ce6..0000000
--- a/node_modules/lodash/wrapperChain.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var chain = require('./chain');
-
-/**
- * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
- *
- * @name chain
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var users = [
- * { 'user': 'barney', 'age': 36 },
- * { 'user': 'fred', 'age': 40 }
- * ];
- *
- * // A sequence without explicit chaining.
- * _(users).head();
- * // => { 'user': 'barney', 'age': 36 }
- *
- * // A sequence with explicit chaining.
- * _(users)
- * .chain()
- * .head()
- * .pick('user')
- * .value();
- * // => { 'user': 'barney' }
- */
-function wrapperChain() {
- return chain(this);
-}
-
-module.exports = wrapperChain;
diff --git a/node_modules/lodash/wrapperLodash.js b/node_modules/lodash/wrapperLodash.js
deleted file mode 100644
index bd6e8ad..0000000
--- a/node_modules/lodash/wrapperLodash.js
+++ /dev/null
@@ -1,147 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper'),
- LodashWrapper = require('./_LodashWrapper'),
- baseLodash = require('./_baseLodash'),
- isArray = require('./isArray'),
- isObjectLike = require('./isObjectLike'),
- wrapperClone = require('./_wrapperClone');
-
-/** Used for built-in method references. */
-var objectProto = Object.prototype;
-
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
-
-/**
- * Creates a `lodash` object which wraps `value` to enable implicit method
- * chain sequences. Methods that operate on and return arrays, collections,
- * and functions can be chained together. Methods that retrieve a single value
- * or may return a primitive value will automatically end the chain sequence
- * and return the unwrapped value. Otherwise, the value must be unwrapped
- * with `_#value`.
- *
- * Explicit chain sequences, which must be unwrapped with `_#value`, may be
- * enabled using `_.chain`.
- *
- * The execution of chained methods is lazy, that is, it's deferred until
- * `_#value` is implicitly or explicitly called.
- *
- * Lazy evaluation allows several methods to support shortcut fusion.
- * Shortcut fusion is an optimization to merge iteratee calls; this avoids
- * the creation of intermediate arrays and can greatly reduce the number of
- * iteratee executions. Sections of a chain sequence qualify for shortcut
- * fusion if the section is applied to an array and iteratees accept only
- * one argument. The heuristic for whether a section qualifies for shortcut
- * fusion is subject to change.
- *
- * Chaining is supported in custom builds as long as the `_#value` method is
- * directly or indirectly included in the build.
- *
- * In addition to lodash methods, wrappers have `Array` and `String` methods.
- *
- * The wrapper `Array` methods are:
- * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
- *
- * The wrapper `String` methods are:
- * `replace` and `split`
- *
- * The wrapper methods that support shortcut fusion are:
- * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
- * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
- * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
- *
- * The chainable wrapper methods are:
- * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
- * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
- * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
- * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
- * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
- * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
- * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
- * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
- * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
- * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
- * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
- * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
- * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
- * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
- * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
- * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
- * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
- * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
- * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
- * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
- * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
- * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
- * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
- * `zipObject`, `zipObjectDeep`, and `zipWith`
- *
- * The wrapper methods that are **not** chainable by default are:
- * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
- * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
- * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
- * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
- * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
- * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
- * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
- * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
- * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
- * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
- * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
- * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
- * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
- * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
- * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
- * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
- * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
- * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
- * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
- * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
- * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
- * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
- * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
- * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
- * `upperFirst`, `value`, and `words`
- *
- * @name _
- * @constructor
- * @category Seq
- * @param {*} value The value to wrap in a `lodash` instance.
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * function square(n) {
- * return n * n;
- * }
- *
- * var wrapped = _([1, 2, 3]);
- *
- * // Returns an unwrapped value.
- * wrapped.reduce(_.add);
- * // => 6
- *
- * // Returns a wrapped value.
- * var squares = wrapped.map(square);
- *
- * _.isArray(squares);
- * // => false
- *
- * _.isArray(squares.value());
- * // => true
- */
-function lodash(value) {
- if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
- if (value instanceof LodashWrapper) {
- return value;
- }
- if (hasOwnProperty.call(value, '__wrapped__')) {
- return wrapperClone(value);
- }
- }
- return new LodashWrapper(value);
-}
-
-// Ensure wrappers are instances of `baseLodash`.
-lodash.prototype = baseLodash.prototype;
-lodash.prototype.constructor = lodash;
-
-module.exports = lodash;
diff --git a/node_modules/lodash/wrapperReverse.js b/node_modules/lodash/wrapperReverse.js
deleted file mode 100644
index e93112a..0000000
--- a/node_modules/lodash/wrapperReverse.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var LazyWrapper = require('./_LazyWrapper'),
- LodashWrapper = require('./_LodashWrapper'),
- reverse = require('./reverse'),
- thru = require('./thru');
-
-/**
- * This method is the wrapper version of `_.reverse`.
- *
- * **Note:** This method mutates the wrapped array.
- *
- * @name reverse
- * @memberOf _
- * @since 0.1.0
- * @category Seq
- * @returns {Object} Returns the new `lodash` wrapper instance.
- * @example
- *
- * var array = [1, 2, 3];
- *
- * _(array).reverse().value()
- * // => [3, 2, 1]
- *
- * console.log(array);
- * // => [3, 2, 1]
- */
-function wrapperReverse() {
- var value = this.__wrapped__;
- if (value instanceof LazyWrapper) {
- var wrapped = value;
- if (this.__actions__.length) {
- wrapped = new LazyWrapper(this);
- }
- wrapped = wrapped.reverse();
- wrapped.__actions__.push({
- 'func': thru,
- 'args': [reverse],
- 'thisArg': undefined
- });
- return new LodashWrapper(wrapped, this.__chain__);
- }
- return this.thru(reverse);
-}
-
-module.exports = wrapperReverse;
diff --git a/node_modules/lodash/wrapperValue.js b/node_modules/lodash/wrapperValue.js
deleted file mode 100644
index f56c2da..0000000
--- a/node_modules/lodash/wrapperValue.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var baseWrapperValue = require('./_baseWrapperValue');
-
-/**
- * Executes the chain sequence to resolve the unwrapped value.
- *
- * @name value
- * @memberOf _
- * @since 0.1.0
- * @alias toJSON, valueOf
- * @category Seq
- * @returns {*} Returns the resolved unwrapped value.
- * @example
- *
- * _([1, 2, 3]).value();
- * // => [1, 2, 3]
- */
-function wrapperValue() {
- return baseWrapperValue(this.__wrapped__, this.__actions__);
-}
-
-module.exports = wrapperValue;
diff --git a/node_modules/lodash/xor.js b/node_modules/lodash/xor.js
deleted file mode 100644
index d4d2860..0000000
--- a/node_modules/lodash/xor.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- baseRest = require('./_baseRest'),
- baseXor = require('./_baseXor'),
- isArrayLikeObject = require('./isArrayLikeObject');
-
-/**
- * Creates an array of unique values that is the
- * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
- * of the given arrays. The order of result values is determined by the order
- * they occur in the arrays.
- *
- * @static
- * @memberOf _
- * @since 2.4.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @returns {Array} Returns the new array of filtered values.
- * @see _.difference, _.without
- * @example
- *
- * _.xor([2, 1], [2, 3]);
- * // => [1, 3]
- */
-var xor = baseRest(function(arrays) {
- return baseXor(arrayFilter(arrays, isArrayLikeObject));
-});
-
-module.exports = xor;
diff --git a/node_modules/lodash/xorBy.js b/node_modules/lodash/xorBy.js
deleted file mode 100644
index e047895..0000000
--- a/node_modules/lodash/xorBy.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- baseIteratee = require('./_baseIteratee'),
- baseRest = require('./_baseRest'),
- baseXor = require('./_baseXor'),
- isArrayLikeObject = require('./isArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.xor` except that it accepts `iteratee` which is
- * invoked for each element of each `arrays` to generate the criterion by
- * which by which they're compared. The order of result values is determined
- * by the order they occur in the arrays. The iteratee is invoked with one
- * argument: (value).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
- * // => [1.2, 3.4]
- *
- * // The `_.property` iteratee shorthand.
- * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
- * // => [{ 'x': 2 }]
- */
-var xorBy = baseRest(function(arrays) {
- var iteratee = last(arrays);
- if (isArrayLikeObject(iteratee)) {
- iteratee = undefined;
- }
- return baseXor(arrayFilter(arrays, isArrayLikeObject), baseIteratee(iteratee, 2));
-});
-
-module.exports = xorBy;
diff --git a/node_modules/lodash/xorWith.js b/node_modules/lodash/xorWith.js
deleted file mode 100644
index e3a8ac6..0000000
--- a/node_modules/lodash/xorWith.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var arrayFilter = require('./_arrayFilter'),
- baseRest = require('./_baseRest'),
- baseXor = require('./_baseXor'),
- isArrayLikeObject = require('./isArrayLikeObject'),
- last = require('./last');
-
-/**
- * This method is like `_.xor` except that it accepts `comparator` which is
- * invoked to compare elements of `arrays`. The order of result values is
- * determined by the order they occur in the arrays. The comparator is invoked
- * with two arguments: (arrVal, othVal).
- *
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Array
- * @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [comparator] The comparator invoked per element.
- * @returns {Array} Returns the new array of filtered values.
- * @example
- *
- * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
- * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
- *
- * _.xorWith(objects, others, _.isEqual);
- * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
- */
-var xorWith = baseRest(function(arrays) {
- var comparator = last(arrays);
- comparator = typeof comparator == 'function' ? comparator : undefined;
- return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
-});
-
-module.exports = xorWith;
diff --git a/node_modules/lodash/zip.js b/node_modules/lodash/zip.js
deleted file mode 100644
index c800ab3..0000000
--- a/node_modules/lodash/zip.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var baseRest = require('./_baseRest'),
- unzip = require('./unzip');
-
-/**
- * Creates an array of grouped elements, the first of which contains the
- * first elements of the given arrays, the second of which contains the
- * second elements of the given arrays, and so on.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zip(['a', 'b'], [1, 2], [true, false]);
- * // => [['a', 1, true], ['b', 2, false]]
- */
-var zip = baseRest(unzip);
-
-module.exports = zip;
diff --git a/node_modules/lodash/zipObject.js b/node_modules/lodash/zipObject.js
deleted file mode 100644
index 23fdf14..0000000
--- a/node_modules/lodash/zipObject.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var assignValue = require('./_assignValue'),
- baseZipObject = require('./_baseZipObject');
-
-/**
- * This method is like `_.fromPairs` except that it accepts two arrays,
- * one of property identifiers and one of corresponding values.
- *
- * @static
- * @memberOf _
- * @since 0.4.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObject(['a', 'b'], [1, 2]);
- * // => { 'a': 1, 'b': 2 }
- */
-function zipObject(props, values) {
- return baseZipObject(props || [], values || [], assignValue);
-}
-
-module.exports = zipObject;
diff --git a/node_modules/lodash/zipObjectDeep.js b/node_modules/lodash/zipObjectDeep.js
deleted file mode 100644
index 7c858f8..0000000
--- a/node_modules/lodash/zipObjectDeep.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var baseSet = require('./_baseSet'),
- baseZipObject = require('./_baseZipObject');
-
-/**
- * This method is like `_.zipObject` except that it supports property paths.
- *
- * @static
- * @memberOf _
- * @since 4.1.0
- * @category Array
- * @param {Array} [props=[]] The property identifiers.
- * @param {Array} [values=[]] The property values.
- * @returns {Object} Returns the new object.
- * @example
- *
- * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
- * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
- */
-function zipObjectDeep(props, values) {
- return baseZipObject(props || [], values || [], baseSet);
-}
-
-module.exports = zipObjectDeep;
diff --git a/node_modules/lodash/zipWith.js b/node_modules/lodash/zipWith.js
deleted file mode 100644
index d7a1f91..0000000
--- a/node_modules/lodash/zipWith.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var baseRest = require('./_baseRest'),
- unzipWith = require('./unzipWith');
-
-/**
- * This method is like `_.zip` except that it accepts `iteratee` to specify
- * how grouped values should be combined. The iteratee is invoked with the
- * elements of each group: (...group).
- *
- * @static
- * @memberOf _
- * @since 3.8.0
- * @category Array
- * @param {...Array} [arrays] The arrays to process.
- * @param {Function} [iteratee=_.identity] The function to combine
- * grouped values.
- * @returns {Array} Returns the new array of grouped elements.
- * @example
- *
- * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
- * return a + b + c;
- * });
- * // => [111, 222]
- */
-var zipWith = baseRest(function(arrays) {
- var length = arrays.length,
- iteratee = length > 1 ? arrays[length - 1] : undefined;
-
- iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
- return unzipWith(arrays, iteratee);
-});
-
-module.exports = zipWith;
diff --git a/node_modules/loud-rejection/api.js b/node_modules/loud-rejection/api.js
deleted file mode 100644
index f6cd6a1..0000000
--- a/node_modules/loud-rejection/api.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-var util = require('util');
-var currentlyUnhandled = require('currently-unhandled');
-
-// WARNING: This undocumented API is subject to change.
-
-module.exports = util.deprecate(function (process) {
- return {
- currentlyUnhandled: currentlyUnhandled(process)
- };
-}, 'loudRejection/api is deprecated. Use the currently-unhandled module instead.');
diff --git a/node_modules/loud-rejection/index.js b/node_modules/loud-rejection/index.js
deleted file mode 100644
index 319b945..0000000
--- a/node_modules/loud-rejection/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-var util = require('util');
-var onExit = require('signal-exit');
-var currentlyUnhandled = require('currently-unhandled');
-
-var installed = false;
-
-module.exports = function (log) {
- if (installed) {
- return;
- }
-
- installed = true;
-
- log = log || console.error;
-
- var listUnhandled = currentlyUnhandled();
-
- onExit(function () {
- var unhandledRejections = listUnhandled();
-
- if (unhandledRejections.length > 0) {
- unhandledRejections.forEach(function (x) {
- var err = x.reason;
-
- if (!(err instanceof Error)) {
- err = new Error('Promise rejected with value: ' + util.inspect(err));
- }
-
- log(err.stack);
- });
-
- process.exitCode = 1;
- }
- });
-};
diff --git a/node_modules/loud-rejection/license b/node_modules/loud-rejection/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/loud-rejection/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/loud-rejection/package.json b/node_modules/loud-rejection/package.json
deleted file mode 100644
index 2e647a9..0000000
--- a/node_modules/loud-rejection/package.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "_from": "loud-rejection@^1.0.0",
- "_id": "loud-rejection@1.6.0",
- "_inBundle": false,
- "_integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=",
- "_location": "/loud-rejection",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "loud-rejection@^1.0.0",
- "name": "loud-rejection",
- "escapedName": "loud-rejection",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/meow"
- ],
- "_resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
- "_shasum": "5b46f80147edee578870f086d04821cf998e551f",
- "_spec": "loud-rejection@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/loud-rejection/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "currently-unhandled": "^0.4.1",
- "signal-exit": "^3.0.0"
- },
- "deprecated": false,
- "description": "Make unhandled promise rejections fail loudly instead of the default silent fail",
- "devDependencies": {
- "ava": "*",
- "bluebird": "^3.0.5",
- "coveralls": "^2.11.4",
- "delay": "^1.0.0",
- "execa": "^0.4.0",
- "get-stream": "^2.0.0",
- "nyc": "^6.2.1",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js",
- "register.js",
- "api.js"
- ],
- "homepage": "https://github.com/sindresorhus/loud-rejection#readme",
- "keywords": [
- "promise",
- "promises",
- "unhandled",
- "uncaught",
- "rejection",
- "loud",
- "fail",
- "catch",
- "throw",
- "handler",
- "exit",
- "debug",
- "debugging",
- "verbose"
- ],
- "license": "MIT",
- "name": "loud-rejection",
- "nyc": {
- "exclude": [
- "fixture.js"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/loud-rejection.git"
- },
- "scripts": {
- "coveralls": "nyc report --reporter=text-lcov | coveralls",
- "test": "xo && nyc ava"
- },
- "version": "1.6.0"
-}
diff --git a/node_modules/loud-rejection/readme.md b/node_modules/loud-rejection/readme.md
deleted file mode 100644
index a973261..0000000
--- a/node_modules/loud-rejection/readme.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# loud-rejection [![Build Status](https://travis-ci.org/sindresorhus/loud-rejection.svg?branch=master)](https://travis-ci.org/sindresorhus/loud-rejection) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/loud-rejection/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/loud-rejection?branch=master)
-
-> Make unhandled promise rejections fail loudly instead of the default [silent fail](https://gist.github.com/benjamingr/0237932cee84712951a2)
-
-By default, promises fail silently if you don't attach a `.catch()` handler to them.
-
-Use this in top-level things like tests, CLI tools, apps, etc, **but not in reusable modules.**<br>
-Not needed in the browser as unhandled promises are shown in the console.
-
-
-## Install
-
-```
-$ npm install --save loud-rejection
-```
-
-
-## Usage
-
-```js
-const loudRejection = require('loud-rejection');
-const promiseFn = require('promise-fn');
-
-// Install the unhandledRejection listeners
-loudRejection();
-
-promiseFn();
-```
-
-Without this module it's more verbose and you might even miss some that will fail silently:
-
-```js
-const promiseFn = require('promise-fn');
-
-function error(err) {
- console.error(err.stack);
- process.exit(1);
-}
-
-promiseFn().catch(error);
-```
-
-### Register script
-
-Alternatively to the above, you may simply require `loud-rejection/register` and the unhandledRejection listener will be automagically installed for you.
-
-This is handy for ES2015 imports:
-
-```js
-import 'loud-rejection/register';
-```
-
-
-## API
-
-### loudRejection([log])
-
-#### log
-
-Type: `Function`<br>
-Default: `console.error`
-
-Custom logging function to print the rejected promise. Receives the error stack.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/loud-rejection/register.js b/node_modules/loud-rejection/register.js
deleted file mode 100644
index 2934812..0000000
--- a/node_modules/loud-rejection/register.js
+++ /dev/null
@@ -1,2 +0,0 @@
-'use strict';
-require('./')();
diff --git a/node_modules/lru-cache/LICENSE b/node_modules/lru-cache/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/lru-cache/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/lru-cache/README.md b/node_modules/lru-cache/README.md
deleted file mode 100644
index d660dd5..0000000
--- a/node_modules/lru-cache/README.md
+++ /dev/null
@@ -1,158 +0,0 @@
-# lru cache
-
-A cache object that deletes the least-recently-used items.
-
-[![Build Status](https://travis-ci.org/isaacs/node-lru-cache.svg?branch=master)](https://travis-ci.org/isaacs/node-lru-cache) [![Coverage Status](https://coveralls.io/repos/isaacs/node-lru-cache/badge.svg?service=github)](https://coveralls.io/github/isaacs/node-lru-cache)
-
-## Installation:
-
-```javascript
-npm install lru-cache --save
-```
-
-## Usage:
-
-```javascript
-var LRU = require("lru-cache")
- , options = { max: 500
- , length: function (n, key) { return n * 2 + key.length }
- , dispose: function (key, n) { n.close() }
- , maxAge: 1000 * 60 * 60 }
- , cache = LRU(options)
- , otherCache = LRU(50) // sets just the max size
-
-cache.set("key", "value")
-cache.get("key") // "value"
-
-// non-string keys ARE fully supported
-// but note that it must be THE SAME object, not
-// just a JSON-equivalent object.
-var someObject = { a: 1 }
-cache.set(someObject, 'a value')
-// Object keys are not toString()-ed
-cache.set('[object Object]', 'a different value')
-assert.equal(cache.get(someObject), 'a value')
-// A similar object with same keys/values won't work,
-// because it's a different object identity
-assert.equal(cache.get({ a: 1 }), undefined)
-
-cache.reset() // empty the cache
-```
-
-If you put more stuff in it, then items will fall out.
-
-If you try to put an oversized thing in it, then it'll fall out right
-away.
-
-## Options
-
-* `max` The maximum size of the cache, checked by applying the length
- function to all values in the cache. Not setting this is kind of
- silly, since that's the whole purpose of this lib, but it defaults
- to `Infinity`.
-* `maxAge` Maximum age in ms. Items are not pro-actively pruned out
- as they age, but if you try to get an item that is too old, it'll
- drop it and return undefined instead of giving it to you.
-* `length` Function that is used to calculate the length of stored
- items. If you're storing strings or buffers, then you probably want
- to do something like `function(n, key){return n.length}`. The default is
- `function(){return 1}`, which is fine if you want to store `max`
- like-sized things. The item is passed as the first argument, and
- the key is passed as the second argumnet.
-* `dispose` Function that is called on items when they are dropped
- from the cache. This can be handy if you want to close file
- descriptors or do other cleanup tasks when items are no longer
- accessible. Called with `key, value`. It's called *before*
- actually removing the item from the internal cache, so if you want
- to immediately put it back in, you'll have to do that in a
- `nextTick` or `setTimeout` callback or it won't do anything.
-* `stale` By default, if you set a `maxAge`, it'll only actually pull
- stale items out of the cache when you `get(key)`. (That is, it's
- not pre-emptively doing a `setTimeout` or anything.) If you set
- `stale:true`, it'll return the stale value before deleting it. If
- you don't set this, then it'll return `undefined` when you try to
- get a stale entry, as if it had already been deleted.
-* `noDisposeOnSet` By default, if you set a `dispose()` method, then
- it'll be called whenever a `set()` operation overwrites an existing
- key. If you set this option, `dispose()` will only be called when a
- key falls out of the cache, not when it is overwritten.
-
-## API
-
-* `set(key, value, maxAge)`
-* `get(key) => value`
-
- Both of these will update the "recently used"-ness of the key.
- They do what you think. `maxAge` is optional and overrides the
- cache `maxAge` option if provided.
-
- If the key is not found, `get()` will return `undefined`.
-
- The key and val can be any value.
-
-* `peek(key)`
-
- Returns the key value (or `undefined` if not found) without
- updating the "recently used"-ness of the key.
-
- (If you find yourself using this a lot, you *might* be using the
- wrong sort of data structure, but there are some use cases where
- it's handy.)
-
-* `del(key)`
-
- Deletes a key out of the cache.
-
-* `reset()`
-
- Clear the cache entirely, throwing away all values.
-
-* `has(key)`
-
- Check if a key is in the cache, without updating the recent-ness
- or deleting it for being stale.
-
-* `forEach(function(value,key,cache), [thisp])`
-
- Just like `Array.prototype.forEach`. Iterates over all the keys
- in the cache, in order of recent-ness. (Ie, more recently used
- items are iterated over first.)
-
-* `rforEach(function(value,key,cache), [thisp])`
-
- The same as `cache.forEach(...)` but items are iterated over in
- reverse order. (ie, less recently used items are iterated over
- first.)
-
-* `keys()`
-
- Return an array of the keys in the cache.
-
-* `values()`
-
- Return an array of the values in the cache.
-
-* `length`
-
- Return total length of objects in cache taking into account
- `length` options function.
-
-* `itemCount`
-
- Return total quantity of objects currently in cache. Note, that
- `stale` (see options) items are returned as part of this item
- count.
-
-* `dump()`
-
- Return an array of the cache entries ready for serialization and usage
- with 'destinationCache.load(arr)`.
-
-* `load(cacheEntriesArray)`
-
- Loads another cache entries array, obtained with `sourceCache.dump()`,
- into the cache. The destination cache is reset before loading new entries
-
-* `prune()`
-
- Manually iterates over the entire cache proactively pruning old entries
diff --git a/node_modules/lru-cache/index.js b/node_modules/lru-cache/index.js
deleted file mode 100644
index bd35b53..0000000
--- a/node_modules/lru-cache/index.js
+++ /dev/null
@@ -1,468 +0,0 @@
-'use strict'
-
-module.exports = LRUCache
-
-// This will be a proper iterable 'Map' in engines that support it,
-// or a fakey-fake PseudoMap in older versions.
-var Map = require('pseudomap')
-var util = require('util')
-
-// A linked list to keep track of recently-used-ness
-var Yallist = require('yallist')
-
-// use symbols if possible, otherwise just _props
-var hasSymbol = typeof Symbol === 'function' && process.env._nodeLRUCacheForceNoSymbol !== '1'
-var makeSymbol
-if (hasSymbol) {
- makeSymbol = function (key) {
- return Symbol(key)
- }
-} else {
- makeSymbol = function (key) {
- return '_' + key
- }
-}
-
-var MAX = makeSymbol('max')
-var LENGTH = makeSymbol('length')
-var LENGTH_CALCULATOR = makeSymbol('lengthCalculator')
-var ALLOW_STALE = makeSymbol('allowStale')
-var MAX_AGE = makeSymbol('maxAge')
-var DISPOSE = makeSymbol('dispose')
-var NO_DISPOSE_ON_SET = makeSymbol('noDisposeOnSet')
-var LRU_LIST = makeSymbol('lruList')
-var CACHE = makeSymbol('cache')
-
-function naiveLength () { return 1 }
-
-// lruList is a yallist where the head is the youngest
-// item, and the tail is the oldest. the list contains the Hit
-// objects as the entries.
-// Each Hit object has a reference to its Yallist.Node. This
-// never changes.
-//
-// cache is a Map (or PseudoMap) that matches the keys to
-// the Yallist.Node object.
-function LRUCache (options) {
- if (!(this instanceof LRUCache)) {
- return new LRUCache(options)
- }
-
- if (typeof options === 'number') {
- options = { max: options }
- }
-
- if (!options) {
- options = {}
- }
-
- var max = this[MAX] = options.max
- // Kind of weird to have a default max of Infinity, but oh well.
- if (!max ||
- !(typeof max === 'number') ||
- max <= 0) {
- this[MAX] = Infinity
- }
-
- var lc = options.length || naiveLength
- if (typeof lc !== 'function') {
- lc = naiveLength
- }
- this[LENGTH_CALCULATOR] = lc
-
- this[ALLOW_STALE] = options.stale || false
- this[MAX_AGE] = options.maxAge || 0
- this[DISPOSE] = options.dispose
- this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false
- this.reset()
-}
-
-// resize the cache when the max changes.
-Object.defineProperty(LRUCache.prototype, 'max', {
- set: function (mL) {
- if (!mL || !(typeof mL === 'number') || mL <= 0) {
- mL = Infinity
- }
- this[MAX] = mL
- trim(this)
- },
- get: function () {
- return this[MAX]
- },
- enumerable: true
-})
-
-Object.defineProperty(LRUCache.prototype, 'allowStale', {
- set: function (allowStale) {
- this[ALLOW_STALE] = !!allowStale
- },
- get: function () {
- return this[ALLOW_STALE]
- },
- enumerable: true
-})
-
-Object.defineProperty(LRUCache.prototype, 'maxAge', {
- set: function (mA) {
- if (!mA || !(typeof mA === 'number') || mA < 0) {
- mA = 0
- }
- this[MAX_AGE] = mA
- trim(this)
- },
- get: function () {
- return this[MAX_AGE]
- },
- enumerable: true
-})
-
-// resize the cache when the lengthCalculator changes.
-Object.defineProperty(LRUCache.prototype, 'lengthCalculator', {
- set: function (lC) {
- if (typeof lC !== 'function') {
- lC = naiveLength
- }
- if (lC !== this[LENGTH_CALCULATOR]) {
- this[LENGTH_CALCULATOR] = lC
- this[LENGTH] = 0
- this[LRU_LIST].forEach(function (hit) {
- hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)
- this[LENGTH] += hit.length
- }, this)
- }
- trim(this)
- },
- get: function () { return this[LENGTH_CALCULATOR] },
- enumerable: true
-})
-
-Object.defineProperty(LRUCache.prototype, 'length', {
- get: function () { return this[LENGTH] },
- enumerable: true
-})
-
-Object.defineProperty(LRUCache.prototype, 'itemCount', {
- get: function () { return this[LRU_LIST].length },
- enumerable: true
-})
-
-LRUCache.prototype.rforEach = function (fn, thisp) {
- thisp = thisp || this
- for (var walker = this[LRU_LIST].tail; walker !== null;) {
- var prev = walker.prev
- forEachStep(this, fn, walker, thisp)
- walker = prev
- }
-}
-
-function forEachStep (self, fn, node, thisp) {
- var hit = node.value
- if (isStale(self, hit)) {
- del(self, node)
- if (!self[ALLOW_STALE]) {
- hit = undefined
- }
- }
- if (hit) {
- fn.call(thisp, hit.value, hit.key, self)
- }
-}
-
-LRUCache.prototype.forEach = function (fn, thisp) {
- thisp = thisp || this
- for (var walker = this[LRU_LIST].head; walker !== null;) {
- var next = walker.next
- forEachStep(this, fn, walker, thisp)
- walker = next
- }
-}
-
-LRUCache.prototype.keys = function () {
- return this[LRU_LIST].toArray().map(function (k) {
- return k.key
- }, this)
-}
-
-LRUCache.prototype.values = function () {
- return this[LRU_LIST].toArray().map(function (k) {
- return k.value
- }, this)
-}
-
-LRUCache.prototype.reset = function () {
- if (this[DISPOSE] &&
- this[LRU_LIST] &&
- this[LRU_LIST].length) {
- this[LRU_LIST].forEach(function (hit) {
- this[DISPOSE](hit.key, hit.value)
- }, this)
- }
-
- this[CACHE] = new Map() // hash of items by key
- this[LRU_LIST] = new Yallist() // list of items in order of use recency
- this[LENGTH] = 0 // length of items in the list
-}
-
-LRUCache.prototype.dump = function () {
- return this[LRU_LIST].map(function (hit) {
- if (!isStale(this, hit)) {
- return {
- k: hit.key,
- v: hit.value,
- e: hit.now + (hit.maxAge || 0)
- }
- }
- }, this).toArray().filter(function (h) {
- return h
- })
-}
-
-LRUCache.prototype.dumpLru = function () {
- return this[LRU_LIST]
-}
-
-/* istanbul ignore next */
-LRUCache.prototype.inspect = function (n, opts) {
- var str = 'LRUCache {'
- var extras = false
-
- var as = this[ALLOW_STALE]
- if (as) {
- str += '\n allowStale: true'
- extras = true
- }
-
- var max = this[MAX]
- if (max && max !== Infinity) {
- if (extras) {
- str += ','
- }
- str += '\n max: ' + util.inspect(max, opts)
- extras = true
- }
-
- var maxAge = this[MAX_AGE]
- if (maxAge) {
- if (extras) {
- str += ','
- }
- str += '\n maxAge: ' + util.inspect(maxAge, opts)
- extras = true
- }
-
- var lc = this[LENGTH_CALCULATOR]
- if (lc && lc !== naiveLength) {
- if (extras) {
- str += ','
- }
- str += '\n length: ' + util.inspect(this[LENGTH], opts)
- extras = true
- }
-
- var didFirst = false
- this[LRU_LIST].forEach(function (item) {
- if (didFirst) {
- str += ',\n '
- } else {
- if (extras) {
- str += ',\n'
- }
- didFirst = true
- str += '\n '
- }
- var key = util.inspect(item.key).split('\n').join('\n ')
- var val = { value: item.value }
- if (item.maxAge !== maxAge) {
- val.maxAge = item.maxAge
- }
- if (lc !== naiveLength) {
- val.length = item.length
- }
- if (isStale(this, item)) {
- val.stale = true
- }
-
- val = util.inspect(val, opts).split('\n').join('\n ')
- str += key + ' => ' + val
- })
-
- if (didFirst || extras) {
- str += '\n'
- }
- str += '}'
-
- return str
-}
-
-LRUCache.prototype.set = function (key, value, maxAge) {
- maxAge = maxAge || this[MAX_AGE]
-
- var now = maxAge ? Date.now() : 0
- var len = this[LENGTH_CALCULATOR](value, key)
-
- if (this[CACHE].has(key)) {
- if (len > this[MAX]) {
- del(this, this[CACHE].get(key))
- return false
- }
-
- var node = this[CACHE].get(key)
- var item = node.value
-
- // dispose of the old one before overwriting
- // split out into 2 ifs for better coverage tracking
- if (this[DISPOSE]) {
- if (!this[NO_DISPOSE_ON_SET]) {
- this[DISPOSE](key, item.value)
- }
- }
-
- item.now = now
- item.maxAge = maxAge
- item.value = value
- this[LENGTH] += len - item.length
- item.length = len
- this.get(key)
- trim(this)
- return true
- }
-
- var hit = new Entry(key, value, len, now, maxAge)
-
- // oversized objects fall out of cache automatically.
- if (hit.length > this[MAX]) {
- if (this[DISPOSE]) {
- this[DISPOSE](key, value)
- }
- return false
- }
-
- this[LENGTH] += hit.length
- this[LRU_LIST].unshift(hit)
- this[CACHE].set(key, this[LRU_LIST].head)
- trim(this)
- return true
-}
-
-LRUCache.prototype.has = function (key) {
- if (!this[CACHE].has(key)) return false
- var hit = this[CACHE].get(key).value
- if (isStale(this, hit)) {
- return false
- }
- return true
-}
-
-LRUCache.prototype.get = function (key) {
- return get(this, key, true)
-}
-
-LRUCache.prototype.peek = function (key) {
- return get(this, key, false)
-}
-
-LRUCache.prototype.pop = function () {
- var node = this[LRU_LIST].tail
- if (!node) return null
- del(this, node)
- return node.value
-}
-
-LRUCache.prototype.del = function (key) {
- del(this, this[CACHE].get(key))
-}
-
-LRUCache.prototype.load = function (arr) {
- // reset the cache
- this.reset()
-
- var now = Date.now()
- // A previous serialized cache has the most recent items first
- for (var l = arr.length - 1; l >= 0; l--) {
- var hit = arr[l]
- var expiresAt = hit.e || 0
- if (expiresAt === 0) {
- // the item was created without expiration in a non aged cache
- this.set(hit.k, hit.v)
- } else {
- var maxAge = expiresAt - now
- // dont add already expired items
- if (maxAge > 0) {
- this.set(hit.k, hit.v, maxAge)
- }
- }
- }
-}
-
-LRUCache.prototype.prune = function () {
- var self = this
- this[CACHE].forEach(function (value, key) {
- get(self, key, false)
- })
-}
-
-function get (self, key, doUse) {
- var node = self[CACHE].get(key)
- if (node) {
- var hit = node.value
- if (isStale(self, hit)) {
- del(self, node)
- if (!self[ALLOW_STALE]) hit = undefined
- } else {
- if (doUse) {
- self[LRU_LIST].unshiftNode(node)
- }
- }
- if (hit) hit = hit.value
- }
- return hit
-}
-
-function isStale (self, hit) {
- if (!hit || (!hit.maxAge && !self[MAX_AGE])) {
- return false
- }
- var stale = false
- var diff = Date.now() - hit.now
- if (hit.maxAge) {
- stale = diff > hit.maxAge
- } else {
- stale = self[MAX_AGE] && (diff > self[MAX_AGE])
- }
- return stale
-}
-
-function trim (self) {
- if (self[LENGTH] > self[MAX]) {
- for (var walker = self[LRU_LIST].tail;
- self[LENGTH] > self[MAX] && walker !== null;) {
- // We know that we're about to delete this one, and also
- // what the next least recently used key will be, so just
- // go ahead and set it now.
- var prev = walker.prev
- del(self, walker)
- walker = prev
- }
- }
-}
-
-function del (self, node) {
- if (node) {
- var hit = node.value
- if (self[DISPOSE]) {
- self[DISPOSE](hit.key, hit.value)
- }
- self[LENGTH] -= hit.length
- self[CACHE].delete(hit.key)
- self[LRU_LIST].removeNode(node)
- }
-}
-
-// classy, since V8 prefers predictable objects.
-function Entry (key, value, length, now, maxAge) {
- this.key = key
- this.value = value
- this.length = length
- this.now = now
- this.maxAge = maxAge || 0
-}
diff --git a/node_modules/lru-cache/package.json b/node_modules/lru-cache/package.json
deleted file mode 100644
index 82f1d5c..0000000
--- a/node_modules/lru-cache/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "lru-cache@^4.0.1",
- "_id": "lru-cache@4.1.5",
- "_inBundle": false,
- "_integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
- "_location": "/lru-cache",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "lru-cache@^4.0.1",
- "name": "lru-cache",
- "escapedName": "lru-cache",
- "rawSpec": "^4.0.1",
- "saveSpec": null,
- "fetchSpec": "^4.0.1"
- },
- "_requiredBy": [
- "/cross-spawn"
- ],
- "_resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
- "_shasum": "8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd",
- "_spec": "lru-cache@^4.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/cross-spawn",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me"
- },
- "bugs": {
- "url": "https://github.com/isaacs/node-lru-cache/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "pseudomap": "^1.0.2",
- "yallist": "^2.1.2"
- },
- "deprecated": false,
- "description": "A cache object that deletes the least-recently-used items.",
- "devDependencies": {
- "benchmark": "^2.1.4",
- "standard": "^12.0.1",
- "tap": "^12.1.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/isaacs/node-lru-cache#readme",
- "keywords": [
- "mru",
- "lru",
- "cache"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "lru-cache",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/node-lru-cache.git"
- },
- "scripts": {
- "coveragerport": "tap --coverage-report=html",
- "lintfix": "standard --fix test/*.js index.js",
- "postpublish": "git push origin --all; git push origin --tags",
- "posttest": "standard test/*.js index.js",
- "postversion": "npm publish --tag=legacy",
- "preversion": "npm test",
- "snap": "TAP_SNAPSHOT=1 tap test/*.js -J",
- "test": "tap test/*.js --100 -J"
- },
- "version": "4.1.5"
-}
diff --git a/node_modules/map-obj/index.js b/node_modules/map-obj/index.js
deleted file mode 100644
index 8b7b4d6..0000000
--- a/node_modules/map-obj/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-module.exports = function (obj, cb) {
- var ret = {};
- var keys = Object.keys(obj);
-
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- var res = cb(key, obj[key], obj);
- ret[res[0]] = res[1];
- }
-
- return ret;
-};
diff --git a/node_modules/map-obj/license b/node_modules/map-obj/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/map-obj/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/map-obj/package.json b/node_modules/map-obj/package.json
deleted file mode 100644
index e3169df..0000000
--- a/node_modules/map-obj/package.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "_from": "map-obj@^1.0.1",
- "_id": "map-obj@1.0.1",
- "_inBundle": false,
- "_integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
- "_location": "/map-obj",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "map-obj@^1.0.1",
- "name": "map-obj",
- "escapedName": "map-obj",
- "rawSpec": "^1.0.1",
- "saveSpec": null,
- "fetchSpec": "^1.0.1"
- },
- "_requiredBy": [
- "/camelcase-keys",
- "/meow"
- ],
- "_resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
- "_shasum": "d933ceb9205d82bdcf4886f6742bdc2b4dea146d",
- "_spec": "map-obj@^1.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/map-obj/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Map object keys and values into a new object",
- "devDependencies": {
- "ava": "0.0.4"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/map-obj#readme",
- "keywords": [
- "map",
- "obj",
- "object",
- "key",
- "keys",
- "value",
- "values",
- "val",
- "iterate",
- "iterator"
- ],
- "license": "MIT",
- "name": "map-obj",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/map-obj.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/map-obj/readme.md b/node_modules/map-obj/readme.md
deleted file mode 100644
index fee03d9..0000000
--- a/node_modules/map-obj/readme.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# map-obj [![Build Status](https://travis-ci.org/sindresorhus/map-obj.svg?branch=master)](https://travis-ci.org/sindresorhus/map-obj)
-
-> Map object keys and values into a new object
-
-
-## Install
-
-```
-$ npm install --save map-obj
-```
-
-
-## Usage
-
-```js
-var mapObj = require('map-obj');
-
-var newObject = mapObj({foo: 'bar'}, function (key, value, object) {
- // first element is the new key and second is the new value
- // here we reverse the order
- return [value, key];
-});
-//=> {bar: 'foo'}
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/meow/index.js b/node_modules/meow/index.js
deleted file mode 100644
index d7ab879..0000000
--- a/node_modules/meow/index.js
+++ /dev/null
@@ -1,82 +0,0 @@
-'use strict';
-var path = require('path');
-var minimist = require('minimist');
-var objectAssign = require('object-assign');
-var camelcaseKeys = require('camelcase-keys');
-var decamelize = require('decamelize');
-var mapObj = require('map-obj');
-var trimNewlines = require('trim-newlines');
-var redent = require('redent');
-var readPkgUp = require('read-pkg-up');
-var loudRejection = require('loud-rejection');
-var normalizePackageData = require('normalize-package-data');
-
-// get the uncached parent
-delete require.cache[__filename];
-var parentDir = path.dirname(module.parent.filename);
-
-module.exports = function (opts, minimistOpts) {
- loudRejection();
-
- if (Array.isArray(opts) || typeof opts === 'string') {
- opts = {help: opts};
- }
-
- opts = objectAssign({
- pkg: readPkgUp.sync({
- cwd: parentDir,
- normalize: false
- }).pkg,
- argv: process.argv.slice(2)
- }, opts);
-
- minimistOpts = objectAssign({}, minimistOpts);
-
- minimistOpts.default = mapObj(minimistOpts.default || {}, function (key, value) {
- return [decamelize(key, '-'), value];
- });
-
- if (Array.isArray(opts.help)) {
- opts.help = opts.help.join('\n');
- }
-
- var pkg = typeof opts.pkg === 'string' ? require(path.join(parentDir, opts.pkg)) : opts.pkg;
- var argv = minimist(opts.argv, minimistOpts);
- var help = redent(trimNewlines(opts.help || ''), 2);
-
- normalizePackageData(pkg);
-
- process.title = pkg.bin ? Object.keys(pkg.bin)[0] : pkg.name;
-
- var description = opts.description;
- if (!description && description !== false) {
- description = pkg.description;
- }
-
- help = (description ? '\n ' + description + '\n' : '') + (help ? '\n' + help : '\n');
-
- var showHelp = function (code) {
- console.log(help);
- process.exit(code || 0);
- };
-
- if (argv.version && opts.version !== false) {
- console.log(typeof opts.version === 'string' ? opts.version : pkg.version);
- process.exit();
- }
-
- if (argv.help && opts.help !== false) {
- showHelp();
- }
-
- var _ = argv._;
- delete argv._;
-
- return {
- input: _,
- flags: camelcaseKeys(argv),
- pkg: pkg,
- help: help,
- showHelp: showHelp
- };
-};
diff --git a/node_modules/meow/license b/node_modules/meow/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/meow/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/meow/package.json b/node_modules/meow/package.json
deleted file mode 100644
index 394c8a1..0000000
--- a/node_modules/meow/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_from": "meow@^3.7.0",
- "_id": "meow@3.7.0",
- "_inBundle": false,
- "_integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
- "_location": "/meow",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "meow@^3.7.0",
- "name": "meow",
- "escapedName": "meow",
- "rawSpec": "^3.7.0",
- "saveSpec": null,
- "fetchSpec": "^3.7.0"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
- "_shasum": "72cb668b425228290abbfa856892587308a801fb",
- "_spec": "meow@^3.7.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/meow/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "camelcase-keys": "^2.0.0",
- "decamelize": "^1.1.2",
- "loud-rejection": "^1.0.0",
- "map-obj": "^1.0.1",
- "minimist": "^1.1.3",
- "normalize-package-data": "^2.3.4",
- "object-assign": "^4.0.1",
- "read-pkg-up": "^1.0.1",
- "redent": "^1.0.0",
- "trim-newlines": "^1.0.0"
- },
- "deprecated": false,
- "description": "CLI app helper",
- "devDependencies": {
- "ava": "*",
- "execa": "^0.1.1",
- "indent-string": "^2.1.0",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/meow#readme",
- "keywords": [
- "cli",
- "bin",
- "util",
- "utility",
- "helper",
- "argv",
- "command",
- "line",
- "meow",
- "cat",
- "kitten",
- "parser",
- "option",
- "flags",
- "input",
- "cmd",
- "console"
- ],
- "license": "MIT",
- "name": "meow",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/meow.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.7.0"
-}
diff --git a/node_modules/meow/readme.md b/node_modules/meow/readme.md
deleted file mode 100644
index 253380d..0000000
--- a/node_modules/meow/readme.md
+++ /dev/null
@@ -1,159 +0,0 @@
-# meow [![Build Status](https://travis-ci.org/sindresorhus/meow.svg?branch=master)](https://travis-ci.org/sindresorhus/meow)
-
-> CLI app helper
-
-![](meow.gif)
-
-
-## Features
-
-- Parses arguments using [minimist](https://github.com/substack/minimist)
-- Converts flags to [camelCase](https://github.com/sindresorhus/camelcase)
-- Outputs version when `--version`
-- Outputs description and supplied help text when `--help`
-- Makes unhandled rejected promises [fail loudly](https://github.com/sindresorhus/loud-rejection) instead of the default silent fail
-- Sets the process title to the binary name defined in package.json
-
-
-## Install
-
-```
-$ npm install --save meow
-```
-
-
-## Usage
-
-```
-$ ./foo-app.js unicorns --rainbow-cake
-```
-
-```js
-#!/usr/bin/env node
-'use strict';
-const meow = require('meow');
-const foo = require('./');
-
-const cli = meow(`
- Usage
- $ foo <input>
-
- Options
- -r, --rainbow Include a rainbow
-
- Examples
- $ foo unicorns --rainbow
- 🌈 unicorns 🌈
-`, {
- alias: {
- r: 'rainbow'
- }
-});
-/*
-{
- input: ['unicorns'],
- flags: {rainbow: true},
- ...
-}
-*/
-
-foo(cli.input[0], cli.flags);
-```
-
-
-## API
-
-### meow(options, [minimistOptions])
-
-Returns an object with:
-
-- `input` *(array)* - Non-flag arguments
-- `flags` *(object)* - Flags converted to camelCase
-- `pkg` *(object)* - The `package.json` object
-- `help` *(object)* - The help text used with `--help`
-- `showHelp([code=0])` *(function)* - Show the help text and exit with `code`
-
-#### options
-
-Type: `object`, `array`, `string`
-
-Can either be a string/array that is the `help` or an options object.
-
-##### description
-
-Type: `string`, `boolean`
-Default: The package.json `"description"` property
-
-A description to show above the help text.
-
-Set it to `false` to disable it altogether.
-
-##### help
-
-Type: `string`, `boolean`
-
-The help text you want shown.
-
-The input is reindented and starting/ending newlines are trimmed which means you can use a [template literal](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/template_strings) without having to care about using the correct amount of indent.
-
-<del>If it's an array each item will be a line.</del>
-*(Still supported, but you should use a template literal instead.)*
-
-The description will be shown above your help text automatically.
-
-Set it to `false` to disable it altogether.
-
-##### version
-
-Type: `string`, `boolean`
-Default: The package.json `"version"` property
-
-Set a custom version output.
-
-Set it to `false` to disable it altogether.
-
-##### pkg
-
-Type: `string`, `object`
-Default: Closest package.json upwards
-
-Relative path to package.json or as an object.
-
-##### argv
-
-Type: `array`
-Default: `process.argv.slice(2)`
-
-Custom arguments object.
-
-#### minimistOptions
-
-Type: `object`
-Default: `{}`
-
-Minimist [options](https://github.com/substack/minimist#var-argv--parseargsargs-opts).
-
-Keys passed to the minimist `default` option are [decamelized](https://github.com/sindresorhus/decamelize), so you can for example pass in `fooBar: 'baz'` and have it be the default for the `--foo-bar` flag.
-
-
-## Promises
-
-Meow will make unhandled rejected promises [fail loudly](https://github.com/sindresorhus/loud-rejection) instead of the default silent fail. Meaning you don't have to manually `.catch()` promises used in your CLI.
-
-
-## Tips
-
-See [`chalk`](https://github.com/chalk/chalk) if you want to colorize the terminal output.
-
-See [`get-stdin`](https://github.com/sindresorhus/get-stdin) if you want to accept input from stdin.
-
-See [`update-notifier`](https://github.com/yeoman/update-notifier) if you want update notifications.
-
-See [`configstore`](https://github.com/yeoman/configstore) if you need to persist some data.
-
-[More useful CLI utilities.](https://github.com/sindresorhus/awesome-nodejs#command-line-utilities)
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/mime-db/HISTORY.md b/node_modules/mime-db/HISTORY.md
deleted file mode 100644
index 85c0319..0000000
--- a/node_modules/mime-db/HISTORY.md
+++ /dev/null
@@ -1,446 +0,0 @@
-1.44.0 / 2020-04-22
-===================
-
- * Add charsets from IANA
- * Add extension `.cjs` to `application/node`
- * Add new upstream MIME types
-
-1.43.0 / 2020-01-05
-===================
-
- * Add `application/x-keepass2` with extension `.kdbx`
- * Add extension `.mxmf` to `audio/mobile-xmf`
- * Add extensions from IANA for `application/*+xml` types
- * Add new upstream MIME types
-
-1.42.0 / 2019-09-25
-===================
-
- * Add `image/vnd.ms-dds` with extension `.dds`
- * Add new upstream MIME types
- * Remove compressible from `multipart/mixed`
-
-1.41.0 / 2019-08-30
-===================
-
- * Add new upstream MIME types
- * Add `application/toml` with extension `.toml`
- * Mark `font/ttf` as compressible
-
-1.40.0 / 2019-04-20
-===================
-
- * Add extensions from IANA for `model/*` types
- * Add `text/mdx` with extension `.mdx`
-
-1.39.0 / 2019-04-04
-===================
-
- * Add extensions `.siv` and `.sieve` to `application/sieve`
- * Add new upstream MIME types
-
-1.38.0 / 2019-02-04
-===================
-
- * Add extension `.nq` to `application/n-quads`
- * Add extension `.nt` to `application/n-triples`
- * Add new upstream MIME types
- * Mark `text/less` as compressible
-
-1.37.0 / 2018-10-19
-===================
-
- * Add extensions to HEIC image types
- * Add new upstream MIME types
-
-1.36.0 / 2018-08-20
-===================
-
- * Add Apple file extensions from IANA
- * Add extensions from IANA for `image/*` types
- * Add new upstream MIME types
-
-1.35.0 / 2018-07-15
-===================
-
- * Add extension `.owl` to `application/rdf+xml`
- * Add new upstream MIME types
- - Removes extension `.woff` from `application/font-woff`
-
-1.34.0 / 2018-06-03
-===================
-
- * Add extension `.csl` to `application/vnd.citationstyles.style+xml`
- * Add extension `.es` to `application/ecmascript`
- * Add new upstream MIME types
- * Add `UTF-8` as default charset for `text/turtle`
- * Mark all XML-derived types as compressible
-
-1.33.0 / 2018-02-15
-===================
-
- * Add extensions from IANA for `message/*` types
- * Add new upstream MIME types
- * Fix some incorrect OOXML types
- * Remove `application/font-woff2`
-
-1.32.0 / 2017-11-29
-===================
-
- * Add new upstream MIME types
- * Update `text/hjson` to registered `application/hjson`
- * Add `text/shex` with extension `.shex`
-
-1.31.0 / 2017-10-25
-===================
-
- * Add `application/raml+yaml` with extension `.raml`
- * Add `application/wasm` with extension `.wasm`
- * Add new `font` type from IANA
- * Add new upstream font extensions
- * Add new upstream MIME types
- * Add extensions for JPEG-2000 images
-
-1.30.0 / 2017-08-27
-===================
-
- * Add `application/vnd.ms-outlook`
- * Add `application/x-arj`
- * Add extension `.mjs` to `application/javascript`
- * Add glTF types and extensions
- * Add new upstream MIME types
- * Add `text/x-org`
- * Add VirtualBox MIME types
- * Fix `source` records for `video/*` types that are IANA
- * Update `font/opentype` to registered `font/otf`
-
-1.29.0 / 2017-07-10
-===================
-
- * Add `application/fido.trusted-apps+json`
- * Add extension `.wadl` to `application/vnd.sun.wadl+xml`
- * Add new upstream MIME types
- * Add `UTF-8` as default charset for `text/css`
-
-1.28.0 / 2017-05-14
-===================
-
- * Add new upstream MIME types
- * Add extension `.gz` to `application/gzip`
- * Update extensions `.md` and `.markdown` to be `text/markdown`
-
-1.27.0 / 2017-03-16
-===================
-
- * Add new upstream MIME types
- * Add `image/apng` with extension `.apng`
-
-1.26.0 / 2017-01-14
-===================
-
- * Add new upstream MIME types
- * Add extension `.geojson` to `application/geo+json`
-
-1.25.0 / 2016-11-11
-===================
-
- * Add new upstream MIME types
-
-1.24.0 / 2016-09-18
-===================
-
- * Add `audio/mp3`
- * Add new upstream MIME types
-
-1.23.0 / 2016-05-01
-===================
-
- * Add new upstream MIME types
- * Add extension `.3gpp` to `audio/3gpp`
-
-1.22.0 / 2016-02-15
-===================
-
- * Add `text/slim`
- * Add extension `.rng` to `application/xml`
- * Add new upstream MIME types
- * Fix extension of `application/dash+xml` to be `.mpd`
- * Update primary extension to `.m4a` for `audio/mp4`
-
-1.21.0 / 2016-01-06
-===================
-
- * Add Google document types
- * Add new upstream MIME types
-
-1.20.0 / 2015-11-10
-===================
-
- * Add `text/x-suse-ymp`
- * Add new upstream MIME types
-
-1.19.0 / 2015-09-17
-===================
-
- * Add `application/vnd.apple.pkpass`
- * Add new upstream MIME types
-
-1.18.0 / 2015-09-03
-===================
-
- * Add new upstream MIME types
-
-1.17.0 / 2015-08-13
-===================
-
- * Add `application/x-msdos-program`
- * Add `audio/g711-0`
- * Add `image/vnd.mozilla.apng`
- * Add extension `.exe` to `application/x-msdos-program`
-
-1.16.0 / 2015-07-29
-===================
-
- * Add `application/vnd.uri-map`
-
-1.15.0 / 2015-07-13
-===================
-
- * Add `application/x-httpd-php`
-
-1.14.0 / 2015-06-25
-===================
-
- * Add `application/scim+json`
- * Add `application/vnd.3gpp.ussd+xml`
- * Add `application/vnd.biopax.rdf+xml`
- * Add `text/x-processing`
-
-1.13.0 / 2015-06-07
-===================
-
- * Add nginx as a source
- * Add `application/x-cocoa`
- * Add `application/x-java-archive-diff`
- * Add `application/x-makeself`
- * Add `application/x-perl`
- * Add `application/x-pilot`
- * Add `application/x-redhat-package-manager`
- * Add `application/x-sea`
- * Add `audio/x-m4a`
- * Add `audio/x-realaudio`
- * Add `image/x-jng`
- * Add `text/mathml`
-
-1.12.0 / 2015-06-05
-===================
-
- * Add `application/bdoc`
- * Add `application/vnd.hyperdrive+json`
- * Add `application/x-bdoc`
- * Add extension `.rtf` to `text/rtf`
-
-1.11.0 / 2015-05-31
-===================
-
- * Add `audio/wav`
- * Add `audio/wave`
- * Add extension `.litcoffee` to `text/coffeescript`
- * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data`
- * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install`
-
-1.10.0 / 2015-05-19
-===================
-
- * Add `application/vnd.balsamiq.bmpr`
- * Add `application/vnd.microsoft.portable-executable`
- * Add `application/x-ns-proxy-autoconfig`
-
-1.9.1 / 2015-04-19
-==================
-
- * Remove `.json` extension from `application/manifest+json`
- - This is causing bugs downstream
-
-1.9.0 / 2015-04-19
-==================
-
- * Add `application/manifest+json`
- * Add `application/vnd.micro+json`
- * Add `image/vnd.zbrush.pcx`
- * Add `image/x-ms-bmp`
-
-1.8.0 / 2015-03-13
-==================
-
- * Add `application/vnd.citationstyles.style+xml`
- * Add `application/vnd.fastcopy-disk-image`
- * Add `application/vnd.gov.sk.xmldatacontainer+xml`
- * Add extension `.jsonld` to `application/ld+json`
-
-1.7.0 / 2015-02-08
-==================
-
- * Add `application/vnd.gerber`
- * Add `application/vnd.msa-disk-image`
-
-1.6.1 / 2015-02-05
-==================
-
- * Community extensions ownership transferred from `node-mime`
-
-1.6.0 / 2015-01-29
-==================
-
- * Add `application/jose`
- * Add `application/jose+json`
- * Add `application/json-seq`
- * Add `application/jwk+json`
- * Add `application/jwk-set+json`
- * Add `application/jwt`
- * Add `application/rdap+json`
- * Add `application/vnd.gov.sk.e-form+xml`
- * Add `application/vnd.ims.imsccv1p3`
-
-1.5.0 / 2014-12-30
-==================
-
- * Add `application/vnd.oracle.resource+json`
- * Fix various invalid MIME type entries
- - `application/mbox+xml`
- - `application/oscp-response`
- - `application/vwg-multiplexed`
- - `audio/g721`
-
-1.4.0 / 2014-12-21
-==================
-
- * Add `application/vnd.ims.imsccv1p2`
- * Fix various invalid MIME type entries
- - `application/vnd-acucobol`
- - `application/vnd-curl`
- - `application/vnd-dart`
- - `application/vnd-dxr`
- - `application/vnd-fdf`
- - `application/vnd-mif`
- - `application/vnd-sema`
- - `application/vnd-wap-wmlc`
- - `application/vnd.adobe.flash-movie`
- - `application/vnd.dece-zip`
- - `application/vnd.dvb_service`
- - `application/vnd.micrografx-igx`
- - `application/vnd.sealed-doc`
- - `application/vnd.sealed-eml`
- - `application/vnd.sealed-mht`
- - `application/vnd.sealed-ppt`
- - `application/vnd.sealed-tiff`
- - `application/vnd.sealed-xls`
- - `application/vnd.sealedmedia.softseal-html`
- - `application/vnd.sealedmedia.softseal-pdf`
- - `application/vnd.wap-slc`
- - `application/vnd.wap-wbxml`
- - `audio/vnd.sealedmedia.softseal-mpeg`
- - `image/vnd-djvu`
- - `image/vnd-svf`
- - `image/vnd-wap-wbmp`
- - `image/vnd.sealed-png`
- - `image/vnd.sealedmedia.softseal-gif`
- - `image/vnd.sealedmedia.softseal-jpg`
- - `model/vnd-dwf`
- - `model/vnd.parasolid.transmit-binary`
- - `model/vnd.parasolid.transmit-text`
- - `text/vnd-a`
- - `text/vnd-curl`
- - `text/vnd.wap-wml`
- * Remove example template MIME types
- - `application/example`
- - `audio/example`
- - `image/example`
- - `message/example`
- - `model/example`
- - `multipart/example`
- - `text/example`
- - `video/example`
-
-1.3.1 / 2014-12-16
-==================
-
- * Fix missing extensions
- - `application/json5`
- - `text/hjson`
-
-1.3.0 / 2014-12-07
-==================
-
- * Add `application/a2l`
- * Add `application/aml`
- * Add `application/atfx`
- * Add `application/atxml`
- * Add `application/cdfx+xml`
- * Add `application/dii`
- * Add `application/json5`
- * Add `application/lxf`
- * Add `application/mf4`
- * Add `application/vnd.apache.thrift.compact`
- * Add `application/vnd.apache.thrift.json`
- * Add `application/vnd.coffeescript`
- * Add `application/vnd.enphase.envoy`
- * Add `application/vnd.ims.imsccv1p1`
- * Add `text/csv-schema`
- * Add `text/hjson`
- * Add `text/markdown`
- * Add `text/yaml`
-
-1.2.0 / 2014-11-09
-==================
-
- * Add `application/cea`
- * Add `application/dit`
- * Add `application/vnd.gov.sk.e-form+zip`
- * Add `application/vnd.tmd.mediaflex.api+xml`
- * Type `application/epub+zip` is now IANA-registered
-
-1.1.2 / 2014-10-23
-==================
-
- * Rebuild database for `application/x-www-form-urlencoded` change
-
-1.1.1 / 2014-10-20
-==================
-
- * Mark `application/x-www-form-urlencoded` as compressible.
-
-1.1.0 / 2014-09-28
-==================
-
- * Add `application/font-woff2`
-
-1.0.3 / 2014-09-25
-==================
-
- * Fix engine requirement in package
-
-1.0.2 / 2014-09-25
-==================
-
- * Add `application/coap-group+json`
- * Add `application/dcd`
- * Add `application/vnd.apache.thrift.binary`
- * Add `image/vnd.tencent.tap`
- * Mark all JSON-derived types as compressible
- * Update `text/vtt` data
-
-1.0.1 / 2014-08-30
-==================
-
- * Fix extension ordering
-
-1.0.0 / 2014-08-30
-==================
-
- * Add `application/atf`
- * Add `application/merge-patch+json`
- * Add `multipart/x-mixed-replace`
- * Add `source: 'apache'` metadata
- * Add `source: 'iana'` metadata
- * Remove badly-assumed charset data
diff --git a/node_modules/mime-db/LICENSE b/node_modules/mime-db/LICENSE
deleted file mode 100644
index a7ae8ee..0000000
--- a/node_modules/mime-db/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-
-The MIT License (MIT)
-
-Copyright (c) 2014 Jonathan Ong me@jongleberry.com
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/mime-db/README.md b/node_modules/mime-db/README.md
deleted file mode 100644
index d6a6f80..0000000
--- a/node_modules/mime-db/README.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# mime-db
-
-[![NPM Version][npm-version-image]][npm-url]
-[![NPM Downloads][npm-downloads-image]][npm-url]
-[![Node.js Version][node-image]][node-url]
-[![Build Status][travis-image]][travis-url]
-[![Coverage Status][coveralls-image]][coveralls-url]
-
-This is a database of all mime types.
-It consists of a single, public JSON file and does not include any logic,
-allowing it to remain as un-opinionated as possible with an API.
-It aggregates data from the following sources:
-
-- http://www.iana.org/assignments/media-types/media-types.xhtml
-- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
-- http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
-
-## Installation
-
-```bash
-npm install mime-db
-```
-
-### Database Download
-
-If you're crazy enough to use this in the browser, you can just grab the
-JSON file using [jsDelivr](https://www.jsdelivr.com/). It is recommended to
-replace `master` with [a release tag](https://github.com/jshttp/mime-db/tags)
-as the JSON format may change in the future.
-
-```
-https://cdn.jsdelivr.net/gh/jshttp/mime-db@master/db.json
-```
-
-## Usage
-
-<!-- eslint-disable no-unused-vars -->
-
-```js
-var db = require('mime-db')
-
-// grab data on .js files
-var data = db['application/javascript']
-```
-
-## Data Structure
-
-The JSON file is a map lookup for lowercased mime types.
-Each mime type has the following properties:
-
-- `.source` - where the mime type is defined.
- If not set, it's probably a custom media type.
- - `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
- - `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml)
- - `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types)
-- `.extensions[]` - known extensions associated with this mime type.
-- `.compressible` - whether a file of this type can be gzipped.
-- `.charset` - the default charset associated with this type, if any.
-
-If unknown, every property could be `undefined`.
-
-## Contributing
-
-To edit the database, only make PRs against `src/custom.json` or
-`src/custom-suffix.json`.
-
-The `src/custom.json` file is a JSON object with the MIME type as the keys
-and the values being an object with the following keys:
-
-- `compressible` - leave out if you don't know, otherwise `true`/`false` to
- indicate whether the data represented by the type is typically compressible.
-- `extensions` - include an array of file extensions that are associated with
- the type.
-- `notes` - human-readable notes about the type, typically what the type is.
-- `sources` - include an array of URLs of where the MIME type and the associated
- extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source);
- links to type aggregating sites and Wikipedia are _not acceptable_.
-
-To update the build, run `npm run build`.
-
-### Adding Custom Media Types
-
-The best way to get new media types included in this library is to register
-them with the IANA. The community registration procedure is outlined in
-[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types
-registered with the IANA are automatically pulled into this library.
-
-If that is not possible / feasible, they can be added directly here as a
-"custom" type. To do this, it is required to have a primary source that
-definitively lists the media type. If an extension is going to be listed as
-associateed with this media type, the source must definitively link the
-media type and extension as well.
-
-[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master
-[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master
-[node-image]: https://badgen.net/npm/node/mime-db
-[node-url]: https://nodejs.org/en/download
-[npm-downloads-image]: https://badgen.net/npm/dm/mime-db
-[npm-url]: https://npmjs.org/package/mime-db
-[npm-version-image]: https://badgen.net/npm/v/mime-db
-[travis-image]: https://badgen.net/travis/jshttp/mime-db/master
-[travis-url]: https://travis-ci.org/jshttp/mime-db
diff --git a/node_modules/mime-db/db.json b/node_modules/mime-db/db.json
deleted file mode 100644
index e69f352..0000000
--- a/node_modules/mime-db/db.json
+++ /dev/null
@@ -1,8176 +0,0 @@
-{
- "application/1d-interleaved-parityfec": {
- "source": "iana"
- },
- "application/3gpdash-qoe-report+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/3gpp-ims+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/a2l": {
- "source": "iana"
- },
- "application/activemessage": {
- "source": "iana"
- },
- "application/activity+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-costmap+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-costmapfilter+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-directory+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-endpointcost+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-endpointcostparams+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-endpointprop+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-endpointpropparams+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-error+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-networkmap+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-networkmapfilter+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-updatestreamcontrol+json": {
- "source": "iana",
- "compressible": true
- },
- "application/alto-updatestreamparams+json": {
- "source": "iana",
- "compressible": true
- },
- "application/aml": {
- "source": "iana"
- },
- "application/andrew-inset": {
- "source": "iana",
- "extensions": ["ez"]
- },
- "application/applefile": {
- "source": "iana"
- },
- "application/applixware": {
- "source": "apache",
- "extensions": ["aw"]
- },
- "application/atf": {
- "source": "iana"
- },
- "application/atfx": {
- "source": "iana"
- },
- "application/atom+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["atom"]
- },
- "application/atomcat+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["atomcat"]
- },
- "application/atomdeleted+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["atomdeleted"]
- },
- "application/atomicmail": {
- "source": "iana"
- },
- "application/atomsvc+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["atomsvc"]
- },
- "application/atsc-dwd+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["dwd"]
- },
- "application/atsc-dynamic-event-message": {
- "source": "iana"
- },
- "application/atsc-held+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["held"]
- },
- "application/atsc-rdt+json": {
- "source": "iana",
- "compressible": true
- },
- "application/atsc-rsat+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rsat"]
- },
- "application/atxml": {
- "source": "iana"
- },
- "application/auth-policy+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/bacnet-xdd+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/batch-smtp": {
- "source": "iana"
- },
- "application/bdoc": {
- "compressible": false,
- "extensions": ["bdoc"]
- },
- "application/beep+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/calendar+json": {
- "source": "iana",
- "compressible": true
- },
- "application/calendar+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xcs"]
- },
- "application/call-completion": {
- "source": "iana"
- },
- "application/cals-1840": {
- "source": "iana"
- },
- "application/cap+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/cbor": {
- "source": "iana"
- },
- "application/cbor-seq": {
- "source": "iana"
- },
- "application/cccex": {
- "source": "iana"
- },
- "application/ccmp+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/ccxml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ccxml"]
- },
- "application/cdfx+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["cdfx"]
- },
- "application/cdmi-capability": {
- "source": "iana",
- "extensions": ["cdmia"]
- },
- "application/cdmi-container": {
- "source": "iana",
- "extensions": ["cdmic"]
- },
- "application/cdmi-domain": {
- "source": "iana",
- "extensions": ["cdmid"]
- },
- "application/cdmi-object": {
- "source": "iana",
- "extensions": ["cdmio"]
- },
- "application/cdmi-queue": {
- "source": "iana",
- "extensions": ["cdmiq"]
- },
- "application/cdni": {
- "source": "iana"
- },
- "application/cea": {
- "source": "iana"
- },
- "application/cea-2018+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/cellml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/cfw": {
- "source": "iana"
- },
- "application/clue+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/clue_info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/cms": {
- "source": "iana"
- },
- "application/cnrp+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/coap-group+json": {
- "source": "iana",
- "compressible": true
- },
- "application/coap-payload": {
- "source": "iana"
- },
- "application/commonground": {
- "source": "iana"
- },
- "application/conference-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/cose": {
- "source": "iana"
- },
- "application/cose-key": {
- "source": "iana"
- },
- "application/cose-key-set": {
- "source": "iana"
- },
- "application/cpl+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/csrattrs": {
- "source": "iana"
- },
- "application/csta+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/cstadata+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/csvm+json": {
- "source": "iana",
- "compressible": true
- },
- "application/cu-seeme": {
- "source": "apache",
- "extensions": ["cu"]
- },
- "application/cwt": {
- "source": "iana"
- },
- "application/cybercash": {
- "source": "iana"
- },
- "application/dart": {
- "compressible": true
- },
- "application/dash+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mpd"]
- },
- "application/dashdelta": {
- "source": "iana"
- },
- "application/davmount+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["davmount"]
- },
- "application/dca-rft": {
- "source": "iana"
- },
- "application/dcd": {
- "source": "iana"
- },
- "application/dec-dx": {
- "source": "iana"
- },
- "application/dialog-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/dicom": {
- "source": "iana"
- },
- "application/dicom+json": {
- "source": "iana",
- "compressible": true
- },
- "application/dicom+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/dii": {
- "source": "iana"
- },
- "application/dit": {
- "source": "iana"
- },
- "application/dns": {
- "source": "iana"
- },
- "application/dns+json": {
- "source": "iana",
- "compressible": true
- },
- "application/dns-message": {
- "source": "iana"
- },
- "application/docbook+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["dbk"]
- },
- "application/dots+cbor": {
- "source": "iana"
- },
- "application/dskpp+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/dssc+der": {
- "source": "iana",
- "extensions": ["dssc"]
- },
- "application/dssc+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xdssc"]
- },
- "application/dvcs": {
- "source": "iana"
- },
- "application/ecmascript": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ecma","es"]
- },
- "application/edi-consent": {
- "source": "iana"
- },
- "application/edi-x12": {
- "source": "iana",
- "compressible": false
- },
- "application/edifact": {
- "source": "iana",
- "compressible": false
- },
- "application/efi": {
- "source": "iana"
- },
- "application/emergencycalldata.comment+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/emergencycalldata.control+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/emergencycalldata.deviceinfo+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/emergencycalldata.ecall.msd": {
- "source": "iana"
- },
- "application/emergencycalldata.providerinfo+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/emergencycalldata.serviceinfo+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/emergencycalldata.subscriberinfo+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/emergencycalldata.veds+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/emma+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["emma"]
- },
- "application/emotionml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["emotionml"]
- },
- "application/encaprtp": {
- "source": "iana"
- },
- "application/epp+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/epub+zip": {
- "source": "iana",
- "compressible": false,
- "extensions": ["epub"]
- },
- "application/eshop": {
- "source": "iana"
- },
- "application/exi": {
- "source": "iana",
- "extensions": ["exi"]
- },
- "application/expect-ct-report+json": {
- "source": "iana",
- "compressible": true
- },
- "application/fastinfoset": {
- "source": "iana"
- },
- "application/fastsoap": {
- "source": "iana"
- },
- "application/fdt+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["fdt"]
- },
- "application/fhir+json": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/fhir+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/fido.trusted-apps+json": {
- "compressible": true
- },
- "application/fits": {
- "source": "iana"
- },
- "application/flexfec": {
- "source": "iana"
- },
- "application/font-sfnt": {
- "source": "iana"
- },
- "application/font-tdpfr": {
- "source": "iana",
- "extensions": ["pfr"]
- },
- "application/font-woff": {
- "source": "iana",
- "compressible": false
- },
- "application/framework-attributes+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/geo+json": {
- "source": "iana",
- "compressible": true,
- "extensions": ["geojson"]
- },
- "application/geo+json-seq": {
- "source": "iana"
- },
- "application/geopackage+sqlite3": {
- "source": "iana"
- },
- "application/geoxacml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/gltf-buffer": {
- "source": "iana"
- },
- "application/gml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["gml"]
- },
- "application/gpx+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["gpx"]
- },
- "application/gxf": {
- "source": "apache",
- "extensions": ["gxf"]
- },
- "application/gzip": {
- "source": "iana",
- "compressible": false,
- "extensions": ["gz"]
- },
- "application/h224": {
- "source": "iana"
- },
- "application/held+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/hjson": {
- "extensions": ["hjson"]
- },
- "application/http": {
- "source": "iana"
- },
- "application/hyperstudio": {
- "source": "iana",
- "extensions": ["stk"]
- },
- "application/ibe-key-request+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/ibe-pkg-reply+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/ibe-pp-data": {
- "source": "iana"
- },
- "application/iges": {
- "source": "iana"
- },
- "application/im-iscomposing+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/index": {
- "source": "iana"
- },
- "application/index.cmd": {
- "source": "iana"
- },
- "application/index.obj": {
- "source": "iana"
- },
- "application/index.response": {
- "source": "iana"
- },
- "application/index.vnd": {
- "source": "iana"
- },
- "application/inkml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ink","inkml"]
- },
- "application/iotp": {
- "source": "iana"
- },
- "application/ipfix": {
- "source": "iana",
- "extensions": ["ipfix"]
- },
- "application/ipp": {
- "source": "iana"
- },
- "application/isup": {
- "source": "iana"
- },
- "application/its+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["its"]
- },
- "application/java-archive": {
- "source": "apache",
- "compressible": false,
- "extensions": ["jar","war","ear"]
- },
- "application/java-serialized-object": {
- "source": "apache",
- "compressible": false,
- "extensions": ["ser"]
- },
- "application/java-vm": {
- "source": "apache",
- "compressible": false,
- "extensions": ["class"]
- },
- "application/javascript": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["js","mjs"]
- },
- "application/jf2feed+json": {
- "source": "iana",
- "compressible": true
- },
- "application/jose": {
- "source": "iana"
- },
- "application/jose+json": {
- "source": "iana",
- "compressible": true
- },
- "application/jrd+json": {
- "source": "iana",
- "compressible": true
- },
- "application/json": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["json","map"]
- },
- "application/json-patch+json": {
- "source": "iana",
- "compressible": true
- },
- "application/json-seq": {
- "source": "iana"
- },
- "application/json5": {
- "extensions": ["json5"]
- },
- "application/jsonml+json": {
- "source": "apache",
- "compressible": true,
- "extensions": ["jsonml"]
- },
- "application/jwk+json": {
- "source": "iana",
- "compressible": true
- },
- "application/jwk-set+json": {
- "source": "iana",
- "compressible": true
- },
- "application/jwt": {
- "source": "iana"
- },
- "application/kpml-request+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/kpml-response+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/ld+json": {
- "source": "iana",
- "compressible": true,
- "extensions": ["jsonld"]
- },
- "application/lgr+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["lgr"]
- },
- "application/link-format": {
- "source": "iana"
- },
- "application/load-control+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/lost+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["lostxml"]
- },
- "application/lostsync+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/lpf+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/lxf": {
- "source": "iana"
- },
- "application/mac-binhex40": {
- "source": "iana",
- "extensions": ["hqx"]
- },
- "application/mac-compactpro": {
- "source": "apache",
- "extensions": ["cpt"]
- },
- "application/macwriteii": {
- "source": "iana"
- },
- "application/mads+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mads"]
- },
- "application/manifest+json": {
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["webmanifest"]
- },
- "application/marc": {
- "source": "iana",
- "extensions": ["mrc"]
- },
- "application/marcxml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mrcx"]
- },
- "application/mathematica": {
- "source": "iana",
- "extensions": ["ma","nb","mb"]
- },
- "application/mathml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mathml"]
- },
- "application/mathml-content+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mathml-presentation+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-associated-procedure-description+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-deregister+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-envelope+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-msk+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-msk-response+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-protection-description+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-reception-report+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-register+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-register-response+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-schedule+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbms-user-service-description+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mbox": {
- "source": "iana",
- "extensions": ["mbox"]
- },
- "application/media-policy-dataset+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/media_control+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/mediaservercontrol+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mscml"]
- },
- "application/merge-patch+json": {
- "source": "iana",
- "compressible": true
- },
- "application/metalink+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["metalink"]
- },
- "application/metalink4+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["meta4"]
- },
- "application/mets+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mets"]
- },
- "application/mf4": {
- "source": "iana"
- },
- "application/mikey": {
- "source": "iana"
- },
- "application/mipc": {
- "source": "iana"
- },
- "application/mmt-aei+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["maei"]
- },
- "application/mmt-usd+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["musd"]
- },
- "application/mods+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mods"]
- },
- "application/moss-keys": {
- "source": "iana"
- },
- "application/moss-signature": {
- "source": "iana"
- },
- "application/mosskey-data": {
- "source": "iana"
- },
- "application/mosskey-request": {
- "source": "iana"
- },
- "application/mp21": {
- "source": "iana",
- "extensions": ["m21","mp21"]
- },
- "application/mp4": {
- "source": "iana",
- "extensions": ["mp4s","m4p"]
- },
- "application/mpeg4-generic": {
- "source": "iana"
- },
- "application/mpeg4-iod": {
- "source": "iana"
- },
- "application/mpeg4-iod-xmt": {
- "source": "iana"
- },
- "application/mrb-consumer+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xdf"]
- },
- "application/mrb-publish+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xdf"]
- },
- "application/msc-ivr+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/msc-mixer+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/msword": {
- "source": "iana",
- "compressible": false,
- "extensions": ["doc","dot"]
- },
- "application/mud+json": {
- "source": "iana",
- "compressible": true
- },
- "application/multipart-core": {
- "source": "iana"
- },
- "application/mxf": {
- "source": "iana",
- "extensions": ["mxf"]
- },
- "application/n-quads": {
- "source": "iana",
- "extensions": ["nq"]
- },
- "application/n-triples": {
- "source": "iana",
- "extensions": ["nt"]
- },
- "application/nasdata": {
- "source": "iana"
- },
- "application/news-checkgroups": {
- "source": "iana",
- "charset": "US-ASCII"
- },
- "application/news-groupinfo": {
- "source": "iana",
- "charset": "US-ASCII"
- },
- "application/news-transmission": {
- "source": "iana"
- },
- "application/nlsml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/node": {
- "source": "iana",
- "extensions": ["cjs"]
- },
- "application/nss": {
- "source": "iana"
- },
- "application/ocsp-request": {
- "source": "iana"
- },
- "application/ocsp-response": {
- "source": "iana"
- },
- "application/octet-stream": {
- "source": "iana",
- "compressible": false,
- "extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]
- },
- "application/oda": {
- "source": "iana",
- "extensions": ["oda"]
- },
- "application/odm+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/odx": {
- "source": "iana"
- },
- "application/oebps-package+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["opf"]
- },
- "application/ogg": {
- "source": "iana",
- "compressible": false,
- "extensions": ["ogx"]
- },
- "application/omdoc+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["omdoc"]
- },
- "application/onenote": {
- "source": "apache",
- "extensions": ["onetoc","onetoc2","onetmp","onepkg"]
- },
- "application/oscore": {
- "source": "iana"
- },
- "application/oxps": {
- "source": "iana",
- "extensions": ["oxps"]
- },
- "application/p2p-overlay+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["relo"]
- },
- "application/parityfec": {
- "source": "iana"
- },
- "application/passport": {
- "source": "iana"
- },
- "application/patch-ops-error+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xer"]
- },
- "application/pdf": {
- "source": "iana",
- "compressible": false,
- "extensions": ["pdf"]
- },
- "application/pdx": {
- "source": "iana"
- },
- "application/pem-certificate-chain": {
- "source": "iana"
- },
- "application/pgp-encrypted": {
- "source": "iana",
- "compressible": false,
- "extensions": ["pgp"]
- },
- "application/pgp-keys": {
- "source": "iana"
- },
- "application/pgp-signature": {
- "source": "iana",
- "extensions": ["asc","sig"]
- },
- "application/pics-rules": {
- "source": "apache",
- "extensions": ["prf"]
- },
- "application/pidf+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/pidf-diff+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/pkcs10": {
- "source": "iana",
- "extensions": ["p10"]
- },
- "application/pkcs12": {
- "source": "iana"
- },
- "application/pkcs7-mime": {
- "source": "iana",
- "extensions": ["p7m","p7c"]
- },
- "application/pkcs7-signature": {
- "source": "iana",
- "extensions": ["p7s"]
- },
- "application/pkcs8": {
- "source": "iana",
- "extensions": ["p8"]
- },
- "application/pkcs8-encrypted": {
- "source": "iana"
- },
- "application/pkix-attr-cert": {
- "source": "iana",
- "extensions": ["ac"]
- },
- "application/pkix-cert": {
- "source": "iana",
- "extensions": ["cer"]
- },
- "application/pkix-crl": {
- "source": "iana",
- "extensions": ["crl"]
- },
- "application/pkix-pkipath": {
- "source": "iana",
- "extensions": ["pkipath"]
- },
- "application/pkixcmp": {
- "source": "iana",
- "extensions": ["pki"]
- },
- "application/pls+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["pls"]
- },
- "application/poc-settings+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/postscript": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ai","eps","ps"]
- },
- "application/ppsp-tracker+json": {
- "source": "iana",
- "compressible": true
- },
- "application/problem+json": {
- "source": "iana",
- "compressible": true
- },
- "application/problem+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/provenance+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["provx"]
- },
- "application/prs.alvestrand.titrax-sheet": {
- "source": "iana"
- },
- "application/prs.cww": {
- "source": "iana",
- "extensions": ["cww"]
- },
- "application/prs.hpub+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/prs.nprend": {
- "source": "iana"
- },
- "application/prs.plucker": {
- "source": "iana"
- },
- "application/prs.rdf-xml-crypt": {
- "source": "iana"
- },
- "application/prs.xsf+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/pskc+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["pskcxml"]
- },
- "application/pvd+json": {
- "source": "iana",
- "compressible": true
- },
- "application/qsig": {
- "source": "iana"
- },
- "application/raml+yaml": {
- "compressible": true,
- "extensions": ["raml"]
- },
- "application/raptorfec": {
- "source": "iana"
- },
- "application/rdap+json": {
- "source": "iana",
- "compressible": true
- },
- "application/rdf+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rdf","owl"]
- },
- "application/reginfo+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rif"]
- },
- "application/relax-ng-compact-syntax": {
- "source": "iana",
- "extensions": ["rnc"]
- },
- "application/remote-printing": {
- "source": "iana"
- },
- "application/reputon+json": {
- "source": "iana",
- "compressible": true
- },
- "application/resource-lists+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rl"]
- },
- "application/resource-lists-diff+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rld"]
- },
- "application/rfc+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/riscos": {
- "source": "iana"
- },
- "application/rlmi+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/rls-services+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rs"]
- },
- "application/route-apd+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rapd"]
- },
- "application/route-s-tsid+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["sls"]
- },
- "application/route-usd+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rusd"]
- },
- "application/rpki-ghostbusters": {
- "source": "iana",
- "extensions": ["gbr"]
- },
- "application/rpki-manifest": {
- "source": "iana",
- "extensions": ["mft"]
- },
- "application/rpki-publication": {
- "source": "iana"
- },
- "application/rpki-roa": {
- "source": "iana",
- "extensions": ["roa"]
- },
- "application/rpki-updown": {
- "source": "iana"
- },
- "application/rsd+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["rsd"]
- },
- "application/rss+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["rss"]
- },
- "application/rtf": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rtf"]
- },
- "application/rtploopback": {
- "source": "iana"
- },
- "application/rtx": {
- "source": "iana"
- },
- "application/samlassertion+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/samlmetadata+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/sbe": {
- "source": "iana"
- },
- "application/sbml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["sbml"]
- },
- "application/scaip+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/scim+json": {
- "source": "iana",
- "compressible": true
- },
- "application/scvp-cv-request": {
- "source": "iana",
- "extensions": ["scq"]
- },
- "application/scvp-cv-response": {
- "source": "iana",
- "extensions": ["scs"]
- },
- "application/scvp-vp-request": {
- "source": "iana",
- "extensions": ["spq"]
- },
- "application/scvp-vp-response": {
- "source": "iana",
- "extensions": ["spp"]
- },
- "application/sdp": {
- "source": "iana",
- "extensions": ["sdp"]
- },
- "application/secevent+jwt": {
- "source": "iana"
- },
- "application/senml+cbor": {
- "source": "iana"
- },
- "application/senml+json": {
- "source": "iana",
- "compressible": true
- },
- "application/senml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["senmlx"]
- },
- "application/senml-etch+cbor": {
- "source": "iana"
- },
- "application/senml-etch+json": {
- "source": "iana",
- "compressible": true
- },
- "application/senml-exi": {
- "source": "iana"
- },
- "application/sensml+cbor": {
- "source": "iana"
- },
- "application/sensml+json": {
- "source": "iana",
- "compressible": true
- },
- "application/sensml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["sensmlx"]
- },
- "application/sensml-exi": {
- "source": "iana"
- },
- "application/sep+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/sep-exi": {
- "source": "iana"
- },
- "application/session-info": {
- "source": "iana"
- },
- "application/set-payment": {
- "source": "iana"
- },
- "application/set-payment-initiation": {
- "source": "iana",
- "extensions": ["setpay"]
- },
- "application/set-registration": {
- "source": "iana"
- },
- "application/set-registration-initiation": {
- "source": "iana",
- "extensions": ["setreg"]
- },
- "application/sgml": {
- "source": "iana"
- },
- "application/sgml-open-catalog": {
- "source": "iana"
- },
- "application/shf+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["shf"]
- },
- "application/sieve": {
- "source": "iana",
- "extensions": ["siv","sieve"]
- },
- "application/simple-filter+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/simple-message-summary": {
- "source": "iana"
- },
- "application/simplesymbolcontainer": {
- "source": "iana"
- },
- "application/sipc": {
- "source": "iana"
- },
- "application/slate": {
- "source": "iana"
- },
- "application/smil": {
- "source": "iana"
- },
- "application/smil+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["smi","smil"]
- },
- "application/smpte336m": {
- "source": "iana"
- },
- "application/soap+fastinfoset": {
- "source": "iana"
- },
- "application/soap+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/sparql-query": {
- "source": "iana",
- "extensions": ["rq"]
- },
- "application/sparql-results+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["srx"]
- },
- "application/spirits-event+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/sql": {
- "source": "iana"
- },
- "application/srgs": {
- "source": "iana",
- "extensions": ["gram"]
- },
- "application/srgs+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["grxml"]
- },
- "application/sru+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["sru"]
- },
- "application/ssdl+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["ssdl"]
- },
- "application/ssml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ssml"]
- },
- "application/stix+json": {
- "source": "iana",
- "compressible": true
- },
- "application/swid+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["swidtag"]
- },
- "application/tamp-apex-update": {
- "source": "iana"
- },
- "application/tamp-apex-update-confirm": {
- "source": "iana"
- },
- "application/tamp-community-update": {
- "source": "iana"
- },
- "application/tamp-community-update-confirm": {
- "source": "iana"
- },
- "application/tamp-error": {
- "source": "iana"
- },
- "application/tamp-sequence-adjust": {
- "source": "iana"
- },
- "application/tamp-sequence-adjust-confirm": {
- "source": "iana"
- },
- "application/tamp-status-query": {
- "source": "iana"
- },
- "application/tamp-status-response": {
- "source": "iana"
- },
- "application/tamp-update": {
- "source": "iana"
- },
- "application/tamp-update-confirm": {
- "source": "iana"
- },
- "application/tar": {
- "compressible": true
- },
- "application/taxii+json": {
- "source": "iana",
- "compressible": true
- },
- "application/td+json": {
- "source": "iana",
- "compressible": true
- },
- "application/tei+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["tei","teicorpus"]
- },
- "application/tetra_isi": {
- "source": "iana"
- },
- "application/thraud+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["tfi"]
- },
- "application/timestamp-query": {
- "source": "iana"
- },
- "application/timestamp-reply": {
- "source": "iana"
- },
- "application/timestamped-data": {
- "source": "iana",
- "extensions": ["tsd"]
- },
- "application/tlsrpt+gzip": {
- "source": "iana"
- },
- "application/tlsrpt+json": {
- "source": "iana",
- "compressible": true
- },
- "application/tnauthlist": {
- "source": "iana"
- },
- "application/toml": {
- "compressible": true,
- "extensions": ["toml"]
- },
- "application/trickle-ice-sdpfrag": {
- "source": "iana"
- },
- "application/trig": {
- "source": "iana"
- },
- "application/ttml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ttml"]
- },
- "application/tve-trigger": {
- "source": "iana"
- },
- "application/tzif": {
- "source": "iana"
- },
- "application/tzif-leap": {
- "source": "iana"
- },
- "application/ulpfec": {
- "source": "iana"
- },
- "application/urc-grpsheet+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/urc-ressheet+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rsheet"]
- },
- "application/urc-targetdesc+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/urc-uisocketdesc+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vcard+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vcard+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vemmi": {
- "source": "iana"
- },
- "application/vividence.scriptfile": {
- "source": "apache"
- },
- "application/vnd.1000minds.decision-model+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["1km"]
- },
- "application/vnd.3gpp-prose+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp-prose-pc3ch+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp-v2x-local-service-information": {
- "source": "iana"
- },
- "application/vnd.3gpp.access-transfer-events+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.bsf+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.gmop+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mc-signalling-ear": {
- "source": "iana"
- },
- "application/vnd.3gpp.mcdata-affiliation-command+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcdata-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcdata-payload": {
- "source": "iana"
- },
- "application/vnd.3gpp.mcdata-service-config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcdata-signalling": {
- "source": "iana"
- },
- "application/vnd.3gpp.mcdata-ue-config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcdata-user-profile+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-affiliation-command+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-floor-request+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-location-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-mbms-usage-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-service-config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-signed+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-ue-config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-ue-init-config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcptt-user-profile+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-affiliation-command+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-affiliation-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-location-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-mbms-usage-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-service-config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-transmission-request+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-ue-config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mcvideo-user-profile+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.mid-call+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.pic-bw-large": {
- "source": "iana",
- "extensions": ["plb"]
- },
- "application/vnd.3gpp.pic-bw-small": {
- "source": "iana",
- "extensions": ["psb"]
- },
- "application/vnd.3gpp.pic-bw-var": {
- "source": "iana",
- "extensions": ["pvb"]
- },
- "application/vnd.3gpp.sms": {
- "source": "iana"
- },
- "application/vnd.3gpp.sms+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.srvcc-ext+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.srvcc-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.state-and-event-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp.ussd+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp2.bcmcsinfo+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.3gpp2.sms": {
- "source": "iana"
- },
- "application/vnd.3gpp2.tcap": {
- "source": "iana",
- "extensions": ["tcap"]
- },
- "application/vnd.3lightssoftware.imagescal": {
- "source": "iana"
- },
- "application/vnd.3m.post-it-notes": {
- "source": "iana",
- "extensions": ["pwn"]
- },
- "application/vnd.accpac.simply.aso": {
- "source": "iana",
- "extensions": ["aso"]
- },
- "application/vnd.accpac.simply.imp": {
- "source": "iana",
- "extensions": ["imp"]
- },
- "application/vnd.acucobol": {
- "source": "iana",
- "extensions": ["acu"]
- },
- "application/vnd.acucorp": {
- "source": "iana",
- "extensions": ["atc","acutc"]
- },
- "application/vnd.adobe.air-application-installer-package+zip": {
- "source": "apache",
- "compressible": false,
- "extensions": ["air"]
- },
- "application/vnd.adobe.flash.movie": {
- "source": "iana"
- },
- "application/vnd.adobe.formscentral.fcdt": {
- "source": "iana",
- "extensions": ["fcdt"]
- },
- "application/vnd.adobe.fxp": {
- "source": "iana",
- "extensions": ["fxp","fxpl"]
- },
- "application/vnd.adobe.partial-upload": {
- "source": "iana"
- },
- "application/vnd.adobe.xdp+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xdp"]
- },
- "application/vnd.adobe.xfdf": {
- "source": "iana",
- "extensions": ["xfdf"]
- },
- "application/vnd.aether.imp": {
- "source": "iana"
- },
- "application/vnd.afpc.afplinedata": {
- "source": "iana"
- },
- "application/vnd.afpc.afplinedata-pagedef": {
- "source": "iana"
- },
- "application/vnd.afpc.foca-charset": {
- "source": "iana"
- },
- "application/vnd.afpc.foca-codedfont": {
- "source": "iana"
- },
- "application/vnd.afpc.foca-codepage": {
- "source": "iana"
- },
- "application/vnd.afpc.modca": {
- "source": "iana"
- },
- "application/vnd.afpc.modca-formdef": {
- "source": "iana"
- },
- "application/vnd.afpc.modca-mediummap": {
- "source": "iana"
- },
- "application/vnd.afpc.modca-objectcontainer": {
- "source": "iana"
- },
- "application/vnd.afpc.modca-overlay": {
- "source": "iana"
- },
- "application/vnd.afpc.modca-pagesegment": {
- "source": "iana"
- },
- "application/vnd.ah-barcode": {
- "source": "iana"
- },
- "application/vnd.ahead.space": {
- "source": "iana",
- "extensions": ["ahead"]
- },
- "application/vnd.airzip.filesecure.azf": {
- "source": "iana",
- "extensions": ["azf"]
- },
- "application/vnd.airzip.filesecure.azs": {
- "source": "iana",
- "extensions": ["azs"]
- },
- "application/vnd.amadeus+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.amazon.ebook": {
- "source": "apache",
- "extensions": ["azw"]
- },
- "application/vnd.amazon.mobi8-ebook": {
- "source": "iana"
- },
- "application/vnd.americandynamics.acc": {
- "source": "iana",
- "extensions": ["acc"]
- },
- "application/vnd.amiga.ami": {
- "source": "iana",
- "extensions": ["ami"]
- },
- "application/vnd.amundsen.maze+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.android.ota": {
- "source": "iana"
- },
- "application/vnd.android.package-archive": {
- "source": "apache",
- "compressible": false,
- "extensions": ["apk"]
- },
- "application/vnd.anki": {
- "source": "iana"
- },
- "application/vnd.anser-web-certificate-issue-initiation": {
- "source": "iana",
- "extensions": ["cii"]
- },
- "application/vnd.anser-web-funds-transfer-initiation": {
- "source": "apache",
- "extensions": ["fti"]
- },
- "application/vnd.antix.game-component": {
- "source": "iana",
- "extensions": ["atx"]
- },
- "application/vnd.apache.thrift.binary": {
- "source": "iana"
- },
- "application/vnd.apache.thrift.compact": {
- "source": "iana"
- },
- "application/vnd.apache.thrift.json": {
- "source": "iana"
- },
- "application/vnd.api+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.aplextor.warrp+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.apothekende.reservation+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.apple.installer+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mpkg"]
- },
- "application/vnd.apple.keynote": {
- "source": "iana",
- "extensions": ["keynote"]
- },
- "application/vnd.apple.mpegurl": {
- "source": "iana",
- "extensions": ["m3u8"]
- },
- "application/vnd.apple.numbers": {
- "source": "iana",
- "extensions": ["numbers"]
- },
- "application/vnd.apple.pages": {
- "source": "iana",
- "extensions": ["pages"]
- },
- "application/vnd.apple.pkpass": {
- "compressible": false,
- "extensions": ["pkpass"]
- },
- "application/vnd.arastra.swi": {
- "source": "iana"
- },
- "application/vnd.aristanetworks.swi": {
- "source": "iana",
- "extensions": ["swi"]
- },
- "application/vnd.artisan+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.artsquare": {
- "source": "iana"
- },
- "application/vnd.astraea-software.iota": {
- "source": "iana",
- "extensions": ["iota"]
- },
- "application/vnd.audiograph": {
- "source": "iana",
- "extensions": ["aep"]
- },
- "application/vnd.autopackage": {
- "source": "iana"
- },
- "application/vnd.avalon+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.avistar+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.balsamiq.bmml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["bmml"]
- },
- "application/vnd.balsamiq.bmpr": {
- "source": "iana"
- },
- "application/vnd.banana-accounting": {
- "source": "iana"
- },
- "application/vnd.bbf.usp.error": {
- "source": "iana"
- },
- "application/vnd.bbf.usp.msg": {
- "source": "iana"
- },
- "application/vnd.bbf.usp.msg+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.bekitzur-stech+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.bint.med-content": {
- "source": "iana"
- },
- "application/vnd.biopax.rdf+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.blink-idb-value-wrapper": {
- "source": "iana"
- },
- "application/vnd.blueice.multipass": {
- "source": "iana",
- "extensions": ["mpm"]
- },
- "application/vnd.bluetooth.ep.oob": {
- "source": "iana"
- },
- "application/vnd.bluetooth.le.oob": {
- "source": "iana"
- },
- "application/vnd.bmi": {
- "source": "iana",
- "extensions": ["bmi"]
- },
- "application/vnd.bpf": {
- "source": "iana"
- },
- "application/vnd.bpf3": {
- "source": "iana"
- },
- "application/vnd.businessobjects": {
- "source": "iana",
- "extensions": ["rep"]
- },
- "application/vnd.byu.uapi+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.cab-jscript": {
- "source": "iana"
- },
- "application/vnd.canon-cpdl": {
- "source": "iana"
- },
- "application/vnd.canon-lips": {
- "source": "iana"
- },
- "application/vnd.capasystems-pg+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.cendio.thinlinc.clientconf": {
- "source": "iana"
- },
- "application/vnd.century-systems.tcp_stream": {
- "source": "iana"
- },
- "application/vnd.chemdraw+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["cdxml"]
- },
- "application/vnd.chess-pgn": {
- "source": "iana"
- },
- "application/vnd.chipnuts.karaoke-mmd": {
- "source": "iana",
- "extensions": ["mmd"]
- },
- "application/vnd.ciedi": {
- "source": "iana"
- },
- "application/vnd.cinderella": {
- "source": "iana",
- "extensions": ["cdy"]
- },
- "application/vnd.cirpack.isdn-ext": {
- "source": "iana"
- },
- "application/vnd.citationstyles.style+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["csl"]
- },
- "application/vnd.claymore": {
- "source": "iana",
- "extensions": ["cla"]
- },
- "application/vnd.cloanto.rp9": {
- "source": "iana",
- "extensions": ["rp9"]
- },
- "application/vnd.clonk.c4group": {
- "source": "iana",
- "extensions": ["c4g","c4d","c4f","c4p","c4u"]
- },
- "application/vnd.cluetrust.cartomobile-config": {
- "source": "iana",
- "extensions": ["c11amc"]
- },
- "application/vnd.cluetrust.cartomobile-config-pkg": {
- "source": "iana",
- "extensions": ["c11amz"]
- },
- "application/vnd.coffeescript": {
- "source": "iana"
- },
- "application/vnd.collabio.xodocuments.document": {
- "source": "iana"
- },
- "application/vnd.collabio.xodocuments.document-template": {
- "source": "iana"
- },
- "application/vnd.collabio.xodocuments.presentation": {
- "source": "iana"
- },
- "application/vnd.collabio.xodocuments.presentation-template": {
- "source": "iana"
- },
- "application/vnd.collabio.xodocuments.spreadsheet": {
- "source": "iana"
- },
- "application/vnd.collabio.xodocuments.spreadsheet-template": {
- "source": "iana"
- },
- "application/vnd.collection+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.collection.doc+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.collection.next+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.comicbook+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.comicbook-rar": {
- "source": "iana"
- },
- "application/vnd.commerce-battelle": {
- "source": "iana"
- },
- "application/vnd.commonspace": {
- "source": "iana",
- "extensions": ["csp"]
- },
- "application/vnd.contact.cmsg": {
- "source": "iana",
- "extensions": ["cdbcmsg"]
- },
- "application/vnd.coreos.ignition+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.cosmocaller": {
- "source": "iana",
- "extensions": ["cmc"]
- },
- "application/vnd.crick.clicker": {
- "source": "iana",
- "extensions": ["clkx"]
- },
- "application/vnd.crick.clicker.keyboard": {
- "source": "iana",
- "extensions": ["clkk"]
- },
- "application/vnd.crick.clicker.palette": {
- "source": "iana",
- "extensions": ["clkp"]
- },
- "application/vnd.crick.clicker.template": {
- "source": "iana",
- "extensions": ["clkt"]
- },
- "application/vnd.crick.clicker.wordbank": {
- "source": "iana",
- "extensions": ["clkw"]
- },
- "application/vnd.criticaltools.wbs+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["wbs"]
- },
- "application/vnd.cryptii.pipe+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.crypto-shade-file": {
- "source": "iana"
- },
- "application/vnd.ctc-posml": {
- "source": "iana",
- "extensions": ["pml"]
- },
- "application/vnd.ctct.ws+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.cups-pdf": {
- "source": "iana"
- },
- "application/vnd.cups-postscript": {
- "source": "iana"
- },
- "application/vnd.cups-ppd": {
- "source": "iana",
- "extensions": ["ppd"]
- },
- "application/vnd.cups-raster": {
- "source": "iana"
- },
- "application/vnd.cups-raw": {
- "source": "iana"
- },
- "application/vnd.curl": {
- "source": "iana"
- },
- "application/vnd.curl.car": {
- "source": "apache",
- "extensions": ["car"]
- },
- "application/vnd.curl.pcurl": {
- "source": "apache",
- "extensions": ["pcurl"]
- },
- "application/vnd.cyan.dean.root+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.cybank": {
- "source": "iana"
- },
- "application/vnd.d2l.coursepackage1p0+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.dart": {
- "source": "iana",
- "compressible": true,
- "extensions": ["dart"]
- },
- "application/vnd.data-vision.rdz": {
- "source": "iana",
- "extensions": ["rdz"]
- },
- "application/vnd.datapackage+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dataresource+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dbf": {
- "source": "iana"
- },
- "application/vnd.debian.binary-package": {
- "source": "iana"
- },
- "application/vnd.dece.data": {
- "source": "iana",
- "extensions": ["uvf","uvvf","uvd","uvvd"]
- },
- "application/vnd.dece.ttml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["uvt","uvvt"]
- },
- "application/vnd.dece.unspecified": {
- "source": "iana",
- "extensions": ["uvx","uvvx"]
- },
- "application/vnd.dece.zip": {
- "source": "iana",
- "extensions": ["uvz","uvvz"]
- },
- "application/vnd.denovo.fcselayout-link": {
- "source": "iana",
- "extensions": ["fe_launch"]
- },
- "application/vnd.desmume.movie": {
- "source": "iana"
- },
- "application/vnd.dir-bi.plate-dl-nosuffix": {
- "source": "iana"
- },
- "application/vnd.dm.delegation+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dna": {
- "source": "iana",
- "extensions": ["dna"]
- },
- "application/vnd.document+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dolby.mlp": {
- "source": "apache",
- "extensions": ["mlp"]
- },
- "application/vnd.dolby.mobile.1": {
- "source": "iana"
- },
- "application/vnd.dolby.mobile.2": {
- "source": "iana"
- },
- "application/vnd.doremir.scorecloud-binary-document": {
- "source": "iana"
- },
- "application/vnd.dpgraph": {
- "source": "iana",
- "extensions": ["dpg"]
- },
- "application/vnd.dreamfactory": {
- "source": "iana",
- "extensions": ["dfac"]
- },
- "application/vnd.drive+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ds-keypoint": {
- "source": "apache",
- "extensions": ["kpxx"]
- },
- "application/vnd.dtg.local": {
- "source": "iana"
- },
- "application/vnd.dtg.local.flash": {
- "source": "iana"
- },
- "application/vnd.dtg.local.html": {
- "source": "iana"
- },
- "application/vnd.dvb.ait": {
- "source": "iana",
- "extensions": ["ait"]
- },
- "application/vnd.dvb.dvbisl+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.dvbj": {
- "source": "iana"
- },
- "application/vnd.dvb.esgcontainer": {
- "source": "iana"
- },
- "application/vnd.dvb.ipdcdftnotifaccess": {
- "source": "iana"
- },
- "application/vnd.dvb.ipdcesgaccess": {
- "source": "iana"
- },
- "application/vnd.dvb.ipdcesgaccess2": {
- "source": "iana"
- },
- "application/vnd.dvb.ipdcesgpdd": {
- "source": "iana"
- },
- "application/vnd.dvb.ipdcroaming": {
- "source": "iana"
- },
- "application/vnd.dvb.iptv.alfec-base": {
- "source": "iana"
- },
- "application/vnd.dvb.iptv.alfec-enhancement": {
- "source": "iana"
- },
- "application/vnd.dvb.notif-aggregate-root+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.notif-container+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.notif-generic+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.notif-ia-msglist+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.notif-ia-registration-request+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.notif-ia-registration-response+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.notif-init+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.dvb.pfr": {
- "source": "iana"
- },
- "application/vnd.dvb.service": {
- "source": "iana",
- "extensions": ["svc"]
- },
- "application/vnd.dxr": {
- "source": "iana"
- },
- "application/vnd.dynageo": {
- "source": "iana",
- "extensions": ["geo"]
- },
- "application/vnd.dzr": {
- "source": "iana"
- },
- "application/vnd.easykaraoke.cdgdownload": {
- "source": "iana"
- },
- "application/vnd.ecdis-update": {
- "source": "iana"
- },
- "application/vnd.ecip.rlp": {
- "source": "iana"
- },
- "application/vnd.ecowin.chart": {
- "source": "iana",
- "extensions": ["mag"]
- },
- "application/vnd.ecowin.filerequest": {
- "source": "iana"
- },
- "application/vnd.ecowin.fileupdate": {
- "source": "iana"
- },
- "application/vnd.ecowin.series": {
- "source": "iana"
- },
- "application/vnd.ecowin.seriesrequest": {
- "source": "iana"
- },
- "application/vnd.ecowin.seriesupdate": {
- "source": "iana"
- },
- "application/vnd.efi.img": {
- "source": "iana"
- },
- "application/vnd.efi.iso": {
- "source": "iana"
- },
- "application/vnd.emclient.accessrequest+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.enliven": {
- "source": "iana",
- "extensions": ["nml"]
- },
- "application/vnd.enphase.envoy": {
- "source": "iana"
- },
- "application/vnd.eprints.data+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.epson.esf": {
- "source": "iana",
- "extensions": ["esf"]
- },
- "application/vnd.epson.msf": {
- "source": "iana",
- "extensions": ["msf"]
- },
- "application/vnd.epson.quickanime": {
- "source": "iana",
- "extensions": ["qam"]
- },
- "application/vnd.epson.salt": {
- "source": "iana",
- "extensions": ["slt"]
- },
- "application/vnd.epson.ssf": {
- "source": "iana",
- "extensions": ["ssf"]
- },
- "application/vnd.ericsson.quickcall": {
- "source": "iana"
- },
- "application/vnd.espass-espass+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.eszigno3+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["es3","et3"]
- },
- "application/vnd.etsi.aoc+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.asic-e+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.etsi.asic-s+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.etsi.cug+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvcommand+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvdiscovery+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvprofile+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvsad-bc+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvsad-cod+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvsad-npvr+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvservice+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvsync+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.iptvueprofile+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.mcid+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.mheg5": {
- "source": "iana"
- },
- "application/vnd.etsi.overload-control-policy-dataset+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.pstn+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.sci+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.simservs+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.timestamp-token": {
- "source": "iana"
- },
- "application/vnd.etsi.tsl+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.etsi.tsl.der": {
- "source": "iana"
- },
- "application/vnd.eudora.data": {
- "source": "iana"
- },
- "application/vnd.evolv.ecig.profile": {
- "source": "iana"
- },
- "application/vnd.evolv.ecig.settings": {
- "source": "iana"
- },
- "application/vnd.evolv.ecig.theme": {
- "source": "iana"
- },
- "application/vnd.exstream-empower+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.exstream-package": {
- "source": "iana"
- },
- "application/vnd.ezpix-album": {
- "source": "iana",
- "extensions": ["ez2"]
- },
- "application/vnd.ezpix-package": {
- "source": "iana",
- "extensions": ["ez3"]
- },
- "application/vnd.f-secure.mobile": {
- "source": "iana"
- },
- "application/vnd.fastcopy-disk-image": {
- "source": "iana"
- },
- "application/vnd.fdf": {
- "source": "iana",
- "extensions": ["fdf"]
- },
- "application/vnd.fdsn.mseed": {
- "source": "iana",
- "extensions": ["mseed"]
- },
- "application/vnd.fdsn.seed": {
- "source": "iana",
- "extensions": ["seed","dataless"]
- },
- "application/vnd.ffsns": {
- "source": "iana"
- },
- "application/vnd.ficlab.flb+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.filmit.zfc": {
- "source": "iana"
- },
- "application/vnd.fints": {
- "source": "iana"
- },
- "application/vnd.firemonkeys.cloudcell": {
- "source": "iana"
- },
- "application/vnd.flographit": {
- "source": "iana",
- "extensions": ["gph"]
- },
- "application/vnd.fluxtime.clip": {
- "source": "iana",
- "extensions": ["ftc"]
- },
- "application/vnd.font-fontforge-sfd": {
- "source": "iana"
- },
- "application/vnd.framemaker": {
- "source": "iana",
- "extensions": ["fm","frame","maker","book"]
- },
- "application/vnd.frogans.fnc": {
- "source": "iana",
- "extensions": ["fnc"]
- },
- "application/vnd.frogans.ltf": {
- "source": "iana",
- "extensions": ["ltf"]
- },
- "application/vnd.fsc.weblaunch": {
- "source": "iana",
- "extensions": ["fsc"]
- },
- "application/vnd.fujitsu.oasys": {
- "source": "iana",
- "extensions": ["oas"]
- },
- "application/vnd.fujitsu.oasys2": {
- "source": "iana",
- "extensions": ["oa2"]
- },
- "application/vnd.fujitsu.oasys3": {
- "source": "iana",
- "extensions": ["oa3"]
- },
- "application/vnd.fujitsu.oasysgp": {
- "source": "iana",
- "extensions": ["fg5"]
- },
- "application/vnd.fujitsu.oasysprs": {
- "source": "iana",
- "extensions": ["bh2"]
- },
- "application/vnd.fujixerox.art-ex": {
- "source": "iana"
- },
- "application/vnd.fujixerox.art4": {
- "source": "iana"
- },
- "application/vnd.fujixerox.ddd": {
- "source": "iana",
- "extensions": ["ddd"]
- },
- "application/vnd.fujixerox.docuworks": {
- "source": "iana",
- "extensions": ["xdw"]
- },
- "application/vnd.fujixerox.docuworks.binder": {
- "source": "iana",
- "extensions": ["xbd"]
- },
- "application/vnd.fujixerox.docuworks.container": {
- "source": "iana"
- },
- "application/vnd.fujixerox.hbpl": {
- "source": "iana"
- },
- "application/vnd.fut-misnet": {
- "source": "iana"
- },
- "application/vnd.futoin+cbor": {
- "source": "iana"
- },
- "application/vnd.futoin+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.fuzzysheet": {
- "source": "iana",
- "extensions": ["fzs"]
- },
- "application/vnd.genomatix.tuxedo": {
- "source": "iana",
- "extensions": ["txd"]
- },
- "application/vnd.gentics.grd+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.geo+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.geocube+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.geogebra.file": {
- "source": "iana",
- "extensions": ["ggb"]
- },
- "application/vnd.geogebra.tool": {
- "source": "iana",
- "extensions": ["ggt"]
- },
- "application/vnd.geometry-explorer": {
- "source": "iana",
- "extensions": ["gex","gre"]
- },
- "application/vnd.geonext": {
- "source": "iana",
- "extensions": ["gxt"]
- },
- "application/vnd.geoplan": {
- "source": "iana",
- "extensions": ["g2w"]
- },
- "application/vnd.geospace": {
- "source": "iana",
- "extensions": ["g3w"]
- },
- "application/vnd.gerber": {
- "source": "iana"
- },
- "application/vnd.globalplatform.card-content-mgt": {
- "source": "iana"
- },
- "application/vnd.globalplatform.card-content-mgt-response": {
- "source": "iana"
- },
- "application/vnd.gmx": {
- "source": "iana",
- "extensions": ["gmx"]
- },
- "application/vnd.google-apps.document": {
- "compressible": false,
- "extensions": ["gdoc"]
- },
- "application/vnd.google-apps.presentation": {
- "compressible": false,
- "extensions": ["gslides"]
- },
- "application/vnd.google-apps.spreadsheet": {
- "compressible": false,
- "extensions": ["gsheet"]
- },
- "application/vnd.google-earth.kml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["kml"]
- },
- "application/vnd.google-earth.kmz": {
- "source": "iana",
- "compressible": false,
- "extensions": ["kmz"]
- },
- "application/vnd.gov.sk.e-form+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.gov.sk.e-form+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.gov.sk.xmldatacontainer+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.grafeq": {
- "source": "iana",
- "extensions": ["gqf","gqs"]
- },
- "application/vnd.gridmp": {
- "source": "iana"
- },
- "application/vnd.groove-account": {
- "source": "iana",
- "extensions": ["gac"]
- },
- "application/vnd.groove-help": {
- "source": "iana",
- "extensions": ["ghf"]
- },
- "application/vnd.groove-identity-message": {
- "source": "iana",
- "extensions": ["gim"]
- },
- "application/vnd.groove-injector": {
- "source": "iana",
- "extensions": ["grv"]
- },
- "application/vnd.groove-tool-message": {
- "source": "iana",
- "extensions": ["gtm"]
- },
- "application/vnd.groove-tool-template": {
- "source": "iana",
- "extensions": ["tpl"]
- },
- "application/vnd.groove-vcard": {
- "source": "iana",
- "extensions": ["vcg"]
- },
- "application/vnd.hal+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.hal+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["hal"]
- },
- "application/vnd.handheld-entertainment+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["zmm"]
- },
- "application/vnd.hbci": {
- "source": "iana",
- "extensions": ["hbci"]
- },
- "application/vnd.hc+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.hcl-bireports": {
- "source": "iana"
- },
- "application/vnd.hdt": {
- "source": "iana"
- },
- "application/vnd.heroku+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.hhe.lesson-player": {
- "source": "iana",
- "extensions": ["les"]
- },
- "application/vnd.hp-hpgl": {
- "source": "iana",
- "extensions": ["hpgl"]
- },
- "application/vnd.hp-hpid": {
- "source": "iana",
- "extensions": ["hpid"]
- },
- "application/vnd.hp-hps": {
- "source": "iana",
- "extensions": ["hps"]
- },
- "application/vnd.hp-jlyt": {
- "source": "iana",
- "extensions": ["jlt"]
- },
- "application/vnd.hp-pcl": {
- "source": "iana",
- "extensions": ["pcl"]
- },
- "application/vnd.hp-pclxl": {
- "source": "iana",
- "extensions": ["pclxl"]
- },
- "application/vnd.httphone": {
- "source": "iana"
- },
- "application/vnd.hydrostatix.sof-data": {
- "source": "iana",
- "extensions": ["sfd-hdstx"]
- },
- "application/vnd.hyper+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.hyper-item+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.hyperdrive+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.hzn-3d-crossword": {
- "source": "iana"
- },
- "application/vnd.ibm.afplinedata": {
- "source": "iana"
- },
- "application/vnd.ibm.electronic-media": {
- "source": "iana"
- },
- "application/vnd.ibm.minipay": {
- "source": "iana",
- "extensions": ["mpy"]
- },
- "application/vnd.ibm.modcap": {
- "source": "iana",
- "extensions": ["afp","listafp","list3820"]
- },
- "application/vnd.ibm.rights-management": {
- "source": "iana",
- "extensions": ["irm"]
- },
- "application/vnd.ibm.secure-container": {
- "source": "iana",
- "extensions": ["sc"]
- },
- "application/vnd.iccprofile": {
- "source": "iana",
- "extensions": ["icc","icm"]
- },
- "application/vnd.ieee.1905": {
- "source": "iana"
- },
- "application/vnd.igloader": {
- "source": "iana",
- "extensions": ["igl"]
- },
- "application/vnd.imagemeter.folder+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.imagemeter.image+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.immervision-ivp": {
- "source": "iana",
- "extensions": ["ivp"]
- },
- "application/vnd.immervision-ivu": {
- "source": "iana",
- "extensions": ["ivu"]
- },
- "application/vnd.ims.imsccv1p1": {
- "source": "iana"
- },
- "application/vnd.ims.imsccv1p2": {
- "source": "iana"
- },
- "application/vnd.ims.imsccv1p3": {
- "source": "iana"
- },
- "application/vnd.ims.lis.v2.result+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ims.lti.v2.toolconsumerprofile+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ims.lti.v2.toolproxy+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ims.lti.v2.toolproxy.id+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ims.lti.v2.toolsettings+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ims.lti.v2.toolsettings.simple+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.informedcontrol.rms+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.informix-visionary": {
- "source": "iana"
- },
- "application/vnd.infotech.project": {
- "source": "iana"
- },
- "application/vnd.infotech.project+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.innopath.wamp.notification": {
- "source": "iana"
- },
- "application/vnd.insors.igm": {
- "source": "iana",
- "extensions": ["igm"]
- },
- "application/vnd.intercon.formnet": {
- "source": "iana",
- "extensions": ["xpw","xpx"]
- },
- "application/vnd.intergeo": {
- "source": "iana",
- "extensions": ["i2g"]
- },
- "application/vnd.intertrust.digibox": {
- "source": "iana"
- },
- "application/vnd.intertrust.nncp": {
- "source": "iana"
- },
- "application/vnd.intu.qbo": {
- "source": "iana",
- "extensions": ["qbo"]
- },
- "application/vnd.intu.qfx": {
- "source": "iana",
- "extensions": ["qfx"]
- },
- "application/vnd.iptc.g2.catalogitem+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.iptc.g2.conceptitem+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.iptc.g2.knowledgeitem+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.iptc.g2.newsitem+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.iptc.g2.newsmessage+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.iptc.g2.packageitem+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.iptc.g2.planningitem+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ipunplugged.rcprofile": {
- "source": "iana",
- "extensions": ["rcprofile"]
- },
- "application/vnd.irepository.package+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["irp"]
- },
- "application/vnd.is-xpr": {
- "source": "iana",
- "extensions": ["xpr"]
- },
- "application/vnd.isac.fcs": {
- "source": "iana",
- "extensions": ["fcs"]
- },
- "application/vnd.iso11783-10+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.jam": {
- "source": "iana",
- "extensions": ["jam"]
- },
- "application/vnd.japannet-directory-service": {
- "source": "iana"
- },
- "application/vnd.japannet-jpnstore-wakeup": {
- "source": "iana"
- },
- "application/vnd.japannet-payment-wakeup": {
- "source": "iana"
- },
- "application/vnd.japannet-registration": {
- "source": "iana"
- },
- "application/vnd.japannet-registration-wakeup": {
- "source": "iana"
- },
- "application/vnd.japannet-setstore-wakeup": {
- "source": "iana"
- },
- "application/vnd.japannet-verification": {
- "source": "iana"
- },
- "application/vnd.japannet-verification-wakeup": {
- "source": "iana"
- },
- "application/vnd.jcp.javame.midlet-rms": {
- "source": "iana",
- "extensions": ["rms"]
- },
- "application/vnd.jisp": {
- "source": "iana",
- "extensions": ["jisp"]
- },
- "application/vnd.joost.joda-archive": {
- "source": "iana",
- "extensions": ["joda"]
- },
- "application/vnd.jsk.isdn-ngn": {
- "source": "iana"
- },
- "application/vnd.kahootz": {
- "source": "iana",
- "extensions": ["ktz","ktr"]
- },
- "application/vnd.kde.karbon": {
- "source": "iana",
- "extensions": ["karbon"]
- },
- "application/vnd.kde.kchart": {
- "source": "iana",
- "extensions": ["chrt"]
- },
- "application/vnd.kde.kformula": {
- "source": "iana",
- "extensions": ["kfo"]
- },
- "application/vnd.kde.kivio": {
- "source": "iana",
- "extensions": ["flw"]
- },
- "application/vnd.kde.kontour": {
- "source": "iana",
- "extensions": ["kon"]
- },
- "application/vnd.kde.kpresenter": {
- "source": "iana",
- "extensions": ["kpr","kpt"]
- },
- "application/vnd.kde.kspread": {
- "source": "iana",
- "extensions": ["ksp"]
- },
- "application/vnd.kde.kword": {
- "source": "iana",
- "extensions": ["kwd","kwt"]
- },
- "application/vnd.kenameaapp": {
- "source": "iana",
- "extensions": ["htke"]
- },
- "application/vnd.kidspiration": {
- "source": "iana",
- "extensions": ["kia"]
- },
- "application/vnd.kinar": {
- "source": "iana",
- "extensions": ["kne","knp"]
- },
- "application/vnd.koan": {
- "source": "iana",
- "extensions": ["skp","skd","skt","skm"]
- },
- "application/vnd.kodak-descriptor": {
- "source": "iana",
- "extensions": ["sse"]
- },
- "application/vnd.las": {
- "source": "iana"
- },
- "application/vnd.las.las+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.las.las+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["lasxml"]
- },
- "application/vnd.laszip": {
- "source": "iana"
- },
- "application/vnd.leap+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.liberty-request+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.llamagraphics.life-balance.desktop": {
- "source": "iana",
- "extensions": ["lbd"]
- },
- "application/vnd.llamagraphics.life-balance.exchange+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["lbe"]
- },
- "application/vnd.logipipe.circuit+zip": {
- "source": "iana",
- "compressible": false
- },
- "application/vnd.loom": {
- "source": "iana"
- },
- "application/vnd.lotus-1-2-3": {
- "source": "iana",
- "extensions": ["123"]
- },
- "application/vnd.lotus-approach": {
- "source": "iana",
- "extensions": ["apr"]
- },
- "application/vnd.lotus-freelance": {
- "source": "iana",
- "extensions": ["pre"]
- },
- "application/vnd.lotus-notes": {
- "source": "iana",
- "extensions": ["nsf"]
- },
- "application/vnd.lotus-organizer": {
- "source": "iana",
- "extensions": ["org"]
- },
- "application/vnd.lotus-screencam": {
- "source": "iana",
- "extensions": ["scm"]
- },
- "application/vnd.lotus-wordpro": {
- "source": "iana",
- "extensions": ["lwp"]
- },
- "application/vnd.macports.portpkg": {
- "source": "iana",
- "extensions": ["portpkg"]
- },
- "application/vnd.mapbox-vector-tile": {
- "source": "iana"
- },
- "application/vnd.marlin.drm.actiontoken+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.marlin.drm.conftoken+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.marlin.drm.license+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.marlin.drm.mdcf": {
- "source": "iana"
- },
- "application/vnd.mason+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.maxmind.maxmind-db": {
- "source": "iana"
- },
- "application/vnd.mcd": {
- "source": "iana",
- "extensions": ["mcd"]
- },
- "application/vnd.medcalcdata": {
- "source": "iana",
- "extensions": ["mc1"]
- },
- "application/vnd.mediastation.cdkey": {
- "source": "iana",
- "extensions": ["cdkey"]
- },
- "application/vnd.meridian-slingshot": {
- "source": "iana"
- },
- "application/vnd.mfer": {
- "source": "iana",
- "extensions": ["mwf"]
- },
- "application/vnd.mfmp": {
- "source": "iana",
- "extensions": ["mfm"]
- },
- "application/vnd.micro+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.micrografx.flo": {
- "source": "iana",
- "extensions": ["flo"]
- },
- "application/vnd.micrografx.igx": {
- "source": "iana",
- "extensions": ["igx"]
- },
- "application/vnd.microsoft.portable-executable": {
- "source": "iana"
- },
- "application/vnd.microsoft.windows.thumbnail-cache": {
- "source": "iana"
- },
- "application/vnd.miele+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.mif": {
- "source": "iana",
- "extensions": ["mif"]
- },
- "application/vnd.minisoft-hp3000-save": {
- "source": "iana"
- },
- "application/vnd.mitsubishi.misty-guard.trustweb": {
- "source": "iana"
- },
- "application/vnd.mobius.daf": {
- "source": "iana",
- "extensions": ["daf"]
- },
- "application/vnd.mobius.dis": {
- "source": "iana",
- "extensions": ["dis"]
- },
- "application/vnd.mobius.mbk": {
- "source": "iana",
- "extensions": ["mbk"]
- },
- "application/vnd.mobius.mqy": {
- "source": "iana",
- "extensions": ["mqy"]
- },
- "application/vnd.mobius.msl": {
- "source": "iana",
- "extensions": ["msl"]
- },
- "application/vnd.mobius.plc": {
- "source": "iana",
- "extensions": ["plc"]
- },
- "application/vnd.mobius.txf": {
- "source": "iana",
- "extensions": ["txf"]
- },
- "application/vnd.mophun.application": {
- "source": "iana",
- "extensions": ["mpn"]
- },
- "application/vnd.mophun.certificate": {
- "source": "iana",
- "extensions": ["mpc"]
- },
- "application/vnd.motorola.flexsuite": {
- "source": "iana"
- },
- "application/vnd.motorola.flexsuite.adsi": {
- "source": "iana"
- },
- "application/vnd.motorola.flexsuite.fis": {
- "source": "iana"
- },
- "application/vnd.motorola.flexsuite.gotap": {
- "source": "iana"
- },
- "application/vnd.motorola.flexsuite.kmr": {
- "source": "iana"
- },
- "application/vnd.motorola.flexsuite.ttc": {
- "source": "iana"
- },
- "application/vnd.motorola.flexsuite.wem": {
- "source": "iana"
- },
- "application/vnd.motorola.iprm": {
- "source": "iana"
- },
- "application/vnd.mozilla.xul+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xul"]
- },
- "application/vnd.ms-3mfdocument": {
- "source": "iana"
- },
- "application/vnd.ms-artgalry": {
- "source": "iana",
- "extensions": ["cil"]
- },
- "application/vnd.ms-asf": {
- "source": "iana"
- },
- "application/vnd.ms-cab-compressed": {
- "source": "iana",
- "extensions": ["cab"]
- },
- "application/vnd.ms-color.iccprofile": {
- "source": "apache"
- },
- "application/vnd.ms-excel": {
- "source": "iana",
- "compressible": false,
- "extensions": ["xls","xlm","xla","xlc","xlt","xlw"]
- },
- "application/vnd.ms-excel.addin.macroenabled.12": {
- "source": "iana",
- "extensions": ["xlam"]
- },
- "application/vnd.ms-excel.sheet.binary.macroenabled.12": {
- "source": "iana",
- "extensions": ["xlsb"]
- },
- "application/vnd.ms-excel.sheet.macroenabled.12": {
- "source": "iana",
- "extensions": ["xlsm"]
- },
- "application/vnd.ms-excel.template.macroenabled.12": {
- "source": "iana",
- "extensions": ["xltm"]
- },
- "application/vnd.ms-fontobject": {
- "source": "iana",
- "compressible": true,
- "extensions": ["eot"]
- },
- "application/vnd.ms-htmlhelp": {
- "source": "iana",
- "extensions": ["chm"]
- },
- "application/vnd.ms-ims": {
- "source": "iana",
- "extensions": ["ims"]
- },
- "application/vnd.ms-lrm": {
- "source": "iana",
- "extensions": ["lrm"]
- },
- "application/vnd.ms-office.activex+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ms-officetheme": {
- "source": "iana",
- "extensions": ["thmx"]
- },
- "application/vnd.ms-opentype": {
- "source": "apache",
- "compressible": true
- },
- "application/vnd.ms-outlook": {
- "compressible": false,
- "extensions": ["msg"]
- },
- "application/vnd.ms-package.obfuscated-opentype": {
- "source": "apache"
- },
- "application/vnd.ms-pki.seccat": {
- "source": "apache",
- "extensions": ["cat"]
- },
- "application/vnd.ms-pki.stl": {
- "source": "apache",
- "extensions": ["stl"]
- },
- "application/vnd.ms-playready.initiator+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ms-powerpoint": {
- "source": "iana",
- "compressible": false,
- "extensions": ["ppt","pps","pot"]
- },
- "application/vnd.ms-powerpoint.addin.macroenabled.12": {
- "source": "iana",
- "extensions": ["ppam"]
- },
- "application/vnd.ms-powerpoint.presentation.macroenabled.12": {
- "source": "iana",
- "extensions": ["pptm"]
- },
- "application/vnd.ms-powerpoint.slide.macroenabled.12": {
- "source": "iana",
- "extensions": ["sldm"]
- },
- "application/vnd.ms-powerpoint.slideshow.macroenabled.12": {
- "source": "iana",
- "extensions": ["ppsm"]
- },
- "application/vnd.ms-powerpoint.template.macroenabled.12": {
- "source": "iana",
- "extensions": ["potm"]
- },
- "application/vnd.ms-printdevicecapabilities+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ms-printing.printticket+xml": {
- "source": "apache",
- "compressible": true
- },
- "application/vnd.ms-printschematicket+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.ms-project": {
- "source": "iana",
- "extensions": ["mpp","mpt"]
- },
- "application/vnd.ms-tnef": {
- "source": "iana"
- },
- "application/vnd.ms-windows.devicepairing": {
- "source": "iana"
- },
- "application/vnd.ms-windows.nwprinting.oob": {
- "source": "iana"
- },
- "application/vnd.ms-windows.printerpairing": {
- "source": "iana"
- },
- "application/vnd.ms-windows.wsd.oob": {
- "source": "iana"
- },
- "application/vnd.ms-wmdrm.lic-chlg-req": {
- "source": "iana"
- },
- "application/vnd.ms-wmdrm.lic-resp": {
- "source": "iana"
- },
- "application/vnd.ms-wmdrm.meter-chlg-req": {
- "source": "iana"
- },
- "application/vnd.ms-wmdrm.meter-resp": {
- "source": "iana"
- },
- "application/vnd.ms-word.document.macroenabled.12": {
- "source": "iana",
- "extensions": ["docm"]
- },
- "application/vnd.ms-word.template.macroenabled.12": {
- "source": "iana",
- "extensions": ["dotm"]
- },
- "application/vnd.ms-works": {
- "source": "iana",
- "extensions": ["wps","wks","wcm","wdb"]
- },
- "application/vnd.ms-wpl": {
- "source": "iana",
- "extensions": ["wpl"]
- },
- "application/vnd.ms-xpsdocument": {
- "source": "iana",
- "compressible": false,
- "extensions": ["xps"]
- },
- "application/vnd.msa-disk-image": {
- "source": "iana"
- },
- "application/vnd.mseq": {
- "source": "iana",
- "extensions": ["mseq"]
- },
- "application/vnd.msign": {
- "source": "iana"
- },
- "application/vnd.multiad.creator": {
- "source": "iana"
- },
- "application/vnd.multiad.creator.cif": {
- "source": "iana"
- },
- "application/vnd.music-niff": {
- "source": "iana"
- },
- "application/vnd.musician": {
- "source": "iana",
- "extensions": ["mus"]
- },
- "application/vnd.muvee.style": {
- "source": "iana",
- "extensions": ["msty"]
- },
- "application/vnd.mynfc": {
- "source": "iana",
- "extensions": ["taglet"]
- },
- "application/vnd.ncd.control": {
- "source": "iana"
- },
- "application/vnd.ncd.reference": {
- "source": "iana"
- },
- "application/vnd.nearst.inv+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.nervana": {
- "source": "iana"
- },
- "application/vnd.netfpx": {
- "source": "iana"
- },
- "application/vnd.neurolanguage.nlu": {
- "source": "iana",
- "extensions": ["nlu"]
- },
- "application/vnd.nimn": {
- "source": "iana"
- },
- "application/vnd.nintendo.nitro.rom": {
- "source": "iana"
- },
- "application/vnd.nintendo.snes.rom": {
- "source": "iana"
- },
- "application/vnd.nitf": {
- "source": "iana",
- "extensions": ["ntf","nitf"]
- },
- "application/vnd.noblenet-directory": {
- "source": "iana",
- "extensions": ["nnd"]
- },
- "application/vnd.noblenet-sealer": {
- "source": "iana",
- "extensions": ["nns"]
- },
- "application/vnd.noblenet-web": {
- "source": "iana",
- "extensions": ["nnw"]
- },
- "application/vnd.nokia.catalogs": {
- "source": "iana"
- },
- "application/vnd.nokia.conml+wbxml": {
- "source": "iana"
- },
- "application/vnd.nokia.conml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.nokia.iptv.config+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.nokia.isds-radio-presets": {
- "source": "iana"
- },
- "application/vnd.nokia.landmark+wbxml": {
- "source": "iana"
- },
- "application/vnd.nokia.landmark+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.nokia.landmarkcollection+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.nokia.n-gage.ac+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ac"]
- },
- "application/vnd.nokia.n-gage.data": {
- "source": "iana",
- "extensions": ["ngdat"]
- },
- "application/vnd.nokia.n-gage.symbian.install": {
- "source": "iana",
- "extensions": ["n-gage"]
- },
- "application/vnd.nokia.ncd": {
- "source": "iana"
- },
- "application/vnd.nokia.pcd+wbxml": {
- "source": "iana"
- },
- "application/vnd.nokia.pcd+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.nokia.radio-preset": {
- "source": "iana",
- "extensions": ["rpst"]
- },
- "application/vnd.nokia.radio-presets": {
- "source": "iana",
- "extensions": ["rpss"]
- },
- "application/vnd.novadigm.edm": {
- "source": "iana",
- "extensions": ["edm"]
- },
- "application/vnd.novadigm.edx": {
- "source": "iana",
- "extensions": ["edx"]
- },
- "application/vnd.novadigm.ext": {
- "source": "iana",
- "extensions": ["ext"]
- },
- "application/vnd.ntt-local.content-share": {
- "source": "iana"
- },
- "application/vnd.ntt-local.file-transfer": {
- "source": "iana"
- },
- "application/vnd.ntt-local.ogw_remote-access": {
- "source": "iana"
- },
- "application/vnd.ntt-local.sip-ta_remote": {
- "source": "iana"
- },
- "application/vnd.ntt-local.sip-ta_tcp_stream": {
- "source": "iana"
- },
- "application/vnd.oasis.opendocument.chart": {
- "source": "iana",
- "extensions": ["odc"]
- },
- "application/vnd.oasis.opendocument.chart-template": {
- "source": "iana",
- "extensions": ["otc"]
- },
- "application/vnd.oasis.opendocument.database": {
- "source": "iana",
- "extensions": ["odb"]
- },
- "application/vnd.oasis.opendocument.formula": {
- "source": "iana",
- "extensions": ["odf"]
- },
- "application/vnd.oasis.opendocument.formula-template": {
- "source": "iana",
- "extensions": ["odft"]
- },
- "application/vnd.oasis.opendocument.graphics": {
- "source": "iana",
- "compressible": false,
- "extensions": ["odg"]
- },
- "application/vnd.oasis.opendocument.graphics-template": {
- "source": "iana",
- "extensions": ["otg"]
- },
- "application/vnd.oasis.opendocument.image": {
- "source": "iana",
- "extensions": ["odi"]
- },
- "application/vnd.oasis.opendocument.image-template": {
- "source": "iana",
- "extensions": ["oti"]
- },
- "application/vnd.oasis.opendocument.presentation": {
- "source": "iana",
- "compressible": false,
- "extensions": ["odp"]
- },
- "application/vnd.oasis.opendocument.presentation-template": {
- "source": "iana",
- "extensions": ["otp"]
- },
- "application/vnd.oasis.opendocument.spreadsheet": {
- "source": "iana",
- "compressible": false,
- "extensions": ["ods"]
- },
- "application/vnd.oasis.opendocument.spreadsheet-template": {
- "source": "iana",
- "extensions": ["ots"]
- },
- "application/vnd.oasis.opendocument.text": {
- "source": "iana",
- "compressible": false,
- "extensions": ["odt"]
- },
- "application/vnd.oasis.opendocument.text-master": {
- "source": "iana",
- "extensions": ["odm"]
- },
- "application/vnd.oasis.opendocument.text-template": {
- "source": "iana",
- "extensions": ["ott"]
- },
- "application/vnd.oasis.opendocument.text-web": {
- "source": "iana",
- "extensions": ["oth"]
- },
- "application/vnd.obn": {
- "source": "iana"
- },
- "application/vnd.ocf+cbor": {
- "source": "iana"
- },
- "application/vnd.oci.image.manifest.v1+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oftn.l10n+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.contentaccessdownload+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.contentaccessstreaming+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.cspg-hexbinary": {
- "source": "iana"
- },
- "application/vnd.oipf.dae.svg+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.dae.xhtml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.mippvcontrolmessage+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.pae.gem": {
- "source": "iana"
- },
- "application/vnd.oipf.spdiscovery+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.spdlist+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.ueprofile+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oipf.userprofile+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.olpc-sugar": {
- "source": "iana",
- "extensions": ["xo"]
- },
- "application/vnd.oma-scws-config": {
- "source": "iana"
- },
- "application/vnd.oma-scws-http-request": {
- "source": "iana"
- },
- "application/vnd.oma-scws-http-response": {
- "source": "iana"
- },
- "application/vnd.oma.bcast.associated-procedure-parameter+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.bcast.drm-trigger+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.bcast.imd+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.bcast.ltkm": {
- "source": "iana"
- },
- "application/vnd.oma.bcast.notification+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.bcast.provisioningtrigger": {
- "source": "iana"
- },
- "application/vnd.oma.bcast.sgboot": {
- "source": "iana"
- },
- "application/vnd.oma.bcast.sgdd+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.bcast.sgdu": {
- "source": "iana"
- },
- "application/vnd.oma.bcast.simple-symbol-container": {
- "source": "iana"
- },
- "application/vnd.oma.bcast.smartcard-trigger+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.bcast.sprov+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.bcast.stkm": {
- "source": "iana"
- },
- "application/vnd.oma.cab-address-book+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.cab-feature-handler+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.cab-pcc+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.cab-subs-invite+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.cab-user-prefs+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.dcd": {
- "source": "iana"
- },
- "application/vnd.oma.dcdc": {
- "source": "iana"
- },
- "application/vnd.oma.dd2+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["dd2"]
- },
- "application/vnd.oma.drm.risd+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.group-usage-list+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.lwm2m+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.lwm2m+tlv": {
- "source": "iana"
- },
- "application/vnd.oma.pal+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.poc.detailed-progress-report+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.poc.final-report+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.poc.groups+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.poc.invocation-descriptor+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.poc.optimized-progress-report+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.push": {
- "source": "iana"
- },
- "application/vnd.oma.scidm.messages+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oma.xcap-directory+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.omads-email+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/vnd.omads-file+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/vnd.omads-folder+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/vnd.omaloc-supl-init": {
- "source": "iana"
- },
- "application/vnd.onepager": {
- "source": "iana"
- },
- "application/vnd.onepagertamp": {
- "source": "iana"
- },
- "application/vnd.onepagertamx": {
- "source": "iana"
- },
- "application/vnd.onepagertat": {
- "source": "iana"
- },
- "application/vnd.onepagertatp": {
- "source": "iana"
- },
- "application/vnd.onepagertatx": {
- "source": "iana"
- },
- "application/vnd.openblox.game+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["obgx"]
- },
- "application/vnd.openblox.game-binary": {
- "source": "iana"
- },
- "application/vnd.openeye.oeb": {
- "source": "iana"
- },
- "application/vnd.openofficeorg.extension": {
- "source": "apache",
- "extensions": ["oxt"]
- },
- "application/vnd.openstreetmap.data+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["osm"]
- },
- "application/vnd.openxmlformats-officedocument.custom-properties+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.drawing+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.extended-properties+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.presentation": {
- "source": "iana",
- "compressible": false,
- "extensions": ["pptx"]
- },
- "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.slide": {
- "source": "iana",
- "extensions": ["sldx"]
- },
- "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow": {
- "source": "iana",
- "extensions": ["ppsx"]
- },
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.template": {
- "source": "iana",
- "extensions": ["potx"]
- },
- "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
- "source": "iana",
- "compressible": false,
- "extensions": ["xlsx"]
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template": {
- "source": "iana",
- "extensions": ["xltx"]
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.theme+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.themeoverride+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.vmldrawing": {
- "source": "iana"
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
- "source": "iana",
- "compressible": false,
- "extensions": ["docx"]
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template": {
- "source": "iana",
- "extensions": ["dotx"]
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-package.core-properties+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.openxmlformats-package.relationships+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oracle.resource+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.orange.indata": {
- "source": "iana"
- },
- "application/vnd.osa.netdeploy": {
- "source": "iana"
- },
- "application/vnd.osgeo.mapguide.package": {
- "source": "iana",
- "extensions": ["mgp"]
- },
- "application/vnd.osgi.bundle": {
- "source": "iana"
- },
- "application/vnd.osgi.dp": {
- "source": "iana",
- "extensions": ["dp"]
- },
- "application/vnd.osgi.subsystem": {
- "source": "iana",
- "extensions": ["esa"]
- },
- "application/vnd.otps.ct-kip+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.oxli.countgraph": {
- "source": "iana"
- },
- "application/vnd.pagerduty+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.palm": {
- "source": "iana",
- "extensions": ["pdb","pqa","oprc"]
- },
- "application/vnd.panoply": {
- "source": "iana"
- },
- "application/vnd.paos.xml": {
- "source": "iana"
- },
- "application/vnd.patentdive": {
- "source": "iana"
- },
- "application/vnd.patientecommsdoc": {
- "source": "iana"
- },
- "application/vnd.pawaafile": {
- "source": "iana",
- "extensions": ["paw"]
- },
- "application/vnd.pcos": {
- "source": "iana"
- },
- "application/vnd.pg.format": {
- "source": "iana",
- "extensions": ["str"]
- },
- "application/vnd.pg.osasli": {
- "source": "iana",
- "extensions": ["ei6"]
- },
- "application/vnd.piaccess.application-licence": {
- "source": "iana"
- },
- "application/vnd.picsel": {
- "source": "iana",
- "extensions": ["efif"]
- },
- "application/vnd.pmi.widget": {
- "source": "iana",
- "extensions": ["wg"]
- },
- "application/vnd.poc.group-advertisement+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.pocketlearn": {
- "source": "iana",
- "extensions": ["plf"]
- },
- "application/vnd.powerbuilder6": {
- "source": "iana",
- "extensions": ["pbd"]
- },
- "application/vnd.powerbuilder6-s": {
- "source": "iana"
- },
- "application/vnd.powerbuilder7": {
- "source": "iana"
- },
- "application/vnd.powerbuilder7-s": {
- "source": "iana"
- },
- "application/vnd.powerbuilder75": {
- "source": "iana"
- },
- "application/vnd.powerbuilder75-s": {
- "source": "iana"
- },
- "application/vnd.preminet": {
- "source": "iana"
- },
- "application/vnd.previewsystems.box": {
- "source": "iana",
- "extensions": ["box"]
- },
- "application/vnd.proteus.magazine": {
- "source": "iana",
- "extensions": ["mgz"]
- },
- "application/vnd.psfs": {
- "source": "iana"
- },
- "application/vnd.publishare-delta-tree": {
- "source": "iana",
- "extensions": ["qps"]
- },
- "application/vnd.pvi.ptid1": {
- "source": "iana",
- "extensions": ["ptid"]
- },
- "application/vnd.pwg-multiplexed": {
- "source": "iana"
- },
- "application/vnd.pwg-xhtml-print+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.qualcomm.brew-app-res": {
- "source": "iana"
- },
- "application/vnd.quarantainenet": {
- "source": "iana"
- },
- "application/vnd.quark.quarkxpress": {
- "source": "iana",
- "extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"]
- },
- "application/vnd.quobject-quoxdocument": {
- "source": "iana"
- },
- "application/vnd.radisys.moml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-audit+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-audit-conf+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-audit-conn+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-audit-dialog+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-audit-stream+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-conf+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-dialog+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-dialog-base+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-dialog-fax-detect+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-dialog-group+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-dialog-speech+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.radisys.msml-dialog-transform+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.rainstor.data": {
- "source": "iana"
- },
- "application/vnd.rapid": {
- "source": "iana"
- },
- "application/vnd.rar": {
- "source": "iana"
- },
- "application/vnd.realvnc.bed": {
- "source": "iana",
- "extensions": ["bed"]
- },
- "application/vnd.recordare.musicxml": {
- "source": "iana",
- "extensions": ["mxl"]
- },
- "application/vnd.recordare.musicxml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["musicxml"]
- },
- "application/vnd.renlearn.rlprint": {
- "source": "iana"
- },
- "application/vnd.restful+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.rig.cryptonote": {
- "source": "iana",
- "extensions": ["cryptonote"]
- },
- "application/vnd.rim.cod": {
- "source": "apache",
- "extensions": ["cod"]
- },
- "application/vnd.rn-realmedia": {
- "source": "apache",
- "extensions": ["rm"]
- },
- "application/vnd.rn-realmedia-vbr": {
- "source": "apache",
- "extensions": ["rmvb"]
- },
- "application/vnd.route66.link66+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["link66"]
- },
- "application/vnd.rs-274x": {
- "source": "iana"
- },
- "application/vnd.ruckus.download": {
- "source": "iana"
- },
- "application/vnd.s3sms": {
- "source": "iana"
- },
- "application/vnd.sailingtracker.track": {
- "source": "iana",
- "extensions": ["st"]
- },
- "application/vnd.sar": {
- "source": "iana"
- },
- "application/vnd.sbm.cid": {
- "source": "iana"
- },
- "application/vnd.sbm.mid2": {
- "source": "iana"
- },
- "application/vnd.scribus": {
- "source": "iana"
- },
- "application/vnd.sealed.3df": {
- "source": "iana"
- },
- "application/vnd.sealed.csf": {
- "source": "iana"
- },
- "application/vnd.sealed.doc": {
- "source": "iana"
- },
- "application/vnd.sealed.eml": {
- "source": "iana"
- },
- "application/vnd.sealed.mht": {
- "source": "iana"
- },
- "application/vnd.sealed.net": {
- "source": "iana"
- },
- "application/vnd.sealed.ppt": {
- "source": "iana"
- },
- "application/vnd.sealed.tiff": {
- "source": "iana"
- },
- "application/vnd.sealed.xls": {
- "source": "iana"
- },
- "application/vnd.sealedmedia.softseal.html": {
- "source": "iana"
- },
- "application/vnd.sealedmedia.softseal.pdf": {
- "source": "iana"
- },
- "application/vnd.seemail": {
- "source": "iana",
- "extensions": ["see"]
- },
- "application/vnd.sema": {
- "source": "iana",
- "extensions": ["sema"]
- },
- "application/vnd.semd": {
- "source": "iana",
- "extensions": ["semd"]
- },
- "application/vnd.semf": {
- "source": "iana",
- "extensions": ["semf"]
- },
- "application/vnd.shade-save-file": {
- "source": "iana"
- },
- "application/vnd.shana.informed.formdata": {
- "source": "iana",
- "extensions": ["ifm"]
- },
- "application/vnd.shana.informed.formtemplate": {
- "source": "iana",
- "extensions": ["itp"]
- },
- "application/vnd.shana.informed.interchange": {
- "source": "iana",
- "extensions": ["iif"]
- },
- "application/vnd.shana.informed.package": {
- "source": "iana",
- "extensions": ["ipk"]
- },
- "application/vnd.shootproof+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.shopkick+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.shp": {
- "source": "iana"
- },
- "application/vnd.shx": {
- "source": "iana"
- },
- "application/vnd.sigrok.session": {
- "source": "iana"
- },
- "application/vnd.simtech-mindmapper": {
- "source": "iana",
- "extensions": ["twd","twds"]
- },
- "application/vnd.siren+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.smaf": {
- "source": "iana",
- "extensions": ["mmf"]
- },
- "application/vnd.smart.notebook": {
- "source": "iana"
- },
- "application/vnd.smart.teacher": {
- "source": "iana",
- "extensions": ["teacher"]
- },
- "application/vnd.snesdev-page-table": {
- "source": "iana"
- },
- "application/vnd.software602.filler.form+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["fo"]
- },
- "application/vnd.software602.filler.form-xml-zip": {
- "source": "iana"
- },
- "application/vnd.solent.sdkm+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["sdkm","sdkd"]
- },
- "application/vnd.spotfire.dxp": {
- "source": "iana",
- "extensions": ["dxp"]
- },
- "application/vnd.spotfire.sfs": {
- "source": "iana",
- "extensions": ["sfs"]
- },
- "application/vnd.sqlite3": {
- "source": "iana"
- },
- "application/vnd.sss-cod": {
- "source": "iana"
- },
- "application/vnd.sss-dtf": {
- "source": "iana"
- },
- "application/vnd.sss-ntf": {
- "source": "iana"
- },
- "application/vnd.stardivision.calc": {
- "source": "apache",
- "extensions": ["sdc"]
- },
- "application/vnd.stardivision.draw": {
- "source": "apache",
- "extensions": ["sda"]
- },
- "application/vnd.stardivision.impress": {
- "source": "apache",
- "extensions": ["sdd"]
- },
- "application/vnd.stardivision.math": {
- "source": "apache",
- "extensions": ["smf"]
- },
- "application/vnd.stardivision.writer": {
- "source": "apache",
- "extensions": ["sdw","vor"]
- },
- "application/vnd.stardivision.writer-global": {
- "source": "apache",
- "extensions": ["sgl"]
- },
- "application/vnd.stepmania.package": {
- "source": "iana",
- "extensions": ["smzip"]
- },
- "application/vnd.stepmania.stepchart": {
- "source": "iana",
- "extensions": ["sm"]
- },
- "application/vnd.street-stream": {
- "source": "iana"
- },
- "application/vnd.sun.wadl+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["wadl"]
- },
- "application/vnd.sun.xml.calc": {
- "source": "apache",
- "extensions": ["sxc"]
- },
- "application/vnd.sun.xml.calc.template": {
- "source": "apache",
- "extensions": ["stc"]
- },
- "application/vnd.sun.xml.draw": {
- "source": "apache",
- "extensions": ["sxd"]
- },
- "application/vnd.sun.xml.draw.template": {
- "source": "apache",
- "extensions": ["std"]
- },
- "application/vnd.sun.xml.impress": {
- "source": "apache",
- "extensions": ["sxi"]
- },
- "application/vnd.sun.xml.impress.template": {
- "source": "apache",
- "extensions": ["sti"]
- },
- "application/vnd.sun.xml.math": {
- "source": "apache",
- "extensions": ["sxm"]
- },
- "application/vnd.sun.xml.writer": {
- "source": "apache",
- "extensions": ["sxw"]
- },
- "application/vnd.sun.xml.writer.global": {
- "source": "apache",
- "extensions": ["sxg"]
- },
- "application/vnd.sun.xml.writer.template": {
- "source": "apache",
- "extensions": ["stw"]
- },
- "application/vnd.sus-calendar": {
- "source": "iana",
- "extensions": ["sus","susp"]
- },
- "application/vnd.svd": {
- "source": "iana",
- "extensions": ["svd"]
- },
- "application/vnd.swiftview-ics": {
- "source": "iana"
- },
- "application/vnd.symbian.install": {
- "source": "apache",
- "extensions": ["sis","sisx"]
- },
- "application/vnd.syncml+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["xsm"]
- },
- "application/vnd.syncml.dm+wbxml": {
- "source": "iana",
- "charset": "UTF-8",
- "extensions": ["bdm"]
- },
- "application/vnd.syncml.dm+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["xdm"]
- },
- "application/vnd.syncml.dm.notification": {
- "source": "iana"
- },
- "application/vnd.syncml.dmddf+wbxml": {
- "source": "iana"
- },
- "application/vnd.syncml.dmddf+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["ddf"]
- },
- "application/vnd.syncml.dmtnds+wbxml": {
- "source": "iana"
- },
- "application/vnd.syncml.dmtnds+xml": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true
- },
- "application/vnd.syncml.ds.notification": {
- "source": "iana"
- },
- "application/vnd.tableschema+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.tao.intent-module-archive": {
- "source": "iana",
- "extensions": ["tao"]
- },
- "application/vnd.tcpdump.pcap": {
- "source": "iana",
- "extensions": ["pcap","cap","dmp"]
- },
- "application/vnd.think-cell.ppttc+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.tmd.mediaflex.api+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.tml": {
- "source": "iana"
- },
- "application/vnd.tmobile-livetv": {
- "source": "iana",
- "extensions": ["tmo"]
- },
- "application/vnd.tri.onesource": {
- "source": "iana"
- },
- "application/vnd.trid.tpt": {
- "source": "iana",
- "extensions": ["tpt"]
- },
- "application/vnd.triscape.mxs": {
- "source": "iana",
- "extensions": ["mxs"]
- },
- "application/vnd.trueapp": {
- "source": "iana",
- "extensions": ["tra"]
- },
- "application/vnd.truedoc": {
- "source": "iana"
- },
- "application/vnd.ubisoft.webplayer": {
- "source": "iana"
- },
- "application/vnd.ufdl": {
- "source": "iana",
- "extensions": ["ufd","ufdl"]
- },
- "application/vnd.uiq.theme": {
- "source": "iana",
- "extensions": ["utz"]
- },
- "application/vnd.umajin": {
- "source": "iana",
- "extensions": ["umj"]
- },
- "application/vnd.unity": {
- "source": "iana",
- "extensions": ["unityweb"]
- },
- "application/vnd.uoml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["uoml"]
- },
- "application/vnd.uplanet.alert": {
- "source": "iana"
- },
- "application/vnd.uplanet.alert-wbxml": {
- "source": "iana"
- },
- "application/vnd.uplanet.bearer-choice": {
- "source": "iana"
- },
- "application/vnd.uplanet.bearer-choice-wbxml": {
- "source": "iana"
- },
- "application/vnd.uplanet.cacheop": {
- "source": "iana"
- },
- "application/vnd.uplanet.cacheop-wbxml": {
- "source": "iana"
- },
- "application/vnd.uplanet.channel": {
- "source": "iana"
- },
- "application/vnd.uplanet.channel-wbxml": {
- "source": "iana"
- },
- "application/vnd.uplanet.list": {
- "source": "iana"
- },
- "application/vnd.uplanet.list-wbxml": {
- "source": "iana"
- },
- "application/vnd.uplanet.listcmd": {
- "source": "iana"
- },
- "application/vnd.uplanet.listcmd-wbxml": {
- "source": "iana"
- },
- "application/vnd.uplanet.signal": {
- "source": "iana"
- },
- "application/vnd.uri-map": {
- "source": "iana"
- },
- "application/vnd.valve.source.material": {
- "source": "iana"
- },
- "application/vnd.vcx": {
- "source": "iana",
- "extensions": ["vcx"]
- },
- "application/vnd.vd-study": {
- "source": "iana"
- },
- "application/vnd.vectorworks": {
- "source": "iana"
- },
- "application/vnd.vel+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.verimatrix.vcas": {
- "source": "iana"
- },
- "application/vnd.veryant.thin": {
- "source": "iana"
- },
- "application/vnd.ves.encrypted": {
- "source": "iana"
- },
- "application/vnd.vidsoft.vidconference": {
- "source": "iana"
- },
- "application/vnd.visio": {
- "source": "iana",
- "extensions": ["vsd","vst","vss","vsw"]
- },
- "application/vnd.visionary": {
- "source": "iana",
- "extensions": ["vis"]
- },
- "application/vnd.vividence.scriptfile": {
- "source": "iana"
- },
- "application/vnd.vsf": {
- "source": "iana",
- "extensions": ["vsf"]
- },
- "application/vnd.wap.sic": {
- "source": "iana"
- },
- "application/vnd.wap.slc": {
- "source": "iana"
- },
- "application/vnd.wap.wbxml": {
- "source": "iana",
- "charset": "UTF-8",
- "extensions": ["wbxml"]
- },
- "application/vnd.wap.wmlc": {
- "source": "iana",
- "extensions": ["wmlc"]
- },
- "application/vnd.wap.wmlscriptc": {
- "source": "iana",
- "extensions": ["wmlsc"]
- },
- "application/vnd.webturbo": {
- "source": "iana",
- "extensions": ["wtb"]
- },
- "application/vnd.wfa.p2p": {
- "source": "iana"
- },
- "application/vnd.wfa.wsc": {
- "source": "iana"
- },
- "application/vnd.windows.devicepairing": {
- "source": "iana"
- },
- "application/vnd.wmc": {
- "source": "iana"
- },
- "application/vnd.wmf.bootstrap": {
- "source": "iana"
- },
- "application/vnd.wolfram.mathematica": {
- "source": "iana"
- },
- "application/vnd.wolfram.mathematica.package": {
- "source": "iana"
- },
- "application/vnd.wolfram.player": {
- "source": "iana",
- "extensions": ["nbp"]
- },
- "application/vnd.wordperfect": {
- "source": "iana",
- "extensions": ["wpd"]
- },
- "application/vnd.wqd": {
- "source": "iana",
- "extensions": ["wqd"]
- },
- "application/vnd.wrq-hp3000-labelled": {
- "source": "iana"
- },
- "application/vnd.wt.stf": {
- "source": "iana",
- "extensions": ["stf"]
- },
- "application/vnd.wv.csp+wbxml": {
- "source": "iana"
- },
- "application/vnd.wv.csp+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.wv.ssp+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.xacml+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.xara": {
- "source": "iana",
- "extensions": ["xar"]
- },
- "application/vnd.xfdl": {
- "source": "iana",
- "extensions": ["xfdl"]
- },
- "application/vnd.xfdl.webform": {
- "source": "iana"
- },
- "application/vnd.xmi+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/vnd.xmpie.cpkg": {
- "source": "iana"
- },
- "application/vnd.xmpie.dpkg": {
- "source": "iana"
- },
- "application/vnd.xmpie.plan": {
- "source": "iana"
- },
- "application/vnd.xmpie.ppkg": {
- "source": "iana"
- },
- "application/vnd.xmpie.xlim": {
- "source": "iana"
- },
- "application/vnd.yamaha.hv-dic": {
- "source": "iana",
- "extensions": ["hvd"]
- },
- "application/vnd.yamaha.hv-script": {
- "source": "iana",
- "extensions": ["hvs"]
- },
- "application/vnd.yamaha.hv-voice": {
- "source": "iana",
- "extensions": ["hvp"]
- },
- "application/vnd.yamaha.openscoreformat": {
- "source": "iana",
- "extensions": ["osf"]
- },
- "application/vnd.yamaha.openscoreformat.osfpvg+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["osfpvg"]
- },
- "application/vnd.yamaha.remote-setup": {
- "source": "iana"
- },
- "application/vnd.yamaha.smaf-audio": {
- "source": "iana",
- "extensions": ["saf"]
- },
- "application/vnd.yamaha.smaf-phrase": {
- "source": "iana",
- "extensions": ["spf"]
- },
- "application/vnd.yamaha.through-ngn": {
- "source": "iana"
- },
- "application/vnd.yamaha.tunnel-udpencap": {
- "source": "iana"
- },
- "application/vnd.yaoweme": {
- "source": "iana"
- },
- "application/vnd.yellowriver-custom-menu": {
- "source": "iana",
- "extensions": ["cmp"]
- },
- "application/vnd.youtube.yt": {
- "source": "iana"
- },
- "application/vnd.zul": {
- "source": "iana",
- "extensions": ["zir","zirz"]
- },
- "application/vnd.zzazz.deck+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["zaz"]
- },
- "application/voicexml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["vxml"]
- },
- "application/voucher-cms+json": {
- "source": "iana",
- "compressible": true
- },
- "application/vq-rtcpxr": {
- "source": "iana"
- },
- "application/wasm": {
- "compressible": true,
- "extensions": ["wasm"]
- },
- "application/watcherinfo+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/webpush-options+json": {
- "source": "iana",
- "compressible": true
- },
- "application/whoispp-query": {
- "source": "iana"
- },
- "application/whoispp-response": {
- "source": "iana"
- },
- "application/widget": {
- "source": "iana",
- "extensions": ["wgt"]
- },
- "application/winhlp": {
- "source": "apache",
- "extensions": ["hlp"]
- },
- "application/wita": {
- "source": "iana"
- },
- "application/wordperfect5.1": {
- "source": "iana"
- },
- "application/wsdl+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["wsdl"]
- },
- "application/wspolicy+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["wspolicy"]
- },
- "application/x-7z-compressed": {
- "source": "apache",
- "compressible": false,
- "extensions": ["7z"]
- },
- "application/x-abiword": {
- "source": "apache",
- "extensions": ["abw"]
- },
- "application/x-ace-compressed": {
- "source": "apache",
- "extensions": ["ace"]
- },
- "application/x-amf": {
- "source": "apache"
- },
- "application/x-apple-diskimage": {
- "source": "apache",
- "extensions": ["dmg"]
- },
- "application/x-arj": {
- "compressible": false,
- "extensions": ["arj"]
- },
- "application/x-authorware-bin": {
- "source": "apache",
- "extensions": ["aab","x32","u32","vox"]
- },
- "application/x-authorware-map": {
- "source": "apache",
- "extensions": ["aam"]
- },
- "application/x-authorware-seg": {
- "source": "apache",
- "extensions": ["aas"]
- },
- "application/x-bcpio": {
- "source": "apache",
- "extensions": ["bcpio"]
- },
- "application/x-bdoc": {
- "compressible": false,
- "extensions": ["bdoc"]
- },
- "application/x-bittorrent": {
- "source": "apache",
- "extensions": ["torrent"]
- },
- "application/x-blorb": {
- "source": "apache",
- "extensions": ["blb","blorb"]
- },
- "application/x-bzip": {
- "source": "apache",
- "compressible": false,
- "extensions": ["bz"]
- },
- "application/x-bzip2": {
- "source": "apache",
- "compressible": false,
- "extensions": ["bz2","boz"]
- },
- "application/x-cbr": {
- "source": "apache",
- "extensions": ["cbr","cba","cbt","cbz","cb7"]
- },
- "application/x-cdlink": {
- "source": "apache",
- "extensions": ["vcd"]
- },
- "application/x-cfs-compressed": {
- "source": "apache",
- "extensions": ["cfs"]
- },
- "application/x-chat": {
- "source": "apache",
- "extensions": ["chat"]
- },
- "application/x-chess-pgn": {
- "source": "apache",
- "extensions": ["pgn"]
- },
- "application/x-chrome-extension": {
- "extensions": ["crx"]
- },
- "application/x-cocoa": {
- "source": "nginx",
- "extensions": ["cco"]
- },
- "application/x-compress": {
- "source": "apache"
- },
- "application/x-conference": {
- "source": "apache",
- "extensions": ["nsc"]
- },
- "application/x-cpio": {
- "source": "apache",
- "extensions": ["cpio"]
- },
- "application/x-csh": {
- "source": "apache",
- "extensions": ["csh"]
- },
- "application/x-deb": {
- "compressible": false
- },
- "application/x-debian-package": {
- "source": "apache",
- "extensions": ["deb","udeb"]
- },
- "application/x-dgc-compressed": {
- "source": "apache",
- "extensions": ["dgc"]
- },
- "application/x-director": {
- "source": "apache",
- "extensions": ["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]
- },
- "application/x-doom": {
- "source": "apache",
- "extensions": ["wad"]
- },
- "application/x-dtbncx+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["ncx"]
- },
- "application/x-dtbook+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["dtb"]
- },
- "application/x-dtbresource+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["res"]
- },
- "application/x-dvi": {
- "source": "apache",
- "compressible": false,
- "extensions": ["dvi"]
- },
- "application/x-envoy": {
- "source": "apache",
- "extensions": ["evy"]
- },
- "application/x-eva": {
- "source": "apache",
- "extensions": ["eva"]
- },
- "application/x-font-bdf": {
- "source": "apache",
- "extensions": ["bdf"]
- },
- "application/x-font-dos": {
- "source": "apache"
- },
- "application/x-font-framemaker": {
- "source": "apache"
- },
- "application/x-font-ghostscript": {
- "source": "apache",
- "extensions": ["gsf"]
- },
- "application/x-font-libgrx": {
- "source": "apache"
- },
- "application/x-font-linux-psf": {
- "source": "apache",
- "extensions": ["psf"]
- },
- "application/x-font-pcf": {
- "source": "apache",
- "extensions": ["pcf"]
- },
- "application/x-font-snf": {
- "source": "apache",
- "extensions": ["snf"]
- },
- "application/x-font-speedo": {
- "source": "apache"
- },
- "application/x-font-sunos-news": {
- "source": "apache"
- },
- "application/x-font-type1": {
- "source": "apache",
- "extensions": ["pfa","pfb","pfm","afm"]
- },
- "application/x-font-vfont": {
- "source": "apache"
- },
- "application/x-freearc": {
- "source": "apache",
- "extensions": ["arc"]
- },
- "application/x-futuresplash": {
- "source": "apache",
- "extensions": ["spl"]
- },
- "application/x-gca-compressed": {
- "source": "apache",
- "extensions": ["gca"]
- },
- "application/x-glulx": {
- "source": "apache",
- "extensions": ["ulx"]
- },
- "application/x-gnumeric": {
- "source": "apache",
- "extensions": ["gnumeric"]
- },
- "application/x-gramps-xml": {
- "source": "apache",
- "extensions": ["gramps"]
- },
- "application/x-gtar": {
- "source": "apache",
- "extensions": ["gtar"]
- },
- "application/x-gzip": {
- "source": "apache"
- },
- "application/x-hdf": {
- "source": "apache",
- "extensions": ["hdf"]
- },
- "application/x-httpd-php": {
- "compressible": true,
- "extensions": ["php"]
- },
- "application/x-install-instructions": {
- "source": "apache",
- "extensions": ["install"]
- },
- "application/x-iso9660-image": {
- "source": "apache",
- "extensions": ["iso"]
- },
- "application/x-java-archive-diff": {
- "source": "nginx",
- "extensions": ["jardiff"]
- },
- "application/x-java-jnlp-file": {
- "source": "apache",
- "compressible": false,
- "extensions": ["jnlp"]
- },
- "application/x-javascript": {
- "compressible": true
- },
- "application/x-keepass2": {
- "extensions": ["kdbx"]
- },
- "application/x-latex": {
- "source": "apache",
- "compressible": false,
- "extensions": ["latex"]
- },
- "application/x-lua-bytecode": {
- "extensions": ["luac"]
- },
- "application/x-lzh-compressed": {
- "source": "apache",
- "extensions": ["lzh","lha"]
- },
- "application/x-makeself": {
- "source": "nginx",
- "extensions": ["run"]
- },
- "application/x-mie": {
- "source": "apache",
- "extensions": ["mie"]
- },
- "application/x-mobipocket-ebook": {
- "source": "apache",
- "extensions": ["prc","mobi"]
- },
- "application/x-mpegurl": {
- "compressible": false
- },
- "application/x-ms-application": {
- "source": "apache",
- "extensions": ["application"]
- },
- "application/x-ms-shortcut": {
- "source": "apache",
- "extensions": ["lnk"]
- },
- "application/x-ms-wmd": {
- "source": "apache",
- "extensions": ["wmd"]
- },
- "application/x-ms-wmz": {
- "source": "apache",
- "extensions": ["wmz"]
- },
- "application/x-ms-xbap": {
- "source": "apache",
- "extensions": ["xbap"]
- },
- "application/x-msaccess": {
- "source": "apache",
- "extensions": ["mdb"]
- },
- "application/x-msbinder": {
- "source": "apache",
- "extensions": ["obd"]
- },
- "application/x-mscardfile": {
- "source": "apache",
- "extensions": ["crd"]
- },
- "application/x-msclip": {
- "source": "apache",
- "extensions": ["clp"]
- },
- "application/x-msdos-program": {
- "extensions": ["exe"]
- },
- "application/x-msdownload": {
- "source": "apache",
- "extensions": ["exe","dll","com","bat","msi"]
- },
- "application/x-msmediaview": {
- "source": "apache",
- "extensions": ["mvb","m13","m14"]
- },
- "application/x-msmetafile": {
- "source": "apache",
- "extensions": ["wmf","wmz","emf","emz"]
- },
- "application/x-msmoney": {
- "source": "apache",
- "extensions": ["mny"]
- },
- "application/x-mspublisher": {
- "source": "apache",
- "extensions": ["pub"]
- },
- "application/x-msschedule": {
- "source": "apache",
- "extensions": ["scd"]
- },
- "application/x-msterminal": {
- "source": "apache",
- "extensions": ["trm"]
- },
- "application/x-mswrite": {
- "source": "apache",
- "extensions": ["wri"]
- },
- "application/x-netcdf": {
- "source": "apache",
- "extensions": ["nc","cdf"]
- },
- "application/x-ns-proxy-autoconfig": {
- "compressible": true,
- "extensions": ["pac"]
- },
- "application/x-nzb": {
- "source": "apache",
- "extensions": ["nzb"]
- },
- "application/x-perl": {
- "source": "nginx",
- "extensions": ["pl","pm"]
- },
- "application/x-pilot": {
- "source": "nginx",
- "extensions": ["prc","pdb"]
- },
- "application/x-pkcs12": {
- "source": "apache",
- "compressible": false,
- "extensions": ["p12","pfx"]
- },
- "application/x-pkcs7-certificates": {
- "source": "apache",
- "extensions": ["p7b","spc"]
- },
- "application/x-pkcs7-certreqresp": {
- "source": "apache",
- "extensions": ["p7r"]
- },
- "application/x-pki-message": {
- "source": "iana"
- },
- "application/x-rar-compressed": {
- "source": "apache",
- "compressible": false,
- "extensions": ["rar"]
- },
- "application/x-redhat-package-manager": {
- "source": "nginx",
- "extensions": ["rpm"]
- },
- "application/x-research-info-systems": {
- "source": "apache",
- "extensions": ["ris"]
- },
- "application/x-sea": {
- "source": "nginx",
- "extensions": ["sea"]
- },
- "application/x-sh": {
- "source": "apache",
- "compressible": true,
- "extensions": ["sh"]
- },
- "application/x-shar": {
- "source": "apache",
- "extensions": ["shar"]
- },
- "application/x-shockwave-flash": {
- "source": "apache",
- "compressible": false,
- "extensions": ["swf"]
- },
- "application/x-silverlight-app": {
- "source": "apache",
- "extensions": ["xap"]
- },
- "application/x-sql": {
- "source": "apache",
- "extensions": ["sql"]
- },
- "application/x-stuffit": {
- "source": "apache",
- "compressible": false,
- "extensions": ["sit"]
- },
- "application/x-stuffitx": {
- "source": "apache",
- "extensions": ["sitx"]
- },
- "application/x-subrip": {
- "source": "apache",
- "extensions": ["srt"]
- },
- "application/x-sv4cpio": {
- "source": "apache",
- "extensions": ["sv4cpio"]
- },
- "application/x-sv4crc": {
- "source": "apache",
- "extensions": ["sv4crc"]
- },
- "application/x-t3vm-image": {
- "source": "apache",
- "extensions": ["t3"]
- },
- "application/x-tads": {
- "source": "apache",
- "extensions": ["gam"]
- },
- "application/x-tar": {
- "source": "apache",
- "compressible": true,
- "extensions": ["tar"]
- },
- "application/x-tcl": {
- "source": "apache",
- "extensions": ["tcl","tk"]
- },
- "application/x-tex": {
- "source": "apache",
- "extensions": ["tex"]
- },
- "application/x-tex-tfm": {
- "source": "apache",
- "extensions": ["tfm"]
- },
- "application/x-texinfo": {
- "source": "apache",
- "extensions": ["texinfo","texi"]
- },
- "application/x-tgif": {
- "source": "apache",
- "extensions": ["obj"]
- },
- "application/x-ustar": {
- "source": "apache",
- "extensions": ["ustar"]
- },
- "application/x-virtualbox-hdd": {
- "compressible": true,
- "extensions": ["hdd"]
- },
- "application/x-virtualbox-ova": {
- "compressible": true,
- "extensions": ["ova"]
- },
- "application/x-virtualbox-ovf": {
- "compressible": true,
- "extensions": ["ovf"]
- },
- "application/x-virtualbox-vbox": {
- "compressible": true,
- "extensions": ["vbox"]
- },
- "application/x-virtualbox-vbox-extpack": {
- "compressible": false,
- "extensions": ["vbox-extpack"]
- },
- "application/x-virtualbox-vdi": {
- "compressible": true,
- "extensions": ["vdi"]
- },
- "application/x-virtualbox-vhd": {
- "compressible": true,
- "extensions": ["vhd"]
- },
- "application/x-virtualbox-vmdk": {
- "compressible": true,
- "extensions": ["vmdk"]
- },
- "application/x-wais-source": {
- "source": "apache",
- "extensions": ["src"]
- },
- "application/x-web-app-manifest+json": {
- "compressible": true,
- "extensions": ["webapp"]
- },
- "application/x-www-form-urlencoded": {
- "source": "iana",
- "compressible": true
- },
- "application/x-x509-ca-cert": {
- "source": "iana",
- "extensions": ["der","crt","pem"]
- },
- "application/x-x509-ca-ra-cert": {
- "source": "iana"
- },
- "application/x-x509-next-ca-cert": {
- "source": "iana"
- },
- "application/x-xfig": {
- "source": "apache",
- "extensions": ["fig"]
- },
- "application/x-xliff+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["xlf"]
- },
- "application/x-xpinstall": {
- "source": "apache",
- "compressible": false,
- "extensions": ["xpi"]
- },
- "application/x-xz": {
- "source": "apache",
- "extensions": ["xz"]
- },
- "application/x-zmachine": {
- "source": "apache",
- "extensions": ["z1","z2","z3","z4","z5","z6","z7","z8"]
- },
- "application/x400-bp": {
- "source": "iana"
- },
- "application/xacml+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/xaml+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["xaml"]
- },
- "application/xcap-att+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xav"]
- },
- "application/xcap-caps+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xca"]
- },
- "application/xcap-diff+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xdf"]
- },
- "application/xcap-el+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xel"]
- },
- "application/xcap-error+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xer"]
- },
- "application/xcap-ns+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xns"]
- },
- "application/xcon-conference-info+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/xcon-conference-info-diff+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/xenc+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xenc"]
- },
- "application/xhtml+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xhtml","xht"]
- },
- "application/xhtml-voice+xml": {
- "source": "apache",
- "compressible": true
- },
- "application/xliff+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xlf"]
- },
- "application/xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xml","xsl","xsd","rng"]
- },
- "application/xml-dtd": {
- "source": "iana",
- "compressible": true,
- "extensions": ["dtd"]
- },
- "application/xml-external-parsed-entity": {
- "source": "iana"
- },
- "application/xml-patch+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/xmpp+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/xop+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xop"]
- },
- "application/xproc+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["xpl"]
- },
- "application/xslt+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xslt"]
- },
- "application/xspf+xml": {
- "source": "apache",
- "compressible": true,
- "extensions": ["xspf"]
- },
- "application/xv+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["mxml","xhvml","xvml","xvm"]
- },
- "application/yang": {
- "source": "iana",
- "extensions": ["yang"]
- },
- "application/yang-data+json": {
- "source": "iana",
- "compressible": true
- },
- "application/yang-data+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/yang-patch+json": {
- "source": "iana",
- "compressible": true
- },
- "application/yang-patch+xml": {
- "source": "iana",
- "compressible": true
- },
- "application/yin+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["yin"]
- },
- "application/zip": {
- "source": "iana",
- "compressible": false,
- "extensions": ["zip"]
- },
- "application/zlib": {
- "source": "iana"
- },
- "application/zstd": {
- "source": "iana"
- },
- "audio/1d-interleaved-parityfec": {
- "source": "iana"
- },
- "audio/32kadpcm": {
- "source": "iana"
- },
- "audio/3gpp": {
- "source": "iana",
- "compressible": false,
- "extensions": ["3gpp"]
- },
- "audio/3gpp2": {
- "source": "iana"
- },
- "audio/aac": {
- "source": "iana"
- },
- "audio/ac3": {
- "source": "iana"
- },
- "audio/adpcm": {
- "source": "apache",
- "extensions": ["adp"]
- },
- "audio/amr": {
- "source": "iana"
- },
- "audio/amr-wb": {
- "source": "iana"
- },
- "audio/amr-wb+": {
- "source": "iana"
- },
- "audio/aptx": {
- "source": "iana"
- },
- "audio/asc": {
- "source": "iana"
- },
- "audio/atrac-advanced-lossless": {
- "source": "iana"
- },
- "audio/atrac-x": {
- "source": "iana"
- },
- "audio/atrac3": {
- "source": "iana"
- },
- "audio/basic": {
- "source": "iana",
- "compressible": false,
- "extensions": ["au","snd"]
- },
- "audio/bv16": {
- "source": "iana"
- },
- "audio/bv32": {
- "source": "iana"
- },
- "audio/clearmode": {
- "source": "iana"
- },
- "audio/cn": {
- "source": "iana"
- },
- "audio/dat12": {
- "source": "iana"
- },
- "audio/dls": {
- "source": "iana"
- },
- "audio/dsr-es201108": {
- "source": "iana"
- },
- "audio/dsr-es202050": {
- "source": "iana"
- },
- "audio/dsr-es202211": {
- "source": "iana"
- },
- "audio/dsr-es202212": {
- "source": "iana"
- },
- "audio/dv": {
- "source": "iana"
- },
- "audio/dvi4": {
- "source": "iana"
- },
- "audio/eac3": {
- "source": "iana"
- },
- "audio/encaprtp": {
- "source": "iana"
- },
- "audio/evrc": {
- "source": "iana"
- },
- "audio/evrc-qcp": {
- "source": "iana"
- },
- "audio/evrc0": {
- "source": "iana"
- },
- "audio/evrc1": {
- "source": "iana"
- },
- "audio/evrcb": {
- "source": "iana"
- },
- "audio/evrcb0": {
- "source": "iana"
- },
- "audio/evrcb1": {
- "source": "iana"
- },
- "audio/evrcnw": {
- "source": "iana"
- },
- "audio/evrcnw0": {
- "source": "iana"
- },
- "audio/evrcnw1": {
- "source": "iana"
- },
- "audio/evrcwb": {
- "source": "iana"
- },
- "audio/evrcwb0": {
- "source": "iana"
- },
- "audio/evrcwb1": {
- "source": "iana"
- },
- "audio/evs": {
- "source": "iana"
- },
- "audio/flexfec": {
- "source": "iana"
- },
- "audio/fwdred": {
- "source": "iana"
- },
- "audio/g711-0": {
- "source": "iana"
- },
- "audio/g719": {
- "source": "iana"
- },
- "audio/g722": {
- "source": "iana"
- },
- "audio/g7221": {
- "source": "iana"
- },
- "audio/g723": {
- "source": "iana"
- },
- "audio/g726-16": {
- "source": "iana"
- },
- "audio/g726-24": {
- "source": "iana"
- },
- "audio/g726-32": {
- "source": "iana"
- },
- "audio/g726-40": {
- "source": "iana"
- },
- "audio/g728": {
- "source": "iana"
- },
- "audio/g729": {
- "source": "iana"
- },
- "audio/g7291": {
- "source": "iana"
- },
- "audio/g729d": {
- "source": "iana"
- },
- "audio/g729e": {
- "source": "iana"
- },
- "audio/gsm": {
- "source": "iana"
- },
- "audio/gsm-efr": {
- "source": "iana"
- },
- "audio/gsm-hr-08": {
- "source": "iana"
- },
- "audio/ilbc": {
- "source": "iana"
- },
- "audio/ip-mr_v2.5": {
- "source": "iana"
- },
- "audio/isac": {
- "source": "apache"
- },
- "audio/l16": {
- "source": "iana"
- },
- "audio/l20": {
- "source": "iana"
- },
- "audio/l24": {
- "source": "iana",
- "compressible": false
- },
- "audio/l8": {
- "source": "iana"
- },
- "audio/lpc": {
- "source": "iana"
- },
- "audio/melp": {
- "source": "iana"
- },
- "audio/melp1200": {
- "source": "iana"
- },
- "audio/melp2400": {
- "source": "iana"
- },
- "audio/melp600": {
- "source": "iana"
- },
- "audio/mhas": {
- "source": "iana"
- },
- "audio/midi": {
- "source": "apache",
- "extensions": ["mid","midi","kar","rmi"]
- },
- "audio/mobile-xmf": {
- "source": "iana",
- "extensions": ["mxmf"]
- },
- "audio/mp3": {
- "compressible": false,
- "extensions": ["mp3"]
- },
- "audio/mp4": {
- "source": "iana",
- "compressible": false,
- "extensions": ["m4a","mp4a"]
- },
- "audio/mp4a-latm": {
- "source": "iana"
- },
- "audio/mpa": {
- "source": "iana"
- },
- "audio/mpa-robust": {
- "source": "iana"
- },
- "audio/mpeg": {
- "source": "iana",
- "compressible": false,
- "extensions": ["mpga","mp2","mp2a","mp3","m2a","m3a"]
- },
- "audio/mpeg4-generic": {
- "source": "iana"
- },
- "audio/musepack": {
- "source": "apache"
- },
- "audio/ogg": {
- "source": "iana",
- "compressible": false,
- "extensions": ["oga","ogg","spx"]
- },
- "audio/opus": {
- "source": "iana"
- },
- "audio/parityfec": {
- "source": "iana"
- },
- "audio/pcma": {
- "source": "iana"
- },
- "audio/pcma-wb": {
- "source": "iana"
- },
- "audio/pcmu": {
- "source": "iana"
- },
- "audio/pcmu-wb": {
- "source": "iana"
- },
- "audio/prs.sid": {
- "source": "iana"
- },
- "audio/qcelp": {
- "source": "iana"
- },
- "audio/raptorfec": {
- "source": "iana"
- },
- "audio/red": {
- "source": "iana"
- },
- "audio/rtp-enc-aescm128": {
- "source": "iana"
- },
- "audio/rtp-midi": {
- "source": "iana"
- },
- "audio/rtploopback": {
- "source": "iana"
- },
- "audio/rtx": {
- "source": "iana"
- },
- "audio/s3m": {
- "source": "apache",
- "extensions": ["s3m"]
- },
- "audio/silk": {
- "source": "apache",
- "extensions": ["sil"]
- },
- "audio/smv": {
- "source": "iana"
- },
- "audio/smv-qcp": {
- "source": "iana"
- },
- "audio/smv0": {
- "source": "iana"
- },
- "audio/sp-midi": {
- "source": "iana"
- },
- "audio/speex": {
- "source": "iana"
- },
- "audio/t140c": {
- "source": "iana"
- },
- "audio/t38": {
- "source": "iana"
- },
- "audio/telephone-event": {
- "source": "iana"
- },
- "audio/tetra_acelp": {
- "source": "iana"
- },
- "audio/tetra_acelp_bb": {
- "source": "iana"
- },
- "audio/tone": {
- "source": "iana"
- },
- "audio/uemclip": {
- "source": "iana"
- },
- "audio/ulpfec": {
- "source": "iana"
- },
- "audio/usac": {
- "source": "iana"
- },
- "audio/vdvi": {
- "source": "iana"
- },
- "audio/vmr-wb": {
- "source": "iana"
- },
- "audio/vnd.3gpp.iufp": {
- "source": "iana"
- },
- "audio/vnd.4sb": {
- "source": "iana"
- },
- "audio/vnd.audiokoz": {
- "source": "iana"
- },
- "audio/vnd.celp": {
- "source": "iana"
- },
- "audio/vnd.cisco.nse": {
- "source": "iana"
- },
- "audio/vnd.cmles.radio-events": {
- "source": "iana"
- },
- "audio/vnd.cns.anp1": {
- "source": "iana"
- },
- "audio/vnd.cns.inf1": {
- "source": "iana"
- },
- "audio/vnd.dece.audio": {
- "source": "iana",
- "extensions": ["uva","uvva"]
- },
- "audio/vnd.digital-winds": {
- "source": "iana",
- "extensions": ["eol"]
- },
- "audio/vnd.dlna.adts": {
- "source": "iana"
- },
- "audio/vnd.dolby.heaac.1": {
- "source": "iana"
- },
- "audio/vnd.dolby.heaac.2": {
- "source": "iana"
- },
- "audio/vnd.dolby.mlp": {
- "source": "iana"
- },
- "audio/vnd.dolby.mps": {
- "source": "iana"
- },
- "audio/vnd.dolby.pl2": {
- "source": "iana"
- },
- "audio/vnd.dolby.pl2x": {
- "source": "iana"
- },
- "audio/vnd.dolby.pl2z": {
- "source": "iana"
- },
- "audio/vnd.dolby.pulse.1": {
- "source": "iana"
- },
- "audio/vnd.dra": {
- "source": "iana",
- "extensions": ["dra"]
- },
- "audio/vnd.dts": {
- "source": "iana",
- "extensions": ["dts"]
- },
- "audio/vnd.dts.hd": {
- "source": "iana",
- "extensions": ["dtshd"]
- },
- "audio/vnd.dts.uhd": {
- "source": "iana"
- },
- "audio/vnd.dvb.file": {
- "source": "iana"
- },
- "audio/vnd.everad.plj": {
- "source": "iana"
- },
- "audio/vnd.hns.audio": {
- "source": "iana"
- },
- "audio/vnd.lucent.voice": {
- "source": "iana",
- "extensions": ["lvp"]
- },
- "audio/vnd.ms-playready.media.pya": {
- "source": "iana",
- "extensions": ["pya"]
- },
- "audio/vnd.nokia.mobile-xmf": {
- "source": "iana"
- },
- "audio/vnd.nortel.vbk": {
- "source": "iana"
- },
- "audio/vnd.nuera.ecelp4800": {
- "source": "iana",
- "extensions": ["ecelp4800"]
- },
- "audio/vnd.nuera.ecelp7470": {
- "source": "iana",
- "extensions": ["ecelp7470"]
- },
- "audio/vnd.nuera.ecelp9600": {
- "source": "iana",
- "extensions": ["ecelp9600"]
- },
- "audio/vnd.octel.sbc": {
- "source": "iana"
- },
- "audio/vnd.presonus.multitrack": {
- "source": "iana"
- },
- "audio/vnd.qcelp": {
- "source": "iana"
- },
- "audio/vnd.rhetorex.32kadpcm": {
- "source": "iana"
- },
- "audio/vnd.rip": {
- "source": "iana",
- "extensions": ["rip"]
- },
- "audio/vnd.rn-realaudio": {
- "compressible": false
- },
- "audio/vnd.sealedmedia.softseal.mpeg": {
- "source": "iana"
- },
- "audio/vnd.vmx.cvsd": {
- "source": "iana"
- },
- "audio/vnd.wave": {
- "compressible": false
- },
- "audio/vorbis": {
- "source": "iana",
- "compressible": false
- },
- "audio/vorbis-config": {
- "source": "iana"
- },
- "audio/wav": {
- "compressible": false,
- "extensions": ["wav"]
- },
- "audio/wave": {
- "compressible": false,
- "extensions": ["wav"]
- },
- "audio/webm": {
- "source": "apache",
- "compressible": false,
- "extensions": ["weba"]
- },
- "audio/x-aac": {
- "source": "apache",
- "compressible": false,
- "extensions": ["aac"]
- },
- "audio/x-aiff": {
- "source": "apache",
- "extensions": ["aif","aiff","aifc"]
- },
- "audio/x-caf": {
- "source": "apache",
- "compressible": false,
- "extensions": ["caf"]
- },
- "audio/x-flac": {
- "source": "apache",
- "extensions": ["flac"]
- },
- "audio/x-m4a": {
- "source": "nginx",
- "extensions": ["m4a"]
- },
- "audio/x-matroska": {
- "source": "apache",
- "extensions": ["mka"]
- },
- "audio/x-mpegurl": {
- "source": "apache",
- "extensions": ["m3u"]
- },
- "audio/x-ms-wax": {
- "source": "apache",
- "extensions": ["wax"]
- },
- "audio/x-ms-wma": {
- "source": "apache",
- "extensions": ["wma"]
- },
- "audio/x-pn-realaudio": {
- "source": "apache",
- "extensions": ["ram","ra"]
- },
- "audio/x-pn-realaudio-plugin": {
- "source": "apache",
- "extensions": ["rmp"]
- },
- "audio/x-realaudio": {
- "source": "nginx",
- "extensions": ["ra"]
- },
- "audio/x-tta": {
- "source": "apache"
- },
- "audio/x-wav": {
- "source": "apache",
- "extensions": ["wav"]
- },
- "audio/xm": {
- "source": "apache",
- "extensions": ["xm"]
- },
- "chemical/x-cdx": {
- "source": "apache",
- "extensions": ["cdx"]
- },
- "chemical/x-cif": {
- "source": "apache",
- "extensions": ["cif"]
- },
- "chemical/x-cmdf": {
- "source": "apache",
- "extensions": ["cmdf"]
- },
- "chemical/x-cml": {
- "source": "apache",
- "extensions": ["cml"]
- },
- "chemical/x-csml": {
- "source": "apache",
- "extensions": ["csml"]
- },
- "chemical/x-pdb": {
- "source": "apache"
- },
- "chemical/x-xyz": {
- "source": "apache",
- "extensions": ["xyz"]
- },
- "font/collection": {
- "source": "iana",
- "extensions": ["ttc"]
- },
- "font/otf": {
- "source": "iana",
- "compressible": true,
- "extensions": ["otf"]
- },
- "font/sfnt": {
- "source": "iana"
- },
- "font/ttf": {
- "source": "iana",
- "compressible": true,
- "extensions": ["ttf"]
- },
- "font/woff": {
- "source": "iana",
- "extensions": ["woff"]
- },
- "font/woff2": {
- "source": "iana",
- "extensions": ["woff2"]
- },
- "image/aces": {
- "source": "iana",
- "extensions": ["exr"]
- },
- "image/apng": {
- "compressible": false,
- "extensions": ["apng"]
- },
- "image/avci": {
- "source": "iana"
- },
- "image/avcs": {
- "source": "iana"
- },
- "image/bmp": {
- "source": "iana",
- "compressible": true,
- "extensions": ["bmp"]
- },
- "image/cgm": {
- "source": "iana",
- "extensions": ["cgm"]
- },
- "image/dicom-rle": {
- "source": "iana",
- "extensions": ["drle"]
- },
- "image/emf": {
- "source": "iana",
- "extensions": ["emf"]
- },
- "image/fits": {
- "source": "iana",
- "extensions": ["fits"]
- },
- "image/g3fax": {
- "source": "iana",
- "extensions": ["g3"]
- },
- "image/gif": {
- "source": "iana",
- "compressible": false,
- "extensions": ["gif"]
- },
- "image/heic": {
- "source": "iana",
- "extensions": ["heic"]
- },
- "image/heic-sequence": {
- "source": "iana",
- "extensions": ["heics"]
- },
- "image/heif": {
- "source": "iana",
- "extensions": ["heif"]
- },
- "image/heif-sequence": {
- "source": "iana",
- "extensions": ["heifs"]
- },
- "image/hej2k": {
- "source": "iana",
- "extensions": ["hej2"]
- },
- "image/hsj2": {
- "source": "iana",
- "extensions": ["hsj2"]
- },
- "image/ief": {
- "source": "iana",
- "extensions": ["ief"]
- },
- "image/jls": {
- "source": "iana",
- "extensions": ["jls"]
- },
- "image/jp2": {
- "source": "iana",
- "compressible": false,
- "extensions": ["jp2","jpg2"]
- },
- "image/jpeg": {
- "source": "iana",
- "compressible": false,
- "extensions": ["jpeg","jpg","jpe"]
- },
- "image/jph": {
- "source": "iana",
- "extensions": ["jph"]
- },
- "image/jphc": {
- "source": "iana",
- "extensions": ["jhc"]
- },
- "image/jpm": {
- "source": "iana",
- "compressible": false,
- "extensions": ["jpm"]
- },
- "image/jpx": {
- "source": "iana",
- "compressible": false,
- "extensions": ["jpx","jpf"]
- },
- "image/jxr": {
- "source": "iana",
- "extensions": ["jxr"]
- },
- "image/jxra": {
- "source": "iana",
- "extensions": ["jxra"]
- },
- "image/jxrs": {
- "source": "iana",
- "extensions": ["jxrs"]
- },
- "image/jxs": {
- "source": "iana",
- "extensions": ["jxs"]
- },
- "image/jxsc": {
- "source": "iana",
- "extensions": ["jxsc"]
- },
- "image/jxsi": {
- "source": "iana",
- "extensions": ["jxsi"]
- },
- "image/jxss": {
- "source": "iana",
- "extensions": ["jxss"]
- },
- "image/ktx": {
- "source": "iana",
- "extensions": ["ktx"]
- },
- "image/naplps": {
- "source": "iana"
- },
- "image/pjpeg": {
- "compressible": false
- },
- "image/png": {
- "source": "iana",
- "compressible": false,
- "extensions": ["png"]
- },
- "image/prs.btif": {
- "source": "iana",
- "extensions": ["btif"]
- },
- "image/prs.pti": {
- "source": "iana",
- "extensions": ["pti"]
- },
- "image/pwg-raster": {
- "source": "iana"
- },
- "image/sgi": {
- "source": "apache",
- "extensions": ["sgi"]
- },
- "image/svg+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["svg","svgz"]
- },
- "image/t38": {
- "source": "iana",
- "extensions": ["t38"]
- },
- "image/tiff": {
- "source": "iana",
- "compressible": false,
- "extensions": ["tif","tiff"]
- },
- "image/tiff-fx": {
- "source": "iana",
- "extensions": ["tfx"]
- },
- "image/vnd.adobe.photoshop": {
- "source": "iana",
- "compressible": true,
- "extensions": ["psd"]
- },
- "image/vnd.airzip.accelerator.azv": {
- "source": "iana",
- "extensions": ["azv"]
- },
- "image/vnd.cns.inf2": {
- "source": "iana"
- },
- "image/vnd.dece.graphic": {
- "source": "iana",
- "extensions": ["uvi","uvvi","uvg","uvvg"]
- },
- "image/vnd.djvu": {
- "source": "iana",
- "extensions": ["djvu","djv"]
- },
- "image/vnd.dvb.subtitle": {
- "source": "iana",
- "extensions": ["sub"]
- },
- "image/vnd.dwg": {
- "source": "iana",
- "extensions": ["dwg"]
- },
- "image/vnd.dxf": {
- "source": "iana",
- "extensions": ["dxf"]
- },
- "image/vnd.fastbidsheet": {
- "source": "iana",
- "extensions": ["fbs"]
- },
- "image/vnd.fpx": {
- "source": "iana",
- "extensions": ["fpx"]
- },
- "image/vnd.fst": {
- "source": "iana",
- "extensions": ["fst"]
- },
- "image/vnd.fujixerox.edmics-mmr": {
- "source": "iana",
- "extensions": ["mmr"]
- },
- "image/vnd.fujixerox.edmics-rlc": {
- "source": "iana",
- "extensions": ["rlc"]
- },
- "image/vnd.globalgraphics.pgb": {
- "source": "iana"
- },
- "image/vnd.microsoft.icon": {
- "source": "iana",
- "extensions": ["ico"]
- },
- "image/vnd.mix": {
- "source": "iana"
- },
- "image/vnd.mozilla.apng": {
- "source": "iana"
- },
- "image/vnd.ms-dds": {
- "extensions": ["dds"]
- },
- "image/vnd.ms-modi": {
- "source": "iana",
- "extensions": ["mdi"]
- },
- "image/vnd.ms-photo": {
- "source": "apache",
- "extensions": ["wdp"]
- },
- "image/vnd.net-fpx": {
- "source": "iana",
- "extensions": ["npx"]
- },
- "image/vnd.radiance": {
- "source": "iana"
- },
- "image/vnd.sealed.png": {
- "source": "iana"
- },
- "image/vnd.sealedmedia.softseal.gif": {
- "source": "iana"
- },
- "image/vnd.sealedmedia.softseal.jpg": {
- "source": "iana"
- },
- "image/vnd.svf": {
- "source": "iana"
- },
- "image/vnd.tencent.tap": {
- "source": "iana",
- "extensions": ["tap"]
- },
- "image/vnd.valve.source.texture": {
- "source": "iana",
- "extensions": ["vtf"]
- },
- "image/vnd.wap.wbmp": {
- "source": "iana",
- "extensions": ["wbmp"]
- },
- "image/vnd.xiff": {
- "source": "iana",
- "extensions": ["xif"]
- },
- "image/vnd.zbrush.pcx": {
- "source": "iana",
- "extensions": ["pcx"]
- },
- "image/webp": {
- "source": "apache",
- "extensions": ["webp"]
- },
- "image/wmf": {
- "source": "iana",
- "extensions": ["wmf"]
- },
- "image/x-3ds": {
- "source": "apache",
- "extensions": ["3ds"]
- },
- "image/x-cmu-raster": {
- "source": "apache",
- "extensions": ["ras"]
- },
- "image/x-cmx": {
- "source": "apache",
- "extensions": ["cmx"]
- },
- "image/x-freehand": {
- "source": "apache",
- "extensions": ["fh","fhc","fh4","fh5","fh7"]
- },
- "image/x-icon": {
- "source": "apache",
- "compressible": true,
- "extensions": ["ico"]
- },
- "image/x-jng": {
- "source": "nginx",
- "extensions": ["jng"]
- },
- "image/x-mrsid-image": {
- "source": "apache",
- "extensions": ["sid"]
- },
- "image/x-ms-bmp": {
- "source": "nginx",
- "compressible": true,
- "extensions": ["bmp"]
- },
- "image/x-pcx": {
- "source": "apache",
- "extensions": ["pcx"]
- },
- "image/x-pict": {
- "source": "apache",
- "extensions": ["pic","pct"]
- },
- "image/x-portable-anymap": {
- "source": "apache",
- "extensions": ["pnm"]
- },
- "image/x-portable-bitmap": {
- "source": "apache",
- "extensions": ["pbm"]
- },
- "image/x-portable-graymap": {
- "source": "apache",
- "extensions": ["pgm"]
- },
- "image/x-portable-pixmap": {
- "source": "apache",
- "extensions": ["ppm"]
- },
- "image/x-rgb": {
- "source": "apache",
- "extensions": ["rgb"]
- },
- "image/x-tga": {
- "source": "apache",
- "extensions": ["tga"]
- },
- "image/x-xbitmap": {
- "source": "apache",
- "extensions": ["xbm"]
- },
- "image/x-xcf": {
- "compressible": false
- },
- "image/x-xpixmap": {
- "source": "apache",
- "extensions": ["xpm"]
- },
- "image/x-xwindowdump": {
- "source": "apache",
- "extensions": ["xwd"]
- },
- "message/cpim": {
- "source": "iana"
- },
- "message/delivery-status": {
- "source": "iana"
- },
- "message/disposition-notification": {
- "source": "iana",
- "extensions": [
- "disposition-notification"
- ]
- },
- "message/external-body": {
- "source": "iana"
- },
- "message/feedback-report": {
- "source": "iana"
- },
- "message/global": {
- "source": "iana",
- "extensions": ["u8msg"]
- },
- "message/global-delivery-status": {
- "source": "iana",
- "extensions": ["u8dsn"]
- },
- "message/global-disposition-notification": {
- "source": "iana",
- "extensions": ["u8mdn"]
- },
- "message/global-headers": {
- "source": "iana",
- "extensions": ["u8hdr"]
- },
- "message/http": {
- "source": "iana",
- "compressible": false
- },
- "message/imdn+xml": {
- "source": "iana",
- "compressible": true
- },
- "message/news": {
- "source": "iana"
- },
- "message/partial": {
- "source": "iana",
- "compressible": false
- },
- "message/rfc822": {
- "source": "iana",
- "compressible": true,
- "extensions": ["eml","mime"]
- },
- "message/s-http": {
- "source": "iana"
- },
- "message/sip": {
- "source": "iana"
- },
- "message/sipfrag": {
- "source": "iana"
- },
- "message/tracking-status": {
- "source": "iana"
- },
- "message/vnd.si.simp": {
- "source": "iana"
- },
- "message/vnd.wfa.wsc": {
- "source": "iana",
- "extensions": ["wsc"]
- },
- "model/3mf": {
- "source": "iana",
- "extensions": ["3mf"]
- },
- "model/gltf+json": {
- "source": "iana",
- "compressible": true,
- "extensions": ["gltf"]
- },
- "model/gltf-binary": {
- "source": "iana",
- "compressible": true,
- "extensions": ["glb"]
- },
- "model/iges": {
- "source": "iana",
- "compressible": false,
- "extensions": ["igs","iges"]
- },
- "model/mesh": {
- "source": "iana",
- "compressible": false,
- "extensions": ["msh","mesh","silo"]
- },
- "model/mtl": {
- "source": "iana",
- "extensions": ["mtl"]
- },
- "model/obj": {
- "source": "iana",
- "extensions": ["obj"]
- },
- "model/stl": {
- "source": "iana",
- "extensions": ["stl"]
- },
- "model/vnd.collada+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["dae"]
- },
- "model/vnd.dwf": {
- "source": "iana",
- "extensions": ["dwf"]
- },
- "model/vnd.flatland.3dml": {
- "source": "iana"
- },
- "model/vnd.gdl": {
- "source": "iana",
- "extensions": ["gdl"]
- },
- "model/vnd.gs-gdl": {
- "source": "apache"
- },
- "model/vnd.gs.gdl": {
- "source": "iana"
- },
- "model/vnd.gtw": {
- "source": "iana",
- "extensions": ["gtw"]
- },
- "model/vnd.moml+xml": {
- "source": "iana",
- "compressible": true
- },
- "model/vnd.mts": {
- "source": "iana",
- "extensions": ["mts"]
- },
- "model/vnd.opengex": {
- "source": "iana",
- "extensions": ["ogex"]
- },
- "model/vnd.parasolid.transmit.binary": {
- "source": "iana",
- "extensions": ["x_b"]
- },
- "model/vnd.parasolid.transmit.text": {
- "source": "iana",
- "extensions": ["x_t"]
- },
- "model/vnd.rosette.annotated-data-model": {
- "source": "iana"
- },
- "model/vnd.usdz+zip": {
- "source": "iana",
- "compressible": false,
- "extensions": ["usdz"]
- },
- "model/vnd.valve.source.compiled-map": {
- "source": "iana",
- "extensions": ["bsp"]
- },
- "model/vnd.vtu": {
- "source": "iana",
- "extensions": ["vtu"]
- },
- "model/vrml": {
- "source": "iana",
- "compressible": false,
- "extensions": ["wrl","vrml"]
- },
- "model/x3d+binary": {
- "source": "apache",
- "compressible": false,
- "extensions": ["x3db","x3dbz"]
- },
- "model/x3d+fastinfoset": {
- "source": "iana",
- "extensions": ["x3db"]
- },
- "model/x3d+vrml": {
- "source": "apache",
- "compressible": false,
- "extensions": ["x3dv","x3dvz"]
- },
- "model/x3d+xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["x3d","x3dz"]
- },
- "model/x3d-vrml": {
- "source": "iana",
- "extensions": ["x3dv"]
- },
- "multipart/alternative": {
- "source": "iana",
- "compressible": false
- },
- "multipart/appledouble": {
- "source": "iana"
- },
- "multipart/byteranges": {
- "source": "iana"
- },
- "multipart/digest": {
- "source": "iana"
- },
- "multipart/encrypted": {
- "source": "iana",
- "compressible": false
- },
- "multipart/form-data": {
- "source": "iana",
- "compressible": false
- },
- "multipart/header-set": {
- "source": "iana"
- },
- "multipart/mixed": {
- "source": "iana"
- },
- "multipart/multilingual": {
- "source": "iana"
- },
- "multipart/parallel": {
- "source": "iana"
- },
- "multipart/related": {
- "source": "iana",
- "compressible": false
- },
- "multipart/report": {
- "source": "iana"
- },
- "multipart/signed": {
- "source": "iana",
- "compressible": false
- },
- "multipart/vnd.bint.med-plus": {
- "source": "iana"
- },
- "multipart/voice-message": {
- "source": "iana"
- },
- "multipart/x-mixed-replace": {
- "source": "iana"
- },
- "text/1d-interleaved-parityfec": {
- "source": "iana"
- },
- "text/cache-manifest": {
- "source": "iana",
- "compressible": true,
- "extensions": ["appcache","manifest"]
- },
- "text/calendar": {
- "source": "iana",
- "extensions": ["ics","ifb"]
- },
- "text/calender": {
- "compressible": true
- },
- "text/cmd": {
- "compressible": true
- },
- "text/coffeescript": {
- "extensions": ["coffee","litcoffee"]
- },
- "text/css": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["css"]
- },
- "text/csv": {
- "source": "iana",
- "compressible": true,
- "extensions": ["csv"]
- },
- "text/csv-schema": {
- "source": "iana"
- },
- "text/directory": {
- "source": "iana"
- },
- "text/dns": {
- "source": "iana"
- },
- "text/ecmascript": {
- "source": "iana"
- },
- "text/encaprtp": {
- "source": "iana"
- },
- "text/enriched": {
- "source": "iana"
- },
- "text/flexfec": {
- "source": "iana"
- },
- "text/fwdred": {
- "source": "iana"
- },
- "text/grammar-ref-list": {
- "source": "iana"
- },
- "text/html": {
- "source": "iana",
- "compressible": true,
- "extensions": ["html","htm","shtml"]
- },
- "text/jade": {
- "extensions": ["jade"]
- },
- "text/javascript": {
- "source": "iana",
- "compressible": true
- },
- "text/jcr-cnd": {
- "source": "iana"
- },
- "text/jsx": {
- "compressible": true,
- "extensions": ["jsx"]
- },
- "text/less": {
- "compressible": true,
- "extensions": ["less"]
- },
- "text/markdown": {
- "source": "iana",
- "compressible": true,
- "extensions": ["markdown","md"]
- },
- "text/mathml": {
- "source": "nginx",
- "extensions": ["mml"]
- },
- "text/mdx": {
- "compressible": true,
- "extensions": ["mdx"]
- },
- "text/mizar": {
- "source": "iana"
- },
- "text/n3": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["n3"]
- },
- "text/parameters": {
- "source": "iana",
- "charset": "UTF-8"
- },
- "text/parityfec": {
- "source": "iana"
- },
- "text/plain": {
- "source": "iana",
- "compressible": true,
- "extensions": ["txt","text","conf","def","list","log","in","ini"]
- },
- "text/provenance-notation": {
- "source": "iana",
- "charset": "UTF-8"
- },
- "text/prs.fallenstein.rst": {
- "source": "iana"
- },
- "text/prs.lines.tag": {
- "source": "iana",
- "extensions": ["dsc"]
- },
- "text/prs.prop.logic": {
- "source": "iana"
- },
- "text/raptorfec": {
- "source": "iana"
- },
- "text/red": {
- "source": "iana"
- },
- "text/rfc822-headers": {
- "source": "iana"
- },
- "text/richtext": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rtx"]
- },
- "text/rtf": {
- "source": "iana",
- "compressible": true,
- "extensions": ["rtf"]
- },
- "text/rtp-enc-aescm128": {
- "source": "iana"
- },
- "text/rtploopback": {
- "source": "iana"
- },
- "text/rtx": {
- "source": "iana"
- },
- "text/sgml": {
- "source": "iana",
- "extensions": ["sgml","sgm"]
- },
- "text/shex": {
- "extensions": ["shex"]
- },
- "text/slim": {
- "extensions": ["slim","slm"]
- },
- "text/strings": {
- "source": "iana"
- },
- "text/stylus": {
- "extensions": ["stylus","styl"]
- },
- "text/t140": {
- "source": "iana"
- },
- "text/tab-separated-values": {
- "source": "iana",
- "compressible": true,
- "extensions": ["tsv"]
- },
- "text/troff": {
- "source": "iana",
- "extensions": ["t","tr","roff","man","me","ms"]
- },
- "text/turtle": {
- "source": "iana",
- "charset": "UTF-8",
- "extensions": ["ttl"]
- },
- "text/ulpfec": {
- "source": "iana"
- },
- "text/uri-list": {
- "source": "iana",
- "compressible": true,
- "extensions": ["uri","uris","urls"]
- },
- "text/vcard": {
- "source": "iana",
- "compressible": true,
- "extensions": ["vcard"]
- },
- "text/vnd.a": {
- "source": "iana"
- },
- "text/vnd.abc": {
- "source": "iana"
- },
- "text/vnd.ascii-art": {
- "source": "iana"
- },
- "text/vnd.curl": {
- "source": "iana",
- "extensions": ["curl"]
- },
- "text/vnd.curl.dcurl": {
- "source": "apache",
- "extensions": ["dcurl"]
- },
- "text/vnd.curl.mcurl": {
- "source": "apache",
- "extensions": ["mcurl"]
- },
- "text/vnd.curl.scurl": {
- "source": "apache",
- "extensions": ["scurl"]
- },
- "text/vnd.debian.copyright": {
- "source": "iana",
- "charset": "UTF-8"
- },
- "text/vnd.dmclientscript": {
- "source": "iana"
- },
- "text/vnd.dvb.subtitle": {
- "source": "iana",
- "extensions": ["sub"]
- },
- "text/vnd.esmertec.theme-descriptor": {
- "source": "iana",
- "charset": "UTF-8"
- },
- "text/vnd.ficlab.flt": {
- "source": "iana"
- },
- "text/vnd.fly": {
- "source": "iana",
- "extensions": ["fly"]
- },
- "text/vnd.fmi.flexstor": {
- "source": "iana",
- "extensions": ["flx"]
- },
- "text/vnd.gml": {
- "source": "iana"
- },
- "text/vnd.graphviz": {
- "source": "iana",
- "extensions": ["gv"]
- },
- "text/vnd.hgl": {
- "source": "iana"
- },
- "text/vnd.in3d.3dml": {
- "source": "iana",
- "extensions": ["3dml"]
- },
- "text/vnd.in3d.spot": {
- "source": "iana",
- "extensions": ["spot"]
- },
- "text/vnd.iptc.newsml": {
- "source": "iana"
- },
- "text/vnd.iptc.nitf": {
- "source": "iana"
- },
- "text/vnd.latex-z": {
- "source": "iana"
- },
- "text/vnd.motorola.reflex": {
- "source": "iana"
- },
- "text/vnd.ms-mediapackage": {
- "source": "iana"
- },
- "text/vnd.net2phone.commcenter.command": {
- "source": "iana"
- },
- "text/vnd.radisys.msml-basic-layout": {
- "source": "iana"
- },
- "text/vnd.senx.warpscript": {
- "source": "iana"
- },
- "text/vnd.si.uricatalogue": {
- "source": "iana"
- },
- "text/vnd.sosi": {
- "source": "iana"
- },
- "text/vnd.sun.j2me.app-descriptor": {
- "source": "iana",
- "charset": "UTF-8",
- "extensions": ["jad"]
- },
- "text/vnd.trolltech.linguist": {
- "source": "iana",
- "charset": "UTF-8"
- },
- "text/vnd.wap.si": {
- "source": "iana"
- },
- "text/vnd.wap.sl": {
- "source": "iana"
- },
- "text/vnd.wap.wml": {
- "source": "iana",
- "extensions": ["wml"]
- },
- "text/vnd.wap.wmlscript": {
- "source": "iana",
- "extensions": ["wmls"]
- },
- "text/vtt": {
- "source": "iana",
- "charset": "UTF-8",
- "compressible": true,
- "extensions": ["vtt"]
- },
- "text/x-asm": {
- "source": "apache",
- "extensions": ["s","asm"]
- },
- "text/x-c": {
- "source": "apache",
- "extensions": ["c","cc","cxx","cpp","h","hh","dic"]
- },
- "text/x-component": {
- "source": "nginx",
- "extensions": ["htc"]
- },
- "text/x-fortran": {
- "source": "apache",
- "extensions": ["f","for","f77","f90"]
- },
- "text/x-gwt-rpc": {
- "compressible": true
- },
- "text/x-handlebars-template": {
- "extensions": ["hbs"]
- },
- "text/x-java-source": {
- "source": "apache",
- "extensions": ["java"]
- },
- "text/x-jquery-tmpl": {
- "compressible": true
- },
- "text/x-lua": {
- "extensions": ["lua"]
- },
- "text/x-markdown": {
- "compressible": true,
- "extensions": ["mkd"]
- },
- "text/x-nfo": {
- "source": "apache",
- "extensions": ["nfo"]
- },
- "text/x-opml": {
- "source": "apache",
- "extensions": ["opml"]
- },
- "text/x-org": {
- "compressible": true,
- "extensions": ["org"]
- },
- "text/x-pascal": {
- "source": "apache",
- "extensions": ["p","pas"]
- },
- "text/x-processing": {
- "compressible": true,
- "extensions": ["pde"]
- },
- "text/x-sass": {
- "extensions": ["sass"]
- },
- "text/x-scss": {
- "extensions": ["scss"]
- },
- "text/x-setext": {
- "source": "apache",
- "extensions": ["etx"]
- },
- "text/x-sfv": {
- "source": "apache",
- "extensions": ["sfv"]
- },
- "text/x-suse-ymp": {
- "compressible": true,
- "extensions": ["ymp"]
- },
- "text/x-uuencode": {
- "source": "apache",
- "extensions": ["uu"]
- },
- "text/x-vcalendar": {
- "source": "apache",
- "extensions": ["vcs"]
- },
- "text/x-vcard": {
- "source": "apache",
- "extensions": ["vcf"]
- },
- "text/xml": {
- "source": "iana",
- "compressible": true,
- "extensions": ["xml"]
- },
- "text/xml-external-parsed-entity": {
- "source": "iana"
- },
- "text/yaml": {
- "extensions": ["yaml","yml"]
- },
- "video/1d-interleaved-parityfec": {
- "source": "iana"
- },
- "video/3gpp": {
- "source": "iana",
- "extensions": ["3gp","3gpp"]
- },
- "video/3gpp-tt": {
- "source": "iana"
- },
- "video/3gpp2": {
- "source": "iana",
- "extensions": ["3g2"]
- },
- "video/bmpeg": {
- "source": "iana"
- },
- "video/bt656": {
- "source": "iana"
- },
- "video/celb": {
- "source": "iana"
- },
- "video/dv": {
- "source": "iana"
- },
- "video/encaprtp": {
- "source": "iana"
- },
- "video/flexfec": {
- "source": "iana"
- },
- "video/h261": {
- "source": "iana",
- "extensions": ["h261"]
- },
- "video/h263": {
- "source": "iana",
- "extensions": ["h263"]
- },
- "video/h263-1998": {
- "source": "iana"
- },
- "video/h263-2000": {
- "source": "iana"
- },
- "video/h264": {
- "source": "iana",
- "extensions": ["h264"]
- },
- "video/h264-rcdo": {
- "source": "iana"
- },
- "video/h264-svc": {
- "source": "iana"
- },
- "video/h265": {
- "source": "iana"
- },
- "video/iso.segment": {
- "source": "iana"
- },
- "video/jpeg": {
- "source": "iana",
- "extensions": ["jpgv"]
- },
- "video/jpeg2000": {
- "source": "iana"
- },
- "video/jpm": {
- "source": "apache",
- "extensions": ["jpm","jpgm"]
- },
- "video/mj2": {
- "source": "iana",
- "extensions": ["mj2","mjp2"]
- },
- "video/mp1s": {
- "source": "iana"
- },
- "video/mp2p": {
- "source": "iana"
- },
- "video/mp2t": {
- "source": "iana",
- "extensions": ["ts"]
- },
- "video/mp4": {
- "source": "iana",
- "compressible": false,
- "extensions": ["mp4","mp4v","mpg4"]
- },
- "video/mp4v-es": {
- "source": "iana"
- },
- "video/mpeg": {
- "source": "iana",
- "compressible": false,
- "extensions": ["mpeg","mpg","mpe","m1v","m2v"]
- },
- "video/mpeg4-generic": {
- "source": "iana"
- },
- "video/mpv": {
- "source": "iana"
- },
- "video/nv": {
- "source": "iana"
- },
- "video/ogg": {
- "source": "iana",
- "compressible": false,
- "extensions": ["ogv"]
- },
- "video/parityfec": {
- "source": "iana"
- },
- "video/pointer": {
- "source": "iana"
- },
- "video/quicktime": {
- "source": "iana",
- "compressible": false,
- "extensions": ["qt","mov"]
- },
- "video/raptorfec": {
- "source": "iana"
- },
- "video/raw": {
- "source": "iana"
- },
- "video/rtp-enc-aescm128": {
- "source": "iana"
- },
- "video/rtploopback": {
- "source": "iana"
- },
- "video/rtx": {
- "source": "iana"
- },
- "video/smpte291": {
- "source": "iana"
- },
- "video/smpte292m": {
- "source": "iana"
- },
- "video/ulpfec": {
- "source": "iana"
- },
- "video/vc1": {
- "source": "iana"
- },
- "video/vc2": {
- "source": "iana"
- },
- "video/vnd.cctv": {
- "source": "iana"
- },
- "video/vnd.dece.hd": {
- "source": "iana",
- "extensions": ["uvh","uvvh"]
- },
- "video/vnd.dece.mobile": {
- "source": "iana",
- "extensions": ["uvm","uvvm"]
- },
- "video/vnd.dece.mp4": {
- "source": "iana"
- },
- "video/vnd.dece.pd": {
- "source": "iana",
- "extensions": ["uvp","uvvp"]
- },
- "video/vnd.dece.sd": {
- "source": "iana",
- "extensions": ["uvs","uvvs"]
- },
- "video/vnd.dece.video": {
- "source": "iana",
- "extensions": ["uvv","uvvv"]
- },
- "video/vnd.directv.mpeg": {
- "source": "iana"
- },
- "video/vnd.directv.mpeg-tts": {
- "source": "iana"
- },
- "video/vnd.dlna.mpeg-tts": {
- "source": "iana"
- },
- "video/vnd.dvb.file": {
- "source": "iana",
- "extensions": ["dvb"]
- },
- "video/vnd.fvt": {
- "source": "iana",
- "extensions": ["fvt"]
- },
- "video/vnd.hns.video": {
- "source": "iana"
- },
- "video/vnd.iptvforum.1dparityfec-1010": {
- "source": "iana"
- },
- "video/vnd.iptvforum.1dparityfec-2005": {
- "source": "iana"
- },
- "video/vnd.iptvforum.2dparityfec-1010": {
- "source": "iana"
- },
- "video/vnd.iptvforum.2dparityfec-2005": {
- "source": "iana"
- },
- "video/vnd.iptvforum.ttsavc": {
- "source": "iana"
- },
- "video/vnd.iptvforum.ttsmpeg2": {
- "source": "iana"
- },
- "video/vnd.motorola.video": {
- "source": "iana"
- },
- "video/vnd.motorola.videop": {
- "source": "iana"
- },
- "video/vnd.mpegurl": {
- "source": "iana",
- "extensions": ["mxu","m4u"]
- },
- "video/vnd.ms-playready.media.pyv": {
- "source": "iana",
- "extensions": ["pyv"]
- },
- "video/vnd.nokia.interleaved-multimedia": {
- "source": "iana"
- },
- "video/vnd.nokia.mp4vr": {
- "source": "iana"
- },
- "video/vnd.nokia.videovoip": {
- "source": "iana"
- },
- "video/vnd.objectvideo": {
- "source": "iana"
- },
- "video/vnd.radgamettools.bink": {
- "source": "iana"
- },
- "video/vnd.radgamettools.smacker": {
- "source": "iana"
- },
- "video/vnd.sealed.mpeg1": {
- "source": "iana"
- },
- "video/vnd.sealed.mpeg4": {
- "source": "iana"
- },
- "video/vnd.sealed.swf": {
- "source": "iana"
- },
- "video/vnd.sealedmedia.softseal.mov": {
- "source": "iana"
- },
- "video/vnd.uvvu.mp4": {
- "source": "iana",
- "extensions": ["uvu","uvvu"]
- },
- "video/vnd.vivo": {
- "source": "iana",
- "extensions": ["viv"]
- },
- "video/vnd.youtube.yt": {
- "source": "iana"
- },
- "video/vp8": {
- "source": "iana"
- },
- "video/webm": {
- "source": "apache",
- "compressible": false,
- "extensions": ["webm"]
- },
- "video/x-f4v": {
- "source": "apache",
- "extensions": ["f4v"]
- },
- "video/x-fli": {
- "source": "apache",
- "extensions": ["fli"]
- },
- "video/x-flv": {
- "source": "apache",
- "compressible": false,
- "extensions": ["flv"]
- },
- "video/x-m4v": {
- "source": "apache",
- "extensions": ["m4v"]
- },
- "video/x-matroska": {
- "source": "apache",
- "compressible": false,
- "extensions": ["mkv","mk3d","mks"]
- },
- "video/x-mng": {
- "source": "apache",
- "extensions": ["mng"]
- },
- "video/x-ms-asf": {
- "source": "apache",
- "extensions": ["asf","asx"]
- },
- "video/x-ms-vob": {
- "source": "apache",
- "extensions": ["vob"]
- },
- "video/x-ms-wm": {
- "source": "apache",
- "extensions": ["wm"]
- },
- "video/x-ms-wmv": {
- "source": "apache",
- "compressible": false,
- "extensions": ["wmv"]
- },
- "video/x-ms-wmx": {
- "source": "apache",
- "extensions": ["wmx"]
- },
- "video/x-ms-wvx": {
- "source": "apache",
- "extensions": ["wvx"]
- },
- "video/x-msvideo": {
- "source": "apache",
- "extensions": ["avi"]
- },
- "video/x-sgi-movie": {
- "source": "apache",
- "extensions": ["movie"]
- },
- "video/x-smv": {
- "source": "apache",
- "extensions": ["smv"]
- },
- "x-conference/x-cooltalk": {
- "source": "apache",
- "extensions": ["ice"]
- },
- "x-shader/x-fragment": {
- "compressible": true
- },
- "x-shader/x-vertex": {
- "compressible": true
- }
-}
diff --git a/node_modules/mime-db/index.js b/node_modules/mime-db/index.js
deleted file mode 100644
index 551031f..0000000
--- a/node_modules/mime-db/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/*!
- * mime-db
- * Copyright(c) 2014 Jonathan Ong
- * MIT Licensed
- */
-
-/**
- * Module exports.
- */
-
-module.exports = require('./db.json')
diff --git a/node_modules/mime-db/package.json b/node_modules/mime-db/package.json
deleted file mode 100644
index dd2d5b9..0000000
--- a/node_modules/mime-db/package.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "_from": "mime-db@1.44.0",
- "_id": "mime-db@1.44.0",
- "_inBundle": false,
- "_integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",
- "_location": "/mime-db",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "mime-db@1.44.0",
- "name": "mime-db",
- "escapedName": "mime-db",
- "rawSpec": "1.44.0",
- "saveSpec": null,
- "fetchSpec": "1.44.0"
- },
- "_requiredBy": [
- "/mime-types"
- ],
- "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
- "_shasum": "fa11c5eb0aca1334b4233cb4d52f10c5a6272f92",
- "_spec": "mime-db@1.44.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/mime-types",
- "bugs": {
- "url": "https://github.com/jshttp/mime-db/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Douglas Christopher Wilson",
- "email": "doug@somethingdoug.com"
- },
- {
- "name": "Jonathan Ong",
- "email": "me@jongleberry.com",
- "url": "http://jongleberry.com"
- },
- {
- "name": "Robert Kieffer",
- "email": "robert@broofa.com",
- "url": "http://github.com/broofa"
- }
- ],
- "deprecated": false,
- "description": "Media Type Database",
- "devDependencies": {
- "bluebird": "3.7.2",
- "co": "4.6.0",
- "cogent": "1.0.1",
- "csv-parse": "4.8.9",
- "eslint": "6.8.0",
- "eslint-config-standard": "14.1.1",
- "eslint-plugin-import": "2.20.2",
- "eslint-plugin-markdown": "1.0.2",
- "eslint-plugin-node": "11.1.0",
- "eslint-plugin-promise": "4.2.1",
- "eslint-plugin-standard": "4.0.1",
- "gnode": "0.1.2",
- "mocha": "7.1.1",
- "nyc": "15.0.1",
- "raw-body": "2.4.1",
- "stream-to-array": "2.3.0"
- },
- "engines": {
- "node": ">= 0.6"
- },
- "files": [
- "HISTORY.md",
- "LICENSE",
- "README.md",
- "db.json",
- "index.js"
- ],
- "homepage": "https://github.com/jshttp/mime-db#readme",
- "keywords": [
- "mime",
- "db",
- "type",
- "types",
- "database",
- "charset",
- "charsets"
- ],
- "license": "MIT",
- "name": "mime-db",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jshttp/mime-db.git"
- },
- "scripts": {
- "build": "node scripts/build",
- "fetch": "node scripts/fetch-apache && gnode scripts/fetch-iana && node scripts/fetch-nginx",
- "lint": "eslint --plugin markdown --ext js,md .",
- "test": "mocha --reporter spec --bail --check-leaks test/",
- "test-cov": "nyc --reporter=html --reporter=text npm test",
- "test-travis": "nyc --reporter=text npm test",
- "update": "npm run fetch && npm run build",
- "version": "node scripts/version-history.js && git add HISTORY.md"
- },
- "version": "1.44.0"
-}
diff --git a/node_modules/mime-types/HISTORY.md b/node_modules/mime-types/HISTORY.md
deleted file mode 100644
index e93149a..0000000
--- a/node_modules/mime-types/HISTORY.md
+++ /dev/null
@@ -1,333 +0,0 @@
-2.1.27 / 2020-04-23
-===================
-
- * deps: mime-db@1.44.0
- - Add charsets from IANA
- - Add extension `.cjs` to `application/node`
- - Add new upstream MIME types
-
-2.1.26 / 2020-01-05
-===================
-
- * deps: mime-db@1.43.0
- - Add `application/x-keepass2` with extension `.kdbx`
- - Add extension `.mxmf` to `audio/mobile-xmf`
- - Add extensions from IANA for `application/*+xml` types
- - Add new upstream MIME types
-
-2.1.25 / 2019-11-12
-===================
-
- * deps: mime-db@1.42.0
- - Add new upstream MIME types
- - Add `application/toml` with extension `.toml`
- - Add `image/vnd.ms-dds` with extension `.dds`
-
-2.1.24 / 2019-04-20
-===================
-
- * deps: mime-db@1.40.0
- - Add extensions from IANA for `model/*` types
- - Add `text/mdx` with extension `.mdx`
-
-2.1.23 / 2019-04-17
-===================
-
- * deps: mime-db@~1.39.0
- - Add extensions `.siv` and `.sieve` to `application/sieve`
- - Add new upstream MIME types
-
-2.1.22 / 2019-02-14
-===================
-
- * deps: mime-db@~1.38.0
- - Add extension `.nq` to `application/n-quads`
- - Add extension `.nt` to `application/n-triples`
- - Add new upstream MIME types
- - Mark `text/less` as compressible
-
-2.1.21 / 2018-10-19
-===================
-
- * deps: mime-db@~1.37.0
- - Add extensions to HEIC image types
- - Add new upstream MIME types
-
-2.1.20 / 2018-08-26
-===================
-
- * deps: mime-db@~1.36.0
- - Add Apple file extensions from IANA
- - Add extensions from IANA for `image/*` types
- - Add new upstream MIME types
-
-2.1.19 / 2018-07-17
-===================
-
- * deps: mime-db@~1.35.0
- - Add extension `.csl` to `application/vnd.citationstyles.style+xml`
- - Add extension `.es` to `application/ecmascript`
- - Add extension `.owl` to `application/rdf+xml`
- - Add new upstream MIME types
- - Add UTF-8 as default charset for `text/turtle`
-
-2.1.18 / 2018-02-16
-===================
-
- * deps: mime-db@~1.33.0
- - Add `application/raml+yaml` with extension `.raml`
- - Add `application/wasm` with extension `.wasm`
- - Add `text/shex` with extension `.shex`
- - Add extensions for JPEG-2000 images
- - Add extensions from IANA for `message/*` types
- - Add new upstream MIME types
- - Update font MIME types
- - Update `text/hjson` to registered `application/hjson`
-
-2.1.17 / 2017-09-01
-===================
-
- * deps: mime-db@~1.30.0
- - Add `application/vnd.ms-outlook`
- - Add `application/x-arj`
- - Add extension `.mjs` to `application/javascript`
- - Add glTF types and extensions
- - Add new upstream MIME types
- - Add `text/x-org`
- - Add VirtualBox MIME types
- - Fix `source` records for `video/*` types that are IANA
- - Update `font/opentype` to registered `font/otf`
-
-2.1.16 / 2017-07-24
-===================
-
- * deps: mime-db@~1.29.0
- - Add `application/fido.trusted-apps+json`
- - Add extension `.wadl` to `application/vnd.sun.wadl+xml`
- - Add extension `.gz` to `application/gzip`
- - Add new upstream MIME types
- - Update extensions `.md` and `.markdown` to be `text/markdown`
-
-2.1.15 / 2017-03-23
-===================
-
- * deps: mime-db@~1.27.0
- - Add new mime types
- - Add `image/apng`
-
-2.1.14 / 2017-01-14
-===================
-
- * deps: mime-db@~1.26.0
- - Add new mime types
-
-2.1.13 / 2016-11-18
-===================
-
- * deps: mime-db@~1.25.0
- - Add new mime types
-
-2.1.12 / 2016-09-18
-===================
-
- * deps: mime-db@~1.24.0
- - Add new mime types
- - Add `audio/mp3`
-
-2.1.11 / 2016-05-01
-===================
-
- * deps: mime-db@~1.23.0
- - Add new mime types
-
-2.1.10 / 2016-02-15
-===================
-
- * deps: mime-db@~1.22.0
- - Add new mime types
- - Fix extension of `application/dash+xml`
- - Update primary extension for `audio/mp4`
-
-2.1.9 / 2016-01-06
-==================
-
- * deps: mime-db@~1.21.0
- - Add new mime types
-
-2.1.8 / 2015-11-30
-==================
-
- * deps: mime-db@~1.20.0
- - Add new mime types
-
-2.1.7 / 2015-09-20
-==================
-
- * deps: mime-db@~1.19.0
- - Add new mime types
-
-2.1.6 / 2015-09-03
-==================
-
- * deps: mime-db@~1.18.0
- - Add new mime types
-
-2.1.5 / 2015-08-20
-==================
-
- * deps: mime-db@~1.17.0
- - Add new mime types
-
-2.1.4 / 2015-07-30
-==================
-
- * deps: mime-db@~1.16.0
- - Add new mime types
-
-2.1.3 / 2015-07-13
-==================
-
- * deps: mime-db@~1.15.0
- - Add new mime types
-
-2.1.2 / 2015-06-25
-==================
-
- * deps: mime-db@~1.14.0
- - Add new mime types
-
-2.1.1 / 2015-06-08
-==================
-
- * perf: fix deopt during mapping
-
-2.1.0 / 2015-06-07
-==================
-
- * Fix incorrectly treating extension-less file name as extension
- - i.e. `'path/to/json'` will no longer return `application/json`
- * Fix `.charset(type)` to accept parameters
- * Fix `.charset(type)` to match case-insensitive
- * Improve generation of extension to MIME mapping
- * Refactor internals for readability and no argument reassignment
- * Prefer `application/*` MIME types from the same source
- * Prefer any type over `application/octet-stream`
- * deps: mime-db@~1.13.0
- - Add nginx as a source
- - Add new mime types
-
-2.0.14 / 2015-06-06
-===================
-
- * deps: mime-db@~1.12.0
- - Add new mime types
-
-2.0.13 / 2015-05-31
-===================
-
- * deps: mime-db@~1.11.0
- - Add new mime types
-
-2.0.12 / 2015-05-19
-===================
-
- * deps: mime-db@~1.10.0
- - Add new mime types
-
-2.0.11 / 2015-05-05
-===================
-
- * deps: mime-db@~1.9.1
- - Add new mime types
-
-2.0.10 / 2015-03-13
-===================
-
- * deps: mime-db@~1.8.0
- - Add new mime types
-
-2.0.9 / 2015-02-09
-==================
-
- * deps: mime-db@~1.7.0
- - Add new mime types
- - Community extensions ownership transferred from `node-mime`
-
-2.0.8 / 2015-01-29
-==================
-
- * deps: mime-db@~1.6.0
- - Add new mime types
-
-2.0.7 / 2014-12-30
-==================
-
- * deps: mime-db@~1.5.0
- - Add new mime types
- - Fix various invalid MIME type entries
-
-2.0.6 / 2014-12-30
-==================
-
- * deps: mime-db@~1.4.0
- - Add new mime types
- - Fix various invalid MIME type entries
- - Remove example template MIME types
-
-2.0.5 / 2014-12-29
-==================
-
- * deps: mime-db@~1.3.1
- - Fix missing extensions
-
-2.0.4 / 2014-12-10
-==================
-
- * deps: mime-db@~1.3.0
- - Add new mime types
-
-2.0.3 / 2014-11-09
-==================
-
- * deps: mime-db@~1.2.0
- - Add new mime types
-
-2.0.2 / 2014-09-28
-==================
-
- * deps: mime-db@~1.1.0
- - Add new mime types
- - Add additional compressible
- - Update charsets
-
-2.0.1 / 2014-09-07
-==================
-
- * Support Node.js 0.6
-
-2.0.0 / 2014-09-02
-==================
-
- * Use `mime-db`
- * Remove `.define()`
-
-1.0.2 / 2014-08-04
-==================
-
- * Set charset=utf-8 for `text/javascript`
-
-1.0.1 / 2014-06-24
-==================
-
- * Add `text/jsx` type
-
-1.0.0 / 2014-05-12
-==================
-
- * Return `false` for unknown types
- * Set charset=utf-8 for `application/json`
-
-0.1.0 / 2014-05-02
-==================
-
- * Initial release
diff --git a/node_modules/mime-types/LICENSE b/node_modules/mime-types/LICENSE
deleted file mode 100644
index 0616607..0000000
--- a/node_modules/mime-types/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
-Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/mime-types/README.md b/node_modules/mime-types/README.md
deleted file mode 100644
index 3863339..0000000
--- a/node_modules/mime-types/README.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# mime-types
-
-[![NPM Version][npm-version-image]][npm-url]
-[![NPM Downloads][npm-downloads-image]][npm-url]
-[![Node.js Version][node-version-image]][node-version-url]
-[![Build Status][travis-image]][travis-url]
-[![Test Coverage][coveralls-image]][coveralls-url]
-
-The ultimate javascript content-type utility.
-
-Similar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except:
-
-- __No fallbacks.__ Instead of naively returning the first available type,
- `mime-types` simply returns `false`, so do
- `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.
-- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`.
-- No `.define()` functionality
-- Bug fixes for `.lookup(path)`
-
-Otherwise, the API is compatible with `mime` 1.x.
-
-## Install
-
-This is a [Node.js](https://nodejs.org/en/) module available through the
-[npm registry](https://www.npmjs.com/). Installation is done using the
-[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
-
-```sh
-$ npm install mime-types
-```
-
-## Adding Types
-
-All mime types are based on [mime-db](https://www.npmjs.com/package/mime-db),
-so open a PR there if you'd like to add mime types.
-
-## API
-
-<!-- eslint-disable no-unused-vars -->
-
-```js
-var mime = require('mime-types')
-```
-
-All functions return `false` if input is invalid or not found.
-
-### mime.lookup(path)
-
-Lookup the content-type associated with a file.
-
-<!-- eslint-disable no-undef -->
-
-```js
-mime.lookup('json') // 'application/json'
-mime.lookup('.md') // 'text/markdown'
-mime.lookup('file.html') // 'text/html'
-mime.lookup('folder/file.js') // 'application/javascript'
-mime.lookup('folder/.htaccess') // false
-
-mime.lookup('cats') // false
-```
-
-### mime.contentType(type)
-
-Create a full content-type header given a content-type or extension.
-When given an extension, `mime.lookup` is used to get the matching
-content-type, otherwise the given content-type is used. Then if the
-content-type does not already have a `charset` parameter, `mime.charset`
-is used to get the default charset and add to the returned content-type.
-
-<!-- eslint-disable no-undef -->
-
-```js
-mime.contentType('markdown') // 'text/x-markdown; charset=utf-8'
-mime.contentType('file.json') // 'application/json; charset=utf-8'
-mime.contentType('text/html') // 'text/html; charset=utf-8'
-mime.contentType('text/html; charset=iso-8859-1') // 'text/html; charset=iso-8859-1'
-
-// from a full path
-mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8'
-```
-
-### mime.extension(type)
-
-Get the default extension for a content-type.
-
-<!-- eslint-disable no-undef -->
-
-```js
-mime.extension('application/octet-stream') // 'bin'
-```
-
-### mime.charset(type)
-
-Lookup the implied default charset of a content-type.
-
-<!-- eslint-disable no-undef -->
-
-```js
-mime.charset('text/markdown') // 'UTF-8'
-```
-
-### var type = mime.types[extension]
-
-A map of content-types by extension.
-
-### [extensions...] = mime.extensions[type]
-
-A map of extensions by content-type.
-
-## License
-
-[MIT](LICENSE)
-
-[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master
-[coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master
-[node-version-image]: https://badgen.net/npm/node/mime-types
-[node-version-url]: https://nodejs.org/en/download
-[npm-downloads-image]: https://badgen.net/npm/dm/mime-types
-[npm-url]: https://npmjs.org/package/mime-types
-[npm-version-image]: https://badgen.net/npm/v/mime-types
-[travis-image]: https://badgen.net/travis/jshttp/mime-types/master
-[travis-url]: https://travis-ci.org/jshttp/mime-types
diff --git a/node_modules/mime-types/index.js b/node_modules/mime-types/index.js
deleted file mode 100644
index b9f34d5..0000000
--- a/node_modules/mime-types/index.js
+++ /dev/null
@@ -1,188 +0,0 @@
-/*!
- * mime-types
- * Copyright(c) 2014 Jonathan Ong
- * Copyright(c) 2015 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict'
-
-/**
- * Module dependencies.
- * @private
- */
-
-var db = require('mime-db')
-var extname = require('path').extname
-
-/**
- * Module variables.
- * @private
- */
-
-var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/
-var TEXT_TYPE_REGEXP = /^text\//i
-
-/**
- * Module exports.
- * @public
- */
-
-exports.charset = charset
-exports.charsets = { lookup: charset }
-exports.contentType = contentType
-exports.extension = extension
-exports.extensions = Object.create(null)
-exports.lookup = lookup
-exports.types = Object.create(null)
-
-// Populate the extensions/types maps
-populateMaps(exports.extensions, exports.types)
-
-/**
- * Get the default charset for a MIME type.
- *
- * @param {string} type
- * @return {boolean|string}
- */
-
-function charset (type) {
- if (!type || typeof type !== 'string') {
- return false
- }
-
- // TODO: use media-typer
- var match = EXTRACT_TYPE_REGEXP.exec(type)
- var mime = match && db[match[1].toLowerCase()]
-
- if (mime && mime.charset) {
- return mime.charset
- }
-
- // default text/* to utf-8
- if (match && TEXT_TYPE_REGEXP.test(match[1])) {
- return 'UTF-8'
- }
-
- return false
-}
-
-/**
- * Create a full Content-Type header given a MIME type or extension.
- *
- * @param {string} str
- * @return {boolean|string}
- */
-
-function contentType (str) {
- // TODO: should this even be in this module?
- if (!str || typeof str !== 'string') {
- return false
- }
-
- var mime = str.indexOf('/') === -1
- ? exports.lookup(str)
- : str
-
- if (!mime) {
- return false
- }
-
- // TODO: use content-type or other module
- if (mime.indexOf('charset') === -1) {
- var charset = exports.charset(mime)
- if (charset) mime += '; charset=' + charset.toLowerCase()
- }
-
- return mime
-}
-
-/**
- * Get the default extension for a MIME type.
- *
- * @param {string} type
- * @return {boolean|string}
- */
-
-function extension (type) {
- if (!type || typeof type !== 'string') {
- return false
- }
-
- // TODO: use media-typer
- var match = EXTRACT_TYPE_REGEXP.exec(type)
-
- // get extensions
- var exts = match && exports.extensions[match[1].toLowerCase()]
-
- if (!exts || !exts.length) {
- return false
- }
-
- return exts[0]
-}
-
-/**
- * Lookup the MIME type for a file path/extension.
- *
- * @param {string} path
- * @return {boolean|string}
- */
-
-function lookup (path) {
- if (!path || typeof path !== 'string') {
- return false
- }
-
- // get the extension ("ext" or ".ext" or full path)
- var extension = extname('x.' + path)
- .toLowerCase()
- .substr(1)
-
- if (!extension) {
- return false
- }
-
- return exports.types[extension] || false
-}
-
-/**
- * Populate the extensions and types maps.
- * @private
- */
-
-function populateMaps (extensions, types) {
- // source preference (least -> most)
- var preference = ['nginx', 'apache', undefined, 'iana']
-
- Object.keys(db).forEach(function forEachMimeType (type) {
- var mime = db[type]
- var exts = mime.extensions
-
- if (!exts || !exts.length) {
- return
- }
-
- // mime -> extensions
- extensions[type] = exts
-
- // extension -> mime
- for (var i = 0; i < exts.length; i++) {
- var extension = exts[i]
-
- if (types[extension]) {
- var from = preference.indexOf(db[types[extension]].source)
- var to = preference.indexOf(mime.source)
-
- if (types[extension] !== 'application/octet-stream' &&
- (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {
- // skip the remapping
- continue
- }
- }
-
- // set the extension -> mime
- types[extension] = type
- }
- })
-}
diff --git a/node_modules/mime-types/package.json b/node_modules/mime-types/package.json
deleted file mode 100644
index c5e15dd..0000000
--- a/node_modules/mime-types/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "mime-types@~2.1.19",
- "_id": "mime-types@2.1.27",
- "_inBundle": false,
- "_integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
- "_location": "/mime-types",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "mime-types@~2.1.19",
- "name": "mime-types",
- "escapedName": "mime-types",
- "rawSpec": "~2.1.19",
- "saveSpec": null,
- "fetchSpec": "~2.1.19"
- },
- "_requiredBy": [
- "/form-data",
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
- "_shasum": "47949f98e279ea53119f5722e0f34e529bec009f",
- "_spec": "mime-types@~2.1.19",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/request",
- "bugs": {
- "url": "https://github.com/jshttp/mime-types/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Douglas Christopher Wilson",
- "email": "doug@somethingdoug.com"
- },
- {
- "name": "Jeremiah Senkpiel",
- "email": "fishrock123@rocketmail.com",
- "url": "https://searchbeam.jit.su"
- },
- {
- "name": "Jonathan Ong",
- "email": "me@jongleberry.com",
- "url": "http://jongleberry.com"
- }
- ],
- "dependencies": {
- "mime-db": "1.44.0"
- },
- "deprecated": false,
- "description": "The ultimate javascript content-type utility.",
- "devDependencies": {
- "eslint": "6.8.0",
- "eslint-config-standard": "14.1.1",
- "eslint-plugin-import": "2.20.2",
- "eslint-plugin-markdown": "1.0.2",
- "eslint-plugin-node": "11.1.0",
- "eslint-plugin-promise": "4.2.1",
- "eslint-plugin-standard": "4.0.1",
- "mocha": "7.1.1",
- "nyc": "15.0.1"
- },
- "engines": {
- "node": ">= 0.6"
- },
- "files": [
- "HISTORY.md",
- "LICENSE",
- "index.js"
- ],
- "homepage": "https://github.com/jshttp/mime-types#readme",
- "keywords": [
- "mime",
- "types"
- ],
- "license": "MIT",
- "name": "mime-types",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jshttp/mime-types.git"
- },
- "scripts": {
- "lint": "eslint --plugin markdown --ext js,md .",
- "test": "mocha --reporter spec test/test.js",
- "test-cov": "nyc --reporter=html --reporter=text npm test",
- "test-travis": "nyc --reporter=text npm test"
- },
- "version": "2.1.27"
-}
diff --git a/node_modules/minimatch/LICENSE b/node_modules/minimatch/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/minimatch/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/minimatch/README.md b/node_modules/minimatch/README.md
deleted file mode 100644
index ad72b81..0000000
--- a/node_modules/minimatch/README.md
+++ /dev/null
@@ -1,209 +0,0 @@
-# minimatch
-
-A minimal matching utility.
-
-[![Build Status](https://secure.travis-ci.org/isaacs/minimatch.svg)](http://travis-ci.org/isaacs/minimatch)
-
-
-This is the matching library used internally by npm.
-
-It works by converting glob expressions into JavaScript `RegExp`
-objects.
-
-## Usage
-
-```javascript
-var minimatch = require("minimatch")
-
-minimatch("bar.foo", "*.foo") // true!
-minimatch("bar.foo", "*.bar") // false!
-minimatch("bar.foo", "*.+(bar|foo)", { debug: true }) // true, and noisy!
-```
-
-## Features
-
-Supports these glob features:
-
-* Brace Expansion
-* Extended glob matching
-* "Globstar" `**` matching
-
-See:
-
-* `man sh`
-* `man bash`
-* `man 3 fnmatch`
-* `man 5 gitignore`
-
-## Minimatch Class
-
-Create a minimatch object by instantiating the `minimatch.Minimatch` class.
-
-```javascript
-var Minimatch = require("minimatch").Minimatch
-var mm = new Minimatch(pattern, options)
-```
-
-### Properties
-
-* `pattern` The original pattern the minimatch object represents.
-* `options` The options supplied to the constructor.
-* `set` A 2-dimensional array of regexp or string expressions.
- Each row in the
- array corresponds to a brace-expanded pattern. Each item in the row
- corresponds to a single path-part. For example, the pattern
- `{a,b/c}/d` would expand to a set of patterns like:
-
- [ [ a, d ]
- , [ b, c, d ] ]
-
- If a portion of the pattern doesn't have any "magic" in it
- (that is, it's something like `"foo"` rather than `fo*o?`), then it
- will be left as a string rather than converted to a regular
- expression.
-
-* `regexp` Created by the `makeRe` method. A single regular expression
- expressing the entire pattern. This is useful in cases where you wish
- to use the pattern somewhat like `fnmatch(3)` with `FNM_PATH` enabled.
-* `negate` True if the pattern is negated.
-* `comment` True if the pattern is a comment.
-* `empty` True if the pattern is `""`.
-
-### Methods
-
-* `makeRe` Generate the `regexp` member if necessary, and return it.
- Will return `false` if the pattern is invalid.
-* `match(fname)` Return true if the filename matches the pattern, or
- false otherwise.
-* `matchOne(fileArray, patternArray, partial)` Take a `/`-split
- filename, and match it against a single row in the `regExpSet`. This
- method is mainly for internal use, but is exposed so that it can be
- used by a glob-walker that needs to avoid excessive filesystem calls.
-
-All other methods are internal, and will be called as necessary.
-
-### minimatch(path, pattern, options)
-
-Main export. Tests a path against the pattern using the options.
-
-```javascript
-var isJS = minimatch(file, "*.js", { matchBase: true })
-```
-
-### minimatch.filter(pattern, options)
-
-Returns a function that tests its
-supplied argument, suitable for use with `Array.filter`. Example:
-
-```javascript
-var javascripts = fileList.filter(minimatch.filter("*.js", {matchBase: true}))
-```
-
-### minimatch.match(list, pattern, options)
-
-Match against the list of
-files, in the style of fnmatch or glob. If nothing is matched, and
-options.nonull is set, then return a list containing the pattern itself.
-
-```javascript
-var javascripts = minimatch.match(fileList, "*.js", {matchBase: true}))
-```
-
-### minimatch.makeRe(pattern, options)
-
-Make a regular expression object from the pattern.
-
-## Options
-
-All options are `false` by default.
-
-### debug
-
-Dump a ton of stuff to stderr.
-
-### nobrace
-
-Do not expand `{a,b}` and `{1..3}` brace sets.
-
-### noglobstar
-
-Disable `**` matching against multiple folder names.
-
-### dot
-
-Allow patterns to match filenames starting with a period, even if
-the pattern does not explicitly have a period in that spot.
-
-Note that by default, `a/**/b` will **not** match `a/.d/b`, unless `dot`
-is set.
-
-### noext
-
-Disable "extglob" style patterns like `+(a|b)`.
-
-### nocase
-
-Perform a case-insensitive match.
-
-### nonull
-
-When a match is not found by `minimatch.match`, return a list containing
-the pattern itself if this option is set. When not set, an empty list
-is returned if there are no matches.
-
-### matchBase
-
-If set, then patterns without slashes will be matched
-against the basename of the path if it contains slashes. For example,
-`a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`.
-
-### nocomment
-
-Suppress the behavior of treating `#` at the start of a pattern as a
-comment.
-
-### nonegate
-
-Suppress the behavior of treating a leading `!` character as negation.
-
-### flipNegate
-
-Returns from negate expressions the same as if they were not negated.
-(Ie, true on a hit, false on a miss.)
-
-
-## Comparisons to other fnmatch/glob implementations
-
-While strict compliance with the existing standards is a worthwhile
-goal, some discrepancies exist between minimatch and other
-implementations, and are intentional.
-
-If the pattern starts with a `!` character, then it is negated. Set the
-`nonegate` flag to suppress this behavior, and treat leading `!`
-characters normally. This is perhaps relevant if you wish to start the
-pattern with a negative extglob pattern like `!(a|B)`. Multiple `!`
-characters at the start of a pattern will negate the pattern multiple
-times.
-
-If a pattern starts with `#`, then it is treated as a comment, and
-will not match anything. Use `\#` to match a literal `#` at the
-start of a line, or set the `nocomment` flag to suppress this behavior.
-
-The double-star character `**` is supported by default, unless the
-`noglobstar` flag is set. This is supported in the manner of bsdglob
-and bash 4.1, where `**` only has special significance if it is the only
-thing in a path part. That is, `a/**/b` will match `a/x/y/b`, but
-`a/**b` will not.
-
-If an escaped pattern has no matches, and the `nonull` flag is set,
-then minimatch.match returns the pattern as-provided, rather than
-interpreting the character escapes. For example,
-`minimatch.match([], "\\*a\\?")` will return `"\\*a\\?"` rather than
-`"*a?"`. This is akin to setting the `nullglob` option in bash, except
-that it does not resolve escaped pattern characters.
-
-If brace expansion is not disabled, then it is performed before any
-other interpretation of the glob pattern. Thus, a pattern like
-`+(a|{b),c)}`, which would not be valid in bash or zsh, is expanded
-**first** into the set of `+(a|b)` and `+(a|c)`, and those patterns are
-checked for validity. Since those two are valid, matching proceeds.
diff --git a/node_modules/minimatch/minimatch.js b/node_modules/minimatch/minimatch.js
deleted file mode 100644
index 5b5f8cf..0000000
--- a/node_modules/minimatch/minimatch.js
+++ /dev/null
@@ -1,923 +0,0 @@
-module.exports = minimatch
-minimatch.Minimatch = Minimatch
-
-var path = { sep: '/' }
-try {
- path = require('path')
-} catch (er) {}
-
-var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}
-var expand = require('brace-expansion')
-
-var plTypes = {
- '!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
- '?': { open: '(?:', close: ')?' },
- '+': { open: '(?:', close: ')+' },
- '*': { open: '(?:', close: ')*' },
- '@': { open: '(?:', close: ')' }
-}
-
-// any single thing other than /
-// don't need to escape / when using new RegExp()
-var qmark = '[^/]'
-
-// * => any number of characters
-var star = qmark + '*?'
-
-// ** when dots are allowed. Anything goes, except .. and .
-// not (^ or / followed by one or two dots followed by $ or /),
-// followed by anything, any number of times.
-var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
-
-// not a ^ or / followed by a dot,
-// followed by anything, any number of times.
-var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
-
-// characters that need to be escaped in RegExp.
-var reSpecials = charSet('().*{}+?[]^$\\!')
-
-// "abc" -> { a:true, b:true, c:true }
-function charSet (s) {
- return s.split('').reduce(function (set, c) {
- set[c] = true
- return set
- }, {})
-}
-
-// normalizes slashes.
-var slashSplit = /\/+/
-
-minimatch.filter = filter
-function filter (pattern, options) {
- options = options || {}
- return function (p, i, list) {
- return minimatch(p, pattern, options)
- }
-}
-
-function ext (a, b) {
- a = a || {}
- b = b || {}
- var t = {}
- Object.keys(b).forEach(function (k) {
- t[k] = b[k]
- })
- Object.keys(a).forEach(function (k) {
- t[k] = a[k]
- })
- return t
-}
-
-minimatch.defaults = function (def) {
- if (!def || !Object.keys(def).length) return minimatch
-
- var orig = minimatch
-
- var m = function minimatch (p, pattern, options) {
- return orig.minimatch(p, pattern, ext(def, options))
- }
-
- m.Minimatch = function Minimatch (pattern, options) {
- return new orig.Minimatch(pattern, ext(def, options))
- }
-
- return m
-}
-
-Minimatch.defaults = function (def) {
- if (!def || !Object.keys(def).length) return Minimatch
- return minimatch.defaults(def).Minimatch
-}
-
-function minimatch (p, pattern, options) {
- if (typeof pattern !== 'string') {
- throw new TypeError('glob pattern string required')
- }
-
- if (!options) options = {}
-
- // shortcut: comments match nothing.
- if (!options.nocomment && pattern.charAt(0) === '#') {
- return false
- }
-
- // "" only matches ""
- if (pattern.trim() === '') return p === ''
-
- return new Minimatch(pattern, options).match(p)
-}
-
-function Minimatch (pattern, options) {
- if (!(this instanceof Minimatch)) {
- return new Minimatch(pattern, options)
- }
-
- if (typeof pattern !== 'string') {
- throw new TypeError('glob pattern string required')
- }
-
- if (!options) options = {}
- pattern = pattern.trim()
-
- // windows support: need to use /, not \
- if (path.sep !== '/') {
- pattern = pattern.split(path.sep).join('/')
- }
-
- this.options = options
- this.set = []
- this.pattern = pattern
- this.regexp = null
- this.negate = false
- this.comment = false
- this.empty = false
-
- // make the set of regexps etc.
- this.make()
-}
-
-Minimatch.prototype.debug = function () {}
-
-Minimatch.prototype.make = make
-function make () {
- // don't do it more than once.
- if (this._made) return
-
- var pattern = this.pattern
- var options = this.options
-
- // empty patterns and comments match nothing.
- if (!options.nocomment && pattern.charAt(0) === '#') {
- this.comment = true
- return
- }
- if (!pattern) {
- this.empty = true
- return
- }
-
- // step 1: figure out negation, etc.
- this.parseNegate()
-
- // step 2: expand braces
- var set = this.globSet = this.braceExpand()
-
- if (options.debug) this.debug = console.error
-
- this.debug(this.pattern, set)
-
- // step 3: now we have a set, so turn each one into a series of path-portion
- // matching patterns.
- // These will be regexps, except in the case of "**", which is
- // set to the GLOBSTAR object for globstar behavior,
- // and will not contain any / characters
- set = this.globParts = set.map(function (s) {
- return s.split(slashSplit)
- })
-
- this.debug(this.pattern, set)
-
- // glob --> regexps
- set = set.map(function (s, si, set) {
- return s.map(this.parse, this)
- }, this)
-
- this.debug(this.pattern, set)
-
- // filter out everything that didn't compile properly.
- set = set.filter(function (s) {
- return s.indexOf(false) === -1
- })
-
- this.debug(this.pattern, set)
-
- this.set = set
-}
-
-Minimatch.prototype.parseNegate = parseNegate
-function parseNegate () {
- var pattern = this.pattern
- var negate = false
- var options = this.options
- var negateOffset = 0
-
- if (options.nonegate) return
-
- for (var i = 0, l = pattern.length
- ; i < l && pattern.charAt(i) === '!'
- ; i++) {
- negate = !negate
- negateOffset++
- }
-
- if (negateOffset) this.pattern = pattern.substr(negateOffset)
- this.negate = negate
-}
-
-// Brace expansion:
-// a{b,c}d -> abd acd
-// a{b,}c -> abc ac
-// a{0..3}d -> a0d a1d a2d a3d
-// a{b,c{d,e}f}g -> abg acdfg acefg
-// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
-//
-// Invalid sets are not expanded.
-// a{2..}b -> a{2..}b
-// a{b}c -> a{b}c
-minimatch.braceExpand = function (pattern, options) {
- return braceExpand(pattern, options)
-}
-
-Minimatch.prototype.braceExpand = braceExpand
-
-function braceExpand (pattern, options) {
- if (!options) {
- if (this instanceof Minimatch) {
- options = this.options
- } else {
- options = {}
- }
- }
-
- pattern = typeof pattern === 'undefined'
- ? this.pattern : pattern
-
- if (typeof pattern === 'undefined') {
- throw new TypeError('undefined pattern')
- }
-
- if (options.nobrace ||
- !pattern.match(/\{.*\}/)) {
- // shortcut. no need to expand.
- return [pattern]
- }
-
- return expand(pattern)
-}
-
-// parse a component of the expanded set.
-// At this point, no pattern may contain "/" in it
-// so we're going to return a 2d array, where each entry is the full
-// pattern, split on '/', and then turned into a regular expression.
-// A regexp is made at the end which joins each array with an
-// escaped /, and another full one which joins each regexp with |.
-//
-// Following the lead of Bash 4.1, note that "**" only has special meaning
-// when it is the *only* thing in a path portion. Otherwise, any series
-// of * is equivalent to a single *. Globstar behavior is enabled by
-// default, and can be disabled by setting options.noglobstar.
-Minimatch.prototype.parse = parse
-var SUBPARSE = {}
-function parse (pattern, isSub) {
- if (pattern.length > 1024 * 64) {
- throw new TypeError('pattern is too long')
- }
-
- var options = this.options
-
- // shortcuts
- if (!options.noglobstar && pattern === '**') return GLOBSTAR
- if (pattern === '') return ''
-
- var re = ''
- var hasMagic = !!options.nocase
- var escaping = false
- // ? => one single character
- var patternListStack = []
- var negativeLists = []
- var stateChar
- var inClass = false
- var reClassStart = -1
- var classStart = -1
- // . and .. never match anything that doesn't start with .,
- // even when options.dot is set.
- var patternStart = pattern.charAt(0) === '.' ? '' // anything
- // not (start or / followed by . or .. followed by / or end)
- : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))'
- : '(?!\\.)'
- var self = this
-
- function clearStateChar () {
- if (stateChar) {
- // we had some state-tracking character
- // that wasn't consumed by this pass.
- switch (stateChar) {
- case '*':
- re += star
- hasMagic = true
- break
- case '?':
- re += qmark
- hasMagic = true
- break
- default:
- re += '\\' + stateChar
- break
- }
- self.debug('clearStateChar %j %j', stateChar, re)
- stateChar = false
- }
- }
-
- for (var i = 0, len = pattern.length, c
- ; (i < len) && (c = pattern.charAt(i))
- ; i++) {
- this.debug('%s\t%s %s %j', pattern, i, re, c)
-
- // skip over any that are escaped.
- if (escaping && reSpecials[c]) {
- re += '\\' + c
- escaping = false
- continue
- }
-
- switch (c) {
- case '/':
- // completely not allowed, even escaped.
- // Should already be path-split by now.
- return false
-
- case '\\':
- clearStateChar()
- escaping = true
- continue
-
- // the various stateChar values
- // for the "extglob" stuff.
- case '?':
- case '*':
- case '+':
- case '@':
- case '!':
- this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
-
- // all of those are literals inside a class, except that
- // the glob [!a] means [^a] in regexp
- if (inClass) {
- this.debug(' in class')
- if (c === '!' && i === classStart + 1) c = '^'
- re += c
- continue
- }
-
- // if we already have a stateChar, then it means
- // that there was something like ** or +? in there.
- // Handle the stateChar, then proceed with this one.
- self.debug('call clearStateChar %j', stateChar)
- clearStateChar()
- stateChar = c
- // if extglob is disabled, then +(asdf|foo) isn't a thing.
- // just clear the statechar *now*, rather than even diving into
- // the patternList stuff.
- if (options.noext) clearStateChar()
- continue
-
- case '(':
- if (inClass) {
- re += '('
- continue
- }
-
- if (!stateChar) {
- re += '\\('
- continue
- }
-
- patternListStack.push({
- type: stateChar,
- start: i - 1,
- reStart: re.length,
- open: plTypes[stateChar].open,
- close: plTypes[stateChar].close
- })
- // negation is (?:(?!js)[^/]*)
- re += stateChar === '!' ? '(?:(?!(?:' : '(?:'
- this.debug('plType %j %j', stateChar, re)
- stateChar = false
- continue
-
- case ')':
- if (inClass || !patternListStack.length) {
- re += '\\)'
- continue
- }
-
- clearStateChar()
- hasMagic = true
- var pl = patternListStack.pop()
- // negation is (?:(?!js)[^/]*)
- // The others are (?:<pattern>)<type>
- re += pl.close
- if (pl.type === '!') {
- negativeLists.push(pl)
- }
- pl.reEnd = re.length
- continue
-
- case '|':
- if (inClass || !patternListStack.length || escaping) {
- re += '\\|'
- escaping = false
- continue
- }
-
- clearStateChar()
- re += '|'
- continue
-
- // these are mostly the same in regexp and glob
- case '[':
- // swallow any state-tracking char before the [
- clearStateChar()
-
- if (inClass) {
- re += '\\' + c
- continue
- }
-
- inClass = true
- classStart = i
- reClassStart = re.length
- re += c
- continue
-
- case ']':
- // a right bracket shall lose its special
- // meaning and represent itself in
- // a bracket expression if it occurs
- // first in the list. -- POSIX.2 2.8.3.2
- if (i === classStart + 1 || !inClass) {
- re += '\\' + c
- escaping = false
- continue
- }
-
- // handle the case where we left a class open.
- // "[z-a]" is valid, equivalent to "\[z-a\]"
- if (inClass) {
- // split where the last [ was, make sure we don't have
- // an invalid re. if so, re-walk the contents of the
- // would-be class to re-translate any characters that
- // were passed through as-is
- // TODO: It would probably be faster to determine this
- // without a try/catch and a new RegExp, but it's tricky
- // to do safely. For now, this is safe and works.
- var cs = pattern.substring(classStart + 1, i)
- try {
- RegExp('[' + cs + ']')
- } catch (er) {
- // not a valid class!
- var sp = this.parse(cs, SUBPARSE)
- re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
- hasMagic = hasMagic || sp[1]
- inClass = false
- continue
- }
- }
-
- // finish up the class.
- hasMagic = true
- inClass = false
- re += c
- continue
-
- default:
- // swallow any state char that wasn't consumed
- clearStateChar()
-
- if (escaping) {
- // no need
- escaping = false
- } else if (reSpecials[c]
- && !(c === '^' && inClass)) {
- re += '\\'
- }
-
- re += c
-
- } // switch
- } // for
-
- // handle the case where we left a class open.
- // "[abc" is valid, equivalent to "\[abc"
- if (inClass) {
- // split where the last [ was, and escape it
- // this is a huge pita. We now have to re-walk
- // the contents of the would-be class to re-translate
- // any characters that were passed through as-is
- cs = pattern.substr(classStart + 1)
- sp = this.parse(cs, SUBPARSE)
- re = re.substr(0, reClassStart) + '\\[' + sp[0]
- hasMagic = hasMagic || sp[1]
- }
-
- // handle the case where we had a +( thing at the *end*
- // of the pattern.
- // each pattern list stack adds 3 chars, and we need to go through
- // and escape any | chars that were passed through as-is for the regexp.
- // Go through and escape them, taking care not to double-escape any
- // | chars that were already escaped.
- for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
- var tail = re.slice(pl.reStart + pl.open.length)
- this.debug('setting tail', re, pl)
- // maybe some even number of \, then maybe 1 \, followed by a |
- tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) {
- if (!$2) {
- // the | isn't already escaped, so escape it.
- $2 = '\\'
- }
-
- // need to escape all those slashes *again*, without escaping the
- // one that we need for escaping the | character. As it works out,
- // escaping an even number of slashes can be done by simply repeating
- // it exactly after itself. That's why this trick works.
- //
- // I am sorry that you have to see this.
- return $1 + $1 + $2 + '|'
- })
-
- this.debug('tail=%j\n %s', tail, tail, pl, re)
- var t = pl.type === '*' ? star
- : pl.type === '?' ? qmark
- : '\\' + pl.type
-
- hasMagic = true
- re = re.slice(0, pl.reStart) + t + '\\(' + tail
- }
-
- // handle trailing things that only matter at the very end.
- clearStateChar()
- if (escaping) {
- // trailing \\
- re += '\\\\'
- }
-
- // only need to apply the nodot start if the re starts with
- // something that could conceivably capture a dot
- var addPatternStart = false
- switch (re.charAt(0)) {
- case '.':
- case '[':
- case '(': addPatternStart = true
- }
-
- // Hack to work around lack of negative lookbehind in JS
- // A pattern like: *.!(x).!(y|z) needs to ensure that a name
- // like 'a.xyz.yz' doesn't match. So, the first negative
- // lookahead, has to look ALL the way ahead, to the end of
- // the pattern.
- for (var n = negativeLists.length - 1; n > -1; n--) {
- var nl = negativeLists[n]
-
- var nlBefore = re.slice(0, nl.reStart)
- var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
- var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)
- var nlAfter = re.slice(nl.reEnd)
-
- nlLast += nlAfter
-
- // Handle nested stuff like *(*.js|!(*.json)), where open parens
- // mean that we should *not* include the ) in the bit that is considered
- // "after" the negated section.
- var openParensBefore = nlBefore.split('(').length - 1
- var cleanAfter = nlAfter
- for (i = 0; i < openParensBefore; i++) {
- cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
- }
- nlAfter = cleanAfter
-
- var dollar = ''
- if (nlAfter === '' && isSub !== SUBPARSE) {
- dollar = '$'
- }
- var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast
- re = newRe
- }
-
- // if the re is not "" at this point, then we need to make sure
- // it doesn't match against an empty path part.
- // Otherwise a/* will match a/, which it should not.
- if (re !== '' && hasMagic) {
- re = '(?=.)' + re
- }
-
- if (addPatternStart) {
- re = patternStart + re
- }
-
- // parsing just a piece of a larger pattern.
- if (isSub === SUBPARSE) {
- return [re, hasMagic]
- }
-
- // skip the regexp for non-magical patterns
- // unescape anything in it, though, so that it'll be
- // an exact match against a file etc.
- if (!hasMagic) {
- return globUnescape(pattern)
- }
-
- var flags = options.nocase ? 'i' : ''
- try {
- var regExp = new RegExp('^' + re + '$', flags)
- } catch (er) {
- // If it was an invalid regular expression, then it can't match
- // anything. This trick looks for a character after the end of
- // the string, which is of course impossible, except in multi-line
- // mode, but it's not a /m regex.
- return new RegExp('$.')
- }
-
- regExp._glob = pattern
- regExp._src = re
-
- return regExp
-}
-
-minimatch.makeRe = function (pattern, options) {
- return new Minimatch(pattern, options || {}).makeRe()
-}
-
-Minimatch.prototype.makeRe = makeRe
-function makeRe () {
- if (this.regexp || this.regexp === false) return this.regexp
-
- // at this point, this.set is a 2d array of partial
- // pattern strings, or "**".
- //
- // It's better to use .match(). This function shouldn't
- // be used, really, but it's pretty convenient sometimes,
- // when you just want to work with a regex.
- var set = this.set
-
- if (!set.length) {
- this.regexp = false
- return this.regexp
- }
- var options = this.options
-
- var twoStar = options.noglobstar ? star
- : options.dot ? twoStarDot
- : twoStarNoDot
- var flags = options.nocase ? 'i' : ''
-
- var re = set.map(function (pattern) {
- return pattern.map(function (p) {
- return (p === GLOBSTAR) ? twoStar
- : (typeof p === 'string') ? regExpEscape(p)
- : p._src
- }).join('\\\/')
- }).join('|')
-
- // must match entire pattern
- // ending in a * or ** will make it less strict.
- re = '^(?:' + re + ')$'
-
- // can match anything, as long as it's not this.
- if (this.negate) re = '^(?!' + re + ').*$'
-
- try {
- this.regexp = new RegExp(re, flags)
- } catch (ex) {
- this.regexp = false
- }
- return this.regexp
-}
-
-minimatch.match = function (list, pattern, options) {
- options = options || {}
- var mm = new Minimatch(pattern, options)
- list = list.filter(function (f) {
- return mm.match(f)
- })
- if (mm.options.nonull && !list.length) {
- list.push(pattern)
- }
- return list
-}
-
-Minimatch.prototype.match = match
-function match (f, partial) {
- this.debug('match', f, this.pattern)
- // short-circuit in the case of busted things.
- // comments, etc.
- if (this.comment) return false
- if (this.empty) return f === ''
-
- if (f === '/' && partial) return true
-
- var options = this.options
-
- // windows: need to use /, not \
- if (path.sep !== '/') {
- f = f.split(path.sep).join('/')
- }
-
- // treat the test path as a set of pathparts.
- f = f.split(slashSplit)
- this.debug(this.pattern, 'split', f)
-
- // just ONE of the pattern sets in this.set needs to match
- // in order for it to be valid. If negating, then just one
- // match means that we have failed.
- // Either way, return on the first hit.
-
- var set = this.set
- this.debug(this.pattern, 'set', set)
-
- // Find the basename of the path by looking for the last non-empty segment
- var filename
- var i
- for (i = f.length - 1; i >= 0; i--) {
- filename = f[i]
- if (filename) break
- }
-
- for (i = 0; i < set.length; i++) {
- var pattern = set[i]
- var file = f
- if (options.matchBase && pattern.length === 1) {
- file = [filename]
- }
- var hit = this.matchOne(file, pattern, partial)
- if (hit) {
- if (options.flipNegate) return true
- return !this.negate
- }
- }
-
- // didn't get any hits. this is success if it's a negative
- // pattern, failure otherwise.
- if (options.flipNegate) return false
- return this.negate
-}
-
-// set partial to true to test if, for example,
-// "/a/b" matches the start of "/*/b/*/d"
-// Partial means, if you run out of file before you run
-// out of pattern, then that's fine, as long as all
-// the parts match.
-Minimatch.prototype.matchOne = function (file, pattern, partial) {
- var options = this.options
-
- this.debug('matchOne',
- { 'this': this, file: file, pattern: pattern })
-
- this.debug('matchOne', file.length, pattern.length)
-
- for (var fi = 0,
- pi = 0,
- fl = file.length,
- pl = pattern.length
- ; (fi < fl) && (pi < pl)
- ; fi++, pi++) {
- this.debug('matchOne loop')
- var p = pattern[pi]
- var f = file[fi]
-
- this.debug(pattern, p, f)
-
- // should be impossible.
- // some invalid regexp stuff in the set.
- if (p === false) return false
-
- if (p === GLOBSTAR) {
- this.debug('GLOBSTAR', [pattern, p, f])
-
- // "**"
- // a/**/b/**/c would match the following:
- // a/b/x/y/z/c
- // a/x/y/z/b/c
- // a/b/x/b/x/c
- // a/b/c
- // To do this, take the rest of the pattern after
- // the **, and see if it would match the file remainder.
- // If so, return success.
- // If not, the ** "swallows" a segment, and try again.
- // This is recursively awful.
- //
- // a/**/b/**/c matching a/b/x/y/z/c
- // - a matches a
- // - doublestar
- // - matchOne(b/x/y/z/c, b/**/c)
- // - b matches b
- // - doublestar
- // - matchOne(x/y/z/c, c) -> no
- // - matchOne(y/z/c, c) -> no
- // - matchOne(z/c, c) -> no
- // - matchOne(c, c) yes, hit
- var fr = fi
- var pr = pi + 1
- if (pr === pl) {
- this.debug('** at the end')
- // a ** at the end will just swallow the rest.
- // We have found a match.
- // however, it will not swallow /.x, unless
- // options.dot is set.
- // . and .. are *never* matched by **, for explosively
- // exponential reasons.
- for (; fi < fl; fi++) {
- if (file[fi] === '.' || file[fi] === '..' ||
- (!options.dot && file[fi].charAt(0) === '.')) return false
- }
- return true
- }
-
- // ok, let's see if we can swallow whatever we can.
- while (fr < fl) {
- var swallowee = file[fr]
-
- this.debug('\nglobstar while', file, fr, pattern, pr, swallowee)
-
- // XXX remove this slice. Just pass the start index.
- if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
- this.debug('globstar found match!', fr, fl, swallowee)
- // found a match.
- return true
- } else {
- // can't swallow "." or ".." ever.
- // can only swallow ".foo" when explicitly asked.
- if (swallowee === '.' || swallowee === '..' ||
- (!options.dot && swallowee.charAt(0) === '.')) {
- this.debug('dot detected!', file, fr, pattern, pr)
- break
- }
-
- // ** swallows a segment, and continue.
- this.debug('globstar swallow a segment, and continue')
- fr++
- }
- }
-
- // no match was found.
- // However, in partial mode, we can't say this is necessarily over.
- // If there's more *pattern* left, then
- if (partial) {
- // ran out of file
- this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
- if (fr === fl) return true
- }
- return false
- }
-
- // something other than **
- // non-magic patterns just have to match exactly
- // patterns with magic have been turned into regexps.
- var hit
- if (typeof p === 'string') {
- if (options.nocase) {
- hit = f.toLowerCase() === p.toLowerCase()
- } else {
- hit = f === p
- }
- this.debug('string match', p, f, hit)
- } else {
- hit = f.match(p)
- this.debug('pattern match', p, f, hit)
- }
-
- if (!hit) return false
- }
-
- // Note: ending in / means that we'll get a final ""
- // at the end of the pattern. This can only match a
- // corresponding "" at the end of the file.
- // If the file ends in /, then it can only match a
- // a pattern that ends in /, unless the pattern just
- // doesn't have any more for it. But, a/b/ should *not*
- // match "a/b/*", even though "" matches against the
- // [^/]*? pattern, except in partial mode, where it might
- // simply not be reached yet.
- // However, a/b/ should still satisfy a/*
-
- // now either we fell off the end of the pattern, or we're done.
- if (fi === fl && pi === pl) {
- // ran out of pattern and filename at the same time.
- // an exact hit!
- return true
- } else if (fi === fl) {
- // ran out of file, but still had pattern left.
- // this is ok if we're doing the match as part of
- // a glob fs traversal.
- return partial
- } else if (pi === pl) {
- // ran out of pattern, still have file left.
- // this is only acceptable if we're on the very last
- // empty segment of a file with a trailing slash.
- // a/* should match a/b/
- var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')
- return emptyFileEnd
- }
-
- // should be unreachable.
- throw new Error('wtf?')
-}
-
-// replace stuff like \* with *
-function globUnescape (s) {
- return s.replace(/\\(.)/g, '$1')
-}
-
-function regExpEscape (s) {
- return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
-}
diff --git a/node_modules/minimatch/package.json b/node_modules/minimatch/package.json
deleted file mode 100644
index 0216ca2..0000000
--- a/node_modules/minimatch/package.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "_from": "minimatch@~3.0.2",
- "_id": "minimatch@3.0.4",
- "_inBundle": false,
- "_integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "_location": "/minimatch",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "minimatch@~3.0.2",
- "name": "minimatch",
- "escapedName": "minimatch",
- "rawSpec": "~3.0.2",
- "saveSpec": null,
- "fetchSpec": "~3.0.2"
- },
- "_requiredBy": [
- "/glob",
- "/globule"
- ],
- "_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "_shasum": "5166e286457f03306064be5497e8dbb0c3d32083",
- "_spec": "minimatch@~3.0.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/globule",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me"
- },
- "bugs": {
- "url": "https://github.com/isaacs/minimatch/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "brace-expansion": "^1.1.7"
- },
- "deprecated": false,
- "description": "a glob matcher in javascript",
- "devDependencies": {
- "tap": "^10.3.2"
- },
- "engines": {
- "node": "*"
- },
- "files": [
- "minimatch.js"
- ],
- "homepage": "https://github.com/isaacs/minimatch#readme",
- "license": "ISC",
- "main": "minimatch.js",
- "name": "minimatch",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/minimatch.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test/*.js --cov"
- },
- "version": "3.0.4"
-}
diff --git a/node_modules/minimist/.travis.yml b/node_modules/minimist/.travis.yml
deleted file mode 100644
index 74c57bf..0000000
--- a/node_modules/minimist/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-language: node_js
-node_js:
- - "0.8"
- - "0.10"
- - "0.12"
- - "iojs"
-before_install:
- - npm install -g npm@~1.4.6
diff --git a/node_modules/minimist/LICENSE b/node_modules/minimist/LICENSE
deleted file mode 100644
index ee27ba4..0000000
--- a/node_modules/minimist/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-This software is released under the MIT license:
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/minimist/example/parse.js b/node_modules/minimist/example/parse.js
deleted file mode 100644
index f7c8d49..0000000
--- a/node_modules/minimist/example/parse.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var argv = require('../')(process.argv.slice(2));
-console.log(argv);
diff --git a/node_modules/minimist/index.js b/node_modules/minimist/index.js
deleted file mode 100644
index d2afe5e..0000000
--- a/node_modules/minimist/index.js
+++ /dev/null
@@ -1,245 +0,0 @@
-module.exports = function (args, opts) {
- if (!opts) opts = {};
-
- var flags = { bools : {}, strings : {}, unknownFn: null };
-
- if (typeof opts['unknown'] === 'function') {
- flags.unknownFn = opts['unknown'];
- }
-
- if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
- flags.allBools = true;
- } else {
- [].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
- flags.bools[key] = true;
- });
- }
-
- var aliases = {};
- Object.keys(opts.alias || {}).forEach(function (key) {
- aliases[key] = [].concat(opts.alias[key]);
- aliases[key].forEach(function (x) {
- aliases[x] = [key].concat(aliases[key].filter(function (y) {
- return x !== y;
- }));
- });
- });
-
- [].concat(opts.string).filter(Boolean).forEach(function (key) {
- flags.strings[key] = true;
- if (aliases[key]) {
- flags.strings[aliases[key]] = true;
- }
- });
-
- var defaults = opts['default'] || {};
-
- var argv = { _ : [] };
- Object.keys(flags.bools).forEach(function (key) {
- setArg(key, defaults[key] === undefined ? false : defaults[key]);
- });
-
- var notFlags = [];
-
- if (args.indexOf('--') !== -1) {
- notFlags = args.slice(args.indexOf('--')+1);
- args = args.slice(0, args.indexOf('--'));
- }
-
- function argDefined(key, arg) {
- return (flags.allBools && /^--[^=]+$/.test(arg)) ||
- flags.strings[key] || flags.bools[key] || aliases[key];
- }
-
- function setArg (key, val, arg) {
- if (arg && flags.unknownFn && !argDefined(key, arg)) {
- if (flags.unknownFn(arg) === false) return;
- }
-
- var value = !flags.strings[key] && isNumber(val)
- ? Number(val) : val
- ;
- setKey(argv, key.split('.'), value);
-
- (aliases[key] || []).forEach(function (x) {
- setKey(argv, x.split('.'), value);
- });
- }
-
- function setKey (obj, keys, value) {
- var o = obj;
- for (var i = 0; i < keys.length-1; i++) {
- var key = keys[i];
- if (key === '__proto__') return;
- if (o[key] === undefined) o[key] = {};
- if (o[key] === Object.prototype || o[key] === Number.prototype
- || o[key] === String.prototype) o[key] = {};
- if (o[key] === Array.prototype) o[key] = [];
- o = o[key];
- }
-
- var key = keys[keys.length - 1];
- if (key === '__proto__') return;
- if (o === Object.prototype || o === Number.prototype
- || o === String.prototype) o = {};
- if (o === Array.prototype) o = [];
- if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
- o[key] = value;
- }
- else if (Array.isArray(o[key])) {
- o[key].push(value);
- }
- else {
- o[key] = [ o[key], value ];
- }
- }
-
- function aliasIsBoolean(key) {
- return aliases[key].some(function (x) {
- return flags.bools[x];
- });
- }
-
- for (var i = 0; i < args.length; i++) {
- var arg = args[i];
-
- if (/^--.+=/.test(arg)) {
- // Using [\s\S] instead of . because js doesn't support the
- // 'dotall' regex modifier. See:
- // http://stackoverflow.com/a/1068308/13216
- var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
- var key = m[1];
- var value = m[2];
- if (flags.bools[key]) {
- value = value !== 'false';
- }
- setArg(key, value, arg);
- }
- else if (/^--no-.+/.test(arg)) {
- var key = arg.match(/^--no-(.+)/)[1];
- setArg(key, false, arg);
- }
- else if (/^--.+/.test(arg)) {
- var key = arg.match(/^--(.+)/)[1];
- var next = args[i + 1];
- if (next !== undefined && !/^-/.test(next)
- && !flags.bools[key]
- && !flags.allBools
- && (aliases[key] ? !aliasIsBoolean(key) : true)) {
- setArg(key, next, arg);
- i++;
- }
- else if (/^(true|false)$/.test(next)) {
- setArg(key, next === 'true', arg);
- i++;
- }
- else {
- setArg(key, flags.strings[key] ? '' : true, arg);
- }
- }
- else if (/^-[^-]+/.test(arg)) {
- var letters = arg.slice(1,-1).split('');
-
- var broken = false;
- for (var j = 0; j < letters.length; j++) {
- var next = arg.slice(j+2);
-
- if (next === '-') {
- setArg(letters[j], next, arg)
- continue;
- }
-
- if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
- setArg(letters[j], next.split('=')[1], arg);
- broken = true;
- break;
- }
-
- if (/[A-Za-z]/.test(letters[j])
- && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
- setArg(letters[j], next, arg);
- broken = true;
- break;
- }
-
- if (letters[j+1] && letters[j+1].match(/\W/)) {
- setArg(letters[j], arg.slice(j+2), arg);
- broken = true;
- break;
- }
- else {
- setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
- }
- }
-
- var key = arg.slice(-1)[0];
- if (!broken && key !== '-') {
- if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
- && !flags.bools[key]
- && (aliases[key] ? !aliasIsBoolean(key) : true)) {
- setArg(key, args[i+1], arg);
- i++;
- }
- else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
- setArg(key, args[i+1] === 'true', arg);
- i++;
- }
- else {
- setArg(key, flags.strings[key] ? '' : true, arg);
- }
- }
- }
- else {
- if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
- argv._.push(
- flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
- );
- }
- if (opts.stopEarly) {
- argv._.push.apply(argv._, args.slice(i + 1));
- break;
- }
- }
- }
-
- Object.keys(defaults).forEach(function (key) {
- if (!hasKey(argv, key.split('.'))) {
- setKey(argv, key.split('.'), defaults[key]);
-
- (aliases[key] || []).forEach(function (x) {
- setKey(argv, x.split('.'), defaults[key]);
- });
- }
- });
-
- if (opts['--']) {
- argv['--'] = new Array();
- notFlags.forEach(function(key) {
- argv['--'].push(key);
- });
- }
- else {
- notFlags.forEach(function(key) {
- argv._.push(key);
- });
- }
-
- return argv;
-};
-
-function hasKey (obj, keys) {
- var o = obj;
- keys.slice(0,-1).forEach(function (key) {
- o = (o[key] || {});
- });
-
- var key = keys[keys.length - 1];
- return key in o;
-}
-
-function isNumber (x) {
- if (typeof x === 'number') return true;
- if (/^0x[0-9a-f]+$/i.test(x)) return true;
- return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
-}
-
diff --git a/node_modules/minimist/package.json b/node_modules/minimist/package.json
deleted file mode 100644
index d9b3252..0000000
--- a/node_modules/minimist/package.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "_from": "minimist@^1.1.3",
- "_id": "minimist@1.2.5",
- "_inBundle": false,
- "_integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
- "_location": "/minimist",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "minimist@^1.1.3",
- "name": "minimist",
- "escapedName": "minimist",
- "rawSpec": "^1.1.3",
- "saveSpec": null,
- "fetchSpec": "^1.1.3"
- },
- "_requiredBy": [
- "/meow"
- ],
- "_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
- "_shasum": "67d66014b66a6a8aaa0c083c5fd58df4e4e97602",
- "_spec": "minimist@^1.1.3",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/meow",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "bugs": {
- "url": "https://github.com/substack/minimist/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "parse argument options",
- "devDependencies": {
- "covert": "^1.0.0",
- "tap": "~0.4.0",
- "tape": "^3.5.0"
- },
- "homepage": "https://github.com/substack/minimist",
- "keywords": [
- "argv",
- "getopt",
- "parser",
- "optimist"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "minimist",
- "repository": {
- "type": "git",
- "url": "git://github.com/substack/minimist.git"
- },
- "scripts": {
- "coverage": "covert test/*.js",
- "test": "tap test/*.js"
- },
- "testling": {
- "files": "test/*.js",
- "browsers": [
- "ie/6..latest",
- "ff/5",
- "firefox/latest",
- "chrome/10",
- "chrome/latest",
- "safari/5.1",
- "safari/latest",
- "opera/12"
- ]
- },
- "version": "1.2.5"
-}
diff --git a/node_modules/minimist/readme.markdown b/node_modules/minimist/readme.markdown
deleted file mode 100644
index 5fd97ab..0000000
--- a/node_modules/minimist/readme.markdown
+++ /dev/null
@@ -1,95 +0,0 @@
-# minimist
-
-parse argument options
-
-This module is the guts of optimist's argument parser without all the
-fanciful decoration.
-
-# example
-
-``` js
-var argv = require('minimist')(process.argv.slice(2));
-console.log(argv);
-```
-
-```
-$ node example/parse.js -a beep -b boop
-{ _: [], a: 'beep', b: 'boop' }
-```
-
-```
-$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz
-{ _: [ 'foo', 'bar', 'baz' ],
- x: 3,
- y: 4,
- n: 5,
- a: true,
- b: true,
- c: true,
- beep: 'boop' }
-```
-
-# security
-
-Previous versions had a prototype pollution bug that could cause privilege
-escalation in some circumstances when handling untrusted user input.
-
-Please use version 1.2.3 or later: https://snyk.io/vuln/SNYK-JS-MINIMIST-559764
-
-# methods
-
-``` js
-var parseArgs = require('minimist')
-```
-
-## var argv = parseArgs(args, opts={})
-
-Return an argument object `argv` populated with the array arguments from `args`.
-
-`argv._` contains all the arguments that didn't have an option associated with
-them.
-
-Numeric-looking arguments will be returned as numbers unless `opts.string` or
-`opts.boolean` is set for that argument name.
-
-Any arguments after `'--'` will not be parsed and will end up in `argv._`.
-
-options can be:
-
-* `opts.string` - a string or array of strings argument names to always treat as
-strings
-* `opts.boolean` - a boolean, string or array of strings to always treat as
-booleans. if `true` will treat all double hyphenated arguments without equal signs
-as boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`)
-* `opts.alias` - an object mapping string names to strings or arrays of string
-argument names to use as aliases
-* `opts.default` - an object mapping string argument names to default values
-* `opts.stopEarly` - when true, populate `argv._` with everything after the
-first non-option
-* `opts['--']` - when true, populate `argv._` with everything before the `--`
-and `argv['--']` with everything after the `--`. Here's an example:
-
- ```
- > require('./')('one two three -- four five --six'.split(' '), { '--': true })
- { _: [ 'one', 'two', 'three' ],
- '--': [ 'four', 'five', '--six' ] }
- ```
-
- Note that with `opts['--']` set, parsing for arguments still stops after the
- `--`.
-
-* `opts.unknown` - a function which is invoked with a command line parameter not
-defined in the `opts` configuration object. If the function returns `false`, the
-unknown option is not added to `argv`.
-
-# install
-
-With [npm](https://npmjs.org) do:
-
-```
-npm install minimist
-```
-
-# license
-
-MIT
diff --git a/node_modules/minimist/test/all_bool.js b/node_modules/minimist/test/all_bool.js
deleted file mode 100644
index ac83548..0000000
--- a/node_modules/minimist/test/all_bool.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('flag boolean true (default all --args to boolean)', function (t) {
- var argv = parse(['moo', '--honk', 'cow'], {
- boolean: true
- });
-
- t.deepEqual(argv, {
- honk: true,
- _: ['moo', 'cow']
- });
-
- t.deepEqual(typeof argv.honk, 'boolean');
- t.end();
-});
-
-test('flag boolean true only affects double hyphen arguments without equals signs', function (t) {
- var argv = parse(['moo', '--honk', 'cow', '-p', '55', '--tacos=good'], {
- boolean: true
- });
-
- t.deepEqual(argv, {
- honk: true,
- tacos: 'good',
- p: 55,
- _: ['moo', 'cow']
- });
-
- t.deepEqual(typeof argv.honk, 'boolean');
- t.end();
-});
diff --git a/node_modules/minimist/test/bool.js b/node_modules/minimist/test/bool.js
deleted file mode 100644
index 5f7dbde..0000000
--- a/node_modules/minimist/test/bool.js
+++ /dev/null
@@ -1,178 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('flag boolean default false', function (t) {
- var argv = parse(['moo'], {
- boolean: ['t', 'verbose'],
- default: { verbose: false, t: false }
- });
-
- t.deepEqual(argv, {
- verbose: false,
- t: false,
- _: ['moo']
- });
-
- t.deepEqual(typeof argv.verbose, 'boolean');
- t.deepEqual(typeof argv.t, 'boolean');
- t.end();
-
-});
-
-test('boolean groups', function (t) {
- var argv = parse([ '-x', '-z', 'one', 'two', 'three' ], {
- boolean: ['x','y','z']
- });
-
- t.deepEqual(argv, {
- x : true,
- y : false,
- z : true,
- _ : [ 'one', 'two', 'three' ]
- });
-
- t.deepEqual(typeof argv.x, 'boolean');
- t.deepEqual(typeof argv.y, 'boolean');
- t.deepEqual(typeof argv.z, 'boolean');
- t.end();
-});
-test('boolean and alias with chainable api', function (t) {
- var aliased = [ '-h', 'derp' ];
- var regular = [ '--herp', 'derp' ];
- var opts = {
- herp: { alias: 'h', boolean: true }
- };
- var aliasedArgv = parse(aliased, {
- boolean: 'herp',
- alias: { h: 'herp' }
- });
- var propertyArgv = parse(regular, {
- boolean: 'herp',
- alias: { h: 'herp' }
- });
- var expected = {
- herp: true,
- h: true,
- '_': [ 'derp' ]
- };
-
- t.same(aliasedArgv, expected);
- t.same(propertyArgv, expected);
- t.end();
-});
-
-test('boolean and alias with options hash', function (t) {
- var aliased = [ '-h', 'derp' ];
- var regular = [ '--herp', 'derp' ];
- var opts = {
- alias: { 'h': 'herp' },
- boolean: 'herp'
- };
- var aliasedArgv = parse(aliased, opts);
- var propertyArgv = parse(regular, opts);
- var expected = {
- herp: true,
- h: true,
- '_': [ 'derp' ]
- };
- t.same(aliasedArgv, expected);
- t.same(propertyArgv, expected);
- t.end();
-});
-
-test('boolean and alias array with options hash', function (t) {
- var aliased = [ '-h', 'derp' ];
- var regular = [ '--herp', 'derp' ];
- var alt = [ '--harp', 'derp' ];
- var opts = {
- alias: { 'h': ['herp', 'harp'] },
- boolean: 'h'
- };
- var aliasedArgv = parse(aliased, opts);
- var propertyArgv = parse(regular, opts);
- var altPropertyArgv = parse(alt, opts);
- var expected = {
- harp: true,
- herp: true,
- h: true,
- '_': [ 'derp' ]
- };
- t.same(aliasedArgv, expected);
- t.same(propertyArgv, expected);
- t.same(altPropertyArgv, expected);
- t.end();
-});
-
-test('boolean and alias using explicit true', function (t) {
- var aliased = [ '-h', 'true' ];
- var regular = [ '--herp', 'true' ];
- var opts = {
- alias: { h: 'herp' },
- boolean: 'h'
- };
- var aliasedArgv = parse(aliased, opts);
- var propertyArgv = parse(regular, opts);
- var expected = {
- herp: true,
- h: true,
- '_': [ ]
- };
-
- t.same(aliasedArgv, expected);
- t.same(propertyArgv, expected);
- t.end();
-});
-
-// regression, see https://github.com/substack/node-optimist/issues/71
-test('boolean and --x=true', function(t) {
- var parsed = parse(['--boool', '--other=true'], {
- boolean: 'boool'
- });
-
- t.same(parsed.boool, true);
- t.same(parsed.other, 'true');
-
- parsed = parse(['--boool', '--other=false'], {
- boolean: 'boool'
- });
-
- t.same(parsed.boool, true);
- t.same(parsed.other, 'false');
- t.end();
-});
-
-test('boolean --boool=true', function (t) {
- var parsed = parse(['--boool=true'], {
- default: {
- boool: false
- },
- boolean: ['boool']
- });
-
- t.same(parsed.boool, true);
- t.end();
-});
-
-test('boolean --boool=false', function (t) {
- var parsed = parse(['--boool=false'], {
- default: {
- boool: true
- },
- boolean: ['boool']
- });
-
- t.same(parsed.boool, false);
- t.end();
-});
-
-test('boolean using something similar to true', function (t) {
- var opts = { boolean: 'h' };
- var result = parse(['-h', 'true.txt'], opts);
- var expected = {
- h: true,
- '_': ['true.txt']
- };
-
- t.same(result, expected);
- t.end();
-}); \ No newline at end of file
diff --git a/node_modules/minimist/test/dash.js b/node_modules/minimist/test/dash.js
deleted file mode 100644
index 5a4fa5b..0000000
--- a/node_modules/minimist/test/dash.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('-', function (t) {
- t.plan(5);
- t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
- t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
- t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
- t.deepEqual(
- parse([ '-b', '-' ], { boolean: 'b' }),
- { b: true, _: [ '-' ] }
- );
- t.deepEqual(
- parse([ '-s', '-' ], { string: 's' }),
- { s: '-', _: [] }
- );
-});
-
-test('-a -- b', function (t) {
- t.plan(3);
- t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
- t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
- t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
-});
-
-test('move arguments after the -- into their own `--` array', function(t) {
- t.plan(1);
- t.deepEqual(
- parse([ '--name', 'John', 'before', '--', 'after' ], { '--': true }),
- { name: 'John', _: [ 'before' ], '--': [ 'after' ] });
-});
diff --git a/node_modules/minimist/test/default_bool.js b/node_modules/minimist/test/default_bool.js
deleted file mode 100644
index 780a311..0000000
--- a/node_modules/minimist/test/default_bool.js
+++ /dev/null
@@ -1,35 +0,0 @@
-var test = require('tape');
-var parse = require('../');
-
-test('boolean default true', function (t) {
- var argv = parse([], {
- boolean: 'sometrue',
- default: { sometrue: true }
- });
- t.equal(argv.sometrue, true);
- t.end();
-});
-
-test('boolean default false', function (t) {
- var argv = parse([], {
- boolean: 'somefalse',
- default: { somefalse: false }
- });
- t.equal(argv.somefalse, false);
- t.end();
-});
-
-test('boolean default to null', function (t) {
- var argv = parse([], {
- boolean: 'maybe',
- default: { maybe: null }
- });
- t.equal(argv.maybe, null);
- var argv = parse(['--maybe'], {
- boolean: 'maybe',
- default: { maybe: null }
- });
- t.equal(argv.maybe, true);
- t.end();
-
-})
diff --git a/node_modules/minimist/test/dotted.js b/node_modules/minimist/test/dotted.js
deleted file mode 100644
index d8b3e85..0000000
--- a/node_modules/minimist/test/dotted.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('dotted alias', function (t) {
- var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
- t.equal(argv.a.b, 22);
- t.equal(argv.aa.bb, 22);
- t.end();
-});
-
-test('dotted default', function (t) {
- var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
- t.equal(argv.a.b, 11);
- t.equal(argv.aa.bb, 11);
- t.end();
-});
-
-test('dotted default with no alias', function (t) {
- var argv = parse('', {default: {'a.b': 11}});
- t.equal(argv.a.b, 11);
- t.end();
-});
diff --git a/node_modules/minimist/test/kv_short.js b/node_modules/minimist/test/kv_short.js
deleted file mode 100644
index f813b30..0000000
--- a/node_modules/minimist/test/kv_short.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('short -k=v' , function (t) {
- t.plan(1);
-
- var argv = parse([ '-b=123' ]);
- t.deepEqual(argv, { b: 123, _: [] });
-});
-
-test('multi short -k=v' , function (t) {
- t.plan(1);
-
- var argv = parse([ '-a=whatever', '-b=robots' ]);
- t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] });
-});
diff --git a/node_modules/minimist/test/long.js b/node_modules/minimist/test/long.js
deleted file mode 100644
index 5d3a1e0..0000000
--- a/node_modules/minimist/test/long.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var test = require('tape');
-var parse = require('../');
-
-test('long opts', function (t) {
- t.deepEqual(
- parse([ '--bool' ]),
- { bool : true, _ : [] },
- 'long boolean'
- );
- t.deepEqual(
- parse([ '--pow', 'xixxle' ]),
- { pow : 'xixxle', _ : [] },
- 'long capture sp'
- );
- t.deepEqual(
- parse([ '--pow=xixxle' ]),
- { pow : 'xixxle', _ : [] },
- 'long capture eq'
- );
- t.deepEqual(
- parse([ '--host', 'localhost', '--port', '555' ]),
- { host : 'localhost', port : 555, _ : [] },
- 'long captures sp'
- );
- t.deepEqual(
- parse([ '--host=localhost', '--port=555' ]),
- { host : 'localhost', port : 555, _ : [] },
- 'long captures eq'
- );
- t.end();
-});
diff --git a/node_modules/minimist/test/num.js b/node_modules/minimist/test/num.js
deleted file mode 100644
index 2cc77f4..0000000
--- a/node_modules/minimist/test/num.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('nums', function (t) {
- var argv = parse([
- '-x', '1234',
- '-y', '5.67',
- '-z', '1e7',
- '-w', '10f',
- '--hex', '0xdeadbeef',
- '789'
- ]);
- t.deepEqual(argv, {
- x : 1234,
- y : 5.67,
- z : 1e7,
- w : '10f',
- hex : 0xdeadbeef,
- _ : [ 789 ]
- });
- t.deepEqual(typeof argv.x, 'number');
- t.deepEqual(typeof argv.y, 'number');
- t.deepEqual(typeof argv.z, 'number');
- t.deepEqual(typeof argv.w, 'string');
- t.deepEqual(typeof argv.hex, 'number');
- t.deepEqual(typeof argv._[0], 'number');
- t.end();
-});
-
-test('already a number', function (t) {
- var argv = parse([ '-x', 1234, 789 ]);
- t.deepEqual(argv, { x : 1234, _ : [ 789 ] });
- t.deepEqual(typeof argv.x, 'number');
- t.deepEqual(typeof argv._[0], 'number');
- t.end();
-});
diff --git a/node_modules/minimist/test/parse.js b/node_modules/minimist/test/parse.js
deleted file mode 100644
index 7b4a2a1..0000000
--- a/node_modules/minimist/test/parse.js
+++ /dev/null
@@ -1,197 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('parse args', function (t) {
- t.deepEqual(
- parse([ '--no-moo' ]),
- { moo : false, _ : [] },
- 'no'
- );
- t.deepEqual(
- parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]),
- { v : ['a','b','c'], _ : [] },
- 'multi'
- );
- t.end();
-});
-
-test('comprehensive', function (t) {
- t.deepEqual(
- parse([
- '--name=meowmers', 'bare', '-cats', 'woo',
- '-h', 'awesome', '--multi=quux',
- '--key', 'value',
- '-b', '--bool', '--no-meep', '--multi=baz',
- '--', '--not-a-flag', 'eek'
- ]),
- {
- c : true,
- a : true,
- t : true,
- s : 'woo',
- h : 'awesome',
- b : true,
- bool : true,
- key : 'value',
- multi : [ 'quux', 'baz' ],
- meep : false,
- name : 'meowmers',
- _ : [ 'bare', '--not-a-flag', 'eek' ]
- }
- );
- t.end();
-});
-
-test('flag boolean', function (t) {
- var argv = parse([ '-t', 'moo' ], { boolean: 't' });
- t.deepEqual(argv, { t : true, _ : [ 'moo' ] });
- t.deepEqual(typeof argv.t, 'boolean');
- t.end();
-});
-
-test('flag boolean value', function (t) {
- var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], {
- boolean: [ 't', 'verbose' ],
- default: { verbose: true }
- });
-
- t.deepEqual(argv, {
- verbose: false,
- t: true,
- _: ['moo']
- });
-
- t.deepEqual(typeof argv.verbose, 'boolean');
- t.deepEqual(typeof argv.t, 'boolean');
- t.end();
-});
-
-test('newlines in params' , function (t) {
- var args = parse([ '-s', "X\nX" ])
- t.deepEqual(args, { _ : [], s : "X\nX" });
-
- // reproduce in bash:
- // VALUE="new
- // line"
- // node program.js --s="$VALUE"
- args = parse([ "--s=X\nX" ])
- t.deepEqual(args, { _ : [], s : "X\nX" });
- t.end();
-});
-
-test('strings' , function (t) {
- var s = parse([ '-s', '0001234' ], { string: 's' }).s;
- t.equal(s, '0001234');
- t.equal(typeof s, 'string');
-
- var x = parse([ '-x', '56' ], { string: 'x' }).x;
- t.equal(x, '56');
- t.equal(typeof x, 'string');
- t.end();
-});
-
-test('stringArgs', function (t) {
- var s = parse([ ' ', ' ' ], { string: '_' })._;
- t.same(s.length, 2);
- t.same(typeof s[0], 'string');
- t.same(s[0], ' ');
- t.same(typeof s[1], 'string');
- t.same(s[1], ' ');
- t.end();
-});
-
-test('empty strings', function(t) {
- var s = parse([ '-s' ], { string: 's' }).s;
- t.equal(s, '');
- t.equal(typeof s, 'string');
-
- var str = parse([ '--str' ], { string: 'str' }).str;
- t.equal(str, '');
- t.equal(typeof str, 'string');
-
- var letters = parse([ '-art' ], {
- string: [ 'a', 't' ]
- });
-
- t.equal(letters.a, '');
- t.equal(letters.r, true);
- t.equal(letters.t, '');
-
- t.end();
-});
-
-
-test('string and alias', function(t) {
- var x = parse([ '--str', '000123' ], {
- string: 's',
- alias: { s: 'str' }
- });
-
- t.equal(x.str, '000123');
- t.equal(typeof x.str, 'string');
- t.equal(x.s, '000123');
- t.equal(typeof x.s, 'string');
-
- var y = parse([ '-s', '000123' ], {
- string: 'str',
- alias: { str: 's' }
- });
-
- t.equal(y.str, '000123');
- t.equal(typeof y.str, 'string');
- t.equal(y.s, '000123');
- t.equal(typeof y.s, 'string');
- t.end();
-});
-
-test('slashBreak', function (t) {
- t.same(
- parse([ '-I/foo/bar/baz' ]),
- { I : '/foo/bar/baz', _ : [] }
- );
- t.same(
- parse([ '-xyz/foo/bar/baz' ]),
- { x : true, y : true, z : '/foo/bar/baz', _ : [] }
- );
- t.end();
-});
-
-test('alias', function (t) {
- var argv = parse([ '-f', '11', '--zoom', '55' ], {
- alias: { z: 'zoom' }
- });
- t.equal(argv.zoom, 55);
- t.equal(argv.z, argv.zoom);
- t.equal(argv.f, 11);
- t.end();
-});
-
-test('multiAlias', function (t) {
- var argv = parse([ '-f', '11', '--zoom', '55' ], {
- alias: { z: [ 'zm', 'zoom' ] }
- });
- t.equal(argv.zoom, 55);
- t.equal(argv.z, argv.zoom);
- t.equal(argv.z, argv.zm);
- t.equal(argv.f, 11);
- t.end();
-});
-
-test('nested dotted objects', function (t) {
- var argv = parse([
- '--foo.bar', '3', '--foo.baz', '4',
- '--foo.quux.quibble', '5', '--foo.quux.o_O',
- '--beep.boop'
- ]);
-
- t.same(argv.foo, {
- bar : 3,
- baz : 4,
- quux : {
- quibble : 5,
- o_O : true
- }
- });
- t.same(argv.beep, { boop : true });
- t.end();
-});
diff --git a/node_modules/minimist/test/parse_modified.js b/node_modules/minimist/test/parse_modified.js
deleted file mode 100644
index ab620dc..0000000
--- a/node_modules/minimist/test/parse_modified.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('parse with modifier functions' , function (t) {
- t.plan(1);
-
- var argv = parse([ '-b', '123' ], { boolean: 'b' });
- t.deepEqual(argv, { b: true, _: [123] });
-});
diff --git a/node_modules/minimist/test/proto.js b/node_modules/minimist/test/proto.js
deleted file mode 100644
index 8649107..0000000
--- a/node_modules/minimist/test/proto.js
+++ /dev/null
@@ -1,44 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('proto pollution', function (t) {
- var argv = parse(['--__proto__.x','123']);
- t.equal({}.x, undefined);
- t.equal(argv.__proto__.x, undefined);
- t.equal(argv.x, undefined);
- t.end();
-});
-
-test('proto pollution (array)', function (t) {
- var argv = parse(['--x','4','--x','5','--x.__proto__.z','789']);
- t.equal({}.z, undefined);
- t.deepEqual(argv.x, [4,5]);
- t.equal(argv.x.z, undefined);
- t.equal(argv.x.__proto__.z, undefined);
- t.end();
-});
-
-test('proto pollution (number)', function (t) {
- var argv = parse(['--x','5','--x.__proto__.z','100']);
- t.equal({}.z, undefined);
- t.equal((4).z, undefined);
- t.equal(argv.x, 5);
- t.equal(argv.x.z, undefined);
- t.end();
-});
-
-test('proto pollution (string)', function (t) {
- var argv = parse(['--x','abc','--x.__proto__.z','def']);
- t.equal({}.z, undefined);
- t.equal('...'.z, undefined);
- t.equal(argv.x, 'abc');
- t.equal(argv.x.z, undefined);
- t.end();
-});
-
-test('proto pollution (constructor)', function (t) {
- var argv = parse(['--constructor.prototype.y','123']);
- t.equal({}.y, undefined);
- t.equal(argv.y, undefined);
- t.end();
-});
diff --git a/node_modules/minimist/test/short.js b/node_modules/minimist/test/short.js
deleted file mode 100644
index d513a1c..0000000
--- a/node_modules/minimist/test/short.js
+++ /dev/null
@@ -1,67 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('numeric short args', function (t) {
- t.plan(2);
- t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] });
- t.deepEqual(
- parse([ '-123', '456' ]),
- { 1: true, 2: true, 3: 456, _: [] }
- );
-});
-
-test('short', function (t) {
- t.deepEqual(
- parse([ '-b' ]),
- { b : true, _ : [] },
- 'short boolean'
- );
- t.deepEqual(
- parse([ 'foo', 'bar', 'baz' ]),
- { _ : [ 'foo', 'bar', 'baz' ] },
- 'bare'
- );
- t.deepEqual(
- parse([ '-cats' ]),
- { c : true, a : true, t : true, s : true, _ : [] },
- 'group'
- );
- t.deepEqual(
- parse([ '-cats', 'meow' ]),
- { c : true, a : true, t : true, s : 'meow', _ : [] },
- 'short group next'
- );
- t.deepEqual(
- parse([ '-h', 'localhost' ]),
- { h : 'localhost', _ : [] },
- 'short capture'
- );
- t.deepEqual(
- parse([ '-h', 'localhost', '-p', '555' ]),
- { h : 'localhost', p : 555, _ : [] },
- 'short captures'
- );
- t.end();
-});
-
-test('mixed short bool and capture', function (t) {
- t.same(
- parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]),
- {
- f : true, p : 555, h : 'localhost',
- _ : [ 'script.js' ]
- }
- );
- t.end();
-});
-
-test('short and long', function (t) {
- t.deepEqual(
- parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]),
- {
- f : true, p : 555, h : 'localhost',
- _ : [ 'script.js' ]
- }
- );
- t.end();
-});
diff --git a/node_modules/minimist/test/stop_early.js b/node_modules/minimist/test/stop_early.js
deleted file mode 100644
index bdf9fbc..0000000
--- a/node_modules/minimist/test/stop_early.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('stops parsing on the first non-option when stopEarly is set', function (t) {
- var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
- stopEarly: true
- });
-
- t.deepEqual(argv, {
- aaa: 'bbb',
- _: ['ccc', '--ddd']
- });
-
- t.end();
-});
diff --git a/node_modules/minimist/test/unknown.js b/node_modules/minimist/test/unknown.js
deleted file mode 100644
index 462a36b..0000000
--- a/node_modules/minimist/test/unknown.js
+++ /dev/null
@@ -1,102 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('boolean and alias is not unknown', function (t) {
- var unknown = [];
- function unknownFn(arg) {
- unknown.push(arg);
- return false;
- }
- var aliased = [ '-h', 'true', '--derp', 'true' ];
- var regular = [ '--herp', 'true', '-d', 'true' ];
- var opts = {
- alias: { h: 'herp' },
- boolean: 'h',
- unknown: unknownFn
- };
- var aliasedArgv = parse(aliased, opts);
- var propertyArgv = parse(regular, opts);
-
- t.same(unknown, ['--derp', '-d']);
- t.end();
-});
-
-test('flag boolean true any double hyphen argument is not unknown', function (t) {
- var unknown = [];
- function unknownFn(arg) {
- unknown.push(arg);
- return false;
- }
- var argv = parse(['--honk', '--tacos=good', 'cow', '-p', '55'], {
- boolean: true,
- unknown: unknownFn
- });
- t.same(unknown, ['--tacos=good', 'cow', '-p']);
- t.same(argv, {
- honk: true,
- _: []
- });
- t.end();
-});
-
-test('string and alias is not unknown', function (t) {
- var unknown = [];
- function unknownFn(arg) {
- unknown.push(arg);
- return false;
- }
- var aliased = [ '-h', 'hello', '--derp', 'goodbye' ];
- var regular = [ '--herp', 'hello', '-d', 'moon' ];
- var opts = {
- alias: { h: 'herp' },
- string: 'h',
- unknown: unknownFn
- };
- var aliasedArgv = parse(aliased, opts);
- var propertyArgv = parse(regular, opts);
-
- t.same(unknown, ['--derp', '-d']);
- t.end();
-});
-
-test('default and alias is not unknown', function (t) {
- var unknown = [];
- function unknownFn(arg) {
- unknown.push(arg);
- return false;
- }
- var aliased = [ '-h', 'hello' ];
- var regular = [ '--herp', 'hello' ];
- var opts = {
- default: { 'h': 'bar' },
- alias: { 'h': 'herp' },
- unknown: unknownFn
- };
- var aliasedArgv = parse(aliased, opts);
- var propertyArgv = parse(regular, opts);
-
- t.same(unknown, []);
- t.end();
- unknownFn(); // exercise fn for 100% coverage
-});
-
-test('value following -- is not unknown', function (t) {
- var unknown = [];
- function unknownFn(arg) {
- unknown.push(arg);
- return false;
- }
- var aliased = [ '--bad', '--', 'good', 'arg' ];
- var opts = {
- '--': true,
- unknown: unknownFn
- };
- var argv = parse(aliased, opts);
-
- t.same(unknown, ['--bad']);
- t.same(argv, {
- '--': ['good', 'arg'],
- '_': []
- })
- t.end();
-});
diff --git a/node_modules/minimist/test/whitespace.js b/node_modules/minimist/test/whitespace.js
deleted file mode 100644
index 8a52a58..0000000
--- a/node_modules/minimist/test/whitespace.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var parse = require('../');
-var test = require('tape');
-
-test('whitespace should be whitespace' , function (t) {
- t.plan(1);
- var x = parse([ '-x', '\t' ]).x;
- t.equal(x, '\t');
-});
diff --git a/node_modules/mkdirp/LICENSE b/node_modules/mkdirp/LICENSE
deleted file mode 100644
index 432d1ae..0000000
--- a/node_modules/mkdirp/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright 2010 James Halliday (mail@substack.net)
-
-This project is free software released under the MIT/X11 license:
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/mkdirp/bin/cmd.js b/node_modules/mkdirp/bin/cmd.js
deleted file mode 100755
index d95de15..0000000
--- a/node_modules/mkdirp/bin/cmd.js
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env node
-
-var mkdirp = require('../');
-var minimist = require('minimist');
-var fs = require('fs');
-
-var argv = minimist(process.argv.slice(2), {
- alias: { m: 'mode', h: 'help' },
- string: [ 'mode' ]
-});
-if (argv.help) {
- fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout);
- return;
-}
-
-var paths = argv._.slice();
-var mode = argv.mode ? parseInt(argv.mode, 8) : undefined;
-
-(function next () {
- if (paths.length === 0) return;
- var p = paths.shift();
-
- if (mode === undefined) mkdirp(p, cb)
- else mkdirp(p, mode, cb)
-
- function cb (err) {
- if (err) {
- console.error(err.message);
- process.exit(1);
- }
- else next();
- }
-})();
diff --git a/node_modules/mkdirp/bin/usage.txt b/node_modules/mkdirp/bin/usage.txt
deleted file mode 100644
index f952aa2..0000000
--- a/node_modules/mkdirp/bin/usage.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-usage: mkdirp [DIR1,DIR2..] {OPTIONS}
-
- Create each supplied directory including any necessary parent directories that
- don't yet exist.
-
- If the directory already exists, do nothing.
-
-OPTIONS are:
-
- -m, --mode If a directory needs to be created, set the mode as an octal
- permission string.
-
diff --git a/node_modules/mkdirp/index.js b/node_modules/mkdirp/index.js
deleted file mode 100644
index 468d7cd..0000000
--- a/node_modules/mkdirp/index.js
+++ /dev/null
@@ -1,99 +0,0 @@
-var path = require('path');
-var fs = require('fs');
-var _0777 = parseInt('0777', 8);
-
-module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
-
-function mkdirP (p, opts, f, made) {
- if (typeof opts === 'function') {
- f = opts;
- opts = {};
- }
- else if (!opts || typeof opts !== 'object') {
- opts = { mode: opts };
- }
-
- var mode = opts.mode;
- var xfs = opts.fs || fs;
-
- if (mode === undefined) {
- mode = _0777
- }
- if (!made) made = null;
-
- var cb = f || function () {};
- p = path.resolve(p);
-
- xfs.mkdir(p, mode, function (er) {
- if (!er) {
- made = made || p;
- return cb(null, made);
- }
- switch (er.code) {
- case 'ENOENT':
- if (path.dirname(p) === p) return cb(er);
- mkdirP(path.dirname(p), opts, function (er, made) {
- if (er) cb(er, made);
- else mkdirP(p, opts, cb, made);
- });
- break;
-
- // In the case of any other error, just see if there's a dir
- // there already. If so, then hooray! If not, then something
- // is borked.
- default:
- xfs.stat(p, function (er2, stat) {
- // if the stat fails, then that's super weird.
- // let the original error be the failure reason.
- if (er2 || !stat.isDirectory()) cb(er, made)
- else cb(null, made);
- });
- break;
- }
- });
-}
-
-mkdirP.sync = function sync (p, opts, made) {
- if (!opts || typeof opts !== 'object') {
- opts = { mode: opts };
- }
-
- var mode = opts.mode;
- var xfs = opts.fs || fs;
-
- if (mode === undefined) {
- mode = _0777
- }
- if (!made) made = null;
-
- p = path.resolve(p);
-
- try {
- xfs.mkdirSync(p, mode);
- made = made || p;
- }
- catch (err0) {
- switch (err0.code) {
- case 'ENOENT' :
- made = sync(path.dirname(p), opts, made);
- sync(p, opts, made);
- break;
-
- // In the case of any other error, just see if there's a dir
- // there already. If so, then hooray! If not, then something
- // is borked.
- default:
- var stat;
- try {
- stat = xfs.statSync(p);
- }
- catch (err1) {
- throw err0;
- }
- if (!stat.isDirectory()) throw err0;
- break;
- }
- }
-
- return made;
-};
diff --git a/node_modules/mkdirp/package.json b/node_modules/mkdirp/package.json
deleted file mode 100644
index a7f6350..0000000
--- a/node_modules/mkdirp/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "mkdirp@^0.5.1",
- "_id": "mkdirp@0.5.5",
- "_inBundle": false,
- "_integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
- "_location": "/mkdirp",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "mkdirp@^0.5.1",
- "name": "mkdirp",
- "escapedName": "mkdirp",
- "rawSpec": "^0.5.1",
- "saveSpec": null,
- "fetchSpec": "^0.5.1"
- },
- "_requiredBy": [
- "/fstream",
- "/node-gyp",
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
- "_shasum": "d91cefd62d1436ca0f41620e251288d420099def",
- "_spec": "mkdirp@^0.5.1",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/node-sass",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "bin": {
- "mkdirp": "bin/cmd.js"
- },
- "bugs": {
- "url": "https://github.com/substack/node-mkdirp/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "minimist": "^1.2.5"
- },
- "deprecated": false,
- "description": "Recursively mkdir, like `mkdir -p`",
- "devDependencies": {
- "mock-fs": "^3.7.0",
- "tap": "^5.4.2"
- },
- "files": [
- "bin",
- "index.js"
- ],
- "homepage": "https://github.com/substack/node-mkdirp#readme",
- "keywords": [
- "mkdir",
- "directory"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "mkdirp",
- "publishConfig": {
- "tag": "legacy"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/substack/node-mkdirp.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "0.5.5"
-}
diff --git a/node_modules/mkdirp/readme.markdown b/node_modules/mkdirp/readme.markdown
deleted file mode 100644
index fc314bf..0000000
--- a/node_modules/mkdirp/readme.markdown
+++ /dev/null
@@ -1,100 +0,0 @@
-# mkdirp
-
-Like `mkdir -p`, but in node.js!
-
-[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)
-
-# example
-
-## pow.js
-
-```js
-var mkdirp = require('mkdirp');
-
-mkdirp('/tmp/foo/bar/baz', function (err) {
- if (err) console.error(err)
- else console.log('pow!')
-});
-```
-
-Output
-
-```
-pow!
-```
-
-And now /tmp/foo/bar/baz exists, huzzah!
-
-# methods
-
-```js
-var mkdirp = require('mkdirp');
-```
-
-## mkdirp(dir, opts, cb)
-
-Create a new directory and any necessary subdirectories at `dir` with octal
-permission string `opts.mode`. If `opts` is a non-object, it will be treated as
-the `opts.mode`.
-
-If `opts.mode` isn't specified, it defaults to `0777`.
-
-`cb(err, made)` fires with the error or the first directory `made`
-that had to be created, if any.
-
-You can optionally pass in an alternate `fs` implementation by passing in
-`opts.fs`. Your implementation should have `opts.fs.mkdir(path, mode, cb)` and
-`opts.fs.stat(path, cb)`.
-
-## mkdirp.sync(dir, opts)
-
-Synchronously create a new directory and any necessary subdirectories at `dir`
-with octal permission string `opts.mode`. If `opts` is a non-object, it will be
-treated as the `opts.mode`.
-
-If `opts.mode` isn't specified, it defaults to `0777`.
-
-Returns the first directory that had to be created, if any.
-
-You can optionally pass in an alternate `fs` implementation by passing in
-`opts.fs`. Your implementation should have `opts.fs.mkdirSync(path, mode)` and
-`opts.fs.statSync(path)`.
-
-# usage
-
-This package also ships with a `mkdirp` command.
-
-```
-usage: mkdirp [DIR1,DIR2..] {OPTIONS}
-
- Create each supplied directory including any necessary parent directories that
- don't yet exist.
-
- If the directory already exists, do nothing.
-
-OPTIONS are:
-
- -m, --mode If a directory needs to be created, set the mode as an octal
- permission string.
-
-```
-
-# install
-
-With [npm](http://npmjs.org) do:
-
-```
-npm install mkdirp
-```
-
-to get the library, or
-
-```
-npm install -g mkdirp
-```
-
-to get the command.
-
-# license
-
-MIT
diff --git a/node_modules/nan/CHANGELOG.md b/node_modules/nan/CHANGELOG.md
deleted file mode 100644
index 44858c7..0000000
--- a/node_modules/nan/CHANGELOG.md
+++ /dev/null
@@ -1,533 +0,0 @@
-# NAN ChangeLog
-
-**Version 2.14.1: current Node 14.0.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1**
-
-### 2.14.1 Apr 21 2020
-
- - Bugfix: use GetBackingStore() instead of GetContents() (#888) 2c023bd447661a61071da318b0ff4003c3858d39
-
-### 2.14.0 May 16 2019
-
- - Feature: Add missing methods to Nan::Maybe<T> (#852) 4e962489fb84a184035b9fa74f245f650249aca6
-
-### 2.13.2 Mar 24 2019
-
- - Bugfix: remove usage of deprecated `IsNearDeath` (#842) fbaf42252af279c3d867c6b193571f9711c39847
-
-### 2.13.1 Mar 14 2019
-
- - Bugfix: check V8 version directly instead of inferring from NMV (#840) 12f9df9f393285de8fb4a8cd01478dc4fe3b089d
-
-### 2.13.0 Mar 13 2019
-
- - Feature: add support for node master (#831) 113c0282072e7ff4f9dfc98b432fd894b798c2c
-
-### 2.12.1 Dec 18 2018
-
- - Bugfix: Fix build breakage with Node.js 10.0.0-10.9.0. (#833) 625e90e8fef8d39ffa7247250a76a100b2487474
-
-### 2.12.0 Dec 16 2018
-
- - Bugfix: Add scope.Escape() to Call() (#817) 2e5ed4fc3a8ac80a6ef1f2a55099ab3ac8800dc6
- - Bugfix: Fix Node.js v10.12.0 deprecation warnings. 509859cc23b1770376b56550a027840a2ce0f73d
- - Feature: Allow SetWeak() for non-object persistent handles. (#824) e6ef6a48e7e671fe3e4b7dddaa8912a3f8262ecd
-
-### 2.11.1 Sep 29 2018
-
- - Fix: adapt to V8 7.0 24a22c3b25eeeec2016c6ec239bdd6169e985447
-
-### 2.11.0 Aug 25 2018
-
- - Removal: remove `FunctionCallbackInfo::Callee` for nodejs `>= 10` 1a56c0a6efd4fac944cb46c30912a8e023bda7d4
- - Bugfix: Fix `AsyncProgressWorkerBase::WorkProgress` sends invalid data b0c764d1dab11e9f8b37ffb81e2560a4498aad5e
- - Feature: Introduce `GetCurrentEventLoop` b4911b0bb1f6d47d860e10ec014d941c51efac5e
- - Feature: Add `NAN_MODULE_WORKER_ENABLED` macro as a replacement for `NAN_MODULE` b058fb047d18a58250e66ae831444441c1f2ac7a
-
-### 2.10.0 Mar 16 2018
-
- - Deprecation: Deprecate `MakeCallback` 5e92b19a59e194241d6a658bd6ff7bfbda372950
- - Feature: add `Nan::Call` overload 4482e1242fe124d166fc1a5b2be3c1cc849fe452
- - Feature: add more `Nan::Call` overloads 8584e63e6d04c7d2eb8c4a664e4ef57d70bf672b
- - Feature: Fix deprecation warnings for Node 10 1caf258243b0602ed56922bde74f1c91b0cbcb6a
-
-### 2.9.2 Feb 22 2018
-
- - Bugfix: Bandaid for async hooks 212bd2f849be14ef1b02fc85010b053daa24252b
-
-### 2.9.1 Feb 22 2018
-
- - Bugfix: Avoid deprecation warnings in deprecated `Nan::Callback::operator()` 372b14d91289df4604b0f81780709708c45a9aa4
- - Bugfix: Avoid deprecation warnings in `Nan::JSON` 3bc294bce0b7d0a3ee4559926303e5ed4866fda2
-
-### 2.9.0 Feb 22 2018
-
- - Deprecation: Deprecate legacy `Callback::Call` 6dd5fa690af61ca3523004b433304c581b3ea309
- - Feature: introduce `AsyncResource` class 90c0a179c0d8cb5fd26f1a7d2b1d6231eb402d48o
- - Feature: Add context aware `Nan::Callback::Call` functions 7169e09fb088418b6e388222e88b4c13f07ebaee
- - Feature: Make `AsyncWorker` context aware 066ba21a6fb9e2b5230c9ed3a6fc51f1211736a4
- - Feature: add `Callback` overload to `Nan::Call` 5328daf66e202658c1dc0d916c3aaba99b3cc606
- - Bugfix: fix warning: suggest parentheses around `&&` within `||` b2bb63d68b8ae623a526b542764e1ac82319cb2c
- - Bugfix: Fix compilation on io.js 3 d06114dba0a522fb436f0c5f47b994210968cd7b
-
-### 2.8.0 Nov 15 2017
-
- - Deprecation: Deprecate `Nan::ForceSet` in favor of `Nan::DefineOwnProperty()` 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
- - Feature: Add `Nan::AsyncProgressQueueWorker` a976636ecc2ef617d1b061ce4a6edf39923691cb
- - Feature: Add `Nan::DefineOwnProperty()` 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
- - Bugfix: Fix compiling on io.js 1 & 2 82705a64503ce60c62e98df5bd02972bba090900
- - Bugfix: Use DefineOwnProperty instead of ForceSet 95cbb976d6fbbba88ba0f86dd188223a8591b4e7
-
-### 2.7.0 Aug 30 2017
-
- - Feature: Add `Nan::To<v8::Function>()` overload. b93280670c9f6da42ed4cf6cbf085ffdd87bd65b
- - Bugfix: Fix ternary in `Nan::MaybeLocal<T>::FromMaybe<S>()`. 79a26f7d362e756a9524e672a82c3d603b542867
-
-### 2.6.2 Apr 12 2017
-
- - Bugfix: Fix v8::JSON::Parse() deprecation warning. 87f6a3c65815fa062296a994cc863e2fa124867d
-
-### 2.6.1 Apr 6 2017
-
- - Bugfix: nan_json.h: fix build breakage in Node 6 ac8d47dc3c10bfbf3f15a6b951633120c0ee6d51
-
-### 2.6.0 Apr 6 2017
-
- - Feature: nan: add support for JSON::Parse & Stringify b533226c629cce70e1932a873bb6f849044a56c5
-
-### 2.5.1 Jan 23 2017
-
- - Bugfix: Fix disappearing handle for private value 6a80995694f162ef63dbc9948fbefd45d4485aa0
- - Bugfix: Add missing scopes a93b8bae6bc7d32a170db6e89228b7f60ee57112
- - Bugfix: Use string::data instead of string::front in NewOneByteString d5f920371e67e1f3b268295daee6e83af86b6e50
-
-### 2.5.0 Dec 21 2016
-
- - Feature: Support Private accessors a86255cb357e8ad8ccbf1f6a4a901c921e39a178
- - Bugfix: Abort in delete operators that shouldn't be called 0fe38215ff8581703967dfd26c12793feb960018
-
-### 2.4.0 Jul 10 2016
-
- - Feature: Rewrite Callback to add Callback::Reset c4cf44d61f8275cd5f7b0c911d7a806d4004f649
- - Feature: AsyncProgressWorker: add template types for .send 1242c9a11a7ed481c8f08ec06316385cacc513d0
- - Bugfix: Add constness to old Persistent comparison operators bd43cb9982c7639605d60fd073efe8cae165d9b2
-
-### 2.3.5 May 31 2016
-
- - Bugfix: Replace NAN_INLINE with 'inline' keyword. 71819d8725f822990f439479c9aba3b240804909
-
-### 2.3.4 May 31 2016
-
- - Bugfix: Remove V8 deprecation warnings 0592fb0a47f3a1c7763087ebea8e1138829f24f9
- - Bugfix: Fix new versions not to use WeakCallbackInfo::IsFirstPass 615c19d9e03d4be2049c10db0151edbc3b229246
- - Bugfix: Make ObjectWrap::handle() const d19af99595587fe7a26bd850af6595c2a7145afc
- - Bugfix: Fix compilation errors related to 0592fb0a47f3a1c7763087ebea8e1138829f24f9 e9191c525b94f652718325e28610a1adcf90fed8
-
-### 2.3.3 May 4 2016
-
- - Bugfix: Refactor SetMethod() to deal with v8::Templates (#566) b9083cf6d5de6ebe6bcb49c7502fbb7c0d9ddda8
-
-### 2.3.2 Apr 27 2016
-
- - Bugfix: Fix compilation on outdated versions due to Handle removal f8b7c875d04d425a41dfd4f3f8345bc3a11e6c52
-
-### 2.3.1 Apr 27 2016
-
- - Bugfix: Don't use deprecated v8::Template::Set() in SetMethod a90951e9ea70fa1b3836af4b925322919159100e
-
-### 2.3.0 Apr 27 2016
-
- - Feature: added Signal() for invoking async callbacks without sending data from AsyncProgressWorker d8adba45f20e077d00561b20199133620c990b38
- - Bugfix: Don't use deprecated v8::Template::Set() 00dacf0a4b86027415867fa7f1059acc499dcece
-
-### 2.2.1 Mar 29 2016
-
- - Bugfix: Use NewFromUnsigned in ReturnValue<T>::Set(uint32_t i) for pre_12 3a18f9bdce29826e0e4c217854bc476918241a58
- - Performance: Remove unneeeded nullptr checks b715ef44887931c94f0d1605b3b1a4156eebece9
-
-### 2.2.0 Jan 9 2016
-
- - Feature: Add Function::Call wrapper 4c157474dacf284d125c324177b45aa5dabc08c6
- - Feature: Rename GC*logueCallback to GCCallback for > 4.0 3603435109f981606d300eb88004ca101283acec
- - Bugfix: Fix Global::Pass for old versions 367e82a60fbaa52716232cc89db1cc3f685d77d9
- - Bugfix: Remove weird MaybeLocal wrapping of what already is a MaybeLocal 23b4590db10c2ba66aee2338aebe9751c4cb190b
-
-### 2.1.0 Oct 8 2015
-
- - Deprecation: Deprecate NanErrnoException in favor of ErrnoException 0af1ca4cf8b3f0f65ed31bc63a663ab3319da55c
- - Feature: added helper class for accessing contents of typedarrays 17b51294c801e534479d5463697a73462d0ca555
- - Feature: [Maybe types] Add MakeMaybe(...) 48d7b53d9702b0c7a060e69ea10fea8fb48d814d
- - Feature: new: allow utf16 string with length 66ac6e65c8ab9394ef588adfc59131b3b9d8347b
- - Feature: Introduce SetCallHandler and SetCallAsFunctionHandler 7764a9a115d60ba10dc24d86feb0fbc9b4f75537
- - Bugfix: Enable creating Locals from Globals under Node 0.10. 9bf9b8b190821af889790fdc18ace57257e4f9ff
- - Bugfix: Fix issue #462 where PropertyCallbackInfo data is not stored safely. 55f50adedd543098526c7b9f4fffd607d3f9861f
-
-### 2.0.9 Sep 8 2015
-
- - Bugfix: EscapableHandleScope in Nan::NewBuffer for Node 0.8 and 0.10 b1654d7
-
-### 2.0.8 Aug 28 2015
-
- - Work around duplicate linking bug in clang 11902da
-
-### 2.0.7 Aug 26 2015
-
- - Build: Repackage
-
-### 2.0.6 Aug 26 2015
-
- - Bugfix: Properly handle null callback in FunctionTemplate factory 6e99cb1
- - Bugfix: Remove unused static std::map instances 525bddc
- - Bugfix: Make better use of maybe versions of APIs bfba85b
- - Bugfix: Fix shadowing issues with handle in ObjectWrap 0a9072d
-
-### 2.0.5 Aug 10 2015
-
- - Bugfix: Reimplement weak callback in ObjectWrap 98d38c1
- - Bugfix: Make sure callback classes are not assignable, copyable or movable 81f9b1d
-
-### 2.0.4 Aug 6 2015
-
- - Build: Repackage
-
-### 2.0.3 Aug 6 2015
-
- - Bugfix: Don't use clang++ / g++ syntax extension. 231450e
-
-### 2.0.2 Aug 6 2015
-
- - Build: Repackage
-
-### 2.0.1 Aug 6 2015
-
- - Bugfix: Add workaround for missing REPLACE_INVALID_UTF8 60d6687
- - Bugfix: Reimplement ObjectWrap from scratch to prevent memory leaks 6484601
- - Bugfix: Fix Persistent leak in FunctionCallbackInfo and PropertyCallbackInfo 641ef5f
- - Bugfix: Add missing overload for Nan::NewInstance that takes argc/argv 29450ed
-
-### 2.0.0 Jul 31 2015
-
- - Change: Renamed identifiers with leading underscores b5932b4
- - Change: Replaced NanObjectWrapHandle with class NanObjectWrap 464f1e1
- - Change: Replace NanScope and NanEscpableScope macros with classes 47751c4
- - Change: Rename NanNewBufferHandle to NanNewBuffer 6745f99
- - Change: Rename NanBufferUse to NanNewBuffer 3e8b0a5
- - Change: Rename NanNewBuffer to NanCopyBuffer d6af78d
- - Change: Remove Nan prefix from all names 72d1f67
- - Change: Update Buffer API for new upstream changes d5d3291
- - Change: Rename Scope and EscapableScope to HandleScope and EscapableHandleScope 21a7a6a
- - Change: Get rid of Handles e6c0daf
- - Feature: Support io.js 3 with V8 4.4
- - Feature: Introduce NanPersistent 7fed696
- - Feature: Introduce NanGlobal 4408da1
- - Feature: Added NanTryCatch 10f1ca4
- - Feature: Update for V8 v4.3 4b6404a
- - Feature: Introduce NanNewOneByteString c543d32
- - Feature: Introduce namespace Nan 67ed1b1
- - Removal: Remove NanLocker and NanUnlocker dd6e401
- - Removal: Remove string converters, except NanUtf8String, which now follows the node implementation b5d00a9
- - Removal: Remove NanReturn* macros d90a25c
- - Removal: Remove HasInstance e8f84fe
-
-
-### 1.9.0 Jul 31 2015
-
- - Feature: Added `NanFatalException` 81d4a2c
- - Feature: Added more error types 4265f06
- - Feature: Added dereference and function call operators to NanCallback c4b2ed0
- - Feature: Added indexed GetFromPersistent and SaveToPersistent edd510c
- - Feature: Added more overloads of SaveToPersistent and GetFromPersistent 8b1cef6
- - Feature: Added NanErrnoException dd87d9e
- - Correctness: Prevent assign, copy, and move for classes that do not support it 1f55c59, 4b808cb, c96d9b2, fba4a29, 3357130
- - Deprecation: Deprecate `NanGetPointerSafe` and `NanSetPointerSafe` 81d4a2c
- - Deprecation: Deprecate `NanBooleanOptionValue` and `NanUInt32OptionValue` 0ad254b
-
-### 1.8.4 Apr 26 2015
-
- - Build: Repackage
-
-### 1.8.3 Apr 26 2015
-
- - Bugfix: Include missing header 1af8648
-
-### 1.8.2 Apr 23 2015
-
- - Build: Repackage
-
-### 1.8.1 Apr 23 2015
-
- - Bugfix: NanObjectWrapHandle should take a pointer 155f1d3
-
-### 1.8.0 Apr 23 2015
-
- - Feature: Allow primitives with NanReturnValue 2e4475e
- - Feature: Added comparison operators to NanCallback 55b075e
- - Feature: Backport thread local storage 15bb7fa
- - Removal: Remove support for signatures with arguments 8a2069d
- - Correcteness: Replaced NanObjectWrapHandle macro with function 0bc6d59
-
-### 1.7.0 Feb 28 2015
-
- - Feature: Made NanCallback::Call accept optional target 8d54da7
- - Feature: Support atom-shell 0.21 0b7f1bb
-
-### 1.6.2 Feb 6 2015
-
- - Bugfix: NanEncode: fix argument type for node::Encode on io.js 2be8639
-
-### 1.6.1 Jan 23 2015
-
- - Build: version bump
-
-### 1.5.3 Jan 23 2015
-
- - Build: repackage
-
-### 1.6.0 Jan 23 2015
-
- - Deprecated `NanNewContextHandle` in favor of `NanNew<Context>` 49259af
- - Support utility functions moved in newer v8 versions (Node 0.11.15, io.js 1.0) a0aa179
- - Added `NanEncode`, `NanDecodeBytes` and `NanDecodeWrite` 75e6fb9
-
-### 1.5.2 Jan 23 2015
-
- - Bugfix: Fix non-inline definition build error with clang++ 21d96a1, 60fadd4
- - Bugfix: Readded missing String constructors 18d828f
- - Bugfix: Add overload handling NanNew<FunctionTemplate>(..) 5ef813b
- - Bugfix: Fix uv_work_cb versioning 997e4ae
- - Bugfix: Add function factory and test 4eca89c
- - Bugfix: Add object template factory and test cdcb951
- - Correctness: Lifted an io.js related typedef c9490be
- - Correctness: Make explicit downcasts of String lengths 00074e6
- - Windows: Limit the scope of disabled warning C4530 83d7deb
-
-### 1.5.1 Jan 15 2015
-
- - Build: version bump
-
-### 1.4.3 Jan 15 2015
-
- - Build: version bump
-
-### 1.4.2 Jan 15 2015
-
- - Feature: Support io.js 0dbc5e8
-
-### 1.5.0 Jan 14 2015
-
- - Feature: Support io.js b003843
- - Correctness: Improved NanNew internals 9cd4f6a
- - Feature: Implement progress to NanAsyncWorker 8d6a160
-
-### 1.4.1 Nov 8 2014
-
- - Bugfix: Handle DEBUG definition correctly
- - Bugfix: Accept int as Boolean
-
-### 1.4.0 Nov 1 2014
-
- - Feature: Added NAN_GC_CALLBACK 6a5c245
- - Performance: Removed unnecessary local handle creation 18a7243, 41fe2f8
- - Correctness: Added constness to references in NanHasInstance 02c61cd
- - Warnings: Fixed spurious warnings from -Wundef and -Wshadow, 541b122, 99d8cb6
- - Windoze: Shut Visual Studio up when compiling 8d558c1
- - License: Switch to plain MIT from custom hacked MIT license 11de983
- - Build: Added test target to Makefile e232e46
- - Performance: Removed superfluous scope in NanAsyncWorker f4b7821
- - Sugar/Feature: Added NanReturnThis() and NanReturnHolder() shorthands 237a5ff, d697208
- - Feature: Added suitable overload of NanNew for v8::Integer::NewFromUnsigned b27b450
-
-### 1.3.0 Aug 2 2014
-
- - Added NanNew<v8::String, std::string>(std::string)
- - Added NanNew<v8::String, std::string&>(std::string&)
- - Added NanAsciiString helper class
- - Added NanUtf8String helper class
- - Added NanUcs2String helper class
- - Deprecated NanRawString()
- - Deprecated NanCString()
- - Added NanGetIsolateData(v8::Isolate *isolate)
- - Added NanMakeCallback(v8::Handle<v8::Object> target, v8::Handle<v8::Function> func, int argc, v8::Handle<v8::Value>* argv)
- - Added NanMakeCallback(v8::Handle<v8::Object> target, v8::Handle<v8::String> symbol, int argc, v8::Handle<v8::Value>* argv)
- - Added NanMakeCallback(v8::Handle<v8::Object> target, const char* method, int argc, v8::Handle<v8::Value>* argv)
- - Added NanSetTemplate(v8::Handle<v8::Template> templ, v8::Handle<v8::String> name , v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
- - Added NanSetPrototypeTemplate(v8::Local<v8::FunctionTemplate> templ, v8::Handle<v8::String> name, v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
- - Added NanSetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ, const char *name, v8::Handle<v8::Data> value)
- - Added NanSetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ, v8::Handle<v8::String> name, v8::Handle<v8::Data> value, v8::PropertyAttribute attributes)
-
-### 1.2.0 Jun 5 2014
-
- - Add NanSetPrototypeTemplate
- - Changed NAN_WEAK_CALLBACK internals, switched _NanWeakCallbackData to class,
- introduced _NanWeakCallbackDispatcher
- - Removed -Wno-unused-local-typedefs from test builds
- - Made test builds Windows compatible ('Sleep()')
-
-### 1.1.2 May 28 2014
-
- - Release to fix more stuff-ups in 1.1.1
-
-### 1.1.1 May 28 2014
-
- - Release to fix version mismatch in nan.h and lack of changelog entry for 1.1.0
-
-### 1.1.0 May 25 2014
-
- - Remove nan_isolate, use v8::Isolate::GetCurrent() internally instead
- - Additional explicit overloads for NanNew(): (char*,int), (uint8_t*[,int]),
- (uint16_t*[,int), double, int, unsigned int, bool, v8::String::ExternalStringResource*,
- v8::String::ExternalAsciiStringResource*
- - Deprecate NanSymbol()
- - Added SetErrorMessage() and ErrorMessage() to NanAsyncWorker
-
-### 1.0.0 May 4 2014
-
- - Heavy API changes for V8 3.25 / Node 0.11.13
- - Use cpplint.py
- - Removed NanInitPersistent
- - Removed NanPersistentToLocal
- - Removed NanFromV8String
- - Removed NanMakeWeak
- - Removed NanNewLocal
- - Removed NAN_WEAK_CALLBACK_OBJECT
- - Removed NAN_WEAK_CALLBACK_DATA
- - Introduce NanNew, replaces NanNewLocal, NanPersistentToLocal, adds many overloaded typed versions
- - Introduce NanUndefined, NanNull, NanTrue and NanFalse
- - Introduce NanEscapableScope and NanEscapeScope
- - Introduce NanMakeWeakPersistent (requires a special callback to work on both old and new node)
- - Introduce NanMakeCallback for node::MakeCallback
- - Introduce NanSetTemplate
- - Introduce NanGetCurrentContext
- - Introduce NanCompileScript and NanRunScript
- - Introduce NanAdjustExternalMemory
- - Introduce NanAddGCEpilogueCallback, NanAddGCPrologueCallback, NanRemoveGCEpilogueCallback, NanRemoveGCPrologueCallback
- - Introduce NanGetHeapStatistics
- - Rename NanAsyncWorker#SavePersistent() to SaveToPersistent()
-
-### 0.8.0 Jan 9 2014
-
- - NanDispose -> NanDisposePersistent, deprecate NanDispose
- - Extract _NAN_*_RETURN_TYPE, pull up NAN_*()
-
-### 0.7.1 Jan 9 2014
-
- - Fixes to work against debug builds of Node
- - Safer NanPersistentToLocal (avoid reinterpret_cast)
- - Speed up common NanRawString case by only extracting flattened string when necessary
-
-### 0.7.0 Dec 17 2013
-
- - New no-arg form of NanCallback() constructor.
- - NanCallback#Call takes Handle rather than Local
- - Removed deprecated NanCallback#Run method, use NanCallback#Call instead
- - Split off _NAN_*_ARGS_TYPE from _NAN_*_ARGS
- - Restore (unofficial) Node 0.6 compatibility at NanCallback#Call()
- - Introduce NanRawString() for char* (or appropriate void*) from v8::String
- (replacement for NanFromV8String)
- - Introduce NanCString() for null-terminated char* from v8::String
-
-### 0.6.0 Nov 21 2013
-
- - Introduce NanNewLocal<T>(v8::Handle<T> value) for use in place of
- v8::Local<T>::New(...) since v8 started requiring isolate in Node 0.11.9
-
-### 0.5.2 Nov 16 2013
-
- - Convert SavePersistent and GetFromPersistent in NanAsyncWorker from protected and public
-
-### 0.5.1 Nov 12 2013
-
- - Use node::MakeCallback() instead of direct v8::Function::Call()
-
-### 0.5.0 Nov 11 2013
-
- - Added @TooTallNate as collaborator
- - New, much simpler, "include_dirs" for binding.gyp
- - Added full range of NAN_INDEX_* macros to match NAN_PROPERTY_* macros
-
-### 0.4.4 Nov 2 2013
-
- - Isolate argument from v8::Persistent::MakeWeak removed for 0.11.8+
-
-### 0.4.3 Nov 2 2013
-
- - Include node_object_wrap.h, removed from node.h for Node 0.11.8.
-
-### 0.4.2 Nov 2 2013
-
- - Handle deprecation of v8::Persistent::Dispose(v8::Isolate* isolate)) for
- Node 0.11.8 release.
-
-### 0.4.1 Sep 16 2013
-
- - Added explicit `#include <uv.h>` as it was removed from node.h for v0.11.8
-
-### 0.4.0 Sep 2 2013
-
- - Added NAN_INLINE and NAN_DEPRECATED and made use of them
- - Added NanError, NanTypeError and NanRangeError
- - Cleaned up code
-
-### 0.3.2 Aug 30 2013
-
- - Fix missing scope declaration in GetFromPersistent() and SaveToPersistent
- in NanAsyncWorker
-
-### 0.3.1 Aug 20 2013
-
- - fix "not all control paths return a value" compile warning on some platforms
-
-### 0.3.0 Aug 19 2013
-
- - Made NAN work with NPM
- - Lots of fixes to NanFromV8String, pulling in features from new Node core
- - Changed node::encoding to Nan::Encoding in NanFromV8String to unify the API
- - Added optional error number argument for NanThrowError()
- - Added NanInitPersistent()
- - Added NanReturnNull() and NanReturnEmptyString()
- - Added NanLocker and NanUnlocker
- - Added missing scopes
- - Made sure to clear disposed Persistent handles
- - Changed NanAsyncWorker to allocate error messages on the heap
- - Changed NanThrowError(Local<Value>) to NanThrowError(Handle<Value>)
- - Fixed leak in NanAsyncWorker when errmsg is used
-
-### 0.2.2 Aug 5 2013
-
- - Fixed usage of undefined variable with node::BASE64 in NanFromV8String()
-
-### 0.2.1 Aug 5 2013
-
- - Fixed 0.8 breakage, node::BUFFER encoding type not available in 0.8 for
- NanFromV8String()
-
-### 0.2.0 Aug 5 2013
-
- - Added NAN_PROPERTY_GETTER, NAN_PROPERTY_SETTER, NAN_PROPERTY_ENUMERATOR,
- NAN_PROPERTY_DELETER, NAN_PROPERTY_QUERY
- - Extracted _NAN_METHOD_ARGS, _NAN_GETTER_ARGS, _NAN_SETTER_ARGS,
- _NAN_PROPERTY_GETTER_ARGS, _NAN_PROPERTY_SETTER_ARGS,
- _NAN_PROPERTY_ENUMERATOR_ARGS, _NAN_PROPERTY_DELETER_ARGS,
- _NAN_PROPERTY_QUERY_ARGS
- - Added NanGetInternalFieldPointer, NanSetInternalFieldPointer
- - Added NAN_WEAK_CALLBACK, NAN_WEAK_CALLBACK_OBJECT,
- NAN_WEAK_CALLBACK_DATA, NanMakeWeak
- - Renamed THROW_ERROR to _NAN_THROW_ERROR
- - Added NanNewBufferHandle(char*, size_t, node::smalloc::FreeCallback, void*)
- - Added NanBufferUse(char*, uint32_t)
- - Added NanNewContextHandle(v8::ExtensionConfiguration*,
- v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)
- - Fixed broken NanCallback#GetFunction()
- - Added optional encoding and size arguments to NanFromV8String()
- - Added NanGetPointerSafe() and NanSetPointerSafe()
- - Added initial test suite (to be expanded)
- - Allow NanUInt32OptionValue to convert any Number object
-
-### 0.1.0 Jul 21 2013
-
- - Added `NAN_GETTER`, `NAN_SETTER`
- - Added `NanThrowError` with single Local<Value> argument
- - Added `NanNewBufferHandle` with single uint32_t argument
- - Added `NanHasInstance(Persistent<FunctionTemplate>&, Handle<Value>)`
- - Added `Local<Function> NanCallback#GetFunction()`
- - Added `NanCallback#Call(int, Local<Value>[])`
- - Deprecated `NanCallback#Run(int, Local<Value>[])` in favour of Call
diff --git a/node_modules/nan/LICENSE.md b/node_modules/nan/LICENSE.md
deleted file mode 100644
index dddd13d..0000000
--- a/node_modules/nan/LICENSE.md
+++ /dev/null
@@ -1,13 +0,0 @@
-The MIT License (MIT)
-=====================
-
-Copyright (c) 2018 NAN contributors
------------------------------------
-
-*NAN contributors listed at <https://github.com/nodejs/nan#contributors>*
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/nan/README.md b/node_modules/nan/README.md
deleted file mode 100644
index 9b5f38a..0000000
--- a/node_modules/nan/README.md
+++ /dev/null
@@ -1,455 +0,0 @@
-Native Abstractions for Node.js
-===============================
-
-**A header file filled with macro and utility goodness for making add-on development for Node.js easier across versions 0.8, 0.10, 0.12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 and 14.**
-
-***Current version: 2.14.1***
-
-*(See [CHANGELOG.md](https://github.com/nodejs/nan/blob/master/CHANGELOG.md) for complete ChangeLog)*
-
-[![NPM](https://nodei.co/npm/nan.png?downloads=true&downloadRank=true)](https://nodei.co/npm/nan/) [![NPM](https://nodei.co/npm-dl/nan.png?months=6&height=3)](https://nodei.co/npm/nan/)
-
-[![Build Status](https://api.travis-ci.org/nodejs/nan.svg?branch=master)](https://travis-ci.org/nodejs/nan)
-[![Build status](https://ci.appveyor.com/api/projects/status/kh73pbm9dsju7fgh)](https://ci.appveyor.com/project/RodVagg/nan)
-
-Thanks to the crazy changes in V8 (and some in Node core), keeping native addons compiling happily across versions, particularly 0.10 to 0.12 to 4.0, is a minor nightmare. The goal of this project is to store all logic necessary to develop native Node.js addons without having to inspect `NODE_MODULE_VERSION` and get yourself into a macro-tangle.
-
-This project also contains some helper utilities that make addon development a bit more pleasant.
-
- * **[News & Updates](#news)**
- * **[Usage](#usage)**
- * **[Example](#example)**
- * **[API](#api)**
- * **[Tests](#tests)**
- * **[Known issues](#issues)**
- * **[Governance & Contributing](#governance)**
-
-<a name="news"></a>
-
-## News & Updates
-
-<a name="usage"></a>
-
-## Usage
-
-Simply add **NAN** as a dependency in the *package.json* of your Node addon:
-
-``` bash
-$ npm install --save nan
-```
-
-Pull in the path to **NAN** in your *binding.gyp* so that you can use `#include <nan.h>` in your *.cpp* files:
-
-``` python
-"include_dirs" : [
- "<!(node -e \"require('nan')\")"
-]
-```
-
-This works like a `-I<path-to-NAN>` when compiling your addon.
-
-<a name="example"></a>
-
-## Example
-
-Just getting started with Nan? Take a look at the **[Node Add-on Examples](https://github.com/nodejs/node-addon-examples)**.
-
-Refer to a [quick-start **Nan** Boilerplate](https://github.com/fcanas/node-native-boilerplate) for a ready-to-go project that utilizes basic Nan functionality.
-
-For a simpler example, see the **[async pi estimation example](https://github.com/nodejs/nan/tree/master/examples/async_pi_estimate)** in the examples directory for full code and an explanation of what this Monte Carlo Pi estimation example does. Below are just some parts of the full example that illustrate the use of **NAN**.
-
-Yet another example is **[nan-example-eol](https://github.com/CodeCharmLtd/nan-example-eol)**. It shows newline detection implemented as a native addon.
-
-Also take a look at our comprehensive **[C++ test suite](https://github.com/nodejs/nan/tree/master/test/cpp)** which has a plethora of code snippets for your pasting pleasure.
-
-<a name="api"></a>
-
-## API
-
-Additional to the NAN documentation below, please consult:
-
-* [The V8 Getting Started * Guide](https://v8.dev/docs/embed)
-* [V8 API Documentation](https://v8docs.nodesource.com/)
-* [Node Add-on Documentation](https://nodejs.org/api/addons.html)
-
-<!-- START API -->
-
-### JavaScript-accessible methods
-
-A _template_ is a blueprint for JavaScript functions and objects in a context. You can use a template to wrap C++ functions and data structures within JavaScript objects so that they can be manipulated from JavaScript. See the V8 Embedders Guide section on [Templates](https://github.com/v8/v8/wiki/Embedder%27s-Guide#templates) for further information.
-
-In order to expose functionality to JavaScript via a template, you must provide it to V8 in a form that it understands. Across the versions of V8 supported by NAN, JavaScript-accessible method signatures vary widely, NAN fully abstracts method declaration and provides you with an interface that is similar to the most recent V8 API but is backward-compatible with older versions that still use the now-deceased `v8::Argument` type.
-
-* **Method argument types**
- - <a href="doc/methods.md#api_nan_function_callback_info"><b><code>Nan::FunctionCallbackInfo</code></b></a>
- - <a href="doc/methods.md#api_nan_property_callback_info"><b><code>Nan::PropertyCallbackInfo</code></b></a>
- - <a href="doc/methods.md#api_nan_return_value"><b><code>Nan::ReturnValue</code></b></a>
-* **Method declarations**
- - <a href="doc/methods.md#api_nan_method"><b>Method declaration</b></a>
- - <a href="doc/methods.md#api_nan_getter"><b>Getter declaration</b></a>
- - <a href="doc/methods.md#api_nan_setter"><b>Setter declaration</b></a>
- - <a href="doc/methods.md#api_nan_property_getter"><b>Property getter declaration</b></a>
- - <a href="doc/methods.md#api_nan_property_setter"><b>Property setter declaration</b></a>
- - <a href="doc/methods.md#api_nan_property_enumerator"><b>Property enumerator declaration</b></a>
- - <a href="doc/methods.md#api_nan_property_deleter"><b>Property deleter declaration</b></a>
- - <a href="doc/methods.md#api_nan_property_query"><b>Property query declaration</b></a>
- - <a href="doc/methods.md#api_nan_index_getter"><b>Index getter declaration</b></a>
- - <a href="doc/methods.md#api_nan_index_setter"><b>Index setter declaration</b></a>
- - <a href="doc/methods.md#api_nan_index_enumerator"><b>Index enumerator declaration</b></a>
- - <a href="doc/methods.md#api_nan_index_deleter"><b>Index deleter declaration</b></a>
- - <a href="doc/methods.md#api_nan_index_query"><b>Index query declaration</b></a>
-* Method and template helpers
- - <a href="doc/methods.md#api_nan_set_method"><b><code>Nan::SetMethod()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_prototype_method"><b><code>Nan::SetPrototypeMethod()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_accessor"><b><code>Nan::SetAccessor()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_named_property_handler"><b><code>Nan::SetNamedPropertyHandler()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_indexed_property_handler"><b><code>Nan::SetIndexedPropertyHandler()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_template"><b><code>Nan::SetTemplate()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_prototype_template"><b><code>Nan::SetPrototypeTemplate()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_instance_template"><b><code>Nan::SetInstanceTemplate()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_call_handler"><b><code>Nan::SetCallHandler()</code></b></a>
- - <a href="doc/methods.md#api_nan_set_call_as_function_handler"><b><code>Nan::SetCallAsFunctionHandler()</code></b></a>
-
-### Scopes
-
-A _local handle_ is a pointer to an object. All V8 objects are accessed using handles, they are necessary because of the way the V8 garbage collector works.
-
-A handle scope can be thought of as a container for any number of handles. When you've finished with your handles, instead of deleting each one individually you can simply delete their scope.
-
-The creation of `HandleScope` objects is different across the supported versions of V8. Therefore, NAN provides its own implementations that can be used safely across these.
-
- - <a href="doc/scopes.md#api_nan_handle_scope"><b><code>Nan::HandleScope</code></b></a>
- - <a href="doc/scopes.md#api_nan_escapable_handle_scope"><b><code>Nan::EscapableHandleScope</code></b></a>
-
-Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://github.com/v8/v8/wiki/Embedder%27s%20Guide#handles-and-garbage-collection).
-
-### Persistent references
-
-An object reference that is independent of any `HandleScope` is a _persistent_ reference. Where a `Local` handle only lives as long as the `HandleScope` in which it was allocated, a `Persistent` handle remains valid until it is explicitly disposed.
-
-Due to the evolution of the V8 API, it is necessary for NAN to provide a wrapper implementation of the `Persistent` classes to supply compatibility across the V8 versions supported.
-
- - <a href="doc/persistent.md#api_nan_persistent_base"><b><code>Nan::PersistentBase & v8::PersistentBase</code></b></a>
- - <a href="doc/persistent.md#api_nan_non_copyable_persistent_traits"><b><code>Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits</code></b></a>
- - <a href="doc/persistent.md#api_nan_copyable_persistent_traits"><b><code>Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits</code></b></a>
- - <a href="doc/persistent.md#api_nan_persistent"><b><code>Nan::Persistent</code></b></a>
- - <a href="doc/persistent.md#api_nan_global"><b><code>Nan::Global</code></b></a>
- - <a href="doc/persistent.md#api_nan_weak_callback_info"><b><code>Nan::WeakCallbackInfo</code></b></a>
- - <a href="doc/persistent.md#api_nan_weak_callback_type"><b><code>Nan::WeakCallbackType</code></b></a>
-
-Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://developers.google.com/v8/embed#handles).
-
-### New
-
-NAN provides a `Nan::New()` helper for the creation of new JavaScript objects in a way that's compatible across the supported versions of V8.
-
- - <a href="doc/new.md#api_nan_new"><b><code>Nan::New()</code></b></a>
- - <a href="doc/new.md#api_nan_undefined"><b><code>Nan::Undefined()</code></b></a>
- - <a href="doc/new.md#api_nan_null"><b><code>Nan::Null()</code></b></a>
- - <a href="doc/new.md#api_nan_true"><b><code>Nan::True()</code></b></a>
- - <a href="doc/new.md#api_nan_false"><b><code>Nan::False()</code></b></a>
- - <a href="doc/new.md#api_nan_empty_string"><b><code>Nan::EmptyString()</code></b></a>
-
-
-### Converters
-
-NAN contains functions that convert `v8::Value`s to other `v8::Value` types and native types. Since type conversion is not guaranteed to succeed, they return `Nan::Maybe` types. These converters can be used in place of `value->ToX()` and `value->XValue()` (where `X` is one of the types, e.g. `Boolean`) in a way that provides a consistent interface across V8 versions. Newer versions of V8 use the new `v8::Maybe` and `v8::MaybeLocal` types for these conversions, older versions don't have this functionality so it is provided by NAN.
-
- - <a href="doc/converters.md#api_nan_to"><b><code>Nan::To()</code></b></a>
-
-### Maybe Types
-
-The `Nan::MaybeLocal` and `Nan::Maybe` types are monads that encapsulate `v8::Local` handles that _may be empty_.
-
-* **Maybe Types**
- - <a href="doc/maybe_types.md#api_nan_maybe_local"><b><code>Nan::MaybeLocal</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_maybe"><b><code>Nan::Maybe</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_nothing"><b><code>Nan::Nothing</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_just"><b><code>Nan::Just</code></b></a>
-* **Maybe Helpers**
- - <a href="doc/maybe_types.md#api_nan_call"><b><code>Nan::Call()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_to_detail_string"><b><code>Nan::ToDetailString()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_to_array_index"><b><code>Nan::ToArrayIndex()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_equals"><b><code>Nan::Equals()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_new_instance"><b><code>Nan::NewInstance()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_function"><b><code>Nan::GetFunction()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_set"><b><code>Nan::Set()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_define_own_property"><b><code>Nan::DefineOwnProperty()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_force_set"><del><b><code>Nan::ForceSet()</code></b></del></a>
- - <a href="doc/maybe_types.md#api_nan_get"><b><code>Nan::Get()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_property_attribute"><b><code>Nan::GetPropertyAttributes()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_has"><b><code>Nan::Has()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_delete"><b><code>Nan::Delete()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_property_names"><b><code>Nan::GetPropertyNames()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_own_property_names"><b><code>Nan::GetOwnPropertyNames()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_set_prototype"><b><code>Nan::SetPrototype()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_object_proto_to_string"><b><code>Nan::ObjectProtoToString()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_has_own_property"><b><code>Nan::HasOwnProperty()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_has_real_named_property"><b><code>Nan::HasRealNamedProperty()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_has_real_indexed_property"><b><code>Nan::HasRealIndexedProperty()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_has_real_named_callback_property"><b><code>Nan::HasRealNamedCallbackProperty()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_real_named_property_in_prototype_chain"><b><code>Nan::GetRealNamedPropertyInPrototypeChain()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_real_named_property"><b><code>Nan::GetRealNamedProperty()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_call_as_function"><b><code>Nan::CallAsFunction()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_call_as_constructor"><b><code>Nan::CallAsConstructor()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_source_line"><b><code>Nan::GetSourceLine()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_line_number"><b><code>Nan::GetLineNumber()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_start_column"><b><code>Nan::GetStartColumn()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_end_column"><b><code>Nan::GetEndColumn()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_clone_element_at"><b><code>Nan::CloneElementAt()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_has_private"><b><code>Nan::HasPrivate()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_get_private"><b><code>Nan::GetPrivate()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_set_private"><b><code>Nan::SetPrivate()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_delete_private"><b><code>Nan::DeletePrivate()</code></b></a>
- - <a href="doc/maybe_types.md#api_nan_make_maybe"><b><code>Nan::MakeMaybe()</code></b></a>
-
-### Script
-
-NAN provides a `v8::Script` helpers as the API has changed over the supported versions of V8.
-
- - <a href="doc/script.md#api_nan_compile_script"><b><code>Nan::CompileScript()</code></b></a>
- - <a href="doc/script.md#api_nan_run_script"><b><code>Nan::RunScript()</code></b></a>
-
-
-### JSON
-
-The _JSON_ object provides the c++ versions of the methods offered by the `JSON` object in javascript. V8 exposes these methods via the `v8::JSON` object.
-
- - <a href="doc/json.md#api_nan_json_parse"><b><code>Nan::JSON.Parse</code></b></a>
- - <a href="doc/json.md#api_nan_json_stringify"><b><code>Nan::JSON.Stringify</code></b></a>
-
-Refer to the V8 JSON object in the [V8 documentation](https://v8docs.nodesource.com/node-8.16/da/d6f/classv8_1_1_j_s_o_n.html) for more information about these methods and their arguments.
-
-### Errors
-
-NAN includes helpers for creating, throwing and catching Errors as much of this functionality varies across the supported versions of V8 and must be abstracted.
-
-Note that an Error object is simply a specialized form of `v8::Value`.
-
-Also consult the V8 Embedders Guide section on [Exceptions](https://developers.google.com/v8/embed#exceptions) for more information.
-
- - <a href="doc/errors.md#api_nan_error"><b><code>Nan::Error()</code></b></a>
- - <a href="doc/errors.md#api_nan_range_error"><b><code>Nan::RangeError()</code></b></a>
- - <a href="doc/errors.md#api_nan_reference_error"><b><code>Nan::ReferenceError()</code></b></a>
- - <a href="doc/errors.md#api_nan_syntax_error"><b><code>Nan::SyntaxError()</code></b></a>
- - <a href="doc/errors.md#api_nan_type_error"><b><code>Nan::TypeError()</code></b></a>
- - <a href="doc/errors.md#api_nan_throw_error"><b><code>Nan::ThrowError()</code></b></a>
- - <a href="doc/errors.md#api_nan_throw_range_error"><b><code>Nan::ThrowRangeError()</code></b></a>
- - <a href="doc/errors.md#api_nan_throw_reference_error"><b><code>Nan::ThrowReferenceError()</code></b></a>
- - <a href="doc/errors.md#api_nan_throw_syntax_error"><b><code>Nan::ThrowSyntaxError()</code></b></a>
- - <a href="doc/errors.md#api_nan_throw_type_error"><b><code>Nan::ThrowTypeError()</code></b></a>
- - <a href="doc/errors.md#api_nan_fatal_exception"><b><code>Nan::FatalException()</code></b></a>
- - <a href="doc/errors.md#api_nan_errno_exception"><b><code>Nan::ErrnoException()</code></b></a>
- - <a href="doc/errors.md#api_nan_try_catch"><b><code>Nan::TryCatch</code></b></a>
-
-
-### Buffers
-
-NAN's `node::Buffer` helpers exist as the API has changed across supported Node versions. Use these methods to ensure compatibility.
-
- - <a href="doc/buffers.md#api_nan_new_buffer"><b><code>Nan::NewBuffer()</code></b></a>
- - <a href="doc/buffers.md#api_nan_copy_buffer"><b><code>Nan::CopyBuffer()</code></b></a>
- - <a href="doc/buffers.md#api_nan_free_callback"><b><code>Nan::FreeCallback()</code></b></a>
-
-### Nan::Callback
-
-`Nan::Callback` makes it easier to use `v8::Function` handles as callbacks. A class that wraps a `v8::Function` handle, protecting it from garbage collection and making it particularly useful for storage and use across asynchronous execution.
-
- - <a href="doc/callback.md#api_nan_callback"><b><code>Nan::Callback</code></b></a>
-
-### Asynchronous work helpers
-
-`Nan::AsyncWorker`, `Nan::AsyncProgressWorker` and `Nan::AsyncProgressQueueWorker` are helper classes that make working with asynchronous code easier.
-
- - <a href="doc/asyncworker.md#api_nan_async_worker"><b><code>Nan::AsyncWorker</code></b></a>
- - <a href="doc/asyncworker.md#api_nan_async_progress_worker"><b><code>Nan::AsyncProgressWorkerBase &amp; Nan::AsyncProgressWorker</code></b></a>
- - <a href="doc/asyncworker.md#api_nan_async_progress_queue_worker"><b><code>Nan::AsyncProgressQueueWorker</code></b></a>
- - <a href="doc/asyncworker.md#api_nan_async_queue_worker"><b><code>Nan::AsyncQueueWorker</code></b></a>
-
-### Strings & Bytes
-
-Miscellaneous string & byte encoding and decoding functionality provided for compatibility across supported versions of V8 and Node. Implemented by NAN to ensure that all encoding types are supported, even for older versions of Node where they are missing.
-
- - <a href="doc/string_bytes.md#api_nan_encoding"><b><code>Nan::Encoding</code></b></a>
- - <a href="doc/string_bytes.md#api_nan_encode"><b><code>Nan::Encode()</code></b></a>
- - <a href="doc/string_bytes.md#api_nan_decode_bytes"><b><code>Nan::DecodeBytes()</code></b></a>
- - <a href="doc/string_bytes.md#api_nan_decode_write"><b><code>Nan::DecodeWrite()</code></b></a>
-
-
-### Object Wrappers
-
-The `ObjectWrap` class can be used to make wrapped C++ objects and a factory of wrapped objects.
-
- - <a href="doc/object_wrappers.md#api_nan_object_wrap"><b><code>Nan::ObjectWrap</code></b></a>
-
-
-### V8 internals
-
-The hooks to access V8 internals—including GC and statistics—are different across the supported versions of V8, therefore NAN provides its own hooks that call the appropriate V8 methods.
-
- - <a href="doc/v8_internals.md#api_nan_gc_callback"><b><code>NAN_GC_CALLBACK()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_add_gc_epilogue_callback"><b><code>Nan::AddGCEpilogueCallback()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_remove_gc_epilogue_callback"><b><code>Nan::RemoveGCEpilogueCallback()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_add_gc_prologue_callback"><b><code>Nan::AddGCPrologueCallback()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_remove_gc_prologue_callback"><b><code>Nan::RemoveGCPrologueCallback()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_get_heap_statistics"><b><code>Nan::GetHeapStatistics()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_set_counter_function"><b><code>Nan::SetCounterFunction()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_set_create_histogram_function"><b><code>Nan::SetCreateHistogramFunction()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_set_add_histogram_sample_function"><b><code>Nan::SetAddHistogramSampleFunction()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_idle_notification"><b><code>Nan::IdleNotification()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_low_memory_notification"><b><code>Nan::LowMemoryNotification()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_context_disposed_notification"><b><code>Nan::ContextDisposedNotification()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_get_internal_field_pointer"><b><code>Nan::GetInternalFieldPointer()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_set_internal_field_pointer"><b><code>Nan::SetInternalFieldPointer()</code></b></a>
- - <a href="doc/v8_internals.md#api_nan_adjust_external_memory"><b><code>Nan::AdjustExternalMemory()</code></b></a>
-
-
-### Miscellaneous V8 Helpers
-
- - <a href="doc/v8_misc.md#api_nan_utf8_string"><b><code>Nan::Utf8String</code></b></a>
- - <a href="doc/v8_misc.md#api_nan_get_current_context"><b><code>Nan::GetCurrentContext()</code></b></a>
- - <a href="doc/v8_misc.md#api_nan_set_isolate_data"><b><code>Nan::SetIsolateData()</code></b></a>
- - <a href="doc/v8_misc.md#api_nan_get_isolate_data"><b><code>Nan::GetIsolateData()</code></b></a>
- - <a href="doc/v8_misc.md#api_nan_typedarray_contents"><b><code>Nan::TypedArrayContents</code></b></a>
-
-
-### Miscellaneous Node Helpers
-
- - <a href="doc/node_misc.md#api_nan_asyncresource"><b><code>Nan::AsyncResource</code></b></a>
- - <a href="doc/node_misc.md#api_nan_make_callback"><b><code>Nan::MakeCallback()</code></b></a>
- - <a href="doc/node_misc.md#api_nan_module_init"><b><code>NAN_MODULE_INIT()</code></b></a>
- - <a href="doc/node_misc.md#api_nan_export"><b><code>Nan::Export()</code></b></a>
-
-<!-- END API -->
-
-
-<a name="tests"></a>
-
-### Tests
-
-To run the NAN tests do:
-
-``` sh
-npm install
-npm run-script rebuild-tests
-npm test
-```
-
-Or just:
-
-``` sh
-npm install
-make test
-```
-
-<a name="issues"></a>
-
-## Known issues
-
-### Compiling against Node.js 0.12 on OSX
-
-With new enough compilers available on OSX, the versions of V8 headers corresponding to Node.js 0.12
-do not compile anymore. The error looks something like:
-
-```
-❯ CXX(target) Release/obj.target/accessors/cpp/accessors.o
-In file included from ../cpp/accessors.cpp:9:
-In file included from ../../nan.h:51:
-In file included from /Users/ofrobots/.node-gyp/0.12.18/include/node/node.h:61:
-/Users/ofrobots/.node-gyp/0.12.18/include/node/v8.h:5800:54: error: 'CreateHandle' is a protected member of 'v8::HandleScope'
- return Handle<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(
- ~~~~~~~~~~~~~^~~~~~~~~~~~
-```
-
-This can be worked around by patching your local versions of v8.h corresponding to Node 0.12 to make
-`v8::Handle` a friend of `v8::HandleScope`. Since neither Node.js not V8 support this release line anymore
-this patch cannot be released by either project in an official release.
-
-For this reason, we do not test against Node.js 0.12 on OSX in this project's CI. If you need to support
-that configuration, you will need to either get an older compiler, or apply a source patch to the version
-of V8 headers as a workaround.
-
-<a name="governance"></a>
-
-## Governance & Contributing
-
-NAN is governed by the [Node.js Addon API Working Group](https://github.com/nodejs/CTC/blob/master/WORKING_GROUPS.md#addon-api)
-
-### Addon API Working Group (WG)
-
-The NAN project is jointly governed by a Working Group which is responsible for high-level guidance of the project.
-
-Members of the WG are also known as Collaborators, there is no distinction between the two, unlike other Node.js projects.
-
-The WG has final authority over this project including:
-
-* Technical direction
-* Project governance and process (including this policy)
-* Contribution policy
-* GitHub repository hosting
-* Maintaining the list of additional Collaborators
-
-For the current list of WG members, see the project [README.md](./README.md#collaborators).
-
-Individuals making significant and valuable contributions are made members of the WG and given commit-access to the project. These individuals are identified by the WG and their addition to the WG is discussed via GitHub and requires unanimous consensus amongst those WG members participating in the discussion with a quorum of 50% of WG members required for acceptance of the vote.
-
-_Note:_ If you make a significant contribution and are not considered for commit-access log an issue or contact a WG member directly.
-
-For the current list of WG members / Collaborators, see the project [README.md](./README.md#collaborators).
-
-### Consensus Seeking Process
-
-The WG follows a [Consensus Seeking](https://en.wikipedia.org/wiki/Consensus-seeking_decision-making) decision making model.
-
-Modifications of the contents of the NAN repository are made on a collaborative basis. Anybody with a GitHub account may propose a modification via pull request and it will be considered by the WG. All pull requests must be reviewed and accepted by a WG member with sufficient expertise who is able to take full responsibility for the change. In the case of pull requests proposed by an existing WG member, an additional WG member is required for sign-off. Consensus should be sought if additional WG members participate and there is disagreement around a particular modification.
-
-If a change proposal cannot reach a consensus, a WG member can call for a vote amongst the members of the WG. Simple majority wins.
-
-<a id="developers-certificate-of-origin"></a>
-
-## Developer's Certificate of Origin 1.1
-
-By making a contribution to this project, I certify that:
-
-* (a) The contribution was created in whole or in part by me and I
- have the right to submit it under the open source license
- indicated in the file; or
-
-* (b) The contribution is based upon previous work that, to the best
- of my knowledge, is covered under an appropriate open source
- license and I have the right under that license to submit that
- work with modifications, whether created in whole or in part
- by me, under the same open source license (unless I am
- permitted to submit under a different license), as indicated
- in the file; or
-
-* (c) The contribution was provided directly to me by some other
- person who certified (a), (b) or (c) and I have not modified
- it.
-
-* (d) I understand and agree that this project and the contribution
- are public and that a record of the contribution (including all
- personal information I submit with it, including my sign-off) is
- maintained indefinitely and may be redistributed consistent with
- this project or the open source license(s) involved.
-
-<a name="collaborators"></a>
-
-### WG Members / Collaborators
-
-<table><tbody>
-<tr><th align="left">Rod Vagg</th><td><a href="https://github.com/rvagg">GitHub/rvagg</a></td><td><a href="http://twitter.com/rvagg">Twitter/@rvagg</a></td></tr>
-<tr><th align="left">Benjamin Byholm</th><td><a href="https://github.com/kkoopa/">GitHub/kkoopa</a></td><td>-</td></tr>
-<tr><th align="left">Trevor Norris</th><td><a href="https://github.com/trevnorris">GitHub/trevnorris</a></td><td><a href="http://twitter.com/trevnorris">Twitter/@trevnorris</a></td></tr>
-<tr><th align="left">Nathan Rajlich</th><td><a href="https://github.com/TooTallNate">GitHub/TooTallNate</a></td><td><a href="http://twitter.com/TooTallNate">Twitter/@TooTallNate</a></td></tr>
-<tr><th align="left">Brett Lawson</th><td><a href="https://github.com/brett19">GitHub/brett19</a></td><td><a href="http://twitter.com/brett19x">Twitter/@brett19x</a></td></tr>
-<tr><th align="left">Ben Noordhuis</th><td><a href="https://github.com/bnoordhuis">GitHub/bnoordhuis</a></td><td><a href="http://twitter.com/bnoordhuis">Twitter/@bnoordhuis</a></td></tr>
-<tr><th align="left">David Siegel</th><td><a href="https://github.com/agnat">GitHub/agnat</a></td><td><a href="http://twitter.com/agnat">Twitter/@agnat</a></td></tr>
-<tr><th align="left">Michael Ira Krufky</th><td><a href="https://github.com/mkrufky">GitHub/mkrufky</a></td><td><a href="http://twitter.com/mkrufky">Twitter/@mkrufky</a></td></tr>
-</tbody></table>
-
-## Licence &amp; copyright
-
-Copyright (c) 2018 NAN WG Members / Collaborators (listed above).
-
-Native Abstractions for Node.js is licensed under an MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
diff --git a/node_modules/nan/doc/asyncworker.md b/node_modules/nan/doc/asyncworker.md
deleted file mode 100644
index 04231f8..0000000
--- a/node_modules/nan/doc/asyncworker.md
+++ /dev/null
@@ -1,146 +0,0 @@
-## Asynchronous work helpers
-
-`Nan::AsyncWorker`, `Nan::AsyncProgressWorker` and `Nan::AsyncProgressQueueWorker` are helper classes that make working with asynchronous code easier.
-
- - <a href="#api_nan_async_worker"><b><code>Nan::AsyncWorker</code></b></a>
- - <a href="#api_nan_async_progress_worker"><b><code>Nan::AsyncProgressWorkerBase &amp; Nan::AsyncProgressWorker</code></b></a>
- - <a href="#api_nan_async_progress_queue_worker"><b><code>Nan::AsyncProgressQueueWorker</code></b></a>
- - <a href="#api_nan_async_queue_worker"><b><code>Nan::AsyncQueueWorker</code></b></a>
-
-<a name="api_nan_async_worker"></a>
-### Nan::AsyncWorker
-
-`Nan::AsyncWorker` is an _abstract_ class that you can subclass to have much of the annoying asynchronous queuing and handling taken care of for you. It can even store arbitrary V8 objects for you and have them persist while the asynchronous work is in progress.
-
-This class internally handles the details of creating an [`AsyncResource`][AsyncResource], and running the callback in the
-correct async context. To be able to identify the async resources created by this class in async-hooks, provide a
-`resource_name` to the constructor. It is recommended that the module name be used as a prefix to the `resource_name` to avoid
-collisions in the names. For more details see [`AsyncResource`][AsyncResource] documentation. The `resource_name` needs to stay valid for the lifetime of the worker instance.
-
-Definition:
-
-```c++
-class AsyncWorker {
- public:
- explicit AsyncWorker(Callback *callback_, const char* resource_name = "nan:AsyncWorker");
-
- virtual ~AsyncWorker();
-
- virtual void WorkComplete();
-
- void SaveToPersistent(const char *key, const v8::Local<v8::Value> &value);
-
- void SaveToPersistent(const v8::Local<v8::String> &key,
- const v8::Local<v8::Value> &value);
-
- void SaveToPersistent(uint32_t index,
- const v8::Local<v8::Value> &value);
-
- v8::Local<v8::Value> GetFromPersistent(const char *key) const;
-
- v8::Local<v8::Value> GetFromPersistent(const v8::Local<v8::String> &key) const;
-
- v8::Local<v8::Value> GetFromPersistent(uint32_t index) const;
-
- virtual void Execute() = 0;
-
- uv_work_t request;
-
- virtual void Destroy();
-
- protected:
- Persistent<v8::Object> persistentHandle;
-
- Callback *callback;
-
- virtual void HandleOKCallback();
-
- virtual void HandleErrorCallback();
-
- void SetErrorMessage(const char *msg);
-
- const char* ErrorMessage();
-};
-```
-
-<a name="api_nan_async_progress_worker"></a>
-### Nan::AsyncProgressWorkerBase &amp; Nan::AsyncProgressWorker
-
-`Nan::AsyncProgressWorkerBase` is an _abstract_ class template that extends `Nan::AsyncWorker` and adds additional progress reporting callbacks that can be used during the asynchronous work execution to provide progress data back to JavaScript.
-
-Previously the definition of `Nan::AsyncProgressWorker` only allowed sending `const char` data. Now extending `Nan::AsyncProgressWorker` will yield an instance of the implicit `Nan::AsyncProgressWorkerBase` template with type `<char>` for compatibility.
-
-`Nan::AsyncProgressWorkerBase` &amp; `Nan::AsyncProgressWorker` is intended for best-effort delivery of nonessential progress messages, e.g. a progress bar. The last event sent before the main thread is woken will be delivered.
-
-Definition:
-
-```c++
-template<class T>
-class AsyncProgressWorkerBase<T> : public AsyncWorker {
- public:
- explicit AsyncProgressWorkerBase(Callback *callback_, const char* resource_name = ...);
-
- virtual ~AsyncProgressWorkerBase();
-
- void WorkProgress();
-
- class ExecutionProgress {
- public:
- void Signal() const;
- void Send(const T* data, size_t count) const;
- };
-
- virtual void Execute(const ExecutionProgress& progress) = 0;
-
- virtual void HandleProgressCallback(const T *data, size_t count) = 0;
-
- virtual void Destroy();
-};
-
-typedef AsyncProgressWorkerBase<T> AsyncProgressWorker;
-```
-
-<a name="api_nan_async_progress_queue_worker"></a>
-### Nan::AsyncProgressQueueWorker
-
-`Nan::AsyncProgressQueueWorker` is an _abstract_ class template that extends `Nan::AsyncWorker` and adds additional progress reporting callbacks that can be used during the asynchronous work execution to provide progress data back to JavaScript.
-
-`Nan::AsyncProgressQueueWorker` behaves exactly the same as `Nan::AsyncProgressWorker`, except all events are queued and delivered to the main thread.
-
-Definition:
-
-```c++
-template<class T>
-class AsyncProgressQueueWorker<T> : public AsyncWorker {
- public:
- explicit AsyncProgressQueueWorker(Callback *callback_, const char* resource_name = "nan:AsyncProgressQueueWorker");
-
- virtual ~AsyncProgressQueueWorker();
-
- void WorkProgress();
-
- class ExecutionProgress {
- public:
- void Send(const T* data, size_t count) const;
- };
-
- virtual void Execute(const ExecutionProgress& progress) = 0;
-
- virtual void HandleProgressCallback(const T *data, size_t count) = 0;
-
- virtual void Destroy();
-};
-```
-
-<a name="api_nan_async_queue_worker"></a>
-### Nan::AsyncQueueWorker
-
-`Nan::AsyncQueueWorker` will run a `Nan::AsyncWorker` asynchronously via libuv. Both the `execute` and `after_work` steps are taken care of for you. Most of the logic for this is embedded in `Nan::AsyncWorker`.
-
-Definition:
-
-```c++
-void AsyncQueueWorker(AsyncWorker *);
-```
-
-[AsyncResource]: node_misc.md#api_nan_asyncresource
diff --git a/node_modules/nan/doc/buffers.md b/node_modules/nan/doc/buffers.md
deleted file mode 100644
index 8d8d25c..0000000
--- a/node_modules/nan/doc/buffers.md
+++ /dev/null
@@ -1,54 +0,0 @@
-## Buffers
-
-NAN's `node::Buffer` helpers exist as the API has changed across supported Node versions. Use these methods to ensure compatibility.
-
- - <a href="#api_nan_new_buffer"><b><code>Nan::NewBuffer()</code></b></a>
- - <a href="#api_nan_copy_buffer"><b><code>Nan::CopyBuffer()</code></b></a>
- - <a href="#api_nan_free_callback"><b><code>Nan::FreeCallback()</code></b></a>
-
-<a name="api_nan_new_buffer"></a>
-### Nan::NewBuffer()
-
-Allocate a new `node::Buffer` object with the specified size and optional data. Calls `node::Buffer::New()`.
-
-Note that when creating a `Buffer` using `Nan::NewBuffer()` and an existing `char*`, it is assumed that the ownership of the pointer is being transferred to the new `Buffer` for management.
-When a `node::Buffer` instance is garbage collected and a `FreeCallback` has not been specified, `data` will be disposed of via a call to `free()`.
-You _must not_ free the memory space manually once you have created a `Buffer` in this way.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::NewBuffer(uint32_t size)
-Nan::MaybeLocal<v8::Object> Nan::NewBuffer(char* data, uint32_t size)
-Nan::MaybeLocal<v8::Object> Nan::NewBuffer(char *data,
- size_t length,
- Nan::FreeCallback callback,
- void *hint)
-```
-
-
-<a name="api_nan_copy_buffer"></a>
-### Nan::CopyBuffer()
-
-Similar to [`Nan::NewBuffer()`](#api_nan_new_buffer) except that an implicit memcpy will occur within Node. Calls `node::Buffer::Copy()`.
-
-Management of the `char*` is left to the user, you should manually free the memory space if necessary as the new `Buffer` will have its own copy.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::CopyBuffer(const char *data, uint32_t size)
-```
-
-
-<a name="api_nan_free_callback"></a>
-### Nan::FreeCallback()
-
-A free callback that can be provided to [`Nan::NewBuffer()`](#api_nan_new_buffer).
-The supplied callback will be invoked when the `Buffer` undergoes garbage collection.
-
-Signature:
-
-```c++
-typedef void (*FreeCallback)(char *data, void *hint);
-```
diff --git a/node_modules/nan/doc/callback.md b/node_modules/nan/doc/callback.md
deleted file mode 100644
index f7af0bf..0000000
--- a/node_modules/nan/doc/callback.md
+++ /dev/null
@@ -1,76 +0,0 @@
-## Nan::Callback
-
-`Nan::Callback` makes it easier to use `v8::Function` handles as callbacks. A class that wraps a `v8::Function` handle, protecting it from garbage collection and making it particularly useful for storage and use across asynchronous execution.
-
- - <a href="#api_nan_callback"><b><code>Nan::Callback</code></b></a>
-
-<a name="api_nan_callback"></a>
-### Nan::Callback
-
-```c++
-class Callback {
- public:
- Callback();
-
- explicit Callback(const v8::Local<v8::Function> &fn);
-
- ~Callback();
-
- bool operator==(const Callback &other) const;
-
- bool operator!=(const Callback &other) const;
-
- v8::Local<v8::Function> operator*() const;
-
- MaybeLocal<v8::Value> operator()(AsyncResource* async_resource,
- v8::Local<v8::Object> target,
- int argc = 0,
- v8::Local<v8::Value> argv[] = 0) const;
-
- MaybeLocal<v8::Value> operator()(AsyncResource* async_resource,
- int argc = 0,
- v8::Local<v8::Value> argv[] = 0) const;
-
- void SetFunction(const v8::Local<v8::Function> &fn);
-
- v8::Local<v8::Function> GetFunction() const;
-
- bool IsEmpty() const;
-
- void Reset(const v8::Local<v8::Function> &fn);
-
- void Reset();
-
- MaybeLocal<v8::Value> Call(v8::Local<v8::Object> target,
- int argc,
- v8::Local<v8::Value> argv[],
- AsyncResource* async_resource) const;
- MaybeLocal<v8::Value> Call(int argc,
- v8::Local<v8::Value> argv[],
- AsyncResource* async_resource) const;
-
- // Deprecated versions. Use the versions that accept an async_resource instead
- // as they run the callback in the correct async context as specified by the
- // resource. If you want to call a synchronous JS function (i.e. on a
- // non-empty JS stack), you can use Nan::Call instead.
- v8::Local<v8::Value> operator()(v8::Local<v8::Object> target,
- int argc = 0,
- v8::Local<v8::Value> argv[] = 0) const;
-
- v8::Local<v8::Value> operator()(int argc = 0,
- v8::Local<v8::Value> argv[] = 0) const;
- v8::Local<v8::Value> Call(v8::Local<v8::Object> target,
- int argc,
- v8::Local<v8::Value> argv[]) const;
-
- v8::Local<v8::Value> Call(int argc, v8::Local<v8::Value> argv[]) const;
-};
-```
-
-Example usage:
-
-```c++
-v8::Local<v8::Function> function;
-Nan::Callback callback(function);
-callback.Call(0, 0);
-```
diff --git a/node_modules/nan/doc/converters.md b/node_modules/nan/doc/converters.md
deleted file mode 100644
index d20861b..0000000
--- a/node_modules/nan/doc/converters.md
+++ /dev/null
@@ -1,41 +0,0 @@
-## Converters
-
-NAN contains functions that convert `v8::Value`s to other `v8::Value` types and native types. Since type conversion is not guaranteed to succeed, they return `Nan::Maybe` types. These converters can be used in place of `value->ToX()` and `value->XValue()` (where `X` is one of the types, e.g. `Boolean`) in a way that provides a consistent interface across V8 versions. Newer versions of V8 use the new `v8::Maybe` and `v8::MaybeLocal` types for these conversions, older versions don't have this functionality so it is provided by NAN.
-
- - <a href="#api_nan_to"><b><code>Nan::To()</code></b></a>
-
-<a name="api_nan_to"></a>
-### Nan::To()
-
-Converts a `v8::Local<v8::Value>` to a different subtype of `v8::Value` or to a native data type. Returns a `Nan::MaybeLocal<>` or a `Nan::Maybe<>` accordingly.
-
-See [maybe_types.md](./maybe_types.md) for more information on `Nan::Maybe` types.
-
-Signatures:
-
-```c++
-// V8 types
-Nan::MaybeLocal<v8::Boolean> Nan::To<v8::Boolean>(v8::Local<v8::Value> val);
-Nan::MaybeLocal<v8::Int32> Nan::To<v8::Int32>(v8::Local<v8::Value> val);
-Nan::MaybeLocal<v8::Integer> Nan::To<v8::Integer>(v8::Local<v8::Value> val);
-Nan::MaybeLocal<v8::Object> Nan::To<v8::Object>(v8::Local<v8::Value> val);
-Nan::MaybeLocal<v8::Number> Nan::To<v8::Number>(v8::Local<v8::Value> val);
-Nan::MaybeLocal<v8::String> Nan::To<v8::String>(v8::Local<v8::Value> val);
-Nan::MaybeLocal<v8::Uint32> Nan::To<v8::Uint32>(v8::Local<v8::Value> val);
-
-// Native types
-Nan::Maybe<bool> Nan::To<bool>(v8::Local<v8::Value> val);
-Nan::Maybe<double> Nan::To<double>(v8::Local<v8::Value> val);
-Nan::Maybe<int32_t> Nan::To<int32_t>(v8::Local<v8::Value> val);
-Nan::Maybe<int64_t> Nan::To<int64_t>(v8::Local<v8::Value> val);
-Nan::Maybe<uint32_t> Nan::To<uint32_t>(v8::Local<v8::Value> val);
-```
-
-### Example
-
-```c++
-v8::Local<v8::Value> val;
-Nan::MaybeLocal<v8::String> str = Nan::To<v8::String>(val);
-Nan::Maybe<double> d = Nan::To<double>(val);
-```
-
diff --git a/node_modules/nan/doc/errors.md b/node_modules/nan/doc/errors.md
deleted file mode 100644
index 843435b..0000000
--- a/node_modules/nan/doc/errors.md
+++ /dev/null
@@ -1,226 +0,0 @@
-## Errors
-
-NAN includes helpers for creating, throwing and catching Errors as much of this functionality varies across the supported versions of V8 and must be abstracted.
-
-Note that an Error object is simply a specialized form of `v8::Value`.
-
-Also consult the V8 Embedders Guide section on [Exceptions](https://developers.google.com/v8/embed#exceptions) for more information.
-
- - <a href="#api_nan_error"><b><code>Nan::Error()</code></b></a>
- - <a href="#api_nan_range_error"><b><code>Nan::RangeError()</code></b></a>
- - <a href="#api_nan_reference_error"><b><code>Nan::ReferenceError()</code></b></a>
- - <a href="#api_nan_syntax_error"><b><code>Nan::SyntaxError()</code></b></a>
- - <a href="#api_nan_type_error"><b><code>Nan::TypeError()</code></b></a>
- - <a href="#api_nan_throw_error"><b><code>Nan::ThrowError()</code></b></a>
- - <a href="#api_nan_throw_range_error"><b><code>Nan::ThrowRangeError()</code></b></a>
- - <a href="#api_nan_throw_reference_error"><b><code>Nan::ThrowReferenceError()</code></b></a>
- - <a href="#api_nan_throw_syntax_error"><b><code>Nan::ThrowSyntaxError()</code></b></a>
- - <a href="#api_nan_throw_type_error"><b><code>Nan::ThrowTypeError()</code></b></a>
- - <a href="#api_nan_fatal_exception"><b><code>Nan::FatalException()</code></b></a>
- - <a href="#api_nan_errno_exception"><b><code>Nan::ErrnoException()</code></b></a>
- - <a href="#api_nan_try_catch"><b><code>Nan::TryCatch</code></b></a>
-
-
-<a name="api_nan_error"></a>
-### Nan::Error()
-
-Create a new Error object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an Error object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::Error(const char *msg);
-v8::Local<v8::Value> Nan::Error(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_range_error"></a>
-### Nan::RangeError()
-
-Create a new RangeError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an RangeError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::RangeError(const char *msg);
-v8::Local<v8::Value> Nan::RangeError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_reference_error"></a>
-### Nan::ReferenceError()
-
-Create a new ReferenceError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an ReferenceError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::ReferenceError(const char *msg);
-v8::Local<v8::Value> Nan::ReferenceError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_syntax_error"></a>
-### Nan::SyntaxError()
-
-Create a new SyntaxError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an SyntaxError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::SyntaxError(const char *msg);
-v8::Local<v8::Value> Nan::SyntaxError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_type_error"></a>
-### Nan::TypeError()
-
-Create a new TypeError object using the [v8::Exception](https://v8docs.nodesource.com/node-8.16/da/d6a/classv8_1_1_exception.html) class in a way that is compatible across the supported versions of V8.
-
-Note that an TypeError object is simply a specialized form of `v8::Value`.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::TypeError(const char *msg);
-v8::Local<v8::Value> Nan::TypeError(v8::Local<v8::String> msg);
-```
-
-
-<a name="api_nan_throw_error"></a>
-### Nan::ThrowError()
-
-Throw an Error object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new Error object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowError(const char *msg);
-void Nan::ThrowError(v8::Local<v8::String> msg);
-void Nan::ThrowError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_range_error"></a>
-### Nan::ThrowRangeError()
-
-Throw an RangeError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new RangeError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowRangeError(const char *msg);
-void Nan::ThrowRangeError(v8::Local<v8::String> msg);
-void Nan::ThrowRangeError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_reference_error"></a>
-### Nan::ThrowReferenceError()
-
-Throw an ReferenceError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new ReferenceError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowReferenceError(const char *msg);
-void Nan::ThrowReferenceError(v8::Local<v8::String> msg);
-void Nan::ThrowReferenceError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_syntax_error"></a>
-### Nan::ThrowSyntaxError()
-
-Throw an SyntaxError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new SyntaxError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowSyntaxError(const char *msg);
-void Nan::ThrowSyntaxError(v8::Local<v8::String> msg);
-void Nan::ThrowSyntaxError(v8::Local<v8::Value> error);
-```
-
-
-<a name="api_nan_throw_type_error"></a>
-### Nan::ThrowTypeError()
-
-Throw an TypeError object (a specialized `v8::Value` as above) in the current context. If a `msg` is provided, a new TypeError object will be created.
-
-Signature:
-
-```c++
-void Nan::ThrowTypeError(const char *msg);
-void Nan::ThrowTypeError(v8::Local<v8::String> msg);
-void Nan::ThrowTypeError(v8::Local<v8::Value> error);
-```
-
-<a name="api_nan_fatal_exception"></a>
-### Nan::FatalException()
-
-Replaces `node::FatalException()` which has a different API across supported versions of Node. For use with [`Nan::TryCatch`](#api_nan_try_catch).
-
-Signature:
-
-```c++
-void Nan::FatalException(const Nan::TryCatch& try_catch);
-```
-
-<a name="api_nan_errno_exception"></a>
-### Nan::ErrnoException()
-
-Replaces `node::ErrnoException()` which has a different API across supported versions of Node.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::ErrnoException(int errorno,
- const char* syscall = NULL,
- const char* message = NULL,
- const char* path = NULL);
-```
-
-
-<a name="api_nan_try_catch"></a>
-### Nan::TryCatch
-
-A simple wrapper around [`v8::TryCatch`](https://v8docs.nodesource.com/node-8.16/d4/dc6/classv8_1_1_try_catch.html) compatible with all supported versions of V8. Can be used as a direct replacement in most cases. See also [`Nan::FatalException()`](#api_nan_fatal_exception) for an internal use compatible with `node::FatalException`.
-
-Signature:
-
-```c++
-class Nan::TryCatch {
- public:
- Nan::TryCatch();
-
- bool HasCaught() const;
-
- bool CanContinue() const;
-
- v8::Local<v8::Value> ReThrow();
-
- v8::Local<v8::Value> Exception() const;
-
- // Nan::MaybeLocal for older versions of V8
- v8::MaybeLocal<v8::Value> StackTrace() const;
-
- v8::Local<v8::Message> Message() const;
-
- void Reset();
-
- void SetVerbose(bool value);
-
- void SetCaptureMessage(bool value);
-};
-```
-
diff --git a/node_modules/nan/doc/json.md b/node_modules/nan/doc/json.md
deleted file mode 100644
index d142597..0000000
--- a/node_modules/nan/doc/json.md
+++ /dev/null
@@ -1,62 +0,0 @@
-## JSON
-
-The _JSON_ object provides the c++ versions of the methods offered by the `JSON` object in javascript. V8 exposes these methods via the `v8::JSON` object.
-
- - <a href="#api_nan_json_parse"><b><code>Nan::JSON.Parse</code></b></a>
- - <a href="#api_nan_json_stringify"><b><code>Nan::JSON.Stringify</code></b></a>
-
-Refer to the V8 JSON object in the [V8 documentation](https://v8docs.nodesource.com/node-8.16/da/d6f/classv8_1_1_j_s_o_n.html) for more information about these methods and their arguments.
-
-<a name="api_nan_json_parse"></a>
-
-### Nan::JSON.Parse
-
-A simple wrapper around [`v8::JSON::Parse`](https://v8docs.nodesource.com/node-8.16/da/d6f/classv8_1_1_j_s_o_n.html#a936310d2540fb630ed37d3ee3ffe4504).
-
-Definition:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::JSON::Parse(v8::Local<v8::String> json_string);
-```
-
-Use `JSON.Parse(json_string)` to parse a string into a `v8::Value`.
-
-Example:
-
-```c++
-v8::Local<v8::String> json_string = Nan::New("{ \"JSON\": \"object\" }").ToLocalChecked();
-
-Nan::JSON NanJSON;
-Nan::MaybeLocal<v8::Value> result = NanJSON.Parse(json_string);
-if (!result.IsEmpty()) {
- v8::Local<v8::Value> val = result.ToLocalChecked();
-}
-```
-
-<a name="api_nan_json_stringify"></a>
-
-### Nan::JSON.Stringify
-
-A simple wrapper around [`v8::JSON::Stringify`](https://v8docs.nodesource.com/node-8.16/da/d6f/classv8_1_1_j_s_o_n.html#a44b255c3531489ce43f6110209138860).
-
-Definition:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::JSON::Stringify(v8::Local<v8::Object> json_object, v8::Local<v8::String> gap = v8::Local<v8::String>());
-```
-
-Use `JSON.Stringify(value)` to stringify a `v8::Object`.
-
-Example:
-
-```c++
-// using `v8::Local<v8::Value> val` from the `JSON::Parse` example
-v8::Local<v8::Object> obj = Nan::To<v8::Object>(val).ToLocalChecked();
-
-Nan::JSON NanJSON;
-Nan::MaybeLocal<v8::String> result = NanJSON.Stringify(obj);
-if (!result.IsEmpty()) {
- v8::Local<v8::String> stringified = result.ToLocalChecked();
-}
-```
-
diff --git a/node_modules/nan/doc/maybe_types.md b/node_modules/nan/doc/maybe_types.md
deleted file mode 100644
index 142851a..0000000
--- a/node_modules/nan/doc/maybe_types.md
+++ /dev/null
@@ -1,583 +0,0 @@
-## Maybe Types
-
-The `Nan::MaybeLocal` and `Nan::Maybe` types are monads that encapsulate `v8::Local` handles that _may be empty_.
-
-* **Maybe Types**
- - <a href="#api_nan_maybe_local"><b><code>Nan::MaybeLocal</code></b></a>
- - <a href="#api_nan_maybe"><b><code>Nan::Maybe</code></b></a>
- - <a href="#api_nan_nothing"><b><code>Nan::Nothing</code></b></a>
- - <a href="#api_nan_just"><b><code>Nan::Just</code></b></a>
-* **Maybe Helpers**
- - <a href="#api_nan_call"><b><code>Nan::Call()</code></b></a>
- - <a href="#api_nan_to_detail_string"><b><code>Nan::ToDetailString()</code></b></a>
- - <a href="#api_nan_to_array_index"><b><code>Nan::ToArrayIndex()</code></b></a>
- - <a href="#api_nan_equals"><b><code>Nan::Equals()</code></b></a>
- - <a href="#api_nan_new_instance"><b><code>Nan::NewInstance()</code></b></a>
- - <a href="#api_nan_get_function"><b><code>Nan::GetFunction()</code></b></a>
- - <a href="#api_nan_set"><b><code>Nan::Set()</code></b></a>
- - <a href="#api_nan_define_own_property"><b><code>Nan::DefineOwnProperty()</code></b></a>
- - <a href="#api_nan_force_set"><del><b><code>Nan::ForceSet()</code></b></del></a>
- - <a href="#api_nan_get"><b><code>Nan::Get()</code></b></a>
- - <a href="#api_nan_get_property_attribute"><b><code>Nan::GetPropertyAttributes()</code></b></a>
- - <a href="#api_nan_has"><b><code>Nan::Has()</code></b></a>
- - <a href="#api_nan_delete"><b><code>Nan::Delete()</code></b></a>
- - <a href="#api_nan_get_property_names"><b><code>Nan::GetPropertyNames()</code></b></a>
- - <a href="#api_nan_get_own_property_names"><b><code>Nan::GetOwnPropertyNames()</code></b></a>
- - <a href="#api_nan_set_prototype"><b><code>Nan::SetPrototype()</code></b></a>
- - <a href="#api_nan_object_proto_to_string"><b><code>Nan::ObjectProtoToString()</code></b></a>
- - <a href="#api_nan_has_own_property"><b><code>Nan::HasOwnProperty()</code></b></a>
- - <a href="#api_nan_has_real_named_property"><b><code>Nan::HasRealNamedProperty()</code></b></a>
- - <a href="#api_nan_has_real_indexed_property"><b><code>Nan::HasRealIndexedProperty()</code></b></a>
- - <a href="#api_nan_has_real_named_callback_property"><b><code>Nan::HasRealNamedCallbackProperty()</code></b></a>
- - <a href="#api_nan_get_real_named_property_in_prototype_chain"><b><code>Nan::GetRealNamedPropertyInPrototypeChain()</code></b></a>
- - <a href="#api_nan_get_real_named_property"><b><code>Nan::GetRealNamedProperty()</code></b></a>
- - <a href="#api_nan_call_as_function"><b><code>Nan::CallAsFunction()</code></b></a>
- - <a href="#api_nan_call_as_constructor"><b><code>Nan::CallAsConstructor()</code></b></a>
- - <a href="#api_nan_get_source_line"><b><code>Nan::GetSourceLine()</code></b></a>
- - <a href="#api_nan_get_line_number"><b><code>Nan::GetLineNumber()</code></b></a>
- - <a href="#api_nan_get_start_column"><b><code>Nan::GetStartColumn()</code></b></a>
- - <a href="#api_nan_get_end_column"><b><code>Nan::GetEndColumn()</code></b></a>
- - <a href="#api_nan_clone_element_at"><b><code>Nan::CloneElementAt()</code></b></a>
- - <a href="#api_nan_has_private"><b><code>Nan::HasPrivate()</code></b></a>
- - <a href="#api_nan_get_private"><b><code>Nan::GetPrivate()</code></b></a>
- - <a href="#api_nan_set_private"><b><code>Nan::SetPrivate()</code></b></a>
- - <a href="#api_nan_delete_private"><b><code>Nan::DeletePrivate()</code></b></a>
- - <a href="#api_nan_make_maybe"><b><code>Nan::MakeMaybe()</code></b></a>
-
-<a name="api_nan_maybe_local"></a>
-### Nan::MaybeLocal
-
-A `Nan::MaybeLocal<T>` is a wrapper around [`v8::Local<T>`](https://v8docs.nodesource.com/node-8.16/de/deb/classv8_1_1_local.html) that enforces a check that determines whether the `v8::Local<T>` is empty before it can be used.
-
-If an API method returns a `Nan::MaybeLocal`, the API method can potentially fail either because an exception is thrown, or because an exception is pending, e.g. because a previous API call threw an exception that hasn't been caught yet, or because a `v8::TerminateExecution` exception was thrown. In that case, an empty `Nan::MaybeLocal` is returned.
-
-Definition:
-
-```c++
-template<typename T> class Nan::MaybeLocal {
- public:
- MaybeLocal();
-
- template<typename S> MaybeLocal(v8::Local<S> that);
-
- bool IsEmpty() const;
-
- template<typename S> bool ToLocal(v8::Local<S> *out);
-
- // Will crash if the MaybeLocal<> is empty.
- v8::Local<T> ToLocalChecked();
-
- template<typename S> v8::Local<S> FromMaybe(v8::Local<S> default_value) const;
-};
-```
-
-See the documentation for [`v8::MaybeLocal`](https://v8docs.nodesource.com/node-8.16/d8/d7d/classv8_1_1_maybe_local.html) for further details.
-
-<a name="api_nan_maybe"></a>
-### Nan::Maybe
-
-A simple `Nan::Maybe` type, representing an object which may or may not have a value, see https://hackage.haskell.org/package/base/docs/Data-Maybe.html.
-
-If an API method returns a `Nan::Maybe<>`, the API method can potentially fail either because an exception is thrown, or because an exception is pending, e.g. because a previous API call threw an exception that hasn't been caught yet, or because a `v8::TerminateExecution` exception was thrown. In that case, a "Nothing" value is returned.
-
-Definition:
-
-```c++
-template<typename T> class Nan::Maybe {
- public:
- bool IsNothing() const;
- bool IsJust() const;
-
- // Will crash if the Maybe<> is nothing.
- T FromJust();
-
- T FromMaybe(const T& default_value);
-
- bool operator==(const Maybe &other);
-
- bool operator!=(const Maybe &other);
-};
-```
-
-See the documentation for [`v8::Maybe`](https://v8docs.nodesource.com/node-8.16/d9/d4b/classv8_1_1_maybe.html) for further details.
-
-<a name="api_nan_nothing"></a>
-### Nan::Nothing
-
-Construct an empty `Nan::Maybe` type representing _nothing_.
-
-```c++
-template<typename T> Nan::Maybe<T> Nan::Nothing();
-```
-
-<a name="api_nan_just"></a>
-### Nan::Just
-
-Construct a `Nan::Maybe` type representing _just_ a value.
-
-```c++
-template<typename T> Nan::Maybe<T> Nan::Just(const T &t);
-```
-
-<a name="api_nan_call"></a>
-### Nan::Call()
-
-A helper method for calling a synchronous [`v8::Function#Call()`](https://v8docs.nodesource.com/node-8.16/d5/d54/classv8_1_1_function.html#a9c3d0e4e13ddd7721fce238aa5b94a11) in a way compatible across supported versions of V8.
-
-For asynchronous callbacks, use Nan::Callback::Call along with an AsyncResource.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::Call(v8::Local<v8::Function> fun, v8::Local<v8::Object> recv, int argc, v8::Local<v8::Value> argv[]);
-Nan::MaybeLocal<v8::Value> Nan::Call(const Nan::Callback& callback, v8::Local<v8::Object> recv,
- int argc, v8::Local<v8::Value> argv[]);
-Nan::MaybeLocal<v8::Value> Nan::Call(const Nan::Callback& callback, int argc, v8::Local<v8::Value> argv[]);
-```
-
-
-<a name="api_nan_to_detail_string"></a>
-### Nan::ToDetailString()
-
-A helper method for calling [`v8::Value#ToDetailString()`](https://v8docs.nodesource.com/node-8.16/dc/d0a/classv8_1_1_value.html#a2f9770296dc2c8d274bc8cc0dca243e5) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::ToDetailString(v8::Local<v8::Value> val);
-```
-
-
-<a name="api_nan_to_array_index"></a>
-### Nan::ToArrayIndex()
-
-A helper method for calling [`v8::Value#ToArrayIndex()`](https://v8docs.nodesource.com/node-8.16/dc/d0a/classv8_1_1_value.html#acc5bbef3c805ec458470c0fcd6f13493) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Uint32> Nan::ToArrayIndex(v8::Local<v8::Value> val);
-```
-
-
-<a name="api_nan_equals"></a>
-### Nan::Equals()
-
-A helper method for calling [`v8::Value#Equals()`](https://v8docs.nodesource.com/node-8.16/dc/d0a/classv8_1_1_value.html#a08fba1d776a59bbf6864b25f9152c64b) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Equals(v8::Local<v8::Value> a, v8::Local<v8::Value>(b));
-```
-
-
-<a name="api_nan_new_instance"></a>
-### Nan::NewInstance()
-
-A helper method for calling [`v8::Function#NewInstance()`](https://v8docs.nodesource.com/node-8.16/d5/d54/classv8_1_1_function.html#ae477558b10c14b76ed00e8dbab44ce5b) and [`v8::ObjectTemplate#NewInstance()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#ad605a7543cfbc5dab54cdb0883d14ae4) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::Function> h);
-Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::Function> h, int argc, v8::Local<v8::Value> argv[]);
-Nan::MaybeLocal<v8::Object> Nan::NewInstance(v8::Local<v8::ObjectTemplate> h);
-```
-
-
-<a name="api_nan_get_function"></a>
-### Nan::GetFunction()
-
-A helper method for calling [`v8::FunctionTemplate#GetFunction()`](https://v8docs.nodesource.com/node-8.16/d8/d83/classv8_1_1_function_template.html#a56d904662a86eca78da37d9bb0ed3705) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Function> Nan::GetFunction(v8::Local<v8::FunctionTemplate> t);
-```
-
-
-<a name="api_nan_set"></a>
-### Nan::Set()
-
-A helper method for calling [`v8::Object#Set()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a67604ea3734f170c66026064ea808f20) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Set(v8::Local<v8::Object> obj,
- v8::Local<v8::Value> key,
- v8::Local<v8::Value> value)
-Nan::Maybe<bool> Nan::Set(v8::Local<v8::Object> obj,
- uint32_t index,
- v8::Local<v8::Value> value);
-```
-
-
-<a name="api_nan_define_own_property"></a>
-### Nan::DefineOwnProperty()
-
-A helper method for calling [`v8::Object#DefineOwnProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a6f76b2ed605cb8f9185b92de0033a820) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::DefineOwnProperty(v8::Local<v8::Object> obj,
- v8::Local<v8::String> key,
- v8::Local<v8::Value> value,
- v8::PropertyAttribute attribs = v8::None);
-```
-
-
-<a name="api_nan_force_set"></a>
-### <del>Nan::ForceSet()</del>
-
-Deprecated, use <a href="#api_nan_define_own_property"><code>Nan::DefineOwnProperty()</code></a>.
-
-<del>A helper method for calling [`v8::Object#ForceSet()`](https://v8docs.nodesource.com/node-0.12/db/d85/classv8_1_1_object.html#acfbdfd7427b516ebdb5c47c4df5ed96c) in a way compatible across supported versions of V8.</del>
-
-Signature:
-
-```c++
-NAN_DEPRECATED Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object> obj,
- v8::Local<v8::Value> key,
- v8::Local<v8::Value> value,
- v8::PropertyAttribute attribs = v8::None);
-```
-
-
-<a name="api_nan_get"></a>
-### Nan::Get()
-
-A helper method for calling [`v8::Object#Get()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a2565f03e736694f6b1e1cf22a0b4eac2) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object> obj,
- v8::Local<v8::Value> key);
-Nan::MaybeLocal<v8::Value> Nan::Get(v8::Local<v8::Object> obj, uint32_t index);
-```
-
-
-<a name="api_nan_get_property_attribute"></a>
-### Nan::GetPropertyAttributes()
-
-A helper method for calling [`v8::Object#GetPropertyAttributes()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a9b898894da3d1db2714fd9325a54fe57) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<v8::PropertyAttribute> Nan::GetPropertyAttributes(
- v8::Local<v8::Object> obj,
- v8::Local<v8::Value> key);
-```
-
-
-<a name="api_nan_has"></a>
-### Nan::Has()
-
-A helper method for calling [`v8::Object#Has()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab3c3d89ea7c2f9afd08965bd7299a41d) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Has(v8::Local<v8::Object> obj, v8::Local<v8::String> key);
-Nan::Maybe<bool> Nan::Has(v8::Local<v8::Object> obj, uint32_t index);
-```
-
-
-<a name="api_nan_delete"></a>
-### Nan::Delete()
-
-A helper method for calling [`v8::Object#Delete()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a48e4a19b2cedff867eecc73ddb7d377f) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::Delete(v8::Local<v8::Object> obj,
- v8::Local<v8::String> key);
-Nan::Maybe<bool> Nan::Delete(v8::Local<v8::Object> obj, uint32_t index);
-```
-
-
-<a name="api_nan_get_property_names"></a>
-### Nan::GetPropertyNames()
-
-A helper method for calling [`v8::Object#GetPropertyNames()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#aced885270cfd2c956367b5eedc7fbfe8) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Array> Nan::GetPropertyNames(v8::Local<v8::Object> obj);
-```
-
-
-<a name="api_nan_get_own_property_names"></a>
-### Nan::GetOwnPropertyNames()
-
-A helper method for calling [`v8::Object#GetOwnPropertyNames()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a79a6e4d66049b9aa648ed4dfdb23e6eb) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Array> Nan::GetOwnPropertyNames(v8::Local<v8::Object> obj);
-```
-
-
-<a name="api_nan_set_prototype"></a>
-### Nan::SetPrototype()
-
-A helper method for calling [`v8::Object#SetPrototype()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a442706b22fceda6e6d1f632122a9a9f4) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::SetPrototype(v8::Local<v8::Object> obj,
- v8::Local<v8::Value> prototype);
-```
-
-
-<a name="api_nan_object_proto_to_string"></a>
-### Nan::ObjectProtoToString()
-
-A helper method for calling [`v8::Object#ObjectProtoToString()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab7a92b4dcf822bef72f6c0ac6fea1f0b) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::ObjectProtoToString(v8::Local<v8::Object> obj);
-```
-
-
-<a name="api_nan_has_own_property"></a>
-### Nan::HasOwnProperty()
-
-A helper method for calling [`v8::Object#HasOwnProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab7b7245442ca6de1e1c145ea3fd653ff) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasOwnProperty(v8::Local<v8::Object> obj,
- v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_has_real_named_property"></a>
-### Nan::HasRealNamedProperty()
-
-A helper method for calling [`v8::Object#HasRealNamedProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ad8b80a59c9eb3c1e6c3cd6c84571f767) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasRealNamedProperty(v8::Local<v8::Object> obj,
- v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_has_real_indexed_property"></a>
-### Nan::HasRealIndexedProperty()
-
-A helper method for calling [`v8::Object#HasRealIndexedProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#af94fc1135a5e74a2193fb72c3a1b9855) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasRealIndexedProperty(v8::Local<v8::Object> obj,
- uint32_t index);
-```
-
-
-<a name="api_nan_has_real_named_callback_property"></a>
-### Nan::HasRealNamedCallbackProperty()
-
-A helper method for calling [`v8::Object#HasRealNamedCallbackProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#af743b7ea132b89f84d34d164d0668811) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasRealNamedCallbackProperty(
- v8::Local<v8::Object> obj,
- v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_get_real_named_property_in_prototype_chain"></a>
-### Nan::GetRealNamedPropertyInPrototypeChain()
-
-A helper method for calling [`v8::Object#GetRealNamedPropertyInPrototypeChain()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a8700b1862e6b4783716964ba4d5e6172) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::GetRealNamedPropertyInPrototypeChain(
- v8::Local<v8::Object> obj,
- v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_get_real_named_property"></a>
-### Nan::GetRealNamedProperty()
-
-A helper method for calling [`v8::Object#GetRealNamedProperty()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a84471a824576a5994fdd0ffcbf99ccc0) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::GetRealNamedProperty(v8::Local<v8::Object> obj,
- v8::Local<v8::String> key);
-```
-
-
-<a name="api_nan_call_as_function"></a>
-### Nan::CallAsFunction()
-
-A helper method for calling [`v8::Object#CallAsFunction()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ad3ffc36f3dfc3592ce2a96bc047ee2cd) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::CallAsFunction(v8::Local<v8::Object> obj,
- v8::Local<v8::Object> recv,
- int argc,
- v8::Local<v8::Value> argv[]);
-```
-
-
-<a name="api_nan_call_as_constructor"></a>
-### Nan::CallAsConstructor()
-
-A helper method for calling [`v8::Object#CallAsConstructor()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a50d571de50d0b0dfb28795619d07a01b) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::CallAsConstructor(v8::Local<v8::Object> obj,
- int argc,
- v8::Local<v8::Value> argv[]);
-```
-
-
-<a name="api_nan_get_source_line"></a>
-### Nan::GetSourceLine()
-
-A helper method for calling [`v8::Message#GetSourceLine()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#a849f7a6c41549d83d8159825efccd23a) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::GetSourceLine(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_get_line_number"></a>
-### Nan::GetLineNumber()
-
-A helper method for calling [`v8::Message#GetLineNumber()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#adbe46c10a88a6565f2732a2d2adf99b9) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<int> Nan::GetLineNumber(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_get_start_column"></a>
-### Nan::GetStartColumn()
-
-A helper method for calling [`v8::Message#GetStartColumn()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#a60ede616ba3822d712e44c7a74487ba6) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<int> Nan::GetStartColumn(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_get_end_column"></a>
-### Nan::GetEndColumn()
-
-A helper method for calling [`v8::Message#GetEndColumn()`](https://v8docs.nodesource.com/node-8.16/d9/d28/classv8_1_1_message.html#aaa004cf19e529da980bc19fcb76d93be) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<int> Nan::GetEndColumn(v8::Local<v8::Message> msg);
-```
-
-
-<a name="api_nan_clone_element_at"></a>
-### Nan::CloneElementAt()
-
-A helper method for calling [`v8::Array#CloneElementAt()`](https://v8docs.nodesource.com/node-4.8/d3/d32/classv8_1_1_array.html#a1d3a878d4c1c7cae974dd50a1639245e) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Object> Nan::CloneElementAt(v8::Local<v8::Array> array, uint32_t index);
-```
-
-<a name="api_nan_has_private"></a>
-### Nan::HasPrivate()
-
-A helper method for calling [`v8::Object#HasPrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#af68a0b98066cfdeb8f943e98a40ba08d) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::HasPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key);
-```
-
-<a name="api_nan_get_private"></a>
-### Nan::GetPrivate()
-
-A helper method for calling [`v8::Object#GetPrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a169f2da506acbec34deadd9149a1925a) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::GetPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key);
-```
-
-<a name="api_nan_set_private"></a>
-### Nan::SetPrivate()
-
-A helper method for calling [`v8::Object#SetPrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ace1769b0f3b86bfe9fda1010916360ee) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::SetPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key, v8::Local<v8::Value> value);
-```
-
-<a name="api_nan_delete_private"></a>
-### Nan::DeletePrivate()
-
-A helper method for calling [`v8::Object#DeletePrivate()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a138bb32a304f3982be02ad499693b8fd) in a way compatible across supported versions of V8.
-
-Signature:
-
-```c++
-Nan::Maybe<bool> Nan::DeletePrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key);
-```
-
-<a name="api_nan_make_maybe"></a>
-### Nan::MakeMaybe()
-
-Wraps a `v8::Local<>` in a `Nan::MaybeLocal<>`. When called with a `Nan::MaybeLocal<>` it just returns its argument. This is useful in generic template code that builds on NAN.
-
-Synopsis:
-
-```c++
- MaybeLocal<v8::Number> someNumber = MakeMaybe(New<v8::Number>(3.141592654));
- MaybeLocal<v8::String> someString = MakeMaybe(New<v8::String>("probably"));
-```
-
-Signature:
-
-```c++
-template <typename T, template <typename> class MaybeMaybe>
-Nan::MaybeLocal<T> Nan::MakeMaybe(MaybeMaybe<T> v);
-```
diff --git a/node_modules/nan/doc/methods.md b/node_modules/nan/doc/methods.md
deleted file mode 100644
index 9642d02..0000000
--- a/node_modules/nan/doc/methods.md
+++ /dev/null
@@ -1,664 +0,0 @@
-## JavaScript-accessible methods
-
-A _template_ is a blueprint for JavaScript functions and objects in a context. You can use a template to wrap C++ functions and data structures within JavaScript objects so that they can be manipulated from JavaScript. See the V8 Embedders Guide section on [Templates](https://github.com/v8/v8/wiki/Embedder%27s-Guide#templates) for further information.
-
-In order to expose functionality to JavaScript via a template, you must provide it to V8 in a form that it understands. Across the versions of V8 supported by NAN, JavaScript-accessible method signatures vary widely, NAN fully abstracts method declaration and provides you with an interface that is similar to the most recent V8 API but is backward-compatible with older versions that still use the now-deceased `v8::Argument` type.
-
-* **Method argument types**
- - <a href="#api_nan_function_callback_info"><b><code>Nan::FunctionCallbackInfo</code></b></a>
- - <a href="#api_nan_property_callback_info"><b><code>Nan::PropertyCallbackInfo</code></b></a>
- - <a href="#api_nan_return_value"><b><code>Nan::ReturnValue</code></b></a>
-* **Method declarations**
- - <a href="#api_nan_method"><b>Method declaration</b></a>
- - <a href="#api_nan_getter"><b>Getter declaration</b></a>
- - <a href="#api_nan_setter"><b>Setter declaration</b></a>
- - <a href="#api_nan_property_getter"><b>Property getter declaration</b></a>
- - <a href="#api_nan_property_setter"><b>Property setter declaration</b></a>
- - <a href="#api_nan_property_enumerator"><b>Property enumerator declaration</b></a>
- - <a href="#api_nan_property_deleter"><b>Property deleter declaration</b></a>
- - <a href="#api_nan_property_query"><b>Property query declaration</b></a>
- - <a href="#api_nan_index_getter"><b>Index getter declaration</b></a>
- - <a href="#api_nan_index_setter"><b>Index setter declaration</b></a>
- - <a href="#api_nan_index_enumerator"><b>Index enumerator declaration</b></a>
- - <a href="#api_nan_index_deleter"><b>Index deleter declaration</b></a>
- - <a href="#api_nan_index_query"><b>Index query declaration</b></a>
-* Method and template helpers
- - <a href="#api_nan_set_method"><b><code>Nan::SetMethod()</code></b></a>
- - <a href="#api_nan_set_prototype_method"><b><code>Nan::SetPrototypeMethod()</code></b></a>
- - <a href="#api_nan_set_accessor"><b><code>Nan::SetAccessor()</code></b></a>
- - <a href="#api_nan_set_named_property_handler"><b><code>Nan::SetNamedPropertyHandler()</code></b></a>
- - <a href="#api_nan_set_indexed_property_handler"><b><code>Nan::SetIndexedPropertyHandler()</code></b></a>
- - <a href="#api_nan_set_template"><b><code>Nan::SetTemplate()</code></b></a>
- - <a href="#api_nan_set_prototype_template"><b><code>Nan::SetPrototypeTemplate()</code></b></a>
- - <a href="#api_nan_set_instance_template"><b><code>Nan::SetInstanceTemplate()</code></b></a>
- - <a href="#api_nan_set_call_handler"><b><code>Nan::SetCallHandler()</code></b></a>
- - <a href="#api_nan_set_call_as_function_handler"><b><code>Nan::SetCallAsFunctionHandler()</code></b></a>
-
-<a name="api_nan_function_callback_info"></a>
-### Nan::FunctionCallbackInfo
-
-`Nan::FunctionCallbackInfo` should be used in place of [`v8::FunctionCallbackInfo`](https://v8docs.nodesource.com/node-8.16/dd/d0d/classv8_1_1_function_callback_info.html), even with older versions of Node where `v8::FunctionCallbackInfo` does not exist.
-
-Definition:
-
-```c++
-template<typename T> class FunctionCallbackInfo {
- public:
- ReturnValue<T> GetReturnValue() const;
- v8::Local<v8::Function> Callee(); // NOTE: Not available in NodeJS >= 10.0.0
- v8::Local<v8::Value> Data();
- v8::Local<v8::Object> Holder();
- bool IsConstructCall();
- int Length() const;
- v8::Local<v8::Value> operator[](int i) const;
- v8::Local<v8::Object> This() const;
- v8::Isolate *GetIsolate() const;
-};
-```
-
-See the [`v8::FunctionCallbackInfo`](https://v8docs.nodesource.com/node-8.16/dd/d0d/classv8_1_1_function_callback_info.html) documentation for usage details on these. See [`Nan::ReturnValue`](#api_nan_return_value) for further information on how to set a return value from methods.
-
-**Note:** `FunctionCallbackInfo::Callee` is removed in Node.js after `10.0.0` because it is was deprecated in V8. Consider using `info.Data()` to pass any information you need.
-
-<a name="api_nan_property_callback_info"></a>
-### Nan::PropertyCallbackInfo
-
-`Nan::PropertyCallbackInfo` should be used in place of [`v8::PropertyCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d7/dc5/classv8_1_1_property_callback_info.html), even with older versions of Node where `v8::PropertyCallbackInfo` does not exist.
-
-Definition:
-
-```c++
-template<typename T> class PropertyCallbackInfo : public PropertyCallbackInfoBase<T> {
- public:
- ReturnValue<T> GetReturnValue() const;
- v8::Isolate* GetIsolate() const;
- v8::Local<v8::Value> Data() const;
- v8::Local<v8::Object> This() const;
- v8::Local<v8::Object> Holder() const;
-};
-```
-
-See the [`v8::PropertyCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d7/dc5/classv8_1_1_property_callback_info.html) documentation for usage details on these. See [`Nan::ReturnValue`](#api_nan_return_value) for further information on how to set a return value from property accessor methods.
-
-<a name="api_nan_return_value"></a>
-### Nan::ReturnValue
-
-`Nan::ReturnValue` is used in place of [`v8::ReturnValue`](https://v8docs.nodesource.com/node-8.16/da/da7/classv8_1_1_return_value.html) on both [`Nan::FunctionCallbackInfo`](#api_nan_function_callback_info) and [`Nan::PropertyCallbackInfo`](#api_nan_property_callback_info) as the return type of `GetReturnValue()`.
-
-Example usage:
-
-```c++
-void EmptyArray(const Nan::FunctionCallbackInfo<v8::Value>& info) {
- info.GetReturnValue().Set(Nan::New<v8::Array>());
-}
-```
-
-Definition:
-
-```c++
-template<typename T> class ReturnValue {
- public:
- // Handle setters
- template <typename S> void Set(const v8::Local<S> &handle);
- template <typename S> void Set(const Nan::Global<S> &handle);
-
- // Fast primitive setters
- void Set(bool value);
- void Set(double i);
- void Set(int32_t i);
- void Set(uint32_t i);
-
- // Fast JS primitive setters
- void SetNull();
- void SetUndefined();
- void SetEmptyString();
-
- // Convenience getter for isolate
- v8::Isolate *GetIsolate() const;
-};
-```
-
-See the documentation on [`v8::ReturnValue`](https://v8docs.nodesource.com/node-8.16/da/da7/classv8_1_1_return_value.html) for further information on this.
-
-<a name="api_nan_method"></a>
-### Method declaration
-
-JavaScript-accessible methods should be declared with the following signature to form a `Nan::FunctionCallback`:
-
-```c++
-typedef void(*FunctionCallback)(const FunctionCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void MethodName(const Nan::FunctionCallbackInfo<v8::Value>& info) {
- ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a method as one is implicitly created for you.
-
-**Example usage**
-
-```c++
-// .h:
-class Foo : public Nan::ObjectWrap {
- ...
-
- static void Bar(const Nan::FunctionCallbackInfo<v8::Value>& info);
- static void Baz(const Nan::FunctionCallbackInfo<v8::Value>& info);
-}
-
-
-// .cc:
-void Foo::Bar(const Nan::FunctionCallbackInfo<v8::Value>& info) {
- ...
-}
-
-void Foo::Baz(const Nan::FunctionCallbackInfo<v8::Value>& info) {
- ...
-}
-```
-
-A helper macro `NAN_METHOD(methodname)` exists, compatible with NAN v1 method declarations.
-
-**Example usage with `NAN_METHOD(methodname)`**
-
-```c++
-// .h:
-class Foo : public Nan::ObjectWrap {
- ...
-
- static NAN_METHOD(Bar);
- static NAN_METHOD(Baz);
-}
-
-
-// .cc:
-NAN_METHOD(Foo::Bar) {
- ...
-}
-
-NAN_METHOD(Foo::Baz) {
- ...
-}
-```
-
-Use [`Nan::SetPrototypeMethod`](#api_nan_set_prototype_method) to attach a method to a JavaScript function prototype or [`Nan::SetMethod`](#api_nan_set_method) to attach a method directly on a JavaScript object.
-
-<a name="api_nan_getter"></a>
-### Getter declaration
-
-JavaScript-accessible getters should be declared with the following signature to form a `Nan::GetterCallback`:
-
-```c++
-typedef void(*GetterCallback)(v8::Local<v8::String>,
- const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void GetterName(v8::Local<v8::String> property,
- const Nan::PropertyCallbackInfo<v8::Value>& info) {
- ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a getter as one is implicitly created for you.
-
-A helper macro `NAN_GETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors).
-
-<a name="api_nan_setter"></a>
-### Setter declaration
-
-JavaScript-accessible setters should be declared with the following signature to form a <b><code>Nan::SetterCallback</code></b>:
-
-```c++
-typedef void(*SetterCallback)(v8::Local<v8::String>,
- v8::Local<v8::Value>,
- const PropertyCallbackInfo<void>&);
-```
-
-Example:
-
-```c++
-void SetterName(v8::Local<v8::String> property,
- v8::Local<v8::Value> value,
- const Nan::PropertyCallbackInfo<void>& info) {
- ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a setter as one is implicitly created for you.
-
-A helper macro `NAN_SETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on [Accessors](https://developers.google.com/v8/embed#accesssors).
-
-<a name="api_nan_property_getter"></a>
-### Property getter declaration
-
-JavaScript-accessible property getters should be declared with the following signature to form a <b><code>Nan::PropertyGetterCallback</code></b>:
-
-```c++
-typedef void(*PropertyGetterCallback)(v8::Local<v8::String>,
- const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void PropertyGetterName(v8::Local<v8::String> property,
- const Nan::PropertyCallbackInfo<v8::Value>& info) {
- ...
-}
-```
-
-You do not need to declare a new `HandleScope` within a property getter as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_GETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_setter"></a>
-### Property setter declaration
-
-JavaScript-accessible property setters should be declared with the following signature to form a <b><code>Nan::PropertySetterCallback</code></b>:
-
-```c++
-typedef void(*PropertySetterCallback)(v8::Local<v8::String>,
- v8::Local<v8::Value>,
- const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void PropertySetterName(v8::Local<v8::String> property,
- v8::Local<v8::Value> value,
- const Nan::PropertyCallbackInfo<v8::Value>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property setter as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_SETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_enumerator"></a>
-### Property enumerator declaration
-
-JavaScript-accessible property enumerators should be declared with the following signature to form a <b><code>Nan::PropertyEnumeratorCallback</code></b>:
-
-```c++
-typedef void(*PropertyEnumeratorCallback)(const PropertyCallbackInfo<v8::Array>&);
-```
-
-Example:
-
-```c++
-void PropertyEnumeratorName(const Nan::PropertyCallbackInfo<v8::Array>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property enumerator as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_ENUMERATOR(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_deleter"></a>
-### Property deleter declaration
-
-JavaScript-accessible property deleters should be declared with the following signature to form a <b><code>Nan::PropertyDeleterCallback</code></b>:
-
-```c++
-typedef void(*PropertyDeleterCallback)(v8::Local<v8::String>,
- const PropertyCallbackInfo<v8::Boolean>&);
-```
-
-Example:
-
-```c++
-void PropertyDeleterName(v8::Local<v8::String> property,
- const Nan::PropertyCallbackInfo<v8::Boolean>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property deleter as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_DELETER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_property_query"></a>
-### Property query declaration
-
-JavaScript-accessible property query methods should be declared with the following signature to form a <b><code>Nan::PropertyQueryCallback</code></b>:
-
-```c++
-typedef void(*PropertyQueryCallback)(v8::Local<v8::String>,
- const PropertyCallbackInfo<v8::Integer>&);
-```
-
-Example:
-
-```c++
-void PropertyQueryName(v8::Local<v8::String> property,
- const Nan::PropertyCallbackInfo<v8::Integer>& info);
-```
-
-You do not need to declare a new `HandleScope` within a property query method as one is implicitly created for you.
-
-A helper macro `NAN_PROPERTY_QUERY(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on named property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_getter"></a>
-### Index getter declaration
-
-JavaScript-accessible index getter methods should be declared with the following signature to form a <b><code>Nan::IndexGetterCallback</code></b>:
-
-```c++
-typedef void(*IndexGetterCallback)(uint32_t,
- const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void IndexGetterName(uint32_t index, const PropertyCallbackInfo<v8::Value>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index getter as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_GETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_setter"></a>
-### Index setter declaration
-
-JavaScript-accessible index setter methods should be declared with the following signature to form a <b><code>Nan::IndexSetterCallback</code></b>:
-
-```c++
-typedef void(*IndexSetterCallback)(uint32_t,
- v8::Local<v8::Value>,
- const PropertyCallbackInfo<v8::Value>&);
-```
-
-Example:
-
-```c++
-void IndexSetterName(uint32_t index,
- v8::Local<v8::Value> value,
- const PropertyCallbackInfo<v8::Value>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index setter as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_SETTER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_enumerator"></a>
-### Index enumerator declaration
-
-JavaScript-accessible index enumerator methods should be declared with the following signature to form a <b><code>Nan::IndexEnumeratorCallback</code></b>:
-
-```c++
-typedef void(*IndexEnumeratorCallback)(const PropertyCallbackInfo<v8::Array>&);
-```
-
-Example:
-
-```c++
-void IndexEnumeratorName(const PropertyCallbackInfo<v8::Array>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index enumerator as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_ENUMERATOR(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_deleter"></a>
-### Index deleter declaration
-
-JavaScript-accessible index deleter methods should be declared with the following signature to form a <b><code>Nan::IndexDeleterCallback</code></b>:
-
-```c++
-typedef void(*IndexDeleterCallback)(uint32_t,
- const PropertyCallbackInfo<v8::Boolean>&);
-```
-
-Example:
-
-```c++
-void IndexDeleterName(uint32_t index, const PropertyCallbackInfo<v8::Boolean>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index deleter as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_DELETER(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_index_query"></a>
-### Index query declaration
-
-JavaScript-accessible index query methods should be declared with the following signature to form a <b><code>Nan::IndexQueryCallback</code></b>:
-
-```c++
-typedef void(*IndexQueryCallback)(uint32_t,
- const PropertyCallbackInfo<v8::Integer>&);
-```
-
-Example:
-
-```c++
-void IndexQueryName(uint32_t index, const PropertyCallbackInfo<v8::Integer>& info);
-```
-
-You do not need to declare a new `HandleScope` within a index query method as one is implicitly created for you.
-
-A helper macro `NAN_INDEX_QUERY(methodname)` exists, compatible with NAN v1 method declarations.
-
-Also see the V8 Embedders Guide documentation on indexed property [Interceptors](https://developers.google.com/v8/embed#interceptors).
-
-<a name="api_nan_set_method"></a>
-### Nan::SetMethod()
-
-Sets a method with a given name directly on a JavaScript object where the method has the `Nan::FunctionCallback` signature (see <a href="#api_nan_method">Method declaration</a>).
-
-Signature:
-
-```c++
-void Nan::SetMethod(v8::Local<v8::Object> recv,
- const char *name,
- Nan::FunctionCallback callback,
- v8::Local<v8::Value> data = v8::Local<v8::Value>())
-void Nan::SetMethod(v8::Local<v8::Template> templ,
- const char *name,
- Nan::FunctionCallback callback,
- v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-<a name="api_nan_set_prototype_method"></a>
-### Nan::SetPrototypeMethod()
-
-Sets a method with a given name on a `FunctionTemplate`'s prototype where the method has the `Nan::FunctionCallback` signature (see <a href="#api_nan_method">Method declaration</a>).
-
-Signature:
-
-```c++
-void Nan::SetPrototypeMethod(v8::Local<v8::FunctionTemplate> recv,
- const char* name,
- Nan::FunctionCallback callback,
- v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-<a name="api_nan_set_accessor"></a>
-### Nan::SetAccessor()
-
-Sets getters and setters for a property with a given name on an `ObjectTemplate` or a plain `Object`. Accepts getters with the `Nan::GetterCallback` signature (see <a href="#api_nan_getter">Getter declaration</a>) and setters with the `Nan::SetterCallback` signature (see <a href="#api_nan_setter">Setter declaration</a>).
-
-Signature:
-
-```c++
-void SetAccessor(v8::Local<v8::ObjectTemplate> tpl,
- v8::Local<v8::String> name,
- Nan::GetterCallback getter,
- Nan::SetterCallback setter = 0,
- v8::Local<v8::Value> data = v8::Local<v8::Value>(),
- v8::AccessControl settings = v8::DEFAULT,
- v8::PropertyAttribute attribute = v8::None,
- imp::Sig signature = imp::Sig());
-bool SetAccessor(v8::Local<v8::Object> obj,
- v8::Local<v8::String> name,
- Nan::GetterCallback getter,
- Nan::SetterCallback setter = 0,
- v8::Local<v8::Value> data = v8::Local<v8::Value>(),
- v8::AccessControl settings = v8::DEFAULT,
- v8::PropertyAttribute attribute = v8::None)
-```
-
-See the V8 [`ObjectTemplate#SetAccessor()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#aca0ed196f8a9adb1f68b1aadb6c9cd77) and [`Object#SetAccessor()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ae91b3b56b357f285288c89fbddc46d1b) for further information about how to use `Nan::SetAccessor()`.
-
-<a name="api_nan_set_named_property_handler"></a>
-### Nan::SetNamedPropertyHandler()
-
-Sets named property getters, setters, query, deleter and enumerator methods on an `ObjectTemplate`. Accepts:
-
-* Property getters with the `Nan::PropertyGetterCallback` signature (see <a href="#api_nan_property_getter">Property getter declaration</a>)
-* Property setters with the `Nan::PropertySetterCallback` signature (see <a href="#api_nan_property_setter">Property setter declaration</a>)
-* Property query methods with the `Nan::PropertyQueryCallback` signature (see <a href="#api_nan_property_query">Property query declaration</a>)
-* Property deleters with the `Nan::PropertyDeleterCallback` signature (see <a href="#api_nan_property_deleter">Property deleter declaration</a>)
-* Property enumerators with the `Nan::PropertyEnumeratorCallback` signature (see <a href="#api_nan_property_enumerator">Property enumerator declaration</a>)
-
-Signature:
-
-```c++
-void SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate> tpl,
- Nan::PropertyGetterCallback getter,
- Nan::PropertySetterCallback setter = 0,
- Nan::PropertyQueryCallback query = 0,
- Nan::PropertyDeleterCallback deleter = 0,
- Nan::PropertyEnumeratorCallback enumerator = 0,
- v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-See the V8 [`ObjectTemplate#SetNamedPropertyHandler()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#a33b3ebd7de641f6cc6414b7de01fc1c7) for further information about how to use `Nan::SetNamedPropertyHandler()`.
-
-<a name="api_nan_set_indexed_property_handler"></a>
-### Nan::SetIndexedPropertyHandler()
-
-Sets indexed property getters, setters, query, deleter and enumerator methods on an `ObjectTemplate`. Accepts:
-
-* Indexed property getters with the `Nan::IndexGetterCallback` signature (see <a href="#api_nan_index_getter">Index getter declaration</a>)
-* Indexed property setters with the `Nan::IndexSetterCallback` signature (see <a href="#api_nan_index_setter">Index setter declaration</a>)
-* Indexed property query methods with the `Nan::IndexQueryCallback` signature (see <a href="#api_nan_index_query">Index query declaration</a>)
-* Indexed property deleters with the `Nan::IndexDeleterCallback` signature (see <a href="#api_nan_index_deleter">Index deleter declaration</a>)
-* Indexed property enumerators with the `Nan::IndexEnumeratorCallback` signature (see <a href="#api_nan_index_enumerator">Index enumerator declaration</a>)
-
-Signature:
-
-```c++
-void SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate> tpl,
- Nan::IndexGetterCallback getter,
- Nan::IndexSetterCallback setter = 0,
- Nan::IndexQueryCallback query = 0,
- Nan::IndexDeleterCallback deleter = 0,
- Nan::IndexEnumeratorCallback enumerator = 0,
- v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-See the V8 [`ObjectTemplate#SetIndexedPropertyHandler()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#ac89f06d634add0e890452033f7d17ff1) for further information about how to use `Nan::SetIndexedPropertyHandler()`.
-
-<a name="api_nan_set_template"></a>
-### Nan::SetTemplate()
-
-Adds properties on an `Object`'s or `Function`'s template.
-
-Signature:
-
-```c++
-void Nan::SetTemplate(v8::Local<v8::Template> templ,
- const char *name,
- v8::Local<v8::Data> value);
-void Nan::SetTemplate(v8::Local<v8::Template> templ,
- v8::Local<v8::String> name,
- v8::Local<v8::Data> value,
- v8::PropertyAttribute attributes)
-```
-
-Calls the `Template`'s [`Set()`](https://v8docs.nodesource.com/node-8.16/db/df7/classv8_1_1_template.html#ae3fbaff137557aa6a0233bc7e52214ac).
-
-<a name="api_nan_set_prototype_template"></a>
-### Nan::SetPrototypeTemplate()
-
-Adds properties on an `Object`'s or `Function`'s prototype template.
-
-Signature:
-
-```c++
-void Nan::SetPrototypeTemplate(v8::Local<v8::FunctionTemplate> templ,
- const char *name,
- v8::Local<v8::Data> value);
-void Nan::SetPrototypeTemplate(v8::Local<v8::FunctionTemplate> templ,
- v8::Local<v8::String> name,
- v8::Local<v8::Data> value,
- v8::PropertyAttribute attributes)
-```
-
-Calls the `FunctionTemplate`'s _PrototypeTemplate's_ [`Set()`](https://v8docs.nodesource.com/node-8.16/db/df7/classv8_1_1_template.html#a2db6a56597bf23c59659c0659e564ddf).
-
-<a name="api_nan_set_instance_template"></a>
-### Nan::SetInstanceTemplate()
-
-Use to add instance properties on `FunctionTemplate`'s.
-
-Signature:
-
-```c++
-void Nan::SetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ,
- const char *name,
- v8::Local<v8::Data> value);
-void Nan::SetInstanceTemplate(v8::Local<v8::FunctionTemplate> templ,
- v8::Local<v8::String> name,
- v8::Local<v8::Data> value,
- v8::PropertyAttribute attributes)
-```
-
-Calls the `FunctionTemplate`'s _InstanceTemplate's_ [`Set()`](https://v8docs.nodesource.com/node-8.16/db/df7/classv8_1_1_template.html#a2db6a56597bf23c59659c0659e564ddf).
-
-<a name="api_nan_set_call_handler"></a>
-### Nan::SetCallHandler()
-
-Set the call-handler callback for a `v8::FunctionTemplate`.
-This callback is called whenever the function created from this FunctionTemplate is called.
-
-Signature:
-
-```c++
-void Nan::SetCallHandler(v8::Local<v8::FunctionTemplate> templ, Nan::FunctionCallback callback, v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-Calls the `FunctionTemplate`'s [`SetCallHandler()`](https://v8docs.nodesource.com/node-8.16/d8/d83/classv8_1_1_function_template.html#ab7574b298db3c27fbc2ed465c08ea2f8).
-
-<a name="api_nan_set_call_as_function_handler"></a>
-### Nan::SetCallAsFunctionHandler()
-
-Sets the callback to be used when calling instances created from the `v8::ObjectTemplate` as a function.
-If no callback is set, instances behave like normal JavaScript objects that cannot be called as a function.
-
-Signature:
-
-```c++
-void Nan::SetCallAsFunctionHandler(v8::Local<v8::ObjectTemplate> templ, Nan::FunctionCallback callback, v8::Local<v8::Value> data = v8::Local<v8::Value>())
-```
-
-Calls the `ObjectTemplate`'s [`SetCallAsFunctionHandler()`](https://v8docs.nodesource.com/node-8.16/db/d5f/classv8_1_1_object_template.html#a5e9612fc80bf6db8f2da199b9b0bd04e).
-
diff --git a/node_modules/nan/doc/new.md b/node_modules/nan/doc/new.md
deleted file mode 100644
index 0f28a0e..0000000
--- a/node_modules/nan/doc/new.md
+++ /dev/null
@@ -1,147 +0,0 @@
-## New
-
-NAN provides a `Nan::New()` helper for the creation of new JavaScript objects in a way that's compatible across the supported versions of V8.
-
- - <a href="#api_nan_new"><b><code>Nan::New()</code></b></a>
- - <a href="#api_nan_undefined"><b><code>Nan::Undefined()</code></b></a>
- - <a href="#api_nan_null"><b><code>Nan::Null()</code></b></a>
- - <a href="#api_nan_true"><b><code>Nan::True()</code></b></a>
- - <a href="#api_nan_false"><b><code>Nan::False()</code></b></a>
- - <a href="#api_nan_empty_string"><b><code>Nan::EmptyString()</code></b></a>
-
-
-<a name="api_nan_new"></a>
-### Nan::New()
-
-`Nan::New()` should be used to instantiate new JavaScript objects.
-
-Refer to the specific V8 type in the [V8 documentation](https://v8docs.nodesource.com/node-8.16/d1/d83/classv8_1_1_data.html) for information on the types of arguments required for instantiation.
-
-Signatures:
-
-Return types are mostly omitted from the signatures for simplicity. In most cases the type will be contained within a `v8::Local<T>`. The following types will be contained within a `Nan::MaybeLocal<T>`: `v8::String`, `v8::Date`, `v8::RegExp`, `v8::Script`, `v8::UnboundScript`.
-
-Empty objects:
-
-```c++
-Nan::New<T>();
-```
-
-Generic single and multiple-argument:
-
-```c++
-Nan::New<T>(A0 arg0);
-Nan::New<T>(A0 arg0, A1 arg1);
-Nan::New<T>(A0 arg0, A1 arg1, A2 arg2);
-Nan::New<T>(A0 arg0, A1 arg1, A2 arg2, A3 arg3);
-```
-
-For creating `v8::FunctionTemplate` and `v8::Function` objects:
-
-_The definition of `Nan::FunctionCallback` can be found in the [Method declaration](./methods.md#api_nan_method) documentation._
-
-```c++
-Nan::New<T>(Nan::FunctionCallback callback,
- v8::Local<v8::Value> data = v8::Local<v8::Value>());
-Nan::New<T>(Nan::FunctionCallback callback,
- v8::Local<v8::Value> data = v8::Local<v8::Value>(),
- A2 a2 = A2());
-```
-
-Native number types:
-
-```c++
-v8::Local<v8::Boolean> Nan::New<T>(bool value);
-v8::Local<v8::Int32> Nan::New<T>(int32_t value);
-v8::Local<v8::Uint32> Nan::New<T>(uint32_t value);
-v8::Local<v8::Number> Nan::New<T>(double value);
-```
-
-String types:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::New<T>(std::string const& value);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const char * value, int length);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const char * value);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const uint16_t * value);
-Nan::MaybeLocal<v8::String> Nan::New<T>(const uint16_t * value, int length);
-```
-
-Specialized types:
-
-```c++
-v8::Local<v8::String> Nan::New<T>(v8::String::ExternalStringResource * value);
-v8::Local<v8::String> Nan::New<T>(Nan::ExternalOneByteStringResource * value);
-v8::Local<v8::RegExp> Nan::New<T>(v8::Local<v8::String> pattern, v8::RegExp::Flags flags);
-```
-
-Note that `Nan::ExternalOneByteStringResource` maps to [`v8::String::ExternalOneByteStringResource`](https://v8docs.nodesource.com/node-8.16/d9/db3/classv8_1_1_string_1_1_external_one_byte_string_resource.html), and `v8::String::ExternalAsciiStringResource` in older versions of V8.
-
-
-<a name="api_nan_undefined"></a>
-### Nan::Undefined()
-
-A helper method to reference the `v8::Undefined` object in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Primitive> Nan::Undefined()
-```
-
-<a name="api_nan_null"></a>
-### Nan::Null()
-
-A helper method to reference the `v8::Null` object in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Primitive> Nan::Null()
-```
-
-<a name="api_nan_true"></a>
-### Nan::True()
-
-A helper method to reference the `v8::Boolean` object representing the `true` value in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Boolean> Nan::True()
-```
-
-<a name="api_nan_false"></a>
-### Nan::False()
-
-A helper method to reference the `v8::Boolean` object representing the `false` value in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Boolean> Nan::False()
-```
-
-<a name="api_nan_empty_string"></a>
-### Nan::EmptyString()
-
-Call [`v8::String::Empty`](https://v8docs.nodesource.com/node-8.16/d2/db3/classv8_1_1_string.html#a7c1bc8886115d7ee46f1d571dd6ebc6d) to reference the empty string in a way that is compatible across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::String> Nan::EmptyString()
-```
-
-
-<a name="api_nan_new_one_byte_string"></a>
-### Nan::NewOneByteString()
-
-An implementation of [`v8::String::NewFromOneByte()`](https://v8docs.nodesource.com/node-8.16/d2/db3/classv8_1_1_string.html#a5264d50b96d2c896ce525a734dc10f09) provided for consistent availability and API across supported versions of V8. Allocates a new string from Latin-1 data.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::String> Nan::NewOneByteString(const uint8_t * value,
- int length = -1)
-```
diff --git a/node_modules/nan/doc/node_misc.md b/node_modules/nan/doc/node_misc.md
deleted file mode 100644
index 17578e3..0000000
--- a/node_modules/nan/doc/node_misc.md
+++ /dev/null
@@ -1,123 +0,0 @@
-## Miscellaneous Node Helpers
-
- - <a href="#api_nan_asyncresource"><b><code>Nan::AsyncResource</code></b></a>
- - <a href="#api_nan_make_callback"><b><code>Nan::MakeCallback()</code></b></a>
- - <a href="#api_nan_module_init"><b><code>NAN_MODULE_INIT()</code></b></a>
- - <a href="#api_nan_export"><b><code>Nan::Export()</code></b></a>
-
-<a name="api_nan_asyncresource"></a>
-### Nan::AsyncResource
-
-This class is analogous to the `AsyncResource` JavaScript class exposed by Node's [async_hooks][] API.
-
-When calling back into JavaScript asynchronously, special care must be taken to ensure that the runtime can properly track
-async hops. `Nan::AsyncResource` is a class that provides an RAII wrapper around `node::EmitAsyncInit`, `node::EmitAsyncDestroy`,
-and `node::MakeCallback`. Using this mechanism to call back into JavaScript, as opposed to `Nan::MakeCallback` or
-`v8::Function::Call` ensures that the callback is executed in the correct async context. This ensures that async mechanisms
-such as domains and [async_hooks][] function correctly.
-
-Definition:
-
-```c++
-class AsyncResource {
- public:
- AsyncResource(v8::Local<v8::String> name,
- v8::Local<v8::Object> resource = New<v8::Object>());
- AsyncResource(const char* name,
- v8::Local<v8::Object> resource = New<v8::Object>());
- ~AsyncResource();
-
- v8::MaybeLocal<v8::Value> runInAsyncScope(v8::Local<v8::Object> target,
- v8::Local<v8::Function> func,
- int argc,
- v8::Local<v8::Value>* argv);
- v8::MaybeLocal<v8::Value> runInAsyncScope(v8::Local<v8::Object> target,
- v8::Local<v8::String> symbol,
- int argc,
- v8::Local<v8::Value>* argv);
- v8::MaybeLocal<v8::Value> runInAsyncScope(v8::Local<v8::Object> target,
- const char* method,
- int argc,
- v8::Local<v8::Value>* argv);
-};
-```
-
-* `name`: Identifier for the kind of resource that is being provided for diagnostics information exposed by the [async_hooks][]
- API. This will be passed to the possible `init` hook as the `type`. To avoid name collisions with other modules we recommend
- that the name include the name of the owning module as a prefix. For example `mysql` module could use something like
- `mysql:batch-db-query-resource`.
-* `resource`: An optional object associated with the async work that will be passed to the possible [async_hooks][]
- `init` hook. If this parameter is omitted, or an empty handle is provided, this object will be created automatically.
-* When calling JS on behalf of this resource, one can use `runInAsyncScope`. This will ensure that the callback runs in the
- correct async execution context.
-* `AsyncDestroy` is automatically called when an AsyncResource object is destroyed.
-
-For more details, see the Node [async_hooks][] documentation. You might also want to take a look at the documentation for the
-[N-API counterpart][napi]. For example usage, see the `asyncresource.cpp` example in the `test/cpp` directory.
-
-<a name="api_nan_make_callback"></a>
-### Nan::MakeCallback()
-
-Deprecated wrappers around the legacy `node::MakeCallback()` APIs. Node.js 10+
-has deprecated these legacy APIs as they do not provide a mechanism to preserve
-async context.
-
-We recommend that you use the `AsyncResource` class and `AsyncResource::runInAsyncScope` instead of using `Nan::MakeCallback` or
-`v8::Function#Call()` directly. `AsyncResource` properly takes care of running the callback in the correct async execution
-context – something that is essential for functionality like domains, async_hooks and async debugging.
-
-Signatures:
-
-```c++
-NAN_DEPRECATED
-v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object> target,
- v8::Local<v8::Function> func,
- int argc,
- v8::Local<v8::Value>* argv);
-NAN_DEPRECATED
-v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object> target,
- v8::Local<v8::String> symbol,
- int argc,
- v8::Local<v8::Value>* argv);
-NAN_DEPRECATED
-v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object> target,
- const char* method,
- int argc,
- v8::Local<v8::Value>* argv);
-```
-
-
-<a name="api_nan_module_init"></a>
-### NAN_MODULE_INIT()
-
-Used to define the entry point function to a Node add-on. Creates a function with a given `name` that receives a `target` object representing the equivalent of the JavaScript `exports` object.
-
-See example below.
-
-<a name="api_nan_export"></a>
-### Nan::Export()
-
-A simple helper to register a `v8::FunctionTemplate` from a JavaScript-accessible method (see [Methods](./methods.md)) as a property on an object. Can be used in a way similar to assigning properties to `module.exports` in JavaScript.
-
-Signature:
-
-```c++
-void Export(v8::Local<v8::Object> target, const char *name, Nan::FunctionCallback f)
-```
-
-Also available as the shortcut `NAN_EXPORT` macro.
-
-Example:
-
-```c++
-NAN_METHOD(Foo) {
- ...
-}
-
-NAN_MODULE_INIT(Init) {
- NAN_EXPORT(target, Foo);
-}
-```
-
-[async_hooks]: https://nodejs.org/dist/latest-v9.x/docs/api/async_hooks.html
-[napi]: https://nodejs.org/dist/latest-v9.x/docs/api/n-api.html#n_api_custom_asynchronous_operations
diff --git a/node_modules/nan/doc/object_wrappers.md b/node_modules/nan/doc/object_wrappers.md
deleted file mode 100644
index 07d8c05..0000000
--- a/node_modules/nan/doc/object_wrappers.md
+++ /dev/null
@@ -1,263 +0,0 @@
-## Object Wrappers
-
-The `ObjectWrap` class can be used to make wrapped C++ objects and a factory of wrapped objects.
-
- - <a href="#api_nan_object_wrap"><b><code>Nan::ObjectWrap</code></b></a>
-
-
-<a name="api_nan_object_wrap"></a>
-### Nan::ObjectWrap()
-
-A reimplementation of `node::ObjectWrap` that adds some API not present in older versions of Node. Should be preferred over `node::ObjectWrap` in all cases for consistency.
-
-Definition:
-
-```c++
-class ObjectWrap {
- public:
- ObjectWrap();
-
- virtual ~ObjectWrap();
-
- template <class T>
- static inline T* Unwrap(v8::Local<v8::Object> handle);
-
- inline v8::Local<v8::Object> handle();
-
- inline Nan::Persistent<v8::Object>& persistent();
-
- protected:
- inline void Wrap(v8::Local<v8::Object> handle);
-
- inline void MakeWeak();
-
- /* Ref() marks the object as being attached to an event loop.
- * Refed objects will not be garbage collected, even if
- * all references are lost.
- */
- virtual void Ref();
-
- /* Unref() marks an object as detached from the event loop. This is its
- * default state. When an object with a "weak" reference changes from
- * attached to detached state it will be freed. Be careful not to access
- * the object after making this call as it might be gone!
- * (A "weak reference" means an object that only has a
- * persistent handle.)
- *
- * DO NOT CALL THIS FROM DESTRUCTOR
- */
- virtual void Unref();
-
- int refs_; // ro
-};
-```
-
-See the Node documentation on [Wrapping C++ Objects](https://nodejs.org/api/addons.html#addons_wrapping_c_objects) for more details.
-
-### This vs. Holder
-
-When calling `Unwrap`, it is important that the argument is indeed some JavaScript object which got wrapped by a `Wrap` call for this class or any derived class.
-The `Signature` installed by [`Nan::SetPrototypeMethod()`](methods.md#api_nan_set_prototype_method) does ensure that `info.Holder()` is just such an instance.
-In Node 0.12 and later, `info.This()` will also be of such a type, since otherwise the invocation will get rejected.
-However, in Node 0.10 and before it was possible to invoke a method on a JavaScript object which just had the extension type in its prototype chain.
-In such a situation, calling `Unwrap` on `info.This()` will likely lead to a failed assertion causing a crash, but could lead to even more serious corruption.
-
-On the other hand, calling `Unwrap` in an [accessor](methods.md#api_nan_set_accessor) should not use `Holder()` if the accessor is defined on the prototype.
-So either define your accessors on the instance template,
-or use `This()` after verifying that it is indeed a valid object.
-
-### Examples
-
-#### Basic
-
-```c++
-class MyObject : public Nan::ObjectWrap {
- public:
- static NAN_MODULE_INIT(Init) {
- v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
- tpl->SetClassName(Nan::New("MyObject").ToLocalChecked());
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
-
- Nan::SetPrototypeMethod(tpl, "getHandle", GetHandle);
- Nan::SetPrototypeMethod(tpl, "getValue", GetValue);
-
- constructor().Reset(Nan::GetFunction(tpl).ToLocalChecked());
- Nan::Set(target, Nan::New("MyObject").ToLocalChecked(),
- Nan::GetFunction(tpl).ToLocalChecked());
- }
-
- private:
- explicit MyObject(double value = 0) : value_(value) {}
- ~MyObject() {}
-
- static NAN_METHOD(New) {
- if (info.IsConstructCall()) {
- double value = info[0]->IsUndefined() ? 0 : Nan::To<double>(info[0]).FromJust();
- MyObject *obj = new MyObject(value);
- obj->Wrap(info.This());
- info.GetReturnValue().Set(info.This());
- } else {
- const int argc = 1;
- v8::Local<v8::Value> argv[argc] = {info[0]};
- v8::Local<v8::Function> cons = Nan::New(constructor());
- info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
- }
- }
-
- static NAN_METHOD(GetHandle) {
- MyObject* obj = Nan::ObjectWrap::Unwrap<MyObject>(info.Holder());
- info.GetReturnValue().Set(obj->handle());
- }
-
- static NAN_METHOD(GetValue) {
- MyObject* obj = Nan::ObjectWrap::Unwrap<MyObject>(info.Holder());
- info.GetReturnValue().Set(obj->value_);
- }
-
- static inline Nan::Persistent<v8::Function> & constructor() {
- static Nan::Persistent<v8::Function> my_constructor;
- return my_constructor;
- }
-
- double value_;
-};
-
-NODE_MODULE(objectwrapper, MyObject::Init)
-```
-
-To use in Javascript:
-
-```Javascript
-var objectwrapper = require('bindings')('objectwrapper');
-
-var obj = new objectwrapper.MyObject(5);
-console.log('Should be 5: ' + obj.getValue());
-```
-
-#### Factory of wrapped objects
-
-```c++
-class MyFactoryObject : public Nan::ObjectWrap {
- public:
- static NAN_MODULE_INIT(Init) {
- v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
-
- Nan::SetPrototypeMethod(tpl, "getValue", GetValue);
-
- constructor().Reset(Nan::GetFunction(tpl).ToLocalChecked());
- }
-
- static NAN_METHOD(NewInstance) {
- v8::Local<v8::Function> cons = Nan::New(constructor());
- double value = info[0]->IsNumber() ? Nan::To<double>(info[0]).FromJust() : 0;
- const int argc = 1;
- v8::Local<v8::Value> argv[1] = {Nan::New(value)};
- info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
- }
-
- // Needed for the next example:
- inline double value() const {
- return value_;
- }
-
- private:
- explicit MyFactoryObject(double value = 0) : value_(value) {}
- ~MyFactoryObject() {}
-
- static NAN_METHOD(New) {
- if (info.IsConstructCall()) {
- double value = info[0]->IsNumber() ? Nan::To<double>(info[0]).FromJust() : 0;
- MyFactoryObject * obj = new MyFactoryObject(value);
- obj->Wrap(info.This());
- info.GetReturnValue().Set(info.This());
- } else {
- const int argc = 1;
- v8::Local<v8::Value> argv[argc] = {info[0]};
- v8::Local<v8::Function> cons = Nan::New(constructor());
- info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked());
- }
- }
-
- static NAN_METHOD(GetValue) {
- MyFactoryObject* obj = ObjectWrap::Unwrap<MyFactoryObject>(info.Holder());
- info.GetReturnValue().Set(obj->value_);
- }
-
- static inline Nan::Persistent<v8::Function> & constructor() {
- static Nan::Persistent<v8::Function> my_constructor;
- return my_constructor;
- }
-
- double value_;
-};
-
-NAN_MODULE_INIT(Init) {
- MyFactoryObject::Init(target);
- Nan::Set(target,
- Nan::New<v8::String>("newFactoryObjectInstance").ToLocalChecked(),
- Nan::GetFunction(
- Nan::New<v8::FunctionTemplate>(MyFactoryObject::NewInstance)).ToLocalChecked()
- );
-}
-
-NODE_MODULE(wrappedobjectfactory, Init)
-```
-
-To use in Javascript:
-
-```Javascript
-var wrappedobjectfactory = require('bindings')('wrappedobjectfactory');
-
-var obj = wrappedobjectfactory.newFactoryObjectInstance(10);
-console.log('Should be 10: ' + obj.getValue());
-```
-
-#### Passing wrapped objects around
-
-Use the `MyFactoryObject` class above along with the following:
-
-```c++
-static NAN_METHOD(Sum) {
- Nan::MaybeLocal<v8::Object> maybe1 = Nan::To<v8::Object>(info[0]);
- Nan::MaybeLocal<v8::Object> maybe2 = Nan::To<v8::Object>(info[1]);
-
- // Quick check:
- if (maybe1.IsEmpty() || maybe2.IsEmpty()) {
- // return value is undefined by default
- return;
- }
-
- MyFactoryObject* obj1 =
- Nan::ObjectWrap::Unwrap<MyFactoryObject>(maybe1.ToLocalChecked());
- MyFactoryObject* obj2 =
- Nan::ObjectWrap::Unwrap<MyFactoryObject>(maybe2.ToLocalChecked());
-
- info.GetReturnValue().Set(Nan::New<v8::Number>(obj1->value() + obj2->value()));
-}
-
-NAN_MODULE_INIT(Init) {
- MyFactoryObject::Init(target);
- Nan::Set(target,
- Nan::New<v8::String>("newFactoryObjectInstance").ToLocalChecked(),
- Nan::GetFunction(
- Nan::New<v8::FunctionTemplate>(MyFactoryObject::NewInstance)).ToLocalChecked()
- );
- Nan::Set(target,
- Nan::New<v8::String>("sum").ToLocalChecked(),
- Nan::GetFunction(Nan::New<v8::FunctionTemplate>(Sum)).ToLocalChecked()
- );
-}
-
-NODE_MODULE(myaddon, Init)
-```
-
-To use in Javascript:
-
-```Javascript
-var myaddon = require('bindings')('myaddon');
-
-var obj1 = myaddon.newFactoryObjectInstance(5);
-var obj2 = myaddon.newFactoryObjectInstance(10);
-console.log('sum of object values: ' + myaddon.sum(obj1, obj2));
-```
diff --git a/node_modules/nan/doc/persistent.md b/node_modules/nan/doc/persistent.md
deleted file mode 100644
index 2e13f6b..0000000
--- a/node_modules/nan/doc/persistent.md
+++ /dev/null
@@ -1,296 +0,0 @@
-## Persistent references
-
-An object reference that is independent of any `HandleScope` is a _persistent_ reference. Where a `Local` handle only lives as long as the `HandleScope` in which it was allocated, a `Persistent` handle remains valid until it is explicitly disposed.
-
-Due to the evolution of the V8 API, it is necessary for NAN to provide a wrapper implementation of the `Persistent` classes to supply compatibility across the V8 versions supported.
-
- - <a href="#api_nan_persistent_base"><b><code>Nan::PersistentBase & v8::PersistentBase</code></b></a>
- - <a href="#api_nan_non_copyable_persistent_traits"><b><code>Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits</code></b></a>
- - <a href="#api_nan_copyable_persistent_traits"><b><code>Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits</code></b></a>
- - <a href="#api_nan_persistent"><b><code>Nan::Persistent</code></b></a>
- - <a href="#api_nan_global"><b><code>Nan::Global</code></b></a>
- - <a href="#api_nan_weak_callback_info"><b><code>Nan::WeakCallbackInfo</code></b></a>
- - <a href="#api_nan_weak_callback_type"><b><code>Nan::WeakCallbackType</code></b></a>
-
-Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://developers.google.com/v8/embed#handles).
-
-<a name="api_nan_persistent_base"></a>
-### Nan::PersistentBase & v8::PersistentBase
-
-A persistent handle contains a reference to a storage cell in V8 which holds an object value and which is updated by the garbage collector whenever the object is moved. A new storage cell can be created using the constructor or `Nan::PersistentBase::Reset()`. Existing handles can be disposed using an argument-less `Nan::PersistentBase::Reset()`.
-
-Definition:
-
-_(note: this is implemented as `Nan::PersistentBase` for older versions of V8 and the native `v8::PersistentBase` is used for newer versions of V8)_
-
-```c++
-template<typename T> class PersistentBase {
- public:
- /**
- * If non-empty, destroy the underlying storage cell
- */
- void Reset();
-
- /**
- * If non-empty, destroy the underlying storage cell and create a new one with
- * the contents of another if it is also non-empty
- */
- template<typename S> void Reset(const v8::Local<S> &other);
-
- /**
- * If non-empty, destroy the underlying storage cell and create a new one with
- * the contents of another if it is also non-empty
- */
- template<typename S> void Reset(const PersistentBase<S> &other);
-
- /** Returns true if the handle is empty. */
- bool IsEmpty() const;
-
- /**
- * If non-empty, destroy the underlying storage cell
- * IsEmpty() will return true after this call.
- */
- void Empty();
-
- template<typename S> bool operator==(const PersistentBase<S> &that);
-
- template<typename S> bool operator==(const v8::Local<S> &that);
-
- template<typename S> bool operator!=(const PersistentBase<S> &that);
-
- template<typename S> bool operator!=(const v8::Local<S> &that);
-
- /**
- * Install a finalization callback on this object.
- * NOTE: There is no guarantee as to *when* or even *if* the callback is
- * invoked. The invocation is performed solely on a best effort basis.
- * As always, GC-based finalization should *not* be relied upon for any
- * critical form of resource management! At the moment you can either
- * specify a parameter for the callback or the location of two internal
- * fields in the dying object.
- */
- template<typename P>
- void SetWeak(P *parameter,
- typename WeakCallbackInfo<P>::Callback callback,
- WeakCallbackType type);
-
- void ClearWeak();
-
- /**
- * Marks the reference to this object independent. Garbage collector is free
- * to ignore any object groups containing this object. Weak callback for an
- * independent handle should not assume that it will be preceded by a global
- * GC prologue callback or followed by a global GC epilogue callback.
- */
- void MarkIndependent() const;
-
- bool IsIndependent() const;
-
- /** Checks if the handle holds the only reference to an object. */
- bool IsNearDeath() const;
-
- /** Returns true if the handle's reference is weak. */
- bool IsWeak() const
-};
-```
-
-See the V8 documentation for [`PersistentBase`](https://v8docs.nodesource.com/node-8.16/d4/dca/classv8_1_1_persistent_base.html) for further information.
-
-**Tip:** To get a `v8::Local` reference to the original object back from a `PersistentBase` or `Persistent` object:
-
-```c++
-v8::Local<v8::Object> object = Nan::New(persistent);
-```
-
-<a name="api_nan_non_copyable_persistent_traits"></a>
-### Nan::NonCopyablePersistentTraits & v8::NonCopyablePersistentTraits
-
-Default traits for `Nan::Persistent`. This class does not allow use of the a copy constructor or assignment operator. At present `kResetInDestructor` is not set, but that will change in a future version.
-
-Definition:
-
-_(note: this is implemented as `Nan::NonCopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
-
-```c++
-template<typename T> class NonCopyablePersistentTraits {
- public:
- typedef Persistent<T, NonCopyablePersistentTraits<T> > NonCopyablePersistent;
-
- static const bool kResetInDestructor = false;
-
- template<typename S, typename M>
- static void Copy(const Persistent<S, M> &source,
- NonCopyablePersistent *dest);
-
- template<typename O> static void Uncompilable();
-};
-```
-
-See the V8 documentation for [`NonCopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/de/d73/classv8_1_1_non_copyable_persistent_traits.html) for further information.
-
-<a name="api_nan_copyable_persistent_traits"></a>
-### Nan::CopyablePersistentTraits & v8::CopyablePersistentTraits
-
-A helper class of traits to allow copying and assignment of `Persistent`. This will clone the contents of storage cell, but not any of the flags, etc..
-
-Definition:
-
-_(note: this is implemented as `Nan::CopyablePersistentTraits` for older versions of V8 and the native `v8::NonCopyablePersistentTraits` is used for newer versions of V8)_
-
-```c++
-template<typename T>
-class CopyablePersistentTraits {
- public:
- typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
-
- static const bool kResetInDestructor = true;
-
- template<typename S, typename M>
- static void Copy(const Persistent<S, M> &source,
- CopyablePersistent *dest);
-};
-```
-
-See the V8 documentation for [`CopyablePersistentTraits`](https://v8docs.nodesource.com/node-8.16/da/d5c/structv8_1_1_copyable_persistent_traits.html) for further information.
-
-<a name="api_nan_persistent"></a>
-### Nan::Persistent
-
-A type of `PersistentBase` which allows copy and assignment. Copy, assignment and destructor behavior is controlled by the traits class `M`.
-
-Definition:
-
-```c++
-template<typename T, typename M = NonCopyablePersistentTraits<T> >
-class Persistent;
-
-template<typename T, typename M> class Persistent : public PersistentBase<T> {
- public:
- /**
- * A Persistent with no storage cell.
- */
- Persistent();
-
- /**
- * Construct a Persistent from a v8::Local. When the v8::Local is non-empty, a
- * new storage cell is created pointing to the same object, and no flags are
- * set.
- */
- template<typename S> Persistent(v8::Local<S> that);
-
- /**
- * Construct a Persistent from a Persistent. When the Persistent is non-empty,
- * a new storage cell is created pointing to the same object, and no flags are
- * set.
- */
- Persistent(const Persistent &that);
-
- /**
- * The copy constructors and assignment operator create a Persistent exactly
- * as the Persistent constructor, but the Copy function from the traits class
- * is called, allowing the setting of flags based on the copied Persistent.
- */
- Persistent &operator=(const Persistent &that);
-
- template <typename S, typename M2>
- Persistent &operator=(const Persistent<S, M2> &that);
-
- /**
- * The destructor will dispose the Persistent based on the kResetInDestructor
- * flags in the traits class. Since not calling dispose can result in a
- * memory leak, it is recommended to always set this flag.
- */
- ~Persistent();
-};
-```
-
-See the V8 documentation for [`Persistent`](https://v8docs.nodesource.com/node-8.16/d2/d78/classv8_1_1_persistent.html) for further information.
-
-<a name="api_nan_global"></a>
-### Nan::Global
-
-A type of `PersistentBase` which has move semantics.
-
-```c++
-template<typename T> class Global : public PersistentBase<T> {
- public:
- /**
- * A Global with no storage cell.
- */
- Global();
-
- /**
- * Construct a Global from a v8::Local. When the v8::Local is non-empty, a new
- * storage cell is created pointing to the same object, and no flags are set.
- */
- template<typename S> Global(v8::Local<S> that);
- /**
- * Construct a Global from a PersistentBase. When the Persistent is non-empty,
- * a new storage cell is created pointing to the same object, and no flags are
- * set.
- */
- template<typename S> Global(const PersistentBase<S> &that);
-
- /**
- * Pass allows returning globals from functions, etc.
- */
- Global Pass();
-};
-```
-
-See the V8 documentation for [`Global`](https://v8docs.nodesource.com/node-8.16/d5/d40/classv8_1_1_global.html) for further information.
-
-<a name="api_nan_weak_callback_info"></a>
-### Nan::WeakCallbackInfo
-
-`Nan::WeakCallbackInfo` is used as an argument when setting a persistent reference as weak. You may need to free any external resources attached to the object. It is a mirror of `v8:WeakCallbackInfo` as found in newer versions of V8.
-
-Definition:
-
-```c++
-template<typename T> class WeakCallbackInfo {
- public:
- typedef void (*Callback)(const WeakCallbackInfo<T>& data);
-
- v8::Isolate *GetIsolate() const;
-
- /**
- * Get the parameter that was associated with the weak handle.
- */
- T *GetParameter() const;
-
- /**
- * Get pointer from internal field, index can be 0 or 1.
- */
- void *GetInternalField(int index) const;
-};
-```
-
-Example usage:
-
-```c++
-void weakCallback(const WeakCallbackInfo<int> &data) {
- int *parameter = data.GetParameter();
- delete parameter;
-}
-
-Persistent<v8::Object> obj;
-int *data = new int(0);
-obj.SetWeak(data, callback, WeakCallbackType::kParameter);
-```
-
-See the V8 documentation for [`WeakCallbackInfo`](https://v8docs.nodesource.com/node-8.16/d8/d06/classv8_1_1_weak_callback_info.html) for further information.
-
-<a name="api_nan_weak_callback_type"></a>
-### Nan::WeakCallbackType
-
-Represents the type of a weak callback.
-A weak callback of type `kParameter` makes the supplied parameter to `Nan::PersistentBase::SetWeak` available through `WeakCallbackInfo::GetParameter`.
-A weak callback of type `kInternalFields` uses up to two internal fields at indices 0 and 1 on the `Nan::PersistentBase<v8::Object>` being made weak.
-Note that only `v8::Object`s and derivatives can have internal fields.
-
-Definition:
-
-```c++
-enum class WeakCallbackType { kParameter, kInternalFields };
-```
diff --git a/node_modules/nan/doc/scopes.md b/node_modules/nan/doc/scopes.md
deleted file mode 100644
index 84000ee..0000000
--- a/node_modules/nan/doc/scopes.md
+++ /dev/null
@@ -1,73 +0,0 @@
-## Scopes
-
-A _local handle_ is a pointer to an object. All V8 objects are accessed using handles, they are necessary because of the way the V8 garbage collector works.
-
-A handle scope can be thought of as a container for any number of handles. When you've finished with your handles, instead of deleting each one individually you can simply delete their scope.
-
-The creation of `HandleScope` objects is different across the supported versions of V8. Therefore, NAN provides its own implementations that can be used safely across these.
-
- - <a href="#api_nan_handle_scope"><b><code>Nan::HandleScope</code></b></a>
- - <a href="#api_nan_escapable_handle_scope"><b><code>Nan::EscapableHandleScope</code></b></a>
-
-Also see the V8 Embedders Guide section on [Handles and Garbage Collection](https://github.com/v8/v8/wiki/Embedder%27s%20Guide#handles-and-garbage-collection).
-
-<a name="api_nan_handle_scope"></a>
-### Nan::HandleScope
-
-A simple wrapper around [`v8::HandleScope`](https://v8docs.nodesource.com/node-8.16/d3/d95/classv8_1_1_handle_scope.html).
-
-Definition:
-
-```c++
-class Nan::HandleScope {
- public:
- Nan::HandleScope();
- static int NumberOfHandles();
-};
-```
-
-Allocate a new `Nan::HandleScope` whenever you are creating new V8 JavaScript objects. Note that an implicit `HandleScope` is created for you on JavaScript-accessible methods so you do not need to insert one yourself.
-
-Example:
-
-```c++
-// new object is created, it needs a new scope:
-void Pointless() {
- Nan::HandleScope scope;
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
-}
-
-// JavaScript-accessible method already has a HandleScope
-NAN_METHOD(Pointless2) {
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
-}
-```
-
-<a name="api_nan_escapable_handle_scope"></a>
-### Nan::EscapableHandleScope
-
-Similar to [`Nan::HandleScope`](#api_nan_handle_scope) but should be used in cases where a function needs to return a V8 JavaScript type that has been created within it.
-
-Definition:
-
-```c++
-class Nan::EscapableHandleScope {
- public:
- Nan::EscapableHandleScope();
- static int NumberOfHandles();
- template<typename T> v8::Local<T> Escape(v8::Local<T> value);
-}
-```
-
-Use `Escape(value)` to return the object.
-
-Example:
-
-```c++
-v8::Local<v8::Object> EmptyObj() {
- Nan::EscapableHandleScope scope;
- v8::Local<v8::Object> obj = Nan::New<v8::Object>();
- return scope.Escape(obj);
-}
-```
-
diff --git a/node_modules/nan/doc/script.md b/node_modules/nan/doc/script.md
deleted file mode 100644
index 213320a..0000000
--- a/node_modules/nan/doc/script.md
+++ /dev/null
@@ -1,38 +0,0 @@
-## Script
-
-NAN provides a `v8::Script` helpers as the API has changed over the supported versions of V8.
-
- - <a href="#api_nan_compile_script"><b><code>Nan::CompileScript()</code></b></a>
- - <a href="#api_nan_run_script"><b><code>Nan::RunScript()</code></b></a>
-
-
-<a name="api_nan_compile_script"></a>
-### Nan::CompileScript()
-
-A wrapper around [`v8::ScriptCompiler::Compile()`](https://v8docs.nodesource.com/node-8.16/da/da5/classv8_1_1_script_compiler.html#a93f5072a0db55d881b969e9fc98e564b).
-
-Note that `Nan::BoundScript` is an alias for `v8::Script`.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(
- v8::Local<v8::String> s,
- const v8::ScriptOrigin& origin);
-Nan::MaybeLocal<Nan::BoundScript> Nan::CompileScript(v8::Local<v8::String> s);
-```
-
-
-<a name="api_nan_run_script"></a>
-### Nan::RunScript()
-
-Calls `script->Run()` or `script->BindToCurrentContext()->Run(Nan::GetCurrentContext())`.
-
-Note that `Nan::BoundScript` is an alias for `v8::Script` and `Nan::UnboundScript` is an alias for `v8::UnboundScript` where available and `v8::Script` on older versions of V8.
-
-Signature:
-
-```c++
-Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::UnboundScript> script)
-Nan::MaybeLocal<v8::Value> Nan::RunScript(v8::Local<Nan::BoundScript> script)
-```
diff --git a/node_modules/nan/doc/string_bytes.md b/node_modules/nan/doc/string_bytes.md
deleted file mode 100644
index 7c1bd32..0000000
--- a/node_modules/nan/doc/string_bytes.md
+++ /dev/null
@@ -1,62 +0,0 @@
-## Strings & Bytes
-
-Miscellaneous string & byte encoding and decoding functionality provided for compatibility across supported versions of V8 and Node. Implemented by NAN to ensure that all encoding types are supported, even for older versions of Node where they are missing.
-
- - <a href="#api_nan_encoding"><b><code>Nan::Encoding</code></b></a>
- - <a href="#api_nan_encode"><b><code>Nan::Encode()</code></b></a>
- - <a href="#api_nan_decode_bytes"><b><code>Nan::DecodeBytes()</code></b></a>
- - <a href="#api_nan_decode_write"><b><code>Nan::DecodeWrite()</code></b></a>
-
-
-<a name="api_nan_encoding"></a>
-### Nan::Encoding
-
-An enum representing the supported encoding types. A copy of `node::encoding` that is consistent across versions of Node.
-
-Definition:
-
-```c++
-enum Nan::Encoding { ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER }
-```
-
-
-<a name="api_nan_encode"></a>
-### Nan::Encode()
-
-A wrapper around `node::Encode()` that provides a consistent implementation across supported versions of Node.
-
-Signature:
-
-```c++
-v8::Local<v8::Value> Nan::Encode(const void *buf,
- size_t len,
- enum Nan::Encoding encoding = BINARY);
-```
-
-
-<a name="api_nan_decode_bytes"></a>
-### Nan::DecodeBytes()
-
-A wrapper around `node::DecodeBytes()` that provides a consistent implementation across supported versions of Node.
-
-Signature:
-
-```c++
-ssize_t Nan::DecodeBytes(v8::Local<v8::Value> val,
- enum Nan::Encoding encoding = BINARY);
-```
-
-
-<a name="api_nan_decode_write"></a>
-### Nan::DecodeWrite()
-
-A wrapper around `node::DecodeWrite()` that provides a consistent implementation across supported versions of Node.
-
-Signature:
-
-```c++
-ssize_t Nan::DecodeWrite(char *buf,
- size_t len,
- v8::Local<v8::Value> val,
- enum Nan::Encoding encoding = BINARY);
-```
diff --git a/node_modules/nan/doc/v8_internals.md b/node_modules/nan/doc/v8_internals.md
deleted file mode 100644
index 08dd6d0..0000000
--- a/node_modules/nan/doc/v8_internals.md
+++ /dev/null
@@ -1,199 +0,0 @@
-## V8 internals
-
-The hooks to access V8 internals—including GC and statistics—are different across the supported versions of V8, therefore NAN provides its own hooks that call the appropriate V8 methods.
-
- - <a href="#api_nan_gc_callback"><b><code>NAN_GC_CALLBACK()</code></b></a>
- - <a href="#api_nan_add_gc_epilogue_callback"><b><code>Nan::AddGCEpilogueCallback()</code></b></a>
- - <a href="#api_nan_remove_gc_epilogue_callback"><b><code>Nan::RemoveGCEpilogueCallback()</code></b></a>
- - <a href="#api_nan_add_gc_prologue_callback"><b><code>Nan::AddGCPrologueCallback()</code></b></a>
- - <a href="#api_nan_remove_gc_prologue_callback"><b><code>Nan::RemoveGCPrologueCallback()</code></b></a>
- - <a href="#api_nan_get_heap_statistics"><b><code>Nan::GetHeapStatistics()</code></b></a>
- - <a href="#api_nan_set_counter_function"><b><code>Nan::SetCounterFunction()</code></b></a>
- - <a href="#api_nan_set_create_histogram_function"><b><code>Nan::SetCreateHistogramFunction()</code></b></a>
- - <a href="#api_nan_set_add_histogram_sample_function"><b><code>Nan::SetAddHistogramSampleFunction()</code></b></a>
- - <a href="#api_nan_idle_notification"><b><code>Nan::IdleNotification()</code></b></a>
- - <a href="#api_nan_low_memory_notification"><b><code>Nan::LowMemoryNotification()</code></b></a>
- - <a href="#api_nan_context_disposed_notification"><b><code>Nan::ContextDisposedNotification()</code></b></a>
- - <a href="#api_nan_get_internal_field_pointer"><b><code>Nan::GetInternalFieldPointer()</code></b></a>
- - <a href="#api_nan_set_internal_field_pointer"><b><code>Nan::SetInternalFieldPointer()</code></b></a>
- - <a href="#api_nan_adjust_external_memory"><b><code>Nan::AdjustExternalMemory()</code></b></a>
-
-
-<a name="api_nan_gc_callback"></a>
-### NAN_GC_CALLBACK(callbackname)
-
-Use `NAN_GC_CALLBACK` to declare your callbacks for `Nan::AddGCPrologueCallback()` and `Nan::AddGCEpilogueCallback()`. Your new method receives the arguments `v8::GCType type` and `v8::GCCallbackFlags flags`.
-
-```c++
-static Nan::Persistent<Function> callback;
-
-NAN_GC_CALLBACK(gcPrologueCallback) {
- v8::Local<Value> argv[] = { Nan::New("prologue").ToLocalChecked() };
- Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(callback), 1, argv);
-}
-
-NAN_METHOD(Hook) {
- callback.Reset(To<Function>(args[0]).ToLocalChecked());
- Nan::AddGCPrologueCallback(gcPrologueCallback);
- info.GetReturnValue().Set(info.Holder());
-}
-```
-
-<a name="api_nan_add_gc_epilogue_callback"></a>
-### Nan::AddGCEpilogueCallback()
-
-Signature:
-
-```c++
-void Nan::AddGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback, v8::GCType gc_type_filter = v8::kGCTypeAll)
-```
-
-Calls V8's [`AddGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a580f976e4290cead62c2fc4dd396be3e).
-
-<a name="api_nan_remove_gc_epilogue_callback"></a>
-### Nan::RemoveGCEpilogueCallback()
-
-Signature:
-
-```c++
-void Nan::RemoveGCEpilogueCallback(v8::Isolate::GCEpilogueCallback callback)
-```
-
-Calls V8's [`RemoveGCEpilogueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#adca9294555a3908e9f23c7bb0f0f284c).
-
-<a name="api_nan_add_gc_prologue_callback"></a>
-### Nan::AddGCPrologueCallback()
-
-Signature:
-
-```c++
-void Nan::AddGCPrologueCallback(v8::Isolate::GCPrologueCallback, v8::GCType gc_type_filter callback)
-```
-
-Calls V8's [`AddGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a6dbef303603ebdb03da6998794ea05b8).
-
-<a name="api_nan_remove_gc_prologue_callback"></a>
-### Nan::RemoveGCPrologueCallback()
-
-Signature:
-
-```c++
-void Nan::RemoveGCPrologueCallback(v8::Isolate::GCPrologueCallback callback)
-```
-
-Calls V8's [`RemoveGCPrologueCallback()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5f72c7cda21415ce062bbe5c58abe09e).
-
-<a name="api_nan_get_heap_statistics"></a>
-### Nan::GetHeapStatistics()
-
-Signature:
-
-```c++
-void Nan::GetHeapStatistics(v8::HeapStatistics *heap_statistics)
-```
-
-Calls V8's [`GetHeapStatistics()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a5593ac74687b713095c38987e5950b34).
-
-<a name="api_nan_set_counter_function"></a>
-### Nan::SetCounterFunction()
-
-Signature:
-
-```c++
-void Nan::SetCounterFunction(v8::CounterLookupCallback cb)
-```
-
-Calls V8's [`SetCounterFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a045d7754e62fa0ec72ae6c259b29af94).
-
-<a name="api_nan_set_create_histogram_function"></a>
-### Nan::SetCreateHistogramFunction()
-
-Signature:
-
-```c++
-void Nan::SetCreateHistogramFunction(v8::CreateHistogramCallback cb)
-```
-
-Calls V8's [`SetCreateHistogramFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a542d67e85089cb3f92aadf032f99e732).
-
-<a name="api_nan_set_add_histogram_sample_function"></a>
-### Nan::SetAddHistogramSampleFunction()
-
-Signature:
-
-```c++
-void Nan::SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb)
-```
-
-Calls V8's [`SetAddHistogramSampleFunction()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#aeb420b690bc2c216882d6fdd00ddd3ea).
-
-<a name="api_nan_idle_notification"></a>
-### Nan::IdleNotification()
-
-Signature:
-
-```c++
-bool Nan::IdleNotification(int idle_time_in_ms)
-```
-
-Calls V8's [`IdleNotification()` or `IdleNotificationDeadline()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad6a2a02657f5425ad460060652a5a118) depending on V8 version.
-
-<a name="api_nan_low_memory_notification"></a>
-### Nan::LowMemoryNotification()
-
-Signature:
-
-```c++
-void Nan::LowMemoryNotification()
-```
-
-Calls V8's [`LowMemoryNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a24647f61d6b41f69668094bdcd6ea91f).
-
-<a name="api_nan_context_disposed_notification"></a>
-### Nan::ContextDisposedNotification()
-
-Signature:
-
-```c++
-void Nan::ContextDisposedNotification()
-```
-
-Calls V8's [`ContextDisposedNotification()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ad7f5dc559866343fe6cd8db1f134d48b).
-
-<a name="api_nan_get_internal_field_pointer"></a>
-### Nan::GetInternalFieldPointer()
-
-Gets a pointer to the internal field with at `index` from a V8 `Object` handle.
-
-Signature:
-
-```c++
-void* Nan::GetInternalFieldPointer(v8::Local<v8::Object> object, int index)
-```
-
-Calls the Object's [`GetAlignedPointerFromInternalField()` or `GetPointerFromInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#a580ea84afb26c005d6762eeb9e3c308f) depending on the version of V8.
-
-<a name="api_nan_set_internal_field_pointer"></a>
-### Nan::SetInternalFieldPointer()
-
-Sets the value of the internal field at `index` on a V8 `Object` handle.
-
-Signature:
-
-```c++
-void Nan::SetInternalFieldPointer(v8::Local<v8::Object> object, int index, void* value)
-```
-
-Calls the Object's [`SetAlignedPointerInInternalField()` or `SetPointerInInternalField()`](https://v8docs.nodesource.com/node-8.16/db/d85/classv8_1_1_object.html#ab3c57184263cf29963ef0017bec82281) depending on the version of V8.
-
-<a name="api_nan_adjust_external_memory"></a>
-### Nan::AdjustExternalMemory()
-
-Signature:
-
-```c++
-int Nan::AdjustExternalMemory(int bytesChange)
-```
-
-Calls V8's [`AdjustAmountOfExternalAllocatedMemory()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#ae1a59cac60409d3922582c4af675473e).
-
diff --git a/node_modules/nan/doc/v8_misc.md b/node_modules/nan/doc/v8_misc.md
deleted file mode 100644
index 1bd46d3..0000000
--- a/node_modules/nan/doc/v8_misc.md
+++ /dev/null
@@ -1,85 +0,0 @@
-## Miscellaneous V8 Helpers
-
- - <a href="#api_nan_utf8_string"><b><code>Nan::Utf8String</code></b></a>
- - <a href="#api_nan_get_current_context"><b><code>Nan::GetCurrentContext()</code></b></a>
- - <a href="#api_nan_set_isolate_data"><b><code>Nan::SetIsolateData()</code></b></a>
- - <a href="#api_nan_get_isolate_data"><b><code>Nan::GetIsolateData()</code></b></a>
- - <a href="#api_nan_typedarray_contents"><b><code>Nan::TypedArrayContents</code></b></a>
-
-
-<a name="api_nan_utf8_string"></a>
-### Nan::Utf8String
-
-Converts an object to a UTF-8-encoded character array. If conversion to a string fails (e.g. due to an exception in the toString() method of the object) then the length() method returns 0 and the * operator returns NULL. The underlying memory used for this object is managed by the object.
-
-An implementation of [`v8::String::Utf8Value`](https://v8docs.nodesource.com/node-8.16/d4/d1b/classv8_1_1_string_1_1_utf8_value.html) that is consistent across all supported versions of V8.
-
-Definition:
-
-```c++
-class Nan::Utf8String {
- public:
- Nan::Utf8String(v8::Local<v8::Value> from);
-
- int length() const;
-
- char* operator*();
- const char* operator*() const;
-};
-```
-
-<a name="api_nan_get_current_context"></a>
-### Nan::GetCurrentContext()
-
-A call to [`v8::Isolate::GetCurrent()->GetCurrentContext()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a81c7a1ed7001ae2a65e89107f75fd053) that works across all supported versions of V8.
-
-Signature:
-
-```c++
-v8::Local<v8::Context> Nan::GetCurrentContext()
-```
-
-<a name="api_nan_set_isolate_data"></a>
-### Nan::SetIsolateData()
-
-A helper to provide a consistent API to [`v8::Isolate#SetData()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#a7acadfe7965997e9c386a05f098fbe36).
-
-Signature:
-
-```c++
-void Nan::SetIsolateData(v8::Isolate *isolate, T *data)
-```
-
-
-<a name="api_nan_get_isolate_data"></a>
-### Nan::GetIsolateData()
-
-A helper to provide a consistent API to [`v8::Isolate#GetData()`](https://v8docs.nodesource.com/node-8.16/d5/dda/classv8_1_1_isolate.html#aabd223436bc1100a787dadaa024c6257).
-
-Signature:
-
-```c++
-T *Nan::GetIsolateData(v8::Isolate *isolate)
-```
-
-<a name="api_nan_typedarray_contents"></a>
-### Nan::TypedArrayContents<T>
-
-A helper class for accessing the contents of an ArrayBufferView (aka a typedarray) from C++. If the input array is not a valid typedarray, then the data pointer of TypedArrayContents will default to `NULL` and the length will be 0. If the data pointer is not compatible with the alignment requirements of type, an assertion error will fail.
-
-Note that you must store a reference to the `array` object while you are accessing its contents.
-
-Definition:
-
-```c++
-template<typename T>
-class Nan::TypedArrayContents {
- public:
- TypedArrayContents(v8::Local<Value> array);
-
- size_t length() const;
-
- T* const operator*();
- const T* const operator*() const;
-};
-```
diff --git a/node_modules/nan/include_dirs.js b/node_modules/nan/include_dirs.js
deleted file mode 100644
index 4f1dfb4..0000000
--- a/node_modules/nan/include_dirs.js
+++ /dev/null
@@ -1 +0,0 @@
-console.log(require('path').relative('.', __dirname));
diff --git a/node_modules/nan/nan.h b/node_modules/nan/nan.h
deleted file mode 100644
index 648e6e2..0000000
--- a/node_modules/nan/nan.h
+++ /dev/null
@@ -1,2891 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors:
- * - Rod Vagg <https://github.com/rvagg>
- * - Benjamin Byholm <https://github.com/kkoopa>
- * - Trevor Norris <https://github.com/trevnorris>
- * - Nathan Rajlich <https://github.com/TooTallNate>
- * - Brett Lawson <https://github.com/brett19>
- * - Ben Noordhuis <https://github.com/bnoordhuis>
- * - David Siegel <https://github.com/agnat>
- * - Michael Ira Krufky <https://github.com/mkrufky>
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- *
- * Version 2.14.1: current Node 14.0.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1
- *
- * See https://github.com/nodejs/nan for the latest update to this file
- **********************************************************************************/
-
-#ifndef NAN_H_
-#define NAN_H_
-
-#include <node_version.h>
-
-#define NODE_0_10_MODULE_VERSION 11
-#define NODE_0_12_MODULE_VERSION 14
-#define ATOM_0_21_MODULE_VERSION 41
-#define IOJS_1_0_MODULE_VERSION 42
-#define IOJS_1_1_MODULE_VERSION 43
-#define IOJS_2_0_MODULE_VERSION 44
-#define IOJS_3_0_MODULE_VERSION 45
-#define NODE_4_0_MODULE_VERSION 46
-#define NODE_5_0_MODULE_VERSION 47
-#define NODE_6_0_MODULE_VERSION 48
-#define NODE_7_0_MODULE_VERSION 51
-#define NODE_8_0_MODULE_VERSION 57
-#define NODE_9_0_MODULE_VERSION 59
-#define NODE_10_0_MODULE_VERSION 64
-#define NODE_11_0_MODULE_VERSION 67
-#define NODE_12_0_MODULE_VERSION 72
-#define NODE_13_0_MODULE_VERSION 79
-#define NODE_14_0_MODULE_VERSION 83
-
-#ifdef _MSC_VER
-# define NAN_HAS_CPLUSPLUS_11 (_MSC_VER >= 1800)
-#else
-# define NAN_HAS_CPLUSPLUS_11 (__cplusplus >= 201103L)
-#endif
-
-#if NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION && !NAN_HAS_CPLUSPLUS_11
-# error This version of node/NAN/v8 requires a C++11 compiler
-#endif
-
-#include <uv.h>
-#include <node.h>
-#include <node_buffer.h>
-#include <node_object_wrap.h>
-#include <algorithm>
-#include <cstring>
-#include <climits>
-#include <cstdlib>
-#include <utility>
-#if defined(_MSC_VER)
-# pragma warning( push )
-# pragma warning( disable : 4530 )
-# include <queue>
-# include <string>
-# include <vector>
-# pragma warning( pop )
-#else
-# include <queue>
-# include <string>
-# include <vector>
-#endif
-
-// uv helpers
-#ifdef UV_VERSION_MAJOR
-# ifndef UV_VERSION_PATCH
-# define UV_VERSION_PATCH 0
-# endif
-# define NAUV_UVVERSION ((UV_VERSION_MAJOR << 16) | \
- (UV_VERSION_MINOR << 8) | \
- (UV_VERSION_PATCH))
-#else
-# define NAUV_UVVERSION 0x000b00
-#endif
-
-#if NAUV_UVVERSION < 0x000b0b
-# ifdef WIN32
-# include <windows.h>
-# else
-# include <pthread.h>
-# endif
-#endif
-
-namespace Nan {
-
-#define NAN_CONCAT(a, b) NAN_CONCAT_HELPER(a, b)
-#define NAN_CONCAT_HELPER(a, b) a##b
-
-#define NAN_INLINE inline // TODO(bnoordhuis) Remove in v3.0.0.
-
-#if defined(__GNUC__) && \
- !(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
-# define NAN_DEPRECATED __attribute__((deprecated))
-#elif defined(_MSC_VER) && \
- !(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
-# define NAN_DEPRECATED __declspec(deprecated)
-#else
-# define NAN_DEPRECATED
-#endif
-
-#if NAN_HAS_CPLUSPLUS_11
-# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&) = delete;
-# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&) = delete;
-# define NAN_DISALLOW_MOVE(CLASS) \
- CLASS(CLASS&&) = delete; /* NOLINT(build/c++11) */ \
- void operator=(CLASS&&) = delete;
-#else
-# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&);
-# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&);
-# define NAN_DISALLOW_MOVE(CLASS)
-#endif
-
-#define NAN_DISALLOW_ASSIGN_COPY(CLASS) \
- NAN_DISALLOW_ASSIGN(CLASS) \
- NAN_DISALLOW_COPY(CLASS)
-
-#define NAN_DISALLOW_ASSIGN_MOVE(CLASS) \
- NAN_DISALLOW_ASSIGN(CLASS) \
- NAN_DISALLOW_MOVE(CLASS)
-
-#define NAN_DISALLOW_COPY_MOVE(CLASS) \
- NAN_DISALLOW_COPY(CLASS) \
- NAN_DISALLOW_MOVE(CLASS)
-
-#define NAN_DISALLOW_ASSIGN_COPY_MOVE(CLASS) \
- NAN_DISALLOW_ASSIGN(CLASS) \
- NAN_DISALLOW_COPY(CLASS) \
- NAN_DISALLOW_MOVE(CLASS)
-
-#define TYPE_CHECK(T, S) \
- while (false) { \
- *(static_cast<T *volatile *>(0)) = static_cast<S*>(0); \
- }
-
-//=== RegistrationFunction =====================================================
-
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- typedef v8::Handle<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
-#else
- typedef v8::Local<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
-#endif
-
-#define NAN_MODULE_INIT(name) \
- void name(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target)
-
-#if NODE_MAJOR_VERSION >= 10 || \
- NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3
-#define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
- extern "C" NODE_MODULE_EXPORT void \
- NAN_CONCAT(node_register_module_v, NODE_MODULE_VERSION)( \
- v8::Local<v8::Object> exports, v8::Local<v8::Value> module, \
- v8::Local<v8::Context> context) \
- { \
- registration(exports); \
- }
-#else
-#define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
- NODE_MODULE(module_name, registration)
-#endif
-
-//=== CallbackInfo =============================================================
-
-#include "nan_callbacks.h" // NOLINT(build/include)
-
-//==============================================================================
-
-#if (NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION)
-typedef v8::Script UnboundScript;
-typedef v8::Script BoundScript;
-#else
-typedef v8::UnboundScript UnboundScript;
-typedef v8::Script BoundScript;
-#endif
-
-#if (NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION)
-typedef v8::String::ExternalAsciiStringResource
- ExternalOneByteStringResource;
-#else
-typedef v8::String::ExternalOneByteStringResource
- ExternalOneByteStringResource;
-#endif
-
-#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
-template<typename T>
-class NonCopyablePersistentTraits :
- public v8::NonCopyablePersistentTraits<T> {};
-template<typename T>
-class CopyablePersistentTraits :
- public v8::CopyablePersistentTraits<T> {};
-
-template<typename T>
-class PersistentBase :
- public v8::PersistentBase<T> {};
-
-template<typename T, typename M = v8::NonCopyablePersistentTraits<T> >
-class Persistent;
-#else
-template<typename T> class NonCopyablePersistentTraits;
-template<typename T> class PersistentBase;
-template<typename T, typename P> class WeakCallbackData;
-template<typename T, typename M = NonCopyablePersistentTraits<T> >
-class Persistent;
-#endif // NODE_MODULE_VERSION
-
-template<typename T>
-class Maybe {
- public:
- inline bool IsNothing() const { return !has_value_; }
- inline bool IsJust() const { return has_value_; }
-
- inline T ToChecked() const { return FromJust(); }
- inline void Check() const { FromJust(); }
-
- inline bool To(T* out) const {
- if (IsJust()) *out = value_;
- return IsJust();
- }
-
- inline T FromJust() const {
-#if defined(V8_ENABLE_CHECKS)
- assert(IsJust() && "FromJust is Nothing");
-#endif // V8_ENABLE_CHECKS
- return value_;
- }
-
- inline T FromMaybe(const T& default_value) const {
- return has_value_ ? value_ : default_value;
- }
-
- inline bool operator==(const Maybe &other) const {
- return (IsJust() == other.IsJust()) &&
- (!IsJust() || FromJust() == other.FromJust());
- }
-
- inline bool operator!=(const Maybe &other) const {
- return !operator==(other);
- }
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
- // Allow implicit conversions from v8::Maybe<T> to Nan::Maybe<T>.
- Maybe(const v8::Maybe<T>& that) // NOLINT(runtime/explicit)
- : has_value_(that.IsJust())
- , value_(that.FromMaybe(T())) {}
-#endif
-
- private:
- Maybe() : has_value_(false) {}
- explicit Maybe(const T& t) : has_value_(true), value_(t) {}
- bool has_value_;
- T value_;
-
- template<typename U>
- friend Maybe<U> Nothing();
- template<typename U>
- friend Maybe<U> Just(const U& u);
-};
-
-template<typename T>
-inline Maybe<T> Nothing() {
- return Maybe<T>();
-}
-
-template<typename T>
-inline Maybe<T> Just(const T& t) {
- return Maybe<T>(t);
-}
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-# include "nan_maybe_43_inl.h" // NOLINT(build/include)
-#else
-# include "nan_maybe_pre_43_inl.h" // NOLINT(build/include)
-#endif
-
-#include "nan_converters.h" // NOLINT(build/include)
-#include "nan_new.h" // NOLINT(build/include)
-
-#if NAUV_UVVERSION < 0x000b17
-#define NAUV_WORK_CB(func) \
- void func(uv_async_t *async, int)
-#else
-#define NAUV_WORK_CB(func) \
- void func(uv_async_t *async)
-#endif
-
-#if NAUV_UVVERSION >= 0x000b0b
-
-typedef uv_key_t nauv_key_t;
-
-inline int nauv_key_create(nauv_key_t *key) {
- return uv_key_create(key);
-}
-
-inline void nauv_key_delete(nauv_key_t *key) {
- uv_key_delete(key);
-}
-
-inline void* nauv_key_get(nauv_key_t *key) {
- return uv_key_get(key);
-}
-
-inline void nauv_key_set(nauv_key_t *key, void *value) {
- uv_key_set(key, value);
-}
-
-#else
-
-/* Implement thread local storage for older versions of libuv.
- * This is essentially a backport of libuv commit 5d2434bf
- * written by Ben Noordhuis, adjusted for names and inline.
- */
-
-#ifndef WIN32
-
-typedef pthread_key_t nauv_key_t;
-
-inline int nauv_key_create(nauv_key_t* key) {
- return -pthread_key_create(key, NULL);
-}
-
-inline void nauv_key_delete(nauv_key_t* key) {
- if (pthread_key_delete(*key))
- abort();
-}
-
-inline void* nauv_key_get(nauv_key_t* key) {
- return pthread_getspecific(*key);
-}
-
-inline void nauv_key_set(nauv_key_t* key, void* value) {
- if (pthread_setspecific(*key, value))
- abort();
-}
-
-#else
-
-typedef struct {
- DWORD tls_index;
-} nauv_key_t;
-
-inline int nauv_key_create(nauv_key_t* key) {
- key->tls_index = TlsAlloc();
- if (key->tls_index == TLS_OUT_OF_INDEXES)
- return UV_ENOMEM;
- return 0;
-}
-
-inline void nauv_key_delete(nauv_key_t* key) {
- if (TlsFree(key->tls_index) == FALSE)
- abort();
- key->tls_index = TLS_OUT_OF_INDEXES;
-}
-
-inline void* nauv_key_get(nauv_key_t* key) {
- void* value = TlsGetValue(key->tls_index);
- if (value == NULL)
- if (GetLastError() != ERROR_SUCCESS)
- abort();
- return value;
-}
-
-inline void nauv_key_set(nauv_key_t* key, void* value) {
- if (TlsSetValue(key->tls_index, value) == FALSE)
- abort();
-}
-
-#endif
-#endif
-
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
-template<typename T>
-v8::Local<T> New(v8::Handle<T>);
-#endif
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
- typedef v8::WeakCallbackType WeakCallbackType;
-#else
-struct WeakCallbackType {
- enum E {kParameter, kInternalFields};
- E type;
- WeakCallbackType(E other) : type(other) {} // NOLINT(runtime/explicit)
- inline bool operator==(E other) { return other == this->type; }
- inline bool operator!=(E other) { return !operator==(other); }
-};
-#endif
-
-template<typename P> class WeakCallbackInfo;
-
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-# include "nan_persistent_12_inl.h" // NOLINT(build/include)
-#else
-# include "nan_persistent_pre_12_inl.h" // NOLINT(build/include)
-#endif
-
-namespace imp {
- static const size_t kMaxLength = 0x3fffffff;
- // v8::String::REPLACE_INVALID_UTF8 was introduced
- // in node.js v0.10.29 and v0.8.27.
-#if NODE_MAJOR_VERSION > 0 || \
- NODE_MINOR_VERSION > 10 || \
- NODE_MINOR_VERSION == 10 && NODE_PATCH_VERSION >= 29 || \
- NODE_MINOR_VERSION == 8 && NODE_PATCH_VERSION >= 27
- static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
-#else
- static const unsigned kReplaceInvalidUtf8 = 0;
-#endif
-} // end of namespace imp
-
-//=== HandleScope ==============================================================
-
-class HandleScope {
- v8::HandleScope scope;
-
- public:
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- inline HandleScope() : scope(v8::Isolate::GetCurrent()) {}
- inline static int NumberOfHandles() {
- return v8::HandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
- }
-#else
- inline HandleScope() : scope() {}
- inline static int NumberOfHandles() {
- return v8::HandleScope::NumberOfHandles();
- }
-#endif
-
- private:
- // Make it hard to create heap-allocated or illegal handle scopes by
- // disallowing certain operations.
- HandleScope(const HandleScope &);
- void operator=(const HandleScope &);
- void *operator new(size_t size);
- void operator delete(void *, size_t) {
- abort();
- }
-};
-
-class EscapableHandleScope {
- public:
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- inline EscapableHandleScope() : scope(v8::Isolate::GetCurrent()) {}
-
- inline static int NumberOfHandles() {
- return v8::EscapableHandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
- }
-
- template<typename T>
- inline v8::Local<T> Escape(v8::Local<T> value) {
- return scope.Escape(value);
- }
-
- private:
- v8::EscapableHandleScope scope;
-#else
- inline EscapableHandleScope() : scope() {}
-
- inline static int NumberOfHandles() {
- return v8::HandleScope::NumberOfHandles();
- }
-
- template<typename T>
- inline v8::Local<T> Escape(v8::Local<T> value) {
- return scope.Close(value);
- }
-
- private:
- v8::HandleScope scope;
-#endif
-
- private:
- // Make it hard to create heap-allocated or illegal handle scopes by
- // disallowing certain operations.
- EscapableHandleScope(const EscapableHandleScope &);
- void operator=(const EscapableHandleScope &);
- void *operator new(size_t size);
- void operator delete(void *, size_t) {
- abort();
- }
-};
-
-//=== TryCatch =================================================================
-
-class TryCatch {
- v8::TryCatch try_catch_;
- friend void FatalException(const TryCatch&);
-
- public:
-#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
- TryCatch() : try_catch_(v8::Isolate::GetCurrent()) {}
-#endif
-
- inline bool HasCaught() const { return try_catch_.HasCaught(); }
-
- inline bool CanContinue() const { return try_catch_.CanContinue(); }
-
- inline v8::Local<v8::Value> ReThrow() {
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- return New(try_catch_.ReThrow());
-#else
- return try_catch_.ReThrow();
-#endif
- }
-
- inline v8::Local<v8::Value> Exception() const {
- return try_catch_.Exception();
- }
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
- inline v8::MaybeLocal<v8::Value> StackTrace() const {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(try_catch_.StackTrace(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Value>()));
- }
-#else
- inline MaybeLocal<v8::Value> StackTrace() const {
- return try_catch_.StackTrace();
- }
-#endif
-
- inline v8::Local<v8::Message> Message() const {
- return try_catch_.Message();
- }
-
- inline void Reset() { try_catch_.Reset(); }
-
- inline void SetVerbose(bool value) { try_catch_.SetVerbose(value); }
-
- inline void SetCaptureMessage(bool value) {
- try_catch_.SetCaptureMessage(value);
- }
-};
-
-v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
- v8::Local<v8::Function> func,
- int argc,
- v8::Local<v8::Value>* argv);
-v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
- v8::Local<v8::String> symbol,
- int argc,
- v8::Local<v8::Value>* argv);
-v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
- const char* method,
- int argc,
- v8::Local<v8::Value>* argv);
-
-// === AsyncResource ===========================================================
-
-class AsyncResource {
- public:
- AsyncResource(
- v8::Local<v8::String> name
- , v8::Local<v8::Object> resource = New<v8::Object>()) {
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
-
- if (resource.IsEmpty()) {
- resource = New<v8::Object>();
- }
-
- context = node::EmitAsyncInit(isolate, resource, name);
-#endif
- }
-
- AsyncResource(
- const char* name
- , v8::Local<v8::Object> resource = New<v8::Object>()) {
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
-
- if (resource.IsEmpty()) {
- resource = New<v8::Object>();
- }
-
- v8::Local<v8::String> name_string =
- New<v8::String>(name).ToLocalChecked();
- context = node::EmitAsyncInit(isolate, resource, name_string);
-#endif
- }
-
- ~AsyncResource() {
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
- node::EmitAsyncDestroy(isolate, context);
-#endif
- }
-
- inline MaybeLocal<v8::Value> runInAsyncScope(
- v8::Local<v8::Object> target
- , v8::Local<v8::Function> func
- , int argc
- , v8::Local<v8::Value>* argv) {
-#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
- return MakeCallback(target, func, argc, argv);
-#else
- return node::MakeCallback(
- v8::Isolate::GetCurrent(), target, func, argc, argv, context);
-#endif
- }
-
- inline MaybeLocal<v8::Value> runInAsyncScope(
- v8::Local<v8::Object> target
- , v8::Local<v8::String> symbol
- , int argc
- , v8::Local<v8::Value>* argv) {
-#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
- return MakeCallback(target, symbol, argc, argv);
-#else
- return node::MakeCallback(
- v8::Isolate::GetCurrent(), target, symbol, argc, argv, context);
-#endif
- }
-
- inline MaybeLocal<v8::Value> runInAsyncScope(
- v8::Local<v8::Object> target
- , const char* method
- , int argc
- , v8::Local<v8::Value>* argv) {
-#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
- return MakeCallback(target, method, argc, argv);
-#else
- return node::MakeCallback(
- v8::Isolate::GetCurrent(), target, method, argc, argv, context);
-#endif
- }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncResource)
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- node::async_context context;
-#endif
-};
-
-inline uv_loop_t* GetCurrentEventLoop() {
-#if NODE_MAJOR_VERSION >= 10 || \
- NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3 || \
- NODE_MAJOR_VERSION == 8 && NODE_MINOR_VERSION >= 10
- return node::GetCurrentEventLoop(v8::Isolate::GetCurrent());
-#else
- return uv_default_loop();
-#endif
-}
-
-//============ =================================================================
-
-/* node 0.12 */
-#if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION
- inline
- void SetCounterFunction(v8::CounterLookupCallback cb) {
- v8::Isolate::GetCurrent()->SetCounterFunction(cb);
- }
-
- inline
- void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
- v8::Isolate::GetCurrent()->SetCreateHistogramFunction(cb);
- }
-
- inline
- void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
- v8::Isolate::GetCurrent()->SetAddHistogramSampleFunction(cb);
- }
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
- inline bool IdleNotification(int idle_time_in_ms) {
- return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
- idle_time_in_ms * 0.001);
- }
-# else
- inline bool IdleNotification(int idle_time_in_ms) {
- return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
- }
-#endif
-
- inline void LowMemoryNotification() {
- v8::Isolate::GetCurrent()->LowMemoryNotification();
- }
-
- inline void ContextDisposedNotification() {
- v8::Isolate::GetCurrent()->ContextDisposedNotification();
- }
-#else
- inline
- void SetCounterFunction(v8::CounterLookupCallback cb) {
- v8::V8::SetCounterFunction(cb);
- }
-
- inline
- void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
- v8::V8::SetCreateHistogramFunction(cb);
- }
-
- inline
- void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
- v8::V8::SetAddHistogramSampleFunction(cb);
- }
-
- inline bool IdleNotification(int idle_time_in_ms) {
- return v8::V8::IdleNotification(idle_time_in_ms);
- }
-
- inline void LowMemoryNotification() {
- v8::V8::LowMemoryNotification();
- }
-
- inline void ContextDisposedNotification() {
- v8::V8::ContextDisposedNotification();
- }
-#endif
-
-#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) // Node 0.12
- inline v8::Local<v8::Primitive> Undefined() {
-# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- return scope.Escape(New(v8::Undefined(v8::Isolate::GetCurrent())));
-# else
- return v8::Undefined(v8::Isolate::GetCurrent());
-# endif
- }
-
- inline v8::Local<v8::Primitive> Null() {
-# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- return scope.Escape(New(v8::Null(v8::Isolate::GetCurrent())));
-# else
- return v8::Null(v8::Isolate::GetCurrent());
-# endif
- }
-
- inline v8::Local<v8::Boolean> True() {
-# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- return scope.Escape(New(v8::True(v8::Isolate::GetCurrent())));
-# else
- return v8::True(v8::Isolate::GetCurrent());
-# endif
- }
-
- inline v8::Local<v8::Boolean> False() {
-# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- return scope.Escape(New(v8::False(v8::Isolate::GetCurrent())));
-# else
- return v8::False(v8::Isolate::GetCurrent());
-# endif
- }
-
- inline v8::Local<v8::String> EmptyString() {
- return v8::String::Empty(v8::Isolate::GetCurrent());
- }
-
- inline int AdjustExternalMemory(int bc) {
- return static_cast<int>(
- v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(bc));
- }
-
- inline void SetTemplate(
- v8::Local<v8::Template> templ
- , const char *name
- , v8::Local<v8::Data> value) {
- templ->Set(v8::Isolate::GetCurrent(), name, value);
- }
-
- inline void SetTemplate(
- v8::Local<v8::Template> templ
- , v8::Local<v8::String> name
- , v8::Local<v8::Data> value
- , v8::PropertyAttribute attributes) {
- templ->Set(name, value, attributes);
- }
-
- inline v8::Local<v8::Context> GetCurrentContext() {
- return v8::Isolate::GetCurrent()->GetCurrentContext();
- }
-
- inline void* GetInternalFieldPointer(
- v8::Local<v8::Object> object
- , int index) {
- return object->GetAlignedPointerFromInternalField(index);
- }
-
- inline void SetInternalFieldPointer(
- v8::Local<v8::Object> object
- , int index
- , void* value) {
- object->SetAlignedPointerInInternalField(index, value);
- }
-
-# define NAN_GC_CALLBACK(name) \
- void name(v8::Isolate *isolate, v8::GCType type, v8::GCCallbackFlags flags)
-
-#if NODE_MODULE_VERSION <= NODE_4_0_MODULE_VERSION
- typedef v8::Isolate::GCEpilogueCallback GCEpilogueCallback;
- typedef v8::Isolate::GCPrologueCallback GCPrologueCallback;
-#else
- typedef v8::Isolate::GCCallback GCEpilogueCallback;
- typedef v8::Isolate::GCCallback GCPrologueCallback;
-#endif
-
- inline void AddGCEpilogueCallback(
- GCEpilogueCallback callback
- , v8::GCType gc_type_filter = v8::kGCTypeAll) {
- v8::Isolate::GetCurrent()->AddGCEpilogueCallback(callback, gc_type_filter);
- }
-
- inline void RemoveGCEpilogueCallback(
- GCEpilogueCallback callback) {
- v8::Isolate::GetCurrent()->RemoveGCEpilogueCallback(callback);
- }
-
- inline void AddGCPrologueCallback(
- GCPrologueCallback callback
- , v8::GCType gc_type_filter = v8::kGCTypeAll) {
- v8::Isolate::GetCurrent()->AddGCPrologueCallback(callback, gc_type_filter);
- }
-
- inline void RemoveGCPrologueCallback(
- GCPrologueCallback callback) {
- v8::Isolate::GetCurrent()->RemoveGCPrologueCallback(callback);
- }
-
- inline void GetHeapStatistics(
- v8::HeapStatistics *heap_statistics) {
- v8::Isolate::GetCurrent()->GetHeapStatistics(heap_statistics);
- }
-
-# define X(NAME) \
- inline v8::Local<v8::Value> NAME(const char *msg) { \
- EscapableHandleScope scope; \
- return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
- } \
- \
- inline \
- v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
- return v8::Exception::NAME(msg); \
- } \
- \
- inline void Throw ## NAME(const char *msg) { \
- HandleScope scope; \
- v8::Isolate::GetCurrent()->ThrowException( \
- v8::Exception::NAME(New(msg).ToLocalChecked())); \
- } \
- \
- inline void Throw ## NAME(v8::Local<v8::String> msg) { \
- HandleScope scope; \
- v8::Isolate::GetCurrent()->ThrowException( \
- v8::Exception::NAME(msg)); \
- }
-
- X(Error)
- X(RangeError)
- X(ReferenceError)
- X(SyntaxError)
- X(TypeError)
-
-# undef X
-
- inline void ThrowError(v8::Local<v8::Value> error) {
- v8::Isolate::GetCurrent()->ThrowException(error);
- }
-
- inline MaybeLocal<v8::Object> NewBuffer(
- char *data
- , size_t length
-#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
- , node::Buffer::FreeCallback callback
-#else
- , node::smalloc::FreeCallback callback
-#endif
- , void *hint
- ) {
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- assert(length <= imp::kMaxLength && "too large buffer");
-#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
- return node::Buffer::New(
- v8::Isolate::GetCurrent(), data, length, callback, hint);
-#else
- return node::Buffer::New(v8::Isolate::GetCurrent(), data, length, callback,
- hint);
-#endif
- }
-
- inline MaybeLocal<v8::Object> CopyBuffer(
- const char *data
- , uint32_t size
- ) {
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- assert(size <= imp::kMaxLength && "too large buffer");
-#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
- return node::Buffer::Copy(
- v8::Isolate::GetCurrent(), data, size);
-#else
- return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
-#endif
- }
-
- inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- assert(size <= imp::kMaxLength && "too large buffer");
-#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
- return node::Buffer::New(
- v8::Isolate::GetCurrent(), size);
-#else
- return node::Buffer::New(v8::Isolate::GetCurrent(), size);
-#endif
- }
-
- inline MaybeLocal<v8::Object> NewBuffer(
- char* data
- , uint32_t size
- ) {
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- assert(size <= imp::kMaxLength && "too large buffer");
-#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
- return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
-#else
- return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
-#endif
- }
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
- inline MaybeLocal<v8::String>
- NewOneByteString(const uint8_t * value, int length = -1) {
- return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
- v8::NewStringType::kNormal, length);
- }
-
- inline MaybeLocal<BoundScript> CompileScript(
- v8::Local<v8::String> s
- , const v8::ScriptOrigin& origin
- ) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- v8::ScriptCompiler::Source source(s, origin);
- return scope.Escape(
- v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
- .FromMaybe(v8::Local<BoundScript>()));
- }
-
- inline MaybeLocal<BoundScript> CompileScript(
- v8::Local<v8::String> s
- ) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- v8::ScriptCompiler::Source source(s);
- return scope.Escape(
- v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
- .FromMaybe(v8::Local<BoundScript>()));
- }
-
- inline MaybeLocal<v8::Value> RunScript(
- v8::Local<UnboundScript> script
- ) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(script->BindToCurrentContext()
- ->Run(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Value>()));
- }
-
- inline MaybeLocal<v8::Value> RunScript(
- v8::Local<BoundScript> script
- ) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(script->Run(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Value>()));
- }
-#else
- inline MaybeLocal<v8::String>
- NewOneByteString(const uint8_t * value, int length = -1) {
- return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
- v8::String::kNormalString, length);
- }
-
- inline MaybeLocal<BoundScript> CompileScript(
- v8::Local<v8::String> s
- , const v8::ScriptOrigin& origin
- ) {
- v8::ScriptCompiler::Source source(s, origin);
- return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
- }
-
- inline MaybeLocal<BoundScript> CompileScript(
- v8::Local<v8::String> s
- ) {
- v8::ScriptCompiler::Source source(s);
- return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
- }
-
- inline MaybeLocal<v8::Value> RunScript(
- v8::Local<UnboundScript> script
- ) {
- EscapableHandleScope scope;
- return scope.Escape(script->BindToCurrentContext()->Run());
- }
-
- inline MaybeLocal<v8::Value> RunScript(
- v8::Local<BoundScript> script
- ) {
- return script->Run();
- }
-#endif
-
- NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
- v8::Local<v8::Object> target
- , v8::Local<v8::Function> func
- , int argc
- , v8::Local<v8::Value>* argv) {
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- return scope.Escape(New(node::MakeCallback(
- v8::Isolate::GetCurrent(), target, func, argc, argv)));
-#else
-# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- AsyncResource res("nan:makeCallback");
- return res.runInAsyncScope(target, func, argc, argv)
- .FromMaybe(v8::Local<v8::Value>());
-# else
- return node::MakeCallback(
- v8::Isolate::GetCurrent(), target, func, argc, argv);
-# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- }
-
- NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
- v8::Local<v8::Object> target
- , v8::Local<v8::String> symbol
- , int argc
- , v8::Local<v8::Value>* argv) {
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- return scope.Escape(New(node::MakeCallback(
- v8::Isolate::GetCurrent(), target, symbol, argc, argv)));
-#else
-# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- AsyncResource res("nan:makeCallback");
- return res.runInAsyncScope(target, symbol, argc, argv)
- .FromMaybe(v8::Local<v8::Value>());
-# else
- return node::MakeCallback(
- v8::Isolate::GetCurrent(), target, symbol, argc, argv);
-# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- }
-
- NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
- v8::Local<v8::Object> target
- , const char* method
- , int argc
- , v8::Local<v8::Value>* argv) {
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- return scope.Escape(New(node::MakeCallback(
- v8::Isolate::GetCurrent(), target, method, argc, argv)));
-#else
-# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- AsyncResource res("nan:makeCallback");
- return res.runInAsyncScope(target, method, argc, argv)
- .FromMaybe(v8::Local<v8::Value>());
-# else
- return node::MakeCallback(
- v8::Isolate::GetCurrent(), target, method, argc, argv);
-# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- }
-
- inline void FatalException(const TryCatch& try_catch) {
- node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
- }
-
- inline v8::Local<v8::Value> ErrnoException(
- int errorno
- , const char* syscall = NULL
- , const char* message = NULL
- , const char* path = NULL) {
- return node::ErrnoException(v8::Isolate::GetCurrent(), errorno, syscall,
- message, path);
- }
-
- NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
- int errorno
- , const char* syscall = NULL
- , const char* message = NULL
- , const char* path = NULL) {
- return ErrnoException(errorno, syscall, message, path);
- }
-
- template<typename T>
- inline void SetIsolateData(
- v8::Isolate *isolate
- , T *data
- ) {
- isolate->SetData(0, data);
- }
-
- template<typename T>
- inline T *GetIsolateData(
- v8::Isolate *isolate
- ) {
- return static_cast<T*>(isolate->GetData(0));
- }
-
-class Utf8String {
- public:
- inline explicit Utf8String(v8::Local<v8::Value> from) :
- length_(0), str_(str_st_) {
- HandleScope scope;
- if (!from.IsEmpty()) {
-#if NODE_MAJOR_VERSION >= 10
- v8::Local<v8::Context> context = GetCurrentContext();
- v8::Local<v8::String> string =
- from->ToString(context).FromMaybe(v8::Local<v8::String>());
-#else
- v8::Local<v8::String> string = from->ToString();
-#endif
- if (!string.IsEmpty()) {
- size_t len = 3 * string->Length() + 1;
- assert(len <= INT_MAX);
- if (len > sizeof (str_st_)) {
- str_ = static_cast<char*>(malloc(len));
- assert(str_ != 0);
- }
- const int flags =
- v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
-#if NODE_MAJOR_VERSION >= 11
- length_ = string->WriteUtf8(v8::Isolate::GetCurrent(), str_,
- static_cast<int>(len), 0, flags);
-#else
- // See https://github.com/nodejs/nan/issues/832.
- // Disable the warning as there is no way around it.
-#ifdef _MSC_VER
-#pragma warning(push)
-#pragma warning(disable : 4996)
-#endif
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
- length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
-#ifdef _MSC_VER
-#pragma warning(pop)
-#endif
-#endif // NODE_MAJOR_VERSION < 11
- str_[length_] = '\0';
- }
- }
- }
-
- inline int length() const {
- return length_;
- }
-
- inline char* operator*() { return str_; }
- inline const char* operator*() const { return str_; }
-
- inline ~Utf8String() {
- if (str_ != str_st_) {
- free(str_);
- }
- }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
-
- int length_;
- char *str_;
- char str_st_[1024];
-};
-
-#else // Node 0.8 and 0.10
- inline v8::Local<v8::Primitive> Undefined() {
- EscapableHandleScope scope;
- return scope.Escape(New(v8::Undefined()));
- }
-
- inline v8::Local<v8::Primitive> Null() {
- EscapableHandleScope scope;
- return scope.Escape(New(v8::Null()));
- }
-
- inline v8::Local<v8::Boolean> True() {
- EscapableHandleScope scope;
- return scope.Escape(New(v8::True()));
- }
-
- inline v8::Local<v8::Boolean> False() {
- EscapableHandleScope scope;
- return scope.Escape(New(v8::False()));
- }
-
- inline v8::Local<v8::String> EmptyString() {
- return v8::String::Empty();
- }
-
- inline int AdjustExternalMemory(int bc) {
- return static_cast<int>(v8::V8::AdjustAmountOfExternalAllocatedMemory(bc));
- }
-
- inline void SetTemplate(
- v8::Local<v8::Template> templ
- , const char *name
- , v8::Local<v8::Data> value) {
- templ->Set(name, value);
- }
-
- inline void SetTemplate(
- v8::Local<v8::Template> templ
- , v8::Local<v8::String> name
- , v8::Local<v8::Data> value
- , v8::PropertyAttribute attributes) {
- templ->Set(name, value, attributes);
- }
-
- inline v8::Local<v8::Context> GetCurrentContext() {
- return v8::Context::GetCurrent();
- }
-
- inline void* GetInternalFieldPointer(
- v8::Local<v8::Object> object
- , int index) {
- return object->GetPointerFromInternalField(index);
- }
-
- inline void SetInternalFieldPointer(
- v8::Local<v8::Object> object
- , int index
- , void* value) {
- object->SetPointerInInternalField(index, value);
- }
-
-# define NAN_GC_CALLBACK(name) \
- void name(v8::GCType type, v8::GCCallbackFlags flags)
-
- inline void AddGCEpilogueCallback(
- v8::GCEpilogueCallback callback
- , v8::GCType gc_type_filter = v8::kGCTypeAll) {
- v8::V8::AddGCEpilogueCallback(callback, gc_type_filter);
- }
- inline void RemoveGCEpilogueCallback(
- v8::GCEpilogueCallback callback) {
- v8::V8::RemoveGCEpilogueCallback(callback);
- }
- inline void AddGCPrologueCallback(
- v8::GCPrologueCallback callback
- , v8::GCType gc_type_filter = v8::kGCTypeAll) {
- v8::V8::AddGCPrologueCallback(callback, gc_type_filter);
- }
- inline void RemoveGCPrologueCallback(
- v8::GCPrologueCallback callback) {
- v8::V8::RemoveGCPrologueCallback(callback);
- }
- inline void GetHeapStatistics(
- v8::HeapStatistics *heap_statistics) {
- v8::V8::GetHeapStatistics(heap_statistics);
- }
-
-# define X(NAME) \
- inline v8::Local<v8::Value> NAME(const char *msg) { \
- EscapableHandleScope scope; \
- return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
- } \
- \
- inline \
- v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
- return v8::Exception::NAME(msg); \
- } \
- \
- inline void Throw ## NAME(const char *msg) { \
- HandleScope scope; \
- v8::ThrowException(v8::Exception::NAME(New(msg).ToLocalChecked())); \
- } \
- \
- inline \
- void Throw ## NAME(v8::Local<v8::String> errmsg) { \
- HandleScope scope; \
- v8::ThrowException(v8::Exception::NAME(errmsg)); \
- }
-
- X(Error)
- X(RangeError)
- X(ReferenceError)
- X(SyntaxError)
- X(TypeError)
-
-# undef X
-
- inline void ThrowError(v8::Local<v8::Value> error) {
- v8::ThrowException(error);
- }
-
- inline MaybeLocal<v8::Object> NewBuffer(
- char *data
- , size_t length
- , node::Buffer::free_callback callback
- , void *hint
- ) {
- EscapableHandleScope scope;
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- assert(length <= imp::kMaxLength && "too large buffer");
- return scope.Escape(
- New(node::Buffer::New(data, length, callback, hint)->handle_));
- }
-
- inline MaybeLocal<v8::Object> CopyBuffer(
- const char *data
- , uint32_t size
- ) {
- EscapableHandleScope scope;
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- assert(size <= imp::kMaxLength && "too large buffer");
-#if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
- return scope.Escape(New(node::Buffer::New(data, size)->handle_));
-#else
- return scope.Escape(
- New(node::Buffer::New(const_cast<char *>(data), size)->handle_));
-#endif
- }
-
- inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- EscapableHandleScope scope;
- assert(size <= imp::kMaxLength && "too large buffer");
- return scope.Escape(New(node::Buffer::New(size)->handle_));
- }
-
- inline void FreeData(char *data, void *hint) {
- (void) hint; // unused
- delete[] data;
- }
-
- inline MaybeLocal<v8::Object> NewBuffer(
- char* data
- , uint32_t size
- ) {
- EscapableHandleScope scope;
- // arbitrary buffer lengths requires
- // NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
- assert(size <= imp::kMaxLength && "too large buffer");
- return scope.Escape(
- New(node::Buffer::New(data, size, FreeData, NULL)->handle_));
- }
-
-namespace imp {
-inline void
-widenString(std::vector<uint16_t> *ws, const uint8_t *s, int l) {
- size_t len = static_cast<size_t>(l);
- if (l < 0) {
- len = strlen(reinterpret_cast<const char*>(s));
- }
- assert(len <= INT_MAX && "string too long");
- ws->resize(len);
- std::copy(s, s + len, ws->begin()); // NOLINT(build/include_what_you_use)
-}
-} // end of namespace imp
-
- inline MaybeLocal<v8::String>
- NewOneByteString(const uint8_t * value, int length = -1) {
- std::vector<uint16_t> wideString; // NOLINT(build/include_what_you_use)
- imp::widenString(&wideString, value, length);
- return v8::String::New(wideString.data(),
- static_cast<int>(wideString.size()));
- }
-
- inline MaybeLocal<BoundScript> CompileScript(
- v8::Local<v8::String> s
- , const v8::ScriptOrigin& origin
- ) {
- return v8::Script::Compile(s, const_cast<v8::ScriptOrigin *>(&origin));
- }
-
- inline MaybeLocal<BoundScript> CompileScript(
- v8::Local<v8::String> s
- ) {
- return v8::Script::Compile(s);
- }
-
- inline
- MaybeLocal<v8::Value> RunScript(v8::Local<v8::Script> script) {
- return script->Run();
- }
-
- inline v8::Local<v8::Value> MakeCallback(
- v8::Local<v8::Object> target
- , v8::Local<v8::Function> func
- , int argc
- , v8::Local<v8::Value>* argv) {
- v8::HandleScope scope;
- return scope.Close(New(node::MakeCallback(target, func, argc, argv)));
- }
-
- inline v8::Local<v8::Value> MakeCallback(
- v8::Local<v8::Object> target
- , v8::Local<v8::String> symbol
- , int argc
- , v8::Local<v8::Value>* argv) {
- v8::HandleScope scope;
- return scope.Close(New(node::MakeCallback(target, symbol, argc, argv)));
- }
-
- inline v8::Local<v8::Value> MakeCallback(
- v8::Local<v8::Object> target
- , const char* method
- , int argc
- , v8::Local<v8::Value>* argv) {
- v8::HandleScope scope;
- return scope.Close(New(node::MakeCallback(target, method, argc, argv)));
- }
-
- inline void FatalException(const TryCatch& try_catch) {
- node::FatalException(const_cast<v8::TryCatch &>(try_catch.try_catch_));
- }
-
- inline v8::Local<v8::Value> ErrnoException(
- int errorno
- , const char* syscall = NULL
- , const char* message = NULL
- , const char* path = NULL) {
- return node::ErrnoException(errorno, syscall, message, path);
- }
-
- NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
- int errorno
- , const char* syscall = NULL
- , const char* message = NULL
- , const char* path = NULL) {
- return ErrnoException(errorno, syscall, message, path);
- }
-
-
- template<typename T>
- inline void SetIsolateData(
- v8::Isolate *isolate
- , T *data
- ) {
- isolate->SetData(data);
- }
-
- template<typename T>
- inline T *GetIsolateData(
- v8::Isolate *isolate
- ) {
- return static_cast<T*>(isolate->GetData());
- }
-
-class Utf8String {
- public:
- inline explicit Utf8String(v8::Local<v8::Value> from) :
- length_(0), str_(str_st_) {
- v8::HandleScope scope;
- if (!from.IsEmpty()) {
- v8::Local<v8::String> string = from->ToString();
- if (!string.IsEmpty()) {
- size_t len = 3 * string->Length() + 1;
- assert(len <= INT_MAX);
- if (len > sizeof (str_st_)) {
- str_ = static_cast<char*>(malloc(len));
- assert(str_ != 0);
- }
- const int flags =
- v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
- length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
- str_[length_] = '\0';
- }
- }
- }
-
- inline int length() const {
- return length_;
- }
-
- inline char* operator*() { return str_; }
- inline const char* operator*() const { return str_; }
-
- inline ~Utf8String() {
- if (str_ != str_st_) {
- free(str_);
- }
- }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
-
- int length_;
- char *str_;
- char str_st_[1024];
-};
-
-#endif // NODE_MODULE_VERSION
-
-typedef void (*FreeCallback)(char *data, void *hint);
-
-typedef const FunctionCallbackInfo<v8::Value>& NAN_METHOD_ARGS_TYPE;
-typedef void NAN_METHOD_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Value>& NAN_GETTER_ARGS_TYPE;
-typedef void NAN_GETTER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<void>& NAN_SETTER_ARGS_TYPE;
-typedef void NAN_SETTER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Value>&
- NAN_PROPERTY_GETTER_ARGS_TYPE;
-typedef void NAN_PROPERTY_GETTER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Value>&
- NAN_PROPERTY_SETTER_ARGS_TYPE;
-typedef void NAN_PROPERTY_SETTER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Array>&
- NAN_PROPERTY_ENUMERATOR_ARGS_TYPE;
-typedef void NAN_PROPERTY_ENUMERATOR_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Boolean>&
- NAN_PROPERTY_DELETER_ARGS_TYPE;
-typedef void NAN_PROPERTY_DELETER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Integer>&
- NAN_PROPERTY_QUERY_ARGS_TYPE;
-typedef void NAN_PROPERTY_QUERY_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_GETTER_ARGS_TYPE;
-typedef void NAN_INDEX_GETTER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_SETTER_ARGS_TYPE;
-typedef void NAN_INDEX_SETTER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Array>&
- NAN_INDEX_ENUMERATOR_ARGS_TYPE;
-typedef void NAN_INDEX_ENUMERATOR_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Boolean>&
- NAN_INDEX_DELETER_ARGS_TYPE;
-typedef void NAN_INDEX_DELETER_RETURN_TYPE;
-
-typedef const PropertyCallbackInfo<v8::Integer>&
- NAN_INDEX_QUERY_ARGS_TYPE;
-typedef void NAN_INDEX_QUERY_RETURN_TYPE;
-
-#define NAN_METHOD(name) \
- Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
-#define NAN_GETTER(name) \
- Nan::NAN_GETTER_RETURN_TYPE name( \
- v8::Local<v8::String> property \
- , Nan::NAN_GETTER_ARGS_TYPE info)
-#define NAN_SETTER(name) \
- Nan::NAN_SETTER_RETURN_TYPE name( \
- v8::Local<v8::String> property \
- , v8::Local<v8::Value> value \
- , Nan::NAN_SETTER_ARGS_TYPE info)
-#define NAN_PROPERTY_GETTER(name) \
- Nan::NAN_PROPERTY_GETTER_RETURN_TYPE name( \
- v8::Local<v8::String> property \
- , Nan::NAN_PROPERTY_GETTER_ARGS_TYPE info)
-#define NAN_PROPERTY_SETTER(name) \
- Nan::NAN_PROPERTY_SETTER_RETURN_TYPE name( \
- v8::Local<v8::String> property \
- , v8::Local<v8::Value> value \
- , Nan::NAN_PROPERTY_SETTER_ARGS_TYPE info)
-#define NAN_PROPERTY_ENUMERATOR(name) \
- Nan::NAN_PROPERTY_ENUMERATOR_RETURN_TYPE name( \
- Nan::NAN_PROPERTY_ENUMERATOR_ARGS_TYPE info)
-#define NAN_PROPERTY_DELETER(name) \
- Nan::NAN_PROPERTY_DELETER_RETURN_TYPE name( \
- v8::Local<v8::String> property \
- , Nan::NAN_PROPERTY_DELETER_ARGS_TYPE info)
-#define NAN_PROPERTY_QUERY(name) \
- Nan::NAN_PROPERTY_QUERY_RETURN_TYPE name( \
- v8::Local<v8::String> property \
- , Nan::NAN_PROPERTY_QUERY_ARGS_TYPE info)
-# define NAN_INDEX_GETTER(name) \
- Nan::NAN_INDEX_GETTER_RETURN_TYPE name( \
- uint32_t index \
- , Nan::NAN_INDEX_GETTER_ARGS_TYPE info)
-#define NAN_INDEX_SETTER(name) \
- Nan::NAN_INDEX_SETTER_RETURN_TYPE name( \
- uint32_t index \
- , v8::Local<v8::Value> value \
- , Nan::NAN_INDEX_SETTER_ARGS_TYPE info)
-#define NAN_INDEX_ENUMERATOR(name) \
- Nan::NAN_INDEX_ENUMERATOR_RETURN_TYPE \
- name(Nan::NAN_INDEX_ENUMERATOR_ARGS_TYPE info)
-#define NAN_INDEX_DELETER(name) \
- Nan::NAN_INDEX_DELETER_RETURN_TYPE name( \
- uint32_t index \
- , Nan::NAN_INDEX_DELETER_ARGS_TYPE info)
-#define NAN_INDEX_QUERY(name) \
- Nan::NAN_INDEX_QUERY_RETURN_TYPE name( \
- uint32_t index \
- , Nan::NAN_INDEX_QUERY_ARGS_TYPE info)
-
-class Callback {
- public:
- Callback() {}
-
- explicit Callback(const v8::Local<v8::Function> &fn) : handle_(fn) {}
-
- ~Callback() {
- handle_.Reset();
- }
-
- bool operator==(const Callback &other) const {
- return handle_ == other.handle_;
- }
-
- bool operator!=(const Callback &other) const {
- return !operator==(other);
- }
-
- inline
- v8::Local<v8::Function> operator*() const { return GetFunction(); }
-
- NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
- v8::Local<v8::Object> target
- , int argc = 0
- , v8::Local<v8::Value> argv[] = 0) const {
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
-# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- AsyncResource async("nan:Callback:operator()");
- return Call_(isolate, target, argc, argv, &async)
- .FromMaybe(v8::Local<v8::Value>());
-# else
- return Call_(isolate, target, argc, argv);
-# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-#else
- return Call_(target, argc, argv);
-#endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- }
-
- NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
- int argc = 0
- , v8::Local<v8::Value> argv[] = 0) const {
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
-# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- AsyncResource async("nan:Callback:operator()");
- return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
- argc, argv, &async)
- .FromMaybe(v8::Local<v8::Value>()));
-# else
- return scope.Escape(
- Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
-# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-#else
- v8::HandleScope scope;
- return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
-#endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- }
-
- inline MaybeLocal<v8::Value> operator()(
- AsyncResource* resource
- , int argc = 0
- , v8::Local<v8::Value> argv[] = 0) const {
- return this->Call(argc, argv, resource);
- }
-
- inline MaybeLocal<v8::Value> operator()(
- AsyncResource* resource
- , v8::Local<v8::Object> target
- , int argc = 0
- , v8::Local<v8::Value> argv[] = 0) const {
- return this->Call(target, argc, argv, resource);
- }
-
- // TODO(kkoopa): remove
- inline void SetFunction(const v8::Local<v8::Function> &fn) {
- Reset(fn);
- }
-
- inline void Reset(const v8::Local<v8::Function> &fn) {
- handle_.Reset(fn);
- }
-
- inline void Reset() {
- handle_.Reset();
- }
-
- inline v8::Local<v8::Function> GetFunction() const {
- return New(handle_);
- }
-
- inline bool IsEmpty() const {
- return handle_.IsEmpty();
- }
-
- // Deprecated: For async callbacks Use the versions that accept an
- // AsyncResource. If this callback does not correspond to an async resource,
- // that is, it is a synchronous function call on a non-empty JS stack, you
- // should Nan::Call instead.
- NAN_DEPRECATED inline v8::Local<v8::Value>
- Call(v8::Local<v8::Object> target
- , int argc
- , v8::Local<v8::Value> argv[]) const {
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
-# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- AsyncResource async("nan:Callback:Call");
- return Call_(isolate, target, argc, argv, &async)
- .FromMaybe(v8::Local<v8::Value>());
-# else
- return Call_(isolate, target, argc, argv);
-# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-#else
- return Call_(target, argc, argv);
-#endif
- }
-
- // Deprecated: For async callbacks Use the versions that accept an
- // AsyncResource. If this callback does not correspond to an async resource,
- // that is, it is a synchronous function call on a non-empty JS stack, you
- // should Nan::Call instead.
- NAN_DEPRECATED inline v8::Local<v8::Value>
- Call(int argc, v8::Local<v8::Value> argv[]) const {
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
-# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- AsyncResource async("nan:Callback:Call");
- return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
- argc, argv, &async)
- .FromMaybe(v8::Local<v8::Value>()));
-# else
- return scope.Escape(
- Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
-# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
-#else
- v8::HandleScope scope;
- return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
-#endif
- }
-
- inline MaybeLocal<v8::Value>
- Call(v8::Local<v8::Object> target
- , int argc
- , v8::Local<v8::Value> argv[]
- , AsyncResource* resource) const {
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
- return Call_(isolate, target, argc, argv, resource);
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- return Call_(isolate, target, argc, argv);
-#else
- return Call_(target, argc, argv);
-#endif
- }
-
- inline MaybeLocal<v8::Value>
- Call(int argc, v8::Local<v8::Value> argv[], AsyncResource* resource) const {
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
- return Call(isolate->GetCurrentContext()->Global(), argc, argv, resource);
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(
- Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
-#else
- v8::HandleScope scope;
- return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
-#endif
- }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(Callback)
- Persistent<v8::Function> handle_;
-
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- MaybeLocal<v8::Value> Call_(v8::Isolate *isolate
- , v8::Local<v8::Object> target
- , int argc
- , v8::Local<v8::Value> argv[]
- , AsyncResource* resource) const {
- EscapableHandleScope scope;
- v8::Local<v8::Function> func = New(handle_);
- auto maybe = resource->runInAsyncScope(target, func, argc, argv);
- v8::Local<v8::Value> local;
- if (!maybe.ToLocal(&local)) return MaybeLocal<v8::Value>();
- return scope.Escape(local);
- }
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Local<v8::Value> Call_(v8::Isolate *isolate
- , v8::Local<v8::Object> target
- , int argc
- , v8::Local<v8::Value> argv[]) const {
- EscapableHandleScope scope;
-
- v8::Local<v8::Function> callback = New(handle_);
-# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
- return scope.Escape(New(node::MakeCallback(
- isolate
- , target
- , callback
- , argc
- , argv
- )));
-# else
- return scope.Escape(node::MakeCallback(
- isolate
- , target
- , callback
- , argc
- , argv
- ));
-# endif
- }
-#else
- v8::Local<v8::Value> Call_(v8::Local<v8::Object> target
- , int argc
- , v8::Local<v8::Value> argv[]) const {
- EscapableHandleScope scope;
-
- v8::Local<v8::Function> callback = New(handle_);
- return scope.Escape(New(node::MakeCallback(
- target
- , callback
- , argc
- , argv
- )));
- }
-#endif
-};
-
-inline MaybeLocal<v8::Value> Call(
- const Nan::Callback& callback
- , v8::Local<v8::Object> recv
- , int argc
- , v8::Local<v8::Value> argv[]) {
- return Call(*callback, recv, argc, argv);
-}
-
-inline MaybeLocal<v8::Value> Call(
- const Nan::Callback& callback
- , int argc
- , v8::Local<v8::Value> argv[]) {
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(
- Call(*callback, isolate->GetCurrentContext()->Global(), argc, argv)
- .FromMaybe(v8::Local<v8::Value>()));
-#else
- EscapableHandleScope scope;
- return scope.Escape(
- Call(*callback, v8::Context::GetCurrent()->Global(), argc, argv)
- .FromMaybe(v8::Local<v8::Value>()));
-#endif
-}
-
-inline MaybeLocal<v8::Value> Call(
- v8::Local<v8::String> symbol
- , v8::Local<v8::Object> recv
- , int argc
- , v8::Local<v8::Value> argv[]) {
- EscapableHandleScope scope;
- v8::Local<v8::Value> fn_v =
- Get(recv, symbol).FromMaybe(v8::Local<v8::Value>());
- if (fn_v.IsEmpty() || !fn_v->IsFunction()) return v8::Local<v8::Value>();
- v8::Local<v8::Function> fn = fn_v.As<v8::Function>();
- return scope.Escape(
- Call(fn, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline MaybeLocal<v8::Value> Call(
- const char* method
- , v8::Local<v8::Object> recv
- , int argc
- , v8::Local<v8::Value> argv[]) {
- EscapableHandleScope scope;
- v8::Local<v8::String> method_string =
- New<v8::String>(method).ToLocalChecked();
- return scope.Escape(
- Call(method_string, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
-}
-
-/* abstract */ class AsyncWorker {
- public:
- explicit AsyncWorker(Callback *callback_,
- const char* resource_name = "nan:AsyncWorker")
- : callback(callback_), errmsg_(NULL) {
- request.data = this;
-
- HandleScope scope;
- v8::Local<v8::Object> obj = New<v8::Object>();
- persistentHandle.Reset(obj);
- async_resource = new AsyncResource(resource_name, obj);
- }
-
- virtual ~AsyncWorker() {
- HandleScope scope;
-
- if (!persistentHandle.IsEmpty())
- persistentHandle.Reset();
- delete callback;
- delete[] errmsg_;
- delete async_resource;
- }
-
- virtual void WorkComplete() {
- HandleScope scope;
-
- if (errmsg_ == NULL)
- HandleOKCallback();
- else
- HandleErrorCallback();
- delete callback;
- callback = NULL;
- }
-
- inline void SaveToPersistent(
- const char *key, const v8::Local<v8::Value> &value) {
- HandleScope scope;
- Set(New(persistentHandle), New(key).ToLocalChecked(), value).FromJust();
- }
-
- inline void SaveToPersistent(
- const v8::Local<v8::String> &key, const v8::Local<v8::Value> &value) {
- HandleScope scope;
- Set(New(persistentHandle), key, value).FromJust();
- }
-
- inline void SaveToPersistent(
- uint32_t index, const v8::Local<v8::Value> &value) {
- HandleScope scope;
- Set(New(persistentHandle), index, value).FromJust();
- }
-
- inline v8::Local<v8::Value> GetFromPersistent(const char *key) const {
- EscapableHandleScope scope;
- return scope.Escape(
- Get(New(persistentHandle), New(key).ToLocalChecked())
- .FromMaybe(v8::Local<v8::Value>()));
- }
-
- inline v8::Local<v8::Value>
- GetFromPersistent(const v8::Local<v8::String> &key) const {
- EscapableHandleScope scope;
- return scope.Escape(
- Get(New(persistentHandle), key)
- .FromMaybe(v8::Local<v8::Value>()));
- }
-
- inline v8::Local<v8::Value> GetFromPersistent(uint32_t index) const {
- EscapableHandleScope scope;
- return scope.Escape(
- Get(New(persistentHandle), index)
- .FromMaybe(v8::Local<v8::Value>()));
- }
-
- virtual void Execute() = 0;
-
- uv_work_t request;
-
- virtual void Destroy() {
- delete this;
- }
-
- protected:
- Persistent<v8::Object> persistentHandle;
- Callback *callback;
- AsyncResource *async_resource;
-
- virtual void HandleOKCallback() {
- HandleScope scope;
-
- callback->Call(0, NULL, async_resource);
- }
-
- virtual void HandleErrorCallback() {
- HandleScope scope;
-
- v8::Local<v8::Value> argv[] = {
- v8::Exception::Error(New<v8::String>(ErrorMessage()).ToLocalChecked())
- };
- callback->Call(1, argv, async_resource);
- }
-
- void SetErrorMessage(const char *msg) {
- delete[] errmsg_;
-
- size_t size = strlen(msg) + 1;
- errmsg_ = new char[size];
- memcpy(errmsg_, msg, size);
- }
-
- const char* ErrorMessage() const {
- return errmsg_;
- }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncWorker)
- char *errmsg_;
-};
-
-/* abstract */ class AsyncBareProgressWorkerBase : public AsyncWorker {
- public:
- explicit AsyncBareProgressWorkerBase(
- Callback *callback_,
- const char* resource_name = "nan:AsyncBareProgressWorkerBase")
- : AsyncWorker(callback_, resource_name) {
- uv_async_init(
- GetCurrentEventLoop()
- , &async
- , AsyncProgress_
- );
- async.data = this;
- }
-
- virtual ~AsyncBareProgressWorkerBase() {
- }
-
- virtual void WorkProgress() = 0;
-
- virtual void Destroy() {
- uv_close(reinterpret_cast<uv_handle_t*>(&async), AsyncClose_);
- }
-
- private:
- inline static NAUV_WORK_CB(AsyncProgress_) {
- AsyncBareProgressWorkerBase *worker =
- static_cast<AsyncBareProgressWorkerBase*>(async->data);
- worker->WorkProgress();
- }
-
- inline static void AsyncClose_(uv_handle_t* handle) {
- AsyncBareProgressWorkerBase *worker =
- static_cast<AsyncBareProgressWorkerBase*>(handle->data);
- delete worker;
- }
-
- protected:
- uv_async_t async;
-};
-
-template<class T>
-/* abstract */
-class AsyncBareProgressWorker : public AsyncBareProgressWorkerBase {
- public:
- explicit AsyncBareProgressWorker(
- Callback *callback_,
- const char* resource_name = "nan:AsyncBareProgressWorker")
- : AsyncBareProgressWorkerBase(callback_, resource_name) {
- uv_mutex_init(&async_lock);
- }
-
- virtual ~AsyncBareProgressWorker() {
- uv_mutex_destroy(&async_lock);
- }
-
- class ExecutionProgress {
- friend class AsyncBareProgressWorker;
- public:
- void Signal() const {
- uv_mutex_lock(&that_->async_lock);
- uv_async_send(&that_->async);
- uv_mutex_unlock(&that_->async_lock);
- }
-
- void Send(const T* data, size_t count) const {
- that_->SendProgress_(data, count);
- }
-
- private:
- explicit ExecutionProgress(AsyncBareProgressWorker *that) : that_(that) {}
- NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
- AsyncBareProgressWorker* const that_;
- };
-
- virtual void Execute(const ExecutionProgress& progress) = 0;
- virtual void HandleProgressCallback(const T *data, size_t size) = 0;
-
- protected:
- uv_mutex_t async_lock;
-
- private:
- void Execute() /*final override*/ {
- ExecutionProgress progress(this);
- Execute(progress);
- }
-
- virtual void SendProgress_(const T *data, size_t count) = 0;
-};
-
-template<class T>
-/* abstract */
-class AsyncProgressWorkerBase : public AsyncBareProgressWorker<T> {
- public:
- explicit AsyncProgressWorkerBase(
- Callback *callback_,
- const char* resource_name = "nan:AsyncProgressWorkerBase")
- : AsyncBareProgressWorker<T>(callback_, resource_name), asyncdata_(NULL),
- asyncsize_(0) {
- }
-
- virtual ~AsyncProgressWorkerBase() {
- delete[] asyncdata_;
- }
-
- void WorkProgress() {
- uv_mutex_lock(&this->async_lock);
- T *data = asyncdata_;
- size_t size = asyncsize_;
- asyncdata_ = NULL;
- asyncsize_ = 0;
- uv_mutex_unlock(&this->async_lock);
-
- // Don't send progress events after we've already completed.
- if (this->callback) {
- this->HandleProgressCallback(data, size);
- }
- delete[] data;
- }
-
- private:
- void SendProgress_(const T *data, size_t count) {
- T *new_data = new T[count];
- std::copy(data, data + count, new_data);
-
- uv_mutex_lock(&this->async_lock);
- T *old_data = asyncdata_;
- asyncdata_ = new_data;
- asyncsize_ = count;
- uv_async_send(&this->async);
- uv_mutex_unlock(&this->async_lock);
-
- delete[] old_data;
- }
-
- T *asyncdata_;
- size_t asyncsize_;
-};
-
-// This ensures compatibility to the previous un-templated AsyncProgressWorker
-// class definition.
-typedef AsyncProgressWorkerBase<char> AsyncProgressWorker;
-
-template<class T>
-/* abstract */
-class AsyncBareProgressQueueWorker : public AsyncBareProgressWorkerBase {
- public:
- explicit AsyncBareProgressQueueWorker(
- Callback *callback_,
- const char* resource_name = "nan:AsyncBareProgressQueueWorker")
- : AsyncBareProgressWorkerBase(callback_, resource_name) {
- }
-
- virtual ~AsyncBareProgressQueueWorker() {
- }
-
- class ExecutionProgress {
- friend class AsyncBareProgressQueueWorker;
- public:
- void Send(const T* data, size_t count) const {
- that_->SendProgress_(data, count);
- }
-
- private:
- explicit ExecutionProgress(AsyncBareProgressQueueWorker *that)
- : that_(that) {}
- NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
- AsyncBareProgressQueueWorker* const that_;
- };
-
- virtual void Execute(const ExecutionProgress& progress) = 0;
- virtual void HandleProgressCallback(const T *data, size_t size) = 0;
-
- private:
- void Execute() /*final override*/ {
- ExecutionProgress progress(this);
- Execute(progress);
- }
-
- virtual void SendProgress_(const T *data, size_t count) = 0;
-};
-
-template<class T>
-/* abstract */
-class AsyncProgressQueueWorker : public AsyncBareProgressQueueWorker<T> {
- public:
- explicit AsyncProgressQueueWorker(
- Callback *callback_,
- const char* resource_name = "nan:AsyncProgressQueueWorker")
- : AsyncBareProgressQueueWorker<T>(callback_) {
- uv_mutex_init(&async_lock);
- }
-
- virtual ~AsyncProgressQueueWorker() {
- uv_mutex_lock(&async_lock);
-
- while (!asyncdata_.empty()) {
- std::pair<T*, size_t> &datapair = asyncdata_.front();
- T *data = datapair.first;
-
- asyncdata_.pop();
-
- delete[] data;
- }
-
- uv_mutex_unlock(&async_lock);
- uv_mutex_destroy(&async_lock);
- }
-
- void WorkComplete() {
- WorkProgress();
- AsyncWorker::WorkComplete();
- }
-
- void WorkProgress() {
- uv_mutex_lock(&async_lock);
-
- while (!asyncdata_.empty()) {
- std::pair<T*, size_t> &datapair = asyncdata_.front();
-
- T *data = datapair.first;
- size_t size = datapair.second;
-
- asyncdata_.pop();
- uv_mutex_unlock(&async_lock);
-
- // Don't send progress events after we've already completed.
- if (this->callback) {
- this->HandleProgressCallback(data, size);
- }
-
- delete[] data;
-
- uv_mutex_lock(&async_lock);
- }
-
- uv_mutex_unlock(&async_lock);
- }
-
- private:
- void SendProgress_(const T *data, size_t count) {
- T *new_data = new T[count];
- std::copy(data, data + count, new_data);
-
- uv_mutex_lock(&async_lock);
- asyncdata_.push(std::pair<T*, size_t>(new_data, count));
- uv_mutex_unlock(&async_lock);
-
- uv_async_send(&this->async);
- }
-
- uv_mutex_t async_lock;
- std::queue<std::pair<T*, size_t> > asyncdata_;
-};
-
-inline void AsyncExecute (uv_work_t* req) {
- AsyncWorker *worker = static_cast<AsyncWorker*>(req->data);
- worker->Execute();
-}
-
-inline void AsyncExecuteComplete (uv_work_t* req) {
- AsyncWorker* worker = static_cast<AsyncWorker*>(req->data);
- worker->WorkComplete();
- worker->Destroy();
-}
-
-inline void AsyncQueueWorker (AsyncWorker* worker) {
- uv_queue_work(
- GetCurrentEventLoop()
- , &worker->request
- , AsyncExecute
- , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
- );
-}
-
-namespace imp {
-
-inline
-ExternalOneByteStringResource const*
-GetExternalResource(v8::Local<v8::String> str) {
-#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
- return str->GetExternalAsciiStringResource();
-#else
- return str->GetExternalOneByteStringResource();
-#endif
-}
-
-inline
-bool
-IsExternal(v8::Local<v8::String> str) {
-#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
- return str->IsExternalAscii();
-#else
- return str->IsExternalOneByte();
-#endif
-}
-
-} // end of namespace imp
-
-enum Encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER};
-
-#if NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION
-# include "nan_string_bytes.h" // NOLINT(build/include)
-#endif
-
-inline v8::Local<v8::Value> Encode(
- const void *buf, size_t len, enum Encoding encoding = BINARY) {
-#if (NODE_MODULE_VERSION >= ATOM_0_21_MODULE_VERSION)
- v8::Isolate* isolate = v8::Isolate::GetCurrent();
- node::encoding node_enc = static_cast<node::encoding>(encoding);
-
- if (encoding == UCS2) {
- return node::Encode(
- isolate
- , reinterpret_cast<const uint16_t *>(buf)
- , len / 2);
- } else {
- return node::Encode(
- isolate
- , reinterpret_cast<const char *>(buf)
- , len
- , node_enc);
- }
-#elif (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
- return node::Encode(
- v8::Isolate::GetCurrent()
- , buf, len
- , static_cast<node::encoding>(encoding));
-#else
-# if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
- return node::Encode(buf, len, static_cast<node::encoding>(encoding));
-# else
- return imp::Encode(reinterpret_cast<const char*>(buf), len, encoding);
-# endif
-#endif
-}
-
-inline ssize_t DecodeBytes(
- v8::Local<v8::Value> val, enum Encoding encoding = BINARY) {
-#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
- return node::DecodeBytes(
- v8::Isolate::GetCurrent()
- , val
- , static_cast<node::encoding>(encoding));
-#else
-# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
- if (encoding == BUFFER) {
- return node::DecodeBytes(val, node::BINARY);
- }
-# endif
- return node::DecodeBytes(val, static_cast<node::encoding>(encoding));
-#endif
-}
-
-inline ssize_t DecodeWrite(
- char *buf
- , size_t len
- , v8::Local<v8::Value> val
- , enum Encoding encoding = BINARY) {
-#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
- return node::DecodeWrite(
- v8::Isolate::GetCurrent()
- , buf
- , len
- , val
- , static_cast<node::encoding>(encoding));
-#else
-# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
- if (encoding == BUFFER) {
- return node::DecodeWrite(buf, len, val, node::BINARY);
- }
-# endif
- return node::DecodeWrite(
- buf
- , len
- , val
- , static_cast<node::encoding>(encoding));
-#endif
-}
-
-inline void SetPrototypeTemplate(
- v8::Local<v8::FunctionTemplate> templ
- , const char *name
- , v8::Local<v8::Data> value
-) {
- HandleScope scope;
- SetTemplate(templ->PrototypeTemplate(), name, value);
-}
-
-inline void SetPrototypeTemplate(
- v8::Local<v8::FunctionTemplate> templ
- , v8::Local<v8::String> name
- , v8::Local<v8::Data> value
- , v8::PropertyAttribute attributes
-) {
- HandleScope scope;
- SetTemplate(templ->PrototypeTemplate(), name, value, attributes);
-}
-
-inline void SetInstanceTemplate(
- v8::Local<v8::FunctionTemplate> templ
- , const char *name
- , v8::Local<v8::Data> value
-) {
- HandleScope scope;
- SetTemplate(templ->InstanceTemplate(), name, value);
-}
-
-inline void SetInstanceTemplate(
- v8::Local<v8::FunctionTemplate> templ
- , v8::Local<v8::String> name
- , v8::Local<v8::Data> value
- , v8::PropertyAttribute attributes
-) {
- HandleScope scope;
- SetTemplate(templ->InstanceTemplate(), name, value, attributes);
-}
-
-namespace imp {
-
-// Note(@agnat): Helper to distinguish different receiver types. The first
-// version deals with receivers derived from v8::Template. The second version
-// handles everything else. The final argument only serves as discriminator and
-// is unused.
-template <typename T>
-inline
-void
-SetMethodAux(T recv,
- v8::Local<v8::String> name,
- v8::Local<v8::FunctionTemplate> tpl,
- v8::Template *) {
- recv->Set(name, tpl);
-}
-
-template <typename T>
-inline
-void
-SetMethodAux(T recv,
- v8::Local<v8::String> name,
- v8::Local<v8::FunctionTemplate> tpl,
- ...) {
- Set(recv, name, GetFunction(tpl).ToLocalChecked());
-}
-
-} // end of namespace imp
-
-template <typename T, template <typename> class HandleType>
-inline void SetMethod(
- HandleType<T> recv
- , const char *name
- , FunctionCallback callback
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
- HandleScope scope;
- v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(callback, data);
- v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
- t->SetClassName(fn_name);
- // Note(@agnat): Pass an empty T* as discriminator. See note on
- // SetMethodAux(...) above
- imp::SetMethodAux(recv, fn_name, t, static_cast<T*>(0));
-}
-
-inline void SetPrototypeMethod(
- v8::Local<v8::FunctionTemplate> recv
- , const char* name
- , FunctionCallback callback
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
- HandleScope scope;
- v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(
- callback
- , data
- , New<v8::Signature>(recv));
- v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
- recv->PrototypeTemplate()->Set(fn_name, t);
- t->SetClassName(fn_name);
-}
-
-//=== Accessors and Such =======================================================
-
-inline void SetAccessor(
- v8::Local<v8::ObjectTemplate> tpl
- , v8::Local<v8::String> name
- , GetterCallback getter
- , SetterCallback setter = 0
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()
- , v8::AccessControl settings = v8::DEFAULT
- , v8::PropertyAttribute attribute = v8::None
- , imp::Sig signature = imp::Sig()) {
- HandleScope scope;
-
- imp::NativeGetter getter_ =
- imp::GetterCallbackWrapper;
- imp::NativeSetter setter_ =
- setter ? imp::SetterCallbackWrapper : 0;
-
- v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
- otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
- v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
-
- obj->SetInternalField(
- imp::kGetterIndex
- , New<v8::External>(reinterpret_cast<void *>(getter)));
-
- if (setter != 0) {
- obj->SetInternalField(
- imp::kSetterIndex
- , New<v8::External>(reinterpret_cast<void *>(setter)));
- }
-
- if (!data.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, data);
- }
-
- tpl->SetAccessor(
- name
- , getter_
- , setter_
- , obj
- , settings
- , attribute
- , signature);
-}
-
-inline bool SetAccessor(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> name
- , GetterCallback getter
- , SetterCallback setter = 0
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()
- , v8::AccessControl settings = v8::DEFAULT
- , v8::PropertyAttribute attribute = v8::None) {
- HandleScope scope;
-
- imp::NativeGetter getter_ =
- imp::GetterCallbackWrapper;
- imp::NativeSetter setter_ =
- setter ? imp::SetterCallbackWrapper : 0;
-
- v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
- otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
- v8::Local<v8::Object> dataobj = NewInstance(otpl).ToLocalChecked();
-
- dataobj->SetInternalField(
- imp::kGetterIndex
- , New<v8::External>(reinterpret_cast<void *>(getter)));
-
- if (!data.IsEmpty()) {
- dataobj->SetInternalField(imp::kDataIndex, data);
- }
-
- if (setter) {
- dataobj->SetInternalField(
- imp::kSetterIndex
- , New<v8::External>(reinterpret_cast<void *>(setter)));
- }
-
-#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
- return obj->SetAccessor(
- GetCurrentContext()
- , name
- , getter_
- , setter_
- , dataobj
- , settings
- , attribute).FromMaybe(false);
-#else
- return obj->SetAccessor(
- name
- , getter_
- , setter_
- , dataobj
- , settings
- , attribute);
-#endif
-}
-
-inline void SetNamedPropertyHandler(
- v8::Local<v8::ObjectTemplate> tpl
- , PropertyGetterCallback getter
- , PropertySetterCallback setter = 0
- , PropertyQueryCallback query = 0
- , PropertyDeleterCallback deleter = 0
- , PropertyEnumeratorCallback enumerator = 0
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
- HandleScope scope;
-
- imp::NativePropertyGetter getter_ =
- imp::PropertyGetterCallbackWrapper;
- imp::NativePropertySetter setter_ =
- setter ? imp::PropertySetterCallbackWrapper : 0;
- imp::NativePropertyQuery query_ =
- query ? imp::PropertyQueryCallbackWrapper : 0;
- imp::NativePropertyDeleter *deleter_ =
- deleter ? imp::PropertyDeleterCallbackWrapper : 0;
- imp::NativePropertyEnumerator enumerator_ =
- enumerator ? imp::PropertyEnumeratorCallbackWrapper : 0;
-
- v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
- otpl->SetInternalFieldCount(imp::kPropertyFieldCount);
- v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
- obj->SetInternalField(
- imp::kPropertyGetterIndex
- , New<v8::External>(reinterpret_cast<void *>(getter)));
-
- if (setter) {
- obj->SetInternalField(
- imp::kPropertySetterIndex
- , New<v8::External>(reinterpret_cast<void *>(setter)));
- }
-
- if (query) {
- obj->SetInternalField(
- imp::kPropertyQueryIndex
- , New<v8::External>(reinterpret_cast<void *>(query)));
- }
-
- if (deleter) {
- obj->SetInternalField(
- imp::kPropertyDeleterIndex
- , New<v8::External>(reinterpret_cast<void *>(deleter)));
- }
-
- if (enumerator) {
- obj->SetInternalField(
- imp::kPropertyEnumeratorIndex
- , New<v8::External>(reinterpret_cast<void *>(enumerator)));
- }
-
- if (!data.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, data);
- }
-
-#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
- tpl->SetHandler(v8::NamedPropertyHandlerConfiguration(
- getter_, setter_, query_, deleter_, enumerator_, obj));
-#else
- tpl->SetNamedPropertyHandler(
- getter_
- , setter_
- , query_
- , deleter_
- , enumerator_
- , obj);
-#endif
-}
-
-inline void SetIndexedPropertyHandler(
- v8::Local<v8::ObjectTemplate> tpl
- , IndexGetterCallback getter
- , IndexSetterCallback setter = 0
- , IndexQueryCallback query = 0
- , IndexDeleterCallback deleter = 0
- , IndexEnumeratorCallback enumerator = 0
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
- HandleScope scope;
-
- imp::NativeIndexGetter getter_ =
- imp::IndexGetterCallbackWrapper;
- imp::NativeIndexSetter setter_ =
- setter ? imp::IndexSetterCallbackWrapper : 0;
- imp::NativeIndexQuery query_ =
- query ? imp::IndexQueryCallbackWrapper : 0;
- imp::NativeIndexDeleter deleter_ =
- deleter ? imp::IndexDeleterCallbackWrapper : 0;
- imp::NativeIndexEnumerator enumerator_ =
- enumerator ? imp::IndexEnumeratorCallbackWrapper : 0;
-
- v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
- otpl->SetInternalFieldCount(imp::kIndexPropertyFieldCount);
- v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
- obj->SetInternalField(
- imp::kIndexPropertyGetterIndex
- , New<v8::External>(reinterpret_cast<void *>(getter)));
-
- if (setter) {
- obj->SetInternalField(
- imp::kIndexPropertySetterIndex
- , New<v8::External>(reinterpret_cast<void *>(setter)));
- }
-
- if (query) {
- obj->SetInternalField(
- imp::kIndexPropertyQueryIndex
- , New<v8::External>(reinterpret_cast<void *>(query)));
- }
-
- if (deleter) {
- obj->SetInternalField(
- imp::kIndexPropertyDeleterIndex
- , New<v8::External>(reinterpret_cast<void *>(deleter)));
- }
-
- if (enumerator) {
- obj->SetInternalField(
- imp::kIndexPropertyEnumeratorIndex
- , New<v8::External>(reinterpret_cast<void *>(enumerator)));
- }
-
- if (!data.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, data);
- }
-
-#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
- tpl->SetHandler(v8::IndexedPropertyHandlerConfiguration(
- getter_, setter_, query_, deleter_, enumerator_, obj));
-#else
- tpl->SetIndexedPropertyHandler(
- getter_
- , setter_
- , query_
- , deleter_
- , enumerator_
- , obj);
-#endif
-}
-
-inline void SetCallHandler(
- v8::Local<v8::FunctionTemplate> tpl
- , FunctionCallback callback
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
- HandleScope scope;
-
- v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
- otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
- v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
-
- obj->SetInternalField(
- imp::kFunctionIndex
- , New<v8::External>(reinterpret_cast<void *>(callback)));
-
- if (!data.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, data);
- }
-
- tpl->SetCallHandler(imp::FunctionCallbackWrapper, obj);
-}
-
-
-inline void SetCallAsFunctionHandler(
- v8::Local<v8::ObjectTemplate> tpl,
- FunctionCallback callback,
- v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
- HandleScope scope;
-
- v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
- otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
- v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
-
- obj->SetInternalField(
- imp::kFunctionIndex
- , New<v8::External>(reinterpret_cast<void *>(callback)));
-
- if (!data.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, data);
- }
-
- tpl->SetCallAsFunctionHandler(imp::FunctionCallbackWrapper, obj);
-}
-
-//=== Weak Persistent Handling =================================================
-
-#include "nan_weak.h" // NOLINT(build/include)
-
-//=== ObjectWrap ===============================================================
-
-#include "nan_object_wrap.h" // NOLINT(build/include)
-
-//=== HiddenValue/Private ======================================================
-
-#include "nan_private.h" // NOLINT(build/include)
-
-//=== Export ==================================================================
-
-inline
-void
-Export(ADDON_REGISTER_FUNCTION_ARGS_TYPE target, const char *name,
- FunctionCallback f) {
- HandleScope scope;
-
- Set(target, New<v8::String>(name).ToLocalChecked(),
- GetFunction(New<v8::FunctionTemplate>(f)).ToLocalChecked());
-}
-
-//=== Tap Reverse Binding =====================================================
-
-struct Tap {
- explicit Tap(v8::Local<v8::Value> t) : t_() {
- HandleScope scope;
-
- t_.Reset(To<v8::Object>(t).ToLocalChecked());
- }
-
- ~Tap() { t_.Reset(); } // not sure if necessary
-
- inline void plan(int i) {
- HandleScope scope;
- v8::Local<v8::Value> arg = New(i);
- Call("plan", New(t_), 1, &arg);
- }
-
- inline void ok(bool isOk, const char *msg = NULL) {
- HandleScope scope;
- v8::Local<v8::Value> args[2];
- args[0] = New(isOk);
- if (msg) args[1] = New(msg).ToLocalChecked();
- Call("ok", New(t_), msg ? 2 : 1, args);
- }
-
- inline void pass(const char * msg = NULL) {
- HandleScope scope;
- v8::Local<v8::Value> hmsg;
- if (msg) hmsg = New(msg).ToLocalChecked();
- Call("pass", New(t_), msg ? 1 : 0, &hmsg);
- }
-
- inline void end() {
- HandleScope scope;
- Call("end", New(t_), 0, NULL);
- }
-
- private:
- Persistent<v8::Object> t_;
-};
-
-#define NAN_STRINGIZE2(x) #x
-#define NAN_STRINGIZE(x) NAN_STRINGIZE2(x)
-#define NAN_TEST_EXPRESSION(expression) \
- ( expression ), __FILE__ ":" NAN_STRINGIZE(__LINE__) ": " #expression
-
-#define NAN_EXPORT(target, function) Export(target, #function, function)
-
-#undef TYPE_CHECK
-
-//=== Generic Maybefication ===================================================
-
-namespace imp {
-
-template <typename T> struct Maybefier;
-
-template <typename T> struct Maybefier<v8::Local<T> > {
- inline static MaybeLocal<T> convert(v8::Local<T> v) {
- return v;
- }
-};
-
-template <typename T> struct Maybefier<MaybeLocal<T> > {
- inline static MaybeLocal<T> convert(MaybeLocal<T> v) {
- return v;
- }
-};
-
-} // end of namespace imp
-
-template <typename T, template <typename> class MaybeMaybe>
-inline MaybeLocal<T>
-MakeMaybe(MaybeMaybe<T> v) {
- return imp::Maybefier<MaybeMaybe<T> >::convert(v);
-}
-
-//=== TypedArrayContents =======================================================
-
-#include "nan_typedarray_contents.h" // NOLINT(build/include)
-
-//=== JSON =====================================================================
-
-#include "nan_json.h" // NOLINT(build/include)
-
-} // end of namespace Nan
-
-#endif // NAN_H_
diff --git a/node_modules/nan/nan_callbacks.h b/node_modules/nan/nan_callbacks.h
deleted file mode 100644
index 53ede84..0000000
--- a/node_modules/nan/nan_callbacks.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CALLBACKS_H_
-#define NAN_CALLBACKS_H_
-
-template<typename T> class FunctionCallbackInfo;
-template<typename T> class PropertyCallbackInfo;
-template<typename T> class Global;
-
-typedef void(*FunctionCallback)(const FunctionCallbackInfo<v8::Value>&);
-typedef void(*GetterCallback)
- (v8::Local<v8::String>, const PropertyCallbackInfo<v8::Value>&);
-typedef void(*SetterCallback)(
- v8::Local<v8::String>,
- v8::Local<v8::Value>,
- const PropertyCallbackInfo<void>&);
-typedef void(*PropertyGetterCallback)(
- v8::Local<v8::String>,
- const PropertyCallbackInfo<v8::Value>&);
-typedef void(*PropertySetterCallback)(
- v8::Local<v8::String>,
- v8::Local<v8::Value>,
- const PropertyCallbackInfo<v8::Value>&);
-typedef void(*PropertyEnumeratorCallback)
- (const PropertyCallbackInfo<v8::Array>&);
-typedef void(*PropertyDeleterCallback)(
- v8::Local<v8::String>,
- const PropertyCallbackInfo<v8::Boolean>&);
-typedef void(*PropertyQueryCallback)(
- v8::Local<v8::String>,
- const PropertyCallbackInfo<v8::Integer>&);
-typedef void(*IndexGetterCallback)(
- uint32_t,
- const PropertyCallbackInfo<v8::Value>&);
-typedef void(*IndexSetterCallback)(
- uint32_t,
- v8::Local<v8::Value>,
- const PropertyCallbackInfo<v8::Value>&);
-typedef void(*IndexEnumeratorCallback)
- (const PropertyCallbackInfo<v8::Array>&);
-typedef void(*IndexDeleterCallback)(
- uint32_t,
- const PropertyCallbackInfo<v8::Boolean>&);
-typedef void(*IndexQueryCallback)(
- uint32_t,
- const PropertyCallbackInfo<v8::Integer>&);
-
-namespace imp {
-typedef v8::Local<v8::AccessorSignature> Sig;
-
-static const int kDataIndex = 0;
-
-static const int kFunctionIndex = 1;
-static const int kFunctionFieldCount = 2;
-
-static const int kGetterIndex = 1;
-static const int kSetterIndex = 2;
-static const int kAccessorFieldCount = 3;
-
-static const int kPropertyGetterIndex = 1;
-static const int kPropertySetterIndex = 2;
-static const int kPropertyEnumeratorIndex = 3;
-static const int kPropertyDeleterIndex = 4;
-static const int kPropertyQueryIndex = 5;
-static const int kPropertyFieldCount = 6;
-
-static const int kIndexPropertyGetterIndex = 1;
-static const int kIndexPropertySetterIndex = 2;
-static const int kIndexPropertyEnumeratorIndex = 3;
-static const int kIndexPropertyDeleterIndex = 4;
-static const int kIndexPropertyQueryIndex = 5;
-static const int kIndexPropertyFieldCount = 6;
-
-} // end of namespace imp
-
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-# include "nan_callbacks_12_inl.h" // NOLINT(build/include)
-#else
-# include "nan_callbacks_pre_12_inl.h" // NOLINT(build/include)
-#endif
-
-#endif // NAN_CALLBACKS_H_
diff --git a/node_modules/nan/nan_callbacks_12_inl.h b/node_modules/nan/nan_callbacks_12_inl.h
deleted file mode 100644
index c27b18d..0000000
--- a/node_modules/nan/nan_callbacks_12_inl.h
+++ /dev/null
@@ -1,514 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CALLBACKS_12_INL_H_
-#define NAN_CALLBACKS_12_INL_H_
-
-template<typename T>
-class ReturnValue {
- v8::ReturnValue<T> value_;
-
- public:
- template <class S>
- explicit inline ReturnValue(const v8::ReturnValue<S> &value) :
- value_(value) {}
- template <class S>
- explicit inline ReturnValue(const ReturnValue<S>& that)
- : value_(that.value_) {
- TYPE_CHECK(T, S);
- }
-
- // Handle setters
- template <typename S> inline void Set(const v8::Local<S> &handle) {
- TYPE_CHECK(T, S);
- value_.Set(handle);
- }
-
- template <typename S> inline void Set(const Global<S> &handle) {
- TYPE_CHECK(T, S);
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && \
- (V8_MINOR_VERSION > 5 || (V8_MINOR_VERSION == 5 && \
- defined(V8_BUILD_NUMBER) && V8_BUILD_NUMBER >= 8))))
- value_.Set(handle);
-#else
- value_.Set(*reinterpret_cast<const v8::Persistent<S>*>(&handle));
- const_cast<Global<S> &>(handle).Reset();
-#endif
- }
-
- // Fast primitive setters
- inline void Set(bool value) {
- TYPE_CHECK(T, v8::Boolean);
- value_.Set(value);
- }
-
- inline void Set(double i) {
- TYPE_CHECK(T, v8::Number);
- value_.Set(i);
- }
-
- inline void Set(int32_t i) {
- TYPE_CHECK(T, v8::Integer);
- value_.Set(i);
- }
-
- inline void Set(uint32_t i) {
- TYPE_CHECK(T, v8::Integer);
- value_.Set(i);
- }
-
- // Fast JS primitive setters
- inline void SetNull() {
- TYPE_CHECK(T, v8::Primitive);
- value_.SetNull();
- }
-
- inline void SetUndefined() {
- TYPE_CHECK(T, v8::Primitive);
- value_.SetUndefined();
- }
-
- inline void SetEmptyString() {
- TYPE_CHECK(T, v8::String);
- value_.SetEmptyString();
- }
-
- // Convenience getter for isolate
- inline v8::Isolate *GetIsolate() const {
- return value_.GetIsolate();
- }
-
- // Pointer setter: Uncompilable to prevent inadvertent misuse.
- template<typename S>
- inline void Set(S *whatever) { TYPE_CHECK(S*, v8::Primitive); }
-};
-
-template<typename T>
-class FunctionCallbackInfo {
- const v8::FunctionCallbackInfo<T> &info_;
- const v8::Local<v8::Value> data_;
-
- public:
- explicit inline FunctionCallbackInfo(
- const v8::FunctionCallbackInfo<T> &info
- , v8::Local<v8::Value> data) :
- info_(info)
- , data_(data) {}
-
- inline ReturnValue<T> GetReturnValue() const {
- return ReturnValue<T>(info_.GetReturnValue());
- }
-
-#if NODE_MAJOR_VERSION < 10
- inline v8::Local<v8::Function> Callee() const { return info_.Callee(); }
-#endif
- inline v8::Local<v8::Value> Data() const { return data_; }
- inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
- inline bool IsConstructCall() const { return info_.IsConstructCall(); }
- inline int Length() const { return info_.Length(); }
- inline v8::Local<v8::Value> operator[](int i) const { return info_[i]; }
- inline v8::Local<v8::Object> This() const { return info_.This(); }
- inline v8::Isolate *GetIsolate() const { return info_.GetIsolate(); }
-
-
- protected:
- static const int kHolderIndex = 0;
- static const int kIsolateIndex = 1;
- static const int kReturnValueDefaultValueIndex = 2;
- static const int kReturnValueIndex = 3;
- static const int kDataIndex = 4;
- static const int kCalleeIndex = 5;
- static const int kContextSaveIndex = 6;
- static const int kArgsLength = 7;
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(FunctionCallbackInfo)
-};
-
-template<typename T>
-class PropertyCallbackInfo {
- const v8::PropertyCallbackInfo<T> &info_;
- const v8::Local<v8::Value> data_;
-
- public:
- explicit inline PropertyCallbackInfo(
- const v8::PropertyCallbackInfo<T> &info
- , const v8::Local<v8::Value> data) :
- info_(info)
- , data_(data) {}
-
- inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); }
- inline v8::Local<v8::Value> Data() const { return data_; }
- inline v8::Local<v8::Object> This() const { return info_.This(); }
- inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
- inline ReturnValue<T> GetReturnValue() const {
- return ReturnValue<T>(info_.GetReturnValue());
- }
-
- protected:
- static const int kHolderIndex = 0;
- static const int kIsolateIndex = 1;
- static const int kReturnValueDefaultValueIndex = 2;
- static const int kReturnValueIndex = 3;
- static const int kDataIndex = 4;
- static const int kThisIndex = 5;
- static const int kArgsLength = 6;
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(PropertyCallbackInfo)
-};
-
-namespace imp {
-static
-void FunctionCallbackWrapper(const v8::FunctionCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- FunctionCallback callback = reinterpret_cast<FunctionCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kFunctionIndex).As<v8::External>()->Value()));
- FunctionCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- callback(cbinfo);
-}
-
-typedef void (*NativeFunction)(const v8::FunctionCallbackInfo<v8::Value> &);
-
-#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-static
-void GetterCallbackWrapper(
- v8::Local<v8::Name> property
- , const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- GetterCallback callback = reinterpret_cast<GetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kGetterIndex).As<v8::External>()->Value()));
- callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (*NativeGetter)
- (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void SetterCallbackWrapper(
- v8::Local<v8::Name> property
- , v8::Local<v8::Value> value
- , const v8::PropertyCallbackInfo<void> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<void>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- SetterCallback callback = reinterpret_cast<SetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kSetterIndex).As<v8::External>()->Value()));
- callback(property.As<v8::String>(), value, cbinfo);
-}
-
-typedef void (*NativeSetter)(
- v8::Local<v8::Name>
- , v8::Local<v8::Value>
- , const v8::PropertyCallbackInfo<void> &);
-#else
-static
-void GetterCallbackWrapper(
- v8::Local<v8::String> property
- , const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- GetterCallback callback = reinterpret_cast<GetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kGetterIndex).As<v8::External>()->Value()));
- callback(property, cbinfo);
-}
-
-typedef void (*NativeGetter)
- (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void SetterCallbackWrapper(
- v8::Local<v8::String> property
- , v8::Local<v8::Value> value
- , const v8::PropertyCallbackInfo<void> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<void>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- SetterCallback callback = reinterpret_cast<SetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kSetterIndex).As<v8::External>()->Value()));
- callback(property, value, cbinfo);
-}
-
-typedef void (*NativeSetter)(
- v8::Local<v8::String>
- , v8::Local<v8::Value>
- , const v8::PropertyCallbackInfo<void> &);
-#endif
-
-#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-static
-void PropertyGetterCallbackWrapper(
- v8::Local<v8::Name> property
- , const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyGetterCallback callback = reinterpret_cast<PropertyGetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyGetterIndex)
- .As<v8::External>()->Value()));
- callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (*NativePropertyGetter)
- (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertySetterCallbackWrapper(
- v8::Local<v8::Name> property
- , v8::Local<v8::Value> value
- , const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertySetterCallback callback = reinterpret_cast<PropertySetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertySetterIndex)
- .As<v8::External>()->Value()));
- callback(property.As<v8::String>(), value, cbinfo);
-}
-
-typedef void (*NativePropertySetter)(
- v8::Local<v8::Name>
- , v8::Local<v8::Value>
- , const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertyEnumeratorCallbackWrapper(
- const v8::PropertyCallbackInfo<v8::Array> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Array>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyEnumeratorCallback callback =
- reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyEnumeratorIndex)
- .As<v8::External>()->Value()));
- callback(cbinfo);
-}
-
-typedef void (*NativePropertyEnumerator)
- (const v8::PropertyCallbackInfo<v8::Array> &);
-
-static
-void PropertyDeleterCallbackWrapper(
- v8::Local<v8::Name> property
- , const v8::PropertyCallbackInfo<v8::Boolean> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Boolean>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyDeleterCallback callback = reinterpret_cast<PropertyDeleterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyDeleterIndex)
- .As<v8::External>()->Value()));
- callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (NativePropertyDeleter)
- (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Boolean> &);
-
-static
-void PropertyQueryCallbackWrapper(
- v8::Local<v8::Name> property
- , const v8::PropertyCallbackInfo<v8::Integer> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Integer>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyQueryIndex)
- .As<v8::External>()->Value()));
- callback(property.As<v8::String>(), cbinfo);
-}
-
-typedef void (*NativePropertyQuery)
- (v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Integer> &);
-#else
-static
-void PropertyGetterCallbackWrapper(
- v8::Local<v8::String> property
- , const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyGetterCallback callback = reinterpret_cast<PropertyGetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyGetterIndex)
- .As<v8::External>()->Value()));
- callback(property, cbinfo);
-}
-
-typedef void (*NativePropertyGetter)
- (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertySetterCallbackWrapper(
- v8::Local<v8::String> property
- , v8::Local<v8::Value> value
- , const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertySetterCallback callback = reinterpret_cast<PropertySetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertySetterIndex)
- .As<v8::External>()->Value()));
- callback(property, value, cbinfo);
-}
-
-typedef void (*NativePropertySetter)(
- v8::Local<v8::String>
- , v8::Local<v8::Value>
- , const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void PropertyEnumeratorCallbackWrapper(
- const v8::PropertyCallbackInfo<v8::Array> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Array>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyEnumeratorCallback callback =
- reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyEnumeratorIndex)
- .As<v8::External>()->Value()));
- callback(cbinfo);
-}
-
-typedef void (*NativePropertyEnumerator)
- (const v8::PropertyCallbackInfo<v8::Array> &);
-
-static
-void PropertyDeleterCallbackWrapper(
- v8::Local<v8::String> property
- , const v8::PropertyCallbackInfo<v8::Boolean> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Boolean>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyDeleterCallback callback = reinterpret_cast<PropertyDeleterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyDeleterIndex)
- .As<v8::External>()->Value()));
- callback(property, cbinfo);
-}
-
-typedef void (NativePropertyDeleter)
- (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Boolean> &);
-
-static
-void PropertyQueryCallbackWrapper(
- v8::Local<v8::String> property
- , const v8::PropertyCallbackInfo<v8::Integer> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Integer>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyQueryIndex)
- .As<v8::External>()->Value()));
- callback(property, cbinfo);
-}
-
-typedef void (*NativePropertyQuery)
- (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Integer> &);
-#endif
-
-static
-void IndexGetterCallbackWrapper(
- uint32_t index, const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexGetterCallback callback = reinterpret_cast<IndexGetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertyGetterIndex)
- .As<v8::External>()->Value()));
- callback(index, cbinfo);
-}
-
-typedef void (*NativeIndexGetter)
- (uint32_t, const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void IndexSetterCallbackWrapper(
- uint32_t index
- , v8::Local<v8::Value> value
- , const v8::PropertyCallbackInfo<v8::Value> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexSetterCallback callback = reinterpret_cast<IndexSetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertySetterIndex)
- .As<v8::External>()->Value()));
- callback(index, value, cbinfo);
-}
-
-typedef void (*NativeIndexSetter)(
- uint32_t
- , v8::Local<v8::Value>
- , const v8::PropertyCallbackInfo<v8::Value> &);
-
-static
-void IndexEnumeratorCallbackWrapper(
- const v8::PropertyCallbackInfo<v8::Array> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Array>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexEnumeratorCallback callback = reinterpret_cast<IndexEnumeratorCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(
- kIndexPropertyEnumeratorIndex).As<v8::External>()->Value()));
- callback(cbinfo);
-}
-
-typedef void (*NativeIndexEnumerator)
- (const v8::PropertyCallbackInfo<v8::Array> &);
-
-static
-void IndexDeleterCallbackWrapper(
- uint32_t index, const v8::PropertyCallbackInfo<v8::Boolean> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Boolean>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexDeleterCallback callback = reinterpret_cast<IndexDeleterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertyDeleterIndex)
- .As<v8::External>()->Value()));
- callback(index, cbinfo);
-}
-
-typedef void (*NativeIndexDeleter)
- (uint32_t, const v8::PropertyCallbackInfo<v8::Boolean> &);
-
-static
-void IndexQueryCallbackWrapper(
- uint32_t index, const v8::PropertyCallbackInfo<v8::Integer> &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Integer>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexQueryCallback callback = reinterpret_cast<IndexQueryCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertyQueryIndex)
- .As<v8::External>()->Value()));
- callback(index, cbinfo);
-}
-
-typedef void (*NativeIndexQuery)
- (uint32_t, const v8::PropertyCallbackInfo<v8::Integer> &);
-} // end of namespace imp
-
-#endif // NAN_CALLBACKS_12_INL_H_
diff --git a/node_modules/nan/nan_callbacks_pre_12_inl.h b/node_modules/nan/nan_callbacks_pre_12_inl.h
deleted file mode 100644
index c9ba499..0000000
--- a/node_modules/nan/nan_callbacks_pre_12_inl.h
+++ /dev/null
@@ -1,520 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CALLBACKS_PRE_12_INL_H_
-#define NAN_CALLBACKS_PRE_12_INL_H_
-
-namespace imp {
-template<typename T> class ReturnValueImp;
-} // end of namespace imp
-
-template<typename T>
-class ReturnValue {
- v8::Isolate *isolate_;
- v8::Persistent<T> *value_;
- friend class imp::ReturnValueImp<T>;
-
- public:
- template <class S>
- explicit inline ReturnValue(v8::Isolate *isolate, v8::Persistent<S> *p) :
- isolate_(isolate), value_(p) {}
- template <class S>
- explicit inline ReturnValue(const ReturnValue<S>& that)
- : isolate_(that.isolate_), value_(that.value_) {
- TYPE_CHECK(T, S);
- }
-
- // Handle setters
- template <typename S> inline void Set(const v8::Local<S> &handle) {
- TYPE_CHECK(T, S);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(handle);
- }
-
- template <typename S> inline void Set(const Global<S> &handle) {
- TYPE_CHECK(T, S);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(handle.persistent);
- const_cast<Global<S> &>(handle).Reset();
- }
-
- // Fast primitive setters
- inline void Set(bool value) {
- v8::HandleScope scope;
-
- TYPE_CHECK(T, v8::Boolean);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(v8::Boolean::New(value));
- }
-
- inline void Set(double i) {
- v8::HandleScope scope;
-
- TYPE_CHECK(T, v8::Number);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(v8::Number::New(i));
- }
-
- inline void Set(int32_t i) {
- v8::HandleScope scope;
-
- TYPE_CHECK(T, v8::Integer);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(v8::Int32::New(i));
- }
-
- inline void Set(uint32_t i) {
- v8::HandleScope scope;
-
- TYPE_CHECK(T, v8::Integer);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(v8::Uint32::NewFromUnsigned(i));
- }
-
- // Fast JS primitive setters
- inline void SetNull() {
- v8::HandleScope scope;
-
- TYPE_CHECK(T, v8::Primitive);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(v8::Null());
- }
-
- inline void SetUndefined() {
- v8::HandleScope scope;
-
- TYPE_CHECK(T, v8::Primitive);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(v8::Undefined());
- }
-
- inline void SetEmptyString() {
- v8::HandleScope scope;
-
- TYPE_CHECK(T, v8::String);
- value_->Dispose();
- *value_ = v8::Persistent<T>::New(v8::String::Empty());
- }
-
- // Convenience getter for isolate
- inline v8::Isolate *GetIsolate() const {
- return isolate_;
- }
-
- // Pointer setter: Uncompilable to prevent inadvertent misuse.
- template<typename S>
- inline void Set(S *whatever) { TYPE_CHECK(S*, v8::Primitive); }
-};
-
-template<typename T>
-class FunctionCallbackInfo {
- const v8::Arguments &args_;
- v8::Local<v8::Value> data_;
- ReturnValue<T> return_value_;
- v8::Persistent<T> retval_;
-
- public:
- explicit inline FunctionCallbackInfo(
- const v8::Arguments &args
- , v8::Local<v8::Value> data) :
- args_(args)
- , data_(data)
- , return_value_(args.GetIsolate(), &retval_)
- , retval_(v8::Persistent<T>::New(v8::Undefined())) {}
-
- inline ~FunctionCallbackInfo() {
- retval_.Dispose();
- retval_.Clear();
- }
-
- inline ReturnValue<T> GetReturnValue() const {
- return ReturnValue<T>(return_value_);
- }
-
- inline v8::Local<v8::Function> Callee() const { return args_.Callee(); }
- inline v8::Local<v8::Value> Data() const { return data_; }
- inline v8::Local<v8::Object> Holder() const { return args_.Holder(); }
- inline bool IsConstructCall() const { return args_.IsConstructCall(); }
- inline int Length() const { return args_.Length(); }
- inline v8::Local<v8::Value> operator[](int i) const { return args_[i]; }
- inline v8::Local<v8::Object> This() const { return args_.This(); }
- inline v8::Isolate *GetIsolate() const { return args_.GetIsolate(); }
-
-
- protected:
- static const int kHolderIndex = 0;
- static const int kIsolateIndex = 1;
- static const int kReturnValueDefaultValueIndex = 2;
- static const int kReturnValueIndex = 3;
- static const int kDataIndex = 4;
- static const int kCalleeIndex = 5;
- static const int kContextSaveIndex = 6;
- static const int kArgsLength = 7;
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(FunctionCallbackInfo)
-};
-
-template<typename T>
-class PropertyCallbackInfoBase {
- const v8::AccessorInfo &info_;
- const v8::Local<v8::Value> data_;
-
- public:
- explicit inline PropertyCallbackInfoBase(
- const v8::AccessorInfo &info
- , const v8::Local<v8::Value> data) :
- info_(info)
- , data_(data) {}
-
- inline v8::Isolate* GetIsolate() const { return info_.GetIsolate(); }
- inline v8::Local<v8::Value> Data() const { return data_; }
- inline v8::Local<v8::Object> This() const { return info_.This(); }
- inline v8::Local<v8::Object> Holder() const { return info_.Holder(); }
-
- protected:
- static const int kHolderIndex = 0;
- static const int kIsolateIndex = 1;
- static const int kReturnValueDefaultValueIndex = 2;
- static const int kReturnValueIndex = 3;
- static const int kDataIndex = 4;
- static const int kThisIndex = 5;
- static const int kArgsLength = 6;
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(PropertyCallbackInfoBase)
-};
-
-template<typename T>
-class PropertyCallbackInfo : public PropertyCallbackInfoBase<T> {
- ReturnValue<T> return_value_;
- v8::Persistent<T> retval_;
-
- public:
- explicit inline PropertyCallbackInfo(
- const v8::AccessorInfo &info
- , const v8::Local<v8::Value> data) :
- PropertyCallbackInfoBase<T>(info, data)
- , return_value_(info.GetIsolate(), &retval_)
- , retval_(v8::Persistent<T>::New(v8::Undefined())) {}
-
- inline ~PropertyCallbackInfo() {
- retval_.Dispose();
- retval_.Clear();
- }
-
- inline ReturnValue<T> GetReturnValue() const { return return_value_; }
-};
-
-template<>
-class PropertyCallbackInfo<v8::Array> :
- public PropertyCallbackInfoBase<v8::Array> {
- ReturnValue<v8::Array> return_value_;
- v8::Persistent<v8::Array> retval_;
-
- public:
- explicit inline PropertyCallbackInfo(
- const v8::AccessorInfo &info
- , const v8::Local<v8::Value> data) :
- PropertyCallbackInfoBase<v8::Array>(info, data)
- , return_value_(info.GetIsolate(), &retval_)
- , retval_(v8::Persistent<v8::Array>::New(v8::Local<v8::Array>())) {}
-
- inline ~PropertyCallbackInfo() {
- retval_.Dispose();
- retval_.Clear();
- }
-
- inline ReturnValue<v8::Array> GetReturnValue() const {
- return return_value_;
- }
-};
-
-template<>
-class PropertyCallbackInfo<v8::Boolean> :
- public PropertyCallbackInfoBase<v8::Boolean> {
- ReturnValue<v8::Boolean> return_value_;
- v8::Persistent<v8::Boolean> retval_;
-
- public:
- explicit inline PropertyCallbackInfo(
- const v8::AccessorInfo &info
- , const v8::Local<v8::Value> data) :
- PropertyCallbackInfoBase<v8::Boolean>(info, data)
- , return_value_(info.GetIsolate(), &retval_)
- , retval_(v8::Persistent<v8::Boolean>::New(v8::Local<v8::Boolean>())) {}
-
- inline ~PropertyCallbackInfo() {
- retval_.Dispose();
- retval_.Clear();
- }
-
- inline ReturnValue<v8::Boolean> GetReturnValue() const {
- return return_value_;
- }
-};
-
-template<>
-class PropertyCallbackInfo<v8::Integer> :
- public PropertyCallbackInfoBase<v8::Integer> {
- ReturnValue<v8::Integer> return_value_;
- v8::Persistent<v8::Integer> retval_;
-
- public:
- explicit inline PropertyCallbackInfo(
- const v8::AccessorInfo &info
- , const v8::Local<v8::Value> data) :
- PropertyCallbackInfoBase<v8::Integer>(info, data)
- , return_value_(info.GetIsolate(), &retval_)
- , retval_(v8::Persistent<v8::Integer>::New(v8::Local<v8::Integer>())) {}
-
- inline ~PropertyCallbackInfo() {
- retval_.Dispose();
- retval_.Clear();
- }
-
- inline ReturnValue<v8::Integer> GetReturnValue() const {
- return return_value_;
- }
-};
-
-namespace imp {
-template<typename T>
-class ReturnValueImp : public ReturnValue<T> {
- public:
- explicit ReturnValueImp(ReturnValue<T> that) :
- ReturnValue<T>(that) {}
- inline v8::Handle<T> Value() {
- return *ReturnValue<T>::value_;
- }
-};
-
-static
-v8::Handle<v8::Value> FunctionCallbackWrapper(const v8::Arguments &args) {
- v8::Local<v8::Object> obj = args.Data().As<v8::Object>();
- FunctionCallback callback = reinterpret_cast<FunctionCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kFunctionIndex).As<v8::External>()->Value()));
- FunctionCallbackInfo<v8::Value>
- cbinfo(args, obj->GetInternalField(kDataIndex));
- callback(cbinfo);
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeFunction)(const v8::Arguments &);
-
-static
-v8::Handle<v8::Value> GetterCallbackWrapper(
- v8::Local<v8::String> property, const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- GetterCallback callback = reinterpret_cast<GetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kGetterIndex).As<v8::External>()->Value()));
- callback(property, cbinfo);
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeGetter)
- (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-void SetterCallbackWrapper(
- v8::Local<v8::String> property
- , v8::Local<v8::Value> value
- , const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<void>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- SetterCallback callback = reinterpret_cast<SetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kSetterIndex).As<v8::External>()->Value()));
- callback(property, value, cbinfo);
-}
-
-typedef void (*NativeSetter)
- (v8::Local<v8::String>, v8::Local<v8::Value>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> PropertyGetterCallbackWrapper(
- v8::Local<v8::String> property, const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyGetterCallback callback = reinterpret_cast<PropertyGetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyGetterIndex)
- .As<v8::External>()->Value()));
- callback(property, cbinfo);
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativePropertyGetter)
- (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> PropertySetterCallbackWrapper(
- v8::Local<v8::String> property
- , v8::Local<v8::Value> value
- , const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertySetterCallback callback = reinterpret_cast<PropertySetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertySetterIndex)
- .As<v8::External>()->Value()));
- callback(property, value, cbinfo);
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativePropertySetter)
- (v8::Local<v8::String>, v8::Local<v8::Value>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Array> PropertyEnumeratorCallbackWrapper(
- const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Array>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyEnumeratorCallback callback =
- reinterpret_cast<PropertyEnumeratorCallback>(reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyEnumeratorIndex)
- .As<v8::External>()->Value()));
- callback(cbinfo);
- return ReturnValueImp<v8::Array>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Array> (*NativePropertyEnumerator)
- (const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Boolean> PropertyDeleterCallbackWrapper(
- v8::Local<v8::String> property
- , const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Boolean>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyDeleterCallback callback = reinterpret_cast<PropertyDeleterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyDeleterIndex)
- .As<v8::External>()->Value()));
- callback(property, cbinfo);
- return ReturnValueImp<v8::Boolean>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Boolean> (NativePropertyDeleter)
- (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Integer> PropertyQueryCallbackWrapper(
- v8::Local<v8::String> property, const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Integer>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- PropertyQueryCallback callback = reinterpret_cast<PropertyQueryCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kPropertyQueryIndex)
- .As<v8::External>()->Value()));
- callback(property, cbinfo);
- return ReturnValueImp<v8::Integer>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Integer> (*NativePropertyQuery)
- (v8::Local<v8::String>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> IndexGetterCallbackWrapper(
- uint32_t index, const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexGetterCallback callback = reinterpret_cast<IndexGetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertyGetterIndex)
- .As<v8::External>()->Value()));
- callback(index, cbinfo);
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeIndexGetter)
- (uint32_t, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Value> IndexSetterCallbackWrapper(
- uint32_t index
- , v8::Local<v8::Value> value
- , const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Value>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexSetterCallback callback = reinterpret_cast<IndexSetterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertySetterIndex)
- .As<v8::External>()->Value()));
- callback(index, value, cbinfo);
- return ReturnValueImp<v8::Value>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Value> (*NativeIndexSetter)
- (uint32_t, v8::Local<v8::Value>, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Array> IndexEnumeratorCallbackWrapper(
- const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Array>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexEnumeratorCallback callback = reinterpret_cast<IndexEnumeratorCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertyEnumeratorIndex)
- .As<v8::External>()->Value()));
- callback(cbinfo);
- return ReturnValueImp<v8::Array>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Array> (*NativeIndexEnumerator)
- (const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Boolean> IndexDeleterCallbackWrapper(
- uint32_t index, const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Boolean>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexDeleterCallback callback = reinterpret_cast<IndexDeleterCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertyDeleterIndex)
- .As<v8::External>()->Value()));
- callback(index, cbinfo);
- return ReturnValueImp<v8::Boolean>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Boolean> (*NativeIndexDeleter)
- (uint32_t, const v8::AccessorInfo &);
-
-static
-v8::Handle<v8::Integer> IndexQueryCallbackWrapper(
- uint32_t index, const v8::AccessorInfo &info) {
- v8::Local<v8::Object> obj = info.Data().As<v8::Object>();
- PropertyCallbackInfo<v8::Integer>
- cbinfo(info, obj->GetInternalField(kDataIndex));
- IndexQueryCallback callback = reinterpret_cast<IndexQueryCallback>(
- reinterpret_cast<intptr_t>(
- obj->GetInternalField(kIndexPropertyQueryIndex)
- .As<v8::External>()->Value()));
- callback(index, cbinfo);
- return ReturnValueImp<v8::Integer>(cbinfo.GetReturnValue()).Value();
-}
-
-typedef v8::Handle<v8::Integer> (*NativeIndexQuery)
- (uint32_t, const v8::AccessorInfo &);
-} // end of namespace imp
-
-#endif // NAN_CALLBACKS_PRE_12_INL_H_
diff --git a/node_modules/nan/nan_converters.h b/node_modules/nan/nan_converters.h
deleted file mode 100644
index c0b3272..0000000
--- a/node_modules/nan/nan_converters.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CONVERTERS_H_
-#define NAN_CONVERTERS_H_
-
-namespace imp {
-template<typename T> struct ToFactoryBase {
- typedef MaybeLocal<T> return_t;
-};
-template<typename T> struct ValueFactoryBase { typedef Maybe<T> return_t; };
-
-template<typename T> struct ToFactory;
-
-template<>
-struct ToFactory<v8::Function> : ToFactoryBase<v8::Function> {
- static inline return_t convert(v8::Local<v8::Value> val) {
- if (val.IsEmpty() || !val->IsFunction()) return MaybeLocal<v8::Function>();
- return MaybeLocal<v8::Function>(val.As<v8::Function>());
- }
-};
-
-#define X(TYPE) \
- template<> \
- struct ToFactory<v8::TYPE> : ToFactoryBase<v8::TYPE> { \
- static inline return_t convert(v8::Local<v8::Value> val); \
- };
-
-X(Boolean)
-X(Number)
-X(String)
-X(Object)
-X(Integer)
-X(Uint32)
-X(Int32)
-
-#undef X
-
-#define X(TYPE) \
- template<> \
- struct ToFactory<TYPE> : ValueFactoryBase<TYPE> { \
- static inline return_t convert(v8::Local<v8::Value> val); \
- };
-
-X(bool)
-X(double)
-X(int64_t)
-X(uint32_t)
-X(int32_t)
-
-#undef X
-} // end of namespace imp
-
-template<typename T>
-inline
-typename imp::ToFactory<T>::return_t To(v8::Local<v8::Value> val) {
- return imp::ToFactory<T>::convert(val);
-}
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-# include "nan_converters_43_inl.h"
-#else
-# include "nan_converters_pre_43_inl.h"
-#endif
-
-#endif // NAN_CONVERTERS_H_
diff --git a/node_modules/nan/nan_converters_43_inl.h b/node_modules/nan/nan_converters_43_inl.h
deleted file mode 100644
index 41b72de..0000000
--- a/node_modules/nan/nan_converters_43_inl.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CONVERTERS_43_INL_H_
-#define NAN_CONVERTERS_43_INL_H_
-
-#define X(TYPE) \
-imp::ToFactory<v8::TYPE>::return_t \
-imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) { \
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
- v8::EscapableHandleScope scope(isolate); \
- return scope.Escape( \
- val->To ## TYPE(isolate->GetCurrentContext()) \
- .FromMaybe(v8::Local<v8::TYPE>())); \
-}
-
-X(Number)
-X(String)
-X(Object)
-X(Integer)
-X(Uint32)
-X(Int32)
-// V8 <= 7.0
-#if V8_MAJOR_VERSION < 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION == 0)
-X(Boolean)
-#else
-imp::ToFactory<v8::Boolean>::return_t \
-imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value> val) { \
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
- v8::EscapableHandleScope scope(isolate); \
- return scope.Escape(val->ToBoolean(isolate)); \
-}
-#endif
-
-#undef X
-
-#define X(TYPE, NAME) \
-imp::ToFactory<TYPE>::return_t \
-imp::ToFactory<TYPE>::convert(v8::Local<v8::Value> val) { \
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
- v8::HandleScope scope(isolate); \
- return val->NAME ## Value(isolate->GetCurrentContext()); \
-}
-
-X(double, Number)
-X(int64_t, Integer)
-X(uint32_t, Uint32)
-X(int32_t, Int32)
-// V8 <= 7.0
-#if V8_MAJOR_VERSION < 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION == 0)
-X(bool, Boolean)
-#else
-imp::ToFactory<bool>::return_t \
-imp::ToFactory<bool>::convert(v8::Local<v8::Value> val) { \
- v8::Isolate *isolate = v8::Isolate::GetCurrent(); \
- v8::HandleScope scope(isolate); \
- return Just<bool>(val->BooleanValue(isolate)); \
-}
-#endif
-
-#undef X
-
-#endif // NAN_CONVERTERS_43_INL_H_
diff --git a/node_modules/nan/nan_converters_pre_43_inl.h b/node_modules/nan/nan_converters_pre_43_inl.h
deleted file mode 100644
index ae0518a..0000000
--- a/node_modules/nan/nan_converters_pre_43_inl.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_CONVERTERS_PRE_43_INL_H_
-#define NAN_CONVERTERS_PRE_43_INL_H_
-
-#define X(TYPE) \
-imp::ToFactory<v8::TYPE>::return_t \
-imp::ToFactory<v8::TYPE>::convert(v8::Local<v8::Value> val) { \
- return val->To ## TYPE(); \
-}
-
-X(Boolean)
-X(Number)
-X(String)
-X(Object)
-X(Integer)
-X(Uint32)
-X(Int32)
-
-#undef X
-
-#define X(TYPE, NAME) \
-imp::ToFactory<TYPE>::return_t \
-imp::ToFactory<TYPE>::convert(v8::Local<v8::Value> val) { \
- return Just(val->NAME ## Value()); \
-}
-
-X(bool, Boolean)
-X(double, Number)
-X(int64_t, Integer)
-X(uint32_t, Uint32)
-X(int32_t, Int32)
-
-#undef X
-
-#endif // NAN_CONVERTERS_PRE_43_INL_H_
diff --git a/node_modules/nan/nan_define_own_property_helper.h b/node_modules/nan/nan_define_own_property_helper.h
deleted file mode 100644
index d710ef2..0000000
--- a/node_modules/nan/nan_define_own_property_helper.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_DEFINE_OWN_PROPERTY_HELPER_H_
-#define NAN_DEFINE_OWN_PROPERTY_HELPER_H_
-
-namespace imp {
-
-inline Maybe<bool> DefineOwnPropertyHelper(
- v8::PropertyAttribute current
- , v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key
- , v8::Handle<v8::Value> value
- , v8::PropertyAttribute attribs = v8::None) {
- return !(current & v8::DontDelete) || // configurable OR
- (!(current & v8::ReadOnly) && // writable AND
- !((attribs ^ current) & ~v8::ReadOnly)) // same excluding RO
- ? Just<bool>(obj->ForceSet(key, value, attribs))
- : Nothing<bool>();
-}
-
-} // end of namespace imp
-
-#endif // NAN_DEFINE_OWN_PROPERTY_HELPER_H_
diff --git a/node_modules/nan/nan_implementation_12_inl.h b/node_modules/nan/nan_implementation_12_inl.h
deleted file mode 100644
index 255293a..0000000
--- a/node_modules/nan/nan_implementation_12_inl.h
+++ /dev/null
@@ -1,430 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_IMPLEMENTATION_12_INL_H_
-#define NAN_IMPLEMENTATION_12_INL_H_
-//==============================================================================
-// node v0.11 implementation
-//==============================================================================
-
-namespace imp {
-
-//=== Array ====================================================================
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New() {
- return v8::Array::New(v8::Isolate::GetCurrent());
-}
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New(int length) {
- return v8::Array::New(v8::Isolate::GetCurrent(), length);
-}
-
-//=== Boolean ==================================================================
-
-Factory<v8::Boolean>::return_t
-Factory<v8::Boolean>::New(bool value) {
- return v8::Boolean::New(v8::Isolate::GetCurrent(), value);
-}
-
-//=== Boolean Object ===========================================================
-
-Factory<v8::BooleanObject>::return_t
-Factory<v8::BooleanObject>::New(bool value) {
-#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
- return v8::BooleanObject::New(
- v8::Isolate::GetCurrent(), value).As<v8::BooleanObject>();
-#else
- return v8::BooleanObject::New(value).As<v8::BooleanObject>();
-#endif
-}
-
-//=== Context ==================================================================
-
-Factory<v8::Context>::return_t
-Factory<v8::Context>::New( v8::ExtensionConfiguration* extensions
- , v8::Local<v8::ObjectTemplate> tmpl
- , v8::Local<v8::Value> obj) {
- return v8::Context::New(v8::Isolate::GetCurrent(), extensions, tmpl, obj);
-}
-
-//=== Date =====================================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::Date>::return_t
-Factory<v8::Date>::New(double value) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(v8::Date::New(isolate->GetCurrentContext(), value)
- .FromMaybe(v8::Local<v8::Value>()).As<v8::Date>());
-}
-#else
-Factory<v8::Date>::return_t
-Factory<v8::Date>::New(double value) {
- return v8::Date::New(v8::Isolate::GetCurrent(), value).As<v8::Date>();
-}
-#endif
-
-//=== External =================================================================
-
-Factory<v8::External>::return_t
-Factory<v8::External>::New(void * value) {
- return v8::External::New(v8::Isolate::GetCurrent(), value);
-}
-
-//=== Function =================================================================
-
-Factory<v8::Function>::return_t
-Factory<v8::Function>::New( FunctionCallback callback
- , v8::Local<v8::Value> data) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New(isolate);
- tpl->SetInternalFieldCount(imp::kFunctionFieldCount);
- v8::Local<v8::Object> obj = NewInstance(tpl).ToLocalChecked();
-
- obj->SetInternalField(
- imp::kFunctionIndex
- , v8::External::New(isolate, reinterpret_cast<void *>(callback)));
-
- v8::Local<v8::Value> val = v8::Local<v8::Value>::New(isolate, data);
-
- if (!val.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, val);
- }
-
-#if NODE_MAJOR_VERSION >= 10
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
- v8::Local<v8::Function> function =
- v8::Function::New(context, imp::FunctionCallbackWrapper, obj)
- .ToLocalChecked();
-#else
- v8::Local<v8::Function> function =
- v8::Function::New(isolate, imp::FunctionCallbackWrapper, obj);
-#endif
-
- return scope.Escape(function);
-}
-
-//=== Function Template ========================================================
-
-Factory<v8::FunctionTemplate>::return_t
-Factory<v8::FunctionTemplate>::New( FunctionCallback callback
- , v8::Local<v8::Value> data
- , v8::Local<v8::Signature> signature) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- if (callback) {
- v8::EscapableHandleScope scope(isolate);
- v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New(isolate);
- tpl->SetInternalFieldCount(imp::kFunctionFieldCount);
- v8::Local<v8::Object> obj = NewInstance(tpl).ToLocalChecked();
-
- obj->SetInternalField(
- imp::kFunctionIndex
- , v8::External::New(isolate, reinterpret_cast<void *>(callback)));
- v8::Local<v8::Value> val = v8::Local<v8::Value>::New(isolate, data);
-
- if (!val.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, val);
- }
-
- return scope.Escape(v8::FunctionTemplate::New( isolate
- , imp::FunctionCallbackWrapper
- , obj
- , signature));
- } else {
- return v8::FunctionTemplate::New(isolate, 0, data, signature);
- }
-}
-
-//=== Number ===================================================================
-
-Factory<v8::Number>::return_t
-Factory<v8::Number>::New(double value) {
- return v8::Number::New(v8::Isolate::GetCurrent(), value);
-}
-
-//=== Number Object ============================================================
-
-Factory<v8::NumberObject>::return_t
-Factory<v8::NumberObject>::New(double value) {
- return v8::NumberObject::New( v8::Isolate::GetCurrent()
- , value).As<v8::NumberObject>();
-}
-
-//=== Integer, Int32 and Uint32 ================================================
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(int32_t value) {
- return To<T>(T::New(v8::Isolate::GetCurrent(), value));
-}
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(uint32_t value) {
- return To<T>(T::NewFromUnsigned(v8::Isolate::GetCurrent(), value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(int32_t value) {
- return To<v8::Uint32>(
- v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(uint32_t value) {
- return To<v8::Uint32>(
- v8::Uint32::NewFromUnsigned(v8::Isolate::GetCurrent(), value));
-}
-
-//=== Object ===================================================================
-
-Factory<v8::Object>::return_t
-Factory<v8::Object>::New() {
- return v8::Object::New(v8::Isolate::GetCurrent());
-}
-
-//=== Object Template ==========================================================
-
-Factory<v8::ObjectTemplate>::return_t
-Factory<v8::ObjectTemplate>::New() {
- return v8::ObjectTemplate::New(v8::Isolate::GetCurrent());
-}
-
-//=== RegExp ===================================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::RegExp>::return_t
-Factory<v8::RegExp>::New(
- v8::Local<v8::String> pattern
- , v8::RegExp::Flags flags) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(
- v8::RegExp::New(isolate->GetCurrentContext(), pattern, flags)
- .FromMaybe(v8::Local<v8::RegExp>()));
-}
-#else
-Factory<v8::RegExp>::return_t
-Factory<v8::RegExp>::New(
- v8::Local<v8::String> pattern
- , v8::RegExp::Flags flags) {
- return v8::RegExp::New(pattern, flags);
-}
-#endif
-
-//=== Script ===================================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- v8::ScriptCompiler::Source src(source);
- return scope.Escape(
- v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src)
- .FromMaybe(v8::Local<v8::Script>()));
-}
-
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source
- , v8::ScriptOrigin const& origin) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- v8::ScriptCompiler::Source src(source, origin);
- return scope.Escape(
- v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &src)
- .FromMaybe(v8::Local<v8::Script>()));
-}
-#else
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source) {
- v8::ScriptCompiler::Source src(source);
- return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
-}
-
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source
- , v8::ScriptOrigin const& origin) {
- v8::ScriptCompiler::Source src(source, origin);
- return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src);
-}
-#endif
-
-//=== Signature ================================================================
-
-Factory<v8::Signature>::return_t
-Factory<v8::Signature>::New(Factory<v8::Signature>::FTH receiver) {
- return v8::Signature::New(v8::Isolate::GetCurrent(), receiver);
-}
-
-//=== String ===================================================================
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New() {
- return v8::String::Empty(v8::Isolate::GetCurrent());
-}
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const char * value, int length) {
- return v8::String::NewFromUtf8(
- v8::Isolate::GetCurrent(), value, v8::NewStringType::kNormal, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(std::string const& value) {
- assert(value.size() <= INT_MAX && "string too long");
- return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(),
- value.data(), v8::NewStringType::kNormal, static_cast<int>(value.size()));
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const uint16_t * value, int length) {
- return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value,
- v8::NewStringType::kNormal, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalStringResource * value) {
- return v8::String::NewExternalTwoByte(v8::Isolate::GetCurrent(), value);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(ExternalOneByteStringResource * value) {
- return v8::String::NewExternalOneByte(v8::Isolate::GetCurrent(), value);
-}
-#else
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const char * value, int length) {
- return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value,
- v8::String::kNormalString, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(
- std::string const& value) /* NOLINT(build/include_what_you_use) */ {
- assert(value.size() <= INT_MAX && "string too long");
- return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), value.data(),
- v8::String::kNormalString,
- static_cast<int>(value.size()));
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const uint16_t * value, int length) {
- return v8::String::NewFromTwoByte(v8::Isolate::GetCurrent(), value,
- v8::String::kNormalString, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalStringResource * value) {
- return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(ExternalOneByteStringResource * value) {
- return v8::String::NewExternal(v8::Isolate::GetCurrent(), value);
-}
-#endif
-
-//=== String Object ============================================================
-
-// See https://github.com/nodejs/nan/pull/811#discussion_r224594980.
-// Disable the warning as there is no way around it.
-// TODO(bnoordhuis) Use isolate-based version in Node.js v12.
-Factory<v8::StringObject>::return_t
-Factory<v8::StringObject>::New(v8::Local<v8::String> value) {
-// V8 > 7.0
-#if V8_MAJOR_VERSION > 7 || (V8_MAJOR_VERSION == 7 && V8_MINOR_VERSION > 0)
- return v8::StringObject::New(v8::Isolate::GetCurrent(), value)
- .As<v8::StringObject>();
-#else
-#ifdef _MSC_VER
-#pragma warning(push)
-#pragma warning(disable : 4996)
-#endif
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
- return v8::StringObject::New(value).As<v8::StringObject>();
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
-#ifdef _MSC_VER
-#pragma warning(pop)
-#endif
-#endif
-}
-
-//=== Unbound Script ===========================================================
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New(v8::Local<v8::String> source) {
- v8::ScriptCompiler::Source src(source);
- return v8::ScriptCompiler::CompileUnboundScript(
- v8::Isolate::GetCurrent(), &src);
-}
-
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New( v8::Local<v8::String> source
- , v8::ScriptOrigin const& origin) {
- v8::ScriptCompiler::Source src(source, origin);
- return v8::ScriptCompiler::CompileUnboundScript(
- v8::Isolate::GetCurrent(), &src);
-}
-#else
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New(v8::Local<v8::String> source) {
- v8::ScriptCompiler::Source src(source);
- return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
-}
-
-Factory<v8::UnboundScript>::return_t
-Factory<v8::UnboundScript>::New( v8::Local<v8::String> source
- , v8::ScriptOrigin const& origin) {
- v8::ScriptCompiler::Source src(source, origin);
- return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src);
-}
-#endif
-
-} // end of namespace imp
-
-//=== Presistents and Handles ==================================================
-
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
-template <typename T>
-inline v8::Local<T> New(v8::Handle<T> h) {
- return v8::Local<T>::New(v8::Isolate::GetCurrent(), h);
-}
-#endif
-
-template <typename T, typename M>
-inline v8::Local<T> New(v8::Persistent<T, M> const& p) {
- return v8::Local<T>::New(v8::Isolate::GetCurrent(), p);
-}
-
-template <typename T, typename M>
-inline v8::Local<T> New(Persistent<T, M> const& p) {
- return v8::Local<T>::New(v8::Isolate::GetCurrent(), p);
-}
-
-template <typename T>
-inline v8::Local<T> New(Global<T> const& p) {
- return v8::Local<T>::New(v8::Isolate::GetCurrent(), p);
-}
-
-#endif // NAN_IMPLEMENTATION_12_INL_H_
diff --git a/node_modules/nan/nan_implementation_pre_12_inl.h b/node_modules/nan/nan_implementation_pre_12_inl.h
deleted file mode 100644
index 1472421..0000000
--- a/node_modules/nan/nan_implementation_pre_12_inl.h
+++ /dev/null
@@ -1,263 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_IMPLEMENTATION_PRE_12_INL_H_
-#define NAN_IMPLEMENTATION_PRE_12_INL_H_
-
-//==============================================================================
-// node v0.10 implementation
-//==============================================================================
-
-namespace imp {
-
-//=== Array ====================================================================
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New() {
- return v8::Array::New();
-}
-
-Factory<v8::Array>::return_t
-Factory<v8::Array>::New(int length) {
- return v8::Array::New(length);
-}
-
-//=== Boolean ==================================================================
-
-Factory<v8::Boolean>::return_t
-Factory<v8::Boolean>::New(bool value) {
- return v8::Boolean::New(value)->ToBoolean();
-}
-
-//=== Boolean Object ===========================================================
-
-Factory<v8::BooleanObject>::return_t
-Factory<v8::BooleanObject>::New(bool value) {
- return v8::BooleanObject::New(value).As<v8::BooleanObject>();
-}
-
-//=== Context ==================================================================
-
-Factory<v8::Context>::return_t
-Factory<v8::Context>::New( v8::ExtensionConfiguration* extensions
- , v8::Local<v8::ObjectTemplate> tmpl
- , v8::Local<v8::Value> obj) {
- v8::Persistent<v8::Context> ctx = v8::Context::New(extensions, tmpl, obj);
- v8::Local<v8::Context> lctx = v8::Local<v8::Context>::New(ctx);
- ctx.Dispose();
- return lctx;
-}
-
-//=== Date =====================================================================
-
-Factory<v8::Date>::return_t
-Factory<v8::Date>::New(double value) {
- return v8::Date::New(value).As<v8::Date>();
-}
-
-//=== External =================================================================
-
-Factory<v8::External>::return_t
-Factory<v8::External>::New(void * value) {
- return v8::External::New(value);
-}
-
-//=== Function =================================================================
-
-Factory<v8::Function>::return_t
-Factory<v8::Function>::New( FunctionCallback callback
- , v8::Local<v8::Value> data) {
- v8::HandleScope scope;
-
- return scope.Close(Factory<v8::FunctionTemplate>::New(
- callback, data, v8::Local<v8::Signature>())
- ->GetFunction());
-}
-
-
-//=== FunctionTemplate =========================================================
-
-Factory<v8::FunctionTemplate>::return_t
-Factory<v8::FunctionTemplate>::New( FunctionCallback callback
- , v8::Local<v8::Value> data
- , v8::Local<v8::Signature> signature) {
- if (callback) {
- v8::HandleScope scope;
-
- v8::Local<v8::ObjectTemplate> tpl = v8::ObjectTemplate::New();
- tpl->SetInternalFieldCount(imp::kFunctionFieldCount);
- v8::Local<v8::Object> obj = tpl->NewInstance();
-
- obj->SetInternalField(
- imp::kFunctionIndex
- , v8::External::New(reinterpret_cast<void *>(callback)));
-
- v8::Local<v8::Value> val = v8::Local<v8::Value>::New(data);
-
- if (!val.IsEmpty()) {
- obj->SetInternalField(imp::kDataIndex, val);
- }
-
- // Note(agnat): Emulate length argument here. Unfortunately, I couldn't find
- // a way. Have at it though...
- return scope.Close(
- v8::FunctionTemplate::New(imp::FunctionCallbackWrapper
- , obj
- , signature));
- } else {
- return v8::FunctionTemplate::New(0, data, signature);
- }
-}
-
-//=== Number ===================================================================
-
-Factory<v8::Number>::return_t
-Factory<v8::Number>::New(double value) {
- return v8::Number::New(value);
-}
-
-//=== Number Object ============================================================
-
-Factory<v8::NumberObject>::return_t
-Factory<v8::NumberObject>::New(double value) {
- return v8::NumberObject::New(value).As<v8::NumberObject>();
-}
-
-//=== Integer, Int32 and Uint32 ================================================
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(int32_t value) {
- return To<T>(T::New(value));
-}
-
-template <typename T>
-typename IntegerFactory<T>::return_t
-IntegerFactory<T>::New(uint32_t value) {
- return To<T>(T::NewFromUnsigned(value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(int32_t value) {
- return To<v8::Uint32>(v8::Uint32::NewFromUnsigned(value));
-}
-
-Factory<v8::Uint32>::return_t
-Factory<v8::Uint32>::New(uint32_t value) {
- return To<v8::Uint32>(v8::Uint32::NewFromUnsigned(value));
-}
-
-
-//=== Object ===================================================================
-
-Factory<v8::Object>::return_t
-Factory<v8::Object>::New() {
- return v8::Object::New();
-}
-
-//=== Object Template ==========================================================
-
-Factory<v8::ObjectTemplate>::return_t
-Factory<v8::ObjectTemplate>::New() {
- return v8::ObjectTemplate::New();
-}
-
-//=== RegExp ===================================================================
-
-Factory<v8::RegExp>::return_t
-Factory<v8::RegExp>::New(
- v8::Local<v8::String> pattern
- , v8::RegExp::Flags flags) {
- return v8::RegExp::New(pattern, flags);
-}
-
-//=== Script ===================================================================
-
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source) {
- return v8::Script::New(source);
-}
-Factory<v8::Script>::return_t
-Factory<v8::Script>::New( v8::Local<v8::String> source
- , v8::ScriptOrigin const& origin) {
- return v8::Script::New(source, const_cast<v8::ScriptOrigin*>(&origin));
-}
-
-//=== Signature ================================================================
-
-Factory<v8::Signature>::return_t
-Factory<v8::Signature>::New(Factory<v8::Signature>::FTH receiver) {
- return v8::Signature::New(receiver);
-}
-
-//=== String ===================================================================
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New() {
- return v8::String::Empty();
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const char * value, int length) {
- return v8::String::New(value, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(
- std::string const& value) /* NOLINT(build/include_what_you_use) */ {
- assert(value.size() <= INT_MAX && "string too long");
- return v8::String::New(value.data(), static_cast<int>(value.size()));
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(const uint16_t * value, int length) {
- return v8::String::New(value, length);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalStringResource * value) {
- return v8::String::NewExternal(value);
-}
-
-Factory<v8::String>::return_t
-Factory<v8::String>::New(v8::String::ExternalAsciiStringResource * value) {
- return v8::String::NewExternal(value);
-}
-
-//=== String Object ============================================================
-
-Factory<v8::StringObject>::return_t
-Factory<v8::StringObject>::New(v8::Local<v8::String> value) {
- return v8::StringObject::New(value).As<v8::StringObject>();
-}
-
-} // end of namespace imp
-
-//=== Presistents and Handles ==================================================
-
-template <typename T>
-inline v8::Local<T> New(v8::Handle<T> h) {
- return v8::Local<T>::New(h);
-}
-
-template <typename T>
-inline v8::Local<T> New(v8::Persistent<T> const& p) {
- return v8::Local<T>::New(p);
-}
-
-template <typename T, typename M>
-inline v8::Local<T> New(Persistent<T, M> const& p) {
- return v8::Local<T>::New(p.persistent);
-}
-
-template <typename T>
-inline v8::Local<T> New(Global<T> const& p) {
- return v8::Local<T>::New(p.persistent);
-}
-
-#endif // NAN_IMPLEMENTATION_PRE_12_INL_H_
diff --git a/node_modules/nan/nan_json.h b/node_modules/nan/nan_json.h
deleted file mode 100644
index 33ac8ba..0000000
--- a/node_modules/nan/nan_json.h
+++ /dev/null
@@ -1,166 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_JSON_H_
-#define NAN_JSON_H_
-
-#if NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION
-#define NAN_JSON_H_NEED_PARSE 1
-#else
-#define NAN_JSON_H_NEED_PARSE 0
-#endif // NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION
-
-#if NODE_MODULE_VERSION >= NODE_7_0_MODULE_VERSION
-#define NAN_JSON_H_NEED_STRINGIFY 0
-#else
-#define NAN_JSON_H_NEED_STRINGIFY 1
-#endif // NODE_MODULE_VERSION >= NODE_7_0_MODULE_VERSION
-
-class JSON {
- public:
- JSON() {
-#if NAN_JSON_H_NEED_PARSE + NAN_JSON_H_NEED_STRINGIFY
- Nan::HandleScope scope;
-
- Nan::MaybeLocal<v8::Value> maybe_global_json = Nan::Get(
- Nan::GetCurrentContext()->Global(),
- Nan::New("JSON").ToLocalChecked()
- );
-
- assert(!maybe_global_json.IsEmpty() && "global JSON is empty");
- v8::Local<v8::Value> val_global_json = maybe_global_json.ToLocalChecked();
-
- assert(val_global_json->IsObject() && "global JSON is not an object");
- Nan::MaybeLocal<v8::Object> maybe_obj_global_json =
- Nan::To<v8::Object>(val_global_json);
-
- assert(!maybe_obj_global_json.IsEmpty() && "global JSON object is empty");
- v8::Local<v8::Object> global_json = maybe_obj_global_json.ToLocalChecked();
-
-#if NAN_JSON_H_NEED_PARSE
- Nan::MaybeLocal<v8::Value> maybe_parse_method = Nan::Get(
- global_json, Nan::New("parse").ToLocalChecked()
- );
-
- assert(!maybe_parse_method.IsEmpty() && "JSON.parse is empty");
- v8::Local<v8::Value> parse_method = maybe_parse_method.ToLocalChecked();
-
- assert(parse_method->IsFunction() && "JSON.parse is not a function");
- parse_cb_.Reset(parse_method.As<v8::Function>());
-#endif // NAN_JSON_H_NEED_PARSE
-
-#if NAN_JSON_H_NEED_STRINGIFY
- Nan::MaybeLocal<v8::Value> maybe_stringify_method = Nan::Get(
- global_json, Nan::New("stringify").ToLocalChecked()
- );
-
- assert(!maybe_stringify_method.IsEmpty() && "JSON.stringify is empty");
- v8::Local<v8::Value> stringify_method =
- maybe_stringify_method.ToLocalChecked();
-
- assert(
- stringify_method->IsFunction() && "JSON.stringify is not a function"
- );
- stringify_cb_.Reset(stringify_method.As<v8::Function>());
-#endif // NAN_JSON_H_NEED_STRINGIFY
-#endif // NAN_JSON_H_NEED_PARSE + NAN_JSON_H_NEED_STRINGIFY
- }
-
- inline
- Nan::MaybeLocal<v8::Value> Parse(v8::Local<v8::String> json_string) {
- Nan::EscapableHandleScope scope;
-#if NAN_JSON_H_NEED_PARSE
- return scope.Escape(parse(json_string));
-#else
- Nan::MaybeLocal<v8::Value> result;
-#if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION && \
- NODE_MODULE_VERSION <= IOJS_2_0_MODULE_VERSION
- result = v8::JSON::Parse(json_string);
-#else
-#if NODE_MODULE_VERSION > NODE_6_0_MODULE_VERSION
- v8::Local<v8::Context> context_or_isolate = Nan::GetCurrentContext();
-#else
- v8::Isolate* context_or_isolate = v8::Isolate::GetCurrent();
-#endif // NODE_MODULE_VERSION > NODE_6_0_MODULE_VERSION
- result = v8::JSON::Parse(context_or_isolate, json_string);
-#endif // NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION &&
- // NODE_MODULE_VERSION <= IOJS_2_0_MODULE_VERSION
- if (result.IsEmpty()) return v8::Local<v8::Value>();
- return scope.Escape(result.ToLocalChecked());
-#endif // NAN_JSON_H_NEED_PARSE
- }
-
- inline
- Nan::MaybeLocal<v8::String> Stringify(v8::Local<v8::Object> json_object) {
- Nan::EscapableHandleScope scope;
- Nan::MaybeLocal<v8::String> result =
-#if NAN_JSON_H_NEED_STRINGIFY
- Nan::To<v8::String>(stringify(json_object));
-#else
- v8::JSON::Stringify(Nan::GetCurrentContext(), json_object);
-#endif // NAN_JSON_H_NEED_STRINGIFY
- if (result.IsEmpty()) return v8::Local<v8::String>();
- return scope.Escape(result.ToLocalChecked());
- }
-
- inline
- Nan::MaybeLocal<v8::String> Stringify(v8::Local<v8::Object> json_object,
- v8::Local<v8::String> gap) {
- Nan::EscapableHandleScope scope;
- Nan::MaybeLocal<v8::String> result =
-#if NAN_JSON_H_NEED_STRINGIFY
- Nan::To<v8::String>(stringify(json_object, gap));
-#else
- v8::JSON::Stringify(Nan::GetCurrentContext(), json_object, gap);
-#endif // NAN_JSON_H_NEED_STRINGIFY
- if (result.IsEmpty()) return v8::Local<v8::String>();
- return scope.Escape(result.ToLocalChecked());
- }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(JSON)
-#if NAN_JSON_H_NEED_PARSE
- Nan::Callback parse_cb_;
-#endif // NAN_JSON_H_NEED_PARSE
-#if NAN_JSON_H_NEED_STRINGIFY
- Nan::Callback stringify_cb_;
-#endif // NAN_JSON_H_NEED_STRINGIFY
-
-#if NAN_JSON_H_NEED_PARSE
- inline v8::Local<v8::Value> parse(v8::Local<v8::Value> arg) {
- assert(!parse_cb_.IsEmpty() && "parse_cb_ is empty");
- AsyncResource resource("nan:JSON.parse");
- return parse_cb_.Call(1, &arg, &resource).FromMaybe(v8::Local<v8::Value>());
- }
-#endif // NAN_JSON_H_NEED_PARSE
-
-#if NAN_JSON_H_NEED_STRINGIFY
- inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg) {
- assert(!stringify_cb_.IsEmpty() && "stringify_cb_ is empty");
- AsyncResource resource("nan:JSON.stringify");
- return stringify_cb_.Call(1, &arg, &resource)
- .FromMaybe(v8::Local<v8::Value>());
- }
-
- inline v8::Local<v8::Value> stringify(v8::Local<v8::Value> arg,
- v8::Local<v8::String> gap) {
- assert(!stringify_cb_.IsEmpty() && "stringify_cb_ is empty");
-
- v8::Local<v8::Value> argv[] = {
- arg,
- Nan::Null(),
- gap
- };
- AsyncResource resource("nan:JSON.stringify");
- return stringify_cb_.Call(3, argv, &resource)
- .FromMaybe(v8::Local<v8::Value>());
- }
-#endif // NAN_JSON_H_NEED_STRINGIFY
-};
-
-#endif // NAN_JSON_H_
diff --git a/node_modules/nan/nan_maybe_43_inl.h b/node_modules/nan/nan_maybe_43_inl.h
deleted file mode 100644
index c04ce30..0000000
--- a/node_modules/nan/nan_maybe_43_inl.h
+++ /dev/null
@@ -1,356 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_MAYBE_43_INL_H_
-#define NAN_MAYBE_43_INL_H_
-
-template<typename T>
-using MaybeLocal = v8::MaybeLocal<T>;
-
-inline
-MaybeLocal<v8::String> ToDetailString(v8::Local<v8::Value> val) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(val->ToDetailString(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::String>()));
-}
-
-inline
-MaybeLocal<v8::Uint32> ToArrayIndex(v8::Local<v8::Value> val) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(val->ToArrayIndex(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Uint32>()));
-}
-
-inline
-Maybe<bool> Equals(v8::Local<v8::Value> a, v8::Local<v8::Value>(b)) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return a->Equals(isolate->GetCurrentContext(), b);
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Local<v8::Function> h) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Object>()));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(
- v8::Local<v8::Function> h
- , int argc
- , v8::Local<v8::Value> argv[]) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(h->NewInstance(isolate->GetCurrentContext(), argc, argv)
- .FromMaybe(v8::Local<v8::Object>()));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Local<v8::ObjectTemplate> h) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(h->NewInstance(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Object>()));
-}
-
-
-inline MaybeLocal<v8::Function> GetFunction(
- v8::Local<v8::FunctionTemplate> t) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(t->GetFunction(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Function>()));
-}
-
-inline Maybe<bool> Set(
- v8::Local<v8::Object> obj
- , v8::Local<v8::Value> key
- , v8::Local<v8::Value> value) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->Set(isolate->GetCurrentContext(), key, value);
-}
-
-inline Maybe<bool> Set(
- v8::Local<v8::Object> obj
- , uint32_t index
- , v8::Local<v8::Value> value) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->Set(isolate->GetCurrentContext(), index, value);
-}
-
-#if NODE_MODULE_VERSION < NODE_4_0_MODULE_VERSION
-#include "nan_define_own_property_helper.h" // NOLINT(build/include)
-#endif
-
-inline Maybe<bool> DefineOwnProperty(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key
- , v8::Local<v8::Value> value
- , v8::PropertyAttribute attribs = v8::None) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
-#if NODE_MODULE_VERSION >= NODE_4_0_MODULE_VERSION
- return obj->DefineOwnProperty(isolate->GetCurrentContext(), key, value,
- attribs);
-#else
- Maybe<v8::PropertyAttribute> maybeCurrent =
- obj->GetPropertyAttributes(isolate->GetCurrentContext(), key);
- if (maybeCurrent.IsNothing()) {
- return Nothing<bool>();
- }
- v8::PropertyAttribute current = maybeCurrent.FromJust();
- return imp::DefineOwnPropertyHelper(current, obj, key, value, attribs);
-#endif
-}
-
-NAN_DEPRECATED inline Maybe<bool> ForceSet(
- v8::Local<v8::Object> obj
- , v8::Local<v8::Value> key
- , v8::Local<v8::Value> value
- , v8::PropertyAttribute attribs = v8::None) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
-#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
- return key->IsName()
- ? obj->DefineOwnProperty(isolate->GetCurrentContext(),
- key.As<v8::Name>(), value, attribs)
- : Nothing<bool>();
-#else
- return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
-#endif
-}
-
-inline MaybeLocal<v8::Value> Get(
- v8::Local<v8::Object> obj
- , v8::Local<v8::Value> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(obj->Get(isolate->GetCurrentContext(), key)
- .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline
-MaybeLocal<v8::Value> Get(v8::Local<v8::Object> obj, uint32_t index) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(obj->Get(isolate->GetCurrentContext(), index)
- .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline v8::PropertyAttribute GetPropertyAttributes(
- v8::Local<v8::Object> obj
- , v8::Local<v8::Value> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->GetPropertyAttributes(isolate->GetCurrentContext(), key)
- .FromJust();
-}
-
-inline Maybe<bool> Has(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->Has(isolate->GetCurrentContext(), key);
-}
-
-inline Maybe<bool> Has(v8::Local<v8::Object> obj, uint32_t index) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->Has(isolate->GetCurrentContext(), index);
-}
-
-inline Maybe<bool> Delete(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->Delete(isolate->GetCurrentContext(), key);
-}
-
-inline
-Maybe<bool> Delete(v8::Local<v8::Object> obj, uint32_t index) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->Delete(isolate->GetCurrentContext(), index);
-}
-
-inline
-MaybeLocal<v8::Array> GetPropertyNames(v8::Local<v8::Object> obj) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(obj->GetPropertyNames(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Array>()));
-}
-
-inline
-MaybeLocal<v8::Array> GetOwnPropertyNames(v8::Local<v8::Object> obj) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(obj->GetOwnPropertyNames(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::Array>()));
-}
-
-inline Maybe<bool> SetPrototype(
- v8::Local<v8::Object> obj
- , v8::Local<v8::Value> prototype) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->SetPrototype(isolate->GetCurrentContext(), prototype);
-}
-
-inline MaybeLocal<v8::String> ObjectProtoToString(
- v8::Local<v8::Object> obj) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(obj->ObjectProtoToString(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::String>()));
-}
-
-inline Maybe<bool> HasOwnProperty(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->HasOwnProperty(isolate->GetCurrentContext(), key);
-}
-
-inline Maybe<bool> HasRealNamedProperty(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->HasRealNamedProperty(isolate->GetCurrentContext(), key);
-}
-
-inline Maybe<bool> HasRealIndexedProperty(
- v8::Local<v8::Object> obj
- , uint32_t index) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->HasRealIndexedProperty(isolate->GetCurrentContext(), index);
-}
-
-inline Maybe<bool> HasRealNamedCallbackProperty(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return obj->HasRealNamedCallbackProperty(isolate->GetCurrentContext(), key);
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedPropertyInPrototypeChain(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(obj->GetRealNamedPropertyInPrototypeChain(
- isolate->GetCurrentContext(), key)
- .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedProperty(
- v8::Local<v8::Object> obj
- , v8::Local<v8::String> key) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(
- obj->GetRealNamedProperty(isolate->GetCurrentContext(), key)
- .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline MaybeLocal<v8::Value> CallAsFunction(
- v8::Local<v8::Object> obj
- , v8::Local<v8::Object> recv
- , int argc
- , v8::Local<v8::Value> argv[]) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(
- obj->CallAsFunction(isolate->GetCurrentContext(), recv, argc, argv)
- .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline MaybeLocal<v8::Value> CallAsConstructor(
- v8::Local<v8::Object> obj
- , int argc, v8::Local<v8::Value> argv[]) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(
- obj->CallAsConstructor(isolate->GetCurrentContext(), argc, argv)
- .FromMaybe(v8::Local<v8::Value>()));
-}
-
-inline
-MaybeLocal<v8::String> GetSourceLine(v8::Local<v8::Message> msg) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(msg->GetSourceLine(isolate->GetCurrentContext())
- .FromMaybe(v8::Local<v8::String>()));
-}
-
-inline Maybe<int> GetLineNumber(v8::Local<v8::Message> msg) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return msg->GetLineNumber(isolate->GetCurrentContext());
-}
-
-inline Maybe<int> GetStartColumn(v8::Local<v8::Message> msg) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return msg->GetStartColumn(isolate->GetCurrentContext());
-}
-
-inline Maybe<int> GetEndColumn(v8::Local<v8::Message> msg) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::HandleScope scope(isolate);
- return msg->GetEndColumn(isolate->GetCurrentContext());
-}
-
-inline MaybeLocal<v8::Object> CloneElementAt(
- v8::Local<v8::Array> array
- , uint32_t index) {
-#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
- v8::Local<v8::Value> elem;
- v8::Local<v8::Object> obj;
- if (!array->Get(context, index).ToLocal(&elem)) {
- return scope.Escape(obj);
- }
- if (!elem->ToObject(context).ToLocal(&obj)) {
- return scope.Escape(v8::Local<v8::Object>());
- }
- return scope.Escape(obj->Clone());
-#else
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(array->CloneElementAt(isolate->GetCurrentContext(), index)
- .FromMaybe(v8::Local<v8::Object>()));
-#endif
-}
-
-inline MaybeLocal<v8::Value> Call(
- v8::Local<v8::Function> fun
- , v8::Local<v8::Object> recv
- , int argc
- , v8::Local<v8::Value> argv[]) {
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- return scope.Escape(fun->Call(isolate->GetCurrentContext(), recv, argc, argv)
- .FromMaybe(v8::Local<v8::Value>()));
-}
-
-#endif // NAN_MAYBE_43_INL_H_
diff --git a/node_modules/nan/nan_maybe_pre_43_inl.h b/node_modules/nan/nan_maybe_pre_43_inl.h
deleted file mode 100644
index 83325ae..0000000
--- a/node_modules/nan/nan_maybe_pre_43_inl.h
+++ /dev/null
@@ -1,268 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_MAYBE_PRE_43_INL_H_
-#define NAN_MAYBE_PRE_43_INL_H_
-
-template<typename T>
-class MaybeLocal {
- public:
- inline MaybeLocal() : val_(v8::Local<T>()) {}
-
- template<typename S>
-# if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION
- inline
- MaybeLocal(v8::Local<S> that) : val_(that) {} // NOLINT(runtime/explicit)
-# else
- inline
- MaybeLocal(v8::Local<S> that) : // NOLINT(runtime/explicit)
- val_(*reinterpret_cast<v8::Local<T>*>(&that)) {}
-# endif
-
- inline bool IsEmpty() const { return val_.IsEmpty(); }
-
- template<typename S>
- inline bool ToLocal(v8::Local<S> *out) const {
- *out = val_;
- return !IsEmpty();
- }
-
- inline v8::Local<T> ToLocalChecked() const {
-#if defined(V8_ENABLE_CHECKS)
- assert(!IsEmpty() && "ToLocalChecked is Empty");
-#endif // V8_ENABLE_CHECKS
- return val_;
- }
-
- template<typename S>
- inline v8::Local<S> FromMaybe(v8::Local<S> default_value) const {
- return IsEmpty() ? default_value : v8::Local<S>(val_);
- }
-
- private:
- v8::Local<T> val_;
-};
-
-inline
-MaybeLocal<v8::String> ToDetailString(v8::Handle<v8::Value> val) {
- return MaybeLocal<v8::String>(val->ToDetailString());
-}
-
-inline
-MaybeLocal<v8::Uint32> ToArrayIndex(v8::Handle<v8::Value> val) {
- return MaybeLocal<v8::Uint32>(val->ToArrayIndex());
-}
-
-inline
-Maybe<bool> Equals(v8::Handle<v8::Value> a, v8::Handle<v8::Value>(b)) {
- return Just<bool>(a->Equals(b));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Handle<v8::Function> h) {
- return MaybeLocal<v8::Object>(h->NewInstance());
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(
- v8::Local<v8::Function> h
- , int argc
- , v8::Local<v8::Value> argv[]) {
- return MaybeLocal<v8::Object>(h->NewInstance(argc, argv));
-}
-
-inline
-MaybeLocal<v8::Object> NewInstance(v8::Handle<v8::ObjectTemplate> h) {
- return MaybeLocal<v8::Object>(h->NewInstance());
-}
-
-inline
-MaybeLocal<v8::Function> GetFunction(v8::Handle<v8::FunctionTemplate> t) {
- return MaybeLocal<v8::Function>(t->GetFunction());
-}
-
-inline Maybe<bool> Set(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::Value> key
- , v8::Handle<v8::Value> value) {
- return Just<bool>(obj->Set(key, value));
-}
-
-inline Maybe<bool> Set(
- v8::Handle<v8::Object> obj
- , uint32_t index
- , v8::Handle<v8::Value> value) {
- return Just<bool>(obj->Set(index, value));
-}
-
-#include "nan_define_own_property_helper.h" // NOLINT(build/include)
-
-inline Maybe<bool> DefineOwnProperty(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key
- , v8::Handle<v8::Value> value
- , v8::PropertyAttribute attribs = v8::None) {
- v8::PropertyAttribute current = obj->GetPropertyAttributes(key);
- return imp::DefineOwnPropertyHelper(current, obj, key, value, attribs);
-}
-
-NAN_DEPRECATED inline Maybe<bool> ForceSet(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::Value> key
- , v8::Handle<v8::Value> value
- , v8::PropertyAttribute attribs = v8::None) {
- return Just<bool>(obj->ForceSet(key, value, attribs));
-}
-
-inline MaybeLocal<v8::Value> Get(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::Value> key) {
- return MaybeLocal<v8::Value>(obj->Get(key));
-}
-
-inline MaybeLocal<v8::Value> Get(
- v8::Handle<v8::Object> obj
- , uint32_t index) {
- return MaybeLocal<v8::Value>(obj->Get(index));
-}
-
-inline Maybe<v8::PropertyAttribute> GetPropertyAttributes(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::Value> key) {
- return Just<v8::PropertyAttribute>(obj->GetPropertyAttributes(key));
-}
-
-inline Maybe<bool> Has(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key) {
- return Just<bool>(obj->Has(key));
-}
-
-inline Maybe<bool> Has(
- v8::Handle<v8::Object> obj
- , uint32_t index) {
- return Just<bool>(obj->Has(index));
-}
-
-inline Maybe<bool> Delete(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key) {
- return Just<bool>(obj->Delete(key));
-}
-
-inline Maybe<bool> Delete(
- v8::Handle<v8::Object> obj
- , uint32_t index) {
- return Just<bool>(obj->Delete(index));
-}
-
-inline
-MaybeLocal<v8::Array> GetPropertyNames(v8::Handle<v8::Object> obj) {
- return MaybeLocal<v8::Array>(obj->GetPropertyNames());
-}
-
-inline
-MaybeLocal<v8::Array> GetOwnPropertyNames(v8::Handle<v8::Object> obj) {
- return MaybeLocal<v8::Array>(obj->GetOwnPropertyNames());
-}
-
-inline Maybe<bool> SetPrototype(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::Value> prototype) {
- return Just<bool>(obj->SetPrototype(prototype));
-}
-
-inline MaybeLocal<v8::String> ObjectProtoToString(
- v8::Handle<v8::Object> obj) {
- return MaybeLocal<v8::String>(obj->ObjectProtoToString());
-}
-
-inline Maybe<bool> HasOwnProperty(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key) {
- return Just<bool>(obj->HasOwnProperty(key));
-}
-
-inline Maybe<bool> HasRealNamedProperty(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key) {
- return Just<bool>(obj->HasRealNamedProperty(key));
-}
-
-inline Maybe<bool> HasRealIndexedProperty(
- v8::Handle<v8::Object> obj
- , uint32_t index) {
- return Just<bool>(obj->HasRealIndexedProperty(index));
-}
-
-inline Maybe<bool> HasRealNamedCallbackProperty(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key) {
- return Just<bool>(obj->HasRealNamedCallbackProperty(key));
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedPropertyInPrototypeChain(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key) {
- return MaybeLocal<v8::Value>(
- obj->GetRealNamedPropertyInPrototypeChain(key));
-}
-
-inline MaybeLocal<v8::Value> GetRealNamedProperty(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::String> key) {
- return MaybeLocal<v8::Value>(obj->GetRealNamedProperty(key));
-}
-
-inline MaybeLocal<v8::Value> CallAsFunction(
- v8::Handle<v8::Object> obj
- , v8::Handle<v8::Object> recv
- , int argc
- , v8::Handle<v8::Value> argv[]) {
- return MaybeLocal<v8::Value>(obj->CallAsFunction(recv, argc, argv));
-}
-
-inline MaybeLocal<v8::Value> CallAsConstructor(
- v8::Handle<v8::Object> obj
- , int argc
- , v8::Local<v8::Value> argv[]) {
- return MaybeLocal<v8::Value>(obj->CallAsConstructor(argc, argv));
-}
-
-inline
-MaybeLocal<v8::String> GetSourceLine(v8::Handle<v8::Message> msg) {
- return MaybeLocal<v8::String>(msg->GetSourceLine());
-}
-
-inline Maybe<int> GetLineNumber(v8::Handle<v8::Message> msg) {
- return Just<int>(msg->GetLineNumber());
-}
-
-inline Maybe<int> GetStartColumn(v8::Handle<v8::Message> msg) {
- return Just<int>(msg->GetStartColumn());
-}
-
-inline Maybe<int> GetEndColumn(v8::Handle<v8::Message> msg) {
- return Just<int>(msg->GetEndColumn());
-}
-
-inline MaybeLocal<v8::Object> CloneElementAt(
- v8::Handle<v8::Array> array
- , uint32_t index) {
- return MaybeLocal<v8::Object>(array->CloneElementAt(index));
-}
-
-inline MaybeLocal<v8::Value> Call(
- v8::Local<v8::Function> fun
- , v8::Local<v8::Object> recv
- , int argc
- , v8::Local<v8::Value> argv[]) {
- return MaybeLocal<v8::Value>(fun->Call(recv, argc, argv));
-}
-
-#endif // NAN_MAYBE_PRE_43_INL_H_
diff --git a/node_modules/nan/nan_new.h b/node_modules/nan/nan_new.h
deleted file mode 100644
index cdf8bbe..0000000
--- a/node_modules/nan/nan_new.h
+++ /dev/null
@@ -1,340 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_NEW_H_
-#define NAN_NEW_H_
-
-namespace imp { // scnr
-
-// TODO(agnat): Generalize
-template <typename T> v8::Local<T> To(v8::Local<v8::Integer> i);
-
-template <>
-inline
-v8::Local<v8::Integer>
-To<v8::Integer>(v8::Local<v8::Integer> i) {
- return Nan::To<v8::Integer>(i).ToLocalChecked();
-}
-
-template <>
-inline
-v8::Local<v8::Int32>
-To<v8::Int32>(v8::Local<v8::Integer> i) {
- return Nan::To<v8::Int32>(i).ToLocalChecked();
-}
-
-template <>
-inline
-v8::Local<v8::Uint32>
-To<v8::Uint32>(v8::Local<v8::Integer> i) {
- return Nan::To<v8::Uint32>(i).ToLocalChecked();
-}
-
-template <typename T> struct FactoryBase {
- typedef v8::Local<T> return_t;
-};
-
-template <typename T> struct MaybeFactoryBase {
- typedef MaybeLocal<T> return_t;
-};
-
-template <typename T> struct Factory;
-
-template <>
-struct Factory<v8::Array> : FactoryBase<v8::Array> {
- static inline return_t New();
- static inline return_t New(int length);
-};
-
-template <>
-struct Factory<v8::Boolean> : FactoryBase<v8::Boolean> {
- static inline return_t New(bool value);
-};
-
-template <>
-struct Factory<v8::BooleanObject> : FactoryBase<v8::BooleanObject> {
- static inline return_t New(bool value);
-};
-
-template <>
-struct Factory<v8::Context> : FactoryBase<v8::Context> {
- static inline
- return_t
- New( v8::ExtensionConfiguration* extensions = NULL
- , v8::Local<v8::ObjectTemplate> tmpl = v8::Local<v8::ObjectTemplate>()
- , v8::Local<v8::Value> obj = v8::Local<v8::Value>());
-};
-
-template <>
-struct Factory<v8::Date> : MaybeFactoryBase<v8::Date> {
- static inline return_t New(double value);
-};
-
-template <>
-struct Factory<v8::External> : FactoryBase<v8::External> {
- static inline return_t New(void *value);
-};
-
-template <>
-struct Factory<v8::Function> : FactoryBase<v8::Function> {
- static inline
- return_t
- New( FunctionCallback callback
- , v8::Local<v8::Value> data = v8::Local<v8::Value>());
-};
-
-template <>
-struct Factory<v8::FunctionTemplate> : FactoryBase<v8::FunctionTemplate> {
- static inline
- return_t
- New( FunctionCallback callback = NULL
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()
- , v8::Local<v8::Signature> signature = v8::Local<v8::Signature>());
-};
-
-template <>
-struct Factory<v8::Number> : FactoryBase<v8::Number> {
- static inline return_t New(double value);
-};
-
-template <>
-struct Factory<v8::NumberObject> : FactoryBase<v8::NumberObject> {
- static inline return_t New(double value);
-};
-
-template <typename T>
-struct IntegerFactory : FactoryBase<T> {
- typedef typename FactoryBase<T>::return_t return_t;
- static inline return_t New(int32_t value);
- static inline return_t New(uint32_t value);
-};
-
-template <>
-struct Factory<v8::Integer> : IntegerFactory<v8::Integer> {};
-
-template <>
-struct Factory<v8::Int32> : IntegerFactory<v8::Int32> {};
-
-template <>
-struct Factory<v8::Uint32> : FactoryBase<v8::Uint32> {
- static inline return_t New(int32_t value);
- static inline return_t New(uint32_t value);
-};
-
-template <>
-struct Factory<v8::Object> : FactoryBase<v8::Object> {
- static inline return_t New();
-};
-
-template <>
-struct Factory<v8::ObjectTemplate> : FactoryBase<v8::ObjectTemplate> {
- static inline return_t New();
-};
-
-template <>
-struct Factory<v8::RegExp> : MaybeFactoryBase<v8::RegExp> {
- static inline return_t New(
- v8::Local<v8::String> pattern, v8::RegExp::Flags flags);
-};
-
-template <>
-struct Factory<v8::Script> : MaybeFactoryBase<v8::Script> {
- static inline return_t New( v8::Local<v8::String> source);
- static inline return_t New( v8::Local<v8::String> source
- , v8::ScriptOrigin const& origin);
-};
-
-template <>
-struct Factory<v8::Signature> : FactoryBase<v8::Signature> {
- typedef v8::Local<v8::FunctionTemplate> FTH;
- static inline return_t New(FTH receiver = FTH());
-};
-
-template <>
-struct Factory<v8::String> : MaybeFactoryBase<v8::String> {
- static inline return_t New();
- static inline return_t New(const char *value, int length = -1);
- static inline return_t New(const uint16_t *value, int length = -1);
- static inline return_t New(std::string const& value);
-
- static inline return_t New(v8::String::ExternalStringResource * value);
- static inline return_t New(ExternalOneByteStringResource * value);
-};
-
-template <>
-struct Factory<v8::StringObject> : FactoryBase<v8::StringObject> {
- static inline return_t New(v8::Local<v8::String> value);
-};
-
-} // end of namespace imp
-
-#if (NODE_MODULE_VERSION >= 12)
-
-namespace imp {
-
-template <>
-struct Factory<v8::UnboundScript> : MaybeFactoryBase<v8::UnboundScript> {
- static inline return_t New( v8::Local<v8::String> source);
- static inline return_t New( v8::Local<v8::String> source
- , v8::ScriptOrigin const& origin);
-};
-
-} // end of namespace imp
-
-# include "nan_implementation_12_inl.h"
-
-#else // NODE_MODULE_VERSION >= 12
-
-# include "nan_implementation_pre_12_inl.h"
-
-#endif
-
-//=== API ======================================================================
-
-template <typename T>
-typename imp::Factory<T>::return_t
-New() {
- return imp::Factory<T>::New();
-}
-
-template <typename T, typename A0>
-typename imp::Factory<T>::return_t
-New(A0 arg0) {
- return imp::Factory<T>::New(arg0);
-}
-
-template <typename T, typename A0, typename A1>
-typename imp::Factory<T>::return_t
-New(A0 arg0, A1 arg1) {
- return imp::Factory<T>::New(arg0, arg1);
-}
-
-template <typename T, typename A0, typename A1, typename A2>
-typename imp::Factory<T>::return_t
-New(A0 arg0, A1 arg1, A2 arg2) {
- return imp::Factory<T>::New(arg0, arg1, arg2);
-}
-
-template <typename T, typename A0, typename A1, typename A2, typename A3>
-typename imp::Factory<T>::return_t
-New(A0 arg0, A1 arg1, A2 arg2, A3 arg3) {
- return imp::Factory<T>::New(arg0, arg1, arg2, arg3);
-}
-
-// Note(agnat): When passing overloaded function pointers to template functions
-// as generic arguments the compiler needs help in picking the right overload.
-// These two functions handle New<Function> and New<FunctionTemplate> with
-// all argument variations.
-
-// v8::Function and v8::FunctionTemplate with one or two arguments
-template <typename T>
-typename imp::Factory<T>::return_t
-New( FunctionCallback callback
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
- return imp::Factory<T>::New(callback, data);
-}
-
-// v8::Function and v8::FunctionTemplate with three arguments
-template <typename T, typename A2>
-typename imp::Factory<T>::return_t
-New( FunctionCallback callback
- , v8::Local<v8::Value> data = v8::Local<v8::Value>()
- , A2 a2 = A2()) {
- return imp::Factory<T>::New(callback, data, a2);
-}
-
-// Convenience
-
-#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
-template <typename T> inline v8::Local<T> New(v8::Handle<T> h);
-#endif
-
-#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-template <typename T, typename M>
- inline v8::Local<T> New(v8::Persistent<T, M> const& p);
-#else
-template <typename T> inline v8::Local<T> New(v8::Persistent<T> const& p);
-#endif
-template <typename T, typename M>
-inline v8::Local<T> New(Persistent<T, M> const& p);
-template <typename T>
-inline v8::Local<T> New(Global<T> const& p);
-
-inline
-imp::Factory<v8::Boolean>::return_t
-New(bool value) {
- return New<v8::Boolean>(value);
-}
-
-inline
-imp::Factory<v8::Int32>::return_t
-New(int32_t value) {
- return New<v8::Int32>(value);
-}
-
-inline
-imp::Factory<v8::Uint32>::return_t
-New(uint32_t value) {
- return New<v8::Uint32>(value);
-}
-
-inline
-imp::Factory<v8::Number>::return_t
-New(double value) {
- return New<v8::Number>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(std::string const& value) { // NOLINT(build/include_what_you_use)
- return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const char * value, int length) {
- return New<v8::String>(value, length);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const uint16_t * value, int length) {
- return New<v8::String>(value, length);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const char * value) {
- return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(const uint16_t * value) {
- return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(v8::String::ExternalStringResource * value) {
- return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::String>::return_t
-New(ExternalOneByteStringResource * value) {
- return New<v8::String>(value);
-}
-
-inline
-imp::Factory<v8::RegExp>::return_t
-New(v8::Local<v8::String> pattern, v8::RegExp::Flags flags) {
- return New<v8::RegExp>(pattern, flags);
-}
-
-#endif // NAN_NEW_H_
diff --git a/node_modules/nan/nan_object_wrap.h b/node_modules/nan/nan_object_wrap.h
deleted file mode 100644
index 78712f9..0000000
--- a/node_modules/nan/nan_object_wrap.h
+++ /dev/null
@@ -1,156 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_OBJECT_WRAP_H_
-#define NAN_OBJECT_WRAP_H_
-
-class ObjectWrap {
- public:
- ObjectWrap() {
- refs_ = 0;
- }
-
-
- virtual ~ObjectWrap() {
- if (persistent().IsEmpty()) {
- return;
- }
-
- persistent().ClearWeak();
- persistent().Reset();
- }
-
-
- template <class T>
- static inline T* Unwrap(v8::Local<v8::Object> object) {
- assert(!object.IsEmpty());
- assert(object->InternalFieldCount() > 0);
- // Cast to ObjectWrap before casting to T. A direct cast from void
- // to T won't work right when T has more than one base class.
- void* ptr = GetInternalFieldPointer(object, 0);
- ObjectWrap* wrap = static_cast<ObjectWrap*>(ptr);
- return static_cast<T*>(wrap);
- }
-
-
- inline v8::Local<v8::Object> handle() const {
- return New(handle_);
- }
-
-
- inline Persistent<v8::Object>& persistent() {
- return handle_;
- }
-
-
- protected:
- inline void Wrap(v8::Local<v8::Object> object) {
- assert(persistent().IsEmpty());
- assert(object->InternalFieldCount() > 0);
- SetInternalFieldPointer(object, 0, this);
- persistent().Reset(object);
- MakeWeak();
- }
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
- inline void MakeWeak() {
- persistent().v8::PersistentBase<v8::Object>::SetWeak(
- this, WeakCallback, v8::WeakCallbackType::kParameter);
-#if NODE_MAJOR_VERSION < 10
- // FIXME(bnoordhuis) Probably superfluous in older Node.js versions too.
- persistent().MarkIndependent();
-#endif
- }
-
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-
- inline void MakeWeak() {
- persistent().v8::PersistentBase<v8::Object>::SetWeak(this, WeakCallback);
- persistent().MarkIndependent();
- }
-
-#else
-
- inline void MakeWeak() {
- persistent().persistent.MakeWeak(this, WeakCallback);
- persistent().MarkIndependent();
- }
-
-#endif
-
- /* Ref() marks the object as being attached to an event loop.
- * Refed objects will not be garbage collected, even if
- * all references are lost.
- */
- virtual void Ref() {
- assert(!persistent().IsEmpty());
- persistent().ClearWeak();
- refs_++;
- }
-
- /* Unref() marks an object as detached from the event loop. This is its
- * default state. When an object with a "weak" reference changes from
- * attached to detached state it will be freed. Be careful not to access
- * the object after making this call as it might be gone!
- * (A "weak reference" means an object that only has a
- * persistent handle.)
- *
- * DO NOT CALL THIS FROM DESTRUCTOR
- */
- virtual void Unref() {
- assert(!persistent().IsEmpty());
- assert(!persistent().IsWeak());
- assert(refs_ > 0);
- if (--refs_ == 0)
- MakeWeak();
- }
-
- int refs_; // ro
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(ObjectWrap)
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
- static void
- WeakCallback(v8::WeakCallbackInfo<ObjectWrap> const& info) {
- ObjectWrap* wrap = info.GetParameter();
- assert(wrap->refs_ == 0);
- wrap->handle_.Reset();
- delete wrap;
- }
-
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-
- static void
- WeakCallback(v8::WeakCallbackData<v8::Object, ObjectWrap> const& data) {
- ObjectWrap* wrap = data.GetParameter();
- assert(wrap->refs_ == 0);
- assert(wrap->handle_.IsNearDeath());
- wrap->handle_.Reset();
- delete wrap;
- }
-
-#else
-
- static void WeakCallback(v8::Persistent<v8::Value> value, void *data) {
- ObjectWrap *wrap = static_cast<ObjectWrap*>(data);
- assert(wrap->refs_ == 0);
- assert(wrap->handle_.IsNearDeath());
- wrap->handle_.Reset();
- delete wrap;
- }
-
-#endif
- Persistent<v8::Object> handle_;
-};
-
-
-#endif // NAN_OBJECT_WRAP_H_
diff --git a/node_modules/nan/nan_persistent_12_inl.h b/node_modules/nan/nan_persistent_12_inl.h
deleted file mode 100644
index d9649e8..0000000
--- a/node_modules/nan/nan_persistent_12_inl.h
+++ /dev/null
@@ -1,132 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_PERSISTENT_12_INL_H_
-#define NAN_PERSISTENT_12_INL_H_
-
-template<typename T, typename M> class Persistent :
- public v8::Persistent<T, M> {
- public:
- inline Persistent() : v8::Persistent<T, M>() {}
-
- template<typename S> inline Persistent(v8::Local<S> that) :
- v8::Persistent<T, M>(v8::Isolate::GetCurrent(), that) {}
-
- template<typename S, typename M2>
- inline
- Persistent(const v8::Persistent<S, M2> &that) : // NOLINT(runtime/explicit)
- v8::Persistent<T, M2>(v8::Isolate::GetCurrent(), that) {}
-
- inline void Reset() { v8::PersistentBase<T>::Reset(); }
-
- template <typename S>
- inline void Reset(const v8::Local<S> &other) {
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
- }
-
- template <typename S>
- inline void Reset(const v8::PersistentBase<S> &other) {
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
- }
-
- template<typename P>
- inline void SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type);
-
- private:
- inline T *operator*() const { return *PersistentBase<T>::persistent; }
-
- template<typename S, typename M2>
- inline void Copy(const Persistent<S, M2> &that) {
- TYPE_CHECK(T, S);
-
- this->Reset();
-
- if (!that.IsEmpty()) {
- this->Reset(that);
- M::Copy(that, this);
- }
- }
-};
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-template<typename T>
-class Global : public v8::Global<T> {
- public:
- inline Global() : v8::Global<T>() {}
-
- template<typename S> inline Global(v8::Local<S> that) :
- v8::Global<T>(v8::Isolate::GetCurrent(), that) {}
-
- template<typename S>
- inline
- Global(const v8::PersistentBase<S> &that) : // NOLINT(runtime/explicit)
- v8::Global<S>(v8::Isolate::GetCurrent(), that) {}
-
- inline void Reset() { v8::PersistentBase<T>::Reset(); }
-
- template <typename S>
- inline void Reset(const v8::Local<S> &other) {
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
- }
-
- template <typename S>
- inline void Reset(const v8::PersistentBase<S> &other) {
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
- }
-
- template<typename P>
- inline void SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type) {
- reinterpret_cast<Persistent<T>*>(this)->SetWeak(
- parameter, callback, type);
- }
-};
-#else
-template<typename T>
-class Global : public v8::UniquePersistent<T> {
- public:
- inline Global() : v8::UniquePersistent<T>() {}
-
- template<typename S> inline Global(v8::Local<S> that) :
- v8::UniquePersistent<T>(v8::Isolate::GetCurrent(), that) {}
-
- template<typename S>
- inline
- Global(const v8::PersistentBase<S> &that) : // NOLINT(runtime/explicit)
- v8::UniquePersistent<S>(v8::Isolate::GetCurrent(), that) {}
-
- inline void Reset() { v8::PersistentBase<T>::Reset(); }
-
- template <typename S>
- inline void Reset(const v8::Local<S> &other) {
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
- }
-
- template <typename S>
- inline void Reset(const v8::PersistentBase<S> &other) {
- v8::PersistentBase<T>::Reset(v8::Isolate::GetCurrent(), other);
- }
-
- template<typename P>
- inline void SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type) {
- reinterpret_cast<Persistent<T>*>(this)->SetWeak(
- parameter, callback, type);
- }
-};
-#endif
-
-#endif // NAN_PERSISTENT_12_INL_H_
diff --git a/node_modules/nan/nan_persistent_pre_12_inl.h b/node_modules/nan/nan_persistent_pre_12_inl.h
deleted file mode 100644
index 4c9c59d..0000000
--- a/node_modules/nan/nan_persistent_pre_12_inl.h
+++ /dev/null
@@ -1,242 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_PERSISTENT_PRE_12_INL_H_
-#define NAN_PERSISTENT_PRE_12_INL_H_
-
-template<typename T>
-class PersistentBase {
- v8::Persistent<T> persistent;
- template<typename U>
- friend v8::Local<U> New(const PersistentBase<U> &p);
- template<typename U, typename M>
- friend v8::Local<U> New(const Persistent<U, M> &p);
- template<typename U>
- friend v8::Local<U> New(const Global<U> &p);
- template<typename S> friend class ReturnValue;
-
- public:
- inline PersistentBase() :
- persistent() {}
-
- inline void Reset() {
- persistent.Dispose();
- persistent.Clear();
- }
-
- template<typename S>
- inline void Reset(const v8::Local<S> &other) {
- TYPE_CHECK(T, S);
-
- if (!persistent.IsEmpty()) {
- persistent.Dispose();
- }
-
- if (other.IsEmpty()) {
- persistent.Clear();
- } else {
- persistent = v8::Persistent<T>::New(other);
- }
- }
-
- template<typename S>
- inline void Reset(const PersistentBase<S> &other) {
- TYPE_CHECK(T, S);
-
- if (!persistent.IsEmpty()) {
- persistent.Dispose();
- }
-
- if (other.IsEmpty()) {
- persistent.Clear();
- } else {
- persistent = v8::Persistent<T>::New(other.persistent);
- }
- }
-
- inline bool IsEmpty() const { return persistent.IsEmpty(); }
-
- inline void Empty() { persistent.Clear(); }
-
- template<typename S>
- inline bool operator==(const PersistentBase<S> &that) const {
- return this->persistent == that.persistent;
- }
-
- template<typename S>
- inline bool operator==(const v8::Local<S> &that) const {
- return this->persistent == that;
- }
-
- template<typename S>
- inline bool operator!=(const PersistentBase<S> &that) const {
- return !operator==(that);
- }
-
- template<typename S>
- inline bool operator!=(const v8::Local<S> &that) const {
- return !operator==(that);
- }
-
- template<typename P>
- inline void SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type);
-
- inline void ClearWeak() { persistent.ClearWeak(); }
-
- inline void MarkIndependent() { persistent.MarkIndependent(); }
-
- inline bool IsIndependent() const { return persistent.IsIndependent(); }
-
- inline bool IsNearDeath() const { return persistent.IsNearDeath(); }
-
- inline bool IsWeak() const { return persistent.IsWeak(); }
-
- private:
- inline explicit PersistentBase(v8::Persistent<T> that) :
- persistent(that) { }
- inline explicit PersistentBase(T *val) : persistent(val) {}
- template<typename S, typename M> friend class Persistent;
- template<typename S> friend class Global;
- friend class ObjectWrap;
-};
-
-template<typename T>
-class NonCopyablePersistentTraits {
- public:
- typedef Persistent<T, NonCopyablePersistentTraits<T> >
- NonCopyablePersistent;
- static const bool kResetInDestructor = false;
- template<typename S, typename M>
- inline static void Copy(const Persistent<S, M> &source,
- NonCopyablePersistent *dest) {
- Uncompilable<v8::Object>();
- }
-
- template<typename O> inline static void Uncompilable() {
- TYPE_CHECK(O, v8::Primitive);
- }
-};
-
-template<typename T>
-struct CopyablePersistentTraits {
- typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
- static const bool kResetInDestructor = true;
- template<typename S, typename M>
- static inline void Copy(const Persistent<S, M> &source,
- CopyablePersistent *dest) {}
-};
-
-template<typename T, typename M> class Persistent :
- public PersistentBase<T> {
- public:
- inline Persistent() {}
-
- template<typename S> inline Persistent(v8::Handle<S> that)
- : PersistentBase<T>(v8::Persistent<T>::New(that)) {
- TYPE_CHECK(T, S);
- }
-
- inline Persistent(const Persistent &that) : PersistentBase<T>() {
- Copy(that);
- }
-
- template<typename S, typename M2>
- inline Persistent(const Persistent<S, M2> &that) :
- PersistentBase<T>() {
- Copy(that);
- }
-
- inline Persistent &operator=(const Persistent &that) {
- Copy(that);
- return *this;
- }
-
- template <class S, class M2>
- inline Persistent &operator=(const Persistent<S, M2> &that) {
- Copy(that);
- return *this;
- }
-
- inline ~Persistent() {
- if (M::kResetInDestructor) this->Reset();
- }
-
- private:
- inline T *operator*() const { return *PersistentBase<T>::persistent; }
-
- template<typename S, typename M2>
- inline void Copy(const Persistent<S, M2> &that) {
- TYPE_CHECK(T, S);
-
- this->Reset();
-
- if (!that.IsEmpty()) {
- this->persistent = v8::Persistent<T>::New(that.persistent);
- M::Copy(that, this);
- }
- }
-};
-
-template<typename T>
-class Global : public PersistentBase<T> {
- struct RValue {
- inline explicit RValue(Global* obj) : object(obj) {}
- Global* object;
- };
-
- public:
- inline Global() : PersistentBase<T>(0) { }
-
- template <typename S>
- inline Global(v8::Local<S> that) // NOLINT(runtime/explicit)
- : PersistentBase<T>(v8::Persistent<T>::New(that)) {
- TYPE_CHECK(T, S);
- }
-
- template <typename S>
- inline Global(const PersistentBase<S> &that) // NOLINT(runtime/explicit)
- : PersistentBase<T>(that) {
- TYPE_CHECK(T, S);
- }
- /**
- * Move constructor.
- */
- inline Global(RValue rvalue) // NOLINT(runtime/explicit)
- : PersistentBase<T>(rvalue.object->persistent) {
- rvalue.object->Reset();
- }
- inline ~Global() { this->Reset(); }
- /**
- * Move via assignment.
- */
- template<typename S>
- inline Global &operator=(Global<S> rhs) {
- TYPE_CHECK(T, S);
- this->Reset(rhs.persistent);
- rhs.Reset();
- return *this;
- }
- /**
- * Cast operator for moves.
- */
- inline operator RValue() { return RValue(this); }
- /**
- * Pass allows returning uniques from functions, etc.
- */
- Global Pass() { return Global(RValue(this)); }
-
- private:
- Global(Global &);
- void operator=(Global &);
- template<typename S> friend class ReturnValue;
-};
-
-#endif // NAN_PERSISTENT_PRE_12_INL_H_
diff --git a/node_modules/nan/nan_private.h b/node_modules/nan/nan_private.h
deleted file mode 100644
index 15f44cc..0000000
--- a/node_modules/nan/nan_private.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_PRIVATE_H_
-#define NAN_PRIVATE_H_
-
-inline Maybe<bool>
-HasPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key) {
- HandleScope scope;
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
- return object->HasPrivate(context, private_key);
-#else
- return Just(!object->GetHiddenValue(key).IsEmpty());
-#endif
-}
-
-inline MaybeLocal<v8::Value>
-GetPrivate(v8::Local<v8::Object> object, v8::Local<v8::String> key) {
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::EscapableHandleScope scope(isolate);
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
- v8::MaybeLocal<v8::Value> v = object->GetPrivate(context, private_key);
- return scope.Escape(v.ToLocalChecked());
-#else
- EscapableHandleScope scope;
- v8::Local<v8::Value> v = object->GetHiddenValue(key);
- if (v.IsEmpty()) {
- v = Undefined();
- }
- return scope.Escape(v);
-#endif
-}
-
-inline Maybe<bool> SetPrivate(
- v8::Local<v8::Object> object,
- v8::Local<v8::String> key,
- v8::Local<v8::Value> value) {
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
- HandleScope scope;
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::Local<v8::Context> context = isolate->GetCurrentContext();
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
- return object->SetPrivate(context, private_key, value);
-#else
- return Just(object->SetHiddenValue(key, value));
-#endif
-}
-
-inline Maybe<bool> DeletePrivate(
- v8::Local<v8::Object> object,
- v8::Local<v8::String> key) {
-#if NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION
- HandleScope scope;
- v8::Isolate *isolate = v8::Isolate::GetCurrent();
- v8::Local<v8::Private> private_key = v8::Private::ForApi(isolate, key);
- return object->DeletePrivate(isolate->GetCurrentContext(), private_key);
-#else
- return Just(object->DeleteHiddenValue(key));
-#endif
-}
-
-#endif // NAN_PRIVATE_H_
-
diff --git a/node_modules/nan/nan_string_bytes.h b/node_modules/nan/nan_string_bytes.h
deleted file mode 100644
index a2e6437..0000000
--- a/node_modules/nan/nan_string_bytes.h
+++ /dev/null
@@ -1,305 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-#ifndef NAN_STRING_BYTES_H_
-#define NAN_STRING_BYTES_H_
-
-// Decodes a v8::Local<v8::String> or Buffer to a raw char*
-
-namespace imp {
-
-using v8::Local;
-using v8::Object;
-using v8::String;
-using v8::Value;
-
-
-//// Base 64 ////
-
-#define base64_encoded_size(size) ((size + 2 - ((size + 2) % 3)) / 3 * 4)
-
-
-
-//// HEX ////
-
-static bool contains_non_ascii_slow(const char* buf, size_t len) {
- for (size_t i = 0; i < len; ++i) {
- if (buf[i] & 0x80) return true;
- }
- return false;
-}
-
-
-static bool contains_non_ascii(const char* src, size_t len) {
- if (len < 16) {
- return contains_non_ascii_slow(src, len);
- }
-
- const unsigned bytes_per_word = sizeof(void*);
- const unsigned align_mask = bytes_per_word - 1;
- const unsigned unaligned = reinterpret_cast<uintptr_t>(src) & align_mask;
-
- if (unaligned > 0) {
- const unsigned n = bytes_per_word - unaligned;
- if (contains_non_ascii_slow(src, n)) return true;
- src += n;
- len -= n;
- }
-
-
-#if defined(__x86_64__) || defined(_WIN64)
- const uintptr_t mask = 0x8080808080808080ll;
-#else
- const uintptr_t mask = 0x80808080l;
-#endif
-
- const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
-
- for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
- if (srcw[i] & mask) return true;
- }
-
- const unsigned remainder = len & align_mask;
- if (remainder > 0) {
- const size_t offset = len - remainder;
- if (contains_non_ascii_slow(src + offset, remainder)) return true;
- }
-
- return false;
-}
-
-
-static void force_ascii_slow(const char* src, char* dst, size_t len) {
- for (size_t i = 0; i < len; ++i) {
- dst[i] = src[i] & 0x7f;
- }
-}
-
-
-static void force_ascii(const char* src, char* dst, size_t len) {
- if (len < 16) {
- force_ascii_slow(src, dst, len);
- return;
- }
-
- const unsigned bytes_per_word = sizeof(void*);
- const unsigned align_mask = bytes_per_word - 1;
- const unsigned src_unalign = reinterpret_cast<uintptr_t>(src) & align_mask;
- const unsigned dst_unalign = reinterpret_cast<uintptr_t>(dst) & align_mask;
-
- if (src_unalign > 0) {
- if (src_unalign == dst_unalign) {
- const unsigned unalign = bytes_per_word - src_unalign;
- force_ascii_slow(src, dst, unalign);
- src += unalign;
- dst += unalign;
- len -= src_unalign;
- } else {
- force_ascii_slow(src, dst, len);
- return;
- }
- }
-
-#if defined(__x86_64__) || defined(_WIN64)
- const uintptr_t mask = ~0x8080808080808080ll;
-#else
- const uintptr_t mask = ~0x80808080l;
-#endif
-
- const uintptr_t* srcw = reinterpret_cast<const uintptr_t*>(src);
- uintptr_t* dstw = reinterpret_cast<uintptr_t*>(dst);
-
- for (size_t i = 0, n = len / bytes_per_word; i < n; ++i) {
- dstw[i] = srcw[i] & mask;
- }
-
- const unsigned remainder = len & align_mask;
- if (remainder > 0) {
- const size_t offset = len - remainder;
- force_ascii_slow(src + offset, dst + offset, remainder);
- }
-}
-
-
-static size_t base64_encode(const char* src,
- size_t slen,
- char* dst,
- size_t dlen) {
- // We know how much we'll write, just make sure that there's space.
- assert(dlen >= base64_encoded_size(slen) &&
- "not enough space provided for base64 encode");
-
- dlen = base64_encoded_size(slen);
-
- unsigned a;
- unsigned b;
- unsigned c;
- unsigned i;
- unsigned k;
- unsigned n;
-
- static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- "abcdefghijklmnopqrstuvwxyz"
- "0123456789+/";
-
- i = 0;
- k = 0;
- n = slen / 3 * 3;
-
- while (i < n) {
- a = src[i + 0] & 0xff;
- b = src[i + 1] & 0xff;
- c = src[i + 2] & 0xff;
-
- dst[k + 0] = table[a >> 2];
- dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
- dst[k + 2] = table[((b & 0x0f) << 2) | (c >> 6)];
- dst[k + 3] = table[c & 0x3f];
-
- i += 3;
- k += 4;
- }
-
- if (n != slen) {
- switch (slen - n) {
- case 1:
- a = src[i + 0] & 0xff;
- dst[k + 0] = table[a >> 2];
- dst[k + 1] = table[(a & 3) << 4];
- dst[k + 2] = '=';
- dst[k + 3] = '=';
- break;
-
- case 2:
- a = src[i + 0] & 0xff;
- b = src[i + 1] & 0xff;
- dst[k + 0] = table[a >> 2];
- dst[k + 1] = table[((a & 3) << 4) | (b >> 4)];
- dst[k + 2] = table[(b & 0x0f) << 2];
- dst[k + 3] = '=';
- break;
- }
- }
-
- return dlen;
-}
-
-
-static size_t hex_encode(const char* src, size_t slen, char* dst, size_t dlen) {
- // We know how much we'll write, just make sure that there's space.
- assert(dlen >= slen * 2 &&
- "not enough space provided for hex encode");
-
- dlen = slen * 2;
- for (uint32_t i = 0, k = 0; k < dlen; i += 1, k += 2) {
- static const char hex[] = "0123456789abcdef";
- uint8_t val = static_cast<uint8_t>(src[i]);
- dst[k + 0] = hex[val >> 4];
- dst[k + 1] = hex[val & 15];
- }
-
- return dlen;
-}
-
-
-
-static Local<Value> Encode(const char* buf,
- size_t buflen,
- enum Encoding encoding) {
- assert(buflen <= node::Buffer::kMaxLength);
- if (!buflen && encoding != BUFFER)
- return New("").ToLocalChecked();
-
- Local<String> val;
- switch (encoding) {
- case BUFFER:
- return CopyBuffer(buf, buflen).ToLocalChecked();
-
- case ASCII:
- if (contains_non_ascii(buf, buflen)) {
- char* out = new char[buflen];
- force_ascii(buf, out, buflen);
- val = New<String>(out, buflen).ToLocalChecked();
- delete[] out;
- } else {
- val = New<String>(buf, buflen).ToLocalChecked();
- }
- break;
-
- case UTF8:
- val = New<String>(buf, buflen).ToLocalChecked();
- break;
-
- case BINARY: {
- // TODO(isaacs) use ExternalTwoByteString?
- const unsigned char *cbuf = reinterpret_cast<const unsigned char*>(buf);
- uint16_t * twobytebuf = new uint16_t[buflen];
- for (size_t i = 0; i < buflen; i++) {
- // XXX is the following line platform independent?
- twobytebuf[i] = cbuf[i];
- }
- val = New<String>(twobytebuf, buflen).ToLocalChecked();
- delete[] twobytebuf;
- break;
- }
-
- case BASE64: {
- size_t dlen = base64_encoded_size(buflen);
- char* dst = new char[dlen];
-
- size_t written = base64_encode(buf, buflen, dst, dlen);
- assert(written == dlen);
-
- val = New<String>(dst, dlen).ToLocalChecked();
- delete[] dst;
- break;
- }
-
- case UCS2: {
- const uint16_t* data = reinterpret_cast<const uint16_t*>(buf);
- val = New<String>(data, buflen / 2).ToLocalChecked();
- break;
- }
-
- case HEX: {
- size_t dlen = buflen * 2;
- char* dst = new char[dlen];
- size_t written = hex_encode(buf, buflen, dst, dlen);
- assert(written == dlen);
-
- val = New<String>(dst, dlen).ToLocalChecked();
- delete[] dst;
- break;
- }
-
- default:
- assert(0 && "unknown encoding");
- break;
- }
-
- return val;
-}
-
-#undef base64_encoded_size
-
-} // end of namespace imp
-
-#endif // NAN_STRING_BYTES_H_
diff --git a/node_modules/nan/nan_typedarray_contents.h b/node_modules/nan/nan_typedarray_contents.h
deleted file mode 100644
index c6ac8a4..0000000
--- a/node_modules/nan/nan_typedarray_contents.h
+++ /dev/null
@@ -1,96 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_TYPEDARRAY_CONTENTS_H_
-#define NAN_TYPEDARRAY_CONTENTS_H_
-
-template<typename T>
-class TypedArrayContents {
- public:
- inline explicit TypedArrayContents(v8::Local<v8::Value> from) :
- length_(0), data_(NULL) {
- HandleScope scope;
-
- size_t length = 0;
- void* data = NULL;
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
- if (from->IsArrayBufferView()) {
- v8::Local<v8::ArrayBufferView> array =
- v8::Local<v8::ArrayBufferView>::Cast(from);
-
- const size_t byte_length = array->ByteLength();
- const ptrdiff_t byte_offset = array->ByteOffset();
- v8::Local<v8::ArrayBuffer> buffer = array->Buffer();
-
- length = byte_length / sizeof(T);
-// Actually it's 7.9 here but this would lead to ABI issues with Node.js 13
-// using 7.8 till 13.2.0.
-#if (V8_MAJOR_VERSION >= 8)
- data = static_cast<char*>(buffer->GetBackingStore()->Data()) + byte_offset;
-#else
- data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
-#endif
- }
-
-#else
-
- if (from->IsObject() && !from->IsNull()) {
- v8::Local<v8::Object> array = v8::Local<v8::Object>::Cast(from);
-
- MaybeLocal<v8::Value> buffer = Get(array,
- New<v8::String>("buffer").ToLocalChecked());
- MaybeLocal<v8::Value> byte_length = Get(array,
- New<v8::String>("byteLength").ToLocalChecked());
- MaybeLocal<v8::Value> byte_offset = Get(array,
- New<v8::String>("byteOffset").ToLocalChecked());
-
- if (!buffer.IsEmpty() &&
- !byte_length.IsEmpty() && byte_length.ToLocalChecked()->IsUint32() &&
- !byte_offset.IsEmpty() && byte_offset.ToLocalChecked()->IsUint32()) {
- data = array->GetIndexedPropertiesExternalArrayData();
- if(data) {
- length = byte_length.ToLocalChecked()->Uint32Value() / sizeof(T);
- }
- }
- }
-
-#endif
-
-#if defined(_MSC_VER) && _MSC_VER >= 1900 || __cplusplus >= 201103L
- assert(reinterpret_cast<uintptr_t>(data) % alignof (T) == 0);
-#elif defined(_MSC_VER) && _MSC_VER >= 1600 || defined(__GNUC__)
- assert(reinterpret_cast<uintptr_t>(data) % __alignof(T) == 0);
-#else
- assert(reinterpret_cast<uintptr_t>(data) % sizeof (T) == 0);
-#endif
-
- length_ = length;
- data_ = static_cast<T*>(data);
- }
-
- inline size_t length() const { return length_; }
- inline T* operator*() { return data_; }
- inline const T* operator*() const { return data_; }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(TypedArrayContents)
-
- //Disable heap allocation
- void *operator new(size_t size);
- void operator delete(void *, size_t) {
- abort();
- }
-
- size_t length_;
- T* data_;
-};
-
-#endif // NAN_TYPEDARRAY_CONTENTS_H_
diff --git a/node_modules/nan/nan_weak.h b/node_modules/nan/nan_weak.h
deleted file mode 100644
index 7e7ab07..0000000
--- a/node_modules/nan/nan_weak.h
+++ /dev/null
@@ -1,437 +0,0 @@
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-#ifndef NAN_WEAK_H_
-#define NAN_WEAK_H_
-
-static const int kInternalFieldsInWeakCallback = 2;
-static const int kNoInternalFieldIndex = -1;
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
- v8::WeakCallbackInfo<WeakCallbackInfo<T> > const&
-# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION
-# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
- v8::PhantomCallbackData<WeakCallbackInfo<T> > const&
-# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-# define NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ \
- v8::PhantomCallbackData<WeakCallbackInfo<T> > const&
-# define NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ \
- v8::InternalFieldsCallbackData<WeakCallbackInfo<T>, void> const&
-# define NAN_WEAK_PARAMETER_CALLBACK_SIG_ NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-# define NAN_WEAK_TWOFIELD_CALLBACK_SIG_ NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-# define NAN_WEAK_CALLBACK_DATA_TYPE_ \
- v8::WeakCallbackData<S, WeakCallbackInfo<T> > const&
-# define NAN_WEAK_CALLBACK_SIG_ NAN_WEAK_CALLBACK_DATA_TYPE_
-#else
-# define NAN_WEAK_CALLBACK_DATA_TYPE_ void *
-# define NAN_WEAK_CALLBACK_SIG_ \
- v8::Persistent<v8::Value>, NAN_WEAK_CALLBACK_DATA_TYPE_
-#endif
-
-template<typename T>
-class WeakCallbackInfo {
- public:
- typedef void (*Callback)(const WeakCallbackInfo<T>& data);
- WeakCallbackInfo(
- Persistent<v8::Value> *persistent
- , Callback callback
- , void *parameter
- , void *field1 = 0
- , void *field2 = 0) :
- callback_(callback), isolate_(0), parameter_(parameter) {
- std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>));
- internal_fields_[0] = field1;
- internal_fields_[1] = field2;
- }
- inline v8::Isolate *GetIsolate() const { return isolate_; }
- inline T *GetParameter() const { return static_cast<T*>(parameter_); }
- inline void *GetInternalField(int index) const {
- assert((index == 0 || index == 1) && "internal field index out of bounds");
- if (index == 0) {
- return internal_fields_[0];
- } else {
- return internal_fields_[1];
- }
- }
-
- private:
- NAN_DISALLOW_ASSIGN_COPY_MOVE(WeakCallbackInfo)
- Callback callback_;
- v8::Isolate *isolate_;
- void *parameter_;
- void *internal_fields_[kInternalFieldsInWeakCallback];
- v8::Persistent<v8::Value> persistent_;
- template<typename S, typename M> friend class Persistent;
- template<typename S> friend class PersistentBase;
-#if NODE_MODULE_VERSION <= NODE_0_12_MODULE_VERSION
-# if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
- template<typename S>
- static void invoke(NAN_WEAK_CALLBACK_SIG_ data);
- template<typename S>
- static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data);
-# else
- static void invoke(NAN_WEAK_CALLBACK_SIG_ data);
- static WeakCallbackInfo *unwrap(NAN_WEAK_CALLBACK_DATA_TYPE_ data);
-# endif
-#else
-# if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
- template<bool isFirstPass>
- static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data);
- template<bool isFirstPass>
- static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data);
-# else
- static void invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data);
- static void invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data);
-# endif
- static WeakCallbackInfo *unwrapparameter(
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data);
- static WeakCallbackInfo *unwraptwofield(
- NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data);
-#endif
-};
-
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-
-template<typename T>
-template<bool isFirstPass>
-void
-WeakCallbackInfo<T>::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) {
- WeakCallbackInfo<T> *cbinfo = unwrapparameter(data);
- if (isFirstPass) {
- cbinfo->persistent_.Reset();
- data.SetSecondPassCallback(invokeparameter<false>);
- } else {
- cbinfo->callback_(*cbinfo);
- delete cbinfo;
- }
-}
-
-template<typename T>
-template<bool isFirstPass>
-void
-WeakCallbackInfo<T>::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) {
- WeakCallbackInfo<T> *cbinfo = unwraptwofield(data);
- if (isFirstPass) {
- cbinfo->persistent_.Reset();
- data.SetSecondPassCallback(invoketwofield<false>);
- } else {
- cbinfo->callback_(*cbinfo);
- delete cbinfo;
- }
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrapparameter(
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) {
- WeakCallbackInfo<T> *cbinfo =
- static_cast<WeakCallbackInfo<T>*>(data.GetParameter());
- cbinfo->isolate_ = data.GetIsolate();
- return cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwraptwofield(
- NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) {
- WeakCallbackInfo<T> *cbinfo =
- static_cast<WeakCallbackInfo<T>*>(data.GetInternalField(0));
- cbinfo->isolate_ = data.GetIsolate();
- return cbinfo;
-}
-
-#undef NAN_WEAK_PARAMETER_CALLBACK_SIG_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_
-#undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-# elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-
-template<typename T>
-void
-WeakCallbackInfo<T>::invokeparameter(NAN_WEAK_PARAMETER_CALLBACK_SIG_ data) {
- WeakCallbackInfo<T> *cbinfo = unwrapparameter(data);
- cbinfo->persistent_.Reset();
- cbinfo->callback_(*cbinfo);
- delete cbinfo;
-}
-
-template<typename T>
-void
-WeakCallbackInfo<T>::invoketwofield(NAN_WEAK_TWOFIELD_CALLBACK_SIG_ data) {
- WeakCallbackInfo<T> *cbinfo = unwraptwofield(data);
- cbinfo->persistent_.Reset();
- cbinfo->callback_(*cbinfo);
- delete cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrapparameter(
- NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_ data) {
- WeakCallbackInfo<T> *cbinfo =
- static_cast<WeakCallbackInfo<T>*>(data.GetParameter());
- cbinfo->isolate_ = data.GetIsolate();
- return cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwraptwofield(
- NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_ data) {
- WeakCallbackInfo<T> *cbinfo =
- static_cast<WeakCallbackInfo<T>*>(data.GetInternalField1());
- cbinfo->isolate_ = data.GetIsolate();
- return cbinfo;
-}
-
-#undef NAN_WEAK_PARAMETER_CALLBACK_SIG_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_SIG_
-#undef NAN_WEAK_PARAMETER_CALLBACK_DATA_TYPE_
-#undef NAN_WEAK_TWOFIELD_CALLBACK_DATA_TYPE_
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-
-template<typename T>
-template<typename S>
-void WeakCallbackInfo<T>::invoke(NAN_WEAK_CALLBACK_SIG_ data) {
- WeakCallbackInfo<T> *cbinfo = unwrap(data);
- cbinfo->persistent_.Reset();
- cbinfo->callback_(*cbinfo);
- delete cbinfo;
-}
-
-template<typename T>
-template<typename S>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrap(
- NAN_WEAK_CALLBACK_DATA_TYPE_ data) {
- void *parameter = data.GetParameter();
- WeakCallbackInfo<T> *cbinfo =
- static_cast<WeakCallbackInfo<T>*>(parameter);
- cbinfo->isolate_ = data.GetIsolate();
- return cbinfo;
-}
-
-#undef NAN_WEAK_CALLBACK_SIG_
-#undef NAN_WEAK_CALLBACK_DATA_TYPE_
-#else
-
-template<typename T>
-void WeakCallbackInfo<T>::invoke(NAN_WEAK_CALLBACK_SIG_ data) {
- WeakCallbackInfo<T> *cbinfo = unwrap(data);
- cbinfo->persistent_.Dispose();
- cbinfo->persistent_.Clear();
- cbinfo->callback_(*cbinfo);
- delete cbinfo;
-}
-
-template<typename T>
-WeakCallbackInfo<T> *WeakCallbackInfo<T>::unwrap(
- NAN_WEAK_CALLBACK_DATA_TYPE_ data) {
- WeakCallbackInfo<T> *cbinfo =
- static_cast<WeakCallbackInfo<T>*>(data);
- cbinfo->isolate_ = v8::Isolate::GetCurrent();
- return cbinfo;
-}
-
-#undef NAN_WEAK_CALLBACK_SIG_
-#undef NAN_WEAK_CALLBACK_DATA_TYPE_
-#endif
-
-#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
- (V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type) {
- WeakCallbackInfo<P> *wcbd;
- if (type == WeakCallbackType::kParameter) {
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , parameter);
- v8::PersistentBase<T>::SetWeak(
- wcbd
- , WeakCallbackInfo<P>::template invokeparameter<true>
- , type);
- } else {
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
- assert((*self_v)->IsObject());
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
- int count = self->InternalFieldCount();
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
- }
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , 0
- , internal_fields[0]
- , internal_fields[1]);
- self->SetAlignedPointerInInternalField(0, wcbd);
- v8::PersistentBase<T>::SetWeak(
- static_cast<WeakCallbackInfo<P>*>(0)
- , WeakCallbackInfo<P>::template invoketwofield<true>
- , type);
- }
-}
-#elif NODE_MODULE_VERSION > IOJS_1_1_MODULE_VERSION
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type) {
- WeakCallbackInfo<P> *wcbd;
- if (type == WeakCallbackType::kParameter) {
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , parameter);
- v8::PersistentBase<T>::SetPhantom(
- wcbd
- , WeakCallbackInfo<P>::invokeparameter);
- } else {
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
- assert((*self_v)->IsObject());
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
- int count = self->InternalFieldCount();
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
- }
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , 0
- , internal_fields[0]
- , internal_fields[1]);
- self->SetAlignedPointerInInternalField(0, wcbd);
- v8::PersistentBase<T>::SetPhantom(
- static_cast<WeakCallbackInfo<P>*>(0)
- , WeakCallbackInfo<P>::invoketwofield
- , 0
- , count > 1 ? 1 : kNoInternalFieldIndex);
- }
-}
-#elif NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type) {
- WeakCallbackInfo<P> *wcbd;
- if (type == WeakCallbackType::kParameter) {
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , parameter);
- v8::PersistentBase<T>::SetPhantom(
- wcbd
- , WeakCallbackInfo<P>::invokeparameter);
- } else {
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
- assert((*self_v)->IsObject());
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
- int count = self->InternalFieldCount();
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
- }
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , 0
- , internal_fields[0]
- , internal_fields[1]);
- self->SetAlignedPointerInInternalField(0, wcbd);
- v8::PersistentBase<T>::SetPhantom(
- WeakCallbackInfo<P>::invoketwofield
- , 0
- , count > 1 ? 1 : kNoInternalFieldIndex);
- }
-}
-#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
-template<typename T, typename M>
-template<typename P>
-inline void Persistent<T, M>::SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type) {
- WeakCallbackInfo<P> *wcbd;
- if (type == WeakCallbackType::kParameter) {
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , parameter);
- v8::PersistentBase<T>::SetWeak(wcbd, WeakCallbackInfo<P>::invoke);
- } else {
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
- assert((*self_v)->IsObject());
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
- int count = self->InternalFieldCount();
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
- internal_fields[i] = self->GetAlignedPointerFromInternalField(i);
- }
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , 0
- , internal_fields[0]
- , internal_fields[1]);
- v8::PersistentBase<T>::SetWeak(wcbd, WeakCallbackInfo<P>::invoke);
- }
-}
-#else
-template<typename T>
-template<typename P>
-inline void PersistentBase<T>::SetWeak(
- P *parameter
- , typename WeakCallbackInfo<P>::Callback callback
- , WeakCallbackType type) {
- WeakCallbackInfo<P> *wcbd;
- if (type == WeakCallbackType::kParameter) {
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , parameter);
- persistent.MakeWeak(wcbd, WeakCallbackInfo<P>::invoke);
- } else {
- v8::Local<v8::Value>* self_v(reinterpret_cast<v8::Local<v8::Value>*>(this));
- assert((*self_v)->IsObject());
- v8::Local<v8::Object> self((*self_v).As<v8::Object>());
- int count = self->InternalFieldCount();
- void *internal_fields[kInternalFieldsInWeakCallback] = {0, 0};
- for (int i = 0; i < count && i < kInternalFieldsInWeakCallback; i++) {
- internal_fields[i] = self->GetPointerFromInternalField(i);
- }
- wcbd = new WeakCallbackInfo<P>(
- reinterpret_cast<Persistent<v8::Value>*>(this)
- , callback
- , 0
- , internal_fields[0]
- , internal_fields[1]);
- persistent.MakeWeak(wcbd, WeakCallbackInfo<P>::invoke);
- }
-}
-#endif
-
-#endif // NAN_WEAK_H_
diff --git a/node_modules/nan/package.json b/node_modules/nan/package.json
deleted file mode 100644
index ec16910..0000000
--- a/node_modules/nan/package.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "_from": "nan@^2.13.2",
- "_id": "nan@2.14.1",
- "_inBundle": false,
- "_integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==",
- "_location": "/nan",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "nan@^2.13.2",
- "name": "nan",
- "escapedName": "nan",
- "rawSpec": "^2.13.2",
- "saveSpec": null,
- "fetchSpec": "^2.13.2"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz",
- "_shasum": "d7be34dfa3105b91494c3147089315eff8874b01",
- "_spec": "nan@^2.13.2",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/node-sass",
- "bugs": {
- "url": "https://github.com/nodejs/nan/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Rod Vagg",
- "email": "r@va.gg",
- "url": "https://github.com/rvagg"
- },
- {
- "name": "Benjamin Byholm",
- "email": "bbyholm@abo.fi",
- "url": "https://github.com/kkoopa/"
- },
- {
- "name": "Trevor Norris",
- "email": "trev.norris@gmail.com",
- "url": "https://github.com/trevnorris"
- },
- {
- "name": "Nathan Rajlich",
- "email": "nathan@tootallnate.net",
- "url": "https://github.com/TooTallNate"
- },
- {
- "name": "Brett Lawson",
- "email": "brett19@gmail.com",
- "url": "https://github.com/brett19"
- },
- {
- "name": "Ben Noordhuis",
- "email": "info@bnoordhuis.nl",
- "url": "https://github.com/bnoordhuis"
- },
- {
- "name": "David Siegel",
- "email": "david@artcom.de",
- "url": "https://github.com/agnat"
- },
- {
- "name": "Michael Ira Krufky",
- "email": "mkrufky@gmail.com",
- "url": "https://github.com/mkrufky"
- }
- ],
- "deprecated": false,
- "description": "Native Abstractions for Node.js: C++ header for Node 0.8 -> 14 compatibility",
- "devDependencies": {
- "bindings": "~1.2.1",
- "commander": "^2.8.1",
- "glob": "^5.0.14",
- "node-gyp": "~3.6.2",
- "readable-stream": "^2.1.4",
- "request": "=2.81.0",
- "tap": "~0.7.1",
- "xtend": "~4.0.0"
- },
- "homepage": "https://github.com/nodejs/nan#readme",
- "license": "MIT",
- "main": "include_dirs.js",
- "name": "nan",
- "repository": {
- "type": "git",
- "url": "git://github.com/nodejs/nan.git"
- },
- "scripts": {
- "docs": "doc/.build.sh",
- "rebuild-tests": "node-gyp rebuild --msvs_version=2015 --directory test",
- "test": "tap --gc --stderr test/js/*-test.js",
- "test:worker": "node --experimental-worker test/tap-as-worker.js --gc --stderr test/js/*-test.js"
- },
- "version": "2.14.1"
-}
diff --git a/node_modules/nan/tools/1to2.js b/node_modules/nan/tools/1to2.js
deleted file mode 100755
index 6af2505..0000000
--- a/node_modules/nan/tools/1to2.js
+++ /dev/null
@@ -1,412 +0,0 @@
-#!/usr/bin/env node
-/*********************************************************************
- * NAN - Native Abstractions for Node.js
- *
- * Copyright (c) 2018 NAN contributors
- *
- * MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
- ********************************************************************/
-
-var commander = require('commander'),
- fs = require('fs'),
- glob = require('glob'),
- groups = [],
- total = 0,
- warning1 = '/* ERROR: Rewrite using Buffer */\n',
- warning2 = '\\/\\* ERROR\\: Rewrite using Buffer \\*\\/\\n',
- length,
- i;
-
-fs.readFile(__dirname + '/package.json', 'utf8', function (err, data) {
- if (err) {
- throw err;
- }
-
- commander
- .version(JSON.parse(data).version)
- .usage('[options] <file ...>')
- .parse(process.argv);
-
- if (!process.argv.slice(2).length) {
- commander.outputHelp();
- }
-});
-
-/* construct strings representing regular expressions
- each expression contains a unique group allowing for identification of the match
- the index of this key group, relative to the regular expression in question,
- is indicated by the first array member */
-
-/* simple substistutions, key group is the entire match, 0 */
-groups.push([0, [
- '_NAN_',
- 'NODE_SET_METHOD',
- 'NODE_SET_PROTOTYPE_METHOD',
- 'NanAsciiString',
- 'NanEscapeScope',
- 'NanReturnValue',
- 'NanUcs2String'].join('|')]);
-
-/* substitutions of parameterless macros, key group is 1 */
-groups.push([1, ['(', [
- 'NanEscapableScope',
- 'NanReturnNull',
- 'NanReturnUndefined',
- 'NanScope'].join('|'), ')\\(\\)'].join('')]);
-
-/* replace TryCatch with NanTryCatch once, gobbling possible namespace, key group 2 */
-groups.push([2, '(?:(?:v8\\:\\:)?|(Nan)?)(TryCatch)']);
-
-/* NanNew("string") will likely not fail a ToLocalChecked(), key group 1 */
-groups.push([1, ['(NanNew)', '(\\("[^\\"]*"[^\\)]*\\))(?!\\.ToLocalChecked\\(\\))'].join('')]);
-
-/* Removed v8 APIs, warn that the code needs rewriting using node::Buffer, key group 2 */
-groups.push([2, ['(', warning2, ')?', '^.*?(', [
- 'GetIndexedPropertiesExternalArrayDataLength',
- 'GetIndexedPropertiesExternalArrayData',
- 'GetIndexedPropertiesExternalArrayDataType',
- 'GetIndexedPropertiesPixelData',
- 'GetIndexedPropertiesPixelDataLength',
- 'HasIndexedPropertiesInExternalArrayData',
- 'HasIndexedPropertiesInPixelData',
- 'SetIndexedPropertiesToExternalArrayData',
- 'SetIndexedPropertiesToPixelData'].join('|'), ')'].join('')]);
-
-/* No need for NanScope in V8-exposed methods, key group 2 */
-groups.push([2, ['((', [
- 'NAN_METHOD',
- 'NAN_GETTER',
- 'NAN_SETTER',
- 'NAN_PROPERTY_GETTER',
- 'NAN_PROPERTY_SETTER',
- 'NAN_PROPERTY_ENUMERATOR',
- 'NAN_PROPERTY_DELETER',
- 'NAN_PROPERTY_QUERY',
- 'NAN_INDEX_GETTER',
- 'NAN_INDEX_SETTER',
- 'NAN_INDEX_ENUMERATOR',
- 'NAN_INDEX_DELETER',
- 'NAN_INDEX_QUERY'].join('|'), ')\\([^\\)]*\\)\\s*\\{)\\s*NanScope\\(\\)\\s*;'].join('')]);
-
-/* v8::Value::ToXXXXXXX returns v8::MaybeLocal<T>, key group 3 */
-groups.push([3, ['([\\s\\(\\)])([^\\s\\(\\)]+)->(', [
- 'Boolean',
- 'Number',
- 'String',
- 'Object',
- 'Integer',
- 'Uint32',
- 'Int32'].join('|'), ')\\('].join('')]);
-
-/* v8::Value::XXXXXXXValue returns v8::Maybe<T>, key group 3 */
-groups.push([3, ['([\\s\\(\\)])([^\\s\\(\\)]+)->((?:', [
- 'Boolean',
- 'Number',
- 'Integer',
- 'Uint32',
- 'Int32'].join('|'), ')Value)\\('].join('')]);
-
-/* NAN_WEAK_CALLBACK macro was removed, write out callback definition, key group 1 */
-groups.push([1, '(NAN_WEAK_CALLBACK)\\(([^\\s\\)]+)\\)']);
-
-/* node::ObjectWrap and v8::Persistent have been replaced with Nan implementations, key group 1 */
-groups.push([1, ['(', [
- 'NanDisposePersistent',
- 'NanObjectWrapHandle'].join('|'), ')\\s*\\(\\s*([^\\s\\)]+)'].join('')]);
-
-/* Since NanPersistent there is no need for NanMakeWeakPersistent, key group 1 */
-groups.push([1, '(NanMakeWeakPersistent)\\s*\\(\\s*([^\\s,]+)\\s*,\\s*']);
-
-/* Many methods of v8::Object and others now return v8::MaybeLocal<T>, key group 3 */
-groups.push([3, ['([\\s])([^\\s]+)->(', [
- 'GetEndColumn',
- 'GetFunction',
- 'GetLineNumber',
- 'NewInstance',
- 'GetPropertyNames',
- 'GetOwnPropertyNames',
- 'GetSourceLine',
- 'GetStartColumn',
- 'ObjectProtoToString',
- 'ToArrayIndex',
- 'ToDetailString',
- 'CallAsConstructor',
- 'CallAsFunction',
- 'CloneElementAt',
- 'Delete',
- 'ForceSet',
- 'Get',
- 'GetPropertyAttributes',
- 'GetRealNamedProperty',
- 'GetRealNamedPropertyInPrototypeChain',
- 'Has',
- 'HasOwnProperty',
- 'HasRealIndexedProperty',
- 'HasRealNamedCallbackProperty',
- 'HasRealNamedProperty',
- 'Set',
- 'SetAccessor',
- 'SetIndexedPropertyHandler',
- 'SetNamedPropertyHandler',
- 'SetPrototype'].join('|'), ')\\('].join('')]);
-
-/* You should get an error if any of these fail anyways,
- or handle the error better, it is indicated either way, key group 2 */
-groups.push([2, ['NanNew(<(?:v8\\:\\:)?(', ['Date', 'String', 'RegExp'].join('|'), ')>)(\\([^\\)]*\\))(?!\\.ToLocalChecked\\(\\))'].join('')]);
-
-/* v8::Value::Equals now returns a v8::Maybe, key group 3 */
-groups.push([3, '([\\s\\(\\)])([^\\s\\(\\)]+)->(Equals)\\(([^\\s\\)]+)']);
-
-/* NanPersistent makes this unnecessary, key group 1 */
-groups.push([1, '(NanAssignPersistent)(?:<v8\\:\\:[^>]+>)?\\(([^,]+),\\s*']);
-
-/* args has been renamed to info, key group 2 */
-groups.push([2, '(\\W)(args)(\\W)'])
-
-/* node::ObjectWrap was replaced with NanObjectWrap, key group 2 */
-groups.push([2, '(\\W)(?:node\\:\\:)?(ObjectWrap)(\\W)']);
-
-/* v8::Persistent was replaced with NanPersistent, key group 2 */
-groups.push([2, '(\\W)(?:v8\\:\\:)?(Persistent)(\\W)']);
-
-/* counts the number of capturing groups in a well-formed regular expression,
- ignoring non-capturing groups and escaped parentheses */
-function groupcount(s) {
- var positive = s.match(/\((?!\?)/g),
- negative = s.match(/\\\(/g);
- return (positive ? positive.length : 0) - (negative ? negative.length : 0);
-}
-
-/* compute the absolute position of each key group in the joined master RegExp */
-for (i = 1, length = groups.length; i < length; i++) {
- total += groupcount(groups[i - 1][1]);
- groups[i][0] += total;
-}
-
-/* create the master RegExp, whis is the union of all the groups' expressions */
-master = new RegExp(groups.map(function (a) { return a[1]; }).join('|'), 'gm');
-
-/* replacement function for String.replace, receives 21 arguments */
-function replace() {
- /* simple expressions */
- switch (arguments[groups[0][0]]) {
- case '_NAN_':
- return 'NAN_';
- case 'NODE_SET_METHOD':
- return 'NanSetMethod';
- case 'NODE_SET_PROTOTYPE_METHOD':
- return 'NanSetPrototypeMethod';
- case 'NanAsciiString':
- return 'NanUtf8String';
- case 'NanEscapeScope':
- return 'scope.Escape';
- case 'NanReturnNull':
- return 'info.GetReturnValue().SetNull';
- case 'NanReturnValue':
- return 'info.GetReturnValue().Set';
- case 'NanUcs2String':
- return 'v8::String::Value';
- default:
- }
-
- /* macros without arguments */
- switch (arguments[groups[1][0]]) {
- case 'NanEscapableScope':
- return 'NanEscapableScope scope'
- case 'NanReturnUndefined':
- return 'return';
- case 'NanScope':
- return 'NanScope scope';
- default:
- }
-
- /* TryCatch, emulate negative backref */
- if (arguments[groups[2][0]] === 'TryCatch') {
- return arguments[groups[2][0] - 1] ? arguments[0] : 'NanTryCatch';
- }
-
- /* NanNew("foo") --> NanNew("foo").ToLocalChecked() */
- if (arguments[groups[3][0]] === 'NanNew') {
- return [arguments[0], '.ToLocalChecked()'].join('');
- }
-
- /* insert warning for removed functions as comment on new line above */
- switch (arguments[groups[4][0]]) {
- case 'GetIndexedPropertiesExternalArrayData':
- case 'GetIndexedPropertiesExternalArrayDataLength':
- case 'GetIndexedPropertiesExternalArrayDataType':
- case 'GetIndexedPropertiesPixelData':
- case 'GetIndexedPropertiesPixelDataLength':
- case 'HasIndexedPropertiesInExternalArrayData':
- case 'HasIndexedPropertiesInPixelData':
- case 'SetIndexedPropertiesToExternalArrayData':
- case 'SetIndexedPropertiesToPixelData':
- return arguments[groups[4][0] - 1] ? arguments[0] : [warning1, arguments[0]].join('');
- default:
- }
-
- /* remove unnecessary NanScope() */
- switch (arguments[groups[5][0]]) {
- case 'NAN_GETTER':
- case 'NAN_METHOD':
- case 'NAN_SETTER':
- case 'NAN_INDEX_DELETER':
- case 'NAN_INDEX_ENUMERATOR':
- case 'NAN_INDEX_GETTER':
- case 'NAN_INDEX_QUERY':
- case 'NAN_INDEX_SETTER':
- case 'NAN_PROPERTY_DELETER':
- case 'NAN_PROPERTY_ENUMERATOR':
- case 'NAN_PROPERTY_GETTER':
- case 'NAN_PROPERTY_QUERY':
- case 'NAN_PROPERTY_SETTER':
- return arguments[groups[5][0] - 1];
- default:
- }
-
- /* Value conversion */
- switch (arguments[groups[6][0]]) {
- case 'Boolean':
- case 'Int32':
- case 'Integer':
- case 'Number':
- case 'Object':
- case 'String':
- case 'Uint32':
- return [arguments[groups[6][0] - 2], 'NanTo<v8::', arguments[groups[6][0]], '>(', arguments[groups[6][0] - 1]].join('');
- default:
- }
-
- /* other value conversion */
- switch (arguments[groups[7][0]]) {
- case 'BooleanValue':
- return [arguments[groups[7][0] - 2], 'NanTo<bool>(', arguments[groups[7][0] - 1]].join('');
- case 'Int32Value':
- return [arguments[groups[7][0] - 2], 'NanTo<int32_t>(', arguments[groups[7][0] - 1]].join('');
- case 'IntegerValue':
- return [arguments[groups[7][0] - 2], 'NanTo<int64_t>(', arguments[groups[7][0] - 1]].join('');
- case 'Uint32Value':
- return [arguments[groups[7][0] - 2], 'NanTo<uint32_t>(', arguments[groups[7][0] - 1]].join('');
- default:
- }
-
- /* NAN_WEAK_CALLBACK */
- if (arguments[groups[8][0]] === 'NAN_WEAK_CALLBACK') {
- return ['template<typename T>\nvoid ',
- arguments[groups[8][0] + 1], '(const NanWeakCallbackInfo<T> &data)'].join('');
- }
-
- /* use methods on NAN classes instead */
- switch (arguments[groups[9][0]]) {
- case 'NanDisposePersistent':
- return [arguments[groups[9][0] + 1], '.Reset('].join('');
- case 'NanObjectWrapHandle':
- return [arguments[groups[9][0] + 1], '->handle('].join('');
- default:
- }
-
- /* use method on NanPersistent instead */
- if (arguments[groups[10][0]] === 'NanMakeWeakPersistent') {
- return arguments[groups[10][0] + 1] + '.SetWeak(';
- }
-
- /* These return Maybes, the upper ones take no arguments */
- switch (arguments[groups[11][0]]) {
- case 'GetEndColumn':
- case 'GetFunction':
- case 'GetLineNumber':
- case 'GetOwnPropertyNames':
- case 'GetPropertyNames':
- case 'GetSourceLine':
- case 'GetStartColumn':
- case 'NewInstance':
- case 'ObjectProtoToString':
- case 'ToArrayIndex':
- case 'ToDetailString':
- return [arguments[groups[11][0] - 2], 'Nan', arguments[groups[11][0]], '(', arguments[groups[11][0] - 1]].join('');
- case 'CallAsConstructor':
- case 'CallAsFunction':
- case 'CloneElementAt':
- case 'Delete':
- case 'ForceSet':
- case 'Get':
- case 'GetPropertyAttributes':
- case 'GetRealNamedProperty':
- case 'GetRealNamedPropertyInPrototypeChain':
- case 'Has':
- case 'HasOwnProperty':
- case 'HasRealIndexedProperty':
- case 'HasRealNamedCallbackProperty':
- case 'HasRealNamedProperty':
- case 'Set':
- case 'SetAccessor':
- case 'SetIndexedPropertyHandler':
- case 'SetNamedPropertyHandler':
- case 'SetPrototype':
- return [arguments[groups[11][0] - 2], 'Nan', arguments[groups[11][0]], '(', arguments[groups[11][0] - 1], ', '].join('');
- default:
- }
-
- /* Automatic ToLocalChecked(), take it or leave it */
- switch (arguments[groups[12][0]]) {
- case 'Date':
- case 'String':
- case 'RegExp':
- return ['NanNew', arguments[groups[12][0] - 1], arguments[groups[12][0] + 1], '.ToLocalChecked()'].join('');
- default:
- }
-
- /* NanEquals is now required for uniformity */
- if (arguments[groups[13][0]] === 'Equals') {
- return [arguments[groups[13][0] - 1], 'NanEquals(', arguments[groups[13][0] - 1], ', ', arguments[groups[13][0] + 1]].join('');
- }
-
- /* use method on replacement class instead */
- if (arguments[groups[14][0]] === 'NanAssignPersistent') {
- return [arguments[groups[14][0] + 1], '.Reset('].join('');
- }
-
- /* args --> info */
- if (arguments[groups[15][0]] === 'args') {
- return [arguments[groups[15][0] - 1], 'info', arguments[groups[15][0] + 1]].join('');
- }
-
- /* ObjectWrap --> NanObjectWrap */
- if (arguments[groups[16][0]] === 'ObjectWrap') {
- return [arguments[groups[16][0] - 1], 'NanObjectWrap', arguments[groups[16][0] + 1]].join('');
- }
-
- /* Persistent --> NanPersistent */
- if (arguments[groups[17][0]] === 'Persistent') {
- return [arguments[groups[17][0] - 1], 'NanPersistent', arguments[groups[17][0] + 1]].join('');
- }
-
- /* This should not happen. A switch is probably missing a case if it does. */
- throw 'Unhandled match: ' + arguments[0];
-}
-
-/* reads a file, runs replacement and writes it back */
-function processFile(file) {
- fs.readFile(file, {encoding: 'utf8'}, function (err, data) {
- if (err) {
- throw err;
- }
-
- /* run replacement twice, might need more runs */
- fs.writeFile(file, data.replace(master, replace).replace(master, replace), function (err) {
- if (err) {
- throw err;
- }
- });
- });
-}
-
-/* process file names from command line and process the identified files */
-for (i = 2, length = process.argv.length; i < length; i++) {
- glob(process.argv[i], function (err, matches) {
- if (err) {
- throw err;
- }
- matches.forEach(processFile);
- });
-}
diff --git a/node_modules/nan/tools/README.md b/node_modules/nan/tools/README.md
deleted file mode 100644
index 7f07e4b..0000000
--- a/node_modules/nan/tools/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-1to2 naively converts source code files from NAN 1 to NAN 2. There will be erroneous conversions,
-false positives and missed opportunities. The input files are rewritten in place. Make sure that
-you have backups. You will have to manually review the changes afterwards and do some touchups.
-
-```sh
-$ tools/1to2.js
-
- Usage: 1to2 [options] <file ...>
-
- Options:
-
- -h, --help output usage information
- -V, --version output the version number
-```
diff --git a/node_modules/nan/tools/package.json b/node_modules/nan/tools/package.json
deleted file mode 100644
index 2dcdd78..0000000
--- a/node_modules/nan/tools/package.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "1to2",
- "version": "1.0.0",
- "description": "NAN 1 -> 2 Migration Script",
- "main": "1to2.js",
- "repository": {
- "type": "git",
- "url": "git://github.com/nodejs/nan.git"
- },
- "contributors": [
- "Benjamin Byholm <bbyholm@abo.fi> (https://github.com/kkoopa/)",
- "Mathias Küsel (https://github.com/mathiask88/)"
- ],
- "dependencies": {
- "glob": "~5.0.10",
- "commander": "~2.8.1"
- },
- "license": "MIT"
-}
diff --git a/node_modules/node-gyp/.github/ISSUE_TEMPLATE.md b/node_modules/node-gyp/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index dbd053a..0000000
--- a/node_modules/node-gyp/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,26 +0,0 @@
-<!--
-Thank you for reporting an issue. The more information you can give us, the
-better the chance we can fix your problem.
-
-This issue tracker is for issues with node-gyp,
-if you have an issue installing a specific module, please file an issue on
-that module's issue tracker (`npm issues modulename`).
--->
-
-* **Node Version**: <!-- `node -v` and `npm -v` -->
-* **Platform**: <!-- `uname -a` (UNIX), or `systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"` (Windows) -->
-* **Compiler**: <!-- `cc -v` (UNIX) or `msbuild /version & cl` (Windows) -->
-* **Module**: <!-- what you tried to build/install -->
-
-<details><summary>Verbose output (from npm or node-gyp):</summary>
-
-<!-- Paste your log between the backticks. Contents of npm-debug.log or verbose build output -->
-
-```
-
-```
-
-</details>
-
-<!-- Any further details -->
-
diff --git a/node_modules/node-gyp/.github/PULL_REQUEST_TEMPLATE.md b/node_modules/node-gyp/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 10156d8..0000000
--- a/node_modules/node-gyp/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,17 +0,0 @@
-<!--
-Thank you for your pull request. Please review the below requirements.
-
-Contributor guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
--->
-
-##### Checklist
-<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->
-
-- [ ] `npm install && npm test` passes
-- [ ] tests are included <!-- Bug fixes and new features should include tests -->
-- [ ] documentation is changed or added
-- [ ] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#commit-message-guidelines)
-
-##### Description of change
-<!-- Provide a description of the change -->
-
diff --git a/node_modules/node-gyp/.jshintrc b/node_modules/node-gyp/.jshintrc
deleted file mode 100644
index 52475ba..0000000
--- a/node_modules/node-gyp/.jshintrc
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "asi": true,
- "laxcomma": true,
- "es5": true,
- "node": true,
- "strict": false
-}
diff --git a/node_modules/node-gyp/CHANGELOG.md b/node_modules/node-gyp/CHANGELOG.md
deleted file mode 100644
index 33bbfad..0000000
--- a/node_modules/node-gyp/CHANGELOG.md
+++ /dev/null
@@ -1,227 +0,0 @@
-v3.8.0 2018-08-09
-=================
-
-* [[`c5929cb4fe`](https://github.com/nodejs/node-gyp/commit/c5929cb4fe)] - **doc**: update Xcode preferences tab name. (Ivan Daniluk) [#1330](https://github.com/nodejs/node-gyp/pull/1330)
-* [[`8b488da8b9`](https://github.com/nodejs/node-gyp/commit/8b488da8b9)] - **doc**: update link to commit guidelines (Jonas Hermsmeier) [#1456](https://github.com/nodejs/node-gyp/pull/1456)
-* [[`b4fe8c16f9`](https://github.com/nodejs/node-gyp/commit/b4fe8c16f9)] - **doc**: fix visual studio links (Bartosz Sosnowski) [#1490](https://github.com/nodejs/node-gyp/pull/1490)
-* [[`536759c7e9`](https://github.com/nodejs/node-gyp/commit/536759c7e9)] - **configure**: use sys.version\_info to get python version (Yang Guo) [#1504](https://github.com/nodejs/node-gyp/pull/1504)
-* [[`94c39c604e`](https://github.com/nodejs/node-gyp/commit/94c39c604e)] - **gyp**: fix ninja build failure (GYP patch) (Daniel Bevenius) [nodejs/node#12484](https://github.com/nodejs/node/pull/12484)
-* [[`e8ea74e0fa`](https://github.com/nodejs/node-gyp/commit/e8ea74e0fa)] - **tools**: patch gyp to avoid xcrun errors (Ujjwal Sharma) [nodejs/node#21520](https://github.com/nodejs/node/pull/21520)
-* [[`ea9aff44f2`](https://github.com/nodejs/node-gyp/commit/ea9aff44f2)] - **tools**: fix "the the" typos in comments (Masashi Hirano) [nodejs/node#20716](https://github.com/nodejs/node/pull/20716)
-* [[`207e5aa4fd`](https://github.com/nodejs/node-gyp/commit/207e5aa4fd)] - **gyp**: implement LD/LDXX for ninja and FIPS (Sam Roberts)
-* [[`b416c5f4b7`](https://github.com/nodejs/node-gyp/commit/b416c5f4b7)] - **gyp**: enable cctest to use objects (gyp part) (Daniel Bevenius) [nodejs/node#12450](https://github.com/nodejs/node/pull/12450)
-* [[`40692d016b`](https://github.com/nodejs/node-gyp/commit/40692d016b)] - **gyp**: add compile\_commands.json gyp generator (Ben Noordhuis) [nodejs/node#12450](https://github.com/nodejs/node/pull/12450)
-* [[`fc3c4e2b10`](https://github.com/nodejs/node-gyp/commit/fc3c4e2b10)] - **gyp**: float gyp patch for long filenames (Anna Henningsen) [nodejs/node#7963](https://github.com/nodejs/node/pull/7963)
-* [[`8aedbfdef6`](https://github.com/nodejs/node-gyp/commit/8aedbfdef6)] - **gyp**: backport GYP fix to fix AIX shared suffix (Stewart Addison)
-* [[`6cd84b84fc`](https://github.com/nodejs/node-gyp/commit/6cd84b84fc)] - **test**: formatting and minor fixes for execFileSync replacement (Rod Vagg) [#1521](https://github.com/nodejs/node-gyp/pull/1521)
-* [[`60e421363f`](https://github.com/nodejs/node-gyp/commit/60e421363f)] - **test**: added test/processExecSync.js for when execFileSync is not available. (Rohit Hazra) [#1492](https://github.com/nodejs/node-gyp/pull/1492)
-* [[`969447c5bd`](https://github.com/nodejs/node-gyp/commit/969447c5bd)] - **deps**: bump request to 2.8.7, fixes heok/hawk issues (Rohit Hazra) [#1492](https://github.com/nodejs/node-gyp/pull/1492)
-* [[`340403ccfe`](https://github.com/nodejs/node-gyp/commit/340403ccfe)] - **win**: improve parsing of SDK version (Alessandro Vergani) [#1516](https://github.com/nodejs/node-gyp/pull/1516)
-
-v3.7.0 2018-06-08
-=================
-
-* [[`84cea7b30d`](https://github.com/nodejs/node-gyp/commit/84cea7b30d)] - Remove unused gyp test scripts. (Ben Noordhuis) [#1458](https://github.com/nodejs/node-gyp/pull/1458)
-* [[`0540e4ec63`](https://github.com/nodejs/node-gyp/commit/0540e4ec63)] - **gyp**: escape spaces in filenames in make generator (Jeff Senn) [#1436](https://github.com/nodejs/node-gyp/pull/1436)
-* [[`88fc6fa0ec`](https://github.com/nodejs/node-gyp/commit/88fc6fa0ec)] - Drop dependency on minimatch. (Brian Woodward) [#1158](https://github.com/nodejs/node-gyp/pull/1158)
-* [[`1e203c5148`](https://github.com/nodejs/node-gyp/commit/1e203c5148)] - Fix include path when pointing to Node.js source (Richard Lau) [#1055](https://github.com/nodejs/node-gyp/pull/1055)
-* [[`53d8cb967c`](https://github.com/nodejs/node-gyp/commit/53d8cb967c)] - Prefix build targets with /t: on Windows (Natalie Wolfe) [#1164](https://github.com/nodejs/node-gyp/pull/1164)
-* [[`53a5f8ff38`](https://github.com/nodejs/node-gyp/commit/53a5f8ff38)] - **gyp**: add support for .mm files to msvs generator (Julien Racle) [#1167](https://github.com/nodejs/node-gyp/pull/1167)
-* [[`dd8561e528`](https://github.com/nodejs/node-gyp/commit/dd8561e528)] - **zos**: don't use universal-new-lines mode (John Barboza) [#1451](https://github.com/nodejs/node-gyp/pull/1451)
-* [[`e5a69010ed`](https://github.com/nodejs/node-gyp/commit/e5a69010ed)] - **zos**: add search locations for libnode.x (John Barboza) [#1451](https://github.com/nodejs/node-gyp/pull/1451)
-* [[`79febace53`](https://github.com/nodejs/node-gyp/commit/79febace53)] - **doc**: update macOS information in README (Josh Parnham) [#1323](https://github.com/nodejs/node-gyp/pull/1323)
-* [[`9425448945`](https://github.com/nodejs/node-gyp/commit/9425448945)] - **gyp**: don't print xcodebuild not found errors (Gibson Fahnestock) [#1370](https://github.com/nodejs/node-gyp/pull/1370)
-* [[`6f1286f5b2`](https://github.com/nodejs/node-gyp/commit/6f1286f5b2)] - Fix infinite install loop. (Ben Noordhuis) [#1384](https://github.com/nodejs/node-gyp/pull/1384)
-* [[`2580b9139e`](https://github.com/nodejs/node-gyp/commit/2580b9139e)] - Update `--nodedir` description in README. (Ben Noordhuis) [#1372](https://github.com/nodejs/node-gyp/pull/1372)
-* [[`a61360391a`](https://github.com/nodejs/node-gyp/commit/a61360391a)] - Update README with another way to install on windows (JeffAtDeere) [#1352](https://github.com/nodejs/node-gyp/pull/1352)
-* [[`47496bf6dc`](https://github.com/nodejs/node-gyp/commit/47496bf6dc)] - Fix IndexError when parsing GYP files. (Ben Noordhuis) [#1267](https://github.com/nodejs/node-gyp/pull/1267)
-* [[`b2024dee7b`](https://github.com/nodejs/node-gyp/commit/b2024dee7b)] - **zos**: support platform (John Barboza) [#1276](https://github.com/nodejs/node-gyp/pull/1276)
-* [[`90d86512f4`](https://github.com/nodejs/node-gyp/commit/90d86512f4)] - **win**: run PS with `-NoProfile` (Refael Ackermann) [#1292](https://github.com/nodejs/node-gyp/pull/1292)
-* [[`2da5f86ef7`](https://github.com/nodejs/node-gyp/commit/2da5f86ef7)] - **doc**: add github PR and Issue templates (Gibson Fahnestock) [#1228](https://github.com/nodejs/node-gyp/pull/1228)
-* [[`a46a770d68`](https://github.com/nodejs/node-gyp/commit/a46a770d68)] - **doc**: update proposed DCO and CoC (Mikeal Rogers) [#1229](https://github.com/nodejs/node-gyp/pull/1229)
-* [[`7e803d58e0`](https://github.com/nodejs/node-gyp/commit/7e803d58e0)] - **doc**: headerify the Install instructions (Nick Schonning) [#1225](https://github.com/nodejs/node-gyp/pull/1225)
-* [[`f27599193a`](https://github.com/nodejs/node-gyp/commit/f27599193a)] - **gyp**: update xml string encoding conversion (Liu Chao) [#1203](https://github.com/nodejs/node-gyp/pull/1203)
-* [[`0a07e481f7`](https://github.com/nodejs/node-gyp/commit/0a07e481f7)] - **configure**: don't set ensure if tarball is set (Gibson Fahnestock) [#1220](https://github.com/nodejs/node-gyp/pull/1220)
-
-v3.6.3 2018-06-08
-=================
-
-* [[`90cd2e8da9`](https://github.com/nodejs/node-gyp/commit/90cd2e8da9)] - **gyp**: fix regex to match multi-digit versions (Jonas Hermsmeier) [#1455](https://github.com/nodejs/node-gyp/pull/1455)
-* [[`7900122337`](https://github.com/nodejs/node-gyp/commit/7900122337)] - deps: pin `request` version range (Refael Ackerman) [#1300](https://github.com/nodejs/node-gyp/pull/1300)
-
-v3.6.2 2017-06-01
-=================
-
-* [[`72afdd62cd`](https://github.com/nodejs/node-gyp/commit/72afdd62cd)] - **build**: rename copyNodeLib() to doBuild() (Liu Chao) [#1206](https://github.com/nodejs/node-gyp/pull/1206)
-* [[`bad903ac70`](https://github.com/nodejs/node-gyp/commit/bad903ac70)] - **win**: more robust parsing of SDK version (Refael Ackermann) [#1198](https://github.com/nodejs/node-gyp/pull/1198)
-* [[`241752f381`](https://github.com/nodejs/node-gyp/commit/241752f381)] - Log dist-url. (Ben Noordhuis) [#1170](https://github.com/nodejs/node-gyp/pull/1170)
-* [[`386746c7d1`](https://github.com/nodejs/node-gyp/commit/386746c7d1)] - **configure**: use full path in node_lib_file GYP var (Pavel Medvedev) [#964](https://github.com/nodejs/node-gyp/pull/964)
-* [[`0913b2dd99`](https://github.com/nodejs/node-gyp/commit/0913b2dd99)] - **build, win**: use target_arch to link with node.lib (Pavel Medvedev) [#964](https://github.com/nodejs/node-gyp/pull/964)
-* [[`c307b302f7`](https://github.com/nodejs/node-gyp/commit/c307b302f7)] - **doc**: blorb about setting `npm_config_OPTION_NAME` (Refael Ackermann) [#1185](https://github.com/nodejs/node-gyp/pull/1185)
-
-v3.6.1 2017-04-30
-=================
-
-* [[`49801716c2`](https://github.com/nodejs/node-gyp/commit/49801716c2)] - **test**: fix test-find-python on v0.10.x buildbot. (Ben Noordhuis) [#1172](https://github.com/nodejs/node-gyp/pull/1172)
-* [[`a83a3801fc`](https://github.com/nodejs/node-gyp/commit/a83a3801fc)] - **test**: fix test/test-configure-python on AIX (Richard Lau) [#1131](https://github.com/nodejs/node-gyp/pull/1131)
-* [[`8a767145c9`](https://github.com/nodejs/node-gyp/commit/8a767145c9)] - **gyp**: Revert quote_cmd workaround (Kunal Pathak) [#1153](https://github.com/nodejs/node-gyp/pull/1153)
-* [[`c09cf7671e`](https://github.com/nodejs/node-gyp/commit/c09cf7671e)] - **doc**: add a note for using `configure` on Windows (Vse Mozhet Byt) [#1152](https://github.com/nodejs/node-gyp/pull/1152)
-* [[`da9cb5f411`](https://github.com/nodejs/node-gyp/commit/da9cb5f411)] - Delete superfluous .patch files. (Ben Noordhuis) [#1122](https://github.com/nodejs/node-gyp/pull/1122)
-
-v3.6.0 2017-03-16
-=================
-
-* [[`ae141e1906`](https://github.com/nodejs/node-gyp/commit/ae141e1906)] - **win**: find and setup for VS2017 (Refael Ackermann) [#1130](https://github.com/nodejs/node-gyp/pull/1130)
-* [[`ec5fc36a80`](https://github.com/nodejs/node-gyp/commit/ec5fc36a80)] - Add support to build node.js with chakracore for ARM. (Kunal Pathak) [#873](https://github.com/nodejs/node-gyp/pull/873)
-* [[`a04ea3051a`](https://github.com/nodejs/node-gyp/commit/a04ea3051a)] - Add support to build node.js with chakracore. (Kunal Pathak) [#873](https://github.com/nodejs/node-gyp/pull/873)
-* [[`93d7fa83c8`](https://github.com/nodejs/node-gyp/commit/93d7fa83c8)] - Upgrade semver dependency. (Ben Noordhuis) [#1107](https://github.com/nodejs/node-gyp/pull/1107)
-* [[`ff9a6fadfd`](https://github.com/nodejs/node-gyp/commit/ff9a6fadfd)] - Update link of gyp as Google code is shutting down (Peter Dave Hello) [#1061](https://github.com/nodejs/node-gyp/pull/1061)
-
-
-v3.5.0 2017-01-10
-=================
-
-* [[`762d19a39e`](https://github.com/nodejs/node-gyp/commit/762d19a39e)] - \[doc\] merge History.md and CHANGELOG.md (Rod Vagg)
-* [[`80fc5c3d31`](https://github.com/nodejs/node-gyp/commit/80fc5c3d31)] - Fix deprecated dependency warning (Simone Primarosa) [#1069](https://github.com/nodejs/node-gyp/pull/1069)
-* [[`05c44944fd`](https://github.com/nodejs/node-gyp/commit/05c44944fd)] - Open the build file with universal-newlines mode (Guy Margalit) [#1053](https://github.com/nodejs/node-gyp/pull/1053)
-* [[`37ae7be114`](https://github.com/nodejs/node-gyp/commit/37ae7be114)] - Try python launcher when stock python is python 3. (Ben Noordhuis) [#992](https://github.com/nodejs/node-gyp/pull/992)
-* [[`e3778d9907`](https://github.com/nodejs/node-gyp/commit/e3778d9907)] - Add lots of findPython() tests. (Ben Noordhuis) [#992](https://github.com/nodejs/node-gyp/pull/992)
-* [[`afc766adf6`](https://github.com/nodejs/node-gyp/commit/afc766adf6)] - Unset executable bit for .bat files (Pavel Medvedev) [#969](https://github.com/nodejs/node-gyp/pull/969)
-* [[`ddac348991`](https://github.com/nodejs/node-gyp/commit/ddac348991)] - Use push on PYTHONPATH and add tests (Michael Hart) [#990](https://github.com/nodejs/node-gyp/pull/990)
-* [[`b182a19042`](https://github.com/nodejs/node-gyp/commit/b182a19042)] - ***Revert*** "add "path-array" dep" (Michael Hart) [#990](https://github.com/nodejs/node-gyp/pull/990)
-* [[`7c08b85c5a`](https://github.com/nodejs/node-gyp/commit/7c08b85c5a)] - ***Revert*** "**configure**: use "path-array" for PYTHONPATH" (Michael Hart) [#990](https://github.com/nodejs/node-gyp/pull/990)
-* [[`9c8d275526`](https://github.com/nodejs/node-gyp/commit/9c8d275526)] - Add --devdir flag. (Ben Noordhuis) [#916](https://github.com/nodejs/node-gyp/pull/916)
-* [[`f6eab1f9e4`](https://github.com/nodejs/node-gyp/commit/f6eab1f9e4)] - **doc**: add windows-build-tools to readme (Felix Rieseberg) [#970](https://github.com/nodejs/node-gyp/pull/970)
-
-v3.4.0 2016-06-28
-=================
-
-* [[`ce5fd04e94`](https://github.com/nodejs/node-gyp/commit/ce5fd04e94)] - **deps**: update minimatch version (delphiactual) [#961](https://github.com/nodejs/node-gyp/pull/961)
-* [[`77383ddd85`](https://github.com/nodejs/node-gyp/commit/77383ddd85)] - Replace fs.accessSync call to fs.statSync (Richard Lau) [#955](https://github.com/nodejs/node-gyp/pull/955)
-* [[`0dba4bda57`](https://github.com/nodejs/node-gyp/commit/0dba4bda57)] - **test**: add simple addon test (Richard Lau) [#955](https://github.com/nodejs/node-gyp/pull/955)
-* [[`c4344b3889`](https://github.com/nodejs/node-gyp/commit/c4344b3889)] - **doc**: add --target option to README (Gibson Fahnestock) [#958](https://github.com/nodejs/node-gyp/pull/958)
-* [[`cc778e9215`](https://github.com/nodejs/node-gyp/commit/cc778e9215)] - Override BUILDING_UV_SHARED, BUILDING_V8_SHARED. (Ben Noordhuis) [#915](https://github.com/nodejs/node-gyp/pull/915)
-* [[`af35b2ad32`](https://github.com/nodejs/node-gyp/commit/af35b2ad32)] - Move VC++ Build Tools to Build Tools landing page. (Andrew Pardoe) [#953](https://github.com/nodejs/node-gyp/pull/953)
-* [[`f31482e226`](https://github.com/nodejs/node-gyp/commit/f31482e226)] - **win**: work around __pfnDliNotifyHook2 type change (Alexis Campailla) [#952](https://github.com/nodejs/node-gyp/pull/952)
-* [[`3df8222fa5`](https://github.com/nodejs/node-gyp/commit/3df8222fa5)] - Allow for npmlog@3.x (Rebecca Turner) [#950](https://github.com/nodejs/node-gyp/pull/950)
-* [[`a4fa07b390`](https://github.com/nodejs/node-gyp/commit/a4fa07b390)] - More verbose error on locating msbuild.exe failure. (Mateusz Jaworski) [#930](https://github.com/nodejs/node-gyp/pull/930)
-* [[`4ee31329e0`](https://github.com/nodejs/node-gyp/commit/4ee31329e0)] - **doc**: add command options to README.md (Gibson Fahnestock) [#937](https://github.com/nodejs/node-gyp/pull/937)
-* [[`c8c7ca86b9`](https://github.com/nodejs/node-gyp/commit/c8c7ca86b9)] - Add --silent option for zero output. (Gibson Fahnestock) [#937](https://github.com/nodejs/node-gyp/pull/937)
-* [[`ac29d23a7c`](https://github.com/nodejs/node-gyp/commit/ac29d23a7c)] - Upgrade to glob@7.0.3. (Ben Noordhuis) [#943](https://github.com/nodejs/node-gyp/pull/943)
-* [[`15fd56be3d`](https://github.com/nodejs/node-gyp/commit/15fd56be3d)] - Enable V8 deprecation warnings for native modules (Matt Loring) [#920](https://github.com/nodejs/node-gyp/pull/920)
-* [[`7f1c1b960c`](https://github.com/nodejs/node-gyp/commit/7f1c1b960c)] - **gyp**: improvements for android generator (Robert Chiras) [#935](https://github.com/nodejs/node-gyp/pull/935)
-* [[`088082766c`](https://github.com/nodejs/node-gyp/commit/088082766c)] - Update Windows install instructions (Sara Itani) [#867](https://github.com/nodejs/node-gyp/pull/867)
-* [[`625c1515f9`](https://github.com/nodejs/node-gyp/commit/625c1515f9)] - **gyp**: inherit CC/CXX for CC/CXX.host (Johan Bergström) [#908](https://github.com/nodejs/node-gyp/pull/908)
-* [[`3bcb1720e4`](https://github.com/nodejs/node-gyp/commit/3bcb1720e4)] - Add support for the Python launcher on Windows (Patrick Westerhoff) [#894](https://github.com/nodejs/node-gyp/pull/894
-
-v3.3.1 2016-03-04
-=================
-
-* [[`a981ef847a`](https://github.com/nodejs/node-gyp/commit/a981ef847a)] - **gyp**: fix android generator (Robert Chiras) [#889](https://github.com/nodejs/node-gyp/pull/889)
-
-v3.3.0 2016-02-16
-=================
-
-* [[`818d854a4d`](https://github.com/nodejs/node-gyp/commit/818d854a4d)] - Introduce NODEJS_ORG_MIRROR and IOJS_ORG_MIRROR (Rod Vagg) [#878](https://github.com/nodejs/node-gyp/pull/878)
-* [[`d1e4cc4b62`](https://github.com/nodejs/node-gyp/commit/d1e4cc4b62)] - **(SEMVER-MINOR)** Download headers tarball for ~0.12.10 || ~0.10.42 (Rod Vagg) [#877](https://github.com/nodejs/node-gyp/pull/877)
-* [[`6e28ad1bea`](https://github.com/nodejs/node-gyp/commit/6e28ad1bea)] - Allow for npmlog@2.x (Rebecca Turner) [#861](https://github.com/nodejs/node-gyp/pull/861)
-* [[`07371e5812`](https://github.com/nodejs/node-gyp/commit/07371e5812)] - Use -fPIC for NetBSD. (Marcin Cieślak) [#856](https://github.com/nodejs/node-gyp/pull/856)
-* [[`8c4b0ffa50`](https://github.com/nodejs/node-gyp/commit/8c4b0ffa50)] - **(SEMVER-MINOR)** Add --cafile command line option. (Ben Noordhuis) [#837](https://github.com/nodejs/node-gyp/pull/837)
-* [[`b3ad43498e`](https://github.com/nodejs/node-gyp/commit/b3ad43498e)] - **(SEMVER-MINOR)** Make download() function testable. (Ben Noordhuis) [#837](https://github.com/nodejs/node-gyp/pull/837)
-
-v3.2.1 2015-12-03
-=================
-
-* [[`ab89b477c4`](https://github.com/nodejs/node-gyp/commit/ab89b477c4)] - Upgrade gyp to b3cef02. (Ben Noordhuis) [#831](https://github.com/nodejs/node-gyp/pull/831)
-* [[`90078ecb17`](https://github.com/nodejs/node-gyp/commit/90078ecb17)] - Define WIN32_LEAN_AND_MEAN conditionally. (Ben Noordhuis) [#824](https://github.com/nodejs/node-gyp/pull/824)
-
-v3.2.0 2015-11-25
-=================
-
-* [[`268f1ca4c7`](https://github.com/nodejs/node-gyp/commit/268f1ca4c7)] - Use result of `which` when searching for python. (Refael Ackermann) [#668](https://github.com/nodejs/node-gyp/pull/668)
-* [[`817ed9bd78`](https://github.com/nodejs/node-gyp/commit/817ed9bd78)] - Add test for python executable search logic. (Ben Noordhuis) [#756](https://github.com/nodejs/node-gyp/pull/756)
-* [[`0e2dfda1f3`](https://github.com/nodejs/node-gyp/commit/0e2dfda1f3)] - Fix test/test-options when run through `npm test`. (Ben Noordhuis) [#755](https://github.com/nodejs/node-gyp/pull/755)
-* [[`9bfa0876b4`](https://github.com/nodejs/node-gyp/commit/9bfa0876b4)] - Add support for AIX (Michael Dawson) [#753](https://github.com/nodejs/node-gyp/pull/753)
-* [[`a8d441a0a2`](https://github.com/nodejs/node-gyp/commit/a8d441a0a2)] - Update README for Windows 10 support. (Jason Williams) [#766](https://github.com/nodejs/node-gyp/pull/766)
-* [[`d1d6015276`](https://github.com/nodejs/node-gyp/commit/d1d6015276)] - Update broken links and switch to HTTPS. (andrew morton)
-
-v3.1.0 2015-11-14
-=================
-
-* [[`9049241f91`](https://github.com/nodejs/node-gyp/commit/9049241f91)] - **gyp**: don't use links at all, just copy the files instead (Nathan Zadoks)
-* [[`8ef90348d1`](https://github.com/nodejs/node-gyp/commit/8ef90348d1)] - **gyp**: apply https://codereview.chromium.org/11361103/ (Nathan Rajlich)
-* [[`a2ed0df84e`](https://github.com/nodejs/node-gyp/commit/a2ed0df84e)] - **gyp**: always install into $PRODUCT_DIR (Nathan Rajlich)
-* [[`cc8b2fa83e`](https://github.com/nodejs/node-gyp/commit/cc8b2fa83e)] - Update gyp to b3cef02. (Imran Iqbal) [#781](https://github.com/nodejs/node-gyp/pull/781)
-* [[`f5d86eb84e`](https://github.com/nodejs/node-gyp/commit/f5d86eb84e)] - Update to tar@2.0.0. (Edgar Muentes) [#797](https://github.com/nodejs/node-gyp/pull/797)
-* [[`2ac7de02c4`](https://github.com/nodejs/node-gyp/commit/2ac7de02c4)] - Fix infinite loop with zero-length options. (Ben Noordhuis) [#745](https://github.com/nodejs/node-gyp/pull/745)
-* [[`101bed639b`](https://github.com/nodejs/node-gyp/commit/101bed639b)] - This platform value came from debian package, and now the value (Jérémy Lal) [#738](https://github.com/nodejs/node-gyp/pull/738)
-
-v3.0.3 2015-09-14
-=================
-
-* [[`ad827cda30`](https://github.com/nodejs/node-gyp/commit/ad827cda30)] - tarballUrl global and && when checking for iojs (Lars-Magnus Skog) [#729](https://github.com/nodejs/node-gyp/pull/729)
-
-v3.0.2 2015-09-12
-=================
-
-* [[`6e8c3bf3c6`](https://github.com/nodejs/node-gyp/commit/6e8c3bf3c6)] - add back support for passing additional cmdline args (Rod Vagg) [#723](https://github.com/nodejs/node-gyp/pull/723)
-* [[`ff82f2f3b9`](https://github.com/nodejs/node-gyp/commit/ff82f2f3b9)] - fixed broken link in docs to Visual Studio 2013 download (simon-p-r) [#722](https://github.com/nodejs/node-gyp/pull/722)
-
-v3.0.1 2015-09-08
-=================
-
-* [[`846337e36b`](https://github.com/nodejs/node-gyp/commit/846337e36b)] - normalise versions for target == this comparison (Rod Vagg) [#716](https://github.com/nodejs/node-gyp/pull/716)
-
-v3.0.0 2015-09-08
-=================
-
-* [[`9720d0373c`](https://github.com/nodejs/node-gyp/commit/9720d0373c)] - remove node_modules from tree (Rod Vagg) [#711](https://github.com/nodejs/node-gyp/pull/711)
-* [[`6dcf220db7`](https://github.com/nodejs/node-gyp/commit/6dcf220db7)] - test version major directly, don't use semver.satisfies() (Rod Vagg) [#711](https://github.com/nodejs/node-gyp/pull/711)
-* [[`938dd18d1c`](https://github.com/nodejs/node-gyp/commit/938dd18d1c)] - refactor for clarity, fix dist-url, add env var dist-url functionality (Rod Vagg) [#711](https://github.com/nodejs/node-gyp/pull/711)
-* [[`9e9df66a06`](https://github.com/nodejs/node-gyp/commit/9e9df66a06)] - use process.release, make aware of io.js & node v4 differences (Rod Vagg) [#711](https://github.com/nodejs/node-gyp/pull/711)
-* [[`1ea7ed01f4`](https://github.com/nodejs/node-gyp/commit/1ea7ed01f4)] - **deps**: update graceful-fs dependency to the latest (Sakthipriyan Vairamani) [#714](https://github.com/nodejs/node-gyp/pull/714)
-* [[`0fbc387b35`](https://github.com/nodejs/node-gyp/commit/0fbc387b35)] - Update repository URLs. (Ben Noordhuis) [#715](https://github.com/nodejs/node-gyp/pull/715)
-* [[`bbedb8868b`](https://github.com/nodejs/node-gyp/commit/bbedb8868b)] - **(SEMVER-MAJOR)** **win**: enable delay-load hook by default (Jeremiah Senkpiel) [#708](https://github.com/nodejs/node-gyp/pull/708)
-* [[`85ed107565`](https://github.com/nodejs/node-gyp/commit/85ed107565)] - Merge pull request #664 from othiym23/othiym23/allow-semver-5 (Nathan Rajlich)
-* [[`0c720d234c`](https://github.com/nodejs/node-gyp/commit/0c720d234c)] - allow semver@5 (Forrest L Norvell)
-
-2.0.2 / 2015-07-14
-==================
-
- * Use HTTPS for dist url (#656, @SonicHedgehog)
- * Merge pull request #648 from nevosegal/master
- * Merge pull request #650 from magic890/patch-1
- * Updated Installation section on README
- * Updated link to gyp user documentation
- * Fix download error message spelling (#643, @tomxtobin)
- * Merge pull request #637 from lygstate/master
- * Set NODE_GYP_DIR for addon.gypi to setting absolute path for
- src/win_delay_load_hook.c, and fixes of the long relative path issue on Win32.
- Fixes #636 (#637, @lygstate).
-
-2.0.1 / 2015-05-28
-==================
-
- * configure: try/catch the semver range.test() call
- * README: update for visual studio 2013 (#510, @samccone)
-
-2.0.0 / 2015-05-24
-==================
-
- * configure: check for python2 executable by default, fallback to python
- * configure: don't clobber existing $PYTHONPATH
- * configure: use "path-array" for PYTHONPATH
- * gyp: fix for non-acsii userprofile name on Windows
- * gyp: always install into $PRODUCT_DIR
- * gyp: apply https://codereview.chromium.org/11361103/
- * gyp: don't use links at all, just copy the files instead
- * gyp: update gyp to e1c8fcf7
- * Updated README.md with updated Windows build info
- * Show URL when a download fails
- * package: add a "license" field
- * move HMODULE m declaration to top
- * Only add "-undefined dynamic_lookup" to loadable_module targets
- * win: optionally allow node.exe/iojs.exe to be renamed
- * Avoid downloading shasums if using tarPath
- * Add target name preprocessor define: `NODE_GYP_MODULE_NAME`
- * Show better error message in case of bad network settings
diff --git a/node_modules/node-gyp/CONTRIBUTING.md b/node_modules/node-gyp/CONTRIBUTING.md
deleted file mode 100644
index f48786b..0000000
--- a/node_modules/node-gyp/CONTRIBUTING.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# Contributing to node-gyp
-
-## Code of Conduct
-
-Please read the
-[Code of Conduct](https://github.com/nodejs/TSC/blob/master/CODE_OF_CONDUCT.md)
-which explains the minimum behavior expectations for node-gyp contributors.
-
-<a id="developers-certificate-of-origin"></a>
-## Developer's Certificate of Origin 1.1
-
-By making a contribution to this project, I certify that:
-
-* (a) The contribution was created in whole or in part by me and I
- have the right to submit it under the open source license
- indicated in the file; or
-
-* (b) The contribution is based upon previous work that, to the best
- of my knowledge, is covered under an appropriate open source
- license and I have the right under that license to submit that
- work with modifications, whether created in whole or in part
- by me, under the same open source license (unless I am
- permitted to submit under a different license), as indicated
- in the file; or
-
-* (c) The contribution was provided directly to me by some other
- person who certified (a), (b) or (c) and I have not modified
- it.
-
-* (d) I understand and agree that this project and the contribution
- are public and that a record of the contribution (including all
- personal information I submit with it, including my sign-off) is
- maintained indefinitely and may be redistributed consistent with
- this project or the open source license(s) involved.
diff --git a/node_modules/node-gyp/LICENSE b/node_modules/node-gyp/LICENSE
deleted file mode 100644
index 2ea4dc5..0000000
--- a/node_modules/node-gyp/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/node-gyp/README.md b/node_modules/node-gyp/README.md
deleted file mode 100644
index 0fed03c..0000000
--- a/node_modules/node-gyp/README.md
+++ /dev/null
@@ -1,244 +0,0 @@
-node-gyp
-=========
-## Node.js native addon build tool
-
-`node-gyp` is a cross-platform command-line tool written in Node.js for compiling
-native addon modules for Node.js. It bundles the [gyp](https://gyp.gsrc.io)
-project used by the Chromium team and takes away the pain of dealing with the
-various differences in build platforms. It is the replacement to the `node-waf`
-program which is removed for node `v0.8`. If you have a native addon for node that
-still has a `wscript` file, then you should definitely add a `binding.gyp` file
-to support the latest versions of node.
-
-Multiple target versions of node are supported (i.e. `0.8`, ..., `4`, `5`, `6`,
-etc.), regardless of what version of node is actually installed on your system
-(`node-gyp` downloads the necessary development files or headers for the target version).
-
-## Features
-
- * Easy to use, consistent interface
- * Same commands to build your module on every platform
- * Supports multiple target versions of Node
-
-
-Installation
-------------
-
-You can install with `npm`:
-
-``` bash
-$ npm install -g node-gyp
-```
-
-You will also need to install:
-
-### On Unix
-
- * `python` (`v2.7` recommended, `v3.x.x` is __*not*__ supported)
- * `make`
- * A proper C/C++ compiler toolchain, like [GCC](https://gcc.gnu.org)
-
-### On macOS
-
- * `python` (`v2.7` recommended, `v3.x.x` is __*not*__ supported) (already installed on macOS)
- * [Xcode](https://developer.apple.com/xcode/download/)
- * You also need to install the `Command Line Tools` via Xcode. You can find this under the menu `Xcode -> Preferences -> Locations` (or by running `xcode-select --install` in your Terminal)
- * This step will install `gcc` and the related toolchain containing `make`
-
-### On Windows
-
-#### Option 1
-
-Install all the required tools and configurations using Microsoft's [windows-build-tools](https://github.com/felixrieseberg/windows-build-tools) using `npm install --global --production windows-build-tools` from an elevated PowerShell or CMD.exe (run as Administrator).
-
-#### Option 2
-
-Install tools and configuration manually:
- * Install Visual C++ Build Environment: [Visual Studio Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools)
- (using "Visual C++ build tools" workload) or [Visual Studio 2017 Community](https://visualstudio.microsoft.com/pl/thank-you-downloading-visual-studio/?sku=Community)
- (using the "Desktop development with C++" workload)
- * Install [Python 2.7](https://www.python.org/downloads/) (`v3.x.x` is not supported), and run `npm config set python python2.7` (or see below for further instructions on specifying the proper Python version and path.)
- * Launch cmd, `npm config set msvs_version 2017`
-
- If the above steps didn't work for you, please visit [Microsoft's Node.js Guidelines for Windows](https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules) for additional tips.
-
-If you have multiple Python versions installed, you can identify which Python
-version `node-gyp` uses by setting the '--python' variable:
-
-``` bash
-$ node-gyp --python /path/to/python2.7
-```
-
-If `node-gyp` is called by way of `npm` *and* you have multiple versions of
-Python installed, then you can set `npm`'s 'python' config key to the appropriate
-value:
-
-``` bash
-$ npm config set python /path/to/executable/python2.7
-```
-
-How to Use
-----------
-
-To compile your native addon, first go to its root directory:
-
-``` bash
-$ cd my_node_addon
-```
-
-The next step is to generate the appropriate project build files for the current
-platform. Use `configure` for that:
-
-``` bash
-$ node-gyp configure
-```
-
-Auto-detection fails for Visual C++ Build Tools 2015, so `--msvs_version=2015`
-needs to be added (not needed when run by npm as configured above):
-``` bash
-$ node-gyp configure --msvs_version=2015
-```
-
-__Note__: The `configure` step looks for the `binding.gyp` file in the current
-directory to process. See below for instructions on creating the `binding.gyp` file.
-
-Now you will have either a `Makefile` (on Unix platforms) or a `vcxproj` file
-(on Windows) in the `build/` directory. Next invoke the `build` command:
-
-``` bash
-$ node-gyp build
-```
-
-Now you have your compiled `.node` bindings file! The compiled bindings end up
-in `build/Debug/` or `build/Release/`, depending on the build mode. At this point
-you can require the `.node` file with Node and run your tests!
-
-__Note:__ To create a _Debug_ build of the bindings file, pass the `--debug` (or
-`-d`) switch when running either the `configure`, `build` or `rebuild` command.
-
-
-The "binding.gyp" file
-----------------------
-
-Previously when node had `node-waf` you had to write a `wscript` file. The
-replacement for that is the `binding.gyp` file, which describes the configuration
-to build your module in a JSON-like format. This file gets placed in the root of
-your package, alongside the `package.json` file.
-
-A barebones `gyp` file appropriate for building a node addon looks like:
-
-``` python
-{
- "targets": [
- {
- "target_name": "binding",
- "sources": [ "src/binding.cc" ]
- }
- ]
-}
-```
-
-Some additional resources for addons and writing `gyp` files:
-
- * ["Going Native" a nodeschool.io tutorial](http://nodeschool.io/#goingnative)
- * ["Hello World" node addon example](https://github.com/nodejs/node/tree/master/test/addons/hello-world)
- * [gyp user documentation](https://gyp.gsrc.io/docs/UserDocumentation.md)
- * [gyp input format reference](https://gyp.gsrc.io/docs/InputFormatReference.md)
- * [*"binding.gyp" files out in the wild* wiki page](https://github.com/nodejs/node-gyp/wiki/%22binding.gyp%22-files-out-in-the-wild)
-
-
-Commands
---------
-
-`node-gyp` responds to the following commands:
-
-| **Command** | **Description**
-|:--------------|:---------------------------------------------------------------
-| `help` | Shows the help dialog
-| `build` | Invokes `make`/`msbuild.exe` and builds the native addon
-| `clean` | Removes the `build` directory if it exists
-| `configure` | Generates project build files for the current platform
-| `rebuild` | Runs `clean`, `configure` and `build` all in a row
-| `install` | Installs node header files for the given version
-| `list` | Lists the currently installed node header versions
-| `remove` | Removes the node header files for the given version
-
-
-Command Options
---------
-
-`node-gyp` accepts the following command options:
-
-| **Command** | **Description**
-|:----------------------------------|:------------------------------------------
-| `-j n`, `--jobs n` | Run make in parallel
-| `--target=v6.2.1` | Node version to build for (default=process.version)
-| `--silly`, `--loglevel=silly` | Log all progress to console
-| `--verbose`, `--loglevel=verbose` | Log most progress to console
-| `--silent`, `--loglevel=silent` | Don't log anything to console
-| `debug`, `--debug` | Make Debug build (default=Release)
-| `--release`, `--no-debug` | Make Release build
-| `-C $dir`, `--directory=$dir` | Run command in different directory
-| `--make=$make` | Override make command (e.g. gmake)
-| `--thin=yes` | Enable thin static libraries
-| `--arch=$arch` | Set target architecture (e.g. ia32)
-| `--tarball=$path` | Get headers from a local tarball
-| `--devdir=$path` | SDK download directory (default=~/.node-gyp)
-| `--ensure` | Don't reinstall headers if already present
-| `--dist-url=$url` | Download header tarball from custom URL
-| `--proxy=$url` | Set HTTP proxy for downloading header tarball
-| `--cafile=$cafile` | Override default CA chain (to download tarball)
-| `--nodedir=$path` | Set the path to the node source code
-| `--python=$path` | Set path to the python (2) binary
-| `--msvs_version=$version` | Set Visual Studio version (win)
-| `--solution=$solution` | Set Visual Studio Solution version (win)
-
-
-Configuration
---------
-
-__`node-gyp` responds to environment variables or `npm` configuration__
-1. Environment variables take the form `npm_config_OPTION_NAME` for any of the
- options listed above (dashes in option names should be replaced by underscores).
- These work also when `node-gyp` is invoked directly:
- `$ export npm_config_devdir=/tmp/.gyp`
- or on Windows
- `> set npm_config_devdir=c:\temp\.gyp`
-2. As `npm` configuration, variables take the form `OPTION_NAME`.
- This way only works when `node-gyp` is executed by `npm`:
- `$ npm config set [--global] devdir /tmp/.gyp`
- `$ npm i buffertools`
-
-
-
-License
--------
-
-(The MIT License)
-
-Copyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-
-[python-v2.7.10]: https://www.python.org/downloads/release/python-2710/
-[msvc2013]: https://www.microsoft.com/en-gb/download/details.aspx?id=44914
-[win7sdk]: https://www.microsoft.com/en-us/download/details.aspx?id=8279
-[compiler update for the Windows SDK 7.1]: https://www.microsoft.com/en-us/download/details.aspx?id=4422
diff --git a/node_modules/node-gyp/addon.gypi b/node_modules/node-gyp/addon.gypi
deleted file mode 100644
index 55fb321..0000000
--- a/node_modules/node-gyp/addon.gypi
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- 'variables' : {
- 'node_engine_include_dir%': 'deps/v8/include',
- },
- 'target_defaults': {
- 'type': 'loadable_module',
- 'win_delay_load_hook': 'true',
- 'product_prefix': '',
-
- 'conditions': [
- [ 'node_engine=="chakracore"', {
- 'variables': {
- 'node_engine_include_dir%': 'deps/chakrashim/include'
- },
- }]
- ],
-
- 'include_dirs': [
- '<(node_root_dir)/include/node',
- '<(node_root_dir)/src',
- '<(node_root_dir)/deps/openssl/config',
- '<(node_root_dir)/deps/openssl/openssl/include',
- '<(node_root_dir)/deps/uv/include',
- '<(node_root_dir)/deps/zlib',
- '<(node_root_dir)/<(node_engine_include_dir)'
- ],
- 'defines!': [
- 'BUILDING_UV_SHARED=1', # Inherited from common.gypi.
- 'BUILDING_V8_SHARED=1', # Inherited from common.gypi.
- ],
- 'defines': [
- 'NODE_GYP_MODULE_NAME=>(_target_name)',
- 'USING_UV_SHARED=1',
- 'USING_V8_SHARED=1',
- # Warn when using deprecated V8 APIs.
- 'V8_DEPRECATION_WARNINGS=1'
- ],
-
- 'target_conditions': [
- ['_type=="loadable_module"', {
- 'product_extension': 'node',
- 'defines': [
- 'BUILDING_NODE_EXTENSION'
- ],
- 'xcode_settings': {
- 'OTHER_LDFLAGS': [
- '-undefined dynamic_lookup'
- ],
- },
- }],
-
- ['_type=="static_library"', {
- # set to `1` to *disable* the -T thin archive 'ld' flag.
- # older linkers don't support this flag.
- 'standalone_static_library': '<(standalone_static_library)'
- }],
-
- ['_win_delay_load_hook=="true"', {
- # If the addon specifies `'win_delay_load_hook': 'true'` in its
- # binding.gyp, link a delay-load hook into the DLL. This hook ensures
- # that the addon will work regardless of whether the node/iojs binary
- # is named node.exe, iojs.exe, or something else.
- 'conditions': [
- [ 'OS=="win"', {
- 'sources': [
- '<(node_gyp_dir)/src/win_delay_load_hook.cc',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'DelayLoadDLLs': [ 'iojs.exe', 'node.exe' ],
- # Don't print a linker warning when no imports from either .exe
- # are used.
- 'AdditionalOptions': [ '/ignore:4199' ],
- },
- },
- }],
- ],
- }],
- ],
-
- 'conditions': [
- [ 'OS=="mac"', {
- 'defines': [
- '_DARWIN_USE_64_BIT_INODE=1'
- ],
- 'xcode_settings': {
- 'DYLIB_INSTALL_NAME_BASE': '@rpath'
- },
- }],
- [ 'OS=="aix"', {
- 'ldflags': [
- '-Wl,-bimport:<(node_exp_file)'
- ],
- }],
- [ 'OS=="zos"', {
- 'cflags': [
- '-q64',
- '-Wc,DLL',
- '-qlonglong'
- ],
- 'ldflags': [
- '-q64',
- '<(node_exp_file)'
- ],
- }],
- [ 'OS=="win"', {
- 'conditions': [
- ['node_engine=="chakracore"', {
- 'library_dirs': [ '<(node_root_dir)/$(ConfigurationName)' ],
- 'libraries': [ '<@(node_engine_libs)' ],
- }],
- ],
- 'libraries': [
- '-lkernel32.lib',
- '-luser32.lib',
- '-lgdi32.lib',
- '-lwinspool.lib',
- '-lcomdlg32.lib',
- '-ladvapi32.lib',
- '-lshell32.lib',
- '-lole32.lib',
- '-loleaut32.lib',
- '-luuid.lib',
- '-lodbc32.lib',
- '-lDelayImp.lib',
- '-l"<(node_lib_file)"'
- ],
- 'msvs_disabled_warnings': [
- # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
- # needs to have dll-interface to be used by
- # clients of class 'node::ObjectWrap'
- 4251
- ],
- }, {
- # OS!="win"
- 'defines': [
- '_LARGEFILE_SOURCE',
- '_FILE_OFFSET_BITS=64'
- ],
- }],
- [ 'OS in "freebsd openbsd netbsd solaris" or \
- (OS=="linux" and target_arch!="ia32")', {
- 'cflags': [ '-fPIC' ],
- }]
- ]
- }
-}
diff --git a/node_modules/node-gyp/bin/node-gyp.js b/node_modules/node-gyp/bin/node-gyp.js
deleted file mode 100755
index 70d7d50..0000000
--- a/node_modules/node-gyp/bin/node-gyp.js
+++ /dev/null
@@ -1,148 +0,0 @@
-#!/usr/bin/env node
-
-/**
- * Set the title.
- */
-
-process.title = 'node-gyp'
-
-/**
- * Module dependencies.
- */
-
-var gyp = require('../')
-var log = require('npmlog')
-var osenv = require('osenv')
-var path = require('path')
-
-/**
- * Process and execute the selected commands.
- */
-
-var prog = gyp()
-var completed = false
-prog.parseArgv(process.argv)
-prog.devDir = prog.opts.devdir
-
-var homeDir = osenv.home()
-if (prog.devDir) {
- prog.devDir = prog.devDir.replace(/^~/, homeDir)
-} else if (homeDir) {
- prog.devDir = path.resolve(homeDir, '.node-gyp')
-} else {
- throw new Error(
- "node-gyp requires that the user's home directory is specified " +
- "in either of the environmental variables HOME or USERPROFILE. " +
- "Overide with: --devdir /path/to/.node-gyp")
-}
-
-if (prog.todo.length === 0) {
- if (~process.argv.indexOf('-v') || ~process.argv.indexOf('--version')) {
- console.log('v%s', prog.version)
- } else {
- console.log('%s', prog.usage())
- }
- return process.exit(0)
-}
-
-log.info('it worked if it ends with', 'ok')
-log.verbose('cli', process.argv)
-log.info('using', 'node-gyp@%s', prog.version)
-log.info('using', 'node@%s | %s | %s', process.versions.node, process.platform, process.arch)
-
-
-/**
- * Change dir if -C/--directory was passed.
- */
-
-var dir = prog.opts.directory
-if (dir) {
- var fs = require('fs')
- try {
- var stat = fs.statSync(dir)
- if (stat.isDirectory()) {
- log.info('chdir', dir)
- process.chdir(dir)
- } else {
- log.warn('chdir', dir + ' is not a directory')
- }
- } catch (e) {
- if (e.code === 'ENOENT') {
- log.warn('chdir', dir + ' is not a directory')
- } else {
- log.warn('chdir', 'error during chdir() "%s"', e.message)
- }
- }
-}
-
-function run () {
- var command = prog.todo.shift()
- if (!command) {
- // done!
- completed = true
- log.info('ok')
- return
- }
-
- prog.commands[command.name](command.args, function (err) {
- if (err) {
- log.error(command.name + ' error')
- log.error('stack', err.stack)
- errorMessage()
- log.error('not ok')
- return process.exit(1)
- }
- if (command.name == 'list') {
- var versions = arguments[1]
- if (versions.length > 0) {
- versions.forEach(function (version) {
- console.log(version)
- })
- } else {
- console.log('No node development files installed. Use `node-gyp install` to install a version.')
- }
- } else if (arguments.length >= 2) {
- console.log.apply(console, [].slice.call(arguments, 1))
- }
-
- // now run the next command in the queue
- process.nextTick(run)
- })
-}
-
-process.on('exit', function (code) {
- if (!completed && !code) {
- log.error('Completion callback never invoked!')
- issueMessage()
- process.exit(6)
- }
-})
-
-process.on('uncaughtException', function (err) {
- log.error('UNCAUGHT EXCEPTION')
- log.error('stack', err.stack)
- issueMessage()
- process.exit(7)
-})
-
-function errorMessage () {
- // copied from npm's lib/util/error-handler.js
- var os = require('os')
- log.error('System', os.type() + ' ' + os.release())
- log.error('command', process.argv
- .map(JSON.stringify).join(' '))
- log.error('cwd', process.cwd())
- log.error('node -v', process.version)
- log.error('node-gyp -v', 'v' + prog.package.version)
-}
-
-function issueMessage () {
- errorMessage()
- log.error('', [ 'This is a bug in `node-gyp`.'
- , 'Try to update node-gyp and file an Issue if it does not help:'
- , ' <https://github.com/nodejs/node-gyp/issues>'
- ].join('\n'))
-}
-
-// start running the given commands!
-run()
diff --git a/node_modules/node-gyp/gyp/AUTHORS b/node_modules/node-gyp/gyp/AUTHORS
deleted file mode 100644
index d76d8cd..0000000
--- a/node_modules/node-gyp/gyp/AUTHORS
+++ /dev/null
@@ -1,13 +0,0 @@
-# Names should be added to this file like so:
-# Name or Organization <email address>
-
-Google Inc. <*@google.com>
-Bloomberg Finance L.P. <*@bloomberg.net>
-IBM Inc. <*@*.ibm.com>
-Yandex LLC <*@yandex-team.ru>
-
-Steven Knight <knight@baldmt.com>
-Ryan Norton <rnorton10@gmail.com>
-David J. Sankel <david@sankelsoftware.com>
-Eric N. Vander Weele <ericvw@gmail.com>
-Tom Freudenberg <th.freudenberg@gmail.com>
diff --git a/node_modules/node-gyp/gyp/DEPS b/node_modules/node-gyp/gyp/DEPS
deleted file mode 100644
index 2e1120f..0000000
--- a/node_modules/node-gyp/gyp/DEPS
+++ /dev/null
@@ -1,24 +0,0 @@
-# DEPS file for gclient use in buildbot execution of gyp tests.
-#
-# (You don't need to use gclient for normal GYP development work.)
-
-vars = {
- "chrome_trunk": "http://src.chromium.org/svn/trunk",
- "googlecode_url": "http://%s.googlecode.com/svn",
-}
-
-deps = {
-}
-
-deps_os = {
- "win": {
- "third_party/cygwin":
- Var("chrome_trunk") + "/deps/third_party/cygwin@66844",
-
- "third_party/python_26":
- Var("chrome_trunk") + "/tools/third_party/python_26@89111",
-
- "src/third_party/pefile":
- (Var("googlecode_url") % "pefile") + "/trunk@63",
- },
-}
diff --git a/node_modules/node-gyp/gyp/LICENSE b/node_modules/node-gyp/gyp/LICENSE
deleted file mode 100644
index ab6b011..0000000
--- a/node_modules/node-gyp/gyp/LICENSE
+++ /dev/null
@@ -1,27 +0,0 @@
-Copyright (c) 2009 Google Inc. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
-copyright notice, this list of conditions and the following disclaimer
-in the documentation and/or other materials provided with the
-distribution.
- * Neither the name of Google Inc. nor the names of its
-contributors may be used to endorse or promote products derived from
-this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/node-gyp/gyp/OWNERS b/node_modules/node-gyp/gyp/OWNERS
deleted file mode 100644
index 72e8ffc..0000000
--- a/node_modules/node-gyp/gyp/OWNERS
+++ /dev/null
@@ -1 +0,0 @@
-*
diff --git a/node_modules/node-gyp/gyp/PRESUBMIT.py b/node_modules/node-gyp/gyp/PRESUBMIT.py
deleted file mode 100644
index f6c8a35..0000000
--- a/node_modules/node-gyp/gyp/PRESUBMIT.py
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-"""Top-level presubmit script for GYP.
-
-See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
-for more details about the presubmit API built into gcl.
-"""
-
-
-PYLINT_BLACKLIST = [
- # TODO: fix me.
- # From SCons, not done in google style.
- 'test/lib/TestCmd.py',
- 'test/lib/TestCommon.py',
- 'test/lib/TestGyp.py',
-]
-
-
-PYLINT_DISABLED_WARNINGS = [
- # TODO: fix me.
- # Many tests include modules they don't use.
- 'W0611',
- # Possible unbalanced tuple unpacking with sequence.
- 'W0632',
- # Attempting to unpack a non-sequence.
- 'W0633',
- # Include order doesn't properly include local files?
- 'F0401',
- # Some use of built-in names.
- 'W0622',
- # Some unused variables.
- 'W0612',
- # Operator not preceded/followed by space.
- 'C0323',
- 'C0322',
- # Unnecessary semicolon.
- 'W0301',
- # Unused argument.
- 'W0613',
- # String has no effect (docstring in wrong place).
- 'W0105',
- # map/filter on lambda could be replaced by comprehension.
- 'W0110',
- # Use of eval.
- 'W0123',
- # Comma not followed by space.
- 'C0324',
- # Access to a protected member.
- 'W0212',
- # Bad indent.
- 'W0311',
- # Line too long.
- 'C0301',
- # Undefined variable.
- 'E0602',
- # Not exception type specified.
- 'W0702',
- # No member of that name.
- 'E1101',
- # Dangerous default {}.
- 'W0102',
- # Cyclic import.
- 'R0401',
- # Others, too many to sort.
- 'W0201', 'W0232', 'E1103', 'W0621', 'W0108', 'W0223', 'W0231',
- 'R0201', 'E0101', 'C0321',
- # ************* Module copy
- # W0104:427,12:_test.odict.__setitem__: Statement seems to have no effect
- 'W0104',
-]
-
-
-def _LicenseHeader(input_api):
- # Accept any year number from 2009 to the current year.
- current_year = int(input_api.time.strftime('%Y'))
- allowed_years = (str(s) for s in reversed(xrange(2009, current_year + 1)))
-
- years_re = '(' + '|'.join(allowed_years) + ')'
-
- # The (c) is deprecated, but tolerate it until it's removed from all files.
- return (
- r'.*? Copyright (\(c\) )?%(year)s Google Inc\. All rights reserved\.\n'
- r'.*? Use of this source code is governed by a BSD-style license that '
- r'can be\n'
- r'.*? found in the LICENSE file\.\n'
- ) % {
- 'year': years_re,
- }
-
-def CheckChangeOnUpload(input_api, output_api):
- report = []
- report.extend(input_api.canned_checks.PanProjectChecks(
- input_api, output_api, license_header=_LicenseHeader(input_api)))
- return report
-
-
-def CheckChangeOnCommit(input_api, output_api):
- report = []
-
- report.extend(input_api.canned_checks.PanProjectChecks(
- input_api, output_api, license_header=_LicenseHeader(input_api)))
- report.extend(input_api.canned_checks.CheckTreeIsOpen(
- input_api, output_api,
- 'http://gyp-status.appspot.com/status',
- 'http://gyp-status.appspot.com/current'))
-
- import os
- import sys
- old_sys_path = sys.path
- try:
- sys.path = ['pylib', 'test/lib'] + sys.path
- blacklist = PYLINT_BLACKLIST
- if sys.platform == 'win32':
- blacklist = [os.path.normpath(x).replace('\\', '\\\\')
- for x in PYLINT_BLACKLIST]
- report.extend(input_api.canned_checks.RunPylint(
- input_api,
- output_api,
- black_list=blacklist,
- disabled_warnings=PYLINT_DISABLED_WARNINGS))
- finally:
- sys.path = old_sys_path
- return report
-
-
-TRYBOTS = [
- 'linux_try',
- 'mac_try',
- 'win_try',
-]
-
-
-def GetPreferredTryMasters(_, change):
- return {
- 'client.gyp': { t: set(['defaulttests']) for t in TRYBOTS },
- }
diff --git a/node_modules/node-gyp/gyp/codereview.settings b/node_modules/node-gyp/gyp/codereview.settings
deleted file mode 100644
index faf37f1..0000000
--- a/node_modules/node-gyp/gyp/codereview.settings
+++ /dev/null
@@ -1,10 +0,0 @@
-# This file is used by gcl to get repository specific information.
-CODE_REVIEW_SERVER: codereview.chromium.org
-CC_LIST: gyp-developer@googlegroups.com
-VIEW_VC: https://chromium.googlesource.com/external/gyp/+/
-TRY_ON_UPLOAD: False
-TRYSERVER_PROJECT: gyp
-TRYSERVER_PATCHLEVEL: 1
-TRYSERVER_ROOT: gyp
-TRYSERVER_SVN_URL: svn://svn.chromium.org/chrome-try/try-nacl
-PROJECT: gyp
diff --git a/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc b/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc
deleted file mode 100644
index 8bca510..0000000
--- a/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright (c) 2013 Google Inc. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This file is used to generate an empty .pdb -- with a 4KB pagesize -- that is
-// then used during the final link for modules that have large PDBs. Otherwise,
-// the linker will generate a pdb with a page size of 1KB, which imposes a limit
-// of 1GB on the .pdb. By generating an initial empty .pdb with the compiler
-// (rather than the linker), this limit is avoided. With this in place PDBs may
-// grow to 2GB.
-//
-// This file is referenced by the msvs_large_pdb mechanism in MSVSUtil.py.
diff --git a/node_modules/node-gyp/gyp/gyp b/node_modules/node-gyp/gyp/gyp
deleted file mode 100755
index 1b8b9bd..0000000
--- a/node_modules/node-gyp/gyp/gyp
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-set -e
-base=$(dirname "$0")
-exec python "${base}/gyp_main.py" "$@"
diff --git a/node_modules/node-gyp/gyp/gyp.bat b/node_modules/node-gyp/gyp/gyp.bat
deleted file mode 100644
index c0b4ca2..0000000
--- a/node_modules/node-gyp/gyp/gyp.bat
+++ /dev/null
@@ -1,5 +0,0 @@
-@rem Copyright (c) 2009 Google Inc. All rights reserved.
-@rem Use of this source code is governed by a BSD-style license that can be
-@rem found in the LICENSE file.
-
-@python "%~dp0gyp_main.py" %*
diff --git a/node_modules/node-gyp/gyp/gyp_main.py b/node_modules/node-gyp/gyp/gyp_main.py
deleted file mode 100755
index 25a6eba..0000000
--- a/node_modules/node-gyp/gyp/gyp_main.py
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2009 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-import sys
-
-# Make sure we're using the version of pylib in this repo, not one installed
-# elsewhere on the system.
-sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), 'pylib'))
-import gyp
-
-if __name__ == '__main__':
- sys.exit(gyp.script_main())
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py
deleted file mode 100644
index 593f0e5..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py
+++ /dev/null
@@ -1,340 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""New implementation of Visual Studio project generation."""
-
-import os
-import random
-
-import gyp.common
-
-# hashlib is supplied as of Python 2.5 as the replacement interface for md5
-# and other secure hashes. In 2.6, md5 is deprecated. Import hashlib if
-# available, avoiding a deprecation warning under 2.6. Import md5 otherwise,
-# preserving 2.4 compatibility.
-try:
- import hashlib
- _new_md5 = hashlib.md5
-except ImportError:
- import md5
- _new_md5 = md5.new
-
-
-# Initialize random number generator
-random.seed()
-
-# GUIDs for project types
-ENTRY_TYPE_GUIDS = {
- 'project': '{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}',
- 'folder': '{2150E333-8FDC-42A3-9474-1A3956D46DE8}',
-}
-
-#------------------------------------------------------------------------------
-# Helper functions
-
-
-def MakeGuid(name, seed='msvs_new'):
- """Returns a GUID for the specified target name.
-
- Args:
- name: Target name.
- seed: Seed for MD5 hash.
- Returns:
- A GUID-line string calculated from the name and seed.
-
- This generates something which looks like a GUID, but depends only on the
- name and seed. This means the same name/seed will always generate the same
- GUID, so that projects and solutions which refer to each other can explicitly
- determine the GUID to refer to explicitly. It also means that the GUID will
- not change when the project for a target is rebuilt.
- """
- # Calculate a MD5 signature for the seed and name.
- d = _new_md5(str(seed) + str(name)).hexdigest().upper()
- # Convert most of the signature to GUID form (discard the rest)
- guid = ('{' + d[:8] + '-' + d[8:12] + '-' + d[12:16] + '-' + d[16:20]
- + '-' + d[20:32] + '}')
- return guid
-
-#------------------------------------------------------------------------------
-
-
-class MSVSSolutionEntry(object):
- def __cmp__(self, other):
- # Sort by name then guid (so things are in order on vs2008).
- return cmp((self.name, self.get_guid()), (other.name, other.get_guid()))
-
-
-class MSVSFolder(MSVSSolutionEntry):
- """Folder in a Visual Studio project or solution."""
-
- def __init__(self, path, name = None, entries = None,
- guid = None, items = None):
- """Initializes the folder.
-
- Args:
- path: Full path to the folder.
- name: Name of the folder.
- entries: List of folder entries to nest inside this folder. May contain
- Folder or Project objects. May be None, if the folder is empty.
- guid: GUID to use for folder, if not None.
- items: List of solution items to include in the folder project. May be
- None, if the folder does not directly contain items.
- """
- if name:
- self.name = name
- else:
- # Use last layer.
- self.name = os.path.basename(path)
-
- self.path = path
- self.guid = guid
-
- # Copy passed lists (or set to empty lists)
- self.entries = sorted(list(entries or []))
- self.items = list(items or [])
-
- self.entry_type_guid = ENTRY_TYPE_GUIDS['folder']
-
- def get_guid(self):
- if self.guid is None:
- # Use consistent guids for folders (so things don't regenerate).
- self.guid = MakeGuid(self.path, seed='msvs_folder')
- return self.guid
-
-
-#------------------------------------------------------------------------------
-
-
-class MSVSProject(MSVSSolutionEntry):
- """Visual Studio project."""
-
- def __init__(self, path, name = None, dependencies = None, guid = None,
- spec = None, build_file = None, config_platform_overrides = None,
- fixpath_prefix = None):
- """Initializes the project.
-
- Args:
- path: Absolute path to the project file.
- name: Name of project. If None, the name will be the same as the base
- name of the project file.
- dependencies: List of other Project objects this project is dependent
- upon, if not None.
- guid: GUID to use for project, if not None.
- spec: Dictionary specifying how to build this project.
- build_file: Filename of the .gyp file that the vcproj file comes from.
- config_platform_overrides: optional dict of configuration platforms to
- used in place of the default for this target.
- fixpath_prefix: the path used to adjust the behavior of _fixpath
- """
- self.path = path
- self.guid = guid
- self.spec = spec
- self.build_file = build_file
- # Use project filename if name not specified
- self.name = name or os.path.splitext(os.path.basename(path))[0]
-
- # Copy passed lists (or set to empty lists)
- self.dependencies = list(dependencies or [])
-
- self.entry_type_guid = ENTRY_TYPE_GUIDS['project']
-
- if config_platform_overrides:
- self.config_platform_overrides = config_platform_overrides
- else:
- self.config_platform_overrides = {}
- self.fixpath_prefix = fixpath_prefix
- self.msbuild_toolset = None
-
- def set_dependencies(self, dependencies):
- self.dependencies = list(dependencies or [])
-
- def get_guid(self):
- if self.guid is None:
- # Set GUID from path
- # TODO(rspangler): This is fragile.
- # 1. We can't just use the project filename sans path, since there could
- # be multiple projects with the same base name (for example,
- # foo/unittest.vcproj and bar/unittest.vcproj).
- # 2. The path needs to be relative to $SOURCE_ROOT, so that the project
- # GUID is the same whether it's included from base/base.sln or
- # foo/bar/baz/baz.sln.
- # 3. The GUID needs to be the same each time this builder is invoked, so
- # that we don't need to rebuild the solution when the project changes.
- # 4. We should be able to handle pre-built project files by reading the
- # GUID from the files.
- self.guid = MakeGuid(self.name)
- return self.guid
-
- def set_msbuild_toolset(self, msbuild_toolset):
- self.msbuild_toolset = msbuild_toolset
-
-#------------------------------------------------------------------------------
-
-
-class MSVSSolution(object):
- """Visual Studio solution."""
-
- def __init__(self, path, version, entries=None, variants=None,
- websiteProperties=True):
- """Initializes the solution.
-
- Args:
- path: Path to solution file.
- version: Format version to emit.
- entries: List of entries in solution. May contain Folder or Project
- objects. May be None, if the folder is empty.
- variants: List of build variant strings. If none, a default list will
- be used.
- websiteProperties: Flag to decide if the website properties section
- is generated.
- """
- self.path = path
- self.websiteProperties = websiteProperties
- self.version = version
-
- # Copy passed lists (or set to empty lists)
- self.entries = list(entries or [])
-
- if variants:
- # Copy passed list
- self.variants = variants[:]
- else:
- # Use default
- self.variants = ['Debug|Win32', 'Release|Win32']
- # TODO(rspangler): Need to be able to handle a mapping of solution config
- # to project config. Should we be able to handle variants being a dict,
- # or add a separate variant_map variable? If it's a dict, we can't
- # guarantee the order of variants since dict keys aren't ordered.
-
-
- # TODO(rspangler): Automatically write to disk for now; should delay until
- # node-evaluation time.
- self.Write()
-
-
- def Write(self, writer=gyp.common.WriteOnDiff):
- """Writes the solution file to disk.
-
- Raises:
- IndexError: An entry appears multiple times.
- """
- # Walk the entry tree and collect all the folders and projects.
- all_entries = set()
- entries_to_check = self.entries[:]
- while entries_to_check:
- e = entries_to_check.pop(0)
-
- # If this entry has been visited, nothing to do.
- if e in all_entries:
- continue
-
- all_entries.add(e)
-
- # If this is a folder, check its entries too.
- if isinstance(e, MSVSFolder):
- entries_to_check += e.entries
-
- all_entries = sorted(all_entries)
-
- # Open file and print header
- f = writer(self.path)
- f.write('Microsoft Visual Studio Solution File, '
- 'Format Version %s\r\n' % self.version.SolutionVersion())
- f.write('# %s\r\n' % self.version.Description())
-
- # Project entries
- sln_root = os.path.split(self.path)[0]
- for e in all_entries:
- relative_path = gyp.common.RelativePath(e.path, sln_root)
- # msbuild does not accept an empty folder_name.
- # use '.' in case relative_path is empty.
- folder_name = relative_path.replace('/', '\\') or '.'
- f.write('Project("%s") = "%s", "%s", "%s"\r\n' % (
- e.entry_type_guid, # Entry type GUID
- e.name, # Folder name
- folder_name, # Folder name (again)
- e.get_guid(), # Entry GUID
- ))
-
- # TODO(rspangler): Need a way to configure this stuff
- if self.websiteProperties:
- f.write('\tProjectSection(WebsiteProperties) = preProject\r\n'
- '\t\tDebug.AspNetCompiler.Debug = "True"\r\n'
- '\t\tRelease.AspNetCompiler.Debug = "False"\r\n'
- '\tEndProjectSection\r\n')
-
- if isinstance(e, MSVSFolder):
- if e.items:
- f.write('\tProjectSection(SolutionItems) = preProject\r\n')
- for i in e.items:
- f.write('\t\t%s = %s\r\n' % (i, i))
- f.write('\tEndProjectSection\r\n')
-
- if isinstance(e, MSVSProject):
- if e.dependencies:
- f.write('\tProjectSection(ProjectDependencies) = postProject\r\n')
- for d in e.dependencies:
- f.write('\t\t%s = %s\r\n' % (d.get_guid(), d.get_guid()))
- f.write('\tEndProjectSection\r\n')
-
- f.write('EndProject\r\n')
-
- # Global section
- f.write('Global\r\n')
-
- # Configurations (variants)
- f.write('\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\r\n')
- for v in self.variants:
- f.write('\t\t%s = %s\r\n' % (v, v))
- f.write('\tEndGlobalSection\r\n')
-
- # Sort config guids for easier diffing of solution changes.
- config_guids = []
- config_guids_overrides = {}
- for e in all_entries:
- if isinstance(e, MSVSProject):
- config_guids.append(e.get_guid())
- config_guids_overrides[e.get_guid()] = e.config_platform_overrides
- config_guids.sort()
-
- f.write('\tGlobalSection(ProjectConfigurationPlatforms) = postSolution\r\n')
- for g in config_guids:
- for v in self.variants:
- nv = config_guids_overrides[g].get(v, v)
- # Pick which project configuration to build for this solution
- # configuration.
- f.write('\t\t%s.%s.ActiveCfg = %s\r\n' % (
- g, # Project GUID
- v, # Solution build configuration
- nv, # Project build config for that solution config
- ))
-
- # Enable project in this solution configuration.
- f.write('\t\t%s.%s.Build.0 = %s\r\n' % (
- g, # Project GUID
- v, # Solution build configuration
- nv, # Project build config for that solution config
- ))
- f.write('\tEndGlobalSection\r\n')
-
- # TODO(rspangler): Should be able to configure this stuff too (though I've
- # never seen this be any different)
- f.write('\tGlobalSection(SolutionProperties) = preSolution\r\n')
- f.write('\t\tHideSolutionNode = FALSE\r\n')
- f.write('\tEndGlobalSection\r\n')
-
- # Folder mappings
- # Omit this section if there are no folders
- if any([e.entries for e in all_entries if isinstance(e, MSVSFolder)]):
- f.write('\tGlobalSection(NestedProjects) = preSolution\r\n')
- for e in all_entries:
- if not isinstance(e, MSVSFolder):
- continue # Does not apply to projects, only folders
- for subentry in e.entries:
- f.write('\t\t%s = %s\r\n' % (subentry.get_guid(), e.get_guid()))
- f.write('\tEndGlobalSection\r\n')
-
- f.write('EndGlobal\r\n')
-
- f.close()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py
deleted file mode 100644
index db1ceed..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py
+++ /dev/null
@@ -1,208 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Visual Studio project reader/writer."""
-
-import gyp.common
-import gyp.easy_xml as easy_xml
-
-#------------------------------------------------------------------------------
-
-
-class Tool(object):
- """Visual Studio tool."""
-
- def __init__(self, name, attrs=None):
- """Initializes the tool.
-
- Args:
- name: Tool name.
- attrs: Dict of tool attributes; may be None.
- """
- self._attrs = attrs or {}
- self._attrs['Name'] = name
-
- def _GetSpecification(self):
- """Creates an element for the tool.
-
- Returns:
- A new xml.dom.Element for the tool.
- """
- return ['Tool', self._attrs]
-
-class Filter(object):
- """Visual Studio filter - that is, a virtual folder."""
-
- def __init__(self, name, contents=None):
- """Initializes the folder.
-
- Args:
- name: Filter (folder) name.
- contents: List of filenames and/or Filter objects contained.
- """
- self.name = name
- self.contents = list(contents or [])
-
-
-#------------------------------------------------------------------------------
-
-
-class Writer(object):
- """Visual Studio XML project writer."""
-
- def __init__(self, project_path, version, name, guid=None, platforms=None):
- """Initializes the project.
-
- Args:
- project_path: Path to the project file.
- version: Format version to emit.
- name: Name of the project.
- guid: GUID to use for project, if not None.
- platforms: Array of string, the supported platforms. If null, ['Win32']
- """
- self.project_path = project_path
- self.version = version
- self.name = name
- self.guid = guid
-
- # Default to Win32 for platforms.
- if not platforms:
- platforms = ['Win32']
-
- # Initialize the specifications of the various sections.
- self.platform_section = ['Platforms']
- for platform in platforms:
- self.platform_section.append(['Platform', {'Name': platform}])
- self.tool_files_section = ['ToolFiles']
- self.configurations_section = ['Configurations']
- self.files_section = ['Files']
-
- # Keep a dict keyed on filename to speed up access.
- self.files_dict = dict()
-
- def AddToolFile(self, path):
- """Adds a tool file to the project.
-
- Args:
- path: Relative path from project to tool file.
- """
- self.tool_files_section.append(['ToolFile', {'RelativePath': path}])
-
- def _GetSpecForConfiguration(self, config_type, config_name, attrs, tools):
- """Returns the specification for a configuration.
-
- Args:
- config_type: Type of configuration node.
- config_name: Configuration name.
- attrs: Dict of configuration attributes; may be None.
- tools: List of tools (strings or Tool objects); may be None.
- Returns:
- """
- # Handle defaults
- if not attrs:
- attrs = {}
- if not tools:
- tools = []
-
- # Add configuration node and its attributes
- node_attrs = attrs.copy()
- node_attrs['Name'] = config_name
- specification = [config_type, node_attrs]
-
- # Add tool nodes and their attributes
- if tools:
- for t in tools:
- if isinstance(t, Tool):
- specification.append(t._GetSpecification())
- else:
- specification.append(Tool(t)._GetSpecification())
- return specification
-
-
- def AddConfig(self, name, attrs=None, tools=None):
- """Adds a configuration to the project.
-
- Args:
- name: Configuration name.
- attrs: Dict of configuration attributes; may be None.
- tools: List of tools (strings or Tool objects); may be None.
- """
- spec = self._GetSpecForConfiguration('Configuration', name, attrs, tools)
- self.configurations_section.append(spec)
-
- def _AddFilesToNode(self, parent, files):
- """Adds files and/or filters to the parent node.
-
- Args:
- parent: Destination node
- files: A list of Filter objects and/or relative paths to files.
-
- Will call itself recursively, if the files list contains Filter objects.
- """
- for f in files:
- if isinstance(f, Filter):
- node = ['Filter', {'Name': f.name}]
- self._AddFilesToNode(node, f.contents)
- else:
- node = ['File', {'RelativePath': f}]
- self.files_dict[f] = node
- parent.append(node)
-
- def AddFiles(self, files):
- """Adds files to the project.
-
- Args:
- files: A list of Filter objects and/or relative paths to files.
-
- This makes a copy of the file/filter tree at the time of this call. If you
- later add files to a Filter object which was passed into a previous call
- to AddFiles(), it will not be reflected in this project.
- """
- self._AddFilesToNode(self.files_section, files)
- # TODO(rspangler) This also doesn't handle adding files to an existing
- # filter. That is, it doesn't merge the trees.
-
- def AddFileConfig(self, path, config, attrs=None, tools=None):
- """Adds a configuration to a file.
-
- Args:
- path: Relative path to the file.
- config: Name of configuration to add.
- attrs: Dict of configuration attributes; may be None.
- tools: List of tools (strings or Tool objects); may be None.
-
- Raises:
- ValueError: Relative path does not match any file added via AddFiles().
- """
- # Find the file node with the right relative path
- parent = self.files_dict.get(path)
- if not parent:
- raise ValueError('AddFileConfig: file "%s" not in project.' % path)
-
- # Add the config to the file node
- spec = self._GetSpecForConfiguration('FileConfiguration', config, attrs,
- tools)
- parent.append(spec)
-
- def WriteIfChanged(self):
- """Writes the project file."""
- # First create XML content definition
- content = [
- 'VisualStudioProject',
- {'ProjectType': 'Visual C++',
- 'Version': self.version.ProjectVersion(),
- 'Name': self.name,
- 'ProjectGUID': self.guid,
- 'RootNamespace': self.name,
- 'Keyword': 'Win32Proj'
- },
- self.platform_section,
- self.tool_files_section,
- self.configurations_section,
- ['References'], # empty section
- self.files_section,
- ['Globals'] # empty section
- ]
- easy_xml.WriteXmlIfChanged(content, self.project_path,
- encoding="Windows-1252")
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py
deleted file mode 100644
index a08cc15..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py
+++ /dev/null
@@ -1,1096 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-r"""Code to validate and convert settings of the Microsoft build tools.
-
-This file contains code to validate and convert settings of the Microsoft
-build tools. The function ConvertToMSBuildSettings(), ValidateMSVSSettings(),
-and ValidateMSBuildSettings() are the entry points.
-
-This file was created by comparing the projects created by Visual Studio 2008
-and Visual Studio 2010 for all available settings through the user interface.
-The MSBuild schemas were also considered. They are typically found in the
-MSBuild install directory, e.g. c:\Program Files (x86)\MSBuild
-"""
-
-import sys
-import re
-
-# Dictionaries of settings validators. The key is the tool name, the value is
-# a dictionary mapping setting names to validation functions.
-_msvs_validators = {}
-_msbuild_validators = {}
-
-
-# A dictionary of settings converters. The key is the tool name, the value is
-# a dictionary mapping setting names to conversion functions.
-_msvs_to_msbuild_converters = {}
-
-
-# Tool name mapping from MSVS to MSBuild.
-_msbuild_name_of_tool = {}
-
-
-class _Tool(object):
- """Represents a tool used by MSVS or MSBuild.
-
- Attributes:
- msvs_name: The name of the tool in MSVS.
- msbuild_name: The name of the tool in MSBuild.
- """
-
- def __init__(self, msvs_name, msbuild_name):
- self.msvs_name = msvs_name
- self.msbuild_name = msbuild_name
-
-
-def _AddTool(tool):
- """Adds a tool to the four dictionaries used to process settings.
-
- This only defines the tool. Each setting also needs to be added.
-
- Args:
- tool: The _Tool object to be added.
- """
- _msvs_validators[tool.msvs_name] = {}
- _msbuild_validators[tool.msbuild_name] = {}
- _msvs_to_msbuild_converters[tool.msvs_name] = {}
- _msbuild_name_of_tool[tool.msvs_name] = tool.msbuild_name
-
-
-def _GetMSBuildToolSettings(msbuild_settings, tool):
- """Returns an MSBuild tool dictionary. Creates it if needed."""
- return msbuild_settings.setdefault(tool.msbuild_name, {})
-
-
-class _Type(object):
- """Type of settings (Base class)."""
-
- def ValidateMSVS(self, value):
- """Verifies that the value is legal for MSVS.
-
- Args:
- value: the value to check for this type.
-
- Raises:
- ValueError if value is not valid for MSVS.
- """
-
- def ValidateMSBuild(self, value):
- """Verifies that the value is legal for MSBuild.
-
- Args:
- value: the value to check for this type.
-
- Raises:
- ValueError if value is not valid for MSBuild.
- """
-
- def ConvertToMSBuild(self, value):
- """Returns the MSBuild equivalent of the MSVS value given.
-
- Args:
- value: the MSVS value to convert.
-
- Returns:
- the MSBuild equivalent.
-
- Raises:
- ValueError if value is not valid.
- """
- return value
-
-
-class _String(_Type):
- """A setting that's just a string."""
-
- def ValidateMSVS(self, value):
- if not isinstance(value, basestring):
- raise ValueError('expected string; got %r' % value)
-
- def ValidateMSBuild(self, value):
- if not isinstance(value, basestring):
- raise ValueError('expected string; got %r' % value)
-
- def ConvertToMSBuild(self, value):
- # Convert the macros
- return ConvertVCMacrosToMSBuild(value)
-
-
-class _StringList(_Type):
- """A settings that's a list of strings."""
-
- def ValidateMSVS(self, value):
- if not isinstance(value, basestring) and not isinstance(value, list):
- raise ValueError('expected string list; got %r' % value)
-
- def ValidateMSBuild(self, value):
- if not isinstance(value, basestring) and not isinstance(value, list):
- raise ValueError('expected string list; got %r' % value)
-
- def ConvertToMSBuild(self, value):
- # Convert the macros
- if isinstance(value, list):
- return [ConvertVCMacrosToMSBuild(i) for i in value]
- else:
- return ConvertVCMacrosToMSBuild(value)
-
-
-class _Boolean(_Type):
- """Boolean settings, can have the values 'false' or 'true'."""
-
- def _Validate(self, value):
- if value != 'true' and value != 'false':
- raise ValueError('expected bool; got %r' % value)
-
- def ValidateMSVS(self, value):
- self._Validate(value)
-
- def ValidateMSBuild(self, value):
- self._Validate(value)
-
- def ConvertToMSBuild(self, value):
- self._Validate(value)
- return value
-
-
-class _Integer(_Type):
- """Integer settings."""
-
- def __init__(self, msbuild_base=10):
- _Type.__init__(self)
- self._msbuild_base = msbuild_base
-
- def ValidateMSVS(self, value):
- # Try to convert, this will raise ValueError if invalid.
- self.ConvertToMSBuild(value)
-
- def ValidateMSBuild(self, value):
- # Try to convert, this will raise ValueError if invalid.
- int(value, self._msbuild_base)
-
- def ConvertToMSBuild(self, value):
- msbuild_format = (self._msbuild_base == 10) and '%d' or '0x%04x'
- return msbuild_format % int(value)
-
-
-class _Enumeration(_Type):
- """Type of settings that is an enumeration.
-
- In MSVS, the values are indexes like '0', '1', and '2'.
- MSBuild uses text labels that are more representative, like 'Win32'.
-
- Constructor args:
- label_list: an array of MSBuild labels that correspond to the MSVS index.
- In the rare cases where MSVS has skipped an index value, None is
- used in the array to indicate the unused spot.
- new: an array of labels that are new to MSBuild.
- """
-
- def __init__(self, label_list, new=None):
- _Type.__init__(self)
- self._label_list = label_list
- self._msbuild_values = set(value for value in label_list
- if value is not None)
- if new is not None:
- self._msbuild_values.update(new)
-
- def ValidateMSVS(self, value):
- # Try to convert. It will raise an exception if not valid.
- self.ConvertToMSBuild(value)
-
- def ValidateMSBuild(self, value):
- if value not in self._msbuild_values:
- raise ValueError('unrecognized enumerated value %s' % value)
-
- def ConvertToMSBuild(self, value):
- index = int(value)
- if index < 0 or index >= len(self._label_list):
- raise ValueError('index value (%d) not in expected range [0, %d)' %
- (index, len(self._label_list)))
- label = self._label_list[index]
- if label is None:
- raise ValueError('converted value for %s not specified.' % value)
- return label
-
-
-# Instantiate the various generic types.
-_boolean = _Boolean()
-_integer = _Integer()
-# For now, we don't do any special validation on these types:
-_string = _String()
-_file_name = _String()
-_folder_name = _String()
-_file_list = _StringList()
-_folder_list = _StringList()
-_string_list = _StringList()
-# Some boolean settings went from numerical values to boolean. The
-# mapping is 0: default, 1: false, 2: true.
-_newly_boolean = _Enumeration(['', 'false', 'true'])
-
-
-def _Same(tool, name, setting_type):
- """Defines a setting that has the same name in MSVS and MSBuild.
-
- Args:
- tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
- name: the name of the setting.
- setting_type: the type of this setting.
- """
- _Renamed(tool, name, name, setting_type)
-
-
-def _Renamed(tool, msvs_name, msbuild_name, setting_type):
- """Defines a setting for which the name has changed.
-
- Args:
- tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
- msvs_name: the name of the MSVS setting.
- msbuild_name: the name of the MSBuild setting.
- setting_type: the type of this setting.
- """
-
- def _Translate(value, msbuild_settings):
- msbuild_tool_settings = _GetMSBuildToolSettings(msbuild_settings, tool)
- msbuild_tool_settings[msbuild_name] = setting_type.ConvertToMSBuild(value)
-
- _msvs_validators[tool.msvs_name][msvs_name] = setting_type.ValidateMSVS
- _msbuild_validators[tool.msbuild_name][msbuild_name] = (
- setting_type.ValidateMSBuild)
- _msvs_to_msbuild_converters[tool.msvs_name][msvs_name] = _Translate
-
-
-def _Moved(tool, settings_name, msbuild_tool_name, setting_type):
- _MovedAndRenamed(tool, settings_name, msbuild_tool_name, settings_name,
- setting_type)
-
-
-def _MovedAndRenamed(tool, msvs_settings_name, msbuild_tool_name,
- msbuild_settings_name, setting_type):
- """Defines a setting that may have moved to a new section.
-
- Args:
- tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
- msvs_settings_name: the MSVS name of the setting.
- msbuild_tool_name: the name of the MSBuild tool to place the setting under.
- msbuild_settings_name: the MSBuild name of the setting.
- setting_type: the type of this setting.
- """
-
- def _Translate(value, msbuild_settings):
- tool_settings = msbuild_settings.setdefault(msbuild_tool_name, {})
- tool_settings[msbuild_settings_name] = setting_type.ConvertToMSBuild(value)
-
- _msvs_validators[tool.msvs_name][msvs_settings_name] = (
- setting_type.ValidateMSVS)
- validator = setting_type.ValidateMSBuild
- _msbuild_validators[msbuild_tool_name][msbuild_settings_name] = validator
- _msvs_to_msbuild_converters[tool.msvs_name][msvs_settings_name] = _Translate
-
-
-def _MSVSOnly(tool, name, setting_type):
- """Defines a setting that is only found in MSVS.
-
- Args:
- tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
- name: the name of the setting.
- setting_type: the type of this setting.
- """
-
- def _Translate(unused_value, unused_msbuild_settings):
- # Since this is for MSVS only settings, no translation will happen.
- pass
-
- _msvs_validators[tool.msvs_name][name] = setting_type.ValidateMSVS
- _msvs_to_msbuild_converters[tool.msvs_name][name] = _Translate
-
-
-def _MSBuildOnly(tool, name, setting_type):
- """Defines a setting that is only found in MSBuild.
-
- Args:
- tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
- name: the name of the setting.
- setting_type: the type of this setting.
- """
-
- def _Translate(value, msbuild_settings):
- # Let msbuild-only properties get translated as-is from msvs_settings.
- tool_settings = msbuild_settings.setdefault(tool.msbuild_name, {})
- tool_settings[name] = value
-
- _msbuild_validators[tool.msbuild_name][name] = setting_type.ValidateMSBuild
- _msvs_to_msbuild_converters[tool.msvs_name][name] = _Translate
-
-
-def _ConvertedToAdditionalOption(tool, msvs_name, flag):
- """Defines a setting that's handled via a command line option in MSBuild.
-
- Args:
- tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
- msvs_name: the name of the MSVS setting that if 'true' becomes a flag
- flag: the flag to insert at the end of the AdditionalOptions
- """
-
- def _Translate(value, msbuild_settings):
- if value == 'true':
- tool_settings = _GetMSBuildToolSettings(msbuild_settings, tool)
- if 'AdditionalOptions' in tool_settings:
- new_flags = '%s %s' % (tool_settings['AdditionalOptions'], flag)
- else:
- new_flags = flag
- tool_settings['AdditionalOptions'] = new_flags
- _msvs_validators[tool.msvs_name][msvs_name] = _boolean.ValidateMSVS
- _msvs_to_msbuild_converters[tool.msvs_name][msvs_name] = _Translate
-
-
-def _CustomGeneratePreprocessedFile(tool, msvs_name):
- def _Translate(value, msbuild_settings):
- tool_settings = _GetMSBuildToolSettings(msbuild_settings, tool)
- if value == '0':
- tool_settings['PreprocessToFile'] = 'false'
- tool_settings['PreprocessSuppressLineNumbers'] = 'false'
- elif value == '1': # /P
- tool_settings['PreprocessToFile'] = 'true'
- tool_settings['PreprocessSuppressLineNumbers'] = 'false'
- elif value == '2': # /EP /P
- tool_settings['PreprocessToFile'] = 'true'
- tool_settings['PreprocessSuppressLineNumbers'] = 'true'
- else:
- raise ValueError('value must be one of [0, 1, 2]; got %s' % value)
- # Create a bogus validator that looks for '0', '1', or '2'
- msvs_validator = _Enumeration(['a', 'b', 'c']).ValidateMSVS
- _msvs_validators[tool.msvs_name][msvs_name] = msvs_validator
- msbuild_validator = _boolean.ValidateMSBuild
- msbuild_tool_validators = _msbuild_validators[tool.msbuild_name]
- msbuild_tool_validators['PreprocessToFile'] = msbuild_validator
- msbuild_tool_validators['PreprocessSuppressLineNumbers'] = msbuild_validator
- _msvs_to_msbuild_converters[tool.msvs_name][msvs_name] = _Translate
-
-
-fix_vc_macro_slashes_regex_list = ('IntDir', 'OutDir')
-fix_vc_macro_slashes_regex = re.compile(
- r'(\$\((?:%s)\))(?:[\\/]+)' % "|".join(fix_vc_macro_slashes_regex_list)
-)
-
-# Regular expression to detect keys that were generated by exclusion lists
-_EXCLUDED_SUFFIX_RE = re.compile('^(.*)_excluded$')
-
-
-def _ValidateExclusionSetting(setting, settings, error_msg, stderr=sys.stderr):
- """Verify that 'setting' is valid if it is generated from an exclusion list.
-
- If the setting appears to be generated from an exclusion list, the root name
- is checked.
-
- Args:
- setting: A string that is the setting name to validate
- settings: A dictionary where the keys are valid settings
- error_msg: The message to emit in the event of error
- stderr: The stream receiving the error messages.
- """
- # This may be unrecognized because it's an exclusion list. If the
- # setting name has the _excluded suffix, then check the root name.
- unrecognized = True
- m = re.match(_EXCLUDED_SUFFIX_RE, setting)
- if m:
- root_setting = m.group(1)
- unrecognized = root_setting not in settings
-
- if unrecognized:
- # We don't know this setting. Give a warning.
- print >> stderr, error_msg
-
-
-def FixVCMacroSlashes(s):
- """Replace macros which have excessive following slashes.
-
- These macros are known to have a built-in trailing slash. Furthermore, many
- scripts hiccup on processing paths with extra slashes in the middle.
-
- This list is probably not exhaustive. Add as needed.
- """
- if '$' in s:
- s = fix_vc_macro_slashes_regex.sub(r'\1', s)
- return s
-
-
-def ConvertVCMacrosToMSBuild(s):
- """Convert the MSVS macros found in the string to the MSBuild equivalent.
-
- This list is probably not exhaustive. Add as needed.
- """
- if '$' in s:
- replace_map = {
- '$(ConfigurationName)': '$(Configuration)',
- '$(InputDir)': '%(RelativeDir)',
- '$(InputExt)': '%(Extension)',
- '$(InputFileName)': '%(Filename)%(Extension)',
- '$(InputName)': '%(Filename)',
- '$(InputPath)': '%(Identity)',
- '$(ParentName)': '$(ProjectFileName)',
- '$(PlatformName)': '$(Platform)',
- '$(SafeInputName)': '%(Filename)',
- }
- for old, new in replace_map.iteritems():
- s = s.replace(old, new)
- s = FixVCMacroSlashes(s)
- return s
-
-
-def ConvertToMSBuildSettings(msvs_settings, stderr=sys.stderr):
- """Converts MSVS settings (VS2008 and earlier) to MSBuild settings (VS2010+).
-
- Args:
- msvs_settings: A dictionary. The key is the tool name. The values are
- themselves dictionaries of settings and their values.
- stderr: The stream receiving the error messages.
-
- Returns:
- A dictionary of MSBuild settings. The key is either the MSBuild tool name
- or the empty string (for the global settings). The values are themselves
- dictionaries of settings and their values.
- """
- msbuild_settings = {}
- for msvs_tool_name, msvs_tool_settings in msvs_settings.iteritems():
- if msvs_tool_name in _msvs_to_msbuild_converters:
- msvs_tool = _msvs_to_msbuild_converters[msvs_tool_name]
- for msvs_setting, msvs_value in msvs_tool_settings.iteritems():
- if msvs_setting in msvs_tool:
- # Invoke the translation function.
- try:
- msvs_tool[msvs_setting](msvs_value, msbuild_settings)
- except ValueError, e:
- print >> stderr, ('Warning: while converting %s/%s to MSBuild, '
- '%s' % (msvs_tool_name, msvs_setting, e))
- else:
- _ValidateExclusionSetting(msvs_setting,
- msvs_tool,
- ('Warning: unrecognized setting %s/%s '
- 'while converting to MSBuild.' %
- (msvs_tool_name, msvs_setting)),
- stderr)
- else:
- print >> stderr, ('Warning: unrecognized tool %s while converting to '
- 'MSBuild.' % msvs_tool_name)
- return msbuild_settings
-
-
-def ValidateMSVSSettings(settings, stderr=sys.stderr):
- """Validates that the names of the settings are valid for MSVS.
-
- Args:
- settings: A dictionary. The key is the tool name. The values are
- themselves dictionaries of settings and their values.
- stderr: The stream receiving the error messages.
- """
- _ValidateSettings(_msvs_validators, settings, stderr)
-
-
-def ValidateMSBuildSettings(settings, stderr=sys.stderr):
- """Validates that the names of the settings are valid for MSBuild.
-
- Args:
- settings: A dictionary. The key is the tool name. The values are
- themselves dictionaries of settings and their values.
- stderr: The stream receiving the error messages.
- """
- _ValidateSettings(_msbuild_validators, settings, stderr)
-
-
-def _ValidateSettings(validators, settings, stderr):
- """Validates that the settings are valid for MSBuild or MSVS.
-
- We currently only validate the names of the settings, not their values.
-
- Args:
- validators: A dictionary of tools and their validators.
- settings: A dictionary. The key is the tool name. The values are
- themselves dictionaries of settings and their values.
- stderr: The stream receiving the error messages.
- """
- for tool_name in settings:
- if tool_name in validators:
- tool_validators = validators[tool_name]
- for setting, value in settings[tool_name].iteritems():
- if setting in tool_validators:
- try:
- tool_validators[setting](value)
- except ValueError, e:
- print >> stderr, ('Warning: for %s/%s, %s' %
- (tool_name, setting, e))
- else:
- _ValidateExclusionSetting(setting,
- tool_validators,
- ('Warning: unrecognized setting %s/%s' %
- (tool_name, setting)),
- stderr)
-
- else:
- print >> stderr, ('Warning: unrecognized tool %s' % tool_name)
-
-
-# MSVS and MBuild names of the tools.
-_compile = _Tool('VCCLCompilerTool', 'ClCompile')
-_link = _Tool('VCLinkerTool', 'Link')
-_midl = _Tool('VCMIDLTool', 'Midl')
-_rc = _Tool('VCResourceCompilerTool', 'ResourceCompile')
-_lib = _Tool('VCLibrarianTool', 'Lib')
-_manifest = _Tool('VCManifestTool', 'Manifest')
-_masm = _Tool('MASM', 'MASM')
-
-
-_AddTool(_compile)
-_AddTool(_link)
-_AddTool(_midl)
-_AddTool(_rc)
-_AddTool(_lib)
-_AddTool(_manifest)
-_AddTool(_masm)
-# Add sections only found in the MSBuild settings.
-_msbuild_validators[''] = {}
-_msbuild_validators['ProjectReference'] = {}
-_msbuild_validators['ManifestResourceCompile'] = {}
-
-# Descriptions of the compiler options, i.e. VCCLCompilerTool in MSVS and
-# ClCompile in MSBuild.
-# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\cl.xml" for
-# the schema of the MSBuild ClCompile settings.
-
-# Options that have the same name in MSVS and MSBuild
-_Same(_compile, 'AdditionalIncludeDirectories', _folder_list) # /I
-_Same(_compile, 'AdditionalOptions', _string_list)
-_Same(_compile, 'AdditionalUsingDirectories', _folder_list) # /AI
-_Same(_compile, 'AssemblerListingLocation', _file_name) # /Fa
-_Same(_compile, 'BrowseInformationFile', _file_name)
-_Same(_compile, 'BufferSecurityCheck', _boolean) # /GS
-_Same(_compile, 'DisableLanguageExtensions', _boolean) # /Za
-_Same(_compile, 'DisableSpecificWarnings', _string_list) # /wd
-_Same(_compile, 'EnableFiberSafeOptimizations', _boolean) # /GT
-_Same(_compile, 'EnablePREfast', _boolean) # /analyze Visible='false'
-_Same(_compile, 'ExpandAttributedSource', _boolean) # /Fx
-_Same(_compile, 'FloatingPointExceptions', _boolean) # /fp:except
-_Same(_compile, 'ForceConformanceInForLoopScope', _boolean) # /Zc:forScope
-_Same(_compile, 'ForcedIncludeFiles', _file_list) # /FI
-_Same(_compile, 'ForcedUsingFiles', _file_list) # /FU
-_Same(_compile, 'GenerateXMLDocumentationFiles', _boolean) # /doc
-_Same(_compile, 'IgnoreStandardIncludePath', _boolean) # /X
-_Same(_compile, 'MinimalRebuild', _boolean) # /Gm
-_Same(_compile, 'OmitDefaultLibName', _boolean) # /Zl
-_Same(_compile, 'OmitFramePointers', _boolean) # /Oy
-_Same(_compile, 'PreprocessorDefinitions', _string_list) # /D
-_Same(_compile, 'ProgramDataBaseFileName', _file_name) # /Fd
-_Same(_compile, 'RuntimeTypeInfo', _boolean) # /GR
-_Same(_compile, 'ShowIncludes', _boolean) # /showIncludes
-_Same(_compile, 'SmallerTypeCheck', _boolean) # /RTCc
-_Same(_compile, 'StringPooling', _boolean) # /GF
-_Same(_compile, 'SuppressStartupBanner', _boolean) # /nologo
-_Same(_compile, 'TreatWChar_tAsBuiltInType', _boolean) # /Zc:wchar_t
-_Same(_compile, 'UndefineAllPreprocessorDefinitions', _boolean) # /u
-_Same(_compile, 'UndefinePreprocessorDefinitions', _string_list) # /U
-_Same(_compile, 'UseFullPaths', _boolean) # /FC
-_Same(_compile, 'WholeProgramOptimization', _boolean) # /GL
-_Same(_compile, 'XMLDocumentationFileName', _file_name)
-
-_Same(_compile, 'AssemblerOutput',
- _Enumeration(['NoListing',
- 'AssemblyCode', # /FA
- 'All', # /FAcs
- 'AssemblyAndMachineCode', # /FAc
- 'AssemblyAndSourceCode'])) # /FAs
-_Same(_compile, 'BasicRuntimeChecks',
- _Enumeration(['Default',
- 'StackFrameRuntimeCheck', # /RTCs
- 'UninitializedLocalUsageCheck', # /RTCu
- 'EnableFastChecks'])) # /RTC1
-_Same(_compile, 'BrowseInformation',
- _Enumeration(['false',
- 'true', # /FR
- 'true'])) # /Fr
-_Same(_compile, 'CallingConvention',
- _Enumeration(['Cdecl', # /Gd
- 'FastCall', # /Gr
- 'StdCall', # /Gz
- 'VectorCall'])) # /Gv
-_Same(_compile, 'CompileAs',
- _Enumeration(['Default',
- 'CompileAsC', # /TC
- 'CompileAsCpp'])) # /TP
-_Same(_compile, 'DebugInformationFormat',
- _Enumeration(['', # Disabled
- 'OldStyle', # /Z7
- None,
- 'ProgramDatabase', # /Zi
- 'EditAndContinue'])) # /ZI
-_Same(_compile, 'EnableEnhancedInstructionSet',
- _Enumeration(['NotSet',
- 'StreamingSIMDExtensions', # /arch:SSE
- 'StreamingSIMDExtensions2', # /arch:SSE2
- 'AdvancedVectorExtensions', # /arch:AVX (vs2012+)
- 'NoExtensions', # /arch:IA32 (vs2012+)
- # This one only exists in the new msbuild format.
- 'AdvancedVectorExtensions2', # /arch:AVX2 (vs2013r2+)
- ]))
-_Same(_compile, 'ErrorReporting',
- _Enumeration(['None', # /errorReport:none
- 'Prompt', # /errorReport:prompt
- 'Queue'], # /errorReport:queue
- new=['Send'])) # /errorReport:send"
-_Same(_compile, 'ExceptionHandling',
- _Enumeration(['false',
- 'Sync', # /EHsc
- 'Async'], # /EHa
- new=['SyncCThrow'])) # /EHs
-_Same(_compile, 'FavorSizeOrSpeed',
- _Enumeration(['Neither',
- 'Speed', # /Ot
- 'Size'])) # /Os
-_Same(_compile, 'FloatingPointModel',
- _Enumeration(['Precise', # /fp:precise
- 'Strict', # /fp:strict
- 'Fast'])) # /fp:fast
-_Same(_compile, 'InlineFunctionExpansion',
- _Enumeration(['Default',
- 'OnlyExplicitInline', # /Ob1
- 'AnySuitable'], # /Ob2
- new=['Disabled'])) # /Ob0
-_Same(_compile, 'Optimization',
- _Enumeration(['Disabled', # /Od
- 'MinSpace', # /O1
- 'MaxSpeed', # /O2
- 'Full'])) # /Ox
-_Same(_compile, 'RuntimeLibrary',
- _Enumeration(['MultiThreaded', # /MT
- 'MultiThreadedDebug', # /MTd
- 'MultiThreadedDLL', # /MD
- 'MultiThreadedDebugDLL'])) # /MDd
-_Same(_compile, 'StructMemberAlignment',
- _Enumeration(['Default',
- '1Byte', # /Zp1
- '2Bytes', # /Zp2
- '4Bytes', # /Zp4
- '8Bytes', # /Zp8
- '16Bytes'])) # /Zp16
-_Same(_compile, 'WarningLevel',
- _Enumeration(['TurnOffAllWarnings', # /W0
- 'Level1', # /W1
- 'Level2', # /W2
- 'Level3', # /W3
- 'Level4'], # /W4
- new=['EnableAllWarnings'])) # /Wall
-
-# Options found in MSVS that have been renamed in MSBuild.
-_Renamed(_compile, 'EnableFunctionLevelLinking', 'FunctionLevelLinking',
- _boolean) # /Gy
-_Renamed(_compile, 'EnableIntrinsicFunctions', 'IntrinsicFunctions',
- _boolean) # /Oi
-_Renamed(_compile, 'KeepComments', 'PreprocessKeepComments', _boolean) # /C
-_Renamed(_compile, 'ObjectFile', 'ObjectFileName', _file_name) # /Fo
-_Renamed(_compile, 'OpenMP', 'OpenMPSupport', _boolean) # /openmp
-_Renamed(_compile, 'PrecompiledHeaderThrough', 'PrecompiledHeaderFile',
- _file_name) # Used with /Yc and /Yu
-_Renamed(_compile, 'PrecompiledHeaderFile', 'PrecompiledHeaderOutputFile',
- _file_name) # /Fp
-_Renamed(_compile, 'UsePrecompiledHeader', 'PrecompiledHeader',
- _Enumeration(['NotUsing', # VS recognized '' for this value too.
- 'Create', # /Yc
- 'Use'])) # /Yu
-_Renamed(_compile, 'WarnAsError', 'TreatWarningAsError', _boolean) # /WX
-
-_ConvertedToAdditionalOption(_compile, 'DefaultCharIsUnsigned', '/J')
-
-# MSVS options not found in MSBuild.
-_MSVSOnly(_compile, 'Detect64BitPortabilityProblems', _boolean)
-_MSVSOnly(_compile, 'UseUnicodeResponseFiles', _boolean)
-
-# MSBuild options not found in MSVS.
-_MSBuildOnly(_compile, 'BuildingInIDE', _boolean)
-_MSBuildOnly(_compile, 'CompileAsManaged',
- _Enumeration([], new=['false',
- 'true'])) # /clr
-_MSBuildOnly(_compile, 'CreateHotpatchableImage', _boolean) # /hotpatch
-_MSBuildOnly(_compile, 'MultiProcessorCompilation', _boolean) # /MP
-_MSBuildOnly(_compile, 'PreprocessOutputPath', _string) # /Fi
-_MSBuildOnly(_compile, 'ProcessorNumber', _integer) # the number of processors
-_MSBuildOnly(_compile, 'TrackerLogDirectory', _folder_name)
-_MSBuildOnly(_compile, 'TreatSpecificWarningsAsErrors', _string_list) # /we
-_MSBuildOnly(_compile, 'UseUnicodeForAssemblerListing', _boolean) # /FAu
-
-# Defines a setting that needs very customized processing
-_CustomGeneratePreprocessedFile(_compile, 'GeneratePreprocessedFile')
-
-
-# Directives for converting MSVS VCLinkerTool to MSBuild Link.
-# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\link.xml" for
-# the schema of the MSBuild Link settings.
-
-# Options that have the same name in MSVS and MSBuild
-_Same(_link, 'AdditionalDependencies', _file_list)
-_Same(_link, 'AdditionalLibraryDirectories', _folder_list) # /LIBPATH
-# /MANIFESTDEPENDENCY:
-_Same(_link, 'AdditionalManifestDependencies', _file_list)
-_Same(_link, 'AdditionalOptions', _string_list)
-_Same(_link, 'AddModuleNamesToAssembly', _file_list) # /ASSEMBLYMODULE
-_Same(_link, 'AllowIsolation', _boolean) # /ALLOWISOLATION
-_Same(_link, 'AssemblyLinkResource', _file_list) # /ASSEMBLYLINKRESOURCE
-_Same(_link, 'BaseAddress', _string) # /BASE
-_Same(_link, 'CLRUnmanagedCodeCheck', _boolean) # /CLRUNMANAGEDCODECHECK
-_Same(_link, 'DelayLoadDLLs', _file_list) # /DELAYLOAD
-_Same(_link, 'DelaySign', _boolean) # /DELAYSIGN
-_Same(_link, 'EmbedManagedResourceFile', _file_list) # /ASSEMBLYRESOURCE
-_Same(_link, 'EnableUAC', _boolean) # /MANIFESTUAC
-_Same(_link, 'EntryPointSymbol', _string) # /ENTRY
-_Same(_link, 'ForceSymbolReferences', _file_list) # /INCLUDE
-_Same(_link, 'FunctionOrder', _file_name) # /ORDER
-_Same(_link, 'GenerateDebugInformation', _boolean) # /DEBUG
-_Same(_link, 'GenerateMapFile', _boolean) # /MAP
-_Same(_link, 'HeapCommitSize', _string)
-_Same(_link, 'HeapReserveSize', _string) # /HEAP
-_Same(_link, 'IgnoreAllDefaultLibraries', _boolean) # /NODEFAULTLIB
-_Same(_link, 'IgnoreEmbeddedIDL', _boolean) # /IGNOREIDL
-_Same(_link, 'ImportLibrary', _file_name) # /IMPLIB
-_Same(_link, 'KeyContainer', _file_name) # /KEYCONTAINER
-_Same(_link, 'KeyFile', _file_name) # /KEYFILE
-_Same(_link, 'ManifestFile', _file_name) # /ManifestFile
-_Same(_link, 'MapExports', _boolean) # /MAPINFO:EXPORTS
-_Same(_link, 'MapFileName', _file_name)
-_Same(_link, 'MergedIDLBaseFileName', _file_name) # /IDLOUT
-_Same(_link, 'MergeSections', _string) # /MERGE
-_Same(_link, 'MidlCommandFile', _file_name) # /MIDL
-_Same(_link, 'ModuleDefinitionFile', _file_name) # /DEF
-_Same(_link, 'OutputFile', _file_name) # /OUT
-_Same(_link, 'PerUserRedirection', _boolean)
-_Same(_link, 'Profile', _boolean) # /PROFILE
-_Same(_link, 'ProfileGuidedDatabase', _file_name) # /PGD
-_Same(_link, 'ProgramDatabaseFile', _file_name) # /PDB
-_Same(_link, 'RegisterOutput', _boolean)
-_Same(_link, 'SetChecksum', _boolean) # /RELEASE
-_Same(_link, 'StackCommitSize', _string)
-_Same(_link, 'StackReserveSize', _string) # /STACK
-_Same(_link, 'StripPrivateSymbols', _file_name) # /PDBSTRIPPED
-_Same(_link, 'SupportUnloadOfDelayLoadedDLL', _boolean) # /DELAY:UNLOAD
-_Same(_link, 'SuppressStartupBanner', _boolean) # /NOLOGO
-_Same(_link, 'SwapRunFromCD', _boolean) # /SWAPRUN:CD
-_Same(_link, 'TurnOffAssemblyGeneration', _boolean) # /NOASSEMBLY
-_Same(_link, 'TypeLibraryFile', _file_name) # /TLBOUT
-_Same(_link, 'TypeLibraryResourceID', _integer) # /TLBID
-_Same(_link, 'UACUIAccess', _boolean) # /uiAccess='true'
-_Same(_link, 'Version', _string) # /VERSION
-
-_Same(_link, 'EnableCOMDATFolding', _newly_boolean) # /OPT:ICF
-_Same(_link, 'FixedBaseAddress', _newly_boolean) # /FIXED
-_Same(_link, 'LargeAddressAware', _newly_boolean) # /LARGEADDRESSAWARE
-_Same(_link, 'OptimizeReferences', _newly_boolean) # /OPT:REF
-_Same(_link, 'RandomizedBaseAddress', _newly_boolean) # /DYNAMICBASE
-_Same(_link, 'TerminalServerAware', _newly_boolean) # /TSAWARE
-
-_subsystem_enumeration = _Enumeration(
- ['NotSet',
- 'Console', # /SUBSYSTEM:CONSOLE
- 'Windows', # /SUBSYSTEM:WINDOWS
- 'Native', # /SUBSYSTEM:NATIVE
- 'EFI Application', # /SUBSYSTEM:EFI_APPLICATION
- 'EFI Boot Service Driver', # /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER
- 'EFI ROM', # /SUBSYSTEM:EFI_ROM
- 'EFI Runtime', # /SUBSYSTEM:EFI_RUNTIME_DRIVER
- 'WindowsCE'], # /SUBSYSTEM:WINDOWSCE
- new=['POSIX']) # /SUBSYSTEM:POSIX
-
-_target_machine_enumeration = _Enumeration(
- ['NotSet',
- 'MachineX86', # /MACHINE:X86
- None,
- 'MachineARM', # /MACHINE:ARM
- 'MachineEBC', # /MACHINE:EBC
- 'MachineIA64', # /MACHINE:IA64
- None,
- 'MachineMIPS', # /MACHINE:MIPS
- 'MachineMIPS16', # /MACHINE:MIPS16
- 'MachineMIPSFPU', # /MACHINE:MIPSFPU
- 'MachineMIPSFPU16', # /MACHINE:MIPSFPU16
- None,
- None,
- None,
- 'MachineSH4', # /MACHINE:SH4
- None,
- 'MachineTHUMB', # /MACHINE:THUMB
- 'MachineX64']) # /MACHINE:X64
-
-_Same(_link, 'AssemblyDebug',
- _Enumeration(['',
- 'true', # /ASSEMBLYDEBUG
- 'false'])) # /ASSEMBLYDEBUG:DISABLE
-_Same(_link, 'CLRImageType',
- _Enumeration(['Default',
- 'ForceIJWImage', # /CLRIMAGETYPE:IJW
- 'ForcePureILImage', # /Switch="CLRIMAGETYPE:PURE
- 'ForceSafeILImage'])) # /Switch="CLRIMAGETYPE:SAFE
-_Same(_link, 'CLRThreadAttribute',
- _Enumeration(['DefaultThreadingAttribute', # /CLRTHREADATTRIBUTE:NONE
- 'MTAThreadingAttribute', # /CLRTHREADATTRIBUTE:MTA
- 'STAThreadingAttribute'])) # /CLRTHREADATTRIBUTE:STA
-_Same(_link, 'DataExecutionPrevention',
- _Enumeration(['',
- 'false', # /NXCOMPAT:NO
- 'true'])) # /NXCOMPAT
-_Same(_link, 'Driver',
- _Enumeration(['NotSet',
- 'Driver', # /Driver
- 'UpOnly', # /DRIVER:UPONLY
- 'WDM'])) # /DRIVER:WDM
-_Same(_link, 'LinkTimeCodeGeneration',
- _Enumeration(['Default',
- 'UseLinkTimeCodeGeneration', # /LTCG
- 'PGInstrument', # /LTCG:PGInstrument
- 'PGOptimization', # /LTCG:PGOptimize
- 'PGUpdate'])) # /LTCG:PGUpdate
-_Same(_link, 'ShowProgress',
- _Enumeration(['NotSet',
- 'LinkVerbose', # /VERBOSE
- 'LinkVerboseLib'], # /VERBOSE:Lib
- new=['LinkVerboseICF', # /VERBOSE:ICF
- 'LinkVerboseREF', # /VERBOSE:REF
- 'LinkVerboseSAFESEH', # /VERBOSE:SAFESEH
- 'LinkVerboseCLR'])) # /VERBOSE:CLR
-_Same(_link, 'SubSystem', _subsystem_enumeration)
-_Same(_link, 'TargetMachine', _target_machine_enumeration)
-_Same(_link, 'UACExecutionLevel',
- _Enumeration(['AsInvoker', # /level='asInvoker'
- 'HighestAvailable', # /level='highestAvailable'
- 'RequireAdministrator'])) # /level='requireAdministrator'
-_Same(_link, 'MinimumRequiredVersion', _string)
-_Same(_link, 'TreatLinkerWarningAsErrors', _boolean) # /WX
-
-
-# Options found in MSVS that have been renamed in MSBuild.
-_Renamed(_link, 'ErrorReporting', 'LinkErrorReporting',
- _Enumeration(['NoErrorReport', # /ERRORREPORT:NONE
- 'PromptImmediately', # /ERRORREPORT:PROMPT
- 'QueueForNextLogin'], # /ERRORREPORT:QUEUE
- new=['SendErrorReport'])) # /ERRORREPORT:SEND
-_Renamed(_link, 'IgnoreDefaultLibraryNames', 'IgnoreSpecificDefaultLibraries',
- _file_list) # /NODEFAULTLIB
-_Renamed(_link, 'ResourceOnlyDLL', 'NoEntryPoint', _boolean) # /NOENTRY
-_Renamed(_link, 'SwapRunFromNet', 'SwapRunFromNET', _boolean) # /SWAPRUN:NET
-
-_Moved(_link, 'GenerateManifest', '', _boolean)
-_Moved(_link, 'IgnoreImportLibrary', '', _boolean)
-_Moved(_link, 'LinkIncremental', '', _newly_boolean)
-_Moved(_link, 'LinkLibraryDependencies', 'ProjectReference', _boolean)
-_Moved(_link, 'UseLibraryDependencyInputs', 'ProjectReference', _boolean)
-
-# MSVS options not found in MSBuild.
-_MSVSOnly(_link, 'OptimizeForWindows98', _newly_boolean)
-_MSVSOnly(_link, 'UseUnicodeResponseFiles', _boolean)
-
-# MSBuild options not found in MSVS.
-_MSBuildOnly(_link, 'BuildingInIDE', _boolean)
-_MSBuildOnly(_link, 'ImageHasSafeExceptionHandlers', _boolean) # /SAFESEH
-_MSBuildOnly(_link, 'LinkDLL', _boolean) # /DLL Visible='false'
-_MSBuildOnly(_link, 'LinkStatus', _boolean) # /LTCG:STATUS
-_MSBuildOnly(_link, 'PreventDllBinding', _boolean) # /ALLOWBIND
-_MSBuildOnly(_link, 'SupportNobindOfDelayLoadedDLL', _boolean) # /DELAY:NOBIND
-_MSBuildOnly(_link, 'TrackerLogDirectory', _folder_name)
-_MSBuildOnly(_link, 'MSDOSStubFileName', _file_name) # /STUB Visible='false'
-_MSBuildOnly(_link, 'SectionAlignment', _integer) # /ALIGN
-_MSBuildOnly(_link, 'SpecifySectionAttributes', _string) # /SECTION
-_MSBuildOnly(_link, 'ForceFileOutput',
- _Enumeration([], new=['Enabled', # /FORCE
- # /FORCE:MULTIPLE
- 'MultiplyDefinedSymbolOnly',
- 'UndefinedSymbolOnly'])) # /FORCE:UNRESOLVED
-_MSBuildOnly(_link, 'CreateHotPatchableImage',
- _Enumeration([], new=['Enabled', # /FUNCTIONPADMIN
- 'X86Image', # /FUNCTIONPADMIN:5
- 'X64Image', # /FUNCTIONPADMIN:6
- 'ItaniumImage'])) # /FUNCTIONPADMIN:16
-_MSBuildOnly(_link, 'CLRSupportLastError',
- _Enumeration([], new=['Enabled', # /CLRSupportLastError
- 'Disabled', # /CLRSupportLastError:NO
- # /CLRSupportLastError:SYSTEMDLL
- 'SystemDlls']))
-
-
-# Directives for converting VCResourceCompilerTool to ResourceCompile.
-# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\rc.xml" for
-# the schema of the MSBuild ResourceCompile settings.
-
-_Same(_rc, 'AdditionalOptions', _string_list)
-_Same(_rc, 'AdditionalIncludeDirectories', _folder_list) # /I
-_Same(_rc, 'Culture', _Integer(msbuild_base=16))
-_Same(_rc, 'IgnoreStandardIncludePath', _boolean) # /X
-_Same(_rc, 'PreprocessorDefinitions', _string_list) # /D
-_Same(_rc, 'ResourceOutputFileName', _string) # /fo
-_Same(_rc, 'ShowProgress', _boolean) # /v
-# There is no UI in VisualStudio 2008 to set the following properties.
-# However they are found in CL and other tools. Include them here for
-# completeness, as they are very likely to have the same usage pattern.
-_Same(_rc, 'SuppressStartupBanner', _boolean) # /nologo
-_Same(_rc, 'UndefinePreprocessorDefinitions', _string_list) # /u
-
-# MSBuild options not found in MSVS.
-_MSBuildOnly(_rc, 'NullTerminateStrings', _boolean) # /n
-_MSBuildOnly(_rc, 'TrackerLogDirectory', _folder_name)
-
-
-# Directives for converting VCMIDLTool to Midl.
-# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\midl.xml" for
-# the schema of the MSBuild Midl settings.
-
-_Same(_midl, 'AdditionalIncludeDirectories', _folder_list) # /I
-_Same(_midl, 'AdditionalOptions', _string_list)
-_Same(_midl, 'CPreprocessOptions', _string) # /cpp_opt
-_Same(_midl, 'ErrorCheckAllocations', _boolean) # /error allocation
-_Same(_midl, 'ErrorCheckBounds', _boolean) # /error bounds_check
-_Same(_midl, 'ErrorCheckEnumRange', _boolean) # /error enum
-_Same(_midl, 'ErrorCheckRefPointers', _boolean) # /error ref
-_Same(_midl, 'ErrorCheckStubData', _boolean) # /error stub_data
-_Same(_midl, 'GenerateStublessProxies', _boolean) # /Oicf
-_Same(_midl, 'GenerateTypeLibrary', _boolean)
-_Same(_midl, 'HeaderFileName', _file_name) # /h
-_Same(_midl, 'IgnoreStandardIncludePath', _boolean) # /no_def_idir
-_Same(_midl, 'InterfaceIdentifierFileName', _file_name) # /iid
-_Same(_midl, 'MkTypLibCompatible', _boolean) # /mktyplib203
-_Same(_midl, 'OutputDirectory', _string) # /out
-_Same(_midl, 'PreprocessorDefinitions', _string_list) # /D
-_Same(_midl, 'ProxyFileName', _file_name) # /proxy
-_Same(_midl, 'RedirectOutputAndErrors', _file_name) # /o
-_Same(_midl, 'SuppressStartupBanner', _boolean) # /nologo
-_Same(_midl, 'TypeLibraryName', _file_name) # /tlb
-_Same(_midl, 'UndefinePreprocessorDefinitions', _string_list) # /U
-_Same(_midl, 'WarnAsError', _boolean) # /WX
-
-_Same(_midl, 'DefaultCharType',
- _Enumeration(['Unsigned', # /char unsigned
- 'Signed', # /char signed
- 'Ascii'])) # /char ascii7
-_Same(_midl, 'TargetEnvironment',
- _Enumeration(['NotSet',
- 'Win32', # /env win32
- 'Itanium', # /env ia64
- 'X64'])) # /env x64
-_Same(_midl, 'EnableErrorChecks',
- _Enumeration(['EnableCustom',
- 'None', # /error none
- 'All'])) # /error all
-_Same(_midl, 'StructMemberAlignment',
- _Enumeration(['NotSet',
- '1', # Zp1
- '2', # Zp2
- '4', # Zp4
- '8'])) # Zp8
-_Same(_midl, 'WarningLevel',
- _Enumeration(['0', # /W0
- '1', # /W1
- '2', # /W2
- '3', # /W3
- '4'])) # /W4
-
-_Renamed(_midl, 'DLLDataFileName', 'DllDataFileName', _file_name) # /dlldata
-_Renamed(_midl, 'ValidateParameters', 'ValidateAllParameters',
- _boolean) # /robust
-
-# MSBuild options not found in MSVS.
-_MSBuildOnly(_midl, 'ApplicationConfigurationMode', _boolean) # /app_config
-_MSBuildOnly(_midl, 'ClientStubFile', _file_name) # /cstub
-_MSBuildOnly(_midl, 'GenerateClientFiles',
- _Enumeration([], new=['Stub', # /client stub
- 'None'])) # /client none
-_MSBuildOnly(_midl, 'GenerateServerFiles',
- _Enumeration([], new=['Stub', # /client stub
- 'None'])) # /client none
-_MSBuildOnly(_midl, 'LocaleID', _integer) # /lcid DECIMAL
-_MSBuildOnly(_midl, 'ServerStubFile', _file_name) # /sstub
-_MSBuildOnly(_midl, 'SuppressCompilerWarnings', _boolean) # /no_warn
-_MSBuildOnly(_midl, 'TrackerLogDirectory', _folder_name)
-_MSBuildOnly(_midl, 'TypeLibFormat',
- _Enumeration([], new=['NewFormat', # /newtlb
- 'OldFormat'])) # /oldtlb
-
-
-# Directives for converting VCLibrarianTool to Lib.
-# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\lib.xml" for
-# the schema of the MSBuild Lib settings.
-
-_Same(_lib, 'AdditionalDependencies', _file_list)
-_Same(_lib, 'AdditionalLibraryDirectories', _folder_list) # /LIBPATH
-_Same(_lib, 'AdditionalOptions', _string_list)
-_Same(_lib, 'ExportNamedFunctions', _string_list) # /EXPORT
-_Same(_lib, 'ForceSymbolReferences', _string) # /INCLUDE
-_Same(_lib, 'IgnoreAllDefaultLibraries', _boolean) # /NODEFAULTLIB
-_Same(_lib, 'IgnoreSpecificDefaultLibraries', _file_list) # /NODEFAULTLIB
-_Same(_lib, 'ModuleDefinitionFile', _file_name) # /DEF
-_Same(_lib, 'OutputFile', _file_name) # /OUT
-_Same(_lib, 'SuppressStartupBanner', _boolean) # /NOLOGO
-_Same(_lib, 'UseUnicodeResponseFiles', _boolean)
-_Same(_lib, 'LinkTimeCodeGeneration', _boolean) # /LTCG
-_Same(_lib, 'TargetMachine', _target_machine_enumeration)
-
-# TODO(jeanluc) _link defines the same value that gets moved to
-# ProjectReference. We may want to validate that they are consistent.
-_Moved(_lib, 'LinkLibraryDependencies', 'ProjectReference', _boolean)
-
-_MSBuildOnly(_lib, 'DisplayLibrary', _string) # /LIST Visible='false'
-_MSBuildOnly(_lib, 'ErrorReporting',
- _Enumeration([], new=['PromptImmediately', # /ERRORREPORT:PROMPT
- 'QueueForNextLogin', # /ERRORREPORT:QUEUE
- 'SendErrorReport', # /ERRORREPORT:SEND
- 'NoErrorReport'])) # /ERRORREPORT:NONE
-_MSBuildOnly(_lib, 'MinimumRequiredVersion', _string)
-_MSBuildOnly(_lib, 'Name', _file_name) # /NAME
-_MSBuildOnly(_lib, 'RemoveObjects', _file_list) # /REMOVE
-_MSBuildOnly(_lib, 'SubSystem', _subsystem_enumeration)
-_MSBuildOnly(_lib, 'TrackerLogDirectory', _folder_name)
-_MSBuildOnly(_lib, 'TreatLibWarningAsErrors', _boolean) # /WX
-_MSBuildOnly(_lib, 'Verbose', _boolean)
-
-
-# Directives for converting VCManifestTool to Mt.
-# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\mt.xml" for
-# the schema of the MSBuild Lib settings.
-
-# Options that have the same name in MSVS and MSBuild
-_Same(_manifest, 'AdditionalManifestFiles', _file_list) # /manifest
-_Same(_manifest, 'AdditionalOptions', _string_list)
-_Same(_manifest, 'AssemblyIdentity', _string) # /identity:
-_Same(_manifest, 'ComponentFileName', _file_name) # /dll
-_Same(_manifest, 'GenerateCatalogFiles', _boolean) # /makecdfs
-_Same(_manifest, 'InputResourceManifests', _string) # /inputresource
-_Same(_manifest, 'OutputManifestFile', _file_name) # /out
-_Same(_manifest, 'RegistrarScriptFile', _file_name) # /rgs
-_Same(_manifest, 'ReplacementsFile', _file_name) # /replacements
-_Same(_manifest, 'SuppressStartupBanner', _boolean) # /nologo
-_Same(_manifest, 'TypeLibraryFile', _file_name) # /tlb:
-_Same(_manifest, 'UpdateFileHashes', _boolean) # /hashupdate
-_Same(_manifest, 'UpdateFileHashesSearchPath', _file_name)
-_Same(_manifest, 'VerboseOutput', _boolean) # /verbose
-
-# Options that have moved location.
-_MovedAndRenamed(_manifest, 'ManifestResourceFile',
- 'ManifestResourceCompile',
- 'ResourceOutputFileName',
- _file_name)
-_Moved(_manifest, 'EmbedManifest', '', _boolean)
-
-# MSVS options not found in MSBuild.
-_MSVSOnly(_manifest, 'DependencyInformationFile', _file_name)
-_MSVSOnly(_manifest, 'UseFAT32Workaround', _boolean)
-_MSVSOnly(_manifest, 'UseUnicodeResponseFiles', _boolean)
-
-# MSBuild options not found in MSVS.
-_MSBuildOnly(_manifest, 'EnableDPIAwareness', _boolean)
-_MSBuildOnly(_manifest, 'GenerateCategoryTags', _boolean) # /category
-_MSBuildOnly(_manifest, 'ManifestFromManagedAssembly',
- _file_name) # /managedassemblyname
-_MSBuildOnly(_manifest, 'OutputResourceManifests', _string) # /outputresource
-_MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency
-_MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name)
-
-
-# Directives for MASM.
-# See "$(VCTargetsPath)\BuildCustomizations\masm.xml" for the schema of the
-# MSBuild MASM settings.
-
-# Options that have the same name in MSVS and MSBuild.
-_Same(_masm, 'UseSafeExceptionHandlers', _boolean) # /safeseh
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py
deleted file mode 100755
index bf6ea6b..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py
+++ /dev/null
@@ -1,1483 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Unit tests for the MSVSSettings.py file."""
-
-import StringIO
-import unittest
-import gyp.MSVSSettings as MSVSSettings
-
-
-class TestSequenceFunctions(unittest.TestCase):
-
- def setUp(self):
- self.stderr = StringIO.StringIO()
-
- def _ExpectedWarnings(self, expected):
- """Compares recorded lines to expected warnings."""
- self.stderr.seek(0)
- actual = self.stderr.read().split('\n')
- actual = [line for line in actual if line]
- self.assertEqual(sorted(expected), sorted(actual))
-
- def testValidateMSVSSettings_tool_names(self):
- """Tests that only MSVS tool names are allowed."""
- MSVSSettings.ValidateMSVSSettings(
- {'VCCLCompilerTool': {},
- 'VCLinkerTool': {},
- 'VCMIDLTool': {},
- 'foo': {},
- 'VCResourceCompilerTool': {},
- 'VCLibrarianTool': {},
- 'VCManifestTool': {},
- 'ClCompile': {}},
- self.stderr)
- self._ExpectedWarnings([
- 'Warning: unrecognized tool foo',
- 'Warning: unrecognized tool ClCompile'])
-
- def testValidateMSVSSettings_settings(self):
- """Tests that for invalid MSVS settings."""
- MSVSSettings.ValidateMSVSSettings(
- {'VCCLCompilerTool': {
- 'AdditionalIncludeDirectories': 'folder1;folder2',
- 'AdditionalOptions': ['string1', 'string2'],
- 'AdditionalUsingDirectories': 'folder1;folder2',
- 'AssemblerListingLocation': 'a_file_name',
- 'AssemblerOutput': '0',
- 'BasicRuntimeChecks': '5',
- 'BrowseInformation': 'fdkslj',
- 'BrowseInformationFile': 'a_file_name',
- 'BufferSecurityCheck': 'true',
- 'CallingConvention': '-1',
- 'CompileAs': '1',
- 'DebugInformationFormat': '2',
- 'DefaultCharIsUnsigned': 'true',
- 'Detect64BitPortabilityProblems': 'true',
- 'DisableLanguageExtensions': 'true',
- 'DisableSpecificWarnings': 'string1;string2',
- 'EnableEnhancedInstructionSet': '1',
- 'EnableFiberSafeOptimizations': 'true',
- 'EnableFunctionLevelLinking': 'true',
- 'EnableIntrinsicFunctions': 'true',
- 'EnablePREfast': 'true',
- 'Enableprefast': 'bogus',
- 'ErrorReporting': '1',
- 'ExceptionHandling': '1',
- 'ExpandAttributedSource': 'true',
- 'FavorSizeOrSpeed': '1',
- 'FloatingPointExceptions': 'true',
- 'FloatingPointModel': '1',
- 'ForceConformanceInForLoopScope': 'true',
- 'ForcedIncludeFiles': 'file1;file2',
- 'ForcedUsingFiles': 'file1;file2',
- 'GeneratePreprocessedFile': '1',
- 'GenerateXMLDocumentationFiles': 'true',
- 'IgnoreStandardIncludePath': 'true',
- 'InlineFunctionExpansion': '1',
- 'KeepComments': 'true',
- 'MinimalRebuild': 'true',
- 'ObjectFile': 'a_file_name',
- 'OmitDefaultLibName': 'true',
- 'OmitFramePointers': 'true',
- 'OpenMP': 'true',
- 'Optimization': '1',
- 'PrecompiledHeaderFile': 'a_file_name',
- 'PrecompiledHeaderThrough': 'a_file_name',
- 'PreprocessorDefinitions': 'string1;string2',
- 'ProgramDataBaseFileName': 'a_file_name',
- 'RuntimeLibrary': '1',
- 'RuntimeTypeInfo': 'true',
- 'ShowIncludes': 'true',
- 'SmallerTypeCheck': 'true',
- 'StringPooling': 'true',
- 'StructMemberAlignment': '1',
- 'SuppressStartupBanner': 'true',
- 'TreatWChar_tAsBuiltInType': 'true',
- 'UndefineAllPreprocessorDefinitions': 'true',
- 'UndefinePreprocessorDefinitions': 'string1;string2',
- 'UseFullPaths': 'true',
- 'UsePrecompiledHeader': '1',
- 'UseUnicodeResponseFiles': 'true',
- 'WarnAsError': 'true',
- 'WarningLevel': '1',
- 'WholeProgramOptimization': 'true',
- 'XMLDocumentationFileName': 'a_file_name',
- 'ZZXYZ': 'bogus'},
- 'VCLinkerTool': {
- 'AdditionalDependencies': 'file1;file2',
- 'AdditionalDependencies_excluded': 'file3',
- 'AdditionalLibraryDirectories': 'folder1;folder2',
- 'AdditionalManifestDependencies': 'file1;file2',
- 'AdditionalOptions': 'a string1',
- 'AddModuleNamesToAssembly': 'file1;file2',
- 'AllowIsolation': 'true',
- 'AssemblyDebug': '2',
- 'AssemblyLinkResource': 'file1;file2',
- 'BaseAddress': 'a string1',
- 'CLRImageType': '2',
- 'CLRThreadAttribute': '2',
- 'CLRUnmanagedCodeCheck': 'true',
- 'DataExecutionPrevention': '2',
- 'DelayLoadDLLs': 'file1;file2',
- 'DelaySign': 'true',
- 'Driver': '2',
- 'EmbedManagedResourceFile': 'file1;file2',
- 'EnableCOMDATFolding': '2',
- 'EnableUAC': 'true',
- 'EntryPointSymbol': 'a string1',
- 'ErrorReporting': '2',
- 'FixedBaseAddress': '2',
- 'ForceSymbolReferences': 'file1;file2',
- 'FunctionOrder': 'a_file_name',
- 'GenerateDebugInformation': 'true',
- 'GenerateManifest': 'true',
- 'GenerateMapFile': 'true',
- 'HeapCommitSize': 'a string1',
- 'HeapReserveSize': 'a string1',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreDefaultLibraryNames': 'file1;file2',
- 'IgnoreEmbeddedIDL': 'true',
- 'IgnoreImportLibrary': 'true',
- 'ImportLibrary': 'a_file_name',
- 'KeyContainer': 'a_file_name',
- 'KeyFile': 'a_file_name',
- 'LargeAddressAware': '2',
- 'LinkIncremental': '2',
- 'LinkLibraryDependencies': 'true',
- 'LinkTimeCodeGeneration': '2',
- 'ManifestFile': 'a_file_name',
- 'MapExports': 'true',
- 'MapFileName': 'a_file_name',
- 'MergedIDLBaseFileName': 'a_file_name',
- 'MergeSections': 'a string1',
- 'MidlCommandFile': 'a_file_name',
- 'ModuleDefinitionFile': 'a_file_name',
- 'OptimizeForWindows98': '1',
- 'OptimizeReferences': '2',
- 'OutputFile': 'a_file_name',
- 'PerUserRedirection': 'true',
- 'Profile': 'true',
- 'ProfileGuidedDatabase': 'a_file_name',
- 'ProgramDatabaseFile': 'a_file_name',
- 'RandomizedBaseAddress': '2',
- 'RegisterOutput': 'true',
- 'ResourceOnlyDLL': 'true',
- 'SetChecksum': 'true',
- 'ShowProgress': '2',
- 'StackCommitSize': 'a string1',
- 'StackReserveSize': 'a string1',
- 'StripPrivateSymbols': 'a_file_name',
- 'SubSystem': '2',
- 'SupportUnloadOfDelayLoadedDLL': 'true',
- 'SuppressStartupBanner': 'true',
- 'SwapRunFromCD': 'true',
- 'SwapRunFromNet': 'true',
- 'TargetMachine': '2',
- 'TerminalServerAware': '2',
- 'TurnOffAssemblyGeneration': 'true',
- 'TypeLibraryFile': 'a_file_name',
- 'TypeLibraryResourceID': '33',
- 'UACExecutionLevel': '2',
- 'UACUIAccess': 'true',
- 'UseLibraryDependencyInputs': 'true',
- 'UseUnicodeResponseFiles': 'true',
- 'Version': 'a string1'},
- 'VCMIDLTool': {
- 'AdditionalIncludeDirectories': 'folder1;folder2',
- 'AdditionalOptions': 'a string1',
- 'CPreprocessOptions': 'a string1',
- 'DefaultCharType': '1',
- 'DLLDataFileName': 'a_file_name',
- 'EnableErrorChecks': '1',
- 'ErrorCheckAllocations': 'true',
- 'ErrorCheckBounds': 'true',
- 'ErrorCheckEnumRange': 'true',
- 'ErrorCheckRefPointers': 'true',
- 'ErrorCheckStubData': 'true',
- 'GenerateStublessProxies': 'true',
- 'GenerateTypeLibrary': 'true',
- 'HeaderFileName': 'a_file_name',
- 'IgnoreStandardIncludePath': 'true',
- 'InterfaceIdentifierFileName': 'a_file_name',
- 'MkTypLibCompatible': 'true',
- 'notgood': 'bogus',
- 'OutputDirectory': 'a string1',
- 'PreprocessorDefinitions': 'string1;string2',
- 'ProxyFileName': 'a_file_name',
- 'RedirectOutputAndErrors': 'a_file_name',
- 'StructMemberAlignment': '1',
- 'SuppressStartupBanner': 'true',
- 'TargetEnvironment': '1',
- 'TypeLibraryName': 'a_file_name',
- 'UndefinePreprocessorDefinitions': 'string1;string2',
- 'ValidateParameters': 'true',
- 'WarnAsError': 'true',
- 'WarningLevel': '1'},
- 'VCResourceCompilerTool': {
- 'AdditionalOptions': 'a string1',
- 'AdditionalIncludeDirectories': 'folder1;folder2',
- 'Culture': '1003',
- 'IgnoreStandardIncludePath': 'true',
- 'notgood2': 'bogus',
- 'PreprocessorDefinitions': 'string1;string2',
- 'ResourceOutputFileName': 'a string1',
- 'ShowProgress': 'true',
- 'SuppressStartupBanner': 'true',
- 'UndefinePreprocessorDefinitions': 'string1;string2'},
- 'VCLibrarianTool': {
- 'AdditionalDependencies': 'file1;file2',
- 'AdditionalLibraryDirectories': 'folder1;folder2',
- 'AdditionalOptions': 'a string1',
- 'ExportNamedFunctions': 'string1;string2',
- 'ForceSymbolReferences': 'a string1',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreSpecificDefaultLibraries': 'file1;file2',
- 'LinkLibraryDependencies': 'true',
- 'ModuleDefinitionFile': 'a_file_name',
- 'OutputFile': 'a_file_name',
- 'SuppressStartupBanner': 'true',
- 'UseUnicodeResponseFiles': 'true'},
- 'VCManifestTool': {
- 'AdditionalManifestFiles': 'file1;file2',
- 'AdditionalOptions': 'a string1',
- 'AssemblyIdentity': 'a string1',
- 'ComponentFileName': 'a_file_name',
- 'DependencyInformationFile': 'a_file_name',
- 'GenerateCatalogFiles': 'true',
- 'InputResourceManifests': 'a string1',
- 'ManifestResourceFile': 'a_file_name',
- 'OutputManifestFile': 'a_file_name',
- 'RegistrarScriptFile': 'a_file_name',
- 'ReplacementsFile': 'a_file_name',
- 'SuppressStartupBanner': 'true',
- 'TypeLibraryFile': 'a_file_name',
- 'UpdateFileHashes': 'truel',
- 'UpdateFileHashesSearchPath': 'a_file_name',
- 'UseFAT32Workaround': 'true',
- 'UseUnicodeResponseFiles': 'true',
- 'VerboseOutput': 'true'}},
- self.stderr)
- self._ExpectedWarnings([
- 'Warning: for VCCLCompilerTool/BasicRuntimeChecks, '
- 'index value (5) not in expected range [0, 4)',
- 'Warning: for VCCLCompilerTool/BrowseInformation, '
- "invalid literal for int() with base 10: 'fdkslj'",
- 'Warning: for VCCLCompilerTool/CallingConvention, '
- 'index value (-1) not in expected range [0, 4)',
- 'Warning: for VCCLCompilerTool/DebugInformationFormat, '
- 'converted value for 2 not specified.',
- 'Warning: unrecognized setting VCCLCompilerTool/Enableprefast',
- 'Warning: unrecognized setting VCCLCompilerTool/ZZXYZ',
- 'Warning: for VCLinkerTool/TargetMachine, '
- 'converted value for 2 not specified.',
- 'Warning: unrecognized setting VCMIDLTool/notgood',
- 'Warning: unrecognized setting VCResourceCompilerTool/notgood2',
- 'Warning: for VCManifestTool/UpdateFileHashes, '
- "expected bool; got 'truel'"
- ''])
-
- def testValidateMSBuildSettings_settings(self):
- """Tests that for invalid MSBuild settings."""
- MSVSSettings.ValidateMSBuildSettings(
- {'ClCompile': {
- 'AdditionalIncludeDirectories': 'folder1;folder2',
- 'AdditionalOptions': ['string1', 'string2'],
- 'AdditionalUsingDirectories': 'folder1;folder2',
- 'AssemblerListingLocation': 'a_file_name',
- 'AssemblerOutput': 'NoListing',
- 'BasicRuntimeChecks': 'StackFrameRuntimeCheck',
- 'BrowseInformation': 'false',
- 'BrowseInformationFile': 'a_file_name',
- 'BufferSecurityCheck': 'true',
- 'BuildingInIDE': 'true',
- 'CallingConvention': 'Cdecl',
- 'CompileAs': 'CompileAsC',
- 'CompileAsManaged': 'true',
- 'CreateHotpatchableImage': 'true',
- 'DebugInformationFormat': 'ProgramDatabase',
- 'DisableLanguageExtensions': 'true',
- 'DisableSpecificWarnings': 'string1;string2',
- 'EnableEnhancedInstructionSet': 'StreamingSIMDExtensions',
- 'EnableFiberSafeOptimizations': 'true',
- 'EnablePREfast': 'true',
- 'Enableprefast': 'bogus',
- 'ErrorReporting': 'Prompt',
- 'ExceptionHandling': 'SyncCThrow',
- 'ExpandAttributedSource': 'true',
- 'FavorSizeOrSpeed': 'Neither',
- 'FloatingPointExceptions': 'true',
- 'FloatingPointModel': 'Precise',
- 'ForceConformanceInForLoopScope': 'true',
- 'ForcedIncludeFiles': 'file1;file2',
- 'ForcedUsingFiles': 'file1;file2',
- 'FunctionLevelLinking': 'false',
- 'GenerateXMLDocumentationFiles': 'true',
- 'IgnoreStandardIncludePath': 'true',
- 'InlineFunctionExpansion': 'OnlyExplicitInline',
- 'IntrinsicFunctions': 'false',
- 'MinimalRebuild': 'true',
- 'MultiProcessorCompilation': 'true',
- 'ObjectFileName': 'a_file_name',
- 'OmitDefaultLibName': 'true',
- 'OmitFramePointers': 'true',
- 'OpenMPSupport': 'true',
- 'Optimization': 'Disabled',
- 'PrecompiledHeader': 'NotUsing',
- 'PrecompiledHeaderFile': 'a_file_name',
- 'PrecompiledHeaderOutputFile': 'a_file_name',
- 'PreprocessKeepComments': 'true',
- 'PreprocessorDefinitions': 'string1;string2',
- 'PreprocessOutputPath': 'a string1',
- 'PreprocessSuppressLineNumbers': 'false',
- 'PreprocessToFile': 'false',
- 'ProcessorNumber': '33',
- 'ProgramDataBaseFileName': 'a_file_name',
- 'RuntimeLibrary': 'MultiThreaded',
- 'RuntimeTypeInfo': 'true',
- 'ShowIncludes': 'true',
- 'SmallerTypeCheck': 'true',
- 'StringPooling': 'true',
- 'StructMemberAlignment': '1Byte',
- 'SuppressStartupBanner': 'true',
- 'TrackerLogDirectory': 'a_folder',
- 'TreatSpecificWarningsAsErrors': 'string1;string2',
- 'TreatWarningAsError': 'true',
- 'TreatWChar_tAsBuiltInType': 'true',
- 'UndefineAllPreprocessorDefinitions': 'true',
- 'UndefinePreprocessorDefinitions': 'string1;string2',
- 'UseFullPaths': 'true',
- 'UseUnicodeForAssemblerListing': 'true',
- 'WarningLevel': 'TurnOffAllWarnings',
- 'WholeProgramOptimization': 'true',
- 'XMLDocumentationFileName': 'a_file_name',
- 'ZZXYZ': 'bogus'},
- 'Link': {
- 'AdditionalDependencies': 'file1;file2',
- 'AdditionalLibraryDirectories': 'folder1;folder2',
- 'AdditionalManifestDependencies': 'file1;file2',
- 'AdditionalOptions': 'a string1',
- 'AddModuleNamesToAssembly': 'file1;file2',
- 'AllowIsolation': 'true',
- 'AssemblyDebug': '',
- 'AssemblyLinkResource': 'file1;file2',
- 'BaseAddress': 'a string1',
- 'BuildingInIDE': 'true',
- 'CLRImageType': 'ForceIJWImage',
- 'CLRSupportLastError': 'Enabled',
- 'CLRThreadAttribute': 'MTAThreadingAttribute',
- 'CLRUnmanagedCodeCheck': 'true',
- 'CreateHotPatchableImage': 'X86Image',
- 'DataExecutionPrevention': 'false',
- 'DelayLoadDLLs': 'file1;file2',
- 'DelaySign': 'true',
- 'Driver': 'NotSet',
- 'EmbedManagedResourceFile': 'file1;file2',
- 'EnableCOMDATFolding': 'false',
- 'EnableUAC': 'true',
- 'EntryPointSymbol': 'a string1',
- 'FixedBaseAddress': 'false',
- 'ForceFileOutput': 'Enabled',
- 'ForceSymbolReferences': 'file1;file2',
- 'FunctionOrder': 'a_file_name',
- 'GenerateDebugInformation': 'true',
- 'GenerateMapFile': 'true',
- 'HeapCommitSize': 'a string1',
- 'HeapReserveSize': 'a string1',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreEmbeddedIDL': 'true',
- 'IgnoreSpecificDefaultLibraries': 'a_file_list',
- 'ImageHasSafeExceptionHandlers': 'true',
- 'ImportLibrary': 'a_file_name',
- 'KeyContainer': 'a_file_name',
- 'KeyFile': 'a_file_name',
- 'LargeAddressAware': 'false',
- 'LinkDLL': 'true',
- 'LinkErrorReporting': 'SendErrorReport',
- 'LinkStatus': 'true',
- 'LinkTimeCodeGeneration': 'UseLinkTimeCodeGeneration',
- 'ManifestFile': 'a_file_name',
- 'MapExports': 'true',
- 'MapFileName': 'a_file_name',
- 'MergedIDLBaseFileName': 'a_file_name',
- 'MergeSections': 'a string1',
- 'MidlCommandFile': 'a_file_name',
- 'MinimumRequiredVersion': 'a string1',
- 'ModuleDefinitionFile': 'a_file_name',
- 'MSDOSStubFileName': 'a_file_name',
- 'NoEntryPoint': 'true',
- 'OptimizeReferences': 'false',
- 'OutputFile': 'a_file_name',
- 'PerUserRedirection': 'true',
- 'PreventDllBinding': 'true',
- 'Profile': 'true',
- 'ProfileGuidedDatabase': 'a_file_name',
- 'ProgramDatabaseFile': 'a_file_name',
- 'RandomizedBaseAddress': 'false',
- 'RegisterOutput': 'true',
- 'SectionAlignment': '33',
- 'SetChecksum': 'true',
- 'ShowProgress': 'LinkVerboseREF',
- 'SpecifySectionAttributes': 'a string1',
- 'StackCommitSize': 'a string1',
- 'StackReserveSize': 'a string1',
- 'StripPrivateSymbols': 'a_file_name',
- 'SubSystem': 'Console',
- 'SupportNobindOfDelayLoadedDLL': 'true',
- 'SupportUnloadOfDelayLoadedDLL': 'true',
- 'SuppressStartupBanner': 'true',
- 'SwapRunFromCD': 'true',
- 'SwapRunFromNET': 'true',
- 'TargetMachine': 'MachineX86',
- 'TerminalServerAware': 'false',
- 'TrackerLogDirectory': 'a_folder',
- 'TreatLinkerWarningAsErrors': 'true',
- 'TurnOffAssemblyGeneration': 'true',
- 'TypeLibraryFile': 'a_file_name',
- 'TypeLibraryResourceID': '33',
- 'UACExecutionLevel': 'AsInvoker',
- 'UACUIAccess': 'true',
- 'Version': 'a string1'},
- 'ResourceCompile': {
- 'AdditionalIncludeDirectories': 'folder1;folder2',
- 'AdditionalOptions': 'a string1',
- 'Culture': '0x236',
- 'IgnoreStandardIncludePath': 'true',
- 'NullTerminateStrings': 'true',
- 'PreprocessorDefinitions': 'string1;string2',
- 'ResourceOutputFileName': 'a string1',
- 'ShowProgress': 'true',
- 'SuppressStartupBanner': 'true',
- 'TrackerLogDirectory': 'a_folder',
- 'UndefinePreprocessorDefinitions': 'string1;string2'},
- 'Midl': {
- 'AdditionalIncludeDirectories': 'folder1;folder2',
- 'AdditionalOptions': 'a string1',
- 'ApplicationConfigurationMode': 'true',
- 'ClientStubFile': 'a_file_name',
- 'CPreprocessOptions': 'a string1',
- 'DefaultCharType': 'Signed',
- 'DllDataFileName': 'a_file_name',
- 'EnableErrorChecks': 'EnableCustom',
- 'ErrorCheckAllocations': 'true',
- 'ErrorCheckBounds': 'true',
- 'ErrorCheckEnumRange': 'true',
- 'ErrorCheckRefPointers': 'true',
- 'ErrorCheckStubData': 'true',
- 'GenerateClientFiles': 'Stub',
- 'GenerateServerFiles': 'None',
- 'GenerateStublessProxies': 'true',
- 'GenerateTypeLibrary': 'true',
- 'HeaderFileName': 'a_file_name',
- 'IgnoreStandardIncludePath': 'true',
- 'InterfaceIdentifierFileName': 'a_file_name',
- 'LocaleID': '33',
- 'MkTypLibCompatible': 'true',
- 'OutputDirectory': 'a string1',
- 'PreprocessorDefinitions': 'string1;string2',
- 'ProxyFileName': 'a_file_name',
- 'RedirectOutputAndErrors': 'a_file_name',
- 'ServerStubFile': 'a_file_name',
- 'StructMemberAlignment': 'NotSet',
- 'SuppressCompilerWarnings': 'true',
- 'SuppressStartupBanner': 'true',
- 'TargetEnvironment': 'Itanium',
- 'TrackerLogDirectory': 'a_folder',
- 'TypeLibFormat': 'NewFormat',
- 'TypeLibraryName': 'a_file_name',
- 'UndefinePreprocessorDefinitions': 'string1;string2',
- 'ValidateAllParameters': 'true',
- 'WarnAsError': 'true',
- 'WarningLevel': '1'},
- 'Lib': {
- 'AdditionalDependencies': 'file1;file2',
- 'AdditionalLibraryDirectories': 'folder1;folder2',
- 'AdditionalOptions': 'a string1',
- 'DisplayLibrary': 'a string1',
- 'ErrorReporting': 'PromptImmediately',
- 'ExportNamedFunctions': 'string1;string2',
- 'ForceSymbolReferences': 'a string1',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreSpecificDefaultLibraries': 'file1;file2',
- 'LinkTimeCodeGeneration': 'true',
- 'MinimumRequiredVersion': 'a string1',
- 'ModuleDefinitionFile': 'a_file_name',
- 'Name': 'a_file_name',
- 'OutputFile': 'a_file_name',
- 'RemoveObjects': 'file1;file2',
- 'SubSystem': 'Console',
- 'SuppressStartupBanner': 'true',
- 'TargetMachine': 'MachineX86i',
- 'TrackerLogDirectory': 'a_folder',
- 'TreatLibWarningAsErrors': 'true',
- 'UseUnicodeResponseFiles': 'true',
- 'Verbose': 'true'},
- 'Manifest': {
- 'AdditionalManifestFiles': 'file1;file2',
- 'AdditionalOptions': 'a string1',
- 'AssemblyIdentity': 'a string1',
- 'ComponentFileName': 'a_file_name',
- 'EnableDPIAwareness': 'fal',
- 'GenerateCatalogFiles': 'truel',
- 'GenerateCategoryTags': 'true',
- 'InputResourceManifests': 'a string1',
- 'ManifestFromManagedAssembly': 'a_file_name',
- 'notgood3': 'bogus',
- 'OutputManifestFile': 'a_file_name',
- 'OutputResourceManifests': 'a string1',
- 'RegistrarScriptFile': 'a_file_name',
- 'ReplacementsFile': 'a_file_name',
- 'SuppressDependencyElement': 'true',
- 'SuppressStartupBanner': 'true',
- 'TrackerLogDirectory': 'a_folder',
- 'TypeLibraryFile': 'a_file_name',
- 'UpdateFileHashes': 'true',
- 'UpdateFileHashesSearchPath': 'a_file_name',
- 'VerboseOutput': 'true'},
- 'ProjectReference': {
- 'LinkLibraryDependencies': 'true',
- 'UseLibraryDependencyInputs': 'true'},
- 'ManifestResourceCompile': {
- 'ResourceOutputFileName': 'a_file_name'},
- '': {
- 'EmbedManifest': 'true',
- 'GenerateManifest': 'true',
- 'IgnoreImportLibrary': 'true',
- 'LinkIncremental': 'false'}},
- self.stderr)
- self._ExpectedWarnings([
- 'Warning: unrecognized setting ClCompile/Enableprefast',
- 'Warning: unrecognized setting ClCompile/ZZXYZ',
- 'Warning: unrecognized setting Manifest/notgood3',
- 'Warning: for Manifest/GenerateCatalogFiles, '
- "expected bool; got 'truel'",
- 'Warning: for Lib/TargetMachine, unrecognized enumerated value '
- 'MachineX86i',
- "Warning: for Manifest/EnableDPIAwareness, expected bool; got 'fal'"])
-
- def testConvertToMSBuildSettings_empty(self):
- """Tests an empty conversion."""
- msvs_settings = {}
- expected_msbuild_settings = {}
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
- msvs_settings,
- self.stderr)
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
- self._ExpectedWarnings([])
-
- def testConvertToMSBuildSettings_minimal(self):
- """Tests a minimal conversion."""
- msvs_settings = {
- 'VCCLCompilerTool': {
- 'AdditionalIncludeDirectories': 'dir1',
- 'AdditionalOptions': '/foo',
- 'BasicRuntimeChecks': '0',
- },
- 'VCLinkerTool': {
- 'LinkTimeCodeGeneration': '1',
- 'ErrorReporting': '1',
- 'DataExecutionPrevention': '2',
- },
- }
- expected_msbuild_settings = {
- 'ClCompile': {
- 'AdditionalIncludeDirectories': 'dir1',
- 'AdditionalOptions': '/foo',
- 'BasicRuntimeChecks': 'Default',
- },
- 'Link': {
- 'LinkTimeCodeGeneration': 'UseLinkTimeCodeGeneration',
- 'LinkErrorReporting': 'PromptImmediately',
- 'DataExecutionPrevention': 'true',
- },
- }
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
- msvs_settings,
- self.stderr)
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
- self._ExpectedWarnings([])
-
- def testConvertToMSBuildSettings_warnings(self):
- """Tests conversion that generates warnings."""
- msvs_settings = {
- 'VCCLCompilerTool': {
- 'AdditionalIncludeDirectories': '1',
- 'AdditionalOptions': '2',
- # These are incorrect values:
- 'BasicRuntimeChecks': '12',
- 'BrowseInformation': '21',
- 'UsePrecompiledHeader': '13',
- 'GeneratePreprocessedFile': '14'},
- 'VCLinkerTool': {
- # These are incorrect values:
- 'Driver': '10',
- 'LinkTimeCodeGeneration': '31',
- 'ErrorReporting': '21',
- 'FixedBaseAddress': '6'},
- 'VCResourceCompilerTool': {
- # Custom
- 'Culture': '1003'}}
- expected_msbuild_settings = {
- 'ClCompile': {
- 'AdditionalIncludeDirectories': '1',
- 'AdditionalOptions': '2'},
- 'Link': {},
- 'ResourceCompile': {
- # Custom
- 'Culture': '0x03eb'}}
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
- msvs_settings,
- self.stderr)
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
- self._ExpectedWarnings([
- 'Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to '
- 'MSBuild, index value (12) not in expected range [0, 4)',
- 'Warning: while converting VCCLCompilerTool/BrowseInformation to '
- 'MSBuild, index value (21) not in expected range [0, 3)',
- 'Warning: while converting VCCLCompilerTool/UsePrecompiledHeader to '
- 'MSBuild, index value (13) not in expected range [0, 3)',
- 'Warning: while converting VCCLCompilerTool/GeneratePreprocessedFile to '
- 'MSBuild, value must be one of [0, 1, 2]; got 14',
-
- 'Warning: while converting VCLinkerTool/Driver to '
- 'MSBuild, index value (10) not in expected range [0, 4)',
- 'Warning: while converting VCLinkerTool/LinkTimeCodeGeneration to '
- 'MSBuild, index value (31) not in expected range [0, 5)',
- 'Warning: while converting VCLinkerTool/ErrorReporting to '
- 'MSBuild, index value (21) not in expected range [0, 3)',
- 'Warning: while converting VCLinkerTool/FixedBaseAddress to '
- 'MSBuild, index value (6) not in expected range [0, 3)',
- ])
-
- def testConvertToMSBuildSettings_full_synthetic(self):
- """Tests conversion of all the MSBuild settings."""
- msvs_settings = {
- 'VCCLCompilerTool': {
- 'AdditionalIncludeDirectories': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string',
- 'AdditionalUsingDirectories': 'folder1;folder2;folder3',
- 'AssemblerListingLocation': 'a_file_name',
- 'AssemblerOutput': '0',
- 'BasicRuntimeChecks': '1',
- 'BrowseInformation': '2',
- 'BrowseInformationFile': 'a_file_name',
- 'BufferSecurityCheck': 'true',
- 'CallingConvention': '0',
- 'CompileAs': '1',
- 'DebugInformationFormat': '4',
- 'DefaultCharIsUnsigned': 'true',
- 'Detect64BitPortabilityProblems': 'true',
- 'DisableLanguageExtensions': 'true',
- 'DisableSpecificWarnings': 'd1;d2;d3',
- 'EnableEnhancedInstructionSet': '0',
- 'EnableFiberSafeOptimizations': 'true',
- 'EnableFunctionLevelLinking': 'true',
- 'EnableIntrinsicFunctions': 'true',
- 'EnablePREfast': 'true',
- 'ErrorReporting': '1',
- 'ExceptionHandling': '2',
- 'ExpandAttributedSource': 'true',
- 'FavorSizeOrSpeed': '0',
- 'FloatingPointExceptions': 'true',
- 'FloatingPointModel': '1',
- 'ForceConformanceInForLoopScope': 'true',
- 'ForcedIncludeFiles': 'file1;file2;file3',
- 'ForcedUsingFiles': 'file1;file2;file3',
- 'GeneratePreprocessedFile': '1',
- 'GenerateXMLDocumentationFiles': 'true',
- 'IgnoreStandardIncludePath': 'true',
- 'InlineFunctionExpansion': '2',
- 'KeepComments': 'true',
- 'MinimalRebuild': 'true',
- 'ObjectFile': 'a_file_name',
- 'OmitDefaultLibName': 'true',
- 'OmitFramePointers': 'true',
- 'OpenMP': 'true',
- 'Optimization': '3',
- 'PrecompiledHeaderFile': 'a_file_name',
- 'PrecompiledHeaderThrough': 'a_file_name',
- 'PreprocessorDefinitions': 'd1;d2;d3',
- 'ProgramDataBaseFileName': 'a_file_name',
- 'RuntimeLibrary': '0',
- 'RuntimeTypeInfo': 'true',
- 'ShowIncludes': 'true',
- 'SmallerTypeCheck': 'true',
- 'StringPooling': 'true',
- 'StructMemberAlignment': '1',
- 'SuppressStartupBanner': 'true',
- 'TreatWChar_tAsBuiltInType': 'true',
- 'UndefineAllPreprocessorDefinitions': 'true',
- 'UndefinePreprocessorDefinitions': 'd1;d2;d3',
- 'UseFullPaths': 'true',
- 'UsePrecompiledHeader': '1',
- 'UseUnicodeResponseFiles': 'true',
- 'WarnAsError': 'true',
- 'WarningLevel': '2',
- 'WholeProgramOptimization': 'true',
- 'XMLDocumentationFileName': 'a_file_name'},
- 'VCLinkerTool': {
- 'AdditionalDependencies': 'file1;file2;file3',
- 'AdditionalLibraryDirectories': 'folder1;folder2;folder3',
- 'AdditionalLibraryDirectories_excluded': 'folder1;folder2;folder3',
- 'AdditionalManifestDependencies': 'file1;file2;file3',
- 'AdditionalOptions': 'a_string',
- 'AddModuleNamesToAssembly': 'file1;file2;file3',
- 'AllowIsolation': 'true',
- 'AssemblyDebug': '0',
- 'AssemblyLinkResource': 'file1;file2;file3',
- 'BaseAddress': 'a_string',
- 'CLRImageType': '1',
- 'CLRThreadAttribute': '2',
- 'CLRUnmanagedCodeCheck': 'true',
- 'DataExecutionPrevention': '0',
- 'DelayLoadDLLs': 'file1;file2;file3',
- 'DelaySign': 'true',
- 'Driver': '1',
- 'EmbedManagedResourceFile': 'file1;file2;file3',
- 'EnableCOMDATFolding': '0',
- 'EnableUAC': 'true',
- 'EntryPointSymbol': 'a_string',
- 'ErrorReporting': '0',
- 'FixedBaseAddress': '1',
- 'ForceSymbolReferences': 'file1;file2;file3',
- 'FunctionOrder': 'a_file_name',
- 'GenerateDebugInformation': 'true',
- 'GenerateManifest': 'true',
- 'GenerateMapFile': 'true',
- 'HeapCommitSize': 'a_string',
- 'HeapReserveSize': 'a_string',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreDefaultLibraryNames': 'file1;file2;file3',
- 'IgnoreEmbeddedIDL': 'true',
- 'IgnoreImportLibrary': 'true',
- 'ImportLibrary': 'a_file_name',
- 'KeyContainer': 'a_file_name',
- 'KeyFile': 'a_file_name',
- 'LargeAddressAware': '2',
- 'LinkIncremental': '1',
- 'LinkLibraryDependencies': 'true',
- 'LinkTimeCodeGeneration': '2',
- 'ManifestFile': 'a_file_name',
- 'MapExports': 'true',
- 'MapFileName': 'a_file_name',
- 'MergedIDLBaseFileName': 'a_file_name',
- 'MergeSections': 'a_string',
- 'MidlCommandFile': 'a_file_name',
- 'ModuleDefinitionFile': 'a_file_name',
- 'OptimizeForWindows98': '1',
- 'OptimizeReferences': '0',
- 'OutputFile': 'a_file_name',
- 'PerUserRedirection': 'true',
- 'Profile': 'true',
- 'ProfileGuidedDatabase': 'a_file_name',
- 'ProgramDatabaseFile': 'a_file_name',
- 'RandomizedBaseAddress': '1',
- 'RegisterOutput': 'true',
- 'ResourceOnlyDLL': 'true',
- 'SetChecksum': 'true',
- 'ShowProgress': '0',
- 'StackCommitSize': 'a_string',
- 'StackReserveSize': 'a_string',
- 'StripPrivateSymbols': 'a_file_name',
- 'SubSystem': '2',
- 'SupportUnloadOfDelayLoadedDLL': 'true',
- 'SuppressStartupBanner': 'true',
- 'SwapRunFromCD': 'true',
- 'SwapRunFromNet': 'true',
- 'TargetMachine': '3',
- 'TerminalServerAware': '2',
- 'TurnOffAssemblyGeneration': 'true',
- 'TypeLibraryFile': 'a_file_name',
- 'TypeLibraryResourceID': '33',
- 'UACExecutionLevel': '1',
- 'UACUIAccess': 'true',
- 'UseLibraryDependencyInputs': 'false',
- 'UseUnicodeResponseFiles': 'true',
- 'Version': 'a_string'},
- 'VCResourceCompilerTool': {
- 'AdditionalIncludeDirectories': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string',
- 'Culture': '1003',
- 'IgnoreStandardIncludePath': 'true',
- 'PreprocessorDefinitions': 'd1;d2;d3',
- 'ResourceOutputFileName': 'a_string',
- 'ShowProgress': 'true',
- 'SuppressStartupBanner': 'true',
- 'UndefinePreprocessorDefinitions': 'd1;d2;d3'},
- 'VCMIDLTool': {
- 'AdditionalIncludeDirectories': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string',
- 'CPreprocessOptions': 'a_string',
- 'DefaultCharType': '0',
- 'DLLDataFileName': 'a_file_name',
- 'EnableErrorChecks': '2',
- 'ErrorCheckAllocations': 'true',
- 'ErrorCheckBounds': 'true',
- 'ErrorCheckEnumRange': 'true',
- 'ErrorCheckRefPointers': 'true',
- 'ErrorCheckStubData': 'true',
- 'GenerateStublessProxies': 'true',
- 'GenerateTypeLibrary': 'true',
- 'HeaderFileName': 'a_file_name',
- 'IgnoreStandardIncludePath': 'true',
- 'InterfaceIdentifierFileName': 'a_file_name',
- 'MkTypLibCompatible': 'true',
- 'OutputDirectory': 'a_string',
- 'PreprocessorDefinitions': 'd1;d2;d3',
- 'ProxyFileName': 'a_file_name',
- 'RedirectOutputAndErrors': 'a_file_name',
- 'StructMemberAlignment': '3',
- 'SuppressStartupBanner': 'true',
- 'TargetEnvironment': '1',
- 'TypeLibraryName': 'a_file_name',
- 'UndefinePreprocessorDefinitions': 'd1;d2;d3',
- 'ValidateParameters': 'true',
- 'WarnAsError': 'true',
- 'WarningLevel': '4'},
- 'VCLibrarianTool': {
- 'AdditionalDependencies': 'file1;file2;file3',
- 'AdditionalLibraryDirectories': 'folder1;folder2;folder3',
- 'AdditionalLibraryDirectories_excluded': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string',
- 'ExportNamedFunctions': 'd1;d2;d3',
- 'ForceSymbolReferences': 'a_string',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreSpecificDefaultLibraries': 'file1;file2;file3',
- 'LinkLibraryDependencies': 'true',
- 'ModuleDefinitionFile': 'a_file_name',
- 'OutputFile': 'a_file_name',
- 'SuppressStartupBanner': 'true',
- 'UseUnicodeResponseFiles': 'true'},
- 'VCManifestTool': {
- 'AdditionalManifestFiles': 'file1;file2;file3',
- 'AdditionalOptions': 'a_string',
- 'AssemblyIdentity': 'a_string',
- 'ComponentFileName': 'a_file_name',
- 'DependencyInformationFile': 'a_file_name',
- 'EmbedManifest': 'true',
- 'GenerateCatalogFiles': 'true',
- 'InputResourceManifests': 'a_string',
- 'ManifestResourceFile': 'my_name',
- 'OutputManifestFile': 'a_file_name',
- 'RegistrarScriptFile': 'a_file_name',
- 'ReplacementsFile': 'a_file_name',
- 'SuppressStartupBanner': 'true',
- 'TypeLibraryFile': 'a_file_name',
- 'UpdateFileHashes': 'true',
- 'UpdateFileHashesSearchPath': 'a_file_name',
- 'UseFAT32Workaround': 'true',
- 'UseUnicodeResponseFiles': 'true',
- 'VerboseOutput': 'true'}}
- expected_msbuild_settings = {
- 'ClCompile': {
- 'AdditionalIncludeDirectories': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string /J',
- 'AdditionalUsingDirectories': 'folder1;folder2;folder3',
- 'AssemblerListingLocation': 'a_file_name',
- 'AssemblerOutput': 'NoListing',
- 'BasicRuntimeChecks': 'StackFrameRuntimeCheck',
- 'BrowseInformation': 'true',
- 'BrowseInformationFile': 'a_file_name',
- 'BufferSecurityCheck': 'true',
- 'CallingConvention': 'Cdecl',
- 'CompileAs': 'CompileAsC',
- 'DebugInformationFormat': 'EditAndContinue',
- 'DisableLanguageExtensions': 'true',
- 'DisableSpecificWarnings': 'd1;d2;d3',
- 'EnableEnhancedInstructionSet': 'NotSet',
- 'EnableFiberSafeOptimizations': 'true',
- 'EnablePREfast': 'true',
- 'ErrorReporting': 'Prompt',
- 'ExceptionHandling': 'Async',
- 'ExpandAttributedSource': 'true',
- 'FavorSizeOrSpeed': 'Neither',
- 'FloatingPointExceptions': 'true',
- 'FloatingPointModel': 'Strict',
- 'ForceConformanceInForLoopScope': 'true',
- 'ForcedIncludeFiles': 'file1;file2;file3',
- 'ForcedUsingFiles': 'file1;file2;file3',
- 'FunctionLevelLinking': 'true',
- 'GenerateXMLDocumentationFiles': 'true',
- 'IgnoreStandardIncludePath': 'true',
- 'InlineFunctionExpansion': 'AnySuitable',
- 'IntrinsicFunctions': 'true',
- 'MinimalRebuild': 'true',
- 'ObjectFileName': 'a_file_name',
- 'OmitDefaultLibName': 'true',
- 'OmitFramePointers': 'true',
- 'OpenMPSupport': 'true',
- 'Optimization': 'Full',
- 'PrecompiledHeader': 'Create',
- 'PrecompiledHeaderFile': 'a_file_name',
- 'PrecompiledHeaderOutputFile': 'a_file_name',
- 'PreprocessKeepComments': 'true',
- 'PreprocessorDefinitions': 'd1;d2;d3',
- 'PreprocessSuppressLineNumbers': 'false',
- 'PreprocessToFile': 'true',
- 'ProgramDataBaseFileName': 'a_file_name',
- 'RuntimeLibrary': 'MultiThreaded',
- 'RuntimeTypeInfo': 'true',
- 'ShowIncludes': 'true',
- 'SmallerTypeCheck': 'true',
- 'StringPooling': 'true',
- 'StructMemberAlignment': '1Byte',
- 'SuppressStartupBanner': 'true',
- 'TreatWarningAsError': 'true',
- 'TreatWChar_tAsBuiltInType': 'true',
- 'UndefineAllPreprocessorDefinitions': 'true',
- 'UndefinePreprocessorDefinitions': 'd1;d2;d3',
- 'UseFullPaths': 'true',
- 'WarningLevel': 'Level2',
- 'WholeProgramOptimization': 'true',
- 'XMLDocumentationFileName': 'a_file_name'},
- 'Link': {
- 'AdditionalDependencies': 'file1;file2;file3',
- 'AdditionalLibraryDirectories': 'folder1;folder2;folder3',
- 'AdditionalManifestDependencies': 'file1;file2;file3',
- 'AdditionalOptions': 'a_string',
- 'AddModuleNamesToAssembly': 'file1;file2;file3',
- 'AllowIsolation': 'true',
- 'AssemblyDebug': '',
- 'AssemblyLinkResource': 'file1;file2;file3',
- 'BaseAddress': 'a_string',
- 'CLRImageType': 'ForceIJWImage',
- 'CLRThreadAttribute': 'STAThreadingAttribute',
- 'CLRUnmanagedCodeCheck': 'true',
- 'DataExecutionPrevention': '',
- 'DelayLoadDLLs': 'file1;file2;file3',
- 'DelaySign': 'true',
- 'Driver': 'Driver',
- 'EmbedManagedResourceFile': 'file1;file2;file3',
- 'EnableCOMDATFolding': '',
- 'EnableUAC': 'true',
- 'EntryPointSymbol': 'a_string',
- 'FixedBaseAddress': 'false',
- 'ForceSymbolReferences': 'file1;file2;file3',
- 'FunctionOrder': 'a_file_name',
- 'GenerateDebugInformation': 'true',
- 'GenerateMapFile': 'true',
- 'HeapCommitSize': 'a_string',
- 'HeapReserveSize': 'a_string',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreEmbeddedIDL': 'true',
- 'IgnoreSpecificDefaultLibraries': 'file1;file2;file3',
- 'ImportLibrary': 'a_file_name',
- 'KeyContainer': 'a_file_name',
- 'KeyFile': 'a_file_name',
- 'LargeAddressAware': 'true',
- 'LinkErrorReporting': 'NoErrorReport',
- 'LinkTimeCodeGeneration': 'PGInstrument',
- 'ManifestFile': 'a_file_name',
- 'MapExports': 'true',
- 'MapFileName': 'a_file_name',
- 'MergedIDLBaseFileName': 'a_file_name',
- 'MergeSections': 'a_string',
- 'MidlCommandFile': 'a_file_name',
- 'ModuleDefinitionFile': 'a_file_name',
- 'NoEntryPoint': 'true',
- 'OptimizeReferences': '',
- 'OutputFile': 'a_file_name',
- 'PerUserRedirection': 'true',
- 'Profile': 'true',
- 'ProfileGuidedDatabase': 'a_file_name',
- 'ProgramDatabaseFile': 'a_file_name',
- 'RandomizedBaseAddress': 'false',
- 'RegisterOutput': 'true',
- 'SetChecksum': 'true',
- 'ShowProgress': 'NotSet',
- 'StackCommitSize': 'a_string',
- 'StackReserveSize': 'a_string',
- 'StripPrivateSymbols': 'a_file_name',
- 'SubSystem': 'Windows',
- 'SupportUnloadOfDelayLoadedDLL': 'true',
- 'SuppressStartupBanner': 'true',
- 'SwapRunFromCD': 'true',
- 'SwapRunFromNET': 'true',
- 'TargetMachine': 'MachineARM',
- 'TerminalServerAware': 'true',
- 'TurnOffAssemblyGeneration': 'true',
- 'TypeLibraryFile': 'a_file_name',
- 'TypeLibraryResourceID': '33',
- 'UACExecutionLevel': 'HighestAvailable',
- 'UACUIAccess': 'true',
- 'Version': 'a_string'},
- 'ResourceCompile': {
- 'AdditionalIncludeDirectories': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string',
- 'Culture': '0x03eb',
- 'IgnoreStandardIncludePath': 'true',
- 'PreprocessorDefinitions': 'd1;d2;d3',
- 'ResourceOutputFileName': 'a_string',
- 'ShowProgress': 'true',
- 'SuppressStartupBanner': 'true',
- 'UndefinePreprocessorDefinitions': 'd1;d2;d3'},
- 'Midl': {
- 'AdditionalIncludeDirectories': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string',
- 'CPreprocessOptions': 'a_string',
- 'DefaultCharType': 'Unsigned',
- 'DllDataFileName': 'a_file_name',
- 'EnableErrorChecks': 'All',
- 'ErrorCheckAllocations': 'true',
- 'ErrorCheckBounds': 'true',
- 'ErrorCheckEnumRange': 'true',
- 'ErrorCheckRefPointers': 'true',
- 'ErrorCheckStubData': 'true',
- 'GenerateStublessProxies': 'true',
- 'GenerateTypeLibrary': 'true',
- 'HeaderFileName': 'a_file_name',
- 'IgnoreStandardIncludePath': 'true',
- 'InterfaceIdentifierFileName': 'a_file_name',
- 'MkTypLibCompatible': 'true',
- 'OutputDirectory': 'a_string',
- 'PreprocessorDefinitions': 'd1;d2;d3',
- 'ProxyFileName': 'a_file_name',
- 'RedirectOutputAndErrors': 'a_file_name',
- 'StructMemberAlignment': '4',
- 'SuppressStartupBanner': 'true',
- 'TargetEnvironment': 'Win32',
- 'TypeLibraryName': 'a_file_name',
- 'UndefinePreprocessorDefinitions': 'd1;d2;d3',
- 'ValidateAllParameters': 'true',
- 'WarnAsError': 'true',
- 'WarningLevel': '4'},
- 'Lib': {
- 'AdditionalDependencies': 'file1;file2;file3',
- 'AdditionalLibraryDirectories': 'folder1;folder2;folder3',
- 'AdditionalOptions': 'a_string',
- 'ExportNamedFunctions': 'd1;d2;d3',
- 'ForceSymbolReferences': 'a_string',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreSpecificDefaultLibraries': 'file1;file2;file3',
- 'ModuleDefinitionFile': 'a_file_name',
- 'OutputFile': 'a_file_name',
- 'SuppressStartupBanner': 'true',
- 'UseUnicodeResponseFiles': 'true'},
- 'Manifest': {
- 'AdditionalManifestFiles': 'file1;file2;file3',
- 'AdditionalOptions': 'a_string',
- 'AssemblyIdentity': 'a_string',
- 'ComponentFileName': 'a_file_name',
- 'GenerateCatalogFiles': 'true',
- 'InputResourceManifests': 'a_string',
- 'OutputManifestFile': 'a_file_name',
- 'RegistrarScriptFile': 'a_file_name',
- 'ReplacementsFile': 'a_file_name',
- 'SuppressStartupBanner': 'true',
- 'TypeLibraryFile': 'a_file_name',
- 'UpdateFileHashes': 'true',
- 'UpdateFileHashesSearchPath': 'a_file_name',
- 'VerboseOutput': 'true'},
- 'ManifestResourceCompile': {
- 'ResourceOutputFileName': 'my_name'},
- 'ProjectReference': {
- 'LinkLibraryDependencies': 'true',
- 'UseLibraryDependencyInputs': 'false'},
- '': {
- 'EmbedManifest': 'true',
- 'GenerateManifest': 'true',
- 'IgnoreImportLibrary': 'true',
- 'LinkIncremental': 'false'}}
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
- msvs_settings,
- self.stderr)
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
- self._ExpectedWarnings([])
-
- def testConvertToMSBuildSettings_actual(self):
- """Tests the conversion of an actual project.
-
- A VS2008 project with most of the options defined was created through the
- VS2008 IDE. It was then converted to VS2010. The tool settings found in
- the .vcproj and .vcxproj files were converted to the two dictionaries
- msvs_settings and expected_msbuild_settings.
-
- Note that for many settings, the VS2010 converter adds macros like
- %(AdditionalIncludeDirectories) to make sure than inherited values are
- included. Since the Gyp projects we generate do not use inheritance,
- we removed these macros. They were:
- ClCompile:
- AdditionalIncludeDirectories: ';%(AdditionalIncludeDirectories)'
- AdditionalOptions: ' %(AdditionalOptions)'
- AdditionalUsingDirectories: ';%(AdditionalUsingDirectories)'
- DisableSpecificWarnings: ';%(DisableSpecificWarnings)',
- ForcedIncludeFiles: ';%(ForcedIncludeFiles)',
- ForcedUsingFiles: ';%(ForcedUsingFiles)',
- PreprocessorDefinitions: ';%(PreprocessorDefinitions)',
- UndefinePreprocessorDefinitions:
- ';%(UndefinePreprocessorDefinitions)',
- Link:
- AdditionalDependencies: ';%(AdditionalDependencies)',
- AdditionalLibraryDirectories: ';%(AdditionalLibraryDirectories)',
- AdditionalManifestDependencies:
- ';%(AdditionalManifestDependencies)',
- AdditionalOptions: ' %(AdditionalOptions)',
- AddModuleNamesToAssembly: ';%(AddModuleNamesToAssembly)',
- AssemblyLinkResource: ';%(AssemblyLinkResource)',
- DelayLoadDLLs: ';%(DelayLoadDLLs)',
- EmbedManagedResourceFile: ';%(EmbedManagedResourceFile)',
- ForceSymbolReferences: ';%(ForceSymbolReferences)',
- IgnoreSpecificDefaultLibraries:
- ';%(IgnoreSpecificDefaultLibraries)',
- ResourceCompile:
- AdditionalIncludeDirectories: ';%(AdditionalIncludeDirectories)',
- AdditionalOptions: ' %(AdditionalOptions)',
- PreprocessorDefinitions: ';%(PreprocessorDefinitions)',
- Manifest:
- AdditionalManifestFiles: ';%(AdditionalManifestFiles)',
- AdditionalOptions: ' %(AdditionalOptions)',
- InputResourceManifests: ';%(InputResourceManifests)',
- """
- msvs_settings = {
- 'VCCLCompilerTool': {
- 'AdditionalIncludeDirectories': 'dir1',
- 'AdditionalOptions': '/more',
- 'AdditionalUsingDirectories': 'test',
- 'AssemblerListingLocation': '$(IntDir)\\a',
- 'AssemblerOutput': '1',
- 'BasicRuntimeChecks': '3',
- 'BrowseInformation': '1',
- 'BrowseInformationFile': '$(IntDir)\\e',
- 'BufferSecurityCheck': 'false',
- 'CallingConvention': '1',
- 'CompileAs': '1',
- 'DebugInformationFormat': '4',
- 'DefaultCharIsUnsigned': 'true',
- 'Detect64BitPortabilityProblems': 'true',
- 'DisableLanguageExtensions': 'true',
- 'DisableSpecificWarnings': 'abc',
- 'EnableEnhancedInstructionSet': '1',
- 'EnableFiberSafeOptimizations': 'true',
- 'EnableFunctionLevelLinking': 'true',
- 'EnableIntrinsicFunctions': 'true',
- 'EnablePREfast': 'true',
- 'ErrorReporting': '2',
- 'ExceptionHandling': '2',
- 'ExpandAttributedSource': 'true',
- 'FavorSizeOrSpeed': '2',
- 'FloatingPointExceptions': 'true',
- 'FloatingPointModel': '1',
- 'ForceConformanceInForLoopScope': 'false',
- 'ForcedIncludeFiles': 'def',
- 'ForcedUsingFiles': 'ge',
- 'GeneratePreprocessedFile': '2',
- 'GenerateXMLDocumentationFiles': 'true',
- 'IgnoreStandardIncludePath': 'true',
- 'InlineFunctionExpansion': '1',
- 'KeepComments': 'true',
- 'MinimalRebuild': 'true',
- 'ObjectFile': '$(IntDir)\\b',
- 'OmitDefaultLibName': 'true',
- 'OmitFramePointers': 'true',
- 'OpenMP': 'true',
- 'Optimization': '3',
- 'PrecompiledHeaderFile': '$(IntDir)\\$(TargetName).pche',
- 'PrecompiledHeaderThrough': 'StdAfx.hd',
- 'PreprocessorDefinitions': 'WIN32;_DEBUG;_CONSOLE',
- 'ProgramDataBaseFileName': '$(IntDir)\\vc90b.pdb',
- 'RuntimeLibrary': '3',
- 'RuntimeTypeInfo': 'false',
- 'ShowIncludes': 'true',
- 'SmallerTypeCheck': 'true',
- 'StringPooling': 'true',
- 'StructMemberAlignment': '3',
- 'SuppressStartupBanner': 'false',
- 'TreatWChar_tAsBuiltInType': 'false',
- 'UndefineAllPreprocessorDefinitions': 'true',
- 'UndefinePreprocessorDefinitions': 'wer',
- 'UseFullPaths': 'true',
- 'UsePrecompiledHeader': '0',
- 'UseUnicodeResponseFiles': 'false',
- 'WarnAsError': 'true',
- 'WarningLevel': '3',
- 'WholeProgramOptimization': 'true',
- 'XMLDocumentationFileName': '$(IntDir)\\c'},
- 'VCLinkerTool': {
- 'AdditionalDependencies': 'zx',
- 'AdditionalLibraryDirectories': 'asd',
- 'AdditionalManifestDependencies': 's2',
- 'AdditionalOptions': '/mor2',
- 'AddModuleNamesToAssembly': 'd1',
- 'AllowIsolation': 'false',
- 'AssemblyDebug': '1',
- 'AssemblyLinkResource': 'd5',
- 'BaseAddress': '23423',
- 'CLRImageType': '3',
- 'CLRThreadAttribute': '1',
- 'CLRUnmanagedCodeCheck': 'true',
- 'DataExecutionPrevention': '0',
- 'DelayLoadDLLs': 'd4',
- 'DelaySign': 'true',
- 'Driver': '2',
- 'EmbedManagedResourceFile': 'd2',
- 'EnableCOMDATFolding': '1',
- 'EnableUAC': 'false',
- 'EntryPointSymbol': 'f5',
- 'ErrorReporting': '2',
- 'FixedBaseAddress': '1',
- 'ForceSymbolReferences': 'd3',
- 'FunctionOrder': 'fssdfsd',
- 'GenerateDebugInformation': 'true',
- 'GenerateManifest': 'false',
- 'GenerateMapFile': 'true',
- 'HeapCommitSize': '13',
- 'HeapReserveSize': '12',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreDefaultLibraryNames': 'flob;flok',
- 'IgnoreEmbeddedIDL': 'true',
- 'IgnoreImportLibrary': 'true',
- 'ImportLibrary': 'f4',
- 'KeyContainer': 'f7',
- 'KeyFile': 'f6',
- 'LargeAddressAware': '2',
- 'LinkIncremental': '0',
- 'LinkLibraryDependencies': 'false',
- 'LinkTimeCodeGeneration': '1',
- 'ManifestFile':
- '$(IntDir)\\$(TargetFileName).2intermediate.manifest',
- 'MapExports': 'true',
- 'MapFileName': 'd5',
- 'MergedIDLBaseFileName': 'f2',
- 'MergeSections': 'f5',
- 'MidlCommandFile': 'f1',
- 'ModuleDefinitionFile': 'sdsd',
- 'OptimizeForWindows98': '2',
- 'OptimizeReferences': '2',
- 'OutputFile': '$(OutDir)\\$(ProjectName)2.exe',
- 'PerUserRedirection': 'true',
- 'Profile': 'true',
- 'ProfileGuidedDatabase': '$(TargetDir)$(TargetName).pgdd',
- 'ProgramDatabaseFile': 'Flob.pdb',
- 'RandomizedBaseAddress': '1',
- 'RegisterOutput': 'true',
- 'ResourceOnlyDLL': 'true',
- 'SetChecksum': 'false',
- 'ShowProgress': '1',
- 'StackCommitSize': '15',
- 'StackReserveSize': '14',
- 'StripPrivateSymbols': 'd3',
- 'SubSystem': '1',
- 'SupportUnloadOfDelayLoadedDLL': 'true',
- 'SuppressStartupBanner': 'false',
- 'SwapRunFromCD': 'true',
- 'SwapRunFromNet': 'true',
- 'TargetMachine': '1',
- 'TerminalServerAware': '1',
- 'TurnOffAssemblyGeneration': 'true',
- 'TypeLibraryFile': 'f3',
- 'TypeLibraryResourceID': '12',
- 'UACExecutionLevel': '2',
- 'UACUIAccess': 'true',
- 'UseLibraryDependencyInputs': 'true',
- 'UseUnicodeResponseFiles': 'false',
- 'Version': '333'},
- 'VCResourceCompilerTool': {
- 'AdditionalIncludeDirectories': 'f3',
- 'AdditionalOptions': '/more3',
- 'Culture': '3084',
- 'IgnoreStandardIncludePath': 'true',
- 'PreprocessorDefinitions': '_UNICODE;UNICODE2',
- 'ResourceOutputFileName': '$(IntDir)/$(InputName)3.res',
- 'ShowProgress': 'true'},
- 'VCManifestTool': {
- 'AdditionalManifestFiles': 'sfsdfsd',
- 'AdditionalOptions': 'afdsdafsd',
- 'AssemblyIdentity': 'sddfdsadfsa',
- 'ComponentFileName': 'fsdfds',
- 'DependencyInformationFile': '$(IntDir)\\mt.depdfd',
- 'EmbedManifest': 'false',
- 'GenerateCatalogFiles': 'true',
- 'InputResourceManifests': 'asfsfdafs',
- 'ManifestResourceFile':
- '$(IntDir)\\$(TargetFileName).embed.manifest.resfdsf',
- 'OutputManifestFile': '$(TargetPath).manifestdfs',
- 'RegistrarScriptFile': 'sdfsfd',
- 'ReplacementsFile': 'sdffsd',
- 'SuppressStartupBanner': 'false',
- 'TypeLibraryFile': 'sfsd',
- 'UpdateFileHashes': 'true',
- 'UpdateFileHashesSearchPath': 'sfsd',
- 'UseFAT32Workaround': 'true',
- 'UseUnicodeResponseFiles': 'false',
- 'VerboseOutput': 'true'}}
- expected_msbuild_settings = {
- 'ClCompile': {
- 'AdditionalIncludeDirectories': 'dir1',
- 'AdditionalOptions': '/more /J',
- 'AdditionalUsingDirectories': 'test',
- 'AssemblerListingLocation': '$(IntDir)a',
- 'AssemblerOutput': 'AssemblyCode',
- 'BasicRuntimeChecks': 'EnableFastChecks',
- 'BrowseInformation': 'true',
- 'BrowseInformationFile': '$(IntDir)e',
- 'BufferSecurityCheck': 'false',
- 'CallingConvention': 'FastCall',
- 'CompileAs': 'CompileAsC',
- 'DebugInformationFormat': 'EditAndContinue',
- 'DisableLanguageExtensions': 'true',
- 'DisableSpecificWarnings': 'abc',
- 'EnableEnhancedInstructionSet': 'StreamingSIMDExtensions',
- 'EnableFiberSafeOptimizations': 'true',
- 'EnablePREfast': 'true',
- 'ErrorReporting': 'Queue',
- 'ExceptionHandling': 'Async',
- 'ExpandAttributedSource': 'true',
- 'FavorSizeOrSpeed': 'Size',
- 'FloatingPointExceptions': 'true',
- 'FloatingPointModel': 'Strict',
- 'ForceConformanceInForLoopScope': 'false',
- 'ForcedIncludeFiles': 'def',
- 'ForcedUsingFiles': 'ge',
- 'FunctionLevelLinking': 'true',
- 'GenerateXMLDocumentationFiles': 'true',
- 'IgnoreStandardIncludePath': 'true',
- 'InlineFunctionExpansion': 'OnlyExplicitInline',
- 'IntrinsicFunctions': 'true',
- 'MinimalRebuild': 'true',
- 'ObjectFileName': '$(IntDir)b',
- 'OmitDefaultLibName': 'true',
- 'OmitFramePointers': 'true',
- 'OpenMPSupport': 'true',
- 'Optimization': 'Full',
- 'PrecompiledHeader': 'NotUsing', # Actual conversion gives ''
- 'PrecompiledHeaderFile': 'StdAfx.hd',
- 'PrecompiledHeaderOutputFile': '$(IntDir)$(TargetName).pche',
- 'PreprocessKeepComments': 'true',
- 'PreprocessorDefinitions': 'WIN32;_DEBUG;_CONSOLE',
- 'PreprocessSuppressLineNumbers': 'true',
- 'PreprocessToFile': 'true',
- 'ProgramDataBaseFileName': '$(IntDir)vc90b.pdb',
- 'RuntimeLibrary': 'MultiThreadedDebugDLL',
- 'RuntimeTypeInfo': 'false',
- 'ShowIncludes': 'true',
- 'SmallerTypeCheck': 'true',
- 'StringPooling': 'true',
- 'StructMemberAlignment': '4Bytes',
- 'SuppressStartupBanner': 'false',
- 'TreatWarningAsError': 'true',
- 'TreatWChar_tAsBuiltInType': 'false',
- 'UndefineAllPreprocessorDefinitions': 'true',
- 'UndefinePreprocessorDefinitions': 'wer',
- 'UseFullPaths': 'true',
- 'WarningLevel': 'Level3',
- 'WholeProgramOptimization': 'true',
- 'XMLDocumentationFileName': '$(IntDir)c'},
- 'Link': {
- 'AdditionalDependencies': 'zx',
- 'AdditionalLibraryDirectories': 'asd',
- 'AdditionalManifestDependencies': 's2',
- 'AdditionalOptions': '/mor2',
- 'AddModuleNamesToAssembly': 'd1',
- 'AllowIsolation': 'false',
- 'AssemblyDebug': 'true',
- 'AssemblyLinkResource': 'd5',
- 'BaseAddress': '23423',
- 'CLRImageType': 'ForceSafeILImage',
- 'CLRThreadAttribute': 'MTAThreadingAttribute',
- 'CLRUnmanagedCodeCheck': 'true',
- 'DataExecutionPrevention': '',
- 'DelayLoadDLLs': 'd4',
- 'DelaySign': 'true',
- 'Driver': 'UpOnly',
- 'EmbedManagedResourceFile': 'd2',
- 'EnableCOMDATFolding': 'false',
- 'EnableUAC': 'false',
- 'EntryPointSymbol': 'f5',
- 'FixedBaseAddress': 'false',
- 'ForceSymbolReferences': 'd3',
- 'FunctionOrder': 'fssdfsd',
- 'GenerateDebugInformation': 'true',
- 'GenerateMapFile': 'true',
- 'HeapCommitSize': '13',
- 'HeapReserveSize': '12',
- 'IgnoreAllDefaultLibraries': 'true',
- 'IgnoreEmbeddedIDL': 'true',
- 'IgnoreSpecificDefaultLibraries': 'flob;flok',
- 'ImportLibrary': 'f4',
- 'KeyContainer': 'f7',
- 'KeyFile': 'f6',
- 'LargeAddressAware': 'true',
- 'LinkErrorReporting': 'QueueForNextLogin',
- 'LinkTimeCodeGeneration': 'UseLinkTimeCodeGeneration',
- 'ManifestFile': '$(IntDir)$(TargetFileName).2intermediate.manifest',
- 'MapExports': 'true',
- 'MapFileName': 'd5',
- 'MergedIDLBaseFileName': 'f2',
- 'MergeSections': 'f5',
- 'MidlCommandFile': 'f1',
- 'ModuleDefinitionFile': 'sdsd',
- 'NoEntryPoint': 'true',
- 'OptimizeReferences': 'true',
- 'OutputFile': '$(OutDir)$(ProjectName)2.exe',
- 'PerUserRedirection': 'true',
- 'Profile': 'true',
- 'ProfileGuidedDatabase': '$(TargetDir)$(TargetName).pgdd',
- 'ProgramDatabaseFile': 'Flob.pdb',
- 'RandomizedBaseAddress': 'false',
- 'RegisterOutput': 'true',
- 'SetChecksum': 'false',
- 'ShowProgress': 'LinkVerbose',
- 'StackCommitSize': '15',
- 'StackReserveSize': '14',
- 'StripPrivateSymbols': 'd3',
- 'SubSystem': 'Console',
- 'SupportUnloadOfDelayLoadedDLL': 'true',
- 'SuppressStartupBanner': 'false',
- 'SwapRunFromCD': 'true',
- 'SwapRunFromNET': 'true',
- 'TargetMachine': 'MachineX86',
- 'TerminalServerAware': 'false',
- 'TurnOffAssemblyGeneration': 'true',
- 'TypeLibraryFile': 'f3',
- 'TypeLibraryResourceID': '12',
- 'UACExecutionLevel': 'RequireAdministrator',
- 'UACUIAccess': 'true',
- 'Version': '333'},
- 'ResourceCompile': {
- 'AdditionalIncludeDirectories': 'f3',
- 'AdditionalOptions': '/more3',
- 'Culture': '0x0c0c',
- 'IgnoreStandardIncludePath': 'true',
- 'PreprocessorDefinitions': '_UNICODE;UNICODE2',
- 'ResourceOutputFileName': '$(IntDir)%(Filename)3.res',
- 'ShowProgress': 'true'},
- 'Manifest': {
- 'AdditionalManifestFiles': 'sfsdfsd',
- 'AdditionalOptions': 'afdsdafsd',
- 'AssemblyIdentity': 'sddfdsadfsa',
- 'ComponentFileName': 'fsdfds',
- 'GenerateCatalogFiles': 'true',
- 'InputResourceManifests': 'asfsfdafs',
- 'OutputManifestFile': '$(TargetPath).manifestdfs',
- 'RegistrarScriptFile': 'sdfsfd',
- 'ReplacementsFile': 'sdffsd',
- 'SuppressStartupBanner': 'false',
- 'TypeLibraryFile': 'sfsd',
- 'UpdateFileHashes': 'true',
- 'UpdateFileHashesSearchPath': 'sfsd',
- 'VerboseOutput': 'true'},
- 'ProjectReference': {
- 'LinkLibraryDependencies': 'false',
- 'UseLibraryDependencyInputs': 'true'},
- '': {
- 'EmbedManifest': 'false',
- 'GenerateManifest': 'false',
- 'IgnoreImportLibrary': 'true',
- 'LinkIncremental': ''
- },
- 'ManifestResourceCompile': {
- 'ResourceOutputFileName':
- '$(IntDir)$(TargetFileName).embed.manifest.resfdsf'}
- }
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
- msvs_settings,
- self.stderr)
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
- self._ExpectedWarnings([])
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py
deleted file mode 100644
index 74e529a..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Visual Studio project reader/writer."""
-
-import gyp.common
-import gyp.easy_xml as easy_xml
-
-
-class Writer(object):
- """Visual Studio XML tool file writer."""
-
- def __init__(self, tool_file_path, name):
- """Initializes the tool file.
-
- Args:
- tool_file_path: Path to the tool file.
- name: Name of the tool file.
- """
- self.tool_file_path = tool_file_path
- self.name = name
- self.rules_section = ['Rules']
-
- def AddCustomBuildRule(self, name, cmd, description,
- additional_dependencies,
- outputs, extensions):
- """Adds a rule to the tool file.
-
- Args:
- name: Name of the rule.
- description: Description of the rule.
- cmd: Command line of the rule.
- additional_dependencies: other files which may trigger the rule.
- outputs: outputs of the rule.
- extensions: extensions handled by the rule.
- """
- rule = ['CustomBuildRule',
- {'Name': name,
- 'ExecutionDescription': description,
- 'CommandLine': cmd,
- 'Outputs': ';'.join(outputs),
- 'FileExtensions': ';'.join(extensions),
- 'AdditionalDependencies':
- ';'.join(additional_dependencies)
- }]
- self.rules_section.append(rule)
-
- def WriteIfChanged(self):
- """Writes the tool file."""
- content = ['VisualStudioToolFile',
- {'Version': '8.00',
- 'Name': self.name
- },
- self.rules_section
- ]
- easy_xml.WriteXmlIfChanged(content, self.tool_file_path,
- encoding="Windows-1252")
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py
deleted file mode 100644
index 6c07e9a..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py
+++ /dev/null
@@ -1,147 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Visual Studio user preferences file writer."""
-
-import os
-import re
-import socket # for gethostname
-
-import gyp.common
-import gyp.easy_xml as easy_xml
-
-
-#------------------------------------------------------------------------------
-
-def _FindCommandInPath(command):
- """If there are no slashes in the command given, this function
- searches the PATH env to find the given command, and converts it
- to an absolute path. We have to do this because MSVS is looking
- for an actual file to launch a debugger on, not just a command
- line. Note that this happens at GYP time, so anything needing to
- be built needs to have a full path."""
- if '/' in command or '\\' in command:
- # If the command already has path elements (either relative or
- # absolute), then assume it is constructed properly.
- return command
- else:
- # Search through the path list and find an existing file that
- # we can access.
- paths = os.environ.get('PATH','').split(os.pathsep)
- for path in paths:
- item = os.path.join(path, command)
- if os.path.isfile(item) and os.access(item, os.X_OK):
- return item
- return command
-
-def _QuoteWin32CommandLineArgs(args):
- new_args = []
- for arg in args:
- # Replace all double-quotes with double-double-quotes to escape
- # them for cmd shell, and then quote the whole thing if there
- # are any.
- if arg.find('"') != -1:
- arg = '""'.join(arg.split('"'))
- arg = '"%s"' % arg
-
- # Otherwise, if there are any spaces, quote the whole arg.
- elif re.search(r'[ \t\n]', arg):
- arg = '"%s"' % arg
- new_args.append(arg)
- return new_args
-
-class Writer(object):
- """Visual Studio XML user user file writer."""
-
- def __init__(self, user_file_path, version, name):
- """Initializes the user file.
-
- Args:
- user_file_path: Path to the user file.
- version: Version info.
- name: Name of the user file.
- """
- self.user_file_path = user_file_path
- self.version = version
- self.name = name
- self.configurations = {}
-
- def AddConfig(self, name):
- """Adds a configuration to the project.
-
- Args:
- name: Configuration name.
- """
- self.configurations[name] = ['Configuration', {'Name': name}]
-
- def AddDebugSettings(self, config_name, command, environment = {},
- working_directory=""):
- """Adds a DebugSettings node to the user file for a particular config.
-
- Args:
- command: command line to run. First element in the list is the
- executable. All elements of the command will be quoted if
- necessary.
- working_directory: other files which may trigger the rule. (optional)
- """
- command = _QuoteWin32CommandLineArgs(command)
-
- abs_command = _FindCommandInPath(command[0])
-
- if environment and isinstance(environment, dict):
- env_list = ['%s="%s"' % (key, val)
- for (key,val) in environment.iteritems()]
- environment = ' '.join(env_list)
- else:
- environment = ''
-
- n_cmd = ['DebugSettings',
- {'Command': abs_command,
- 'WorkingDirectory': working_directory,
- 'CommandArguments': " ".join(command[1:]),
- 'RemoteMachine': socket.gethostname(),
- 'Environment': environment,
- 'EnvironmentMerge': 'true',
- # Currently these are all "dummy" values that we're just setting
- # in the default manner that MSVS does it. We could use some of
- # these to add additional capabilities, I suppose, but they might
- # not have parity with other platforms then.
- 'Attach': 'false',
- 'DebuggerType': '3', # 'auto' debugger
- 'Remote': '1',
- 'RemoteCommand': '',
- 'HttpUrl': '',
- 'PDBPath': '',
- 'SQLDebugging': '',
- 'DebuggerFlavor': '0',
- 'MPIRunCommand': '',
- 'MPIRunArguments': '',
- 'MPIRunWorkingDirectory': '',
- 'ApplicationCommand': '',
- 'ApplicationArguments': '',
- 'ShimCommand': '',
- 'MPIAcceptMode': '',
- 'MPIAcceptFilter': ''
- }]
-
- # Find the config, and add it if it doesn't exist.
- if config_name not in self.configurations:
- self.AddConfig(config_name)
-
- # Add the DebugSettings onto the appropriate config.
- self.configurations[config_name].append(n_cmd)
-
- def WriteIfChanged(self):
- """Writes the user file."""
- configs = ['Configurations']
- for config, spec in sorted(self.configurations.iteritems()):
- configs.append(spec)
-
- content = ['VisualStudioUserFile',
- {'Version': self.version.ProjectVersion(),
- 'Name': self.name
- },
- configs]
- easy_xml.WriteXmlIfChanged(content, self.user_file_path,
- encoding="Windows-1252")
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py
deleted file mode 100644
index 0b32e91..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py
+++ /dev/null
@@ -1,270 +0,0 @@
-# Copyright (c) 2013 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Utility functions shared amongst the Windows generators."""
-
-import copy
-import os
-
-
-# A dictionary mapping supported target types to extensions.
-TARGET_TYPE_EXT = {
- 'executable': 'exe',
- 'loadable_module': 'dll',
- 'shared_library': 'dll',
- 'static_library': 'lib',
-}
-
-
-def _GetLargePdbShimCcPath():
- """Returns the path of the large_pdb_shim.cc file."""
- this_dir = os.path.abspath(os.path.dirname(__file__))
- src_dir = os.path.abspath(os.path.join(this_dir, '..', '..'))
- win_data_dir = os.path.join(src_dir, 'data', 'win')
- large_pdb_shim_cc = os.path.join(win_data_dir, 'large-pdb-shim.cc')
- return large_pdb_shim_cc
-
-
-def _DeepCopySomeKeys(in_dict, keys):
- """Performs a partial deep-copy on |in_dict|, only copying the keys in |keys|.
-
- Arguments:
- in_dict: The dictionary to copy.
- keys: The keys to be copied. If a key is in this list and doesn't exist in
- |in_dict| this is not an error.
- Returns:
- The partially deep-copied dictionary.
- """
- d = {}
- for key in keys:
- if key not in in_dict:
- continue
- d[key] = copy.deepcopy(in_dict[key])
- return d
-
-
-def _SuffixName(name, suffix):
- """Add a suffix to the end of a target.
-
- Arguments:
- name: name of the target (foo#target)
- suffix: the suffix to be added
- Returns:
- Target name with suffix added (foo_suffix#target)
- """
- parts = name.rsplit('#', 1)
- parts[0] = '%s_%s' % (parts[0], suffix)
- return '#'.join(parts)
-
-
-def _ShardName(name, number):
- """Add a shard number to the end of a target.
-
- Arguments:
- name: name of the target (foo#target)
- number: shard number
- Returns:
- Target name with shard added (foo_1#target)
- """
- return _SuffixName(name, str(number))
-
-
-def ShardTargets(target_list, target_dicts):
- """Shard some targets apart to work around the linkers limits.
-
- Arguments:
- target_list: List of target pairs: 'base/base.gyp:base'.
- target_dicts: Dict of target properties keyed on target pair.
- Returns:
- Tuple of the new sharded versions of the inputs.
- """
- # Gather the targets to shard, and how many pieces.
- targets_to_shard = {}
- for t in target_dicts:
- shards = int(target_dicts[t].get('msvs_shard', 0))
- if shards:
- targets_to_shard[t] = shards
- # Shard target_list.
- new_target_list = []
- for t in target_list:
- if t in targets_to_shard:
- for i in range(targets_to_shard[t]):
- new_target_list.append(_ShardName(t, i))
- else:
- new_target_list.append(t)
- # Shard target_dict.
- new_target_dicts = {}
- for t in target_dicts:
- if t in targets_to_shard:
- for i in range(targets_to_shard[t]):
- name = _ShardName(t, i)
- new_target_dicts[name] = copy.copy(target_dicts[t])
- new_target_dicts[name]['target_name'] = _ShardName(
- new_target_dicts[name]['target_name'], i)
- sources = new_target_dicts[name].get('sources', [])
- new_sources = []
- for pos in range(i, len(sources), targets_to_shard[t]):
- new_sources.append(sources[pos])
- new_target_dicts[name]['sources'] = new_sources
- else:
- new_target_dicts[t] = target_dicts[t]
- # Shard dependencies.
- for t in new_target_dicts:
- for deptype in ('dependencies', 'dependencies_original'):
- dependencies = copy.copy(new_target_dicts[t].get(deptype, []))
- new_dependencies = []
- for d in dependencies:
- if d in targets_to_shard:
- for i in range(targets_to_shard[d]):
- new_dependencies.append(_ShardName(d, i))
- else:
- new_dependencies.append(d)
- new_target_dicts[t][deptype] = new_dependencies
-
- return (new_target_list, new_target_dicts)
-
-
-def _GetPdbPath(target_dict, config_name, vars):
- """Returns the path to the PDB file that will be generated by a given
- configuration.
-
- The lookup proceeds as follows:
- - Look for an explicit path in the VCLinkerTool configuration block.
- - Look for an 'msvs_large_pdb_path' variable.
- - Use '<(PRODUCT_DIR)/<(product_name).(exe|dll).pdb' if 'product_name' is
- specified.
- - Use '<(PRODUCT_DIR)/<(target_name).(exe|dll).pdb'.
-
- Arguments:
- target_dict: The target dictionary to be searched.
- config_name: The name of the configuration of interest.
- vars: A dictionary of common GYP variables with generator-specific values.
- Returns:
- The path of the corresponding PDB file.
- """
- config = target_dict['configurations'][config_name]
- msvs = config.setdefault('msvs_settings', {})
-
- linker = msvs.get('VCLinkerTool', {})
-
- pdb_path = linker.get('ProgramDatabaseFile')
- if pdb_path:
- return pdb_path
-
- variables = target_dict.get('variables', {})
- pdb_path = variables.get('msvs_large_pdb_path', None)
- if pdb_path:
- return pdb_path
-
-
- pdb_base = target_dict.get('product_name', target_dict['target_name'])
- pdb_base = '%s.%s.pdb' % (pdb_base, TARGET_TYPE_EXT[target_dict['type']])
- pdb_path = vars['PRODUCT_DIR'] + '/' + pdb_base
-
- return pdb_path
-
-
-def InsertLargePdbShims(target_list, target_dicts, vars):
- """Insert a shim target that forces the linker to use 4KB pagesize PDBs.
-
- This is a workaround for targets with PDBs greater than 1GB in size, the
- limit for the 1KB pagesize PDBs created by the linker by default.
-
- Arguments:
- target_list: List of target pairs: 'base/base.gyp:base'.
- target_dicts: Dict of target properties keyed on target pair.
- vars: A dictionary of common GYP variables with generator-specific values.
- Returns:
- Tuple of the shimmed version of the inputs.
- """
- # Determine which targets need shimming.
- targets_to_shim = []
- for t in target_dicts:
- target_dict = target_dicts[t]
-
- # We only want to shim targets that have msvs_large_pdb enabled.
- if not int(target_dict.get('msvs_large_pdb', 0)):
- continue
- # This is intended for executable, shared_library and loadable_module
- # targets where every configuration is set up to produce a PDB output.
- # If any of these conditions is not true then the shim logic will fail
- # below.
- targets_to_shim.append(t)
-
- large_pdb_shim_cc = _GetLargePdbShimCcPath()
-
- for t in targets_to_shim:
- target_dict = target_dicts[t]
- target_name = target_dict.get('target_name')
-
- base_dict = _DeepCopySomeKeys(target_dict,
- ['configurations', 'default_configuration', 'toolset'])
-
- # This is the dict for copying the source file (part of the GYP tree)
- # to the intermediate directory of the project. This is necessary because
- # we can't always build a relative path to the shim source file (on Windows
- # GYP and the project may be on different drives), and Ninja hates absolute
- # paths (it ends up generating the .obj and .obj.d alongside the source
- # file, polluting GYPs tree).
- copy_suffix = 'large_pdb_copy'
- copy_target_name = target_name + '_' + copy_suffix
- full_copy_target_name = _SuffixName(t, copy_suffix)
- shim_cc_basename = os.path.basename(large_pdb_shim_cc)
- shim_cc_dir = vars['SHARED_INTERMEDIATE_DIR'] + '/' + copy_target_name
- shim_cc_path = shim_cc_dir + '/' + shim_cc_basename
- copy_dict = copy.deepcopy(base_dict)
- copy_dict['target_name'] = copy_target_name
- copy_dict['type'] = 'none'
- copy_dict['sources'] = [ large_pdb_shim_cc ]
- copy_dict['copies'] = [{
- 'destination': shim_cc_dir,
- 'files': [ large_pdb_shim_cc ]
- }]
-
- # This is the dict for the PDB generating shim target. It depends on the
- # copy target.
- shim_suffix = 'large_pdb_shim'
- shim_target_name = target_name + '_' + shim_suffix
- full_shim_target_name = _SuffixName(t, shim_suffix)
- shim_dict = copy.deepcopy(base_dict)
- shim_dict['target_name'] = shim_target_name
- shim_dict['type'] = 'static_library'
- shim_dict['sources'] = [ shim_cc_path ]
- shim_dict['dependencies'] = [ full_copy_target_name ]
-
- # Set up the shim to output its PDB to the same location as the final linker
- # target.
- for config_name, config in shim_dict.get('configurations').iteritems():
- pdb_path = _GetPdbPath(target_dict, config_name, vars)
-
- # A few keys that we don't want to propagate.
- for key in ['msvs_precompiled_header', 'msvs_precompiled_source', 'test']:
- config.pop(key, None)
-
- msvs = config.setdefault('msvs_settings', {})
-
- # Update the compiler directives in the shim target.
- compiler = msvs.setdefault('VCCLCompilerTool', {})
- compiler['DebugInformationFormat'] = '3'
- compiler['ProgramDataBaseFileName'] = pdb_path
-
- # Set the explicit PDB path in the appropriate configuration of the
- # original target.
- config = target_dict['configurations'][config_name]
- msvs = config.setdefault('msvs_settings', {})
- linker = msvs.setdefault('VCLinkerTool', {})
- linker['GenerateDebugInformation'] = 'true'
- linker['ProgramDatabaseFile'] = pdb_path
-
- # Add the new targets. They must go to the beginning of the list so that
- # the dependency generation works as expected in ninja.
- target_list.insert(0, full_copy_target_name)
- target_list.insert(0, full_shim_target_name)
- target_dicts[full_copy_target_name] = copy_dict
- target_dicts[full_shim_target_name] = shim_dict
-
- # Update the original target to depend on the shim target.
- target_dict.setdefault('dependencies', []).append(full_shim_target_name)
-
- return (target_list, target_dicts)
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py b/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py
deleted file mode 100644
index d9bfa68..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py
+++ /dev/null
@@ -1,443 +0,0 @@
-# Copyright (c) 2013 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Handle version information related to Visual Stuio."""
-
-import errno
-import os
-import re
-import subprocess
-import sys
-import gyp
-import glob
-
-
-class VisualStudioVersion(object):
- """Information regarding a version of Visual Studio."""
-
- def __init__(self, short_name, description,
- solution_version, project_version, flat_sln, uses_vcxproj,
- path, sdk_based, default_toolset=None):
- self.short_name = short_name
- self.description = description
- self.solution_version = solution_version
- self.project_version = project_version
- self.flat_sln = flat_sln
- self.uses_vcxproj = uses_vcxproj
- self.path = path
- self.sdk_based = sdk_based
- self.default_toolset = default_toolset
-
- def ShortName(self):
- return self.short_name
-
- def Description(self):
- """Get the full description of the version."""
- return self.description
-
- def SolutionVersion(self):
- """Get the version number of the sln files."""
- return self.solution_version
-
- def ProjectVersion(self):
- """Get the version number of the vcproj or vcxproj files."""
- return self.project_version
-
- def FlatSolution(self):
- return self.flat_sln
-
- def UsesVcxproj(self):
- """Returns true if this version uses a vcxproj file."""
- return self.uses_vcxproj
-
- def ProjectExtension(self):
- """Returns the file extension for the project."""
- return self.uses_vcxproj and '.vcxproj' or '.vcproj'
-
- def Path(self):
- """Returns the path to Visual Studio installation."""
- return self.path
-
- def ToolPath(self, tool):
- """Returns the path to a given compiler tool. """
- return os.path.normpath(os.path.join(self.path, "VC/bin", tool))
-
- def DefaultToolset(self):
- """Returns the msbuild toolset version that will be used in the absence
- of a user override."""
- return self.default_toolset
-
- def SetupScript(self, target_arch):
- """Returns a command (with arguments) to be used to set up the
- environment."""
- # Check if we are running in the SDK command line environment and use
- # the setup script from the SDK if so. |target_arch| should be either
- # 'x86' or 'x64'.
- assert target_arch in ('x86', 'x64')
- sdk_dir = os.environ.get('WindowsSDKDir')
- if self.sdk_based and sdk_dir:
- return [os.path.normpath(os.path.join(sdk_dir, 'Bin/SetEnv.Cmd')),
- '/' + target_arch]
- else:
- # We don't use VC/vcvarsall.bat for x86 because vcvarsall calls
- # vcvars32, which it can only find if VS??COMNTOOLS is set, which it
- # isn't always.
- if target_arch == 'x86':
- if self.short_name >= '2013' and self.short_name[-1] != 'e' and (
- os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or
- os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64'):
- # VS2013 and later, non-Express have a x64-x86 cross that we want
- # to prefer.
- return [os.path.normpath(
- os.path.join(self.path, 'VC/vcvarsall.bat')), 'amd64_x86']
- # Otherwise, the standard x86 compiler.
- return [os.path.normpath(
- os.path.join(self.path, 'Common7/Tools/vsvars32.bat'))]
- else:
- assert target_arch == 'x64'
- arg = 'x86_amd64'
- # Use the 64-on-64 compiler if we're not using an express
- # edition and we're running on a 64bit OS.
- if self.short_name[-1] != 'e' and (
- os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or
- os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64'):
- arg = 'amd64'
- return [os.path.normpath(
- os.path.join(self.path, 'VC/vcvarsall.bat')), arg]
-
-
-def _RegistryQueryBase(sysdir, key, value):
- """Use reg.exe to read a particular key.
-
- While ideally we might use the win32 module, we would like gyp to be
- python neutral, so for instance cygwin python lacks this module.
-
- Arguments:
- sysdir: The system subdirectory to attempt to launch reg.exe from.
- key: The registry key to read from.
- value: The particular value to read.
- Return:
- stdout from reg.exe, or None for failure.
- """
- # Skip if not on Windows or Python Win32 setup issue
- if sys.platform not in ('win32', 'cygwin'):
- return None
- # Setup params to pass to and attempt to launch reg.exe
- cmd = [os.path.join(os.environ.get('WINDIR', ''), sysdir, 'reg.exe'),
- 'query', key]
- if value:
- cmd.extend(['/v', value])
- p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- # Obtain the stdout from reg.exe, reading to the end so p.returncode is valid
- # Note that the error text may be in [1] in some cases
- text = p.communicate()[0]
- # Check return code from reg.exe; officially 0==success and 1==error
- if p.returncode:
- return None
- return text
-
-
-def _RegistryQuery(key, value=None):
- r"""Use reg.exe to read a particular key through _RegistryQueryBase.
-
- First tries to launch from %WinDir%\Sysnative to avoid WoW64 redirection. If
- that fails, it falls back to System32. Sysnative is available on Vista and
- up and available on Windows Server 2003 and XP through KB patch 942589. Note
- that Sysnative will always fail if using 64-bit python due to it being a
- virtual directory and System32 will work correctly in the first place.
-
- KB 942589 - http://support.microsoft.com/kb/942589/en-us.
-
- Arguments:
- key: The registry key.
- value: The particular registry value to read (optional).
- Return:
- stdout from reg.exe, or None for failure.
- """
- text = None
- try:
- text = _RegistryQueryBase('Sysnative', key, value)
- except OSError, e:
- if e.errno == errno.ENOENT:
- text = _RegistryQueryBase('System32', key, value)
- else:
- raise
- return text
-
-
-def _RegistryGetValueUsingWinReg(key, value):
- """Use the _winreg module to obtain the value of a registry key.
-
- Args:
- key: The registry key.
- value: The particular registry value to read.
- Return:
- contents of the registry key's value, or None on failure. Throws
- ImportError if _winreg is unavailable.
- """
- import _winreg
- try:
- root, subkey = key.split('\\', 1)
- assert root == 'HKLM' # Only need HKLM for now.
- with _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, subkey) as hkey:
- return _winreg.QueryValueEx(hkey, value)[0]
- except WindowsError:
- return None
-
-
-def _RegistryGetValue(key, value):
- """Use _winreg or reg.exe to obtain the value of a registry key.
-
- Using _winreg is preferable because it solves an issue on some corporate
- environments where access to reg.exe is locked down. However, we still need
- to fallback to reg.exe for the case where the _winreg module is not available
- (for example in cygwin python).
-
- Args:
- key: The registry key.
- value: The particular registry value to read.
- Return:
- contents of the registry key's value, or None on failure.
- """
- try:
- return _RegistryGetValueUsingWinReg(key, value)
- except ImportError:
- pass
-
- # Fallback to reg.exe if we fail to import _winreg.
- text = _RegistryQuery(key, value)
- if not text:
- return None
- # Extract value.
- match = re.search(r'REG_\w+\s+([^\r]+)\r\n', text)
- if not match:
- return None
- return match.group(1)
-
-
-def _CreateVersion(name, path, sdk_based=False):
- """Sets up MSVS project generation.
-
- Setup is based off the GYP_MSVS_VERSION environment variable or whatever is
- autodetected if GYP_MSVS_VERSION is not explicitly specified. If a version is
- passed in that doesn't match a value in versions python will throw a error.
- """
- if path:
- path = os.path.normpath(path)
- versions = {
- '2015': VisualStudioVersion('2015',
- 'Visual Studio 2015',
- solution_version='12.00',
- project_version='14.0',
- flat_sln=False,
- uses_vcxproj=True,
- path=path,
- sdk_based=sdk_based,
- default_toolset='v140'),
- '2013': VisualStudioVersion('2013',
- 'Visual Studio 2013',
- solution_version='13.00',
- project_version='12.0',
- flat_sln=False,
- uses_vcxproj=True,
- path=path,
- sdk_based=sdk_based,
- default_toolset='v120'),
- '2013e': VisualStudioVersion('2013e',
- 'Visual Studio 2013',
- solution_version='13.00',
- project_version='12.0',
- flat_sln=True,
- uses_vcxproj=True,
- path=path,
- sdk_based=sdk_based,
- default_toolset='v120'),
- '2012': VisualStudioVersion('2012',
- 'Visual Studio 2012',
- solution_version='12.00',
- project_version='4.0',
- flat_sln=False,
- uses_vcxproj=True,
- path=path,
- sdk_based=sdk_based,
- default_toolset='v110'),
- '2012e': VisualStudioVersion('2012e',
- 'Visual Studio 2012',
- solution_version='12.00',
- project_version='4.0',
- flat_sln=True,
- uses_vcxproj=True,
- path=path,
- sdk_based=sdk_based,
- default_toolset='v110'),
- '2010': VisualStudioVersion('2010',
- 'Visual Studio 2010',
- solution_version='11.00',
- project_version='4.0',
- flat_sln=False,
- uses_vcxproj=True,
- path=path,
- sdk_based=sdk_based),
- '2010e': VisualStudioVersion('2010e',
- 'Visual C++ Express 2010',
- solution_version='11.00',
- project_version='4.0',
- flat_sln=True,
- uses_vcxproj=True,
- path=path,
- sdk_based=sdk_based),
- '2008': VisualStudioVersion('2008',
- 'Visual Studio 2008',
- solution_version='10.00',
- project_version='9.00',
- flat_sln=False,
- uses_vcxproj=False,
- path=path,
- sdk_based=sdk_based),
- '2008e': VisualStudioVersion('2008e',
- 'Visual Studio 2008',
- solution_version='10.00',
- project_version='9.00',
- flat_sln=True,
- uses_vcxproj=False,
- path=path,
- sdk_based=sdk_based),
- '2005': VisualStudioVersion('2005',
- 'Visual Studio 2005',
- solution_version='9.00',
- project_version='8.00',
- flat_sln=False,
- uses_vcxproj=False,
- path=path,
- sdk_based=sdk_based),
- '2005e': VisualStudioVersion('2005e',
- 'Visual Studio 2005',
- solution_version='9.00',
- project_version='8.00',
- flat_sln=True,
- uses_vcxproj=False,
- path=path,
- sdk_based=sdk_based),
- }
- return versions[str(name)]
-
-
-def _ConvertToCygpath(path):
- """Convert to cygwin path if we are using cygwin."""
- if sys.platform == 'cygwin':
- p = subprocess.Popen(['cygpath', path], stdout=subprocess.PIPE)
- path = p.communicate()[0].strip()
- return path
-
-
-def _DetectVisualStudioVersions(versions_to_check, force_express):
- """Collect the list of installed visual studio versions.
-
- Returns:
- A list of visual studio versions installed in descending order of
- usage preference.
- Base this on the registry and a quick check if devenv.exe exists.
- Only versions 8-10 are considered.
- Possibilities are:
- 2005(e) - Visual Studio 2005 (8)
- 2008(e) - Visual Studio 2008 (9)
- 2010(e) - Visual Studio 2010 (10)
- 2012(e) - Visual Studio 2012 (11)
- 2013(e) - Visual Studio 2013 (12)
- 2015 - Visual Studio 2015 (14)
- Where (e) is e for express editions of MSVS and blank otherwise.
- """
- version_to_year = {
- '8.0': '2005',
- '9.0': '2008',
- '10.0': '2010',
- '11.0': '2012',
- '12.0': '2013',
- '14.0': '2015',
- }
- versions = []
- for version in versions_to_check:
- # Old method of searching for which VS version is installed
- # We don't use the 2010-encouraged-way because we also want to get the
- # path to the binaries, which it doesn't offer.
- keys = [r'HKLM\Software\Microsoft\VisualStudio\%s' % version,
- r'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\%s' % version,
- r'HKLM\Software\Microsoft\VCExpress\%s' % version,
- r'HKLM\Software\Wow6432Node\Microsoft\VCExpress\%s' % version]
- for index in range(len(keys)):
- path = _RegistryGetValue(keys[index], 'InstallDir')
- if not path:
- continue
- path = _ConvertToCygpath(path)
- # Check for full.
- full_path = os.path.join(path, 'devenv.exe')
- express_path = os.path.join(path, '*express.exe')
- if not force_express and os.path.exists(full_path):
- # Add this one.
- versions.append(_CreateVersion(version_to_year[version],
- os.path.join(path, '..', '..')))
- # Check for express.
- elif glob.glob(express_path):
- # Add this one.
- versions.append(_CreateVersion(version_to_year[version] + 'e',
- os.path.join(path, '..', '..')))
-
- # The old method above does not work when only SDK is installed.
- keys = [r'HKLM\Software\Microsoft\VisualStudio\SxS\VC7',
- r'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7']
- for index in range(len(keys)):
- path = _RegistryGetValue(keys[index], version)
- if not path:
- continue
- path = _ConvertToCygpath(path)
- if version != '14.0': # There is no Express edition for 2015.
- versions.append(_CreateVersion(version_to_year[version] + 'e',
- os.path.join(path, '..'), sdk_based=True))
-
- return versions
-
-
-def SelectVisualStudioVersion(version='auto', allow_fallback=True):
- """Select which version of Visual Studio projects to generate.
-
- Arguments:
- version: Hook to allow caller to force a particular version (vs auto).
- Returns:
- An object representing a visual studio project format version.
- """
- # In auto mode, check environment variable for override.
- if version == 'auto':
- version = os.environ.get('GYP_MSVS_VERSION', 'auto')
- version_map = {
- 'auto': ('14.0', '12.0', '10.0', '9.0', '8.0', '11.0'),
- '2005': ('8.0',),
- '2005e': ('8.0',),
- '2008': ('9.0',),
- '2008e': ('9.0',),
- '2010': ('10.0',),
- '2010e': ('10.0',),
- '2012': ('11.0',),
- '2012e': ('11.0',),
- '2013': ('12.0',),
- '2013e': ('12.0',),
- '2015': ('14.0',),
- }
- override_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH')
- if override_path:
- msvs_version = os.environ.get('GYP_MSVS_VERSION')
- if not msvs_version:
- raise ValueError('GYP_MSVS_OVERRIDE_PATH requires GYP_MSVS_VERSION to be '
- 'set to a particular version (e.g. 2010e).')
- return _CreateVersion(msvs_version, override_path, sdk_based=True)
- version = str(version)
- versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
- if not versions:
- if not allow_fallback:
- raise ValueError('Could not locate Visual Studio installation.')
- if version == 'auto':
- # Default to 2005 if we couldn't find anything
- return _CreateVersion('2005', None)
- else:
- return _CreateVersion(version, None)
- return versions[0]
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/__init__.py b/node_modules/node-gyp/gyp/pylib/gyp/__init__.py
deleted file mode 100755
index 668f38b..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/__init__.py
+++ /dev/null
@@ -1,548 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import copy
-import gyp.input
-import optparse
-import os.path
-import re
-import shlex
-import sys
-import traceback
-from gyp.common import GypError
-
-# Default debug modes for GYP
-debug = {}
-
-# List of "official" debug modes, but you can use anything you like.
-DEBUG_GENERAL = 'general'
-DEBUG_VARIABLES = 'variables'
-DEBUG_INCLUDES = 'includes'
-
-
-def DebugOutput(mode, message, *args):
- if 'all' in gyp.debug or mode in gyp.debug:
- ctx = ('unknown', 0, 'unknown')
- try:
- f = traceback.extract_stack(limit=2)
- if f:
- ctx = f[0][:3]
- except:
- pass
- if args:
- message %= args
- print '%s:%s:%d:%s %s' % (mode.upper(), os.path.basename(ctx[0]),
- ctx[1], ctx[2], message)
-
-def FindBuildFiles():
- extension = '.gyp'
- files = os.listdir(os.getcwd())
- build_files = []
- for file in files:
- if file.endswith(extension):
- build_files.append(file)
- return build_files
-
-
-def Load(build_files, format, default_variables={},
- includes=[], depth='.', params=None, check=False,
- circular_check=True, duplicate_basename_check=True):
- """
- Loads one or more specified build files.
- default_variables and includes will be copied before use.
- Returns the generator for the specified format and the
- data returned by loading the specified build files.
- """
- if params is None:
- params = {}
-
- if '-' in format:
- format, params['flavor'] = format.split('-', 1)
-
- default_variables = copy.copy(default_variables)
-
- # Default variables provided by this program and its modules should be
- # named WITH_CAPITAL_LETTERS to provide a distinct "best practice" namespace,
- # avoiding collisions with user and automatic variables.
- default_variables['GENERATOR'] = format
- default_variables['GENERATOR_FLAVOR'] = params.get('flavor', '')
-
- # Format can be a custom python file, or by default the name of a module
- # within gyp.generator.
- if format.endswith('.py'):
- generator_name = os.path.splitext(format)[0]
- path, generator_name = os.path.split(generator_name)
-
- # Make sure the path to the custom generator is in sys.path
- # Don't worry about removing it once we are done. Keeping the path
- # to each generator that is used in sys.path is likely harmless and
- # arguably a good idea.
- path = os.path.abspath(path)
- if path not in sys.path:
- sys.path.insert(0, path)
- else:
- generator_name = 'gyp.generator.' + format
-
- # These parameters are passed in order (as opposed to by key)
- # because ActivePython cannot handle key parameters to __import__.
- generator = __import__(generator_name, globals(), locals(), generator_name)
- for (key, val) in generator.generator_default_variables.items():
- default_variables.setdefault(key, val)
-
- # Give the generator the opportunity to set additional variables based on
- # the params it will receive in the output phase.
- if getattr(generator, 'CalculateVariables', None):
- generator.CalculateVariables(default_variables, params)
-
- # Give the generator the opportunity to set generator_input_info based on
- # the params it will receive in the output phase.
- if getattr(generator, 'CalculateGeneratorInputInfo', None):
- generator.CalculateGeneratorInputInfo(params)
-
- # Fetch the generator specific info that gets fed to input, we use getattr
- # so we can default things and the generators only have to provide what
- # they need.
- generator_input_info = {
- 'non_configuration_keys':
- getattr(generator, 'generator_additional_non_configuration_keys', []),
- 'path_sections':
- getattr(generator, 'generator_additional_path_sections', []),
- 'extra_sources_for_rules':
- getattr(generator, 'generator_extra_sources_for_rules', []),
- 'generator_supports_multiple_toolsets':
- getattr(generator, 'generator_supports_multiple_toolsets', False),
- 'generator_wants_static_library_dependencies_adjusted':
- getattr(generator,
- 'generator_wants_static_library_dependencies_adjusted', True),
- 'generator_wants_sorted_dependencies':
- getattr(generator, 'generator_wants_sorted_dependencies', False),
- 'generator_filelist_paths':
- getattr(generator, 'generator_filelist_paths', None),
- }
-
- # Process the input specific to this generator.
- result = gyp.input.Load(build_files, default_variables, includes[:],
- depth, generator_input_info, check, circular_check,
- duplicate_basename_check,
- params['parallel'], params['root_targets'])
- return [generator] + result
-
-def NameValueListToDict(name_value_list):
- """
- Takes an array of strings of the form 'NAME=VALUE' and creates a dictionary
- of the pairs. If a string is simply NAME, then the value in the dictionary
- is set to True. If VALUE can be converted to an integer, it is.
- """
- result = { }
- for item in name_value_list:
- tokens = item.split('=', 1)
- if len(tokens) == 2:
- # If we can make it an int, use that, otherwise, use the string.
- try:
- token_value = int(tokens[1])
- except ValueError:
- token_value = tokens[1]
- # Set the variable to the supplied value.
- result[tokens[0]] = token_value
- else:
- # No value supplied, treat it as a boolean and set it.
- result[tokens[0]] = True
- return result
-
-def ShlexEnv(env_name):
- flags = os.environ.get(env_name, [])
- if flags:
- flags = shlex.split(flags)
- return flags
-
-def FormatOpt(opt, value):
- if opt.startswith('--'):
- return '%s=%s' % (opt, value)
- return opt + value
-
-def RegenerateAppendFlag(flag, values, predicate, env_name, options):
- """Regenerate a list of command line flags, for an option of action='append'.
-
- The |env_name|, if given, is checked in the environment and used to generate
- an initial list of options, then the options that were specified on the
- command line (given in |values|) are appended. This matches the handling of
- environment variables and command line flags where command line flags override
- the environment, while not requiring the environment to be set when the flags
- are used again.
- """
- flags = []
- if options.use_environment and env_name:
- for flag_value in ShlexEnv(env_name):
- value = FormatOpt(flag, predicate(flag_value))
- if value in flags:
- flags.remove(value)
- flags.append(value)
- if values:
- for flag_value in values:
- flags.append(FormatOpt(flag, predicate(flag_value)))
- return flags
-
-def RegenerateFlags(options):
- """Given a parsed options object, and taking the environment variables into
- account, returns a list of flags that should regenerate an equivalent options
- object (even in the absence of the environment variables.)
-
- Any path options will be normalized relative to depth.
-
- The format flag is not included, as it is assumed the calling generator will
- set that as appropriate.
- """
- def FixPath(path):
- path = gyp.common.FixIfRelativePath(path, options.depth)
- if not path:
- return os.path.curdir
- return path
-
- def Noop(value):
- return value
-
- # We always want to ignore the environment when regenerating, to avoid
- # duplicate or changed flags in the environment at the time of regeneration.
- flags = ['--ignore-environment']
- for name, metadata in options._regeneration_metadata.iteritems():
- opt = metadata['opt']
- value = getattr(options, name)
- value_predicate = metadata['type'] == 'path' and FixPath or Noop
- action = metadata['action']
- env_name = metadata['env_name']
- if action == 'append':
- flags.extend(RegenerateAppendFlag(opt, value, value_predicate,
- env_name, options))
- elif action in ('store', None): # None is a synonym for 'store'.
- if value:
- flags.append(FormatOpt(opt, value_predicate(value)))
- elif options.use_environment and env_name and os.environ.get(env_name):
- flags.append(FormatOpt(opt, value_predicate(os.environ.get(env_name))))
- elif action in ('store_true', 'store_false'):
- if ((action == 'store_true' and value) or
- (action == 'store_false' and not value)):
- flags.append(opt)
- elif options.use_environment and env_name:
- print >>sys.stderr, ('Warning: environment regeneration unimplemented '
- 'for %s flag %r env_name %r' % (action, opt,
- env_name))
- else:
- print >>sys.stderr, ('Warning: regeneration unimplemented for action %r '
- 'flag %r' % (action, opt))
-
- return flags
-
-class RegeneratableOptionParser(optparse.OptionParser):
- def __init__(self):
- self.__regeneratable_options = {}
- optparse.OptionParser.__init__(self)
-
- def add_option(self, *args, **kw):
- """Add an option to the parser.
-
- This accepts the same arguments as OptionParser.add_option, plus the
- following:
- regenerate: can be set to False to prevent this option from being included
- in regeneration.
- env_name: name of environment variable that additional values for this
- option come from.
- type: adds type='path', to tell the regenerator that the values of
- this option need to be made relative to options.depth
- """
- env_name = kw.pop('env_name', None)
- if 'dest' in kw and kw.pop('regenerate', True):
- dest = kw['dest']
-
- # The path type is needed for regenerating, for optparse we can just treat
- # it as a string.
- type = kw.get('type')
- if type == 'path':
- kw['type'] = 'string'
-
- self.__regeneratable_options[dest] = {
- 'action': kw.get('action'),
- 'type': type,
- 'env_name': env_name,
- 'opt': args[0],
- }
-
- optparse.OptionParser.add_option(self, *args, **kw)
-
- def parse_args(self, *args):
- values, args = optparse.OptionParser.parse_args(self, *args)
- values._regeneration_metadata = self.__regeneratable_options
- return values, args
-
-def gyp_main(args):
- my_name = os.path.basename(sys.argv[0])
-
- parser = RegeneratableOptionParser()
- usage = 'usage: %s [options ...] [build_file ...]'
- parser.set_usage(usage.replace('%s', '%prog'))
- parser.add_option('--build', dest='configs', action='append',
- help='configuration for build after project generation')
- parser.add_option('--check', dest='check', action='store_true',
- help='check format of gyp files')
- parser.add_option('--config-dir', dest='config_dir', action='store',
- env_name='GYP_CONFIG_DIR', default=None,
- help='The location for configuration files like '
- 'include.gypi.')
- parser.add_option('-d', '--debug', dest='debug', metavar='DEBUGMODE',
- action='append', default=[], help='turn on a debugging '
- 'mode for debugging GYP. Supported modes are "variables", '
- '"includes" and "general" or "all" for all of them.')
- parser.add_option('-D', dest='defines', action='append', metavar='VAR=VAL',
- env_name='GYP_DEFINES',
- help='sets variable VAR to value VAL')
- parser.add_option('--depth', dest='depth', metavar='PATH', type='path',
- help='set DEPTH gyp variable to a relative path to PATH')
- parser.add_option('-f', '--format', dest='formats', action='append',
- env_name='GYP_GENERATORS', regenerate=False,
- help='output formats to generate')
- parser.add_option('-G', dest='generator_flags', action='append', default=[],
- metavar='FLAG=VAL', env_name='GYP_GENERATOR_FLAGS',
- help='sets generator flag FLAG to VAL')
- parser.add_option('--generator-output', dest='generator_output',
- action='store', default=None, metavar='DIR', type='path',
- env_name='GYP_GENERATOR_OUTPUT',
- help='puts generated build files under DIR')
- parser.add_option('--ignore-environment', dest='use_environment',
- action='store_false', default=True, regenerate=False,
- help='do not read options from environment variables')
- parser.add_option('-I', '--include', dest='includes', action='append',
- metavar='INCLUDE', type='path',
- help='files to include in all loaded .gyp files')
- # --no-circular-check disables the check for circular relationships between
- # .gyp files. These relationships should not exist, but they've only been
- # observed to be harmful with the Xcode generator. Chromium's .gyp files
- # currently have some circular relationships on non-Mac platforms, so this
- # option allows the strict behavior to be used on Macs and the lenient
- # behavior to be used elsewhere.
- # TODO(mark): Remove this option when http://crbug.com/35878 is fixed.
- parser.add_option('--no-circular-check', dest='circular_check',
- action='store_false', default=True, regenerate=False,
- help="don't check for circular relationships between files")
- # --no-duplicate-basename-check disables the check for duplicate basenames
- # in a static_library/shared_library project. Visual C++ 2008 generator
- # doesn't support this configuration. Libtool on Mac also generates warnings
- # when duplicate basenames are passed into Make generator on Mac.
- # TODO(yukawa): Remove this option when these legacy generators are
- # deprecated.
- parser.add_option('--no-duplicate-basename-check',
- dest='duplicate_basename_check', action='store_false',
- default=True, regenerate=False,
- help="don't check for duplicate basenames")
- parser.add_option('--no-parallel', action='store_true', default=False,
- help='Disable multiprocessing')
- parser.add_option('-S', '--suffix', dest='suffix', default='',
- help='suffix to add to generated files')
- parser.add_option('--toplevel-dir', dest='toplevel_dir', action='store',
- default=None, metavar='DIR', type='path',
- help='directory to use as the root of the source tree')
- parser.add_option('-R', '--root-target', dest='root_targets',
- action='append', metavar='TARGET',
- help='include only TARGET and its deep dependencies')
-
- options, build_files_arg = parser.parse_args(args)
- build_files = build_files_arg
-
- # Set up the configuration directory (defaults to ~/.gyp)
- if not options.config_dir:
- home = None
- home_dot_gyp = None
- if options.use_environment:
- home_dot_gyp = os.environ.get('GYP_CONFIG_DIR', None)
- if home_dot_gyp:
- home_dot_gyp = os.path.expanduser(home_dot_gyp)
-
- if not home_dot_gyp:
- home_vars = ['HOME']
- if sys.platform in ('cygwin', 'win32'):
- home_vars.append('USERPROFILE')
- for home_var in home_vars:
- home = os.getenv(home_var)
- if home != None:
- home_dot_gyp = os.path.join(home, '.gyp')
- if not os.path.exists(home_dot_gyp):
- home_dot_gyp = None
- else:
- break
- else:
- home_dot_gyp = os.path.expanduser(options.config_dir)
-
- if home_dot_gyp and not os.path.exists(home_dot_gyp):
- home_dot_gyp = None
-
- if not options.formats:
- # If no format was given on the command line, then check the env variable.
- generate_formats = []
- if options.use_environment:
- generate_formats = os.environ.get('GYP_GENERATORS', [])
- if generate_formats:
- generate_formats = re.split(r'[\s,]', generate_formats)
- if generate_formats:
- options.formats = generate_formats
- else:
- # Nothing in the variable, default based on platform.
- if sys.platform == 'darwin':
- options.formats = ['xcode']
- elif sys.platform in ('win32', 'cygwin'):
- options.formats = ['msvs']
- else:
- options.formats = ['make']
-
- if not options.generator_output and options.use_environment:
- g_o = os.environ.get('GYP_GENERATOR_OUTPUT')
- if g_o:
- options.generator_output = g_o
-
- options.parallel = not options.no_parallel
-
- for mode in options.debug:
- gyp.debug[mode] = 1
-
- # Do an extra check to avoid work when we're not debugging.
- if DEBUG_GENERAL in gyp.debug:
- DebugOutput(DEBUG_GENERAL, 'running with these options:')
- for option, value in sorted(options.__dict__.items()):
- if option[0] == '_':
- continue
- if isinstance(value, basestring):
- DebugOutput(DEBUG_GENERAL, " %s: '%s'", option, value)
- else:
- DebugOutput(DEBUG_GENERAL, " %s: %s", option, value)
-
- if not build_files:
- build_files = FindBuildFiles()
- if not build_files:
- raise GypError((usage + '\n\n%s: error: no build_file') %
- (my_name, my_name))
-
- # TODO(mark): Chromium-specific hack!
- # For Chromium, the gyp "depth" variable should always be a relative path
- # to Chromium's top-level "src" directory. If no depth variable was set
- # on the command line, try to find a "src" directory by looking at the
- # absolute path to each build file's directory. The first "src" component
- # found will be treated as though it were the path used for --depth.
- if not options.depth:
- for build_file in build_files:
- build_file_dir = os.path.abspath(os.path.dirname(build_file))
- build_file_dir_components = build_file_dir.split(os.path.sep)
- components_len = len(build_file_dir_components)
- for index in xrange(components_len - 1, -1, -1):
- if build_file_dir_components[index] == 'src':
- options.depth = os.path.sep.join(build_file_dir_components)
- break
- del build_file_dir_components[index]
-
- # If the inner loop found something, break without advancing to another
- # build file.
- if options.depth:
- break
-
- if not options.depth:
- raise GypError('Could not automatically locate src directory. This is'
- 'a temporary Chromium feature that will be removed. Use'
- '--depth as a workaround.')
-
- # If toplevel-dir is not set, we assume that depth is the root of our source
- # tree.
- if not options.toplevel_dir:
- options.toplevel_dir = options.depth
-
- # -D on the command line sets variable defaults - D isn't just for define,
- # it's for default. Perhaps there should be a way to force (-F?) a
- # variable's value so that it can't be overridden by anything else.
- cmdline_default_variables = {}
- defines = []
- if options.use_environment:
- defines += ShlexEnv('GYP_DEFINES')
- if options.defines:
- defines += options.defines
- cmdline_default_variables = NameValueListToDict(defines)
- if DEBUG_GENERAL in gyp.debug:
- DebugOutput(DEBUG_GENERAL,
- "cmdline_default_variables: %s", cmdline_default_variables)
-
- # Set up includes.
- includes = []
-
- # If ~/.gyp/include.gypi exists, it'll be forcibly included into every
- # .gyp file that's loaded, before anything else is included.
- if home_dot_gyp != None:
- default_include = os.path.join(home_dot_gyp, 'include.gypi')
- if os.path.exists(default_include):
- print 'Using overrides found in ' + default_include
- includes.append(default_include)
-
- # Command-line --include files come after the default include.
- if options.includes:
- includes.extend(options.includes)
-
- # Generator flags should be prefixed with the target generator since they
- # are global across all generator runs.
- gen_flags = []
- if options.use_environment:
- gen_flags += ShlexEnv('GYP_GENERATOR_FLAGS')
- if options.generator_flags:
- gen_flags += options.generator_flags
- generator_flags = NameValueListToDict(gen_flags)
- if DEBUG_GENERAL in gyp.debug.keys():
- DebugOutput(DEBUG_GENERAL, "generator_flags: %s", generator_flags)
-
- # Generate all requested formats (use a set in case we got one format request
- # twice)
- for format in set(options.formats):
- params = {'options': options,
- 'build_files': build_files,
- 'generator_flags': generator_flags,
- 'cwd': os.getcwd(),
- 'build_files_arg': build_files_arg,
- 'gyp_binary': sys.argv[0],
- 'home_dot_gyp': home_dot_gyp,
- 'parallel': options.parallel,
- 'root_targets': options.root_targets,
- 'target_arch': cmdline_default_variables.get('target_arch', '')}
-
- # Start with the default variables from the command line.
- [generator, flat_list, targets, data] = Load(
- build_files, format, cmdline_default_variables, includes, options.depth,
- params, options.check, options.circular_check,
- options.duplicate_basename_check)
-
- # TODO(mark): Pass |data| for now because the generator needs a list of
- # build files that came in. In the future, maybe it should just accept
- # a list, and not the whole data dict.
- # NOTE: flat_list is the flattened dependency graph specifying the order
- # that targets may be built. Build systems that operate serially or that
- # need to have dependencies defined before dependents reference them should
- # generate targets in the order specified in flat_list.
- generator.GenerateOutput(flat_list, targets, data, params)
-
- if options.configs:
- valid_configs = targets[flat_list[0]]['configurations'].keys()
- for conf in options.configs:
- if conf not in valid_configs:
- raise GypError('Invalid config specified via --build: %s' % conf)
- generator.PerformBuild(data, options.configs, params)
-
- # Done
- return 0
-
-
-def main(args):
- try:
- return gyp_main(args)
- except GypError, e:
- sys.stderr.write("gyp: %s\n" % e)
- return 1
-
-# NOTE: setuptools generated console_scripts calls function with no arguments
-def script_main():
- return main(sys.argv[1:])
-
-if __name__ == '__main__':
- sys.exit(script_main())
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/common.py b/node_modules/node-gyp/gyp/pylib/gyp/common.py
deleted file mode 100644
index 5011187..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/common.py
+++ /dev/null
@@ -1,612 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from __future__ import with_statement
-
-import collections
-import errno
-import filecmp
-import os.path
-import re
-import tempfile
-import sys
-
-
-# A minimal memoizing decorator. It'll blow up if the args aren't immutable,
-# among other "problems".
-class memoize(object):
- def __init__(self, func):
- self.func = func
- self.cache = {}
- def __call__(self, *args):
- try:
- return self.cache[args]
- except KeyError:
- result = self.func(*args)
- self.cache[args] = result
- return result
-
-
-class GypError(Exception):
- """Error class representing an error, which is to be presented
- to the user. The main entry point will catch and display this.
- """
- pass
-
-
-def ExceptionAppend(e, msg):
- """Append a message to the given exception's message."""
- if not e.args:
- e.args = (msg,)
- elif len(e.args) == 1:
- e.args = (str(e.args[0]) + ' ' + msg,)
- else:
- e.args = (str(e.args[0]) + ' ' + msg,) + e.args[1:]
-
-
-def FindQualifiedTargets(target, qualified_list):
- """
- Given a list of qualified targets, return the qualified targets for the
- specified |target|.
- """
- return [t for t in qualified_list if ParseQualifiedTarget(t)[1] == target]
-
-
-def ParseQualifiedTarget(target):
- # Splits a qualified target into a build file, target name and toolset.
-
- # NOTE: rsplit is used to disambiguate the Windows drive letter separator.
- target_split = target.rsplit(':', 1)
- if len(target_split) == 2:
- [build_file, target] = target_split
- else:
- build_file = None
-
- target_split = target.rsplit('#', 1)
- if len(target_split) == 2:
- [target, toolset] = target_split
- else:
- toolset = None
-
- return [build_file, target, toolset]
-
-
-def ResolveTarget(build_file, target, toolset):
- # This function resolves a target into a canonical form:
- # - a fully defined build file, either absolute or relative to the current
- # directory
- # - a target name
- # - a toolset
- #
- # build_file is the file relative to which 'target' is defined.
- # target is the qualified target.
- # toolset is the default toolset for that target.
- [parsed_build_file, target, parsed_toolset] = ParseQualifiedTarget(target)
-
- if parsed_build_file:
- if build_file:
- # If a relative path, parsed_build_file is relative to the directory
- # containing build_file. If build_file is not in the current directory,
- # parsed_build_file is not a usable path as-is. Resolve it by
- # interpreting it as relative to build_file. If parsed_build_file is
- # absolute, it is usable as a path regardless of the current directory,
- # and os.path.join will return it as-is.
- build_file = os.path.normpath(os.path.join(os.path.dirname(build_file),
- parsed_build_file))
- # Further (to handle cases like ../cwd), make it relative to cwd)
- if not os.path.isabs(build_file):
- build_file = RelativePath(build_file, '.')
- else:
- build_file = parsed_build_file
-
- if parsed_toolset:
- toolset = parsed_toolset
-
- return [build_file, target, toolset]
-
-
-def BuildFile(fully_qualified_target):
- # Extracts the build file from the fully qualified target.
- return ParseQualifiedTarget(fully_qualified_target)[0]
-
-
-def GetEnvironFallback(var_list, default):
- """Look up a key in the environment, with fallback to secondary keys
- and finally falling back to a default value."""
- for var in var_list:
- if var in os.environ:
- return os.environ[var]
- return default
-
-
-def QualifiedTarget(build_file, target, toolset):
- # "Qualified" means the file that a target was defined in and the target
- # name, separated by a colon, suffixed by a # and the toolset name:
- # /path/to/file.gyp:target_name#toolset
- fully_qualified = build_file + ':' + target
- if toolset:
- fully_qualified = fully_qualified + '#' + toolset
- return fully_qualified
-
-
-@memoize
-def RelativePath(path, relative_to, follow_path_symlink=True):
- # Assuming both |path| and |relative_to| are relative to the current
- # directory, returns a relative path that identifies path relative to
- # relative_to.
- # If |follow_symlink_path| is true (default) and |path| is a symlink, then
- # this method returns a path to the real file represented by |path|. If it is
- # false, this method returns a path to the symlink. If |path| is not a
- # symlink, this option has no effect.
-
- # Convert to normalized (and therefore absolute paths).
- if follow_path_symlink:
- path = os.path.realpath(path)
- else:
- path = os.path.abspath(path)
- relative_to = os.path.realpath(relative_to)
-
- # On Windows, we can't create a relative path to a different drive, so just
- # use the absolute path.
- if sys.platform == 'win32':
- if (os.path.splitdrive(path)[0].lower() !=
- os.path.splitdrive(relative_to)[0].lower()):
- return path
-
- # Split the paths into components.
- path_split = path.split(os.path.sep)
- relative_to_split = relative_to.split(os.path.sep)
-
- # Determine how much of the prefix the two paths share.
- prefix_len = len(os.path.commonprefix([path_split, relative_to_split]))
-
- # Put enough ".." components to back up out of relative_to to the common
- # prefix, and then append the part of path_split after the common prefix.
- relative_split = [os.path.pardir] * (len(relative_to_split) - prefix_len) + \
- path_split[prefix_len:]
-
- if len(relative_split) == 0:
- # The paths were the same.
- return ''
-
- # Turn it back into a string and we're done.
- return os.path.join(*relative_split)
-
-
-@memoize
-def InvertRelativePath(path, toplevel_dir=None):
- """Given a path like foo/bar that is relative to toplevel_dir, return
- the inverse relative path back to the toplevel_dir.
-
- E.g. os.path.normpath(os.path.join(path, InvertRelativePath(path)))
- should always produce the empty string, unless the path contains symlinks.
- """
- if not path:
- return path
- toplevel_dir = '.' if toplevel_dir is None else toplevel_dir
- return RelativePath(toplevel_dir, os.path.join(toplevel_dir, path))
-
-
-def FixIfRelativePath(path, relative_to):
- # Like RelativePath but returns |path| unchanged if it is absolute.
- if os.path.isabs(path):
- return path
- return RelativePath(path, relative_to)
-
-
-def UnrelativePath(path, relative_to):
- # Assuming that |relative_to| is relative to the current directory, and |path|
- # is a path relative to the dirname of |relative_to|, returns a path that
- # identifies |path| relative to the current directory.
- rel_dir = os.path.dirname(relative_to)
- return os.path.normpath(os.path.join(rel_dir, path))
-
-
-# re objects used by EncodePOSIXShellArgument. See IEEE 1003.1 XCU.2.2 at
-# http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_02
-# and the documentation for various shells.
-
-# _quote is a pattern that should match any argument that needs to be quoted
-# with double-quotes by EncodePOSIXShellArgument. It matches the following
-# characters appearing anywhere in an argument:
-# \t, \n, space parameter separators
-# # comments
-# $ expansions (quoted to always expand within one argument)
-# % called out by IEEE 1003.1 XCU.2.2
-# & job control
-# ' quoting
-# (, ) subshell execution
-# *, ?, [ pathname expansion
-# ; command delimiter
-# <, >, | redirection
-# = assignment
-# {, } brace expansion (bash)
-# ~ tilde expansion
-# It also matches the empty string, because "" (or '') is the only way to
-# represent an empty string literal argument to a POSIX shell.
-#
-# This does not match the characters in _escape, because those need to be
-# backslash-escaped regardless of whether they appear in a double-quoted
-# string.
-_quote = re.compile('[\t\n #$%&\'()*;<=>?[{|}~]|^$')
-
-# _escape is a pattern that should match any character that needs to be
-# escaped with a backslash, whether or not the argument matched the _quote
-# pattern. _escape is used with re.sub to backslash anything in _escape's
-# first match group, hence the (parentheses) in the regular expression.
-#
-# _escape matches the following characters appearing anywhere in an argument:
-# " to prevent POSIX shells from interpreting this character for quoting
-# \ to prevent POSIX shells from interpreting this character for escaping
-# ` to prevent POSIX shells from interpreting this character for command
-# substitution
-# Missing from this list is $, because the desired behavior of
-# EncodePOSIXShellArgument is to permit parameter (variable) expansion.
-#
-# Also missing from this list is !, which bash will interpret as the history
-# expansion character when history is enabled. bash does not enable history
-# by default in non-interactive shells, so this is not thought to be a problem.
-# ! was omitted from this list because bash interprets "\!" as a literal string
-# including the backslash character (avoiding history expansion but retaining
-# the backslash), which would not be correct for argument encoding. Handling
-# this case properly would also be problematic because bash allows the history
-# character to be changed with the histchars shell variable. Fortunately,
-# as history is not enabled in non-interactive shells and
-# EncodePOSIXShellArgument is only expected to encode for non-interactive
-# shells, there is no room for error here by ignoring !.
-_escape = re.compile(r'(["\\`])')
-
-def EncodePOSIXShellArgument(argument):
- """Encodes |argument| suitably for consumption by POSIX shells.
-
- argument may be quoted and escaped as necessary to ensure that POSIX shells
- treat the returned value as a literal representing the argument passed to
- this function. Parameter (variable) expansions beginning with $ are allowed
- to remain intact without escaping the $, to allow the argument to contain
- references to variables to be expanded by the shell.
- """
-
- if not isinstance(argument, str):
- argument = str(argument)
-
- if _quote.search(argument):
- quote = '"'
- else:
- quote = ''
-
- encoded = quote + re.sub(_escape, r'\\\1', argument) + quote
-
- return encoded
-
-
-def EncodePOSIXShellList(list):
- """Encodes |list| suitably for consumption by POSIX shells.
-
- Returns EncodePOSIXShellArgument for each item in list, and joins them
- together using the space character as an argument separator.
- """
-
- encoded_arguments = []
- for argument in list:
- encoded_arguments.append(EncodePOSIXShellArgument(argument))
- return ' '.join(encoded_arguments)
-
-
-def DeepDependencyTargets(target_dicts, roots):
- """Returns the recursive list of target dependencies."""
- dependencies = set()
- pending = set(roots)
- while pending:
- # Pluck out one.
- r = pending.pop()
- # Skip if visited already.
- if r in dependencies:
- continue
- # Add it.
- dependencies.add(r)
- # Add its children.
- spec = target_dicts[r]
- pending.update(set(spec.get('dependencies', [])))
- pending.update(set(spec.get('dependencies_original', [])))
- return list(dependencies - set(roots))
-
-
-def BuildFileTargets(target_list, build_file):
- """From a target_list, returns the subset from the specified build_file.
- """
- return [p for p in target_list if BuildFile(p) == build_file]
-
-
-def AllTargets(target_list, target_dicts, build_file):
- """Returns all targets (direct and dependencies) for the specified build_file.
- """
- bftargets = BuildFileTargets(target_list, build_file)
- deptargets = DeepDependencyTargets(target_dicts, bftargets)
- return bftargets + deptargets
-
-
-def WriteOnDiff(filename):
- """Write to a file only if the new contents differ.
-
- Arguments:
- filename: name of the file to potentially write to.
- Returns:
- A file like object which will write to temporary file and only overwrite
- the target if it differs (on close).
- """
-
- class Writer(object):
- """Wrapper around file which only covers the target if it differs."""
- def __init__(self):
- # Pick temporary file.
- tmp_fd, self.tmp_path = tempfile.mkstemp(
- suffix='.tmp',
- prefix=os.path.split(filename)[1] + '.gyp.',
- dir=os.path.split(filename)[0])
- try:
- self.tmp_file = os.fdopen(tmp_fd, 'wb')
- except Exception:
- # Don't leave turds behind.
- os.unlink(self.tmp_path)
- raise
-
- def __getattr__(self, attrname):
- # Delegate everything else to self.tmp_file
- return getattr(self.tmp_file, attrname)
-
- def close(self):
- try:
- # Close tmp file.
- self.tmp_file.close()
- # Determine if different.
- same = False
- try:
- same = filecmp.cmp(self.tmp_path, filename, False)
- except OSError, e:
- if e.errno != errno.ENOENT:
- raise
-
- if same:
- # The new file is identical to the old one, just get rid of the new
- # one.
- os.unlink(self.tmp_path)
- else:
- # The new file is different from the old one, or there is no old one.
- # Rename the new file to the permanent name.
- #
- # tempfile.mkstemp uses an overly restrictive mode, resulting in a
- # file that can only be read by the owner, regardless of the umask.
- # There's no reason to not respect the umask here, which means that
- # an extra hoop is required to fetch it and reset the new file's mode.
- #
- # No way to get the umask without setting a new one? Set a safe one
- # and then set it back to the old value.
- umask = os.umask(077)
- os.umask(umask)
- os.chmod(self.tmp_path, 0666 & ~umask)
- if sys.platform == 'win32' and os.path.exists(filename):
- # NOTE: on windows (but not cygwin) rename will not replace an
- # existing file, so it must be preceded with a remove. Sadly there
- # is no way to make the switch atomic.
- os.remove(filename)
- os.rename(self.tmp_path, filename)
- except Exception:
- # Don't leave turds behind.
- os.unlink(self.tmp_path)
- raise
-
- return Writer()
-
-
-def EnsureDirExists(path):
- """Make sure the directory for |path| exists."""
- try:
- os.makedirs(os.path.dirname(path))
- except OSError:
- pass
-
-
-def GetFlavor(params):
- """Returns |params.flavor| if it's set, the system's default flavor else."""
- flavors = {
- 'cygwin': 'win',
- 'win32': 'win',
- 'darwin': 'mac',
- }
-
- if 'flavor' in params:
- return params['flavor']
- if sys.platform in flavors:
- return flavors[sys.platform]
- if sys.platform.startswith('sunos'):
- return 'solaris'
- if sys.platform.startswith('freebsd'):
- return 'freebsd'
- if sys.platform.startswith('openbsd'):
- return 'openbsd'
- if sys.platform.startswith('netbsd'):
- return 'netbsd'
- if sys.platform.startswith('aix'):
- return 'aix'
- if sys.platform.startswith('zos'):
- return 'zos'
- if sys.platform.startswith('os390'):
- return 'zos'
-
- return 'linux'
-
-
-def CopyTool(flavor, out_path):
- """Finds (flock|mac|win)_tool.gyp in the gyp directory and copies it
- to |out_path|."""
- # aix and solaris just need flock emulation. mac and win use more complicated
- # support scripts.
- prefix = {
- 'aix': 'flock',
- 'solaris': 'flock',
- 'mac': 'mac',
- 'win': 'win'
- }.get(flavor, None)
- if not prefix:
- return
-
- # Slurp input file.
- source_path = os.path.join(
- os.path.dirname(os.path.abspath(__file__)), '%s_tool.py' % prefix)
- with open(source_path) as source_file:
- source = source_file.readlines()
-
- # Add header and write it out.
- tool_path = os.path.join(out_path, 'gyp-%s-tool' % prefix)
- with open(tool_path, 'w') as tool_file:
- tool_file.write(
- ''.join([source[0], '# Generated by gyp. Do not edit.\n'] + source[1:]))
-
- # Make file executable.
- os.chmod(tool_path, 0755)
-
-
-# From Alex Martelli,
-# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52560
-# ASPN: Python Cookbook: Remove duplicates from a sequence
-# First comment, dated 2001/10/13.
-# (Also in the printed Python Cookbook.)
-
-def uniquer(seq, idfun=None):
- if idfun is None:
- idfun = lambda x: x
- seen = {}
- result = []
- for item in seq:
- marker = idfun(item)
- if marker in seen: continue
- seen[marker] = 1
- result.append(item)
- return result
-
-
-# Based on http://code.activestate.com/recipes/576694/.
-class OrderedSet(collections.MutableSet):
- def __init__(self, iterable=None):
- self.end = end = []
- end += [None, end, end] # sentinel node for doubly linked list
- self.map = {} # key --> [key, prev, next]
- if iterable is not None:
- self |= iterable
-
- def __len__(self):
- return len(self.map)
-
- def __contains__(self, key):
- return key in self.map
-
- def add(self, key):
- if key not in self.map:
- end = self.end
- curr = end[1]
- curr[2] = end[1] = self.map[key] = [key, curr, end]
-
- def discard(self, key):
- if key in self.map:
- key, prev_item, next_item = self.map.pop(key)
- prev_item[2] = next_item
- next_item[1] = prev_item
-
- def __iter__(self):
- end = self.end
- curr = end[2]
- while curr is not end:
- yield curr[0]
- curr = curr[2]
-
- def __reversed__(self):
- end = self.end
- curr = end[1]
- while curr is not end:
- yield curr[0]
- curr = curr[1]
-
- # The second argument is an addition that causes a pylint warning.
- def pop(self, last=True): # pylint: disable=W0221
- if not self:
- raise KeyError('set is empty')
- key = self.end[1][0] if last else self.end[2][0]
- self.discard(key)
- return key
-
- def __repr__(self):
- if not self:
- return '%s()' % (self.__class__.__name__,)
- return '%s(%r)' % (self.__class__.__name__, list(self))
-
- def __eq__(self, other):
- if isinstance(other, OrderedSet):
- return len(self) == len(other) and list(self) == list(other)
- return set(self) == set(other)
-
- # Extensions to the recipe.
- def update(self, iterable):
- for i in iterable:
- if i not in self:
- self.add(i)
-
-
-class CycleError(Exception):
- """An exception raised when an unexpected cycle is detected."""
- def __init__(self, nodes):
- self.nodes = nodes
- def __str__(self):
- return 'CycleError: cycle involving: ' + str(self.nodes)
-
-
-def TopologicallySorted(graph, get_edges):
- r"""Topologically sort based on a user provided edge definition.
-
- Args:
- graph: A list of node names.
- get_edges: A function mapping from node name to a hashable collection
- of node names which this node has outgoing edges to.
- Returns:
- A list containing all of the node in graph in topological order.
- It is assumed that calling get_edges once for each node and caching is
- cheaper than repeatedly calling get_edges.
- Raises:
- CycleError in the event of a cycle.
- Example:
- graph = {'a': '$(b) $(c)', 'b': 'hi', 'c': '$(b)'}
- def GetEdges(node):
- return re.findall(r'\$\(([^))]\)', graph[node])
- print TopologicallySorted(graph.keys(), GetEdges)
- ==>
- ['a', 'c', b']
- """
- get_edges = memoize(get_edges)
- visited = set()
- visiting = set()
- ordered_nodes = []
- def Visit(node):
- if node in visiting:
- raise CycleError(visiting)
- if node in visited:
- return
- visited.add(node)
- visiting.add(node)
- for neighbor in get_edges(node):
- Visit(neighbor)
- visiting.remove(node)
- ordered_nodes.insert(0, node)
- for node in sorted(graph):
- Visit(node)
- return ordered_nodes
-
-def CrossCompileRequested():
- # TODO: figure out how to not build extra host objects in the
- # non-cross-compile case when this is enabled, and enable unconditionally.
- return (os.environ.get('GYP_CROSSCOMPILE') or
- os.environ.get('AR_host') or
- os.environ.get('CC_host') or
- os.environ.get('CXX_host') or
- os.environ.get('AR_target') or
- os.environ.get('CC_target') or
- os.environ.get('CXX_target'))
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/common_test.py b/node_modules/node-gyp/gyp/pylib/gyp/common_test.py
deleted file mode 100755
index ad6f9a1..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/common_test.py
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Unit tests for the common.py file."""
-
-import gyp.common
-import unittest
-import sys
-
-
-class TestTopologicallySorted(unittest.TestCase):
- def test_Valid(self):
- """Test that sorting works on a valid graph with one possible order."""
- graph = {
- 'a': ['b', 'c'],
- 'b': [],
- 'c': ['d'],
- 'd': ['b'],
- }
- def GetEdge(node):
- return tuple(graph[node])
- self.assertEqual(
- gyp.common.TopologicallySorted(graph.keys(), GetEdge),
- ['a', 'c', 'd', 'b'])
-
- def test_Cycle(self):
- """Test that an exception is thrown on a cyclic graph."""
- graph = {
- 'a': ['b'],
- 'b': ['c'],
- 'c': ['d'],
- 'd': ['a'],
- }
- def GetEdge(node):
- return tuple(graph[node])
- self.assertRaises(
- gyp.common.CycleError, gyp.common.TopologicallySorted,
- graph.keys(), GetEdge)
-
-
-class TestGetFlavor(unittest.TestCase):
- """Test that gyp.common.GetFlavor works as intended"""
- original_platform = ''
-
- def setUp(self):
- self.original_platform = sys.platform
-
- def tearDown(self):
- sys.platform = self.original_platform
-
- def assertFlavor(self, expected, argument, param):
- sys.platform = argument
- self.assertEqual(expected, gyp.common.GetFlavor(param))
-
- def test_platform_default(self):
- self.assertFlavor('freebsd', 'freebsd9' , {})
- self.assertFlavor('freebsd', 'freebsd10', {})
- self.assertFlavor('openbsd', 'openbsd5' , {})
- self.assertFlavor('solaris', 'sunos5' , {});
- self.assertFlavor('solaris', 'sunos' , {});
- self.assertFlavor('linux' , 'linux2' , {});
- self.assertFlavor('linux' , 'linux3' , {});
-
- def test_param(self):
- self.assertFlavor('foobar', 'linux2' , {'flavor': 'foobar'})
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py b/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py
deleted file mode 100644
index 841f31f..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py
+++ /dev/null
@@ -1,162 +0,0 @@
-# Copyright (c) 2011 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import re
-import os
-import locale
-
-
-def XmlToString(content, encoding='utf-8', pretty=False):
- """ Writes the XML content to disk, touching the file only if it has changed.
-
- Visual Studio files have a lot of pre-defined structures. This function makes
- it easy to represent these structures as Python data structures, instead of
- having to create a lot of function calls.
-
- Each XML element of the content is represented as a list composed of:
- 1. The name of the element, a string,
- 2. The attributes of the element, a dictionary (optional), and
- 3+. The content of the element, if any. Strings are simple text nodes and
- lists are child elements.
-
- Example 1:
- <test/>
- becomes
- ['test']
-
- Example 2:
- <myelement a='value1' b='value2'>
- <childtype>This is</childtype>
- <childtype>it!</childtype>
- </myelement>
-
- becomes
- ['myelement', {'a':'value1', 'b':'value2'},
- ['childtype', 'This is'],
- ['childtype', 'it!'],
- ]
-
- Args:
- content: The structured content to be converted.
- encoding: The encoding to report on the first XML line.
- pretty: True if we want pretty printing with indents and new lines.
-
- Returns:
- The XML content as a string.
- """
- # We create a huge list of all the elements of the file.
- xml_parts = ['<?xml version="1.0" encoding="%s"?>' % encoding]
- if pretty:
- xml_parts.append('\n')
- _ConstructContentList(xml_parts, content, pretty)
-
- # Convert it to a string
- return ''.join(xml_parts)
-
-
-def _ConstructContentList(xml_parts, specification, pretty, level=0):
- """ Appends the XML parts corresponding to the specification.
-
- Args:
- xml_parts: A list of XML parts to be appended to.
- specification: The specification of the element. See EasyXml docs.
- pretty: True if we want pretty printing with indents and new lines.
- level: Indentation level.
- """
- # The first item in a specification is the name of the element.
- if pretty:
- indentation = ' ' * level
- new_line = '\n'
- else:
- indentation = ''
- new_line = ''
- name = specification[0]
- if not isinstance(name, str):
- raise Exception('The first item of an EasyXml specification should be '
- 'a string. Specification was ' + str(specification))
- xml_parts.append(indentation + '<' + name)
-
- # Optionally in second position is a dictionary of the attributes.
- rest = specification[1:]
- if rest and isinstance(rest[0], dict):
- for at, val in sorted(rest[0].iteritems()):
- xml_parts.append(' %s="%s"' % (at, _XmlEscape(val, attr=True)))
- rest = rest[1:]
- if rest:
- xml_parts.append('>')
- all_strings = reduce(lambda x, y: x and isinstance(y, str), rest, True)
- multi_line = not all_strings
- if multi_line and new_line:
- xml_parts.append(new_line)
- for child_spec in rest:
- # If it's a string, append a text node.
- # Otherwise recurse over that child definition
- if isinstance(child_spec, str):
- xml_parts.append(_XmlEscape(child_spec))
- else:
- _ConstructContentList(xml_parts, child_spec, pretty, level + 1)
- if multi_line and indentation:
- xml_parts.append(indentation)
- xml_parts.append('</%s>%s' % (name, new_line))
- else:
- xml_parts.append('/>%s' % new_line)
-
-
-def WriteXmlIfChanged(content, path, encoding='utf-8', pretty=False,
- win32=False):
- """ Writes the XML content to disk, touching the file only if it has changed.
-
- Args:
- content: The structured content to be written.
- path: Location of the file.
- encoding: The encoding to report on the first line of the XML file.
- pretty: True if we want pretty printing with indents and new lines.
- """
- xml_string = XmlToString(content, encoding, pretty)
- if win32 and os.linesep != '\r\n':
- xml_string = xml_string.replace('\n', '\r\n')
-
- default_encoding = locale.getdefaultlocale()[1]
- if default_encoding.upper() != encoding.upper():
- xml_string = xml_string.decode(default_encoding).encode(encoding)
-
- # Get the old content
- try:
- f = open(path, 'r')
- existing = f.read()
- f.close()
- except:
- existing = None
-
- # It has changed, write it
- if existing != xml_string:
- f = open(path, 'w')
- f.write(xml_string)
- f.close()
-
-
-_xml_escape_map = {
- '"': '&quot;',
- "'": '&apos;',
- '<': '&lt;',
- '>': '&gt;',
- '&': '&amp;',
- '\n': '&#xA;',
- '\r': '&#xD;',
-}
-
-
-_xml_escape_re = re.compile(
- "(%s)" % "|".join(map(re.escape, _xml_escape_map.keys())))
-
-
-def _XmlEscape(value, attr=False):
- """ Escape a string for inclusion in XML."""
- def replace(match):
- m = match.string[match.start() : match.end()]
- # don't replace single quotes in attrs
- if attr and m == "'":
- return m
- return _xml_escape_map[m]
- return _xml_escape_re.sub(replace, value)
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py b/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py
deleted file mode 100755
index df64354..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2011 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-""" Unit tests for the easy_xml.py file. """
-
-import gyp.easy_xml as easy_xml
-import unittest
-import StringIO
-
-
-class TestSequenceFunctions(unittest.TestCase):
-
- def setUp(self):
- self.stderr = StringIO.StringIO()
-
- def test_EasyXml_simple(self):
- self.assertEqual(
- easy_xml.XmlToString(['test']),
- '<?xml version="1.0" encoding="utf-8"?><test/>')
-
- self.assertEqual(
- easy_xml.XmlToString(['test'], encoding='Windows-1252'),
- '<?xml version="1.0" encoding="Windows-1252"?><test/>')
-
- def test_EasyXml_simple_with_attributes(self):
- self.assertEqual(
- easy_xml.XmlToString(['test2', {'a': 'value1', 'b': 'value2'}]),
- '<?xml version="1.0" encoding="utf-8"?><test2 a="value1" b="value2"/>')
-
- def test_EasyXml_escaping(self):
- original = '<test>\'"\r&\nfoo'
- converted = '&lt;test&gt;\'&quot;&#xD;&amp;&#xA;foo'
- converted_apos = converted.replace("'", '&apos;')
- self.assertEqual(
- easy_xml.XmlToString(['test3', {'a': original}, original]),
- '<?xml version="1.0" encoding="utf-8"?><test3 a="%s">%s</test3>' %
- (converted, converted_apos))
-
- def test_EasyXml_pretty(self):
- self.assertEqual(
- easy_xml.XmlToString(
- ['test3',
- ['GrandParent',
- ['Parent1',
- ['Child']
- ],
- ['Parent2']
- ]
- ],
- pretty=True),
- '<?xml version="1.0" encoding="utf-8"?>\n'
- '<test3>\n'
- ' <GrandParent>\n'
- ' <Parent1>\n'
- ' <Child/>\n'
- ' </Parent1>\n'
- ' <Parent2/>\n'
- ' </GrandParent>\n'
- '</test3>\n')
-
-
- def test_EasyXml_complex(self):
- # We want to create:
- target = (
- '<?xml version="1.0" encoding="utf-8"?>'
- '<Project>'
- '<PropertyGroup Label="Globals">'
- '<ProjectGuid>{D2250C20-3A94-4FB9-AF73-11BC5B73884B}</ProjectGuid>'
- '<Keyword>Win32Proj</Keyword>'
- '<RootNamespace>automated_ui_tests</RootNamespace>'
- '</PropertyGroup>'
- '<Import Project="$(VCTargetsPath)\\Microsoft.Cpp.props"/>'
- '<PropertyGroup '
- 'Condition="\'$(Configuration)|$(Platform)\'=='
- '\'Debug|Win32\'" Label="Configuration">'
- '<ConfigurationType>Application</ConfigurationType>'
- '<CharacterSet>Unicode</CharacterSet>'
- '</PropertyGroup>'
- '</Project>')
-
- xml = easy_xml.XmlToString(
- ['Project',
- ['PropertyGroup', {'Label': 'Globals'},
- ['ProjectGuid', '{D2250C20-3A94-4FB9-AF73-11BC5B73884B}'],
- ['Keyword', 'Win32Proj'],
- ['RootNamespace', 'automated_ui_tests']
- ],
- ['Import', {'Project': '$(VCTargetsPath)\\Microsoft.Cpp.props'}],
- ['PropertyGroup',
- {'Condition': "'$(Configuration)|$(Platform)'=='Debug|Win32'",
- 'Label': 'Configuration'},
- ['ConfigurationType', 'Application'],
- ['CharacterSet', 'Unicode']
- ]
- ])
- self.assertEqual(xml, target)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py b/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py
deleted file mode 100755
index b38d866..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2011 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""These functions are executed via gyp-flock-tool when using the Makefile
-generator. Used on systems that don't have a built-in flock."""
-
-import fcntl
-import os
-import struct
-import subprocess
-import sys
-
-
-def main(args):
- executor = FlockTool()
- executor.Dispatch(args)
-
-
-class FlockTool(object):
- """This class emulates the 'flock' command."""
- def Dispatch(self, args):
- """Dispatches a string command to a method."""
- if len(args) < 1:
- raise Exception("Not enough arguments")
-
- method = "Exec%s" % self._CommandifyName(args[0])
- getattr(self, method)(*args[1:])
-
- def _CommandifyName(self, name_string):
- """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
- return name_string.title().replace('-', '')
-
- def ExecFlock(self, lockfile, *cmd_list):
- """Emulates the most basic behavior of Linux's flock(1)."""
- # Rely on exception handling to report errors.
- # Note that the stock python on SunOS has a bug
- # where fcntl.flock(fd, LOCK_EX) always fails
- # with EBADF, that's why we use this F_SETLK
- # hack instead.
- fd = os.open(lockfile, os.O_WRONLY|os.O_NOCTTY|os.O_CREAT, 0666)
- if sys.platform.startswith('aix'):
- # Python on AIX is compiled with LARGEFILE support, which changes the
- # struct size.
- op = struct.pack('hhIllqq', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
- else:
- op = struct.pack('hhllhhl', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
- fcntl.fcntl(fd, fcntl.F_SETLK, op)
- return subprocess.call(cmd_list)
-
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv[1:]))
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py
+++ /dev/null
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py
deleted file mode 100644
index 921c1a6..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py
+++ /dev/null
@@ -1,741 +0,0 @@
-# Copyright (c) 2014 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""
-This script is intended for use as a GYP_GENERATOR. It takes as input (by way of
-the generator flag config_path) the path of a json file that dictates the files
-and targets to search for. The following keys are supported:
-files: list of paths (relative) of the files to search for.
-test_targets: unqualified target names to search for. Any target in this list
-that depends upon a file in |files| is output regardless of the type of target
-or chain of dependencies.
-additional_compile_targets: Unqualified targets to search for in addition to
-test_targets. Targets in the combined list that depend upon a file in |files|
-are not necessarily output. For example, if the target is of type none then the
-target is not output (but one of the descendants of the target will be).
-
-The following is output:
-error: only supplied if there is an error.
-compile_targets: minimal set of targets that directly or indirectly (for
- targets of type none) depend on the files in |files| and is one of the
- supplied targets or a target that one of the supplied targets depends on.
- The expectation is this set of targets is passed into a build step. This list
- always contains the output of test_targets as well.
-test_targets: set of targets from the supplied |test_targets| that either
- directly or indirectly depend upon a file in |files|. This list if useful
- if additional processing needs to be done for certain targets after the
- build, such as running tests.
-status: outputs one of three values: none of the supplied files were found,
- one of the include files changed so that it should be assumed everything
- changed (in this case test_targets and compile_targets are not output) or at
- least one file was found.
-invalid_targets: list of supplied targets that were not found.
-
-Example:
-Consider a graph like the following:
- A D
- / \
-B C
-A depends upon both B and C, A is of type none and B and C are executables.
-D is an executable, has no dependencies and nothing depends on it.
-If |additional_compile_targets| = ["A"], |test_targets| = ["B", "C"] and
-files = ["b.cc", "d.cc"] (B depends upon b.cc and D depends upon d.cc), then
-the following is output:
-|compile_targets| = ["B"] B must built as it depends upon the changed file b.cc
-and the supplied target A depends upon it. A is not output as a build_target
-as it is of type none with no rules and actions.
-|test_targets| = ["B"] B directly depends upon the change file b.cc.
-
-Even though the file d.cc, which D depends upon, has changed D is not output
-as it was not supplied by way of |additional_compile_targets| or |test_targets|.
-
-If the generator flag analyzer_output_path is specified, output is written
-there. Otherwise output is written to stdout.
-
-In Gyp the "all" target is shorthand for the root targets in the files passed
-to gyp. For example, if file "a.gyp" contains targets "a1" and
-"a2", and file "b.gyp" contains targets "b1" and "b2" and "a2" has a dependency
-on "b2" and gyp is supplied "a.gyp" then "all" consists of "a1" and "a2".
-Notice that "b1" and "b2" are not in the "all" target as "b.gyp" was not
-directly supplied to gyp. OTOH if both "a.gyp" and "b.gyp" are supplied to gyp
-then the "all" target includes "b1" and "b2".
-"""
-
-import gyp.common
-import gyp.ninja_syntax as ninja_syntax
-import json
-import os
-import posixpath
-import sys
-
-debug = False
-
-found_dependency_string = 'Found dependency'
-no_dependency_string = 'No dependencies'
-# Status when it should be assumed that everything has changed.
-all_changed_string = 'Found dependency (all)'
-
-# MatchStatus is used indicate if and how a target depends upon the supplied
-# sources.
-# The target's sources contain one of the supplied paths.
-MATCH_STATUS_MATCHES = 1
-# The target has a dependency on another target that contains one of the
-# supplied paths.
-MATCH_STATUS_MATCHES_BY_DEPENDENCY = 2
-# The target's sources weren't in the supplied paths and none of the target's
-# dependencies depend upon a target that matched.
-MATCH_STATUS_DOESNT_MATCH = 3
-# The target doesn't contain the source, but the dependent targets have not yet
-# been visited to determine a more specific status yet.
-MATCH_STATUS_TBD = 4
-
-generator_supports_multiple_toolsets = gyp.common.CrossCompileRequested()
-
-generator_wants_static_library_dependencies_adjusted = False
-
-generator_default_variables = {
-}
-for dirname in ['INTERMEDIATE_DIR', 'SHARED_INTERMEDIATE_DIR', 'PRODUCT_DIR',
- 'LIB_DIR', 'SHARED_LIB_DIR']:
- generator_default_variables[dirname] = '!!!'
-
-for unused in ['RULE_INPUT_PATH', 'RULE_INPUT_ROOT', 'RULE_INPUT_NAME',
- 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT',
- 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX',
- 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX',
- 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX',
- 'CONFIGURATION_NAME']:
- generator_default_variables[unused] = ''
-
-
-def _ToGypPath(path):
- """Converts a path to the format used by gyp."""
- if os.sep == '\\' and os.altsep == '/':
- return path.replace('\\', '/')
- return path
-
-
-def _ResolveParent(path, base_path_components):
- """Resolves |path|, which starts with at least one '../'. Returns an empty
- string if the path shouldn't be considered. See _AddSources() for a
- description of |base_path_components|."""
- depth = 0
- while path.startswith('../'):
- depth += 1
- path = path[3:]
- # Relative includes may go outside the source tree. For example, an action may
- # have inputs in /usr/include, which are not in the source tree.
- if depth > len(base_path_components):
- return ''
- if depth == len(base_path_components):
- return path
- return '/'.join(base_path_components[0:len(base_path_components) - depth]) + \
- '/' + path
-
-
-def _AddSources(sources, base_path, base_path_components, result):
- """Extracts valid sources from |sources| and adds them to |result|. Each
- source file is relative to |base_path|, but may contain '..'. To make
- resolving '..' easier |base_path_components| contains each of the
- directories in |base_path|. Additionally each source may contain variables.
- Such sources are ignored as it is assumed dependencies on them are expressed
- and tracked in some other means."""
- # NOTE: gyp paths are always posix style.
- for source in sources:
- if not len(source) or source.startswith('!!!') or source.startswith('$'):
- continue
- # variable expansion may lead to //.
- org_source = source
- source = source[0] + source[1:].replace('//', '/')
- if source.startswith('../'):
- source = _ResolveParent(source, base_path_components)
- if len(source):
- result.append(source)
- continue
- result.append(base_path + source)
- if debug:
- print 'AddSource', org_source, result[len(result) - 1]
-
-
-def _ExtractSourcesFromAction(action, base_path, base_path_components,
- results):
- if 'inputs' in action:
- _AddSources(action['inputs'], base_path, base_path_components, results)
-
-
-def _ToLocalPath(toplevel_dir, path):
- """Converts |path| to a path relative to |toplevel_dir|."""
- if path == toplevel_dir:
- return ''
- if path.startswith(toplevel_dir + '/'):
- return path[len(toplevel_dir) + len('/'):]
- return path
-
-
-def _ExtractSources(target, target_dict, toplevel_dir):
- # |target| is either absolute or relative and in the format of the OS. Gyp
- # source paths are always posix. Convert |target| to a posix path relative to
- # |toplevel_dir_|. This is done to make it easy to build source paths.
- base_path = posixpath.dirname(_ToLocalPath(toplevel_dir, _ToGypPath(target)))
- base_path_components = base_path.split('/')
-
- # Add a trailing '/' so that _AddSources() can easily build paths.
- if len(base_path):
- base_path += '/'
-
- if debug:
- print 'ExtractSources', target, base_path
-
- results = []
- if 'sources' in target_dict:
- _AddSources(target_dict['sources'], base_path, base_path_components,
- results)
- # Include the inputs from any actions. Any changes to these affect the
- # resulting output.
- if 'actions' in target_dict:
- for action in target_dict['actions']:
- _ExtractSourcesFromAction(action, base_path, base_path_components,
- results)
- if 'rules' in target_dict:
- for rule in target_dict['rules']:
- _ExtractSourcesFromAction(rule, base_path, base_path_components, results)
-
- return results
-
-
-class Target(object):
- """Holds information about a particular target:
- deps: set of Targets this Target depends upon. This is not recursive, only the
- direct dependent Targets.
- match_status: one of the MatchStatus values.
- back_deps: set of Targets that have a dependency on this Target.
- visited: used during iteration to indicate whether we've visited this target.
- This is used for two iterations, once in building the set of Targets and
- again in _GetBuildTargets().
- name: fully qualified name of the target.
- requires_build: True if the target type is such that it needs to be built.
- See _DoesTargetTypeRequireBuild for details.
- added_to_compile_targets: used when determining if the target was added to the
- set of targets that needs to be built.
- in_roots: true if this target is a descendant of one of the root nodes.
- is_executable: true if the type of target is executable.
- is_static_library: true if the type of target is static_library.
- is_or_has_linked_ancestor: true if the target does a link (eg executable), or
- if there is a target in back_deps that does a link."""
- def __init__(self, name):
- self.deps = set()
- self.match_status = MATCH_STATUS_TBD
- self.back_deps = set()
- self.name = name
- # TODO(sky): I don't like hanging this off Target. This state is specific
- # to certain functions and should be isolated there.
- self.visited = False
- self.requires_build = False
- self.added_to_compile_targets = False
- self.in_roots = False
- self.is_executable = False
- self.is_static_library = False
- self.is_or_has_linked_ancestor = False
-
-
-class Config(object):
- """Details what we're looking for
- files: set of files to search for
- targets: see file description for details."""
- def __init__(self):
- self.files = []
- self.targets = set()
- self.additional_compile_target_names = set()
- self.test_target_names = set()
-
- def Init(self, params):
- """Initializes Config. This is a separate method as it raises an exception
- if there is a parse error."""
- generator_flags = params.get('generator_flags', {})
- config_path = generator_flags.get('config_path', None)
- if not config_path:
- return
- try:
- f = open(config_path, 'r')
- config = json.load(f)
- f.close()
- except IOError:
- raise Exception('Unable to open file ' + config_path)
- except ValueError as e:
- raise Exception('Unable to parse config file ' + config_path + str(e))
- if not isinstance(config, dict):
- raise Exception('config_path must be a JSON file containing a dictionary')
- self.files = config.get('files', [])
- self.additional_compile_target_names = set(
- config.get('additional_compile_targets', []))
- self.test_target_names = set(config.get('test_targets', []))
-
-
-def _WasBuildFileModified(build_file, data, files, toplevel_dir):
- """Returns true if the build file |build_file| is either in |files| or
- one of the files included by |build_file| is in |files|. |toplevel_dir| is
- the root of the source tree."""
- if _ToLocalPath(toplevel_dir, _ToGypPath(build_file)) in files:
- if debug:
- print 'gyp file modified', build_file
- return True
-
- # First element of included_files is the file itself.
- if len(data[build_file]['included_files']) <= 1:
- return False
-
- for include_file in data[build_file]['included_files'][1:]:
- # |included_files| are relative to the directory of the |build_file|.
- rel_include_file = \
- _ToGypPath(gyp.common.UnrelativePath(include_file, build_file))
- if _ToLocalPath(toplevel_dir, rel_include_file) in files:
- if debug:
- print 'included gyp file modified, gyp_file=', build_file, \
- 'included file=', rel_include_file
- return True
- return False
-
-
-def _GetOrCreateTargetByName(targets, target_name):
- """Creates or returns the Target at targets[target_name]. If there is no
- Target for |target_name| one is created. Returns a tuple of whether a new
- Target was created and the Target."""
- if target_name in targets:
- return False, targets[target_name]
- target = Target(target_name)
- targets[target_name] = target
- return True, target
-
-
-def _DoesTargetTypeRequireBuild(target_dict):
- """Returns true if the target type is such that it needs to be built."""
- # If a 'none' target has rules or actions we assume it requires a build.
- return bool(target_dict['type'] != 'none' or
- target_dict.get('actions') or target_dict.get('rules'))
-
-
-def _GenerateTargets(data, target_list, target_dicts, toplevel_dir, files,
- build_files):
- """Returns a tuple of the following:
- . A dictionary mapping from fully qualified name to Target.
- . A list of the targets that have a source file in |files|.
- . Targets that constitute the 'all' target. See description at top of file
- for details on the 'all' target.
- This sets the |match_status| of the targets that contain any of the source
- files in |files| to MATCH_STATUS_MATCHES.
- |toplevel_dir| is the root of the source tree."""
- # Maps from target name to Target.
- name_to_target = {}
-
- # Targets that matched.
- matching_targets = []
-
- # Queue of targets to visit.
- targets_to_visit = target_list[:]
-
- # Maps from build file to a boolean indicating whether the build file is in
- # |files|.
- build_file_in_files = {}
-
- # Root targets across all files.
- roots = set()
-
- # Set of Targets in |build_files|.
- build_file_targets = set()
-
- while len(targets_to_visit) > 0:
- target_name = targets_to_visit.pop()
- created_target, target = _GetOrCreateTargetByName(name_to_target,
- target_name)
- if created_target:
- roots.add(target)
- elif target.visited:
- continue
-
- target.visited = True
- target.requires_build = _DoesTargetTypeRequireBuild(
- target_dicts[target_name])
- target_type = target_dicts[target_name]['type']
- target.is_executable = target_type == 'executable'
- target.is_static_library = target_type == 'static_library'
- target.is_or_has_linked_ancestor = (target_type == 'executable' or
- target_type == 'shared_library')
-
- build_file = gyp.common.ParseQualifiedTarget(target_name)[0]
- if not build_file in build_file_in_files:
- build_file_in_files[build_file] = \
- _WasBuildFileModified(build_file, data, files, toplevel_dir)
-
- if build_file in build_files:
- build_file_targets.add(target)
-
- # If a build file (or any of its included files) is modified we assume all
- # targets in the file are modified.
- if build_file_in_files[build_file]:
- print 'matching target from modified build file', target_name
- target.match_status = MATCH_STATUS_MATCHES
- matching_targets.append(target)
- else:
- sources = _ExtractSources(target_name, target_dicts[target_name],
- toplevel_dir)
- for source in sources:
- if _ToGypPath(os.path.normpath(source)) in files:
- print 'target', target_name, 'matches', source
- target.match_status = MATCH_STATUS_MATCHES
- matching_targets.append(target)
- break
-
- # Add dependencies to visit as well as updating back pointers for deps.
- for dep in target_dicts[target_name].get('dependencies', []):
- targets_to_visit.append(dep)
-
- created_dep_target, dep_target = _GetOrCreateTargetByName(name_to_target,
- dep)
- if not created_dep_target:
- roots.discard(dep_target)
-
- target.deps.add(dep_target)
- dep_target.back_deps.add(target)
-
- return name_to_target, matching_targets, roots & build_file_targets
-
-
-def _GetUnqualifiedToTargetMapping(all_targets, to_find):
- """Returns a tuple of the following:
- . mapping (dictionary) from unqualified name to Target for all the
- Targets in |to_find|.
- . any target names not found. If this is empty all targets were found."""
- result = {}
- if not to_find:
- return {}, []
- to_find = set(to_find)
- for target_name in all_targets.keys():
- extracted = gyp.common.ParseQualifiedTarget(target_name)
- if len(extracted) > 1 and extracted[1] in to_find:
- to_find.remove(extracted[1])
- result[extracted[1]] = all_targets[target_name]
- if not to_find:
- return result, []
- return result, [x for x in to_find]
-
-
-def _DoesTargetDependOnMatchingTargets(target):
- """Returns true if |target| or any of its dependencies is one of the
- targets containing the files supplied as input to analyzer. This updates
- |matches| of the Targets as it recurses.
- target: the Target to look for."""
- if target.match_status == MATCH_STATUS_DOESNT_MATCH:
- return False
- if target.match_status == MATCH_STATUS_MATCHES or \
- target.match_status == MATCH_STATUS_MATCHES_BY_DEPENDENCY:
- return True
- for dep in target.deps:
- if _DoesTargetDependOnMatchingTargets(dep):
- target.match_status = MATCH_STATUS_MATCHES_BY_DEPENDENCY
- print '\t', target.name, 'matches by dep', dep.name
- return True
- target.match_status = MATCH_STATUS_DOESNT_MATCH
- return False
-
-
-def _GetTargetsDependingOnMatchingTargets(possible_targets):
- """Returns the list of Targets in |possible_targets| that depend (either
- directly on indirectly) on at least one of the targets containing the files
- supplied as input to analyzer.
- possible_targets: targets to search from."""
- found = []
- print 'Targets that matched by dependency:'
- for target in possible_targets:
- if _DoesTargetDependOnMatchingTargets(target):
- found.append(target)
- return found
-
-
-def _AddCompileTargets(target, roots, add_if_no_ancestor, result):
- """Recurses through all targets that depend on |target|, adding all targets
- that need to be built (and are in |roots|) to |result|.
- roots: set of root targets.
- add_if_no_ancestor: If true and there are no ancestors of |target| then add
- |target| to |result|. |target| must still be in |roots|.
- result: targets that need to be built are added here."""
- if target.visited:
- return
-
- target.visited = True
- target.in_roots = target in roots
-
- for back_dep_target in target.back_deps:
- _AddCompileTargets(back_dep_target, roots, False, result)
- target.added_to_compile_targets |= back_dep_target.added_to_compile_targets
- target.in_roots |= back_dep_target.in_roots
- target.is_or_has_linked_ancestor |= (
- back_dep_target.is_or_has_linked_ancestor)
-
- # Always add 'executable' targets. Even though they may be built by other
- # targets that depend upon them it makes detection of what is going to be
- # built easier.
- # And always add static_libraries that have no dependencies on them from
- # linkables. This is necessary as the other dependencies on them may be
- # static libraries themselves, which are not compile time dependencies.
- if target.in_roots and \
- (target.is_executable or
- (not target.added_to_compile_targets and
- (add_if_no_ancestor or target.requires_build)) or
- (target.is_static_library and add_if_no_ancestor and
- not target.is_or_has_linked_ancestor)):
- print '\t\tadding to compile targets', target.name, 'executable', \
- target.is_executable, 'added_to_compile_targets', \
- target.added_to_compile_targets, 'add_if_no_ancestor', \
- add_if_no_ancestor, 'requires_build', target.requires_build, \
- 'is_static_library', target.is_static_library, \
- 'is_or_has_linked_ancestor', target.is_or_has_linked_ancestor
- result.add(target)
- target.added_to_compile_targets = True
-
-
-def _GetCompileTargets(matching_targets, supplied_targets):
- """Returns the set of Targets that require a build.
- matching_targets: targets that changed and need to be built.
- supplied_targets: set of targets supplied to analyzer to search from."""
- result = set()
- for target in matching_targets:
- print 'finding compile targets for match', target.name
- _AddCompileTargets(target, supplied_targets, True, result)
- return result
-
-
-def _WriteOutput(params, **values):
- """Writes the output, either to stdout or a file is specified."""
- if 'error' in values:
- print 'Error:', values['error']
- if 'status' in values:
- print values['status']
- if 'targets' in values:
- values['targets'].sort()
- print 'Supplied targets that depend on changed files:'
- for target in values['targets']:
- print '\t', target
- if 'invalid_targets' in values:
- values['invalid_targets'].sort()
- print 'The following targets were not found:'
- for target in values['invalid_targets']:
- print '\t', target
- if 'build_targets' in values:
- values['build_targets'].sort()
- print 'Targets that require a build:'
- for target in values['build_targets']:
- print '\t', target
- if 'compile_targets' in values:
- values['compile_targets'].sort()
- print 'Targets that need to be built:'
- for target in values['compile_targets']:
- print '\t', target
- if 'test_targets' in values:
- values['test_targets'].sort()
- print 'Test targets:'
- for target in values['test_targets']:
- print '\t', target
-
- output_path = params.get('generator_flags', {}).get(
- 'analyzer_output_path', None)
- if not output_path:
- print json.dumps(values)
- return
- try:
- f = open(output_path, 'w')
- f.write(json.dumps(values) + '\n')
- f.close()
- except IOError as e:
- print 'Error writing to output file', output_path, str(e)
-
-
-def _WasGypIncludeFileModified(params, files):
- """Returns true if one of the files in |files| is in the set of included
- files."""
- if params['options'].includes:
- for include in params['options'].includes:
- if _ToGypPath(os.path.normpath(include)) in files:
- print 'Include file modified, assuming all changed', include
- return True
- return False
-
-
-def _NamesNotIn(names, mapping):
- """Returns a list of the values in |names| that are not in |mapping|."""
- return [name for name in names if name not in mapping]
-
-
-def _LookupTargets(names, mapping):
- """Returns a list of the mapping[name] for each value in |names| that is in
- |mapping|."""
- return [mapping[name] for name in names if name in mapping]
-
-
-def CalculateVariables(default_variables, params):
- """Calculate additional variables for use in the build (called by gyp)."""
- flavor = gyp.common.GetFlavor(params)
- if flavor == 'mac':
- default_variables.setdefault('OS', 'mac')
- elif flavor == 'win':
- default_variables.setdefault('OS', 'win')
- # Copy additional generator configuration data from VS, which is shared
- # by the Windows Ninja generator.
- import gyp.generator.msvs as msvs_generator
- generator_additional_non_configuration_keys = getattr(msvs_generator,
- 'generator_additional_non_configuration_keys', [])
- generator_additional_path_sections = getattr(msvs_generator,
- 'generator_additional_path_sections', [])
-
- gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
- else:
- operating_system = flavor
- if flavor == 'android':
- operating_system = 'linux' # Keep this legacy behavior for now.
- default_variables.setdefault('OS', operating_system)
-
-
-class TargetCalculator(object):
- """Calculates the matching test_targets and matching compile_targets."""
- def __init__(self, files, additional_compile_target_names, test_target_names,
- data, target_list, target_dicts, toplevel_dir, build_files):
- self._additional_compile_target_names = set(additional_compile_target_names)
- self._test_target_names = set(test_target_names)
- self._name_to_target, self._changed_targets, self._root_targets = (
- _GenerateTargets(data, target_list, target_dicts, toplevel_dir,
- frozenset(files), build_files))
- self._unqualified_mapping, self.invalid_targets = (
- _GetUnqualifiedToTargetMapping(self._name_to_target,
- self._supplied_target_names_no_all()))
-
- def _supplied_target_names(self):
- return self._additional_compile_target_names | self._test_target_names
-
- def _supplied_target_names_no_all(self):
- """Returns the supplied test targets without 'all'."""
- result = self._supplied_target_names();
- result.discard('all')
- return result
-
- def is_build_impacted(self):
- """Returns true if the supplied files impact the build at all."""
- return self._changed_targets
-
- def find_matching_test_target_names(self):
- """Returns the set of output test targets."""
- assert self.is_build_impacted()
- # Find the test targets first. 'all' is special cased to mean all the
- # root targets. To deal with all the supplied |test_targets| are expanded
- # to include the root targets during lookup. If any of the root targets
- # match, we remove it and replace it with 'all'.
- test_target_names_no_all = set(self._test_target_names)
- test_target_names_no_all.discard('all')
- test_targets_no_all = _LookupTargets(test_target_names_no_all,
- self._unqualified_mapping)
- test_target_names_contains_all = 'all' in self._test_target_names
- if test_target_names_contains_all:
- test_targets = [x for x in (set(test_targets_no_all) |
- set(self._root_targets))]
- else:
- test_targets = [x for x in test_targets_no_all]
- print 'supplied test_targets'
- for target_name in self._test_target_names:
- print '\t', target_name
- print 'found test_targets'
- for target in test_targets:
- print '\t', target.name
- print 'searching for matching test targets'
- matching_test_targets = _GetTargetsDependingOnMatchingTargets(test_targets)
- matching_test_targets_contains_all = (test_target_names_contains_all and
- set(matching_test_targets) &
- set(self._root_targets))
- if matching_test_targets_contains_all:
- # Remove any of the targets for all that were not explicitly supplied,
- # 'all' is subsequentely added to the matching names below.
- matching_test_targets = [x for x in (set(matching_test_targets) &
- set(test_targets_no_all))]
- print 'matched test_targets'
- for target in matching_test_targets:
- print '\t', target.name
- matching_target_names = [gyp.common.ParseQualifiedTarget(target.name)[1]
- for target in matching_test_targets]
- if matching_test_targets_contains_all:
- matching_target_names.append('all')
- print '\tall'
- return matching_target_names
-
- def find_matching_compile_target_names(self):
- """Returns the set of output compile targets."""
- assert self.is_build_impacted();
- # Compile targets are found by searching up from changed targets.
- # Reset the visited status for _GetBuildTargets.
- for target in self._name_to_target.itervalues():
- target.visited = False
-
- supplied_targets = _LookupTargets(self._supplied_target_names_no_all(),
- self._unqualified_mapping)
- if 'all' in self._supplied_target_names():
- supplied_targets = [x for x in (set(supplied_targets) |
- set(self._root_targets))]
- print 'Supplied test_targets & compile_targets'
- for target in supplied_targets:
- print '\t', target.name
- print 'Finding compile targets'
- compile_targets = _GetCompileTargets(self._changed_targets,
- supplied_targets)
- return [gyp.common.ParseQualifiedTarget(target.name)[1]
- for target in compile_targets]
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- """Called by gyp as the final stage. Outputs results."""
- config = Config()
- try:
- config.Init(params)
-
- if not config.files:
- raise Exception('Must specify files to analyze via config_path generator '
- 'flag')
-
- toplevel_dir = _ToGypPath(os.path.abspath(params['options'].toplevel_dir))
- if debug:
- print 'toplevel_dir', toplevel_dir
-
- if _WasGypIncludeFileModified(params, config.files):
- result_dict = { 'status': all_changed_string,
- 'test_targets': list(config.test_target_names),
- 'compile_targets': list(
- config.additional_compile_target_names |
- config.test_target_names) }
- _WriteOutput(params, **result_dict)
- return
-
- calculator = TargetCalculator(config.files,
- config.additional_compile_target_names,
- config.test_target_names, data,
- target_list, target_dicts, toplevel_dir,
- params['build_files'])
- if not calculator.is_build_impacted():
- result_dict = { 'status': no_dependency_string,
- 'test_targets': [],
- 'compile_targets': [] }
- if calculator.invalid_targets:
- result_dict['invalid_targets'] = calculator.invalid_targets
- _WriteOutput(params, **result_dict)
- return
-
- test_target_names = calculator.find_matching_test_target_names()
- compile_target_names = calculator.find_matching_compile_target_names()
- found_at_least_one_target = compile_target_names or test_target_names
- result_dict = { 'test_targets': test_target_names,
- 'status': found_dependency_string if
- found_at_least_one_target else no_dependency_string,
- 'compile_targets': list(
- set(compile_target_names) |
- set(test_target_names)) }
- if calculator.invalid_targets:
- result_dict['invalid_targets'] = calculator.invalid_targets
- _WriteOutput(params, **result_dict)
-
- except Exception as e:
- _WriteOutput(params, error=str(e))
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py
deleted file mode 100644
index 5b26cc7..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py
+++ /dev/null
@@ -1,1095 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Notes:
-#
-# This generates makefiles suitable for inclusion into the Android build system
-# via an Android.mk file. It is based on make.py, the standard makefile
-# generator.
-#
-# The code below generates a separate .mk file for each target, but
-# all are sourced by the top-level GypAndroid.mk. This means that all
-# variables in .mk-files clobber one another, and furthermore that any
-# variables set potentially clash with other Android build system variables.
-# Try to avoid setting global variables where possible.
-
-import gyp
-import gyp.common
-import gyp.generator.make as make # Reuse global functions from make backend.
-import os
-import re
-import subprocess
-
-generator_default_variables = {
- 'OS': 'android',
- 'EXECUTABLE_PREFIX': '',
- 'EXECUTABLE_SUFFIX': '',
- 'STATIC_LIB_PREFIX': 'lib',
- 'SHARED_LIB_PREFIX': 'lib',
- 'STATIC_LIB_SUFFIX': '.a',
- 'SHARED_LIB_SUFFIX': '.so',
- 'INTERMEDIATE_DIR': '$(gyp_intermediate_dir)',
- 'SHARED_INTERMEDIATE_DIR': '$(gyp_shared_intermediate_dir)',
- 'PRODUCT_DIR': '$(gyp_shared_intermediate_dir)',
- 'SHARED_LIB_DIR': '$(builddir)/lib.$(TOOLSET)',
- 'LIB_DIR': '$(obj).$(TOOLSET)',
- 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python.
- 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python.
- 'RULE_INPUT_PATH': '$(RULE_SOURCES)',
- 'RULE_INPUT_EXT': '$(suffix $<)',
- 'RULE_INPUT_NAME': '$(notdir $<)',
- 'CONFIGURATION_NAME': '$(GYP_CONFIGURATION)',
-}
-
-# Make supports multiple toolsets
-generator_supports_multiple_toolsets = True
-
-
-# Generator-specific gyp specs.
-generator_additional_non_configuration_keys = [
- # Boolean to declare that this target does not want its name mangled.
- 'android_unmangled_name',
- # Map of android build system variables to set.
- 'aosp_build_settings',
-]
-generator_additional_path_sections = []
-generator_extra_sources_for_rules = []
-
-
-ALL_MODULES_FOOTER = """\
-# "gyp_all_modules" is a concatenation of the "gyp_all_modules" targets from
-# all the included sub-makefiles. This is just here to clarify.
-gyp_all_modules:
-"""
-
-header = """\
-# This file is generated by gyp; do not edit.
-
-"""
-
-# Map gyp target types to Android module classes.
-MODULE_CLASSES = {
- 'static_library': 'STATIC_LIBRARIES',
- 'shared_library': 'SHARED_LIBRARIES',
- 'executable': 'EXECUTABLES',
-}
-
-
-def IsCPPExtension(ext):
- return make.COMPILABLE_EXTENSIONS.get(ext) == 'cxx'
-
-
-def Sourceify(path):
- """Convert a path to its source directory form. The Android backend does not
- support options.generator_output, so this function is a noop."""
- return path
-
-
-# Map from qualified target to path to output.
-# For Android, the target of these maps is a tuple ('static', 'modulename'),
-# ('dynamic', 'modulename'), or ('path', 'some/path') instead of a string,
-# since we link by module.
-target_outputs = {}
-# Map from qualified target to any linkable output. A subset
-# of target_outputs. E.g. when mybinary depends on liba, we want to
-# include liba in the linker line; when otherbinary depends on
-# mybinary, we just want to build mybinary first.
-target_link_deps = {}
-
-
-class AndroidMkWriter(object):
- """AndroidMkWriter packages up the writing of one target-specific Android.mk.
-
- Its only real entry point is Write(), and is mostly used for namespacing.
- """
-
- def __init__(self, android_top_dir):
- self.android_top_dir = android_top_dir
-
- def Write(self, qualified_target, relative_target, base_path, output_filename,
- spec, configs, part_of_all, write_alias_target, sdk_version):
- """The main entry point: writes a .mk file for a single target.
-
- Arguments:
- qualified_target: target we're generating
- relative_target: qualified target name relative to the root
- base_path: path relative to source root we're building in, used to resolve
- target-relative paths
- output_filename: output .mk file name to write
- spec, configs: gyp info
- part_of_all: flag indicating this target is part of 'all'
- write_alias_target: flag indicating whether to create short aliases for
- this target
- sdk_version: what to emit for LOCAL_SDK_VERSION in output
- """
- gyp.common.EnsureDirExists(output_filename)
-
- self.fp = open(output_filename, 'w')
-
- self.fp.write(header)
-
- self.qualified_target = qualified_target
- self.relative_target = relative_target
- self.path = base_path
- self.target = spec['target_name']
- self.type = spec['type']
- self.toolset = spec['toolset']
-
- deps, link_deps = self.ComputeDeps(spec)
-
- # Some of the generation below can add extra output, sources, or
- # link dependencies. All of the out params of the functions that
- # follow use names like extra_foo.
- extra_outputs = []
- extra_sources = []
-
- self.android_class = MODULE_CLASSES.get(self.type, 'GYP')
- self.android_module = self.ComputeAndroidModule(spec)
- (self.android_stem, self.android_suffix) = self.ComputeOutputParts(spec)
- self.output = self.output_binary = self.ComputeOutput(spec)
-
- # Standard header.
- self.WriteLn('include $(CLEAR_VARS)\n')
-
- # Module class and name.
- self.WriteLn('LOCAL_MODULE_CLASS := ' + self.android_class)
- self.WriteLn('LOCAL_MODULE := ' + self.android_module)
- # Only emit LOCAL_MODULE_STEM if it's different to LOCAL_MODULE.
- # The library module classes fail if the stem is set. ComputeOutputParts
- # makes sure that stem == modulename in these cases.
- if self.android_stem != self.android_module:
- self.WriteLn('LOCAL_MODULE_STEM := ' + self.android_stem)
- self.WriteLn('LOCAL_MODULE_SUFFIX := ' + self.android_suffix)
- if self.toolset == 'host':
- self.WriteLn('LOCAL_IS_HOST_MODULE := true')
- self.WriteLn('LOCAL_MULTILIB := $(GYP_HOST_MULTILIB)')
- elif sdk_version > 0:
- self.WriteLn('LOCAL_MODULE_TARGET_ARCH := '
- '$(TARGET_$(GYP_VAR_PREFIX)ARCH)')
- self.WriteLn('LOCAL_SDK_VERSION := %s' % sdk_version)
-
- # Grab output directories; needed for Actions and Rules.
- if self.toolset == 'host':
- self.WriteLn('gyp_intermediate_dir := '
- '$(call local-intermediates-dir,,$(GYP_HOST_VAR_PREFIX))')
- else:
- self.WriteLn('gyp_intermediate_dir := '
- '$(call local-intermediates-dir,,$(GYP_VAR_PREFIX))')
- self.WriteLn('gyp_shared_intermediate_dir := '
- '$(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))')
- self.WriteLn()
-
- # List files this target depends on so that actions/rules/copies/sources
- # can depend on the list.
- # TODO: doesn't pull in things through transitive link deps; needed?
- target_dependencies = [x[1] for x in deps if x[0] == 'path']
- self.WriteLn('# Make sure our deps are built first.')
- self.WriteList(target_dependencies, 'GYP_TARGET_DEPENDENCIES',
- local_pathify=True)
-
- # Actions must come first, since they can generate more OBJs for use below.
- if 'actions' in spec:
- self.WriteActions(spec['actions'], extra_sources, extra_outputs)
-
- # Rules must be early like actions.
- if 'rules' in spec:
- self.WriteRules(spec['rules'], extra_sources, extra_outputs)
-
- if 'copies' in spec:
- self.WriteCopies(spec['copies'], extra_outputs)
-
- # GYP generated outputs.
- self.WriteList(extra_outputs, 'GYP_GENERATED_OUTPUTS', local_pathify=True)
-
- # Set LOCAL_ADDITIONAL_DEPENDENCIES so that Android's build rules depend
- # on both our dependency targets and our generated files.
- self.WriteLn('# Make sure our deps and generated files are built first.')
- self.WriteLn('LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) '
- '$(GYP_GENERATED_OUTPUTS)')
- self.WriteLn()
-
- # Sources.
- if spec.get('sources', []) or extra_sources:
- self.WriteSources(spec, configs, extra_sources)
-
- self.WriteTarget(spec, configs, deps, link_deps, part_of_all,
- write_alias_target)
-
- # Update global list of target outputs, used in dependency tracking.
- target_outputs[qualified_target] = ('path', self.output_binary)
-
- # Update global list of link dependencies.
- if self.type == 'static_library':
- target_link_deps[qualified_target] = ('static', self.android_module)
- elif self.type == 'shared_library':
- target_link_deps[qualified_target] = ('shared', self.android_module)
-
- self.fp.close()
- return self.android_module
-
-
- def WriteActions(self, actions, extra_sources, extra_outputs):
- """Write Makefile code for any 'actions' from the gyp input.
-
- extra_sources: a list that will be filled in with newly generated source
- files, if any
- extra_outputs: a list that will be filled in with any outputs of these
- actions (used to make other pieces dependent on these
- actions)
- """
- for action in actions:
- name = make.StringToMakefileVariable('%s_%s' % (self.relative_target,
- action['action_name']))
- self.WriteLn('### Rules for action "%s":' % action['action_name'])
- inputs = action['inputs']
- outputs = action['outputs']
-
- # Build up a list of outputs.
- # Collect the output dirs we'll need.
- dirs = set()
- for out in outputs:
- if not out.startswith('$'):
- print ('WARNING: Action for target "%s" writes output to local path '
- '"%s".' % (self.target, out))
- dir = os.path.split(out)[0]
- if dir:
- dirs.add(dir)
- if int(action.get('process_outputs_as_sources', False)):
- extra_sources += outputs
-
- # Prepare the actual command.
- command = gyp.common.EncodePOSIXShellList(action['action'])
- if 'message' in action:
- quiet_cmd = 'Gyp action: %s ($@)' % action['message']
- else:
- quiet_cmd = 'Gyp action: %s ($@)' % name
- if len(dirs) > 0:
- command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command
-
- cd_action = 'cd $(gyp_local_path)/%s; ' % self.path
- command = cd_action + command
-
- # The makefile rules are all relative to the top dir, but the gyp actions
- # are defined relative to their containing dir. This replaces the gyp_*
- # variables for the action rule with an absolute version so that the
- # output goes in the right place.
- # Only write the gyp_* rules for the "primary" output (:1);
- # it's superfluous for the "extra outputs", and this avoids accidentally
- # writing duplicate dummy rules for those outputs.
- main_output = make.QuoteSpaces(self.LocalPathify(outputs[0]))
- self.WriteLn('%s: gyp_local_path := $(LOCAL_PATH)' % main_output)
- self.WriteLn('%s: gyp_var_prefix := $(GYP_VAR_PREFIX)' % main_output)
- self.WriteLn('%s: gyp_intermediate_dir := '
- '$(abspath $(gyp_intermediate_dir))' % main_output)
- self.WriteLn('%s: gyp_shared_intermediate_dir := '
- '$(abspath $(gyp_shared_intermediate_dir))' % main_output)
-
- # Android's envsetup.sh adds a number of directories to the path including
- # the built host binary directory. This causes actions/rules invoked by
- # gyp to sometimes use these instead of system versions, e.g. bison.
- # The built host binaries may not be suitable, and can cause errors.
- # So, we remove them from the PATH using the ANDROID_BUILD_PATHS variable
- # set by envsetup.
- self.WriteLn('%s: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))'
- % main_output)
-
- # Don't allow spaces in input/output filenames, but make an exception for
- # filenames which start with '$(' since it's okay for there to be spaces
- # inside of make function/macro invocations.
- for input in inputs:
- if not input.startswith('$(') and ' ' in input:
- raise gyp.common.GypError(
- 'Action input filename "%s" in target %s contains a space' %
- (input, self.target))
- for output in outputs:
- if not output.startswith('$(') and ' ' in output:
- raise gyp.common.GypError(
- 'Action output filename "%s" in target %s contains a space' %
- (output, self.target))
-
- self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES)' %
- (main_output, ' '.join(map(self.LocalPathify, inputs))))
- self.WriteLn('\t@echo "%s"' % quiet_cmd)
- self.WriteLn('\t$(hide)%s\n' % command)
- for output in outputs[1:]:
- # Make each output depend on the main output, with an empty command
- # to force make to notice that the mtime has changed.
- self.WriteLn('%s: %s ;' % (self.LocalPathify(output), main_output))
-
- extra_outputs += outputs
- self.WriteLn()
-
- self.WriteLn()
-
-
- def WriteRules(self, rules, extra_sources, extra_outputs):
- """Write Makefile code for any 'rules' from the gyp input.
-
- extra_sources: a list that will be filled in with newly generated source
- files, if any
- extra_outputs: a list that will be filled in with any outputs of these
- rules (used to make other pieces dependent on these rules)
- """
- if len(rules) == 0:
- return
-
- for rule in rules:
- if len(rule.get('rule_sources', [])) == 0:
- continue
- name = make.StringToMakefileVariable('%s_%s' % (self.relative_target,
- rule['rule_name']))
- self.WriteLn('\n### Generated for rule "%s":' % name)
- self.WriteLn('# "%s":' % rule)
-
- inputs = rule.get('inputs')
- for rule_source in rule.get('rule_sources', []):
- (rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
- (rule_source_root, rule_source_ext) = \
- os.path.splitext(rule_source_basename)
-
- outputs = [self.ExpandInputRoot(out, rule_source_root,
- rule_source_dirname)
- for out in rule['outputs']]
-
- dirs = set()
- for out in outputs:
- if not out.startswith('$'):
- print ('WARNING: Rule for target %s writes output to local path %s'
- % (self.target, out))
- dir = os.path.dirname(out)
- if dir:
- dirs.add(dir)
- extra_outputs += outputs
- if int(rule.get('process_outputs_as_sources', False)):
- extra_sources.extend(outputs)
-
- components = []
- for component in rule['action']:
- component = self.ExpandInputRoot(component, rule_source_root,
- rule_source_dirname)
- if '$(RULE_SOURCES)' in component:
- component = component.replace('$(RULE_SOURCES)',
- rule_source)
- components.append(component)
-
- command = gyp.common.EncodePOSIXShellList(components)
- cd_action = 'cd $(gyp_local_path)/%s; ' % self.path
- command = cd_action + command
- if dirs:
- command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command
-
- # We set up a rule to build the first output, and then set up
- # a rule for each additional output to depend on the first.
- outputs = map(self.LocalPathify, outputs)
- main_output = outputs[0]
- self.WriteLn('%s: gyp_local_path := $(LOCAL_PATH)' % main_output)
- self.WriteLn('%s: gyp_var_prefix := $(GYP_VAR_PREFIX)' % main_output)
- self.WriteLn('%s: gyp_intermediate_dir := '
- '$(abspath $(gyp_intermediate_dir))' % main_output)
- self.WriteLn('%s: gyp_shared_intermediate_dir := '
- '$(abspath $(gyp_shared_intermediate_dir))' % main_output)
-
- # See explanation in WriteActions.
- self.WriteLn('%s: export PATH := '
- '$(subst $(ANDROID_BUILD_PATHS),,$(PATH))' % main_output)
-
- main_output_deps = self.LocalPathify(rule_source)
- if inputs:
- main_output_deps += ' '
- main_output_deps += ' '.join([self.LocalPathify(f) for f in inputs])
-
- self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES)' %
- (main_output, main_output_deps))
- self.WriteLn('\t%s\n' % command)
- for output in outputs[1:]:
- # Make each output depend on the main output, with an empty command
- # to force make to notice that the mtime has changed.
- self.WriteLn('%s: %s ;' % (output, main_output))
- self.WriteLn()
-
- self.WriteLn()
-
-
- def WriteCopies(self, copies, extra_outputs):
- """Write Makefile code for any 'copies' from the gyp input.
-
- extra_outputs: a list that will be filled in with any outputs of this action
- (used to make other pieces dependent on this action)
- """
- self.WriteLn('### Generated for copy rule.')
-
- variable = make.StringToMakefileVariable(self.relative_target + '_copies')
- outputs = []
- for copy in copies:
- for path in copy['files']:
- # The Android build system does not allow generation of files into the
- # source tree. The destination should start with a variable, which will
- # typically be $(gyp_intermediate_dir) or
- # $(gyp_shared_intermediate_dir). Note that we can't use an assertion
- # because some of the gyp tests depend on this.
- if not copy['destination'].startswith('$'):
- print ('WARNING: Copy rule for target %s writes output to '
- 'local path %s' % (self.target, copy['destination']))
-
- # LocalPathify() calls normpath, stripping trailing slashes.
- path = Sourceify(self.LocalPathify(path))
- filename = os.path.split(path)[1]
- output = Sourceify(self.LocalPathify(os.path.join(copy['destination'],
- filename)))
-
- self.WriteLn('%s: %s $(GYP_TARGET_DEPENDENCIES) | $(ACP)' %
- (output, path))
- self.WriteLn('\t@echo Copying: $@')
- self.WriteLn('\t$(hide) mkdir -p $(dir $@)')
- self.WriteLn('\t$(hide) $(ACP) -rpf $< $@')
- self.WriteLn()
- outputs.append(output)
- self.WriteLn('%s = %s' % (variable,
- ' '.join(map(make.QuoteSpaces, outputs))))
- extra_outputs.append('$(%s)' % variable)
- self.WriteLn()
-
-
- def WriteSourceFlags(self, spec, configs):
- """Write out the flags and include paths used to compile source files for
- the current target.
-
- Args:
- spec, configs: input from gyp.
- """
- for configname, config in sorted(configs.iteritems()):
- extracted_includes = []
-
- self.WriteLn('\n# Flags passed to both C and C++ files.')
- cflags, includes_from_cflags = self.ExtractIncludesFromCFlags(
- config.get('cflags', []) + config.get('cflags_c', []))
- extracted_includes.extend(includes_from_cflags)
- self.WriteList(cflags, 'MY_CFLAGS_%s' % configname)
-
- self.WriteList(config.get('defines'), 'MY_DEFS_%s' % configname,
- prefix='-D', quoter=make.EscapeCppDefine)
-
- self.WriteLn('\n# Include paths placed before CFLAGS/CPPFLAGS')
- includes = list(config.get('include_dirs', []))
- includes.extend(extracted_includes)
- includes = map(Sourceify, map(self.LocalPathify, includes))
- includes = self.NormalizeIncludePaths(includes)
- self.WriteList(includes, 'LOCAL_C_INCLUDES_%s' % configname)
-
- self.WriteLn('\n# Flags passed to only C++ (and not C) files.')
- self.WriteList(config.get('cflags_cc'), 'LOCAL_CPPFLAGS_%s' % configname)
-
- self.WriteLn('\nLOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) '
- '$(MY_DEFS_$(GYP_CONFIGURATION))')
- # Undefine ANDROID for host modules
- # TODO: the source code should not use macro ANDROID to tell if it's host
- # or target module.
- if self.toolset == 'host':
- self.WriteLn('# Undefine ANDROID for host modules')
- self.WriteLn('LOCAL_CFLAGS += -UANDROID')
- self.WriteLn('LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) '
- '$(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))')
- self.WriteLn('LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))')
- # Android uses separate flags for assembly file invocations, but gyp expects
- # the same CFLAGS to be applied:
- self.WriteLn('LOCAL_ASFLAGS := $(LOCAL_CFLAGS)')
-
-
- def WriteSources(self, spec, configs, extra_sources):
- """Write Makefile code for any 'sources' from the gyp input.
- These are source files necessary to build the current target.
- We need to handle shared_intermediate directory source files as
- a special case by copying them to the intermediate directory and
- treating them as a genereated sources. Otherwise the Android build
- rules won't pick them up.
-
- Args:
- spec, configs: input from gyp.
- extra_sources: Sources generated from Actions or Rules.
- """
- sources = filter(make.Compilable, spec.get('sources', []))
- generated_not_sources = [x for x in extra_sources if not make.Compilable(x)]
- extra_sources = filter(make.Compilable, extra_sources)
-
- # Determine and output the C++ extension used by these sources.
- # We simply find the first C++ file and use that extension.
- all_sources = sources + extra_sources
- local_cpp_extension = '.cpp'
- for source in all_sources:
- (root, ext) = os.path.splitext(source)
- if IsCPPExtension(ext):
- local_cpp_extension = ext
- break
- if local_cpp_extension != '.cpp':
- self.WriteLn('LOCAL_CPP_EXTENSION := %s' % local_cpp_extension)
-
- # We need to move any non-generated sources that are coming from the
- # shared intermediate directory out of LOCAL_SRC_FILES and put them
- # into LOCAL_GENERATED_SOURCES. We also need to move over any C++ files
- # that don't match our local_cpp_extension, since Android will only
- # generate Makefile rules for a single LOCAL_CPP_EXTENSION.
- local_files = []
- for source in sources:
- (root, ext) = os.path.splitext(source)
- if '$(gyp_shared_intermediate_dir)' in source:
- extra_sources.append(source)
- elif '$(gyp_intermediate_dir)' in source:
- extra_sources.append(source)
- elif IsCPPExtension(ext) and ext != local_cpp_extension:
- extra_sources.append(source)
- else:
- local_files.append(os.path.normpath(os.path.join(self.path, source)))
-
- # For any generated source, if it is coming from the shared intermediate
- # directory then we add a Make rule to copy them to the local intermediate
- # directory first. This is because the Android LOCAL_GENERATED_SOURCES
- # must be in the local module intermediate directory for the compile rules
- # to work properly. If the file has the wrong C++ extension, then we add
- # a rule to copy that to intermediates and use the new version.
- final_generated_sources = []
- # If a source file gets copied, we still need to add the orginal source
- # directory as header search path, for GCC searches headers in the
- # directory that contains the source file by default.
- origin_src_dirs = []
- for source in extra_sources:
- local_file = source
- if not '$(gyp_intermediate_dir)/' in local_file:
- basename = os.path.basename(local_file)
- local_file = '$(gyp_intermediate_dir)/' + basename
- (root, ext) = os.path.splitext(local_file)
- if IsCPPExtension(ext) and ext != local_cpp_extension:
- local_file = root + local_cpp_extension
- if local_file != source:
- self.WriteLn('%s: %s' % (local_file, self.LocalPathify(source)))
- self.WriteLn('\tmkdir -p $(@D); cp $< $@')
- origin_src_dirs.append(os.path.dirname(source))
- final_generated_sources.append(local_file)
-
- # We add back in all of the non-compilable stuff to make sure that the
- # make rules have dependencies on them.
- final_generated_sources.extend(generated_not_sources)
- self.WriteList(final_generated_sources, 'LOCAL_GENERATED_SOURCES')
-
- origin_src_dirs = gyp.common.uniquer(origin_src_dirs)
- origin_src_dirs = map(Sourceify, map(self.LocalPathify, origin_src_dirs))
- self.WriteList(origin_src_dirs, 'GYP_COPIED_SOURCE_ORIGIN_DIRS')
-
- self.WriteList(local_files, 'LOCAL_SRC_FILES')
-
- # Write out the flags used to compile the source; this must be done last
- # so that GYP_COPIED_SOURCE_ORIGIN_DIRS can be used as an include path.
- self.WriteSourceFlags(spec, configs)
-
-
- def ComputeAndroidModule(self, spec):
- """Return the Android module name used for a gyp spec.
-
- We use the complete qualified target name to avoid collisions between
- duplicate targets in different directories. We also add a suffix to
- distinguish gyp-generated module names.
- """
-
- if int(spec.get('android_unmangled_name', 0)):
- assert self.type != 'shared_library' or self.target.startswith('lib')
- return self.target
-
- if self.type == 'shared_library':
- # For reasons of convention, the Android build system requires that all
- # shared library modules are named 'libfoo' when generating -l flags.
- prefix = 'lib_'
- else:
- prefix = ''
-
- if spec['toolset'] == 'host':
- suffix = '_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp'
- else:
- suffix = '_gyp'
-
- if self.path:
- middle = make.StringToMakefileVariable('%s_%s' % (self.path, self.target))
- else:
- middle = make.StringToMakefileVariable(self.target)
-
- return ''.join([prefix, middle, suffix])
-
-
- def ComputeOutputParts(self, spec):
- """Return the 'output basename' of a gyp spec, split into filename + ext.
-
- Android libraries must be named the same thing as their module name,
- otherwise the linker can't find them, so product_name and so on must be
- ignored if we are building a library, and the "lib" prepending is
- not done for Android.
- """
- assert self.type != 'loadable_module' # TODO: not supported?
-
- target = spec['target_name']
- target_prefix = ''
- target_ext = ''
- if self.type == 'static_library':
- target = self.ComputeAndroidModule(spec)
- target_ext = '.a'
- elif self.type == 'shared_library':
- target = self.ComputeAndroidModule(spec)
- target_ext = '.so'
- elif self.type == 'none':
- target_ext = '.stamp'
- elif self.type != 'executable':
- print ("ERROR: What output file should be generated?",
- "type", self.type, "target", target)
-
- if self.type != 'static_library' and self.type != 'shared_library':
- target_prefix = spec.get('product_prefix', target_prefix)
- target = spec.get('product_name', target)
- product_ext = spec.get('product_extension')
- if product_ext:
- target_ext = '.' + product_ext
-
- target_stem = target_prefix + target
- return (target_stem, target_ext)
-
-
- def ComputeOutputBasename(self, spec):
- """Return the 'output basename' of a gyp spec.
-
- E.g., the loadable module 'foobar' in directory 'baz' will produce
- 'libfoobar.so'
- """
- return ''.join(self.ComputeOutputParts(spec))
-
-
- def ComputeOutput(self, spec):
- """Return the 'output' (full output path) of a gyp spec.
-
- E.g., the loadable module 'foobar' in directory 'baz' will produce
- '$(obj)/baz/libfoobar.so'
- """
- if self.type == 'executable':
- # We install host executables into shared_intermediate_dir so they can be
- # run by gyp rules that refer to PRODUCT_DIR.
- path = '$(gyp_shared_intermediate_dir)'
- elif self.type == 'shared_library':
- if self.toolset == 'host':
- path = '$($(GYP_HOST_VAR_PREFIX)HOST_OUT_INTERMEDIATE_LIBRARIES)'
- else:
- path = '$($(GYP_VAR_PREFIX)TARGET_OUT_INTERMEDIATE_LIBRARIES)'
- else:
- # Other targets just get built into their intermediate dir.
- if self.toolset == 'host':
- path = ('$(call intermediates-dir-for,%s,%s,true,,'
- '$(GYP_HOST_VAR_PREFIX))' % (self.android_class,
- self.android_module))
- else:
- path = ('$(call intermediates-dir-for,%s,%s,,,$(GYP_VAR_PREFIX))'
- % (self.android_class, self.android_module))
-
- assert spec.get('product_dir') is None # TODO: not supported?
- return os.path.join(path, self.ComputeOutputBasename(spec))
-
- def NormalizeIncludePaths(self, include_paths):
- """ Normalize include_paths.
- Convert absolute paths to relative to the Android top directory.
-
- Args:
- include_paths: A list of unprocessed include paths.
- Returns:
- A list of normalized include paths.
- """
- normalized = []
- for path in include_paths:
- if path[0] == '/':
- path = gyp.common.RelativePath(path, self.android_top_dir)
- normalized.append(path)
- return normalized
-
- def ExtractIncludesFromCFlags(self, cflags):
- """Extract includes "-I..." out from cflags
-
- Args:
- cflags: A list of compiler flags, which may be mixed with "-I.."
- Returns:
- A tuple of lists: (clean_clfags, include_paths). "-I.." is trimmed.
- """
- clean_cflags = []
- include_paths = []
- for flag in cflags:
- if flag.startswith('-I'):
- include_paths.append(flag[2:])
- else:
- clean_cflags.append(flag)
-
- return (clean_cflags, include_paths)
-
- def FilterLibraries(self, libraries):
- """Filter the 'libraries' key to separate things that shouldn't be ldflags.
-
- Library entries that look like filenames should be converted to android
- module names instead of being passed to the linker as flags.
-
- Args:
- libraries: the value of spec.get('libraries')
- Returns:
- A tuple (static_lib_modules, dynamic_lib_modules, ldflags)
- """
- static_lib_modules = []
- dynamic_lib_modules = []
- ldflags = []
- for libs in libraries:
- # Libs can have multiple words.
- for lib in libs.split():
- # Filter the system libraries, which are added by default by the Android
- # build system.
- if (lib == '-lc' or lib == '-lstdc++' or lib == '-lm' or
- lib.endswith('libgcc.a')):
- continue
- match = re.search(r'([^/]+)\.a$', lib)
- if match:
- static_lib_modules.append(match.group(1))
- continue
- match = re.search(r'([^/]+)\.so$', lib)
- if match:
- dynamic_lib_modules.append(match.group(1))
- continue
- if lib.startswith('-l'):
- ldflags.append(lib)
- return (static_lib_modules, dynamic_lib_modules, ldflags)
-
-
- def ComputeDeps(self, spec):
- """Compute the dependencies of a gyp spec.
-
- Returns a tuple (deps, link_deps), where each is a list of
- filenames that will need to be put in front of make for either
- building (deps) or linking (link_deps).
- """
- deps = []
- link_deps = []
- if 'dependencies' in spec:
- deps.extend([target_outputs[dep] for dep in spec['dependencies']
- if target_outputs[dep]])
- for dep in spec['dependencies']:
- if dep in target_link_deps:
- link_deps.append(target_link_deps[dep])
- deps.extend(link_deps)
- return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
-
-
- def WriteTargetFlags(self, spec, configs, link_deps):
- """Write Makefile code to specify the link flags and library dependencies.
-
- spec, configs: input from gyp.
- link_deps: link dependency list; see ComputeDeps()
- """
- # Libraries (i.e. -lfoo)
- # These must be included even for static libraries as some of them provide
- # implicit include paths through the build system.
- libraries = gyp.common.uniquer(spec.get('libraries', []))
- static_libs, dynamic_libs, ldflags_libs = self.FilterLibraries(libraries)
-
- if self.type != 'static_library':
- for configname, config in sorted(configs.iteritems()):
- ldflags = list(config.get('ldflags', []))
- self.WriteLn('')
- self.WriteList(ldflags, 'LOCAL_LDFLAGS_%s' % configname)
- self.WriteList(ldflags_libs, 'LOCAL_GYP_LIBS')
- self.WriteLn('LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) '
- '$(LOCAL_GYP_LIBS)')
-
- # Link dependencies (i.e. other gyp targets this target depends on)
- # These need not be included for static libraries as within the gyp build
- # we do not use the implicit include path mechanism.
- if self.type != 'static_library':
- static_link_deps = [x[1] for x in link_deps if x[0] == 'static']
- shared_link_deps = [x[1] for x in link_deps if x[0] == 'shared']
- else:
- static_link_deps = []
- shared_link_deps = []
-
- # Only write the lists if they are non-empty.
- if static_libs or static_link_deps:
- self.WriteLn('')
- self.WriteList(static_libs + static_link_deps,
- 'LOCAL_STATIC_LIBRARIES')
- self.WriteLn('# Enable grouping to fix circular references')
- self.WriteLn('LOCAL_GROUP_STATIC_LIBRARIES := true')
- if dynamic_libs or shared_link_deps:
- self.WriteLn('')
- self.WriteList(dynamic_libs + shared_link_deps,
- 'LOCAL_SHARED_LIBRARIES')
-
-
- def WriteTarget(self, spec, configs, deps, link_deps, part_of_all,
- write_alias_target):
- """Write Makefile code to produce the final target of the gyp spec.
-
- spec, configs: input from gyp.
- deps, link_deps: dependency lists; see ComputeDeps()
- part_of_all: flag indicating this target is part of 'all'
- write_alias_target: flag indicating whether to create short aliases for this
- target
- """
- self.WriteLn('### Rules for final target.')
-
- if self.type != 'none':
- self.WriteTargetFlags(spec, configs, link_deps)
-
- settings = spec.get('aosp_build_settings', {})
- if settings:
- self.WriteLn('### Set directly by aosp_build_settings.')
- for k, v in settings.iteritems():
- if isinstance(v, list):
- self.WriteList(v, k)
- else:
- self.WriteLn('%s := %s' % (k, make.QuoteIfNecessary(v)))
- self.WriteLn('')
-
- # Add to the set of targets which represent the gyp 'all' target. We use the
- # name 'gyp_all_modules' as the Android build system doesn't allow the use
- # of the Make target 'all' and because 'all_modules' is the equivalent of
- # the Make target 'all' on Android.
- if part_of_all and write_alias_target:
- self.WriteLn('# Add target alias to "gyp_all_modules" target.')
- self.WriteLn('.PHONY: gyp_all_modules')
- self.WriteLn('gyp_all_modules: %s' % self.android_module)
- self.WriteLn('')
-
- # Add an alias from the gyp target name to the Android module name. This
- # simplifies manual builds of the target, and is required by the test
- # framework.
- if self.target != self.android_module and write_alias_target:
- self.WriteLn('# Alias gyp target name.')
- self.WriteLn('.PHONY: %s' % self.target)
- self.WriteLn('%s: %s' % (self.target, self.android_module))
- self.WriteLn('')
-
- # Add the command to trigger build of the target type depending
- # on the toolset. Ex: BUILD_STATIC_LIBRARY vs. BUILD_HOST_STATIC_LIBRARY
- # NOTE: This has to come last!
- modifier = ''
- if self.toolset == 'host':
- modifier = 'HOST_'
- if self.type == 'static_library':
- self.WriteLn('include $(BUILD_%sSTATIC_LIBRARY)' % modifier)
- elif self.type == 'shared_library':
- self.WriteLn('LOCAL_PRELINK_MODULE := false')
- self.WriteLn('include $(BUILD_%sSHARED_LIBRARY)' % modifier)
- elif self.type == 'executable':
- self.WriteLn('LOCAL_CXX_STL := libc++_static')
- # Executables are for build and test purposes only, so they're installed
- # to a directory that doesn't get included in the system image.
- self.WriteLn('LOCAL_MODULE_PATH := $(gyp_shared_intermediate_dir)')
- self.WriteLn('include $(BUILD_%sEXECUTABLE)' % modifier)
- else:
- self.WriteLn('LOCAL_MODULE_PATH := $(PRODUCT_OUT)/gyp_stamp')
- self.WriteLn('LOCAL_UNINSTALLABLE_MODULE := true')
- if self.toolset == 'target':
- self.WriteLn('LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_VAR_PREFIX)')
- else:
- self.WriteLn('LOCAL_2ND_ARCH_VAR_PREFIX := $(GYP_HOST_VAR_PREFIX)')
- self.WriteLn()
- self.WriteLn('include $(BUILD_SYSTEM)/base_rules.mk')
- self.WriteLn()
- self.WriteLn('$(LOCAL_BUILT_MODULE): $(LOCAL_ADDITIONAL_DEPENDENCIES)')
- self.WriteLn('\t$(hide) echo "Gyp timestamp: $@"')
- self.WriteLn('\t$(hide) mkdir -p $(dir $@)')
- self.WriteLn('\t$(hide) touch $@')
- self.WriteLn()
- self.WriteLn('LOCAL_2ND_ARCH_VAR_PREFIX :=')
-
-
- def WriteList(self, value_list, variable=None, prefix='',
- quoter=make.QuoteIfNecessary, local_pathify=False):
- """Write a variable definition that is a list of values.
-
- E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
- foo = blaha blahb
- but in a pretty-printed style.
- """
- values = ''
- if value_list:
- value_list = [quoter(prefix + l) for l in value_list]
- if local_pathify:
- value_list = [self.LocalPathify(l) for l in value_list]
- values = ' \\\n\t' + ' \\\n\t'.join(value_list)
- self.fp.write('%s :=%s\n\n' % (variable, values))
-
-
- def WriteLn(self, text=''):
- self.fp.write(text + '\n')
-
-
- def LocalPathify(self, path):
- """Convert a subdirectory-relative path into a normalized path which starts
- with the make variable $(LOCAL_PATH) (i.e. the top of the project tree).
- Absolute paths, or paths that contain variables, are just normalized."""
- if '$(' in path or os.path.isabs(path):
- # path is not a file in the project tree in this case, but calling
- # normpath is still important for trimming trailing slashes.
- return os.path.normpath(path)
- local_path = os.path.join('$(LOCAL_PATH)', self.path, path)
- local_path = os.path.normpath(local_path)
- # Check that normalizing the path didn't ../ itself out of $(LOCAL_PATH)
- # - i.e. that the resulting path is still inside the project tree. The
- # path may legitimately have ended up containing just $(LOCAL_PATH), though,
- # so we don't look for a slash.
- assert local_path.startswith('$(LOCAL_PATH)'), (
- 'Path %s attempts to escape from gyp path %s !)' % (path, self.path))
- return local_path
-
-
- def ExpandInputRoot(self, template, expansion, dirname):
- if '%(INPUT_ROOT)s' not in template and '%(INPUT_DIRNAME)s' not in template:
- return template
- path = template % {
- 'INPUT_ROOT': expansion,
- 'INPUT_DIRNAME': dirname,
- }
- return os.path.normpath(path)
-
-
-def PerformBuild(data, configurations, params):
- # The android backend only supports the default configuration.
- options = params['options']
- makefile = os.path.abspath(os.path.join(options.toplevel_dir,
- 'GypAndroid.mk'))
- env = dict(os.environ)
- env['ONE_SHOT_MAKEFILE'] = makefile
- arguments = ['make', '-C', os.environ['ANDROID_BUILD_TOP'], 'gyp_all_modules']
- print 'Building: %s' % arguments
- subprocess.check_call(arguments, env=env)
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- options = params['options']
- generator_flags = params.get('generator_flags', {})
- builddir_name = generator_flags.get('output_dir', 'out')
- limit_to_target_all = generator_flags.get('limit_to_target_all', False)
- write_alias_targets = generator_flags.get('write_alias_targets', True)
- sdk_version = generator_flags.get('aosp_sdk_version', 0)
- android_top_dir = os.environ.get('ANDROID_BUILD_TOP')
- assert android_top_dir, '$ANDROID_BUILD_TOP not set; you need to run lunch.'
-
- def CalculateMakefilePath(build_file, base_name):
- """Determine where to write a Makefile for a given gyp file."""
- # Paths in gyp files are relative to the .gyp file, but we want
- # paths relative to the source root for the master makefile. Grab
- # the path of the .gyp file as the base to relativize against.
- # E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp".
- base_path = gyp.common.RelativePath(os.path.dirname(build_file),
- options.depth)
- # We write the file in the base_path directory.
- output_file = os.path.join(options.depth, base_path, base_name)
- assert not options.generator_output, (
- 'The Android backend does not support options.generator_output.')
- base_path = gyp.common.RelativePath(os.path.dirname(build_file),
- options.toplevel_dir)
- return base_path, output_file
-
- # TODO: search for the first non-'Default' target. This can go
- # away when we add verification that all targets have the
- # necessary configurations.
- default_configuration = None
- toolsets = set([target_dicts[target]['toolset'] for target in target_list])
- for target in target_list:
- spec = target_dicts[target]
- if spec['default_configuration'] != 'Default':
- default_configuration = spec['default_configuration']
- break
- if not default_configuration:
- default_configuration = 'Default'
-
- srcdir = '.'
- makefile_name = 'GypAndroid' + options.suffix + '.mk'
- makefile_path = os.path.join(options.toplevel_dir, makefile_name)
- assert not options.generator_output, (
- 'The Android backend does not support options.generator_output.')
- gyp.common.EnsureDirExists(makefile_path)
- root_makefile = open(makefile_path, 'w')
-
- root_makefile.write(header)
-
- # We set LOCAL_PATH just once, here, to the top of the project tree. This
- # allows all the other paths we use to be relative to the Android.mk file,
- # as the Android build system expects.
- root_makefile.write('\nLOCAL_PATH := $(call my-dir)\n')
-
- # Find the list of targets that derive from the gyp file(s) being built.
- needed_targets = set()
- for build_file in params['build_files']:
- for target in gyp.common.AllTargets(target_list, target_dicts, build_file):
- needed_targets.add(target)
-
- build_files = set()
- include_list = set()
- android_modules = {}
- for qualified_target in target_list:
- build_file, target, toolset = gyp.common.ParseQualifiedTarget(
- qualified_target)
- relative_build_file = gyp.common.RelativePath(build_file,
- options.toplevel_dir)
- build_files.add(relative_build_file)
- included_files = data[build_file]['included_files']
- for included_file in included_files:
- # The included_files entries are relative to the dir of the build file
- # that included them, so we have to undo that and then make them relative
- # to the root dir.
- relative_include_file = gyp.common.RelativePath(
- gyp.common.UnrelativePath(included_file, build_file),
- options.toplevel_dir)
- abs_include_file = os.path.abspath(relative_include_file)
- # If the include file is from the ~/.gyp dir, we should use absolute path
- # so that relocating the src dir doesn't break the path.
- if (params['home_dot_gyp'] and
- abs_include_file.startswith(params['home_dot_gyp'])):
- build_files.add(abs_include_file)
- else:
- build_files.add(relative_include_file)
-
- base_path, output_file = CalculateMakefilePath(build_file,
- target + '.' + toolset + options.suffix + '.mk')
-
- spec = target_dicts[qualified_target]
- configs = spec['configurations']
-
- part_of_all = qualified_target in needed_targets
- if limit_to_target_all and not part_of_all:
- continue
-
- relative_target = gyp.common.QualifiedTarget(relative_build_file, target,
- toolset)
- writer = AndroidMkWriter(android_top_dir)
- android_module = writer.Write(qualified_target, relative_target, base_path,
- output_file, spec, configs,
- part_of_all=part_of_all,
- write_alias_target=write_alias_targets,
- sdk_version=sdk_version)
- if android_module in android_modules:
- print ('ERROR: Android module names must be unique. The following '
- 'targets both generate Android module name %s.\n %s\n %s' %
- (android_module, android_modules[android_module],
- qualified_target))
- return
- android_modules[android_module] = qualified_target
-
- # Our root_makefile lives at the source root. Compute the relative path
- # from there to the output_file for including.
- mkfile_rel_path = gyp.common.RelativePath(output_file,
- os.path.dirname(makefile_path))
- include_list.add(mkfile_rel_path)
-
- root_makefile.write('GYP_CONFIGURATION ?= %s\n' % default_configuration)
- root_makefile.write('GYP_VAR_PREFIX ?=\n')
- root_makefile.write('GYP_HOST_VAR_PREFIX ?=\n')
- root_makefile.write('GYP_HOST_MULTILIB ?= first\n')
-
- # Write out the sorted list of includes.
- root_makefile.write('\n')
- for include_file in sorted(include_list):
- root_makefile.write('include $(LOCAL_PATH)/' + include_file + '\n')
- root_makefile.write('\n')
-
- if write_alias_targets:
- root_makefile.write(ALL_MODULES_FOOTER)
-
- root_makefile.close()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py
deleted file mode 100644
index 17f5e63..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py
+++ /dev/null
@@ -1,1221 +0,0 @@
-# Copyright (c) 2013 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""cmake output module
-
-This module is under development and should be considered experimental.
-
-This module produces cmake (2.8.8+) input as its output. One CMakeLists.txt is
-created for each configuration.
-
-This module's original purpose was to support editing in IDEs like KDevelop
-which use CMake for project management. It is also possible to use CMake to
-generate projects for other IDEs such as eclipse cdt and code::blocks. QtCreator
-will convert the CMakeLists.txt to a code::blocks cbp for the editor to read,
-but build using CMake. As a result QtCreator editor is unaware of compiler
-defines. The generated CMakeLists.txt can also be used to build on Linux. There
-is currently no support for building on platforms other than Linux.
-
-The generated CMakeLists.txt should properly compile all projects. However,
-there is a mismatch between gyp and cmake with regard to linking. All attempts
-are made to work around this, but CMake sometimes sees -Wl,--start-group as a
-library and incorrectly repeats it. As a result the output of this generator
-should not be relied on for building.
-
-When using with kdevelop, use version 4.4+. Previous versions of kdevelop will
-not be able to find the header file directories described in the generated
-CMakeLists.txt file.
-"""
-
-import multiprocessing
-import os
-import signal
-import string
-import subprocess
-import gyp.common
-
-generator_default_variables = {
- 'EXECUTABLE_PREFIX': '',
- 'EXECUTABLE_SUFFIX': '',
- 'STATIC_LIB_PREFIX': 'lib',
- 'STATIC_LIB_SUFFIX': '.a',
- 'SHARED_LIB_PREFIX': 'lib',
- 'SHARED_LIB_SUFFIX': '.so',
- 'SHARED_LIB_DIR': '${builddir}/lib.${TOOLSET}',
- 'LIB_DIR': '${obj}.${TOOLSET}',
- 'INTERMEDIATE_DIR': '${obj}.${TOOLSET}/${TARGET}/geni',
- 'SHARED_INTERMEDIATE_DIR': '${obj}/gen',
- 'PRODUCT_DIR': '${builddir}',
- 'RULE_INPUT_PATH': '${RULE_INPUT_PATH}',
- 'RULE_INPUT_DIRNAME': '${RULE_INPUT_DIRNAME}',
- 'RULE_INPUT_NAME': '${RULE_INPUT_NAME}',
- 'RULE_INPUT_ROOT': '${RULE_INPUT_ROOT}',
- 'RULE_INPUT_EXT': '${RULE_INPUT_EXT}',
- 'CONFIGURATION_NAME': '${configuration}',
-}
-
-FULL_PATH_VARS = ('${CMAKE_CURRENT_LIST_DIR}', '${builddir}', '${obj}')
-
-generator_supports_multiple_toolsets = True
-generator_wants_static_library_dependencies_adjusted = True
-
-COMPILABLE_EXTENSIONS = {
- '.c': 'cc',
- '.cc': 'cxx',
- '.cpp': 'cxx',
- '.cxx': 'cxx',
- '.s': 's', # cc
- '.S': 's', # cc
-}
-
-
-def RemovePrefix(a, prefix):
- """Returns 'a' without 'prefix' if it starts with 'prefix'."""
- return a[len(prefix):] if a.startswith(prefix) else a
-
-
-def CalculateVariables(default_variables, params):
- """Calculate additional variables for use in the build (called by gyp)."""
- default_variables.setdefault('OS', gyp.common.GetFlavor(params))
-
-
-def Compilable(filename):
- """Return true if the file is compilable (should be in OBJS)."""
- return any(filename.endswith(e) for e in COMPILABLE_EXTENSIONS)
-
-
-def Linkable(filename):
- """Return true if the file is linkable (should be on the link line)."""
- return filename.endswith('.o')
-
-
-def NormjoinPathForceCMakeSource(base_path, rel_path):
- """Resolves rel_path against base_path and returns the result.
-
- If rel_path is an absolute path it is returned unchanged.
- Otherwise it is resolved against base_path and normalized.
- If the result is a relative path, it is forced to be relative to the
- CMakeLists.txt.
- """
- if os.path.isabs(rel_path):
- return rel_path
- if any([rel_path.startswith(var) for var in FULL_PATH_VARS]):
- return rel_path
- # TODO: do we need to check base_path for absolute variables as well?
- return os.path.join('${CMAKE_CURRENT_LIST_DIR}',
- os.path.normpath(os.path.join(base_path, rel_path)))
-
-
-def NormjoinPath(base_path, rel_path):
- """Resolves rel_path against base_path and returns the result.
- TODO: what is this really used for?
- If rel_path begins with '$' it is returned unchanged.
- Otherwise it is resolved against base_path if relative, then normalized.
- """
- if rel_path.startswith('$') and not rel_path.startswith('${configuration}'):
- return rel_path
- return os.path.normpath(os.path.join(base_path, rel_path))
-
-
-def CMakeStringEscape(a):
- """Escapes the string 'a' for use inside a CMake string.
-
- This means escaping
- '\' otherwise it may be seen as modifying the next character
- '"' otherwise it will end the string
- ';' otherwise the string becomes a list
-
- The following do not need to be escaped
- '#' when the lexer is in string state, this does not start a comment
-
- The following are yet unknown
- '$' generator variables (like ${obj}) must not be escaped,
- but text $ should be escaped
- what is wanted is to know which $ come from generator variables
- """
- return a.replace('\\', '\\\\').replace(';', '\\;').replace('"', '\\"')
-
-
-def SetFileProperty(output, source_name, property_name, values, sep):
- """Given a set of source file, sets the given property on them."""
- output.write('set_source_files_properties(')
- output.write(source_name)
- output.write(' PROPERTIES ')
- output.write(property_name)
- output.write(' "')
- for value in values:
- output.write(CMakeStringEscape(value))
- output.write(sep)
- output.write('")\n')
-
-
-def SetFilesProperty(output, variable, property_name, values, sep):
- """Given a set of source files, sets the given property on them."""
- output.write('set_source_files_properties(')
- WriteVariable(output, variable)
- output.write(' PROPERTIES ')
- output.write(property_name)
- output.write(' "')
- for value in values:
- output.write(CMakeStringEscape(value))
- output.write(sep)
- output.write('")\n')
-
-
-def SetTargetProperty(output, target_name, property_name, values, sep=''):
- """Given a target, sets the given property."""
- output.write('set_target_properties(')
- output.write(target_name)
- output.write(' PROPERTIES ')
- output.write(property_name)
- output.write(' "')
- for value in values:
- output.write(CMakeStringEscape(value))
- output.write(sep)
- output.write('")\n')
-
-
-def SetVariable(output, variable_name, value):
- """Sets a CMake variable."""
- output.write('set(')
- output.write(variable_name)
- output.write(' "')
- output.write(CMakeStringEscape(value))
- output.write('")\n')
-
-
-def SetVariableList(output, variable_name, values):
- """Sets a CMake variable to a list."""
- if not values:
- return SetVariable(output, variable_name, "")
- if len(values) == 1:
- return SetVariable(output, variable_name, values[0])
- output.write('list(APPEND ')
- output.write(variable_name)
- output.write('\n "')
- output.write('"\n "'.join([CMakeStringEscape(value) for value in values]))
- output.write('")\n')
-
-
-def UnsetVariable(output, variable_name):
- """Unsets a CMake variable."""
- output.write('unset(')
- output.write(variable_name)
- output.write(')\n')
-
-
-def WriteVariable(output, variable_name, prepend=None):
- if prepend:
- output.write(prepend)
- output.write('${')
- output.write(variable_name)
- output.write('}')
-
-
-class CMakeTargetType(object):
- def __init__(self, command, modifier, property_modifier):
- self.command = command
- self.modifier = modifier
- self.property_modifier = property_modifier
-
-
-cmake_target_type_from_gyp_target_type = {
- 'executable': CMakeTargetType('add_executable', None, 'RUNTIME'),
- 'static_library': CMakeTargetType('add_library', 'STATIC', 'ARCHIVE'),
- 'shared_library': CMakeTargetType('add_library', 'SHARED', 'LIBRARY'),
- 'loadable_module': CMakeTargetType('add_library', 'MODULE', 'LIBRARY'),
- 'none': CMakeTargetType('add_custom_target', 'SOURCES', None),
-}
-
-
-def StringToCMakeTargetName(a):
- """Converts the given string 'a' to a valid CMake target name.
-
- All invalid characters are replaced by '_'.
- Invalid for cmake: ' ', '/', '(', ')', '"'
- Invalid for make: ':'
- Invalid for unknown reasons but cause failures: '.'
- """
- return a.translate(string.maketrans(' /():."', '_______'))
-
-
-def WriteActions(target_name, actions, extra_sources, extra_deps,
- path_to_gyp, output):
- """Write CMake for the 'actions' in the target.
-
- Args:
- target_name: the name of the CMake target being generated.
- actions: the Gyp 'actions' dict for this target.
- extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
- extra_deps: [<cmake_taget>] to append with generated targets.
- path_to_gyp: relative path from CMakeLists.txt being generated to
- the Gyp file in which the target being generated is defined.
- """
- for action in actions:
- action_name = StringToCMakeTargetName(action['action_name'])
- action_target_name = '%s__%s' % (target_name, action_name)
-
- inputs = action['inputs']
- inputs_name = action_target_name + '__input'
- SetVariableList(output, inputs_name,
- [NormjoinPathForceCMakeSource(path_to_gyp, dep) for dep in inputs])
-
- outputs = action['outputs']
- cmake_outputs = [NormjoinPathForceCMakeSource(path_to_gyp, out)
- for out in outputs]
- outputs_name = action_target_name + '__output'
- SetVariableList(output, outputs_name, cmake_outputs)
-
- # Build up a list of outputs.
- # Collect the output dirs we'll need.
- dirs = set(dir for dir in (os.path.dirname(o) for o in outputs) if dir)
-
- if int(action.get('process_outputs_as_sources', False)):
- extra_sources.extend(zip(cmake_outputs, outputs))
-
- # add_custom_command
- output.write('add_custom_command(OUTPUT ')
- WriteVariable(output, outputs_name)
- output.write('\n')
-
- if len(dirs) > 0:
- for directory in dirs:
- output.write(' COMMAND ${CMAKE_COMMAND} -E make_directory ')
- output.write(directory)
- output.write('\n')
-
- output.write(' COMMAND ')
- output.write(gyp.common.EncodePOSIXShellList(action['action']))
- output.write('\n')
-
- output.write(' DEPENDS ')
- WriteVariable(output, inputs_name)
- output.write('\n')
-
- output.write(' WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/')
- output.write(path_to_gyp)
- output.write('\n')
-
- output.write(' COMMENT ')
- if 'message' in action:
- output.write(action['message'])
- else:
- output.write(action_target_name)
- output.write('\n')
-
- output.write(' VERBATIM\n')
- output.write(')\n')
-
- # add_custom_target
- output.write('add_custom_target(')
- output.write(action_target_name)
- output.write('\n DEPENDS ')
- WriteVariable(output, outputs_name)
- output.write('\n SOURCES ')
- WriteVariable(output, inputs_name)
- output.write('\n)\n')
-
- extra_deps.append(action_target_name)
-
-
-def NormjoinRulePathForceCMakeSource(base_path, rel_path, rule_source):
- if rel_path.startswith(("${RULE_INPUT_PATH}","${RULE_INPUT_DIRNAME}")):
- if any([rule_source.startswith(var) for var in FULL_PATH_VARS]):
- return rel_path
- return NormjoinPathForceCMakeSource(base_path, rel_path)
-
-
-def WriteRules(target_name, rules, extra_sources, extra_deps,
- path_to_gyp, output):
- """Write CMake for the 'rules' in the target.
-
- Args:
- target_name: the name of the CMake target being generated.
- actions: the Gyp 'actions' dict for this target.
- extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
- extra_deps: [<cmake_taget>] to append with generated targets.
- path_to_gyp: relative path from CMakeLists.txt being generated to
- the Gyp file in which the target being generated is defined.
- """
- for rule in rules:
- rule_name = StringToCMakeTargetName(target_name + '__' + rule['rule_name'])
-
- inputs = rule.get('inputs', [])
- inputs_name = rule_name + '__input'
- SetVariableList(output, inputs_name,
- [NormjoinPathForceCMakeSource(path_to_gyp, dep) for dep in inputs])
- outputs = rule['outputs']
- var_outputs = []
-
- for count, rule_source in enumerate(rule.get('rule_sources', [])):
- action_name = rule_name + '_' + str(count)
-
- rule_source_dirname, rule_source_basename = os.path.split(rule_source)
- rule_source_root, rule_source_ext = os.path.splitext(rule_source_basename)
-
- SetVariable(output, 'RULE_INPUT_PATH', rule_source)
- SetVariable(output, 'RULE_INPUT_DIRNAME', rule_source_dirname)
- SetVariable(output, 'RULE_INPUT_NAME', rule_source_basename)
- SetVariable(output, 'RULE_INPUT_ROOT', rule_source_root)
- SetVariable(output, 'RULE_INPUT_EXT', rule_source_ext)
-
- # Build up a list of outputs.
- # Collect the output dirs we'll need.
- dirs = set(dir for dir in (os.path.dirname(o) for o in outputs) if dir)
-
- # Create variables for the output, as 'local' variable will be unset.
- these_outputs = []
- for output_index, out in enumerate(outputs):
- output_name = action_name + '_' + str(output_index)
- SetVariable(output, output_name,
- NormjoinRulePathForceCMakeSource(path_to_gyp, out,
- rule_source))
- if int(rule.get('process_outputs_as_sources', False)):
- extra_sources.append(('${' + output_name + '}', out))
- these_outputs.append('${' + output_name + '}')
- var_outputs.append('${' + output_name + '}')
-
- # add_custom_command
- output.write('add_custom_command(OUTPUT\n')
- for out in these_outputs:
- output.write(' ')
- output.write(out)
- output.write('\n')
-
- for directory in dirs:
- output.write(' COMMAND ${CMAKE_COMMAND} -E make_directory ')
- output.write(directory)
- output.write('\n')
-
- output.write(' COMMAND ')
- output.write(gyp.common.EncodePOSIXShellList(rule['action']))
- output.write('\n')
-
- output.write(' DEPENDS ')
- WriteVariable(output, inputs_name)
- output.write(' ')
- output.write(NormjoinPath(path_to_gyp, rule_source))
- output.write('\n')
-
- # CMAKE_CURRENT_LIST_DIR is where the CMakeLists.txt lives.
- # The cwd is the current build directory.
- output.write(' WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/')
- output.write(path_to_gyp)
- output.write('\n')
-
- output.write(' COMMENT ')
- if 'message' in rule:
- output.write(rule['message'])
- else:
- output.write(action_name)
- output.write('\n')
-
- output.write(' VERBATIM\n')
- output.write(')\n')
-
- UnsetVariable(output, 'RULE_INPUT_PATH')
- UnsetVariable(output, 'RULE_INPUT_DIRNAME')
- UnsetVariable(output, 'RULE_INPUT_NAME')
- UnsetVariable(output, 'RULE_INPUT_ROOT')
- UnsetVariable(output, 'RULE_INPUT_EXT')
-
- # add_custom_target
- output.write('add_custom_target(')
- output.write(rule_name)
- output.write(' DEPENDS\n')
- for out in var_outputs:
- output.write(' ')
- output.write(out)
- output.write('\n')
- output.write('SOURCES ')
- WriteVariable(output, inputs_name)
- output.write('\n')
- for rule_source in rule.get('rule_sources', []):
- output.write(' ')
- output.write(NormjoinPath(path_to_gyp, rule_source))
- output.write('\n')
- output.write(')\n')
-
- extra_deps.append(rule_name)
-
-
-def WriteCopies(target_name, copies, extra_deps, path_to_gyp, output):
- """Write CMake for the 'copies' in the target.
-
- Args:
- target_name: the name of the CMake target being generated.
- actions: the Gyp 'actions' dict for this target.
- extra_deps: [<cmake_taget>] to append with generated targets.
- path_to_gyp: relative path from CMakeLists.txt being generated to
- the Gyp file in which the target being generated is defined.
- """
- copy_name = target_name + '__copies'
-
- # CMake gets upset with custom targets with OUTPUT which specify no output.
- have_copies = any(copy['files'] for copy in copies)
- if not have_copies:
- output.write('add_custom_target(')
- output.write(copy_name)
- output.write(')\n')
- extra_deps.append(copy_name)
- return
-
- class Copy(object):
- def __init__(self, ext, command):
- self.cmake_inputs = []
- self.cmake_outputs = []
- self.gyp_inputs = []
- self.gyp_outputs = []
- self.ext = ext
- self.inputs_name = None
- self.outputs_name = None
- self.command = command
-
- file_copy = Copy('', 'copy')
- dir_copy = Copy('_dirs', 'copy_directory')
-
- for copy in copies:
- files = copy['files']
- destination = copy['destination']
- for src in files:
- path = os.path.normpath(src)
- basename = os.path.split(path)[1]
- dst = os.path.join(destination, basename)
-
- copy = file_copy if os.path.basename(src) else dir_copy
-
- copy.cmake_inputs.append(NormjoinPathForceCMakeSource(path_to_gyp, src))
- copy.cmake_outputs.append(NormjoinPathForceCMakeSource(path_to_gyp, dst))
- copy.gyp_inputs.append(src)
- copy.gyp_outputs.append(dst)
-
- for copy in (file_copy, dir_copy):
- if copy.cmake_inputs:
- copy.inputs_name = copy_name + '__input' + copy.ext
- SetVariableList(output, copy.inputs_name, copy.cmake_inputs)
-
- copy.outputs_name = copy_name + '__output' + copy.ext
- SetVariableList(output, copy.outputs_name, copy.cmake_outputs)
-
- # add_custom_command
- output.write('add_custom_command(\n')
-
- output.write('OUTPUT')
- for copy in (file_copy, dir_copy):
- if copy.outputs_name:
- WriteVariable(output, copy.outputs_name, ' ')
- output.write('\n')
-
- for copy in (file_copy, dir_copy):
- for src, dst in zip(copy.gyp_inputs, copy.gyp_outputs):
- # 'cmake -E copy src dst' will create the 'dst' directory if needed.
- output.write('COMMAND ${CMAKE_COMMAND} -E %s ' % copy.command)
- output.write(src)
- output.write(' ')
- output.write(dst)
- output.write("\n")
-
- output.write('DEPENDS')
- for copy in (file_copy, dir_copy):
- if copy.inputs_name:
- WriteVariable(output, copy.inputs_name, ' ')
- output.write('\n')
-
- output.write('WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/')
- output.write(path_to_gyp)
- output.write('\n')
-
- output.write('COMMENT Copying for ')
- output.write(target_name)
- output.write('\n')
-
- output.write('VERBATIM\n')
- output.write(')\n')
-
- # add_custom_target
- output.write('add_custom_target(')
- output.write(copy_name)
- output.write('\n DEPENDS')
- for copy in (file_copy, dir_copy):
- if copy.outputs_name:
- WriteVariable(output, copy.outputs_name, ' ')
- output.write('\n SOURCES')
- if file_copy.inputs_name:
- WriteVariable(output, file_copy.inputs_name, ' ')
- output.write('\n)\n')
-
- extra_deps.append(copy_name)
-
-
-def CreateCMakeTargetBaseName(qualified_target):
- """This is the name we would like the target to have."""
- _, gyp_target_name, gyp_target_toolset = (
- gyp.common.ParseQualifiedTarget(qualified_target))
- cmake_target_base_name = gyp_target_name
- if gyp_target_toolset and gyp_target_toolset != 'target':
- cmake_target_base_name += '_' + gyp_target_toolset
- return StringToCMakeTargetName(cmake_target_base_name)
-
-
-def CreateCMakeTargetFullName(qualified_target):
- """An unambiguous name for the target."""
- gyp_file, gyp_target_name, gyp_target_toolset = (
- gyp.common.ParseQualifiedTarget(qualified_target))
- cmake_target_full_name = gyp_file + ':' + gyp_target_name
- if gyp_target_toolset and gyp_target_toolset != 'target':
- cmake_target_full_name += '_' + gyp_target_toolset
- return StringToCMakeTargetName(cmake_target_full_name)
-
-
-class CMakeNamer(object):
- """Converts Gyp target names into CMake target names.
-
- CMake requires that target names be globally unique. One way to ensure
- this is to fully qualify the names of the targets. Unfortunatly, this
- ends up with all targets looking like "chrome_chrome_gyp_chrome" instead
- of just "chrome". If this generator were only interested in building, it
- would be possible to fully qualify all target names, then create
- unqualified target names which depend on all qualified targets which
- should have had that name. This is more or less what the 'make' generator
- does with aliases. However, one goal of this generator is to create CMake
- files for use with IDEs, and fully qualified names are not as user
- friendly.
-
- Since target name collision is rare, we do the above only when required.
-
- Toolset variants are always qualified from the base, as this is required for
- building. However, it also makes sense for an IDE, as it is possible for
- defines to be different.
- """
- def __init__(self, target_list):
- self.cmake_target_base_names_conficting = set()
-
- cmake_target_base_names_seen = set()
- for qualified_target in target_list:
- cmake_target_base_name = CreateCMakeTargetBaseName(qualified_target)
-
- if cmake_target_base_name not in cmake_target_base_names_seen:
- cmake_target_base_names_seen.add(cmake_target_base_name)
- else:
- self.cmake_target_base_names_conficting.add(cmake_target_base_name)
-
- def CreateCMakeTargetName(self, qualified_target):
- base_name = CreateCMakeTargetBaseName(qualified_target)
- if base_name in self.cmake_target_base_names_conficting:
- return CreateCMakeTargetFullName(qualified_target)
- return base_name
-
-
-def WriteTarget(namer, qualified_target, target_dicts, build_dir, config_to_use,
- options, generator_flags, all_qualified_targets, output):
-
- # The make generator does this always.
- # TODO: It would be nice to be able to tell CMake all dependencies.
- circular_libs = generator_flags.get('circular', True)
-
- if not generator_flags.get('standalone', False):
- output.write('\n#')
- output.write(qualified_target)
- output.write('\n')
-
- gyp_file, _, _ = gyp.common.ParseQualifiedTarget(qualified_target)
- rel_gyp_file = gyp.common.RelativePath(gyp_file, options.toplevel_dir)
- rel_gyp_dir = os.path.dirname(rel_gyp_file)
-
- # Relative path from build dir to top dir.
- build_to_top = gyp.common.InvertRelativePath(build_dir, options.toplevel_dir)
- # Relative path from build dir to gyp dir.
- build_to_gyp = os.path.join(build_to_top, rel_gyp_dir)
-
- path_from_cmakelists_to_gyp = build_to_gyp
-
- spec = target_dicts.get(qualified_target, {})
- config = spec.get('configurations', {}).get(config_to_use, {})
-
- target_name = spec.get('target_name', '<missing target name>')
- target_type = spec.get('type', '<missing target type>')
- target_toolset = spec.get('toolset')
-
- cmake_target_type = cmake_target_type_from_gyp_target_type.get(target_type)
- if cmake_target_type is None:
- print ('Target %s has unknown target type %s, skipping.' %
- ( target_name, target_type ) )
- return
-
- SetVariable(output, 'TARGET', target_name)
- SetVariable(output, 'TOOLSET', target_toolset)
-
- cmake_target_name = namer.CreateCMakeTargetName(qualified_target)
-
- extra_sources = []
- extra_deps = []
-
- # Actions must come first, since they can generate more OBJs for use below.
- if 'actions' in spec:
- WriteActions(cmake_target_name, spec['actions'], extra_sources, extra_deps,
- path_from_cmakelists_to_gyp, output)
-
- # Rules must be early like actions.
- if 'rules' in spec:
- WriteRules(cmake_target_name, spec['rules'], extra_sources, extra_deps,
- path_from_cmakelists_to_gyp, output)
-
- # Copies
- if 'copies' in spec:
- WriteCopies(cmake_target_name, spec['copies'], extra_deps,
- path_from_cmakelists_to_gyp, output)
-
- # Target and sources
- srcs = spec.get('sources', [])
-
- # Gyp separates the sheep from the goats based on file extensions.
- # A full separation is done here because of flag handing (see below).
- s_sources = []
- c_sources = []
- cxx_sources = []
- linkable_sources = []
- other_sources = []
- for src in srcs:
- _, ext = os.path.splitext(src)
- src_type = COMPILABLE_EXTENSIONS.get(ext, None)
- src_norm_path = NormjoinPath(path_from_cmakelists_to_gyp, src);
-
- if src_type == 's':
- s_sources.append(src_norm_path)
- elif src_type == 'cc':
- c_sources.append(src_norm_path)
- elif src_type == 'cxx':
- cxx_sources.append(src_norm_path)
- elif Linkable(ext):
- linkable_sources.append(src_norm_path)
- else:
- other_sources.append(src_norm_path)
-
- for extra_source in extra_sources:
- src, real_source = extra_source
- _, ext = os.path.splitext(real_source)
- src_type = COMPILABLE_EXTENSIONS.get(ext, None)
-
- if src_type == 's':
- s_sources.append(src)
- elif src_type == 'cc':
- c_sources.append(src)
- elif src_type == 'cxx':
- cxx_sources.append(src)
- elif Linkable(ext):
- linkable_sources.append(src)
- else:
- other_sources.append(src)
-
- s_sources_name = None
- if s_sources:
- s_sources_name = cmake_target_name + '__asm_srcs'
- SetVariableList(output, s_sources_name, s_sources)
-
- c_sources_name = None
- if c_sources:
- c_sources_name = cmake_target_name + '__c_srcs'
- SetVariableList(output, c_sources_name, c_sources)
-
- cxx_sources_name = None
- if cxx_sources:
- cxx_sources_name = cmake_target_name + '__cxx_srcs'
- SetVariableList(output, cxx_sources_name, cxx_sources)
-
- linkable_sources_name = None
- if linkable_sources:
- linkable_sources_name = cmake_target_name + '__linkable_srcs'
- SetVariableList(output, linkable_sources_name, linkable_sources)
-
- other_sources_name = None
- if other_sources:
- other_sources_name = cmake_target_name + '__other_srcs'
- SetVariableList(output, other_sources_name, other_sources)
-
- # CMake gets upset when executable targets provide no sources.
- # http://www.cmake.org/pipermail/cmake/2010-July/038461.html
- dummy_sources_name = None
- has_sources = (s_sources_name or
- c_sources_name or
- cxx_sources_name or
- linkable_sources_name or
- other_sources_name)
- if target_type == 'executable' and not has_sources:
- dummy_sources_name = cmake_target_name + '__dummy_srcs'
- SetVariable(output, dummy_sources_name,
- "${obj}.${TOOLSET}/${TARGET}/genc/dummy.c")
- output.write('if(NOT EXISTS "')
- WriteVariable(output, dummy_sources_name)
- output.write('")\n')
- output.write(' file(WRITE "')
- WriteVariable(output, dummy_sources_name)
- output.write('" "")\n')
- output.write("endif()\n")
-
-
- # CMake is opposed to setting linker directories and considers the practice
- # of setting linker directories dangerous. Instead, it favors the use of
- # find_library and passing absolute paths to target_link_libraries.
- # However, CMake does provide the command link_directories, which adds
- # link directories to targets defined after it is called.
- # As a result, link_directories must come before the target definition.
- # CMake unfortunately has no means of removing entries from LINK_DIRECTORIES.
- library_dirs = config.get('library_dirs')
- if library_dirs is not None:
- output.write('link_directories(')
- for library_dir in library_dirs:
- output.write(' ')
- output.write(NormjoinPath(path_from_cmakelists_to_gyp, library_dir))
- output.write('\n')
- output.write(')\n')
-
- output.write(cmake_target_type.command)
- output.write('(')
- output.write(cmake_target_name)
-
- if cmake_target_type.modifier is not None:
- output.write(' ')
- output.write(cmake_target_type.modifier)
-
- if s_sources_name:
- WriteVariable(output, s_sources_name, ' ')
- if c_sources_name:
- WriteVariable(output, c_sources_name, ' ')
- if cxx_sources_name:
- WriteVariable(output, cxx_sources_name, ' ')
- if linkable_sources_name:
- WriteVariable(output, linkable_sources_name, ' ')
- if other_sources_name:
- WriteVariable(output, other_sources_name, ' ')
- if dummy_sources_name:
- WriteVariable(output, dummy_sources_name, ' ')
-
- output.write(')\n')
-
- # Let CMake know if the 'all' target should depend on this target.
- exclude_from_all = ('TRUE' if qualified_target not in all_qualified_targets
- else 'FALSE')
- SetTargetProperty(output, cmake_target_name,
- 'EXCLUDE_FROM_ALL', exclude_from_all)
- for extra_target_name in extra_deps:
- SetTargetProperty(output, extra_target_name,
- 'EXCLUDE_FROM_ALL', exclude_from_all)
-
- # Output name and location.
- if target_type != 'none':
- # Link as 'C' if there are no other files
- if not c_sources and not cxx_sources:
- SetTargetProperty(output, cmake_target_name, 'LINKER_LANGUAGE', ['C'])
-
- # Mark uncompiled sources as uncompiled.
- if other_sources_name:
- output.write('set_source_files_properties(')
- WriteVariable(output, other_sources_name, '')
- output.write(' PROPERTIES HEADER_FILE_ONLY "TRUE")\n')
-
- # Mark object sources as linkable.
- if linkable_sources_name:
- output.write('set_source_files_properties(')
- WriteVariable(output, other_sources_name, '')
- output.write(' PROPERTIES EXTERNAL_OBJECT "TRUE")\n')
-
- # Output directory
- target_output_directory = spec.get('product_dir')
- if target_output_directory is None:
- if target_type in ('executable', 'loadable_module'):
- target_output_directory = generator_default_variables['PRODUCT_DIR']
- elif target_type == 'shared_library':
- target_output_directory = '${builddir}/lib.${TOOLSET}'
- elif spec.get('standalone_static_library', False):
- target_output_directory = generator_default_variables['PRODUCT_DIR']
- else:
- base_path = gyp.common.RelativePath(os.path.dirname(gyp_file),
- options.toplevel_dir)
- target_output_directory = '${obj}.${TOOLSET}'
- target_output_directory = (
- os.path.join(target_output_directory, base_path))
-
- cmake_target_output_directory = NormjoinPathForceCMakeSource(
- path_from_cmakelists_to_gyp,
- target_output_directory)
- SetTargetProperty(output,
- cmake_target_name,
- cmake_target_type.property_modifier + '_OUTPUT_DIRECTORY',
- cmake_target_output_directory)
-
- # Output name
- default_product_prefix = ''
- default_product_name = target_name
- default_product_ext = ''
- if target_type == 'static_library':
- static_library_prefix = generator_default_variables['STATIC_LIB_PREFIX']
- default_product_name = RemovePrefix(default_product_name,
- static_library_prefix)
- default_product_prefix = static_library_prefix
- default_product_ext = generator_default_variables['STATIC_LIB_SUFFIX']
-
- elif target_type in ('loadable_module', 'shared_library'):
- shared_library_prefix = generator_default_variables['SHARED_LIB_PREFIX']
- default_product_name = RemovePrefix(default_product_name,
- shared_library_prefix)
- default_product_prefix = shared_library_prefix
- default_product_ext = generator_default_variables['SHARED_LIB_SUFFIX']
-
- elif target_type != 'executable':
- print ('ERROR: What output file should be generated?',
- 'type', target_type, 'target', target_name)
-
- product_prefix = spec.get('product_prefix', default_product_prefix)
- product_name = spec.get('product_name', default_product_name)
- product_ext = spec.get('product_extension')
- if product_ext:
- product_ext = '.' + product_ext
- else:
- product_ext = default_product_ext
-
- SetTargetProperty(output, cmake_target_name, 'PREFIX', product_prefix)
- SetTargetProperty(output, cmake_target_name,
- cmake_target_type.property_modifier + '_OUTPUT_NAME',
- product_name)
- SetTargetProperty(output, cmake_target_name, 'SUFFIX', product_ext)
-
- # Make the output of this target referenceable as a source.
- cmake_target_output_basename = product_prefix + product_name + product_ext
- cmake_target_output = os.path.join(cmake_target_output_directory,
- cmake_target_output_basename)
- SetFileProperty(output, cmake_target_output, 'GENERATED', ['TRUE'], '')
-
- # Includes
- includes = config.get('include_dirs')
- if includes:
- # This (target include directories) is what requires CMake 2.8.8
- includes_name = cmake_target_name + '__include_dirs'
- SetVariableList(output, includes_name,
- [NormjoinPathForceCMakeSource(path_from_cmakelists_to_gyp, include)
- for include in includes])
- output.write('set_property(TARGET ')
- output.write(cmake_target_name)
- output.write(' APPEND PROPERTY INCLUDE_DIRECTORIES ')
- WriteVariable(output, includes_name, '')
- output.write(')\n')
-
- # Defines
- defines = config.get('defines')
- if defines is not None:
- SetTargetProperty(output,
- cmake_target_name,
- 'COMPILE_DEFINITIONS',
- defines,
- ';')
-
- # Compile Flags - http://www.cmake.org/Bug/view.php?id=6493
- # CMake currently does not have target C and CXX flags.
- # So, instead of doing...
-
- # cflags_c = config.get('cflags_c')
- # if cflags_c is not None:
- # SetTargetProperty(output, cmake_target_name,
- # 'C_COMPILE_FLAGS', cflags_c, ' ')
-
- # cflags_cc = config.get('cflags_cc')
- # if cflags_cc is not None:
- # SetTargetProperty(output, cmake_target_name,
- # 'CXX_COMPILE_FLAGS', cflags_cc, ' ')
-
- # Instead we must...
- cflags = config.get('cflags', [])
- cflags_c = config.get('cflags_c', [])
- cflags_cxx = config.get('cflags_cc', [])
- if (not cflags_c or not c_sources) and (not cflags_cxx or not cxx_sources):
- SetTargetProperty(output, cmake_target_name, 'COMPILE_FLAGS', cflags, ' ')
-
- elif c_sources and not (s_sources or cxx_sources):
- flags = []
- flags.extend(cflags)
- flags.extend(cflags_c)
- SetTargetProperty(output, cmake_target_name, 'COMPILE_FLAGS', flags, ' ')
-
- elif cxx_sources and not (s_sources or c_sources):
- flags = []
- flags.extend(cflags)
- flags.extend(cflags_cxx)
- SetTargetProperty(output, cmake_target_name, 'COMPILE_FLAGS', flags, ' ')
-
- else:
- # TODO: This is broken, one cannot generally set properties on files,
- # as other targets may require different properties on the same files.
- if s_sources and cflags:
- SetFilesProperty(output, s_sources_name, 'COMPILE_FLAGS', cflags, ' ')
-
- if c_sources and (cflags or cflags_c):
- flags = []
- flags.extend(cflags)
- flags.extend(cflags_c)
- SetFilesProperty(output, c_sources_name, 'COMPILE_FLAGS', flags, ' ')
-
- if cxx_sources and (cflags or cflags_cxx):
- flags = []
- flags.extend(cflags)
- flags.extend(cflags_cxx)
- SetFilesProperty(output, cxx_sources_name, 'COMPILE_FLAGS', flags, ' ')
-
- # Linker flags
- ldflags = config.get('ldflags')
- if ldflags is not None:
- SetTargetProperty(output, cmake_target_name, 'LINK_FLAGS', ldflags, ' ')
-
- # Note on Dependencies and Libraries:
- # CMake wants to handle link order, resolving the link line up front.
- # Gyp does not retain or enforce specifying enough information to do so.
- # So do as other gyp generators and use --start-group and --end-group.
- # Give CMake as little information as possible so that it doesn't mess it up.
-
- # Dependencies
- rawDeps = spec.get('dependencies', [])
-
- static_deps = []
- shared_deps = []
- other_deps = []
- for rawDep in rawDeps:
- dep_cmake_name = namer.CreateCMakeTargetName(rawDep)
- dep_spec = target_dicts.get(rawDep, {})
- dep_target_type = dep_spec.get('type', None)
-
- if dep_target_type == 'static_library':
- static_deps.append(dep_cmake_name)
- elif dep_target_type == 'shared_library':
- shared_deps.append(dep_cmake_name)
- else:
- other_deps.append(dep_cmake_name)
-
- # ensure all external dependencies are complete before internal dependencies
- # extra_deps currently only depend on their own deps, so otherwise run early
- if static_deps or shared_deps or other_deps:
- for extra_dep in extra_deps:
- output.write('add_dependencies(')
- output.write(extra_dep)
- output.write('\n')
- for deps in (static_deps, shared_deps, other_deps):
- for dep in gyp.common.uniquer(deps):
- output.write(' ')
- output.write(dep)
- output.write('\n')
- output.write(')\n')
-
- linkable = target_type in ('executable', 'loadable_module', 'shared_library')
- other_deps.extend(extra_deps)
- if other_deps or (not linkable and (static_deps or shared_deps)):
- output.write('add_dependencies(')
- output.write(cmake_target_name)
- output.write('\n')
- for dep in gyp.common.uniquer(other_deps):
- output.write(' ')
- output.write(dep)
- output.write('\n')
- if not linkable:
- for deps in (static_deps, shared_deps):
- for lib_dep in gyp.common.uniquer(deps):
- output.write(' ')
- output.write(lib_dep)
- output.write('\n')
- output.write(')\n')
-
- # Libraries
- if linkable:
- external_libs = [lib for lib in spec.get('libraries', []) if len(lib) > 0]
- if external_libs or static_deps or shared_deps:
- output.write('target_link_libraries(')
- output.write(cmake_target_name)
- output.write('\n')
- if static_deps:
- write_group = circular_libs and len(static_deps) > 1
- if write_group:
- output.write('-Wl,--start-group\n')
- for dep in gyp.common.uniquer(static_deps):
- output.write(' ')
- output.write(dep)
- output.write('\n')
- if write_group:
- output.write('-Wl,--end-group\n')
- if shared_deps:
- for dep in gyp.common.uniquer(shared_deps):
- output.write(' ')
- output.write(dep)
- output.write('\n')
- if external_libs:
- for lib in gyp.common.uniquer(external_libs):
- output.write(' ')
- output.write(lib)
- output.write('\n')
-
- output.write(')\n')
-
- UnsetVariable(output, 'TOOLSET')
- UnsetVariable(output, 'TARGET')
-
-
-def GenerateOutputForConfig(target_list, target_dicts, data,
- params, config_to_use):
- options = params['options']
- generator_flags = params['generator_flags']
-
- # generator_dir: relative path from pwd to where make puts build files.
- # Makes migrating from make to cmake easier, cmake doesn't put anything here.
- # Each Gyp configuration creates a different CMakeLists.txt file
- # to avoid incompatibilities between Gyp and CMake configurations.
- generator_dir = os.path.relpath(options.generator_output or '.')
-
- # output_dir: relative path from generator_dir to the build directory.
- output_dir = generator_flags.get('output_dir', 'out')
-
- # build_dir: relative path from source root to our output files.
- # e.g. "out/Debug"
- build_dir = os.path.normpath(os.path.join(generator_dir,
- output_dir,
- config_to_use))
-
- toplevel_build = os.path.join(options.toplevel_dir, build_dir)
-
- output_file = os.path.join(toplevel_build, 'CMakeLists.txt')
- gyp.common.EnsureDirExists(output_file)
-
- output = open(output_file, 'w')
- output.write('cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)\n')
- output.write('cmake_policy(VERSION 2.8.8)\n')
-
- gyp_file, project_target, _ = gyp.common.ParseQualifiedTarget(target_list[-1])
- output.write('project(')
- output.write(project_target)
- output.write(')\n')
-
- SetVariable(output, 'configuration', config_to_use)
-
- ar = None
- cc = None
- cxx = None
-
- make_global_settings = data[gyp_file].get('make_global_settings', [])
- build_to_top = gyp.common.InvertRelativePath(build_dir,
- options.toplevel_dir)
- for key, value in make_global_settings:
- if key == 'AR':
- ar = os.path.join(build_to_top, value)
- if key == 'CC':
- cc = os.path.join(build_to_top, value)
- if key == 'CXX':
- cxx = os.path.join(build_to_top, value)
-
- ar = gyp.common.GetEnvironFallback(['AR_target', 'AR'], ar)
- cc = gyp.common.GetEnvironFallback(['CC_target', 'CC'], cc)
- cxx = gyp.common.GetEnvironFallback(['CXX_target', 'CXX'], cxx)
-
- if ar:
- SetVariable(output, 'CMAKE_AR', ar)
- if cc:
- SetVariable(output, 'CMAKE_C_COMPILER', cc)
- if cxx:
- SetVariable(output, 'CMAKE_CXX_COMPILER', cxx)
-
- # The following appears to be as-yet undocumented.
- # http://public.kitware.com/Bug/view.php?id=8392
- output.write('enable_language(ASM)\n')
- # ASM-ATT does not support .S files.
- # output.write('enable_language(ASM-ATT)\n')
-
- if cc:
- SetVariable(output, 'CMAKE_ASM_COMPILER', cc)
-
- SetVariable(output, 'builddir', '${CMAKE_CURRENT_BINARY_DIR}')
- SetVariable(output, 'obj', '${builddir}/obj')
- output.write('\n')
-
- # TODO: Undocumented/unsupported (the CMake Java generator depends on it).
- # CMake by default names the object resulting from foo.c to be foo.c.o.
- # Gyp traditionally names the object resulting from foo.c foo.o.
- # This should be irrelevant, but some targets extract .o files from .a
- # and depend on the name of the extracted .o files.
- output.write('set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)\n')
- output.write('set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)\n')
- output.write('\n')
-
- # Force ninja to use rsp files. Otherwise link and ar lines can get too long,
- # resulting in 'Argument list too long' errors.
- output.write('set(CMAKE_NINJA_FORCE_RESPONSE_FILE 1)\n')
- output.write('\n')
-
- namer = CMakeNamer(target_list)
-
- # The list of targets upon which the 'all' target should depend.
- # CMake has it's own implicit 'all' target, one is not created explicitly.
- all_qualified_targets = set()
- for build_file in params['build_files']:
- for qualified_target in gyp.common.AllTargets(target_list,
- target_dicts,
- os.path.normpath(build_file)):
- all_qualified_targets.add(qualified_target)
-
- for qualified_target in target_list:
- WriteTarget(namer, qualified_target, target_dicts, build_dir, config_to_use,
- options, generator_flags, all_qualified_targets, output)
-
- output.close()
-
-
-def PerformBuild(data, configurations, params):
- options = params['options']
- generator_flags = params['generator_flags']
-
- # generator_dir: relative path from pwd to where make puts build files.
- # Makes migrating from make to cmake easier, cmake doesn't put anything here.
- generator_dir = os.path.relpath(options.generator_output or '.')
-
- # output_dir: relative path from generator_dir to the build directory.
- output_dir = generator_flags.get('output_dir', 'out')
-
- for config_name in configurations:
- # build_dir: relative path from source root to our output files.
- # e.g. "out/Debug"
- build_dir = os.path.normpath(os.path.join(generator_dir,
- output_dir,
- config_name))
- arguments = ['cmake', '-G', 'Ninja']
- print 'Generating [%s]: %s' % (config_name, arguments)
- subprocess.check_call(arguments, cwd=build_dir)
-
- arguments = ['ninja', '-C', build_dir]
- print 'Building [%s]: %s' % (config_name, arguments)
- subprocess.check_call(arguments)
-
-
-def CallGenerateOutputForConfig(arglist):
- # Ignore the interrupt signal so that the parent process catches it and
- # kills all multiprocessing children.
- signal.signal(signal.SIGINT, signal.SIG_IGN)
-
- target_list, target_dicts, data, params, config_name = arglist
- GenerateOutputForConfig(target_list, target_dicts, data, params, config_name)
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- user_config = params.get('generator_flags', {}).get('config', None)
- if user_config:
- GenerateOutputForConfig(target_list, target_dicts, data,
- params, user_config)
- else:
- config_names = target_dicts[target_list[0]]['configurations'].keys()
- if params['parallel']:
- try:
- pool = multiprocessing.Pool(len(config_names))
- arglists = []
- for config_name in config_names:
- arglists.append((target_list, target_dicts, data,
- params, config_name))
- pool.map(CallGenerateOutputForConfig, arglists)
- except KeyboardInterrupt, e:
- pool.terminate()
- raise e
- else:
- for config_name in config_names:
- GenerateOutputForConfig(target_list, target_dicts, data,
- params, config_name)
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py
deleted file mode 100644
index 160eafe..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import collections
-import os
-import gyp
-import gyp.common
-import gyp.msvs_emulation
-import json
-import sys
-
-generator_supports_multiple_toolsets = True
-
-generator_wants_static_library_dependencies_adjusted = False
-
-generator_filelist_paths = {
-}
-
-generator_default_variables = {
-}
-for dirname in ['INTERMEDIATE_DIR', 'SHARED_INTERMEDIATE_DIR', 'PRODUCT_DIR',
- 'LIB_DIR', 'SHARED_LIB_DIR']:
- # Some gyp steps fail if these are empty(!).
- generator_default_variables[dirname] = 'dir'
-for unused in ['RULE_INPUT_PATH', 'RULE_INPUT_ROOT', 'RULE_INPUT_NAME',
- 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT',
- 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX',
- 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX',
- 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX',
- 'CONFIGURATION_NAME']:
- generator_default_variables[unused] = ''
-
-
-def CalculateVariables(default_variables, params):
- generator_flags = params.get('generator_flags', {})
- for key, val in generator_flags.items():
- default_variables.setdefault(key, val)
- default_variables.setdefault('OS', gyp.common.GetFlavor(params))
-
- flavor = gyp.common.GetFlavor(params)
- if flavor =='win':
- # Copy additional generator configuration data from VS, which is shared
- # by the Windows Ninja generator.
- import gyp.generator.msvs as msvs_generator
- generator_additional_non_configuration_keys = getattr(msvs_generator,
- 'generator_additional_non_configuration_keys', [])
- generator_additional_path_sections = getattr(msvs_generator,
- 'generator_additional_path_sections', [])
-
- gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
-
-
-def CalculateGeneratorInputInfo(params):
- """Calculate the generator specific info that gets fed to input (called by
- gyp)."""
- generator_flags = params.get('generator_flags', {})
- if generator_flags.get('adjust_static_libraries', False):
- global generator_wants_static_library_dependencies_adjusted
- generator_wants_static_library_dependencies_adjusted = True
-
- toplevel = params['options'].toplevel_dir
- generator_dir = os.path.relpath(params['options'].generator_output or '.')
- # output_dir: relative path from generator_dir to the build directory.
- output_dir = generator_flags.get('output_dir', 'out')
- qualified_out_dir = os.path.normpath(os.path.join(
- toplevel, generator_dir, output_dir, 'gypfiles'))
- global generator_filelist_paths
- generator_filelist_paths = {
- 'toplevel': toplevel,
- 'qualified_out_dir': qualified_out_dir,
- }
-
-def GenerateOutput(target_list, target_dicts, data, params):
- # Map of target -> list of targets it depends on.
- edges = {}
-
- # Queue of targets to visit.
- targets_to_visit = target_list[:]
-
- while len(targets_to_visit) > 0:
- target = targets_to_visit.pop()
- if target in edges:
- continue
- edges[target] = []
-
- for dep in target_dicts[target].get('dependencies', []):
- edges[target].append(dep)
- targets_to_visit.append(dep)
-
- try:
- filepath = params['generator_flags']['output_dir']
- except KeyError:
- filepath = '.'
- filename = os.path.join(filepath, 'dump.json')
- f = open(filename, 'w')
- json.dump(edges, f)
- f.close()
- print 'Wrote json to %s.' % filename
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py
deleted file mode 100644
index 3544347..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py
+++ /dev/null
@@ -1,425 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""GYP backend that generates Eclipse CDT settings files.
-
-This backend DOES NOT generate Eclipse CDT projects. Instead, it generates XML
-files that can be imported into an Eclipse CDT project. The XML file contains a
-list of include paths and symbols (i.e. defines).
-
-Because a full .cproject definition is not created by this generator, it's not
-possible to properly define the include dirs and symbols for each file
-individually. Instead, one set of includes/symbols is generated for the entire
-project. This works fairly well (and is a vast improvement in general), but may
-still result in a few indexer issues here and there.
-
-This generator has no automated tests, so expect it to be broken.
-"""
-
-from xml.sax.saxutils import escape
-import os.path
-import subprocess
-import gyp
-import gyp.common
-import gyp.msvs_emulation
-import shlex
-import xml.etree.cElementTree as ET
-
-generator_wants_static_library_dependencies_adjusted = False
-
-generator_default_variables = {
-}
-
-for dirname in ['INTERMEDIATE_DIR', 'PRODUCT_DIR', 'LIB_DIR', 'SHARED_LIB_DIR']:
- # Some gyp steps fail if these are empty(!), so we convert them to variables
- generator_default_variables[dirname] = '$' + dirname
-
-for unused in ['RULE_INPUT_PATH', 'RULE_INPUT_ROOT', 'RULE_INPUT_NAME',
- 'RULE_INPUT_DIRNAME', 'RULE_INPUT_EXT',
- 'EXECUTABLE_PREFIX', 'EXECUTABLE_SUFFIX',
- 'STATIC_LIB_PREFIX', 'STATIC_LIB_SUFFIX',
- 'SHARED_LIB_PREFIX', 'SHARED_LIB_SUFFIX',
- 'CONFIGURATION_NAME']:
- generator_default_variables[unused] = ''
-
-# Include dirs will occasionally use the SHARED_INTERMEDIATE_DIR variable as
-# part of the path when dealing with generated headers. This value will be
-# replaced dynamically for each configuration.
-generator_default_variables['SHARED_INTERMEDIATE_DIR'] = \
- '$SHARED_INTERMEDIATE_DIR'
-
-
-def CalculateVariables(default_variables, params):
- generator_flags = params.get('generator_flags', {})
- for key, val in generator_flags.items():
- default_variables.setdefault(key, val)
- flavor = gyp.common.GetFlavor(params)
- default_variables.setdefault('OS', flavor)
- if flavor == 'win':
- # Copy additional generator configuration data from VS, which is shared
- # by the Eclipse generator.
- import gyp.generator.msvs as msvs_generator
- generator_additional_non_configuration_keys = getattr(msvs_generator,
- 'generator_additional_non_configuration_keys', [])
- generator_additional_path_sections = getattr(msvs_generator,
- 'generator_additional_path_sections', [])
-
- gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
-
-
-def CalculateGeneratorInputInfo(params):
- """Calculate the generator specific info that gets fed to input (called by
- gyp)."""
- generator_flags = params.get('generator_flags', {})
- if generator_flags.get('adjust_static_libraries', False):
- global generator_wants_static_library_dependencies_adjusted
- generator_wants_static_library_dependencies_adjusted = True
-
-
-def GetAllIncludeDirectories(target_list, target_dicts,
- shared_intermediate_dirs, config_name, params,
- compiler_path):
- """Calculate the set of include directories to be used.
-
- Returns:
- A list including all the include_dir's specified for every target followed
- by any include directories that were added as cflag compiler options.
- """
-
- gyp_includes_set = set()
- compiler_includes_list = []
-
- # Find compiler's default include dirs.
- if compiler_path:
- command = shlex.split(compiler_path)
- command.extend(['-E', '-xc++', '-v', '-'])
- proc = subprocess.Popen(args=command, stdin=subprocess.PIPE,
- stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- output = proc.communicate()[1]
- # Extract the list of include dirs from the output, which has this format:
- # ...
- # #include "..." search starts here:
- # #include <...> search starts here:
- # /usr/include/c++/4.6
- # /usr/local/include
- # End of search list.
- # ...
- in_include_list = False
- for line in output.splitlines():
- if line.startswith('#include'):
- in_include_list = True
- continue
- if line.startswith('End of search list.'):
- break
- if in_include_list:
- include_dir = line.strip()
- if include_dir not in compiler_includes_list:
- compiler_includes_list.append(include_dir)
-
- flavor = gyp.common.GetFlavor(params)
- if flavor == 'win':
- generator_flags = params.get('generator_flags', {})
- for target_name in target_list:
- target = target_dicts[target_name]
- if config_name in target['configurations']:
- config = target['configurations'][config_name]
-
- # Look for any include dirs that were explicitly added via cflags. This
- # may be done in gyp files to force certain includes to come at the end.
- # TODO(jgreenwald): Change the gyp files to not abuse cflags for this, and
- # remove this.
- if flavor == 'win':
- msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags)
- cflags = msvs_settings.GetCflags(config_name)
- else:
- cflags = config['cflags']
- for cflag in cflags:
- if cflag.startswith('-I'):
- include_dir = cflag[2:]
- if include_dir not in compiler_includes_list:
- compiler_includes_list.append(include_dir)
-
- # Find standard gyp include dirs.
- if config.has_key('include_dirs'):
- include_dirs = config['include_dirs']
- for shared_intermediate_dir in shared_intermediate_dirs:
- for include_dir in include_dirs:
- include_dir = include_dir.replace('$SHARED_INTERMEDIATE_DIR',
- shared_intermediate_dir)
- if not os.path.isabs(include_dir):
- base_dir = os.path.dirname(target_name)
-
- include_dir = base_dir + '/' + include_dir
- include_dir = os.path.abspath(include_dir)
-
- gyp_includes_set.add(include_dir)
-
- # Generate a list that has all the include dirs.
- all_includes_list = list(gyp_includes_set)
- all_includes_list.sort()
- for compiler_include in compiler_includes_list:
- if not compiler_include in gyp_includes_set:
- all_includes_list.append(compiler_include)
-
- # All done.
- return all_includes_list
-
-
-def GetCompilerPath(target_list, data, options):
- """Determine a command that can be used to invoke the compiler.
-
- Returns:
- If this is a gyp project that has explicit make settings, try to determine
- the compiler from that. Otherwise, see if a compiler was specified via the
- CC_target environment variable.
- """
- # First, see if the compiler is configured in make's settings.
- build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
- make_global_settings_dict = data[build_file].get('make_global_settings', {})
- for key, value in make_global_settings_dict:
- if key in ['CC', 'CXX']:
- return os.path.join(options.toplevel_dir, value)
-
- # Check to see if the compiler was specified as an environment variable.
- for key in ['CC_target', 'CC', 'CXX']:
- compiler = os.environ.get(key)
- if compiler:
- return compiler
-
- return 'gcc'
-
-
-def GetAllDefines(target_list, target_dicts, data, config_name, params,
- compiler_path):
- """Calculate the defines for a project.
-
- Returns:
- A dict that includes explict defines declared in gyp files along with all of
- the default defines that the compiler uses.
- """
-
- # Get defines declared in the gyp files.
- all_defines = {}
- flavor = gyp.common.GetFlavor(params)
- if flavor == 'win':
- generator_flags = params.get('generator_flags', {})
- for target_name in target_list:
- target = target_dicts[target_name]
-
- if flavor == 'win':
- msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags)
- extra_defines = msvs_settings.GetComputedDefines(config_name)
- else:
- extra_defines = []
- if config_name in target['configurations']:
- config = target['configurations'][config_name]
- target_defines = config['defines']
- else:
- target_defines = []
- for define in target_defines + extra_defines:
- split_define = define.split('=', 1)
- if len(split_define) == 1:
- split_define.append('1')
- if split_define[0].strip() in all_defines:
- # Already defined
- continue
- all_defines[split_define[0].strip()] = split_define[1].strip()
- # Get default compiler defines (if possible).
- if flavor == 'win':
- return all_defines # Default defines already processed in the loop above.
- if compiler_path:
- command = shlex.split(compiler_path)
- command.extend(['-E', '-dM', '-'])
- cpp_proc = subprocess.Popen(args=command, cwd='.',
- stdin=subprocess.PIPE, stdout=subprocess.PIPE)
- cpp_output = cpp_proc.communicate()[0]
- cpp_lines = cpp_output.split('\n')
- for cpp_line in cpp_lines:
- if not cpp_line.strip():
- continue
- cpp_line_parts = cpp_line.split(' ', 2)
- key = cpp_line_parts[1]
- if len(cpp_line_parts) >= 3:
- val = cpp_line_parts[2]
- else:
- val = '1'
- all_defines[key] = val
-
- return all_defines
-
-
-def WriteIncludePaths(out, eclipse_langs, include_dirs):
- """Write the includes section of a CDT settings export file."""
-
- out.write(' <section name="org.eclipse.cdt.internal.ui.wizards.' \
- 'settingswizards.IncludePaths">\n')
- out.write(' <language name="holder for library settings"></language>\n')
- for lang in eclipse_langs:
- out.write(' <language name="%s">\n' % lang)
- for include_dir in include_dirs:
- out.write(' <includepath workspace_path="false">%s</includepath>\n' %
- include_dir)
- out.write(' </language>\n')
- out.write(' </section>\n')
-
-
-def WriteMacros(out, eclipse_langs, defines):
- """Write the macros section of a CDT settings export file."""
-
- out.write(' <section name="org.eclipse.cdt.internal.ui.wizards.' \
- 'settingswizards.Macros">\n')
- out.write(' <language name="holder for library settings"></language>\n')
- for lang in eclipse_langs:
- out.write(' <language name="%s">\n' % lang)
- for key in sorted(defines.iterkeys()):
- out.write(' <macro><name>%s</name><value>%s</value></macro>\n' %
- (escape(key), escape(defines[key])))
- out.write(' </language>\n')
- out.write(' </section>\n')
-
-
-def GenerateOutputForConfig(target_list, target_dicts, data, params,
- config_name):
- options = params['options']
- generator_flags = params.get('generator_flags', {})
-
- # build_dir: relative path from source root to our output files.
- # e.g. "out/Debug"
- build_dir = os.path.join(generator_flags.get('output_dir', 'out'),
- config_name)
-
- toplevel_build = os.path.join(options.toplevel_dir, build_dir)
- # Ninja uses out/Debug/gen while make uses out/Debug/obj/gen as the
- # SHARED_INTERMEDIATE_DIR. Include both possible locations.
- shared_intermediate_dirs = [os.path.join(toplevel_build, 'obj', 'gen'),
- os.path.join(toplevel_build, 'gen')]
-
- GenerateCdtSettingsFile(target_list,
- target_dicts,
- data,
- params,
- config_name,
- os.path.join(toplevel_build,
- 'eclipse-cdt-settings.xml'),
- options,
- shared_intermediate_dirs)
- GenerateClasspathFile(target_list,
- target_dicts,
- options.toplevel_dir,
- toplevel_build,
- os.path.join(toplevel_build,
- 'eclipse-classpath.xml'))
-
-
-def GenerateCdtSettingsFile(target_list, target_dicts, data, params,
- config_name, out_name, options,
- shared_intermediate_dirs):
- gyp.common.EnsureDirExists(out_name)
- with open(out_name, 'w') as out:
- out.write('<?xml version="1.0" encoding="UTF-8"?>\n')
- out.write('<cdtprojectproperties>\n')
-
- eclipse_langs = ['C++ Source File', 'C Source File', 'Assembly Source File',
- 'GNU C++', 'GNU C', 'Assembly']
- compiler_path = GetCompilerPath(target_list, data, options)
- include_dirs = GetAllIncludeDirectories(target_list, target_dicts,
- shared_intermediate_dirs,
- config_name, params, compiler_path)
- WriteIncludePaths(out, eclipse_langs, include_dirs)
- defines = GetAllDefines(target_list, target_dicts, data, config_name,
- params, compiler_path)
- WriteMacros(out, eclipse_langs, defines)
-
- out.write('</cdtprojectproperties>\n')
-
-
-def GenerateClasspathFile(target_list, target_dicts, toplevel_dir,
- toplevel_build, out_name):
- '''Generates a classpath file suitable for symbol navigation and code
- completion of Java code (such as in Android projects) by finding all
- .java and .jar files used as action inputs.'''
- gyp.common.EnsureDirExists(out_name)
- result = ET.Element('classpath')
-
- def AddElements(kind, paths):
- # First, we need to normalize the paths so they are all relative to the
- # toplevel dir.
- rel_paths = set()
- for path in paths:
- if os.path.isabs(path):
- rel_paths.add(os.path.relpath(path, toplevel_dir))
- else:
- rel_paths.add(path)
-
- for path in sorted(rel_paths):
- entry_element = ET.SubElement(result, 'classpathentry')
- entry_element.set('kind', kind)
- entry_element.set('path', path)
-
- AddElements('lib', GetJavaJars(target_list, target_dicts, toplevel_dir))
- AddElements('src', GetJavaSourceDirs(target_list, target_dicts, toplevel_dir))
- # Include the standard JRE container and a dummy out folder
- AddElements('con', ['org.eclipse.jdt.launching.JRE_CONTAINER'])
- # Include a dummy out folder so that Eclipse doesn't use the default /bin
- # folder in the root of the project.
- AddElements('output', [os.path.join(toplevel_build, '.eclipse-java-build')])
-
- ET.ElementTree(result).write(out_name)
-
-
-def GetJavaJars(target_list, target_dicts, toplevel_dir):
- '''Generates a sequence of all .jars used as inputs.'''
- for target_name in target_list:
- target = target_dicts[target_name]
- for action in target.get('actions', []):
- for input_ in action['inputs']:
- if os.path.splitext(input_)[1] == '.jar' and not input_.startswith('$'):
- if os.path.isabs(input_):
- yield input_
- else:
- yield os.path.join(os.path.dirname(target_name), input_)
-
-
-def GetJavaSourceDirs(target_list, target_dicts, toplevel_dir):
- '''Generates a sequence of all likely java package root directories.'''
- for target_name in target_list:
- target = target_dicts[target_name]
- for action in target.get('actions', []):
- for input_ in action['inputs']:
- if (os.path.splitext(input_)[1] == '.java' and
- not input_.startswith('$')):
- dir_ = os.path.dirname(os.path.join(os.path.dirname(target_name),
- input_))
- # If there is a parent 'src' or 'java' folder, navigate up to it -
- # these are canonical package root names in Chromium. This will
- # break if 'src' or 'java' exists in the package structure. This
- # could be further improved by inspecting the java file for the
- # package name if this proves to be too fragile in practice.
- parent_search = dir_
- while os.path.basename(parent_search) not in ['src', 'java']:
- parent_search, _ = os.path.split(parent_search)
- if not parent_search or parent_search == toplevel_dir:
- # Didn't find a known root, just return the original path
- yield dir_
- break
- else:
- yield parent_search
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- """Generate an XML settings file that can be imported into a CDT project."""
-
- if params['options'].generator_output:
- raise NotImplementedError("--generator_output not implemented for eclipse")
-
- user_config = params.get('generator_flags', {}).get('config', None)
- if user_config:
- GenerateOutputForConfig(target_list, target_dicts, data, params,
- user_config)
- else:
- config_names = target_dicts[target_list[0]]['configurations'].keys()
- for config_name in config_names:
- GenerateOutputForConfig(target_list, target_dicts, data, params,
- config_name)
-
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py
deleted file mode 100644
index 3efdb99..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright (c) 2011 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""gypd output module
-
-This module produces gyp input as its output. Output files are given the
-.gypd extension to avoid overwriting the .gyp files that they are generated
-from. Internal references to .gyp files (such as those found in
-"dependencies" sections) are not adjusted to point to .gypd files instead;
-unlike other paths, which are relative to the .gyp or .gypd file, such paths
-are relative to the directory from which gyp was run to create the .gypd file.
-
-This generator module is intended to be a sample and a debugging aid, hence
-the "d" for "debug" in .gypd. It is useful to inspect the results of the
-various merges, expansions, and conditional evaluations performed by gyp
-and to see a representation of what would be fed to a generator module.
-
-It's not advisable to rename .gypd files produced by this module to .gyp,
-because they will have all merges, expansions, and evaluations already
-performed and the relevant constructs not present in the output; paths to
-dependencies may be wrong; and various sections that do not belong in .gyp
-files such as such as "included_files" and "*_excluded" will be present.
-Output will also be stripped of comments. This is not intended to be a
-general-purpose gyp pretty-printer; for that, you probably just want to
-run "pprint.pprint(eval(open('source.gyp').read()))", which will still strip
-comments but won't do all of the other things done to this module's output.
-
-The specific formatting of the output generated by this module is subject
-to change.
-"""
-
-
-import gyp.common
-import errno
-import os
-import pprint
-
-
-# These variables should just be spit back out as variable references.
-_generator_identity_variables = [
- 'CONFIGURATION_NAME',
- 'EXECUTABLE_PREFIX',
- 'EXECUTABLE_SUFFIX',
- 'INTERMEDIATE_DIR',
- 'LIB_DIR',
- 'PRODUCT_DIR',
- 'RULE_INPUT_ROOT',
- 'RULE_INPUT_DIRNAME',
- 'RULE_INPUT_EXT',
- 'RULE_INPUT_NAME',
- 'RULE_INPUT_PATH',
- 'SHARED_INTERMEDIATE_DIR',
- 'SHARED_LIB_DIR',
- 'SHARED_LIB_PREFIX',
- 'SHARED_LIB_SUFFIX',
- 'STATIC_LIB_PREFIX',
- 'STATIC_LIB_SUFFIX',
-]
-
-# gypd doesn't define a default value for OS like many other generator
-# modules. Specify "-D OS=whatever" on the command line to provide a value.
-generator_default_variables = {
-}
-
-# gypd supports multiple toolsets
-generator_supports_multiple_toolsets = True
-
-# TODO(mark): This always uses <, which isn't right. The input module should
-# notify the generator to tell it which phase it is operating in, and this
-# module should use < for the early phase and then switch to > for the late
-# phase. Bonus points for carrying @ back into the output too.
-for v in _generator_identity_variables:
- generator_default_variables[v] = '<(%s)' % v
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- output_files = {}
- for qualified_target in target_list:
- [input_file, target] = \
- gyp.common.ParseQualifiedTarget(qualified_target)[0:2]
-
- if input_file[-4:] != '.gyp':
- continue
- input_file_stem = input_file[:-4]
- output_file = input_file_stem + params['options'].suffix + '.gypd'
-
- if not output_file in output_files:
- output_files[output_file] = input_file
-
- for output_file, input_file in output_files.iteritems():
- output = open(output_file, 'w')
- pprint.pprint(data[input_file], output)
- output.close()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py
deleted file mode 100644
index bd405f4..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright (c) 2011 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""gypsh output module
-
-gypsh is a GYP shell. It's not really a generator per se. All it does is
-fire up an interactive Python session with a few local variables set to the
-variables passed to the generator. Like gypd, it's intended as a debugging
-aid, to facilitate the exploration of .gyp structures after being processed
-by the input module.
-
-The expected usage is "gyp -f gypsh -D OS=desired_os".
-"""
-
-
-import code
-import sys
-
-
-# All of this stuff about generator variables was lovingly ripped from gypd.py.
-# That module has a much better description of what's going on and why.
-_generator_identity_variables = [
- 'EXECUTABLE_PREFIX',
- 'EXECUTABLE_SUFFIX',
- 'INTERMEDIATE_DIR',
- 'PRODUCT_DIR',
- 'RULE_INPUT_ROOT',
- 'RULE_INPUT_DIRNAME',
- 'RULE_INPUT_EXT',
- 'RULE_INPUT_NAME',
- 'RULE_INPUT_PATH',
- 'SHARED_INTERMEDIATE_DIR',
-]
-
-generator_default_variables = {
-}
-
-for v in _generator_identity_variables:
- generator_default_variables[v] = '<(%s)' % v
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- locals = {
- 'target_list': target_list,
- 'target_dicts': target_dicts,
- 'data': data,
- }
-
- # Use a banner that looks like the stock Python one and like what
- # code.interact uses by default, but tack on something to indicate what
- # locals are available, and identify gypsh.
- banner='Python %s on %s\nlocals.keys() = %s\ngypsh' % \
- (sys.version, sys.platform, repr(sorted(locals.keys())))
-
- code.interact(banner, local=locals)
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
deleted file mode 100644
index fe801b7..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
+++ /dev/null
@@ -1,2263 +0,0 @@
-# Copyright (c) 2013 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Notes:
-#
-# This is all roughly based on the Makefile system used by the Linux
-# kernel, but is a non-recursive make -- we put the entire dependency
-# graph in front of make and let it figure it out.
-#
-# The code below generates a separate .mk file for each target, but
-# all are sourced by the top-level Makefile. This means that all
-# variables in .mk-files clobber one another. Be careful to use :=
-# where appropriate for immediate evaluation, and similarly to watch
-# that you're not relying on a variable value to last beween different
-# .mk files.
-#
-# TODOs:
-#
-# Global settings and utility functions are currently stuffed in the
-# toplevel Makefile. It may make sense to generate some .mk files on
-# the side to keep the files readable.
-
-import os
-import re
-import sys
-import subprocess
-import gyp
-import gyp.common
-import gyp.xcode_emulation
-from gyp.common import GetEnvironFallback
-from gyp.common import GypError
-
-import hashlib
-
-generator_default_variables = {
- 'EXECUTABLE_PREFIX': '',
- 'EXECUTABLE_SUFFIX': '',
- 'STATIC_LIB_PREFIX': 'lib',
- 'SHARED_LIB_PREFIX': 'lib',
- 'STATIC_LIB_SUFFIX': '.a',
- 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni',
- 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen',
- 'PRODUCT_DIR': '$(builddir)',
- 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s', # This gets expanded by Python.
- 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s', # This gets expanded by Python.
- 'RULE_INPUT_PATH': '$(abspath $<)',
- 'RULE_INPUT_EXT': '$(suffix $<)',
- 'RULE_INPUT_NAME': '$(notdir $<)',
- 'CONFIGURATION_NAME': '$(BUILDTYPE)',
-}
-
-# Make supports multiple toolsets
-generator_supports_multiple_toolsets = True
-
-# Request sorted dependencies in the order from dependents to dependencies.
-generator_wants_sorted_dependencies = False
-
-# Placates pylint.
-generator_additional_non_configuration_keys = []
-generator_additional_path_sections = []
-generator_extra_sources_for_rules = []
-generator_filelist_paths = None
-
-
-def CalculateVariables(default_variables, params):
- """Calculate additional variables for use in the build (called by gyp)."""
- flavor = gyp.common.GetFlavor(params)
- if flavor == 'mac':
- default_variables.setdefault('OS', 'mac')
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.dylib')
- default_variables.setdefault('SHARED_LIB_DIR',
- generator_default_variables['PRODUCT_DIR'])
- default_variables.setdefault('LIB_DIR',
- generator_default_variables['PRODUCT_DIR'])
-
- # Copy additional generator configuration data from Xcode, which is shared
- # by the Mac Make generator.
- import gyp.generator.xcode as xcode_generator
- global generator_additional_non_configuration_keys
- generator_additional_non_configuration_keys = getattr(xcode_generator,
- 'generator_additional_non_configuration_keys', [])
- global generator_additional_path_sections
- generator_additional_path_sections = getattr(xcode_generator,
- 'generator_additional_path_sections', [])
- global generator_extra_sources_for_rules
- generator_extra_sources_for_rules = getattr(xcode_generator,
- 'generator_extra_sources_for_rules', [])
- COMPILABLE_EXTENSIONS.update({'.m': 'objc', '.mm' : 'objcxx'})
- else:
- operating_system = flavor
- if flavor == 'android':
- operating_system = 'linux' # Keep this legacy behavior for now.
- default_variables.setdefault('OS', operating_system)
- if flavor == 'aix':
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.a')
- else:
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.so')
- default_variables.setdefault('SHARED_LIB_DIR','$(builddir)/lib.$(TOOLSET)')
- default_variables.setdefault('LIB_DIR', '$(obj).$(TOOLSET)')
-
-
-def CalculateGeneratorInputInfo(params):
- """Calculate the generator specific info that gets fed to input (called by
- gyp)."""
- generator_flags = params.get('generator_flags', {})
- android_ndk_version = generator_flags.get('android_ndk_version', None)
- # Android NDK requires a strict link order.
- if android_ndk_version:
- global generator_wants_sorted_dependencies
- generator_wants_sorted_dependencies = True
-
- output_dir = params['options'].generator_output or \
- params['options'].toplevel_dir
- builddir_name = generator_flags.get('output_dir', 'out')
- qualified_out_dir = os.path.normpath(os.path.join(
- output_dir, builddir_name, 'gypfiles'))
-
- global generator_filelist_paths
- generator_filelist_paths = {
- 'toplevel': params['options'].toplevel_dir,
- 'qualified_out_dir': qualified_out_dir,
- }
-
-
-# The .d checking code below uses these functions:
-# wildcard, sort, foreach, shell, wordlist
-# wildcard can handle spaces, the rest can't.
-# Since I could find no way to make foreach work with spaces in filenames
-# correctly, the .d files have spaces replaced with another character. The .d
-# file for
-# Chromium\ Framework.framework/foo
-# is for example
-# out/Release/.deps/out/Release/Chromium?Framework.framework/foo
-# This is the replacement character.
-SPACE_REPLACEMENT = '?'
-
-
-LINK_COMMANDS_LINUX = """\
-quiet_cmd_alink = AR($(TOOLSET)) $@
-cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
-
-quiet_cmd_alink_thin = AR($(TOOLSET)) $@
-cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-
-# Due to circular dependencies between libraries :(, we wrap the
-# special "figure out circular dependencies" flags around the entire
-# input list during linking.
-quiet_cmd_link = LINK($(TOOLSET)) $@
-cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
-
-# We support two kinds of shared objects (.so):
-# 1) shared_library, which is just bundling together many dependent libraries
-# into a link line.
-# 2) loadable_module, which is generating a module intended for dlopen().
-#
-# They differ only slightly:
-# In the former case, we want to package all dependent code into the .so.
-# In the latter case, we want to package just the API exposed by the
-# outermost module.
-# This means shared_library uses --whole-archive, while loadable_module doesn't.
-# (Note that --whole-archive is incompatible with the --start-group used in
-# normal linking.)
-
-# Other shared-object link notes:
-# - Set SONAME to the library filename so our binaries don't reference
-# the local, absolute paths used on the link command-line.
-quiet_cmd_solink = SOLINK($(TOOLSET)) $@
-cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
-
-quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
-cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
-"""
-
-LINK_COMMANDS_MAC = """\
-quiet_cmd_alink = LIBTOOL-STATIC $@
-cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
-
-quiet_cmd_link = LINK($(TOOLSET)) $@
-cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
-
-quiet_cmd_solink = SOLINK($(TOOLSET)) $@
-cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
-
-quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
-cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
-"""
-
-LINK_COMMANDS_ANDROID = """\
-quiet_cmd_alink = AR($(TOOLSET)) $@
-cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
-
-quiet_cmd_alink_thin = AR($(TOOLSET)) $@
-cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-
-# Due to circular dependencies between libraries :(, we wrap the
-# special "figure out circular dependencies" flags around the entire
-# input list during linking.
-quiet_cmd_link = LINK($(TOOLSET)) $@
-quiet_cmd_link_host = LINK($(TOOLSET)) $@
-cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
-cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
-
-# Other shared-object link notes:
-# - Set SONAME to the library filename so our binaries don't reference
-# the local, absolute paths used on the link command-line.
-quiet_cmd_solink = SOLINK($(TOOLSET)) $@
-cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
-
-quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
-cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
-quiet_cmd_solink_module_host = SOLINK_MODULE($(TOOLSET)) $@
-cmd_solink_module_host = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
-"""
-
-
-LINK_COMMANDS_AIX = """\
-quiet_cmd_alink = AR($(TOOLSET)) $@
-cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) -X32_64 crs $@ $(filter %.o,$^)
-
-quiet_cmd_alink_thin = AR($(TOOLSET)) $@
-cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) -X32_64 crs $@ $(filter %.o,$^)
-
-quiet_cmd_link = LINK($(TOOLSET)) $@
-cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
-
-quiet_cmd_solink = SOLINK($(TOOLSET)) $@
-cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
-
-quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
-cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
-"""
-
-
-LINK_COMMANDS_OS390 = """\
-quiet_cmd_alink = AR($(TOOLSET)) $@
-cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
-
-quiet_cmd_alink_thin = AR($(TOOLSET)) $@
-cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-
-quiet_cmd_link = LINK($(TOOLSET)) $@
-cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
-
-quiet_cmd_solink = SOLINK($(TOOLSET)) $@
-cmd_solink = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS) -Wl,DLL
-
-quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
-cmd_solink_module = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS) -Wl,DLL
-
-"""
-
-
-# Header of toplevel Makefile.
-# This should go into the build tree, but it's easier to keep it here for now.
-SHARED_HEADER = ("""\
-# We borrow heavily from the kernel build setup, though we are simpler since
-# we don't have Kconfig tweaking settings on us.
-
-# The implicit make rules have it looking for RCS files, among other things.
-# We instead explicitly write all the rules we care about.
-# It's even quicker (saves ~200ms) to pass -r on the command line.
-MAKEFLAGS=-r
-
-# The source directory tree.
-srcdir := %(srcdir)s
-abs_srcdir := $(abspath $(srcdir))
-
-# The name of the builddir.
-builddir_name ?= %(builddir)s
-
-# The V=1 flag on command line makes us verbosely print command lines.
-ifdef V
- quiet=
-else
- quiet=quiet_
-endif
-
-# Specify BUILDTYPE=Release on the command line for a release build.
-BUILDTYPE ?= %(default_configuration)s
-
-# Directory all our build output goes into.
-# Note that this must be two directories beneath src/ for unit tests to pass,
-# as they reach into the src/ directory for data with relative paths.
-builddir ?= $(builddir_name)/$(BUILDTYPE)
-abs_builddir := $(abspath $(builddir))
-depsdir := $(builddir)/.deps
-
-# Object output directory.
-obj := $(builddir)/obj
-abs_obj := $(abspath $(obj))
-
-# We build up a list of every single one of the targets so we can slurp in the
-# generated dependency rule Makefiles in one pass.
-all_deps :=
-
-%(make_global_settings)s
-
-CC.target ?= %(CC.target)s
-CFLAGS.target ?= $(CPPFLAGS) $(CFLAGS)
-CXX.target ?= %(CXX.target)s
-CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
-LINK.target ?= %(LINK.target)s
-LDFLAGS.target ?= $(LDFLAGS)
-AR.target ?= $(AR)
-
-# C++ apps need to be linked with g++.
-LINK ?= $(CXX.target)
-
-# TODO(evan): move all cross-compilation logic to gyp-time so we don't need
-# to replicate this environment fallback in make as well.
-CC.host ?= %(CC.host)s
-CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
-CXX.host ?= %(CXX.host)s
-CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
-LINK.host ?= %(LINK.host)s
-LDFLAGS.host ?=
-AR.host ?= %(AR.host)s
-
-# Define a dir function that can handle spaces.
-# http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions
-# "leading spaces cannot appear in the text of the first argument as written.
-# These characters can be put into the argument value by variable substitution."
-empty :=
-space := $(empty) $(empty)
-
-# http://stackoverflow.com/questions/1189781/using-make-dir-or-notdir-on-a-path-with-spaces
-replace_spaces = $(subst $(space),""" + SPACE_REPLACEMENT + """,$1)
-unreplace_spaces = $(subst """ + SPACE_REPLACEMENT + """,$(space),$1)
-dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1)))
-
-# Flags to make gcc output dependency info. Note that you need to be
-# careful here to use the flags that ccache and distcc can understand.
-# We write to a dep file on the side first and then rename at the end
-# so we can't end up with a broken dep file.
-depfile = $(depsdir)/$(call replace_spaces,$@).d
-DEPFLAGS = %(makedep_args)s -MF $(depfile).raw
-
-# We have to fixup the deps output in a few ways.
-# (1) the file output should mention the proper .o file.
-# ccache or distcc lose the path to the target, so we convert a rule of
-# the form:
-# foobar.o: DEP1 DEP2
-# into
-# path/to/foobar.o: DEP1 DEP2
-# (2) we want missing files not to cause us to fail to build.
-# We want to rewrite
-# foobar.o: DEP1 DEP2 \\
-# DEP3
-# to
-# DEP1:
-# DEP2:
-# DEP3:
-# so if the files are missing, they're just considered phony rules.
-# We have to do some pretty insane escaping to get those backslashes
-# and dollar signs past make, the shell, and sed at the same time.
-# Doesn't work with spaces, but that's fine: .d files have spaces in
-# their names replaced with other characters."""
-r"""
-define fixup_dep
-# The depfile may not exist if the input file didn't have any #includes.
-touch $(depfile).raw
-# Fixup path as in (1).
-sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)
-# Add extra rules as in (2).
-# We remove slashes and replace spaces with new lines;
-# remove blank lines;
-# delete the first line and append a colon to the remaining lines.
-sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\
- grep -v '^$$' |\
- sed -e 1d -e 's|$$|:|' \
- >> $(depfile)
-rm $(depfile).raw
-endef
-"""
-"""
-# Command definitions:
-# - cmd_foo is the actual command to run;
-# - quiet_cmd_foo is the brief-output summary of the command.
-
-quiet_cmd_cc = CC($(TOOLSET)) $@
-cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $<
-
-quiet_cmd_cxx = CXX($(TOOLSET)) $@
-cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
-%(extra_commands)s
-quiet_cmd_touch = TOUCH $@
-cmd_touch = touch $@
-
-quiet_cmd_copy = COPY $@
-# send stderr to /dev/null to ignore messages when linking directories.
-cmd_copy = rm -rf "$@" && cp %(copy_archive_args)s "$<" "$@"
-
-%(link_commands)s
-"""
-
-r"""
-# Define an escape_quotes function to escape single quotes.
-# This allows us to handle quotes properly as long as we always use
-# use single quotes and escape_quotes.
-escape_quotes = $(subst ','\'',$(1))
-# This comment is here just to include a ' to unconfuse syntax highlighting.
-# Define an escape_vars function to escape '$' variable syntax.
-# This allows us to read/write command lines with shell variables (e.g.
-# $LD_LIBRARY_PATH), without triggering make substitution.
-escape_vars = $(subst $$,$$$$,$(1))
-# Helper that expands to a shell command to echo a string exactly as it is in
-# make. This uses printf instead of echo because printf's behaviour with respect
-# to escape sequences is more portable than echo's across different shells
-# (e.g., dash, bash).
-exact_echo = printf '%%s\n' '$(call escape_quotes,$(1))'
-"""
-"""
-# Helper to compare the command we're about to run against the command
-# we logged the last time we ran the command. Produces an empty
-# string (false) when the commands match.
-# Tricky point: Make has no string-equality test function.
-# The kernel uses the following, but it seems like it would have false
-# positives, where one string reordered its arguments.
-# arg_check = $(strip $(filter-out $(cmd_$(1)), $(cmd_$@)) \\
-# $(filter-out $(cmd_$@), $(cmd_$(1))))
-# We instead substitute each for the empty string into the other, and
-# say they're equal if both substitutions produce the empty string.
-# .d files contain """ + SPACE_REPLACEMENT + \
- """ instead of spaces, take that into account.
-command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\\
- $(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1))))
-
-# Helper that is non-empty when a prerequisite changes.
-# Normally make does this implicitly, but we force rules to always run
-# so we can check their command lines.
-# $? -- new prerequisites
-# $| -- order-only dependencies
-prereq_changed = $(filter-out FORCE_DO_CMD,$(filter-out $|,$?))
-
-# Helper that executes all postbuilds until one fails.
-define do_postbuilds
- @E=0;\\
- for p in $(POSTBUILDS); do\\
- eval $$p;\\
- E=$$?;\\
- if [ $$E -ne 0 ]; then\\
- break;\\
- fi;\\
- done;\\
- if [ $$E -ne 0 ]; then\\
- rm -rf "$@";\\
- exit $$E;\\
- fi
-endef
-
-# do_cmd: run a command via the above cmd_foo names, if necessary.
-# Should always run for a given target to handle command-line changes.
-# Second argument, if non-zero, makes it do asm/C/C++ dependency munging.
-# Third argument, if non-zero, makes it do POSTBUILDS processing.
-# Note: We intentionally do NOT call dirx for depfile, since it contains """ + \
- SPACE_REPLACEMENT + """ for
-# spaces already and dirx strips the """ + SPACE_REPLACEMENT + \
- """ characters.
-define do_cmd
-$(if $(or $(command_changed),$(prereq_changed)),
- @$(call exact_echo, $($(quiet)cmd_$(1)))
- @mkdir -p "$(call dirx,$@)" "$(dir $(depfile))"
- $(if $(findstring flock,$(word %(flock_index)d,$(cmd_$1))),
- @$(cmd_$(1))
- @echo " $(quiet_cmd_$(1)): Finished",
- @$(cmd_$(1))
- )
- @$(call exact_echo,$(call escape_vars,cmd_$(call replace_spaces,$@) := $(cmd_$(1)))) > $(depfile)
- @$(if $(2),$(fixup_dep))
- $(if $(and $(3), $(POSTBUILDS)),
- $(call do_postbuilds)
- )
-)
-endef
-
-# Declare the "%(default_target)s" target first so it is the default,
-# even though we don't have the deps yet.
-.PHONY: %(default_target)s
-%(default_target)s:
-
-# make looks for ways to re-generate included makefiles, but in our case, we
-# don't have a direct way. Explicitly telling make that it has nothing to do
-# for them makes it go faster.
-%%.d: ;
-
-# Use FORCE_DO_CMD to force a target to run. Should be coupled with
-# do_cmd.
-.PHONY: FORCE_DO_CMD
-FORCE_DO_CMD:
-
-""")
-
-SHARED_HEADER_MAC_COMMANDS = """
-quiet_cmd_objc = CXX($(TOOLSET)) $@
-cmd_objc = $(CC.$(TOOLSET)) $(GYP_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
-
-quiet_cmd_objcxx = CXX($(TOOLSET)) $@
-cmd_objcxx = $(CXX.$(TOOLSET)) $(GYP_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
-
-# Commands for precompiled header files.
-quiet_cmd_pch_c = CXX($(TOOLSET)) $@
-cmd_pch_c = $(CC.$(TOOLSET)) $(GYP_PCH_CFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
-quiet_cmd_pch_cc = CXX($(TOOLSET)) $@
-cmd_pch_cc = $(CC.$(TOOLSET)) $(GYP_PCH_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
-quiet_cmd_pch_m = CXX($(TOOLSET)) $@
-cmd_pch_m = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
-quiet_cmd_pch_mm = CXX($(TOOLSET)) $@
-cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
-
-# gyp-mac-tool is written next to the root Makefile by gyp.
-# Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
-# already.
-quiet_cmd_mac_tool = MACTOOL $(4) $<
-cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
-
-quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
-cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
-
-quiet_cmd_infoplist = INFOPLIST $@
-cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
-"""
-
-
-def WriteRootHeaderSuffixRules(writer):
- extensions = sorted(COMPILABLE_EXTENSIONS.keys(), key=str.lower)
-
- writer.write('# Suffix rules, putting all outputs into $(obj).\n')
- for ext in extensions:
- writer.write('$(obj).$(TOOLSET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD\n' % ext)
- writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext])
-
- writer.write('\n# Try building from generated source, too.\n')
- for ext in extensions:
- writer.write(
- '$(obj).$(TOOLSET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD\n' % ext)
- writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext])
- writer.write('\n')
- for ext in extensions:
- writer.write('$(obj).$(TOOLSET)/%%.o: $(obj)/%%%s FORCE_DO_CMD\n' % ext)
- writer.write('\t@$(call do_cmd,%s,1)\n' % COMPILABLE_EXTENSIONS[ext])
- writer.write('\n')
-
-
-SHARED_HEADER_SUFFIX_RULES_COMMENT1 = ("""\
-# Suffix rules, putting all outputs into $(obj).
-""")
-
-
-SHARED_HEADER_SUFFIX_RULES_COMMENT2 = ("""\
-# Try building from generated source, too.
-""")
-
-
-SHARED_FOOTER = """\
-# "all" is a concatenation of the "all" targets from all the included
-# sub-makefiles. This is just here to clarify.
-all:
-
-# Add in dependency-tracking rules. $(all_deps) is the list of every single
-# target in our tree. Only consider the ones with .d (dependency) info:
-d_files := $(wildcard $(foreach f,$(all_deps),$(depsdir)/$(f).d))
-ifneq ($(d_files),)
- include $(d_files)
-endif
-"""
-
-header = """\
-# This file is generated by gyp; do not edit.
-
-"""
-
-# Maps every compilable file extension to the do_cmd that compiles it.
-COMPILABLE_EXTENSIONS = {
- '.c': 'cc',
- '.cc': 'cxx',
- '.cpp': 'cxx',
- '.cxx': 'cxx',
- '.s': 'cc',
- '.S': 'cc',
-}
-
-def Compilable(filename):
- """Return true if the file is compilable (should be in OBJS)."""
- for res in (filename.endswith(e) for e in COMPILABLE_EXTENSIONS):
- if res:
- return True
- return False
-
-
-def Linkable(filename):
- """Return true if the file is linkable (should be on the link line)."""
- return filename.endswith('.o')
-
-
-def Target(filename):
- """Translate a compilable filename to its .o target."""
- return os.path.splitext(filename)[0] + '.o'
-
-
-def EscapeShellArgument(s):
- """Quotes an argument so that it will be interpreted literally by a POSIX
- shell. Taken from
- http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python
- """
- return "'" + s.replace("'", "'\\''") + "'"
-
-
-def EscapeMakeVariableExpansion(s):
- """Make has its own variable expansion syntax using $. We must escape it for
- string to be interpreted literally."""
- return s.replace('$', '$$')
-
-
-def EscapeCppDefine(s):
- """Escapes a CPP define so that it will reach the compiler unaltered."""
- s = EscapeShellArgument(s)
- s = EscapeMakeVariableExpansion(s)
- # '#' characters must be escaped even embedded in a string, else Make will
- # treat it as the start of a comment.
- return s.replace('#', r'\#')
-
-
-def QuoteIfNecessary(string):
- """TODO: Should this ideally be replaced with one or more of the above
- functions?"""
- if '"' in string:
- string = '"' + string.replace('"', '\\"') + '"'
- return string
-
-
-def StringToMakefileVariable(string):
- """Convert a string to a value that is acceptable as a make variable name."""
- return re.sub('[^a-zA-Z0-9_]', '_', string)
-
-
-srcdir_prefix = ''
-def Sourceify(path):
- """Convert a path to its source directory form."""
- if '$(' in path:
- return path
- if os.path.isabs(path):
- return path
- return srcdir_prefix + path
-
-
-def QuoteSpaces(s, quote=r'\ '):
- return s.replace(' ', quote)
-
-def SourceifyAndQuoteSpaces(path):
- """Convert a path to its source directory form and quote spaces."""
- return QuoteSpaces(Sourceify(path))
-
-# TODO: Avoid code duplication with _ValidateSourcesForMSVSProject in msvs.py.
-def _ValidateSourcesForOSX(spec, all_sources):
- """Makes sure if duplicate basenames are not specified in the source list.
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- """
- if spec.get('type', None) != 'static_library':
- return
-
- basenames = {}
- for source in all_sources:
- name, ext = os.path.splitext(source)
- is_compiled_file = ext in [
- '.c', '.cc', '.cpp', '.cxx', '.m', '.mm', '.s', '.S']
- if not is_compiled_file:
- continue
- basename = os.path.basename(name) # Don't include extension.
- basenames.setdefault(basename, []).append(source)
-
- error = ''
- for basename, files in basenames.iteritems():
- if len(files) > 1:
- error += ' %s: %s\n' % (basename, ' '.join(files))
-
- if error:
- print('static library %s has several files with the same basename:\n' %
- spec['target_name'] + error + 'libtool on OS X will generate' +
- ' warnings for them.')
- raise GypError('Duplicate basenames in sources section, see list above')
-
-
-# Map from qualified target to path to output.
-target_outputs = {}
-# Map from qualified target to any linkable output. A subset
-# of target_outputs. E.g. when mybinary depends on liba, we want to
-# include liba in the linker line; when otherbinary depends on
-# mybinary, we just want to build mybinary first.
-target_link_deps = {}
-
-
-class MakefileWriter(object):
- """MakefileWriter packages up the writing of one target-specific foobar.mk.
-
- Its only real entry point is Write(), and is mostly used for namespacing.
- """
-
- def __init__(self, generator_flags, flavor):
- self.generator_flags = generator_flags
- self.flavor = flavor
-
- self.suffix_rules_srcdir = {}
- self.suffix_rules_objdir1 = {}
- self.suffix_rules_objdir2 = {}
-
- # Generate suffix rules for all compilable extensions.
- for ext in COMPILABLE_EXTENSIONS.keys():
- # Suffix rules for source folder.
- self.suffix_rules_srcdir.update({ext: ("""\
-$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
- @$(call do_cmd,%s,1)
-""" % (ext, COMPILABLE_EXTENSIONS[ext]))})
-
- # Suffix rules for generated source files.
- self.suffix_rules_objdir1.update({ext: ("""\
-$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
- @$(call do_cmd,%s,1)
-""" % (ext, COMPILABLE_EXTENSIONS[ext]))})
- self.suffix_rules_objdir2.update({ext: ("""\
-$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
- @$(call do_cmd,%s,1)
-""" % (ext, COMPILABLE_EXTENSIONS[ext]))})
-
-
- def Write(self, qualified_target, base_path, output_filename, spec, configs,
- part_of_all):
- """The main entry point: writes a .mk file for a single target.
-
- Arguments:
- qualified_target: target we're generating
- base_path: path relative to source root we're building in, used to resolve
- target-relative paths
- output_filename: output .mk file name to write
- spec, configs: gyp info
- part_of_all: flag indicating this target is part of 'all'
- """
- gyp.common.EnsureDirExists(output_filename)
-
- self.fp = open(output_filename, 'w')
-
- self.fp.write(header)
-
- self.qualified_target = qualified_target
- self.path = base_path
- self.target = spec['target_name']
- self.type = spec['type']
- self.toolset = spec['toolset']
-
- self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec)
- if self.flavor == 'mac':
- self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec)
- else:
- self.xcode_settings = None
-
- deps, link_deps = self.ComputeDeps(spec)
-
- # Some of the generation below can add extra output, sources, or
- # link dependencies. All of the out params of the functions that
- # follow use names like extra_foo.
- extra_outputs = []
- extra_sources = []
- extra_link_deps = []
- extra_mac_bundle_resources = []
- mac_bundle_deps = []
-
- if self.is_mac_bundle:
- self.output = self.ComputeMacBundleOutput(spec)
- self.output_binary = self.ComputeMacBundleBinaryOutput(spec)
- else:
- self.output = self.output_binary = self.ComputeOutput(spec)
-
- self.is_standalone_static_library = bool(
- spec.get('standalone_static_library', 0))
- self._INSTALLABLE_TARGETS = ('executable', 'loadable_module',
- 'shared_library')
- if (self.is_standalone_static_library or
- self.type in self._INSTALLABLE_TARGETS):
- self.alias = os.path.basename(self.output)
- install_path = self._InstallableTargetInstallPath()
- else:
- self.alias = self.output
- install_path = self.output
-
- self.WriteLn("TOOLSET := " + self.toolset)
- self.WriteLn("TARGET := " + self.target)
-
- # Actions must come first, since they can generate more OBJs for use below.
- if 'actions' in spec:
- self.WriteActions(spec['actions'], extra_sources, extra_outputs,
- extra_mac_bundle_resources, part_of_all)
-
- # Rules must be early like actions.
- if 'rules' in spec:
- self.WriteRules(spec['rules'], extra_sources, extra_outputs,
- extra_mac_bundle_resources, part_of_all)
-
- if 'copies' in spec:
- self.WriteCopies(spec['copies'], extra_outputs, part_of_all)
-
- # Bundle resources.
- if self.is_mac_bundle:
- all_mac_bundle_resources = (
- spec.get('mac_bundle_resources', []) + extra_mac_bundle_resources)
- self.WriteMacBundleResources(all_mac_bundle_resources, mac_bundle_deps)
- self.WriteMacInfoPlist(mac_bundle_deps)
-
- # Sources.
- all_sources = spec.get('sources', []) + extra_sources
- if all_sources:
- if self.flavor == 'mac':
- # libtool on OS X generates warnings for duplicate basenames in the same
- # target.
- _ValidateSourcesForOSX(spec, all_sources)
- self.WriteSources(
- configs, deps, all_sources, extra_outputs,
- extra_link_deps, part_of_all,
- gyp.xcode_emulation.MacPrefixHeader(
- self.xcode_settings, lambda p: Sourceify(self.Absolutify(p)),
- self.Pchify))
- sources = filter(Compilable, all_sources)
- if sources:
- self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT1)
- extensions = set([os.path.splitext(s)[1] for s in sources])
- for ext in extensions:
- if ext in self.suffix_rules_srcdir:
- self.WriteLn(self.suffix_rules_srcdir[ext])
- self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT2)
- for ext in extensions:
- if ext in self.suffix_rules_objdir1:
- self.WriteLn(self.suffix_rules_objdir1[ext])
- for ext in extensions:
- if ext in self.suffix_rules_objdir2:
- self.WriteLn(self.suffix_rules_objdir2[ext])
- self.WriteLn('# End of this set of suffix rules')
-
- # Add dependency from bundle to bundle binary.
- if self.is_mac_bundle:
- mac_bundle_deps.append(self.output_binary)
-
- self.WriteTarget(spec, configs, deps, extra_link_deps + link_deps,
- mac_bundle_deps, extra_outputs, part_of_all)
-
- # Update global list of target outputs, used in dependency tracking.
- target_outputs[qualified_target] = install_path
-
- # Update global list of link dependencies.
- if self.type in ('static_library', 'shared_library'):
- target_link_deps[qualified_target] = self.output_binary
-
- # Currently any versions have the same effect, but in future the behavior
- # could be different.
- if self.generator_flags.get('android_ndk_version', None):
- self.WriteAndroidNdkModuleRule(self.target, all_sources, link_deps)
-
- self.fp.close()
-
-
- def WriteSubMake(self, output_filename, makefile_path, targets, build_dir):
- """Write a "sub-project" Makefile.
-
- This is a small, wrapper Makefile that calls the top-level Makefile to build
- the targets from a single gyp file (i.e. a sub-project).
-
- Arguments:
- output_filename: sub-project Makefile name to write
- makefile_path: path to the top-level Makefile
- targets: list of "all" targets for this sub-project
- build_dir: build output directory, relative to the sub-project
- """
- gyp.common.EnsureDirExists(output_filename)
- self.fp = open(output_filename, 'w')
- self.fp.write(header)
- # For consistency with other builders, put sub-project build output in the
- # sub-project dir (see test/subdirectory/gyptest-subdir-all.py).
- self.WriteLn('export builddir_name ?= %s' %
- os.path.join(os.path.dirname(output_filename), build_dir))
- self.WriteLn('.PHONY: all')
- self.WriteLn('all:')
- if makefile_path:
- makefile_path = ' -C ' + makefile_path
- self.WriteLn('\t$(MAKE)%s %s' % (makefile_path, ' '.join(targets)))
- self.fp.close()
-
-
- def WriteActions(self, actions, extra_sources, extra_outputs,
- extra_mac_bundle_resources, part_of_all):
- """Write Makefile code for any 'actions' from the gyp input.
-
- extra_sources: a list that will be filled in with newly generated source
- files, if any
- extra_outputs: a list that will be filled in with any outputs of these
- actions (used to make other pieces dependent on these
- actions)
- part_of_all: flag indicating this target is part of 'all'
- """
- env = self.GetSortedXcodeEnv()
- for action in actions:
- name = StringToMakefileVariable('%s_%s' % (self.qualified_target,
- action['action_name']))
- self.WriteLn('### Rules for action "%s":' % action['action_name'])
- inputs = action['inputs']
- outputs = action['outputs']
-
- # Build up a list of outputs.
- # Collect the output dirs we'll need.
- dirs = set()
- for out in outputs:
- dir = os.path.split(out)[0]
- if dir:
- dirs.add(dir)
- if int(action.get('process_outputs_as_sources', False)):
- extra_sources += outputs
- if int(action.get('process_outputs_as_mac_bundle_resources', False)):
- extra_mac_bundle_resources += outputs
-
- # Write the actual command.
- action_commands = action['action']
- if self.flavor == 'mac':
- action_commands = [gyp.xcode_emulation.ExpandEnvVars(command, env)
- for command in action_commands]
- command = gyp.common.EncodePOSIXShellList(action_commands)
- if 'message' in action:
- self.WriteLn('quiet_cmd_%s = ACTION %s $@' % (name, action['message']))
- else:
- self.WriteLn('quiet_cmd_%s = ACTION %s $@' % (name, name))
- if len(dirs) > 0:
- command = 'mkdir -p %s' % ' '.join(dirs) + '; ' + command
-
- cd_action = 'cd %s; ' % Sourceify(self.path or '.')
-
- # command and cd_action get written to a toplevel variable called
- # cmd_foo. Toplevel variables can't handle things that change per
- # makefile like $(TARGET), so hardcode the target.
- command = command.replace('$(TARGET)', self.target)
- cd_action = cd_action.replace('$(TARGET)', self.target)
-
- # Set LD_LIBRARY_PATH in case the action runs an executable from this
- # build which links to shared libs from this build.
- # actions run on the host, so they should in theory only use host
- # libraries, but until everything is made cross-compile safe, also use
- # target libraries.
- # TODO(piman): when everything is cross-compile safe, remove lib.target
- self.WriteLn('cmd_%s = LD_LIBRARY_PATH=$(builddir)/lib.host:'
- '$(builddir)/lib.target:$$LD_LIBRARY_PATH; '
- 'export LD_LIBRARY_PATH; '
- '%s%s'
- % (name, cd_action, command))
- self.WriteLn()
- outputs = map(self.Absolutify, outputs)
- # The makefile rules are all relative to the top dir, but the gyp actions
- # are defined relative to their containing dir. This replaces the obj
- # variable for the action rule with an absolute version so that the output
- # goes in the right place.
- # Only write the 'obj' and 'builddir' rules for the "primary" output (:1);
- # it's superfluous for the "extra outputs", and this avoids accidentally
- # writing duplicate dummy rules for those outputs.
- # Same for environment.
- self.WriteLn("%s: obj := $(abs_obj)" % QuoteSpaces(outputs[0]))
- self.WriteLn("%s: builddir := $(abs_builddir)" % QuoteSpaces(outputs[0]))
- self.WriteSortedXcodeEnv(outputs[0], self.GetSortedXcodeEnv())
-
- for input in inputs:
- assert ' ' not in input, (
- "Spaces in action input filenames not supported (%s)" % input)
- for output in outputs:
- assert ' ' not in output, (
- "Spaces in action output filenames not supported (%s)" % output)
-
- # See the comment in WriteCopies about expanding env vars.
- outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
- inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
-
- self.WriteDoCmd(outputs, map(Sourceify, map(self.Absolutify, inputs)),
- part_of_all=part_of_all, command=name)
-
- # Stuff the outputs in a variable so we can refer to them later.
- outputs_variable = 'action_%s_outputs' % name
- self.WriteLn('%s := %s' % (outputs_variable, ' '.join(outputs)))
- extra_outputs.append('$(%s)' % outputs_variable)
- self.WriteLn()
-
- self.WriteLn()
-
-
- def WriteRules(self, rules, extra_sources, extra_outputs,
- extra_mac_bundle_resources, part_of_all):
- """Write Makefile code for any 'rules' from the gyp input.
-
- extra_sources: a list that will be filled in with newly generated source
- files, if any
- extra_outputs: a list that will be filled in with any outputs of these
- rules (used to make other pieces dependent on these rules)
- part_of_all: flag indicating this target is part of 'all'
- """
- env = self.GetSortedXcodeEnv()
- for rule in rules:
- name = StringToMakefileVariable('%s_%s' % (self.qualified_target,
- rule['rule_name']))
- count = 0
- self.WriteLn('### Generated for rule %s:' % name)
-
- all_outputs = []
-
- for rule_source in rule.get('rule_sources', []):
- dirs = set()
- (rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
- (rule_source_root, rule_source_ext) = \
- os.path.splitext(rule_source_basename)
-
- outputs = [self.ExpandInputRoot(out, rule_source_root,
- rule_source_dirname)
- for out in rule['outputs']]
-
- for out in outputs:
- dir = os.path.dirname(out)
- if dir:
- dirs.add(dir)
- if int(rule.get('process_outputs_as_sources', False)):
- extra_sources += outputs
- if int(rule.get('process_outputs_as_mac_bundle_resources', False)):
- extra_mac_bundle_resources += outputs
- inputs = map(Sourceify, map(self.Absolutify, [rule_source] +
- rule.get('inputs', [])))
- actions = ['$(call do_cmd,%s_%d)' % (name, count)]
-
- if name == 'resources_grit':
- # HACK: This is ugly. Grit intentionally doesn't touch the
- # timestamp of its output file when the file doesn't change,
- # which is fine in hash-based dependency systems like scons
- # and forge, but not kosher in the make world. After some
- # discussion, hacking around it here seems like the least
- # amount of pain.
- actions += ['@touch --no-create $@']
-
- # See the comment in WriteCopies about expanding env vars.
- outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
- inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
-
- outputs = map(self.Absolutify, outputs)
- all_outputs += outputs
- # Only write the 'obj' and 'builddir' rules for the "primary" output
- # (:1); it's superfluous for the "extra outputs", and this avoids
- # accidentally writing duplicate dummy rules for those outputs.
- self.WriteLn('%s: obj := $(abs_obj)' % outputs[0])
- self.WriteLn('%s: builddir := $(abs_builddir)' % outputs[0])
- self.WriteMakeRule(outputs, inputs, actions,
- command="%s_%d" % (name, count))
- # Spaces in rule filenames are not supported, but rule variables have
- # spaces in them (e.g. RULE_INPUT_PATH expands to '$(abspath $<)').
- # The spaces within the variables are valid, so remove the variables
- # before checking.
- variables_with_spaces = re.compile(r'\$\([^ ]* \$<\)')
- for output in outputs:
- output = re.sub(variables_with_spaces, '', output)
- assert ' ' not in output, (
- "Spaces in rule filenames not yet supported (%s)" % output)
- self.WriteLn('all_deps += %s' % ' '.join(outputs))
-
- action = [self.ExpandInputRoot(ac, rule_source_root,
- rule_source_dirname)
- for ac in rule['action']]
- mkdirs = ''
- if len(dirs) > 0:
- mkdirs = 'mkdir -p %s; ' % ' '.join(dirs)
- cd_action = 'cd %s; ' % Sourceify(self.path or '.')
-
- # action, cd_action, and mkdirs get written to a toplevel variable
- # called cmd_foo. Toplevel variables can't handle things that change
- # per makefile like $(TARGET), so hardcode the target.
- if self.flavor == 'mac':
- action = [gyp.xcode_emulation.ExpandEnvVars(command, env)
- for command in action]
- action = gyp.common.EncodePOSIXShellList(action)
- action = action.replace('$(TARGET)', self.target)
- cd_action = cd_action.replace('$(TARGET)', self.target)
- mkdirs = mkdirs.replace('$(TARGET)', self.target)
-
- # Set LD_LIBRARY_PATH in case the rule runs an executable from this
- # build which links to shared libs from this build.
- # rules run on the host, so they should in theory only use host
- # libraries, but until everything is made cross-compile safe, also use
- # target libraries.
- # TODO(piman): when everything is cross-compile safe, remove lib.target
- self.WriteLn(
- "cmd_%(name)s_%(count)d = LD_LIBRARY_PATH="
- "$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; "
- "export LD_LIBRARY_PATH; "
- "%(cd_action)s%(mkdirs)s%(action)s" % {
- 'action': action,
- 'cd_action': cd_action,
- 'count': count,
- 'mkdirs': mkdirs,
- 'name': name,
- })
- self.WriteLn(
- 'quiet_cmd_%(name)s_%(count)d = RULE %(name)s_%(count)d $@' % {
- 'count': count,
- 'name': name,
- })
- self.WriteLn()
- count += 1
-
- outputs_variable = 'rule_%s_outputs' % name
- self.WriteList(all_outputs, outputs_variable)
- extra_outputs.append('$(%s)' % outputs_variable)
-
- self.WriteLn('### Finished generating for rule: %s' % name)
- self.WriteLn()
- self.WriteLn('### Finished generating for all rules')
- self.WriteLn('')
-
-
- def WriteCopies(self, copies, extra_outputs, part_of_all):
- """Write Makefile code for any 'copies' from the gyp input.
-
- extra_outputs: a list that will be filled in with any outputs of this action
- (used to make other pieces dependent on this action)
- part_of_all: flag indicating this target is part of 'all'
- """
- self.WriteLn('### Generated for copy rule.')
-
- variable = StringToMakefileVariable(self.qualified_target + '_copies')
- outputs = []
- for copy in copies:
- for path in copy['files']:
- # Absolutify() may call normpath, and will strip trailing slashes.
- path = Sourceify(self.Absolutify(path))
- filename = os.path.split(path)[1]
- output = Sourceify(self.Absolutify(os.path.join(copy['destination'],
- filename)))
-
- # If the output path has variables in it, which happens in practice for
- # 'copies', writing the environment as target-local doesn't work,
- # because the variables are already needed for the target name.
- # Copying the environment variables into global make variables doesn't
- # work either, because then the .d files will potentially contain spaces
- # after variable expansion, and .d file handling cannot handle spaces.
- # As a workaround, manually expand variables at gyp time. Since 'copies'
- # can't run scripts, there's no need to write the env then.
- # WriteDoCmd() will escape spaces for .d files.
- env = self.GetSortedXcodeEnv()
- output = gyp.xcode_emulation.ExpandEnvVars(output, env)
- path = gyp.xcode_emulation.ExpandEnvVars(path, env)
- self.WriteDoCmd([output], [path], 'copy', part_of_all)
- outputs.append(output)
- self.WriteLn('%s = %s' % (variable, ' '.join(map(QuoteSpaces, outputs))))
- extra_outputs.append('$(%s)' % variable)
- self.WriteLn()
-
-
- def WriteMacBundleResources(self, resources, bundle_deps):
- """Writes Makefile code for 'mac_bundle_resources'."""
- self.WriteLn('### Generated for mac_bundle_resources')
-
- for output, res in gyp.xcode_emulation.GetMacBundleResources(
- generator_default_variables['PRODUCT_DIR'], self.xcode_settings,
- map(Sourceify, map(self.Absolutify, resources))):
- _, ext = os.path.splitext(output)
- if ext != '.xcassets':
- # Make does not supports '.xcassets' emulation.
- self.WriteDoCmd([output], [res], 'mac_tool,,,copy-bundle-resource',
- part_of_all=True)
- bundle_deps.append(output)
-
-
- def WriteMacInfoPlist(self, bundle_deps):
- """Write Makefile code for bundle Info.plist files."""
- info_plist, out, defines, extra_env = gyp.xcode_emulation.GetMacInfoPlist(
- generator_default_variables['PRODUCT_DIR'], self.xcode_settings,
- lambda p: Sourceify(self.Absolutify(p)))
- if not info_plist:
- return
- if defines:
- # Create an intermediate file to store preprocessed results.
- intermediate_plist = ('$(obj).$(TOOLSET)/$(TARGET)/' +
- os.path.basename(info_plist))
- self.WriteList(defines, intermediate_plist + ': INFOPLIST_DEFINES', '-D',
- quoter=EscapeCppDefine)
- self.WriteMakeRule([intermediate_plist], [info_plist],
- ['$(call do_cmd,infoplist)',
- # "Convert" the plist so that any weird whitespace changes from the
- # preprocessor do not affect the XML parser in mac_tool.
- '@plutil -convert xml1 $@ $@'])
- info_plist = intermediate_plist
- # plists can contain envvars and substitute them into the file.
- self.WriteSortedXcodeEnv(
- out, self.GetSortedXcodeEnv(additional_settings=extra_env))
- self.WriteDoCmd([out], [info_plist], 'mac_tool,,,copy-info-plist',
- part_of_all=True)
- bundle_deps.append(out)
-
-
- def WriteSources(self, configs, deps, sources,
- extra_outputs, extra_link_deps,
- part_of_all, precompiled_header):
- """Write Makefile code for any 'sources' from the gyp input.
- These are source files necessary to build the current target.
-
- configs, deps, sources: input from gyp.
- extra_outputs: a list of extra outputs this action should be dependent on;
- used to serialize action/rules before compilation
- extra_link_deps: a list that will be filled in with any outputs of
- compilation (to be used in link lines)
- part_of_all: flag indicating this target is part of 'all'
- """
-
- # Write configuration-specific variables for CFLAGS, etc.
- for configname in sorted(configs.keys()):
- config = configs[configname]
- self.WriteList(config.get('defines'), 'DEFS_%s' % configname, prefix='-D',
- quoter=EscapeCppDefine)
-
- if self.flavor == 'mac':
- cflags = self.xcode_settings.GetCflags(configname)
- cflags_c = self.xcode_settings.GetCflagsC(configname)
- cflags_cc = self.xcode_settings.GetCflagsCC(configname)
- cflags_objc = self.xcode_settings.GetCflagsObjC(configname)
- cflags_objcc = self.xcode_settings.GetCflagsObjCC(configname)
- else:
- cflags = config.get('cflags')
- cflags_c = config.get('cflags_c')
- cflags_cc = config.get('cflags_cc')
-
- self.WriteLn("# Flags passed to all source files.");
- self.WriteList(cflags, 'CFLAGS_%s' % configname)
- self.WriteLn("# Flags passed to only C files.");
- self.WriteList(cflags_c, 'CFLAGS_C_%s' % configname)
- self.WriteLn("# Flags passed to only C++ files.");
- self.WriteList(cflags_cc, 'CFLAGS_CC_%s' % configname)
- if self.flavor == 'mac':
- self.WriteLn("# Flags passed to only ObjC files.");
- self.WriteList(cflags_objc, 'CFLAGS_OBJC_%s' % configname)
- self.WriteLn("# Flags passed to only ObjC++ files.");
- self.WriteList(cflags_objcc, 'CFLAGS_OBJCC_%s' % configname)
- includes = config.get('include_dirs')
- if includes:
- includes = map(Sourceify, map(self.Absolutify, includes))
- self.WriteList(includes, 'INCS_%s' % configname, prefix='-I')
-
- compilable = filter(Compilable, sources)
- objs = map(self.Objectify, map(self.Absolutify, map(Target, compilable)))
- self.WriteList(objs, 'OBJS')
-
- for obj in objs:
- assert ' ' not in obj, (
- "Spaces in object filenames not supported (%s)" % obj)
- self.WriteLn('# Add to the list of files we specially track '
- 'dependencies for.')
- self.WriteLn('all_deps += $(OBJS)')
- self.WriteLn()
-
- # Make sure our dependencies are built first.
- if deps:
- self.WriteMakeRule(['$(OBJS)'], deps,
- comment = 'Make sure our dependencies are built '
- 'before any of us.',
- order_only = True)
-
- # Make sure the actions and rules run first.
- # If they generate any extra headers etc., the per-.o file dep tracking
- # will catch the proper rebuilds, so order only is still ok here.
- if extra_outputs:
- self.WriteMakeRule(['$(OBJS)'], extra_outputs,
- comment = 'Make sure our actions/rules run '
- 'before any of us.',
- order_only = True)
-
- pchdeps = precompiled_header.GetObjDependencies(compilable, objs )
- if pchdeps:
- self.WriteLn('# Dependencies from obj files to their precompiled headers')
- for source, obj, gch in pchdeps:
- self.WriteLn('%s: %s' % (obj, gch))
- self.WriteLn('# End precompiled header dependencies')
-
- if objs:
- extra_link_deps.append('$(OBJS)')
- self.WriteLn("""\
-# CFLAGS et al overrides must be target-local.
-# See "Target-specific Variable Values" in the GNU Make manual.""")
- self.WriteLn("$(OBJS): TOOLSET := $(TOOLSET)")
- self.WriteLn("$(OBJS): GYP_CFLAGS := "
- "$(DEFS_$(BUILDTYPE)) "
- "$(INCS_$(BUILDTYPE)) "
- "%s " % precompiled_header.GetInclude('c') +
- "$(CFLAGS_$(BUILDTYPE)) "
- "$(CFLAGS_C_$(BUILDTYPE))")
- self.WriteLn("$(OBJS): GYP_CXXFLAGS := "
- "$(DEFS_$(BUILDTYPE)) "
- "$(INCS_$(BUILDTYPE)) "
- "%s " % precompiled_header.GetInclude('cc') +
- "$(CFLAGS_$(BUILDTYPE)) "
- "$(CFLAGS_CC_$(BUILDTYPE))")
- if self.flavor == 'mac':
- self.WriteLn("$(OBJS): GYP_OBJCFLAGS := "
- "$(DEFS_$(BUILDTYPE)) "
- "$(INCS_$(BUILDTYPE)) "
- "%s " % precompiled_header.GetInclude('m') +
- "$(CFLAGS_$(BUILDTYPE)) "
- "$(CFLAGS_C_$(BUILDTYPE)) "
- "$(CFLAGS_OBJC_$(BUILDTYPE))")
- self.WriteLn("$(OBJS): GYP_OBJCXXFLAGS := "
- "$(DEFS_$(BUILDTYPE)) "
- "$(INCS_$(BUILDTYPE)) "
- "%s " % precompiled_header.GetInclude('mm') +
- "$(CFLAGS_$(BUILDTYPE)) "
- "$(CFLAGS_CC_$(BUILDTYPE)) "
- "$(CFLAGS_OBJCC_$(BUILDTYPE))")
-
- self.WritePchTargets(precompiled_header.GetPchBuildCommands())
-
- # If there are any object files in our input file list, link them into our
- # output.
- extra_link_deps += filter(Linkable, sources)
-
- self.WriteLn()
-
- def WritePchTargets(self, pch_commands):
- """Writes make rules to compile prefix headers."""
- if not pch_commands:
- return
-
- for gch, lang_flag, lang, input in pch_commands:
- extra_flags = {
- 'c': '$(CFLAGS_C_$(BUILDTYPE))',
- 'cc': '$(CFLAGS_CC_$(BUILDTYPE))',
- 'm': '$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))',
- 'mm': '$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))',
- }[lang]
- var_name = {
- 'c': 'GYP_PCH_CFLAGS',
- 'cc': 'GYP_PCH_CXXFLAGS',
- 'm': 'GYP_PCH_OBJCFLAGS',
- 'mm': 'GYP_PCH_OBJCXXFLAGS',
- }[lang]
- self.WriteLn("%s: %s := %s " % (gch, var_name, lang_flag) +
- "$(DEFS_$(BUILDTYPE)) "
- "$(INCS_$(BUILDTYPE)) "
- "$(CFLAGS_$(BUILDTYPE)) " +
- extra_flags)
-
- self.WriteLn('%s: %s FORCE_DO_CMD' % (gch, input))
- self.WriteLn('\t@$(call do_cmd,pch_%s,1)' % lang)
- self.WriteLn('')
- assert ' ' not in gch, (
- "Spaces in gch filenames not supported (%s)" % gch)
- self.WriteLn('all_deps += %s' % gch)
- self.WriteLn('')
-
-
- def ComputeOutputBasename(self, spec):
- """Return the 'output basename' of a gyp spec.
-
- E.g., the loadable module 'foobar' in directory 'baz' will produce
- 'libfoobar.so'
- """
- assert not self.is_mac_bundle
-
- if self.flavor == 'mac' and self.type in (
- 'static_library', 'executable', 'shared_library', 'loadable_module'):
- return self.xcode_settings.GetExecutablePath()
-
- target = spec['target_name']
- target_prefix = ''
- target_ext = ''
- if self.type == 'static_library':
- if target[:3] == 'lib':
- target = target[3:]
- target_prefix = 'lib'
- target_ext = '.a'
- elif self.type in ('loadable_module', 'shared_library'):
- if target[:3] == 'lib':
- target = target[3:]
- target_prefix = 'lib'
- if self.flavor == 'aix':
- target_ext = '.a'
- else:
- target_ext = '.so'
- elif self.type == 'none':
- target = '%s.stamp' % target
- elif self.type != 'executable':
- print ("ERROR: What output file should be generated?",
- "type", self.type, "target", target)
-
- target_prefix = spec.get('product_prefix', target_prefix)
- target = spec.get('product_name', target)
- product_ext = spec.get('product_extension')
- if product_ext:
- target_ext = '.' + product_ext
-
- return target_prefix + target + target_ext
-
-
- def _InstallImmediately(self):
- return self.toolset == 'target' and self.flavor == 'mac' and self.type in (
- 'static_library', 'executable', 'shared_library', 'loadable_module')
-
-
- def ComputeOutput(self, spec):
- """Return the 'output' (full output path) of a gyp spec.
-
- E.g., the loadable module 'foobar' in directory 'baz' will produce
- '$(obj)/baz/libfoobar.so'
- """
- assert not self.is_mac_bundle
-
- path = os.path.join('$(obj).' + self.toolset, self.path)
- if self.type == 'executable' or self._InstallImmediately():
- path = '$(builddir)'
- path = spec.get('product_dir', path)
- return os.path.join(path, self.ComputeOutputBasename(spec))
-
-
- def ComputeMacBundleOutput(self, spec):
- """Return the 'output' (full output path) to a bundle output directory."""
- assert self.is_mac_bundle
- path = generator_default_variables['PRODUCT_DIR']
- return os.path.join(path, self.xcode_settings.GetWrapperName())
-
-
- def ComputeMacBundleBinaryOutput(self, spec):
- """Return the 'output' (full output path) to the binary in a bundle."""
- path = generator_default_variables['PRODUCT_DIR']
- return os.path.join(path, self.xcode_settings.GetExecutablePath())
-
-
- def ComputeDeps(self, spec):
- """Compute the dependencies of a gyp spec.
-
- Returns a tuple (deps, link_deps), where each is a list of
- filenames that will need to be put in front of make for either
- building (deps) or linking (link_deps).
- """
- deps = []
- link_deps = []
- if 'dependencies' in spec:
- deps.extend([target_outputs[dep] for dep in spec['dependencies']
- if target_outputs[dep]])
- for dep in spec['dependencies']:
- if dep in target_link_deps:
- link_deps.append(target_link_deps[dep])
- deps.extend(link_deps)
- # TODO: It seems we need to transitively link in libraries (e.g. -lfoo)?
- # This hack makes it work:
- # link_deps.extend(spec.get('libraries', []))
- return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
-
-
- def WriteDependencyOnExtraOutputs(self, target, extra_outputs):
- self.WriteMakeRule([self.output_binary], extra_outputs,
- comment = 'Build our special outputs first.',
- order_only = True)
-
-
- def WriteTarget(self, spec, configs, deps, link_deps, bundle_deps,
- extra_outputs, part_of_all):
- """Write Makefile code to produce the final target of the gyp spec.
-
- spec, configs: input from gyp.
- deps, link_deps: dependency lists; see ComputeDeps()
- extra_outputs: any extra outputs that our target should depend on
- part_of_all: flag indicating this target is part of 'all'
- """
-
- self.WriteLn('### Rules for final target.')
-
- if extra_outputs:
- self.WriteDependencyOnExtraOutputs(self.output_binary, extra_outputs)
- self.WriteMakeRule(extra_outputs, deps,
- comment=('Preserve order dependency of '
- 'special output on deps.'),
- order_only = True)
-
- target_postbuilds = {}
- if self.type != 'none':
- for configname in sorted(configs.keys()):
- config = configs[configname]
- if self.flavor == 'mac':
- ldflags = self.xcode_settings.GetLdflags(configname,
- generator_default_variables['PRODUCT_DIR'],
- lambda p: Sourceify(self.Absolutify(p)))
-
- # TARGET_POSTBUILDS_$(BUILDTYPE) is added to postbuilds later on.
- gyp_to_build = gyp.common.InvertRelativePath(self.path)
- target_postbuild = self.xcode_settings.AddImplicitPostbuilds(
- configname,
- QuoteSpaces(os.path.normpath(os.path.join(gyp_to_build,
- self.output))),
- QuoteSpaces(os.path.normpath(os.path.join(gyp_to_build,
- self.output_binary))))
- if target_postbuild:
- target_postbuilds[configname] = target_postbuild
- else:
- ldflags = config.get('ldflags', [])
- # Compute an rpath for this output if needed.
- if any(dep.endswith('.so') or '.so.' in dep for dep in deps):
- # We want to get the literal string "$ORIGIN" into the link command,
- # so we need lots of escaping.
- ldflags.append(r'-Wl,-rpath=\$$ORIGIN/lib.%s/' % self.toolset)
- ldflags.append(r'-Wl,-rpath-link=\$(builddir)/lib.%s/' %
- self.toolset)
- library_dirs = config.get('library_dirs', [])
- ldflags += [('-L%s' % library_dir) for library_dir in library_dirs]
- self.WriteList(ldflags, 'LDFLAGS_%s' % configname)
- if self.flavor == 'mac':
- self.WriteList(self.xcode_settings.GetLibtoolflags(configname),
- 'LIBTOOLFLAGS_%s' % configname)
- libraries = spec.get('libraries')
- if libraries:
- # Remove duplicate entries
- libraries = gyp.common.uniquer(libraries)
- if self.flavor == 'mac':
- libraries = self.xcode_settings.AdjustLibraries(libraries)
- self.WriteList(libraries, 'LIBS')
- self.WriteLn('%s: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))' %
- QuoteSpaces(self.output_binary))
- self.WriteLn('%s: LIBS := $(LIBS)' % QuoteSpaces(self.output_binary))
-
- if self.flavor == 'mac':
- self.WriteLn('%s: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))' %
- QuoteSpaces(self.output_binary))
-
- # Postbuild actions. Like actions, but implicitly depend on the target's
- # output.
- postbuilds = []
- if self.flavor == 'mac':
- if target_postbuilds:
- postbuilds.append('$(TARGET_POSTBUILDS_$(BUILDTYPE))')
- postbuilds.extend(
- gyp.xcode_emulation.GetSpecPostbuildCommands(spec))
-
- if postbuilds:
- # Envvars may be referenced by TARGET_POSTBUILDS_$(BUILDTYPE),
- # so we must output its definition first, since we declare variables
- # using ":=".
- self.WriteSortedXcodeEnv(self.output, self.GetSortedXcodePostbuildEnv())
-
- for configname in target_postbuilds:
- self.WriteLn('%s: TARGET_POSTBUILDS_%s := %s' %
- (QuoteSpaces(self.output),
- configname,
- gyp.common.EncodePOSIXShellList(target_postbuilds[configname])))
-
- # Postbuilds expect to be run in the gyp file's directory, so insert an
- # implicit postbuild to cd to there.
- postbuilds.insert(0, gyp.common.EncodePOSIXShellList(['cd', self.path]))
- for i in xrange(len(postbuilds)):
- if not postbuilds[i].startswith('$'):
- postbuilds[i] = EscapeShellArgument(postbuilds[i])
- self.WriteLn('%s: builddir := $(abs_builddir)' % QuoteSpaces(self.output))
- self.WriteLn('%s: POSTBUILDS := %s' % (
- QuoteSpaces(self.output), ' '.join(postbuilds)))
-
- # A bundle directory depends on its dependencies such as bundle resources
- # and bundle binary. When all dependencies have been built, the bundle
- # needs to be packaged.
- if self.is_mac_bundle:
- # If the framework doesn't contain a binary, then nothing depends
- # on the actions -- make the framework depend on them directly too.
- self.WriteDependencyOnExtraOutputs(self.output, extra_outputs)
-
- # Bundle dependencies. Note that the code below adds actions to this
- # target, so if you move these two lines, move the lines below as well.
- self.WriteList(map(QuoteSpaces, bundle_deps), 'BUNDLE_DEPS')
- self.WriteLn('%s: $(BUNDLE_DEPS)' % QuoteSpaces(self.output))
-
- # After the framework is built, package it. Needs to happen before
- # postbuilds, since postbuilds depend on this.
- if self.type in ('shared_library', 'loadable_module'):
- self.WriteLn('\t@$(call do_cmd,mac_package_framework,,,%s)' %
- self.xcode_settings.GetFrameworkVersion())
-
- # Bundle postbuilds can depend on the whole bundle, so run them after
- # the bundle is packaged, not already after the bundle binary is done.
- if postbuilds:
- self.WriteLn('\t@$(call do_postbuilds)')
- postbuilds = [] # Don't write postbuilds for target's output.
-
- # Needed by test/mac/gyptest-rebuild.py.
- self.WriteLn('\t@true # No-op, used by tests')
-
- # Since this target depends on binary and resources which are in
- # nested subfolders, the framework directory will be older than
- # its dependencies usually. To prevent this rule from executing
- # on every build (expensive, especially with postbuilds), expliclity
- # update the time on the framework directory.
- self.WriteLn('\t@touch -c %s' % QuoteSpaces(self.output))
-
- if postbuilds:
- assert not self.is_mac_bundle, ('Postbuilds for bundles should be done '
- 'on the bundle, not the binary (target \'%s\')' % self.target)
- assert 'product_dir' not in spec, ('Postbuilds do not work with '
- 'custom product_dir')
-
- if self.type == 'executable':
- self.WriteLn('%s: LD_INPUTS := %s' % (
- QuoteSpaces(self.output_binary),
- ' '.join(map(QuoteSpaces, link_deps))))
- if self.toolset == 'host' and self.flavor == 'android':
- self.WriteDoCmd([self.output_binary], link_deps, 'link_host',
- part_of_all, postbuilds=postbuilds)
- else:
- self.WriteDoCmd([self.output_binary], link_deps, 'link', part_of_all,
- postbuilds=postbuilds)
-
- elif self.type == 'static_library':
- for link_dep in link_deps:
- assert ' ' not in link_dep, (
- "Spaces in alink input filenames not supported (%s)" % link_dep)
- if (self.flavor not in ('mac', 'openbsd', 'netbsd', 'win') and not
- self.is_standalone_static_library):
- self.WriteDoCmd([self.output_binary], link_deps, 'alink_thin',
- part_of_all, postbuilds=postbuilds)
- else:
- self.WriteDoCmd([self.output_binary], link_deps, 'alink', part_of_all,
- postbuilds=postbuilds)
- elif self.type == 'shared_library':
- self.WriteLn('%s: LD_INPUTS := %s' % (
- QuoteSpaces(self.output_binary),
- ' '.join(map(QuoteSpaces, link_deps))))
- self.WriteDoCmd([self.output_binary], link_deps, 'solink', part_of_all,
- postbuilds=postbuilds)
- elif self.type == 'loadable_module':
- for link_dep in link_deps:
- assert ' ' not in link_dep, (
- "Spaces in module input filenames not supported (%s)" % link_dep)
- if self.toolset == 'host' and self.flavor == 'android':
- self.WriteDoCmd([self.output_binary], link_deps, 'solink_module_host',
- part_of_all, postbuilds=postbuilds)
- else:
- self.WriteDoCmd(
- [self.output_binary], link_deps, 'solink_module', part_of_all,
- postbuilds=postbuilds)
- elif self.type == 'none':
- # Write a stamp line.
- self.WriteDoCmd([self.output_binary], deps, 'touch', part_of_all,
- postbuilds=postbuilds)
- else:
- print "WARNING: no output for", self.type, target
-
- # Add an alias for each target (if there are any outputs).
- # Installable target aliases are created below.
- if ((self.output and self.output != self.target) and
- (self.type not in self._INSTALLABLE_TARGETS)):
- self.WriteMakeRule([self.target], [self.output],
- comment='Add target alias', phony = True)
- if part_of_all:
- self.WriteMakeRule(['all'], [self.target],
- comment = 'Add target alias to "all" target.',
- phony = True)
-
- # Add special-case rules for our installable targets.
- # 1) They need to install to the build dir or "product" dir.
- # 2) They get shortcuts for building (e.g. "make chrome").
- # 3) They are part of "make all".
- if (self.type in self._INSTALLABLE_TARGETS or
- self.is_standalone_static_library):
- if self.type == 'shared_library':
- file_desc = 'shared library'
- elif self.type == 'static_library':
- file_desc = 'static library'
- else:
- file_desc = 'executable'
- install_path = self._InstallableTargetInstallPath()
- installable_deps = [self.output]
- if (self.flavor == 'mac' and not 'product_dir' in spec and
- self.toolset == 'target'):
- # On mac, products are created in install_path immediately.
- assert install_path == self.output, '%s != %s' % (
- install_path, self.output)
-
- # Point the target alias to the final binary output.
- self.WriteMakeRule([self.target], [install_path],
- comment='Add target alias', phony = True)
- if install_path != self.output:
- assert not self.is_mac_bundle # See comment a few lines above.
- self.WriteDoCmd([install_path], [self.output], 'copy',
- comment = 'Copy this to the %s output path.' %
- file_desc, part_of_all=part_of_all)
- installable_deps.append(install_path)
- if self.output != self.alias and self.alias != self.target:
- self.WriteMakeRule([self.alias], installable_deps,
- comment = 'Short alias for building this %s.' %
- file_desc, phony = True)
- if part_of_all:
- self.WriteMakeRule(['all'], [install_path],
- comment = 'Add %s to "all" target.' % file_desc,
- phony = True)
-
-
- def WriteList(self, value_list, variable=None, prefix='',
- quoter=QuoteIfNecessary):
- """Write a variable definition that is a list of values.
-
- E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
- foo = blaha blahb
- but in a pretty-printed style.
- """
- values = ''
- if value_list:
- value_list = [quoter(prefix + l) for l in value_list]
- values = ' \\\n\t' + ' \\\n\t'.join(value_list)
- self.fp.write('%s :=%s\n\n' % (variable, values))
-
-
- def WriteDoCmd(self, outputs, inputs, command, part_of_all, comment=None,
- postbuilds=False):
- """Write a Makefile rule that uses do_cmd.
-
- This makes the outputs dependent on the command line that was run,
- as well as support the V= make command line flag.
- """
- suffix = ''
- if postbuilds:
- assert ',' not in command
- suffix = ',,1' # Tell do_cmd to honor $POSTBUILDS
- self.WriteMakeRule(outputs, inputs,
- actions = ['$(call do_cmd,%s%s)' % (command, suffix)],
- comment = comment,
- command = command,
- force = True)
- # Add our outputs to the list of targets we read depfiles from.
- # all_deps is only used for deps file reading, and for deps files we replace
- # spaces with ? because escaping doesn't work with make's $(sort) and
- # other functions.
- outputs = [QuoteSpaces(o, SPACE_REPLACEMENT) for o in outputs]
- self.WriteLn('all_deps += %s' % ' '.join(outputs))
-
-
- def WriteMakeRule(self, outputs, inputs, actions=None, comment=None,
- order_only=False, force=False, phony=False, command=None):
- """Write a Makefile rule, with some extra tricks.
-
- outputs: a list of outputs for the rule (note: this is not directly
- supported by make; see comments below)
- inputs: a list of inputs for the rule
- actions: a list of shell commands to run for the rule
- comment: a comment to put in the Makefile above the rule (also useful
- for making this Python script's code self-documenting)
- order_only: if true, makes the dependency order-only
- force: if true, include FORCE_DO_CMD as an order-only dep
- phony: if true, the rule does not actually generate the named output, the
- output is just a name to run the rule
- command: (optional) command name to generate unambiguous labels
- """
- outputs = map(QuoteSpaces, outputs)
- inputs = map(QuoteSpaces, inputs)
-
- if comment:
- self.WriteLn('# ' + comment)
- if phony:
- self.WriteLn('.PHONY: ' + ' '.join(outputs))
- if actions:
- self.WriteLn("%s: TOOLSET := $(TOOLSET)" % outputs[0])
- force_append = ' FORCE_DO_CMD' if force else ''
-
- if order_only:
- # Order only rule: Just write a simple rule.
- # TODO(evanm): just make order_only a list of deps instead of this hack.
- self.WriteLn('%s: | %s%s' %
- (' '.join(outputs), ' '.join(inputs), force_append))
- elif len(outputs) == 1:
- # Regular rule, one output: Just write a simple rule.
- self.WriteLn('%s: %s%s' % (outputs[0], ' '.join(inputs), force_append))
- else:
- # Regular rule, more than one output: Multiple outputs are tricky in
- # make. We will write three rules:
- # - All outputs depend on an intermediate file.
- # - Make .INTERMEDIATE depend on the intermediate.
- # - The intermediate file depends on the inputs and executes the
- # actual command.
- # - The intermediate recipe will 'touch' the intermediate file.
- # - The multi-output rule will have an do-nothing recipe.
-
- # Hash the target name to avoid generating overlong filenames.
- cmddigest = hashlib.sha1(command if command else self.target).hexdigest()
- intermediate = "%s.intermediate" % cmddigest
- self.WriteLn('%s: %s' % (' '.join(outputs), intermediate))
- self.WriteLn('\t%s' % '@:');
- self.WriteLn('%s: %s' % ('.INTERMEDIATE', intermediate))
- self.WriteLn('%s: %s%s' %
- (intermediate, ' '.join(inputs), force_append))
- actions.insert(0, '$(call do_cmd,touch)')
-
- if actions:
- for action in actions:
- self.WriteLn('\t%s' % action)
- self.WriteLn()
-
-
- def WriteAndroidNdkModuleRule(self, module_name, all_sources, link_deps):
- """Write a set of LOCAL_XXX definitions for Android NDK.
-
- These variable definitions will be used by Android NDK but do nothing for
- non-Android applications.
-
- Arguments:
- module_name: Android NDK module name, which must be unique among all
- module names.
- all_sources: A list of source files (will be filtered by Compilable).
- link_deps: A list of link dependencies, which must be sorted in
- the order from dependencies to dependents.
- """
- if self.type not in ('executable', 'shared_library', 'static_library'):
- return
-
- self.WriteLn('# Variable definitions for Android applications')
- self.WriteLn('include $(CLEAR_VARS)')
- self.WriteLn('LOCAL_MODULE := ' + module_name)
- self.WriteLn('LOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) '
- '$(DEFS_$(BUILDTYPE)) '
- # LOCAL_CFLAGS is applied to both of C and C++. There is
- # no way to specify $(CFLAGS_C_$(BUILDTYPE)) only for C
- # sources.
- '$(CFLAGS_C_$(BUILDTYPE)) '
- # $(INCS_$(BUILDTYPE)) includes the prefix '-I' while
- # LOCAL_C_INCLUDES does not expect it. So put it in
- # LOCAL_CFLAGS.
- '$(INCS_$(BUILDTYPE))')
- # LOCAL_CXXFLAGS is obsolete and LOCAL_CPPFLAGS is preferred.
- self.WriteLn('LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))')
- self.WriteLn('LOCAL_C_INCLUDES :=')
- self.WriteLn('LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)')
-
- # Detect the C++ extension.
- cpp_ext = {'.cc': 0, '.cpp': 0, '.cxx': 0}
- default_cpp_ext = '.cpp'
- for filename in all_sources:
- ext = os.path.splitext(filename)[1]
- if ext in cpp_ext:
- cpp_ext[ext] += 1
- if cpp_ext[ext] > cpp_ext[default_cpp_ext]:
- default_cpp_ext = ext
- self.WriteLn('LOCAL_CPP_EXTENSION := ' + default_cpp_ext)
-
- self.WriteList(map(self.Absolutify, filter(Compilable, all_sources)),
- 'LOCAL_SRC_FILES')
-
- # Filter out those which do not match prefix and suffix and produce
- # the resulting list without prefix and suffix.
- def DepsToModules(deps, prefix, suffix):
- modules = []
- for filepath in deps:
- filename = os.path.basename(filepath)
- if filename.startswith(prefix) and filename.endswith(suffix):
- modules.append(filename[len(prefix):-len(suffix)])
- return modules
-
- # Retrieve the default value of 'SHARED_LIB_SUFFIX'
- params = {'flavor': 'linux'}
- default_variables = {}
- CalculateVariables(default_variables, params)
-
- self.WriteList(
- DepsToModules(link_deps,
- generator_default_variables['SHARED_LIB_PREFIX'],
- default_variables['SHARED_LIB_SUFFIX']),
- 'LOCAL_SHARED_LIBRARIES')
- self.WriteList(
- DepsToModules(link_deps,
- generator_default_variables['STATIC_LIB_PREFIX'],
- generator_default_variables['STATIC_LIB_SUFFIX']),
- 'LOCAL_STATIC_LIBRARIES')
-
- if self.type == 'executable':
- self.WriteLn('include $(BUILD_EXECUTABLE)')
- elif self.type == 'shared_library':
- self.WriteLn('include $(BUILD_SHARED_LIBRARY)')
- elif self.type == 'static_library':
- self.WriteLn('include $(BUILD_STATIC_LIBRARY)')
- self.WriteLn()
-
-
- def WriteLn(self, text=''):
- self.fp.write(text + '\n')
-
-
- def GetSortedXcodeEnv(self, additional_settings=None):
- return gyp.xcode_emulation.GetSortedXcodeEnv(
- self.xcode_settings, "$(abs_builddir)",
- os.path.join("$(abs_srcdir)", self.path), "$(BUILDTYPE)",
- additional_settings)
-
-
- def GetSortedXcodePostbuildEnv(self):
- # CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack.
- # TODO(thakis): It would be nice to have some general mechanism instead.
- strip_save_file = self.xcode_settings.GetPerTargetSetting(
- 'CHROMIUM_STRIP_SAVE_FILE', '')
- # Even if strip_save_file is empty, explicitly write it. Else a postbuild
- # might pick up an export from an earlier target.
- return self.GetSortedXcodeEnv(
- additional_settings={'CHROMIUM_STRIP_SAVE_FILE': strip_save_file})
-
-
- def WriteSortedXcodeEnv(self, target, env):
- for k, v in env:
- # For
- # foo := a\ b
- # the escaped space does the right thing. For
- # export foo := a\ b
- # it does not -- the backslash is written to the env as literal character.
- # So don't escape spaces in |env[k]|.
- self.WriteLn('%s: export %s := %s' % (QuoteSpaces(target), k, v))
-
-
- def Objectify(self, path):
- """Convert a path to its output directory form."""
- if '$(' in path:
- path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/' % self.toolset)
- if not '$(obj)' in path:
- path = '$(obj).%s/$(TARGET)/%s' % (self.toolset, path)
- return path
-
-
- def Pchify(self, path, lang):
- """Convert a prefix header path to its output directory form."""
- path = self.Absolutify(path)
- if '$(' in path:
- path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/pch-%s' %
- (self.toolset, lang))
- return path
- return '$(obj).%s/$(TARGET)/pch-%s/%s' % (self.toolset, lang, path)
-
-
- def Absolutify(self, path):
- """Convert a subdirectory-relative path into a base-relative path.
- Skips over paths that contain variables."""
- if '$(' in path:
- # Don't call normpath in this case, as it might collapse the
- # path too aggressively if it features '..'. However it's still
- # important to strip trailing slashes.
- return path.rstrip('/')
- return os.path.normpath(os.path.join(self.path, path))
-
-
- def ExpandInputRoot(self, template, expansion, dirname):
- if '%(INPUT_ROOT)s' not in template and '%(INPUT_DIRNAME)s' not in template:
- return template
- path = template % {
- 'INPUT_ROOT': expansion,
- 'INPUT_DIRNAME': dirname,
- }
- return path
-
-
- def _InstallableTargetInstallPath(self):
- """Returns the location of the final output for an installable target."""
- # Xcode puts shared_library results into PRODUCT_DIR, and some gyp files
- # rely on this. Emulate this behavior for mac.
-
- # XXX(TooTallNate): disabling this code since we don't want this behavior...
- #if (self.type == 'shared_library' and
- # (self.flavor != 'mac' or self.toolset != 'target')):
- # # Install all shared libs into a common directory (per toolset) for
- # # convenient access with LD_LIBRARY_PATH.
- # return '$(builddir)/lib.%s/%s' % (self.toolset, self.alias)
- return '$(builddir)/' + self.alias
-
-
-def WriteAutoRegenerationRule(params, root_makefile, makefile_name,
- build_files):
- """Write the target to regenerate the Makefile."""
- options = params['options']
- build_files_args = [gyp.common.RelativePath(filename, options.toplevel_dir)
- for filename in params['build_files_arg']]
-
- gyp_binary = gyp.common.FixIfRelativePath(params['gyp_binary'],
- options.toplevel_dir)
- if not gyp_binary.startswith(os.sep):
- gyp_binary = os.path.join('.', gyp_binary)
-
- root_makefile.write(
- "quiet_cmd_regen_makefile = ACTION Regenerating $@\n"
- "cmd_regen_makefile = cd $(srcdir); %(cmd)s\n"
- "%(makefile_name)s: %(deps)s\n"
- "\t$(call do_cmd,regen_makefile)\n\n" % {
- 'makefile_name': makefile_name,
- 'deps': ' '.join(map(SourceifyAndQuoteSpaces, build_files)),
- 'cmd': gyp.common.EncodePOSIXShellList(
- [gyp_binary, '-fmake'] +
- gyp.RegenerateFlags(options) +
- build_files_args)})
-
-
-def PerformBuild(data, configurations, params):
- options = params['options']
- for config in configurations:
- arguments = ['make']
- if options.toplevel_dir and options.toplevel_dir != '.':
- arguments += '-C', options.toplevel_dir
- arguments.append('BUILDTYPE=' + config)
- print 'Building [%s]: %s' % (config, arguments)
- subprocess.check_call(arguments)
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- options = params['options']
- flavor = gyp.common.GetFlavor(params)
- generator_flags = params.get('generator_flags', {})
- builddir_name = generator_flags.get('output_dir', 'out')
- android_ndk_version = generator_flags.get('android_ndk_version', None)
- default_target = generator_flags.get('default_target', 'all')
-
- def CalculateMakefilePath(build_file, base_name):
- """Determine where to write a Makefile for a given gyp file."""
- # Paths in gyp files are relative to the .gyp file, but we want
- # paths relative to the source root for the master makefile. Grab
- # the path of the .gyp file as the base to relativize against.
- # E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp".
- base_path = gyp.common.RelativePath(os.path.dirname(build_file),
- options.depth)
- # We write the file in the base_path directory.
- output_file = os.path.join(options.depth, base_path, base_name)
- if options.generator_output:
- output_file = os.path.join(
- options.depth, options.generator_output, base_path, base_name)
- base_path = gyp.common.RelativePath(os.path.dirname(build_file),
- options.toplevel_dir)
- return base_path, output_file
-
- # TODO: search for the first non-'Default' target. This can go
- # away when we add verification that all targets have the
- # necessary configurations.
- default_configuration = None
- toolsets = set([target_dicts[target]['toolset'] for target in target_list])
- for target in target_list:
- spec = target_dicts[target]
- if spec['default_configuration'] != 'Default':
- default_configuration = spec['default_configuration']
- break
- if not default_configuration:
- default_configuration = 'Default'
-
- srcdir = '.'
- makefile_name = 'Makefile' + options.suffix
- makefile_path = os.path.join(options.toplevel_dir, makefile_name)
- if options.generator_output:
- global srcdir_prefix
- makefile_path = os.path.join(
- options.toplevel_dir, options.generator_output, makefile_name)
- srcdir = gyp.common.RelativePath(srcdir, options.generator_output)
- srcdir_prefix = '$(srcdir)/'
-
- flock_command= 'flock'
- copy_archive_arguments = '-af'
- makedep_arguments = '-MMD'
- header_params = {
- 'default_target': default_target,
- 'builddir': builddir_name,
- 'default_configuration': default_configuration,
- 'flock': flock_command,
- 'flock_index': 1,
- 'link_commands': LINK_COMMANDS_LINUX,
- 'extra_commands': '',
- 'srcdir': srcdir,
- 'copy_archive_args': copy_archive_arguments,
- 'makedep_args': makedep_arguments,
- }
- if flavor == 'mac':
- flock_command = './gyp-mac-tool flock'
- header_params.update({
- 'flock': flock_command,
- 'flock_index': 2,
- 'link_commands': LINK_COMMANDS_MAC,
- 'extra_commands': SHARED_HEADER_MAC_COMMANDS,
- })
- elif flavor == 'android':
- header_params.update({
- 'link_commands': LINK_COMMANDS_ANDROID,
- })
- elif flavor == 'zos':
- copy_archive_arguments = '-fPR'
- makedep_arguments = '-qmakedep=gcc'
- header_params.update({
- 'copy_archive_args': copy_archive_arguments,
- 'makedep_args': makedep_arguments,
- 'link_commands': LINK_COMMANDS_OS390,
- })
- elif flavor == 'solaris':
- header_params.update({
- 'flock': './gyp-flock-tool flock',
- 'flock_index': 2,
- })
- elif flavor == 'freebsd':
- # Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific.
- header_params.update({
- 'flock': 'lockf',
- })
- elif flavor == 'openbsd':
- copy_archive_arguments = '-pPRf'
- header_params.update({
- 'copy_archive_args': copy_archive_arguments,
- })
- elif flavor == 'aix':
- copy_archive_arguments = '-pPRf'
- header_params.update({
- 'copy_archive_args': copy_archive_arguments,
- 'link_commands': LINK_COMMANDS_AIX,
- 'flock': './gyp-flock-tool flock',
- 'flock_index': 2,
- })
-
- header_params.update({
- 'CC.target': GetEnvironFallback(('CC_target', 'CC'), '$(CC)'),
- 'AR.target': GetEnvironFallback(('AR_target', 'AR'), '$(AR)'),
- 'CXX.target': GetEnvironFallback(('CXX_target', 'CXX'), '$(CXX)'),
- 'LINK.target': GetEnvironFallback(('LINK_target', 'LINK'), '$(LINK)'),
- 'CC.host': GetEnvironFallback(('CC_host', 'CC'), 'gcc'),
- 'AR.host': GetEnvironFallback(('AR_host', 'AR'), 'ar'),
- 'CXX.host': GetEnvironFallback(('CXX_host', 'CXX'), 'g++'),
- 'LINK.host': GetEnvironFallback(('LINK_host', 'LINK'), '$(CXX.host)'),
- })
-
- build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
- make_global_settings_array = data[build_file].get('make_global_settings', [])
- wrappers = {}
- for key, value in make_global_settings_array:
- if key.endswith('_wrapper'):
- wrappers[key[:-len('_wrapper')]] = '$(abspath %s)' % value
- make_global_settings = ''
- for key, value in make_global_settings_array:
- if re.match('.*_wrapper', key):
- continue
- if value[0] != '$':
- value = '$(abspath %s)' % value
- wrapper = wrappers.get(key)
- if wrapper:
- value = '%s %s' % (wrapper, value)
- del wrappers[key]
- if key in ('CC', 'CC.host', 'CXX', 'CXX.host'):
- make_global_settings += (
- 'ifneq (,$(filter $(origin %s), undefined default))\n' % key)
- # Let gyp-time envvars win over global settings.
- env_key = key.replace('.', '_') # CC.host -> CC_host
- if env_key in os.environ:
- value = os.environ[env_key]
- make_global_settings += ' %s = %s\n' % (key, value)
- make_global_settings += 'endif\n'
- else:
- make_global_settings += '%s ?= %s\n' % (key, value)
- # TODO(ukai): define cmd when only wrapper is specified in
- # make_global_settings.
-
- header_params['make_global_settings'] = make_global_settings
-
- gyp.common.EnsureDirExists(makefile_path)
- root_makefile = open(makefile_path, 'w')
- root_makefile.write(SHARED_HEADER % header_params)
- # Currently any versions have the same effect, but in future the behavior
- # could be different.
- if android_ndk_version:
- root_makefile.write(
- '# Define LOCAL_PATH for build of Android applications.\n'
- 'LOCAL_PATH := $(call my-dir)\n'
- '\n')
- for toolset in toolsets:
- root_makefile.write('TOOLSET := %s\n' % toolset)
- WriteRootHeaderSuffixRules(root_makefile)
-
- # Put build-time support tools next to the root Makefile.
- dest_path = os.path.dirname(makefile_path)
- gyp.common.CopyTool(flavor, dest_path)
-
- # Find the list of targets that derive from the gyp file(s) being built.
- needed_targets = set()
- for build_file in params['build_files']:
- for target in gyp.common.AllTargets(target_list, target_dicts, build_file):
- needed_targets.add(target)
-
- build_files = set()
- include_list = set()
- for qualified_target in target_list:
- build_file, target, toolset = gyp.common.ParseQualifiedTarget(
- qualified_target)
-
- this_make_global_settings = data[build_file].get('make_global_settings', [])
- assert make_global_settings_array == this_make_global_settings, (
- "make_global_settings needs to be the same for all targets. %s vs. %s" %
- (this_make_global_settings, make_global_settings))
-
- build_files.add(gyp.common.RelativePath(build_file, options.toplevel_dir))
- included_files = data[build_file]['included_files']
- for included_file in included_files:
- # The included_files entries are relative to the dir of the build file
- # that included them, so we have to undo that and then make them relative
- # to the root dir.
- relative_include_file = gyp.common.RelativePath(
- gyp.common.UnrelativePath(included_file, build_file),
- options.toplevel_dir)
- abs_include_file = os.path.abspath(relative_include_file)
- # If the include file is from the ~/.gyp dir, we should use absolute path
- # so that relocating the src dir doesn't break the path.
- if (params['home_dot_gyp'] and
- abs_include_file.startswith(params['home_dot_gyp'])):
- build_files.add(abs_include_file)
- else:
- build_files.add(relative_include_file)
-
- base_path, output_file = CalculateMakefilePath(build_file,
- target + '.' + toolset + options.suffix + '.mk')
-
- spec = target_dicts[qualified_target]
- configs = spec['configurations']
-
- if flavor == 'mac':
- gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec)
-
- writer = MakefileWriter(generator_flags, flavor)
- writer.Write(qualified_target, base_path, output_file, spec, configs,
- part_of_all=qualified_target in needed_targets)
-
- # Our root_makefile lives at the source root. Compute the relative path
- # from there to the output_file for including.
- mkfile_rel_path = gyp.common.RelativePath(output_file,
- os.path.dirname(makefile_path))
- include_list.add(mkfile_rel_path)
-
- # Write out per-gyp (sub-project) Makefiles.
- depth_rel_path = gyp.common.RelativePath(options.depth, os.getcwd())
- for build_file in build_files:
- # The paths in build_files were relativized above, so undo that before
- # testing against the non-relativized items in target_list and before
- # calculating the Makefile path.
- build_file = os.path.join(depth_rel_path, build_file)
- gyp_targets = [target_dicts[target]['target_name'] for target in target_list
- if target.startswith(build_file) and
- target in needed_targets]
- # Only generate Makefiles for gyp files with targets.
- if not gyp_targets:
- continue
- base_path, output_file = CalculateMakefilePath(build_file,
- os.path.splitext(os.path.basename(build_file))[0] + '.Makefile')
- makefile_rel_path = gyp.common.RelativePath(os.path.dirname(makefile_path),
- os.path.dirname(output_file))
- writer.WriteSubMake(output_file, makefile_rel_path, gyp_targets,
- builddir_name)
-
-
- # Write out the sorted list of includes.
- root_makefile.write('\n')
- for include_file in sorted(include_list):
- # We wrap each .mk include in an if statement so users can tell make to
- # not load a file by setting NO_LOAD. The below make code says, only
- # load the .mk file if the .mk filename doesn't start with a token in
- # NO_LOAD.
- root_makefile.write(
- "ifeq ($(strip $(foreach prefix,$(NO_LOAD),\\\n"
- " $(findstring $(join ^,$(prefix)),\\\n"
- " $(join ^," + include_file + ")))),)\n")
- root_makefile.write(" include " + include_file + "\n")
- root_makefile.write("endif\n")
- root_makefile.write('\n')
-
- if (not generator_flags.get('standalone')
- and generator_flags.get('auto_regeneration', True)):
- WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
-
- root_makefile.write(SHARED_FOOTER)
-
- root_makefile.close()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py
deleted file mode 100644
index 3901ba9..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py
+++ /dev/null
@@ -1,3494 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import copy
-import ntpath
-import os
-import posixpath
-import re
-import subprocess
-import sys
-
-import gyp.common
-import gyp.easy_xml as easy_xml
-import gyp.generator.ninja as ninja_generator
-import gyp.MSVSNew as MSVSNew
-import gyp.MSVSProject as MSVSProject
-import gyp.MSVSSettings as MSVSSettings
-import gyp.MSVSToolFile as MSVSToolFile
-import gyp.MSVSUserFile as MSVSUserFile
-import gyp.MSVSUtil as MSVSUtil
-import gyp.MSVSVersion as MSVSVersion
-from gyp.common import GypError
-from gyp.common import OrderedSet
-
-# TODO: Remove once bots are on 2.7, http://crbug.com/241769
-def _import_OrderedDict():
- import collections
- try:
- return collections.OrderedDict
- except AttributeError:
- import gyp.ordered_dict
- return gyp.ordered_dict.OrderedDict
-OrderedDict = _import_OrderedDict()
-
-
-# Regular expression for validating Visual Studio GUIDs. If the GUID
-# contains lowercase hex letters, MSVS will be fine. However,
-# IncrediBuild BuildConsole will parse the solution file, but then
-# silently skip building the target causing hard to track down errors.
-# Note that this only happens with the BuildConsole, and does not occur
-# if IncrediBuild is executed from inside Visual Studio. This regex
-# validates that the string looks like a GUID with all uppercase hex
-# letters.
-VALID_MSVS_GUID_CHARS = re.compile(r'^[A-F0-9\-]+$')
-
-
-generator_default_variables = {
- 'EXECUTABLE_PREFIX': '',
- 'EXECUTABLE_SUFFIX': '.exe',
- 'STATIC_LIB_PREFIX': '',
- 'SHARED_LIB_PREFIX': '',
- 'STATIC_LIB_SUFFIX': '.lib',
- 'SHARED_LIB_SUFFIX': '.dll',
- 'INTERMEDIATE_DIR': '$(IntDir)',
- 'SHARED_INTERMEDIATE_DIR': '$(OutDir)obj/global_intermediate',
- 'OS': 'win',
- 'PRODUCT_DIR': '$(OutDir)',
- 'LIB_DIR': '$(OutDir)lib',
- 'RULE_INPUT_ROOT': '$(InputName)',
- 'RULE_INPUT_DIRNAME': '$(InputDir)',
- 'RULE_INPUT_EXT': '$(InputExt)',
- 'RULE_INPUT_NAME': '$(InputFileName)',
- 'RULE_INPUT_PATH': '$(InputPath)',
- 'CONFIGURATION_NAME': '$(ConfigurationName)',
-}
-
-
-# The msvs specific sections that hold paths
-generator_additional_path_sections = [
- 'msvs_cygwin_dirs',
- 'msvs_props',
-]
-
-
-generator_additional_non_configuration_keys = [
- 'msvs_cygwin_dirs',
- 'msvs_cygwin_shell',
- 'msvs_large_pdb',
- 'msvs_shard',
- 'msvs_external_builder',
- 'msvs_external_builder_out_dir',
- 'msvs_external_builder_build_cmd',
- 'msvs_external_builder_clean_cmd',
- 'msvs_external_builder_clcompile_cmd',
- 'msvs_enable_winrt',
- 'msvs_requires_importlibrary',
- 'msvs_enable_winphone',
- 'msvs_application_type_revision',
- 'msvs_target_platform_version',
- 'msvs_target_platform_minversion',
-]
-
-
-# List of precompiled header related keys.
-precomp_keys = [
- 'msvs_precompiled_header',
- 'msvs_precompiled_source',
-]
-
-
-cached_username = None
-
-
-cached_domain = None
-
-
-# TODO(gspencer): Switch the os.environ calls to be
-# win32api.GetDomainName() and win32api.GetUserName() once the
-# python version in depot_tools has been updated to work on Vista
-# 64-bit.
-def _GetDomainAndUserName():
- if sys.platform not in ('win32', 'cygwin'):
- return ('DOMAIN', 'USERNAME')
- global cached_username
- global cached_domain
- if not cached_domain or not cached_username:
- domain = os.environ.get('USERDOMAIN')
- username = os.environ.get('USERNAME')
- if not domain or not username:
- call = subprocess.Popen(['net', 'config', 'Workstation'],
- stdout=subprocess.PIPE)
- config = call.communicate()[0]
- username_re = re.compile(r'^User name\s+(\S+)', re.MULTILINE)
- username_match = username_re.search(config)
- if username_match:
- username = username_match.group(1)
- domain_re = re.compile(r'^Logon domain\s+(\S+)', re.MULTILINE)
- domain_match = domain_re.search(config)
- if domain_match:
- domain = domain_match.group(1)
- cached_domain = domain
- cached_username = username
- return (cached_domain, cached_username)
-
-fixpath_prefix = None
-
-
-def _NormalizedSource(source):
- """Normalize the path.
-
- But not if that gets rid of a variable, as this may expand to something
- larger than one directory.
-
- Arguments:
- source: The path to be normalize.d
-
- Returns:
- The normalized path.
- """
- normalized = os.path.normpath(source)
- if source.count('$') == normalized.count('$'):
- source = normalized
- return source
-
-
-def _FixPath(path):
- """Convert paths to a form that will make sense in a vcproj file.
-
- Arguments:
- path: The path to convert, may contain / etc.
- Returns:
- The path with all slashes made into backslashes.
- """
- if fixpath_prefix and path and not os.path.isabs(path) and not path[0] == '$':
- path = os.path.join(fixpath_prefix, path)
- path = path.replace('/', '\\')
- path = _NormalizedSource(path)
- if path and path[-1] == '\\':
- path = path[:-1]
- return path
-
-
-def _FixPaths(paths):
- """Fix each of the paths of the list."""
- return [_FixPath(i) for i in paths]
-
-
-def _ConvertSourcesToFilterHierarchy(sources, prefix=None, excluded=None,
- list_excluded=True, msvs_version=None):
- """Converts a list split source file paths into a vcproj folder hierarchy.
-
- Arguments:
- sources: A list of source file paths split.
- prefix: A list of source file path layers meant to apply to each of sources.
- excluded: A set of excluded files.
- msvs_version: A MSVSVersion object.
-
- Returns:
- A hierarchy of filenames and MSVSProject.Filter objects that matches the
- layout of the source tree.
- For example:
- _ConvertSourcesToFilterHierarchy([['a', 'bob1.c'], ['b', 'bob2.c']],
- prefix=['joe'])
- -->
- [MSVSProject.Filter('a', contents=['joe\\a\\bob1.c']),
- MSVSProject.Filter('b', contents=['joe\\b\\bob2.c'])]
- """
- if not prefix: prefix = []
- result = []
- excluded_result = []
- folders = OrderedDict()
- # Gather files into the final result, excluded, or folders.
- for s in sources:
- if len(s) == 1:
- filename = _NormalizedSource('\\'.join(prefix + s))
- if filename in excluded:
- excluded_result.append(filename)
- else:
- result.append(filename)
- elif msvs_version and not msvs_version.UsesVcxproj():
- # For MSVS 2008 and earlier, we need to process all files before walking
- # the sub folders.
- if not folders.get(s[0]):
- folders[s[0]] = []
- folders[s[0]].append(s[1:])
- else:
- contents = _ConvertSourcesToFilterHierarchy([s[1:]], prefix + [s[0]],
- excluded=excluded,
- list_excluded=list_excluded,
- msvs_version=msvs_version)
- contents = MSVSProject.Filter(s[0], contents=contents)
- result.append(contents)
- # Add a folder for excluded files.
- if excluded_result and list_excluded:
- excluded_folder = MSVSProject.Filter('_excluded_files',
- contents=excluded_result)
- result.append(excluded_folder)
-
- if msvs_version and msvs_version.UsesVcxproj():
- return result
-
- # Populate all the folders.
- for f in folders:
- contents = _ConvertSourcesToFilterHierarchy(folders[f], prefix=prefix + [f],
- excluded=excluded,
- list_excluded=list_excluded,
- msvs_version=msvs_version)
- contents = MSVSProject.Filter(f, contents=contents)
- result.append(contents)
- return result
-
-
-def _ToolAppend(tools, tool_name, setting, value, only_if_unset=False):
- if not value: return
- _ToolSetOrAppend(tools, tool_name, setting, value, only_if_unset)
-
-
-def _ToolSetOrAppend(tools, tool_name, setting, value, only_if_unset=False):
- # TODO(bradnelson): ugly hack, fix this more generally!!!
- if 'Directories' in setting or 'Dependencies' in setting:
- if type(value) == str:
- value = value.replace('/', '\\')
- else:
- value = [i.replace('/', '\\') for i in value]
- if not tools.get(tool_name):
- tools[tool_name] = dict()
- tool = tools[tool_name]
- if tool.get(setting):
- if only_if_unset: return
- if type(tool[setting]) == list and type(value) == list:
- tool[setting] += value
- else:
- raise TypeError(
- 'Appending "%s" to a non-list setting "%s" for tool "%s" is '
- 'not allowed, previous value: %s' % (
- value, setting, tool_name, str(tool[setting])))
- else:
- tool[setting] = value
-
-
-def _ConfigPlatform(config_data):
- return config_data.get('msvs_configuration_platform', 'Win32')
-
-
-def _ConfigBaseName(config_name, platform_name):
- if config_name.endswith('_' + platform_name):
- return config_name[0:-len(platform_name) - 1]
- else:
- return config_name
-
-
-def _ConfigFullName(config_name, config_data):
- platform_name = _ConfigPlatform(config_data)
- return '%s|%s' % (_ConfigBaseName(config_name, platform_name), platform_name)
-
-
-def _ConfigWindowsTargetPlatformVersion(config_data):
- ver = config_data.get('msvs_windows_target_platform_version')
- if not ver or re.match(r'^\d+', ver):
- return ver
- for key in [r'HKLM\Software\Microsoft\Microsoft SDKs\Windows\%s',
- r'HKLM\Software\Wow6432Node\Microsoft\Microsoft SDKs\Windows\%s']:
- sdkdir = MSVSVersion._RegistryGetValue(key % ver, 'InstallationFolder')
- if not sdkdir:
- continue
- version = MSVSVersion._RegistryGetValue(key % ver, 'ProductVersion') or ''
- # find a matching entry in sdkdir\include
- names = sorted([x for x in os.listdir(r'%s\include' % sdkdir) \
- if x.startswith(version)], reverse = True)
- return names[0]
-
-
-def _BuildCommandLineForRuleRaw(spec, cmd, cygwin_shell, has_input_path,
- quote_cmd, do_setup_env):
-
- if [x for x in cmd if '$(InputDir)' in x]:
- input_dir_preamble = (
- 'set INPUTDIR=$(InputDir)\n'
- 'if NOT DEFINED INPUTDIR set INPUTDIR=.\\\n'
- 'set INPUTDIR=%INPUTDIR:~0,-1%\n'
- )
- else:
- input_dir_preamble = ''
-
- if cygwin_shell:
- # Find path to cygwin.
- cygwin_dir = _FixPath(spec.get('msvs_cygwin_dirs', ['.'])[0])
- # Prepare command.
- direct_cmd = cmd
- direct_cmd = [i.replace('$(IntDir)',
- '`cygpath -m "${INTDIR}"`') for i in direct_cmd]
- direct_cmd = [i.replace('$(OutDir)',
- '`cygpath -m "${OUTDIR}"`') for i in direct_cmd]
- direct_cmd = [i.replace('$(InputDir)',
- '`cygpath -m "${INPUTDIR}"`') for i in direct_cmd]
- if has_input_path:
- direct_cmd = [i.replace('$(InputPath)',
- '`cygpath -m "${INPUTPATH}"`')
- for i in direct_cmd]
- direct_cmd = ['\\"%s\\"' % i.replace('"', '\\\\\\"') for i in direct_cmd]
- # direct_cmd = gyp.common.EncodePOSIXShellList(direct_cmd)
- direct_cmd = ' '.join(direct_cmd)
- # TODO(quote): regularize quoting path names throughout the module
- cmd = ''
- if do_setup_env:
- cmd += 'call "$(ProjectDir)%(cygwin_dir)s\\setup_env.bat" && '
- cmd += 'set CYGWIN=nontsec&& '
- if direct_cmd.find('NUMBER_OF_PROCESSORS') >= 0:
- cmd += 'set /a NUMBER_OF_PROCESSORS_PLUS_1=%%NUMBER_OF_PROCESSORS%%+1&& '
- if direct_cmd.find('INTDIR') >= 0:
- cmd += 'set INTDIR=$(IntDir)&& '
- if direct_cmd.find('OUTDIR') >= 0:
- cmd += 'set OUTDIR=$(OutDir)&& '
- if has_input_path and direct_cmd.find('INPUTPATH') >= 0:
- cmd += 'set INPUTPATH=$(InputPath) && '
- cmd += 'bash -c "%(cmd)s"'
- cmd = cmd % {'cygwin_dir': cygwin_dir,
- 'cmd': direct_cmd}
- return input_dir_preamble + cmd
- else:
- # Convert cat --> type to mimic unix.
- if cmd[0] == 'cat':
- command = ['type']
- else:
- command = [cmd[0].replace('/', '\\')]
- # Add call before command to ensure that commands can be tied together one
- # after the other without aborting in Incredibuild, since IB makes a bat
- # file out of the raw command string, and some commands (like python) are
- # actually batch files themselves.
- command.insert(0, 'call')
- # Fix the paths
- # TODO(quote): This is a really ugly heuristic, and will miss path fixing
- # for arguments like "--arg=path" or "/opt:path".
- # If the argument starts with a slash or dash, it's probably a command line
- # switch
- arguments = [i if (i[:1] in "/-") else _FixPath(i) for i in cmd[1:]]
- arguments = [i.replace('$(InputDir)', '%INPUTDIR%') for i in arguments]
- arguments = [MSVSSettings.FixVCMacroSlashes(i) for i in arguments]
- if quote_cmd:
- # Support a mode for using cmd directly.
- # Convert any paths to native form (first element is used directly).
- # TODO(quote): regularize quoting path names throughout the module
- arguments = ['"%s"' % i for i in arguments]
- # Collapse into a single command.
- return input_dir_preamble + ' '.join(command + arguments)
-
-
-def _BuildCommandLineForRule(spec, rule, has_input_path, do_setup_env):
- # Currently this weird argument munging is used to duplicate the way a
- # python script would need to be run as part of the chrome tree.
- # Eventually we should add some sort of rule_default option to set this
- # per project. For now the behavior chrome needs is the default.
- mcs = rule.get('msvs_cygwin_shell')
- if mcs is None:
- mcs = int(spec.get('msvs_cygwin_shell', 1))
- elif isinstance(mcs, str):
- mcs = int(mcs)
- quote_cmd = int(rule.get('msvs_quote_cmd', 1))
- return _BuildCommandLineForRuleRaw(spec, rule['action'], mcs, has_input_path,
- quote_cmd, do_setup_env=do_setup_env)
-
-
-def _AddActionStep(actions_dict, inputs, outputs, description, command):
- """Merge action into an existing list of actions.
-
- Care must be taken so that actions which have overlapping inputs either don't
- get assigned to the same input, or get collapsed into one.
-
- Arguments:
- actions_dict: dictionary keyed on input name, which maps to a list of
- dicts describing the actions attached to that input file.
- inputs: list of inputs
- outputs: list of outputs
- description: description of the action
- command: command line to execute
- """
- # Require there to be at least one input (call sites will ensure this).
- assert inputs
-
- action = {
- 'inputs': inputs,
- 'outputs': outputs,
- 'description': description,
- 'command': command,
- }
-
- # Pick where to stick this action.
- # While less than optimal in terms of build time, attach them to the first
- # input for now.
- chosen_input = inputs[0]
-
- # Add it there.
- if chosen_input not in actions_dict:
- actions_dict[chosen_input] = []
- actions_dict[chosen_input].append(action)
-
-
-def _AddCustomBuildToolForMSVS(p, spec, primary_input,
- inputs, outputs, description, cmd):
- """Add a custom build tool to execute something.
-
- Arguments:
- p: the target project
- spec: the target project dict
- primary_input: input file to attach the build tool to
- inputs: list of inputs
- outputs: list of outputs
- description: description of the action
- cmd: command line to execute
- """
- inputs = _FixPaths(inputs)
- outputs = _FixPaths(outputs)
- tool = MSVSProject.Tool(
- 'VCCustomBuildTool',
- {'Description': description,
- 'AdditionalDependencies': ';'.join(inputs),
- 'Outputs': ';'.join(outputs),
- 'CommandLine': cmd,
- })
- # Add to the properties of primary input for each config.
- for config_name, c_data in spec['configurations'].iteritems():
- p.AddFileConfig(_FixPath(primary_input),
- _ConfigFullName(config_name, c_data), tools=[tool])
-
-
-def _AddAccumulatedActionsToMSVS(p, spec, actions_dict):
- """Add actions accumulated into an actions_dict, merging as needed.
-
- Arguments:
- p: the target project
- spec: the target project dict
- actions_dict: dictionary keyed on input name, which maps to a list of
- dicts describing the actions attached to that input file.
- """
- for primary_input in actions_dict:
- inputs = OrderedSet()
- outputs = OrderedSet()
- descriptions = []
- commands = []
- for action in actions_dict[primary_input]:
- inputs.update(OrderedSet(action['inputs']))
- outputs.update(OrderedSet(action['outputs']))
- descriptions.append(action['description'])
- commands.append(action['command'])
- # Add the custom build step for one input file.
- description = ', and also '.join(descriptions)
- command = '\r\n'.join(commands)
- _AddCustomBuildToolForMSVS(p, spec,
- primary_input=primary_input,
- inputs=inputs,
- outputs=outputs,
- description=description,
- cmd=command)
-
-
-def _RuleExpandPath(path, input_file):
- """Given the input file to which a rule applied, string substitute a path.
-
- Arguments:
- path: a path to string expand
- input_file: the file to which the rule applied.
- Returns:
- The string substituted path.
- """
- path = path.replace('$(InputName)',
- os.path.splitext(os.path.split(input_file)[1])[0])
- path = path.replace('$(InputDir)', os.path.dirname(input_file))
- path = path.replace('$(InputExt)',
- os.path.splitext(os.path.split(input_file)[1])[1])
- path = path.replace('$(InputFileName)', os.path.split(input_file)[1])
- path = path.replace('$(InputPath)', input_file)
- return path
-
-
-def _FindRuleTriggerFiles(rule, sources):
- """Find the list of files which a particular rule applies to.
-
- Arguments:
- rule: the rule in question
- sources: the set of all known source files for this project
- Returns:
- The list of sources that trigger a particular rule.
- """
- return rule.get('rule_sources', [])
-
-
-def _RuleInputsAndOutputs(rule, trigger_file):
- """Find the inputs and outputs generated by a rule.
-
- Arguments:
- rule: the rule in question.
- trigger_file: the main trigger for this rule.
- Returns:
- The pair of (inputs, outputs) involved in this rule.
- """
- raw_inputs = _FixPaths(rule.get('inputs', []))
- raw_outputs = _FixPaths(rule.get('outputs', []))
- inputs = OrderedSet()
- outputs = OrderedSet()
- inputs.add(trigger_file)
- for i in raw_inputs:
- inputs.add(_RuleExpandPath(i, trigger_file))
- for o in raw_outputs:
- outputs.add(_RuleExpandPath(o, trigger_file))
- return (inputs, outputs)
-
-
-def _GenerateNativeRulesForMSVS(p, rules, output_dir, spec, options):
- """Generate a native rules file.
-
- Arguments:
- p: the target project
- rules: the set of rules to include
- output_dir: the directory in which the project/gyp resides
- spec: the project dict
- options: global generator options
- """
- rules_filename = '%s%s.rules' % (spec['target_name'],
- options.suffix)
- rules_file = MSVSToolFile.Writer(os.path.join(output_dir, rules_filename),
- spec['target_name'])
- # Add each rule.
- for r in rules:
- rule_name = r['rule_name']
- rule_ext = r['extension']
- inputs = _FixPaths(r.get('inputs', []))
- outputs = _FixPaths(r.get('outputs', []))
- # Skip a rule with no action and no inputs.
- if 'action' not in r and not r.get('rule_sources', []):
- continue
- cmd = _BuildCommandLineForRule(spec, r, has_input_path=True,
- do_setup_env=True)
- rules_file.AddCustomBuildRule(name=rule_name,
- description=r.get('message', rule_name),
- extensions=[rule_ext],
- additional_dependencies=inputs,
- outputs=outputs,
- cmd=cmd)
- # Write out rules file.
- rules_file.WriteIfChanged()
-
- # Add rules file to project.
- p.AddToolFile(rules_filename)
-
-
-def _Cygwinify(path):
- path = path.replace('$(OutDir)', '$(OutDirCygwin)')
- path = path.replace('$(IntDir)', '$(IntDirCygwin)')
- return path
-
-
-def _GenerateExternalRules(rules, output_dir, spec,
- sources, options, actions_to_add):
- """Generate an external makefile to do a set of rules.
-
- Arguments:
- rules: the list of rules to include
- output_dir: path containing project and gyp files
- spec: project specification data
- sources: set of sources known
- options: global generator options
- actions_to_add: The list of actions we will add to.
- """
- filename = '%s_rules%s.mk' % (spec['target_name'], options.suffix)
- mk_file = gyp.common.WriteOnDiff(os.path.join(output_dir, filename))
- # Find cygwin style versions of some paths.
- mk_file.write('OutDirCygwin:=$(shell cygpath -u "$(OutDir)")\n')
- mk_file.write('IntDirCygwin:=$(shell cygpath -u "$(IntDir)")\n')
- # Gather stuff needed to emit all: target.
- all_inputs = OrderedSet()
- all_outputs = OrderedSet()
- all_output_dirs = OrderedSet()
- first_outputs = []
- for rule in rules:
- trigger_files = _FindRuleTriggerFiles(rule, sources)
- for tf in trigger_files:
- inputs, outputs = _RuleInputsAndOutputs(rule, tf)
- all_inputs.update(OrderedSet(inputs))
- all_outputs.update(OrderedSet(outputs))
- # Only use one target from each rule as the dependency for
- # 'all' so we don't try to build each rule multiple times.
- first_outputs.append(list(outputs)[0])
- # Get the unique output directories for this rule.
- output_dirs = [os.path.split(i)[0] for i in outputs]
- for od in output_dirs:
- all_output_dirs.add(od)
- first_outputs_cyg = [_Cygwinify(i) for i in first_outputs]
- # Write out all: target, including mkdir for each output directory.
- mk_file.write('all: %s\n' % ' '.join(first_outputs_cyg))
- for od in all_output_dirs:
- if od:
- mk_file.write('\tmkdir -p `cygpath -u "%s"`\n' % od)
- mk_file.write('\n')
- # Define how each output is generated.
- for rule in rules:
- trigger_files = _FindRuleTriggerFiles(rule, sources)
- for tf in trigger_files:
- # Get all the inputs and outputs for this rule for this trigger file.
- inputs, outputs = _RuleInputsAndOutputs(rule, tf)
- inputs = [_Cygwinify(i) for i in inputs]
- outputs = [_Cygwinify(i) for i in outputs]
- # Prepare the command line for this rule.
- cmd = [_RuleExpandPath(c, tf) for c in rule['action']]
- cmd = ['"%s"' % i for i in cmd]
- cmd = ' '.join(cmd)
- # Add it to the makefile.
- mk_file.write('%s: %s\n' % (' '.join(outputs), ' '.join(inputs)))
- mk_file.write('\t%s\n\n' % cmd)
- # Close up the file.
- mk_file.close()
-
- # Add makefile to list of sources.
- sources.add(filename)
- # Add a build action to call makefile.
- cmd = ['make',
- 'OutDir=$(OutDir)',
- 'IntDir=$(IntDir)',
- '-j', '${NUMBER_OF_PROCESSORS_PLUS_1}',
- '-f', filename]
- cmd = _BuildCommandLineForRuleRaw(spec, cmd, True, False, True, True)
- # Insert makefile as 0'th input, so it gets the action attached there,
- # as this is easier to understand from in the IDE.
- all_inputs = list(all_inputs)
- all_inputs.insert(0, filename)
- _AddActionStep(actions_to_add,
- inputs=_FixPaths(all_inputs),
- outputs=_FixPaths(all_outputs),
- description='Running external rules for %s' %
- spec['target_name'],
- command=cmd)
-
-
-def _EscapeEnvironmentVariableExpansion(s):
- """Escapes % characters.
-
- Escapes any % characters so that Windows-style environment variable
- expansions will leave them alone.
- See http://connect.microsoft.com/VisualStudio/feedback/details/106127/cl-d-name-text-containing-percentage-characters-doesnt-compile
- to understand why we have to do this.
-
- Args:
- s: The string to be escaped.
-
- Returns:
- The escaped string.
- """
- s = s.replace('%', '%%')
- return s
-
-
-quote_replacer_regex = re.compile(r'(\\*)"')
-
-
-def _EscapeCommandLineArgumentForMSVS(s):
- """Escapes a Windows command-line argument.
-
- So that the Win32 CommandLineToArgv function will turn the escaped result back
- into the original string.
- See http://msdn.microsoft.com/en-us/library/17w5ykft.aspx
- ("Parsing C++ Command-Line Arguments") to understand why we have to do
- this.
-
- Args:
- s: the string to be escaped.
- Returns:
- the escaped string.
- """
-
- def _Replace(match):
- # For a literal quote, CommandLineToArgv requires an odd number of
- # backslashes preceding it, and it produces half as many literal backslashes
- # (rounded down). So we need to produce 2n+1 backslashes.
- return 2 * match.group(1) + '\\"'
-
- # Escape all quotes so that they are interpreted literally.
- s = quote_replacer_regex.sub(_Replace, s)
- # Now add unescaped quotes so that any whitespace is interpreted literally.
- s = '"' + s + '"'
- return s
-
-
-delimiters_replacer_regex = re.compile(r'(\\*)([,;]+)')
-
-
-def _EscapeVCProjCommandLineArgListItem(s):
- """Escapes command line arguments for MSVS.
-
- The VCProj format stores string lists in a single string using commas and
- semi-colons as separators, which must be quoted if they are to be
- interpreted literally. However, command-line arguments may already have
- quotes, and the VCProj parser is ignorant of the backslash escaping
- convention used by CommandLineToArgv, so the command-line quotes and the
- VCProj quotes may not be the same quotes. So to store a general
- command-line argument in a VCProj list, we need to parse the existing
- quoting according to VCProj's convention and quote any delimiters that are
- not already quoted by that convention. The quotes that we add will also be
- seen by CommandLineToArgv, so if backslashes precede them then we also have
- to escape those backslashes according to the CommandLineToArgv
- convention.
-
- Args:
- s: the string to be escaped.
- Returns:
- the escaped string.
- """
-
- def _Replace(match):
- # For a non-literal quote, CommandLineToArgv requires an even number of
- # backslashes preceding it, and it produces half as many literal
- # backslashes. So we need to produce 2n backslashes.
- return 2 * match.group(1) + '"' + match.group(2) + '"'
-
- segments = s.split('"')
- # The unquoted segments are at the even-numbered indices.
- for i in range(0, len(segments), 2):
- segments[i] = delimiters_replacer_regex.sub(_Replace, segments[i])
- # Concatenate back into a single string
- s = '"'.join(segments)
- if len(segments) % 2 == 0:
- # String ends while still quoted according to VCProj's convention. This
- # means the delimiter and the next list item that follow this one in the
- # .vcproj file will be misinterpreted as part of this item. There is nothing
- # we can do about this. Adding an extra quote would correct the problem in
- # the VCProj but cause the same problem on the final command-line. Moving
- # the item to the end of the list does works, but that's only possible if
- # there's only one such item. Let's just warn the user.
- print >> sys.stderr, ('Warning: MSVS may misinterpret the odd number of ' +
- 'quotes in ' + s)
- return s
-
-
-def _EscapeCppDefineForMSVS(s):
- """Escapes a CPP define so that it will reach the compiler unaltered."""
- s = _EscapeEnvironmentVariableExpansion(s)
- s = _EscapeCommandLineArgumentForMSVS(s)
- s = _EscapeVCProjCommandLineArgListItem(s)
- # cl.exe replaces literal # characters with = in preprocesor definitions for
- # some reason. Octal-encode to work around that.
- s = s.replace('#', '\\%03o' % ord('#'))
- return s
-
-
-quote_replacer_regex2 = re.compile(r'(\\+)"')
-
-
-def _EscapeCommandLineArgumentForMSBuild(s):
- """Escapes a Windows command-line argument for use by MSBuild."""
-
- def _Replace(match):
- return (len(match.group(1)) / 2 * 4) * '\\' + '\\"'
-
- # Escape all quotes so that they are interpreted literally.
- s = quote_replacer_regex2.sub(_Replace, s)
- return s
-
-
-def _EscapeMSBuildSpecialCharacters(s):
- escape_dictionary = {
- '%': '%25',
- '$': '%24',
- '@': '%40',
- "'": '%27',
- ';': '%3B',
- '?': '%3F',
- '*': '%2A'
- }
- result = ''.join([escape_dictionary.get(c, c) for c in s])
- return result
-
-
-def _EscapeCppDefineForMSBuild(s):
- """Escapes a CPP define so that it will reach the compiler unaltered."""
- s = _EscapeEnvironmentVariableExpansion(s)
- s = _EscapeCommandLineArgumentForMSBuild(s)
- s = _EscapeMSBuildSpecialCharacters(s)
- # cl.exe replaces literal # characters with = in preprocesor definitions for
- # some reason. Octal-encode to work around that.
- s = s.replace('#', '\\%03o' % ord('#'))
- return s
-
-
-def _GenerateRulesForMSVS(p, output_dir, options, spec,
- sources, excluded_sources,
- actions_to_add):
- """Generate all the rules for a particular project.
-
- Arguments:
- p: the project
- output_dir: directory to emit rules to
- options: global options passed to the generator
- spec: the specification for this project
- sources: the set of all known source files in this project
- excluded_sources: the set of sources excluded from normal processing
- actions_to_add: deferred list of actions to add in
- """
- rules = spec.get('rules', [])
- rules_native = [r for r in rules if not int(r.get('msvs_external_rule', 0))]
- rules_external = [r for r in rules if int(r.get('msvs_external_rule', 0))]
-
- # Handle rules that use a native rules file.
- if rules_native:
- _GenerateNativeRulesForMSVS(p, rules_native, output_dir, spec, options)
-
- # Handle external rules (non-native rules).
- if rules_external:
- _GenerateExternalRules(rules_external, output_dir, spec,
- sources, options, actions_to_add)
- _AdjustSourcesForRules(rules, sources, excluded_sources, False)
-
-
-def _AdjustSourcesForRules(rules, sources, excluded_sources, is_msbuild):
- # Add outputs generated by each rule (if applicable).
- for rule in rules:
- # Add in the outputs from this rule.
- trigger_files = _FindRuleTriggerFiles(rule, sources)
- for trigger_file in trigger_files:
- # Remove trigger_file from excluded_sources to let the rule be triggered
- # (e.g. rule trigger ax_enums.idl is added to excluded_sources
- # because it's also in an action's inputs in the same project)
- excluded_sources.discard(_FixPath(trigger_file))
- # Done if not processing outputs as sources.
- if int(rule.get('process_outputs_as_sources', False)):
- inputs, outputs = _RuleInputsAndOutputs(rule, trigger_file)
- inputs = OrderedSet(_FixPaths(inputs))
- outputs = OrderedSet(_FixPaths(outputs))
- inputs.remove(_FixPath(trigger_file))
- sources.update(inputs)
- if not is_msbuild:
- excluded_sources.update(inputs)
- sources.update(outputs)
-
-
-def _FilterActionsFromExcluded(excluded_sources, actions_to_add):
- """Take inputs with actions attached out of the list of exclusions.
-
- Arguments:
- excluded_sources: list of source files not to be built.
- actions_to_add: dict of actions keyed on source file they're attached to.
- Returns:
- excluded_sources with files that have actions attached removed.
- """
- must_keep = OrderedSet(_FixPaths(actions_to_add.keys()))
- return [s for s in excluded_sources if s not in must_keep]
-
-
-def _GetDefaultConfiguration(spec):
- return spec['configurations'][spec['default_configuration']]
-
-
-def _GetGuidOfProject(proj_path, spec):
- """Get the guid for the project.
-
- Arguments:
- proj_path: Path of the vcproj or vcxproj file to generate.
- spec: The target dictionary containing the properties of the target.
- Returns:
- the guid.
- Raises:
- ValueError: if the specified GUID is invalid.
- """
- # Pluck out the default configuration.
- default_config = _GetDefaultConfiguration(spec)
- # Decide the guid of the project.
- guid = default_config.get('msvs_guid')
- if guid:
- if VALID_MSVS_GUID_CHARS.match(guid) is None:
- raise ValueError('Invalid MSVS guid: "%s". Must match regex: "%s".' %
- (guid, VALID_MSVS_GUID_CHARS.pattern))
- guid = '{%s}' % guid
- guid = guid or MSVSNew.MakeGuid(proj_path)
- return guid
-
-
-def _GetMsbuildToolsetOfProject(proj_path, spec, version):
- """Get the platform toolset for the project.
-
- Arguments:
- proj_path: Path of the vcproj or vcxproj file to generate.
- spec: The target dictionary containing the properties of the target.
- version: The MSVSVersion object.
- Returns:
- the platform toolset string or None.
- """
- # Pluck out the default configuration.
- default_config = _GetDefaultConfiguration(spec)
- toolset = default_config.get('msbuild_toolset')
- if not toolset and version.DefaultToolset():
- toolset = version.DefaultToolset()
- return toolset
-
-
-def _GenerateProject(project, options, version, generator_flags):
- """Generates a vcproj file.
-
- Arguments:
- project: the MSVSProject object.
- options: global generator options.
- version: the MSVSVersion object.
- generator_flags: dict of generator-specific flags.
- Returns:
- A list of source files that cannot be found on disk.
- """
- default_config = _GetDefaultConfiguration(project.spec)
-
- # Skip emitting anything if told to with msvs_existing_vcproj option.
- if default_config.get('msvs_existing_vcproj'):
- return []
-
- if version.UsesVcxproj():
- return _GenerateMSBuildProject(project, options, version, generator_flags)
- else:
- return _GenerateMSVSProject(project, options, version, generator_flags)
-
-
-# TODO: Avoid code duplication with _ValidateSourcesForOSX in make.py.
-def _ValidateSourcesForMSVSProject(spec, version):
- """Makes sure if duplicate basenames are not specified in the source list.
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- version: The VisualStudioVersion object.
- """
- # This validation should not be applied to MSVC2010 and later.
- assert not version.UsesVcxproj()
-
- # TODO: Check if MSVC allows this for loadable_module targets.
- if spec.get('type', None) not in ('static_library', 'shared_library'):
- return
- sources = spec.get('sources', [])
- basenames = {}
- for source in sources:
- name, ext = os.path.splitext(source)
- is_compiled_file = ext in [
- '.c', '.cc', '.cpp', '.cxx', '.m', '.mm', '.s', '.S']
- if not is_compiled_file:
- continue
- basename = os.path.basename(name) # Don't include extension.
- basenames.setdefault(basename, []).append(source)
-
- error = ''
- for basename, files in basenames.iteritems():
- if len(files) > 1:
- error += ' %s: %s\n' % (basename, ' '.join(files))
-
- if error:
- print('static library %s has several files with the same basename:\n' %
- spec['target_name'] + error + 'MSVC08 cannot handle that.')
- raise GypError('Duplicate basenames in sources section, see list above')
-
-
-def _GenerateMSVSProject(project, options, version, generator_flags):
- """Generates a .vcproj file. It may create .rules and .user files too.
-
- Arguments:
- project: The project object we will generate the file for.
- options: Global options passed to the generator.
- version: The VisualStudioVersion object.
- generator_flags: dict of generator-specific flags.
- """
- spec = project.spec
- gyp.common.EnsureDirExists(project.path)
-
- platforms = _GetUniquePlatforms(spec)
- p = MSVSProject.Writer(project.path, version, spec['target_name'],
- project.guid, platforms)
-
- # Get directory project file is in.
- project_dir = os.path.split(project.path)[0]
- gyp_path = _NormalizedSource(project.build_file)
- relative_path_of_gyp_file = gyp.common.RelativePath(gyp_path, project_dir)
-
- config_type = _GetMSVSConfigurationType(spec, project.build_file)
- for config_name, config in spec['configurations'].iteritems():
- _AddConfigurationToMSVSProject(p, spec, config_type, config_name, config)
-
- # MSVC08 and prior version cannot handle duplicate basenames in the same
- # target.
- # TODO: Take excluded sources into consideration if possible.
- _ValidateSourcesForMSVSProject(spec, version)
-
- # Prepare list of sources and excluded sources.
- gyp_file = os.path.split(project.build_file)[1]
- sources, excluded_sources = _PrepareListOfSources(spec, generator_flags,
- gyp_file)
-
- # Add rules.
- actions_to_add = {}
- _GenerateRulesForMSVS(p, project_dir, options, spec,
- sources, excluded_sources,
- actions_to_add)
- list_excluded = generator_flags.get('msvs_list_excluded_files', True)
- sources, excluded_sources, excluded_idl = (
- _AdjustSourcesAndConvertToFilterHierarchy(spec, options, project_dir,
- sources, excluded_sources,
- list_excluded, version))
-
- # Add in files.
- missing_sources = _VerifySourcesExist(sources, project_dir)
- p.AddFiles(sources)
-
- _AddToolFilesToMSVS(p, spec)
- _HandlePreCompiledHeaders(p, sources, spec)
- _AddActions(actions_to_add, spec, relative_path_of_gyp_file)
- _AddCopies(actions_to_add, spec)
- _WriteMSVSUserFile(project.path, version, spec)
-
- # NOTE: this stanza must appear after all actions have been decided.
- # Don't excluded sources with actions attached, or they won't run.
- excluded_sources = _FilterActionsFromExcluded(
- excluded_sources, actions_to_add)
- _ExcludeFilesFromBeingBuilt(p, spec, excluded_sources, excluded_idl,
- list_excluded)
- _AddAccumulatedActionsToMSVS(p, spec, actions_to_add)
-
- # Write it out.
- p.WriteIfChanged()
-
- return missing_sources
-
-
-def _GetUniquePlatforms(spec):
- """Returns the list of unique platforms for this spec, e.g ['win32', ...].
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- Returns:
- The MSVSUserFile object created.
- """
- # Gather list of unique platforms.
- platforms = OrderedSet()
- for configuration in spec['configurations']:
- platforms.add(_ConfigPlatform(spec['configurations'][configuration]))
- platforms = list(platforms)
- return platforms
-
-
-def _CreateMSVSUserFile(proj_path, version, spec):
- """Generates a .user file for the user running this Gyp program.
-
- Arguments:
- proj_path: The path of the project file being created. The .user file
- shares the same path (with an appropriate suffix).
- version: The VisualStudioVersion object.
- spec: The target dictionary containing the properties of the target.
- Returns:
- The MSVSUserFile object created.
- """
- (domain, username) = _GetDomainAndUserName()
- vcuser_filename = '.'.join([proj_path, domain, username, 'user'])
- user_file = MSVSUserFile.Writer(vcuser_filename, version,
- spec['target_name'])
- return user_file
-
-
-def _GetMSVSConfigurationType(spec, build_file):
- """Returns the configuration type for this project.
-
- It's a number defined by Microsoft. May raise an exception.
-
- Args:
- spec: The target dictionary containing the properties of the target.
- build_file: The path of the gyp file.
- Returns:
- An integer, the configuration type.
- """
- try:
- config_type = {
- 'executable': '1', # .exe
- 'shared_library': '2', # .dll
- 'loadable_module': '2', # .dll
- 'static_library': '4', # .lib
- 'none': '10', # Utility type
- }[spec['type']]
- except KeyError:
- if spec.get('type'):
- raise GypError('Target type %s is not a valid target type for '
- 'target %s in %s.' %
- (spec['type'], spec['target_name'], build_file))
- else:
- raise GypError('Missing type field for target %s in %s.' %
- (spec['target_name'], build_file))
- return config_type
-
-
-def _AddConfigurationToMSVSProject(p, spec, config_type, config_name, config):
- """Adds a configuration to the MSVS project.
-
- Many settings in a vcproj file are specific to a configuration. This
- function the main part of the vcproj file that's configuration specific.
-
- Arguments:
- p: The target project being generated.
- spec: The target dictionary containing the properties of the target.
- config_type: The configuration type, a number as defined by Microsoft.
- config_name: The name of the configuration.
- config: The dictionary that defines the special processing to be done
- for this configuration.
- """
- # Get the information for this configuration
- include_dirs, midl_include_dirs, resource_include_dirs = \
- _GetIncludeDirs(config)
- libraries = _GetLibraries(spec)
- library_dirs = _GetLibraryDirs(config)
- out_file, vc_tool, _ = _GetOutputFilePathAndTool(spec, msbuild=False)
- defines = _GetDefines(config)
- defines = [_EscapeCppDefineForMSVS(d) for d in defines]
- disabled_warnings = _GetDisabledWarnings(config)
- prebuild = config.get('msvs_prebuild')
- postbuild = config.get('msvs_postbuild')
- def_file = _GetModuleDefinition(spec)
- precompiled_header = config.get('msvs_precompiled_header')
-
- # Prepare the list of tools as a dictionary.
- tools = dict()
- # Add in user specified msvs_settings.
- msvs_settings = config.get('msvs_settings', {})
- MSVSSettings.ValidateMSVSSettings(msvs_settings)
-
- # Prevent default library inheritance from the environment.
- _ToolAppend(tools, 'VCLinkerTool', 'AdditionalDependencies', ['$(NOINHERIT)'])
-
- for tool in msvs_settings:
- settings = config['msvs_settings'][tool]
- for setting in settings:
- _ToolAppend(tools, tool, setting, settings[setting])
- # Add the information to the appropriate tool
- _ToolAppend(tools, 'VCCLCompilerTool',
- 'AdditionalIncludeDirectories', include_dirs)
- _ToolAppend(tools, 'VCMIDLTool',
- 'AdditionalIncludeDirectories', midl_include_dirs)
- _ToolAppend(tools, 'VCResourceCompilerTool',
- 'AdditionalIncludeDirectories', resource_include_dirs)
- # Add in libraries.
- _ToolAppend(tools, 'VCLinkerTool', 'AdditionalDependencies', libraries)
- _ToolAppend(tools, 'VCLinkerTool', 'AdditionalLibraryDirectories',
- library_dirs)
- if out_file:
- _ToolAppend(tools, vc_tool, 'OutputFile', out_file, only_if_unset=True)
- # Add defines.
- _ToolAppend(tools, 'VCCLCompilerTool', 'PreprocessorDefinitions', defines)
- _ToolAppend(tools, 'VCResourceCompilerTool', 'PreprocessorDefinitions',
- defines)
- # Change program database directory to prevent collisions.
- _ToolAppend(tools, 'VCCLCompilerTool', 'ProgramDataBaseFileName',
- '$(IntDir)$(ProjectName)\\vc80.pdb', only_if_unset=True)
- # Add disabled warnings.
- _ToolAppend(tools, 'VCCLCompilerTool',
- 'DisableSpecificWarnings', disabled_warnings)
- # Add Pre-build.
- _ToolAppend(tools, 'VCPreBuildEventTool', 'CommandLine', prebuild)
- # Add Post-build.
- _ToolAppend(tools, 'VCPostBuildEventTool', 'CommandLine', postbuild)
- # Turn on precompiled headers if appropriate.
- if precompiled_header:
- precompiled_header = os.path.split(precompiled_header)[1]
- _ToolAppend(tools, 'VCCLCompilerTool', 'UsePrecompiledHeader', '2')
- _ToolAppend(tools, 'VCCLCompilerTool',
- 'PrecompiledHeaderThrough', precompiled_header)
- _ToolAppend(tools, 'VCCLCompilerTool',
- 'ForcedIncludeFiles', precompiled_header)
- # Loadable modules don't generate import libraries;
- # tell dependent projects to not expect one.
- if spec['type'] == 'loadable_module':
- _ToolAppend(tools, 'VCLinkerTool', 'IgnoreImportLibrary', 'true')
- # Set the module definition file if any.
- if def_file:
- _ToolAppend(tools, 'VCLinkerTool', 'ModuleDefinitionFile', def_file)
-
- _AddConfigurationToMSVS(p, spec, tools, config, config_type, config_name)
-
-
-def _GetIncludeDirs(config):
- """Returns the list of directories to be used for #include directives.
-
- Arguments:
- config: The dictionary that defines the special processing to be done
- for this configuration.
- Returns:
- The list of directory paths.
- """
- # TODO(bradnelson): include_dirs should really be flexible enough not to
- # require this sort of thing.
- include_dirs = (
- config.get('include_dirs', []) +
- config.get('msvs_system_include_dirs', []))
- midl_include_dirs = (
- config.get('midl_include_dirs', []) +
- config.get('msvs_system_include_dirs', []))
- resource_include_dirs = config.get('resource_include_dirs', include_dirs)
- include_dirs = _FixPaths(include_dirs)
- midl_include_dirs = _FixPaths(midl_include_dirs)
- resource_include_dirs = _FixPaths(resource_include_dirs)
- return include_dirs, midl_include_dirs, resource_include_dirs
-
-
-def _GetLibraryDirs(config):
- """Returns the list of directories to be used for library search paths.
-
- Arguments:
- config: The dictionary that defines the special processing to be done
- for this configuration.
- Returns:
- The list of directory paths.
- """
-
- library_dirs = config.get('library_dirs', [])
- library_dirs = _FixPaths(library_dirs)
- return library_dirs
-
-
-def _GetLibraries(spec):
- """Returns the list of libraries for this configuration.
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- Returns:
- The list of directory paths.
- """
- libraries = spec.get('libraries', [])
- # Strip out -l, as it is not used on windows (but is needed so we can pass
- # in libraries that are assumed to be in the default library path).
- # Also remove duplicate entries, leaving only the last duplicate, while
- # preserving order.
- found = OrderedSet()
- unique_libraries_list = []
- for entry in reversed(libraries):
- library = re.sub(r'^\-l', '', entry)
- if not os.path.splitext(library)[1]:
- library += '.lib'
- if library not in found:
- found.add(library)
- unique_libraries_list.append(library)
- unique_libraries_list.reverse()
- return unique_libraries_list
-
-
-def _GetOutputFilePathAndTool(spec, msbuild):
- """Returns the path and tool to use for this target.
-
- Figures out the path of the file this spec will create and the name of
- the VC tool that will create it.
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- Returns:
- A triple of (file path, name of the vc tool, name of the msbuild tool)
- """
- # Select a name for the output file.
- out_file = ''
- vc_tool = ''
- msbuild_tool = ''
- output_file_map = {
- 'executable': ('VCLinkerTool', 'Link', '$(OutDir)', '.exe'),
- 'shared_library': ('VCLinkerTool', 'Link', '$(OutDir)', '.dll'),
- 'loadable_module': ('VCLinkerTool', 'Link', '$(OutDir)', '.dll'),
- 'static_library': ('VCLibrarianTool', 'Lib', '$(OutDir)lib\\', '.lib'),
- }
- output_file_props = output_file_map.get(spec['type'])
- if output_file_props and int(spec.get('msvs_auto_output_file', 1)):
- vc_tool, msbuild_tool, out_dir, suffix = output_file_props
- if spec.get('standalone_static_library', 0):
- out_dir = '$(OutDir)'
- out_dir = spec.get('product_dir', out_dir)
- product_extension = spec.get('product_extension')
- if product_extension:
- suffix = '.' + product_extension
- elif msbuild:
- suffix = '$(TargetExt)'
- prefix = spec.get('product_prefix', '')
- product_name = spec.get('product_name', '$(ProjectName)')
- out_file = ntpath.join(out_dir, prefix + product_name + suffix)
- return out_file, vc_tool, msbuild_tool
-
-
-def _GetOutputTargetExt(spec):
- """Returns the extension for this target, including the dot
-
- If product_extension is specified, set target_extension to this to avoid
- MSB8012, returns None otherwise. Ignores any target_extension settings in
- the input files.
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- Returns:
- A string with the extension, or None
- """
- target_extension = spec.get('product_extension')
- if target_extension:
- return '.' + target_extension
- return None
-
-
-def _GetDefines(config):
- """Returns the list of preprocessor definitions for this configuation.
-
- Arguments:
- config: The dictionary that defines the special processing to be done
- for this configuration.
- Returns:
- The list of preprocessor definitions.
- """
- defines = []
- for d in config.get('defines', []):
- if type(d) == list:
- fd = '='.join([str(dpart) for dpart in d])
- else:
- fd = str(d)
- defines.append(fd)
- return defines
-
-
-def _GetDisabledWarnings(config):
- return [str(i) for i in config.get('msvs_disabled_warnings', [])]
-
-
-def _GetModuleDefinition(spec):
- def_file = ''
- if spec['type'] in ['shared_library', 'loadable_module', 'executable']:
- def_files = [s for s in spec.get('sources', []) if s.endswith('.def')]
- if len(def_files) == 1:
- def_file = _FixPath(def_files[0])
- elif def_files:
- raise ValueError(
- 'Multiple module definition files in one target, target %s lists '
- 'multiple .def files: %s' % (
- spec['target_name'], ' '.join(def_files)))
- return def_file
-
-
-def _ConvertToolsToExpectedForm(tools):
- """Convert tools to a form expected by Visual Studio.
-
- Arguments:
- tools: A dictionary of settings; the tool name is the key.
- Returns:
- A list of Tool objects.
- """
- tool_list = []
- for tool, settings in tools.iteritems():
- # Collapse settings with lists.
- settings_fixed = {}
- for setting, value in settings.iteritems():
- if type(value) == list:
- if ((tool == 'VCLinkerTool' and
- setting == 'AdditionalDependencies') or
- setting == 'AdditionalOptions'):
- settings_fixed[setting] = ' '.join(value)
- else:
- settings_fixed[setting] = ';'.join(value)
- else:
- settings_fixed[setting] = value
- # Add in this tool.
- tool_list.append(MSVSProject.Tool(tool, settings_fixed))
- return tool_list
-
-
-def _AddConfigurationToMSVS(p, spec, tools, config, config_type, config_name):
- """Add to the project file the configuration specified by config.
-
- Arguments:
- p: The target project being generated.
- spec: the target project dict.
- tools: A dictionary of settings; the tool name is the key.
- config: The dictionary that defines the special processing to be done
- for this configuration.
- config_type: The configuration type, a number as defined by Microsoft.
- config_name: The name of the configuration.
- """
- attributes = _GetMSVSAttributes(spec, config, config_type)
- # Add in this configuration.
- tool_list = _ConvertToolsToExpectedForm(tools)
- p.AddConfig(_ConfigFullName(config_name, config),
- attrs=attributes, tools=tool_list)
-
-
-def _GetMSVSAttributes(spec, config, config_type):
- # Prepare configuration attributes.
- prepared_attrs = {}
- source_attrs = config.get('msvs_configuration_attributes', {})
- for a in source_attrs:
- prepared_attrs[a] = source_attrs[a]
- # Add props files.
- vsprops_dirs = config.get('msvs_props', [])
- vsprops_dirs = _FixPaths(vsprops_dirs)
- if vsprops_dirs:
- prepared_attrs['InheritedPropertySheets'] = ';'.join(vsprops_dirs)
- # Set configuration type.
- prepared_attrs['ConfigurationType'] = config_type
- output_dir = prepared_attrs.get('OutputDirectory',
- '$(SolutionDir)$(ConfigurationName)')
- prepared_attrs['OutputDirectory'] = _FixPath(output_dir) + '\\'
- if 'IntermediateDirectory' not in prepared_attrs:
- intermediate = '$(ConfigurationName)\\obj\\$(ProjectName)'
- prepared_attrs['IntermediateDirectory'] = _FixPath(intermediate) + '\\'
- else:
- intermediate = _FixPath(prepared_attrs['IntermediateDirectory']) + '\\'
- intermediate = MSVSSettings.FixVCMacroSlashes(intermediate)
- prepared_attrs['IntermediateDirectory'] = intermediate
- return prepared_attrs
-
-
-def _AddNormalizedSources(sources_set, sources_array):
- sources_set.update(_NormalizedSource(s) for s in sources_array)
-
-
-def _PrepareListOfSources(spec, generator_flags, gyp_file):
- """Prepare list of sources and excluded sources.
-
- Besides the sources specified directly in the spec, adds the gyp file so
- that a change to it will cause a re-compile. Also adds appropriate sources
- for actions and copies. Assumes later stage will un-exclude files which
- have custom build steps attached.
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- gyp_file: The name of the gyp file.
- Returns:
- A pair of (list of sources, list of excluded sources).
- The sources will be relative to the gyp file.
- """
- sources = OrderedSet()
- _AddNormalizedSources(sources, spec.get('sources', []))
- excluded_sources = OrderedSet()
- # Add in the gyp file.
- if not generator_flags.get('standalone'):
- sources.add(gyp_file)
-
- # Add in 'action' inputs and outputs.
- for a in spec.get('actions', []):
- inputs = a['inputs']
- inputs = [_NormalizedSource(i) for i in inputs]
- # Add all inputs to sources and excluded sources.
- inputs = OrderedSet(inputs)
- sources.update(inputs)
- if not spec.get('msvs_external_builder'):
- excluded_sources.update(inputs)
- if int(a.get('process_outputs_as_sources', False)):
- _AddNormalizedSources(sources, a.get('outputs', []))
- # Add in 'copies' inputs and outputs.
- for cpy in spec.get('copies', []):
- _AddNormalizedSources(sources, cpy.get('files', []))
- return (sources, excluded_sources)
-
-
-def _AdjustSourcesAndConvertToFilterHierarchy(
- spec, options, gyp_dir, sources, excluded_sources, list_excluded, version):
- """Adjusts the list of sources and excluded sources.
-
- Also converts the sets to lists.
-
- Arguments:
- spec: The target dictionary containing the properties of the target.
- options: Global generator options.
- gyp_dir: The path to the gyp file being processed.
- sources: A set of sources to be included for this project.
- excluded_sources: A set of sources to be excluded for this project.
- version: A MSVSVersion object.
- Returns:
- A trio of (list of sources, list of excluded sources,
- path of excluded IDL file)
- """
- # Exclude excluded sources coming into the generator.
- excluded_sources.update(OrderedSet(spec.get('sources_excluded', [])))
- # Add excluded sources into sources for good measure.
- sources.update(excluded_sources)
- # Convert to proper windows form.
- # NOTE: sources goes from being a set to a list here.
- # NOTE: excluded_sources goes from being a set to a list here.
- sources = _FixPaths(sources)
- # Convert to proper windows form.
- excluded_sources = _FixPaths(excluded_sources)
-
- excluded_idl = _IdlFilesHandledNonNatively(spec, sources)
-
- precompiled_related = _GetPrecompileRelatedFiles(spec)
- # Find the excluded ones, minus the precompiled header related ones.
- fully_excluded = [i for i in excluded_sources if i not in precompiled_related]
-
- # Convert to folders and the right slashes.
- sources = [i.split('\\') for i in sources]
- sources = _ConvertSourcesToFilterHierarchy(sources, excluded=fully_excluded,
- list_excluded=list_excluded,
- msvs_version=version)
-
- # Prune filters with a single child to flatten ugly directory structures
- # such as ../../src/modules/module1 etc.
- if version.UsesVcxproj():
- while all([isinstance(s, MSVSProject.Filter) for s in sources]) \
- and len(set([s.name for s in sources])) == 1:
- assert all([len(s.contents) == 1 for s in sources])
- sources = [s.contents[0] for s in sources]
- else:
- while len(sources) == 1 and isinstance(sources[0], MSVSProject.Filter):
- sources = sources[0].contents
-
- return sources, excluded_sources, excluded_idl
-
-
-def _IdlFilesHandledNonNatively(spec, sources):
- # If any non-native rules use 'idl' as an extension exclude idl files.
- # Gather a list here to use later.
- using_idl = False
- for rule in spec.get('rules', []):
- if rule['extension'] == 'idl' and int(rule.get('msvs_external_rule', 0)):
- using_idl = True
- break
- if using_idl:
- excluded_idl = [i for i in sources if i.endswith('.idl')]
- else:
- excluded_idl = []
- return excluded_idl
-
-
-def _GetPrecompileRelatedFiles(spec):
- # Gather a list of precompiled header related sources.
- precompiled_related = []
- for _, config in spec['configurations'].iteritems():
- for k in precomp_keys:
- f = config.get(k)
- if f:
- precompiled_related.append(_FixPath(f))
- return precompiled_related
-
-
-def _ExcludeFilesFromBeingBuilt(p, spec, excluded_sources, excluded_idl,
- list_excluded):
- exclusions = _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl)
- for file_name, excluded_configs in exclusions.iteritems():
- if (not list_excluded and
- len(excluded_configs) == len(spec['configurations'])):
- # If we're not listing excluded files, then they won't appear in the
- # project, so don't try to configure them to be excluded.
- pass
- else:
- for config_name, config in excluded_configs:
- p.AddFileConfig(file_name, _ConfigFullName(config_name, config),
- {'ExcludedFromBuild': 'true'})
-
-
-def _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl):
- exclusions = {}
- # Exclude excluded sources from being built.
- for f in excluded_sources:
- excluded_configs = []
- for config_name, config in spec['configurations'].iteritems():
- precomped = [_FixPath(config.get(i, '')) for i in precomp_keys]
- # Don't do this for ones that are precompiled header related.
- if f not in precomped:
- excluded_configs.append((config_name, config))
- exclusions[f] = excluded_configs
- # If any non-native rules use 'idl' as an extension exclude idl files.
- # Exclude them now.
- for f in excluded_idl:
- excluded_configs = []
- for config_name, config in spec['configurations'].iteritems():
- excluded_configs.append((config_name, config))
- exclusions[f] = excluded_configs
- return exclusions
-
-
-def _AddToolFilesToMSVS(p, spec):
- # Add in tool files (rules).
- tool_files = OrderedSet()
- for _, config in spec['configurations'].iteritems():
- for f in config.get('msvs_tool_files', []):
- tool_files.add(f)
- for f in tool_files:
- p.AddToolFile(f)
-
-
-def _HandlePreCompiledHeaders(p, sources, spec):
- # Pre-compiled header source stubs need a different compiler flag
- # (generate precompiled header) and any source file not of the same
- # kind (i.e. C vs. C++) as the precompiled header source stub needs
- # to have use of precompiled headers disabled.
- extensions_excluded_from_precompile = []
- for config_name, config in spec['configurations'].iteritems():
- source = config.get('msvs_precompiled_source')
- if source:
- source = _FixPath(source)
- # UsePrecompiledHeader=1 for if using precompiled headers.
- tool = MSVSProject.Tool('VCCLCompilerTool',
- {'UsePrecompiledHeader': '1'})
- p.AddFileConfig(source, _ConfigFullName(config_name, config),
- {}, tools=[tool])
- basename, extension = os.path.splitext(source)
- if extension == '.c':
- extensions_excluded_from_precompile = ['.cc', '.cpp', '.cxx']
- else:
- extensions_excluded_from_precompile = ['.c']
- def DisableForSourceTree(source_tree):
- for source in source_tree:
- if isinstance(source, MSVSProject.Filter):
- DisableForSourceTree(source.contents)
- else:
- basename, extension = os.path.splitext(source)
- if extension in extensions_excluded_from_precompile:
- for config_name, config in spec['configurations'].iteritems():
- tool = MSVSProject.Tool('VCCLCompilerTool',
- {'UsePrecompiledHeader': '0',
- 'ForcedIncludeFiles': '$(NOINHERIT)'})
- p.AddFileConfig(_FixPath(source),
- _ConfigFullName(config_name, config),
- {}, tools=[tool])
- # Do nothing if there was no precompiled source.
- if extensions_excluded_from_precompile:
- DisableForSourceTree(sources)
-
-
-def _AddActions(actions_to_add, spec, relative_path_of_gyp_file):
- # Add actions.
- actions = spec.get('actions', [])
- # Don't setup_env every time. When all the actions are run together in one
- # batch file in VS, the PATH will grow too long.
- # Membership in this set means that the cygwin environment has been set up,
- # and does not need to be set up again.
- have_setup_env = set()
- for a in actions:
- # Attach actions to the gyp file if nothing else is there.
- inputs = a.get('inputs') or [relative_path_of_gyp_file]
- attached_to = inputs[0]
- need_setup_env = attached_to not in have_setup_env
- cmd = _BuildCommandLineForRule(spec, a, has_input_path=False,
- do_setup_env=need_setup_env)
- have_setup_env.add(attached_to)
- # Add the action.
- _AddActionStep(actions_to_add,
- inputs=inputs,
- outputs=a.get('outputs', []),
- description=a.get('message', a['action_name']),
- command=cmd)
-
-
-def _WriteMSVSUserFile(project_path, version, spec):
- # Add run_as and test targets.
- if 'run_as' in spec:
- run_as = spec['run_as']
- action = run_as.get('action', [])
- environment = run_as.get('environment', [])
- working_directory = run_as.get('working_directory', '.')
- elif int(spec.get('test', 0)):
- action = ['$(TargetPath)', '--gtest_print_time']
- environment = []
- working_directory = '.'
- else:
- return # Nothing to add
- # Write out the user file.
- user_file = _CreateMSVSUserFile(project_path, version, spec)
- for config_name, c_data in spec['configurations'].iteritems():
- user_file.AddDebugSettings(_ConfigFullName(config_name, c_data),
- action, environment, working_directory)
- user_file.WriteIfChanged()
-
-
-def _AddCopies(actions_to_add, spec):
- copies = _GetCopies(spec)
- for inputs, outputs, cmd, description in copies:
- _AddActionStep(actions_to_add, inputs=inputs, outputs=outputs,
- description=description, command=cmd)
-
-
-def _GetCopies(spec):
- copies = []
- # Add copies.
- for cpy in spec.get('copies', []):
- for src in cpy.get('files', []):
- dst = os.path.join(cpy['destination'], os.path.basename(src))
- # _AddCustomBuildToolForMSVS() will call _FixPath() on the inputs and
- # outputs, so do the same for our generated command line.
- if src.endswith('/'):
- src_bare = src[:-1]
- base_dir = posixpath.split(src_bare)[0]
- outer_dir = posixpath.split(src_bare)[1]
- cmd = 'cd "%s" && xcopy /e /f /y "%s" "%s\\%s\\"' % (
- _FixPath(base_dir), outer_dir, _FixPath(dst), outer_dir)
- copies.append(([src], ['dummy_copies', dst], cmd,
- 'Copying %s to %s' % (src, dst)))
- else:
- cmd = 'mkdir "%s" 2>nul & set ERRORLEVEL=0 & copy /Y "%s" "%s"' % (
- _FixPath(cpy['destination']), _FixPath(src), _FixPath(dst))
- copies.append(([src], [dst], cmd, 'Copying %s to %s' % (src, dst)))
- return copies
-
-
-def _GetPathDict(root, path):
- # |path| will eventually be empty (in the recursive calls) if it was initially
- # relative; otherwise it will eventually end up as '\', 'D:\', etc.
- if not path or path.endswith(os.sep):
- return root
- parent, folder = os.path.split(path)
- parent_dict = _GetPathDict(root, parent)
- if folder not in parent_dict:
- parent_dict[folder] = dict()
- return parent_dict[folder]
-
-
-def _DictsToFolders(base_path, bucket, flat):
- # Convert to folders recursively.
- children = []
- for folder, contents in bucket.iteritems():
- if type(contents) == dict:
- folder_children = _DictsToFolders(os.path.join(base_path, folder),
- contents, flat)
- if flat:
- children += folder_children
- else:
- folder_children = MSVSNew.MSVSFolder(os.path.join(base_path, folder),
- name='(' + folder + ')',
- entries=folder_children)
- children.append(folder_children)
- else:
- children.append(contents)
- return children
-
-
-def _CollapseSingles(parent, node):
- # Recursively explorer the tree of dicts looking for projects which are
- # the sole item in a folder which has the same name as the project. Bring
- # such projects up one level.
- if (type(node) == dict and
- len(node) == 1 and
- node.keys()[0] == parent + '.vcproj'):
- return node[node.keys()[0]]
- if type(node) != dict:
- return node
- for child in node:
- node[child] = _CollapseSingles(child, node[child])
- return node
-
-
-def _GatherSolutionFolders(sln_projects, project_objects, flat):
- root = {}
- # Convert into a tree of dicts on path.
- for p in sln_projects:
- gyp_file, target = gyp.common.ParseQualifiedTarget(p)[0:2]
- gyp_dir = os.path.dirname(gyp_file)
- path_dict = _GetPathDict(root, gyp_dir)
- path_dict[target + '.vcproj'] = project_objects[p]
- # Walk down from the top until we hit a folder that has more than one entry.
- # In practice, this strips the top-level "src/" dir from the hierarchy in
- # the solution.
- while len(root) == 1 and type(root[root.keys()[0]]) == dict:
- root = root[root.keys()[0]]
- # Collapse singles.
- root = _CollapseSingles('', root)
- # Merge buckets until everything is a root entry.
- return _DictsToFolders('', root, flat)
-
-
-def _GetPathOfProject(qualified_target, spec, options, msvs_version):
- default_config = _GetDefaultConfiguration(spec)
- proj_filename = default_config.get('msvs_existing_vcproj')
- if not proj_filename:
- proj_filename = (spec['target_name'] + options.suffix +
- msvs_version.ProjectExtension())
-
- build_file = gyp.common.BuildFile(qualified_target)
- proj_path = os.path.join(os.path.dirname(build_file), proj_filename)
- fix_prefix = None
- if options.generator_output:
- project_dir_path = os.path.dirname(os.path.abspath(proj_path))
- proj_path = os.path.join(options.generator_output, proj_path)
- fix_prefix = gyp.common.RelativePath(project_dir_path,
- os.path.dirname(proj_path))
- return proj_path, fix_prefix
-
-
-def _GetPlatformOverridesOfProject(spec):
- # Prepare a dict indicating which project configurations are used for which
- # solution configurations for this target.
- config_platform_overrides = {}
- for config_name, c in spec['configurations'].iteritems():
- config_fullname = _ConfigFullName(config_name, c)
- platform = c.get('msvs_target_platform', _ConfigPlatform(c))
- fixed_config_fullname = '%s|%s' % (
- _ConfigBaseName(config_name, _ConfigPlatform(c)), platform)
- config_platform_overrides[config_fullname] = fixed_config_fullname
- return config_platform_overrides
-
-
-def _CreateProjectObjects(target_list, target_dicts, options, msvs_version):
- """Create a MSVSProject object for the targets found in target list.
-
- Arguments:
- target_list: the list of targets to generate project objects for.
- target_dicts: the dictionary of specifications.
- options: global generator options.
- msvs_version: the MSVSVersion object.
- Returns:
- A set of created projects, keyed by target.
- """
- global fixpath_prefix
- # Generate each project.
- projects = {}
- for qualified_target in target_list:
- spec = target_dicts[qualified_target]
- if spec['toolset'] != 'target':
- raise GypError(
- 'Multiple toolsets not supported in msvs build (target %s)' %
- qualified_target)
- proj_path, fixpath_prefix = _GetPathOfProject(qualified_target, spec,
- options, msvs_version)
- guid = _GetGuidOfProject(proj_path, spec)
- overrides = _GetPlatformOverridesOfProject(spec)
- build_file = gyp.common.BuildFile(qualified_target)
- # Create object for this project.
- obj = MSVSNew.MSVSProject(
- proj_path,
- name=spec['target_name'],
- guid=guid,
- spec=spec,
- build_file=build_file,
- config_platform_overrides=overrides,
- fixpath_prefix=fixpath_prefix)
- # Set project toolset if any (MS build only)
- if msvs_version.UsesVcxproj():
- obj.set_msbuild_toolset(
- _GetMsbuildToolsetOfProject(proj_path, spec, msvs_version))
- projects[qualified_target] = obj
- # Set all the dependencies, but not if we are using an external builder like
- # ninja
- for project in projects.values():
- if not project.spec.get('msvs_external_builder'):
- deps = project.spec.get('dependencies', [])
- deps = [projects[d] for d in deps]
- project.set_dependencies(deps)
- return projects
-
-
-def _InitNinjaFlavor(params, target_list, target_dicts):
- """Initialize targets for the ninja flavor.
-
- This sets up the necessary variables in the targets to generate msvs projects
- that use ninja as an external builder. The variables in the spec are only set
- if they have not been set. This allows individual specs to override the
- default values initialized here.
- Arguments:
- params: Params provided to the generator.
- target_list: List of target pairs: 'base/base.gyp:base'.
- target_dicts: Dict of target properties keyed on target pair.
- """
- for qualified_target in target_list:
- spec = target_dicts[qualified_target]
- if spec.get('msvs_external_builder'):
- # The spec explicitly defined an external builder, so don't change it.
- continue
-
- path_to_ninja = spec.get('msvs_path_to_ninja', 'ninja.exe')
-
- spec['msvs_external_builder'] = 'ninja'
- if not spec.get('msvs_external_builder_out_dir'):
- gyp_file, _, _ = gyp.common.ParseQualifiedTarget(qualified_target)
- gyp_dir = os.path.dirname(gyp_file)
- configuration = '$(Configuration)'
- if params.get('target_arch') == 'x64':
- configuration += '_x64'
- spec['msvs_external_builder_out_dir'] = os.path.join(
- gyp.common.RelativePath(params['options'].toplevel_dir, gyp_dir),
- ninja_generator.ComputeOutputDir(params),
- configuration)
- if not spec.get('msvs_external_builder_build_cmd'):
- spec['msvs_external_builder_build_cmd'] = [
- path_to_ninja,
- '-C',
- '$(OutDir)',
- '$(ProjectName)',
- ]
- if not spec.get('msvs_external_builder_clean_cmd'):
- spec['msvs_external_builder_clean_cmd'] = [
- path_to_ninja,
- '-C',
- '$(OutDir)',
- '-tclean',
- '$(ProjectName)',
- ]
-
-
-def CalculateVariables(default_variables, params):
- """Generated variables that require params to be known."""
-
- generator_flags = params.get('generator_flags', {})
-
- # Select project file format version (if unset, default to auto detecting).
- msvs_version = MSVSVersion.SelectVisualStudioVersion(
- generator_flags.get('msvs_version', 'auto'))
- # Stash msvs_version for later (so we don't have to probe the system twice).
- params['msvs_version'] = msvs_version
-
- # Set a variable so conditions can be based on msvs_version.
- default_variables['MSVS_VERSION'] = msvs_version.ShortName()
-
- # To determine processor word size on Windows, in addition to checking
- # PROCESSOR_ARCHITECTURE (which reflects the word size of the current
- # process), it is also necessary to check PROCESSOR_ARCITEW6432 (which
- # contains the actual word size of the system when running thru WOW64).
- if (os.environ.get('PROCESSOR_ARCHITECTURE', '').find('64') >= 0 or
- os.environ.get('PROCESSOR_ARCHITEW6432', '').find('64') >= 0):
- default_variables['MSVS_OS_BITS'] = 64
- else:
- default_variables['MSVS_OS_BITS'] = 32
-
- if gyp.common.GetFlavor(params) == 'ninja':
- default_variables['SHARED_INTERMEDIATE_DIR'] = '$(OutDir)gen'
-
-
-def PerformBuild(data, configurations, params):
- options = params['options']
- msvs_version = params['msvs_version']
- devenv = os.path.join(msvs_version.path, 'Common7', 'IDE', 'devenv.com')
-
- for build_file, build_file_dict in data.iteritems():
- (build_file_root, build_file_ext) = os.path.splitext(build_file)
- if build_file_ext != '.gyp':
- continue
- sln_path = build_file_root + options.suffix + '.sln'
- if options.generator_output:
- sln_path = os.path.join(options.generator_output, sln_path)
-
- for config in configurations:
- arguments = [devenv, sln_path, '/Build', config]
- print 'Building [%s]: %s' % (config, arguments)
- rtn = subprocess.check_call(arguments)
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- """Generate .sln and .vcproj files.
-
- This is the entry point for this generator.
- Arguments:
- target_list: List of target pairs: 'base/base.gyp:base'.
- target_dicts: Dict of target properties keyed on target pair.
- data: Dictionary containing per .gyp data.
- """
- global fixpath_prefix
-
- options = params['options']
-
- # Get the project file format version back out of where we stashed it in
- # GeneratorCalculatedVariables.
- msvs_version = params['msvs_version']
-
- generator_flags = params.get('generator_flags', {})
-
- # Optionally shard targets marked with 'msvs_shard': SHARD_COUNT.
- (target_list, target_dicts) = MSVSUtil.ShardTargets(target_list, target_dicts)
-
- # Optionally use the large PDB workaround for targets marked with
- # 'msvs_large_pdb': 1.
- (target_list, target_dicts) = MSVSUtil.InsertLargePdbShims(
- target_list, target_dicts, generator_default_variables)
-
- # Optionally configure each spec to use ninja as the external builder.
- if params.get('flavor') == 'ninja':
- _InitNinjaFlavor(params, target_list, target_dicts)
-
- # Prepare the set of configurations.
- configs = set()
- for qualified_target in target_list:
- spec = target_dicts[qualified_target]
- for config_name, config in spec['configurations'].iteritems():
- configs.add(_ConfigFullName(config_name, config))
- configs = list(configs)
-
- # Figure out all the projects that will be generated and their guids
- project_objects = _CreateProjectObjects(target_list, target_dicts, options,
- msvs_version)
-
- # Generate each project.
- missing_sources = []
- for project in project_objects.values():
- fixpath_prefix = project.fixpath_prefix
- missing_sources.extend(_GenerateProject(project, options, msvs_version,
- generator_flags))
- fixpath_prefix = None
-
- for build_file in data:
- # Validate build_file extension
- if not build_file.endswith('.gyp'):
- continue
- sln_path = os.path.splitext(build_file)[0] + options.suffix + '.sln'
- if options.generator_output:
- sln_path = os.path.join(options.generator_output, sln_path)
- # Get projects in the solution, and their dependents.
- sln_projects = gyp.common.BuildFileTargets(target_list, build_file)
- sln_projects += gyp.common.DeepDependencyTargets(target_dicts, sln_projects)
- # Create folder hierarchy.
- root_entries = _GatherSolutionFolders(
- sln_projects, project_objects, flat=msvs_version.FlatSolution())
- # Create solution.
- sln = MSVSNew.MSVSSolution(sln_path,
- entries=root_entries,
- variants=configs,
- websiteProperties=False,
- version=msvs_version)
- sln.Write()
-
- if missing_sources:
- error_message = "Missing input files:\n" + \
- '\n'.join(set(missing_sources))
- if generator_flags.get('msvs_error_on_missing_sources', False):
- raise GypError(error_message)
- else:
- print >> sys.stdout, "Warning: " + error_message
-
-
-def _GenerateMSBuildFiltersFile(filters_path, source_files,
- rule_dependencies, extension_to_rule_name):
- """Generate the filters file.
-
- This file is used by Visual Studio to organize the presentation of source
- files into folders.
-
- Arguments:
- filters_path: The path of the file to be created.
- source_files: The hierarchical structure of all the sources.
- extension_to_rule_name: A dictionary mapping file extensions to rules.
- """
- filter_group = []
- source_group = []
- _AppendFiltersForMSBuild('', source_files, rule_dependencies,
- extension_to_rule_name, filter_group, source_group)
- if filter_group:
- content = ['Project',
- {'ToolsVersion': '4.0',
- 'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003'
- },
- ['ItemGroup'] + filter_group,
- ['ItemGroup'] + source_group
- ]
- easy_xml.WriteXmlIfChanged(content, filters_path, pretty=True, win32=True)
- elif os.path.exists(filters_path):
- # We don't need this filter anymore. Delete the old filter file.
- os.unlink(filters_path)
-
-
-def _AppendFiltersForMSBuild(parent_filter_name, sources, rule_dependencies,
- extension_to_rule_name,
- filter_group, source_group):
- """Creates the list of filters and sources to be added in the filter file.
-
- Args:
- parent_filter_name: The name of the filter under which the sources are
- found.
- sources: The hierarchy of filters and sources to process.
- extension_to_rule_name: A dictionary mapping file extensions to rules.
- filter_group: The list to which filter entries will be appended.
- source_group: The list to which source entries will be appeneded.
- """
- for source in sources:
- if isinstance(source, MSVSProject.Filter):
- # We have a sub-filter. Create the name of that sub-filter.
- if not parent_filter_name:
- filter_name = source.name
- else:
- filter_name = '%s\\%s' % (parent_filter_name, source.name)
- # Add the filter to the group.
- filter_group.append(
- ['Filter', {'Include': filter_name},
- ['UniqueIdentifier', MSVSNew.MakeGuid(source.name)]])
- # Recurse and add its dependents.
- _AppendFiltersForMSBuild(filter_name, source.contents,
- rule_dependencies, extension_to_rule_name,
- filter_group, source_group)
- else:
- # It's a source. Create a source entry.
- _, element = _MapFileToMsBuildSourceType(source, rule_dependencies,
- extension_to_rule_name)
- source_entry = [element, {'Include': source}]
- # Specify the filter it is part of, if any.
- if parent_filter_name:
- source_entry.append(['Filter', parent_filter_name])
- source_group.append(source_entry)
-
-
-def _MapFileToMsBuildSourceType(source, rule_dependencies,
- extension_to_rule_name):
- """Returns the group and element type of the source file.
-
- Arguments:
- source: The source file name.
- extension_to_rule_name: A dictionary mapping file extensions to rules.
-
- Returns:
- A pair of (group this file should be part of, the label of element)
- """
- _, ext = os.path.splitext(source)
- if ext in extension_to_rule_name:
- group = 'rule'
- element = extension_to_rule_name[ext]
- elif ext in ['.cc', '.cpp', '.c', '.cxx', '.mm']:
- group = 'compile'
- element = 'ClCompile'
- elif ext in ['.h', '.hxx']:
- group = 'include'
- element = 'ClInclude'
- elif ext == '.rc':
- group = 'resource'
- element = 'ResourceCompile'
- elif ext == '.asm':
- group = 'masm'
- element = 'MASM'
- elif ext == '.idl':
- group = 'midl'
- element = 'Midl'
- elif source in rule_dependencies:
- group = 'rule_dependency'
- element = 'CustomBuild'
- else:
- group = 'none'
- element = 'None'
- return (group, element)
-
-
-def _GenerateRulesForMSBuild(output_dir, options, spec,
- sources, excluded_sources,
- props_files_of_rules, targets_files_of_rules,
- actions_to_add, rule_dependencies,
- extension_to_rule_name):
- # MSBuild rules are implemented using three files: an XML file, a .targets
- # file and a .props file.
- # See http://blogs.msdn.com/b/vcblog/archive/2010/04/21/quick-help-on-vs2010-custom-build-rule.aspx
- # for more details.
- rules = spec.get('rules', [])
- rules_native = [r for r in rules if not int(r.get('msvs_external_rule', 0))]
- rules_external = [r for r in rules if int(r.get('msvs_external_rule', 0))]
-
- msbuild_rules = []
- for rule in rules_native:
- # Skip a rule with no action and no inputs.
- if 'action' not in rule and not rule.get('rule_sources', []):
- continue
- msbuild_rule = MSBuildRule(rule, spec)
- msbuild_rules.append(msbuild_rule)
- rule_dependencies.update(msbuild_rule.additional_dependencies.split(';'))
- extension_to_rule_name[msbuild_rule.extension] = msbuild_rule.rule_name
- if msbuild_rules:
- base = spec['target_name'] + options.suffix
- props_name = base + '.props'
- targets_name = base + '.targets'
- xml_name = base + '.xml'
-
- props_files_of_rules.add(props_name)
- targets_files_of_rules.add(targets_name)
-
- props_path = os.path.join(output_dir, props_name)
- targets_path = os.path.join(output_dir, targets_name)
- xml_path = os.path.join(output_dir, xml_name)
-
- _GenerateMSBuildRulePropsFile(props_path, msbuild_rules)
- _GenerateMSBuildRuleTargetsFile(targets_path, msbuild_rules)
- _GenerateMSBuildRuleXmlFile(xml_path, msbuild_rules)
-
- if rules_external:
- _GenerateExternalRules(rules_external, output_dir, spec,
- sources, options, actions_to_add)
- _AdjustSourcesForRules(rules, sources, excluded_sources, True)
-
-
-class MSBuildRule(object):
- """Used to store information used to generate an MSBuild rule.
-
- Attributes:
- rule_name: The rule name, sanitized to use in XML.
- target_name: The name of the target.
- after_targets: The name of the AfterTargets element.
- before_targets: The name of the BeforeTargets element.
- depends_on: The name of the DependsOn element.
- compute_output: The name of the ComputeOutput element.
- dirs_to_make: The name of the DirsToMake element.
- inputs: The name of the _inputs element.
- tlog: The name of the _tlog element.
- extension: The extension this rule applies to.
- description: The message displayed when this rule is invoked.
- additional_dependencies: A string listing additional dependencies.
- outputs: The outputs of this rule.
- command: The command used to run the rule.
- """
-
- def __init__(self, rule, spec):
- self.display_name = rule['rule_name']
- # Assure that the rule name is only characters and numbers
- self.rule_name = re.sub(r'\W', '_', self.display_name)
- # Create the various element names, following the example set by the
- # Visual Studio 2008 to 2010 conversion. I don't know if VS2010
- # is sensitive to the exact names.
- self.target_name = '_' + self.rule_name
- self.after_targets = self.rule_name + 'AfterTargets'
- self.before_targets = self.rule_name + 'BeforeTargets'
- self.depends_on = self.rule_name + 'DependsOn'
- self.compute_output = 'Compute%sOutput' % self.rule_name
- self.dirs_to_make = self.rule_name + 'DirsToMake'
- self.inputs = self.rule_name + '_inputs'
- self.tlog = self.rule_name + '_tlog'
- self.extension = rule['extension']
- if not self.extension.startswith('.'):
- self.extension = '.' + self.extension
-
- self.description = MSVSSettings.ConvertVCMacrosToMSBuild(
- rule.get('message', self.rule_name))
- old_additional_dependencies = _FixPaths(rule.get('inputs', []))
- self.additional_dependencies = (
- ';'.join([MSVSSettings.ConvertVCMacrosToMSBuild(i)
- for i in old_additional_dependencies]))
- old_outputs = _FixPaths(rule.get('outputs', []))
- self.outputs = ';'.join([MSVSSettings.ConvertVCMacrosToMSBuild(i)
- for i in old_outputs])
- old_command = _BuildCommandLineForRule(spec, rule, has_input_path=True,
- do_setup_env=True)
- self.command = MSVSSettings.ConvertVCMacrosToMSBuild(old_command)
-
-
-def _GenerateMSBuildRulePropsFile(props_path, msbuild_rules):
- """Generate the .props file."""
- content = ['Project',
- {'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003'}]
- for rule in msbuild_rules:
- content.extend([
- ['PropertyGroup',
- {'Condition': "'$(%s)' == '' and '$(%s)' == '' and "
- "'$(ConfigurationType)' != 'Makefile'" % (rule.before_targets,
- rule.after_targets)
- },
- [rule.before_targets, 'Midl'],
- [rule.after_targets, 'CustomBuild'],
- ],
- ['PropertyGroup',
- [rule.depends_on,
- {'Condition': "'$(ConfigurationType)' != 'Makefile'"},
- '_SelectedFiles;$(%s)' % rule.depends_on
- ],
- ],
- ['ItemDefinitionGroup',
- [rule.rule_name,
- ['CommandLineTemplate', rule.command],
- ['Outputs', rule.outputs],
- ['ExecutionDescription', rule.description],
- ['AdditionalDependencies', rule.additional_dependencies],
- ],
- ]
- ])
- easy_xml.WriteXmlIfChanged(content, props_path, pretty=True, win32=True)
-
-
-def _GenerateMSBuildRuleTargetsFile(targets_path, msbuild_rules):
- """Generate the .targets file."""
- content = ['Project',
- {'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003'
- }
- ]
- item_group = [
- 'ItemGroup',
- ['PropertyPageSchema',
- {'Include': '$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml'}
- ]
- ]
- for rule in msbuild_rules:
- item_group.append(
- ['AvailableItemName',
- {'Include': rule.rule_name},
- ['Targets', rule.target_name],
- ])
- content.append(item_group)
-
- for rule in msbuild_rules:
- content.append(
- ['UsingTask',
- {'TaskName': rule.rule_name,
- 'TaskFactory': 'XamlTaskFactory',
- 'AssemblyName': 'Microsoft.Build.Tasks.v4.0'
- },
- ['Task', '$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml'],
- ])
- for rule in msbuild_rules:
- rule_name = rule.rule_name
- target_outputs = '%%(%s.Outputs)' % rule_name
- target_inputs = ('%%(%s.Identity);%%(%s.AdditionalDependencies);'
- '$(MSBuildProjectFile)') % (rule_name, rule_name)
- rule_inputs = '%%(%s.Identity)' % rule_name
- extension_condition = ("'%(Extension)'=='.obj' or "
- "'%(Extension)'=='.res' or "
- "'%(Extension)'=='.rsc' or "
- "'%(Extension)'=='.lib'")
- remove_section = [
- 'ItemGroup',
- {'Condition': "'@(SelectedFiles)' != ''"},
- [rule_name,
- {'Remove': '@(%s)' % rule_name,
- 'Condition': "'%(Identity)' != '@(SelectedFiles)'"
- }
- ]
- ]
- inputs_section = [
- 'ItemGroup',
- [rule.inputs, {'Include': '%%(%s.AdditionalDependencies)' % rule_name}]
- ]
- logging_section = [
- 'ItemGroup',
- [rule.tlog,
- {'Include': '%%(%s.Outputs)' % rule_name,
- 'Condition': ("'%%(%s.Outputs)' != '' and "
- "'%%(%s.ExcludedFromBuild)' != 'true'" %
- (rule_name, rule_name))
- },
- ['Source', "@(%s, '|')" % rule_name],
- ['Inputs', "@(%s -> '%%(Fullpath)', ';')" % rule.inputs],
- ],
- ]
- message_section = [
- 'Message',
- {'Importance': 'High',
- 'Text': '%%(%s.ExecutionDescription)' % rule_name
- }
- ]
- write_tlog_section = [
- 'WriteLinesToFile',
- {'Condition': "'@(%s)' != '' and '%%(%s.ExcludedFromBuild)' != "
- "'true'" % (rule.tlog, rule.tlog),
- 'File': '$(IntDir)$(ProjectName).write.1.tlog',
- 'Lines': "^%%(%s.Source);@(%s->'%%(Fullpath)')" % (rule.tlog,
- rule.tlog)
- }
- ]
- read_tlog_section = [
- 'WriteLinesToFile',
- {'Condition': "'@(%s)' != '' and '%%(%s.ExcludedFromBuild)' != "
- "'true'" % (rule.tlog, rule.tlog),
- 'File': '$(IntDir)$(ProjectName).read.1.tlog',
- 'Lines': "^%%(%s.Source);%%(%s.Inputs)" % (rule.tlog, rule.tlog)
- }
- ]
- command_and_input_section = [
- rule_name,
- {'Condition': "'@(%s)' != '' and '%%(%s.ExcludedFromBuild)' != "
- "'true'" % (rule_name, rule_name),
- 'EchoOff': 'true',
- 'StandardOutputImportance': 'High',
- 'StandardErrorImportance': 'High',
- 'CommandLineTemplate': '%%(%s.CommandLineTemplate)' % rule_name,
- 'AdditionalOptions': '%%(%s.AdditionalOptions)' % rule_name,
- 'Inputs': rule_inputs
- }
- ]
- content.extend([
- ['Target',
- {'Name': rule.target_name,
- 'BeforeTargets': '$(%s)' % rule.before_targets,
- 'AfterTargets': '$(%s)' % rule.after_targets,
- 'Condition': "'@(%s)' != ''" % rule_name,
- 'DependsOnTargets': '$(%s);%s' % (rule.depends_on,
- rule.compute_output),
- 'Outputs': target_outputs,
- 'Inputs': target_inputs
- },
- remove_section,
- inputs_section,
- logging_section,
- message_section,
- write_tlog_section,
- read_tlog_section,
- command_and_input_section,
- ],
- ['PropertyGroup',
- ['ComputeLinkInputsTargets',
- '$(ComputeLinkInputsTargets);',
- '%s;' % rule.compute_output
- ],
- ['ComputeLibInputsTargets',
- '$(ComputeLibInputsTargets);',
- '%s;' % rule.compute_output
- ],
- ],
- ['Target',
- {'Name': rule.compute_output,
- 'Condition': "'@(%s)' != ''" % rule_name
- },
- ['ItemGroup',
- [rule.dirs_to_make,
- {'Condition': "'@(%s)' != '' and "
- "'%%(%s.ExcludedFromBuild)' != 'true'" % (rule_name, rule_name),
- 'Include': '%%(%s.Outputs)' % rule_name
- }
- ],
- ['Link',
- {'Include': '%%(%s.Identity)' % rule.dirs_to_make,
- 'Condition': extension_condition
- }
- ],
- ['Lib',
- {'Include': '%%(%s.Identity)' % rule.dirs_to_make,
- 'Condition': extension_condition
- }
- ],
- ['ImpLib',
- {'Include': '%%(%s.Identity)' % rule.dirs_to_make,
- 'Condition': extension_condition
- }
- ],
- ],
- ['MakeDir',
- {'Directories': ("@(%s->'%%(RootDir)%%(Directory)')" %
- rule.dirs_to_make)
- }
- ]
- ],
- ])
- easy_xml.WriteXmlIfChanged(content, targets_path, pretty=True, win32=True)
-
-
-def _GenerateMSBuildRuleXmlFile(xml_path, msbuild_rules):
- # Generate the .xml file
- content = [
- 'ProjectSchemaDefinitions',
- {'xmlns': ('clr-namespace:Microsoft.Build.Framework.XamlTypes;'
- 'assembly=Microsoft.Build.Framework'),
- 'xmlns:x': 'http://schemas.microsoft.com/winfx/2006/xaml',
- 'xmlns:sys': 'clr-namespace:System;assembly=mscorlib',
- 'xmlns:transformCallback':
- 'Microsoft.Cpp.Dev10.ConvertPropertyCallback'
- }
- ]
- for rule in msbuild_rules:
- content.extend([
- ['Rule',
- {'Name': rule.rule_name,
- 'PageTemplate': 'tool',
- 'DisplayName': rule.display_name,
- 'Order': '200'
- },
- ['Rule.DataSource',
- ['DataSource',
- {'Persistence': 'ProjectFile',
- 'ItemType': rule.rule_name
- }
- ]
- ],
- ['Rule.Categories',
- ['Category',
- {'Name': 'General'},
- ['Category.DisplayName',
- ['sys:String', 'General'],
- ],
- ],
- ['Category',
- {'Name': 'Command Line',
- 'Subtype': 'CommandLine'
- },
- ['Category.DisplayName',
- ['sys:String', 'Command Line'],
- ],
- ],
- ],
- ['StringListProperty',
- {'Name': 'Inputs',
- 'Category': 'Command Line',
- 'IsRequired': 'true',
- 'Switch': ' '
- },
- ['StringListProperty.DataSource',
- ['DataSource',
- {'Persistence': 'ProjectFile',
- 'ItemType': rule.rule_name,
- 'SourceType': 'Item'
- }
- ]
- ],
- ],
- ['StringProperty',
- {'Name': 'CommandLineTemplate',
- 'DisplayName': 'Command Line',
- 'Visible': 'False',
- 'IncludeInCommandLine': 'False'
- }
- ],
- ['DynamicEnumProperty',
- {'Name': rule.before_targets,
- 'Category': 'General',
- 'EnumProvider': 'Targets',
- 'IncludeInCommandLine': 'False'
- },
- ['DynamicEnumProperty.DisplayName',
- ['sys:String', 'Execute Before'],
- ],
- ['DynamicEnumProperty.Description',
- ['sys:String', 'Specifies the targets for the build customization'
- ' to run before.'
- ],
- ],
- ['DynamicEnumProperty.ProviderSettings',
- ['NameValuePair',
- {'Name': 'Exclude',
- 'Value': '^%s|^Compute' % rule.before_targets
- }
- ]
- ],
- ['DynamicEnumProperty.DataSource',
- ['DataSource',
- {'Persistence': 'ProjectFile',
- 'HasConfigurationCondition': 'true'
- }
- ]
- ],
- ],
- ['DynamicEnumProperty',
- {'Name': rule.after_targets,
- 'Category': 'General',
- 'EnumProvider': 'Targets',
- 'IncludeInCommandLine': 'False'
- },
- ['DynamicEnumProperty.DisplayName',
- ['sys:String', 'Execute After'],
- ],
- ['DynamicEnumProperty.Description',
- ['sys:String', ('Specifies the targets for the build customization'
- ' to run after.')
- ],
- ],
- ['DynamicEnumProperty.ProviderSettings',
- ['NameValuePair',
- {'Name': 'Exclude',
- 'Value': '^%s|^Compute' % rule.after_targets
- }
- ]
- ],
- ['DynamicEnumProperty.DataSource',
- ['DataSource',
- {'Persistence': 'ProjectFile',
- 'ItemType': '',
- 'HasConfigurationCondition': 'true'
- }
- ]
- ],
- ],
- ['StringListProperty',
- {'Name': 'Outputs',
- 'DisplayName': 'Outputs',
- 'Visible': 'False',
- 'IncludeInCommandLine': 'False'
- }
- ],
- ['StringProperty',
- {'Name': 'ExecutionDescription',
- 'DisplayName': 'Execution Description',
- 'Visible': 'False',
- 'IncludeInCommandLine': 'False'
- }
- ],
- ['StringListProperty',
- {'Name': 'AdditionalDependencies',
- 'DisplayName': 'Additional Dependencies',
- 'IncludeInCommandLine': 'False',
- 'Visible': 'false'
- }
- ],
- ['StringProperty',
- {'Subtype': 'AdditionalOptions',
- 'Name': 'AdditionalOptions',
- 'Category': 'Command Line'
- },
- ['StringProperty.DisplayName',
- ['sys:String', 'Additional Options'],
- ],
- ['StringProperty.Description',
- ['sys:String', 'Additional Options'],
- ],
- ],
- ],
- ['ItemType',
- {'Name': rule.rule_name,
- 'DisplayName': rule.display_name
- }
- ],
- ['FileExtension',
- {'Name': '*' + rule.extension,
- 'ContentType': rule.rule_name
- }
- ],
- ['ContentType',
- {'Name': rule.rule_name,
- 'DisplayName': '',
- 'ItemType': rule.rule_name
- }
- ]
- ])
- easy_xml.WriteXmlIfChanged(content, xml_path, pretty=True, win32=True)
-
-
-def _GetConfigurationAndPlatform(name, settings):
- configuration = name.rsplit('_', 1)[0]
- platform = settings.get('msvs_configuration_platform', 'Win32')
- return (configuration, platform)
-
-
-def _GetConfigurationCondition(name, settings):
- return (r"'$(Configuration)|$(Platform)'=='%s|%s'" %
- _GetConfigurationAndPlatform(name, settings))
-
-
-def _GetMSBuildProjectConfigurations(configurations):
- group = ['ItemGroup', {'Label': 'ProjectConfigurations'}]
- for (name, settings) in sorted(configurations.iteritems()):
- configuration, platform = _GetConfigurationAndPlatform(name, settings)
- designation = '%s|%s' % (configuration, platform)
- group.append(
- ['ProjectConfiguration', {'Include': designation},
- ['Configuration', configuration],
- ['Platform', platform]])
- return [group]
-
-
-def _GetMSBuildGlobalProperties(spec, guid, gyp_file_name):
- namespace = os.path.splitext(gyp_file_name)[0]
- properties = [
- ['PropertyGroup', {'Label': 'Globals'},
- ['ProjectGuid', guid],
- ['Keyword', 'Win32Proj'],
- ['RootNamespace', namespace],
- ['IgnoreWarnCompileDuplicatedFilename', 'true'],
- ]
- ]
-
- if os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or \
- os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64':
- properties[0].append(['PreferredToolArchitecture', 'x64'])
-
- if spec.get('msvs_enable_winrt'):
- properties[0].append(['DefaultLanguage', 'en-US'])
- properties[0].append(['AppContainerApplication', 'true'])
- if spec.get('msvs_application_type_revision'):
- app_type_revision = spec.get('msvs_application_type_revision')
- properties[0].append(['ApplicationTypeRevision', app_type_revision])
- else:
- properties[0].append(['ApplicationTypeRevision', '8.1'])
-
- if spec.get('msvs_target_platform_version'):
- target_platform_version = spec.get('msvs_target_platform_version')
- properties[0].append(['WindowsTargetPlatformVersion',
- target_platform_version])
- if spec.get('msvs_target_platform_minversion'):
- target_platform_minversion = spec.get('msvs_target_platform_minversion')
- properties[0].append(['WindowsTargetPlatformMinVersion',
- target_platform_minversion])
- else:
- properties[0].append(['WindowsTargetPlatformMinVersion',
- target_platform_version])
- if spec.get('msvs_enable_winphone'):
- properties[0].append(['ApplicationType', 'Windows Phone'])
- else:
- properties[0].append(['ApplicationType', 'Windows Store'])
-
- platform_name = None
- msvs_windows_target_platform_version = None
- for configuration in spec['configurations'].itervalues():
- platform_name = platform_name or _ConfigPlatform(configuration)
- msvs_windows_target_platform_version = \
- msvs_windows_target_platform_version or \
- _ConfigWindowsTargetPlatformVersion(configuration)
- if platform_name and msvs_windows_target_platform_version:
- break
-
- if platform_name == 'ARM':
- properties[0].append(['WindowsSDKDesktopARMSupport', 'true'])
- if msvs_windows_target_platform_version:
- properties[0].append(['WindowsTargetPlatformVersion', \
- str(msvs_windows_target_platform_version)])
-
- return properties
-
-def _GetMSBuildConfigurationDetails(spec, build_file):
- properties = {}
- for name, settings in spec['configurations'].iteritems():
- msbuild_attributes = _GetMSBuildAttributes(spec, settings, build_file)
- condition = _GetConfigurationCondition(name, settings)
- character_set = msbuild_attributes.get('CharacterSet')
- _AddConditionalProperty(properties, condition, 'ConfigurationType',
- msbuild_attributes['ConfigurationType'])
- if character_set:
- if 'msvs_enable_winrt' not in spec :
- _AddConditionalProperty(properties, condition, 'CharacterSet',
- character_set)
- return _GetMSBuildPropertyGroup(spec, 'Configuration', properties)
-
-
-def _GetMSBuildLocalProperties(msbuild_toolset):
- # Currently the only local property we support is PlatformToolset
- properties = {}
- if msbuild_toolset:
- properties = [
- ['PropertyGroup', {'Label': 'Locals'},
- ['PlatformToolset', msbuild_toolset],
- ]
- ]
- return properties
-
-
-def _GetMSBuildPropertySheets(configurations):
- user_props = r'$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props'
- additional_props = {}
- props_specified = False
- for name, settings in sorted(configurations.iteritems()):
- configuration = _GetConfigurationCondition(name, settings)
- if settings.has_key('msbuild_props'):
- additional_props[configuration] = _FixPaths(settings['msbuild_props'])
- props_specified = True
- else:
- additional_props[configuration] = ''
-
- if not props_specified:
- return [
- ['ImportGroup',
- {'Label': 'PropertySheets'},
- ['Import',
- {'Project': user_props,
- 'Condition': "exists('%s')" % user_props,
- 'Label': 'LocalAppDataPlatform'
- }
- ]
- ]
- ]
- else:
- sheets = []
- for condition, props in additional_props.iteritems():
- import_group = [
- 'ImportGroup',
- {'Label': 'PropertySheets',
- 'Condition': condition
- },
- ['Import',
- {'Project': user_props,
- 'Condition': "exists('%s')" % user_props,
- 'Label': 'LocalAppDataPlatform'
- }
- ]
- ]
- for props_file in props:
- import_group.append(['Import', {'Project':props_file}])
- sheets.append(import_group)
- return sheets
-
-def _ConvertMSVSBuildAttributes(spec, config, build_file):
- config_type = _GetMSVSConfigurationType(spec, build_file)
- msvs_attributes = _GetMSVSAttributes(spec, config, config_type)
- msbuild_attributes = {}
- for a in msvs_attributes:
- if a in ['IntermediateDirectory', 'OutputDirectory']:
- directory = MSVSSettings.ConvertVCMacrosToMSBuild(msvs_attributes[a])
- if not directory.endswith('\\'):
- directory += '\\'
- msbuild_attributes[a] = directory
- elif a == 'CharacterSet':
- msbuild_attributes[a] = _ConvertMSVSCharacterSet(msvs_attributes[a])
- elif a == 'ConfigurationType':
- msbuild_attributes[a] = _ConvertMSVSConfigurationType(msvs_attributes[a])
- else:
- print 'Warning: Do not know how to convert MSVS attribute ' + a
- return msbuild_attributes
-
-
-def _ConvertMSVSCharacterSet(char_set):
- if char_set.isdigit():
- char_set = {
- '0': 'MultiByte',
- '1': 'Unicode',
- '2': 'MultiByte',
- }[char_set]
- return char_set
-
-
-def _ConvertMSVSConfigurationType(config_type):
- if config_type.isdigit():
- config_type = {
- '1': 'Application',
- '2': 'DynamicLibrary',
- '4': 'StaticLibrary',
- '10': 'Utility'
- }[config_type]
- return config_type
-
-
-def _GetMSBuildAttributes(spec, config, build_file):
- if 'msbuild_configuration_attributes' not in config:
- msbuild_attributes = _ConvertMSVSBuildAttributes(spec, config, build_file)
-
- else:
- config_type = _GetMSVSConfigurationType(spec, build_file)
- config_type = _ConvertMSVSConfigurationType(config_type)
- msbuild_attributes = config.get('msbuild_configuration_attributes', {})
- msbuild_attributes.setdefault('ConfigurationType', config_type)
- output_dir = msbuild_attributes.get('OutputDirectory',
- '$(SolutionDir)$(Configuration)')
- msbuild_attributes['OutputDirectory'] = _FixPath(output_dir) + '\\'
- if 'IntermediateDirectory' not in msbuild_attributes:
- intermediate = _FixPath('$(Configuration)') + '\\'
- msbuild_attributes['IntermediateDirectory'] = intermediate
- if 'CharacterSet' in msbuild_attributes:
- msbuild_attributes['CharacterSet'] = _ConvertMSVSCharacterSet(
- msbuild_attributes['CharacterSet'])
- if 'TargetName' not in msbuild_attributes:
- prefix = spec.get('product_prefix', '')
- product_name = spec.get('product_name', '$(ProjectName)')
- target_name = prefix + product_name
- msbuild_attributes['TargetName'] = target_name
- if 'TargetExt' not in msbuild_attributes and 'product_extension' in spec:
- ext = spec.get('product_extension')
- msbuild_attributes['TargetExt'] = '.' + ext
-
- if spec.get('msvs_external_builder'):
- external_out_dir = spec.get('msvs_external_builder_out_dir', '.')
- msbuild_attributes['OutputDirectory'] = _FixPath(external_out_dir) + '\\'
-
- # Make sure that 'TargetPath' matches 'Lib.OutputFile' or 'Link.OutputFile'
- # (depending on the tool used) to avoid MSB8012 warning.
- msbuild_tool_map = {
- 'executable': 'Link',
- 'shared_library': 'Link',
- 'loadable_module': 'Link',
- 'static_library': 'Lib',
- }
- msbuild_tool = msbuild_tool_map.get(spec['type'])
- if msbuild_tool:
- msbuild_settings = config['finalized_msbuild_settings']
- out_file = msbuild_settings[msbuild_tool].get('OutputFile')
- if out_file:
- msbuild_attributes['TargetPath'] = _FixPath(out_file)
- target_ext = msbuild_settings[msbuild_tool].get('TargetExt')
- if target_ext:
- msbuild_attributes['TargetExt'] = target_ext
-
- return msbuild_attributes
-
-
-def _GetMSBuildConfigurationGlobalProperties(spec, configurations, build_file):
- # TODO(jeanluc) We could optimize out the following and do it only if
- # there are actions.
- # TODO(jeanluc) Handle the equivalent of setting 'CYGWIN=nontsec'.
- new_paths = []
- cygwin_dirs = spec.get('msvs_cygwin_dirs', ['.'])[0]
- if cygwin_dirs:
- cyg_path = '$(MSBuildProjectDirectory)\\%s\\bin\\' % _FixPath(cygwin_dirs)
- new_paths.append(cyg_path)
- # TODO(jeanluc) Change the convention to have both a cygwin_dir and a
- # python_dir.
- python_path = cyg_path.replace('cygwin\\bin', 'python_26')
- new_paths.append(python_path)
- if new_paths:
- new_paths = '$(ExecutablePath);' + ';'.join(new_paths)
-
- properties = {}
- for (name, configuration) in sorted(configurations.iteritems()):
- condition = _GetConfigurationCondition(name, configuration)
- attributes = _GetMSBuildAttributes(spec, configuration, build_file)
- msbuild_settings = configuration['finalized_msbuild_settings']
- _AddConditionalProperty(properties, condition, 'IntDir',
- attributes['IntermediateDirectory'])
- _AddConditionalProperty(properties, condition, 'OutDir',
- attributes['OutputDirectory'])
- _AddConditionalProperty(properties, condition, 'TargetName',
- attributes['TargetName'])
- if 'TargetExt' in attributes:
- _AddConditionalProperty(properties, condition, 'TargetExt',
- attributes['TargetExt'])
-
- if attributes.get('TargetPath'):
- _AddConditionalProperty(properties, condition, 'TargetPath',
- attributes['TargetPath'])
- if attributes.get('TargetExt'):
- _AddConditionalProperty(properties, condition, 'TargetExt',
- attributes['TargetExt'])
-
- if new_paths:
- _AddConditionalProperty(properties, condition, 'ExecutablePath',
- new_paths)
- tool_settings = msbuild_settings.get('', {})
- for name, value in sorted(tool_settings.iteritems()):
- formatted_value = _GetValueFormattedForMSBuild('', name, value)
- _AddConditionalProperty(properties, condition, name, formatted_value)
- return _GetMSBuildPropertyGroup(spec, None, properties)
-
-
-def _AddConditionalProperty(properties, condition, name, value):
- """Adds a property / conditional value pair to a dictionary.
-
- Arguments:
- properties: The dictionary to be modified. The key is the name of the
- property. The value is itself a dictionary; its key is the value and
- the value a list of condition for which this value is true.
- condition: The condition under which the named property has the value.
- name: The name of the property.
- value: The value of the property.
- """
- if name not in properties:
- properties[name] = {}
- values = properties[name]
- if value not in values:
- values[value] = []
- conditions = values[value]
- conditions.append(condition)
-
-
-# Regex for msvs variable references ( i.e. $(FOO) ).
-MSVS_VARIABLE_REFERENCE = re.compile(r'\$\(([a-zA-Z_][a-zA-Z0-9_]*)\)')
-
-
-def _GetMSBuildPropertyGroup(spec, label, properties):
- """Returns a PropertyGroup definition for the specified properties.
-
- Arguments:
- spec: The target project dict.
- label: An optional label for the PropertyGroup.
- properties: The dictionary to be converted. The key is the name of the
- property. The value is itself a dictionary; its key is the value and
- the value a list of condition for which this value is true.
- """
- group = ['PropertyGroup']
- if label:
- group.append({'Label': label})
- num_configurations = len(spec['configurations'])
- def GetEdges(node):
- # Use a definition of edges such that user_of_variable -> used_varible.
- # This happens to be easier in this case, since a variable's
- # definition contains all variables it references in a single string.
- edges = set()
- for value in sorted(properties[node].keys()):
- # Add to edges all $(...) references to variables.
- #
- # Variable references that refer to names not in properties are excluded
- # These can exist for instance to refer built in definitions like
- # $(SolutionDir).
- #
- # Self references are ignored. Self reference is used in a few places to
- # append to the default value. I.e. PATH=$(PATH);other_path
- edges.update(set([v for v in MSVS_VARIABLE_REFERENCE.findall(value)
- if v in properties and v != node]))
- return edges
- properties_ordered = gyp.common.TopologicallySorted(
- properties.keys(), GetEdges)
- # Walk properties in the reverse of a topological sort on
- # user_of_variable -> used_variable as this ensures variables are
- # defined before they are used.
- # NOTE: reverse(topsort(DAG)) = topsort(reverse_edges(DAG))
- for name in reversed(properties_ordered):
- values = properties[name]
- for value, conditions in sorted(values.iteritems()):
- if len(conditions) == num_configurations:
- # If the value is the same all configurations,
- # just add one unconditional entry.
- group.append([name, value])
- else:
- for condition in conditions:
- group.append([name, {'Condition': condition}, value])
- return [group]
-
-
-def _GetMSBuildToolSettingsSections(spec, configurations):
- groups = []
- for (name, configuration) in sorted(configurations.iteritems()):
- msbuild_settings = configuration['finalized_msbuild_settings']
- group = ['ItemDefinitionGroup',
- {'Condition': _GetConfigurationCondition(name, configuration)}
- ]
- for tool_name, tool_settings in sorted(msbuild_settings.iteritems()):
- # Skip the tool named '' which is a holder of global settings handled
- # by _GetMSBuildConfigurationGlobalProperties.
- if tool_name:
- if tool_settings:
- tool = [tool_name]
- for name, value in sorted(tool_settings.iteritems()):
- formatted_value = _GetValueFormattedForMSBuild(tool_name, name,
- value)
- tool.append([name, formatted_value])
- group.append(tool)
- groups.append(group)
- return groups
-
-
-def _FinalizeMSBuildSettings(spec, configuration):
- if 'msbuild_settings' in configuration:
- converted = False
- msbuild_settings = configuration['msbuild_settings']
- MSVSSettings.ValidateMSBuildSettings(msbuild_settings)
- else:
- converted = True
- msvs_settings = configuration.get('msvs_settings', {})
- msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(msvs_settings)
- include_dirs, midl_include_dirs, resource_include_dirs = \
- _GetIncludeDirs(configuration)
- libraries = _GetLibraries(spec)
- library_dirs = _GetLibraryDirs(configuration)
- out_file, _, msbuild_tool = _GetOutputFilePathAndTool(spec, msbuild=True)
- target_ext = _GetOutputTargetExt(spec)
- defines = _GetDefines(configuration)
- if converted:
- # Visual Studio 2010 has TR1
- defines = [d for d in defines if d != '_HAS_TR1=0']
- # Warn of ignored settings
- ignored_settings = ['msvs_tool_files']
- for ignored_setting in ignored_settings:
- value = configuration.get(ignored_setting)
- if value:
- print ('Warning: The automatic conversion to MSBuild does not handle '
- '%s. Ignoring setting of %s' % (ignored_setting, str(value)))
-
- defines = [_EscapeCppDefineForMSBuild(d) for d in defines]
- disabled_warnings = _GetDisabledWarnings(configuration)
- prebuild = configuration.get('msvs_prebuild')
- postbuild = configuration.get('msvs_postbuild')
- def_file = _GetModuleDefinition(spec)
- precompiled_header = configuration.get('msvs_precompiled_header')
-
- # Add the information to the appropriate tool
- # TODO(jeanluc) We could optimize and generate these settings only if
- # the corresponding files are found, e.g. don't generate ResourceCompile
- # if you don't have any resources.
- _ToolAppend(msbuild_settings, 'ClCompile',
- 'AdditionalIncludeDirectories', include_dirs)
- _ToolAppend(msbuild_settings, 'Midl',
- 'AdditionalIncludeDirectories', midl_include_dirs)
- _ToolAppend(msbuild_settings, 'ResourceCompile',
- 'AdditionalIncludeDirectories', resource_include_dirs)
- # Add in libraries, note that even for empty libraries, we want this
- # set, to prevent inheriting default libraries from the enviroment.
- _ToolSetOrAppend(msbuild_settings, 'Link', 'AdditionalDependencies',
- libraries)
- _ToolAppend(msbuild_settings, 'Link', 'AdditionalLibraryDirectories',
- library_dirs)
- if out_file:
- _ToolAppend(msbuild_settings, msbuild_tool, 'OutputFile', out_file,
- only_if_unset=True)
- if target_ext:
- _ToolAppend(msbuild_settings, msbuild_tool, 'TargetExt', target_ext,
- only_if_unset=True)
- # Add defines.
- _ToolAppend(msbuild_settings, 'ClCompile',
- 'PreprocessorDefinitions', defines)
- _ToolAppend(msbuild_settings, 'ResourceCompile',
- 'PreprocessorDefinitions', defines)
- # Add disabled warnings.
- _ToolAppend(msbuild_settings, 'ClCompile',
- 'DisableSpecificWarnings', disabled_warnings)
- # Turn on precompiled headers if appropriate.
- if precompiled_header:
- precompiled_header = os.path.split(precompiled_header)[1]
- _ToolAppend(msbuild_settings, 'ClCompile', 'PrecompiledHeader', 'Use')
- _ToolAppend(msbuild_settings, 'ClCompile',
- 'PrecompiledHeaderFile', precompiled_header)
- _ToolAppend(msbuild_settings, 'ClCompile',
- 'ForcedIncludeFiles', [precompiled_header])
- else:
- _ToolAppend(msbuild_settings, 'ClCompile', 'PrecompiledHeader', 'NotUsing')
- # Turn off WinRT compilation
- _ToolAppend(msbuild_settings, 'ClCompile', 'CompileAsWinRT', 'false')
- # Turn on import libraries if appropriate
- if spec.get('msvs_requires_importlibrary'):
- _ToolAppend(msbuild_settings, '', 'IgnoreImportLibrary', 'false')
- # Loadable modules don't generate import libraries;
- # tell dependent projects to not expect one.
- if spec['type'] == 'loadable_module':
- _ToolAppend(msbuild_settings, '', 'IgnoreImportLibrary', 'true')
- # Set the module definition file if any.
- if def_file:
- _ToolAppend(msbuild_settings, 'Link', 'ModuleDefinitionFile', def_file)
- configuration['finalized_msbuild_settings'] = msbuild_settings
- if prebuild:
- _ToolAppend(msbuild_settings, 'PreBuildEvent', 'Command', prebuild)
- if postbuild:
- _ToolAppend(msbuild_settings, 'PostBuildEvent', 'Command', postbuild)
-
-
-def _GetValueFormattedForMSBuild(tool_name, name, value):
- if type(value) == list:
- # For some settings, VS2010 does not automatically extends the settings
- # TODO(jeanluc) Is this what we want?
- if name in ['AdditionalIncludeDirectories',
- 'AdditionalLibraryDirectories',
- 'AdditionalOptions',
- 'DelayLoadDLLs',
- 'DisableSpecificWarnings',
- 'PreprocessorDefinitions']:
- value.append('%%(%s)' % name)
- # For most tools, entries in a list should be separated with ';' but some
- # settings use a space. Check for those first.
- exceptions = {
- 'ClCompile': ['AdditionalOptions'],
- 'Link': ['AdditionalOptions'],
- 'Lib': ['AdditionalOptions']}
- if tool_name in exceptions and name in exceptions[tool_name]:
- char = ' '
- else:
- char = ';'
- formatted_value = char.join(
- [MSVSSettings.ConvertVCMacrosToMSBuild(i) for i in value])
- else:
- formatted_value = MSVSSettings.ConvertVCMacrosToMSBuild(value)
- return formatted_value
-
-
-def _VerifySourcesExist(sources, root_dir):
- """Verifies that all source files exist on disk.
-
- Checks that all regular source files, i.e. not created at run time,
- exist on disk. Missing files cause needless recompilation but no otherwise
- visible errors.
-
- Arguments:
- sources: A recursive list of Filter/file names.
- root_dir: The root directory for the relative path names.
- Returns:
- A list of source files that cannot be found on disk.
- """
- missing_sources = []
- for source in sources:
- if isinstance(source, MSVSProject.Filter):
- missing_sources.extend(_VerifySourcesExist(source.contents, root_dir))
- else:
- if '$' not in source:
- full_path = os.path.join(root_dir, source)
- if not os.path.exists(full_path):
- missing_sources.append(full_path)
- return missing_sources
-
-
-def _GetMSBuildSources(spec, sources, exclusions, rule_dependencies,
- extension_to_rule_name, actions_spec,
- sources_handled_by_action, list_excluded):
- groups = ['none', 'masm', 'midl', 'include', 'compile', 'resource', 'rule',
- 'rule_dependency']
- grouped_sources = {}
- for g in groups:
- grouped_sources[g] = []
-
- _AddSources2(spec, sources, exclusions, grouped_sources,
- rule_dependencies, extension_to_rule_name,
- sources_handled_by_action, list_excluded)
- sources = []
- for g in groups:
- if grouped_sources[g]:
- sources.append(['ItemGroup'] + grouped_sources[g])
- if actions_spec:
- sources.append(['ItemGroup'] + actions_spec)
- return sources
-
-
-def _AddSources2(spec, sources, exclusions, grouped_sources,
- rule_dependencies, extension_to_rule_name,
- sources_handled_by_action,
- list_excluded):
- extensions_excluded_from_precompile = []
- for source in sources:
- if isinstance(source, MSVSProject.Filter):
- _AddSources2(spec, source.contents, exclusions, grouped_sources,
- rule_dependencies, extension_to_rule_name,
- sources_handled_by_action,
- list_excluded)
- else:
- if not source in sources_handled_by_action:
- detail = []
- excluded_configurations = exclusions.get(source, [])
- if len(excluded_configurations) == len(spec['configurations']):
- detail.append(['ExcludedFromBuild', 'true'])
- else:
- for config_name, configuration in sorted(excluded_configurations):
- condition = _GetConfigurationCondition(config_name, configuration)
- detail.append(['ExcludedFromBuild',
- {'Condition': condition},
- 'true'])
- # Add precompile if needed
- for config_name, configuration in spec['configurations'].iteritems():
- precompiled_source = configuration.get('msvs_precompiled_source', '')
- if precompiled_source != '':
- precompiled_source = _FixPath(precompiled_source)
- if not extensions_excluded_from_precompile:
- # If the precompiled header is generated by a C source, we must
- # not try to use it for C++ sources, and vice versa.
- basename, extension = os.path.splitext(precompiled_source)
- if extension == '.c':
- extensions_excluded_from_precompile = ['.cc', '.cpp', '.cxx']
- else:
- extensions_excluded_from_precompile = ['.c']
-
- if precompiled_source == source:
- condition = _GetConfigurationCondition(config_name, configuration)
- detail.append(['PrecompiledHeader',
- {'Condition': condition},
- 'Create'
- ])
- else:
- # Turn off precompiled header usage for source files of a
- # different type than the file that generated the
- # precompiled header.
- for extension in extensions_excluded_from_precompile:
- if source.endswith(extension):
- detail.append(['PrecompiledHeader', ''])
- detail.append(['ForcedIncludeFiles', ''])
-
- group, element = _MapFileToMsBuildSourceType(source, rule_dependencies,
- extension_to_rule_name)
- grouped_sources[group].append([element, {'Include': source}] + detail)
-
-
-def _GetMSBuildProjectReferences(project):
- references = []
- if project.dependencies:
- group = ['ItemGroup']
- for dependency in project.dependencies:
- guid = dependency.guid
- project_dir = os.path.split(project.path)[0]
- relative_path = gyp.common.RelativePath(dependency.path, project_dir)
- project_ref = ['ProjectReference',
- {'Include': relative_path},
- ['Project', guid],
- ['ReferenceOutputAssembly', 'false']
- ]
- for config in dependency.spec.get('configurations', {}).itervalues():
- if config.get('msvs_use_library_dependency_inputs', 0):
- project_ref.append(['UseLibraryDependencyInputs', 'true'])
- break
- # If it's disabled in any config, turn it off in the reference.
- if config.get('msvs_2010_disable_uldi_when_referenced', 0):
- project_ref.append(['UseLibraryDependencyInputs', 'false'])
- break
- group.append(project_ref)
- references.append(group)
- return references
-
-
-def _GenerateMSBuildProject(project, options, version, generator_flags):
- spec = project.spec
- configurations = spec['configurations']
- project_dir, project_file_name = os.path.split(project.path)
- gyp.common.EnsureDirExists(project.path)
- # Prepare list of sources and excluded sources.
- gyp_path = _NormalizedSource(project.build_file)
- relative_path_of_gyp_file = gyp.common.RelativePath(gyp_path, project_dir)
-
- gyp_file = os.path.split(project.build_file)[1]
- sources, excluded_sources = _PrepareListOfSources(spec, generator_flags,
- gyp_file)
- # Add rules.
- actions_to_add = {}
- props_files_of_rules = set()
- targets_files_of_rules = set()
- rule_dependencies = set()
- extension_to_rule_name = {}
- list_excluded = generator_flags.get('msvs_list_excluded_files', True)
-
- # Don't generate rules if we are using an external builder like ninja.
- if not spec.get('msvs_external_builder'):
- _GenerateRulesForMSBuild(project_dir, options, spec,
- sources, excluded_sources,
- props_files_of_rules, targets_files_of_rules,
- actions_to_add, rule_dependencies,
- extension_to_rule_name)
- else:
- rules = spec.get('rules', [])
- _AdjustSourcesForRules(rules, sources, excluded_sources, True)
-
- sources, excluded_sources, excluded_idl = (
- _AdjustSourcesAndConvertToFilterHierarchy(spec, options,
- project_dir, sources,
- excluded_sources,
- list_excluded, version))
-
- # Don't add actions if we are using an external builder like ninja.
- if not spec.get('msvs_external_builder'):
- _AddActions(actions_to_add, spec, project.build_file)
- _AddCopies(actions_to_add, spec)
-
- # NOTE: this stanza must appear after all actions have been decided.
- # Don't excluded sources with actions attached, or they won't run.
- excluded_sources = _FilterActionsFromExcluded(
- excluded_sources, actions_to_add)
-
- exclusions = _GetExcludedFilesFromBuild(spec, excluded_sources, excluded_idl)
- actions_spec, sources_handled_by_action = _GenerateActionsForMSBuild(
- spec, actions_to_add)
-
- _GenerateMSBuildFiltersFile(project.path + '.filters', sources,
- rule_dependencies,
- extension_to_rule_name)
- missing_sources = _VerifySourcesExist(sources, project_dir)
-
- for configuration in configurations.itervalues():
- _FinalizeMSBuildSettings(spec, configuration)
-
- # Add attributes to root element
-
- import_default_section = [
- ['Import', {'Project': r'$(VCTargetsPath)\Microsoft.Cpp.Default.props'}]]
- import_cpp_props_section = [
- ['Import', {'Project': r'$(VCTargetsPath)\Microsoft.Cpp.props'}]]
- import_cpp_targets_section = [
- ['Import', {'Project': r'$(VCTargetsPath)\Microsoft.Cpp.targets'}]]
- import_masm_props_section = [
- ['Import',
- {'Project': r'$(VCTargetsPath)\BuildCustomizations\masm.props'}]]
- import_masm_targets_section = [
- ['Import',
- {'Project': r'$(VCTargetsPath)\BuildCustomizations\masm.targets'}]]
- macro_section = [['PropertyGroup', {'Label': 'UserMacros'}]]
-
- content = [
- 'Project',
- {'xmlns': 'http://schemas.microsoft.com/developer/msbuild/2003',
- 'ToolsVersion': version.ProjectVersion(),
- 'DefaultTargets': 'Build'
- }]
-
- content += _GetMSBuildProjectConfigurations(configurations)
- content += _GetMSBuildGlobalProperties(spec, project.guid, project_file_name)
- content += import_default_section
- content += _GetMSBuildConfigurationDetails(spec, project.build_file)
- if spec.get('msvs_enable_winphone'):
- content += _GetMSBuildLocalProperties('v120_wp81')
- else:
- content += _GetMSBuildLocalProperties(project.msbuild_toolset)
- content += import_cpp_props_section
- content += import_masm_props_section
- content += _GetMSBuildExtensions(props_files_of_rules)
- content += _GetMSBuildPropertySheets(configurations)
- content += macro_section
- content += _GetMSBuildConfigurationGlobalProperties(spec, configurations,
- project.build_file)
- content += _GetMSBuildToolSettingsSections(spec, configurations)
- content += _GetMSBuildSources(
- spec, sources, exclusions, rule_dependencies, extension_to_rule_name,
- actions_spec, sources_handled_by_action, list_excluded)
- content += _GetMSBuildProjectReferences(project)
- content += import_cpp_targets_section
- content += import_masm_targets_section
- content += _GetMSBuildExtensionTargets(targets_files_of_rules)
-
- if spec.get('msvs_external_builder'):
- content += _GetMSBuildExternalBuilderTargets(spec)
-
- # TODO(jeanluc) File a bug to get rid of runas. We had in MSVS:
- # has_run_as = _WriteMSVSUserFile(project.path, version, spec)
-
- easy_xml.WriteXmlIfChanged(content, project.path, pretty=True, win32=True)
-
- return missing_sources
-
-
-def _GetMSBuildExternalBuilderTargets(spec):
- """Return a list of MSBuild targets for external builders.
-
- The "Build" and "Clean" targets are always generated. If the spec contains
- 'msvs_external_builder_clcompile_cmd', then the "ClCompile" target will also
- be generated, to support building selected C/C++ files.
-
- Arguments:
- spec: The gyp target spec.
- Returns:
- List of MSBuild 'Target' specs.
- """
- build_cmd = _BuildCommandLineForRuleRaw(
- spec, spec['msvs_external_builder_build_cmd'],
- False, False, False, False)
- build_target = ['Target', {'Name': 'Build'}]
- build_target.append(['Exec', {'Command': build_cmd}])
-
- clean_cmd = _BuildCommandLineForRuleRaw(
- spec, spec['msvs_external_builder_clean_cmd'],
- False, False, False, False)
- clean_target = ['Target', {'Name': 'Clean'}]
- clean_target.append(['Exec', {'Command': clean_cmd}])
-
- targets = [build_target, clean_target]
-
- if spec.get('msvs_external_builder_clcompile_cmd'):
- clcompile_cmd = _BuildCommandLineForRuleRaw(
- spec, spec['msvs_external_builder_clcompile_cmd'],
- False, False, False, False)
- clcompile_target = ['Target', {'Name': 'ClCompile'}]
- clcompile_target.append(['Exec', {'Command': clcompile_cmd}])
- targets.append(clcompile_target)
-
- return targets
-
-
-def _GetMSBuildExtensions(props_files_of_rules):
- extensions = ['ImportGroup', {'Label': 'ExtensionSettings'}]
- for props_file in props_files_of_rules:
- extensions.append(['Import', {'Project': props_file}])
- return [extensions]
-
-
-def _GetMSBuildExtensionTargets(targets_files_of_rules):
- targets_node = ['ImportGroup', {'Label': 'ExtensionTargets'}]
- for targets_file in sorted(targets_files_of_rules):
- targets_node.append(['Import', {'Project': targets_file}])
- return [targets_node]
-
-
-def _GenerateActionsForMSBuild(spec, actions_to_add):
- """Add actions accumulated into an actions_to_add, merging as needed.
-
- Arguments:
- spec: the target project dict
- actions_to_add: dictionary keyed on input name, which maps to a list of
- dicts describing the actions attached to that input file.
-
- Returns:
- A pair of (action specification, the sources handled by this action).
- """
- sources_handled_by_action = OrderedSet()
- actions_spec = []
- for primary_input, actions in actions_to_add.iteritems():
- inputs = OrderedSet()
- outputs = OrderedSet()
- descriptions = []
- commands = []
- for action in actions:
- inputs.update(OrderedSet(action['inputs']))
- outputs.update(OrderedSet(action['outputs']))
- descriptions.append(action['description'])
- cmd = action['command']
- # For most actions, add 'call' so that actions that invoke batch files
- # return and continue executing. msbuild_use_call provides a way to
- # disable this but I have not seen any adverse effect from doing that
- # for everything.
- if action.get('msbuild_use_call', True):
- cmd = 'call ' + cmd
- commands.append(cmd)
- # Add the custom build action for one input file.
- description = ', and also '.join(descriptions)
-
- # We can't join the commands simply with && because the command line will
- # get too long. See also _AddActions: cygwin's setup_env mustn't be called
- # for every invocation or the command that sets the PATH will grow too
- # long.
- command = '\r\n'.join([c + '\r\nif %errorlevel% neq 0 exit /b %errorlevel%'
- for c in commands])
- _AddMSBuildAction(spec,
- primary_input,
- inputs,
- outputs,
- command,
- description,
- sources_handled_by_action,
- actions_spec)
- return actions_spec, sources_handled_by_action
-
-
-def _AddMSBuildAction(spec, primary_input, inputs, outputs, cmd, description,
- sources_handled_by_action, actions_spec):
- command = MSVSSettings.ConvertVCMacrosToMSBuild(cmd)
- primary_input = _FixPath(primary_input)
- inputs_array = _FixPaths(inputs)
- outputs_array = _FixPaths(outputs)
- additional_inputs = ';'.join([i for i in inputs_array
- if i != primary_input])
- outputs = ';'.join(outputs_array)
- sources_handled_by_action.add(primary_input)
- action_spec = ['CustomBuild', {'Include': primary_input}]
- action_spec.extend(
- # TODO(jeanluc) 'Document' for all or just if as_sources?
- [['FileType', 'Document'],
- ['Command', command],
- ['Message', description],
- ['Outputs', outputs]
- ])
- if additional_inputs:
- action_spec.append(['AdditionalInputs', additional_inputs])
- actions_spec.append(action_spec)
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
deleted file mode 100755
index c0b021d..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-""" Unit tests for the msvs.py file. """
-
-import gyp.generator.msvs as msvs
-import unittest
-import StringIO
-
-
-class TestSequenceFunctions(unittest.TestCase):
-
- def setUp(self):
- self.stderr = StringIO.StringIO()
-
- def test_GetLibraries(self):
- self.assertEqual(
- msvs._GetLibraries({}),
- [])
- self.assertEqual(
- msvs._GetLibraries({'libraries': []}),
- [])
- self.assertEqual(
- msvs._GetLibraries({'other':'foo', 'libraries': ['a.lib']}),
- ['a.lib'])
- self.assertEqual(
- msvs._GetLibraries({'libraries': ['-la']}),
- ['a.lib'])
- self.assertEqual(
- msvs._GetLibraries({'libraries': ['a.lib', 'b.lib', 'c.lib', '-lb.lib',
- '-lb.lib', 'd.lib', 'a.lib']}),
- ['c.lib', 'b.lib', 'd.lib', 'a.lib'])
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py
deleted file mode 100644
index a00573e..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py
+++ /dev/null
@@ -1,2422 +0,0 @@
-# Copyright (c) 2013 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import collections
-import copy
-import hashlib
-import json
-import multiprocessing
-import os.path
-import re
-import signal
-import subprocess
-import sys
-import gyp
-import gyp.common
-from gyp.common import OrderedSet
-import gyp.msvs_emulation
-import gyp.MSVSUtil as MSVSUtil
-import gyp.xcode_emulation
-from cStringIO import StringIO
-
-from gyp.common import GetEnvironFallback
-import gyp.ninja_syntax as ninja_syntax
-
-generator_default_variables = {
- 'EXECUTABLE_PREFIX': '',
- 'EXECUTABLE_SUFFIX': '',
- 'STATIC_LIB_PREFIX': 'lib',
- 'STATIC_LIB_SUFFIX': '.a',
- 'SHARED_LIB_PREFIX': 'lib',
-
- # Gyp expects the following variables to be expandable by the build
- # system to the appropriate locations. Ninja prefers paths to be
- # known at gyp time. To resolve this, introduce special
- # variables starting with $! and $| (which begin with a $ so gyp knows it
- # should be treated specially, but is otherwise an invalid
- # ninja/shell variable) that are passed to gyp here but expanded
- # before writing out into the target .ninja files; see
- # ExpandSpecial.
- # $! is used for variables that represent a path and that can only appear at
- # the start of a string, while $| is used for variables that can appear
- # anywhere in a string.
- 'INTERMEDIATE_DIR': '$!INTERMEDIATE_DIR',
- 'SHARED_INTERMEDIATE_DIR': '$!PRODUCT_DIR/gen',
- 'PRODUCT_DIR': '$!PRODUCT_DIR',
- 'CONFIGURATION_NAME': '$|CONFIGURATION_NAME',
-
- # Special variables that may be used by gyp 'rule' targets.
- # We generate definitions for these variables on the fly when processing a
- # rule.
- 'RULE_INPUT_ROOT': '${root}',
- 'RULE_INPUT_DIRNAME': '${dirname}',
- 'RULE_INPUT_PATH': '${source}',
- 'RULE_INPUT_EXT': '${ext}',
- 'RULE_INPUT_NAME': '${name}',
-}
-
-# Placates pylint.
-generator_additional_non_configuration_keys = []
-generator_additional_path_sections = []
-generator_extra_sources_for_rules = []
-generator_filelist_paths = None
-
-generator_supports_multiple_toolsets = gyp.common.CrossCompileRequested()
-
-def StripPrefix(arg, prefix):
- if arg.startswith(prefix):
- return arg[len(prefix):]
- return arg
-
-
-def QuoteShellArgument(arg, flavor):
- """Quote a string such that it will be interpreted as a single argument
- by the shell."""
- # Rather than attempting to enumerate the bad shell characters, just
- # whitelist common OK ones and quote anything else.
- if re.match(r'^[a-zA-Z0-9_=.\\/-]+$', arg):
- return arg # No quoting necessary.
- if flavor == 'win':
- return gyp.msvs_emulation.QuoteForRspFile(arg)
- return "'" + arg.replace("'", "'" + '"\'"' + "'") + "'"
-
-
-def Define(d, flavor):
- """Takes a preprocessor define and returns a -D parameter that's ninja- and
- shell-escaped."""
- if flavor == 'win':
- # cl.exe replaces literal # characters with = in preprocesor definitions for
- # some reason. Octal-encode to work around that.
- d = d.replace('#', '\\%03o' % ord('#'))
- return QuoteShellArgument(ninja_syntax.escape('-D' + d), flavor)
-
-
-def AddArch(output, arch):
- """Adds an arch string to an output path."""
- output, extension = os.path.splitext(output)
- return '%s.%s%s' % (output, arch, extension)
-
-
-class Target(object):
- """Target represents the paths used within a single gyp target.
-
- Conceptually, building a single target A is a series of steps:
-
- 1) actions/rules/copies generates source/resources/etc.
- 2) compiles generates .o files
- 3) link generates a binary (library/executable)
- 4) bundle merges the above in a mac bundle
-
- (Any of these steps can be optional.)
-
- From a build ordering perspective, a dependent target B could just
- depend on the last output of this series of steps.
-
- But some dependent commands sometimes need to reach inside the box.
- For example, when linking B it needs to get the path to the static
- library generated by A.
-
- This object stores those paths. To keep things simple, member
- variables only store concrete paths to single files, while methods
- compute derived values like "the last output of the target".
- """
- def __init__(self, type):
- # Gyp type ("static_library", etc.) of this target.
- self.type = type
- # File representing whether any input dependencies necessary for
- # dependent actions have completed.
- self.preaction_stamp = None
- # File representing whether any input dependencies necessary for
- # dependent compiles have completed.
- self.precompile_stamp = None
- # File representing the completion of actions/rules/copies, if any.
- self.actions_stamp = None
- # Path to the output of the link step, if any.
- self.binary = None
- # Path to the file representing the completion of building the bundle,
- # if any.
- self.bundle = None
- # On Windows, incremental linking requires linking against all the .objs
- # that compose a .lib (rather than the .lib itself). That list is stored
- # here. In this case, we also need to save the compile_deps for the target,
- # so that the target that directly depends on the .objs can also depend
- # on those.
- self.component_objs = None
- self.compile_deps = None
- # Windows only. The import .lib is the output of a build step, but
- # because dependents only link against the lib (not both the lib and the
- # dll) we keep track of the import library here.
- self.import_lib = None
-
- def Linkable(self):
- """Return true if this is a target that can be linked against."""
- return self.type in ('static_library', 'shared_library')
-
- def UsesToc(self, flavor):
- """Return true if the target should produce a restat rule based on a TOC
- file."""
- # For bundles, the .TOC should be produced for the binary, not for
- # FinalOutput(). But the naive approach would put the TOC file into the
- # bundle, so don't do this for bundles for now.
- if flavor == 'win' or self.bundle:
- return False
- return self.type in ('shared_library', 'loadable_module')
-
- def PreActionInput(self, flavor):
- """Return the path, if any, that should be used as a dependency of
- any dependent action step."""
- if self.UsesToc(flavor):
- return self.FinalOutput() + '.TOC'
- return self.FinalOutput() or self.preaction_stamp
-
- def PreCompileInput(self):
- """Return the path, if any, that should be used as a dependency of
- any dependent compile step."""
- return self.actions_stamp or self.precompile_stamp
-
- def FinalOutput(self):
- """Return the last output of the target, which depends on all prior
- steps."""
- return self.bundle or self.binary or self.actions_stamp
-
-
-# A small discourse on paths as used within the Ninja build:
-# All files we produce (both at gyp and at build time) appear in the
-# build directory (e.g. out/Debug).
-#
-# Paths within a given .gyp file are always relative to the directory
-# containing the .gyp file. Call these "gyp paths". This includes
-# sources as well as the starting directory a given gyp rule/action
-# expects to be run from. We call the path from the source root to
-# the gyp file the "base directory" within the per-.gyp-file
-# NinjaWriter code.
-#
-# All paths as written into the .ninja files are relative to the build
-# directory. Call these paths "ninja paths".
-#
-# We translate between these two notions of paths with two helper
-# functions:
-#
-# - GypPathToNinja translates a gyp path (i.e. relative to the .gyp file)
-# into the equivalent ninja path.
-#
-# - GypPathToUniqueOutput translates a gyp path into a ninja path to write
-# an output file; the result can be namespaced such that it is unique
-# to the input file name as well as the output target name.
-
-class NinjaWriter(object):
- def __init__(self, hash_for_rules, target_outputs, base_dir, build_dir,
- output_file, toplevel_build, output_file_name, flavor,
- toplevel_dir=None):
- """
- base_dir: path from source root to directory containing this gyp file,
- by gyp semantics, all input paths are relative to this
- build_dir: path from source root to build output
- toplevel_dir: path to the toplevel directory
- """
-
- self.hash_for_rules = hash_for_rules
- self.target_outputs = target_outputs
- self.base_dir = base_dir
- self.build_dir = build_dir
- self.ninja = ninja_syntax.Writer(output_file)
- self.toplevel_build = toplevel_build
- self.output_file_name = output_file_name
-
- self.flavor = flavor
- self.abs_build_dir = None
- if toplevel_dir is not None:
- self.abs_build_dir = os.path.abspath(os.path.join(toplevel_dir,
- build_dir))
- self.obj_ext = '.obj' if flavor == 'win' else '.o'
- if flavor == 'win':
- # See docstring of msvs_emulation.GenerateEnvironmentFiles().
- self.win_env = {}
- for arch in ('x86', 'x64'):
- self.win_env[arch] = 'environment.' + arch
-
- # Relative path from build output dir to base dir.
- build_to_top = gyp.common.InvertRelativePath(build_dir, toplevel_dir)
- self.build_to_base = os.path.join(build_to_top, base_dir)
- # Relative path from base dir to build dir.
- base_to_top = gyp.common.InvertRelativePath(base_dir, toplevel_dir)
- self.base_to_build = os.path.join(base_to_top, build_dir)
-
- def ExpandSpecial(self, path, product_dir=None):
- """Expand specials like $!PRODUCT_DIR in |path|.
-
- If |product_dir| is None, assumes the cwd is already the product
- dir. Otherwise, |product_dir| is the relative path to the product
- dir.
- """
-
- PRODUCT_DIR = '$!PRODUCT_DIR'
- if PRODUCT_DIR in path:
- if product_dir:
- path = path.replace(PRODUCT_DIR, product_dir)
- else:
- path = path.replace(PRODUCT_DIR + '/', '')
- path = path.replace(PRODUCT_DIR + '\\', '')
- path = path.replace(PRODUCT_DIR, '.')
-
- INTERMEDIATE_DIR = '$!INTERMEDIATE_DIR'
- if INTERMEDIATE_DIR in path:
- int_dir = self.GypPathToUniqueOutput('gen')
- # GypPathToUniqueOutput generates a path relative to the product dir,
- # so insert product_dir in front if it is provided.
- path = path.replace(INTERMEDIATE_DIR,
- os.path.join(product_dir or '', int_dir))
-
- CONFIGURATION_NAME = '$|CONFIGURATION_NAME'
- path = path.replace(CONFIGURATION_NAME, self.config_name)
-
- return path
-
- def ExpandRuleVariables(self, path, root, dirname, source, ext, name):
- if self.flavor == 'win':
- path = self.msvs_settings.ConvertVSMacros(
- path, config=self.config_name)
- path = path.replace(generator_default_variables['RULE_INPUT_ROOT'], root)
- path = path.replace(generator_default_variables['RULE_INPUT_DIRNAME'],
- dirname)
- path = path.replace(generator_default_variables['RULE_INPUT_PATH'], source)
- path = path.replace(generator_default_variables['RULE_INPUT_EXT'], ext)
- path = path.replace(generator_default_variables['RULE_INPUT_NAME'], name)
- return path
-
- def GypPathToNinja(self, path, env=None):
- """Translate a gyp path to a ninja path, optionally expanding environment
- variable references in |path| with |env|.
-
- See the above discourse on path conversions."""
- if env:
- if self.flavor == 'mac':
- path = gyp.xcode_emulation.ExpandEnvVars(path, env)
- elif self.flavor == 'win':
- path = gyp.msvs_emulation.ExpandMacros(path, env)
- if path.startswith('$!'):
- expanded = self.ExpandSpecial(path)
- if self.flavor == 'win':
- expanded = os.path.normpath(expanded)
- return expanded
- if '$|' in path:
- path = self.ExpandSpecial(path)
- assert '$' not in path, path
- return os.path.normpath(os.path.join(self.build_to_base, path))
-
- def GypPathToUniqueOutput(self, path, qualified=True):
- """Translate a gyp path to a ninja path for writing output.
-
- If qualified is True, qualify the resulting filename with the name
- of the target. This is necessary when e.g. compiling the same
- path twice for two separate output targets.
-
- See the above discourse on path conversions."""
-
- path = self.ExpandSpecial(path)
- assert not path.startswith('$'), path
-
- # Translate the path following this scheme:
- # Input: foo/bar.gyp, target targ, references baz/out.o
- # Output: obj/foo/baz/targ.out.o (if qualified)
- # obj/foo/baz/out.o (otherwise)
- # (and obj.host instead of obj for cross-compiles)
- #
- # Why this scheme and not some other one?
- # 1) for a given input, you can compute all derived outputs by matching
- # its path, even if the input is brought via a gyp file with '..'.
- # 2) simple files like libraries and stamps have a simple filename.
-
- obj = 'obj'
- if self.toolset != 'target':
- obj += '.' + self.toolset
-
- path_dir, path_basename = os.path.split(path)
- assert not os.path.isabs(path_dir), (
- "'%s' can not be absolute path (see crbug.com/462153)." % path_dir)
-
- if qualified:
- path_basename = self.name + '.' + path_basename
- return os.path.normpath(os.path.join(obj, self.base_dir, path_dir,
- path_basename))
-
- def WriteCollapsedDependencies(self, name, targets, order_only=None):
- """Given a list of targets, return a path for a single file
- representing the result of building all the targets or None.
-
- Uses a stamp file if necessary."""
-
- assert targets == filter(None, targets), targets
- if len(targets) == 0:
- assert not order_only
- return None
- if len(targets) > 1 or order_only:
- stamp = self.GypPathToUniqueOutput(name + '.stamp')
- targets = self.ninja.build(stamp, 'stamp', targets, order_only=order_only)
- self.ninja.newline()
- return targets[0]
-
- def _SubninjaNameForArch(self, arch):
- output_file_base = os.path.splitext(self.output_file_name)[0]
- return '%s.%s.ninja' % (output_file_base, arch)
-
- def WriteSpec(self, spec, config_name, generator_flags):
- """The main entry point for NinjaWriter: write the build rules for a spec.
-
- Returns a Target object, which represents the output paths for this spec.
- Returns None if there are no outputs (e.g. a settings-only 'none' type
- target)."""
-
- self.config_name = config_name
- self.name = spec['target_name']
- self.toolset = spec['toolset']
- config = spec['configurations'][config_name]
- self.target = Target(spec['type'])
- self.is_standalone_static_library = bool(
- spec.get('standalone_static_library', 0))
- # Track if this target contains any C++ files, to decide if gcc or g++
- # should be used for linking.
- self.uses_cpp = False
-
- self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec)
- self.xcode_settings = self.msvs_settings = None
- if self.flavor == 'mac':
- self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec)
- if self.flavor == 'win':
- self.msvs_settings = gyp.msvs_emulation.MsvsSettings(spec,
- generator_flags)
- arch = self.msvs_settings.GetArch(config_name)
- self.ninja.variable('arch', self.win_env[arch])
- self.ninja.variable('cc', '$cl_' + arch)
- self.ninja.variable('cxx', '$cl_' + arch)
- self.ninja.variable('cc_host', '$cl_' + arch)
- self.ninja.variable('cxx_host', '$cl_' + arch)
- self.ninja.variable('asm', '$ml_' + arch)
-
- if self.flavor == 'mac':
- self.archs = self.xcode_settings.GetActiveArchs(config_name)
- if len(self.archs) > 1:
- self.arch_subninjas = dict(
- (arch, ninja_syntax.Writer(
- OpenOutput(os.path.join(self.toplevel_build,
- self._SubninjaNameForArch(arch)),
- 'w')))
- for arch in self.archs)
-
- # Compute predepends for all rules.
- # actions_depends is the dependencies this target depends on before running
- # any of its action/rule/copy steps.
- # compile_depends is the dependencies this target depends on before running
- # any of its compile steps.
- actions_depends = []
- compile_depends = []
- # TODO(evan): it is rather confusing which things are lists and which
- # are strings. Fix these.
- if 'dependencies' in spec:
- for dep in spec['dependencies']:
- if dep in self.target_outputs:
- target = self.target_outputs[dep]
- actions_depends.append(target.PreActionInput(self.flavor))
- compile_depends.append(target.PreCompileInput())
- actions_depends = filter(None, actions_depends)
- compile_depends = filter(None, compile_depends)
- actions_depends = self.WriteCollapsedDependencies('actions_depends',
- actions_depends)
- compile_depends = self.WriteCollapsedDependencies('compile_depends',
- compile_depends)
- self.target.preaction_stamp = actions_depends
- self.target.precompile_stamp = compile_depends
-
- # Write out actions, rules, and copies. These must happen before we
- # compile any sources, so compute a list of predependencies for sources
- # while we do it.
- extra_sources = []
- mac_bundle_depends = []
- self.target.actions_stamp = self.WriteActionsRulesCopies(
- spec, extra_sources, actions_depends, mac_bundle_depends)
-
- # If we have actions/rules/copies, we depend directly on those, but
- # otherwise we depend on dependent target's actions/rules/copies etc.
- # We never need to explicitly depend on previous target's link steps,
- # because no compile ever depends on them.
- compile_depends_stamp = (self.target.actions_stamp or compile_depends)
-
- # Write out the compilation steps, if any.
- link_deps = []
- sources = extra_sources + spec.get('sources', [])
- if sources:
- if self.flavor == 'mac' and len(self.archs) > 1:
- # Write subninja file containing compile and link commands scoped to
- # a single arch if a fat binary is being built.
- for arch in self.archs:
- self.ninja.subninja(self._SubninjaNameForArch(arch))
-
- pch = None
- if self.flavor == 'win':
- gyp.msvs_emulation.VerifyMissingSources(
- sources, self.abs_build_dir, generator_flags, self.GypPathToNinja)
- pch = gyp.msvs_emulation.PrecompiledHeader(
- self.msvs_settings, config_name, self.GypPathToNinja,
- self.GypPathToUniqueOutput, self.obj_ext)
- else:
- pch = gyp.xcode_emulation.MacPrefixHeader(
- self.xcode_settings, self.GypPathToNinja,
- lambda path, lang: self.GypPathToUniqueOutput(path + '-' + lang))
- link_deps = self.WriteSources(
- self.ninja, config_name, config, sources, compile_depends_stamp, pch,
- spec)
- # Some actions/rules output 'sources' that are already object files.
- obj_outputs = [f for f in sources if f.endswith(self.obj_ext)]
- if obj_outputs:
- if self.flavor != 'mac' or len(self.archs) == 1:
- link_deps += [self.GypPathToNinja(o) for o in obj_outputs]
- else:
- print "Warning: Actions/rules writing object files don't work with " \
- "multiarch targets, dropping. (target %s)" % spec['target_name']
- elif self.flavor == 'mac' and len(self.archs) > 1:
- link_deps = collections.defaultdict(list)
-
- compile_deps = self.target.actions_stamp or actions_depends
- if self.flavor == 'win' and self.target.type == 'static_library':
- self.target.component_objs = link_deps
- self.target.compile_deps = compile_deps
-
- # Write out a link step, if needed.
- output = None
- is_empty_bundle = not link_deps and not mac_bundle_depends
- if link_deps or self.target.actions_stamp or actions_depends:
- output = self.WriteTarget(spec, config_name, config, link_deps,
- compile_deps)
- if self.is_mac_bundle:
- mac_bundle_depends.append(output)
-
- # Bundle all of the above together, if needed.
- if self.is_mac_bundle:
- output = self.WriteMacBundle(spec, mac_bundle_depends, is_empty_bundle)
-
- if not output:
- return None
-
- assert self.target.FinalOutput(), output
- return self.target
-
- def _WinIdlRule(self, source, prebuild, outputs):
- """Handle the implicit VS .idl rule for one source file. Fills |outputs|
- with files that are generated."""
- outdir, output, vars, flags = self.msvs_settings.GetIdlBuildData(
- source, self.config_name)
- outdir = self.GypPathToNinja(outdir)
- def fix_path(path, rel=None):
- path = os.path.join(outdir, path)
- dirname, basename = os.path.split(source)
- root, ext = os.path.splitext(basename)
- path = self.ExpandRuleVariables(
- path, root, dirname, source, ext, basename)
- if rel:
- path = os.path.relpath(path, rel)
- return path
- vars = [(name, fix_path(value, outdir)) for name, value in vars]
- output = [fix_path(p) for p in output]
- vars.append(('outdir', outdir))
- vars.append(('idlflags', flags))
- input = self.GypPathToNinja(source)
- self.ninja.build(output, 'idl', input,
- variables=vars, order_only=prebuild)
- outputs.extend(output)
-
- def WriteWinIdlFiles(self, spec, prebuild):
- """Writes rules to match MSVS's implicit idl handling."""
- assert self.flavor == 'win'
- if self.msvs_settings.HasExplicitIdlRulesOrActions(spec):
- return []
- outputs = []
- for source in filter(lambda x: x.endswith('.idl'), spec['sources']):
- self._WinIdlRule(source, prebuild, outputs)
- return outputs
-
- def WriteActionsRulesCopies(self, spec, extra_sources, prebuild,
- mac_bundle_depends):
- """Write out the Actions, Rules, and Copies steps. Return a path
- representing the outputs of these steps."""
- outputs = []
- if self.is_mac_bundle:
- mac_bundle_resources = spec.get('mac_bundle_resources', [])[:]
- else:
- mac_bundle_resources = []
- extra_mac_bundle_resources = []
-
- if 'actions' in spec:
- outputs += self.WriteActions(spec['actions'], extra_sources, prebuild,
- extra_mac_bundle_resources)
- if 'rules' in spec:
- outputs += self.WriteRules(spec['rules'], extra_sources, prebuild,
- mac_bundle_resources,
- extra_mac_bundle_resources)
- if 'copies' in spec:
- outputs += self.WriteCopies(spec['copies'], prebuild, mac_bundle_depends)
-
- if 'sources' in spec and self.flavor == 'win':
- outputs += self.WriteWinIdlFiles(spec, prebuild)
-
- stamp = self.WriteCollapsedDependencies('actions_rules_copies', outputs)
-
- if self.is_mac_bundle:
- xcassets = self.WriteMacBundleResources(
- extra_mac_bundle_resources + mac_bundle_resources, mac_bundle_depends)
- partial_info_plist = self.WriteMacXCassets(xcassets, mac_bundle_depends)
- self.WriteMacInfoPlist(partial_info_plist, mac_bundle_depends)
-
- return stamp
-
- def GenerateDescription(self, verb, message, fallback):
- """Generate and return a description of a build step.
-
- |verb| is the short summary, e.g. ACTION or RULE.
- |message| is a hand-written description, or None if not available.
- |fallback| is the gyp-level name of the step, usable as a fallback.
- """
- if self.toolset != 'target':
- verb += '(%s)' % self.toolset
- if message:
- return '%s %s' % (verb, self.ExpandSpecial(message))
- else:
- return '%s %s: %s' % (verb, self.name, fallback)
-
- def WriteActions(self, actions, extra_sources, prebuild,
- extra_mac_bundle_resources):
- # Actions cd into the base directory.
- env = self.GetToolchainEnv()
- all_outputs = []
- for action in actions:
- # First write out a rule for the action.
- name = '%s_%s' % (action['action_name'], self.hash_for_rules)
- description = self.GenerateDescription('ACTION',
- action.get('message', None),
- name)
- is_cygwin = (self.msvs_settings.IsRuleRunUnderCygwin(action)
- if self.flavor == 'win' else False)
- args = action['action']
- depfile = action.get('depfile', None)
- if depfile:
- depfile = self.ExpandSpecial(depfile, self.base_to_build)
- pool = 'console' if int(action.get('ninja_use_console', 0)) else None
- rule_name, _ = self.WriteNewNinjaRule(name, args, description,
- is_cygwin, env, pool,
- depfile=depfile)
-
- inputs = [self.GypPathToNinja(i, env) for i in action['inputs']]
- if int(action.get('process_outputs_as_sources', False)):
- extra_sources += action['outputs']
- if int(action.get('process_outputs_as_mac_bundle_resources', False)):
- extra_mac_bundle_resources += action['outputs']
- outputs = [self.GypPathToNinja(o, env) for o in action['outputs']]
-
- # Then write out an edge using the rule.
- self.ninja.build(outputs, rule_name, inputs,
- order_only=prebuild)
- all_outputs += outputs
-
- self.ninja.newline()
-
- return all_outputs
-
- def WriteRules(self, rules, extra_sources, prebuild,
- mac_bundle_resources, extra_mac_bundle_resources):
- env = self.GetToolchainEnv()
- all_outputs = []
- for rule in rules:
- # Skip a rule with no action and no inputs.
- if 'action' not in rule and not rule.get('rule_sources', []):
- continue
-
- # First write out a rule for the rule action.
- name = '%s_%s' % (rule['rule_name'], self.hash_for_rules)
-
- args = rule['action']
- description = self.GenerateDescription(
- 'RULE',
- rule.get('message', None),
- ('%s ' + generator_default_variables['RULE_INPUT_PATH']) % name)
- is_cygwin = (self.msvs_settings.IsRuleRunUnderCygwin(rule)
- if self.flavor == 'win' else False)
- pool = 'console' if int(rule.get('ninja_use_console', 0)) else None
- rule_name, args = self.WriteNewNinjaRule(
- name, args, description, is_cygwin, env, pool)
-
- # TODO: if the command references the outputs directly, we should
- # simplify it to just use $out.
-
- # Rules can potentially make use of some special variables which
- # must vary per source file.
- # Compute the list of variables we'll need to provide.
- special_locals = ('source', 'root', 'dirname', 'ext', 'name')
- needed_variables = set(['source'])
- for argument in args:
- for var in special_locals:
- if '${%s}' % var in argument:
- needed_variables.add(var)
-
- def cygwin_munge(path):
- # pylint: disable=cell-var-from-loop
- if is_cygwin:
- return path.replace('\\', '/')
- return path
-
- inputs = [self.GypPathToNinja(i, env) for i in rule.get('inputs', [])]
-
- # If there are n source files matching the rule, and m additional rule
- # inputs, then adding 'inputs' to each build edge written below will
- # write m * n inputs. Collapsing reduces this to m + n.
- sources = rule.get('rule_sources', [])
- num_inputs = len(inputs)
- if prebuild:
- num_inputs += 1
- if num_inputs > 2 and len(sources) > 2:
- inputs = [self.WriteCollapsedDependencies(
- rule['rule_name'], inputs, order_only=prebuild)]
- prebuild = []
-
- # For each source file, write an edge that generates all the outputs.
- for source in sources:
- source = os.path.normpath(source)
- dirname, basename = os.path.split(source)
- root, ext = os.path.splitext(basename)
-
- # Gather the list of inputs and outputs, expanding $vars if possible.
- outputs = [self.ExpandRuleVariables(o, root, dirname,
- source, ext, basename)
- for o in rule['outputs']]
-
- if int(rule.get('process_outputs_as_sources', False)):
- extra_sources += outputs
-
- was_mac_bundle_resource = source in mac_bundle_resources
- if was_mac_bundle_resource or \
- int(rule.get('process_outputs_as_mac_bundle_resources', False)):
- extra_mac_bundle_resources += outputs
- # Note: This is n_resources * n_outputs_in_rule. Put to-be-removed
- # items in a set and remove them all in a single pass if this becomes
- # a performance issue.
- if was_mac_bundle_resource:
- mac_bundle_resources.remove(source)
-
- extra_bindings = []
- for var in needed_variables:
- if var == 'root':
- extra_bindings.append(('root', cygwin_munge(root)))
- elif var == 'dirname':
- # '$dirname' is a parameter to the rule action, which means
- # it shouldn't be converted to a Ninja path. But we don't
- # want $!PRODUCT_DIR in there either.
- dirname_expanded = self.ExpandSpecial(dirname, self.base_to_build)
- extra_bindings.append(('dirname', cygwin_munge(dirname_expanded)))
- elif var == 'source':
- # '$source' is a parameter to the rule action, which means
- # it shouldn't be converted to a Ninja path. But we don't
- # want $!PRODUCT_DIR in there either.
- source_expanded = self.ExpandSpecial(source, self.base_to_build)
- extra_bindings.append(('source', cygwin_munge(source_expanded)))
- elif var == 'ext':
- extra_bindings.append(('ext', ext))
- elif var == 'name':
- extra_bindings.append(('name', cygwin_munge(basename)))
- else:
- assert var == None, repr(var)
-
- outputs = [self.GypPathToNinja(o, env) for o in outputs]
- if self.flavor == 'win':
- # WriteNewNinjaRule uses unique_name for creating an rsp file on win.
- extra_bindings.append(('unique_name',
- hashlib.md5(outputs[0]).hexdigest()))
- self.ninja.build(outputs, rule_name, self.GypPathToNinja(source),
- implicit=inputs,
- order_only=prebuild,
- variables=extra_bindings)
-
- all_outputs.extend(outputs)
-
- return all_outputs
-
- def WriteCopies(self, copies, prebuild, mac_bundle_depends):
- outputs = []
- env = self.GetToolchainEnv()
- for copy in copies:
- for path in copy['files']:
- # Normalize the path so trailing slashes don't confuse us.
- path = os.path.normpath(path)
- basename = os.path.split(path)[1]
- src = self.GypPathToNinja(path, env)
- dst = self.GypPathToNinja(os.path.join(copy['destination'], basename),
- env)
- outputs += self.ninja.build(dst, 'copy', src, order_only=prebuild)
- if self.is_mac_bundle:
- # gyp has mac_bundle_resources to copy things into a bundle's
- # Resources folder, but there's no built-in way to copy files to other
- # places in the bundle. Hence, some targets use copies for this. Check
- # if this file is copied into the current bundle, and if so add it to
- # the bundle depends so that dependent targets get rebuilt if the copy
- # input changes.
- if dst.startswith(self.xcode_settings.GetBundleContentsFolderPath()):
- mac_bundle_depends.append(dst)
-
- return outputs
-
- def WriteMacBundleResources(self, resources, bundle_depends):
- """Writes ninja edges for 'mac_bundle_resources'."""
- xcassets = []
- for output, res in gyp.xcode_emulation.GetMacBundleResources(
- generator_default_variables['PRODUCT_DIR'],
- self.xcode_settings, map(self.GypPathToNinja, resources)):
- output = self.ExpandSpecial(output)
- if os.path.splitext(output)[-1] != '.xcassets':
- isBinary = self.xcode_settings.IsBinaryOutputFormat(self.config_name)
- self.ninja.build(output, 'mac_tool', res,
- variables=[('mactool_cmd', 'copy-bundle-resource'), \
- ('binary', isBinary)])
- bundle_depends.append(output)
- else:
- xcassets.append(res)
- return xcassets
-
- def WriteMacXCassets(self, xcassets, bundle_depends):
- """Writes ninja edges for 'mac_bundle_resources' .xcassets files.
-
- This add an invocation of 'actool' via the 'mac_tool.py' helper script.
- It assumes that the assets catalogs define at least one imageset and
- thus an Assets.car file will be generated in the application resources
- directory. If this is not the case, then the build will probably be done
- at each invocation of ninja."""
- if not xcassets:
- return
-
- extra_arguments = {}
- settings_to_arg = {
- 'XCASSETS_APP_ICON': 'app-icon',
- 'XCASSETS_LAUNCH_IMAGE': 'launch-image',
- }
- settings = self.xcode_settings.xcode_settings[self.config_name]
- for settings_key, arg_name in settings_to_arg.iteritems():
- value = settings.get(settings_key)
- if value:
- extra_arguments[arg_name] = value
-
- partial_info_plist = None
- if extra_arguments:
- partial_info_plist = self.GypPathToUniqueOutput(
- 'assetcatalog_generated_info.plist')
- extra_arguments['output-partial-info-plist'] = partial_info_plist
-
- outputs = []
- outputs.append(
- os.path.join(
- self.xcode_settings.GetBundleResourceFolder(),
- 'Assets.car'))
- if partial_info_plist:
- outputs.append(partial_info_plist)
-
- keys = QuoteShellArgument(json.dumps(extra_arguments), self.flavor)
- extra_env = self.xcode_settings.GetPerTargetSettings()
- env = self.GetSortedXcodeEnv(additional_settings=extra_env)
- env = self.ComputeExportEnvString(env)
-
- bundle_depends.extend(self.ninja.build(
- outputs, 'compile_xcassets', xcassets,
- variables=[('env', env), ('keys', keys)]))
- return partial_info_plist
-
- def WriteMacInfoPlist(self, partial_info_plist, bundle_depends):
- """Write build rules for bundle Info.plist files."""
- info_plist, out, defines, extra_env = gyp.xcode_emulation.GetMacInfoPlist(
- generator_default_variables['PRODUCT_DIR'],
- self.xcode_settings, self.GypPathToNinja)
- if not info_plist:
- return
- out = self.ExpandSpecial(out)
- if defines:
- # Create an intermediate file to store preprocessed results.
- intermediate_plist = self.GypPathToUniqueOutput(
- os.path.basename(info_plist))
- defines = ' '.join([Define(d, self.flavor) for d in defines])
- info_plist = self.ninja.build(
- intermediate_plist, 'preprocess_infoplist', info_plist,
- variables=[('defines',defines)])
-
- env = self.GetSortedXcodeEnv(additional_settings=extra_env)
- env = self.ComputeExportEnvString(env)
-
- if partial_info_plist:
- intermediate_plist = self.GypPathToUniqueOutput('merged_info.plist')
- info_plist = self.ninja.build(
- intermediate_plist, 'merge_infoplist',
- [partial_info_plist, info_plist])
-
- keys = self.xcode_settings.GetExtraPlistItems(self.config_name)
- keys = QuoteShellArgument(json.dumps(keys), self.flavor)
- isBinary = self.xcode_settings.IsBinaryOutputFormat(self.config_name)
- self.ninja.build(out, 'copy_infoplist', info_plist,
- variables=[('env', env), ('keys', keys),
- ('binary', isBinary)])
- bundle_depends.append(out)
-
- def WriteSources(self, ninja_file, config_name, config, sources, predepends,
- precompiled_header, spec):
- """Write build rules to compile all of |sources|."""
- if self.toolset == 'host':
- self.ninja.variable('ar', '$ar_host')
- self.ninja.variable('cc', '$cc_host')
- self.ninja.variable('cxx', '$cxx_host')
- self.ninja.variable('ld', '$ld_host')
- self.ninja.variable('ldxx', '$ldxx_host')
- self.ninja.variable('nm', '$nm_host')
- self.ninja.variable('readelf', '$readelf_host')
-
- if self.flavor != 'mac' or len(self.archs) == 1:
- return self.WriteSourcesForArch(
- self.ninja, config_name, config, sources, predepends,
- precompiled_header, spec)
- else:
- return dict((arch, self.WriteSourcesForArch(
- self.arch_subninjas[arch], config_name, config, sources, predepends,
- precompiled_header, spec, arch=arch))
- for arch in self.archs)
-
- def WriteSourcesForArch(self, ninja_file, config_name, config, sources,
- predepends, precompiled_header, spec, arch=None):
- """Write build rules to compile all of |sources|."""
-
- extra_defines = []
- if self.flavor == 'mac':
- cflags = self.xcode_settings.GetCflags(config_name, arch=arch)
- cflags_c = self.xcode_settings.GetCflagsC(config_name)
- cflags_cc = self.xcode_settings.GetCflagsCC(config_name)
- cflags_objc = ['$cflags_c'] + \
- self.xcode_settings.GetCflagsObjC(config_name)
- cflags_objcc = ['$cflags_cc'] + \
- self.xcode_settings.GetCflagsObjCC(config_name)
- elif self.flavor == 'win':
- asmflags = self.msvs_settings.GetAsmflags(config_name)
- cflags = self.msvs_settings.GetCflags(config_name)
- cflags_c = self.msvs_settings.GetCflagsC(config_name)
- cflags_cc = self.msvs_settings.GetCflagsCC(config_name)
- extra_defines = self.msvs_settings.GetComputedDefines(config_name)
- # See comment at cc_command for why there's two .pdb files.
- pdbpath_c = pdbpath_cc = self.msvs_settings.GetCompilerPdbName(
- config_name, self.ExpandSpecial)
- if not pdbpath_c:
- obj = 'obj'
- if self.toolset != 'target':
- obj += '.' + self.toolset
- pdbpath = os.path.normpath(os.path.join(obj, self.base_dir, self.name))
- pdbpath_c = pdbpath + '.c.pdb'
- pdbpath_cc = pdbpath + '.cc.pdb'
- self.WriteVariableList(ninja_file, 'pdbname_c', [pdbpath_c])
- self.WriteVariableList(ninja_file, 'pdbname_cc', [pdbpath_cc])
- self.WriteVariableList(ninja_file, 'pchprefix', [self.name])
- else:
- cflags = config.get('cflags', [])
- cflags_c = config.get('cflags_c', [])
- cflags_cc = config.get('cflags_cc', [])
-
- # Respect environment variables related to build, but target-specific
- # flags can still override them.
- if self.toolset == 'target':
- cflags_c = (os.environ.get('CPPFLAGS', '').split() +
- os.environ.get('CFLAGS', '').split() + cflags_c)
- cflags_cc = (os.environ.get('CPPFLAGS', '').split() +
- os.environ.get('CXXFLAGS', '').split() + cflags_cc)
- elif self.toolset == 'host':
- cflags_c = (os.environ.get('CPPFLAGS_host', '').split() +
- os.environ.get('CFLAGS_host', '').split() + cflags_c)
- cflags_cc = (os.environ.get('CPPFLAGS_host', '').split() +
- os.environ.get('CXXFLAGS_host', '').split() + cflags_cc)
-
- defines = config.get('defines', []) + extra_defines
- self.WriteVariableList(ninja_file, 'defines',
- [Define(d, self.flavor) for d in defines])
- if self.flavor == 'win':
- self.WriteVariableList(ninja_file, 'asmflags',
- map(self.ExpandSpecial, asmflags))
- self.WriteVariableList(ninja_file, 'rcflags',
- [QuoteShellArgument(self.ExpandSpecial(f), self.flavor)
- for f in self.msvs_settings.GetRcflags(config_name,
- self.GypPathToNinja)])
-
- include_dirs = config.get('include_dirs', [])
-
- env = self.GetToolchainEnv()
- if self.flavor == 'win':
- include_dirs = self.msvs_settings.AdjustIncludeDirs(include_dirs,
- config_name)
- self.WriteVariableList(ninja_file, 'includes',
- [QuoteShellArgument('-I' + self.GypPathToNinja(i, env), self.flavor)
- for i in include_dirs])
-
- if self.flavor == 'win':
- midl_include_dirs = config.get('midl_include_dirs', [])
- midl_include_dirs = self.msvs_settings.AdjustMidlIncludeDirs(
- midl_include_dirs, config_name)
- self.WriteVariableList(ninja_file, 'midl_includes',
- [QuoteShellArgument('-I' + self.GypPathToNinja(i, env), self.flavor)
- for i in midl_include_dirs])
-
- pch_commands = precompiled_header.GetPchBuildCommands(arch)
- if self.flavor == 'mac':
- # Most targets use no precompiled headers, so only write these if needed.
- for ext, var in [('c', 'cflags_pch_c'), ('cc', 'cflags_pch_cc'),
- ('m', 'cflags_pch_objc'), ('mm', 'cflags_pch_objcc')]:
- include = precompiled_header.GetInclude(ext, arch)
- if include: ninja_file.variable(var, include)
-
- arflags = config.get('arflags', [])
-
- self.WriteVariableList(ninja_file, 'cflags',
- map(self.ExpandSpecial, cflags))
- self.WriteVariableList(ninja_file, 'cflags_c',
- map(self.ExpandSpecial, cflags_c))
- self.WriteVariableList(ninja_file, 'cflags_cc',
- map(self.ExpandSpecial, cflags_cc))
- if self.flavor == 'mac':
- self.WriteVariableList(ninja_file, 'cflags_objc',
- map(self.ExpandSpecial, cflags_objc))
- self.WriteVariableList(ninja_file, 'cflags_objcc',
- map(self.ExpandSpecial, cflags_objcc))
- self.WriteVariableList(ninja_file, 'arflags',
- map(self.ExpandSpecial, arflags))
- ninja_file.newline()
- outputs = []
- has_rc_source = False
- for source in sources:
- filename, ext = os.path.splitext(source)
- ext = ext[1:]
- obj_ext = self.obj_ext
- if ext in ('cc', 'cpp', 'cxx'):
- command = 'cxx'
- self.uses_cpp = True
- elif ext == 'c' or (ext == 'S' and self.flavor != 'win'):
- command = 'cc'
- elif ext == 's' and self.flavor != 'win': # Doesn't generate .o.d files.
- command = 'cc_s'
- elif (self.flavor == 'win' and ext == 'asm' and
- not self.msvs_settings.HasExplicitAsmRules(spec)):
- command = 'asm'
- # Add the _asm suffix as msvs is capable of handling .cc and
- # .asm files of the same name without collision.
- obj_ext = '_asm.obj'
- elif self.flavor == 'mac' and ext == 'm':
- command = 'objc'
- elif self.flavor == 'mac' and ext == 'mm':
- command = 'objcxx'
- self.uses_cpp = True
- elif self.flavor == 'win' and ext == 'rc':
- command = 'rc'
- obj_ext = '.res'
- has_rc_source = True
- else:
- # Ignore unhandled extensions.
- continue
- input = self.GypPathToNinja(source)
- output = self.GypPathToUniqueOutput(filename + obj_ext)
- if arch is not None:
- output = AddArch(output, arch)
- implicit = precompiled_header.GetObjDependencies([input], [output], arch)
- variables = []
- if self.flavor == 'win':
- variables, output, implicit = precompiled_header.GetFlagsModifications(
- input, output, implicit, command, cflags_c, cflags_cc,
- self.ExpandSpecial)
- ninja_file.build(output, command, input,
- implicit=[gch for _, _, gch in implicit],
- order_only=predepends, variables=variables)
- outputs.append(output)
-
- if has_rc_source:
- resource_include_dirs = config.get('resource_include_dirs', include_dirs)
- self.WriteVariableList(ninja_file, 'resource_includes',
- [QuoteShellArgument('-I' + self.GypPathToNinja(i, env), self.flavor)
- for i in resource_include_dirs])
-
- self.WritePchTargets(ninja_file, pch_commands)
-
- ninja_file.newline()
- return outputs
-
- def WritePchTargets(self, ninja_file, pch_commands):
- """Writes ninja rules to compile prefix headers."""
- if not pch_commands:
- return
-
- for gch, lang_flag, lang, input in pch_commands:
- var_name = {
- 'c': 'cflags_pch_c',
- 'cc': 'cflags_pch_cc',
- 'm': 'cflags_pch_objc',
- 'mm': 'cflags_pch_objcc',
- }[lang]
-
- map = { 'c': 'cc', 'cc': 'cxx', 'm': 'objc', 'mm': 'objcxx', }
- cmd = map.get(lang)
- ninja_file.build(gch, cmd, input, variables=[(var_name, lang_flag)])
-
- def WriteLink(self, spec, config_name, config, link_deps):
- """Write out a link step. Fills out target.binary. """
- if self.flavor != 'mac' or len(self.archs) == 1:
- return self.WriteLinkForArch(
- self.ninja, spec, config_name, config, link_deps)
- else:
- output = self.ComputeOutput(spec)
- inputs = [self.WriteLinkForArch(self.arch_subninjas[arch], spec,
- config_name, config, link_deps[arch],
- arch=arch)
- for arch in self.archs]
- extra_bindings = []
- build_output = output
- if not self.is_mac_bundle:
- self.AppendPostbuildVariable(extra_bindings, spec, output, output)
-
- # TODO(yyanagisawa): more work needed to fix:
- # https://code.google.com/p/gyp/issues/detail?id=411
- if (spec['type'] in ('shared_library', 'loadable_module') and
- not self.is_mac_bundle):
- extra_bindings.append(('lib', output))
- self.ninja.build([output, output + '.TOC'], 'solipo', inputs,
- variables=extra_bindings)
- else:
- self.ninja.build(build_output, 'lipo', inputs, variables=extra_bindings)
- return output
-
- def WriteLinkForArch(self, ninja_file, spec, config_name, config,
- link_deps, arch=None):
- """Write out a link step. Fills out target.binary. """
- command = {
- 'executable': 'link',
- 'loadable_module': 'solink_module',
- 'shared_library': 'solink',
- }[spec['type']]
- command_suffix = ''
-
- implicit_deps = set()
- solibs = set()
- order_deps = set()
-
- if 'dependencies' in spec:
- # Two kinds of dependencies:
- # - Linkable dependencies (like a .a or a .so): add them to the link line.
- # - Non-linkable dependencies (like a rule that generates a file
- # and writes a stamp file): add them to implicit_deps
- extra_link_deps = set()
- for dep in spec['dependencies']:
- target = self.target_outputs.get(dep)
- if not target:
- continue
- linkable = target.Linkable()
- if linkable:
- new_deps = []
- if (self.flavor == 'win' and
- target.component_objs and
- self.msvs_settings.IsUseLibraryDependencyInputs(config_name)):
- new_deps = target.component_objs
- if target.compile_deps:
- order_deps.add(target.compile_deps)
- elif self.flavor == 'win' and target.import_lib:
- new_deps = [target.import_lib]
- elif target.UsesToc(self.flavor):
- solibs.add(target.binary)
- implicit_deps.add(target.binary + '.TOC')
- else:
- new_deps = [target.binary]
- for new_dep in new_deps:
- if new_dep not in extra_link_deps:
- extra_link_deps.add(new_dep)
- link_deps.append(new_dep)
-
- final_output = target.FinalOutput()
- if not linkable or final_output != target.binary:
- implicit_deps.add(final_output)
-
- extra_bindings = []
- if self.uses_cpp and self.flavor != 'win':
- extra_bindings.append(('ld', '$ldxx'))
-
- output = self.ComputeOutput(spec, arch)
- if arch is None and not self.is_mac_bundle:
- self.AppendPostbuildVariable(extra_bindings, spec, output, output)
-
- is_executable = spec['type'] == 'executable'
- # The ldflags config key is not used on mac or win. On those platforms
- # linker flags are set via xcode_settings and msvs_settings, respectively.
- env_ldflags = os.environ.get('LDFLAGS', '').split()
- if self.flavor == 'mac':
- ldflags = self.xcode_settings.GetLdflags(config_name,
- self.ExpandSpecial(generator_default_variables['PRODUCT_DIR']),
- self.GypPathToNinja, arch)
- ldflags = env_ldflags + ldflags
- elif self.flavor == 'win':
- manifest_base_name = self.GypPathToUniqueOutput(
- self.ComputeOutputFileName(spec))
- ldflags, intermediate_manifest, manifest_files = \
- self.msvs_settings.GetLdflags(config_name, self.GypPathToNinja,
- self.ExpandSpecial, manifest_base_name,
- output, is_executable,
- self.toplevel_build)
- ldflags = env_ldflags + ldflags
- self.WriteVariableList(ninja_file, 'manifests', manifest_files)
- implicit_deps = implicit_deps.union(manifest_files)
- if intermediate_manifest:
- self.WriteVariableList(
- ninja_file, 'intermediatemanifest', [intermediate_manifest])
- command_suffix = _GetWinLinkRuleNameSuffix(
- self.msvs_settings.IsEmbedManifest(config_name))
- def_file = self.msvs_settings.GetDefFile(self.GypPathToNinja)
- if def_file:
- implicit_deps.add(def_file)
- else:
- # Respect environment variables related to build, but target-specific
- # flags can still override them.
- ldflags = env_ldflags + config.get('ldflags', [])
- if is_executable and len(solibs):
- rpath = 'lib/'
- if self.toolset != 'target':
- rpath += self.toolset
- ldflags.append(r'-Wl,-rpath=\$$ORIGIN/%s' % rpath)
- ldflags.append('-Wl,-rpath-link=%s' % rpath)
- self.WriteVariableList(ninja_file, 'ldflags',
- map(self.ExpandSpecial, ldflags))
-
- library_dirs = config.get('library_dirs', [])
- if self.flavor == 'win':
- library_dirs = [self.msvs_settings.ConvertVSMacros(l, config_name)
- for l in library_dirs]
- library_dirs = ['/LIBPATH:' + QuoteShellArgument(self.GypPathToNinja(l),
- self.flavor)
- for l in library_dirs]
- else:
- library_dirs = [QuoteShellArgument('-L' + self.GypPathToNinja(l),
- self.flavor)
- for l in library_dirs]
-
- libraries = gyp.common.uniquer(map(self.ExpandSpecial,
- spec.get('libraries', [])))
- if self.flavor == 'mac':
- libraries = self.xcode_settings.AdjustLibraries(libraries, config_name)
- elif self.flavor == 'win':
- libraries = self.msvs_settings.AdjustLibraries(libraries)
-
- self.WriteVariableList(ninja_file, 'libs', library_dirs + libraries)
-
- linked_binary = output
-
- if command in ('solink', 'solink_module'):
- extra_bindings.append(('soname', os.path.split(output)[1]))
- extra_bindings.append(('lib',
- gyp.common.EncodePOSIXShellArgument(output)))
- if self.flavor != 'win':
- link_file_list = output
- if self.is_mac_bundle:
- # 'Dependency Framework.framework/Versions/A/Dependency Framework' ->
- # 'Dependency Framework.framework.rsp'
- link_file_list = self.xcode_settings.GetWrapperName()
- if arch:
- link_file_list += '.' + arch
- link_file_list += '.rsp'
- # If an rspfile contains spaces, ninja surrounds the filename with
- # quotes around it and then passes it to open(), creating a file with
- # quotes in its name (and when looking for the rsp file, the name
- # makes it through bash which strips the quotes) :-/
- link_file_list = link_file_list.replace(' ', '_')
- extra_bindings.append(
- ('link_file_list',
- gyp.common.EncodePOSIXShellArgument(link_file_list)))
- if self.flavor == 'win':
- extra_bindings.append(('binary', output))
- if ('/NOENTRY' not in ldflags and
- not self.msvs_settings.GetNoImportLibrary(config_name)):
- self.target.import_lib = output + '.lib'
- extra_bindings.append(('implibflag',
- '/IMPLIB:%s' % self.target.import_lib))
- pdbname = self.msvs_settings.GetPDBName(
- config_name, self.ExpandSpecial, output + '.pdb')
- output = [output, self.target.import_lib]
- if pdbname:
- output.append(pdbname)
- elif not self.is_mac_bundle:
- output = [output, output + '.TOC']
- else:
- command = command + '_notoc'
- elif self.flavor == 'win':
- extra_bindings.append(('binary', output))
- pdbname = self.msvs_settings.GetPDBName(
- config_name, self.ExpandSpecial, output + '.pdb')
- if pdbname:
- output = [output, pdbname]
-
-
- if len(solibs):
- extra_bindings.append(('solibs', gyp.common.EncodePOSIXShellList(solibs)))
-
- ninja_file.build(output, command + command_suffix, link_deps,
- implicit=list(implicit_deps),
- order_only=list(order_deps),
- variables=extra_bindings)
- return linked_binary
-
- def WriteTarget(self, spec, config_name, config, link_deps, compile_deps):
- extra_link_deps = any(self.target_outputs.get(dep).Linkable()
- for dep in spec.get('dependencies', [])
- if dep in self.target_outputs)
- if spec['type'] == 'none' or (not link_deps and not extra_link_deps):
- # TODO(evan): don't call this function for 'none' target types, as
- # it doesn't do anything, and we fake out a 'binary' with a stamp file.
- self.target.binary = compile_deps
- self.target.type = 'none'
- elif spec['type'] == 'static_library':
- self.target.binary = self.ComputeOutput(spec)
- if (self.flavor not in ('mac', 'openbsd', 'netbsd', 'win') and not
- self.is_standalone_static_library):
- self.ninja.build(self.target.binary, 'alink_thin', link_deps,
- order_only=compile_deps)
- else:
- variables = []
- if self.xcode_settings:
- libtool_flags = self.xcode_settings.GetLibtoolflags(config_name)
- if libtool_flags:
- variables.append(('libtool_flags', libtool_flags))
- if self.msvs_settings:
- libflags = self.msvs_settings.GetLibFlags(config_name,
- self.GypPathToNinja)
- variables.append(('libflags', libflags))
-
- if self.flavor != 'mac' or len(self.archs) == 1:
- self.AppendPostbuildVariable(variables, spec,
- self.target.binary, self.target.binary)
- self.ninja.build(self.target.binary, 'alink', link_deps,
- order_only=compile_deps, variables=variables)
- else:
- inputs = []
- for arch in self.archs:
- output = self.ComputeOutput(spec, arch)
- self.arch_subninjas[arch].build(output, 'alink', link_deps[arch],
- order_only=compile_deps,
- variables=variables)
- inputs.append(output)
- # TODO: It's not clear if libtool_flags should be passed to the alink
- # call that combines single-arch .a files into a fat .a file.
- self.AppendPostbuildVariable(variables, spec,
- self.target.binary, self.target.binary)
- self.ninja.build(self.target.binary, 'alink', inputs,
- # FIXME: test proving order_only=compile_deps isn't
- # needed.
- variables=variables)
- else:
- self.target.binary = self.WriteLink(spec, config_name, config, link_deps)
- return self.target.binary
-
- def WriteMacBundle(self, spec, mac_bundle_depends, is_empty):
- assert self.is_mac_bundle
- package_framework = spec['type'] in ('shared_library', 'loadable_module')
- output = self.ComputeMacBundleOutput()
- if is_empty:
- output += '.stamp'
- variables = []
- self.AppendPostbuildVariable(variables, spec, output, self.target.binary,
- is_command_start=not package_framework)
- if package_framework and not is_empty:
- variables.append(('version', self.xcode_settings.GetFrameworkVersion()))
- self.ninja.build(output, 'package_framework', mac_bundle_depends,
- variables=variables)
- else:
- self.ninja.build(output, 'stamp', mac_bundle_depends,
- variables=variables)
- self.target.bundle = output
- return output
-
- def GetToolchainEnv(self, additional_settings=None):
- """Returns the variables toolchain would set for build steps."""
- env = self.GetSortedXcodeEnv(additional_settings=additional_settings)
- if self.flavor == 'win':
- env = self.GetMsvsToolchainEnv(
- additional_settings=additional_settings)
- return env
-
- def GetMsvsToolchainEnv(self, additional_settings=None):
- """Returns the variables Visual Studio would set for build steps."""
- return self.msvs_settings.GetVSMacroEnv('$!PRODUCT_DIR',
- config=self.config_name)
-
- def GetSortedXcodeEnv(self, additional_settings=None):
- """Returns the variables Xcode would set for build steps."""
- assert self.abs_build_dir
- abs_build_dir = self.abs_build_dir
- return gyp.xcode_emulation.GetSortedXcodeEnv(
- self.xcode_settings, abs_build_dir,
- os.path.join(abs_build_dir, self.build_to_base), self.config_name,
- additional_settings)
-
- def GetSortedXcodePostbuildEnv(self):
- """Returns the variables Xcode would set for postbuild steps."""
- postbuild_settings = {}
- # CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack.
- # TODO(thakis): It would be nice to have some general mechanism instead.
- strip_save_file = self.xcode_settings.GetPerTargetSetting(
- 'CHROMIUM_STRIP_SAVE_FILE')
- if strip_save_file:
- postbuild_settings['CHROMIUM_STRIP_SAVE_FILE'] = strip_save_file
- return self.GetSortedXcodeEnv(additional_settings=postbuild_settings)
-
- def AppendPostbuildVariable(self, variables, spec, output, binary,
- is_command_start=False):
- """Adds a 'postbuild' variable if there is a postbuild for |output|."""
- postbuild = self.GetPostbuildCommand(spec, output, binary, is_command_start)
- if postbuild:
- variables.append(('postbuilds', postbuild))
-
- def GetPostbuildCommand(self, spec, output, output_binary, is_command_start):
- """Returns a shell command that runs all the postbuilds, and removes
- |output| if any of them fails. If |is_command_start| is False, then the
- returned string will start with ' && '."""
- if not self.xcode_settings or spec['type'] == 'none' or not output:
- return ''
- output = QuoteShellArgument(output, self.flavor)
- postbuilds = gyp.xcode_emulation.GetSpecPostbuildCommands(spec, quiet=True)
- if output_binary is not None:
- postbuilds = self.xcode_settings.AddImplicitPostbuilds(
- self.config_name,
- os.path.normpath(os.path.join(self.base_to_build, output)),
- QuoteShellArgument(
- os.path.normpath(os.path.join(self.base_to_build, output_binary)),
- self.flavor),
- postbuilds, quiet=True)
-
- if not postbuilds:
- return ''
- # Postbuilds expect to be run in the gyp file's directory, so insert an
- # implicit postbuild to cd to there.
- postbuilds.insert(0, gyp.common.EncodePOSIXShellList(
- ['cd', self.build_to_base]))
- env = self.ComputeExportEnvString(self.GetSortedXcodePostbuildEnv())
- # G will be non-null if any postbuild fails. Run all postbuilds in a
- # subshell.
- commands = env + ' (' + \
- ' && '.join([ninja_syntax.escape(command) for command in postbuilds])
- command_string = (commands + '); G=$$?; '
- # Remove the final output if any postbuild failed.
- '((exit $$G) || rm -rf %s) ' % output + '&& exit $$G)')
- if is_command_start:
- return '(' + command_string + ' && '
- else:
- return '$ && (' + command_string
-
- def ComputeExportEnvString(self, env):
- """Given an environment, returns a string looking like
- 'export FOO=foo; export BAR="${FOO} bar;'
- that exports |env| to the shell."""
- export_str = []
- for k, v in env:
- export_str.append('export %s=%s;' %
- (k, ninja_syntax.escape(gyp.common.EncodePOSIXShellArgument(v))))
- return ' '.join(export_str)
-
- def ComputeMacBundleOutput(self):
- """Return the 'output' (full output path) to a bundle output directory."""
- assert self.is_mac_bundle
- path = generator_default_variables['PRODUCT_DIR']
- return self.ExpandSpecial(
- os.path.join(path, self.xcode_settings.GetWrapperName()))
-
- def ComputeOutputFileName(self, spec, type=None):
- """Compute the filename of the final output for the current target."""
- if not type:
- type = spec['type']
-
- default_variables = copy.copy(generator_default_variables)
- CalculateVariables(default_variables, {'flavor': self.flavor})
-
- # Compute filename prefix: the product prefix, or a default for
- # the product type.
- DEFAULT_PREFIX = {
- 'loadable_module': default_variables['SHARED_LIB_PREFIX'],
- 'shared_library': default_variables['SHARED_LIB_PREFIX'],
- 'static_library': default_variables['STATIC_LIB_PREFIX'],
- 'executable': default_variables['EXECUTABLE_PREFIX'],
- }
- prefix = spec.get('product_prefix', DEFAULT_PREFIX.get(type, ''))
-
- # Compute filename extension: the product extension, or a default
- # for the product type.
- DEFAULT_EXTENSION = {
- 'loadable_module': default_variables['SHARED_LIB_SUFFIX'],
- 'shared_library': default_variables['SHARED_LIB_SUFFIX'],
- 'static_library': default_variables['STATIC_LIB_SUFFIX'],
- 'executable': default_variables['EXECUTABLE_SUFFIX'],
- }
- extension = spec.get('product_extension')
- if extension:
- extension = '.' + extension
- else:
- extension = DEFAULT_EXTENSION.get(type, '')
-
- if 'product_name' in spec:
- # If we were given an explicit name, use that.
- target = spec['product_name']
- else:
- # Otherwise, derive a name from the target name.
- target = spec['target_name']
- if prefix == 'lib':
- # Snip out an extra 'lib' from libs if appropriate.
- target = StripPrefix(target, 'lib')
-
- if type in ('static_library', 'loadable_module', 'shared_library',
- 'executable'):
- return '%s%s%s' % (prefix, target, extension)
- elif type == 'none':
- return '%s.stamp' % target
- else:
- raise Exception('Unhandled output type %s' % type)
-
- def ComputeOutput(self, spec, arch=None):
- """Compute the path for the final output of the spec."""
- type = spec['type']
-
- if self.flavor == 'win':
- override = self.msvs_settings.GetOutputName(self.config_name,
- self.ExpandSpecial)
- if override:
- return override
-
- if arch is None and self.flavor == 'mac' and type in (
- 'static_library', 'executable', 'shared_library', 'loadable_module'):
- filename = self.xcode_settings.GetExecutablePath()
- else:
- filename = self.ComputeOutputFileName(spec, type)
-
- if arch is None and 'product_dir' in spec:
- path = os.path.join(spec['product_dir'], filename)
- return self.ExpandSpecial(path)
-
- # Some products go into the output root, libraries go into shared library
- # dir, and everything else goes into the normal place.
- type_in_output_root = ['executable', 'loadable_module']
- if self.flavor == 'mac' and self.toolset == 'target':
- type_in_output_root += ['shared_library', 'static_library']
- elif self.flavor == 'win' and self.toolset == 'target':
- type_in_output_root += ['shared_library']
-
- if arch is not None:
- # Make sure partial executables don't end up in a bundle or the regular
- # output directory.
- archdir = 'arch'
- if self.toolset != 'target':
- archdir = os.path.join('arch', '%s' % self.toolset)
- return os.path.join(archdir, AddArch(filename, arch))
- elif type in type_in_output_root or self.is_standalone_static_library:
- return filename
- elif type == 'shared_library':
- libdir = 'lib'
- if self.toolset != 'target':
- libdir = os.path.join('lib', '%s' % self.toolset)
- return os.path.join(libdir, filename)
- else:
- return self.GypPathToUniqueOutput(filename, qualified=False)
-
- def WriteVariableList(self, ninja_file, var, values):
- assert not isinstance(values, str)
- if values is None:
- values = []
- ninja_file.variable(var, ' '.join(values))
-
- def WriteNewNinjaRule(self, name, args, description, is_cygwin, env, pool,
- depfile=None):
- """Write out a new ninja "rule" statement for a given command.
-
- Returns the name of the new rule, and a copy of |args| with variables
- expanded."""
-
- if self.flavor == 'win':
- args = [self.msvs_settings.ConvertVSMacros(
- arg, self.base_to_build, config=self.config_name)
- for arg in args]
- description = self.msvs_settings.ConvertVSMacros(
- description, config=self.config_name)
- elif self.flavor == 'mac':
- # |env| is an empty list on non-mac.
- args = [gyp.xcode_emulation.ExpandEnvVars(arg, env) for arg in args]
- description = gyp.xcode_emulation.ExpandEnvVars(description, env)
-
- # TODO: we shouldn't need to qualify names; we do it because
- # currently the ninja rule namespace is global, but it really
- # should be scoped to the subninja.
- rule_name = self.name
- if self.toolset == 'target':
- rule_name += '.' + self.toolset
- rule_name += '.' + name
- rule_name = re.sub('[^a-zA-Z0-9_]', '_', rule_name)
-
- # Remove variable references, but not if they refer to the magic rule
- # variables. This is not quite right, as it also protects these for
- # actions, not just for rules where they are valid. Good enough.
- protect = [ '${root}', '${dirname}', '${source}', '${ext}', '${name}' ]
- protect = '(?!' + '|'.join(map(re.escape, protect)) + ')'
- description = re.sub(protect + r'\$', '_', description)
-
- # gyp dictates that commands are run from the base directory.
- # cd into the directory before running, and adjust paths in
- # the arguments to point to the proper locations.
- rspfile = None
- rspfile_content = None
- args = [self.ExpandSpecial(arg, self.base_to_build) for arg in args]
- if self.flavor == 'win':
- rspfile = rule_name + '.$unique_name.rsp'
- # The cygwin case handles this inside the bash sub-shell.
- run_in = '' if is_cygwin else ' ' + self.build_to_base
- if is_cygwin:
- rspfile_content = self.msvs_settings.BuildCygwinBashCommandLine(
- args, self.build_to_base)
- else:
- rspfile_content = gyp.msvs_emulation.EncodeRspFileList(args)
- command = ('%s gyp-win-tool action-wrapper $arch ' % sys.executable +
- rspfile + run_in)
- else:
- env = self.ComputeExportEnvString(env)
- command = gyp.common.EncodePOSIXShellList(args)
- command = 'cd %s; ' % self.build_to_base + env + command
-
- # GYP rules/actions express being no-ops by not touching their outputs.
- # Avoid executing downstream dependencies in this case by specifying
- # restat=1 to ninja.
- self.ninja.rule(rule_name, command, description, depfile=depfile,
- restat=True, pool=pool,
- rspfile=rspfile, rspfile_content=rspfile_content)
- self.ninja.newline()
-
- return rule_name, args
-
-
-def CalculateVariables(default_variables, params):
- """Calculate additional variables for use in the build (called by gyp)."""
- global generator_additional_non_configuration_keys
- global generator_additional_path_sections
- flavor = gyp.common.GetFlavor(params)
- if flavor == 'mac':
- default_variables.setdefault('OS', 'mac')
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.dylib')
- default_variables.setdefault('SHARED_LIB_DIR',
- generator_default_variables['PRODUCT_DIR'])
- default_variables.setdefault('LIB_DIR',
- generator_default_variables['PRODUCT_DIR'])
-
- # Copy additional generator configuration data from Xcode, which is shared
- # by the Mac Ninja generator.
- import gyp.generator.xcode as xcode_generator
- generator_additional_non_configuration_keys = getattr(xcode_generator,
- 'generator_additional_non_configuration_keys', [])
- generator_additional_path_sections = getattr(xcode_generator,
- 'generator_additional_path_sections', [])
- global generator_extra_sources_for_rules
- generator_extra_sources_for_rules = getattr(xcode_generator,
- 'generator_extra_sources_for_rules', [])
- elif flavor == 'win':
- exts = gyp.MSVSUtil.TARGET_TYPE_EXT
- default_variables.setdefault('OS', 'win')
- default_variables['EXECUTABLE_SUFFIX'] = '.' + exts['executable']
- default_variables['STATIC_LIB_PREFIX'] = ''
- default_variables['STATIC_LIB_SUFFIX'] = '.' + exts['static_library']
- default_variables['SHARED_LIB_PREFIX'] = ''
- default_variables['SHARED_LIB_SUFFIX'] = '.' + exts['shared_library']
-
- # Copy additional generator configuration data from VS, which is shared
- # by the Windows Ninja generator.
- import gyp.generator.msvs as msvs_generator
- generator_additional_non_configuration_keys = getattr(msvs_generator,
- 'generator_additional_non_configuration_keys', [])
- generator_additional_path_sections = getattr(msvs_generator,
- 'generator_additional_path_sections', [])
-
- gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
- else:
- operating_system = flavor
- if flavor == 'android':
- operating_system = 'linux' # Keep this legacy behavior for now.
- default_variables.setdefault('OS', operating_system)
- default_variables.setdefault('SHARED_LIB_SUFFIX', '.so')
- default_variables.setdefault('SHARED_LIB_DIR',
- os.path.join('$!PRODUCT_DIR', 'lib'))
- default_variables.setdefault('LIB_DIR',
- os.path.join('$!PRODUCT_DIR', 'obj'))
-
-def ComputeOutputDir(params):
- """Returns the path from the toplevel_dir to the build output directory."""
- # generator_dir: relative path from pwd to where make puts build files.
- # Makes migrating from make to ninja easier, ninja doesn't put anything here.
- generator_dir = os.path.relpath(params['options'].generator_output or '.')
-
- # output_dir: relative path from generator_dir to the build directory.
- output_dir = params.get('generator_flags', {}).get('output_dir', 'out')
-
- # Relative path from source root to our output files. e.g. "out"
- return os.path.normpath(os.path.join(generator_dir, output_dir))
-
-
-def CalculateGeneratorInputInfo(params):
- """Called by __init__ to initialize generator values based on params."""
- # E.g. "out/gypfiles"
- toplevel = params['options'].toplevel_dir
- qualified_out_dir = os.path.normpath(os.path.join(
- toplevel, ComputeOutputDir(params), 'gypfiles'))
-
- global generator_filelist_paths
- generator_filelist_paths = {
- 'toplevel': toplevel,
- 'qualified_out_dir': qualified_out_dir,
- }
-
-
-def OpenOutput(path, mode='w'):
- """Open |path| for writing, creating directories if necessary."""
- gyp.common.EnsureDirExists(path)
- return open(path, mode)
-
-
-def CommandWithWrapper(cmd, wrappers, prog):
- wrapper = wrappers.get(cmd, '')
- if wrapper:
- return wrapper + ' ' + prog
- return prog
-
-
-def GetDefaultConcurrentLinks():
- """Returns a best-guess for a number of concurrent links."""
- pool_size = int(os.environ.get('GYP_LINK_CONCURRENCY', 0))
- if pool_size:
- return pool_size
-
- if sys.platform in ('win32', 'cygwin'):
- import ctypes
-
- class MEMORYSTATUSEX(ctypes.Structure):
- _fields_ = [
- ("dwLength", ctypes.c_ulong),
- ("dwMemoryLoad", ctypes.c_ulong),
- ("ullTotalPhys", ctypes.c_ulonglong),
- ("ullAvailPhys", ctypes.c_ulonglong),
- ("ullTotalPageFile", ctypes.c_ulonglong),
- ("ullAvailPageFile", ctypes.c_ulonglong),
- ("ullTotalVirtual", ctypes.c_ulonglong),
- ("ullAvailVirtual", ctypes.c_ulonglong),
- ("sullAvailExtendedVirtual", ctypes.c_ulonglong),
- ]
-
- stat = MEMORYSTATUSEX()
- stat.dwLength = ctypes.sizeof(stat)
- ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(stat))
-
- # VS 2015 uses 20% more working set than VS 2013 and can consume all RAM
- # on a 64 GB machine.
- mem_limit = max(1, stat.ullTotalPhys / (5 * (2 ** 30))) # total / 5GB
- hard_cap = max(1, int(os.environ.get('GYP_LINK_CONCURRENCY_MAX', 2**32)))
- return min(mem_limit, hard_cap)
- elif sys.platform.startswith('linux'):
- if os.path.exists("/proc/meminfo"):
- with open("/proc/meminfo") as meminfo:
- memtotal_re = re.compile(r'^MemTotal:\s*(\d*)\s*kB')
- for line in meminfo:
- match = memtotal_re.match(line)
- if not match:
- continue
- # Allow 8Gb per link on Linux because Gold is quite memory hungry
- return max(1, int(match.group(1)) / (8 * (2 ** 20)))
- return 1
- elif sys.platform == 'darwin':
- try:
- avail_bytes = int(subprocess.check_output(['sysctl', '-n', 'hw.memsize']))
- # A static library debug build of Chromium's unit_tests takes ~2.7GB, so
- # 4GB per ld process allows for some more bloat.
- return max(1, avail_bytes / (4 * (2 ** 30))) # total / 4GB
- except:
- return 1
- else:
- # TODO(scottmg): Implement this for other platforms.
- return 1
-
-
-def _GetWinLinkRuleNameSuffix(embed_manifest):
- """Returns the suffix used to select an appropriate linking rule depending on
- whether the manifest embedding is enabled."""
- return '_embed' if embed_manifest else ''
-
-
-def _AddWinLinkRules(master_ninja, embed_manifest):
- """Adds link rules for Windows platform to |master_ninja|."""
- def FullLinkCommand(ldcmd, out, binary_type):
- resource_name = {
- 'exe': '1',
- 'dll': '2',
- }[binary_type]
- return '%(python)s gyp-win-tool link-with-manifests $arch %(embed)s ' \
- '%(out)s "%(ldcmd)s" %(resname)s $mt $rc "$intermediatemanifest" ' \
- '$manifests' % {
- 'python': sys.executable,
- 'out': out,
- 'ldcmd': ldcmd,
- 'resname': resource_name,
- 'embed': embed_manifest }
- rule_name_suffix = _GetWinLinkRuleNameSuffix(embed_manifest)
- use_separate_mspdbsrv = (
- int(os.environ.get('GYP_USE_SEPARATE_MSPDBSRV', '0')) != 0)
- dlldesc = 'LINK%s(DLL) $binary' % rule_name_suffix.upper()
- dllcmd = ('%s gyp-win-tool link-wrapper $arch %s '
- '$ld /nologo $implibflag /DLL /OUT:$binary '
- '@$binary.rsp' % (sys.executable, use_separate_mspdbsrv))
- dllcmd = FullLinkCommand(dllcmd, '$binary', 'dll')
- master_ninja.rule('solink' + rule_name_suffix,
- description=dlldesc, command=dllcmd,
- rspfile='$binary.rsp',
- rspfile_content='$libs $in_newline $ldflags',
- restat=True,
- pool='link_pool')
- master_ninja.rule('solink_module' + rule_name_suffix,
- description=dlldesc, command=dllcmd,
- rspfile='$binary.rsp',
- rspfile_content='$libs $in_newline $ldflags',
- restat=True,
- pool='link_pool')
- # Note that ldflags goes at the end so that it has the option of
- # overriding default settings earlier in the command line.
- exe_cmd = ('%s gyp-win-tool link-wrapper $arch %s '
- '$ld /nologo /OUT:$binary @$binary.rsp' %
- (sys.executable, use_separate_mspdbsrv))
- exe_cmd = FullLinkCommand(exe_cmd, '$binary', 'exe')
- master_ninja.rule('link' + rule_name_suffix,
- description='LINK%s $binary' % rule_name_suffix.upper(),
- command=exe_cmd,
- rspfile='$binary.rsp',
- rspfile_content='$in_newline $libs $ldflags',
- pool='link_pool')
-
-
-def GenerateOutputForConfig(target_list, target_dicts, data, params,
- config_name):
- options = params['options']
- flavor = gyp.common.GetFlavor(params)
- generator_flags = params.get('generator_flags', {})
-
- # build_dir: relative path from source root to our output files.
- # e.g. "out/Debug"
- build_dir = os.path.normpath(
- os.path.join(ComputeOutputDir(params), config_name))
-
- toplevel_build = os.path.join(options.toplevel_dir, build_dir)
-
- master_ninja_file = OpenOutput(os.path.join(toplevel_build, 'build.ninja'))
- master_ninja = ninja_syntax.Writer(master_ninja_file, width=120)
-
- # Put build-time support tools in out/{config_name}.
- gyp.common.CopyTool(flavor, toplevel_build)
-
- # Grab make settings for CC/CXX.
- # The rules are
- # - The priority from low to high is gcc/g++, the 'make_global_settings' in
- # gyp, the environment variable.
- # - If there is no 'make_global_settings' for CC.host/CXX.host or
- # 'CC_host'/'CXX_host' enviroment variable, cc_host/cxx_host should be set
- # to cc/cxx.
- if flavor == 'win':
- ar = 'lib.exe'
- # cc and cxx must be set to the correct architecture by overriding with one
- # of cl_x86 or cl_x64 below.
- cc = 'UNSET'
- cxx = 'UNSET'
- ld = 'link.exe'
- ld_host = '$ld'
- else:
- ar = 'ar'
- cc = 'cc'
- cxx = 'c++'
- ld = '$cc'
- ldxx = '$cxx'
- ld_host = '$cc_host'
- ldxx_host = '$cxx_host'
-
- ar_host = 'ar'
- cc_host = None
- cxx_host = None
- cc_host_global_setting = None
- cxx_host_global_setting = None
- clang_cl = None
- nm = 'nm'
- nm_host = 'nm'
- readelf = 'readelf'
- readelf_host = 'readelf'
-
- build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
- make_global_settings = data[build_file].get('make_global_settings', [])
- build_to_root = gyp.common.InvertRelativePath(build_dir,
- options.toplevel_dir)
- wrappers = {}
- for key, value in make_global_settings:
- if key == 'AR':
- ar = os.path.join(build_to_root, value)
- if key == 'AR.host':
- ar_host = os.path.join(build_to_root, value)
- if key == 'CC':
- cc = os.path.join(build_to_root, value)
- if cc.endswith('clang-cl'):
- clang_cl = cc
- if key == 'CXX':
- cxx = os.path.join(build_to_root, value)
- if key == 'CC.host':
- cc_host = os.path.join(build_to_root, value)
- cc_host_global_setting = value
- if key == 'CXX.host':
- cxx_host = os.path.join(build_to_root, value)
- cxx_host_global_setting = value
- if key == 'LD':
- ld = os.path.join(build_to_root, value)
- if key == 'LD.host':
- ld_host = os.path.join(build_to_root, value)
- if key == 'LDXX':
- ldxx = os.path.join(build_to_root, value)
- if key == 'LDXX.host':
- ldxx_host = os.path.join(build_to_root, value)
- if key == 'NM':
- nm = os.path.join(build_to_root, value)
- if key == 'NM.host':
- nm_host = os.path.join(build_to_root, value)
- if key == 'READELF':
- readelf = os.path.join(build_to_root, value)
- if key == 'READELF.host':
- readelf_host = os.path.join(build_to_root, value)
- if key.endswith('_wrapper'):
- wrappers[key[:-len('_wrapper')]] = os.path.join(build_to_root, value)
-
- # Support wrappers from environment variables too.
- for key, value in os.environ.iteritems():
- if key.lower().endswith('_wrapper'):
- key_prefix = key[:-len('_wrapper')]
- key_prefix = re.sub(r'\.HOST$', '.host', key_prefix)
- wrappers[key_prefix] = os.path.join(build_to_root, value)
-
- if flavor == 'win':
- configs = [target_dicts[qualified_target]['configurations'][config_name]
- for qualified_target in target_list]
- shared_system_includes = None
- if not generator_flags.get('ninja_use_custom_environment_files', 0):
- shared_system_includes = \
- gyp.msvs_emulation.ExtractSharedMSVSSystemIncludes(
- configs, generator_flags)
- cl_paths = gyp.msvs_emulation.GenerateEnvironmentFiles(
- toplevel_build, generator_flags, shared_system_includes, OpenOutput)
- for arch, path in cl_paths.iteritems():
- if clang_cl:
- # If we have selected clang-cl, use that instead.
- path = clang_cl
- command = CommandWithWrapper('CC', wrappers,
- QuoteShellArgument(path, 'win'))
- if clang_cl:
- # Use clang-cl to cross-compile for x86 or x86_64.
- command += (' -m32' if arch == 'x86' else ' -m64')
- master_ninja.variable('cl_' + arch, command)
-
- cc = GetEnvironFallback(['CC_target', 'CC'], cc)
- master_ninja.variable('cc', CommandWithWrapper('CC', wrappers, cc))
- cxx = GetEnvironFallback(['CXX_target', 'CXX'], cxx)
- master_ninja.variable('cxx', CommandWithWrapper('CXX', wrappers, cxx))
-
- if flavor == 'win':
- master_ninja.variable('ld', ld)
- master_ninja.variable('idl', 'midl.exe')
- master_ninja.variable('ar', ar)
- master_ninja.variable('rc', 'rc.exe')
- master_ninja.variable('ml_x86', 'ml.exe')
- master_ninja.variable('ml_x64', 'ml64.exe')
- master_ninja.variable('mt', 'mt.exe')
- else:
- master_ninja.variable('ld', CommandWithWrapper('LINK', wrappers, ld))
- master_ninja.variable('ldxx', CommandWithWrapper('LINK', wrappers, ldxx))
- master_ninja.variable('ar', GetEnvironFallback(['AR_target', 'AR'], ar))
- if flavor != 'mac':
- # Mac does not use readelf/nm for .TOC generation, so avoiding polluting
- # the master ninja with extra unused variables.
- master_ninja.variable(
- 'nm', GetEnvironFallback(['NM_target', 'NM'], nm))
- master_ninja.variable(
- 'readelf', GetEnvironFallback(['READELF_target', 'READELF'], readelf))
-
- if generator_supports_multiple_toolsets:
- if not cc_host:
- cc_host = cc
- if not cxx_host:
- cxx_host = cxx
-
- master_ninja.variable('ar_host', GetEnvironFallback(['AR_host'], ar_host))
- master_ninja.variable('nm_host', GetEnvironFallback(['NM_host'], nm_host))
- master_ninja.variable('readelf_host',
- GetEnvironFallback(['READELF_host'], readelf_host))
- cc_host = GetEnvironFallback(['CC_host'], cc_host)
- cxx_host = GetEnvironFallback(['CXX_host'], cxx_host)
-
- # The environment variable could be used in 'make_global_settings', like
- # ['CC.host', '$(CC)'] or ['CXX.host', '$(CXX)'], transform them here.
- if '$(CC)' in cc_host and cc_host_global_setting:
- cc_host = cc_host_global_setting.replace('$(CC)', cc)
- if '$(CXX)' in cxx_host and cxx_host_global_setting:
- cxx_host = cxx_host_global_setting.replace('$(CXX)', cxx)
- master_ninja.variable('cc_host',
- CommandWithWrapper('CC.host', wrappers, cc_host))
- master_ninja.variable('cxx_host',
- CommandWithWrapper('CXX.host', wrappers, cxx_host))
- if flavor == 'win':
- master_ninja.variable('ld_host', ld_host)
- master_ninja.variable('ldxx_host', ldxx_host)
- else:
- master_ninja.variable('ld_host', CommandWithWrapper(
- 'LINK', wrappers, ld_host))
- master_ninja.variable('ldxx_host', CommandWithWrapper(
- 'LINK', wrappers, ldxx_host))
-
- master_ninja.newline()
-
- master_ninja.pool('link_pool', depth=GetDefaultConcurrentLinks())
- master_ninja.newline()
-
- deps = 'msvc' if flavor == 'win' else 'gcc'
-
- if flavor != 'win':
- master_ninja.rule(
- 'cc',
- description='CC $out',
- command=('$cc -MMD -MF $out.d $defines $includes $cflags $cflags_c '
- '$cflags_pch_c -c $in -o $out'),
- depfile='$out.d',
- deps=deps)
- master_ninja.rule(
- 'cc_s',
- description='CC $out',
- command=('$cc $defines $includes $cflags $cflags_c '
- '$cflags_pch_c -c $in -o $out'))
- master_ninja.rule(
- 'cxx',
- description='CXX $out',
- command=('$cxx -MMD -MF $out.d $defines $includes $cflags $cflags_cc '
- '$cflags_pch_cc -c $in -o $out'),
- depfile='$out.d',
- deps=deps)
- else:
- # TODO(scottmg) Separate pdb names is a test to see if it works around
- # http://crbug.com/142362. It seems there's a race between the creation of
- # the .pdb by the precompiled header step for .cc and the compilation of
- # .c files. This should be handled by mspdbsrv, but rarely errors out with
- # c1xx : fatal error C1033: cannot open program database
- # By making the rules target separate pdb files this might be avoided.
- cc_command = ('ninja -t msvc -e $arch ' +
- '-- '
- '$cc /nologo /showIncludes /FC '
- '@$out.rsp /c $in /Fo$out /Fd$pdbname_c ')
- cxx_command = ('ninja -t msvc -e $arch ' +
- '-- '
- '$cxx /nologo /showIncludes /FC '
- '@$out.rsp /c $in /Fo$out /Fd$pdbname_cc ')
- master_ninja.rule(
- 'cc',
- description='CC $out',
- command=cc_command,
- rspfile='$out.rsp',
- rspfile_content='$defines $includes $cflags $cflags_c',
- deps=deps)
- master_ninja.rule(
- 'cxx',
- description='CXX $out',
- command=cxx_command,
- rspfile='$out.rsp',
- rspfile_content='$defines $includes $cflags $cflags_cc',
- deps=deps)
- master_ninja.rule(
- 'idl',
- description='IDL $in',
- command=('%s gyp-win-tool midl-wrapper $arch $outdir '
- '$tlb $h $dlldata $iid $proxy $in '
- '$midl_includes $idlflags' % sys.executable))
- master_ninja.rule(
- 'rc',
- description='RC $in',
- # Note: $in must be last otherwise rc.exe complains.
- command=('%s gyp-win-tool rc-wrapper '
- '$arch $rc $defines $resource_includes $rcflags /fo$out $in' %
- sys.executable))
- master_ninja.rule(
- 'asm',
- description='ASM $out',
- command=('%s gyp-win-tool asm-wrapper '
- '$arch $asm $defines $includes $asmflags /c /Fo $out $in' %
- sys.executable))
-
- if flavor != 'mac' and flavor != 'win':
- master_ninja.rule(
- 'alink',
- description='AR $out',
- command='rm -f $out && $ar rcs $arflags $out $in')
- master_ninja.rule(
- 'alink_thin',
- description='AR $out',
- command='rm -f $out && $ar rcsT $arflags $out $in')
-
- # This allows targets that only need to depend on $lib's API to declare an
- # order-only dependency on $lib.TOC and avoid relinking such downstream
- # dependencies when $lib changes only in non-public ways.
- # The resulting string leaves an uninterpolated %{suffix} which
- # is used in the final substitution below.
- mtime_preserving_solink_base = (
- 'if [ ! -e $lib -o ! -e $lib.TOC ]; then '
- '%(solink)s && %(extract_toc)s > $lib.TOC; else '
- '%(solink)s && %(extract_toc)s > $lib.tmp && '
- 'if ! cmp -s $lib.tmp $lib.TOC; then mv $lib.tmp $lib.TOC ; '
- 'fi; fi'
- % { 'solink':
- '$ld -shared $ldflags -o $lib -Wl,-soname=$soname %(suffix)s',
- 'extract_toc':
- ('{ $readelf -d $lib | grep SONAME ; '
- '$nm -gD -f p $lib | cut -f1-2 -d\' \'; }')})
-
- master_ninja.rule(
- 'solink',
- description='SOLINK $lib',
- restat=True,
- command=mtime_preserving_solink_base % {'suffix': '@$link_file_list'},
- rspfile='$link_file_list',
- rspfile_content=
- '-Wl,--whole-archive $in $solibs -Wl,--no-whole-archive $libs',
- pool='link_pool')
- master_ninja.rule(
- 'solink_module',
- description='SOLINK(module) $lib',
- restat=True,
- command=mtime_preserving_solink_base % {'suffix': '@$link_file_list'},
- rspfile='$link_file_list',
- rspfile_content='-Wl,--start-group $in $solibs $libs -Wl,--end-group',
- pool='link_pool')
- master_ninja.rule(
- 'link',
- description='LINK $out',
- command=('$ld $ldflags -o $out '
- '-Wl,--start-group $in $solibs $libs -Wl,--end-group'),
- pool='link_pool')
- elif flavor == 'win':
- master_ninja.rule(
- 'alink',
- description='LIB $out',
- command=('%s gyp-win-tool link-wrapper $arch False '
- '$ar /nologo /ignore:4221 /OUT:$out @$out.rsp' %
- sys.executable),
- rspfile='$out.rsp',
- rspfile_content='$in_newline $libflags')
- _AddWinLinkRules(master_ninja, embed_manifest=True)
- _AddWinLinkRules(master_ninja, embed_manifest=False)
- else:
- master_ninja.rule(
- 'objc',
- description='OBJC $out',
- command=('$cc -MMD -MF $out.d $defines $includes $cflags $cflags_objc '
- '$cflags_pch_objc -c $in -o $out'),
- depfile='$out.d',
- deps=deps)
- master_ninja.rule(
- 'objcxx',
- description='OBJCXX $out',
- command=('$cxx -MMD -MF $out.d $defines $includes $cflags $cflags_objcc '
- '$cflags_pch_objcc -c $in -o $out'),
- depfile='$out.d',
- deps=deps)
- master_ninja.rule(
- 'alink',
- description='LIBTOOL-STATIC $out, POSTBUILDS',
- command='rm -f $out && '
- './gyp-mac-tool filter-libtool libtool $libtool_flags '
- '-static -o $out $in'
- '$postbuilds')
- master_ninja.rule(
- 'lipo',
- description='LIPO $out, POSTBUILDS',
- command='rm -f $out && lipo -create $in -output $out$postbuilds')
- master_ninja.rule(
- 'solipo',
- description='SOLIPO $out, POSTBUILDS',
- command=(
- 'rm -f $lib $lib.TOC && lipo -create $in -output $lib$postbuilds &&'
- '%(extract_toc)s > $lib.TOC'
- % { 'extract_toc':
- '{ otool -l $lib | grep LC_ID_DYLIB -A 5; '
- 'nm -gP $lib | cut -f1-2 -d\' \' | grep -v U$$; true; }'}))
-
-
- # Record the public interface of $lib in $lib.TOC. See the corresponding
- # comment in the posix section above for details.
- solink_base = '$ld %(type)s $ldflags -o $lib %(suffix)s'
- mtime_preserving_solink_base = (
- 'if [ ! -e $lib -o ! -e $lib.TOC ] || '
- # Always force dependent targets to relink if this library
- # reexports something. Handling this correctly would require
- # recursive TOC dumping but this is rare in practice, so punt.
- 'otool -l $lib | grep -q LC_REEXPORT_DYLIB ; then '
- '%(solink)s && %(extract_toc)s > $lib.TOC; '
- 'else '
- '%(solink)s && %(extract_toc)s > $lib.tmp && '
- 'if ! cmp -s $lib.tmp $lib.TOC; then '
- 'mv $lib.tmp $lib.TOC ; '
- 'fi; '
- 'fi'
- % { 'solink': solink_base,
- 'extract_toc':
- '{ otool -l $lib | grep LC_ID_DYLIB -A 5; '
- 'nm -gP $lib | cut -f1-2 -d\' \' | grep -v U$$; true; }'})
-
-
- solink_suffix = '@$link_file_list$postbuilds'
- master_ninja.rule(
- 'solink',
- description='SOLINK $lib, POSTBUILDS',
- restat=True,
- command=mtime_preserving_solink_base % {'suffix': solink_suffix,
- 'type': '-shared'},
- rspfile='$link_file_list',
- rspfile_content='$in $solibs $libs',
- pool='link_pool')
- master_ninja.rule(
- 'solink_notoc',
- description='SOLINK $lib, POSTBUILDS',
- restat=True,
- command=solink_base % {'suffix':solink_suffix, 'type': '-shared'},
- rspfile='$link_file_list',
- rspfile_content='$in $solibs $libs',
- pool='link_pool')
-
- master_ninja.rule(
- 'solink_module',
- description='SOLINK(module) $lib, POSTBUILDS',
- restat=True,
- command=mtime_preserving_solink_base % {'suffix': solink_suffix,
- 'type': '-bundle'},
- rspfile='$link_file_list',
- rspfile_content='$in $solibs $libs',
- pool='link_pool')
- master_ninja.rule(
- 'solink_module_notoc',
- description='SOLINK(module) $lib, POSTBUILDS',
- restat=True,
- command=solink_base % {'suffix': solink_suffix, 'type': '-bundle'},
- rspfile='$link_file_list',
- rspfile_content='$in $solibs $libs',
- pool='link_pool')
-
- master_ninja.rule(
- 'link',
- description='LINK $out, POSTBUILDS',
- command=('$ld $ldflags -o $out '
- '$in $solibs $libs$postbuilds'),
- pool='link_pool')
- master_ninja.rule(
- 'preprocess_infoplist',
- description='PREPROCESS INFOPLIST $out',
- command=('$cc -E -P -Wno-trigraphs -x c $defines $in -o $out && '
- 'plutil -convert xml1 $out $out'))
- master_ninja.rule(
- 'copy_infoplist',
- description='COPY INFOPLIST $in',
- command='$env ./gyp-mac-tool copy-info-plist $in $out $binary $keys')
- master_ninja.rule(
- 'merge_infoplist',
- description='MERGE INFOPLISTS $in',
- command='$env ./gyp-mac-tool merge-info-plist $out $in')
- master_ninja.rule(
- 'compile_xcassets',
- description='COMPILE XCASSETS $in',
- command='$env ./gyp-mac-tool compile-xcassets $keys $in')
- master_ninja.rule(
- 'mac_tool',
- description='MACTOOL $mactool_cmd $in',
- command='$env ./gyp-mac-tool $mactool_cmd $in $out $binary')
- master_ninja.rule(
- 'package_framework',
- description='PACKAGE FRAMEWORK $out, POSTBUILDS',
- command='./gyp-mac-tool package-framework $out $version$postbuilds '
- '&& touch $out')
- if flavor == 'win':
- master_ninja.rule(
- 'stamp',
- description='STAMP $out',
- command='%s gyp-win-tool stamp $out' % sys.executable)
- else:
- master_ninja.rule(
- 'stamp',
- description='STAMP $out',
- command='${postbuilds}touch $out')
- if flavor == 'win':
- master_ninja.rule(
- 'copy',
- description='COPY $in $out',
- command='%s gyp-win-tool recursive-mirror $in $out' % sys.executable)
- elif flavor == 'zos':
- master_ninja.rule(
- 'copy',
- description='COPY $in $out',
- command='rm -rf $out && cp -fRP $in $out')
- else:
- master_ninja.rule(
- 'copy',
- description='COPY $in $out',
- command='rm -rf $out && cp -af $in $out')
- master_ninja.newline()
-
- all_targets = set()
- for build_file in params['build_files']:
- for target in gyp.common.AllTargets(target_list,
- target_dicts,
- os.path.normpath(build_file)):
- all_targets.add(target)
- all_outputs = set()
-
- # target_outputs is a map from qualified target name to a Target object.
- target_outputs = {}
- # target_short_names is a map from target short name to a list of Target
- # objects.
- target_short_names = {}
-
- # short name of targets that were skipped because they didn't contain anything
- # interesting.
- # NOTE: there may be overlap between this an non_empty_target_names.
- empty_target_names = set()
-
- # Set of non-empty short target names.
- # NOTE: there may be overlap between this an empty_target_names.
- non_empty_target_names = set()
-
- for qualified_target in target_list:
- # qualified_target is like: third_party/icu/icu.gyp:icui18n#target
- build_file, name, toolset = \
- gyp.common.ParseQualifiedTarget(qualified_target)
-
- this_make_global_settings = data[build_file].get('make_global_settings', [])
- assert make_global_settings == this_make_global_settings, (
- "make_global_settings needs to be the same for all targets. %s vs. %s" %
- (this_make_global_settings, make_global_settings))
-
- spec = target_dicts[qualified_target]
- if flavor == 'mac':
- gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec)
-
- # If build_file is a symlink, we must not follow it because there's a chance
- # it could point to a path above toplevel_dir, and we cannot correctly deal
- # with that case at the moment.
- build_file = gyp.common.RelativePath(build_file, options.toplevel_dir,
- False)
-
- qualified_target_for_hash = gyp.common.QualifiedTarget(build_file, name,
- toolset)
- hash_for_rules = hashlib.md5(qualified_target_for_hash).hexdigest()
-
- base_path = os.path.dirname(build_file)
- obj = 'obj'
- if toolset != 'target':
- obj += '.' + toolset
- output_file = os.path.join(obj, base_path, name + '.ninja')
-
- ninja_output = StringIO()
- writer = NinjaWriter(hash_for_rules, target_outputs, base_path, build_dir,
- ninja_output,
- toplevel_build, output_file,
- flavor, toplevel_dir=options.toplevel_dir)
-
- target = writer.WriteSpec(spec, config_name, generator_flags)
-
- if ninja_output.tell() > 0:
- # Only create files for ninja files that actually have contents.
- with OpenOutput(os.path.join(toplevel_build, output_file)) as ninja_file:
- ninja_file.write(ninja_output.getvalue())
- ninja_output.close()
- master_ninja.subninja(output_file)
-
- if target:
- if name != target.FinalOutput() and spec['toolset'] == 'target':
- target_short_names.setdefault(name, []).append(target)
- target_outputs[qualified_target] = target
- if qualified_target in all_targets:
- all_outputs.add(target.FinalOutput())
- non_empty_target_names.add(name)
- else:
- empty_target_names.add(name)
-
- if target_short_names:
- # Write a short name to build this target. This benefits both the
- # "build chrome" case as well as the gyp tests, which expect to be
- # able to run actions and build libraries by their short name.
- master_ninja.newline()
- master_ninja.comment('Short names for targets.')
- for short_name in target_short_names:
- master_ninja.build(short_name, 'phony', [x.FinalOutput() for x in
- target_short_names[short_name]])
-
- # Write phony targets for any empty targets that weren't written yet. As
- # short names are not necessarily unique only do this for short names that
- # haven't already been output for another target.
- empty_target_names = empty_target_names - non_empty_target_names
- if empty_target_names:
- master_ninja.newline()
- master_ninja.comment('Empty targets (output for completeness).')
- for name in sorted(empty_target_names):
- master_ninja.build(name, 'phony')
-
- if all_outputs:
- master_ninja.newline()
- master_ninja.build('all', 'phony', list(all_outputs))
- master_ninja.default(generator_flags.get('default_target', 'all'))
-
- master_ninja_file.close()
-
-
-def PerformBuild(data, configurations, params):
- options = params['options']
- for config in configurations:
- builddir = os.path.join(options.toplevel_dir, 'out', config)
- arguments = ['ninja', '-C', builddir]
- print 'Building [%s]: %s' % (config, arguments)
- subprocess.check_call(arguments)
-
-
-def CallGenerateOutputForConfig(arglist):
- # Ignore the interrupt signal so that the parent process catches it and
- # kills all multiprocessing children.
- signal.signal(signal.SIGINT, signal.SIG_IGN)
-
- (target_list, target_dicts, data, params, config_name) = arglist
- GenerateOutputForConfig(target_list, target_dicts, data, params, config_name)
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- # Update target_dicts for iOS device builds.
- target_dicts = gyp.xcode_emulation.CloneConfigurationForDeviceAndEmulator(
- target_dicts)
-
- user_config = params.get('generator_flags', {}).get('config', None)
- if gyp.common.GetFlavor(params) == 'win':
- target_list, target_dicts = MSVSUtil.ShardTargets(target_list, target_dicts)
- target_list, target_dicts = MSVSUtil.InsertLargePdbShims(
- target_list, target_dicts, generator_default_variables)
-
- if user_config:
- GenerateOutputForConfig(target_list, target_dicts, data, params,
- user_config)
- else:
- config_names = target_dicts[target_list[0]]['configurations'].keys()
- if params['parallel']:
- try:
- pool = multiprocessing.Pool(len(config_names))
- arglists = []
- for config_name in config_names:
- arglists.append(
- (target_list, target_dicts, data, params, config_name))
- pool.map(CallGenerateOutputForConfig, arglists)
- except KeyboardInterrupt, e:
- pool.terminate()
- raise e
- else:
- for config_name in config_names:
- GenerateOutputForConfig(target_list, target_dicts, data, params,
- config_name)
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py
deleted file mode 100644
index 1767b2f..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-""" Unit tests for the ninja.py file. """
-
-import gyp.generator.ninja as ninja
-import unittest
-import StringIO
-import sys
-import TestCommon
-
-
-class TestPrefixesAndSuffixes(unittest.TestCase):
- def test_BinaryNamesWindows(self):
- # These cannot run on non-Windows as they require a VS installation to
- # correctly handle variable expansion.
- if sys.platform.startswith('win'):
- writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.',
- 'build.ninja', 'win')
- spec = { 'target_name': 'wee' }
- self.assertTrue(writer.ComputeOutputFileName(spec, 'executable').
- endswith('.exe'))
- self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
- endswith('.dll'))
- self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
- endswith('.lib'))
-
- def test_BinaryNamesLinux(self):
- writer = ninja.NinjaWriter('foo', 'wee', '.', '.', 'build.ninja', '.',
- 'build.ninja', 'linux')
- spec = { 'target_name': 'wee' }
- self.assertTrue('.' not in writer.ComputeOutputFileName(spec,
- 'executable'))
- self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
- startswith('lib'))
- self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
- startswith('lib'))
- self.assertTrue(writer.ComputeOutputFileName(spec, 'shared_library').
- endswith('.so'))
- self.assertTrue(writer.ComputeOutputFileName(spec, 'static_library').
- endswith('.a'))
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py
deleted file mode 100644
index 0e3fb93..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py
+++ /dev/null
@@ -1,1300 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import filecmp
-import gyp.common
-import gyp.xcodeproj_file
-import gyp.xcode_ninja
-import errno
-import os
-import sys
-import posixpath
-import re
-import shutil
-import subprocess
-import tempfile
-
-
-# Project files generated by this module will use _intermediate_var as a
-# custom Xcode setting whose value is a DerivedSources-like directory that's
-# project-specific and configuration-specific. The normal choice,
-# DERIVED_FILE_DIR, is target-specific, which is thought to be too restrictive
-# as it is likely that multiple targets within a single project file will want
-# to access the same set of generated files. The other option,
-# PROJECT_DERIVED_FILE_DIR, is unsuitable because while it is project-specific,
-# it is not configuration-specific. INTERMEDIATE_DIR is defined as
-# $(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION).
-_intermediate_var = 'INTERMEDIATE_DIR'
-
-# SHARED_INTERMEDIATE_DIR is the same, except that it is shared among all
-# targets that share the same BUILT_PRODUCTS_DIR.
-_shared_intermediate_var = 'SHARED_INTERMEDIATE_DIR'
-
-_library_search_paths_var = 'LIBRARY_SEARCH_PATHS'
-
-generator_default_variables = {
- 'EXECUTABLE_PREFIX': '',
- 'EXECUTABLE_SUFFIX': '',
- 'STATIC_LIB_PREFIX': 'lib',
- 'SHARED_LIB_PREFIX': 'lib',
- 'STATIC_LIB_SUFFIX': '.a',
- 'SHARED_LIB_SUFFIX': '.dylib',
- # INTERMEDIATE_DIR is a place for targets to build up intermediate products.
- # It is specific to each build environment. It is only guaranteed to exist
- # and be constant within the context of a project, corresponding to a single
- # input file. Some build environments may allow their intermediate directory
- # to be shared on a wider scale, but this is not guaranteed.
- 'INTERMEDIATE_DIR': '$(%s)' % _intermediate_var,
- 'OS': 'mac',
- 'PRODUCT_DIR': '$(BUILT_PRODUCTS_DIR)',
- 'LIB_DIR': '$(BUILT_PRODUCTS_DIR)',
- 'RULE_INPUT_ROOT': '$(INPUT_FILE_BASE)',
- 'RULE_INPUT_EXT': '$(INPUT_FILE_SUFFIX)',
- 'RULE_INPUT_NAME': '$(INPUT_FILE_NAME)',
- 'RULE_INPUT_PATH': '$(INPUT_FILE_PATH)',
- 'RULE_INPUT_DIRNAME': '$(INPUT_FILE_DIRNAME)',
- 'SHARED_INTERMEDIATE_DIR': '$(%s)' % _shared_intermediate_var,
- 'CONFIGURATION_NAME': '$(CONFIGURATION)',
-}
-
-# The Xcode-specific sections that hold paths.
-generator_additional_path_sections = [
- 'mac_bundle_resources',
- 'mac_framework_headers',
- 'mac_framework_private_headers',
- # 'mac_framework_dirs', input already handles _dirs endings.
-]
-
-# The Xcode-specific keys that exist on targets and aren't moved down to
-# configurations.
-generator_additional_non_configuration_keys = [
- 'ios_app_extension',
- 'ios_watch_app',
- 'ios_watchkit_extension',
- 'mac_bundle',
- 'mac_bundle_resources',
- 'mac_framework_headers',
- 'mac_framework_private_headers',
- 'mac_xctest_bundle',
- 'xcode_create_dependents_test_runner',
-]
-
-# We want to let any rules apply to files that are resources also.
-generator_extra_sources_for_rules = [
- 'mac_bundle_resources',
- 'mac_framework_headers',
- 'mac_framework_private_headers',
-]
-
-generator_filelist_paths = None
-
-# Xcode's standard set of library directories, which don't need to be duplicated
-# in LIBRARY_SEARCH_PATHS. This list is not exhaustive, but that's okay.
-xcode_standard_library_dirs = frozenset([
- '$(SDKROOT)/usr/lib',
- '$(SDKROOT)/usr/local/lib',
-])
-
-def CreateXCConfigurationList(configuration_names):
- xccl = gyp.xcodeproj_file.XCConfigurationList({'buildConfigurations': []})
- if len(configuration_names) == 0:
- configuration_names = ['Default']
- for configuration_name in configuration_names:
- xcbc = gyp.xcodeproj_file.XCBuildConfiguration({
- 'name': configuration_name})
- xccl.AppendProperty('buildConfigurations', xcbc)
- xccl.SetProperty('defaultConfigurationName', configuration_names[0])
- return xccl
-
-
-class XcodeProject(object):
- def __init__(self, gyp_path, path, build_file_dict):
- self.gyp_path = gyp_path
- self.path = path
- self.project = gyp.xcodeproj_file.PBXProject(path=path)
- projectDirPath = gyp.common.RelativePath(
- os.path.dirname(os.path.abspath(self.gyp_path)),
- os.path.dirname(path) or '.')
- self.project.SetProperty('projectDirPath', projectDirPath)
- self.project_file = \
- gyp.xcodeproj_file.XCProjectFile({'rootObject': self.project})
- self.build_file_dict = build_file_dict
-
- # TODO(mark): add destructor that cleans up self.path if created_dir is
- # True and things didn't complete successfully. Or do something even
- # better with "try"?
- self.created_dir = False
- try:
- os.makedirs(self.path)
- self.created_dir = True
- except OSError, e:
- if e.errno != errno.EEXIST:
- raise
-
- def Finalize1(self, xcode_targets, serialize_all_tests):
- # Collect a list of all of the build configuration names used by the
- # various targets in the file. It is very heavily advised to keep each
- # target in an entire project (even across multiple project files) using
- # the same set of configuration names.
- configurations = []
- for xct in self.project.GetProperty('targets'):
- xccl = xct.GetProperty('buildConfigurationList')
- xcbcs = xccl.GetProperty('buildConfigurations')
- for xcbc in xcbcs:
- name = xcbc.GetProperty('name')
- if name not in configurations:
- configurations.append(name)
-
- # Replace the XCConfigurationList attached to the PBXProject object with
- # a new one specifying all of the configuration names used by the various
- # targets.
- try:
- xccl = CreateXCConfigurationList(configurations)
- self.project.SetProperty('buildConfigurationList', xccl)
- except:
- sys.stderr.write("Problem with gyp file %s\n" % self.gyp_path)
- raise
-
- # The need for this setting is explained above where _intermediate_var is
- # defined. The comments below about wanting to avoid project-wide build
- # settings apply here too, but this needs to be set on a project-wide basis
- # so that files relative to the _intermediate_var setting can be displayed
- # properly in the Xcode UI.
- #
- # Note that for configuration-relative files such as anything relative to
- # _intermediate_var, for the purposes of UI tree view display, Xcode will
- # only resolve the configuration name once, when the project file is
- # opened. If the active build configuration is changed, the project file
- # must be closed and reopened if it is desired for the tree view to update.
- # This is filed as Apple radar 6588391.
- xccl.SetBuildSetting(_intermediate_var,
- '$(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION)')
- xccl.SetBuildSetting(_shared_intermediate_var,
- '$(SYMROOT)/DerivedSources/$(CONFIGURATION)')
-
- # Set user-specified project-wide build settings and config files. This
- # is intended to be used very sparingly. Really, almost everything should
- # go into target-specific build settings sections. The project-wide
- # settings are only intended to be used in cases where Xcode attempts to
- # resolve variable references in a project context as opposed to a target
- # context, such as when resolving sourceTree references while building up
- # the tree tree view for UI display.
- # Any values set globally are applied to all configurations, then any
- # per-configuration values are applied.
- for xck, xcv in self.build_file_dict.get('xcode_settings', {}).iteritems():
- xccl.SetBuildSetting(xck, xcv)
- if 'xcode_config_file' in self.build_file_dict:
- config_ref = self.project.AddOrGetFileInRootGroup(
- self.build_file_dict['xcode_config_file'])
- xccl.SetBaseConfiguration(config_ref)
- build_file_configurations = self.build_file_dict.get('configurations', {})
- if build_file_configurations:
- for config_name in configurations:
- build_file_configuration_named = \
- build_file_configurations.get(config_name, {})
- if build_file_configuration_named:
- xcc = xccl.ConfigurationNamed(config_name)
- for xck, xcv in build_file_configuration_named.get('xcode_settings',
- {}).iteritems():
- xcc.SetBuildSetting(xck, xcv)
- if 'xcode_config_file' in build_file_configuration_named:
- config_ref = self.project.AddOrGetFileInRootGroup(
- build_file_configurations[config_name]['xcode_config_file'])
- xcc.SetBaseConfiguration(config_ref)
-
- # Sort the targets based on how they appeared in the input.
- # TODO(mark): Like a lot of other things here, this assumes internal
- # knowledge of PBXProject - in this case, of its "targets" property.
-
- # ordinary_targets are ordinary targets that are already in the project
- # file. run_test_targets are the targets that run unittests and should be
- # used for the Run All Tests target. support_targets are the action/rule
- # targets used by GYP file targets, just kept for the assert check.
- ordinary_targets = []
- run_test_targets = []
- support_targets = []
-
- # targets is full list of targets in the project.
- targets = []
-
- # does the it define it's own "all"?
- has_custom_all = False
-
- # targets_for_all is the list of ordinary_targets that should be listed
- # in this project's "All" target. It includes each non_runtest_target
- # that does not have suppress_wildcard set.
- targets_for_all = []
-
- for target in self.build_file_dict['targets']:
- target_name = target['target_name']
- toolset = target['toolset']
- qualified_target = gyp.common.QualifiedTarget(self.gyp_path, target_name,
- toolset)
- xcode_target = xcode_targets[qualified_target]
- # Make sure that the target being added to the sorted list is already in
- # the unsorted list.
- assert xcode_target in self.project._properties['targets']
- targets.append(xcode_target)
- ordinary_targets.append(xcode_target)
- if xcode_target.support_target:
- support_targets.append(xcode_target.support_target)
- targets.append(xcode_target.support_target)
-
- if not int(target.get('suppress_wildcard', False)):
- targets_for_all.append(xcode_target)
-
- if target_name.lower() == 'all':
- has_custom_all = True;
-
- # If this target has a 'run_as' attribute, add its target to the
- # targets, and add it to the test targets.
- if target.get('run_as'):
- # Make a target to run something. It should have one
- # dependency, the parent xcode target.
- xccl = CreateXCConfigurationList(configurations)
- run_target = gyp.xcodeproj_file.PBXAggregateTarget({
- 'name': 'Run ' + target_name,
- 'productName': xcode_target.GetProperty('productName'),
- 'buildConfigurationList': xccl,
- },
- parent=self.project)
- run_target.AddDependency(xcode_target)
-
- command = target['run_as']
- script = ''
- if command.get('working_directory'):
- script = script + 'cd "%s"\n' % \
- gyp.xcodeproj_file.ConvertVariablesToShellSyntax(
- command.get('working_directory'))
-
- if command.get('environment'):
- script = script + "\n".join(
- ['export %s="%s"' %
- (key, gyp.xcodeproj_file.ConvertVariablesToShellSyntax(val))
- for (key, val) in command.get('environment').iteritems()]) + "\n"
-
- # Some test end up using sockets, files on disk, etc. and can get
- # confused if more then one test runs at a time. The generator
- # flag 'xcode_serialize_all_test_runs' controls the forcing of all
- # tests serially. It defaults to True. To get serial runs this
- # little bit of python does the same as the linux flock utility to
- # make sure only one runs at a time.
- command_prefix = ''
- if serialize_all_tests:
- command_prefix = \
-"""python -c "import fcntl, subprocess, sys
-file = open('$TMPDIR/GYP_serialize_test_runs', 'a')
-fcntl.flock(file.fileno(), fcntl.LOCK_EX)
-sys.exit(subprocess.call(sys.argv[1:]))" """
-
- # If we were unable to exec for some reason, we want to exit
- # with an error, and fixup variable references to be shell
- # syntax instead of xcode syntax.
- script = script + 'exec ' + command_prefix + '%s\nexit 1\n' % \
- gyp.xcodeproj_file.ConvertVariablesToShellSyntax(
- gyp.common.EncodePOSIXShellList(command.get('action')))
-
- ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
- 'shellScript': script,
- 'showEnvVarsInLog': 0,
- })
- run_target.AppendProperty('buildPhases', ssbp)
-
- # Add the run target to the project file.
- targets.append(run_target)
- run_test_targets.append(run_target)
- xcode_target.test_runner = run_target
-
-
- # Make sure that the list of targets being replaced is the same length as
- # the one replacing it, but allow for the added test runner targets.
- assert len(self.project._properties['targets']) == \
- len(ordinary_targets) + len(support_targets)
-
- self.project._properties['targets'] = targets
-
- # Get rid of unnecessary levels of depth in groups like the Source group.
- self.project.RootGroupsTakeOverOnlyChildren(True)
-
- # Sort the groups nicely. Do this after sorting the targets, because the
- # Products group is sorted based on the order of the targets.
- self.project.SortGroups()
-
- # Create an "All" target if there's more than one target in this project
- # file and the project didn't define its own "All" target. Put a generated
- # "All" target first so that people opening up the project for the first
- # time will build everything by default.
- if len(targets_for_all) > 1 and not has_custom_all:
- xccl = CreateXCConfigurationList(configurations)
- all_target = gyp.xcodeproj_file.PBXAggregateTarget(
- {
- 'buildConfigurationList': xccl,
- 'name': 'All',
- },
- parent=self.project)
-
- for target in targets_for_all:
- all_target.AddDependency(target)
-
- # TODO(mark): This is evil because it relies on internal knowledge of
- # PBXProject._properties. It's important to get the "All" target first,
- # though.
- self.project._properties['targets'].insert(0, all_target)
-
- # The same, but for run_test_targets.
- if len(run_test_targets) > 1:
- xccl = CreateXCConfigurationList(configurations)
- run_all_tests_target = gyp.xcodeproj_file.PBXAggregateTarget(
- {
- 'buildConfigurationList': xccl,
- 'name': 'Run All Tests',
- },
- parent=self.project)
- for run_test_target in run_test_targets:
- run_all_tests_target.AddDependency(run_test_target)
-
- # Insert after the "All" target, which must exist if there is more than
- # one run_test_target.
- self.project._properties['targets'].insert(1, run_all_tests_target)
-
- def Finalize2(self, xcode_targets, xcode_target_to_target_dict):
- # Finalize2 needs to happen in a separate step because the process of
- # updating references to other projects depends on the ordering of targets
- # within remote project files. Finalize1 is responsible for sorting duty,
- # and once all project files are sorted, Finalize2 can come in and update
- # these references.
-
- # To support making a "test runner" target that will run all the tests
- # that are direct dependents of any given target, we look for
- # xcode_create_dependents_test_runner being set on an Aggregate target,
- # and generate a second target that will run the tests runners found under
- # the marked target.
- for bf_tgt in self.build_file_dict['targets']:
- if int(bf_tgt.get('xcode_create_dependents_test_runner', 0)):
- tgt_name = bf_tgt['target_name']
- toolset = bf_tgt['toolset']
- qualified_target = gyp.common.QualifiedTarget(self.gyp_path,
- tgt_name, toolset)
- xcode_target = xcode_targets[qualified_target]
- if isinstance(xcode_target, gyp.xcodeproj_file.PBXAggregateTarget):
- # Collect all the run test targets.
- all_run_tests = []
- pbxtds = xcode_target.GetProperty('dependencies')
- for pbxtd in pbxtds:
- pbxcip = pbxtd.GetProperty('targetProxy')
- dependency_xct = pbxcip.GetProperty('remoteGlobalIDString')
- if hasattr(dependency_xct, 'test_runner'):
- all_run_tests.append(dependency_xct.test_runner)
-
- # Directly depend on all the runners as they depend on the target
- # that builds them.
- if len(all_run_tests) > 0:
- run_all_target = gyp.xcodeproj_file.PBXAggregateTarget({
- 'name': 'Run %s Tests' % tgt_name,
- 'productName': tgt_name,
- },
- parent=self.project)
- for run_test_target in all_run_tests:
- run_all_target.AddDependency(run_test_target)
-
- # Insert the test runner after the related target.
- idx = self.project._properties['targets'].index(xcode_target)
- self.project._properties['targets'].insert(idx + 1, run_all_target)
-
- # Update all references to other projects, to make sure that the lists of
- # remote products are complete. Otherwise, Xcode will fill them in when
- # it opens the project file, which will result in unnecessary diffs.
- # TODO(mark): This is evil because it relies on internal knowledge of
- # PBXProject._other_pbxprojects.
- for other_pbxproject in self.project._other_pbxprojects.keys():
- self.project.AddOrGetProjectReference(other_pbxproject)
-
- self.project.SortRemoteProductReferences()
-
- # Give everything an ID.
- self.project_file.ComputeIDs()
-
- # Make sure that no two objects in the project file have the same ID. If
- # multiple objects wind up with the same ID, upon loading the file, Xcode
- # will only recognize one object (the last one in the file?) and the
- # results are unpredictable.
- self.project_file.EnsureNoIDCollisions()
-
- def Write(self):
- # Write the project file to a temporary location first. Xcode watches for
- # changes to the project file and presents a UI sheet offering to reload
- # the project when it does change. However, in some cases, especially when
- # multiple projects are open or when Xcode is busy, things don't work so
- # seamlessly. Sometimes, Xcode is able to detect that a project file has
- # changed but can't unload it because something else is referencing it.
- # To mitigate this problem, and to avoid even having Xcode present the UI
- # sheet when an open project is rewritten for inconsequential changes, the
- # project file is written to a temporary file in the xcodeproj directory
- # first. The new temporary file is then compared to the existing project
- # file, if any. If they differ, the new file replaces the old; otherwise,
- # the new project file is simply deleted. Xcode properly detects a file
- # being renamed over an open project file as a change and so it remains
- # able to present the "project file changed" sheet under this system.
- # Writing to a temporary file first also avoids the possible problem of
- # Xcode rereading an incomplete project file.
- (output_fd, new_pbxproj_path) = \
- tempfile.mkstemp(suffix='.tmp', prefix='project.pbxproj.gyp.',
- dir=self.path)
-
- try:
- output_file = os.fdopen(output_fd, 'wb')
-
- self.project_file.Print(output_file)
- output_file.close()
-
- pbxproj_path = os.path.join(self.path, 'project.pbxproj')
-
- same = False
- try:
- same = filecmp.cmp(pbxproj_path, new_pbxproj_path, False)
- except OSError, e:
- if e.errno != errno.ENOENT:
- raise
-
- if same:
- # The new file is identical to the old one, just get rid of the new
- # one.
- os.unlink(new_pbxproj_path)
- else:
- # The new file is different from the old one, or there is no old one.
- # Rename the new file to the permanent name.
- #
- # tempfile.mkstemp uses an overly restrictive mode, resulting in a
- # file that can only be read by the owner, regardless of the umask.
- # There's no reason to not respect the umask here, which means that
- # an extra hoop is required to fetch it and reset the new file's mode.
- #
- # No way to get the umask without setting a new one? Set a safe one
- # and then set it back to the old value.
- umask = os.umask(077)
- os.umask(umask)
-
- os.chmod(new_pbxproj_path, 0666 & ~umask)
- os.rename(new_pbxproj_path, pbxproj_path)
-
- except Exception:
- # Don't leave turds behind. In fact, if this code was responsible for
- # creating the xcodeproj directory, get rid of that too.
- os.unlink(new_pbxproj_path)
- if self.created_dir:
- shutil.rmtree(self.path, True)
- raise
-
-
-def AddSourceToTarget(source, type, pbxp, xct):
- # TODO(mark): Perhaps source_extensions and library_extensions can be made a
- # little bit fancier.
- source_extensions = ['c', 'cc', 'cpp', 'cxx', 'm', 'mm', 's', 'swift']
-
- # .o is conceptually more of a "source" than a "library," but Xcode thinks
- # of "sources" as things to compile and "libraries" (or "frameworks") as
- # things to link with. Adding an object file to an Xcode target's frameworks
- # phase works properly.
- library_extensions = ['a', 'dylib', 'framework', 'o']
-
- basename = posixpath.basename(source)
- (root, ext) = posixpath.splitext(basename)
- if ext:
- ext = ext[1:].lower()
-
- if ext in source_extensions and type != 'none':
- xct.SourcesPhase().AddFile(source)
- elif ext in library_extensions and type != 'none':
- xct.FrameworksPhase().AddFile(source)
- else:
- # Files that aren't added to a sources or frameworks build phase can still
- # go into the project file, just not as part of a build phase.
- pbxp.AddOrGetFileInRootGroup(source)
-
-
-def AddResourceToTarget(resource, pbxp, xct):
- # TODO(mark): Combine with AddSourceToTarget above? Or just inline this call
- # where it's used.
- xct.ResourcesPhase().AddFile(resource)
-
-
-def AddHeaderToTarget(header, pbxp, xct, is_public):
- # TODO(mark): Combine with AddSourceToTarget above? Or just inline this call
- # where it's used.
- settings = '{ATTRIBUTES = (%s, ); }' % ('Private', 'Public')[is_public]
- xct.HeadersPhase().AddFile(header, settings)
-
-
-_xcode_variable_re = re.compile(r'(\$\((.*?)\))')
-def ExpandXcodeVariables(string, expansions):
- """Expands Xcode-style $(VARIABLES) in string per the expansions dict.
-
- In some rare cases, it is appropriate to expand Xcode variables when a
- project file is generated. For any substring $(VAR) in string, if VAR is a
- key in the expansions dict, $(VAR) will be replaced with expansions[VAR].
- Any $(VAR) substring in string for which VAR is not a key in the expansions
- dict will remain in the returned string.
- """
-
- matches = _xcode_variable_re.findall(string)
- if matches == None:
- return string
-
- matches.reverse()
- for match in matches:
- (to_replace, variable) = match
- if not variable in expansions:
- continue
-
- replacement = expansions[variable]
- string = re.sub(re.escape(to_replace), replacement, string)
-
- return string
-
-
-_xcode_define_re = re.compile(r'([\\\"\' ])')
-def EscapeXcodeDefine(s):
- """We must escape the defines that we give to XCode so that it knows not to
- split on spaces and to respect backslash and quote literals. However, we
- must not quote the define, or Xcode will incorrectly intepret variables
- especially $(inherited)."""
- return re.sub(_xcode_define_re, r'\\\1', s)
-
-
-def PerformBuild(data, configurations, params):
- options = params['options']
-
- for build_file, build_file_dict in data.iteritems():
- (build_file_root, build_file_ext) = os.path.splitext(build_file)
- if build_file_ext != '.gyp':
- continue
- xcodeproj_path = build_file_root + options.suffix + '.xcodeproj'
- if options.generator_output:
- xcodeproj_path = os.path.join(options.generator_output, xcodeproj_path)
-
- for config in configurations:
- arguments = ['xcodebuild', '-project', xcodeproj_path]
- arguments += ['-configuration', config]
- print "Building [%s]: %s" % (config, arguments)
- subprocess.check_call(arguments)
-
-
-def CalculateGeneratorInputInfo(params):
- toplevel = params['options'].toplevel_dir
- if params.get('flavor') == 'ninja':
- generator_dir = os.path.relpath(params['options'].generator_output or '.')
- output_dir = params.get('generator_flags', {}).get('output_dir', 'out')
- output_dir = os.path.normpath(os.path.join(generator_dir, output_dir))
- qualified_out_dir = os.path.normpath(os.path.join(
- toplevel, output_dir, 'gypfiles-xcode-ninja'))
- else:
- output_dir = os.path.normpath(os.path.join(toplevel, 'xcodebuild'))
- qualified_out_dir = os.path.normpath(os.path.join(
- toplevel, output_dir, 'gypfiles'))
-
- global generator_filelist_paths
- generator_filelist_paths = {
- 'toplevel': toplevel,
- 'qualified_out_dir': qualified_out_dir,
- }
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- # Optionally configure each spec to use ninja as the external builder.
- ninja_wrapper = params.get('flavor') == 'ninja'
- if ninja_wrapper:
- (target_list, target_dicts, data) = \
- gyp.xcode_ninja.CreateWrapper(target_list, target_dicts, data, params)
-
- options = params['options']
- generator_flags = params.get('generator_flags', {})
- parallel_builds = generator_flags.get('xcode_parallel_builds', True)
- serialize_all_tests = \
- generator_flags.get('xcode_serialize_all_test_runs', True)
- upgrade_check_project_version = \
- generator_flags.get('xcode_upgrade_check_project_version', None)
-
- # Format upgrade_check_project_version with leading zeros as needed.
- if upgrade_check_project_version:
- upgrade_check_project_version = str(upgrade_check_project_version)
- while len(upgrade_check_project_version) < 4:
- upgrade_check_project_version = '0' + upgrade_check_project_version
-
- skip_excluded_files = \
- not generator_flags.get('xcode_list_excluded_files', True)
- xcode_projects = {}
- for build_file, build_file_dict in data.iteritems():
- (build_file_root, build_file_ext) = os.path.splitext(build_file)
- if build_file_ext != '.gyp':
- continue
- xcodeproj_path = build_file_root + options.suffix + '.xcodeproj'
- if options.generator_output:
- xcodeproj_path = os.path.join(options.generator_output, xcodeproj_path)
- xcp = XcodeProject(build_file, xcodeproj_path, build_file_dict)
- xcode_projects[build_file] = xcp
- pbxp = xcp.project
-
- # Set project-level attributes from multiple options
- project_attributes = {};
- if parallel_builds:
- project_attributes['BuildIndependentTargetsInParallel'] = 'YES'
- if upgrade_check_project_version:
- project_attributes['LastUpgradeCheck'] = upgrade_check_project_version
- project_attributes['LastTestingUpgradeCheck'] = \
- upgrade_check_project_version
- project_attributes['LastSwiftUpdateCheck'] = \
- upgrade_check_project_version
- pbxp.SetProperty('attributes', project_attributes)
-
- # Add gyp/gypi files to project
- if not generator_flags.get('standalone'):
- main_group = pbxp.GetProperty('mainGroup')
- build_group = gyp.xcodeproj_file.PBXGroup({'name': 'Build'})
- main_group.AppendChild(build_group)
- for included_file in build_file_dict['included_files']:
- build_group.AddOrGetFileByPath(included_file, False)
-
- xcode_targets = {}
- xcode_target_to_target_dict = {}
- for qualified_target in target_list:
- [build_file, target_name, toolset] = \
- gyp.common.ParseQualifiedTarget(qualified_target)
-
- spec = target_dicts[qualified_target]
- if spec['toolset'] != 'target':
- raise Exception(
- 'Multiple toolsets not supported in xcode build (target %s)' %
- qualified_target)
- configuration_names = [spec['default_configuration']]
- for configuration_name in sorted(spec['configurations'].keys()):
- if configuration_name not in configuration_names:
- configuration_names.append(configuration_name)
- xcp = xcode_projects[build_file]
- pbxp = xcp.project
-
- # Set up the configurations for the target according to the list of names
- # supplied.
- xccl = CreateXCConfigurationList(configuration_names)
-
- # Create an XCTarget subclass object for the target. The type with
- # "+bundle" appended will be used if the target has "mac_bundle" set.
- # loadable_modules not in a mac_bundle are mapped to
- # com.googlecode.gyp.xcode.bundle, a pseudo-type that xcode.py interprets
- # to create a single-file mh_bundle.
- _types = {
- 'executable': 'com.apple.product-type.tool',
- 'loadable_module': 'com.googlecode.gyp.xcode.bundle',
- 'shared_library': 'com.apple.product-type.library.dynamic',
- 'static_library': 'com.apple.product-type.library.static',
- 'mac_kernel_extension': 'com.apple.product-type.kernel-extension',
- 'executable+bundle': 'com.apple.product-type.application',
- 'loadable_module+bundle': 'com.apple.product-type.bundle',
- 'loadable_module+xctest': 'com.apple.product-type.bundle.unit-test',
- 'shared_library+bundle': 'com.apple.product-type.framework',
- 'executable+extension+bundle': 'com.apple.product-type.app-extension',
- 'executable+watch+extension+bundle':
- 'com.apple.product-type.watchkit-extension',
- 'executable+watch+bundle':
- 'com.apple.product-type.application.watchapp',
- 'mac_kernel_extension+bundle': 'com.apple.product-type.kernel-extension',
- }
-
- target_properties = {
- 'buildConfigurationList': xccl,
- 'name': target_name,
- }
-
- type = spec['type']
- is_xctest = int(spec.get('mac_xctest_bundle', 0))
- is_bundle = int(spec.get('mac_bundle', 0)) or is_xctest
- is_app_extension = int(spec.get('ios_app_extension', 0))
- is_watchkit_extension = int(spec.get('ios_watchkit_extension', 0))
- is_watch_app = int(spec.get('ios_watch_app', 0))
- if type != 'none':
- type_bundle_key = type
- if is_xctest:
- type_bundle_key += '+xctest'
- assert type == 'loadable_module', (
- 'mac_xctest_bundle targets must have type loadable_module '
- '(target %s)' % target_name)
- elif is_app_extension:
- assert is_bundle, ('ios_app_extension flag requires mac_bundle '
- '(target %s)' % target_name)
- type_bundle_key += '+extension+bundle'
- elif is_watchkit_extension:
- assert is_bundle, ('ios_watchkit_extension flag requires mac_bundle '
- '(target %s)' % target_name)
- type_bundle_key += '+watch+extension+bundle'
- elif is_watch_app:
- assert is_bundle, ('ios_watch_app flag requires mac_bundle '
- '(target %s)' % target_name)
- type_bundle_key += '+watch+bundle'
- elif is_bundle:
- type_bundle_key += '+bundle'
-
- xctarget_type = gyp.xcodeproj_file.PBXNativeTarget
- try:
- target_properties['productType'] = _types[type_bundle_key]
- except KeyError, e:
- gyp.common.ExceptionAppend(e, "-- unknown product type while "
- "writing target %s" % target_name)
- raise
- else:
- xctarget_type = gyp.xcodeproj_file.PBXAggregateTarget
- assert not is_bundle, (
- 'mac_bundle targets cannot have type none (target "%s")' %
- target_name)
- assert not is_xctest, (
- 'mac_xctest_bundle targets cannot have type none (target "%s")' %
- target_name)
-
- target_product_name = spec.get('product_name')
- if target_product_name is not None:
- target_properties['productName'] = target_product_name
-
- xct = xctarget_type(target_properties, parent=pbxp,
- force_outdir=spec.get('product_dir'),
- force_prefix=spec.get('product_prefix'),
- force_extension=spec.get('product_extension'))
- pbxp.AppendProperty('targets', xct)
- xcode_targets[qualified_target] = xct
- xcode_target_to_target_dict[xct] = spec
-
- spec_actions = spec.get('actions', [])
- spec_rules = spec.get('rules', [])
-
- # Xcode has some "issues" with checking dependencies for the "Compile
- # sources" step with any source files/headers generated by actions/rules.
- # To work around this, if a target is building anything directly (not
- # type "none"), then a second target is used to run the GYP actions/rules
- # and is made a dependency of this target. This way the work is done
- # before the dependency checks for what should be recompiled.
- support_xct = None
- # The Xcode "issues" don't affect xcode-ninja builds, since the dependency
- # logic all happens in ninja. Don't bother creating the extra targets in
- # that case.
- if type != 'none' and (spec_actions or spec_rules) and not ninja_wrapper:
- support_xccl = CreateXCConfigurationList(configuration_names);
- support_target_suffix = generator_flags.get(
- 'support_target_suffix', ' Support')
- support_target_properties = {
- 'buildConfigurationList': support_xccl,
- 'name': target_name + support_target_suffix,
- }
- if target_product_name:
- support_target_properties['productName'] = \
- target_product_name + ' Support'
- support_xct = \
- gyp.xcodeproj_file.PBXAggregateTarget(support_target_properties,
- parent=pbxp)
- pbxp.AppendProperty('targets', support_xct)
- xct.AddDependency(support_xct)
- # Hang the support target off the main target so it can be tested/found
- # by the generator during Finalize.
- xct.support_target = support_xct
-
- prebuild_index = 0
-
- # Add custom shell script phases for "actions" sections.
- for action in spec_actions:
- # There's no need to write anything into the script to ensure that the
- # output directories already exist, because Xcode will look at the
- # declared outputs and automatically ensure that they exist for us.
-
- # Do we have a message to print when this action runs?
- message = action.get('message')
- if message:
- message = 'echo note: ' + gyp.common.EncodePOSIXShellArgument(message)
- else:
- message = ''
-
- # Turn the list into a string that can be passed to a shell.
- action_string = gyp.common.EncodePOSIXShellList(action['action'])
-
- # Convert Xcode-type variable references to sh-compatible environment
- # variable references.
- message_sh = gyp.xcodeproj_file.ConvertVariablesToShellSyntax(message)
- action_string_sh = gyp.xcodeproj_file.ConvertVariablesToShellSyntax(
- action_string)
-
- script = ''
- # Include the optional message
- if message_sh:
- script += message_sh + '\n'
- # Be sure the script runs in exec, and that if exec fails, the script
- # exits signalling an error.
- script += 'exec ' + action_string_sh + '\nexit 1\n'
- ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
- 'inputPaths': action['inputs'],
- 'name': 'Action "' + action['action_name'] + '"',
- 'outputPaths': action['outputs'],
- 'shellScript': script,
- 'showEnvVarsInLog': 0,
- })
-
- if support_xct:
- support_xct.AppendProperty('buildPhases', ssbp)
- else:
- # TODO(mark): this assumes too much knowledge of the internals of
- # xcodeproj_file; some of these smarts should move into xcodeproj_file
- # itself.
- xct._properties['buildPhases'].insert(prebuild_index, ssbp)
- prebuild_index = prebuild_index + 1
-
- # TODO(mark): Should verify that at most one of these is specified.
- if int(action.get('process_outputs_as_sources', False)):
- for output in action['outputs']:
- AddSourceToTarget(output, type, pbxp, xct)
-
- if int(action.get('process_outputs_as_mac_bundle_resources', False)):
- for output in action['outputs']:
- AddResourceToTarget(output, pbxp, xct)
-
- # tgt_mac_bundle_resources holds the list of bundle resources so
- # the rule processing can check against it.
- if is_bundle:
- tgt_mac_bundle_resources = spec.get('mac_bundle_resources', [])
- else:
- tgt_mac_bundle_resources = []
-
- # Add custom shell script phases driving "make" for "rules" sections.
- #
- # Xcode's built-in rule support is almost powerful enough to use directly,
- # but there are a few significant deficiencies that render them unusable.
- # There are workarounds for some of its inadequacies, but in aggregate,
- # the workarounds added complexity to the generator, and some workarounds
- # actually require input files to be crafted more carefully than I'd like.
- # Consequently, until Xcode rules are made more capable, "rules" input
- # sections will be handled in Xcode output by shell script build phases
- # performed prior to the compilation phase.
- #
- # The following problems with Xcode rules were found. The numbers are
- # Apple radar IDs. I hope that these shortcomings are addressed, I really
- # liked having the rules handled directly in Xcode during the period that
- # I was prototyping this.
- #
- # 6588600 Xcode compiles custom script rule outputs too soon, compilation
- # fails. This occurs when rule outputs from distinct inputs are
- # interdependent. The only workaround is to put rules and their
- # inputs in a separate target from the one that compiles the rule
- # outputs. This requires input file cooperation and it means that
- # process_outputs_as_sources is unusable.
- # 6584932 Need to declare that custom rule outputs should be excluded from
- # compilation. A possible workaround is to lie to Xcode about a
- # rule's output, giving it a dummy file it doesn't know how to
- # compile. The rule action script would need to touch the dummy.
- # 6584839 I need a way to declare additional inputs to a custom rule.
- # A possible workaround is a shell script phase prior to
- # compilation that touches a rule's primary input files if any
- # would-be additional inputs are newer than the output. Modifying
- # the source tree - even just modification times - feels dirty.
- # 6564240 Xcode "custom script" build rules always dump all environment
- # variables. This is a low-prioroty problem and is not a
- # show-stopper.
- rules_by_ext = {}
- for rule in spec_rules:
- rules_by_ext[rule['extension']] = rule
-
- # First, some definitions:
- #
- # A "rule source" is a file that was listed in a target's "sources"
- # list and will have a rule applied to it on the basis of matching the
- # rule's "extensions" attribute. Rule sources are direct inputs to
- # rules.
- #
- # Rule definitions may specify additional inputs in their "inputs"
- # attribute. These additional inputs are used for dependency tracking
- # purposes.
- #
- # A "concrete output" is a rule output with input-dependent variables
- # resolved. For example, given a rule with:
- # 'extension': 'ext', 'outputs': ['$(INPUT_FILE_BASE).cc'],
- # if the target's "sources" list contained "one.ext" and "two.ext",
- # the "concrete output" for rule input "two.ext" would be "two.cc". If
- # a rule specifies multiple outputs, each input file that the rule is
- # applied to will have the same number of concrete outputs.
- #
- # If any concrete outputs are outdated or missing relative to their
- # corresponding rule_source or to any specified additional input, the
- # rule action must be performed to generate the concrete outputs.
-
- # concrete_outputs_by_rule_source will have an item at the same index
- # as the rule['rule_sources'] that it corresponds to. Each item is a
- # list of all of the concrete outputs for the rule_source.
- concrete_outputs_by_rule_source = []
-
- # concrete_outputs_all is a flat list of all concrete outputs that this
- # rule is able to produce, given the known set of input files
- # (rule_sources) that apply to it.
- concrete_outputs_all = []
-
- # messages & actions are keyed by the same indices as rule['rule_sources']
- # and concrete_outputs_by_rule_source. They contain the message and
- # action to perform after resolving input-dependent variables. The
- # message is optional, in which case None is stored for each rule source.
- messages = []
- actions = []
-
- for rule_source in rule.get('rule_sources', []):
- rule_source_dirname, rule_source_basename = \
- posixpath.split(rule_source)
- (rule_source_root, rule_source_ext) = \
- posixpath.splitext(rule_source_basename)
-
- # These are the same variable names that Xcode uses for its own native
- # rule support. Because Xcode's rule engine is not being used, they
- # need to be expanded as they are written to the makefile.
- rule_input_dict = {
- 'INPUT_FILE_BASE': rule_source_root,
- 'INPUT_FILE_SUFFIX': rule_source_ext,
- 'INPUT_FILE_NAME': rule_source_basename,
- 'INPUT_FILE_PATH': rule_source,
- 'INPUT_FILE_DIRNAME': rule_source_dirname,
- }
-
- concrete_outputs_for_this_rule_source = []
- for output in rule.get('outputs', []):
- # Fortunately, Xcode and make both use $(VAR) format for their
- # variables, so the expansion is the only transformation necessary.
- # Any remaning $(VAR)-type variables in the string can be given
- # directly to make, which will pick up the correct settings from
- # what Xcode puts into the environment.
- concrete_output = ExpandXcodeVariables(output, rule_input_dict)
- concrete_outputs_for_this_rule_source.append(concrete_output)
-
- # Add all concrete outputs to the project.
- pbxp.AddOrGetFileInRootGroup(concrete_output)
-
- concrete_outputs_by_rule_source.append( \
- concrete_outputs_for_this_rule_source)
- concrete_outputs_all.extend(concrete_outputs_for_this_rule_source)
-
- # TODO(mark): Should verify that at most one of these is specified.
- if int(rule.get('process_outputs_as_sources', False)):
- for output in concrete_outputs_for_this_rule_source:
- AddSourceToTarget(output, type, pbxp, xct)
-
- # If the file came from the mac_bundle_resources list or if the rule
- # is marked to process outputs as bundle resource, do so.
- was_mac_bundle_resource = rule_source in tgt_mac_bundle_resources
- if was_mac_bundle_resource or \
- int(rule.get('process_outputs_as_mac_bundle_resources', False)):
- for output in concrete_outputs_for_this_rule_source:
- AddResourceToTarget(output, pbxp, xct)
-
- # Do we have a message to print when this rule runs?
- message = rule.get('message')
- if message:
- message = gyp.common.EncodePOSIXShellArgument(message)
- message = ExpandXcodeVariables(message, rule_input_dict)
- messages.append(message)
-
- # Turn the list into a string that can be passed to a shell.
- action_string = gyp.common.EncodePOSIXShellList(rule['action'])
-
- action = ExpandXcodeVariables(action_string, rule_input_dict)
- actions.append(action)
-
- if len(concrete_outputs_all) > 0:
- # TODO(mark): There's a possibilty for collision here. Consider
- # target "t" rule "A_r" and target "t_A" rule "r".
- makefile_name = '%s.make' % re.sub(
- '[^a-zA-Z0-9_]', '_' , '%s_%s' % (target_name, rule['rule_name']))
- makefile_path = os.path.join(xcode_projects[build_file].path,
- makefile_name)
- # TODO(mark): try/close? Write to a temporary file and swap it only
- # if it's got changes?
- makefile = open(makefile_path, 'wb')
-
- # make will build the first target in the makefile by default. By
- # convention, it's called "all". List all (or at least one)
- # concrete output for each rule source as a prerequisite of the "all"
- # target.
- makefile.write('all: \\\n')
- for concrete_output_index in \
- xrange(0, len(concrete_outputs_by_rule_source)):
- # Only list the first (index [0]) concrete output of each input
- # in the "all" target. Otherwise, a parallel make (-j > 1) would
- # attempt to process each input multiple times simultaneously.
- # Otherwise, "all" could just contain the entire list of
- # concrete_outputs_all.
- concrete_output = \
- concrete_outputs_by_rule_source[concrete_output_index][0]
- if concrete_output_index == len(concrete_outputs_by_rule_source) - 1:
- eol = ''
- else:
- eol = ' \\'
- makefile.write(' %s%s\n' % (concrete_output, eol))
-
- for (rule_source, concrete_outputs, message, action) in \
- zip(rule['rule_sources'], concrete_outputs_by_rule_source,
- messages, actions):
- makefile.write('\n')
-
- # Add a rule that declares it can build each concrete output of a
- # rule source. Collect the names of the directories that are
- # required.
- concrete_output_dirs = []
- for concrete_output_index in xrange(0, len(concrete_outputs)):
- concrete_output = concrete_outputs[concrete_output_index]
- if concrete_output_index == 0:
- bol = ''
- else:
- bol = ' '
- makefile.write('%s%s \\\n' % (bol, concrete_output))
-
- concrete_output_dir = posixpath.dirname(concrete_output)
- if (concrete_output_dir and
- concrete_output_dir not in concrete_output_dirs):
- concrete_output_dirs.append(concrete_output_dir)
-
- makefile.write(' : \\\n')
-
- # The prerequisites for this rule are the rule source itself and
- # the set of additional rule inputs, if any.
- prerequisites = [rule_source]
- prerequisites.extend(rule.get('inputs', []))
- for prerequisite_index in xrange(0, len(prerequisites)):
- prerequisite = prerequisites[prerequisite_index]
- if prerequisite_index == len(prerequisites) - 1:
- eol = ''
- else:
- eol = ' \\'
- makefile.write(' %s%s\n' % (prerequisite, eol))
-
- # Make sure that output directories exist before executing the rule
- # action.
- if len(concrete_output_dirs) > 0:
- makefile.write('\t@mkdir -p "%s"\n' %
- '" "'.join(concrete_output_dirs))
-
- # The rule message and action have already had the necessary variable
- # substitutions performed.
- if message:
- # Mark it with note: so Xcode picks it up in build output.
- makefile.write('\t@echo note: %s\n' % message)
- makefile.write('\t%s\n' % action)
-
- makefile.close()
-
- # It might be nice to ensure that needed output directories exist
- # here rather than in each target in the Makefile, but that wouldn't
- # work if there ever was a concrete output that had an input-dependent
- # variable anywhere other than in the leaf position.
-
- # Don't declare any inputPaths or outputPaths. If they're present,
- # Xcode will provide a slight optimization by only running the script
- # phase if any output is missing or outdated relative to any input.
- # Unfortunately, it will also assume that all outputs are touched by
- # the script, and if the outputs serve as files in a compilation
- # phase, they will be unconditionally rebuilt. Since make might not
- # rebuild everything that could be declared here as an output, this
- # extra compilation activity is unnecessary. With inputPaths and
- # outputPaths not supplied, make will always be called, but it knows
- # enough to not do anything when everything is up-to-date.
-
- # To help speed things up, pass -j COUNT to make so it does some work
- # in parallel. Don't use ncpus because Xcode will build ncpus targets
- # in parallel and if each target happens to have a rules step, there
- # would be ncpus^2 things going. With a machine that has 2 quad-core
- # Xeons, a build can quickly run out of processes based on
- # scheduling/other tasks, and randomly failing builds are no good.
- script = \
-"""JOB_COUNT="$(/usr/sbin/sysctl -n hw.ncpu)"
-if [ "${JOB_COUNT}" -gt 4 ]; then
- JOB_COUNT=4
-fi
-exec xcrun make -f "${PROJECT_FILE_PATH}/%s" -j "${JOB_COUNT}"
-exit 1
-""" % makefile_name
- ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
- 'name': 'Rule "' + rule['rule_name'] + '"',
- 'shellScript': script,
- 'showEnvVarsInLog': 0,
- })
-
- if support_xct:
- support_xct.AppendProperty('buildPhases', ssbp)
- else:
- # TODO(mark): this assumes too much knowledge of the internals of
- # xcodeproj_file; some of these smarts should move into xcodeproj_file
- # itself.
- xct._properties['buildPhases'].insert(prebuild_index, ssbp)
- prebuild_index = prebuild_index + 1
-
- # Extra rule inputs also go into the project file. Concrete outputs were
- # already added when they were computed.
- groups = ['inputs', 'inputs_excluded']
- if skip_excluded_files:
- groups = [x for x in groups if not x.endswith('_excluded')]
- for group in groups:
- for item in rule.get(group, []):
- pbxp.AddOrGetFileInRootGroup(item)
-
- # Add "sources".
- for source in spec.get('sources', []):
- (source_root, source_extension) = posixpath.splitext(source)
- if source_extension[1:] not in rules_by_ext:
- # AddSourceToTarget will add the file to a root group if it's not
- # already there.
- AddSourceToTarget(source, type, pbxp, xct)
- else:
- pbxp.AddOrGetFileInRootGroup(source)
-
- # Add "mac_bundle_resources" and "mac_framework_private_headers" if
- # it's a bundle of any type.
- if is_bundle:
- for resource in tgt_mac_bundle_resources:
- (resource_root, resource_extension) = posixpath.splitext(resource)
- if resource_extension[1:] not in rules_by_ext:
- AddResourceToTarget(resource, pbxp, xct)
- else:
- pbxp.AddOrGetFileInRootGroup(resource)
-
- for header in spec.get('mac_framework_private_headers', []):
- AddHeaderToTarget(header, pbxp, xct, False)
-
- # Add "mac_framework_headers". These can be valid for both frameworks
- # and static libraries.
- if is_bundle or type == 'static_library':
- for header in spec.get('mac_framework_headers', []):
- AddHeaderToTarget(header, pbxp, xct, True)
-
- # Add "copies".
- pbxcp_dict = {}
- for copy_group in spec.get('copies', []):
- dest = copy_group['destination']
- if dest[0] not in ('/', '$'):
- # Relative paths are relative to $(SRCROOT).
- dest = '$(SRCROOT)/' + dest
-
- code_sign = int(copy_group.get('xcode_code_sign', 0))
- settings = (None, '{ATTRIBUTES = (CodeSignOnCopy, ); }')[code_sign];
-
- # Coalesce multiple "copies" sections in the same target with the same
- # "destination" property into the same PBXCopyFilesBuildPhase, otherwise
- # they'll wind up with ID collisions.
- pbxcp = pbxcp_dict.get(dest, None)
- if pbxcp is None:
- pbxcp = gyp.xcodeproj_file.PBXCopyFilesBuildPhase({
- 'name': 'Copy to ' + copy_group['destination']
- },
- parent=xct)
- pbxcp.SetDestination(dest)
-
- # TODO(mark): The usual comment about this knowing too much about
- # gyp.xcodeproj_file internals applies.
- xct._properties['buildPhases'].insert(prebuild_index, pbxcp)
-
- pbxcp_dict[dest] = pbxcp
-
- for file in copy_group['files']:
- pbxcp.AddFile(file, settings)
-
- # Excluded files can also go into the project file.
- if not skip_excluded_files:
- for key in ['sources', 'mac_bundle_resources', 'mac_framework_headers',
- 'mac_framework_private_headers']:
- excluded_key = key + '_excluded'
- for item in spec.get(excluded_key, []):
- pbxp.AddOrGetFileInRootGroup(item)
-
- # So can "inputs" and "outputs" sections of "actions" groups.
- groups = ['inputs', 'inputs_excluded', 'outputs', 'outputs_excluded']
- if skip_excluded_files:
- groups = [x for x in groups if not x.endswith('_excluded')]
- for action in spec.get('actions', []):
- for group in groups:
- for item in action.get(group, []):
- # Exclude anything in BUILT_PRODUCTS_DIR. They're products, not
- # sources.
- if not item.startswith('$(BUILT_PRODUCTS_DIR)/'):
- pbxp.AddOrGetFileInRootGroup(item)
-
- for postbuild in spec.get('postbuilds', []):
- action_string_sh = gyp.common.EncodePOSIXShellList(postbuild['action'])
- script = 'exec ' + action_string_sh + '\nexit 1\n'
-
- # Make the postbuild step depend on the output of ld or ar from this
- # target. Apparently putting the script step after the link step isn't
- # sufficient to ensure proper ordering in all cases. With an input
- # declared but no outputs, the script step should run every time, as
- # desired.
- ssbp = gyp.xcodeproj_file.PBXShellScriptBuildPhase({
- 'inputPaths': ['$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)'],
- 'name': 'Postbuild "' + postbuild['postbuild_name'] + '"',
- 'shellScript': script,
- 'showEnvVarsInLog': 0,
- })
- xct.AppendProperty('buildPhases', ssbp)
-
- # Add dependencies before libraries, because adding a dependency may imply
- # adding a library. It's preferable to keep dependencies listed first
- # during a link phase so that they can override symbols that would
- # otherwise be provided by libraries, which will usually include system
- # libraries. On some systems, ld is finicky and even requires the
- # libraries to be ordered in such a way that unresolved symbols in
- # earlier-listed libraries may only be resolved by later-listed libraries.
- # The Mac linker doesn't work that way, but other platforms do, and so
- # their linker invocations need to be constructed in this way. There's
- # no compelling reason for Xcode's linker invocations to differ.
-
- if 'dependencies' in spec:
- for dependency in spec['dependencies']:
- xct.AddDependency(xcode_targets[dependency])
- # The support project also gets the dependencies (in case they are
- # needed for the actions/rules to work).
- if support_xct:
- support_xct.AddDependency(xcode_targets[dependency])
-
- if 'libraries' in spec:
- for library in spec['libraries']:
- xct.FrameworksPhase().AddFile(library)
- # Add the library's directory to LIBRARY_SEARCH_PATHS if necessary.
- # I wish Xcode handled this automatically.
- library_dir = posixpath.dirname(library)
- if library_dir not in xcode_standard_library_dirs and (
- not xct.HasBuildSetting(_library_search_paths_var) or
- library_dir not in xct.GetBuildSetting(_library_search_paths_var)):
- xct.AppendBuildSetting(_library_search_paths_var, library_dir)
-
- for configuration_name in configuration_names:
- configuration = spec['configurations'][configuration_name]
- xcbc = xct.ConfigurationNamed(configuration_name)
- for include_dir in configuration.get('mac_framework_dirs', []):
- xcbc.AppendBuildSetting('FRAMEWORK_SEARCH_PATHS', include_dir)
- for include_dir in configuration.get('include_dirs', []):
- xcbc.AppendBuildSetting('HEADER_SEARCH_PATHS', include_dir)
- for library_dir in configuration.get('library_dirs', []):
- if library_dir not in xcode_standard_library_dirs and (
- not xcbc.HasBuildSetting(_library_search_paths_var) or
- library_dir not in xcbc.GetBuildSetting(_library_search_paths_var)):
- xcbc.AppendBuildSetting(_library_search_paths_var, library_dir)
-
- if 'defines' in configuration:
- for define in configuration['defines']:
- set_define = EscapeXcodeDefine(define)
- xcbc.AppendBuildSetting('GCC_PREPROCESSOR_DEFINITIONS', set_define)
- if 'xcode_settings' in configuration:
- for xck, xcv in configuration['xcode_settings'].iteritems():
- xcbc.SetBuildSetting(xck, xcv)
- if 'xcode_config_file' in configuration:
- config_ref = pbxp.AddOrGetFileInRootGroup(
- configuration['xcode_config_file'])
- xcbc.SetBaseConfiguration(config_ref)
-
- build_files = []
- for build_file, build_file_dict in data.iteritems():
- if build_file.endswith('.gyp'):
- build_files.append(build_file)
-
- for build_file in build_files:
- xcode_projects[build_file].Finalize1(xcode_targets, serialize_all_tests)
-
- for build_file in build_files:
- xcode_projects[build_file].Finalize2(xcode_targets,
- xcode_target_to_target_dict)
-
- for build_file in build_files:
- xcode_projects[build_file].Write()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py b/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py
deleted file mode 100644
index 260324a..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2013 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-""" Unit tests for the xcode.py file. """
-
-import gyp.generator.xcode as xcode
-import unittest
-import sys
-
-
-class TestEscapeXcodeDefine(unittest.TestCase):
- if sys.platform == 'darwin':
- def test_InheritedRemainsUnescaped(self):
- self.assertEqual(xcode.EscapeXcodeDefine('$(inherited)'), '$(inherited)')
-
- def test_Escaping(self):
- self.assertEqual(xcode.EscapeXcodeDefine('a b"c\\'), 'a\\ b\\"c\\\\')
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/input.py b/node_modules/node-gyp/gyp/pylib/gyp/input.py
deleted file mode 100644
index 10f6e0d..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/input.py
+++ /dev/null
@@ -1,2902 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from compiler.ast import Const
-from compiler.ast import Dict
-from compiler.ast import Discard
-from compiler.ast import List
-from compiler.ast import Module
-from compiler.ast import Node
-from compiler.ast import Stmt
-import compiler
-import gyp.common
-import gyp.simple_copy
-import multiprocessing
-import optparse
-import os.path
-import re
-import shlex
-import signal
-import subprocess
-import sys
-import threading
-import time
-import traceback
-from gyp.common import GypError
-from gyp.common import OrderedSet
-
-
-# A list of types that are treated as linkable.
-linkable_types = [
- 'executable',
- 'shared_library',
- 'loadable_module',
- 'mac_kernel_extension',
-]
-
-# A list of sections that contain links to other targets.
-dependency_sections = ['dependencies', 'export_dependent_settings']
-
-# base_path_sections is a list of sections defined by GYP that contain
-# pathnames. The generators can provide more keys, the two lists are merged
-# into path_sections, but you should call IsPathSection instead of using either
-# list directly.
-base_path_sections = [
- 'destination',
- 'files',
- 'include_dirs',
- 'inputs',
- 'libraries',
- 'outputs',
- 'sources',
-]
-path_sections = set()
-
-# These per-process dictionaries are used to cache build file data when loading
-# in parallel mode.
-per_process_data = {}
-per_process_aux_data = {}
-
-def IsPathSection(section):
- # If section ends in one of the '=+?!' characters, it's applied to a section
- # without the trailing characters. '/' is notably absent from this list,
- # because there's no way for a regular expression to be treated as a path.
- while section and section[-1:] in '=+?!':
- section = section[:-1]
-
- if section in path_sections:
- return True
-
- # Sections mathing the regexp '_(dir|file|path)s?$' are also
- # considered PathSections. Using manual string matching since that
- # is much faster than the regexp and this can be called hundreds of
- # thousands of times so micro performance matters.
- if "_" in section:
- tail = section[-6:]
- if tail[-1] == 's':
- tail = tail[:-1]
- if tail[-5:] in ('_file', '_path'):
- return True
- return tail[-4:] == '_dir'
-
- return False
-
-# base_non_configuration_keys is a list of key names that belong in the target
-# itself and should not be propagated into its configurations. It is merged
-# with a list that can come from the generator to
-# create non_configuration_keys.
-base_non_configuration_keys = [
- # Sections that must exist inside targets and not configurations.
- 'actions',
- 'configurations',
- 'copies',
- 'default_configuration',
- 'dependencies',
- 'dependencies_original',
- 'libraries',
- 'postbuilds',
- 'product_dir',
- 'product_extension',
- 'product_name',
- 'product_prefix',
- 'rules',
- 'run_as',
- 'sources',
- 'standalone_static_library',
- 'suppress_wildcard',
- 'target_name',
- 'toolset',
- 'toolsets',
- 'type',
-
- # Sections that can be found inside targets or configurations, but that
- # should not be propagated from targets into their configurations.
- 'variables',
-]
-non_configuration_keys = []
-
-# Keys that do not belong inside a configuration dictionary.
-invalid_configuration_keys = [
- 'actions',
- 'all_dependent_settings',
- 'configurations',
- 'dependencies',
- 'direct_dependent_settings',
- 'libraries',
- 'link_settings',
- 'sources',
- 'standalone_static_library',
- 'target_name',
- 'type',
-]
-
-# Controls whether or not the generator supports multiple toolsets.
-multiple_toolsets = False
-
-# Paths for converting filelist paths to output paths: {
-# toplevel,
-# qualified_output_dir,
-# }
-generator_filelist_paths = None
-
-def GetIncludedBuildFiles(build_file_path, aux_data, included=None):
- """Return a list of all build files included into build_file_path.
-
- The returned list will contain build_file_path as well as all other files
- that it included, either directly or indirectly. Note that the list may
- contain files that were included into a conditional section that evaluated
- to false and was not merged into build_file_path's dict.
-
- aux_data is a dict containing a key for each build file or included build
- file. Those keys provide access to dicts whose "included" keys contain
- lists of all other files included by the build file.
-
- included should be left at its default None value by external callers. It
- is used for recursion.
-
- The returned list will not contain any duplicate entries. Each build file
- in the list will be relative to the current directory.
- """
-
- if included == None:
- included = []
-
- if build_file_path in included:
- return included
-
- included.append(build_file_path)
-
- for included_build_file in aux_data[build_file_path].get('included', []):
- GetIncludedBuildFiles(included_build_file, aux_data, included)
-
- return included
-
-
-def CheckedEval(file_contents):
- """Return the eval of a gyp file.
-
- The gyp file is restricted to dictionaries and lists only, and
- repeated keys are not allowed.
-
- Note that this is slower than eval() is.
- """
-
- ast = compiler.parse(file_contents)
- assert isinstance(ast, Module)
- c1 = ast.getChildren()
- assert c1[0] is None
- assert isinstance(c1[1], Stmt)
- c2 = c1[1].getChildren()
- assert isinstance(c2[0], Discard)
- c3 = c2[0].getChildren()
- assert len(c3) == 1
- return CheckNode(c3[0], [])
-
-
-def CheckNode(node, keypath):
- if isinstance(node, Dict):
- c = node.getChildren()
- dict = {}
- for n in range(0, len(c), 2):
- assert isinstance(c[n], Const)
- key = c[n].getChildren()[0]
- if key in dict:
- raise GypError("Key '" + key + "' repeated at level " +
- repr(len(keypath) + 1) + " with key path '" +
- '.'.join(keypath) + "'")
- kp = list(keypath) # Make a copy of the list for descending this node.
- kp.append(key)
- dict[key] = CheckNode(c[n + 1], kp)
- return dict
- elif isinstance(node, List):
- c = node.getChildren()
- children = []
- for index, child in enumerate(c):
- kp = list(keypath) # Copy list.
- kp.append(repr(index))
- children.append(CheckNode(child, kp))
- return children
- elif isinstance(node, Const):
- return node.getChildren()[0]
- else:
- raise TypeError("Unknown AST node at key path '" + '.'.join(keypath) +
- "': " + repr(node))
-
-
-def LoadOneBuildFile(build_file_path, data, aux_data, includes,
- is_target, check):
- if build_file_path in data:
- return data[build_file_path]
-
- if os.path.exists(build_file_path):
- # Open the build file for read ('r') with universal-newlines mode ('U')
- # to make sure platform specific newlines ('\r\n' or '\r') are converted to '\n'
- # which otherwise will fail eval()
- if sys.platform == 'zos':
- # On z/OS, universal-newlines mode treats the file as an ascii file. But since
- # node-gyp produces ebcdic files, do not use that mode.
- build_file_contents = open(build_file_path, 'r').read()
- else:
- build_file_contents = open(build_file_path, 'rU').read()
- else:
- raise GypError("%s not found (cwd: %s)" % (build_file_path, os.getcwd()))
-
- build_file_data = None
- try:
- if check:
- build_file_data = CheckedEval(build_file_contents)
- else:
- build_file_data = eval(build_file_contents, {'__builtins__': None},
- None)
- except SyntaxError, e:
- e.filename = build_file_path
- raise
- except Exception, e:
- gyp.common.ExceptionAppend(e, 'while reading ' + build_file_path)
- raise
-
- if type(build_file_data) is not dict:
- raise GypError("%s does not evaluate to a dictionary." % build_file_path)
-
- data[build_file_path] = build_file_data
- aux_data[build_file_path] = {}
-
- # Scan for includes and merge them in.
- if ('skip_includes' not in build_file_data or
- not build_file_data['skip_includes']):
- try:
- if is_target:
- LoadBuildFileIncludesIntoDict(build_file_data, build_file_path, data,
- aux_data, includes, check)
- else:
- LoadBuildFileIncludesIntoDict(build_file_data, build_file_path, data,
- aux_data, None, check)
- except Exception, e:
- gyp.common.ExceptionAppend(e,
- 'while reading includes of ' + build_file_path)
- raise
-
- return build_file_data
-
-
-def LoadBuildFileIncludesIntoDict(subdict, subdict_path, data, aux_data,
- includes, check):
- includes_list = []
- if includes != None:
- includes_list.extend(includes)
- if 'includes' in subdict:
- for include in subdict['includes']:
- # "include" is specified relative to subdict_path, so compute the real
- # path to include by appending the provided "include" to the directory
- # in which subdict_path resides.
- relative_include = \
- os.path.normpath(os.path.join(os.path.dirname(subdict_path), include))
- includes_list.append(relative_include)
- # Unhook the includes list, it's no longer needed.
- del subdict['includes']
-
- # Merge in the included files.
- for include in includes_list:
- if not 'included' in aux_data[subdict_path]:
- aux_data[subdict_path]['included'] = []
- aux_data[subdict_path]['included'].append(include)
-
- gyp.DebugOutput(gyp.DEBUG_INCLUDES, "Loading Included File: '%s'", include)
-
- MergeDicts(subdict,
- LoadOneBuildFile(include, data, aux_data, None, False, check),
- subdict_path, include)
-
- # Recurse into subdictionaries.
- for k, v in subdict.iteritems():
- if type(v) is dict:
- LoadBuildFileIncludesIntoDict(v, subdict_path, data, aux_data,
- None, check)
- elif type(v) is list:
- LoadBuildFileIncludesIntoList(v, subdict_path, data, aux_data,
- check)
-
-
-# This recurses into lists so that it can look for dicts.
-def LoadBuildFileIncludesIntoList(sublist, sublist_path, data, aux_data, check):
- for item in sublist:
- if type(item) is dict:
- LoadBuildFileIncludesIntoDict(item, sublist_path, data, aux_data,
- None, check)
- elif type(item) is list:
- LoadBuildFileIncludesIntoList(item, sublist_path, data, aux_data, check)
-
-# Processes toolsets in all the targets. This recurses into condition entries
-# since they can contain toolsets as well.
-def ProcessToolsetsInDict(data):
- if 'targets' in data:
- target_list = data['targets']
- new_target_list = []
- for target in target_list:
- # If this target already has an explicit 'toolset', and no 'toolsets'
- # list, don't modify it further.
- if 'toolset' in target and 'toolsets' not in target:
- new_target_list.append(target)
- continue
- if multiple_toolsets:
- toolsets = target.get('toolsets', ['target'])
- else:
- toolsets = ['target']
- # Make sure this 'toolsets' definition is only processed once.
- if 'toolsets' in target:
- del target['toolsets']
- if len(toolsets) > 0:
- # Optimization: only do copies if more than one toolset is specified.
- for build in toolsets[1:]:
- new_target = gyp.simple_copy.deepcopy(target)
- new_target['toolset'] = build
- new_target_list.append(new_target)
- target['toolset'] = toolsets[0]
- new_target_list.append(target)
- data['targets'] = new_target_list
- if 'conditions' in data:
- for condition in data['conditions']:
- if type(condition) is list:
- for condition_dict in condition[1:]:
- if type(condition_dict) is dict:
- ProcessToolsetsInDict(condition_dict)
-
-
-# TODO(mark): I don't love this name. It just means that it's going to load
-# a build file that contains targets and is expected to provide a targets dict
-# that contains the targets...
-def LoadTargetBuildFile(build_file_path, data, aux_data, variables, includes,
- depth, check, load_dependencies):
- # If depth is set, predefine the DEPTH variable to be a relative path from
- # this build file's directory to the directory identified by depth.
- if depth:
- # TODO(dglazkov) The backslash/forward-slash replacement at the end is a
- # temporary measure. This should really be addressed by keeping all paths
- # in POSIX until actual project generation.
- d = gyp.common.RelativePath(depth, os.path.dirname(build_file_path))
- if d == '':
- variables['DEPTH'] = '.'
- else:
- variables['DEPTH'] = d.replace('\\', '/')
-
- # The 'target_build_files' key is only set when loading target build files in
- # the non-parallel code path, where LoadTargetBuildFile is called
- # recursively. In the parallel code path, we don't need to check whether the
- # |build_file_path| has already been loaded, because the 'scheduled' set in
- # ParallelState guarantees that we never load the same |build_file_path|
- # twice.
- if 'target_build_files' in data:
- if build_file_path in data['target_build_files']:
- # Already loaded.
- return False
- data['target_build_files'].add(build_file_path)
-
- gyp.DebugOutput(gyp.DEBUG_INCLUDES,
- "Loading Target Build File '%s'", build_file_path)
-
- build_file_data = LoadOneBuildFile(build_file_path, data, aux_data,
- includes, True, check)
-
- # Store DEPTH for later use in generators.
- build_file_data['_DEPTH'] = depth
-
- # Set up the included_files key indicating which .gyp files contributed to
- # this target dict.
- if 'included_files' in build_file_data:
- raise GypError(build_file_path + ' must not contain included_files key')
-
- included = GetIncludedBuildFiles(build_file_path, aux_data)
- build_file_data['included_files'] = []
- for included_file in included:
- # included_file is relative to the current directory, but it needs to
- # be made relative to build_file_path's directory.
- included_relative = \
- gyp.common.RelativePath(included_file,
- os.path.dirname(build_file_path))
- build_file_data['included_files'].append(included_relative)
-
- # Do a first round of toolsets expansion so that conditions can be defined
- # per toolset.
- ProcessToolsetsInDict(build_file_data)
-
- # Apply "pre"/"early" variable expansions and condition evaluations.
- ProcessVariablesAndConditionsInDict(
- build_file_data, PHASE_EARLY, variables, build_file_path)
-
- # Since some toolsets might have been defined conditionally, perform
- # a second round of toolsets expansion now.
- ProcessToolsetsInDict(build_file_data)
-
- # Look at each project's target_defaults dict, and merge settings into
- # targets.
- if 'target_defaults' in build_file_data:
- if 'targets' not in build_file_data:
- raise GypError("Unable to find targets in build file %s" %
- build_file_path)
-
- index = 0
- while index < len(build_file_data['targets']):
- # This procedure needs to give the impression that target_defaults is
- # used as defaults, and the individual targets inherit from that.
- # The individual targets need to be merged into the defaults. Make
- # a deep copy of the defaults for each target, merge the target dict
- # as found in the input file into that copy, and then hook up the
- # copy with the target-specific data merged into it as the replacement
- # target dict.
- old_target_dict = build_file_data['targets'][index]
- new_target_dict = gyp.simple_copy.deepcopy(
- build_file_data['target_defaults'])
- MergeDicts(new_target_dict, old_target_dict,
- build_file_path, build_file_path)
- build_file_data['targets'][index] = new_target_dict
- index += 1
-
- # No longer needed.
- del build_file_data['target_defaults']
-
- # Look for dependencies. This means that dependency resolution occurs
- # after "pre" conditionals and variable expansion, but before "post" -
- # in other words, you can't put a "dependencies" section inside a "post"
- # conditional within a target.
-
- dependencies = []
- if 'targets' in build_file_data:
- for target_dict in build_file_data['targets']:
- if 'dependencies' not in target_dict:
- continue
- for dependency in target_dict['dependencies']:
- dependencies.append(
- gyp.common.ResolveTarget(build_file_path, dependency, None)[0])
-
- if load_dependencies:
- for dependency in dependencies:
- try:
- LoadTargetBuildFile(dependency, data, aux_data, variables,
- includes, depth, check, load_dependencies)
- except Exception, e:
- gyp.common.ExceptionAppend(
- e, 'while loading dependencies of %s' % build_file_path)
- raise
- else:
- return (build_file_path, dependencies)
-
-def CallLoadTargetBuildFile(global_flags,
- build_file_path, variables,
- includes, depth, check,
- generator_input_info):
- """Wrapper around LoadTargetBuildFile for parallel processing.
-
- This wrapper is used when LoadTargetBuildFile is executed in
- a worker process.
- """
-
- try:
- signal.signal(signal.SIGINT, signal.SIG_IGN)
-
- # Apply globals so that the worker process behaves the same.
- for key, value in global_flags.iteritems():
- globals()[key] = value
-
- SetGeneratorGlobals(generator_input_info)
- result = LoadTargetBuildFile(build_file_path, per_process_data,
- per_process_aux_data, variables,
- includes, depth, check, False)
- if not result:
- return result
-
- (build_file_path, dependencies) = result
-
- # We can safely pop the build_file_data from per_process_data because it
- # will never be referenced by this process again, so we don't need to keep
- # it in the cache.
- build_file_data = per_process_data.pop(build_file_path)
-
- # This gets serialized and sent back to the main process via a pipe.
- # It's handled in LoadTargetBuildFileCallback.
- return (build_file_path,
- build_file_data,
- dependencies)
- except GypError, e:
- sys.stderr.write("gyp: %s\n" % e)
- return None
- except Exception, e:
- print >>sys.stderr, 'Exception:', e
- print >>sys.stderr, traceback.format_exc()
- return None
-
-
-class ParallelProcessingError(Exception):
- pass
-
-
-class ParallelState(object):
- """Class to keep track of state when processing input files in parallel.
-
- If build files are loaded in parallel, use this to keep track of
- state during farming out and processing parallel jobs. It's stored
- in a global so that the callback function can have access to it.
- """
-
- def __init__(self):
- # The multiprocessing pool.
- self.pool = None
- # The condition variable used to protect this object and notify
- # the main loop when there might be more data to process.
- self.condition = None
- # The "data" dict that was passed to LoadTargetBuildFileParallel
- self.data = None
- # The number of parallel calls outstanding; decremented when a response
- # was received.
- self.pending = 0
- # The set of all build files that have been scheduled, so we don't
- # schedule the same one twice.
- self.scheduled = set()
- # A list of dependency build file paths that haven't been scheduled yet.
- self.dependencies = []
- # Flag to indicate if there was an error in a child process.
- self.error = False
-
- def LoadTargetBuildFileCallback(self, result):
- """Handle the results of running LoadTargetBuildFile in another process.
- """
- self.condition.acquire()
- if not result:
- self.error = True
- self.condition.notify()
- self.condition.release()
- return
- (build_file_path0, build_file_data0, dependencies0) = result
- self.data[build_file_path0] = build_file_data0
- self.data['target_build_files'].add(build_file_path0)
- for new_dependency in dependencies0:
- if new_dependency not in self.scheduled:
- self.scheduled.add(new_dependency)
- self.dependencies.append(new_dependency)
- self.pending -= 1
- self.condition.notify()
- self.condition.release()
-
-
-def LoadTargetBuildFilesParallel(build_files, data, variables, includes, depth,
- check, generator_input_info):
- parallel_state = ParallelState()
- parallel_state.condition = threading.Condition()
- # Make copies of the build_files argument that we can modify while working.
- parallel_state.dependencies = list(build_files)
- parallel_state.scheduled = set(build_files)
- parallel_state.pending = 0
- parallel_state.data = data
-
- try:
- parallel_state.condition.acquire()
- while parallel_state.dependencies or parallel_state.pending:
- if parallel_state.error:
- break
- if not parallel_state.dependencies:
- parallel_state.condition.wait()
- continue
-
- dependency = parallel_state.dependencies.pop()
-
- parallel_state.pending += 1
- global_flags = {
- 'path_sections': globals()['path_sections'],
- 'non_configuration_keys': globals()['non_configuration_keys'],
- 'multiple_toolsets': globals()['multiple_toolsets']}
-
- if not parallel_state.pool:
- parallel_state.pool = multiprocessing.Pool(multiprocessing.cpu_count())
- parallel_state.pool.apply_async(
- CallLoadTargetBuildFile,
- args = (global_flags, dependency,
- variables, includes, depth, check, generator_input_info),
- callback = parallel_state.LoadTargetBuildFileCallback)
- except KeyboardInterrupt, e:
- parallel_state.pool.terminate()
- raise e
-
- parallel_state.condition.release()
-
- parallel_state.pool.close()
- parallel_state.pool.join()
- parallel_state.pool = None
-
- if parallel_state.error:
- sys.exit(1)
-
-# Look for the bracket that matches the first bracket seen in a
-# string, and return the start and end as a tuple. For example, if
-# the input is something like "<(foo <(bar)) blah", then it would
-# return (1, 13), indicating the entire string except for the leading
-# "<" and trailing " blah".
-LBRACKETS= set('{[(')
-BRACKETS = {'}': '{', ']': '[', ')': '('}
-def FindEnclosingBracketGroup(input_str):
- stack = []
- start = -1
- for index, char in enumerate(input_str):
- if char in LBRACKETS:
- stack.append(char)
- if start == -1:
- start = index
- elif char in BRACKETS:
- if not stack:
- return (-1, -1)
- if stack.pop() != BRACKETS[char]:
- return (-1, -1)
- if not stack:
- return (start, index + 1)
- return (-1, -1)
-
-
-def IsStrCanonicalInt(string):
- """Returns True if |string| is in its canonical integer form.
-
- The canonical form is such that str(int(string)) == string.
- """
- if type(string) is str:
- # This function is called a lot so for maximum performance, avoid
- # involving regexps which would otherwise make the code much
- # shorter. Regexps would need twice the time of this function.
- if string:
- if string == "0":
- return True
- if string[0] == "-":
- string = string[1:]
- if not string:
- return False
- if '1' <= string[0] <= '9':
- return string.isdigit()
-
- return False
-
-
-# This matches things like "<(asdf)", "<!(cmd)", "<!@(cmd)", "<|(list)",
-# "<!interpreter(arguments)", "<([list])", and even "<([)" and "<(<())".
-# In the last case, the inner "<()" is captured in match['content'].
-early_variable_re = re.compile(
- r'(?P<replace>(?P<type><(?:(?:!?@?)|\|)?)'
- r'(?P<command_string>[-a-zA-Z0-9_.]+)?'
- r'\((?P<is_array>\s*\[?)'
- r'(?P<content>.*?)(\]?)\))')
-
-# This matches the same as early_variable_re, but with '>' instead of '<'.
-late_variable_re = re.compile(
- r'(?P<replace>(?P<type>>(?:(?:!?@?)|\|)?)'
- r'(?P<command_string>[-a-zA-Z0-9_.]+)?'
- r'\((?P<is_array>\s*\[?)'
- r'(?P<content>.*?)(\]?)\))')
-
-# This matches the same as early_variable_re, but with '^' instead of '<'.
-latelate_variable_re = re.compile(
- r'(?P<replace>(?P<type>[\^](?:(?:!?@?)|\|)?)'
- r'(?P<command_string>[-a-zA-Z0-9_.]+)?'
- r'\((?P<is_array>\s*\[?)'
- r'(?P<content>.*?)(\]?)\))')
-
-# Global cache of results from running commands so they don't have to be run
-# more then once.
-cached_command_results = {}
-
-
-def FixupPlatformCommand(cmd):
- if sys.platform == 'win32':
- if type(cmd) is list:
- cmd = [re.sub('^cat ', 'type ', cmd[0])] + cmd[1:]
- else:
- cmd = re.sub('^cat ', 'type ', cmd)
- return cmd
-
-
-PHASE_EARLY = 0
-PHASE_LATE = 1
-PHASE_LATELATE = 2
-
-
-def ExpandVariables(input, phase, variables, build_file):
- # Look for the pattern that gets expanded into variables
- if phase == PHASE_EARLY:
- variable_re = early_variable_re
- expansion_symbol = '<'
- elif phase == PHASE_LATE:
- variable_re = late_variable_re
- expansion_symbol = '>'
- elif phase == PHASE_LATELATE:
- variable_re = latelate_variable_re
- expansion_symbol = '^'
- else:
- assert False
-
- input_str = str(input)
- if IsStrCanonicalInt(input_str):
- return int(input_str)
-
- # Do a quick scan to determine if an expensive regex search is warranted.
- if expansion_symbol not in input_str:
- return input_str
-
- # Get the entire list of matches as a list of MatchObject instances.
- # (using findall here would return strings instead of MatchObjects).
- matches = list(variable_re.finditer(input_str))
- if not matches:
- return input_str
-
- output = input_str
- # Reverse the list of matches so that replacements are done right-to-left.
- # That ensures that earlier replacements won't mess up the string in a
- # way that causes later calls to find the earlier substituted text instead
- # of what's intended for replacement.
- matches.reverse()
- for match_group in matches:
- match = match_group.groupdict()
- gyp.DebugOutput(gyp.DEBUG_VARIABLES, "Matches: %r", match)
- # match['replace'] is the substring to look for, match['type']
- # is the character code for the replacement type (< > <! >! <| >| <@
- # >@ <!@ >!@), match['is_array'] contains a '[' for command
- # arrays, and match['content'] is the name of the variable (< >)
- # or command to run (<! >!). match['command_string'] is an optional
- # command string. Currently, only 'pymod_do_main' is supported.
-
- # run_command is true if a ! variant is used.
- run_command = '!' in match['type']
- command_string = match['command_string']
-
- # file_list is true if a | variant is used.
- file_list = '|' in match['type']
-
- # Capture these now so we can adjust them later.
- replace_start = match_group.start('replace')
- replace_end = match_group.end('replace')
-
- # Find the ending paren, and re-evaluate the contained string.
- (c_start, c_end) = FindEnclosingBracketGroup(input_str[replace_start:])
-
- # Adjust the replacement range to match the entire command
- # found by FindEnclosingBracketGroup (since the variable_re
- # probably doesn't match the entire command if it contained
- # nested variables).
- replace_end = replace_start + c_end
-
- # Find the "real" replacement, matching the appropriate closing
- # paren, and adjust the replacement start and end.
- replacement = input_str[replace_start:replace_end]
-
- # Figure out what the contents of the variable parens are.
- contents_start = replace_start + c_start + 1
- contents_end = replace_end - 1
- contents = input_str[contents_start:contents_end]
-
- # Do filter substitution now for <|().
- # Admittedly, this is different than the evaluation order in other
- # contexts. However, since filtration has no chance to run on <|(),
- # this seems like the only obvious way to give them access to filters.
- if file_list:
- processed_variables = gyp.simple_copy.deepcopy(variables)
- ProcessListFiltersInDict(contents, processed_variables)
- # Recurse to expand variables in the contents
- contents = ExpandVariables(contents, phase,
- processed_variables, build_file)
- else:
- # Recurse to expand variables in the contents
- contents = ExpandVariables(contents, phase, variables, build_file)
-
- # Strip off leading/trailing whitespace so that variable matches are
- # simpler below (and because they are rarely needed).
- contents = contents.strip()
-
- # expand_to_list is true if an @ variant is used. In that case,
- # the expansion should result in a list. Note that the caller
- # is to be expecting a list in return, and not all callers do
- # because not all are working in list context. Also, for list
- # expansions, there can be no other text besides the variable
- # expansion in the input string.
- expand_to_list = '@' in match['type'] and input_str == replacement
-
- if run_command or file_list:
- # Find the build file's directory, so commands can be run or file lists
- # generated relative to it.
- build_file_dir = os.path.dirname(build_file)
- if build_file_dir == '' and not file_list:
- # If build_file is just a leaf filename indicating a file in the
- # current directory, build_file_dir might be an empty string. Set
- # it to None to signal to subprocess.Popen that it should run the
- # command in the current directory.
- build_file_dir = None
-
- # Support <|(listfile.txt ...) which generates a file
- # containing items from a gyp list, generated at gyp time.
- # This works around actions/rules which have more inputs than will
- # fit on the command line.
- if file_list:
- if type(contents) is list:
- contents_list = contents
- else:
- contents_list = contents.split(' ')
- replacement = contents_list[0]
- if os.path.isabs(replacement):
- raise GypError('| cannot handle absolute paths, got "%s"' % replacement)
-
- if not generator_filelist_paths:
- path = os.path.join(build_file_dir, replacement)
- else:
- if os.path.isabs(build_file_dir):
- toplevel = generator_filelist_paths['toplevel']
- rel_build_file_dir = gyp.common.RelativePath(build_file_dir, toplevel)
- else:
- rel_build_file_dir = build_file_dir
- qualified_out_dir = generator_filelist_paths['qualified_out_dir']
- path = os.path.join(qualified_out_dir, rel_build_file_dir, replacement)
- gyp.common.EnsureDirExists(path)
-
- replacement = gyp.common.RelativePath(path, build_file_dir)
- f = gyp.common.WriteOnDiff(path)
- for i in contents_list[1:]:
- f.write('%s\n' % i)
- f.close()
-
- elif run_command:
- use_shell = True
- if match['is_array']:
- contents = eval(contents)
- use_shell = False
-
- # Check for a cached value to avoid executing commands, or generating
- # file lists more than once. The cache key contains the command to be
- # run as well as the directory to run it from, to account for commands
- # that depend on their current directory.
- # TODO(http://code.google.com/p/gyp/issues/detail?id=111): In theory,
- # someone could author a set of GYP files where each time the command
- # is invoked it produces different output by design. When the need
- # arises, the syntax should be extended to support no caching off a
- # command's output so it is run every time.
- cache_key = (str(contents), build_file_dir)
- cached_value = cached_command_results.get(cache_key, None)
- if cached_value is None:
- gyp.DebugOutput(gyp.DEBUG_VARIABLES,
- "Executing command '%s' in directory '%s'",
- contents, build_file_dir)
-
- replacement = ''
-
- if command_string == 'pymod_do_main':
- # <!pymod_do_main(modulename param eters) loads |modulename| as a
- # python module and then calls that module's DoMain() function,
- # passing ["param", "eters"] as a single list argument. For modules
- # that don't load quickly, this can be faster than
- # <!(python modulename param eters). Do this in |build_file_dir|.
- oldwd = os.getcwd() # Python doesn't like os.open('.'): no fchdir.
- if build_file_dir: # build_file_dir may be None (see above).
- os.chdir(build_file_dir)
- try:
-
- parsed_contents = shlex.split(contents)
- try:
- py_module = __import__(parsed_contents[0])
- except ImportError as e:
- raise GypError("Error importing pymod_do_main"
- "module (%s): %s" % (parsed_contents[0], e))
- replacement = str(py_module.DoMain(parsed_contents[1:])).rstrip()
- finally:
- os.chdir(oldwd)
- assert replacement != None
- elif command_string:
- raise GypError("Unknown command string '%s' in '%s'." %
- (command_string, contents))
- else:
- # Fix up command with platform specific workarounds.
- contents = FixupPlatformCommand(contents)
- try:
- p = subprocess.Popen(contents, shell=use_shell,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- stdin=subprocess.PIPE,
- cwd=build_file_dir)
- except Exception, e:
- raise GypError("%s while executing command '%s' in %s" %
- (e, contents, build_file))
-
- p_stdout, p_stderr = p.communicate('')
-
- if p.wait() != 0 or p_stderr:
- sys.stderr.write(p_stderr)
- # Simulate check_call behavior, since check_call only exists
- # in python 2.5 and later.
- raise GypError("Call to '%s' returned exit status %d while in %s." %
- (contents, p.returncode, build_file))
- replacement = p_stdout.rstrip()
-
- cached_command_results[cache_key] = replacement
- else:
- gyp.DebugOutput(gyp.DEBUG_VARIABLES,
- "Had cache value for command '%s' in directory '%s'",
- contents,build_file_dir)
- replacement = cached_value
-
- else:
- if not contents in variables:
- if contents[-1] in ['!', '/']:
- # In order to allow cross-compiles (nacl) to happen more naturally,
- # we will allow references to >(sources/) etc. to resolve to
- # and empty list if undefined. This allows actions to:
- # 'action!': [
- # '>@(_sources!)',
- # ],
- # 'action/': [
- # '>@(_sources/)',
- # ],
- replacement = []
- else:
- raise GypError('Undefined variable ' + contents +
- ' in ' + build_file)
- else:
- replacement = variables[contents]
-
- if type(replacement) is list:
- for item in replacement:
- if not contents[-1] == '/' and type(item) not in (str, int):
- raise GypError('Variable ' + contents +
- ' must expand to a string or list of strings; ' +
- 'list contains a ' +
- item.__class__.__name__)
- # Run through the list and handle variable expansions in it. Since
- # the list is guaranteed not to contain dicts, this won't do anything
- # with conditions sections.
- ProcessVariablesAndConditionsInList(replacement, phase, variables,
- build_file)
- elif type(replacement) not in (str, int):
- raise GypError('Variable ' + contents +
- ' must expand to a string or list of strings; ' +
- 'found a ' + replacement.__class__.__name__)
-
- if expand_to_list:
- # Expanding in list context. It's guaranteed that there's only one
- # replacement to do in |input_str| and that it's this replacement. See
- # above.
- if type(replacement) is list:
- # If it's already a list, make a copy.
- output = replacement[:]
- else:
- # Split it the same way sh would split arguments.
- output = shlex.split(str(replacement))
- else:
- # Expanding in string context.
- encoded_replacement = ''
- if type(replacement) is list:
- # When expanding a list into string context, turn the list items
- # into a string in a way that will work with a subprocess call.
- #
- # TODO(mark): This isn't completely correct. This should
- # call a generator-provided function that observes the
- # proper list-to-argument quoting rules on a specific
- # platform instead of just calling the POSIX encoding
- # routine.
- encoded_replacement = gyp.common.EncodePOSIXShellList(replacement)
- else:
- encoded_replacement = replacement
-
- output = output[:replace_start] + str(encoded_replacement) + \
- output[replace_end:]
- # Prepare for the next match iteration.
- input_str = output
-
- if output == input:
- gyp.DebugOutput(gyp.DEBUG_VARIABLES,
- "Found only identity matches on %r, avoiding infinite "
- "recursion.",
- output)
- else:
- # Look for more matches now that we've replaced some, to deal with
- # expanding local variables (variables defined in the same
- # variables block as this one).
- gyp.DebugOutput(gyp.DEBUG_VARIABLES, "Found output %r, recursing.", output)
- if type(output) is list:
- if output and type(output[0]) is list:
- # Leave output alone if it's a list of lists.
- # We don't want such lists to be stringified.
- pass
- else:
- new_output = []
- for item in output:
- new_output.append(
- ExpandVariables(item, phase, variables, build_file))
- output = new_output
- else:
- output = ExpandVariables(output, phase, variables, build_file)
-
- # Convert all strings that are canonically-represented integers into integers.
- if type(output) is list:
- for index in xrange(0, len(output)):
- if IsStrCanonicalInt(output[index]):
- output[index] = int(output[index])
- elif IsStrCanonicalInt(output):
- output = int(output)
-
- return output
-
-# The same condition is often evaluated over and over again so it
-# makes sense to cache as much as possible between evaluations.
-cached_conditions_asts = {}
-
-def EvalCondition(condition, conditions_key, phase, variables, build_file):
- """Returns the dict that should be used or None if the result was
- that nothing should be used."""
- if type(condition) is not list:
- raise GypError(conditions_key + ' must be a list')
- if len(condition) < 2:
- # It's possible that condition[0] won't work in which case this
- # attempt will raise its own IndexError. That's probably fine.
- raise GypError(conditions_key + ' ' + condition[0] +
- ' must be at least length 2, not ' + str(len(condition)))
-
- i = 0
- result = None
- while i < len(condition):
- cond_expr = condition[i]
- true_dict = condition[i + 1]
- if type(true_dict) is not dict:
- raise GypError('{} {} must be followed by a dictionary, not {}'.format(
- conditions_key, cond_expr, type(true_dict)))
- if len(condition) > i + 2 and type(condition[i + 2]) is dict:
- false_dict = condition[i + 2]
- i = i + 3
- if i != len(condition):
- raise GypError('{} {} has {} unexpected trailing items'.format(
- conditions_key, cond_expr, len(condition) - i))
- else:
- false_dict = None
- i = i + 2
- if result == None:
- result = EvalSingleCondition(
- cond_expr, true_dict, false_dict, phase, variables, build_file)
-
- return result
-
-
-def EvalSingleCondition(
- cond_expr, true_dict, false_dict, phase, variables, build_file):
- """Returns true_dict if cond_expr evaluates to true, and false_dict
- otherwise."""
- # Do expansions on the condition itself. Since the conditon can naturally
- # contain variable references without needing to resort to GYP expansion
- # syntax, this is of dubious value for variables, but someone might want to
- # use a command expansion directly inside a condition.
- cond_expr_expanded = ExpandVariables(cond_expr, phase, variables,
- build_file)
- if type(cond_expr_expanded) not in (str, int):
- raise ValueError(
- 'Variable expansion in this context permits str and int ' + \
- 'only, found ' + cond_expr_expanded.__class__.__name__)
-
- try:
- if cond_expr_expanded in cached_conditions_asts:
- ast_code = cached_conditions_asts[cond_expr_expanded]
- else:
- ast_code = compile(cond_expr_expanded, '<string>', 'eval')
- cached_conditions_asts[cond_expr_expanded] = ast_code
- if eval(ast_code, {'__builtins__': None}, variables):
- return true_dict
- return false_dict
- except SyntaxError, e:
- syntax_error = SyntaxError('%s while evaluating condition \'%s\' in %s '
- 'at character %d.' %
- (str(e.args[0]), e.text, build_file, e.offset),
- e.filename, e.lineno, e.offset, e.text)
- raise syntax_error
- except NameError, e:
- gyp.common.ExceptionAppend(e, 'while evaluating condition \'%s\' in %s' %
- (cond_expr_expanded, build_file))
- raise GypError(e)
-
-
-def ProcessConditionsInDict(the_dict, phase, variables, build_file):
- # Process a 'conditions' or 'target_conditions' section in the_dict,
- # depending on phase.
- # early -> conditions
- # late -> target_conditions
- # latelate -> no conditions
- #
- # Each item in a conditions list consists of cond_expr, a string expression
- # evaluated as the condition, and true_dict, a dict that will be merged into
- # the_dict if cond_expr evaluates to true. Optionally, a third item,
- # false_dict, may be present. false_dict is merged into the_dict if
- # cond_expr evaluates to false.
- #
- # Any dict merged into the_dict will be recursively processed for nested
- # conditionals and other expansions, also according to phase, immediately
- # prior to being merged.
-
- if phase == PHASE_EARLY:
- conditions_key = 'conditions'
- elif phase == PHASE_LATE:
- conditions_key = 'target_conditions'
- elif phase == PHASE_LATELATE:
- return
- else:
- assert False
-
- if not conditions_key in the_dict:
- return
-
- conditions_list = the_dict[conditions_key]
- # Unhook the conditions list, it's no longer needed.
- del the_dict[conditions_key]
-
- for condition in conditions_list:
- merge_dict = EvalCondition(condition, conditions_key, phase, variables,
- build_file)
-
- if merge_dict != None:
- # Expand variables and nested conditinals in the merge_dict before
- # merging it.
- ProcessVariablesAndConditionsInDict(merge_dict, phase,
- variables, build_file)
-
- MergeDicts(the_dict, merge_dict, build_file, build_file)
-
-
-def LoadAutomaticVariablesFromDict(variables, the_dict):
- # Any keys with plain string values in the_dict become automatic variables.
- # The variable name is the key name with a "_" character prepended.
- for key, value in the_dict.iteritems():
- if type(value) in (str, int, list):
- variables['_' + key] = value
-
-
-def LoadVariablesFromVariablesDict(variables, the_dict, the_dict_key):
- # Any keys in the_dict's "variables" dict, if it has one, becomes a
- # variable. The variable name is the key name in the "variables" dict.
- # Variables that end with the % character are set only if they are unset in
- # the variables dict. the_dict_key is the name of the key that accesses
- # the_dict in the_dict's parent dict. If the_dict's parent is not a dict
- # (it could be a list or it could be parentless because it is a root dict),
- # the_dict_key will be None.
- for key, value in the_dict.get('variables', {}).iteritems():
- if type(value) not in (str, int, list):
- continue
-
- if key.endswith('%'):
- variable_name = key[:-1]
- if variable_name in variables:
- # If the variable is already set, don't set it.
- continue
- if the_dict_key is 'variables' and variable_name in the_dict:
- # If the variable is set without a % in the_dict, and the_dict is a
- # variables dict (making |variables| a varaibles sub-dict of a
- # variables dict), use the_dict's definition.
- value = the_dict[variable_name]
- else:
- variable_name = key
-
- variables[variable_name] = value
-
-
-def ProcessVariablesAndConditionsInDict(the_dict, phase, variables_in,
- build_file, the_dict_key=None):
- """Handle all variable and command expansion and conditional evaluation.
-
- This function is the public entry point for all variable expansions and
- conditional evaluations. The variables_in dictionary will not be modified
- by this function.
- """
-
- # Make a copy of the variables_in dict that can be modified during the
- # loading of automatics and the loading of the variables dict.
- variables = variables_in.copy()
- LoadAutomaticVariablesFromDict(variables, the_dict)
-
- if 'variables' in the_dict:
- # Make sure all the local variables are added to the variables
- # list before we process them so that you can reference one
- # variable from another. They will be fully expanded by recursion
- # in ExpandVariables.
- for key, value in the_dict['variables'].iteritems():
- variables[key] = value
-
- # Handle the associated variables dict first, so that any variable
- # references within can be resolved prior to using them as variables.
- # Pass a copy of the variables dict to avoid having it be tainted.
- # Otherwise, it would have extra automatics added for everything that
- # should just be an ordinary variable in this scope.
- ProcessVariablesAndConditionsInDict(the_dict['variables'], phase,
- variables, build_file, 'variables')
-
- LoadVariablesFromVariablesDict(variables, the_dict, the_dict_key)
-
- for key, value in the_dict.iteritems():
- # Skip "variables", which was already processed if present.
- if key != 'variables' and type(value) is str:
- expanded = ExpandVariables(value, phase, variables, build_file)
- if type(expanded) not in (str, int):
- raise ValueError(
- 'Variable expansion in this context permits str and int ' + \
- 'only, found ' + expanded.__class__.__name__ + ' for ' + key)
- the_dict[key] = expanded
-
- # Variable expansion may have resulted in changes to automatics. Reload.
- # TODO(mark): Optimization: only reload if no changes were made.
- variables = variables_in.copy()
- LoadAutomaticVariablesFromDict(variables, the_dict)
- LoadVariablesFromVariablesDict(variables, the_dict, the_dict_key)
-
- # Process conditions in this dict. This is done after variable expansion
- # so that conditions may take advantage of expanded variables. For example,
- # if the_dict contains:
- # {'type': '<(library_type)',
- # 'conditions': [['_type=="static_library"', { ... }]]},
- # _type, as used in the condition, will only be set to the value of
- # library_type if variable expansion is performed before condition
- # processing. However, condition processing should occur prior to recursion
- # so that variables (both automatic and "variables" dict type) may be
- # adjusted by conditions sections, merged into the_dict, and have the
- # intended impact on contained dicts.
- #
- # This arrangement means that a "conditions" section containing a "variables"
- # section will only have those variables effective in subdicts, not in
- # the_dict. The workaround is to put a "conditions" section within a
- # "variables" section. For example:
- # {'conditions': [['os=="mac"', {'variables': {'define': 'IS_MAC'}}]],
- # 'defines': ['<(define)'],
- # 'my_subdict': {'defines': ['<(define)']}},
- # will not result in "IS_MAC" being appended to the "defines" list in the
- # current scope but would result in it being appended to the "defines" list
- # within "my_subdict". By comparison:
- # {'variables': {'conditions': [['os=="mac"', {'define': 'IS_MAC'}]]},
- # 'defines': ['<(define)'],
- # 'my_subdict': {'defines': ['<(define)']}},
- # will append "IS_MAC" to both "defines" lists.
-
- # Evaluate conditions sections, allowing variable expansions within them
- # as well as nested conditionals. This will process a 'conditions' or
- # 'target_conditions' section, perform appropriate merging and recursive
- # conditional and variable processing, and then remove the conditions section
- # from the_dict if it is present.
- ProcessConditionsInDict(the_dict, phase, variables, build_file)
-
- # Conditional processing may have resulted in changes to automatics or the
- # variables dict. Reload.
- variables = variables_in.copy()
- LoadAutomaticVariablesFromDict(variables, the_dict)
- LoadVariablesFromVariablesDict(variables, the_dict, the_dict_key)
-
- # Recurse into child dicts, or process child lists which may result in
- # further recursion into descendant dicts.
- for key, value in the_dict.iteritems():
- # Skip "variables" and string values, which were already processed if
- # present.
- if key == 'variables' or type(value) is str:
- continue
- if type(value) is dict:
- # Pass a copy of the variables dict so that subdicts can't influence
- # parents.
- ProcessVariablesAndConditionsInDict(value, phase, variables,
- build_file, key)
- elif type(value) is list:
- # The list itself can't influence the variables dict, and
- # ProcessVariablesAndConditionsInList will make copies of the variables
- # dict if it needs to pass it to something that can influence it. No
- # copy is necessary here.
- ProcessVariablesAndConditionsInList(value, phase, variables,
- build_file)
- elif type(value) is not int:
- raise TypeError('Unknown type ' + value.__class__.__name__ + \
- ' for ' + key)
-
-
-def ProcessVariablesAndConditionsInList(the_list, phase, variables,
- build_file):
- # Iterate using an index so that new values can be assigned into the_list.
- index = 0
- while index < len(the_list):
- item = the_list[index]
- if type(item) is dict:
- # Make a copy of the variables dict so that it won't influence anything
- # outside of its own scope.
- ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
- elif type(item) is list:
- ProcessVariablesAndConditionsInList(item, phase, variables, build_file)
- elif type(item) is str:
- expanded = ExpandVariables(item, phase, variables, build_file)
- if type(expanded) in (str, int):
- the_list[index] = expanded
- elif type(expanded) is list:
- the_list[index:index+1] = expanded
- index += len(expanded)
-
- # index now identifies the next item to examine. Continue right now
- # without falling into the index increment below.
- continue
- else:
- raise ValueError(
- 'Variable expansion in this context permits strings and ' + \
- 'lists only, found ' + expanded.__class__.__name__ + ' at ' + \
- index)
- elif type(item) is not int:
- raise TypeError('Unknown type ' + item.__class__.__name__ + \
- ' at index ' + index)
- index = index + 1
-
-
-def BuildTargetsDict(data):
- """Builds a dict mapping fully-qualified target names to their target dicts.
-
- |data| is a dict mapping loaded build files by pathname relative to the
- current directory. Values in |data| are build file contents. For each
- |data| value with a "targets" key, the value of the "targets" key is taken
- as a list containing target dicts. Each target's fully-qualified name is
- constructed from the pathname of the build file (|data| key) and its
- "target_name" property. These fully-qualified names are used as the keys
- in the returned dict. These keys provide access to the target dicts,
- the dicts in the "targets" lists.
- """
-
- targets = {}
- for build_file in data['target_build_files']:
- for target in data[build_file].get('targets', []):
- target_name = gyp.common.QualifiedTarget(build_file,
- target['target_name'],
- target['toolset'])
- if target_name in targets:
- raise GypError('Duplicate target definitions for ' + target_name)
- targets[target_name] = target
-
- return targets
-
-
-def QualifyDependencies(targets):
- """Make dependency links fully-qualified relative to the current directory.
-
- |targets| is a dict mapping fully-qualified target names to their target
- dicts. For each target in this dict, keys known to contain dependency
- links are examined, and any dependencies referenced will be rewritten
- so that they are fully-qualified and relative to the current directory.
- All rewritten dependencies are suitable for use as keys to |targets| or a
- similar dict.
- """
-
- all_dependency_sections = [dep + op
- for dep in dependency_sections
- for op in ('', '!', '/')]
-
- for target, target_dict in targets.iteritems():
- target_build_file = gyp.common.BuildFile(target)
- toolset = target_dict['toolset']
- for dependency_key in all_dependency_sections:
- dependencies = target_dict.get(dependency_key, [])
- for index in xrange(0, len(dependencies)):
- dep_file, dep_target, dep_toolset = gyp.common.ResolveTarget(
- target_build_file, dependencies[index], toolset)
- if not multiple_toolsets:
- # Ignore toolset specification in the dependency if it is specified.
- dep_toolset = toolset
- dependency = gyp.common.QualifiedTarget(dep_file,
- dep_target,
- dep_toolset)
- dependencies[index] = dependency
-
- # Make sure anything appearing in a list other than "dependencies" also
- # appears in the "dependencies" list.
- if dependency_key != 'dependencies' and \
- dependency not in target_dict['dependencies']:
- raise GypError('Found ' + dependency + ' in ' + dependency_key +
- ' of ' + target + ', but not in dependencies')
-
-
-def ExpandWildcardDependencies(targets, data):
- """Expands dependencies specified as build_file:*.
-
- For each target in |targets|, examines sections containing links to other
- targets. If any such section contains a link of the form build_file:*, it
- is taken as a wildcard link, and is expanded to list each target in
- build_file. The |data| dict provides access to build file dicts.
-
- Any target that does not wish to be included by wildcard can provide an
- optional "suppress_wildcard" key in its target dict. When present and
- true, a wildcard dependency link will not include such targets.
-
- All dependency names, including the keys to |targets| and the values in each
- dependency list, must be qualified when this function is called.
- """
-
- for target, target_dict in targets.iteritems():
- toolset = target_dict['toolset']
- target_build_file = gyp.common.BuildFile(target)
- for dependency_key in dependency_sections:
- dependencies = target_dict.get(dependency_key, [])
-
- # Loop this way instead of "for dependency in" or "for index in xrange"
- # because the dependencies list will be modified within the loop body.
- index = 0
- while index < len(dependencies):
- (dependency_build_file, dependency_target, dependency_toolset) = \
- gyp.common.ParseQualifiedTarget(dependencies[index])
- if dependency_target != '*' and dependency_toolset != '*':
- # Not a wildcard. Keep it moving.
- index = index + 1
- continue
-
- if dependency_build_file == target_build_file:
- # It's an error for a target to depend on all other targets in
- # the same file, because a target cannot depend on itself.
- raise GypError('Found wildcard in ' + dependency_key + ' of ' +
- target + ' referring to same build file')
-
- # Take the wildcard out and adjust the index so that the next
- # dependency in the list will be processed the next time through the
- # loop.
- del dependencies[index]
- index = index - 1
-
- # Loop through the targets in the other build file, adding them to
- # this target's list of dependencies in place of the removed
- # wildcard.
- dependency_target_dicts = data[dependency_build_file]['targets']
- for dependency_target_dict in dependency_target_dicts:
- if int(dependency_target_dict.get('suppress_wildcard', False)):
- continue
- dependency_target_name = dependency_target_dict['target_name']
- if (dependency_target != '*' and
- dependency_target != dependency_target_name):
- continue
- dependency_target_toolset = dependency_target_dict['toolset']
- if (dependency_toolset != '*' and
- dependency_toolset != dependency_target_toolset):
- continue
- dependency = gyp.common.QualifiedTarget(dependency_build_file,
- dependency_target_name,
- dependency_target_toolset)
- index = index + 1
- dependencies.insert(index, dependency)
-
- index = index + 1
-
-
-def Unify(l):
- """Removes duplicate elements from l, keeping the first element."""
- seen = {}
- return [seen.setdefault(e, e) for e in l if e not in seen]
-
-
-def RemoveDuplicateDependencies(targets):
- """Makes sure every dependency appears only once in all targets's dependency
- lists."""
- for target_name, target_dict in targets.iteritems():
- for dependency_key in dependency_sections:
- dependencies = target_dict.get(dependency_key, [])
- if dependencies:
- target_dict[dependency_key] = Unify(dependencies)
-
-
-def Filter(l, item):
- """Removes item from l."""
- res = {}
- return [res.setdefault(e, e) for e in l if e != item]
-
-
-def RemoveSelfDependencies(targets):
- """Remove self dependencies from targets that have the prune_self_dependency
- variable set."""
- for target_name, target_dict in targets.iteritems():
- for dependency_key in dependency_sections:
- dependencies = target_dict.get(dependency_key, [])
- if dependencies:
- for t in dependencies:
- if t == target_name:
- if targets[t].get('variables', {}).get('prune_self_dependency', 0):
- target_dict[dependency_key] = Filter(dependencies, target_name)
-
-
-def RemoveLinkDependenciesFromNoneTargets(targets):
- """Remove dependencies having the 'link_dependency' attribute from the 'none'
- targets."""
- for target_name, target_dict in targets.iteritems():
- for dependency_key in dependency_sections:
- dependencies = target_dict.get(dependency_key, [])
- if dependencies:
- for t in dependencies:
- if target_dict.get('type', None) == 'none':
- if targets[t].get('variables', {}).get('link_dependency', 0):
- target_dict[dependency_key] = \
- Filter(target_dict[dependency_key], t)
-
-
-class DependencyGraphNode(object):
- """
-
- Attributes:
- ref: A reference to an object that this DependencyGraphNode represents.
- dependencies: List of DependencyGraphNodes on which this one depends.
- dependents: List of DependencyGraphNodes that depend on this one.
- """
-
- class CircularException(GypError):
- pass
-
- def __init__(self, ref):
- self.ref = ref
- self.dependencies = []
- self.dependents = []
-
- def __repr__(self):
- return '<DependencyGraphNode: %r>' % self.ref
-
- def FlattenToList(self):
- # flat_list is the sorted list of dependencies - actually, the list items
- # are the "ref" attributes of DependencyGraphNodes. Every target will
- # appear in flat_list after all of its dependencies, and before all of its
- # dependents.
- flat_list = OrderedSet()
-
- # in_degree_zeros is the list of DependencyGraphNodes that have no
- # dependencies not in flat_list. Initially, it is a copy of the children
- # of this node, because when the graph was built, nodes with no
- # dependencies were made implicit dependents of the root node.
- in_degree_zeros = set(self.dependents[:])
-
- while in_degree_zeros:
- # Nodes in in_degree_zeros have no dependencies not in flat_list, so they
- # can be appended to flat_list. Take these nodes out of in_degree_zeros
- # as work progresses, so that the next node to process from the list can
- # always be accessed at a consistent position.
- node = in_degree_zeros.pop()
- flat_list.add(node.ref)
-
- # Look at dependents of the node just added to flat_list. Some of them
- # may now belong in in_degree_zeros.
- for node_dependent in node.dependents:
- is_in_degree_zero = True
- # TODO: We want to check through the
- # node_dependent.dependencies list but if it's long and we
- # always start at the beginning, then we get O(n^2) behaviour.
- for node_dependent_dependency in node_dependent.dependencies:
- if not node_dependent_dependency.ref in flat_list:
- # The dependent one or more dependencies not in flat_list. There
- # will be more chances to add it to flat_list when examining
- # it again as a dependent of those other dependencies, provided
- # that there are no cycles.
- is_in_degree_zero = False
- break
-
- if is_in_degree_zero:
- # All of the dependent's dependencies are already in flat_list. Add
- # it to in_degree_zeros where it will be processed in a future
- # iteration of the outer loop.
- in_degree_zeros.add(node_dependent)
-
- return list(flat_list)
-
- def FindCycles(self):
- """
- Returns a list of cycles in the graph, where each cycle is its own list.
- """
- results = []
- visited = set()
-
- def Visit(node, path):
- for child in node.dependents:
- if child in path:
- results.append([child] + path[:path.index(child) + 1])
- elif not child in visited:
- visited.add(child)
- Visit(child, [child] + path)
-
- visited.add(self)
- Visit(self, [self])
-
- return results
-
- def DirectDependencies(self, dependencies=None):
- """Returns a list of just direct dependencies."""
- if dependencies == None:
- dependencies = []
-
- for dependency in self.dependencies:
- # Check for None, corresponding to the root node.
- if dependency.ref != None and dependency.ref not in dependencies:
- dependencies.append(dependency.ref)
-
- return dependencies
-
- def _AddImportedDependencies(self, targets, dependencies=None):
- """Given a list of direct dependencies, adds indirect dependencies that
- other dependencies have declared to export their settings.
-
- This method does not operate on self. Rather, it operates on the list
- of dependencies in the |dependencies| argument. For each dependency in
- that list, if any declares that it exports the settings of one of its
- own dependencies, those dependencies whose settings are "passed through"
- are added to the list. As new items are added to the list, they too will
- be processed, so it is possible to import settings through multiple levels
- of dependencies.
-
- This method is not terribly useful on its own, it depends on being
- "primed" with a list of direct dependencies such as one provided by
- DirectDependencies. DirectAndImportedDependencies is intended to be the
- public entry point.
- """
-
- if dependencies == None:
- dependencies = []
-
- index = 0
- while index < len(dependencies):
- dependency = dependencies[index]
- dependency_dict = targets[dependency]
- # Add any dependencies whose settings should be imported to the list
- # if not already present. Newly-added items will be checked for
- # their own imports when the list iteration reaches them.
- # Rather than simply appending new items, insert them after the
- # dependency that exported them. This is done to more closely match
- # the depth-first method used by DeepDependencies.
- add_index = 1
- for imported_dependency in \
- dependency_dict.get('export_dependent_settings', []):
- if imported_dependency not in dependencies:
- dependencies.insert(index + add_index, imported_dependency)
- add_index = add_index + 1
- index = index + 1
-
- return dependencies
-
- def DirectAndImportedDependencies(self, targets, dependencies=None):
- """Returns a list of a target's direct dependencies and all indirect
- dependencies that a dependency has advertised settings should be exported
- through the dependency for.
- """
-
- dependencies = self.DirectDependencies(dependencies)
- return self._AddImportedDependencies(targets, dependencies)
-
- def DeepDependencies(self, dependencies=None):
- """Returns an OrderedSet of all of a target's dependencies, recursively."""
- if dependencies is None:
- # Using a list to get ordered output and a set to do fast "is it
- # already added" checks.
- dependencies = OrderedSet()
-
- for dependency in self.dependencies:
- # Check for None, corresponding to the root node.
- if dependency.ref is None:
- continue
- if dependency.ref not in dependencies:
- dependency.DeepDependencies(dependencies)
- dependencies.add(dependency.ref)
-
- return dependencies
-
- def _LinkDependenciesInternal(self, targets, include_shared_libraries,
- dependencies=None, initial=True):
- """Returns an OrderedSet of dependency targets that are linked
- into this target.
-
- This function has a split personality, depending on the setting of
- |initial|. Outside callers should always leave |initial| at its default
- setting.
-
- When adding a target to the list of dependencies, this function will
- recurse into itself with |initial| set to False, to collect dependencies
- that are linked into the linkable target for which the list is being built.
-
- If |include_shared_libraries| is False, the resulting dependencies will not
- include shared_library targets that are linked into this target.
- """
- if dependencies is None:
- # Using a list to get ordered output and a set to do fast "is it
- # already added" checks.
- dependencies = OrderedSet()
-
- # Check for None, corresponding to the root node.
- if self.ref is None:
- return dependencies
-
- # It's kind of sucky that |targets| has to be passed into this function,
- # but that's presently the easiest way to access the target dicts so that
- # this function can find target types.
-
- if 'target_name' not in targets[self.ref]:
- raise GypError("Missing 'target_name' field in target.")
-
- if 'type' not in targets[self.ref]:
- raise GypError("Missing 'type' field in target %s" %
- targets[self.ref]['target_name'])
-
- target_type = targets[self.ref]['type']
-
- is_linkable = target_type in linkable_types
-
- if initial and not is_linkable:
- # If this is the first target being examined and it's not linkable,
- # return an empty list of link dependencies, because the link
- # dependencies are intended to apply to the target itself (initial is
- # True) and this target won't be linked.
- return dependencies
-
- # Don't traverse 'none' targets if explicitly excluded.
- if (target_type == 'none' and
- not targets[self.ref].get('dependencies_traverse', True)):
- dependencies.add(self.ref)
- return dependencies
-
- # Executables, mac kernel extensions and loadable modules are already fully
- # and finally linked. Nothing else can be a link dependency of them, there
- # can only be dependencies in the sense that a dependent target might run
- # an executable or load the loadable_module.
- if not initial and target_type in ('executable', 'loadable_module',
- 'mac_kernel_extension'):
- return dependencies
-
- # Shared libraries are already fully linked. They should only be included
- # in |dependencies| when adjusting static library dependencies (in order to
- # link against the shared_library's import lib), but should not be included
- # in |dependencies| when propagating link_settings.
- # The |include_shared_libraries| flag controls which of these two cases we
- # are handling.
- if (not initial and target_type == 'shared_library' and
- not include_shared_libraries):
- return dependencies
-
- # The target is linkable, add it to the list of link dependencies.
- if self.ref not in dependencies:
- dependencies.add(self.ref)
- if initial or not is_linkable:
- # If this is a subsequent target and it's linkable, don't look any
- # further for linkable dependencies, as they'll already be linked into
- # this target linkable. Always look at dependencies of the initial
- # target, and always look at dependencies of non-linkables.
- for dependency in self.dependencies:
- dependency._LinkDependenciesInternal(targets,
- include_shared_libraries,
- dependencies, False)
-
- return dependencies
-
- def DependenciesForLinkSettings(self, targets):
- """
- Returns a list of dependency targets whose link_settings should be merged
- into this target.
- """
-
- # TODO(sbaig) Currently, chrome depends on the bug that shared libraries'
- # link_settings are propagated. So for now, we will allow it, unless the
- # 'allow_sharedlib_linksettings_propagation' flag is explicitly set to
- # False. Once chrome is fixed, we can remove this flag.
- include_shared_libraries = \
- targets[self.ref].get('allow_sharedlib_linksettings_propagation', True)
- return self._LinkDependenciesInternal(targets, include_shared_libraries)
-
- def DependenciesToLinkAgainst(self, targets):
- """
- Returns a list of dependency targets that are linked into this target.
- """
- return self._LinkDependenciesInternal(targets, True)
-
-
-def BuildDependencyList(targets):
- # Create a DependencyGraphNode for each target. Put it into a dict for easy
- # access.
- dependency_nodes = {}
- for target, spec in targets.iteritems():
- if target not in dependency_nodes:
- dependency_nodes[target] = DependencyGraphNode(target)
-
- # Set up the dependency links. Targets that have no dependencies are treated
- # as dependent on root_node.
- root_node = DependencyGraphNode(None)
- for target, spec in targets.iteritems():
- target_node = dependency_nodes[target]
- target_build_file = gyp.common.BuildFile(target)
- dependencies = spec.get('dependencies')
- if not dependencies:
- target_node.dependencies = [root_node]
- root_node.dependents.append(target_node)
- else:
- for dependency in dependencies:
- dependency_node = dependency_nodes.get(dependency)
- if not dependency_node:
- raise GypError("Dependency '%s' not found while "
- "trying to load target %s" % (dependency, target))
- target_node.dependencies.append(dependency_node)
- dependency_node.dependents.append(target_node)
-
- flat_list = root_node.FlattenToList()
-
- # If there's anything left unvisited, there must be a circular dependency
- # (cycle).
- if len(flat_list) != len(targets):
- if not root_node.dependents:
- # If all targets have dependencies, add the first target as a dependent
- # of root_node so that the cycle can be discovered from root_node.
- target = targets.keys()[0]
- target_node = dependency_nodes[target]
- target_node.dependencies.append(root_node)
- root_node.dependents.append(target_node)
-
- cycles = []
- for cycle in root_node.FindCycles():
- paths = [node.ref for node in cycle]
- cycles.append('Cycle: %s' % ' -> '.join(paths))
- raise DependencyGraphNode.CircularException(
- 'Cycles in dependency graph detected:\n' + '\n'.join(cycles))
-
- return [dependency_nodes, flat_list]
-
-
-def VerifyNoGYPFileCircularDependencies(targets):
- # Create a DependencyGraphNode for each gyp file containing a target. Put
- # it into a dict for easy access.
- dependency_nodes = {}
- for target in targets.iterkeys():
- build_file = gyp.common.BuildFile(target)
- if not build_file in dependency_nodes:
- dependency_nodes[build_file] = DependencyGraphNode(build_file)
-
- # Set up the dependency links.
- for target, spec in targets.iteritems():
- build_file = gyp.common.BuildFile(target)
- build_file_node = dependency_nodes[build_file]
- target_dependencies = spec.get('dependencies', [])
- for dependency in target_dependencies:
- try:
- dependency_build_file = gyp.common.BuildFile(dependency)
- except GypError, e:
- gyp.common.ExceptionAppend(
- e, 'while computing dependencies of .gyp file %s' % build_file)
- raise
-
- if dependency_build_file == build_file:
- # A .gyp file is allowed to refer back to itself.
- continue
- dependency_node = dependency_nodes.get(dependency_build_file)
- if not dependency_node:
- raise GypError("Dependancy '%s' not found" % dependency_build_file)
- if dependency_node not in build_file_node.dependencies:
- build_file_node.dependencies.append(dependency_node)
- dependency_node.dependents.append(build_file_node)
-
-
- # Files that have no dependencies are treated as dependent on root_node.
- root_node = DependencyGraphNode(None)
- for build_file_node in dependency_nodes.itervalues():
- if len(build_file_node.dependencies) == 0:
- build_file_node.dependencies.append(root_node)
- root_node.dependents.append(build_file_node)
-
- flat_list = root_node.FlattenToList()
-
- # If there's anything left unvisited, there must be a circular dependency
- # (cycle).
- if len(flat_list) != len(dependency_nodes):
- if not root_node.dependents:
- # If all files have dependencies, add the first file as a dependent
- # of root_node so that the cycle can be discovered from root_node.
- file_node = dependency_nodes.values()[0]
- file_node.dependencies.append(root_node)
- root_node.dependents.append(file_node)
- cycles = []
- for cycle in root_node.FindCycles():
- paths = [node.ref for node in cycle]
- cycles.append('Cycle: %s' % ' -> '.join(paths))
- raise DependencyGraphNode.CircularException(
- 'Cycles in .gyp file dependency graph detected:\n' + '\n'.join(cycles))
-
-
-def DoDependentSettings(key, flat_list, targets, dependency_nodes):
- # key should be one of all_dependent_settings, direct_dependent_settings,
- # or link_settings.
-
- for target in flat_list:
- target_dict = targets[target]
- build_file = gyp.common.BuildFile(target)
-
- if key == 'all_dependent_settings':
- dependencies = dependency_nodes[target].DeepDependencies()
- elif key == 'direct_dependent_settings':
- dependencies = \
- dependency_nodes[target].DirectAndImportedDependencies(targets)
- elif key == 'link_settings':
- dependencies = \
- dependency_nodes[target].DependenciesForLinkSettings(targets)
- else:
- raise GypError("DoDependentSettings doesn't know how to determine "
- 'dependencies for ' + key)
-
- for dependency in dependencies:
- dependency_dict = targets[dependency]
- if not key in dependency_dict:
- continue
- dependency_build_file = gyp.common.BuildFile(dependency)
- MergeDicts(target_dict, dependency_dict[key],
- build_file, dependency_build_file)
-
-
-def AdjustStaticLibraryDependencies(flat_list, targets, dependency_nodes,
- sort_dependencies):
- # Recompute target "dependencies" properties. For each static library
- # target, remove "dependencies" entries referring to other static libraries,
- # unless the dependency has the "hard_dependency" attribute set. For each
- # linkable target, add a "dependencies" entry referring to all of the
- # target's computed list of link dependencies (including static libraries
- # if no such entry is already present.
- for target in flat_list:
- target_dict = targets[target]
- target_type = target_dict['type']
-
- if target_type == 'static_library':
- if not 'dependencies' in target_dict:
- continue
-
- target_dict['dependencies_original'] = target_dict.get(
- 'dependencies', [])[:]
-
- # A static library should not depend on another static library unless
- # the dependency relationship is "hard," which should only be done when
- # a dependent relies on some side effect other than just the build
- # product, like a rule or action output. Further, if a target has a
- # non-hard dependency, but that dependency exports a hard dependency,
- # the non-hard dependency can safely be removed, but the exported hard
- # dependency must be added to the target to keep the same dependency
- # ordering.
- dependencies = \
- dependency_nodes[target].DirectAndImportedDependencies(targets)
- index = 0
- while index < len(dependencies):
- dependency = dependencies[index]
- dependency_dict = targets[dependency]
-
- # Remove every non-hard static library dependency and remove every
- # non-static library dependency that isn't a direct dependency.
- if (dependency_dict['type'] == 'static_library' and \
- not dependency_dict.get('hard_dependency', False)) or \
- (dependency_dict['type'] != 'static_library' and \
- not dependency in target_dict['dependencies']):
- # Take the dependency out of the list, and don't increment index
- # because the next dependency to analyze will shift into the index
- # formerly occupied by the one being removed.
- del dependencies[index]
- else:
- index = index + 1
-
- # Update the dependencies. If the dependencies list is empty, it's not
- # needed, so unhook it.
- if len(dependencies) > 0:
- target_dict['dependencies'] = dependencies
- else:
- del target_dict['dependencies']
-
- elif target_type in linkable_types:
- # Get a list of dependency targets that should be linked into this
- # target. Add them to the dependencies list if they're not already
- # present.
-
- link_dependencies = \
- dependency_nodes[target].DependenciesToLinkAgainst(targets)
- for dependency in link_dependencies:
- if dependency == target:
- continue
- if not 'dependencies' in target_dict:
- target_dict['dependencies'] = []
- if not dependency in target_dict['dependencies']:
- target_dict['dependencies'].append(dependency)
- # Sort the dependencies list in the order from dependents to dependencies.
- # e.g. If A and B depend on C and C depends on D, sort them in A, B, C, D.
- # Note: flat_list is already sorted in the order from dependencies to
- # dependents.
- if sort_dependencies and 'dependencies' in target_dict:
- target_dict['dependencies'] = [dep for dep in reversed(flat_list)
- if dep in target_dict['dependencies']]
-
-
-# Initialize this here to speed up MakePathRelative.
-exception_re = re.compile(r'''["']?[-/$<>^]''')
-
-
-def MakePathRelative(to_file, fro_file, item):
- # If item is a relative path, it's relative to the build file dict that it's
- # coming from. Fix it up to make it relative to the build file dict that
- # it's going into.
- # Exception: any |item| that begins with these special characters is
- # returned without modification.
- # / Used when a path is already absolute (shortcut optimization;
- # such paths would be returned as absolute anyway)
- # $ Used for build environment variables
- # - Used for some build environment flags (such as -lapr-1 in a
- # "libraries" section)
- # < Used for our own variable and command expansions (see ExpandVariables)
- # > Used for our own variable and command expansions (see ExpandVariables)
- # ^ Used for our own variable and command expansions (see ExpandVariables)
- #
- # "/' Used when a value is quoted. If these are present, then we
- # check the second character instead.
- #
- if to_file == fro_file or exception_re.match(item):
- return item
- else:
- # TODO(dglazkov) The backslash/forward-slash replacement at the end is a
- # temporary measure. This should really be addressed by keeping all paths
- # in POSIX until actual project generation.
- ret = os.path.normpath(os.path.join(
- gyp.common.RelativePath(os.path.dirname(fro_file),
- os.path.dirname(to_file)),
- item)).replace('\\', '/')
- if item[-1:] == '/':
- ret += '/'
- return ret
-
-def MergeLists(to, fro, to_file, fro_file, is_paths=False, append=True):
- # Python documentation recommends objects which do not support hash
- # set this value to None. Python library objects follow this rule.
- is_hashable = lambda val: val.__hash__
-
- # If x is hashable, returns whether x is in s. Else returns whether x is in l.
- def is_in_set_or_list(x, s, l):
- if is_hashable(x):
- return x in s
- return x in l
-
- prepend_index = 0
-
- # Make membership testing of hashables in |to| (in particular, strings)
- # faster.
- hashable_to_set = set(x for x in to if is_hashable(x))
- for item in fro:
- singleton = False
- if type(item) in (str, int):
- # The cheap and easy case.
- if is_paths:
- to_item = MakePathRelative(to_file, fro_file, item)
- else:
- to_item = item
-
- if not (type(item) is str and item.startswith('-')):
- # Any string that doesn't begin with a "-" is a singleton - it can
- # only appear once in a list, to be enforced by the list merge append
- # or prepend.
- singleton = True
- elif type(item) is dict:
- # Make a copy of the dictionary, continuing to look for paths to fix.
- # The other intelligent aspects of merge processing won't apply because
- # item is being merged into an empty dict.
- to_item = {}
- MergeDicts(to_item, item, to_file, fro_file)
- elif type(item) is list:
- # Recurse, making a copy of the list. If the list contains any
- # descendant dicts, path fixing will occur. Note that here, custom
- # values for is_paths and append are dropped; those are only to be
- # applied to |to| and |fro|, not sublists of |fro|. append shouldn't
- # matter anyway because the new |to_item| list is empty.
- to_item = []
- MergeLists(to_item, item, to_file, fro_file)
- else:
- raise TypeError(
- 'Attempt to merge list item of unsupported type ' + \
- item.__class__.__name__)
-
- if append:
- # If appending a singleton that's already in the list, don't append.
- # This ensures that the earliest occurrence of the item will stay put.
- if not singleton or not is_in_set_or_list(to_item, hashable_to_set, to):
- to.append(to_item)
- if is_hashable(to_item):
- hashable_to_set.add(to_item)
- else:
- # If prepending a singleton that's already in the list, remove the
- # existing instance and proceed with the prepend. This ensures that the
- # item appears at the earliest possible position in the list.
- while singleton and to_item in to:
- to.remove(to_item)
-
- # Don't just insert everything at index 0. That would prepend the new
- # items to the list in reverse order, which would be an unwelcome
- # surprise.
- to.insert(prepend_index, to_item)
- if is_hashable(to_item):
- hashable_to_set.add(to_item)
- prepend_index = prepend_index + 1
-
-
-def MergeDicts(to, fro, to_file, fro_file):
- # I wanted to name the parameter "from" but it's a Python keyword...
- for k, v in fro.iteritems():
- # It would be nice to do "if not k in to: to[k] = v" but that wouldn't give
- # copy semantics. Something else may want to merge from the |fro| dict
- # later, and having the same dict ref pointed to twice in the tree isn't
- # what anyone wants considering that the dicts may subsequently be
- # modified.
- if k in to:
- bad_merge = False
- if type(v) in (str, int):
- if type(to[k]) not in (str, int):
- bad_merge = True
- elif type(v) is not type(to[k]):
- bad_merge = True
-
- if bad_merge:
- raise TypeError(
- 'Attempt to merge dict value of type ' + v.__class__.__name__ + \
- ' into incompatible type ' + to[k].__class__.__name__ + \
- ' for key ' + k)
- if type(v) in (str, int):
- # Overwrite the existing value, if any. Cheap and easy.
- is_path = IsPathSection(k)
- if is_path:
- to[k] = MakePathRelative(to_file, fro_file, v)
- else:
- to[k] = v
- elif type(v) is dict:
- # Recurse, guaranteeing copies will be made of objects that require it.
- if not k in to:
- to[k] = {}
- MergeDicts(to[k], v, to_file, fro_file)
- elif type(v) is list:
- # Lists in dicts can be merged with different policies, depending on
- # how the key in the "from" dict (k, the from-key) is written.
- #
- # If the from-key has ...the to-list will have this action
- # this character appended:... applied when receiving the from-list:
- # = replace
- # + prepend
- # ? set, only if to-list does not yet exist
- # (none) append
- #
- # This logic is list-specific, but since it relies on the associated
- # dict key, it's checked in this dict-oriented function.
- ext = k[-1]
- append = True
- if ext == '=':
- list_base = k[:-1]
- lists_incompatible = [list_base, list_base + '?']
- to[list_base] = []
- elif ext == '+':
- list_base = k[:-1]
- lists_incompatible = [list_base + '=', list_base + '?']
- append = False
- elif ext == '?':
- list_base = k[:-1]
- lists_incompatible = [list_base, list_base + '=', list_base + '+']
- else:
- list_base = k
- lists_incompatible = [list_base + '=', list_base + '?']
-
- # Some combinations of merge policies appearing together are meaningless.
- # It's stupid to replace and append simultaneously, for example. Append
- # and prepend are the only policies that can coexist.
- for list_incompatible in lists_incompatible:
- if list_incompatible in fro:
- raise GypError('Incompatible list policies ' + k + ' and ' +
- list_incompatible)
-
- if list_base in to:
- if ext == '?':
- # If the key ends in "?", the list will only be merged if it doesn't
- # already exist.
- continue
- elif type(to[list_base]) is not list:
- # This may not have been checked above if merging in a list with an
- # extension character.
- raise TypeError(
- 'Attempt to merge dict value of type ' + v.__class__.__name__ + \
- ' into incompatible type ' + to[list_base].__class__.__name__ + \
- ' for key ' + list_base + '(' + k + ')')
- else:
- to[list_base] = []
-
- # Call MergeLists, which will make copies of objects that require it.
- # MergeLists can recurse back into MergeDicts, although this will be
- # to make copies of dicts (with paths fixed), there will be no
- # subsequent dict "merging" once entering a list because lists are
- # always replaced, appended to, or prepended to.
- is_paths = IsPathSection(list_base)
- MergeLists(to[list_base], v, to_file, fro_file, is_paths, append)
- else:
- raise TypeError(
- 'Attempt to merge dict value of unsupported type ' + \
- v.__class__.__name__ + ' for key ' + k)
-
-
-def MergeConfigWithInheritance(new_configuration_dict, build_file,
- target_dict, configuration, visited):
- # Skip if previously visted.
- if configuration in visited:
- return
-
- # Look at this configuration.
- configuration_dict = target_dict['configurations'][configuration]
-
- # Merge in parents.
- for parent in configuration_dict.get('inherit_from', []):
- MergeConfigWithInheritance(new_configuration_dict, build_file,
- target_dict, parent, visited + [configuration])
-
- # Merge it into the new config.
- MergeDicts(new_configuration_dict, configuration_dict,
- build_file, build_file)
-
- # Drop abstract.
- if 'abstract' in new_configuration_dict:
- del new_configuration_dict['abstract']
-
-
-def SetUpConfigurations(target, target_dict):
- # key_suffixes is a list of key suffixes that might appear on key names.
- # These suffixes are handled in conditional evaluations (for =, +, and ?)
- # and rules/exclude processing (for ! and /). Keys with these suffixes
- # should be treated the same as keys without.
- key_suffixes = ['=', '+', '?', '!', '/']
-
- build_file = gyp.common.BuildFile(target)
-
- # Provide a single configuration by default if none exists.
- # TODO(mark): Signal an error if default_configurations exists but
- # configurations does not.
- if not 'configurations' in target_dict:
- target_dict['configurations'] = {'Default': {}}
- if not 'default_configuration' in target_dict:
- concrete = [i for (i, config) in target_dict['configurations'].iteritems()
- if not config.get('abstract')]
- target_dict['default_configuration'] = sorted(concrete)[0]
-
- merged_configurations = {}
- configs = target_dict['configurations']
- for (configuration, old_configuration_dict) in configs.iteritems():
- # Skip abstract configurations (saves work only).
- if old_configuration_dict.get('abstract'):
- continue
- # Configurations inherit (most) settings from the enclosing target scope.
- # Get the inheritance relationship right by making a copy of the target
- # dict.
- new_configuration_dict = {}
- for (key, target_val) in target_dict.iteritems():
- key_ext = key[-1:]
- if key_ext in key_suffixes:
- key_base = key[:-1]
- else:
- key_base = key
- if not key_base in non_configuration_keys:
- new_configuration_dict[key] = gyp.simple_copy.deepcopy(target_val)
-
- # Merge in configuration (with all its parents first).
- MergeConfigWithInheritance(new_configuration_dict, build_file,
- target_dict, configuration, [])
-
- merged_configurations[configuration] = new_configuration_dict
-
- # Put the new configurations back into the target dict as a configuration.
- for configuration in merged_configurations.keys():
- target_dict['configurations'][configuration] = (
- merged_configurations[configuration])
-
- # Now drop all the abstract ones.
- for configuration in target_dict['configurations'].keys():
- old_configuration_dict = target_dict['configurations'][configuration]
- if old_configuration_dict.get('abstract'):
- del target_dict['configurations'][configuration]
-
- # Now that all of the target's configurations have been built, go through
- # the target dict's keys and remove everything that's been moved into a
- # "configurations" section.
- delete_keys = []
- for key in target_dict:
- key_ext = key[-1:]
- if key_ext in key_suffixes:
- key_base = key[:-1]
- else:
- key_base = key
- if not key_base in non_configuration_keys:
- delete_keys.append(key)
- for key in delete_keys:
- del target_dict[key]
-
- # Check the configurations to see if they contain invalid keys.
- for configuration in target_dict['configurations'].keys():
- configuration_dict = target_dict['configurations'][configuration]
- for key in configuration_dict.keys():
- if key in invalid_configuration_keys:
- raise GypError('%s not allowed in the %s configuration, found in '
- 'target %s' % (key, configuration, target))
-
-
-
-def ProcessListFiltersInDict(name, the_dict):
- """Process regular expression and exclusion-based filters on lists.
-
- An exclusion list is in a dict key named with a trailing "!", like
- "sources!". Every item in such a list is removed from the associated
- main list, which in this example, would be "sources". Removed items are
- placed into a "sources_excluded" list in the dict.
-
- Regular expression (regex) filters are contained in dict keys named with a
- trailing "/", such as "sources/" to operate on the "sources" list. Regex
- filters in a dict take the form:
- 'sources/': [ ['exclude', '_(linux|mac|win)\\.cc$'],
- ['include', '_mac\\.cc$'] ],
- The first filter says to exclude all files ending in _linux.cc, _mac.cc, and
- _win.cc. The second filter then includes all files ending in _mac.cc that
- are now or were once in the "sources" list. Items matching an "exclude"
- filter are subject to the same processing as would occur if they were listed
- by name in an exclusion list (ending in "!"). Items matching an "include"
- filter are brought back into the main list if previously excluded by an
- exclusion list or exclusion regex filter. Subsequent matching "exclude"
- patterns can still cause items to be excluded after matching an "include".
- """
-
- # Look through the dictionary for any lists whose keys end in "!" or "/".
- # These are lists that will be treated as exclude lists and regular
- # expression-based exclude/include lists. Collect the lists that are
- # needed first, looking for the lists that they operate on, and assemble
- # then into |lists|. This is done in a separate loop up front, because
- # the _included and _excluded keys need to be added to the_dict, and that
- # can't be done while iterating through it.
-
- lists = []
- del_lists = []
- for key, value in the_dict.iteritems():
- operation = key[-1]
- if operation != '!' and operation != '/':
- continue
-
- if type(value) is not list:
- raise ValueError(name + ' key ' + key + ' must be list, not ' + \
- value.__class__.__name__)
-
- list_key = key[:-1]
- if list_key not in the_dict:
- # This happens when there's a list like "sources!" but no corresponding
- # "sources" list. Since there's nothing for it to operate on, queue up
- # the "sources!" list for deletion now.
- del_lists.append(key)
- continue
-
- if type(the_dict[list_key]) is not list:
- value = the_dict[list_key]
- raise ValueError(name + ' key ' + list_key + \
- ' must be list, not ' + \
- value.__class__.__name__ + ' when applying ' + \
- {'!': 'exclusion', '/': 'regex'}[operation])
-
- if not list_key in lists:
- lists.append(list_key)
-
- # Delete the lists that are known to be unneeded at this point.
- for del_list in del_lists:
- del the_dict[del_list]
-
- for list_key in lists:
- the_list = the_dict[list_key]
-
- # Initialize the list_actions list, which is parallel to the_list. Each
- # item in list_actions identifies whether the corresponding item in
- # the_list should be excluded, unconditionally preserved (included), or
- # whether no exclusion or inclusion has been applied. Items for which
- # no exclusion or inclusion has been applied (yet) have value -1, items
- # excluded have value 0, and items included have value 1. Includes and
- # excludes override previous actions. All items in list_actions are
- # initialized to -1 because no excludes or includes have been processed
- # yet.
- list_actions = list((-1,) * len(the_list))
-
- exclude_key = list_key + '!'
- if exclude_key in the_dict:
- for exclude_item in the_dict[exclude_key]:
- for index in xrange(0, len(the_list)):
- if exclude_item == the_list[index]:
- # This item matches the exclude_item, so set its action to 0
- # (exclude).
- list_actions[index] = 0
-
- # The "whatever!" list is no longer needed, dump it.
- del the_dict[exclude_key]
-
- regex_key = list_key + '/'
- if regex_key in the_dict:
- for regex_item in the_dict[regex_key]:
- [action, pattern] = regex_item
- pattern_re = re.compile(pattern)
-
- if action == 'exclude':
- # This item matches an exclude regex, so set its value to 0 (exclude).
- action_value = 0
- elif action == 'include':
- # This item matches an include regex, so set its value to 1 (include).
- action_value = 1
- else:
- # This is an action that doesn't make any sense.
- raise ValueError('Unrecognized action ' + action + ' in ' + name + \
- ' key ' + regex_key)
-
- for index in xrange(0, len(the_list)):
- list_item = the_list[index]
- if list_actions[index] == action_value:
- # Even if the regex matches, nothing will change so continue (regex
- # searches are expensive).
- continue
- if pattern_re.search(list_item):
- # Regular expression match.
- list_actions[index] = action_value
-
- # The "whatever/" list is no longer needed, dump it.
- del the_dict[regex_key]
-
- # Add excluded items to the excluded list.
- #
- # Note that exclude_key ("sources!") is different from excluded_key
- # ("sources_excluded"). The exclude_key list is input and it was already
- # processed and deleted; the excluded_key list is output and it's about
- # to be created.
- excluded_key = list_key + '_excluded'
- if excluded_key in the_dict:
- raise GypError(name + ' key ' + excluded_key +
- ' must not be present prior '
- ' to applying exclusion/regex filters for ' + list_key)
-
- excluded_list = []
-
- # Go backwards through the list_actions list so that as items are deleted,
- # the indices of items that haven't been seen yet don't shift. That means
- # that things need to be prepended to excluded_list to maintain them in the
- # same order that they existed in the_list.
- for index in xrange(len(list_actions) - 1, -1, -1):
- if list_actions[index] == 0:
- # Dump anything with action 0 (exclude). Keep anything with action 1
- # (include) or -1 (no include or exclude seen for the item).
- excluded_list.insert(0, the_list[index])
- del the_list[index]
-
- # If anything was excluded, put the excluded list into the_dict at
- # excluded_key.
- if len(excluded_list) > 0:
- the_dict[excluded_key] = excluded_list
-
- # Now recurse into subdicts and lists that may contain dicts.
- for key, value in the_dict.iteritems():
- if type(value) is dict:
- ProcessListFiltersInDict(key, value)
- elif type(value) is list:
- ProcessListFiltersInList(key, value)
-
-
-def ProcessListFiltersInList(name, the_list):
- for item in the_list:
- if type(item) is dict:
- ProcessListFiltersInDict(name, item)
- elif type(item) is list:
- ProcessListFiltersInList(name, item)
-
-
-def ValidateTargetType(target, target_dict):
- """Ensures the 'type' field on the target is one of the known types.
-
- Arguments:
- target: string, name of target.
- target_dict: dict, target spec.
-
- Raises an exception on error.
- """
- VALID_TARGET_TYPES = ('executable', 'loadable_module',
- 'static_library', 'shared_library',
- 'mac_kernel_extension', 'none')
- target_type = target_dict.get('type', None)
- if target_type not in VALID_TARGET_TYPES:
- raise GypError("Target %s has an invalid target type '%s'. "
- "Must be one of %s." %
- (target, target_type, '/'.join(VALID_TARGET_TYPES)))
- if (target_dict.get('standalone_static_library', 0) and
- not target_type == 'static_library'):
- raise GypError('Target %s has type %s but standalone_static_library flag is'
- ' only valid for static_library type.' % (target,
- target_type))
-
-
-def ValidateSourcesInTarget(target, target_dict, build_file,
- duplicate_basename_check):
- if not duplicate_basename_check:
- return
- if target_dict.get('type', None) != 'static_library':
- return
- sources = target_dict.get('sources', [])
- basenames = {}
- for source in sources:
- name, ext = os.path.splitext(source)
- is_compiled_file = ext in [
- '.c', '.cc', '.cpp', '.cxx', '.m', '.mm', '.s', '.S']
- if not is_compiled_file:
- continue
- basename = os.path.basename(name) # Don't include extension.
- basenames.setdefault(basename, []).append(source)
-
- error = ''
- for basename, files in basenames.iteritems():
- if len(files) > 1:
- error += ' %s: %s\n' % (basename, ' '.join(files))
-
- if error:
- print('static library %s has several files with the same basename:\n' %
- target + error + 'libtool on Mac cannot handle that. Use '
- '--no-duplicate-basename-check to disable this validation.')
- raise GypError('Duplicate basenames in sources section, see list above')
-
-
-def ValidateRulesInTarget(target, target_dict, extra_sources_for_rules):
- """Ensures that the rules sections in target_dict are valid and consistent,
- and determines which sources they apply to.
-
- Arguments:
- target: string, name of target.
- target_dict: dict, target spec containing "rules" and "sources" lists.
- extra_sources_for_rules: a list of keys to scan for rule matches in
- addition to 'sources'.
- """
-
- # Dicts to map between values found in rules' 'rule_name' and 'extension'
- # keys and the rule dicts themselves.
- rule_names = {}
- rule_extensions = {}
-
- rules = target_dict.get('rules', [])
- for rule in rules:
- # Make sure that there's no conflict among rule names and extensions.
- rule_name = rule['rule_name']
- if rule_name in rule_names:
- raise GypError('rule %s exists in duplicate, target %s' %
- (rule_name, target))
- rule_names[rule_name] = rule
-
- rule_extension = rule['extension']
- if rule_extension.startswith('.'):
- rule_extension = rule_extension[1:]
- if rule_extension in rule_extensions:
- raise GypError(('extension %s associated with multiple rules, ' +
- 'target %s rules %s and %s') %
- (rule_extension, target,
- rule_extensions[rule_extension]['rule_name'],
- rule_name))
- rule_extensions[rule_extension] = rule
-
- # Make sure rule_sources isn't already there. It's going to be
- # created below if needed.
- if 'rule_sources' in rule:
- raise GypError(
- 'rule_sources must not exist in input, target %s rule %s' %
- (target, rule_name))
-
- rule_sources = []
- source_keys = ['sources']
- source_keys.extend(extra_sources_for_rules)
- for source_key in source_keys:
- for source in target_dict.get(source_key, []):
- (source_root, source_extension) = os.path.splitext(source)
- if source_extension.startswith('.'):
- source_extension = source_extension[1:]
- if source_extension == rule_extension:
- rule_sources.append(source)
-
- if len(rule_sources) > 0:
- rule['rule_sources'] = rule_sources
-
-
-def ValidateRunAsInTarget(target, target_dict, build_file):
- target_name = target_dict.get('target_name')
- run_as = target_dict.get('run_as')
- if not run_as:
- return
- if type(run_as) is not dict:
- raise GypError("The 'run_as' in target %s from file %s should be a "
- "dictionary." %
- (target_name, build_file))
- action = run_as.get('action')
- if not action:
- raise GypError("The 'run_as' in target %s from file %s must have an "
- "'action' section." %
- (target_name, build_file))
- if type(action) is not list:
- raise GypError("The 'action' for 'run_as' in target %s from file %s "
- "must be a list." %
- (target_name, build_file))
- working_directory = run_as.get('working_directory')
- if working_directory and type(working_directory) is not str:
- raise GypError("The 'working_directory' for 'run_as' in target %s "
- "in file %s should be a string." %
- (target_name, build_file))
- environment = run_as.get('environment')
- if environment and type(environment) is not dict:
- raise GypError("The 'environment' for 'run_as' in target %s "
- "in file %s should be a dictionary." %
- (target_name, build_file))
-
-
-def ValidateActionsInTarget(target, target_dict, build_file):
- '''Validates the inputs to the actions in a target.'''
- target_name = target_dict.get('target_name')
- actions = target_dict.get('actions', [])
- for action in actions:
- action_name = action.get('action_name')
- if not action_name:
- raise GypError("Anonymous action in target %s. "
- "An action must have an 'action_name' field." %
- target_name)
- inputs = action.get('inputs', None)
- if inputs is None:
- raise GypError('Action in target %s has no inputs.' % target_name)
- action_command = action.get('action')
- if action_command and not action_command[0]:
- raise GypError("Empty action as command in target %s." % target_name)
-
-
-def TurnIntIntoStrInDict(the_dict):
- """Given dict the_dict, recursively converts all integers into strings.
- """
- # Use items instead of iteritems because there's no need to try to look at
- # reinserted keys and their associated values.
- for k, v in the_dict.items():
- if type(v) is int:
- v = str(v)
- the_dict[k] = v
- elif type(v) is dict:
- TurnIntIntoStrInDict(v)
- elif type(v) is list:
- TurnIntIntoStrInList(v)
-
- if type(k) is int:
- del the_dict[k]
- the_dict[str(k)] = v
-
-
-def TurnIntIntoStrInList(the_list):
- """Given list the_list, recursively converts all integers into strings.
- """
- for index in xrange(0, len(the_list)):
- item = the_list[index]
- if type(item) is int:
- the_list[index] = str(item)
- elif type(item) is dict:
- TurnIntIntoStrInDict(item)
- elif type(item) is list:
- TurnIntIntoStrInList(item)
-
-
-def PruneUnwantedTargets(targets, flat_list, dependency_nodes, root_targets,
- data):
- """Return only the targets that are deep dependencies of |root_targets|."""
- qualified_root_targets = []
- for target in root_targets:
- target = target.strip()
- qualified_targets = gyp.common.FindQualifiedTargets(target, flat_list)
- if not qualified_targets:
- raise GypError("Could not find target %s" % target)
- qualified_root_targets.extend(qualified_targets)
-
- wanted_targets = {}
- for target in qualified_root_targets:
- wanted_targets[target] = targets[target]
- for dependency in dependency_nodes[target].DeepDependencies():
- wanted_targets[dependency] = targets[dependency]
-
- wanted_flat_list = [t for t in flat_list if t in wanted_targets]
-
- # Prune unwanted targets from each build_file's data dict.
- for build_file in data['target_build_files']:
- if not 'targets' in data[build_file]:
- continue
- new_targets = []
- for target in data[build_file]['targets']:
- qualified_name = gyp.common.QualifiedTarget(build_file,
- target['target_name'],
- target['toolset'])
- if qualified_name in wanted_targets:
- new_targets.append(target)
- data[build_file]['targets'] = new_targets
-
- return wanted_targets, wanted_flat_list
-
-
-def VerifyNoCollidingTargets(targets):
- """Verify that no two targets in the same directory share the same name.
-
- Arguments:
- targets: A list of targets in the form 'path/to/file.gyp:target_name'.
- """
- # Keep a dict going from 'subdirectory:target_name' to 'foo.gyp'.
- used = {}
- for target in targets:
- # Separate out 'path/to/file.gyp, 'target_name' from
- # 'path/to/file.gyp:target_name'.
- path, name = target.rsplit(':', 1)
- # Separate out 'path/to', 'file.gyp' from 'path/to/file.gyp'.
- subdir, gyp = os.path.split(path)
- # Use '.' for the current directory '', so that the error messages make
- # more sense.
- if not subdir:
- subdir = '.'
- # Prepare a key like 'path/to:target_name'.
- key = subdir + ':' + name
- if key in used:
- # Complain if this target is already used.
- raise GypError('Duplicate target name "%s" in directory "%s" used both '
- 'in "%s" and "%s".' % (name, subdir, gyp, used[key]))
- used[key] = gyp
-
-
-def SetGeneratorGlobals(generator_input_info):
- # Set up path_sections and non_configuration_keys with the default data plus
- # the generator-specific data.
- global path_sections
- path_sections = set(base_path_sections)
- path_sections.update(generator_input_info['path_sections'])
-
- global non_configuration_keys
- non_configuration_keys = base_non_configuration_keys[:]
- non_configuration_keys.extend(generator_input_info['non_configuration_keys'])
-
- global multiple_toolsets
- multiple_toolsets = generator_input_info[
- 'generator_supports_multiple_toolsets']
-
- global generator_filelist_paths
- generator_filelist_paths = generator_input_info['generator_filelist_paths']
-
-
-def Load(build_files, variables, includes, depth, generator_input_info, check,
- circular_check, duplicate_basename_check, parallel, root_targets):
- SetGeneratorGlobals(generator_input_info)
- # A generator can have other lists (in addition to sources) be processed
- # for rules.
- extra_sources_for_rules = generator_input_info['extra_sources_for_rules']
-
- # Load build files. This loads every target-containing build file into
- # the |data| dictionary such that the keys to |data| are build file names,
- # and the values are the entire build file contents after "early" or "pre"
- # processing has been done and includes have been resolved.
- # NOTE: data contains both "target" files (.gyp) and "includes" (.gypi), as
- # well as meta-data (e.g. 'included_files' key). 'target_build_files' keeps
- # track of the keys corresponding to "target" files.
- data = {'target_build_files': set()}
- # Normalize paths everywhere. This is important because paths will be
- # used as keys to the data dict and for references between input files.
- build_files = set(map(os.path.normpath, build_files))
- if parallel:
- LoadTargetBuildFilesParallel(build_files, data, variables, includes, depth,
- check, generator_input_info)
- else:
- aux_data = {}
- for build_file in build_files:
- try:
- LoadTargetBuildFile(build_file, data, aux_data,
- variables, includes, depth, check, True)
- except Exception, e:
- gyp.common.ExceptionAppend(e, 'while trying to load %s' % build_file)
- raise
-
- # Build a dict to access each target's subdict by qualified name.
- targets = BuildTargetsDict(data)
-
- # Fully qualify all dependency links.
- QualifyDependencies(targets)
-
- # Remove self-dependencies from targets that have 'prune_self_dependencies'
- # set to 1.
- RemoveSelfDependencies(targets)
-
- # Expand dependencies specified as build_file:*.
- ExpandWildcardDependencies(targets, data)
-
- # Remove all dependencies marked as 'link_dependency' from the targets of
- # type 'none'.
- RemoveLinkDependenciesFromNoneTargets(targets)
-
- # Apply exclude (!) and regex (/) list filters only for dependency_sections.
- for target_name, target_dict in targets.iteritems():
- tmp_dict = {}
- for key_base in dependency_sections:
- for op in ('', '!', '/'):
- key = key_base + op
- if key in target_dict:
- tmp_dict[key] = target_dict[key]
- del target_dict[key]
- ProcessListFiltersInDict(target_name, tmp_dict)
- # Write the results back to |target_dict|.
- for key in tmp_dict:
- target_dict[key] = tmp_dict[key]
-
- # Make sure every dependency appears at most once.
- RemoveDuplicateDependencies(targets)
-
- if circular_check:
- # Make sure that any targets in a.gyp don't contain dependencies in other
- # .gyp files that further depend on a.gyp.
- VerifyNoGYPFileCircularDependencies(targets)
-
- [dependency_nodes, flat_list] = BuildDependencyList(targets)
-
- if root_targets:
- # Remove, from |targets| and |flat_list|, the targets that are not deep
- # dependencies of the targets specified in |root_targets|.
- targets, flat_list = PruneUnwantedTargets(
- targets, flat_list, dependency_nodes, root_targets, data)
-
- # Check that no two targets in the same directory have the same name.
- VerifyNoCollidingTargets(flat_list)
-
- # Handle dependent settings of various types.
- for settings_type in ['all_dependent_settings',
- 'direct_dependent_settings',
- 'link_settings']:
- DoDependentSettings(settings_type, flat_list, targets, dependency_nodes)
-
- # Take out the dependent settings now that they've been published to all
- # of the targets that require them.
- for target in flat_list:
- if settings_type in targets[target]:
- del targets[target][settings_type]
-
- # Make sure static libraries don't declare dependencies on other static
- # libraries, but that linkables depend on all unlinked static libraries
- # that they need so that their link steps will be correct.
- gii = generator_input_info
- if gii['generator_wants_static_library_dependencies_adjusted']:
- AdjustStaticLibraryDependencies(flat_list, targets, dependency_nodes,
- gii['generator_wants_sorted_dependencies'])
-
- # Apply "post"/"late"/"target" variable expansions and condition evaluations.
- for target in flat_list:
- target_dict = targets[target]
- build_file = gyp.common.BuildFile(target)
- ProcessVariablesAndConditionsInDict(
- target_dict, PHASE_LATE, variables, build_file)
-
- # Move everything that can go into a "configurations" section into one.
- for target in flat_list:
- target_dict = targets[target]
- SetUpConfigurations(target, target_dict)
-
- # Apply exclude (!) and regex (/) list filters.
- for target in flat_list:
- target_dict = targets[target]
- ProcessListFiltersInDict(target, target_dict)
-
- # Apply "latelate" variable expansions and condition evaluations.
- for target in flat_list:
- target_dict = targets[target]
- build_file = gyp.common.BuildFile(target)
- ProcessVariablesAndConditionsInDict(
- target_dict, PHASE_LATELATE, variables, build_file)
-
- # Make sure that the rules make sense, and build up rule_sources lists as
- # needed. Not all generators will need to use the rule_sources lists, but
- # some may, and it seems best to build the list in a common spot.
- # Also validate actions and run_as elements in targets.
- for target in flat_list:
- target_dict = targets[target]
- build_file = gyp.common.BuildFile(target)
- ValidateTargetType(target, target_dict)
- ValidateSourcesInTarget(target, target_dict, build_file,
- duplicate_basename_check)
- ValidateRulesInTarget(target, target_dict, extra_sources_for_rules)
- ValidateRunAsInTarget(target, target_dict, build_file)
- ValidateActionsInTarget(target, target_dict, build_file)
-
- # Generators might not expect ints. Turn them into strs.
- TurnIntIntoStrInDict(data)
-
- # TODO(mark): Return |data| for now because the generator needs a list of
- # build files that came in. In the future, maybe it should just accept
- # a list, and not the whole data dict.
- return [flat_list, targets, data]
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/input_test.py b/node_modules/node-gyp/gyp/pylib/gyp/input_test.py
deleted file mode 100755
index 4234fbb..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/input_test.py
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright 2013 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Unit tests for the input.py file."""
-
-import gyp.input
-import unittest
-import sys
-
-
-class TestFindCycles(unittest.TestCase):
- def setUp(self):
- self.nodes = {}
- for x in ('a', 'b', 'c', 'd', 'e'):
- self.nodes[x] = gyp.input.DependencyGraphNode(x)
-
- def _create_dependency(self, dependent, dependency):
- dependent.dependencies.append(dependency)
- dependency.dependents.append(dependent)
-
- def test_no_cycle_empty_graph(self):
- for label, node in self.nodes.iteritems():
- self.assertEquals([], node.FindCycles())
-
- def test_no_cycle_line(self):
- self._create_dependency(self.nodes['a'], self.nodes['b'])
- self._create_dependency(self.nodes['b'], self.nodes['c'])
- self._create_dependency(self.nodes['c'], self.nodes['d'])
-
- for label, node in self.nodes.iteritems():
- self.assertEquals([], node.FindCycles())
-
- def test_no_cycle_dag(self):
- self._create_dependency(self.nodes['a'], self.nodes['b'])
- self._create_dependency(self.nodes['a'], self.nodes['c'])
- self._create_dependency(self.nodes['b'], self.nodes['c'])
-
- for label, node in self.nodes.iteritems():
- self.assertEquals([], node.FindCycles())
-
- def test_cycle_self_reference(self):
- self._create_dependency(self.nodes['a'], self.nodes['a'])
-
- self.assertEquals([[self.nodes['a'], self.nodes['a']]],
- self.nodes['a'].FindCycles())
-
- def test_cycle_two_nodes(self):
- self._create_dependency(self.nodes['a'], self.nodes['b'])
- self._create_dependency(self.nodes['b'], self.nodes['a'])
-
- self.assertEquals([[self.nodes['a'], self.nodes['b'], self.nodes['a']]],
- self.nodes['a'].FindCycles())
- self.assertEquals([[self.nodes['b'], self.nodes['a'], self.nodes['b']]],
- self.nodes['b'].FindCycles())
-
- def test_two_cycles(self):
- self._create_dependency(self.nodes['a'], self.nodes['b'])
- self._create_dependency(self.nodes['b'], self.nodes['a'])
-
- self._create_dependency(self.nodes['b'], self.nodes['c'])
- self._create_dependency(self.nodes['c'], self.nodes['b'])
-
- cycles = self.nodes['a'].FindCycles()
- self.assertTrue(
- [self.nodes['a'], self.nodes['b'], self.nodes['a']] in cycles)
- self.assertTrue(
- [self.nodes['b'], self.nodes['c'], self.nodes['b']] in cycles)
- self.assertEquals(2, len(cycles))
-
- def test_big_cycle(self):
- self._create_dependency(self.nodes['a'], self.nodes['b'])
- self._create_dependency(self.nodes['b'], self.nodes['c'])
- self._create_dependency(self.nodes['c'], self.nodes['d'])
- self._create_dependency(self.nodes['d'], self.nodes['e'])
- self._create_dependency(self.nodes['e'], self.nodes['a'])
-
- self.assertEquals([[self.nodes['a'],
- self.nodes['b'],
- self.nodes['c'],
- self.nodes['d'],
- self.nodes['e'],
- self.nodes['a']]],
- self.nodes['a'].FindCycles())
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py b/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py
deleted file mode 100755
index eeeaceb..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py
+++ /dev/null
@@ -1,610 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Utility functions to perform Xcode-style build steps.
-
-These functions are executed via gyp-mac-tool when using the Makefile generator.
-"""
-
-import fcntl
-import fnmatch
-import glob
-import json
-import os
-import plistlib
-import re
-import shutil
-import string
-import subprocess
-import sys
-import tempfile
-
-
-def main(args):
- executor = MacTool()
- exit_code = executor.Dispatch(args)
- if exit_code is not None:
- sys.exit(exit_code)
-
-
-class MacTool(object):
- """This class performs all the Mac tooling steps. The methods can either be
- executed directly, or dispatched from an argument list."""
-
- def Dispatch(self, args):
- """Dispatches a string command to a method."""
- if len(args) < 1:
- raise Exception("Not enough arguments")
-
- method = "Exec%s" % self._CommandifyName(args[0])
- return getattr(self, method)(*args[1:])
-
- def _CommandifyName(self, name_string):
- """Transforms a tool name like copy-info-plist to CopyInfoPlist"""
- return name_string.title().replace('-', '')
-
- def ExecCopyBundleResource(self, source, dest, convert_to_binary):
- """Copies a resource file to the bundle/Resources directory, performing any
- necessary compilation on each resource."""
- extension = os.path.splitext(source)[1].lower()
- if os.path.isdir(source):
- # Copy tree.
- # TODO(thakis): This copies file attributes like mtime, while the
- # single-file branch below doesn't. This should probably be changed to
- # be consistent with the single-file branch.
- if os.path.exists(dest):
- shutil.rmtree(dest)
- shutil.copytree(source, dest)
- elif extension == '.xib':
- return self._CopyXIBFile(source, dest)
- elif extension == '.storyboard':
- return self._CopyXIBFile(source, dest)
- elif extension == '.strings':
- self._CopyStringsFile(source, dest, convert_to_binary)
- else:
- shutil.copy(source, dest)
-
- def _CopyXIBFile(self, source, dest):
- """Compiles a XIB file with ibtool into a binary plist in the bundle."""
-
- # ibtool sometimes crashes with relative paths. See crbug.com/314728.
- base = os.path.dirname(os.path.realpath(__file__))
- if os.path.relpath(source):
- source = os.path.join(base, source)
- if os.path.relpath(dest):
- dest = os.path.join(base, dest)
-
- args = ['xcrun', 'ibtool', '--errors', '--warnings', '--notices',
- '--output-format', 'human-readable-text', '--compile', dest, source]
- ibtool_section_re = re.compile(r'/\*.*\*/')
- ibtool_re = re.compile(r'.*note:.*is clipping its content')
- ibtoolout = subprocess.Popen(args, stdout=subprocess.PIPE)
- current_section_header = None
- for line in ibtoolout.stdout:
- if ibtool_section_re.match(line):
- current_section_header = line
- elif not ibtool_re.match(line):
- if current_section_header:
- sys.stdout.write(current_section_header)
- current_section_header = None
- sys.stdout.write(line)
- return ibtoolout.returncode
-
- def _ConvertToBinary(self, dest):
- subprocess.check_call([
- 'xcrun', 'plutil', '-convert', 'binary1', '-o', dest, dest])
-
- def _CopyStringsFile(self, source, dest, convert_to_binary):
- """Copies a .strings file using iconv to reconvert the input into UTF-16."""
- input_code = self._DetectInputEncoding(source) or "UTF-8"
-
- # Xcode's CpyCopyStringsFile / builtin-copyStrings seems to call
- # CFPropertyListCreateFromXMLData() behind the scenes; at least it prints
- # CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
- # semicolon in dictionary.
- # on invalid files. Do the same kind of validation.
- import CoreFoundation
- s = open(source, 'rb').read()
- d = CoreFoundation.CFDataCreate(None, s, len(s))
- _, error = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
- if error:
- return
-
- fp = open(dest, 'wb')
- fp.write(s.decode(input_code).encode('UTF-16'))
- fp.close()
-
- if convert_to_binary == 'True':
- self._ConvertToBinary(dest)
-
- def _DetectInputEncoding(self, file_name):
- """Reads the first few bytes from file_name and tries to guess the text
- encoding. Returns None as a guess if it can't detect it."""
- fp = open(file_name, 'rb')
- try:
- header = fp.read(3)
- except e:
- fp.close()
- return None
- fp.close()
- if header.startswith("\xFE\xFF"):
- return "UTF-16"
- elif header.startswith("\xFF\xFE"):
- return "UTF-16"
- elif header.startswith("\xEF\xBB\xBF"):
- return "UTF-8"
- else:
- return None
-
- def ExecCopyInfoPlist(self, source, dest, convert_to_binary, *keys):
- """Copies the |source| Info.plist to the destination directory |dest|."""
- # Read the source Info.plist into memory.
- fd = open(source, 'r')
- lines = fd.read()
- fd.close()
-
- # Insert synthesized key/value pairs (e.g. BuildMachineOSBuild).
- plist = plistlib.readPlistFromString(lines)
- if keys:
- plist = dict(plist.items() + json.loads(keys[0]).items())
- lines = plistlib.writePlistToString(plist)
-
- # Go through all the environment variables and replace them as variables in
- # the file.
- IDENT_RE = re.compile(r'[/\s]')
- for key in os.environ:
- if key.startswith('_'):
- continue
- evar = '${%s}' % key
- evalue = os.environ[key]
- lines = string.replace(lines, evar, evalue)
-
- # Xcode supports various suffices on environment variables, which are
- # all undocumented. :rfc1034identifier is used in the standard project
- # template these days, and :identifier was used earlier. They are used to
- # convert non-url characters into things that look like valid urls --
- # except that the replacement character for :identifier, '_' isn't valid
- # in a URL either -- oops, hence :rfc1034identifier was born.
- evar = '${%s:identifier}' % key
- evalue = IDENT_RE.sub('_', os.environ[key])
- lines = string.replace(lines, evar, evalue)
-
- evar = '${%s:rfc1034identifier}' % key
- evalue = IDENT_RE.sub('-', os.environ[key])
- lines = string.replace(lines, evar, evalue)
-
- # Remove any keys with values that haven't been replaced.
- lines = lines.split('\n')
- for i in range(len(lines)):
- if lines[i].strip().startswith("<string>${"):
- lines[i] = None
- lines[i - 1] = None
- lines = '\n'.join(filter(lambda x: x is not None, lines))
-
- # Write out the file with variables replaced.
- fd = open(dest, 'w')
- fd.write(lines)
- fd.close()
-
- # Now write out PkgInfo file now that the Info.plist file has been
- # "compiled".
- self._WritePkgInfo(dest)
-
- if convert_to_binary == 'True':
- self._ConvertToBinary(dest)
-
- def _WritePkgInfo(self, info_plist):
- """This writes the PkgInfo file from the data stored in Info.plist."""
- plist = plistlib.readPlist(info_plist)
- if not plist:
- return
-
- # Only create PkgInfo for executable types.
- package_type = plist['CFBundlePackageType']
- if package_type != 'APPL':
- return
-
- # The format of PkgInfo is eight characters, representing the bundle type
- # and bundle signature, each four characters. If that is missing, four
- # '?' characters are used instead.
- signature_code = plist.get('CFBundleSignature', '????')
- if len(signature_code) != 4: # Wrong length resets everything, too.
- signature_code = '?' * 4
-
- dest = os.path.join(os.path.dirname(info_plist), 'PkgInfo')
- fp = open(dest, 'w')
- fp.write('%s%s' % (package_type, signature_code))
- fp.close()
-
- def ExecFlock(self, lockfile, *cmd_list):
- """Emulates the most basic behavior of Linux's flock(1)."""
- # Rely on exception handling to report errors.
- fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
- fcntl.flock(fd, fcntl.LOCK_EX)
- return subprocess.call(cmd_list)
-
- def ExecFilterLibtool(self, *cmd_list):
- """Calls libtool and filters out '/path/to/libtool: file: foo.o has no
- symbols'."""
- libtool_re = re.compile(r'^.*libtool: file: .* has no symbols$')
- libtool_re5 = re.compile(
- r'^.*libtool: warning for library: ' +
- r'.* the table of contents is empty ' +
- r'\(no object file members in the library define global symbols\)$')
- env = os.environ.copy()
- # Ref:
- # http://www.opensource.apple.com/source/cctools/cctools-809/misc/libtool.c
- # The problem with this flag is that it resets the file mtime on the file to
- # epoch=0, e.g. 1970-1-1 or 1969-12-31 depending on timezone.
- env['ZERO_AR_DATE'] = '1'
- libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE, env=env)
- _, err = libtoolout.communicate()
- for line in err.splitlines():
- if not libtool_re.match(line) and not libtool_re5.match(line):
- print >>sys.stderr, line
- # Unconditionally touch the output .a file on the command line if present
- # and the command succeeded. A bit hacky.
- if not libtoolout.returncode:
- for i in range(len(cmd_list) - 1):
- if cmd_list[i] == "-o" and cmd_list[i+1].endswith('.a'):
- os.utime(cmd_list[i+1], None)
- break
- return libtoolout.returncode
-
- def ExecPackageFramework(self, framework, version):
- """Takes a path to Something.framework and the Current version of that and
- sets up all the symlinks."""
- # Find the name of the binary based on the part before the ".framework".
- binary = os.path.basename(framework).split('.')[0]
-
- CURRENT = 'Current'
- RESOURCES = 'Resources'
- VERSIONS = 'Versions'
-
- if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
- # Binary-less frameworks don't seem to contain symlinks (see e.g.
- # chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
- return
-
- # Move into the framework directory to set the symlinks correctly.
- pwd = os.getcwd()
- os.chdir(framework)
-
- # Set up the Current version.
- self._Relink(version, os.path.join(VERSIONS, CURRENT))
-
- # Set up the root symlinks.
- self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
- self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
-
- # Back to where we were before!
- os.chdir(pwd)
-
- def _Relink(self, dest, link):
- """Creates a symlink to |dest| named |link|. If |link| already exists,
- it is overwritten."""
- if os.path.lexists(link):
- os.remove(link)
- os.symlink(dest, link)
-
- def ExecCompileXcassets(self, keys, *inputs):
- """Compiles multiple .xcassets files into a single .car file.
-
- This invokes 'actool' to compile all the inputs .xcassets files. The
- |keys| arguments is a json-encoded dictionary of extra arguments to
- pass to 'actool' when the asset catalogs contains an application icon
- or a launch image.
-
- Note that 'actool' does not create the Assets.car file if the asset
- catalogs does not contains imageset.
- """
- command_line = [
- 'xcrun', 'actool', '--output-format', 'human-readable-text',
- '--compress-pngs', '--notices', '--warnings', '--errors',
- ]
- is_iphone_target = 'IPHONEOS_DEPLOYMENT_TARGET' in os.environ
- if is_iphone_target:
- platform = os.environ['CONFIGURATION'].split('-')[-1]
- if platform not in ('iphoneos', 'iphonesimulator'):
- platform = 'iphonesimulator'
- command_line.extend([
- '--platform', platform, '--target-device', 'iphone',
- '--target-device', 'ipad', '--minimum-deployment-target',
- os.environ['IPHONEOS_DEPLOYMENT_TARGET'], '--compile',
- os.path.abspath(os.environ['CONTENTS_FOLDER_PATH']),
- ])
- else:
- command_line.extend([
- '--platform', 'macosx', '--target-device', 'mac',
- '--minimum-deployment-target', os.environ['MACOSX_DEPLOYMENT_TARGET'],
- '--compile',
- os.path.abspath(os.environ['UNLOCALIZED_RESOURCES_FOLDER_PATH']),
- ])
- if keys:
- keys = json.loads(keys)
- for key, value in keys.iteritems():
- arg_name = '--' + key
- if isinstance(value, bool):
- if value:
- command_line.append(arg_name)
- elif isinstance(value, list):
- for v in value:
- command_line.append(arg_name)
- command_line.append(str(v))
- else:
- command_line.append(arg_name)
- command_line.append(str(value))
- # Note: actool crashes if inputs path are relative, so use os.path.abspath
- # to get absolute path name for inputs.
- command_line.extend(map(os.path.abspath, inputs))
- subprocess.check_call(command_line)
-
- def ExecMergeInfoPlist(self, output, *inputs):
- """Merge multiple .plist files into a single .plist file."""
- merged_plist = {}
- for path in inputs:
- plist = self._LoadPlistMaybeBinary(path)
- self._MergePlist(merged_plist, plist)
- plistlib.writePlist(merged_plist, output)
-
- def ExecCodeSignBundle(self, key, resource_rules, entitlements, provisioning):
- """Code sign a bundle.
-
- This function tries to code sign an iOS bundle, following the same
- algorithm as Xcode:
- 1. copy ResourceRules.plist from the user or the SDK into the bundle,
- 2. pick the provisioning profile that best match the bundle identifier,
- and copy it into the bundle as embedded.mobileprovision,
- 3. copy Entitlements.plist from user or SDK next to the bundle,
- 4. code sign the bundle.
- """
- resource_rules_path = self._InstallResourceRules(resource_rules)
- substitutions, overrides = self._InstallProvisioningProfile(
- provisioning, self._GetCFBundleIdentifier())
- entitlements_path = self._InstallEntitlements(
- entitlements, substitutions, overrides)
- subprocess.check_call([
- 'codesign', '--force', '--sign', key, '--resource-rules',
- resource_rules_path, '--entitlements', entitlements_path,
- os.path.join(
- os.environ['TARGET_BUILD_DIR'],
- os.environ['FULL_PRODUCT_NAME'])])
-
- def _InstallResourceRules(self, resource_rules):
- """Installs ResourceRules.plist from user or SDK into the bundle.
-
- Args:
- resource_rules: string, optional, path to the ResourceRules.plist file
- to use, default to "${SDKROOT}/ResourceRules.plist"
-
- Returns:
- Path to the copy of ResourceRules.plist into the bundle.
- """
- source_path = resource_rules
- target_path = os.path.join(
- os.environ['BUILT_PRODUCTS_DIR'],
- os.environ['CONTENTS_FOLDER_PATH'],
- 'ResourceRules.plist')
- if not source_path:
- source_path = os.path.join(
- os.environ['SDKROOT'], 'ResourceRules.plist')
- shutil.copy2(source_path, target_path)
- return target_path
-
- def _InstallProvisioningProfile(self, profile, bundle_identifier):
- """Installs embedded.mobileprovision into the bundle.
-
- Args:
- profile: string, optional, short name of the .mobileprovision file
- to use, if empty or the file is missing, the best file installed
- will be used
- bundle_identifier: string, value of CFBundleIdentifier from Info.plist
-
- Returns:
- A tuple containing two dictionary: variables substitutions and values
- to overrides when generating the entitlements file.
- """
- source_path, provisioning_data, team_id = self._FindProvisioningProfile(
- profile, bundle_identifier)
- target_path = os.path.join(
- os.environ['BUILT_PRODUCTS_DIR'],
- os.environ['CONTENTS_FOLDER_PATH'],
- 'embedded.mobileprovision')
- shutil.copy2(source_path, target_path)
- substitutions = self._GetSubstitutions(bundle_identifier, team_id + '.')
- return substitutions, provisioning_data['Entitlements']
-
- def _FindProvisioningProfile(self, profile, bundle_identifier):
- """Finds the .mobileprovision file to use for signing the bundle.
-
- Checks all the installed provisioning profiles (or if the user specified
- the PROVISIONING_PROFILE variable, only consult it) and select the most
- specific that correspond to the bundle identifier.
-
- Args:
- profile: string, optional, short name of the .mobileprovision file
- to use, if empty or the file is missing, the best file installed
- will be used
- bundle_identifier: string, value of CFBundleIdentifier from Info.plist
-
- Returns:
- A tuple of the path to the selected provisioning profile, the data of
- the embedded plist in the provisioning profile and the team identifier
- to use for code signing.
-
- Raises:
- SystemExit: if no .mobileprovision can be used to sign the bundle.
- """
- profiles_dir = os.path.join(
- os.environ['HOME'], 'Library', 'MobileDevice', 'Provisioning Profiles')
- if not os.path.isdir(profiles_dir):
- print >>sys.stderr, (
- 'cannot find mobile provisioning for %s' % bundle_identifier)
- sys.exit(1)
- provisioning_profiles = None
- if profile:
- profile_path = os.path.join(profiles_dir, profile + '.mobileprovision')
- if os.path.exists(profile_path):
- provisioning_profiles = [profile_path]
- if not provisioning_profiles:
- provisioning_profiles = glob.glob(
- os.path.join(profiles_dir, '*.mobileprovision'))
- valid_provisioning_profiles = {}
- for profile_path in provisioning_profiles:
- profile_data = self._LoadProvisioningProfile(profile_path)
- app_id_pattern = profile_data.get(
- 'Entitlements', {}).get('application-identifier', '')
- for team_identifier in profile_data.get('TeamIdentifier', []):
- app_id = '%s.%s' % (team_identifier, bundle_identifier)
- if fnmatch.fnmatch(app_id, app_id_pattern):
- valid_provisioning_profiles[app_id_pattern] = (
- profile_path, profile_data, team_identifier)
- if not valid_provisioning_profiles:
- print >>sys.stderr, (
- 'cannot find mobile provisioning for %s' % bundle_identifier)
- sys.exit(1)
- # If the user has multiple provisioning profiles installed that can be
- # used for ${bundle_identifier}, pick the most specific one (ie. the
- # provisioning profile whose pattern is the longest).
- selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
- return valid_provisioning_profiles[selected_key]
-
- def _LoadProvisioningProfile(self, profile_path):
- """Extracts the plist embedded in a provisioning profile.
-
- Args:
- profile_path: string, path to the .mobileprovision file
-
- Returns:
- Content of the plist embedded in the provisioning profile as a dictionary.
- """
- with tempfile.NamedTemporaryFile() as temp:
- subprocess.check_call([
- 'security', 'cms', '-D', '-i', profile_path, '-o', temp.name])
- return self._LoadPlistMaybeBinary(temp.name)
-
- def _MergePlist(self, merged_plist, plist):
- """Merge |plist| into |merged_plist|."""
- for key, value in plist.iteritems():
- if isinstance(value, dict):
- merged_value = merged_plist.get(key, {})
- if isinstance(merged_value, dict):
- self._MergePlist(merged_value, value)
- merged_plist[key] = merged_value
- else:
- merged_plist[key] = value
- else:
- merged_plist[key] = value
-
- def _LoadPlistMaybeBinary(self, plist_path):
- """Loads into a memory a plist possibly encoded in binary format.
-
- This is a wrapper around plistlib.readPlist that tries to convert the
- plist to the XML format if it can't be parsed (assuming that it is in
- the binary format).
-
- Args:
- plist_path: string, path to a plist file, in XML or binary format
-
- Returns:
- Content of the plist as a dictionary.
- """
- try:
- # First, try to read the file using plistlib that only supports XML,
- # and if an exception is raised, convert a temporary copy to XML and
- # load that copy.
- return plistlib.readPlist(plist_path)
- except:
- pass
- with tempfile.NamedTemporaryFile() as temp:
- shutil.copy2(plist_path, temp.name)
- subprocess.check_call(['plutil', '-convert', 'xml1', temp.name])
- return plistlib.readPlist(temp.name)
-
- def _GetSubstitutions(self, bundle_identifier, app_identifier_prefix):
- """Constructs a dictionary of variable substitutions for Entitlements.plist.
-
- Args:
- bundle_identifier: string, value of CFBundleIdentifier from Info.plist
- app_identifier_prefix: string, value for AppIdentifierPrefix
-
- Returns:
- Dictionary of substitutions to apply when generating Entitlements.plist.
- """
- return {
- 'CFBundleIdentifier': bundle_identifier,
- 'AppIdentifierPrefix': app_identifier_prefix,
- }
-
- def _GetCFBundleIdentifier(self):
- """Extracts CFBundleIdentifier value from Info.plist in the bundle.
-
- Returns:
- Value of CFBundleIdentifier in the Info.plist located in the bundle.
- """
- info_plist_path = os.path.join(
- os.environ['TARGET_BUILD_DIR'],
- os.environ['INFOPLIST_PATH'])
- info_plist_data = self._LoadPlistMaybeBinary(info_plist_path)
- return info_plist_data['CFBundleIdentifier']
-
- def _InstallEntitlements(self, entitlements, substitutions, overrides):
- """Generates and install the ${BundleName}.xcent entitlements file.
-
- Expands variables "$(variable)" pattern in the source entitlements file,
- add extra entitlements defined in the .mobileprovision file and the copy
- the generated plist to "${BundlePath}.xcent".
-
- Args:
- entitlements: string, optional, path to the Entitlements.plist template
- to use, defaults to "${SDKROOT}/Entitlements.plist"
- substitutions: dictionary, variable substitutions
- overrides: dictionary, values to add to the entitlements
-
- Returns:
- Path to the generated entitlements file.
- """
- source_path = entitlements
- target_path = os.path.join(
- os.environ['BUILT_PRODUCTS_DIR'],
- os.environ['PRODUCT_NAME'] + '.xcent')
- if not source_path:
- source_path = os.path.join(
- os.environ['SDKROOT'],
- 'Entitlements.plist')
- shutil.copy2(source_path, target_path)
- data = self._LoadPlistMaybeBinary(target_path)
- data = self._ExpandVariables(data, substitutions)
- if overrides:
- for key in overrides:
- if key not in data:
- data[key] = overrides[key]
- plistlib.writePlist(data, target_path)
- return target_path
-
- def _ExpandVariables(self, data, substitutions):
- """Expands variables "$(variable)" in data.
-
- Args:
- data: object, can be either string, list or dictionary
- substitutions: dictionary, variable substitutions to perform
-
- Returns:
- Copy of data where each references to "$(variable)" has been replaced
- by the corresponding value found in substitutions, or left intact if
- the key was not found.
- """
- if isinstance(data, str):
- for key, value in substitutions.iteritems():
- data = data.replace('$(%s)' % key, value)
- return data
- if isinstance(data, list):
- return [self._ExpandVariables(v, substitutions) for v in data]
- if isinstance(data, dict):
- return {k: self._ExpandVariables(data[k], substitutions) for k in data}
- return data
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv[1:]))
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py b/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py
deleted file mode 100644
index ca67b12..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py
+++ /dev/null
@@ -1,1087 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""
-This module helps emulate Visual Studio 2008 behavior on top of other
-build systems, primarily ninja.
-"""
-
-import os
-import re
-import subprocess
-import sys
-
-from gyp.common import OrderedSet
-import gyp.MSVSUtil
-import gyp.MSVSVersion
-
-
-windows_quoter_regex = re.compile(r'(\\*)"')
-
-
-def QuoteForRspFile(arg):
- """Quote a command line argument so that it appears as one argument when
- processed via cmd.exe and parsed by CommandLineToArgvW (as is typical for
- Windows programs)."""
- # See http://goo.gl/cuFbX and http://goo.gl/dhPnp including the comment
- # threads. This is actually the quoting rules for CommandLineToArgvW, not
- # for the shell, because the shell doesn't do anything in Windows. This
- # works more or less because most programs (including the compiler, etc.)
- # use that function to handle command line arguments.
-
- # For a literal quote, CommandLineToArgvW requires 2n+1 backslashes
- # preceding it, and results in n backslashes + the quote. So we substitute
- # in 2* what we match, +1 more, plus the quote.
- arg = windows_quoter_regex.sub(lambda mo: 2 * mo.group(1) + '\\"', arg)
-
- # %'s also need to be doubled otherwise they're interpreted as batch
- # positional arguments. Also make sure to escape the % so that they're
- # passed literally through escaping so they can be singled to just the
- # original %. Otherwise, trying to pass the literal representation that
- # looks like an environment variable to the shell (e.g. %PATH%) would fail.
- arg = arg.replace('%', '%%')
-
- # These commands are used in rsp files, so no escaping for the shell (via ^)
- # is necessary.
-
- # Finally, wrap the whole thing in quotes so that the above quote rule
- # applies and whitespace isn't a word break.
- return '"' + arg + '"'
-
-
-def EncodeRspFileList(args):
- """Process a list of arguments using QuoteCmdExeArgument."""
- # Note that the first argument is assumed to be the command. Don't add
- # quotes around it because then built-ins like 'echo', etc. won't work.
- # Take care to normpath only the path in the case of 'call ../x.bat' because
- # otherwise the whole thing is incorrectly interpreted as a path and not
- # normalized correctly.
- if not args: return ''
- if args[0].startswith('call '):
- call, program = args[0].split(' ', 1)
- program = call + ' ' + os.path.normpath(program)
- else:
- program = os.path.normpath(args[0])
- return program + ' ' + ' '.join(QuoteForRspFile(arg) for arg in args[1:])
-
-
-def _GenericRetrieve(root, default, path):
- """Given a list of dictionary keys |path| and a tree of dicts |root|, find
- value at path, or return |default| if any of the path doesn't exist."""
- if not root:
- return default
- if not path:
- return root
- return _GenericRetrieve(root.get(path[0]), default, path[1:])
-
-
-def _AddPrefix(element, prefix):
- """Add |prefix| to |element| or each subelement if element is iterable."""
- if element is None:
- return element
- # Note, not Iterable because we don't want to handle strings like that.
- if isinstance(element, list) or isinstance(element, tuple):
- return [prefix + e for e in element]
- else:
- return prefix + element
-
-
-def _DoRemapping(element, map):
- """If |element| then remap it through |map|. If |element| is iterable then
- each item will be remapped. Any elements not found will be removed."""
- if map is not None and element is not None:
- if not callable(map):
- map = map.get # Assume it's a dict, otherwise a callable to do the remap.
- if isinstance(element, list) or isinstance(element, tuple):
- element = filter(None, [map(elem) for elem in element])
- else:
- element = map(element)
- return element
-
-
-def _AppendOrReturn(append, element):
- """If |append| is None, simply return |element|. If |append| is not None,
- then add |element| to it, adding each item in |element| if it's a list or
- tuple."""
- if append is not None and element is not None:
- if isinstance(element, list) or isinstance(element, tuple):
- append.extend(element)
- else:
- append.append(element)
- else:
- return element
-
-
-def _FindDirectXInstallation():
- """Try to find an installation location for the DirectX SDK. Check for the
- standard environment variable, and if that doesn't exist, try to find
- via the registry. May return None if not found in either location."""
- # Return previously calculated value, if there is one
- if hasattr(_FindDirectXInstallation, 'dxsdk_dir'):
- return _FindDirectXInstallation.dxsdk_dir
-
- dxsdk_dir = os.environ.get('DXSDK_DIR')
- if not dxsdk_dir:
- # Setup params to pass to and attempt to launch reg.exe.
- cmd = ['reg.exe', 'query', r'HKLM\Software\Microsoft\DirectX', '/s']
- p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- for line in p.communicate()[0].splitlines():
- if 'InstallPath' in line:
- dxsdk_dir = line.split(' ')[3] + "\\"
-
- # Cache return value
- _FindDirectXInstallation.dxsdk_dir = dxsdk_dir
- return dxsdk_dir
-
-
-def GetGlobalVSMacroEnv(vs_version):
- """Get a dict of variables mapping internal VS macro names to their gyp
- equivalents. Returns all variables that are independent of the target."""
- env = {}
- # '$(VSInstallDir)' and '$(VCInstallDir)' are available when and only when
- # Visual Studio is actually installed.
- if vs_version.Path():
- env['$(VSInstallDir)'] = vs_version.Path()
- env['$(VCInstallDir)'] = os.path.join(vs_version.Path(), 'VC') + '\\'
- # Chromium uses DXSDK_DIR in include/lib paths, but it may or may not be
- # set. This happens when the SDK is sync'd via src-internal, rather than
- # by typical end-user installation of the SDK. If it's not set, we don't
- # want to leave the unexpanded variable in the path, so simply strip it.
- dxsdk_dir = _FindDirectXInstallation()
- env['$(DXSDK_DIR)'] = dxsdk_dir if dxsdk_dir else ''
- # Try to find an installation location for the Windows DDK by checking
- # the WDK_DIR environment variable, may be None.
- env['$(WDK_DIR)'] = os.environ.get('WDK_DIR', '')
- return env
-
-def ExtractSharedMSVSSystemIncludes(configs, generator_flags):
- """Finds msvs_system_include_dirs that are common to all targets, removes
- them from all targets, and returns an OrderedSet containing them."""
- all_system_includes = OrderedSet(
- configs[0].get('msvs_system_include_dirs', []))
- for config in configs[1:]:
- system_includes = config.get('msvs_system_include_dirs', [])
- all_system_includes = all_system_includes & OrderedSet(system_includes)
- if not all_system_includes:
- return None
- # Expand macros in all_system_includes.
- env = GetGlobalVSMacroEnv(GetVSVersion(generator_flags))
- expanded_system_includes = OrderedSet([ExpandMacros(include, env)
- for include in all_system_includes])
- if any(['$' in include for include in expanded_system_includes]):
- # Some path relies on target-specific variables, bail.
- return None
-
- # Remove system includes shared by all targets from the targets.
- for config in configs:
- includes = config.get('msvs_system_include_dirs', [])
- if includes: # Don't insert a msvs_system_include_dirs key if not needed.
- # This must check the unexpanded includes list:
- new_includes = [i for i in includes if i not in all_system_includes]
- config['msvs_system_include_dirs'] = new_includes
- return expanded_system_includes
-
-
-class MsvsSettings(object):
- """A class that understands the gyp 'msvs_...' values (especially the
- msvs_settings field). They largely correpond to the VS2008 IDE DOM. This
- class helps map those settings to command line options."""
-
- def __init__(self, spec, generator_flags):
- self.spec = spec
- self.vs_version = GetVSVersion(generator_flags)
-
- supported_fields = [
- ('msvs_configuration_attributes', dict),
- ('msvs_settings', dict),
- ('msvs_system_include_dirs', list),
- ('msvs_disabled_warnings', list),
- ('msvs_precompiled_header', str),
- ('msvs_precompiled_source', str),
- ('msvs_configuration_platform', str),
- ('msvs_target_platform', str),
- ]
- configs = spec['configurations']
- for field, default in supported_fields:
- setattr(self, field, {})
- for configname, config in configs.iteritems():
- getattr(self, field)[configname] = config.get(field, default())
-
- self.msvs_cygwin_dirs = spec.get('msvs_cygwin_dirs', ['.'])
-
- unsupported_fields = [
- 'msvs_prebuild',
- 'msvs_postbuild',
- ]
- unsupported = []
- for field in unsupported_fields:
- for config in configs.values():
- if field in config:
- unsupported += ["%s not supported (target %s)." %
- (field, spec['target_name'])]
- if unsupported:
- raise Exception('\n'.join(unsupported))
-
- def GetExtension(self):
- """Returns the extension for the target, with no leading dot.
-
- Uses 'product_extension' if specified, otherwise uses MSVS defaults based on
- the target type.
- """
- ext = self.spec.get('product_extension', None)
- if ext:
- return ext
- return gyp.MSVSUtil.TARGET_TYPE_EXT.get(self.spec['type'], '')
-
- def GetVSMacroEnv(self, base_to_build=None, config=None):
- """Get a dict of variables mapping internal VS macro names to their gyp
- equivalents."""
- target_platform = 'Win32' if self.GetArch(config) == 'x86' else 'x64'
- target_name = self.spec.get('product_prefix', '') + \
- self.spec.get('product_name', self.spec['target_name'])
- target_dir = base_to_build + '\\' if base_to_build else ''
- target_ext = '.' + self.GetExtension()
- target_file_name = target_name + target_ext
-
- replacements = {
- '$(InputName)': '${root}',
- '$(InputPath)': '${source}',
- '$(IntDir)': '$!INTERMEDIATE_DIR',
- '$(OutDir)\\': target_dir,
- '$(PlatformName)': target_platform,
- '$(ProjectDir)\\': '',
- '$(ProjectName)': self.spec['target_name'],
- '$(TargetDir)\\': target_dir,
- '$(TargetExt)': target_ext,
- '$(TargetFileName)': target_file_name,
- '$(TargetName)': target_name,
- '$(TargetPath)': os.path.join(target_dir, target_file_name),
- }
- replacements.update(GetGlobalVSMacroEnv(self.vs_version))
- return replacements
-
- def ConvertVSMacros(self, s, base_to_build=None, config=None):
- """Convert from VS macro names to something equivalent."""
- env = self.GetVSMacroEnv(base_to_build, config=config)
- return ExpandMacros(s, env)
-
- def AdjustLibraries(self, libraries):
- """Strip -l from library if it's specified with that."""
- libs = [lib[2:] if lib.startswith('-l') else lib for lib in libraries]
- return [lib + '.lib' if not lib.endswith('.lib') else lib for lib in libs]
-
- def _GetAndMunge(self, field, path, default, prefix, append, map):
- """Retrieve a value from |field| at |path| or return |default|. If
- |append| is specified, and the item is found, it will be appended to that
- object instead of returned. If |map| is specified, results will be
- remapped through |map| before being returned or appended."""
- result = _GenericRetrieve(field, default, path)
- result = _DoRemapping(result, map)
- result = _AddPrefix(result, prefix)
- return _AppendOrReturn(append, result)
-
- class _GetWrapper(object):
- def __init__(self, parent, field, base_path, append=None):
- self.parent = parent
- self.field = field
- self.base_path = [base_path]
- self.append = append
- def __call__(self, name, map=None, prefix='', default=None):
- return self.parent._GetAndMunge(self.field, self.base_path + [name],
- default=default, prefix=prefix, append=self.append, map=map)
-
- def GetArch(self, config):
- """Get architecture based on msvs_configuration_platform and
- msvs_target_platform. Returns either 'x86' or 'x64'."""
- configuration_platform = self.msvs_configuration_platform.get(config, '')
- platform = self.msvs_target_platform.get(config, '')
- if not platform: # If no specific override, use the configuration's.
- platform = configuration_platform
- # Map from platform to architecture.
- return {'Win32': 'x86', 'x64': 'x64'}.get(platform, 'x86')
-
- def _TargetConfig(self, config):
- """Returns the target-specific configuration."""
- # There's two levels of architecture/platform specification in VS. The
- # first level is globally for the configuration (this is what we consider
- # "the" config at the gyp level, which will be something like 'Debug' or
- # 'Release_x64'), and a second target-specific configuration, which is an
- # override for the global one. |config| is remapped here to take into
- # account the local target-specific overrides to the global configuration.
- arch = self.GetArch(config)
- if arch == 'x64' and not config.endswith('_x64'):
- config += '_x64'
- if arch == 'x86' and config.endswith('_x64'):
- config = config.rsplit('_', 1)[0]
- return config
-
- def _Setting(self, path, config,
- default=None, prefix='', append=None, map=None):
- """_GetAndMunge for msvs_settings."""
- return self._GetAndMunge(
- self.msvs_settings[config], path, default, prefix, append, map)
-
- def _ConfigAttrib(self, path, config,
- default=None, prefix='', append=None, map=None):
- """_GetAndMunge for msvs_configuration_attributes."""
- return self._GetAndMunge(
- self.msvs_configuration_attributes[config],
- path, default, prefix, append, map)
-
- def AdjustIncludeDirs(self, include_dirs, config):
- """Updates include_dirs to expand VS specific paths, and adds the system
- include dirs used for platform SDK and similar."""
- config = self._TargetConfig(config)
- includes = include_dirs + self.msvs_system_include_dirs[config]
- includes.extend(self._Setting(
- ('VCCLCompilerTool', 'AdditionalIncludeDirectories'), config, default=[]))
- return [self.ConvertVSMacros(p, config=config) for p in includes]
-
- def AdjustMidlIncludeDirs(self, midl_include_dirs, config):
- """Updates midl_include_dirs to expand VS specific paths, and adds the
- system include dirs used for platform SDK and similar."""
- config = self._TargetConfig(config)
- includes = midl_include_dirs + self.msvs_system_include_dirs[config]
- includes.extend(self._Setting(
- ('VCMIDLTool', 'AdditionalIncludeDirectories'), config, default=[]))
- return [self.ConvertVSMacros(p, config=config) for p in includes]
-
- def GetComputedDefines(self, config):
- """Returns the set of defines that are injected to the defines list based
- on other VS settings."""
- config = self._TargetConfig(config)
- defines = []
- if self._ConfigAttrib(['CharacterSet'], config) == '1':
- defines.extend(('_UNICODE', 'UNICODE'))
- if self._ConfigAttrib(['CharacterSet'], config) == '2':
- defines.append('_MBCS')
- defines.extend(self._Setting(
- ('VCCLCompilerTool', 'PreprocessorDefinitions'), config, default=[]))
- return defines
-
- def GetCompilerPdbName(self, config, expand_special):
- """Get the pdb file name that should be used for compiler invocations, or
- None if there's no explicit name specified."""
- config = self._TargetConfig(config)
- pdbname = self._Setting(
- ('VCCLCompilerTool', 'ProgramDataBaseFileName'), config)
- if pdbname:
- pdbname = expand_special(self.ConvertVSMacros(pdbname))
- return pdbname
-
- def GetMapFileName(self, config, expand_special):
- """Gets the explicitly overriden map file name for a target or returns None
- if it's not set."""
- config = self._TargetConfig(config)
- map_file = self._Setting(('VCLinkerTool', 'MapFileName'), config)
- if map_file:
- map_file = expand_special(self.ConvertVSMacros(map_file, config=config))
- return map_file
-
- def GetOutputName(self, config, expand_special):
- """Gets the explicitly overridden output name for a target or returns None
- if it's not overridden."""
- config = self._TargetConfig(config)
- type = self.spec['type']
- root = 'VCLibrarianTool' if type == 'static_library' else 'VCLinkerTool'
- # TODO(scottmg): Handle OutputDirectory without OutputFile.
- output_file = self._Setting((root, 'OutputFile'), config)
- if output_file:
- output_file = expand_special(self.ConvertVSMacros(
- output_file, config=config))
- return output_file
-
- def GetPDBName(self, config, expand_special, default):
- """Gets the explicitly overridden pdb name for a target or returns
- default if it's not overridden, or if no pdb will be generated."""
- config = self._TargetConfig(config)
- output_file = self._Setting(('VCLinkerTool', 'ProgramDatabaseFile'), config)
- generate_debug_info = self._Setting(
- ('VCLinkerTool', 'GenerateDebugInformation'), config)
- if generate_debug_info == 'true':
- if output_file:
- return expand_special(self.ConvertVSMacros(output_file, config=config))
- else:
- return default
- else:
- return None
-
- def GetNoImportLibrary(self, config):
- """If NoImportLibrary: true, ninja will not expect the output to include
- an import library."""
- config = self._TargetConfig(config)
- noimplib = self._Setting(('NoImportLibrary',), config)
- return noimplib == 'true'
-
- def GetAsmflags(self, config):
- """Returns the flags that need to be added to ml invocations."""
- config = self._TargetConfig(config)
- asmflags = []
- safeseh = self._Setting(('MASM', 'UseSafeExceptionHandlers'), config)
- if safeseh == 'true':
- asmflags.append('/safeseh')
- return asmflags
-
- def GetCflags(self, config):
- """Returns the flags that need to be added to .c and .cc compilations."""
- config = self._TargetConfig(config)
- cflags = []
- cflags.extend(['/wd' + w for w in self.msvs_disabled_warnings[config]])
- cl = self._GetWrapper(self, self.msvs_settings[config],
- 'VCCLCompilerTool', append=cflags)
- cl('Optimization',
- map={'0': 'd', '1': '1', '2': '2', '3': 'x'}, prefix='/O', default='2')
- cl('InlineFunctionExpansion', prefix='/Ob')
- cl('DisableSpecificWarnings', prefix='/wd')
- cl('StringPooling', map={'true': '/GF'})
- cl('EnableFiberSafeOptimizations', map={'true': '/GT'})
- cl('OmitFramePointers', map={'false': '-', 'true': ''}, prefix='/Oy')
- cl('EnableIntrinsicFunctions', map={'false': '-', 'true': ''}, prefix='/Oi')
- cl('FavorSizeOrSpeed', map={'1': 't', '2': 's'}, prefix='/O')
- cl('FloatingPointModel',
- map={'0': 'precise', '1': 'strict', '2': 'fast'}, prefix='/fp:',
- default='0')
- cl('CompileAsManaged', map={'false': '', 'true': '/clr'})
- cl('WholeProgramOptimization', map={'true': '/GL'})
- cl('WarningLevel', prefix='/W')
- cl('WarnAsError', map={'true': '/WX'})
- cl('CallingConvention',
- map={'0': 'd', '1': 'r', '2': 'z', '3': 'v'}, prefix='/G')
- cl('DebugInformationFormat',
- map={'1': '7', '3': 'i', '4': 'I'}, prefix='/Z')
- cl('RuntimeTypeInfo', map={'true': '/GR', 'false': '/GR-'})
- cl('EnableFunctionLevelLinking', map={'true': '/Gy', 'false': '/Gy-'})
- cl('MinimalRebuild', map={'true': '/Gm'})
- cl('BufferSecurityCheck', map={'true': '/GS', 'false': '/GS-'})
- cl('BasicRuntimeChecks', map={'1': 's', '2': 'u', '3': '1'}, prefix='/RTC')
- cl('RuntimeLibrary',
- map={'0': 'T', '1': 'Td', '2': 'D', '3': 'Dd'}, prefix='/M')
- cl('ExceptionHandling', map={'1': 'sc','2': 'a'}, prefix='/EH')
- cl('DefaultCharIsUnsigned', map={'true': '/J'})
- cl('TreatWChar_tAsBuiltInType',
- map={'false': '-', 'true': ''}, prefix='/Zc:wchar_t')
- cl('EnablePREfast', map={'true': '/analyze'})
- cl('AdditionalOptions', prefix='')
- cl('EnableEnhancedInstructionSet',
- map={'1': 'SSE', '2': 'SSE2', '3': 'AVX', '4': 'IA32', '5': 'AVX2'},
- prefix='/arch:')
- cflags.extend(['/FI' + f for f in self._Setting(
- ('VCCLCompilerTool', 'ForcedIncludeFiles'), config, default=[])])
- if self.vs_version.short_name in ('2013', '2013e', '2015'):
- # New flag required in 2013 to maintain previous PDB behavior.
- cflags.append('/FS')
- # ninja handles parallelism by itself, don't have the compiler do it too.
- cflags = filter(lambda x: not x.startswith('/MP'), cflags)
- return cflags
-
- def _GetPchFlags(self, config, extension):
- """Get the flags to be added to the cflags for precompiled header support.
- """
- config = self._TargetConfig(config)
- # The PCH is only built once by a particular source file. Usage of PCH must
- # only be for the same language (i.e. C vs. C++), so only include the pch
- # flags when the language matches.
- if self.msvs_precompiled_header[config]:
- source_ext = os.path.splitext(self.msvs_precompiled_source[config])[1]
- if _LanguageMatchesForPch(source_ext, extension):
- pch = os.path.split(self.msvs_precompiled_header[config])[1]
- return ['/Yu' + pch, '/FI' + pch, '/Fp${pchprefix}.' + pch + '.pch']
- return []
-
- def GetCflagsC(self, config):
- """Returns the flags that need to be added to .c compilations."""
- config = self._TargetConfig(config)
- return self._GetPchFlags(config, '.c')
-
- def GetCflagsCC(self, config):
- """Returns the flags that need to be added to .cc compilations."""
- config = self._TargetConfig(config)
- return ['/TP'] + self._GetPchFlags(config, '.cc')
-
- def _GetAdditionalLibraryDirectories(self, root, config, gyp_to_build_path):
- """Get and normalize the list of paths in AdditionalLibraryDirectories
- setting."""
- config = self._TargetConfig(config)
- libpaths = self._Setting((root, 'AdditionalLibraryDirectories'),
- config, default=[])
- libpaths = [os.path.normpath(
- gyp_to_build_path(self.ConvertVSMacros(p, config=config)))
- for p in libpaths]
- return ['/LIBPATH:"' + p + '"' for p in libpaths]
-
- def GetLibFlags(self, config, gyp_to_build_path):
- """Returns the flags that need to be added to lib commands."""
- config = self._TargetConfig(config)
- libflags = []
- lib = self._GetWrapper(self, self.msvs_settings[config],
- 'VCLibrarianTool', append=libflags)
- libflags.extend(self._GetAdditionalLibraryDirectories(
- 'VCLibrarianTool', config, gyp_to_build_path))
- lib('LinkTimeCodeGeneration', map={'true': '/LTCG'})
- lib('TargetMachine', map={'1': 'X86', '17': 'X64', '3': 'ARM'},
- prefix='/MACHINE:')
- lib('AdditionalOptions')
- return libflags
-
- def GetDefFile(self, gyp_to_build_path):
- """Returns the .def file from sources, if any. Otherwise returns None."""
- spec = self.spec
- if spec['type'] in ('shared_library', 'loadable_module', 'executable'):
- def_files = [s for s in spec.get('sources', []) if s.endswith('.def')]
- if len(def_files) == 1:
- return gyp_to_build_path(def_files[0])
- elif len(def_files) > 1:
- raise Exception("Multiple .def files")
- return None
-
- def _GetDefFileAsLdflags(self, ldflags, gyp_to_build_path):
- """.def files get implicitly converted to a ModuleDefinitionFile for the
- linker in the VS generator. Emulate that behaviour here."""
- def_file = self.GetDefFile(gyp_to_build_path)
- if def_file:
- ldflags.append('/DEF:"%s"' % def_file)
-
- def GetPGDName(self, config, expand_special):
- """Gets the explicitly overridden pgd name for a target or returns None
- if it's not overridden."""
- config = self._TargetConfig(config)
- output_file = self._Setting(
- ('VCLinkerTool', 'ProfileGuidedDatabase'), config)
- if output_file:
- output_file = expand_special(self.ConvertVSMacros(
- output_file, config=config))
- return output_file
-
- def GetLdflags(self, config, gyp_to_build_path, expand_special,
- manifest_base_name, output_name, is_executable, build_dir):
- """Returns the flags that need to be added to link commands, and the
- manifest files."""
- config = self._TargetConfig(config)
- ldflags = []
- ld = self._GetWrapper(self, self.msvs_settings[config],
- 'VCLinkerTool', append=ldflags)
- self._GetDefFileAsLdflags(ldflags, gyp_to_build_path)
- ld('GenerateDebugInformation', map={'true': '/DEBUG'})
- ld('TargetMachine', map={'1': 'X86', '17': 'X64', '3': 'ARM'},
- prefix='/MACHINE:')
- ldflags.extend(self._GetAdditionalLibraryDirectories(
- 'VCLinkerTool', config, gyp_to_build_path))
- ld('DelayLoadDLLs', prefix='/DELAYLOAD:')
- ld('TreatLinkerWarningAsErrors', prefix='/WX',
- map={'true': '', 'false': ':NO'})
- out = self.GetOutputName(config, expand_special)
- if out:
- ldflags.append('/OUT:' + out)
- pdb = self.GetPDBName(config, expand_special, output_name + '.pdb')
- if pdb:
- ldflags.append('/PDB:' + pdb)
- pgd = self.GetPGDName(config, expand_special)
- if pgd:
- ldflags.append('/PGD:' + pgd)
- map_file = self.GetMapFileName(config, expand_special)
- ld('GenerateMapFile', map={'true': '/MAP:' + map_file if map_file
- else '/MAP'})
- ld('MapExports', map={'true': '/MAPINFO:EXPORTS'})
- ld('AdditionalOptions', prefix='')
-
- minimum_required_version = self._Setting(
- ('VCLinkerTool', 'MinimumRequiredVersion'), config, default='')
- if minimum_required_version:
- minimum_required_version = ',' + minimum_required_version
- ld('SubSystem',
- map={'1': 'CONSOLE%s' % minimum_required_version,
- '2': 'WINDOWS%s' % minimum_required_version},
- prefix='/SUBSYSTEM:')
-
- stack_reserve_size = self._Setting(
- ('VCLinkerTool', 'StackReserveSize'), config, default='')
- if stack_reserve_size:
- stack_commit_size = self._Setting(
- ('VCLinkerTool', 'StackCommitSize'), config, default='')
- if stack_commit_size:
- stack_commit_size = ',' + stack_commit_size
- ldflags.append('/STACK:%s%s' % (stack_reserve_size, stack_commit_size))
-
- ld('TerminalServerAware', map={'1': ':NO', '2': ''}, prefix='/TSAWARE')
- ld('LinkIncremental', map={'1': ':NO', '2': ''}, prefix='/INCREMENTAL')
- ld('BaseAddress', prefix='/BASE:')
- ld('FixedBaseAddress', map={'1': ':NO', '2': ''}, prefix='/FIXED')
- ld('RandomizedBaseAddress',
- map={'1': ':NO', '2': ''}, prefix='/DYNAMICBASE')
- ld('DataExecutionPrevention',
- map={'1': ':NO', '2': ''}, prefix='/NXCOMPAT')
- ld('OptimizeReferences', map={'1': 'NOREF', '2': 'REF'}, prefix='/OPT:')
- ld('ForceSymbolReferences', prefix='/INCLUDE:')
- ld('EnableCOMDATFolding', map={'1': 'NOICF', '2': 'ICF'}, prefix='/OPT:')
- ld('LinkTimeCodeGeneration',
- map={'1': '', '2': ':PGINSTRUMENT', '3': ':PGOPTIMIZE',
- '4': ':PGUPDATE'},
- prefix='/LTCG')
- ld('IgnoreDefaultLibraryNames', prefix='/NODEFAULTLIB:')
- ld('ResourceOnlyDLL', map={'true': '/NOENTRY'})
- ld('EntryPointSymbol', prefix='/ENTRY:')
- ld('Profile', map={'true': '/PROFILE'})
- ld('LargeAddressAware',
- map={'1': ':NO', '2': ''}, prefix='/LARGEADDRESSAWARE')
- # TODO(scottmg): This should sort of be somewhere else (not really a flag).
- ld('AdditionalDependencies', prefix='')
-
- if self.GetArch(config) == 'x86':
- safeseh_default = 'true'
- else:
- safeseh_default = None
- ld('ImageHasSafeExceptionHandlers',
- map={'false': ':NO', 'true': ''}, prefix='/SAFESEH',
- default=safeseh_default)
-
- # If the base address is not specifically controlled, DYNAMICBASE should
- # be on by default.
- base_flags = filter(lambda x: 'DYNAMICBASE' in x or x == '/FIXED',
- ldflags)
- if not base_flags:
- ldflags.append('/DYNAMICBASE')
-
- # If the NXCOMPAT flag has not been specified, default to on. Despite the
- # documentation that says this only defaults to on when the subsystem is
- # Vista or greater (which applies to the linker), the IDE defaults it on
- # unless it's explicitly off.
- if not filter(lambda x: 'NXCOMPAT' in x, ldflags):
- ldflags.append('/NXCOMPAT')
-
- have_def_file = filter(lambda x: x.startswith('/DEF:'), ldflags)
- manifest_flags, intermediate_manifest, manifest_files = \
- self._GetLdManifestFlags(config, manifest_base_name, gyp_to_build_path,
- is_executable and not have_def_file, build_dir)
- ldflags.extend(manifest_flags)
- return ldflags, intermediate_manifest, manifest_files
-
- def _GetLdManifestFlags(self, config, name, gyp_to_build_path,
- allow_isolation, build_dir):
- """Returns a 3-tuple:
- - the set of flags that need to be added to the link to generate
- a default manifest
- - the intermediate manifest that the linker will generate that should be
- used to assert it doesn't add anything to the merged one.
- - the list of all the manifest files to be merged by the manifest tool and
- included into the link."""
- generate_manifest = self._Setting(('VCLinkerTool', 'GenerateManifest'),
- config,
- default='true')
- if generate_manifest != 'true':
- # This means not only that the linker should not generate the intermediate
- # manifest but also that the manifest tool should do nothing even when
- # additional manifests are specified.
- return ['/MANIFEST:NO'], [], []
-
- output_name = name + '.intermediate.manifest'
- flags = [
- '/MANIFEST',
- '/ManifestFile:' + output_name,
- ]
-
- # Instead of using the MANIFESTUAC flags, we generate a .manifest to
- # include into the list of manifests. This allows us to avoid the need to
- # do two passes during linking. The /MANIFEST flag and /ManifestFile are
- # still used, and the intermediate manifest is used to assert that the
- # final manifest we get from merging all the additional manifest files
- # (plus the one we generate here) isn't modified by merging the
- # intermediate into it.
-
- # Always NO, because we generate a manifest file that has what we want.
- flags.append('/MANIFESTUAC:NO')
-
- config = self._TargetConfig(config)
- enable_uac = self._Setting(('VCLinkerTool', 'EnableUAC'), config,
- default='true')
- manifest_files = []
- generated_manifest_outer = \
-"<?xml version='1.0' encoding='UTF-8' standalone='yes'?>" \
-"<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>%s" \
-"</assembly>"
- if enable_uac == 'true':
- execution_level = self._Setting(('VCLinkerTool', 'UACExecutionLevel'),
- config, default='0')
- execution_level_map = {
- '0': 'asInvoker',
- '1': 'highestAvailable',
- '2': 'requireAdministrator'
- }
-
- ui_access = self._Setting(('VCLinkerTool', 'UACUIAccess'), config,
- default='false')
-
- inner = '''
-<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
- <security>
- <requestedPrivileges>
- <requestedExecutionLevel level='%s' uiAccess='%s' />
- </requestedPrivileges>
- </security>
-</trustInfo>''' % (execution_level_map[execution_level], ui_access)
- else:
- inner = ''
-
- generated_manifest_contents = generated_manifest_outer % inner
- generated_name = name + '.generated.manifest'
- # Need to join with the build_dir here as we're writing it during
- # generation time, but we return the un-joined version because the build
- # will occur in that directory. We only write the file if the contents
- # have changed so that simply regenerating the project files doesn't
- # cause a relink.
- build_dir_generated_name = os.path.join(build_dir, generated_name)
- gyp.common.EnsureDirExists(build_dir_generated_name)
- f = gyp.common.WriteOnDiff(build_dir_generated_name)
- f.write(generated_manifest_contents)
- f.close()
- manifest_files = [generated_name]
-
- if allow_isolation:
- flags.append('/ALLOWISOLATION')
-
- manifest_files += self._GetAdditionalManifestFiles(config,
- gyp_to_build_path)
- return flags, output_name, manifest_files
-
- def _GetAdditionalManifestFiles(self, config, gyp_to_build_path):
- """Gets additional manifest files that are added to the default one
- generated by the linker."""
- files = self._Setting(('VCManifestTool', 'AdditionalManifestFiles'), config,
- default=[])
- if isinstance(files, str):
- files = files.split(';')
- return [os.path.normpath(
- gyp_to_build_path(self.ConvertVSMacros(f, config=config)))
- for f in files]
-
- def IsUseLibraryDependencyInputs(self, config):
- """Returns whether the target should be linked via Use Library Dependency
- Inputs (using component .objs of a given .lib)."""
- config = self._TargetConfig(config)
- uldi = self._Setting(('VCLinkerTool', 'UseLibraryDependencyInputs'), config)
- return uldi == 'true'
-
- def IsEmbedManifest(self, config):
- """Returns whether manifest should be linked into binary."""
- config = self._TargetConfig(config)
- embed = self._Setting(('VCManifestTool', 'EmbedManifest'), config,
- default='true')
- return embed == 'true'
-
- def IsLinkIncremental(self, config):
- """Returns whether the target should be linked incrementally."""
- config = self._TargetConfig(config)
- link_inc = self._Setting(('VCLinkerTool', 'LinkIncremental'), config)
- return link_inc != '1'
-
- def GetRcflags(self, config, gyp_to_ninja_path):
- """Returns the flags that need to be added to invocations of the resource
- compiler."""
- config = self._TargetConfig(config)
- rcflags = []
- rc = self._GetWrapper(self, self.msvs_settings[config],
- 'VCResourceCompilerTool', append=rcflags)
- rc('AdditionalIncludeDirectories', map=gyp_to_ninja_path, prefix='/I')
- rcflags.append('/I' + gyp_to_ninja_path('.'))
- rc('PreprocessorDefinitions', prefix='/d')
- # /l arg must be in hex without leading '0x'
- rc('Culture', prefix='/l', map=lambda x: hex(int(x))[2:])
- return rcflags
-
- def BuildCygwinBashCommandLine(self, args, path_to_base):
- """Build a command line that runs args via cygwin bash. We assume that all
- incoming paths are in Windows normpath'd form, so they need to be
- converted to posix style for the part of the command line that's passed to
- bash. We also have to do some Visual Studio macro emulation here because
- various rules use magic VS names for things. Also note that rules that
- contain ninja variables cannot be fixed here (for example ${source}), so
- the outer generator needs to make sure that the paths that are written out
- are in posix style, if the command line will be used here."""
- cygwin_dir = os.path.normpath(
- os.path.join(path_to_base, self.msvs_cygwin_dirs[0]))
- cd = ('cd %s' % path_to_base).replace('\\', '/')
- args = [a.replace('\\', '/').replace('"', '\\"') for a in args]
- args = ["'%s'" % a.replace("'", "'\\''") for a in args]
- bash_cmd = ' '.join(args)
- cmd = (
- 'call "%s\\setup_env.bat" && set CYGWIN=nontsec && ' % cygwin_dir +
- 'bash -c "%s ; %s"' % (cd, bash_cmd))
- return cmd
-
- def IsRuleRunUnderCygwin(self, rule):
- """Determine if an action should be run under cygwin. If the variable is
- unset, or set to 1 we use cygwin."""
- return int(rule.get('msvs_cygwin_shell',
- self.spec.get('msvs_cygwin_shell', 1))) != 0
-
- def _HasExplicitRuleForExtension(self, spec, extension):
- """Determine if there's an explicit rule for a particular extension."""
- for rule in spec.get('rules', []):
- if rule['extension'] == extension:
- return True
- return False
-
- def _HasExplicitIdlActions(self, spec):
- """Determine if an action should not run midl for .idl files."""
- return any([action.get('explicit_idl_action', 0)
- for action in spec.get('actions', [])])
-
- def HasExplicitIdlRulesOrActions(self, spec):
- """Determine if there's an explicit rule or action for idl files. When
- there isn't we need to generate implicit rules to build MIDL .idl files."""
- return (self._HasExplicitRuleForExtension(spec, 'idl') or
- self._HasExplicitIdlActions(spec))
-
- def HasExplicitAsmRules(self, spec):
- """Determine if there's an explicit rule for asm files. When there isn't we
- need to generate implicit rules to assemble .asm files."""
- return self._HasExplicitRuleForExtension(spec, 'asm')
-
- def GetIdlBuildData(self, source, config):
- """Determine the implicit outputs for an idl file. Returns output
- directory, outputs, and variables and flags that are required."""
- config = self._TargetConfig(config)
- midl_get = self._GetWrapper(self, self.msvs_settings[config], 'VCMIDLTool')
- def midl(name, default=None):
- return self.ConvertVSMacros(midl_get(name, default=default),
- config=config)
- tlb = midl('TypeLibraryName', default='${root}.tlb')
- header = midl('HeaderFileName', default='${root}.h')
- dlldata = midl('DLLDataFileName', default='dlldata.c')
- iid = midl('InterfaceIdentifierFileName', default='${root}_i.c')
- proxy = midl('ProxyFileName', default='${root}_p.c')
- # Note that .tlb is not included in the outputs as it is not always
- # generated depending on the content of the input idl file.
- outdir = midl('OutputDirectory', default='')
- output = [header, dlldata, iid, proxy]
- variables = [('tlb', tlb),
- ('h', header),
- ('dlldata', dlldata),
- ('iid', iid),
- ('proxy', proxy)]
- # TODO(scottmg): Are there configuration settings to set these flags?
- target_platform = 'win32' if self.GetArch(config) == 'x86' else 'x64'
- flags = ['/char', 'signed', '/env', target_platform, '/Oicf']
- return outdir, output, variables, flags
-
-
-def _LanguageMatchesForPch(source_ext, pch_source_ext):
- c_exts = ('.c',)
- cc_exts = ('.cc', '.cxx', '.cpp')
- return ((source_ext in c_exts and pch_source_ext in c_exts) or
- (source_ext in cc_exts and pch_source_ext in cc_exts))
-
-
-class PrecompiledHeader(object):
- """Helper to generate dependencies and build rules to handle generation of
- precompiled headers. Interface matches the GCH handler in xcode_emulation.py.
- """
- def __init__(
- self, settings, config, gyp_to_build_path, gyp_to_unique_output, obj_ext):
- self.settings = settings
- self.config = config
- pch_source = self.settings.msvs_precompiled_source[self.config]
- self.pch_source = gyp_to_build_path(pch_source)
- filename, _ = os.path.splitext(pch_source)
- self.output_obj = gyp_to_unique_output(filename + obj_ext).lower()
-
- def _PchHeader(self):
- """Get the header that will appear in an #include line for all source
- files."""
- return os.path.split(self.settings.msvs_precompiled_header[self.config])[1]
-
- def GetObjDependencies(self, sources, objs, arch):
- """Given a list of sources files and the corresponding object files,
- returns a list of the pch files that should be depended upon. The
- additional wrapping in the return value is for interface compatibility
- with make.py on Mac, and xcode_emulation.py."""
- assert arch is None
- if not self._PchHeader():
- return []
- pch_ext = os.path.splitext(self.pch_source)[1]
- for source in sources:
- if _LanguageMatchesForPch(os.path.splitext(source)[1], pch_ext):
- return [(None, None, self.output_obj)]
- return []
-
- def GetPchBuildCommands(self, arch):
- """Not used on Windows as there are no additional build steps required
- (instead, existing steps are modified in GetFlagsModifications below)."""
- return []
-
- def GetFlagsModifications(self, input, output, implicit, command,
- cflags_c, cflags_cc, expand_special):
- """Get the modified cflags and implicit dependencies that should be used
- for the pch compilation step."""
- if input == self.pch_source:
- pch_output = ['/Yc' + self._PchHeader()]
- if command == 'cxx':
- return ([('cflags_cc', map(expand_special, cflags_cc + pch_output))],
- self.output_obj, [])
- elif command == 'cc':
- return ([('cflags_c', map(expand_special, cflags_c + pch_output))],
- self.output_obj, [])
- return [], output, implicit
-
-
-vs_version = None
-def GetVSVersion(generator_flags):
- global vs_version
- if not vs_version:
- vs_version = gyp.MSVSVersion.SelectVisualStudioVersion(
- generator_flags.get('msvs_version', 'auto'),
- allow_fallback=False)
- return vs_version
-
-def _GetVsvarsSetupArgs(generator_flags, arch):
- vs = GetVSVersion(generator_flags)
- return vs.SetupScript()
-
-def ExpandMacros(string, expansions):
- """Expand $(Variable) per expansions dict. See MsvsSettings.GetVSMacroEnv
- for the canonical way to retrieve a suitable dict."""
- if '$' in string:
- for old, new in expansions.iteritems():
- assert '$(' not in new, new
- string = string.replace(old, new)
- return string
-
-def _ExtractImportantEnvironment(output_of_set):
- """Extracts environment variables required for the toolchain to run from
- a textual dump output by the cmd.exe 'set' command."""
- envvars_to_save = (
- 'goma_.*', # TODO(scottmg): This is ugly, but needed for goma.
- 'include',
- 'lib',
- 'libpath',
- 'path',
- 'pathext',
- 'systemroot',
- 'temp',
- 'tmp',
- )
- env = {}
- for line in output_of_set.splitlines():
- for envvar in envvars_to_save:
- if re.match(envvar + '=', line.lower()):
- var, setting = line.split('=', 1)
- if envvar == 'path':
- # Our own rules (for running gyp-win-tool) and other actions in
- # Chromium rely on python being in the path. Add the path to this
- # python here so that if it's not in the path when ninja is run
- # later, python will still be found.
- setting = os.path.dirname(sys.executable) + os.pathsep + setting
- env[var.upper()] = setting
- break
- for required in ('SYSTEMROOT', 'TEMP', 'TMP'):
- if required not in env:
- raise Exception('Environment variable "%s" '
- 'required to be set to valid path' % required)
- return env
-
-def _FormatAsEnvironmentBlock(envvar_dict):
- """Format as an 'environment block' directly suitable for CreateProcess.
- Briefly this is a list of key=value\0, terminated by an additional \0. See
- CreateProcess documentation for more details."""
- block = ''
- nul = '\0'
- for key, value in envvar_dict.iteritems():
- block += key + '=' + value + nul
- block += nul
- return block
-
-def _ExtractCLPath(output_of_where):
- """Gets the path to cl.exe based on the output of calling the environment
- setup batch file, followed by the equivalent of `where`."""
- # Take the first line, as that's the first found in the PATH.
- for line in output_of_where.strip().splitlines():
- if line.startswith('LOC:'):
- return line[len('LOC:'):].strip()
-
-def GenerateEnvironmentFiles(toplevel_build_dir, generator_flags,
- system_includes, open_out):
- """It's not sufficient to have the absolute path to the compiler, linker,
- etc. on Windows, as those tools rely on .dlls being in the PATH. We also
- need to support both x86 and x64 compilers within the same build (to support
- msvs_target_platform hackery). Different architectures require a different
- compiler binary, and different supporting environment variables (INCLUDE,
- LIB, LIBPATH). So, we extract the environment here, wrap all invocations
- of compiler tools (cl, link, lib, rc, midl, etc.) via win_tool.py which
- sets up the environment, and then we do not prefix the compiler with
- an absolute path, instead preferring something like "cl.exe" in the rule
- which will then run whichever the environment setup has put in the path.
- When the following procedure to generate environment files does not
- meet your requirement (e.g. for custom toolchains), you can pass
- "-G ninja_use_custom_environment_files" to the gyp to suppress file
- generation and use custom environment files prepared by yourself."""
- archs = ('x86', 'x64')
- if generator_flags.get('ninja_use_custom_environment_files', 0):
- cl_paths = {}
- for arch in archs:
- cl_paths[arch] = 'cl.exe'
- return cl_paths
- vs = GetVSVersion(generator_flags)
- cl_paths = {}
- for arch in archs:
- # Extract environment variables for subprocesses.
- args = vs.SetupScript(arch)
- args.extend(('&&', 'set'))
- popen = subprocess.Popen(
- args, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- variables, _ = popen.communicate()
- env = _ExtractImportantEnvironment(variables)
-
- # Inject system includes from gyp files into INCLUDE.
- if system_includes:
- system_includes = system_includes | OrderedSet(
- env.get('INCLUDE', '').split(';'))
- env['INCLUDE'] = ';'.join(system_includes)
-
- env_block = _FormatAsEnvironmentBlock(env)
- f = open_out(os.path.join(toplevel_build_dir, 'environment.' + arch), 'wb')
- f.write(env_block)
- f.close()
-
- # Find cl.exe location for this architecture.
- args = vs.SetupScript(arch)
- args.extend(('&&',
- 'for', '%i', 'in', '(cl.exe)', 'do', '@echo', 'LOC:%~$PATH:i'))
- popen = subprocess.Popen(args, shell=True, stdout=subprocess.PIPE)
- output, _ = popen.communicate()
- cl_paths[arch] = _ExtractCLPath(output)
- return cl_paths
-
-def VerifyMissingSources(sources, build_dir, generator_flags, gyp_to_ninja):
- """Emulate behavior of msvs_error_on_missing_sources present in the msvs
- generator: Check that all regular source files, i.e. not created at run time,
- exist on disk. Missing files cause needless recompilation when building via
- VS, and we want this check to match for people/bots that build using ninja,
- so they're not surprised when the VS build fails."""
- if int(generator_flags.get('msvs_error_on_missing_sources', 0)):
- no_specials = filter(lambda x: '$' not in x, sources)
- relative = [os.path.join(build_dir, gyp_to_ninja(s)) for s in no_specials]
- missing = filter(lambda x: not os.path.exists(x), relative)
- if missing:
- # They'll look like out\Release\..\..\stuff\things.cc, so normalize the
- # path for a slightly less crazy looking output.
- cleaned_up = [os.path.normpath(x) for x in missing]
- raise Exception('Missing input files:\n%s' % '\n'.join(cleaned_up))
-
-# Sets some values in default_variables, which are required for many
-# generators, run on Windows.
-def CalculateCommonVariables(default_variables, params):
- generator_flags = params.get('generator_flags', {})
-
- # Set a variable so conditions can be based on msvs_version.
- msvs_version = gyp.msvs_emulation.GetVSVersion(generator_flags)
- default_variables['MSVS_VERSION'] = msvs_version.ShortName()
-
- # To determine processor word size on Windows, in addition to checking
- # PROCESSOR_ARCHITECTURE (which reflects the word size of the current
- # process), it is also necessary to check PROCESSOR_ARCHITEW6432 (which
- # contains the actual word size of the system when running thru WOW64).
- if ('64' in os.environ.get('PROCESSOR_ARCHITECTURE', '') or
- '64' in os.environ.get('PROCESSOR_ARCHITEW6432', '')):
- default_variables['MSVS_OS_BITS'] = 64
- else:
- default_variables['MSVS_OS_BITS'] = 32
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py b/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py
deleted file mode 100644
index d2948f0..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py
+++ /dev/null
@@ -1,160 +0,0 @@
-# This file comes from
-# https://github.com/martine/ninja/blob/master/misc/ninja_syntax.py
-# Do not edit! Edit the upstream one instead.
-
-"""Python module for generating .ninja files.
-
-Note that this is emphatically not a required piece of Ninja; it's
-just a helpful utility for build-file-generation systems that already
-use Python.
-"""
-
-import textwrap
-import re
-
-def escape_path(word):
- return word.replace('$ ','$$ ').replace(' ','$ ').replace(':', '$:')
-
-class Writer(object):
- def __init__(self, output, width=78):
- self.output = output
- self.width = width
-
- def newline(self):
- self.output.write('\n')
-
- def comment(self, text):
- for line in textwrap.wrap(text, self.width - 2):
- self.output.write('# ' + line + '\n')
-
- def variable(self, key, value, indent=0):
- if value is None:
- return
- if isinstance(value, list):
- value = ' '.join(filter(None, value)) # Filter out empty strings.
- self._line('%s = %s' % (key, value), indent)
-
- def pool(self, name, depth):
- self._line('pool %s' % name)
- self.variable('depth', depth, indent=1)
-
- def rule(self, name, command, description=None, depfile=None,
- generator=False, pool=None, restat=False, rspfile=None,
- rspfile_content=None, deps=None):
- self._line('rule %s' % name)
- self.variable('command', command, indent=1)
- if description:
- self.variable('description', description, indent=1)
- if depfile:
- self.variable('depfile', depfile, indent=1)
- if generator:
- self.variable('generator', '1', indent=1)
- if pool:
- self.variable('pool', pool, indent=1)
- if restat:
- self.variable('restat', '1', indent=1)
- if rspfile:
- self.variable('rspfile', rspfile, indent=1)
- if rspfile_content:
- self.variable('rspfile_content', rspfile_content, indent=1)
- if deps:
- self.variable('deps', deps, indent=1)
-
- def build(self, outputs, rule, inputs=None, implicit=None, order_only=None,
- variables=None):
- outputs = self._as_list(outputs)
- all_inputs = self._as_list(inputs)[:]
- out_outputs = list(map(escape_path, outputs))
- all_inputs = list(map(escape_path, all_inputs))
-
- if implicit:
- implicit = map(escape_path, self._as_list(implicit))
- all_inputs.append('|')
- all_inputs.extend(implicit)
- if order_only:
- order_only = map(escape_path, self._as_list(order_only))
- all_inputs.append('||')
- all_inputs.extend(order_only)
-
- self._line('build %s: %s' % (' '.join(out_outputs),
- ' '.join([rule] + all_inputs)))
-
- if variables:
- if isinstance(variables, dict):
- iterator = iter(variables.items())
- else:
- iterator = iter(variables)
-
- for key, val in iterator:
- self.variable(key, val, indent=1)
-
- return outputs
-
- def include(self, path):
- self._line('include %s' % path)
-
- def subninja(self, path):
- self._line('subninja %s' % path)
-
- def default(self, paths):
- self._line('default %s' % ' '.join(self._as_list(paths)))
-
- def _count_dollars_before_index(self, s, i):
- """Returns the number of '$' characters right in front of s[i]."""
- dollar_count = 0
- dollar_index = i - 1
- while dollar_index > 0 and s[dollar_index] == '$':
- dollar_count += 1
- dollar_index -= 1
- return dollar_count
-
- def _line(self, text, indent=0):
- """Write 'text' word-wrapped at self.width characters."""
- leading_space = ' ' * indent
- while len(leading_space) + len(text) > self.width:
- # The text is too wide; wrap if possible.
-
- # Find the rightmost space that would obey our width constraint and
- # that's not an escaped space.
- available_space = self.width - len(leading_space) - len(' $')
- space = available_space
- while True:
- space = text.rfind(' ', 0, space)
- if space < 0 or \
- self._count_dollars_before_index(text, space) % 2 == 0:
- break
-
- if space < 0:
- # No such space; just use the first unescaped space we can find.
- space = available_space - 1
- while True:
- space = text.find(' ', space + 1)
- if space < 0 or \
- self._count_dollars_before_index(text, space) % 2 == 0:
- break
- if space < 0:
- # Give up on breaking.
- break
-
- self.output.write(leading_space + text[0:space] + ' $\n')
- text = text[space+1:]
-
- # Subsequent lines are continuations, so indent them.
- leading_space = ' ' * (indent+2)
-
- self.output.write(leading_space + text + '\n')
-
- def _as_list(self, input):
- if input is None:
- return []
- if isinstance(input, list):
- return input
- return [input]
-
-
-def escape(string):
- """Escape a string such that it can be embedded into a Ninja file without
- further interpretation."""
- assert '\n' not in string, 'Ninja syntax does not allow newlines'
- # We only have one special metacharacter: '$'.
- return string.replace('$', '$$')
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/ordered_dict.py b/node_modules/node-gyp/gyp/pylib/gyp/ordered_dict.py
deleted file mode 100644
index a1e89f9..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/ordered_dict.py
+++ /dev/null
@@ -1,289 +0,0 @@
-# Unmodified from http://code.activestate.com/recipes/576693/
-# other than to add MIT license header (as specified on page, but not in code).
-# Linked from Python documentation here:
-# http://docs.python.org/2/library/collections.html#collections.OrderedDict
-#
-# This should be deleted once Py2.7 is available on all bots, see
-# http://crbug.com/241769.
-#
-# Copyright (c) 2009 Raymond Hettinger.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-# Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and pypy.
-# Passes Python2.7's test suite and incorporates all the latest updates.
-
-try:
- from thread import get_ident as _get_ident
-except ImportError:
- from dummy_thread import get_ident as _get_ident
-
-try:
- from _abcoll import KeysView, ValuesView, ItemsView
-except ImportError:
- pass
-
-
-class OrderedDict(dict):
- 'Dictionary that remembers insertion order'
- # An inherited dict maps keys to values.
- # The inherited dict provides __getitem__, __len__, __contains__, and get.
- # The remaining methods are order-aware.
- # Big-O running times for all methods are the same as for regular dictionaries.
-
- # The internal self.__map dictionary maps keys to links in a doubly linked list.
- # The circular doubly linked list starts and ends with a sentinel element.
- # The sentinel element never gets deleted (this simplifies the algorithm).
- # Each link is stored as a list of length three: [PREV, NEXT, KEY].
-
- def __init__(self, *args, **kwds):
- '''Initialize an ordered dictionary. Signature is the same as for
- regular dictionaries, but keyword arguments are not recommended
- because their insertion order is arbitrary.
-
- '''
- if len(args) > 1:
- raise TypeError('expected at most 1 arguments, got %d' % len(args))
- try:
- self.__root
- except AttributeError:
- self.__root = root = [] # sentinel node
- root[:] = [root, root, None]
- self.__map = {}
- self.__update(*args, **kwds)
-
- def __setitem__(self, key, value, dict_setitem=dict.__setitem__):
- 'od.__setitem__(i, y) <==> od[i]=y'
- # Setting a new item creates a new link which goes at the end of the linked
- # list, and the inherited dictionary is updated with the new key/value pair.
- if key not in self:
- root = self.__root
- last = root[0]
- last[1] = root[0] = self.__map[key] = [last, root, key]
- dict_setitem(self, key, value)
-
- def __delitem__(self, key, dict_delitem=dict.__delitem__):
- 'od.__delitem__(y) <==> del od[y]'
- # Deleting an existing item uses self.__map to find the link which is
- # then removed by updating the links in the predecessor and successor nodes.
- dict_delitem(self, key)
- link_prev, link_next, key = self.__map.pop(key)
- link_prev[1] = link_next
- link_next[0] = link_prev
-
- def __iter__(self):
- 'od.__iter__() <==> iter(od)'
- root = self.__root
- curr = root[1]
- while curr is not root:
- yield curr[2]
- curr = curr[1]
-
- def __reversed__(self):
- 'od.__reversed__() <==> reversed(od)'
- root = self.__root
- curr = root[0]
- while curr is not root:
- yield curr[2]
- curr = curr[0]
-
- def clear(self):
- 'od.clear() -> None. Remove all items from od.'
- try:
- for node in self.__map.itervalues():
- del node[:]
- root = self.__root
- root[:] = [root, root, None]
- self.__map.clear()
- except AttributeError:
- pass
- dict.clear(self)
-
- def popitem(self, last=True):
- '''od.popitem() -> (k, v), return and remove a (key, value) pair.
- Pairs are returned in LIFO order if last is true or FIFO order if false.
-
- '''
- if not self:
- raise KeyError('dictionary is empty')
- root = self.__root
- if last:
- link = root[0]
- link_prev = link[0]
- link_prev[1] = root
- root[0] = link_prev
- else:
- link = root[1]
- link_next = link[1]
- root[1] = link_next
- link_next[0] = root
- key = link[2]
- del self.__map[key]
- value = dict.pop(self, key)
- return key, value
-
- # -- the following methods do not depend on the internal structure --
-
- def keys(self):
- 'od.keys() -> list of keys in od'
- return list(self)
-
- def values(self):
- 'od.values() -> list of values in od'
- return [self[key] for key in self]
-
- def items(self):
- 'od.items() -> list of (key, value) pairs in od'
- return [(key, self[key]) for key in self]
-
- def iterkeys(self):
- 'od.iterkeys() -> an iterator over the keys in od'
- return iter(self)
-
- def itervalues(self):
- 'od.itervalues -> an iterator over the values in od'
- for k in self:
- yield self[k]
-
- def iteritems(self):
- 'od.iteritems -> an iterator over the (key, value) items in od'
- for k in self:
- yield (k, self[k])
-
- # Suppress 'OrderedDict.update: Method has no argument':
- # pylint: disable=E0211
- def update(*args, **kwds):
- '''od.update(E, **F) -> None. Update od from dict/iterable E and F.
-
- If E is a dict instance, does: for k in E: od[k] = E[k]
- If E has a .keys() method, does: for k in E.keys(): od[k] = E[k]
- Or if E is an iterable of items, does: for k, v in E: od[k] = v
- In either case, this is followed by: for k, v in F.items(): od[k] = v
-
- '''
- if len(args) > 2:
- raise TypeError('update() takes at most 2 positional '
- 'arguments (%d given)' % (len(args),))
- elif not args:
- raise TypeError('update() takes at least 1 argument (0 given)')
- self = args[0]
- # Make progressively weaker assumptions about "other"
- other = ()
- if len(args) == 2:
- other = args[1]
- if isinstance(other, dict):
- for key in other:
- self[key] = other[key]
- elif hasattr(other, 'keys'):
- for key in other.keys():
- self[key] = other[key]
- else:
- for key, value in other:
- self[key] = value
- for key, value in kwds.items():
- self[key] = value
-
- __update = update # let subclasses override update without breaking __init__
-
- __marker = object()
-
- def pop(self, key, default=__marker):
- '''od.pop(k[,d]) -> v, remove specified key and return the corresponding value.
- If key is not found, d is returned if given, otherwise KeyError is raised.
-
- '''
- if key in self:
- result = self[key]
- del self[key]
- return result
- if default is self.__marker:
- raise KeyError(key)
- return default
-
- def setdefault(self, key, default=None):
- 'od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od'
- if key in self:
- return self[key]
- self[key] = default
- return default
-
- def __repr__(self, _repr_running={}):
- 'od.__repr__() <==> repr(od)'
- call_key = id(self), _get_ident()
- if call_key in _repr_running:
- return '...'
- _repr_running[call_key] = 1
- try:
- if not self:
- return '%s()' % (self.__class__.__name__,)
- return '%s(%r)' % (self.__class__.__name__, self.items())
- finally:
- del _repr_running[call_key]
-
- def __reduce__(self):
- 'Return state information for pickling'
- items = [[k, self[k]] for k in self]
- inst_dict = vars(self).copy()
- for k in vars(OrderedDict()):
- inst_dict.pop(k, None)
- if inst_dict:
- return (self.__class__, (items,), inst_dict)
- return self.__class__, (items,)
-
- def copy(self):
- 'od.copy() -> a shallow copy of od'
- return self.__class__(self)
-
- @classmethod
- def fromkeys(cls, iterable, value=None):
- '''OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S
- and values equal to v (which defaults to None).
-
- '''
- d = cls()
- for key in iterable:
- d[key] = value
- return d
-
- def __eq__(self, other):
- '''od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive
- while comparison to a regular mapping is order-insensitive.
-
- '''
- if isinstance(other, OrderedDict):
- return len(self)==len(other) and self.items() == other.items()
- return dict.__eq__(self, other)
-
- def __ne__(self, other):
- return not self == other
-
- # -- the following methods are only used in Python 2.7 --
-
- def viewkeys(self):
- "od.viewkeys() -> a set-like object providing a view on od's keys"
- return KeysView(self)
-
- def viewvalues(self):
- "od.viewvalues() -> an object providing a view on od's values"
- return ValuesView(self)
-
- def viewitems(self):
- "od.viewitems() -> a set-like object providing a view on od's items"
- return ItemsView(self)
-
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py b/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py
deleted file mode 100644
index 74c98c5..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 2014 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""A clone of the default copy.deepcopy that doesn't handle cyclic
-structures or complex types except for dicts and lists. This is
-because gyp copies so large structure that small copy overhead ends up
-taking seconds in a project the size of Chromium."""
-
-class Error(Exception):
- pass
-
-__all__ = ["Error", "deepcopy"]
-
-def deepcopy(x):
- """Deep copy operation on gyp objects such as strings, ints, dicts
- and lists. More than twice as fast as copy.deepcopy but much less
- generic."""
-
- try:
- return _deepcopy_dispatch[type(x)](x)
- except KeyError:
- raise Error('Unsupported type %s for deepcopy. Use copy.deepcopy ' +
- 'or expand simple_copy support.' % type(x))
-
-_deepcopy_dispatch = d = {}
-
-def _deepcopy_atomic(x):
- return x
-
-for x in (type(None), int, long, float,
- bool, str, unicode, type):
- d[x] = _deepcopy_atomic
-
-def _deepcopy_list(x):
- return [deepcopy(a) for a in x]
-d[list] = _deepcopy_list
-
-def _deepcopy_dict(x):
- y = {}
- for key, value in x.iteritems():
- y[deepcopy(key)] = deepcopy(value)
- return y
-d[dict] = _deepcopy_dict
-
-del d
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py b/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py
deleted file mode 100755
index bb6f1ea..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py
+++ /dev/null
@@ -1,314 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Utility functions for Windows builds.
-
-These functions are executed via gyp-win-tool when using the ninja generator.
-"""
-
-import os
-import re
-import shutil
-import subprocess
-import stat
-import string
-import sys
-
-BASE_DIR = os.path.dirname(os.path.abspath(__file__))
-
-# A regex matching an argument corresponding to the output filename passed to
-# link.exe.
-_LINK_EXE_OUT_ARG = re.compile('/OUT:(?P<out>.+)$', re.IGNORECASE)
-
-def main(args):
- executor = WinTool()
- exit_code = executor.Dispatch(args)
- if exit_code is not None:
- sys.exit(exit_code)
-
-
-class WinTool(object):
- """This class performs all the Windows tooling steps. The methods can either
- be executed directly, or dispatched from an argument list."""
-
- def _UseSeparateMspdbsrv(self, env, args):
- """Allows to use a unique instance of mspdbsrv.exe per linker instead of a
- shared one."""
- if len(args) < 1:
- raise Exception("Not enough arguments")
-
- if args[0] != 'link.exe':
- return
-
- # Use the output filename passed to the linker to generate an endpoint name
- # for mspdbsrv.exe.
- endpoint_name = None
- for arg in args:
- m = _LINK_EXE_OUT_ARG.match(arg)
- if m:
- endpoint_name = re.sub(r'\W+', '',
- '%s_%d' % (m.group('out'), os.getpid()))
- break
-
- if endpoint_name is None:
- return
-
- # Adds the appropriate environment variable. This will be read by link.exe
- # to know which instance of mspdbsrv.exe it should connect to (if it's
- # not set then the default endpoint is used).
- env['_MSPDBSRV_ENDPOINT_'] = endpoint_name
-
- def Dispatch(self, args):
- """Dispatches a string command to a method."""
- if len(args) < 1:
- raise Exception("Not enough arguments")
-
- method = "Exec%s" % self._CommandifyName(args[0])
- return getattr(self, method)(*args[1:])
-
- def _CommandifyName(self, name_string):
- """Transforms a tool name like recursive-mirror to RecursiveMirror."""
- return name_string.title().replace('-', '')
-
- def _GetEnv(self, arch):
- """Gets the saved environment from a file for a given architecture."""
- # The environment is saved as an "environment block" (see CreateProcess
- # and msvs_emulation for details). We convert to a dict here.
- # Drop last 2 NULs, one for list terminator, one for trailing vs. separator.
- pairs = open(arch).read()[:-2].split('\0')
- kvs = [item.split('=', 1) for item in pairs]
- return dict(kvs)
-
- def ExecStamp(self, path):
- """Simple stamp command."""
- open(path, 'w').close()
-
- def ExecRecursiveMirror(self, source, dest):
- """Emulation of rm -rf out && cp -af in out."""
- if os.path.exists(dest):
- if os.path.isdir(dest):
- def _on_error(fn, path, excinfo):
- # The operation failed, possibly because the file is set to
- # read-only. If that's why, make it writable and try the op again.
- if not os.access(path, os.W_OK):
- os.chmod(path, stat.S_IWRITE)
- fn(path)
- shutil.rmtree(dest, onerror=_on_error)
- else:
- if not os.access(dest, os.W_OK):
- # Attempt to make the file writable before deleting it.
- os.chmod(dest, stat.S_IWRITE)
- os.unlink(dest)
-
- if os.path.isdir(source):
- shutil.copytree(source, dest)
- else:
- shutil.copy2(source, dest)
-
- def ExecLinkWrapper(self, arch, use_separate_mspdbsrv, *args):
- """Filter diagnostic output from link that looks like:
- ' Creating library ui.dll.lib and object ui.dll.exp'
- This happens when there are exports from the dll or exe.
- """
- env = self._GetEnv(arch)
- if use_separate_mspdbsrv == 'True':
- self._UseSeparateMspdbsrv(env, args)
- link = subprocess.Popen([args[0].replace('/', '\\')] + list(args[1:]),
- shell=True,
- env=env,
- stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT)
- out, _ = link.communicate()
- for line in out.splitlines():
- if (not line.startswith(' Creating library ') and
- not line.startswith('Generating code') and
- not line.startswith('Finished generating code')):
- print line
- return link.returncode
-
- def ExecLinkWithManifests(self, arch, embed_manifest, out, ldcmd, resname,
- mt, rc, intermediate_manifest, *manifests):
- """A wrapper for handling creating a manifest resource and then executing
- a link command."""
- # The 'normal' way to do manifests is to have link generate a manifest
- # based on gathering dependencies from the object files, then merge that
- # manifest with other manifests supplied as sources, convert the merged
- # manifest to a resource, and then *relink*, including the compiled
- # version of the manifest resource. This breaks incremental linking, and
- # is generally overly complicated. Instead, we merge all the manifests
- # provided (along with one that includes what would normally be in the
- # linker-generated one, see msvs_emulation.py), and include that into the
- # first and only link. We still tell link to generate a manifest, but we
- # only use that to assert that our simpler process did not miss anything.
- variables = {
- 'python': sys.executable,
- 'arch': arch,
- 'out': out,
- 'ldcmd': ldcmd,
- 'resname': resname,
- 'mt': mt,
- 'rc': rc,
- 'intermediate_manifest': intermediate_manifest,
- 'manifests': ' '.join(manifests),
- }
- add_to_ld = ''
- if manifests:
- subprocess.check_call(
- '%(python)s gyp-win-tool manifest-wrapper %(arch)s %(mt)s -nologo '
- '-manifest %(manifests)s -out:%(out)s.manifest' % variables)
- if embed_manifest == 'True':
- subprocess.check_call(
- '%(python)s gyp-win-tool manifest-to-rc %(arch)s %(out)s.manifest'
- ' %(out)s.manifest.rc %(resname)s' % variables)
- subprocess.check_call(
- '%(python)s gyp-win-tool rc-wrapper %(arch)s %(rc)s '
- '%(out)s.manifest.rc' % variables)
- add_to_ld = ' %(out)s.manifest.res' % variables
- subprocess.check_call(ldcmd + add_to_ld)
-
- # Run mt.exe on the theoretically complete manifest we generated, merging
- # it with the one the linker generated to confirm that the linker
- # generated one does not add anything. This is strictly unnecessary for
- # correctness, it's only to verify that e.g. /MANIFESTDEPENDENCY was not
- # used in a #pragma comment.
- if manifests:
- # Merge the intermediate one with ours to .assert.manifest, then check
- # that .assert.manifest is identical to ours.
- subprocess.check_call(
- '%(python)s gyp-win-tool manifest-wrapper %(arch)s %(mt)s -nologo '
- '-manifest %(out)s.manifest %(intermediate_manifest)s '
- '-out:%(out)s.assert.manifest' % variables)
- assert_manifest = '%(out)s.assert.manifest' % variables
- our_manifest = '%(out)s.manifest' % variables
- # Load and normalize the manifests. mt.exe sometimes removes whitespace,
- # and sometimes doesn't unfortunately.
- with open(our_manifest, 'rb') as our_f:
- with open(assert_manifest, 'rb') as assert_f:
- our_data = our_f.read().translate(None, string.whitespace)
- assert_data = assert_f.read().translate(None, string.whitespace)
- if our_data != assert_data:
- os.unlink(out)
- def dump(filename):
- sys.stderr.write('%s\n-----\n' % filename)
- with open(filename, 'rb') as f:
- sys.stderr.write(f.read() + '\n-----\n')
- dump(intermediate_manifest)
- dump(our_manifest)
- dump(assert_manifest)
- sys.stderr.write(
- 'Linker generated manifest "%s" added to final manifest "%s" '
- '(result in "%s"). '
- 'Were /MANIFEST switches used in #pragma statements? ' % (
- intermediate_manifest, our_manifest, assert_manifest))
- return 1
-
- def ExecManifestWrapper(self, arch, *args):
- """Run manifest tool with environment set. Strip out undesirable warning
- (some XML blocks are recognized by the OS loader, but not the manifest
- tool)."""
- env = self._GetEnv(arch)
- popen = subprocess.Popen(args, shell=True, env=env,
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- out, _ = popen.communicate()
- for line in out.splitlines():
- if line and 'manifest authoring warning 81010002' not in line:
- print line
- return popen.returncode
-
- def ExecManifestToRc(self, arch, *args):
- """Creates a resource file pointing a SxS assembly manifest.
- |args| is tuple containing path to resource file, path to manifest file
- and resource name which can be "1" (for executables) or "2" (for DLLs)."""
- manifest_path, resource_path, resource_name = args
- with open(resource_path, 'wb') as output:
- output.write('#include <windows.h>\n%s RT_MANIFEST "%s"' % (
- resource_name,
- os.path.abspath(manifest_path).replace('\\', '/')))
-
- def ExecMidlWrapper(self, arch, outdir, tlb, h, dlldata, iid, proxy, idl,
- *flags):
- """Filter noisy filenames output from MIDL compile step that isn't
- quietable via command line flags.
- """
- args = ['midl', '/nologo'] + list(flags) + [
- '/out', outdir,
- '/tlb', tlb,
- '/h', h,
- '/dlldata', dlldata,
- '/iid', iid,
- '/proxy', proxy,
- idl]
- env = self._GetEnv(arch)
- popen = subprocess.Popen(args, shell=True, env=env,
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- out, _ = popen.communicate()
- # Filter junk out of stdout, and write filtered versions. Output we want
- # to filter is pairs of lines that look like this:
- # Processing C:\Program Files (x86)\Microsoft SDKs\...\include\objidl.idl
- # objidl.idl
- lines = out.splitlines()
- prefixes = ('Processing ', '64 bit Processing ')
- processing = set(os.path.basename(x)
- for x in lines if x.startswith(prefixes))
- for line in lines:
- if not line.startswith(prefixes) and line not in processing:
- print line
- return popen.returncode
-
- def ExecAsmWrapper(self, arch, *args):
- """Filter logo banner from invocations of asm.exe."""
- env = self._GetEnv(arch)
- popen = subprocess.Popen(args, shell=True, env=env,
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- out, _ = popen.communicate()
- for line in out.splitlines():
- if (not line.startswith('Copyright (C) Microsoft Corporation') and
- not line.startswith('Microsoft (R) Macro Assembler') and
- not line.startswith(' Assembling: ') and
- line):
- print line
- return popen.returncode
-
- def ExecRcWrapper(self, arch, *args):
- """Filter logo banner from invocations of rc.exe. Older versions of RC
- don't support the /nologo flag."""
- env = self._GetEnv(arch)
- popen = subprocess.Popen(args, shell=True, env=env,
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- out, _ = popen.communicate()
- for line in out.splitlines():
- if (not line.startswith('Microsoft (R) Windows (R) Resource Compiler') and
- not line.startswith('Copyright (C) Microsoft Corporation') and
- line):
- print line
- return popen.returncode
-
- def ExecActionWrapper(self, arch, rspfile, *dir):
- """Runs an action command line from a response file using the environment
- for |arch|. If |dir| is supplied, use that as the working directory."""
- env = self._GetEnv(arch)
- # TODO(scottmg): This is a temporary hack to get some specific variables
- # through to actions that are set after gyp-time. http://crbug.com/333738.
- for k, v in os.environ.iteritems():
- if k not in env:
- env[k] = v
- args = open(rspfile).read()
- dir = dir[0] if dir else None
- return subprocess.call(args, shell=True, env=env, cwd=dir)
-
- def ExecClCompile(self, project_dir, selected_files):
- """Executed by msvs-ninja projects when the 'ClCompile' target is used to
- build selected C/C++ files."""
- project_dir = os.path.relpath(project_dir, BASE_DIR)
- selected_files = selected_files.split(';')
- ninja_targets = [os.path.join(project_dir, filename) + '^^'
- for filename in selected_files]
- cmd = ['ninja.exe']
- cmd.extend(ninja_targets)
- return subprocess.call(cmd, shell=True, cwd=BASE_DIR)
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv[1:]))
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py b/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
deleted file mode 100644
index 69f7d97..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
+++ /dev/null
@@ -1,1653 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""
-This module contains classes that help to emulate xcodebuild behavior on top of
-other build systems, such as make and ninja.
-"""
-
-import copy
-import gyp.common
-import os
-import os.path
-import re
-import shlex
-import subprocess
-import sys
-import tempfile
-from gyp.common import GypError
-
-# Populated lazily by XcodeVersion, for efficiency, and to fix an issue when
-# "xcodebuild" is called too quickly (it has been found to return incorrect
-# version number).
-XCODE_VERSION_CACHE = None
-
-# Populated lazily by GetXcodeArchsDefault, to an |XcodeArchsDefault| instance
-# corresponding to the installed version of Xcode.
-XCODE_ARCHS_DEFAULT_CACHE = None
-
-
-def XcodeArchsVariableMapping(archs, archs_including_64_bit=None):
- """Constructs a dictionary with expansion for $(ARCHS_STANDARD) variable,
- and optionally for $(ARCHS_STANDARD_INCLUDING_64_BIT)."""
- mapping = {'$(ARCHS_STANDARD)': archs}
- if archs_including_64_bit:
- mapping['$(ARCHS_STANDARD_INCLUDING_64_BIT)'] = archs_including_64_bit
- return mapping
-
-class XcodeArchsDefault(object):
- """A class to resolve ARCHS variable from xcode_settings, resolving Xcode
- macros and implementing filtering by VALID_ARCHS. The expansion of macros
- depends on the SDKROOT used ("macosx", "iphoneos", "iphonesimulator") and
- on the version of Xcode.
- """
-
- # Match variable like $(ARCHS_STANDARD).
- variable_pattern = re.compile(r'\$\([a-zA-Z_][a-zA-Z0-9_]*\)$')
-
- def __init__(self, default, mac, iphonesimulator, iphoneos):
- self._default = (default,)
- self._archs = {'mac': mac, 'ios': iphoneos, 'iossim': iphonesimulator}
-
- def _VariableMapping(self, sdkroot):
- """Returns the dictionary of variable mapping depending on the SDKROOT."""
- sdkroot = sdkroot.lower()
- if 'iphoneos' in sdkroot:
- return self._archs['ios']
- elif 'iphonesimulator' in sdkroot:
- return self._archs['iossim']
- else:
- return self._archs['mac']
-
- def _ExpandArchs(self, archs, sdkroot):
- """Expands variables references in ARCHS, and remove duplicates."""
- variable_mapping = self._VariableMapping(sdkroot)
- expanded_archs = []
- for arch in archs:
- if self.variable_pattern.match(arch):
- variable = arch
- try:
- variable_expansion = variable_mapping[variable]
- for arch in variable_expansion:
- if arch not in expanded_archs:
- expanded_archs.append(arch)
- except KeyError as e:
- print 'Warning: Ignoring unsupported variable "%s".' % variable
- elif arch not in expanded_archs:
- expanded_archs.append(arch)
- return expanded_archs
-
- def ActiveArchs(self, archs, valid_archs, sdkroot):
- """Expands variables references in ARCHS, and filter by VALID_ARCHS if it
- is defined (if not set, Xcode accept any value in ARCHS, otherwise, only
- values present in VALID_ARCHS are kept)."""
- expanded_archs = self._ExpandArchs(archs or self._default, sdkroot or '')
- if valid_archs:
- filtered_archs = []
- for arch in expanded_archs:
- if arch in valid_archs:
- filtered_archs.append(arch)
- expanded_archs = filtered_archs
- return expanded_archs
-
-
-def GetXcodeArchsDefault():
- """Returns the |XcodeArchsDefault| object to use to expand ARCHS for the
- installed version of Xcode. The default values used by Xcode for ARCHS
- and the expansion of the variables depends on the version of Xcode used.
-
- For all version anterior to Xcode 5.0 or posterior to Xcode 5.1 included
- uses $(ARCHS_STANDARD) if ARCHS is unset, while Xcode 5.0 to 5.0.2 uses
- $(ARCHS_STANDARD_INCLUDING_64_BIT). This variable was added to Xcode 5.0
- and deprecated with Xcode 5.1.
-
- For "macosx" SDKROOT, all version starting with Xcode 5.0 includes 64-bit
- architecture as part of $(ARCHS_STANDARD) and default to only building it.
-
- For "iphoneos" and "iphonesimulator" SDKROOT, 64-bit architectures are part
- of $(ARCHS_STANDARD_INCLUDING_64_BIT) from Xcode 5.0. From Xcode 5.1, they
- are also part of $(ARCHS_STANDARD).
-
- All thoses rules are coded in the construction of the |XcodeArchsDefault|
- object to use depending on the version of Xcode detected. The object is
- for performance reason."""
- global XCODE_ARCHS_DEFAULT_CACHE
- if XCODE_ARCHS_DEFAULT_CACHE:
- return XCODE_ARCHS_DEFAULT_CACHE
- xcode_version, _ = XcodeVersion()
- if xcode_version < '0500':
- XCODE_ARCHS_DEFAULT_CACHE = XcodeArchsDefault(
- '$(ARCHS_STANDARD)',
- XcodeArchsVariableMapping(['i386']),
- XcodeArchsVariableMapping(['i386']),
- XcodeArchsVariableMapping(['armv7']))
- elif xcode_version < '0510':
- XCODE_ARCHS_DEFAULT_CACHE = XcodeArchsDefault(
- '$(ARCHS_STANDARD_INCLUDING_64_BIT)',
- XcodeArchsVariableMapping(['x86_64'], ['x86_64']),
- XcodeArchsVariableMapping(['i386'], ['i386', 'x86_64']),
- XcodeArchsVariableMapping(
- ['armv7', 'armv7s'],
- ['armv7', 'armv7s', 'arm64']))
- else:
- XCODE_ARCHS_DEFAULT_CACHE = XcodeArchsDefault(
- '$(ARCHS_STANDARD)',
- XcodeArchsVariableMapping(['x86_64'], ['x86_64']),
- XcodeArchsVariableMapping(['i386', 'x86_64'], ['i386', 'x86_64']),
- XcodeArchsVariableMapping(
- ['armv7', 'armv7s', 'arm64'],
- ['armv7', 'armv7s', 'arm64']))
- return XCODE_ARCHS_DEFAULT_CACHE
-
-
-class XcodeSettings(object):
- """A class that understands the gyp 'xcode_settings' object."""
-
- # Populated lazily by _SdkPath(). Shared by all XcodeSettings, so cached
- # at class-level for efficiency.
- _sdk_path_cache = {}
- _sdk_root_cache = {}
-
- # Populated lazily by GetExtraPlistItems(). Shared by all XcodeSettings, so
- # cached at class-level for efficiency.
- _plist_cache = {}
-
- # Populated lazily by GetIOSPostbuilds. Shared by all XcodeSettings, so
- # cached at class-level for efficiency.
- _codesigning_key_cache = {}
-
- def __init__(self, spec):
- self.spec = spec
-
- self.isIOS = False
-
- # Per-target 'xcode_settings' are pushed down into configs earlier by gyp.
- # This means self.xcode_settings[config] always contains all settings
- # for that config -- the per-target settings as well. Settings that are
- # the same for all configs are implicitly per-target settings.
- self.xcode_settings = {}
- configs = spec['configurations']
- for configname, config in configs.iteritems():
- self.xcode_settings[configname] = config.get('xcode_settings', {})
- self._ConvertConditionalKeys(configname)
- if self.xcode_settings[configname].get('IPHONEOS_DEPLOYMENT_TARGET',
- None):
- self.isIOS = True
-
- # This is only non-None temporarily during the execution of some methods.
- self.configname = None
-
- # Used by _AdjustLibrary to match .a and .dylib entries in libraries.
- self.library_re = re.compile(r'^lib([^/]+)\.(a|dylib)$')
-
- def _ConvertConditionalKeys(self, configname):
- """Converts or warns on conditional keys. Xcode supports conditional keys,
- such as CODE_SIGN_IDENTITY[sdk=iphoneos*]. This is a partial implementation
- with some keys converted while the rest force a warning."""
- settings = self.xcode_settings[configname]
- conditional_keys = [key for key in settings if key.endswith(']')]
- for key in conditional_keys:
- # If you need more, speak up at http://crbug.com/122592
- if key.endswith("[sdk=iphoneos*]"):
- if configname.endswith("iphoneos"):
- new_key = key.split("[")[0]
- settings[new_key] = settings[key]
- else:
- print 'Warning: Conditional keys not implemented, ignoring:', \
- ' '.join(conditional_keys)
- del settings[key]
-
- def _Settings(self):
- assert self.configname
- return self.xcode_settings[self.configname]
-
- def _Test(self, test_key, cond_key, default):
- return self._Settings().get(test_key, default) == cond_key
-
- def _Appendf(self, lst, test_key, format_str, default=None):
- if test_key in self._Settings():
- lst.append(format_str % str(self._Settings()[test_key]))
- elif default:
- lst.append(format_str % str(default))
-
- def _WarnUnimplemented(self, test_key):
- if test_key in self._Settings():
- print 'Warning: Ignoring not yet implemented key "%s".' % test_key
-
- def IsBinaryOutputFormat(self, configname):
- default = "binary" if self.isIOS else "xml"
- format = self.xcode_settings[configname].get('INFOPLIST_OUTPUT_FORMAT',
- default)
- return format == "binary"
-
- def _IsBundle(self):
- return int(self.spec.get('mac_bundle', 0)) != 0
-
- def _IsIosAppExtension(self):
- return int(self.spec.get('ios_app_extension', 0)) != 0
-
- def _IsIosWatchKitExtension(self):
- return int(self.spec.get('ios_watchkit_extension', 0)) != 0
-
- def _IsIosWatchApp(self):
- return int(self.spec.get('ios_watch_app', 0)) != 0
-
- def _IsXCTest(self):
- return int(self.spec.get('mac_xctest_bundle', 0)) != 0
-
- def GetFrameworkVersion(self):
- """Returns the framework version of the current target. Only valid for
- bundles."""
- assert self._IsBundle()
- return self.GetPerTargetSetting('FRAMEWORK_VERSION', default='A')
-
- def GetWrapperExtension(self):
- """Returns the bundle extension (.app, .framework, .plugin, etc). Only
- valid for bundles."""
- assert self._IsBundle()
- if self.spec['type'] in ('loadable_module', 'shared_library'):
- default_wrapper_extension = {
- 'loadable_module': 'bundle',
- 'shared_library': 'framework',
- }[self.spec['type']]
- wrapper_extension = self.GetPerTargetSetting(
- 'WRAPPER_EXTENSION', default=default_wrapper_extension)
- return '.' + self.spec.get('product_extension', wrapper_extension)
- elif self.spec['type'] == 'executable':
- if self._IsIosAppExtension() or self._IsIosWatchKitExtension():
- return '.' + self.spec.get('product_extension', 'appex')
- else:
- return '.' + self.spec.get('product_extension', 'app')
- else:
- assert False, "Don't know extension for '%s', target '%s'" % (
- self.spec['type'], self.spec['target_name'])
-
- def GetProductName(self):
- """Returns PRODUCT_NAME."""
- return self.spec.get('product_name', self.spec['target_name'])
-
- def GetFullProductName(self):
- """Returns FULL_PRODUCT_NAME."""
- if self._IsBundle():
- return self.GetWrapperName()
- else:
- return self._GetStandaloneBinaryPath()
-
- def GetWrapperName(self):
- """Returns the directory name of the bundle represented by this target.
- Only valid for bundles."""
- assert self._IsBundle()
- return self.GetProductName() + self.GetWrapperExtension()
-
- def GetBundleContentsFolderPath(self):
- """Returns the qualified path to the bundle's contents folder. E.g.
- Chromium.app/Contents or Foo.bundle/Versions/A. Only valid for bundles."""
- if self.isIOS:
- return self.GetWrapperName()
- assert self._IsBundle()
- if self.spec['type'] == 'shared_library':
- return os.path.join(
- self.GetWrapperName(), 'Versions', self.GetFrameworkVersion())
- else:
- # loadable_modules have a 'Contents' folder like executables.
- return os.path.join(self.GetWrapperName(), 'Contents')
-
- def GetBundleResourceFolder(self):
- """Returns the qualified path to the bundle's resource folder. E.g.
- Chromium.app/Contents/Resources. Only valid for bundles."""
- assert self._IsBundle()
- if self.isIOS:
- return self.GetBundleContentsFolderPath()
- return os.path.join(self.GetBundleContentsFolderPath(), 'Resources')
-
- def GetBundlePlistPath(self):
- """Returns the qualified path to the bundle's plist file. E.g.
- Chromium.app/Contents/Info.plist. Only valid for bundles."""
- assert self._IsBundle()
- if self.spec['type'] in ('executable', 'loadable_module'):
- return os.path.join(self.GetBundleContentsFolderPath(), 'Info.plist')
- else:
- return os.path.join(self.GetBundleContentsFolderPath(),
- 'Resources', 'Info.plist')
-
- def GetProductType(self):
- """Returns the PRODUCT_TYPE of this target."""
- if self._IsIosAppExtension():
- assert self._IsBundle(), ('ios_app_extension flag requires mac_bundle '
- '(target %s)' % self.spec['target_name'])
- return 'com.apple.product-type.app-extension'
- if self._IsIosWatchKitExtension():
- assert self._IsBundle(), ('ios_watchkit_extension flag requires '
- 'mac_bundle (target %s)' % self.spec['target_name'])
- return 'com.apple.product-type.watchkit-extension'
- if self._IsIosWatchApp():
- assert self._IsBundle(), ('ios_watch_app flag requires mac_bundle '
- '(target %s)' % self.spec['target_name'])
- return 'com.apple.product-type.application.watchapp'
- if self._IsBundle():
- return {
- 'executable': 'com.apple.product-type.application',
- 'loadable_module': 'com.apple.product-type.bundle',
- 'shared_library': 'com.apple.product-type.framework',
- }[self.spec['type']]
- else:
- return {
- 'executable': 'com.apple.product-type.tool',
- 'loadable_module': 'com.apple.product-type.library.dynamic',
- 'shared_library': 'com.apple.product-type.library.dynamic',
- 'static_library': 'com.apple.product-type.library.static',
- }[self.spec['type']]
-
- def GetMachOType(self):
- """Returns the MACH_O_TYPE of this target."""
- # Weird, but matches Xcode.
- if not self._IsBundle() and self.spec['type'] == 'executable':
- return ''
- return {
- 'executable': 'mh_execute',
- 'static_library': 'staticlib',
- 'shared_library': 'mh_dylib',
- 'loadable_module': 'mh_bundle',
- }[self.spec['type']]
-
- def _GetBundleBinaryPath(self):
- """Returns the name of the bundle binary of by this target.
- E.g. Chromium.app/Contents/MacOS/Chromium. Only valid for bundles."""
- assert self._IsBundle()
- if self.spec['type'] in ('shared_library') or self.isIOS:
- path = self.GetBundleContentsFolderPath()
- elif self.spec['type'] in ('executable', 'loadable_module'):
- path = os.path.join(self.GetBundleContentsFolderPath(), 'MacOS')
- return os.path.join(path, self.GetExecutableName())
-
- def _GetStandaloneExecutableSuffix(self):
- if 'product_extension' in self.spec:
- return '.' + self.spec['product_extension']
- return {
- 'executable': '',
- 'static_library': '.a',
- 'shared_library': '.dylib',
- 'loadable_module': '.so',
- }[self.spec['type']]
-
- def _GetStandaloneExecutablePrefix(self):
- return self.spec.get('product_prefix', {
- 'executable': '',
- 'static_library': 'lib',
- 'shared_library': 'lib',
- # Non-bundled loadable_modules are called foo.so for some reason
- # (that is, .so and no prefix) with the xcode build -- match that.
- 'loadable_module': '',
- }[self.spec['type']])
-
- def _GetStandaloneBinaryPath(self):
- """Returns the name of the non-bundle binary represented by this target.
- E.g. hello_world. Only valid for non-bundles."""
- assert not self._IsBundle()
- assert self.spec['type'] in (
- 'executable', 'shared_library', 'static_library', 'loadable_module'), (
- 'Unexpected type %s' % self.spec['type'])
- target = self.spec['target_name']
- if self.spec['type'] == 'static_library':
- if target[:3] == 'lib':
- target = target[3:]
- elif self.spec['type'] in ('loadable_module', 'shared_library'):
- if target[:3] == 'lib':
- target = target[3:]
-
- target_prefix = self._GetStandaloneExecutablePrefix()
- target = self.spec.get('product_name', target)
- target_ext = self._GetStandaloneExecutableSuffix()
- return target_prefix + target + target_ext
-
- def GetExecutableName(self):
- """Returns the executable name of the bundle represented by this target.
- E.g. Chromium."""
- if self._IsBundle():
- return self.spec.get('product_name', self.spec['target_name'])
- else:
- return self._GetStandaloneBinaryPath()
-
- def GetExecutablePath(self):
- """Returns the directory name of the bundle represented by this target. E.g.
- Chromium.app/Contents/MacOS/Chromium."""
- if self._IsBundle():
- return self._GetBundleBinaryPath()
- else:
- return self._GetStandaloneBinaryPath()
-
- def GetActiveArchs(self, configname):
- """Returns the architectures this target should be built for."""
- config_settings = self.xcode_settings[configname]
- xcode_archs_default = GetXcodeArchsDefault()
- return xcode_archs_default.ActiveArchs(
- config_settings.get('ARCHS'),
- config_settings.get('VALID_ARCHS'),
- config_settings.get('SDKROOT'))
-
- def _GetSdkVersionInfoItem(self, sdk, infoitem):
- # xcodebuild requires Xcode and can't run on Command Line Tools-only
- # systems from 10.7 onward.
- # Since the CLT has no SDK paths anyway, returning None is the
- # most sensible route and should still do the right thing.
- try:
- return GetStdoutQuiet(['xcodebuild', '-version', '-sdk', sdk, infoitem])
- except:
- pass
-
- def _SdkRoot(self, configname):
- if configname is None:
- configname = self.configname
- return self.GetPerConfigSetting('SDKROOT', configname, default='')
-
- def _SdkPath(self, configname=None):
- sdk_root = self._SdkRoot(configname)
- if sdk_root.startswith('/'):
- return sdk_root
- return self._XcodeSdkPath(sdk_root)
-
- def _XcodeSdkPath(self, sdk_root):
- if sdk_root not in XcodeSettings._sdk_path_cache:
- sdk_path = self._GetSdkVersionInfoItem(sdk_root, 'Path')
- XcodeSettings._sdk_path_cache[sdk_root] = sdk_path
- if sdk_root:
- XcodeSettings._sdk_root_cache[sdk_path] = sdk_root
- return XcodeSettings._sdk_path_cache[sdk_root]
-
- def _AppendPlatformVersionMinFlags(self, lst):
- self._Appendf(lst, 'MACOSX_DEPLOYMENT_TARGET', '-mmacosx-version-min=%s')
- if 'IPHONEOS_DEPLOYMENT_TARGET' in self._Settings():
- # TODO: Implement this better?
- sdk_path_basename = os.path.basename(self._SdkPath())
- if sdk_path_basename.lower().startswith('iphonesimulator'):
- self._Appendf(lst, 'IPHONEOS_DEPLOYMENT_TARGET',
- '-mios-simulator-version-min=%s')
- else:
- self._Appendf(lst, 'IPHONEOS_DEPLOYMENT_TARGET',
- '-miphoneos-version-min=%s')
-
- def GetCflags(self, configname, arch=None):
- """Returns flags that need to be added to .c, .cc, .m, and .mm
- compilations."""
- # This functions (and the similar ones below) do not offer complete
- # emulation of all xcode_settings keys. They're implemented on demand.
-
- self.configname = configname
- cflags = []
-
- sdk_root = self._SdkPath()
- if 'SDKROOT' in self._Settings() and sdk_root:
- cflags.append('-isysroot %s' % sdk_root)
-
- if self._Test('CLANG_WARN_CONSTANT_CONVERSION', 'YES', default='NO'):
- cflags.append('-Wconstant-conversion')
-
- if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'):
- cflags.append('-funsigned-char')
-
- if self._Test('GCC_CW_ASM_SYNTAX', 'YES', default='YES'):
- cflags.append('-fasm-blocks')
-
- if 'GCC_DYNAMIC_NO_PIC' in self._Settings():
- if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES':
- cflags.append('-mdynamic-no-pic')
- else:
- pass
- # TODO: In this case, it depends on the target. xcode passes
- # mdynamic-no-pic by default for executable and possibly static lib
- # according to mento
-
- if self._Test('GCC_ENABLE_PASCAL_STRINGS', 'YES', default='YES'):
- cflags.append('-mpascal-strings')
-
- self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s')
-
- if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'):
- dbg_format = self._Settings().get('DEBUG_INFORMATION_FORMAT', 'dwarf')
- if dbg_format == 'dwarf':
- cflags.append('-gdwarf-2')
- elif dbg_format == 'stabs':
- raise NotImplementedError('stabs debug format is not supported yet.')
- elif dbg_format == 'dwarf-with-dsym':
- cflags.append('-gdwarf-2')
- else:
- raise NotImplementedError('Unknown debug format %s' % dbg_format)
-
- if self._Settings().get('GCC_STRICT_ALIASING') == 'YES':
- cflags.append('-fstrict-aliasing')
- elif self._Settings().get('GCC_STRICT_ALIASING') == 'NO':
- cflags.append('-fno-strict-aliasing')
-
- if self._Test('GCC_SYMBOLS_PRIVATE_EXTERN', 'YES', default='NO'):
- cflags.append('-fvisibility=hidden')
-
- if self._Test('GCC_TREAT_WARNINGS_AS_ERRORS', 'YES', default='NO'):
- cflags.append('-Werror')
-
- if self._Test('GCC_WARN_ABOUT_MISSING_NEWLINE', 'YES', default='NO'):
- cflags.append('-Wnewline-eof')
-
- # In Xcode, this is only activated when GCC_COMPILER_VERSION is clang or
- # llvm-gcc. It also requires a fairly recent libtool, and
- # if the system clang isn't used, DYLD_LIBRARY_PATH needs to contain the
- # path to the libLTO.dylib that matches the used clang.
- if self._Test('LLVM_LTO', 'YES', default='NO'):
- cflags.append('-flto')
-
- self._AppendPlatformVersionMinFlags(cflags)
-
- # TODO:
- if self._Test('COPY_PHASE_STRIP', 'YES', default='NO'):
- self._WarnUnimplemented('COPY_PHASE_STRIP')
- self._WarnUnimplemented('GCC_DEBUGGING_SYMBOLS')
- self._WarnUnimplemented('GCC_ENABLE_OBJC_EXCEPTIONS')
-
- # TODO: This is exported correctly, but assigning to it is not supported.
- self._WarnUnimplemented('MACH_O_TYPE')
- self._WarnUnimplemented('PRODUCT_TYPE')
-
- if arch is not None:
- archs = [arch]
- else:
- assert self.configname
- archs = self.GetActiveArchs(self.configname)
- if len(archs) != 1:
- # TODO: Supporting fat binaries will be annoying.
- self._WarnUnimplemented('ARCHS')
- archs = ['i386']
- cflags.append('-arch ' + archs[0])
-
- if archs[0] in ('i386', 'x86_64'):
- if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
- cflags.append('-msse3')
- if self._Test('GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS', 'YES',
- default='NO'):
- cflags.append('-mssse3') # Note 3rd 's'.
- if self._Test('GCC_ENABLE_SSE41_EXTENSIONS', 'YES', default='NO'):
- cflags.append('-msse4.1')
- if self._Test('GCC_ENABLE_SSE42_EXTENSIONS', 'YES', default='NO'):
- cflags.append('-msse4.2')
-
- cflags += self._Settings().get('WARNING_CFLAGS', [])
-
- if self._IsXCTest():
- platform_root = self._XcodePlatformPath(configname)
- if platform_root:
- cflags.append('-F' + platform_root + '/Developer/Library/Frameworks/')
-
- if sdk_root:
- framework_root = sdk_root
- else:
- framework_root = ''
- config = self.spec['configurations'][self.configname]
- framework_dirs = config.get('mac_framework_dirs', [])
- for directory in framework_dirs:
- cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
-
- self.configname = None
- return cflags
-
- def GetCflagsC(self, configname):
- """Returns flags that need to be added to .c, and .m compilations."""
- self.configname = configname
- cflags_c = []
- if self._Settings().get('GCC_C_LANGUAGE_STANDARD', '') == 'ansi':
- cflags_c.append('-ansi')
- else:
- self._Appendf(cflags_c, 'GCC_C_LANGUAGE_STANDARD', '-std=%s')
- cflags_c += self._Settings().get('OTHER_CFLAGS', [])
- self.configname = None
- return cflags_c
-
- def GetCflagsCC(self, configname):
- """Returns flags that need to be added to .cc, and .mm compilations."""
- self.configname = configname
- cflags_cc = []
-
- clang_cxx_language_standard = self._Settings().get(
- 'CLANG_CXX_LANGUAGE_STANDARD')
- # Note: Don't make c++0x to c++11 so that c++0x can be used with older
- # clangs that don't understand c++11 yet (like Xcode 4.2's).
- if clang_cxx_language_standard:
- cflags_cc.append('-std=%s' % clang_cxx_language_standard)
-
- self._Appendf(cflags_cc, 'CLANG_CXX_LIBRARY', '-stdlib=%s')
-
- if self._Test('GCC_ENABLE_CPP_RTTI', 'NO', default='YES'):
- cflags_cc.append('-fno-rtti')
- if self._Test('GCC_ENABLE_CPP_EXCEPTIONS', 'NO', default='YES'):
- cflags_cc.append('-fno-exceptions')
- if self._Test('GCC_INLINES_ARE_PRIVATE_EXTERN', 'YES', default='NO'):
- cflags_cc.append('-fvisibility-inlines-hidden')
- if self._Test('GCC_THREADSAFE_STATICS', 'NO', default='YES'):
- cflags_cc.append('-fno-threadsafe-statics')
- # Note: This flag is a no-op for clang, it only has an effect for gcc.
- if self._Test('GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO', 'NO', default='YES'):
- cflags_cc.append('-Wno-invalid-offsetof')
-
- other_ccflags = []
-
- for flag in self._Settings().get('OTHER_CPLUSPLUSFLAGS', ['$(inherited)']):
- # TODO: More general variable expansion. Missing in many other places too.
- if flag in ('$inherited', '$(inherited)', '${inherited}'):
- flag = '$OTHER_CFLAGS'
- if flag in ('$OTHER_CFLAGS', '$(OTHER_CFLAGS)', '${OTHER_CFLAGS}'):
- other_ccflags += self._Settings().get('OTHER_CFLAGS', [])
- else:
- other_ccflags.append(flag)
- cflags_cc += other_ccflags
-
- self.configname = None
- return cflags_cc
-
- def _AddObjectiveCGarbageCollectionFlags(self, flags):
- gc_policy = self._Settings().get('GCC_ENABLE_OBJC_GC', 'unsupported')
- if gc_policy == 'supported':
- flags.append('-fobjc-gc')
- elif gc_policy == 'required':
- flags.append('-fobjc-gc-only')
-
- def _AddObjectiveCARCFlags(self, flags):
- if self._Test('CLANG_ENABLE_OBJC_ARC', 'YES', default='NO'):
- flags.append('-fobjc-arc')
-
- def _AddObjectiveCMissingPropertySynthesisFlags(self, flags):
- if self._Test('CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS',
- 'YES', default='NO'):
- flags.append('-Wobjc-missing-property-synthesis')
-
- def GetCflagsObjC(self, configname):
- """Returns flags that need to be added to .m compilations."""
- self.configname = configname
- cflags_objc = []
- self._AddObjectiveCGarbageCollectionFlags(cflags_objc)
- self._AddObjectiveCARCFlags(cflags_objc)
- self._AddObjectiveCMissingPropertySynthesisFlags(cflags_objc)
- self.configname = None
- return cflags_objc
-
- def GetCflagsObjCC(self, configname):
- """Returns flags that need to be added to .mm compilations."""
- self.configname = configname
- cflags_objcc = []
- self._AddObjectiveCGarbageCollectionFlags(cflags_objcc)
- self._AddObjectiveCARCFlags(cflags_objcc)
- self._AddObjectiveCMissingPropertySynthesisFlags(cflags_objcc)
- if self._Test('GCC_OBJC_CALL_CXX_CDTORS', 'YES', default='NO'):
- cflags_objcc.append('-fobjc-call-cxx-cdtors')
- self.configname = None
- return cflags_objcc
-
- def GetInstallNameBase(self):
- """Return DYLIB_INSTALL_NAME_BASE for this target."""
- # Xcode sets this for shared_libraries, and for nonbundled loadable_modules.
- if (self.spec['type'] != 'shared_library' and
- (self.spec['type'] != 'loadable_module' or self._IsBundle())):
- return None
- install_base = self.GetPerTargetSetting(
- 'DYLIB_INSTALL_NAME_BASE',
- default='/Library/Frameworks' if self._IsBundle() else '/usr/local/lib')
- return install_base
-
- def _StandardizePath(self, path):
- """Do :standardizepath processing for path."""
- # I'm not quite sure what :standardizepath does. Just call normpath(),
- # but don't let @executable_path/../foo collapse to foo.
- if '/' in path:
- prefix, rest = '', path
- if path.startswith('@'):
- prefix, rest = path.split('/', 1)
- rest = os.path.normpath(rest) # :standardizepath
- path = os.path.join(prefix, rest)
- return path
-
- def GetInstallName(self):
- """Return LD_DYLIB_INSTALL_NAME for this target."""
- # Xcode sets this for shared_libraries, and for nonbundled loadable_modules.
- if (self.spec['type'] != 'shared_library' and
- (self.spec['type'] != 'loadable_module' or self._IsBundle())):
- return None
-
- default_install_name = \
- '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)'
- install_name = self.GetPerTargetSetting(
- 'LD_DYLIB_INSTALL_NAME', default=default_install_name)
-
- # Hardcode support for the variables used in chromium for now, to
- # unblock people using the make build.
- if '$' in install_name:
- assert install_name in ('$(DYLIB_INSTALL_NAME_BASE:standardizepath)/'
- '$(WRAPPER_NAME)/$(PRODUCT_NAME)', default_install_name), (
- 'Variables in LD_DYLIB_INSTALL_NAME are not generally supported '
- 'yet in target \'%s\' (got \'%s\')' %
- (self.spec['target_name'], install_name))
-
- install_name = install_name.replace(
- '$(DYLIB_INSTALL_NAME_BASE:standardizepath)',
- self._StandardizePath(self.GetInstallNameBase()))
- if self._IsBundle():
- # These are only valid for bundles, hence the |if|.
- install_name = install_name.replace(
- '$(WRAPPER_NAME)', self.GetWrapperName())
- install_name = install_name.replace(
- '$(PRODUCT_NAME)', self.GetProductName())
- else:
- assert '$(WRAPPER_NAME)' not in install_name
- assert '$(PRODUCT_NAME)' not in install_name
-
- install_name = install_name.replace(
- '$(EXECUTABLE_PATH)', self.GetExecutablePath())
- return install_name
-
- def _MapLinkerFlagFilename(self, ldflag, gyp_to_build_path):
- """Checks if ldflag contains a filename and if so remaps it from
- gyp-directory-relative to build-directory-relative."""
- # This list is expanded on demand.
- # They get matched as:
- # -exported_symbols_list file
- # -Wl,exported_symbols_list file
- # -Wl,exported_symbols_list,file
- LINKER_FILE = r'(\S+)'
- WORD = r'\S+'
- linker_flags = [
- ['-exported_symbols_list', LINKER_FILE], # Needed for NaCl.
- ['-unexported_symbols_list', LINKER_FILE],
- ['-reexported_symbols_list', LINKER_FILE],
- ['-sectcreate', WORD, WORD, LINKER_FILE], # Needed for remoting.
- ]
- for flag_pattern in linker_flags:
- regex = re.compile('(?:-Wl,)?' + '[ ,]'.join(flag_pattern))
- m = regex.match(ldflag)
- if m:
- ldflag = ldflag[:m.start(1)] + gyp_to_build_path(m.group(1)) + \
- ldflag[m.end(1):]
- # Required for ffmpeg (no idea why they don't use LIBRARY_SEARCH_PATHS,
- # TODO(thakis): Update ffmpeg.gyp):
- if ldflag.startswith('-L'):
- ldflag = '-L' + gyp_to_build_path(ldflag[len('-L'):])
- return ldflag
-
- def GetLdflags(self, configname, product_dir, gyp_to_build_path, arch=None):
- """Returns flags that need to be passed to the linker.
-
- Args:
- configname: The name of the configuration to get ld flags for.
- product_dir: The directory where products such static and dynamic
- libraries are placed. This is added to the library search path.
- gyp_to_build_path: A function that converts paths relative to the
- current gyp file to paths relative to the build direcotry.
- """
- self.configname = configname
- ldflags = []
-
- # The xcode build is relative to a gyp file's directory, and OTHER_LDFLAGS
- # can contain entries that depend on this. Explicitly absolutify these.
- for ldflag in self._Settings().get('OTHER_LDFLAGS', []):
- ldflags.append(self._MapLinkerFlagFilename(ldflag, gyp_to_build_path))
-
- if self._Test('DEAD_CODE_STRIPPING', 'YES', default='NO'):
- ldflags.append('-Wl,-dead_strip')
-
- if self._Test('PREBINDING', 'YES', default='NO'):
- ldflags.append('-Wl,-prebind')
-
- self._Appendf(
- ldflags, 'DYLIB_COMPATIBILITY_VERSION', '-compatibility_version %s')
- self._Appendf(
- ldflags, 'DYLIB_CURRENT_VERSION', '-current_version %s')
-
- self._AppendPlatformVersionMinFlags(ldflags)
-
- if 'SDKROOT' in self._Settings() and self._SdkPath():
- ldflags.append('-isysroot ' + self._SdkPath())
-
- for library_path in self._Settings().get('LIBRARY_SEARCH_PATHS', []):
- ldflags.append('-L' + gyp_to_build_path(library_path))
-
- if 'ORDER_FILE' in self._Settings():
- ldflags.append('-Wl,-order_file ' +
- '-Wl,' + gyp_to_build_path(
- self._Settings()['ORDER_FILE']))
-
- if arch is not None:
- archs = [arch]
- else:
- assert self.configname
- archs = self.GetActiveArchs(self.configname)
- if len(archs) != 1:
- # TODO: Supporting fat binaries will be annoying.
- self._WarnUnimplemented('ARCHS')
- archs = ['i386']
- ldflags.append('-arch ' + archs[0])
-
- # Xcode adds the product directory by default.
- ldflags.append('-L' + product_dir)
-
- install_name = self.GetInstallName()
- if install_name and self.spec['type'] != 'loadable_module':
- ldflags.append('-install_name ' + install_name.replace(' ', r'\ '))
-
- for rpath in self._Settings().get('LD_RUNPATH_SEARCH_PATHS', []):
- ldflags.append('-Wl,-rpath,' + rpath)
-
- sdk_root = self._SdkPath()
- if not sdk_root:
- sdk_root = ''
- config = self.spec['configurations'][self.configname]
- framework_dirs = config.get('mac_framework_dirs', [])
- for directory in framework_dirs:
- ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
-
- if self._IsXCTest():
- platform_root = self._XcodePlatformPath(configname)
- if platform_root:
- cflags.append('-F' + platform_root + '/Developer/Library/Frameworks/')
-
- is_extension = self._IsIosAppExtension() or self._IsIosWatchKitExtension()
- if sdk_root and is_extension:
- # Adds the link flags for extensions. These flags are common for all
- # extensions and provide loader and main function.
- # These flags reflect the compilation options used by xcode to compile
- # extensions.
- ldflags.append('-lpkstart')
- if XcodeVersion() < '0900':
- ldflags.append(sdk_root +
- '/System/Library/PrivateFrameworks/PlugInKit.framework/PlugInKit')
- ldflags.append('-fapplication-extension')
- ldflags.append('-Xlinker -rpath '
- '-Xlinker @executable_path/../../Frameworks')
-
- self._Appendf(ldflags, 'CLANG_CXX_LIBRARY', '-stdlib=%s')
-
- self.configname = None
- return ldflags
-
- def GetLibtoolflags(self, configname):
- """Returns flags that need to be passed to the static linker.
-
- Args:
- configname: The name of the configuration to get ld flags for.
- """
- self.configname = configname
- libtoolflags = []
-
- for libtoolflag in self._Settings().get('OTHER_LDFLAGS', []):
- libtoolflags.append(libtoolflag)
- # TODO(thakis): ARCHS?
-
- self.configname = None
- return libtoolflags
-
- def GetPerTargetSettings(self):
- """Gets a list of all the per-target settings. This will only fetch keys
- whose values are the same across all configurations."""
- first_pass = True
- result = {}
- for configname in sorted(self.xcode_settings.keys()):
- if first_pass:
- result = dict(self.xcode_settings[configname])
- first_pass = False
- else:
- for key, value in self.xcode_settings[configname].iteritems():
- if key not in result:
- continue
- elif result[key] != value:
- del result[key]
- return result
-
- def GetPerConfigSetting(self, setting, configname, default=None):
- if configname in self.xcode_settings:
- return self.xcode_settings[configname].get(setting, default)
- else:
- return self.GetPerTargetSetting(setting, default)
-
- def GetPerTargetSetting(self, setting, default=None):
- """Tries to get xcode_settings.setting from spec. Assumes that the setting
- has the same value in all configurations and throws otherwise."""
- is_first_pass = True
- result = None
- for configname in sorted(self.xcode_settings.keys()):
- if is_first_pass:
- result = self.xcode_settings[configname].get(setting, None)
- is_first_pass = False
- else:
- assert result == self.xcode_settings[configname].get(setting, None), (
- "Expected per-target setting for '%s', got per-config setting "
- "(target %s)" % (setting, self.spec['target_name']))
- if result is None:
- return default
- return result
-
- def _GetStripPostbuilds(self, configname, output_binary, quiet):
- """Returns a list of shell commands that contain the shell commands
- neccessary to strip this target's binary. These should be run as postbuilds
- before the actual postbuilds run."""
- self.configname = configname
-
- result = []
- if (self._Test('DEPLOYMENT_POSTPROCESSING', 'YES', default='NO') and
- self._Test('STRIP_INSTALLED_PRODUCT', 'YES', default='NO')):
-
- default_strip_style = 'debugging'
- if self.spec['type'] == 'loadable_module' and self._IsBundle():
- default_strip_style = 'non-global'
- elif self.spec['type'] == 'executable':
- default_strip_style = 'all'
-
- strip_style = self._Settings().get('STRIP_STYLE', default_strip_style)
- strip_flags = {
- 'all': '',
- 'non-global': '-x',
- 'debugging': '-S',
- }[strip_style]
-
- explicit_strip_flags = self._Settings().get('STRIPFLAGS', '')
- if explicit_strip_flags:
- strip_flags += ' ' + _NormalizeEnvVarReferences(explicit_strip_flags)
-
- if not quiet:
- result.append('echo STRIP\\(%s\\)' % self.spec['target_name'])
- result.append('strip %s %s' % (strip_flags, output_binary))
-
- self.configname = None
- return result
-
- def _GetDebugInfoPostbuilds(self, configname, output, output_binary, quiet):
- """Returns a list of shell commands that contain the shell commands
- neccessary to massage this target's debug information. These should be run
- as postbuilds before the actual postbuilds run."""
- self.configname = configname
-
- # For static libraries, no dSYMs are created.
- result = []
- if (self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES') and
- self._Test(
- 'DEBUG_INFORMATION_FORMAT', 'dwarf-with-dsym', default='dwarf') and
- self.spec['type'] != 'static_library'):
- if not quiet:
- result.append('echo DSYMUTIL\\(%s\\)' % self.spec['target_name'])
- result.append('dsymutil %s -o %s' % (output_binary, output + '.dSYM'))
-
- self.configname = None
- return result
-
- def _GetTargetPostbuilds(self, configname, output, output_binary,
- quiet=False):
- """Returns a list of shell commands that contain the shell commands
- to run as postbuilds for this target, before the actual postbuilds."""
- # dSYMs need to build before stripping happens.
- return (
- self._GetDebugInfoPostbuilds(configname, output, output_binary, quiet) +
- self._GetStripPostbuilds(configname, output_binary, quiet))
-
- def _GetIOSPostbuilds(self, configname, output_binary):
- """Return a shell command to codesign the iOS output binary so it can
- be deployed to a device. This should be run as the very last step of the
- build."""
- if not (self.isIOS and self.spec['type'] == 'executable'):
- return []
-
- settings = self.xcode_settings[configname]
- key = self._GetIOSCodeSignIdentityKey(settings)
- if not key:
- return []
-
- # Warn for any unimplemented signing xcode keys.
- unimpl = ['OTHER_CODE_SIGN_FLAGS']
- unimpl = set(unimpl) & set(self.xcode_settings[configname].keys())
- if unimpl:
- print 'Warning: Some codesign keys not implemented, ignoring: %s' % (
- ', '.join(sorted(unimpl)))
-
- return ['%s code-sign-bundle "%s" "%s" "%s" "%s"' % (
- os.path.join('${TARGET_BUILD_DIR}', 'gyp-mac-tool'), key,
- settings.get('CODE_SIGN_RESOURCE_RULES_PATH', ''),
- settings.get('CODE_SIGN_ENTITLEMENTS', ''),
- settings.get('PROVISIONING_PROFILE', ''))
- ]
-
- def _GetIOSCodeSignIdentityKey(self, settings):
- identity = settings.get('CODE_SIGN_IDENTITY')
- if not identity:
- return None
- if identity not in XcodeSettings._codesigning_key_cache:
- output = subprocess.check_output(
- ['security', 'find-identity', '-p', 'codesigning', '-v'])
- for line in output.splitlines():
- if identity in line:
- fingerprint = line.split()[1]
- cache = XcodeSettings._codesigning_key_cache
- assert identity not in cache or fingerprint == cache[identity], (
- "Multiple codesigning fingerprints for identity: %s" % identity)
- XcodeSettings._codesigning_key_cache[identity] = fingerprint
- return XcodeSettings._codesigning_key_cache.get(identity, '')
-
- def AddImplicitPostbuilds(self, configname, output, output_binary,
- postbuilds=[], quiet=False):
- """Returns a list of shell commands that should run before and after
- |postbuilds|."""
- assert output_binary is not None
- pre = self._GetTargetPostbuilds(configname, output, output_binary, quiet)
- post = self._GetIOSPostbuilds(configname, output_binary)
- return pre + postbuilds + post
-
- def _AdjustLibrary(self, library, config_name=None):
- if library.endswith('.framework'):
- l = '-framework ' + os.path.splitext(os.path.basename(library))[0]
- else:
- m = self.library_re.match(library)
- if m:
- l = '-l' + m.group(1)
- else:
- l = library
-
- sdk_root = self._SdkPath(config_name)
- if not sdk_root:
- sdk_root = ''
- # Xcode 7 started shipping with ".tbd" (text based stubs) files instead of
- # ".dylib" without providing a real support for them. What it does, for
- # "/usr/lib" libraries, is do "-L/usr/lib -lname" which is dependent on the
- # library order and cause collision when building Chrome.
- #
- # Instead substitude ".tbd" to ".dylib" in the generated project when the
- # following conditions are both true:
- # - library is referenced in the gyp file as "$(SDKROOT)/**/*.dylib",
- # - the ".dylib" file does not exists but a ".tbd" file do.
- library = l.replace('$(SDKROOT)', sdk_root)
- if l.startswith('$(SDKROOT)'):
- basename, ext = os.path.splitext(library)
- if ext == '.dylib' and not os.path.exists(library):
- tbd_library = basename + '.tbd'
- if os.path.exists(tbd_library):
- library = tbd_library
- return library
-
- def AdjustLibraries(self, libraries, config_name=None):
- """Transforms entries like 'Cocoa.framework' in libraries into entries like
- '-framework Cocoa', 'libcrypto.dylib' into '-lcrypto', etc.
- """
- libraries = [self._AdjustLibrary(library, config_name)
- for library in libraries]
- return libraries
-
- def _BuildMachineOSBuild(self):
- return GetStdout(['sw_vers', '-buildVersion'])
-
- def _XcodeIOSDeviceFamily(self, configname):
- family = self.xcode_settings[configname].get('TARGETED_DEVICE_FAMILY', '1')
- return [int(x) for x in family.split(',')]
-
- def GetExtraPlistItems(self, configname=None):
- """Returns a dictionary with extra items to insert into Info.plist."""
- if configname not in XcodeSettings._plist_cache:
- cache = {}
- cache['BuildMachineOSBuild'] = self._BuildMachineOSBuild()
-
- xcode, xcode_build = XcodeVersion()
- cache['DTXcode'] = xcode
- cache['DTXcodeBuild'] = xcode_build
-
- sdk_root = self._SdkRoot(configname)
- if not sdk_root:
- sdk_root = self._DefaultSdkRoot()
- cache['DTSDKName'] = sdk_root
- if xcode >= '0430':
- cache['DTSDKBuild'] = self._GetSdkVersionInfoItem(
- sdk_root, 'ProductBuildVersion')
- else:
- cache['DTSDKBuild'] = cache['BuildMachineOSBuild']
-
- if self.isIOS:
- cache['DTPlatformName'] = cache['DTSDKName']
- if configname.endswith("iphoneos"):
- cache['DTPlatformVersion'] = self._GetSdkVersionInfoItem(
- sdk_root, 'ProductVersion')
- cache['CFBundleSupportedPlatforms'] = ['iPhoneOS']
- else:
- cache['CFBundleSupportedPlatforms'] = ['iPhoneSimulator']
- XcodeSettings._plist_cache[configname] = cache
-
- # Include extra plist items that are per-target, not per global
- # XcodeSettings.
- items = dict(XcodeSettings._plist_cache[configname])
- if self.isIOS:
- items['UIDeviceFamily'] = self._XcodeIOSDeviceFamily(configname)
- return items
-
- def _DefaultSdkRoot(self):
- """Returns the default SDKROOT to use.
-
- Prior to version 5.0.0, if SDKROOT was not explicitly set in the Xcode
- project, then the environment variable was empty. Starting with this
- version, Xcode uses the name of the newest SDK installed.
- """
- xcode_version, xcode_build = XcodeVersion()
- if xcode_version < '0500':
- return ''
- default_sdk_path = self._XcodeSdkPath('')
- default_sdk_root = XcodeSettings._sdk_root_cache.get(default_sdk_path)
- if default_sdk_root:
- return default_sdk_root
- try:
- all_sdks = GetStdout(['xcodebuild', '-showsdks'])
- except:
- # If xcodebuild fails, there will be no valid SDKs
- return ''
- for line in all_sdks.splitlines():
- items = line.split()
- if len(items) >= 3 and items[-2] == '-sdk':
- sdk_root = items[-1]
- sdk_path = self._XcodeSdkPath(sdk_root)
- if sdk_path == default_sdk_path:
- return sdk_root
- return ''
-
-
-class MacPrefixHeader(object):
- """A class that helps with emulating Xcode's GCC_PREFIX_HEADER feature.
-
- This feature consists of several pieces:
- * If GCC_PREFIX_HEADER is present, all compilations in that project get an
- additional |-include path_to_prefix_header| cflag.
- * If GCC_PRECOMPILE_PREFIX_HEADER is present too, then the prefix header is
- instead compiled, and all other compilations in the project get an
- additional |-include path_to_compiled_header| instead.
- + Compiled prefix headers have the extension gch. There is one gch file for
- every language used in the project (c, cc, m, mm), since gch files for
- different languages aren't compatible.
- + gch files themselves are built with the target's normal cflags, but they
- obviously don't get the |-include| flag. Instead, they need a -x flag that
- describes their language.
- + All o files in the target need to depend on the gch file, to make sure
- it's built before any o file is built.
-
- This class helps with some of these tasks, but it needs help from the build
- system for writing dependencies to the gch files, for writing build commands
- for the gch files, and for figuring out the location of the gch files.
- """
- def __init__(self, xcode_settings,
- gyp_path_to_build_path, gyp_path_to_build_output):
- """If xcode_settings is None, all methods on this class are no-ops.
-
- Args:
- gyp_path_to_build_path: A function that takes a gyp-relative path,
- and returns a path relative to the build directory.
- gyp_path_to_build_output: A function that takes a gyp-relative path and
- a language code ('c', 'cc', 'm', or 'mm'), and that returns a path
- to where the output of precompiling that path for that language
- should be placed (without the trailing '.gch').
- """
- # This doesn't support per-configuration prefix headers. Good enough
- # for now.
- self.header = None
- self.compile_headers = False
- if xcode_settings:
- self.header = xcode_settings.GetPerTargetSetting('GCC_PREFIX_HEADER')
- self.compile_headers = xcode_settings.GetPerTargetSetting(
- 'GCC_PRECOMPILE_PREFIX_HEADER', default='NO') != 'NO'
- self.compiled_headers = {}
- if self.header:
- if self.compile_headers:
- for lang in ['c', 'cc', 'm', 'mm']:
- self.compiled_headers[lang] = gyp_path_to_build_output(
- self.header, lang)
- self.header = gyp_path_to_build_path(self.header)
-
- def _CompiledHeader(self, lang, arch):
- assert self.compile_headers
- h = self.compiled_headers[lang]
- if arch:
- h += '.' + arch
- return h
-
- def GetInclude(self, lang, arch=None):
- """Gets the cflags to include the prefix header for language |lang|."""
- if self.compile_headers and lang in self.compiled_headers:
- return '-include %s' % self._CompiledHeader(lang, arch)
- elif self.header:
- return '-include %s' % self.header
- else:
- return ''
-
- def _Gch(self, lang, arch):
- """Returns the actual file name of the prefix header for language |lang|."""
- assert self.compile_headers
- return self._CompiledHeader(lang, arch) + '.gch'
-
- def GetObjDependencies(self, sources, objs, arch=None):
- """Given a list of source files and the corresponding object files, returns
- a list of (source, object, gch) tuples, where |gch| is the build-directory
- relative path to the gch file each object file depends on. |compilable[i]|
- has to be the source file belonging to |objs[i]|."""
- if not self.header or not self.compile_headers:
- return []
-
- result = []
- for source, obj in zip(sources, objs):
- ext = os.path.splitext(source)[1]
- lang = {
- '.c': 'c',
- '.cpp': 'cc', '.cc': 'cc', '.cxx': 'cc',
- '.m': 'm',
- '.mm': 'mm',
- }.get(ext, None)
- if lang:
- result.append((source, obj, self._Gch(lang, arch)))
- return result
-
- def GetPchBuildCommands(self, arch=None):
- """Returns [(path_to_gch, language_flag, language, header)].
- |path_to_gch| and |header| are relative to the build directory.
- """
- if not self.header or not self.compile_headers:
- return []
- return [
- (self._Gch('c', arch), '-x c-header', 'c', self.header),
- (self._Gch('cc', arch), '-x c++-header', 'cc', self.header),
- (self._Gch('m', arch), '-x objective-c-header', 'm', self.header),
- (self._Gch('mm', arch), '-x objective-c++-header', 'mm', self.header),
- ]
-
-
-def XcodeVersion():
- """Returns a tuple of version and build version of installed Xcode."""
- # `xcodebuild -version` output looks like
- # Xcode 4.6.3
- # Build version 4H1503
- # or like
- # Xcode 3.2.6
- # Component versions: DevToolsCore-1809.0; DevToolsSupport-1806.0
- # BuildVersion: 10M2518
- # Convert that to '0463', '4H1503'.
- global XCODE_VERSION_CACHE
- if XCODE_VERSION_CACHE:
- return XCODE_VERSION_CACHE
- try:
- version_list = GetStdoutQuiet(['xcodebuild', '-version']).splitlines()
- # In some circumstances xcodebuild exits 0 but doesn't return
- # the right results; for example, a user on 10.7 or 10.8 with
- # a bogus path set via xcode-select
- # In that case this may be a CLT-only install so fall back to
- # checking that version.
- if len(version_list) < 2:
- raise GypError("xcodebuild returned unexpected results")
- except:
- version = CLTVersion()
- if version:
- version = re.match(r'(\d+\.\d+\.?\d*)', version).groups()[0]
- else:
- raise GypError("No Xcode or CLT version detected!")
- # The CLT has no build information, so we return an empty string.
- version_list = [version, '']
- version = version_list[0]
- build = version_list[-1]
- # Be careful to convert "4.2" to "0420":
- version = version.split()[-1].replace('.', '')
- version = (version + '0' * (3 - len(version))).zfill(4)
- if build:
- build = build.split()[-1]
- XCODE_VERSION_CACHE = (version, build)
- return XCODE_VERSION_CACHE
-
-
-# This function ported from the logic in Homebrew's CLT version check
-def CLTVersion():
- """Returns the version of command-line tools from pkgutil."""
- # pkgutil output looks like
- # package-id: com.apple.pkg.CLTools_Executables
- # version: 5.0.1.0.1.1382131676
- # volume: /
- # location: /
- # install-time: 1382544035
- # groups: com.apple.FindSystemFiles.pkg-group com.apple.DevToolsBoth.pkg-group com.apple.DevToolsNonRelocatableShared.pkg-group
- STANDALONE_PKG_ID = "com.apple.pkg.DeveloperToolsCLILeo"
- FROM_XCODE_PKG_ID = "com.apple.pkg.DeveloperToolsCLI"
- MAVERICKS_PKG_ID = "com.apple.pkg.CLTools_Executables"
-
- regex = re.compile('version: (?P<version>.+)')
- for key in [MAVERICKS_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID]:
- try:
- output = GetStdout(['/usr/sbin/pkgutil', '--pkg-info', key])
- return re.search(regex, output).groupdict()['version']
- except:
- continue
-
-
-def GetStdoutQuiet(cmdlist):
- """Returns the content of standard output returned by invoking |cmdlist|.
- Ignores the stderr.
- Raises |GypError| if the command return with a non-zero return code."""
- job = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- out = job.communicate()[0]
- if job.returncode != 0:
- raise GypError('Error %d running %s' % (job.returncode, cmdlist[0]))
- return out.rstrip('\n')
-
-
-def GetStdout(cmdlist):
- """Returns the content of standard output returned by invoking |cmdlist|.
- Raises |GypError| if the command return with a non-zero return code."""
- job = subprocess.Popen(cmdlist, stdout=subprocess.PIPE)
- out = job.communicate()[0]
- if job.returncode != 0:
- sys.stderr.write(out + '\n')
- raise GypError('Error %d running %s' % (job.returncode, cmdlist[0]))
- return out.rstrip('\n')
-
-
-def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
- """Merges the global xcode_settings dictionary into each configuration of the
- target represented by spec. For keys that are both in the global and the local
- xcode_settings dict, the local key gets precendence.
- """
- # The xcode generator special-cases global xcode_settings and does something
- # that amounts to merging in the global xcode_settings into each local
- # xcode_settings dict.
- global_xcode_settings = global_dict.get('xcode_settings', {})
- for config in spec['configurations'].values():
- if 'xcode_settings' in config:
- new_settings = global_xcode_settings.copy()
- new_settings.update(config['xcode_settings'])
- config['xcode_settings'] = new_settings
-
-
-def IsMacBundle(flavor, spec):
- """Returns if |spec| should be treated as a bundle.
-
- Bundles are directories with a certain subdirectory structure, instead of
- just a single file. Bundle rules do not produce a binary but also package
- resources into that directory."""
- is_mac_bundle = (int(spec.get('mac_bundle', 0)) != 0 and flavor == 'mac')
- if is_mac_bundle:
- assert spec['type'] != 'none', (
- 'mac_bundle targets cannot have type none (target "%s")' %
- spec['target_name'])
- return is_mac_bundle
-
-
-def GetMacBundleResources(product_dir, xcode_settings, resources):
- """Yields (output, resource) pairs for every resource in |resources|.
- Only call this for mac bundle targets.
-
- Args:
- product_dir: Path to the directory containing the output bundle,
- relative to the build directory.
- xcode_settings: The XcodeSettings of the current target.
- resources: A list of bundle resources, relative to the build directory.
- """
- dest = os.path.join(product_dir,
- xcode_settings.GetBundleResourceFolder())
- for res in resources:
- output = dest
-
- # The make generator doesn't support it, so forbid it everywhere
- # to keep the generators more interchangable.
- assert ' ' not in res, (
- "Spaces in resource filenames not supported (%s)" % res)
-
- # Split into (path,file).
- res_parts = os.path.split(res)
-
- # Now split the path into (prefix,maybe.lproj).
- lproj_parts = os.path.split(res_parts[0])
- # If the resource lives in a .lproj bundle, add that to the destination.
- if lproj_parts[1].endswith('.lproj'):
- output = os.path.join(output, lproj_parts[1])
-
- output = os.path.join(output, res_parts[1])
- # Compiled XIB files are referred to by .nib.
- if output.endswith('.xib'):
- output = os.path.splitext(output)[0] + '.nib'
- # Compiled storyboard files are referred to by .storyboardc.
- if output.endswith('.storyboard'):
- output = os.path.splitext(output)[0] + '.storyboardc'
-
- yield output, res
-
-
-def GetMacInfoPlist(product_dir, xcode_settings, gyp_path_to_build_path):
- """Returns (info_plist, dest_plist, defines, extra_env), where:
- * |info_plist| is the source plist path, relative to the
- build directory,
- * |dest_plist| is the destination plist path, relative to the
- build directory,
- * |defines| is a list of preprocessor defines (empty if the plist
- shouldn't be preprocessed,
- * |extra_env| is a dict of env variables that should be exported when
- invoking |mac_tool copy-info-plist|.
-
- Only call this for mac bundle targets.
-
- Args:
- product_dir: Path to the directory containing the output bundle,
- relative to the build directory.
- xcode_settings: The XcodeSettings of the current target.
- gyp_to_build_path: A function that converts paths relative to the
- current gyp file to paths relative to the build direcotry.
- """
- info_plist = xcode_settings.GetPerTargetSetting('INFOPLIST_FILE')
- if not info_plist:
- return None, None, [], {}
-
- # The make generator doesn't support it, so forbid it everywhere
- # to keep the generators more interchangable.
- assert ' ' not in info_plist, (
- "Spaces in Info.plist filenames not supported (%s)" % info_plist)
-
- info_plist = gyp_path_to_build_path(info_plist)
-
- # If explicitly set to preprocess the plist, invoke the C preprocessor and
- # specify any defines as -D flags.
- if xcode_settings.GetPerTargetSetting(
- 'INFOPLIST_PREPROCESS', default='NO') == 'YES':
- # Create an intermediate file based on the path.
- defines = shlex.split(xcode_settings.GetPerTargetSetting(
- 'INFOPLIST_PREPROCESSOR_DEFINITIONS', default=''))
- else:
- defines = []
-
- dest_plist = os.path.join(product_dir, xcode_settings.GetBundlePlistPath())
- extra_env = xcode_settings.GetPerTargetSettings()
-
- return info_plist, dest_plist, defines, extra_env
-
-
-def _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
- additional_settings=None):
- """Return the environment variables that Xcode would set. See
- http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW153
- for a full list.
-
- Args:
- xcode_settings: An XcodeSettings object. If this is None, this function
- returns an empty dict.
- built_products_dir: Absolute path to the built products dir.
- srcroot: Absolute path to the source root.
- configuration: The build configuration name.
- additional_settings: An optional dict with more values to add to the
- result.
- """
- if not xcode_settings: return {}
-
- # This function is considered a friend of XcodeSettings, so let it reach into
- # its implementation details.
- spec = xcode_settings.spec
-
- # These are filled in on a as-needed basis.
- env = {
- 'BUILT_FRAMEWORKS_DIR' : built_products_dir,
- 'BUILT_PRODUCTS_DIR' : built_products_dir,
- 'CONFIGURATION' : configuration,
- 'PRODUCT_NAME' : xcode_settings.GetProductName(),
- # See /Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX\ Product\ Types.xcspec for FULL_PRODUCT_NAME
- 'SRCROOT' : srcroot,
- 'SOURCE_ROOT': '${SRCROOT}',
- # This is not true for static libraries, but currently the env is only
- # written for bundles:
- 'TARGET_BUILD_DIR' : built_products_dir,
- 'TEMP_DIR' : '${TMPDIR}',
- }
- if xcode_settings.GetPerConfigSetting('SDKROOT', configuration):
- env['SDKROOT'] = xcode_settings._SdkPath(configuration)
- else:
- env['SDKROOT'] = ''
-
- if spec['type'] in (
- 'executable', 'static_library', 'shared_library', 'loadable_module'):
- env['EXECUTABLE_NAME'] = xcode_settings.GetExecutableName()
- env['EXECUTABLE_PATH'] = xcode_settings.GetExecutablePath()
- env['FULL_PRODUCT_NAME'] = xcode_settings.GetFullProductName()
- mach_o_type = xcode_settings.GetMachOType()
- if mach_o_type:
- env['MACH_O_TYPE'] = mach_o_type
- env['PRODUCT_TYPE'] = xcode_settings.GetProductType()
- if xcode_settings._IsBundle():
- env['CONTENTS_FOLDER_PATH'] = \
- xcode_settings.GetBundleContentsFolderPath()
- env['UNLOCALIZED_RESOURCES_FOLDER_PATH'] = \
- xcode_settings.GetBundleResourceFolder()
- env['INFOPLIST_PATH'] = xcode_settings.GetBundlePlistPath()
- env['WRAPPER_NAME'] = xcode_settings.GetWrapperName()
-
- install_name = xcode_settings.GetInstallName()
- if install_name:
- env['LD_DYLIB_INSTALL_NAME'] = install_name
- install_name_base = xcode_settings.GetInstallNameBase()
- if install_name_base:
- env['DYLIB_INSTALL_NAME_BASE'] = install_name_base
- if XcodeVersion() >= '0500' and not env.get('SDKROOT'):
- sdk_root = xcode_settings._SdkRoot(configuration)
- if not sdk_root:
- sdk_root = xcode_settings._XcodeSdkPath('')
- if sdk_root is None:
- sdk_root = ''
- env['SDKROOT'] = sdk_root
-
- if not additional_settings:
- additional_settings = {}
- else:
- # Flatten lists to strings.
- for k in additional_settings:
- if not isinstance(additional_settings[k], str):
- additional_settings[k] = ' '.join(additional_settings[k])
- additional_settings.update(env)
-
- for k in additional_settings:
- additional_settings[k] = _NormalizeEnvVarReferences(additional_settings[k])
-
- return additional_settings
-
-
-def _NormalizeEnvVarReferences(str):
- """Takes a string containing variable references in the form ${FOO}, $(FOO),
- or $FOO, and returns a string with all variable references in the form ${FOO}.
- """
- # $FOO -> ${FOO}
- str = re.sub(r'\$([a-zA-Z_][a-zA-Z0-9_]*)', r'${\1}', str)
-
- # $(FOO) -> ${FOO}
- matches = re.findall(r'(\$\(([a-zA-Z0-9\-_]+)\))', str)
- for match in matches:
- to_replace, variable = match
- assert '$(' not in match, '$($(FOO)) variables not supported: ' + match
- str = str.replace(to_replace, '${' + variable + '}')
-
- return str
-
-
-def ExpandEnvVars(string, expansions):
- """Expands ${VARIABLES}, $(VARIABLES), and $VARIABLES in string per the
- expansions list. If the variable expands to something that references
- another variable, this variable is expanded as well if it's in env --
- until no variables present in env are left."""
- for k, v in reversed(expansions):
- string = string.replace('${' + k + '}', v)
- string = string.replace('$(' + k + ')', v)
- string = string.replace('$' + k, v)
- return string
-
-
-def _TopologicallySortedEnvVarKeys(env):
- """Takes a dict |env| whose values are strings that can refer to other keys,
- for example env['foo'] = '$(bar) and $(baz)'. Returns a list L of all keys of
- env such that key2 is after key1 in L if env[key2] refers to env[key1].
-
- Throws an Exception in case of dependency cycles.
- """
- # Since environment variables can refer to other variables, the evaluation
- # order is important. Below is the logic to compute the dependency graph
- # and sort it.
- regex = re.compile(r'\$\{([a-zA-Z0-9\-_]+)\}')
- def GetEdges(node):
- # Use a definition of edges such that user_of_variable -> used_varible.
- # This happens to be easier in this case, since a variable's
- # definition contains all variables it references in a single string.
- # We can then reverse the result of the topological sort at the end.
- # Since: reverse(topsort(DAG)) = topsort(reverse_edges(DAG))
- matches = set([v for v in regex.findall(env[node]) if v in env])
- for dependee in matches:
- assert '${' not in dependee, 'Nested variables not supported: ' + dependee
- return matches
-
- try:
- # Topologically sort, and then reverse, because we used an edge definition
- # that's inverted from the expected result of this function (see comment
- # above).
- order = gyp.common.TopologicallySorted(env.keys(), GetEdges)
- order.reverse()
- return order
- except gyp.common.CycleError, e:
- raise GypError(
- 'Xcode environment variables are cyclically dependent: ' + str(e.nodes))
-
-
-def GetSortedXcodeEnv(xcode_settings, built_products_dir, srcroot,
- configuration, additional_settings=None):
- env = _GetXcodeEnv(xcode_settings, built_products_dir, srcroot, configuration,
- additional_settings)
- return [(key, env[key]) for key in _TopologicallySortedEnvVarKeys(env)]
-
-
-def GetSpecPostbuildCommands(spec, quiet=False):
- """Returns the list of postbuilds explicitly defined on |spec|, in a form
- executable by a shell."""
- postbuilds = []
- for postbuild in spec.get('postbuilds', []):
- if not quiet:
- postbuilds.append('echo POSTBUILD\\(%s\\) %s' % (
- spec['target_name'], postbuild['postbuild_name']))
- postbuilds.append(gyp.common.EncodePOSIXShellList(postbuild['action']))
- return postbuilds
-
-
-def _HasIOSTarget(targets):
- """Returns true if any target contains the iOS specific key
- IPHONEOS_DEPLOYMENT_TARGET."""
- for target_dict in targets.values():
- for config in target_dict['configurations'].values():
- if config.get('xcode_settings', {}).get('IPHONEOS_DEPLOYMENT_TARGET'):
- return True
- return False
-
-
-def _AddIOSDeviceConfigurations(targets):
- """Clone all targets and append -iphoneos to the name. Configure these targets
- to build for iOS devices and use correct architectures for those builds."""
- for target_dict in targets.itervalues():
- toolset = target_dict['toolset']
- configs = target_dict['configurations']
- for config_name, config_dict in dict(configs).iteritems():
- iphoneos_config_dict = copy.deepcopy(config_dict)
- configs[config_name + '-iphoneos'] = iphoneos_config_dict
- configs[config_name + '-iphonesimulator'] = config_dict
- if toolset == 'target':
- iphoneos_config_dict['xcode_settings']['SDKROOT'] = 'iphoneos'
- return targets
-
-def CloneConfigurationForDeviceAndEmulator(target_dicts):
- """If |target_dicts| contains any iOS targets, automatically create -iphoneos
- targets for iOS device builds."""
- if _HasIOSTarget(target_dicts):
- return _AddIOSDeviceConfigurations(target_dicts)
- return target_dicts
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py b/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py
deleted file mode 100644
index 3820d6b..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py
+++ /dev/null
@@ -1,270 +0,0 @@
-# Copyright (c) 2014 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Xcode-ninja wrapper project file generator.
-
-This updates the data structures passed to the Xcode gyp generator to build
-with ninja instead. The Xcode project itself is transformed into a list of
-executable targets, each with a build step to build with ninja, and a target
-with every source and resource file. This appears to sidestep some of the
-major performance headaches experienced using complex projects and large number
-of targets within Xcode.
-"""
-
-import errno
-import gyp.generator.ninja
-import os
-import re
-import xml.sax.saxutils
-
-
-def _WriteWorkspace(main_gyp, sources_gyp, params):
- """ Create a workspace to wrap main and sources gyp paths. """
- (build_file_root, build_file_ext) = os.path.splitext(main_gyp)
- workspace_path = build_file_root + '.xcworkspace'
- options = params['options']
- if options.generator_output:
- workspace_path = os.path.join(options.generator_output, workspace_path)
- try:
- os.makedirs(workspace_path)
- except OSError, e:
- if e.errno != errno.EEXIST:
- raise
- output_string = '<?xml version="1.0" encoding="UTF-8"?>\n' + \
- '<Workspace version = "1.0">\n'
- for gyp_name in [main_gyp, sources_gyp]:
- name = os.path.splitext(os.path.basename(gyp_name))[0] + '.xcodeproj'
- name = xml.sax.saxutils.quoteattr("group:" + name)
- output_string += ' <FileRef location = %s></FileRef>\n' % name
- output_string += '</Workspace>\n'
-
- workspace_file = os.path.join(workspace_path, "contents.xcworkspacedata")
-
- try:
- with open(workspace_file, 'r') as input_file:
- input_string = input_file.read()
- if input_string == output_string:
- return
- except IOError:
- # Ignore errors if the file doesn't exist.
- pass
-
- with open(workspace_file, 'w') as output_file:
- output_file.write(output_string)
-
-def _TargetFromSpec(old_spec, params):
- """ Create fake target for xcode-ninja wrapper. """
- # Determine ninja top level build dir (e.g. /path/to/out).
- ninja_toplevel = None
- jobs = 0
- if params:
- options = params['options']
- ninja_toplevel = \
- os.path.join(options.toplevel_dir,
- gyp.generator.ninja.ComputeOutputDir(params))
- jobs = params.get('generator_flags', {}).get('xcode_ninja_jobs', 0)
-
- target_name = old_spec.get('target_name')
- product_name = old_spec.get('product_name', target_name)
- product_extension = old_spec.get('product_extension')
-
- ninja_target = {}
- ninja_target['target_name'] = target_name
- ninja_target['product_name'] = product_name
- if product_extension:
- ninja_target['product_extension'] = product_extension
- ninja_target['toolset'] = old_spec.get('toolset')
- ninja_target['default_configuration'] = old_spec.get('default_configuration')
- ninja_target['configurations'] = {}
-
- # Tell Xcode to look in |ninja_toplevel| for build products.
- new_xcode_settings = {}
- if ninja_toplevel:
- new_xcode_settings['CONFIGURATION_BUILD_DIR'] = \
- "%s/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)" % ninja_toplevel
-
- if 'configurations' in old_spec:
- for config in old_spec['configurations'].iterkeys():
- old_xcode_settings = \
- old_spec['configurations'][config].get('xcode_settings', {})
- if 'IPHONEOS_DEPLOYMENT_TARGET' in old_xcode_settings:
- new_xcode_settings['CODE_SIGNING_REQUIRED'] = "NO"
- new_xcode_settings['IPHONEOS_DEPLOYMENT_TARGET'] = \
- old_xcode_settings['IPHONEOS_DEPLOYMENT_TARGET']
- ninja_target['configurations'][config] = {}
- ninja_target['configurations'][config]['xcode_settings'] = \
- new_xcode_settings
-
- ninja_target['mac_bundle'] = old_spec.get('mac_bundle', 0)
- ninja_target['ios_app_extension'] = old_spec.get('ios_app_extension', 0)
- ninja_target['ios_watchkit_extension'] = \
- old_spec.get('ios_watchkit_extension', 0)
- ninja_target['ios_watchkit_app'] = old_spec.get('ios_watchkit_app', 0)
- ninja_target['type'] = old_spec['type']
- if ninja_toplevel:
- ninja_target['actions'] = [
- {
- 'action_name': 'Compile and copy %s via ninja' % target_name,
- 'inputs': [],
- 'outputs': [],
- 'action': [
- 'env',
- 'PATH=%s' % os.environ['PATH'],
- 'ninja',
- '-C',
- new_xcode_settings['CONFIGURATION_BUILD_DIR'],
- target_name,
- ],
- 'message': 'Compile and copy %s via ninja' % target_name,
- },
- ]
- if jobs > 0:
- ninja_target['actions'][0]['action'].extend(('-j', jobs))
- return ninja_target
-
-def IsValidTargetForWrapper(target_extras, executable_target_pattern, spec):
- """Limit targets for Xcode wrapper.
-
- Xcode sometimes performs poorly with too many targets, so only include
- proper executable targets, with filters to customize.
- Arguments:
- target_extras: Regular expression to always add, matching any target.
- executable_target_pattern: Regular expression limiting executable targets.
- spec: Specifications for target.
- """
- target_name = spec.get('target_name')
- # Always include targets matching target_extras.
- if target_extras is not None and re.search(target_extras, target_name):
- return True
-
- # Otherwise just show executable targets.
- if spec.get('type', '') == 'executable' and \
- spec.get('product_extension', '') != 'bundle':
-
- # If there is a filter and the target does not match, exclude the target.
- if executable_target_pattern is not None:
- if not re.search(executable_target_pattern, target_name):
- return False
- return True
- return False
-
-def CreateWrapper(target_list, target_dicts, data, params):
- """Initialize targets for the ninja wrapper.
-
- This sets up the necessary variables in the targets to generate Xcode projects
- that use ninja as an external builder.
- Arguments:
- target_list: List of target pairs: 'base/base.gyp:base'.
- target_dicts: Dict of target properties keyed on target pair.
- data: Dict of flattened build files keyed on gyp path.
- params: Dict of global options for gyp.
- """
- orig_gyp = params['build_files'][0]
- for gyp_name, gyp_dict in data.iteritems():
- if gyp_name == orig_gyp:
- depth = gyp_dict['_DEPTH']
-
- # Check for custom main gyp name, otherwise use the default CHROMIUM_GYP_FILE
- # and prepend .ninja before the .gyp extension.
- generator_flags = params.get('generator_flags', {})
- main_gyp = generator_flags.get('xcode_ninja_main_gyp', None)
- if main_gyp is None:
- (build_file_root, build_file_ext) = os.path.splitext(orig_gyp)
- main_gyp = build_file_root + ".ninja" + build_file_ext
-
- # Create new |target_list|, |target_dicts| and |data| data structures.
- new_target_list = []
- new_target_dicts = {}
- new_data = {}
-
- # Set base keys needed for |data|.
- new_data[main_gyp] = {}
- new_data[main_gyp]['included_files'] = []
- new_data[main_gyp]['targets'] = []
- new_data[main_gyp]['xcode_settings'] = \
- data[orig_gyp].get('xcode_settings', {})
-
- # Normally the xcode-ninja generator includes only valid executable targets.
- # If |xcode_ninja_executable_target_pattern| is set, that list is reduced to
- # executable targets that match the pattern. (Default all)
- executable_target_pattern = \
- generator_flags.get('xcode_ninja_executable_target_pattern', None)
-
- # For including other non-executable targets, add the matching target name
- # to the |xcode_ninja_target_pattern| regular expression. (Default none)
- target_extras = generator_flags.get('xcode_ninja_target_pattern', None)
-
- for old_qualified_target in target_list:
- spec = target_dicts[old_qualified_target]
- if IsValidTargetForWrapper(target_extras, executable_target_pattern, spec):
- # Add to new_target_list.
- target_name = spec.get('target_name')
- new_target_name = '%s:%s#target' % (main_gyp, target_name)
- new_target_list.append(new_target_name)
-
- # Add to new_target_dicts.
- new_target_dicts[new_target_name] = _TargetFromSpec(spec, params)
-
- # Add to new_data.
- for old_target in data[old_qualified_target.split(':')[0]]['targets']:
- if old_target['target_name'] == target_name:
- new_data_target = {}
- new_data_target['target_name'] = old_target['target_name']
- new_data_target['toolset'] = old_target['toolset']
- new_data[main_gyp]['targets'].append(new_data_target)
-
- # Create sources target.
- sources_target_name = 'sources_for_indexing'
- sources_target = _TargetFromSpec(
- { 'target_name' : sources_target_name,
- 'toolset': 'target',
- 'default_configuration': 'Default',
- 'mac_bundle': '0',
- 'type': 'executable'
- }, None)
-
- # Tell Xcode to look everywhere for headers.
- sources_target['configurations'] = {'Default': { 'include_dirs': [ depth ] } }
-
- sources = []
- for target, target_dict in target_dicts.iteritems():
- base = os.path.dirname(target)
- files = target_dict.get('sources', []) + \
- target_dict.get('mac_bundle_resources', [])
- for action in target_dict.get('actions', []):
- files.extend(action.get('inputs', []))
- # Remove files starting with $. These are mostly intermediate files for the
- # build system.
- files = [ file for file in files if not file.startswith('$')]
-
- # Make sources relative to root build file.
- relative_path = os.path.dirname(main_gyp)
- sources += [ os.path.relpath(os.path.join(base, file), relative_path)
- for file in files ]
-
- sources_target['sources'] = sorted(set(sources))
-
- # Put sources_to_index in it's own gyp.
- sources_gyp = \
- os.path.join(os.path.dirname(main_gyp), sources_target_name + ".gyp")
- fully_qualified_target_name = \
- '%s:%s#target' % (sources_gyp, sources_target_name)
-
- # Add to new_target_list, new_target_dicts and new_data.
- new_target_list.append(fully_qualified_target_name)
- new_target_dicts[fully_qualified_target_name] = sources_target
- new_data_target = {}
- new_data_target['target_name'] = sources_target['target_name']
- new_data_target['_DEPTH'] = depth
- new_data_target['toolset'] = "target"
- new_data[sources_gyp] = {}
- new_data[sources_gyp]['targets'] = []
- new_data[sources_gyp]['included_files'] = []
- new_data[sources_gyp]['xcode_settings'] = \
- data[orig_gyp].get('xcode_settings', {})
- new_data[sources_gyp]['targets'].append(new_data_target)
-
- # Write workspace to file.
- _WriteWorkspace(main_gyp, sources_gyp, params)
- return (new_target_list, new_target_dicts, new_data)
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py b/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py
deleted file mode 100644
index d08b7f7..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py
+++ /dev/null
@@ -1,2927 +0,0 @@
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Xcode project file generator.
-
-This module is both an Xcode project file generator and a documentation of the
-Xcode project file format. Knowledge of the project file format was gained
-based on extensive experience with Xcode, and by making changes to projects in
-Xcode.app and observing the resultant changes in the associated project files.
-
-XCODE PROJECT FILES
-
-The generator targets the file format as written by Xcode 3.2 (specifically,
-3.2.6), but past experience has taught that the format has not changed
-significantly in the past several years, and future versions of Xcode are able
-to read older project files.
-
-Xcode project files are "bundled": the project "file" from an end-user's
-perspective is actually a directory with an ".xcodeproj" extension. The
-project file from this module's perspective is actually a file inside this
-directory, always named "project.pbxproj". This file contains a complete
-description of the project and is all that is needed to use the xcodeproj.
-Other files contained in the xcodeproj directory are simply used to store
-per-user settings, such as the state of various UI elements in the Xcode
-application.
-
-The project.pbxproj file is a property list, stored in a format almost
-identical to the NeXTstep property list format. The file is able to carry
-Unicode data, and is encoded in UTF-8. The root element in the property list
-is a dictionary that contains several properties of minimal interest, and two
-properties of immense interest. The most important property is a dictionary
-named "objects". The entire structure of the project is represented by the
-children of this property. The objects dictionary is keyed by unique 96-bit
-values represented by 24 uppercase hexadecimal characters. Each value in the
-objects dictionary is itself a dictionary, describing an individual object.
-
-Each object in the dictionary is a member of a class, which is identified by
-the "isa" property of each object. A variety of classes are represented in a
-project file. Objects can refer to other objects by ID, using the 24-character
-hexadecimal object key. A project's objects form a tree, with a root object
-of class PBXProject at the root. As an example, the PBXProject object serves
-as parent to an XCConfigurationList object defining the build configurations
-used in the project, a PBXGroup object serving as a container for all files
-referenced in the project, and a list of target objects, each of which defines
-a target in the project. There are several different types of target object,
-such as PBXNativeTarget and PBXAggregateTarget. In this module, this
-relationship is expressed by having each target type derive from an abstract
-base named XCTarget.
-
-The project.pbxproj file's root dictionary also contains a property, sibling to
-the "objects" dictionary, named "rootObject". The value of rootObject is a
-24-character object key referring to the root PBXProject object in the
-objects dictionary.
-
-In Xcode, every file used as input to a target or produced as a final product
-of a target must appear somewhere in the hierarchy rooted at the PBXGroup
-object referenced by the PBXProject's mainGroup property. A PBXGroup is
-generally represented as a folder in the Xcode application. PBXGroups can
-contain other PBXGroups as well as PBXFileReferences, which are pointers to
-actual files.
-
-Each XCTarget contains a list of build phases, represented in this module by
-the abstract base XCBuildPhase. Examples of concrete XCBuildPhase derivations
-are PBXSourcesBuildPhase and PBXFrameworksBuildPhase, which correspond to the
-"Compile Sources" and "Link Binary With Libraries" phases displayed in the
-Xcode application. Files used as input to these phases (for example, source
-files in the former case and libraries and frameworks in the latter) are
-represented by PBXBuildFile objects, referenced by elements of "files" lists
-in XCTarget objects. Each PBXBuildFile object refers to a PBXBuildFile
-object as a "weak" reference: it does not "own" the PBXBuildFile, which is
-owned by the root object's mainGroup or a descendant group. In most cases, the
-layer of indirection between an XCBuildPhase and a PBXFileReference via a
-PBXBuildFile appears extraneous, but there's actually one reason for this:
-file-specific compiler flags are added to the PBXBuildFile object so as to
-allow a single file to be a member of multiple targets while having distinct
-compiler flags for each. These flags can be modified in the Xcode applciation
-in the "Build" tab of a File Info window.
-
-When a project is open in the Xcode application, Xcode will rewrite it. As
-such, this module is careful to adhere to the formatting used by Xcode, to
-avoid insignificant changes appearing in the file when it is used in the
-Xcode application. This will keep version control repositories happy, and
-makes it possible to compare a project file used in Xcode to one generated by
-this module to determine if any significant changes were made in the
-application.
-
-Xcode has its own way of assigning 24-character identifiers to each object,
-which is not duplicated here. Because the identifier only is only generated
-once, when an object is created, and is then left unchanged, there is no need
-to attempt to duplicate Xcode's behavior in this area. The generator is free
-to select any identifier, even at random, to refer to the objects it creates,
-and Xcode will retain those identifiers and use them when subsequently
-rewriting the project file. However, the generator would choose new random
-identifiers each time the project files are generated, leading to difficulties
-comparing "used" project files to "pristine" ones produced by this module,
-and causing the appearance of changes as every object identifier is changed
-when updated projects are checked in to a version control repository. To
-mitigate this problem, this module chooses identifiers in a more deterministic
-way, by hashing a description of each object as well as its parent and ancestor
-objects. This strategy should result in minimal "shift" in IDs as successive
-generations of project files are produced.
-
-THIS MODULE
-
-This module introduces several classes, all derived from the XCObject class.
-Nearly all of the "brains" are built into the XCObject class, which understands
-how to create and modify objects, maintain the proper tree structure, compute
-identifiers, and print objects. For the most part, classes derived from
-XCObject need only provide a _schema class object, a dictionary that
-expresses what properties objects of the class may contain.
-
-Given this structure, it's possible to build a minimal project file by creating
-objects of the appropriate types and making the proper connections:
-
- config_list = XCConfigurationList()
- group = PBXGroup()
- project = PBXProject({'buildConfigurationList': config_list,
- 'mainGroup': group})
-
-With the project object set up, it can be added to an XCProjectFile object.
-XCProjectFile is a pseudo-class in the sense that it is a concrete XCObject
-subclass that does not actually correspond to a class type found in a project
-file. Rather, it is used to represent the project file's root dictionary.
-Printing an XCProjectFile will print the entire project file, including the
-full "objects" dictionary.
-
- project_file = XCProjectFile({'rootObject': project})
- project_file.ComputeIDs()
- project_file.Print()
-
-Xcode project files are always encoded in UTF-8. This module will accept
-strings of either the str class or the unicode class. Strings of class str
-are assumed to already be encoded in UTF-8. Obviously, if you're just using
-ASCII, you won't encounter difficulties because ASCII is a UTF-8 subset.
-Strings of class unicode are handled properly and encoded in UTF-8 when
-a project file is output.
-"""
-
-import gyp.common
-import posixpath
-import re
-import struct
-import sys
-
-# hashlib is supplied as of Python 2.5 as the replacement interface for sha
-# and other secure hashes. In 2.6, sha is deprecated. Import hashlib if
-# available, avoiding a deprecation warning under 2.6. Import sha otherwise,
-# preserving 2.4 compatibility.
-try:
- import hashlib
- _new_sha1 = hashlib.sha1
-except ImportError:
- import sha
- _new_sha1 = sha.new
-
-
-# See XCObject._EncodeString. This pattern is used to determine when a string
-# can be printed unquoted. Strings that match this pattern may be printed
-# unquoted. Strings that do not match must be quoted and may be further
-# transformed to be properly encoded. Note that this expression matches the
-# characters listed with "+", for 1 or more occurrences: if a string is empty,
-# it must not match this pattern, because it needs to be encoded as "".
-_unquoted = re.compile('^[A-Za-z0-9$./_]+$')
-
-# Strings that match this pattern are quoted regardless of what _unquoted says.
-# Oddly, Xcode will quote any string with a run of three or more underscores.
-_quoted = re.compile('___')
-
-# This pattern should match any character that needs to be escaped by
-# XCObject._EncodeString. See that function.
-_escaped = re.compile('[\\\\"]|[\x00-\x1f]')
-
-
-# Used by SourceTreeAndPathFromPath
-_path_leading_variable = re.compile(r'^\$\((.*?)\)(/(.*))?$')
-
-def SourceTreeAndPathFromPath(input_path):
- """Given input_path, returns a tuple with sourceTree and path values.
-
- Examples:
- input_path (source_tree, output_path)
- '$(VAR)/path' ('VAR', 'path')
- '$(VAR)' ('VAR', None)
- 'path' (None, 'path')
- """
-
- source_group_match = _path_leading_variable.match(input_path)
- if source_group_match:
- source_tree = source_group_match.group(1)
- output_path = source_group_match.group(3) # This may be None.
- else:
- source_tree = None
- output_path = input_path
-
- return (source_tree, output_path)
-
-def ConvertVariablesToShellSyntax(input_string):
- return re.sub(r'\$\((.*?)\)', '${\\1}', input_string)
-
-class XCObject(object):
- """The abstract base of all class types used in Xcode project files.
-
- Class variables:
- _schema: A dictionary defining the properties of this class. The keys to
- _schema are string property keys as used in project files. Values
- are a list of four or five elements:
- [ is_list, property_type, is_strong, is_required, default ]
- is_list: True if the property described is a list, as opposed
- to a single element.
- property_type: The type to use as the value of the property,
- or if is_list is True, the type to use for each
- element of the value's list. property_type must
- be an XCObject subclass, or one of the built-in
- types str, int, or dict.
- is_strong: If property_type is an XCObject subclass, is_strong
- is True to assert that this class "owns," or serves
- as parent, to the property value (or, if is_list is
- True, values). is_strong must be False if
- property_type is not an XCObject subclass.
- is_required: True if the property is required for the class.
- Note that is_required being True does not preclude
- an empty string ("", in the case of property_type
- str) or list ([], in the case of is_list True) from
- being set for the property.
- default: Optional. If is_requried is True, default may be set
- to provide a default value for objects that do not supply
- their own value. If is_required is True and default
- is not provided, users of the class must supply their own
- value for the property.
- Note that although the values of the array are expressed in
- boolean terms, subclasses provide values as integers to conserve
- horizontal space.
- _should_print_single_line: False in XCObject. Subclasses whose objects
- should be written to the project file in the
- alternate single-line format, such as
- PBXFileReference and PBXBuildFile, should
- set this to True.
- _encode_transforms: Used by _EncodeString to encode unprintable characters.
- The index into this list is the ordinal of the
- character to transform; each value is a string
- used to represent the character in the output. XCObject
- provides an _encode_transforms list suitable for most
- XCObject subclasses.
- _alternate_encode_transforms: Provided for subclasses that wish to use
- the alternate encoding rules. Xcode seems
- to use these rules when printing objects in
- single-line format. Subclasses that desire
- this behavior should set _encode_transforms
- to _alternate_encode_transforms.
- _hashables: A list of XCObject subclasses that can be hashed by ComputeIDs
- to construct this object's ID. Most classes that need custom
- hashing behavior should do it by overriding Hashables,
- but in some cases an object's parent may wish to push a
- hashable value into its child, and it can do so by appending
- to _hashables.
- Attributes:
- id: The object's identifier, a 24-character uppercase hexadecimal string.
- Usually, objects being created should not set id until the entire
- project file structure is built. At that point, UpdateIDs() should
- be called on the root object to assign deterministic values for id to
- each object in the tree.
- parent: The object's parent. This is set by a parent XCObject when a child
- object is added to it.
- _properties: The object's property dictionary. An object's properties are
- described by its class' _schema variable.
- """
-
- _schema = {}
- _should_print_single_line = False
-
- # See _EncodeString.
- _encode_transforms = []
- i = 0
- while i < ord(' '):
- _encode_transforms.append('\\U%04x' % i)
- i = i + 1
- _encode_transforms[7] = '\\a'
- _encode_transforms[8] = '\\b'
- _encode_transforms[9] = '\\t'
- _encode_transforms[10] = '\\n'
- _encode_transforms[11] = '\\v'
- _encode_transforms[12] = '\\f'
- _encode_transforms[13] = '\\n'
-
- _alternate_encode_transforms = list(_encode_transforms)
- _alternate_encode_transforms[9] = chr(9)
- _alternate_encode_transforms[10] = chr(10)
- _alternate_encode_transforms[11] = chr(11)
-
- def __init__(self, properties=None, id=None, parent=None):
- self.id = id
- self.parent = parent
- self._properties = {}
- self._hashables = []
- self._SetDefaultsFromSchema()
- self.UpdateProperties(properties)
-
- def __repr__(self):
- try:
- name = self.Name()
- except NotImplementedError:
- return '<%s at 0x%x>' % (self.__class__.__name__, id(self))
- return '<%s %r at 0x%x>' % (self.__class__.__name__, name, id(self))
-
- def Copy(self):
- """Make a copy of this object.
-
- The new object will have its own copy of lists and dicts. Any XCObject
- objects owned by this object (marked "strong") will be copied in the
- new object, even those found in lists. If this object has any weak
- references to other XCObjects, the same references are added to the new
- object without making a copy.
- """
-
- that = self.__class__(id=self.id, parent=self.parent)
- for key, value in self._properties.iteritems():
- is_strong = self._schema[key][2]
-
- if isinstance(value, XCObject):
- if is_strong:
- new_value = value.Copy()
- new_value.parent = that
- that._properties[key] = new_value
- else:
- that._properties[key] = value
- elif isinstance(value, str) or isinstance(value, unicode) or \
- isinstance(value, int):
- that._properties[key] = value
- elif isinstance(value, list):
- if is_strong:
- # If is_strong is True, each element is an XCObject, so it's safe to
- # call Copy.
- that._properties[key] = []
- for item in value:
- new_item = item.Copy()
- new_item.parent = that
- that._properties[key].append(new_item)
- else:
- that._properties[key] = value[:]
- elif isinstance(value, dict):
- # dicts are never strong.
- if is_strong:
- raise TypeError('Strong dict for key ' + key + ' in ' + \
- self.__class__.__name__)
- else:
- that._properties[key] = value.copy()
- else:
- raise TypeError('Unexpected type ' + value.__class__.__name__ + \
- ' for key ' + key + ' in ' + self.__class__.__name__)
-
- return that
-
- def Name(self):
- """Return the name corresponding to an object.
-
- Not all objects necessarily need to be nameable, and not all that do have
- a "name" property. Override as needed.
- """
-
- # If the schema indicates that "name" is required, try to access the
- # property even if it doesn't exist. This will result in a KeyError
- # being raised for the property that should be present, which seems more
- # appropriate than NotImplementedError in this case.
- if 'name' in self._properties or \
- ('name' in self._schema and self._schema['name'][3]):
- return self._properties['name']
-
- raise NotImplementedError(self.__class__.__name__ + ' must implement Name')
-
- def Comment(self):
- """Return a comment string for the object.
-
- Most objects just use their name as the comment, but PBXProject uses
- different values.
-
- The returned comment is not escaped and does not have any comment marker
- strings applied to it.
- """
-
- return self.Name()
-
- def Hashables(self):
- hashables = [self.__class__.__name__]
-
- name = self.Name()
- if name != None:
- hashables.append(name)
-
- hashables.extend(self._hashables)
-
- return hashables
-
- def HashablesForChild(self):
- return None
-
- def ComputeIDs(self, recursive=True, overwrite=True, seed_hash=None):
- """Set "id" properties deterministically.
-
- An object's "id" property is set based on a hash of its class type and
- name, as well as the class type and name of all ancestor objects. As
- such, it is only advisable to call ComputeIDs once an entire project file
- tree is built.
-
- If recursive is True, recurse into all descendant objects and update their
- hashes.
-
- If overwrite is True, any existing value set in the "id" property will be
- replaced.
- """
-
- def _HashUpdate(hash, data):
- """Update hash with data's length and contents.
-
- If the hash were updated only with the value of data, it would be
- possible for clowns to induce collisions by manipulating the names of
- their objects. By adding the length, it's exceedingly less likely that
- ID collisions will be encountered, intentionally or not.
- """
-
- hash.update(struct.pack('>i', len(data)))
- hash.update(data)
-
- if seed_hash is None:
- seed_hash = _new_sha1()
-
- hash = seed_hash.copy()
-
- hashables = self.Hashables()
- assert len(hashables) > 0
- for hashable in hashables:
- _HashUpdate(hash, hashable)
-
- if recursive:
- hashables_for_child = self.HashablesForChild()
- if hashables_for_child is None:
- child_hash = hash
- else:
- assert len(hashables_for_child) > 0
- child_hash = seed_hash.copy()
- for hashable in hashables_for_child:
- _HashUpdate(child_hash, hashable)
-
- for child in self.Children():
- child.ComputeIDs(recursive, overwrite, child_hash)
-
- if overwrite or self.id is None:
- # Xcode IDs are only 96 bits (24 hex characters), but a SHA-1 digest is
- # is 160 bits. Instead of throwing out 64 bits of the digest, xor them
- # into the portion that gets used.
- assert hash.digest_size % 4 == 0
- digest_int_count = hash.digest_size / 4
- digest_ints = struct.unpack('>' + 'I' * digest_int_count, hash.digest())
- id_ints = [0, 0, 0]
- for index in xrange(0, digest_int_count):
- id_ints[index % 3] ^= digest_ints[index]
- self.id = '%08X%08X%08X' % tuple(id_ints)
-
- def EnsureNoIDCollisions(self):
- """Verifies that no two objects have the same ID. Checks all descendants.
- """
-
- ids = {}
- descendants = self.Descendants()
- for descendant in descendants:
- if descendant.id in ids:
- other = ids[descendant.id]
- raise KeyError(
- 'Duplicate ID %s, objects "%s" and "%s" in "%s"' % \
- (descendant.id, str(descendant._properties),
- str(other._properties), self._properties['rootObject'].Name()))
- ids[descendant.id] = descendant
-
- def Children(self):
- """Returns a list of all of this object's owned (strong) children."""
-
- children = []
- for property, attributes in self._schema.iteritems():
- (is_list, property_type, is_strong) = attributes[0:3]
- if is_strong and property in self._properties:
- if not is_list:
- children.append(self._properties[property])
- else:
- children.extend(self._properties[property])
- return children
-
- def Descendants(self):
- """Returns a list of all of this object's descendants, including this
- object.
- """
-
- children = self.Children()
- descendants = [self]
- for child in children:
- descendants.extend(child.Descendants())
- return descendants
-
- def PBXProjectAncestor(self):
- # The base case for recursion is defined at PBXProject.PBXProjectAncestor.
- if self.parent:
- return self.parent.PBXProjectAncestor()
- return None
-
- def _EncodeComment(self, comment):
- """Encodes a comment to be placed in the project file output, mimicing
- Xcode behavior.
- """
-
- # This mimics Xcode behavior by wrapping the comment in "/*" and "*/". If
- # the string already contains a "*/", it is turned into "(*)/". This keeps
- # the file writer from outputting something that would be treated as the
- # end of a comment in the middle of something intended to be entirely a
- # comment.
-
- return '/* ' + comment.replace('*/', '(*)/') + ' */'
-
- def _EncodeTransform(self, match):
- # This function works closely with _EncodeString. It will only be called
- # by re.sub with match.group(0) containing a character matched by the
- # the _escaped expression.
- char = match.group(0)
-
- # Backslashes (\) and quotation marks (") are always replaced with a
- # backslash-escaped version of the same. Everything else gets its
- # replacement from the class' _encode_transforms array.
- if char == '\\':
- return '\\\\'
- if char == '"':
- return '\\"'
- return self._encode_transforms[ord(char)]
-
- def _EncodeString(self, value):
- """Encodes a string to be placed in the project file output, mimicing
- Xcode behavior.
- """
-
- # Use quotation marks when any character outside of the range A-Z, a-z, 0-9,
- # $ (dollar sign), . (period), and _ (underscore) is present. Also use
- # quotation marks to represent empty strings.
- #
- # Escape " (double-quote) and \ (backslash) by preceding them with a
- # backslash.
- #
- # Some characters below the printable ASCII range are encoded specially:
- # 7 ^G BEL is encoded as "\a"
- # 8 ^H BS is encoded as "\b"
- # 11 ^K VT is encoded as "\v"
- # 12 ^L NP is encoded as "\f"
- # 127 ^? DEL is passed through as-is without escaping
- # - In PBXFileReference and PBXBuildFile objects:
- # 9 ^I HT is passed through as-is without escaping
- # 10 ^J NL is passed through as-is without escaping
- # 13 ^M CR is passed through as-is without escaping
- # - In other objects:
- # 9 ^I HT is encoded as "\t"
- # 10 ^J NL is encoded as "\n"
- # 13 ^M CR is encoded as "\n" rendering it indistinguishable from
- # 10 ^J NL
- # All other characters within the ASCII control character range (0 through
- # 31 inclusive) are encoded as "\U001f" referring to the Unicode code point
- # in hexadecimal. For example, character 14 (^N SO) is encoded as "\U000e".
- # Characters above the ASCII range are passed through to the output encoded
- # as UTF-8 without any escaping. These mappings are contained in the
- # class' _encode_transforms list.
-
- if _unquoted.search(value) and not _quoted.search(value):
- return value
-
- return '"' + _escaped.sub(self._EncodeTransform, value) + '"'
-
- def _XCPrint(self, file, tabs, line):
- file.write('\t' * tabs + line)
-
- def _XCPrintableValue(self, tabs, value, flatten_list=False):
- """Returns a representation of value that may be printed in a project file,
- mimicing Xcode's behavior.
-
- _XCPrintableValue can handle str and int values, XCObjects (which are
- made printable by returning their id property), and list and dict objects
- composed of any of the above types. When printing a list or dict, and
- _should_print_single_line is False, the tabs parameter is used to determine
- how much to indent the lines corresponding to the items in the list or
- dict.
-
- If flatten_list is True, single-element lists will be transformed into
- strings.
- """
-
- printable = ''
- comment = None
-
- if self._should_print_single_line:
- sep = ' '
- element_tabs = ''
- end_tabs = ''
- else:
- sep = '\n'
- element_tabs = '\t' * (tabs + 1)
- end_tabs = '\t' * tabs
-
- if isinstance(value, XCObject):
- printable += value.id
- comment = value.Comment()
- elif isinstance(value, str):
- printable += self._EncodeString(value)
- elif isinstance(value, unicode):
- printable += self._EncodeString(value.encode('utf-8'))
- elif isinstance(value, int):
- printable += str(value)
- elif isinstance(value, list):
- if flatten_list and len(value) <= 1:
- if len(value) == 0:
- printable += self._EncodeString('')
- else:
- printable += self._EncodeString(value[0])
- else:
- printable = '(' + sep
- for item in value:
- printable += element_tabs + \
- self._XCPrintableValue(tabs + 1, item, flatten_list) + \
- ',' + sep
- printable += end_tabs + ')'
- elif isinstance(value, dict):
- printable = '{' + sep
- for item_key, item_value in sorted(value.iteritems()):
- printable += element_tabs + \
- self._XCPrintableValue(tabs + 1, item_key, flatten_list) + ' = ' + \
- self._XCPrintableValue(tabs + 1, item_value, flatten_list) + ';' + \
- sep
- printable += end_tabs + '}'
- else:
- raise TypeError("Can't make " + value.__class__.__name__ + ' printable')
-
- if comment != None:
- printable += ' ' + self._EncodeComment(comment)
-
- return printable
-
- def _XCKVPrint(self, file, tabs, key, value):
- """Prints a key and value, members of an XCObject's _properties dictionary,
- to file.
-
- tabs is an int identifying the indentation level. If the class'
- _should_print_single_line variable is True, tabs is ignored and the
- key-value pair will be followed by a space insead of a newline.
- """
-
- if self._should_print_single_line:
- printable = ''
- after_kv = ' '
- else:
- printable = '\t' * tabs
- after_kv = '\n'
-
- # Xcode usually prints remoteGlobalIDString values in PBXContainerItemProxy
- # objects without comments. Sometimes it prints them with comments, but
- # the majority of the time, it doesn't. To avoid unnecessary changes to
- # the project file after Xcode opens it, don't write comments for
- # remoteGlobalIDString. This is a sucky hack and it would certainly be
- # cleaner to extend the schema to indicate whether or not a comment should
- # be printed, but since this is the only case where the problem occurs and
- # Xcode itself can't seem to make up its mind, the hack will suffice.
- #
- # Also see PBXContainerItemProxy._schema['remoteGlobalIDString'].
- if key == 'remoteGlobalIDString' and isinstance(self,
- PBXContainerItemProxy):
- value_to_print = value.id
- else:
- value_to_print = value
-
- # PBXBuildFile's settings property is represented in the output as a dict,
- # but a hack here has it represented as a string. Arrange to strip off the
- # quotes so that it shows up in the output as expected.
- if key == 'settings' and isinstance(self, PBXBuildFile):
- strip_value_quotes = True
- else:
- strip_value_quotes = False
-
- # In another one-off, let's set flatten_list on buildSettings properties
- # of XCBuildConfiguration objects, because that's how Xcode treats them.
- if key == 'buildSettings' and isinstance(self, XCBuildConfiguration):
- flatten_list = True
- else:
- flatten_list = False
-
- try:
- printable_key = self._XCPrintableValue(tabs, key, flatten_list)
- printable_value = self._XCPrintableValue(tabs, value_to_print,
- flatten_list)
- if strip_value_quotes and len(printable_value) > 1 and \
- printable_value[0] == '"' and printable_value[-1] == '"':
- printable_value = printable_value[1:-1]
- printable += printable_key + ' = ' + printable_value + ';' + after_kv
- except TypeError, e:
- gyp.common.ExceptionAppend(e,
- 'while printing key "%s"' % key)
- raise
-
- self._XCPrint(file, 0, printable)
-
- def Print(self, file=sys.stdout):
- """Prints a reprentation of this object to file, adhering to Xcode output
- formatting.
- """
-
- self.VerifyHasRequiredProperties()
-
- if self._should_print_single_line:
- # When printing an object in a single line, Xcode doesn't put any space
- # between the beginning of a dictionary (or presumably a list) and the
- # first contained item, so you wind up with snippets like
- # ...CDEF = {isa = PBXFileReference; fileRef = 0123...
- # If it were me, I would have put a space in there after the opening
- # curly, but I guess this is just another one of those inconsistencies
- # between how Xcode prints PBXFileReference and PBXBuildFile objects as
- # compared to other objects. Mimic Xcode's behavior here by using an
- # empty string for sep.
- sep = ''
- end_tabs = 0
- else:
- sep = '\n'
- end_tabs = 2
-
- # Start the object. For example, '\t\tPBXProject = {\n'.
- self._XCPrint(file, 2, self._XCPrintableValue(2, self) + ' = {' + sep)
-
- # "isa" isn't in the _properties dictionary, it's an intrinsic property
- # of the class which the object belongs to. Xcode always outputs "isa"
- # as the first element of an object dictionary.
- self._XCKVPrint(file, 3, 'isa', self.__class__.__name__)
-
- # The remaining elements of an object dictionary are sorted alphabetically.
- for property, value in sorted(self._properties.iteritems()):
- self._XCKVPrint(file, 3, property, value)
-
- # End the object.
- self._XCPrint(file, end_tabs, '};\n')
-
- def UpdateProperties(self, properties, do_copy=False):
- """Merge the supplied properties into the _properties dictionary.
-
- The input properties must adhere to the class schema or a KeyError or
- TypeError exception will be raised. If adding an object of an XCObject
- subclass and the schema indicates a strong relationship, the object's
- parent will be set to this object.
-
- If do_copy is True, then lists, dicts, strong-owned XCObjects, and
- strong-owned XCObjects in lists will be copied instead of having their
- references added.
- """
-
- if properties is None:
- return
-
- for property, value in properties.iteritems():
- # Make sure the property is in the schema.
- if not property in self._schema:
- raise KeyError(property + ' not in ' + self.__class__.__name__)
-
- # Make sure the property conforms to the schema.
- (is_list, property_type, is_strong) = self._schema[property][0:3]
- if is_list:
- if value.__class__ != list:
- raise TypeError(
- property + ' of ' + self.__class__.__name__ + \
- ' must be list, not ' + value.__class__.__name__)
- for item in value:
- if not isinstance(item, property_type) and \
- not (item.__class__ == unicode and property_type == str):
- # Accept unicode where str is specified. str is treated as
- # UTF-8-encoded.
- raise TypeError(
- 'item of ' + property + ' of ' + self.__class__.__name__ + \
- ' must be ' + property_type.__name__ + ', not ' + \
- item.__class__.__name__)
- elif not isinstance(value, property_type) and \
- not (value.__class__ == unicode and property_type == str):
- # Accept unicode where str is specified. str is treated as
- # UTF-8-encoded.
- raise TypeError(
- property + ' of ' + self.__class__.__name__ + ' must be ' + \
- property_type.__name__ + ', not ' + value.__class__.__name__)
-
- # Checks passed, perform the assignment.
- if do_copy:
- if isinstance(value, XCObject):
- if is_strong:
- self._properties[property] = value.Copy()
- else:
- self._properties[property] = value
- elif isinstance(value, str) or isinstance(value, unicode) or \
- isinstance(value, int):
- self._properties[property] = value
- elif isinstance(value, list):
- if is_strong:
- # If is_strong is True, each element is an XCObject, so it's safe
- # to call Copy.
- self._properties[property] = []
- for item in value:
- self._properties[property].append(item.Copy())
- else:
- self._properties[property] = value[:]
- elif isinstance(value, dict):
- self._properties[property] = value.copy()
- else:
- raise TypeError("Don't know how to copy a " + \
- value.__class__.__name__ + ' object for ' + \
- property + ' in ' + self.__class__.__name__)
- else:
- self._properties[property] = value
-
- # Set up the child's back-reference to this object. Don't use |value|
- # any more because it may not be right if do_copy is true.
- if is_strong:
- if not is_list:
- self._properties[property].parent = self
- else:
- for item in self._properties[property]:
- item.parent = self
-
- def HasProperty(self, key):
- return key in self._properties
-
- def GetProperty(self, key):
- return self._properties[key]
-
- def SetProperty(self, key, value):
- self.UpdateProperties({key: value})
-
- def DelProperty(self, key):
- if key in self._properties:
- del self._properties[key]
-
- def AppendProperty(self, key, value):
- # TODO(mark): Support ExtendProperty too (and make this call that)?
-
- # Schema validation.
- if not key in self._schema:
- raise KeyError(key + ' not in ' + self.__class__.__name__)
-
- (is_list, property_type, is_strong) = self._schema[key][0:3]
- if not is_list:
- raise TypeError(key + ' of ' + self.__class__.__name__ + ' must be list')
- if not isinstance(value, property_type):
- raise TypeError('item of ' + key + ' of ' + self.__class__.__name__ + \
- ' must be ' + property_type.__name__ + ', not ' + \
- value.__class__.__name__)
-
- # If the property doesn't exist yet, create a new empty list to receive the
- # item.
- if not key in self._properties:
- self._properties[key] = []
-
- # Set up the ownership link.
- if is_strong:
- value.parent = self
-
- # Store the item.
- self._properties[key].append(value)
-
- def VerifyHasRequiredProperties(self):
- """Ensure that all properties identified as required by the schema are
- set.
- """
-
- # TODO(mark): A stronger verification mechanism is needed. Some
- # subclasses need to perform validation beyond what the schema can enforce.
- for property, attributes in self._schema.iteritems():
- (is_list, property_type, is_strong, is_required) = attributes[0:4]
- if is_required and not property in self._properties:
- raise KeyError(self.__class__.__name__ + ' requires ' + property)
-
- def _SetDefaultsFromSchema(self):
- """Assign object default values according to the schema. This will not
- overwrite properties that have already been set."""
-
- defaults = {}
- for property, attributes in self._schema.iteritems():
- (is_list, property_type, is_strong, is_required) = attributes[0:4]
- if is_required and len(attributes) >= 5 and \
- not property in self._properties:
- default = attributes[4]
-
- defaults[property] = default
-
- if len(defaults) > 0:
- # Use do_copy=True so that each new object gets its own copy of strong
- # objects, lists, and dicts.
- self.UpdateProperties(defaults, do_copy=True)
-
-
-class XCHierarchicalElement(XCObject):
- """Abstract base for PBXGroup and PBXFileReference. Not represented in a
- project file."""
-
- # TODO(mark): Do name and path belong here? Probably so.
- # If path is set and name is not, name may have a default value. Name will
- # be set to the basename of path, if the basename of path is different from
- # the full value of path. If path is already just a leaf name, name will
- # not be set.
- _schema = XCObject._schema.copy()
- _schema.update({
- 'comments': [0, str, 0, 0],
- 'fileEncoding': [0, str, 0, 0],
- 'includeInIndex': [0, int, 0, 0],
- 'indentWidth': [0, int, 0, 0],
- 'lineEnding': [0, int, 0, 0],
- 'sourceTree': [0, str, 0, 1, '<group>'],
- 'tabWidth': [0, int, 0, 0],
- 'usesTabs': [0, int, 0, 0],
- 'wrapsLines': [0, int, 0, 0],
- })
-
- def __init__(self, properties=None, id=None, parent=None):
- # super
- XCObject.__init__(self, properties, id, parent)
- if 'path' in self._properties and not 'name' in self._properties:
- path = self._properties['path']
- name = posixpath.basename(path)
- if name != '' and path != name:
- self.SetProperty('name', name)
-
- if 'path' in self._properties and \
- (not 'sourceTree' in self._properties or \
- self._properties['sourceTree'] == '<group>'):
- # If the pathname begins with an Xcode variable like "$(SDKROOT)/", take
- # the variable out and make the path be relative to that variable by
- # assigning the variable name as the sourceTree.
- (source_tree, path) = SourceTreeAndPathFromPath(self._properties['path'])
- if source_tree != None:
- self._properties['sourceTree'] = source_tree
- if path != None:
- self._properties['path'] = path
- if source_tree != None and path is None and \
- not 'name' in self._properties:
- # The path was of the form "$(SDKROOT)" with no path following it.
- # This object is now relative to that variable, so it has no path
- # attribute of its own. It does, however, keep a name.
- del self._properties['path']
- self._properties['name'] = source_tree
-
- def Name(self):
- if 'name' in self._properties:
- return self._properties['name']
- elif 'path' in self._properties:
- return self._properties['path']
- else:
- # This happens in the case of the root PBXGroup.
- return None
-
- def Hashables(self):
- """Custom hashables for XCHierarchicalElements.
-
- XCHierarchicalElements are special. Generally, their hashes shouldn't
- change if the paths don't change. The normal XCObject implementation of
- Hashables adds a hashable for each object, which means that if
- the hierarchical structure changes (possibly due to changes caused when
- TakeOverOnlyChild runs and encounters slight changes in the hierarchy),
- the hashes will change. For example, if a project file initially contains
- a/b/f1 and a/b becomes collapsed into a/b, f1 will have a single parent
- a/b. If someone later adds a/f2 to the project file, a/b can no longer be
- collapsed, and f1 winds up with parent b and grandparent a. That would
- be sufficient to change f1's hash.
-
- To counteract this problem, hashables for all XCHierarchicalElements except
- for the main group (which has neither a name nor a path) are taken to be
- just the set of path components. Because hashables are inherited from
- parents, this provides assurance that a/b/f1 has the same set of hashables
- whether its parent is b or a/b.
-
- The main group is a special case. As it is permitted to have no name or
- path, it is permitted to use the standard XCObject hash mechanism. This
- is not considered a problem because there can be only one main group.
- """
-
- if self == self.PBXProjectAncestor()._properties['mainGroup']:
- # super
- return XCObject.Hashables(self)
-
- hashables = []
-
- # Put the name in first, ensuring that if TakeOverOnlyChild collapses
- # children into a top-level group like "Source", the name always goes
- # into the list of hashables without interfering with path components.
- if 'name' in self._properties:
- # Make it less likely for people to manipulate hashes by following the
- # pattern of always pushing an object type value onto the list first.
- hashables.append(self.__class__.__name__ + '.name')
- hashables.append(self._properties['name'])
-
- # NOTE: This still has the problem that if an absolute path is encountered,
- # including paths with a sourceTree, they'll still inherit their parents'
- # hashables, even though the paths aren't relative to their parents. This
- # is not expected to be much of a problem in practice.
- path = self.PathFromSourceTreeAndPath()
- if path != None:
- components = path.split(posixpath.sep)
- for component in components:
- hashables.append(self.__class__.__name__ + '.path')
- hashables.append(component)
-
- hashables.extend(self._hashables)
-
- return hashables
-
- def Compare(self, other):
- # Allow comparison of these types. PBXGroup has the highest sort rank;
- # PBXVariantGroup is treated as equal to PBXFileReference.
- valid_class_types = {
- PBXFileReference: 'file',
- PBXGroup: 'group',
- PBXVariantGroup: 'file',
- }
- self_type = valid_class_types[self.__class__]
- other_type = valid_class_types[other.__class__]
-
- if self_type == other_type:
- # If the two objects are of the same sort rank, compare their names.
- return cmp(self.Name(), other.Name())
-
- # Otherwise, sort groups before everything else.
- if self_type == 'group':
- return -1
- return 1
-
- def CompareRootGroup(self, other):
- # This function should be used only to compare direct children of the
- # containing PBXProject's mainGroup. These groups should appear in the
- # listed order.
- # TODO(mark): "Build" is used by gyp.generator.xcode, perhaps the
- # generator should have a way of influencing this list rather than having
- # to hardcode for the generator here.
- order = ['Source', 'Intermediates', 'Projects', 'Frameworks', 'Products',
- 'Build']
-
- # If the groups aren't in the listed order, do a name comparison.
- # Otherwise, groups in the listed order should come before those that
- # aren't.
- self_name = self.Name()
- other_name = other.Name()
- self_in = isinstance(self, PBXGroup) and self_name in order
- other_in = isinstance(self, PBXGroup) and other_name in order
- if not self_in and not other_in:
- return self.Compare(other)
- if self_name in order and not other_name in order:
- return -1
- if other_name in order and not self_name in order:
- return 1
-
- # If both groups are in the listed order, go by the defined order.
- self_index = order.index(self_name)
- other_index = order.index(other_name)
- if self_index < other_index:
- return -1
- if self_index > other_index:
- return 1
- return 0
-
- def PathFromSourceTreeAndPath(self):
- # Turn the object's sourceTree and path properties into a single flat
- # string of a form comparable to the path parameter. If there's a
- # sourceTree property other than "<group>", wrap it in $(...) for the
- # comparison.
- components = []
- if self._properties['sourceTree'] != '<group>':
- components.append('$(' + self._properties['sourceTree'] + ')')
- if 'path' in self._properties:
- components.append(self._properties['path'])
-
- if len(components) > 0:
- return posixpath.join(*components)
-
- return None
-
- def FullPath(self):
- # Returns a full path to self relative to the project file, or relative
- # to some other source tree. Start with self, and walk up the chain of
- # parents prepending their paths, if any, until no more parents are
- # available (project-relative path) or until a path relative to some
- # source tree is found.
- xche = self
- path = None
- while isinstance(xche, XCHierarchicalElement) and \
- (path is None or \
- (not path.startswith('/') and not path.startswith('$'))):
- this_path = xche.PathFromSourceTreeAndPath()
- if this_path != None and path != None:
- path = posixpath.join(this_path, path)
- elif this_path != None:
- path = this_path
- xche = xche.parent
-
- return path
-
-
-class PBXGroup(XCHierarchicalElement):
- """
- Attributes:
- _children_by_path: Maps pathnames of children of this PBXGroup to the
- actual child XCHierarchicalElement objects.
- _variant_children_by_name_and_path: Maps (name, path) tuples of
- PBXVariantGroup children to the actual child PBXVariantGroup objects.
- """
-
- _schema = XCHierarchicalElement._schema.copy()
- _schema.update({
- 'children': [1, XCHierarchicalElement, 1, 1, []],
- 'name': [0, str, 0, 0],
- 'path': [0, str, 0, 0],
- })
-
- def __init__(self, properties=None, id=None, parent=None):
- # super
- XCHierarchicalElement.__init__(self, properties, id, parent)
- self._children_by_path = {}
- self._variant_children_by_name_and_path = {}
- for child in self._properties.get('children', []):
- self._AddChildToDicts(child)
-
- def Hashables(self):
- # super
- hashables = XCHierarchicalElement.Hashables(self)
-
- # It is not sufficient to just rely on name and parent to build a unique
- # hashable : a node could have two child PBXGroup sharing a common name.
- # To add entropy the hashable is enhanced with the names of all its
- # children.
- for child in self._properties.get('children', []):
- child_name = child.Name()
- if child_name != None:
- hashables.append(child_name)
-
- return hashables
-
- def HashablesForChild(self):
- # To avoid a circular reference the hashables used to compute a child id do
- # not include the child names.
- return XCHierarchicalElement.Hashables(self)
-
- def _AddChildToDicts(self, child):
- # Sets up this PBXGroup object's dicts to reference the child properly.
- child_path = child.PathFromSourceTreeAndPath()
- if child_path:
- if child_path in self._children_by_path:
- raise ValueError('Found multiple children with path ' + child_path)
- self._children_by_path[child_path] = child
-
- if isinstance(child, PBXVariantGroup):
- child_name = child._properties.get('name', None)
- key = (child_name, child_path)
- if key in self._variant_children_by_name_and_path:
- raise ValueError('Found multiple PBXVariantGroup children with ' + \
- 'name ' + str(child_name) + ' and path ' + \
- str(child_path))
- self._variant_children_by_name_and_path[key] = child
-
- def AppendChild(self, child):
- # Callers should use this instead of calling
- # AppendProperty('children', child) directly because this function
- # maintains the group's dicts.
- self.AppendProperty('children', child)
- self._AddChildToDicts(child)
-
- def GetChildByName(self, name):
- # This is not currently optimized with a dict as GetChildByPath is because
- # it has few callers. Most callers probably want GetChildByPath. This
- # function is only useful to get children that have names but no paths,
- # which is rare. The children of the main group ("Source", "Products",
- # etc.) is pretty much the only case where this likely to come up.
- #
- # TODO(mark): Maybe this should raise an error if more than one child is
- # present with the same name.
- if not 'children' in self._properties:
- return None
-
- for child in self._properties['children']:
- if child.Name() == name:
- return child
-
- return None
-
- def GetChildByPath(self, path):
- if not path:
- return None
-
- if path in self._children_by_path:
- return self._children_by_path[path]
-
- return None
-
- def GetChildByRemoteObject(self, remote_object):
- # This method is a little bit esoteric. Given a remote_object, which
- # should be a PBXFileReference in another project file, this method will
- # return this group's PBXReferenceProxy object serving as a local proxy
- # for the remote PBXFileReference.
- #
- # This function might benefit from a dict optimization as GetChildByPath
- # for some workloads, but profiling shows that it's not currently a
- # problem.
- if not 'children' in self._properties:
- return None
-
- for child in self._properties['children']:
- if not isinstance(child, PBXReferenceProxy):
- continue
-
- container_proxy = child._properties['remoteRef']
- if container_proxy._properties['remoteGlobalIDString'] == remote_object:
- return child
-
- return None
-
- def AddOrGetFileByPath(self, path, hierarchical):
- """Returns an existing or new file reference corresponding to path.
-
- If hierarchical is True, this method will create or use the necessary
- hierarchical group structure corresponding to path. Otherwise, it will
- look in and create an item in the current group only.
-
- If an existing matching reference is found, it is returned, otherwise, a
- new one will be created, added to the correct group, and returned.
-
- If path identifies a directory by virtue of carrying a trailing slash,
- this method returns a PBXFileReference of "folder" type. If path
- identifies a variant, by virtue of it identifying a file inside a directory
- with an ".lproj" extension, this method returns a PBXVariantGroup
- containing the variant named by path, and possibly other variants. For
- all other paths, a "normal" PBXFileReference will be returned.
- """
-
- # Adding or getting a directory? Directories end with a trailing slash.
- is_dir = False
- if path.endswith('/'):
- is_dir = True
- path = posixpath.normpath(path)
- if is_dir:
- path = path + '/'
-
- # Adding or getting a variant? Variants are files inside directories
- # with an ".lproj" extension. Xcode uses variants for localization. For
- # a variant path/to/Language.lproj/MainMenu.nib, put a variant group named
- # MainMenu.nib inside path/to, and give it a variant named Language. In
- # this example, grandparent would be set to path/to and parent_root would
- # be set to Language.
- variant_name = None
- parent = posixpath.dirname(path)
- grandparent = posixpath.dirname(parent)
- parent_basename = posixpath.basename(parent)
- (parent_root, parent_ext) = posixpath.splitext(parent_basename)
- if parent_ext == '.lproj':
- variant_name = parent_root
- if grandparent == '':
- grandparent = None
-
- # Putting a directory inside a variant group is not currently supported.
- assert not is_dir or variant_name is None
-
- path_split = path.split(posixpath.sep)
- if len(path_split) == 1 or \
- ((is_dir or variant_name != None) and len(path_split) == 2) or \
- not hierarchical:
- # The PBXFileReference or PBXVariantGroup will be added to or gotten from
- # this PBXGroup, no recursion necessary.
- if variant_name is None:
- # Add or get a PBXFileReference.
- file_ref = self.GetChildByPath(path)
- if file_ref != None:
- assert file_ref.__class__ == PBXFileReference
- else:
- file_ref = PBXFileReference({'path': path})
- self.AppendChild(file_ref)
- else:
- # Add or get a PBXVariantGroup. The variant group name is the same
- # as the basename (MainMenu.nib in the example above). grandparent
- # specifies the path to the variant group itself, and path_split[-2:]
- # is the path of the specific variant relative to its group.
- variant_group_name = posixpath.basename(path)
- variant_group_ref = self.AddOrGetVariantGroupByNameAndPath(
- variant_group_name, grandparent)
- variant_path = posixpath.sep.join(path_split[-2:])
- variant_ref = variant_group_ref.GetChildByPath(variant_path)
- if variant_ref != None:
- assert variant_ref.__class__ == PBXFileReference
- else:
- variant_ref = PBXFileReference({'name': variant_name,
- 'path': variant_path})
- variant_group_ref.AppendChild(variant_ref)
- # The caller is interested in the variant group, not the specific
- # variant file.
- file_ref = variant_group_ref
- return file_ref
- else:
- # Hierarchical recursion. Add or get a PBXGroup corresponding to the
- # outermost path component, and then recurse into it, chopping off that
- # path component.
- next_dir = path_split[0]
- group_ref = self.GetChildByPath(next_dir)
- if group_ref != None:
- assert group_ref.__class__ == PBXGroup
- else:
- group_ref = PBXGroup({'path': next_dir})
- self.AppendChild(group_ref)
- return group_ref.AddOrGetFileByPath(posixpath.sep.join(path_split[1:]),
- hierarchical)
-
- def AddOrGetVariantGroupByNameAndPath(self, name, path):
- """Returns an existing or new PBXVariantGroup for name and path.
-
- If a PBXVariantGroup identified by the name and path arguments is already
- present as a child of this object, it is returned. Otherwise, a new
- PBXVariantGroup with the correct properties is created, added as a child,
- and returned.
-
- This method will generally be called by AddOrGetFileByPath, which knows
- when to create a variant group based on the structure of the pathnames
- passed to it.
- """
-
- key = (name, path)
- if key in self._variant_children_by_name_and_path:
- variant_group_ref = self._variant_children_by_name_and_path[key]
- assert variant_group_ref.__class__ == PBXVariantGroup
- return variant_group_ref
-
- variant_group_properties = {'name': name}
- if path != None:
- variant_group_properties['path'] = path
- variant_group_ref = PBXVariantGroup(variant_group_properties)
- self.AppendChild(variant_group_ref)
-
- return variant_group_ref
-
- def TakeOverOnlyChild(self, recurse=False):
- """If this PBXGroup has only one child and it's also a PBXGroup, take
- it over by making all of its children this object's children.
-
- This function will continue to take over only children when those children
- are groups. If there are three PBXGroups representing a, b, and c, with
- c inside b and b inside a, and a and b have no other children, this will
- result in a taking over both b and c, forming a PBXGroup for a/b/c.
-
- If recurse is True, this function will recurse into children and ask them
- to collapse themselves by taking over only children as well. Assuming
- an example hierarchy with files at a/b/c/d1, a/b/c/d2, and a/b/c/d3/e/f
- (d1, d2, and f are files, the rest are groups), recursion will result in
- a group for a/b/c containing a group for d3/e.
- """
-
- # At this stage, check that child class types are PBXGroup exactly,
- # instead of using isinstance. The only subclass of PBXGroup,
- # PBXVariantGroup, should not participate in reparenting in the same way:
- # reparenting by merging different object types would be wrong.
- while len(self._properties['children']) == 1 and \
- self._properties['children'][0].__class__ == PBXGroup:
- # Loop to take over the innermost only-child group possible.
-
- child = self._properties['children'][0]
-
- # Assume the child's properties, including its children. Save a copy
- # of this object's old properties, because they'll still be needed.
- # This object retains its existing id and parent attributes.
- old_properties = self._properties
- self._properties = child._properties
- self._children_by_path = child._children_by_path
-
- if not 'sourceTree' in self._properties or \
- self._properties['sourceTree'] == '<group>':
- # The child was relative to its parent. Fix up the path. Note that
- # children with a sourceTree other than "<group>" are not relative to
- # their parents, so no path fix-up is needed in that case.
- if 'path' in old_properties:
- if 'path' in self._properties:
- # Both the original parent and child have paths set.
- self._properties['path'] = posixpath.join(old_properties['path'],
- self._properties['path'])
- else:
- # Only the original parent has a path, use it.
- self._properties['path'] = old_properties['path']
- if 'sourceTree' in old_properties:
- # The original parent had a sourceTree set, use it.
- self._properties['sourceTree'] = old_properties['sourceTree']
-
- # If the original parent had a name set, keep using it. If the original
- # parent didn't have a name but the child did, let the child's name
- # live on. If the name attribute seems unnecessary now, get rid of it.
- if 'name' in old_properties and old_properties['name'] != None and \
- old_properties['name'] != self.Name():
- self._properties['name'] = old_properties['name']
- if 'name' in self._properties and 'path' in self._properties and \
- self._properties['name'] == self._properties['path']:
- del self._properties['name']
-
- # Notify all children of their new parent.
- for child in self._properties['children']:
- child.parent = self
-
- # If asked to recurse, recurse.
- if recurse:
- for child in self._properties['children']:
- if child.__class__ == PBXGroup:
- child.TakeOverOnlyChild(recurse)
-
- def SortGroup(self):
- self._properties['children'] = \
- sorted(self._properties['children'], cmp=lambda x,y: x.Compare(y))
-
- # Recurse.
- for child in self._properties['children']:
- if isinstance(child, PBXGroup):
- child.SortGroup()
-
-
-class XCFileLikeElement(XCHierarchicalElement):
- # Abstract base for objects that can be used as the fileRef property of
- # PBXBuildFile.
-
- def PathHashables(self):
- # A PBXBuildFile that refers to this object will call this method to
- # obtain additional hashables specific to this XCFileLikeElement. Don't
- # just use this object's hashables, they're not specific and unique enough
- # on their own (without access to the parent hashables.) Instead, provide
- # hashables that identify this object by path by getting its hashables as
- # well as the hashables of ancestor XCHierarchicalElement objects.
-
- hashables = []
- xche = self
- while xche != None and isinstance(xche, XCHierarchicalElement):
- xche_hashables = xche.Hashables()
- for index in xrange(0, len(xche_hashables)):
- hashables.insert(index, xche_hashables[index])
- xche = xche.parent
- return hashables
-
-
-class XCContainerPortal(XCObject):
- # Abstract base for objects that can be used as the containerPortal property
- # of PBXContainerItemProxy.
- pass
-
-
-class XCRemoteObject(XCObject):
- # Abstract base for objects that can be used as the remoteGlobalIDString
- # property of PBXContainerItemProxy.
- pass
-
-
-class PBXFileReference(XCFileLikeElement, XCContainerPortal, XCRemoteObject):
- _schema = XCFileLikeElement._schema.copy()
- _schema.update({
- 'explicitFileType': [0, str, 0, 0],
- 'lastKnownFileType': [0, str, 0, 0],
- 'name': [0, str, 0, 0],
- 'path': [0, str, 0, 1],
- })
-
- # Weird output rules for PBXFileReference.
- _should_print_single_line = True
- # super
- _encode_transforms = XCFileLikeElement._alternate_encode_transforms
-
- def __init__(self, properties=None, id=None, parent=None):
- # super
- XCFileLikeElement.__init__(self, properties, id, parent)
- if 'path' in self._properties and self._properties['path'].endswith('/'):
- self._properties['path'] = self._properties['path'][:-1]
- is_dir = True
- else:
- is_dir = False
-
- if 'path' in self._properties and \
- not 'lastKnownFileType' in self._properties and \
- not 'explicitFileType' in self._properties:
- # TODO(mark): This is the replacement for a replacement for a quick hack.
- # It is no longer incredibly sucky, but this list needs to be extended.
- extension_map = {
- 'a': 'archive.ar',
- 'app': 'wrapper.application',
- 'bdic': 'file',
- 'bundle': 'wrapper.cfbundle',
- 'c': 'sourcecode.c.c',
- 'cc': 'sourcecode.cpp.cpp',
- 'cpp': 'sourcecode.cpp.cpp',
- 'css': 'text.css',
- 'cxx': 'sourcecode.cpp.cpp',
- 'dart': 'sourcecode',
- 'dylib': 'compiled.mach-o.dylib',
- 'framework': 'wrapper.framework',
- 'gyp': 'sourcecode',
- 'gypi': 'sourcecode',
- 'h': 'sourcecode.c.h',
- 'hxx': 'sourcecode.cpp.h',
- 'icns': 'image.icns',
- 'java': 'sourcecode.java',
- 'js': 'sourcecode.javascript',
- 'kext': 'wrapper.kext',
- 'm': 'sourcecode.c.objc',
- 'mm': 'sourcecode.cpp.objcpp',
- 'nib': 'wrapper.nib',
- 'o': 'compiled.mach-o.objfile',
- 'pdf': 'image.pdf',
- 'pl': 'text.script.perl',
- 'plist': 'text.plist.xml',
- 'pm': 'text.script.perl',
- 'png': 'image.png',
- 'py': 'text.script.python',
- 'r': 'sourcecode.rez',
- 'rez': 'sourcecode.rez',
- 's': 'sourcecode.asm',
- 'storyboard': 'file.storyboard',
- 'strings': 'text.plist.strings',
- 'swift': 'sourcecode.swift',
- 'ttf': 'file',
- 'xcassets': 'folder.assetcatalog',
- 'xcconfig': 'text.xcconfig',
- 'xcdatamodel': 'wrapper.xcdatamodel',
- 'xcdatamodeld':'wrapper.xcdatamodeld',
- 'xib': 'file.xib',
- 'y': 'sourcecode.yacc',
- }
-
- prop_map = {
- 'dart': 'explicitFileType',
- 'gyp': 'explicitFileType',
- 'gypi': 'explicitFileType',
- }
-
- if is_dir:
- file_type = 'folder'
- prop_name = 'lastKnownFileType'
- else:
- basename = posixpath.basename(self._properties['path'])
- (root, ext) = posixpath.splitext(basename)
- # Check the map using a lowercase extension.
- # TODO(mark): Maybe it should try with the original case first and fall
- # back to lowercase, in case there are any instances where case
- # matters. There currently aren't.
- if ext != '':
- ext = ext[1:].lower()
-
- # TODO(mark): "text" is the default value, but "file" is appropriate
- # for unrecognized files not containing text. Xcode seems to choose
- # based on content.
- file_type = extension_map.get(ext, 'text')
- prop_name = prop_map.get(ext, 'lastKnownFileType')
-
- self._properties[prop_name] = file_type
-
-
-class PBXVariantGroup(PBXGroup, XCFileLikeElement):
- """PBXVariantGroup is used by Xcode to represent localizations."""
- # No additions to the schema relative to PBXGroup.
- pass
-
-
-# PBXReferenceProxy is also an XCFileLikeElement subclass. It is defined below
-# because it uses PBXContainerItemProxy, defined below.
-
-
-class XCBuildConfiguration(XCObject):
- _schema = XCObject._schema.copy()
- _schema.update({
- 'baseConfigurationReference': [0, PBXFileReference, 0, 0],
- 'buildSettings': [0, dict, 0, 1, {}],
- 'name': [0, str, 0, 1],
- })
-
- def HasBuildSetting(self, key):
- return key in self._properties['buildSettings']
-
- def GetBuildSetting(self, key):
- return self._properties['buildSettings'][key]
-
- def SetBuildSetting(self, key, value):
- # TODO(mark): If a list, copy?
- self._properties['buildSettings'][key] = value
-
- def AppendBuildSetting(self, key, value):
- if not key in self._properties['buildSettings']:
- self._properties['buildSettings'][key] = []
- self._properties['buildSettings'][key].append(value)
-
- def DelBuildSetting(self, key):
- if key in self._properties['buildSettings']:
- del self._properties['buildSettings'][key]
-
- def SetBaseConfiguration(self, value):
- self._properties['baseConfigurationReference'] = value
-
-class XCConfigurationList(XCObject):
- # _configs is the default list of configurations.
- _configs = [ XCBuildConfiguration({'name': 'Debug'}),
- XCBuildConfiguration({'name': 'Release'}) ]
-
- _schema = XCObject._schema.copy()
- _schema.update({
- 'buildConfigurations': [1, XCBuildConfiguration, 1, 1, _configs],
- 'defaultConfigurationIsVisible': [0, int, 0, 1, 1],
- 'defaultConfigurationName': [0, str, 0, 1, 'Release'],
- })
-
- def Name(self):
- return 'Build configuration list for ' + \
- self.parent.__class__.__name__ + ' "' + self.parent.Name() + '"'
-
- def ConfigurationNamed(self, name):
- """Convenience accessor to obtain an XCBuildConfiguration by name."""
- for configuration in self._properties['buildConfigurations']:
- if configuration._properties['name'] == name:
- return configuration
-
- raise KeyError(name)
-
- def DefaultConfiguration(self):
- """Convenience accessor to obtain the default XCBuildConfiguration."""
- return self.ConfigurationNamed(self._properties['defaultConfigurationName'])
-
- def HasBuildSetting(self, key):
- """Determines the state of a build setting in all XCBuildConfiguration
- child objects.
-
- If all child objects have key in their build settings, and the value is the
- same in all child objects, returns 1.
-
- If no child objects have the key in their build settings, returns 0.
-
- If some, but not all, child objects have the key in their build settings,
- or if any children have different values for the key, returns -1.
- """
-
- has = None
- value = None
- for configuration in self._properties['buildConfigurations']:
- configuration_has = configuration.HasBuildSetting(key)
- if has is None:
- has = configuration_has
- elif has != configuration_has:
- return -1
-
- if configuration_has:
- configuration_value = configuration.GetBuildSetting(key)
- if value is None:
- value = configuration_value
- elif value != configuration_value:
- return -1
-
- if not has:
- return 0
-
- return 1
-
- def GetBuildSetting(self, key):
- """Gets the build setting for key.
-
- All child XCConfiguration objects must have the same value set for the
- setting, or a ValueError will be raised.
- """
-
- # TODO(mark): This is wrong for build settings that are lists. The list
- # contents should be compared (and a list copy returned?)
-
- value = None
- for configuration in self._properties['buildConfigurations']:
- configuration_value = configuration.GetBuildSetting(key)
- if value is None:
- value = configuration_value
- else:
- if value != configuration_value:
- raise ValueError('Variant values for ' + key)
-
- return value
-
- def SetBuildSetting(self, key, value):
- """Sets the build setting for key to value in all child
- XCBuildConfiguration objects.
- """
-
- for configuration in self._properties['buildConfigurations']:
- configuration.SetBuildSetting(key, value)
-
- def AppendBuildSetting(self, key, value):
- """Appends value to the build setting for key, which is treated as a list,
- in all child XCBuildConfiguration objects.
- """
-
- for configuration in self._properties['buildConfigurations']:
- configuration.AppendBuildSetting(key, value)
-
- def DelBuildSetting(self, key):
- """Deletes the build setting key from all child XCBuildConfiguration
- objects.
- """
-
- for configuration in self._properties['buildConfigurations']:
- configuration.DelBuildSetting(key)
-
- def SetBaseConfiguration(self, value):
- """Sets the build configuration in all child XCBuildConfiguration objects.
- """
-
- for configuration in self._properties['buildConfigurations']:
- configuration.SetBaseConfiguration(value)
-
-
-class PBXBuildFile(XCObject):
- _schema = XCObject._schema.copy()
- _schema.update({
- 'fileRef': [0, XCFileLikeElement, 0, 1],
- 'settings': [0, str, 0, 0], # hack, it's a dict
- })
-
- # Weird output rules for PBXBuildFile.
- _should_print_single_line = True
- _encode_transforms = XCObject._alternate_encode_transforms
-
- def Name(self):
- # Example: "main.cc in Sources"
- return self._properties['fileRef'].Name() + ' in ' + self.parent.Name()
-
- def Hashables(self):
- # super
- hashables = XCObject.Hashables(self)
-
- # It is not sufficient to just rely on Name() to get the
- # XCFileLikeElement's name, because that is not a complete pathname.
- # PathHashables returns hashables unique enough that no two
- # PBXBuildFiles should wind up with the same set of hashables, unless
- # someone adds the same file multiple times to the same target. That
- # would be considered invalid anyway.
- hashables.extend(self._properties['fileRef'].PathHashables())
-
- return hashables
-
-
-class XCBuildPhase(XCObject):
- """Abstract base for build phase classes. Not represented in a project
- file.
-
- Attributes:
- _files_by_path: A dict mapping each path of a child in the files list by
- path (keys) to the corresponding PBXBuildFile children (values).
- _files_by_xcfilelikeelement: A dict mapping each XCFileLikeElement (keys)
- to the corresponding PBXBuildFile children (values).
- """
-
- # TODO(mark): Some build phase types, like PBXShellScriptBuildPhase, don't
- # actually have a "files" list. XCBuildPhase should not have "files" but
- # another abstract subclass of it should provide this, and concrete build
- # phase types that do have "files" lists should be derived from that new
- # abstract subclass. XCBuildPhase should only provide buildActionMask and
- # runOnlyForDeploymentPostprocessing, and not files or the various
- # file-related methods and attributes.
-
- _schema = XCObject._schema.copy()
- _schema.update({
- 'buildActionMask': [0, int, 0, 1, 0x7fffffff],
- 'files': [1, PBXBuildFile, 1, 1, []],
- 'runOnlyForDeploymentPostprocessing': [0, int, 0, 1, 0],
- })
-
- def __init__(self, properties=None, id=None, parent=None):
- # super
- XCObject.__init__(self, properties, id, parent)
-
- self._files_by_path = {}
- self._files_by_xcfilelikeelement = {}
- for pbxbuildfile in self._properties.get('files', []):
- self._AddBuildFileToDicts(pbxbuildfile)
-
- def FileGroup(self, path):
- # Subclasses must override this by returning a two-element tuple. The
- # first item in the tuple should be the PBXGroup to which "path" should be
- # added, either as a child or deeper descendant. The second item should
- # be a boolean indicating whether files should be added into hierarchical
- # groups or one single flat group.
- raise NotImplementedError(
- self.__class__.__name__ + ' must implement FileGroup')
-
- def _AddPathToDict(self, pbxbuildfile, path):
- """Adds path to the dict tracking paths belonging to this build phase.
-
- If the path is already a member of this build phase, raises an exception.
- """
-
- if path in self._files_by_path:
- raise ValueError('Found multiple build files with path ' + path)
- self._files_by_path[path] = pbxbuildfile
-
- def _AddBuildFileToDicts(self, pbxbuildfile, path=None):
- """Maintains the _files_by_path and _files_by_xcfilelikeelement dicts.
-
- If path is specified, then it is the path that is being added to the
- phase, and pbxbuildfile must contain either a PBXFileReference directly
- referencing that path, or it must contain a PBXVariantGroup that itself
- contains a PBXFileReference referencing the path.
-
- If path is not specified, either the PBXFileReference's path or the paths
- of all children of the PBXVariantGroup are taken as being added to the
- phase.
-
- If the path is already present in the phase, raises an exception.
-
- If the PBXFileReference or PBXVariantGroup referenced by pbxbuildfile
- are already present in the phase, referenced by a different PBXBuildFile
- object, raises an exception. This does not raise an exception when
- a PBXFileReference or PBXVariantGroup reappear and are referenced by the
- same PBXBuildFile that has already introduced them, because in the case
- of PBXVariantGroup objects, they may correspond to multiple paths that are
- not all added simultaneously. When this situation occurs, the path needs
- to be added to _files_by_path, but nothing needs to change in
- _files_by_xcfilelikeelement, and the caller should have avoided adding
- the PBXBuildFile if it is already present in the list of children.
- """
-
- xcfilelikeelement = pbxbuildfile._properties['fileRef']
-
- paths = []
- if path != None:
- # It's best when the caller provides the path.
- if isinstance(xcfilelikeelement, PBXVariantGroup):
- paths.append(path)
- else:
- # If the caller didn't provide a path, there can be either multiple
- # paths (PBXVariantGroup) or one.
- if isinstance(xcfilelikeelement, PBXVariantGroup):
- for variant in xcfilelikeelement._properties['children']:
- paths.append(variant.FullPath())
- else:
- paths.append(xcfilelikeelement.FullPath())
-
- # Add the paths first, because if something's going to raise, the
- # messages provided by _AddPathToDict are more useful owing to its
- # having access to a real pathname and not just an object's Name().
- for a_path in paths:
- self._AddPathToDict(pbxbuildfile, a_path)
-
- # If another PBXBuildFile references this XCFileLikeElement, there's a
- # problem.
- if xcfilelikeelement in self._files_by_xcfilelikeelement and \
- self._files_by_xcfilelikeelement[xcfilelikeelement] != pbxbuildfile:
- raise ValueError('Found multiple build files for ' + \
- xcfilelikeelement.Name())
- self._files_by_xcfilelikeelement[xcfilelikeelement] = pbxbuildfile
-
- def AppendBuildFile(self, pbxbuildfile, path=None):
- # Callers should use this instead of calling
- # AppendProperty('files', pbxbuildfile) directly because this function
- # maintains the object's dicts. Better yet, callers can just call AddFile
- # with a pathname and not worry about building their own PBXBuildFile
- # objects.
- self.AppendProperty('files', pbxbuildfile)
- self._AddBuildFileToDicts(pbxbuildfile, path)
-
- def AddFile(self, path, settings=None):
- (file_group, hierarchical) = self.FileGroup(path)
- file_ref = file_group.AddOrGetFileByPath(path, hierarchical)
-
- if file_ref in self._files_by_xcfilelikeelement and \
- isinstance(file_ref, PBXVariantGroup):
- # There's already a PBXBuildFile in this phase corresponding to the
- # PBXVariantGroup. path just provides a new variant that belongs to
- # the group. Add the path to the dict.
- pbxbuildfile = self._files_by_xcfilelikeelement[file_ref]
- self._AddBuildFileToDicts(pbxbuildfile, path)
- else:
- # Add a new PBXBuildFile to get file_ref into the phase.
- if settings is None:
- pbxbuildfile = PBXBuildFile({'fileRef': file_ref})
- else:
- pbxbuildfile = PBXBuildFile({'fileRef': file_ref, 'settings': settings})
- self.AppendBuildFile(pbxbuildfile, path)
-
-
-class PBXHeadersBuildPhase(XCBuildPhase):
- # No additions to the schema relative to XCBuildPhase.
-
- def Name(self):
- return 'Headers'
-
- def FileGroup(self, path):
- return self.PBXProjectAncestor().RootGroupForPath(path)
-
-
-class PBXResourcesBuildPhase(XCBuildPhase):
- # No additions to the schema relative to XCBuildPhase.
-
- def Name(self):
- return 'Resources'
-
- def FileGroup(self, path):
- return self.PBXProjectAncestor().RootGroupForPath(path)
-
-
-class PBXSourcesBuildPhase(XCBuildPhase):
- # No additions to the schema relative to XCBuildPhase.
-
- def Name(self):
- return 'Sources'
-
- def FileGroup(self, path):
- return self.PBXProjectAncestor().RootGroupForPath(path)
-
-
-class PBXFrameworksBuildPhase(XCBuildPhase):
- # No additions to the schema relative to XCBuildPhase.
-
- def Name(self):
- return 'Frameworks'
-
- def FileGroup(self, path):
- (root, ext) = posixpath.splitext(path)
- if ext != '':
- ext = ext[1:].lower()
- if ext == 'o':
- # .o files are added to Xcode Frameworks phases, but conceptually aren't
- # frameworks, they're more like sources or intermediates. Redirect them
- # to show up in one of those other groups.
- return self.PBXProjectAncestor().RootGroupForPath(path)
- else:
- return (self.PBXProjectAncestor().FrameworksGroup(), False)
-
-
-class PBXShellScriptBuildPhase(XCBuildPhase):
- _schema = XCBuildPhase._schema.copy()
- _schema.update({
- 'inputPaths': [1, str, 0, 1, []],
- 'name': [0, str, 0, 0],
- 'outputPaths': [1, str, 0, 1, []],
- 'shellPath': [0, str, 0, 1, '/bin/sh'],
- 'shellScript': [0, str, 0, 1],
- 'showEnvVarsInLog': [0, int, 0, 0],
- })
-
- def Name(self):
- if 'name' in self._properties:
- return self._properties['name']
-
- return 'ShellScript'
-
-
-class PBXCopyFilesBuildPhase(XCBuildPhase):
- _schema = XCBuildPhase._schema.copy()
- _schema.update({
- 'dstPath': [0, str, 0, 1],
- 'dstSubfolderSpec': [0, int, 0, 1],
- 'name': [0, str, 0, 0],
- })
-
- # path_tree_re matches "$(DIR)/path" or just "$(DIR)". Match group 1 is
- # "DIR", match group 3 is "path" or None.
- path_tree_re = re.compile('^\\$\\((.*)\\)(/(.*)|)$')
-
- # path_tree_to_subfolder maps names of Xcode variables to the associated
- # dstSubfolderSpec property value used in a PBXCopyFilesBuildPhase object.
- path_tree_to_subfolder = {
- 'BUILT_FRAMEWORKS_DIR': 10, # Frameworks Directory
- 'BUILT_PRODUCTS_DIR': 16, # Products Directory
- # Other types that can be chosen via the Xcode UI.
- # TODO(mark): Map Xcode variable names to these.
- # : 1, # Wrapper
- # : 6, # Executables: 6
- # : 7, # Resources
- # : 15, # Java Resources
- # : 11, # Shared Frameworks
- # : 12, # Shared Support
- # : 13, # PlugIns
- }
-
- def Name(self):
- if 'name' in self._properties:
- return self._properties['name']
-
- return 'CopyFiles'
-
- def FileGroup(self, path):
- return self.PBXProjectAncestor().RootGroupForPath(path)
-
- def SetDestination(self, path):
- """Set the dstSubfolderSpec and dstPath properties from path.
-
- path may be specified in the same notation used for XCHierarchicalElements,
- specifically, "$(DIR)/path".
- """
-
- path_tree_match = self.path_tree_re.search(path)
- if path_tree_match:
- # Everything else needs to be relative to an Xcode variable.
- path_tree = path_tree_match.group(1)
- relative_path = path_tree_match.group(3)
-
- if path_tree in self.path_tree_to_subfolder:
- subfolder = self.path_tree_to_subfolder[path_tree]
- if relative_path is None:
- relative_path = ''
- else:
- # The path starts with an unrecognized Xcode variable
- # name like $(SRCROOT). Xcode will still handle this
- # as an "absolute path" that starts with the variable.
- subfolder = 0
- relative_path = path
- elif path.startswith('/'):
- # Special case. Absolute paths are in dstSubfolderSpec 0.
- subfolder = 0
- relative_path = path[1:]
- else:
- raise ValueError('Can\'t use path %s in a %s' % \
- (path, self.__class__.__name__))
-
- self._properties['dstPath'] = relative_path
- self._properties['dstSubfolderSpec'] = subfolder
-
-
-class PBXBuildRule(XCObject):
- _schema = XCObject._schema.copy()
- _schema.update({
- 'compilerSpec': [0, str, 0, 1],
- 'filePatterns': [0, str, 0, 0],
- 'fileType': [0, str, 0, 1],
- 'isEditable': [0, int, 0, 1, 1],
- 'outputFiles': [1, str, 0, 1, []],
- 'script': [0, str, 0, 0],
- })
-
- def Name(self):
- # Not very inspired, but it's what Xcode uses.
- return self.__class__.__name__
-
- def Hashables(self):
- # super
- hashables = XCObject.Hashables(self)
-
- # Use the hashables of the weak objects that this object refers to.
- hashables.append(self._properties['fileType'])
- if 'filePatterns' in self._properties:
- hashables.append(self._properties['filePatterns'])
- return hashables
-
-
-class PBXContainerItemProxy(XCObject):
- # When referencing an item in this project file, containerPortal is the
- # PBXProject root object of this project file. When referencing an item in
- # another project file, containerPortal is a PBXFileReference identifying
- # the other project file.
- #
- # When serving as a proxy to an XCTarget (in this project file or another),
- # proxyType is 1. When serving as a proxy to a PBXFileReference (in another
- # project file), proxyType is 2. Type 2 is used for references to the
- # producs of the other project file's targets.
- #
- # Xcode is weird about remoteGlobalIDString. Usually, it's printed without
- # a comment, indicating that it's tracked internally simply as a string, but
- # sometimes it's printed with a comment (usually when the object is initially
- # created), indicating that it's tracked as a project file object at least
- # sometimes. This module always tracks it as an object, but contains a hack
- # to prevent it from printing the comment in the project file output. See
- # _XCKVPrint.
- _schema = XCObject._schema.copy()
- _schema.update({
- 'containerPortal': [0, XCContainerPortal, 0, 1],
- 'proxyType': [0, int, 0, 1],
- 'remoteGlobalIDString': [0, XCRemoteObject, 0, 1],
- 'remoteInfo': [0, str, 0, 1],
- })
-
- def __repr__(self):
- props = self._properties
- name = '%s.gyp:%s' % (props['containerPortal'].Name(), props['remoteInfo'])
- return '<%s %r at 0x%x>' % (self.__class__.__name__, name, id(self))
-
- def Name(self):
- # Admittedly not the best name, but it's what Xcode uses.
- return self.__class__.__name__
-
- def Hashables(self):
- # super
- hashables = XCObject.Hashables(self)
-
- # Use the hashables of the weak objects that this object refers to.
- hashables.extend(self._properties['containerPortal'].Hashables())
- hashables.extend(self._properties['remoteGlobalIDString'].Hashables())
- return hashables
-
-
-class PBXTargetDependency(XCObject):
- # The "target" property accepts an XCTarget object, and obviously not
- # NoneType. But XCTarget is defined below, so it can't be put into the
- # schema yet. The definition of PBXTargetDependency can't be moved below
- # XCTarget because XCTarget's own schema references PBXTargetDependency.
- # Python doesn't deal well with this circular relationship, and doesn't have
- # a real way to do forward declarations. To work around, the type of
- # the "target" property is reset below, after XCTarget is defined.
- #
- # At least one of "name" and "target" is required.
- _schema = XCObject._schema.copy()
- _schema.update({
- 'name': [0, str, 0, 0],
- 'target': [0, None.__class__, 0, 0],
- 'targetProxy': [0, PBXContainerItemProxy, 1, 1],
- })
-
- def __repr__(self):
- name = self._properties.get('name') or self._properties['target'].Name()
- return '<%s %r at 0x%x>' % (self.__class__.__name__, name, id(self))
-
- def Name(self):
- # Admittedly not the best name, but it's what Xcode uses.
- return self.__class__.__name__
-
- def Hashables(self):
- # super
- hashables = XCObject.Hashables(self)
-
- # Use the hashables of the weak objects that this object refers to.
- hashables.extend(self._properties['targetProxy'].Hashables())
- return hashables
-
-
-class PBXReferenceProxy(XCFileLikeElement):
- _schema = XCFileLikeElement._schema.copy()
- _schema.update({
- 'fileType': [0, str, 0, 1],
- 'path': [0, str, 0, 1],
- 'remoteRef': [0, PBXContainerItemProxy, 1, 1],
- })
-
-
-class XCTarget(XCRemoteObject):
- # An XCTarget is really just an XCObject, the XCRemoteObject thing is just
- # to allow PBXProject to be used in the remoteGlobalIDString property of
- # PBXContainerItemProxy.
- #
- # Setting a "name" property at instantiation may also affect "productName",
- # which may in turn affect the "PRODUCT_NAME" build setting in children of
- # "buildConfigurationList". See __init__ below.
- _schema = XCRemoteObject._schema.copy()
- _schema.update({
- 'buildConfigurationList': [0, XCConfigurationList, 1, 1,
- XCConfigurationList()],
- 'buildPhases': [1, XCBuildPhase, 1, 1, []],
- 'dependencies': [1, PBXTargetDependency, 1, 1, []],
- 'name': [0, str, 0, 1],
- 'productName': [0, str, 0, 1],
- })
-
- def __init__(self, properties=None, id=None, parent=None,
- force_outdir=None, force_prefix=None, force_extension=None):
- # super
- XCRemoteObject.__init__(self, properties, id, parent)
-
- # Set up additional defaults not expressed in the schema. If a "name"
- # property was supplied, set "productName" if it is not present. Also set
- # the "PRODUCT_NAME" build setting in each configuration, but only if
- # the setting is not present in any build configuration.
- if 'name' in self._properties:
- if not 'productName' in self._properties:
- self.SetProperty('productName', self._properties['name'])
-
- if 'productName' in self._properties:
- if 'buildConfigurationList' in self._properties:
- configs = self._properties['buildConfigurationList']
- if configs.HasBuildSetting('PRODUCT_NAME') == 0:
- configs.SetBuildSetting('PRODUCT_NAME',
- self._properties['productName'])
-
- def AddDependency(self, other):
- pbxproject = self.PBXProjectAncestor()
- other_pbxproject = other.PBXProjectAncestor()
- if pbxproject == other_pbxproject:
- # Add a dependency to another target in the same project file.
- container = PBXContainerItemProxy({'containerPortal': pbxproject,
- 'proxyType': 1,
- 'remoteGlobalIDString': other,
- 'remoteInfo': other.Name()})
- dependency = PBXTargetDependency({'target': other,
- 'targetProxy': container})
- self.AppendProperty('dependencies', dependency)
- else:
- # Add a dependency to a target in a different project file.
- other_project_ref = \
- pbxproject.AddOrGetProjectReference(other_pbxproject)[1]
- container = PBXContainerItemProxy({
- 'containerPortal': other_project_ref,
- 'proxyType': 1,
- 'remoteGlobalIDString': other,
- 'remoteInfo': other.Name(),
- })
- dependency = PBXTargetDependency({'name': other.Name(),
- 'targetProxy': container})
- self.AppendProperty('dependencies', dependency)
-
- # Proxy all of these through to the build configuration list.
-
- def ConfigurationNamed(self, name):
- return self._properties['buildConfigurationList'].ConfigurationNamed(name)
-
- def DefaultConfiguration(self):
- return self._properties['buildConfigurationList'].DefaultConfiguration()
-
- def HasBuildSetting(self, key):
- return self._properties['buildConfigurationList'].HasBuildSetting(key)
-
- def GetBuildSetting(self, key):
- return self._properties['buildConfigurationList'].GetBuildSetting(key)
-
- def SetBuildSetting(self, key, value):
- return self._properties['buildConfigurationList'].SetBuildSetting(key, \
- value)
-
- def AppendBuildSetting(self, key, value):
- return self._properties['buildConfigurationList'].AppendBuildSetting(key, \
- value)
-
- def DelBuildSetting(self, key):
- return self._properties['buildConfigurationList'].DelBuildSetting(key)
-
-
-# Redefine the type of the "target" property. See PBXTargetDependency._schema
-# above.
-PBXTargetDependency._schema['target'][1] = XCTarget
-
-
-class PBXNativeTarget(XCTarget):
- # buildPhases is overridden in the schema to be able to set defaults.
- #
- # NOTE: Contrary to most objects, it is advisable to set parent when
- # constructing PBXNativeTarget. A parent of an XCTarget must be a PBXProject
- # object. A parent reference is required for a PBXNativeTarget during
- # construction to be able to set up the target defaults for productReference,
- # because a PBXBuildFile object must be created for the target and it must
- # be added to the PBXProject's mainGroup hierarchy.
- _schema = XCTarget._schema.copy()
- _schema.update({
- 'buildPhases': [1, XCBuildPhase, 1, 1,
- [PBXSourcesBuildPhase(), PBXFrameworksBuildPhase()]],
- 'buildRules': [1, PBXBuildRule, 1, 1, []],
- 'productReference': [0, PBXFileReference, 0, 1],
- 'productType': [0, str, 0, 1],
- })
-
- # Mapping from Xcode product-types to settings. The settings are:
- # filetype : used for explicitFileType in the project file
- # prefix : the prefix for the file name
- # suffix : the suffix for the file name
- _product_filetypes = {
- 'com.apple.product-type.application': ['wrapper.application',
- '', '.app'],
- 'com.apple.product-type.application.watchapp': ['wrapper.application',
- '', '.app'],
- 'com.apple.product-type.watchkit-extension': ['wrapper.app-extension',
- '', '.appex'],
- 'com.apple.product-type.app-extension': ['wrapper.app-extension',
- '', '.appex'],
- 'com.apple.product-type.bundle': ['wrapper.cfbundle',
- '', '.bundle'],
- 'com.apple.product-type.framework': ['wrapper.framework',
- '', '.framework'],
- 'com.apple.product-type.library.dynamic': ['compiled.mach-o.dylib',
- 'lib', '.dylib'],
- 'com.apple.product-type.library.static': ['archive.ar',
- 'lib', '.a'],
- 'com.apple.product-type.tool': ['compiled.mach-o.executable',
- '', ''],
- 'com.apple.product-type.bundle.unit-test': ['wrapper.cfbundle',
- '', '.xctest'],
- 'com.googlecode.gyp.xcode.bundle': ['compiled.mach-o.dylib',
- '', '.so'],
- 'com.apple.product-type.kernel-extension': ['wrapper.kext',
- '', '.kext'],
- }
-
- def __init__(self, properties=None, id=None, parent=None,
- force_outdir=None, force_prefix=None, force_extension=None):
- # super
- XCTarget.__init__(self, properties, id, parent)
-
- if 'productName' in self._properties and \
- 'productType' in self._properties and \
- not 'productReference' in self._properties and \
- self._properties['productType'] in self._product_filetypes:
- products_group = None
- pbxproject = self.PBXProjectAncestor()
- if pbxproject != None:
- products_group = pbxproject.ProductsGroup()
-
- if products_group != None:
- (filetype, prefix, suffix) = \
- self._product_filetypes[self._properties['productType']]
- # Xcode does not have a distinct type for loadable modules that are
- # pure BSD targets (not in a bundle wrapper). GYP allows such modules
- # to be specified by setting a target type to loadable_module without
- # having mac_bundle set. These are mapped to the pseudo-product type
- # com.googlecode.gyp.xcode.bundle.
- #
- # By picking up this special type and converting it to a dynamic
- # library (com.apple.product-type.library.dynamic) with fix-ups,
- # single-file loadable modules can be produced.
- #
- # MACH_O_TYPE is changed to mh_bundle to produce the proper file type
- # (as opposed to mh_dylib). In order for linking to succeed,
- # DYLIB_CURRENT_VERSION and DYLIB_COMPATIBILITY_VERSION must be
- # cleared. They are meaningless for type mh_bundle.
- #
- # Finally, the .so extension is forcibly applied over the default
- # (.dylib), unless another forced extension is already selected.
- # .dylib is plainly wrong, and .bundle is used by loadable_modules in
- # bundle wrappers (com.apple.product-type.bundle). .so seems an odd
- # choice because it's used as the extension on many other systems that
- # don't distinguish between linkable shared libraries and non-linkable
- # loadable modules, but there's precedent: Python loadable modules on
- # Mac OS X use an .so extension.
- if self._properties['productType'] == 'com.googlecode.gyp.xcode.bundle':
- self._properties['productType'] = \
- 'com.apple.product-type.library.dynamic'
- self.SetBuildSetting('MACH_O_TYPE', 'mh_bundle')
- self.SetBuildSetting('DYLIB_CURRENT_VERSION', '')
- self.SetBuildSetting('DYLIB_COMPATIBILITY_VERSION', '')
- if force_extension is None:
- force_extension = suffix[1:]
-
- if self._properties['productType'] == \
- 'com.apple.product-type-bundle.unit.test':
- if force_extension is None:
- force_extension = suffix[1:]
-
- if force_extension is not None:
- # If it's a wrapper (bundle), set WRAPPER_EXTENSION.
- # Extension override.
- suffix = '.' + force_extension
- if filetype.startswith('wrapper.'):
- self.SetBuildSetting('WRAPPER_EXTENSION', force_extension)
- else:
- self.SetBuildSetting('EXECUTABLE_EXTENSION', force_extension)
-
- if filetype.startswith('compiled.mach-o.executable'):
- product_name = self._properties['productName']
- product_name += suffix
- suffix = ''
- self.SetProperty('productName', product_name)
- self.SetBuildSetting('PRODUCT_NAME', product_name)
-
- # Xcode handles most prefixes based on the target type, however there
- # are exceptions. If a "BSD Dynamic Library" target is added in the
- # Xcode UI, Xcode sets EXECUTABLE_PREFIX. This check duplicates that
- # behavior.
- if force_prefix is not None:
- prefix = force_prefix
- if filetype.startswith('wrapper.'):
- self.SetBuildSetting('WRAPPER_PREFIX', prefix)
- else:
- self.SetBuildSetting('EXECUTABLE_PREFIX', prefix)
-
- if force_outdir is not None:
- self.SetBuildSetting('TARGET_BUILD_DIR', force_outdir)
-
- # TODO(tvl): Remove the below hack.
- # http://code.google.com/p/gyp/issues/detail?id=122
-
- # Some targets include the prefix in the target_name. These targets
- # really should just add a product_name setting that doesn't include
- # the prefix. For example:
- # target_name = 'libevent', product_name = 'event'
- # This check cleans up for them.
- product_name = self._properties['productName']
- prefix_len = len(prefix)
- if prefix_len and (product_name[:prefix_len] == prefix):
- product_name = product_name[prefix_len:]
- self.SetProperty('productName', product_name)
- self.SetBuildSetting('PRODUCT_NAME', product_name)
-
- ref_props = {
- 'explicitFileType': filetype,
- 'includeInIndex': 0,
- 'path': prefix + product_name + suffix,
- 'sourceTree': 'BUILT_PRODUCTS_DIR',
- }
- file_ref = PBXFileReference(ref_props)
- products_group.AppendChild(file_ref)
- self.SetProperty('productReference', file_ref)
-
- def GetBuildPhaseByType(self, type):
- if not 'buildPhases' in self._properties:
- return None
-
- the_phase = None
- for phase in self._properties['buildPhases']:
- if isinstance(phase, type):
- # Some phases may be present in multiples in a well-formed project file,
- # but phases like PBXSourcesBuildPhase may only be present singly, and
- # this function is intended as an aid to GetBuildPhaseByType. Loop
- # over the entire list of phases and assert if more than one of the
- # desired type is found.
- assert the_phase is None
- the_phase = phase
-
- return the_phase
-
- def HeadersPhase(self):
- headers_phase = self.GetBuildPhaseByType(PBXHeadersBuildPhase)
- if headers_phase is None:
- headers_phase = PBXHeadersBuildPhase()
-
- # The headers phase should come before the resources, sources, and
- # frameworks phases, if any.
- insert_at = len(self._properties['buildPhases'])
- for index in xrange(0, len(self._properties['buildPhases'])):
- phase = self._properties['buildPhases'][index]
- if isinstance(phase, PBXResourcesBuildPhase) or \
- isinstance(phase, PBXSourcesBuildPhase) or \
- isinstance(phase, PBXFrameworksBuildPhase):
- insert_at = index
- break
-
- self._properties['buildPhases'].insert(insert_at, headers_phase)
- headers_phase.parent = self
-
- return headers_phase
-
- def ResourcesPhase(self):
- resources_phase = self.GetBuildPhaseByType(PBXResourcesBuildPhase)
- if resources_phase is None:
- resources_phase = PBXResourcesBuildPhase()
-
- # The resources phase should come before the sources and frameworks
- # phases, if any.
- insert_at = len(self._properties['buildPhases'])
- for index in xrange(0, len(self._properties['buildPhases'])):
- phase = self._properties['buildPhases'][index]
- if isinstance(phase, PBXSourcesBuildPhase) or \
- isinstance(phase, PBXFrameworksBuildPhase):
- insert_at = index
- break
-
- self._properties['buildPhases'].insert(insert_at, resources_phase)
- resources_phase.parent = self
-
- return resources_phase
-
- def SourcesPhase(self):
- sources_phase = self.GetBuildPhaseByType(PBXSourcesBuildPhase)
- if sources_phase is None:
- sources_phase = PBXSourcesBuildPhase()
- self.AppendProperty('buildPhases', sources_phase)
-
- return sources_phase
-
- def FrameworksPhase(self):
- frameworks_phase = self.GetBuildPhaseByType(PBXFrameworksBuildPhase)
- if frameworks_phase is None:
- frameworks_phase = PBXFrameworksBuildPhase()
- self.AppendProperty('buildPhases', frameworks_phase)
-
- return frameworks_phase
-
- def AddDependency(self, other):
- # super
- XCTarget.AddDependency(self, other)
-
- static_library_type = 'com.apple.product-type.library.static'
- shared_library_type = 'com.apple.product-type.library.dynamic'
- framework_type = 'com.apple.product-type.framework'
- if isinstance(other, PBXNativeTarget) and \
- 'productType' in self._properties and \
- self._properties['productType'] != static_library_type and \
- 'productType' in other._properties and \
- (other._properties['productType'] == static_library_type or \
- ((other._properties['productType'] == shared_library_type or \
- other._properties['productType'] == framework_type) and \
- ((not other.HasBuildSetting('MACH_O_TYPE')) or
- other.GetBuildSetting('MACH_O_TYPE') != 'mh_bundle'))):
-
- file_ref = other.GetProperty('productReference')
-
- pbxproject = self.PBXProjectAncestor()
- other_pbxproject = other.PBXProjectAncestor()
- if pbxproject != other_pbxproject:
- other_project_product_group = \
- pbxproject.AddOrGetProjectReference(other_pbxproject)[0]
- file_ref = other_project_product_group.GetChildByRemoteObject(file_ref)
-
- self.FrameworksPhase().AppendProperty('files',
- PBXBuildFile({'fileRef': file_ref}))
-
-
-class PBXAggregateTarget(XCTarget):
- pass
-
-
-class PBXProject(XCContainerPortal):
- # A PBXProject is really just an XCObject, the XCContainerPortal thing is
- # just to allow PBXProject to be used in the containerPortal property of
- # PBXContainerItemProxy.
- """
-
- Attributes:
- path: "sample.xcodeproj". TODO(mark) Document me!
- _other_pbxprojects: A dictionary, keyed by other PBXProject objects. Each
- value is a reference to the dict in the
- projectReferences list associated with the keyed
- PBXProject.
- """
-
- _schema = XCContainerPortal._schema.copy()
- _schema.update({
- 'attributes': [0, dict, 0, 0],
- 'buildConfigurationList': [0, XCConfigurationList, 1, 1,
- XCConfigurationList()],
- 'compatibilityVersion': [0, str, 0, 1, 'Xcode 3.2'],
- 'hasScannedForEncodings': [0, int, 0, 1, 1],
- 'mainGroup': [0, PBXGroup, 1, 1, PBXGroup()],
- 'projectDirPath': [0, str, 0, 1, ''],
- 'projectReferences': [1, dict, 0, 0],
- 'projectRoot': [0, str, 0, 1, ''],
- 'targets': [1, XCTarget, 1, 1, []],
- })
-
- def __init__(self, properties=None, id=None, parent=None, path=None):
- self.path = path
- self._other_pbxprojects = {}
- # super
- return XCContainerPortal.__init__(self, properties, id, parent)
-
- def Name(self):
- name = self.path
- if name[-10:] == '.xcodeproj':
- name = name[:-10]
- return posixpath.basename(name)
-
- def Path(self):
- return self.path
-
- def Comment(self):
- return 'Project object'
-
- def Children(self):
- # super
- children = XCContainerPortal.Children(self)
-
- # Add children that the schema doesn't know about. Maybe there's a more
- # elegant way around this, but this is the only case where we need to own
- # objects in a dictionary (that is itself in a list), and three lines for
- # a one-off isn't that big a deal.
- if 'projectReferences' in self._properties:
- for reference in self._properties['projectReferences']:
- children.append(reference['ProductGroup'])
-
- return children
-
- def PBXProjectAncestor(self):
- return self
-
- def _GroupByName(self, name):
- if not 'mainGroup' in self._properties:
- self.SetProperty('mainGroup', PBXGroup())
-
- main_group = self._properties['mainGroup']
- group = main_group.GetChildByName(name)
- if group is None:
- group = PBXGroup({'name': name})
- main_group.AppendChild(group)
-
- return group
-
- # SourceGroup and ProductsGroup are created by default in Xcode's own
- # templates.
- def SourceGroup(self):
- return self._GroupByName('Source')
-
- def ProductsGroup(self):
- return self._GroupByName('Products')
-
- # IntermediatesGroup is used to collect source-like files that are generated
- # by rules or script phases and are placed in intermediate directories such
- # as DerivedSources.
- def IntermediatesGroup(self):
- return self._GroupByName('Intermediates')
-
- # FrameworksGroup and ProjectsGroup are top-level groups used to collect
- # frameworks and projects.
- def FrameworksGroup(self):
- return self._GroupByName('Frameworks')
-
- def ProjectsGroup(self):
- return self._GroupByName('Projects')
-
- def RootGroupForPath(self, path):
- """Returns a PBXGroup child of this object to which path should be added.
-
- This method is intended to choose between SourceGroup and
- IntermediatesGroup on the basis of whether path is present in a source
- directory or an intermediates directory. For the purposes of this
- determination, any path located within a derived file directory such as
- PROJECT_DERIVED_FILE_DIR is treated as being in an intermediates
- directory.
-
- The returned value is a two-element tuple. The first element is the
- PBXGroup, and the second element specifies whether that group should be
- organized hierarchically (True) or as a single flat list (False).
- """
-
- # TODO(mark): make this a class variable and bind to self on call?
- # Also, this list is nowhere near exhaustive.
- # INTERMEDIATE_DIR and SHARED_INTERMEDIATE_DIR are used by
- # gyp.generator.xcode. There should probably be some way for that module
- # to push the names in, rather than having to hard-code them here.
- source_tree_groups = {
- 'DERIVED_FILE_DIR': (self.IntermediatesGroup, True),
- 'INTERMEDIATE_DIR': (self.IntermediatesGroup, True),
- 'PROJECT_DERIVED_FILE_DIR': (self.IntermediatesGroup, True),
- 'SHARED_INTERMEDIATE_DIR': (self.IntermediatesGroup, True),
- }
-
- (source_tree, path) = SourceTreeAndPathFromPath(path)
- if source_tree != None and source_tree in source_tree_groups:
- (group_func, hierarchical) = source_tree_groups[source_tree]
- group = group_func()
- return (group, hierarchical)
-
- # TODO(mark): make additional choices based on file extension.
-
- return (self.SourceGroup(), True)
-
- def AddOrGetFileInRootGroup(self, path):
- """Returns a PBXFileReference corresponding to path in the correct group
- according to RootGroupForPath's heuristics.
-
- If an existing PBXFileReference for path exists, it will be returned.
- Otherwise, one will be created and returned.
- """
-
- (group, hierarchical) = self.RootGroupForPath(path)
- return group.AddOrGetFileByPath(path, hierarchical)
-
- def RootGroupsTakeOverOnlyChildren(self, recurse=False):
- """Calls TakeOverOnlyChild for all groups in the main group."""
-
- for group in self._properties['mainGroup']._properties['children']:
- if isinstance(group, PBXGroup):
- group.TakeOverOnlyChild(recurse)
-
- def SortGroups(self):
- # Sort the children of the mainGroup (like "Source" and "Products")
- # according to their defined order.
- self._properties['mainGroup']._properties['children'] = \
- sorted(self._properties['mainGroup']._properties['children'],
- cmp=lambda x,y: x.CompareRootGroup(y))
-
- # Sort everything else by putting group before files, and going
- # alphabetically by name within sections of groups and files. SortGroup
- # is recursive.
- for group in self._properties['mainGroup']._properties['children']:
- if not isinstance(group, PBXGroup):
- continue
-
- if group.Name() == 'Products':
- # The Products group is a special case. Instead of sorting
- # alphabetically, sort things in the order of the targets that
- # produce the products. To do this, just build up a new list of
- # products based on the targets.
- products = []
- for target in self._properties['targets']:
- if not isinstance(target, PBXNativeTarget):
- continue
- product = target._properties['productReference']
- # Make sure that the product is already in the products group.
- assert product in group._properties['children']
- products.append(product)
-
- # Make sure that this process doesn't miss anything that was already
- # in the products group.
- assert len(products) == len(group._properties['children'])
- group._properties['children'] = products
- else:
- group.SortGroup()
-
- def AddOrGetProjectReference(self, other_pbxproject):
- """Add a reference to another project file (via PBXProject object) to this
- one.
-
- Returns [ProductGroup, ProjectRef]. ProductGroup is a PBXGroup object in
- this project file that contains a PBXReferenceProxy object for each
- product of each PBXNativeTarget in the other project file. ProjectRef is
- a PBXFileReference to the other project file.
-
- If this project file already references the other project file, the
- existing ProductGroup and ProjectRef are returned. The ProductGroup will
- still be updated if necessary.
- """
-
- if not 'projectReferences' in self._properties:
- self._properties['projectReferences'] = []
-
- product_group = None
- project_ref = None
-
- if not other_pbxproject in self._other_pbxprojects:
- # This project file isn't yet linked to the other one. Establish the
- # link.
- product_group = PBXGroup({'name': 'Products'})
-
- # ProductGroup is strong.
- product_group.parent = self
-
- # There's nothing unique about this PBXGroup, and if left alone, it will
- # wind up with the same set of hashables as all other PBXGroup objects
- # owned by the projectReferences list. Add the hashables of the
- # remote PBXProject that it's related to.
- product_group._hashables.extend(other_pbxproject.Hashables())
-
- # The other project reports its path as relative to the same directory
- # that this project's path is relative to. The other project's path
- # is not necessarily already relative to this project. Figure out the
- # pathname that this project needs to use to refer to the other one.
- this_path = posixpath.dirname(self.Path())
- projectDirPath = self.GetProperty('projectDirPath')
- if projectDirPath:
- if posixpath.isabs(projectDirPath[0]):
- this_path = projectDirPath
- else:
- this_path = posixpath.join(this_path, projectDirPath)
- other_path = gyp.common.RelativePath(other_pbxproject.Path(), this_path)
-
- # ProjectRef is weak (it's owned by the mainGroup hierarchy).
- project_ref = PBXFileReference({
- 'lastKnownFileType': 'wrapper.pb-project',
- 'path': other_path,
- 'sourceTree': 'SOURCE_ROOT',
- })
- self.ProjectsGroup().AppendChild(project_ref)
-
- ref_dict = {'ProductGroup': product_group, 'ProjectRef': project_ref}
- self._other_pbxprojects[other_pbxproject] = ref_dict
- self.AppendProperty('projectReferences', ref_dict)
-
- # Xcode seems to sort this list case-insensitively
- self._properties['projectReferences'] = \
- sorted(self._properties['projectReferences'], cmp=lambda x,y:
- cmp(x['ProjectRef'].Name().lower(),
- y['ProjectRef'].Name().lower()))
- else:
- # The link already exists. Pull out the relevnt data.
- project_ref_dict = self._other_pbxprojects[other_pbxproject]
- product_group = project_ref_dict['ProductGroup']
- project_ref = project_ref_dict['ProjectRef']
-
- self._SetUpProductReferences(other_pbxproject, product_group, project_ref)
-
- inherit_unique_symroot = self._AllSymrootsUnique(other_pbxproject, False)
- targets = other_pbxproject.GetProperty('targets')
- if all(self._AllSymrootsUnique(t, inherit_unique_symroot) for t in targets):
- dir_path = project_ref._properties['path']
- product_group._hashables.extend(dir_path)
-
- return [product_group, project_ref]
-
- def _AllSymrootsUnique(self, target, inherit_unique_symroot):
- # Returns True if all configurations have a unique 'SYMROOT' attribute.
- # The value of inherit_unique_symroot decides, if a configuration is assumed
- # to inherit a unique 'SYMROOT' attribute from its parent, if it doesn't
- # define an explicit value for 'SYMROOT'.
- symroots = self._DefinedSymroots(target)
- for s in self._DefinedSymroots(target):
- if (s is not None and not self._IsUniqueSymrootForTarget(s) or
- s is None and not inherit_unique_symroot):
- return False
- return True if symroots else inherit_unique_symroot
-
- def _DefinedSymroots(self, target):
- # Returns all values for the 'SYMROOT' attribute defined in all
- # configurations for this target. If any configuration doesn't define the
- # 'SYMROOT' attribute, None is added to the returned set. If all
- # configurations don't define the 'SYMROOT' attribute, an empty set is
- # returned.
- config_list = target.GetProperty('buildConfigurationList')
- symroots = set()
- for config in config_list.GetProperty('buildConfigurations'):
- setting = config.GetProperty('buildSettings')
- if 'SYMROOT' in setting:
- symroots.add(setting['SYMROOT'])
- else:
- symroots.add(None)
- if len(symroots) == 1 and None in symroots:
- return set()
- return symroots
-
- def _IsUniqueSymrootForTarget(self, symroot):
- # This method returns True if all configurations in target contain a
- # 'SYMROOT' attribute that is unique for the given target. A value is
- # unique, if the Xcode macro '$SRCROOT' appears in it in any form.
- uniquifier = ['$SRCROOT', '$(SRCROOT)']
- if any(x in symroot for x in uniquifier):
- return True
- return False
-
- def _SetUpProductReferences(self, other_pbxproject, product_group,
- project_ref):
- # TODO(mark): This only adds references to products in other_pbxproject
- # when they don't exist in this pbxproject. Perhaps it should also
- # remove references from this pbxproject that are no longer present in
- # other_pbxproject. Perhaps it should update various properties if they
- # change.
- for target in other_pbxproject._properties['targets']:
- if not isinstance(target, PBXNativeTarget):
- continue
-
- other_fileref = target._properties['productReference']
- if product_group.GetChildByRemoteObject(other_fileref) is None:
- # Xcode sets remoteInfo to the name of the target and not the name
- # of its product, despite this proxy being a reference to the product.
- container_item = PBXContainerItemProxy({
- 'containerPortal': project_ref,
- 'proxyType': 2,
- 'remoteGlobalIDString': other_fileref,
- 'remoteInfo': target.Name()
- })
- # TODO(mark): Does sourceTree get copied straight over from the other
- # project? Can the other project ever have lastKnownFileType here
- # instead of explicitFileType? (Use it if so?) Can path ever be
- # unset? (I don't think so.) Can other_fileref have name set, and
- # does it impact the PBXReferenceProxy if so? These are the questions
- # that perhaps will be answered one day.
- reference_proxy = PBXReferenceProxy({
- 'fileType': other_fileref._properties['explicitFileType'],
- 'path': other_fileref._properties['path'],
- 'sourceTree': other_fileref._properties['sourceTree'],
- 'remoteRef': container_item,
- })
-
- product_group.AppendChild(reference_proxy)
-
- def SortRemoteProductReferences(self):
- # For each remote project file, sort the associated ProductGroup in the
- # same order that the targets are sorted in the remote project file. This
- # is the sort order used by Xcode.
-
- def CompareProducts(x, y, remote_products):
- # x and y are PBXReferenceProxy objects. Go through their associated
- # PBXContainerItem to get the remote PBXFileReference, which will be
- # present in the remote_products list.
- x_remote = x._properties['remoteRef']._properties['remoteGlobalIDString']
- y_remote = y._properties['remoteRef']._properties['remoteGlobalIDString']
- x_index = remote_products.index(x_remote)
- y_index = remote_products.index(y_remote)
-
- # Use the order of each remote PBXFileReference in remote_products to
- # determine the sort order.
- return cmp(x_index, y_index)
-
- for other_pbxproject, ref_dict in self._other_pbxprojects.iteritems():
- # Build up a list of products in the remote project file, ordered the
- # same as the targets that produce them.
- remote_products = []
- for target in other_pbxproject._properties['targets']:
- if not isinstance(target, PBXNativeTarget):
- continue
- remote_products.append(target._properties['productReference'])
-
- # Sort the PBXReferenceProxy children according to the list of remote
- # products.
- product_group = ref_dict['ProductGroup']
- product_group._properties['children'] = sorted(
- product_group._properties['children'],
- cmp=lambda x, y, rp=remote_products: CompareProducts(x, y, rp))
-
-
-class XCProjectFile(XCObject):
- _schema = XCObject._schema.copy()
- _schema.update({
- 'archiveVersion': [0, int, 0, 1, 1],
- 'classes': [0, dict, 0, 1, {}],
- 'objectVersion': [0, int, 0, 1, 46],
- 'rootObject': [0, PBXProject, 1, 1],
- })
-
- def ComputeIDs(self, recursive=True, overwrite=True, hash=None):
- # Although XCProjectFile is implemented here as an XCObject, it's not a
- # proper object in the Xcode sense, and it certainly doesn't have its own
- # ID. Pass through an attempt to update IDs to the real root object.
- if recursive:
- self._properties['rootObject'].ComputeIDs(recursive, overwrite, hash)
-
- def Print(self, file=sys.stdout):
- self.VerifyHasRequiredProperties()
-
- # Add the special "objects" property, which will be caught and handled
- # separately during printing. This structure allows a fairly standard
- # loop do the normal printing.
- self._properties['objects'] = {}
- self._XCPrint(file, 0, '// !$*UTF8*$!\n')
- if self._should_print_single_line:
- self._XCPrint(file, 0, '{ ')
- else:
- self._XCPrint(file, 0, '{\n')
- for property, value in sorted(self._properties.iteritems(),
- cmp=lambda x, y: cmp(x, y)):
- if property == 'objects':
- self._PrintObjects(file)
- else:
- self._XCKVPrint(file, 1, property, value)
- self._XCPrint(file, 0, '}\n')
- del self._properties['objects']
-
- def _PrintObjects(self, file):
- if self._should_print_single_line:
- self._XCPrint(file, 0, 'objects = {')
- else:
- self._XCPrint(file, 1, 'objects = {\n')
-
- objects_by_class = {}
- for object in self.Descendants():
- if object == self:
- continue
- class_name = object.__class__.__name__
- if not class_name in objects_by_class:
- objects_by_class[class_name] = []
- objects_by_class[class_name].append(object)
-
- for class_name in sorted(objects_by_class):
- self._XCPrint(file, 0, '\n')
- self._XCPrint(file, 0, '/* Begin ' + class_name + ' section */\n')
- for object in sorted(objects_by_class[class_name],
- cmp=lambda x, y: cmp(x.id, y.id)):
- object.Print(file)
- self._XCPrint(file, 0, '/* End ' + class_name + ' section */\n')
-
- if self._should_print_single_line:
- self._XCPrint(file, 0, '}; ')
- else:
- self._XCPrint(file, 1, '};\n')
diff --git a/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py b/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py
deleted file mode 100644
index 5de8481..0000000
--- a/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright (c) 2011 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Applies a fix to CR LF TAB handling in xml.dom.
-
-Fixes this: http://code.google.com/p/chromium/issues/detail?id=76293
-Working around this: http://bugs.python.org/issue5752
-TODO(bradnelson): Consider dropping this when we drop XP support.
-"""
-
-
-import xml.dom.minidom
-
-
-def _Replacement_write_data(writer, data, is_attrib=False):
- """Writes datachars to writer."""
- data = data.replace("&", "&amp;").replace("<", "&lt;")
- data = data.replace("\"", "&quot;").replace(">", "&gt;")
- if is_attrib:
- data = data.replace(
- "\r", "&#xD;").replace(
- "\n", "&#xA;").replace(
- "\t", "&#x9;")
- writer.write(data)
-
-
-def _Replacement_writexml(self, writer, indent="", addindent="", newl=""):
- # indent = current indentation
- # addindent = indentation to add to higher levels
- # newl = newline string
- writer.write(indent+"<" + self.tagName)
-
- attrs = self._get_attributes()
- a_names = attrs.keys()
- a_names.sort()
-
- for a_name in a_names:
- writer.write(" %s=\"" % a_name)
- _Replacement_write_data(writer, attrs[a_name].value, is_attrib=True)
- writer.write("\"")
- if self.childNodes:
- writer.write(">%s" % newl)
- for node in self.childNodes:
- node.writexml(writer, indent + addindent, addindent, newl)
- writer.write("%s</%s>%s" % (indent, self.tagName, newl))
- else:
- writer.write("/>%s" % newl)
-
-
-class XmlFix(object):
- """Object to manage temporary patching of xml.dom.minidom."""
-
- def __init__(self):
- # Preserve current xml.dom.minidom functions.
- self.write_data = xml.dom.minidom._write_data
- self.writexml = xml.dom.minidom.Element.writexml
- # Inject replacement versions of a function and a method.
- xml.dom.minidom._write_data = _Replacement_write_data
- xml.dom.minidom.Element.writexml = _Replacement_writexml
-
- def Cleanup(self):
- if self.write_data:
- xml.dom.minidom._write_data = self.write_data
- xml.dom.minidom.Element.writexml = self.writexml
- self.write_data = None
-
- def __del__(self):
- self.Cleanup()
diff --git a/node_modules/node-gyp/gyp/samples/samples b/node_modules/node-gyp/gyp/samples/samples
deleted file mode 100755
index 804b618..0000000
--- a/node_modules/node-gyp/gyp/samples/samples
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/usr/bin/python
-
-# Copyright (c) 2009 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os.path
-import shutil
-import sys
-
-
-gyps = [
- 'app/app.gyp',
- 'base/base.gyp',
- 'build/temp_gyp/googleurl.gyp',
- 'build/all.gyp',
- 'build/common.gypi',
- 'build/external_code.gypi',
- 'chrome/test/security_tests/security_tests.gyp',
- 'chrome/third_party/hunspell/hunspell.gyp',
- 'chrome/chrome.gyp',
- 'media/media.gyp',
- 'net/net.gyp',
- 'printing/printing.gyp',
- 'sdch/sdch.gyp',
- 'skia/skia.gyp',
- 'testing/gmock.gyp',
- 'testing/gtest.gyp',
- 'third_party/bzip2/bzip2.gyp',
- 'third_party/icu38/icu38.gyp',
- 'third_party/libevent/libevent.gyp',
- 'third_party/libjpeg/libjpeg.gyp',
- 'third_party/libpng/libpng.gyp',
- 'third_party/libxml/libxml.gyp',
- 'third_party/libxslt/libxslt.gyp',
- 'third_party/lzma_sdk/lzma_sdk.gyp',
- 'third_party/modp_b64/modp_b64.gyp',
- 'third_party/npapi/npapi.gyp',
- 'third_party/sqlite/sqlite.gyp',
- 'third_party/zlib/zlib.gyp',
- 'v8/tools/gyp/v8.gyp',
- 'webkit/activex_shim/activex_shim.gyp',
- 'webkit/activex_shim_dll/activex_shim_dll.gyp',
- 'webkit/build/action_csspropertynames.py',
- 'webkit/build/action_cssvaluekeywords.py',
- 'webkit/build/action_jsconfig.py',
- 'webkit/build/action_makenames.py',
- 'webkit/build/action_maketokenizer.py',
- 'webkit/build/action_useragentstylesheets.py',
- 'webkit/build/rule_binding.py',
- 'webkit/build/rule_bison.py',
- 'webkit/build/rule_gperf.py',
- 'webkit/tools/test_shell/test_shell.gyp',
- 'webkit/webkit.gyp',
-]
-
-
-def Main(argv):
- if len(argv) != 3 or argv[1] not in ['push', 'pull']:
- print 'Usage: %s push/pull PATH_TO_CHROME' % argv[0]
- return 1
-
- path_to_chrome = argv[2]
-
- for g in gyps:
- chrome_file = os.path.join(path_to_chrome, g)
- local_file = os.path.join(os.path.dirname(argv[0]), os.path.split(g)[1])
- if argv[1] == 'push':
- print 'Copying %s to %s' % (local_file, chrome_file)
- shutil.copyfile(local_file, chrome_file)
- elif argv[1] == 'pull':
- print 'Copying %s to %s' % (chrome_file, local_file)
- shutil.copyfile(chrome_file, local_file)
- else:
- assert False
-
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(Main(sys.argv))
diff --git a/node_modules/node-gyp/gyp/samples/samples.bat b/node_modules/node-gyp/gyp/samples/samples.bat
deleted file mode 100644
index 778d9c9..0000000
--- a/node_modules/node-gyp/gyp/samples/samples.bat
+++ /dev/null
@@ -1,5 +0,0 @@
-@rem Copyright (c) 2009 Google Inc. All rights reserved.
-@rem Use of this source code is governed by a BSD-style license that can be
-@rem found in the LICENSE file.
-
-@python %~dp0/samples %*
diff --git a/node_modules/node-gyp/gyp/setup.py b/node_modules/node-gyp/gyp/setup.py
deleted file mode 100755
index 75a4255..0000000
--- a/node_modules/node-gyp/gyp/setup.py
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2009 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from setuptools import setup
-
-setup(
- name='gyp',
- version='0.1',
- description='Generate Your Projects',
- author='Chromium Authors',
- author_email='chromium-dev@googlegroups.com',
- url='http://code.google.com/p/gyp',
- package_dir = {'': 'pylib'},
- packages=['gyp', 'gyp.generator'],
- entry_points = {'console_scripts': ['gyp=gyp:script_main'] }
-)
diff --git a/node_modules/node-gyp/gyp/tools/README b/node_modules/node-gyp/gyp/tools/README
deleted file mode 100644
index 712e4ef..0000000
--- a/node_modules/node-gyp/gyp/tools/README
+++ /dev/null
@@ -1,15 +0,0 @@
-pretty_vcproj:
- Usage: pretty_vcproj.py "c:\path\to\vcproj.vcproj" [key1=value1] [key2=value2]
-
- They key/value pair are used to resolve vsprops name.
-
- For example, if I want to diff the base.vcproj project:
-
- pretty_vcproj.py z:\dev\src-chrome\src\base\build\base.vcproj "$(SolutionDir)=z:\dev\src-chrome\src\chrome\\" "$(CHROMIUM_BUILD)=" "$(CHROME_BUILD_TYPE)=" > orignal.txt
- pretty_vcproj.py z:\dev\src-chrome\src\base\base_gyp.vcproj "$(SolutionDir)=z:\dev\src-chrome\src\chrome\\" "$(CHROMIUM_BUILD)=" "$(CHROME_BUILD_TYPE)=" > gyp.txt
-
- And you can use your favorite diff tool to see the changes.
-
- Note: In the case of base.vcproj, the original vcproj is one level up the generated one.
- I suggest you do a search and replace for '"..\' and replace it with '"' in original.txt
- before you perform the diff. \ No newline at end of file
diff --git a/node_modules/node-gyp/gyp/tools/Xcode/README b/node_modules/node-gyp/gyp/tools/Xcode/README
deleted file mode 100644
index 2492a2c..0000000
--- a/node_modules/node-gyp/gyp/tools/Xcode/README
+++ /dev/null
@@ -1,5 +0,0 @@
-Specifications contains syntax formatters for Xcode 3. These do not appear to be supported yet on Xcode 4. To use these with Xcode 3 please install both the gyp.pbfilespec and gyp.xclangspec files in
-
-~/Library/Application Support/Developer/Shared/Xcode/Specifications/
-
-and restart Xcode. \ No newline at end of file
diff --git a/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec b/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec
deleted file mode 100644
index 85e2e26..0000000
--- a/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- gyp.pbfilespec
- GYP source file spec for Xcode 3
-
- There is not much documentation available regarding the format
- of .pbfilespec files. As a starting point, see for instance the
- outdated documentation at:
- http://maxao.free.fr/xcode-plugin-interface/specifications.html
- and the files in:
- /Developer/Library/PrivateFrameworks/XcodeEdit.framework/Versions/A/Resources/
-
- Place this file in directory:
- ~/Library/Application Support/Developer/Shared/Xcode/Specifications/
-*/
-
-(
- {
- Identifier = sourcecode.gyp;
- BasedOn = sourcecode;
- Name = "GYP Files";
- Extensions = ("gyp", "gypi");
- MIMETypes = ("text/gyp");
- Language = "xcode.lang.gyp";
- IsTextFile = YES;
- IsSourceFile = YES;
- }
-)
diff --git a/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec b/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec
deleted file mode 100644
index 3b3506d..0000000
--- a/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec
+++ /dev/null
@@ -1,226 +0,0 @@
-/*
- Copyright (c) 2011 Google Inc. All rights reserved.
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file.
-
- gyp.xclangspec
- GYP language specification for Xcode 3
-
- There is not much documentation available regarding the format
- of .xclangspec files. As a starting point, see for instance the
- outdated documentation at:
- http://maxao.free.fr/xcode-plugin-interface/specifications.html
- and the files in:
- /Developer/Library/PrivateFrameworks/XcodeEdit.framework/Versions/A/Resources/
-
- Place this file in directory:
- ~/Library/Application Support/Developer/Shared/Xcode/Specifications/
-*/
-
-(
-
- {
- Identifier = "xcode.lang.gyp.keyword";
- Syntax = {
- Words = (
- "and",
- "or",
- "<!",
- "<",
- );
- Type = "xcode.syntax.keyword";
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.target.declarator";
- Syntax = {
- Words = (
- "'target_name'",
- );
- Type = "xcode.syntax.identifier.type";
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.string.singlequote";
- Syntax = {
- IncludeRules = (
- "xcode.lang.string",
- "xcode.lang.gyp.keyword",
- "xcode.lang.number",
- );
- Start = "'";
- End = "'";
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.comma";
- Syntax = {
- Words = ( ",", );
-
- };
- },
-
- {
- Identifier = "xcode.lang.gyp";
- Description = "GYP Coloring";
- BasedOn = "xcode.lang.simpleColoring";
- IncludeInMenu = YES;
- Name = "GYP";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer.toplevel";
- IncludeRules = (
- "xcode.lang.gyp.dictionary",
- );
- Type = "xcode.syntax.plain";
- };
- },
-
- // The following rule returns tokens to the other rules
- {
- Identifier = "xcode.lang.gyp.lexer";
- Syntax = {
- IncludeRules = (
- "xcode.lang.gyp.comment",
- "xcode.lang.string",
- 'xcode.lang.gyp.targetname.declarator',
- "xcode.lang.gyp.string.singlequote",
- "xcode.lang.number",
- "xcode.lang.gyp.comma",
- );
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.lexer.toplevel";
- Syntax = {
- IncludeRules = (
- "xcode.lang.gyp.comment",
- );
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.assignment";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer";
- Rules = (
- "xcode.lang.gyp.assignment.lhs",
- ":",
- "xcode.lang.gyp.assignment.rhs",
- );
- };
-
- },
-
- {
- Identifier = "xcode.lang.gyp.target.declaration";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer";
- Rules = (
- "xcode.lang.gyp.target.declarator",
- ":",
- "xcode.lang.gyp.target.name",
- );
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.target.name";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer";
- Rules = (
- "xcode.lang.gyp.string.singlequote",
- );
- Type = "xcode.syntax.definition.function";
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.assignment.lhs";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer";
- Rules = (
- "xcode.lang.gyp.string.singlequote",
- );
- Type = "xcode.syntax.identifier.type";
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.assignment.rhs";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer";
- Rules = (
- "xcode.lang.gyp.string.singlequote?",
- "xcode.lang.gyp.array?",
- "xcode.lang.gyp.dictionary?",
- "xcode.lang.number?",
- );
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.dictionary";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer";
- Start = "{";
- End = "}";
- Foldable = YES;
- Recursive = YES;
- IncludeRules = (
- "xcode.lang.gyp.target.declaration",
- "xcode.lang.gyp.assignment",
- );
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.array";
- Syntax = {
- Tokenizer = "xcode.lang.gyp.lexer";
- Start = "[";
- End = "]";
- Foldable = YES;
- Recursive = YES;
- IncludeRules = (
- "xcode.lang.gyp.array",
- "xcode.lang.gyp.dictionary",
- "xcode.lang.gyp.string.singlequote",
- );
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.todo.mark";
- Syntax = {
- StartChars = "T";
- Match = (
- "^\(TODO\(.*\):[ \t]+.*\)$", // include "TODO: " in the markers list
- );
- // This is the order of captures. All of the match strings above need the same order.
- CaptureTypes = (
- "xcode.syntax.mark"
- );
- Type = "xcode.syntax.comment";
- };
- },
-
- {
- Identifier = "xcode.lang.gyp.comment";
- BasedOn = "xcode.lang.comment"; // for text macros
- Syntax = {
- Start = "#";
- End = "\n";
- IncludeRules = (
- "xcode.lang.url",
- "xcode.lang.url.mail",
- "xcode.lang.comment.mark",
- "xcode.lang.gyp.todo.mark",
- );
- Type = "xcode.syntax.comment";
- };
- },
-)
diff --git a/node_modules/node-gyp/gyp/tools/emacs/README b/node_modules/node-gyp/gyp/tools/emacs/README
deleted file mode 100644
index eeef39f..0000000
--- a/node_modules/node-gyp/gyp/tools/emacs/README
+++ /dev/null
@@ -1,12 +0,0 @@
-How to install gyp-mode for emacs:
-
-Add the following to your ~/.emacs (replace ... with the path to your gyp
-checkout).
-
-(setq load-path (cons ".../tools/emacs" load-path))
-(require 'gyp)
-
-Restart emacs (or eval-region the added lines) and you should be all set.
-
-Please note that ert is required for running the tests, which is included in
-Emacs 24, or available separately from https://github.com/ohler/ert
diff --git a/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el b/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el
deleted file mode 100644
index 11b8497..0000000
--- a/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el
+++ /dev/null
@@ -1,63 +0,0 @@
-;;; gyp-tests.el - unit tests for gyp-mode.
-
-;; Copyright (c) 2012 Google Inc. All rights reserved.
-;; Use of this source code is governed by a BSD-style license that can be
-;; found in the LICENSE file.
-
-;; The recommended way to run these tests is to run them from the command-line,
-;; with the run-unit-tests.sh script.
-
-(require 'cl)
-(require 'ert)
-(require 'gyp)
-
-(defconst samples (directory-files "testdata" t ".gyp$")
- "List of golden samples to check")
-
-(defun fontify (filename)
- (with-temp-buffer
- (insert-file-contents-literally filename)
- (gyp-mode)
- (font-lock-fontify-buffer)
- (buffer-string)))
-
-(defun read-golden-sample (filename)
- (with-temp-buffer
- (insert-file-contents-literally (concat filename ".fontified"))
- (read (current-buffer))))
-
-(defun equivalent-face (face)
- "For the purposes of face comparison, we're not interested in the
- differences between certain faces. For example, the difference between
- font-lock-comment-delimiter and font-lock-comment-face."
- (case face
- ((font-lock-comment-delimiter-face) font-lock-comment-face)
- (t face)))
-
-(defun text-face-properties (s)
- "Extract the text properties from s"
- (let ((result (list t)))
- (dotimes (i (length s))
- (setq result (cons (equivalent-face (get-text-property i 'face s))
- result)))
- (nreverse result)))
-
-(ert-deftest test-golden-samples ()
- "Check that fontification produces the same results as the golden samples"
- (dolist (sample samples)
- (let ((golden (read-golden-sample sample))
- (fontified (fontify sample)))
- (should (equal golden fontified))
- (should (equal (text-face-properties golden)
- (text-face-properties fontified))))))
-
-(defun create-golden-sample (filename)
- "Create a golden sample by fontifying filename and writing out the printable
- representation of the fontified buffer (with text properties) to the
- FILENAME.fontified"
- (with-temp-file (concat filename ".fontified")
- (print (fontify filename) (current-buffer))))
-
-(defun create-golden-samples ()
- "Recreate the golden samples"
- (dolist (sample samples) (create-golden-sample sample)))
diff --git a/node_modules/node-gyp/gyp/tools/emacs/gyp.el b/node_modules/node-gyp/gyp/tools/emacs/gyp.el
deleted file mode 100644
index b98b155..0000000
--- a/node_modules/node-gyp/gyp/tools/emacs/gyp.el
+++ /dev/null
@@ -1,275 +0,0 @@
-;;; gyp.el - font-lock-mode support for gyp files.
-
-;; Copyright (c) 2012 Google Inc. All rights reserved.
-;; Use of this source code is governed by a BSD-style license that can be
-;; found in the LICENSE file.
-
-;; Put this somewhere in your load-path and
-;; (require 'gyp)
-
-(require 'python)
-(require 'cl)
-
-(when (string-match "python-mode.el" (symbol-file 'python-mode 'defun))
- (error (concat "python-mode must be loaded from python.el (bundled with "
- "recent emacsen), not from the older and less maintained "
- "python-mode.el")))
-
-(defadvice python-indent-calculate-levels (after gyp-outdent-closing-parens
- activate)
- "De-indent closing parens, braces, and brackets in gyp-mode."
- (when (and (eq major-mode 'gyp-mode)
- (string-match "^ *[])}][],)}]* *$"
- (buffer-substring-no-properties
- (line-beginning-position) (line-end-position))))
- (setf (first python-indent-levels)
- (- (first python-indent-levels) python-continuation-offset))))
-
-(defadvice python-indent-guess-indent-offset (around
- gyp-indent-guess-indent-offset
- activate)
- "Guess correct indent offset in gyp-mode."
- (or (and (not (eq major-mode 'gyp-mode))
- ad-do-it)
- (save-excursion
- (save-restriction
- (widen)
- (goto-char (point-min))
- ;; Find first line ending with an opening brace that is not a comment.
- (or (and (re-search-forward "\\(^[[{]$\\|^.*[^#].*[[{]$\\)")
- (forward-line)
- (/= (current-indentation) 0)
- (set (make-local-variable 'python-indent-offset)
- (current-indentation))
- (set (make-local-variable 'python-continuation-offset)
- (current-indentation)))
- (message "Can't guess gyp indent offset, using default: %s"
- python-continuation-offset))))))
-
-(define-derived-mode gyp-mode python-mode "Gyp"
- "Major mode for editing .gyp files. See http://code.google.com/p/gyp/"
- ;; gyp-parse-history is a stack of (POSITION . PARSE-STATE) tuples,
- ;; with greater positions at the top of the stack. PARSE-STATE
- ;; is a list of section symbols (see gyp-section-name and gyp-parse-to)
- ;; with most nested section symbol at the front of the list.
- (set (make-local-variable 'gyp-parse-history) '((1 . (list))))
- (gyp-add-font-lock-keywords))
-
-(defun gyp-set-indentation ()
- "Hook function to configure python indentation to suit gyp mode."
- (set (make-local-variable 'python-indent-offset) 2)
- (set (make-local-variable 'python-continuation-offset) 2)
- (set (make-local-variable 'python-indent-guess-indent-offset) t)
- (python-indent-guess-indent-offset))
-
-(add-hook 'gyp-mode-hook 'gyp-set-indentation)
-
-(add-to-list 'auto-mode-alist '("\\.gyp\\'" . gyp-mode))
-(add-to-list 'auto-mode-alist '("\\.gypi\\'" . gyp-mode))
-(add-to-list 'auto-mode-alist '("/\\.gclient\\'" . gyp-mode))
-
-;;; Font-lock support
-
-(defconst gyp-dependencies-regexp
- (regexp-opt (list "dependencies" "export_dependent_settings"))
- "Regular expression to introduce 'dependencies' section")
-
-(defconst gyp-sources-regexp
- (regexp-opt (list "action" "files" "include_dirs" "includes" "inputs"
- "libraries" "outputs" "sources"))
- "Regular expression to introduce 'sources' sections")
-
-(defconst gyp-conditions-regexp
- (regexp-opt (list "conditions" "target_conditions"))
- "Regular expression to introduce conditions sections")
-
-(defconst gyp-variables-regexp
- "^variables"
- "Regular expression to introduce variables sections")
-
-(defconst gyp-defines-regexp
- "^defines"
- "Regular expression to introduce 'defines' sections")
-
-(defconst gyp-targets-regexp
- "^targets"
- "Regular expression to introduce 'targets' sections")
-
-(defun gyp-section-name (section)
- "Map the sections we are interested in from SECTION to symbol.
-
- SECTION is a string from the buffer that introduces a section. The result is
- a symbol representing the kind of section.
-
- This allows us to treat (for the purposes of font-lock) several different
- section names as the same kind of section. For example, a 'sources section
- can be introduced by the 'sources', 'inputs', 'outputs' keyword.
-
- 'other is the default section kind when a more specific match is not made."
- (cond ((string-match-p gyp-dependencies-regexp section) 'dependencies)
- ((string-match-p gyp-sources-regexp section) 'sources)
- ((string-match-p gyp-variables-regexp section) 'variables)
- ((string-match-p gyp-conditions-regexp section) 'conditions)
- ((string-match-p gyp-targets-regexp section) 'targets)
- ((string-match-p gyp-defines-regexp section) 'defines)
- (t 'other)))
-
-(defun gyp-invalidate-parse-states-after (target-point)
- "Erase any parse information after target-point."
- (while (> (caar gyp-parse-history) target-point)
- (setq gyp-parse-history (cdr gyp-parse-history))))
-
-(defun gyp-parse-point ()
- "The point of the last parse state added by gyp-parse-to."
- (caar gyp-parse-history))
-
-(defun gyp-parse-sections ()
- "A list of section symbols holding at the last parse state point."
- (cdar gyp-parse-history))
-
-(defun gyp-inside-dictionary-p ()
- "Predicate returning true if the parser is inside a dictionary."
- (not (eq (cadar gyp-parse-history) 'list)))
-
-(defun gyp-add-parse-history (point sections)
- "Add parse state SECTIONS to the parse history at POINT so that parsing can be
- resumed instantly."
- (while (>= (caar gyp-parse-history) point)
- (setq gyp-parse-history (cdr gyp-parse-history)))
- (setq gyp-parse-history (cons (cons point sections) gyp-parse-history)))
-
-(defun gyp-parse-to (target-point)
- "Parses from (point) to TARGET-POINT adding the parse state information to
- gyp-parse-state-history. Parsing stops if TARGET-POINT is reached or if a
- string literal has been parsed. Returns nil if no further parsing can be
- done, otherwise returns the position of the start of a parsed string, leaving
- the point at the end of the string."
- (let ((parsing t)
- string-start)
- (while parsing
- (setq string-start nil)
- ;; Parse up to a character that starts a sexp, or if the nesting
- ;; level decreases.
- (let ((state (parse-partial-sexp (gyp-parse-point)
- target-point
- -1
- t))
- (sections (gyp-parse-sections)))
- (if (= (nth 0 state) -1)
- (setq sections (cdr sections)) ; pop out a level
- (cond ((looking-at-p "['\"]") ; a string
- (setq string-start (point))
- (goto-char (scan-sexps (point) 1))
- (if (gyp-inside-dictionary-p)
- ;; Look for sections inside a dictionary
- (let ((section (gyp-section-name
- (buffer-substring-no-properties
- (+ 1 string-start)
- (- (point) 1)))))
- (setq sections (cons section (cdr sections)))))
- ;; Stop after the string so it can be fontified.
- (setq target-point (point)))
- ((looking-at-p "{")
- ;; Inside a dictionary. Increase nesting.
- (forward-char 1)
- (setq sections (cons 'unknown sections)))
- ((looking-at-p "\\[")
- ;; Inside a list. Increase nesting
- (forward-char 1)
- (setq sections (cons 'list sections)))
- ((not (eobp))
- ;; other
- (forward-char 1))))
- (gyp-add-parse-history (point) sections)
- (setq parsing (< (point) target-point))))
- string-start))
-
-(defun gyp-section-at-point ()
- "Transform the last parse state, which is a list of nested sections and return
- the section symbol that should be used to determine font-lock information for
- the string. Can return nil indicating the string should not have any attached
- section."
- (let ((sections (gyp-parse-sections)))
- (cond
- ((eq (car sections) 'conditions)
- ;; conditions can occur in a variables section, but we still want to
- ;; highlight it as a keyword.
- nil)
- ((and (eq (car sections) 'list)
- (eq (cadr sections) 'list))
- ;; conditions and sources can have items in [[ ]]
- (caddr sections))
- (t (cadr sections)))))
-
-(defun gyp-section-match (limit)
- "Parse from (point) to LIMIT returning by means of match data what was
- matched. The group of the match indicates what style font-lock should apply.
- See also `gyp-add-font-lock-keywords'."
- (gyp-invalidate-parse-states-after (point))
- (let ((group nil)
- (string-start t))
- (while (and (< (point) limit)
- (not group)
- string-start)
- (setq string-start (gyp-parse-to limit))
- (if string-start
- (setq group (case (gyp-section-at-point)
- ('dependencies 1)
- ('variables 2)
- ('conditions 2)
- ('sources 3)
- ('defines 4)
- (nil nil)))))
- (if group
- (progn
- ;; Set the match data to indicate to the font-lock mechanism the
- ;; highlighting to be performed.
- (set-match-data (append (list string-start (point))
- (make-list (* (1- group) 2) nil)
- (list (1+ string-start) (1- (point)))))
- t))))
-
-;;; Please see http://code.google.com/p/gyp/wiki/GypLanguageSpecification for
-;;; canonical list of keywords.
-(defun gyp-add-font-lock-keywords ()
- "Add gyp-mode keywords to font-lock mechanism."
- ;; TODO(jknotten): Move all the keyword highlighting into gyp-section-match
- ;; so that we can do the font-locking in a single font-lock pass.
- (font-lock-add-keywords
- nil
- (list
- ;; Top-level keywords
- (list (concat "['\"]\\("
- (regexp-opt (list "action" "action_name" "actions" "cflags"
- "cflags_cc" "conditions" "configurations"
- "copies" "defines" "dependencies" "destination"
- "direct_dependent_settings"
- "export_dependent_settings" "extension" "files"
- "include_dirs" "includes" "inputs" "ldflags" "libraries"
- "link_settings" "mac_bundle" "message"
- "msvs_external_rule" "outputs" "product_name"
- "process_outputs_as_sources" "rules" "rule_name"
- "sources" "suppress_wildcard"
- "target_conditions" "target_defaults"
- "target_defines" "target_name" "toolsets"
- "targets" "type" "variables" "xcode_settings"))
- "[!/+=]?\\)") 1 'font-lock-keyword-face t)
- ;; Type of target
- (list (concat "['\"]\\("
- (regexp-opt (list "loadable_module" "static_library"
- "shared_library" "executable" "none"))
- "\\)") 1 'font-lock-type-face t)
- (list "\\(?:target\\|action\\)_name['\"]\\s-*:\\s-*['\"]\\([^ '\"]*\\)" 1
- 'font-lock-function-name-face t)
- (list 'gyp-section-match
- (list 1 'font-lock-function-name-face t t) ; dependencies
- (list 2 'font-lock-variable-name-face t t) ; variables, conditions
- (list 3 'font-lock-constant-face t t) ; sources
- (list 4 'font-lock-preprocessor-face t t)) ; preprocessor
- ;; Variable expansion
- (list "<@?(\\([^\n )]+\\))" 1 'font-lock-variable-name-face t)
- ;; Command expansion
- (list "<!@?(\\([^\n )]+\\))" 1 'font-lock-variable-name-face t)
- )))
-
-(provide 'gyp)
diff --git a/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh b/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh
deleted file mode 100755
index 6e62b9b..0000000
--- a/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-emacs --no-site-file --no-init-file --batch \
- --load ert.el --load gyp.el --load gyp-tests.el \
- -f ert-run-tests-batch-and-exit
diff --git a/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp b/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp
deleted file mode 100644
index 29300fe..0000000
--- a/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp
+++ /dev/null
@@ -1,1105 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'variables': {
- 'chromium_code': 1,
- # Override to dynamically link the PulseAudio library.
- 'use_pulseaudio%': 0,
- # Override to dynamically link the cras (ChromeOS audio) library.
- 'use_cras%': 0,
- },
- 'targets': [
- {
- 'target_name': 'media',
- 'type': '<(component)',
- 'dependencies': [
- 'yuv_convert',
- '../base/base.gyp:base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../build/temp_gyp/googleurl.gyp:googleurl',
- '../crypto/crypto.gyp:crypto',
- '../third_party/openmax/openmax.gyp:il',
- '../ui/ui.gyp:ui',
- ],
- 'defines': [
- 'MEDIA_IMPLEMENTATION',
- ],
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'audio/android/audio_manager_android.cc',
- 'audio/android/audio_manager_android.h',
- 'audio/android/audio_track_output_android.cc',
- 'audio/android/audio_track_output_android.h',
- 'audio/android/opensles_input.cc',
- 'audio/android/opensles_input.h',
- 'audio/android/opensles_output.cc',
- 'audio/android/opensles_output.h',
- 'audio/async_socket_io_handler.h',
- 'audio/async_socket_io_handler_posix.cc',
- 'audio/async_socket_io_handler_win.cc',
- 'audio/audio_buffers_state.cc',
- 'audio/audio_buffers_state.h',
- 'audio/audio_io.h',
- 'audio/audio_input_controller.cc',
- 'audio/audio_input_controller.h',
- 'audio/audio_input_stream_impl.cc',
- 'audio/audio_input_stream_impl.h',
- 'audio/audio_device_name.cc',
- 'audio/audio_device_name.h',
- 'audio/audio_manager.cc',
- 'audio/audio_manager.h',
- 'audio/audio_manager_base.cc',
- 'audio/audio_manager_base.h',
- 'audio/audio_output_controller.cc',
- 'audio/audio_output_controller.h',
- 'audio/audio_output_dispatcher.cc',
- 'audio/audio_output_dispatcher.h',
- 'audio/audio_output_dispatcher_impl.cc',
- 'audio/audio_output_dispatcher_impl.h',
- 'audio/audio_output_mixer.cc',
- 'audio/audio_output_mixer.h',
- 'audio/audio_output_proxy.cc',
- 'audio/audio_output_proxy.h',
- 'audio/audio_parameters.cc',
- 'audio/audio_parameters.h',
- 'audio/audio_util.cc',
- 'audio/audio_util.h',
- 'audio/cross_process_notification.cc',
- 'audio/cross_process_notification.h',
- 'audio/cross_process_notification_win.cc',
- 'audio/cross_process_notification_posix.cc',
- 'audio/fake_audio_input_stream.cc',
- 'audio/fake_audio_input_stream.h',
- 'audio/fake_audio_output_stream.cc',
- 'audio/fake_audio_output_stream.h',
- 'audio/linux/audio_manager_linux.cc',
- 'audio/linux/audio_manager_linux.h',
- 'audio/linux/alsa_input.cc',
- 'audio/linux/alsa_input.h',
- 'audio/linux/alsa_output.cc',
- 'audio/linux/alsa_output.h',
- 'audio/linux/alsa_util.cc',
- 'audio/linux/alsa_util.h',
- 'audio/linux/alsa_wrapper.cc',
- 'audio/linux/alsa_wrapper.h',
- 'audio/linux/cras_output.cc',
- 'audio/linux/cras_output.h',
- 'audio/openbsd/audio_manager_openbsd.cc',
- 'audio/openbsd/audio_manager_openbsd.h',
- 'audio/mac/audio_input_mac.cc',
- 'audio/mac/audio_input_mac.h',
- 'audio/mac/audio_low_latency_input_mac.cc',
- 'audio/mac/audio_low_latency_input_mac.h',
- 'audio/mac/audio_low_latency_output_mac.cc',
- 'audio/mac/audio_low_latency_output_mac.h',
- 'audio/mac/audio_manager_mac.cc',
- 'audio/mac/audio_manager_mac.h',
- 'audio/mac/audio_output_mac.cc',
- 'audio/mac/audio_output_mac.h',
- 'audio/null_audio_sink.cc',
- 'audio/null_audio_sink.h',
- 'audio/pulse/pulse_output.cc',
- 'audio/pulse/pulse_output.h',
- 'audio/sample_rates.cc',
- 'audio/sample_rates.h',
- 'audio/simple_sources.cc',
- 'audio/simple_sources.h',
- 'audio/win/audio_low_latency_input_win.cc',
- 'audio/win/audio_low_latency_input_win.h',
- 'audio/win/audio_low_latency_output_win.cc',
- 'audio/win/audio_low_latency_output_win.h',
- 'audio/win/audio_manager_win.cc',
- 'audio/win/audio_manager_win.h',
- 'audio/win/avrt_wrapper_win.cc',
- 'audio/win/avrt_wrapper_win.h',
- 'audio/win/device_enumeration_win.cc',
- 'audio/win/device_enumeration_win.h',
- 'audio/win/wavein_input_win.cc',
- 'audio/win/wavein_input_win.h',
- 'audio/win/waveout_output_win.cc',
- 'audio/win/waveout_output_win.h',
- 'base/android/media_jni_registrar.cc',
- 'base/android/media_jni_registrar.h',
- 'base/audio_decoder.cc',
- 'base/audio_decoder.h',
- 'base/audio_decoder_config.cc',
- 'base/audio_decoder_config.h',
- 'base/audio_renderer.h',
- 'base/audio_renderer_mixer.cc',
- 'base/audio_renderer_mixer.h',
- 'base/audio_renderer_mixer_input.cc',
- 'base/audio_renderer_mixer_input.h',
- 'base/bitstream_buffer.h',
- 'base/buffers.cc',
- 'base/buffers.h',
- 'base/byte_queue.cc',
- 'base/byte_queue.h',
- 'base/channel_layout.cc',
- 'base/channel_layout.h',
- 'base/clock.cc',
- 'base/clock.h',
- 'base/composite_filter.cc',
- 'base/composite_filter.h',
- 'base/data_buffer.cc',
- 'base/data_buffer.h',
- 'base/data_source.cc',
- 'base/data_source.h',
- 'base/decoder_buffer.cc',
- 'base/decoder_buffer.h',
- 'base/decrypt_config.cc',
- 'base/decrypt_config.h',
- 'base/decryptor.h',
- 'base/decryptor_client.h',
- 'base/demuxer.cc',
- 'base/demuxer.h',
- 'base/demuxer_stream.cc',
- 'base/demuxer_stream.h',
- 'base/djb2.cc',
- 'base/djb2.h',
- 'base/filter_collection.cc',
- 'base/filter_collection.h',
- 'base/filter_host.h',
- 'base/filters.cc',
- 'base/filters.h',
- 'base/h264_bitstream_converter.cc',
- 'base/h264_bitstream_converter.h',
- 'base/media.h',
- 'base/media_android.cc',
- 'base/media_export.h',
- 'base/media_log.cc',
- 'base/media_log.h',
- 'base/media_log_event.h',
- 'base/media_posix.cc',
- 'base/media_switches.cc',
- 'base/media_switches.h',
- 'base/media_win.cc',
- 'base/message_loop_factory.cc',
- 'base/message_loop_factory.h',
- 'base/pipeline.cc',
- 'base/pipeline.h',
- 'base/pipeline_status.cc',
- 'base/pipeline_status.h',
- 'base/ranges.cc',
- 'base/ranges.h',
- 'base/seekable_buffer.cc',
- 'base/seekable_buffer.h',
- 'base/state_matrix.cc',
- 'base/state_matrix.h',
- 'base/stream_parser.cc',
- 'base/stream_parser.h',
- 'base/stream_parser_buffer.cc',
- 'base/stream_parser_buffer.h',
- 'base/video_decoder.cc',
- 'base/video_decoder.h',
- 'base/video_decoder_config.cc',
- 'base/video_decoder_config.h',
- 'base/video_frame.cc',
- 'base/video_frame.h',
- 'base/video_renderer.h',
- 'base/video_util.cc',
- 'base/video_util.h',
- 'crypto/aes_decryptor.cc',
- 'crypto/aes_decryptor.h',
- 'ffmpeg/ffmpeg_common.cc',
- 'ffmpeg/ffmpeg_common.h',
- 'ffmpeg/file_protocol.cc',
- 'ffmpeg/file_protocol.h',
- 'filters/audio_file_reader.cc',
- 'filters/audio_file_reader.h',
- 'filters/audio_renderer_algorithm.cc',
- 'filters/audio_renderer_algorithm.h',
- 'filters/audio_renderer_impl.cc',
- 'filters/audio_renderer_impl.h',
- 'filters/bitstream_converter.cc',
- 'filters/bitstream_converter.h',
- 'filters/chunk_demuxer.cc',
- 'filters/chunk_demuxer.h',
- 'filters/chunk_demuxer_client.h',
- 'filters/dummy_demuxer.cc',
- 'filters/dummy_demuxer.h',
- 'filters/ffmpeg_audio_decoder.cc',
- 'filters/ffmpeg_audio_decoder.h',
- 'filters/ffmpeg_demuxer.cc',
- 'filters/ffmpeg_demuxer.h',
- 'filters/ffmpeg_h264_bitstream_converter.cc',
- 'filters/ffmpeg_h264_bitstream_converter.h',
- 'filters/ffmpeg_glue.cc',
- 'filters/ffmpeg_glue.h',
- 'filters/ffmpeg_video_decoder.cc',
- 'filters/ffmpeg_video_decoder.h',
- 'filters/file_data_source.cc',
- 'filters/file_data_source.h',
- 'filters/gpu_video_decoder.cc',
- 'filters/gpu_video_decoder.h',
- 'filters/in_memory_url_protocol.cc',
- 'filters/in_memory_url_protocol.h',
- 'filters/source_buffer_stream.cc',
- 'filters/source_buffer_stream.h',
- 'filters/video_frame_generator.cc',
- 'filters/video_frame_generator.h',
- 'filters/video_renderer_base.cc',
- 'filters/video_renderer_base.h',
- 'video/capture/fake_video_capture_device.cc',
- 'video/capture/fake_video_capture_device.h',
- 'video/capture/linux/video_capture_device_linux.cc',
- 'video/capture/linux/video_capture_device_linux.h',
- 'video/capture/mac/video_capture_device_mac.h',
- 'video/capture/mac/video_capture_device_mac.mm',
- 'video/capture/mac/video_capture_device_qtkit_mac.h',
- 'video/capture/mac/video_capture_device_qtkit_mac.mm',
- 'video/capture/video_capture.h',
- 'video/capture/video_capture_device.h',
- 'video/capture/video_capture_device_dummy.cc',
- 'video/capture/video_capture_device_dummy.h',
- 'video/capture/video_capture_proxy.cc',
- 'video/capture/video_capture_proxy.h',
- 'video/capture/video_capture_types.h',
- 'video/capture/win/filter_base_win.cc',
- 'video/capture/win/filter_base_win.h',
- 'video/capture/win/pin_base_win.cc',
- 'video/capture/win/pin_base_win.h',
- 'video/capture/win/sink_filter_observer_win.h',
- 'video/capture/win/sink_filter_win.cc',
- 'video/capture/win/sink_filter_win.h',
- 'video/capture/win/sink_input_pin_win.cc',
- 'video/capture/win/sink_input_pin_win.h',
- 'video/capture/win/video_capture_device_win.cc',
- 'video/capture/win/video_capture_device_win.h',
- 'video/picture.cc',
- 'video/picture.h',
- 'video/video_decode_accelerator.cc',
- 'video/video_decode_accelerator.h',
- 'webm/webm_constants.h',
- 'webm/webm_cluster_parser.cc',
- 'webm/webm_cluster_parser.h',
- 'webm/webm_content_encodings.cc',
- 'webm/webm_content_encodings.h',
- 'webm/webm_content_encodings_client.cc',
- 'webm/webm_content_encodings_client.h',
- 'webm/webm_info_parser.cc',
- 'webm/webm_info_parser.h',
- 'webm/webm_parser.cc',
- 'webm/webm_parser.h',
- 'webm/webm_stream_parser.cc',
- 'webm/webm_stream_parser.h',
- 'webm/webm_tracks_parser.cc',
- 'webm/webm_tracks_parser.h',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '..',
- ],
- },
- 'conditions': [
- # Android doesn't use ffmpeg, so make the dependency conditional
- # and exclude the sources which depend on ffmpeg.
- ['OS != "android"', {
- 'dependencies': [
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- }],
- ['OS == "android"', {
- 'sources!': [
- 'base/media_posix.cc',
- 'ffmpeg/ffmpeg_common.cc',
- 'ffmpeg/ffmpeg_common.h',
- 'ffmpeg/file_protocol.cc',
- 'ffmpeg/file_protocol.h',
- 'filters/audio_file_reader.cc',
- 'filters/audio_file_reader.h',
- 'filters/bitstream_converter.cc',
- 'filters/bitstream_converter.h',
- 'filters/chunk_demuxer.cc',
- 'filters/chunk_demuxer.h',
- 'filters/chunk_demuxer_client.h',
- 'filters/ffmpeg_audio_decoder.cc',
- 'filters/ffmpeg_audio_decoder.h',
- 'filters/ffmpeg_demuxer.cc',
- 'filters/ffmpeg_demuxer.h',
- 'filters/ffmpeg_h264_bitstream_converter.cc',
- 'filters/ffmpeg_h264_bitstream_converter.h',
- 'filters/ffmpeg_glue.cc',
- 'filters/ffmpeg_glue.h',
- 'filters/ffmpeg_video_decoder.cc',
- 'filters/ffmpeg_video_decoder.h',
- 'filters/gpu_video_decoder.cc',
- 'filters/gpu_video_decoder.h',
- 'webm/webm_cluster_parser.cc',
- 'webm/webm_cluster_parser.h',
- 'webm/webm_stream_parser.cc',
- 'webm/webm_stream_parser.h',
- ],
- }],
- # The below 'android' condition were added temporarily and should be
- # removed in downstream, because there is no Java environment setup in
- # upstream yet.
- ['OS == "android"', {
- 'sources!':[
- 'audio/android/audio_track_output_android.cc',
- ],
- 'sources':[
- 'audio/android/audio_track_output_stub_android.cc',
- ],
- 'link_settings': {
- 'libraries': [
- '-lOpenSLES',
- ],
- },
- }],
- ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
- 'link_settings': {
- 'libraries': [
- '-lasound',
- ],
- },
- }],
- ['OS=="openbsd"', {
- 'sources/': [ ['exclude', '/alsa_' ],
- ['exclude', '/audio_manager_linux' ] ],
- 'link_settings': {
- 'libraries': [
- ],
- },
- }],
- ['OS!="openbsd"', {
- 'sources!': [
- 'audio/openbsd/audio_manager_openbsd.cc',
- 'audio/openbsd/audio_manager_openbsd.h',
- ],
- }],
- ['OS=="linux"', {
- 'variables': {
- 'conditions': [
- ['sysroot!=""', {
- 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
- }, {
- 'pkg-config': 'pkg-config'
- }],
- ],
- },
- 'conditions': [
- ['use_cras == 1', {
- 'cflags': [
- '<!@(<(pkg-config) --cflags libcras)',
- ],
- 'link_settings': {
- 'libraries': [
- '<!@(<(pkg-config) --libs libcras)',
- ],
- },
- 'defines': [
- 'USE_CRAS',
- ],
- }, { # else: use_cras == 0
- 'sources!': [
- 'audio/linux/cras_output.cc',
- 'audio/linux/cras_output.h',
- ],
- }],
- ],
- }],
- ['os_posix == 1', {
- 'conditions': [
- ['use_pulseaudio == 1', {
- 'cflags': [
- '<!@(pkg-config --cflags libpulse)',
- ],
- 'link_settings': {
- 'libraries': [
- '<!@(pkg-config --libs-only-l libpulse)',
- ],
- },
- 'defines': [
- 'USE_PULSEAUDIO',
- ],
- }, { # else: use_pulseaudio == 0
- 'sources!': [
- 'audio/pulse/pulse_output.cc',
- 'audio/pulse/pulse_output.h',
- ],
- }],
- ],
- }],
- ['os_posix == 1 and OS != "android"', {
- # Video capture isn't supported in Android yet.
- 'sources!': [
- 'video/capture/video_capture_device_dummy.cc',
- 'video/capture/video_capture_device_dummy.h',
- ],
- }],
- ['OS=="mac"', {
- 'link_settings': {
- 'libraries': [
- '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
- '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
- '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
- ],
- },
- }],
- ['OS=="win"', {
- 'sources!': [
- 'audio/pulse/pulse_output.cc',
- 'audio/pulse/pulse_output.h',
- 'video/capture/video_capture_device_dummy.cc',
- 'video/capture/video_capture_device_dummy.h',
- ],
- }],
- ['proprietary_codecs==1 or branding=="Chrome"', {
- 'sources': [
- 'mp4/avc.cc',
- 'mp4/avc.h',
- 'mp4/box_definitions.cc',
- 'mp4/box_definitions.h',
- 'mp4/box_reader.cc',
- 'mp4/box_reader.h',
- 'mp4/cenc.cc',
- 'mp4/cenc.h',
- 'mp4/mp4_stream_parser.cc',
- 'mp4/mp4_stream_parser.h',
- 'mp4/offset_byte_queue.cc',
- 'mp4/offset_byte_queue.h',
- 'mp4/track_run_iterator.cc',
- 'mp4/track_run_iterator.h',
- ],
- }],
- ],
- },
- {
- 'target_name': 'yuv_convert',
- 'type': 'static_library',
- 'include_dirs': [
- '..',
- ],
- 'conditions': [
- ['order_profiling != 0', {
- 'target_conditions' : [
- ['_toolset=="target"', {
- 'cflags!': [ '-finstrument-functions' ],
- }],
- ],
- }],
- [ 'target_arch == "ia32" or target_arch == "x64"', {
- 'dependencies': [
- 'yuv_convert_simd_x86',
- ],
- }],
- [ 'target_arch == "arm"', {
- 'dependencies': [
- 'yuv_convert_simd_arm',
- ],
- }],
- ],
- 'sources': [
- 'base/yuv_convert.cc',
- 'base/yuv_convert.h',
- ],
- },
- {
- 'target_name': 'yuv_convert_simd_x86',
- 'type': 'static_library',
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'base/simd/convert_rgb_to_yuv_c.cc',
- 'base/simd/convert_rgb_to_yuv_sse2.cc',
- 'base/simd/convert_rgb_to_yuv_ssse3.asm',
- 'base/simd/convert_rgb_to_yuv_ssse3.cc',
- 'base/simd/convert_rgb_to_yuv_ssse3.inc',
- 'base/simd/convert_yuv_to_rgb_c.cc',
- 'base/simd/convert_yuv_to_rgb_x86.cc',
- 'base/simd/convert_yuv_to_rgb_mmx.asm',
- 'base/simd/convert_yuv_to_rgb_mmx.inc',
- 'base/simd/convert_yuv_to_rgb_sse.asm',
- 'base/simd/filter_yuv.h',
- 'base/simd/filter_yuv_c.cc',
- 'base/simd/filter_yuv_mmx.cc',
- 'base/simd/filter_yuv_sse2.cc',
- 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
- 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
- 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
- 'base/simd/scale_yuv_to_rgb_mmx.asm',
- 'base/simd/scale_yuv_to_rgb_mmx.inc',
- 'base/simd/scale_yuv_to_rgb_sse.asm',
- 'base/simd/yuv_to_rgb_table.cc',
- 'base/simd/yuv_to_rgb_table.h',
- ],
- 'conditions': [
- ['order_profiling != 0', {
- 'target_conditions' : [
- ['_toolset=="target"', {
- 'cflags!': [ '-finstrument-functions' ],
- }],
- ],
- }],
- [ 'target_arch == "x64"', {
- # Source files optimized for X64 systems.
- 'sources': [
- 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
- 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
- ],
- }],
- [ 'os_posix == 1 and OS != "mac" and OS != "android"', {
- 'cflags': [
- '-msse2',
- ],
- }],
- [ 'OS == "mac"', {
- 'configurations': {
- 'Debug': {
- 'xcode_settings': {
- # gcc on the mac builds horribly unoptimized sse code in debug
- # mode. Since this is rarely going to be debugged, run with full
- # optimizations in Debug as well as Release.
- 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
- },
- },
- },
- }],
- [ 'OS=="win"', {
- 'variables': {
- 'yasm_flags': [
- '-DWIN32',
- '-DMSVC',
- '-DCHROMIUM',
- '-Isimd',
- ],
- },
- }],
- [ 'OS=="mac"', {
- 'variables': {
- 'yasm_flags': [
- '-DPREFIX',
- '-DMACHO',
- '-DCHROMIUM',
- '-Isimd',
- ],
- },
- }],
- [ 'os_posix==1 and OS!="mac"', {
- 'variables': {
- 'conditions': [
- [ 'target_arch=="ia32"', {
- 'yasm_flags': [
- '-DX86_32',
- '-DELF',
- '-DCHROMIUM',
- '-Isimd',
- ],
- }, {
- 'yasm_flags': [
- '-DARCH_X86_64',
- '-DELF',
- '-DPIC',
- '-DCHROMIUM',
- '-Isimd',
- ],
- }],
- ],
- },
- }],
- ],
- 'variables': {
- 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
- },
- 'msvs_2010_disable_uldi_when_referenced': 1,
- 'includes': [
- '../third_party/yasm/yasm_compile.gypi',
- ],
- },
- {
- 'target_name': 'yuv_convert_simd_arm',
- 'type': 'static_library',
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'base/simd/convert_rgb_to_yuv_c.cc',
- 'base/simd/convert_rgb_to_yuv.h',
- 'base/simd/convert_yuv_to_rgb_c.cc',
- 'base/simd/convert_yuv_to_rgb.h',
- 'base/simd/filter_yuv.h',
- 'base/simd/filter_yuv_c.cc',
- 'base/simd/yuv_to_rgb_table.cc',
- 'base/simd/yuv_to_rgb_table.h',
- ],
- },
- {
- 'target_name': 'media_unittests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'media_test_support',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../base/base.gyp:base_i18n',
- '../base/base.gyp:test_support_base',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '../ui/ui.gyp:ui',
- ],
- 'sources': [
- 'audio/async_socket_io_handler_unittest.cc',
- 'audio/audio_input_controller_unittest.cc',
- 'audio/audio_input_device_unittest.cc',
- 'audio/audio_input_unittest.cc',
- 'audio/audio_input_volume_unittest.cc',
- 'audio/audio_low_latency_input_output_unittest.cc',
- 'audio/audio_output_controller_unittest.cc',
- 'audio/audio_output_proxy_unittest.cc',
- 'audio/audio_parameters_unittest.cc',
- 'audio/audio_util_unittest.cc',
- 'audio/cross_process_notification_unittest.cc',
- 'audio/linux/alsa_output_unittest.cc',
- 'audio/mac/audio_low_latency_input_mac_unittest.cc',
- 'audio/mac/audio_output_mac_unittest.cc',
- 'audio/simple_sources_unittest.cc',
- 'audio/win/audio_low_latency_input_win_unittest.cc',
- 'audio/win/audio_low_latency_output_win_unittest.cc',
- 'audio/win/audio_output_win_unittest.cc',
- 'base/audio_renderer_mixer_unittest.cc',
- 'base/audio_renderer_mixer_input_unittest.cc',
- 'base/buffers_unittest.cc',
- 'base/clock_unittest.cc',
- 'base/composite_filter_unittest.cc',
- 'base/data_buffer_unittest.cc',
- 'base/decoder_buffer_unittest.cc',
- 'base/djb2_unittest.cc',
- 'base/fake_audio_render_callback.cc',
- 'base/fake_audio_render_callback.h',
- 'base/filter_collection_unittest.cc',
- 'base/h264_bitstream_converter_unittest.cc',
- 'base/pipeline_unittest.cc',
- 'base/ranges_unittest.cc',
- 'base/run_all_unittests.cc',
- 'base/seekable_buffer_unittest.cc',
- 'base/state_matrix_unittest.cc',
- 'base/test_data_util.cc',
- 'base/test_data_util.h',
- 'base/video_frame_unittest.cc',
- 'base/video_util_unittest.cc',
- 'base/yuv_convert_unittest.cc',
- 'crypto/aes_decryptor_unittest.cc',
- 'ffmpeg/ffmpeg_common_unittest.cc',
- 'filters/audio_renderer_algorithm_unittest.cc',
- 'filters/audio_renderer_impl_unittest.cc',
- 'filters/bitstream_converter_unittest.cc',
- 'filters/chunk_demuxer_unittest.cc',
- 'filters/ffmpeg_audio_decoder_unittest.cc',
- 'filters/ffmpeg_decoder_unittest.h',
- 'filters/ffmpeg_demuxer_unittest.cc',
- 'filters/ffmpeg_glue_unittest.cc',
- 'filters/ffmpeg_h264_bitstream_converter_unittest.cc',
- 'filters/ffmpeg_video_decoder_unittest.cc',
- 'filters/file_data_source_unittest.cc',
- 'filters/pipeline_integration_test.cc',
- 'filters/pipeline_integration_test_base.cc',
- 'filters/source_buffer_stream_unittest.cc',
- 'filters/video_renderer_base_unittest.cc',
- 'video/capture/video_capture_device_unittest.cc',
- 'webm/cluster_builder.cc',
- 'webm/cluster_builder.h',
- 'webm/webm_cluster_parser_unittest.cc',
- 'webm/webm_content_encodings_client_unittest.cc',
- 'webm/webm_parser_unittest.cc',
- ],
- 'conditions': [
- ['os_posix==1 and OS!="mac"', {
- 'conditions': [
- ['linux_use_tcmalloc==1', {
- 'dependencies': [
- '../base/allocator/allocator.gyp:allocator',
- ],
- }],
- ],
- }],
- ['OS != "android"', {
- 'dependencies': [
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- }],
- ['OS == "android"', {
- 'sources!': [
- 'audio/audio_input_volume_unittest.cc',
- 'base/test_data_util.cc',
- 'base/test_data_util.h',
- 'ffmpeg/ffmpeg_common_unittest.cc',
- 'filters/ffmpeg_audio_decoder_unittest.cc',
- 'filters/bitstream_converter_unittest.cc',
- 'filters/chunk_demuxer_unittest.cc',
- 'filters/ffmpeg_demuxer_unittest.cc',
- 'filters/ffmpeg_glue_unittest.cc',
- 'filters/ffmpeg_h264_bitstream_converter_unittest.cc',
- 'filters/ffmpeg_video_decoder_unittest.cc',
- 'filters/pipeline_integration_test.cc',
- 'filters/pipeline_integration_test_base.cc',
- 'mp4/mp4_stream_parser_unittest.cc',
- 'webm/webm_cluster_parser_unittest.cc',
- ],
- }],
- ['OS == "linux"', {
- 'conditions': [
- ['use_cras == 1', {
- 'sources': [
- 'audio/linux/cras_output_unittest.cc',
- ],
- 'defines': [
- 'USE_CRAS',
- ],
- }],
- ],
- }],
- [ 'target_arch=="ia32" or target_arch=="x64"', {
- 'sources': [
- 'base/simd/convert_rgb_to_yuv_unittest.cc',
- ],
- }],
- ['proprietary_codecs==1 or branding=="Chrome"', {
- 'sources': [
- 'mp4/avc_unittest.cc',
- 'mp4/box_reader_unittest.cc',
- 'mp4/mp4_stream_parser_unittest.cc',
- 'mp4/offset_byte_queue_unittest.cc',
- ],
- }],
- ],
- },
- {
- 'target_name': 'media_test_support',
- 'type': 'static_library',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- ],
- 'sources': [
- 'audio/test_audio_input_controller_factory.cc',
- 'audio/test_audio_input_controller_factory.h',
- 'base/mock_callback.cc',
- 'base/mock_callback.h',
- 'base/mock_data_source_host.cc',
- 'base/mock_data_source_host.h',
- 'base/mock_demuxer_host.cc',
- 'base/mock_demuxer_host.h',
- 'base/mock_filter_host.cc',
- 'base/mock_filter_host.h',
- 'base/mock_filters.cc',
- 'base/mock_filters.h',
- ],
- },
- {
- 'target_name': 'scaler_bench',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../skia/skia.gyp:skia',
- ],
- 'sources': [
- 'tools/scaler_bench/scaler_bench.cc',
- ],
- },
- {
- 'target_name': 'qt_faststart',
- 'type': 'executable',
- 'sources': [
- 'tools/qt_faststart/qt_faststart.c'
- ],
- },
- {
- 'target_name': 'seek_tester',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- ],
- 'sources': [
- 'tools/seek_tester/seek_tester.cc',
- ],
- },
- ],
- 'conditions': [
- ['OS=="win"', {
- 'targets': [
- {
- 'target_name': 'player_wtl',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../ui/ui.gyp:ui',
- ],
- 'include_dirs': [
- '<(DEPTH)/third_party/wtl/include',
- ],
- 'sources': [
- 'tools/player_wtl/list.h',
- 'tools/player_wtl/mainfrm.h',
- 'tools/player_wtl/movie.cc',
- 'tools/player_wtl/movie.h',
- 'tools/player_wtl/player_wtl.cc',
- 'tools/player_wtl/player_wtl.rc',
- 'tools/player_wtl/props.h',
- 'tools/player_wtl/seek.h',
- 'tools/player_wtl/resource.h',
- 'tools/player_wtl/view.h',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
- },
- },
- 'defines': [
- '_CRT_SECURE_NO_WARNINGS=1',
- ],
- },
- ],
- }],
- ['OS == "win" or toolkit_uses_gtk == 1', {
- 'targets': [
- {
- 'target_name': 'shader_bench',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../ui/gl/gl.gyp:gl',
- ],
- 'sources': [
- 'tools/shader_bench/shader_bench.cc',
- 'tools/shader_bench/cpu_color_painter.cc',
- 'tools/shader_bench/cpu_color_painter.h',
- 'tools/shader_bench/gpu_color_painter.cc',
- 'tools/shader_bench/gpu_color_painter.h',
- 'tools/shader_bench/gpu_painter.cc',
- 'tools/shader_bench/gpu_painter.h',
- 'tools/shader_bench/painter.cc',
- 'tools/shader_bench/painter.h',
- 'tools/shader_bench/window.cc',
- 'tools/shader_bench/window.h',
- ],
- 'conditions': [
- ['toolkit_uses_gtk == 1', {
- 'dependencies': [
- '../build/linux/system.gyp:gtk',
- ],
- 'sources': [
- 'tools/shader_bench/window_linux.cc',
- ],
- }],
- ['OS=="win"', {
- 'dependencies': [
- '../third_party/angle/src/build_angle.gyp:libEGL',
- '../third_party/angle/src/build_angle.gyp:libGLESv2',
- ],
- 'sources': [
- 'tools/shader_bench/window_win.cc',
- ],
- }],
- ],
- },
- ],
- }],
- ['OS == "linux" and target_arch != "arm"', {
- 'targets': [
- {
- 'target_name': 'tile_render_bench',
- 'type': 'executable',
- 'dependencies': [
- '../base/base.gyp:base',
- '../ui/gl/gl.gyp:gl',
- ],
- 'libraries': [
- '-lGL',
- '-ldl',
- ],
- 'sources': [
- 'tools/tile_render_bench/tile_render_bench.cc',
- ],
- },
- ],
- }],
- ['os_posix == 1 and OS != "mac" and OS != "android"', {
- 'targets': [
- {
- 'target_name': 'player_x11',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../ui/gl/gl.gyp:gl',
- ],
- 'link_settings': {
- 'libraries': [
- '-ldl',
- '-lX11',
- '-lXrender',
- '-lXext',
- ],
- },
- 'sources': [
- 'tools/player_x11/data_source_logger.cc',
- 'tools/player_x11/data_source_logger.h',
- 'tools/player_x11/gl_video_renderer.cc',
- 'tools/player_x11/gl_video_renderer.h',
- 'tools/player_x11/player_x11.cc',
- 'tools/player_x11/x11_video_renderer.cc',
- 'tools/player_x11/x11_video_renderer.h',
- ],
- },
- ],
- }],
- ['OS == "android"', {
- 'targets': [
- {
- 'target_name': 'player_android',
- 'type': 'static_library',
- 'sources': [
- 'base/android/media_player_bridge.cc',
- 'base/android/media_player_bridge.h',
- ],
- 'dependencies': [
- '../base/base.gyp:base',
- ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/media',
- ],
- 'actions': [
- {
- 'action_name': 'generate-jni-headers',
- 'inputs': [
- '../base/android/jni_generator/jni_generator.py',
- 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/media/jni/media_player_listener_jni.h',
- ],
- 'action': [
- 'python',
- '<(DEPTH)/base/android/jni_generator/jni_generator.py',
- '-o',
- '<@(_inputs)',
- '<@(_outputs)',
- ],
- },
- ],
- },
- {
- 'target_name': 'media_java',
- 'type': 'none',
- 'dependencies': [ '../base/base.gyp:base_java' ],
- 'variables': {
- 'package_name': 'media',
- 'java_in_dir': 'base/android/java',
- },
- 'includes': [ '../build/java.gypi' ],
- },
-
- ],
- }, { # OS != "android"'
- # Android does not use ffmpeg, so disable the targets which require it.
- 'targets': [
- {
- 'target_name': 'ffmpeg_unittests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'media_test_support',
- '../base/base.gyp:base',
- '../base/base.gyp:base_i18n',
- '../base/base.gyp:test_support_base',
- '../base/base.gyp:test_support_perf',
- '../testing/gtest.gyp:gtest',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'ffmpeg/ffmpeg_unittest.cc',
- ],
- 'conditions': [
- ['toolkit_uses_gtk == 1', {
- 'dependencies': [
- # Needed for the following #include chain:
- # base/run_all_unittests.cc
- # ../base/test_suite.h
- # gtk/gtk.h
- '../build/linux/system.gyp:gtk',
- ],
- 'conditions': [
- ['linux_use_tcmalloc==1', {
- 'dependencies': [
- '../base/allocator/allocator.gyp:allocator',
- ],
- }],
- ],
- }],
- ],
- },
- {
- 'target_name': 'ffmpeg_regression_tests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'media_test_support',
- '../base/base.gyp:test_support_base',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'base/test_data_util.cc',
- 'base/run_all_unittests.cc',
- 'ffmpeg/ffmpeg_regression_tests.cc',
- 'filters/pipeline_integration_test_base.cc',
- ],
- 'conditions': [
- ['os_posix==1 and OS!="mac"', {
- 'conditions': [
- ['linux_use_tcmalloc==1', {
- 'dependencies': [
- '../base/allocator/allocator.gyp:allocator',
- ],
- }],
- ],
- }],
- ],
- },
- {
- 'target_name': 'ffmpeg_tests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'test/ffmpeg_tests/ffmpeg_tests.cc',
- ],
- },
- {
- 'target_name': 'media_bench',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'tools/media_bench/media_bench.cc',
- ],
- },
- ],
- }]
- ],
-}
diff --git a/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified b/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified
deleted file mode 100644
index 962b7b2..0000000
--- a/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified
+++ /dev/null
@@ -1,1107 +0,0 @@
-
-#("# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'variables': {
- 'chromium_code': 1,
- # Override to dynamically link the PulseAudio library.
- 'use_pulseaudio%': 0,
- # Override to dynamically link the cras (ChromeOS audio) library.
- 'use_cras%': 0,
- },
- 'targets': [
- {
- 'target_name': 'media',
- 'type': '<(component)',
- 'dependencies': [
- 'yuv_convert',
- '../base/base.gyp:base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../build/temp_gyp/googleurl.gyp:googleurl',
- '../crypto/crypto.gyp:crypto',
- '../third_party/openmax/openmax.gyp:il',
- '../ui/ui.gyp:ui',
- ],
- 'defines': [
- 'MEDIA_IMPLEMENTATION',
- ],
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'audio/android/audio_manager_android.cc',
- 'audio/android/audio_manager_android.h',
- 'audio/android/audio_track_output_android.cc',
- 'audio/android/audio_track_output_android.h',
- 'audio/android/opensles_input.cc',
- 'audio/android/opensles_input.h',
- 'audio/android/opensles_output.cc',
- 'audio/android/opensles_output.h',
- 'audio/async_socket_io_handler.h',
- 'audio/async_socket_io_handler_posix.cc',
- 'audio/async_socket_io_handler_win.cc',
- 'audio/audio_buffers_state.cc',
- 'audio/audio_buffers_state.h',
- 'audio/audio_io.h',
- 'audio/audio_input_controller.cc',
- 'audio/audio_input_controller.h',
- 'audio/audio_input_stream_impl.cc',
- 'audio/audio_input_stream_impl.h',
- 'audio/audio_device_name.cc',
- 'audio/audio_device_name.h',
- 'audio/audio_manager.cc',
- 'audio/audio_manager.h',
- 'audio/audio_manager_base.cc',
- 'audio/audio_manager_base.h',
- 'audio/audio_output_controller.cc',
- 'audio/audio_output_controller.h',
- 'audio/audio_output_dispatcher.cc',
- 'audio/audio_output_dispatcher.h',
- 'audio/audio_output_dispatcher_impl.cc',
- 'audio/audio_output_dispatcher_impl.h',
- 'audio/audio_output_mixer.cc',
- 'audio/audio_output_mixer.h',
- 'audio/audio_output_proxy.cc',
- 'audio/audio_output_proxy.h',
- 'audio/audio_parameters.cc',
- 'audio/audio_parameters.h',
- 'audio/audio_util.cc',
- 'audio/audio_util.h',
- 'audio/cross_process_notification.cc',
- 'audio/cross_process_notification.h',
- 'audio/cross_process_notification_win.cc',
- 'audio/cross_process_notification_posix.cc',
- 'audio/fake_audio_input_stream.cc',
- 'audio/fake_audio_input_stream.h',
- 'audio/fake_audio_output_stream.cc',
- 'audio/fake_audio_output_stream.h',
- 'audio/linux/audio_manager_linux.cc',
- 'audio/linux/audio_manager_linux.h',
- 'audio/linux/alsa_input.cc',
- 'audio/linux/alsa_input.h',
- 'audio/linux/alsa_output.cc',
- 'audio/linux/alsa_output.h',
- 'audio/linux/alsa_util.cc',
- 'audio/linux/alsa_util.h',
- 'audio/linux/alsa_wrapper.cc',
- 'audio/linux/alsa_wrapper.h',
- 'audio/linux/cras_output.cc',
- 'audio/linux/cras_output.h',
- 'audio/openbsd/audio_manager_openbsd.cc',
- 'audio/openbsd/audio_manager_openbsd.h',
- 'audio/mac/audio_input_mac.cc',
- 'audio/mac/audio_input_mac.h',
- 'audio/mac/audio_low_latency_input_mac.cc',
- 'audio/mac/audio_low_latency_input_mac.h',
- 'audio/mac/audio_low_latency_output_mac.cc',
- 'audio/mac/audio_low_latency_output_mac.h',
- 'audio/mac/audio_manager_mac.cc',
- 'audio/mac/audio_manager_mac.h',
- 'audio/mac/audio_output_mac.cc',
- 'audio/mac/audio_output_mac.h',
- 'audio/null_audio_sink.cc',
- 'audio/null_audio_sink.h',
- 'audio/pulse/pulse_output.cc',
- 'audio/pulse/pulse_output.h',
- 'audio/sample_rates.cc',
- 'audio/sample_rates.h',
- 'audio/simple_sources.cc',
- 'audio/simple_sources.h',
- 'audio/win/audio_low_latency_input_win.cc',
- 'audio/win/audio_low_latency_input_win.h',
- 'audio/win/audio_low_latency_output_win.cc',
- 'audio/win/audio_low_latency_output_win.h',
- 'audio/win/audio_manager_win.cc',
- 'audio/win/audio_manager_win.h',
- 'audio/win/avrt_wrapper_win.cc',
- 'audio/win/avrt_wrapper_win.h',
- 'audio/win/device_enumeration_win.cc',
- 'audio/win/device_enumeration_win.h',
- 'audio/win/wavein_input_win.cc',
- 'audio/win/wavein_input_win.h',
- 'audio/win/waveout_output_win.cc',
- 'audio/win/waveout_output_win.h',
- 'base/android/media_jni_registrar.cc',
- 'base/android/media_jni_registrar.h',
- 'base/audio_decoder.cc',
- 'base/audio_decoder.h',
- 'base/audio_decoder_config.cc',
- 'base/audio_decoder_config.h',
- 'base/audio_renderer.h',
- 'base/audio_renderer_mixer.cc',
- 'base/audio_renderer_mixer.h',
- 'base/audio_renderer_mixer_input.cc',
- 'base/audio_renderer_mixer_input.h',
- 'base/bitstream_buffer.h',
- 'base/buffers.cc',
- 'base/buffers.h',
- 'base/byte_queue.cc',
- 'base/byte_queue.h',
- 'base/channel_layout.cc',
- 'base/channel_layout.h',
- 'base/clock.cc',
- 'base/clock.h',
- 'base/composite_filter.cc',
- 'base/composite_filter.h',
- 'base/data_buffer.cc',
- 'base/data_buffer.h',
- 'base/data_source.cc',
- 'base/data_source.h',
- 'base/decoder_buffer.cc',
- 'base/decoder_buffer.h',
- 'base/decrypt_config.cc',
- 'base/decrypt_config.h',
- 'base/decryptor.h',
- 'base/decryptor_client.h',
- 'base/demuxer.cc',
- 'base/demuxer.h',
- 'base/demuxer_stream.cc',
- 'base/demuxer_stream.h',
- 'base/djb2.cc',
- 'base/djb2.h',
- 'base/filter_collection.cc',
- 'base/filter_collection.h',
- 'base/filter_host.h',
- 'base/filters.cc',
- 'base/filters.h',
- 'base/h264_bitstream_converter.cc',
- 'base/h264_bitstream_converter.h',
- 'base/media.h',
- 'base/media_android.cc',
- 'base/media_export.h',
- 'base/media_log.cc',
- 'base/media_log.h',
- 'base/media_log_event.h',
- 'base/media_posix.cc',
- 'base/media_switches.cc',
- 'base/media_switches.h',
- 'base/media_win.cc',
- 'base/message_loop_factory.cc',
- 'base/message_loop_factory.h',
- 'base/pipeline.cc',
- 'base/pipeline.h',
- 'base/pipeline_status.cc',
- 'base/pipeline_status.h',
- 'base/ranges.cc',
- 'base/ranges.h',
- 'base/seekable_buffer.cc',
- 'base/seekable_buffer.h',
- 'base/state_matrix.cc',
- 'base/state_matrix.h',
- 'base/stream_parser.cc',
- 'base/stream_parser.h',
- 'base/stream_parser_buffer.cc',
- 'base/stream_parser_buffer.h',
- 'base/video_decoder.cc',
- 'base/video_decoder.h',
- 'base/video_decoder_config.cc',
- 'base/video_decoder_config.h',
- 'base/video_frame.cc',
- 'base/video_frame.h',
- 'base/video_renderer.h',
- 'base/video_util.cc',
- 'base/video_util.h',
- 'crypto/aes_decryptor.cc',
- 'crypto/aes_decryptor.h',
- 'ffmpeg/ffmpeg_common.cc',
- 'ffmpeg/ffmpeg_common.h',
- 'ffmpeg/file_protocol.cc',
- 'ffmpeg/file_protocol.h',
- 'filters/audio_file_reader.cc',
- 'filters/audio_file_reader.h',
- 'filters/audio_renderer_algorithm.cc',
- 'filters/audio_renderer_algorithm.h',
- 'filters/audio_renderer_impl.cc',
- 'filters/audio_renderer_impl.h',
- 'filters/bitstream_converter.cc',
- 'filters/bitstream_converter.h',
- 'filters/chunk_demuxer.cc',
- 'filters/chunk_demuxer.h',
- 'filters/chunk_demuxer_client.h',
- 'filters/dummy_demuxer.cc',
- 'filters/dummy_demuxer.h',
- 'filters/ffmpeg_audio_decoder.cc',
- 'filters/ffmpeg_audio_decoder.h',
- 'filters/ffmpeg_demuxer.cc',
- 'filters/ffmpeg_demuxer.h',
- 'filters/ffmpeg_h264_bitstream_converter.cc',
- 'filters/ffmpeg_h264_bitstream_converter.h',
- 'filters/ffmpeg_glue.cc',
- 'filters/ffmpeg_glue.h',
- 'filters/ffmpeg_video_decoder.cc',
- 'filters/ffmpeg_video_decoder.h',
- 'filters/file_data_source.cc',
- 'filters/file_data_source.h',
- 'filters/gpu_video_decoder.cc',
- 'filters/gpu_video_decoder.h',
- 'filters/in_memory_url_protocol.cc',
- 'filters/in_memory_url_protocol.h',
- 'filters/source_buffer_stream.cc',
- 'filters/source_buffer_stream.h',
- 'filters/video_frame_generator.cc',
- 'filters/video_frame_generator.h',
- 'filters/video_renderer_base.cc',
- 'filters/video_renderer_base.h',
- 'video/capture/fake_video_capture_device.cc',
- 'video/capture/fake_video_capture_device.h',
- 'video/capture/linux/video_capture_device_linux.cc',
- 'video/capture/linux/video_capture_device_linux.h',
- 'video/capture/mac/video_capture_device_mac.h',
- 'video/capture/mac/video_capture_device_mac.mm',
- 'video/capture/mac/video_capture_device_qtkit_mac.h',
- 'video/capture/mac/video_capture_device_qtkit_mac.mm',
- 'video/capture/video_capture.h',
- 'video/capture/video_capture_device.h',
- 'video/capture/video_capture_device_dummy.cc',
- 'video/capture/video_capture_device_dummy.h',
- 'video/capture/video_capture_proxy.cc',
- 'video/capture/video_capture_proxy.h',
- 'video/capture/video_capture_types.h',
- 'video/capture/win/filter_base_win.cc',
- 'video/capture/win/filter_base_win.h',
- 'video/capture/win/pin_base_win.cc',
- 'video/capture/win/pin_base_win.h',
- 'video/capture/win/sink_filter_observer_win.h',
- 'video/capture/win/sink_filter_win.cc',
- 'video/capture/win/sink_filter_win.h',
- 'video/capture/win/sink_input_pin_win.cc',
- 'video/capture/win/sink_input_pin_win.h',
- 'video/capture/win/video_capture_device_win.cc',
- 'video/capture/win/video_capture_device_win.h',
- 'video/picture.cc',
- 'video/picture.h',
- 'video/video_decode_accelerator.cc',
- 'video/video_decode_accelerator.h',
- 'webm/webm_constants.h',
- 'webm/webm_cluster_parser.cc',
- 'webm/webm_cluster_parser.h',
- 'webm/webm_content_encodings.cc',
- 'webm/webm_content_encodings.h',
- 'webm/webm_content_encodings_client.cc',
- 'webm/webm_content_encodings_client.h',
- 'webm/webm_info_parser.cc',
- 'webm/webm_info_parser.h',
- 'webm/webm_parser.cc',
- 'webm/webm_parser.h',
- 'webm/webm_stream_parser.cc',
- 'webm/webm_stream_parser.h',
- 'webm/webm_tracks_parser.cc',
- 'webm/webm_tracks_parser.h',
- ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '..',
- ],
- },
- 'conditions': [
- # Android doesn't use ffmpeg, so make the dependency conditional
- # and exclude the sources which depend on ffmpeg.
- ['OS != \"android\"', {
- 'dependencies': [
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- }],
- ['OS == \"android\"', {
- 'sources!': [
- 'base/media_posix.cc',
- 'ffmpeg/ffmpeg_common.cc',
- 'ffmpeg/ffmpeg_common.h',
- 'ffmpeg/file_protocol.cc',
- 'ffmpeg/file_protocol.h',
- 'filters/audio_file_reader.cc',
- 'filters/audio_file_reader.h',
- 'filters/bitstream_converter.cc',
- 'filters/bitstream_converter.h',
- 'filters/chunk_demuxer.cc',
- 'filters/chunk_demuxer.h',
- 'filters/chunk_demuxer_client.h',
- 'filters/ffmpeg_audio_decoder.cc',
- 'filters/ffmpeg_audio_decoder.h',
- 'filters/ffmpeg_demuxer.cc',
- 'filters/ffmpeg_demuxer.h',
- 'filters/ffmpeg_h264_bitstream_converter.cc',
- 'filters/ffmpeg_h264_bitstream_converter.h',
- 'filters/ffmpeg_glue.cc',
- 'filters/ffmpeg_glue.h',
- 'filters/ffmpeg_video_decoder.cc',
- 'filters/ffmpeg_video_decoder.h',
- 'filters/gpu_video_decoder.cc',
- 'filters/gpu_video_decoder.h',
- 'webm/webm_cluster_parser.cc',
- 'webm/webm_cluster_parser.h',
- 'webm/webm_stream_parser.cc',
- 'webm/webm_stream_parser.h',
- ],
- }],
- # The below 'android' condition were added temporarily and should be
- # removed in downstream, because there is no Java environment setup in
- # upstream yet.
- ['OS == \"android\"', {
- 'sources!':[
- 'audio/android/audio_track_output_android.cc',
- ],
- 'sources':[
- 'audio/android/audio_track_output_stub_android.cc',
- ],
- 'link_settings': {
- 'libraries': [
- '-lOpenSLES',
- ],
- },
- }],
- ['OS==\"linux\" or OS==\"freebsd\" or OS==\"solaris\"', {
- 'link_settings': {
- 'libraries': [
- '-lasound',
- ],
- },
- }],
- ['OS==\"openbsd\"', {
- 'sources/': [ ['exclude', '/alsa_' ],
- ['exclude', '/audio_manager_linux' ] ],
- 'link_settings': {
- 'libraries': [
- ],
- },
- }],
- ['OS!=\"openbsd\"', {
- 'sources!': [
- 'audio/openbsd/audio_manager_openbsd.cc',
- 'audio/openbsd/audio_manager_openbsd.h',
- ],
- }],
- ['OS==\"linux\"', {
- 'variables': {
- 'conditions': [
- ['sysroot!=\"\"', {
- 'pkg-config': '../build/linux/pkg-config-wrapper \"<(sysroot)\" \"<(target_arch)\"',
- }, {
- 'pkg-config': 'pkg-config'
- }],
- ],
- },
- 'conditions': [
- ['use_cras == 1', {
- 'cflags': [
- '<!@(<(pkg-config) --cflags libcras)',
- ],
- 'link_settings': {
- 'libraries': [
- '<!@(<(pkg-config) --libs libcras)',
- ],
- },
- 'defines': [
- 'USE_CRAS',
- ],
- }, { # else: use_cras == 0
- 'sources!': [
- 'audio/linux/cras_output.cc',
- 'audio/linux/cras_output.h',
- ],
- }],
- ],
- }],
- ['os_posix == 1', {
- 'conditions': [
- ['use_pulseaudio == 1', {
- 'cflags': [
- '<!@(pkg-config --cflags libpulse)',
- ],
- 'link_settings': {
- 'libraries': [
- '<!@(pkg-config --libs-only-l libpulse)',
- ],
- },
- 'defines': [
- 'USE_PULSEAUDIO',
- ],
- }, { # else: use_pulseaudio == 0
- 'sources!': [
- 'audio/pulse/pulse_output.cc',
- 'audio/pulse/pulse_output.h',
- ],
- }],
- ],
- }],
- ['os_posix == 1 and OS != \"android\"', {
- # Video capture isn't supported in Android yet.
- 'sources!': [
- 'video/capture/video_capture_device_dummy.cc',
- 'video/capture/video_capture_device_dummy.h',
- ],
- }],
- ['OS==\"mac\"', {
- 'link_settings': {
- 'libraries': [
- '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
- '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
- '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
- ],
- },
- }],
- ['OS==\"win\"', {
- 'sources!': [
- 'audio/pulse/pulse_output.cc',
- 'audio/pulse/pulse_output.h',
- 'video/capture/video_capture_device_dummy.cc',
- 'video/capture/video_capture_device_dummy.h',
- ],
- }],
- ['proprietary_codecs==1 or branding==\"Chrome\"', {
- 'sources': [
- 'mp4/avc.cc',
- 'mp4/avc.h',
- 'mp4/box_definitions.cc',
- 'mp4/box_definitions.h',
- 'mp4/box_reader.cc',
- 'mp4/box_reader.h',
- 'mp4/cenc.cc',
- 'mp4/cenc.h',
- 'mp4/mp4_stream_parser.cc',
- 'mp4/mp4_stream_parser.h',
- 'mp4/offset_byte_queue.cc',
- 'mp4/offset_byte_queue.h',
- 'mp4/track_run_iterator.cc',
- 'mp4/track_run_iterator.h',
- ],
- }],
- ],
- },
- {
- 'target_name': 'yuv_convert',
- 'type': 'static_library',
- 'include_dirs': [
- '..',
- ],
- 'conditions': [
- ['order_profiling != 0', {
- 'target_conditions' : [
- ['_toolset==\"target\"', {
- 'cflags!': [ '-finstrument-functions' ],
- }],
- ],
- }],
- [ 'target_arch == \"ia32\" or target_arch == \"x64\"', {
- 'dependencies': [
- 'yuv_convert_simd_x86',
- ],
- }],
- [ 'target_arch == \"arm\"', {
- 'dependencies': [
- 'yuv_convert_simd_arm',
- ],
- }],
- ],
- 'sources': [
- 'base/yuv_convert.cc',
- 'base/yuv_convert.h',
- ],
- },
- {
- 'target_name': 'yuv_convert_simd_x86',
- 'type': 'static_library',
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'base/simd/convert_rgb_to_yuv_c.cc',
- 'base/simd/convert_rgb_to_yuv_sse2.cc',
- 'base/simd/convert_rgb_to_yuv_ssse3.asm',
- 'base/simd/convert_rgb_to_yuv_ssse3.cc',
- 'base/simd/convert_rgb_to_yuv_ssse3.inc',
- 'base/simd/convert_yuv_to_rgb_c.cc',
- 'base/simd/convert_yuv_to_rgb_x86.cc',
- 'base/simd/convert_yuv_to_rgb_mmx.asm',
- 'base/simd/convert_yuv_to_rgb_mmx.inc',
- 'base/simd/convert_yuv_to_rgb_sse.asm',
- 'base/simd/filter_yuv.h',
- 'base/simd/filter_yuv_c.cc',
- 'base/simd/filter_yuv_mmx.cc',
- 'base/simd/filter_yuv_sse2.cc',
- 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
- 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
- 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
- 'base/simd/scale_yuv_to_rgb_mmx.asm',
- 'base/simd/scale_yuv_to_rgb_mmx.inc',
- 'base/simd/scale_yuv_to_rgb_sse.asm',
- 'base/simd/yuv_to_rgb_table.cc',
- 'base/simd/yuv_to_rgb_table.h',
- ],
- 'conditions': [
- ['order_profiling != 0', {
- 'target_conditions' : [
- ['_toolset==\"target\"', {
- 'cflags!': [ '-finstrument-functions' ],
- }],
- ],
- }],
- [ 'target_arch == \"x64\"', {
- # Source files optimized for X64 systems.
- 'sources': [
- 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
- 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
- ],
- }],
- [ 'os_posix == 1 and OS != \"mac\" and OS != \"android\"', {
- 'cflags': [
- '-msse2',
- ],
- }],
- [ 'OS == \"mac\"', {
- 'configurations': {
- 'Debug': {
- 'xcode_settings': {
- # gcc on the mac builds horribly unoptimized sse code in debug
- # mode. Since this is rarely going to be debugged, run with full
- # optimizations in Debug as well as Release.
- 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
- },
- },
- },
- }],
- [ 'OS==\"win\"', {
- 'variables': {
- 'yasm_flags': [
- '-DWIN32',
- '-DMSVC',
- '-DCHROMIUM',
- '-Isimd',
- ],
- },
- }],
- [ 'OS==\"mac\"', {
- 'variables': {
- 'yasm_flags': [
- '-DPREFIX',
- '-DMACHO',
- '-DCHROMIUM',
- '-Isimd',
- ],
- },
- }],
- [ 'os_posix==1 and OS!=\"mac\"', {
- 'variables': {
- 'conditions': [
- [ 'target_arch==\"ia32\"', {
- 'yasm_flags': [
- '-DX86_32',
- '-DELF',
- '-DCHROMIUM',
- '-Isimd',
- ],
- }, {
- 'yasm_flags': [
- '-DARCH_X86_64',
- '-DELF',
- '-DPIC',
- '-DCHROMIUM',
- '-Isimd',
- ],
- }],
- ],
- },
- }],
- ],
- 'variables': {
- 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
- },
- 'msvs_2010_disable_uldi_when_referenced': 1,
- 'includes': [
- '../third_party/yasm/yasm_compile.gypi',
- ],
- },
- {
- 'target_name': 'yuv_convert_simd_arm',
- 'type': 'static_library',
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'base/simd/convert_rgb_to_yuv_c.cc',
- 'base/simd/convert_rgb_to_yuv.h',
- 'base/simd/convert_yuv_to_rgb_c.cc',
- 'base/simd/convert_yuv_to_rgb.h',
- 'base/simd/filter_yuv.h',
- 'base/simd/filter_yuv_c.cc',
- 'base/simd/yuv_to_rgb_table.cc',
- 'base/simd/yuv_to_rgb_table.h',
- ],
- },
- {
- 'target_name': 'media_unittests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'media_test_support',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../base/base.gyp:base_i18n',
- '../base/base.gyp:test_support_base',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '../ui/ui.gyp:ui',
- ],
- 'sources': [
- 'audio/async_socket_io_handler_unittest.cc',
- 'audio/audio_input_controller_unittest.cc',
- 'audio/audio_input_device_unittest.cc',
- 'audio/audio_input_unittest.cc',
- 'audio/audio_input_volume_unittest.cc',
- 'audio/audio_low_latency_input_output_unittest.cc',
- 'audio/audio_output_controller_unittest.cc',
- 'audio/audio_output_proxy_unittest.cc',
- 'audio/audio_parameters_unittest.cc',
- 'audio/audio_util_unittest.cc',
- 'audio/cross_process_notification_unittest.cc',
- 'audio/linux/alsa_output_unittest.cc',
- 'audio/mac/audio_low_latency_input_mac_unittest.cc',
- 'audio/mac/audio_output_mac_unittest.cc',
- 'audio/simple_sources_unittest.cc',
- 'audio/win/audio_low_latency_input_win_unittest.cc',
- 'audio/win/audio_low_latency_output_win_unittest.cc',
- 'audio/win/audio_output_win_unittest.cc',
- 'base/audio_renderer_mixer_unittest.cc',
- 'base/audio_renderer_mixer_input_unittest.cc',
- 'base/buffers_unittest.cc',
- 'base/clock_unittest.cc',
- 'base/composite_filter_unittest.cc',
- 'base/data_buffer_unittest.cc',
- 'base/decoder_buffer_unittest.cc',
- 'base/djb2_unittest.cc',
- 'base/fake_audio_render_callback.cc',
- 'base/fake_audio_render_callback.h',
- 'base/filter_collection_unittest.cc',
- 'base/h264_bitstream_converter_unittest.cc',
- 'base/pipeline_unittest.cc',
- 'base/ranges_unittest.cc',
- 'base/run_all_unittests.cc',
- 'base/seekable_buffer_unittest.cc',
- 'base/state_matrix_unittest.cc',
- 'base/test_data_util.cc',
- 'base/test_data_util.h',
- 'base/video_frame_unittest.cc',
- 'base/video_util_unittest.cc',
- 'base/yuv_convert_unittest.cc',
- 'crypto/aes_decryptor_unittest.cc',
- 'ffmpeg/ffmpeg_common_unittest.cc',
- 'filters/audio_renderer_algorithm_unittest.cc',
- 'filters/audio_renderer_impl_unittest.cc',
- 'filters/bitstream_converter_unittest.cc',
- 'filters/chunk_demuxer_unittest.cc',
- 'filters/ffmpeg_audio_decoder_unittest.cc',
- 'filters/ffmpeg_decoder_unittest.h',
- 'filters/ffmpeg_demuxer_unittest.cc',
- 'filters/ffmpeg_glue_unittest.cc',
- 'filters/ffmpeg_h264_bitstream_converter_unittest.cc',
- 'filters/ffmpeg_video_decoder_unittest.cc',
- 'filters/file_data_source_unittest.cc',
- 'filters/pipeline_integration_test.cc',
- 'filters/pipeline_integration_test_base.cc',
- 'filters/source_buffer_stream_unittest.cc',
- 'filters/video_renderer_base_unittest.cc',
- 'video/capture/video_capture_device_unittest.cc',
- 'webm/cluster_builder.cc',
- 'webm/cluster_builder.h',
- 'webm/webm_cluster_parser_unittest.cc',
- 'webm/webm_content_encodings_client_unittest.cc',
- 'webm/webm_parser_unittest.cc',
- ],
- 'conditions': [
- ['os_posix==1 and OS!=\"mac\"', {
- 'conditions': [
- ['linux_use_tcmalloc==1', {
- 'dependencies': [
- '../base/allocator/allocator.gyp:allocator',
- ],
- }],
- ],
- }],
- ['OS != \"android\"', {
- 'dependencies': [
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- }],
- ['OS == \"android\"', {
- 'sources!': [
- 'audio/audio_input_volume_unittest.cc',
- 'base/test_data_util.cc',
- 'base/test_data_util.h',
- 'ffmpeg/ffmpeg_common_unittest.cc',
- 'filters/ffmpeg_audio_decoder_unittest.cc',
- 'filters/bitstream_converter_unittest.cc',
- 'filters/chunk_demuxer_unittest.cc',
- 'filters/ffmpeg_demuxer_unittest.cc',
- 'filters/ffmpeg_glue_unittest.cc',
- 'filters/ffmpeg_h264_bitstream_converter_unittest.cc',
- 'filters/ffmpeg_video_decoder_unittest.cc',
- 'filters/pipeline_integration_test.cc',
- 'filters/pipeline_integration_test_base.cc',
- 'mp4/mp4_stream_parser_unittest.cc',
- 'webm/webm_cluster_parser_unittest.cc',
- ],
- }],
- ['OS == \"linux\"', {
- 'conditions': [
- ['use_cras == 1', {
- 'sources': [
- 'audio/linux/cras_output_unittest.cc',
- ],
- 'defines': [
- 'USE_CRAS',
- ],
- }],
- ],
- }],
- [ 'target_arch==\"ia32\" or target_arch==\"x64\"', {
- 'sources': [
- 'base/simd/convert_rgb_to_yuv_unittest.cc',
- ],
- }],
- ['proprietary_codecs==1 or branding==\"Chrome\"', {
- 'sources': [
- 'mp4/avc_unittest.cc',
- 'mp4/box_reader_unittest.cc',
- 'mp4/mp4_stream_parser_unittest.cc',
- 'mp4/offset_byte_queue_unittest.cc',
- ],
- }],
- ],
- },
- {
- 'target_name': 'media_test_support',
- 'type': 'static_library',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- ],
- 'sources': [
- 'audio/test_audio_input_controller_factory.cc',
- 'audio/test_audio_input_controller_factory.h',
- 'base/mock_callback.cc',
- 'base/mock_callback.h',
- 'base/mock_data_source_host.cc',
- 'base/mock_data_source_host.h',
- 'base/mock_demuxer_host.cc',
- 'base/mock_demuxer_host.h',
- 'base/mock_filter_host.cc',
- 'base/mock_filter_host.h',
- 'base/mock_filters.cc',
- 'base/mock_filters.h',
- ],
- },
- {
- 'target_name': 'scaler_bench',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../skia/skia.gyp:skia',
- ],
- 'sources': [
- 'tools/scaler_bench/scaler_bench.cc',
- ],
- },
- {
- 'target_name': 'qt_faststart',
- 'type': 'executable',
- 'sources': [
- 'tools/qt_faststart/qt_faststart.c'
- ],
- },
- {
- 'target_name': 'seek_tester',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- ],
- 'sources': [
- 'tools/seek_tester/seek_tester.cc',
- ],
- },
- ],
- 'conditions': [
- ['OS==\"win\"', {
- 'targets': [
- {
- 'target_name': 'player_wtl',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../ui/ui.gyp:ui',
- ],
- 'include_dirs': [
- '<(DEPTH)/third_party/wtl/include',
- ],
- 'sources': [
- 'tools/player_wtl/list.h',
- 'tools/player_wtl/mainfrm.h',
- 'tools/player_wtl/movie.cc',
- 'tools/player_wtl/movie.h',
- 'tools/player_wtl/player_wtl.cc',
- 'tools/player_wtl/player_wtl.rc',
- 'tools/player_wtl/props.h',
- 'tools/player_wtl/seek.h',
- 'tools/player_wtl/resource.h',
- 'tools/player_wtl/view.h',
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
- },
- },
- 'defines': [
- '_CRT_SECURE_NO_WARNINGS=1',
- ],
- },
- ],
- }],
- ['OS == \"win\" or toolkit_uses_gtk == 1', {
- 'targets': [
- {
- 'target_name': 'shader_bench',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../ui/gl/gl.gyp:gl',
- ],
- 'sources': [
- 'tools/shader_bench/shader_bench.cc',
- 'tools/shader_bench/cpu_color_painter.cc',
- 'tools/shader_bench/cpu_color_painter.h',
- 'tools/shader_bench/gpu_color_painter.cc',
- 'tools/shader_bench/gpu_color_painter.h',
- 'tools/shader_bench/gpu_painter.cc',
- 'tools/shader_bench/gpu_painter.h',
- 'tools/shader_bench/painter.cc',
- 'tools/shader_bench/painter.h',
- 'tools/shader_bench/window.cc',
- 'tools/shader_bench/window.h',
- ],
- 'conditions': [
- ['toolkit_uses_gtk == 1', {
- 'dependencies': [
- '../build/linux/system.gyp:gtk',
- ],
- 'sources': [
- 'tools/shader_bench/window_linux.cc',
- ],
- }],
- ['OS==\"win\"', {
- 'dependencies': [
- '../third_party/angle/src/build_angle.gyp:libEGL',
- '../third_party/angle/src/build_angle.gyp:libGLESv2',
- ],
- 'sources': [
- 'tools/shader_bench/window_win.cc',
- ],
- }],
- ],
- },
- ],
- }],
- ['OS == \"linux\" and target_arch != \"arm\"', {
- 'targets': [
- {
- 'target_name': 'tile_render_bench',
- 'type': 'executable',
- 'dependencies': [
- '../base/base.gyp:base',
- '../ui/gl/gl.gyp:gl',
- ],
- 'libraries': [
- '-lGL',
- '-ldl',
- ],
- 'sources': [
- 'tools/tile_render_bench/tile_render_bench.cc',
- ],
- },
- ],
- }],
- ['os_posix == 1 and OS != \"mac\" and OS != \"android\"', {
- 'targets': [
- {
- 'target_name': 'player_x11',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'yuv_convert',
- '../base/base.gyp:base',
- '../ui/gl/gl.gyp:gl',
- ],
- 'link_settings': {
- 'libraries': [
- '-ldl',
- '-lX11',
- '-lXrender',
- '-lXext',
- ],
- },
- 'sources': [
- 'tools/player_x11/data_source_logger.cc',
- 'tools/player_x11/data_source_logger.h',
- 'tools/player_x11/gl_video_renderer.cc',
- 'tools/player_x11/gl_video_renderer.h',
- 'tools/player_x11/player_x11.cc',
- 'tools/player_x11/x11_video_renderer.cc',
- 'tools/player_x11/x11_video_renderer.h',
- ],
- },
- ],
- }],
- ['OS == \"android\"', {
- 'targets': [
- {
- 'target_name': 'player_android',
- 'type': 'static_library',
- 'sources': [
- 'base/android/media_player_bridge.cc',
- 'base/android/media_player_bridge.h',
- ],
- 'dependencies': [
- '../base/base.gyp:base',
- ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)/media',
- ],
- 'actions': [
- {
- 'action_name': 'generate-jni-headers',
- 'inputs': [
- '../base/android/jni_generator/jni_generator.py',
- 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/media/jni/media_player_listener_jni.h',
- ],
- 'action': [
- 'python',
- '<(DEPTH)/base/android/jni_generator/jni_generator.py',
- '-o',
- '<@(_inputs)',
- '<@(_outputs)',
- ],
- },
- ],
- },
- {
- 'target_name': 'media_java',
- 'type': 'none',
- 'dependencies': [ '../base/base.gyp:base_java' ],
- 'variables': {
- 'package_name': 'media',
- 'java_in_dir': 'base/android/java',
- },
- 'includes': [ '../build/java.gypi' ],
- },
-
- ],
- }, { # OS != \"android\"'
- # Android does not use ffmpeg, so disable the targets which require it.
- 'targets': [
- {
- 'target_name': 'ffmpeg_unittests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'media_test_support',
- '../base/base.gyp:base',
- '../base/base.gyp:base_i18n',
- '../base/base.gyp:test_support_base',
- '../base/base.gyp:test_support_perf',
- '../testing/gtest.gyp:gtest',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'ffmpeg/ffmpeg_unittest.cc',
- ],
- 'conditions': [
- ['toolkit_uses_gtk == 1', {
- 'dependencies': [
- # Needed for the following #include chain:
- # base/run_all_unittests.cc
- # ../base/test_suite.h
- # gtk/gtk.h
- '../build/linux/system.gyp:gtk',
- ],
- 'conditions': [
- ['linux_use_tcmalloc==1', {
- 'dependencies': [
- '../base/allocator/allocator.gyp:allocator',
- ],
- }],
- ],
- }],
- ],
- },
- {
- 'target_name': 'ffmpeg_regression_tests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- 'media_test_support',
- '../base/base.gyp:test_support_base',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'base/test_data_util.cc',
- 'base/run_all_unittests.cc',
- 'ffmpeg/ffmpeg_regression_tests.cc',
- 'filters/pipeline_integration_test_base.cc',
- ],
- 'conditions': [
- ['os_posix==1 and OS!=\"mac\"', {
- 'conditions': [
- ['linux_use_tcmalloc==1', {
- 'dependencies': [
- '../base/allocator/allocator.gyp:allocator',
- ],
- }],
- ],
- }],
- ],
- },
- {
- 'target_name': 'ffmpeg_tests',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'test/ffmpeg_tests/ffmpeg_tests.cc',
- ],
- },
- {
- 'target_name': 'media_bench',
- 'type': 'executable',
- 'dependencies': [
- 'media',
- '../base/base.gyp:base',
- '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
- ],
- 'sources': [
- 'tools/media_bench/media_bench.cc',
- ],
- },
- ],
- }]
- ],
-}
-" 0 64 (face font-lock-comment-face) 64 137 (face font-lock-comment-face) 137 166 (face font-lock-comment-face) 166 171 nil 171 172 (face font-lock-string-face) 172 181 (face font-lock-keyword-face) 181 182 (face font-lock-string-face) 182 190 nil 190 191 (face font-lock-string-face) 191 204 (face font-lock-variable-name-face) 204 205 (face font-lock-string-face) 205 214 nil 214 269 (face font-lock-comment-face) 269 273 nil 273 274 (face font-lock-string-face) 274 289 (face font-lock-variable-name-face) 289 290 (face font-lock-string-face) 290 299 nil 299 365 (face font-lock-comment-face) 365 369 nil 369 370 (face font-lock-string-face) 370 379 (face font-lock-variable-name-face) 379 380 (face font-lock-string-face) 380 392 nil 392 393 (face font-lock-string-face) 393 400 (face font-lock-keyword-face) 400 401 (face font-lock-string-face) 401 417 nil 417 418 (face font-lock-string-face) 418 429 (face font-lock-keyword-face) 429 430 (face font-lock-string-face) 430 432 nil 432 433 (face font-lock-string-face) 433 438 (face font-lock-function-name-face) 438 439 (face font-lock-string-face) 439 447 nil 447 448 (face font-lock-string-face) 448 452 (face font-lock-keyword-face) 452 453 (face font-lock-string-face) 453 455 nil 455 458 (face font-lock-string-face) 458 467 (face font-lock-variable-name-face) 467 469 (face font-lock-string-face) 469 477 nil 477 478 (face font-lock-string-face) 478 490 (face font-lock-keyword-face) 490 491 (face font-lock-string-face) 491 503 nil 503 504 (face font-lock-string-face) 504 515 (face font-lock-function-name-face) 515 516 (face font-lock-string-face) 516 526 nil 526 527 (face font-lock-string-face) 527 548 (face font-lock-function-name-face) 548 549 (face font-lock-string-face) 549 559 nil 559 560 (face font-lock-string-face) 560 643 (face font-lock-function-name-face) 643 644 (face font-lock-string-face) 644 654 nil 654 655 (face font-lock-string-face) 655 696 (face font-lock-function-name-face) 696 697 (face font-lock-string-face) 697 707 nil 707 708 (face font-lock-string-face) 708 735 (face font-lock-function-name-face) 735 736 (face font-lock-string-face) 736 746 nil 746 747 (face font-lock-string-face) 747 784 (face font-lock-function-name-face) 784 785 (face font-lock-string-face) 785 795 nil 795 796 (face font-lock-string-face) 796 811 (face font-lock-function-name-face) 811 812 (face font-lock-string-face) 812 829 nil 829 830 (face font-lock-string-face) 830 837 (face font-lock-keyword-face) 837 838 (face font-lock-string-face) 838 850 nil 850 851 (face font-lock-string-face) 851 871 (face font-lock-preprocessor-face) 871 872 (face font-lock-string-face) 872 889 nil 889 890 (face font-lock-string-face) 890 902 (face font-lock-keyword-face) 902 903 (face font-lock-string-face) 903 915 nil 915 916 (face font-lock-string-face) 916 918 (face font-lock-constant-face) 918 919 (face font-lock-string-face) 919 936 nil 936 937 (face font-lock-string-face) 937 944 (face font-lock-keyword-face) 944 945 (face font-lock-string-face) 945 957 nil 957 958 (face font-lock-string-face) 958 996 (face font-lock-constant-face) 996 997 (face font-lock-string-face) 997 1007 nil 1007 1008 (face font-lock-string-face) 1008 1045 (face font-lock-constant-face) 1045 1046 (face font-lock-string-face) 1046 1056 nil 1056 1057 (face font-lock-string-face) 1057 1100 (face font-lock-constant-face) 1100 1101 (face font-lock-string-face) 1101 1111 nil 1111 1112 (face font-lock-string-face) 1112 1154 (face font-lock-constant-face) 1154 1155 (face font-lock-string-face) 1155 1165 nil 1165 1166 (face font-lock-string-face) 1166 1197 (face font-lock-constant-face) 1197 1198 (face font-lock-string-face) 1198 1208 nil 1208 1209 (face font-lock-string-face) 1209 1239 (face font-lock-constant-face) 1239 1240 (face font-lock-string-face) 1240 1250 nil 1250 1251 (face font-lock-string-face) 1251 1283 (face font-lock-constant-face) 1283 1284 (face font-lock-string-face) 1284 1294 nil 1294 1295 (face font-lock-string-face) 1295 1326 (face font-lock-constant-face) 1326 1327 (face font-lock-string-face) 1327 1337 nil 1337 1338 (face font-lock-string-face) 1338 1369 (face font-lock-constant-face) 1369 1370 (face font-lock-string-face) 1370 1380 nil 1380 1381 (face font-lock-string-face) 1381 1419 (face font-lock-constant-face) 1419 1420 (face font-lock-string-face) 1420 1430 nil 1430 1431 (face font-lock-string-face) 1431 1467 (face font-lock-constant-face) 1467 1468 (face font-lock-string-face) 1468 1478 nil 1478 1479 (face font-lock-string-face) 1479 1507 (face font-lock-constant-face) 1507 1508 (face font-lock-string-face) 1508 1518 nil 1518 1519 (face font-lock-string-face) 1519 1546 (face font-lock-constant-face) 1546 1547 (face font-lock-string-face) 1547 1557 nil 1557 1558 (face font-lock-string-face) 1558 1574 (face font-lock-constant-face) 1574 1575 (face font-lock-string-face) 1575 1585 nil 1585 1586 (face font-lock-string-face) 1586 1617 (face font-lock-constant-face) 1617 1618 (face font-lock-string-face) 1618 1628 nil 1628 1629 (face font-lock-string-face) 1629 1659 (face font-lock-constant-face) 1659 1660 (face font-lock-string-face) 1660 1670 nil 1670 1671 (face font-lock-string-face) 1671 1703 (face font-lock-constant-face) 1703 1704 (face font-lock-string-face) 1704 1714 nil 1714 1715 (face font-lock-string-face) 1715 1746 (face font-lock-constant-face) 1746 1747 (face font-lock-string-face) 1747 1757 nil 1757 1758 (face font-lock-string-face) 1758 1784 (face font-lock-constant-face) 1784 1785 (face font-lock-string-face) 1785 1795 nil 1795 1796 (face font-lock-string-face) 1796 1821 (face font-lock-constant-face) 1821 1822 (face font-lock-string-face) 1822 1832 nil 1832 1833 (face font-lock-string-face) 1833 1855 (face font-lock-constant-face) 1855 1856 (face font-lock-string-face) 1856 1866 nil 1866 1867 (face font-lock-string-face) 1867 1888 (face font-lock-constant-face) 1888 1889 (face font-lock-string-face) 1889 1899 nil 1899 1900 (face font-lock-string-face) 1900 1927 (face font-lock-constant-face) 1927 1928 (face font-lock-string-face) 1928 1938 nil 1938 1939 (face font-lock-string-face) 1939 1965 (face font-lock-constant-face) 1965 1966 (face font-lock-string-face) 1966 1976 nil 1976 1977 (face font-lock-string-face) 1977 2009 (face font-lock-constant-face) 2009 2010 (face font-lock-string-face) 2010 2020 nil 2020 2021 (face font-lock-string-face) 2021 2052 (face font-lock-constant-face) 2052 2053 (face font-lock-string-face) 2053 2063 nil 2063 2064 (face font-lock-string-face) 2064 2096 (face font-lock-constant-face) 2096 2097 (face font-lock-string-face) 2097 2107 nil 2107 2108 (face font-lock-string-face) 2108 2139 (face font-lock-constant-face) 2139 2140 (face font-lock-string-face) 2140 2150 nil 2150 2151 (face font-lock-string-face) 2151 2188 (face font-lock-constant-face) 2188 2189 (face font-lock-string-face) 2189 2199 nil 2199 2200 (face font-lock-string-face) 2200 2236 (face font-lock-constant-face) 2236 2237 (face font-lock-string-face) 2237 2247 nil 2247 2248 (face font-lock-string-face) 2248 2275 (face font-lock-constant-face) 2275 2276 (face font-lock-string-face) 2276 2286 nil 2286 2287 (face font-lock-string-face) 2287 2313 (face font-lock-constant-face) 2313 2314 (face font-lock-string-face) 2314 2324 nil 2324 2325 (face font-lock-string-face) 2325 2352 (face font-lock-constant-face) 2352 2353 (face font-lock-string-face) 2353 2363 nil 2363 2364 (face font-lock-string-face) 2364 2390 (face font-lock-constant-face) 2390 2391 (face font-lock-string-face) 2391 2401 nil 2401 2402 (face font-lock-string-face) 2402 2427 (face font-lock-constant-face) 2427 2428 (face font-lock-string-face) 2428 2438 nil 2438 2439 (face font-lock-string-face) 2439 2463 (face font-lock-constant-face) 2463 2464 (face font-lock-string-face) 2464 2474 nil 2474 2475 (face font-lock-string-face) 2475 2494 (face font-lock-constant-face) 2494 2495 (face font-lock-string-face) 2495 2505 nil 2505 2506 (face font-lock-string-face) 2506 2524 (face font-lock-constant-face) 2524 2525 (face font-lock-string-face) 2525 2535 nil 2535 2536 (face font-lock-string-face) 2536 2571 (face font-lock-constant-face) 2571 2572 (face font-lock-string-face) 2572 2582 nil 2582 2583 (face font-lock-string-face) 2583 2617 (face font-lock-constant-face) 2617 2618 (face font-lock-string-face) 2618 2628 nil 2628 2629 (face font-lock-string-face) 2629 2668 (face font-lock-constant-face) 2668 2669 (face font-lock-string-face) 2669 2679 nil 2679 2680 (face font-lock-string-face) 2680 2721 (face font-lock-constant-face) 2721 2722 (face font-lock-string-face) 2722 2732 nil 2732 2733 (face font-lock-string-face) 2733 2765 (face font-lock-constant-face) 2765 2766 (face font-lock-string-face) 2766 2776 nil 2776 2777 (face font-lock-string-face) 2777 2808 (face font-lock-constant-face) 2808 2809 (face font-lock-string-face) 2809 2819 nil 2819 2820 (face font-lock-string-face) 2820 2853 (face font-lock-constant-face) 2853 2854 (face font-lock-string-face) 2854 2864 nil 2864 2865 (face font-lock-string-face) 2865 2897 (face font-lock-constant-face) 2897 2898 (face font-lock-string-face) 2898 2908 nil 2908 2909 (face font-lock-string-face) 2909 2943 (face font-lock-constant-face) 2943 2944 (face font-lock-string-face) 2944 2954 nil 2954 2955 (face font-lock-string-face) 2955 2988 (face font-lock-constant-face) 2988 2989 (face font-lock-string-face) 2989 2999 nil 2999 3000 (face font-lock-string-face) 3000 3025 (face font-lock-constant-face) 3025 3026 (face font-lock-string-face) 3026 3036 nil 3036 3037 (face font-lock-string-face) 3037 3061 (face font-lock-constant-face) 3061 3062 (face font-lock-string-face) 3062 3072 nil 3072 3073 (face font-lock-string-face) 3073 3099 (face font-lock-constant-face) 3099 3100 (face font-lock-string-face) 3100 3110 nil 3110 3111 (face font-lock-string-face) 3111 3136 (face font-lock-constant-face) 3136 3137 (face font-lock-string-face) 3137 3147 nil 3147 3148 (face font-lock-string-face) 3148 3172 (face font-lock-constant-face) 3172 3173 (face font-lock-string-face) 3173 3183 nil 3183 3184 (face font-lock-string-face) 3184 3207 (face font-lock-constant-face) 3207 3208 (face font-lock-string-face) 3208 3218 nil 3218 3219 (face font-lock-string-face) 3219 3246 (face font-lock-constant-face) 3246 3247 (face font-lock-string-face) 3247 3257 nil 3257 3258 (face font-lock-string-face) 3258 3284 (face font-lock-constant-face) 3284 3285 (face font-lock-string-face) 3285 3295 nil 3295 3296 (face font-lock-string-face) 3296 3322 (face font-lock-constant-face) 3322 3323 (face font-lock-string-face) 3323 3333 nil 3333 3334 (face font-lock-string-face) 3334 3359 (face font-lock-constant-face) 3359 3360 (face font-lock-string-face) 3360 3370 nil 3370 3371 (face font-lock-string-face) 3371 3409 (face font-lock-constant-face) 3409 3410 (face font-lock-string-face) 3410 3420 nil 3420 3421 (face font-lock-string-face) 3421 3458 (face font-lock-constant-face) 3458 3459 (face font-lock-string-face) 3459 3469 nil 3469 3470 (face font-lock-string-face) 3470 3498 (face font-lock-constant-face) 3498 3499 (face font-lock-string-face) 3499 3509 nil 3509 3510 (face font-lock-string-face) 3510 3537 (face font-lock-constant-face) 3537 3538 (face font-lock-string-face) 3538 3548 nil 3548 3549 (face font-lock-string-face) 3549 3589 (face font-lock-constant-face) 3589 3590 (face font-lock-string-face) 3590 3600 nil 3600 3601 (face font-lock-string-face) 3601 3640 (face font-lock-constant-face) 3640 3641 (face font-lock-string-face) 3641 3651 nil 3651 3652 (face font-lock-string-face) 3652 3693 (face font-lock-constant-face) 3693 3694 (face font-lock-string-face) 3694 3704 nil 3704 3705 (face font-lock-string-face) 3705 3745 (face font-lock-constant-face) 3745 3746 (face font-lock-string-face) 3746 3756 nil 3756 3757 (face font-lock-string-face) 3757 3787 (face font-lock-constant-face) 3787 3788 (face font-lock-string-face) 3788 3798 nil 3798 3799 (face font-lock-string-face) 3799 3828 (face font-lock-constant-face) 3828 3829 (face font-lock-string-face) 3829 3839 nil 3839 3840 (face font-lock-string-face) 3840 3869 (face font-lock-constant-face) 3869 3870 (face font-lock-string-face) 3870 3880 nil 3880 3881 (face font-lock-string-face) 3881 3909 (face font-lock-constant-face) 3909 3910 (face font-lock-string-face) 3910 3920 nil 3920 3921 (face font-lock-string-face) 3921 3945 (face font-lock-constant-face) 3945 3946 (face font-lock-string-face) 3946 3956 nil 3956 3957 (face font-lock-string-face) 3957 3980 (face font-lock-constant-face) 3980 3981 (face font-lock-string-face) 3981 3991 nil 3991 3992 (face font-lock-string-face) 3992 4019 (face font-lock-constant-face) 4019 4020 (face font-lock-string-face) 4020 4030 nil 4030 4031 (face font-lock-string-face) 4031 4057 (face font-lock-constant-face) 4057 4058 (face font-lock-string-face) 4058 4068 nil 4068 4069 (face font-lock-string-face) 4069 4090 (face font-lock-constant-face) 4090 4091 (face font-lock-string-face) 4091 4101 nil 4101 4102 (face font-lock-string-face) 4102 4122 (face font-lock-constant-face) 4122 4123 (face font-lock-string-face) 4123 4133 nil 4133 4134 (face font-lock-string-face) 4134 4157 (face font-lock-constant-face) 4157 4158 (face font-lock-string-face) 4158 4168 nil 4168 4169 (face font-lock-string-face) 4169 4191 (face font-lock-constant-face) 4191 4192 (face font-lock-string-face) 4192 4202 nil 4202 4203 (face font-lock-string-face) 4203 4243 (face font-lock-constant-face) 4243 4244 (face font-lock-string-face) 4244 4254 nil 4254 4255 (face font-lock-string-face) 4255 4294 (face font-lock-constant-face) 4294 4295 (face font-lock-string-face) 4295 4305 nil 4305 4306 (face font-lock-string-face) 4306 4347 (face font-lock-constant-face) 4347 4348 (face font-lock-string-face) 4348 4358 nil 4358 4359 (face font-lock-string-face) 4359 4399 (face font-lock-constant-face) 4399 4400 (face font-lock-string-face) 4400 4410 nil 4410 4411 (face font-lock-string-face) 4411 4441 (face font-lock-constant-face) 4441 4442 (face font-lock-string-face) 4442 4452 nil 4452 4453 (face font-lock-string-face) 4453 4482 (face font-lock-constant-face) 4482 4483 (face font-lock-string-face) 4483 4493 nil 4493 4494 (face font-lock-string-face) 4494 4523 (face font-lock-constant-face) 4523 4524 (face font-lock-string-face) 4524 4534 nil 4534 4535 (face font-lock-string-face) 4535 4563 (face font-lock-constant-face) 4563 4564 (face font-lock-string-face) 4564 4574 nil 4574 4575 (face font-lock-string-face) 4575 4610 (face font-lock-constant-face) 4610 4611 (face font-lock-string-face) 4611 4621 nil 4621 4622 (face font-lock-string-face) 4622 4656 (face font-lock-constant-face) 4656 4657 (face font-lock-string-face) 4657 4667 nil 4667 4668 (face font-lock-string-face) 4668 4697 (face font-lock-constant-face) 4697 4698 (face font-lock-string-face) 4698 4708 nil 4708 4709 (face font-lock-string-face) 4709 4737 (face font-lock-constant-face) 4737 4738 (face font-lock-string-face) 4738 4748 nil 4748 4749 (face font-lock-string-face) 4749 4780 (face font-lock-constant-face) 4780 4781 (face font-lock-string-face) 4781 4791 nil 4791 4792 (face font-lock-string-face) 4792 4822 (face font-lock-constant-face) 4822 4823 (face font-lock-string-face) 4823 4833 nil 4833 4834 (face font-lock-string-face) 4834 4869 (face font-lock-constant-face) 4869 4870 (face font-lock-string-face) 4870 4880 nil 4880 4881 (face font-lock-string-face) 4881 4915 (face font-lock-constant-face) 4915 4916 (face font-lock-string-face) 4916 4926 nil 4926 4927 (face font-lock-string-face) 4927 4948 (face font-lock-constant-face) 4948 4949 (face font-lock-string-face) 4949 4959 nil 4959 4960 (face font-lock-string-face) 4960 4980 (face font-lock-constant-face) 4980 4981 (face font-lock-string-face) 4981 4991 nil 4991 4992 (face font-lock-string-face) 4992 5020 (face font-lock-constant-face) 5020 5021 (face font-lock-string-face) 5021 5031 nil 5031 5032 (face font-lock-string-face) 5032 5059 (face font-lock-constant-face) 5059 5060 (face font-lock-string-face) 5060 5070 nil 5070 5071 (face font-lock-string-face) 5071 5092 (face font-lock-constant-face) 5092 5093 (face font-lock-string-face) 5093 5103 nil 5103 5104 (face font-lock-string-face) 5104 5132 (face font-lock-constant-face) 5132 5133 (face font-lock-string-face) 5133 5143 nil 5143 5144 (face font-lock-string-face) 5144 5171 (face font-lock-constant-face) 5171 5172 (face font-lock-string-face) 5172 5182 nil 5182 5183 (face font-lock-string-face) 5183 5217 (face font-lock-constant-face) 5217 5218 (face font-lock-string-face) 5218 5228 nil 5228 5229 (face font-lock-string-face) 5229 5262 (face font-lock-constant-face) 5262 5263 (face font-lock-string-face) 5263 5273 nil 5273 5274 (face font-lock-string-face) 5274 5297 (face font-lock-constant-face) 5297 5298 (face font-lock-string-face) 5298 5308 nil 5308 5309 (face font-lock-string-face) 5309 5324 (face font-lock-constant-face) 5324 5325 (face font-lock-string-face) 5325 5335 nil 5335 5336 (face font-lock-string-face) 5336 5350 (face font-lock-constant-face) 5350 5351 (face font-lock-string-face) 5351 5361 nil 5361 5362 (face font-lock-string-face) 5362 5380 (face font-lock-constant-face) 5380 5381 (face font-lock-string-face) 5381 5391 nil 5391 5392 (face font-lock-string-face) 5392 5409 (face font-lock-constant-face) 5409 5410 (face font-lock-string-face) 5410 5420 nil 5420 5421 (face font-lock-string-face) 5421 5443 (face font-lock-constant-face) 5443 5444 (face font-lock-string-face) 5444 5454 nil 5454 5455 (face font-lock-string-face) 5455 5476 (face font-lock-constant-face) 5476 5477 (face font-lock-string-face) 5477 5487 nil 5487 5488 (face font-lock-string-face) 5488 5501 (face font-lock-constant-face) 5501 5502 (face font-lock-string-face) 5502 5512 nil 5512 5513 (face font-lock-string-face) 5513 5525 (face font-lock-constant-face) 5525 5526 (face font-lock-string-face) 5526 5536 nil 5536 5537 (face font-lock-string-face) 5537 5561 (face font-lock-constant-face) 5561 5562 (face font-lock-string-face) 5562 5572 nil 5572 5573 (face font-lock-string-face) 5573 5596 (face font-lock-constant-face) 5596 5597 (face font-lock-string-face) 5597 5607 nil 5607 5608 (face font-lock-string-face) 5608 5627 (face font-lock-constant-face) 5627 5628 (face font-lock-string-face) 5628 5638 nil 5638 5639 (face font-lock-string-face) 5639 5657 (face font-lock-constant-face) 5657 5658 (face font-lock-string-face) 5658 5668 nil 5668 5669 (face font-lock-string-face) 5669 5688 (face font-lock-constant-face) 5688 5689 (face font-lock-string-face) 5689 5699 nil 5699 5700 (face font-lock-string-face) 5700 5718 (face font-lock-constant-face) 5718 5719 (face font-lock-string-face) 5719 5729 nil 5729 5730 (face font-lock-string-face) 5730 5752 (face font-lock-constant-face) 5752 5753 (face font-lock-string-face) 5753 5763 nil 5763 5764 (face font-lock-string-face) 5764 5785 (face font-lock-constant-face) 5785 5786 (face font-lock-string-face) 5786 5796 nil 5796 5797 (face font-lock-string-face) 5797 5819 (face font-lock-constant-face) 5819 5820 (face font-lock-string-face) 5820 5830 nil 5830 5831 (face font-lock-string-face) 5831 5852 (face font-lock-constant-face) 5852 5853 (face font-lock-string-face) 5853 5863 nil 5863 5864 (face font-lock-string-face) 5864 5880 (face font-lock-constant-face) 5880 5881 (face font-lock-string-face) 5881 5891 nil 5891 5892 (face font-lock-string-face) 5892 5915 (face font-lock-constant-face) 5915 5916 (face font-lock-string-face) 5916 5926 nil 5926 5927 (face font-lock-string-face) 5927 5942 (face font-lock-constant-face) 5942 5943 (face font-lock-string-face) 5943 5953 nil 5953 5954 (face font-lock-string-face) 5954 5968 (face font-lock-constant-face) 5968 5969 (face font-lock-string-face) 5969 5979 nil 5979 5980 (face font-lock-string-face) 5980 6002 (face font-lock-constant-face) 6002 6003 (face font-lock-string-face) 6003 6013 nil 6013 6014 (face font-lock-string-face) 6014 6035 (face font-lock-constant-face) 6035 6036 (face font-lock-string-face) 6036 6046 nil 6046 6047 (face font-lock-string-face) 6047 6059 (face font-lock-constant-face) 6059 6060 (face font-lock-string-face) 6060 6070 nil 6070 6071 (face font-lock-string-face) 6071 6082 (face font-lock-constant-face) 6082 6083 (face font-lock-string-face) 6083 6093 nil 6093 6094 (face font-lock-string-face) 6094 6119 (face font-lock-constant-face) 6119 6120 (face font-lock-string-face) 6120 6130 nil 6130 6131 (face font-lock-string-face) 6131 6155 (face font-lock-constant-face) 6155 6156 (face font-lock-string-face) 6156 6166 nil 6166 6167 (face font-lock-string-face) 6167 6185 (face font-lock-constant-face) 6185 6186 (face font-lock-string-face) 6186 6196 nil 6196 6197 (face font-lock-string-face) 6197 6212 (face font-lock-constant-face) 6212 6213 (face font-lock-string-face) 6213 6223 nil 6223 6224 (face font-lock-string-face) 6224 6238 (face font-lock-constant-face) 6238 6239 (face font-lock-string-face) 6239 6249 nil 6249 6250 (face font-lock-string-face) 6250 6282 (face font-lock-constant-face) 6282 6283 (face font-lock-string-face) 6283 6293 nil 6293 6294 (face font-lock-string-face) 6294 6325 (face font-lock-constant-face) 6325 6326 (face font-lock-string-face) 6326 6336 nil 6336 6337 (face font-lock-string-face) 6337 6349 (face font-lock-constant-face) 6349 6350 (face font-lock-string-face) 6350 6360 nil 6360 6361 (face font-lock-string-face) 6361 6382 (face font-lock-constant-face) 6382 6383 (face font-lock-string-face) 6383 6393 nil 6393 6394 (face font-lock-string-face) 6394 6413 (face font-lock-constant-face) 6413 6414 (face font-lock-string-face) 6414 6424 nil 6424 6425 (face font-lock-string-face) 6425 6442 (face font-lock-constant-face) 6442 6443 (face font-lock-string-face) 6443 6453 nil 6453 6454 (face font-lock-string-face) 6454 6470 (face font-lock-constant-face) 6470 6471 (face font-lock-string-face) 6471 6481 nil 6481 6482 (face font-lock-string-face) 6482 6504 (face font-lock-constant-face) 6504 6505 (face font-lock-string-face) 6505 6515 nil 6515 6516 (face font-lock-string-face) 6516 6535 (face font-lock-constant-face) 6535 6536 (face font-lock-string-face) 6536 6546 nil 6546 6547 (face font-lock-string-face) 6547 6569 (face font-lock-constant-face) 6569 6570 (face font-lock-string-face) 6570 6580 nil 6580 6581 (face font-lock-string-face) 6581 6602 (face font-lock-constant-face) 6602 6603 (face font-lock-string-face) 6603 6613 nil 6613 6614 (face font-lock-string-face) 6614 6631 (face font-lock-constant-face) 6631 6632 (face font-lock-string-face) 6632 6642 nil 6642 6643 (face font-lock-string-face) 6643 6671 (face font-lock-constant-face) 6671 6672 (face font-lock-string-face) 6672 6682 nil 6682 6683 (face font-lock-string-face) 6683 6710 (face font-lock-constant-face) 6710 6711 (face font-lock-string-face) 6711 6721 nil 6721 6722 (face font-lock-string-face) 6722 6738 (face font-lock-constant-face) 6738 6739 (face font-lock-string-face) 6739 6749 nil 6749 6750 (face font-lock-string-face) 6750 6765 (face font-lock-constant-face) 6765 6766 (face font-lock-string-face) 6766 6776 nil 6776 6777 (face font-lock-string-face) 6777 6800 (face font-lock-constant-face) 6800 6801 (face font-lock-string-face) 6801 6811 nil 6811 6812 (face font-lock-string-face) 6812 6834 (face font-lock-constant-face) 6834 6835 (face font-lock-string-face) 6835 6845 nil 6845 6846 (face font-lock-string-face) 6846 6860 (face font-lock-constant-face) 6860 6861 (face font-lock-string-face) 6861 6871 nil 6871 6872 (face font-lock-string-face) 6872 6885 (face font-lock-constant-face) 6885 6886 (face font-lock-string-face) 6886 6896 nil 6896 6897 (face font-lock-string-face) 6897 6920 (face font-lock-constant-face) 6920 6921 (face font-lock-string-face) 6921 6931 nil 6931 6932 (face font-lock-string-face) 6932 6954 (face font-lock-constant-face) 6954 6955 (face font-lock-string-face) 6955 6965 nil 6965 6966 (face font-lock-string-face) 6966 6986 (face font-lock-constant-face) 6986 6987 (face font-lock-string-face) 6987 6997 nil 6997 6998 (face font-lock-string-face) 6998 7017 (face font-lock-constant-face) 7017 7018 (face font-lock-string-face) 7018 7028 nil 7028 7029 (face font-lock-string-face) 7029 7050 (face font-lock-constant-face) 7050 7051 (face font-lock-string-face) 7051 7061 nil 7061 7062 (face font-lock-string-face) 7062 7082 (face font-lock-constant-face) 7082 7083 (face font-lock-string-face) 7083 7093 nil 7093 7094 (face font-lock-string-face) 7094 7122 (face font-lock-constant-face) 7122 7123 (face font-lock-string-face) 7123 7133 nil 7133 7134 (face font-lock-string-face) 7134 7161 (face font-lock-constant-face) 7161 7162 (face font-lock-string-face) 7162 7172 nil 7172 7173 (face font-lock-string-face) 7173 7194 (face font-lock-constant-face) 7194 7195 (face font-lock-string-face) 7195 7205 nil 7205 7206 (face font-lock-string-face) 7206 7226 (face font-lock-constant-face) 7226 7227 (face font-lock-string-face) 7227 7237 nil 7237 7238 (face font-lock-string-face) 7238 7266 (face font-lock-constant-face) 7266 7267 (face font-lock-string-face) 7267 7277 nil 7277 7278 (face font-lock-string-face) 7278 7305 (face font-lock-constant-face) 7305 7306 (face font-lock-string-face) 7306 7316 nil 7316 7317 (face font-lock-string-face) 7317 7336 (face font-lock-constant-face) 7336 7337 (face font-lock-string-face) 7337 7347 nil 7347 7348 (face font-lock-string-face) 7348 7366 (face font-lock-constant-face) 7366 7367 (face font-lock-string-face) 7367 7377 nil 7377 7378 (face font-lock-string-face) 7378 7399 (face font-lock-constant-face) 7399 7400 (face font-lock-string-face) 7400 7410 nil 7410 7411 (face font-lock-string-face) 7411 7429 (face font-lock-constant-face) 7429 7430 (face font-lock-string-face) 7430 7440 nil 7440 7441 (face font-lock-string-face) 7441 7458 (face font-lock-constant-face) 7458 7459 (face font-lock-string-face) 7459 7469 nil 7469 7470 (face font-lock-string-face) 7470 7493 (face font-lock-constant-face) 7493 7494 (face font-lock-string-face) 7494 7504 nil 7504 7505 (face font-lock-string-face) 7505 7527 (face font-lock-constant-face) 7527 7528 (face font-lock-string-face) 7528 7538 nil 7538 7539 (face font-lock-string-face) 7539 7562 (face font-lock-constant-face) 7562 7563 (face font-lock-string-face) 7563 7573 nil 7573 7574 (face font-lock-string-face) 7574 7596 (face font-lock-constant-face) 7596 7597 (face font-lock-string-face) 7597 7607 nil 7607 7608 (face font-lock-string-face) 7608 7631 (face font-lock-constant-face) 7631 7632 (face font-lock-string-face) 7632 7642 nil 7642 7643 (face font-lock-string-face) 7643 7665 (face font-lock-constant-face) 7665 7666 (face font-lock-string-face) 7666 7676 nil 7676 7677 (face font-lock-string-face) 7677 7705 (face font-lock-constant-face) 7705 7706 (face font-lock-string-face) 7706 7716 nil 7716 7717 (face font-lock-string-face) 7717 7744 (face font-lock-constant-face) 7744 7745 (face font-lock-string-face) 7745 7755 nil 7755 7756 (face font-lock-string-face) 7756 7791 (face font-lock-constant-face) 7791 7792 (face font-lock-string-face) 7792 7802 nil 7802 7803 (face font-lock-string-face) 7803 7837 (face font-lock-constant-face) 7837 7838 (face font-lock-string-face) 7838 7848 nil 7848 7849 (face font-lock-string-face) 7849 7879 (face font-lock-constant-face) 7879 7880 (face font-lock-string-face) 7880 7890 nil 7890 7891 (face font-lock-string-face) 7891 7920 (face font-lock-constant-face) 7920 7921 (face font-lock-string-face) 7921 7931 nil 7931 7932 (face font-lock-string-face) 7932 7962 (face font-lock-constant-face) 7962 7963 (face font-lock-string-face) 7963 7973 nil 7973 7974 (face font-lock-string-face) 7974 8003 (face font-lock-constant-face) 8003 8004 (face font-lock-string-face) 8004 8014 nil 8014 8015 (face font-lock-string-face) 8015 8039 (face font-lock-constant-face) 8039 8040 (face font-lock-string-face) 8040 8050 nil 8050 8051 (face font-lock-string-face) 8051 8074 (face font-lock-constant-face) 8074 8075 (face font-lock-string-face) 8075 8085 nil 8085 8086 (face font-lock-string-face) 8086 8116 (face font-lock-constant-face) 8116 8117 (face font-lock-string-face) 8117 8127 nil 8127 8128 (face font-lock-string-face) 8128 8152 (face font-lock-constant-face) 8152 8153 (face font-lock-string-face) 8153 8163 nil 8163 8164 (face font-lock-string-face) 8164 8187 (face font-lock-constant-face) 8187 8188 (face font-lock-string-face) 8188 8198 nil 8198 8199 (face font-lock-string-face) 8199 8230 (face font-lock-constant-face) 8230 8231 (face font-lock-string-face) 8231 8241 nil 8241 8242 (face font-lock-string-face) 8242 8272 (face font-lock-constant-face) 8272 8273 (face font-lock-string-face) 8273 8283 nil 8283 8284 (face font-lock-string-face) 8284 8309 (face font-lock-constant-face) 8309 8310 (face font-lock-string-face) 8310 8320 nil 8320 8321 (face font-lock-string-face) 8321 8345 (face font-lock-constant-face) 8345 8346 (face font-lock-string-face) 8346 8356 nil 8356 8357 (face font-lock-string-face) 8357 8399 (face font-lock-constant-face) 8399 8400 (face font-lock-string-face) 8400 8410 nil 8410 8411 (face font-lock-string-face) 8411 8452 (face font-lock-constant-face) 8452 8453 (face font-lock-string-face) 8453 8463 nil 8463 8464 (face font-lock-string-face) 8464 8486 (face font-lock-constant-face) 8486 8487 (face font-lock-string-face) 8487 8497 nil 8497 8498 (face font-lock-string-face) 8498 8519 (face font-lock-constant-face) 8519 8520 (face font-lock-string-face) 8520 8530 nil 8530 8531 (face font-lock-string-face) 8531 8562 (face font-lock-constant-face) 8562 8563 (face font-lock-string-face) 8563 8573 nil 8573 8574 (face font-lock-string-face) 8574 8604 (face font-lock-constant-face) 8604 8605 (face font-lock-string-face) 8605 8615 nil 8615 8616 (face font-lock-string-face) 8616 8643 (face font-lock-constant-face) 8643 8644 (face font-lock-string-face) 8644 8654 nil 8654 8655 (face font-lock-string-face) 8655 8681 (face font-lock-constant-face) 8681 8682 (face font-lock-string-face) 8682 8692 nil 8692 8693 (face font-lock-string-face) 8693 8721 (face font-lock-constant-face) 8721 8722 (face font-lock-string-face) 8722 8732 nil 8732 8733 (face font-lock-string-face) 8733 8760 (face font-lock-constant-face) 8760 8761 (face font-lock-string-face) 8761 8771 nil 8771 8772 (face font-lock-string-face) 8772 8805 (face font-lock-constant-face) 8805 8806 (face font-lock-string-face) 8806 8816 nil 8816 8817 (face font-lock-string-face) 8817 8849 (face font-lock-constant-face) 8849 8850 (face font-lock-string-face) 8850 8860 nil 8860 8861 (face font-lock-string-face) 8861 8892 (face font-lock-constant-face) 8892 8893 (face font-lock-string-face) 8893 8903 nil 8903 8904 (face font-lock-string-face) 8904 8934 (face font-lock-constant-face) 8934 8935 (face font-lock-string-face) 8935 8945 nil 8945 8946 (face font-lock-string-face) 8946 8978 (face font-lock-constant-face) 8978 8979 (face font-lock-string-face) 8979 8989 nil 8989 8990 (face font-lock-string-face) 8990 9021 (face font-lock-constant-face) 9021 9022 (face font-lock-string-face) 9022 9032 nil 9032 9033 (face font-lock-string-face) 9033 9063 (face font-lock-constant-face) 9063 9064 (face font-lock-string-face) 9064 9074 nil 9074 9075 (face font-lock-string-face) 9075 9104 (face font-lock-constant-face) 9104 9105 (face font-lock-string-face) 9105 9115 nil 9115 9116 (face font-lock-string-face) 9116 9158 (face font-lock-constant-face) 9158 9159 (face font-lock-string-face) 9159 9169 nil 9169 9170 (face font-lock-string-face) 9170 9211 (face font-lock-constant-face) 9211 9212 (face font-lock-string-face) 9212 9222 nil 9222 9223 (face font-lock-string-face) 9223 9272 (face font-lock-constant-face) 9272 9273 (face font-lock-string-face) 9273 9283 nil 9283 9284 (face font-lock-string-face) 9284 9332 (face font-lock-constant-face) 9332 9333 (face font-lock-string-face) 9333 9343 nil 9343 9344 (face font-lock-string-face) 9344 9388 (face font-lock-constant-face) 9388 9389 (face font-lock-string-face) 9389 9399 nil 9399 9400 (face font-lock-string-face) 9400 9445 (face font-lock-constant-face) 9445 9446 (face font-lock-string-face) 9446 9456 nil 9456 9457 (face font-lock-string-face) 9457 9507 (face font-lock-constant-face) 9507 9508 (face font-lock-string-face) 9508 9518 nil 9518 9519 (face font-lock-string-face) 9519 9570 (face font-lock-constant-face) 9570 9571 (face font-lock-string-face) 9571 9581 nil 9581 9582 (face font-lock-string-face) 9582 9611 (face font-lock-constant-face) 9611 9612 (face font-lock-string-face) 9612 9622 nil 9622 9623 (face font-lock-string-face) 9623 9659 (face font-lock-constant-face) 9659 9660 (face font-lock-string-face) 9660 9670 nil 9670 9671 (face font-lock-string-face) 9671 9714 (face font-lock-constant-face) 9714 9715 (face font-lock-string-face) 9715 9725 nil 9725 9726 (face font-lock-string-face) 9726 9768 (face font-lock-constant-face) 9768 9769 (face font-lock-string-face) 9769 9779 nil 9779 9780 (face font-lock-string-face) 9780 9816 (face font-lock-constant-face) 9816 9817 (face font-lock-string-face) 9817 9827 nil 9827 9828 (face font-lock-string-face) 9828 9863 (face font-lock-constant-face) 9863 9864 (face font-lock-string-face) 9864 9874 nil 9874 9875 (face font-lock-string-face) 9875 9910 (face font-lock-constant-face) 9910 9911 (face font-lock-string-face) 9911 9921 nil 9921 9922 (face font-lock-string-face) 9922 9958 (face font-lock-constant-face) 9958 9959 (face font-lock-string-face) 9959 9969 nil 9969 9970 (face font-lock-string-face) 9970 10005 (face font-lock-constant-face) 10005 10006 (face font-lock-string-face) 10006 10016 nil 10016 10017 (face font-lock-string-face) 10017 10050 (face font-lock-constant-face) 10050 10051 (face font-lock-string-face) 10051 10061 nil 10061 10062 (face font-lock-string-face) 10062 10094 (face font-lock-constant-face) 10094 10095 (face font-lock-string-face) 10095 10105 nil 10105 10106 (face font-lock-string-face) 10106 10150 (face font-lock-constant-face) 10150 10151 (face font-lock-string-face) 10151 10161 nil 10161 10162 (face font-lock-string-face) 10162 10198 (face font-lock-constant-face) 10198 10199 (face font-lock-string-face) 10199 10209 nil 10209 10210 (face font-lock-string-face) 10210 10245 (face font-lock-constant-face) 10245 10246 (face font-lock-string-face) 10246 10256 nil 10256 10257 (face font-lock-string-face) 10257 10296 (face font-lock-constant-face) 10296 10297 (face font-lock-string-face) 10297 10307 nil 10307 10308 (face font-lock-string-face) 10308 10346 (face font-lock-constant-face) 10346 10347 (face font-lock-string-face) 10347 10357 nil 10357 10358 (face font-lock-string-face) 10358 10403 (face font-lock-constant-face) 10403 10404 (face font-lock-string-face) 10404 10414 nil 10414 10415 (face font-lock-string-face) 10415 10459 (face font-lock-constant-face) 10459 10460 (face font-lock-string-face) 10460 10470 nil 10470 10471 (face font-lock-string-face) 10471 10487 (face font-lock-constant-face) 10487 10488 (face font-lock-string-face) 10488 10498 nil 10498 10499 (face font-lock-string-face) 10499 10514 (face font-lock-constant-face) 10514 10515 (face font-lock-string-face) 10515 10525 nil 10525 10526 (face font-lock-string-face) 10526 10559 (face font-lock-constant-face) 10559 10560 (face font-lock-string-face) 10560 10570 nil 10570 10571 (face font-lock-string-face) 10571 10603 (face font-lock-constant-face) 10603 10604 (face font-lock-string-face) 10604 10614 nil 10614 10615 (face font-lock-string-face) 10615 10636 (face font-lock-constant-face) 10636 10637 (face font-lock-string-face) 10637 10647 nil 10647 10648 (face font-lock-string-face) 10648 10675 (face font-lock-constant-face) 10675 10676 (face font-lock-string-face) 10676 10686 nil 10686 10687 (face font-lock-string-face) 10687 10713 (face font-lock-constant-face) 10713 10714 (face font-lock-string-face) 10714 10724 nil 10724 10725 (face font-lock-string-face) 10725 10755 (face font-lock-constant-face) 10755 10756 (face font-lock-string-face) 10756 10766 nil 10766 10767 (face font-lock-string-face) 10767 10796 (face font-lock-constant-face) 10796 10797 (face font-lock-string-face) 10797 10807 nil 10807 10808 (face font-lock-string-face) 10808 10845 (face font-lock-constant-face) 10845 10846 (face font-lock-string-face) 10846 10856 nil 10856 10857 (face font-lock-string-face) 10857 10893 (face font-lock-constant-face) 10893 10894 (face font-lock-string-face) 10894 10904 nil 10904 10905 (face font-lock-string-face) 10905 10929 (face font-lock-constant-face) 10929 10930 (face font-lock-string-face) 10930 10940 nil 10940 10941 (face font-lock-string-face) 10941 10964 (face font-lock-constant-face) 10964 10965 (face font-lock-string-face) 10965 10975 nil 10975 10976 (face font-lock-string-face) 10976 10995 (face font-lock-constant-face) 10995 10996 (face font-lock-string-face) 10996 11006 nil 11006 11007 (face font-lock-string-face) 11007 11025 (face font-lock-constant-face) 11025 11026 (face font-lock-string-face) 11026 11036 nil 11036 11037 (face font-lock-string-face) 11037 11063 (face font-lock-constant-face) 11063 11064 (face font-lock-string-face) 11064 11074 nil 11074 11075 (face font-lock-string-face) 11075 11100 (face font-lock-constant-face) 11100 11101 (face font-lock-string-face) 11101 11111 nil 11111 11112 (face font-lock-string-face) 11112 11138 (face font-lock-constant-face) 11138 11139 (face font-lock-string-face) 11139 11149 nil 11149 11150 (face font-lock-string-face) 11150 11175 (face font-lock-constant-face) 11175 11176 (face font-lock-string-face) 11176 11193 nil 11193 11194 (face font-lock-string-face) 11194 11219 (face font-lock-keyword-face) 11219 11220 (face font-lock-string-face) 11220 11232 nil 11232 11233 (face font-lock-string-face) 11233 11245 (face font-lock-keyword-face) 11245 11246 (face font-lock-string-face) 11246 11260 nil 11260 11261 (face font-lock-string-face) 11261 11263 (face font-lock-constant-face) 11263 11264 (face font-lock-string-face) 11264 11292 nil 11292 11293 (face font-lock-string-face) 11293 11303 (face font-lock-keyword-face) 11303 11304 (face font-lock-string-face) 11304 11316 nil 11316 11381 (face font-lock-comment-face) 11381 11389 nil 11389 11439 (face font-lock-comment-face) 11439 11448 nil 11448 11449 (face font-lock-string-face) 11449 11464 (face font-lock-variable-name-face) 11464 11465 (face font-lock-string-face) 11465 11479 nil 11479 11480 (face font-lock-string-face) 11480 11492 (face font-lock-keyword-face) 11492 11493 (face font-lock-string-face) 11493 11509 nil 11509 11510 (face font-lock-string-face) 11510 11549 (face font-lock-function-name-face) 11549 11550 (face font-lock-string-face) 11550 11586 nil 11586 11587 (face font-lock-string-face) 11587 11602 (face font-lock-variable-name-face) 11602 11603 (face font-lock-string-face) 11603 11617 nil 11617 11618 (face font-lock-string-face) 11618 11626 (face font-lock-keyword-face) 11626 11627 (face font-lock-string-face) 11627 11643 nil 11643 11644 (face font-lock-string-face) 11644 11663 (face font-lock-constant-face) 11663 11664 (face font-lock-string-face) 11664 11678 nil 11678 11679 (face font-lock-string-face) 11679 11702 (face font-lock-constant-face) 11702 11703 (face font-lock-string-face) 11703 11717 nil 11717 11718 (face font-lock-string-face) 11718 11740 (face font-lock-constant-face) 11740 11741 (face font-lock-string-face) 11741 11755 nil 11755 11756 (face font-lock-string-face) 11756 11779 (face font-lock-constant-face) 11779 11780 (face font-lock-string-face) 11780 11794 nil 11794 11795 (face font-lock-string-face) 11795 11817 (face font-lock-constant-face) 11817 11818 (face font-lock-string-face) 11818 11832 nil 11832 11833 (face font-lock-string-face) 11833 11861 (face font-lock-constant-face) 11861 11862 (face font-lock-string-face) 11862 11876 nil 11876 11877 (face font-lock-string-face) 11877 11904 (face font-lock-constant-face) 11904 11905 (face font-lock-string-face) 11905 11919 nil 11919 11920 (face font-lock-string-face) 11920 11950 (face font-lock-constant-face) 11950 11951 (face font-lock-string-face) 11951 11965 nil 11965 11966 (face font-lock-string-face) 11966 11995 (face font-lock-constant-face) 11995 11996 (face font-lock-string-face) 11996 12010 nil 12010 12011 (face font-lock-string-face) 12011 12035 (face font-lock-constant-face) 12035 12036 (face font-lock-string-face) 12036 12050 nil 12050 12051 (face font-lock-string-face) 12051 12074 (face font-lock-constant-face) 12074 12075 (face font-lock-string-face) 12075 12089 nil 12089 12090 (face font-lock-string-face) 12090 12120 (face font-lock-constant-face) 12120 12121 (face font-lock-string-face) 12121 12135 nil 12135 12136 (face font-lock-string-face) 12136 12167 (face font-lock-constant-face) 12167 12168 (face font-lock-string-face) 12168 12182 nil 12182 12183 (face font-lock-string-face) 12183 12213 (face font-lock-constant-face) 12213 12214 (face font-lock-string-face) 12214 12228 nil 12228 12229 (face font-lock-string-face) 12229 12254 (face font-lock-constant-face) 12254 12255 (face font-lock-string-face) 12255 12269 nil 12269 12270 (face font-lock-string-face) 12270 12294 (face font-lock-constant-face) 12294 12295 (face font-lock-string-face) 12295 12309 nil 12309 12310 (face font-lock-string-face) 12310 12352 (face font-lock-constant-face) 12352 12353 (face font-lock-string-face) 12353 12367 nil 12367 12368 (face font-lock-string-face) 12368 12409 (face font-lock-constant-face) 12409 12410 (face font-lock-string-face) 12410 12424 nil 12424 12425 (face font-lock-string-face) 12425 12447 (face font-lock-constant-face) 12447 12448 (face font-lock-string-face) 12448 12462 nil 12462 12463 (face font-lock-string-face) 12463 12484 (face font-lock-constant-face) 12484 12485 (face font-lock-string-face) 12485 12499 nil 12499 12500 (face font-lock-string-face) 12500 12531 (face font-lock-constant-face) 12531 12532 (face font-lock-string-face) 12532 12546 nil 12546 12547 (face font-lock-string-face) 12547 12577 (face font-lock-constant-face) 12577 12578 (face font-lock-string-face) 12578 12592 nil 12592 12593 (face font-lock-string-face) 12593 12621 (face font-lock-constant-face) 12621 12622 (face font-lock-string-face) 12622 12636 nil 12636 12637 (face font-lock-string-face) 12637 12664 (face font-lock-constant-face) 12664 12665 (face font-lock-string-face) 12665 12679 nil 12679 12680 (face font-lock-string-face) 12680 12707 (face font-lock-constant-face) 12707 12708 (face font-lock-string-face) 12708 12722 nil 12722 12723 (face font-lock-string-face) 12723 12749 (face font-lock-constant-face) 12749 12750 (face font-lock-string-face) 12750 12764 nil 12764 12765 (face font-lock-string-face) 12765 12791 (face font-lock-constant-face) 12791 12792 (face font-lock-string-face) 12792 12806 nil 12806 12807 (face font-lock-string-face) 12807 12832 (face font-lock-constant-face) 12832 12833 (face font-lock-string-face) 12833 12868 nil 12868 12937 (face font-lock-comment-face) 12937 12945 nil 12945 13016 (face font-lock-comment-face) 13016 13024 nil 13024 13040 (face font-lock-comment-face) 13040 13049 nil 13049 13050 (face font-lock-string-face) 13050 13065 (face font-lock-variable-name-face) 13065 13066 (face font-lock-string-face) 13066 13080 nil 13080 13081 (face font-lock-string-face) 13081 13089 (face font-lock-keyword-face) 13089 13090 (face font-lock-string-face) 13090 13105 nil 13105 13106 (face font-lock-string-face) 13106 13149 (face font-lock-constant-face) 13149 13150 (face font-lock-string-face) 13150 13175 nil 13175 13176 (face font-lock-string-face) 13176 13183 (face font-lock-keyword-face) 13183 13184 (face font-lock-string-face) 13184 13199 nil 13199 13200 (face font-lock-string-face) 13200 13248 (face font-lock-constant-face) 13248 13249 (face font-lock-string-face) 13249 13274 nil 13274 13275 (face font-lock-string-face) 13275 13288 (face font-lock-keyword-face) 13288 13289 (face font-lock-string-face) 13289 13305 nil 13305 13306 (face font-lock-string-face) 13306 13315 (face font-lock-keyword-face) 13315 13316 (face font-lock-string-face) 13316 13334 nil 13334 13335 (face font-lock-string-face) 13335 13345 (face font-lock-constant-face) 13345 13346 (face font-lock-string-face) 13346 13397 nil 13397 13398 (face font-lock-string-face) 13398 13443 (face font-lock-variable-name-face) 13443 13444 (face font-lock-string-face) 13444 13458 nil 13458 13459 (face font-lock-string-face) 13459 13472 (face font-lock-keyword-face) 13472 13473 (face font-lock-string-face) 13473 13489 nil 13489 13490 (face font-lock-string-face) 13490 13499 (face font-lock-keyword-face) 13499 13500 (face font-lock-string-face) 13500 13518 nil 13518 13519 (face font-lock-string-face) 13519 13527 (face font-lock-constant-face) 13527 13528 (face font-lock-string-face) 13528 13579 nil 13579 13580 (face font-lock-string-face) 13580 13593 (face font-lock-variable-name-face) 13593 13594 (face font-lock-string-face) 13594 13608 nil 13608 13609 (face font-lock-string-face) 13609 13617 (face font-lock-keyword-face) 13617 13618 (face font-lock-string-face) 13618 13623 nil 13623 13624 (face font-lock-string-face) 13624 13631 (face font-lock-constant-face) 13631 13632 (face font-lock-string-face) 13632 13634 nil 13634 13635 (face font-lock-string-face) 13635 13641 (face font-lock-constant-face) 13641 13642 (face font-lock-string-face) 13642 13671 nil 13671 13672 (face font-lock-string-face) 13672 13679 (face font-lock-constant-face) 13679 13680 (face font-lock-string-face) 13680 13682 nil 13682 13683 (face font-lock-string-face) 13683 13703 (face font-lock-constant-face) 13703 13704 (face font-lock-string-face) 13704 13720 nil 13720 13721 (face font-lock-string-face) 13721 13734 (face font-lock-keyword-face) 13734 13735 (face font-lock-string-face) 13735 13751 nil 13751 13752 (face font-lock-string-face) 13752 13761 (face font-lock-keyword-face) 13761 13762 (face font-lock-string-face) 13762 13815 nil 13815 13816 (face font-lock-string-face) 13816 13829 (face font-lock-variable-name-face) 13829 13830 (face font-lock-string-face) 13830 13844 nil 13844 13845 (face font-lock-string-face) 13845 13853 (face font-lock-keyword-face) 13853 13854 (face font-lock-string-face) 13854 13870 nil 13870 13871 (face font-lock-string-face) 13871 13909 (face font-lock-constant-face) 13909 13910 (face font-lock-string-face) 13910 13924 nil 13924 13925 (face font-lock-string-face) 13925 13962 (face font-lock-constant-face) 13962 13963 (face font-lock-string-face) 13963 13999 nil 13999 14000 (face font-lock-string-face) 14000 14011 (face font-lock-variable-name-face) 14011 14012 (face font-lock-string-face) 14012 14026 nil 14026 14027 (face font-lock-string-face) 14027 14036 (face font-lock-keyword-face) 14036 14037 (face font-lock-string-face) 14037 14053 nil 14053 14054 (face font-lock-string-face) 14054 14064 (face font-lock-keyword-face) 14064 14065 (face font-lock-string-face) 14065 14084 nil 14084 14085 (face font-lock-string-face) 14085 14096 (face font-lock-variable-name-face) 14096 14097 (face font-lock-string-face) 14097 14117 nil 14117 14129 (face font-lock-string-face) 14129 14131 nil 14131 14169 (face font-lock-string-face) 14169 14176 (face font-lock-variable-name-face) 14176 14182 (face font-lock-string-face) 14182 14193 (face font-lock-variable-name-face) 14193 14196 (face font-lock-string-face) 14196 14233 nil 14233 14245 (face font-lock-string-face) 14245 14247 nil 14247 14259 (face font-lock-string-face) 14259 14316 nil 14316 14317 (face font-lock-string-face) 14317 14327 (face font-lock-keyword-face) 14327 14328 (face font-lock-string-face) 14328 14345 nil 14345 14346 (face font-lock-string-face) 14346 14359 (face font-lock-variable-name-face) 14359 14360 (face font-lock-string-face) 14360 14378 nil 14378 14379 (face font-lock-string-face) 14379 14385 (face font-lock-keyword-face) 14385 14386 (face font-lock-string-face) 14386 14406 nil 14406 14411 (face font-lock-string-face) 14411 14413 (face font-lock-variable-name-face) 14413 14423 (face font-lock-variable-name-face) 14423 14443 (face font-lock-string-face) 14443 14476 nil 14476 14477 (face font-lock-string-face) 14477 14490 (face font-lock-keyword-face) 14490 14491 (face font-lock-string-face) 14491 14511 nil 14511 14512 (face font-lock-string-face) 14512 14521 (face font-lock-keyword-face) 14521 14522 (face font-lock-string-face) 14522 14544 nil 14544 14545 (face font-lock-string-face) 14545 14549 (face font-lock-constant-face) 14549 14551 (face font-lock-variable-name-face) 14551 14561 (face font-lock-variable-name-face) 14561 14578 (face font-lock-constant-face) 14578 14579 (face font-lock-string-face) 14579 14631 nil 14631 14632 (face font-lock-string-face) 14632 14639 (face font-lock-keyword-face) 14639 14640 (face font-lock-string-face) 14640 14660 nil 14660 14661 (face font-lock-string-face) 14661 14669 (face font-lock-preprocessor-face) 14669 14670 (face font-lock-string-face) 14670 14707 nil 14707 14729 (face font-lock-comment-face) 14729 14743 nil 14743 14744 (face font-lock-string-face) 14744 14752 (face font-lock-keyword-face) 14752 14753 (face font-lock-string-face) 14753 14773 nil 14773 14774 (face font-lock-string-face) 14774 14800 (face font-lock-constant-face) 14800 14801 (face font-lock-string-face) 14801 14819 nil 14819 14820 (face font-lock-string-face) 14820 14845 (face font-lock-constant-face) 14845 14846 (face font-lock-string-face) 14846 14915 nil 14915 14916 (face font-lock-string-face) 14916 14929 (face font-lock-variable-name-face) 14929 14930 (face font-lock-string-face) 14930 14944 nil 14944 14945 (face font-lock-string-face) 14945 14955 (face font-lock-keyword-face) 14955 14956 (face font-lock-string-face) 14956 14973 nil 14973 14974 (face font-lock-string-face) 14974 14993 (face font-lock-variable-name-face) 14993 14994 (face font-lock-string-face) 14994 15012 nil 15012 15013 (face font-lock-string-face) 15013 15019 (face font-lock-keyword-face) 15019 15020 (face font-lock-string-face) 15020 15040 nil 15040 15075 (face font-lock-string-face) 15075 15108 nil 15108 15109 (face font-lock-string-face) 15109 15122 (face font-lock-keyword-face) 15122 15123 (face font-lock-string-face) 15123 15143 nil 15143 15144 (face font-lock-string-face) 15144 15153 (face font-lock-keyword-face) 15153 15154 (face font-lock-string-face) 15154 15176 nil 15176 15177 (face font-lock-string-face) 15177 15215 (face font-lock-constant-face) 15215 15216 (face font-lock-string-face) 15216 15268 nil 15268 15269 (face font-lock-string-face) 15269 15276 (face font-lock-keyword-face) 15276 15277 (face font-lock-string-face) 15277 15297 nil 15297 15298 (face font-lock-string-face) 15298 15312 (face font-lock-preprocessor-face) 15312 15313 (face font-lock-string-face) 15313 15350 nil 15350 15378 (face font-lock-comment-face) 15378 15392 nil 15392 15393 (face font-lock-string-face) 15393 15401 (face font-lock-keyword-face) 15401 15402 (face font-lock-string-face) 15402 15422 nil 15422 15423 (face font-lock-string-face) 15423 15450 (face font-lock-constant-face) 15450 15451 (face font-lock-string-face) 15451 15469 nil 15469 15470 (face font-lock-string-face) 15470 15496 (face font-lock-constant-face) 15496 15497 (face font-lock-string-face) 15497 15566 nil 15566 15567 (face font-lock-string-face) 15567 15600 (face font-lock-variable-name-face) 15600 15601 (face font-lock-string-face) 15601 15615 nil 15615 15663 (face font-lock-comment-face) 15663 15673 nil 15673 15674 (face font-lock-string-face) 15674 15682 (face font-lock-keyword-face) 15682 15683 (face font-lock-string-face) 15683 15699 nil 15699 15700 (face font-lock-string-face) 15700 15743 (face font-lock-constant-face) 15743 15744 (face font-lock-string-face) 15744 15758 nil 15758 15759 (face font-lock-string-face) 15759 15801 (face font-lock-constant-face) 15801 15802 (face font-lock-string-face) 15802 15838 nil 15838 15839 (face font-lock-string-face) 15839 15848 (face font-lock-variable-name-face) 15848 15849 (face font-lock-string-face) 15849 15863 nil 15863 15864 (face font-lock-string-face) 15864 15877 (face font-lock-keyword-face) 15877 15878 (face font-lock-string-face) 15878 15894 nil 15894 15895 (face font-lock-string-face) 15895 15904 (face font-lock-keyword-face) 15904 15905 (face font-lock-string-face) 15905 15923 nil 15923 15924 (face font-lock-string-face) 15924 15980 (face font-lock-constant-face) 15980 15981 (face font-lock-string-face) 15981 15997 nil 15997 15998 (face font-lock-string-face) 15998 16057 (face font-lock-constant-face) 16057 16058 (face font-lock-string-face) 16058 16074 nil 16074 16075 (face font-lock-string-face) 16075 16131 (face font-lock-constant-face) 16131 16132 (face font-lock-string-face) 16132 16148 nil 16148 16149 (face font-lock-string-face) 16149 16205 (face font-lock-constant-face) 16205 16206 (face font-lock-string-face) 16206 16222 nil 16222 16223 (face font-lock-string-face) 16223 16275 (face font-lock-constant-face) 16275 16276 (face font-lock-string-face) 16276 16327 nil 16327 16328 (face font-lock-string-face) 16328 16337 (face font-lock-variable-name-face) 16337 16338 (face font-lock-string-face) 16338 16352 nil 16352 16353 (face font-lock-string-face) 16353 16361 (face font-lock-keyword-face) 16361 16362 (face font-lock-string-face) 16362 16378 nil 16378 16379 (face font-lock-string-face) 16379 16406 (face font-lock-constant-face) 16406 16407 (face font-lock-string-face) 16407 16421 nil 16421 16422 (face font-lock-string-face) 16422 16448 (face font-lock-constant-face) 16448 16449 (face font-lock-string-face) 16449 16463 nil 16463 16464 (face font-lock-string-face) 16464 16507 (face font-lock-constant-face) 16507 16508 (face font-lock-string-face) 16508 16522 nil 16522 16523 (face font-lock-string-face) 16523 16565 (face font-lock-constant-face) 16565 16566 (face font-lock-string-face) 16566 16602 nil 16602 16603 (face font-lock-string-face) 16603 16646 (face font-lock-variable-name-face) 16646 16647 (face font-lock-string-face) 16647 16661 nil 16661 16662 (face font-lock-string-face) 16662 16669 (face font-lock-keyword-face) 16669 16670 (face font-lock-string-face) 16670 16686 nil 16686 16687 (face font-lock-string-face) 16687 16697 (face font-lock-constant-face) 16697 16698 (face font-lock-string-face) 16698 16712 nil 16712 16713 (face font-lock-string-face) 16713 16722 (face font-lock-constant-face) 16722 16723 (face font-lock-string-face) 16723 16737 nil 16737 16738 (face font-lock-string-face) 16738 16760 (face font-lock-constant-face) 16760 16761 (face font-lock-string-face) 16761 16775 nil 16775 16776 (face font-lock-string-face) 16776 16797 (face font-lock-constant-face) 16797 16798 (face font-lock-string-face) 16798 16812 nil 16812 16813 (face font-lock-string-face) 16813 16830 (face font-lock-constant-face) 16830 16831 (face font-lock-string-face) 16831 16845 nil 16845 16846 (face font-lock-string-face) 16846 16862 (face font-lock-constant-face) 16862 16863 (face font-lock-string-face) 16863 16877 nil 16877 16878 (face font-lock-string-face) 16878 16889 (face font-lock-constant-face) 16889 16890 (face font-lock-string-face) 16890 16904 nil 16904 16905 (face font-lock-string-face) 16905 16915 (face font-lock-constant-face) 16915 16916 (face font-lock-string-face) 16916 16930 nil 16930 16931 (face font-lock-string-face) 16931 16955 (face font-lock-constant-face) 16955 16956 (face font-lock-string-face) 16956 16970 nil 16970 16971 (face font-lock-string-face) 16971 16994 (face font-lock-constant-face) 16994 16995 (face font-lock-string-face) 16995 17009 nil 17009 17010 (face font-lock-string-face) 17010 17034 (face font-lock-constant-face) 17034 17035 (face font-lock-string-face) 17035 17049 nil 17049 17050 (face font-lock-string-face) 17050 17073 (face font-lock-constant-face) 17073 17074 (face font-lock-string-face) 17074 17088 nil 17088 17089 (face font-lock-string-face) 17089 17114 (face font-lock-constant-face) 17114 17115 (face font-lock-string-face) 17115 17129 nil 17129 17130 (face font-lock-string-face) 17130 17154 (face font-lock-constant-face) 17154 17155 (face font-lock-string-face) 17155 17210 nil 17210 17211 (face font-lock-string-face) 17211 17222 (face font-lock-keyword-face) 17222 17223 (face font-lock-string-face) 17223 17225 nil 17225 17226 (face font-lock-string-face) 17226 17237 (face font-lock-function-name-face) 17237 17238 (face font-lock-string-face) 17238 17246 nil 17246 17247 (face font-lock-string-face) 17247 17251 (face font-lock-keyword-face) 17251 17252 (face font-lock-string-face) 17252 17254 nil 17254 17255 (face font-lock-string-face) 17255 17269 (face font-lock-type-face) 17269 17270 (face font-lock-string-face) 17270 17278 nil 17278 17279 (face font-lock-string-face) 17279 17291 (face font-lock-keyword-face) 17291 17292 (face font-lock-string-face) 17292 17304 nil 17304 17305 (face font-lock-string-face) 17305 17307 (face font-lock-constant-face) 17307 17308 (face font-lock-string-face) 17308 17325 nil 17325 17326 (face font-lock-string-face) 17326 17336 (face font-lock-keyword-face) 17336 17337 (face font-lock-string-face) 17337 17350 nil 17350 17351 (face font-lock-string-face) 17351 17371 (face font-lock-variable-name-face) 17371 17372 (face font-lock-string-face) 17372 17386 nil 17386 17387 (face font-lock-string-face) 17387 17404 (face font-lock-keyword-face) 17404 17405 (face font-lock-string-face) 17405 17423 nil 17423 17424 (face font-lock-string-face) 17424 17442 (face font-lock-variable-name-face) 17442 17443 (face font-lock-string-face) 17443 17461 nil 17461 17462 (face font-lock-string-face) 17462 17469 (face font-lock-keyword-face) 17469 17470 (face font-lock-string-face) 17470 17474 nil 17474 17498 (face font-lock-string-face) 17498 17553 nil 17553 17554 (face font-lock-string-face) 17554 17599 (face font-lock-variable-name-face) 17599 17600 (face font-lock-string-face) 17600 17614 nil 17614 17615 (face font-lock-string-face) 17615 17627 (face font-lock-keyword-face) 17627 17628 (face font-lock-string-face) 17628 17644 nil 17644 17645 (face font-lock-string-face) 17645 17665 (face font-lock-function-name-face) 17665 17666 (face font-lock-string-face) 17666 17703 nil 17703 17704 (face font-lock-string-face) 17704 17724 (face font-lock-variable-name-face) 17724 17725 (face font-lock-string-face) 17725 17739 nil 17739 17740 (face font-lock-string-face) 17740 17752 (face font-lock-keyword-face) 17752 17753 (face font-lock-string-face) 17753 17769 nil 17769 17770 (face font-lock-string-face) 17770 17790 (face font-lock-function-name-face) 17790 17791 (face font-lock-string-face) 17791 17833 nil 17833 17834 (face font-lock-string-face) 17834 17841 (face font-lock-keyword-face) 17841 17842 (face font-lock-string-face) 17842 17854 nil 17854 17855 (face font-lock-string-face) 17855 17874 (face font-lock-constant-face) 17874 17875 (face font-lock-string-face) 17875 17885 nil 17885 17886 (face font-lock-string-face) 17886 17904 (face font-lock-constant-face) 17904 17905 (face font-lock-string-face) 17905 17935 nil 17935 17936 (face font-lock-string-face) 17936 17947 (face font-lock-keyword-face) 17947 17948 (face font-lock-string-face) 17948 17950 nil 17950 17951 (face font-lock-string-face) 17951 17971 (face font-lock-function-name-face) 17971 17972 (face font-lock-string-face) 17972 17980 nil 17980 17981 (face font-lock-string-face) 17981 17985 (face font-lock-keyword-face) 17985 17986 (face font-lock-string-face) 17986 17988 nil 17988 17989 (face font-lock-string-face) 17989 18003 (face font-lock-type-face) 18003 18004 (face font-lock-string-face) 18004 18012 nil 18012 18013 (face font-lock-string-face) 18013 18025 (face font-lock-keyword-face) 18025 18026 (face font-lock-string-face) 18026 18038 nil 18038 18039 (face font-lock-string-face) 18039 18041 (face font-lock-constant-face) 18041 18042 (face font-lock-string-face) 18042 18059 nil 18059 18060 (face font-lock-string-face) 18060 18067 (face font-lock-keyword-face) 18067 18068 (face font-lock-string-face) 18068 18080 nil 18080 18081 (face font-lock-string-face) 18081 18114 (face font-lock-constant-face) 18114 18115 (face font-lock-string-face) 18115 18125 nil 18125 18126 (face font-lock-string-face) 18126 18162 (face font-lock-constant-face) 18162 18163 (face font-lock-string-face) 18163 18173 nil 18173 18174 (face font-lock-string-face) 18174 18212 (face font-lock-constant-face) 18212 18213 (face font-lock-string-face) 18213 18223 nil 18223 18224 (face font-lock-string-face) 18224 18261 (face font-lock-constant-face) 18261 18262 (face font-lock-string-face) 18262 18272 nil 18272 18273 (face font-lock-string-face) 18273 18311 (face font-lock-constant-face) 18311 18312 (face font-lock-string-face) 18312 18322 nil 18322 18323 (face font-lock-string-face) 18323 18356 (face font-lock-constant-face) 18356 18357 (face font-lock-string-face) 18357 18367 nil 18367 18368 (face font-lock-string-face) 18368 18403 (face font-lock-constant-face) 18403 18404 (face font-lock-string-face) 18404 18414 nil 18414 18415 (face font-lock-string-face) 18415 18451 (face font-lock-constant-face) 18451 18452 (face font-lock-string-face) 18452 18462 nil 18462 18463 (face font-lock-string-face) 18463 18499 (face font-lock-constant-face) 18499 18500 (face font-lock-string-face) 18500 18510 nil 18510 18511 (face font-lock-string-face) 18511 18547 (face font-lock-constant-face) 18547 18548 (face font-lock-string-face) 18548 18558 nil 18558 18559 (face font-lock-string-face) 18559 18581 (face font-lock-constant-face) 18581 18582 (face font-lock-string-face) 18582 18592 nil 18592 18593 (face font-lock-string-face) 18593 18618 (face font-lock-constant-face) 18618 18619 (face font-lock-string-face) 18619 18629 nil 18629 18630 (face font-lock-string-face) 18630 18657 (face font-lock-constant-face) 18657 18658 (face font-lock-string-face) 18658 18668 nil 18668 18669 (face font-lock-string-face) 18669 18697 (face font-lock-constant-face) 18697 18698 (face font-lock-string-face) 18698 18708 nil 18708 18709 (face font-lock-string-face) 18709 18750 (face font-lock-constant-face) 18750 18751 (face font-lock-string-face) 18751 18761 nil 18761 18762 (face font-lock-string-face) 18762 18803 (face font-lock-constant-face) 18803 18804 (face font-lock-string-face) 18804 18814 nil 18814 18815 (face font-lock-string-face) 18815 18856 (face font-lock-constant-face) 18856 18857 (face font-lock-string-face) 18857 18867 nil 18867 18868 (face font-lock-string-face) 18868 18902 (face font-lock-constant-face) 18902 18903 (face font-lock-string-face) 18903 18913 nil 18913 18914 (face font-lock-string-face) 18914 18948 (face font-lock-constant-face) 18948 18949 (face font-lock-string-face) 18949 18959 nil 18959 18960 (face font-lock-string-face) 18960 18994 (face font-lock-constant-face) 18994 18995 (face font-lock-string-face) 18995 19005 nil 19005 19006 (face font-lock-string-face) 19006 19035 (face font-lock-constant-face) 19035 19036 (face font-lock-string-face) 19036 19046 nil 19046 19047 (face font-lock-string-face) 19047 19075 (face font-lock-constant-face) 19075 19076 (face font-lock-string-face) 19076 19093 nil 19093 19094 (face font-lock-string-face) 19094 19104 (face font-lock-keyword-face) 19104 19105 (face font-lock-string-face) 19105 19118 nil 19118 19119 (face font-lock-string-face) 19119 19139 (face font-lock-variable-name-face) 19139 19140 (face font-lock-string-face) 19140 19154 nil 19154 19155 (face font-lock-string-face) 19155 19172 (face font-lock-keyword-face) 19172 19173 (face font-lock-string-face) 19173 19191 nil 19191 19192 (face font-lock-string-face) 19192 19210 (face font-lock-variable-name-face) 19210 19211 (face font-lock-string-face) 19211 19229 nil 19229 19230 (face font-lock-string-face) 19230 19237 (face font-lock-keyword-face) 19237 19238 (face font-lock-string-face) 19238 19242 nil 19242 19266 (face font-lock-string-face) 19266 19321 nil 19321 19322 (face font-lock-string-face) 19322 19342 (face font-lock-variable-name-face) 19342 19343 (face font-lock-string-face) 19343 19357 nil 19357 19399 (face font-lock-comment-face) 19399 19409 nil 19409 19410 (face font-lock-string-face) 19410 19417 (face font-lock-keyword-face) 19417 19418 (face font-lock-string-face) 19418 19434 nil 19434 19435 (face font-lock-string-face) 19435 19480 (face font-lock-constant-face) 19480 19481 (face font-lock-string-face) 19481 19495 nil 19495 19496 (face font-lock-string-face) 19496 19535 (face font-lock-constant-face) 19535 19536 (face font-lock-string-face) 19536 19573 nil 19573 19574 (face font-lock-string-face) 19574 19623 (face font-lock-variable-name-face) 19623 19624 (face font-lock-string-face) 19624 19638 nil 19638 19639 (face font-lock-string-face) 19639 19645 (face font-lock-keyword-face) 19645 19646 (face font-lock-string-face) 19646 19662 nil 19662 19670 (face font-lock-string-face) 19670 19707 nil 19707 19708 (face font-lock-string-face) 19708 19719 (face font-lock-variable-name-face) 19719 19720 (face font-lock-string-face) 19720 19734 nil 19734 19735 (face font-lock-string-face) 19735 19749 (face font-lock-keyword-face) 19749 19750 (face font-lock-string-face) 19750 19766 nil 19766 19773 (face font-lock-string-face) 19773 19791 nil 19791 19792 (face font-lock-string-face) 19792 19806 (face font-lock-keyword-face) 19806 19807 (face font-lock-string-face) 19807 19827 nil 19827 19890 (face font-lock-comment-face) 19890 19906 nil 19906 19971 (face font-lock-comment-face) 19971 19987 nil 19987 20032 (face font-lock-comment-face) 20032 20048 nil 20048 20072 (face font-lock-string-face) 20072 20074 nil 20074 20077 (face font-lock-string-face) 20077 20080 nil 20080 20086 (face font-lock-comment-face) 20086 20155 nil 20155 20156 (face font-lock-string-face) 20156 20165 (face font-lock-variable-name-face) 20165 20166 (face font-lock-string-face) 20166 20180 nil 20180 20181 (face font-lock-string-face) 20181 20190 (face font-lock-keyword-face) 20190 20191 (face font-lock-string-face) 20191 20207 nil 20207 20208 (face font-lock-string-face) 20208 20218 (face font-lock-variable-name-face) 20218 20219 (face font-lock-string-face) 20219 20237 nil 20237 20246 (face font-lock-string-face) 20246 20262 nil 20262 20270 (face font-lock-string-face) 20270 20286 nil 20286 20298 (face font-lock-string-face) 20298 20314 nil 20314 20322 (face font-lock-string-face) 20322 20374 nil 20374 20375 (face font-lock-string-face) 20375 20384 (face font-lock-variable-name-face) 20384 20385 (face font-lock-string-face) 20385 20399 nil 20399 20400 (face font-lock-string-face) 20400 20409 (face font-lock-keyword-face) 20409 20410 (face font-lock-string-face) 20410 20426 nil 20426 20427 (face font-lock-string-face) 20427 20437 (face font-lock-variable-name-face) 20437 20438 (face font-lock-string-face) 20438 20456 nil 20456 20466 (face font-lock-string-face) 20466 20482 nil 20482 20491 (face font-lock-string-face) 20491 20507 nil 20507 20519 (face font-lock-string-face) 20519 20535 nil 20535 20543 (face font-lock-string-face) 20543 20595 nil 20595 20596 (face font-lock-string-face) 20596 20621 (face font-lock-variable-name-face) 20621 20622 (face font-lock-string-face) 20622 20636 nil 20636 20637 (face font-lock-string-face) 20637 20646 (face font-lock-keyword-face) 20646 20647 (face font-lock-string-face) 20647 20663 nil 20663 20664 (face font-lock-string-face) 20664 20674 (face font-lock-keyword-face) 20674 20675 (face font-lock-string-face) 20675 20695 nil 20695 20696 (face font-lock-string-face) 20696 20715 (face font-lock-variable-name-face) 20715 20716 (face font-lock-string-face) 20716 20736 nil 20736 20748 (face font-lock-string-face) 20748 20770 nil 20770 20780 (face font-lock-string-face) 20780 20800 nil 20800 20807 (face font-lock-string-face) 20807 20827 nil 20827 20839 (face font-lock-string-face) 20839 20859 nil 20859 20867 (face font-lock-string-face) 20867 20923 nil 20923 20935 (face font-lock-string-face) 20935 20957 nil 20957 20972 (face font-lock-string-face) 20972 20992 nil 20992 20999 (face font-lock-string-face) 20999 21019 nil 21019 21026 (face font-lock-string-face) 21026 21046 nil 21046 21058 (face font-lock-string-face) 21058 21078 nil 21078 21086 (face font-lock-string-face) 21086 21180 nil 21180 21181 (face font-lock-string-face) 21181 21190 (face font-lock-keyword-face) 21190 21191 (face font-lock-string-face) 21191 21203 nil 21203 21204 (face font-lock-string-face) 21204 21220 (face font-lock-variable-name-face) 21220 21221 (face font-lock-string-face) 21221 21223 nil 21223 21224 (face font-lock-string-face) 21224 21256 (face font-lock-variable-name-face) 21256 21257 (face font-lock-string-face) 21257 21274 nil 21274 21314 (face font-lock-string-face) 21314 21325 nil 21325 21326 (face font-lock-string-face) 21326 21334 (face font-lock-keyword-face) 21334 21335 (face font-lock-string-face) 21335 21347 nil 21347 21348 (face font-lock-string-face) 21348 21385 (face font-lock-constant-face) 21385 21386 (face font-lock-string-face) 21386 21416 nil 21416 21417 (face font-lock-string-face) 21417 21428 (face font-lock-keyword-face) 21428 21429 (face font-lock-string-face) 21429 21431 nil 21431 21432 (face font-lock-string-face) 21432 21452 (face font-lock-function-name-face) 21452 21453 (face font-lock-string-face) 21453 21461 nil 21461 21462 (face font-lock-string-face) 21462 21466 (face font-lock-keyword-face) 21466 21467 (face font-lock-string-face) 21467 21469 nil 21469 21470 (face font-lock-string-face) 21470 21484 (face font-lock-type-face) 21484 21485 (face font-lock-string-face) 21485 21493 nil 21493 21494 (face font-lock-string-face) 21494 21506 (face font-lock-keyword-face) 21506 21507 (face font-lock-string-face) 21507 21519 nil 21519 21520 (face font-lock-string-face) 21520 21522 (face font-lock-constant-face) 21522 21523 (face font-lock-string-face) 21523 21540 nil 21540 21541 (face font-lock-string-face) 21541 21548 (face font-lock-keyword-face) 21548 21549 (face font-lock-string-face) 21549 21561 nil 21561 21562 (face font-lock-string-face) 21562 21595 (face font-lock-constant-face) 21595 21596 (face font-lock-string-face) 21596 21606 nil 21606 21607 (face font-lock-string-face) 21607 21637 (face font-lock-constant-face) 21637 21638 (face font-lock-string-face) 21638 21648 nil 21648 21649 (face font-lock-string-face) 21649 21682 (face font-lock-constant-face) 21682 21683 (face font-lock-string-face) 21683 21693 nil 21693 21694 (face font-lock-string-face) 21694 21724 (face font-lock-constant-face) 21724 21725 (face font-lock-string-face) 21725 21735 nil 21735 21736 (face font-lock-string-face) 21736 21758 (face font-lock-constant-face) 21758 21759 (face font-lock-string-face) 21759 21769 nil 21769 21770 (face font-lock-string-face) 21770 21795 (face font-lock-constant-face) 21795 21796 (face font-lock-string-face) 21796 21806 nil 21806 21807 (face font-lock-string-face) 21807 21836 (face font-lock-constant-face) 21836 21837 (face font-lock-string-face) 21837 21847 nil 21847 21848 (face font-lock-string-face) 21848 21876 (face font-lock-constant-face) 21876 21877 (face font-lock-string-face) 21877 21907 nil 21907 21908 (face font-lock-string-face) 21908 21919 (face font-lock-keyword-face) 21919 21920 (face font-lock-string-face) 21920 21922 nil 21922 21923 (face font-lock-string-face) 21923 21938 (face font-lock-function-name-face) 21938 21939 (face font-lock-string-face) 21939 21947 nil 21947 21948 (face font-lock-string-face) 21948 21952 (face font-lock-keyword-face) 21952 21953 (face font-lock-string-face) 21953 21955 nil 21955 21956 (face font-lock-string-face) 21956 21966 (face font-lock-type-face) 21966 21967 (face font-lock-string-face) 21967 21975 nil 21975 21976 (face font-lock-string-face) 21976 21988 (face font-lock-keyword-face) 21988 21989 (face font-lock-string-face) 21989 22001 nil 22001 22002 (face font-lock-string-face) 22002 22007 (face font-lock-function-name-face) 22007 22008 (face font-lock-string-face) 22008 22018 nil 22018 22019 (face font-lock-string-face) 22019 22037 (face font-lock-function-name-face) 22037 22038 (face font-lock-string-face) 22038 22048 nil 22048 22049 (face font-lock-string-face) 22049 22060 (face font-lock-function-name-face) 22060 22061 (face font-lock-string-face) 22061 22071 nil 22071 22072 (face font-lock-string-face) 22072 22093 (face font-lock-function-name-face) 22093 22094 (face font-lock-string-face) 22094 22104 nil 22104 22105 (face font-lock-string-face) 22105 22131 (face font-lock-function-name-face) 22131 22132 (face font-lock-string-face) 22132 22142 nil 22142 22143 (face font-lock-string-face) 22143 22177 (face font-lock-function-name-face) 22177 22178 (face font-lock-string-face) 22178 22188 nil 22188 22189 (face font-lock-string-face) 22189 22215 (face font-lock-function-name-face) 22215 22216 (face font-lock-string-face) 22216 22226 nil 22226 22227 (face font-lock-string-face) 22227 22253 (face font-lock-function-name-face) 22253 22254 (face font-lock-string-face) 22254 22264 nil 22264 22265 (face font-lock-string-face) 22265 22280 (face font-lock-function-name-face) 22280 22281 (face font-lock-string-face) 22281 22298 nil 22298 22299 (face font-lock-string-face) 22299 22306 (face font-lock-keyword-face) 22306 22307 (face font-lock-string-face) 22307 22319 nil 22319 22320 (face font-lock-string-face) 22320 22361 (face font-lock-constant-face) 22361 22362 (face font-lock-string-face) 22362 22372 nil 22372 22373 (face font-lock-string-face) 22373 22413 (face font-lock-constant-face) 22413 22414 (face font-lock-string-face) 22414 22424 nil 22424 22425 (face font-lock-string-face) 22425 22461 (face font-lock-constant-face) 22461 22462 (face font-lock-string-face) 22462 22472 nil 22472 22473 (face font-lock-string-face) 22473 22502 (face font-lock-constant-face) 22502 22503 (face font-lock-string-face) 22503 22513 nil 22513 22514 (face font-lock-string-face) 22514 22550 (face font-lock-constant-face) 22550 22551 (face font-lock-string-face) 22551 22561 nil 22561 22562 (face font-lock-string-face) 22562 22610 (face font-lock-constant-face) 22610 22611 (face font-lock-string-face) 22611 22621 nil 22621 22622 (face font-lock-string-face) 22622 22663 (face font-lock-constant-face) 22663 22664 (face font-lock-string-face) 22664 22674 nil 22674 22675 (face font-lock-string-face) 22675 22711 (face font-lock-constant-face) 22711 22712 (face font-lock-string-face) 22712 22722 nil 22722 22723 (face font-lock-string-face) 22723 22757 (face font-lock-constant-face) 22757 22758 (face font-lock-string-face) 22758 22768 nil 22768 22769 (face font-lock-string-face) 22769 22797 (face font-lock-constant-face) 22797 22798 (face font-lock-string-face) 22798 22808 nil 22808 22809 (face font-lock-string-face) 22809 22853 (face font-lock-constant-face) 22853 22854 (face font-lock-string-face) 22854 22864 nil 22864 22865 (face font-lock-string-face) 22865 22900 (face font-lock-constant-face) 22900 22901 (face font-lock-string-face) 22901 22911 nil 22911 22912 (face font-lock-string-face) 22912 22961 (face font-lock-constant-face) 22961 22962 (face font-lock-string-face) 22962 22972 nil 22972 22973 (face font-lock-string-face) 22973 23011 (face font-lock-constant-face) 23011 23012 (face font-lock-string-face) 23012 23022 nil 23022 23023 (face font-lock-string-face) 23023 23055 (face font-lock-constant-face) 23055 23056 (face font-lock-string-face) 23056 23066 nil 23066 23067 (face font-lock-string-face) 23067 23116 (face font-lock-constant-face) 23116 23117 (face font-lock-string-face) 23117 23127 nil 23127 23128 (face font-lock-string-face) 23128 23178 (face font-lock-constant-face) 23178 23179 (face font-lock-string-face) 23179 23189 nil 23189 23190 (face font-lock-string-face) 23190 23228 (face font-lock-constant-face) 23228 23229 (face font-lock-string-face) 23229 23239 nil 23239 23240 (face font-lock-string-face) 23240 23277 (face font-lock-constant-face) 23277 23278 (face font-lock-string-face) 23278 23288 nil 23288 23289 (face font-lock-string-face) 23289 23332 (face font-lock-constant-face) 23332 23333 (face font-lock-string-face) 23333 23343 nil 23343 23344 (face font-lock-string-face) 23344 23368 (face font-lock-constant-face) 23368 23369 (face font-lock-string-face) 23369 23379 nil 23379 23380 (face font-lock-string-face) 23380 23402 (face font-lock-constant-face) 23402 23403 (face font-lock-string-face) 23403 23413 nil 23413 23414 (face font-lock-string-face) 23414 23447 (face font-lock-constant-face) 23447 23448 (face font-lock-string-face) 23448 23458 nil 23458 23459 (face font-lock-string-face) 23459 23487 (face font-lock-constant-face) 23487 23488 (face font-lock-string-face) 23488 23498 nil 23498 23499 (face font-lock-string-face) 23499 23530 (face font-lock-constant-face) 23530 23531 (face font-lock-string-face) 23531 23541 nil 23541 23542 (face font-lock-string-face) 23542 23563 (face font-lock-constant-face) 23563 23564 (face font-lock-string-face) 23564 23574 nil 23574 23575 (face font-lock-string-face) 23575 23609 (face font-lock-constant-face) 23609 23610 (face font-lock-string-face) 23610 23620 nil 23620 23621 (face font-lock-string-face) 23621 23654 (face font-lock-constant-face) 23654 23655 (face font-lock-string-face) 23655 23665 nil 23665 23666 (face font-lock-string-face) 23666 23700 (face font-lock-constant-face) 23700 23701 (face font-lock-string-face) 23701 23711 nil 23711 23712 (face font-lock-string-face) 23712 23753 (face font-lock-constant-face) 23753 23754 (face font-lock-string-face) 23754 23764 nil 23764 23765 (face font-lock-string-face) 23765 23790 (face font-lock-constant-face) 23790 23791 (face font-lock-string-face) 23791 23801 nil 23801 23802 (face font-lock-string-face) 23802 23825 (face font-lock-constant-face) 23825 23826 (face font-lock-string-face) 23826 23836 nil 23836 23837 (face font-lock-string-face) 23837 23862 (face font-lock-constant-face) 23862 23863 (face font-lock-string-face) 23863 23873 nil 23873 23874 (face font-lock-string-face) 23874 23906 (face font-lock-constant-face) 23906 23907 (face font-lock-string-face) 23907 23917 nil 23917 23918 (face font-lock-string-face) 23918 23947 (face font-lock-constant-face) 23947 23948 (face font-lock-string-face) 23948 23958 nil 23958 23959 (face font-lock-string-face) 23959 23981 (face font-lock-constant-face) 23981 23982 (face font-lock-string-face) 23982 23992 nil 23992 23993 (face font-lock-string-face) 23993 24014 (face font-lock-constant-face) 24014 24015 (face font-lock-string-face) 24015 24025 nil 24025 24026 (face font-lock-string-face) 24026 24054 (face font-lock-constant-face) 24054 24055 (face font-lock-string-face) 24055 24065 nil 24065 24066 (face font-lock-string-face) 24066 24093 (face font-lock-constant-face) 24093 24094 (face font-lock-string-face) 24094 24104 nil 24104 24105 (face font-lock-string-face) 24105 24133 (face font-lock-constant-face) 24133 24134 (face font-lock-string-face) 24134 24144 nil 24144 24145 (face font-lock-string-face) 24145 24177 (face font-lock-constant-face) 24177 24178 (face font-lock-string-face) 24178 24188 nil 24188 24189 (face font-lock-string-face) 24189 24221 (face font-lock-constant-face) 24221 24222 (face font-lock-string-face) 24222 24232 nil 24232 24233 (face font-lock-string-face) 24233 24277 (face font-lock-constant-face) 24277 24278 (face font-lock-string-face) 24278 24288 nil 24288 24289 (face font-lock-string-face) 24289 24328 (face font-lock-constant-face) 24328 24329 (face font-lock-string-face) 24329 24339 nil 24339 24340 (face font-lock-string-face) 24340 24379 (face font-lock-constant-face) 24379 24380 (face font-lock-string-face) 24380 24390 nil 24390 24391 (face font-lock-string-face) 24391 24424 (face font-lock-constant-face) 24424 24425 (face font-lock-string-face) 24425 24435 nil 24435 24436 (face font-lock-string-face) 24436 24476 (face font-lock-constant-face) 24476 24477 (face font-lock-string-face) 24477 24487 nil 24487 24488 (face font-lock-string-face) 24488 24521 (face font-lock-constant-face) 24521 24522 (face font-lock-string-face) 24522 24532 nil 24532 24533 (face font-lock-string-face) 24533 24567 (face font-lock-constant-face) 24567 24568 (face font-lock-string-face) 24568 24578 nil 24578 24579 (face font-lock-string-face) 24579 24610 (face font-lock-constant-face) 24610 24611 (face font-lock-string-face) 24611 24621 nil 24621 24622 (face font-lock-string-face) 24622 24673 (face font-lock-constant-face) 24673 24674 (face font-lock-string-face) 24674 24684 nil 24684 24685 (face font-lock-string-face) 24685 24725 (face font-lock-constant-face) 24725 24726 (face font-lock-string-face) 24726 24736 nil 24736 24737 (face font-lock-string-face) 24737 24773 (face font-lock-constant-face) 24773 24774 (face font-lock-string-face) 24774 24784 nil 24784 24785 (face font-lock-string-face) 24785 24821 (face font-lock-constant-face) 24821 24822 (face font-lock-string-face) 24822 24832 nil 24832 24833 (face font-lock-string-face) 24833 24874 (face font-lock-constant-face) 24874 24875 (face font-lock-string-face) 24875 24885 nil 24885 24886 (face font-lock-string-face) 24886 24926 (face font-lock-constant-face) 24926 24927 (face font-lock-string-face) 24927 24937 nil 24937 24938 (face font-lock-string-face) 24938 24977 (face font-lock-constant-face) 24977 24978 (face font-lock-string-face) 24978 24988 nil 24988 24989 (face font-lock-string-face) 24989 25035 (face font-lock-constant-face) 25035 25036 (face font-lock-string-face) 25036 25046 nil 25046 25047 (face font-lock-string-face) 25047 25070 (face font-lock-constant-face) 25070 25071 (face font-lock-string-face) 25071 25081 nil 25081 25082 (face font-lock-string-face) 25082 25104 (face font-lock-constant-face) 25104 25105 (face font-lock-string-face) 25105 25115 nil 25115 25116 (face font-lock-string-face) 25116 25152 (face font-lock-constant-face) 25152 25153 (face font-lock-string-face) 25153 25163 nil 25163 25164 (face font-lock-string-face) 25164 25210 (face font-lock-constant-face) 25210 25211 (face font-lock-string-face) 25211 25221 nil 25221 25222 (face font-lock-string-face) 25222 25250 (face font-lock-constant-face) 25250 25251 (face font-lock-string-face) 25251 25268 nil 25268 25269 (face font-lock-string-face) 25269 25279 (face font-lock-keyword-face) 25279 25280 (face font-lock-string-face) 25280 25293 nil 25293 25294 (face font-lock-string-face) 25294 25319 (face font-lock-variable-name-face) 25319 25320 (face font-lock-string-face) 25320 25334 nil 25334 25335 (face font-lock-string-face) 25335 25345 (face font-lock-keyword-face) 25345 25346 (face font-lock-string-face) 25346 25363 nil 25363 25364 (face font-lock-string-face) 25364 25385 (face font-lock-variable-name-face) 25385 25386 (face font-lock-string-face) 25386 25404 nil 25404 25405 (face font-lock-string-face) 25405 25417 (face font-lock-keyword-face) 25417 25418 (face font-lock-string-face) 25418 25438 nil 25438 25439 (face font-lock-string-face) 25439 25480 (face font-lock-function-name-face) 25480 25481 (face font-lock-string-face) 25481 25550 nil 25550 25551 (face font-lock-string-face) 25551 25566 (face font-lock-variable-name-face) 25566 25567 (face font-lock-string-face) 25567 25581 nil 25581 25582 (face font-lock-string-face) 25582 25594 (face font-lock-keyword-face) 25594 25595 (face font-lock-string-face) 25595 25611 nil 25611 25612 (face font-lock-string-face) 25612 25651 (face font-lock-function-name-face) 25651 25652 (face font-lock-string-face) 25652 25688 nil 25688 25689 (face font-lock-string-face) 25689 25704 (face font-lock-variable-name-face) 25704 25705 (face font-lock-string-face) 25705 25719 nil 25719 25720 (face font-lock-string-face) 25720 25728 (face font-lock-keyword-face) 25728 25729 (face font-lock-string-face) 25729 25745 nil 25745 25746 (face font-lock-string-face) 25746 25782 (face font-lock-constant-face) 25782 25783 (face font-lock-string-face) 25783 25797 nil 25797 25798 (face font-lock-string-face) 25798 25820 (face font-lock-constant-face) 25820 25821 (face font-lock-string-face) 25821 25835 nil 25835 25836 (face font-lock-string-face) 25836 25857 (face font-lock-constant-face) 25857 25858 (face font-lock-string-face) 25858 25872 nil 25872 25873 (face font-lock-string-face) 25873 25905 (face font-lock-constant-face) 25905 25906 (face font-lock-string-face) 25906 25920 nil 25920 25921 (face font-lock-string-face) 25921 25961 (face font-lock-constant-face) 25961 25962 (face font-lock-string-face) 25962 25976 nil 25976 25977 (face font-lock-string-face) 25977 26016 (face font-lock-constant-face) 26016 26017 (face font-lock-string-face) 26017 26031 nil 26031 26032 (face font-lock-string-face) 26032 26065 (face font-lock-constant-face) 26065 26066 (face font-lock-string-face) 26066 26080 nil 26080 26081 (face font-lock-string-face) 26081 26115 (face font-lock-constant-face) 26115 26116 (face font-lock-string-face) 26116 26130 nil 26130 26131 (face font-lock-string-face) 26131 26162 (face font-lock-constant-face) 26162 26163 (face font-lock-string-face) 26163 26177 nil 26177 26178 (face font-lock-string-face) 26178 26229 (face font-lock-constant-face) 26229 26230 (face font-lock-string-face) 26230 26244 nil 26244 26245 (face font-lock-string-face) 26245 26285 (face font-lock-constant-face) 26285 26286 (face font-lock-string-face) 26286 26300 nil 26300 26301 (face font-lock-string-face) 26301 26337 (face font-lock-constant-face) 26337 26338 (face font-lock-string-face) 26338 26352 nil 26352 26353 (face font-lock-string-face) 26353 26394 (face font-lock-constant-face) 26394 26395 (face font-lock-string-face) 26395 26409 nil 26409 26410 (face font-lock-string-face) 26410 26443 (face font-lock-constant-face) 26443 26444 (face font-lock-string-face) 26444 26458 nil 26458 26459 (face font-lock-string-face) 26459 26495 (face font-lock-constant-face) 26495 26496 (face font-lock-string-face) 26496 26532 nil 26532 26533 (face font-lock-string-face) 26533 26546 (face font-lock-variable-name-face) 26546 26547 (face font-lock-string-face) 26547 26561 nil 26561 26562 (face font-lock-string-face) 26562 26572 (face font-lock-keyword-face) 26572 26573 (face font-lock-string-face) 26573 26590 nil 26590 26591 (face font-lock-string-face) 26591 26604 (face font-lock-variable-name-face) 26604 26605 (face font-lock-string-face) 26605 26623 nil 26623 26624 (face font-lock-string-face) 26624 26631 (face font-lock-keyword-face) 26631 26632 (face font-lock-string-face) 26632 26652 nil 26652 26653 (face font-lock-string-face) 26653 26688 (face font-lock-constant-face) 26688 26689 (face font-lock-string-face) 26689 26722 nil 26722 26723 (face font-lock-string-face) 26723 26730 (face font-lock-keyword-face) 26730 26731 (face font-lock-string-face) 26731 26751 nil 26751 26752 (face font-lock-string-face) 26752 26760 (face font-lock-preprocessor-face) 26760 26761 (face font-lock-string-face) 26761 26831 nil 26831 26832 (face font-lock-string-face) 26832 26873 (face font-lock-variable-name-face) 26873 26874 (face font-lock-string-face) 26874 26888 nil 26888 26889 (face font-lock-string-face) 26889 26896 (face font-lock-keyword-face) 26896 26897 (face font-lock-string-face) 26897 26913 nil 26913 26914 (face font-lock-string-face) 26914 26954 (face font-lock-constant-face) 26954 26955 (face font-lock-string-face) 26955 26991 nil 26991 26992 (face font-lock-string-face) 26992 27035 (face font-lock-variable-name-face) 27035 27036 (face font-lock-string-face) 27036 27050 nil 27050 27051 (face font-lock-string-face) 27051 27058 (face font-lock-keyword-face) 27058 27059 (face font-lock-string-face) 27059 27075 nil 27075 27076 (face font-lock-string-face) 27076 27095 (face font-lock-constant-face) 27095 27096 (face font-lock-string-face) 27096 27110 nil 27110 27111 (face font-lock-string-face) 27111 27137 (face font-lock-constant-face) 27137 27138 (face font-lock-string-face) 27138 27152 nil 27152 27153 (face font-lock-string-face) 27153 27186 (face font-lock-constant-face) 27186 27187 (face font-lock-string-face) 27187 27201 nil 27201 27202 (face font-lock-string-face) 27202 27235 (face font-lock-constant-face) 27235 27236 (face font-lock-string-face) 27236 27291 nil 27291 27292 (face font-lock-string-face) 27292 27303 (face font-lock-keyword-face) 27303 27304 (face font-lock-string-face) 27304 27306 nil 27306 27307 (face font-lock-string-face) 27307 27325 (face font-lock-function-name-face) 27325 27326 (face font-lock-string-face) 27326 27334 nil 27334 27335 (face font-lock-string-face) 27335 27339 (face font-lock-keyword-face) 27339 27340 (face font-lock-string-face) 27340 27342 nil 27342 27343 (face font-lock-string-face) 27343 27357 (face font-lock-type-face) 27357 27358 (face font-lock-string-face) 27358 27366 nil 27366 27367 (face font-lock-string-face) 27367 27379 (face font-lock-keyword-face) 27379 27380 (face font-lock-string-face) 27380 27392 nil 27392 27393 (face font-lock-string-face) 27393 27398 (face font-lock-function-name-face) 27398 27399 (face font-lock-string-face) 27399 27409 nil 27409 27410 (face font-lock-string-face) 27410 27431 (face font-lock-function-name-face) 27431 27432 (face font-lock-string-face) 27432 27442 nil 27442 27443 (face font-lock-string-face) 27443 27469 (face font-lock-function-name-face) 27469 27470 (face font-lock-string-face) 27470 27480 nil 27480 27481 (face font-lock-string-face) 27481 27507 (face font-lock-function-name-face) 27507 27508 (face font-lock-string-face) 27508 27525 nil 27525 27526 (face font-lock-string-face) 27526 27533 (face font-lock-keyword-face) 27533 27534 (face font-lock-string-face) 27534 27546 nil 27546 27547 (face font-lock-string-face) 27547 27591 (face font-lock-constant-face) 27591 27592 (face font-lock-string-face) 27592 27602 nil 27602 27603 (face font-lock-string-face) 27603 27646 (face font-lock-constant-face) 27646 27647 (face font-lock-string-face) 27647 27657 nil 27657 27658 (face font-lock-string-face) 27658 27679 (face font-lock-constant-face) 27679 27680 (face font-lock-string-face) 27680 27690 nil 27690 27691 (face font-lock-string-face) 27691 27711 (face font-lock-constant-face) 27711 27712 (face font-lock-string-face) 27712 27722 nil 27722 27723 (face font-lock-string-face) 27723 27752 (face font-lock-constant-face) 27752 27753 (face font-lock-string-face) 27753 27763 nil 27763 27764 (face font-lock-string-face) 27764 27792 (face font-lock-constant-face) 27792 27793 (face font-lock-string-face) 27793 27803 nil 27803 27804 (face font-lock-string-face) 27804 27829 (face font-lock-constant-face) 27829 27830 (face font-lock-string-face) 27830 27840 nil 27840 27841 (face font-lock-string-face) 27841 27865 (face font-lock-constant-face) 27865 27866 (face font-lock-string-face) 27866 27876 nil 27876 27877 (face font-lock-string-face) 27877 27901 (face font-lock-constant-face) 27901 27902 (face font-lock-string-face) 27902 27912 nil 27912 27913 (face font-lock-string-face) 27913 27936 (face font-lock-constant-face) 27936 27937 (face font-lock-string-face) 27937 27947 nil 27947 27948 (face font-lock-string-face) 27948 27968 (face font-lock-constant-face) 27968 27969 (face font-lock-string-face) 27969 27979 nil 27979 27980 (face font-lock-string-face) 27980 27999 (face font-lock-constant-face) 27999 28000 (face font-lock-string-face) 28000 28030 nil 28030 28031 (face font-lock-string-face) 28031 28042 (face font-lock-keyword-face) 28042 28043 (face font-lock-string-face) 28043 28045 nil 28045 28046 (face font-lock-string-face) 28046 28058 (face font-lock-function-name-face) 28058 28059 (face font-lock-string-face) 28059 28067 nil 28067 28068 (face font-lock-string-face) 28068 28072 (face font-lock-keyword-face) 28072 28073 (face font-lock-string-face) 28073 28075 nil 28075 28076 (face font-lock-string-face) 28076 28086 (face font-lock-type-face) 28086 28087 (face font-lock-string-face) 28087 28095 nil 28095 28096 (face font-lock-string-face) 28096 28108 (face font-lock-keyword-face) 28108 28109 (face font-lock-string-face) 28109 28121 nil 28121 28122 (face font-lock-string-face) 28122 28127 (face font-lock-function-name-face) 28127 28128 (face font-lock-string-face) 28128 28138 nil 28138 28139 (face font-lock-string-face) 28139 28150 (face font-lock-function-name-face) 28150 28151 (face font-lock-string-face) 28151 28161 nil 28161 28162 (face font-lock-string-face) 28162 28183 (face font-lock-function-name-face) 28183 28184 (face font-lock-string-face) 28184 28194 nil 28194 28195 (face font-lock-string-face) 28195 28216 (face font-lock-function-name-face) 28216 28217 (face font-lock-string-face) 28217 28234 nil 28234 28235 (face font-lock-string-face) 28235 28242 (face font-lock-keyword-face) 28242 28243 (face font-lock-string-face) 28243 28255 nil 28255 28256 (face font-lock-string-face) 28256 28290 (face font-lock-constant-face) 28290 28291 (face font-lock-string-face) 28291 28321 nil 28321 28322 (face font-lock-string-face) 28322 28333 (face font-lock-keyword-face) 28333 28334 (face font-lock-string-face) 28334 28336 nil 28336 28337 (face font-lock-string-face) 28337 28349 (face font-lock-function-name-face) 28349 28350 (face font-lock-string-face) 28350 28358 nil 28358 28359 (face font-lock-string-face) 28359 28363 (face font-lock-keyword-face) 28363 28364 (face font-lock-string-face) 28364 28366 nil 28366 28367 (face font-lock-string-face) 28367 28377 (face font-lock-type-face) 28377 28378 (face font-lock-string-face) 28378 28386 nil 28386 28387 (face font-lock-string-face) 28387 28394 (face font-lock-keyword-face) 28394 28395 (face font-lock-string-face) 28395 28407 nil 28407 28408 (face font-lock-string-face) 28408 28441 (face font-lock-constant-face) 28441 28442 (face font-lock-string-face) 28442 28471 nil 28471 28472 (face font-lock-string-face) 28472 28483 (face font-lock-keyword-face) 28483 28484 (face font-lock-string-face) 28484 28486 nil 28486 28487 (face font-lock-string-face) 28487 28498 (face font-lock-function-name-face) 28498 28499 (face font-lock-string-face) 28499 28507 nil 28507 28508 (face font-lock-string-face) 28508 28512 (face font-lock-keyword-face) 28512 28513 (face font-lock-string-face) 28513 28515 nil 28515 28516 (face font-lock-string-face) 28516 28526 (face font-lock-type-face) 28526 28527 (face font-lock-string-face) 28527 28535 nil 28535 28536 (face font-lock-string-face) 28536 28548 (face font-lock-keyword-face) 28548 28549 (face font-lock-string-face) 28549 28561 nil 28561 28562 (face font-lock-string-face) 28562 28567 (face font-lock-function-name-face) 28567 28568 (face font-lock-string-face) 28568 28578 nil 28578 28579 (face font-lock-string-face) 28579 28600 (face font-lock-function-name-face) 28600 28601 (face font-lock-string-face) 28601 28618 nil 28618 28619 (face font-lock-string-face) 28619 28626 (face font-lock-keyword-face) 28626 28627 (face font-lock-string-face) 28627 28639 nil 28639 28640 (face font-lock-string-face) 28640 28672 (face font-lock-constant-face) 28672 28673 (face font-lock-string-face) 28673 28698 nil 28698 28699 (face font-lock-string-face) 28699 28709 (face font-lock-keyword-face) 28709 28710 (face font-lock-string-face) 28710 28719 nil 28719 28720 (face font-lock-string-face) 28720 28729 (face font-lock-variable-name-face) 28729 28730 (face font-lock-string-face) 28730 28740 nil 28740 28741 (face font-lock-string-face) 28741 28748 (face font-lock-keyword-face) 28748 28749 (face font-lock-string-face) 28749 28773 nil 28773 28774 (face font-lock-string-face) 28774 28785 (face font-lock-keyword-face) 28785 28786 (face font-lock-string-face) 28786 28788 nil 28788 28789 (face font-lock-string-face) 28789 28799 (face font-lock-function-name-face) 28799 28800 (face font-lock-string-face) 28800 28812 nil 28812 28813 (face font-lock-string-face) 28813 28817 (face font-lock-keyword-face) 28817 28818 (face font-lock-string-face) 28818 28820 nil 28820 28821 (face font-lock-string-face) 28821 28831 (face font-lock-type-face) 28831 28832 (face font-lock-string-face) 28832 28844 nil 28844 28845 (face font-lock-string-face) 28845 28857 (face font-lock-keyword-face) 28857 28858 (face font-lock-string-face) 28858 28874 nil 28874 28875 (face font-lock-string-face) 28875 28880 (face font-lock-function-name-face) 28880 28881 (face font-lock-string-face) 28881 28895 nil 28895 28896 (face font-lock-string-face) 28896 28907 (face font-lock-function-name-face) 28907 28908 (face font-lock-string-face) 28908 28922 nil 28922 28923 (face font-lock-string-face) 28923 28944 (face font-lock-function-name-face) 28944 28945 (face font-lock-string-face) 28945 28959 nil 28959 28960 (face font-lock-string-face) 28960 29043 (face font-lock-function-name-face) 29043 29044 (face font-lock-string-face) 29044 29058 nil 29058 29059 (face font-lock-string-face) 29059 29074 (face font-lock-function-name-face) 29074 29075 (face font-lock-string-face) 29075 29100 nil 29100 29101 (face font-lock-string-face) 29101 29113 (face font-lock-keyword-face) 29113 29114 (face font-lock-string-face) 29114 29130 nil 29130 29131 (face font-lock-string-face) 29131 29133 (face font-lock-constant-face) 29133 29138 (face font-lock-variable-name-face) 29138 29163 (face font-lock-constant-face) 29163 29164 (face font-lock-string-face) 29164 29189 nil 29189 29190 (face font-lock-string-face) 29190 29197 (face font-lock-keyword-face) 29197 29198 (face font-lock-string-face) 29198 29214 nil 29214 29215 (face font-lock-string-face) 29215 29238 (face font-lock-constant-face) 29238 29239 (face font-lock-string-face) 29239 29253 nil 29253 29254 (face font-lock-string-face) 29254 29280 (face font-lock-constant-face) 29280 29281 (face font-lock-string-face) 29281 29295 nil 29295 29296 (face font-lock-string-face) 29296 29321 (face font-lock-constant-face) 29321 29322 (face font-lock-string-face) 29322 29336 nil 29336 29337 (face font-lock-string-face) 29337 29361 (face font-lock-constant-face) 29361 29362 (face font-lock-string-face) 29362 29376 nil 29376 29377 (face font-lock-string-face) 29377 29407 (face font-lock-constant-face) 29407 29408 (face font-lock-string-face) 29408 29422 nil 29422 29423 (face font-lock-string-face) 29423 29453 (face font-lock-constant-face) 29453 29454 (face font-lock-string-face) 29454 29468 nil 29468 29469 (face font-lock-string-face) 29469 29493 (face font-lock-constant-face) 29493 29494 (face font-lock-string-face) 29494 29508 nil 29508 29509 (face font-lock-string-face) 29509 29532 (face font-lock-constant-face) 29532 29533 (face font-lock-string-face) 29533 29547 nil 29547 29548 (face font-lock-string-face) 29548 29575 (face font-lock-constant-face) 29575 29576 (face font-lock-string-face) 29576 29590 nil 29590 29591 (face font-lock-string-face) 29591 29614 (face font-lock-constant-face) 29614 29615 (face font-lock-string-face) 29615 29640 nil 29640 29655 (face font-lock-string-face) 29655 29671 nil 29671 29685 (face font-lock-string-face) 29685 29703 nil 29703 29714 (face font-lock-string-face) 29714 29716 nil 29716 29719 (face font-lock-string-face) 29719 29729 nil 29729 29754 (face font-lock-comment-face) 29754 29792 nil 29792 29793 (face font-lock-string-face) 29793 29800 (face font-lock-keyword-face) 29800 29801 (face font-lock-string-face) 29801 29817 nil 29817 29818 (face font-lock-string-face) 29818 29843 (face font-lock-preprocessor-face) 29843 29844 (face font-lock-string-face) 29844 29892 nil 29892 29893 (face font-lock-string-face) 29893 29929 (face font-lock-variable-name-face) 29929 29930 (face font-lock-string-face) 29930 29940 nil 29940 29941 (face font-lock-string-face) 29941 29948 (face font-lock-keyword-face) 29948 29949 (face font-lock-string-face) 29949 29973 nil 29973 29974 (face font-lock-string-face) 29974 29985 (face font-lock-keyword-face) 29985 29986 (face font-lock-string-face) 29986 29988 nil 29988 29989 (face font-lock-string-face) 29989 30001 (face font-lock-function-name-face) 30001 30002 (face font-lock-string-face) 30002 30014 nil 30014 30015 (face font-lock-string-face) 30015 30019 (face font-lock-keyword-face) 30019 30020 (face font-lock-string-face) 30020 30022 nil 30022 30023 (face font-lock-string-face) 30023 30033 (face font-lock-type-face) 30033 30034 (face font-lock-string-face) 30034 30046 nil 30046 30047 (face font-lock-string-face) 30047 30059 (face font-lock-keyword-face) 30059 30060 (face font-lock-string-face) 30060 30076 nil 30076 30077 (face font-lock-string-face) 30077 30082 (face font-lock-function-name-face) 30082 30083 (face font-lock-string-face) 30083 30097 nil 30097 30098 (face font-lock-string-face) 30098 30109 (face font-lock-function-name-face) 30109 30110 (face font-lock-string-face) 30110 30124 nil 30124 30125 (face font-lock-string-face) 30125 30146 (face font-lock-function-name-face) 30146 30147 (face font-lock-string-face) 30147 30161 nil 30161 30162 (face font-lock-string-face) 30162 30180 (face font-lock-function-name-face) 30180 30181 (face font-lock-string-face) 30181 30206 nil 30206 30207 (face font-lock-string-face) 30207 30214 (face font-lock-keyword-face) 30214 30215 (face font-lock-string-face) 30215 30231 nil 30231 30232 (face font-lock-string-face) 30232 30266 (face font-lock-constant-face) 30266 30267 (face font-lock-string-face) 30267 30281 nil 30281 30282 (face font-lock-string-face) 30282 30321 (face font-lock-constant-face) 30321 30322 (face font-lock-string-face) 30322 30336 nil 30336 30337 (face font-lock-string-face) 30337 30375 (face font-lock-constant-face) 30375 30376 (face font-lock-string-face) 30376 30390 nil 30390 30391 (face font-lock-string-face) 30391 30430 (face font-lock-constant-face) 30430 30431 (face font-lock-string-face) 30431 30445 nil 30445 30446 (face font-lock-string-face) 30446 30484 (face font-lock-constant-face) 30484 30485 (face font-lock-string-face) 30485 30499 nil 30499 30500 (face font-lock-string-face) 30500 30533 (face font-lock-constant-face) 30533 30534 (face font-lock-string-face) 30534 30548 nil 30548 30549 (face font-lock-string-face) 30549 30581 (face font-lock-constant-face) 30581 30582 (face font-lock-string-face) 30582 30596 nil 30596 30597 (face font-lock-string-face) 30597 30626 (face font-lock-constant-face) 30626 30627 (face font-lock-string-face) 30627 30641 nil 30641 30642 (face font-lock-string-face) 30642 30670 (face font-lock-constant-face) 30670 30671 (face font-lock-string-face) 30671 30685 nil 30685 30686 (face font-lock-string-face) 30686 30714 (face font-lock-constant-face) 30714 30715 (face font-lock-string-face) 30715 30729 nil 30729 30730 (face font-lock-string-face) 30730 30757 (face font-lock-constant-face) 30757 30758 (face font-lock-string-face) 30758 30783 nil 30783 30784 (face font-lock-string-face) 30784 30794 (face font-lock-keyword-face) 30794 30795 (face font-lock-string-face) 30795 30812 nil 30812 30813 (face font-lock-string-face) 30813 30834 (face font-lock-variable-name-face) 30834 30835 (face font-lock-string-face) 30835 30853 nil 30853 30854 (face font-lock-string-face) 30854 30866 (face font-lock-keyword-face) 30866 30867 (face font-lock-string-face) 30867 30887 nil 30887 30888 (face font-lock-string-face) 30888 30917 (face font-lock-function-name-face) 30917 30918 (face font-lock-string-face) 30918 30951 nil 30951 30952 (face font-lock-string-face) 30952 30959 (face font-lock-keyword-face) 30959 30960 (face font-lock-string-face) 30960 30980 nil 30980 30981 (face font-lock-string-face) 30981 31015 (face font-lock-constant-face) 31015 31016 (face font-lock-string-face) 31016 31064 nil 31064 31065 (face font-lock-string-face) 31065 31074 (face font-lock-variable-name-face) 31074 31075 (face font-lock-string-face) 31075 31093 nil 31093 31094 (face font-lock-string-face) 31094 31106 (face font-lock-keyword-face) 31106 31107 (face font-lock-string-face) 31107 31127 nil 31127 31128 (face font-lock-string-face) 31128 31175 (face font-lock-function-name-face) 31175 31176 (face font-lock-string-face) 31176 31194 nil 31194 31195 (face font-lock-string-face) 31195 31245 (face font-lock-function-name-face) 31245 31246 (face font-lock-string-face) 31246 31279 nil 31279 31280 (face font-lock-string-face) 31280 31287 (face font-lock-keyword-face) 31287 31288 (face font-lock-string-face) 31288 31308 nil 31308 31309 (face font-lock-string-face) 31309 31341 (face font-lock-constant-face) 31341 31342 (face font-lock-string-face) 31342 31423 nil 31423 31424 (face font-lock-string-face) 31424 31462 (face font-lock-variable-name-face) 31462 31463 (face font-lock-string-face) 31463 31473 nil 31473 31474 (face font-lock-string-face) 31474 31481 (face font-lock-keyword-face) 31481 31482 (face font-lock-string-face) 31482 31506 nil 31506 31507 (face font-lock-string-face) 31507 31518 (face font-lock-keyword-face) 31518 31519 (face font-lock-string-face) 31519 31521 nil 31521 31522 (face font-lock-string-face) 31522 31539 (face font-lock-function-name-face) 31539 31540 (face font-lock-string-face) 31540 31552 nil 31552 31553 (face font-lock-string-face) 31553 31557 (face font-lock-keyword-face) 31557 31558 (face font-lock-string-face) 31558 31560 nil 31560 31561 (face font-lock-string-face) 31561 31571 (face font-lock-type-face) 31571 31572 (face font-lock-string-face) 31572 31584 nil 31584 31585 (face font-lock-string-face) 31585 31597 (face font-lock-keyword-face) 31597 31598 (face font-lock-string-face) 31598 31614 nil 31614 31615 (face font-lock-string-face) 31615 31636 (face font-lock-function-name-face) 31636 31637 (face font-lock-string-face) 31637 31651 nil 31651 31652 (face font-lock-string-face) 31652 31670 (face font-lock-function-name-face) 31670 31671 (face font-lock-string-face) 31671 31696 nil 31696 31697 (face font-lock-string-face) 31697 31706 (face font-lock-keyword-face) 31706 31707 (face font-lock-string-face) 31707 31723 nil 31723 31724 (face font-lock-string-face) 31724 31728 (face font-lock-constant-face) 31728 31729 (face font-lock-string-face) 31729 31743 nil 31743 31744 (face font-lock-string-face) 31744 31748 (face font-lock-constant-face) 31748 31749 (face font-lock-string-face) 31749 31774 nil 31774 31775 (face font-lock-string-face) 31775 31782 (face font-lock-keyword-face) 31782 31783 (face font-lock-string-face) 31783 31799 nil 31799 31800 (face font-lock-string-face) 31800 31844 (face font-lock-constant-face) 31844 31845 (face font-lock-string-face) 31845 31893 nil 31893 31894 (face font-lock-string-face) 31894 31943 (face font-lock-variable-name-face) 31943 31944 (face font-lock-string-face) 31944 31954 nil 31954 31955 (face font-lock-string-face) 31955 31962 (face font-lock-keyword-face) 31962 31963 (face font-lock-string-face) 31963 31987 nil 31987 31988 (face font-lock-string-face) 31988 31999 (face font-lock-keyword-face) 31999 32000 (face font-lock-string-face) 32000 32002 nil 32002 32003 (face font-lock-string-face) 32003 32013 (face font-lock-function-name-face) 32013 32014 (face font-lock-string-face) 32014 32026 nil 32026 32027 (face font-lock-string-face) 32027 32031 (face font-lock-keyword-face) 32031 32032 (face font-lock-string-face) 32032 32034 nil 32034 32035 (face font-lock-string-face) 32035 32045 (face font-lock-type-face) 32045 32046 (face font-lock-string-face) 32046 32058 nil 32058 32059 (face font-lock-string-face) 32059 32071 (face font-lock-keyword-face) 32071 32072 (face font-lock-string-face) 32072 32088 nil 32088 32089 (face font-lock-string-face) 32089 32094 (face font-lock-function-name-face) 32094 32095 (face font-lock-string-face) 32095 32109 nil 32109 32110 (face font-lock-string-face) 32110 32121 (face font-lock-function-name-face) 32121 32122 (face font-lock-string-face) 32122 32136 nil 32136 32137 (face font-lock-string-face) 32137 32158 (face font-lock-function-name-face) 32158 32159 (face font-lock-string-face) 32159 32173 nil 32173 32174 (face font-lock-string-face) 32174 32192 (face font-lock-function-name-face) 32192 32193 (face font-lock-string-face) 32193 32218 nil 32218 32219 (face font-lock-string-face) 32219 32232 (face font-lock-keyword-face) 32232 32233 (face font-lock-string-face) 32233 32249 nil 32249 32250 (face font-lock-string-face) 32250 32259 (face font-lock-keyword-face) 32259 32260 (face font-lock-string-face) 32260 32278 nil 32278 32279 (face font-lock-string-face) 32279 32283 (face font-lock-constant-face) 32283 32284 (face font-lock-string-face) 32284 32300 nil 32300 32301 (face font-lock-string-face) 32301 32306 (face font-lock-constant-face) 32306 32307 (face font-lock-string-face) 32307 32323 nil 32323 32324 (face font-lock-string-face) 32324 32333 (face font-lock-constant-face) 32333 32334 (face font-lock-string-face) 32334 32350 nil 32350 32351 (face font-lock-string-face) 32351 32357 (face font-lock-constant-face) 32357 32358 (face font-lock-string-face) 32358 32398 nil 32398 32399 (face font-lock-string-face) 32399 32406 (face font-lock-keyword-face) 32406 32407 (face font-lock-string-face) 32407 32423 nil 32423 32424 (face font-lock-string-face) 32424 32462 (face font-lock-constant-face) 32462 32463 (face font-lock-string-face) 32463 32477 nil 32477 32478 (face font-lock-string-face) 32478 32515 (face font-lock-constant-face) 32515 32516 (face font-lock-string-face) 32516 32530 nil 32530 32531 (face font-lock-string-face) 32531 32568 (face font-lock-constant-face) 32568 32569 (face font-lock-string-face) 32569 32583 nil 32583 32584 (face font-lock-string-face) 32584 32620 (face font-lock-constant-face) 32620 32621 (face font-lock-string-face) 32621 32635 nil 32635 32636 (face font-lock-string-face) 32636 32666 (face font-lock-constant-face) 32666 32667 (face font-lock-string-face) 32667 32681 nil 32681 32682 (face font-lock-string-face) 32682 32720 (face font-lock-constant-face) 32720 32721 (face font-lock-string-face) 32721 32735 nil 32735 32736 (face font-lock-string-face) 32736 32773 (face font-lock-constant-face) 32773 32774 (face font-lock-string-face) 32774 32822 nil 32822 32823 (face font-lock-string-face) 32823 32838 (face font-lock-variable-name-face) 32838 32839 (face font-lock-string-face) 32839 32849 nil 32849 32850 (face font-lock-string-face) 32850 32857 (face font-lock-keyword-face) 32857 32858 (face font-lock-string-face) 32858 32882 nil 32882 32883 (face font-lock-string-face) 32883 32894 (face font-lock-keyword-face) 32894 32895 (face font-lock-string-face) 32895 32897 nil 32897 32898 (face font-lock-string-face) 32898 32912 (face font-lock-function-name-face) 32912 32913 (face font-lock-string-face) 32913 32925 nil 32925 32926 (face font-lock-string-face) 32926 32930 (face font-lock-keyword-face) 32930 32931 (face font-lock-string-face) 32931 32933 nil 32933 32934 (face font-lock-string-face) 32934 32948 (face font-lock-type-face) 32948 32949 (face font-lock-string-face) 32949 32961 nil 32961 32962 (face font-lock-string-face) 32962 32969 (face font-lock-keyword-face) 32969 32970 (face font-lock-string-face) 32970 32986 nil 32986 32987 (face font-lock-string-face) 32987 33022 (face font-lock-constant-face) 33022 33023 (face font-lock-string-face) 33023 33037 nil 33037 33038 (face font-lock-string-face) 33038 33072 (face font-lock-constant-face) 33072 33073 (face font-lock-string-face) 33073 33098 nil 33098 33099 (face font-lock-string-face) 33099 33111 (face font-lock-keyword-face) 33111 33112 (face font-lock-string-face) 33112 33128 nil 33128 33129 (face font-lock-string-face) 33129 33150 (face font-lock-function-name-face) 33150 33151 (face font-lock-string-face) 33151 33176 nil 33176 33177 (face font-lock-string-face) 33177 33189 (face font-lock-keyword-face) 33189 33190 (face font-lock-string-face) 33190 33206 nil 33206 33207 (face font-lock-string-face) 33207 33209 (face font-lock-constant-face) 33209 33232 (face font-lock-variable-name-face) 33232 33239 (face font-lock-constant-face) 33239 33240 (face font-lock-string-face) 33240 33265 nil 33265 33266 (face font-lock-string-face) 33266 33273 (face font-lock-keyword-face) 33273 33274 (face font-lock-string-face) 33274 33306 nil 33306 33307 (face font-lock-string-face) 33307 33318 (face font-lock-keyword-face) 33318 33319 (face font-lock-string-face) 33319 33321 nil 33321 33322 (face font-lock-string-face) 33322 33342 (face font-lock-function-name-face) 33342 33343 (face font-lock-string-face) 33343 33359 nil 33359 33360 (face font-lock-string-face) 33360 33366 (face font-lock-keyword-face) 33366 33367 (face font-lock-string-face) 33367 33387 nil 33387 33388 (face font-lock-string-face) 33388 33434 (face font-lock-constant-face) 33434 33435 (face font-lock-string-face) 33435 33453 nil 33453 33454 (face font-lock-string-face) 33454 33519 (face font-lock-constant-face) 33519 33520 (face font-lock-string-face) 33520 33553 nil 33553 33554 (face font-lock-string-face) 33554 33561 (face font-lock-keyword-face) 33561 33562 (face font-lock-string-face) 33562 33582 nil 33582 33583 (face font-lock-string-face) 33583 33585 (face font-lock-constant-face) 33585 33608 (face font-lock-variable-name-face) 33608 33647 (face font-lock-constant-face) 33647 33648 (face font-lock-string-face) 33648 33681 nil 33681 33682 (face font-lock-string-face) 33682 33688 (face font-lock-keyword-face) 33688 33689 (face font-lock-string-face) 33689 33709 nil 33709 33710 (face font-lock-string-face) 33710 33716 (face font-lock-constant-face) 33716 33717 (face font-lock-string-face) 33717 33735 nil 33735 33736 (face font-lock-string-face) 33736 33738 (face font-lock-constant-face) 33738 33743 (face font-lock-variable-name-face) 33743 33788 (face font-lock-constant-face) 33788 33789 (face font-lock-string-face) 33789 33807 nil 33807 33808 (face font-lock-string-face) 33808 33810 (face font-lock-constant-face) 33810 33811 (face font-lock-string-face) 33811 33829 nil 33829 33830 (face font-lock-string-face) 33830 33833 (face font-lock-constant-face) 33833 33840 (face font-lock-variable-name-face) 33840 33841 (face font-lock-constant-face) 33841 33842 (face font-lock-string-face) 33842 33860 nil 33860 33861 (face font-lock-string-face) 33861 33864 (face font-lock-constant-face) 33864 33872 (face font-lock-variable-name-face) 33872 33873 (face font-lock-constant-face) 33873 33874 (face font-lock-string-face) 33874 33952 nil 33952 33953 (face font-lock-string-face) 33953 33964 (face font-lock-keyword-face) 33964 33965 (face font-lock-string-face) 33965 33967 nil 33967 33968 (face font-lock-string-face) 33968 33978 (face font-lock-function-name-face) 33978 33979 (face font-lock-string-face) 33979 33991 nil 33991 33992 (face font-lock-string-face) 33992 33996 (face font-lock-keyword-face) 33996 33997 (face font-lock-string-face) 33997 33999 nil 33999 34000 (face font-lock-string-face) 34000 34004 (face font-lock-type-face) 34004 34005 (face font-lock-string-face) 34005 34017 nil 34017 34018 (face font-lock-string-face) 34018 34030 (face font-lock-keyword-face) 34030 34031 (face font-lock-string-face) 34031 34035 nil 34035 34036 (face font-lock-string-face) 34036 34062 (face font-lock-function-name-face) 34062 34063 (face font-lock-string-face) 34063 34077 nil 34077 34078 (face font-lock-string-face) 34078 34087 (face font-lock-keyword-face) 34087 34088 (face font-lock-string-face) 34088 34104 nil 34104 34105 (face font-lock-string-face) 34105 34117 (face font-lock-variable-name-face) 34117 34118 (face font-lock-string-face) 34118 34120 nil 34120 34121 (face font-lock-string-face) 34121 34126 (face font-lock-variable-name-face) 34126 34127 (face font-lock-string-face) 34127 34141 nil 34141 34142 (face font-lock-string-face) 34142 34153 (face font-lock-variable-name-face) 34153 34154 (face font-lock-string-face) 34154 34156 nil 34156 34157 (face font-lock-string-face) 34157 34174 (face font-lock-variable-name-face) 34174 34175 (face font-lock-string-face) 34175 34200 nil 34200 34201 (face font-lock-string-face) 34201 34209 (face font-lock-keyword-face) 34209 34210 (face font-lock-string-face) 34210 34214 nil 34214 34215 (face font-lock-string-face) 34215 34233 (face font-lock-constant-face) 34233 34234 (face font-lock-string-face) 34234 34268 nil 34268 34287 (face font-lock-comment-face) 34287 34293 nil 34293 34365 (face font-lock-comment-face) 34365 34371 nil 34371 34372 (face font-lock-string-face) 34372 34379 (face font-lock-keyword-face) 34379 34380 (face font-lock-string-face) 34380 34404 nil 34404 34405 (face font-lock-string-face) 34405 34416 (face font-lock-keyword-face) 34416 34417 (face font-lock-string-face) 34417 34419 nil 34419 34420 (face font-lock-string-face) 34420 34436 (face font-lock-function-name-face) 34436 34437 (face font-lock-string-face) 34437 34449 nil 34449 34450 (face font-lock-string-face) 34450 34454 (face font-lock-keyword-face) 34454 34455 (face font-lock-string-face) 34455 34457 nil 34457 34458 (face font-lock-string-face) 34458 34468 (face font-lock-type-face) 34468 34469 (face font-lock-string-face) 34469 34481 nil 34481 34482 (face font-lock-string-face) 34482 34494 (face font-lock-keyword-face) 34494 34495 (face font-lock-string-face) 34495 34511 nil 34511 34512 (face font-lock-string-face) 34512 34517 (face font-lock-function-name-face) 34517 34518 (face font-lock-string-face) 34518 34532 nil 34532 34533 (face font-lock-string-face) 34533 34551 (face font-lock-function-name-face) 34551 34552 (face font-lock-string-face) 34552 34566 nil 34566 34567 (face font-lock-string-face) 34567 34588 (face font-lock-function-name-face) 34588 34589 (face font-lock-string-face) 34589 34603 nil 34603 34604 (face font-lock-string-face) 34604 34630 (face font-lock-function-name-face) 34630 34631 (face font-lock-string-face) 34631 34645 nil 34645 34646 (face font-lock-string-face) 34646 34680 (face font-lock-function-name-face) 34680 34681 (face font-lock-string-face) 34681 34695 nil 34695 34696 (face font-lock-string-face) 34696 34730 (face font-lock-function-name-face) 34730 34731 (face font-lock-string-face) 34731 34745 nil 34745 34746 (face font-lock-string-face) 34746 34772 (face font-lock-function-name-face) 34772 34773 (face font-lock-string-face) 34773 34787 nil 34787 34788 (face font-lock-string-face) 34788 34827 (face font-lock-function-name-face) 34827 34828 (face font-lock-string-face) 34828 34853 nil 34853 34854 (face font-lock-string-face) 34854 34861 (face font-lock-keyword-face) 34861 34862 (face font-lock-string-face) 34862 34878 nil 34878 34879 (face font-lock-string-face) 34879 34904 (face font-lock-constant-face) 34904 34905 (face font-lock-string-face) 34905 34930 nil 34930 34931 (face font-lock-string-face) 34931 34941 (face font-lock-keyword-face) 34941 34942 (face font-lock-string-face) 34942 34959 nil 34959 34960 (face font-lock-string-face) 34960 34981 (face font-lock-variable-name-face) 34981 34982 (face font-lock-string-face) 34982 35000 nil 35000 35001 (face font-lock-string-face) 35001 35013 (face font-lock-keyword-face) 35013 35014 (face font-lock-string-face) 35014 35034 nil 35034 35077 (face font-lock-comment-face) 35077 35093 nil 35093 35123 (face font-lock-comment-face) 35123 35139 nil 35139 35164 (face font-lock-comment-face) 35164 35180 nil 35180 35194 (face font-lock-comment-face) 35194 35210 nil 35210 35211 (face font-lock-string-face) 35211 35240 (face font-lock-function-name-face) 35240 35241 (face font-lock-string-face) 35241 35274 nil 35274 35275 (face font-lock-string-face) 35275 35285 (face font-lock-keyword-face) 35285 35286 (face font-lock-string-face) 35286 35307 nil 35307 35308 (face font-lock-string-face) 35308 35329 (face font-lock-variable-name-face) 35329 35330 (face font-lock-string-face) 35330 35352 nil 35352 35353 (face font-lock-string-face) 35353 35365 (face font-lock-keyword-face) 35365 35366 (face font-lock-string-face) 35366 35390 nil 35390 35391 (face font-lock-string-face) 35391 35432 (face font-lock-function-name-face) 35432 35433 (face font-lock-string-face) 35433 35553 nil 35553 35554 (face font-lock-string-face) 35554 35565 (face font-lock-keyword-face) 35565 35566 (face font-lock-string-face) 35566 35568 nil 35568 35569 (face font-lock-string-face) 35569 35592 (face font-lock-function-name-face) 35592 35593 (face font-lock-string-face) 35593 35605 nil 35605 35606 (face font-lock-string-face) 35606 35610 (face font-lock-keyword-face) 35610 35611 (face font-lock-string-face) 35611 35613 nil 35613 35614 (face font-lock-string-face) 35614 35624 (face font-lock-type-face) 35624 35625 (face font-lock-string-face) 35625 35637 nil 35637 35638 (face font-lock-string-face) 35638 35650 (face font-lock-keyword-face) 35650 35651 (face font-lock-string-face) 35651 35667 nil 35667 35668 (face font-lock-string-face) 35668 35673 (face font-lock-function-name-face) 35673 35674 (face font-lock-string-face) 35674 35688 nil 35688 35689 (face font-lock-string-face) 35689 35707 (face font-lock-function-name-face) 35707 35708 (face font-lock-string-face) 35708 35722 nil 35722 35723 (face font-lock-string-face) 35723 35757 (face font-lock-function-name-face) 35757 35758 (face font-lock-string-face) 35758 35772 nil 35772 35773 (face font-lock-string-face) 35773 35799 (face font-lock-function-name-face) 35799 35800 (face font-lock-string-face) 35800 35814 nil 35814 35815 (face font-lock-string-face) 35815 35841 (face font-lock-function-name-face) 35841 35842 (face font-lock-string-face) 35842 35856 nil 35856 35857 (face font-lock-string-face) 35857 35896 (face font-lock-function-name-face) 35896 35897 (face font-lock-string-face) 35897 35922 nil 35922 35923 (face font-lock-string-face) 35923 35930 (face font-lock-keyword-face) 35930 35931 (face font-lock-string-face) 35931 35947 nil 35947 35948 (face font-lock-string-face) 35948 35970 (face font-lock-constant-face) 35970 35971 (face font-lock-string-face) 35971 35985 nil 35985 35986 (face font-lock-string-face) 35986 36011 (face font-lock-constant-face) 36011 36012 (face font-lock-string-face) 36012 36026 nil 36026 36027 (face font-lock-string-face) 36027 36060 (face font-lock-constant-face) 36060 36061 (face font-lock-string-face) 36061 36075 nil 36075 36076 (face font-lock-string-face) 36076 36117 (face font-lock-constant-face) 36117 36118 (face font-lock-string-face) 36118 36143 nil 36143 36144 (face font-lock-string-face) 36144 36154 (face font-lock-keyword-face) 36154 36155 (face font-lock-string-face) 36155 36172 nil 36172 36173 (face font-lock-string-face) 36173 36198 (face font-lock-variable-name-face) 36198 36199 (face font-lock-string-face) 36199 36217 nil 36217 36218 (face font-lock-string-face) 36218 36228 (face font-lock-keyword-face) 36228 36229 (face font-lock-string-face) 36229 36250 nil 36250 36251 (face font-lock-string-face) 36251 36272 (face font-lock-variable-name-face) 36272 36273 (face font-lock-string-face) 36273 36295 nil 36295 36296 (face font-lock-string-face) 36296 36308 (face font-lock-keyword-face) 36308 36309 (face font-lock-string-face) 36309 36333 nil 36333 36334 (face font-lock-string-face) 36334 36375 (face font-lock-function-name-face) 36375 36376 (face font-lock-string-face) 36376 36496 nil 36496 36497 (face font-lock-string-face) 36497 36508 (face font-lock-keyword-face) 36508 36509 (face font-lock-string-face) 36509 36511 nil 36511 36512 (face font-lock-string-face) 36512 36524 (face font-lock-function-name-face) 36524 36525 (face font-lock-string-face) 36525 36537 nil 36537 36538 (face font-lock-string-face) 36538 36542 (face font-lock-keyword-face) 36542 36543 (face font-lock-string-face) 36543 36545 nil 36545 36546 (face font-lock-string-face) 36546 36556 (face font-lock-type-face) 36556 36557 (face font-lock-string-face) 36557 36569 nil 36569 36570 (face font-lock-string-face) 36570 36582 (face font-lock-keyword-face) 36582 36583 (face font-lock-string-face) 36583 36599 nil 36599 36600 (face font-lock-string-face) 36600 36605 (face font-lock-function-name-face) 36605 36606 (face font-lock-string-face) 36606 36620 nil 36620 36621 (face font-lock-string-face) 36621 36642 (face font-lock-function-name-face) 36642 36643 (face font-lock-string-face) 36643 36657 nil 36657 36658 (face font-lock-string-face) 36658 36697 (face font-lock-function-name-face) 36697 36698 (face font-lock-string-face) 36698 36723 nil 36723 36724 (face font-lock-string-face) 36724 36731 (face font-lock-keyword-face) 36731 36732 (face font-lock-string-face) 36732 36748 nil 36748 36749 (face font-lock-string-face) 36749 36782 (face font-lock-constant-face) 36782 36783 (face font-lock-string-face) 36783 36829 nil 36829 36830 (face font-lock-string-face) 36830 36841 (face font-lock-keyword-face) 36841 36842 (face font-lock-string-face) 36842 36844 nil 36844 36845 (face font-lock-string-face) 36845 36856 (face font-lock-function-name-face) 36856 36857 (face font-lock-string-face) 36857 36869 nil 36869 36870 (face font-lock-string-face) 36870 36874 (face font-lock-keyword-face) 36874 36875 (face font-lock-string-face) 36875 36877 nil 36877 36878 (face font-lock-string-face) 36878 36888 (face font-lock-type-face) 36888 36889 (face font-lock-string-face) 36889 36901 nil 36901 36902 (face font-lock-string-face) 36902 36914 (face font-lock-keyword-face) 36914 36915 (face font-lock-string-face) 36915 36931 nil 36931 36932 (face font-lock-string-face) 36932 36937 (face font-lock-function-name-face) 36937 36938 (face font-lock-string-face) 36938 36952 nil 36952 36953 (face font-lock-string-face) 36953 36974 (face font-lock-function-name-face) 36974 36975 (face font-lock-string-face) 36975 36989 nil 36989 36990 (face font-lock-string-face) 36990 37029 (face font-lock-function-name-face) 37029 37030 (face font-lock-string-face) 37030 37055 nil 37055 37056 (face font-lock-string-face) 37056 37063 (face font-lock-keyword-face) 37063 37064 (face font-lock-string-face) 37064 37080 nil 37080 37081 (face font-lock-string-face) 37081 37113 (face font-lock-constant-face) 37113 37114 (face font-lock-string-face) 37114 37163 nil)
diff --git a/node_modules/node-gyp/gyp/tools/graphviz.py b/node_modules/node-gyp/gyp/tools/graphviz.py
deleted file mode 100755
index 326ae22..0000000
--- a/node_modules/node-gyp/gyp/tools/graphviz.py
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2011 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Using the JSON dumped by the dump-dependency-json generator,
-generate input suitable for graphviz to render a dependency graph of
-targets."""
-
-import collections
-import json
-import sys
-
-
-def ParseTarget(target):
- target, _, suffix = target.partition('#')
- filename, _, target = target.partition(':')
- return filename, target, suffix
-
-
-def LoadEdges(filename, targets):
- """Load the edges map from the dump file, and filter it to only
- show targets in |targets| and their depedendents."""
-
- file = open('dump.json')
- edges = json.load(file)
- file.close()
-
- # Copy out only the edges we're interested in from the full edge list.
- target_edges = {}
- to_visit = targets[:]
- while to_visit:
- src = to_visit.pop()
- if src in target_edges:
- continue
- target_edges[src] = edges[src]
- to_visit.extend(edges[src])
-
- return target_edges
-
-
-def WriteGraph(edges):
- """Print a graphviz graph to stdout.
- |edges| is a map of target to a list of other targets it depends on."""
-
- # Bucket targets by file.
- files = collections.defaultdict(list)
- for src, dst in edges.items():
- build_file, target_name, toolset = ParseTarget(src)
- files[build_file].append(src)
-
- print 'digraph D {'
- print ' fontsize=8' # Used by subgraphs.
- print ' node [fontsize=8]'
-
- # Output nodes by file. We must first write out each node within
- # its file grouping before writing out any edges that may refer
- # to those nodes.
- for filename, targets in files.items():
- if len(targets) == 1:
- # If there's only one node for this file, simplify
- # the display by making it a box without an internal node.
- target = targets[0]
- build_file, target_name, toolset = ParseTarget(target)
- print ' "%s" [shape=box, label="%s\\n%s"]' % (target, filename,
- target_name)
- else:
- # Group multiple nodes together in a subgraph.
- print ' subgraph "cluster_%s" {' % filename
- print ' label = "%s"' % filename
- for target in targets:
- build_file, target_name, toolset = ParseTarget(target)
- print ' "%s" [label="%s"]' % (target, target_name)
- print ' }'
-
- # Now that we've placed all the nodes within subgraphs, output all
- # the edges between nodes.
- for src, dsts in edges.items():
- for dst in dsts:
- print ' "%s" -> "%s"' % (src, dst)
-
- print '}'
-
-
-def main():
- if len(sys.argv) < 2:
- print >>sys.stderr, __doc__
- print >>sys.stderr
- print >>sys.stderr, 'usage: %s target1 target2...' % (sys.argv[0])
- return 1
-
- edges = LoadEdges('dump.json', sys.argv[1:])
-
- WriteGraph(edges)
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
diff --git a/node_modules/node-gyp/gyp/tools/pretty_gyp.py b/node_modules/node-gyp/gyp/tools/pretty_gyp.py
deleted file mode 100755
index c51d358..0000000
--- a/node_modules/node-gyp/gyp/tools/pretty_gyp.py
+++ /dev/null
@@ -1,155 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Pretty-prints the contents of a GYP file."""
-
-import sys
-import re
-
-
-# Regex to remove comments when we're counting braces.
-COMMENT_RE = re.compile(r'\s*#.*')
-
-# Regex to remove quoted strings when we're counting braces.
-# It takes into account quoted quotes, and makes sure that the quotes match.
-# NOTE: It does not handle quotes that span more than one line, or
-# cases where an escaped quote is preceeded by an escaped backslash.
-QUOTE_RE_STR = r'(?P<q>[\'"])(.*?)(?<![^\\][\\])(?P=q)'
-QUOTE_RE = re.compile(QUOTE_RE_STR)
-
-
-def comment_replace(matchobj):
- return matchobj.group(1) + matchobj.group(2) + '#' * len(matchobj.group(3))
-
-
-def mask_comments(input):
- """Mask the quoted strings so we skip braces inside quoted strings."""
- search_re = re.compile(r'(.*?)(#)(.*)')
- return [search_re.sub(comment_replace, line) for line in input]
-
-
-def quote_replace(matchobj):
- return "%s%s%s%s" % (matchobj.group(1),
- matchobj.group(2),
- 'x'*len(matchobj.group(3)),
- matchobj.group(2))
-
-
-def mask_quotes(input):
- """Mask the quoted strings so we skip braces inside quoted strings."""
- search_re = re.compile(r'(.*?)' + QUOTE_RE_STR)
- return [search_re.sub(quote_replace, line) for line in input]
-
-
-def do_split(input, masked_input, search_re):
- output = []
- mask_output = []
- for (line, masked_line) in zip(input, masked_input):
- m = search_re.match(masked_line)
- while m:
- split = len(m.group(1))
- line = line[:split] + r'\n' + line[split:]
- masked_line = masked_line[:split] + r'\n' + masked_line[split:]
- m = search_re.match(masked_line)
- output.extend(line.split(r'\n'))
- mask_output.extend(masked_line.split(r'\n'))
- return (output, mask_output)
-
-
-def split_double_braces(input):
- """Masks out the quotes and comments, and then splits appropriate
- lines (lines that matche the double_*_brace re's above) before
- indenting them below.
-
- These are used to split lines which have multiple braces on them, so
- that the indentation looks prettier when all laid out (e.g. closing
- braces make a nice diagonal line).
- """
- double_open_brace_re = re.compile(r'(.*?[\[\{\(,])(\s*)([\[\{\(])')
- double_close_brace_re = re.compile(r'(.*?[\]\}\)],?)(\s*)([\]\}\)])')
-
- masked_input = mask_quotes(input)
- masked_input = mask_comments(masked_input)
-
- (output, mask_output) = do_split(input, masked_input, double_open_brace_re)
- (output, mask_output) = do_split(output, mask_output, double_close_brace_re)
-
- return output
-
-
-def count_braces(line):
- """keeps track of the number of braces on a given line and returns the result.
-
- It starts at zero and subtracts for closed braces, and adds for open braces.
- """
- open_braces = ['[', '(', '{']
- close_braces = [']', ')', '}']
- closing_prefix_re = re.compile(r'(.*?[^\s\]\}\)]+.*?)([\]\}\)],?)\s*$')
- cnt = 0
- stripline = COMMENT_RE.sub(r'', line)
- stripline = QUOTE_RE.sub(r"''", stripline)
- for char in stripline:
- for brace in open_braces:
- if char == brace:
- cnt += 1
- for brace in close_braces:
- if char == brace:
- cnt -= 1
-
- after = False
- if cnt > 0:
- after = True
-
- # This catches the special case of a closing brace having something
- # other than just whitespace ahead of it -- we don't want to
- # unindent that until after this line is printed so it stays with
- # the previous indentation level.
- if cnt < 0 and closing_prefix_re.match(stripline):
- after = True
- return (cnt, after)
-
-
-def prettyprint_input(lines):
- """Does the main work of indenting the input based on the brace counts."""
- indent = 0
- basic_offset = 2
- last_line = ""
- for line in lines:
- if COMMENT_RE.match(line):
- print line
- else:
- line = line.strip('\r\n\t ') # Otherwise doesn't strip \r on Unix.
- if len(line) > 0:
- (brace_diff, after) = count_braces(line)
- if brace_diff != 0:
- if after:
- print " " * (basic_offset * indent) + line
- indent += brace_diff
- else:
- indent += brace_diff
- print " " * (basic_offset * indent) + line
- else:
- print " " * (basic_offset * indent) + line
- else:
- print ""
- last_line = line
-
-
-def main():
- if len(sys.argv) > 1:
- data = open(sys.argv[1]).read().splitlines()
- else:
- data = sys.stdin.read().splitlines()
- # Split up the double braces.
- lines = split_double_braces(data)
-
- # Indent and print the output.
- prettyprint_input(lines)
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
diff --git a/node_modules/node-gyp/gyp/tools/pretty_sln.py b/node_modules/node-gyp/gyp/tools/pretty_sln.py
deleted file mode 100755
index ca8cf4a..0000000
--- a/node_modules/node-gyp/gyp/tools/pretty_sln.py
+++ /dev/null
@@ -1,169 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Prints the information in a sln file in a diffable way.
-
- It first outputs each projects in alphabetical order with their
- dependencies.
-
- Then it outputs a possible build order.
-"""
-
-__author__ = 'nsylvain (Nicolas Sylvain)'
-
-import os
-import re
-import sys
-import pretty_vcproj
-
-def BuildProject(project, built, projects, deps):
- # if all dependencies are done, we can build it, otherwise we try to build the
- # dependency.
- # This is not infinite-recursion proof.
- for dep in deps[project]:
- if dep not in built:
- BuildProject(dep, built, projects, deps)
- print project
- built.append(project)
-
-def ParseSolution(solution_file):
- # All projects, their clsid and paths.
- projects = dict()
-
- # A list of dependencies associated with a project.
- dependencies = dict()
-
- # Regular expressions that matches the SLN format.
- # The first line of a project definition.
- begin_project = re.compile(r'^Project\("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942'
- r'}"\) = "(.*)", "(.*)", "(.*)"$')
- # The last line of a project definition.
- end_project = re.compile('^EndProject$')
- # The first line of a dependency list.
- begin_dep = re.compile(
- r'ProjectSection\(ProjectDependencies\) = postProject$')
- # The last line of a dependency list.
- end_dep = re.compile('EndProjectSection$')
- # A line describing a dependency.
- dep_line = re.compile(' *({.*}) = ({.*})$')
-
- in_deps = False
- solution = open(solution_file)
- for line in solution:
- results = begin_project.search(line)
- if results:
- # Hack to remove icu because the diff is too different.
- if results.group(1).find('icu') != -1:
- continue
- # We remove "_gyp" from the names because it helps to diff them.
- current_project = results.group(1).replace('_gyp', '')
- projects[current_project] = [results.group(2).replace('_gyp', ''),
- results.group(3),
- results.group(2)]
- dependencies[current_project] = []
- continue
-
- results = end_project.search(line)
- if results:
- current_project = None
- continue
-
- results = begin_dep.search(line)
- if results:
- in_deps = True
- continue
-
- results = end_dep.search(line)
- if results:
- in_deps = False
- continue
-
- results = dep_line.search(line)
- if results and in_deps and current_project:
- dependencies[current_project].append(results.group(1))
- continue
-
- # Change all dependencies clsid to name instead.
- for project in dependencies:
- # For each dependencies in this project
- new_dep_array = []
- for dep in dependencies[project]:
- # Look for the project name matching this cldis
- for project_info in projects:
- if projects[project_info][1] == dep:
- new_dep_array.append(project_info)
- dependencies[project] = sorted(new_dep_array)
-
- return (projects, dependencies)
-
-def PrintDependencies(projects, deps):
- print "---------------------------------------"
- print "Dependencies for all projects"
- print "---------------------------------------"
- print "-- --"
-
- for (project, dep_list) in sorted(deps.items()):
- print "Project : %s" % project
- print "Path : %s" % projects[project][0]
- if dep_list:
- for dep in dep_list:
- print " - %s" % dep
- print ""
-
- print "-- --"
-
-def PrintBuildOrder(projects, deps):
- print "---------------------------------------"
- print "Build order "
- print "---------------------------------------"
- print "-- --"
-
- built = []
- for (project, _) in sorted(deps.items()):
- if project not in built:
- BuildProject(project, built, projects, deps)
-
- print "-- --"
-
-def PrintVCProj(projects):
-
- for project in projects:
- print "-------------------------------------"
- print "-------------------------------------"
- print project
- print project
- print project
- print "-------------------------------------"
- print "-------------------------------------"
-
- project_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[1]),
- projects[project][2]))
-
- pretty = pretty_vcproj
- argv = [ '',
- project_path,
- '$(SolutionDir)=%s\\' % os.path.dirname(sys.argv[1]),
- ]
- argv.extend(sys.argv[3:])
- pretty.main(argv)
-
-def main():
- # check if we have exactly 1 parameter.
- if len(sys.argv) < 2:
- print 'Usage: %s "c:\\path\\to\\project.sln"' % sys.argv[0]
- return 1
-
- (projects, deps) = ParseSolution(sys.argv[1])
- PrintDependencies(projects, deps)
- PrintBuildOrder(projects, deps)
-
- if '--recursive' in sys.argv:
- PrintVCProj(projects)
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main())
diff --git a/node_modules/node-gyp/gyp/tools/pretty_vcproj.py b/node_modules/node-gyp/gyp/tools/pretty_vcproj.py
deleted file mode 100755
index 6099bd7..0000000
--- a/node_modules/node-gyp/gyp/tools/pretty_vcproj.py
+++ /dev/null
@@ -1,329 +0,0 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2012 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Make the format of a vcproj really pretty.
-
- This script normalize and sort an xml. It also fetches all the properties
- inside linked vsprops and include them explicitly in the vcproj.
-
- It outputs the resulting xml to stdout.
-"""
-
-__author__ = 'nsylvain (Nicolas Sylvain)'
-
-import os
-import sys
-
-from xml.dom.minidom import parse
-from xml.dom.minidom import Node
-
-REPLACEMENTS = dict()
-ARGUMENTS = None
-
-
-class CmpTuple(object):
- """Compare function between 2 tuple."""
- def __call__(self, x, y):
- return cmp(x[0], y[0])
-
-
-class CmpNode(object):
- """Compare function between 2 xml nodes."""
-
- def __call__(self, x, y):
- def get_string(node):
- node_string = "node"
- node_string += node.nodeName
- if node.nodeValue:
- node_string += node.nodeValue
-
- if node.attributes:
- # We first sort by name, if present.
- node_string += node.getAttribute("Name")
-
- all_nodes = []
- for (name, value) in node.attributes.items():
- all_nodes.append((name, value))
-
- all_nodes.sort(CmpTuple())
- for (name, value) in all_nodes:
- node_string += name
- node_string += value
-
- return node_string
-
- return cmp(get_string(x), get_string(y))
-
-
-def PrettyPrintNode(node, indent=0):
- if node.nodeType == Node.TEXT_NODE:
- if node.data.strip():
- print '%s%s' % (' '*indent, node.data.strip())
- return
-
- if node.childNodes:
- node.normalize()
- # Get the number of attributes
- attr_count = 0
- if node.attributes:
- attr_count = node.attributes.length
-
- # Print the main tag
- if attr_count == 0:
- print '%s<%s>' % (' '*indent, node.nodeName)
- else:
- print '%s<%s' % (' '*indent, node.nodeName)
-
- all_attributes = []
- for (name, value) in node.attributes.items():
- all_attributes.append((name, value))
- all_attributes.sort(CmpTuple())
- for (name, value) in all_attributes:
- print '%s %s="%s"' % (' '*indent, name, value)
- print '%s>' % (' '*indent)
- if node.nodeValue:
- print '%s %s' % (' '*indent, node.nodeValue)
-
- for sub_node in node.childNodes:
- PrettyPrintNode(sub_node, indent=indent+2)
- print '%s</%s>' % (' '*indent, node.nodeName)
-
-
-def FlattenFilter(node):
- """Returns a list of all the node and sub nodes."""
- node_list = []
-
- if (node.attributes and
- node.getAttribute('Name') == '_excluded_files'):
- # We don't add the "_excluded_files" filter.
- return []
-
- for current in node.childNodes:
- if current.nodeName == 'Filter':
- node_list.extend(FlattenFilter(current))
- else:
- node_list.append(current)
-
- return node_list
-
-
-def FixFilenames(filenames, current_directory):
- new_list = []
- for filename in filenames:
- if filename:
- for key in REPLACEMENTS:
- filename = filename.replace(key, REPLACEMENTS[key])
- os.chdir(current_directory)
- filename = filename.strip('"\' ')
- if filename.startswith('$'):
- new_list.append(filename)
- else:
- new_list.append(os.path.abspath(filename))
- return new_list
-
-
-def AbsoluteNode(node):
- """Makes all the properties we know about in this node absolute."""
- if node.attributes:
- for (name, value) in node.attributes.items():
- if name in ['InheritedPropertySheets', 'RelativePath',
- 'AdditionalIncludeDirectories',
- 'IntermediateDirectory', 'OutputDirectory',
- 'AdditionalLibraryDirectories']:
- # We want to fix up these paths
- path_list = value.split(';')
- new_list = FixFilenames(path_list, os.path.dirname(ARGUMENTS[1]))
- node.setAttribute(name, ';'.join(new_list))
- if not value:
- node.removeAttribute(name)
-
-
-def CleanupVcproj(node):
- """For each sub node, we call recursively this function."""
- for sub_node in node.childNodes:
- AbsoluteNode(sub_node)
- CleanupVcproj(sub_node)
-
- # Normalize the node, and remove all extranous whitespaces.
- for sub_node in node.childNodes:
- if sub_node.nodeType == Node.TEXT_NODE:
- sub_node.data = sub_node.data.replace("\r", "")
- sub_node.data = sub_node.data.replace("\n", "")
- sub_node.data = sub_node.data.rstrip()
-
- # Fix all the semicolon separated attributes to be sorted, and we also
- # remove the dups.
- if node.attributes:
- for (name, value) in node.attributes.items():
- sorted_list = sorted(value.split(';'))
- unique_list = []
- for i in sorted_list:
- if not unique_list.count(i):
- unique_list.append(i)
- node.setAttribute(name, ';'.join(unique_list))
- if not value:
- node.removeAttribute(name)
-
- if node.childNodes:
- node.normalize()
-
- # For each node, take a copy, and remove it from the list.
- node_array = []
- while node.childNodes and node.childNodes[0]:
- # Take a copy of the node and remove it from the list.
- current = node.childNodes[0]
- node.removeChild(current)
-
- # If the child is a filter, we want to append all its children
- # to this same list.
- if current.nodeName == 'Filter':
- node_array.extend(FlattenFilter(current))
- else:
- node_array.append(current)
-
-
- # Sort the list.
- node_array.sort(CmpNode())
-
- # Insert the nodes in the correct order.
- for new_node in node_array:
- # But don't append empty tool node.
- if new_node.nodeName == 'Tool':
- if new_node.attributes and new_node.attributes.length == 1:
- # This one was empty.
- continue
- if new_node.nodeName == 'UserMacro':
- continue
- node.appendChild(new_node)
-
-
-def GetConfiguationNodes(vcproj):
- #TODO(nsylvain): Find a better way to navigate the xml.
- nodes = []
- for node in vcproj.childNodes:
- if node.nodeName == "Configurations":
- for sub_node in node.childNodes:
- if sub_node.nodeName == "Configuration":
- nodes.append(sub_node)
-
- return nodes
-
-
-def GetChildrenVsprops(filename):
- dom = parse(filename)
- if dom.documentElement.attributes:
- vsprops = dom.documentElement.getAttribute('InheritedPropertySheets')
- return FixFilenames(vsprops.split(';'), os.path.dirname(filename))
- return []
-
-def SeekToNode(node1, child2):
- # A text node does not have properties.
- if child2.nodeType == Node.TEXT_NODE:
- return None
-
- # Get the name of the current node.
- current_name = child2.getAttribute("Name")
- if not current_name:
- # There is no name. We don't know how to merge.
- return None
-
- # Look through all the nodes to find a match.
- for sub_node in node1.childNodes:
- if sub_node.nodeName == child2.nodeName:
- name = sub_node.getAttribute("Name")
- if name == current_name:
- return sub_node
-
- # No match. We give up.
- return None
-
-
-def MergeAttributes(node1, node2):
- # No attributes to merge?
- if not node2.attributes:
- return
-
- for (name, value2) in node2.attributes.items():
- # Don't merge the 'Name' attribute.
- if name == 'Name':
- continue
- value1 = node1.getAttribute(name)
- if value1:
- # The attribute exist in the main node. If it's equal, we leave it
- # untouched, otherwise we concatenate it.
- if value1 != value2:
- node1.setAttribute(name, ';'.join([value1, value2]))
- else:
- # The attribute does nto exist in the main node. We append this one.
- node1.setAttribute(name, value2)
-
- # If the attribute was a property sheet attributes, we remove it, since
- # they are useless.
- if name == 'InheritedPropertySheets':
- node1.removeAttribute(name)
-
-
-def MergeProperties(node1, node2):
- MergeAttributes(node1, node2)
- for child2 in node2.childNodes:
- child1 = SeekToNode(node1, child2)
- if child1:
- MergeProperties(child1, child2)
- else:
- node1.appendChild(child2.cloneNode(True))
-
-
-def main(argv):
- """Main function of this vcproj prettifier."""
- global ARGUMENTS
- ARGUMENTS = argv
-
- # check if we have exactly 1 parameter.
- if len(argv) < 2:
- print ('Usage: %s "c:\\path\\to\\vcproj.vcproj" [key1=value1] '
- '[key2=value2]' % argv[0])
- return 1
-
- # Parse the keys
- for i in range(2, len(argv)):
- (key, value) = argv[i].split('=')
- REPLACEMENTS[key] = value
-
- # Open the vcproj and parse the xml.
- dom = parse(argv[1])
-
- # First thing we need to do is find the Configuration Node and merge them
- # with the vsprops they include.
- for configuration_node in GetConfiguationNodes(dom.documentElement):
- # Get the property sheets associated with this configuration.
- vsprops = configuration_node.getAttribute('InheritedPropertySheets')
-
- # Fix the filenames to be absolute.
- vsprops_list = FixFilenames(vsprops.strip().split(';'),
- os.path.dirname(argv[1]))
-
- # Extend the list of vsprops with all vsprops contained in the current
- # vsprops.
- for current_vsprops in vsprops_list:
- vsprops_list.extend(GetChildrenVsprops(current_vsprops))
-
- # Now that we have all the vsprops, we need to merge them.
- for current_vsprops in vsprops_list:
- MergeProperties(configuration_node,
- parse(current_vsprops).documentElement)
-
- # Now that everything is merged, we need to cleanup the xml.
- CleanupVcproj(dom.documentElement)
-
- # Finally, we use the prett xml function to print the vcproj back to the
- # user.
- #print dom.toprettyxml(newl="\n")
- PrettyPrintNode(dom.documentElement)
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
diff --git a/node_modules/node-gyp/lib/Find-VS2017.cs b/node_modules/node-gyp/lib/Find-VS2017.cs
deleted file mode 100644
index 6e7429b..0000000
--- a/node_modules/node-gyp/lib/Find-VS2017.cs
+++ /dev/null
@@ -1,273 +0,0 @@
-// Copyright 2017 - Refael Ackermann
-// Distributed under MIT style license
-// See accompanying file LICENSE at https://github.com/node4good/windows-autoconf
-
-// Usage:
-// powershell -ExecutionPolicy Unrestricted -Version "2.0" -Command "&{Add-Type -Path Find-VS2017.cs; [VisualStudioConfiguration.Main]::Query()}"
-using System;
-using System.Text;
-using System.Runtime.InteropServices;
-
-namespace VisualStudioConfiguration
-{
- [Flags]
- public enum InstanceState : uint
- {
- None = 0,
- Local = 1,
- Registered = 2,
- NoRebootRequired = 4,
- NoErrors = 8,
- Complete = 4294967295,
- }
-
- [Guid("6380BCFF-41D3-4B2E-8B2E-BF8A6810C848")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- [ComImport]
- public interface IEnumSetupInstances
- {
-
- void Next([MarshalAs(UnmanagedType.U4), In] int celt,
- [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Interface), Out] ISetupInstance[] rgelt,
- [MarshalAs(UnmanagedType.U4)] out int pceltFetched);
-
- void Skip([MarshalAs(UnmanagedType.U4), In] int celt);
-
- void Reset();
-
- [return: MarshalAs(UnmanagedType.Interface)]
- IEnumSetupInstances Clone();
- }
-
- [Guid("42843719-DB4C-46C2-8E7C-64F1816EFD5B")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- [ComImport]
- public interface ISetupConfiguration
- {
- }
-
- [Guid("26AAB78C-4A60-49D6-AF3B-3C35BC93365D")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- [ComImport]
- public interface ISetupConfiguration2 : ISetupConfiguration
- {
-
- [return: MarshalAs(UnmanagedType.Interface)]
- IEnumSetupInstances EnumInstances();
-
- [return: MarshalAs(UnmanagedType.Interface)]
- ISetupInstance GetInstanceForCurrentProcess();
-
- [return: MarshalAs(UnmanagedType.Interface)]
- ISetupInstance GetInstanceForPath([MarshalAs(UnmanagedType.LPWStr), In] string path);
-
- [return: MarshalAs(UnmanagedType.Interface)]
- IEnumSetupInstances EnumAllInstances();
- }
-
- [Guid("B41463C3-8866-43B5-BC33-2B0676F7F42E")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- [ComImport]
- public interface ISetupInstance
- {
- }
-
- [Guid("89143C9A-05AF-49B0-B717-72E218A2185C")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- [ComImport]
- public interface ISetupInstance2 : ISetupInstance
- {
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetInstanceId();
-
- [return: MarshalAs(UnmanagedType.Struct)]
- System.Runtime.InteropServices.ComTypes.FILETIME GetInstallDate();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetInstallationName();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetInstallationPath();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetInstallationVersion();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetDisplayName([MarshalAs(UnmanagedType.U4), In] int lcid);
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetDescription([MarshalAs(UnmanagedType.U4), In] int lcid);
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string ResolvePath([MarshalAs(UnmanagedType.LPWStr), In] string pwszRelativePath);
-
- [return: MarshalAs(UnmanagedType.U4)]
- InstanceState GetState();
-
- [return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_UNKNOWN)]
- ISetupPackageReference[] GetPackages();
-
- ISetupPackageReference GetProduct();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetProductPath();
-
- [return: MarshalAs(UnmanagedType.VariantBool)]
- bool IsLaunchable();
-
- [return: MarshalAs(UnmanagedType.VariantBool)]
- bool IsComplete();
-
- [return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_UNKNOWN)]
- ISetupPropertyStore GetProperties();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetEnginePath();
- }
-
- [Guid("DA8D8A16-B2B6-4487-A2F1-594CCCCD6BF5")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- [ComImport]
- public interface ISetupPackageReference
- {
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetId();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetVersion();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetChip();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetLanguage();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetBranch();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetType();
-
- [return: MarshalAs(UnmanagedType.BStr)]
- string GetUniqueId();
-
- [return: MarshalAs(UnmanagedType.VariantBool)]
- bool GetIsExtension();
- }
-
- [Guid("c601c175-a3be-44bc-91f6-4568d230fc83")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- [ComImport]
- public interface ISetupPropertyStore
- {
-
- [return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR)]
- string[] GetNames();
-
- object GetValue([MarshalAs(UnmanagedType.LPWStr), In] string pwszName);
- }
-
- [Guid("42843719-DB4C-46C2-8E7C-64F1816EFD5B")]
- [CoClass(typeof(SetupConfigurationClass))]
- [ComImport]
- public interface SetupConfiguration : ISetupConfiguration2, ISetupConfiguration
- {
- }
-
- [Guid("177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D")]
- [ClassInterface(ClassInterfaceType.None)]
- [ComImport]
- public class SetupConfigurationClass
- {
- }
-
- public static class Main
- {
- public static void Query()
- {
- ISetupConfiguration query = new SetupConfiguration();
- ISetupConfiguration2 query2 = (ISetupConfiguration2)query;
- IEnumSetupInstances e = query2.EnumAllInstances();
-
- int pceltFetched;
- ISetupInstance2[] rgelt = new ISetupInstance2[1];
- StringBuilder log = new StringBuilder();
- while (true)
- {
- e.Next(1, rgelt, out pceltFetched);
- if (pceltFetched <= 0)
- {
- Console.WriteLine(String.Format("{{\"log\":\"{0}\"}}", log.ToString()));
- return;
- }
- if (CheckInstance(rgelt[0], ref log))
- return;
- }
- }
-
- private static bool CheckInstance(ISetupInstance2 setupInstance2, ref StringBuilder log)
- {
- // Visual Studio Community 2017 component directory:
- // https://www.visualstudio.com/en-us/productinfo/vs2017-install-product-Community.workloads
-
- string path = setupInstance2.GetInstallationPath().Replace("\\", "\\\\");
- log.Append(String.Format("Found installation at: {0}\\n", path));
-
- bool hasMSBuild = false;
- bool hasVCTools = false;
- uint Win10SDKVer = 0;
- bool hasWin8SDK = false;
-
- foreach (ISetupPackageReference package in setupInstance2.GetPackages())
- {
- const string Win10SDKPrefix = "Microsoft.VisualStudio.Component.Windows10SDK.";
-
- string id = package.GetId();
- if (id == "Microsoft.VisualStudio.VC.MSBuild.Base")
- hasMSBuild = true;
- else if (id == "Microsoft.VisualStudio.Component.VC.Tools.x86.x64")
- hasVCTools = true;
- else if (id.StartsWith(Win10SDKPrefix)) {
- string[] parts = id.Substring(Win10SDKPrefix.Length).Split('.');
- if (parts.Length > 1 && parts[1] != "Desktop")
- continue;
- uint foundSdkVer;
- if (UInt32.TryParse(parts[0], out foundSdkVer))
- Win10SDKVer = Math.Max(Win10SDKVer, foundSdkVer);
- } else if (id == "Microsoft.VisualStudio.Component.Windows81SDK")
- hasWin8SDK = true;
- else
- continue;
-
- log.Append(String.Format(" - Found {0}\\n", id));
- }
-
- if (!hasMSBuild)
- log.Append(" - Missing Visual Studio C++ core features (Microsoft.VisualStudio.VC.MSBuild.Base)\\n");
- if (!hasVCTools)
- log.Append(" - Missing VC++ 2017 v141 toolset (x86,x64) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64)\\n");
- if ((Win10SDKVer == 0) && (!hasWin8SDK))
- log.Append(" - Missing a Windows SDK (Microsoft.VisualStudio.Component.Windows10SDK.* or Microsoft.VisualStudio.Component.Windows81SDK)\\n");
-
- if (hasMSBuild && hasVCTools)
- {
- if (Win10SDKVer > 0)
- {
- log.Append(" - Using this installation with Windows 10 SDK"/*\\n*/);
- Console.WriteLine(String.Format("{{\"log\":\"{0}\",\"path\":\"{1}\",\"sdk\":\"10.0.{2}.0\"}}", log.ToString(), path, Win10SDKVer));
- return true;
- }
- else if (hasWin8SDK)
- {
- log.Append(" - Using this installation with Windows 8.1 SDK"/*\\n*/);
- Console.WriteLine(String.Format("{{\"log\":\"{0}\",\"path\":\"{1}\",\"sdk\":\"8.1\"}}", log.ToString(), path));
- return true;
- }
- }
-
- log.Append(" - Some required components are missing, not using this installation\\n");
- return false;
- }
- }
-}
diff --git a/node_modules/node-gyp/lib/build.js b/node_modules/node-gyp/lib/build.js
deleted file mode 100644
index 2f8e14c..0000000
--- a/node_modules/node-gyp/lib/build.js
+++ /dev/null
@@ -1,270 +0,0 @@
-
-module.exports = exports = build
-
-/**
- * Module dependencies.
- */
-
-var fs = require('graceful-fs')
- , rm = require('rimraf')
- , path = require('path')
- , glob = require('glob')
- , log = require('npmlog')
- , which = require('which')
- , exec = require('child_process').exec
- , processRelease = require('./process-release')
- , win = process.platform === 'win32'
-
-exports.usage = 'Invokes `' + (win ? 'msbuild' : 'make') + '` and builds the module'
-
-function build (gyp, argv, callback) {
- var platformMake = 'make'
- if (process.platform === 'aix') {
- platformMake = 'gmake'
- } else if (process.platform.indexOf('bsd') !== -1) {
- platformMake = 'gmake'
- } else if (win && argv.length > 0) {
- argv = argv.map(function(target) {
- return '/t:' + target
- })
- }
-
- var release = processRelease(argv, gyp, process.version, process.release)
- , makeCommand = gyp.opts.make || process.env.MAKE || platformMake
- , command = win ? 'msbuild' : makeCommand
- , buildDir = path.resolve('build')
- , configPath = path.resolve(buildDir, 'config.gypi')
- , jobs = gyp.opts.jobs || process.env.JOBS
- , buildType
- , config
- , arch
- , nodeDir
-
- loadConfigGypi()
-
- /**
- * Load the "config.gypi" file that was generated during "configure".
- */
-
- function loadConfigGypi () {
- fs.readFile(configPath, 'utf8', function (err, data) {
- if (err) {
- if (err.code == 'ENOENT') {
- callback(new Error('You must run `node-gyp configure` first!'))
- } else {
- callback(err)
- }
- return
- }
- config = JSON.parse(data.replace(/\#.+\n/, ''))
-
- // get the 'arch', 'buildType', and 'nodeDir' vars from the config
- buildType = config.target_defaults.default_configuration
- arch = config.variables.target_arch
- nodeDir = config.variables.nodedir
-
- if ('debug' in gyp.opts) {
- buildType = gyp.opts.debug ? 'Debug' : 'Release'
- }
- if (!buildType) {
- buildType = 'Release'
- }
-
- log.verbose('build type', buildType)
- log.verbose('architecture', arch)
- log.verbose('node dev dir', nodeDir)
-
- if (win) {
- findSolutionFile()
- } else {
- doWhich()
- }
- })
- }
-
- /**
- * On Windows, find the first build/*.sln file.
- */
-
- function findSolutionFile () {
- glob('build/*.sln', function (err, files) {
- if (err) return callback(err)
- if (files.length === 0) {
- return callback(new Error('Could not find *.sln file. Did you run "configure"?'))
- }
- guessedSolution = files[0]
- log.verbose('found first Solution file', guessedSolution)
- doWhich()
- })
- }
-
- /**
- * Uses node-which to locate the msbuild / make executable.
- */
-
- function doWhich () {
- // First make sure we have the build command in the PATH
- which(command, function (err, execPath) {
- if (err) {
- if (win && /not found/.test(err.message)) {
- // On windows and no 'msbuild' found. Let's guess where it is
- findMsbuild()
- } else {
- // Some other error or 'make' not found on Unix, report that to the user
- callback(err)
- }
- return
- }
- log.verbose('`which` succeeded for `' + command + '`', execPath)
- doBuild()
- })
- }
-
- /**
- * Search for the location of "msbuild.exe" file on Windows.
- */
-
- function findMsbuild () {
- if (config.variables.msbuild_path) {
- command = config.variables.msbuild_path
- log.verbose('using MSBuild:', command)
- doBuild()
- return
- }
-
- log.verbose('could not find "msbuild.exe" in PATH - finding location in registry')
- var notfoundErr = 'Can\'t find "msbuild.exe". Do you have Microsoft Visual Studio C++ 2008+ installed?'
- var cmd = 'reg query "HKLM\\Software\\Microsoft\\MSBuild\\ToolsVersions" /s'
- if (process.arch !== 'ia32')
- cmd += ' /reg:32'
- exec(cmd, function (err, stdout, stderr) {
- if (err) {
- return callback(new Error(err.message + '\n' + notfoundErr))
- }
- var reVers = /ToolsVersions\\([^\\]+)$/i
- , rePath = /\r\n[ \t]+MSBuildToolsPath[ \t]+REG_SZ[ \t]+([^\r]+)/i
- , msbuilds = []
- , r
- , msbuildPath
- stdout.split('\r\n\r\n').forEach(function(l) {
- if (!l) return
- l = l.trim()
- if (r = reVers.exec(l.substring(0, l.indexOf('\r\n')))) {
- var ver = parseFloat(r[1], 10)
- if (ver >= 3.5) {
- if (r = rePath.exec(l)) {
- msbuilds.push({
- version: ver,
- path: r[1]
- })
- }
- }
- }
- })
- msbuilds.sort(function (x, y) {
- return (x.version < y.version ? -1 : 1)
- })
- ;(function verifyMsbuild () {
- if (!msbuilds.length) return callback(new Error(notfoundErr))
- msbuildPath = path.resolve(msbuilds.pop().path, 'msbuild.exe')
- fs.stat(msbuildPath, function (err, stat) {
- if (err) {
- if (err.code == 'ENOENT') {
- if (msbuilds.length) {
- return verifyMsbuild()
- } else {
- callback(new Error(notfoundErr))
- }
- } else {
- callback(err)
- }
- return
- }
- command = msbuildPath
- doBuild()
- })
- })()
- })
- }
-
-
- /**
- * Actually spawn the process and compile the module.
- */
-
- function doBuild () {
-
- // Enable Verbose build
- var verbose = log.levels[log.level] <= log.levels.verbose
- if (!win && verbose) {
- argv.push('V=1')
- }
- if (win && !verbose) {
- argv.push('/clp:Verbosity=minimal')
- }
-
- if (win) {
- // Turn off the Microsoft logo on Windows
- argv.push('/nologo')
- }
-
- // Specify the build type, Release by default
- if (win) {
- var archLower = arch.toLowerCase()
- var p = archLower === 'x64' ? 'x64' :
- (archLower === 'arm' ? 'ARM' : 'Win32')
- argv.push('/p:Configuration=' + buildType + ';Platform=' + p)
- if (jobs) {
- var j = parseInt(jobs, 10)
- if (!isNaN(j) && j > 0) {
- argv.push('/m:' + j)
- } else if (jobs.toUpperCase() === 'MAX') {
- argv.push('/m:' + require('os').cpus().length)
- }
- }
- } else {
- argv.push('BUILDTYPE=' + buildType)
- // Invoke the Makefile in the 'build' dir.
- argv.push('-C')
- argv.push('build')
- if (jobs) {
- var j = parseInt(jobs, 10)
- if (!isNaN(j) && j > 0) {
- argv.push('--jobs')
- argv.push(j)
- } else if (jobs.toUpperCase() === 'MAX') {
- argv.push('--jobs')
- argv.push(require('os').cpus().length)
- }
- }
- }
-
- if (win) {
- // did the user specify their own .sln file?
- var hasSln = argv.some(function (arg) {
- return path.extname(arg) == '.sln'
- })
- if (!hasSln) {
- argv.unshift(gyp.opts.solution || guessedSolution)
- }
- }
-
- var proc = gyp.spawn(command, argv)
- proc.on('exit', onExit)
- }
-
- /**
- * Invoked after the make/msbuild command exits.
- */
-
- function onExit (code, signal) {
- if (code !== 0) {
- return callback(new Error('`' + command + '` failed with exit code: ' + code))
- }
- if (signal) {
- return callback(new Error('`' + command + '` got signal: ' + signal))
- }
- callback()
- }
-
-}
diff --git a/node_modules/node-gyp/lib/clean.js b/node_modules/node-gyp/lib/clean.js
deleted file mode 100644
index e69164d..0000000
--- a/node_modules/node-gyp/lib/clean.js
+++ /dev/null
@@ -1,22 +0,0 @@
-
-module.exports = exports = clean
-
-exports.usage = 'Removes any generated build files and the "out" dir'
-
-/**
- * Module dependencies.
- */
-
-var rm = require('rimraf')
-var log = require('npmlog')
-
-
-function clean (gyp, argv, callback) {
-
- // Remove the 'build' dir
- var buildDir = 'build'
-
- log.verbose('clean', 'removing "%s" directory', buildDir)
- rm(buildDir, callback)
-
-}
diff --git a/node_modules/node-gyp/lib/configure.js b/node_modules/node-gyp/lib/configure.js
deleted file mode 100644
index 35e6787..0000000
--- a/node_modules/node-gyp/lib/configure.js
+++ /dev/null
@@ -1,524 +0,0 @@
-module.exports = exports = configure
-module.exports.test = {
- PythonFinder: PythonFinder,
- findAccessibleSync: findAccessibleSync,
- findPython: findPython,
-}
-
-/**
- * Module dependencies.
- */
-
-var fs = require('graceful-fs')
- , path = require('path')
- , log = require('npmlog')
- , osenv = require('osenv')
- , which = require('which')
- , semver = require('semver')
- , mkdirp = require('mkdirp')
- , cp = require('child_process')
- , extend = require('util')._extend
- , processRelease = require('./process-release')
- , win = process.platform === 'win32'
- , findNodeDirectory = require('./find-node-directory')
- , msgFormat = require('util').format
-if (win)
- var findVS2017 = require('./find-vs2017')
-
-exports.usage = 'Generates ' + (win ? 'MSVC project files' : 'a Makefile') + ' for the current module'
-
-function configure (gyp, argv, callback) {
-
- var python = gyp.opts.python || process.env.PYTHON || 'python2'
- , buildDir = path.resolve('build')
- , configNames = [ 'config.gypi', 'common.gypi' ]
- , configs = []
- , nodeDir
- , release = processRelease(argv, gyp, process.version, process.release)
-
- findPython(python, function (err, found) {
- if (err) {
- callback(err)
- } else {
- python = found
- getNodeDir()
- }
- })
-
- function getNodeDir () {
-
- // 'python' should be set by now
- process.env.PYTHON = python
-
- if (gyp.opts.nodedir) {
- // --nodedir was specified. use that for the dev files
- nodeDir = gyp.opts.nodedir.replace(/^~/, osenv.home())
-
- log.verbose('get node dir', 'compiling against specified --nodedir dev files: %s', nodeDir)
- createBuildDir()
-
- } else {
- // if no --nodedir specified, ensure node dependencies are installed
- if ('v' + release.version !== process.version) {
- // if --target was given, then determine a target version to compile for
- log.verbose('get node dir', 'compiling against --target node version: %s', release.version)
- } else {
- // if no --target was specified then use the current host node version
- log.verbose('get node dir', 'no --target version specified, falling back to host node version: %s', release.version)
- }
-
- if (!release.semver) {
- // could not parse the version string with semver
- return callback(new Error('Invalid version number: ' + release.version))
- }
-
- // If the tarball option is set, always remove and reinstall the headers
- // into devdir. Otherwise only install if they're not already there.
- gyp.opts.ensure = gyp.opts.tarball ? false : true
-
- gyp.commands.install([ release.version ], function (err, version) {
- if (err) return callback(err)
- log.verbose('get node dir', 'target node version installed:', release.versionDir)
- nodeDir = path.resolve(gyp.devDir, release.versionDir)
- createBuildDir()
- })
- }
- }
-
- function createBuildDir () {
- log.verbose('build dir', 'attempting to create "build" dir: %s', buildDir)
- mkdirp(buildDir, function (err, isNew) {
- if (err) return callback(err)
- log.verbose('build dir', '"build" dir needed to be created?', isNew)
- if (win && (!gyp.opts.msvs_version || gyp.opts.msvs_version === '2017')) {
- findVS2017(function (err, vsSetup) {
- if (err) {
- log.verbose('Not using VS2017:', err.message)
- createConfigFile()
- } else {
- createConfigFile(null, vsSetup)
- }
- })
- } else {
- createConfigFile()
- }
- })
- }
-
- function createConfigFile (err, vsSetup) {
- if (err) return callback(err)
-
- var configFilename = 'config.gypi'
- var configPath = path.resolve(buildDir, configFilename)
-
- log.verbose('build/' + configFilename, 'creating config file')
-
- var config = process.config || {}
- , defaults = config.target_defaults
- , variables = config.variables
-
- // default "config.variables"
- if (!variables) variables = config.variables = {}
-
- // default "config.defaults"
- if (!defaults) defaults = config.target_defaults = {}
-
- // don't inherit the "defaults" from node's `process.config` object.
- // doing so could cause problems in cases where the `node` executable was
- // compiled on a different machine (with different lib/include paths) than
- // the machine where the addon is being built to
- defaults.cflags = []
- defaults.defines = []
- defaults.include_dirs = []
- defaults.libraries = []
-
- // set the default_configuration prop
- if ('debug' in gyp.opts) {
- defaults.default_configuration = gyp.opts.debug ? 'Debug' : 'Release'
- }
- if (!defaults.default_configuration) {
- defaults.default_configuration = 'Release'
- }
-
- // set the target_arch variable
- variables.target_arch = gyp.opts.arch || process.arch || 'ia32'
-
- // set the node development directory
- variables.nodedir = nodeDir
-
- // disable -T "thin" static archives by default
- variables.standalone_static_library = gyp.opts.thin ? 0 : 1
-
- if (vsSetup) {
- // GYP doesn't (yet) have support for VS2017, so we force it to VS2015
- // to avoid pulling a floating patch that has not landed upstream.
- // Ref: https://chromium-review.googlesource.com/#/c/433540/
- gyp.opts.msvs_version = '2015'
- process.env['GYP_MSVS_VERSION'] = 2015
- process.env['GYP_MSVS_OVERRIDE_PATH'] = vsSetup.path
- defaults['msbuild_toolset'] = 'v141'
- defaults['msvs_windows_target_platform_version'] = vsSetup.sdk
- variables['msbuild_path'] = path.join(vsSetup.path, 'MSBuild', '15.0',
- 'Bin', 'MSBuild.exe')
- }
-
- // loop through the rest of the opts and add the unknown ones as variables.
- // this allows for module-specific configure flags like:
- //
- // $ node-gyp configure --shared-libxml2
- Object.keys(gyp.opts).forEach(function (opt) {
- if (opt === 'argv') return
- if (opt in gyp.configDefs) return
- variables[opt.replace(/-/g, '_')] = gyp.opts[opt]
- })
-
- // ensures that any boolean values from `process.config` get stringified
- function boolsToString (k, v) {
- if (typeof v === 'boolean')
- return String(v)
- return v
- }
-
- log.silly('build/' + configFilename, config)
-
- // now write out the config.gypi file to the build/ dir
- var prefix = '# Do not edit. File was generated by node-gyp\'s "configure" step'
- , json = JSON.stringify(config, boolsToString, 2)
- log.verbose('build/' + configFilename, 'writing out config file: %s', configPath)
- configs.push(configPath)
- fs.writeFile(configPath, [prefix, json, ''].join('\n'), findConfigs)
- }
-
- function findConfigs (err) {
- if (err) return callback(err)
- var name = configNames.shift()
- if (!name) return runGyp()
- var fullPath = path.resolve(name)
- log.verbose(name, 'checking for gypi file: %s', fullPath)
- fs.stat(fullPath, function (err, stat) {
- if (err) {
- if (err.code == 'ENOENT') {
- findConfigs() // check next gypi filename
- } else {
- callback(err)
- }
- } else {
- log.verbose(name, 'found gypi file')
- configs.push(fullPath)
- findConfigs()
- }
- })
- }
-
- function runGyp (err) {
- if (err) return callback(err)
-
- if (!~argv.indexOf('-f') && !~argv.indexOf('--format')) {
- if (win) {
- log.verbose('gyp', 'gyp format was not specified; forcing "msvs"')
- // force the 'make' target for non-Windows
- argv.push('-f', 'msvs')
- } else {
- log.verbose('gyp', 'gyp format was not specified; forcing "make"')
- // force the 'make' target for non-Windows
- argv.push('-f', 'make')
- }
- }
-
- function hasMsvsVersion () {
- return argv.some(function (arg) {
- return arg.indexOf('msvs_version') === 0
- })
- }
-
- if (win && !hasMsvsVersion()) {
- if ('msvs_version' in gyp.opts) {
- argv.push('-G', 'msvs_version=' + gyp.opts.msvs_version)
- } else {
- argv.push('-G', 'msvs_version=auto')
- }
- }
-
- // include all the ".gypi" files that were found
- configs.forEach(function (config) {
- argv.push('-I', config)
- })
-
- // For AIX and z/OS we need to set up the path to the exports file
- // which contains the symbols needed for linking.
- var node_exp_file = undefined
- if (process.platform === 'aix' || process.platform === 'os390') {
- var ext = process.platform === 'aix' ? 'exp' : 'x'
- var node_root_dir = findNodeDirectory()
- var candidates = undefined
- if (process.platform === 'aix') {
- candidates = ['include/node/node',
- 'out/Release/node',
- 'out/Debug/node',
- 'node'
- ].map(function(file) {
- return file + '.' + ext
- })
- } else {
- candidates = ['out/Release/obj.target/libnode',
- 'out/Debug/obj.target/libnode',
- 'lib/libnode'
- ].map(function(file) {
- return file + '.' + ext
- })
- }
- var logprefix = 'find exports file'
- node_exp_file = findAccessibleSync(logprefix, node_root_dir, candidates)
- if (node_exp_file !== undefined) {
- log.verbose(logprefix, 'Found exports file: %s', node_exp_file)
- } else {
- var msg = msgFormat('Could not find node.%s file in %s', ext, node_root_dir)
- log.error(logprefix, 'Could not find exports file')
- return callback(new Error(msg))
- }
- }
-
- // this logic ported from the old `gyp_addon` python file
- var gyp_script = path.resolve(__dirname, '..', 'gyp', 'gyp_main.py')
- var addon_gypi = path.resolve(__dirname, '..', 'addon.gypi')
- var common_gypi = path.resolve(nodeDir, 'include/node/common.gypi')
- fs.stat(common_gypi, function (err, stat) {
- if (err)
- common_gypi = path.resolve(nodeDir, 'common.gypi')
-
- var output_dir = 'build'
- if (win) {
- // Windows expects an absolute path
- output_dir = buildDir
- }
- var nodeGypDir = path.resolve(__dirname, '..')
- var nodeLibFile = path.join(nodeDir,
- !gyp.opts.nodedir ? '<(target_arch)' : '$(Configuration)',
- release.name + '.lib')
-
- argv.push('-I', addon_gypi)
- argv.push('-I', common_gypi)
- argv.push('-Dlibrary=shared_library')
- argv.push('-Dvisibility=default')
- argv.push('-Dnode_root_dir=' + nodeDir)
- if (process.platform === 'aix' || process.platform === 'os390') {
- argv.push('-Dnode_exp_file=' + node_exp_file)
- }
- argv.push('-Dnode_gyp_dir=' + nodeGypDir)
- argv.push('-Dnode_lib_file=' + nodeLibFile)
- argv.push('-Dmodule_root_dir=' + process.cwd())
- argv.push('-Dnode_engine=' +
- (gyp.opts.node_engine || process.jsEngine || 'v8'))
- argv.push('--depth=.')
- argv.push('--no-parallel')
-
- // tell gyp to write the Makefile/Solution files into output_dir
- argv.push('--generator-output', output_dir)
-
- // tell make to write its output into the same dir
- argv.push('-Goutput_dir=.')
-
- // enforce use of the "binding.gyp" file
- argv.unshift('binding.gyp')
-
- // execute `gyp` from the current target nodedir
- argv.unshift(gyp_script)
-
- // make sure python uses files that came with this particular node package
- var pypath = [path.join(__dirname, '..', 'gyp', 'pylib')]
- if (process.env.PYTHONPATH) {
- pypath.push(process.env.PYTHONPATH)
- }
- process.env.PYTHONPATH = pypath.join(win ? ';' : ':')
-
- var cp = gyp.spawn(python, argv)
- cp.on('exit', onCpExit)
- })
- }
-
- /**
- * Called when the `gyp` child process exits.
- */
-
- function onCpExit (code, signal) {
- if (code !== 0) {
- callback(new Error('`gyp` failed with exit code: ' + code))
- } else {
- // we're done
- callback()
- }
- }
-
-}
-
-/**
- * Returns the first file or directory from an array of candidates that is
- * readable by the current user, or undefined if none of the candidates are
- * readable.
- */
-function findAccessibleSync (logprefix, dir, candidates) {
- for (var next = 0; next < candidates.length; next++) {
- var candidate = path.resolve(dir, candidates[next])
- try {
- var fd = fs.openSync(candidate, 'r')
- } catch (e) {
- // this candidate was not found or not readable, do nothing
- log.silly(logprefix, 'Could not open %s: %s', candidate, e.message)
- continue
- }
- fs.closeSync(fd)
- log.silly(logprefix, 'Found readable %s', candidate)
- return candidate
- }
-
- return undefined
-}
-
-function PythonFinder(python, callback) {
- this.callback = callback
- this.python = python
-}
-
-PythonFinder.prototype = {
- checkPythonLauncherDepth: 0,
- env: process.env,
- execFile: cp.execFile,
- log: log,
- resolve: path.win32 && path.win32.resolve || path.resolve,
- stat: fs.stat,
- which: which,
- win: win,
-
- checkPython: function checkPython () {
- this.log.verbose('check python',
- 'checking for Python executable "%s" in the PATH',
- this.python)
- this.which(this.python, function (err, execPath) {
- if (err) {
- this.log.verbose('`which` failed', this.python, err)
- if (this.python === 'python2') {
- this.python = 'python'
- return this.checkPython()
- }
- if (this.win) {
- this.checkPythonLauncher()
- } else {
- this.failNoPython()
- }
- } else {
- this.log.verbose('`which` succeeded', this.python, execPath)
- // Found the `python` executable, and from now on we use it explicitly.
- // This solves #667 and #750 (`execFile` won't run batch files
- // (*.cmd, and *.bat))
- this.python = execPath
- this.checkPythonVersion()
- }
- }.bind(this))
- },
-
- // Distributions of Python on Windows by default install with the "py.exe"
- // Python launcher which is more likely to exist than the Python executable
- // being in the $PATH.
- // Because the Python launcher supports all versions of Python, we have to
- // explicitly request a Python 2 version. This is done by supplying "-2" as
- // the first command line argument. Since "py.exe -2" would be an invalid
- // executable for "execFile", we have to use the launcher to figure out
- // where the actual "python.exe" executable is located.
- checkPythonLauncher: function checkPythonLauncher () {
- this.checkPythonLauncherDepth += 1
-
- this.log.verbose(
- 'could not find "' + this.python + '". checking python launcher')
- var env = extend({}, this.env)
- env.TERM = 'dumb'
-
- var launcherArgs = ['-2', '-c', 'import sys; print sys.executable']
- this.execFile('py.exe', launcherArgs, { env: env }, function (err, stdout) {
- if (err) {
- this.guessPython()
- } else {
- this.python = stdout.trim()
- this.log.verbose('check python launcher',
- 'python executable found: %j',
- this.python)
- this.checkPythonVersion()
- }
- this.checkPythonLauncherDepth -= 1
- }.bind(this))
- },
-
- checkPythonVersion: function checkPythonVersion () {
- var args = ['-c', 'import sys; print "%s.%s.%s" % sys.version_info[:3];']
- var env = extend({}, this.env)
- env.TERM = 'dumb'
-
- this.execFile(this.python, args, { env: env }, function (err, stdout) {
- if (err) {
- return this.callback(err)
- }
- this.log.verbose('check python version',
- '`%s -c "' + args[1] + '"` returned: %j',
- this.python, stdout)
- var version = stdout.trim()
- var range = semver.Range('>=2.5.0 <3.0.0')
- var valid = false
- try {
- valid = range.test(version)
- } catch (e) {
- this.log.silly('range.test() error', e)
- }
- if (valid) {
- this.callback(null, this.python)
- } else if (this.win && this.checkPythonLauncherDepth === 0) {
- this.checkPythonLauncher()
- } else {
- this.failPythonVersion(version)
- }
- }.bind(this))
- },
-
- failNoPython: function failNoPython () {
- var errmsg =
- 'Can\'t find Python executable "' + this.python +
- '", you can set the PYTHON env variable.'
- this.callback(new Error(errmsg))
- },
-
- failPythonVersion: function failPythonVersion (badVersion) {
- var errmsg =
- 'Python executable "' + this.python +
- '" is v' + badVersion + ', which is not supported by gyp.\n' +
- 'You can pass the --python switch to point to ' +
- 'Python >= v2.5.0 & < 3.0.0.'
- this.callback(new Error(errmsg))
- },
-
- // Called on Windows when "python" isn't available in the current $PATH.
- // We are going to check if "%SystemDrive%\python27\python.exe" exists.
- guessPython: function guessPython () {
- this.log.verbose('could not find "' + this.python + '". guessing location')
- var rootDir = this.env.SystemDrive || 'C:\\'
- if (rootDir[rootDir.length - 1] !== '\\') {
- rootDir += '\\'
- }
- var pythonPath = this.resolve(rootDir, 'Python27', 'python.exe')
- this.log.verbose('ensuring that file exists:', pythonPath)
- this.stat(pythonPath, function (err, stat) {
- if (err) {
- if (err.code == 'ENOENT') {
- this.failNoPython()
- } else {
- this.callback(err)
- }
- return
- }
- this.python = pythonPath
- this.checkPythonVersion()
- }.bind(this))
- },
-}
-
-function findPython (python, callback) {
- var finder = new PythonFinder(python, callback)
- finder.checkPython()
-}
diff --git a/node_modules/node-gyp/lib/find-node-directory.js b/node_modules/node-gyp/lib/find-node-directory.js
deleted file mode 100644
index 3aee8a1..0000000
--- a/node_modules/node-gyp/lib/find-node-directory.js
+++ /dev/null
@@ -1,61 +0,0 @@
-var path = require('path')
- , log = require('npmlog')
-
-function findNodeDirectory(scriptLocation, processObj) {
- // set dirname and process if not passed in
- // this facilitates regression tests
- if (scriptLocation === undefined) {
- scriptLocation = __dirname
- }
- if (processObj === undefined) {
- processObj = process
- }
-
- // Have a look to see what is above us, to try and work out where we are
- npm_parent_directory = path.join(scriptLocation, '../../../..')
- log.verbose('node-gyp root', 'npm_parent_directory is '
- + path.basename(npm_parent_directory))
- node_root_dir = ""
-
- log.verbose('node-gyp root', 'Finding node root directory')
- if (path.basename(npm_parent_directory) === 'deps') {
- // We are in a build directory where this script lives in
- // deps/npm/node_modules/node-gyp/lib
- node_root_dir = path.join(npm_parent_directory, '..')
- log.verbose('node-gyp root', 'in build directory, root = '
- + node_root_dir)
- } else if (path.basename(npm_parent_directory) === 'node_modules') {
- // We are in a node install directory where this script lives in
- // lib/node_modules/npm/node_modules/node-gyp/lib or
- // node_modules/npm/node_modules/node-gyp/lib depending on the
- // platform
- if (processObj.platform === 'win32') {
- node_root_dir = path.join(npm_parent_directory, '..')
- } else {
- node_root_dir = path.join(npm_parent_directory, '../..')
- }
- log.verbose('node-gyp root', 'in install directory, root = '
- + node_root_dir)
- } else {
- // We don't know where we are, try working it out from the location
- // of the node binary
- var node_dir = path.dirname(processObj.execPath)
- var directory_up = path.basename(node_dir)
- if (directory_up === 'bin') {
- node_root_dir = path.join(node_dir, '..')
- } else if (directory_up === 'Release' || directory_up === 'Debug') {
- // If we are a recently built node, and the directory structure
- // is that of a repository. If we are on Windows then we only need
- // to go one level up, everything else, two
- if (processObj.platform === 'win32') {
- node_root_dir = path.join(node_dir, '..')
- } else {
- node_root_dir = path.join(node_dir, '../..')
- }
- }
- // Else return the default blank, "".
- }
- return node_root_dir
-}
-
-module.exports = findNodeDirectory
diff --git a/node_modules/node-gyp/lib/find-vs2017.js b/node_modules/node-gyp/lib/find-vs2017.js
deleted file mode 100644
index ad46cea..0000000
--- a/node_modules/node-gyp/lib/find-vs2017.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var log = require('npmlog')
- , execFile = require('child_process').execFile
- , path = require('path')
-
-function findVS2017(callback) {
- var ps = path.join(process.env.SystemRoot, 'System32', 'WindowsPowerShell',
- 'v1.0', 'powershell.exe')
- var csFile = path.join(__dirname, 'Find-VS2017.cs')
- var psArgs = ['-ExecutionPolicy', 'Unrestricted', '-NoProfile',
- '-Command', '&{Add-Type -Path \'' + csFile + '\';' +
- '[VisualStudioConfiguration.Main]::Query()}']
-
- log.silly('find vs2017', 'Running', ps, psArgs)
- var child = execFile(ps, psArgs, { encoding: 'utf8' },
- function (err, stdout, stderr) {
- log.silly('find vs2017', 'PS err:', err)
- log.silly('find vs2017', 'PS stdout:', stdout)
- log.silly('find vs2017', 'PS stderr:', stderr)
-
- if (err)
- return callback(new Error('Could not use PowerShell to find VS2017'))
-
- var vsSetup
- try {
- vsSetup = JSON.parse(stdout)
- } catch (e) {
- log.silly('find vs2017', e)
- return callback(new Error('Could not use PowerShell to find VS2017'))
- }
- log.silly('find vs2017', 'vsSetup:', vsSetup)
-
- if (vsSetup && vsSetup.log)
- log.verbose('find vs2017', vsSetup.log.trimRight())
-
- if (!vsSetup || !vsSetup.path || !vsSetup.sdk) {
- return callback(new Error('No usable installation of VS2017 found'))
- }
-
- log.verbose('find vs2017', 'using installation:', vsSetup.path)
- callback(null, { "path": vsSetup.path, "sdk": vsSetup.sdk })
- })
-
- child.stdin.end()
-}
-
-module.exports = findVS2017
diff --git a/node_modules/node-gyp/lib/install.js b/node_modules/node-gyp/lib/install.js
deleted file mode 100644
index cb84972..0000000
--- a/node_modules/node-gyp/lib/install.js
+++ /dev/null
@@ -1,475 +0,0 @@
-module.exports = exports = function (gyp, argv, callback) {
- return install(fs, gyp, argv, callback)
-}
-
-module.exports.test = {
- download: download,
- install: install,
- readCAFile: readCAFile,
-}
-
-exports.usage = 'Install node development files for the specified node version.'
-
-/**
- * Module dependencies.
- */
-
-var fs = require('graceful-fs')
- , osenv = require('osenv')
- , tar = require('tar')
- , rm = require('rimraf')
- , path = require('path')
- , crypto = require('crypto')
- , zlib = require('zlib')
- , log = require('npmlog')
- , semver = require('semver')
- , fstream = require('fstream')
- , request = require('request')
- , mkdir = require('mkdirp')
- , processRelease = require('./process-release')
- , win = process.platform == 'win32'
-
-function install (fs, gyp, argv, callback) {
-
- var release = processRelease(argv, gyp, process.version, process.release)
-
- // ensure no double-callbacks happen
- function cb (err) {
- if (cb.done) return
- cb.done = true
- if (err) {
- log.warn('install', 'got an error, rolling back install')
- // roll-back the install if anything went wrong
- gyp.commands.remove([ release.versionDir ], function (err2) {
- callback(err)
- })
- } else {
- callback(null, release.version)
- }
- }
-
- // Determine which node dev files version we are installing
- log.verbose('install', 'input version string %j', release.version)
-
- if (!release.semver) {
- // could not parse the version string with semver
- return callback(new Error('Invalid version number: ' + release.version))
- }
-
- if (semver.lt(release.version, '0.8.0')) {
- return callback(new Error('Minimum target version is `0.8.0` or greater. Got: ' + release.version))
- }
-
- // 0.x.y-pre versions are not published yet and cannot be installed. Bail.
- if (release.semver.prerelease[0] === 'pre') {
- log.verbose('detected "pre" node version', release.version)
- if (gyp.opts.nodedir) {
- log.verbose('--nodedir flag was passed; skipping install', gyp.opts.nodedir)
- callback()
- } else {
- callback(new Error('"pre" versions of node cannot be installed, use the --nodedir flag instead'))
- }
- return
- }
-
- // flatten version into String
- log.verbose('install', 'installing version: %s', release.versionDir)
-
- // the directory where the dev files will be installed
- var devDir = path.resolve(gyp.devDir, release.versionDir)
-
- // If '--ensure' was passed, then don't *always* install the version;
- // check if it is already installed, and only install when needed
- if (gyp.opts.ensure) {
- log.verbose('install', '--ensure was passed, so won\'t reinstall if already installed')
- fs.stat(devDir, function (err, stat) {
- if (err) {
- if (err.code == 'ENOENT') {
- log.verbose('install', 'version not already installed, continuing with install', release.version)
- go()
- } else if (err.code == 'EACCES') {
- eaccesFallback(err)
- } else {
- cb(err)
- }
- return
- }
- log.verbose('install', 'version is already installed, need to check "installVersion"')
- var installVersionFile = path.resolve(devDir, 'installVersion')
- fs.readFile(installVersionFile, 'ascii', function (err, ver) {
- if (err && err.code != 'ENOENT') {
- return cb(err)
- }
- var installVersion = parseInt(ver, 10) || 0
- log.verbose('got "installVersion"', installVersion)
- log.verbose('needs "installVersion"', gyp.package.installVersion)
- if (installVersion < gyp.package.installVersion) {
- log.verbose('install', 'version is no good; reinstalling')
- go()
- } else {
- log.verbose('install', 'version is good')
- cb()
- }
- })
- })
- } else {
- go()
- }
-
- function getContentSha(res, callback) {
- var shasum = crypto.createHash('sha256')
- res.on('data', function (chunk) {
- shasum.update(chunk)
- }).on('end', function () {
- callback(null, shasum.digest('hex'))
- })
- }
-
- function go () {
-
- log.verbose('ensuring nodedir is created', devDir)
-
- // first create the dir for the node dev files
- mkdir(devDir, function (err, created) {
- if (err) {
- if (err.code == 'EACCES') {
- eaccesFallback(err)
- } else {
- cb(err)
- }
- return
- }
-
- if (created) {
- log.verbose('created nodedir', created)
- }
-
- // now download the node tarball
- var tarPath = gyp.opts.tarball
- var badDownload = false
- , extractCount = 0
- , gunzip = zlib.createGunzip()
- , extracter = tar.Extract({ path: devDir, strip: 1, filter: isValid })
-
- var contentShasums = {}
- var expectShasums = {}
-
- // checks if a file to be extracted from the tarball is valid.
- // only .h header files and the gyp files get extracted
- function isValid () {
- var name = this.path.substring(devDir.length + 1)
- var isValid = valid(name)
- if (name === '' && this.type === 'Directory') {
- // the first directory entry is ok
- return true
- }
- if (isValid) {
- log.verbose('extracted file from tarball', name)
- extractCount++
- } else {
- // invalid
- log.silly('ignoring from tarball', name)
- }
- return isValid
- }
-
- gunzip.on('error', cb)
- extracter.on('error', cb)
- extracter.on('end', afterTarball)
-
- // download the tarball, gunzip and extract!
-
- if (tarPath) {
- var input = fs.createReadStream(tarPath)
- input.pipe(gunzip).pipe(extracter)
- return
- }
-
- try {
- var req = download(gyp, process.env, release.tarballUrl)
- } catch (e) {
- return cb(e)
- }
-
- // something went wrong downloading the tarball?
- req.on('error', function (err) {
- if (err.code === 'ENOTFOUND') {
- return cb(new Error('This is most likely not a problem with node-gyp or the package itself and\n' +
- 'is related to network connectivity. In most cases you are behind a proxy or have bad \n' +
- 'network settings.'))
- }
- badDownload = true
- cb(err)
- })
-
- req.on('close', function () {
- if (extractCount === 0) {
- cb(new Error('Connection closed while downloading tarball file'))
- }
- })
-
- req.on('response', function (res) {
- if (res.statusCode !== 200) {
- badDownload = true
- cb(new Error(res.statusCode + ' response downloading ' + release.tarballUrl))
- return
- }
- // content checksum
- getContentSha(res, function (_, checksum) {
- var filename = path.basename(release.tarballUrl).trim()
- contentShasums[filename] = checksum
- log.verbose('content checksum', filename, checksum)
- })
-
- // start unzipping and untaring
- req.pipe(gunzip).pipe(extracter)
- })
-
- // invoked after the tarball has finished being extracted
- function afterTarball () {
- if (badDownload) return
- if (extractCount === 0) {
- return cb(new Error('There was a fatal problem while downloading/extracting the tarball'))
- }
- log.verbose('tarball', 'done parsing tarball')
- var async = 0
-
- if (win) {
- // need to download node.lib
- async++
- downloadNodeLib(deref)
- }
-
- // write the "installVersion" file
- async++
- var installVersionPath = path.resolve(devDir, 'installVersion')
- fs.writeFile(installVersionPath, gyp.package.installVersion + '\n', deref)
-
- // Only download SHASUMS.txt if not using tarPath override
- if (!tarPath) {
- // download SHASUMS.txt
- async++
- downloadShasums(deref)
- }
-
- if (async === 0) {
- // no async tasks required
- cb()
- }
-
- function deref (err) {
- if (err) return cb(err)
-
- async--
- if (!async) {
- log.verbose('download contents checksum', JSON.stringify(contentShasums))
- // check content shasums
- for (var k in contentShasums) {
- log.verbose('validating download checksum for ' + k, '(%s == %s)', contentShasums[k], expectShasums[k])
- if (contentShasums[k] !== expectShasums[k]) {
- cb(new Error(k + ' local checksum ' + contentShasums[k] + ' not match remote ' + expectShasums[k]))
- return
- }
- }
- cb()
- }
- }
- }
-
- function downloadShasums(done) {
- log.verbose('check download content checksum, need to download `SHASUMS256.txt`...')
- var shasumsPath = path.resolve(devDir, 'SHASUMS256.txt')
-
- log.verbose('checksum url', release.shasumsUrl)
- try {
- var req = download(gyp, process.env, release.shasumsUrl)
- } catch (e) {
- return cb(e)
- }
-
- req.on('error', done)
- req.on('response', function (res) {
- if (res.statusCode !== 200) {
- done(new Error(res.statusCode + ' status code downloading checksum'))
- return
- }
-
- var chunks = []
- res.on('data', function (chunk) {
- chunks.push(chunk)
- })
- res.on('end', function () {
- var lines = Buffer.concat(chunks).toString().trim().split('\n')
- lines.forEach(function (line) {
- var items = line.trim().split(/\s+/)
- if (items.length !== 2) return
-
- // 0035d18e2dcf9aad669b1c7c07319e17abfe3762 ./node-v0.11.4.tar.gz
- var name = items[1].replace(/^\.\//, '')
- expectShasums[name] = items[0]
- })
-
- log.verbose('checksum data', JSON.stringify(expectShasums))
- done()
- })
- })
- }
-
- function downloadNodeLib (done) {
- log.verbose('on Windows; need to download `' + release.name + '.lib`...')
- var dir32 = path.resolve(devDir, 'ia32')
- , dir64 = path.resolve(devDir, 'x64')
- , libPath32 = path.resolve(dir32, release.name + '.lib')
- , libPath64 = path.resolve(dir64, release.name + '.lib')
-
- log.verbose('32-bit ' + release.name + '.lib dir', dir32)
- log.verbose('64-bit ' + release.name + '.lib dir', dir64)
- log.verbose('`' + release.name + '.lib` 32-bit url', release.libUrl32)
- log.verbose('`' + release.name + '.lib` 64-bit url', release.libUrl64)
-
- var async = 2
- mkdir(dir32, function (err) {
- if (err) return done(err)
- log.verbose('streaming 32-bit ' + release.name + '.lib to:', libPath32)
-
- try {
- var req = download(gyp, process.env, release.libUrl32, cb)
- } catch (e) {
- return cb(e)
- }
-
- req.on('error', done)
- req.on('response', function (res) {
- if (res.statusCode !== 200) {
- done(new Error(res.statusCode + ' status code downloading 32-bit ' + release.name + '.lib'))
- return
- }
-
- getContentSha(res, function (_, checksum) {
- contentShasums[release.libPath32] = checksum
- log.verbose('content checksum', release.libPath32, checksum)
- })
-
- var ws = fs.createWriteStream(libPath32)
- ws.on('error', cb)
- req.pipe(ws)
- })
- req.on('end', function () {
- --async || done()
- })
- })
- mkdir(dir64, function (err) {
- if (err) return done(err)
- log.verbose('streaming 64-bit ' + release.name + '.lib to:', libPath64)
-
- try {
- var req = download(gyp, process.env, release.libUrl64, cb)
- } catch (e) {
- return cb(e)
- }
-
- req.on('error', done)
- req.on('response', function (res) {
- if (res.statusCode !== 200) {
- done(new Error(res.statusCode + ' status code downloading 64-bit ' + release.name + '.lib'))
- return
- }
-
- getContentSha(res, function (_, checksum) {
- contentShasums[release.libPath64] = checksum
- log.verbose('content checksum', release.libPath64, checksum)
- })
-
- var ws = fs.createWriteStream(libPath64)
- ws.on('error', cb)
- req.pipe(ws)
- })
- req.on('end', function () {
- --async || done()
- })
- })
- } // downloadNodeLib()
-
- }) // mkdir()
-
- } // go()
-
- /**
- * Checks if a given filename is "valid" for this installation.
- */
-
- function valid (file) {
- // header files
- var extname = path.extname(file);
- return extname === '.h' || extname === '.gypi';
- }
-
- /**
- * The EACCES fallback is a workaround for npm's `sudo` behavior, where
- * it drops the permissions before invoking any child processes (like
- * node-gyp). So what happens is the "nobody" user doesn't have
- * permission to create the dev dir. As a fallback, make the tmpdir() be
- * the dev dir for this installation. This is not ideal, but at least
- * the compilation will succeed...
- */
-
- function eaccesFallback (err) {
- var noretry = '--node_gyp_internal_noretry'
- if (-1 !== argv.indexOf(noretry)) return cb(err)
- var tmpdir = osenv.tmpdir()
- gyp.devDir = path.resolve(tmpdir, '.node-gyp')
- log.warn('EACCES', 'user "%s" does not have permission to access the dev dir "%s"', osenv.user(), devDir)
- log.warn('EACCES', 'attempting to reinstall using temporary dev dir "%s"', gyp.devDir)
- if (process.cwd() == tmpdir) {
- log.verbose('tmpdir == cwd', 'automatically will remove dev files after to save disk space')
- gyp.todo.push({ name: 'remove', args: argv })
- }
- gyp.commands.install([noretry].concat(argv), cb)
- }
-
-}
-
-function download (gyp, env, url) {
- log.http('GET', url)
-
- var requestOpts = {
- uri: url
- , headers: {
- 'User-Agent': 'node-gyp v' + gyp.version + ' (node ' + process.version + ')'
- }
- }
-
- var cafile = gyp.opts.cafile
- if (cafile) {
- requestOpts.ca = readCAFile(cafile)
- }
-
- // basic support for a proxy server
- var proxyUrl = gyp.opts.proxy
- || env.http_proxy
- || env.HTTP_PROXY
- || env.npm_config_proxy
- if (proxyUrl) {
- if (/^https?:\/\//i.test(proxyUrl)) {
- log.verbose('download', 'using proxy url: "%s"', proxyUrl)
- requestOpts.proxy = proxyUrl
- } else {
- log.warn('download', 'ignoring invalid "proxy" config setting: "%s"', proxyUrl)
- }
- }
-
- var req = request(requestOpts)
- req.on('response', function (res) {
- log.http(res.statusCode, url)
- })
-
- return req
-}
-
-function readCAFile (filename) {
- // The CA file can contain multiple certificates so split on certificate
- // boundaries. [\S\s]*? is used to match everything including newlines.
- var ca = fs.readFileSync(filename, 'utf8')
- var re = /(-----BEGIN CERTIFICATE-----[\S\s]*?-----END CERTIFICATE-----)/g
- return ca.match(re)
-}
diff --git a/node_modules/node-gyp/lib/list.js b/node_modules/node-gyp/lib/list.js
deleted file mode 100644
index 9d680a5..0000000
--- a/node_modules/node-gyp/lib/list.js
+++ /dev/null
@@ -1,33 +0,0 @@
-
-module.exports = exports = list
-
-exports.usage = 'Prints a listing of the currently installed node development files'
-
-/**
- * Module dependencies.
- */
-
-var fs = require('graceful-fs')
- , path = require('path')
- , log = require('npmlog')
-
-function list (gyp, args, callback) {
-
- var devDir = gyp.devDir
- log.verbose('list', 'using node-gyp dir:', devDir)
-
- // readdir() the node-gyp dir
- fs.readdir(devDir, onreaddir)
-
- function onreaddir (err, versions) {
- if (err && err.code != 'ENOENT') {
- return callback(err)
- }
- if (Array.isArray(versions)) {
- versions = versions.filter(function (v) { return v != 'current' })
- } else {
- versions = []
- }
- callback(null, versions)
- }
-}
diff --git a/node_modules/node-gyp/lib/node-gyp.js b/node_modules/node-gyp/lib/node-gyp.js
deleted file mode 100644
index a841161..0000000
--- a/node_modules/node-gyp/lib/node-gyp.js
+++ /dev/null
@@ -1,216 +0,0 @@
-
-/**
- * Module exports.
- */
-
-module.exports = exports = gyp
-
-/**
- * Module dependencies.
- */
-
-var fs = require('graceful-fs')
- , path = require('path')
- , nopt = require('nopt')
- , log = require('npmlog')
- , child_process = require('child_process')
- , EE = require('events').EventEmitter
- , inherits = require('util').inherits
- , commands = [
- // Module build commands
- 'build'
- , 'clean'
- , 'configure'
- , 'rebuild'
- // Development Header File management commands
- , 'install'
- , 'list'
- , 'remove'
- ]
- , aliases = {
- 'ls': 'list'
- , 'rm': 'remove'
- }
-
-// differentiate node-gyp's logs from npm's
-log.heading = 'gyp'
-
-/**
- * The `gyp` function.
- */
-
-function gyp () {
- return new Gyp()
-}
-
-function Gyp () {
- var self = this
-
- this.devDir = ''
- this.commands = {}
-
- commands.forEach(function (command) {
- self.commands[command] = function (argv, callback) {
- log.verbose('command', command, argv)
- return require('./' + command)(self, argv, callback)
- }
- })
-}
-inherits(Gyp, EE)
-exports.Gyp = Gyp
-var proto = Gyp.prototype
-
-/**
- * Export the contents of the package.json.
- */
-
-proto.package = require('../package')
-
-/**
- * nopt configuration definitions
- */
-
-proto.configDefs = {
- help: Boolean // everywhere
- , arch: String // 'configure'
- , cafile: String // 'install'
- , debug: Boolean // 'build'
- , directory: String // bin
- , make: String // 'build'
- , msvs_version: String // 'configure'
- , ensure: Boolean // 'install'
- , solution: String // 'build' (windows only)
- , proxy: String // 'install'
- , devdir: String // everywhere
- , nodedir: String // 'configure'
- , loglevel: String // everywhere
- , python: String // 'configure'
- , 'dist-url': String // 'install'
- , 'tarball': String // 'install'
- , jobs: String // 'build'
- , thin: String // 'configure'
-}
-
-/**
- * nopt shorthands
- */
-
-proto.shorthands = {
- release: '--no-debug'
- , C: '--directory'
- , debug: '--debug'
- , j: '--jobs'
- , silly: '--loglevel=silly'
- , verbose: '--loglevel=verbose'
- , silent: '--loglevel=silent'
-}
-
-/**
- * expose the command aliases for the bin file to use.
- */
-
-proto.aliases = aliases
-
-/**
- * Parses the given argv array and sets the 'opts',
- * 'argv' and 'command' properties.
- */
-
-proto.parseArgv = function parseOpts (argv) {
- this.opts = nopt(this.configDefs, this.shorthands, argv)
- this.argv = this.opts.argv.remain.slice()
-
- var commands = this.todo = []
-
- // create a copy of the argv array with aliases mapped
- argv = this.argv.map(function (arg) {
- // is this an alias?
- if (arg in this.aliases) {
- arg = this.aliases[arg]
- }
- return arg
- }, this)
-
- // process the mapped args into "command" objects ("name" and "args" props)
- argv.slice().forEach(function (arg) {
- if (arg in this.commands) {
- var args = argv.splice(0, argv.indexOf(arg))
- argv.shift()
- if (commands.length > 0) {
- commands[commands.length - 1].args = args
- }
- commands.push({ name: arg, args: [] })
- }
- }, this)
- if (commands.length > 0) {
- commands[commands.length - 1].args = argv.splice(0)
- }
-
- // support for inheriting config env variables from npm
- var npm_config_prefix = 'npm_config_'
- Object.keys(process.env).forEach(function (name) {
- if (name.indexOf(npm_config_prefix) !== 0) return
- var val = process.env[name]
- if (name === npm_config_prefix + 'loglevel') {
- log.level = val
- } else {
- // add the user-defined options to the config
- name = name.substring(npm_config_prefix.length)
- // gyp@741b7f1 enters an infinite loop when it encounters
- // zero-length options so ensure those don't get through.
- if (name) this.opts[name] = val
- }
- }, this)
-
- if (this.opts.loglevel) {
- log.level = this.opts.loglevel
- }
- log.resume()
-}
-
-/**
- * Spawns a child process and emits a 'spawn' event.
- */
-
-proto.spawn = function spawn (command, args, opts) {
- if (!opts) opts = {}
- if (!opts.silent && !opts.stdio) {
- opts.stdio = [ 0, 1, 2 ]
- }
- var cp = child_process.spawn(command, args, opts)
- log.info('spawn', command)
- log.info('spawn args', args)
- return cp
-}
-
-/**
- * Returns the usage instructions for node-gyp.
- */
-
-proto.usage = function usage () {
- var str = [
- ''
- , ' Usage: node-gyp <command> [options]'
- , ''
- , ' where <command> is one of:'
- , commands.map(function (c) {
- return ' - ' + c + ' - ' + require('./' + c).usage
- }).join('\n')
- , ''
- , 'node-gyp@' + this.version + ' ' + path.resolve(__dirname, '..')
- , 'node@' + process.versions.node
- ].join('\n')
- return str
-}
-
-/**
- * Version number getter.
- */
-
-Object.defineProperty(proto, 'version', {
- get: function () {
- return this.package.version
- }
- , enumerable: true
-})
-
diff --git a/node_modules/node-gyp/lib/process-release.js b/node_modules/node-gyp/lib/process-release.js
deleted file mode 100644
index 0d177f1..0000000
--- a/node_modules/node-gyp/lib/process-release.js
+++ /dev/null
@@ -1,155 +0,0 @@
-var semver = require('semver')
- , url = require('url')
- , path = require('path')
- , log = require('npmlog')
-
- // versions where -headers.tar.gz started shipping
- , headersTarballRange = '>= 3.0.0 || ~0.12.10 || ~0.10.42'
- , bitsre = /\/win-(x86|x64)\//
- , bitsreV3 = /\/win-(x86|ia32|x64)\// // io.js v3.x.x shipped with "ia32" but should
- // have been "x86"
-
-// Captures all the logic required to determine download URLs, local directory and
-// file names. Inputs come from command-line switches (--target, --dist-url),
-// `process.version` and `process.release` where it exists.
-function processRelease (argv, gyp, defaultVersion, defaultRelease) {
- var version = (semver.valid(argv[0]) && argv[0]) || gyp.opts.target || defaultVersion
- , versionSemver = semver.parse(version)
- , overrideDistUrl = gyp.opts['dist-url'] || gyp.opts.disturl
- , isDefaultVersion
- , isIojs
- , name
- , distBaseUrl
- , baseUrl
- , libUrl32
- , libUrl64
- , tarballUrl
- , canGetHeaders
-
- if (!versionSemver) {
- // not a valid semver string, nothing we can do
- return { version: version }
- }
- // flatten version into String
- version = versionSemver.version
-
- // defaultVersion should come from process.version so ought to be valid semver
- isDefaultVersion = version === semver.parse(defaultVersion).version
-
- // can't use process.release if we're using --target=x.y.z
- if (!isDefaultVersion)
- defaultRelease = null
-
- if (defaultRelease) {
- // v3 onward, has process.release
- name = defaultRelease.name.replace(/io\.js/, 'iojs') // remove the '.' for directory naming purposes
- isIojs = name === 'iojs'
- } else {
- // old node or alternative --target=
- // semver.satisfies() doesn't like prerelease tags so test major directly
- isIojs = versionSemver.major >= 1 && versionSemver.major < 4
- name = isIojs ? 'iojs' : 'node'
- }
-
- // check for the nvm.sh standard mirror env variables
- if (!overrideDistUrl) {
- if (isIojs) {
- if (process.env.IOJS_ORG_MIRROR) {
- overrideDistUrl = process.env.IOJS_ORG_MIRROR
- } else if (process.env.NVM_IOJS_ORG_MIRROR) {// remove on next semver-major
- overrideDistUrl = process.env.NVM_IOJS_ORG_MIRROR
- log.warn('download',
- 'NVM_IOJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, ' +
- 'please use IOJS_ORG_MIRROR')
- }
- } else {
- if (process.env.NODEJS_ORG_MIRROR) {
- overrideDistUrl = process.env.NODEJS_ORG_MIRROR
- } else if (process.env.NVM_NODEJS_ORG_MIRROR) {// remove on next semver-major
- overrideDistUrl = process.env.NVM_NODEJS_ORG_MIRROR
- log.warn('download',
- 'NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, ' +
- 'please use NODEJS_ORG_MIRROR')
- }
- }
- }
-
- if (overrideDistUrl)
- log.verbose('download', 'using dist-url', overrideDistUrl)
-
- if (overrideDistUrl)
- distBaseUrl = overrideDistUrl.replace(/\/+$/, '')
- else
- distBaseUrl = isIojs ? 'https://iojs.org/download/release' : 'https://nodejs.org/dist'
- distBaseUrl += '/v' + version + '/'
-
- // new style, based on process.release so we have a lot of the data we need
- if (defaultRelease && defaultRelease.headersUrl && !overrideDistUrl) {
- baseUrl = url.resolve(defaultRelease.headersUrl, './')
- libUrl32 = resolveLibUrl(name, defaultRelease.libUrl || baseUrl || distBaseUrl, 'x86', versionSemver.major)
- libUrl64 = resolveLibUrl(name, defaultRelease.libUrl || baseUrl || distBaseUrl, 'x64', versionSemver.major)
-
- return {
- version: version,
- semver: versionSemver,
- name: name,
- baseUrl: baseUrl,
- tarballUrl: defaultRelease.headersUrl,
- shasumsUrl: url.resolve(baseUrl, 'SHASUMS256.txt'),
- versionDir: (name !== 'node' ? name + '-' : '') + version,
- libUrl32: libUrl32,
- libUrl64: libUrl64,
- libPath32: normalizePath(path.relative(url.parse(baseUrl).path, url.parse(libUrl32).path)),
- libPath64: normalizePath(path.relative(url.parse(baseUrl).path, url.parse(libUrl64).path))
- }
- }
-
- // older versions without process.release are captured here and we have to make
- // a lot of assumptions, additionally if you --target=x.y.z then we can't use the
- // current process.release
-
- baseUrl = distBaseUrl
- libUrl32 = resolveLibUrl(name, baseUrl, 'x86', versionSemver.major)
- libUrl64 = resolveLibUrl(name, baseUrl, 'x64', versionSemver.major)
- // making the bold assumption that anything with a version number >3.0.0 will
- // have a *-headers.tar.gz file in its dist location, even some frankenstein
- // custom version
- canGetHeaders = semver.satisfies(versionSemver, headersTarballRange)
- tarballUrl = url.resolve(baseUrl, name + '-v' + version + (canGetHeaders ? '-headers' : '') + '.tar.gz')
-
- return {
- version: version,
- semver: versionSemver,
- name: name,
- baseUrl: baseUrl,
- tarballUrl: tarballUrl,
- shasumsUrl: url.resolve(baseUrl, 'SHASUMS256.txt'),
- versionDir: (name !== 'node' ? name + '-' : '') + version,
- libUrl32: libUrl32,
- libUrl64: libUrl64,
- libPath32: normalizePath(path.relative(url.parse(baseUrl).path, url.parse(libUrl32).path)),
- libPath64: normalizePath(path.relative(url.parse(baseUrl).path, url.parse(libUrl64).path))
- }
-}
-
-function normalizePath (p) {
- return path.normalize(p).replace(/\\/g, '/')
-}
-
-function resolveLibUrl (name, defaultUrl, arch, versionMajor) {
- var base = url.resolve(defaultUrl, './')
- , hasLibUrl = bitsre.test(defaultUrl) || (versionMajor === 3 && bitsreV3.test(defaultUrl))
-
- if (!hasLibUrl) {
- // let's assume it's a baseUrl then
- if (versionMajor >= 1)
- return url.resolve(base, 'win-' + arch +'/' + name + '.lib')
- // prior to io.js@1.0.0 32-bit node.lib lives in /, 64-bit lives in /x64/
- return url.resolve(base, (arch === 'x64' ? 'x64/' : '') + name + '.lib')
- }
-
- // else we have a proper url to a .lib, just make sure it's the right arch
- return defaultUrl.replace(versionMajor === 3 ? bitsreV3 : bitsre, '/win-' + arch + '/')
-}
-
-module.exports = processRelease
diff --git a/node_modules/node-gyp/lib/rebuild.js b/node_modules/node-gyp/lib/rebuild.js
deleted file mode 100644
index 4c6f472..0000000
--- a/node_modules/node-gyp/lib/rebuild.js
+++ /dev/null
@@ -1,14 +0,0 @@
-
-module.exports = exports = rebuild
-
-exports.usage = 'Runs "clean", "configure" and "build" all at once'
-
-function rebuild (gyp, argv, callback) {
-
- gyp.todo.push(
- { name: 'clean', args: [] }
- , { name: 'configure', args: argv }
- , { name: 'build', args: [] }
- )
- process.nextTick(callback)
-}
diff --git a/node_modules/node-gyp/lib/remove.js b/node_modules/node-gyp/lib/remove.js
deleted file mode 100644
index eb80981..0000000
--- a/node_modules/node-gyp/lib/remove.js
+++ /dev/null
@@ -1,52 +0,0 @@
-
-module.exports = exports = remove
-
-exports.usage = 'Removes the node development files for the specified version'
-
-/**
- * Module dependencies.
- */
-
-var fs = require('fs')
- , rm = require('rimraf')
- , path = require('path')
- , log = require('npmlog')
- , semver = require('semver')
-
-function remove (gyp, argv, callback) {
-
- var devDir = gyp.devDir
- log.verbose('remove', 'using node-gyp dir:', devDir)
-
- // get the user-specified version to remove
- var version = argv[0] || gyp.opts.target
- log.verbose('remove', 'removing target version:', version)
-
- if (!version) {
- return callback(new Error('You must specify a version number to remove. Ex: "' + process.version + '"'))
- }
-
- var versionSemver = semver.parse(version)
- if (versionSemver) {
- // flatten the version Array into a String
- version = versionSemver.version
- }
-
- var versionPath = path.resolve(gyp.devDir, version)
- log.verbose('remove', 'removing development files for version:', version)
-
- // first check if its even installed
- fs.stat(versionPath, function (err, stat) {
- if (err) {
- if (err.code == 'ENOENT') {
- callback(null, 'version was already uninstalled: ' + version)
- } else {
- callback(err)
- }
- return
- }
- // Go ahead and delete the dir
- rm(versionPath, callback)
- })
-
-}
diff --git a/node_modules/node-gyp/node_modules/.bin/semver b/node_modules/node-gyp/node_modules/.bin/semver
deleted file mode 120000
index 317eb29..0000000
--- a/node_modules/node-gyp/node_modules/.bin/semver
+++ /dev/null
@@ -1 +0,0 @@
-../semver/bin/semver \ No newline at end of file
diff --git a/node_modules/node-gyp/node_modules/semver/LICENSE b/node_modules/node-gyp/node_modules/semver/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/node-gyp/node_modules/semver/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/node-gyp/node_modules/semver/README.md b/node_modules/node-gyp/node_modules/semver/README.md
deleted file mode 100644
index cbd9565..0000000
--- a/node_modules/node-gyp/node_modules/semver/README.md
+++ /dev/null
@@ -1,350 +0,0 @@
-semver(1) -- The semantic versioner for npm
-===========================================
-
-## Usage
-
- $ npm install semver
- $ node
- var semver = require('semver')
-
- semver.valid('1.2.3') // '1.2.3'
- semver.valid('a.b.c') // null
- semver.clean(' =v1.2.3 ') // '1.2.3'
- semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
- semver.gt('1.2.3', '9.8.7') // false
- semver.lt('1.2.3', '9.8.7') // true
-
-As a command-line utility:
-
- $ semver -h
-
- SemVer 5.1.0
-
- A JavaScript implementation of the http://semver.org/ specification
- Copyright Isaac Z. Schlueter
-
- Usage: semver [options] <version> [<version> [...]]
- Prints valid versions sorted by SemVer precedence
-
- Options:
- -r --range <range>
- Print versions that match the specified range.
-
- -i --increment [<level>]
- Increment a version by the specified level. Level can
- be one of: major, minor, patch, premajor, preminor,
- prepatch, or prerelease. Default level is 'patch'.
- Only one version may be specified.
-
- --preid <identifier>
- Identifier to be used to prefix premajor, preminor,
- prepatch or prerelease version increments.
-
- -l --loose
- Interpret versions and ranges loosely
-
- Program exits successfully if any valid version satisfies
- all supplied ranges, and prints all satisfying versions.
-
- If no satisfying versions are found, then exits failure.
-
- Versions are printed in ascending order, so supplying
- multiple versions to the utility will just sort them.
-
-## Versions
-
-A "version" is described by the `v2.0.0` specification found at
-<http://semver.org/>.
-
-A leading `"="` or `"v"` character is stripped off and ignored.
-
-## Ranges
-
-A `version range` is a set of `comparators` which specify versions
-that satisfy the range.
-
-A `comparator` is composed of an `operator` and a `version`. The set
-of primitive `operators` is:
-
-* `<` Less than
-* `<=` Less than or equal to
-* `>` Greater than
-* `>=` Greater than or equal to
-* `=` Equal. If no operator is specified, then equality is assumed,
- so this operator is optional, but MAY be included.
-
-For example, the comparator `>=1.2.7` would match the versions
-`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
-or `1.1.0`.
-
-Comparators can be joined by whitespace to form a `comparator set`,
-which is satisfied by the **intersection** of all of the comparators
-it includes.
-
-A range is composed of one or more comparator sets, joined by `||`. A
-version matches a range if and only if every comparator in at least
-one of the `||`-separated comparator sets is satisfied by the version.
-
-For example, the range `>=1.2.7 <1.3.0` would match the versions
-`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,
-or `1.1.0`.
-
-The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,
-`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
-
-### Prerelease Tags
-
-If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then
-it will only be allowed to satisfy comparator sets if at least one
-comparator with the same `[major, minor, patch]` tuple also has a
-prerelease tag.
-
-For example, the range `>1.2.3-alpha.3` would be allowed to match the
-version `1.2.3-alpha.7`, but it would *not* be satisfied by
-`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater
-than" `1.2.3-alpha.3` according to the SemVer sort rules. The version
-range only accepts prerelease tags on the `1.2.3` version. The
-version `3.4.5` *would* satisfy the range, because it does not have a
-prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
-
-The purpose for this behavior is twofold. First, prerelease versions
-frequently are updated very quickly, and contain many breaking changes
-that are (by the author's design) not yet fit for public consumption.
-Therefore, by default, they are excluded from range matching
-semantics.
-
-Second, a user who has opted into using a prerelease version has
-clearly indicated the intent to use *that specific* set of
-alpha/beta/rc versions. By including a prerelease tag in the range,
-the user is indicating that they are aware of the risk. However, it
-is still not appropriate to assume that they have opted into taking a
-similar risk on the *next* set of prerelease versions.
-
-#### Prerelease Identifiers
-
-The method `.inc` takes an additional `identifier` string argument that
-will append the value of the string as a prerelease identifier:
-
-```javascript
-> semver.inc('1.2.3', 'prerelease', 'beta')
-'1.2.4-beta.0'
-```
-
-command-line example:
-
-```shell
-$ semver 1.2.3 -i prerelease --preid beta
-1.2.4-beta.0
-```
-
-Which then can be used to increment further:
-
-```shell
-$ semver 1.2.4-beta.0 -i prerelease
-1.2.4-beta.1
-```
-
-### Advanced Range Syntax
-
-Advanced range syntax desugars to primitive comparators in
-deterministic ways.
-
-Advanced ranges may be combined in the same way as primitive
-comparators using white space or `||`.
-
-#### Hyphen Ranges `X.Y.Z - A.B.C`
-
-Specifies an inclusive set.
-
-* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
-
-If a partial version is provided as the first version in the inclusive
-range, then the missing pieces are replaced with zeroes.
-
-* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
-
-If a partial version is provided as the second version in the
-inclusive range, then all versions that start with the supplied parts
-of the tuple are accepted, but nothing that would be greater than the
-provided tuple parts.
-
-* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
-* `1.2.3 - 2` := `>=1.2.3 <3.0.0`
-
-#### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
-
-Any of `X`, `x`, or `*` may be used to "stand in" for one of the
-numeric values in the `[major, minor, patch]` tuple.
-
-* `*` := `>=0.0.0` (Any version satisfies)
-* `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
-* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
-
-A partial version range is treated as an X-Range, so the special
-character is in fact optional.
-
-* `""` (empty string) := `*` := `>=0.0.0`
-* `1` := `1.x.x` := `>=1.0.0 <2.0.0`
-* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
-
-#### Tilde Ranges `~1.2.3` `~1.2` `~1`
-
-Allows patch-level changes if a minor version is specified on the
-comparator. Allows minor-level changes if not.
-
-* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
-* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
-* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
-* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
-* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
-* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
-* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in
- the `1.2.3` version will be allowed, if they are greater than or
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
- `1.2.4-beta.2` would not, because it is a prerelease of a
- different `[major, minor, patch]` tuple.
-
-#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
-
-Allows changes that do not modify the left-most non-zero digit in the
-`[major, minor, patch]` tuple. In other words, this allows patch and
-minor updates for versions `1.0.0` and above, patch updates for
-versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.
-
-Many authors treat a `0.x` version as if the `x` were the major
-"breaking-change" indicator.
-
-Caret ranges are ideal when an author may make breaking changes
-between `0.2.4` and `0.3.0` releases, which is a common practice.
-However, it presumes that there will *not* be breaking changes between
-`0.2.4` and `0.2.5`. It allows for changes that are presumed to be
-additive (but non-breaking), according to commonly observed practices.
-
-* `^1.2.3` := `>=1.2.3 <2.0.0`
-* `^0.2.3` := `>=0.2.3 <0.3.0`
-* `^0.0.3` := `>=0.0.3 <0.0.4`
-* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in
- the `1.2.3` version will be allowed, if they are greater than or
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
- `1.2.4-beta.2` would not, because it is a prerelease of a
- different `[major, minor, patch]` tuple.
-* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the
- `0.0.3` version *only* will be allowed, if they are greater than or
- equal to `beta`. So, `0.0.3-pr.2` would be allowed.
-
-When parsing caret ranges, a missing `patch` value desugars to the
-number `0`, but will allow flexibility within that value, even if the
-major and minor versions are both `0`.
-
-* `^1.2.x` := `>=1.2.0 <2.0.0`
-* `^0.0.x` := `>=0.0.0 <0.1.0`
-* `^0.0` := `>=0.0.0 <0.1.0`
-
-A missing `minor` and `patch` values will desugar to zero, but also
-allow flexibility within those values, even if the major version is
-zero.
-
-* `^1.x` := `>=1.0.0 <2.0.0`
-* `^0.x` := `>=0.0.0 <1.0.0`
-
-### Range Grammar
-
-Putting all this together, here is a Backus-Naur grammar for ranges,
-for the benefit of parser authors:
-
-```bnf
-range-set ::= range ( logical-or range ) *
-logical-or ::= ( ' ' ) * '||' ( ' ' ) *
-range ::= hyphen | simple ( ' ' simple ) * | ''
-hyphen ::= partial ' - ' partial
-simple ::= primitive | partial | tilde | caret
-primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
-partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
-xr ::= 'x' | 'X' | '*' | nr
-nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
-tilde ::= '~' partial
-caret ::= '^' partial
-qualifier ::= ( '-' pre )? ( '+' build )?
-pre ::= parts
-build ::= parts
-parts ::= part ( '.' part ) *
-part ::= nr | [-0-9A-Za-z]+
-```
-
-## Functions
-
-All methods and classes take a final `loose` boolean argument that, if
-true, will be more forgiving about not-quite-valid semver strings.
-The resulting output will always be 100% strict, of course.
-
-Strict-mode Comparators and Ranges will be strict about the SemVer
-strings that they parse.
-
-* `valid(v)`: Return the parsed version, or null if it's not valid.
-* `inc(v, release)`: Return the version incremented by the release
- type (`major`, `premajor`, `minor`, `preminor`, `patch`,
- `prepatch`, or `prerelease`), or null if it's not valid
- * `premajor` in one call will bump the version up to the next major
- version and down to a prerelease of that major version.
- `preminor`, and `prepatch` work the same way.
- * If called from a non-prerelease version, the `prerelease` will work the
- same as `prepatch`. It increments the patch version, then makes a
- prerelease. If the input version is already a prerelease it simply
- increments it.
-* `prerelease(v)`: Returns an array of prerelease components, or null
- if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]`
-* `major(v)`: Return the major version number.
-* `minor(v)`: Return the minor version number.
-* `patch(v)`: Return the patch version number.
-
-### Comparison
-
-* `gt(v1, v2)`: `v1 > v2`
-* `gte(v1, v2)`: `v1 >= v2`
-* `lt(v1, v2)`: `v1 < v2`
-* `lte(v1, v2)`: `v1 <= v2`
-* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,
- even if they're not the exact same string. You already know how to
- compare strings.
-* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.
-* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call
- the corresponding function above. `"==="` and `"!=="` do simple
- string comparison, but are included for completeness. Throws if an
- invalid comparison string is provided.
-* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if
- `v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
-* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions
- in descending order when passed to `Array.sort()`.
-* `diff(v1, v2)`: Returns difference between two versions by the release type
- (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),
- or null if the versions are the same.
-
-
-### Ranges
-
-* `validRange(range)`: Return the valid range or null if it's not valid
-* `satisfies(version, range)`: Return true if the version satisfies the
- range.
-* `maxSatisfying(versions, range)`: Return the highest version in the list
- that satisfies the range, or `null` if none of them do.
-* `minSatisfying(versions, range)`: Return the lowest version in the list
- that satisfies the range, or `null` if none of them do.
-* `gtr(version, range)`: Return `true` if version is greater than all the
- versions possible in the range.
-* `ltr(version, range)`: Return `true` if version is less than all the
- versions possible in the range.
-* `outside(version, range, hilo)`: Return true if the version is outside
- the bounds of the range in either the high or low direction. The
- `hilo` argument must be either the string `'>'` or `'<'`. (This is
- the function called by `gtr` and `ltr`.)
-
-Note that, since ranges may be non-contiguous, a version might not be
-greater than a range, less than a range, *or* satisfy a range! For
-example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`
-until `2.0.0`, so the version `1.2.10` would not be greater than the
-range (because `2.0.1` satisfies, which is higher), nor less than the
-range (since `1.2.8` satisfies, which is lower), and it also does not
-satisfy the range.
-
-If you want to know if a version satisfies or does not satisfy a
-range, use the `satisfies(version, range)` function.
diff --git a/node_modules/node-gyp/node_modules/semver/bin/semver b/node_modules/node-gyp/node_modules/semver/bin/semver
deleted file mode 100755
index c5f2e85..0000000
--- a/node_modules/node-gyp/node_modules/semver/bin/semver
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/usr/bin/env node
-// Standalone semver comparison program.
-// Exits successfully and prints matching version(s) if
-// any supplied version is valid and passes all tests.
-
-var argv = process.argv.slice(2)
- , versions = []
- , range = []
- , gt = []
- , lt = []
- , eq = []
- , inc = null
- , version = require("../package.json").version
- , loose = false
- , identifier = undefined
- , semver = require("../semver")
- , reverse = false
-
-main()
-
-function main () {
- if (!argv.length) return help()
- while (argv.length) {
- var a = argv.shift()
- var i = a.indexOf('=')
- if (i !== -1) {
- a = a.slice(0, i)
- argv.unshift(a.slice(i + 1))
- }
- switch (a) {
- case "-rv": case "-rev": case "--rev": case "--reverse":
- reverse = true
- break
- case "-l": case "--loose":
- loose = true
- break
- case "-v": case "--version":
- versions.push(argv.shift())
- break
- case "-i": case "--inc": case "--increment":
- switch (argv[0]) {
- case "major": case "minor": case "patch": case "prerelease":
- case "premajor": case "preminor": case "prepatch":
- inc = argv.shift()
- break
- default:
- inc = "patch"
- break
- }
- break
- case "--preid":
- identifier = argv.shift()
- break
- case "-r": case "--range":
- range.push(argv.shift())
- break
- case "-h": case "--help": case "-?":
- return help()
- default:
- versions.push(a)
- break
- }
- }
-
- versions = versions.filter(function (v) {
- return semver.valid(v, loose)
- })
- if (!versions.length) return fail()
- if (inc && (versions.length !== 1 || range.length))
- return failInc()
-
- for (var i = 0, l = range.length; i < l ; i ++) {
- versions = versions.filter(function (v) {
- return semver.satisfies(v, range[i], loose)
- })
- if (!versions.length) return fail()
- }
- return success(versions)
-}
-
-function failInc () {
- console.error("--inc can only be used on a single version with no range")
- fail()
-}
-
-function fail () { process.exit(1) }
-
-function success () {
- var compare = reverse ? "rcompare" : "compare"
- versions.sort(function (a, b) {
- return semver[compare](a, b, loose)
- }).map(function (v) {
- return semver.clean(v, loose)
- }).map(function (v) {
- return inc ? semver.inc(v, inc, loose, identifier) : v
- }).forEach(function (v,i,_) { console.log(v) })
-}
-
-function help () {
- console.log(["SemVer " + version
- ,""
- ,"A JavaScript implementation of the http://semver.org/ specification"
- ,"Copyright Isaac Z. Schlueter"
- ,""
- ,"Usage: semver [options] <version> [<version> [...]]"
- ,"Prints valid versions sorted by SemVer precedence"
- ,""
- ,"Options:"
- ,"-r --range <range>"
- ," Print versions that match the specified range."
- ,""
- ,"-i --increment [<level>]"
- ," Increment a version by the specified level. Level can"
- ," be one of: major, minor, patch, premajor, preminor,"
- ," prepatch, or prerelease. Default level is 'patch'."
- ," Only one version may be specified."
- ,""
- ,"--preid <identifier>"
- ," Identifier to be used to prefix premajor, preminor,"
- ," prepatch or prerelease version increments."
- ,""
- ,"-l --loose"
- ," Interpret versions and ranges loosely"
- ,""
- ,"Program exits successfully if any valid version satisfies"
- ,"all supplied ranges, and prints all satisfying versions."
- ,""
- ,"If no satisfying versions are found, then exits failure."
- ,""
- ,"Versions are printed in ascending order, so supplying"
- ,"multiple versions to the utility will just sort them."
- ].join("\n"))
-}
diff --git a/node_modules/node-gyp/node_modules/semver/package.json b/node_modules/node-gyp/node_modules/semver/package.json
deleted file mode 100644
index 27e2e95..0000000
--- a/node_modules/node-gyp/node_modules/semver/package.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "_from": "semver@~5.3.0",
- "_id": "semver@5.3.0",
- "_inBundle": false,
- "_integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=",
- "_location": "/node-gyp/semver",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "semver@~5.3.0",
- "name": "semver",
- "escapedName": "semver",
- "rawSpec": "~5.3.0",
- "saveSpec": null,
- "fetchSpec": "~5.3.0"
- },
- "_requiredBy": [
- "/node-gyp"
- ],
- "_resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
- "_shasum": "9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f",
- "_spec": "semver@~5.3.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-gyp",
- "bin": {
- "semver": "./bin/semver"
- },
- "bugs": {
- "url": "https://github.com/npm/node-semver/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "The semantic version parser used by npm.",
- "devDependencies": {
- "tap": "^2.0.0"
- },
- "files": [
- "bin",
- "range.bnf",
- "semver.js"
- ],
- "homepage": "https://github.com/npm/node-semver#readme",
- "license": "ISC",
- "main": "semver.js",
- "name": "semver",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/node-semver.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "5.3.0"
-}
diff --git a/node_modules/node-gyp/node_modules/semver/range.bnf b/node_modules/node-gyp/node_modules/semver/range.bnf
deleted file mode 100644
index 25ebd5c..0000000
--- a/node_modules/node-gyp/node_modules/semver/range.bnf
+++ /dev/null
@@ -1,16 +0,0 @@
-range-set ::= range ( logical-or range ) *
-logical-or ::= ( ' ' ) * '||' ( ' ' ) *
-range ::= hyphen | simple ( ' ' simple ) * | ''
-hyphen ::= partial ' - ' partial
-simple ::= primitive | partial | tilde | caret
-primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
-partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
-xr ::= 'x' | 'X' | '*' | nr
-nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
-tilde ::= '~' partial
-caret ::= '^' partial
-qualifier ::= ( '-' pre )? ( '+' build )?
-pre ::= parts
-build ::= parts
-parts ::= part ( '.' part ) *
-part ::= nr | [-0-9A-Za-z]+
diff --git a/node_modules/node-gyp/node_modules/semver/semver.js b/node_modules/node-gyp/node_modules/semver/semver.js
deleted file mode 100644
index 5f1a3c5..0000000
--- a/node_modules/node-gyp/node_modules/semver/semver.js
+++ /dev/null
@@ -1,1203 +0,0 @@
-exports = module.exports = SemVer;
-
-// The debug function is excluded entirely from the minified version.
-/* nomin */ var debug;
-/* nomin */ if (typeof process === 'object' &&
- /* nomin */ process.env &&
- /* nomin */ process.env.NODE_DEBUG &&
- /* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG))
- /* nomin */ debug = function() {
- /* nomin */ var args = Array.prototype.slice.call(arguments, 0);
- /* nomin */ args.unshift('SEMVER');
- /* nomin */ console.log.apply(console, args);
- /* nomin */ };
-/* nomin */ else
- /* nomin */ debug = function() {};
-
-// Note: this is the semver.org version of the spec that it implements
-// Not necessarily the package version of this code.
-exports.SEMVER_SPEC_VERSION = '2.0.0';
-
-var MAX_LENGTH = 256;
-var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
-
-// The actual regexps go on exports.re
-var re = exports.re = [];
-var src = exports.src = [];
-var R = 0;
-
-// The following Regular Expressions can be used for tokenizing,
-// validating, and parsing SemVer version strings.
-
-// ## Numeric Identifier
-// A single `0`, or a non-zero digit followed by zero or more digits.
-
-var NUMERICIDENTIFIER = R++;
-src[NUMERICIDENTIFIER] = '0|[1-9]\\d*';
-var NUMERICIDENTIFIERLOOSE = R++;
-src[NUMERICIDENTIFIERLOOSE] = '[0-9]+';
-
-
-// ## Non-numeric Identifier
-// Zero or more digits, followed by a letter or hyphen, and then zero or
-// more letters, digits, or hyphens.
-
-var NONNUMERICIDENTIFIER = R++;
-src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*';
-
-
-// ## Main Version
-// Three dot-separated numeric identifiers.
-
-var MAINVERSION = R++;
-src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
- '(' + src[NUMERICIDENTIFIER] + ')\\.' +
- '(' + src[NUMERICIDENTIFIER] + ')';
-
-var MAINVERSIONLOOSE = R++;
-src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
- '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
- '(' + src[NUMERICIDENTIFIERLOOSE] + ')';
-
-// ## Pre-release Version Identifier
-// A numeric identifier, or a non-numeric identifier.
-
-var PRERELEASEIDENTIFIER = R++;
-src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
- '|' + src[NONNUMERICIDENTIFIER] + ')';
-
-var PRERELEASEIDENTIFIERLOOSE = R++;
-src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
- '|' + src[NONNUMERICIDENTIFIER] + ')';
-
-
-// ## Pre-release Version
-// Hyphen, followed by one or more dot-separated pre-release version
-// identifiers.
-
-var PRERELEASE = R++;
-src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
- '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))';
-
-var PRERELEASELOOSE = R++;
-src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
- '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))';
-
-// ## Build Metadata Identifier
-// Any combination of digits, letters, or hyphens.
-
-var BUILDIDENTIFIER = R++;
-src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+';
-
-// ## Build Metadata
-// Plus sign, followed by one or more period-separated build metadata
-// identifiers.
-
-var BUILD = R++;
-src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
- '(?:\\.' + src[BUILDIDENTIFIER] + ')*))';
-
-
-// ## Full Version String
-// A main version, followed optionally by a pre-release version and
-// build metadata.
-
-// Note that the only major, minor, patch, and pre-release sections of
-// the version string are capturing groups. The build metadata is not a
-// capturing group, because it should not ever be used in version
-// comparison.
-
-var FULL = R++;
-var FULLPLAIN = 'v?' + src[MAINVERSION] +
- src[PRERELEASE] + '?' +
- src[BUILD] + '?';
-
-src[FULL] = '^' + FULLPLAIN + '$';
-
-// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
-// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
-// common in the npm registry.
-var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
- src[PRERELEASELOOSE] + '?' +
- src[BUILD] + '?';
-
-var LOOSE = R++;
-src[LOOSE] = '^' + LOOSEPLAIN + '$';
-
-var GTLT = R++;
-src[GTLT] = '((?:<|>)?=?)';
-
-// Something like "2.*" or "1.2.x".
-// Note that "x.x" is a valid xRange identifer, meaning "any version"
-// Only the first item is strictly required.
-var XRANGEIDENTIFIERLOOSE = R++;
-src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*';
-var XRANGEIDENTIFIER = R++;
-src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*';
-
-var XRANGEPLAIN = R++;
-src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:' + src[PRERELEASE] + ')?' +
- src[BUILD] + '?' +
- ')?)?';
-
-var XRANGEPLAINLOOSE = R++;
-src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:' + src[PRERELEASELOOSE] + ')?' +
- src[BUILD] + '?' +
- ')?)?';
-
-var XRANGE = R++;
-src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$';
-var XRANGELOOSE = R++;
-src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$';
-
-// Tilde ranges.
-// Meaning is "reasonably at or greater than"
-var LONETILDE = R++;
-src[LONETILDE] = '(?:~>?)';
-
-var TILDETRIM = R++;
-src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+';
-re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g');
-var tildeTrimReplace = '$1~';
-
-var TILDE = R++;
-src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$';
-var TILDELOOSE = R++;
-src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$';
-
-// Caret ranges.
-// Meaning is "at least and backwards compatible with"
-var LONECARET = R++;
-src[LONECARET] = '(?:\\^)';
-
-var CARETTRIM = R++;
-src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+';
-re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g');
-var caretTrimReplace = '$1^';
-
-var CARET = R++;
-src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$';
-var CARETLOOSE = R++;
-src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$';
-
-// A simple gt/lt/eq thing, or just "" to indicate "any version"
-var COMPARATORLOOSE = R++;
-src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$';
-var COMPARATOR = R++;
-src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$';
-
-
-// An expression to strip any whitespace between the gtlt and the thing
-// it modifies, so that `> 1.2.3` ==> `>1.2.3`
-var COMPARATORTRIM = R++;
-src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
- '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')';
-
-// this one has to use the /g flag
-re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g');
-var comparatorTrimReplace = '$1$2$3';
-
-
-// Something like `1.2.3 - 1.2.4`
-// Note that these all use the loose form, because they'll be
-// checked against either the strict or loose comparator form
-// later.
-var HYPHENRANGE = R++;
-src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
- '\\s+-\\s+' +
- '(' + src[XRANGEPLAIN] + ')' +
- '\\s*$';
-
-var HYPHENRANGELOOSE = R++;
-src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
- '\\s+-\\s+' +
- '(' + src[XRANGEPLAINLOOSE] + ')' +
- '\\s*$';
-
-// Star ranges basically just allow anything at all.
-var STAR = R++;
-src[STAR] = '(<|>)?=?\\s*\\*';
-
-// Compile to actual regexp objects.
-// All are flag-free, unless they were created above with a flag.
-for (var i = 0; i < R; i++) {
- debug(i, src[i]);
- if (!re[i])
- re[i] = new RegExp(src[i]);
-}
-
-exports.parse = parse;
-function parse(version, loose) {
- if (version instanceof SemVer)
- return version;
-
- if (typeof version !== 'string')
- return null;
-
- if (version.length > MAX_LENGTH)
- return null;
-
- var r = loose ? re[LOOSE] : re[FULL];
- if (!r.test(version))
- return null;
-
- try {
- return new SemVer(version, loose);
- } catch (er) {
- return null;
- }
-}
-
-exports.valid = valid;
-function valid(version, loose) {
- var v = parse(version, loose);
- return v ? v.version : null;
-}
-
-
-exports.clean = clean;
-function clean(version, loose) {
- var s = parse(version.trim().replace(/^[=v]+/, ''), loose);
- return s ? s.version : null;
-}
-
-exports.SemVer = SemVer;
-
-function SemVer(version, loose) {
- if (version instanceof SemVer) {
- if (version.loose === loose)
- return version;
- else
- version = version.version;
- } else if (typeof version !== 'string') {
- throw new TypeError('Invalid Version: ' + version);
- }
-
- if (version.length > MAX_LENGTH)
- throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
-
- if (!(this instanceof SemVer))
- return new SemVer(version, loose);
-
- debug('SemVer', version, loose);
- this.loose = loose;
- var m = version.trim().match(loose ? re[LOOSE] : re[FULL]);
-
- if (!m)
- throw new TypeError('Invalid Version: ' + version);
-
- this.raw = version;
-
- // these are actually numbers
- this.major = +m[1];
- this.minor = +m[2];
- this.patch = +m[3];
-
- if (this.major > MAX_SAFE_INTEGER || this.major < 0)
- throw new TypeError('Invalid major version')
-
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
- throw new TypeError('Invalid minor version')
-
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
- throw new TypeError('Invalid patch version')
-
- // numberify any prerelease numeric ids
- if (!m[4])
- this.prerelease = [];
- else
- this.prerelease = m[4].split('.').map(function(id) {
- if (/^[0-9]+$/.test(id)) {
- var num = +id;
- if (num >= 0 && num < MAX_SAFE_INTEGER)
- return num;
- }
- return id;
- });
-
- this.build = m[5] ? m[5].split('.') : [];
- this.format();
-}
-
-SemVer.prototype.format = function() {
- this.version = this.major + '.' + this.minor + '.' + this.patch;
- if (this.prerelease.length)
- this.version += '-' + this.prerelease.join('.');
- return this.version;
-};
-
-SemVer.prototype.toString = function() {
- return this.version;
-};
-
-SemVer.prototype.compare = function(other) {
- debug('SemVer.compare', this.version, this.loose, other);
- if (!(other instanceof SemVer))
- other = new SemVer(other, this.loose);
-
- return this.compareMain(other) || this.comparePre(other);
-};
-
-SemVer.prototype.compareMain = function(other) {
- if (!(other instanceof SemVer))
- other = new SemVer(other, this.loose);
-
- return compareIdentifiers(this.major, other.major) ||
- compareIdentifiers(this.minor, other.minor) ||
- compareIdentifiers(this.patch, other.patch);
-};
-
-SemVer.prototype.comparePre = function(other) {
- if (!(other instanceof SemVer))
- other = new SemVer(other, this.loose);
-
- // NOT having a prerelease is > having one
- if (this.prerelease.length && !other.prerelease.length)
- return -1;
- else if (!this.prerelease.length && other.prerelease.length)
- return 1;
- else if (!this.prerelease.length && !other.prerelease.length)
- return 0;
-
- var i = 0;
- do {
- var a = this.prerelease[i];
- var b = other.prerelease[i];
- debug('prerelease compare', i, a, b);
- if (a === undefined && b === undefined)
- return 0;
- else if (b === undefined)
- return 1;
- else if (a === undefined)
- return -1;
- else if (a === b)
- continue;
- else
- return compareIdentifiers(a, b);
- } while (++i);
-};
-
-// preminor will bump the version up to the next minor release, and immediately
-// down to pre-release. premajor and prepatch work the same way.
-SemVer.prototype.inc = function(release, identifier) {
- switch (release) {
- case 'premajor':
- this.prerelease.length = 0;
- this.patch = 0;
- this.minor = 0;
- this.major++;
- this.inc('pre', identifier);
- break;
- case 'preminor':
- this.prerelease.length = 0;
- this.patch = 0;
- this.minor++;
- this.inc('pre', identifier);
- break;
- case 'prepatch':
- // If this is already a prerelease, it will bump to the next version
- // drop any prereleases that might already exist, since they are not
- // relevant at this point.
- this.prerelease.length = 0;
- this.inc('patch', identifier);
- this.inc('pre', identifier);
- break;
- // If the input is a non-prerelease version, this acts the same as
- // prepatch.
- case 'prerelease':
- if (this.prerelease.length === 0)
- this.inc('patch', identifier);
- this.inc('pre', identifier);
- break;
-
- case 'major':
- // If this is a pre-major version, bump up to the same major version.
- // Otherwise increment major.
- // 1.0.0-5 bumps to 1.0.0
- // 1.1.0 bumps to 2.0.0
- if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0)
- this.major++;
- this.minor = 0;
- this.patch = 0;
- this.prerelease = [];
- break;
- case 'minor':
- // If this is a pre-minor version, bump up to the same minor version.
- // Otherwise increment minor.
- // 1.2.0-5 bumps to 1.2.0
- // 1.2.1 bumps to 1.3.0
- if (this.patch !== 0 || this.prerelease.length === 0)
- this.minor++;
- this.patch = 0;
- this.prerelease = [];
- break;
- case 'patch':
- // If this is not a pre-release version, it will increment the patch.
- // If it is a pre-release it will bump up to the same patch version.
- // 1.2.0-5 patches to 1.2.0
- // 1.2.0 patches to 1.2.1
- if (this.prerelease.length === 0)
- this.patch++;
- this.prerelease = [];
- break;
- // This probably shouldn't be used publicly.
- // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
- case 'pre':
- if (this.prerelease.length === 0)
- this.prerelease = [0];
- else {
- var i = this.prerelease.length;
- while (--i >= 0) {
- if (typeof this.prerelease[i] === 'number') {
- this.prerelease[i]++;
- i = -2;
- }
- }
- if (i === -1) // didn't increment anything
- this.prerelease.push(0);
- }
- if (identifier) {
- // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
- // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
- if (this.prerelease[0] === identifier) {
- if (isNaN(this.prerelease[1]))
- this.prerelease = [identifier, 0];
- } else
- this.prerelease = [identifier, 0];
- }
- break;
-
- default:
- throw new Error('invalid increment argument: ' + release);
- }
- this.format();
- this.raw = this.version;
- return this;
-};
-
-exports.inc = inc;
-function inc(version, release, loose, identifier) {
- if (typeof(loose) === 'string') {
- identifier = loose;
- loose = undefined;
- }
-
- try {
- return new SemVer(version, loose).inc(release, identifier).version;
- } catch (er) {
- return null;
- }
-}
-
-exports.diff = diff;
-function diff(version1, version2) {
- if (eq(version1, version2)) {
- return null;
- } else {
- var v1 = parse(version1);
- var v2 = parse(version2);
- if (v1.prerelease.length || v2.prerelease.length) {
- for (var key in v1) {
- if (key === 'major' || key === 'minor' || key === 'patch') {
- if (v1[key] !== v2[key]) {
- return 'pre'+key;
- }
- }
- }
- return 'prerelease';
- }
- for (var key in v1) {
- if (key === 'major' || key === 'minor' || key === 'patch') {
- if (v1[key] !== v2[key]) {
- return key;
- }
- }
- }
- }
-}
-
-exports.compareIdentifiers = compareIdentifiers;
-
-var numeric = /^[0-9]+$/;
-function compareIdentifiers(a, b) {
- var anum = numeric.test(a);
- var bnum = numeric.test(b);
-
- if (anum && bnum) {
- a = +a;
- b = +b;
- }
-
- return (anum && !bnum) ? -1 :
- (bnum && !anum) ? 1 :
- a < b ? -1 :
- a > b ? 1 :
- 0;
-}
-
-exports.rcompareIdentifiers = rcompareIdentifiers;
-function rcompareIdentifiers(a, b) {
- return compareIdentifiers(b, a);
-}
-
-exports.major = major;
-function major(a, loose) {
- return new SemVer(a, loose).major;
-}
-
-exports.minor = minor;
-function minor(a, loose) {
- return new SemVer(a, loose).minor;
-}
-
-exports.patch = patch;
-function patch(a, loose) {
- return new SemVer(a, loose).patch;
-}
-
-exports.compare = compare;
-function compare(a, b, loose) {
- return new SemVer(a, loose).compare(b);
-}
-
-exports.compareLoose = compareLoose;
-function compareLoose(a, b) {
- return compare(a, b, true);
-}
-
-exports.rcompare = rcompare;
-function rcompare(a, b, loose) {
- return compare(b, a, loose);
-}
-
-exports.sort = sort;
-function sort(list, loose) {
- return list.sort(function(a, b) {
- return exports.compare(a, b, loose);
- });
-}
-
-exports.rsort = rsort;
-function rsort(list, loose) {
- return list.sort(function(a, b) {
- return exports.rcompare(a, b, loose);
- });
-}
-
-exports.gt = gt;
-function gt(a, b, loose) {
- return compare(a, b, loose) > 0;
-}
-
-exports.lt = lt;
-function lt(a, b, loose) {
- return compare(a, b, loose) < 0;
-}
-
-exports.eq = eq;
-function eq(a, b, loose) {
- return compare(a, b, loose) === 0;
-}
-
-exports.neq = neq;
-function neq(a, b, loose) {
- return compare(a, b, loose) !== 0;
-}
-
-exports.gte = gte;
-function gte(a, b, loose) {
- return compare(a, b, loose) >= 0;
-}
-
-exports.lte = lte;
-function lte(a, b, loose) {
- return compare(a, b, loose) <= 0;
-}
-
-exports.cmp = cmp;
-function cmp(a, op, b, loose) {
- var ret;
- switch (op) {
- case '===':
- if (typeof a === 'object') a = a.version;
- if (typeof b === 'object') b = b.version;
- ret = a === b;
- break;
- case '!==':
- if (typeof a === 'object') a = a.version;
- if (typeof b === 'object') b = b.version;
- ret = a !== b;
- break;
- case '': case '=': case '==': ret = eq(a, b, loose); break;
- case '!=': ret = neq(a, b, loose); break;
- case '>': ret = gt(a, b, loose); break;
- case '>=': ret = gte(a, b, loose); break;
- case '<': ret = lt(a, b, loose); break;
- case '<=': ret = lte(a, b, loose); break;
- default: throw new TypeError('Invalid operator: ' + op);
- }
- return ret;
-}
-
-exports.Comparator = Comparator;
-function Comparator(comp, loose) {
- if (comp instanceof Comparator) {
- if (comp.loose === loose)
- return comp;
- else
- comp = comp.value;
- }
-
- if (!(this instanceof Comparator))
- return new Comparator(comp, loose);
-
- debug('comparator', comp, loose);
- this.loose = loose;
- this.parse(comp);
-
- if (this.semver === ANY)
- this.value = '';
- else
- this.value = this.operator + this.semver.version;
-
- debug('comp', this);
-}
-
-var ANY = {};
-Comparator.prototype.parse = function(comp) {
- var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
- var m = comp.match(r);
-
- if (!m)
- throw new TypeError('Invalid comparator: ' + comp);
-
- this.operator = m[1];
- if (this.operator === '=')
- this.operator = '';
-
- // if it literally is just '>' or '' then allow anything.
- if (!m[2])
- this.semver = ANY;
- else
- this.semver = new SemVer(m[2], this.loose);
-};
-
-Comparator.prototype.toString = function() {
- return this.value;
-};
-
-Comparator.prototype.test = function(version) {
- debug('Comparator.test', version, this.loose);
-
- if (this.semver === ANY)
- return true;
-
- if (typeof version === 'string')
- version = new SemVer(version, this.loose);
-
- return cmp(version, this.operator, this.semver, this.loose);
-};
-
-
-exports.Range = Range;
-function Range(range, loose) {
- if ((range instanceof Range) && range.loose === loose)
- return range;
-
- if (!(this instanceof Range))
- return new Range(range, loose);
-
- this.loose = loose;
-
- // First, split based on boolean or ||
- this.raw = range;
- this.set = range.split(/\s*\|\|\s*/).map(function(range) {
- return this.parseRange(range.trim());
- }, this).filter(function(c) {
- // throw out any that are not relevant for whatever reason
- return c.length;
- });
-
- if (!this.set.length) {
- throw new TypeError('Invalid SemVer Range: ' + range);
- }
-
- this.format();
-}
-
-Range.prototype.format = function() {
- this.range = this.set.map(function(comps) {
- return comps.join(' ').trim();
- }).join('||').trim();
- return this.range;
-};
-
-Range.prototype.toString = function() {
- return this.range;
-};
-
-Range.prototype.parseRange = function(range) {
- var loose = this.loose;
- range = range.trim();
- debug('range', range, loose);
- // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
- var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE];
- range = range.replace(hr, hyphenReplace);
- debug('hyphen replace', range);
- // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
- range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace);
- debug('comparator trim', range, re[COMPARATORTRIM]);
-
- // `~ 1.2.3` => `~1.2.3`
- range = range.replace(re[TILDETRIM], tildeTrimReplace);
-
- // `^ 1.2.3` => `^1.2.3`
- range = range.replace(re[CARETTRIM], caretTrimReplace);
-
- // normalize spaces
- range = range.split(/\s+/).join(' ');
-
- // At this point, the range is completely trimmed and
- // ready to be split into comparators.
-
- var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
- var set = range.split(' ').map(function(comp) {
- return parseComparator(comp, loose);
- }).join(' ').split(/\s+/);
- if (this.loose) {
- // in loose mode, throw out any that are not valid comparators
- set = set.filter(function(comp) {
- return !!comp.match(compRe);
- });
- }
- set = set.map(function(comp) {
- return new Comparator(comp, loose);
- });
-
- return set;
-};
-
-// Mostly just for testing and legacy API reasons
-exports.toComparators = toComparators;
-function toComparators(range, loose) {
- return new Range(range, loose).set.map(function(comp) {
- return comp.map(function(c) {
- return c.value;
- }).join(' ').trim().split(' ');
- });
-}
-
-// comprised of xranges, tildes, stars, and gtlt's at this point.
-// already replaced the hyphen ranges
-// turn into a set of JUST comparators.
-function parseComparator(comp, loose) {
- debug('comp', comp);
- comp = replaceCarets(comp, loose);
- debug('caret', comp);
- comp = replaceTildes(comp, loose);
- debug('tildes', comp);
- comp = replaceXRanges(comp, loose);
- debug('xrange', comp);
- comp = replaceStars(comp, loose);
- debug('stars', comp);
- return comp;
-}
-
-function isX(id) {
- return !id || id.toLowerCase() === 'x' || id === '*';
-}
-
-// ~, ~> --> * (any, kinda silly)
-// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
-// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
-// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
-// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
-// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
-function replaceTildes(comp, loose) {
- return comp.trim().split(/\s+/).map(function(comp) {
- return replaceTilde(comp, loose);
- }).join(' ');
-}
-
-function replaceTilde(comp, loose) {
- var r = loose ? re[TILDELOOSE] : re[TILDE];
- return comp.replace(r, function(_, M, m, p, pr) {
- debug('tilde', comp, _, M, m, p, pr);
- var ret;
-
- if (isX(M))
- ret = '';
- else if (isX(m))
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
- else if (isX(p))
- // ~1.2 == >=1.2.0 <1.3.0
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
- else if (pr) {
- debug('replaceTilde pr', pr);
- if (pr.charAt(0) !== '-')
- pr = '-' + pr;
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + M + '.' + (+m + 1) + '.0';
- } else
- // ~1.2.3 == >=1.2.3 <1.3.0
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + (+m + 1) + '.0';
-
- debug('tilde return', ret);
- return ret;
- });
-}
-
-// ^ --> * (any, kinda silly)
-// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
-// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
-// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
-// ^1.2.3 --> >=1.2.3 <2.0.0
-// ^1.2.0 --> >=1.2.0 <2.0.0
-function replaceCarets(comp, loose) {
- return comp.trim().split(/\s+/).map(function(comp) {
- return replaceCaret(comp, loose);
- }).join(' ');
-}
-
-function replaceCaret(comp, loose) {
- debug('caret', comp, loose);
- var r = loose ? re[CARETLOOSE] : re[CARET];
- return comp.replace(r, function(_, M, m, p, pr) {
- debug('caret', comp, _, M, m, p, pr);
- var ret;
-
- if (isX(M))
- ret = '';
- else if (isX(m))
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
- else if (isX(p)) {
- if (M === '0')
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
- else
- ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0';
- } else if (pr) {
- debug('replaceCaret pr', pr);
- if (pr.charAt(0) !== '-')
- pr = '-' + pr;
- if (M === '0') {
- if (m === '0')
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + M + '.' + m + '.' + (+p + 1);
- else
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + M + '.' + (+m + 1) + '.0';
- } else
- ret = '>=' + M + '.' + m + '.' + p + pr +
- ' <' + (+M + 1) + '.0.0';
- } else {
- debug('no pr');
- if (M === '0') {
- if (m === '0')
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + m + '.' + (+p + 1);
- else
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + (+m + 1) + '.0';
- } else
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + (+M + 1) + '.0.0';
- }
-
- debug('caret return', ret);
- return ret;
- });
-}
-
-function replaceXRanges(comp, loose) {
- debug('replaceXRanges', comp, loose);
- return comp.split(/\s+/).map(function(comp) {
- return replaceXRange(comp, loose);
- }).join(' ');
-}
-
-function replaceXRange(comp, loose) {
- comp = comp.trim();
- var r = loose ? re[XRANGELOOSE] : re[XRANGE];
- return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
- debug('xRange', comp, ret, gtlt, M, m, p, pr);
- var xM = isX(M);
- var xm = xM || isX(m);
- var xp = xm || isX(p);
- var anyX = xp;
-
- if (gtlt === '=' && anyX)
- gtlt = '';
-
- if (xM) {
- if (gtlt === '>' || gtlt === '<') {
- // nothing is allowed
- ret = '<0.0.0';
- } else {
- // nothing is forbidden
- ret = '*';
- }
- } else if (gtlt && anyX) {
- // replace X with 0
- if (xm)
- m = 0;
- if (xp)
- p = 0;
-
- if (gtlt === '>') {
- // >1 => >=2.0.0
- // >1.2 => >=1.3.0
- // >1.2.3 => >= 1.2.4
- gtlt = '>=';
- if (xm) {
- M = +M + 1;
- m = 0;
- p = 0;
- } else if (xp) {
- m = +m + 1;
- p = 0;
- }
- } else if (gtlt === '<=') {
- // <=0.7.x is actually <0.8.0, since any 0.7.x should
- // pass. Similarly, <=7.x is actually <8.0.0, etc.
- gtlt = '<';
- if (xm)
- M = +M + 1;
- else
- m = +m + 1;
- }
-
- ret = gtlt + M + '.' + m + '.' + p;
- } else if (xm) {
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
- } else if (xp) {
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
- }
-
- debug('xRange return', ret);
-
- return ret;
- });
-}
-
-// Because * is AND-ed with everything else in the comparator,
-// and '' means "any version", just remove the *s entirely.
-function replaceStars(comp, loose) {
- debug('replaceStars', comp, loose);
- // Looseness is ignored here. star is always as loose as it gets!
- return comp.trim().replace(re[STAR], '');
-}
-
-// This function is passed to string.replace(re[HYPHENRANGE])
-// M, m, patch, prerelease, build
-// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
-// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
-// 1.2 - 3.4 => >=1.2.0 <3.5.0
-function hyphenReplace($0,
- from, fM, fm, fp, fpr, fb,
- to, tM, tm, tp, tpr, tb) {
-
- if (isX(fM))
- from = '';
- else if (isX(fm))
- from = '>=' + fM + '.0.0';
- else if (isX(fp))
- from = '>=' + fM + '.' + fm + '.0';
- else
- from = '>=' + from;
-
- if (isX(tM))
- to = '';
- else if (isX(tm))
- to = '<' + (+tM + 1) + '.0.0';
- else if (isX(tp))
- to = '<' + tM + '.' + (+tm + 1) + '.0';
- else if (tpr)
- to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr;
- else
- to = '<=' + to;
-
- return (from + ' ' + to).trim();
-}
-
-
-// if ANY of the sets match ALL of its comparators, then pass
-Range.prototype.test = function(version) {
- if (!version)
- return false;
-
- if (typeof version === 'string')
- version = new SemVer(version, this.loose);
-
- for (var i = 0; i < this.set.length; i++) {
- if (testSet(this.set[i], version))
- return true;
- }
- return false;
-};
-
-function testSet(set, version) {
- for (var i = 0; i < set.length; i++) {
- if (!set[i].test(version))
- return false;
- }
-
- if (version.prerelease.length) {
- // Find the set of versions that are allowed to have prereleases
- // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
- // That should allow `1.2.3-pr.2` to pass.
- // However, `1.2.4-alpha.notready` should NOT be allowed,
- // even though it's within the range set by the comparators.
- for (var i = 0; i < set.length; i++) {
- debug(set[i].semver);
- if (set[i].semver === ANY)
- continue;
-
- if (set[i].semver.prerelease.length > 0) {
- var allowed = set[i].semver;
- if (allowed.major === version.major &&
- allowed.minor === version.minor &&
- allowed.patch === version.patch)
- return true;
- }
- }
-
- // Version has a -pre, but it's not one of the ones we like.
- return false;
- }
-
- return true;
-}
-
-exports.satisfies = satisfies;
-function satisfies(version, range, loose) {
- try {
- range = new Range(range, loose);
- } catch (er) {
- return false;
- }
- return range.test(version);
-}
-
-exports.maxSatisfying = maxSatisfying;
-function maxSatisfying(versions, range, loose) {
- return versions.filter(function(version) {
- return satisfies(version, range, loose);
- }).sort(function(a, b) {
- return rcompare(a, b, loose);
- })[0] || null;
-}
-
-exports.minSatisfying = minSatisfying;
-function minSatisfying(versions, range, loose) {
- return versions.filter(function(version) {
- return satisfies(version, range, loose);
- }).sort(function(a, b) {
- return compare(a, b, loose);
- })[0] || null;
-}
-
-exports.validRange = validRange;
-function validRange(range, loose) {
- try {
- // Return '*' instead of '' so that truthiness works.
- // This will throw if it's invalid anyway
- return new Range(range, loose).range || '*';
- } catch (er) {
- return null;
- }
-}
-
-// Determine if version is less than all the versions possible in the range
-exports.ltr = ltr;
-function ltr(version, range, loose) {
- return outside(version, range, '<', loose);
-}
-
-// Determine if version is greater than all the versions possible in the range.
-exports.gtr = gtr;
-function gtr(version, range, loose) {
- return outside(version, range, '>', loose);
-}
-
-exports.outside = outside;
-function outside(version, range, hilo, loose) {
- version = new SemVer(version, loose);
- range = new Range(range, loose);
-
- var gtfn, ltefn, ltfn, comp, ecomp;
- switch (hilo) {
- case '>':
- gtfn = gt;
- ltefn = lte;
- ltfn = lt;
- comp = '>';
- ecomp = '>=';
- break;
- case '<':
- gtfn = lt;
- ltefn = gte;
- ltfn = gt;
- comp = '<';
- ecomp = '<=';
- break;
- default:
- throw new TypeError('Must provide a hilo val of "<" or ">"');
- }
-
- // If it satisifes the range it is not outside
- if (satisfies(version, range, loose)) {
- return false;
- }
-
- // From now on, variable terms are as if we're in "gtr" mode.
- // but note that everything is flipped for the "ltr" function.
-
- for (var i = 0; i < range.set.length; ++i) {
- var comparators = range.set[i];
-
- var high = null;
- var low = null;
-
- comparators.forEach(function(comparator) {
- if (comparator.semver === ANY) {
- comparator = new Comparator('>=0.0.0')
- }
- high = high || comparator;
- low = low || comparator;
- if (gtfn(comparator.semver, high.semver, loose)) {
- high = comparator;
- } else if (ltfn(comparator.semver, low.semver, loose)) {
- low = comparator;
- }
- });
-
- // If the edge version comparator has a operator then our version
- // isn't outside it
- if (high.operator === comp || high.operator === ecomp) {
- return false;
- }
-
- // If the lowest version comparator has an operator and our version
- // is less than it then it isn't higher than the range
- if ((!low.operator || low.operator === comp) &&
- ltefn(version, low.semver)) {
- return false;
- } else if (low.operator === ecomp && ltfn(version, low.semver)) {
- return false;
- }
- }
- return true;
-}
-
-exports.prerelease = prerelease;
-function prerelease(version, loose) {
- var parsed = parse(version, loose);
- return (parsed && parsed.prerelease.length) ? parsed.prerelease : null;
-}
diff --git a/node_modules/node-gyp/package.json b/node_modules/node-gyp/package.json
deleted file mode 100644
index f409f9c..0000000
--- a/node_modules/node-gyp/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "_from": "node-gyp@^3.8.0",
- "_id": "node-gyp@3.8.0",
- "_inBundle": false,
- "_integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==",
- "_location": "/node-gyp",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "node-gyp@^3.8.0",
- "name": "node-gyp",
- "escapedName": "node-gyp",
- "rawSpec": "^3.8.0",
- "saveSpec": null,
- "fetchSpec": "^3.8.0"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz",
- "_shasum": "540304261c330e80d0d5edce253a68cb3964218c",
- "_spec": "node-gyp@^3.8.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "Nathan Rajlich",
- "email": "nathan@tootallnate.net",
- "url": "http://tootallnate.net"
- },
- "bin": {
- "node-gyp": "./bin/node-gyp.js"
- },
- "bugs": {
- "url": "https://github.com/nodejs/node-gyp/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "fstream": "^1.0.0",
- "glob": "^7.0.3",
- "graceful-fs": "^4.1.2",
- "mkdirp": "^0.5.0",
- "nopt": "2 || 3",
- "npmlog": "0 || 1 || 2 || 3 || 4",
- "osenv": "0",
- "request": "^2.87.0",
- "rimraf": "2",
- "semver": "~5.3.0",
- "tar": "^2.0.0",
- "which": "1"
- },
- "deprecated": false,
- "description": "Node.js native addon build tool",
- "devDependencies": {
- "bindings": "~1.2.1",
- "nan": "^2.0.0",
- "require-inject": "~1.3.0",
- "tape": "~4.2.0"
- },
- "engines": {
- "node": ">= 0.8.0"
- },
- "homepage": "https://github.com/nodejs/node-gyp#readme",
- "installVersion": 9,
- "keywords": [
- "native",
- "addon",
- "module",
- "c",
- "c++",
- "bindings",
- "gyp"
- ],
- "license": "MIT",
- "main": "./lib/node-gyp.js",
- "name": "node-gyp",
- "preferGlobal": true,
- "repository": {
- "type": "git",
- "url": "git://github.com/nodejs/node-gyp.git"
- },
- "scripts": {
- "test": "tape test/test-*"
- },
- "version": "3.8.0"
-}
diff --git a/node_modules/node-gyp/src/win_delay_load_hook.cc b/node_modules/node-gyp/src/win_delay_load_hook.cc
deleted file mode 100644
index e75954b..0000000
--- a/node_modules/node-gyp/src/win_delay_load_hook.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * When this file is linked to a DLL, it sets up a delay-load hook that
- * intervenes when the DLL is trying to load 'node.exe' or 'iojs.exe'
- * dynamically. Instead of trying to locate the .exe file it'll just return
- * a handle to the process image.
- *
- * This allows compiled addons to work when node.exe or iojs.exe is renamed.
- */
-
-#ifdef _MSC_VER
-
-#ifndef WIN32_LEAN_AND_MEAN
-#define WIN32_LEAN_AND_MEAN
-#endif
-
-#include <windows.h>
-
-#include <delayimp.h>
-#include <string.h>
-
-static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
- HMODULE m;
- if (event != dliNotePreLoadLibrary)
- return NULL;
-
- if (_stricmp(info->szDll, "iojs.exe") != 0 &&
- _stricmp(info->szDll, "node.exe") != 0)
- return NULL;
-
- m = GetModuleHandle(NULL);
- return (FARPROC) m;
-}
-
-decltype(__pfnDliNotifyHook2) __pfnDliNotifyHook2 = load_exe_hook;
-
-#endif
diff --git a/node_modules/node-gyp/test/docker.sh b/node_modules/node-gyp/test/docker.sh
deleted file mode 100755
index ac21aa8..0000000
--- a/node_modules/node-gyp/test/docker.sh
+++ /dev/null
@@ -1,164 +0,0 @@
-#!/bin/bash
-
-#set -e
-
-test_node_versions="0.8.28 0.10.40 0.12.7 4.3.0 5.6.0"
-test_iojs_versions="1.8.4 2.4.0 3.3.0"
-
-myuid=$(id -u)
-mygid=$(id -g)
-__dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-dot_node_gyp=${__dirname}/.node-gyp/
-
-# borrows from https://github.com/rvagg/dnt/
-
-# Simple setup function for a container:
-# setup_container(image id, base image, commands to run to set up)
-setup_container() {
- local container_id="$1"
- local base_container="$2"
- local run_cmd="$3"
-
- # Does this image exist? If yes, ignore
- docker inspect "$container_id" &> /dev/null
- if [[ $? -eq 0 ]]; then
- echo "Found existing container [$container_id]"
- else
- # No such image, so make it
- echo "Did not find container [$container_id], creating..."
- docker run -i $base_container /bin/bash -c "$run_cmd"
- sleep 2
- docker commit $(docker ps -l -q) $container_id
- fi
-}
-
-# Run tests inside each of the versioned containers, copy cwd into npm's copy of node-gyp
-# so it'll be invoked by npm when a compile is needed
-# run_tests(version, test-commands)
-run_tests() {
- local version="$1"
- local run_cmd="$2"
-
- run_cmd="rsync -aAXx --delete --exclude .git --exclude build /node-gyp-src/ /usr/lib/node_modules/npm/node_modules/node-gyp/;
- /bin/su -s /bin/bash node-gyp -c 'cd && ${run_cmd}'"
-
- rm -rf $dot_node_gyp
- mkdir $dot_node_gyp
-
- docker run \
- --rm -i \
- -v ~/.npm/:/node-gyp/.npm/ \
- -v ${dot_node_gyp}:/node-gyp/.node-gyp/ \
- -v $(pwd):/node-gyp-src/:ro \
- node-gyp-test/${version} /bin/bash -c "${run_cmd}"
-}
-
-# A base image with build tools and a user account
-setup_container "node-gyp-test/base" "ubuntu:14.04" "
- adduser --gecos node-gyp --home /node-gyp/ --disabled-login node-gyp --uid $myuid &&
- echo "node-gyp:node-gyp" | chpasswd &&
- apt-get update &&
- apt-get install -y build-essential python git rsync curl
-"
-
-# An image on top of the base containing clones of repos we want to use for testing
-setup_container "node-gyp-test/clones" "node-gyp-test/base" "
- cd /node-gyp/ && git clone https://github.com/justmoon/node-bignum.git &&
- cd /node-gyp/ && git clone https://github.com/bnoordhuis/node-buffertools.git &&
- chown -R node-gyp.node-gyp /node-gyp/
-"
-
-# An image for each of the node versions we want to test with that version installed and the latest npm
-for v in $test_node_versions; do
- setup_container "node-gyp-test/${v}" "node-gyp-test/clones" "
- curl -sL https://nodejs.org/dist/v${v}/node-v${v}-linux-x64.tar.gz | tar -zxv --strip-components=1 -C /usr/ &&
- npm install npm@latest -g &&
- node -v && npm -v
- "
-done
-
-# An image for each of the io.js versions we want to test with that version installed and the latest npm
-for v in $test_iojs_versions; do
- setup_container "node-gyp-test/${v}" "node-gyp-test/clones" "
- curl -sL https://iojs.org/dist/v${v}/iojs-v${v}-linux-x64.tar.gz | tar -zxv --strip-components=1 -C /usr/ &&
- npm install npm@latest -g &&
- node -v && npm -v
- "
-done
-
-# Run the tests for all of the test images we've created,
-# we should see node-gyp doing its download, configure and run thing
-# _NOTE: bignum doesn't compile on 0.8 currently so it'll fail for that version only_
-for v in $test_node_versions $test_iojs_versions; do
- run_tests $v "
- cd node-buffertools && npm install --loglevel=info && npm test && cd
- "
- # removed for now, too noisy: cd node-bignum && npm install --loglevel=info && npm test
-done
-
-# Test use of --target=x.y.z to compile against alternate versions
-test_download_node_version() {
- local run_with_ver="$1"
- local expected_dir="$2"
- local expected_ver="$3"
- run_tests $run_with_ver "cd node-buffertools && npm install --loglevel=info --target=${expected_ver}"
- local node_ver=$(cat "${dot_node_gyp}${expected_dir}/node_version.h" | grep '#define NODE_\w*_VERSION [0-9]*$')
- node_ver=$(echo $node_ver | sed 's/#define NODE_[A-Z]*_VERSION //g' | sed 's/ /./g')
- if [ "X$(echo $node_ver)" != "X${expected_ver}" ]; then
- echo "Did not download v${expected_ver} using --target, instead got: $(echo $node_ver)"
- exit 1
- fi
- echo "Verified correct download of [v${node_ver}]"
-}
-
-test_download_node_version "0.12.7" "0.10.30/src" "0.10.30"
-test_download_node_version "3.3.0" "iojs-1.8.4/src" "1.8.4"
-# should download the headers file
-test_download_node_version "3.3.0" "iojs-3.3.0/include/node" "3.3.0"
-test_download_node_version "4.3.0" "4.3.0/include/node" "4.3.0"
-test_download_node_version "5.6.0" "5.6.0/include/node" "5.6.0"
-
-# TODO: test --dist-url by starting up a localhost server and serving up tarballs
-
-# testing --dist-url, using simple-proxy.js to make localhost work as a distribution
-# point for tarballs
-# we can test whether it uses the proxy because after 2 connections the proxy will
-# die and therefore should not be running at the end of the test, `nc` can tell us this
-run_tests "3.3.0" "
- (node /node-gyp-src/test/simple-proxy.js 8080 /foobar/ https://iojs.org/dist/ &) &&
- cd node-buffertools &&
- /node-gyp-src/bin/node-gyp.js --loglevel=info --dist-url=http://localhost:8080/foobar/ rebuild &&
- nc -z localhost 8080 && echo -e \"\\n\\n\\033[31mFAILED TO USE LOCAL PROXY\\033[39m\\n\\n\"
-"
-
-# REMOVE after next semver-major
-run_tests "3.3.0" "
- (node /node-gyp-src/test/simple-proxy.js 8080 /doobar/ https://iojs.org/dist/ &) &&
- cd node-buffertools &&
- NVM_IOJS_ORG_MIRROR=http://localhost:8080/doobar/ /node-gyp-src/bin/node-gyp.js --loglevel=info rebuild &&
- nc -z localhost 8080 && echo -e \"\\n\\n\\033[31mFAILED TO USE LOCAL PROXY\\033[39m\\n\\n\"
-"
-
-# REMOVE after next semver-major
-run_tests "0.12.7" "
- (node /node-gyp-src/test/simple-proxy.js 8080 /boombar/ https://nodejs.org/dist/ &) &&
- cd node-buffertools &&
- NVM_NODEJS_ORG_MIRROR=http://localhost:8080/boombar/ /node-gyp-src/bin/node-gyp.js --loglevel=info rebuild &&
- nc -z localhost 8080 && echo -e \"\\n\\n\\033[31mFAILED TO USE LOCAL PROXY\\033[39m\\n\\n\"
-"
-
-run_tests "3.3.0" "
- (node /node-gyp-src/test/simple-proxy.js 8080 /doobar/ https://iojs.org/dist/ &) &&
- cd node-buffertools &&
- IOJS_ORG_MIRROR=http://localhost:8080/doobar/ /node-gyp-src/bin/node-gyp.js --loglevel=info rebuild &&
- nc -z localhost 8080 && echo -e \"\\n\\n\\033[31mFAILED TO USE LOCAL PROXY\\033[39m\\n\\n\"
-"
-
-run_tests "0.12.7" "
- (node /node-gyp-src/test/simple-proxy.js 8080 /boombar/ https://nodejs.org/dist/ &) &&
- cd node-buffertools &&
- NODEJS_ORG_MIRROR=http://localhost:8080/boombar/ /node-gyp-src/bin/node-gyp.js --loglevel=info rebuild &&
- nc -z localhost 8080 && echo -e \"\\n\\n\\033[31mFAILED TO USE LOCAL PROXY\\033[39m\\n\\n\"
-"
-
-rm -rf $dot_node_gyp
diff --git a/node_modules/node-gyp/test/fixtures/ca-bundle.crt b/node_modules/node-gyp/test/fixtures/ca-bundle.crt
deleted file mode 100644
index fb1dea9..0000000
--- a/node_modules/node-gyp/test/fixtures/ca-bundle.crt
+++ /dev/null
@@ -1,40 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIDJjCCAg4CAhnOMA0GCSqGSIb3DQEBBQUAMH0xCzAJBgNVBAYTAlVTMQswCQYD
-VQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEZMBcGA1UECgwQU3Ryb25n
-TG9vcCwgSW5jLjESMBAGA1UECwwJU3Ryb25nT3BzMRowGAYDVQQDDBFjYS5zdHJv
-bmdsb29wLmNvbTAeFw0xNTEyMDgyMzM1MzNaFw00MzA0MjQyMzM1MzNaMBkxFzAV
-BgNVBAMMDnN0cm9uZ2xvb3AuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
-CgKCAQEAwOYI7OZ2FX/YjRgLZoDQlbPc5UZXU/j0e1wwiJNPtPEax9Y5Uoza0Pnt
-Ikzkc2SfvQ+IJrhXo385tI0W5juuqbHnE7UrjUuPjUX6NHevkxcs/flmjan5wnZM
-cPsGhH71WDuUEEflvZihf2Se2x+xgZtMhc5XGmVmRuZFYKvkgUhA2/w8/QrK+jPT
-n9QRJxZjWNh2RBdC1B7u4jffSmOSUljYFH1I2eTeY+Rdi6YUIYSU9gEoZxsv3Tia
-SomfMF5jt2Mouo6MzA+IhLvvFjcrcph1Qxgi9RkfdCMMd+Ipm9YWELkyG1bDRpQy
-0iyHD4gvVsAqz1Y2KdRSdc3Kt+nTqwIDAQABoxkwFzAVBgNVHREEDjAMhwQAAAAA
-hwR/AAABMA0GCSqGSIb3DQEBBQUAA4IBAQAhy4J0hML3NgmDRHdL5/iTucBe22Mf
-jJjg2aifD1S187dHm+Il4qZNO2plWwAhN0h704f+8wpsaALxUvBIu6nvlvcMP5PH
-jGN5JLe2Km3UaPvYOQU2SgacLilu+uBcIo2JSHLV6O7ziqUj5Gior6YxDLCtEZie
-Ea8aX5/YjuACtEMJ1JjRqjgkM66XAoUe0E8onOK3FgTIO3tGoTJwRp0zS50pFuP0
-PsZtT04ck6mmXEXXknNoAyBCvPypfms9OHqcUIW9fiQnrGbS/Ri4QSQYj0DtFk/1
-na4fY1gf3zTHxH8259b/TOOaPfTnCEsOQtjUrWNR4xhmVZ+HJy4yytUW
------END CERTIFICATE-----
------BEGIN CERTIFICATE-----
-MIIDbzCCAlcCAmm6MA0GCSqGSIb3DQEBCwUAMH0xCzAJBgNVBAYTAlVTMQswCQYD
-VQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEZMBcGA1UECgwQU3Ryb25n
-TG9vcCwgSW5jLjESMBAGA1UECwwJU3Ryb25nT3BzMRowGAYDVQQDDBFjYS5zdHJv
-bmdsb29wLmNvbTAeFw0xNTEyMDgyMzM1MzNaFw00MzA0MjQyMzM1MzNaMH0xCzAJ
-BgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEZ
-MBcGA1UECgwQU3Ryb25nTG9vcCwgSW5jLjESMBAGA1UECwwJU3Ryb25nT3BzMRow
-GAYDVQQDDBFjYS5zdHJvbmdsb29wLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEP
-ADCCAQoCggEBANfj86jkvvYDjHBgiqWhk9Cj+bqiMq3MqnV0CBO4iuK33Fo6XssE
-H+yVdXlIBFbFe6t655MdBVOR2Sfj7WqNh96vhu6PyDHiwcQlTaiLU6nhIed1J4Wv
-lvnJHFmp8Wbtx5AgLT4UYu03ftvXEl2DLi3vhSL2tRM1ebXHB/KPbRWkb25DPX0P
-foOHot3f2dgNe2x6kponf7E/QDmAu3s7Nlkfh+ryDhgGU7wocXEhXbprNqRqOGNo
-xbXgUI+/9XDxYT/7Gn5LF/fPjtN+aB0SKMnTsDhprVlZie83mlqJ46fOOrR+vrsQ
-mi/1m/TadrARtZoIExC/cQRdVM05EK4tUa8CAwEAATANBgkqhkiG9w0BAQsFAAOC
-AQEAQ7k5WhyhDTIGYCNzRnrMHWSzGqa1y4tJMW06wafJNRqTm1cthq1ibc6Hfq5a
-K10K0qMcgauRTfQ1MWrVCTW/KnJ1vkhiTOH+RvxapGn84gSaRmV6KZen0+gMsgae
-KEGe/3Hn+PmDVV+PTamHgPACfpTww38WHIe/7Ce9gHfG7MZ8cKHNZhDy0IAYPln+
-YRwMLd7JNQffHAbWb2CE1mcea4H/12U8JZW5tHCF6y9V+7IuDzqwIrLKcW3lG17n
-VUG6ODF/Ryqn3V5X+TL91YyXi6c34y34IpC7MQDV/67U7+5Bp5CfeDPWW2wVSrW+
-uGZtfEvhbNm6m2i4UNmpCXxUZQ==
------END CERTIFICATE-----
diff --git a/node_modules/node-gyp/test/fixtures/ca.crt b/node_modules/node-gyp/test/fixtures/ca.crt
deleted file mode 100644
index 9d2755a..0000000
--- a/node_modules/node-gyp/test/fixtures/ca.crt
+++ /dev/null
@@ -1,21 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIDbzCCAlcCAmm6MA0GCSqGSIb3DQEBCwUAMH0xCzAJBgNVBAYTAlVTMQswCQYD
-VQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEZMBcGA1UECgwQU3Ryb25n
-TG9vcCwgSW5jLjESMBAGA1UECwwJU3Ryb25nT3BzMRowGAYDVQQDDBFjYS5zdHJv
-bmdsb29wLmNvbTAeFw0xNTEyMDgyMzM1MzNaFw00MzA0MjQyMzM1MzNaMH0xCzAJ
-BgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEZ
-MBcGA1UECgwQU3Ryb25nTG9vcCwgSW5jLjESMBAGA1UECwwJU3Ryb25nT3BzMRow
-GAYDVQQDDBFjYS5zdHJvbmdsb29wLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEP
-ADCCAQoCggEBANfj86jkvvYDjHBgiqWhk9Cj+bqiMq3MqnV0CBO4iuK33Fo6XssE
-H+yVdXlIBFbFe6t655MdBVOR2Sfj7WqNh96vhu6PyDHiwcQlTaiLU6nhIed1J4Wv
-lvnJHFmp8Wbtx5AgLT4UYu03ftvXEl2DLi3vhSL2tRM1ebXHB/KPbRWkb25DPX0P
-foOHot3f2dgNe2x6kponf7E/QDmAu3s7Nlkfh+ryDhgGU7wocXEhXbprNqRqOGNo
-xbXgUI+/9XDxYT/7Gn5LF/fPjtN+aB0SKMnTsDhprVlZie83mlqJ46fOOrR+vrsQ
-mi/1m/TadrARtZoIExC/cQRdVM05EK4tUa8CAwEAATANBgkqhkiG9w0BAQsFAAOC
-AQEAQ7k5WhyhDTIGYCNzRnrMHWSzGqa1y4tJMW06wafJNRqTm1cthq1ibc6Hfq5a
-K10K0qMcgauRTfQ1MWrVCTW/KnJ1vkhiTOH+RvxapGn84gSaRmV6KZen0+gMsgae
-KEGe/3Hn+PmDVV+PTamHgPACfpTww38WHIe/7Ce9gHfG7MZ8cKHNZhDy0IAYPln+
-YRwMLd7JNQffHAbWb2CE1mcea4H/12U8JZW5tHCF6y9V+7IuDzqwIrLKcW3lG17n
-VUG6ODF/Ryqn3V5X+TL91YyXi6c34y34IpC7MQDV/67U7+5Bp5CfeDPWW2wVSrW+
-uGZtfEvhbNm6m2i4UNmpCXxUZQ==
------END CERTIFICATE-----
diff --git a/node_modules/node-gyp/test/fixtures/server.crt b/node_modules/node-gyp/test/fixtures/server.crt
deleted file mode 100644
index fe13bb9..0000000
--- a/node_modules/node-gyp/test/fixtures/server.crt
+++ /dev/null
@@ -1,19 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIDJjCCAg4CAhnOMA0GCSqGSIb3DQEBBQUAMH0xCzAJBgNVBAYTAlVTMQswCQYD
-VQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEZMBcGA1UECgwQU3Ryb25n
-TG9vcCwgSW5jLjESMBAGA1UECwwJU3Ryb25nT3BzMRowGAYDVQQDDBFjYS5zdHJv
-bmdsb29wLmNvbTAeFw0xNTEyMDgyMzM1MzNaFw00MzA0MjQyMzM1MzNaMBkxFzAV
-BgNVBAMMDnN0cm9uZ2xvb3AuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
-CgKCAQEAwOYI7OZ2FX/YjRgLZoDQlbPc5UZXU/j0e1wwiJNPtPEax9Y5Uoza0Pnt
-Ikzkc2SfvQ+IJrhXo385tI0W5juuqbHnE7UrjUuPjUX6NHevkxcs/flmjan5wnZM
-cPsGhH71WDuUEEflvZihf2Se2x+xgZtMhc5XGmVmRuZFYKvkgUhA2/w8/QrK+jPT
-n9QRJxZjWNh2RBdC1B7u4jffSmOSUljYFH1I2eTeY+Rdi6YUIYSU9gEoZxsv3Tia
-SomfMF5jt2Mouo6MzA+IhLvvFjcrcph1Qxgi9RkfdCMMd+Ipm9YWELkyG1bDRpQy
-0iyHD4gvVsAqz1Y2KdRSdc3Kt+nTqwIDAQABoxkwFzAVBgNVHREEDjAMhwQAAAAA
-hwR/AAABMA0GCSqGSIb3DQEBBQUAA4IBAQAhy4J0hML3NgmDRHdL5/iTucBe22Mf
-jJjg2aifD1S187dHm+Il4qZNO2plWwAhN0h704f+8wpsaALxUvBIu6nvlvcMP5PH
-jGN5JLe2Km3UaPvYOQU2SgacLilu+uBcIo2JSHLV6O7ziqUj5Gior6YxDLCtEZie
-Ea8aX5/YjuACtEMJ1JjRqjgkM66XAoUe0E8onOK3FgTIO3tGoTJwRp0zS50pFuP0
-PsZtT04ck6mmXEXXknNoAyBCvPypfms9OHqcUIW9fiQnrGbS/Ri4QSQYj0DtFk/1
-na4fY1gf3zTHxH8259b/TOOaPfTnCEsOQtjUrWNR4xhmVZ+HJy4yytUW
------END CERTIFICATE-----
diff --git a/node_modules/node-gyp/test/fixtures/server.key b/node_modules/node-gyp/test/fixtures/server.key
deleted file mode 100644
index f8227f4..0000000
--- a/node_modules/node-gyp/test/fixtures/server.key
+++ /dev/null
@@ -1,28 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDA5gjs5nYVf9iN
-GAtmgNCVs9zlRldT+PR7XDCIk0+08RrH1jlSjNrQ+e0iTORzZJ+9D4gmuFejfzm0
-jRbmO66psecTtSuNS4+NRfo0d6+TFyz9+WaNqfnCdkxw+waEfvVYO5QQR+W9mKF/
-ZJ7bH7GBm0yFzlcaZWZG5kVgq+SBSEDb/Dz9Csr6M9Of1BEnFmNY2HZEF0LUHu7i
-N99KY5JSWNgUfUjZ5N5j5F2LphQhhJT2AShnGy/dOJpKiZ8wXmO3Yyi6jozMD4iE
-u+8WNytymHVDGCL1GR90Iwx34imb1hYQuTIbVsNGlDLSLIcPiC9WwCrPVjYp1FJ1
-zcq36dOrAgMBAAECggEACg60Xm2xsHNG/ixHw+NpfLSxCr89JGKxlJD88tIDcOK1
-S8AOoxA3BHhTddteeenALmJV7fbkkuC6SICmtgBcnfppmuxyRd6vsGT6o6ut2tR1
-gxRy1WYMYKg8WhOshlH8RspscODeyKDhorvDUJd5cNGBDuTwQ68PwxiUe3La6iac
-EVQoKohg9EmRIhMF1i8I00zXE8p3XENrlTc491ipc+gLPIP5vtqHyQztEUkZHkWd
-dXbs+n1hGCr+4FxrphGYEW80HINzmume7dGChr8nvF4ZZcuWW13DJuNim6pQno1i
-hM8VdXm8XphLh0XEGI5OCfu/CetkBILZRXKltZk6AQKBgQDoBqJzRlp7regYNU4q
-usfS+43tPNaJ0o4DIzcLawqpmK/B/cZStzHl14Sm62BVkKV6cnWAJPeLkENPMFoV
-7Q7wLZBJxpPzqXkpeiDkKN4Wovca891Rffne5Sz6IDB5mOxMjfKIEPd5RkmB5Lkp
-qQLwm3YJ2AJcLagG/Gi1DFDRAQKBgQDU1G9T43Mjke6TXG0u7gCSb+VwyDRsrvJA
-u2vy6+MANRc1EEF31YLmTKOU5XxUmhtIu7TUbgPoNi0HuRFXx4Zul3BPlAosLMJv
-kNQbA/9d0YQAfSgTsploN5CX65dLZ4ejIzVgDZREzpIBWTze6YZTA2DT5iOIet84
-DD5DujY4qwKBgG0PuUo/9oYOD3tZiv1wwD5+uY6auykbTF9TLStzzBY9y9d+hrsY
-mx6zOAoRtz1g+TdeF7b9KVJzo//T9XQ68nuYnyreaWrt7SK+4jj8sK+pOEd1+0Cz
-20CXLpX/jWmKpP+y9R5aA0kA7cpdjV90rwoTuN8Vpr5XQ5TNDhaTzGUBAoGABYig
-fGXlkH8y3NICZL37ddNC+/O4qTrDQbudyusnM9ItkEuj6CG9DY/gkPaGjQyUuQdo
-ZD2YDGmcMh81vDqL3ERDv03yFcP0KkJxwWIRObdA32JhsGFsa7FGKS0O+f7vH+bC
-dITl3gQg97gCRSl9PJtR4TCSq/HF7Acld01YK5ECgYEAwLFB5JIuxrowJe74cCMP
-n5Rwuc8vWdOsg+ytvQTv0/hVCdzcaLet6YvagnWTWaU7PUwTFxZs/mLQ9CAWVutK
-IRzs/GWxGFjH5xotDaJdDDzSdQye4tUqvUVxv7zzzsVycCPBYFkyRQ8Tmr5FLtUJ
-Cl48TZ6J8Rx5avjdtOw3QC8=
------END PRIVATE KEY-----
diff --git a/node_modules/node-gyp/test/fixtures/test-charmap.py b/node_modules/node-gyp/test/fixtures/test-charmap.py
deleted file mode 100644
index d9fa6fb..0000000
--- a/node_modules/node-gyp/test/fixtures/test-charmap.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import sys
-import locale
-
-reload(sys)
-
-def main():
- encoding = locale.getdefaultlocale()[1]
- if not encoding:
- return False
-
- sys.setdefaultencoding(encoding)
- textmap = {
- 'cp936': u'\u4e2d\u6587',
- 'cp1252': u'Lat\u012Bna',
- 'cp932': u'\u306b\u307b\u3093\u3054'
- }
- if textmap.has_key(encoding):
- print textmap[encoding]
- return True
-
-if __name__ == '__main__':
- print main()
diff --git a/node_modules/node-gyp/test/process-exec-sync.js b/node_modules/node-gyp/test/process-exec-sync.js
deleted file mode 100644
index 859cbc1..0000000
--- a/node_modules/node-gyp/test/process-exec-sync.js
+++ /dev/null
@@ -1,138 +0,0 @@
-'use strict'
-
-var fs = require('graceful-fs')
-var child_process = require('child_process')
-
-if (!String.prototype.startsWith) {
- String.prototype.startsWith = function(search, pos) {
- return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search
- }
-}
-
-function processExecSync(file, args, options) {
- var child, error, timeout, tmpdir, command, quote
- command = makeCommand(file, args)
-
- /*
- this function emulates child_process.execSync for legacy node <= 0.10.x
- derived from https://github.com/gvarsanyi/sync-exec/blob/master/js/sync-exec.js
- */
-
- options = options || {}
- // init timeout
- timeout = Date.now() + options.timeout
- // init tmpdir
- var os_temp_base = '/tmp'
- var os = determine_os()
- os_temp_base = '/tmp'
-
- if (process.env.TMP) {
- os_temp_base = process.env.TMP
- }
-
- if (os_temp_base[os_temp_base.length - 1] !== '/') {
- os_temp_base += '/'
- }
-
- tmpdir = os_temp_base + 'processExecSync.' + Date.now() + Math.random()
- fs.mkdirSync(tmpdir)
-
- // init command
- if (os === 'linux') {
- command = '(' + command + ' > ' + tmpdir + '/stdout 2> ' + tmpdir +
- '/stderr); echo $? > ' + tmpdir + '/status'
- } else {
- command = '(' + command + ' > ' + tmpdir + '/stdout 2> ' + tmpdir +
- '/stderr) | echo %errorlevel% > ' + tmpdir + '/status | exit'
- }
-
- // init child
- child = child_process.exec(command, options)
-
- var maxTry = 100000 // increases the test time by 6 seconds on win-2016-node-0.10
- var tryCount = 0
- while (tryCount < maxTry) {
- try {
- var x = fs.readFileSync(tmpdir + '/status')
- if (x.toString() === '0') {
- break
- }
- } catch (ignore) {}
- tryCount++
- if (Date.now() > timeout) {
- error = child
- break
- }
- }
-
- ['stdout', 'stderr', 'status'].forEach(function (file) {
- child[file] = fs.readFileSync(tmpdir + '/' + file, options.encoding)
- setTimeout(unlinkFile, 500, tmpdir + '/' + file)
- })
-
- child.status = Number(child.status)
- if (child.status !== 0) {
- error = child
- }
-
- try {
- fs.rmdirSync(tmpdir)
- } catch (ignore) {}
- if (error) {
- throw error
- }
- return child.stdout
-}
-
-function makeCommand(file, args) {
- var command, quote
- command = file
- if (args.length > 0) {
- for(var i in args) {
- command = command + ' '
- if (args[i][0] === '-') {
- command = command + args[i]
- } else {
- if (!quote) {
- command = command + '\"'
- quote = true
- }
- command = command + args[i]
- if (quote) {
- if (args.length === (parseInt(i) + 1)) {
- command = command + '\"'
- }
- }
- }
- }
- }
- return command
-}
-
-function determine_os() {
- var os = ''
- var tmpVar = ''
- if (process.env.OSTYPE) {
- tmpVar = process.env.OSTYPE
- } else if (process.env.OS) {
- tmpVar = process.env.OS
- } else {
- //default is linux
- tmpVar = 'linux'
- }
-
- if (tmpVar.startsWith('linux')) {
- os = 'linux'
- }
- if (tmpVar.startsWith('win')) {
- os = 'win'
- }
-
- return os
-}
-
-function unlinkFile(file) {
- fs.unlinkSync(file)
-}
-
-module.exports = processExecSync
diff --git a/node_modules/node-gyp/test/simple-proxy.js b/node_modules/node-gyp/test/simple-proxy.js
deleted file mode 100644
index e55330c..0000000
--- a/node_modules/node-gyp/test/simple-proxy.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var http = require('http')
- , https = require('https')
- , server = http.createServer(handler)
- , port = +process.argv[2]
- , prefix = process.argv[3]
- , upstream = process.argv[4]
- , calls = 0
-
-server.listen(port)
-
-function handler (req, res) {
- if (req.url.indexOf(prefix) != 0)
- throw new Error('request url [' + req.url + '] does not start with [' + prefix + ']')
-
- var upstreamUrl = upstream + req.url.substring(prefix.length)
- console.log(req.url + ' -> ' + upstreamUrl)
- https.get(upstreamUrl, function (ures) {
- ures.on('end', function () {
- if (++calls == 2)
- server.close()
- })
- ures.pipe(res)
- })
-}
diff --git a/node_modules/node-gyp/test/test-addon.js b/node_modules/node-gyp/test/test-addon.js
deleted file mode 100644
index 89350ef..0000000
--- a/node_modules/node-gyp/test/test-addon.js
+++ /dev/null
@@ -1,113 +0,0 @@
-'use strict'
-
-var test = require('tape')
-var path = require('path')
-var fs = require('graceful-fs')
-var child_process = require('child_process')
-var addonPath = path.resolve(__dirname, 'node_modules', 'hello_world')
-var nodeGyp = path.resolve(__dirname, '..', 'bin', 'node-gyp.js')
-var execFileSync = child_process.execFileSync || require('./process-exec-sync')
-var execFile = child_process.execFile
-
-function runHello() {
- var testCode = "console.log(require('hello_world').hello())"
- return execFileSync(process.execPath, ['-e', testCode], { cwd: __dirname }).toString()
-}
-
-function getEncoding() {
- var code = 'import locale;print locale.getdefaultlocale()[1]'
- return execFileSync('python', ['-c', code]).toString().trim()
-}
-
-function checkCharmapValid() {
- var data
- try {
- data = execFileSync('python', ['fixtures/test-charmap.py'],
- { cwd: __dirname })
- } catch (err) {
- return false
- }
- var lines = data.toString().trim().split('\n')
- return lines.pop() === 'True'
-}
-
-test('build simple addon', function (t) {
- t.plan(3)
-
- // Set the loglevel otherwise the output disappears when run via 'npm test'
- var cmd = [nodeGyp, 'rebuild', '-C', addonPath, '--loglevel=verbose']
- var proc = execFile(process.execPath, cmd, function (err, stdout, stderr) {
- var logLines = stderr.toString().trim().split(/\r?\n/)
- var lastLine = logLines[logLines.length-1]
- t.strictEqual(err, null)
- t.strictEqual(lastLine, 'gyp info ok', 'should end in ok')
- t.strictEqual(runHello().trim(), 'world')
- })
- proc.stdout.setEncoding('utf-8')
- proc.stderr.setEncoding('utf-8')
-})
-
-test('build simple addon in path with non-ascii characters', function (t) {
- t.plan(1)
-
- if (!checkCharmapValid()) {
- return t.skip('python console app can\'t encode non-ascii character.')
- }
-
- var testDirNames = {
- 'cp936': '文件夹',
- 'cp1252': 'Latīna',
- 'cp932': 'フォルダ'
- }
- // Select non-ascii characters by current encoding
- var testDirName = testDirNames[getEncoding()]
- // If encoding is UTF-8 or other then no need to test
- if (!testDirName) {
- return t.skip('no need to test')
- }
-
- t.plan(3)
-
- var data, configPath = path.join(addonPath, 'build', 'config.gypi')
- try {
- data = fs.readFileSync(configPath, 'utf8')
- } catch (err) {
- t.error(err)
- return
- }
- var config = JSON.parse(data.replace(/\#.+\n/, ''))
- var nodeDir = config.variables.nodedir
- var testNodeDir = path.join(addonPath, testDirName)
- // Create symbol link to path with non-ascii characters
- try {
- fs.symlinkSync(nodeDir, testNodeDir, 'dir')
- } catch (err) {
- switch (err.code) {
- case 'EEXIST': break
- case 'EPERM':
- t.error(err, 'Please try to running console as an administrator')
- return
- default:
- t.error(err)
- return
- }
- }
-
- var cmd = [nodeGyp, 'rebuild', '-C', addonPath,
- '--loglevel=verbose', '-nodedir=' + testNodeDir]
- var proc = execFile(process.execPath, cmd, function (err, stdout, stderr) {
- try {
- fs.unlink(testNodeDir)
- } catch (err) {
- t.error(err)
- }
-
- var logLines = stderr.toString().trim().split(/\r?\n/)
- var lastLine = logLines[logLines.length-1]
- t.strictEqual(err, null)
- t.strictEqual(lastLine, 'gyp info ok', 'should end in ok')
- t.strictEqual(runHello().trim(), 'world')
- })
- proc.stdout.setEncoding('utf-8')
- proc.stderr.setEncoding('utf-8')
-})
diff --git a/node_modules/node-gyp/test/test-configure-python.js b/node_modules/node-gyp/test/test-configure-python.js
deleted file mode 100644
index f235bdb..0000000
--- a/node_modules/node-gyp/test/test-configure-python.js
+++ /dev/null
@@ -1,74 +0,0 @@
-'use strict'
-
-var test = require('tape')
-var path = require('path')
-var gyp = require('../lib/node-gyp')
-var requireInject = require('require-inject')
-var configure = requireInject('../lib/configure', {
- 'graceful-fs': {
- 'openSync': function (file, mode) { return 0; },
- 'closeSync': function (fd) { },
- 'writeFile': function (file, data, cb) { cb() },
- 'stat': function (file, cb) { cb(null, {}) }
- }
-})
-
-var EXPECTED_PYPATH = path.join(__dirname, '..', 'gyp', 'pylib')
-var SEPARATOR = process.platform == 'win32' ? ';' : ':'
-var SPAWN_RESULT = { on: function () { } }
-
-test('configure PYTHONPATH with no existing env', function (t) {
- t.plan(1)
-
- delete process.env.PYTHONPATH
-
- var prog = gyp()
- prog.parseArgv([])
- prog.spawn = function () {
- t.equal(process.env.PYTHONPATH, EXPECTED_PYPATH)
- return SPAWN_RESULT
- }
- configure(prog, [], t.fail)
-})
-
-test('configure PYTHONPATH with existing env of one dir', function (t) {
- t.plan(2)
-
- var existingPath = path.join('a', 'b')
- process.env.PYTHONPATH = existingPath
-
- var prog = gyp()
- prog.parseArgv([])
- prog.spawn = function () {
-
- t.equal(process.env.PYTHONPATH, [EXPECTED_PYPATH, existingPath].join(SEPARATOR))
-
- var dirs = process.env.PYTHONPATH.split(SEPARATOR)
- t.deepEqual(dirs, [EXPECTED_PYPATH, existingPath])
-
- return SPAWN_RESULT
- }
- configure(prog, [], t.fail)
-})
-
-test('configure PYTHONPATH with existing env of multiple dirs', function (t) {
- t.plan(2)
-
- var pythonDir1 = path.join('a', 'b')
- var pythonDir2 = path.join('b', 'c')
- var existingPath = [pythonDir1, pythonDir2].join(SEPARATOR)
- process.env.PYTHONPATH = existingPath
-
- var prog = gyp()
- prog.parseArgv([])
- prog.spawn = function () {
-
- t.equal(process.env.PYTHONPATH, [EXPECTED_PYPATH, existingPath].join(SEPARATOR))
-
- var dirs = process.env.PYTHONPATH.split(SEPARATOR)
- t.deepEqual(dirs, [EXPECTED_PYPATH, pythonDir1, pythonDir2])
-
- return SPAWN_RESULT
- }
- configure(prog, [], t.fail)
-})
diff --git a/node_modules/node-gyp/test/test-download.js b/node_modules/node-gyp/test/test-download.js
deleted file mode 100644
index 6e6f64f..0000000
--- a/node_modules/node-gyp/test/test-download.js
+++ /dev/null
@@ -1,102 +0,0 @@
-'use strict'
-
-var fs = require('fs')
-var http = require('http')
-var https = require('https')
-var test = require('tape')
-var install = require('../lib/install')
-
-test('download over http', function (t) {
- t.plan(2)
-
- var server = http.createServer(function (req, res) {
- t.strictEqual(req.headers['user-agent'],
- 'node-gyp v42 (node ' + process.version + ')')
- res.end('ok')
- server.close()
- })
-
- var host = '127.0.0.1'
- server.listen(0, host, function () {
- var port = this.address().port
- var gyp = {
- opts: {},
- version: '42',
- }
- var url = 'http://' + host + ':' + port
- var req = install.test.download(gyp, {}, url)
- req.on('response', function (res) {
- var body = ''
- res.setEncoding('utf8')
- res.on('data', function(data) {
- body += data
- })
- res.on('end', function() {
- t.strictEqual(body, 'ok')
- })
- })
- })
-})
-
-test('download over https with custom ca', function (t) {
- t.plan(3)
-
- var cert = fs.readFileSync(__dirname + '/fixtures/server.crt', 'utf8')
- var key = fs.readFileSync(__dirname + '/fixtures/server.key', 'utf8')
-
- var cafile = __dirname + '/fixtures/ca.crt'
- var ca = install.test.readCAFile(cafile)
- t.strictEqual(ca.length, 1)
-
- var options = { ca: ca, cert: cert, key: key }
- var server = https.createServer(options, function (req, res) {
- t.strictEqual(req.headers['user-agent'],
- 'node-gyp v42 (node ' + process.version + ')')
- res.end('ok')
- server.close()
- })
-
- server.on('clientError', function (err) {
- throw err
- })
-
- var host = '127.0.0.1'
- server.listen(8000, host, function () {
- var port = this.address().port
- var gyp = {
- opts: { cafile: cafile },
- version: '42',
- }
- var url = 'https://' + host + ':' + port
- var req = install.test.download(gyp, {}, url)
- req.on('response', function (res) {
- var body = ''
- res.setEncoding('utf8')
- res.on('data', function(data) {
- body += data
- })
- res.on('end', function() {
- t.strictEqual(body, 'ok')
- })
- })
- })
-})
-
-test('download with missing cafile', function (t) {
- t.plan(1)
- var gyp = {
- opts: { cafile: 'no.such.file' },
- }
- try {
- install.test.download(gyp, {}, 'http://bad/')
- } catch (e) {
- t.ok(/no.such.file/.test(e.message))
- }
-})
-
-test('check certificate splitting', function (t) {
- var cas = install.test.readCAFile(__dirname + '/fixtures/ca-bundle.crt')
- t.plan(2)
- t.strictEqual(cas.length, 2)
- t.notStrictEqual(cas[0], cas[1])
-})
diff --git a/node_modules/node-gyp/test/test-find-accessible-sync.js b/node_modules/node-gyp/test/test-find-accessible-sync.js
deleted file mode 100644
index d336243..0000000
--- a/node_modules/node-gyp/test/test-find-accessible-sync.js
+++ /dev/null
@@ -1,86 +0,0 @@
-'use strict'
-
-var test = require('tape')
-var path = require('path')
-var requireInject = require('require-inject')
-var configure = requireInject('../lib/configure', {
- 'graceful-fs': {
- 'closeSync': function (fd) { return undefined },
- 'openSync': function (path) {
- if (readableFiles.some(function (f) { return f === path} )) {
- return 0
- } else {
- var error = new Error('ENOENT - not found')
- throw error
- }
- }
- }
-})
-
-var dir = path.sep + 'testdir'
-var readableFile = 'readable_file'
-var anotherReadableFile = 'another_readable_file'
-var readableFileInDir = 'somedir' + path.sep + readableFile
-var readableFiles = [
- path.resolve(dir, readableFile),
- path.resolve(dir, anotherReadableFile),
- path.resolve(dir, readableFileInDir)
-]
-
-test('find accessible - empty array', function (t) {
- t.plan(1)
-
- var candidates = []
- var found = configure.test.findAccessibleSync('test', dir, candidates)
- t.strictEqual(found, undefined)
-})
-
-test('find accessible - single item array, readable', function (t) {
- t.plan(1)
-
- var candidates = [ readableFile ]
- var found = configure.test.findAccessibleSync('test', dir, candidates)
- t.strictEqual(found, path.resolve(dir, readableFile))
-})
-
-test('find accessible - single item array, readable in subdir', function (t) {
- t.plan(1)
-
- var candidates = [ readableFileInDir ]
- var found = configure.test.findAccessibleSync('test', dir, candidates)
- t.strictEqual(found, path.resolve(dir, readableFileInDir))
-})
-
-test('find accessible - single item array, unreadable', function (t) {
- t.plan(1)
-
- var candidates = [ 'unreadable_file' ]
- var found = configure.test.findAccessibleSync('test', dir, candidates)
- t.strictEqual(found, undefined)
-})
-
-
-test('find accessible - multi item array, no matches', function (t) {
- t.plan(1)
-
- var candidates = [ 'non_existent_file', 'unreadable_file' ]
- var found = configure.test.findAccessibleSync('test', dir, candidates)
- t.strictEqual(found, undefined)
-})
-
-
-test('find accessible - multi item array, single match', function (t) {
- t.plan(1)
-
- var candidates = [ 'non_existent_file', readableFile ]
- var found = configure.test.findAccessibleSync('test', dir, candidates)
- t.strictEqual(found, path.resolve(dir, readableFile))
-})
-
-test('find accessible - multi item array, return first match', function (t) {
- t.plan(1)
-
- var candidates = [ 'non_existent_file', anotherReadableFile, readableFile ]
- var found = configure.test.findAccessibleSync('test', dir, candidates)
- t.strictEqual(found, path.resolve(dir, anotherReadableFile))
-})
diff --git a/node_modules/node-gyp/test/test-find-node-directory.js b/node_modules/node-gyp/test/test-find-node-directory.js
deleted file mode 100644
index 46659d0..0000000
--- a/node_modules/node-gyp/test/test-find-node-directory.js
+++ /dev/null
@@ -1,115 +0,0 @@
-var test = require('tape')
-var path = require('path')
-var findNodeDirectory = require('../lib/find-node-directory')
-
-var platforms = ['darwin', 'freebsd', 'linux', 'sunos', 'win32', 'aix']
-
-// we should find the directory based on the directory
-// the script is running in and it should match the layout
-// in a build tree where npm is installed in
-// .... /deps/npm
-test('test find-node-directory - node install', function (t) {
- t.plan(platforms.length)
- for (var next = 0; next < platforms.length; next++) {
- var processObj = {execPath: '/x/y/bin/node', platform: platforms[next]}
- t.equal(
- findNodeDirectory('/x/deps/npm/node_modules/node-gyp/lib', processObj),
- path.join('/x'))
- }
-})
-
-// we should find the directory based on the directory
-// the script is running in and it should match the layout
-// in an installed tree where npm is installed in
-// .... /lib/node_modules/npm or .../node_modules/npm
-// depending on the patform
-test('test find-node-directory - node build', function (t) {
- t.plan(platforms.length)
- for (var next = 0; next < platforms.length; next++) {
- var processObj = {execPath: '/x/y/bin/node', platform: platforms[next]}
- if (platforms[next] === 'win32') {
- t.equal(
- findNodeDirectory('/y/node_modules/npm/node_modules/node-gyp/lib',
- processObj), path.join('/y'))
- } else {
- t.equal(
- findNodeDirectory('/y/lib/node_modules/npm/node_modules/node-gyp/lib',
- processObj), path.join('/y'))
- }
- }
-})
-
-// we should find the directory based on the execPath
-// for node and match because it was in the bin directory
-test('test find-node-directory - node in bin directory', function (t) {
- t.plan(platforms.length)
- for (var next = 0; next < platforms.length; next++) {
- var processObj = {execPath: '/x/y/bin/node', platform: platforms[next]}
- t.equal(
- findNodeDirectory('/nothere/npm/node_modules/node-gyp/lib', processObj),
- path.join('/x/y'))
- }
-})
-
-// we should find the directory based on the execPath
-// for node and match because it was in the Release directory
-test('test find-node-directory - node in build release dir', function (t) {
- t.plan(platforms.length)
- for (var next = 0; next < platforms.length; next++) {
- var processObj
- if (platforms[next] === 'win32') {
- processObj = {execPath: '/x/y/Release/node', platform: platforms[next]}
- } else {
- processObj = {execPath: '/x/y/out/Release/node',
- platform: platforms[next]}
- }
-
- t.equal(
- findNodeDirectory('/nothere/npm/node_modules/node-gyp/lib', processObj),
- path.join('/x/y'))
- }
-})
-
-// we should find the directory based on the execPath
-// for node and match because it was in the Debug directory
-test('test find-node-directory - node in Debug release dir', function (t) {
- t.plan(platforms.length)
- for (var next = 0; next < platforms.length; next++) {
- var processObj
- if (platforms[next] === 'win32') {
- processObj = {execPath: '/a/b/Debug/node', platform: platforms[next]}
- } else {
- processObj = {execPath: '/a/b/out/Debug/node', platform: platforms[next]}
- }
-
- t.equal(
- findNodeDirectory('/nothere/npm/node_modules/node-gyp/lib', processObj),
- path.join('/a/b'))
- }
-})
-
-// we should not find it as it will not match based on the execPath nor
-// the directory from which the script is running
-test('test find-node-directory - not found', function (t) {
- t.plan(platforms.length)
- for (var next = 0; next < platforms.length; next++) {
- var processObj = {execPath: '/x/y/z/y', platform:next}
- t.equal(findNodeDirectory('/a/b/c/d', processObj), '')
- }
-})
-
-// we should find the directory based on the directory
-// the script is running in and it should match the layout
-// in a build tree where npm is installed in
-// .... /deps/npm
-// same test as above but make sure additional directory entries
-// don't cause an issue
-test('test find-node-directory - node install', function (t) {
- t.plan(platforms.length)
- for (var next = 0; next < platforms.length; next++) {
- var processObj = {execPath: '/x/y/bin/node', platform: platforms[next]}
- t.equal(
- findNodeDirectory('/x/y/z/a/b/c/deps/npm/node_modules/node-gyp/lib',
- processObj), path.join('/x/y/z/a/b/c'))
- }
-})
diff --git a/node_modules/node-gyp/test/test-find-python.js b/node_modules/node-gyp/test/test-find-python.js
deleted file mode 100644
index 570eb18..0000000
--- a/node_modules/node-gyp/test/test-find-python.js
+++ /dev/null
@@ -1,339 +0,0 @@
-'use strict'
-
-var test = require('tape')
-var path = require('path')
-var configure = require('../lib/configure')
-var execFile = require('child_process').execFile
-var PythonFinder = configure.test.PythonFinder
-
-test('find python', function (t) {
- t.plan(4)
-
- configure.test.findPython('python', function (err, found) {
- t.strictEqual(err, null)
- var proc = execFile(found, ['-V'], function (err, stdout, stderr) {
- t.strictEqual(err, null)
- t.strictEqual(stdout, '')
- t.ok(/Python 2/.test(stderr))
- })
- proc.stdout.setEncoding('utf-8')
- proc.stderr.setEncoding('utf-8')
- })
-})
-
-function poison(object, property) {
- function fail() {
- throw new Error('Property ' + property + ' should not have been accessed.')
- }
- var descriptor = {
- configurable: true,
- enumerable: false,
- writable: true,
- getter: fail,
- setter: fail,
- }
- Object.defineProperty(object, property, descriptor)
-}
-
-// Work around a v0.10.x CI issue where path.resolve() on UNIX systems prefixes
-// Windows paths with the current working directory. v0.12 and up are free of
-// this issue because they use path.win32.resolve() which does the right thing.
-var resolve = path.win32 && path.win32.resolve || function() {
- function rstrip(s) { return s.replace(/\\+$/, '') }
- return [].slice.call(arguments).map(rstrip).join('\\')
-}
-
-function TestPythonFinder() { PythonFinder.apply(this, arguments) }
-TestPythonFinder.prototype = Object.create(PythonFinder.prototype)
-poison(TestPythonFinder.prototype, 'env')
-poison(TestPythonFinder.prototype, 'execFile')
-poison(TestPythonFinder.prototype, 'resolve')
-poison(TestPythonFinder.prototype, 'stat')
-poison(TestPythonFinder.prototype, 'which')
-poison(TestPythonFinder.prototype, 'win')
-
-test('find python - python', function (t) {
- t.plan(5)
-
- var f = new TestPythonFinder('python', done)
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(null, program)
- }
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'python')
- t.ok(/import sys/.test(args[1]))
- cb(null, '2.7.0')
- }
- f.checkPython()
-
- function done(err, python) {
- t.strictEqual(err, null)
- t.strictEqual(python, 'python')
- }
-})
-
-test('find python - python too old', function (t) {
- t.plan(4)
-
- var f = new TestPythonFinder('python', done)
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(null, program)
- }
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'python')
- t.ok(/import sys/.test(args[1]))
- cb(null, '2.3.4')
- }
- f.checkPython()
-
- function done(err, python) {
- t.ok(/is not supported by gyp/.test(err))
- }
-})
-
-test('find python - python too new', function (t) {
- t.plan(4)
-
- var f = new TestPythonFinder('python', done)
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(null, program)
- }
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'python')
- t.ok(/import sys/.test(args[1]))
- cb(null, '3.0.0')
- }
- f.checkPython()
-
- function done(err, python) {
- t.ok(/is not supported by gyp/.test(err))
- }
-})
-
-test('find python - no python', function (t) {
- t.plan(2)
-
- var f = new TestPythonFinder('python', done)
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(new Error('not found'))
- }
- f.checkPython()
-
- function done(err, python) {
- t.ok(/Can't find Python executable/.test(err))
- }
-})
-
-test('find python - no python2', function (t) {
- t.plan(6)
-
- var f = new TestPythonFinder('python2', done)
- f.which = function(program, cb) {
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(null, program)
- }
- t.strictEqual(program, 'python2')
- cb(new Error('not found'))
- }
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'python')
- t.ok(/import sys/.test(args[1]))
- cb(null, '2.7.0')
- }
- f.checkPython()
-
- function done(err, python) {
- t.strictEqual(err, null)
- t.strictEqual(python, 'python')
- }
-})
-
-test('find python - no python2, no python, unix', function (t) {
- t.plan(3)
-
- var f = new TestPythonFinder('python2', done)
- poison(f, 'checkPythonLauncher')
- f.win = false
-
- f.which = function(program, cb) {
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(new Error('not found'))
- }
- t.strictEqual(program, 'python2')
- cb(new Error('not found'))
- }
- f.checkPython()
-
- function done(err, python) {
- t.ok(/Can't find Python executable/.test(err))
- }
-})
-
-test('find python - no python, use python launcher', function (t) {
- t.plan(8)
-
- var f = new TestPythonFinder('python', done)
- f.env = {}
- f.win = true
-
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(new Error('not found'))
- }
- f.execFile = function(program, args, opts, cb) {
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'Z:\\snake.exe')
- t.ok(/import sys/.test(args[1]))
- cb(null, '2.7.0')
- }
- t.strictEqual(program, 'py.exe')
- t.notEqual(args.indexOf('-2'), -1)
- t.notEqual(args.indexOf('-c'), -1)
- cb(null, 'Z:\\snake.exe')
- }
- f.checkPython()
-
- function done(err, python) {
- t.strictEqual(err, null)
- t.strictEqual(python, 'Z:\\snake.exe')
- }
-})
-
-test('find python - python 3, use python launcher', function (t) {
- t.plan(10)
-
- var f = new TestPythonFinder('python', done)
- f.env = {}
- f.win = true
-
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(null, program)
- }
- f.execFile = function(program, args, opts, cb) {
- f.execFile = function(program, args, opts, cb) {
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'Z:\\snake.exe')
- t.ok(/import sys/.test(args[1]))
- cb(null, '2.7.0')
- }
- t.strictEqual(program, 'py.exe')
- t.notEqual(args.indexOf('-2'), -1)
- t.notEqual(args.indexOf('-c'), -1)
- cb(null, 'Z:\\snake.exe')
- }
- t.strictEqual(program, 'python')
- t.ok(/import sys/.test(args[1]))
- cb(null, '3.0.0')
- }
- f.checkPython()
-
- function done(err, python) {
- t.strictEqual(err, null)
- t.strictEqual(python, 'Z:\\snake.exe')
- }
-})
-
-test('find python - python 3, use python launcher, python 2 too old',
- function (t) {
- t.plan(9)
-
- var f = new TestPythonFinder('python', done)
- f.checkedPythonLauncher = false
- f.env = {}
- f.win = true
-
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(null, program)
- }
- f.execFile = function(program, args, opts, cb) {
- f.execFile = function(program, args, opts, cb) {
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'Z:\\snake.exe')
- t.ok(/import sys/.test(args[1]))
- cb(null, '2.3.4')
- }
- t.strictEqual(program, 'py.exe')
- t.notEqual(args.indexOf('-2'), -1)
- t.notEqual(args.indexOf('-c'), -1)
- cb(null, 'Z:\\snake.exe')
- }
- t.strictEqual(program, 'python')
- t.ok(/import sys/.test(args[1]))
- cb(null, '3.0.0')
- }
- f.checkPython()
-
- function done(err, python) {
- t.ok(/is not supported by gyp/.test(err))
- }
-})
-
-test('find python - no python, no python launcher, good guess', function (t) {
- t.plan(6)
-
- var re = /C:[\\\/]Python27[\\\/]python[.]exe/
- var f = new TestPythonFinder('python', done)
- f.env = {}
- f.win = true
-
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(new Error('not found'))
- }
- f.execFile = function(program, args, opts, cb) {
- f.execFile = function(program, args, opts, cb) {
- t.ok(re.test(program))
- t.ok(/import sys/.test(args[1]))
- cb(null, '2.7.0')
- }
- t.strictEqual(program, 'py.exe')
- cb(new Error('not found'))
- }
- f.resolve = resolve
- f.stat = function(path, cb) {
- t.ok(re.test(path))
- cb(null, {})
- }
- f.checkPython()
-
- function done(err, python) {
- t.ok(re.test(python))
- }
-})
-
-test('find python - no python, no python launcher, bad guess', function (t) {
- t.plan(4)
-
- var f = new TestPythonFinder('python', done)
- f.env = { SystemDrive: 'Z:\\' }
- f.win = true
-
- f.which = function(program, cb) {
- t.strictEqual(program, 'python')
- cb(new Error('not found'))
- }
- f.execFile = function(program, args, opts, cb) {
- t.strictEqual(program, 'py.exe')
- cb(new Error('not found'))
- }
- f.resolve = resolve
- f.stat = function(path, cb) {
- t.ok(/Z:[\\\/]Python27[\\\/]python.exe/.test(path))
- var err = new Error('not found')
- err.code = 'ENOENT'
- cb(err)
- }
- f.checkPython()
-
- function done(err, python) {
- t.ok(/Can't find Python executable/.test(err))
- }
-})
diff --git a/node_modules/node-gyp/test/test-install.js b/node_modules/node-gyp/test/test-install.js
deleted file mode 100644
index f647326..0000000
--- a/node_modules/node-gyp/test/test-install.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict'
-
-var test = require('tape')
-var install = require('../lib/install').test.install
-
-test('EACCES retry once', function (t) {
- t.plan(3)
-
- var fs = {}
- fs.stat = function (path, cb) {
- var err = new Error()
- err.code = 'EACCES'
- cb(err)
- t.ok(true);
- }
-
-
- var gyp = {}
- gyp.devDir = __dirname
- gyp.opts = {}
- gyp.opts.ensure = true
- gyp.commands = {}
- gyp.commands.install = function (argv, cb) {
- install(fs, gyp, argv, cb)
- }
- gyp.commands.remove = function (argv, cb) {
- cb()
- }
-
- gyp.commands.install([], function (err) {
- t.ok(true)
- if (/"pre" versions of node cannot be installed/.test(err.message)) {
- t.ok(true)
- t.ok(true)
- }
- })
-})
diff --git a/node_modules/node-gyp/test/test-options.js b/node_modules/node-gyp/test/test-options.js
deleted file mode 100644
index d097f81..0000000
--- a/node_modules/node-gyp/test/test-options.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-var test = require('tape')
-var gyp = require('../lib/node-gyp')
-
-test('options in environment', function (t) {
- t.plan(1)
-
- // `npm test` dumps a ton of npm_config_* variables in the environment.
- Object.keys(process.env)
- .filter(function(key) { return /^npm_config_/.test(key) })
- .forEach(function(key) { delete process.env[key] })
-
- // Zero-length keys should get filtered out.
- process.env.npm_config_ = '42'
- // Other keys should get added.
- process.env.npm_config_x = '42'
- // Except loglevel.
- process.env.npm_config_loglevel = 'debug'
-
- var g = gyp();
- g.parseArgv(['rebuild']) // Also sets opts.argv.
-
- t.deepEqual(Object.keys(g.opts).sort(), ['argv', 'x'])
-})
diff --git a/node_modules/node-gyp/test/test-process-release.js b/node_modules/node-gyp/test/test-process-release.js
deleted file mode 100644
index 48411ae..0000000
--- a/node_modules/node-gyp/test/test-process-release.js
+++ /dev/null
@@ -1,637 +0,0 @@
-var test = require('tape')
-var processRelease = require('../lib/process-release')
-
-test('test process release - process.version = 0.8.20', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v0.8.20', null)
-
- t.equal(release.semver.version, '0.8.20')
- delete release.semver
-
- t.deepEqual(release, {
- version: '0.8.20',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v0.8.20/',
- tarballUrl: 'https://nodejs.org/dist/v0.8.20/node-v0.8.20.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v0.8.20/SHASUMS256.txt',
- versionDir: '0.8.20',
- libUrl32: 'https://nodejs.org/dist/v0.8.20/node.lib',
- libUrl64: 'https://nodejs.org/dist/v0.8.20/x64/node.lib',
- libPath32: 'node.lib',
- libPath64: 'x64/node.lib'
- })
-})
-
-test('test process release - process.version = 0.10.21', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v0.10.21', null)
-
- t.equal(release.semver.version, '0.10.21')
- delete release.semver
-
- t.deepEqual(release, {
- version: '0.10.21',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v0.10.21/',
- tarballUrl: 'https://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v0.10.21/SHASUMS256.txt',
- versionDir: '0.10.21',
- libUrl32: 'https://nodejs.org/dist/v0.10.21/node.lib',
- libUrl64: 'https://nodejs.org/dist/v0.10.21/x64/node.lib',
- libPath32: 'node.lib',
- libPath64: 'x64/node.lib'
- })
-})
-
-// prior to -headers.tar.gz
-test('test process release - process.version = 0.12.9', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v0.12.9', null)
-
- t.equal(release.semver.version, '0.12.9')
- delete release.semver
-
- t.deepEqual(release, {
- version: '0.12.9',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v0.12.9/',
- tarballUrl: 'https://nodejs.org/dist/v0.12.9/node-v0.12.9.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v0.12.9/SHASUMS256.txt',
- versionDir: '0.12.9',
- libUrl32: 'https://nodejs.org/dist/v0.12.9/node.lib',
- libUrl64: 'https://nodejs.org/dist/v0.12.9/x64/node.lib',
- libPath32: 'node.lib',
- libPath64: 'x64/node.lib'
- })
-})
-
-// prior to -headers.tar.gz
-test('test process release - process.version = 0.10.41', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v0.10.41', null)
-
- t.equal(release.semver.version, '0.10.41')
- delete release.semver
-
- t.deepEqual(release, {
- version: '0.10.41',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v0.10.41/',
- tarballUrl: 'https://nodejs.org/dist/v0.10.41/node-v0.10.41.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v0.10.41/SHASUMS256.txt',
- versionDir: '0.10.41',
- libUrl32: 'https://nodejs.org/dist/v0.10.41/node.lib',
- libUrl64: 'https://nodejs.org/dist/v0.10.41/x64/node.lib',
- libPath32: 'node.lib',
- libPath64: 'x64/node.lib'
- })
-})
-
-// has -headers.tar.gz
-test('test process release - process.release ~ node@0.10.42', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v0.10.42', null)
-
- t.equal(release.semver.version, '0.10.42')
- delete release.semver
-
- t.deepEqual(release, {
- version: '0.10.42',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v0.10.42/',
- tarballUrl: 'https://nodejs.org/dist/v0.10.42/node-v0.10.42-headers.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v0.10.42/SHASUMS256.txt',
- versionDir: '0.10.42',
- libUrl32: 'https://nodejs.org/dist/v0.10.42/node.lib',
- libUrl64: 'https://nodejs.org/dist/v0.10.42/x64/node.lib',
- libPath32: 'node.lib',
- libPath64: 'x64/node.lib'
- })
-})
-
-// has -headers.tar.gz
-test('test process release - process.release ~ node@0.12.10', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v0.12.10', null)
-
- t.equal(release.semver.version, '0.12.10')
- delete release.semver
-
- t.deepEqual(release, {
- version: '0.12.10',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v0.12.10/',
- tarballUrl: 'https://nodejs.org/dist/v0.12.10/node-v0.12.10-headers.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v0.12.10/SHASUMS256.txt',
- versionDir: '0.12.10',
- libUrl32: 'https://nodejs.org/dist/v0.12.10/node.lib',
- libUrl64: 'https://nodejs.org/dist/v0.12.10/x64/node.lib',
- libPath32: 'node.lib',
- libPath64: 'x64/node.lib'
- })
-})
-
-test('test process release - process.release ~ node@4.1.23', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v4.1.23', {
- name: 'node',
- headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.1.23')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.1.23',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v4.1.23/',
- tarballUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v4.1.23/SHASUMS256.txt',
- versionDir: '4.1.23',
- libUrl32: 'https://nodejs.org/dist/v4.1.23/win-x86/node.lib',
- libUrl64: 'https://nodejs.org/dist/v4.1.23/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-})
-
-test('test process release - process.release ~ node@4.1.23 / corp build', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v4.1.23', {
- name: 'node',
- headersUrl: 'https://some.custom.location/node-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.1.23')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.1.23',
- name: 'node',
- baseUrl: 'https://some.custom.location/',
- tarballUrl: 'https://some.custom.location/node-v4.1.23-headers.tar.gz',
- shasumsUrl: 'https://some.custom.location/SHASUMS256.txt',
- versionDir: '4.1.23',
- libUrl32: 'https://some.custom.location/win-x86/node.lib',
- libUrl64: 'https://some.custom.location/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-})
-
-test('test process release - process.version = 1.8.4', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v1.8.4', null)
-
- t.equal(release.semver.version, '1.8.4')
- delete release.semver
-
- t.deepEqual(release, {
- version: '1.8.4',
- name: 'iojs',
- baseUrl: 'https://iojs.org/download/release/v1.8.4/',
- tarballUrl: 'https://iojs.org/download/release/v1.8.4/iojs-v1.8.4.tar.gz',
- shasumsUrl: 'https://iojs.org/download/release/v1.8.4/SHASUMS256.txt',
- versionDir: 'iojs-1.8.4',
- libUrl32: 'https://iojs.org/download/release/v1.8.4/win-x86/iojs.lib',
- libUrl64: 'https://iojs.org/download/release/v1.8.4/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-})
-
-test('test process release - process.release ~ iojs@3.2.24', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v3.2.24', {
- name: 'io.js',
- headersUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '3.2.24')
- delete release.semver
-
- t.deepEqual(release, {
- version: '3.2.24',
- name: 'iojs',
- baseUrl: 'https://iojs.org/download/release/v3.2.24/',
- tarballUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz',
- shasumsUrl: 'https://iojs.org/download/release/v3.2.24/SHASUMS256.txt',
- versionDir: 'iojs-3.2.24',
- libUrl32: 'https://iojs.org/download/release/v3.2.24/win-x86/iojs.lib',
- libUrl64: 'https://iojs.org/download/release/v3.2.24/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-})
-
-test('test process release - process.release ~ iojs@3.2.11 +libUrl32', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v3.2.11', {
- name: 'io.js',
- headersUrl: 'https://iojs.org/download/release/v3.2.11/iojs-v3.2.11-headers.tar.gz',
- libUrl: 'https://iojs.org/download/release/v3.2.11/win-x86/iojs.lib' // custom
- })
-
- t.equal(release.semver.version, '3.2.11')
- delete release.semver
-
- t.deepEqual(release, {
- version: '3.2.11',
- name: 'iojs',
- baseUrl: 'https://iojs.org/download/release/v3.2.11/',
- tarballUrl: 'https://iojs.org/download/release/v3.2.11/iojs-v3.2.11-headers.tar.gz',
- shasumsUrl: 'https://iojs.org/download/release/v3.2.11/SHASUMS256.txt',
- versionDir: 'iojs-3.2.11',
- libUrl32: 'https://iojs.org/download/release/v3.2.11/win-x86/iojs.lib',
- libUrl64: 'https://iojs.org/download/release/v3.2.11/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-})
-
-test('test process release - process.release ~ iojs@3.2.101 +libUrl64', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v3.2.101', {
- name: 'io.js',
- headersUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz',
- libUrl: 'https://iojs.org/download/release/v3.2.101/win-x64/iojs.lib' // custom
- })
-
- t.equal(release.semver.version, '3.2.101')
- delete release.semver
-
- t.deepEqual(release, {
- version: '3.2.101',
- name: 'iojs',
- baseUrl: 'https://iojs.org/download/release/v3.2.101/',
- tarballUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz',
- shasumsUrl: 'https://iojs.org/download/release/v3.2.101/SHASUMS256.txt',
- versionDir: 'iojs-3.2.101',
- libUrl32: 'https://iojs.org/download/release/v3.2.101/win-x86/iojs.lib',
- libUrl64: 'https://iojs.org/download/release/v3.2.101/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-})
-
-test('test process release - process.release ~ iojs@3.3.0 - borked win-ia32', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v3.2.101', {
- name: 'io.js',
- headersUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz',
- libUrl: 'https://iojs.org/download/release/v3.2.101/win-ia32/iojs.lib' // custom
- })
-
- t.equal(release.semver.version, '3.2.101')
- delete release.semver
-
- t.deepEqual(release, {
- version: '3.2.101',
- name: 'iojs',
- baseUrl: 'https://iojs.org/download/release/v3.2.101/',
- tarballUrl: 'https://iojs.org/download/release/v3.2.101/iojs-v3.2.101-headers.tar.gz',
- shasumsUrl: 'https://iojs.org/download/release/v3.2.101/SHASUMS256.txt',
- versionDir: 'iojs-3.2.101',
- libUrl32: 'https://iojs.org/download/release/v3.2.101/win-x86/iojs.lib',
- libUrl64: 'https://iojs.org/download/release/v3.2.101/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-})
-
-test('test process release - process.release ~ node@4.1.23 --target=0.10.40', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: { target: '0.10.40' } }, 'v4.1.23', {
- name: 'node',
- headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '0.10.40')
- delete release.semver
-
- t.deepEqual(release, {
- version: '0.10.40',
- name: 'node',
- baseUrl: 'https://nodejs.org/dist/v0.10.40/',
- tarballUrl: 'https://nodejs.org/dist/v0.10.40/node-v0.10.40.tar.gz',
- shasumsUrl: 'https://nodejs.org/dist/v0.10.40/SHASUMS256.txt',
- versionDir: '0.10.40',
- libUrl32: 'https://nodejs.org/dist/v0.10.40/node.lib',
- libUrl64: 'https://nodejs.org/dist/v0.10.40/x64/node.lib',
- libPath32: 'node.lib',
- libPath64: 'x64/node.lib'
- })
-})
-
-test('test process release - process.release ~ node@4.1.23 --target=1.8.4', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: { target: '1.8.4' } }, 'v4.1.23', {
- name: 'node',
- headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '1.8.4')
- delete release.semver
-
- t.deepEqual(release, {
- version: '1.8.4',
- name: 'iojs',
- baseUrl: 'https://iojs.org/download/release/v1.8.4/',
- tarballUrl: 'https://iojs.org/download/release/v1.8.4/iojs-v1.8.4.tar.gz',
- shasumsUrl: 'https://iojs.org/download/release/v1.8.4/SHASUMS256.txt',
- versionDir: 'iojs-1.8.4',
- libUrl32: 'https://iojs.org/download/release/v1.8.4/win-x86/iojs.lib',
- libUrl64: 'https://iojs.org/download/release/v1.8.4/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-})
-
-test('test process release - process.release ~ node@4.1.23 --dist-url=https://foo.bar/baz', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: { 'dist-url': 'https://foo.bar/baz' } }, 'v4.1.23', {
- name: 'node',
- headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.1.23')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.1.23',
- name: 'node',
- baseUrl: 'https://foo.bar/baz/v4.1.23/',
- tarballUrl: 'https://foo.bar/baz/v4.1.23/node-v4.1.23-headers.tar.gz',
- shasumsUrl: 'https://foo.bar/baz/v4.1.23/SHASUMS256.txt',
- versionDir: '4.1.23',
- libUrl32: 'https://foo.bar/baz/v4.1.23/win-x86/node.lib',
- libUrl64: 'https://foo.bar/baz/v4.1.23/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-})
-
-test('test process release - process.release ~ frankenstein@4.1.23', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v4.1.23', {
- name: 'frankenstein',
- headersUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.1.23')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.1.23',
- name: 'frankenstein',
- baseUrl: 'https://frankensteinjs.org/dist/v4.1.23/',
- tarballUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23-headers.tar.gz',
- shasumsUrl: 'https://frankensteinjs.org/dist/v4.1.23/SHASUMS256.txt',
- versionDir: 'frankenstein-4.1.23',
- libUrl32: 'https://frankensteinjs.org/dist/v4.1.23/win-x86/frankenstein.lib',
- libUrl64: 'https://frankensteinjs.org/dist/v4.1.23/win-x64/frankenstein.lib',
- libPath32: 'win-x86/frankenstein.lib',
- libPath64: 'win-x64/frankenstein.lib'
- })
-})
-
-
-test('test process release - process.release ~ frankenstein@4.1.23 --dist-url=http://foo.bar/baz/', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: { 'dist-url': 'http://foo.bar/baz/' } }, 'v4.1.23', {
- name: 'frankenstein',
- headersUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23.tar.gz'
- })
-
- t.equal(release.semver.version, '4.1.23')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.1.23',
- name: 'frankenstein',
- baseUrl: 'http://foo.bar/baz/v4.1.23/',
- tarballUrl: 'http://foo.bar/baz/v4.1.23/frankenstein-v4.1.23-headers.tar.gz',
- shasumsUrl: 'http://foo.bar/baz/v4.1.23/SHASUMS256.txt',
- versionDir: 'frankenstein-4.1.23',
- libUrl32: 'http://foo.bar/baz/v4.1.23/win-x86/frankenstein.lib',
- libUrl64: 'http://foo.bar/baz/v4.1.23/win-x64/frankenstein.lib',
- libPath32: 'win-x86/frankenstein.lib',
- libPath64: 'win-x64/frankenstein.lib'
- })
-})
-
-test('test process release - process.release ~ node@4.0.0-rc.4', function (t) {
- t.plan(2)
-
- var release = processRelease([], { opts: {} }, 'v4.0.0-rc.4', {
- name: 'node',
- headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.0.0-rc.4')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.0.0-rc.4',
- name: 'node',
- baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
- tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
- shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
- versionDir: '4.0.0-rc.4',
- libUrl32: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib',
- libUrl64: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-})
-
-
-test('test process release - process.release ~ node@4.0.0-rc.4 passed as argv[0]', function (t) {
- t.plan(2)
-
- // note the missing 'v' on the arg, it should normalise when checking
- // whether we're on the default or not
- var release = processRelease([ '4.0.0-rc.4' ], { opts: {} }, 'v4.0.0-rc.4', {
- name: 'node',
- headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.0.0-rc.4')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.0.0-rc.4',
- name: 'node',
- baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
- tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
- shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
- versionDir: '4.0.0-rc.4',
- libUrl32: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib',
- libUrl64: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-})
-
-
-test('test process release - process.release ~ node@4.0.0-rc.4 - bogus string passed as argv[0]', function (t) {
- t.plan(2)
-
- // additional arguments can be passed in on the commandline that should be ignored if they
- // are not specifying a valid version @ position 0
- var release = processRelease([ 'this is no version!' ], { opts: {} }, 'v4.0.0-rc.4', {
- name: 'node',
- headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.0.0-rc.4')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.0.0-rc.4',
- name: 'node',
- baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
- tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
- shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
- versionDir: '4.0.0-rc.4',
- libUrl32: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib',
- libUrl64: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-})
-
-test('test process release - NODEJS_ORG_MIRROR', function (t) {
- t.plan(2)
-
- process.env.NODEJS_ORG_MIRROR = 'http://foo.bar'
-
- var release = processRelease([], { opts: {} }, 'v4.1.23', {
- name: 'node',
- headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.1.23')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.1.23',
- name: 'node',
- baseUrl: 'http://foo.bar/v4.1.23/',
- tarballUrl: 'http://foo.bar/v4.1.23/node-v4.1.23-headers.tar.gz',
- shasumsUrl: 'http://foo.bar/v4.1.23/SHASUMS256.txt',
- versionDir: '4.1.23',
- libUrl32: 'http://foo.bar/v4.1.23/win-x86/node.lib',
- libUrl64: 'http://foo.bar/v4.1.23/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-
- delete process.env.NODEJS_ORG_MIRROR
-})
-
-test('test process release - NVM_NODEJS_ORG_MIRROR', function (t) {
- t.plan(2)
-
- process.env.NVM_NODEJS_ORG_MIRROR = 'http://foo.bar'
-
- var release = processRelease([], { opts: {} }, 'v4.1.23', {
- name: 'node',
- headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '4.1.23')
- delete release.semver
-
- t.deepEqual(release, {
- version: '4.1.23',
- name: 'node',
- baseUrl: 'http://foo.bar/v4.1.23/',
- tarballUrl: 'http://foo.bar/v4.1.23/node-v4.1.23-headers.tar.gz',
- shasumsUrl: 'http://foo.bar/v4.1.23/SHASUMS256.txt',
- versionDir: '4.1.23',
- libUrl32: 'http://foo.bar/v4.1.23/win-x86/node.lib',
- libUrl64: 'http://foo.bar/v4.1.23/win-x64/node.lib',
- libPath32: 'win-x86/node.lib',
- libPath64: 'win-x64/node.lib'
- })
-
- delete process.env.NVM_NODEJS_ORG_MIRROR
-})
-
-test('test process release - IOJS_ORG_MIRROR', function (t) {
- t.plan(2)
-
- process.env.IOJS_ORG_MIRROR = 'http://foo.bar'
-
- var release = processRelease([], { opts: {} }, 'v3.2.24', {
- name: 'io.js',
- headersUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '3.2.24')
- delete release.semver
-
- t.deepEqual(release, {
- version: '3.2.24',
- name: 'iojs',
- baseUrl: 'http://foo.bar/v3.2.24/',
- tarballUrl: 'http://foo.bar/v3.2.24/iojs-v3.2.24-headers.tar.gz',
- shasumsUrl: 'http://foo.bar/v3.2.24/SHASUMS256.txt',
- versionDir: 'iojs-3.2.24',
- libUrl32: 'http://foo.bar/v3.2.24/win-x86/iojs.lib',
- libUrl64: 'http://foo.bar/v3.2.24/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-
- delete process.env.IOJS_ORG_MIRROR
-})
-
-
-test('test process release - NVM_IOJS_ORG_MIRROR', function (t) {
- t.plan(2)
-
- process.env.NVM_IOJS_ORG_MIRROR = 'http://foo.bar'
-
- var release = processRelease([], { opts: {} }, 'v3.2.24', {
- name: 'io.js',
- headersUrl: 'https://iojs.org/download/release/v3.2.24/iojs-v3.2.24-headers.tar.gz'
- })
-
- t.equal(release.semver.version, '3.2.24')
- delete release.semver
-
- t.deepEqual(release, {
- version: '3.2.24',
- name: 'iojs',
- baseUrl: 'http://foo.bar/v3.2.24/',
- tarballUrl: 'http://foo.bar/v3.2.24/iojs-v3.2.24-headers.tar.gz',
- shasumsUrl: 'http://foo.bar/v3.2.24/SHASUMS256.txt',
- versionDir: 'iojs-3.2.24',
- libUrl32: 'http://foo.bar/v3.2.24/win-x86/iojs.lib',
- libUrl64: 'http://foo.bar/v3.2.24/win-x64/iojs.lib',
- libPath32: 'win-x86/iojs.lib',
- libPath64: 'win-x64/iojs.lib'
- })
-
- delete process.env.NVM_IOJS_ORG_MIRROR
-})
diff --git a/node_modules/node-gyp/tools/gyp/pylib/gyp/generator/compile_commands_json.py b/node_modules/node-gyp/tools/gyp/pylib/gyp/generator/compile_commands_json.py
deleted file mode 100644
index 575db63..0000000
--- a/node_modules/node-gyp/tools/gyp/pylib/gyp/generator/compile_commands_json.py
+++ /dev/null
@@ -1,115 +0,0 @@
-# Copyright (c) 2016 Ben Noordhuis <info@bnoordhuis.nl>. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import gyp.common
-import gyp.xcode_emulation
-import json
-import os
-
-generator_additional_non_configuration_keys = []
-generator_additional_path_sections = []
-generator_extra_sources_for_rules = []
-generator_filelist_paths = None
-generator_supports_multiple_toolsets = True
-generator_wants_sorted_dependencies = False
-
-# Lifted from make.py. The actual values don't matter much.
-generator_default_variables = {
- 'CONFIGURATION_NAME': '$(BUILDTYPE)',
- 'EXECUTABLE_PREFIX': '',
- 'EXECUTABLE_SUFFIX': '',
- 'INTERMEDIATE_DIR': '$(obj).$(TOOLSET)/$(TARGET)/geni',
- 'PRODUCT_DIR': '$(builddir)',
- 'RULE_INPUT_DIRNAME': '%(INPUT_DIRNAME)s',
- 'RULE_INPUT_EXT': '$(suffix $<)',
- 'RULE_INPUT_NAME': '$(notdir $<)',
- 'RULE_INPUT_PATH': '$(abspath $<)',
- 'RULE_INPUT_ROOT': '%(INPUT_ROOT)s',
- 'SHARED_INTERMEDIATE_DIR': '$(obj)/gen',
- 'SHARED_LIB_PREFIX': 'lib',
- 'STATIC_LIB_PREFIX': 'lib',
- 'STATIC_LIB_SUFFIX': '.a',
-}
-
-
-def IsMac(params):
- return 'mac' == gyp.common.GetFlavor(params)
-
-
-def CalculateVariables(default_variables, params):
- default_variables.setdefault('OS', gyp.common.GetFlavor(params))
-
-
-def AddCommandsForTarget(cwd, target, params, per_config_commands):
- output_dir = params['generator_flags']['output_dir']
- for configuration_name, configuration in target['configurations'].iteritems():
- builddir_name = os.path.join(output_dir, configuration_name)
-
- if IsMac(params):
- xcode_settings = gyp.xcode_emulation.XcodeSettings(target)
- cflags = xcode_settings.GetCflags(configuration_name)
- cflags_c = xcode_settings.GetCflagsC(configuration_name)
- cflags_cc = xcode_settings.GetCflagsCC(configuration_name)
- else:
- cflags = configuration.get('cflags', [])
- cflags_c = configuration.get('cflags_c', [])
- cflags_cc = configuration.get('cflags_cc', [])
-
- cflags_c = cflags + cflags_c
- cflags_cc = cflags + cflags_cc
-
- defines = configuration.get('defines', [])
- defines = ['-D' + s for s in defines]
-
- # TODO(bnoordhuis) Handle generated source files.
- sources = target.get('sources', [])
- sources = [s for s in sources if s.endswith('.c') or s.endswith('.cc')]
-
- def resolve(filename):
- return os.path.abspath(os.path.join(cwd, filename))
-
- # TODO(bnoordhuis) Handle generated header files.
- include_dirs = configuration.get('include_dirs', [])
- include_dirs = [s for s in include_dirs if not s.startswith('$(obj)')]
- includes = ['-I' + resolve(s) for s in include_dirs]
-
- defines = gyp.common.EncodePOSIXShellList(defines)
- includes = gyp.common.EncodePOSIXShellList(includes)
- cflags_c = gyp.common.EncodePOSIXShellList(cflags_c)
- cflags_cc = gyp.common.EncodePOSIXShellList(cflags_cc)
-
- commands = per_config_commands.setdefault(configuration_name, [])
- for source in sources:
- file = resolve(source)
- isc = source.endswith('.c')
- cc = 'cc' if isc else 'c++'
- cflags = cflags_c if isc else cflags_cc
- command = ' '.join((cc, defines, includes, cflags,
- '-c', gyp.common.EncodePOSIXShellArgument(file)))
- commands.append(dict(command=command, directory=output_dir, file=file))
-
-
-def GenerateOutput(target_list, target_dicts, data, params):
- per_config_commands = {}
- for qualified_target, target in target_dicts.iteritems():
- build_file, target_name, toolset = (
- gyp.common.ParseQualifiedTarget(qualified_target))
- if IsMac(params):
- settings = data[build_file]
- gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(settings, target)
- cwd = os.path.dirname(build_file)
- AddCommandsForTarget(cwd, target, params, per_config_commands)
-
- output_dir = params['generator_flags']['output_dir']
- for configuration_name, commands in per_config_commands.iteritems():
- filename = os.path.join(output_dir,
- configuration_name,
- 'compile_commands.json')
- gyp.common.EnsureDirExists(filename)
- fp = open(filename, 'w')
- json.dump(commands, fp=fp, indent=0, check_circular=False)
-
-
-def PerformBuild(data, configurations, params):
- pass
diff --git a/node_modules/node-sass/CHANGELOG.md b/node_modules/node-sass/CHANGELOG.md
deleted file mode 100644
index 2cafacc..0000000
--- a/node_modules/node-sass/CHANGELOG.md
+++ /dev/null
@@ -1,256 +0,0 @@
-## v4.14.0
-
-https://github.com/sass/node-sass/releases/tag/v4.14.0
-
-## v4.13.1
-
-https://github.com/sass/node-sass/releases/tag/v4.13.1
-
-## v4.13.0
-
-https://github.com/sass/node-sass/releases/tag/v4.13.0
-
-## v4.12.0
-
-https://github.com/sass/node-sass/releases/tag/v4.12.0
-
-## v4.11.0
-
-https://github.com/sass/node-sass/releases/tag/v4.11.0
-
-## v4.10.0
-
-https://github.com/sass/node-sass/releases/tag/v4.10.0
-
-## v4.9.4
-
-https://github.com/sass/node-sass/releases/tag/v4.9.4
-
-## v4.9.3
-
-https://github.com/sass/node-sass/releases/tag/v4.9.3
-
-## v4.9.2
-
-https://github.com/sass/node-sass/releases/tag/v4.9.2
-
-## v4.9.1
-
-https://github.com/sass/node-sass/releases/tag/v4.9.1
-
-## v4.9.0
-
-https://github.com/sass/node-sass/releases/tag/v4.9.0
-
-## v4.8.3
-
-https://github.com/sass/node-sass/releases/tag/v4.8.3
-
-## v4.8.2
-
-https://github.com/sass/node-sass/releases/tag/v4.8.2
-
-## v4.8.1
-
-https://github.com/sass/node-sass/releases/tag/v4.8.1
-
-## v4.8.0
-
-https://github.com/sass/node-sass/releases/tag/v4.8.0
-
-## v4.7.2
-
-https://github.com/sass/node-sass/releases/tag/v4.7.2
-
-## v4.7.1
-
-https://github.com/sass/node-sass/releases/tag/v4.7.1
-
-## v4.7.0
-
-https://github.com/sass/node-sass/releases/tag/v4.7.0
-
-## v4.6.1
-
-https://github.com/sass/node-sass/releases/tag/v4.6.1
-
-## v4.6.0
-
-https://github.com/sass/node-sass/releases/tag/v4.6.0
-
-## v4.5.0
-
-https://github.com/sass/node-sass/releases/tag/v4.5.0
-
-## v4.4.0
-
-https://github.com/sass/node-sass/releases/tag/v4.4.0
-
-## v4.3.0
-
-https://github.com/sass/node-sass/releases/tag/v4.3.0
-
-## v4.2.0
-
-https://github.com/sass/node-sass/releases/tag/v4.2.0
-
-## v4.1.1
-
-https://github.com/sass/node-sass/releases/tag/v4.1.1
-
-## v4.1.0
-
-https://github.com/sass/node-sass/releases/tag/v4.1.0
-
-## v4.0.0
-
-https://github.com/sass/node-sass/releases/tag/v4.0.0
-
-## v3.13.1
-
-https://github.com/sass/node-sass/releases/tag/v3.13.1
-
-## v3.13.0
-
-https://github.com/sass/node-sass/releases/tag/v3.13.0
-
-## v3.12.5
-
-https://github.com/sass/node-sass/releases/tag/v3.12.5
-
-## v3.12.4
-
-https://github.com/sass/node-sass/releases/tag/v3.12.4
-
-## v3.12.3
-
-https://github.com/sass/node-sass/releases/tag/v3.12.3
-
-## v3.12.2
-
-https://github.com/sass/node-sass/releases/tag/v3.12.2
-
-## v3.12.1
-
-https://github.com/sass/node-sass/releases/tag/v3.12.1
-
-## v3.12.0
-
-https://github.com/sass/node-sass/releases/tag/v3.12.0
-
-## v3.11.3
-
-https://github.com/sass/node-sass/releases/tag/v3.11.3
-
-## v3.11.2
-
-https://github.com/sass/node-sass/releases/tag/v3.11.2
-
-## v3.11.1
-
-https://github.com/sass/node-sass/releases/tag/v3.11.1
-
-## v3.11.0
-
-https://github.com/sass/node-sass/releases/tag/v3.11.0
-
-## v3.10.1
-
-https://github.com/sass/node-sass/releases/tag/v3.10.1
-
-## v3.10.0
-
-https://github.com/sass/node-sass/releases/tag/v3.10.0
-
-## v3.9.3
-
-https://github.com/sass/node-sass/releases/tag/v3.9.3
-
-## v3.9.2
-
-(removed)
-
-## v3.9.1
-
-(removed)
-
-## v3.9.0
-
-https://github.com/sass/node-sass/releases/tag/v3.9.0
-
-## v3.8.0
-
-https://github.com/sass/node-sass/releases/tag/v3.8.0
-
-## v3.7.0
-
-https://github.com/sass/node-sass/releases/tag/v3.7.0
-
-## v3.6.0
-
-https://github.com/sass/node-sass/releases/tag/v3.6.0
-
-## v3.5.3
-
-https://github.com/sass/node-sass/releases/tag/v3.5.3
-
-## v3.5.2
-
-https://github.com/sass/node-sass/releases/tag/v3.5.2
-
-## v3.5.1
-
-https://github.com/sass/node-sass/releases/tag/v3.5.1
-
-## v3.5.0
-
-(removed)
-
-## v3.4.2
-
-https://github.com/sass/node-sass/releases/tag/v3.4.2
-
-## v3.4.1
-
-https://github.com/sass/node-sass/releases/tag/v3.4.1
-
-## v3.4.0
-
-https://github.com/sass/node-sass/releases/tag/v3.4.0
-
-## v3.3.3
-
-https://github.com/sass/node-sass/releases/tag/v3.3.3
-
-## v3.3.2
-
-https://github.com/sass/node-sass/releases/tag/v3.3.2
-
-## v3.3.1
-
-https://github.com/sass/node-sass/releases/tag/v3.3.1
-
-## v3.3.0
-
-https://github.com/sass/node-sass/releases/tag/v3.3.0
-
-## v3.2.0
-
-https://github.com/sass/node-sass/releases/tag/v3.2.0
-
-## v3.1.2
-
-https://github.com/sass/node-sass/releases/tag/v3.1.2
-
-## v3.1.1
-
-https://github.com/sass/node-sass/releases/tag/v3.1.1
-
-## v3.1.0
-
-https://github.com/sass/node-sass/releases/tag/v3.1.0
-
-## v3.0.0
-
-https://github.com/sass/node-sass/releases/tag/v3.0.0
-
diff --git a/node_modules/node-sass/LICENSE b/node_modules/node-sass/LICENSE
deleted file mode 100644
index 6713846..0000000
--- a/node_modules/node-sass/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright (c) 2013-2016 Andrew Nesbitt
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/node-sass/README.md b/node_modules/node-sass/README.md
deleted file mode 100644
index aac88e1..0000000
--- a/node_modules/node-sass/README.md
+++ /dev/null
@@ -1,631 +0,0 @@
-# node-sass
-
-#### Supported Node.js versions vary by release, please consult the [releases page](https://github.com/sass/node-sass/releases). Below is a quick guide for minimum support:
-
-NodeJS | Minimum node-sass version | Node Module
---------|--------------------------|------------
-Node 14 | 4.14+ | 83
-Node 13 | 4.13+ | 79
-Node 12 | 4.12+ | 72
-Node 11 | 4.10+ | 67
-Node 10 | 4.9+ | 64
-Node 8 | 4.5.3+ | 57
-
-<table>
- <tr>
- <td>
- <img width="77px" alt="Sass logo" src="https://rawgit.com/sass/node-sass/master/media/logo.svg" />
- </td>
- <td valign="bottom" align="right">
- <a href="https://www.npmjs.com/package/node-sass">
- <img width="100%" src="https://nodei.co/npm/node-sass.png?downloads=true&downloadRank=true&stars=true">
- </a>
- </td>
- </tr>
-</table>
-
-[![Build Status](https://travis-ci.org/sass/node-sass.svg?branch=master&style=flat)](https://travis-ci.org/sass/node-sass)
-[![Build status](https://ci.appveyor.com/api/projects/status/22mjbk59kvd55m9y/branch/master?svg=true)](https://ci.appveyor.com/project/sass/node-sass/branch/master)
-[![npm version](https://badge.fury.io/js/node-sass.svg)](http://badge.fury.io/js/node-sass)
-[![Dependency Status](https://david-dm.org/sass/node-sass.svg?theme=shields.io)](https://david-dm.org/sass/node-sass)
-[![devDependency Status](https://david-dm.org/sass/node-sass/dev-status.svg?theme=shields.io)](https://david-dm.org/sass/node-sass#info=devDependencies)
-[![Coverage Status](https://coveralls.io/repos/sass/node-sass/badge.svg?branch=master)](https://coveralls.io/r/sass/node-sass?branch=master)
-[![Inline docs](http://inch-ci.org/github/sass/node-sass.svg?branch=master)](http://inch-ci.org/github/sass/node-sass)
-[![Join us in Slack](https://libsass-slack.herokuapp.com/badge.svg)](https://libsass-slack.herokuapp.com/)
-
-Node-sass is a library that provides binding for Node.js to [LibSass], the C version of the popular stylesheet preprocessor, Sass.
-
-It allows you to natively compile .scss files to css at incredible speed and automatically via a connect middleware.
-
-Find it on npm: <https://www.npmjs.com/package/node-sass>
-
-Follow @nodesass on twitter for release updates: <https://twitter.com/nodesass>
-
-## Install
-
-```shell
-npm install node-sass
-```
-
-Some users have reported issues installing on Ubuntu due to `node` being registered to another package. [Follow the official NodeJS docs](https://github.com/nodesource/distributions/blob/master/README.md#debinstall) to install NodeJS so that `#!/usr/bin/env node` correctly resolves.
-
-Compiling on Windows machines requires the [node-gyp prerequisites](https://github.com/nodejs/node-gyp#on-windows).
-
-Are you seeing the following error? Check out our [Troubleshooting guide](https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md#installing-node-sass-4x-with-node--4).**
-
-```
-SyntaxError: Use of const in strict mode.
-```
-
-**Having installation troubles? Check out our [Troubleshooting guide](https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md).**
-
-### Install from mirror in China
-
-```shell
-npm install -g mirror-config-china --registry=http://registry.npm.taobao.org
-npm install node-sass
-```
-
-## Usage
-
-```javascript
-var sass = require('node-sass');
-sass.render({
- file: scss_filename,
- [, options..]
-}, function(err, result) { /*...*/ });
-// OR
-var result = sass.renderSync({
- data: scss_content
- [, options..]
-});
-```
-
-## Options
-
-### file
-
-* Type: `String`
-* Default: `null`
-
-**Special**: `file` or `data` must be specified
-
-Path to a file for [LibSass] to compile.
-
-### data
-
-* Type: `String`
-* Default: `null`
-
-**Special**: `file` or `data` must be specified
-
-A string to pass to [LibSass] to compile. It is recommended that you use `includePaths` in conjunction with this so that [LibSass] can find files when using the `@import` directive.
-
-### importer (>= v2.0.0) - _experimental_
-
-**This is an experimental LibSass feature. Use with caution.**
-
-* Type: `Function | Function[]` signature `function(url, prev, done)`
-* Default: `undefined`
-
-Function Parameters and Information:
-
-* `url (String)` - the path in import **as-is**, which [LibSass] encountered
-* `prev (String)` - the previously resolved path
-* `done (Function)` - a callback function to invoke on async completion, takes an object literal containing
- * `file (String)` - an alternate path for [LibSass] to use **OR**
- * `contents (String)` - the imported contents (for example, read from memory or the file system)
-
-Handles when [LibSass] encounters the `@import` directive. A custom importer allows extension of the [LibSass] engine in both a synchronous and asynchronous manner. In both cases, the goal is to either `return` or call `done()` with an object literal. Depending on the value of the object literal, one of two things will happen.
-
-When returning or calling `done()` with `{ file: "String" }`, the new file path will be assumed for the `@import`. It's recommended to be mindful of the value of `prev` in instances where relative path resolution may be required.
-
-When returning or calling `done()` with `{ contents: "String" }`, the string value will be used as if the file was read in through an external source.
-
-Starting from v3.0.0:
-
-* `this` refers to a contextual scope for the immediate run of `sass.render` or `sass.renderSync`
-
-* importers can return error and LibSass will emit that error in response. For instance:
-
- ```javascript
- done(new Error('doesn\'t exist!'));
- // or return synchronously
- return new Error('nothing to do here');
- ```
-
-* importer can be an array of functions, which will be called by LibSass in the order of their occurrence in array. This helps user specify special importer for particular kind of path (filesystem, http). If an importer does not want to handle a particular path, it should return `null`. See [functions section](#functions--v300---experimental) for more details on Sass types.
-
-### functions (>= v3.0.0) - _experimental_
-
-**This is an experimental LibSass feature. Use with caution.**
-
-`functions` is an `Object` that holds a collection of custom functions that may be invoked by the sass files being compiled. They may take zero or more input parameters and must return a value either synchronously (`return ...;`) or asynchronously (`done();`). Those parameters will be instances of one of the constructors contained in the `require('node-sass').types` hash. The return value must be of one of these types as well. See the list of available types below:
-
-#### types.Number(value [, unit = ""])
-
-* `getValue()`/ `setValue(value)` : gets / sets the numerical portion of the number
-* `getUnit()` / `setUnit(unit)` : gets / sets the unit portion of the number
-
-#### types.String(value)
-
-* `getValue()` / `setValue(value)` : gets / sets the enclosed string
-
-#### types.Color(r, g, b [, a = 1.0]) or types.Color(argb)
-
-* `getR()` / `setR(value)` : red component (integer from `0` to `255`)
-* `getG()` / `setG(value)` : green component (integer from `0` to `255`)
-* `getB()` / `setB(value)` : blue component (integer from `0` to `255`)
-* `getA()` / `setA(value)` : alpha component (number from `0` to `1.0`)
-
-Example:
-
-```javascript
-var Color = require('node-sass').types.Color,
- c1 = new Color(255, 0, 0),
- c2 = new Color(0xff0088cc);
-```
-
-#### types.Boolean(value)
-
-* `getValue()` : gets the enclosed boolean
-* `types.Boolean.TRUE` : Singleton instance of `types.Boolean` that holds "true"
-* `types.Boolean.FALSE` : Singleton instance of `types.Boolean` that holds "false"
-
-#### types.List(length [, commaSeparator = true])
-
-* `getValue(index)` / `setValue(index, value)` : `value` must itself be an instance of one of the constructors in `sass.types`.
-* `getSeparator()` / `setSeparator(isComma)` : whether to use commas as a separator
-* `getLength()`
-
-#### types.Map(length)
-
-* `getKey(index)` / `setKey(index, value)`
-* `getValue(index)` / `setValue(index, value)`
-* `getLength()`
-
-#### types.Null()
-
-* `types.Null.NULL` : Singleton instance of `types.Null`.
-
-#### Example
-
-```javascript
-sass.renderSync({
- data: '#{headings(2,5)} { color: #08c; }',
- functions: {
- 'headings($from: 0, $to: 6)': function(from, to) {
- var i, f = from.getValue(), t = to.getValue(),
- list = new sass.types.List(t - f + 1);
-
- for (i = f; i <= t; i++) {
- list.setValue(i - f, new sass.types.String('h' + i));
- }
-
- return list;
- }
- }
-});
-```
-
-### includePaths
-
-* Type: `Array<String>`
-* Default: `[]`
-
-An array of paths that [LibSass] can look in to attempt to resolve your `@import` declarations. When using `data`, it is recommended that you use this.
-
-### indentedSyntax
-
-* Type: `Boolean`
-* Default: `false`
-
-`true` values enable [Sass Indented Syntax](https://sass-lang.com/documentation/file.INDENTED_SYNTAX.html) for parsing the data string or file.
-
-__Note:__ node-sass/libsass will compile a mixed library of scss and indented syntax (.sass) files with the Default setting (false) as long as .sass and .scss extensions are used in filenames.
-
-### indentType (>= v3.0.0)
-
-* Type: `String`
-* Default: `space`
-
-Used to determine whether to use space or tab character for indentation.
-
-### indentWidth (>= v3.0.0)
-
-* Type: `Number`
-* Default: `2`
-* Maximum: `10`
-
-Used to determine the number of spaces or tabs to be used for indentation.
-
-### linefeed (>= v3.0.0)
-
-* Type: `String`
-* Default: `lf`
-
-Used to determine whether to use `cr`, `crlf`, `lf` or `lfcr` sequence for line break.
-
-### omitSourceMapUrl
-
-* Type: `Boolean`
-* Default: `false`
-
-**Special:** When using this, you should also specify `outFile` to avoid unexpected behavior.
-
-`true` values disable the inclusion of source map information in the output file.
-
-### outFile
-
-* Type: `String | null`
-* Default: `null`
-
-**Special:** Required when `sourceMap` is a truthy value
-
-Specify the intended location of the output file. Strongly recommended when outputting source maps so that they can properly refer back to their intended files.
-
-**Attention** enabling this option will **not** write the file on disk for you, it's for internal reference purpose only (to generate the map for example).
-
-Example on how to write it on the disk
-
-```javascript
-sass.render({
- ...
- outFile: yourPathTotheFile,
- }, function(error, result) { // node-style callback from v3.0.0 onwards
- if(!error){
- // No errors during the compilation, write this result on the disk
- fs.writeFile(yourPathTotheFile, result.css, function(err){
- if(!err){
- //file written on disk
- }
- });
- }
- });
-});
-```
-
-### outputStyle
-
-* Type: `String`
-* Default: `nested`
-* Values: `nested`, `expanded`, `compact`, `compressed`
-
-Determines the output format of the final CSS style.
-
-### precision
-
-* Type: `Integer`
-* Default: `5`
-
-Used to determine how many digits after the decimal will be allowed. For instance, if you had a decimal number of `1.23456789` and a precision of `5`, the result will be `1.23457` in the final CSS.
-
-### sourceComments
-
-* Type: `Boolean`
-* Default: `false`
-
-`true` Enables the line number and file where a selector is defined to be emitted into the compiled CSS as a comment. Useful for debugging, especially when using imports and mixins.
-
-### sourceMap
-
-* Type: `Boolean | String | undefined`
-* Default: `undefined`
-
-Enables source map generation during `render` and `renderSync`.
-
-When `sourceMap === true`, the value of `outFile` is used as the target output location for the source map with the suffix `.map` appended. If no `outFile` is set, `sourceMap` parameter is ignored.
-
-When `typeof sourceMap === "string"`, the value of `sourceMap` will be used as the writing location for the file.
-
-### sourceMapContents
-
-* Type: `Boolean`
-* Default: `false`
-
-`true` includes the `contents` in the source map information
-
-### sourceMapEmbed
-
-* Type: `Boolean`
-* Default: `false`
-
-`true` embeds the source map as a data URI
-
-### sourceMapRoot
-
-* Type: `String`
-* Default: `undefined`
-
-the value will be emitted as `sourceRoot` in the source map information
-
-## `render` Callback (>= v3.0.0)
-
-node-sass supports standard node style asynchronous callbacks with the signature of `function(err, result)`. In error conditions, the `error` argument is populated with the error object. In success conditions, the `result` object is populated with an object describing the result of the render call.
-
-### Error Object
-
-* `message` (String) - The error message.
-* `line` (Number) - The line number of error.
-* `column` (Number) - The column number of error.
-* `status` (Number) - The status code.
-* `file` (String) - The filename of error. In case `file` option was not set (in favour of `data`), this will reflect the value `stdin`.
-
-### Result Object
-
-* `css` (Buffer) - The compiled CSS. Write this to a file, or serve it out as needed.
-* `map` (Buffer) - The source map
-* `stats` (Object) - An object containing information about the compile. It contains the following keys:
- * `entry` (String) - The path to the scss file, or `data` if the source was not a file
- * `start` (Number) - Date.now() before the compilation
- * `end` (Number) - Date.now() after the compilation
- * `duration` (Number) - *end* - *start*
- * `includedFiles` (Array) - Absolute paths to all related scss files in no particular order.
-
-### Examples
-
-```javascript
-var sass = require('node-sass');
-sass.render({
- file: '/path/to/myFile.scss',
- data: 'body{background:blue; a{color:black;}}',
- importer: function(url, prev, done) {
- // url is the path in import as is, which LibSass encountered.
- // prev is the previously resolved path.
- // done is an optional callback, either consume it or return value synchronously.
- // this.options contains this options hash, this.callback contains the node-style callback
- someAsyncFunction(url, prev, function(result){
- done({
- file: result.path, // only one of them is required, see section Special Behaviours.
- contents: result.data
- });
- });
- // OR
- var result = someSyncFunction(url, prev);
- return {file: result.path, contents: result.data};
- },
- includePaths: [ 'lib/', 'mod/' ],
- outputStyle: 'compressed'
-}, function(error, result) { // node-style callback from v3.0.0 onwards
- if (error) {
- console.log(error.status); // used to be "code" in v2x and below
- console.log(error.column);
- console.log(error.message);
- console.log(error.line);
- }
- else {
- console.log(result.css.toString());
-
- console.log(result.stats);
-
- console.log(result.map.toString());
- // or better
- console.log(JSON.stringify(result.map)); // note, JSON.stringify accepts Buffer too
- }
-});
-// OR
-var result = sass.renderSync({
- file: '/path/to/file.scss',
- data: 'body{background:blue; a{color:black;}}',
- outputStyle: 'compressed',
- outFile: '/to/my/output.css',
- sourceMap: true, // or an absolute or relative (to outFile) path
- importer: function(url, prev, done) {
- // url is the path in import as is, which LibSass encountered.
- // prev is the previously resolved path.
- // done is an optional callback, either consume it or return value synchronously.
- // this.options contains this options hash
- someAsyncFunction(url, prev, function(result){
- done({
- file: result.path, // only one of them is required, see section Special Behaviours.
- contents: result.data
- });
- });
- // OR
- var result = someSyncFunction(url, prev);
- return {file: result.path, contents: result.data};
- }
-});
-
-console.log(result.css);
-console.log(result.map);
-console.log(result.stats);
-```
-
-### Special behaviours
-
-* In the case that both `file` and `data` options are set, node-sass will give precedence to `data` and use `file` to calculate paths in sourcemaps.
-
-### Version information (>= v2.0.0)
-
-Both `node-sass` and `libsass` version info is now exposed via the `info` method:
-
-```javascript
-var sass = require('node-sass');
-
-console.log(sass.info);
-
-/*
- it will output something like:
-
- node-sass 2.0.1 (Wrapper) [JavaScript]
- libsass 3.1.0 (Sass Compiler) [C/C++]
-*/
-```
-
-Since node-sass >=v3.0.0 LibSass version is determined at run time.
-
-## Integrations
-
-Listing of community uses of node-sass in build tools and frameworks.
-
-### Brackets extension
-
-[@jasonsanjose](https://github.com/jasonsanjose) has created a [Brackets](http://brackets.io) extension based on node-sass: <https://github.com/jasonsanjose/brackets-sass>. When editing Sass files, the extension compiles changes on save. The extension also integrates with Live Preview to show Sass changes in the browser without saving or compiling.
-
-### Brunch plugin
-
-[Brunch](http://brunch.io)'s official sass plugin uses node-sass by default, and automatically falls back to ruby if use of Compass is detected: <https://github.com/brunch/sass-brunch>
-
-### Connect/Express middleware
-
-Recompile `.scss` files automatically for connect and express based http servers.
-
-This functionality has been moved to [`node-sass-middleware`](https://github.com/sass/node-sass-middleware) in node-sass v1.0.0
-
-### DocPad Plugin
-
-[@10xLaCroixDrinker](https://github.com/10xLaCroixDrinker) wrote a [DocPad](http://docpad.org/) plugin that compiles `.scss` files using node-sass: <https://github.com/10xLaCroixDrinker/docpad-plugin-nodesass>
-
-### Duo.js extension
-
-[@stephenway](https://github.com/stephenway) has created an extension that transpiles Sass to CSS using node-sass with [duo.js](http://duojs.org/)
-<https://github.com/duojs/sass>
-
-### Grunt extension
-
-[@sindresorhus](https://github.com/sindresorhus/) has created a set of grunt tasks based on node-sass: <https://github.com/sindresorhus/grunt-sass>
-
-### Gulp extension
-
-[@dlmanning](https://github.com/dlmanning/) has created a gulp sass plugin based on node-sass: <https://github.com/dlmanning/gulp-sass>
-
-### Harp
-
-[@sintaxi](https://github.com/sintaxi)’s Harp web server implicitly compiles `.scss` files using node-sass: <https://github.com/sintaxi/harp>
-
-### Metalsmith plugin
-
-[@stevenschobert](https://github.com/stevenschobert/) has created a metalsmith plugin based on node-sass: <https://github.com/stevenschobert/metalsmith-sass>
-
-### Meteor plugin
-
-[@fourseven](https://github.com/fourseven) has created a meteor plugin based on node-sass: <https://github.com/fourseven/meteor-scss>
-
-### Mimosa module
-
-[@dbashford](https://github.com/dbashford) has created a Mimosa module for sass which includes node-sass: <https://github.com/dbashford/mimosa-sass>
-
-## Example App
-
-There is also an example connect app here: <https://github.com/andrew/node-sass-example>
-
-## Rebuilding binaries
-
-Node-sass includes pre-compiled binaries for popular platforms, to add a binary for your platform follow these steps:
-
-Check out the project:
-
-```bash
-git clone --recursive https://github.com/sass/node-sass.git
-cd node-sass
-npm install
-node scripts/build -f # use -d switch for debug release
-# if succeeded, it will generate and move
-# the binary in vendor directory.
-```
-
-## Command Line Interface
-
-The interface for command-line usage is fairly simplistic at this stage, as seen in the following usage section.
-
-Output will be sent to stdout if the `--output` flag is omitted.
-
-### Usage
-
- `node-sass [options] <input> [output]`
- Or:
- `cat <input> | node-sass > output`
-
-Example:
-
-`node-sass src/style.scss dest/style.css`
-
- **Options:**
-
-```bash
- -w, --watch Watch a directory or file
- -r, --recursive Recursively watch directories or files
- -o, --output Output directory
- -x, --omit-source-map-url Omit source map URL comment from output
- -i, --indented-syntax Treat data from stdin as sass code (versus scss)
- -q, --quiet Suppress log output except on error
- -v, --version Prints version info
- --output-style CSS output style (nested | expanded | compact | compressed)
- --indent-type Indent type for output CSS (space | tab)
- --indent-width Indent width; number of spaces or tabs (maximum value: 10)
- --linefeed Linefeed style (cr | crlf | lf | lfcr)
- --source-comments Include debug info in output
- --source-map Emit source map
- --source-map-contents Embed include contents in map
- --source-map-embed Embed sourceMappingUrl as data URI
- --source-map-root Base path, will be emitted in source-map as is
- --include-path Path to look for imported files
- --follow Follow symlinked directories
- --precision The amount of precision allowed in decimal numbers
- --error-bell Output a bell character on errors
- --importer Path to .js file containing custom importer
- --functions Path to .js file containing custom functions
- --help Print usage info
-```
-
-The `input` can be either a single `.scss` or `.sass`, or a directory. If the input is a directory the `--output` flag must also be supplied.
-
-Also, note `--importer` takes the (absolute or relative to pwd) path to a js file, which needs to have a default `module.exports` set to the importer function. See our test [fixtures](https://github.com/sass/node-sass/tree/974f93e76ddd08ea850e3e663cfe64bb6a059dd3/test/fixtures/extras) for example.
-
-The `--source-map` option accepts a boolean value, in which case it replaces destination extension with `.css.map`. It also accepts path to `.map` file and even path to the desired directory.
-When compiling a directory `--source-map` can either be a boolean value or a directory.
-
-## Binary configuration parameters
-
-node-sass supports different configuration parameters to change settings related to the sass binary such as binary name, binary path or alternative download path. Following parameters are supported by node-sass:
-
-Variable name | .npmrc parameter | Process argument | Value
------------------|------------------|--------------------|------
-SASS_BINARY_NAME | sass_binary_name | --sass-binary-name | path
-SASS_BINARY_SITE | sass_binary_site | --sass-binary-site | URL
-SASS_BINARY_PATH | sass_binary_path | --sass-binary-path | path
-SASS_BINARY_DIR | sass_binary_dir | --sass-binary-dir | path
-
-These parameters can be used as environment variable:
-
-* E.g. `export SASS_BINARY_SITE=http://example.com/`
-
-As local or global [.npmrc](https://docs.npmjs.com/misc/config) configuration file:
-
-* E.g. `sass_binary_site=http://example.com/`
-
-As a process argument:
-
-* E.g. `npm install node-sass --sass-binary-site=http://example.com/`
-
-## Post-install Build
-
-Install runs only two Mocha tests to see if your machine can use the pre-built [LibSass] which will save some time during install. If any tests fail it will build from source.
-
-## Maintainers
-
-This module is brought to you and maintained by the following people:
-
-* Michael Mifsud - Project Lead ([Github](https://github.com/xzyfer) / [Twitter](https://twitter.com/xzyfer))
-* Andrew Nesbitt ([Github](https://github.com/andrew) / [Twitter](https://twitter.com/teabass))
-* Dean Mao ([Github](https://github.com/deanmao) / [Twitter](https://twitter.com/deanmao))
-* Brett Wilkins ([Github](https://github.com/bwilkins) / [Twitter](https://twitter.com/bjmaz))
-* Keith Cirkel ([Github](https://github.com/keithamus) / [Twitter](https://twitter.com/Keithamus))
-* Laurent Goderre ([Github](https://github.com/laurentgoderre) / [Twitter](https://twitter.com/laurentgoderre))
-* Nick Schonning ([Github](https://github.com/nschonni) / [Twitter](https://twitter.com/nschonni))
-* Adeel Mujahid ([Github](https://github.com/am11) / [Twitter](https://twitter.com/adeelbm))
-
-## Contributors
-
-We <3 our contributors! A special thanks to all those who have clocked in some dev time on this project, we really appreciate your hard work. You can find [a full list of those people here.](https://github.com/sass/node-sass/graphs/contributors)
-
-### Note on Patches/Pull Requests
-
-Check out our [Contributing guide](/.github/CONTRIBUTING.md)
-
-## Copyright
-
-Copyright (c) 2015 Andrew Nesbitt. See [LICENSE](https://github.com/sass/node-sass/blob/master/LICENSE) for details.
-
-[LibSass]: https://github.com/sass/libsass
diff --git a/node_modules/node-sass/bin/emcc b/node_modules/node-sass/bin/emcc
deleted file mode 100755
index e2b8222..0000000
--- a/node_modules/node-sass/bin/emcc
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-skip=0
-
-for arg; do
- shift
- [ "$skip" = "1" ] && skip=0 && continue
- [ "$arg" = "-arch" ] && skip=1 && continue
- set -- "$@" "$arg"
-done
-
-emcc $@
diff --git a/node_modules/node-sass/bin/node-sass b/node_modules/node-sass/bin/node-sass
deleted file mode 100755
index 54660ed..0000000
--- a/node_modules/node-sass/bin/node-sass
+++ /dev/null
@@ -1,412 +0,0 @@
-#!/usr/bin/env node
-
-var Emitter = require('events').EventEmitter,
- forEach = require('async-foreach').forEach,
- Gaze = require('gaze'),
- meow = require('meow'),
- util = require('util'),
- path = require('path'),
- glob = require('glob'),
- sass = require('../lib'),
- render = require('../lib/render'),
- watcher = require('../lib/watcher'),
- stdout = require('stdout-stream'),
- stdin = require('get-stdin'),
- fs = require('fs');
-
-/**
- * Initialize CLI
- */
-
-var cli = meow({
- pkg: '../package.json',
- version: sass.info,
- help: [
- 'Usage:',
- ' node-sass [options] <input.scss>',
- ' cat <input.scss> | node-sass [options] > output.css',
- '',
- 'Example: Compile foobar.scss to foobar.css',
- ' node-sass --output-style compressed foobar.scss > foobar.css',
- ' cat foobar.scss | node-sass --output-style compressed > foobar.css',
- '',
- 'Example: Watch the sass directory for changes, compile with sourcemaps to the css directory',
- ' node-sass --watch --recursive --output css',
- ' --source-map true --source-map-contents sass',
- '',
- 'Options',
- ' -w, --watch Watch a directory or file',
- ' -r, --recursive Recursively watch directories or files',
- ' -o, --output Output directory',
- ' -x, --omit-source-map-url Omit source map URL comment from output',
- ' -i, --indented-syntax Treat data from stdin as sass code (versus scss)',
- ' -q, --quiet Suppress log output except on error',
- ' -v, --version Prints version info',
- ' --output-style CSS output style (nested | expanded | compact | compressed)',
- ' --indent-type Indent type for output CSS (space | tab)',
- ' --indent-width Indent width; number of spaces or tabs (maximum value: 10)',
- ' --linefeed Linefeed style (cr | crlf | lf | lfcr)',
- ' --source-comments Include debug info in output',
- ' --source-map Emit source map (boolean, or path to output .map file)',
- ' --source-map-contents Embed include contents in map',
- ' --source-map-embed Embed sourceMappingUrl as data URI',
- ' --source-map-root Base path, will be emitted in source-map as is',
- ' --include-path Path to look for imported files',
- ' --follow Follow symlinked directories',
- ' --precision The amount of precision allowed in decimal numbers',
- ' --error-bell Output a bell character on errors',
- ' --importer Path to .js file containing custom importer',
- ' --functions Path to .js file containing custom functions',
- ' --help Print usage info'
- ].join('\n')
-}, {
- boolean: [
- 'error-bell',
- 'follow',
- 'indented-syntax',
- 'omit-source-map-url',
- 'quiet',
- 'recursive',
- 'source-map-embed',
- 'source-map-contents',
- 'source-comments',
- 'watch'
- ],
- string: [
- 'functions',
- 'importer',
- 'include-path',
- 'indent-type',
- 'linefeed',
- 'output',
- 'output-style',
- 'precision',
- 'source-map-root'
- ],
- alias: {
- c: 'source-comments',
- i: 'indented-syntax',
- q: 'quiet',
- o: 'output',
- r: 'recursive',
- x: 'omit-source-map-url',
- v: 'version',
- w: 'watch'
- },
- default: {
- 'include-path': process.cwd(),
- 'indent-type': 'space',
- 'indent-width': 2,
- linefeed: 'lf',
- 'output-style': 'nested',
- precision: 5,
- quiet: false,
- recursive: true
- }
-});
-
-/**
- * Is a Directory
- *
- * @param {String} filePath
- * @returns {Boolean}
- * @api private
- */
-
-function isDirectory(filePath) {
- var isDir = false;
- try {
- var absolutePath = path.resolve(filePath);
- isDir = fs.statSync(absolutePath).isDirectory();
- } catch (e) {
- isDir = e.code === 'ENOENT';
- }
- return isDir;
-}
-
-/**
- * Get correct glob pattern
- *
- * @param {Object} options
- * @returns {String}
- * @api private
- */
-
-function globPattern(options) {
- return options.recursive ? '**/*.{sass,scss}' : '*.{sass,scss}';
-}
-
-/**
- * Create emitter
- *
- * @api private
- */
-
-function getEmitter() {
- var emitter = new Emitter();
-
- emitter.on('error', function(err) {
- if (options.errorBell) {
- err += '\x07';
- }
- console.error(err);
- if (!options.watch) {
- process.exit(1);
- }
- });
-
- emitter.on('warn', function(data) {
- if (!options.quiet) {
- console.warn(data);
- }
- });
-
- emitter.on('info', function(data) {
- if (!options.quiet) {
- console.info(data);
- }
- });
-
- emitter.on('log', stdout.write.bind(stdout));
-
- return emitter;
-}
-
-/**
- * Construct options
- *
- * @param {Array} arguments
- * @param {Object} options
- * @api private
- */
-
-function getOptions(args, options) {
- var cssDir, sassDir, file, mapDir;
- options.src = args[0];
-
- if (args[1]) {
- options.dest = path.resolve(args[1]);
- } else if (options.output) {
- options.dest = path.join(
- path.resolve(options.output),
- [path.basename(options.src, path.extname(options.src)), '.css'].join('')); // replace ext.
- }
-
- if (options.directory) {
- sassDir = path.resolve(options.directory);
- file = path.relative(sassDir, args[0]);
- cssDir = path.resolve(options.output);
- options.dest = path.join(cssDir, file).replace(path.extname(file), '.css');
- }
-
- if (options.sourceMap) {
- if(!options.sourceMapOriginal) {
- options.sourceMapOriginal = options.sourceMap;
- }
-
- // check if sourceMap path ends with .map to avoid isDirectory false-positive
- var sourceMapIsDirectory = options.sourceMapOriginal.indexOf('.map', options.sourceMapOriginal.length - 4) === -1 && isDirectory(options.sourceMapOriginal);
-
- if (options.sourceMapOriginal === 'true') {
- options.sourceMap = options.dest + '.map';
- } else if (!sourceMapIsDirectory) {
- options.sourceMap = path.resolve(options.sourceMapOriginal);
- } else if (sourceMapIsDirectory) {
- if (!options.directory) {
- options.sourceMap = path.resolve(options.sourceMapOriginal, path.basename(options.dest) + '.map');
- } else {
- sassDir = path.resolve(options.directory);
- file = path.relative(sassDir, args[0]);
- mapDir = path.resolve(options.sourceMapOriginal);
- options.sourceMap = path.join(mapDir, file).replace(path.extname(file), '.css.map');
- }
- }
- }
-
- return options;
-}
-
-/**
- * Watch
- *
- * @param {Object} options
- * @param {Object} emitter
- * @api private
- */
-
-function watch(options, emitter) {
- var handler = function(files) {
- files.added.forEach(function(file) {
- var watch = gaze.watched();
- Object.keys(watch).forEach(function (dir) {
- if (watch[dir].indexOf(file) !== -1) {
- gaze.add(file);
- }
- });
- });
-
- files.changed.forEach(function(file) {
- if (path.basename(file)[0] !== '_') {
- renderFile(file, options, emitter);
- }
- });
-
- files.removed.forEach(function(file) {
- gaze.remove(file);
- });
- };
-
- var gaze = new Gaze();
- gaze.add(watcher.reset(options));
- gaze.on('error', emitter.emit.bind(emitter, 'error'));
-
- gaze.on('changed', function(file) {
- handler(watcher.changed(file));
- });
-
- gaze.on('added', function(file) {
- handler(watcher.added(file));
- });
-
- gaze.on('deleted', function(file) {
- handler(watcher.removed(file));
- });
-}
-
-/**
- * Run
- *
- * @param {Object} options
- * @param {Object} emitter
- * @api private
- */
-
-function run(options, emitter) {
- if (!Array.isArray(options.includePath)) {
- options.includePath = [options.includePath];
- }
-
- if (options.directory) {
- if (!options.output) {
- emitter.emit('error', 'An output directory must be specified when compiling a directory');
- }
- if (!isDirectory(options.output)) {
- emitter.emit('error', 'An output directory must be specified when compiling a directory');
- }
- }
-
- if (options.sourceMapOriginal && options.directory && !isDirectory(options.sourceMapOriginal) && options.sourceMapOriginal !== 'true') {
- emitter.emit('error', 'The --source-map option must be either a boolean or directory when compiling a directory');
- }
-
- if (options.importer) {
- if ((path.resolve(options.importer) === path.normalize(options.importer).replace(/(.+)([\/|\\])$/, '$1'))) {
- options.importer = require(options.importer);
- } else {
- options.importer = require(path.resolve(options.importer));
- }
- }
-
- if (options.functions) {
- if ((path.resolve(options.functions) === path.normalize(options.functions).replace(/(.+)([\/|\\])$/, '$1'))) {
- options.functions = require(options.functions);
- } else {
- options.functions = require(path.resolve(options.functions));
- }
- }
-
- if (options.watch) {
- watch(options, emitter);
- } else if (options.directory) {
- renderDir(options, emitter);
- } else {
- render(options, emitter);
- }
-}
-
-/**
- * Render a file
- *
- * @param {String} file
- * @param {Object} options
- * @param {Object} emitter
- * @api private
- */
-function renderFile(file, options, emitter) {
- options = getOptions([path.resolve(file)], options);
- if (options.watch && !options.quiet) {
- emitter.emit('info', util.format('=> changed: %s', file));
- }
- render(options, emitter);
-}
-
-/**
- * Render all sass files in a directory
- *
- * @param {Object} options
- * @param {Object} emitter
- * @api private
- */
-function renderDir(options, emitter) {
- var globPath = path.resolve(options.directory, globPattern(options));
- glob(globPath, { ignore: '**/_*', follow: options.follow }, function(err, files) {
- if (err) {
- return emitter.emit('error', util.format('You do not have permission to access this path: %s.', err.path));
- } else if (!files.length) {
- return emitter.emit('error', 'No input file was found.');
- }
-
- forEach(files, function(subject) {
- emitter.once('done', this.async());
- renderFile(subject, options, emitter);
- }, function(successful, arr) {
- var outputDir = path.join(process.cwd(), options.output);
- if (!options.quiet) {
- emitter.emit('info', util.format('Wrote %s CSS files to %s', arr.length, outputDir));
- }
- process.exit();
- });
- });
-}
-
-/**
- * Arguments and options
- */
-
-var options = getOptions(cli.input, cli.flags);
-var emitter = getEmitter();
-
-/**
- * Show usage if no arguments are supplied
- */
-
-if (!options.src && process.stdin.isTTY) {
- emitter.emit('error', [
- 'Provide a Sass file to render',
- '',
- 'Example: Compile foobar.scss to foobar.css',
- ' node-sass --output-style compressed foobar.scss > foobar.css',
- ' cat foobar.scss | node-sass --output-style compressed > foobar.css',
- '',
- 'Example: Watch the sass directory for changes, compile with sourcemaps to the css directory',
- ' node-sass --watch --recursive --output css',
- ' --source-map true --source-map-contents sass',
- ].join('\n'));
-}
-
-/**
- * Apply arguments
- */
-
-if (options.src) {
- if (isDirectory(options.src)) {
- options.directory = options.src;
- }
- run(options, emitter);
-} else if (!process.stdin.isTTY) {
- stdin(function(data) {
- options.data = data;
- options.stdin = true;
- run(options, emitter);
- });
-}
diff --git a/node_modules/node-sass/binding.gyp b/node_modules/node-sass/binding.gyp
deleted file mode 100644
index 8b34152..0000000
--- a/node_modules/node-sass/binding.gyp
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- 'variables': {
- 'libsass_ext%': '',
- },
- 'targets': [
- {
- 'target_name': 'binding',
- 'win_delay_load_hook': 'true',
- 'sources': [
- 'src/binding.cpp',
- 'src/create_string.cpp',
- 'src/custom_function_bridge.cpp',
- 'src/custom_importer_bridge.cpp',
- 'src/sass_context_wrapper.cpp',
- 'src/sass_types/boolean.cpp',
- 'src/sass_types/color.cpp',
- 'src/sass_types/error.cpp',
- 'src/sass_types/factory.cpp',
- 'src/sass_types/list.cpp',
- 'src/sass_types/map.cpp',
- 'src/sass_types/null.cpp',
- 'src/sass_types/number.cpp',
- 'src/sass_types/string.cpp'
- ],
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'SetChecksum': 'true'
- }
- },
- 'xcode_settings': {
- 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
- 'CLANG_CXX_LIBRARY': 'libc++',
- 'OTHER_LDFLAGS': [],
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO',
- 'MACOSX_DEPLOYMENT_TARGET': '10.7'
- },
- 'include_dirs': [
- '<!(node -e "require(\'nan\')")',
- ],
- 'conditions': [
- ['libsass_ext == "" or libsass_ext == "no"', {
- 'dependencies': [
- 'src/libsass.gyp:libsass',
- ]
- }],
- ['libsass_ext == "auto"', {
- 'cflags_cc': [
- '<!(pkg-config --cflags libsass)',
- ],
- 'link_settings': {
- 'ldflags': [
- '<!(pkg-config --libs-only-other --libs-only-L libsass)',
- ],
- 'libraries': [
- '<!(pkg-config --libs-only-l libsass)',
- ],
- }
- }],
- ['libsass_ext == "yes"', {
- 'cflags_cc': [
- '<(libsass_cflags)',
- ],
- 'link_settings': {
- 'ldflags': [
- '<(libsass_ldflags)',
- ],
- 'libraries': [
- '<(libsass_library)',
- ],
- }
- }],
- ['OS=="win" and MSVS_VERSION == "2015"', {
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'AdditionalOptions': [
- # disable Thread-Safe "Magic" for local static variables
- '/Zc:threadSafeInit-',
- ],
- },
- },
- }],
- ['OS!="win"', {
- 'cflags_cc+': [
- '-std=c++0x'
- ]
- }]
- ]
- }
- ]
-}
diff --git a/node_modules/node-sass/lib/binding.js b/node_modules/node-sass/lib/binding.js
deleted file mode 100644
index 7af4132..0000000
--- a/node_modules/node-sass/lib/binding.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- * node-sass: lib/binding.js
- */
-
-var errors = require('./errors');
-
-/**
- * Require binding
- */
-module.exports = function(ext) {
- if (!ext.hasBinary(ext.getBinaryPath())) {
- if (!ext.isSupportedEnvironment()) {
- throw new Error(errors.unsupportedEnvironment());
- } else {
- throw new Error(errors.missingBinary());
- }
- }
-
- return require(ext.getBinaryPath());
-};
diff --git a/node_modules/node-sass/lib/errors.js b/node_modules/node-sass/lib/errors.js
deleted file mode 100644
index f729db6..0000000
--- a/node_modules/node-sass/lib/errors.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*!
- * node-sass: lib/errors.js
- */
-
-var sass = require('./extensions'),
- pkg = require('../package.json');
-
-function humanEnvironment() {
- return sass.getHumanEnvironment(sass.getBinaryName());
-}
-
-function foundBinaries() {
- return [
- 'Found bindings for the following environments:',
- foundBinariesList(),
- ].join('\n');
-}
-
-function foundBinariesList() {
- return sass.getInstalledBinaries().map(function(env) {
- return ' - ' + sass.getHumanEnvironment(env);
- }).join('\n');
-}
-
-function missingBinaryFooter() {
- return [
- 'This usually happens because your environment has changed since running `npm install`.',
- 'Run `npm rebuild node-sass` to download the binding for your current environment.',
- ].join('\n');
-}
-
-module.exports.unsupportedEnvironment = function() {
- return [
- 'Node Sass does not yet support your current environment: ' + humanEnvironment(),
- 'For more information on which environments are supported please see:',
- 'https://github.com/sass/node-sass/releases/tag/v' + pkg.version
- ].join('\n');
-};
-
-module.exports.missingBinary = function() {
- return [
- 'Missing binding ' + sass.getBinaryPath(),
- 'Node Sass could not find a binding for your current environment: ' + humanEnvironment(),
- '',
- foundBinaries(),
- '',
- missingBinaryFooter(),
- ].join('\n');
-};
diff --git a/node_modules/node-sass/lib/extensions.js b/node_modules/node-sass/lib/extensions.js
deleted file mode 100644
index eec0ee2..0000000
--- a/node_modules/node-sass/lib/extensions.js
+++ /dev/null
@@ -1,462 +0,0 @@
-/*!
- * node-sass: lib/extensions.js
- */
-
-var eol = require('os').EOL,
- fs = require('fs'),
- pkg = require('../package.json'),
- mkdir = require('mkdirp'),
- path = require('path'),
- defaultBinaryDir = path.join(__dirname, '..', 'vendor'),
- trueCasePathSync = require('true-case-path');
-
-/**
- * Get the human readable name of the Platform that is running
- *
- * @param {string} platform - An OS platform to match, or null to fallback to
- * the current process platform
- * @return {Object} The name of the platform if matched, false otherwise
- *
- * @api public
- */
-function getHumanPlatform(platform) {
- switch (platform || process.platform) {
- case 'darwin': return 'OS X';
- case 'freebsd': return 'FreeBSD';
- case 'linux': return 'Linux';
- case 'linux_musl': return 'Linux/musl';
- case 'win32': return 'Windows';
- default: return false;
- }
-}
-
-/**
- * Provides a more readable version of the architecture
- *
- * @param {string} arch - An instruction architecture name to match, or null to
- * lookup the current process architecture
- * @return {Object} The value of the process architecture, or false if unknown
- *
- * @api public
- */
-function getHumanArchitecture(arch) {
- switch (arch || process.arch) {
- case 'ia32': return '32-bit';
- case 'x86': return '32-bit';
- case 'x64': return '64-bit';
- default: return false;
- }
-}
-
-/**
- * Get the friendly name of the Node environment being run
- *
- * @param {Object} abi - A Node Application Binary Interface value, or null to
- * fallback to the current Node ABI
- * @return {Object} Returns a string name of the Node environment or false if
- * unmatched
- *
- * @api public
- */
-function getHumanNodeVersion(abi) {
- switch (parseInt(abi || process.versions.modules, 10)) {
- case 11: return 'Node 0.10.x';
- case 14: return 'Node 0.12.x';
- case 42: return 'io.js 1.x';
- case 43: return 'io.js 1.1.x';
- case 44: return 'io.js 2.x';
- case 45: return 'io.js 3.x';
- case 46: return 'Node.js 4.x';
- case 47: return 'Node.js 5.x';
- case 48: return 'Node.js 6.x';
- case 49: return 'Electron 1.3.x';
- case 50: return 'Electron 1.4.x';
- case 51: return 'Node.js 7.x';
- case 53: return 'Electron 1.6.x';
- case 57: return 'Node.js 8.x';
- case 59: return 'Node.js 9.x';
- case 64: return 'Node.js 10.x';
- case 67: return 'Node.js 11.x';
- case 72: return 'Node.js 12.x';
- case 79: return 'Node.js 13.x';
- case 83: return 'Node.js 14.x';
- default: return false;
- }
-}
-
-/**
- * Get a human readable description of where node-sass is running to support
- * user error reporting when something goes wrong
- *
- * @param {string} env - The name of the native bindings that is to be parsed
- * @return {string} A description of what os, architecture, and Node version
- * that is being run
- *
- * @api public
- */
-function getHumanEnvironment(env) {
- var binding = env.replace(/_binding\.node$/, ''),
- parts = binding.split('-'),
- platform = getHumanPlatform(parts[0]),
- arch = getHumanArchitecture(parts[1]),
- runtime = getHumanNodeVersion(parts[2]);
-
- if (parts.length !== 3) {
- return 'Unknown environment (' + binding + ')';
- }
-
- if (!platform) {
- platform = 'Unsupported platform (' + parts[0] + ')';
- }
-
- if (!arch) {
- arch = 'Unsupported architecture (' + parts[1] + ')';
- }
-
- if (!runtime) {
- runtime = 'Unsupported runtime (' + parts[2] + ')';
- }
-
- return [
- platform, arch, 'with', runtime,
- ].join(' ');
-}
-
-/**
- * Get the value of the binaries under the default path
- *
- * @return {Array} The currently installed node-sass bindings
- *
- * @api public
- */
-function getInstalledBinaries() {
- return fs.readdirSync(getBinaryDir());
-}
-
-/**
- * Check that an environment matches the whitelisted values or the current
- * environment if no parameters are passed
- *
- * @param {string} platform - The name of the OS platform(darwin, win32, etc...)
- * @param {string} arch - The instruction set architecture of the Node environment
- * @param {string} abi - The Node Application Binary Interface
- * @return {Boolean} True, if node-sass supports the current platform, false otherwise
- *
- * @api public
- */
-function isSupportedEnvironment(platform, arch, abi) {
- return (
- false !== getHumanPlatform(platform) &&
- false !== getHumanArchitecture(arch) &&
- false !== getHumanNodeVersion(abi)
- );
-}
-
-/**
- * Get the value of a CLI argument
- *
- * @param {String} name
- * @param {Array} args
- * @api private
- */
-
-function getArgument(name, args) {
- var flags = args || process.argv.slice(2),
- index = flags.lastIndexOf(name);
-
- if (index === -1 || index + 1 >= flags.length) {
- return null;
- }
-
- return flags[index + 1];
-}
-
-/**
- * Get binary name.
- * If environment variable SASS_BINARY_NAME,
- * .npmrc variable sass_binary_name or
- * process argument --binary-name is provided,
- * return it as is, otherwise make default binary
- * name: {platform}-{arch}-{v8 version}.node
- *
- * @api public
- */
-
-function getBinaryName() {
- var binaryName,
- variant,
- platform = process.platform;
-
- if (getArgument('--sass-binary-name')) {
- binaryName = getArgument('--sass-binary-name');
- } else if (process.env.SASS_BINARY_NAME) {
- binaryName = process.env.SASS_BINARY_NAME;
- } else if (process.env.npm_config_sass_binary_name) {
- binaryName = process.env.npm_config_sass_binary_name;
- } else if (pkg.nodeSassConfig && pkg.nodeSassConfig.binaryName) {
- binaryName = pkg.nodeSassConfig.binaryName;
- } else {
- variant = getPlatformVariant();
- if (variant) {
- platform += '_' + variant;
- }
-
- binaryName = [
- platform, '-',
- process.arch, '-',
- process.versions.modules
- ].join('');
- }
-
- return [binaryName, 'binding.node'].join('_');
-}
-
-/**
- * Determine the URL to fetch binary file from.
- * By default fetch from the node-sass distribution
- * site on GitHub.
- *
- * The default URL can be overridden using
- * the environment variable SASS_BINARY_SITE,
- * .npmrc variable sass_binary_site or
- * or a command line option --sass-binary-site:
- *
- * node scripts/install.js --sass-binary-site http://example.com/
- *
- * The URL should to the mirror of the repository
- * laid out as follows:
- *
- * SASS_BINARY_SITE/
- *
- * v3.0.0
- * v3.0.0/freebsd-x64-14_binding.node
- * ....
- * v3.0.0
- * v3.0.0/freebsd-ia32-11_binding.node
- * v3.0.0/freebsd-x64-42_binding.node
- * ... etc. for all supported versions and platforms
- *
- * @api public
- */
-
-function getBinaryUrl() {
- var site = getArgument('--sass-binary-site') ||
- process.env.SASS_BINARY_SITE ||
- process.env.npm_config_sass_binary_site ||
- (pkg.nodeSassConfig && pkg.nodeSassConfig.binarySite) ||
- 'https://github.com/sass/node-sass/releases/download';
-
- return [site, 'v' + pkg.version, getBinaryName()].join('/');
-}
-
-/**
- * Get binary dir.
- * If environment variable SASS_BINARY_DIR,
- * .npmrc variable sass_binary_dir or
- * process argument --sass-binary-dir is provided,
- * select it by appending binary name, otherwise
- * use default binary dir.
- * Once the primary selection is made, check if
- * callers wants to throw if file not exists before
- * returning.
- *
- * @api public
- */
-
-function getBinaryDir() {
- var binaryDir;
-
- if (getArgument('--sass-binary-dir')) {
- binaryDir = getArgument('--sass-binary-dir');
- } else if (process.env.SASS_BINARY_DIR) {
- binaryDir = process.env.SASS_BINARY_DIR;
- } else if (process.env.npm_config_sass_binary_dir) {
- binaryDir = process.env.npm_config_sass_binary_dir;
- } else if (pkg.nodeSassConfig && pkg.nodeSassConfig.binaryDir) {
- binaryDir = pkg.nodeSassConfig.binaryDir;
- } else {
- binaryDir = defaultBinaryDir;
- }
-
- return binaryDir;
-}
-
-/**
- * Get binary path.
- * If environment variable SASS_BINARY_PATH,
- * .npmrc variable sass_binary_path or
- * process argument --sass-binary-path is provided,
- * select it by appending binary name, otherwise
- * make default binary path using binary name.
- * Once the primary selection is made, check if
- * callers wants to throw if file not exists before
- * returning.
- *
- * @api public
- */
-
-function getBinaryPath() {
- var binaryPath;
-
- if (getArgument('--sass-binary-path')) {
- binaryPath = getArgument('--sass-binary-path');
- } else if (process.env.SASS_BINARY_PATH) {
- binaryPath = process.env.SASS_BINARY_PATH;
- } else if (process.env.npm_config_sass_binary_path) {
- binaryPath = process.env.npm_config_sass_binary_path;
- } else if (pkg.nodeSassConfig && pkg.nodeSassConfig.binaryPath) {
- binaryPath = pkg.nodeSassConfig.binaryPath;
- } else {
- binaryPath = path.join(getBinaryDir(), getBinaryName().replace(/_(?=binding\.node)/, '/'));
- }
-
- if (process.versions.modules < 46) {
- return binaryPath;
- }
-
- try {
- return trueCasePathSync(binaryPath) || binaryPath;
- } catch (e) {
- return binaryPath;
- }
-}
-
-/**
- * An array of paths suitable for use as a local disk cache of the binding.
- *
- * @return {[]String} an array of paths
- * @api public
- */
-function getCachePathCandidates() {
- return [
- process.env.npm_config_sass_binary_cache,
- process.env.npm_config_cache,
- ].filter(function(_) { return _; });
-}
-
-/**
- * The most suitable location for caching the binding on disk.
- *
- * Given the candidates directories provided by `getCachePathCandidates()` this
- * returns the first writable directory. By treating the candidate directories
- * as a prioritised list this method is deterministic, assuming no change to the
- * local environment.
- *
- * @return {String} directory to cache binding
- * @api public
- */
-function getBinaryCachePath() {
- var i,
- cachePath,
- cachePathCandidates = getCachePathCandidates();
-
- for (i = 0; i < cachePathCandidates.length; i++) {
- cachePath = path.join(cachePathCandidates[i], pkg.name, pkg.version);
-
- try {
- mkdir.sync(cachePath);
- return cachePath;
- } catch (e) {
- // Directory is not writable, try another
- }
- }
-
- return '';
-}
-
-/**
- * The cached binding
- *
- * Check the candidates directories provided by `getCachePathCandidates()` for
- * the binding file, if it exists. By treating the candidate directories
- * as a prioritised list this method is deterministic, assuming no change to the
- * local environment.
- *
- * @return {String} path to cached binary
- * @api public
- */
-function getCachedBinary() {
- var i,
- cachePath,
- cacheBinary,
- cachePathCandidates = getCachePathCandidates(),
- binaryName = getBinaryName();
-
- for (i = 0; i < cachePathCandidates.length; i++) {
- cachePath = path.join(cachePathCandidates[i], pkg.name, pkg.version);
- cacheBinary = path.join(cachePath, binaryName);
-
- if (fs.existsSync(cacheBinary)) {
- return cacheBinary;
- }
- }
-
- return '';
-}
-
-/**
- * Does the supplied binary path exist
- *
- * @param {String} binaryPath
- * @api public
- */
-
-function hasBinary(binaryPath) {
- return fs.existsSync(binaryPath);
-}
-
-/**
- * Get Sass version information
- *
- * @api public
- */
-
-function getVersionInfo(binding) {
- return [
- ['node-sass', pkg.version, '(Wrapper)', '[JavaScript]'].join('\t'),
- ['libsass ', binding.libsassVersion(), '(Sass Compiler)', '[C/C++]'].join('\t'),
- ].join(eol);
-}
-
-/**
- * Gets the platform variant, currently either an empty string or 'musl' for Linux/musl platforms.
- *
- * @api public
- */
-
-function getPlatformVariant() {
- var contents = '';
-
- if (process.platform !== 'linux') {
- return '';
- }
-
- try {
- contents = fs.readFileSync(process.execPath);
-
- // Buffer.indexOf was added in v1.5.0 so cast to string for old node
- // Delay contents.toStrings because it's expensive
- if (!contents.indexOf) {
- contents = contents.toString();
- }
-
- if (contents.indexOf('libc.musl-x86_64.so.1') !== -1) {
- return 'musl';
- }
- } catch (err) { } // eslint-disable-line no-empty
-
- return '';
-}
-
-module.exports.hasBinary = hasBinary;
-module.exports.getBinaryUrl = getBinaryUrl;
-module.exports.getBinaryName = getBinaryName;
-module.exports.getBinaryDir = getBinaryDir;
-module.exports.getBinaryPath = getBinaryPath;
-module.exports.getBinaryCachePath = getBinaryCachePath;
-module.exports.getCachedBinary = getCachedBinary;
-module.exports.getCachePathCandidates = getCachePathCandidates;
-module.exports.getVersionInfo = getVersionInfo;
-module.exports.getHumanEnvironment = getHumanEnvironment;
-module.exports.getInstalledBinaries = getInstalledBinaries;
-module.exports.isSupportedEnvironment = isSupportedEnvironment;
diff --git a/node_modules/node-sass/lib/index.js b/node_modules/node-sass/lib/index.js
deleted file mode 100644
index 3f20708..0000000
--- a/node_modules/node-sass/lib/index.js
+++ /dev/null
@@ -1,477 +0,0 @@
-/*!
- * node-sass: lib/index.js
- */
-
-var path = require('path'),
- clonedeep = require('lodash/cloneDeep'),
- assign = require('lodash/assign'),
- sass = require('./extensions');
-
-/**
- * Require binding
- */
-
-var binding = require('./binding')(sass);
-
-/**
- * Get input file
- *
- * @param {Object} options
- * @api private
- */
-
-function getInputFile(options) {
- return options.file ? path.resolve(options.file) : null;
-}
-
-/**
- * Get output file
- *
- * @param {Object} options
- * @api private
- */
-
-function getOutputFile(options) {
- var outFile = options.outFile;
-
- if (!outFile || typeof outFile !== 'string' || (!options.data && !options.file)) {
- return null;
- }
-
- return path.resolve(outFile);
-}
-
-/**
- * Get source map
- *
- * @param {Object} options
- * @api private
- */
-
-function getSourceMap(options) {
- var sourceMap = options.sourceMap;
-
- if (sourceMap && typeof sourceMap !== 'string' && options.outFile) {
- sourceMap = options.outFile + '.map';
- }
-
- return sourceMap && typeof sourceMap === 'string' ? path.resolve(sourceMap) : null;
-}
-
-/**
- * Get stats
- *
- * @param {Object} options
- * @api private
- */
-
-function getStats(options) {
- var stats = {};
-
- stats.entry = options.file || 'data';
- stats.start = Date.now();
-
- return stats;
-}
-
-/**
- * End stats
- *
- * @param {Object} stats
- * @param {Object} sourceMap
- * @api private
- */
-
-function endStats(stats) {
- stats.end = Date.now();
- stats.duration = stats.end - stats.start;
-
- return stats;
-}
-
-/**
- * Get style
- *
- * @param {Object} options
- * @api private
- */
-
-function getStyle(options) {
- var styles = {
- nested: 0,
- expanded: 1,
- compact: 2,
- compressed: 3
- };
-
- return styles[options.outputStyle] || 0;
-}
-
-/**
- * Get indent width
- *
- * @param {Object} options
- * @api private
- */
-
-function getIndentWidth(options) {
- var width = parseInt(options.indentWidth) || 2;
-
- return width > 10 ? 2 : width;
-}
-
-/**
- * Get indent type
- *
- * @param {Object} options
- * @api private
- */
-
-function getIndentType(options) {
- var types = {
- space: 0,
- tab: 1
- };
-
- return types[options.indentType] || 0;
-}
-
-/**
- * Get linefeed
- *
- * @param {Object} options
- * @api private
- */
-
-function getLinefeed(options) {
- var feeds = {
- cr: '\r',
- crlf: '\r\n',
- lf: '\n',
- lfcr: '\n\r'
- };
-
- return feeds[options.linefeed] || '\n';
-}
-
-/**
- * Build an includePaths string
- * from the options.includePaths array and the SASS_PATH environment variable
- *
- * @param {Object} options
- * @api private
- */
-
-function buildIncludePaths(options) {
- options.includePaths = options.includePaths || [];
-
- if (process.env.hasOwnProperty('SASS_PATH')) {
- options.includePaths = options.includePaths.concat(
- process.env.SASS_PATH.split(path.delimiter)
- );
- }
-
- // Preserve the behaviour people have come to expect.
- // This behaviour was removed from Sass in 3.4 and
- // LibSass in 3.5.
- options.includePaths.unshift(process.cwd());
-
- return options.includePaths.join(path.delimiter);
-}
-
-/**
- * Get options
- *
- * @param {Object} options
- * @api private
- */
-
-function getOptions(opts, cb) {
- if (typeof opts !== 'object') {
- throw new Error('Invalid: options is not an object.');
- }
- var options = clonedeep(opts || {});
-
- options.sourceComments = options.sourceComments || false;
- if (options.hasOwnProperty('file')) {
- options.file = getInputFile(options);
- }
- options.outFile = getOutputFile(options);
- options.includePaths = buildIncludePaths(options);
- options.precision = parseInt(options.precision) || 5;
- options.sourceMap = getSourceMap(options);
- options.style = getStyle(options);
- options.indentWidth = getIndentWidth(options);
- options.indentType = getIndentType(options);
- options.linefeed = getLinefeed(options);
-
- // context object represents node-sass environment
- options.context = { options: options, callback: cb };
-
- options.result = {
- stats: getStats(options)
- };
-
- return options;
-}
-
-/**
- * Executes a callback and transforms any exception raised into a sass error
- *
- * @param {Function} callback
- * @param {Array} arguments
- * @api private
- */
-
-function tryCallback(callback, args) {
- try {
- return callback.apply(this, args);
- } catch (e) {
- if (typeof e === 'string') {
- return new binding.types.Error(e);
- } else if (e instanceof Error) {
- return new binding.types.Error(e.message);
- } else {
- return new binding.types.Error('An unexpected error occurred');
- }
- }
-}
-
-/**
- * Normalizes the signature of custom functions to make it possible to just supply the
- * function name and have the signature default to `fn(...)`. The callback is adjusted
- * to transform the input sass list into discrete arguments.
- *
- * @param {String} signature
- * @param {Function} callback
- * @return {Object}
- * @api private
- */
-
-function normalizeFunctionSignature(signature, callback) {
- if (!/^\*|@warn|@error|@debug|\w+\(.*\)$/.test(signature)) {
- if (!/\w+/.test(signature)) {
- throw new Error('Invalid function signature format "' + signature + '"');
- }
-
- return {
- signature: signature + '(...)',
- callback: function() {
- var args = Array.prototype.slice.call(arguments),
- list = args.shift(),
- i;
-
- for (i = list.getLength() - 1; i >= 0; i--) {
- args.unshift(list.getValue(i));
- }
-
- return callback.apply(this, args);
- }
- };
- }
-
- return {
- signature: signature,
- callback: callback
- };
-}
-
-/**
- * Render
- *
- * @param {Object} options
- * @api public
- */
-
-module.exports.render = function(opts, cb) {
- var options = getOptions(opts, cb);
-
- // options.error and options.success are for libsass binding
- options.error = function(err) {
- var payload = assign(new Error(), JSON.parse(err));
-
- if (cb) {
- options.context.callback.call(options.context, payload, null);
- }
- };
-
- options.success = function() {
- var result = options.result;
- var stats = endStats(result.stats);
- var payload = {
- css: result.css,
- stats: stats
- };
- if (result.map) {
- payload.map = result.map;
- }
-
- if (cb) {
- options.context.callback.call(options.context, null, payload);
- }
- };
-
- var importer = options.importer;
-
- if (importer) {
- if (Array.isArray(importer)) {
- options.importer = [];
- importer.forEach(function(subject, index) {
- options.importer[index] = function(file, prev, bridge) {
- function done(result) {
- bridge.success(result === module.exports.NULL ? null : result);
- }
-
- var result = subject.call(options.context, file, prev, done);
-
- if (result !== undefined) {
- done(result);
- }
- };
- });
- } else {
- options.importer = function(file, prev, bridge) {
- function done(result) {
- bridge.success(result === module.exports.NULL ? null : result);
- }
-
- var result = importer.call(options.context, file, prev, done);
-
- if (result !== undefined) {
- done(result);
- }
- };
- }
- }
-
- var functions = clonedeep(options.functions);
-
- if (functions) {
- options.functions = {};
-
- Object.keys(functions).forEach(function(subject) {
- var cb = normalizeFunctionSignature(subject, functions[subject]);
-
- options.functions[cb.signature] = function() {
- var args = Array.prototype.slice.call(arguments),
- bridge = args.pop();
-
- function done(data) {
- bridge.success(data);
- }
-
- var result = tryCallback(cb.callback.bind(options.context), args.concat(done));
-
- if (result) {
- done(result);
- }
- };
- });
- }
-
- if (options.data) {
- binding.render(options);
- } else if (options.file) {
- binding.renderFile(options);
- } else {
- cb({status: 3, message: 'No input specified: provide a file name or a source string to process' });
- }
-};
-
-/**
- * Render sync
- *
- * @param {Object} options
- * @api public
- */
-
-module.exports.renderSync = function(opts) {
- var options = getOptions(opts);
- var importer = options.importer;
-
- if (importer) {
- if (Array.isArray(importer)) {
- options.importer = [];
- importer.forEach(function(subject, index) {
- options.importer[index] = function(file, prev) {
- var result = subject.call(options.context, file, prev);
-
- return result === module.exports.NULL ? null : result;
- };
- });
- } else {
- options.importer = function(file, prev) {
- var result = importer.call(options.context, file, prev);
-
- return result === module.exports.NULL ? null : result;
- };
- }
- }
-
- var functions = clonedeep(options.functions);
-
- if (options.functions) {
- options.functions = {};
-
- Object.keys(functions).forEach(function(signature) {
- var cb = normalizeFunctionSignature(signature, functions[signature]);
-
- options.functions[cb.signature] = function() {
- return tryCallback(cb.callback.bind(options.context), arguments);
- };
- });
- }
-
- var status;
- if (options.data) {
- status = binding.renderSync(options);
- } else if (options.file) {
- status = binding.renderFileSync(options);
- } else {
- throw new Error('No input specified: provide a file name or a source string to process');
- }
-
- var result = options.result;
-
- if (status) {
- result.stats = endStats(result.stats);
- return result;
- }
-
- throw assign(new Error(), JSON.parse(result.error));
-};
-
-/**
- * API Info
- *
- * @api public
- */
-
-module.exports.info = sass.getVersionInfo(binding);
-
-/**
- * Expose sass types
- */
-
-module.exports.types = binding.types;
-module.exports.TRUE = binding.types.Boolean.TRUE;
-module.exports.FALSE = binding.types.Boolean.FALSE;
-module.exports.NULL = binding.types.Null.NULL;
-
-/**
- * Polyfill the old API
- *
- * TODO: remove for 4.0
- */
-
-function processSassDeprecationMessage() {
- console.log('Deprecation warning: `process.sass` is an undocumented internal that will be removed in future versions of Node Sass.');
-}
-
-process.sass = process.sass || {
- get versionInfo() { processSassDeprecationMessage(); return module.exports.info; },
- get binaryName() { processSassDeprecationMessage(); return sass.getBinaryName(); },
- get binaryUrl() { processSassDeprecationMessage(); return sass.getBinaryUrl(); },
- get binaryPath() { processSassDeprecationMessage(); return sass.getBinaryPath(); },
- get getBinaryPath() { processSassDeprecationMessage(); return sass.getBinaryPath; },
-};
diff --git a/node_modules/node-sass/lib/render.js b/node_modules/node-sass/lib/render.js
deleted file mode 100644
index 858e02e..0000000
--- a/node_modules/node-sass/lib/render.js
+++ /dev/null
@@ -1,121 +0,0 @@
-/*!
- * node-sass: lib/render.js
- */
-
-var chalk = require('chalk'),
- fs = require('fs'),
- mkdirp = require('mkdirp'),
- path = require('path'),
- sass = require('./');
-
-/**
- * Render
- *
- * @param {Object} options
- * @param {Object} emitter
- * @api public
- */
-
-module.exports = function(options, emitter) {
- var renderOptions = {
- includePaths: options.includePath,
- omitSourceMapUrl: options.omitSourceMapUrl,
- indentedSyntax: options.indentedSyntax,
- outFile: options.dest,
- outputStyle: options.outputStyle,
- precision: options.precision,
- sourceComments: options.sourceComments,
- sourceMapEmbed: options.sourceMapEmbed,
- sourceMapContents: options.sourceMapContents,
- sourceMap: options.sourceMap,
- sourceMapRoot: options.sourceMapRoot,
- importer: options.importer,
- functions: options.functions,
- indentWidth: options.indentWidth,
- indentType: options.indentType,
- linefeed: options.linefeed
- };
-
- if (options.data) {
- renderOptions.data = options.data;
- } else if (options.src) {
- renderOptions.file = options.src;
- }
-
- var sourceMap = options.sourceMap;
- var destination = options.dest;
- var stdin = options.stdin;
-
- var success = function(result) {
- var todo = 1;
- var done = function() {
- if (--todo <= 0) {
- emitter.emit('done');
- }
- };
-
- if (!destination || stdin) {
- emitter.emit('log', result.css.toString());
-
- if (sourceMap && !options.sourceMapEmbed) {
- emitter.emit('log', result.map.toString());
- }
-
- return done();
- }
-
- emitter.emit('info', chalk.green('Rendering Complete, saving .css file...'));
-
- mkdirp(path.dirname(destination), function(err) {
- if (err) {
- return emitter.emit('error', chalk.red(err));
- }
-
- fs.writeFile(destination, result.css.toString(), function(err) {
- if (err) {
- return emitter.emit('error', chalk.red(err));
- }
-
- emitter.emit('info', chalk.green('Wrote CSS to ' + destination));
- emitter.emit('write', err, destination, result.css.toString());
- done();
- });
- });
-
- if (sourceMap) {
- todo++;
-
- mkdirp(path.dirname(sourceMap), function(err) {
- if (err) {
- return emitter.emit('error', chalk.red(err));
- }
- fs.writeFile(sourceMap, result.map, function(err) {
- if (err) {
- return emitter.emit('error', chalk.red('Error' + err));
- }
-
- emitter.emit('info', chalk.green('Wrote Source Map to ' + sourceMap));
- emitter.emit('write-source-map', err, sourceMap, result.map);
- done();
- });
- });
- }
-
- emitter.emit('render', result.css.toString());
- };
-
- var error = function(error) {
- emitter.emit('error', chalk.red(JSON.stringify(error, null, 2)));
- };
-
- var renderCallback = function(err, result) {
- if (err) {
- error(err);
- }
- else {
- success(result);
- }
- };
-
- sass.render(renderOptions, renderCallback);
-};
diff --git a/node_modules/node-sass/lib/watcher.js b/node_modules/node-sass/lib/watcher.js
deleted file mode 100644
index 89443b4..0000000
--- a/node_modules/node-sass/lib/watcher.js
+++ /dev/null
@@ -1,93 +0,0 @@
-var grapher = require('sass-graph'),
- clonedeep = require('lodash/cloneDeep'),
- path = require('path'),
- config = {},
- watcher = {},
- graph = null;
-
-watcher.reset = function(opts) {
- config = clonedeep(opts || config || {});
- var options = {
- loadPaths: config.includePath,
- extensions: ['scss', 'sass', 'css'],
- follow: config.follow,
- };
-
- if (config.directory) {
- graph = grapher.parseDir(config.directory, options);
- } else {
- graph = grapher.parseFile(config.src, options);
- }
-
- return Object.keys(graph.index);
-};
-
-watcher.changed = function(absolutePath) {
- var files = {
- added: [],
- changed: [],
- removed: [],
- };
-
- this.reset();
-
- if (absolutePath && path.basename(absolutePath)[0] !== '_') {
- files.changed.push(absolutePath);
- }
-
- graph.visitAncestors(absolutePath, function(parent) {
- if (path.basename(parent)[0] !== '_') {
- files.changed.push(parent);
- }
- });
-
- graph.visitDescendents(absolutePath, function(child) {
- files.added.push(child);
- });
-
- return files;
-};
-
-watcher.added = function(absolutePath) {
- var files = {
- added: [],
- changed: [],
- removed: [],
- };
-
- this.reset();
-
- if (Object.keys(graph.index).indexOf(absolutePath) === -1) {
- files.added.push(absolutePath);
- }
-
- graph.visitDescendents(absolutePath, function(child) {
- files.added.push(child);
- });
-
- return files;
-};
-
-watcher.removed = function(absolutePath) {
- var files = {
- added: [],
- changed: [],
- removed: [],
- };
-
- graph.visitAncestors(absolutePath, function(parent) {
- if (path.basename(parent)[0] !== '_') {
- files.changed.push(parent);
- }
- });
-
- if (Object.keys(graph.index).indexOf(absolutePath) !== -1) {
- files.removed.push(absolutePath);
- }
-
- this.reset();
-
- return files;
-};
-
-module.exports = watcher;
diff --git a/node_modules/node-sass/package.json b/node_modules/node-sass/package.json
deleted file mode 100644
index 41fe3e4..0000000
--- a/node_modules/node-sass/package.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_from": "node-sass@4.14.1",
- "_id": "node-sass@4.14.1",
- "_inBundle": false,
- "_integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==",
- "_location": "/node-sass",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "node-sass@4.14.1",
- "name": "node-sass",
- "escapedName": "node-sass",
- "rawSpec": "4.14.1",
- "saveSpec": null,
- "fetchSpec": "4.14.1"
- },
- "_requiredBy": [
- "#USER",
- "/"
- ],
- "_resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz",
- "_shasum": "99c87ec2efb7047ed638fb4c9db7f3a42e2217b5",
- "_spec": "node-sass@4.14.1",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise",
- "author": {
- "name": "Andrew Nesbitt",
- "email": "andrewnez@gmail.com",
- "url": "http://andrew.github.com"
- },
- "bin": {
- "node-sass": "bin/node-sass"
- },
- "bugs": {
- "url": "https://github.com/sass/node-sass/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "async-foreach": "^0.1.3",
- "chalk": "^1.1.1",
- "cross-spawn": "^3.0.0",
- "gaze": "^1.0.0",
- "get-stdin": "^4.0.1",
- "glob": "^7.0.3",
- "in-publish": "^2.0.0",
- "lodash": "^4.17.15",
- "meow": "^3.7.0",
- "mkdirp": "^0.5.1",
- "nan": "^2.13.2",
- "node-gyp": "^3.8.0",
- "npmlog": "^4.0.0",
- "request": "^2.88.0",
- "sass-graph": "2.2.5",
- "stdout-stream": "^1.4.0",
- "true-case-path": "^1.0.2"
- },
- "deprecated": false,
- "description": "Wrapper around libsass",
- "devDependencies": {
- "coveralls": "^3.0.2",
- "eslint": "^3.4.0",
- "fs-extra": "^0.30.0",
- "istanbul": "^0.4.2",
- "mocha": "^3.1.2",
- "mocha-lcov-reporter": "^1.2.0",
- "object-merge": "^2.5.1",
- "read-yaml": "^1.0.0",
- "rimraf": "^2.5.2",
- "sass-spec": "git+https://github.com/sass/sass-spec.git#dc2d573",
- "unique-temp-dir": "^1.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "bin",
- "binding.gyp",
- "lib",
- "scripts",
- "src",
- "test",
- "vendor"
- ],
- "gypfile": true,
- "homepage": "https://github.com/sass/node-sass",
- "keywords": [
- "css",
- "libsass",
- "preprocessor",
- "sass",
- "scss",
- "style"
- ],
- "libsass": "3.5.5",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "node-sass",
- "nodeSassConfig": {
- "binarySite": "https://github.com/sass/node-sass/releases/download"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sass/node-sass.git"
- },
- "scripts": {
- "build": "node scripts/build.js --force",
- "coverage": "node scripts/coverage.js",
- "install": "node scripts/install.js",
- "lint": "eslint bin/node-sass lib scripts test",
- "postinstall": "node scripts/build.js",
- "prepublish": "not-in-install && node scripts/prepublish.js || in-install",
- "test": "mocha test/{*,**/**}.js"
- },
- "version": "4.14.1"
-}
diff --git a/node_modules/node-sass/scripts/build.js b/node_modules/node-sass/scripts/build.js
deleted file mode 100644
index 7bbba5e..0000000
--- a/node_modules/node-sass/scripts/build.js
+++ /dev/null
@@ -1,155 +0,0 @@
-/*!
- * node-sass: scripts/build.js
- */
-
-var fs = require('fs'),
- mkdir = require('mkdirp'),
- path = require('path'),
- spawn = require('cross-spawn'),
- sass = require('../lib/extensions');
-
-/**
- * After build
- *
- * @param {Object} options
- * @api private
- */
-
-function afterBuild(options) {
- var install = sass.getBinaryPath();
- var target = path.join(__dirname, '..', 'build',
- options.debug ? 'Debug' :
- process.config.target_defaults
- ? process.config.target_defaults.default_configuration
- : 'Release',
- 'binding.node');
-
- mkdir(path.dirname(install), function(err) {
- if (err && err.code !== 'EEXIST') {
- console.error(err.message);
- return;
- }
-
- fs.stat(target, function(err) {
- if (err) {
- console.error('Build succeeded but target not found');
- return;
- }
-
- fs.rename(target, install, function(err) {
- if (err) {
- console.error(err.message);
- return;
- }
-
- console.log('Installed to', install);
- });
- });
- });
-}
-
-/**
- * Build
- *
- * @param {Object} options
- * @api private
- */
-
-function build(options) {
- var args = [require.resolve(path.join('node-gyp', 'bin', 'node-gyp.js')), 'rebuild', '--verbose'].concat(
- ['libsass_ext', 'libsass_cflags', 'libsass_ldflags', 'libsass_library'].map(function(subject) {
- return ['--', subject, '=', process.env[subject.toUpperCase()] || ''].join('');
- })).concat(options.args);
-
- console.log('Building:', [process.execPath].concat(args).join(' '));
-
- var proc = spawn(process.execPath, args, {
- stdio: [0, 1, 2]
- });
-
- proc.on('exit', function(errorCode) {
- if (!errorCode) {
- afterBuild(options);
- return;
- }
-
- if (errorCode === 127 ) {
- console.error('node-gyp not found!');
- } else {
- console.error('Build failed with error code:', errorCode);
- }
-
- process.exit(1);
- });
-}
-
-/**
- * Parse arguments
- *
- * @param {Array} args
- * @api private
- */
-
-function parseArgs(args) {
- var options = {
- arch: process.arch,
- platform: process.platform,
- force: process.env.npm_config_force === 'true',
- };
-
- options.args = args.filter(function(arg) {
- if (arg === '-f' || arg === '--force') {
- options.force = true;
- return false;
- } else if (arg.substring(0, 13) === '--target_arch') {
- options.arch = arg.substring(14);
- } else if (arg === '-d' || arg === '--debug') {
- options.debug = true;
- } else if (arg.substring(0, 13) === '--libsass_ext' && arg.substring(14) !== 'no') {
- options.libsassExt = true;
- }
-
- return true;
- });
-
- return options;
-}
-
-/**
- * Test for pre-built library
- *
- * @param {Object} options
- * @api private
- */
-
-function testBinary(options) {
- if (options.force || process.env.SASS_FORCE_BUILD) {
- return build(options);
- }
-
- if (!sass.hasBinary(sass.getBinaryPath())) {
- return build(options);
- }
-
- console.log('Binary found at', sass.getBinaryPath());
- console.log('Testing binary');
-
- try {
- require('../').renderSync({
- data: 's { a: ss }'
- });
-
- console.log('Binary is fine');
- } catch (e) {
- console.log('Binary has a problem:', e);
- console.log('Building the binary locally');
-
- return build(options);
- }
-}
-
-/**
- * Apply arguments and run
- */
-
-testBinary(parseArgs(process.argv.slice(2)));
diff --git a/node_modules/node-sass/scripts/coverage.js b/node_modules/node-sass/scripts/coverage.js
deleted file mode 100644
index 33836e9..0000000
--- a/node_modules/node-sass/scripts/coverage.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*!
- * node-sass: scripts/coverage.js
- */
-
-var Mocha = require('mocha'),
- fs = require('fs'),
- path = require('path'),
- mkdirp = require('mkdirp'),
- coveralls = require('coveralls'),
- istanbul = require('istanbul'),
- sourcefiles = ['index.js', 'binding.js', 'extensions.js', 'render.js', 'errors.js'],
- summary= istanbul.Report.create('text-summary'),
- lcov = istanbul.Report.create('lcovonly', { dir: path.join('coverage') }),
- html = istanbul.Report.create('html', { dir: path.join('coverage', 'html') });
-
-function coverage() {
- var mocha = new Mocha();
- var rep = function(runner) {
- runner.on('end', function(){
- var cov = global.__coverage__,
- collector = new istanbul.Collector();
- if (cov) {
- mkdirp(path.join('coverage', 'html'), function(err) {
- if (err) { throw err; }
- collector.add(cov);
- summary.writeReport(collector, true);
- html.writeReport(collector, true);
- lcov.on('done', function() {
- fs.readFile(path.join('coverage', 'lcov.info'), function(err, data) {
- if (err) { console.error(err); }
- coveralls.handleInput(data.toString(),
- function (err) { if (err) { console.error(err); } });
- });
- });
- lcov.writeReport(collector, true);
- });
- } else {
- console.warn('No coverage');
- }
- });
- };
- var instrumenter = new istanbul.Instrumenter();
- var instrumentedfiles = [];
- var processfile = function(source) {
- fs.readFile(path.join('lib', source), function(err, data) {
- if (err) { throw err; }
- mkdirp('lib-cov', function(err) {
- if (err) { throw err; }
- fs.writeFile(path.join('lib-cov', source),
- instrumenter.instrumentSync(data.toString(),
- path.join('lib', source)),
- function(err) {
- if (err) { throw err; }
- instrumentedfiles.push(source);
- if (instrumentedfiles.length === sourcefiles.length) {
- fs.readdirSync('test').filter(function(file){
- return file.substr(-6) === 'api.js' ||
- file.substr(-11) === 'runtime.js' ||
- file.substr(-7) === 'spec.js';
- }).forEach(function(file){
- mocha.addFile(
- path.join('test', file)
- );
- });
- process.env.NODESASS_COV = 1;
- mocha.reporter(rep).run(function(failures) {
- process.on('exit', function () {
- process.exit(failures);
- });
- });
- }
- });
- });
- });
- };
- for (var i in sourcefiles) {
- processfile(sourcefiles[i]);
- }
-}
-
-/**
- * Run
- */
-
-coverage();
diff --git a/node_modules/node-sass/scripts/install.js b/node_modules/node-sass/scripts/install.js
deleted file mode 100644
index 6febbe4..0000000
--- a/node_modules/node-sass/scripts/install.js
+++ /dev/null
@@ -1,157 +0,0 @@
-/*!
- * node-sass: scripts/install.js
- */
-
-var fs = require('fs'),
- eol = require('os').EOL,
- mkdir = require('mkdirp'),
- path = require('path'),
- sass = require('../lib/extensions'),
- request = require('request'),
- log = require('npmlog'),
- downloadOptions = require('./util/downloadoptions');
-
-/**
- * Download file, if succeeds save, if not delete
- *
- * @param {String} url
- * @param {String} dest
- * @param {Function} cb
- * @api private
- */
-
-function download(url, dest, cb) {
- var reportError = function(err) {
- var timeoutMessge;
-
- if (err.code === 'ETIMEDOUT') {
- if (err.connect === true) {
- // timeout is hit while your client is attempting to establish a connection to a remote machine
- timeoutMessge = 'Timed out attemping to establish a remote connection';
- } else {
- timeoutMessge = 'Timed out whilst downloading the prebuilt binary';
- // occurs any time the server is too slow to send back a part of the response
- }
-
- }
- cb(['Cannot download "', url, '": ', eol, eol,
- typeof err.message === 'string' ? err.message : err, eol, eol,
- timeoutMessge ? timeoutMessge + eol + eol : timeoutMessge,
- 'Hint: If github.com is not accessible in your location', eol,
- ' try setting a proxy via HTTP_PROXY, e.g. ', eol, eol,
- ' export HTTP_PROXY=http://example.com:1234',eol, eol,
- 'or configure npm proxy via', eol, eol,
- ' npm config set proxy http://example.com:8080'].join(''));
- };
-
- var successful = function(response) {
- return response.statusCode >= 200 && response.statusCode < 300;
- };
-
- console.log('Downloading binary from', url);
-
- try {
- request(url, downloadOptions(), function(err, response, buffer) {
- if (err) {
- reportError(err);
- } else if (!successful(response)) {
- reportError(['HTTP error', response.statusCode, response.statusMessage].join(' '));
- } else {
- console.log('Download complete');
-
- if (successful(response)) {
- fs.createWriteStream(dest)
- .on('error', cb)
- .end(buffer, cb);
- } else {
- cb();
- }
- }
- })
- .on('response', function(response) {
- var length = parseInt(response.headers['content-length'], 10);
- var progress = log.newItem('', length);
-
- // The `progress` is true by default. However if it has not
- // been explicitly set it's `undefined` which is considered
- // as far as npm is concerned.
- if (process.env.npm_config_progress === 'true') {
- log.enableProgress();
-
- response.on('data', function(chunk) {
- progress.completeWork(chunk.length);
- })
- .on('end', progress.finish);
- }
- });
- } catch (err) {
- cb(err);
- }
-}
-
-/**
- * Check and download binary
- *
- * @api private
- */
-
-function checkAndDownloadBinary() {
- if (process.env.SKIP_SASS_BINARY_DOWNLOAD_FOR_CI) {
- console.log('Skipping downloading binaries on CI builds');
- return;
- }
-
- var cachedBinary = sass.getCachedBinary(),
- cachePath = sass.getBinaryCachePath(),
- binaryPath = sass.getBinaryPath();
-
- if (sass.hasBinary(binaryPath)) {
- console.log('node-sass build', 'Binary found at', binaryPath);
- return;
- }
-
- try {
- mkdir.sync(path.dirname(binaryPath));
- } catch (err) {
- console.error('Unable to save binary', path.dirname(binaryPath), ':', err);
- return;
- }
-
- if (cachedBinary) {
- console.log('Cached binary found at', cachedBinary);
- fs.createReadStream(cachedBinary).pipe(fs.createWriteStream(binaryPath));
- return;
- }
-
- download(sass.getBinaryUrl(), binaryPath, function(err) {
- if (err) {
- console.error(err);
- return;
- }
-
- console.log('Binary saved to', binaryPath);
-
- cachedBinary = path.join(cachePath, sass.getBinaryName());
-
- if (cachePath) {
- console.log('Caching binary to', cachedBinary);
-
- try {
- mkdir.sync(path.dirname(cachedBinary));
- fs.createReadStream(binaryPath)
- .pipe(fs.createWriteStream(cachedBinary))
- .on('error', function (err) {
- console.log('Failed to cache binary:', err);
- });
- } catch (err) {
- console.log('Failed to cache binary:', err);
- }
- }
- });
-}
-
-/**
- * If binary does not exist, download it
- */
-
-checkAndDownloadBinary();
diff --git a/node_modules/node-sass/scripts/prepublish.js b/node_modules/node-sass/scripts/prepublish.js
deleted file mode 100644
index b1befd4..0000000
--- a/node_modules/node-sass/scripts/prepublish.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/*!
- * node-sass: scripts/install.js
- */
-
-var path = require('path'),
- rimraf = require('rimraf');
-
-function prepublish() {
- var vendorPath = path.resolve(__dirname, '..', 'vendor');
- rimraf.sync(vendorPath);
-}
-
-/**
- * Run
- */
-
-prepublish();
diff --git a/node_modules/node-sass/scripts/util/downloadoptions.js b/node_modules/node-sass/scripts/util/downloadoptions.js
deleted file mode 100644
index 2352971..0000000
--- a/node_modules/node-sass/scripts/util/downloadoptions.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var proxy = require('./proxy'),
- userAgent = require('./useragent');
-
-/**
- * The options passed to request when downloading the bibary
- *
- * There some nuance to how request handles options. Specifically
- * we've been caught by their usage of `hasOwnProperty` rather than
- * falsey checks. By moving the options generation into a util helper
- * we can test for regressions.
- *
- * @return {Object} an options object for request
- * @api private
- */
-module.exports = function() {
- var options = {
- rejectUnauthorized: false,
- timeout: 60000,
- headers: {
- 'User-Agent': userAgent(),
- },
- encoding: null,
- };
-
- var proxyConfig = proxy();
- if (proxyConfig) {
- options.proxy = proxyConfig;
- }
-
- return options;
-};
diff --git a/node_modules/node-sass/scripts/util/proxy.js b/node_modules/node-sass/scripts/util/proxy.js
deleted file mode 100644
index e65eac5..0000000
--- a/node_modules/node-sass/scripts/util/proxy.js
+++ /dev/null
@@ -1,22 +0,0 @@
-
-/**
- * Determine the proxy settings configured by npm
- *
- * It's possible to configure npm to use a proxy different
- * from the system defined proxy. This can be done via the
- * `npm config` CLI or the `.npmrc` config file.
- *
- * If a proxy has been configured in this way we must
- * tell request explicitly to use it.
- *
- * Otherwise we can trust request to the right thing.
- *
- * @return {String} the proxy configured by npm or an empty string
- * @api private
- */
-module.exports = function() {
- return process.env.npm_config_https_proxy ||
- process.env.npm_config_proxy ||
- process.env.npm_config_http_proxy ||
- '';
-};
diff --git a/node_modules/node-sass/scripts/util/useragent.js b/node_modules/node-sass/scripts/util/useragent.js
deleted file mode 100644
index 2496eec..0000000
--- a/node_modules/node-sass/scripts/util/useragent.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var pkg = require('../../package.json');
-
-/**
- * A custom user agent use for binary downloads.
- *
- * @api private
- */
-module.exports = function() {
- return [
- 'node/', process.version, ' ',
- 'node-sass-installer/', pkg.version
- ].join('');
-};
diff --git a/node_modules/node-sass/src/binding.cpp b/node_modules/node-sass/src/binding.cpp
deleted file mode 100644
index c8376e9..0000000
--- a/node_modules/node-sass/src/binding.cpp
+++ /dev/null
@@ -1,358 +0,0 @@
-#include <nan.h>
-#include <vector>
-#include "sass_context_wrapper.h"
-#include "custom_function_bridge.h"
-#include "create_string.h"
-#include "sass_types/factory.h"
-
-Sass_Import_List sass_importer(const char* cur_path, Sass_Importer_Entry cb, struct Sass_Compiler* comp)
-{
- void* cookie = sass_importer_get_cookie(cb);
- struct Sass_Import* previous = sass_compiler_get_last_import(comp);
- const char* prev_path = sass_import_get_abs_path(previous);
- CustomImporterBridge& bridge = *(static_cast<CustomImporterBridge*>(cookie));
-
- std::vector<void*> argv;
- argv.push_back((void*)cur_path);
- argv.push_back((void*)prev_path);
-
- return bridge(argv);
-}
-
-union Sass_Value* sass_custom_function(const union Sass_Value* s_args, Sass_Function_Entry cb, struct Sass_Compiler* comp)
-{
- void* cookie = sass_function_get_cookie(cb);
- CustomFunctionBridge& bridge = *(static_cast<CustomFunctionBridge*>(cookie));
-
- std::vector<void*> argv;
- for (unsigned l = sass_list_get_length(s_args), i = 0; i < l; i++) {
- argv.push_back((void*)sass_list_get_value(s_args, i));
- }
-
- return bridge(argv);
-}
-
-int ExtractOptions(v8::Local<v8::Object> options, void* cptr, sass_context_wrapper* ctx_w, bool is_file, bool is_sync) {
- Nan::HandleScope scope;
-
- struct Sass_Context* ctx;
-
- v8::Local<v8::Value> result_ = Nan::Get(
- options,
- Nan::New("result").ToLocalChecked()
- ).ToLocalChecked();
- if (!result_->IsObject()) {
- Nan::ThrowTypeError("\"result\" element is not an object");
- return -1;
- }
-
- ctx_w->result.Reset(result_.As<v8::Object>());
-
- if (is_file) {
- ctx_w->fctx = (struct Sass_File_Context*) cptr;
- ctx = sass_file_context_get_context(ctx_w->fctx);
- }
- else {
- ctx_w->dctx = (struct Sass_Data_Context*) cptr;
- ctx = sass_data_context_get_context(ctx_w->dctx);
- }
-
- struct Sass_Options* sass_options = sass_context_get_options(ctx);
-
- ctx_w->is_sync = is_sync;
-
- if (!is_sync) {
- ctx_w->request.data = ctx_w;
-
- // async (callback) style
- v8::Local<v8::Function> success_callback = v8::Local<v8::Function>::Cast(Nan::Get(options, Nan::New("success").ToLocalChecked()).ToLocalChecked());
- v8::Local<v8::Function> error_callback = v8::Local<v8::Function>::Cast(Nan::Get(options, Nan::New("error").ToLocalChecked()).ToLocalChecked());
-
- ctx_w->success_callback = new Nan::Callback(success_callback);
- ctx_w->error_callback = new Nan::Callback(error_callback);
- }
-
- if (!is_file) {
- ctx_w->file = create_string(Nan::Get(options, Nan::New("file").ToLocalChecked()));
- sass_option_set_input_path(sass_options, ctx_w->file);
- }
-
- int indent_len = Nan::To<int32_t>(
- Nan::Get(
- options,
- Nan::New("indentWidth").ToLocalChecked()
- ).ToLocalChecked()).FromJust();
-
- ctx_w->indent = (char*)malloc(indent_len + 1);
-
- strcpy(ctx_w->indent, std::string(
- indent_len,
- Nan::To<int32_t>(
- Nan::Get(
- options,
- Nan::New("indentType").ToLocalChecked()
- ).ToLocalChecked()).FromJust() == 1 ? '\t' : ' '
- ).c_str());
-
- ctx_w->linefeed = create_string(Nan::Get(options, Nan::New("linefeed").ToLocalChecked()));
- ctx_w->include_path = create_string(Nan::Get(options, Nan::New("includePaths").ToLocalChecked()));
- ctx_w->out_file = create_string(Nan::Get(options, Nan::New("outFile").ToLocalChecked()));
- ctx_w->source_map = create_string(Nan::Get(options, Nan::New("sourceMap").ToLocalChecked()));
- ctx_w->source_map_root = create_string(Nan::Get(options, Nan::New("sourceMapRoot").ToLocalChecked()));
-
- sass_option_set_output_path(sass_options, ctx_w->out_file);
- sass_option_set_output_style(sass_options, (Sass_Output_Style)Nan::To<int32_t>(Nan::Get(options, Nan::New("style").ToLocalChecked()).ToLocalChecked()).FromJust());
- sass_option_set_is_indented_syntax_src(sass_options, Nan::To<bool>(Nan::Get(options, Nan::New("indentedSyntax").ToLocalChecked()).ToLocalChecked()).FromJust());
- sass_option_set_source_comments(sass_options, Nan::To<bool>(Nan::Get(options, Nan::New("sourceComments").ToLocalChecked()).ToLocalChecked()).FromJust());
- sass_option_set_omit_source_map_url(sass_options, Nan::To<bool>(Nan::Get(options, Nan::New("omitSourceMapUrl").ToLocalChecked()).ToLocalChecked()).FromJust());
- sass_option_set_source_map_embed(sass_options, Nan::To<bool>(Nan::Get(options, Nan::New("sourceMapEmbed").ToLocalChecked()).ToLocalChecked()).FromJust());
- sass_option_set_source_map_contents(sass_options, Nan::To<bool>(Nan::Get(options, Nan::New("sourceMapContents").ToLocalChecked()).ToLocalChecked()).FromJust());
- sass_option_set_source_map_file(sass_options, ctx_w->source_map);
- sass_option_set_source_map_root(sass_options, ctx_w->source_map_root);
- sass_option_set_include_path(sass_options, ctx_w->include_path);
- sass_option_set_precision(sass_options, Nan::To<int32_t>(Nan::Get(options, Nan::New("precision").ToLocalChecked()).ToLocalChecked()).FromJust());
- sass_option_set_indent(sass_options, ctx_w->indent);
- sass_option_set_linefeed(sass_options, ctx_w->linefeed);
-
- v8::Local<v8::Value> importer_callback = Nan::Get(options, Nan::New("importer").ToLocalChecked()).ToLocalChecked();
-
- if (importer_callback->IsFunction()) {
- v8::Local<v8::Function> importer = importer_callback.As<v8::Function>();
-
- CustomImporterBridge *bridge = new CustomImporterBridge(importer, ctx_w->is_sync);
- ctx_w->importer_bridges.push_back(bridge);
-
- Sass_Importer_List c_importers = sass_make_importer_list(1);
- c_importers[0] = sass_make_importer(sass_importer, 0, bridge);
-
- sass_option_set_c_importers(sass_options, c_importers);
- }
- else if (importer_callback->IsArray()) {
- v8::Local<v8::Array> importers = importer_callback.As<v8::Array>();
- Sass_Importer_List c_importers = sass_make_importer_list(importers->Length());
-
- for (size_t i = 0; i < importers->Length(); ++i) {
- v8::Local<v8::Function> callback = v8::Local<v8::Function>::Cast(Nan::Get(importers, static_cast<uint32_t>(i)).ToLocalChecked());
-
- CustomImporterBridge *bridge = new CustomImporterBridge(callback, ctx_w->is_sync);
- ctx_w->importer_bridges.push_back(bridge);
-
- c_importers[i] = sass_make_importer(sass_importer, importers->Length() - i - 1, bridge);
- }
-
- sass_option_set_c_importers(sass_options, c_importers);
- }
-
- v8::Local<v8::Value> custom_functions = Nan::Get(options, Nan::New("functions").ToLocalChecked()).ToLocalChecked();
-
- if (custom_functions->IsObject()) {
- v8::Local<v8::Object> functions = custom_functions.As<v8::Object>();
- v8::Local<v8::Array> signatures = Nan::GetOwnPropertyNames(functions).ToLocalChecked();
- unsigned num_signatures = signatures->Length();
- Sass_Function_List fn_list = sass_make_function_list(num_signatures);
-
- for (unsigned i = 0; i < num_signatures; i++) {
- v8::Local<v8::String> signature = v8::Local<v8::String>::Cast(Nan::Get(signatures, Nan::New(i)).ToLocalChecked());
- v8::Local<v8::Function> callback = v8::Local<v8::Function>::Cast(Nan::Get(functions, signature).ToLocalChecked());
-
- CustomFunctionBridge *bridge = new CustomFunctionBridge(callback, ctx_w->is_sync);
- ctx_w->function_bridges.push_back(bridge);
-
- char* sig = create_string(signature);
- Sass_Function_Entry fn = sass_make_function(sig, sass_custom_function, bridge);
- free(sig);
- sass_function_set_list_entry(fn_list, i, fn);
- }
-
- sass_option_set_c_functions(sass_options, fn_list);
- }
- return 0;
-}
-
-void GetStats(sass_context_wrapper* ctx_w, Sass_Context* ctx) {
- Nan::HandleScope scope;
-
- char** included_files = sass_context_get_included_files(ctx);
- v8::Local<v8::Array> arr = Nan::New<v8::Array>();
-
- if (included_files) {
- for (int i = 0; included_files[i] != nullptr; ++i) {
- Nan::Set(arr, i, Nan::New<v8::String>(included_files[i]).ToLocalChecked());
- }
- }
-
- v8::Local<v8::Object> result = Nan::New(ctx_w->result);
- assert(result->IsObject());
-
- v8::Local<v8::Value> stats = Nan::Get(
- result,
- Nan::New("stats").ToLocalChecked()
- ).ToLocalChecked();
- if (stats->IsObject()) {
- Nan::Set(
- stats.As<v8::Object>(),
- Nan::New("includedFiles").ToLocalChecked(),
- arr
- );
- } else {
- Nan::ThrowTypeError("\"result.stats\" element is not an object");
- }
-}
-
-int GetResult(sass_context_wrapper* ctx_w, Sass_Context* ctx, bool is_sync = false) {
- Nan::HandleScope scope;
- v8::Local<v8::Object> result;
-
- int status = sass_context_get_error_status(ctx);
-
- result = Nan::New(ctx_w->result);
- assert(result->IsObject());
-
- if (status == 0) {
- const char* css = sass_context_get_output_string(ctx);
- const char* map = sass_context_get_source_map_string(ctx);
-
- Nan::Set(result, Nan::New("css").ToLocalChecked(), Nan::CopyBuffer(css, static_cast<uint32_t>(strlen(css))).ToLocalChecked());
-
- GetStats(ctx_w, ctx);
-
- if (map) {
- Nan::Set(result, Nan::New("map").ToLocalChecked(), Nan::CopyBuffer(map, static_cast<uint32_t>(strlen(map))).ToLocalChecked());
- }
- }
- else if (is_sync) {
- Nan::Set(result, Nan::New("error").ToLocalChecked(), Nan::New<v8::String>(sass_context_get_error_json(ctx)).ToLocalChecked());
- }
-
- return status;
-}
-
-void PerformCall(sass_context_wrapper* ctx_w, Nan::Callback* callback, int argc, v8::Local<v8::Value> argv[]) {
- if (ctx_w->is_sync) {
- Nan::Call(*callback, argc, argv);
- } else {
- callback->Call(argc, argv, ctx_w->async_resource);
- }
-}
-
-void MakeCallback(uv_work_t* req) {
- Nan::HandleScope scope;
-
- Nan::TryCatch try_catch;
- sass_context_wrapper* ctx_w = static_cast<sass_context_wrapper*>(req->data);
- struct Sass_Context* ctx;
-
- if (ctx_w->dctx) {
- ctx = sass_data_context_get_context(ctx_w->dctx);
- }
- else {
- ctx = sass_file_context_get_context(ctx_w->fctx);
- }
-
- int status = GetResult(ctx_w, ctx);
-
- if (status == 0 && ctx_w->success_callback) {
- // if no error, do callback(null, result)
- PerformCall(ctx_w, ctx_w->success_callback, 0, 0);
- }
- else if (ctx_w->error_callback) {
- // if error, do callback(error)
- const char* err = sass_context_get_error_json(ctx);
- v8::Local<v8::Value> argv[] = {
- Nan::New<v8::String>(err).ToLocalChecked()
- };
- PerformCall(ctx_w, ctx_w->error_callback, 1, argv);
- }
- if (try_catch.HasCaught()) {
- Nan::FatalException(try_catch);
- }
-
- sass_free_context_wrapper(ctx_w);
-}
-
-NAN_METHOD(render) {
-
- v8::Local<v8::Object> options = Nan::To<v8::Object>(info[0]).ToLocalChecked();
- char* source_string = create_string(Nan::Get(options, Nan::New("data").ToLocalChecked()));
- struct Sass_Data_Context* dctx = sass_make_data_context(source_string);
- sass_context_wrapper* ctx_w = sass_make_context_wrapper();
-
- ctx_w->async_resource = new Nan::AsyncResource("node-sass:sass_context_wrapper:render");
-
- if (ExtractOptions(options, dctx, ctx_w, false, false) >= 0) {
-
- int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
-
- assert(status == 0);
- }
-}
-
-NAN_METHOD(render_sync) {
-
- v8::Local<v8::Object> options = Nan::To<v8::Object>(info[0]).ToLocalChecked();
- char* source_string = create_string(Nan::Get(options, Nan::New("data").ToLocalChecked()));
- struct Sass_Data_Context* dctx = sass_make_data_context(source_string);
- struct Sass_Context* ctx = sass_data_context_get_context(dctx);
- sass_context_wrapper* ctx_w = sass_make_context_wrapper();
- int result = -1;
-
- if ((result = ExtractOptions(options, dctx, ctx_w, false, true)) >= 0) {
- compile_data(dctx);
- result = GetResult(ctx_w, ctx, true);
- }
-
- sass_free_context_wrapper(ctx_w);
-
- info.GetReturnValue().Set(result == 0);
-}
-
-NAN_METHOD(render_file) {
-
- v8::Local<v8::Object> options = Nan::To<v8::Object>(info[0]).ToLocalChecked();
- char* input_path = create_string(Nan::Get(options, Nan::New("file").ToLocalChecked()));
- struct Sass_File_Context* fctx = sass_make_file_context(input_path);
- sass_context_wrapper* ctx_w = sass_make_context_wrapper();
-
- ctx_w->async_resource = new Nan::AsyncResource("node-sass:sass_context_wrapper:render_file");
-
- if (ExtractOptions(options, fctx, ctx_w, true, false) >= 0) {
-
- int status = uv_queue_work(uv_default_loop(), &ctx_w->request, compile_it, (uv_after_work_cb)MakeCallback);
- assert(status == 0);
- }
-}
-
-NAN_METHOD(render_file_sync) {
-
- v8::Local<v8::Object> options = Nan::To<v8::Object>(info[0]).ToLocalChecked();
- char* input_path = create_string(Nan::Get(options, Nan::New("file").ToLocalChecked()));
- struct Sass_File_Context* fctx = sass_make_file_context(input_path);
- struct Sass_Context* ctx = sass_file_context_get_context(fctx);
- sass_context_wrapper* ctx_w = sass_make_context_wrapper();
- int result = -1;
-
- if ((result = ExtractOptions(options, fctx, ctx_w, true, true)) >= 0) {
- compile_file(fctx);
- result = GetResult(ctx_w, ctx, true);
- };
-
- free(input_path);
- sass_free_context_wrapper(ctx_w);
-
- info.GetReturnValue().Set(result == 0);
-}
-
-NAN_METHOD(libsass_version) {
- info.GetReturnValue().Set(Nan::New<v8::String>(libsass_version()).ToLocalChecked());
-}
-
-NAN_MODULE_INIT(RegisterModule) {
- Nan::SetMethod(target, "render", render);
- Nan::SetMethod(target, "renderSync", render_sync);
- Nan::SetMethod(target, "renderFile", render_file);
- Nan::SetMethod(target, "renderFileSync", render_file_sync);
- Nan::SetMethod(target, "libsassVersion", libsass_version);
- SassTypes::Factory::initExports(target);
-}
-
-NODE_MODULE(binding, RegisterModule);
diff --git a/node_modules/node-sass/src/callback_bridge.h b/node_modules/node-sass/src/callback_bridge.h
deleted file mode 100644
index 25f62e1..0000000
--- a/node_modules/node-sass/src/callback_bridge.h
+++ /dev/null
@@ -1,228 +0,0 @@
-#ifndef CALLBACK_BRIDGE_H
-#define CALLBACK_BRIDGE_H
-
-#include <vector>
-#include <nan.h>
-#include <algorithm>
-#include <uv.h>
-
-#define COMMA ,
-
-template <typename T, typename L = void*>
-class CallbackBridge {
- public:
- CallbackBridge(v8::Local<v8::Function>, bool);
- virtual ~CallbackBridge();
-
- // Executes the callback
- T operator()(std::vector<void*>);
-
- protected:
- // We will expose a bridge object to the JS callback that wraps this instance so we don't loose context.
- // This is the V8 constructor for such objects.
- static Nan::MaybeLocal<v8::Function> get_wrapper_constructor();
- static void async_gone(uv_handle_t *handle);
- static NAN_METHOD(New);
- static NAN_METHOD(ReturnCallback);
- static Nan::Persistent<v8::Function> wrapper_constructor;
- Nan::Persistent<v8::Object> wrapper;
-
- // The callback that will get called in the main thread after the worker thread used for the sass
- // compilation step makes a call to uv_async_send()
- static void dispatched_async_uv_callback(uv_async_t*);
-
- // The V8 values sent to our ReturnCallback must be read on the main thread not the sass worker thread.
- // This gives a chance to specialized subclasses to transform those values into whatever makes sense to
- // sass before we resume the worker thread.
- virtual T post_process_return_value(v8::Local<v8::Value>) const =0;
-
-
- virtual std::vector<v8::Local<v8::Value>> pre_process_args(std::vector<L>) const =0;
-
- Nan::Callback* callback;
- Nan::AsyncResource* async_resource;
- bool is_sync;
-
- uv_mutex_t cv_mutex;
- uv_cond_t condition_variable;
- uv_async_t *async;
- std::vector<L> argv;
- bool has_returned;
- T return_value;
-};
-
-template <typename T, typename L>
-Nan::Persistent<v8::Function> CallbackBridge<T, L>::wrapper_constructor;
-
-template <typename T, typename L>
-CallbackBridge<T, L>::CallbackBridge(v8::Local<v8::Function> callback, bool is_sync) : callback(new Nan::Callback(callback)), is_sync(is_sync) {
- /*
- * This is invoked from the main JavaScript thread.
- * V8 context is available.
- */
- Nan::HandleScope scope;
- uv_mutex_init(&this->cv_mutex);
- uv_cond_init(&this->condition_variable);
- if (!is_sync) {
- this->async = new uv_async_t;
- this->async->data = (void*) this;
- uv_async_init(uv_default_loop(), this->async, (uv_async_cb) dispatched_async_uv_callback);
- this->async_resource = new Nan::AsyncResource("node-sass:CallbackBridge");
- }
-
- v8::Local<v8::Function> func = CallbackBridge<T, L>::get_wrapper_constructor().ToLocalChecked();
- wrapper.Reset(Nan::NewInstance(func).ToLocalChecked());
- Nan::SetInternalFieldPointer(Nan::New(wrapper), 0, this);
-}
-
-template <typename T, typename L>
-CallbackBridge<T, L>::~CallbackBridge() {
- delete this->callback;
- this->wrapper.Reset();
- uv_cond_destroy(&this->condition_variable);
- uv_mutex_destroy(&this->cv_mutex);
-
- if (!is_sync) {
- uv_close((uv_handle_t*)this->async, &async_gone);
- delete this->async_resource;
- }
-}
-
-template <typename T, typename L>
-T CallbackBridge<T, L>::operator()(std::vector<void*> argv) {
- // argv.push_back(wrapper);
- if (this->is_sync) {
- /*
- * This is invoked from the main JavaScript thread.
- * V8 context is available.
- *
- * Establish Local<> scope for all functions
- * from types invoked by pre_process_args() and
- * post_process_args().
- */
- Nan::HandleScope scope;
- Nan::TryCatch try_catch;
- std::vector<v8::Local<v8::Value>> argv_v8 = pre_process_args(argv);
- if (try_catch.HasCaught()) {
- Nan::FatalException(try_catch);
- }
-
- argv_v8.push_back(Nan::New(wrapper));
-
- return this->post_process_return_value(
- Nan::Call(*this->callback, argv_v8.size(), &argv_v8[0]).ToLocalChecked()
- );
- } else {
- /*
- * This is invoked from the worker thread.
- * No V8 context and functions available.
- * Just wait for response from asynchronously
- * scheduled JavaScript code
- *
- * XXX Issue #1048: We block here even if the
- * event loop stops and the callback
- * would never be executed.
- * XXX Issue #857: By waiting here we occupy
- * one of the threads taken from the
- * uv threadpool. Might deadlock if
- * async I/O executed from JavaScript callbacks.
- */
- this->argv = argv;
-
- uv_mutex_lock(&this->cv_mutex);
- this->has_returned = false;
- uv_async_send(this->async);
- while (!this->has_returned) {
- uv_cond_wait(&this->condition_variable, &this->cv_mutex);
- }
- uv_mutex_unlock(&this->cv_mutex);
- return this->return_value;
- }
-}
-
-template <typename T, typename L>
-void CallbackBridge<T, L>::dispatched_async_uv_callback(uv_async_t *req) {
- CallbackBridge* bridge = static_cast<CallbackBridge*>(req->data);
-
- /*
- * Function scheduled via uv_async mechanism, therefore
- * it is invoked from the main JavaScript thread.
- * V8 context is available.
- *
- * Establish Local<> scope for all functions
- * from types invoked by pre_process_args() and
- * post_process_args().
- */
- Nan::HandleScope scope;
- Nan::TryCatch try_catch;
-
- std::vector<v8::Local<v8::Value>> argv_v8 = bridge->pre_process_args(bridge->argv);
- if (try_catch.HasCaught()) {
- Nan::FatalException(try_catch);
- }
- argv_v8.push_back(Nan::New(bridge->wrapper));
-
- bridge->callback->Call(argv_v8.size(), &argv_v8[0], bridge->async_resource);
-
- if (try_catch.HasCaught()) {
- Nan::FatalException(try_catch);
- }
-}
-
-template <typename T, typename L>
-NAN_METHOD(CallbackBridge<T COMMA L>::ReturnCallback) {
-
- /*
- * Callback function invoked by the user code.
- * It is invoked from the main JavaScript thread.
- * V8 context is available.
- *
- * Implicit Local<> handle scope created by NAN_METHOD(.)
- */
- CallbackBridge<T, L>* bridge = static_cast<CallbackBridge<T, L>*>(Nan::GetInternalFieldPointer(info.This(), 0));
- Nan::TryCatch try_catch;
-
- bridge->return_value = bridge->post_process_return_value(info[0]);
-
- {
- uv_mutex_lock(&bridge->cv_mutex);
- bridge->has_returned = true;
- uv_mutex_unlock(&bridge->cv_mutex);
- }
-
- uv_cond_broadcast(&bridge->condition_variable);
-
- if (try_catch.HasCaught()) {
- Nan::FatalException(try_catch);
- }
-}
-
-template <typename T, typename L>
-Nan::MaybeLocal<v8::Function> CallbackBridge<T, L>::get_wrapper_constructor() {
- /* Uses handle scope created in the CallbackBridge<T, L> constructor */
- if (wrapper_constructor.IsEmpty()) {
- v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
- tpl->SetClassName(Nan::New("CallbackBridge").ToLocalChecked());
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
-
- Nan::SetPrototypeTemplate(tpl, "success",
- Nan::New<v8::FunctionTemplate>(ReturnCallback)
- );
-
- wrapper_constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked());
- }
-
- return Nan::New(wrapper_constructor);
-}
-
-template <typename T, typename L>
-NAN_METHOD(CallbackBridge<T COMMA L>::New) {
- info.GetReturnValue().Set(info.This());
-}
-
-template <typename T, typename L>
-void CallbackBridge<T, L>::async_gone(uv_handle_t *handle) {
- delete (uv_async_t *)handle;
-}
-
-#endif
diff --git a/node_modules/node-sass/src/create_string.cpp b/node_modules/node-sass/src/create_string.cpp
deleted file mode 100644
index 27a496f..0000000
--- a/node_modules/node-sass/src/create_string.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <nan.h>
-#include <stdlib.h>
-#include <string.h>
-#include "create_string.h"
-
-char* create_string(Nan::MaybeLocal<v8::Value> maybevalue) {
- v8::Local<v8::Value> value;
-
- if (maybevalue.ToLocal(&value)) {
- if (value->IsNull() || !value->IsString()) {
- return 0;
- }
- } else {
- return 0;
- }
-
- Nan::Utf8String string(value);
- char *str = (char *)malloc(string.length() + 1);
- strcpy(str, *string);
- return str;
-}
diff --git a/node_modules/node-sass/src/create_string.h b/node_modules/node-sass/src/create_string.h
deleted file mode 100644
index 03c7c92..0000000
--- a/node_modules/node-sass/src/create_string.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef CREATE_STRING_H
-#define CREATE_STRING_H
-
-#include <nan.h>
-
-char* create_string(Nan::MaybeLocal<v8::Value>);
-
-#endif
diff --git a/node_modules/node-sass/src/custom_function_bridge.cpp b/node_modules/node-sass/src/custom_function_bridge.cpp
deleted file mode 100644
index f27c695..0000000
--- a/node_modules/node-sass/src/custom_function_bridge.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <nan.h>
-#include <stdexcept>
-#include "custom_function_bridge.h"
-#include "sass_types/factory.h"
-#include "sass_types/value.h"
-
-Sass_Value* CustomFunctionBridge::post_process_return_value(v8::Local<v8::Value> _val) const {
- SassTypes::Value *value = SassTypes::Factory::unwrap(_val);
- if (value) {
- return value->get_sass_value();
- } else {
- return sass_make_error("A SassValue object was expected.");
- }
-}
-
-std::vector<v8::Local<v8::Value>> CustomFunctionBridge::pre_process_args(std::vector<void*> in) const {
- std::vector<v8::Local<v8::Value>> argv = std::vector<v8::Local<v8::Value>>();
-
- for (void* value : in) {
- Sass_Value* x = static_cast<Sass_Value*>(value);
- SassTypes::Value* y = SassTypes::Factory::create(x);
-
- argv.push_back(y->get_js_object());
- }
-
- return argv;
-}
diff --git a/node_modules/node-sass/src/custom_function_bridge.h b/node_modules/node-sass/src/custom_function_bridge.h
deleted file mode 100644
index 99c83ea..0000000
--- a/node_modules/node-sass/src/custom_function_bridge.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef CUSTOM_FUNCTION_BRIDGE_H
-#define CUSTOM_FUNCTION_BRIDGE_H
-
-#include <nan.h>
-#include <sass/values.h>
-#include <sass/functions.h>
-#include "callback_bridge.h"
-
-class CustomFunctionBridge : public CallbackBridge<Sass_Value*> {
- public:
- CustomFunctionBridge(v8::Local<v8::Function> cb, bool is_sync) : CallbackBridge<Sass_Value*>(cb, is_sync) {}
-
- private:
- Sass_Value* post_process_return_value(v8::Local<v8::Value>) const;
- std::vector<v8::Local<v8::Value>> pre_process_args(std::vector<void*>) const;
-};
-
-#endif
diff --git a/node_modules/node-sass/src/custom_importer_bridge.cpp b/node_modules/node-sass/src/custom_importer_bridge.cpp
deleted file mode 100644
index 1ae5ae4..0000000
--- a/node_modules/node-sass/src/custom_importer_bridge.cpp
+++ /dev/null
@@ -1,104 +0,0 @@
-#include <nan.h>
-#include <stdexcept>
-#include "custom_importer_bridge.h"
-#include "create_string.h"
-
-SassImportList CustomImporterBridge::post_process_return_value(v8::Local<v8::Value> returned_value) const {
- SassImportList imports = 0;
- Nan::HandleScope scope;
-
- if (returned_value->IsArray()) {
- v8::Local<v8::Array> array = returned_value.As<v8::Array>();
-
- imports = sass_make_import_list(array->Length());
-
- for (size_t i = 0; i < array->Length(); ++i) {
- v8::Local<v8::Value> value;
- Nan::MaybeLocal<v8::Value> unchecked = Nan::Get(array, static_cast<uint32_t>(i));
-
- if (!unchecked.ToLocal(&value) || !value->IsObject()) {
- imports[i] = sass_make_import_entry(0, 0, 0);
- sass_import_set_error(imports[i], "returned array must only contain object literals", -1, -1);
- continue;
- }
-
- v8::Local<v8::Object> object = value.As<v8::Object>();
-
- if (value->IsNativeError()) {
- char* message = create_string(Nan::Get(object, Nan::New<v8::String>("message").ToLocalChecked()));
-
- imports[i] = sass_make_import_entry(0, 0, 0);
-
- sass_import_set_error(imports[i], message, -1, -1);
- free(message);
- }
- else {
- imports[i] = get_importer_entry(object);
- }
- }
- }
- else if (returned_value->IsNativeError()) {
- imports = sass_make_import_list(1);
- v8::Local<v8::Object> object = returned_value.As<v8::Object>();
- char* message = create_string(Nan::Get(object, Nan::New<v8::String>("message").ToLocalChecked()));
-
- imports[0] = sass_make_import_entry(0, 0, 0);
-
- sass_import_set_error(imports[0], message, -1, -1);
- free(message);
- }
- else if (returned_value->IsObject()) {
- imports = sass_make_import_list(1);
- imports[0] = get_importer_entry(returned_value.As<v8::Object>());
- }
-
- return imports;
-}
-
-Sass_Import* CustomImporterBridge::check_returned_string(Nan::MaybeLocal<v8::Value> value, const char *msg) const
-{
- v8::Local<v8::Value> checked;
- if (value.ToLocal(&checked)) {
- if (!checked->IsUndefined() && !checked->IsString()) {
- goto err;
- } else {
- return nullptr;
- }
- }
-err:
- auto entry = sass_make_import_entry(0, 0, 0);
- sass_import_set_error(entry, msg, -1, -1);
- return entry;
-}
-
-Sass_Import* CustomImporterBridge::get_importer_entry(const v8::Local<v8::Object>& object) const {
- Nan::MaybeLocal<v8::Value> returned_file = Nan::Get(object, Nan::New<v8::String>("file").ToLocalChecked());
- Nan::MaybeLocal<v8::Value> returned_contents = Nan::Get(object, Nan::New<v8::String>("contents").ToLocalChecked());
- Nan::MaybeLocal<v8::Value> returned_map = Nan::Get(object, Nan::New<v8::String>("map").ToLocalChecked());
- Sass_Import *err;
-
- if ((err = check_returned_string(returned_file, "returned value of `file` must be a string")))
- return err;
-
- if ((err = check_returned_string(returned_contents, "returned value of `contents` must be a string")))
- return err;
-
- if ((err = check_returned_string(returned_map, "returned value of `returned_map` must be a string")))
- return err;
-
- char* path = create_string(returned_file);
- char* contents = create_string(returned_contents);
- char* srcmap = create_string(returned_map);
-
- return sass_make_import_entry(path, contents, srcmap);
-}
-
-std::vector<v8::Local<v8::Value>> CustomImporterBridge::pre_process_args(std::vector<void*> in) const {
- std::vector<v8::Local<v8::Value>> out;
-
- for (void* ptr : in) {
- out.push_back(Nan::New<v8::String>((char const*)ptr).ToLocalChecked());
- }
-
- return out;
-}
diff --git a/node_modules/node-sass/src/custom_importer_bridge.h b/node_modules/node-sass/src/custom_importer_bridge.h
deleted file mode 100644
index 0cbd3e6..0000000
--- a/node_modules/node-sass/src/custom_importer_bridge.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef CUSTOM_IMPORTER_BRIDGE_H
-#define CUSTOM_IMPORTER_BRIDGE_H
-
-#include <nan.h>
-#include <sass/functions.h>
-#include <sass/values.h>
-#include "callback_bridge.h"
-
-typedef Sass_Import_List SassImportList;
-
-class CustomImporterBridge : public CallbackBridge<SassImportList> {
- public:
- CustomImporterBridge(v8::Local<v8::Function> cb, bool is_sync) : CallbackBridge<SassImportList>(cb, is_sync) {}
-
- private:
- SassImportList post_process_return_value(v8::Local<v8::Value>) const;
- Sass_Import* check_returned_string(Nan::MaybeLocal<v8::Value> value, const char *msg) const;
- Sass_Import* get_importer_entry(const v8::Local<v8::Object>&) const;
- std::vector<v8::Local<v8::Value>> pre_process_args(std::vector<void*>) const;
-};
-
-#endif
diff --git a/node_modules/node-sass/src/libsass.gyp b/node_modules/node-sass/src/libsass.gyp
deleted file mode 100644
index add96e8..0000000
--- a/node_modules/node-sass/src/libsass.gyp
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- 'targets': [
- {
- 'target_name': 'libsass',
- 'win_delay_load_hook': 'false',
- 'type': 'static_library',
- 'defines': [
- 'LIBSASS_VERSION="<!(node -e "process.stdout.write(require(\'../package.json\').libsass)")"'
- ],
- 'defines!': [
- 'DEBUG'
- ],
- 'sources': [
- 'libsass/src/ast.cpp',
- 'libsass/src/ast_fwd_decl.cpp',
- 'libsass/src/backtrace.cpp',
- 'libsass/src/base64vlq.cpp',
- 'libsass/src/bind.cpp',
- 'libsass/src/cencode.c',
- 'libsass/src/check_nesting.cpp',
- 'libsass/src/color_maps.cpp',
- 'libsass/src/constants.cpp',
- 'libsass/src/context.cpp',
- 'libsass/src/cssize.cpp',
- 'libsass/src/emitter.cpp',
- 'libsass/src/environment.cpp',
- 'libsass/src/error_handling.cpp',
- 'libsass/src/eval.cpp',
- 'libsass/src/expand.cpp',
- 'libsass/src/extend.cpp',
- 'libsass/src/file.cpp',
- 'libsass/src/functions.cpp',
- 'libsass/src/inspect.cpp',
- 'libsass/src/json.cpp',
- 'libsass/src/lexer.cpp',
- 'libsass/src/listize.cpp',
- 'libsass/src/memory/SharedPtr.cpp',
- 'libsass/src/node.cpp',
- 'libsass/src/operators.cpp',
- 'libsass/src/operators.hpp',
- 'libsass/src/output.cpp',
- 'libsass/src/parser.cpp',
- 'libsass/src/plugins.cpp',
- 'libsass/src/position.cpp',
- 'libsass/src/prelexer.cpp',
- 'libsass/src/remove_placeholders.cpp',
- 'libsass/src/sass.cpp',
- 'libsass/src/sass2scss.cpp',
- 'libsass/src/sass_context.cpp',
- 'libsass/src/sass_functions.cpp',
- 'libsass/src/sass_util.cpp',
- 'libsass/src/sass_values.cpp',
- 'libsass/src/source_map.cpp',
- 'libsass/src/subset_map.cpp',
- 'libsass/src/to_c.cpp',
- 'libsass/src/to_value.cpp',
- 'libsass/src/units.cpp',
- 'libsass/src/utf8_string.cpp',
- 'libsass/src/util.cpp',
- 'libsass/src/values.cpp'
- ],
- 'cflags!': [
- '-fno-rtti',
- '-fno-exceptions'
- ],
- 'cflags_cc!': [
- '-fno-rtti',
- '-fno-exceptions'
- ],
- 'cflags_cc': [
- '-fexceptions',
- '-frtti',
- ],
- 'include_dirs': [ 'libsass/include' ],
- 'direct_dependent_settings': {
- 'include_dirs': [ 'libsass/include' ],
- },
- 'conditions': [
- ['OS=="mac"', {
- 'xcode_settings': {
- 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
- 'CLANG_CXX_LIBRARY': 'libc++',
- 'OTHER_LDFLAGS': [],
- 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
- 'GCC_ENABLE_CPP_RTTI': 'YES',
- 'MACOSX_DEPLOYMENT_TARGET': '10.7'
- }
- }],
- ['OS=="win"', {
- 'msvs_settings': {
- 'VCCLCompilerTool': {
- 'AdditionalOptions': [
- '/GR',
- '/EHsc'
- ]
- }
- },
- 'conditions': [
- ['MSVS_VERSION < "2015"', {
- 'sources': [
- 'libsass/src/c99func.c'
- ]
- }]
- ]
- }],
- ['OS!="win"', {
- 'cflags_cc+': [
- '-std=c++0x'
- ]
- }]
- ]
- }
- ]
-}
diff --git a/node_modules/node-sass/src/libsass/.editorconfig b/node_modules/node-sass/src/libsass/.editorconfig
deleted file mode 100644
index c3d859e..0000000
--- a/node_modules/node-sass/src/libsass/.editorconfig
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is for unifying the coding style for different editors and IDEs
-# editorconfig.org
-
-root = true
-
-[*]
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-indent_style = space
-indent_size = 2
-
-[{Makefile, GNUmakefile.am}]
-indent_style = tab
-indent_size = 4
diff --git a/node_modules/node-sass/src/libsass/.gitattributes b/node_modules/node-sass/src/libsass/.gitattributes
deleted file mode 100644
index dfe0770..0000000
--- a/node_modules/node-sass/src/libsass/.gitattributes
+++ /dev/null
@@ -1,2 +0,0 @@
-# Auto detect text files and perform LF normalization
-* text=auto
diff --git a/node_modules/node-sass/src/libsass/.github/CONTRIBUTING.md b/node_modules/node-sass/src/libsass/.github/CONTRIBUTING.md
deleted file mode 100644
index 2ff99d8..0000000
--- a/node_modules/node-sass/src/libsass/.github/CONTRIBUTING.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Contributing to LibSass
-
-:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
-
-The following is a set of guidelines for contributing to LibSass, which is hosted in the [Sass Organization](https://github.com/sass) on GitHub.
-These are just guidelines, not rules, use your best judgment and feel free to propose changes to this document in a pull request.
-
-LibSass is a library that implements a [sass language][8] compiler. As such it does not directly interface with end users (frontend developers).
-For direct contributions to the LibSass code base you will need to have at least a rough idea of C++, we will not lie about that.
-But there are other ways to contribute to the progress of LibSass. All contributions are done via github pull requests.
-
-You can also contribute to the LibSass [documentation][9] or provide additional [spec tests][10] (and we will gladly point you in the
-direction for corners that lack test coverage). Foremost we rely on good and concise bug reports for issues the spec tests do not yet catch.
-
-## Precheck: My Sass isn't compiling
-- [ ] Check if you can reproduce the issue via [SourceMap Inspector][5] (updated regularly).
-- [ ] Validate official ruby sass compiler via [SassMeister][6] produces your expected result.
-- [ ] Search for similar issue in [LibSass][1] and [node-sass][2] (include closed tickets)
-- [ ] Optionally test your code directly with [sass][7] or [sassc][3] ([installer][4])
-
-## Precheck: My build/install fails
-- [ ] Problems with building or installing libsass should be directed to implementors first!
-- [ ] Except for issues directly verified via sassc or LibSass own build (make/autotools9
-
-## Craft a meaningfull error report
-- [ ] Include the version of libsass and the implementor (i.e. node-sass or sassc)
-- [ ] Include information about your operating system and environment (i.e. io.js)
-- [ ] Either create a self contained sample that shows your issue ...
-- [ ] ... or provide it as a fetchable (github preferred) archive/repo
-- [ ] ... and include a step by step list of command to get all dependencies
-- [ ] Make it clear if you use indented or/and scss syntax
-
-## My error is hiding in a big code base
-1. we do not have time to support your code base!
-2. to fix occuring issues we need precise bug reports
-3. the more precise you are, the faster we can help you
-4. lazy reports get overlooked even when exposing serious bugs
-5. it's not hard to do, it only takes time
-- [ ] Make sure you saved the current state (i.e. commit to git)
-- [ ] Start by uncommenting blocks in the initial source file
-- [ ] Check if the problem is still there after each edit
-- [ ] Repeat until the problem goes away
-- [ ] Inline imported files as you go along
-- [ ] Finished once you cannot remove more
-- [ ] The emphasis is on the word "repeat" ...
-
-## What makes a code test case
-
-Important is that someone else can get the test case up and running to reproduce it locally. For this
-we urge you to verify that your sample yields the expected result by testing it via [SassMeister][6]
-or directly via ruby sass or node-sass (or any other libsass implementor) before submitting your bug
-report. Once you verified all of the above, you may use the template below to file your bug report.
-
-
-[1]: https://github.com/sass/libsass/issues?utf8=%E2%9C%93&q=is%3Aissue
-[2]: https://github.com/sass/node-sass/issues?utf8=%E2%9C%93&q=is%3Aissue
-[3]: https://github.com/sass/sassc
-[4]: http://libsass.ocbnet.ch/installer/
-[5]: http://libsass.ocbnet.ch/srcmap/
-[6]: http://www.sassmeister.com/
-[7]: https://rubygems.org/gems/sass
-
-[8]: http://sass-lang.com/
-[9]: https://github.com/sass/libsass/tree/master/docs
-[10]: https://github.com/sass/sass-spec
diff --git a/node_modules/node-sass/src/libsass/.github/ISSUE_TEMPLATE.md b/node_modules/node-sass/src/libsass/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 43ffaaa..0000000
--- a/node_modules/node-sass/src/libsass/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,54 +0,0 @@
-[todo]: # (Title: Be as meaningful as possible)
-[todo]: # (Title: Try to use 60 or less chars)
-
-[todo]: # (This is only a template!)
-[todo]: # (remove unneeded bits)
-[todo]: # (use github preview!)
-
-## input.scss
-
-[todo]: # (always test and report with scss syntax)
-[todo]: # (use sass only when results differ from scss)
-
-```scss
-test {
- content: bar
-}
-```
-
-## Actual results
-
-[todo]: # (update version info!)
-
-[libsass 3.X.y][1]
-```css
-test {
- content: bar; }
-```
-
-## Expected result
-
-[todo]: # (update version info!)
-
-ruby sass 3.X.y
-```css
-test {
- content: bar; }
-```
-
-[todo]: # (update version info!)
-[todo]: # (example for node-sass!)
-
-version info:
-```cmd
-$ node-sass --version
-node-sass 3.X.y (Wrapper) [JavaScript]
-libsass 3.X.y (Sass Compiler) [C/C++]
-```
-
-[todo]: # (Go to http://libsass.ocbnet.ch/srcmap)
-[todo]: # (Enter your SCSS code and hit compile)
-[todo]: # (Click `bookmark` and replace the url)
-[todo]: # (link is used in actual results above)
-
-[1]: http://libsass.ocbnet.ch/srcmap/#dGVzdCB7CiAgY29udGVudDogYmFyOyB9Cg==
diff --git a/node_modules/node-sass/src/libsass/.npmignore b/node_modules/node-sass/src/libsass/.npmignore
deleted file mode 100644
index f2ee6be..0000000
--- a/node_modules/node-sass/src/libsass/.npmignore
+++ /dev/null
@@ -1,85 +0,0 @@
-# Miscellaneous stuff
-
-/sassc
-/sass-spec
-
-VERSION
-.DS_Store
-.sass-cache
-*.gem
-*.gcno
-.svn/*
-.cproject
-.project
-.settings/
-*.db
-*.aps
-
-# Configuration stuff
-
-GNUmakefile.in
-GNUmakefile
-/aclocal.m4
-/autom4te.cache/
-/src/config.h
-/config.h.in
-/config.log
-/config.status
-/configure
-/libtool
-/m4/libtool.m4
-/m4/ltoptions.m4
-/m4/ltsugar.m4
-/m4/ltversion.m4
-/m4/lt~obsolete.m4
-/script/ar-lib
-/script/compile
-/script/config.guess
-/script/config.sub
-/script/depcomp
-/script/install-sh
-/script/ltmain.sh
-/script/missing
-/script/test-driver
-/src/stamp-h1
-/src/Makefile.in
-/src/Makefile
-libsass/*
-
-# Build stuff
-
-*.o
-*.lo
-*.so
-*.dll
-*.a
-*.suo
-*.sdf
-*.opendb
-*.opensdf
-a.out
-libsass.js
-tester
-tester.exe
-build/
-config.h.in*
-lib/pkgconfig/
-
-bin/*
-.deps/
-.libs/
-win/bin
-*.user
-win/*.db
-
-# Final results
-
-sassc++
-libsass.la
-src/support/libsass.pc
-
-# Cloned testing dirs
-sassc/
-sass-spec/
-
-installer/
diff --git a/node_modules/node-sass/src/libsass/.travis.yml b/node_modules/node-sass/src/libsass/.travis.yml
deleted file mode 100644
index 09ca550..0000000
--- a/node_modules/node-sass/src/libsass/.travis.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-language: cpp
-sudo: false
-
-
-# don't create redundant code coverage reports
-# - AUTOTOOLS=yes COVERAGE=yes BUILD=static
-# - AUTOTOOLS=no COVERAGE=yes BUILD=shared
-# - AUTOTOOLS=no COVERAGE=no BUILD=static
-
-# further speed up day by day travis-ci builds
-# re-enable this if you change the makefiles
-# this will still catch all coding errors!
-# - AUTOTOOLS=yes COVERAGE=no BUILD=static
-
-# currenty there are various issues when
-# built with coverage, clang and autotools
-# - AUTOTOOLS=yes COVERAGE=yes BUILD=shared
-
-matrix:
- include :
- - os: linux
- compiler: gcc
- env: AUTOTOOLS=no COVERAGE=yes BUILD=static
- - os: linux
- compiler: g++-5
- env: AUTOTOOLS=yes COVERAGE=no BUILD=shared
- addons:
- apt:
- sources:
- - ubuntu-toolchain-r-test
- packages:
- - g++-5
- - os: linux
- compiler: clang++-3.7
- env: AUTOTOOLS=no COVERAGE=yes BUILD=static
- addons:
- apt:
- sources:
- - ubuntu-toolchain-r-test
- - llvm-toolchain-precise-3.7
- packages:
- - clang-3.7
- - os: linux
- compiler: clang
- env: AUTOTOOLS=yes COVERAGE=no BUILD=shared
- - os: osx
- compiler: clang
- env: AUTOTOOLS=no COVERAGE=no BUILD=shared
- - os: osx
- compiler: clang
- env: AUTOTOOLS=no COVERAGE=yes BUILD=static
- - os: osx
- compiler: clang
- env: AUTOTOOLS=yes COVERAGE=no BUILD=shared
-
-script:
- - ./script/ci-build-libsass
- - ./script/ci-build-plugin math
- - ./script/ci-build-plugin glob
- - ./script/ci-build-plugin digest
- - ./script/ci-build-plugin tests
-before_install: ./script/ci-install-deps
-install: ./script/ci-install-compiler
-after_success: ./script/ci-report-coverage
diff --git a/node_modules/node-sass/src/libsass/COPYING b/node_modules/node-sass/src/libsass/COPYING
deleted file mode 100644
index 8639c11..0000000
--- a/node_modules/node-sass/src/libsass/COPYING
+++ /dev/null
@@ -1,25 +0,0 @@
-
-Copyright (C) 2012 by Hampton Catlin
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-
-The following files in the spec were taken from the original Ruby Sass project which
-is copyright Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein and under
-the same license.
diff --git a/node_modules/node-sass/src/libsass/GNUmakefile.am b/node_modules/node-sass/src/libsass/GNUmakefile.am
deleted file mode 100644
index d197261..0000000
--- a/node_modules/node-sass/src/libsass/GNUmakefile.am
+++ /dev/null
@@ -1,74 +0,0 @@
-ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
-
-AM_COPT = -Wall -O2
-AM_COVLDFLAGS =
-
-if ENABLE_COVERAGE
- AM_COPT = -Wall -O1 -fno-omit-frame-pointer --coverage
- AM_COVLDFLAGS += -lgcov
-endif
-
-AM_CPPFLAGS = -I$(top_srcdir)/include
-AM_CFLAGS = $(AM_COPT)
-AM_CXXFLAGS = $(AM_COPT)
-AM_LDFLAGS = $(AM_COPT) $(AM_COVLDFLAGS)
-
-# only needed to support old source tree
-# we have moved the files to src folder
-AM_CPPFLAGS += -I$(top_srcdir)
-
-RESOURCES =
-if COMPILER_IS_MINGW32
- RESOURCES += res/libsass.rc
- AM_CXXFLAGS += -std=gnu++0x
-else
- AM_CXXFLAGS += -std=c++0x
-endif
-
-TEST_EXTENSIONS = .rb
-
-if ENABLE_TESTS
-
-SASS_SASSC_PATH ?= $(top_srcdir)/sassc
-SASS_SPEC_PATH ?= $(top_srcdir)/sass-spec
-
-noinst_PROGRAMS = tester
-tester_LDADD = src/libsass.la
-tester_LDFLAGS = $(AM_LDFLAGS)
-nodist_tester_SOURCES = $(SASS_SASSC_PATH)/sassc.c
-SASS_SASSC_VERSION ?= `cd "$(SASS_SASSC_PATH)" && ./version.sh`
-tester_CFLAGS = $(AM_CFLAGS) -DSASSC_VERSION="\"$(SASS_SASSC_VERSION)\""
-tester_CXXFLAGS = $(AM_CXXFLAGS) -DSASSC_VERSION="\"$(SASS_SASSC_VERSION)\""
-
-if ENABLE_COVERAGE
-nodist_EXTRA_tester_SOURCES = non-existent-file-to-force-CXX-linking.cxx
-endif
-
-TESTS = $(SASS_SPEC_PATH)/sass-spec.rb
-RB_LOG_COMPILER = ./script/tap-runner
-AM_RB_LOG_FLAGS = $(RUBY)
-
-SASS_TEST_FLAGS = -V 3.5 --impl libsass
-SASS_TEST_FLAGS += -r $(SASS_SPEC_PATH)
-SASS_TEST_FLAGS += -c $(top_srcdir)/tester$(EXEEXT)
-AM_TESTS_ENVIRONMENT = TEST_FLAGS='$(SASS_TEST_FLAGS)'
-
-SASS_TESTER = $(RUBY) $(SASS_SPEC_PATH)/sass-spec.rb
-
-test:
- $(SASS_TESTER) $(SASS_TEST_FLAGS)
-
-test_build:
- $(SASS_TESTER) $(SASS_TEST_FLAGS)
-
-test_full:
- $(SASS_TESTER) --run-todo $(SASS_TEST_FLAGS)
-
-test_probe:
- $(SASS_TESTER) --probe-todo $(SASS_TEST_FLAGS)
-
-.PHONY: test test_build test_full test_probe
-
-endif
-
-SUBDIRS = src
diff --git a/node_modules/node-sass/src/libsass/INSTALL b/node_modules/node-sass/src/libsass/INSTALL
deleted file mode 100644
index 92e0156..0000000
--- a/node_modules/node-sass/src/libsass/INSTALL
+++ /dev/null
@@ -1 +0,0 @@
-// Autotools requires us to have this file. Boo.
diff --git a/node_modules/node-sass/src/libsass/LICENSE b/node_modules/node-sass/src/libsass/LICENSE
deleted file mode 100644
index 6bc4085..0000000
--- a/node_modules/node-sass/src/libsass/LICENSE
+++ /dev/null
@@ -1,25 +0,0 @@
-
-Copyright (C) 2012-2016 by the Sass Open Source Foundation
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
-
-The following files in the spec were taken from the original Ruby Sass project which
-is copyright Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein and under
-the same license.
diff --git a/node_modules/node-sass/src/libsass/Makefile b/node_modules/node-sass/src/libsass/Makefile
deleted file mode 100644
index f3a2945..0000000
--- a/node_modules/node-sass/src/libsass/Makefile
+++ /dev/null
@@ -1,351 +0,0 @@
-OS ?= $(shell uname -s)
-CC ?= gcc
-CXX ?= g++
-RM ?= rm -f
-CP ?= cp -a
-MKDIR ?= mkdir
-RMDIR ?= rmdir
-WINDRES ?= windres
-# Solaris/Illumos flavors
-# ginstall from coreutils
-ifeq ($(OS),SunOS)
-INSTALL ?= ginstall
-endif
-INSTALL ?= install
-CFLAGS ?= -Wall
-CXXFLAGS ?= -Wall
-LDFLAGS ?= -Wall
-ifeq "x$(COVERAGE)" "x"
- CFLAGS += -O2
- CXXFLAGS += -O2
- LDFLAGS += -O2
-else
- CFLAGS += -O1 -fno-omit-frame-pointer
- CXXFLAGS += -O1 -fno-omit-frame-pointer
- LDFLAGS += -O1 -fno-omit-frame-pointer
-endif
-LDFLAGS += -Wl,-undefined,error
-CAT ?= $(if $(filter $(OS),Windows_NT),type,cat)
-
-ifneq (,$(findstring /cygdrive/,$(PATH)))
- UNAME := Cygwin
-else
- ifneq (,$(findstring Windows_NT,$(OS)))
- UNAME := Windows
- else
- ifneq (,$(findstring mingw32,$(MAKE)))
- UNAME := Windows
- else
- ifneq (,$(findstring MINGW32,$(shell uname -s)))
- UNAME = Windows
- else
- UNAME := $(shell uname -s)
- endif
- endif
- endif
-endif
-
-ifeq ($(SASS_LIBSASS_PATH),)
- SASS_LIBSASS_PATH = $(abspath $(CURDIR))
-endif
-
-ifeq ($(LIBSASS_VERSION),)
- ifneq ($(wildcard ./.git/ ),)
- LIBSASS_VERSION ?= $(shell git describe --abbrev=4 --dirty --always --tags)
- endif
-endif
-
-ifeq ($(LIBSASS_VERSION),)
- ifneq ($(wildcard VERSION),)
- LIBSASS_VERSION ?= $(shell $(CAT) VERSION)
- endif
-endif
-
-ifneq ($(LIBSASS_VERSION),)
- CFLAGS += -DLIBSASS_VERSION="\"$(LIBSASS_VERSION)\""
- CXXFLAGS += -DLIBSASS_VERSION="\"$(LIBSASS_VERSION)\""
-endif
-
-# enable mandatory flag
-ifeq (Windows,$(UNAME))
- ifneq ($(BUILD),shared)
- STATIC_ALL ?= 1
- endif
- STATIC_LIBGCC ?= 1
- STATIC_LIBSTDCPP ?= 1
- CXXFLAGS += -std=gnu++0x
- LDFLAGS += -std=gnu++0x
-else
- STATIC_ALL ?= 0
- STATIC_LIBGCC ?= 0
- STATIC_LIBSTDCPP ?= 0
- CXXFLAGS += -std=c++0x
- LDFLAGS += -std=c++0x
-endif
-
-ifneq ($(SASS_LIBSASS_PATH),)
- CFLAGS += -I $(SASS_LIBSASS_PATH)/include
- CXXFLAGS += -I $(SASS_LIBSASS_PATH)/include
-else
- # this is needed for mingw
- CFLAGS += -I include
- CXXFLAGS += -I include
-endif
-
-ifneq ($(EXTRA_CFLAGS),)
- CFLAGS += $(EXTRA_CFLAGS)
-endif
-ifneq ($(EXTRA_CXXFLAGS),)
- CXXFLAGS += $(EXTRA_CXXFLAGS)
-endif
-ifneq ($(EXTRA_LDFLAGS),)
- LDFLAGS += $(EXTRA_LDFLAGS)
-endif
-
-LDLIBS = -lm
-
-ifneq ($(BUILD),shared)
- LDLIBS += -lstdc++
-endif
-
-# link statically into lib
-# makes it a lot more portable
-# increases size by about 50KB
-ifeq ($(STATIC_ALL),1)
- LDFLAGS += -static
-endif
-ifeq ($(STATIC_LIBGCC),1)
- LDFLAGS += -static-libgcc
-endif
-ifeq ($(STATIC_LIBSTDCPP),1)
- LDFLAGS += -static-libstdc++
-endif
-
-ifeq ($(UNAME),Darwin)
- CFLAGS += -stdlib=libc++
- CXXFLAGS += -stdlib=libc++
- LDFLAGS += -stdlib=libc++
-endif
-
-ifneq (Windows,$(UNAME))
- ifneq (FreeBSD,$(UNAME))
- ifneq (OpenBSD,$(UNAME))
- LDFLAGS += -ldl
- LDLIBS += -ldl
- endif
- endif
-endif
-
-ifneq ($(BUILD),shared)
- BUILD := static
-endif
-ifeq ($(DEBUG),1)
- BUILD := debug-$(BUILD)
-endif
-
-ifeq (,$(TRAVIS_BUILD_DIR))
- ifeq ($(OS),SunOS)
- PREFIX ?= /opt/local
- else
- PREFIX ?= /usr/local
- endif
-else
- PREFIX ?= $(TRAVIS_BUILD_DIR)
-endif
-
-
-SASS_SASSC_PATH ?= sassc
-SASS_SPEC_PATH ?= sass-spec
-SASS_SPEC_SPEC_DIR ?= spec
-SASSC_BIN = $(SASS_SASSC_PATH)/bin/sassc
-RUBY_BIN = ruby
-
-LIB_STATIC = $(SASS_LIBSASS_PATH)/lib/libsass.a
-LIB_SHARED = $(SASS_LIBSASS_PATH)/lib/libsass.so
-
-ifeq (Windows,$(UNAME))
- ifeq (shared,$(BUILD))
- CFLAGS += -D ADD_EXPORTS
- CXXFLAGS += -D ADD_EXPORTS
- LIB_SHARED = $(SASS_LIBSASS_PATH)/lib/libsass.dll
- endif
-else
- ifneq (Cygwin,$(UNAME))
- CFLAGS += -fPIC
- CXXFLAGS += -fPIC
- LDFLAGS += -fPIC
- endif
-endif
-
-ifeq (Windows,$(UNAME))
- SASSC_BIN = $(SASS_SASSC_PATH)/bin/sassc.exe
-endif
-
-include Makefile.conf
-
-RESOURCES =
-STATICLIB = lib/libsass.a
-SHAREDLIB = lib/libsass.so
-ifeq (Windows,$(UNAME))
- RESOURCES += res/resource.rc
- SHAREDLIB = lib/libsass.dll
- ifeq (shared,$(BUILD))
- CFLAGS += -D ADD_EXPORTS
- CXXFLAGS += -D ADD_EXPORTS
- endif
-else
- ifneq (Cygwin,$(UNAME))
- CFLAGS += -fPIC
- CXXFLAGS += -fPIC
- LDFLAGS += -fPIC
- endif
-endif
-
-OBJECTS = $(addprefix src/,$(SOURCES:.cpp=.o))
-COBJECTS = $(addprefix src/,$(CSOURCES:.c=.o))
-RCOBJECTS = $(RESOURCES:.rc=.o)
-
-DEBUG_LVL ?= NONE
-
-CLEANUPS ?=
-CLEANUPS += $(RCOBJECTS)
-CLEANUPS += $(COBJECTS)
-CLEANUPS += $(OBJECTS)
-CLEANUPS += $(LIBSASS_LIB)
-
-all: $(BUILD)
-
-debug: $(BUILD)
-
-debug-static: LDFLAGS := -g $(filter-out -O2,$(LDFLAGS))
-debug-static: CFLAGS := -g -DDEBUG -DDEBUG_LVL="$(DEBUG_LVL)" $(filter-out -O2,$(CFLAGS))
-debug-static: CXXFLAGS := -g -DDEBUG -DDEBUG_LVL="$(DEBUG_LVL)" $(filter-out -O2,$(CXXFLAGS))
-debug-static: static
-
-debug-shared: LDFLAGS := -g $(filter-out -O2,$(LDFLAGS))
-debug-shared: CFLAGS := -g -DDEBUG -DDEBUG_LVL="$(DEBUG_LVL)" $(filter-out -O2,$(CFLAGS))
-debug-shared: CXXFLAGS := -g -DDEBUG -DDEBUG_LVL="$(DEBUG_LVL)" $(filter-out -O2,$(CXXFLAGS))
-debug-shared: shared
-
-lib:
- $(MKDIR) lib
-
-lib/libsass.a: lib $(COBJECTS) $(OBJECTS)
- $(AR) rcvs $@ $(COBJECTS) $(OBJECTS)
-
-lib/libsass.so: lib $(COBJECTS) $(OBJECTS)
- $(CXX) -shared $(LDFLAGS) -o $@ $(COBJECTS) $(OBJECTS) $(LDLIBS)
-
-lib/libsass.dll: lib $(COBJECTS) $(OBJECTS) $(RCOBJECTS)
- $(CXX) -shared $(LDFLAGS) -o $@ $(COBJECTS) $(OBJECTS) $(RCOBJECTS) $(LDLIBS) -s -Wl,--subsystem,windows,--out-implib,lib/libsass.a
-
-%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
-
-%.o: %.rc
- $(WINDRES) -i $< -o $@
-
-%.o: %.cpp
- $(CXX) $(CXXFLAGS) -c -o $@ $<
-
-%: %.o static
- $(CXX) $(CXXFLAGS) -o $@ $+ $(LDFLAGS) $(LDLIBS)
-
-install: install-$(BUILD)
-
-static: $(STATICLIB)
-shared: $(SHAREDLIB)
-
-$(DESTDIR)$(PREFIX):
- $(MKDIR) $(DESTDIR)$(PREFIX)
-
-$(DESTDIR)$(PREFIX)/lib: $(DESTDIR)$(PREFIX)
- $(MKDIR) $(DESTDIR)$(PREFIX)/lib
-
-$(DESTDIR)$(PREFIX)/include: $(DESTDIR)$(PREFIX)
- $(MKDIR) $(DESTDIR)$(PREFIX)/include
-
-$(DESTDIR)$(PREFIX)/include/sass: $(DESTDIR)$(PREFIX)/include
- $(MKDIR) $(DESTDIR)$(PREFIX)/include/sass
-
-$(DESTDIR)$(PREFIX)/include/%.h: include/%.h \
- $(DESTDIR)$(PREFIX)/include \
- $(DESTDIR)$(PREFIX)/include/sass
- $(INSTALL) -v -m0644 "$<" "$@"
-
-install-headers: $(DESTDIR)$(PREFIX)/include/sass.h \
- $(DESTDIR)$(PREFIX)/include/sass2scss.h \
- $(DESTDIR)$(PREFIX)/include/sass/base.h \
- $(DESTDIR)$(PREFIX)/include/sass/version.h \
- $(DESTDIR)$(PREFIX)/include/sass/values.h \
- $(DESTDIR)$(PREFIX)/include/sass/context.h \
- $(DESTDIR)$(PREFIX)/include/sass/functions.h
-
-$(DESTDIR)$(PREFIX)/lib/%.a: lib/%.a \
- $(DESTDIR)$(PREFIX)/lib
- @$(INSTALL) -v -m0755 "$<" "$@"
-
-$(DESTDIR)$(PREFIX)/lib/%.so: lib/%.so \
- $(DESTDIR)$(PREFIX)/lib
- @$(INSTALL) -v -m0755 "$<" "$@"
-
-$(DESTDIR)$(PREFIX)/lib/%.dll: lib/%.dll \
- $(DESTDIR)$(PREFIX)/lib
- @$(INSTALL) -v -m0755 "$<" "$@"
-
-install-static: $(DESTDIR)$(PREFIX)/lib/libsass.a
-
-install-shared: $(DESTDIR)$(PREFIX)/lib/libsass.so \
- install-headers
-
-$(SASSC_BIN): $(BUILD)
- $(MAKE) -C $(SASS_SASSC_PATH) build-$(BUILD)-dev
-
-sassc: $(SASSC_BIN)
- $(SASSC_BIN) -v
-
-version: $(SASSC_BIN)
- $(SASSC_BIN) -h
- $(SASSC_BIN) -v
-
-test: $(SASSC_BIN)
- $(RUBY_BIN) $(SASS_SPEC_PATH)/sass-spec.rb -V 3.5 -c $(SASSC_BIN) --impl libsass $(LOG_FLAGS) $(SASS_SPEC_PATH)/$(SASS_SPEC_SPEC_DIR)
-
-test_build: $(SASSC_BIN)
- $(RUBY_BIN) $(SASS_SPEC_PATH)/sass-spec.rb -V 3.5 -c $(SASSC_BIN) --impl libsass $(LOG_FLAGS) $(SASS_SPEC_PATH)/$(SASS_SPEC_SPEC_DIR)
-
-test_full: $(SASSC_BIN)
- $(RUBY_BIN) $(SASS_SPEC_PATH)/sass-spec.rb -V 3.5 -c $(SASSC_BIN) --impl libsass --run-todo $(LOG_FLAGS) $(SASS_SPEC_PATH)/$(SASS_SPEC_SPEC_DIR)
-
-test_probe: $(SASSC_BIN)
- $(RUBY_BIN) $(SASS_SPEC_PATH)/sass-spec.rb -V 3.5 -c $(SASSC_BIN) --impl libsass --probe-todo $(LOG_FLAGS) $(SASS_SPEC_PATH)/$(SASS_SPEC_SPEC_DIR)
-
-clean-objects: lib
- -$(RM) lib/*.a lib/*.so lib/*.dll lib/*.la
- -$(RMDIR) lib
-clean: clean-objects
- $(RM) $(CLEANUPS)
-
-clean-all:
- $(MAKE) -C $(SASS_SASSC_PATH) clean
-
-lib-file: lib-file-$(BUILD)
-lib-opts: lib-opts-$(BUILD)
-
-lib-file-static:
- @echo $(LIB_STATIC)
-lib-file-shared:
- @echo $(LIB_SHARED)
-lib-opts-static:
- @echo -L"$(SASS_LIBSASS_PATH)/lib"
-lib-opts-shared:
- @echo -L"$(SASS_LIBSASS_PATH)/lib -lsass"
-
-.PHONY: all static shared sassc \
- version install-headers \
- clean clean-all clean-objects \
- debug debug-static debug-shared \
- install install-static install-shared \
- lib-opts lib-opts-shared lib-opts-static \
- lib-file lib-file-shared lib-file-static
-.DELETE_ON_ERROR:
diff --git a/node_modules/node-sass/src/libsass/Makefile.conf b/node_modules/node-sass/src/libsass/Makefile.conf
deleted file mode 100644
index 5ba968b..0000000
--- a/node_modules/node-sass/src/libsass/Makefile.conf
+++ /dev/null
@@ -1,55 +0,0 @@
-# this is merely a common Makefile multiple implementers can use
-# bigger files (in terms of compile time) tend to go to the top,
-# so they don't end up as the last compile unit when compiling
-# in parallel. But we also want to mix them a little too avoid
-# heavy RAM usage peaks. Other than that the order is arbitrary.
-
-
-SOURCES = \
- ast.cpp \
- node.cpp \
- context.cpp \
- constants.cpp \
- functions.cpp \
- color_maps.cpp \
- environment.cpp \
- ast_fwd_decl.cpp \
- bind.cpp \
- file.cpp \
- util.cpp \
- json.cpp \
- units.cpp \
- values.cpp \
- plugins.cpp \
- position.cpp \
- lexer.cpp \
- parser.cpp \
- prelexer.cpp \
- eval.cpp \
- expand.cpp \
- listize.cpp \
- cssize.cpp \
- extend.cpp \
- output.cpp \
- inspect.cpp \
- emitter.cpp \
- check_nesting.cpp \
- remove_placeholders.cpp \
- sass.cpp \
- sass_util.cpp \
- sass_values.cpp \
- sass_context.cpp \
- sass_functions.cpp \
- sass2scss.cpp \
- backtrace.cpp \
- operators.cpp \
- to_c.cpp \
- to_value.cpp \
- source_map.cpp \
- subset_map.cpp \
- error_handling.cpp \
- memory/SharedPtr.cpp \
- utf8_string.cpp \
- base64vlq.cpp
-
-CSOURCES = cencode.c
diff --git a/node_modules/node-sass/src/libsass/Readme.md b/node_modules/node-sass/src/libsass/Readme.md
deleted file mode 100644
index 908de2d..0000000
--- a/node_modules/node-sass/src/libsass/Readme.md
+++ /dev/null
@@ -1,104 +0,0 @@
-LibSass - Sass compiler written in C++
-======================================
-
-Currently maintained by Marcel Greter ([@mgreter]) and Michael Mifsud ([@xzyfer])
-Originally created by Aaron Leung ([@akhleung]) and Hampton Catlin ([@hcatlin])
-
-[![Unix CI](https://travis-ci.org/sass/libsass.svg?branch=master)](https://travis-ci.org/sass/libsass "Travis CI")
-[![Windows CI](https://ci.appveyor.com/api/projects/status/github/sass/libsass?svg=true)](https://ci.appveyor.com/project/sass/libsass/branch/master "Appveyor CI")
-[![Coverage Status](https://img.shields.io/coveralls/sass/libsass.svg)](https://coveralls.io/r/sass/libsass?branch=feature%2Ftest-travis-ci-3 "Code coverage of spec tests")
-[![Percentage of issues still open](http://isitmaintained.com/badge/open/sass/libsass.svg)](http://isitmaintained.com/project/sass/libsass "Percentage of issues still open")
-[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/sass/libsass.svg)](http://isitmaintained.com/project/sass/libsass "Average time to resolve an issue")
-[![Bountysource](https://www.bountysource.com/badge/tracker?tracker_id=283068)](https://www.bountysource.com/trackers/283068-libsass?utm_source=283068&utm_medium=shield&utm_campaign=TRACKER_BADGE "Bountysource")
-[![Join us](https://libsass-slack.herokuapp.com/badge.svg)](https://libsass-slack.herokuapp.com/ "Slack communication channels")
-
-
-[LibSass](https://github.com/sass/libsass "LibSass GitHub Project") is just a library!
-If you want to use LibSass to compile Sass, you need an implementer. Some
-implementations are only bindings into other programming languages. But most also
-ship with a command line interface (CLI) you can use directly. There is also
-[SassC](https://github.com/sass/sassc), which is the official lightweight
-CLI tool built by the same people as LibSass.
-
-### Excerpt of "sanctioned" implementations:
-
-- https://github.com/sass/node-sass (Node.js)
-- https://github.com/sass/perl-libsass (Perl)
-- https://github.com/sass/libsass-python (Python)
-- https://github.com/wellington/go-libsass (Go)
-- https://github.com/sass/sassc-ruby (Ruby)
-- https://github.com/sass/libsass-net (C#)
-- https://github.com/medialize/sass.js (JS)
-- https://github.com/bit3/jsass (Java)
-
-This list does not say anything about the quality of either the listed or not listed [implementations](docs/implementations.md)!
-The authors of the listed projects above are just known to work regularly together with LibSass developers.
-
-About
------
-
-LibSass is a C++ port of the original Ruby Sass CSS compiler with a [C API](docs/api-doc.md).
-We coded LibSass with portability and efficiency in mind. You can expect LibSass to be a lot
-faster than Ruby Sass and on par or faster than the best alternative CSS compilers around.
-
-Developing
-----------
-
-As noted above, the LibSass repository does not contain any binaries or other way to execute
-LibSass. Therefore, you need an implementer to develop LibSass. Easiest is to start with
-the official [SassC](http://github.com/sass/sassc) CLI wrapper. It is *guaranteed* to compile
-with the latest code in LibSass master, since it is also used in the CI process. There is no
-limitation here, as you may use any other LibSass implementer to test your LibSass branch!
-
-Testing
--------
-
-Since LibSass is a pure library, tests are run through the [Sass-Spec](https://github.com/sass/sass-spec)
-project using the [SassC](http://github.com/sass/sassc) CLI wrapper. To run the tests against LibSass while
-developing, you can run `./script/spec`. This will clone SassC and Sass-Spec under the project folder and
-then run the Sass-Spec test suite. You may want to update the clones to ensure you have the latest version.
-Note that the scripts in the `./script` folder are mainly intended for our CI needs.
-
-Building
---------
-
-To build LibSass you need GCC 4.6+ or Clang/LLVM. If your OS is older, you may need to upgrade
-them first (or install clang as an alternative). On Windows, you need MinGW with GCC 4.6+ or VS 2013
-Update 4+. It is also possible to build LibSass with Clang/LLVM on Windows with various build chains
-and/or command line interpreters.
-
-See the [build docs for further instructions](docs/build.md)!
-
-Compatibility
--------------
-
-Current LibSass 3.4 should be compatible with Sass 3.4. Please refer to the [sass compatibility
-page](http://sass-compatibility.github.io/) for a more detailed comparison. But note that there
-are still a few incomplete edges which we are aware of. Otherwise LibSass has reached a good level
-of stability, thanks to our ever growing [Sass-Spec test suite](https://github.com/sass/sass-spec).
-
-About Sass
-----------
-
-Sass is a CSS pre-processor language to add on exciting, new, awesome features to CSS. Sass was
-the first language of its kind and by far the most mature and up to date codebase.
-
-Sass was originally conceived of by the co-creator of this library, Hampton Catlin ([@hcatlin]).
-Most of the language has been the result of years of work by Natalie Weizenbaum ([@nex3]) and
-Chris Eppstein ([@chriseppstein]).
-
-For more information about Sass itself, please visit http://sass-lang.com
-
-Initial development of LibSass by Aaron Leung and Hampton Catlin was supported by [Moovweb](http://www.moovweb.com).
-
-Licensing
----------
-
-Our [MIT license](LICENSE) is designed to be as simple and liberal as possible.
-
-[@hcatlin]: https://github.com/hcatlin
-[@akhleung]: https://github.com/akhleung
-[@chriseppstein]: https://github.com/chriseppstein
-[@nex3]: https://github.com/nex3
-[@mgreter]: https://github.com/mgreter
-[@xzyfer]: https://github.com/xzyfer
diff --git a/node_modules/node-sass/src/libsass/SECURITY.md b/node_modules/node-sass/src/libsass/SECURITY.md
deleted file mode 100644
index 90c837c..0000000
--- a/node_modules/node-sass/src/libsass/SECURITY.md
+++ /dev/null
@@ -1,10 +0,0 @@
-Serious about security
-======================
-
-The LibSass team recognizes the important contributions the security research
-community can make. We therefore encourage reporting security issues with the
-code contained in this repository.
-
-If you believe you have discovered a security vulnerability, please report it at
-https://hackerone.com/libsass instead of GitHub.
-
diff --git a/node_modules/node-sass/src/libsass/appveyor.yml b/node_modules/node-sass/src/libsass/appveyor.yml
deleted file mode 100644
index d964fad..0000000
--- a/node_modules/node-sass/src/libsass/appveyor.yml
+++ /dev/null
@@ -1,91 +0,0 @@
-os: Visual Studio 2013
-
-environment:
- CTEST_OUTPUT_ON_FAILURE: 1
- ruby_version: 22-x64
- TargetPath: sassc/bin/sassc.exe
- matrix:
- - Compiler: msvc
- Config: Release
- Platform: Win32
- - Compiler: msvc
- Config: Debug
- Platform: Win32
- - Compiler: msvc
- Config: Release
- Platform: Win64
- - Compiler: mingw
- Build: static
- - Compiler: mingw
- Build: shared
-
-cache:
- - C:\Ruby%ruby_version%\lib\ruby\gems
- - C:\mingw64
-
-install:
- - git clone https://github.com/sass/sassc.git
- - git clone https://github.com/sass/sass-spec.git
- - set PATH=C:\Ruby%ruby_version%\bin;%PATH%
- - ps: |
- if(!(gem which minitest 2>$nul)) { gem install minitest --no-ri --no-rdoc }
- if ($env:Compiler -eq "mingw" -AND -Not (Test-Path "C:\mingw64")) {
- # Install MinGW.
- $file = "x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z"
- wget https://bintray.com/artifact/download/drewwells/generic/$file -OutFile $file
- &7z x -oC:\ $file > $null
- }
- - set PATH=C:\mingw64\bin;%PATH%
- - set CC=gcc
-
-build_script:
- - ps: |
- if ($env:Compiler -eq "mingw") {
- mingw32-make -j4 sassc
- } else {
- msbuild /m:4 /p:"Configuration=$env:Config;Platform=$env:Platform" sassc\win\sassc.sln
- }
-
- # print the branding art
- mv script/branding script/branding.ps1
- script/branding.ps1
-
- # print the version info
- &$env:TargetPath -v
- ruby -v
-
-test_script:
- - ps: |
- $PRNR = $env:APPVEYOR_PULL_REQUEST_NUMBER
- if ($PRNR) {
- echo "Fetching info for PR $PRNR"
- wget https://api.github.com/repos/sass/libsass/pulls/$PRNR -OutFile pr.json
- $json = cat pr.json -Raw
- $SPEC_PR = [regex]::match($json,'sass\/sass-spec(#|\/pull\/)([0-9]+)').Groups[2].Value
- if ($SPEC_PR) {
- echo "Checkout sass spec PR $SPEC_PR"
- git -C sass-spec fetch -q -u origin pull/$SPEC_PR/head:ci-spec-pr-$SPEC_PR
- git -C sass-spec checkout -q --force ci-spec-pr-$SPEC_PR
- }
- }
- $env:TargetPath = Join-Path $pwd.Path $env:TargetPath
- If (Test-Path "$env:TargetPath") {
- ruby sass-spec/sass-spec.rb -V 3.5 --probe-todo --impl libsass -c $env:TargetPath -s sass-spec/spec
- if(-not($?)) {
- echo "sass-spec tests failed"
- exit 1
- }
- } else {
- echo "spec runner not found (compile error?)"
- exit 1
- }
- Write-Host "Explicitly testing the case when cwd has Cyrillic characters: " -nonewline
- # See comments in gh-1774 for details.
- cd sass-spec/spec/libsass/Sáss-UŢF8/
- &$env:TargetPath ./input.scss 2>&1>$null
- if(-not($?)) {
- echo "Failed!"
- exit 1
- } else {
- echo "Success!"
- }
diff --git a/node_modules/node-sass/src/libsass/configure.ac b/node_modules/node-sass/src/libsass/configure.ac
deleted file mode 100644
index b5a9432..0000000
--- a/node_modules/node-sass/src/libsass/configure.ac
+++ /dev/null
@@ -1,134 +0,0 @@
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ([2.61])
-
-AC_INIT([libsass], m4_esyscmd_s([./version.sh]), [support@moovweb.com])
-AC_CONFIG_SRCDIR([src/ast.hpp])
-AC_CONFIG_MACRO_DIR([m4])
-AC_CONFIG_HEADERS([src/config.h])
-AC_CONFIG_FILES([include/sass/version.h])
-AC_CONFIG_AUX_DIR([script])
-
-# These are flags passed to automake
-# Though they look like gcc flags!
-AM_INIT_AUTOMAKE([foreign parallel-tests -Wall])
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
-
-# Checks for programs.
-AC_PROG_CC
-AC_PROG_CXX
-AC_LANG_PUSH([C])
-AC_LANG_PUSH([C++])
-AC_GNU_SOURCE
-# Check fails on Travis, but it works fine
-# AX_CXX_COMPILE_STDCXX_11([ext],[optional])
-AC_CHECK_TOOL([AR], [ar], [false])
-AC_CHECK_TOOL([DLLTOOL], [dlltool], [false])
-AC_CHECK_TOOL([DLLWRAP], [dllwrap], [false])
-AC_CHECK_TOOL([WINDRES], [windres], [false])
-m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
-LT_INIT([dlopen])
-
-# Checks for header files.
-AC_CHECK_HEADERS([unistd.h])
-
-# Checks for typedefs, structures, and compiler characteristics.
-AC_TYPE_SIZE_T
-
-# Checks for library functions.
-AC_FUNC_MALLOC
-AC_CHECK_FUNCS([floor getcwd strtol])
-
-# Checks for testing.
-AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests], [enable testing the build]),
- [enable_tests="$enableval"], [enable_tests=no])
-
-AS_CASE([$host], [*-*-mingw*], [is_mingw32=yes], [is_mingw32=no])
-AM_CONDITIONAL(COMPILER_IS_MINGW32, test "x$is_mingw32" = "xyes")
-
-dnl The dlopen() function is in the C library for *BSD and in
-dnl libdl on GLIBC-based systems
-if test "x$is_mingw32" != "xyes"; then
- AC_SEARCH_LIBS([dlopen], [dl dld], [], [
- AC_MSG_ERROR([unable to find the dlopen() function])
- ])
-fi
-
-if test "x$enable_tests" = "xyes"; then
- AC_PROG_CC
- AC_PROG_AWK
- # test need minitest gem
- AC_PATH_PROG(RUBY, [ruby])
- AC_PATH_PROG(TAPOUT, [tapout])
- AC_REQUIRE_AUX_FILE([tap-driver])
- AC_REQUIRE_AUX_FILE([tap-runner])
- AC_ARG_WITH(sassc-dir,
- AS_HELP_STRING([--with-sassc-dir=<dir>], [specify directory of sassc sources for testing (default: sassc)]),
- [sassc_dir="$withval"], [sassc_dir="sassc"])
- AC_CHECK_FILE([$sassc_dir/sassc.c], [], [
- AC_MSG_ERROR([Unable to find sassc directory.
-You must clone the sassc repository in this directory or specify
-the --with-sassc-dir=<dir> argument.
-])
- ])
- SASS_SASSC_PATH=$sassc_dir
- AC_SUBST(SASS_SASSC_PATH)
-
- AC_ARG_WITH(sass-spec-dir,
- AS_HELP_STRING([--with-sass-spec-dir=<dir>], [specify directory of sass-spec for testing (default: sass-spec)]),
- [sass_spec_dir="$withval"], [sass_spec_dir="sass-spec"])
- AC_CHECK_FILE([$sass_spec_dir/sass-spec.rb], [], [
- AC_MSG_ERROR([Unable to find sass-spec directory.
-You must clone the sass-spec repository in this directory or specify
-the --with-sass-spec-dir=<dir> argument.
-])
- ])
- # Automake doesn't like its tests in an absolute path, so we make it relative.
- case $sass_spec_dir in
- /*)
- SASS_SPEC_PATH=`$RUBY -e "require 'pathname'; puts Pathname.new('$sass_spec_dir').relative_path_from(Pathname.new('$PWD')).to_s"`
- ;;
- *)
- SASS_SPEC_PATH="$sass_spec_dir"
- ;;
- esac
- AC_SUBST(SASS_SPEC_PATH)
-else
- # we do not really need these paths for non test build
- # but automake may error if we do not define them here
- SASS_SPEC_PATH=sass-spec
- SASS_SASSC_PATH=sassc
- AC_SUBST(SASS_SPEC_PATH)
- AC_SUBST(SASS_SASSC_PATH)
-fi
-
-AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")
-
-AC_ARG_ENABLE([coverage],
- [AS_HELP_STRING([--enable-coverage],
- [enable coverage report for test suite])],
- [enable_cov=$enableval],
- [enable_cov=no])
-
-if test "x$enable_cov" = "xyes"; then
-
- AC_CHECK_PROG(GCOV, gcov, gcov)
-
- # Remove all optimization flags from C[XX]FLAGS
- changequote({,})
- CFLAGS=`echo "$CFLAGS -O1 -fno-omit-frame-pointer" | $SED -e 's/-O[0-9]*//g'`
- CXXFLAGS=`echo "$CXXFLAGS -O1 -fno-omit-frame-pointer" | $SED -e 's/-O[0-9]*//g'`
- changequote([,])
-
- AC_SUBST(GCOV)
-fi
-
-AM_CONDITIONAL(ENABLE_COVERAGE, test "x$enable_cov" = "xyes")
-
-AC_SUBST(PACKAGE_VERSION)
-
-AC_MSG_NOTICE([Building libsass ($VERSION)])
-
-AC_CONFIG_FILES([GNUmakefile src/GNUmakefile src/support/libsass.pc])
-AC_OUTPUT
diff --git a/node_modules/node-sass/src/libsass/contrib/libsass.spec b/node_modules/node-sass/src/libsass/contrib/libsass.spec
deleted file mode 100644
index a83d5f0..0000000
--- a/node_modules/node-sass/src/libsass/contrib/libsass.spec
+++ /dev/null
@@ -1,66 +0,0 @@
-Name: libsass
-Version: %{version}
-Release: 1%{?dist}
-Summary: A C/C++ implementation of a Sass compiler
-
-License: MIT
-URL: http://libsass.org
-Source0: %{name}-%{version}.tar.gz
-
-BuildRequires: gcc-c++ >= 4.7
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
-
-
-%description
-LibSass is a C/C++ port of the Sass engine. The point is to be simple, fast, and easy to integrate.
-
-%package devel
-Summary: Development files for %{name}
-Requires: %{name}%{?_isa} = %{version}-%{release}
-
-
-%description devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
-
-
-%prep
-%setup -q
-autoreconf --force --install
-
-
-%build
-%configure --disable-static \
- --disable-tests \
- --enable-shared
-
-make %{?_smp_mflags}
-
-
-%install
-%make_install
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
-
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-
-%files
-%doc Readme.md LICENSE
-%{_libdir}/*.so.*
-
-%files devel
-%doc
-%{_includedir}/*
-%{_libdir}/*.so
-%{_libdir}/pkgconfig/*.pc
-
-
-%changelog
-* Tue Feb 10 2015 Gawain Lynch <gawain.lynch@gmail.com> - 3.1.0-1
-- Initial SPEC file
-
diff --git a/node_modules/node-sass/src/libsass/contrib/plugin.cpp b/node_modules/node-sass/src/libsass/contrib/plugin.cpp
deleted file mode 100644
index 2f67bb3..0000000
--- a/node_modules/node-sass/src/libsass/contrib/plugin.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-#include <cstring>
-#include <iostream>
-#include <stdint.h>
-#include <sass.h>
-
-// gcc: g++ -shared plugin.cpp -o plugin.so -fPIC -Llib -lsass
-// mingw: g++ -shared plugin.cpp -o plugin.dll -Llib -lsass
-
-extern "C" const char* ADDCALL libsass_get_version() {
- return libsass_version();
-}
-
-union Sass_Value* custom_function(const union Sass_Value* s_args, Sass_Function_Entry cb, struct Sass_Compiler* comp)
-{
- // get context/option struct associated with this compiler
- struct Sass_Context* ctx = sass_compiler_get_context(comp);
- struct Sass_Options* opts = sass_compiler_get_options(comp);
- // get the cookie from function descriptor
- void* cookie = sass_function_get_cookie(cb);
- // we actually abuse the void* to store an "int"
- return sass_make_number((intptr_t)cookie, "px");
-}
-
-extern "C" Sass_Function_List ADDCALL libsass_load_functions()
-{
- // allocate a custom function caller
- Sass_Function_Entry c_func =
- sass_make_function("foo()", custom_function, (void*)42);
- // create list of all custom functions
- Sass_Function_List fn_list = sass_make_function_list(1);
- // put the only function in this plugin to the list
- sass_function_set_list_entry(fn_list, 0, c_func);
- // return the list
- return fn_list;
-}
-
-Sass_Import_List custom_importer(const char* cur_path, Sass_Importer_Entry cb, struct Sass_Compiler* comp)
-{
- // get the cookie from importer descriptor
- void* cookie = sass_importer_get_cookie(cb);
- // create a list to hold our import entries
- Sass_Import_List incs = sass_make_import_list(1);
- // create our only import entry (route path back)
- incs[0] = sass_make_import_entry(cur_path, 0, 0);
- // return imports
- return incs;
-}
-
-extern "C" Sass_Importer_List ADDCALL libsass_load_importers()
-{
- // allocate a custom function caller
- Sass_Importer_Entry c_imp =
- sass_make_importer(custom_importer, - 99, (void*)42);
- // create list of all custom functions
- Sass_Importer_List imp_list = sass_make_importer_list(1);
- // put the only function in this plugin to the list
- sass_importer_set_list_entry(imp_list, 0, c_imp);
- // return the list
- return imp_list;
-}
diff --git a/node_modules/node-sass/src/libsass/docs/README.md b/node_modules/node-sass/src/libsass/docs/README.md
deleted file mode 100644
index a233fae..0000000
--- a/node_modules/node-sass/src/libsass/docs/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-Welcome to the LibSass documentation!
-
-## First Off
-LibSass is just a library. To run the code locally (i.e. to compile your stylesheets), you need an implementer. SassC (get it?) is an implementer written in C. There are a number of other implementations of LibSass - for example Node. We encourage you to write your own port - the whole point of LibSass is that we want to bring Sass to many other languages, not just Ruby!
-
-We're working hard on moving to full parity with Ruby Sass... learn more at the [The-LibSass-Compatibility-Plan](compatibility-plan.md)!
-
-### Implementing LibSass
-
-If you're interested in implementing LibSass in your own project see the [API Documentation](api-doc.md) which now includes implementing
-your own [Sass functions](api-function.md). You may wish to [look at other implementations](implementations.md) for your language of choice.
-Or make your own!
-
-### Contributing to LibSass
-
-| Issue Tracker | Issue Triage | Community Guidelines |
-|-------------------|----------------------------------|-----------------------------|
-| We're always needing help, so check out our issue tracker, help some people out, and read our article on [Contributing](contributing.md)! It's got all the details on what to do! | To help understand the process of triaging bugs, have a look at our [Issue-Triage](triage.md) document. | Oh, and don't forget we always follow [[Sass Community Guidelines|http://sass-lang.com/community-guidelines]]. Be nice and everyone else will be nice too! |
-
-Please refer to the steps on [Building LibSass](build.md)
diff --git a/node_modules/node-sass/src/libsass/docs/api-context-example.md b/node_modules/node-sass/src/libsass/docs/api-context-example.md
deleted file mode 100644
index 4f2a2a0..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-context-example.md
+++ /dev/null
@@ -1,45 +0,0 @@
-## Example main.c
-
-```C
-#include <stdio.h>
-#include "sass/context.h"
-
-int main( int argc, const char* argv[] )
-{
-
- // get the input file from first argument or use default
- const char* input = argc > 1 ? argv[1] : "styles.scss";
-
- // create the file context and get all related structs
- struct Sass_File_Context* file_ctx = sass_make_file_context(input);
- struct Sass_Context* ctx = sass_file_context_get_context(file_ctx);
- struct Sass_Options* ctx_opt = sass_context_get_options(ctx);
-
- // configure some options ...
- sass_option_set_precision(ctx_opt, 10);
-
- // context is set up, call the compile step now
- int status = sass_compile_file_context(file_ctx);
-
- // print the result or the error to the stdout
- if (status == 0) puts(sass_context_get_output_string(ctx));
- else puts(sass_context_get_error_message(ctx));
-
- // release allocated memory
- sass_delete_file_context(file_ctx);
-
- // exit status
- return status;
-
-}
-```
-
-### Compile main.c
-
-```bash
-gcc -c main.c -o main.o
-gcc -o sample main.o -lsass
-echo "foo { margin: 21px * 2; }" > foo.scss
-./sample foo.scss => "foo { margin: 42px }"
-```
-
diff --git a/node_modules/node-sass/src/libsass/docs/api-context-internal.md b/node_modules/node-sass/src/libsass/docs/api-context-internal.md
deleted file mode 100644
index 1a2818b..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-context-internal.md
+++ /dev/null
@@ -1,163 +0,0 @@
-```C
-// Input behaviours
-enum Sass_Input_Style {
- SASS_CONTEXT_NULL,
- SASS_CONTEXT_FILE,
- SASS_CONTEXT_DATA,
- SASS_CONTEXT_FOLDER
-};
-
-// sass config options structure
-struct Sass_Inspect_Options {
-
- // Output style for the generated css code
- // A value from above SASS_STYLE_* constants
- enum Sass_Output_Style output_style;
-
- // Precision for fractional numbers
- int precision;
-
-};
-
-// sass config options structure
-struct Sass_Output_Options : Sass_Inspect_Options {
-
- // String to be used for indentation
- const char* indent;
- // String to be used to for line feeds
- const char* linefeed;
-
- // Emit comments in the generated CSS indicating
- // the corresponding source line.
- bool source_comments;
-
-};
-
-// sass config options structure
-struct Sass_Options : Sass_Output_Options {
-
- // embed sourceMappingUrl as data uri
- bool source_map_embed;
-
- // embed include contents in maps
- bool source_map_contents;
-
- // create file urls for sources
- bool source_map_file_urls;
-
- // Disable sourceMappingUrl in css output
- bool omit_source_map_url;
-
- // Treat source_string as sass (as opposed to scss)
- bool is_indented_syntax_src;
-
- // The input path is used for source map
- // generation. It can be used to define
- // something with string compilation or to
- // overload the input file path. It is
- // set to "stdin" for data contexts and
- // to the input file on file contexts.
- char* input_path;
-
- // The output path is used for source map
- // generation. LibSass will not write to
- // this file, it is just used to create
- // information in source-maps etc.
- char* output_path;
-
- // Colon-separated list of paths
- // Semicolon-separated on Windows
- // Maybe use array interface instead?
- char* include_path;
- char* plugin_path;
-
- // Include paths (linked string list)
- struct string_list* include_paths;
- // Plugin paths (linked string list)
- struct string_list* plugin_paths;
-
- // Path to source map file
- // Enables source map generation
- // Used to create sourceMappingUrl
- char* source_map_file;
-
- // Directly inserted in source maps
- char* source_map_root;
-
- // Custom functions that can be called from sccs code
- Sass_Function_List c_functions;
-
- // Callback to overload imports
- Sass_Importer_List c_importers;
-
- // List of custom headers
- Sass_Importer_List c_headers;
-
-};
-
-// base for all contexts
-struct Sass_Context : Sass_Options
-{
-
- // store context type info
- enum Sass_Input_Style type;
-
- // generated output data
- char* output_string;
-
- // generated source map json
- char* source_map_string;
-
- // error status
- int error_status;
- char* error_json;
- char* error_text;
- char* error_message;
- // error position
- char* error_file;
- size_t error_line;
- size_t error_column;
- const char* error_src;
-
- // report imported files
- char** included_files;
-
-};
-
-// struct for file compilation
-struct Sass_File_Context : Sass_Context {
-
- // no additional fields required
- // input_path is already on options
-
-};
-
-// struct for data compilation
-struct Sass_Data_Context : Sass_Context {
-
- // provided source string
- char* source_string;
- char* srcmap_string;
-
-};
-
-// Compiler states
-enum Sass_Compiler_State {
- SASS_COMPILER_CREATED,
- SASS_COMPILER_PARSED,
- SASS_COMPILER_EXECUTED
-};
-
-// link c and cpp context
-struct Sass_Compiler {
- // progress status
- Sass_Compiler_State state;
- // original c context
- Sass_Context* c_ctx;
- // Sass::Context
- Sass::Context* cpp_ctx;
- // Sass::Block
- Sass::Block_Obj root;
-};
-```
-
diff --git a/node_modules/node-sass/src/libsass/docs/api-context.md b/node_modules/node-sass/src/libsass/docs/api-context.md
deleted file mode 100644
index dfd10c1..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-context.md
+++ /dev/null
@@ -1,295 +0,0 @@
-Sass Contexts come in two flavors:
-
-- `Sass_File_Context`
-- `Sass_Data_Context`
-
-### Basic Usage
-
-```C
-#include "sass/context.h"
-```
-
-***Sass_Options***
-
-```C
-// Precision for fractional numbers
-int precision;
-```
-```C
-// Output style for the generated css code
-// A value from above SASS_STYLE_* constants
-int output_style;
-```
-```C
-// Emit comments in the generated CSS indicating
-// the corresponding source line.
-bool source_comments;
-```
-```C
-// embed sourceMappingUrl as data uri
-bool source_map_embed;
-```
-```C
-// embed include contents in maps
-bool source_map_contents;
-```
-```C
-// create file urls for sources
-bool source_map_file_urls;
-```
-```C
-// Disable sourceMappingUrl in css output
-bool omit_source_map_url;
-```
-```C
-// Treat source_string as sass (as opposed to scss)
-bool is_indented_syntax_src;
-```
-```C
-// The input path is used for source map
-// generating. It can be used to define
-// something with string compilation or to
-// overload the input file path. It is
-// set to "stdin" for data contexts and
-// to the input file on file contexts.
-char* input_path;
-```
-```C
-// The output path is used for source map
-// generating. LibSass will not write to
-// this file, it is just used to create
-// information in source-maps etc.
-char* output_path;
-```
-```C
-// String to be used for indentation
-const char* indent;
-```
-```C
-// String to be used to for line feeds
-const char* linefeed;
-```
-```C
-// Colon-separated list of paths
-// Semicolon-separated on Windows
-char* include_path;
-char* plugin_path;
-```
-```C
-// Additional include paths
-// Must be null delimited
-char** include_paths;
-char** plugin_paths;
-```
-```C
-// Path to source map file
-// Enables the source map generating
-// Used to create sourceMappingUrl
-char* source_map_file;
-```
-```C
-// Directly inserted in source maps
-char* source_map_root;
-```
-```C
-// Custom functions that can be called from Sass code
-Sass_C_Function_List c_functions;
-```
-```C
-// Callback to overload imports
-Sass_C_Import_Callback importer;
-```
-
-***Sass_Context***
-
-```C
-// store context type info
-enum Sass_Input_Style type;
-````
-```C
-// generated output data
-char* output_string;
-```
-```C
-// generated source map json
-char* source_map_string;
-```
-```C
-// error status
-int error_status;
-char* error_json;
-char* error_text;
-char* error_message;
-// error position
-char* error_file;
-size_t error_line;
-size_t error_column;
-```
-```C
-// report imported files
-char** included_files;
-```
-
-***Sass_File_Context***
-
-```C
-// no additional fields required
-// input_path is already on options
-```
-
-***Sass_Data_Context***
-
-```C
-// provided source string
-char* source_string;
-```
-
-### Sass Context API
-
-```C
-// Forward declaration
-struct Sass_Compiler;
-
-// Forward declaration
-struct Sass_Options;
-struct Sass_Context; // : Sass_Options
-struct Sass_File_Context; // : Sass_Context
-struct Sass_Data_Context; // : Sass_Context
-
-// Create and initialize an option struct
-struct Sass_Options* sass_make_options (void);
-// Create and initialize a specific context
-struct Sass_File_Context* sass_make_file_context (const char* input_path);
-struct Sass_Data_Context* sass_make_data_context (char* source_string);
-
-// Call the compilation step for the specific context
-int sass_compile_file_context (struct Sass_File_Context* ctx);
-int sass_compile_data_context (struct Sass_Data_Context* ctx);
-
-// Create a sass compiler instance for more control
-struct Sass_Compiler* sass_make_file_compiler (struct Sass_File_Context* file_ctx);
-struct Sass_Compiler* sass_make_data_compiler (struct Sass_Data_Context* data_ctx);
-
-// Execute the different compilation steps individually
-// Usefull if you only want to query the included files
-int sass_compiler_parse (struct Sass_Compiler* compiler);
-int sass_compiler_execute (struct Sass_Compiler* compiler);
-
-// Release all memory allocated with the compiler
-// This does _not_ include any contexts or options
-void sass_delete_compiler (struct Sass_Compiler* compiler);
-void sass_delete_options(struct Sass_Options* options);
-
-// Release all memory allocated and also ourself
-void sass_delete_file_context (struct Sass_File_Context* ctx);
-void sass_delete_data_context (struct Sass_Data_Context* ctx);
-
-// Getters for Context from specific implementation
-struct Sass_Context* sass_file_context_get_context (struct Sass_File_Context* file_ctx);
-struct Sass_Context* sass_data_context_get_context (struct Sass_Data_Context* data_ctx);
-
-// Getters for Context_Options from Sass_Context
-struct Sass_Options* sass_context_get_options (struct Sass_Context* ctx);
-struct Sass_Options* sass_file_context_get_options (struct Sass_File_Context* file_ctx);
-struct Sass_Options* sass_data_context_get_options (struct Sass_Data_Context* data_ctx);
-void sass_file_context_set_options (struct Sass_File_Context* file_ctx, struct Sass_Options* opt);
-void sass_data_context_set_options (struct Sass_Data_Context* data_ctx, struct Sass_Options* opt);
-
-// Getters for Sass_Context values
-const char* sass_context_get_output_string (struct Sass_Context* ctx);
-int sass_context_get_error_status (struct Sass_Context* ctx);
-const char* sass_context_get_error_json (struct Sass_Context* ctx);
-const char* sass_context_get_error_text (struct Sass_Context* ctx);
-const char* sass_context_get_error_message (struct Sass_Context* ctx);
-const char* sass_context_get_error_file (struct Sass_Context* ctx);
-size_t sass_context_get_error_line (struct Sass_Context* ctx);
-size_t sass_context_get_error_column (struct Sass_Context* ctx);
-const char* sass_context_get_source_map_string (struct Sass_Context* ctx);
-char** sass_context_get_included_files (struct Sass_Context* ctx);
-
-// Getters for Sass_Compiler options (query import stack)
-size_t sass_compiler_get_import_stack_size(struct Sass_Compiler* compiler);
-Sass_Import_Entry sass_compiler_get_last_import(struct Sass_Compiler* compiler);
-Sass_Import_Entry sass_compiler_get_import_entry(struct Sass_Compiler* compiler, size_t idx);
-// Getters for Sass_Compiler options (query function stack)
-size_t sass_compiler_get_callee_stack_size(struct Sass_Compiler* compiler);
-Sass_Callee_Entry sass_compiler_get_last_callee(struct Sass_Compiler* compiler);
-Sass_Callee_Entry sass_compiler_get_callee_entry(struct Sass_Compiler* compiler, size_t idx);
-
-// Take ownership of memory (value on context is set to 0)
-char* sass_context_take_error_json (struct Sass_Context* ctx);
-char* sass_context_take_error_text (struct Sass_Context* ctx);
-char* sass_context_take_error_message (struct Sass_Context* ctx);
-char* sass_context_take_error_file (struct Sass_Context* ctx);
-char* sass_context_take_output_string (struct Sass_Context* ctx);
-char* sass_context_take_source_map_string (struct Sass_Context* ctx);
-```
-
-### Sass Options API
-
-```C
-// Getters for Context_Option values
-int sass_option_get_precision (struct Sass_Options* options);
-enum Sass_Output_Style sass_option_get_output_style (struct Sass_Options* options);
-bool sass_option_get_source_comments (struct Sass_Options* options);
-bool sass_option_get_source_map_embed (struct Sass_Options* options);
-bool sass_option_get_source_map_contents (struct Sass_Options* options);
-bool sass_option_get_source_map_file_urls (struct Sass_Options* options);
-bool sass_option_get_omit_source_map_url (struct Sass_Options* options);
-bool sass_option_get_is_indented_syntax_src (struct Sass_Options* options);
-const char* sass_option_get_indent (struct Sass_Options* options);
-const char* sass_option_get_linefeed (struct Sass_Options* options);
-const char* sass_option_get_input_path (struct Sass_Options* options);
-const char* sass_option_get_output_path (struct Sass_Options* options);
-const char* sass_option_get_source_map_file (struct Sass_Options* options);
-const char* sass_option_get_source_map_root (struct Sass_Options* options);
-Sass_C_Function_List sass_option_get_c_functions (struct Sass_Options* options);
-Sass_C_Import_Callback sass_option_get_importer (struct Sass_Options* options);
-
-// Getters for Context_Option include path array
-size_t sass_option_get_include_path_size(struct Sass_Options* options);
-const char* sass_option_get_include_path(struct Sass_Options* options, size_t i);
-// Plugin paths to load dynamic libraries work the same
-size_t sass_option_get_plugin_path_size(struct Sass_Options* options);
-const char* sass_option_get_plugin_path(struct Sass_Options* options, size_t i);
-
-// Setters for Context_Option values
-void sass_option_set_precision (struct Sass_Options* options, int precision);
-void sass_option_set_output_style (struct Sass_Options* options, enum Sass_Output_Style output_style);
-void sass_option_set_source_comments (struct Sass_Options* options, bool source_comments);
-void sass_option_set_source_map_embed (struct Sass_Options* options, bool source_map_embed);
-void sass_option_set_source_map_contents (struct Sass_Options* options, bool source_map_contents);
-void sass_option_set_source_map_file_urls (struct Sass_Options* options, bool source_map_file_urls);
-void sass_option_set_omit_source_map_url (struct Sass_Options* options, bool omit_source_map_url);
-void sass_option_set_is_indented_syntax_src (struct Sass_Options* options, bool is_indented_syntax_src);
-void sass_option_set_indent (struct Sass_Options* options, const char* indent);
-void sass_option_set_linefeed (struct Sass_Options* options, const char* linefeed);
-void sass_option_set_input_path (struct Sass_Options* options, const char* input_path);
-void sass_option_set_output_path (struct Sass_Options* options, const char* output_path);
-void sass_option_set_plugin_path (struct Sass_Options* options, const char* plugin_path);
-void sass_option_set_include_path (struct Sass_Options* options, const char* include_path);
-void sass_option_set_source_map_file (struct Sass_Options* options, const char* source_map_file);
-void sass_option_set_source_map_root (struct Sass_Options* options, const char* source_map_root);
-void sass_option_set_c_functions (struct Sass_Options* options, Sass_C_Function_List c_functions);
-void sass_option_set_importer (struct Sass_Options* options, Sass_C_Import_Callback importer);
-
-// Push function for paths (no manipulation support for now)
-void sass_option_push_plugin_path (struct Sass_Options* options, const char* path);
-void sass_option_push_include_path (struct Sass_Options* options, const char* path);
-
-// Resolve a file via the given include paths in the sass option struct
-// find_file looks for the exact file name while find_include does a regular sass include
-char* sass_find_file (const char* path, struct Sass_Options* opt);
-char* sass_find_include (const char* path, struct Sass_Options* opt);
-
-// Resolve a file relative to last import or include paths in the sass option struct
-// find_file looks for the exact file name while find_include does a regular sass include
-char* sass_compiler_find_file (const char* path, struct Sass_Compiler* compiler);
-char* sass_compiler_find_include (const char* path, struct Sass_Compiler* compiler);
-```
-
-### More links
-
-- [Sass Context Example](api-context-example.md)
-- [Sass Context Internal](api-context-internal.md)
-
diff --git a/node_modules/node-sass/src/libsass/docs/api-doc.md b/node_modules/node-sass/src/libsass/docs/api-doc.md
deleted file mode 100644
index 3765616..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-doc.md
+++ /dev/null
@@ -1,215 +0,0 @@
-## Introduction
-
-LibSass wouldn't be much good without a way to interface with it. These
-interface documentations describe the various functions and data structures
-available to implementers. They are split up over three major components, which
-have all their own source files (plus some common functionality).
-
-- [Sass Context](api-context.md) - Trigger and handle the main Sass compilation
-- [Sass Value](api-value.md) - Exchange values and its format with LibSass
-- [Sass Function](api-function.md) - Get invoked by LibSass for function statments
-- [Sass Importer](api-importer.md) - Get invoked by LibSass for @import statments
-
-### Basic usage
-
-First you will need to include the header file!
-This will automatically load all other headers too!
-
-```C
-#include "sass/context.h"
-```
-
-## Basic C Example
-
-```C
-#include <stdio.h>
-#include "sass/context.h"
-
-int main() {
- puts(libsass_version());
- return 0;
-}
-```
-
-```bash
-gcc -Wall version.c -lsass -o version && ./version
-```
-
-## More C Examples
-
-- [Sample code for Sass Context](api-context-example.md)
-- [Sample code for Sass Value](api-value-example.md)
-- [Sample code for Sass Function](api-function-example.md)
-- [Sample code for Sass Importer](api-importer-example.md)
-
-## Compiling your code
-
-The most important is your sass file (or string of sass code). With this, you
-will want to start a LibSass compiler. Here is some pseudocode describing the
-process. The compiler has two different modes: direct input as a string with
-`Sass_Data_Context` or LibSass will do file reading for you by using
-`Sass_File_Context`. See the code for a list of options available
-[Sass_Options](https://github.com/sass/libsass/blob/36feef0/include/sass/interface.h#L18)
-
-**Building a file compiler**
-
- context = sass_make_file_context("file.scss")
- options = sass_file_context_get_options(context)
- sass_option_set_precision(options, 1)
- sass_option_set_source_comments(options, true)
-
- sass_file_context_set_options(context, options)
-
- compiler = sass_make_file_compiler(sass_context)
- sass_compiler_parse(compiler)
- sass_compiler_execute(compiler)
-
- output = sass_context_get_output_string(context)
- // Retrieve errors during compilation
- error_status = sass_context_get_error_status(context)
- json_error = sass_context_get_error_json(context)
- // Release memory dedicated to the C compiler
- sass_delete_compiler(compiler)
-
-**Building a data compiler**
-
- context = sass_make_data_context("div { a { color: blue; } }")
- options = sass_data_context_get_options(context)
- sass_option_set_precision(options, 1)
- sass_option_set_source_comments(options, true)
-
- sass_data_context_set_options(context, options)
-
- compiler = sass_make_data_compiler(context)
- sass_compiler_parse(compiler)
- sass_compiler_execute(compiler)
-
- output = sass_context_get_output_string(context)
- // div a { color: blue; }
- // Retrieve errors during compilation
- error_status = sass_context_get_error_status(context)
- json_error = sass_context_get_error_json(context)
- // Release memory dedicated to the C compiler
- sass_delete_compiler(compiler)
-
-## Sass Context Internals
-
-Everything is stored in structs:
-
-```C
-struct Sass_Options;
-struct Sass_Context : Sass_Options;
-struct Sass_File_context : Sass_Context;
-struct Sass_Data_context : Sass_Context;
-```
-
-This mirrors very well how `libsass` uses these structures.
-
-- `Sass_Options` holds everything you feed in before the compilation. It also hosts
-`input_path` and `output_path` options, because they are used to generate/calculate
-relative links in source-maps. The `input_path` is shared with `Sass_File_Context`.
-- `Sass_Context` holds all the data returned by the compilation step.
-- `Sass_File_Context` is a specific implementation that requires no additional fields
-- `Sass_Data_Context` is a specific implementation that adds the `input_source` field
-
-Structs can be down-casted to access `context` or `options`!
-
-## Memory handling and life-cycles
-
-We keep memory around for as long as the main [context](api-context.md) object
-is not destroyed (`sass_delete_context`). LibSass will create copies of most
-inputs/options beside the main sass code. You need to allocate and fill that
-buffer before passing it to LibSass. You may also overtake memory management
-from libsass for certain return values (i.e. `sass_context_take_output_string`).
-
-```C
-// to allocate buffer to be filled
-void* sass_alloc_memory(size_t size);
-// to allocate a buffer from existing string
-char* sass_copy_c_string(const char* str);
-// to free overtaken memory when done
-void sass_free_memory(void* ptr);
-```
-
-## Miscellaneous API functions
-
-```C
-// Some convenient string helper function
-char* sass_string_unquote (const char* str);
-char* sass_string_quote (const char* str, const char quote_mark);
-
-// Get compiled libsass version
-const char* libsass_version(void);
-
-// Implemented sass language version
-// Hardcoded version 3.4 for time being
-const char* libsass_language_version(void);
-```
-
-## Common Pitfalls
-
-**input_path**
-
-The `input_path` is part of `Sass_Options`, but it also is the main option for
-`Sass_File_Context`. It is also used to generate relative file links in source-
-maps. Therefore it is pretty usefull to pass this information if you have a
-`Sass_Data_Context` and know the original path.
-
-**output_path**
-
-Be aware that `libsass` does not write the output file itself. This option
-merely exists to give `libsass` the proper information to generate links in
-source-maps. The file has to be written to the disk by the
-binding/implementation. If the `output_path` is omitted, `libsass` tries to
-extrapolate one from the `input_path` by replacing (or adding) the file ending
-with `.css`.
-
-## Error Codes
-
-The `error_code` is integer value which indicates the type of error that
-occurred inside the LibSass process. Following is the list of error codes along
-with the short description:
-
-* 1: normal errors like parsing or `eval` errors
-* 2: bad allocation error (memory error)
-* 3: "untranslated" C++ exception (`throw std::exception`)
-* 4: legacy string exceptions ( `throw const char*` or `std::string` )
-* 5: Some other unknown exception
-
-Although for the API consumer, error codes do not offer much value except
-indicating whether *any* error occurred during the compilation, it helps
-debugging the LibSass internal code paths.
-
-## Real-World Implementations
-
-The proof is in the pudding, so we have highlighted a few implementations that
-should be on par with the latest LibSass interface version. Some of them may not
-have all features implemented!
-
-1. [Perl Example](https://github.com/sass/perl-libsass/blob/master/lib/CSS/Sass.xs)
-2. [Go Example](https://godoc.org/github.com/wellington/go-libsass#example-Compiler--Stdin)
-3. [Node Example](https://github.com/sass/node-sass/blob/master/src/binding.cpp)
-
-## ABI forward compatibility
-
-We use a functional API to make dynamic linking more robust and future
-compatible. The API is not yet 100% stable, so we do not yet guarantee
-[ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html) forward
-compatibility.
-
-## Plugins (experimental)
-
-LibSass can load plugins from directories. Just define `plugin_path` on context
-options to load all plugins from the directories. To implement plugins, please
-consult the following example implementations.
-
-- https://github.com/mgreter/libsass-glob
-- https://github.com/mgreter/libsass-math
-- https://github.com/mgreter/libsass-digest
-
-## Internal Structs
-
-- [Sass Context Internals](api-context-internal.md)
-- [Sass Value Internals](api-value-internal.md)
-- [Sass Function Internals](api-function-internal.md)
-- [Sass Importer Internals](api-importer-internal.md)
diff --git a/node_modules/node-sass/src/libsass/docs/api-function-example.md b/node_modules/node-sass/src/libsass/docs/api-function-example.md
deleted file mode 100644
index 38608e1..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-function-example.md
+++ /dev/null
@@ -1,67 +0,0 @@
-## Example main.c
-
-```C
-#include <stdio.h>
-#include <stdint.h>
-#include "sass/context.h"
-
-union Sass_Value* call_fn_foo(const union Sass_Value* s_args, Sass_Function_Entry cb, struct Sass_Compiler* comp)
-{
- // get context/option struct associated with this compiler
- struct Sass_Context* ctx = sass_compiler_get_context(comp);
- struct Sass_Options* opts = sass_compiler_get_options(comp);
- // get information about previous importer entry from the stack
- Sass_Import_Entry import = sass_compiler_get_last_import(comp);
- const char* prev_abs_path = sass_import_get_abs_path(import);
- const char* prev_imp_path = sass_import_get_imp_path(import);
- // get the cookie from function descriptor
- void* cookie = sass_function_get_cookie(cb);
- // we actually abuse the void* to store an "int"
- return sass_make_number((intptr_t)cookie, "px");
-}
-
-int main( int argc, const char* argv[] )
-{
-
- // get the input file from first argument or use default
- const char* input = argc > 1 ? argv[1] : "styles.scss";
-
- // create the file context and get all related structs
- struct Sass_File_Context* file_ctx = sass_make_file_context(input);
- struct Sass_Context* ctx = sass_file_context_get_context(file_ctx);
- struct Sass_Options* ctx_opt = sass_context_get_options(ctx);
-
- // allocate a custom function caller
- Sass_Function_Entry fn_foo =
- sass_make_function("foo()", call_fn_foo, (void*)42);
-
- // create list of all custom functions
- Sass_Function_List fn_list = sass_make_function_list(1);
- sass_function_set_list_entry(fn_list, 0, fn_foo);
- sass_option_set_c_functions(ctx_opt, fn_list);
-
- // context is set up, call the compile step now
- int status = sass_compile_file_context(file_ctx);
-
- // print the result or the error to the stdout
- if (status == 0) puts(sass_context_get_output_string(ctx));
- else puts(sass_context_get_error_message(ctx));
-
- // release allocated memory
- sass_delete_file_context(file_ctx);
-
- // exit status
- return status;
-
-}
-```
-
-### Compile main.c
-
-```bash
-gcc -c main.c -o main.o
-gcc -o sample main.o -lsass
-echo "foo { margin: foo(); }" > foo.scss
-./sample foo.scss => "foo { margin: 42px }"
-```
-
diff --git a/node_modules/node-sass/src/libsass/docs/api-function-internal.md b/node_modules/node-sass/src/libsass/docs/api-function-internal.md
deleted file mode 100644
index 69d81d0..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-function-internal.md
+++ /dev/null
@@ -1,8 +0,0 @@
-```C
-// Struct to hold custom function callback
-struct Sass_Function {
- const char* signature;
- Sass_Function_Fn function;
- void* cookie;
-};
-```
diff --git a/node_modules/node-sass/src/libsass/docs/api-function.md b/node_modules/node-sass/src/libsass/docs/api-function.md
deleted file mode 100644
index 8d9d97c..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-function.md
+++ /dev/null
@@ -1,74 +0,0 @@
-Sass functions are used to define new custom functions callable by Sass code. They are also used to overload debug or error statements. You can also define a fallback function, which is called for every unknown function found in the Sass code. Functions get passed zero or more `Sass_Values` (a `Sass_List` value) and they must also return a `Sass_Value`. Return a `Sass_Error` if you want to signal an error.
-
-## Special signatures
-
-- `*` - Fallback implementation
-- `@warn` - Overload warn statements
-- `@error` - Overload error statements
-- `@debug` - Overload debug statements
-
-Note: The fallback implementation will be given the name of the called function as the first argument, before all the original function arguments. These features are pretty new and should be considered experimental.
-
-### Basic Usage
-
-```C
-#include "sass/functions.h"
-```
-
-## Sass Function API
-
-```C
-// Forward declaration
-struct Sass_Compiler;
-struct Sass_Function;
-
-// Typedef helpers for custom functions lists
-typedef struct Sass_Function (*Sass_Function_Entry);
-typedef struct Sass_Function* (*Sass_Function_List);
-// Typedef defining function signature and return type
-typedef union Sass_Value* (*Sass_Function_Fn)
- (const union Sass_Value*, Sass_Function_Entry cb, struct Sass_Compiler* compiler);
-
-// Creators for sass function list and function descriptors
-Sass_Function_List sass_make_function_list (size_t length);
-Sass_Function_Entry sass_make_function (const char* signature, Sass_Function_Fn cb, void* cookie);
-// In case you need to free them yourself
-void sass_delete_function (Sass_Function_Entry entry);
-void sass_delete_function_list (Sass_Function_List list);
-
-// Setters and getters for callbacks on function lists
-Sass_Function_Entry sass_function_get_list_entry(Sass_Function_List list, size_t pos);
-void sass_function_set_list_entry(Sass_Function_List list, size_t pos, Sass_Function_Entry cb);
-
-// Setters to insert an entry into the import list (you may also use [] access directly)
-// Since we are dealing with pointers they should have a guaranteed and fixed size
-void sass_import_set_list_entry (Sass_Import_List list, size_t idx, Sass_Import_Entry entry);
-Sass_Import_Entry sass_import_get_list_entry (Sass_Import_List list, size_t idx);
-
-// Getters for custom function descriptors
-const char* sass_function_get_signature (Sass_Function_Entry cb);
-Sass_Function_Fn sass_function_get_function (Sass_Function_Entry cb);
-void* sass_function_get_cookie (Sass_Function_Entry cb);
-
-// Getters for callee entry
-const char* sass_callee_get_name (Sass_Callee_Entry);
-const char* sass_callee_get_path (Sass_Callee_Entry);
-size_t sass_callee_get_line (Sass_Callee_Entry);
-size_t sass_callee_get_column (Sass_Callee_Entry);
-enum Sass_Callee_Type sass_callee_get_type (Sass_Callee_Entry);
-Sass_Env_Frame sass_callee_get_env (Sass_Callee_Entry);
-
-// Getters and Setters for environments (lexical, local and global)
-union Sass_Value* sass_env_get_lexical (Sass_Env_Frame, const char*);
-void sass_env_set_lexical (Sass_Env_Frame, const char*, union Sass_Value*);
-union Sass_Value* sass_env_get_local (Sass_Env_Frame, const char*);
-void sass_env_set_local (Sass_Env_Frame, const char*, union Sass_Value*);
-union Sass_Value* sass_env_get_global (Sass_Env_Frame, const char*);
-void sass_env_set_global (Sass_Env_Frame, const char*, union Sass_Value*);
-```
-
-### More links
-
-- [Sass Function Example](api-function-example.md)
-- [Sass Function Internal](api-function-internal.md)
-
diff --git a/node_modules/node-sass/src/libsass/docs/api-importer-example.md b/node_modules/node-sass/src/libsass/docs/api-importer-example.md
deleted file mode 100644
index d83bf26..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-importer-example.md
+++ /dev/null
@@ -1,112 +0,0 @@
-## Example importer.c
-
-```C
-#include <stdio.h>
-#include <string.h>
-#include "sass/context.h"
-
-Sass_Import_List sass_importer(const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp)
-{
- // get the cookie from importer descriptor
- void* cookie = sass_importer_get_cookie(cb);
- Sass_Import_List list = sass_make_import_list(2);
- char* local = sass_copy_c_string("local { color: green; }");
- char* remote = sass_copy_c_string("remote { color: red; }");
- list[0] = sass_make_import_entry("/tmp/styles.scss", local, 0);
- list[1] = sass_make_import_entry("http://www.example.com", remote, 0);
- return list;
-}
-
-int main( int argc, const char* argv[] )
-{
-
- // get the input file from first argument or use default
- const char* input = argc > 1 ? argv[1] : "styles.scss";
-
- // create the file context and get all related structs
- struct Sass_File_Context* file_ctx = sass_make_file_context(input);
- struct Sass_Context* ctx = sass_file_context_get_context(file_ctx);
- struct Sass_Options* ctx_opt = sass_context_get_options(ctx);
-
- // allocate custom importer
- Sass_Importer_Entry c_imp =
- sass_make_importer(sass_importer, 0, 0);
- // create list for all custom importers
- Sass_Importer_List imp_list = sass_make_importer_list(1);
- // put only the importer on to the list
- sass_importer_set_list_entry(imp_list, 0, c_imp);
- // register list on to the context options
- sass_option_set_c_importers(ctx_opt, imp_list);
- // context is set up, call the compile step now
- int status = sass_compile_file_context(file_ctx);
-
- // print the result or the error to the stdout
- if (status == 0) puts(sass_context_get_output_string(ctx));
- else puts(sass_context_get_error_message(ctx));
-
- // release allocated memory
- sass_delete_file_context(file_ctx);
-
- // exit status
- return status;
-
-}
-```
-
-Compile importer.c
-
-```bash
-gcc -c importer.c -o importer.o
-gcc -o importer importer.o -lsass
-echo "@import 'foobar';" > importer.scss
-./importer importer.scss
-```
-
-## Importer Behavior Examples
-
-```C
-Sass_Import_List importer(const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp) {
- // let LibSass handle the import request
- return NULL;
-}
-
-Sass_Import_List importer(const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp) {
- // let LibSass handle the request
- // swallows »@import "http://…"« pass-through
- // (arguably a bug)
- Sass_Import_List list = sass_make_import_list(1);
- list[0] = sass_make_import_entry(path, 0, 0);
- return list;
-}
-
-Sass_Import_List importer(const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp) {
- // return an error to halt execution
- Sass_Import_List list = sass_make_import_list(1);
- const char* message = "some error message";
- list[0] = sass_make_import_entry(path, 0, 0);
- sass_import_set_error(list[0], sass_copy_c_string(message), 0, 0);
- return list;
-}
-
-Sass_Import_List importer(const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp) {
- // let LibSass load the file identifed by the importer
- Sass_Import_List list = sass_make_import_list(1);
- list[0] = sass_make_import_entry("/tmp/file.scss", 0, 0);
- return list;
-}
-
-Sass_Import_List importer(const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp) {
- // completely hide the import
- // (arguably a bug)
- Sass_Import_List list = sass_make_import_list(0);
- return list;
-}
-
-Sass_Import_List importer(const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp) {
- // completely hide the import
- // (arguably a bug)
- Sass_Import_List list = sass_make_import_list(1);
- list[0] = sass_make_import_entry(0, 0, 0);
- return list;
-}
-```
diff --git a/node_modules/node-sass/src/libsass/docs/api-importer-internal.md b/node_modules/node-sass/src/libsass/docs/api-importer-internal.md
deleted file mode 100644
index 63d70fe..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-importer-internal.md
+++ /dev/null
@@ -1,20 +0,0 @@
-```C
-// External import entry
-struct Sass_Import {
- char* imp_path; // path as found in the import statement
- char *abs_path; // path after importer has resolved it
- char* source;
- char* srcmap;
- // error handling
- char* error;
- size_t line;
- size_t column;
-};
-
-// Struct to hold importer callback
-struct Sass_Importer {
- Sass_Importer_Fn importer;
- double priority;
- void* cookie;
-};
-```
diff --git a/node_modules/node-sass/src/libsass/docs/api-importer.md b/node_modules/node-sass/src/libsass/docs/api-importer.md
deleted file mode 100644
index b626500..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-importer.md
+++ /dev/null
@@ -1,86 +0,0 @@
-By using custom importers, Sass stylesheets can be implemented in any possible way, such as by being loaded via a remote server. Please note: this feature is experimental and is implemented differently than importers in Ruby Sass. Imports must be relative to the parent import context and therefore we need to pass this information to the importer callback. This is currently done by passing the complete import string/path of the previous import context.
-
-## Return Imports
-
-You actually have to return a list of imports, since some importers may want to import multiple files from one import statement (ie. a glob/star importer). The memory you pass with source and srcmap is taken over by LibSass and freed automatically when the import is done. You are also allowed to return `0` instead of a list, which will tell LibSass to handle the import by itself (as if no custom importer was in use).
-
-```C
-Sass_Import_Entry* rv = sass_make_import_list(1);
-rv[0] = sass_make_import(rel, abs, source, srcmap);
-```
-
-Every import will then be included in LibSass. You are allowed to only return a file path without any loaded source. This way you can ie. implement rewrite rules for import paths and leave the loading part for LibSass.
-
-Please note that LibSass doesn't use the srcmap parameter yet. It has been added to not deprecate the C-API once support has been implemented. It will be used to re-map the actual sourcemap with the provided ones.
-
-### Basic Usage
-
-```C
-#include "sass/functions.h"
-```
-
-## Sass Importer API
-
-```C
-// Forward declaration
-struct Sass_Import;
-
-// Forward declaration
-struct Sass_C_Import_Descriptor;
-
-// Typedef defining the custom importer callback
-typedef struct Sass_C_Import_Descriptor (*Sass_C_Import_Callback);
-// Typedef defining the importer c function prototype
-typedef Sass_Import_Entry* (*Sass_C_Import_Fn) (const char* url, const char* prev, void* cookie);
-
-// Creators for custom importer callback (with some additional pointer)
-// The pointer is mostly used to store the callback into the actual function
-Sass_C_Import_Callback sass_make_importer (Sass_C_Import_Fn, void* cookie);
-
-// Getters for import function descriptors
-Sass_C_Import_Fn sass_import_get_function (Sass_C_Import_Callback fn);
-void* sass_import_get_cookie (Sass_C_Import_Callback fn);
-
-// Deallocator for associated memory
-void sass_delete_importer (Sass_C_Import_Callback fn);
-
-// Creator for sass custom importer return argument list
-Sass_Import_Entry* sass_make_import_list (size_t length);
-// Creator for a single import entry returned by the custom importer inside the list
-Sass_Import_Entry sass_make_import_entry (const char* path, char* source, char* srcmap);
-Sass_Import_Entry sass_make_import (const char* rel, const char* abs, char* source, char* srcmap);
-
-// set error message to abort import and to print out a message (path from existing object is used in output)
-Sass_Import_Entry sass_import_set_error(Sass_Import_Entry import, const char* message, size_t line, size_t col);
-
-// Setters to insert an entry into the import list (you may also use [] access directly)
-// Since we are dealing with pointers they should have a guaranteed and fixed size
-void sass_import_set_list_entry (Sass_Import_Entry* list, size_t idx, Sass_Import_Entry entry);
-Sass_Import_Entry sass_import_get_list_entry (Sass_Import_Entry* list, size_t idx);
-
-// Getters for import entry
-const char* sass_import_get_imp_path (Sass_Import_Entry);
-const char* sass_import_get_abs_path (Sass_Import_Entry);
-const char* sass_import_get_source (Sass_Import_Entry);
-const char* sass_import_get_srcmap (Sass_Import_Entry);
-// Explicit functions to take ownership of these items
-// The property on our struct will be reset to NULL
-char* sass_import_take_source (Sass_Import_Entry);
-char* sass_import_take_srcmap (Sass_Import_Entry);
-
-// Getters for import error entries
-size_t sass_import_get_error_line (Sass_Import_Entry);
-size_t sass_import_get_error_column (Sass_Import_Entry);
-const char* sass_import_get_error_message (Sass_Import_Entry);
-
-// Deallocator for associated memory (incl. entries)
-void sass_delete_import_list (Sass_Import_Entry*);
-// Just in case we have some stray import structs
-void sass_delete_import (Sass_Import_Entry);
-```
-
-### More links
-
-- [Sass Importer Example](api-importer-example.md)
-- [Sass Importer Internal](api-importer-internal.md)
-
diff --git a/node_modules/node-sass/src/libsass/docs/api-value-example.md b/node_modules/node-sass/src/libsass/docs/api-value-example.md
deleted file mode 100644
index 690654e..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-value-example.md
+++ /dev/null
@@ -1,55 +0,0 @@
-## Example operation.c
-
-```C
-#include <stdio.h>
-#include <string.h>
-#include "sass/values.h"
-
-int main( int argc, const char* argv[] )
-{
-
- // create two new sass values to be added
- union Sass_Value* string = sass_make_string("String");
- union Sass_Value* number = sass_make_number(42, "nits");
-
- // invoke the add operation which returns a new sass value
- union Sass_Value* total = sass_value_op(ADD, string, number);
-
- // no further use for the two operands
- sass_delete_value(string);
- sass_delete_value(number);
-
- // this works since libsass will always return a
- // string for add operations with a string as the
- // left hand side. But you should never rely on it!
- puts(sass_string_get_value(total));
-
- // invoke stringification (uncompressed with precision of 5)
- union Sass_Value* result = sass_value_stringify(total, false, 5);
-
- // no further use for the sum
- sass_delete_value(total);
-
- // print the result - you may want to make
- // sure result is indeed a string, altough
- // stringify guarantees to return a string
- // if (sass_value_is_string(result)) {}
- // really depends on your level of paranoia
- puts(sass_string_get_value(result));
-
- // finally free result
- sass_delete_value(result);
-
- // exit status
- return 0;
-
-}
-```
-
-## Compile operation.c
-
-```bash
-gcc -c operation.c -o operation.o
-gcc -o operation operation.o -lsass
-./operation # => String42nits
-```
diff --git a/node_modules/node-sass/src/libsass/docs/api-value-internal.md b/node_modules/node-sass/src/libsass/docs/api-value-internal.md
deleted file mode 100644
index fed4022..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-value-internal.md
+++ /dev/null
@@ -1,76 +0,0 @@
-```C
-struct Sass_Unknown {
- enum Sass_Tag tag;
-};
-
-struct Sass_Boolean {
- enum Sass_Tag tag;
- bool value;
-};
-
-struct Sass_Number {
- enum Sass_Tag tag;
- double value;
- char* unit;
-};
-
-struct Sass_Color {
- enum Sass_Tag tag;
- double r;
- double g;
- double b;
- double a;
-};
-
-struct Sass_String {
- enum Sass_Tag tag;
- char* value;
-};
-
-struct Sass_List {
- enum Sass_Tag tag;
- enum Sass_Separator separator;
- size_t length;
- // null terminated "array"
- union Sass_Value** values;
-};
-
-struct Sass_Map {
- enum Sass_Tag tag;
- size_t length;
- struct Sass_MapPair* pairs;
-};
-
-struct Sass_Null {
- enum Sass_Tag tag;
-};
-
-struct Sass_Error {
- enum Sass_Tag tag;
- char* message;
-};
-
-struct Sass_Warning {
- enum Sass_Tag tag;
- char* message;
-};
-
-union Sass_Value {
- struct Sass_Unknown unknown;
- struct Sass_Boolean boolean;
- struct Sass_Number number;
- struct Sass_Color color;
- struct Sass_String string;
- struct Sass_List list;
- struct Sass_Map map;
- struct Sass_Null null;
- struct Sass_Error error;
- struct Sass_Warning warning;
-};
-
-struct Sass_MapPair {
- union Sass_Value* key;
- union Sass_Value* value;
-};
-```
-
diff --git a/node_modules/node-sass/src/libsass/docs/api-value.md b/node_modules/node-sass/src/libsass/docs/api-value.md
deleted file mode 100644
index d786258..0000000
--- a/node_modules/node-sass/src/libsass/docs/api-value.md
+++ /dev/null
@@ -1,154 +0,0 @@
-`Sass_Values` are used to pass values and their types between the implementer
-and LibSass. Sass knows various different value types (including nested arrays
-and hash-maps). If you implement a binding to another programming language, you
-have to find a way to [marshal][1] (convert) `Sass_Values` between the target
-language and C. `Sass_Values` are currently only used by custom functions, but
-it should also be possible to use them without a compiler context.
-
-[1]: https://en.wikipedia.org/wiki/Marshalling_%28computer_science%29
-
-### Basic Usage
-
-```C
-#include "sass/values.h"
-```
-
-```C
-// Type for Sass values
-enum Sass_Tag {
- SASS_BOOLEAN,
- SASS_NUMBER,
- SASS_COLOR,
- SASS_STRING,
- SASS_LIST,
- SASS_MAP,
- SASS_NULL,
- SASS_ERROR,
- SASS_WARNING
-};
-
-// Tags for denoting Sass list separators
-enum Sass_Separator {
- SASS_COMMA,
- SASS_SPACE,
- // only used internally to represent a hash map before evaluation
- // otherwise we would be too early to check for duplicate keys
- SASS_HASH
-};
-
-// Value Operators
-enum Sass_OP {
- AND, OR, // logical connectives
- EQ, NEQ, GT, GTE, LT, LTE, // arithmetic relations
- ADD, SUB, MUL, DIV, MOD, // arithmetic functions
- NUM_OPS // so we know how big to make the op table
-};
-```
-
-### Sass Value API
-
-```C
-// Forward declaration
-union Sass_Value;
-
-// Creator functions for all value types
-union Sass_Value* sass_make_null (void);
-union Sass_Value* sass_make_boolean (bool val);
-union Sass_Value* sass_make_string (const char* val);
-union Sass_Value* sass_make_qstring (const char* val);
-union Sass_Value* sass_make_number (double val, const char* unit);
-union Sass_Value* sass_make_color (double r, double g, double b, double a);
-union Sass_Value* sass_make_list (size_t len, enum Sass_Separator sep, bool is_bracketed);
-union Sass_Value* sass_make_map (size_t len);
-union Sass_Value* sass_make_error (const char* msg);
-union Sass_Value* sass_make_warning (const char* msg);
-
-// Generic destructor function for all types
-// Will release memory of all associated Sass_Values
-// Means we will delete recursively for lists and maps
-void sass_delete_value (union Sass_Value* val);
-
-// Make a deep cloned copy of the given sass value
-union Sass_Value* sass_clone_value (const union Sass_Value* val);
-
-// Stringify a Sass_Values and also return the result as a Sass_Value (of type STRING)
-union Sass_Value* sass_value_stringify (const union Sass_Value* a, bool compressed, int precision);
-
-// Execute an operation for two Sass_Values and return the result as a Sass_Value too
-union Sass_Value* sass_value_op (enum Sass_OP op, const union Sass_Value* a, const union Sass_Value* b);
-
-// Return the sass tag for a generic sass value
-// Check is needed before accessing specific values!
-enum Sass_Tag sass_value_get_tag (const union Sass_Value* v);
-
-// Check value to be of a specific type
-// Can also be used before accessing properties!
-bool sass_value_is_null (const union Sass_Value* v);
-bool sass_value_is_number (const union Sass_Value* v);
-bool sass_value_is_string (const union Sass_Value* v);
-bool sass_value_is_boolean (const union Sass_Value* v);
-bool sass_value_is_color (const union Sass_Value* v);
-bool sass_value_is_list (const union Sass_Value* v);
-bool sass_value_is_map (const union Sass_Value* v);
-bool sass_value_is_error (const union Sass_Value* v);
-bool sass_value_is_warning (const union Sass_Value* v);
-
-// Getters and setters for Sass_Number
-double sass_number_get_value (const union Sass_Value* v);
-void sass_number_set_value (union Sass_Value* v, double value);
-const char* sass_number_get_unit (const union Sass_Value* v);
-void sass_number_set_unit (union Sass_Value* v, char* unit);
-
-// Getters and setters for Sass_String
-const char* sass_string_get_value (const union Sass_Value* v);
-void sass_string_set_value (union Sass_Value* v, char* value);
-bool sass_string_is_quoted(const union Sass_Value* v);
-void sass_string_set_quoted(union Sass_Value* v, bool quoted);
-
-// Getters and setters for Sass_Boolean
-bool sass_boolean_get_value (const union Sass_Value* v);
-void sass_boolean_set_value (union Sass_Value* v, bool value);
-
-// Getters and setters for Sass_Color
-double sass_color_get_r (const union Sass_Value* v);
-void sass_color_set_r (union Sass_Value* v, double r);
-double sass_color_get_g (const union Sass_Value* v);
-void sass_color_set_g (union Sass_Value* v, double g);
-double sass_color_get_b (const union Sass_Value* v);
-void sass_color_set_b (union Sass_Value* v, double b);
-double sass_color_get_a (const union Sass_Value* v);
-void sass_color_set_a (union Sass_Value* v, double a);
-
-// Getter for the number of items in list
-size_t sass_list_get_length (const union Sass_Value* v);
-// Getters and setters for Sass_List
-enum Sass_Separator sass_list_get_separator (const union Sass_Value* v);
-void sass_list_set_separator (union Sass_Value* v, enum Sass_Separator value);
-bool sass_list_get_is_bracketed (const union Sass_Value* v);
-void sass_list_set_is_bracketed (union Sass_Value* v, bool value);
-// Getters and setters for Sass_List values
-union Sass_Value* sass_list_get_value (const union Sass_Value* v, size_t i);
-void sass_list_set_value (union Sass_Value* v, size_t i, union Sass_Value* value);
-
-// Getter for the number of items in map
-size_t sass_map_get_length (const union Sass_Value* v);
-// Getters and setters for Sass_Map keys and values
-union Sass_Value* sass_map_get_key (const union Sass_Value* v, size_t i);
-void sass_map_set_key (union Sass_Value* v, size_t i, union Sass_Value*);
-union Sass_Value* sass_map_get_value (const union Sass_Value* v, size_t i);
-void sass_map_set_value (union Sass_Value* v, size_t i, union Sass_Value*);
-
-// Getters and setters for Sass_Error
-char* sass_error_get_message (const union Sass_Value* v);
-void sass_error_set_message (union Sass_Value* v, char* msg);
-
-// Getters and setters for Sass_Warning
-char* sass_warning_get_message (const union Sass_Value* v);
-void sass_warning_set_message (union Sass_Value* v, char* msg);
-```
-
-### More links
-
-- [Sass Value Example](api-value-example.md)
-- [Sass Value Internal](api-value-internal.md)
-
diff --git a/node_modules/node-sass/src/libsass/docs/build-on-darwin.md b/node_modules/node-sass/src/libsass/docs/build-on-darwin.md
deleted file mode 100644
index 119a535..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-on-darwin.md
+++ /dev/null
@@ -1,27 +0,0 @@
-To install LibSass, make sure the OS X build tools are installed:
-
- xcode-select --install
-
-## Homebrew
-
-To install homebrew, see [http://brew.sh](http://brew.sh)
-
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
-You can install the latest version of LibSass quite easily with brew.
-
- brew install --HEAD libsass
-
-To update this, do:
-
- brew reinstall --HEAD libsass
-
-Brew will build static and shared libraries, and a `libsass.pc` file in `/usr/local/lib/pkgconfig`.
-
-To use `libsass.pc`, make sure this path is in your `PKG_CONFIG_PATH`
-
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
-
-## Manually
-
-See the linux instructions [Building-with-autotools](build-with-autotools.md) or [Building-with-makefiles](build-with-makefiles.md)
diff --git a/node_modules/node-sass/src/libsass/docs/build-on-gentoo.md b/node_modules/node-sass/src/libsass/docs/build-on-gentoo.md
deleted file mode 100644
index 601b1fe..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-on-gentoo.md
+++ /dev/null
@@ -1,55 +0,0 @@
-Here are two ebuilds to compile LibSass and sassc on gentoo linux. If you do not know how to use these ebuilds, you should probably read the gentoo wiki page about [portage overlays](http://wiki.gentoo.org/wiki/Overlay).
-
-## www-misc/libsass/libsass-9999.ebuild
-```ebuild
-EAPI=4
-
-inherit eutils git-2 autotools
-
-DESCRIPTION="A C/C++ implementation of a Sass compiler."
-HOMEPAGE="http://libsass.org/"
-EGIT_PROJECT='libsass'
-EGIT_REPO_URI="https://github.com/sass/libsass.git"
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS=""
-IUSE=""
-DEPEND=""
-RDEPEND="${DEPEND}"
-DEPEND="${DEPEND}"
-
-pkg_pretend() {
- # older gcc is not supported
- local major=$(gcc-major-version)
- local minor=$(gcc-minor-version)
- [[ "${MERGE_TYPE}" != "binary" && ( $major > 4 || ( $major == 4 && $minor &lt; 5 ) ) ]] && \
- die "Sorry, but gcc earlier than 4.5 will not work for LibSass."
-}
-
-src_prepare() {
- eautoreconf
-}
-```
-
-## www-misc/sassc/sassc-9999.ebuild
-```ebuild
-EAPI=4
-
-inherit eutils git-2 autotools
-
-DESCRIPTION="Command Line Tool for LibSass."
-HOMEPAGE="http://libsass.org/"
-EGIT_PROJECT='sassc'
-EGIT_REPO_URI="https://github.com/sass/sassc.git"
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS=""
-IUSE=""
-DEPEND="www-misc/libsass"
-RDEPEND="${DEPEND}"
-DEPEND="${DEPEND}"
-
-src_prepare() {
- eautoreconf
-}
-```
diff --git a/node_modules/node-sass/src/libsass/docs/build-on-windows.md b/node_modules/node-sass/src/libsass/docs/build-on-windows.md
deleted file mode 100644
index 0afaa2e..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-on-windows.md
+++ /dev/null
@@ -1,139 +0,0 @@
-We support builds via MingGW and via Visual Studio Community 2013.
-Both should be considered experimental (MinGW was better tested)!
-
-## Building via MingGW (makefiles)
-
-First grab the latest [MinGW for windows][1] installer. Once it is installed, you can click on continue or open the Installation Manager via `bin\mingw-get.exe`.
-
-You need to have the following components installed:
-![Visualization of components installed in the interface](https://cloud.githubusercontent.com/assets/282293/5525466/947bf396-89e6-11e4-841d-4aa916f14de1.png)
-
-Next we need to install [git for windows][2]. You probably want to check the option to add it to the global path, but you do not need to install the unix tools.
-
-If you want to run the spec test-suite you also need [ruby][3] and a few gems available. Grab the [latest installer][3] and make sure to add it the global path. Then install the missing gems:
-
-```bash
-gem install minitest
-```
-
-### Mount the mingw root directory
-
-As mentioned in the [MinGW Getting Started](http://www.mingw.org/wiki/Getting_Started#toc5) guide, you should edit `C:\MinGW\msys\1.0\etc\fstab` to contain the following line:
-
-```
-C:\MinGW /mingw
-```
-
-### Starting a "MingGW" console
-
-Create a batch file with this content:
-```bat
-@echo off
-set PATH=C:\MinGW\bin;%PATH%
-REM only needed if not already available
-set PATH=%PROGRAMFILES%\git\bin;%PATH%
-REM C:\MinGW\msys\1.0\msys.bat
-cmd
-```
-
-Execute it and make sure these commands can be called: `git`, `mingw32-make`, `rm` and `gcc`! Once this is all set, you should be ready to compile `libsass`!
-
-### Get the sources
-
-```bash
-# using git is preferred
-git clone https://github.com/sass/libsass.git
-# only needed for sassc and/or testsuite
-git clone https://github.com/sass/sassc.git libsass/sassc
-git clone https://github.com/sass/sass-spec.git libsass/sass-spec
-```
-
-### Decide for static or shared library
-
-`libsass` can be built and linked as a `static` or as a `shared` library. The default is `static`. To change it you can set the `BUILD` environment variable:
-
-```bat
-set BUILD="shared"
-```
-
-### Compile the library
-```bash
-mingw32-make -C libsass
-```
-
-### Results can be found in
-```bash
-$ ls libsass/lib
-libsass.a libsass.dll libsass.so
-```
-
-### Run the spec test-suite
-```bash
-mingw32-make -C libsass test_build
-```
-
-## Building via MingGW 64bit (makefiles)
-Building libass to dll on window 64bit.
-
-+ downloads [MinGW64 for windows7 64bit](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z/download) , and unzip to "C:\mingw64".
-
-+ Create a batch file with this content:
-
-```bat
-@echo off
-set PATH=C:\mingw64\bin;%PATH%
-set CC=gcc
-REM only needed if not already available
-set PATH=%PROGRAMFILES%\Git\bin;%PATH%
-REM C:\MinGW\msys\1.0\msys.bat
-cmd
-```
-
-+ By default , mingw64 dll will depends on "​m​i​n​g​w​m​1​0​.​d​l​l​、​ ​l​i​b​g​c​c​_​s​_​d​w​2​-​1​.​d​l​l​" , we can modify Makefile to fix this:(add "-static")
-
-``` bash
-lib/libsass.dll: $(COBJECTS) $(OBJECTS) $(RCOBJECTS)
- $(MKDIR) lib
- $(CXX) -shared $(LDFLAGS) -o $@ $(COBJECTS) $(OBJECTS) $(RCOBJECTS) $(LDLIBS) -s -static -Wl,--subsystem,windows,--out-implib,lib/libsass.a
-```
-
-+ Compile the library
-
-```bash
-mingw32-make -C libsass
-```
-
-By the way , if you are using java jna , [JNAerator](http://jnaerator.googlecode.com/) is a good tool.
-
-## Building via Visual Studio Community 2013
-
-Open a Visual Studio 2013 command prompt:
-- `VS2013 x86 Native Tools Command Prompt`
-
-Note: When I installed the community edition, I only got the 2012 command prompts. I copied them from the Startmenu to the Desktop and adjusted the paths from `Visual Studio 11.0` to `Visual Studio 12.0`. Since `libsass` uses some `C++11` features, you need at least a MSVC 2013 compiler (v120).
-
-### Get the source
-```bash
-# using git is preferred
-git clone https://github.com/sass/libsass.git
-git clone https://github.com/sass/sassc.git libsass/sassc
-# only needed if you want to run the testsuite
-git clone https://github.com/sass/sass-spec.git libsass/sass-spec
-```
-
-### Compile sassc
-
-Sometimes `msbuild` seems not available from the command prompt. Just search for it and add it to the global path. It seems to be included in the .net folders too.
-
-```bat
-cd libsass
-REM set PATH=%PATH%;%PROGRAMFILES%\MSBuild\12.0\Bin
-msbuild /m:4 /p:Configuration=Release win\libsass.sln
-REM running the spec test-suite manually (needs ruby and minitest gem)
-ruby sass-spec\sass-spec.rb -V 3.5 -c win\bin\sassc.exe -s --impl libsass sass-spec/spec
-cd ..
-```
-
-[1]: http://sourceforge.net/projects/mingw/files/latest/download?source=files
-[2]: https://msysgit.github.io/
-[3]: http://rubyinstaller.org/
diff --git a/node_modules/node-sass/src/libsass/docs/build-shared-library.md b/node_modules/node-sass/src/libsass/docs/build-shared-library.md
deleted file mode 100644
index 3c143b4..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-shared-library.md
+++ /dev/null
@@ -1,35 +0,0 @@
-This page is mostly intended for people that want to build a system library that gets distributed via RPMs or other means. This is currently in a experimental phase, as we currently do not really guarantee any ABI forward compatibility. The C API was rewritten to make this possible in the future, but we want to wait some more time till we can call this final and stable.
-
-Building via autotools
---
-
-You want to build a system library only via autotools, since it will create the proper `libtool` files to make it loadable on multiple systems. We hope this works correctly, but nobody of the `libsass` core team has much knowledge in this area. Therefore we are open for comments or improvements by people that have more experience in that matter (like package maintainers from various linux distributions).
-
-```bash
-apt-get install autoconf libtool
-git clone https://github.com/sass/libsass.git
-cd libsass
-autoreconf --force --install
-./configure \
- --disable-tests \
- --disable-static \
- --enable-shared \
- --prefix=/usr
-make -j5 install
-cd ..
-```
-
-This should install these files
-```bash
-# $ ls -la /usr/lib/libsass.*
-/usr/lib/libsass.la
-/usr/lib/libsass.so -> libsass.so.0.0.9
-/usr/lib/libsass.so.0 -> libsass.so.0.0.9
-/usr/lib/libsass.so.0.0.9
-# $ ls -la /usr/include/sass*
-/usr/include/sass.h
-/usr/include/sass2scss.h
-/usr/include/sass/context.h
-/usr/include/sass/functions.h
-/usr/include/sass/values.h
-```
diff --git a/node_modules/node-sass/src/libsass/docs/build-with-autotools.md b/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
deleted file mode 100644
index a48ed18..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
+++ /dev/null
@@ -1,78 +0,0 @@
-### Get the sources
-```bash
-# using git is preferred
-git clone https://github.com/sass/libsass.git
-# only needed for sassc and/or testsuite
-git clone https://github.com/sass/sassc.git libsass/sassc
-git clone https://github.com/sass/sass-spec.git libsass/sass-spec
-```
-
-### Prerequisites
-
-In order to run autotools you need a few tools installed on your system.
-```bash
-yum install automake libtool # RedHat Linux
-emerge -a automake libtool # Gentoo Linux
-pkgin install automake libtool # SmartOS
-```
-
-
-### Create configure script
-```bash
-cd libsass
-autoreconf --force --install
-cd ..
-```
-
-### Create custom makefiles
-```bash
-cd libsass
-./configure \
- --disable-tests \
- --disable-shared \
- --prefix=/usr
-cd ..
-```
-
-### Build the library
-```bash
-make -C libsass -j5
-```
-
-### Install the library
-The library will be installed to the location given as `prefix` to `configure`. This is standard behavior for autotools and not `libsass` specific.
-```bash
-make -C libsass -j5 install
-```
-
-### Configure options
-The `configure` script is created by autotools. To get an overview of available options you can call `./configure --help`. When you execute this script, it will create specific makefiles, which you then use via the regular make command.
-
-There are some `libsass` specific options:
-
-```
-Optional Features:
- --enable-tests enable testing the build
- --enable-coverage enable coverage report for test suite
- --enable-shared build shared libraries [default=yes]
- --enable-static build static libraries [default=yes]
-
-Optional Packages:
- --with-sassc-dir=<dir> specify directory of sassc sources for
- testing (default: sassc)
- --with-sass-spec-dir=<dir> specify directory of sass-spec for testing
- (default: sass-spec)
-```
-
-### Build sassc and run spec test-suite
-
-```bash
-cd libsass
-autoreconf --force --install
-./configure \
- --enable-tests \
- --enable-shared \
- --prefix=/usr
-make -j5 test_build
-cd ..
-```
diff --git a/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md b/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
deleted file mode 100644
index 7ae2e33..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-with-makefiles.md
+++ /dev/null
@@ -1,68 +0,0 @@
-### Get the sources
-```bash
-# using git is preferred
-git clone https://github.com/sass/libsass.git
-# only needed for sassc and/or testsuite
-git clone https://github.com/sass/sassc.git libsass/sassc
-git clone https://github.com/sass/sass-spec.git libsass/sass-spec
-```
-
-### Decide for static or shared library
-
-`libsass` can be built and linked as a `static` or as a `shared` library. The default is `static`. To change it you can set the `BUILD` environment variable:
-
-```bash
-export BUILD="shared"
-```
-
-Alternatively you can also define it directly when calling make:
-
-```bash
-BUILD="shared" make ...
-```
-
-### Compile the library
-```bash
-make -C libsass -j5
-```
-
-### Results can be found in
-```bash
-$ ls libsass/lib
-libsass.a libsass.so
-```
-
-### Install onto the system
-
-We recommend to use [autotools to install](build-with-autotools.md) libsass onto the
-system, since that brings all the benefits of using libtools as the main install method.
-If you still want to install libsass via the makefile, you need to make sure that gnu
-`install` utility (or compatible) is installed on your system.
-```bash
-yum install coreutils # RedHat Linux
-emerge -a coreutils # Gentoo Linux
-pkgin install coreutils # SmartOS
-```
-
-You can set the install location by setting `PREFIX`
-```bash
-PREFIX="/opt/local" make install
-```
-
-
-### Compling sassc
-
-```bash
-# Let build know library location
-export SASS_LIBSASS_PATH="`pwd`/libsass"
-# Invokes the sassc makefile
-make -C libsass -j5 sassc
-```
-
-### Run the spec test-suite
-
-```bash
-# needs ruby available
-# also gem install minitest
-make -C libsass -j5 test_build
-```
diff --git a/node_modules/node-sass/src/libsass/docs/build-with-mingw.md b/node_modules/node-sass/src/libsass/docs/build-with-mingw.md
deleted file mode 100644
index 416507f..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-with-mingw.md
+++ /dev/null
@@ -1,107 +0,0 @@
-## Building LibSass with MingGW (makefiles)
-
-First grab the latest [MinGW for windows][1] installer. Once it is installed, you can click on continue or open the Installation Manager via `bin\mingw-get.exe`.
-
-You need to have the following components installed:
-![](https://cloud.githubusercontent.com/assets/282293/5525466/947bf396-89e6-11e4-841d-4aa916f14de1.png)
-
-Next we need to install [git for windows][2]. You probably want to check the option to add it to the global path, but you do not need to install the unix tools.
-
-If you want to run the spec test-suite you also need [ruby][3] and a few gems available. Grab the [latest installer][3] and make sure to add it the global path. Then install the missing gems:
-
-```bash
-gem install minitest
-```
-
-### Mount the mingw root directory
-
-As mentioned in the [MinGW Getting Started](http://www.mingw.org/wiki/Getting_Started#toc5) guide, you should edit `C:\MinGW\msys\1.0\etc\fstab` to contain the following line:
-
-```
-C:\MinGW /mingw
-```
-
-### Starting a "MingGW" console
-
-Create a batch file with this content:
-```bat
-@echo off
-set PATH=C:\MinGW\bin;%PATH%
-REM only needed if not already available
-set PATH=%PROGRAMFILES%\git\bin;%PATH%
-REM C:\MinGW\msys\1.0\msys.bat
-cmd
-```
-
-Execute it and make sure these commands can be called: `git`, `mingw32-make`, `rm` and `gcc`! Once this is all set, you should be ready to compile `libsass`!
-
-### Get the sources
-
-```bash
-# using git is preferred
-git clone https://github.com/sass/libsass.git
-# only needed for sassc and/or testsuite
-git clone https://github.com/sass/sassc.git libsass/sassc
-git clone https://github.com/sass/sass-spec.git libsass/sass-spec
-```
-
-### Decide for static or shared library
-
-`libsass` can be built and linked as a `static` or as a `shared` library. The default is `static`. To change it you can set the `BUILD` environment variable:
-
-```bat
-set BUILD="shared"
-```
-
-### Compile the library
-```bash
-mingw32-make -C libsass
-```
-
-### Results can be found in
-```bash
-$ ls libsass/lib
-libsass.a libsass.dll libsass.so
-```
-
-### Run the spec test-suite
-```bash
-mingw32-make -C libsass test_build
-```
-
-## Building via MingGW 64bit (makefiles)
-Building libass to dll on window 64bit.
-
-Download [MinGW64 for windows7 64bit](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v3-rev0.7z/download) and unzip to "C:\mingw64".
-
-Create a batch file with this content:
-
-```bat
-@echo off
-set PATH=C:\mingw64\bin;%PATH%
-set CC=gcc
-REM only needed if not already available
-set PATH=%PROGRAMFILES%\Git\bin;%PATH%
-REM C:\MinGW\msys\1.0\msys.bat
-cmd
-```
-
-By default, mingw64 dll will depends on "​m​i​n​g​w​m​1​0​.​d​l​l​、​ ​l​i​b​g​c​c​_​s​_​d​w​2​-​1​.​d​l​l​", we can modify Makefile to fix this:(add "-static")
-
-``` bash
-lib/libsass.dll: $(COBJECTS) $(OBJECTS) $(RCOBJECTS)
- $(MKDIR) lib
- $(CXX) -shared $(LDFLAGS) -o $@ $(COBJECTS) $(OBJECTS) $(RCOBJECTS) $(LDLIBS) -s -static -Wl,--subsystem,windows,--out-implib,lib/libsass.a
-```
-
-Compile the library
-
-```bash
-mingw32-make -C libsass
-```
-
-By the way, if you are using java jna, [JNAerator](http://jnaerator.googlecode.com/) is a good tool.
-
-[1]: http://sourceforge.net/projects/mingw/files/latest/download?source=files
-[2]: https://msysgit.github.io/
-[3]: http://rubyinstaller.org/
diff --git a/node_modules/node-sass/src/libsass/docs/build-with-visual-studio.md b/node_modules/node-sass/src/libsass/docs/build-with-visual-studio.md
deleted file mode 100644
index 275b917..0000000
--- a/node_modules/node-sass/src/libsass/docs/build-with-visual-studio.md
+++ /dev/null
@@ -1,90 +0,0 @@
-## Building LibSass with Visual Studio
-
-### Requirements:
-
-The minimum requirement to build LibSass with Visual Studio is "Visual Studio 2013 Express for Desktop".
-
-Additionally, it is recommended to have `git` installed and available in `PATH`, so to deduce the `libsass` version information. For instance, if GitHub for Windows (https://windows.github.com/) is installed, the `PATH` will have an entry resembling: `X:\Users\<YOUR_NAME>\AppData\Local\GitHub\PortableGit_<SOME_GUID>\cmd\` (where `X` is the drive letter of system drive). If `git` is not available, inquiring the LibSass version will result in `[NA]`.
-
-### Build Steps:
-
-#### From Visual Studio:
-
-On opening the `win\libsass.sln` solution and build (Ctrl+Shift+B) to build `libsass.dll`.
-
-To Build LibSass as a static Library, it is recommended to set an environment variable `LIBSASS_STATIC_LIB` before launching the project:
-
-```cmd
-cd path\to\libsass
-SET LIBSASS_STATIC_LIB=1
-::
-:: or in PowerShell:
-:: $env:LIBSASS_STATIC_LIB=1
-::
-win\libsass.sln
-```
-
-Visual Studio will form the filtered source tree as shown below:
-
-![image](https://cloud.githubusercontent.com/assets/3840695/9298985/aae9e072-44bf-11e5-89eb-e7995c098085.png)
-
-`Header Files` contains the .h and .hpp files, while `Source Files` covers `.c` and `.cpp`. The other used headers/sources will appear under `External Dependencies`.
-
-If there is a LibSass code file appearing under External Dependencies, it can be changed by altering the `win\libsass.vcxproj.filters` file or dragging in Solution Explorer.
-
-#### From Command Prompt:
-
-Notice that in the following commands:
-
-* If the platform is 32-bit Windows, replace `ProgramFiles(x86)` with `ProgramFiles`.
-* To build with Visual Studio 2015, replace `12.0` with `14.0` in the aforementioned command.
-
-Open a command prompt:
-
-To build dynamic/shared library (`libsass.dll`):
-
-```cmd
-:: debug build:
-"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild" win\libsass.sln
-
-:: release build:
-"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild" win\libsass.sln ^
-/p:Configuration=Release
-```
-
-To build static library (`libsass.lib`):
-
-```cmd
-:: debug build:
-"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild" win\libsass.sln ^
-/p:LIBSASS_STATIC_LIB=1
-
-:: release build:
-"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild" win\libsass.sln ^
-/p:LIBSASS_STATIC_LIB=1 /p:Configuration=Release
-```
-
-#### From PowerShell:
-
-To build dynamic/shared library (`libsass.dll`):
-
-```powershell
-# debug build:
-&"${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\MSBuild" win\libsass.sln
-
-# release build:
-&"${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\MSBuild" win\libsass.sln `
-/p:Configuration=Release
-```
-
-To build static library (`libsass.lib`):
-
-```powershell
-# build:
-&"${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\MSBuild" win\libsass.sln `
-/p:LIBSASS_STATIC_LIB=1
-
-# release build:
-&"${env:ProgramFiles(x86)}\MSBuild\12.0\Bin\MSBuild" win\libsass.sln `
-/p:LIBSASS_STATIC_LIB=1 /p:Configuration=Release
-```
diff --git a/node_modules/node-sass/src/libsass/docs/build.md b/node_modules/node-sass/src/libsass/docs/build.md
deleted file mode 100644
index c656d88..0000000
--- a/node_modules/node-sass/src/libsass/docs/build.md
+++ /dev/null
@@ -1,97 +0,0 @@
-`libsass` is only a library and does not do much on its own. You need an implementation that you can use from the [command line][6]. Or some [bindings|Implementations][9] to use it within your favorite programming language. You should be able to get [`sassc`][6] running by following the instructions in this guide.
-
-Before starting, see [setup dev environment](setup-environment.md).
-
-Building on different Operating Systems
---
-
-We try to keep the code as OS independent and standard compliant as possible. Reading files from the file-system has some OS depending code, but will ultimately fall back to a posix compatible implementation. We do use some `C++11` features, but are so far only committed to use `unordered_map`. This means you will need a pretty recent compiler on most systems (gcc 4.5 seems to be the minimum).
-
-### Building on Linux (and other *nix flavors)
-
-Linux is the main target for `libsass` and we support two ways to build `libsass` here. The old plain makefiles should still work on most systems (including MinGW), while the autotools build is preferred if you want to create a [system library] (experimental).
-
-- [Building with makefiles][1]
-- [Building with autotools][2]
-
-### Building on Windows (experimental)
-
-Windows build support was added very recently and should be considered experimental. Credits go to @darrenkopp and @am11 for their work on getting `libsass` and `sassc` to compile with visual studio!
-
-- [Building with MinGW][3]
-- [Building with Visual Studio][11]
-
-### Building on Max OS X (untested)
-
-Works the same as on linux, but you can also install LibSass via `homebrew`.
-
-- [Building on Mac OS X][10]
-
-### Building a system library (experimental)
-
-Since `libsass` is a library, it makes sense to install it as a shared library on your system. On linux this means creating a `.so` library via autotools. This should work pretty well already, but we are not yet committed to keep the ABI 100% stable. This should be the case once we increase the version number for the library to 1.0.0 or higher. On Windows you should be able get a `dll` by creating a shared build with MinGW. There is currently no target in the MSVC project files to do this.
-
-- [Building shared system library][4]
-
-Compiling with clang instead of gcc
---
-
-To use clang you just need to set the appropriate environment variables:
-
-```bash
-export CC=/usr/bin/clang
-export CXX=/usr/bin/clang++
-```
-
-Running the spec test-suite
---
-
-We constantly and automatically test `libsass` against the official [spec test-suite][5]. To do this we need to have a test-runner (which is written in ruby) and a command-line tool ([`sassc`][6]) to run the tests. Therefore we need to additionally compile `sassc`. To do this, the build files of all three projects need to work together. This may not have the same quality for all build flavors. You definitely need to have ruby (2.1?) installed (version 1.9 seems to cause problems at least on windows). You also need some gems installed:
-
-```bash
-ruby -v
-gem install minitest
-# should be optional
-gem install minitap
-```
-
-Including the LibSass version
---
-
-There is a function in `libsass` to query the current version. This has to be defined at compile time. We use a C macro for this, which can be defined by calling `g++ -DLIBSASS_VERSION="\"x.y.z.\""`. The two quotes are necessary, since it needs to end up as a valid C string. Normally you do not need to do anything if you use the makefiles or autotools. They will try to fetch the version via git directly. If you only have the sources without the git repo, you can pass the version as an environment variable to `make` or `configure`:
-
-```
-export LIBSASS_VERSION="x.y.z."
-```
-
-Continuous Integration
---
-
-We use two CI services to automatically test all commits against the latest [spec test-suite][5].
-
-- [LibSass on Travis-CI (linux)][7]
-[![Build Status](https://travis-ci.org/sass/libsass.png?branch=master)](https://travis-ci.org/sass/libsass)
-- [LibSass on AppVeyor (windows)][8]
-[![Build status](https://ci.appveyor.com/api/projects/status/github/sass/libsass?svg=true)](https://ci.appveyor.com/project/mgreter/libsass-513/branch/master)
-
-Why not using CMake?
---
-
-There were some efforts to get `libsass` to compile with CMake, which should make it easier to create build files for linux and windows. Unfortunately this was not completed. But we are certainly open for PRs!
-
-Miscellaneous
---
-
-- [Ebuilds for Gentoo Linux](build-on-gentoo.md)
-
-[1]: build-with-makefiles.md
-[2]: build-with-autotools.md
-[3]: build-with-mingw.md
-[4]: build-shared-library.md
-[5]: https://github.com/sass/sass-spec
-[6]: https://github.com/sass/sassc
-[7]: https://github.com/sass/libsass/blob/master/.travis.yml
-[8]: https://github.com/sass/libsass/blob/master/appveyor.yml
-[9]: implementations.md
-[10]: build-on-darwin.md
-[11]: build-with-visual-studio.md
diff --git a/node_modules/node-sass/src/libsass/docs/compatibility-plan.md b/node_modules/node-sass/src/libsass/docs/compatibility-plan.md
deleted file mode 100644
index d8e538f..0000000
--- a/node_modules/node-sass/src/libsass/docs/compatibility-plan.md
+++ /dev/null
@@ -1,48 +0,0 @@
-This document is to serve as a living, changing plan for getting LibSass caught up with Ruby Sass.
-
-_Note: an "s" preceeding a version number is specifying a Ruby Sass version. Without an s, it's a version of LibSass._
-
-# Goal
-**Our goal is to reach full s3.4 compatibility as soon as possible. LibSass version 3.4 will behave just like Ruby Sass 3.4**
-
-I highlight the goal, because there are some things that are *not* currently priorities. To be clear, they WILL be priorities, but they are not at the moment:
-
-* Performance Improvements
-* Extensibility
-
-The overriding goal is correctness.
-
-## Verifying Correctness
-LibSass uses the spec for its testing. The spec was originally based off s3.2 tests. Many things have changed in Ruby Sass since then and some of the tests need to be updated and changed in order to get them to match both LibSass and Ruby Sass.
-
-Until this project is complete, the spec will be primarily a place to test LibSass. By the time LibSass reaches 3.4, it is our goal that sass-spec will be fully usable as an official testing source for ALL implementations of Sass.
-
-## Version Naming
-Until LibSass reaches parity with Ruby Sass, we will be aggressively bumping versions, and LibSass 3.4 will be the peer to Ruby Sass 3.4 in every way.
-
-# Release Plan
-
-## 3.0
-The goal of 3.0 is to introduce some of the most demanded features for LibSass. That is, we are focusing on issues and features that have kept adoption down. This is a mongrel release wrt which version of Sass it's targeting. It's often a mixture of 3.2 / 3.3 / 3.4 behaviours. This is not ideal, but it's favourable to not existing. Targeting 3.4 strictly during this release would mean we never actually release.
-
-# 3.1
-The goal of 3.1 is to update all the passing specs to agree with 3.4. This will not be a complete representation of s3.4 (aka, there will me missing features), but the goal is to change existing features and implemented features to match 3.4 behaviour.
-
-By the end of this, the sass-spec must pass against 3.4.
-
-Major issues:
-* Variable Scoping
-* Color Handling
-* Precision
-
-# 3.2
-This version will focus on edge case fixes. There are a LOT of edge cases in the _todo_ tests and this is the release where we hunt those down like dogs (not that we want to hurt dogs, it's just a figure of speech in English).
-
-# 3.3
-Dress rehearsal. When we are 99% sure that we've fixed the main issues keeping us from saying we are compliant in s3.4 behaviour.
-
-# 3.4
-Compass Compatibility. We need to be able to work with Compass and all the other libraries out there. At this point, we are calling LibSass "mature"
-
-# Beyond 3.4
-Obviously, there is matching Sass 3.5 behaviour. But, beyond that, we'll want to focus on performance, stability, and error handling. These can always be improved upon and are the life's work of an open source project. We'll have to work closely with Sass in the future.
diff --git a/node_modules/node-sass/src/libsass/docs/contributing.md b/node_modules/node-sass/src/libsass/docs/contributing.md
deleted file mode 100644
index 4a2d470..0000000
--- a/node_modules/node-sass/src/libsass/docs/contributing.md
+++ /dev/null
@@ -1,17 +0,0 @@
-First of all, welcome! Thanks for even reading this page. If you're here, you're probably wondering what you can do to help make the LibSass project even more awesome. And, even having that feeling means you are awesome!
-
-## I'm a programmer
-
-Awesome! We need your help. The best thing to do is go find issues that are tagged with both "bug" and "test written". We do spec driven development here and these issues have a test that's written already in the sass-spec project. Go find the test by going to sass-spec/spec/LibSass-todo-issues/issue_XXX/ where XXX is the issue number. Write the code, and compile, and then issue a pull request referencing the issue. We'll quickly verify it and get it merged in!
-
-To get your dev environment setup, check out our article on [Setup-Dev-Environment](setup-environment.md).
-
-## I'm not a backend programmer
-
-COOL! We also need your help. Doing [Issue-Triage](triage.md) is a big deal and something we need constant help with. That means helping to verify issues, write tests for them, and make sure they are getting fixed. It's being part of the smiling face of the project.
-
-Also, we need help with the Sass-Spec project itself. Just people to organize, refactor, and understand the tests in there.
-
-## I don't know what a computer is?
-
-Hmm.... well, it's the thing you are looking at right now. Ummm... check out training courses! Then, come back and join us!
diff --git a/node_modules/node-sass/src/libsass/docs/custom-functions-internal.md b/node_modules/node-sass/src/libsass/docs/custom-functions-internal.md
deleted file mode 100644
index 57fec82..0000000
--- a/node_modules/node-sass/src/libsass/docs/custom-functions-internal.md
+++ /dev/null
@@ -1,122 +0,0 @@
-# Developer Documentation
-
-Custom functions are internally represented by `struct Sass_C_Function_Descriptor`.
-
-## Sass_C_Function_Descriptor
-
-```C
-struct Sass_C_Function_Descriptor {
- const char* signature;
- Sass_C_Function function;
- void* cookie;
-};
-```
-
-- `signature`: The function declaration, like `foo($bar, $baz:1)`
-- `function`: Reference to the C function callback
-- `cookie`: any pointer you want to attach
-
-### signature
-
-The signature defines how the function can be invoked. It also declares which arguments are required and which are optional. Required arguments will be enforced by LibSass and a Sass error is thrown in the event a call as missing an argument. Optional arguments only need to be present when you want to overwrite the default value.
-
- foo($bar, $baz: 2)
-
-In this example, `$bar` is required and will error if not passed. `$baz` is optional and the default value of it is 2. A call like `foo(10)` is therefore equal to `foo(10, 2)`, while `foo()` will produce an error.
-
-### function
-
-The callback function needs to be of the following form:
-
-```C
-union Sass_Value* call_sass_function(
- const union Sass_Value* s_args,
- void* cookie
-) {
- return sass_clone_value(s_args);
-}
-```
-
-### cookie
-
-The cookie can hold any pointer you want. In the `perl-libsass` implementation it holds the structure with the reference of the actual registered callback into the perl interpreter. Before that call `perl-libsass` will convert all `Sass_Values` to corresponding perl data types (so they can be used natively inside the perl interpretor). The callback can also return a `Sass_Value`. In `perl-libsass` the actual function returns a perl value, which has to be converted before `libsass` can work with it again!
-
-## Sass_Values
-
-```C
-// allocate memory (copies passed strings)
-union Sass_Value* sass_make_null (void);
-union Sass_Value* sass_make_boolean (bool val);
-union Sass_Value* sass_make_string (const char* val);
-union Sass_Value* sass_make_qstring (const char* val);
-union Sass_Value* sass_make_number (double val, const char* unit);
-union Sass_Value* sass_make_color (double r, double g, double b, double a);
-union Sass_Value* sass_make_list (size_t len, enum Sass_Separator sep, bool is_bracketed);
-union Sass_Value* sass_make_map (size_t len);
-union Sass_Value* sass_make_error (const char* msg);
-union Sass_Value* sass_make_warning (const char* msg);
-
-// Make a deep cloned copy of the given sass value
-union Sass_Value* sass_clone_value (const union Sass_Value* val);
-
-// deallocate memory (incl. all copied memory)
-void sass_delete_value (const union Sass_Value* val);
-```
-
-## Example main.c
-
-```C
-#include <stdio.h>
-#include <stdint.h>
-#include "sass/context.h"
-
-union Sass_Value* call_fn_foo(const union Sass_Value* s_args, void* cookie)
-{
- // we actually abuse the void* to store an "int"
- return sass_make_number((size_t)cookie, "px");
-}
-
-int main( int argc, const char* argv[] )
-{
-
- // get the input file from first argument or use default
- const char* input = argc > 1 ? argv[1] : "styles.scss";
-
- // create the file context and get all related structs
- struct Sass_File_Context* file_ctx = sass_make_file_context(input);
- struct Sass_Context* ctx = sass_file_context_get_context(file_ctx);
- struct Sass_Options* ctx_opt = sass_context_get_options(ctx);
-
- // allocate a custom function caller
- Sass_C_Function_Callback fn_foo =
- sass_make_function("foo()", call_fn_foo, (void*)42);
-
- // create list of all custom functions
- Sass_C_Function_List fn_list = sass_make_function_list(1);
- sass_function_set_list_entry(fn_list, 0, fn_foo);
- sass_option_set_c_functions(ctx_opt, fn_list);
-
- // context is set up, call the compile step now
- int status = sass_compile_file_context(file_ctx);
-
- // print the result or the error to the stdout
- if (status == 0) puts(sass_context_get_output_string(ctx));
- else puts(sass_context_get_error_message(ctx));
-
- // release allocated memory
- sass_delete_file_context(file_ctx);
-
- // exit status
- return status;
-
-}
-```
-
-## Compile main.c
-
-```bash
-gcc -c main.c -o main.o
-gcc -o sample main.o -lsass
-echo "foo { margin: foo(); }" > foo.scss
-./sample foo.scss => "foo { margin: 42px }"
-```
diff --git a/node_modules/node-sass/src/libsass/docs/dev-ast-memory.md b/node_modules/node-sass/src/libsass/docs/dev-ast-memory.md
deleted file mode 100644
index 31004bc..0000000
--- a/node_modules/node-sass/src/libsass/docs/dev-ast-memory.md
+++ /dev/null
@@ -1,223 +0,0 @@
-# LibSass smart pointer implementation
-
-LibSass uses smart pointers very similar to `shared_ptr` known
-by Boost or C++11. Implementation is a bit less modular since
-it was not needed. Various compile time debug options are
-available if you need to debug memory life-cycles.
-
-
-## Memory Classes
-
-### SharedObj
-
-Base class for the actual node implementations. This ensures
-that every object has a reference counter and other values.
-
-```c++
-class AST_Node : public SharedObj { ... };
-```
-
-### SharedPtr (base class for SharedImpl)
-
-Base class that holds on to the pointer. The reference counter
-is stored inside the pointer object directly (`SharedObj`).
-
-### SharedImpl (inherits from SharedPtr)
-
-This is the main base class for objects you use in your code. It
-will make sure that the memory it points at will be deleted once
-all copies to the same object/memory go out of scope.
-
-```c++
-Class* pointer = new Class(...);
-SharedImpl<Class> obj(pointer);
-```
-
-To spare the developer of typing the templated class every time,
-we created typedefs for each available AST Node specialization.
-
-```c++
-typedef SharedImpl<Number> Number_Obj;
-Number_Obj number = SASS_MEMORY_NEW(...);
-```
-
-
-## Memory life-cycles
-
-### Pointer pickups
-
-I often use the terminology of "pickup". This means the moment when
-a raw pointer not under any control is assigned to a reference counted
-object (`XYZ_Obj = XYZ_Ptr`). From that point on memory will be
-automatically released once the object goes out of scope (but only
-if the reference counter reaches zero). Main point beeing, you don't
-have to worry about memory management yourself.
-
-### Object detach
-
-Sometimes we can't return reference counted objects directly (see
-invalid covariant return types problems below). But we often still
-need to use reference objects inside a function to avoid leaks when
-something throws. For this you can use `detach`, which basically
-detaches the pointer memory from the reference counted object. So
-when the reference counted object goes out of scope, it will not
-free the attached memory. You are now again in charge of freeing
-the memory (just assign it to a reference counted object again).
-
-
-## Circular references
-
-Reference counted memory implementations are prone to circular references.
-This can be addressed by using a multi generation garbage collector. But
-for our use-case that seems overkill. There is no way so far for users
-(sass code) to create circular references. Therefore we can code around
-this possible issue. But developers should be aware of this limitation.
-
-There are AFAIR two places where circular references could happen. One is
-the `sources` member on every `Selector`. The other one can happen in the
-extend code (Node handling). The easy way to avoid this is to only assign
-complete object clones to these members. If you know the objects lifetime
-is longer than the reference you create, you can also just store the raw
-pointer. Once needed this could be solved with weak pointers.
-
-
-## Addressing the invalid covariant return types problems
-
-If you are not familiar with the mentioned problem, you may want
-to read up on covariant return types and virtual functions, i.e.
-
-- http://stackoverflow.com/questions/6924754/return-type-covariance-with-smart-pointers
-- http://stackoverflow.com/questions/196733/how-can-i-use-covariant-return-types-with-smart-pointers
-- http://stackoverflow.com/questions/2687790/how-to-accomplish-covariant-return-types-when-returning-a-shared-ptr
-
-We hit this issue at least with the CRTP visitor pattern (eval, expand,
-listize and so forth). This means we cannot return reference counted
-objects directly. We are forced to return raw pointers or we would need
-to have a lot of explicit and expensive upcasts by callers/consumers.
-
-### Simple functions that allocate new AST Nodes
-
-In the parser step we often create new objects and can just return a
-unique pointer (meaning ownership clearly shifts back to the caller).
-The caller/consumer is responsible that the memory is freed.
-
-```c++
-typedef Number* Number_Ptr;
-int parse_integer() {
- ... // do the parsing
- return 42;
-}
-Number_Ptr parse_number() {
- Number_Ptr p_nr = SASS_MEMORY_NEW(...);
- p_nr->value(parse_integer());
- return p_nr;
-}
-Number_Obj nr = parse_number();
-```
-
-The above would be the encouraged pattern for such simple cases.
-
-### Allocate new AST Nodes in functions that can throw
-
-There is a major caveat with the previous example, considering this
-more real-life implementation that throws an error. The throw may
-happen deep down in another function. Holding raw pointers that
-we need to free would leak in this case.
-
-```c++
-int parse_integer() {
- ... // do the parsing
- if (error) throw(error);
- return 42;
-}
-```
-
-With this `parse_integer` function the previous example would leak memory.
-I guess it is pretty obvious, as the allocated memory will not be freed,
-as it was never assigned to a SharedObj value. Therefore the above code
-would better be written as:
-
-```c++
-typedef Number* Number_Ptr;
-int parse_integer() {
- ... // do the parsing
- if (error) throw(error);
- return 42;
-}
-// this leaks due to pointer return
-// should return Number_Obj instead
-// though not possible for virtuals!
-Number_Ptr parse_number() {
- Number_Obj nr = SASS_MEMORY_NEW(...);
- nr->value(parse_integer()); // throws
- return &nr; // Ptr from Obj
-}
-Number_Obj nr = parse_number();
-// will now be freed automatically
-```
-
-The example above unfortunately will not work as is, since we return a
-`Number_Ptr` from that function. Therefore the object allocated inside
-the function is already gone when it is picked up again by the caller.
-The easy fix for the given simplified use case would be to change the
-return type of `parse_number` to `Number_Obj`. Indeed we do it exactly
-this way in the parser. But as stated above, this will not work for
-virtual functions due to invalid covariant return types!
-
-### Return managed objects from virtual functions
-
-The easy fix would be to just create a new copy on the heap and return
-that. But this seems like a very inelegant solution to this problem. I
-mean why can't we just tell the object to treat it like a newly allocated
-object? And indeed we can. I've added a `detach` method that will tell
-the object to survive deallocation until the next pickup. This means
-that it will leak if it is not picked up by consumer.
-
-```c++
-typedef Number* Number_Ptr;
-int parse_integer() {
- ... // do the parsing
- if (error) throw(error);
- return 42;
-}
-Number_Ptr parse_number() {
- Number_Obj nr = SASS_MEMORY_NEW(...);
- nr->value(parse_integer()); // throws
- return nr.detach();
-}
-Number_Obj nr = parse_number();
-// will now be freed automatically
-```
-
-
-## Compile time debug options
-
-To enable memory debugging you need to define `DEBUG_SHARED_PTR`.
-This can i.e. be done in `include/sass/base.h`
-
-```c++
-define DEBUG_SHARED_PTR
-```
-
-This will print lost memory on exit to stderr. You can also use
-`setDbg(true)` on sepecific variables to emit reference counter
-increase, decrease and other events.
-
-
-## Why reinvent the wheel when there is `shared_ptr` from C++11
-
-First, implementing a smart pointer class is not really that hard. It
-was indeed also a learning experience for myself. But there are more
-profound advantages:
-
-- Better GCC 4.4 compatibility (which most code still has OOTB)
-- Not thread safe (give us some free performance on some compiler)
-- Beeing able to track memory allocations for debugging purposes
-- Adding additional features if needed (as seen in `detach`)
-- Optional: optimized weak pointer implementation possible
-
-### Thread Safety
-
-As said above, this is not thread safe currently. But we don't need
-this ATM anyway. And I guess we probably never will share AST Nodes
-across different threads. \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/docs/implementations.md b/node_modules/node-sass/src/libsass/docs/implementations.md
deleted file mode 100644
index 5239adc..0000000
--- a/node_modules/node-sass/src/libsass/docs/implementations.md
+++ /dev/null
@@ -1,65 +0,0 @@
-There are several implementations of `libsass` for a variety of languages. Here are just a few of them. Note, some implementations may or may not be up to date. We have not verified whether they work.
-
-### C
-* [sassc](https://github.com/hcatlin/sassc)
-
-### Crystal
-* [sass.cr](https://github.com/straight-shoota/sass.cr)
-
-### Elixir
-* [sass.ex](https://github.com/scottdavis/sass.ex)
-
-### Go
-* [go-libsass](https://github.com/wellington/go-libsass)
-* [go_sass](https://github.com/suapapa/go_sass)
-* [go-sass](https://github.com/SamWhited/go-sass)
-
-### Haskell
-* [hLibsass](https://github.com/jakubfijalkowski/hlibsass)
-* [hSass](https://github.com/jakubfijalkowski/hsass)
-
-### Java
-* [libsass-maven-plugin](https://github.com/warmuuh/libsass-maven-plugin)
-* [jsass](https://github.com/bit3/jsass)
-
-### JavaScript
-* [sass.js](https://github.com/medialize/sass.js)
-
-### Lua
-* [lua-sass](https://github.com/craigbarnes/lua-sass)
-
-### .NET
-* [libsass-net](https://github.com/darrenkopp/libsass-net)
-* [NSass](https://github.com/TBAPI-0KA/NSass)
-* [Sass.Net](https://github.com/andyalm/Sass.Net)
-* [SharpScss](https://github.com/xoofx/SharpScss)
-* [LibSassHost](https://github.com/Taritsyn/LibSassHost)
-
-### Nim
-* [nim-sass](https://github.com/zacharycarter/nim-sass)
-
-### node.js
-* [node-sass](https://github.com/sass/node-sass)
-
-### Perl
-* [CSS::Sass](https://github.com/caldwell/CSS-Sass)
-* [Text::Sass::XS](https://github.com/ysasaki/Text-Sass-XS)
-
-### PHP
-* [sassphp](https://github.com/sensational/sassphp)
-* [php-sass](https://github.com/lesstif/php-sass)
-
-### Python
-* [libsass-python](https://github.com/dahlia/libsass-python)
-* [SassPython](https://github.com/marianoguerra/SassPython)
-* [pylibsass](https://github.com/rsenk330/pylibsass)
-* [python-scss](https://github.com/pistolero/python-scss)
-
-### Ruby
-* [sassruby](https://github.com/hcatlin/sassruby)
-
-### Scala
-* [Sass-Scala](https://github.com/kkung/Sass-Scala)
-
-### Tcl
-* [tclsass](https://github.com/flightaware/tclsass)
diff --git a/node_modules/node-sass/src/libsass/docs/plugins.md b/node_modules/node-sass/src/libsass/docs/plugins.md
deleted file mode 100644
index a9711e3..0000000
--- a/node_modules/node-sass/src/libsass/docs/plugins.md
+++ /dev/null
@@ -1,47 +0,0 @@
-Plugins are shared object files (.so on *nix and .dll on win) that can be loaded by LibSass on runtime. Currently we only provide a way to load internal/custom functions from plugins. In the future we probably will also add a way to provide custom importers via plugins (needs more refactoring to [support multiple importers with some kind of priority system](https://github.com/sass/libsass/issues/962)).
-
-## plugin.cpp
-
-```C++
-#include <cstring>
-#include <iostream>
-#include <stdint.h>
-#include "sass_values.h"
-
-union Sass_Value* ADDCALL call_fn_foo(const union Sass_Value* s_args, void* cookie)
-{
- // we actually abuse the void* to store an "int"
- return sass_make_number((intptr_t)cookie, "px");
-}
-
-extern "C" const char* ADDCALL libsass_get_version() {
- return libsass_version();
-}
-
-extern "C" Sass_C_Function_List ADDCALL libsass_load_functions()
-{
- // allocate a custom function caller
- Sass_C_Function_Callback fn_foo =
- sass_make_function("foo()", call_fn_foo, (void*)42);
- // create list of all custom functions
- Sass_C_Function_List fn_list = sass_make_function_list(1);
- // put the only function in this plugin to the list
- sass_function_set_list_entry(fn_list, 0, fn_foo);
- // return the list
- return fn_list;
-}
-```
-
-To compile the plugin you need to have LibSass already built as a shared library (to link against it). The commands below expect the shared library in the `lib` sub-directory (`-Llib`). The plugin and the main LibSass process should "consume" the same shared LibSass library on runtime. It will propably also work if they use different LibSass versions. In this case we check if the major versions are compatible (i.e. 3.1.3 and 3.1.1 would be considered compatible).
-
-## Compile with gcc on linux
-
-```bash
-g++ -O2 -shared plugin.cpp -o plugin.so -fPIC -Llib -lsass
-```
-
-## Compile with mingw on windows
-
-```bash
-g++ -O2 -shared plugin.cpp -o plugin.dll -Llib -lsass
-```
diff --git a/node_modules/node-sass/src/libsass/docs/setup-environment.md b/node_modules/node-sass/src/libsass/docs/setup-environment.md
deleted file mode 100644
index 8056136..0000000
--- a/node_modules/node-sass/src/libsass/docs/setup-environment.md
+++ /dev/null
@@ -1,68 +0,0 @@
-## Requirements
-In order to install and setup your local development environment, there are some prerequisites:
-
-* git
-* gcc/clang/llvm (Linux: build tools, Mac OS X: XCode w/ Command Line Tools)
-* ruby w/ bundler
-
-OS X:
-First you'll need to install XCode which you can now get from the AppStore installed on your mac. After you download that and run it, then run this on the command line:
-
-````
-xcode-select --install
-````
-
-## Cloning the Projects
-
-First, clone the project and then add a line to your `~/.bash_profile` that will let other programs know where the LibSass dev files are.
-
-````
-git clone git@github.com:sass/libsass.git
-cd libsass
-echo "export SASS_LIBSASS_PATH=$(pwd)" >> ~/.bash_profile
-
-````
-
-Then, if you run the "bootstrap" script, it should clone all the other required projects.
-
-````
-./script/bootstrap
-````
-
-You should now have a `sass-spec` and `sassc` folder within the libsass folder. Both of these are clones of their respective git projects. If you want to do a pull request, remember to work in those folders. For instance, if you want to add a test (see other documentation for how to do that), make sure to commit it to your *fork* of the sass-spec github project. Also, whenever you are running tests, make sure to `pull` from the origin! We want to make sure we are testing against the newest libsass, sassc, and sass-spec!
-
-Now, try and see if you can build the project. We do that with the `make` command.
-
-````
-make
-````
-
-At this point, if you get an error, something is most likely wrong with your compiler installation. Yikes. It's hard to cover how to fix this in an article. Feel free to open an issue and we'll try and help! But, remember, before you do that, googling the error message is your friend! Many problems are solved quickly that way.
-
-## Running The Spec Against LibSass
-
-Then, to run the spec against LibSass, just run:
-
-````
-./script/spec
-````
-
-If you get an error about `SASS_LIBSASS_PATH`, you may still need to set a variable pointing to the libsass folder, like this:
-
-````
-export SASS_LIBSASS_PATH=/Users/you/path/libsass
-````
-
-...where the latter part is to the `libsass` directory you've cloned. You can get this path by typing `pwd` in the Terminal
-
-## Running the Spec Against Ruby Sass
-
-Go into the sass-spec folder that should have been cloned earlier with the "bootstrap" command. Run the following.
-
-````
-bundle install
-./sass-spec.rb
-````
-
-Voila! Now you are testing against Sass too!
-
diff --git a/node_modules/node-sass/src/libsass/docs/source-map-internals.md b/node_modules/node-sass/src/libsass/docs/source-map-internals.md
deleted file mode 100644
index 50f83b5..0000000
--- a/node_modules/node-sass/src/libsass/docs/source-map-internals.md
+++ /dev/null
@@ -1,51 +0,0 @@
-This document is mainly intended for developers!
-
-# Documenting some of the source map internals
-
-Since source maps are somewhat a black box to all LibSass maintainers, [I](@mgreter) will try to document my findings with source maps in LibSass, as I come across them. This document will also brievely explain how LibSass parses the source and how it outputs the result.
-
-The main storage for SourceMap mappings is the `mappings` vector:
-
-```
-# in source_map.hpp
-vector<Mapping> mappings
-# in mappings.hpp
-struct Mapping ...
- Position original_position;
- Position generated_position;
-```
-
-## Every parsed token has its source associated
-
-LibSass uses a lexical parser. Whenever LibSass finds a token of interest, it creates a specific `AST_Node`, which will hold a reference to the input source with line/column information. `AST_Node` is the base class for all parsed items. They are declared in `ast.hpp` and are used in `parser.hpp`. Here a simple example:
-
-```
-if (lex< custom_property_name >()) {
- Sass::String* prop = new (ctx.mem) String_Constant(path, source_position, lexed);
- return new (ctx.mem) Declaration(path, prop->position(), prop, ...);
-}
-```
-
-## How is the `source_position` calculated
-
-This is automatically done with `lex` in `parser.hpp`. Whenever something is lexed, the `source_position` is updated. But be aware that `source_position` points to the begining of the parsed text. If you need a mapping for the position where the parsing ended, you need to add another call to `lex` (to match nothing)!
-
-```
-lex< exactly < empty_str > >();
-end = new (ctx.mem) String_Constant(path, source_position, lexed);
-```
-
-## How are mappings for the output created
-
-So far we have collected all needed data for all tokens in the input stream. We can now use this information to create mappings when we put things into the output stream. Mappings are created via the `add_mappings` method:
-
-```
-# in source_map.hpp
-void add_mapping(AST_Node* node);
-```
-
-This method is called in two places:
-- `Inspect::append_to_buffer`
-- `Output_[Nested|Compressed]::append_to_buffer`
-
-Mappings can only be created for things that have been parsed into a `AST_Node`. Otherwise we do not have the information to create the mappings, which is the reason why LibSass currently only maps the most important tokens in source maps.
diff --git a/node_modules/node-sass/src/libsass/docs/trace.md b/node_modules/node-sass/src/libsass/docs/trace.md
deleted file mode 100644
index 4a57c90..0000000
--- a/node_modules/node-sass/src/libsass/docs/trace.md
+++ /dev/null
@@ -1,26 +0,0 @@
-## This is proposed interface in https://github.com/sass/libsass/pull/1288
-
-Additional debugging macros with low overhead are available, `TRACE()` and `TRACEINST()`.
-
-Both macros simulate a string stream, so they can be used like this:
-
- TRACE() << "Reached.";
-
-produces:
-
- [LibSass] parse_value parser.cpp:1384 Reached.
-
-`TRACE()`
- logs function name, source filename, source file name to the standard error and the attached
- stream to the standard error.
-
-`TRACEINST(obj)`
- logs object instance address, function name, source filename, source file name to the standard error and the attached stream to the standard error, for example:
-
- TRACEINST(this) << "String_Constant created " << this;
-
-produces:
-
- [LibSass] 0x8031ba980:String_Constant ./ast.hpp:1371 String_Constant created (0,"auto")
-
-The macros generate output only of `LibSass_TRACE` is set in the environment.
diff --git a/node_modules/node-sass/src/libsass/docs/triage.md b/node_modules/node-sass/src/libsass/docs/triage.md
deleted file mode 100644
index 0fc1178..0000000
--- a/node_modules/node-sass/src/libsass/docs/triage.md
+++ /dev/null
@@ -1,17 +0,0 @@
-This is an article about how to help with LibSass issues. Issue triage is a fancy word for explaining how we deal with incoming issues and make sure that the right problems get worked on. The lifecycle of an issue goes like this:
-
-1. Issue is reported by a user.
-2. If the issue seems like a bug, then the "bug" tag is added.
-3. If the reporting user didn't also create a spec test over at sass/sass-spec, the "needs test" tag is added.
-4. Verify that Ruby Sass *does not* have the same bug. LibSass strives to be an exact replica of how Ruby Sass works. If it's an issue that neither project has solved, please close the ticket with the "not in sass" label.
-5. The smallest possible breaking test is created in sass-spec. Cut away any extra information or non-breaking code until the core issue is made clear.
-6. Again, verify that the expected output matches the latest Ruby Sass release. Do this by using your own tool OR by running ./sass-spec.rb in the spec folder and making sure that your test passes!
-7. Create the test cases in sass-spec with the name spec/LibSass-todo-issues/issue_XXX/input.scss and expected_output.css where the XXX is the issue number here.
-8. Commit that test to sass-spec, making sure to reference the issue in the comment message like "Test to demonstrate sass/LibSass#XXX".
-9. Once the spec test exists, remove the "needs test" tag and replace it with "test written".
-10. A C++ developer will then work on the issue and issue a pull request to fix the issue.
-11. A core member verifies that the fix does actually fix the spec tests.
-12. The fix is merged into the project.
-13. The spec is moved from the LibSass-todo-issues folder into LibSass-closed-issues
-14. The issue is closed
-15. Have a soda pop or enjoyable beverage of your choice
diff --git a/node_modules/node-sass/src/libsass/docs/unicode.md b/node_modules/node-sass/src/libsass/docs/unicode.md
deleted file mode 100644
index a1eb5b1..0000000
--- a/node_modules/node-sass/src/libsass/docs/unicode.md
+++ /dev/null
@@ -1,45 +0,0 @@
-LibSass currently expects all input to be utf8 encoded (and outputs only utf8), if you actually have any unicode characters at all. We do not support conversion between encodings, even if you declare it with a `@charset` rule. The text below was originally posted as an [issue](https://github.com/sass/libsass/issues/381) on the LibSass tracker. Since then the status is outdated as LibSass now expects your
-input to be utf8/ascii compatible, as it has been proven that reading ANSI (e.g. single byte encodings) as utf8 can lead to unexpected
-behavior, which can in the worst case lead to buffer overruns/segfaults. Therefore LibSass now checks your input to be valid utf8 encoded!
-
-### [Declaring character encodings in CSS](http://www.w3.org/International/questions/qa-css-charset.en)
-
-This [explains](http://www.w3.org/International/questions/qa-css-charset.en) how the character encoding of a css file is determined. Since we are only dealing with local files, we never have a HTTP header. So the precedence should be 'charset' rule, byte-order mark (BOM) or auto-detection (finally falling back to system default/UTF-8). This may not sound too hard to implement, but what about import rules? The CSS specs do not forbid the mixing of different encodings! I [solved that](https://github.com/mgreter/webmerge/) by converting all files to UTF-8 internally. On writing there is an option to tell the tool what encoding it should be (UTF-8 by default). One can also define if it should write a BOM or not and if it should add the charset declaration.
-
-Since my [tool]((https://github.com/mgreter/webmerge/)) is written in perl, I have a lot of utilities at hand to deal with different unicode charsets. I'm pretty sure that most OSS uses [ICU](http://site.icu-project.org/) or [libiconv](https://www.gnu.org/software/libiconv/) to convert between different encodings. But I have now idea how easy/hard this would be to integrate platform independent (it seems doable). ANSII (single byte encoding) to utf8 is basically just a conversion table (for every supported code-page).
-
-### Current status on LibSass unicode support
-
-LibSass should/is fully UTF (and therefore plain ASCII) compatible.
-
-~~Currently LibSass seems to handle the common UTF-8 case pretty well. I believe it should correctly support all ASCII compatible encodings (like UTF-8 or Latin-1). If all includes use the same encoding, the output should be correct (in the same encoding). It should also handle unicode chars in [selectors, variable names and other identifiers](https://github.com/hcatlin/libsass/issues/244#issuecomment-34681227). This is true for all ASCII compatible encodings. So the main incompatible encodings (I'm aware of) are UTF-16/UTF-32 (which could be converted to UTF-8 with libiconv).~~
-
-LibSass 3.5 will enforce that your input is either plain ASCII (chars below 127) or utf8. It does not handle anything else, but therefore ensures that the output is in a valid form. Before version 3.5 you were able to mix different code-pages, which yielded unexpected behavior.
-
-### Current encoding auto detection
-
-LibSass currently reads all kind of BOMs and will error out if it finds something it doesn't know how to handle! It seems that it throws away the optional UTF-8 BOM (if any is found). IMO it would be nice if users could configure that (also if a charset rule should be added to the output). But it does not really take any `@charset` into account, it always assumes your input is utf8 and ignores any given `@charset`!
-
-### What is currently not supported
-
-- Using non ASCII compatible encodings (like UTF-16, Latin-1 etc.)
-- Using non ASCII characters in different encodings in different includes
-
-### What is missing to support the above cases
-
-- A way to convert between encodings (like libiconv/ICU)
-- Sniffing the charset inside the file (source is available)
-- Handling the conversion on import (and export)
-- Optional: Make output encoding configurable
-- Optional: Add optional/mandatory BOM (configurable)
-
-### Low priority feature
-
-I guess the current implementation should handle more than 99% of all real world use cases.
-A) Unicode characters are still seldomly seen (as they can be written escaped)
-~~B) It will still work if it's UTF-8 or in any of the most common known western ISO codepages.
-Although I'm not sure how this applies to asian and other "exotic" codepages!~~
-
-I guess the biggest Problem is to have libiconv/ICU (or some other) library as a dependency. Since it contains a lot of rules for the conversions, I see it as the only way to handle this correctly. Once that is sorted out it should be pretty much straight forward to implement the missing pieces (in parser.cpp - Parser::parse should return encoding and add Parser::sniff_charset, then convert the source byte stream to UTF-8).
-
-I hope the statements above all hold true. Unicode is really not the easiest topic to wrap your head around. But since I did all the above recently in Perl, I wanted to document it here. Feel free to extend or criticize.
diff --git a/node_modules/node-sass/src/libsass/extconf.rb b/node_modules/node-sass/src/libsass/extconf.rb
deleted file mode 100644
index 3e6d00b..0000000
--- a/node_modules/node-sass/src/libsass/extconf.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-require 'mkmf'
-# .. more stuff
-#$LIBPATH.push(Config::CONFIG['libdir'])
-$CFLAGS << " #{ENV["CFLAGS"]}"
-$LIBS << " #{ENV["LIBS"]}"
-create_makefile("libsass")
diff --git a/node_modules/node-sass/src/libsass/include/sass.h b/node_modules/node-sass/src/libsass/include/sass.h
deleted file mode 100644
index 1dd8b06..0000000
--- a/node_modules/node-sass/src/libsass/include/sass.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef SASS_H
-#define SASS_H
-
-// #define DEBUG 1
-
-// include API headers
-#include <sass/base.h>
-#include <sass/version.h>
-#include <sass/values.h>
-#include <sass/functions.h>
-#include <sass/context.h>
-#include <sass2scss.h>
-
-#endif
-
diff --git a/node_modules/node-sass/src/libsass/include/sass/base.h b/node_modules/node-sass/src/libsass/include/sass/base.h
deleted file mode 100644
index 88dd8d3..0000000
--- a/node_modules/node-sass/src/libsass/include/sass/base.h
+++ /dev/null
@@ -1,89 +0,0 @@
-#ifndef SASS_BASE_H
-#define SASS_BASE_H
-
-// #define DEBUG_SHARED_PTR
-
-#ifdef _MSC_VER
- #pragma warning(disable : 4503)
- #ifndef _SCL_SECURE_NO_WARNINGS
- #define _SCL_SECURE_NO_WARNINGS
- #endif
- #ifndef _CRT_SECURE_NO_WARNINGS
- #define _CRT_SECURE_NO_WARNINGS
- #endif
- #ifndef _CRT_NONSTDC_NO_DEPRECATE
- #define _CRT_NONSTDC_NO_DEPRECATE
- #endif
-#endif
-
-#include <stddef.h>
-#include <stdbool.h>
-
-#ifdef __GNUC__
- #define DEPRECATED(func) func __attribute__ ((deprecated))
-#elif defined(_MSC_VER)
- #define DEPRECATED(func) __declspec(deprecated) func
-#else
- #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
- #define DEPRECATED(func) func
-#endif
-
-#ifdef _WIN32
-
- /* You should define ADD_EXPORTS *only* when building the DLL. */
- #ifdef ADD_EXPORTS
- #define ADDAPI __declspec(dllexport)
- #define ADDCALL __cdecl
- #else
- #define ADDAPI
- #define ADDCALL
- #endif
-
-#else /* _WIN32 not defined. */
-
- /* Define with no value on non-Windows OSes. */
- #define ADDAPI
- #define ADDCALL
-
-#endif
-
-/* Make sure functions are exported with C linkage under C++ compilers. */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-// Different render styles
-enum Sass_Output_Style {
- SASS_STYLE_NESTED,
- SASS_STYLE_EXPANDED,
- SASS_STYLE_COMPACT,
- SASS_STYLE_COMPRESSED,
- // only used internaly
- SASS_STYLE_INSPECT,
- SASS_STYLE_TO_SASS
-};
-
-// to allocate buffer to be filled
-ADDAPI void* ADDCALL sass_alloc_memory(size_t size);
-// to allocate a buffer from existing string
-ADDAPI char* ADDCALL sass_copy_c_string(const char* str);
-// to free overtaken memory when done
-ADDAPI void ADDCALL sass_free_memory(void* ptr);
-
-// Some convenient string helper function
-ADDAPI char* ADDCALL sass_string_quote (const char* str, const char quote_mark);
-ADDAPI char* ADDCALL sass_string_unquote (const char* str);
-
-// Implemented sass language version
-// Hardcoded version 3.4 for time being
-ADDAPI const char* ADDCALL libsass_version(void);
-
-// Get compiled libsass language
-ADDAPI const char* ADDCALL libsass_language_version(void);
-
-#ifdef __cplusplus
-} // __cplusplus defined.
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/include/sass/context.h b/node_modules/node-sass/src/libsass/include/sass/context.h
deleted file mode 100644
index 2f88d68..0000000
--- a/node_modules/node-sass/src/libsass/include/sass/context.h
+++ /dev/null
@@ -1,170 +0,0 @@
-#ifndef SASS_C_CONTEXT_H
-#define SASS_C_CONTEXT_H
-
-#include <stddef.h>
-#include <stdbool.h>
-#include <sass/base.h>
-#include <sass/values.h>
-#include <sass/functions.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-// Forward declaration
-struct Sass_Compiler;
-
-// Forward declaration
-struct Sass_Options; // base struct
-struct Sass_Context; // : Sass_Options
-struct Sass_File_Context; // : Sass_Context
-struct Sass_Data_Context; // : Sass_Context
-
-// Compiler states
-enum Sass_Compiler_State {
- SASS_COMPILER_CREATED,
- SASS_COMPILER_PARSED,
- SASS_COMPILER_EXECUTED
-};
-
-// Create and initialize an option struct
-ADDAPI struct Sass_Options* ADDCALL sass_make_options (void);
-// Create and initialize a specific context
-ADDAPI struct Sass_File_Context* ADDCALL sass_make_file_context (const char* input_path);
-ADDAPI struct Sass_Data_Context* ADDCALL sass_make_data_context (char* source_string);
-
-// Call the compilation step for the specific context
-ADDAPI int ADDCALL sass_compile_file_context (struct Sass_File_Context* ctx);
-ADDAPI int ADDCALL sass_compile_data_context (struct Sass_Data_Context* ctx);
-
-// Create a sass compiler instance for more control
-ADDAPI struct Sass_Compiler* ADDCALL sass_make_file_compiler (struct Sass_File_Context* file_ctx);
-ADDAPI struct Sass_Compiler* ADDCALL sass_make_data_compiler (struct Sass_Data_Context* data_ctx);
-
-// Execute the different compilation steps individually
-// Usefull if you only want to query the included files
-ADDAPI int ADDCALL sass_compiler_parse(struct Sass_Compiler* compiler);
-ADDAPI int ADDCALL sass_compiler_execute(struct Sass_Compiler* compiler);
-
-// Release all memory allocated with the compiler
-// This does _not_ include any contexts or options
-ADDAPI void ADDCALL sass_delete_compiler(struct Sass_Compiler* compiler);
-ADDAPI void ADDCALL sass_delete_options(struct Sass_Options* options);
-
-// Release all memory allocated and also ourself
-ADDAPI void ADDCALL sass_delete_file_context (struct Sass_File_Context* ctx);
-ADDAPI void ADDCALL sass_delete_data_context (struct Sass_Data_Context* ctx);
-
-// Getters for context from specific implementation
-ADDAPI struct Sass_Context* ADDCALL sass_file_context_get_context (struct Sass_File_Context* file_ctx);
-ADDAPI struct Sass_Context* ADDCALL sass_data_context_get_context (struct Sass_Data_Context* data_ctx);
-
-// Getters for Context_Options from Sass_Context
-ADDAPI struct Sass_Options* ADDCALL sass_context_get_options (struct Sass_Context* ctx);
-ADDAPI struct Sass_Options* ADDCALL sass_file_context_get_options (struct Sass_File_Context* file_ctx);
-ADDAPI struct Sass_Options* ADDCALL sass_data_context_get_options (struct Sass_Data_Context* data_ctx);
-ADDAPI void ADDCALL sass_file_context_set_options (struct Sass_File_Context* file_ctx, struct Sass_Options* opt);
-ADDAPI void ADDCALL sass_data_context_set_options (struct Sass_Data_Context* data_ctx, struct Sass_Options* opt);
-
-
-// Getters for Context_Option values
-ADDAPI int ADDCALL sass_option_get_precision (struct Sass_Options* options);
-ADDAPI enum Sass_Output_Style ADDCALL sass_option_get_output_style (struct Sass_Options* options);
-ADDAPI bool ADDCALL sass_option_get_source_comments (struct Sass_Options* options);
-ADDAPI bool ADDCALL sass_option_get_source_map_embed (struct Sass_Options* options);
-ADDAPI bool ADDCALL sass_option_get_source_map_contents (struct Sass_Options* options);
-ADDAPI bool ADDCALL sass_option_get_source_map_file_urls (struct Sass_Options* options);
-ADDAPI bool ADDCALL sass_option_get_omit_source_map_url (struct Sass_Options* options);
-ADDAPI bool ADDCALL sass_option_get_is_indented_syntax_src (struct Sass_Options* options);
-ADDAPI const char* ADDCALL sass_option_get_indent (struct Sass_Options* options);
-ADDAPI const char* ADDCALL sass_option_get_linefeed (struct Sass_Options* options);
-ADDAPI const char* ADDCALL sass_option_get_input_path (struct Sass_Options* options);
-ADDAPI const char* ADDCALL sass_option_get_output_path (struct Sass_Options* options);
-ADDAPI const char* ADDCALL sass_option_get_source_map_file (struct Sass_Options* options);
-ADDAPI const char* ADDCALL sass_option_get_source_map_root (struct Sass_Options* options);
-ADDAPI Sass_Importer_List ADDCALL sass_option_get_c_headers (struct Sass_Options* options);
-ADDAPI Sass_Importer_List ADDCALL sass_option_get_c_importers (struct Sass_Options* options);
-ADDAPI Sass_Function_List ADDCALL sass_option_get_c_functions (struct Sass_Options* options);
-
-// Setters for Context_Option values
-ADDAPI void ADDCALL sass_option_set_precision (struct Sass_Options* options, int precision);
-ADDAPI void ADDCALL sass_option_set_output_style (struct Sass_Options* options, enum Sass_Output_Style output_style);
-ADDAPI void ADDCALL sass_option_set_source_comments (struct Sass_Options* options, bool source_comments);
-ADDAPI void ADDCALL sass_option_set_source_map_embed (struct Sass_Options* options, bool source_map_embed);
-ADDAPI void ADDCALL sass_option_set_source_map_contents (struct Sass_Options* options, bool source_map_contents);
-ADDAPI void ADDCALL sass_option_set_source_map_file_urls (struct Sass_Options* options, bool source_map_file_urls);
-ADDAPI void ADDCALL sass_option_set_omit_source_map_url (struct Sass_Options* options, bool omit_source_map_url);
-ADDAPI void ADDCALL sass_option_set_is_indented_syntax_src (struct Sass_Options* options, bool is_indented_syntax_src);
-ADDAPI void ADDCALL sass_option_set_indent (struct Sass_Options* options, const char* indent);
-ADDAPI void ADDCALL sass_option_set_linefeed (struct Sass_Options* options, const char* linefeed);
-ADDAPI void ADDCALL sass_option_set_input_path (struct Sass_Options* options, const char* input_path);
-ADDAPI void ADDCALL sass_option_set_output_path (struct Sass_Options* options, const char* output_path);
-ADDAPI void ADDCALL sass_option_set_plugin_path (struct Sass_Options* options, const char* plugin_path);
-ADDAPI void ADDCALL sass_option_set_include_path (struct Sass_Options* options, const char* include_path);
-ADDAPI void ADDCALL sass_option_set_source_map_file (struct Sass_Options* options, const char* source_map_file);
-ADDAPI void ADDCALL sass_option_set_source_map_root (struct Sass_Options* options, const char* source_map_root);
-ADDAPI void ADDCALL sass_option_set_c_headers (struct Sass_Options* options, Sass_Importer_List c_headers);
-ADDAPI void ADDCALL sass_option_set_c_importers (struct Sass_Options* options, Sass_Importer_List c_importers);
-ADDAPI void ADDCALL sass_option_set_c_functions (struct Sass_Options* options, Sass_Function_List c_functions);
-
-
-// Getters for Sass_Context values
-ADDAPI const char* ADDCALL sass_context_get_output_string (struct Sass_Context* ctx);
-ADDAPI int ADDCALL sass_context_get_error_status (struct Sass_Context* ctx);
-ADDAPI const char* ADDCALL sass_context_get_error_json (struct Sass_Context* ctx);
-ADDAPI const char* ADDCALL sass_context_get_error_text (struct Sass_Context* ctx);
-ADDAPI const char* ADDCALL sass_context_get_error_message (struct Sass_Context* ctx);
-ADDAPI const char* ADDCALL sass_context_get_error_file (struct Sass_Context* ctx);
-ADDAPI const char* ADDCALL sass_context_get_error_src (struct Sass_Context* ctx);
-ADDAPI size_t ADDCALL sass_context_get_error_line (struct Sass_Context* ctx);
-ADDAPI size_t ADDCALL sass_context_get_error_column (struct Sass_Context* ctx);
-ADDAPI const char* ADDCALL sass_context_get_source_map_string (struct Sass_Context* ctx);
-ADDAPI char** ADDCALL sass_context_get_included_files (struct Sass_Context* ctx);
-
-// Getters for options include path array
-ADDAPI size_t ADDCALL sass_option_get_include_path_size(struct Sass_Options* options);
-ADDAPI const char* ADDCALL sass_option_get_include_path(struct Sass_Options* options, size_t i);
-
-// Calculate the size of the stored null terminated array
-ADDAPI size_t ADDCALL sass_context_get_included_files_size (struct Sass_Context* ctx);
-
-// Take ownership of memory (value on context is set to 0)
-ADDAPI char* ADDCALL sass_context_take_error_json (struct Sass_Context* ctx);
-ADDAPI char* ADDCALL sass_context_take_error_text (struct Sass_Context* ctx);
-ADDAPI char* ADDCALL sass_context_take_error_message (struct Sass_Context* ctx);
-ADDAPI char* ADDCALL sass_context_take_error_file (struct Sass_Context* ctx);
-ADDAPI char* ADDCALL sass_context_take_output_string (struct Sass_Context* ctx);
-ADDAPI char* ADDCALL sass_context_take_source_map_string (struct Sass_Context* ctx);
-ADDAPI char** ADDCALL sass_context_take_included_files (struct Sass_Context* ctx);
-
-// Getters for Sass_Compiler options
-ADDAPI enum Sass_Compiler_State ADDCALL sass_compiler_get_state(struct Sass_Compiler* compiler);
-ADDAPI struct Sass_Context* ADDCALL sass_compiler_get_context(struct Sass_Compiler* compiler);
-ADDAPI struct Sass_Options* ADDCALL sass_compiler_get_options(struct Sass_Compiler* compiler);
-ADDAPI size_t ADDCALL sass_compiler_get_import_stack_size(struct Sass_Compiler* compiler);
-ADDAPI Sass_Import_Entry ADDCALL sass_compiler_get_last_import(struct Sass_Compiler* compiler);
-ADDAPI Sass_Import_Entry ADDCALL sass_compiler_get_import_entry(struct Sass_Compiler* compiler, size_t idx);
-ADDAPI size_t ADDCALL sass_compiler_get_callee_stack_size(struct Sass_Compiler* compiler);
-ADDAPI Sass_Callee_Entry ADDCALL sass_compiler_get_last_callee(struct Sass_Compiler* compiler);
-ADDAPI Sass_Callee_Entry ADDCALL sass_compiler_get_callee_entry(struct Sass_Compiler* compiler, size_t idx);
-
-// Push function for paths (no manipulation support for now)
-ADDAPI void ADDCALL sass_option_push_plugin_path (struct Sass_Options* options, const char* path);
-ADDAPI void ADDCALL sass_option_push_include_path (struct Sass_Options* options, const char* path);
-
-// Resolve a file via the given include paths in the sass option struct
-// find_file looks for the exact file name while find_include does a regular sass include
-ADDAPI char* ADDCALL sass_find_file (const char* path, struct Sass_Options* opt);
-ADDAPI char* ADDCALL sass_find_include (const char* path, struct Sass_Options* opt);
-
-// Resolve a file relative to last import or include paths in the sass option struct
-// find_file looks for the exact file name while find_include does a regular sass include
-ADDAPI char* ADDCALL sass_compiler_find_file (const char* path, struct Sass_Compiler* compiler);
-ADDAPI char* ADDCALL sass_compiler_find_include (const char* path, struct Sass_Compiler* compiler);
-
-#ifdef __cplusplus
-} // __cplusplus defined.
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/include/sass/functions.h b/node_modules/node-sass/src/libsass/include/sass/functions.h
deleted file mode 100644
index ac47e8e..0000000
--- a/node_modules/node-sass/src/libsass/include/sass/functions.h
+++ /dev/null
@@ -1,139 +0,0 @@
-#ifndef SASS_C_FUNCTIONS_H
-#define SASS_C_FUNCTIONS_H
-
-#include <stddef.h>
-#include <stdbool.h>
-#include <sass/base.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-// Forward declaration
-struct Sass_Env;
-struct Sass_Callee;
-struct Sass_Import;
-struct Sass_Options;
-struct Sass_Compiler;
-struct Sass_Importer;
-struct Sass_Function;
-
-// Typedef helpers for callee lists
-typedef struct Sass_Env (*Sass_Env_Frame);
-// Typedef helpers for callee lists
-typedef struct Sass_Callee (*Sass_Callee_Entry);
-// Typedef helpers for import lists
-typedef struct Sass_Import (*Sass_Import_Entry);
-typedef struct Sass_Import* (*Sass_Import_List);
-// Typedef helpers for custom importer lists
-typedef struct Sass_Importer (*Sass_Importer_Entry);
-typedef struct Sass_Importer* (*Sass_Importer_List);
-// Typedef defining importer signature and return type
-typedef Sass_Import_List (*Sass_Importer_Fn)
- (const char* url, Sass_Importer_Entry cb, struct Sass_Compiler* compiler);
-
-// Typedef helpers for custom functions lists
-typedef struct Sass_Function (*Sass_Function_Entry);
-typedef struct Sass_Function* (*Sass_Function_List);
-// Typedef defining function signature and return type
-typedef union Sass_Value* (*Sass_Function_Fn)
- (const union Sass_Value*, Sass_Function_Entry cb, struct Sass_Compiler* compiler);
-
-// Type of function calls
-enum Sass_Callee_Type {
- SASS_CALLEE_MIXIN,
- SASS_CALLEE_FUNCTION,
- SASS_CALLEE_C_FUNCTION,
-};
-
-// Creator for sass custom importer return argument list
-ADDAPI Sass_Importer_List ADDCALL sass_make_importer_list (size_t length);
-ADDAPI Sass_Importer_Entry ADDCALL sass_importer_get_list_entry (Sass_Importer_List list, size_t idx);
-ADDAPI void ADDCALL sass_importer_set_list_entry (Sass_Importer_List list, size_t idx, Sass_Importer_Entry entry);
-ADDAPI void ADDCALL sass_delete_importer_list (Sass_Importer_List list);
-
-
-// Creators for custom importer callback (with some additional pointer)
-// The pointer is mostly used to store the callback into the actual binding
-ADDAPI Sass_Importer_Entry ADDCALL sass_make_importer (Sass_Importer_Fn importer, double priority, void* cookie);
-
-// Getters for import function descriptors
-ADDAPI Sass_Importer_Fn ADDCALL sass_importer_get_function (Sass_Importer_Entry cb);
-ADDAPI double ADDCALL sass_importer_get_priority (Sass_Importer_Entry cb);
-ADDAPI void* ADDCALL sass_importer_get_cookie (Sass_Importer_Entry cb);
-
-// Deallocator for associated memory
-ADDAPI void ADDCALL sass_delete_importer (Sass_Importer_Entry cb);
-
-// Creator for sass custom importer return argument list
-ADDAPI Sass_Import_List ADDCALL sass_make_import_list (size_t length);
-// Creator for a single import entry returned by the custom importer inside the list
-ADDAPI Sass_Import_Entry ADDCALL sass_make_import_entry (const char* path, char* source, char* srcmap);
-ADDAPI Sass_Import_Entry ADDCALL sass_make_import (const char* imp_path, const char* abs_base, char* source, char* srcmap);
-// set error message to abort import and to print out a message (path from existing object is used in output)
-ADDAPI Sass_Import_Entry ADDCALL sass_import_set_error(Sass_Import_Entry import, const char* message, size_t line, size_t col);
-
-// Setters to insert an entry into the import list (you may also use [] access directly)
-// Since we are dealing with pointers they should have a guaranteed and fixed size
-ADDAPI void ADDCALL sass_import_set_list_entry (Sass_Import_List list, size_t idx, Sass_Import_Entry entry);
-ADDAPI Sass_Import_Entry ADDCALL sass_import_get_list_entry (Sass_Import_List list, size_t idx);
-
-// Getters for callee entry
-ADDAPI const char* ADDCALL sass_callee_get_name (Sass_Callee_Entry);
-ADDAPI const char* ADDCALL sass_callee_get_path (Sass_Callee_Entry);
-ADDAPI size_t ADDCALL sass_callee_get_line (Sass_Callee_Entry);
-ADDAPI size_t ADDCALL sass_callee_get_column (Sass_Callee_Entry);
-ADDAPI enum Sass_Callee_Type ADDCALL sass_callee_get_type (Sass_Callee_Entry);
-ADDAPI Sass_Env_Frame ADDCALL sass_callee_get_env (Sass_Callee_Entry);
-
-// Getters and Setters for environments (lexical, local and global)
-ADDAPI union Sass_Value* ADDCALL sass_env_get_lexical (Sass_Env_Frame, const char*);
-ADDAPI void ADDCALL sass_env_set_lexical (Sass_Env_Frame, const char*, union Sass_Value*);
-ADDAPI union Sass_Value* ADDCALL sass_env_get_local (Sass_Env_Frame, const char*);
-ADDAPI void ADDCALL sass_env_set_local (Sass_Env_Frame, const char*, union Sass_Value*);
-ADDAPI union Sass_Value* ADDCALL sass_env_get_global (Sass_Env_Frame, const char*);
-ADDAPI void ADDCALL sass_env_set_global (Sass_Env_Frame, const char*, union Sass_Value*);
-
-// Getters for import entry
-ADDAPI const char* ADDCALL sass_import_get_imp_path (Sass_Import_Entry);
-ADDAPI const char* ADDCALL sass_import_get_abs_path (Sass_Import_Entry);
-ADDAPI const char* ADDCALL sass_import_get_source (Sass_Import_Entry);
-ADDAPI const char* ADDCALL sass_import_get_srcmap (Sass_Import_Entry);
-// Explicit functions to take ownership of these items
-// The property on our struct will be reset to NULL
-ADDAPI char* ADDCALL sass_import_take_source (Sass_Import_Entry);
-ADDAPI char* ADDCALL sass_import_take_srcmap (Sass_Import_Entry);
-// Getters from import error entry
-ADDAPI size_t ADDCALL sass_import_get_error_line (Sass_Import_Entry);
-ADDAPI size_t ADDCALL sass_import_get_error_column (Sass_Import_Entry);
-ADDAPI const char* ADDCALL sass_import_get_error_message (Sass_Import_Entry);
-
-// Deallocator for associated memory (incl. entries)
-ADDAPI void ADDCALL sass_delete_import_list (Sass_Import_List);
-// Just in case we have some stray import structs
-ADDAPI void ADDCALL sass_delete_import (Sass_Import_Entry);
-
-
-
-// Creators for sass function list and function descriptors
-ADDAPI Sass_Function_List ADDCALL sass_make_function_list (size_t length);
-ADDAPI Sass_Function_Entry ADDCALL sass_make_function (const char* signature, Sass_Function_Fn cb, void* cookie);
-ADDAPI void ADDCALL sass_delete_function (Sass_Function_Entry entry);
-ADDAPI void ADDCALL sass_delete_function_list (Sass_Function_List list);
-
-// Setters and getters for callbacks on function lists
-ADDAPI Sass_Function_Entry ADDCALL sass_function_get_list_entry(Sass_Function_List list, size_t pos);
-ADDAPI void ADDCALL sass_function_set_list_entry(Sass_Function_List list, size_t pos, Sass_Function_Entry cb);
-
-// Getters for custom function descriptors
-ADDAPI const char* ADDCALL sass_function_get_signature (Sass_Function_Entry cb);
-ADDAPI Sass_Function_Fn ADDCALL sass_function_get_function (Sass_Function_Entry cb);
-ADDAPI void* ADDCALL sass_function_get_cookie (Sass_Function_Entry cb);
-
-
-#ifdef __cplusplus
-} // __cplusplus defined.
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/include/sass/values.h b/node_modules/node-sass/src/libsass/include/sass/values.h
deleted file mode 100644
index 9832038..0000000
--- a/node_modules/node-sass/src/libsass/include/sass/values.h
+++ /dev/null
@@ -1,145 +0,0 @@
-#ifndef SASS_C_VALUES_H
-#define SASS_C_VALUES_H
-
-#include <stddef.h>
-#include <stdbool.h>
-#include <sass/base.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-// Forward declaration
-union Sass_Value;
-
-// Type for Sass values
-enum Sass_Tag {
- SASS_BOOLEAN,
- SASS_NUMBER,
- SASS_COLOR,
- SASS_STRING,
- SASS_LIST,
- SASS_MAP,
- SASS_NULL,
- SASS_ERROR,
- SASS_WARNING
-};
-
-// Tags for denoting Sass list separators
-enum Sass_Separator {
- SASS_COMMA,
- SASS_SPACE,
- // only used internally to represent a hash map before evaluation
- // otherwise we would be too early to check for duplicate keys
- SASS_HASH
-};
-
-// Value Operators
-enum Sass_OP {
- AND, OR, // logical connectives
- EQ, NEQ, GT, GTE, LT, LTE, // arithmetic relations
- ADD, SUB, MUL, DIV, MOD, // arithmetic functions
- NUM_OPS // so we know how big to make the op table
-};
-
-// Creator functions for all value types
-ADDAPI union Sass_Value* ADDCALL sass_make_null (void);
-ADDAPI union Sass_Value* ADDCALL sass_make_boolean (bool val);
-ADDAPI union Sass_Value* ADDCALL sass_make_string (const char* val);
-ADDAPI union Sass_Value* ADDCALL sass_make_qstring (const char* val);
-ADDAPI union Sass_Value* ADDCALL sass_make_number (double val, const char* unit);
-ADDAPI union Sass_Value* ADDCALL sass_make_color (double r, double g, double b, double a);
-ADDAPI union Sass_Value* ADDCALL sass_make_list (size_t len, enum Sass_Separator sep, bool is_bracketed);
-ADDAPI union Sass_Value* ADDCALL sass_make_map (size_t len);
-ADDAPI union Sass_Value* ADDCALL sass_make_error (const char* msg);
-ADDAPI union Sass_Value* ADDCALL sass_make_warning (const char* msg);
-
-// Generic destructor function for all types
-// Will release memory of all associated Sass_Values
-// Means we will delete recursively for lists and maps
-ADDAPI void ADDCALL sass_delete_value (union Sass_Value* val);
-
-// Make a deep cloned copy of the given sass value
-ADDAPI union Sass_Value* ADDCALL sass_clone_value (const union Sass_Value* val);
-
-// Execute an operation for two Sass_Values and return the result as a Sass_Value too
-ADDAPI union Sass_Value* ADDCALL sass_value_op (enum Sass_OP op, const union Sass_Value* a, const union Sass_Value* b);
-
-// Stringify a Sass_Values and also return the result as a Sass_Value (of type STRING)
-ADDAPI union Sass_Value* ADDCALL sass_value_stringify (const union Sass_Value* a, bool compressed, int precision);
-
-// Return the sass tag for a generic sass value
-// Check is needed before accessing specific values!
-ADDAPI enum Sass_Tag ADDCALL sass_value_get_tag (const union Sass_Value* v);
-
-// Check value to be of a specific type
-// Can also be used before accessing properties!
-ADDAPI bool ADDCALL sass_value_is_null (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_number (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_string (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_boolean (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_color (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_list (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_map (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_error (const union Sass_Value* v);
-ADDAPI bool ADDCALL sass_value_is_warning (const union Sass_Value* v);
-
-// Getters and setters for Sass_Number
-ADDAPI double ADDCALL sass_number_get_value (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_number_set_value (union Sass_Value* v, double value);
-ADDAPI const char* ADDCALL sass_number_get_unit (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_number_set_unit (union Sass_Value* v, char* unit);
-
-// Getters and setters for Sass_String
-ADDAPI const char* ADDCALL sass_string_get_value (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_string_set_value (union Sass_Value* v, char* value);
-ADDAPI bool ADDCALL sass_string_is_quoted(const union Sass_Value* v);
-ADDAPI void ADDCALL sass_string_set_quoted(union Sass_Value* v, bool quoted);
-
-// Getters and setters for Sass_Boolean
-ADDAPI bool ADDCALL sass_boolean_get_value (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_boolean_set_value (union Sass_Value* v, bool value);
-
-// Getters and setters for Sass_Color
-ADDAPI double ADDCALL sass_color_get_r (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_color_set_r (union Sass_Value* v, double r);
-ADDAPI double ADDCALL sass_color_get_g (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_color_set_g (union Sass_Value* v, double g);
-ADDAPI double ADDCALL sass_color_get_b (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_color_set_b (union Sass_Value* v, double b);
-ADDAPI double ADDCALL sass_color_get_a (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_color_set_a (union Sass_Value* v, double a);
-
-// Getter for the number of items in list
-ADDAPI size_t ADDCALL sass_list_get_length (const union Sass_Value* v);
-// Getters and setters for Sass_List
-ADDAPI enum Sass_Separator ADDCALL sass_list_get_separator (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_list_set_separator (union Sass_Value* v, enum Sass_Separator value);
-ADDAPI bool ADDCALL sass_list_get_is_bracketed (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_list_set_is_bracketed (union Sass_Value* v, bool value);
-// Getters and setters for Sass_List values
-ADDAPI union Sass_Value* ADDCALL sass_list_get_value (const union Sass_Value* v, size_t i);
-ADDAPI void ADDCALL sass_list_set_value (union Sass_Value* v, size_t i, union Sass_Value* value);
-
-// Getter for the number of items in map
-ADDAPI size_t ADDCALL sass_map_get_length (const union Sass_Value* v);
-// Getters and setters for Sass_Map keys and values
-ADDAPI union Sass_Value* ADDCALL sass_map_get_key (const union Sass_Value* v, size_t i);
-ADDAPI void ADDCALL sass_map_set_key (union Sass_Value* v, size_t i, union Sass_Value*);
-ADDAPI union Sass_Value* ADDCALL sass_map_get_value (const union Sass_Value* v, size_t i);
-ADDAPI void ADDCALL sass_map_set_value (union Sass_Value* v, size_t i, union Sass_Value*);
-
-// Getters and setters for Sass_Error
-ADDAPI char* ADDCALL sass_error_get_message (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_error_set_message (union Sass_Value* v, char* msg);
-
-// Getters and setters for Sass_Warning
-ADDAPI char* ADDCALL sass_warning_get_message (const union Sass_Value* v);
-ADDAPI void ADDCALL sass_warning_set_message (union Sass_Value* v, char* msg);
-
-#ifdef __cplusplus
-} // __cplusplus defined.
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/include/sass/version.h b/node_modules/node-sass/src/libsass/include/sass/version.h
deleted file mode 100644
index 56ea016..0000000
--- a/node_modules/node-sass/src/libsass/include/sass/version.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef SASS_VERSION_H
-#define SASS_VERSION_H
-
-#ifndef LIBSASS_VERSION
-#define LIBSASS_VERSION "[NA]"
-#endif
-
-#ifndef LIBSASS_LANGUAGE_VERSION
-#define LIBSASS_LANGUAGE_VERSION "3.5"
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/include/sass/version.h.in b/node_modules/node-sass/src/libsass/include/sass/version.h.in
deleted file mode 100644
index b8d4072..0000000
--- a/node_modules/node-sass/src/libsass/include/sass/version.h.in
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef SASS_VERSION_H
-#define SASS_VERSION_H
-
-#ifndef LIBSASS_VERSION
-#define LIBSASS_VERSION "@PACKAGE_VERSION@"
-#endif
-
-#ifndef LIBSASS_LANGUAGE_VERSION
-#define LIBSASS_LANGUAGE_VERSION "3.5"
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/include/sass2scss.h b/node_modules/node-sass/src/libsass/include/sass2scss.h
deleted file mode 100644
index 8736b2c..0000000
--- a/node_modules/node-sass/src/libsass/include/sass2scss.h
+++ /dev/null
@@ -1,120 +0,0 @@
-/**
- * sass2scss
- * Licensed under the MIT License
- * Copyright (c) Marcel Greter
- */
-
-#ifndef SASS2SCSS_H
-#define SASS2SCSS_H
-
-#ifdef _WIN32
-
- /* You should define ADD_EXPORTS *only* when building the DLL. */
- #ifdef ADD_EXPORTS
- #define ADDAPI __declspec(dllexport)
- #define ADDCALL __cdecl
- #else
- #define ADDAPI
- #define ADDCALL
- #endif
-
-#else /* _WIN32 not defined. */
-
- /* Define with no value on non-Windows OSes. */
- #define ADDAPI
- #define ADDCALL
-
-#endif
-
-#ifdef __cplusplus
-
-#include <stack>
-#include <string>
-#include <cstring>
-#include <sstream>
-#include <iostream>
-
-#ifndef SASS2SCSS_VERSION
-// Hardcode once the file is copied from
-// https://github.com/mgreter/sass2scss
-#define SASS2SCSS_VERSION "1.1.1"
-#endif
-
-// add namespace for c++
-namespace Sass
-{
-
- // pretty print options
- const int SASS2SCSS_PRETTIFY_0 = 0;
- const int SASS2SCSS_PRETTIFY_1 = 1;
- const int SASS2SCSS_PRETTIFY_2 = 2;
- const int SASS2SCSS_PRETTIFY_3 = 3;
-
- // remove one-line comment
- const int SASS2SCSS_KEEP_COMMENT = 32;
- // remove multi-line comments
- const int SASS2SCSS_STRIP_COMMENT = 64;
- // convert one-line to multi-line
- const int SASS2SCSS_CONVERT_COMMENT = 128;
-
- // String for finding something interesting
- const std::string SASS2SCSS_FIND_WHITESPACE = " \t\n\v\f\r";
-
- // converter struct
- // holding all states
- struct converter
- {
- // bit options
- int options;
- // is selector
- bool selector;
- // concat lists
- bool comma;
- // has property
- bool property;
- // has semicolon
- bool semicolon;
- // comment context
- std::string comment;
- // flag end of file
- bool end_of_file;
- // whitespace buffer
- std::string whitespace;
- // context/block stack
- std::stack<std::string> indents;
- };
-
- // function only available in c++ code
- char* sass2scss (const std::string& sass, const int options);
-
-}
-// EO namespace
-
-// declare for c
-extern "C" {
-#endif
-
- // prettyfy print options
- #define SASS2SCSS_PRETTIFY_0 0
- #define SASS2SCSS_PRETTIFY_1 1
- #define SASS2SCSS_PRETTIFY_2 2
- #define SASS2SCSS_PRETTIFY_3 3
-
- // keep one-line comments
- #define SASS2SCSS_KEEP_COMMENT 32
- // remove multi-line comments
- #define SASS2SCSS_STRIP_COMMENT 64
- // convert one-line to multi-line
- #define SASS2SCSS_CONVERT_COMMENT 128
-
- // available to c and c++ code
- ADDAPI char* ADDCALL sass2scss (const char* sass, const int options);
-
- // Get compiled sass2scss version
- ADDAPI const char* ADDCALL sass2scss_version(void);
-
-#ifdef __cplusplus
-} // __cplusplus defined.
-#endif
-
-#endif \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/m4/.gitkeep b/node_modules/node-sass/src/libsass/m4/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/node-sass/src/libsass/m4/.gitkeep
+++ /dev/null
diff --git a/node_modules/node-sass/src/libsass/m4/m4-ax_cxx_compile_stdcxx_11.m4 b/node_modules/node-sass/src/libsass/m4/m4-ax_cxx_compile_stdcxx_11.m4
deleted file mode 100644
index 395b13d..0000000
--- a/node_modules/node-sass/src/libsass/m4/m4-ax_cxx_compile_stdcxx_11.m4
+++ /dev/null
@@ -1,167 +0,0 @@
-# ============================================================================
-# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
-# ============================================================================
-#
-# SYNOPSIS
-#
-# AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional])
-#
-# DESCRIPTION
-#
-# Check for baseline language coverage in the compiler for the C++11
-# standard; if necessary, add switches to CXXFLAGS to enable support.
-#
-# The first argument, if specified, indicates whether you insist on an
-# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
-# -std=c++11). If neither is specified, you get whatever works, with
-# preference for an extended mode.
-#
-# The second argument, if specified 'mandatory' or if left unspecified,
-# indicates that baseline C++11 support is required and that the macro
-# should error out if no mode with that support is found. If specified
-# 'optional', then configuration proceeds regardless, after defining
-# HAVE_CXX11 if and only if a supporting mode is found.
-#
-# LICENSE
-#
-# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
-# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
-# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
-# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
-#
-# Copying and distribution of this file, with or without modification, are
-# permitted in any medium without royalty provided the copyright notice
-# and this notice are preserved. This file is offered as-is, without any
-# warranty.
-
-#serial 11
-
-m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[
- template <typename T>
- struct check
- {
- static_assert(sizeof(int) <= sizeof(T), "not big enough");
- };
-
- struct Base {
- virtual void f() {}
- };
- struct Child : public Base {
- virtual void f() override {}
- };
-
- typedef check<check<bool>> right_angle_brackets;
-
- int a;
- decltype(a) b;
-
- typedef check<int> check_type;
- check_type c;
- check_type&& cr = static_cast<check_type&&>(c);
-
- auto d = a;
- auto l = [](){};
- // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
- struct use_l { use_l() { l(); } };
-
- // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
- // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
- namespace test_template_alias_sfinae {
- struct foo {};
-
- template<typename T>
- using member = typename T::member_type;
-
- template<typename T>
- void func(...) {}
-
- template<typename T>
- void func(member<T>*) {}
-
- void test();
-
- void test() {
- func<foo>(0);
- }
- }
-]])
-
-AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
- m4_if([$1], [], [],
- [$1], [ext], [],
- [$1], [noext], [],
- [m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl
- m4_if([$2], [], [ax_cxx_compile_cxx11_required=true],
- [$2], [mandatory], [ax_cxx_compile_cxx11_required=true],
- [$2], [optional], [ax_cxx_compile_cxx11_required=false],
- [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])
- AC_LANG_PUSH([C++])dnl
- ac_success=no
- AC_CACHE_CHECK(whether $CXX supports C++11 features by default,
- ax_cv_cxx_compile_cxx11,
- [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
- [ax_cv_cxx_compile_cxx11=yes],
- [ax_cv_cxx_compile_cxx11=no])])
- if test x$ax_cv_cxx_compile_cxx11 = xyes; then
- ac_success=yes
- fi
-
- m4_if([$1], [noext], [], [dnl
- if test x$ac_success = xno; then
- for switch in -std=gnu++11 -std=gnu++0x; do
- cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
- AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
- $cachevar,
- [ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $switch"
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
- [eval $cachevar=yes],
- [eval $cachevar=no])
- CXXFLAGS="$ac_save_CXXFLAGS"])
- if eval test x\$$cachevar = xyes; then
- CXXFLAGS="$CXXFLAGS $switch"
- ac_success=yes
- break
- fi
- done
- fi])
-
- m4_if([$1], [ext], [], [dnl
- if test x$ac_success = xno; then
- dnl HP's aCC needs +std=c++11 according to:
- dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
- for switch in -std=c++11 -std=c++0x +std=c++11; do
- cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
- AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
- $cachevar,
- [ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $switch"
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
- [eval $cachevar=yes],
- [eval $cachevar=no])
- CXXFLAGS="$ac_save_CXXFLAGS"])
- if eval test x\$$cachevar = xyes; then
- CXXFLAGS="$CXXFLAGS $switch"
- ac_success=yes
- break
- fi
- done
- fi])
- AC_LANG_POP([C++])
- if test x$ax_cxx_compile_cxx11_required = xtrue; then
- if test x$ac_success = xno; then
- AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.])
- fi
- else
- if test x$ac_success = xno; then
- HAVE_CXX11=0
- AC_MSG_NOTICE([No compiler with C++11 support was found])
- else
- HAVE_CXX11=1
- AC_DEFINE(HAVE_CXX11,1,
- [define if the compiler supports basic C++11 syntax])
- fi
-
- AC_SUBST(HAVE_CXX11)
- fi
-])
diff --git a/node_modules/node-sass/src/libsass/res/resource.rc b/node_modules/node-sass/src/libsass/res/resource.rc
deleted file mode 100644
index fc49e6a..0000000
--- a/node_modules/node-sass/src/libsass/res/resource.rc
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <windows.h>
-
-// DLL version information.
-VS_VERSION_INFO VERSIONINFO
-FILEVERSION 1,0,0,0
-PRODUCTVERSION 1,0,0,0
-FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
-#ifdef _DEBUG
- FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE
-#else
- FILEFLAGS 0
-#endif
-FILEOS VOS_NT_WINDOWS32
-FILETYPE VFT_DLL
-FILESUBTYPE VFT2_UNKNOWN
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "080904b0"
- BEGIN
- VALUE "CompanyName", "Sass Open Source Foundation"
- VALUE "FileDescription", "A C/C++ implementation of a Sass compiler"
- VALUE "FileVersion", "1.0.0.0"
- VALUE "InternalName", "libsass"
- VALUE "LegalCopyright", "\251 2017 libsass.org"
- VALUE "OriginalFilename", "libsass.dll"
- VALUE "ProductName", "LibSass Library"
- VALUE "ProductVersion", "1.0.0.0"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x809, 1200
- END
-END
diff --git a/node_modules/node-sass/src/libsass/script/bootstrap b/node_modules/node-sass/src/libsass/script/bootstrap
deleted file mode 100755
index ab82fac..0000000
--- a/node_modules/node-sass/src/libsass/script/bootstrap
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-script/branding
-
-: ${SASS_SPEC_PATH:="sass-spec"}
-: ${SASS_SASSC_PATH:="sassc" }
-
-if [ ! -d $SASS_SPEC_PATH ]; then
- git clone https://github.com/sass/sass-spec.git $SASS_SPEC_PATH
-fi
-if [ ! -d $SASS_SASSC_PATH ]; then
- git clone https://github.com/sass/sassc.git $SASS_SASSC_PATH
-fi
diff --git a/node_modules/node-sass/src/libsass/script/branding b/node_modules/node-sass/src/libsass/script/branding
deleted file mode 100755
index cd8cb2a..0000000
--- a/node_modules/node-sass/src/libsass/script/branding
+++ /dev/null
@@ -1,10 +0,0 @@
-#! /bin/bash
-
-echo " "
-echo " _ ___ ____ ____ _ ____ ____ "
-echo "| | |_ _| __ ) ___| / \ / ___/ ___| "
-echo "| | | || _ \___ \ / _ \ \___ \___ \ "
-echo "| |___ | || |_) |__) / ___ \ ___) |__) |"
-echo "|_____|___|____/____/_/ \_\____/____/ "
-echo " "
-
diff --git a/node_modules/node-sass/src/libsass/script/ci-build-libsass b/node_modules/node-sass/src/libsass/script/ci-build-libsass
deleted file mode 100755
index 40ea22f..0000000
--- a/node_modules/node-sass/src/libsass/script/ci-build-libsass
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/bash
-
-set -e
-
-script/bootstrap
-
-# export this path right here (was in script/spec before)
-export SASS_LIBSASS_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../ && pwd )"
-
-# use some defaults if not running under travis ci
-if [ "x$CONTINUOUS_INTEGRATION" == "x" ]; then export CONTINUOUS_INTEGRATION=true; fi
-if [ "x$TRAVIS_BUILD_DIR" == "x" ]; then export TRAVIS_BUILD_DIR=$(pwd); fi
-if [ "x$SASS_SASSC_PATH" == "x" ]; then export SASS_SASSC_PATH=$(pwd)/sassc; fi
-if [ "x$SASS_SPEC_PATH" == "x" ]; then export SASS_SPEC_PATH=$(pwd)/sass-spec; fi
-
-# try to get the os name from uname (and filter via perl - probably not the most portable way?)
-if [ "x$TRAVIS_OS_NAME" == "x" ]; then export TRAVIS_OS_NAME=`uname -s | perl -ne 'print lc \$1 if\(/^([a-zA-Z]+)/'\)`; fi
-
-if [ "x$COVERAGE" == "xyes" ]; then
- COVERAGE_OPT="--enable-coverage"
- export EXTRA_CFLAGS="-fprofile-arcs -ftest-coverage"
- export EXTRA_CXXFLAGS="-fprofile-arcs -ftest-coverage"
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
- # osx doesn't seem to know gcov lib?
- export EXTRA_LDFLAGS="--coverage"
- else
- export EXTRA_LDFLAGS="-lgcov --coverage"
- fi
-else
- COVERAGE_OPT="--disable-coverage"
-fi
-
-if [ "x$BUILD" == "xstatic" ]; then
- SHARED_OPT="--disable-shared --enable-static"
- MAKE_TARGET="static"
-else
- # Makefile of sassc wants to link to static
- SHARED_OPT="--enable-shared --enable-static"
- MAKE_TARGET="shared"
-fi
-
-if [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
- MAKE_OPTS="$MAKE_OPTS -j1 V=1"
-else
- MAKE_OPTS="$MAKE_OPTS -j5 V=1"
-fi
-
-if [ "x$PREFIX" == "x" ]; then
- if [ "x$TRAVIS_BUILD_DIR" == "x" ]; then
- PREFIX=$SASS_LIBSASS_PATH/build
- else
- PREFIX=$TRAVIS_BUILD_DIR/build
- fi
-fi
-
-# enable address sanitation
-# https://en.wikipedia.org/wiki/AddressSanitizer
-if [ "x$CC" == "xclang" ]; then
- if [ "x$COVERAGE" != "xyes" ]; then
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
- export EXTRA_CFLAGS="$EXTRA_CFLAGS -fsanitize=address"
- export EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -fsanitize=address"
- export EXTRA_LDFLAGS="$EXTRA_LDFLAGS -fsanitize=address"
- fi
- fi
-fi
-
-echo SASS_LIBSASS_PATH: $SASS_LIBSASS_PATH
-echo TRAVIS_BUILD_DIR: $TRAVIS_BUILD_DIR
-echo SASS_SASSC_PATH: $SASS_SASSC_PATH
-echo SASS_SPEC_PATH: $SASS_SPEC_PATH
-echo INSTALL_LOCATION: $PREFIX
-
-if [ "x$AUTOTOOLS" == "xyes" ]; then
-
- echo -en 'travis_fold:start:configure\r'
- autoreconf --force --install
- ./configure --enable-tests $COVERAGE_OPT \
- --disable-silent-rules \
- --with-sassc-dir=$SASS_SASSC_PATH \
- --with-sass-spec-dir=$SASS_SPEC_PATH \
- --prefix=$PREFIX \
- ${SHARED_OPT}
- echo -en 'travis_fold:end:configure\r'
-
- make $MAKE_OPTS clean
-
- # install to prefix directory
- PREFIX="$PREFIX" make $MAKE_OPTS install
-
-else
-
- make $MAKE_OPTS clean
-
-fi
-
-# install to prefix directory
-PREFIX="$PREFIX" make $MAKE_OPTS install
-
-ls -la $PREFIX/*
-
-echo successfully compiled libsass
-echo AUTOTOOLS=$AUTOTOOLS COVERAGE=$COVERAGE BUILD=$BUILD
-
-if [ "$CONTINUOUS_INTEGRATION" == "true" ] && [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "x$TRAVIS_PULL_REQUEST" != "x" ] &&
- ([ "$TRAVIS_OS_NAME" == "linux" ] || [ "$TRAVIS_OS_NAME" == "osx" ] || [ "$TRAVIS_OS_NAME" == "cygwin" ]);
-then
-
- echo "Fetching PR $TRAVIS_PULL_REQUEST"
-
- JSON=$(curl -L -sS https://api.github.com/repos/sass/libsass/pulls/$TRAVIS_PULL_REQUEST)
-
- if [[ $JSON =~ "API rate limit exceeded" ]];
- then
- echo "Travis rate limit on github exceeded"
- echo "Retrying via 'special purpose proxy'"
- JSON=$(curl -L -sS https://github-api-reverse-proxy.herokuapp.com/repos/sass/libsass/pulls/$TRAVIS_PULL_REQUEST)
- fi
-
- RE_SPEC_PR="sass\/sass-spec(#|\/pull\/)([0-9]+)"
-
- if [[ $JSON =~ $RE_SPEC_PR ]];
- then
- SPEC_PR="${BASH_REMATCH[2]}"
- echo "Fetching Sass Spec PR $SPEC_PR"
- git -C sass-spec fetch -u origin pull/$SPEC_PR/head:ci-spec-pr-$SPEC_PR
- git -C sass-spec checkout --force ci-spec-pr-$SPEC_PR
- LD_LIBRARY_PATH="$PREFIX/lib/" make $MAKE_OPTS test_probe
- else
- LD_LIBRARY_PATH="$PREFIX/lib/" make $MAKE_OPTS test_probe
- fi
-else
- LD_LIBRARY_PATH="$PREFIX/lib/" make $MAKE_OPTS test_probe
-fi
diff --git a/node_modules/node-sass/src/libsass/script/ci-build-plugin b/node_modules/node-sass/src/libsass/script/ci-build-plugin
deleted file mode 100755
index 0dd67b9..0000000
--- a/node_modules/node-sass/src/libsass/script/ci-build-plugin
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/bash
-
-PLUGIN=$1
-RUBY_BIN=ruby
-SASS_SPEC_PATH=sass-spec
-SASSC_BIN=sassc/bin/sassc
-SASS_SPEC_SPEC_DIR=plugins/libsass-${PLUGIN}/test
-
-if [ -e ./tester ] ; then
- SASSC_BIN=./tester
-fi
-
-if [ -d ./build/lib ] ; then
- cp -a build/lib lib
-fi
-
-if [ "x$1" == "x" ] ; then
- echo "No plugin name given"
- exit 1
-fi
-
-if [ "x$COVERAGE" == "0" ] ; then
- unset COVERAGE
-fi
-
-export EXTRA_CFLAGS=""
-export EXTRA_CXXFLAGS=""
-if [ "$TRAVIS_OS_NAME" == "osx" ]; then
- # osx doesn't seem to know gcov lib?
- export EXTRA_LDFLAGS="--coverage"
-else
- export EXTRA_LDFLAGS="-lgcov --coverage"
-fi
-
-mkdir -p plugins
-if [ ! -d plugins/libsass-${PLUGIN} ] ; then
- git clone https://github.com/mgreter/libsass-${PLUGIN} plugins/libsass-${PLUGIN}
-fi
-if [ ! -d plugins/libsass-${PLUGIN}/build ] ; then
- mkdir plugins/libsass-${PLUGIN}/build
-fi
-RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi
-
-cd plugins/libsass-${PLUGIN}/build
-cmake -G "Unix Makefiles" -D LIBSASS_DIR="../../.." ..
-RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi
-make VERBOSE=1 -j2
-RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi
-cd ../../..
-
-# glob only works on paths relative to imports
-if [ "x$PLUGIN" == "xglob" ]; then
- ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN}/build ${SASS_SPEC_SPEC_DIR}/basic/input.scss > ${SASS_SPEC_SPEC_DIR}/basic/result.css
- ${SASSC_BIN} --plugin-path plugins/libsass-${PLUGIN}/build ${SASS_SPEC_SPEC_DIR}/basic/input.scss --sourcemap > /dev/null
-else
- cat ${SASS_SPEC_SPEC_DIR}/basic/input.scss | ${SASSC_BIN} --precision 5 --plugin-path plugins/libsass-${PLUGIN}/build -I ${SASS_SPEC_SPEC_DIR}/basic > ${SASS_SPEC_SPEC_DIR}/basic/result.css
- cat ${SASS_SPEC_SPEC_DIR}/basic/input.scss | ${SASSC_BIN} --precision 5 --plugin-path plugins/libsass-${PLUGIN}/build -I ${SASS_SPEC_SPEC_DIR}/basic --sourcemap > /dev/null
-fi
-RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi
-
-diff ${SASS_SPEC_SPEC_DIR}/basic/expected_output.css ${SASS_SPEC_SPEC_DIR}/basic/result.css
-RETVAL=$?; if [ "$RETVAL" != "0" ]; then exit $RETVAL; fi
diff --git a/node_modules/node-sass/src/libsass/script/ci-install-compiler b/node_modules/node-sass/src/libsass/script/ci-install-compiler
deleted file mode 100755
index 3a68b3a..0000000
--- a/node_modules/node-sass/src/libsass/script/ci-install-compiler
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-gem install minitest
-gem install minitap
-
-pip2 install --user 'requests[security]'
diff --git a/node_modules/node-sass/src/libsass/script/ci-install-deps b/node_modules/node-sass/src/libsass/script/ci-install-deps
deleted file mode 100755
index 27b485a..0000000
--- a/node_modules/node-sass/src/libsass/script/ci-install-deps
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-if [ "x$COVERAGE" == "xyes" ]; then
- pip2 install --user gcovr
- pip2 install --user cpp-coveralls
-else
- echo "no dependencies to install"
-fi
-
-if [ "x$AUTOTOOLS" == "xyes" ]; then
- AUTOTOOLS=yes
-
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
- sudo add-apt-repository -y ppa:rbose-debianizer/automake &> /dev/null
- sudo apt-get -qq update
- sudo apt-get -qq install automake
- fi
-
-fi
-
-exit 0
diff --git a/node_modules/node-sass/src/libsass/script/ci-report-coverage b/node_modules/node-sass/src/libsass/script/ci-report-coverage
deleted file mode 100755
index 495cb05..0000000
--- a/node_modules/node-sass/src/libsass/script/ci-report-coverage
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-if [ "x$COVERAGE" = "xyes" ]; then
-
- # find / -name "gcovr"
- # find / -name "coveralls"
- # this is only needed for mac os x builds!
- PATH=$PATH:/Users/travis/Library/Python/2.7/bin/
-
-
- # exclude some directories from profiling (.libs is from autotools)
- export EXCLUDE_COVERAGE="--exclude plugins
- --exclude sassc/sassc.c
- --exclude src/sass-spec
- --exclude src/.libs
- --exclude src/debug.hpp
- --exclude src/json.cpp
- --exclude src/json.hpp
- --exclude src/cencode.c
- --exclude src/b64
- --exclude src/utf8
- --exclude src/utf8_string.hpp
- --exclude src/utf8.h
- --exclude src/utf8_string.cpp
- --exclude src/sass2scss.h
- --exclude src/sass2scss.cpp
- --exclude src/test
- --exclude src/posix
- --exclude src/debugger.hpp"
- # debug used gcov version
- # option not available on mac
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then
- gcov -v
- fi
- # create summarized report
- gcovr -r .
- # submit report to coveralls.io
- coveralls $EXCLUDE_COVERAGE --gcov-options '\-lp'
-
-else
- echo "skip coverage reporting"
-fi
diff --git a/node_modules/node-sass/src/libsass/script/spec b/node_modules/node-sass/src/libsass/script/spec
deleted file mode 100755
index d0b864a..0000000
--- a/node_modules/node-sass/src/libsass/script/spec
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-script/bootstrap
-
-make $MAKE_OPTS test_build
diff --git a/node_modules/node-sass/src/libsass/script/tap-driver b/node_modules/node-sass/src/libsass/script/tap-driver
deleted file mode 100755
index ed8a9a9..0000000
--- a/node_modules/node-sass/src/libsass/script/tap-driver
+++ /dev/null
@@ -1,652 +0,0 @@
-#!/usr/bin/env sh
-# Copyright (C) 2011-2013 Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# This file is maintained in Automake, please report
-# bugs to <bug-automake@gnu.org> or send patches to
-# <automake-patches@gnu.org>.
-
-scriptversion=2011-12-27.17; # UTC
-
-# Make unconditional expansion of undefined variables an error. This
-# helps a lot in preventing typo-related bugs.
-set -u
-
-me=tap-driver.sh
-
-fatal ()
-{
- echo "$me: fatal: $*" >&2
- exit 1
-}
-
-usage_error ()
-{
- echo "$me: $*" >&2
- print_usage >&2
- exit 2
-}
-
-print_usage ()
-{
- cat <<END
-Usage:
- tap-driver.sh --test-name=NAME --log-file=PATH --trs-file=PATH
- [--expect-failure={yes|no}] [--color-tests={yes|no}]
- [--enable-hard-errors={yes|no}] [--ignore-exit]
- [--diagnostic-string=STRING] [--merge|--no-merge]
- [--comments|--no-comments] [--] TEST-COMMAND
-The \`--test-name', \`--log-file' and \`--trs-file' options are mandatory.
-END
-}
-
-# TODO: better error handling in option parsing (in particular, ensure
-# TODO: $log_file, $trs_file and $test_name are defined).
-test_name= # Used for reporting.
-log_file= # Where to save the result and output of the test script.
-trs_file= # Where to save the metadata of the test run.
-expect_failure=0
-color_tests=0
-merge=0
-ignore_exit=0
-comments=0
-diag_string='#'
-while test $# -gt 0; do
- case $1 in
- --help) print_usage; exit $?;;
- --version) echo "$me $scriptversion"; exit $?;;
- --test-name) test_name=$2; shift;;
- --log-file) log_file=$2; shift;;
- --trs-file) trs_file=$2; shift;;
- --color-tests) color_tests=$2; shift;;
- --expect-failure) expect_failure=$2; shift;;
- --enable-hard-errors) shift;; # No-op.
- --merge) merge=1;;
- --no-merge) merge=0;;
- --ignore-exit) ignore_exit=1;;
- --comments) comments=1;;
- --no-comments) comments=0;;
- --diagnostic-string) diag_string=$2; shift;;
- --) shift; break;;
- -*) usage_error "invalid option: '$1'";;
- esac
- shift
-done
-
-test $# -gt 0 || usage_error "missing test command"
-
-case $expect_failure in
- yes) expect_failure=1;;
- *) expect_failure=0;;
-esac
-
-if test $color_tests = yes; then
- init_colors='
- color_map["red"]="" # Red.
- color_map["grn"]="" # Green.
- color_map["lgn"]="" # Light green.
- color_map["blu"]="" # Blue.
- color_map["mgn"]="" # Magenta.
- color_map["std"]="" # No color.
- color_for_result["ERROR"] = "mgn"
- color_for_result["PASS"] = "grn"
- color_for_result["XPASS"] = "red"
- color_for_result["FAIL"] = "red"
- color_for_result["XFAIL"] = "lgn"
- color_for_result["SKIP"] = "blu"'
-else
- init_colors=''
-fi
-
-# :; is there to work around a bug in bash 3.2 (and earlier) which
-# does not always set '$?' properly on redirection failure.
-# See the Autoconf manual for more details.
-:;{
- (
- # Ignore common signals (in this subshell only!), to avoid potential
- # problems with Korn shells. Some Korn shells are known to propagate
- # to themselves signals that have killed a child process they were
- # waiting for; this is done at least for SIGINT (and usually only for
- # it, in truth). Without the `trap' below, such a behaviour could
- # cause a premature exit in the current subshell, e.g., in case the
- # test command it runs gets terminated by a SIGINT. Thus, the awk
- # script we are piping into would never seen the exit status it
- # expects on its last input line (which is displayed below by the
- # last `echo $?' statement), and would thus die reporting an internal
- # error.
- # For more information, see the Autoconf manual and the threads:
- # <http://lists.gnu.org/archive/html/bug-autoconf/2011-09/msg00004.html>
- # <http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2009-February/004121.html>
- trap : 1 3 2 13 15
- if test $merge -gt 0; then
- exec 2>&1
- else
- exec 2>&3
- fi
- "$@"
- echo $?
- ) | LC_ALL=C ${AM_TAP_AWK-awk} \
- -v me="$me" \
- -v test_script_name="$test_name" \
- -v log_file="$log_file" \
- -v trs_file="$trs_file" \
- -v expect_failure="$expect_failure" \
- -v merge="$merge" \
- -v ignore_exit="$ignore_exit" \
- -v comments="$comments" \
- -v diag_string="$diag_string" \
-'
-# FIXME: the usages of "cat >&3" below could be optimized when using
-# FIXME: GNU awk, and/on on systems that supports /dev/fd/.
-
-# Implementation note: in what follows, `result_obj` will be an
-# associative array that (partly) simulates a TAP result object
-# from the `TAP::Parser` perl module.
-
-## ----------- ##
-## FUNCTIONS ##
-## ----------- ##
-
-function fatal(msg)
-{
- print me ": " msg | "cat >&2"
- exit 1
-}
-
-function abort(where)
-{
- fatal("internal error " where)
-}
-
-# Convert a boolean to a "yes"/"no" string.
-function yn(bool)
-{
- return bool ? "yes" : "no";
-}
-
-function add_test_result(result)
-{
- if (!test_results_index)
- test_results_index = 0
- test_results_list[test_results_index] = result
- test_results_index += 1
- test_results_seen[result] = 1;
-}
-
-# Whether the test script should be re-run by "make recheck".
-function must_recheck()
-{
- for (k in test_results_seen)
- if (k != "XFAIL" && k != "PASS" && k != "SKIP")
- return 1
- return 0
-}
-
-# Whether the content of the log file associated to this test should
-# be copied into the "global" test-suite.log.
-function copy_in_global_log()
-{
- for (k in test_results_seen)
- if (k != "PASS")
- return 1
- return 0
-}
-
-# FIXME: this can certainly be improved ...
-function get_global_test_result()
-{
- if ("ERROR" in test_results_seen)
- return "ERROR"
- if ("FAIL" in test_results_seen || "XPASS" in test_results_seen)
- return "FAIL"
- all_skipped = 1
- for (k in test_results_seen)
- if (k != "SKIP")
- all_skipped = 0
- if (all_skipped)
- return "SKIP"
- return "PASS";
-}
-
-function stringify_result_obj(result_obj)
-{
- if (result_obj["is_unplanned"] || result_obj["number"] != testno)
- return "ERROR"
-
- if (plan_seen == LATE_PLAN)
- return "ERROR"
-
- if (result_obj["directive"] == "TODO")
- return result_obj["is_ok"] ? "XPASS" : "XFAIL"
-
- if (result_obj["directive"] == "SKIP")
- return result_obj["is_ok"] ? "SKIP" : COOKED_FAIL;
-
- if (length(result_obj["directive"]))
- abort("in function stringify_result_obj()")
-
- return result_obj["is_ok"] ? COOKED_PASS : COOKED_FAIL
-}
-
-function decorate_result(result)
-{
- color_name = color_for_result[result]
- if (color_name)
- return color_map[color_name] "" result "" color_map["std"]
- # If we are not using colorized output, or if we do not know how
- # to colorize the given result, we should return it unchanged.
- return result
-}
-
-function report(result, details)
-{
- if (result ~ /^(X?(PASS|FAIL)|SKIP|ERROR)/)
- {
- msg = ": " test_script_name
- add_test_result(result)
- }
- else if (result == "#")
- {
- msg = " " test_script_name ":"
- }
- else
- {
- abort("in function report()")
- }
- if (length(details))
- msg = msg " " details
- # Output on console might be colorized.
- print decorate_result(result) msg
- # Log the result in the log file too, to help debugging (this is
- # especially true when said result is a TAP error or "Bail out!").
- print result msg | "cat >&3";
-}
-
-function testsuite_error(error_message)
-{
- report("ERROR", "- " error_message)
-}
-
-function handle_tap_result()
-{
- details = result_obj["number"];
- if (length(result_obj["description"]))
- details = details " " result_obj["description"]
-
- if (plan_seen == LATE_PLAN)
- {
- details = details " # AFTER LATE PLAN";
- }
- else if (result_obj["is_unplanned"])
- {
- details = details " # UNPLANNED";
- }
- else if (result_obj["number"] != testno)
- {
- details = sprintf("%s # OUT-OF-ORDER (expecting %d)",
- details, testno);
- }
- else if (result_obj["directive"])
- {
- details = details " # " result_obj["directive"];
- if (length(result_obj["explanation"]))
- details = details " " result_obj["explanation"]
- }
-
- report(stringify_result_obj(result_obj), details)
-}
-
-# `skip_reason` should be empty whenever planned > 0.
-function handle_tap_plan(planned, skip_reason)
-{
- planned += 0 # Avoid getting confused if, say, `planned` is "00"
- if (length(skip_reason) && planned > 0)
- abort("in function handle_tap_plan()")
- if (plan_seen)
- {
- # Error, only one plan per stream is acceptable.
- testsuite_error("multiple test plans")
- return;
- }
- planned_tests = planned
- # The TAP plan can come before or after *all* the TAP results; we speak
- # respectively of an "early" or a "late" plan. If we see the plan line
- # after at least one TAP result has been seen, assume we have a late
- # plan; in this case, any further test result seen after the plan will
- # be flagged as an error.
- plan_seen = (testno >= 1 ? LATE_PLAN : EARLY_PLAN)
- # If testno > 0, we have an error ("too many tests run") that will be
- # automatically dealt with later, so do not worry about it here. If
- # $plan_seen is true, we have an error due to a repeated plan, and that
- # has already been dealt with above. Otherwise, we have a valid "plan
- # with SKIP" specification, and should report it as a particular kind
- # of SKIP result.
- if (planned == 0 && testno == 0)
- {
- if (length(skip_reason))
- skip_reason = "- " skip_reason;
- report("SKIP", skip_reason);
- }
-}
-
-function extract_tap_comment(line)
-{
- if (index(line, diag_string) == 1)
- {
- # Strip leading `diag_string` from `line`.
- line = substr(line, length(diag_string) + 1)
- # And strip any leading and trailing whitespace left.
- sub("^[ \t]*", "", line)
- sub("[ \t]*$", "", line)
- # Return what is left (if any).
- return line;
- }
- return "";
-}
-
-# When this function is called, we know that line is a TAP result line,
-# so that it matches the (perl) RE "^(not )?ok\b".
-function setup_result_obj(line)
-{
- # Get the result, and remove it from the line.
- result_obj["is_ok"] = (substr(line, 1, 2) == "ok" ? 1 : 0)
- sub("^(not )?ok[ \t]*", "", line)
-
- # If the result has an explicit number, get it and strip it; otherwise,
- # automatically assing the next progresive number to it.
- if (line ~ /^[0-9]+$/ || line ~ /^[0-9]+[^a-zA-Z0-9_]/)
- {
- match(line, "^[0-9]+")
- # The final `+ 0` is to normalize numbers with leading zeros.
- result_obj["number"] = substr(line, 1, RLENGTH) + 0
- line = substr(line, RLENGTH + 1)
- }
- else
- {
- result_obj["number"] = testno
- }
-
- if (plan_seen == LATE_PLAN)
- # No further test results are acceptable after a "late" TAP plan
- # has been seen.
- result_obj["is_unplanned"] = 1
- else if (plan_seen && testno > planned_tests)
- result_obj["is_unplanned"] = 1
- else
- result_obj["is_unplanned"] = 0
-
- # Strip trailing and leading whitespace.
- sub("^[ \t]*", "", line)
- sub("[ \t]*$", "", line)
-
- # This will have to be corrected if we have a "TODO"/"SKIP" directive.
- result_obj["description"] = line
- result_obj["directive"] = ""
- result_obj["explanation"] = ""
-
- if (index(line, "#") == 0)
- return # No possible directive, nothing more to do.
-
- # Directives are case-insensitive.
- rx = "[ \t]*#[ \t]*([tT][oO][dD][oO]|[sS][kK][iI][pP])[ \t]*"
-
- # See whether we have the directive, and if yes, where.
- pos = match(line, rx "$")
- if (!pos)
- pos = match(line, rx "[^a-zA-Z0-9_]")
-
- # If there was no TAP directive, we have nothing more to do.
- if (!pos)
- return
-
- # Let`s now see if the TAP directive has been escaped. For example:
- # escaped: ok \# SKIP
- # not escaped: ok \\# SKIP
- # escaped: ok \\\\\# SKIP
- # not escaped: ok \ # SKIP
- if (substr(line, pos, 1) == "#")
- {
- bslash_count = 0
- for (i = pos; i > 1 && substr(line, i - 1, 1) == "\\"; i--)
- bslash_count += 1
- if (bslash_count % 2)
- return # Directive was escaped.
- }
-
- # Strip the directive and its explanation (if any) from the test
- # description.
- result_obj["description"] = substr(line, 1, pos - 1)
- # Now remove the test description from the line, that has been dealt
- # with already.
- line = substr(line, pos)
- # Strip the directive, and save its value (normalized to upper case).
- sub("^[ \t]*#[ \t]*", "", line)
- result_obj["directive"] = toupper(substr(line, 1, 4))
- line = substr(line, 5)
- # Now get the explanation for the directive (if any), with leading
- # and trailing whitespace removed.
- sub("^[ \t]*", "", line)
- sub("[ \t]*$", "", line)
- result_obj["explanation"] = line
-}
-
-function get_test_exit_message(status)
-{
- if (status == 0)
- return ""
- if (status !~ /^[1-9][0-9]*$/)
- abort("getting exit status")
- if (status < 127)
- exit_details = ""
- else if (status == 127)
- exit_details = " (command not found?)"
- else if (status >= 128 && status <= 255)
- exit_details = sprintf(" (terminated by signal %d?)", status - 128)
- else if (status > 256 && status <= 384)
- # We used to report an "abnormal termination" here, but some Korn
- # shells, when a child process die due to signal number n, can leave
- # in $? an exit status of 256+n instead of the more standard 128+n.
- # Apparently, both behaviours are allowed by POSIX (2008), so be
- # prepared to handle them both. See also Austing Group report ID
- # 0000051 <http://www.austingroupbugs.net/view.php?id=51>
- exit_details = sprintf(" (terminated by signal %d?)", status - 256)
- else
- # Never seen in practice.
- exit_details = " (abnormal termination)"
- return sprintf("exited with status %d%s", status, exit_details)
-}
-
-function write_test_results()
-{
- print ":global-test-result: " get_global_test_result() > trs_file
- print ":recheck: " yn(must_recheck()) > trs_file
- print ":copy-in-global-log: " yn(copy_in_global_log()) > trs_file
- for (i = 0; i < test_results_index; i += 1)
- print ":test-result: " test_results_list[i] > trs_file
- close(trs_file);
-}
-
-BEGIN {
-
-## ------- ##
-## SETUP ##
-## ------- ##
-
-'"$init_colors"'
-
-# Properly initialized once the TAP plan is seen.
-planned_tests = 0
-
-COOKED_PASS = expect_failure ? "XPASS": "PASS";
-COOKED_FAIL = expect_failure ? "XFAIL": "FAIL";
-
-# Enumeration-like constants to remember which kind of plan (if any)
-# has been seen. It is important that NO_PLAN evaluates "false" as
-# a boolean.
-NO_PLAN = 0
-EARLY_PLAN = 1
-LATE_PLAN = 2
-
-testno = 0 # Number of test results seen so far.
-bailed_out = 0 # Whether a "Bail out!" directive has been seen.
-
-# Whether the TAP plan has been seen or not, and if yes, which kind
-# it is ("early" is seen before any test result, "late" otherwise).
-plan_seen = NO_PLAN
-
-## --------- ##
-## PARSING ##
-## --------- ##
-
-is_first_read = 1
-
-while (1)
- {
- # Involutions required so that we are able to read the exit status
- # from the last input line.
- st = getline
- if (st < 0) # I/O error.
- fatal("I/O error while reading from input stream")
- else if (st == 0) # End-of-input
- {
- if (is_first_read)
- abort("in input loop: only one input line")
- break
- }
- if (is_first_read)
- {
- is_first_read = 0
- nextline = $0
- continue
- }
- else
- {
- curline = nextline
- nextline = $0
- $0 = curline
- }
- # Copy any input line verbatim into the log file.
- print | "cat >&3"
- # Parsing of TAP input should stop after a "Bail out!" directive.
- if (bailed_out)
- continue
-
- # TAP test result.
- if ($0 ~ /^(not )?ok$/ || $0 ~ /^(not )?ok[^a-zA-Z0-9_]/)
- {
- testno += 1
- setup_result_obj($0)
- handle_tap_result()
- }
- # TAP plan (normal or "SKIP" without explanation).
- else if ($0 ~ /^1\.\.[0-9]+[ \t]*$/)
- {
- # The next two lines will put the number of planned tests in $0.
- sub("^1\\.\\.", "")
- sub("[^0-9]*$", "")
- handle_tap_plan($0, "")
- continue
- }
- # TAP "SKIP" plan, with an explanation.
- else if ($0 ~ /^1\.\.0+[ \t]*#/)
- {
- # The next lines will put the skip explanation in $0, stripping
- # any leading and trailing whitespace. This is a little more
- # tricky in truth, since we want to also strip a potential leading
- # "SKIP" string from the message.
- sub("^[^#]*#[ \t]*(SKIP[: \t][ \t]*)?", "")
- sub("[ \t]*$", "");
- handle_tap_plan(0, $0)
- }
- # "Bail out!" magic.
- # Older versions of prove and TAP::Harness (e.g., 3.17) did not
- # recognize a "Bail out!" directive when preceded by leading
- # whitespace, but more modern versions (e.g., 3.23) do. So we
- # emulate the latter, "more modern" behaviour.
- else if ($0 ~ /^[ \t]*Bail out!/)
- {
- bailed_out = 1
- # Get the bailout message (if any), with leading and trailing
- # whitespace stripped. The message remains stored in `$0`.
- sub("^[ \t]*Bail out![ \t]*", "");
- sub("[ \t]*$", "");
- # Format the error message for the
- bailout_message = "Bail out!"
- if (length($0))
- bailout_message = bailout_message " " $0
- testsuite_error(bailout_message)
- }
- # Maybe we have too look for dianogtic comments too.
- else if (comments != 0)
- {
- comment = extract_tap_comment($0);
- if (length(comment))
- report("#", comment);
- }
- }
-
-## -------- ##
-## FINISH ##
-## -------- ##
-
-# A "Bail out!" directive should cause us to ignore any following TAP
-# error, as well as a non-zero exit status from the TAP producer.
-if (!bailed_out)
- {
- if (!plan_seen)
- {
- testsuite_error("missing test plan")
- }
- else if (planned_tests != testno)
- {
- bad_amount = testno > planned_tests ? "many" : "few"
- testsuite_error(sprintf("too %s tests run (expected %d, got %d)",
- bad_amount, planned_tests, testno))
- }
- if (!ignore_exit)
- {
- # Fetch exit status from the last line.
- exit_message = get_test_exit_message(nextline)
- if (exit_message)
- testsuite_error(exit_message)
- }
- }
-
-write_test_results()
-
-exit 0
-
-} # End of "BEGIN" block.
-'
-
-# TODO: document that we consume the file descriptor 3 :-(
-} 3>"$log_file"
-
-test $? -eq 0 || fatal "I/O or internal error"
-
-# Local Variables:
-# mode: shell-script
-# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/node_modules/node-sass/src/libsass/script/tap-runner b/node_modules/node-sass/src/libsass/script/tap-runner
deleted file mode 100755
index 56c13bf..0000000
--- a/node_modules/node-sass/src/libsass/script/tap-runner
+++ /dev/null
@@ -1 +0,0 @@
-$@ $TEST_FLAGS --tap --silent | tapout tap
diff --git a/node_modules/node-sass/src/libsass/script/test-leaks.pl b/node_modules/node-sass/src/libsass/script/test-leaks.pl
deleted file mode 100755
index bfb8653..0000000
--- a/node_modules/node-sass/src/libsass/script/test-leaks.pl
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/usr/bin/perl
-############################################################
-# this perl script is meant for developers only!
-# it will run all spec-tests (without verifying the
-# results) via valgrind to detect possible leaks.
-# expect that it takes 1h or more to finish!
-############################################################
-# Prerequisite install: `cpan Parallel::Runner`
-# You may also need to install `cpan File::Find`
-# You may also need to install `cpan IPC::Run3`
-############################################################
-# usage: `perl test-leaks.pl [threads]`
-# example: `time perl test-leaks.pl 4`
-############################################################
-# leaks will be reported in "mem-leaks.log"
-############################################################
-
-use strict;
-use warnings;
-
-############################################################
-# configurations (you may adjust)
-############################################################
-
-# number of threads to use
-my $threads = $ARGV[0] || 8;
-
-# the github repositories to checkout
-# if you need other branch, clone manually!
-my $sassc = "https://www.github.com/sass/sassc";
-my $specs = "https://www.github.com/sass/sass-spec";
-
-############################################################
-# load modules
-############################################################
-
-use IPC::Run3;
-use IO::Handle;
-use Fcntl qw(:flock);
-use File::Find::Rule;
-use Parallel::Runner;
-use List::Util qw(shuffle);
-
-############################################################
-# check prerequisites
-############################################################
-
-unless (-d "../sassc") {
- warn "sassc folder not found\n";
- warn "trying to checkout via git\n";
- system("git", "clone", $sassc, "../sassc");
- die "git command did not exit gracefully" if $?;
-}
-
-unless (-d "../sass-spec") {
- warn "sass-spec folder not found\n";
- warn "trying to checkout via git\n";
- system("git", "clone", $specs, "../sass-spec");
- die "git command did not exit gracefully" if $?;
-}
-
-unless (-f "../sassc/bin/sassc") {
- warn "sassc executable not found\n";
- warn "trying to compile via make\n";
- system("make", "-C", "../sassc", "-j", $threads);
- die "make command did not exit gracefully" if $?;
-}
-
-############################################################
-# main runner code
-############################################################
-
-my $root = "../sass-spec/spec";
-my @files = File::Find::Rule->file()
- ->name('input.scss')->in($root);
-
-open(my $leaks, ">", "mem-leaks.log");
-die "Cannot open log" unless $leaks;
-my $runner = Parallel::Runner->new($threads);
-die "Cannot start runner" unless $runner;
-
-print "##########################\n";
-print "Testing $#files spec files\n";
-print "##########################\n";
-
-foreach my $file (shuffle @files) {
- $runner->run(sub {
- $| = 1; select STDOUT;
- my $cmd = sprintf('../sassc/bin/sassc %s', $file);
- my $check = sprintf('valgrind --leak-check=yes %s', $cmd);
- run3($check, undef, \ my $out, \ my $err);
- if ($err =~ m/in use at exit: 0 bytes in 0 blocks/) {
- print "."; # print success indicator
- } else {
- print "F"; # print error indicator
- flock($leaks, LOCK_EX) or die "Cannot lock log";
- $leaks->printflush("#" x 80, "\n", $err, "\n");
- flock($leaks, LOCK_UN) or die "Cannot unlock log";
- }
- });
-}
-
-$runner->finish;
diff --git a/node_modules/node-sass/src/libsass/src/GNUmakefile.am b/node_modules/node-sass/src/libsass/src/GNUmakefile.am
deleted file mode 100644
index fee9312..0000000
--- a/node_modules/node-sass/src/libsass/src/GNUmakefile.am
+++ /dev/null
@@ -1,54 +0,0 @@
-ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
-
-AM_COPT = -Wall -O2
-AM_COVLDFLAGS =
-
-if ENABLE_COVERAGE
- AM_COPT = -O0 --coverage
- AM_COVLDFLAGS += -lgcov
-endif
-
-AM_CPPFLAGS = -I$(top_srcdir)/include
-AM_CFLAGS = $(AM_COPT)
-AM_CXXFLAGS = $(AM_COPT)
-AM_LDFLAGS = $(AM_COPT) $(AM_COVLDFLAGS)
-
-if COMPILER_IS_MINGW32
- AM_CXXFLAGS += -std=gnu++0x
-else
- AM_CXXFLAGS += -std=c++0x
-endif
-
-EXTRA_DIST = \
- COPYING \
- INSTALL \
- LICENSE \
- Readme.md
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = support/libsass.pc
-
-lib_LTLIBRARIES = libsass.la
-
-include $(top_srcdir)/Makefile.conf
-
-libsass_la_SOURCES = ${CSOURCES} ${SOURCES}
-
-libsass_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 1:0:0
-
-if ENABLE_TESTS
-if ENABLE_COVERAGE
-nodist_EXTRA_libsass_la_SOURCES = non-existent-file-to-force-CXX-linking.cxx
-endif
-endif
-
-include_HEADERS = $(top_srcdir)/include/sass.h \
- $(top_srcdir)/include/sass2scss.h
-
-sass_includedir = $(includedir)/sass
-
-sass_include_HEADERS = $(top_srcdir)/include/sass/base.h \
- $(top_srcdir)/include/sass/values.h \
- $(top_srcdir)/include/sass/version.h \
- $(top_srcdir)/include/sass/context.h \
- $(top_srcdir)/include/sass/functions.h
diff --git a/node_modules/node-sass/src/libsass/src/ast.cpp b/node_modules/node-sass/src/libsass/src/ast.cpp
deleted file mode 100644
index c3b38ef..0000000
--- a/node_modules/node-sass/src/libsass/src/ast.cpp
+++ /dev/null
@@ -1,2226 +0,0 @@
-#include "sass.hpp"
-#include "ast.hpp"
-#include "context.hpp"
-#include "node.hpp"
-#include "eval.hpp"
-#include "extend.hpp"
-#include "emitter.hpp"
-#include "color_maps.hpp"
-#include "ast_fwd_decl.hpp"
-#include <set>
-#include <iomanip>
-#include <iostream>
-#include <algorithm>
-#include <functional>
-#include <cctype>
-#include <locale>
-
-namespace Sass {
-
- static Null sass_null(ParserState("null"));
-
- bool Wrapped_Selector::find ( bool (*f)(AST_Node_Obj) )
- {
- // check children first
- if (selector_) {
- if (selector_->find(f)) return true;
- }
- // execute last
- return f(this);
- }
-
- bool Selector_List::find ( bool (*f)(AST_Node_Obj) )
- {
- // check children first
- for (Complex_Selector_Obj sel : elements()) {
- if (sel->find(f)) return true;
- }
- // execute last
- return f(this);
- }
-
- bool Compound_Selector::find ( bool (*f)(AST_Node_Obj) )
- {
- // check children first
- for (Simple_Selector_Obj sel : elements()) {
- if (sel->find(f)) return true;
- }
- // execute last
- return f(this);
- }
-
- bool Complex_Selector::find ( bool (*f)(AST_Node_Obj) )
- {
- // check children first
- if (head_ && head_->find(f)) return true;
- if (tail_ && tail_->find(f)) return true;
- // execute last
- return f(this);
- }
-
- bool Supports_Operator::needs_parens(Supports_Condition_Obj cond) const {
- if (Supports_Operator_Obj op = Cast<Supports_Operator>(cond)) {
- return op->operand() != operand();
- }
- return Cast<Supports_Negation>(cond) != NULL;
- }
-
- bool Supports_Negation::needs_parens(Supports_Condition_Obj cond) const {
- return Cast<Supports_Negation>(cond) ||
- Cast<Supports_Operator>(cond);
- }
-
- void str_rtrim(std::string& str, const std::string& delimiters = " \f\n\r\t\v")
- {
- str.erase( str.find_last_not_of( delimiters ) + 1 );
- }
-
- void String_Constant::rtrim()
- {
- str_rtrim(value_);
- }
-
- void String_Schema::rtrim()
- {
- if (!empty()) {
- if (String_Ptr str = Cast<String>(last())) str->rtrim();
- }
- }
-
- void Argument::set_delayed(bool delayed)
- {
- if (value_) value_->set_delayed(delayed);
- is_delayed(delayed);
- }
-
- void Arguments::set_delayed(bool delayed)
- {
- for (Argument_Obj arg : elements()) {
- if (arg) arg->set_delayed(delayed);
- }
- is_delayed(delayed);
- }
-
-
- bool At_Root_Query::exclude(std::string str)
- {
- bool with = feature() && unquote(feature()->to_string()).compare("with") == 0;
- List_Ptr l = static_cast<List_Ptr>(value().ptr());
- std::string v;
-
- if (with)
- {
- if (!l || l->length() == 0) return str.compare("rule") != 0;
- for (size_t i = 0, L = l->length(); i < L; ++i)
- {
- v = unquote((*l)[i]->to_string());
- if (v.compare("all") == 0 || v == str) return false;
- }
- return true;
- }
- else
- {
- if (!l || !l->length()) return str.compare("rule") == 0;
- for (size_t i = 0, L = l->length(); i < L; ++i)
- {
- v = unquote((*l)[i]->to_string());
- if (v.compare("all") == 0 || v == str) return true;
- }
- return false;
- }
- }
-
- void AST_Node::update_pstate(const ParserState& pstate)
- {
- pstate_.offset += pstate - pstate_ + pstate.offset;
- }
-
- bool Simple_Selector::is_ns_eq(const Simple_Selector& r) const
- {
- // https://github.com/sass/sass/issues/2229
- if ((has_ns_ == r.has_ns_) ||
- (has_ns_ && ns_.empty()) ||
- (r.has_ns_ && r.ns_.empty())
- ) {
- if (ns_.empty() && r.ns() == "*") return false;
- else if (r.ns().empty() && ns() == "*") return false;
- else return ns() == r.ns();
- }
- return false;
- }
-
- bool Compound_Selector::operator< (const Compound_Selector& rhs) const
- {
- size_t L = std::min(length(), rhs.length());
- for (size_t i = 0; i < L; ++i)
- {
- Simple_Selector_Obj l = (*this)[i];
- Simple_Selector_Obj r = rhs[i];
- if (!l && !r) return false;
- else if (!r) return false;
- else if (!l) return true;
- else if (*l != *r)
- { return *l < *r; }
- }
- // just compare the length now
- return length() < rhs.length();
- }
-
- bool Compound_Selector::has_parent_ref() const
- {
- for (Simple_Selector_Obj s : *this) {
- if (s && s->has_parent_ref()) return true;
- }
- return false;
- }
-
- bool Compound_Selector::has_real_parent_ref() const
- {
- for (Simple_Selector_Obj s : *this) {
- if (s && s->has_real_parent_ref()) return true;
- }
- return false;
- }
-
- bool Complex_Selector::has_parent_ref() const
- {
- return (head() && head()->has_parent_ref()) ||
- (tail() && tail()->has_parent_ref());
- }
-
- bool Complex_Selector::has_real_parent_ref() const
- {
- return (head() && head()->has_real_parent_ref()) ||
- (tail() && tail()->has_real_parent_ref());
- }
-
- bool Complex_Selector::operator< (const Complex_Selector& rhs) const
- {
- // const iterators for tails
- Complex_Selector_Ptr_Const l = this;
- Complex_Selector_Ptr_Const r = &rhs;
- Compound_Selector_Ptr l_h = NULL;
- Compound_Selector_Ptr r_h = NULL;
- if (l) l_h = l->head();
- if (r) r_h = r->head();
- // process all tails
- while (true)
- {
- #ifdef DEBUG
- // skip empty ancestor first
- if (l && l->is_empty_ancestor())
- {
- l_h = NULL;
- l = l->tail();
- if(l) l_h = l->head();
- continue;
- }
- // skip empty ancestor first
- if (r && r->is_empty_ancestor())
- {
- r_h = NULL;
- r = r->tail();
- if (r) r_h = r->head();
- continue;
- }
- #endif
- // check for valid selectors
- if (!l) return !!r;
- if (!r) return false;
- // both are null
- else if (!l_h && !r_h)
- {
- // check combinator after heads
- if (l->combinator() != r->combinator())
- { return l->combinator() < r->combinator(); }
- // advance to next tails
- l = l->tail();
- r = r->tail();
- // fetch the next headers
- l_h = NULL; r_h = NULL;
- if (l) l_h = l->head();
- if (r) r_h = r->head();
- }
- // one side is null
- else if (!r_h) return true;
- else if (!l_h) return false;
- // heads ok and equal
- else if (*l_h == *r_h)
- {
- // check combinator after heads
- if (l->combinator() != r->combinator())
- { return l->combinator() < r->combinator(); }
- // advance to next tails
- l = l->tail();
- r = r->tail();
- // fetch the next headers
- l_h = NULL; r_h = NULL;
- if (l) l_h = l->head();
- if (r) r_h = r->head();
- }
- // heads are not equal
- else return *l_h < *r_h;
- }
- }
-
- bool Complex_Selector::operator== (const Complex_Selector& rhs) const
- {
- // const iterators for tails
- Complex_Selector_Ptr_Const l = this;
- Complex_Selector_Ptr_Const r = &rhs;
- Compound_Selector_Ptr l_h = NULL;
- Compound_Selector_Ptr r_h = NULL;
- if (l) l_h = l->head();
- if (r) r_h = r->head();
- // process all tails
- while (true)
- {
- #ifdef DEBUG
- // skip empty ancestor first
- if (l && l->is_empty_ancestor())
- {
- l_h = NULL;
- l = l->tail();
- if (l) l_h = l->head();
- continue;
- }
- // skip empty ancestor first
- if (r && r->is_empty_ancestor())
- {
- r_h = NULL;
- r = r->tail();
- if (r) r_h = r->head();
- continue;
- }
- #endif
- // check the pointers
- if (!r) return !l;
- if (!l) return !r;
- // both are null
- if (!l_h && !r_h)
- {
- // check combinator after heads
- if (l->combinator() != r->combinator())
- { return l->combinator() < r->combinator(); }
- // advance to next tails
- l = l->tail();
- r = r->tail();
- // fetch the next heads
- l_h = NULL; r_h = NULL;
- if (l) l_h = l->head();
- if (r) r_h = r->head();
- }
- // equals if other head is empty
- else if ((!l_h && !r_h) ||
- (!l_h && r_h->empty()) ||
- (!r_h && l_h->empty()) ||
- (l_h && r_h && *l_h == *r_h))
- {
- // check combinator after heads
- if (l->combinator() != r->combinator())
- { return l->combinator() == r->combinator(); }
- // advance to next tails
- l = l->tail();
- r = r->tail();
- // fetch the next heads
- l_h = NULL; r_h = NULL;
- if (l) l_h = l->head();
- if (r) r_h = r->head();
- }
- // abort
- else break;
- }
- // unreachable
- return false;
- }
-
- Compound_Selector_Ptr Compound_Selector::unify_with(Compound_Selector_Ptr rhs)
- {
- if (empty()) return rhs;
- Compound_Selector_Obj unified = SASS_MEMORY_COPY(rhs);
- for (size_t i = 0, L = length(); i < L; ++i)
- {
- if (unified.isNull()) break;
- unified = at(i)->unify_with(unified);
- }
- return unified.detach();
- }
-
- bool Complex_Selector::operator== (const Selector& rhs) const
- {
- if (const Selector_List* sl = Cast<Selector_List>(&rhs)) return *this == *sl;
- if (const Simple_Selector* sp = Cast<Simple_Selector>(&rhs)) return *this == *sp;
- if (const Complex_Selector* cs = Cast<Complex_Selector>(&rhs)) return *this == *cs;
- if (const Compound_Selector* ch = Cast<Compound_Selector>(&rhs)) return *this == *ch;
- throw std::runtime_error("invalid selector base classes to compare");
- }
-
-
- bool Complex_Selector::operator< (const Selector& rhs) const
- {
- if (const Selector_List* sl = Cast<Selector_List>(&rhs)) return *this < *sl;
- if (const Simple_Selector* sp = Cast<Simple_Selector>(&rhs)) return *this < *sp;
- if (const Complex_Selector* cs = Cast<Complex_Selector>(&rhs)) return *this < *cs;
- if (const Compound_Selector* ch = Cast<Compound_Selector>(&rhs)) return *this < *ch;
- throw std::runtime_error("invalid selector base classes to compare");
- }
-
- bool Compound_Selector::operator== (const Selector& rhs) const
- {
- if (const Selector_List* sl = Cast<Selector_List>(&rhs)) return *this == *sl;
- if (const Simple_Selector* sp = Cast<Simple_Selector>(&rhs)) return *this == *sp;
- if (const Complex_Selector* cs = Cast<Complex_Selector>(&rhs)) return *this == *cs;
- if (const Compound_Selector* ch = Cast<Compound_Selector>(&rhs)) return *this == *ch;
- throw std::runtime_error("invalid selector base classes to compare");
- }
-
- bool Compound_Selector::operator< (const Selector& rhs) const
- {
- if (const Selector_List* sl = Cast<Selector_List>(&rhs)) return *this < *sl;
- if (const Simple_Selector* sp = Cast<Simple_Selector>(&rhs)) return *this < *sp;
- if (const Complex_Selector* cs = Cast<Complex_Selector>(&rhs)) return *this < *cs;
- if (const Compound_Selector* ch = Cast<Compound_Selector>(&rhs)) return *this < *ch;
- throw std::runtime_error("invalid selector base classes to compare");
- }
-
- bool Selector_Schema::operator== (const Selector& rhs) const
- {
- if (const Selector_List* sl = Cast<Selector_List>(&rhs)) return *this == *sl;
- if (const Simple_Selector* sp = Cast<Simple_Selector>(&rhs)) return *this == *sp;
- if (const Complex_Selector* cs = Cast<Complex_Selector>(&rhs)) return *this == *cs;
- if (const Compound_Selector* ch = Cast<Compound_Selector>(&rhs)) return *this == *ch;
- throw std::runtime_error("invalid selector base classes to compare");
- }
-
- bool Selector_Schema::operator< (const Selector& rhs) const
- {
- if (const Selector_List* sl = Cast<Selector_List>(&rhs)) return *this < *sl;
- if (const Simple_Selector* sp = Cast<Simple_Selector>(&rhs)) return *this < *sp;
- if (const Complex_Selector* cs = Cast<Complex_Selector>(&rhs)) return *this < *cs;
- if (const Compound_Selector* ch = Cast<Compound_Selector>(&rhs)) return *this < *ch;
- throw std::runtime_error("invalid selector base classes to compare");
- }
-
- bool Simple_Selector::operator== (const Selector& rhs) const
- {
- if (Simple_Selector_Ptr_Const sp = Cast<Simple_Selector>(&rhs)) return *this == *sp;
- return false;
- }
-
- bool Simple_Selector::operator< (const Selector& rhs) const
- {
- if (Simple_Selector_Ptr_Const sp = Cast<Simple_Selector>(&rhs)) return *this < *sp;
- return false;
- }
-
- bool Simple_Selector::operator== (const Simple_Selector& rhs) const
- {
- // solve the double dispatch problem by using RTTI information via dynamic cast
- if (const Pseudo_Selector* lhs = Cast<Pseudo_Selector>(this)) {return *lhs == rhs; }
- else if (const Wrapped_Selector* lhs = Cast<Wrapped_Selector>(this)) {return *lhs == rhs; }
- else if (const Element_Selector* lhs = Cast<Element_Selector>(this)) {return *lhs == rhs; }
- else if (const Attribute_Selector* lhs = Cast<Attribute_Selector>(this)) {return *lhs == rhs; }
- else if (name_ == rhs.name_)
- { return is_ns_eq(rhs); }
- else return false;
- }
-
- bool Simple_Selector::operator< (const Simple_Selector& rhs) const
- {
- // solve the double dispatch problem by using RTTI information via dynamic cast
- if (const Pseudo_Selector* lhs = Cast<Pseudo_Selector>(this)) {return *lhs < rhs; }
- else if (const Wrapped_Selector* lhs = Cast<Wrapped_Selector>(this)) {return *lhs < rhs; }
- else if (const Element_Selector* lhs = Cast<Element_Selector>(this)) {return *lhs < rhs; }
- else if (const Attribute_Selector* lhs = Cast<Attribute_Selector>(this)) {return *lhs < rhs; }
- if (is_ns_eq(rhs))
- { return name_ < rhs.name_; }
- return ns_ < rhs.ns_;
- }
-
- bool Selector_List::operator== (const Selector& rhs) const
- {
- // solve the double dispatch problem by using RTTI information via dynamic cast
- if (Selector_List_Ptr_Const sl = Cast<Selector_List>(&rhs)) { return *this == *sl; }
- else if (Complex_Selector_Ptr_Const cpx = Cast<Complex_Selector>(&rhs)) { return *this == *cpx; }
- else if (Compound_Selector_Ptr_Const cpd = Cast<Compound_Selector>(&rhs)) { return *this == *cpd; }
- // no compare method
- return this == &rhs;
- }
-
- // Selector lists can be compared to comma lists
- bool Selector_List::operator== (const Expression& rhs) const
- {
- // solve the double dispatch problem by using RTTI information via dynamic cast
- if (List_Ptr_Const ls = Cast<List>(&rhs)) { return *ls == *this; }
- if (Selector_Ptr_Const ls = Cast<Selector>(&rhs)) { return *this == *ls; }
- // compare invalid (maybe we should error?)
- return false;
- }
-
- bool Selector_List::operator== (const Selector_List& rhs) const
- {
- // for array access
- size_t i = 0, n = 0;
- size_t iL = length();
- size_t nL = rhs.length();
- // create temporary vectors and sort them
- std::vector<Complex_Selector_Obj> l_lst = this->elements();
- std::vector<Complex_Selector_Obj> r_lst = rhs.elements();
- std::sort(l_lst.begin(), l_lst.end(), OrderNodes());
- std::sort(r_lst.begin(), r_lst.end(), OrderNodes());
- // process loop
- while (true)
- {
- // first check for valid index
- if (i == iL) return iL == nL;
- else if (n == nL) return iL == nL;
- // the access the vector items
- Complex_Selector_Obj l = l_lst[i];
- Complex_Selector_Obj r = r_lst[n];
- // skip nulls
- if (!l) ++i;
- else if (!r) ++n;
- // do the check
- else if (*l != *r)
- { return false; }
- // advance
- ++i; ++n;
- }
- // there is no break?!
- }
-
- bool Selector_List::operator< (const Selector& rhs) const
- {
- if (Selector_List_Ptr_Const sp = Cast<Selector_List>(&rhs)) return *this < *sp;
- return false;
- }
-
- bool Selector_List::operator< (const Selector_List& rhs) const
- {
- size_t l = rhs.length();
- if (length() < l) l = length();
- for (size_t i = 0; i < l; i ++) {
- if (*at(i) < *rhs.at(i)) return true;
- }
- return false;
- }
-
- Compound_Selector_Ptr Simple_Selector::unify_with(Compound_Selector_Ptr rhs)
- {
- for (size_t i = 0, L = rhs->length(); i < L; ++i)
- { if (to_string() == rhs->at(i)->to_string()) return rhs; }
-
- // check for pseudo elements because they are always last
- size_t i, L;
- bool found = false;
- if (typeid(*this) == typeid(Pseudo_Selector) || typeid(*this) == typeid(Wrapped_Selector) || typeid(*this) == typeid(Attribute_Selector))
- {
- for (i = 0, L = rhs->length(); i < L; ++i)
- {
- if ((Cast<Pseudo_Selector>((*rhs)[i]) || Cast<Wrapped_Selector>((*rhs)[i]) || Cast<Attribute_Selector>((*rhs)[i])) && (*rhs)[L-1]->is_pseudo_element())
- { found = true; break; }
- }
- }
- else
- {
- for (i = 0, L = rhs->length(); i < L; ++i)
- {
- if (Cast<Pseudo_Selector>((*rhs)[i]) || Cast<Wrapped_Selector>((*rhs)[i]) || Cast<Attribute_Selector>((*rhs)[i]))
- { found = true; break; }
- }
- }
- if (!found)
- {
- rhs->append(this);
- } else {
- rhs->elements().insert(rhs->elements().begin() + i, this);
- }
- return rhs;
- }
-
- Simple_Selector_Ptr Element_Selector::unify_with(Simple_Selector_Ptr rhs)
- {
- // check if ns can be extended
- // true for no ns or universal
- if (has_universal_ns())
- {
- // but dont extend with universal
- // true for valid ns and universal
- if (!rhs->is_universal_ns())
- {
- // overwrite the name if star is given as name
- if (this->name() == "*") { this->name(rhs->name()); }
- // now overwrite the namespace name and flag
- this->ns(rhs->ns()); this->has_ns(rhs->has_ns());
- // return copy
- return this;
- }
- }
- // namespace may changed, check the name now
- // overwrite star (but not with another star)
- if (name() == "*" && rhs->name() != "*")
- {
- // simply set the new name
- this->name(rhs->name());
- // return copy
- return this;
- }
- // return original
- return this;
- }
-
- Compound_Selector_Ptr Element_Selector::unify_with(Compound_Selector_Ptr rhs)
- {
- // TODO: handle namespaces
-
- // if the rhs is empty, just return a copy of this
- if (rhs->length() == 0) {
- rhs->append(this);
- return rhs;
- }
-
- Simple_Selector_Ptr rhs_0 = rhs->at(0);
- // otherwise, this is a tag name
- if (name() == "*")
- {
- if (typeid(*rhs_0) == typeid(Element_Selector))
- {
- // if rhs is universal, just return this tagname + rhs's qualifiers
- Element_Selector_Ptr ts = Cast<Element_Selector>(rhs_0);
- rhs->at(0) = this->unify_with(ts);
- return rhs;
- }
- else if (Cast<Class_Selector>(rhs_0) || Cast<Id_Selector>(rhs_0)) {
- // qualifier is `.class`, so we can prefix with `ns|*.class`
- if (has_ns() && !rhs_0->has_ns()) {
- if (ns() != "*") rhs->elements().insert(rhs->begin(), this);
- }
- return rhs;
- }
-
-
- return rhs;
- }
-
- if (typeid(*rhs_0) == typeid(Element_Selector))
- {
- // if rhs is universal, just return this tagname + rhs's qualifiers
- if (rhs_0->name() != "*" && rhs_0->ns() != "*" && rhs_0->name() != name()) return 0;
- // otherwise create new compound and unify first simple selector
- rhs->at(0) = this->unify_with(rhs_0);
- return rhs;
-
- }
- // else it's a tag name and a bunch of qualifiers -- just append them
- if (name() != "*") rhs->elements().insert(rhs->begin(), this);
- return rhs;
- }
-
- Compound_Selector_Ptr Class_Selector::unify_with(Compound_Selector_Ptr rhs)
- {
- rhs->has_line_break(has_line_break());
- return Simple_Selector::unify_with(rhs);
- }
-
- Compound_Selector_Ptr Id_Selector::unify_with(Compound_Selector_Ptr rhs)
- {
- for (size_t i = 0, L = rhs->length(); i < L; ++i)
- {
- if (Id_Selector_Ptr sel = Cast<Id_Selector>(rhs->at(i))) {
- if (sel->name() != name()) return 0;
- }
- }
- rhs->has_line_break(has_line_break());
- return Simple_Selector::unify_with(rhs);
- }
-
- Compound_Selector_Ptr Pseudo_Selector::unify_with(Compound_Selector_Ptr rhs)
- {
- if (is_pseudo_element())
- {
- for (size_t i = 0, L = rhs->length(); i < L; ++i)
- {
- if (Pseudo_Selector_Ptr sel = Cast<Pseudo_Selector>(rhs->at(i))) {
- if (sel->is_pseudo_element() && sel->name() != name()) return 0;
- }
- }
- }
- return Simple_Selector::unify_with(rhs);
- }
-
- bool Attribute_Selector::operator< (const Attribute_Selector& rhs) const
- {
- if (is_ns_eq(rhs)) {
- if (name() == rhs.name()) {
- if (matcher() == rhs.matcher()) {
- bool no_lhs_val = value().isNull();
- bool no_rhs_val = rhs.value().isNull();
- if (no_lhs_val && no_rhs_val) return false; // equal
- else if (no_lhs_val) return true; // lhs is null
- else if (no_rhs_val) return false; // rhs is null
- return *value() < *rhs.value(); // both are given
- } else { return matcher() < rhs.matcher(); }
- } else { return name() < rhs.name(); }
- } else { return ns() < rhs.ns(); }
- }
-
- bool Attribute_Selector::operator< (const Simple_Selector& rhs) const
- {
- if (Attribute_Selector_Ptr_Const w = Cast<Attribute_Selector>(&rhs))
- {
- return *this < *w;
- }
- if (is_ns_eq(rhs))
- { return name() < rhs.name(); }
- return ns() < rhs.ns();
- }
-
- bool Attribute_Selector::operator== (const Attribute_Selector& rhs) const
- {
- // get optional value state
- bool no_lhs_val = value().isNull();
- bool no_rhs_val = rhs.value().isNull();
- // both are null, therefore equal
- if (no_lhs_val && no_rhs_val) {
- return (name() == rhs.name())
- && (matcher() == rhs.matcher())
- && (is_ns_eq(rhs));
- }
- // both are defined, evaluate
- if (no_lhs_val == no_rhs_val) {
- return (name() == rhs.name())
- && (matcher() == rhs.matcher())
- && (is_ns_eq(rhs))
- && (*value() == *rhs.value());
- }
- // not equal
- return false;
-
- }
-
- bool Attribute_Selector::operator== (const Simple_Selector& rhs) const
- {
- if (Attribute_Selector_Ptr_Const w = Cast<Attribute_Selector>(&rhs))
- {
- return is_ns_eq(rhs) &&
- name() == rhs.name() &&
- *this == *w;
- }
- return false;
- }
-
- bool Element_Selector::operator< (const Element_Selector& rhs) const
- {
- if (is_ns_eq(rhs))
- { return name() < rhs.name(); }
- return ns() < rhs.ns();
- }
-
- bool Element_Selector::operator< (const Simple_Selector& rhs) const
- {
- if (Element_Selector_Ptr_Const w = Cast<Element_Selector>(&rhs))
- {
- return *this < *w;
- }
- if (is_ns_eq(rhs))
- { return name() < rhs.name(); }
- return ns() < rhs.ns();
- }
-
- bool Element_Selector::operator== (const Element_Selector& rhs) const
- {
- return is_ns_eq(rhs) &&
- name() == rhs.name();
- }
-
- bool Element_Selector::operator== (const Simple_Selector& rhs) const
- {
- if (Element_Selector_Ptr_Const w = Cast<Element_Selector>(&rhs))
- {
- return is_ns_eq(rhs) &&
- name() == rhs.name() &&
- *this == *w;
- }
- return false;
- }
-
- bool Pseudo_Selector::operator== (const Pseudo_Selector& rhs) const
- {
- if (is_ns_eq(rhs) && name() == rhs.name())
- {
- String_Obj lhs_ex = expression();
- String_Obj rhs_ex = rhs.expression();
- if (rhs_ex && lhs_ex) return *lhs_ex == *rhs_ex;
- else return lhs_ex.ptr() == rhs_ex.ptr();
- }
- else return false;
- }
-
- bool Pseudo_Selector::operator== (const Simple_Selector& rhs) const
- {
- if (Pseudo_Selector_Ptr_Const w = Cast<Pseudo_Selector>(&rhs))
- {
- return *this == *w;
- }
- return is_ns_eq(rhs) &&
- name() == rhs.name();
- }
-
- bool Pseudo_Selector::operator< (const Pseudo_Selector& rhs) const
- {
- if (is_ns_eq(rhs) && name() == rhs.name())
- {
- String_Obj lhs_ex = expression();
- String_Obj rhs_ex = rhs.expression();
- if (rhs_ex && lhs_ex) return *lhs_ex < *rhs_ex;
- else return lhs_ex.ptr() < rhs_ex.ptr();
- }
- if (is_ns_eq(rhs))
- { return name() < rhs.name(); }
- return ns() < rhs.ns();
- }
-
- bool Pseudo_Selector::operator< (const Simple_Selector& rhs) const
- {
- if (Pseudo_Selector_Ptr_Const w = Cast<Pseudo_Selector>(&rhs))
- {
- return *this < *w;
- }
- if (is_ns_eq(rhs))
- { return name() < rhs.name(); }
- return ns() < rhs.ns();
- }
-
- bool Wrapped_Selector::operator== (const Wrapped_Selector& rhs) const
- {
- if (is_ns_eq(rhs) && name() == rhs.name())
- { return *(selector()) == *(rhs.selector()); }
- else return false;
- }
-
- bool Wrapped_Selector::operator== (const Simple_Selector& rhs) const
- {
- if (Wrapped_Selector_Ptr_Const w = Cast<Wrapped_Selector>(&rhs))
- {
- return *this == *w;
- }
- return is_ns_eq(rhs) &&
- name() == rhs.name();
- }
-
- bool Wrapped_Selector::operator< (const Wrapped_Selector& rhs) const
- {
- if (is_ns_eq(rhs) && name() == rhs.name())
- { return *(selector()) < *(rhs.selector()); }
- if (is_ns_eq(rhs))
- { return name() < rhs.name(); }
- return ns() < rhs.ns();
- }
-
- bool Wrapped_Selector::operator< (const Simple_Selector& rhs) const
- {
- if (Wrapped_Selector_Ptr_Const w = Cast<Wrapped_Selector>(&rhs))
- {
- return *this < *w;
- }
- if (is_ns_eq(rhs))
- { return name() < rhs.name(); }
- return ns() < rhs.ns();
- }
-
- bool Wrapped_Selector::is_superselector_of(Wrapped_Selector_Obj sub)
- {
- if (this->name() != sub->name()) return false;
- if (this->name() == ":current") return false;
- if (Selector_List_Obj rhs_list = Cast<Selector_List>(sub->selector())) {
- if (Selector_List_Obj lhs_list = Cast<Selector_List>(selector())) {
- return lhs_list->is_superselector_of(rhs_list);
- }
- }
- coreError("is_superselector expected a Selector_List", sub->pstate());
- return false;
- }
-
- bool Compound_Selector::is_superselector_of(Selector_List_Obj rhs, std::string wrapped)
- {
- for (Complex_Selector_Obj item : rhs->elements()) {
- if (is_superselector_of(item, wrapped)) return true;
- }
- return false;
- }
-
- bool Compound_Selector::is_superselector_of(Complex_Selector_Obj rhs, std::string wrapped)
- {
- if (rhs->head()) return is_superselector_of(rhs->head(), wrapped);
- return false;
- }
-
- bool Compound_Selector::is_superselector_of(Compound_Selector_Obj rhs, std::string wrapping)
- {
- Compound_Selector_Ptr lhs = this;
- Simple_Selector_Ptr lbase = lhs->base();
- Simple_Selector_Ptr rbase = rhs->base();
-
- // Check if pseudo-elements are the same between the selectors
-
- std::set<std::string> lpsuedoset, rpsuedoset;
- for (size_t i = 0, L = length(); i < L; ++i)
- {
- if ((*this)[i]->is_pseudo_element()) {
- std::string pseudo((*this)[i]->to_string());
- pseudo = pseudo.substr(pseudo.find_first_not_of(":")); // strip off colons to ensure :after matches ::after since ruby sass is forgiving
- lpsuedoset.insert(pseudo);
- }
- }
- for (size_t i = 0, L = rhs->length(); i < L; ++i)
- {
- if ((*rhs)[i]->is_pseudo_element()) {
- std::string pseudo((*rhs)[i]->to_string());
- pseudo = pseudo.substr(pseudo.find_first_not_of(":")); // strip off colons to ensure :after matches ::after since ruby sass is forgiving
- rpsuedoset.insert(pseudo);
- }
- }
- if (lpsuedoset != rpsuedoset) {
- return false;
- }
-
- // would like to replace this without stringification
- // https://github.com/sass/sass/issues/2229
- // SimpleSelectorSet lset, rset;
- std::set<std::string> lset, rset;
-
- if (lbase && rbase)
- {
- if (lbase->to_string() == rbase->to_string()) {
- for (size_t i = 1, L = length(); i < L; ++i)
- { lset.insert((*this)[i]->to_string()); }
- for (size_t i = 1, L = rhs->length(); i < L; ++i)
- { rset.insert((*rhs)[i]->to_string()); }
- return includes(rset.begin(), rset.end(), lset.begin(), lset.end());
- }
- return false;
- }
-
- for (size_t i = 0, iL = length(); i < iL; ++i)
- {
- Selector_Obj wlhs = (*this)[i];
- // very special case for wrapped matches selector
- if (Wrapped_Selector_Obj wrapped = Cast<Wrapped_Selector>(wlhs)) {
- if (wrapped->name() == ":not") {
- if (Selector_List_Obj not_list = Cast<Selector_List>(wrapped->selector())) {
- if (not_list->is_superselector_of(rhs, wrapped->name())) return false;
- } else {
- throw std::runtime_error("wrapped not selector is not a list");
- }
- }
- if (wrapped->name() == ":matches" || wrapped->name() == ":-moz-any") {
- wlhs = wrapped->selector();
- if (Selector_List_Obj list = Cast<Selector_List>(wrapped->selector())) {
- if (Compound_Selector_Obj comp = Cast<Compound_Selector>(rhs)) {
- if (!wrapping.empty() && wrapping != wrapped->name()) return false;
- if (wrapping.empty() || wrapping != wrapped->name()) {;
- if (list->is_superselector_of(comp, wrapped->name())) return true;
- }
- }
- }
- }
- Simple_Selector_Ptr rhs_sel = NULL;
- if (rhs->elements().size() > i) rhs_sel = (*rhs)[i];
- if (Wrapped_Selector_Ptr wrapped_r = Cast<Wrapped_Selector>(rhs_sel)) {
- if (wrapped->name() == wrapped_r->name()) {
- if (wrapped->is_superselector_of(wrapped_r)) {
- continue;
- }}
- }
- }
- // match from here on as strings
- lset.insert(wlhs->to_string());
- }
-
- for (size_t n = 0, nL = rhs->length(); n < nL; ++n)
- {
- Selector_Obj r = (*rhs)[n];
- if (Wrapped_Selector_Obj wrapped = Cast<Wrapped_Selector>(r)) {
- if (wrapped->name() == ":not") {
- if (Selector_List_Obj ls = Cast<Selector_List>(wrapped->selector())) {
- ls->remove_parent_selectors();
- if (is_superselector_of(ls, wrapped->name())) return false;
- }
- }
- if (wrapped->name() == ":matches" || wrapped->name() == ":-moz-any") {
- if (!wrapping.empty()) {
- if (wrapping != wrapped->name()) return false;
- }
- if (Selector_List_Obj ls = Cast<Selector_List>(wrapped->selector())) {
- ls->remove_parent_selectors();
- return (is_superselector_of(ls, wrapped->name()));
- }
- }
- }
- rset.insert(r->to_string());
- }
-
- //for (auto l : lset) { cerr << "l: " << l << endl; }
- //for (auto r : rset) { cerr << "r: " << r << endl; }
-
- if (lset.empty()) return true;
- // return true if rset contains all the elements of lset
- return includes(rset.begin(), rset.end(), lset.begin(), lset.end());
-
- }
-
- // create complex selector (ancestor of) from compound selector
- Complex_Selector_Obj Compound_Selector::to_complex()
- {
- // create an intermediate complex selector
- return SASS_MEMORY_NEW(Complex_Selector,
- pstate(),
- Complex_Selector::ANCESTOR_OF,
- this,
- 0);
- }
-
- Selector_List_Ptr Complex_Selector::unify_with(Complex_Selector_Ptr other)
- {
-
- // get last tails (on the right side)
- Complex_Selector_Obj l_last = this->last();
- Complex_Selector_Obj r_last = other->last();
-
- // check valid pointers (assertion)
- SASS_ASSERT(l_last, "lhs is null");
- SASS_ASSERT(r_last, "rhs is null");
-
- // Not sure about this check, but closest way I could check
- // was to see if this is a ruby 'SimpleSequence' equivalent.
- // It seems to do the job correctly as some specs react to this
- if (l_last->combinator() != Combinator::ANCESTOR_OF) return 0;
- if (r_last->combinator() != Combinator::ANCESTOR_OF ) return 0;
-
- // get the headers for the last tails
- Compound_Selector_Obj l_last_head = l_last->head();
- Compound_Selector_Obj r_last_head = r_last->head();
-
- // check valid head pointers (assertion)
- SASS_ASSERT(l_last_head, "lhs head is null");
- SASS_ASSERT(r_last_head, "rhs head is null");
-
- // get the unification of the last compound selectors
- Compound_Selector_Obj unified = r_last_head->unify_with(l_last_head);
-
- // abort if we could not unify heads
- if (unified == 0) return 0;
-
- // check for universal (star: `*`) selector
- bool is_universal = l_last_head->is_universal() ||
- r_last_head->is_universal();
-
- if (is_universal)
- {
- // move the head
- l_last->head(0);
- r_last->head(unified);
- }
-
- // create nodes from both selectors
- Node lhsNode = complexSelectorToNode(this);
- Node rhsNode = complexSelectorToNode(other);
-
- // overwrite universal base
- if (!is_universal)
- {
- // create some temporaries to convert to node
- Complex_Selector_Obj fake = unified->to_complex();
- Node unified_node = complexSelectorToNode(fake);
- // add to permutate the list?
- rhsNode.plus(unified_node);
- }
-
- // do some magic we inherit from node and extend
- Node node = subweave(lhsNode, rhsNode);
- Selector_List_Obj result = SASS_MEMORY_NEW(Selector_List, pstate());
- NodeDequePtr col = node.collection(); // move from collection to list
- for (NodeDeque::iterator it = col->begin(), end = col->end(); it != end; it++)
- { result->append(nodeToComplexSelector(Node::naiveTrim(*it))); }
-
- // only return if list has some entries
- return result->length() ? result.detach() : 0;
-
- }
-
- bool Compound_Selector::operator== (const Compound_Selector& rhs) const
- {
- // for array access
- size_t i = 0, n = 0;
- size_t iL = length();
- size_t nL = rhs.length();
- // create temporary vectors and sort them
- std::vector<Simple_Selector_Obj> l_lst = this->elements();
- std::vector<Simple_Selector_Obj> r_lst = rhs.elements();
- std::sort(l_lst.begin(), l_lst.end(), OrderNodes());
- std::sort(r_lst.begin(), r_lst.end(), OrderNodes());
- // process loop
- while (true)
- {
- // first check for valid index
- if (i == iL) return iL == nL;
- else if (n == nL) return iL == nL;
- // the access the vector items
- Simple_Selector_Obj l = l_lst[i];
- Simple_Selector_Obj r = r_lst[n];
- // skip nulls
- if (!l) ++i;
- if (!r) ++n;
- // do the check now
- else if (*l != *r)
- { return false; }
- // advance now
- ++i; ++n;
- }
- // there is no break?!
- }
-
- bool Complex_Selector::is_superselector_of(Compound_Selector_Obj rhs, std::string wrapping)
- {
- return last()->head() && last()->head()->is_superselector_of(rhs, wrapping);
- }
-
- bool Complex_Selector::is_superselector_of(Complex_Selector_Obj rhs, std::string wrapping)
- {
- Complex_Selector_Ptr lhs = this;
- // check for selectors with leading or trailing combinators
- if (!lhs->head() || !rhs->head())
- { return false; }
- Complex_Selector_Obj l_innermost = lhs->innermost();
- if (l_innermost->combinator() != Complex_Selector::ANCESTOR_OF)
- { return false; }
- Complex_Selector_Obj r_innermost = rhs->innermost();
- if (r_innermost->combinator() != Complex_Selector::ANCESTOR_OF)
- { return false; }
- // more complex (i.e., longer) selectors are always more specific
- size_t l_len = lhs->length(), r_len = rhs->length();
- if (l_len > r_len)
- { return false; }
-
- if (l_len == 1)
- { return lhs->head()->is_superselector_of(rhs->last()->head(), wrapping); }
-
- // we have to look one tail deeper, since we cary the
- // combinator around for it (which is important here)
- if (rhs->tail() && lhs->tail() && combinator() != Complex_Selector::ANCESTOR_OF) {
- Complex_Selector_Obj lhs_tail = lhs->tail();
- Complex_Selector_Obj rhs_tail = rhs->tail();
- if (lhs_tail->combinator() != rhs_tail->combinator()) return false;
- if (lhs_tail->head() && !rhs_tail->head()) return false;
- if (!lhs_tail->head() && rhs_tail->head()) return false;
- if (lhs_tail->head() && rhs_tail->head()) {
- if (!lhs_tail->head()->is_superselector_of(rhs_tail->head())) return false;
- }
- }
-
- bool found = false;
- Complex_Selector_Obj marker = rhs;
- for (size_t i = 0, L = rhs->length(); i < L; ++i) {
- if (i == L-1)
- { return false; }
- if (lhs->head() && marker->head() && lhs->head()->is_superselector_of(marker->head(), wrapping))
- { found = true; break; }
- marker = marker->tail();
- }
- if (!found)
- { return false; }
-
- /*
- Hmm, I hope I have the logic right:
-
- if lhs has a combinator:
- if !(marker has a combinator) return false
- if !(lhs.combinator == '~' ? marker.combinator != '>' : lhs.combinator == marker.combinator) return false
- return lhs.tail-without-innermost.is_superselector_of(marker.tail-without-innermost)
- else if marker has a combinator:
- if !(marker.combinator == ">") return false
- return lhs.tail.is_superselector_of(marker.tail)
- else
- return lhs.tail.is_superselector_of(marker.tail)
- */
- if (lhs->combinator() != Complex_Selector::ANCESTOR_OF)
- {
- if (marker->combinator() == Complex_Selector::ANCESTOR_OF)
- { return false; }
- if (!(lhs->combinator() == Complex_Selector::PRECEDES ? marker->combinator() != Complex_Selector::PARENT_OF : lhs->combinator() == marker->combinator()))
- { return false; }
- return lhs->tail()->is_superselector_of(marker->tail());
- }
- else if (marker->combinator() != Complex_Selector::ANCESTOR_OF)
- {
- if (marker->combinator() != Complex_Selector::PARENT_OF)
- { return false; }
- return lhs->tail()->is_superselector_of(marker->tail());
- }
- return lhs->tail()->is_superselector_of(marker->tail());
- }
-
- size_t Complex_Selector::length() const
- {
- // TODO: make this iterative
- if (!tail()) return 1;
- return 1 + tail()->length();
- }
-
- // append another complex selector at the end
- // check if we need to append some headers
- // then we need to check for the combinator
- // only then we can safely set the new tail
- void Complex_Selector::append(Complex_Selector_Obj ss, Backtraces& traces)
- {
-
- Complex_Selector_Obj t = ss->tail();
- Combinator c = ss->combinator();
- String_Obj r = ss->reference();
- Compound_Selector_Obj h = ss->head();
-
- if (ss->has_line_feed()) has_line_feed(true);
- if (ss->has_line_break()) has_line_break(true);
-
- // append old headers
- if (h && h->length()) {
- if (last()->combinator() != ANCESTOR_OF && c != ANCESTOR_OF) {
- traces.push_back(Backtrace(pstate()));
- throw Exception::InvalidParent(this, traces, ss);
- } else if (last()->head_ && last()->head_->length()) {
- Compound_Selector_Obj rh = last()->head();
- size_t i;
- size_t L = h->length();
- if (Cast<Element_Selector>(h->first())) {
- if (Class_Selector_Ptr cs = Cast<Class_Selector>(rh->last())) {
- Class_Selector_Ptr sqs = SASS_MEMORY_COPY(cs);
- sqs->name(sqs->name() + (*h)[0]->name());
- sqs->pstate((*h)[0]->pstate());
- (*rh)[rh->length()-1] = sqs;
- rh->pstate(h->pstate());
- for (i = 1; i < L; ++i) rh->append((*h)[i]);
- } else if (Id_Selector_Ptr is = Cast<Id_Selector>(rh->last())) {
- Id_Selector_Ptr sqs = SASS_MEMORY_COPY(is);
- sqs->name(sqs->name() + (*h)[0]->name());
- sqs->pstate((*h)[0]->pstate());
- (*rh)[rh->length()-1] = sqs;
- rh->pstate(h->pstate());
- for (i = 1; i < L; ++i) rh->append((*h)[i]);
- } else if (Element_Selector_Ptr ts = Cast<Element_Selector>(rh->last())) {
- Element_Selector_Ptr tss = SASS_MEMORY_COPY(ts);
- tss->name(tss->name() + (*h)[0]->name());
- tss->pstate((*h)[0]->pstate());
- (*rh)[rh->length()-1] = tss;
- rh->pstate(h->pstate());
- for (i = 1; i < L; ++i) rh->append((*h)[i]);
- } else if (Placeholder_Selector_Ptr ps = Cast<Placeholder_Selector>(rh->last())) {
- Placeholder_Selector_Ptr pss = SASS_MEMORY_COPY(ps);
- pss->name(pss->name() + (*h)[0]->name());
- pss->pstate((*h)[0]->pstate());
- (*rh)[rh->length()-1] = pss;
- rh->pstate(h->pstate());
- for (i = 1; i < L; ++i) rh->append((*h)[i]);
- } else {
- last()->head_->concat(h);
- }
- } else {
- last()->head_->concat(h);
- }
- } else if (last()->head_) {
- last()->head_->concat(h);
- }
- } else {
- // std::cerr << "has no or empty head\n";
- }
-
- if (last()) {
- if (last()->combinator() != ANCESTOR_OF && c != ANCESTOR_OF) {
- Complex_Selector_Ptr inter = SASS_MEMORY_NEW(Complex_Selector, pstate());
- inter->reference(r);
- inter->combinator(c);
- inter->tail(t);
- last()->tail(inter);
- } else {
- if (last()->combinator() == ANCESTOR_OF) {
- last()->combinator(c);
- last()->reference(r);
- }
- last()->tail(t);
- }
- }
-
- }
-
- Selector_List_Obj Selector_List::eval(Eval& eval)
- {
- Selector_List_Obj list = schema() ?
- eval(schema()) : eval(this);
- list->schema(schema());
- return list;
- }
-
- Selector_List_Ptr Selector_List::resolve_parent_refs(std::vector<Selector_List_Obj>& pstack, Backtraces& traces, bool implicit_parent)
- {
- if (!this->has_parent_ref()) return this;
- Selector_List_Ptr ss = SASS_MEMORY_NEW(Selector_List, pstate());
- Selector_List_Ptr ps = pstack.back();
- for (size_t pi = 0, pL = ps->length(); pi < pL; ++pi) {
- for (size_t si = 0, sL = this->length(); si < sL; ++si) {
- Selector_List_Obj rv = at(si)->resolve_parent_refs(pstack, traces, implicit_parent);
- ss->concat(rv);
- }
- }
- return ss;
- }
-
- Selector_List_Ptr Complex_Selector::resolve_parent_refs(std::vector<Selector_List_Obj>& pstack, Backtraces& traces, bool implicit_parent)
- {
- Complex_Selector_Obj tail = this->tail();
- Compound_Selector_Obj head = this->head();
- Selector_List_Ptr parents = pstack.back();
-
- if (!this->has_real_parent_ref() && !implicit_parent) {
- Selector_List_Ptr retval = SASS_MEMORY_NEW(Selector_List, pstate());
- retval->append(this);
- return retval;
- }
-
- // first resolve_parent_refs the tail (which may return an expanded list)
- Selector_List_Obj tails = tail ? tail->resolve_parent_refs(pstack, traces, implicit_parent) : 0;
-
- if (head && head->length() > 0) {
-
- Selector_List_Obj retval;
- // we have a parent selector in a simple compound list
- // mix parent complex selector into the compound list
- if (Cast<Parent_Selector>((*head)[0])) {
- retval = SASS_MEMORY_NEW(Selector_List, pstate());
-
- // it turns out that real parent references reach
- // across @at-root rules, which comes unexpected
- if (parents == NULL && head->has_real_parent_ref()) {
- int i = pstack.size() - 1;
- while (!parents && i > -1) {
- parents = pstack.at(i--);
- }
- }
-
- if (parents && parents->length()) {
- if (tails && tails->length() > 0) {
- for (size_t n = 0, nL = tails->length(); n < nL; ++n) {
- for (size_t i = 0, iL = parents->length(); i < iL; ++i) {
- Complex_Selector_Obj t = (*tails)[n];
- Complex_Selector_Obj parent = (*parents)[i];
- Complex_Selector_Obj s = SASS_MEMORY_CLONE(parent);
- Complex_Selector_Obj ss = SASS_MEMORY_CLONE(this);
- ss->tail(t ? SASS_MEMORY_CLONE(t) : NULL);
- Compound_Selector_Obj h = SASS_MEMORY_COPY(head_);
- // remove parent selector from sequence
- if (h->length()) {
- h->erase(h->begin());
- ss->head(h);
- } else {
- ss->head(NULL);
- }
- // adjust for parent selector (1 char)
- // if (h->length()) {
- // ParserState state(h->at(0)->pstate());
- // state.offset.column += 1;
- // state.column -= 1;
- // (*h)[0]->pstate(state);
- // }
- // keep old parser state
- s->pstate(pstate());
- // append new tail
- s->append(ss, traces);
- retval->append(s);
- }
- }
- }
- // have no tails but parents
- // loop above is inside out
- else {
- for (size_t i = 0, iL = parents->length(); i < iL; ++i) {
- Complex_Selector_Obj parent = (*parents)[i];
- Complex_Selector_Obj s = SASS_MEMORY_CLONE(parent);
- Complex_Selector_Obj ss = SASS_MEMORY_CLONE(this);
- // this is only if valid if the parent has no trailing op
- // otherwise we cannot append more simple selectors to head
- if (parent->last()->combinator() != ANCESTOR_OF) {
- traces.push_back(Backtrace(pstate()));
- throw Exception::InvalidParent(parent, traces, ss);
- }
- ss->tail(tail ? SASS_MEMORY_CLONE(tail) : NULL);
- Compound_Selector_Obj h = SASS_MEMORY_COPY(head_);
- // remove parent selector from sequence
- if (h->length()) {
- h->erase(h->begin());
- ss->head(h);
- } else {
- ss->head(NULL);
- }
- // \/ IMO ruby sass bug \/
- ss->has_line_feed(false);
- // adjust for parent selector (1 char)
- // if (h->length()) {
- // ParserState state(h->at(0)->pstate());
- // state.offset.column += 1;
- // state.column -= 1;
- // (*h)[0]->pstate(state);
- // }
- // keep old parser state
- s->pstate(pstate());
- // append new tail
- s->append(ss, traces);
- retval->append(s);
- }
- }
- }
- // have no parent but some tails
- else {
- if (tails && tails->length() > 0) {
- for (size_t n = 0, nL = tails->length(); n < nL; ++n) {
- Complex_Selector_Obj cpy = SASS_MEMORY_CLONE(this);
- cpy->tail(SASS_MEMORY_CLONE(tails->at(n)));
- cpy->head(SASS_MEMORY_NEW(Compound_Selector, head->pstate()));
- for (size_t i = 1, L = this->head()->length(); i < L; ++i)
- cpy->head()->append((*this->head())[i]);
- if (!cpy->head()->length()) cpy->head(0);
- retval->append(cpy->skip_empty_reference());
- }
- }
- // have no parent nor tails
- else {
- Complex_Selector_Obj cpy = SASS_MEMORY_CLONE(this);
- cpy->head(SASS_MEMORY_NEW(Compound_Selector, head->pstate()));
- for (size_t i = 1, L = this->head()->length(); i < L; ++i)
- cpy->head()->append((*this->head())[i]);
- if (!cpy->head()->length()) cpy->head(0);
- retval->append(cpy->skip_empty_reference());
- }
- }
- }
- // no parent selector in head
- else {
- retval = this->tails(tails);
- }
-
- for (Simple_Selector_Obj ss : head->elements()) {
- if (Wrapped_Selector_Ptr ws = Cast<Wrapped_Selector>(ss)) {
- if (Selector_List_Ptr sl = Cast<Selector_List>(ws->selector())) {
- if (parents) ws->selector(sl->resolve_parent_refs(pstack, traces, implicit_parent));
- }
- }
- }
-
- return retval.detach();
-
- }
- // has no head
- return this->tails(tails);
- }
-
- Selector_List_Ptr Complex_Selector::tails(Selector_List_Ptr tails)
- {
- Selector_List_Ptr rv = SASS_MEMORY_NEW(Selector_List, pstate_);
- if (tails && tails->length()) {
- for (size_t i = 0, iL = tails->length(); i < iL; ++i) {
- Complex_Selector_Obj pr = SASS_MEMORY_CLONE(this);
- pr->tail(tails->at(i));
- rv->append(pr);
- }
- }
- else {
- rv->append(this);
- }
- return rv;
- }
-
- // return the last tail that is defined
- Complex_Selector_Obj Complex_Selector::first()
- {
- // declare variables used in loop
- Complex_Selector_Obj cur = this;
- Compound_Selector_Obj head;
- // processing loop
- while (cur)
- {
- // get the head
- head = cur->head_;
- // abort (and return) if it is not a parent selector
- if (!head || head->length() != 1 || !Cast<Parent_Selector>((*head)[0])) {
- break;
- }
- // advance to next
- cur = cur->tail_;
- }
- // result
- return cur;
- }
-
- // return the last tail that is defined
- Complex_Selector_Obj Complex_Selector::last()
- {
- Complex_Selector_Ptr cur = this;
- Complex_Selector_Ptr nxt = cur;
- // loop until last
- while (nxt) {
- cur = nxt;
- nxt = cur->tail();
- }
- return cur;
- }
-
- Complex_Selector::Combinator Complex_Selector::clear_innermost()
- {
- Combinator c;
- if (!tail() || tail()->tail() == 0)
- { c = combinator(); combinator(ANCESTOR_OF); tail(0); }
- else
- { c = tail()->clear_innermost(); }
- return c;
- }
-
- void Complex_Selector::set_innermost(Complex_Selector_Obj val, Combinator c)
- {
- if (!tail())
- { tail(val); combinator(c); }
- else
- { tail()->set_innermost(val, c); }
- }
-
- void Complex_Selector::cloneChildren()
- {
- if (head()) head(SASS_MEMORY_CLONE(head()));
- if (tail()) tail(SASS_MEMORY_CLONE(tail()));
- }
-
- void Compound_Selector::cloneChildren()
- {
- for (size_t i = 0, l = length(); i < l; i++) {
- at(i) = SASS_MEMORY_CLONE(at(i));
- }
- }
-
- void Selector_List::cloneChildren()
- {
- for (size_t i = 0, l = length(); i < l; i++) {
- at(i) = SASS_MEMORY_CLONE(at(i));
- }
- }
-
- void Wrapped_Selector::cloneChildren()
- {
- selector(SASS_MEMORY_CLONE(selector()));
- }
-
- // remove parent selector references
- // basically unwraps parsed selectors
- void Selector_List::remove_parent_selectors()
- {
- // Check every rhs selector against left hand list
- for(size_t i = 0, L = length(); i < L; ++i) {
- if (!(*this)[i]->head()) continue;
- if ((*this)[i]->head()->is_empty_reference()) {
- // simply move to the next tail if we have "no" combinator
- if ((*this)[i]->combinator() == Complex_Selector::ANCESTOR_OF) {
- if ((*this)[i]->tail()) {
- if ((*this)[i]->has_line_feed()) {
- (*this)[i]->tail()->has_line_feed(true);
- }
- (*this)[i] = (*this)[i]->tail();
- }
- }
- // otherwise remove the first item from head
- else {
- (*this)[i]->head()->erase((*this)[i]->head()->begin());
- }
- }
- }
- }
-
- size_t Wrapped_Selector::hash()
- {
- if (hash_ == 0) {
- hash_combine(hash_, Simple_Selector::hash());
- if (selector_) hash_combine(hash_, selector_->hash());
- }
- return hash_;
- }
- bool Wrapped_Selector::has_parent_ref() const {
- // if (has_reference()) return true;
- if (!selector()) return false;
- return selector()->has_parent_ref();
- }
- bool Wrapped_Selector::has_real_parent_ref() const {
- // if (has_reference()) return true;
- if (!selector()) return false;
- return selector()->has_real_parent_ref();
- }
- unsigned long Wrapped_Selector::specificity() const
- {
- return selector_ ? selector_->specificity() : 0;
- }
-
-
- bool Selector_List::has_parent_ref() const
- {
- for (Complex_Selector_Obj s : elements()) {
- if (s && s->has_parent_ref()) return true;
- }
- return false;
- }
-
- bool Selector_List::has_real_parent_ref() const
- {
- for (Complex_Selector_Obj s : elements()) {
- if (s && s->has_real_parent_ref()) return true;
- }
- return false;
- }
-
- bool Selector_Schema::has_parent_ref() const
- {
- if (String_Schema_Obj schema = Cast<String_Schema>(contents())) {
- return schema->length() > 0 && Cast<Parent_Selector>(schema->at(0)) != NULL;
- }
- return false;
- }
-
- bool Selector_Schema::has_real_parent_ref() const
- {
- if (String_Schema_Obj schema = Cast<String_Schema>(contents())) {
- Parent_Selector_Obj p = Cast<Parent_Selector>(schema->at(0));
- return schema->length() > 0 && p && p->is_real_parent_ref();
- }
- return false;
- }
-
- void Selector_List::adjust_after_pushing(Complex_Selector_Obj c)
- {
- // if (c->has_reference()) has_reference(true);
- }
-
- // it's a superselector if every selector of the right side
- // list is a superselector of the given left side selector
- bool Complex_Selector::is_superselector_of(Selector_List_Obj sub, std::string wrapping)
- {
- // Check every rhs selector against left hand list
- for(size_t i = 0, L = sub->length(); i < L; ++i) {
- if (!is_superselector_of((*sub)[i], wrapping)) return false;
- }
- return true;
- }
-
- // it's a superselector if every selector of the right side
- // list is a superselector of the given left side selector
- bool Selector_List::is_superselector_of(Selector_List_Obj sub, std::string wrapping)
- {
- // Check every rhs selector against left hand list
- for(size_t i = 0, L = sub->length(); i < L; ++i) {
- if (!is_superselector_of((*sub)[i], wrapping)) return false;
- }
- return true;
- }
-
- // it's a superselector if every selector on the right side
- // is a superselector of any one of the left side selectors
- bool Selector_List::is_superselector_of(Compound_Selector_Obj sub, std::string wrapping)
- {
- // Check every lhs selector against right hand
- for(size_t i = 0, L = length(); i < L; ++i) {
- if ((*this)[i]->is_superselector_of(sub, wrapping)) return true;
- }
- return false;
- }
-
- // it's a superselector if every selector on the right side
- // is a superselector of any one of the left side selectors
- bool Selector_List::is_superselector_of(Complex_Selector_Obj sub, std::string wrapping)
- {
- // Check every lhs selector against right hand
- for(size_t i = 0, L = length(); i < L; ++i) {
- if ((*this)[i]->is_superselector_of(sub)) return true;
- }
- return false;
- }
-
- Selector_List_Ptr Selector_List::unify_with(Selector_List_Ptr rhs) {
- std::vector<Complex_Selector_Obj> unified_complex_selectors;
- // Unify all of children with RHS's children, storing the results in `unified_complex_selectors`
- for (size_t lhs_i = 0, lhs_L = length(); lhs_i < lhs_L; ++lhs_i) {
- Complex_Selector_Obj seq1 = (*this)[lhs_i];
- for(size_t rhs_i = 0, rhs_L = rhs->length(); rhs_i < rhs_L; ++rhs_i) {
- Complex_Selector_Ptr seq2 = rhs->at(rhs_i);
-
- Selector_List_Obj result = seq1->unify_with(seq2);
- if( result ) {
- for(size_t i = 0, L = result->length(); i < L; ++i) {
- unified_complex_selectors.push_back( (*result)[i] );
- }
- }
- }
- }
-
- // Creates the final Selector_List by combining all the complex selectors
- Selector_List_Ptr final_result = SASS_MEMORY_NEW(Selector_List, pstate());
- for (auto itr = unified_complex_selectors.begin(); itr != unified_complex_selectors.end(); ++itr) {
- final_result->append(*itr);
- }
- return final_result;
- }
-
- void Selector_List::populate_extends(Selector_List_Obj extendee, Subset_Map& extends)
- {
-
- Selector_List_Ptr extender = this;
- for (auto complex_sel : extendee->elements()) {
- Complex_Selector_Obj c = complex_sel;
-
-
- // Ignore any parent selectors, until we find the first non Selectorerence head
- Compound_Selector_Obj compound_sel = c->head();
- Complex_Selector_Obj pIter = complex_sel;
- while (pIter) {
- Compound_Selector_Obj pHead = pIter->head();
- if (pHead && Cast<Parent_Selector>(pHead->elements()[0]) == NULL) {
- compound_sel = pHead;
- break;
- }
-
- pIter = pIter->tail();
- }
-
- if (!pIter->head() || pIter->tail()) {
- coreError("nested selectors may not be extended", c->pstate());
- }
-
- compound_sel->is_optional(extendee->is_optional());
-
- for (size_t i = 0, L = extender->length(); i < L; ++i) {
- extends.put(compound_sel, std::make_pair((*extender)[i], compound_sel));
- }
- }
- };
-
- void Compound_Selector::append(Simple_Selector_Ptr element)
- {
- Vectorized<Simple_Selector_Obj>::append(element);
- pstate_.offset += element->pstate().offset;
- }
-
- Compound_Selector_Ptr Compound_Selector::minus(Compound_Selector_Ptr rhs)
- {
- Compound_Selector_Ptr result = SASS_MEMORY_NEW(Compound_Selector, pstate());
- // result->has_parent_reference(has_parent_reference());
-
- // not very efficient because it needs to preserve order
- for (size_t i = 0, L = length(); i < L; ++i)
- {
- bool found = false;
- std::string thisSelector((*this)[i]->to_string());
- for (size_t j = 0, M = rhs->length(); j < M; ++j)
- {
- if (thisSelector == (*rhs)[j]->to_string())
- {
- found = true;
- break;
- }
- }
- if (!found) result->append((*this)[i]);
- }
-
- return result;
- }
-
- void Compound_Selector::mergeSources(ComplexSelectorSet& sources)
- {
- for (ComplexSelectorSet::iterator iterator = sources.begin(), endIterator = sources.end(); iterator != endIterator; ++iterator) {
- this->sources_.insert(SASS_MEMORY_CLONE(*iterator));
- }
- }
-
- Argument_Obj Arguments::get_rest_argument()
- {
- if (this->has_rest_argument()) {
- for (Argument_Obj arg : this->elements()) {
- if (arg->is_rest_argument()) {
- return arg;
- }
- }
- }
- return NULL;
- }
-
- Argument_Obj Arguments::get_keyword_argument()
- {
- if (this->has_keyword_argument()) {
- for (Argument_Obj arg : this->elements()) {
- if (arg->is_keyword_argument()) {
- return arg;
- }
- }
- }
- return NULL;
- }
-
- void Arguments::adjust_after_pushing(Argument_Obj a)
- {
- if (!a->name().empty()) {
- if (has_keyword_argument()) {
- coreError("named arguments must precede variable-length argument", a->pstate());
- }
- has_named_arguments(true);
- }
- else if (a->is_rest_argument()) {
- if (has_rest_argument()) {
- coreError("functions and mixins may only be called with one variable-length argument", a->pstate());
- }
- if (has_keyword_argument_) {
- coreError("only keyword arguments may follow variable arguments", a->pstate());
- }
- has_rest_argument(true);
- }
- else if (a->is_keyword_argument()) {
- if (has_keyword_argument()) {
- coreError("functions and mixins may only be called with one keyword argument", a->pstate());
- }
- has_keyword_argument(true);
- }
- else {
- if (has_rest_argument()) {
- coreError("ordinal arguments must precede variable-length arguments", a->pstate());
- }
- if (has_named_arguments()) {
- coreError("ordinal arguments must precede named arguments", a->pstate());
- }
- }
- }
-
- bool Ruleset::is_invisible() const {
- if (Selector_List_Ptr sl = Cast<Selector_List>(selector())) {
- for (size_t i = 0, L = sl->length(); i < L; ++i)
- if (!(*sl)[i]->has_placeholder()) return false;
- }
- return true;
- }
-
- bool Media_Block::is_invisible() const {
- for (size_t i = 0, L = block()->length(); i < L; ++i) {
- Statement_Obj stm = block()->at(i);
- if (!stm->is_invisible()) return false;
- }
- return true;
- }
-
- Number::Number(ParserState pstate, double val, std::string u, bool zero)
- : Value(pstate),
- Units(),
- value_(val),
- zero_(zero),
- hash_(0)
- {
- size_t l = 0;
- size_t r;
- if (!u.empty()) {
- bool nominator = true;
- while (true) {
- r = u.find_first_of("*/", l);
- std::string unit(u.substr(l, r == std::string::npos ? r : r - l));
- if (!unit.empty()) {
- if (nominator) numerators.push_back(unit);
- else denominators.push_back(unit);
- }
- if (r == std::string::npos) break;
- // ToDo: should error for multiple slashes
- // if (!nominator && u[r] == '/') error(...)
- if (u[r] == '/')
- nominator = false;
- // strange math parsing?
- // else if (u[r] == '*')
- // nominator = true;
- l = r + 1;
- }
- }
- concrete_type(NUMBER);
- }
-
- // cancel out unnecessary units
- void Number::reduce()
- {
- // apply conversion factor
- value_ *= this->Units::reduce();
- }
-
- void Number::normalize()
- {
- // apply conversion factor
- value_ *= this->Units::normalize();
- }
-
- bool Custom_Warning::operator== (const Expression& rhs) const
- {
- if (Custom_Warning_Ptr_Const r = Cast<Custom_Warning>(&rhs)) {
- return message() == r->message();
- }
- return false;
- }
-
- bool Custom_Error::operator== (const Expression& rhs) const
- {
- if (Custom_Error_Ptr_Const r = Cast<Custom_Error>(&rhs)) {
- return message() == r->message();
- }
- return false;
- }
-
- bool Number::operator== (const Expression& rhs) const
- {
- if (auto rhsnr = Cast<Number>(&rhs)) {
- return *this == *rhsnr;
- }
- return false;
- }
-
- bool Number::operator== (const Number& rhs) const
- {
- Number l(*this), r(rhs); l.reduce(); r.reduce();
- size_t lhs_units = l.numerators.size() + l.denominators.size();
- size_t rhs_units = r.numerators.size() + r.denominators.size();
- // unitless and only having one unit seems equivalent (will change in future)
- if (!lhs_units || !rhs_units) {
- return NEAR_EQUAL(l.value(), r.value());
- }
- l.normalize(); r.normalize();
- Units &lhs_unit = l, &rhs_unit = r;
- return lhs_unit == rhs_unit &&
- NEAR_EQUAL(l.value(), r.value());
- }
-
- bool Number::operator< (const Number& rhs) const
- {
- Number l(*this), r(rhs); l.reduce(); r.reduce();
- size_t lhs_units = l.numerators.size() + l.denominators.size();
- size_t rhs_units = r.numerators.size() + r.denominators.size();
- // unitless and only having one unit seems equivalent (will change in future)
- if (!lhs_units || !rhs_units) {
- return l.value() < r.value();
- }
- l.normalize(); r.normalize();
- Units &lhs_unit = l, &rhs_unit = r;
- if (!(lhs_unit == rhs_unit)) {
- /* ToDo: do we always get usefull backtraces? */
- throw Exception::IncompatibleUnits(rhs, *this);
- }
- return lhs_unit < rhs_unit ||
- l.value() < r.value();
- }
-
- bool String_Quoted::operator== (const Expression& rhs) const
- {
- if (String_Quoted_Ptr_Const qstr = Cast<String_Quoted>(&rhs)) {
- return (value() == qstr->value());
- } else if (String_Constant_Ptr_Const cstr = Cast<String_Constant>(&rhs)) {
- return (value() == cstr->value());
- }
- return false;
- }
-
- bool String_Constant::is_invisible() const {
- return value_.empty() && quote_mark_ == 0;
- }
-
- bool String_Constant::operator== (const Expression& rhs) const
- {
- if (String_Quoted_Ptr_Const qstr = Cast<String_Quoted>(&rhs)) {
- return (value() == qstr->value());
- } else if (String_Constant_Ptr_Const cstr = Cast<String_Constant>(&rhs)) {
- return (value() == cstr->value());
- }
- return false;
- }
-
- bool String_Schema::is_left_interpolant(void) const
- {
- return length() && first()->is_left_interpolant();
- }
- bool String_Schema::is_right_interpolant(void) const
- {
- return length() && last()->is_right_interpolant();
- }
-
- bool String_Schema::operator== (const Expression& rhs) const
- {
- if (String_Schema_Ptr_Const r = Cast<String_Schema>(&rhs)) {
- if (length() != r->length()) return false;
- for (size_t i = 0, L = length(); i < L; ++i) {
- Expression_Obj rv = (*r)[i];
- Expression_Obj lv = (*this)[i];
- if (!lv || !rv) return false;
- if (!(*lv == *rv)) return false;
- }
- return true;
- }
- return false;
- }
-
- bool Boolean::operator== (const Expression& rhs) const
- {
- if (Boolean_Ptr_Const r = Cast<Boolean>(&rhs)) {
- return (value() == r->value());
- }
- return false;
- }
-
- bool Color::operator== (const Expression& rhs) const
- {
- if (Color_Ptr_Const r = Cast<Color>(&rhs)) {
- return r_ == r->r() &&
- g_ == r->g() &&
- b_ == r->b() &&
- a_ == r->a();
- }
- return false;
- }
-
- bool List::operator== (const Expression& rhs) const
- {
- if (List_Ptr_Const r = Cast<List>(&rhs)) {
- if (length() != r->length()) return false;
- if (separator() != r->separator()) return false;
- if (is_bracketed() != r->is_bracketed()) return false;
- for (size_t i = 0, L = length(); i < L; ++i) {
- Expression_Obj rv = r->at(i);
- Expression_Obj lv = this->at(i);
- if (!lv || !rv) return false;
- if (!(*lv == *rv)) return false;
- }
- return true;
- }
- return false;
- }
-
- bool Map::operator== (const Expression& rhs) const
- {
- if (Map_Ptr_Const r = Cast<Map>(&rhs)) {
- if (length() != r->length()) return false;
- for (auto key : keys()) {
- Expression_Obj lv = at(key);
- Expression_Obj rv = r->at(key);
- if (!rv || !lv) return false;
- if (!(*lv == *rv)) return false;
- }
- return true;
- }
- return false;
- }
-
- bool Null::operator== (const Expression& rhs) const
- {
- return rhs.concrete_type() == NULL_VAL;
- }
-
- bool Function::operator== (const Expression& rhs) const
- {
- if (Function_Ptr_Const r = Cast<Function>(&rhs)) {
- Definition_Ptr_Const d1 = Cast<Definition>(definition());
- Definition_Ptr_Const d2 = Cast<Definition>(r->definition());
- return d1 && d2 && d1 == d2 && is_css() == r->is_css();
- }
- return false;
- }
-
- size_t List::size() const {
- if (!is_arglist_) return length();
- // arglist expects a list of arguments
- // so we need to break before keywords
- for (size_t i = 0, L = length(); i < L; ++i) {
- Expression_Obj obj = this->at(i);
- if (Argument_Ptr arg = Cast<Argument>(obj)) {
- if (!arg->name().empty()) return i;
- }
- }
- return length();
- }
-
- Expression_Obj Hashed::at(Expression_Obj k) const
- {
- if (elements_.count(k))
- { return elements_.at(k); }
- else { return NULL; }
- }
-
- bool Binary_Expression::is_left_interpolant(void) const
- {
- return is_interpolant() || (left() && left()->is_left_interpolant());
- }
- bool Binary_Expression::is_right_interpolant(void) const
- {
- return is_interpolant() || (right() && right()->is_right_interpolant());
- }
-
- const std::string AST_Node::to_string(Sass_Inspect_Options opt) const
- {
- Sass_Output_Options out(opt);
- Emitter emitter(out);
- Inspect i(emitter);
- i.in_declaration = true;
- // ToDo: inspect should be const
- const_cast<AST_Node_Ptr>(this)->perform(&i);
- return i.get_buffer();
- }
-
- const std::string AST_Node::to_string() const
- {
- return to_string({ NESTED, 5 });
- }
-
- std::string String_Quoted::inspect() const
- {
- return quote(value_, '*');
- }
-
- std::string String_Constant::inspect() const
- {
- return quote(value_, '*');
- }
-
- bool Declaration::is_invisible() const
- {
- if (is_custom_property()) return false;
-
- return !(value_ && value_->concrete_type() != Expression::NULL_VAL);
- }
-
- //////////////////////////////////////////////////////////////////////////////////////////
- // Additional method on Lists to retrieve values directly or from an encompassed Argument.
- //////////////////////////////////////////////////////////////////////////////////////////
- Expression_Obj List::value_at_index(size_t i) {
- Expression_Obj obj = this->at(i);
- if (is_arglist_) {
- if (Argument_Ptr arg = Cast<Argument>(obj)) {
- return arg->value();
- } else {
- return obj;
- }
- } else {
- return obj;
- }
- }
-
- //////////////////////////////////////////////////////////////////////////////////////////
- // Convert map to (key, value) list.
- //////////////////////////////////////////////////////////////////////////////////////////
- List_Obj Map::to_list(ParserState& pstate) {
- List_Obj ret = SASS_MEMORY_NEW(List, pstate, length(), SASS_COMMA);
-
- for (auto key : keys()) {
- List_Obj l = SASS_MEMORY_NEW(List, pstate, 2);
- l->append(key);
- l->append(at(key));
- ret->append(l);
- }
-
- return ret;
- }
-
- //////////////////////////////////////////////////////////////////////////////////////////
- // Copy implementations
- //////////////////////////////////////////////////////////////////////////////////////////
-
- #ifdef DEBUG_SHARED_PTR
-
- #define IMPLEMENT_AST_OPERATORS(klass) \
- klass##_Ptr klass::copy(std::string file, size_t line) const { \
- klass##_Ptr cpy = new klass(this); \
- cpy->trace(file, line); \
- return cpy; \
- } \
- klass##_Ptr klass::clone(std::string file, size_t line) const { \
- klass##_Ptr cpy = copy(file, line); \
- cpy->cloneChildren(); \
- return cpy; \
- } \
-
- #else
-
- #define IMPLEMENT_AST_OPERATORS(klass) \
- klass##_Ptr klass::copy() const { \
- return new klass(this); \
- } \
- klass##_Ptr klass::clone() const { \
- klass##_Ptr cpy = copy(); \
- cpy->cloneChildren(); \
- return cpy; \
- } \
-
- #endif
-
- IMPLEMENT_AST_OPERATORS(Supports_Operator);
- IMPLEMENT_AST_OPERATORS(Supports_Negation);
- IMPLEMENT_AST_OPERATORS(Compound_Selector);
- IMPLEMENT_AST_OPERATORS(Complex_Selector);
- IMPLEMENT_AST_OPERATORS(Element_Selector);
- IMPLEMENT_AST_OPERATORS(Class_Selector);
- IMPLEMENT_AST_OPERATORS(Id_Selector);
- IMPLEMENT_AST_OPERATORS(Pseudo_Selector);
- IMPLEMENT_AST_OPERATORS(Wrapped_Selector);
- IMPLEMENT_AST_OPERATORS(Selector_List);
- IMPLEMENT_AST_OPERATORS(Ruleset);
- IMPLEMENT_AST_OPERATORS(Media_Block);
- IMPLEMENT_AST_OPERATORS(Custom_Warning);
- IMPLEMENT_AST_OPERATORS(Custom_Error);
- IMPLEMENT_AST_OPERATORS(List);
- IMPLEMENT_AST_OPERATORS(Map);
- IMPLEMENT_AST_OPERATORS(Function);
- IMPLEMENT_AST_OPERATORS(Number);
- IMPLEMENT_AST_OPERATORS(Binary_Expression);
- IMPLEMENT_AST_OPERATORS(String_Schema);
- IMPLEMENT_AST_OPERATORS(String_Constant);
- IMPLEMENT_AST_OPERATORS(String_Quoted);
- IMPLEMENT_AST_OPERATORS(Boolean);
- IMPLEMENT_AST_OPERATORS(Color);
- IMPLEMENT_AST_OPERATORS(Null);
- IMPLEMENT_AST_OPERATORS(Parent_Selector);
- IMPLEMENT_AST_OPERATORS(Import);
- IMPLEMENT_AST_OPERATORS(Import_Stub);
- IMPLEMENT_AST_OPERATORS(Function_Call);
- IMPLEMENT_AST_OPERATORS(Directive);
- IMPLEMENT_AST_OPERATORS(At_Root_Block);
- IMPLEMENT_AST_OPERATORS(Supports_Block);
- IMPLEMENT_AST_OPERATORS(While);
- IMPLEMENT_AST_OPERATORS(Each);
- IMPLEMENT_AST_OPERATORS(For);
- IMPLEMENT_AST_OPERATORS(If);
- IMPLEMENT_AST_OPERATORS(Mixin_Call);
- IMPLEMENT_AST_OPERATORS(Extension);
- IMPLEMENT_AST_OPERATORS(Media_Query);
- IMPLEMENT_AST_OPERATORS(Media_Query_Expression);
- IMPLEMENT_AST_OPERATORS(Debug);
- IMPLEMENT_AST_OPERATORS(Error);
- IMPLEMENT_AST_OPERATORS(Warning);
- IMPLEMENT_AST_OPERATORS(Assignment);
- IMPLEMENT_AST_OPERATORS(Return);
- IMPLEMENT_AST_OPERATORS(At_Root_Query);
- IMPLEMENT_AST_OPERATORS(Variable);
- IMPLEMENT_AST_OPERATORS(Comment);
- IMPLEMENT_AST_OPERATORS(Attribute_Selector);
- IMPLEMENT_AST_OPERATORS(Supports_Interpolation);
- IMPLEMENT_AST_OPERATORS(Supports_Declaration);
- IMPLEMENT_AST_OPERATORS(Supports_Condition);
- IMPLEMENT_AST_OPERATORS(Parameters);
- IMPLEMENT_AST_OPERATORS(Parameter);
- IMPLEMENT_AST_OPERATORS(Arguments);
- IMPLEMENT_AST_OPERATORS(Argument);
- IMPLEMENT_AST_OPERATORS(Unary_Expression);
- IMPLEMENT_AST_OPERATORS(Function_Call_Schema);
- IMPLEMENT_AST_OPERATORS(Block);
- IMPLEMENT_AST_OPERATORS(Content);
- IMPLEMENT_AST_OPERATORS(Trace);
- IMPLEMENT_AST_OPERATORS(Keyframe_Rule);
- IMPLEMENT_AST_OPERATORS(Bubble);
- IMPLEMENT_AST_OPERATORS(Selector_Schema);
- IMPLEMENT_AST_OPERATORS(Placeholder_Selector);
- IMPLEMENT_AST_OPERATORS(Definition);
- IMPLEMENT_AST_OPERATORS(Declaration);
-}
diff --git a/node_modules/node-sass/src/libsass/src/ast.hpp b/node_modules/node-sass/src/libsass/src/ast.hpp
deleted file mode 100644
index a2be868..0000000
--- a/node_modules/node-sass/src/libsass/src/ast.hpp
+++ /dev/null
@@ -1,3049 +0,0 @@
-#ifndef SASS_AST_H
-#define SASS_AST_H
-
-#include "sass.hpp"
-#include <set>
-#include <deque>
-#include <vector>
-#include <string>
-#include <sstream>
-#include <iostream>
-#include <typeinfo>
-#include <algorithm>
-#include "sass/base.h"
-#include "ast_fwd_decl.hpp"
-
-#ifdef DEBUG_SHARED_PTR
-
-#define ATTACH_VIRTUAL_AST_OPERATIONS(klass) \
- virtual klass##_Ptr copy(std::string, size_t) const = 0; \
- virtual klass##_Ptr clone(std::string, size_t) const = 0; \
-
-#define ATTACH_AST_OPERATIONS(klass) \
- virtual klass##_Ptr copy(std::string, size_t) const; \
- virtual klass##_Ptr clone(std::string, size_t) const; \
-
-#else
-
-#define ATTACH_VIRTUAL_AST_OPERATIONS(klass) \
- virtual klass##_Ptr copy() const = 0; \
- virtual klass##_Ptr clone() const = 0; \
-
-#define ATTACH_AST_OPERATIONS(klass) \
- virtual klass##_Ptr copy() const; \
- virtual klass##_Ptr clone() const; \
-
-#endif
-
-#ifdef __clang__
-
-/*
- * There are some overloads used here that trigger the clang overload
- * hiding warning. Specifically:
- *
- * Type type() which hides string type() from Expression
- *
- */
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Woverloaded-virtual"
-
-#endif
-
-#include "util.hpp"
-#include "units.hpp"
-#include "context.hpp"
-#include "position.hpp"
-#include "constants.hpp"
-#include "operation.hpp"
-#include "position.hpp"
-#include "inspect.hpp"
-#include "source_map.hpp"
-#include "environment.hpp"
-#include "error_handling.hpp"
-#include "ast_def_macros.hpp"
-#include "ast_fwd_decl.hpp"
-#include "source_map.hpp"
-
-#include "sass.h"
-
-namespace Sass {
-
- // easier to search with name
- const bool DELAYED = true;
-
- // ToDo: should this really be hardcoded
- // Note: most methods follow precision option
- const double NUMBER_EPSILON = 0.00000000000001;
-
- // macro to test if numbers are equal within a small error margin
- #define NEAR_EQUAL(lhs, rhs) std::fabs(lhs - rhs) < NUMBER_EPSILON
-
- // ToDo: where does this fit best?
- // We don't share this with C-API?
- class Operand {
- public:
- Operand(Sass_OP operand, bool ws_before = false, bool ws_after = false)
- : operand(operand), ws_before(ws_before), ws_after(ws_after)
- { }
- public:
- enum Sass_OP operand;
- bool ws_before;
- bool ws_after;
- };
-
- //////////////////////////////////////////////////////////
- // `hash_combine` comes from boost (functional/hash):
- // http://www.boost.org/doc/libs/1_35_0/doc/html/hash/combine.html
- // Boost Software License - Version 1.0
- // http://www.boost.org/users/license.html
- template <typename T>
- void hash_combine (std::size_t& seed, const T& val)
- {
- seed ^= std::hash<T>()(val) + 0x9e3779b9
- + (seed<<6) + (seed>>2);
- }
- //////////////////////////////////////////////////////////
-
- //////////////////////////////////////////////////////////
- // Abstract base class for all abstract syntax tree nodes.
- //////////////////////////////////////////////////////////
- class AST_Node : public SharedObj {
- ADD_PROPERTY(ParserState, pstate)
- public:
- AST_Node(ParserState pstate)
- : pstate_(pstate)
- { }
- AST_Node(const AST_Node* ptr)
- : pstate_(ptr->pstate_)
- { }
-
- // AST_Node(AST_Node& ptr) = delete;
-
- virtual ~AST_Node() = 0;
- virtual size_t hash() { return 0; }
- ATTACH_VIRTUAL_AST_OPERATIONS(AST_Node);
- virtual std::string inspect() const { return to_string({ INSPECT, 5 }); }
- virtual std::string to_sass() const { return to_string({ TO_SASS, 5 }); }
- virtual const std::string to_string(Sass_Inspect_Options opt) const;
- virtual const std::string to_string() const;
- virtual void cloneChildren() {};
- // generic find function (not fully implemented yet)
- // ToDo: add specific implementions to all children
- virtual bool find ( bool (*f)(AST_Node_Obj) ) { return f(this); };
- public:
- void update_pstate(const ParserState& pstate);
- public:
- Offset off() { return pstate(); }
- Position pos() { return pstate(); }
- ATTACH_OPERATIONS()
- };
- inline AST_Node::~AST_Node() { }
-
- //////////////////////////////////////////////////////////////////////
- // define cast template now (need complete type)
- //////////////////////////////////////////////////////////////////////
-
- template<class T>
- T* Cast(AST_Node* ptr) {
- return ptr && typeid(T) == typeid(*ptr) ?
- static_cast<T*>(ptr) : NULL;
- };
-
- template<class T>
- const T* Cast(const AST_Node* ptr) {
- return ptr && typeid(T) == typeid(*ptr) ?
- static_cast<const T*>(ptr) : NULL;
- };
-
- //////////////////////////////////////////////////////////////////////
- // Abstract base class for expressions. This side of the AST hierarchy
- // represents elements in value contexts, which exist primarily to be
- // evaluated and returned.
- //////////////////////////////////////////////////////////////////////
- class Expression : public AST_Node {
- public:
- enum Concrete_Type {
- NONE,
- BOOLEAN,
- NUMBER,
- COLOR,
- STRING,
- LIST,
- MAP,
- SELECTOR,
- NULL_VAL,
- FUNCTION_VAL,
- C_WARNING,
- C_ERROR,
- FUNCTION,
- VARIABLE,
- NUM_TYPES
- };
- enum Simple_Type {
- SIMPLE,
- ATTR_SEL,
- PSEUDO_SEL,
- WRAPPED_SEL,
- };
- private:
- // expressions in some contexts shouldn't be evaluated
- ADD_PROPERTY(bool, is_delayed)
- ADD_PROPERTY(bool, is_expanded)
- ADD_PROPERTY(bool, is_interpolant)
- ADD_PROPERTY(Concrete_Type, concrete_type)
- public:
- Expression(ParserState pstate,
- bool d = false, bool e = false, bool i = false, Concrete_Type ct = NONE)
- : AST_Node(pstate),
- is_delayed_(d),
- is_expanded_(e),
- is_interpolant_(i),
- concrete_type_(ct)
- { }
- Expression(const Expression* ptr)
- : AST_Node(ptr),
- is_delayed_(ptr->is_delayed_),
- is_expanded_(ptr->is_expanded_),
- is_interpolant_(ptr->is_interpolant_),
- concrete_type_(ptr->concrete_type_)
- { }
- virtual operator bool() { return true; }
- virtual ~Expression() { }
- virtual std::string type() const { return ""; /* TODO: raise an error? */ }
- virtual bool is_invisible() const { return false; }
- static std::string type_name() { return ""; }
- virtual bool is_false() { return false; }
- // virtual bool is_true() { return !is_false(); }
- virtual bool operator== (const Expression& rhs) const { return false; }
- virtual bool eq(const Expression& rhs) const { return *this == rhs; };
- virtual void set_delayed(bool delayed) { is_delayed(delayed); }
- virtual bool has_interpolant() const { return is_interpolant(); }
- virtual bool is_left_interpolant() const { return is_interpolant(); }
- virtual bool is_right_interpolant() const { return is_interpolant(); }
- virtual std::string inspect() const { return to_string({ INSPECT, 5 }); }
- virtual std::string to_sass() const { return to_string({ TO_SASS, 5 }); }
- ATTACH_VIRTUAL_AST_OPERATIONS(Expression);
- virtual size_t hash() { return 0; }
- };
-
- //////////////////////////////////////////////////////////////////////
- // Still just an expression, but with a to_string method
- //////////////////////////////////////////////////////////////////////
- class PreValue : public Expression {
- public:
- PreValue(ParserState pstate,
- bool d = false, bool e = false, bool i = false, Concrete_Type ct = NONE)
- : Expression(pstate, d, e, i, ct)
- { }
- PreValue(const PreValue* ptr)
- : Expression(ptr)
- { }
- ATTACH_VIRTUAL_AST_OPERATIONS(PreValue);
- virtual ~PreValue() { }
- };
-
- //////////////////////////////////////////////////////////////////////
- // base class for values that support operations
- //////////////////////////////////////////////////////////////////////
- class Value : public Expression {
- public:
- Value(ParserState pstate,
- bool d = false, bool e = false, bool i = false, Concrete_Type ct = NONE)
- : Expression(pstate, d, e, i, ct)
- { }
- Value(const Value* ptr)
- : Expression(ptr)
- { }
- ATTACH_VIRTUAL_AST_OPERATIONS(Value);
- virtual bool operator== (const Expression& rhs) const = 0;
- };
-}
-
-/////////////////////////////////////////////////////////////////////////////////////
-// Hash method specializations for std::unordered_map to work with Sass::Expression
-/////////////////////////////////////////////////////////////////////////////////////
-
-namespace std {
- template<>
- struct hash<Sass::Expression_Obj>
- {
- size_t operator()(Sass::Expression_Obj s) const
- {
- return s->hash();
- }
- };
- template<>
- struct equal_to<Sass::Expression_Obj>
- {
- bool operator()( Sass::Expression_Obj lhs, Sass::Expression_Obj rhs) const
- {
- return lhs->hash() == rhs->hash();
- }
- };
-}
-
-namespace Sass {
-
- /////////////////////////////////////////////////////////////////////////////
- // Mixin class for AST nodes that should behave like vectors. Uses the
- // "Template Method" design pattern to allow subclasses to adjust their flags
- // when certain objects are pushed.
- /////////////////////////////////////////////////////////////////////////////
- template <typename T>
- class Vectorized {
- std::vector<T> elements_;
- protected:
- size_t hash_;
- void reset_hash() { hash_ = 0; }
- virtual void adjust_after_pushing(T element) { }
- public:
- Vectorized(size_t s = 0) : elements_(std::vector<T>()), hash_(0)
- { elements_.reserve(s); }
- virtual ~Vectorized() = 0;
- size_t length() const { return elements_.size(); }
- bool empty() const { return elements_.empty(); }
- void clear() { return elements_.clear(); }
- T last() const { return elements_.back(); }
- T first() const { return elements_.front(); }
- T& operator[](size_t i) { return elements_[i]; }
- virtual const T& at(size_t i) const { return elements_.at(i); }
- virtual T& at(size_t i) { return elements_.at(i); }
- const T& operator[](size_t i) const { return elements_[i]; }
- virtual void append(T element)
- {
- if (element) {
- reset_hash();
- elements_.push_back(element);
- adjust_after_pushing(element);
- }
- }
- virtual void concat(Vectorized* v)
- {
- for (size_t i = 0, L = v->length(); i < L; ++i) this->append((*v)[i]);
- }
- Vectorized& unshift(T element)
- {
- elements_.insert(elements_.begin(), element);
- return *this;
- }
- std::vector<T>& elements() { return elements_; }
- const std::vector<T>& elements() const { return elements_; }
- std::vector<T>& elements(std::vector<T>& e) { elements_ = e; return elements_; }
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- for (T& el : elements_) {
- hash_combine(hash_, el->hash());
- }
- }
- return hash_;
- }
-
- typename std::vector<T>::iterator end() { return elements_.end(); }
- typename std::vector<T>::iterator begin() { return elements_.begin(); }
- typename std::vector<T>::const_iterator end() const { return elements_.end(); }
- typename std::vector<T>::const_iterator begin() const { return elements_.begin(); }
- typename std::vector<T>::iterator erase(typename std::vector<T>::iterator el) { return elements_.erase(el); }
- typename std::vector<T>::const_iterator erase(typename std::vector<T>::const_iterator el) { return elements_.erase(el); }
-
- };
- template <typename T>
- inline Vectorized<T>::~Vectorized() { }
-
- /////////////////////////////////////////////////////////////////////////////
- // Mixin class for AST nodes that should behave like a hash table. Uses an
- // extra <std::vector> internally to maintain insertion order for interation.
- /////////////////////////////////////////////////////////////////////////////
- class Hashed {
- private:
- ExpressionMap elements_;
- std::vector<Expression_Obj> list_;
- protected:
- size_t hash_;
- Expression_Obj duplicate_key_;
- void reset_hash() { hash_ = 0; }
- void reset_duplicate_key() { duplicate_key_ = 0; }
- virtual void adjust_after_pushing(std::pair<Expression_Obj, Expression_Obj> p) { }
- public:
- Hashed(size_t s = 0)
- : elements_(ExpressionMap(s)),
- list_(std::vector<Expression_Obj>()),
- hash_(0), duplicate_key_(NULL)
- { elements_.reserve(s); list_.reserve(s); }
- virtual ~Hashed();
- size_t length() const { return list_.size(); }
- bool empty() const { return list_.empty(); }
- bool has(Expression_Obj k) const { return elements_.count(k) == 1; }
- Expression_Obj at(Expression_Obj k) const;
- bool has_duplicate_key() const { return duplicate_key_ != 0; }
- Expression_Obj get_duplicate_key() const { return duplicate_key_; }
- const ExpressionMap elements() { return elements_; }
- Hashed& operator<<(std::pair<Expression_Obj, Expression_Obj> p)
- {
- reset_hash();
-
- if (!has(p.first)) list_.push_back(p.first);
- else if (!duplicate_key_) duplicate_key_ = p.first;
-
- elements_[p.first] = p.second;
-
- adjust_after_pushing(p);
- return *this;
- }
- Hashed& operator+=(Hashed* h)
- {
- if (length() == 0) {
- this->elements_ = h->elements_;
- this->list_ = h->list_;
- return *this;
- }
-
- for (auto key : h->keys()) {
- *this << std::make_pair(key, h->at(key));
- }
-
- reset_duplicate_key();
- return *this;
- }
- const ExpressionMap& pairs() const { return elements_; }
- const std::vector<Expression_Obj>& keys() const { return list_; }
-
-// std::unordered_map<Expression_Obj, Expression_Obj>::iterator end() { return elements_.end(); }
-// std::unordered_map<Expression_Obj, Expression_Obj>::iterator begin() { return elements_.begin(); }
-// std::unordered_map<Expression_Obj, Expression_Obj>::const_iterator end() const { return elements_.end(); }
-// std::unordered_map<Expression_Obj, Expression_Obj>::const_iterator begin() const { return elements_.begin(); }
-
- };
- inline Hashed::~Hashed() { }
-
-
- /////////////////////////////////////////////////////////////////////////
- // Abstract base class for statements. This side of the AST hierarchy
- // represents elements in expansion contexts, which exist primarily to be
- // rewritten and macro-expanded.
- /////////////////////////////////////////////////////////////////////////
- class Statement : public AST_Node {
- public:
- enum Statement_Type {
- NONE,
- RULESET,
- MEDIA,
- DIRECTIVE,
- SUPPORTS,
- ATROOT,
- BUBBLE,
- CONTENT,
- KEYFRAMERULE,
- DECLARATION,
- ASSIGNMENT,
- IMPORT_STUB,
- IMPORT,
- COMMENT,
- WARNING,
- RETURN,
- EXTEND,
- ERROR,
- DEBUGSTMT,
- WHILE,
- EACH,
- FOR,
- IF
- };
- private:
- ADD_PROPERTY(Statement_Type, statement_type)
- ADD_PROPERTY(size_t, tabs)
- ADD_PROPERTY(bool, group_end)
- public:
- Statement(ParserState pstate, Statement_Type st = NONE, size_t t = 0)
- : AST_Node(pstate), statement_type_(st), tabs_(t), group_end_(false)
- { }
- Statement(const Statement* ptr)
- : AST_Node(ptr),
- statement_type_(ptr->statement_type_),
- tabs_(ptr->tabs_),
- group_end_(ptr->group_end_)
- { }
- virtual ~Statement() = 0;
- // needed for rearranging nested rulesets during CSS emission
- virtual bool is_invisible() const { return false; }
- virtual bool bubbles() { return false; }
- virtual bool has_content()
- {
- return statement_type_ == CONTENT;
- }
- };
- inline Statement::~Statement() { }
-
- ////////////////////////
- // Blocks of statements.
- ////////////////////////
- class Block : public Statement, public Vectorized<Statement_Obj> {
- ADD_PROPERTY(bool, is_root)
- // needed for properly formatted CSS emission
- protected:
- void adjust_after_pushing(Statement_Obj s)
- {
- }
- public:
- Block(ParserState pstate, size_t s = 0, bool r = false)
- : Statement(pstate),
- Vectorized<Statement_Obj>(s),
- is_root_(r)
- { }
- Block(const Block* ptr)
- : Statement(ptr),
- Vectorized<Statement_Obj>(*ptr),
- is_root_(ptr->is_root_)
- { }
- virtual bool has_content()
- {
- for (size_t i = 0, L = elements().size(); i < L; ++i) {
- if (elements()[i]->has_content()) return true;
- }
- return Statement::has_content();
- }
- ATTACH_AST_OPERATIONS(Block)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////
- // Abstract base class for statements that contain blocks of statements.
- ////////////////////////////////////////////////////////////////////////
- class Has_Block : public Statement {
- ADD_PROPERTY(Block_Obj, block)
- public:
- Has_Block(ParserState pstate, Block_Obj b)
- : Statement(pstate), block_(b)
- { }
- Has_Block(const Has_Block* ptr)
- : Statement(ptr), block_(ptr->block_)
- { }
- virtual bool has_content()
- {
- return (block_ && block_->has_content()) || Statement::has_content();
- }
- virtual ~Has_Block() = 0;
- };
- inline Has_Block::~Has_Block() { }
-
- /////////////////////////////////////////////////////////////////////////////
- // Rulesets (i.e., sets of styles headed by a selector and containing a block
- // of style declarations.
- /////////////////////////////////////////////////////////////////////////////
- class Ruleset : public Has_Block {
- ADD_PROPERTY(Selector_List_Obj, selector)
- ADD_PROPERTY(bool, is_root);
- public:
- Ruleset(ParserState pstate, Selector_List_Obj s = 0, Block_Obj b = 0)
- : Has_Block(pstate, b), selector_(s), is_root_(false)
- { statement_type(RULESET); }
- Ruleset(const Ruleset* ptr)
- : Has_Block(ptr),
- selector_(ptr->selector_),
- is_root_(ptr->is_root_)
- { statement_type(RULESET); }
- bool is_invisible() const;
- ATTACH_AST_OPERATIONS(Ruleset)
- ATTACH_OPERATIONS()
- };
-
- /////////////////
- // Bubble.
- /////////////////
- class Bubble : public Statement {
- ADD_PROPERTY(Statement_Obj, node)
- ADD_PROPERTY(bool, group_end)
- public:
- Bubble(ParserState pstate, Statement_Obj n, Statement_Obj g = 0, size_t t = 0)
- : Statement(pstate, Statement::BUBBLE, t), node_(n), group_end_(g == 0)
- { }
- Bubble(const Bubble* ptr)
- : Statement(ptr),
- node_(ptr->node_),
- group_end_(ptr->group_end_)
- { }
- bool bubbles() { return true; }
- ATTACH_AST_OPERATIONS(Bubble)
- ATTACH_OPERATIONS()
- };
-
- /////////////////
- // Trace.
- /////////////////
- class Trace : public Has_Block {
- ADD_CONSTREF(char, type)
- ADD_CONSTREF(std::string, name)
- public:
- Trace(ParserState pstate, std::string n, Block_Obj b = 0, char type = 'm')
- : Has_Block(pstate, b), type_(type), name_(n)
- { }
- Trace(const Trace* ptr)
- : Has_Block(ptr),
- type_(ptr->type_),
- name_(ptr->name_)
- { }
- ATTACH_AST_OPERATIONS(Trace)
- ATTACH_OPERATIONS()
- };
-
- /////////////////
- // Media queries.
- /////////////////
- class Media_Block : public Has_Block {
- ADD_PROPERTY(List_Obj, media_queries)
- public:
- Media_Block(ParserState pstate, List_Obj mqs, Block_Obj b)
- : Has_Block(pstate, b), media_queries_(mqs)
- { statement_type(MEDIA); }
- Media_Block(const Media_Block* ptr)
- : Has_Block(ptr), media_queries_(ptr->media_queries_)
- { statement_type(MEDIA); }
- bool bubbles() { return true; }
- bool is_invisible() const;
- ATTACH_AST_OPERATIONS(Media_Block)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////////////////////////////////
- // At-rules -- arbitrary directives beginning with "@" that may have an
- // optional statement block.
- ///////////////////////////////////////////////////////////////////////
- class Directive : public Has_Block {
- ADD_CONSTREF(std::string, keyword)
- ADD_PROPERTY(Selector_List_Obj, selector)
- ADD_PROPERTY(Expression_Obj, value)
- public:
- Directive(ParserState pstate, std::string kwd, Selector_List_Obj sel = 0, Block_Obj b = 0, Expression_Obj val = 0)
- : Has_Block(pstate, b), keyword_(kwd), selector_(sel), value_(val) // set value manually if needed
- { statement_type(DIRECTIVE); }
- Directive(const Directive* ptr)
- : Has_Block(ptr),
- keyword_(ptr->keyword_),
- selector_(ptr->selector_),
- value_(ptr->value_) // set value manually if needed
- { statement_type(DIRECTIVE); }
- bool bubbles() { return is_keyframes() || is_media(); }
- bool is_media() {
- return keyword_.compare("@-webkit-media") == 0 ||
- keyword_.compare("@-moz-media") == 0 ||
- keyword_.compare("@-o-media") == 0 ||
- keyword_.compare("@media") == 0;
- }
- bool is_keyframes() {
- return keyword_.compare("@-webkit-keyframes") == 0 ||
- keyword_.compare("@-moz-keyframes") == 0 ||
- keyword_.compare("@-o-keyframes") == 0 ||
- keyword_.compare("@keyframes") == 0;
- }
- ATTACH_AST_OPERATIONS(Directive)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////////////////////////////////
- // Keyframe-rules -- the child blocks of "@keyframes" nodes.
- ///////////////////////////////////////////////////////////////////////
- class Keyframe_Rule : public Has_Block {
- // according to css spec, this should be <keyframes-name>
- // <keyframes-name> = <custom-ident> | <string>
- ADD_PROPERTY(Selector_List_Obj, name)
- public:
- Keyframe_Rule(ParserState pstate, Block_Obj b)
- : Has_Block(pstate, b), name_()
- { statement_type(KEYFRAMERULE); }
- Keyframe_Rule(const Keyframe_Rule* ptr)
- : Has_Block(ptr), name_(ptr->name_)
- { statement_type(KEYFRAMERULE); }
- ATTACH_AST_OPERATIONS(Keyframe_Rule)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////
- // Declarations -- style rules consisting of a property name and values.
- ////////////////////////////////////////////////////////////////////////
- class Declaration : public Has_Block {
- ADD_PROPERTY(String_Obj, property)
- ADD_PROPERTY(Expression_Obj, value)
- ADD_PROPERTY(bool, is_important)
- ADD_PROPERTY(bool, is_custom_property)
- ADD_PROPERTY(bool, is_indented)
- public:
- Declaration(ParserState pstate,
- String_Obj prop, Expression_Obj val, bool i = false, bool c = false, Block_Obj b = 0)
- : Has_Block(pstate, b), property_(prop), value_(val), is_important_(i), is_custom_property_(c), is_indented_(false)
- { statement_type(DECLARATION); }
- Declaration(const Declaration* ptr)
- : Has_Block(ptr),
- property_(ptr->property_),
- value_(ptr->value_),
- is_important_(ptr->is_important_),
- is_custom_property_(ptr->is_custom_property_),
- is_indented_(ptr->is_indented_)
- { statement_type(DECLARATION); }
- virtual bool is_invisible() const;
- ATTACH_AST_OPERATIONS(Declaration)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////
- // Assignments -- variable and value.
- /////////////////////////////////////
- class Assignment : public Statement {
- ADD_CONSTREF(std::string, variable)
- ADD_PROPERTY(Expression_Obj, value)
- ADD_PROPERTY(bool, is_default)
- ADD_PROPERTY(bool, is_global)
- public:
- Assignment(ParserState pstate,
- std::string var, Expression_Obj val,
- bool is_default = false,
- bool is_global = false)
- : Statement(pstate), variable_(var), value_(val), is_default_(is_default), is_global_(is_global)
- { statement_type(ASSIGNMENT); }
- Assignment(const Assignment* ptr)
- : Statement(ptr),
- variable_(ptr->variable_),
- value_(ptr->value_),
- is_default_(ptr->is_default_),
- is_global_(ptr->is_global_)
- { statement_type(ASSIGNMENT); }
- ATTACH_AST_OPERATIONS(Assignment)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////////
- // Import directives. CSS and Sass import lists can be intermingled, so it's
- // necessary to store a list of each in an Import node.
- ////////////////////////////////////////////////////////////////////////////
- class Import : public Statement {
- std::vector<Expression_Obj> urls_;
- std::vector<Include> incs_;
- ADD_PROPERTY(List_Obj, import_queries);
- public:
- Import(ParserState pstate)
- : Statement(pstate),
- urls_(std::vector<Expression_Obj>()),
- incs_(std::vector<Include>()),
- import_queries_()
- { statement_type(IMPORT); }
- Import(const Import* ptr)
- : Statement(ptr),
- urls_(ptr->urls_),
- incs_(ptr->incs_),
- import_queries_(ptr->import_queries_)
- { statement_type(IMPORT); }
- std::vector<Expression_Obj>& urls() { return urls_; }
- std::vector<Include>& incs() { return incs_; }
- ATTACH_AST_OPERATIONS(Import)
- ATTACH_OPERATIONS()
- };
-
- // not yet resolved single import
- // so far we only know requested name
- class Import_Stub : public Statement {
- Include resource_;
- public:
- std::string abs_path() { return resource_.abs_path; };
- std::string imp_path() { return resource_.imp_path; };
- Include resource() { return resource_; };
-
- Import_Stub(ParserState pstate, Include res)
- : Statement(pstate), resource_(res)
- { statement_type(IMPORT_STUB); }
- Import_Stub(const Import_Stub* ptr)
- : Statement(ptr), resource_(ptr->resource_)
- { statement_type(IMPORT_STUB); }
- ATTACH_AST_OPERATIONS(Import_Stub)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////
- // The Sass `@warn` directive.
- //////////////////////////////
- class Warning : public Statement {
- ADD_PROPERTY(Expression_Obj, message)
- public:
- Warning(ParserState pstate, Expression_Obj msg)
- : Statement(pstate), message_(msg)
- { statement_type(WARNING); }
- Warning(const Warning* ptr)
- : Statement(ptr), message_(ptr->message_)
- { statement_type(WARNING); }
- ATTACH_AST_OPERATIONS(Warning)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////
- // The Sass `@error` directive.
- ///////////////////////////////
- class Error : public Statement {
- ADD_PROPERTY(Expression_Obj, message)
- public:
- Error(ParserState pstate, Expression_Obj msg)
- : Statement(pstate), message_(msg)
- { statement_type(ERROR); }
- Error(const Error* ptr)
- : Statement(ptr), message_(ptr->message_)
- { statement_type(ERROR); }
- ATTACH_AST_OPERATIONS(Error)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////
- // The Sass `@debug` directive.
- ///////////////////////////////
- class Debug : public Statement {
- ADD_PROPERTY(Expression_Obj, value)
- public:
- Debug(ParserState pstate, Expression_Obj val)
- : Statement(pstate), value_(val)
- { statement_type(DEBUGSTMT); }
- Debug(const Debug* ptr)
- : Statement(ptr), value_(ptr->value_)
- { statement_type(DEBUGSTMT); }
- ATTACH_AST_OPERATIONS(Debug)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////
- // CSS comments. These may be interpolated.
- ///////////////////////////////////////////
- class Comment : public Statement {
- ADD_PROPERTY(String_Obj, text)
- ADD_PROPERTY(bool, is_important)
- public:
- Comment(ParserState pstate, String_Obj txt, bool is_important)
- : Statement(pstate), text_(txt), is_important_(is_important)
- { statement_type(COMMENT); }
- Comment(const Comment* ptr)
- : Statement(ptr),
- text_(ptr->text_),
- is_important_(ptr->is_important_)
- { statement_type(COMMENT); }
- virtual bool is_invisible() const
- { return /* is_important() == */ false; }
- ATTACH_AST_OPERATIONS(Comment)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////
- // The Sass `@if` control directive.
- ////////////////////////////////////
- class If : public Has_Block {
- ADD_PROPERTY(Expression_Obj, predicate)
- ADD_PROPERTY(Block_Obj, alternative)
- public:
- If(ParserState pstate, Expression_Obj pred, Block_Obj con, Block_Obj alt = 0)
- : Has_Block(pstate, con), predicate_(pred), alternative_(alt)
- { statement_type(IF); }
- If(const If* ptr)
- : Has_Block(ptr),
- predicate_(ptr->predicate_),
- alternative_(ptr->alternative_)
- { statement_type(IF); }
- virtual bool has_content()
- {
- return Has_Block::has_content() || (alternative_ && alternative_->has_content());
- }
- ATTACH_AST_OPERATIONS(If)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////
- // The Sass `@for` control directive.
- /////////////////////////////////////
- class For : public Has_Block {
- ADD_CONSTREF(std::string, variable)
- ADD_PROPERTY(Expression_Obj, lower_bound)
- ADD_PROPERTY(Expression_Obj, upper_bound)
- ADD_PROPERTY(bool, is_inclusive)
- public:
- For(ParserState pstate,
- std::string var, Expression_Obj lo, Expression_Obj hi, Block_Obj b, bool inc)
- : Has_Block(pstate, b),
- variable_(var), lower_bound_(lo), upper_bound_(hi), is_inclusive_(inc)
- { statement_type(FOR); }
- For(const For* ptr)
- : Has_Block(ptr),
- variable_(ptr->variable_),
- lower_bound_(ptr->lower_bound_),
- upper_bound_(ptr->upper_bound_),
- is_inclusive_(ptr->is_inclusive_)
- { statement_type(FOR); }
- ATTACH_AST_OPERATIONS(For)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////////////
- // The Sass `@each` control directive.
- //////////////////////////////////////
- class Each : public Has_Block {
- ADD_PROPERTY(std::vector<std::string>, variables)
- ADD_PROPERTY(Expression_Obj, list)
- public:
- Each(ParserState pstate, std::vector<std::string> vars, Expression_Obj lst, Block_Obj b)
- : Has_Block(pstate, b), variables_(vars), list_(lst)
- { statement_type(EACH); }
- Each(const Each* ptr)
- : Has_Block(ptr), variables_(ptr->variables_), list_(ptr->list_)
- { statement_type(EACH); }
- ATTACH_AST_OPERATIONS(Each)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////
- // The Sass `@while` control directive.
- ///////////////////////////////////////
- class While : public Has_Block {
- ADD_PROPERTY(Expression_Obj, predicate)
- public:
- While(ParserState pstate, Expression_Obj pred, Block_Obj b)
- : Has_Block(pstate, b), predicate_(pred)
- { statement_type(WHILE); }
- While(const While* ptr)
- : Has_Block(ptr), predicate_(ptr->predicate_)
- { statement_type(WHILE); }
- ATTACH_AST_OPERATIONS(While)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////////////////
- // The @return directive for use inside SassScript functions.
- /////////////////////////////////////////////////////////////
- class Return : public Statement {
- ADD_PROPERTY(Expression_Obj, value)
- public:
- Return(ParserState pstate, Expression_Obj val)
- : Statement(pstate), value_(val)
- { statement_type(RETURN); }
- Return(const Return* ptr)
- : Statement(ptr), value_(ptr->value_)
- { statement_type(RETURN); }
- ATTACH_AST_OPERATIONS(Return)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////
- // The Sass `@extend` directive.
- ////////////////////////////////
- class Extension : public Statement {
- ADD_PROPERTY(Selector_List_Obj, selector)
- public:
- Extension(ParserState pstate, Selector_List_Obj s)
- : Statement(pstate), selector_(s)
- { statement_type(EXTEND); }
- Extension(const Extension* ptr)
- : Statement(ptr), selector_(ptr->selector_)
- { statement_type(EXTEND); }
- ATTACH_AST_OPERATIONS(Extension)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////////////////////////////////
- // Definitions for both mixins and functions. The two cases are distinguished
- // by a type tag.
- /////////////////////////////////////////////////////////////////////////////
- struct Backtrace;
- typedef const char* Signature;
- typedef Expression_Ptr (*Native_Function)(Env&, Env&, Context&, Signature, ParserState, Backtraces, std::vector<Selector_List_Obj>);
- class Definition : public Has_Block {
- public:
- enum Type { MIXIN, FUNCTION };
- ADD_CONSTREF(std::string, name)
- ADD_PROPERTY(Parameters_Obj, parameters)
- ADD_PROPERTY(Env*, environment)
- ADD_PROPERTY(Type, type)
- ADD_PROPERTY(Native_Function, native_function)
- ADD_PROPERTY(Sass_Function_Entry, c_function)
- ADD_PROPERTY(void*, cookie)
- ADD_PROPERTY(bool, is_overload_stub)
- ADD_PROPERTY(Signature, signature)
- public:
- Definition(const Definition* ptr)
- : Has_Block(ptr),
- name_(ptr->name_),
- parameters_(ptr->parameters_),
- environment_(ptr->environment_),
- type_(ptr->type_),
- native_function_(ptr->native_function_),
- c_function_(ptr->c_function_),
- cookie_(ptr->cookie_),
- is_overload_stub_(ptr->is_overload_stub_),
- signature_(ptr->signature_)
- { }
-
- Definition(ParserState pstate,
- std::string n,
- Parameters_Obj params,
- Block_Obj b,
- Type t)
- : Has_Block(pstate, b),
- name_(n),
- parameters_(params),
- environment_(0),
- type_(t),
- native_function_(0),
- c_function_(0),
- cookie_(0),
- is_overload_stub_(false),
- signature_(0)
- { }
- Definition(ParserState pstate,
- Signature sig,
- std::string n,
- Parameters_Obj params,
- Native_Function func_ptr,
- bool overload_stub = false)
- : Has_Block(pstate, 0),
- name_(n),
- parameters_(params),
- environment_(0),
- type_(FUNCTION),
- native_function_(func_ptr),
- c_function_(0),
- cookie_(0),
- is_overload_stub_(overload_stub),
- signature_(sig)
- { }
- Definition(ParserState pstate,
- Signature sig,
- std::string n,
- Parameters_Obj params,
- Sass_Function_Entry c_func,
- bool whatever,
- bool whatever2)
- : Has_Block(pstate, 0),
- name_(n),
- parameters_(params),
- environment_(0),
- type_(FUNCTION),
- native_function_(0),
- c_function_(c_func),
- cookie_(sass_function_get_cookie(c_func)),
- is_overload_stub_(false),
- signature_(sig)
- { }
- ATTACH_AST_OPERATIONS(Definition)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////////////
- // Mixin calls (i.e., `@include ...`).
- //////////////////////////////////////
- class Mixin_Call : public Has_Block {
- ADD_CONSTREF(std::string, name)
- ADD_PROPERTY(Arguments_Obj, arguments)
- public:
- Mixin_Call(ParserState pstate, std::string n, Arguments_Obj args, Block_Obj b = 0)
- : Has_Block(pstate, b), name_(n), arguments_(args)
- { }
- Mixin_Call(const Mixin_Call* ptr)
- : Has_Block(ptr),
- name_(ptr->name_),
- arguments_(ptr->arguments_)
- { }
- ATTACH_AST_OPERATIONS(Mixin_Call)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////////////
- // The @content directive for mixin content blocks.
- ///////////////////////////////////////////////////
- class Content : public Statement {
- ADD_PROPERTY(Media_Block_Ptr, media_block)
- public:
- Content(ParserState pstate)
- : Statement(pstate),
- media_block_(NULL)
- { statement_type(CONTENT); }
- Content(const Content* ptr)
- : Statement(ptr),
- media_block_(ptr->media_block_)
- { statement_type(CONTENT); }
- ATTACH_AST_OPERATIONS(Content)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////////////////////////////////
- // Lists of values, both comma- and space-separated (distinguished by a
- // type-tag.) Also used to represent variable-length argument lists.
- ///////////////////////////////////////////////////////////////////////
- class List : public Value, public Vectorized<Expression_Obj> {
- void adjust_after_pushing(Expression_Obj e) { is_expanded(false); }
- private:
- ADD_PROPERTY(enum Sass_Separator, separator)
- ADD_PROPERTY(bool, is_arglist)
- ADD_PROPERTY(bool, is_bracketed)
- ADD_PROPERTY(bool, from_selector)
- public:
- List(ParserState pstate,
- size_t size = 0, enum Sass_Separator sep = SASS_SPACE, bool argl = false, bool bracket = false)
- : Value(pstate),
- Vectorized<Expression_Obj>(size),
- separator_(sep),
- is_arglist_(argl),
- is_bracketed_(bracket),
- from_selector_(false)
- { concrete_type(LIST); }
- List(const List* ptr)
- : Value(ptr),
- Vectorized<Expression_Obj>(*ptr),
- separator_(ptr->separator_),
- is_arglist_(ptr->is_arglist_),
- is_bracketed_(ptr->is_bracketed_),
- from_selector_(ptr->from_selector_)
- { concrete_type(LIST); }
- std::string type() const { return is_arglist_ ? "arglist" : "list"; }
- static std::string type_name() { return "list"; }
- const char* sep_string(bool compressed = false) const {
- return separator() == SASS_SPACE ?
- " " : (compressed ? "," : ", ");
- }
- bool is_invisible() const { return empty() && !is_bracketed(); }
- Expression_Obj value_at_index(size_t i);
-
- virtual size_t size() const;
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<std::string>()(sep_string());
- hash_combine(hash_, std::hash<bool>()(is_bracketed()));
- for (size_t i = 0, L = length(); i < L; ++i)
- hash_combine(hash_, (elements()[i])->hash());
- }
- return hash_;
- }
-
- virtual void set_delayed(bool delayed)
- {
- is_delayed(delayed);
- // don't set children
- }
-
- virtual bool operator== (const Expression& rhs) const;
-
- ATTACH_AST_OPERATIONS(List)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////////////////////////////////
- // Key value paris.
- ///////////////////////////////////////////////////////////////////////
- class Map : public Value, public Hashed {
- void adjust_after_pushing(std::pair<Expression_Obj, Expression_Obj> p) { is_expanded(false); }
- public:
- Map(ParserState pstate,
- size_t size = 0)
- : Value(pstate),
- Hashed(size)
- { concrete_type(MAP); }
- Map(const Map* ptr)
- : Value(ptr),
- Hashed(*ptr)
- { concrete_type(MAP); }
- std::string type() const { return "map"; }
- static std::string type_name() { return "map"; }
- bool is_invisible() const { return empty(); }
- List_Obj to_list(ParserState& pstate);
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- for (auto key : keys()) {
- hash_combine(hash_, key->hash());
- hash_combine(hash_, at(key)->hash());
- }
- }
-
- return hash_;
- }
-
- virtual bool operator== (const Expression& rhs) const;
-
- ATTACH_AST_OPERATIONS(Map)
- ATTACH_OPERATIONS()
- };
-
- inline static const std::string sass_op_to_name(enum Sass_OP op) {
- switch (op) {
- case AND: return "and";
- case OR: return "or";
- case EQ: return "eq";
- case NEQ: return "neq";
- case GT: return "gt";
- case GTE: return "gte";
- case LT: return "lt";
- case LTE: return "lte";
- case ADD: return "plus";
- case SUB: return "sub";
- case MUL: return "times";
- case DIV: return "div";
- case MOD: return "mod";
- // this is only used internally!
- case NUM_OPS: return "[OPS]";
- default: return "invalid";
- }
- }
-
- inline static const std::string sass_op_separator(enum Sass_OP op) {
- switch (op) {
- case AND: return "&&";
- case OR: return "||";
- case EQ: return "==";
- case NEQ: return "!=";
- case GT: return ">";
- case GTE: return ">=";
- case LT: return "<";
- case LTE: return "<=";
- case ADD: return "+";
- case SUB: return "-";
- case MUL: return "*";
- case DIV: return "/";
- case MOD: return "%";
- // this is only used internally!
- case NUM_OPS: return "[OPS]";
- default: return "invalid";
- }
- }
-
- //////////////////////////////////////////////////////////////////////////
- // Binary expressions. Represents logical, relational, and arithmetic
- // operations. Templatized to avoid large switch statements and repetitive
- // subclassing.
- //////////////////////////////////////////////////////////////////////////
- class Binary_Expression : public PreValue {
- private:
- HASH_PROPERTY(Operand, op)
- HASH_PROPERTY(Expression_Obj, left)
- HASH_PROPERTY(Expression_Obj, right)
- size_t hash_;
- public:
- Binary_Expression(ParserState pstate,
- Operand op, Expression_Obj lhs, Expression_Obj rhs)
- : PreValue(pstate), op_(op), left_(lhs), right_(rhs), hash_(0)
- { }
- Binary_Expression(const Binary_Expression* ptr)
- : PreValue(ptr),
- op_(ptr->op_),
- left_(ptr->left_),
- right_(ptr->right_),
- hash_(ptr->hash_)
- { }
- const std::string type_name() {
- return sass_op_to_name(optype());
- }
- const std::string separator() {
- return sass_op_separator(optype());
- }
- bool is_left_interpolant(void) const;
- bool is_right_interpolant(void) const;
- bool has_interpolant() const
- {
- return is_left_interpolant() ||
- is_right_interpolant();
- }
- virtual void set_delayed(bool delayed)
- {
- right()->set_delayed(delayed);
- left()->set_delayed(delayed);
- is_delayed(delayed);
- }
- virtual bool operator==(const Expression& rhs) const
- {
- try
- {
- Binary_Expression_Ptr_Const m = Cast<Binary_Expression>(&rhs);
- if (m == 0) return false;
- return type() == m->type() &&
- *left() == *m->left() &&
- *right() == *m->right();
- }
- catch (std::bad_cast&)
- {
- return false;
- }
- catch (...) { throw; }
- }
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<size_t>()(optype());
- hash_combine(hash_, left()->hash());
- hash_combine(hash_, right()->hash());
- }
- return hash_;
- }
- enum Sass_OP optype() const { return op_.operand; }
- ATTACH_AST_OPERATIONS(Binary_Expression)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////////
- // Arithmetic negation (logical negation is just an ordinary function call).
- ////////////////////////////////////////////////////////////////////////////
- class Unary_Expression : public Expression {
- public:
- enum Type { PLUS, MINUS, NOT, SLASH };
- private:
- HASH_PROPERTY(Type, optype)
- HASH_PROPERTY(Expression_Obj, operand)
- size_t hash_;
- public:
- Unary_Expression(ParserState pstate, Type t, Expression_Obj o)
- : Expression(pstate), optype_(t), operand_(o), hash_(0)
- { }
- Unary_Expression(const Unary_Expression* ptr)
- : Expression(ptr),
- optype_(ptr->optype_),
- operand_(ptr->operand_),
- hash_(ptr->hash_)
- { }
- const std::string type_name() {
- switch (optype_) {
- case PLUS: return "plus";
- case MINUS: return "minus";
- case SLASH: return "slash";
- case NOT: return "not";
- default: return "invalid";
- }
- }
- virtual bool operator==(const Expression& rhs) const
- {
- try
- {
- Unary_Expression_Ptr_Const m = Cast<Unary_Expression>(&rhs);
- if (m == 0) return false;
- return type() == m->type() &&
- *operand() == *m->operand();
- }
- catch (std::bad_cast&)
- {
- return false;
- }
- catch (...) { throw; }
- }
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<size_t>()(optype_);
- hash_combine(hash_, operand()->hash());
- };
- return hash_;
- }
- ATTACH_AST_OPERATIONS(Unary_Expression)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////
- // Individual argument objects for mixin and function calls.
- ////////////////////////////////////////////////////////////
- class Argument : public Expression {
- HASH_PROPERTY(Expression_Obj, value)
- HASH_CONSTREF(std::string, name)
- ADD_PROPERTY(bool, is_rest_argument)
- ADD_PROPERTY(bool, is_keyword_argument)
- size_t hash_;
- public:
- Argument(ParserState pstate, Expression_Obj val, std::string n = "", bool rest = false, bool keyword = false)
- : Expression(pstate), value_(val), name_(n), is_rest_argument_(rest), is_keyword_argument_(keyword), hash_(0)
- {
- if (!name_.empty() && is_rest_argument_) {
- coreError("variable-length argument may not be passed by name", pstate_);
- }
- }
- Argument(const Argument* ptr)
- : Expression(ptr),
- value_(ptr->value_),
- name_(ptr->name_),
- is_rest_argument_(ptr->is_rest_argument_),
- is_keyword_argument_(ptr->is_keyword_argument_),
- hash_(ptr->hash_)
- {
- if (!name_.empty() && is_rest_argument_) {
- coreError("variable-length argument may not be passed by name", pstate_);
- }
- }
-
- virtual void set_delayed(bool delayed);
- virtual bool operator==(const Expression& rhs) const
- {
- try
- {
- Argument_Ptr_Const m = Cast<Argument>(&rhs);
- if (!(m && name() == m->name())) return false;
- return *value() == *m->value();
- }
- catch (std::bad_cast&)
- {
- return false;
- }
- catch (...) { throw; }
- }
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<std::string>()(name());
- hash_combine(hash_, value()->hash());
- }
- return hash_;
- }
-
- ATTACH_AST_OPERATIONS(Argument)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////
- // Argument lists -- in their own class to facilitate context-sensitive
- // error checking (e.g., ensuring that all ordinal arguments precede all
- // named arguments).
- ////////////////////////////////////////////////////////////////////////
- class Arguments : public Expression, public Vectorized<Argument_Obj> {
- ADD_PROPERTY(bool, has_named_arguments)
- ADD_PROPERTY(bool, has_rest_argument)
- ADD_PROPERTY(bool, has_keyword_argument)
- protected:
- void adjust_after_pushing(Argument_Obj a);
- public:
- Arguments(ParserState pstate)
- : Expression(pstate),
- Vectorized<Argument_Obj>(),
- has_named_arguments_(false),
- has_rest_argument_(false),
- has_keyword_argument_(false)
- { }
- Arguments(const Arguments* ptr)
- : Expression(ptr),
- Vectorized<Argument_Obj>(*ptr),
- has_named_arguments_(ptr->has_named_arguments_),
- has_rest_argument_(ptr->has_rest_argument_),
- has_keyword_argument_(ptr->has_keyword_argument_)
- { }
-
- virtual void set_delayed(bool delayed);
-
- Argument_Obj get_rest_argument();
- Argument_Obj get_keyword_argument();
-
- ATTACH_AST_OPERATIONS(Arguments)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////
- // Function reference.
- ////////////////////////////////////////////////////
- class Function : public Value {
- public:
- ADD_PROPERTY(Definition_Obj, definition)
- ADD_PROPERTY(bool, is_css)
- public:
- Function(ParserState pstate, Definition_Obj def, bool css)
- : Value(pstate), definition_(def), is_css_(css)
- { concrete_type(FUNCTION_VAL); }
- Function(const Function* ptr)
- : Value(ptr), definition_(ptr->definition_), is_css_(ptr->is_css_)
- { concrete_type(FUNCTION_VAL); }
-
- std::string type() const { return "function"; }
- static std::string type_name() { return "function"; }
- bool is_invisible() const { return true; }
-
- std::string name() {
- if (definition_) {
- return definition_->name();
- }
- return "";
- }
-
- virtual bool operator== (const Expression& rhs) const;
-
- ATTACH_AST_OPERATIONS(Function)
- ATTACH_OPERATIONS()
- };
-
- //////////////////
- // Function calls.
- //////////////////
- class Function_Call : public PreValue {
- HASH_CONSTREF(std::string, name)
- HASH_PROPERTY(Arguments_Obj, arguments)
- HASH_PROPERTY(Function_Obj, func)
- ADD_PROPERTY(bool, via_call)
- ADD_PROPERTY(void*, cookie)
- size_t hash_;
- public:
- Function_Call(ParserState pstate, std::string n, Arguments_Obj args, void* cookie)
- : PreValue(pstate), name_(n), arguments_(args), func_(0), via_call_(false), cookie_(cookie), hash_(0)
- { concrete_type(FUNCTION); }
- Function_Call(ParserState pstate, std::string n, Arguments_Obj args, Function_Obj func)
- : PreValue(pstate), name_(n), arguments_(args), func_(func), via_call_(false), cookie_(0), hash_(0)
- { concrete_type(FUNCTION); }
- Function_Call(ParserState pstate, std::string n, Arguments_Obj args)
- : PreValue(pstate), name_(n), arguments_(args), via_call_(false), cookie_(0), hash_(0)
- { concrete_type(FUNCTION); }
- Function_Call(const Function_Call* ptr)
- : PreValue(ptr),
- name_(ptr->name_),
- arguments_(ptr->arguments_),
- func_(ptr->func_),
- via_call_(ptr->via_call_),
- cookie_(ptr->cookie_),
- hash_(ptr->hash_)
- { concrete_type(FUNCTION); }
-
- bool is_css() {
- if (func_) return func_->is_css();
- return false;
- }
-
- virtual bool operator==(const Expression& rhs) const
- {
- try
- {
- Function_Call_Ptr_Const m = Cast<Function_Call>(&rhs);
- if (!(m && name() == m->name())) return false;
- if (!(m && arguments()->length() == m->arguments()->length())) return false;
- for (size_t i =0, L = arguments()->length(); i < L; ++i)
- if (!(*(*arguments())[i] == *(*m->arguments())[i])) return false;
- return true;
- }
- catch (std::bad_cast&)
- {
- return false;
- }
- catch (...) { throw; }
- }
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<std::string>()(name());
- for (auto argument : arguments()->elements())
- hash_combine(hash_, argument->hash());
- }
- return hash_;
- }
- ATTACH_AST_OPERATIONS(Function_Call)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////
- // Function call schemas.
- /////////////////////////
- class Function_Call_Schema : public Expression {
- ADD_PROPERTY(String_Obj, name)
- ADD_PROPERTY(Arguments_Obj, arguments)
- public:
- Function_Call_Schema(ParserState pstate, String_Obj n, Arguments_Obj args)
- : Expression(pstate), name_(n), arguments_(args)
- { concrete_type(STRING); }
- Function_Call_Schema(const Function_Call_Schema* ptr)
- : Expression(ptr),
- name_(ptr->name_),
- arguments_(ptr->arguments_)
- { concrete_type(STRING); }
- ATTACH_AST_OPERATIONS(Function_Call_Schema)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////
- // Variable references.
- ///////////////////////
- class Variable : public PreValue {
- ADD_CONSTREF(std::string, name)
- public:
- Variable(ParserState pstate, std::string n)
- : PreValue(pstate), name_(n)
- { concrete_type(VARIABLE); }
- Variable(const Variable* ptr)
- : PreValue(ptr), name_(ptr->name_)
- { concrete_type(VARIABLE); }
-
- virtual bool operator==(const Expression& rhs) const
- {
- try
- {
- Variable_Ptr_Const e = Cast<Variable>(&rhs);
- return e && name() == e->name();
- }
- catch (std::bad_cast&)
- {
- return false;
- }
- catch (...) { throw; }
- }
-
- virtual size_t hash()
- {
- return std::hash<std::string>()(name());
- }
-
- ATTACH_AST_OPERATIONS(Variable)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////
- // Numbers, percentages, dimensions, and colors.
- ////////////////////////////////////////////////
- class Number : public Value, public Units {
- HASH_PROPERTY(double, value)
- ADD_PROPERTY(bool, zero)
- size_t hash_;
- public:
- Number(ParserState pstate, double val, std::string u = "", bool zero = true);
-
- Number(const Number* ptr)
- : Value(ptr),
- Units(ptr),
- value_(ptr->value_), zero_(ptr->zero_),
- hash_(ptr->hash_)
- { concrete_type(NUMBER); }
-
- bool zero() { return zero_; }
- std::string type() const { return "number"; }
- static std::string type_name() { return "number"; }
-
- void reduce();
- void normalize();
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<double>()(value_);
- for (const auto numerator : numerators)
- hash_combine(hash_, std::hash<std::string>()(numerator));
- for (const auto denominator : denominators)
- hash_combine(hash_, std::hash<std::string>()(denominator));
- }
- return hash_;
- }
-
- virtual bool operator< (const Number& rhs) const;
- virtual bool operator== (const Number& rhs) const;
- virtual bool operator== (const Expression& rhs) const;
- ATTACH_AST_OPERATIONS(Number)
- ATTACH_OPERATIONS()
- };
-
- //////////
- // Colors.
- //////////
- class Color : public Value {
- HASH_PROPERTY(double, r)
- HASH_PROPERTY(double, g)
- HASH_PROPERTY(double, b)
- HASH_PROPERTY(double, a)
- ADD_CONSTREF(std::string, disp)
- size_t hash_;
- public:
- Color(ParserState pstate, double r, double g, double b, double a = 1, const std::string disp = "")
- : Value(pstate), r_(r), g_(g), b_(b), a_(a), disp_(disp),
- hash_(0)
- { concrete_type(COLOR); }
- Color(const Color* ptr)
- : Value(ptr),
- r_(ptr->r_),
- g_(ptr->g_),
- b_(ptr->b_),
- a_(ptr->a_),
- disp_(ptr->disp_),
- hash_(ptr->hash_)
- { concrete_type(COLOR); }
- std::string type() const { return "color"; }
- static std::string type_name() { return "color"; }
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<double>()(a_);
- hash_combine(hash_, std::hash<double>()(r_));
- hash_combine(hash_, std::hash<double>()(g_));
- hash_combine(hash_, std::hash<double>()(b_));
- }
- return hash_;
- }
-
- virtual bool operator== (const Expression& rhs) const;
-
- ATTACH_AST_OPERATIONS(Color)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////
- // Errors from Sass_Values.
- //////////////////////////////
- class Custom_Error : public Value {
- ADD_CONSTREF(std::string, message)
- public:
- Custom_Error(ParserState pstate, std::string msg)
- : Value(pstate), message_(msg)
- { concrete_type(C_ERROR); }
- Custom_Error(const Custom_Error* ptr)
- : Value(ptr), message_(ptr->message_)
- { concrete_type(C_ERROR); }
- virtual bool operator== (const Expression& rhs) const;
- ATTACH_AST_OPERATIONS(Custom_Error)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////
- // Warnings from Sass_Values.
- //////////////////////////////
- class Custom_Warning : public Value {
- ADD_CONSTREF(std::string, message)
- public:
- Custom_Warning(ParserState pstate, std::string msg)
- : Value(pstate), message_(msg)
- { concrete_type(C_WARNING); }
- Custom_Warning(const Custom_Warning* ptr)
- : Value(ptr), message_(ptr->message_)
- { concrete_type(C_WARNING); }
- virtual bool operator== (const Expression& rhs) const;
- ATTACH_AST_OPERATIONS(Custom_Warning)
- ATTACH_OPERATIONS()
- };
-
- ////////////
- // Booleans.
- ////////////
- class Boolean : public Value {
- HASH_PROPERTY(bool, value)
- size_t hash_;
- public:
- Boolean(ParserState pstate, bool val)
- : Value(pstate), value_(val),
- hash_(0)
- { concrete_type(BOOLEAN); }
- Boolean(const Boolean* ptr)
- : Value(ptr),
- value_(ptr->value_),
- hash_(ptr->hash_)
- { concrete_type(BOOLEAN); }
- virtual operator bool() { return value_; }
- std::string type() const { return "bool"; }
- static std::string type_name() { return "bool"; }
- virtual bool is_false() { return !value_; }
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<bool>()(value_);
- }
- return hash_;
- }
-
- virtual bool operator== (const Expression& rhs) const;
-
- ATTACH_AST_OPERATIONS(Boolean)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////
- // Abstract base class for Sass string values. Includes interpolated and
- // "flat" strings.
- ////////////////////////////////////////////////////////////////////////
- class String : public Value {
- public:
- String(ParserState pstate, bool delayed = false)
- : Value(pstate, delayed)
- { concrete_type(STRING); }
- String(const String* ptr)
- : Value(ptr)
- { concrete_type(STRING); }
- static std::string type_name() { return "string"; }
- virtual ~String() = 0;
- virtual void rtrim() = 0;
- virtual bool operator==(const Expression& rhs) const = 0;
- virtual bool operator<(const Expression& rhs) const {
- return this->to_string() < rhs.to_string();
- };
- ATTACH_VIRTUAL_AST_OPERATIONS(String);
- ATTACH_OPERATIONS()
- };
- inline String::~String() { };
-
- ///////////////////////////////////////////////////////////////////////
- // Interpolated strings. Meant to be reduced to flat strings during the
- // evaluation phase.
- ///////////////////////////////////////////////////////////////////////
- class String_Schema : public String, public Vectorized<Expression_Obj> {
- ADD_PROPERTY(bool, css)
- size_t hash_;
- public:
- String_Schema(ParserState pstate, size_t size = 0, bool css = true)
- : String(pstate), Vectorized<Expression_Obj>(size), css_(css), hash_(0)
- { concrete_type(STRING); }
- String_Schema(const String_Schema* ptr)
- : String(ptr),
- Vectorized<Expression_Obj>(*ptr),
- css_(ptr->css_),
- hash_(ptr->hash_)
- { concrete_type(STRING); }
-
- std::string type() const { return "string"; }
- static std::string type_name() { return "string"; }
-
- bool is_left_interpolant(void) const;
- bool is_right_interpolant(void) const;
- // void has_interpolants(bool tc) { }
- bool has_interpolants() {
- for (auto el : elements()) {
- if (el->is_interpolant()) return true;
- }
- return false;
- }
- virtual void rtrim();
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- for (auto string : elements())
- hash_combine(hash_, string->hash());
- }
- return hash_;
- }
-
- virtual void set_delayed(bool delayed) {
- is_delayed(delayed);
- }
-
- virtual bool operator==(const Expression& rhs) const;
- ATTACH_AST_OPERATIONS(String_Schema)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////
- // Flat strings -- the lowest level of raw textual data.
- ////////////////////////////////////////////////////////
- class String_Constant : public String {
- ADD_PROPERTY(char, quote_mark)
- ADD_PROPERTY(bool, can_compress_whitespace)
- HASH_CONSTREF(std::string, value)
- protected:
- size_t hash_;
- public:
- String_Constant(const String_Constant* ptr)
- : String(ptr),
- quote_mark_(ptr->quote_mark_),
- can_compress_whitespace_(ptr->can_compress_whitespace_),
- value_(ptr->value_),
- hash_(ptr->hash_)
- { }
- String_Constant(ParserState pstate, std::string val, bool css = true)
- : String(pstate), quote_mark_(0), can_compress_whitespace_(false), value_(read_css_string(val, css)), hash_(0)
- { }
- String_Constant(ParserState pstate, const char* beg, bool css = true)
- : String(pstate), quote_mark_(0), can_compress_whitespace_(false), value_(read_css_string(std::string(beg), css)), hash_(0)
- { }
- String_Constant(ParserState pstate, const char* beg, const char* end, bool css = true)
- : String(pstate), quote_mark_(0), can_compress_whitespace_(false), value_(read_css_string(std::string(beg, end-beg), css)), hash_(0)
- { }
- String_Constant(ParserState pstate, const Token& tok, bool css = true)
- : String(pstate), quote_mark_(0), can_compress_whitespace_(false), value_(read_css_string(std::string(tok.begin, tok.end), css)), hash_(0)
- { }
- std::string type() const { return "string"; }
- static std::string type_name() { return "string"; }
- virtual bool is_invisible() const;
- virtual void rtrim();
-
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_ = std::hash<std::string>()(value_);
- }
- return hash_;
- }
-
- virtual bool operator==(const Expression& rhs) const;
- virtual std::string inspect() const; // quotes are forced on inspection
-
- // static char auto_quote() { return '*'; }
- static char double_quote() { return '"'; }
- static char single_quote() { return '\''; }
-
- ATTACH_AST_OPERATIONS(String_Constant)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////
- // Possibly quoted string (unquote on instantiation)
- ////////////////////////////////////////////////////////
- class String_Quoted : public String_Constant {
- public:
- String_Quoted(ParserState pstate, std::string val, char q = 0,
- bool keep_utf8_escapes = false, bool skip_unquoting = false,
- bool strict_unquoting = true, bool css = true)
- : String_Constant(pstate, val, css)
- {
- if (skip_unquoting == false) {
- value_ = unquote(value_, &quote_mark_, keep_utf8_escapes, strict_unquoting);
- }
- if (q && quote_mark_) quote_mark_ = q;
- }
- String_Quoted(const String_Quoted* ptr)
- : String_Constant(ptr)
- { }
- virtual bool operator==(const Expression& rhs) const;
- virtual std::string inspect() const; // quotes are forced on inspection
- ATTACH_AST_OPERATIONS(String_Quoted)
- ATTACH_OPERATIONS()
- };
-
- /////////////////
- // Media queries.
- /////////////////
- class Media_Query : public Expression,
- public Vectorized<Media_Query_Expression_Obj> {
- ADD_PROPERTY(String_Obj, media_type)
- ADD_PROPERTY(bool, is_negated)
- ADD_PROPERTY(bool, is_restricted)
- public:
- Media_Query(ParserState pstate,
- String_Obj t = 0, size_t s = 0, bool n = false, bool r = false)
- : Expression(pstate), Vectorized<Media_Query_Expression_Obj>(s),
- media_type_(t), is_negated_(n), is_restricted_(r)
- { }
- Media_Query(const Media_Query* ptr)
- : Expression(ptr),
- Vectorized<Media_Query_Expression_Obj>(*ptr),
- media_type_(ptr->media_type_),
- is_negated_(ptr->is_negated_),
- is_restricted_(ptr->is_restricted_)
- { }
- ATTACH_AST_OPERATIONS(Media_Query)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////
- // Media expressions (for use inside media queries).
- ////////////////////////////////////////////////////
- class Media_Query_Expression : public Expression {
- ADD_PROPERTY(Expression_Obj, feature)
- ADD_PROPERTY(Expression_Obj, value)
- ADD_PROPERTY(bool, is_interpolated)
- public:
- Media_Query_Expression(ParserState pstate,
- Expression_Obj f, Expression_Obj v, bool i = false)
- : Expression(pstate), feature_(f), value_(v), is_interpolated_(i)
- { }
- Media_Query_Expression(const Media_Query_Expression* ptr)
- : Expression(ptr),
- feature_(ptr->feature_),
- value_(ptr->value_),
- is_interpolated_(ptr->is_interpolated_)
- { }
- ATTACH_AST_OPERATIONS(Media_Query_Expression)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////
- // `@supports` rule.
- ////////////////////
- class Supports_Block : public Has_Block {
- ADD_PROPERTY(Supports_Condition_Obj, condition)
- public:
- Supports_Block(ParserState pstate, Supports_Condition_Obj condition, Block_Obj block = 0)
- : Has_Block(pstate, block), condition_(condition)
- { statement_type(SUPPORTS); }
- Supports_Block(const Supports_Block* ptr)
- : Has_Block(ptr), condition_(ptr->condition_)
- { statement_type(SUPPORTS); }
- bool bubbles() { return true; }
- ATTACH_AST_OPERATIONS(Supports_Block)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////////////////////////////
- // The abstract superclass of all Supports conditions.
- //////////////////////////////////////////////////////
- class Supports_Condition : public Expression {
- public:
- Supports_Condition(ParserState pstate)
- : Expression(pstate)
- { }
- Supports_Condition(const Supports_Condition* ptr)
- : Expression(ptr)
- { }
- virtual bool needs_parens(Supports_Condition_Obj cond) const { return false; }
- ATTACH_AST_OPERATIONS(Supports_Condition)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////
- // An operator condition (e.g. `CONDITION1 and CONDITION2`).
- ////////////////////////////////////////////////////////////
- class Supports_Operator : public Supports_Condition {
- public:
- enum Operand { AND, OR };
- private:
- ADD_PROPERTY(Supports_Condition_Obj, left);
- ADD_PROPERTY(Supports_Condition_Obj, right);
- ADD_PROPERTY(Operand, operand);
- public:
- Supports_Operator(ParserState pstate, Supports_Condition_Obj l, Supports_Condition_Obj r, Operand o)
- : Supports_Condition(pstate), left_(l), right_(r), operand_(o)
- { }
- Supports_Operator(const Supports_Operator* ptr)
- : Supports_Condition(ptr),
- left_(ptr->left_),
- right_(ptr->right_),
- operand_(ptr->operand_)
- { }
- virtual bool needs_parens(Supports_Condition_Obj cond) const;
- ATTACH_AST_OPERATIONS(Supports_Operator)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////////////////
- // A negation condition (`not CONDITION`).
- //////////////////////////////////////////
- class Supports_Negation : public Supports_Condition {
- private:
- ADD_PROPERTY(Supports_Condition_Obj, condition);
- public:
- Supports_Negation(ParserState pstate, Supports_Condition_Obj c)
- : Supports_Condition(pstate), condition_(c)
- { }
- Supports_Negation(const Supports_Negation* ptr)
- : Supports_Condition(ptr), condition_(ptr->condition_)
- { }
- virtual bool needs_parens(Supports_Condition_Obj cond) const;
- ATTACH_AST_OPERATIONS(Supports_Negation)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////////
- // A declaration condition (e.g. `(feature: value)`).
- /////////////////////////////////////////////////////
- class Supports_Declaration : public Supports_Condition {
- private:
- ADD_PROPERTY(Expression_Obj, feature);
- ADD_PROPERTY(Expression_Obj, value);
- public:
- Supports_Declaration(ParserState pstate, Expression_Obj f, Expression_Obj v)
- : Supports_Condition(pstate), feature_(f), value_(v)
- { }
- Supports_Declaration(const Supports_Declaration* ptr)
- : Supports_Condition(ptr),
- feature_(ptr->feature_),
- value_(ptr->value_)
- { }
- virtual bool needs_parens(Supports_Condition_Obj cond) const { return false; }
- ATTACH_AST_OPERATIONS(Supports_Declaration)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////////
- // An interpolation condition (e.g. `#{$var}`).
- ///////////////////////////////////////////////
- class Supports_Interpolation : public Supports_Condition {
- private:
- ADD_PROPERTY(Expression_Obj, value);
- public:
- Supports_Interpolation(ParserState pstate, Expression_Obj v)
- : Supports_Condition(pstate), value_(v)
- { }
- Supports_Interpolation(const Supports_Interpolation* ptr)
- : Supports_Condition(ptr),
- value_(ptr->value_)
- { }
- virtual bool needs_parens(Supports_Condition_Obj cond) const { return false; }
- ATTACH_AST_OPERATIONS(Supports_Interpolation)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////
- // At root expressions (for use inside @at-root).
- /////////////////////////////////////////////////
- class At_Root_Query : public Expression {
- private:
- ADD_PROPERTY(Expression_Obj, feature)
- ADD_PROPERTY(Expression_Obj, value)
- public:
- At_Root_Query(ParserState pstate, Expression_Obj f = 0, Expression_Obj v = 0, bool i = false)
- : Expression(pstate), feature_(f), value_(v)
- { }
- At_Root_Query(const At_Root_Query* ptr)
- : Expression(ptr),
- feature_(ptr->feature_),
- value_(ptr->value_)
- { }
- bool exclude(std::string str);
- ATTACH_AST_OPERATIONS(At_Root_Query)
- ATTACH_OPERATIONS()
- };
-
- ///////////
- // At-root.
- ///////////
- class At_Root_Block : public Has_Block {
- ADD_PROPERTY(At_Root_Query_Obj, expression)
- public:
- At_Root_Block(ParserState pstate, Block_Obj b = 0, At_Root_Query_Obj e = 0)
- : Has_Block(pstate, b), expression_(e)
- { statement_type(ATROOT); }
- At_Root_Block(const At_Root_Block* ptr)
- : Has_Block(ptr), expression_(ptr->expression_)
- { statement_type(ATROOT); }
- bool bubbles() { return true; }
- bool exclude_node(Statement_Obj s) {
- if (expression() == 0)
- {
- return s->statement_type() == Statement::RULESET;
- }
-
- if (s->statement_type() == Statement::DIRECTIVE)
- {
- if (Directive_Obj dir = Cast<Directive>(s))
- {
- std::string keyword(dir->keyword());
- if (keyword.length() > 0) keyword.erase(0, 1);
- return expression()->exclude(keyword);
- }
- }
- if (s->statement_type() == Statement::MEDIA)
- {
- return expression()->exclude("media");
- }
- if (s->statement_type() == Statement::RULESET)
- {
- return expression()->exclude("rule");
- }
- if (s->statement_type() == Statement::SUPPORTS)
- {
- return expression()->exclude("supports");
- }
- if (Directive_Obj dir = Cast<Directive>(s))
- {
- if (dir->is_keyframes()) return expression()->exclude("keyframes");
- }
- return false;
- }
- ATTACH_AST_OPERATIONS(At_Root_Block)
- ATTACH_OPERATIONS()
- };
-
- //////////////////
- // The null value.
- //////////////////
- class Null : public Value {
- public:
- Null(ParserState pstate) : Value(pstate) { concrete_type(NULL_VAL); }
- Null(const Null* ptr) : Value(ptr) { concrete_type(NULL_VAL); }
- std::string type() const { return "null"; }
- static std::string type_name() { return "null"; }
- bool is_invisible() const { return true; }
- operator bool() { return false; }
- bool is_false() { return true; }
-
- virtual size_t hash()
- {
- return -1;
- }
-
- virtual bool operator== (const Expression& rhs) const;
-
- ATTACH_AST_OPERATIONS(Null)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////
- // Thunks for delayed evaluation.
- /////////////////////////////////
- class Thunk : public Expression {
- ADD_PROPERTY(Expression_Obj, expression)
- ADD_PROPERTY(Env*, environment)
- public:
- Thunk(ParserState pstate, Expression_Obj exp, Env* env = 0)
- : Expression(pstate), expression_(exp), environment_(env)
- { }
- };
-
- /////////////////////////////////////////////////////////
- // Individual parameter objects for mixins and functions.
- /////////////////////////////////////////////////////////
- class Parameter : public AST_Node {
- ADD_CONSTREF(std::string, name)
- ADD_PROPERTY(Expression_Obj, default_value)
- ADD_PROPERTY(bool, is_rest_parameter)
- public:
- Parameter(ParserState pstate,
- std::string n, Expression_Obj def = 0, bool rest = false)
- : AST_Node(pstate), name_(n), default_value_(def), is_rest_parameter_(rest)
- {
- // tried to come up with a spec test for this, but it does no longer
- // get past the parser (it error out earlier). A spec test was added!
- // if (default_value_ && is_rest_parameter_) {
- // error("variable-length parameter may not have a default value", pstate_);
- // }
- }
- Parameter(const Parameter* ptr)
- : AST_Node(ptr),
- name_(ptr->name_),
- default_value_(ptr->default_value_),
- is_rest_parameter_(ptr->is_rest_parameter_)
- {
- // tried to come up with a spec test for this, but it does no longer
- // get past the parser (it error out earlier). A spec test was added!
- // if (default_value_ && is_rest_parameter_) {
- // error("variable-length parameter may not have a default value", pstate_);
- // }
- }
- ATTACH_AST_OPERATIONS(Parameter)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////////////////////////////
- // Parameter lists -- in their own class to facilitate context-sensitive
- // error checking (e.g., ensuring that all optional parameters follow all
- // required parameters).
- /////////////////////////////////////////////////////////////////////////
- class Parameters : public AST_Node, public Vectorized<Parameter_Obj> {
- ADD_PROPERTY(bool, has_optional_parameters)
- ADD_PROPERTY(bool, has_rest_parameter)
- protected:
- void adjust_after_pushing(Parameter_Obj p)
- {
- if (p->default_value()) {
- if (has_rest_parameter()) {
- coreError("optional parameters may not be combined with variable-length parameters", p->pstate());
- }
- has_optional_parameters(true);
- }
- else if (p->is_rest_parameter()) {
- if (has_rest_parameter()) {
- coreError("functions and mixins cannot have more than one variable-length parameter", p->pstate());
- }
- has_rest_parameter(true);
- }
- else {
- if (has_rest_parameter()) {
- coreError("required parameters must precede variable-length parameters", p->pstate());
- }
- if (has_optional_parameters()) {
- coreError("required parameters must precede optional parameters", p->pstate());
- }
- }
- }
- public:
- Parameters(ParserState pstate)
- : AST_Node(pstate),
- Vectorized<Parameter_Obj>(),
- has_optional_parameters_(false),
- has_rest_parameter_(false)
- { }
- Parameters(const Parameters* ptr)
- : AST_Node(ptr),
- Vectorized<Parameter_Obj>(*ptr),
- has_optional_parameters_(ptr->has_optional_parameters_),
- has_rest_parameter_(ptr->has_rest_parameter_)
- { }
- ATTACH_AST_OPERATIONS(Parameters)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////
- // Abstract base class for CSS selectors.
- /////////////////////////////////////////
- class Selector : public Expression {
- // ADD_PROPERTY(bool, has_reference)
- // line break before list separator
- ADD_PROPERTY(bool, has_line_feed)
- // line break after list separator
- ADD_PROPERTY(bool, has_line_break)
- // maybe we have optional flag
- ADD_PROPERTY(bool, is_optional)
- // parent block pointers
-
- // must not be a reference counted object
- // otherwise we create circular references
- ADD_PROPERTY(Media_Block_Ptr, media_block)
- protected:
- size_t hash_;
- public:
- Selector(ParserState pstate)
- : Expression(pstate),
- has_line_feed_(false),
- has_line_break_(false),
- is_optional_(false),
- media_block_(0),
- hash_(0)
- { concrete_type(SELECTOR); }
- Selector(const Selector* ptr)
- : Expression(ptr),
- // has_reference_(ptr->has_reference_),
- has_line_feed_(ptr->has_line_feed_),
- has_line_break_(ptr->has_line_break_),
- is_optional_(ptr->is_optional_),
- media_block_(ptr->media_block_),
- hash_(ptr->hash_)
- { concrete_type(SELECTOR); }
- virtual ~Selector() = 0;
- virtual size_t hash() = 0;
- virtual unsigned long specificity() const = 0;
- virtual void set_media_block(Media_Block_Ptr mb) {
- media_block(mb);
- }
- virtual bool has_parent_ref() const {
- return false;
- }
- virtual bool has_real_parent_ref() const {
- return false;
- }
- // dispatch to correct handlers
- virtual bool operator<(const Selector& rhs) const = 0;
- virtual bool operator==(const Selector& rhs) const = 0;
- ATTACH_VIRTUAL_AST_OPERATIONS(Selector);
- };
- inline Selector::~Selector() { }
-
- /////////////////////////////////////////////////////////////////////////
- // Interpolated selectors -- the interpolated String will be expanded and
- // re-parsed into a normal selector class.
- /////////////////////////////////////////////////////////////////////////
- class Selector_Schema : public AST_Node {
- ADD_PROPERTY(String_Obj, contents)
- ADD_PROPERTY(bool, connect_parent);
- // must not be a reference counted object
- // otherwise we create circular references
- ADD_PROPERTY(Media_Block_Ptr, media_block)
- // store computed hash
- size_t hash_;
- public:
- Selector_Schema(ParserState pstate, String_Obj c)
- : AST_Node(pstate),
- contents_(c),
- connect_parent_(true),
- media_block_(NULL),
- hash_(0)
- { }
- Selector_Schema(const Selector_Schema* ptr)
- : AST_Node(ptr),
- contents_(ptr->contents_),
- connect_parent_(ptr->connect_parent_),
- media_block_(ptr->media_block_),
- hash_(ptr->hash_)
- { }
- virtual bool has_parent_ref() const;
- virtual bool has_real_parent_ref() const;
- virtual bool operator<(const Selector& rhs) const;
- virtual bool operator==(const Selector& rhs) const;
- // selector schema is not yet a final selector, so we do not
- // have a specificity for it yet. We need to
- virtual unsigned long specificity() const { return 0; }
- virtual size_t hash() {
- if (hash_ == 0) {
- hash_combine(hash_, contents_->hash());
- }
- return hash_;
- }
- ATTACH_AST_OPERATIONS(Selector_Schema)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////
- // Abstract base class for simple selectors.
- ////////////////////////////////////////////
- class Simple_Selector : public Selector {
- ADD_CONSTREF(std::string, ns)
- ADD_CONSTREF(std::string, name)
- ADD_PROPERTY(Simple_Type, simple_type)
- ADD_PROPERTY(bool, has_ns)
- public:
- Simple_Selector(ParserState pstate, std::string n = "")
- : Selector(pstate), ns_(""), name_(n), has_ns_(false)
- {
- simple_type(SIMPLE);
- size_t pos = n.find('|');
- // found some namespace
- if (pos != std::string::npos) {
- has_ns_ = true;
- ns_ = n.substr(0, pos);
- name_ = n.substr(pos + 1);
- }
- }
- Simple_Selector(const Simple_Selector* ptr)
- : Selector(ptr),
- ns_(ptr->ns_),
- name_(ptr->name_),
- has_ns_(ptr->has_ns_)
- { simple_type(SIMPLE); }
- virtual std::string ns_name() const
- {
- std::string name("");
- if (has_ns_)
- name += ns_ + "|";
- return name + name_;
- }
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_combine(hash_, std::hash<int>()(SELECTOR));
- hash_combine(hash_, std::hash<std::string>()(ns()));
- hash_combine(hash_, std::hash<std::string>()(name()));
- }
- return hash_;
- }
- // namespace compare functions
- bool is_ns_eq(const Simple_Selector& r) const;
- // namespace query functions
- bool is_universal_ns() const
- {
- return has_ns_ && ns_ == "*";
- }
- bool has_universal_ns() const
- {
- return !has_ns_ || ns_ == "*";
- }
- bool is_empty_ns() const
- {
- return !has_ns_ || ns_ == "";
- }
- bool has_empty_ns() const
- {
- return has_ns_ && ns_ == "";
- }
- bool has_qualified_ns() const
- {
- return has_ns_ && ns_ != "" && ns_ != "*";
- }
- // name query functions
- bool is_universal() const
- {
- return name_ == "*";
- }
-
- virtual bool has_placeholder() {
- return false;
- }
-
- virtual ~Simple_Selector() = 0;
- virtual Compound_Selector_Ptr unify_with(Compound_Selector_Ptr);
- virtual bool has_parent_ref() const { return false; };
- virtual bool has_real_parent_ref() const { return false; };
- virtual bool is_pseudo_element() const { return false; }
-
- virtual bool is_superselector_of(Compound_Selector_Obj sub) { return false; }
-
- virtual bool operator==(const Selector& rhs) const;
- virtual bool operator==(const Simple_Selector& rhs) const;
- inline bool operator!=(const Simple_Selector& rhs) const { return !(*this == rhs); }
-
- bool operator<(const Selector& rhs) const;
- bool operator<(const Simple_Selector& rhs) const;
- // default implementation should work for most of the simple selectors (otherwise overload)
- ATTACH_VIRTUAL_AST_OPERATIONS(Simple_Selector);
- ATTACH_OPERATIONS();
- };
- inline Simple_Selector::~Simple_Selector() { }
-
-
- //////////////////////////////////
- // The Parent Selector Expression.
- //////////////////////////////////
- // parent selectors can occur in selectors but also
- // inside strings in declarations (Compound_Selector).
- // only one simple parent selector means the first case.
- class Parent_Selector : public Simple_Selector {
- ADD_PROPERTY(bool, real)
- public:
- Parent_Selector(ParserState pstate, bool r = true)
- : Simple_Selector(pstate, "&"), real_(r)
- { /* has_reference(true); */ }
- Parent_Selector(const Parent_Selector* ptr)
- : Simple_Selector(ptr), real_(ptr->real_)
- { /* has_reference(true); */ }
- bool is_real_parent_ref() const { return real(); };
- virtual bool has_parent_ref() const { return true; };
- virtual bool has_real_parent_ref() const { return is_real_parent_ref(); };
- virtual unsigned long specificity() const
- {
- return 0;
- }
- std::string type() const { return "selector"; }
- static std::string type_name() { return "selector"; }
- ATTACH_AST_OPERATIONS(Parent_Selector)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////////////////////////////
- // Placeholder selectors (e.g., "%foo") for use in extend-only selectors.
- /////////////////////////////////////////////////////////////////////////
- class Placeholder_Selector : public Simple_Selector {
- public:
- Placeholder_Selector(ParserState pstate, std::string n)
- : Simple_Selector(pstate, n)
- { }
- Placeholder_Selector(const Placeholder_Selector* ptr)
- : Simple_Selector(ptr)
- { }
- virtual unsigned long specificity() const
- {
- return Constants::Specificity_Base;
- }
- virtual bool has_placeholder() {
- return true;
- }
- virtual ~Placeholder_Selector() {};
- ATTACH_AST_OPERATIONS(Placeholder_Selector)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////////////////////////
- // Element selectors (and the universal selector) -- e.g., div, span, *.
- /////////////////////////////////////////////////////////////////////
- class Element_Selector : public Simple_Selector {
- public:
- Element_Selector(ParserState pstate, std::string n)
- : Simple_Selector(pstate, n)
- { }
- Element_Selector(const Element_Selector* ptr)
- : Simple_Selector(ptr)
- { }
- virtual unsigned long specificity() const
- {
- if (name() == "*") return 0;
- else return Constants::Specificity_Element;
- }
- virtual Simple_Selector_Ptr unify_with(Simple_Selector_Ptr);
- virtual Compound_Selector_Ptr unify_with(Compound_Selector_Ptr);
- virtual bool operator==(const Simple_Selector& rhs) const;
- virtual bool operator==(const Element_Selector& rhs) const;
- virtual bool operator<(const Simple_Selector& rhs) const;
- virtual bool operator<(const Element_Selector& rhs) const;
- ATTACH_AST_OPERATIONS(Element_Selector)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////
- // Class selectors -- i.e., .foo.
- ////////////////////////////////////////////////
- class Class_Selector : public Simple_Selector {
- public:
- Class_Selector(ParserState pstate, std::string n)
- : Simple_Selector(pstate, n)
- { }
- Class_Selector(const Class_Selector* ptr)
- : Simple_Selector(ptr)
- { }
- virtual unsigned long specificity() const
- {
- return Constants::Specificity_Class;
- }
- virtual Compound_Selector_Ptr unify_with(Compound_Selector_Ptr);
- ATTACH_AST_OPERATIONS(Class_Selector)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////
- // ID selectors -- i.e., #foo.
- ////////////////////////////////////////////////
- class Id_Selector : public Simple_Selector {
- public:
- Id_Selector(ParserState pstate, std::string n)
- : Simple_Selector(pstate, n)
- { }
- Id_Selector(const Id_Selector* ptr)
- : Simple_Selector(ptr)
- { }
- virtual unsigned long specificity() const
- {
- return Constants::Specificity_ID;
- }
- virtual Compound_Selector_Ptr unify_with(Compound_Selector_Ptr);
- ATTACH_AST_OPERATIONS(Id_Selector)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////////////////////
- // Attribute selectors -- e.g., [src*=".jpg"], etc.
- ///////////////////////////////////////////////////
- class Attribute_Selector : public Simple_Selector {
- ADD_CONSTREF(std::string, matcher)
- // this cannot be changed to obj atm!!!!!!????!!!!!!!
- ADD_PROPERTY(String_Obj, value) // might be interpolated
- ADD_PROPERTY(char, modifier);
- public:
- Attribute_Selector(ParserState pstate, std::string n, std::string m, String_Obj v, char o = 0)
- : Simple_Selector(pstate, n), matcher_(m), value_(v), modifier_(o)
- { simple_type(ATTR_SEL); }
- Attribute_Selector(const Attribute_Selector* ptr)
- : Simple_Selector(ptr),
- matcher_(ptr->matcher_),
- value_(ptr->value_),
- modifier_(ptr->modifier_)
- { simple_type(ATTR_SEL); }
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_combine(hash_, Simple_Selector::hash());
- hash_combine(hash_, std::hash<std::string>()(matcher()));
- if (value_) hash_combine(hash_, value_->hash());
- }
- return hash_;
- }
- virtual unsigned long specificity() const
- {
- return Constants::Specificity_Attr;
- }
- virtual bool operator==(const Simple_Selector& rhs) const;
- virtual bool operator==(const Attribute_Selector& rhs) const;
- virtual bool operator<(const Simple_Selector& rhs) const;
- virtual bool operator<(const Attribute_Selector& rhs) const;
- ATTACH_AST_OPERATIONS(Attribute_Selector)
- ATTACH_OPERATIONS()
- };
-
- //////////////////////////////////////////////////////////////////
- // Pseudo selectors -- e.g., :first-child, :nth-of-type(...), etc.
- //////////////////////////////////////////////////////////////////
- /* '::' starts a pseudo-element, ':' a pseudo-class */
- /* Except :first-line, :first-letter, :before and :after */
- /* Note that pseudo-elements are restricted to one per selector */
- /* and occur only in the last simple_selector_sequence. */
- inline bool is_pseudo_class_element(const std::string& name)
- {
- return name == ":before" ||
- name == ":after" ||
- name == ":first-line" ||
- name == ":first-letter";
- }
-
- // Pseudo Selector cannot have any namespace?
- class Pseudo_Selector : public Simple_Selector {
- ADD_PROPERTY(String_Obj, expression)
- public:
- Pseudo_Selector(ParserState pstate, std::string n, String_Obj expr = 0)
- : Simple_Selector(pstate, n), expression_(expr)
- { simple_type(PSEUDO_SEL); }
- Pseudo_Selector(const Pseudo_Selector* ptr)
- : Simple_Selector(ptr), expression_(ptr->expression_)
- { simple_type(PSEUDO_SEL); }
-
- // A pseudo-element is made of two colons (::) followed by the name.
- // The `::` notation is introduced by the current document in order to
- // establish a discrimination between pseudo-classes and pseudo-elements.
- // For compatibility with existing style sheets, user agents must also
- // accept the previous one-colon notation for pseudo-elements introduced
- // in CSS levels 1 and 2 (namely, :first-line, :first-letter, :before and
- // :after). This compatibility is not allowed for the new pseudo-elements
- // introduced in this specification.
- virtual bool is_pseudo_element() const
- {
- return (name_[0] == ':' && name_[1] == ':')
- || is_pseudo_class_element(name_);
- }
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_combine(hash_, Simple_Selector::hash());
- if (expression_) hash_combine(hash_, expression_->hash());
- }
- return hash_;
- }
- virtual unsigned long specificity() const
- {
- if (is_pseudo_element())
- return Constants::Specificity_Element;
- return Constants::Specificity_Pseudo;
- }
- virtual bool operator==(const Simple_Selector& rhs) const;
- virtual bool operator==(const Pseudo_Selector& rhs) const;
- virtual bool operator<(const Simple_Selector& rhs) const;
- virtual bool operator<(const Pseudo_Selector& rhs) const;
- virtual Compound_Selector_Ptr unify_with(Compound_Selector_Ptr);
- ATTACH_AST_OPERATIONS(Pseudo_Selector)
- ATTACH_OPERATIONS()
- };
-
- /////////////////////////////////////////////////
- // Wrapped selector -- pseudo selector that takes a list of selectors as argument(s) e.g., :not(:first-of-type), :-moz-any(ol p.blah, ul, menu, dir)
- /////////////////////////////////////////////////
- class Wrapped_Selector : public Simple_Selector {
- ADD_PROPERTY(Selector_List_Obj, selector)
- public:
- Wrapped_Selector(ParserState pstate, std::string n, Selector_List_Obj sel)
- : Simple_Selector(pstate, n), selector_(sel)
- { simple_type(WRAPPED_SEL); }
- Wrapped_Selector(const Wrapped_Selector* ptr)
- : Simple_Selector(ptr), selector_(ptr->selector_)
- { simple_type(WRAPPED_SEL); }
- virtual bool is_superselector_of(Wrapped_Selector_Obj sub);
- // Selectors inside the negation pseudo-class are counted like any
- // other, but the negation itself does not count as a pseudo-class.
- virtual size_t hash();
- virtual bool has_parent_ref() const;
- virtual bool has_real_parent_ref() const;
- virtual unsigned long specificity() const;
- virtual bool find ( bool (*f)(AST_Node_Obj) );
- virtual bool operator==(const Simple_Selector& rhs) const;
- virtual bool operator==(const Wrapped_Selector& rhs) const;
- virtual bool operator<(const Simple_Selector& rhs) const;
- virtual bool operator<(const Wrapped_Selector& rhs) const;
- virtual void cloneChildren();
- ATTACH_AST_OPERATIONS(Wrapped_Selector)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////////
- // Simple selector sequences. Maintains flags indicating whether it contains
- // any parent references or placeholders, to simplify expansion.
- ////////////////////////////////////////////////////////////////////////////
- class Compound_Selector : public Selector, public Vectorized<Simple_Selector_Obj> {
- private:
- ComplexSelectorSet sources_;
- ADD_PROPERTY(bool, extended);
- ADD_PROPERTY(bool, has_parent_reference);
- protected:
- void adjust_after_pushing(Simple_Selector_Obj s)
- {
- // if (s->has_reference()) has_reference(true);
- // if (s->has_placeholder()) has_placeholder(true);
- }
- public:
- Compound_Selector(ParserState pstate, size_t s = 0)
- : Selector(pstate),
- Vectorized<Simple_Selector_Obj>(s),
- extended_(false),
- has_parent_reference_(false)
- { }
- Compound_Selector(const Compound_Selector* ptr)
- : Selector(ptr),
- Vectorized<Simple_Selector_Obj>(*ptr),
- extended_(ptr->extended_),
- has_parent_reference_(ptr->has_parent_reference_)
- { }
- bool contains_placeholder() {
- for (size_t i = 0, L = length(); i < L; ++i) {
- if ((*this)[i]->has_placeholder()) return true;
- }
- return false;
- };
-
- void append(Simple_Selector_Ptr element);
-
- bool is_universal() const
- {
- return length() == 1 && (*this)[0]->is_universal();
- }
-
- Complex_Selector_Obj to_complex();
- Compound_Selector_Ptr unify_with(Compound_Selector_Ptr rhs);
- // virtual Placeholder_Selector_Ptr find_placeholder();
- virtual bool has_parent_ref() const;
- virtual bool has_real_parent_ref() const;
- Simple_Selector_Ptr base() const {
- if (length() == 0) return 0;
- // ToDo: why is this needed?
- if (Cast<Element_Selector>((*this)[0]))
- return (*this)[0];
- return 0;
- }
- virtual bool is_superselector_of(Compound_Selector_Obj sub, std::string wrapped = "");
- virtual bool is_superselector_of(Complex_Selector_Obj sub, std::string wrapped = "");
- virtual bool is_superselector_of(Selector_List_Obj sub, std::string wrapped = "");
- virtual size_t hash()
- {
- if (Selector::hash_ == 0) {
- hash_combine(Selector::hash_, std::hash<int>()(SELECTOR));
- if (length()) hash_combine(Selector::hash_, Vectorized::hash());
- }
- return Selector::hash_;
- }
- virtual unsigned long specificity() const
- {
- int sum = 0;
- for (size_t i = 0, L = length(); i < L; ++i)
- { sum += (*this)[i]->specificity(); }
- return sum;
- }
-
- virtual bool has_placeholder()
- {
- if (length() == 0) return false;
- if (Simple_Selector_Obj ss = elements().front()) {
- if (ss->has_placeholder()) return true;
- }
- return false;
- }
-
- bool is_empty_reference()
- {
- return length() == 1 &&
- Cast<Parent_Selector>((*this)[0]);
- }
-
- virtual bool find ( bool (*f)(AST_Node_Obj) );
- virtual bool operator<(const Selector& rhs) const;
- virtual bool operator==(const Selector& rhs) const;
- virtual bool operator<(const Compound_Selector& rhs) const;
- virtual bool operator==(const Compound_Selector& rhs) const;
- inline bool operator!=(const Compound_Selector& rhs) const { return !(*this == rhs); }
-
- ComplexSelectorSet& sources() { return sources_; }
- void clearSources() { sources_.clear(); }
- void mergeSources(ComplexSelectorSet& sources);
-
- Compound_Selector_Ptr minus(Compound_Selector_Ptr rhs);
- virtual void cloneChildren();
- ATTACH_AST_OPERATIONS(Compound_Selector)
- ATTACH_OPERATIONS()
- };
-
- ////////////////////////////////////////////////////////////////////////////
- // General selectors -- i.e., simple sequences combined with one of the four
- // CSS selector combinators (">", "+", "~", and whitespace). Essentially a
- // linked list.
- ////////////////////////////////////////////////////////////////////////////
- class Complex_Selector : public Selector {
- public:
- enum Combinator { ANCESTOR_OF, PARENT_OF, PRECEDES, ADJACENT_TO, REFERENCE };
- private:
- HASH_CONSTREF(Combinator, combinator)
- HASH_PROPERTY(Compound_Selector_Obj, head)
- HASH_PROPERTY(Complex_Selector_Obj, tail)
- HASH_PROPERTY(String_Obj, reference);
- public:
- bool contains_placeholder() {
- if (head() && head()->contains_placeholder()) return true;
- if (tail() && tail()->contains_placeholder()) return true;
- return false;
- };
- Complex_Selector(ParserState pstate,
- Combinator c = ANCESTOR_OF,
- Compound_Selector_Obj h = 0,
- Complex_Selector_Obj t = 0,
- String_Obj r = 0)
- : Selector(pstate),
- combinator_(c),
- head_(h), tail_(t),
- reference_(r)
- {}
- Complex_Selector(const Complex_Selector* ptr)
- : Selector(ptr),
- combinator_(ptr->combinator_),
- head_(ptr->head_), tail_(ptr->tail_),
- reference_(ptr->reference_)
- {};
- virtual bool has_parent_ref() const;
- virtual bool has_real_parent_ref() const;
-
- Complex_Selector_Obj skip_empty_reference()
- {
- if ((!head_ || !head_->length() || head_->is_empty_reference()) &&
- combinator() == Combinator::ANCESTOR_OF)
- {
- if (!tail_) return 0;
- tail_->has_line_feed_ = this->has_line_feed_;
- // tail_->has_line_break_ = this->has_line_break_;
- return tail_->skip_empty_reference();
- }
- return this;
- }
-
- // can still have a tail
- bool is_empty_ancestor() const
- {
- return (!head() || head()->length() == 0) &&
- combinator() == Combinator::ANCESTOR_OF;
- }
-
- Selector_List_Ptr tails(Selector_List_Ptr tails);
-
- // front returns the first real tail
- // skips over parent and empty ones
- Complex_Selector_Obj first();
- // last returns the last real tail
- Complex_Selector_Obj last();
-
- // some shortcuts that should be removed
- Complex_Selector_Obj innermost() { return last(); };
-
- size_t length() const;
- Selector_List_Ptr resolve_parent_refs(std::vector<Selector_List_Obj>& pstack, Backtraces& traces, bool implicit_parent = true);
- virtual bool is_superselector_of(Compound_Selector_Obj sub, std::string wrapping = "");
- virtual bool is_superselector_of(Complex_Selector_Obj sub, std::string wrapping = "");
- virtual bool is_superselector_of(Selector_List_Obj sub, std::string wrapping = "");
- Selector_List_Ptr unify_with(Complex_Selector_Ptr rhs);
- Combinator clear_innermost();
- void append(Complex_Selector_Obj, Backtraces& traces);
- void set_innermost(Complex_Selector_Obj, Combinator);
- virtual size_t hash()
- {
- if (hash_ == 0) {
- hash_combine(hash_, std::hash<int>()(SELECTOR));
- hash_combine(hash_, std::hash<int>()(combinator_));
- if (head_) hash_combine(hash_, head_->hash());
- if (tail_) hash_combine(hash_, tail_->hash());
- }
- return hash_;
- }
- virtual unsigned long specificity() const
- {
- int sum = 0;
- if (head()) sum += head()->specificity();
- if (tail()) sum += tail()->specificity();
- return sum;
- }
- virtual void set_media_block(Media_Block_Ptr mb) {
- media_block(mb);
- if (tail_) tail_->set_media_block(mb);
- if (head_) head_->set_media_block(mb);
- }
- virtual bool has_placeholder() {
- if (head_ && head_->has_placeholder()) return true;
- if (tail_ && tail_->has_placeholder()) return true;
- return false;
- }
- virtual bool find ( bool (*f)(AST_Node_Obj) );
- virtual bool operator<(const Selector& rhs) const;
- virtual bool operator==(const Selector& rhs) const;
- virtual bool operator<(const Complex_Selector& rhs) const;
- virtual bool operator==(const Complex_Selector& rhs) const;
- inline bool operator!=(const Complex_Selector& rhs) const { return !(*this == rhs); }
- const ComplexSelectorSet sources()
- {
- //s = Set.new
- //seq.map {|sseq_or_op| s.merge sseq_or_op.sources if sseq_or_op.is_a?(SimpleSequence)}
- //s
-
- ComplexSelectorSet srcs;
-
- Compound_Selector_Obj pHead = head();
- Complex_Selector_Obj pTail = tail();
-
- if (pHead) {
- const ComplexSelectorSet& headSources = pHead->sources();
- srcs.insert(headSources.begin(), headSources.end());
- }
-
- if (pTail) {
- const ComplexSelectorSet& tailSources = pTail->sources();
- srcs.insert(tailSources.begin(), tailSources.end());
- }
-
- return srcs;
- }
- void addSources(ComplexSelectorSet& sources) {
- // members.map! {|m| m.is_a?(SimpleSequence) ? m.with_more_sources(sources) : m}
- Complex_Selector_Ptr pIter = this;
- while (pIter) {
- Compound_Selector_Ptr pHead = pIter->head();
-
- if (pHead) {
- pHead->mergeSources(sources);
- }
-
- pIter = pIter->tail();
- }
- }
- void clearSources() {
- Complex_Selector_Ptr pIter = this;
- while (pIter) {
- Compound_Selector_Ptr pHead = pIter->head();
-
- if (pHead) {
- pHead->clearSources();
- }
-
- pIter = pIter->tail();
- }
- }
-
- virtual void cloneChildren();
- ATTACH_AST_OPERATIONS(Complex_Selector)
- ATTACH_OPERATIONS()
- };
-
- ///////////////////////////////////
- // Comma-separated selector groups.
- ///////////////////////////////////
- class Selector_List : public Selector, public Vectorized<Complex_Selector_Obj> {
- ADD_PROPERTY(Selector_Schema_Obj, schema)
- ADD_CONSTREF(std::vector<std::string>, wspace)
- protected:
- void adjust_after_pushing(Complex_Selector_Obj c);
- public:
- Selector_List(ParserState pstate, size_t s = 0)
- : Selector(pstate),
- Vectorized<Complex_Selector_Obj>(s),
- schema_(NULL),
- wspace_(0)
- { }
- Selector_List(const Selector_List* ptr)
- : Selector(ptr),
- Vectorized<Complex_Selector_Obj>(*ptr),
- schema_(ptr->schema_),
- wspace_(ptr->wspace_)
- { }
- std::string type() const { return "list"; }
- // remove parent selector references
- // basically unwraps parsed selectors
- virtual bool has_parent_ref() const;
- virtual bool has_real_parent_ref() const;
- void remove_parent_selectors();
- Selector_List_Ptr resolve_parent_refs(std::vector<Selector_List_Obj>& pstack, Backtraces& traces, bool implicit_parent = true);
- virtual bool is_superselector_of(Compound_Selector_Obj sub, std::string wrapping = "");
- virtual bool is_superselector_of(Complex_Selector_Obj sub, std::string wrapping = "");
- virtual bool is_superselector_of(Selector_List_Obj sub, std::string wrapping = "");
- Selector_List_Ptr unify_with(Selector_List_Ptr);
- void populate_extends(Selector_List_Obj, Subset_Map&);
- Selector_List_Obj eval(Eval& eval);
- virtual size_t hash()
- {
- if (Selector::hash_ == 0) {
- hash_combine(Selector::hash_, std::hash<int>()(SELECTOR));
- hash_combine(Selector::hash_, Vectorized::hash());
- }
- return Selector::hash_;
- }
- virtual unsigned long specificity() const
- {
- unsigned long sum = 0;
- unsigned long specificity;
- for (size_t i = 0, L = length(); i < L; ++i)
- {
- specificity = (*this)[i]->specificity();
- if (sum < specificity) sum = specificity;
- }
- return sum;
- }
- virtual void set_media_block(Media_Block_Ptr mb) {
- media_block(mb);
- for (Complex_Selector_Obj cs : elements()) {
- cs->set_media_block(mb);
- }
- }
- virtual bool has_placeholder() {
- for (Complex_Selector_Obj cs : elements()) {
- if (cs->has_placeholder()) return true;
- }
- return false;
- }
- virtual bool find ( bool (*f)(AST_Node_Obj) );
- virtual bool operator<(const Selector& rhs) const;
- virtual bool operator==(const Selector& rhs) const;
- virtual bool operator<(const Selector_List& rhs) const;
- virtual bool operator==(const Selector_List& rhs) const;
- // Selector Lists can be compared to comma lists
- virtual bool operator==(const Expression& rhs) const;
- virtual void cloneChildren();
- ATTACH_AST_OPERATIONS(Selector_List)
- ATTACH_OPERATIONS()
- };
-
- // compare function for sorting and probably other other uses
- struct cmp_complex_selector { inline bool operator() (const Complex_Selector_Obj l, const Complex_Selector_Obj r) { return (*l < *r); } };
- struct cmp_compound_selector { inline bool operator() (const Compound_Selector_Obj l, const Compound_Selector_Obj r) { return (*l < *r); } };
- struct cmp_simple_selector { inline bool operator() (const Simple_Selector_Obj l, const Simple_Selector_Obj r) { return (*l < *r); } };
-
-}
-
-#ifdef __clang__
-
-#pragma clang diagnostic pop
-
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/ast_def_macros.hpp b/node_modules/node-sass/src/libsass/src/ast_def_macros.hpp
deleted file mode 100644
index b3a7f8d..0000000
--- a/node_modules/node-sass/src/libsass/src/ast_def_macros.hpp
+++ /dev/null
@@ -1,80 +0,0 @@
-#ifndef SASS_AST_DEF_MACROS_H
-#define SASS_AST_DEF_MACROS_H
-
-// Helper class to switch a flag and revert once we go out of scope
-template <class T>
-class LocalOption {
- private:
- T* var; // pointer to original variable
- T orig; // copy of the original option
- public:
- LocalOption(T& var)
- {
- this->var = &var;
- this->orig = var;
- }
- LocalOption(T& var, T orig)
- {
- this->var = &var;
- this->orig = var;
- *(this->var) = orig;
- }
- void reset()
- {
- *(this->var) = this->orig;
- }
- ~LocalOption() {
- *(this->var) = this->orig;
- }
-};
-
-#define LOCAL_FLAG(name,opt) LocalOption<bool> flag_##name(name, opt)
-#define LOCAL_COUNT(name,opt) LocalOption<size_t> cnt_##name(name, opt)
-
-#define NESTING_GUARD(name) \
- LocalOption<size_t> cnt_##name(name, name + 1); \
- if (name > MAX_NESTING) throw Exception::NestingLimitError(pstate, traces); \
-
-#define ATTACH_OPERATIONS()\
-virtual void perform(Operation<void>* op) { (*op)(this); }\
-virtual AST_Node_Ptr perform(Operation<AST_Node_Ptr>* op) { return (*op)(this); }\
-virtual Statement_Ptr perform(Operation<Statement_Ptr>* op) { return (*op)(this); }\
-virtual Expression_Ptr perform(Operation<Expression_Ptr>* op) { return (*op)(this); }\
-virtual Selector_Ptr perform(Operation<Selector_Ptr>* op) { return (*op)(this); }\
-virtual std::string perform(Operation<std::string>* op) { return (*op)(this); }\
-virtual union Sass_Value* perform(Operation<union Sass_Value*>* op) { return (*op)(this); }\
-virtual Value_Ptr perform(Operation<Value_Ptr>* op) { return (*op)(this); }
-
-#define ADD_PROPERTY(type, name)\
-protected:\
- type name##_;\
-public:\
- type name() const { return name##_; }\
- type name(type name##__) { return name##_ = name##__; }\
-private:
-
-#define HASH_PROPERTY(type, name)\
-protected:\
- type name##_;\
-public:\
- type name() const { return name##_; }\
- type name(type name##__) { hash_ = 0; return name##_ = name##__; }\
-private:
-
-#define ADD_CONSTREF(type, name) \
-protected: \
- type name##_; \
-public: \
- const type& name() const { return name##_; } \
- void name(type name##__) { name##_ = name##__; } \
-private:
-
-#define HASH_CONSTREF(type, name) \
-protected: \
- type name##_; \
-public: \
- const type& name() const { return name##_; } \
- void name(type name##__) { hash_ = 0; name##_ = name##__; } \
-private:
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/ast_fwd_decl.cpp b/node_modules/node-sass/src/libsass/src/ast_fwd_decl.cpp
deleted file mode 100644
index c9c7672..0000000
--- a/node_modules/node-sass/src/libsass/src/ast_fwd_decl.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include "ast.hpp"
-
-namespace Sass {
-
- #define IMPLEMENT_BASE_CAST(T) \
- template<> \
- T* Cast(AST_Node* ptr) { \
- return dynamic_cast<T*>(ptr); \
- }; \
- \
- template<> \
- const T* Cast(const AST_Node* ptr) { \
- return dynamic_cast<const T*>(ptr); \
- }; \
-
- IMPLEMENT_BASE_CAST(AST_Node)
- IMPLEMENT_BASE_CAST(Expression)
- IMPLEMENT_BASE_CAST(Statement)
- IMPLEMENT_BASE_CAST(Has_Block)
- IMPLEMENT_BASE_CAST(PreValue)
- IMPLEMENT_BASE_CAST(Value)
- IMPLEMENT_BASE_CAST(List)
- IMPLEMENT_BASE_CAST(String)
- IMPLEMENT_BASE_CAST(String_Constant)
- IMPLEMENT_BASE_CAST(Supports_Condition)
- IMPLEMENT_BASE_CAST(Selector)
- IMPLEMENT_BASE_CAST(Simple_Selector)
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/ast_fwd_decl.hpp b/node_modules/node-sass/src/libsass/src/ast_fwd_decl.hpp
deleted file mode 100644
index 5145a09..0000000
--- a/node_modules/node-sass/src/libsass/src/ast_fwd_decl.hpp
+++ /dev/null
@@ -1,463 +0,0 @@
-#ifndef SASS_AST_FWD_DECL_H
-#define SASS_AST_FWD_DECL_H
-
-#include <map>
-#include <set>
-#include <deque>
-#include <vector>
-#include <typeinfo>
-#include <iostream>
-#include <algorithm>
-#include <unordered_map>
-#include <unordered_set>
-#include "memory/SharedPtr.hpp"
-#include "sass/functions.h"
-
-/////////////////////////////////////////////
-// Forward declarations for the AST visitors.
-/////////////////////////////////////////////
-namespace Sass {
-
- class AST_Node;
- typedef AST_Node* AST_Node_Ptr;
- typedef AST_Node const* AST_Node_Ptr_Const;
-
- class Has_Block;
- typedef Has_Block* Has_Block_Ptr;
- typedef Has_Block const* Has_Block_Ptr_Const;
-
- class Simple_Selector;
- typedef Simple_Selector* Simple_Selector_Ptr;
- typedef Simple_Selector const* Simple_Selector_Ptr_Const;
-
- class PreValue;
- typedef PreValue* PreValue_Ptr;
- typedef PreValue const* PreValue_Ptr_Const;
- class Thunk;
- typedef Thunk* Thunk_Ptr;
- typedef Thunk const* Thunk_Ptr_Const;
- class Block;
- typedef Block* Block_Ptr;
- typedef Block const* Block_Ptr_Const;
- class Expression;
- typedef Expression* Expression_Ptr;
- typedef Expression const* Expression_Ptr_Const;
- class Statement;
- typedef Statement* Statement_Ptr;
- typedef Statement const* Statement_Ptr_Const;
- class Value;
- typedef Value* Value_Ptr;
- typedef Value const* Value_Ptr_Const;
- class Declaration;
- typedef Declaration* Declaration_Ptr;
- typedef Declaration const* Declaration_Ptr_Const;
- class Ruleset;
- typedef Ruleset* Ruleset_Ptr;
- typedef Ruleset const* Ruleset_Ptr_Const;
- class Bubble;
- typedef Bubble* Bubble_Ptr;
- typedef Bubble const* Bubble_Ptr_Const;
- class Trace;
- typedef Trace* Trace_Ptr;
- typedef Trace const* Trace_Ptr_Const;
-
- class Media_Block;
- typedef Media_Block* Media_Block_Ptr;
- typedef Media_Block const* Media_Block_Ptr_Const;
- class Supports_Block;
- typedef Supports_Block* Supports_Block_Ptr;
- typedef Supports_Block const* Supports_Block_Ptr_Const;
- class Directive;
- typedef Directive* Directive_Ptr;
- typedef Directive const* Directive_Ptr_Const;
-
-
- class Keyframe_Rule;
- typedef Keyframe_Rule* Keyframe_Rule_Ptr;
- typedef Keyframe_Rule const* Keyframe_Rule_Ptr_Const;
- class At_Root_Block;
- typedef At_Root_Block* At_Root_Block_Ptr;
- typedef At_Root_Block const* At_Root_Block_Ptr_Const;
- class Assignment;
- typedef Assignment* Assignment_Ptr;
- typedef Assignment const* Assignment_Ptr_Const;
-
- class Import;
- typedef Import* Import_Ptr;
- typedef Import const* Import_Ptr_Const;
- class Import_Stub;
- typedef Import_Stub* Import_Stub_Ptr;
- typedef Import_Stub const* Import_Stub_Ptr_Const;
- class Warning;
- typedef Warning* Warning_Ptr;
- typedef Warning const* Warning_Ptr_Const;
-
- class Error;
- typedef Error* Error_Ptr;
- typedef Error const* Error_Ptr_Const;
- class Debug;
- typedef Debug* Debug_Ptr;
- typedef Debug const* Debug_Ptr_Const;
- class Comment;
- typedef Comment* Comment_Ptr;
- typedef Comment const* Comment_Ptr_Const;
-
- class If;
- typedef If* If_Ptr;
- typedef If const* If_Ptr_Const;
- class For;
- typedef For* For_Ptr;
- typedef For const* For_Ptr_Const;
- class Each;
- typedef Each* Each_Ptr;
- typedef Each const* Each_Ptr_Const;
- class While;
- typedef While* While_Ptr;
- typedef While const* While_Ptr_Const;
- class Return;
- typedef Return* Return_Ptr;
- typedef Return const* Return_Ptr_Const;
- class Content;
- typedef Content* Content_Ptr;
- typedef Content const* Content_Ptr_Const;
- class Extension;
- typedef Extension* Extension_Ptr;
- typedef Extension const* Extension_Ptr_Const;
- class Definition;
- typedef Definition* Definition_Ptr;
- typedef Definition const* Definition_Ptr_Const;
-
- class List;
- typedef List* List_Ptr;
- typedef List const* List_Ptr_Const;
- class Map;
- typedef Map* Map_Ptr;
- typedef Map const* Map_Ptr_Const;
- class Function;
- typedef Function* Function_Ptr;
- typedef Function const* Function_Ptr_Const;
-
- class Mixin_Call;
- typedef Mixin_Call* Mixin_Call_Ptr;
- typedef Mixin_Call const* Mixin_Call_Ptr_Const;
- class Binary_Expression;
- typedef Binary_Expression* Binary_Expression_Ptr;
- typedef Binary_Expression const* Binary_Expression_Ptr_Const;
- class Unary_Expression;
- typedef Unary_Expression* Unary_Expression_Ptr;
- typedef Unary_Expression const* Unary_Expression_Ptr_Const;
- class Function_Call;
- typedef Function_Call* Function_Call_Ptr;
- typedef Function_Call const* Function_Call_Ptr_Const;
- class Function_Call_Schema;
- typedef Function_Call_Schema* Function_Call_Schema_Ptr;
- typedef Function_Call_Schema const* Function_Call_Schema_Ptr_Const;
- class Custom_Warning;
- typedef Custom_Warning* Custom_Warning_Ptr;
- typedef Custom_Warning const* Custom_Warning_Ptr_Const;
- class Custom_Error;
- typedef Custom_Error* Custom_Error_Ptr;
- typedef Custom_Error const* Custom_Error_Ptr_Const;
-
- class Variable;
- typedef Variable* Variable_Ptr;
- typedef Variable const* Variable_Ptr_Const;
- class Number;
- typedef Number* Number_Ptr;
- typedef Number const* Number_Ptr_Const;
- class Color;
- typedef Color* Color_Ptr;
- typedef Color const* Color_Ptr_Const;
- class Boolean;
- typedef Boolean* Boolean_Ptr;
- typedef Boolean const* Boolean_Ptr_Const;
- class String;
- typedef String* String_Ptr;
- typedef String const* String_Ptr_Const;
-
- class String_Schema;
- typedef String_Schema* String_Schema_Ptr;
- typedef String_Schema const* String_Schema_Ptr_Const;
- class String_Constant;
- typedef String_Constant* String_Constant_Ptr;
- typedef String_Constant const* String_Constant_Ptr_Const;
- class String_Quoted;
- typedef String_Quoted* String_Quoted_Ptr;
- typedef String_Quoted const* String_Quoted_Ptr_Const;
-
- class Media_Query;
- typedef Media_Query* Media_Query_Ptr;
- typedef Media_Query const* Media_Query_Ptr_Const;
- class Media_Query_Expression;
- typedef Media_Query_Expression* Media_Query_Expression_Ptr;
- typedef Media_Query_Expression const* Media_Query_Expression_Ptr_Const;
- class Supports_Condition;
- typedef Supports_Condition* Supports_Condition_Ptr;
- typedef Supports_Condition const* Supports_Condition_Ptr_Const;
- class Supports_Operator;
- typedef Supports_Operator* Supports_Operator_Ptr;
- typedef Supports_Operator const* Supports_Operator_Ptr_Const;
- class Supports_Negation;
- typedef Supports_Negation* Supports_Negation_Ptr;
- typedef Supports_Negation const* Supports_Negation_Ptr_Const;
- class Supports_Declaration;
- typedef Supports_Declaration* Supports_Declaration_Ptr;
- typedef Supports_Declaration const* Supports_Declaration_Ptr_Const;
- class Supports_Interpolation;
- typedef Supports_Interpolation* Supports_Interpolation_Ptr;
- typedef Supports_Interpolation const* Supports_Interpolation_Ptr_Const;
-
-
- class Null;
- typedef Null* Null_Ptr;
- typedef Null const* Null_Ptr_Const;
-
- class At_Root_Query;
- typedef At_Root_Query* At_Root_Query_Ptr;
- typedef At_Root_Query const* At_Root_Query_Ptr_Const;
- class Parent_Selector;
- typedef Parent_Selector* Parent_Selector_Ptr;
- typedef Parent_Selector const* Parent_Selector_Ptr_Const;
- class Parameter;
- typedef Parameter* Parameter_Ptr;
- typedef Parameter const* Parameter_Ptr_Const;
- class Parameters;
- typedef Parameters* Parameters_Ptr;
- typedef Parameters const* Parameters_Ptr_Const;
- class Argument;
- typedef Argument* Argument_Ptr;
- typedef Argument const* Argument_Ptr_Const;
- class Arguments;
- typedef Arguments* Arguments_Ptr;
- typedef Arguments const* Arguments_Ptr_Const;
- class Selector;
- typedef Selector* Selector_Ptr;
- typedef Selector const* Selector_Ptr_Const;
-
-
- class Selector_Schema;
- typedef Selector_Schema* Selector_Schema_Ptr;
- typedef Selector_Schema const* Selector_Schema_Ptr_Const;
- class Placeholder_Selector;
- typedef Placeholder_Selector* Placeholder_Selector_Ptr;
- typedef Placeholder_Selector const* Placeholder_Selector_Ptr_Const;
- class Element_Selector;
- typedef Element_Selector* Element_Selector_Ptr;
- typedef Element_Selector const* Element_Selector_Ptr_Const;
- class Class_Selector;
- typedef Class_Selector* Class_Selector_Ptr;
- typedef Class_Selector const* Class_Selector_Ptr_Const;
- class Id_Selector;
- typedef Id_Selector* Id_Selector_Ptr;
- typedef Id_Selector const* Id_Selector_Ptr_Const;
- class Attribute_Selector;
- typedef Attribute_Selector* Attribute_Selector_Ptr;
- typedef Attribute_Selector const* Attribute_Selector_Ptr_Const;
-
- class Pseudo_Selector;
- typedef Pseudo_Selector* Pseudo_Selector_Ptr;
- typedef Pseudo_Selector const * Pseudo_Selector_Ptr_Const;
- class Wrapped_Selector;
- typedef Wrapped_Selector* Wrapped_Selector_Ptr;
- typedef Wrapped_Selector const * Wrapped_Selector_Ptr_Const;
- class Compound_Selector;
- typedef Compound_Selector* Compound_Selector_Ptr;
- typedef Compound_Selector const * Compound_Selector_Ptr_Const;
- class Complex_Selector;
- typedef Complex_Selector* Complex_Selector_Ptr;
- typedef Complex_Selector const * Complex_Selector_Ptr_Const;
- class Selector_List;
- typedef Selector_List* Selector_List_Ptr;
- typedef Selector_List const * Selector_List_Ptr_Const;
-
-
- // common classes
- class Context;
- class Expand;
- class Eval;
-
- // declare classes that are instances of memory nodes
- // #define IMPL_MEM_OBJ(type) using type##_Obj = SharedImpl<type>
- #define IMPL_MEM_OBJ(type) typedef SharedImpl<type> type##_Obj
-
- IMPL_MEM_OBJ(AST_Node);
- IMPL_MEM_OBJ(Statement);
- IMPL_MEM_OBJ(Block);
- IMPL_MEM_OBJ(Ruleset);
- IMPL_MEM_OBJ(Bubble);
- IMPL_MEM_OBJ(Trace);
- IMPL_MEM_OBJ(Media_Block);
- IMPL_MEM_OBJ(Supports_Block);
- IMPL_MEM_OBJ(Directive);
- IMPL_MEM_OBJ(Keyframe_Rule);
- IMPL_MEM_OBJ(At_Root_Block);
- IMPL_MEM_OBJ(Declaration);
- IMPL_MEM_OBJ(Assignment);
- IMPL_MEM_OBJ(Import);
- IMPL_MEM_OBJ(Import_Stub);
- IMPL_MEM_OBJ(Warning);
- IMPL_MEM_OBJ(Error);
- IMPL_MEM_OBJ(Debug);
- IMPL_MEM_OBJ(Comment);
- IMPL_MEM_OBJ(PreValue);
- IMPL_MEM_OBJ(Has_Block);
- IMPL_MEM_OBJ(Thunk);
- IMPL_MEM_OBJ(If);
- IMPL_MEM_OBJ(For);
- IMPL_MEM_OBJ(Each);
- IMPL_MEM_OBJ(While);
- IMPL_MEM_OBJ(Return);
- IMPL_MEM_OBJ(Content);
- IMPL_MEM_OBJ(Extension);
- IMPL_MEM_OBJ(Definition);
- IMPL_MEM_OBJ(Mixin_Call);
- IMPL_MEM_OBJ(Value);
- IMPL_MEM_OBJ(Expression);
- IMPL_MEM_OBJ(List);
- IMPL_MEM_OBJ(Map);
- IMPL_MEM_OBJ(Function);
- IMPL_MEM_OBJ(Binary_Expression);
- IMPL_MEM_OBJ(Unary_Expression);
- IMPL_MEM_OBJ(Function_Call);
- IMPL_MEM_OBJ(Function_Call_Schema);
- IMPL_MEM_OBJ(Custom_Warning);
- IMPL_MEM_OBJ(Custom_Error);
- IMPL_MEM_OBJ(Variable);
- IMPL_MEM_OBJ(Number);
- IMPL_MEM_OBJ(Color);
- IMPL_MEM_OBJ(Boolean);
- IMPL_MEM_OBJ(String_Schema);
- IMPL_MEM_OBJ(String);
- IMPL_MEM_OBJ(String_Constant);
- IMPL_MEM_OBJ(String_Quoted);
- IMPL_MEM_OBJ(Media_Query);
- IMPL_MEM_OBJ(Media_Query_Expression);
- IMPL_MEM_OBJ(Supports_Condition);
- IMPL_MEM_OBJ(Supports_Operator);
- IMPL_MEM_OBJ(Supports_Negation);
- IMPL_MEM_OBJ(Supports_Declaration);
- IMPL_MEM_OBJ(Supports_Interpolation);
- IMPL_MEM_OBJ(At_Root_Query);
- IMPL_MEM_OBJ(Null);
- IMPL_MEM_OBJ(Parent_Selector);
- IMPL_MEM_OBJ(Parameter);
- IMPL_MEM_OBJ(Parameters);
- IMPL_MEM_OBJ(Argument);
- IMPL_MEM_OBJ(Arguments);
- IMPL_MEM_OBJ(Selector);
- IMPL_MEM_OBJ(Selector_Schema);
- IMPL_MEM_OBJ(Simple_Selector);
- IMPL_MEM_OBJ(Placeholder_Selector);
- IMPL_MEM_OBJ(Element_Selector);
- IMPL_MEM_OBJ(Class_Selector);
- IMPL_MEM_OBJ(Id_Selector);
- IMPL_MEM_OBJ(Attribute_Selector);
- IMPL_MEM_OBJ(Pseudo_Selector);
- IMPL_MEM_OBJ(Wrapped_Selector);
- IMPL_MEM_OBJ(Compound_Selector);
- IMPL_MEM_OBJ(Complex_Selector);
- IMPL_MEM_OBJ(Selector_List);
-
- // ###########################################################################
- // Implement compare, order and hashing operations for AST Nodes
- // ###########################################################################
-
- struct HashNodes {
- template <class T>
- size_t operator() (const T& ex) const {
- return ex.isNull() ? 0 : ex->hash();
- }
- };
- struct OrderNodes {
- template <class T>
- bool operator() (const T& lhs, const T& rhs) const {
- return !lhs.isNull() && !rhs.isNull() && *lhs < *rhs;
- }
- };
- struct CompareNodes {
- template <class T>
- bool operator() (const T& lhs, const T& rhs) const {
- // code around sass logic issue. 1px == 1 is true
- // but both items are still different keys in maps
- if (dynamic_cast<Number*>(lhs.ptr()))
- if (dynamic_cast<Number*>(rhs.ptr()))
- return lhs->hash() == rhs->hash();
- return !lhs.isNull() && !rhs.isNull() && *lhs == *rhs;
- }
- };
-
- // ###########################################################################
- // some often used typedefs
- // ###########################################################################
-
- typedef std::unordered_map<
- Expression_Obj, // key
- Expression_Obj, // value
- HashNodes, // hasher
- CompareNodes // compare
- > ExpressionMap;
- typedef std::unordered_set<
- Expression_Obj, // value
- HashNodes, // hasher
- CompareNodes // compare
- > ExpressionSet;
-
- typedef std::string SubSetMapKey;
- typedef std::vector<std::string> SubSetMapKeys;
-
- typedef std::pair<Complex_Selector_Obj, Compound_Selector_Obj> SubSetMapPair;
- typedef std::pair<Compound_Selector_Obj, Complex_Selector_Obj> SubSetMapLookup;
- typedef std::vector<SubSetMapPair> SubSetMapPairs;
- typedef std::vector<SubSetMapLookup> SubSetMapLookups;
-
- typedef std::pair<Complex_Selector_Obj, SubSetMapPairs> SubSetMapResult;
- typedef std::vector<SubSetMapResult> SubSetMapResults;
-
- typedef std::deque<Complex_Selector_Obj> ComplexSelectorDeque;
- typedef std::set<Simple_Selector_Obj, OrderNodes> SimpleSelectorSet;
- typedef std::set<Complex_Selector_Obj, OrderNodes> ComplexSelectorSet;
- typedef std::set<Compound_Selector_Obj, OrderNodes> CompoundSelectorSet;
- typedef std::unordered_set<Simple_Selector_Obj, HashNodes, CompareNodes> SimpleSelectorDict;
-
- typedef std::vector<Sass_Import_Entry>* ImporterStack;
-
- // only to switch implementations for testing
- #define environment_map std::map
-
- // ###########################################################################
- // explicit type conversion functions
- // ###########################################################################
-
- template<class T>
- T* Cast(AST_Node* ptr);
-
- template<class T>
- const T* Cast(const AST_Node* ptr);
-
- // sometimes you know the class you want to cast to is final
- // in this case a simple typeid check is faster and safe to use
-
- #define DECLARE_BASE_CAST(T) \
- template<> T* Cast(AST_Node* ptr); \
- template<> const T* Cast(const AST_Node* ptr); \
-
- // ###########################################################################
- // implement specialization for final classes
- // ###########################################################################
-
- DECLARE_BASE_CAST(AST_Node)
- DECLARE_BASE_CAST(Expression)
- DECLARE_BASE_CAST(Statement)
- DECLARE_BASE_CAST(Has_Block)
- DECLARE_BASE_CAST(PreValue)
- DECLARE_BASE_CAST(Value)
- DECLARE_BASE_CAST(List)
- DECLARE_BASE_CAST(String)
- DECLARE_BASE_CAST(String_Constant)
- DECLARE_BASE_CAST(Supports_Condition)
- DECLARE_BASE_CAST(Selector)
- DECLARE_BASE_CAST(Simple_Selector)
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/b64/cencode.h b/node_modules/node-sass/src/libsass/src/b64/cencode.h
deleted file mode 100644
index 1d71e83..0000000
--- a/node_modules/node-sass/src/libsass/src/b64/cencode.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-cencode.h - c header for a base64 encoding algorithm
-
-This is part of the libb64 project, and has been placed in the public domain.
-For details, see http://sourceforge.net/projects/libb64
-*/
-
-#ifndef BASE64_CENCODE_H
-#define BASE64_CENCODE_H
-
-typedef enum
-{
- step_A, step_B, step_C
-} base64_encodestep;
-
-typedef struct
-{
- base64_encodestep step;
- char result;
- int stepcount;
-} base64_encodestate;
-
-void base64_init_encodestate(base64_encodestate* state_in);
-
-char base64_encode_value(char value_in);
-
-int base64_encode_block(const char* plaintext_in, int length_in, char* code_out, base64_encodestate* state_in);
-
-int base64_encode_blockend(char* code_out, base64_encodestate* state_in);
-
-#endif /* BASE64_CENCODE_H */
-
diff --git a/node_modules/node-sass/src/libsass/src/b64/encode.h b/node_modules/node-sass/src/libsass/src/b64/encode.h
deleted file mode 100644
index 92df8ec..0000000
--- a/node_modules/node-sass/src/libsass/src/b64/encode.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// :mode=c++:
-/*
-encode.h - c++ wrapper for a base64 encoding algorithm
-
-This is part of the libb64 project, and has been placed in the public domain.
-For details, see http://sourceforge.net/projects/libb64
-*/
-#ifndef BASE64_ENCODE_H
-#define BASE64_ENCODE_H
-
-#include <iostream>
-
-namespace base64
-{
- extern "C"
- {
- #include "cencode.h"
- }
-
- struct encoder
- {
- base64_encodestate _state;
- int _buffersize;
-
- encoder(int buffersize_in = BUFFERSIZE)
- : _buffersize(buffersize_in)
- {
- base64_init_encodestate(&_state);
- }
-
- int encode(char value_in)
- {
- return base64_encode_value(value_in);
- }
-
- int encode(const char* code_in, const int length_in, char* plaintext_out)
- {
- return base64_encode_block(code_in, length_in, plaintext_out, &_state);
- }
-
- int encode_end(char* plaintext_out)
- {
- return base64_encode_blockend(plaintext_out, &_state);
- }
-
- void encode(std::istream& istream_in, std::ostream& ostream_in)
- {
- base64_init_encodestate(&_state);
- //
- const int N = _buffersize;
- char* plaintext = new char[N];
- char* code = new char[2*N];
- int plainlength;
- int codelength;
-
- do
- {
- istream_in.read(plaintext, N);
- plainlength = static_cast<int>(istream_in.gcount());
- //
- codelength = encode(plaintext, plainlength, code);
- ostream_in.write(code, codelength);
- }
- while (istream_in.good() && plainlength > 0);
-
- codelength = encode_end(code);
- ostream_in.write(code, codelength);
- //
- base64_init_encodestate(&_state);
-
- delete [] code;
- delete [] plaintext;
- }
- };
-
-} // namespace base64
-
-#endif // BASE64_ENCODE_H
-
diff --git a/node_modules/node-sass/src/libsass/src/backtrace.cpp b/node_modules/node-sass/src/libsass/src/backtrace.cpp
deleted file mode 100644
index 8da963a..0000000
--- a/node_modules/node-sass/src/libsass/src/backtrace.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-#include "backtrace.hpp"
-
-namespace Sass {
-
- const std::string traces_to_string(Backtraces traces, std::string indent) {
-
- std::stringstream ss;
- std::string cwd(File::get_cwd());
-
- bool first = true;
- size_t i_beg = traces.size() - 1;
- size_t i_end = std::string::npos;
- for (size_t i = i_beg; i != i_end; i --) {
-
- const Backtrace& trace = traces[i];
-
- // make path relative to the current directory
- std::string rel_path(File::abs2rel(trace.pstate.path, cwd, cwd));
-
- // skip functions on error cases (unsure why ruby sass does this)
- // if (trace.caller.substr(0, 6) == ", in f") continue;
-
- if (first) {
- ss << indent;
- ss << "on line ";
- ss << trace.pstate.line + 1;
- ss << " of " << rel_path;
- // ss << trace.caller;
- first = false;
- } else {
- ss << trace.caller;
- ss << std::endl;
- ss << indent;
- ss << "from line ";
- ss << trace.pstate.line + 1;
- ss << " of " << rel_path;
- }
-
- }
-
- ss << std::endl;
- return ss.str();
-
- }
-
-};
diff --git a/node_modules/node-sass/src/libsass/src/backtrace.hpp b/node_modules/node-sass/src/libsass/src/backtrace.hpp
deleted file mode 100644
index 72d5fe5..0000000
--- a/node_modules/node-sass/src/libsass/src/backtrace.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef SASS_BACKTRACE_H
-#define SASS_BACKTRACE_H
-
-#include <vector>
-#include <sstream>
-#include "file.hpp"
-#include "position.hpp"
-
-namespace Sass {
-
- struct Backtrace {
-
- ParserState pstate;
- std::string caller;
-
- Backtrace(ParserState pstate, std::string c = "")
- : pstate(pstate),
- caller(c)
- { }
-
- };
-
- typedef std::vector<Backtrace> Backtraces;
-
- const std::string traces_to_string(Backtraces traces, std::string indent = "\t");
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/base64vlq.cpp b/node_modules/node-sass/src/libsass/src/base64vlq.cpp
deleted file mode 100644
index be2fb49..0000000
--- a/node_modules/node-sass/src/libsass/src/base64vlq.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-#include "sass.hpp"
-#include "base64vlq.hpp"
-
-namespace Sass {
-
- std::string Base64VLQ::encode(const int number) const
- {
- std::string encoded = "";
-
- int vlq = to_vlq_signed(number);
-
- do {
- int digit = vlq & VLQ_BASE_MASK;
- vlq >>= VLQ_BASE_SHIFT;
- if (vlq > 0) {
- digit |= VLQ_CONTINUATION_BIT;
- }
- encoded += base64_encode(digit);
- } while (vlq > 0);
-
- return encoded;
- }
-
- char Base64VLQ::base64_encode(const int number) const
- {
- int index = number;
- if (index < 0) index = 0;
- if (index > 63) index = 63;
- return CHARACTERS[index];
- }
-
- int Base64VLQ::to_vlq_signed(const int number) const
- {
- return (number < 0) ? ((-number) << 1) + 1 : (number << 1) + 0;
- }
-
- const char* Base64VLQ::CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
-
- const int Base64VLQ::VLQ_BASE_SHIFT = 5;
- const int Base64VLQ::VLQ_BASE = 1 << VLQ_BASE_SHIFT;
- const int Base64VLQ::VLQ_BASE_MASK = VLQ_BASE - 1;
- const int Base64VLQ::VLQ_CONTINUATION_BIT = VLQ_BASE;
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/base64vlq.hpp b/node_modules/node-sass/src/libsass/src/base64vlq.hpp
deleted file mode 100644
index aca315a..0000000
--- a/node_modules/node-sass/src/libsass/src/base64vlq.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef SASS_BASE64VLQ_H
-#define SASS_BASE64VLQ_H
-
-#include <string>
-
-namespace Sass {
-
- class Base64VLQ {
-
- public:
-
- std::string encode(const int number) const;
-
- private:
-
- char base64_encode(const int number) const;
-
- int to_vlq_signed(const int number) const;
-
- static const char* CHARACTERS;
-
- static const int VLQ_BASE_SHIFT;
- static const int VLQ_BASE;
- static const int VLQ_BASE_MASK;
- static const int VLQ_CONTINUATION_BIT;
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/bind.cpp b/node_modules/node-sass/src/libsass/src/bind.cpp
deleted file mode 100644
index ec20ac8..0000000
--- a/node_modules/node-sass/src/libsass/src/bind.cpp
+++ /dev/null
@@ -1,311 +0,0 @@
-#include "sass.hpp"
-#include "bind.hpp"
-#include "ast.hpp"
-#include "context.hpp"
-#include "expand.hpp"
-#include "eval.hpp"
-#include <map>
-#include <iostream>
-#include <sstream>
-
-namespace Sass {
-
- void bind(std::string type, std::string name, Parameters_Obj ps, Arguments_Obj as, Context* ctx, Env* env, Eval* eval)
- {
- std::string callee(type + " " + name);
-
- std::map<std::string, Parameter_Obj> param_map;
- List_Obj varargs = SASS_MEMORY_NEW(List, as->pstate());
- varargs->is_arglist(true); // enable keyword size handling
-
- for (size_t i = 0, L = as->length(); i < L; ++i) {
- if (auto str = Cast<String_Quoted>((*as)[i]->value())) {
- // force optional quotes (only if needed)
- if (str->quote_mark()) {
- str->quote_mark('*');
- }
- }
- }
-
- // Set up a map to ensure named arguments refer to actual parameters. Also
- // eval each default value left-to-right, wrt env, populating env as we go.
- for (size_t i = 0, L = ps->length(); i < L; ++i) {
- Parameter_Obj p = ps->at(i);
- param_map[p->name()] = p;
- // if (p->default_value()) {
- // env->local_frame()[p->name()] = p->default_value()->perform(eval->with(env));
- // }
- }
-
- // plug in all args; if we have leftover params, deal with it later
- size_t ip = 0, LP = ps->length();
- size_t ia = 0, LA = as->length();
- while (ia < LA) {
- Argument_Obj a = as->at(ia);
- if (ip >= LP) {
- // skip empty rest arguments
- if (a->is_rest_argument()) {
- if (List_Obj l = Cast<List>(a->value())) {
- if (l->length() == 0) {
- ++ ia; continue;
- }
- }
- }
- std::stringstream msg;
- msg << "wrong number of arguments (" << LA << " for " << LP << ")";
- msg << " for `" << name << "'";
- return error(msg.str(), as->pstate(), eval->exp.traces);
- }
- Parameter_Obj p = ps->at(ip);
-
- // If the current parameter is the rest parameter, process and break the loop
- if (p->is_rest_parameter()) {
- // The next argument by coincidence provides a rest argument
- if (a->is_rest_argument()) {
-
- // We should always get a list for rest arguments
- if (List_Obj rest = Cast<List>(a->value())) {
- // create a new list object for wrapped items
- List_Ptr arglist = SASS_MEMORY_NEW(List,
- p->pstate(),
- 0,
- rest->separator(),
- true);
- // wrap each item from list as an argument
- for (Expression_Obj item : rest->elements()) {
- if (Argument_Obj arg = Cast<Argument>(item)) {
- arglist->append(SASS_MEMORY_COPY(arg)); // copy
- } else {
- arglist->append(SASS_MEMORY_NEW(Argument,
- item->pstate(),
- item,
- "",
- false,
- false));
- }
- }
- // assign new arglist to environment
- env->local_frame()[p->name()] = arglist;
- }
- // invalid state
- else {
- throw std::runtime_error("invalid state");
- }
- } else if (a->is_keyword_argument()) {
-
- // expand keyword arguments into their parameters
- List_Ptr arglist = SASS_MEMORY_NEW(List, p->pstate(), 0, SASS_COMMA, true);
- env->local_frame()[p->name()] = arglist;
- Map_Obj argmap = Cast<Map>(a->value());
- for (auto key : argmap->keys()) {
- if (String_Constant_Obj str = Cast<String_Constant>(key)) {
- std::string param = unquote(str->value());
- arglist->append(SASS_MEMORY_NEW(Argument,
- key->pstate(),
- argmap->at(key),
- "$" + param,
- false,
- false));
- } else {
- eval->exp.traces.push_back(Backtrace(key->pstate()));
- throw Exception::InvalidVarKwdType(key->pstate(), eval->exp.traces, key->inspect(), a);
- }
- }
-
- } else {
-
- // create a new list object for wrapped items
- List_Obj arglist = SASS_MEMORY_NEW(List,
- p->pstate(),
- 0,
- SASS_COMMA,
- true);
- // consume the next args
- while (ia < LA) {
- // get and post inc
- a = (*as)[ia++];
- // maybe we have another list as argument
- List_Obj ls = Cast<List>(a->value());
- // skip any list completely if empty
- if (ls && ls->empty() && a->is_rest_argument()) continue;
-
- Expression_Obj value = a->value();
- if (Argument_Obj arg = Cast<Argument>(value)) {
- arglist->append(arg);
- }
- // check if we have rest argument
- else if (a->is_rest_argument()) {
- // preserve the list separator from rest args
- if (List_Obj rest = Cast<List>(a->value())) {
- arglist->separator(rest->separator());
-
- for (size_t i = 0, L = rest->length(); i < L; ++i) {
- Expression_Obj obj = rest->value_at_index(i);
- arglist->append(SASS_MEMORY_NEW(Argument,
- obj->pstate(),
- obj,
- "",
- false,
- false));
- }
- }
- // no more arguments
- break;
- }
- // wrap all other value types into Argument
- else {
- arglist->append(SASS_MEMORY_NEW(Argument,
- a->pstate(),
- a->value(),
- a->name(),
- false,
- false));
- }
- }
- // assign new arglist to environment
- env->local_frame()[p->name()] = arglist;
- }
- // consumed parameter
- ++ip;
- // no more paramaters
- break;
- }
-
- // If the current argument is the rest argument, extract a value for processing
- else if (a->is_rest_argument()) {
- // normal param and rest arg
- List_Obj arglist = Cast<List>(a->value());
- if (!arglist) {
- if (Expression_Obj arg = Cast<Expression>(a->value())) {
- arglist = SASS_MEMORY_NEW(List, a->pstate(), 1);
- arglist->append(arg);
- }
- }
-
- // empty rest arg - treat all args as default values
- if (!arglist || !arglist->length()) {
- break;
- } else {
- if (arglist->length() > LP - ip && !ps->has_rest_parameter()) {
- size_t arg_count = (arglist->length() + LA - 1);
- std::stringstream msg;
- msg << callee << " takes " << LP;
- msg << (LP == 1 ? " argument" : " arguments");
- msg << " but " << arg_count;
- msg << (arg_count == 1 ? " was passed" : " were passed.");
- deprecated_bind(msg.str(), as->pstate());
-
- while (arglist->length() > LP - ip) {
- arglist->elements().erase(arglist->elements().end() - 1);
- }
- }
- }
- // otherwise move one of the rest args into the param, converting to argument if necessary
- Expression_Obj obj = arglist->at(0);
- if (!(a = Cast<Argument>(obj))) {
- Expression_Ptr a_to_convert = obj;
- a = SASS_MEMORY_NEW(Argument,
- a_to_convert->pstate(),
- a_to_convert,
- "",
- false,
- false);
- }
- arglist->elements().erase(arglist->elements().begin());
- if (!arglist->length() || (!arglist->is_arglist() && ip + 1 == LP)) {
- ++ia;
- }
-
- } else if (a->is_keyword_argument()) {
- Map_Obj argmap = Cast<Map>(a->value());
-
- for (auto key : argmap->keys()) {
- String_Constant_Ptr val = Cast<String_Constant>(key);
- if (val == NULL) {
- eval->exp.traces.push_back(Backtrace(key->pstate()));
- throw Exception::InvalidVarKwdType(key->pstate(), eval->exp.traces, key->inspect(), a);
- }
- std::string param = "$" + unquote(val->value());
-
- if (!param_map.count(param)) {
- std::stringstream msg;
- msg << callee << " has no parameter named " << param;
- error(msg.str(), a->pstate(), eval->exp.traces);
- }
- env->local_frame()[param] = argmap->at(key);
- }
- ++ia;
- continue;
- } else {
- ++ia;
- }
-
- if (a->name().empty()) {
- if (env->has_local(p->name())) {
- std::stringstream msg;
- msg << "parameter " << p->name()
- << " provided more than once in call to " << callee;
- error(msg.str(), a->pstate(), eval->exp.traces);
- }
- // ordinal arg -- bind it to the next param
- env->local_frame()[p->name()] = a->value();
- ++ip;
- }
- else {
- // named arg -- bind it to the appropriately named param
- if (!param_map.count(a->name())) {
- if (ps->has_rest_parameter()) {
- varargs->append(a);
- } else {
- std::stringstream msg;
- msg << callee << " has no parameter named " << a->name();
- error(msg.str(), a->pstate(), eval->exp.traces);
- }
- }
- if (param_map[a->name()]) {
- if (param_map[a->name()]->is_rest_parameter()) {
- std::stringstream msg;
- msg << "argument " << a->name() << " of " << callee
- << "cannot be used as named argument";
- error(msg.str(), a->pstate(), eval->exp.traces);
- }
- }
- if (env->has_local(a->name())) {
- std::stringstream msg;
- msg << "parameter " << p->name()
- << "provided more than once in call to " << callee;
- error(msg.str(), a->pstate(), eval->exp.traces);
- }
- env->local_frame()[a->name()] = a->value();
- }
- }
- // EO while ia
-
- // If we make it here, we're out of args but may have leftover params.
- // That's only okay if they have default values, or were already bound by
- // named arguments, or if it's a single rest-param.
- for (size_t i = ip; i < LP; ++i) {
- Parameter_Obj leftover = ps->at(i);
- // cerr << "env for default params:" << endl;
- // env->print();
- // cerr << "********" << endl;
- if (!env->has_local(leftover->name())) {
- if (leftover->is_rest_parameter()) {
- env->local_frame()[leftover->name()] = varargs;
- }
- else if (leftover->default_value()) {
- Expression_Ptr dv = leftover->default_value()->perform(eval);
- env->local_frame()[leftover->name()] = dv;
- }
- else {
- // param is unbound and has no default value -- error
- throw Exception::MissingArgument(as->pstate(), eval->exp.traces, name, leftover->name(), type);
- }
- }
- }
-
- return;
- }
-
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/bind.hpp b/node_modules/node-sass/src/libsass/src/bind.hpp
deleted file mode 100644
index 93a503a..0000000
--- a/node_modules/node-sass/src/libsass/src/bind.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef SASS_BIND_H
-#define SASS_BIND_H
-
-#include <string>
-#include "environment.hpp"
-#include "ast_fwd_decl.hpp"
-
-namespace Sass {
-
- void bind(std::string type, std::string name, Parameters_Obj, Arguments_Obj, Context*, Env*, Eval*);
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/c99func.c b/node_modules/node-sass/src/libsass/src/c99func.c
deleted file mode 100644
index f846eee..0000000
--- a/node_modules/node-sass/src/libsass/src/c99func.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- Copyright (C) 2011 Joseph A. Adams (joeyadams3.14159@gmail.com)
- All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
-*/
-
-#if defined(_MSC_VER) && _MSC_VER < 1900
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-
-static int c99_vsnprintf(char* str, size_t size, const char* format, va_list ap)
-{
- int count = -1;
-
- if (size != 0)
- count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
- if (count == -1)
- count = _vscprintf(format, ap);
-
- return count;
-}
-
-int snprintf(char* str, size_t size, const char* format, ...)
-{
- int count;
- va_list ap;
-
- va_start(ap, format);
- count = c99_vsnprintf(str, size, format, ap);
- va_end(ap);
-
- return count;
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/cencode.c b/node_modules/node-sass/src/libsass/src/cencode.c
deleted file mode 100644
index 9109f4b..0000000
--- a/node_modules/node-sass/src/libsass/src/cencode.c
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
-cencoder.c - c source to a base64 encoding algorithm implementation
-
-This is part of the libb64 project, and has been placed in the public domain.
-For details, see http://sourceforge.net/projects/libb64
-*/
-
-#include "b64/cencode.h"
-
-void base64_init_encodestate(base64_encodestate* state_in)
-{
- state_in->step = step_A;
- state_in->result = 0;
- state_in->stepcount = 0;
-}
-
-char base64_encode_value(char value_in)
-{
- static const char* encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
- if (value_in > 63) return '=';
- return encoding[(int)value_in];
-}
-
-int base64_encode_block(const char* plaintext_in, int length_in, char* code_out, base64_encodestate* state_in)
-{
- const char* plainchar = plaintext_in;
- const char* const plaintextend = plaintext_in + length_in;
- char* codechar = code_out;
- char result;
- char fragment;
-
- result = state_in->result;
-
- switch (state_in->step)
- {
- while (1)
- {
- case step_A:
- if (plainchar == plaintextend)
- {
- state_in->result = result;
- state_in->step = step_A;
- return (int)(codechar - code_out);
- }
- fragment = *plainchar++;
- result = (fragment & 0x0fc) >> 2;
- *codechar++ = base64_encode_value(result);
- result = (fragment & 0x003) << 4;
- #ifndef _MSC_VER
- /* fall through */
- #endif
- case step_B:
- if (plainchar == plaintextend)
- {
- state_in->result = result;
- state_in->step = step_B;
- return (int)(codechar - code_out);
- }
- fragment = *plainchar++;
- result |= (fragment & 0x0f0) >> 4;
- *codechar++ = base64_encode_value(result);
- result = (fragment & 0x00f) << 2;
- #ifndef _MSC_VER
- /* fall through */
- #endif
- case step_C:
- if (plainchar == plaintextend)
- {
- state_in->result = result;
- state_in->step = step_C;
- return (int)(codechar - code_out);
- }
- fragment = *plainchar++;
- result |= (fragment & 0x0c0) >> 6;
- *codechar++ = base64_encode_value(result);
- result = (fragment & 0x03f) >> 0;
- *codechar++ = base64_encode_value(result);
-
- ++(state_in->stepcount);
- }
- }
- /* control should not reach here */
- return (int)(codechar - code_out);
-}
-
-int base64_encode_blockend(char* code_out, base64_encodestate* state_in)
-{
- char* codechar = code_out;
-
- switch (state_in->step)
- {
- case step_B:
- *codechar++ = base64_encode_value(state_in->result);
- *codechar++ = '=';
- *codechar++ = '=';
- break;
- case step_C:
- *codechar++ = base64_encode_value(state_in->result);
- *codechar++ = '=';
- break;
- case step_A:
- break;
- }
- *codechar++ = '\n';
-
- return (int)(codechar - code_out);
-}
-
diff --git a/node_modules/node-sass/src/libsass/src/check_nesting.cpp b/node_modules/node-sass/src/libsass/src/check_nesting.cpp
deleted file mode 100644
index 880bcca..0000000
--- a/node_modules/node-sass/src/libsass/src/check_nesting.cpp
+++ /dev/null
@@ -1,398 +0,0 @@
-#include "sass.hpp"
-#include <vector>
-
-#include "check_nesting.hpp"
-
-namespace Sass {
-
- CheckNesting::CheckNesting()
- : parents(std::vector<Statement_Ptr>()),
- traces(std::vector<Backtrace>()),
- parent(0), current_mixin_definition(0)
- { }
-
- void error(AST_Node_Ptr node, Backtraces traces, std::string msg) {
- traces.push_back(Backtrace(node->pstate()));
- throw Exception::InvalidSass(node->pstate(), traces, msg);
- }
-
- Statement_Ptr CheckNesting::visit_children(Statement_Ptr parent)
- {
- Statement_Ptr old_parent = this->parent;
-
- if (At_Root_Block_Ptr root = Cast<At_Root_Block>(parent)) {
- std::vector<Statement_Ptr> old_parents = this->parents;
- std::vector<Statement_Ptr> new_parents;
-
- for (size_t i = 0, L = this->parents.size(); i < L; i++) {
- Statement_Ptr p = this->parents.at(i);
- if (!root->exclude_node(p)) {
- new_parents.push_back(p);
- }
- }
- this->parents = new_parents;
-
- for (size_t i = this->parents.size(); i > 0; i--) {
- Statement_Ptr p = 0;
- Statement_Ptr gp = 0;
- if (i > 0) p = this->parents.at(i - 1);
- if (i > 1) gp = this->parents.at(i - 2);
-
- if (!this->is_transparent_parent(p, gp)) {
- this->parent = p;
- break;
- }
- }
-
- At_Root_Block_Ptr ar = Cast<At_Root_Block>(parent);
- Block_Ptr ret = ar->block();
-
- if (ret != NULL) {
- for (auto n : ret->elements()) {
- n->perform(this);
- }
- }
-
- this->parent = old_parent;
- this->parents = old_parents;
-
- return ret;
- }
-
- if (!this->is_transparent_parent(parent, old_parent)) {
- this->parent = parent;
- }
-
- this->parents.push_back(parent);
-
- Block_Ptr b = Cast<Block>(parent);
-
- if (Trace_Ptr trace = Cast<Trace>(parent)) {
- if (trace->type() == 'i') {
- this->traces.push_back(Backtrace(trace->pstate()));
- }
- }
-
- if (!b) {
- if (Has_Block_Ptr bb = Cast<Has_Block>(parent)) {
- b = bb->block();
- }
- }
-
- if (b) {
- for (auto n : b->elements()) {
- n->perform(this);
- }
- }
-
- this->parent = old_parent;
- this->parents.pop_back();
-
- if (Trace_Ptr trace = Cast<Trace>(parent)) {
- if (trace->type() == 'i') {
- this->traces.pop_back();
- }
- }
-
- return b;
- }
-
-
- Statement_Ptr CheckNesting::operator()(Block_Ptr b)
- {
- return this->visit_children(b);
- }
-
- Statement_Ptr CheckNesting::operator()(Definition_Ptr n)
- {
- if (!this->should_visit(n)) return NULL;
- if (!is_mixin(n)) {
- visit_children(n);
- return n;
- }
-
- Definition_Ptr old_mixin_definition = this->current_mixin_definition;
- this->current_mixin_definition = n;
-
- visit_children(n);
-
- this->current_mixin_definition = old_mixin_definition;
-
- return n;
- }
-
- Statement_Ptr CheckNesting::operator()(If_Ptr i)
- {
- this->visit_children(i);
-
- if (Block_Ptr b = Cast<Block>(i->alternative())) {
- for (auto n : b->elements()) n->perform(this);
- }
-
- return i;
- }
-
- Statement_Ptr CheckNesting::fallback_impl(Statement_Ptr s)
- {
- Block_Ptr b1 = Cast<Block>(s);
- Has_Block_Ptr b2 = Cast<Has_Block>(s);
- return b1 || b2 ? visit_children(s) : s;
- }
-
- bool CheckNesting::should_visit(Statement_Ptr node)
- {
- if (!this->parent) return true;
-
- if (Cast<Content>(node))
- { this->invalid_content_parent(this->parent, node); }
-
- if (is_charset(node))
- { this->invalid_charset_parent(this->parent, node); }
-
- if (Cast<Extension>(node))
- { this->invalid_extend_parent(this->parent, node); }
-
- // if (Cast<Import>(node))
- // { this->invalid_import_parent(this->parent); }
-
- if (this->is_mixin(node))
- { this->invalid_mixin_definition_parent(this->parent, node); }
-
- if (this->is_function(node))
- { this->invalid_function_parent(this->parent, node); }
-
- if (this->is_function(this->parent))
- { this->invalid_function_child(node); }
-
- if (Declaration_Ptr d = Cast<Declaration>(node))
- {
- this->invalid_prop_parent(this->parent, node);
- this->invalid_value_child(d->value());
- }
-
- if (Cast<Declaration>(this->parent))
- { this->invalid_prop_child(node); }
-
- if (Cast<Return>(node))
- { this->invalid_return_parent(this->parent, node); }
-
- return true;
- }
-
- void CheckNesting::invalid_content_parent(Statement_Ptr parent, AST_Node_Ptr node)
- {
- if (!this->current_mixin_definition) {
- error(node, traces, "@content may only be used within a mixin.");
- }
- }
-
- void CheckNesting::invalid_charset_parent(Statement_Ptr parent, AST_Node_Ptr node)
- {
- if (!(
- is_root_node(parent)
- )) {
- error(node, traces, "@charset may only be used at the root of a document.");
- }
- }
-
- void CheckNesting::invalid_extend_parent(Statement_Ptr parent, AST_Node_Ptr node)
- {
- if (!(
- Cast<Ruleset>(parent) ||
- Cast<Mixin_Call>(parent) ||
- is_mixin(parent)
- )) {
- error(node, traces, "Extend directives may only be used within rules.");
- }
- }
-
- // void CheckNesting::invalid_import_parent(Statement_Ptr parent, AST_Node_Ptr node)
- // {
- // for (auto pp : this->parents) {
- // if (
- // Cast<Each>(pp) ||
- // Cast<For>(pp) ||
- // Cast<If>(pp) ||
- // Cast<While>(pp) ||
- // Cast<Trace>(pp) ||
- // Cast<Mixin_Call>(pp) ||
- // is_mixin(pp)
- // ) {
- // error(node, traces, "Import directives may not be defined within control directives or other mixins.");
- // }
- // }
-
- // if (this->is_root_node(parent)) {
- // return;
- // }
-
- // if (false/*n.css_import?*/) {
- // error(node, traces, "CSS import directives may only be used at the root of a document.");
- // }
- // }
-
- void CheckNesting::invalid_mixin_definition_parent(Statement_Ptr parent, AST_Node_Ptr node)
- {
- for (Statement_Ptr pp : this->parents) {
- if (
- Cast<Each>(pp) ||
- Cast<For>(pp) ||
- Cast<If>(pp) ||
- Cast<While>(pp) ||
- Cast<Trace>(pp) ||
- Cast<Mixin_Call>(pp) ||
- is_mixin(pp)
- ) {
- error(node, traces, "Mixins may not be defined within control directives or other mixins.");
- }
- }
- }
-
- void CheckNesting::invalid_function_parent(Statement_Ptr parent, AST_Node_Ptr node)
- {
- for (Statement_Ptr pp : this->parents) {
- if (
- Cast<Each>(pp) ||
- Cast<For>(pp) ||
- Cast<If>(pp) ||
- Cast<While>(pp) ||
- Cast<Trace>(pp) ||
- Cast<Mixin_Call>(pp) ||
- is_mixin(pp)
- ) {
- error(node, traces, "Functions may not be defined within control directives or other mixins.");
- }
- }
- }
-
- void CheckNesting::invalid_function_child(Statement_Ptr child)
- {
- if (!(
- Cast<Each>(child) ||
- Cast<For>(child) ||
- Cast<If>(child) ||
- Cast<While>(child) ||
- Cast<Trace>(child) ||
- Cast<Comment>(child) ||
- Cast<Debug>(child) ||
- Cast<Return>(child) ||
- Cast<Variable>(child) ||
- // Ruby Sass doesn't distinguish variables and assignments
- Cast<Assignment>(child) ||
- Cast<Warning>(child) ||
- Cast<Error>(child)
- )) {
- error(child, traces, "Functions can only contain variable declarations and control directives.");
- }
- }
-
- void CheckNesting::invalid_prop_child(Statement_Ptr child)
- {
- if (!(
- Cast<Each>(child) ||
- Cast<For>(child) ||
- Cast<If>(child) ||
- Cast<While>(child) ||
- Cast<Trace>(child) ||
- Cast<Comment>(child) ||
- Cast<Declaration>(child) ||
- Cast<Mixin_Call>(child)
- )) {
- error(child, traces, "Illegal nesting: Only properties may be nested beneath properties.");
- }
- }
-
- void CheckNesting::invalid_prop_parent(Statement_Ptr parent, AST_Node_Ptr node)
- {
- if (!(
- is_mixin(parent) ||
- is_directive_node(parent) ||
- Cast<Ruleset>(parent) ||
- Cast<Keyframe_Rule>(parent) ||
- Cast<Declaration>(parent) ||
- Cast<Mixin_Call>(parent)
- )) {
- error(node, traces, "Properties are only allowed within rules, directives, mixin includes, or other properties.");
- }
- }
-
- void CheckNesting::invalid_value_child(AST_Node_Ptr d)
- {
- if (Map_Ptr m = Cast<Map>(d)) {
- traces.push_back(Backtrace(m->pstate()));
- throw Exception::InvalidValue(traces, *m);
- }
- if (Number_Ptr n = Cast<Number>(d)) {
- if (!n->is_valid_css_unit()) {
- traces.push_back(Backtrace(n->pstate()));
- throw Exception::InvalidValue(traces, *n);
- }
- }
-
- // error(dbg + " isn't a valid CSS value.", m->pstate(),);
-
- }
-
- void CheckNesting::invalid_return_parent(Statement_Ptr parent, AST_Node_Ptr node)
- {
- if (!this->is_function(parent)) {
- error(node, traces, "@return may only be used within a function.");
- }
- }
-
- bool CheckNesting::is_transparent_parent(Statement_Ptr parent, Statement_Ptr grandparent)
- {
- bool parent_bubbles = parent && parent->bubbles();
-
- bool valid_bubble_node = parent_bubbles &&
- !is_root_node(grandparent) &&
- !is_at_root_node(grandparent);
-
- return Cast<Import>(parent) ||
- Cast<Each>(parent) ||
- Cast<For>(parent) ||
- Cast<If>(parent) ||
- Cast<While>(parent) ||
- Cast<Trace>(parent) ||
- valid_bubble_node;
- }
-
- bool CheckNesting::is_charset(Statement_Ptr n)
- {
- Directive_Ptr d = Cast<Directive>(n);
- return d && d->keyword() == "charset";
- }
-
- bool CheckNesting::is_mixin(Statement_Ptr n)
- {
- Definition_Ptr def = Cast<Definition>(n);
- return def && def->type() == Definition::MIXIN;
- }
-
- bool CheckNesting::is_function(Statement_Ptr n)
- {
- Definition_Ptr def = Cast<Definition>(n);
- return def && def->type() == Definition::FUNCTION;
- }
-
- bool CheckNesting::is_root_node(Statement_Ptr n)
- {
- if (Cast<Ruleset>(n)) return false;
-
- Block_Ptr b = Cast<Block>(n);
- return b && b->is_root();
- }
-
- bool CheckNesting::is_at_root_node(Statement_Ptr n)
- {
- return Cast<At_Root_Block>(n) != NULL;
- }
-
- bool CheckNesting::is_directive_node(Statement_Ptr n)
- {
- return Cast<Directive>(n) ||
- Cast<Import>(n) ||
- Cast<Media_Block>(n) ||
- Cast<Supports_Block>(n);
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/check_nesting.hpp b/node_modules/node-sass/src/libsass/src/check_nesting.hpp
deleted file mode 100644
index 62c38d9..0000000
--- a/node_modules/node-sass/src/libsass/src/check_nesting.hpp
+++ /dev/null
@@ -1,65 +0,0 @@
-#ifndef SASS_CHECK_NESTING_H
-#define SASS_CHECK_NESTING_H
-
-#include "ast.hpp"
-#include "operation.hpp"
-
-namespace Sass {
-
- class CheckNesting : public Operation_CRTP<Statement_Ptr, CheckNesting> {
-
- std::vector<Statement_Ptr> parents;
- Backtraces traces;
- Statement_Ptr parent;
- Definition_Ptr current_mixin_definition;
-
- Statement_Ptr fallback_impl(Statement_Ptr);
- Statement_Ptr before(Statement_Ptr);
- Statement_Ptr visit_children(Statement_Ptr);
-
- public:
- CheckNesting();
- ~CheckNesting() { }
-
- Statement_Ptr operator()(Block_Ptr);
- Statement_Ptr operator()(Definition_Ptr);
- Statement_Ptr operator()(If_Ptr);
-
- template <typename U>
- Statement_Ptr fallback(U x) {
- Statement_Ptr n = Cast<Statement>(x);
- if (this->should_visit(n)) {
- return fallback_impl(n);
- }
- return NULL;
- }
-
- private:
- void invalid_content_parent(Statement_Ptr, AST_Node_Ptr);
- void invalid_charset_parent(Statement_Ptr, AST_Node_Ptr);
- void invalid_extend_parent(Statement_Ptr, AST_Node_Ptr);
- // void invalid_import_parent(Statement_Ptr);
- void invalid_mixin_definition_parent(Statement_Ptr, AST_Node_Ptr);
- void invalid_function_parent(Statement_Ptr, AST_Node_Ptr);
-
- void invalid_function_child(Statement_Ptr);
- void invalid_prop_child(Statement_Ptr);
- void invalid_prop_parent(Statement_Ptr, AST_Node_Ptr);
- void invalid_return_parent(Statement_Ptr, AST_Node_Ptr);
- void invalid_value_child(AST_Node_Ptr);
-
- bool is_transparent_parent(Statement_Ptr, Statement_Ptr);
-
- bool should_visit(Statement_Ptr);
-
- bool is_charset(Statement_Ptr);
- bool is_mixin(Statement_Ptr);
- bool is_function(Statement_Ptr);
- bool is_root_node(Statement_Ptr);
- bool is_at_root_node(Statement_Ptr);
- bool is_directive_node(Statement_Ptr);
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/color_maps.cpp b/node_modules/node-sass/src/libsass/src/color_maps.cpp
deleted file mode 100644
index 129e47c..0000000
--- a/node_modules/node-sass/src/libsass/src/color_maps.cpp
+++ /dev/null
@@ -1,648 +0,0 @@
-#include "sass.hpp"
-#include "ast.hpp"
-#include "color_maps.hpp"
-
-namespace Sass {
-
- namespace ColorNames
- {
- const char aliceblue [] = "aliceblue";
- const char antiquewhite [] = "antiquewhite";
- const char cyan [] = "cyan";
- const char aqua [] = "aqua";
- const char aquamarine [] = "aquamarine";
- const char azure [] = "azure";
- const char beige [] = "beige";
- const char bisque [] = "bisque";
- const char black [] = "black";
- const char blanchedalmond [] = "blanchedalmond";
- const char blue [] = "blue";
- const char blueviolet [] = "blueviolet";
- const char brown [] = "brown";
- const char burlywood [] = "burlywood";
- const char cadetblue [] = "cadetblue";
- const char chartreuse [] = "chartreuse";
- const char chocolate [] = "chocolate";
- const char coral [] = "coral";
- const char cornflowerblue [] = "cornflowerblue";
- const char cornsilk [] = "cornsilk";
- const char crimson [] = "crimson";
- const char darkblue [] = "darkblue";
- const char darkcyan [] = "darkcyan";
- const char darkgoldenrod [] = "darkgoldenrod";
- const char darkgray [] = "darkgray";
- const char darkgrey [] = "darkgrey";
- const char darkgreen [] = "darkgreen";
- const char darkkhaki [] = "darkkhaki";
- const char darkmagenta [] = "darkmagenta";
- const char darkolivegreen [] = "darkolivegreen";
- const char darkorange [] = "darkorange";
- const char darkorchid [] = "darkorchid";
- const char darkred [] = "darkred";
- const char darksalmon [] = "darksalmon";
- const char darkseagreen [] = "darkseagreen";
- const char darkslateblue [] = "darkslateblue";
- const char darkslategray [] = "darkslategray";
- const char darkslategrey [] = "darkslategrey";
- const char darkturquoise [] = "darkturquoise";
- const char darkviolet [] = "darkviolet";
- const char deeppink [] = "deeppink";
- const char deepskyblue [] = "deepskyblue";
- const char dimgray [] = "dimgray";
- const char dimgrey [] = "dimgrey";
- const char dodgerblue [] = "dodgerblue";
- const char firebrick [] = "firebrick";
- const char floralwhite [] = "floralwhite";
- const char forestgreen [] = "forestgreen";
- const char magenta [] = "magenta";
- const char fuchsia [] = "fuchsia";
- const char gainsboro [] = "gainsboro";
- const char ghostwhite [] = "ghostwhite";
- const char gold [] = "gold";
- const char goldenrod [] = "goldenrod";
- const char gray [] = "gray";
- const char grey [] = "grey";
- const char green [] = "green";
- const char greenyellow [] = "greenyellow";
- const char honeydew [] = "honeydew";
- const char hotpink [] = "hotpink";
- const char indianred [] = "indianred";
- const char indigo [] = "indigo";
- const char ivory [] = "ivory";
- const char khaki [] = "khaki";
- const char lavender [] = "lavender";
- const char lavenderblush [] = "lavenderblush";
- const char lawngreen [] = "lawngreen";
- const char lemonchiffon [] = "lemonchiffon";
- const char lightblue [] = "lightblue";
- const char lightcoral [] = "lightcoral";
- const char lightcyan [] = "lightcyan";
- const char lightgoldenrodyellow [] = "lightgoldenrodyellow";
- const char lightgray [] = "lightgray";
- const char lightgrey [] = "lightgrey";
- const char lightgreen [] = "lightgreen";
- const char lightpink [] = "lightpink";
- const char lightsalmon [] = "lightsalmon";
- const char lightseagreen [] = "lightseagreen";
- const char lightskyblue [] = "lightskyblue";
- const char lightslategray [] = "lightslategray";
- const char lightslategrey [] = "lightslategrey";
- const char lightsteelblue [] = "lightsteelblue";
- const char lightyellow [] = "lightyellow";
- const char lime [] = "lime";
- const char limegreen [] = "limegreen";
- const char linen [] = "linen";
- const char maroon [] = "maroon";
- const char mediumaquamarine [] = "mediumaquamarine";
- const char mediumblue [] = "mediumblue";
- const char mediumorchid [] = "mediumorchid";
- const char mediumpurple [] = "mediumpurple";
- const char mediumseagreen [] = "mediumseagreen";
- const char mediumslateblue [] = "mediumslateblue";
- const char mediumspringgreen [] = "mediumspringgreen";
- const char mediumturquoise [] = "mediumturquoise";
- const char mediumvioletred [] = "mediumvioletred";
- const char midnightblue [] = "midnightblue";
- const char mintcream [] = "mintcream";
- const char mistyrose [] = "mistyrose";
- const char moccasin [] = "moccasin";
- const char navajowhite [] = "navajowhite";
- const char navy [] = "navy";
- const char oldlace [] = "oldlace";
- const char olive [] = "olive";
- const char olivedrab [] = "olivedrab";
- const char orange [] = "orange";
- const char orangered [] = "orangered";
- const char orchid [] = "orchid";
- const char palegoldenrod [] = "palegoldenrod";
- const char palegreen [] = "palegreen";
- const char paleturquoise [] = "paleturquoise";
- const char palevioletred [] = "palevioletred";
- const char papayawhip [] = "papayawhip";
- const char peachpuff [] = "peachpuff";
- const char peru [] = "peru";
- const char pink [] = "pink";
- const char plum [] = "plum";
- const char powderblue [] = "powderblue";
- const char purple [] = "purple";
- const char red [] = "red";
- const char rosybrown [] = "rosybrown";
- const char royalblue [] = "royalblue";
- const char saddlebrown [] = "saddlebrown";
- const char salmon [] = "salmon";
- const char sandybrown [] = "sandybrown";
- const char seagreen [] = "seagreen";
- const char seashell [] = "seashell";
- const char sienna [] = "sienna";
- const char silver [] = "silver";
- const char skyblue [] = "skyblue";
- const char slateblue [] = "slateblue";
- const char slategray [] = "slategray";
- const char slategrey [] = "slategrey";
- const char snow [] = "snow";
- const char springgreen [] = "springgreen";
- const char steelblue [] = "steelblue";
- const char tan [] = "tan";
- const char teal [] = "teal";
- const char thistle [] = "thistle";
- const char tomato [] = "tomato";
- const char turquoise [] = "turquoise";
- const char violet [] = "violet";
- const char wheat [] = "wheat";
- const char white [] = "white";
- const char whitesmoke [] = "whitesmoke";
- const char yellow [] = "yellow";
- const char yellowgreen [] = "yellowgreen";
- const char rebeccapurple [] = "rebeccapurple";
- const char transparent [] = "transparent";
- }
-
- namespace Colors {
- const ParserState color_table("[COLOR TABLE]");
- const Color aliceblue(color_table, 240, 248, 255, 1);
- const Color antiquewhite(color_table, 250, 235, 215, 1);
- const Color cyan(color_table, 0, 255, 255, 1);
- const Color aqua(color_table, 0, 255, 255, 1);
- const Color aquamarine(color_table, 127, 255, 212, 1);
- const Color azure(color_table, 240, 255, 255, 1);
- const Color beige(color_table, 245, 245, 220, 1);
- const Color bisque(color_table, 255, 228, 196, 1);
- const Color black(color_table, 0, 0, 0, 1);
- const Color blanchedalmond(color_table, 255, 235, 205, 1);
- const Color blue(color_table, 0, 0, 255, 1);
- const Color blueviolet(color_table, 138, 43, 226, 1);
- const Color brown(color_table, 165, 42, 42, 1);
- const Color burlywood(color_table, 222, 184, 135, 1);
- const Color cadetblue(color_table, 95, 158, 160, 1);
- const Color chartreuse(color_table, 127, 255, 0, 1);
- const Color chocolate(color_table, 210, 105, 30, 1);
- const Color coral(color_table, 255, 127, 80, 1);
- const Color cornflowerblue(color_table, 100, 149, 237, 1);
- const Color cornsilk(color_table, 255, 248, 220, 1);
- const Color crimson(color_table, 220, 20, 60, 1);
- const Color darkblue(color_table, 0, 0, 139, 1);
- const Color darkcyan(color_table, 0, 139, 139, 1);
- const Color darkgoldenrod(color_table, 184, 134, 11, 1);
- const Color darkgray(color_table, 169, 169, 169, 1);
- const Color darkgrey(color_table, 169, 169, 169, 1);
- const Color darkgreen(color_table, 0, 100, 0, 1);
- const Color darkkhaki(color_table, 189, 183, 107, 1);
- const Color darkmagenta(color_table, 139, 0, 139, 1);
- const Color darkolivegreen(color_table, 85, 107, 47, 1);
- const Color darkorange(color_table, 255, 140, 0, 1);
- const Color darkorchid(color_table, 153, 50, 204, 1);
- const Color darkred(color_table, 139, 0, 0, 1);
- const Color darksalmon(color_table, 233, 150, 122, 1);
- const Color darkseagreen(color_table, 143, 188, 143, 1);
- const Color darkslateblue(color_table, 72, 61, 139, 1);
- const Color darkslategray(color_table, 47, 79, 79, 1);
- const Color darkslategrey(color_table, 47, 79, 79, 1);
- const Color darkturquoise(color_table, 0, 206, 209, 1);
- const Color darkviolet(color_table, 148, 0, 211, 1);
- const Color deeppink(color_table, 255, 20, 147, 1);
- const Color deepskyblue(color_table, 0, 191, 255, 1);
- const Color dimgray(color_table, 105, 105, 105, 1);
- const Color dimgrey(color_table, 105, 105, 105, 1);
- const Color dodgerblue(color_table, 30, 144, 255, 1);
- const Color firebrick(color_table, 178, 34, 34, 1);
- const Color floralwhite(color_table, 255, 250, 240, 1);
- const Color forestgreen(color_table, 34, 139, 34, 1);
- const Color magenta(color_table, 255, 0, 255, 1);
- const Color fuchsia(color_table, 255, 0, 255, 1);
- const Color gainsboro(color_table, 220, 220, 220, 1);
- const Color ghostwhite(color_table, 248, 248, 255, 1);
- const Color gold(color_table, 255, 215, 0, 1);
- const Color goldenrod(color_table, 218, 165, 32, 1);
- const Color gray(color_table, 128, 128, 128, 1);
- const Color grey(color_table, 128, 128, 128, 1);
- const Color green(color_table, 0, 128, 0, 1);
- const Color greenyellow(color_table, 173, 255, 47, 1);
- const Color honeydew(color_table, 240, 255, 240, 1);
- const Color hotpink(color_table, 255, 105, 180, 1);
- const Color indianred(color_table, 205, 92, 92, 1);
- const Color indigo(color_table, 75, 0, 130, 1);
- const Color ivory(color_table, 255, 255, 240, 1);
- const Color khaki(color_table, 240, 230, 140, 1);
- const Color lavender(color_table, 230, 230, 250, 1);
- const Color lavenderblush(color_table, 255, 240, 245, 1);
- const Color lawngreen(color_table, 124, 252, 0, 1);
- const Color lemonchiffon(color_table, 255, 250, 205, 1);
- const Color lightblue(color_table, 173, 216, 230, 1);
- const Color lightcoral(color_table, 240, 128, 128, 1);
- const Color lightcyan(color_table, 224, 255, 255, 1);
- const Color lightgoldenrodyellow(color_table, 250, 250, 210, 1);
- const Color lightgray(color_table, 211, 211, 211, 1);
- const Color lightgrey(color_table, 211, 211, 211, 1);
- const Color lightgreen(color_table, 144, 238, 144, 1);
- const Color lightpink(color_table, 255, 182, 193, 1);
- const Color lightsalmon(color_table, 255, 160, 122, 1);
- const Color lightseagreen(color_table, 32, 178, 170, 1);
- const Color lightskyblue(color_table, 135, 206, 250, 1);
- const Color lightslategray(color_table, 119, 136, 153, 1);
- const Color lightslategrey(color_table, 119, 136, 153, 1);
- const Color lightsteelblue(color_table, 176, 196, 222, 1);
- const Color lightyellow(color_table, 255, 255, 224, 1);
- const Color lime(color_table, 0, 255, 0, 1);
- const Color limegreen(color_table, 50, 205, 50, 1);
- const Color linen(color_table, 250, 240, 230, 1);
- const Color maroon(color_table, 128, 0, 0, 1);
- const Color mediumaquamarine(color_table, 102, 205, 170, 1);
- const Color mediumblue(color_table, 0, 0, 205, 1);
- const Color mediumorchid(color_table, 186, 85, 211, 1);
- const Color mediumpurple(color_table, 147, 112, 219, 1);
- const Color mediumseagreen(color_table, 60, 179, 113, 1);
- const Color mediumslateblue(color_table, 123, 104, 238, 1);
- const Color mediumspringgreen(color_table, 0, 250, 154, 1);
- const Color mediumturquoise(color_table, 72, 209, 204, 1);
- const Color mediumvioletred(color_table, 199, 21, 133, 1);
- const Color midnightblue(color_table, 25, 25, 112, 1);
- const Color mintcream(color_table, 245, 255, 250, 1);
- const Color mistyrose(color_table, 255, 228, 225, 1);
- const Color moccasin(color_table, 255, 228, 181, 1);
- const Color navajowhite(color_table, 255, 222, 173, 1);
- const Color navy(color_table, 0, 0, 128, 1);
- const Color oldlace(color_table, 253, 245, 230, 1);
- const Color olive(color_table, 128, 128, 0, 1);
- const Color olivedrab(color_table, 107, 142, 35, 1);
- const Color orange(color_table, 255, 165, 0, 1);
- const Color orangered(color_table, 255, 69, 0, 1);
- const Color orchid(color_table, 218, 112, 214, 1);
- const Color palegoldenrod(color_table, 238, 232, 170, 1);
- const Color palegreen(color_table, 152, 251, 152, 1);
- const Color paleturquoise(color_table, 175, 238, 238, 1);
- const Color palevioletred(color_table, 219, 112, 147, 1);
- const Color papayawhip(color_table, 255, 239, 213, 1);
- const Color peachpuff(color_table, 255, 218, 185, 1);
- const Color peru(color_table, 205, 133, 63, 1);
- const Color pink(color_table, 255, 192, 203, 1);
- const Color plum(color_table, 221, 160, 221, 1);
- const Color powderblue(color_table, 176, 224, 230, 1);
- const Color purple(color_table, 128, 0, 128, 1);
- const Color red(color_table, 255, 0, 0, 1);
- const Color rosybrown(color_table, 188, 143, 143, 1);
- const Color royalblue(color_table, 65, 105, 225, 1);
- const Color saddlebrown(color_table, 139, 69, 19, 1);
- const Color salmon(color_table, 250, 128, 114, 1);
- const Color sandybrown(color_table, 244, 164, 96, 1);
- const Color seagreen(color_table, 46, 139, 87, 1);
- const Color seashell(color_table, 255, 245, 238, 1);
- const Color sienna(color_table, 160, 82, 45, 1);
- const Color silver(color_table, 192, 192, 192, 1);
- const Color skyblue(color_table, 135, 206, 235, 1);
- const Color slateblue(color_table, 106, 90, 205, 1);
- const Color slategray(color_table, 112, 128, 144, 1);
- const Color slategrey(color_table, 112, 128, 144, 1);
- const Color snow(color_table, 255, 250, 250, 1);
- const Color springgreen(color_table, 0, 255, 127, 1);
- const Color steelblue(color_table, 70, 130, 180, 1);
- const Color tan(color_table, 210, 180, 140, 1);
- const Color teal(color_table, 0, 128, 128, 1);
- const Color thistle(color_table, 216, 191, 216, 1);
- const Color tomato(color_table, 255, 99, 71, 1);
- const Color turquoise(color_table, 64, 224, 208, 1);
- const Color violet(color_table, 238, 130, 238, 1);
- const Color wheat(color_table, 245, 222, 179, 1);
- const Color white(color_table, 255, 255, 255, 1);
- const Color whitesmoke(color_table, 245, 245, 245, 1);
- const Color yellow(color_table, 255, 255, 0, 1);
- const Color yellowgreen(color_table, 154, 205, 50, 1);
- const Color rebeccapurple(color_table, 102, 51, 153, 1);
- const Color transparent(color_table, 0, 0, 0, 0);
- }
-
- const std::map<const int, const char*> colors_to_names {
- { 240 * 0x10000 + 248 * 0x100 + 255, ColorNames::aliceblue },
- { 250 * 0x10000 + 235 * 0x100 + 215, ColorNames::antiquewhite },
- { 0 * 0x10000 + 255 * 0x100 + 255, ColorNames::cyan },
- { 127 * 0x10000 + 255 * 0x100 + 212, ColorNames::aquamarine },
- { 240 * 0x10000 + 255 * 0x100 + 255, ColorNames::azure },
- { 245 * 0x10000 + 245 * 0x100 + 220, ColorNames::beige },
- { 255 * 0x10000 + 228 * 0x100 + 196, ColorNames::bisque },
- { 0 * 0x10000 + 0 * 0x100 + 0, ColorNames::black },
- { 255 * 0x10000 + 235 * 0x100 + 205, ColorNames::blanchedalmond },
- { 0 * 0x10000 + 0 * 0x100 + 255, ColorNames::blue },
- { 138 * 0x10000 + 43 * 0x100 + 226, ColorNames::blueviolet },
- { 165 * 0x10000 + 42 * 0x100 + 42, ColorNames::brown },
- { 222 * 0x10000 + 184 * 0x100 + 135, ColorNames::burlywood },
- { 95 * 0x10000 + 158 * 0x100 + 160, ColorNames::cadetblue },
- { 127 * 0x10000 + 255 * 0x100 + 0, ColorNames::chartreuse },
- { 210 * 0x10000 + 105 * 0x100 + 30, ColorNames::chocolate },
- { 255 * 0x10000 + 127 * 0x100 + 80, ColorNames::coral },
- { 100 * 0x10000 + 149 * 0x100 + 237, ColorNames::cornflowerblue },
- { 255 * 0x10000 + 248 * 0x100 + 220, ColorNames::cornsilk },
- { 220 * 0x10000 + 20 * 0x100 + 60, ColorNames::crimson },
- { 0 * 0x10000 + 0 * 0x100 + 139, ColorNames::darkblue },
- { 0 * 0x10000 + 139 * 0x100 + 139, ColorNames::darkcyan },
- { 184 * 0x10000 + 134 * 0x100 + 11, ColorNames::darkgoldenrod },
- { 169 * 0x10000 + 169 * 0x100 + 169, ColorNames::darkgray },
- { 0 * 0x10000 + 100 * 0x100 + 0, ColorNames::darkgreen },
- { 189 * 0x10000 + 183 * 0x100 + 107, ColorNames::darkkhaki },
- { 139 * 0x10000 + 0 * 0x100 + 139, ColorNames::darkmagenta },
- { 85 * 0x10000 + 107 * 0x100 + 47, ColorNames::darkolivegreen },
- { 255 * 0x10000 + 140 * 0x100 + 0, ColorNames::darkorange },
- { 153 * 0x10000 + 50 * 0x100 + 204, ColorNames::darkorchid },
- { 139 * 0x10000 + 0 * 0x100 + 0, ColorNames::darkred },
- { 233 * 0x10000 + 150 * 0x100 + 122, ColorNames::darksalmon },
- { 143 * 0x10000 + 188 * 0x100 + 143, ColorNames::darkseagreen },
- { 72 * 0x10000 + 61 * 0x100 + 139, ColorNames::darkslateblue },
- { 47 * 0x10000 + 79 * 0x100 + 79, ColorNames::darkslategray },
- { 0 * 0x10000 + 206 * 0x100 + 209, ColorNames::darkturquoise },
- { 148 * 0x10000 + 0 * 0x100 + 211, ColorNames::darkviolet },
- { 255 * 0x10000 + 20 * 0x100 + 147, ColorNames::deeppink },
- { 0 * 0x10000 + 191 * 0x100 + 255, ColorNames::deepskyblue },
- { 105 * 0x10000 + 105 * 0x100 + 105, ColorNames::dimgray },
- { 30 * 0x10000 + 144 * 0x100 + 255, ColorNames::dodgerblue },
- { 178 * 0x10000 + 34 * 0x100 + 34, ColorNames::firebrick },
- { 255 * 0x10000 + 250 * 0x100 + 240, ColorNames::floralwhite },
- { 34 * 0x10000 + 139 * 0x100 + 34, ColorNames::forestgreen },
- { 255 * 0x10000 + 0 * 0x100 + 255, ColorNames::magenta },
- { 220 * 0x10000 + 220 * 0x100 + 220, ColorNames::gainsboro },
- { 248 * 0x10000 + 248 * 0x100 + 255, ColorNames::ghostwhite },
- { 255 * 0x10000 + 215 * 0x100 + 0, ColorNames::gold },
- { 218 * 0x10000 + 165 * 0x100 + 32, ColorNames::goldenrod },
- { 128 * 0x10000 + 128 * 0x100 + 128, ColorNames::gray },
- { 0 * 0x10000 + 128 * 0x100 + 0, ColorNames::green },
- { 173 * 0x10000 + 255 * 0x100 + 47, ColorNames::greenyellow },
- { 240 * 0x10000 + 255 * 0x100 + 240, ColorNames::honeydew },
- { 255 * 0x10000 + 105 * 0x100 + 180, ColorNames::hotpink },
- { 205 * 0x10000 + 92 * 0x100 + 92, ColorNames::indianred },
- { 75 * 0x10000 + 0 * 0x100 + 130, ColorNames::indigo },
- { 255 * 0x10000 + 255 * 0x100 + 240, ColorNames::ivory },
- { 240 * 0x10000 + 230 * 0x100 + 140, ColorNames::khaki },
- { 230 * 0x10000 + 230 * 0x100 + 250, ColorNames::lavender },
- { 255 * 0x10000 + 240 * 0x100 + 245, ColorNames::lavenderblush },
- { 124 * 0x10000 + 252 * 0x100 + 0, ColorNames::lawngreen },
- { 255 * 0x10000 + 250 * 0x100 + 205, ColorNames::lemonchiffon },
- { 173 * 0x10000 + 216 * 0x100 + 230, ColorNames::lightblue },
- { 240 * 0x10000 + 128 * 0x100 + 128, ColorNames::lightcoral },
- { 224 * 0x10000 + 255 * 0x100 + 255, ColorNames::lightcyan },
- { 250 * 0x10000 + 250 * 0x100 + 210, ColorNames::lightgoldenrodyellow },
- { 211 * 0x10000 + 211 * 0x100 + 211, ColorNames::lightgray },
- { 144 * 0x10000 + 238 * 0x100 + 144, ColorNames::lightgreen },
- { 255 * 0x10000 + 182 * 0x100 + 193, ColorNames::lightpink },
- { 255 * 0x10000 + 160 * 0x100 + 122, ColorNames::lightsalmon },
- { 32 * 0x10000 + 178 * 0x100 + 170, ColorNames::lightseagreen },
- { 135 * 0x10000 + 206 * 0x100 + 250, ColorNames::lightskyblue },
- { 119 * 0x10000 + 136 * 0x100 + 153, ColorNames::lightslategray },
- { 176 * 0x10000 + 196 * 0x100 + 222, ColorNames::lightsteelblue },
- { 255 * 0x10000 + 255 * 0x100 + 224, ColorNames::lightyellow },
- { 0 * 0x10000 + 255 * 0x100 + 0, ColorNames::lime },
- { 50 * 0x10000 + 205 * 0x100 + 50, ColorNames::limegreen },
- { 250 * 0x10000 + 240 * 0x100 + 230, ColorNames::linen },
- { 128 * 0x10000 + 0 * 0x100 + 0, ColorNames::maroon },
- { 102 * 0x10000 + 205 * 0x100 + 170, ColorNames::mediumaquamarine },
- { 0 * 0x10000 + 0 * 0x100 + 205, ColorNames::mediumblue },
- { 186 * 0x10000 + 85 * 0x100 + 211, ColorNames::mediumorchid },
- { 147 * 0x10000 + 112 * 0x100 + 219, ColorNames::mediumpurple },
- { 60 * 0x10000 + 179 * 0x100 + 113, ColorNames::mediumseagreen },
- { 123 * 0x10000 + 104 * 0x100 + 238, ColorNames::mediumslateblue },
- { 0 * 0x10000 + 250 * 0x100 + 154, ColorNames::mediumspringgreen },
- { 72 * 0x10000 + 209 * 0x100 + 204, ColorNames::mediumturquoise },
- { 199 * 0x10000 + 21 * 0x100 + 133, ColorNames::mediumvioletred },
- { 25 * 0x10000 + 25 * 0x100 + 112, ColorNames::midnightblue },
- { 245 * 0x10000 + 255 * 0x100 + 250, ColorNames::mintcream },
- { 255 * 0x10000 + 228 * 0x100 + 225, ColorNames::mistyrose },
- { 255 * 0x10000 + 228 * 0x100 + 181, ColorNames::moccasin },
- { 255 * 0x10000 + 222 * 0x100 + 173, ColorNames::navajowhite },
- { 0 * 0x10000 + 0 * 0x100 + 128, ColorNames::navy },
- { 253 * 0x10000 + 245 * 0x100 + 230, ColorNames::oldlace },
- { 128 * 0x10000 + 128 * 0x100 + 0, ColorNames::olive },
- { 107 * 0x10000 + 142 * 0x100 + 35, ColorNames::olivedrab },
- { 255 * 0x10000 + 165 * 0x100 + 0, ColorNames::orange },
- { 255 * 0x10000 + 69 * 0x100 + 0, ColorNames::orangered },
- { 218 * 0x10000 + 112 * 0x100 + 214, ColorNames::orchid },
- { 238 * 0x10000 + 232 * 0x100 + 170, ColorNames::palegoldenrod },
- { 152 * 0x10000 + 251 * 0x100 + 152, ColorNames::palegreen },
- { 175 * 0x10000 + 238 * 0x100 + 238, ColorNames::paleturquoise },
- { 219 * 0x10000 + 112 * 0x100 + 147, ColorNames::palevioletred },
- { 255 * 0x10000 + 239 * 0x100 + 213, ColorNames::papayawhip },
- { 255 * 0x10000 + 218 * 0x100 + 185, ColorNames::peachpuff },
- { 205 * 0x10000 + 133 * 0x100 + 63, ColorNames::peru },
- { 255 * 0x10000 + 192 * 0x100 + 203, ColorNames::pink },
- { 221 * 0x10000 + 160 * 0x100 + 221, ColorNames::plum },
- { 176 * 0x10000 + 224 * 0x100 + 230, ColorNames::powderblue },
- { 128 * 0x10000 + 0 * 0x100 + 128, ColorNames::purple },
- { 255 * 0x10000 + 0 * 0x100 + 0, ColorNames::red },
- { 188 * 0x10000 + 143 * 0x100 + 143, ColorNames::rosybrown },
- { 65 * 0x10000 + 105 * 0x100 + 225, ColorNames::royalblue },
- { 139 * 0x10000 + 69 * 0x100 + 19, ColorNames::saddlebrown },
- { 250 * 0x10000 + 128 * 0x100 + 114, ColorNames::salmon },
- { 244 * 0x10000 + 164 * 0x100 + 96, ColorNames::sandybrown },
- { 46 * 0x10000 + 139 * 0x100 + 87, ColorNames::seagreen },
- { 255 * 0x10000 + 245 * 0x100 + 238, ColorNames::seashell },
- { 160 * 0x10000 + 82 * 0x100 + 45, ColorNames::sienna },
- { 192 * 0x10000 + 192 * 0x100 + 192, ColorNames::silver },
- { 135 * 0x10000 + 206 * 0x100 + 235, ColorNames::skyblue },
- { 106 * 0x10000 + 90 * 0x100 + 205, ColorNames::slateblue },
- { 112 * 0x10000 + 128 * 0x100 + 144, ColorNames::slategray },
- { 255 * 0x10000 + 250 * 0x100 + 250, ColorNames::snow },
- { 0 * 0x10000 + 255 * 0x100 + 127, ColorNames::springgreen },
- { 70 * 0x10000 + 130 * 0x100 + 180, ColorNames::steelblue },
- { 210 * 0x10000 + 180 * 0x100 + 140, ColorNames::tan },
- { 0 * 0x10000 + 128 * 0x100 + 128, ColorNames::teal },
- { 216 * 0x10000 + 191 * 0x100 + 216, ColorNames::thistle },
- { 255 * 0x10000 + 99 * 0x100 + 71, ColorNames::tomato },
- { 64 * 0x10000 + 224 * 0x100 + 208, ColorNames::turquoise },
- { 238 * 0x10000 + 130 * 0x100 + 238, ColorNames::violet },
- { 245 * 0x10000 + 222 * 0x100 + 179, ColorNames::wheat },
- { 255 * 0x10000 + 255 * 0x100 + 255, ColorNames::white },
- { 245 * 0x10000 + 245 * 0x100 + 245, ColorNames::whitesmoke },
- { 255 * 0x10000 + 255 * 0x100 + 0, ColorNames::yellow },
- { 154 * 0x10000 + 205 * 0x100 + 50, ColorNames::yellowgreen },
- { 102 * 0x10000 + 51 * 0x100 + 153, ColorNames::rebeccapurple }
- };
-
- const std::map<const char*, Color_Ptr_Const, map_cmp_str> names_to_colors
- {
- { ColorNames::aliceblue, &Colors::aliceblue },
- { ColorNames::antiquewhite, &Colors::antiquewhite },
- { ColorNames::cyan, &Colors::cyan },
- { ColorNames::aqua, &Colors::aqua },
- { ColorNames::aquamarine, &Colors::aquamarine },
- { ColorNames::azure, &Colors::azure },
- { ColorNames::beige, &Colors::beige },
- { ColorNames::bisque, &Colors::bisque },
- { ColorNames::black, &Colors::black },
- { ColorNames::blanchedalmond, &Colors::blanchedalmond },
- { ColorNames::blue, &Colors::blue },
- { ColorNames::blueviolet, &Colors::blueviolet },
- { ColorNames::brown, &Colors::brown },
- { ColorNames::burlywood, &Colors::burlywood },
- { ColorNames::cadetblue, &Colors::cadetblue },
- { ColorNames::chartreuse, &Colors::chartreuse },
- { ColorNames::chocolate, &Colors::chocolate },
- { ColorNames::coral, &Colors::coral },
- { ColorNames::cornflowerblue, &Colors::cornflowerblue },
- { ColorNames::cornsilk, &Colors::cornsilk },
- { ColorNames::crimson, &Colors::crimson },
- { ColorNames::darkblue, &Colors::darkblue },
- { ColorNames::darkcyan, &Colors::darkcyan },
- { ColorNames::darkgoldenrod, &Colors::darkgoldenrod },
- { ColorNames::darkgray, &Colors::darkgray },
- { ColorNames::darkgrey, &Colors::darkgrey },
- { ColorNames::darkgreen, &Colors::darkgreen },
- { ColorNames::darkkhaki, &Colors::darkkhaki },
- { ColorNames::darkmagenta, &Colors::darkmagenta },
- { ColorNames::darkolivegreen, &Colors::darkolivegreen },
- { ColorNames::darkorange, &Colors::darkorange },
- { ColorNames::darkorchid, &Colors::darkorchid },
- { ColorNames::darkred, &Colors::darkred },
- { ColorNames::darksalmon, &Colors::darksalmon },
- { ColorNames::darkseagreen, &Colors::darkseagreen },
- { ColorNames::darkslateblue, &Colors::darkslateblue },
- { ColorNames::darkslategray, &Colors::darkslategray },
- { ColorNames::darkslategrey, &Colors::darkslategrey },
- { ColorNames::darkturquoise, &Colors::darkturquoise },
- { ColorNames::darkviolet, &Colors::darkviolet },
- { ColorNames::deeppink, &Colors::deeppink },
- { ColorNames::deepskyblue, &Colors::deepskyblue },
- { ColorNames::dimgray, &Colors::dimgray },
- { ColorNames::dimgrey, &Colors::dimgrey },
- { ColorNames::dodgerblue, &Colors::dodgerblue },
- { ColorNames::firebrick, &Colors::firebrick },
- { ColorNames::floralwhite, &Colors::floralwhite },
- { ColorNames::forestgreen, &Colors::forestgreen },
- { ColorNames::magenta, &Colors::magenta },
- { ColorNames::fuchsia, &Colors::fuchsia },
- { ColorNames::gainsboro, &Colors::gainsboro },
- { ColorNames::ghostwhite, &Colors::ghostwhite },
- { ColorNames::gold, &Colors::gold },
- { ColorNames::goldenrod, &Colors::goldenrod },
- { ColorNames::gray, &Colors::gray },
- { ColorNames::grey, &Colors::grey },
- { ColorNames::green, &Colors::green },
- { ColorNames::greenyellow, &Colors::greenyellow },
- { ColorNames::honeydew, &Colors::honeydew },
- { ColorNames::hotpink, &Colors::hotpink },
- { ColorNames::indianred, &Colors::indianred },
- { ColorNames::indigo, &Colors::indigo },
- { ColorNames::ivory, &Colors::ivory },
- { ColorNames::khaki, &Colors::khaki },
- { ColorNames::lavender, &Colors::lavender },
- { ColorNames::lavenderblush, &Colors::lavenderblush },
- { ColorNames::lawngreen, &Colors::lawngreen },
- { ColorNames::lemonchiffon, &Colors::lemonchiffon },
- { ColorNames::lightblue, &Colors::lightblue },
- { ColorNames::lightcoral, &Colors::lightcoral },
- { ColorNames::lightcyan, &Colors::lightcyan },
- { ColorNames::lightgoldenrodyellow, &Colors::lightgoldenrodyellow },
- { ColorNames::lightgray, &Colors::lightgray },
- { ColorNames::lightgrey, &Colors::lightgrey },
- { ColorNames::lightgreen, &Colors::lightgreen },
- { ColorNames::lightpink, &Colors::lightpink },
- { ColorNames::lightsalmon, &Colors::lightsalmon },
- { ColorNames::lightseagreen, &Colors::lightseagreen },
- { ColorNames::lightskyblue, &Colors::lightskyblue },
- { ColorNames::lightslategray, &Colors::lightslategray },
- { ColorNames::lightslategrey, &Colors::lightslategrey },
- { ColorNames::lightsteelblue, &Colors::lightsteelblue },
- { ColorNames::lightyellow, &Colors::lightyellow },
- { ColorNames::lime, &Colors::lime },
- { ColorNames::limegreen, &Colors::limegreen },
- { ColorNames::linen, &Colors::linen },
- { ColorNames::maroon, &Colors::maroon },
- { ColorNames::mediumaquamarine, &Colors::mediumaquamarine },
- { ColorNames::mediumblue, &Colors::mediumblue },
- { ColorNames::mediumorchid, &Colors::mediumorchid },
- { ColorNames::mediumpurple, &Colors::mediumpurple },
- { ColorNames::mediumseagreen, &Colors::mediumseagreen },
- { ColorNames::mediumslateblue, &Colors::mediumslateblue },
- { ColorNames::mediumspringgreen, &Colors::mediumspringgreen },
- { ColorNames::mediumturquoise, &Colors::mediumturquoise },
- { ColorNames::mediumvioletred, &Colors::mediumvioletred },
- { ColorNames::midnightblue, &Colors::midnightblue },
- { ColorNames::mintcream, &Colors::mintcream },
- { ColorNames::mistyrose, &Colors::mistyrose },
- { ColorNames::moccasin, &Colors::moccasin },
- { ColorNames::navajowhite, &Colors::navajowhite },
- { ColorNames::navy, &Colors::navy },
- { ColorNames::oldlace, &Colors::oldlace },
- { ColorNames::olive, &Colors::olive },
- { ColorNames::olivedrab, &Colors::olivedrab },
- { ColorNames::orange, &Colors::orange },
- { ColorNames::orangered, &Colors::orangered },
- { ColorNames::orchid, &Colors::orchid },
- { ColorNames::palegoldenrod, &Colors::palegoldenrod },
- { ColorNames::palegreen, &Colors::palegreen },
- { ColorNames::paleturquoise, &Colors::paleturquoise },
- { ColorNames::palevioletred, &Colors::palevioletred },
- { ColorNames::papayawhip, &Colors::papayawhip },
- { ColorNames::peachpuff, &Colors::peachpuff },
- { ColorNames::peru, &Colors::peru },
- { ColorNames::pink, &Colors::pink },
- { ColorNames::plum, &Colors::plum },
- { ColorNames::powderblue, &Colors::powderblue },
- { ColorNames::purple, &Colors::purple },
- { ColorNames::red, &Colors::red },
- { ColorNames::rosybrown, &Colors::rosybrown },
- { ColorNames::royalblue, &Colors::royalblue },
- { ColorNames::saddlebrown, &Colors::saddlebrown },
- { ColorNames::salmon, &Colors::salmon },
- { ColorNames::sandybrown, &Colors::sandybrown },
- { ColorNames::seagreen, &Colors::seagreen },
- { ColorNames::seashell, &Colors::seashell },
- { ColorNames::sienna, &Colors::sienna },
- { ColorNames::silver, &Colors::silver },
- { ColorNames::skyblue, &Colors::skyblue },
- { ColorNames::slateblue, &Colors::slateblue },
- { ColorNames::slategray, &Colors::slategray },
- { ColorNames::slategrey, &Colors::slategrey },
- { ColorNames::snow, &Colors::snow },
- { ColorNames::springgreen, &Colors::springgreen },
- { ColorNames::steelblue, &Colors::steelblue },
- { ColorNames::tan, &Colors::tan },
- { ColorNames::teal, &Colors::teal },
- { ColorNames::thistle, &Colors::thistle },
- { ColorNames::tomato, &Colors::tomato },
- { ColorNames::turquoise, &Colors::turquoise },
- { ColorNames::violet, &Colors::violet },
- { ColorNames::wheat, &Colors::wheat },
- { ColorNames::white, &Colors::white },
- { ColorNames::whitesmoke, &Colors::whitesmoke },
- { ColorNames::yellow, &Colors::yellow },
- { ColorNames::yellowgreen, &Colors::yellowgreen },
- { ColorNames::rebeccapurple, &Colors::rebeccapurple },
- { ColorNames::transparent, &Colors::transparent }
- };
-
- Color_Ptr_Const name_to_color(const char* key)
- {
- return name_to_color(std::string(key));
- }
-
- Color_Ptr_Const name_to_color(const std::string& key)
- {
- // case insensitive lookup. See #2462
- std::string lower{key};
- std::transform(lower.begin(), lower.end(), lower.begin(), ::tolower);
-
- auto p = names_to_colors.find(lower.c_str());
- if (p != names_to_colors.end()) {
- return p->second;
- }
- return 0;
- }
-
- const char* color_to_name(const int key)
- {
- auto p = colors_to_names.find(key);
- if (p != colors_to_names.end()) {
- return p->second;
- }
- return 0;
- }
-
- const char* color_to_name(const double key)
- {
- return color_to_name((int)key);
- }
-
- const char* color_to_name(const Color& c)
- {
- double key = c.r() * 0x10000
- + c.g() * 0x100
- + c.b();
- return color_to_name(key);
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/color_maps.hpp b/node_modules/node-sass/src/libsass/src/color_maps.hpp
deleted file mode 100644
index d4fd416..0000000
--- a/node_modules/node-sass/src/libsass/src/color_maps.hpp
+++ /dev/null
@@ -1,331 +0,0 @@
-
-#ifndef SASS_COLOR_MAPS_H
-#define SASS_COLOR_MAPS_H
-
-#include <map>
-#include "ast.hpp"
-
-namespace Sass {
-
- struct map_cmp_str
- {
- bool operator()(char const *a, char const *b) const
- {
- return std::strcmp(a, b) < 0;
- }
- };
-
- namespace ColorNames
- {
- extern const char aliceblue[];
- extern const char antiquewhite[];
- extern const char cyan[];
- extern const char aqua[];
- extern const char aquamarine[];
- extern const char azure[];
- extern const char beige[];
- extern const char bisque[];
- extern const char black[];
- extern const char blanchedalmond[];
- extern const char blue[];
- extern const char blueviolet[];
- extern const char brown[];
- extern const char burlywood[];
- extern const char cadetblue[];
- extern const char chartreuse[];
- extern const char chocolate[];
- extern const char coral[];
- extern const char cornflowerblue[];
- extern const char cornsilk[];
- extern const char crimson[];
- extern const char darkblue[];
- extern const char darkcyan[];
- extern const char darkgoldenrod[];
- extern const char darkgray[];
- extern const char darkgrey[];
- extern const char darkgreen[];
- extern const char darkkhaki[];
- extern const char darkmagenta[];
- extern const char darkolivegreen[];
- extern const char darkorange[];
- extern const char darkorchid[];
- extern const char darkred[];
- extern const char darksalmon[];
- extern const char darkseagreen[];
- extern const char darkslateblue[];
- extern const char darkslategray[];
- extern const char darkslategrey[];
- extern const char darkturquoise[];
- extern const char darkviolet[];
- extern const char deeppink[];
- extern const char deepskyblue[];
- extern const char dimgray[];
- extern const char dimgrey[];
- extern const char dodgerblue[];
- extern const char firebrick[];
- extern const char floralwhite[];
- extern const char forestgreen[];
- extern const char magenta[];
- extern const char fuchsia[];
- extern const char gainsboro[];
- extern const char ghostwhite[];
- extern const char gold[];
- extern const char goldenrod[];
- extern const char gray[];
- extern const char grey[];
- extern const char green[];
- extern const char greenyellow[];
- extern const char honeydew[];
- extern const char hotpink[];
- extern const char indianred[];
- extern const char indigo[];
- extern const char ivory[];
- extern const char khaki[];
- extern const char lavender[];
- extern const char lavenderblush[];
- extern const char lawngreen[];
- extern const char lemonchiffon[];
- extern const char lightblue[];
- extern const char lightcoral[];
- extern const char lightcyan[];
- extern const char lightgoldenrodyellow[];
- extern const char lightgray[];
- extern const char lightgrey[];
- extern const char lightgreen[];
- extern const char lightpink[];
- extern const char lightsalmon[];
- extern const char lightseagreen[];
- extern const char lightskyblue[];
- extern const char lightslategray[];
- extern const char lightslategrey[];
- extern const char lightsteelblue[];
- extern const char lightyellow[];
- extern const char lime[];
- extern const char limegreen[];
- extern const char linen[];
- extern const char maroon[];
- extern const char mediumaquamarine[];
- extern const char mediumblue[];
- extern const char mediumorchid[];
- extern const char mediumpurple[];
- extern const char mediumseagreen[];
- extern const char mediumslateblue[];
- extern const char mediumspringgreen[];
- extern const char mediumturquoise[];
- extern const char mediumvioletred[];
- extern const char midnightblue[];
- extern const char mintcream[];
- extern const char mistyrose[];
- extern const char moccasin[];
- extern const char navajowhite[];
- extern const char navy[];
- extern const char oldlace[];
- extern const char olive[];
- extern const char olivedrab[];
- extern const char orange[];
- extern const char orangered[];
- extern const char orchid[];
- extern const char palegoldenrod[];
- extern const char palegreen[];
- extern const char paleturquoise[];
- extern const char palevioletred[];
- extern const char papayawhip[];
- extern const char peachpuff[];
- extern const char peru[];
- extern const char pink[];
- extern const char plum[];
- extern const char powderblue[];
- extern const char purple[];
- extern const char red[];
- extern const char rosybrown[];
- extern const char royalblue[];
- extern const char saddlebrown[];
- extern const char salmon[];
- extern const char sandybrown[];
- extern const char seagreen[];
- extern const char seashell[];
- extern const char sienna[];
- extern const char silver[];
- extern const char skyblue[];
- extern const char slateblue[];
- extern const char slategray[];
- extern const char slategrey[];
- extern const char snow[];
- extern const char springgreen[];
- extern const char steelblue[];
- extern const char tan[];
- extern const char teal[];
- extern const char thistle[];
- extern const char tomato[];
- extern const char turquoise[];
- extern const char violet[];
- extern const char wheat[];
- extern const char white[];
- extern const char whitesmoke[];
- extern const char yellow[];
- extern const char yellowgreen[];
- extern const char rebeccapurple[];
- extern const char transparent[];
- }
-
- namespace Colors {
- extern const Color aliceblue;
- extern const Color antiquewhite;
- extern const Color cyan;
- extern const Color aqua;
- extern const Color aquamarine;
- extern const Color azure;
- extern const Color beige;
- extern const Color bisque;
- extern const Color black;
- extern const Color blanchedalmond;
- extern const Color blue;
- extern const Color blueviolet;
- extern const Color brown;
- extern const Color burlywood;
- extern const Color cadetblue;
- extern const Color chartreuse;
- extern const Color chocolate;
- extern const Color coral;
- extern const Color cornflowerblue;
- extern const Color cornsilk;
- extern const Color crimson;
- extern const Color darkblue;
- extern const Color darkcyan;
- extern const Color darkgoldenrod;
- extern const Color darkgray;
- extern const Color darkgrey;
- extern const Color darkgreen;
- extern const Color darkkhaki;
- extern const Color darkmagenta;
- extern const Color darkolivegreen;
- extern const Color darkorange;
- extern const Color darkorchid;
- extern const Color darkred;
- extern const Color darksalmon;
- extern const Color darkseagreen;
- extern const Color darkslateblue;
- extern const Color darkslategray;
- extern const Color darkslategrey;
- extern const Color darkturquoise;
- extern const Color darkviolet;
- extern const Color deeppink;
- extern const Color deepskyblue;
- extern const Color dimgray;
- extern const Color dimgrey;
- extern const Color dodgerblue;
- extern const Color firebrick;
- extern const Color floralwhite;
- extern const Color forestgreen;
- extern const Color magenta;
- extern const Color fuchsia;
- extern const Color gainsboro;
- extern const Color ghostwhite;
- extern const Color gold;
- extern const Color goldenrod;
- extern const Color gray;
- extern const Color grey;
- extern const Color green;
- extern const Color greenyellow;
- extern const Color honeydew;
- extern const Color hotpink;
- extern const Color indianred;
- extern const Color indigo;
- extern const Color ivory;
- extern const Color khaki;
- extern const Color lavender;
- extern const Color lavenderblush;
- extern const Color lawngreen;
- extern const Color lemonchiffon;
- extern const Color lightblue;
- extern const Color lightcoral;
- extern const Color lightcyan;
- extern const Color lightgoldenrodyellow;
- extern const Color lightgray;
- extern const Color lightgrey;
- extern const Color lightgreen;
- extern const Color lightpink;
- extern const Color lightsalmon;
- extern const Color lightseagreen;
- extern const Color lightskyblue;
- extern const Color lightslategray;
- extern const Color lightslategrey;
- extern const Color lightsteelblue;
- extern const Color lightyellow;
- extern const Color lime;
- extern const Color limegreen;
- extern const Color linen;
- extern const Color maroon;
- extern const Color mediumaquamarine;
- extern const Color mediumblue;
- extern const Color mediumorchid;
- extern const Color mediumpurple;
- extern const Color mediumseagreen;
- extern const Color mediumslateblue;
- extern const Color mediumspringgreen;
- extern const Color mediumturquoise;
- extern const Color mediumvioletred;
- extern const Color midnightblue;
- extern const Color mintcream;
- extern const Color mistyrose;
- extern const Color moccasin;
- extern const Color navajowhite;
- extern const Color navy;
- extern const Color oldlace;
- extern const Color olive;
- extern const Color olivedrab;
- extern const Color orange;
- extern const Color orangered;
- extern const Color orchid;
- extern const Color palegoldenrod;
- extern const Color palegreen;
- extern const Color paleturquoise;
- extern const Color palevioletred;
- extern const Color papayawhip;
- extern const Color peachpuff;
- extern const Color peru;
- extern const Color pink;
- extern const Color plum;
- extern const Color powderblue;
- extern const Color purple;
- extern const Color red;
- extern const Color rosybrown;
- extern const Color royalblue;
- extern const Color saddlebrown;
- extern const Color salmon;
- extern const Color sandybrown;
- extern const Color seagreen;
- extern const Color seashell;
- extern const Color sienna;
- extern const Color silver;
- extern const Color skyblue;
- extern const Color slateblue;
- extern const Color slategray;
- extern const Color slategrey;
- extern const Color snow;
- extern const Color springgreen;
- extern const Color steelblue;
- extern const Color tan;
- extern const Color teal;
- extern const Color thistle;
- extern const Color tomato;
- extern const Color turquoise;
- extern const Color violet;
- extern const Color wheat;
- extern const Color white;
- extern const Color whitesmoke;
- extern const Color yellow;
- extern const Color yellowgreen;
- extern const Color rebeccapurple;
- extern const Color transparent;
- }
-
- Color_Ptr_Const name_to_color(const char*);
- Color_Ptr_Const name_to_color(const std::string&);
- const char* color_to_name(const int);
- const char* color_to_name(const Color&);
- const char* color_to_name(const double);
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/constants.cpp b/node_modules/node-sass/src/libsass/src/constants.cpp
deleted file mode 100644
index 0ba28e2..0000000
--- a/node_modules/node-sass/src/libsass/src/constants.cpp
+++ /dev/null
@@ -1,179 +0,0 @@
-#include "sass.hpp"
-#include "constants.hpp"
-
-namespace Sass {
- namespace Constants {
-
- extern const unsigned long MaxCallStack = 1024;
-
- // https://github.com/sass/libsass/issues/592
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
- // https://github.com/sass/sass/issues/1495#issuecomment-61189114
- extern const unsigned long Specificity_Star = 0;
- extern const unsigned long Specificity_Universal = 0;
- extern const unsigned long Specificity_Element = 1;
- extern const unsigned long Specificity_Base = 1000;
- extern const unsigned long Specificity_Class = 1000;
- extern const unsigned long Specificity_Attr = 1000;
- extern const unsigned long Specificity_Pseudo = 1000;
- extern const unsigned long Specificity_ID = 1000000;
-
- // sass keywords
- extern const char at_root_kwd[] = "@at-root";
- extern const char import_kwd[] = "@import";
- extern const char mixin_kwd[] = "@mixin";
- extern const char function_kwd[] = "@function";
- extern const char return_kwd[] = "@return";
- extern const char include_kwd[] = "@include";
- extern const char content_kwd[] = "@content";
- extern const char extend_kwd[] = "@extend";
- extern const char if_kwd[] = "@if";
- extern const char else_kwd[] = "@else";
- extern const char if_after_else_kwd[] = "if";
- extern const char for_kwd[] = "@for";
- extern const char from_kwd[] = "from";
- extern const char to_kwd[] = "to";
- extern const char through_kwd[] = "through";
- extern const char each_kwd[] = "@each";
- extern const char in_kwd[] = "in";
- extern const char while_kwd[] = "@while";
- extern const char warn_kwd[] = "@warn";
- extern const char error_kwd[] = "@error";
- extern const char debug_kwd[] = "@debug";
- extern const char default_kwd[] = "default";
- extern const char global_kwd[] = "global";
- extern const char null_kwd[] = "null";
- extern const char optional_kwd[] = "optional";
- extern const char with_kwd[] = "with";
- extern const char without_kwd[] = "without";
- extern const char all_kwd[] = "all";
- extern const char rule_kwd[] = "rule";
-
- // css standard units
- extern const char em_kwd[] = "em";
- extern const char ex_kwd[] = "ex";
- extern const char px_kwd[] = "px";
- extern const char cm_kwd[] = "cm";
- extern const char mm_kwd[] = "mm";
- extern const char pt_kwd[] = "pt";
- extern const char pc_kwd[] = "pc";
- extern const char deg_kwd[] = "deg";
- extern const char rad_kwd[] = "rad";
- extern const char grad_kwd[] = "grad";
- extern const char turn_kwd[] = "turn";
- extern const char ms_kwd[] = "ms";
- extern const char s_kwd[] = "s";
- extern const char Hz_kwd[] = "Hz";
- extern const char kHz_kwd[] = "kHz";
-
- // vendor prefixes
- extern const char vendor_opera_kwd[] = "-o-";
- extern const char vendor_webkit_kwd[] = "-webkit-";
- extern const char vendor_mozilla_kwd[] = "-moz-";
- extern const char vendor_ms_kwd[] = "-ms-";
- extern const char vendor_khtml_kwd[] = "-khtml-";
-
- // css functions and keywords
- extern const char charset_kwd[] = "@charset";
- extern const char media_kwd[] = "@media";
- extern const char supports_kwd[] = "@supports";
- extern const char keyframes_kwd[] = "keyframes";
- extern const char only_kwd[] = "only";
- extern const char rgb_fn_kwd[] = "rgb(";
- extern const char url_fn_kwd[] = "url(";
- extern const char url_kwd[] = "url";
- // extern const char url_prefix_fn_kwd[] = "url-prefix(";
- extern const char important_kwd[] = "important";
- extern const char pseudo_not_fn_kwd[] = ":not(";
- extern const char even_kwd[] = "even";
- extern const char odd_kwd[] = "odd";
- extern const char progid_kwd[] = "progid";
- extern const char expression_kwd[] = "expression";
- extern const char calc_fn_kwd[] = "calc";
-
- extern const char almost_any_value_class[] = "\"'#!;{}";
-
- // css selector keywords
- extern const char sel_deep_kwd[] = "/deep/";
-
- // css attribute-matching operators
- extern const char tilde_equal[] = "~=";
- extern const char pipe_equal[] = "|=";
- extern const char caret_equal[] = "^=";
- extern const char dollar_equal[] = "$=";
- extern const char star_equal[] = "*=";
-
- // relational & logical operators and constants
- extern const char and_kwd[] = "and";
- extern const char or_kwd[] = "or";
- extern const char not_kwd[] = "not";
- extern const char gt[] = ">";
- extern const char gte[] = ">=";
- extern const char lt[] = "<";
- extern const char lte[] = "<=";
- extern const char eq[] = "==";
- extern const char neq[] = "!=";
- extern const char true_kwd[] = "true";
- extern const char false_kwd[] = "false";
-
- // miscellaneous punctuation and delimiters
- extern const char percent_str[] = "%";
- extern const char empty_str[] = "";
- extern const char slash_slash[] = "//";
- extern const char slash_star[] = "/*";
- extern const char star_slash[] = "*/";
- extern const char hash_lbrace[] = "#{";
- extern const char rbrace[] = "}";
- extern const char rparen[] = ")";
- extern const char sign_chars[] = "-+";
- extern const char op_chars[] = "-+";
- extern const char hyphen[] = "-";
- extern const char ellipsis[] = "...";
- // extern const char url_space_chars[] = " \t\r\n\f";
- // type names
- extern const char numeric_name[] = "numeric value";
- extern const char number_name[] = "number";
- extern const char percentage_name[] = "percentage";
- extern const char dimension_name[] = "numeric dimension";
- extern const char string_name[] = "string";
- extern const char bool_name[] = "bool";
- extern const char color_name[] = "color";
- extern const char list_name[] = "list";
- extern const char map_name[] = "map";
- extern const char arglist_name[] = "arglist";
-
- // constants for uri parsing (RFC 3986 Appendix A.)
- extern const char uri_chars[] = ":;/?!%&#@|[]{}'`^\"*+-.,_=~";
- extern const char real_uri_chars[] = "#%&";
-
- // some specific constant character classes
- // they must be static to be useable by lexer
- extern const char static_ops[] = "*/%";
- // some character classes for the parser
- extern const char selector_list_delims[] = "){};!";
- extern const char complex_selector_delims[] = ",){};!";
- extern const char selector_combinator_ops[] = "+~>";
- // optional modifiers for alternative compare context
- extern const char attribute_compare_modifiers[] = "~|^$*";
- extern const char selector_lookahead_ops[] = "*&%,()[]";
-
- // byte order marks
- // (taken from http://en.wikipedia.org/wiki/Byte_order_mark)
- extern const unsigned char utf_8_bom[] = { 0xEF, 0xBB, 0xBF };
- extern const unsigned char utf_16_bom_be[] = { 0xFE, 0xFF };
- extern const unsigned char utf_16_bom_le[] = { 0xFF, 0xFE };
- extern const unsigned char utf_32_bom_be[] = { 0x00, 0x00, 0xFE, 0xFF };
- extern const unsigned char utf_32_bom_le[] = { 0xFF, 0xFE, 0x00, 0x00 };
- extern const unsigned char utf_7_bom_1[] = { 0x2B, 0x2F, 0x76, 0x38 };
- extern const unsigned char utf_7_bom_2[] = { 0x2B, 0x2F, 0x76, 0x39 };
- extern const unsigned char utf_7_bom_3[] = { 0x2B, 0x2F, 0x76, 0x2B };
- extern const unsigned char utf_7_bom_4[] = { 0x2B, 0x2F, 0x76, 0x2F };
- extern const unsigned char utf_7_bom_5[] = { 0x2B, 0x2F, 0x76, 0x38, 0x2D };
- extern const unsigned char utf_1_bom[] = { 0xF7, 0x64, 0x4C };
- extern const unsigned char utf_ebcdic_bom[] = { 0xDD, 0x73, 0x66, 0x73 };
- extern const unsigned char scsu_bom[] = { 0x0E, 0xFE, 0xFF };
- extern const unsigned char bocu_1_bom[] = { 0xFB, 0xEE, 0x28 };
- extern const unsigned char gb_18030_bom[] = { 0x84, 0x31, 0x95, 0x33 };
-
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/constants.hpp b/node_modules/node-sass/src/libsass/src/constants.hpp
deleted file mode 100644
index 4fe9357..0000000
--- a/node_modules/node-sass/src/libsass/src/constants.hpp
+++ /dev/null
@@ -1,181 +0,0 @@
-#ifndef SASS_CONSTANTS_H
-#define SASS_CONSTANTS_H
-
-namespace Sass {
- namespace Constants {
-
- // The maximum call stack that can be created
- extern const unsigned long MaxCallStack;
-
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity
- // The following list of selectors is by increasing specificity:
- extern const unsigned long Specificity_Star;
- extern const unsigned long Specificity_Universal;
- extern const unsigned long Specificity_Element;
- extern const unsigned long Specificity_Base;
- extern const unsigned long Specificity_Class;
- extern const unsigned long Specificity_Attr;
- extern const unsigned long Specificity_Pseudo;
- extern const unsigned long Specificity_ID;
-
- // sass keywords
- extern const char at_root_kwd[];
- extern const char import_kwd[];
- extern const char mixin_kwd[];
- extern const char function_kwd[];
- extern const char return_kwd[];
- extern const char include_kwd[];
- extern const char content_kwd[];
- extern const char extend_kwd[];
- extern const char if_kwd[];
- extern const char else_kwd[];
- extern const char if_after_else_kwd[];
- extern const char for_kwd[];
- extern const char from_kwd[];
- extern const char to_kwd[];
- extern const char through_kwd[];
- extern const char each_kwd[];
- extern const char in_kwd[];
- extern const char while_kwd[];
- extern const char warn_kwd[];
- extern const char error_kwd[];
- extern const char debug_kwd[];
- extern const char default_kwd[];
- extern const char global_kwd[];
- extern const char null_kwd[];
- extern const char optional_kwd[];
- extern const char with_kwd[];
- extern const char without_kwd[];
- extern const char all_kwd[];
- extern const char rule_kwd[];
-
- // css standard units
- extern const char em_kwd[];
- extern const char ex_kwd[];
- extern const char px_kwd[];
- extern const char cm_kwd[];
- extern const char mm_kwd[];
- extern const char pt_kwd[];
- extern const char pc_kwd[];
- extern const char deg_kwd[];
- extern const char rad_kwd[];
- extern const char grad_kwd[];
- extern const char turn_kwd[];
- extern const char ms_kwd[];
- extern const char s_kwd[];
- extern const char Hz_kwd[];
- extern const char kHz_kwd[];
-
- // vendor prefixes
- extern const char vendor_opera_kwd[];
- extern const char vendor_webkit_kwd[];
- extern const char vendor_mozilla_kwd[];
- extern const char vendor_ms_kwd[];
- extern const char vendor_khtml_kwd[];
-
- // css functions and keywords
- extern const char charset_kwd[];
- extern const char media_kwd[];
- extern const char supports_kwd[];
- extern const char keyframes_kwd[];
- extern const char only_kwd[];
- extern const char rgb_fn_kwd[];
- extern const char url_fn_kwd[];
- extern const char url_kwd[];
- // extern const char url_prefix_fn_kwd[];
- extern const char important_kwd[];
- extern const char pseudo_not_fn_kwd[];
- extern const char even_kwd[];
- extern const char odd_kwd[];
- extern const char progid_kwd[];
- extern const char expression_kwd[];
- extern const char calc_fn_kwd[];
-
- // char classes for "regular expressions"
- extern const char almost_any_value_class[];
-
- // css selector keywords
- extern const char sel_deep_kwd[];
-
- // css attribute-matching operators
- extern const char tilde_equal[];
- extern const char pipe_equal[];
- extern const char caret_equal[];
- extern const char dollar_equal[];
- extern const char star_equal[];
-
- // relational & logical operators and constants
- extern const char and_kwd[];
- extern const char or_kwd[];
- extern const char not_kwd[];
- extern const char gt[];
- extern const char gte[];
- extern const char lt[];
- extern const char lte[];
- extern const char eq[];
- extern const char neq[];
- extern const char true_kwd[];
- extern const char false_kwd[];
-
- // miscellaneous punctuation and delimiters
- extern const char percent_str[];
- extern const char empty_str[];
- extern const char slash_slash[];
- extern const char slash_star[];
- extern const char star_slash[];
- extern const char hash_lbrace[];
- extern const char rbrace[];
- extern const char rparen[];
- extern const char sign_chars[];
- extern const char op_chars[];
- extern const char hyphen[];
- extern const char ellipsis[];
- // extern const char url_space_chars[];
-
- // type names
- extern const char numeric_name[];
- extern const char number_name[];
- extern const char percentage_name[];
- extern const char dimension_name[];
- extern const char string_name[];
- extern const char bool_name[];
- extern const char color_name[];
- extern const char list_name[];
- extern const char map_name[];
- extern const char arglist_name[];
-
- // constants for uri parsing (RFC 3986 Appendix A.)
- extern const char uri_chars[];
- extern const char real_uri_chars[];
-
- // some specific constant character classes
- // they must be static to be useable by lexer
- extern const char static_ops[];
- extern const char selector_list_delims[];
- extern const char complex_selector_delims[];
- extern const char selector_combinator_ops[];
- extern const char attribute_compare_modifiers[];
- extern const char selector_lookahead_ops[];
-
- // byte order marks
- // (taken from http://en.wikipedia.org/wiki/Byte_order_mark)
- extern const unsigned char utf_8_bom[];
- extern const unsigned char utf_16_bom_be[];
- extern const unsigned char utf_16_bom_le[];
- extern const unsigned char utf_32_bom_be[];
- extern const unsigned char utf_32_bom_le[];
- extern const unsigned char utf_7_bom_1[];
- extern const unsigned char utf_7_bom_2[];
- extern const unsigned char utf_7_bom_3[];
- extern const unsigned char utf_7_bom_4[];
- extern const unsigned char utf_7_bom_5[];
- extern const unsigned char utf_1_bom[];
- extern const unsigned char utf_ebcdic_bom[];
- extern const unsigned char scsu_bom[];
- extern const unsigned char bocu_1_bom[];
- extern const unsigned char gb_18030_bom[];
-
- }
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/context.cpp b/node_modules/node-sass/src/libsass/src/context.cpp
deleted file mode 100644
index dae2cbd..0000000
--- a/node_modules/node-sass/src/libsass/src/context.cpp
+++ /dev/null
@@ -1,880 +0,0 @@
-#include "sass.hpp"
-#include <string>
-#include <cstdlib>
-#include <cstring>
-#include <iomanip>
-#include <sstream>
-#include <iostream>
-
-#include "ast.hpp"
-#include "util.hpp"
-#include "sass.h"
-#include "context.hpp"
-#include "plugins.hpp"
-#include "constants.hpp"
-#include "parser.hpp"
-#include "file.hpp"
-#include "inspect.hpp"
-#include "output.hpp"
-#include "expand.hpp"
-#include "eval.hpp"
-#include "check_nesting.hpp"
-#include "cssize.hpp"
-#include "listize.hpp"
-#include "extend.hpp"
-#include "remove_placeholders.hpp"
-#include "functions.hpp"
-#include "sass_functions.hpp"
-#include "backtrace.hpp"
-#include "sass2scss.h"
-#include "prelexer.hpp"
-#include "emitter.hpp"
-
-namespace Sass {
- using namespace Constants;
- using namespace File;
- using namespace Sass;
-
- inline bool sort_importers (const Sass_Importer_Entry& i, const Sass_Importer_Entry& j)
- { return sass_importer_get_priority(i) > sass_importer_get_priority(j); }
-
- static std::string safe_input(const char* in_path)
- {
- // enforce some safe defaults
- // used to create relative file links
- std::string safe_path(in_path ? in_path : "");
- return safe_path == "" ? "stdin" : safe_path;
- }
-
- static std::string safe_output(const char* out_path, const std::string& input_path = "")
- {
- std::string safe_path(out_path ? out_path : "");
- // maybe we can extract an output path from input path
- if (safe_path == "" && input_path != "") {
- int lastindex = static_cast<int>(input_path.find_last_of("."));
- return (lastindex > -1 ? input_path.substr(0, lastindex) : input_path) + ".css";
- }
- // enforce some safe defaults
- // used to create relative file links
- return safe_path == "" ? "stdout" : safe_path;
- }
-
- Context::Context(struct Sass_Context& c_ctx)
- : CWD(File::get_cwd()),
- c_options(c_ctx),
- entry_path(""),
- head_imports(0),
- plugins(),
- emitter(c_options),
-
- ast_gc(),
- strings(),
- resources(),
- sheets(),
- subset_map(),
- import_stack(),
- callee_stack(),
- traces(),
- c_compiler(NULL),
-
- c_headers (std::vector<Sass_Importer_Entry>()),
- c_importers (std::vector<Sass_Importer_Entry>()),
- c_functions (std::vector<Sass_Function_Entry>()),
-
- indent (safe_str(c_options.indent, " ")),
- linefeed (safe_str(c_options.linefeed, "\n")),
-
- input_path (make_canonical_path(safe_input(c_options.input_path))),
- output_path (make_canonical_path(safe_output(c_options.output_path, input_path))),
- source_map_file (make_canonical_path(safe_str(c_options.source_map_file, ""))),
- source_map_root (make_canonical_path(safe_str(c_options.source_map_root, "")))
-
- {
-
- // Sass 3.4: The current working directory will no longer be placed onto the Sass load path by default.
- // If you need the current working directory to be available, set SASS_PATH=. in your shell's environment.
- // include_paths.push_back(CWD);
-
- // collect more paths from different options
- collect_include_paths(c_options.include_path);
- collect_include_paths(c_options.include_paths);
- collect_plugin_paths(c_options.plugin_path);
- collect_plugin_paths(c_options.plugin_paths);
-
- // load plugins and register custom behaviors
- for(auto plug : plugin_paths) plugins.load_plugins(plug);
- for(auto fn : plugins.get_headers()) c_headers.push_back(fn);
- for(auto fn : plugins.get_importers()) c_importers.push_back(fn);
- for(auto fn : plugins.get_functions()) c_functions.push_back(fn);
-
- // sort the items by priority (lowest first)
- sort (c_headers.begin(), c_headers.end(), sort_importers);
- sort (c_importers.begin(), c_importers.end(), sort_importers);
-
- emitter.set_filename(abs2rel(output_path, source_map_file, CWD));
-
- }
-
- void Context::add_c_function(Sass_Function_Entry function)
- {
- c_functions.push_back(function);
- }
- void Context::add_c_header(Sass_Importer_Entry header)
- {
- c_headers.push_back(header);
- // need to sort the array afterwards (no big deal)
- sort (c_headers.begin(), c_headers.end(), sort_importers);
- }
- void Context::add_c_importer(Sass_Importer_Entry importer)
- {
- c_importers.push_back(importer);
- // need to sort the array afterwards (no big deal)
- sort (c_importers.begin(), c_importers.end(), sort_importers);
- }
-
- Context::~Context()
- {
- // resources were allocated by malloc
- for (size_t i = 0; i < resources.size(); ++i) {
- free(resources[i].contents);
- free(resources[i].srcmap);
- }
- // free all strings we kept alive during compiler execution
- for (size_t n = 0; n < strings.size(); ++n) free(strings[n]);
- // everything that gets put into sources will be freed by us
- // this shouldn't have anything in it anyway!?
- for (size_t m = 0; m < import_stack.size(); ++m) {
- sass_import_take_source(import_stack[m]);
- sass_import_take_srcmap(import_stack[m]);
- sass_delete_import(import_stack[m]);
- }
- // clear inner structures (vectors) and input source
- resources.clear(); import_stack.clear();
- subset_map.clear(), sheets.clear();
- }
-
- Data_Context::~Data_Context()
- {
- // --> this will be freed by resources
- // make sure we free the source even if not processed!
- // if (resources.size() == 0 && source_c_str) free(source_c_str);
- // if (resources.size() == 0 && srcmap_c_str) free(srcmap_c_str);
- // source_c_str = 0; srcmap_c_str = 0;
- }
-
- File_Context::~File_Context()
- {
- }
-
- void Context::collect_include_paths(const char* paths_str)
- {
- if (paths_str) {
- const char* beg = paths_str;
- const char* end = Prelexer::find_first<PATH_SEP>(beg);
-
- while (end) {
- std::string path(beg, end - beg);
- if (!path.empty()) {
- if (*path.rbegin() != '/') path += '/';
- include_paths.push_back(path);
- }
- beg = end + 1;
- end = Prelexer::find_first<PATH_SEP>(beg);
- }
-
- std::string path(beg);
- if (!path.empty()) {
- if (*path.rbegin() != '/') path += '/';
- include_paths.push_back(path);
- }
- }
- }
-
- void Context::collect_include_paths(string_list* paths_array)
- {
- while (paths_array)
- {
- collect_include_paths(paths_array->string);
- paths_array = paths_array->next;
- }
- }
-
- void Context::collect_plugin_paths(const char* paths_str)
- {
- if (paths_str) {
- const char* beg = paths_str;
- const char* end = Prelexer::find_first<PATH_SEP>(beg);
-
- while (end) {
- std::string path(beg, end - beg);
- if (!path.empty()) {
- if (*path.rbegin() != '/') path += '/';
- plugin_paths.push_back(path);
- }
- beg = end + 1;
- end = Prelexer::find_first<PATH_SEP>(beg);
- }
-
- std::string path(beg);
- if (!path.empty()) {
- if (*path.rbegin() != '/') path += '/';
- plugin_paths.push_back(path);
- }
- }
- }
-
- void Context::collect_plugin_paths(string_list* paths_array)
- {
- while (paths_array)
- {
- collect_plugin_paths(paths_array->string);
- paths_array = paths_array->next;
- }
- }
-
- // resolve the imp_path in base_path or include_paths
- // looks for alternatives and returns a list from one directory
- std::vector<Include> Context::find_includes(const Importer& import)
- {
- // make sure we resolve against an absolute path
- std::string base_path(rel2abs(import.base_path));
- // first try to resolve the load path relative to the base path
- std::vector<Include> vec(resolve_includes(base_path, import.imp_path));
- // then search in every include path (but only if nothing found yet)
- for (size_t i = 0, S = include_paths.size(); vec.size() == 0 && i < S; ++i)
- {
- // call resolve_includes and individual base path and append all results
- std::vector<Include> resolved(resolve_includes(include_paths[i], import.imp_path));
- if (resolved.size()) vec.insert(vec.end(), resolved.begin(), resolved.end());
- }
- // return vector
- return vec;
- }
-
- // register include with resolved path and its content
- // memory of the resources will be freed by us on exit
- void Context::register_resource(const Include& inc, const Resource& res)
- {
-
- // do not parse same resource twice
- // maybe raise an error in this case
- // if (sheets.count(inc.abs_path)) {
- // free(res.contents); free(res.srcmap);
- // throw std::runtime_error("duplicate resource registered");
- // return;
- // }
-
- // get index for this resource
- size_t idx = resources.size();
-
- // tell emitter about new resource
- emitter.add_source_index(idx);
-
- // put resources under our control
- // the memory will be freed later
- resources.push_back(res);
-
- // add a relative link to the working directory
- included_files.push_back(inc.abs_path);
- // add a relative link to the source map output file
- srcmap_links.push_back(abs2rel(inc.abs_path, source_map_file, CWD));
-
- // get pointer to the loaded content
- Sass_Import_Entry import = sass_make_import(
- inc.imp_path.c_str(),
- inc.abs_path.c_str(),
- res.contents,
- res.srcmap
- );
- // add the entry to the stack
- import_stack.push_back(import);
-
- // get pointer to the loaded content
- const char* contents = resources[idx].contents;
- // keep a copy of the path around (for parserstates)
- // ToDo: we clean it, but still not very elegant!?
- strings.push_back(sass_copy_c_string(inc.abs_path.c_str()));
- // create the initial parser state from resource
- ParserState pstate(strings.back(), contents, idx);
-
- // check existing import stack for possible recursion
- for (size_t i = 0; i < import_stack.size() - 2; ++i) {
- auto parent = import_stack[i];
- if (std::strcmp(parent->abs_path, import->abs_path) == 0) {
- std::string cwd(File::get_cwd());
- // make path relative to the current directory
- std::string stack("An @import loop has been found:");
- for (size_t n = 1; n < i + 2; ++n) {
- stack += "\n " + std::string(File::abs2rel(import_stack[n]->abs_path, cwd, cwd)) +
- " imports " + std::string(File::abs2rel(import_stack[n+1]->abs_path, cwd, cwd));
- }
- // implement error throw directly until we
- // decided how to handle full stack traces
- throw Exception::InvalidSyntax(pstate, traces, stack);
- // error(stack, prstate ? *prstate : pstate, import_stack);
- }
- }
-
- // create a parser instance from the given c_str buffer
- Parser p(Parser::from_c_str(contents, *this, traces, pstate));
- // do not yet dispose these buffers
- sass_import_take_source(import);
- sass_import_take_srcmap(import);
- // then parse the root block
- Block_Obj root = p.parse();
- // delete memory of current stack frame
- sass_delete_import(import_stack.back());
- // remove current stack frame
- import_stack.pop_back();
- // create key/value pair for ast node
- std::pair<const std::string, StyleSheet>
- ast_pair(inc.abs_path, { res, root });
- // register resulting resource
- sheets.insert(ast_pair);
- }
-
- // register include with resolved path and its content
- // memory of the resources will be freed by us on exit
- void Context::register_resource(const Include& inc, const Resource& res, ParserState& prstate)
- {
- traces.push_back(Backtrace(prstate));
- register_resource(inc, res);
- traces.pop_back();
- }
-
- // Add a new import to the context (called from `import_url`)
- Include Context::load_import(const Importer& imp, ParserState pstate)
- {
-
- // search for valid imports (ie. partials) on the filesystem
- // this may return more than one valid result (ambiguous imp_path)
- const std::vector<Include> resolved(find_includes(imp));
-
- // error nicely on ambiguous imp_path
- if (resolved.size() > 1) {
- std::stringstream msg_stream;
- msg_stream << "It's not clear which file to import for ";
- msg_stream << "'@import \"" << imp.imp_path << "\"'." << "\n";
- msg_stream << "Candidates:" << "\n";
- for (size_t i = 0, L = resolved.size(); i < L; ++i)
- { msg_stream << " " << resolved[i].imp_path << "\n"; }
- msg_stream << "Please delete or rename all but one of these files." << "\n";
- error(msg_stream.str(), pstate, traces);
- }
-
- // process the resolved entry
- else if (resolved.size() == 1) {
- bool use_cache = c_importers.size() == 0;
- // use cache for the resource loading
- if (use_cache && sheets.count(resolved[0].abs_path)) return resolved[0];
- // try to read the content of the resolved file entry
- // the memory buffer returned must be freed by us!
- if (char* contents = read_file(resolved[0].abs_path)) {
- // register the newly resolved file resource
- register_resource(resolved[0], { contents, 0 }, pstate);
- // return resolved entry
- return resolved[0];
- }
- }
-
- // nothing found
- return { imp, "" };
-
- }
-
- void Context::import_url (Import_Ptr imp, std::string load_path, const std::string& ctx_path) {
-
- ParserState pstate(imp->pstate());
- std::string imp_path(unquote(load_path));
- std::string protocol("file");
-
- using namespace Prelexer;
- if (const char* proto = sequence< identifier, exactly<':'>, exactly<'/'>, exactly<'/'> >(imp_path.c_str())) {
-
- protocol = std::string(imp_path.c_str(), proto - 3);
- // if (protocol.compare("file") && true) { }
- }
-
- // add urls (protocol other than file) and urls without procotol to `urls` member
- // ToDo: if ctx_path is already a file resource, we should not add it here?
- if (imp->import_queries() || protocol != "file" || imp_path.substr(0, 2) == "//") {
- imp->urls().push_back(SASS_MEMORY_NEW(String_Quoted, imp->pstate(), load_path));
- }
- else if (imp_path.length() > 4 && imp_path.substr(imp_path.length() - 4, 4) == ".css") {
- String_Constant_Ptr loc = SASS_MEMORY_NEW(String_Constant, pstate, unquote(load_path));
- Argument_Obj loc_arg = SASS_MEMORY_NEW(Argument, pstate, loc);
- Arguments_Obj loc_args = SASS_MEMORY_NEW(Arguments, pstate);
- loc_args->append(loc_arg);
- Function_Call_Ptr new_url = SASS_MEMORY_NEW(Function_Call, pstate, "url", loc_args);
- imp->urls().push_back(new_url);
- }
- else {
- const Importer importer(imp_path, ctx_path);
- Include include(load_import(importer, pstate));
- if (include.abs_path.empty()) {
- error("File to import not found or unreadable: " + imp_path + ".", pstate, traces);
- }
- imp->incs().push_back(include);
- }
-
- }
-
-
- // call custom importers on the given (unquoted) load_path and eventually parse the resulting style_sheet
- bool Context::call_loader(const std::string& load_path, const char* ctx_path, ParserState& pstate, Import_Ptr imp, std::vector<Sass_Importer_Entry> importers, bool only_one)
- {
- // unique counter
- size_t count = 0;
- // need one correct import
- bool has_import = false;
- // process all custom importers (or custom headers)
- for (Sass_Importer_Entry& importer_ent : importers) {
- // int priority = sass_importer_get_priority(importer);
- Sass_Importer_Fn fn = sass_importer_get_function(importer_ent);
- // skip importer if it returns NULL
- if (Sass_Import_List includes =
- fn(load_path.c_str(), importer_ent, c_compiler)
- ) {
- // get c pointer copy to iterate over
- Sass_Import_List it_includes = includes;
- while (*it_includes) { ++count;
- // create unique path to use as key
- std::string uniq_path = load_path;
- if (!only_one && count) {
- std::stringstream path_strm;
- path_strm << uniq_path << ":" << count;
- uniq_path = path_strm.str();
- }
- // create the importer struct
- Importer importer(uniq_path, ctx_path);
- // query data from the current include
- Sass_Import_Entry include_ent = *it_includes;
- char* source = sass_import_take_source(include_ent);
- char* srcmap = sass_import_take_srcmap(include_ent);
- size_t line = sass_import_get_error_line(include_ent);
- size_t column = sass_import_get_error_column(include_ent);
- const char *abs_path = sass_import_get_abs_path(include_ent);
- // handle error message passed back from custom importer
- // it may (or may not) override the line and column info
- if (const char* err_message = sass_import_get_error_message(include_ent)) {
- if (source || srcmap) register_resource({ importer, uniq_path }, { source, srcmap }, pstate);
- if (line == std::string::npos && column == std::string::npos) error(err_message, pstate, traces);
- else error(err_message, ParserState(ctx_path, source, Position(line, column)), traces);
- }
- // content for import was set
- else if (source) {
- // resolved abs_path should be set by custom importer
- // use the created uniq_path as fallback (maybe enforce)
- std::string path_key(abs_path ? abs_path : uniq_path);
- // create the importer struct
- Include include(importer, path_key);
- // attach information to AST node
- imp->incs().push_back(include);
- // register the resource buffers
- register_resource(include, { source, srcmap }, pstate);
- }
- // only a path was retuned
- // try to load it like normal
- else if(abs_path) {
- // checks some urls to preserve
- // `http://`, `https://` and `//`
- // or dispatchs to `import_file`
- // which will check for a `.css` extension
- // or resolves the file on the filesystem
- // added and resolved via `add_file`
- // finally stores everything on `imp`
- import_url(imp, abs_path, ctx_path);
- }
- // move to next
- ++it_includes;
- }
- // deallocate the returned memory
- sass_delete_import_list(includes);
- // set success flag
- has_import = true;
- // break out of loop
- if (only_one) break;
- }
- }
- // return result
- return has_import;
- }
-
- void register_function(Context&, Signature sig, Native_Function f, Env* env);
- void register_function(Context&, Signature sig, Native_Function f, size_t arity, Env* env);
- void register_overload_stub(Context&, std::string name, Env* env);
- void register_built_in_functions(Context&, Env* env);
- void register_c_functions(Context&, Env* env, Sass_Function_List);
- void register_c_function(Context&, Env* env, Sass_Function_Entry);
-
- char* Context::render(Block_Obj root)
- {
- // check for valid block
- if (!root) return 0;
- // start the render process
- root->perform(&emitter);
- // finish emitter stream
- emitter.finalize();
- // get the resulting buffer from stream
- OutputBuffer emitted = emitter.get_buffer();
- // should we append a source map url?
- if (!c_options.omit_source_map_url) {
- // generate an embeded source map
- if (c_options.source_map_embed) {
- emitted.buffer += linefeed;
- emitted.buffer += format_embedded_source_map();
- }
- // or just link the generated one
- else if (source_map_file != "") {
- emitted.buffer += linefeed;
- emitted.buffer += format_source_mapping_url(source_map_file);
- }
- }
- // create a copy of the resulting buffer string
- // this must be freed or taken over by implementor
- return sass_copy_c_string(emitted.buffer.c_str());
- }
-
- void Context::apply_custom_headers(Block_Obj root, const char* ctx_path, ParserState pstate)
- {
- // create a custom import to resolve headers
- Import_Obj imp = SASS_MEMORY_NEW(Import, pstate);
- // dispatch headers which will add custom functions
- // custom headers are added to the import instance
- call_headers(entry_path, ctx_path, pstate, imp);
- // increase head count to skip later
- head_imports += resources.size() - 1;
- // add the statement if we have urls
- if (!imp->urls().empty()) root->append(imp);
- // process all other resources (add Import_Stub nodes)
- for (size_t i = 0, S = imp->incs().size(); i < S; ++i) {
- root->append(SASS_MEMORY_NEW(Import_Stub, pstate, imp->incs()[i]));
- }
- }
-
- Block_Obj File_Context::parse()
- {
-
- // check if entry file is given
- if (input_path.empty()) return 0;
-
- // create absolute path from input filename
- // ToDo: this should be resolved via custom importers
- std::string abs_path(rel2abs(input_path, CWD));
-
- // try to load the entry file
- char* contents = read_file(abs_path);
-
- // alternatively also look inside each include path folder
- // I think this differs from ruby sass (IMO too late to remove)
- for (size_t i = 0, S = include_paths.size(); contents == 0 && i < S; ++i) {
- // build absolute path for this include path entry
- abs_path = rel2abs(input_path, include_paths[i]);
- // try to load the resulting path
- contents = read_file(abs_path);
- }
-
- // abort early if no content could be loaded (various reasons)
- if (!contents) throw std::runtime_error("File to read not found or unreadable: " + input_path);
-
- // store entry path
- entry_path = abs_path;
-
- // create entry only for import stack
- Sass_Import_Entry import = sass_make_import(
- input_path.c_str(),
- entry_path.c_str(),
- contents,
- 0
- );
- // add the entry to the stack
- import_stack.push_back(import);
-
- // create the source entry for file entry
- register_resource({{ input_path, "." }, abs_path }, { contents, 0 });
-
- // create root ast tree node
- return compile();
-
- }
-
- Block_Obj Data_Context::parse()
- {
-
- // check if source string is given
- if (!source_c_str) return 0;
-
- // convert indented sass syntax
- if(c_options.is_indented_syntax_src) {
- // call sass2scss to convert the string
- char * converted = sass2scss(source_c_str,
- // preserve the structure as much as possible
- SASS2SCSS_PRETTIFY_1 | SASS2SCSS_KEEP_COMMENT);
- // replace old source_c_str with converted
- free(source_c_str); source_c_str = converted;
- }
-
- // remember entry path (defaults to stdin for string)
- entry_path = input_path.empty() ? "stdin" : input_path;
-
- // ToDo: this may be resolved via custom importers
- std::string abs_path(rel2abs(entry_path));
- char* abs_path_c_str = sass_copy_c_string(abs_path.c_str());
- strings.push_back(abs_path_c_str);
-
- // create entry only for the import stack
- Sass_Import_Entry import = sass_make_import(
- entry_path.c_str(),
- abs_path_c_str,
- source_c_str,
- srcmap_c_str
- );
- // add the entry to the stack
- import_stack.push_back(import);
-
- // register a synthetic resource (path does not really exist, skip in includes)
- register_resource({{ input_path, "." }, input_path }, { source_c_str, srcmap_c_str });
-
- // create root ast tree node
- return compile();
- }
-
-
-
- // parse root block from includes
- Block_Obj Context::compile()
- {
- // abort if there is no data
- if (resources.size() == 0) return 0;
- // get root block from the first style sheet
- Block_Obj root = sheets.at(entry_path).root;
- // abort on invalid root
- if (root.isNull()) return 0;
- Env global; // create root environment
- // register built-in functions on env
- register_built_in_functions(*this, &global);
- // register custom functions (defined via C-API)
- for (size_t i = 0, S = c_functions.size(); i < S; ++i)
- { register_c_function(*this, &global, c_functions[i]); }
- // create initial backtrace entry
- // create crtp visitor objects
- Expand expand(*this, &global);
- Cssize cssize(*this);
- CheckNesting check_nesting;
- // check nesting in all files
- for (auto sheet : sheets) {
- auto styles = sheet.second;
- check_nesting(styles.root);
- }
- // expand and eval the tree
- root = expand(root);
- // check nesting
- check_nesting(root);
- // merge and bubble certain rules
- root = cssize(root);
- // should we extend something?
- if (!subset_map.empty()) {
- // create crtp visitor object
- Extend extend(subset_map);
- extend.setEval(expand.eval);
- // extend tree nodes
- extend(root);
- }
-
- // clean up by removing empty placeholders
- // ToDo: maybe we can do this somewhere else?
- Remove_Placeholders remove_placeholders;
- root->perform(&remove_placeholders);
- // return processed tree
- return root;
- }
- // EO compile
-
- std::string Context::format_embedded_source_map()
- {
- std::string map = emitter.render_srcmap(*this);
- std::istringstream is( map );
- std::ostringstream buffer;
- base64::encoder E;
- E.encode(is, buffer);
- std::string url = "data:application/json;base64," + buffer.str();
- url.erase(url.size() - 1);
- return "/*# sourceMappingURL=" + url + " */";
- }
-
- std::string Context::format_source_mapping_url(const std::string& file)
- {
- std::string url = abs2rel(file, output_path, CWD);
- return "/*# sourceMappingURL=" + url + " */";
- }
-
- char* Context::render_srcmap()
- {
- if (source_map_file == "") return 0;
- std::string map = emitter.render_srcmap(*this);
- return sass_copy_c_string(map.c_str());
- }
-
-
- // for data context we want to start after "stdin"
- // we probably always want to skip the header includes?
- std::vector<std::string> Context::get_included_files(bool skip, size_t headers)
- {
- // create a copy of the vector for manipulations
- std::vector<std::string> includes = included_files;
- if (includes.size() == 0) return includes;
- if (skip) { includes.erase( includes.begin(), includes.begin() + 1 + headers); }
- else { includes.erase( includes.begin() + 1, includes.begin() + 1 + headers); }
- includes.erase( std::unique( includes.begin(), includes.end() ), includes.end() );
- std::sort( includes.begin() + (skip ? 0 : 1), includes.end() );
- return includes;
- }
-
- void register_function(Context& ctx, Signature sig, Native_Function f, Env* env)
- {
- Definition_Ptr def = make_native_function(sig, f, ctx);
- def->environment(env);
- (*env)[def->name() + "[f]"] = def;
- }
-
- void register_function(Context& ctx, Signature sig, Native_Function f, size_t arity, Env* env)
- {
- Definition_Ptr def = make_native_function(sig, f, ctx);
- std::stringstream ss;
- ss << def->name() << "[f]" << arity;
- def->environment(env);
- (*env)[ss.str()] = def;
- }
-
- void register_overload_stub(Context& ctx, std::string name, Env* env)
- {
- Definition_Ptr stub = SASS_MEMORY_NEW(Definition,
- ParserState("[built-in function]"),
- 0,
- name,
- 0,
- 0,
- true);
- (*env)[name + "[f]"] = stub;
- }
-
-
- void register_built_in_functions(Context& ctx, Env* env)
- {
- using namespace Functions;
- // RGB Functions
- register_function(ctx, rgb_sig, rgb, env);
- register_overload_stub(ctx, "rgba", env);
- register_function(ctx, rgba_4_sig, rgba_4, 4, env);
- register_function(ctx, rgba_2_sig, rgba_2, 2, env);
- register_function(ctx, red_sig, red, env);
- register_function(ctx, green_sig, green, env);
- register_function(ctx, blue_sig, blue, env);
- register_function(ctx, mix_sig, mix, env);
- // HSL Functions
- register_function(ctx, hsl_sig, hsl, env);
- register_function(ctx, hsla_sig, hsla, env);
- register_function(ctx, hue_sig, hue, env);
- register_function(ctx, saturation_sig, saturation, env);
- register_function(ctx, lightness_sig, lightness, env);
- register_function(ctx, adjust_hue_sig, adjust_hue, env);
- register_function(ctx, lighten_sig, lighten, env);
- register_function(ctx, darken_sig, darken, env);
- register_function(ctx, saturate_sig, saturate, env);
- register_function(ctx, desaturate_sig, desaturate, env);
- register_function(ctx, grayscale_sig, grayscale, env);
- register_function(ctx, complement_sig, complement, env);
- register_function(ctx, invert_sig, invert, env);
- // Opacity Functions
- register_function(ctx, alpha_sig, alpha, env);
- register_function(ctx, opacity_sig, alpha, env);
- register_function(ctx, opacify_sig, opacify, env);
- register_function(ctx, fade_in_sig, opacify, env);
- register_function(ctx, transparentize_sig, transparentize, env);
- register_function(ctx, fade_out_sig, transparentize, env);
- // Other Color Functions
- register_function(ctx, adjust_color_sig, adjust_color, env);
- register_function(ctx, scale_color_sig, scale_color, env);
- register_function(ctx, change_color_sig, change_color, env);
- register_function(ctx, ie_hex_str_sig, ie_hex_str, env);
- // String Functions
- register_function(ctx, unquote_sig, sass_unquote, env);
- register_function(ctx, quote_sig, sass_quote, env);
- register_function(ctx, str_length_sig, str_length, env);
- register_function(ctx, str_insert_sig, str_insert, env);
- register_function(ctx, str_index_sig, str_index, env);
- register_function(ctx, str_slice_sig, str_slice, env);
- register_function(ctx, to_upper_case_sig, to_upper_case, env);
- register_function(ctx, to_lower_case_sig, to_lower_case, env);
- // Number Functions
- register_function(ctx, percentage_sig, percentage, env);
- register_function(ctx, round_sig, round, env);
- register_function(ctx, ceil_sig, ceil, env);
- register_function(ctx, floor_sig, floor, env);
- register_function(ctx, abs_sig, abs, env);
- register_function(ctx, min_sig, min, env);
- register_function(ctx, max_sig, max, env);
- register_function(ctx, random_sig, random, env);
- // List Functions
- register_function(ctx, length_sig, length, env);
- register_function(ctx, nth_sig, nth, env);
- register_function(ctx, set_nth_sig, set_nth, env);
- register_function(ctx, index_sig, index, env);
- register_function(ctx, join_sig, join, env);
- register_function(ctx, append_sig, append, env);
- register_function(ctx, zip_sig, zip, env);
- register_function(ctx, list_separator_sig, list_separator, env);
- register_function(ctx, is_bracketed_sig, is_bracketed, env);
- // Map Functions
- register_function(ctx, map_get_sig, map_get, env);
- register_function(ctx, map_merge_sig, map_merge, env);
- register_function(ctx, map_remove_sig, map_remove, env);
- register_function(ctx, map_keys_sig, map_keys, env);
- register_function(ctx, map_values_sig, map_values, env);
- register_function(ctx, map_has_key_sig, map_has_key, env);
- register_function(ctx, keywords_sig, keywords, env);
- // Introspection Functions
- register_function(ctx, type_of_sig, type_of, env);
- register_function(ctx, unit_sig, unit, env);
- register_function(ctx, unitless_sig, unitless, env);
- register_function(ctx, comparable_sig, comparable, env);
- register_function(ctx, variable_exists_sig, variable_exists, env);
- register_function(ctx, global_variable_exists_sig, global_variable_exists, env);
- register_function(ctx, function_exists_sig, function_exists, env);
- register_function(ctx, mixin_exists_sig, mixin_exists, env);
- register_function(ctx, feature_exists_sig, feature_exists, env);
- register_function(ctx, call_sig, call, env);
- register_function(ctx, content_exists_sig, content_exists, env);
- register_function(ctx, get_function_sig, get_function, env);
- // Boolean Functions
- register_function(ctx, not_sig, sass_not, env);
- register_function(ctx, if_sig, sass_if, env);
- // Misc Functions
- register_function(ctx, inspect_sig, inspect, env);
- register_function(ctx, unique_id_sig, unique_id, env);
- // Selector functions
- register_function(ctx, selector_nest_sig, selector_nest, env);
- register_function(ctx, selector_append_sig, selector_append, env);
- register_function(ctx, selector_extend_sig, selector_extend, env);
- register_function(ctx, selector_replace_sig, selector_replace, env);
- register_function(ctx, selector_unify_sig, selector_unify, env);
- register_function(ctx, is_superselector_sig, is_superselector, env);
- register_function(ctx, simple_selectors_sig, simple_selectors, env);
- register_function(ctx, selector_parse_sig, selector_parse, env);
- }
-
- void register_c_functions(Context& ctx, Env* env, Sass_Function_List descrs)
- {
- while (descrs && *descrs) {
- register_c_function(ctx, env, *descrs);
- ++descrs;
- }
- }
- void register_c_function(Context& ctx, Env* env, Sass_Function_Entry descr)
- {
- Definition_Ptr def = make_c_function(descr, ctx);
- def->environment(env);
- (*env)[def->name() + "[f]"] = def;
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/context.hpp b/node_modules/node-sass/src/libsass/src/context.hpp
deleted file mode 100644
index d3caba1..0000000
--- a/node_modules/node-sass/src/libsass/src/context.hpp
+++ /dev/null
@@ -1,152 +0,0 @@
-#ifndef SASS_CONTEXT_H
-#define SASS_CONTEXT_H
-
-#include <string>
-#include <vector>
-#include <map>
-
-#define BUFFERSIZE 255
-#include "b64/encode.h"
-
-#include "ast_fwd_decl.hpp"
-#include "kwd_arg_macros.hpp"
-#include "ast_fwd_decl.hpp"
-#include "sass_context.hpp"
-#include "environment.hpp"
-#include "source_map.hpp"
-#include "subset_map.hpp"
-#include "backtrace.hpp"
-#include "output.hpp"
-#include "plugins.hpp"
-#include "file.hpp"
-
-
-struct Sass_Function;
-
-namespace Sass {
-
- class Context {
- public:
- void import_url (Import_Ptr imp, std::string load_path, const std::string& ctx_path);
- bool call_headers(const std::string& load_path, const char* ctx_path, ParserState& pstate, Import_Ptr imp)
- { return call_loader(load_path, ctx_path, pstate, imp, c_headers, false); };
- bool call_importers(const std::string& load_path, const char* ctx_path, ParserState& pstate, Import_Ptr imp)
- { return call_loader(load_path, ctx_path, pstate, imp, c_importers, true); };
-
- private:
- bool call_loader(const std::string& load_path, const char* ctx_path, ParserState& pstate, Import_Ptr imp, std::vector<Sass_Importer_Entry> importers, bool only_one = true);
-
- public:
- const std::string CWD;
- struct Sass_Options& c_options;
- std::string entry_path;
- size_t head_imports;
- Plugins plugins;
- Output emitter;
-
- // generic ast node garbage container
- // used to avoid possible circular refs
- std::vector<AST_Node_Obj> ast_gc;
- // resources add under our control
- // these are guaranteed to be freed
- std::vector<char*> strings;
- std::vector<Resource> resources;
- std::map<const std::string, StyleSheet> sheets;
- Subset_Map subset_map;
- std::vector<Sass_Import_Entry> import_stack;
- std::vector<Sass_Callee> callee_stack;
- std::vector<Backtrace> traces;
-
- struct Sass_Compiler* c_compiler;
-
- // absolute paths to includes
- std::vector<std::string> included_files;
- // relative includes for sourcemap
- std::vector<std::string> srcmap_links;
- // vectors above have same size
-
- std::vector<std::string> plugin_paths; // relative paths to load plugins
- std::vector<std::string> include_paths; // lookup paths for includes
-
-
-
-
-
- void apply_custom_headers(Block_Obj root, const char* path, ParserState pstate);
-
- std::vector<Sass_Importer_Entry> c_headers;
- std::vector<Sass_Importer_Entry> c_importers;
- std::vector<Sass_Function_Entry> c_functions;
-
- void add_c_header(Sass_Importer_Entry header);
- void add_c_importer(Sass_Importer_Entry importer);
- void add_c_function(Sass_Function_Entry function);
-
- const std::string indent; // String to be used for indentation
- const std::string linefeed; // String to be used for line feeds
- const std::string input_path; // for relative paths in src-map
- const std::string output_path; // for relative paths to the output
- const std::string source_map_file; // path to source map file (enables feature)
- const std::string source_map_root; // path for sourceRoot property (pass-through)
-
- virtual ~Context();
- Context(struct Sass_Context&);
- virtual Block_Obj parse() = 0;
- virtual Block_Obj compile();
- virtual char* render(Block_Obj root);
- virtual char* render_srcmap();
-
- void register_resource(const Include&, const Resource&);
- void register_resource(const Include&, const Resource&, ParserState&);
- std::vector<Include> find_includes(const Importer& import);
- Include load_import(const Importer&, ParserState pstate);
-
- Sass_Output_Style output_style() { return c_options.output_style; };
- std::vector<std::string> get_included_files(bool skip = false, size_t headers = 0);
-
- private:
- void collect_plugin_paths(const char* paths_str);
- void collect_plugin_paths(string_list* paths_array);
- void collect_include_paths(const char* paths_str);
- void collect_include_paths(string_list* paths_array);
- std::string format_embedded_source_map();
- std::string format_source_mapping_url(const std::string& out_path);
-
-
- // void register_built_in_functions(Env* env);
- // void register_function(Signature sig, Native_Function f, Env* env);
- // void register_function(Signature sig, Native_Function f, size_t arity, Env* env);
- // void register_overload_stub(std::string name, Env* env);
-
- public:
- const std::string& cwd() { return CWD; };
- };
-
- class File_Context : public Context {
- public:
- File_Context(struct Sass_File_Context& ctx)
- : Context(ctx)
- { }
- virtual ~File_Context();
- virtual Block_Obj parse();
- };
-
- class Data_Context : public Context {
- public:
- char* source_c_str;
- char* srcmap_c_str;
- Data_Context(struct Sass_Data_Context& ctx)
- : Context(ctx)
- {
- source_c_str = ctx.source_string;
- srcmap_c_str = ctx.srcmap_string;
- ctx.source_string = 0; // passed away
- ctx.srcmap_string = 0; // passed away
- }
- virtual ~Data_Context();
- virtual Block_Obj parse();
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/cssize.cpp b/node_modules/node-sass/src/libsass/src/cssize.cpp
deleted file mode 100644
index 6a12fdf..0000000
--- a/node_modules/node-sass/src/libsass/src/cssize.cpp
+++ /dev/null
@@ -1,606 +0,0 @@
-#include "sass.hpp"
-#include <iostream>
-#include <typeinfo>
-#include <vector>
-
-#include "cssize.hpp"
-#include "context.hpp"
-
-namespace Sass {
-
- Cssize::Cssize(Context& ctx)
- : ctx(ctx),
- traces(ctx.traces),
- block_stack(std::vector<Block_Ptr>()),
- p_stack(std::vector<Statement_Ptr>())
- { }
-
- Statement_Ptr Cssize::parent()
- {
- return p_stack.size() ? p_stack.back() : block_stack.front();
- }
-
- Block_Ptr Cssize::operator()(Block_Ptr b)
- {
- Block_Obj bb = SASS_MEMORY_NEW(Block, b->pstate(), b->length(), b->is_root());
- // bb->tabs(b->tabs());
- block_stack.push_back(bb);
- append_block(b, bb);
- block_stack.pop_back();
- return bb.detach();
- }
-
- Statement_Ptr Cssize::operator()(Trace_Ptr t)
- {
- traces.push_back(Backtrace(t->pstate()));
- auto result = t->block()->perform(this);
- traces.pop_back();
- return result;
- }
-
- Statement_Ptr Cssize::operator()(Declaration_Ptr d)
- {
- String_Obj property = Cast<String>(d->property());
-
- if (Declaration_Ptr dd = Cast<Declaration>(parent())) {
- String_Obj parent_property = Cast<String>(dd->property());
- property = SASS_MEMORY_NEW(String_Constant,
- d->property()->pstate(),
- parent_property->to_string() + "-" + property->to_string());
- if (!dd->value()) {
- d->tabs(dd->tabs() + 1);
- }
- }
-
- Declaration_Obj dd = SASS_MEMORY_NEW(Declaration,
- d->pstate(),
- property,
- d->value(),
- d->is_important(),
- d->is_custom_property());
- dd->is_indented(d->is_indented());
- dd->tabs(d->tabs());
-
- p_stack.push_back(dd);
- Block_Obj bb = d->block() ? operator()(d->block()) : NULL;
- p_stack.pop_back();
-
- if (bb && bb->length()) {
- if (dd->value() && !dd->value()->is_invisible()) {
- bb->unshift(dd);
- }
- return bb.detach();
- }
- else if (dd->value() && !dd->value()->is_invisible()) {
- return dd.detach();
- }
-
- return 0;
- }
-
- Statement_Ptr Cssize::operator()(Directive_Ptr r)
- {
- if (!r->block() || !r->block()->length()) return r;
-
- if (parent()->statement_type() == Statement::RULESET)
- {
- return (r->is_keyframes()) ? SASS_MEMORY_NEW(Bubble, r->pstate(), r) : bubble(r);
- }
-
- p_stack.push_back(r);
- Directive_Obj rr = SASS_MEMORY_NEW(Directive,
- r->pstate(),
- r->keyword(),
- r->selector(),
- r->block() ? operator()(r->block()) : 0);
- if (r->value()) rr->value(r->value());
- p_stack.pop_back();
-
- bool directive_exists = false;
- size_t L = rr->block() ? rr->block()->length() : 0;
- for (size_t i = 0; i < L && !directive_exists; ++i) {
- Statement_Obj s = r->block()->at(i);
- if (s->statement_type() != Statement::BUBBLE) directive_exists = true;
- else {
- Bubble_Obj s_obj = Cast<Bubble>(s);
- s = s_obj->node();
- if (s->statement_type() != Statement::DIRECTIVE) directive_exists = false;
- else directive_exists = (Cast<Directive>(s)->keyword() == rr->keyword());
- }
-
- }
-
- Block_Ptr result = SASS_MEMORY_NEW(Block, rr->pstate());
- if (!(directive_exists || rr->is_keyframes()))
- {
- Directive_Ptr empty_node = Cast<Directive>(rr);
- empty_node->block(SASS_MEMORY_NEW(Block, rr->block() ? rr->block()->pstate() : rr->pstate()));
- result->append(empty_node);
- }
-
- Block_Obj db = rr->block();
- if (db.isNull()) db = SASS_MEMORY_NEW(Block, rr->pstate());
- Block_Obj ss = debubble(db, rr);
- for (size_t i = 0, L = ss->length(); i < L; ++i) {
- result->append(ss->at(i));
- }
-
- return result;
- }
-
- Statement_Ptr Cssize::operator()(Keyframe_Rule_Ptr r)
- {
- if (!r->block() || !r->block()->length()) return r;
-
- Keyframe_Rule_Obj rr = SASS_MEMORY_NEW(Keyframe_Rule,
- r->pstate(),
- operator()(r->block()));
- if (!r->name().isNull()) rr->name(r->name());
-
- return debubble(rr->block(), rr);
- }
-
- Statement_Ptr Cssize::operator()(Ruleset_Ptr r)
- {
- p_stack.push_back(r);
- // this can return a string schema
- // string schema is not a statement!
- // r->block() is already a string schema
- // and that is comming from propset expand
- Block_Ptr bb = operator()(r->block());
- // this should protect us (at least a bit) from our mess
- // fixing this properly is harder that it should be ...
- if (Cast<Statement>(bb) == NULL) {
- error("Illegal nesting: Only properties may be nested beneath properties.", r->block()->pstate(), traces);
- }
- Ruleset_Obj rr = SASS_MEMORY_NEW(Ruleset,
- r->pstate(),
- r->selector(),
- bb);
-
- rr->is_root(r->is_root());
- // rr->tabs(r->block()->tabs());
- p_stack.pop_back();
-
- if (!rr->block()) {
- error("Illegal nesting: Only properties may be nested beneath properties.", r->block()->pstate(), traces);
- }
-
- Block_Obj props = SASS_MEMORY_NEW(Block, rr->block()->pstate());
- Block_Ptr rules = SASS_MEMORY_NEW(Block, rr->block()->pstate());
- for (size_t i = 0, L = rr->block()->length(); i < L; i++)
- {
- Statement_Ptr s = rr->block()->at(i);
- if (bubblable(s)) rules->append(s);
- if (!bubblable(s)) props->append(s);
- }
-
- if (props->length())
- {
- Block_Obj pb = SASS_MEMORY_NEW(Block, rr->block()->pstate());
- pb->concat(props);
- rr->block(pb);
-
- for (size_t i = 0, L = rules->length(); i < L; i++)
- {
- Statement_Ptr stm = rules->at(i);
- stm->tabs(stm->tabs() + 1);
- }
-
- rules->unshift(rr);
- }
-
- Block_Ptr ptr = rules;
- rules = debubble(rules);
- void* lp = ptr;
- void* rp = rules;
- if (lp != rp) {
- Block_Obj obj = ptr;
- }
-
- if (!(!rules->length() ||
- !bubblable(rules->last()) ||
- parent()->statement_type() == Statement::RULESET))
- {
- rules->last()->group_end(true);
- }
- return rules;
- }
-
- Statement_Ptr Cssize::operator()(Null_Ptr m)
- {
- return 0;
- }
-
- Statement_Ptr Cssize::operator()(Media_Block_Ptr m)
- {
- if (parent()->statement_type() == Statement::RULESET)
- { return bubble(m); }
-
- if (parent()->statement_type() == Statement::MEDIA)
- { return SASS_MEMORY_NEW(Bubble, m->pstate(), m); }
-
- p_stack.push_back(m);
-
- Media_Block_Obj mm = SASS_MEMORY_NEW(Media_Block,
- m->pstate(),
- m->media_queries(),
- operator()(m->block()));
- mm->tabs(m->tabs());
-
- p_stack.pop_back();
-
- return debubble(mm->block(), mm);
- }
-
- Statement_Ptr Cssize::operator()(Supports_Block_Ptr m)
- {
- if (!m->block()->length())
- { return m; }
-
- if (parent()->statement_type() == Statement::RULESET)
- { return bubble(m); }
-
- p_stack.push_back(m);
-
- Supports_Block_Obj mm = SASS_MEMORY_NEW(Supports_Block,
- m->pstate(),
- m->condition(),
- operator()(m->block()));
- mm->tabs(m->tabs());
-
- p_stack.pop_back();
-
- return debubble(mm->block(), mm);
- }
-
- Statement_Ptr Cssize::operator()(At_Root_Block_Ptr m)
- {
- bool tmp = false;
- for (size_t i = 0, L = p_stack.size(); i < L; ++i) {
- Statement_Ptr s = p_stack[i];
- tmp |= m->exclude_node(s);
- }
-
- if (!tmp && m->block())
- {
- Block_Ptr bb = operator()(m->block());
- for (size_t i = 0, L = bb->length(); i < L; ++i) {
- // (bb->elements())[i]->tabs(m->tabs());
- Statement_Obj stm = bb->at(i);
- if (bubblable(stm)) stm->tabs(stm->tabs() + m->tabs());
- }
- if (bb->length() && bubblable(bb->last())) bb->last()->group_end(m->group_end());
- return bb;
- }
-
- if (m->exclude_node(parent()))
- {
- return SASS_MEMORY_NEW(Bubble, m->pstate(), m);
- }
-
- return bubble(m);
- }
-
- Statement_Ptr Cssize::bubble(Directive_Ptr m)
- {
- Block_Ptr bb = SASS_MEMORY_NEW(Block, this->parent()->pstate());
- Has_Block_Obj new_rule = Cast<Has_Block>(SASS_MEMORY_COPY(this->parent()));
- new_rule->block(bb);
- new_rule->tabs(this->parent()->tabs());
- new_rule->block()->concat(m->block());
-
- Block_Obj wrapper_block = SASS_MEMORY_NEW(Block, m->block() ? m->block()->pstate() : m->pstate());
- wrapper_block->append(new_rule);
- Directive_Obj mm = SASS_MEMORY_NEW(Directive,
- m->pstate(),
- m->keyword(),
- m->selector(),
- wrapper_block);
- if (m->value()) mm->value(m->value());
-
- Bubble_Ptr bubble = SASS_MEMORY_NEW(Bubble, mm->pstate(), mm);
- return bubble;
- }
-
- Statement_Ptr Cssize::bubble(At_Root_Block_Ptr m)
- {
- if (!m || !m->block()) return NULL;
- Block_Ptr bb = SASS_MEMORY_NEW(Block, this->parent()->pstate());
- Has_Block_Obj new_rule = Cast<Has_Block>(SASS_MEMORY_COPY(this->parent()));
- Block_Ptr wrapper_block = SASS_MEMORY_NEW(Block, m->block()->pstate());
- if (new_rule) {
- new_rule->block(bb);
- new_rule->tabs(this->parent()->tabs());
- new_rule->block()->concat(m->block());
- wrapper_block->append(new_rule);
- }
-
- At_Root_Block_Ptr mm = SASS_MEMORY_NEW(At_Root_Block,
- m->pstate(),
- wrapper_block,
- m->expression());
- Bubble_Ptr bubble = SASS_MEMORY_NEW(Bubble, mm->pstate(), mm);
- return bubble;
- }
-
- Statement_Ptr Cssize::bubble(Supports_Block_Ptr m)
- {
- Ruleset_Obj parent = Cast<Ruleset>(SASS_MEMORY_COPY(this->parent()));
-
- Block_Ptr bb = SASS_MEMORY_NEW(Block, parent->block()->pstate());
- Ruleset_Ptr new_rule = SASS_MEMORY_NEW(Ruleset,
- parent->pstate(),
- parent->selector(),
- bb);
- new_rule->tabs(parent->tabs());
- new_rule->block()->concat(m->block());
-
- Block_Ptr wrapper_block = SASS_MEMORY_NEW(Block, m->block()->pstate());
- wrapper_block->append(new_rule);
- Supports_Block_Ptr mm = SASS_MEMORY_NEW(Supports_Block,
- m->pstate(),
- m->condition(),
- wrapper_block);
-
- mm->tabs(m->tabs());
-
- Bubble_Ptr bubble = SASS_MEMORY_NEW(Bubble, mm->pstate(), mm);
- return bubble;
- }
-
- Statement_Ptr Cssize::bubble(Media_Block_Ptr m)
- {
- Ruleset_Obj parent = Cast<Ruleset>(SASS_MEMORY_COPY(this->parent()));
-
- Block_Ptr bb = SASS_MEMORY_NEW(Block, parent->block()->pstate());
- Ruleset_Ptr new_rule = SASS_MEMORY_NEW(Ruleset,
- parent->pstate(),
- parent->selector(),
- bb);
- new_rule->tabs(parent->tabs());
- new_rule->block()->concat(m->block());
-
- Block_Ptr wrapper_block = SASS_MEMORY_NEW(Block, m->block()->pstate());
- wrapper_block->append(new_rule);
- Media_Block_Obj mm = SASS_MEMORY_NEW(Media_Block,
- m->pstate(),
- m->media_queries(),
- wrapper_block);
-
- mm->tabs(m->tabs());
-
- return SASS_MEMORY_NEW(Bubble, mm->pstate(), mm);
- }
-
- bool Cssize::bubblable(Statement_Ptr s)
- {
- return Cast<Ruleset>(s) || s->bubbles();
- }
-
- Block_Ptr Cssize::flatten(Block_Ptr b)
- {
- Block_Ptr result = SASS_MEMORY_NEW(Block, b->pstate(), 0, b->is_root());
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Ptr ss = b->at(i);
- if (Block_Ptr bb = Cast<Block>(ss)) {
- Block_Obj bs = flatten(bb);
- for (size_t j = 0, K = bs->length(); j < K; ++j) {
- result->append(bs->at(j));
- }
- }
- else {
- result->append(ss);
- }
- }
- return result;
- }
-
- std::vector<std::pair<bool, Block_Obj>> Cssize::slice_by_bubble(Block_Ptr b)
- {
- std::vector<std::pair<bool, Block_Obj>> results;
-
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj value = b->at(i);
- bool key = Cast<Bubble>(value) != NULL;
-
- if (!results.empty() && results.back().first == key)
- {
- Block_Obj wrapper_block = results.back().second;
- wrapper_block->append(value);
- }
- else
- {
- Block_Ptr wrapper_block = SASS_MEMORY_NEW(Block, value->pstate());
- wrapper_block->append(value);
- results.push_back(std::make_pair(key, wrapper_block));
- }
- }
- return results;
- }
-
- Block_Ptr Cssize::debubble(Block_Ptr children, Statement_Ptr parent)
- {
- Has_Block_Obj previous_parent = 0;
- std::vector<std::pair<bool, Block_Obj>> baz = slice_by_bubble(children);
- Block_Obj result = SASS_MEMORY_NEW(Block, children->pstate());
-
- for (size_t i = 0, L = baz.size(); i < L; ++i) {
- bool is_bubble = baz[i].first;
- Block_Obj slice = baz[i].second;
-
- if (!is_bubble) {
- if (!parent) {
- result->append(slice);
- }
- else if (previous_parent) {
- previous_parent->block()->concat(slice);
- }
- else {
- previous_parent = Cast<Has_Block>(SASS_MEMORY_COPY(parent));
- previous_parent->block(slice);
- previous_parent->tabs(parent->tabs());
-
- result->append(previous_parent);
- }
- continue;
- }
-
- for (size_t j = 0, K = slice->length(); j < K; ++j)
- {
- Statement_Ptr ss;
- Statement_Obj stm = slice->at(j);
- // this has to go now here (too bad)
- Bubble_Obj node = Cast<Bubble>(stm);
- Media_Block_Ptr m1 = NULL;
- Media_Block_Ptr m2 = NULL;
- if (parent) m1 = Cast<Media_Block>(parent);
- if (node) m2 = Cast<Media_Block>(node->node());
- if (!parent ||
- parent->statement_type() != Statement::MEDIA ||
- node->node()->statement_type() != Statement::MEDIA ||
- (m1 && m2 && *m1->media_queries() == *m2->media_queries())
- )
- {
- ss = node->node();
- }
- else
- {
- List_Obj mq = merge_media_queries(
- Cast<Media_Block>(node->node()),
- Cast<Media_Block>(parent)
- );
- if (!mq->length()) continue;
- if (Media_Block* b = Cast<Media_Block>(node->node())) {
- b->media_queries(mq);
- }
- ss = node->node();
- }
-
- if (!ss) continue;
-
- ss->tabs(ss->tabs() + node->tabs());
- ss->group_end(node->group_end());
-
- Block_Obj bb = SASS_MEMORY_NEW(Block,
- children->pstate(),
- children->length(),
- children->is_root());
- bb->append(ss->perform(this));
-
- Block_Obj wrapper_block = SASS_MEMORY_NEW(Block,
- children->pstate(),
- children->length(),
- children->is_root());
-
- Block_Ptr wrapper = flatten(bb);
- wrapper_block->append(wrapper);
-
- if (wrapper->length()) {
- previous_parent = NULL;
- }
-
- if (wrapper_block) {
- result->append(wrapper_block);
- }
- }
- }
-
- return flatten(result);
- }
-
- Statement_Ptr Cssize::fallback_impl(AST_Node_Ptr n)
- {
- return static_cast<Statement_Ptr>(n);
- }
-
- void Cssize::append_block(Block_Ptr b, Block_Ptr cur)
- {
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj ith = b->at(i)->perform(this);
- if (Block_Ptr bb = Cast<Block>(ith)) {
- for (size_t j = 0, K = bb->length(); j < K; ++j) {
- cur->append(bb->at(j));
- }
- }
- else if (ith) {
- cur->append(ith);
- }
- }
- }
-
- List_Ptr Cssize::merge_media_queries(Media_Block_Ptr m1, Media_Block_Ptr m2)
- {
- List_Ptr qq = SASS_MEMORY_NEW(List,
- m1->media_queries()->pstate(),
- m1->media_queries()->length(),
- SASS_COMMA);
-
- for (size_t i = 0, L = m1->media_queries()->length(); i < L; i++) {
- for (size_t j = 0, K = m2->media_queries()->length(); j < K; j++) {
- Expression_Obj l1 = m1->media_queries()->at(i);
- Expression_Obj l2 = m2->media_queries()->at(j);
- Media_Query_Ptr mq1 = Cast<Media_Query>(l1);
- Media_Query_Ptr mq2 = Cast<Media_Query>(l2);
- Media_Query_Ptr mq = merge_media_query(mq1, mq2);
- if (mq) qq->append(mq);
- }
- }
-
- return qq;
- }
-
-
- Media_Query_Ptr Cssize::merge_media_query(Media_Query_Ptr mq1, Media_Query_Ptr mq2)
- {
-
- std::string type;
- std::string mod;
-
- std::string m1 = std::string(mq1->is_restricted() ? "only" : mq1->is_negated() ? "not" : "");
- std::string t1 = mq1->media_type() ? mq1->media_type()->to_string(ctx.c_options) : "";
- std::string m2 = std::string(mq2->is_restricted() ? "only" : mq2->is_negated() ? "not" : "");
- std::string t2 = mq2->media_type() ? mq2->media_type()->to_string(ctx.c_options) : "";
-
-
- if (t1.empty()) t1 = t2;
- if (t2.empty()) t2 = t1;
-
- if ((m1 == "not") ^ (m2 == "not")) {
- if (t1 == t2) {
- return 0;
- }
- type = m1 == "not" ? t2 : t1;
- mod = m1 == "not" ? m2 : m1;
- }
- else if (m1 == "not" && m2 == "not") {
- if (t1 != t2) {
- return 0;
- }
- type = t1;
- mod = "not";
- }
- else if (t1 != t2) {
- return 0;
- } else {
- type = t1;
- mod = m1.empty() ? m2 : m1;
- }
-
- Media_Query_Ptr mm = SASS_MEMORY_NEW(Media_Query,
- mq1->pstate(),
- 0,
- mq1->length() + mq2->length(),
- mod == "not",
- mod == "only");
-
- if (!type.empty()) {
- mm->media_type(SASS_MEMORY_NEW(String_Quoted, mq1->pstate(), type));
- }
-
- mm->concat(mq2);
- mm->concat(mq1);
-
- return mm;
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/cssize.hpp b/node_modules/node-sass/src/libsass/src/cssize.hpp
deleted file mode 100644
index 5a6c704..0000000
--- a/node_modules/node-sass/src/libsass/src/cssize.hpp
+++ /dev/null
@@ -1,77 +0,0 @@
-#ifndef SASS_CSSIZE_H
-#define SASS_CSSIZE_H
-
-#include "ast.hpp"
-#include "context.hpp"
-#include "operation.hpp"
-#include "environment.hpp"
-
-namespace Sass {
-
- struct Backtrace;
-
- class Cssize : public Operation_CRTP<Statement_Ptr, Cssize> {
-
- Context& ctx;
- Backtraces& traces;
- std::vector<Block_Ptr> block_stack;
- std::vector<Statement_Ptr> p_stack;
-
- Statement_Ptr fallback_impl(AST_Node_Ptr n);
-
- public:
- Cssize(Context&);
- ~Cssize() { }
-
- Selector_List_Ptr selector();
-
- Block_Ptr operator()(Block_Ptr);
- Statement_Ptr operator()(Ruleset_Ptr);
- // Statement_Ptr operator()(Bubble_Ptr);
- Statement_Ptr operator()(Media_Block_Ptr);
- Statement_Ptr operator()(Supports_Block_Ptr);
- Statement_Ptr operator()(At_Root_Block_Ptr);
- Statement_Ptr operator()(Directive_Ptr);
- Statement_Ptr operator()(Keyframe_Rule_Ptr);
- Statement_Ptr operator()(Trace_Ptr);
- Statement_Ptr operator()(Declaration_Ptr);
- // Statement_Ptr operator()(Assignment_Ptr);
- // Statement_Ptr operator()(Import_Ptr);
- // Statement_Ptr operator()(Import_Stub_Ptr);
- // Statement_Ptr operator()(Warning_Ptr);
- // Statement_Ptr operator()(Error_Ptr);
- // Statement_Ptr operator()(Comment_Ptr);
- // Statement_Ptr operator()(If_Ptr);
- // Statement_Ptr operator()(For_Ptr);
- // Statement_Ptr operator()(Each_Ptr);
- // Statement_Ptr operator()(While_Ptr);
- // Statement_Ptr operator()(Return_Ptr);
- // Statement_Ptr operator()(Extension_Ptr);
- // Statement_Ptr operator()(Definition_Ptr);
- // Statement_Ptr operator()(Mixin_Call_Ptr);
- // Statement_Ptr operator()(Content_Ptr);
- Statement_Ptr operator()(Null_Ptr);
-
- Statement_Ptr parent();
- std::vector<std::pair<bool, Block_Obj>> slice_by_bubble(Block_Ptr);
- Statement_Ptr bubble(Directive_Ptr);
- Statement_Ptr bubble(At_Root_Block_Ptr);
- Statement_Ptr bubble(Media_Block_Ptr);
- Statement_Ptr bubble(Supports_Block_Ptr);
-
- Block_Ptr debubble(Block_Ptr children, Statement_Ptr parent = 0);
- Block_Ptr flatten(Block_Ptr);
- bool bubblable(Statement_Ptr);
-
- List_Ptr merge_media_queries(Media_Block_Ptr, Media_Block_Ptr);
- Media_Query_Ptr merge_media_query(Media_Query_Ptr, Media_Query_Ptr);
-
- template <typename U>
- Statement_Ptr fallback(U x) { return fallback_impl(x); }
-
- void append_block(Block_Ptr, Block_Ptr);
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/debug.hpp b/node_modules/node-sass/src/libsass/src/debug.hpp
deleted file mode 100644
index 43fe05e..0000000
--- a/node_modules/node-sass/src/libsass/src/debug.hpp
+++ /dev/null
@@ -1,43 +0,0 @@
-#ifndef SASS_DEBUG_H
-#define SASS_DEBUG_H
-
-#include <stdint.h>
-
-#ifndef UINT32_MAX
- #define UINT32_MAX 0xffffffffU
-#endif
-
-enum dbg_lvl_t : uint32_t {
- NONE = 0,
- TRIM = 1,
- CHUNKS = 2,
- SUBWEAVE = 4,
- WEAVE = 8,
- EXTEND_COMPOUND = 16,
- EXTEND_COMPLEX = 32,
- LCS = 64,
- EXTEND_OBJECT = 128,
- ALL = UINT32_MAX
-};
-
-#ifdef DEBUG
-
-#ifndef DEBUG_LVL
-const uint32_t debug_lvl = UINT32_MAX;
-#else
-const uint32_t debug_lvl = (DEBUG_LVL);
-#endif // DEBUG_LVL
-
-#define DEBUG_PRINT(lvl, x) if((lvl) & debug_lvl) { std::cerr << x; }
-#define DEBUG_PRINTLN(lvl, x) if((lvl) & debug_lvl) { std::cerr << x << std::endl; }
-#define DEBUG_EXEC(lvl, x) if((lvl) & debug_lvl) { x; }
-
-#else // DEBUG
-
-#define DEBUG_PRINT(lvl, x)
-#define DEBUG_PRINTLN(lvl, x)
-#define DEBUG_EXEC(lvl, x)
-
-#endif // DEBUG
-
-#endif // SASS_DEBUG
diff --git a/node_modules/node-sass/src/libsass/src/debugger.hpp b/node_modules/node-sass/src/libsass/src/debugger.hpp
deleted file mode 100644
index f1ceabd..0000000
--- a/node_modules/node-sass/src/libsass/src/debugger.hpp
+++ /dev/null
@@ -1,801 +0,0 @@
-#ifndef SASS_DEBUGGER_H
-#define SASS_DEBUGGER_H
-
-#include <string>
-#include <sstream>
-#include "node.hpp"
-#include "ast_fwd_decl.hpp"
-
-using namespace Sass;
-
-inline void debug_ast(AST_Node_Ptr node, std::string ind = "", Env* env = 0);
-
-inline void debug_ast(const AST_Node* node, std::string ind = "", Env* env = 0) {
- debug_ast(const_cast<AST_Node*>(node), ind, env);
-}
-
-inline void debug_sources_set(ComplexSelectorSet& set, std::string ind = "")
-{
- if (ind == "") std::cerr << "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
- for(auto const &pair : set) {
- debug_ast(pair, ind + "");
- // debug_ast(set[pair], ind + "first: ");
- }
- if (ind == "") std::cerr << "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
-}
-
-inline std::string str_replace(std::string str, const std::string& oldStr, const std::string& newStr)
-{
- size_t pos = 0;
- while((pos = str.find(oldStr, pos)) != std::string::npos)
- {
- str.replace(pos, oldStr.length(), newStr);
- pos += newStr.length();
- }
- return str;
-}
-
-inline std::string prettyprint(const std::string& str) {
- std::string clean = str_replace(str, "\n", "\\n");
- clean = str_replace(clean, " ", "\\t");
- clean = str_replace(clean, "\r", "\\r");
- return clean;
-}
-
-inline std::string longToHex(long long t) {
- std::stringstream is;
- is << std::hex << t;
- return is.str();
-}
-
-inline std::string pstate_source_position(AST_Node_Ptr node)
-{
- std::stringstream str;
- Position start(node->pstate());
- Position end(start + node->pstate().offset);
- str << (start.file == std::string::npos ? -1 : start.file)
- << "@[" << start.line << ":" << start.column << "]"
- << "-[" << end.line << ":" << end.column << "]";
-#ifdef DEBUG_SHARED_PTR
- str << "x" << node->getRefCount() << ""
- << " " << node->getDbgFile()
- << "@" << node->getDbgLine();
-#endif
- return str.str();
-}
-
-inline void debug_ast(AST_Node_Ptr node, std::string ind, Env* env)
-{
- if (node == 0) return;
- if (ind == "") std::cerr << "####################################################################\n";
- if (Cast<Bubble>(node)) {
- Bubble_Ptr bubble = Cast<Bubble>(node);
- std::cerr << ind << "Bubble " << bubble;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << bubble->tabs();
- std::cerr << std::endl;
- debug_ast(bubble->node(), ind + " ", env);
- } else if (Cast<Trace>(node)) {
- Trace_Ptr trace = Cast<Trace>(node);
- std::cerr << ind << "Trace " << trace;
- std::cerr << " (" << pstate_source_position(node) << ")"
- << " [name:" << trace->name() << ", type: " << trace->type() << "]"
- << std::endl;
- debug_ast(trace->block(), ind + " ", env);
- } else if (Cast<At_Root_Block>(node)) {
- At_Root_Block_Ptr root_block = Cast<At_Root_Block>(node);
- std::cerr << ind << "At_Root_Block " << root_block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << root_block->tabs();
- std::cerr << std::endl;
- debug_ast(root_block->expression(), ind + ":", env);
- debug_ast(root_block->block(), ind + " ", env);
- } else if (Cast<Selector_List>(node)) {
- Selector_List_Ptr selector = Cast<Selector_List>(node);
- std::cerr << ind << "Selector_List " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " [@media:" << selector->media_block() << "]";
- std::cerr << (selector->is_invisible() ? " [INVISIBLE]": " -");
- std::cerr << (selector->has_placeholder() ? " [PLACEHOLDER]": " -");
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << std::endl;
- debug_ast(selector->schema(), ind + "#{} ");
-
- for(const Complex_Selector_Obj& i : selector->elements()) { debug_ast(i, ind + " ", env); }
-
-// } else if (Cast<Expression>(node)) {
-// Expression_Ptr expression = Cast<Expression>(node);
-// std::cerr << ind << "Expression " << expression << " " << expression->concrete_type() << std::endl;
-
- } else if (Cast<Parent_Selector>(node)) {
- Parent_Selector_Ptr selector = Cast<Parent_Selector>(node);
- std::cerr << ind << "Parent_Selector " << selector;
-// if (selector->not_selector()) cerr << " [in_declaration]";
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " [" << (selector->is_real_parent_ref() ? "REAL" : "FAKE") << "]";
- std::cerr << " <" << prettyprint(selector->pstate().token.ws_before()) << ">" << std::endl;
-// debug_ast(selector->selector(), ind + "->", env);
-
- } else if (Cast<Complex_Selector>(node)) {
- Complex_Selector_Ptr selector = Cast<Complex_Selector>(node);
- std::cerr << ind << "Complex_Selector " << selector
- << " (" << pstate_source_position(node) << ")"
- << " <" << selector->hash() << ">"
- << " [length:" << longToHex(selector->length()) << "]"
- << " [weight:" << longToHex(selector->specificity()) << "]"
- << " [@media:" << selector->media_block() << "]"
- << (selector->is_invisible() ? " [INVISIBLE]": " -")
- << (selector->has_placeholder() ? " [PLACEHOLDER]": " -")
- << (selector->is_optional() ? " [is_optional]": " -")
- << (selector->has_parent_ref() ? " [has parent]": " -")
- << (selector->has_line_feed() ? " [line-feed]": " -")
- << (selector->has_line_break() ? " [line-break]": " -")
- << " -- ";
- std::string del;
- switch (selector->combinator()) {
- case Complex_Selector::PARENT_OF: del = ">"; break;
- case Complex_Selector::PRECEDES: del = "~"; break;
- case Complex_Selector::ADJACENT_TO: del = "+"; break;
- case Complex_Selector::ANCESTOR_OF: del = " "; break;
- case Complex_Selector::REFERENCE: del = "//"; break;
- }
- // if (del = "/") del += selector->reference()->perform(&to_string) + "/";
- std::cerr << " <" << prettyprint(selector->pstate().token.ws_before()) << ">" << std::endl;
- debug_ast(selector->head(), ind + " " /* + "[" + del + "]" */, env);
- if (selector->tail()) {
- debug_ast(selector->tail(), ind + "{" + del + "}", env);
- } else if(del != " ") {
- std::cerr << ind << " |" << del << "| {trailing op}" << std::endl;
- }
- ComplexSelectorSet set = selector->sources();
- // debug_sources_set(set, ind + " @--> ");
- } else if (Cast<Compound_Selector>(node)) {
- Compound_Selector_Ptr selector = Cast<Compound_Selector>(node);
- std::cerr << ind << "Compound_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " [weight:" << longToHex(selector->specificity()) << "]";
- std::cerr << " [@media:" << selector->media_block() << "]";
- std::cerr << (selector->extended() ? " [extended]": " -");
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << " <" << prettyprint(selector->pstate().token.ws_before()) << ">" << std::endl;
- for(const Simple_Selector_Obj& i : selector->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Wrapped_Selector>(node)) {
- Wrapped_Selector_Ptr selector = Cast<Wrapped_Selector>(node);
- std::cerr << ind << "Wrapped_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " <<" << selector->ns_name() << ">>";
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << std::endl;
- debug_ast(selector->selector(), ind + " () ", env);
- } else if (Cast<Pseudo_Selector>(node)) {
- Pseudo_Selector_Ptr selector = Cast<Pseudo_Selector>(node);
- std::cerr << ind << "Pseudo_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " <<" << selector->ns_name() << ">>";
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << std::endl;
- debug_ast(selector->expression(), ind + " <= ", env);
- } else if (Cast<Attribute_Selector>(node)) {
- Attribute_Selector_Ptr selector = Cast<Attribute_Selector>(node);
- std::cerr << ind << "Attribute_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " <<" << selector->ns_name() << ">>";
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << std::endl;
- debug_ast(selector->value(), ind + "[" + selector->matcher() + "] ", env);
- } else if (Cast<Class_Selector>(node)) {
- Class_Selector_Ptr selector = Cast<Class_Selector>(node);
- std::cerr << ind << "Class_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " <<" << selector->ns_name() << ">>";
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << std::endl;
- } else if (Cast<Id_Selector>(node)) {
- Id_Selector_Ptr selector = Cast<Id_Selector>(node);
- std::cerr << ind << "Id_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " <<" << selector->ns_name() << ">>";
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << std::endl;
- } else if (Cast<Element_Selector>(node)) {
- Element_Selector_Ptr selector = Cast<Element_Selector>(node);
- std::cerr << ind << "Element_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <" << selector->hash() << ">";
- std::cerr << " <<" << selector->ns_name() << ">>";
- std::cerr << (selector->is_optional() ? " [is_optional]": " -");
- std::cerr << (selector->has_parent_ref() ? " [has-parent]": " -");
- std::cerr << (selector->has_line_break() ? " [line-break]": " -");
- std::cerr << (selector->has_line_feed() ? " [line-feed]": " -");
- std::cerr << " <" << prettyprint(selector->pstate().token.ws_before()) << ">";
- std::cerr << std::endl;
- } else if (Cast<Placeholder_Selector>(node)) {
-
- Placeholder_Selector_Ptr selector = Cast<Placeholder_Selector>(node);
- std::cerr << ind << "Placeholder_Selector [" << selector->ns_name() << "] " << selector;
- std::cerr << " (" << pstate_source_position(selector) << ")"
- << " <" << selector->hash() << ">"
- << " [@media:" << selector->media_block() << "]"
- << (selector->is_optional() ? " [is_optional]": " -")
- << (selector->has_line_break() ? " [line-break]": " -")
- << (selector->has_line_feed() ? " [line-feed]": " -")
- << std::endl;
-
- } else if (Cast<Simple_Selector>(node)) {
- Simple_Selector* selector = Cast<Simple_Selector>(node);
- std::cerr << ind << "Simple_Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << (selector->has_line_break() ? " [line-break]": " -") << (selector->has_line_feed() ? " [line-feed]": " -") << std::endl;
-
- } else if (Cast<Selector_Schema>(node)) {
- Selector_Schema_Ptr selector = Cast<Selector_Schema>(node);
- std::cerr << ind << "Selector_Schema " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")"
- << " [@media:" << selector->media_block() << "]"
- << (selector->connect_parent() ? " [connect-parent]": " -")
- << std::endl;
-
- debug_ast(selector->contents(), ind + " ");
- // for(auto i : selector->elements()) { debug_ast(i, ind + " ", env); }
-
- } else if (Cast<Selector>(node)) {
- Selector_Ptr selector = Cast<Selector>(node);
- std::cerr << ind << "Selector " << selector;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << (selector->has_line_break() ? " [line-break]": " -")
- << (selector->has_line_feed() ? " [line-feed]": " -")
- << std::endl;
-
- } else if (Cast<Media_Query_Expression>(node)) {
- Media_Query_Expression_Ptr block = Cast<Media_Query_Expression>(node);
- std::cerr << ind << "Media_Query_Expression " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << (block->is_interpolated() ? " [is_interpolated]": " -")
- << std::endl;
- debug_ast(block->feature(), ind + " feature) ");
- debug_ast(block->value(), ind + " value) ");
-
- } else if (Cast<Media_Query>(node)) {
- Media_Query_Ptr block = Cast<Media_Query>(node);
- std::cerr << ind << "Media_Query " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << (block->is_negated() ? " [is_negated]": " -")
- << (block->is_restricted() ? " [is_restricted]": " -")
- << std::endl;
- debug_ast(block->media_type(), ind + " ");
- for(const auto& i : block->elements()) { debug_ast(i, ind + " ", env); }
-
- } else if (Cast<Media_Block>(node)) {
- Media_Block_Ptr block = Cast<Media_Block>(node);
- std::cerr << ind << "Media_Block " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->media_queries(), ind + " =@ ");
- if (block->block()) for(const Statement_Obj& i : block->block()->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Supports_Block>(node)) {
- Supports_Block_Ptr block = Cast<Supports_Block>(node);
- std::cerr << ind << "Supports_Block " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->condition(), ind + " =@ ");
- debug_ast(block->block(), ind + " <>");
- } else if (Cast<Supports_Operator>(node)) {
- Supports_Operator_Ptr block = Cast<Supports_Operator>(node);
- std::cerr << ind << "Supports_Operator " << block;
- std::cerr << " (" << pstate_source_position(node) << ")"
- << std::endl;
- debug_ast(block->left(), ind + " left) ");
- debug_ast(block->right(), ind + " right) ");
- } else if (Cast<Supports_Negation>(node)) {
- Supports_Negation_Ptr block = Cast<Supports_Negation>(node);
- std::cerr << ind << "Supports_Negation " << block;
- std::cerr << " (" << pstate_source_position(node) << ")"
- << std::endl;
- debug_ast(block->condition(), ind + " condition) ");
- } else if (Cast<At_Root_Query>(node)) {
- At_Root_Query_Ptr block = Cast<At_Root_Query>(node);
- std::cerr << ind << "At_Root_Query " << block;
- std::cerr << " (" << pstate_source_position(node) << ")"
- << std::endl;
- debug_ast(block->feature(), ind + " feature) ");
- debug_ast(block->value(), ind + " value) ");
- } else if (Cast<Supports_Declaration>(node)) {
- Supports_Declaration_Ptr block = Cast<Supports_Declaration>(node);
- std::cerr << ind << "Supports_Declaration " << block;
- std::cerr << " (" << pstate_source_position(node) << ")"
- << std::endl;
- debug_ast(block->feature(), ind + " feature) ");
- debug_ast(block->value(), ind + " value) ");
- } else if (Cast<Block>(node)) {
- Block_Ptr root_block = Cast<Block>(node);
- std::cerr << ind << "Block " << root_block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- if (root_block->is_root()) std::cerr << " [root]";
- std::cerr << " " << root_block->tabs() << std::endl;
- for(const Statement_Obj& i : root_block->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Warning>(node)) {
- Warning_Ptr block = Cast<Warning>(node);
- std::cerr << ind << "Warning " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->message(), ind + " : ");
- } else if (Cast<Error>(node)) {
- Error_Ptr block = Cast<Error>(node);
- std::cerr << ind << "Error " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- } else if (Cast<Debug>(node)) {
- Debug_Ptr block = Cast<Debug>(node);
- std::cerr << ind << "Debug " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->value(), ind + " ");
- } else if (Cast<Comment>(node)) {
- Comment_Ptr block = Cast<Comment>(node);
- std::cerr << ind << "Comment " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() <<
- " <" << prettyprint(block->pstate().token.ws_before()) << ">" << std::endl;
- debug_ast(block->text(), ind + "// ", env);
- } else if (Cast<If>(node)) {
- If_Ptr block = Cast<If>(node);
- std::cerr << ind << "If " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->predicate(), ind + " = ");
- debug_ast(block->block(), ind + " <>");
- debug_ast(block->alternative(), ind + " ><");
- } else if (Cast<Return>(node)) {
- Return_Ptr block = Cast<Return>(node);
- std::cerr << ind << "Return " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- } else if (Cast<Extension>(node)) {
- Extension_Ptr block = Cast<Extension>(node);
- std::cerr << ind << "Extension " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->selector(), ind + "-> ", env);
- } else if (Cast<Content>(node)) {
- Content_Ptr block = Cast<Content>(node);
- std::cerr << ind << "Content " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [@media:" << block->media_block() << "]";
- std::cerr << " " << block->tabs() << std::endl;
- } else if (Cast<Import_Stub>(node)) {
- Import_Stub_Ptr block = Cast<Import_Stub>(node);
- std::cerr << ind << "Import_Stub " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << block->imp_path() << "] ";
- std::cerr << " " << block->tabs() << std::endl;
- } else if (Cast<Import>(node)) {
- Import_Ptr block = Cast<Import>(node);
- std::cerr << ind << "Import " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- // std::vector<std::string> files_;
- for (auto imp : block->urls()) debug_ast(imp, ind + "@: ", env);
- debug_ast(block->import_queries(), ind + "@@ ");
- } else if (Cast<Assignment>(node)) {
- Assignment_Ptr block = Cast<Assignment>(node);
- std::cerr << ind << "Assignment " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " <<" << block->variable() << ">> " << block->tabs() << std::endl;
- debug_ast(block->value(), ind + "=", env);
- } else if (Cast<Declaration>(node)) {
- Declaration_Ptr block = Cast<Declaration>(node);
- std::cerr << ind << "Declaration " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [is_custom_property: " << block->is_custom_property() << "] ";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->property(), ind + " prop: ", env);
- debug_ast(block->value(), ind + " value: ", env);
- debug_ast(block->block(), ind + " ", env);
- } else if (Cast<Keyframe_Rule>(node)) {
- Keyframe_Rule_Ptr has_block = Cast<Keyframe_Rule>(node);
- std::cerr << ind << "Keyframe_Rule " << has_block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << has_block->tabs() << std::endl;
- if (has_block->name()) debug_ast(has_block->name(), ind + "@");
- if (has_block->block()) for(const Statement_Obj& i : has_block->block()->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Directive>(node)) {
- Directive_Ptr block = Cast<Directive>(node);
- std::cerr << ind << "Directive " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << block->keyword() << "] " << block->tabs() << std::endl;
- debug_ast(block->selector(), ind + "~", env);
- debug_ast(block->value(), ind + "+", env);
- if (block->block()) for(const Statement_Obj& i : block->block()->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Each>(node)) {
- Each_Ptr block = Cast<Each>(node);
- std::cerr << ind << "Each " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- if (block->block()) for(const Statement_Obj& i : block->block()->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<For>(node)) {
- For_Ptr block = Cast<For>(node);
- std::cerr << ind << "For " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- if (block->block()) for(const Statement_Obj& i : block->block()->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<While>(node)) {
- While_Ptr block = Cast<While>(node);
- std::cerr << ind << "While " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << block->tabs() << std::endl;
- if (block->block()) for(const Statement_Obj& i : block->block()->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Definition>(node)) {
- Definition_Ptr block = Cast<Definition>(node);
- std::cerr << ind << "Definition " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [name: " << block->name() << "] ";
- std::cerr << " [type: " << (block->type() == Sass::Definition::Type::MIXIN ? "Mixin " : "Function ") << "] ";
- // this seems to lead to segfaults some times?
- // std::cerr << " [signature: " << block->signature() << "] ";
- std::cerr << " [native: " << block->native_function() << "] ";
- std::cerr << " " << block->tabs() << std::endl;
- debug_ast(block->parameters(), ind + " params: ", env);
- if (block->block()) debug_ast(block->block(), ind + " ", env);
- } else if (Cast<Mixin_Call>(node)) {
- Mixin_Call_Ptr block = Cast<Mixin_Call>(node);
- std::cerr << ind << "Mixin_Call " << block << " " << block->tabs();
- std::cerr << " (" << pstate_source_position(block) << ")";
- std::cerr << " [" << block->name() << "]";
- std::cerr << " [has_content: " << block->has_content() << "] " << std::endl;
- debug_ast(block->arguments(), ind + " args: ");
- if (block->block()) debug_ast(block->block(), ind + " ", env);
- } else if (Ruleset_Ptr ruleset = Cast<Ruleset>(node)) {
- std::cerr << ind << "Ruleset " << ruleset;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [indent: " << ruleset->tabs() << "]";
- std::cerr << (ruleset->is_invisible() ? " [INVISIBLE]" : "");
- std::cerr << (ruleset->is_root() ? " [root]" : "");
- std::cerr << std::endl;
- debug_ast(ruleset->selector(), ind + ">");
- debug_ast(ruleset->block(), ind + " ");
- } else if (Cast<Block>(node)) {
- Block_Ptr block = Cast<Block>(node);
- std::cerr << ind << "Block " << block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << (block->is_invisible() ? " [INVISIBLE]" : "");
- std::cerr << " [indent: " << block->tabs() << "]" << std::endl;
- for(const Statement_Obj& i : block->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Variable>(node)) {
- Variable_Ptr expression = Cast<Variable>(node);
- std::cerr << ind << "Variable " << expression;
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << expression->name() << "]" << std::endl;
- std::string name(expression->name());
- if (env && env->has(name)) debug_ast(Cast<Expression>((*env)[name]), ind + " -> ", env);
- } else if (Cast<Function_Call_Schema>(node)) {
- Function_Call_Schema_Ptr expression = Cast<Function_Call_Schema>(node);
- std::cerr << ind << "Function_Call_Schema " << expression;
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << "" << std::endl;
- debug_ast(expression->name(), ind + "name: ", env);
- debug_ast(expression->arguments(), ind + " args: ", env);
- } else if (Cast<Function_Call>(node)) {
- Function_Call_Ptr expression = Cast<Function_Call>(node);
- std::cerr << ind << "Function_Call " << expression;
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << expression->name() << "]";
- if (expression->is_delayed()) std::cerr << " [delayed]";
- if (expression->is_interpolant()) std::cerr << " [interpolant]";
- if (expression->is_css()) std::cerr << " [css]";
- std::cerr << std::endl;
- debug_ast(expression->arguments(), ind + " args: ", env);
- debug_ast(expression->func(), ind + " func: ", env);
- } else if (Cast<Function>(node)) {
- Function_Ptr expression = Cast<Function>(node);
- std::cerr << ind << "Function " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- if (expression->is_css()) std::cerr << " [css]";
- std::cerr << std::endl;
- debug_ast(expression->definition(), ind + " definition: ", env);
- } else if (Cast<Arguments>(node)) {
- Arguments_Ptr expression = Cast<Arguments>(node);
- std::cerr << ind << "Arguments " << expression;
- if (expression->is_delayed()) std::cerr << " [delayed]";
- std::cerr << " (" << pstate_source_position(node) << ")";
- if (expression->has_named_arguments()) std::cerr << " [has_named_arguments]";
- if (expression->has_rest_argument()) std::cerr << " [has_rest_argument]";
- if (expression->has_keyword_argument()) std::cerr << " [has_keyword_argument]";
- std::cerr << std::endl;
- for(const Argument_Obj& i : expression->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Argument>(node)) {
- Argument_Ptr expression = Cast<Argument>(node);
- std::cerr << ind << "Argument " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << expression->value().ptr() << "]";
- std::cerr << " [name: " << expression->name() << "] ";
- std::cerr << " [rest: " << expression->is_rest_argument() << "] ";
- std::cerr << " [keyword: " << expression->is_keyword_argument() << "] " << std::endl;
- debug_ast(expression->value(), ind + " value: ", env);
- } else if (Cast<Parameters>(node)) {
- Parameters_Ptr expression = Cast<Parameters>(node);
- std::cerr << ind << "Parameters " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [has_optional: " << expression->has_optional_parameters() << "] ";
- std::cerr << " [has_rest: " << expression->has_rest_parameter() << "] ";
- std::cerr << std::endl;
- for(const Parameter_Obj& i : expression->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Parameter>(node)) {
- Parameter_Ptr expression = Cast<Parameter>(node);
- std::cerr << ind << "Parameter " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [name: " << expression->name() << "] ";
- std::cerr << " [default: " << expression->default_value().ptr() << "] ";
- std::cerr << " [rest: " << expression->is_rest_parameter() << "] " << std::endl;
- } else if (Cast<Unary_Expression>(node)) {
- Unary_Expression_Ptr expression = Cast<Unary_Expression>(node);
- std::cerr << ind << "Unary_Expression " << expression;
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " [delayed: " << expression->is_delayed() << "] ";
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << expression->type() << "]" << std::endl;
- debug_ast(expression->operand(), ind + " operand: ", env);
- } else if (Cast<Binary_Expression>(node)) {
- Binary_Expression_Ptr expression = Cast<Binary_Expression>(node);
- std::cerr << ind << "Binary_Expression " << expression;
- if (expression->is_interpolant()) std::cerr << " [is interpolant] ";
- if (expression->is_left_interpolant()) std::cerr << " [left interpolant] ";
- if (expression->is_right_interpolant()) std::cerr << " [right interpolant] ";
- std::cerr << " [delayed: " << expression->is_delayed() << "] ";
- std::cerr << " [ws_before: " << expression->op().ws_before << "] ";
- std::cerr << " [ws_after: " << expression->op().ws_after << "] ";
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << expression->type_name() << "]" << std::endl;
- debug_ast(expression->left(), ind + " left: ", env);
- debug_ast(expression->right(), ind + " right: ", env);
- } else if (Cast<Map>(node)) {
- Map_Ptr expression = Cast<Map>(node);
- std::cerr << ind << "Map " << expression;
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [Hashed]" << std::endl;
- for (const auto& i : expression->elements()) {
- debug_ast(i.first, ind + " key: ");
- debug_ast(i.second, ind + " val: ");
- }
- } else if (Cast<List>(node)) {
- List_Ptr expression = Cast<List>(node);
- std::cerr << ind << "List " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " (" << expression->length() << ") " <<
- (expression->separator() == SASS_COMMA ? "Comma " : expression->separator() == SASS_HASH ? "Map " : "Space ") <<
- " [delayed: " << expression->is_delayed() << "] " <<
- " [interpolant: " << expression->is_interpolant() << "] " <<
- " [listized: " << expression->from_selector() << "] " <<
- " [arglist: " << expression->is_arglist() << "] " <<
- " [bracketed: " << expression->is_bracketed() << "] " <<
- " [expanded: " << expression->is_expanded() << "] " <<
- " [hash: " << expression->hash() << "] " <<
- std::endl;
- for(const auto& i : expression->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Content>(node)) {
- Content_Ptr expression = Cast<Content>(node);
- std::cerr << ind << "Content " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [@media:" << expression->media_block() << "]";
- std::cerr << " [Statement]" << std::endl;
- } else if (Cast<Boolean>(node)) {
- Boolean_Ptr expression = Cast<Boolean>(node);
- std::cerr << ind << "Boolean " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " [" << expression->value() << "]" << std::endl;
- } else if (Cast<Color>(node)) {
- Color_Ptr expression = Cast<Color>(node);
- std::cerr << ind << "Color " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [delayed: " << expression->is_delayed() << "] ";
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " [" << expression->r() << ":" << expression->g() << ":" << expression->b() << "@" << expression->a() << "]" << std::endl;
- } else if (Cast<Number>(node)) {
- Number_Ptr expression = Cast<Number>(node);
- std::cerr << ind << "Number " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [delayed: " << expression->is_delayed() << "] ";
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] ";
- std::cerr << " [" << expression->value() << expression->unit() << "]" <<
- " [hash: " << expression->hash() << "] " <<
- std::endl;
- } else if (Cast<Null>(node)) {
- Null_Ptr expression = Cast<Null>(node);
- std::cerr << ind << "Null " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [interpolant: " << expression->is_interpolant() << "] "
- // " [hash: " << expression->hash() << "] "
- << std::endl;
- } else if (Cast<String_Quoted>(node)) {
- String_Quoted_Ptr expression = Cast<String_Quoted>(node);
- std::cerr << ind << "String_Quoted " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << prettyprint(expression->value()) << "]";
- if (expression->is_delayed()) std::cerr << " [delayed]";
- if (expression->is_interpolant()) std::cerr << " [interpolant]";
- if (expression->quote_mark()) std::cerr << " [quote_mark: " << expression->quote_mark() << "]";
- std::cerr << " <" << prettyprint(expression->pstate().token.ws_before()) << ">" << std::endl;
- } else if (Cast<String_Constant>(node)) {
- String_Constant_Ptr expression = Cast<String_Constant>(node);
- std::cerr << ind << "String_Constant " << expression;
- if (expression->concrete_type()) {
- std::cerr << " " << expression->concrete_type();
- }
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " [" << prettyprint(expression->value()) << "]";
- if (expression->is_delayed()) std::cerr << " [delayed]";
- if (expression->is_interpolant()) std::cerr << " [interpolant]";
- std::cerr << " <" << prettyprint(expression->pstate().token.ws_before()) << ">" << std::endl;
- } else if (Cast<String_Schema>(node)) {
- String_Schema_Ptr expression = Cast<String_Schema>(node);
- std::cerr << ind << "String_Schema " << expression;
- std::cerr << " (" << pstate_source_position(expression) << ")";
- std::cerr << " " << expression->concrete_type();
- std::cerr << " (" << pstate_source_position(node) << ")";
- if (expression->css()) std::cerr << " [css]";
- if (expression->is_delayed()) std::cerr << " [delayed]";
- if (expression->is_interpolant()) std::cerr << " [is interpolant]";
- if (expression->has_interpolant()) std::cerr << " [has interpolant]";
- if (expression->is_left_interpolant()) std::cerr << " [left interpolant] ";
- if (expression->is_right_interpolant()) std::cerr << " [right interpolant] ";
- std::cerr << " <" << prettyprint(expression->pstate().token.ws_before()) << ">" << std::endl;
- for(const auto& i : expression->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<String>(node)) {
- String_Ptr expression = Cast<String>(node);
- std::cerr << ind << "String " << expression;
- std::cerr << " " << expression->concrete_type();
- std::cerr << " (" << pstate_source_position(node) << ")";
- if (expression->is_interpolant()) std::cerr << " [interpolant]";
- std::cerr << " <" << prettyprint(expression->pstate().token.ws_before()) << ">" << std::endl;
- } else if (Cast<Expression>(node)) {
- Expression_Ptr expression = Cast<Expression>(node);
- std::cerr << ind << "Expression " << expression;
- std::cerr << " (" << pstate_source_position(node) << ")";
- switch (expression->concrete_type()) {
- case Expression::Concrete_Type::NONE: std::cerr << " [NONE]"; break;
- case Expression::Concrete_Type::BOOLEAN: std::cerr << " [BOOLEAN]"; break;
- case Expression::Concrete_Type::NUMBER: std::cerr << " [NUMBER]"; break;
- case Expression::Concrete_Type::COLOR: std::cerr << " [COLOR]"; break;
- case Expression::Concrete_Type::STRING: std::cerr << " [STRING]"; break;
- case Expression::Concrete_Type::LIST: std::cerr << " [LIST]"; break;
- case Expression::Concrete_Type::MAP: std::cerr << " [MAP]"; break;
- case Expression::Concrete_Type::SELECTOR: std::cerr << " [SELECTOR]"; break;
- case Expression::Concrete_Type::NULL_VAL: std::cerr << " [NULL_VAL]"; break;
- case Expression::Concrete_Type::C_WARNING: std::cerr << " [C_WARNING]"; break;
- case Expression::Concrete_Type::C_ERROR: std::cerr << " [C_ERROR]"; break;
- case Expression::Concrete_Type::FUNCTION: std::cerr << " [FUNCTION]"; break;
- case Expression::Concrete_Type::NUM_TYPES: std::cerr << " [NUM_TYPES]"; break;
- case Expression::Concrete_Type::VARIABLE: std::cerr << " [VARIABLE]"; break;
- case Expression::Concrete_Type::FUNCTION_VAL: std::cerr << " [FUNCTION_VAL]"; break;
- }
- std::cerr << std::endl;
- } else if (Cast<Has_Block>(node)) {
- Has_Block_Ptr has_block = Cast<Has_Block>(node);
- std::cerr << ind << "Has_Block " << has_block;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << has_block->tabs() << std::endl;
- if (has_block->block()) for(const Statement_Obj& i : has_block->block()->elements()) { debug_ast(i, ind + " ", env); }
- } else if (Cast<Statement>(node)) {
- Statement_Ptr statement = Cast<Statement>(node);
- std::cerr << ind << "Statement " << statement;
- std::cerr << " (" << pstate_source_position(node) << ")";
- std::cerr << " " << statement->tabs() << std::endl;
- }
-
- if (ind == "") std::cerr << "####################################################################\n";
-}
-
-inline void debug_node(Node* node, std::string ind = "")
-{
- if (ind == "") std::cerr << "#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
- if (node->isCombinator()) {
- std::cerr << ind;
- std::cerr << "Combinator ";
- std::cerr << node << " ";
- if (node->got_line_feed) std::cerr << "[LF] ";
- switch (node->combinator()) {
- case Complex_Selector::ADJACENT_TO: std::cerr << "{+} "; break;
- case Complex_Selector::PARENT_OF: std::cerr << "{>} "; break;
- case Complex_Selector::PRECEDES: std::cerr << "{~} "; break;
- case Complex_Selector::REFERENCE: std::cerr << "{@} "; break;
- case Complex_Selector::ANCESTOR_OF: std::cerr << "{ } "; break;
- }
- std::cerr << std::endl;
- // debug_ast(node->combinator(), ind + " ");
- } else if (node->isSelector()) {
- std::cerr << ind;
- std::cerr << "Selector ";
- std::cerr << node << " ";
- if (node->got_line_feed) std::cerr << "[LF] ";
- std::cerr << std::endl;
- debug_ast(node->selector(), ind + " ");
- } else if (node->isCollection()) {
- std::cerr << ind;
- std::cerr << "Collection ";
- std::cerr << node << " ";
- if (node->got_line_feed) std::cerr << "[LF] ";
- std::cerr << std::endl;
- for(auto n : (*node->collection())) {
- debug_node(&n, ind + " ");
- }
- } else if (node->isNil()) {
- std::cerr << ind;
- std::cerr << "Nil ";
- std::cerr << node << " ";
- if (node->got_line_feed) std::cerr << "[LF] ";
- std::cerr << std::endl;
- } else {
- std::cerr << ind;
- std::cerr << "OTHER ";
- std::cerr << node << " ";
- if (node->got_line_feed) std::cerr << "[LF] ";
- std::cerr << std::endl;
- }
- if (ind == "") std::cerr << "#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n";
-}
-
-/*
-inline void debug_ast(const AST_Node_Ptr node, std::string ind = "", Env* env = 0)
-{
- debug_ast(const_cast<AST_Node_Ptr>(node), ind, env);
-}
-*/
-inline void debug_node(const Node* node, std::string ind = "")
-{
- debug_node(const_cast<Node*>(node), ind);
-}
-
-inline void debug_subset_map(Sass::Subset_Map& map, std::string ind = "")
-{
- if (ind == "") std::cerr << "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
- for(auto const &it : map.values()) {
- debug_ast(it.first, ind + "first: ");
- debug_ast(it.second, ind + "second: ");
- }
- if (ind == "") std::cerr << "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
-}
-
-inline void debug_subset_entries(SubSetMapPairs* entries, std::string ind = "")
-{
- if (ind == "") std::cerr << "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
- for(auto const &pair : *entries) {
- debug_ast(pair.first, ind + "first: ");
- debug_ast(pair.second, ind + "second: ");
- }
- if (ind == "") std::cerr << "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n";
-}
-
-#endif // SASS_DEBUGGER
diff --git a/node_modules/node-sass/src/libsass/src/emitter.cpp b/node_modules/node-sass/src/libsass/src/emitter.cpp
deleted file mode 100644
index 161e689..0000000
--- a/node_modules/node-sass/src/libsass/src/emitter.cpp
+++ /dev/null
@@ -1,297 +0,0 @@
-#include "sass.hpp"
-#include "util.hpp"
-#include "context.hpp"
-#include "output.hpp"
-#include "emitter.hpp"
-#include "utf8_string.hpp"
-
-namespace Sass {
-
- Emitter::Emitter(struct Sass_Output_Options& opt)
- : wbuf(),
- opt(opt),
- indentation(0),
- scheduled_space(0),
- scheduled_linefeed(0),
- scheduled_delimiter(false),
- scheduled_crutch(0),
- scheduled_mapping(0),
- in_custom_property(false),
- in_comment(false),
- in_wrapped(false),
- in_media_block(false),
- in_declaration(false),
- in_space_array(false),
- in_comma_array(false)
- { }
-
- // return buffer as string
- std::string Emitter::get_buffer(void)
- {
- return wbuf.buffer;
- }
-
- Sass_Output_Style Emitter::output_style(void) const
- {
- return opt.output_style;
- }
-
- // PROXY METHODS FOR SOURCE MAPS
-
- void Emitter::add_source_index(size_t idx)
- { wbuf.smap.source_index.push_back(idx); }
-
- std::string Emitter::render_srcmap(Context &ctx)
- { return wbuf.smap.render_srcmap(ctx); }
-
- void Emitter::set_filename(const std::string& str)
- { wbuf.smap.file = str; }
-
- void Emitter::schedule_mapping(const AST_Node_Ptr node)
- { scheduled_mapping = node; }
- void Emitter::add_open_mapping(const AST_Node_Ptr node)
- { wbuf.smap.add_open_mapping(node); }
- void Emitter::add_close_mapping(const AST_Node_Ptr node)
- { wbuf.smap.add_close_mapping(node); }
- ParserState Emitter::remap(const ParserState& pstate)
- { return wbuf.smap.remap(pstate); }
-
- // MAIN BUFFER MANIPULATION
-
- // add outstanding delimiter
- void Emitter::finalize(bool final)
- {
- scheduled_space = 0;
- if (output_style() == SASS_STYLE_COMPRESSED)
- if (final) scheduled_delimiter = false;
- if (scheduled_linefeed)
- scheduled_linefeed = 1;
- flush_schedules();
- }
-
- // flush scheduled space/linefeed
- void Emitter::flush_schedules(void)
- {
- // check the schedule
- if (scheduled_linefeed) {
- std::string linefeeds = "";
-
- for (size_t i = 0; i < scheduled_linefeed; i++)
- linefeeds += opt.linefeed;
- scheduled_space = 0;
- scheduled_linefeed = 0;
- append_string(linefeeds);
-
- } else if (scheduled_space) {
- std::string spaces(scheduled_space, ' ');
- scheduled_space = 0;
- append_string(spaces);
- }
- if (scheduled_delimiter) {
- scheduled_delimiter = false;
- append_string(";");
- }
- }
-
- // prepend some text or token to the buffer
- void Emitter::prepend_output(const OutputBuffer& output)
- {
- wbuf.smap.prepend(output);
- wbuf.buffer = output.buffer + wbuf.buffer;
- }
-
- // prepend some text or token to the buffer
- void Emitter::prepend_string(const std::string& text)
- {
- // do not adjust mappings for utf8 bom
- // seems they are not counted in any UA
- if (text.compare("\xEF\xBB\xBF") != 0) {
- wbuf.smap.prepend(Offset(text));
- }
- wbuf.buffer = text + wbuf.buffer;
- }
-
- char Emitter::last_char()
- {
- return wbuf.buffer.back();
- }
-
- // append a single char to the buffer
- void Emitter::append_char(const char chr)
- {
- // write space/lf
- flush_schedules();
- // add to buffer
- wbuf.buffer += chr;
- // account for data in source-maps
- wbuf.smap.append(Offset(chr));
- }
-
- // append some text or token to the buffer
- void Emitter::append_string(const std::string& text)
- {
-
- // write space/lf
- flush_schedules();
-
- if (in_comment && output_style() == COMPACT) {
- // unescape comment nodes
- std::string out = comment_to_string(text);
- // add to buffer
- wbuf.buffer += out;
- // account for data in source-maps
- wbuf.smap.append(Offset(out));
- } else {
- // add to buffer
- wbuf.buffer += text;
- // account for data in source-maps
- wbuf.smap.append(Offset(text));
- }
- }
-
- // append some white-space only text
- void Emitter::append_wspace(const std::string& text)
- {
- if (text.empty()) return;
- if (peek_linefeed(text.c_str())) {
- scheduled_space = 0;
- append_mandatory_linefeed();
- }
- }
-
- // append some text or token to the buffer
- // this adds source-mappings for node start and end
- void Emitter::append_token(const std::string& text, const AST_Node_Ptr node)
- {
- flush_schedules();
- add_open_mapping(node);
- // hotfix for browser issues
- // this is pretty ugly indeed
- if (scheduled_crutch) {
- add_open_mapping(scheduled_crutch);
- scheduled_crutch = 0;
- }
- append_string(text);
- add_close_mapping(node);
- }
-
- // HELPER METHODS
-
- void Emitter::append_indentation()
- {
- if (output_style() == COMPRESSED) return;
- if (output_style() == COMPACT) return;
- if (in_declaration && in_comma_array) return;
- if (scheduled_linefeed && indentation)
- scheduled_linefeed = 1;
- std::string indent = "";
- for (size_t i = 0; i < indentation; i++)
- indent += opt.indent;
- append_string(indent);
- }
-
- void Emitter::append_delimiter()
- {
- scheduled_delimiter = true;
- if (output_style() == COMPACT) {
- if (indentation == 0) {
- append_mandatory_linefeed();
- } else {
- append_mandatory_space();
- }
- } else if (output_style() != COMPRESSED) {
- append_optional_linefeed();
- }
- }
-
- void Emitter::append_comma_separator()
- {
- // scheduled_space = 0;
- append_string(",");
- append_optional_space();
- }
-
- void Emitter::append_colon_separator()
- {
- scheduled_space = 0;
- append_string(":");
- if (!in_custom_property) append_optional_space();
- }
-
- void Emitter::append_mandatory_space()
- {
- scheduled_space = 1;
- }
-
- void Emitter::append_optional_space()
- {
- if ((output_style() != COMPRESSED) && buffer().size()) {
- unsigned char lst = buffer().at(buffer().length() - 1);
- if (!isspace(lst) || scheduled_delimiter) {
- if (last_char() != '(') {
- append_mandatory_space();
- }
- }
- }
- }
-
- void Emitter::append_special_linefeed()
- {
- if (output_style() == COMPACT) {
- append_mandatory_linefeed();
- for (size_t p = 0; p < indentation; p++)
- append_string(opt.indent);
- }
- }
-
- void Emitter::append_optional_linefeed()
- {
- if (in_declaration && in_comma_array) return;
- if (output_style() == COMPACT) {
- append_mandatory_space();
- } else {
- append_mandatory_linefeed();
- }
- }
-
- void Emitter::append_mandatory_linefeed()
- {
- if (output_style() != COMPRESSED) {
- scheduled_linefeed = 1;
- scheduled_space = 0;
- // flush_schedules();
- }
- }
-
- void Emitter::append_scope_opener(AST_Node_Ptr node)
- {
- scheduled_linefeed = 0;
- append_optional_space();
- flush_schedules();
- if (node) add_open_mapping(node);
- append_string("{");
- append_optional_linefeed();
- // append_optional_space();
- ++ indentation;
- }
- void Emitter::append_scope_closer(AST_Node_Ptr node)
- {
- -- indentation;
- scheduled_linefeed = 0;
- if (output_style() == COMPRESSED)
- scheduled_delimiter = false;
- if (output_style() == EXPANDED) {
- append_optional_linefeed();
- append_indentation();
- } else {
- append_optional_space();
- }
- append_string("}");
- if (node) add_close_mapping(node);
- append_optional_linefeed();
- if (indentation != 0) return;
- if (output_style() != COMPRESSED)
- scheduled_linefeed = 2;
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/emitter.hpp b/node_modules/node-sass/src/libsass/src/emitter.hpp
deleted file mode 100644
index 3bf8f60..0000000
--- a/node_modules/node-sass/src/libsass/src/emitter.hpp
+++ /dev/null
@@ -1,99 +0,0 @@
-#ifndef SASS_EMITTER_H
-#define SASS_EMITTER_H
-
-#include <string>
-#include "sass.hpp"
-#include "sass/base.h"
-#include "source_map.hpp"
-#include "ast_fwd_decl.hpp"
-
-namespace Sass {
- class Context;
-
- class Emitter {
-
- public:
- Emitter(struct Sass_Output_Options& opt);
- virtual ~Emitter() { }
-
- protected:
- OutputBuffer wbuf;
- public:
- const std::string& buffer(void) { return wbuf.buffer; }
- const SourceMap smap(void) { return wbuf.smap; }
- const OutputBuffer output(void) { return wbuf; }
- // proxy methods for source maps
- void add_source_index(size_t idx);
- void set_filename(const std::string& str);
- void add_open_mapping(const AST_Node_Ptr node);
- void add_close_mapping(const AST_Node_Ptr node);
- void schedule_mapping(const AST_Node_Ptr node);
- std::string render_srcmap(Context &ctx);
- ParserState remap(const ParserState& pstate);
-
- public:
- struct Sass_Output_Options& opt;
- size_t indentation;
- size_t scheduled_space;
- size_t scheduled_linefeed;
- bool scheduled_delimiter;
- AST_Node_Ptr scheduled_crutch;
- AST_Node_Ptr scheduled_mapping;
-
- public:
- // output strings different in custom css properties
- bool in_custom_property;
- // output strings different in comments
- bool in_comment;
- // selector list does not get linefeeds
- bool in_wrapped;
- // lists always get a space after delimiter
- bool in_media_block;
- // nested list must not have parentheses
- bool in_declaration;
- // nested lists need parentheses
- bool in_space_array;
- bool in_comma_array;
-
- public:
- // return buffer as std::string
- std::string get_buffer(void);
- // flush scheduled space/linefeed
- Sass_Output_Style output_style(void) const;
- // add outstanding linefeed
- void finalize(bool final = true);
- // flush scheduled space/linefeed
- void flush_schedules(void);
- // prepend some text or token to the buffer
- void prepend_string(const std::string& text);
- void prepend_output(const OutputBuffer& out);
- // append some text or token to the buffer
- void append_string(const std::string& text);
- // append a single character to buffer
- void append_char(const char chr);
- // append some white-space only text
- void append_wspace(const std::string& text);
- // append some text or token to the buffer
- // this adds source-mappings for node start and end
- void append_token(const std::string& text, const AST_Node_Ptr node);
- // query last appended character
- char last_char();
-
- public: // syntax sugar
- void append_indentation();
- void append_optional_space(void);
- void append_mandatory_space(void);
- void append_special_linefeed(void);
- void append_optional_linefeed(void);
- void append_mandatory_linefeed(void);
- void append_scope_opener(AST_Node_Ptr node = 0);
- void append_scope_closer(AST_Node_Ptr node = 0);
- void append_comma_separator(void);
- void append_colon_separator(void);
- void append_delimiter(void);
-
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/environment.cpp b/node_modules/node-sass/src/libsass/src/environment.cpp
deleted file mode 100644
index e382e7e..0000000
--- a/node_modules/node-sass/src/libsass/src/environment.cpp
+++ /dev/null
@@ -1,246 +0,0 @@
-#include "sass.hpp"
-#include "ast.hpp"
-#include "environment.hpp"
-
-namespace Sass {
-
- template <typename T>
- Environment<T>::Environment(bool is_shadow)
- : local_frame_(environment_map<std::string, T>()),
- parent_(0), is_shadow_(false)
- { }
- template <typename T>
- Environment<T>::Environment(Environment<T>* env, bool is_shadow)
- : local_frame_(environment_map<std::string, T>()),
- parent_(env), is_shadow_(is_shadow)
- { }
- template <typename T>
- Environment<T>::Environment(Environment<T>& env, bool is_shadow)
- : local_frame_(environment_map<std::string, T>()),
- parent_(&env), is_shadow_(is_shadow)
- { }
-
- // link parent to create a stack
- template <typename T>
- void Environment<T>::link(Environment& env) { parent_ = &env; }
- template <typename T>
- void Environment<T>::link(Environment* env) { parent_ = env; }
-
- // this is used to find the global frame
- // which is the second last on the stack
- template <typename T>
- bool Environment<T>::is_lexical() const
- {
- return !! parent_ && parent_->parent_;
- }
-
- // only match the real root scope
- // there is still a parent around
- // not sure what it is actually use for
- // I guess we store functions etc. there
- template <typename T>
- bool Environment<T>::is_global() const
- {
- return parent_ && ! parent_->parent_;
- }
-
- template <typename T>
- environment_map<std::string, T>& Environment<T>::local_frame() {
- return local_frame_;
- }
-
- template <typename T>
- bool Environment<T>::has_local(const std::string& key) const
- { return local_frame_.find(key) != local_frame_.end(); }
-
- template <typename T> EnvResult
- Environment<T>::find_local(const std::string& key)
- {
- auto end = local_frame_.end();
- auto it = local_frame_.find(key);
- return EnvResult(it, it != end);
- }
-
- template <typename T>
- T& Environment<T>::get_local(const std::string& key)
- { return local_frame_[key]; }
-
- template <typename T>
- void Environment<T>::set_local(const std::string& key, const T& val)
- {
- local_frame_[key] = val;
- }
- template <typename T>
- void Environment<T>::set_local(const std::string& key, T&& val)
- {
- local_frame_[key] = val;
- }
-
- template <typename T>
- void Environment<T>::del_local(const std::string& key)
- { local_frame_.erase(key); }
-
- template <typename T>
- Environment<T>* Environment<T>::global_env()
- {
- Environment* cur = this;
- while (cur->is_lexical()) {
- cur = cur->parent_;
- }
- return cur;
- }
-
- template <typename T>
- bool Environment<T>::has_global(const std::string& key)
- { return global_env()->has(key); }
-
- template <typename T>
- T& Environment<T>::get_global(const std::string& key)
- { return (*global_env())[key]; }
-
- template <typename T>
- void Environment<T>::set_global(const std::string& key, const T& val)
- {
- global_env()->local_frame_[key] = val;
- }
- template <typename T>
- void Environment<T>::set_global(const std::string& key, T&& val)
- {
- global_env()->local_frame_[key] = val;
- }
-
- template <typename T>
- void Environment<T>::del_global(const std::string& key)
- { global_env()->local_frame_.erase(key); }
-
- template <typename T>
- Environment<T>* Environment<T>::lexical_env(const std::string& key)
- {
- Environment* cur = this;
- while (cur) {
- if (cur->has_local(key)) {
- return cur;
- }
- cur = cur->parent_;
- }
- return this;
- }
-
- // see if we have a lexical variable
- // move down the stack but stop before we
- // reach the global frame (is not included)
- template <typename T>
- bool Environment<T>::has_lexical(const std::string& key) const
- {
- auto cur = this;
- while (cur->is_lexical()) {
- if (cur->has_local(key)) return true;
- cur = cur->parent_;
- }
- return false;
- }
-
- // see if we have a lexical we could update
- // either update already existing lexical value
- // or if flag is set, we create one if no lexical found
- template <typename T>
- void Environment<T>::set_lexical(const std::string& key, const T& val)
- {
- Environment<T>* cur = this;
- bool shadow = false;
- while ((cur && cur->is_lexical()) || shadow) {
- EnvResult rv(cur->find_local(key));
- if (rv.found) {
- rv.it->second = val;
- return;
- }
- shadow = cur->is_shadow();
- cur = cur->parent_;
- }
- set_local(key, val);
- }
- // this one moves the value
- template <typename T>
- void Environment<T>::set_lexical(const std::string& key, T&& val)
- {
- Environment<T>* cur = this;
- bool shadow = false;
- while ((cur && cur->is_lexical()) || shadow) {
- EnvResult rv(cur->find_local(key));
- if (rv.found) {
- rv.it->second = val;
- return;
- }
- shadow = cur->is_shadow();
- cur = cur->parent_;
- }
- set_local(key, val);
- }
-
- // look on the full stack for key
- // include all scopes available
- template <typename T>
- bool Environment<T>::has(const std::string& key) const
- {
- auto cur = this;
- while (cur) {
- if (cur->has_local(key)) {
- return true;
- }
- cur = cur->parent_;
- }
- return false;
- }
-
- // look on the full stack for key
- // include all scopes available
- template <typename T> EnvResult
- Environment<T>::find(const std::string& key)
- {
- auto cur = this;
- while (true) {
- EnvResult rv(cur->find_local(key));
- if (rv.found) return rv;
- cur = cur->parent_;
- if (!cur) return rv;
- }
- };
-
- // use array access for getter and setter functions
- template <typename T>
- T& Environment<T>::operator[](const std::string& key)
- {
- auto cur = this;
- while (cur) {
- if (cur->has_local(key)) {
- return cur->get_local(key);
- }
- cur = cur->parent_;
- }
- return get_local(key);
- }
-/*
- #ifdef DEBUG
- template <typename T>
- size_t Environment<T>::print(std::string prefix)
- {
- size_t indent = 0;
- if (parent_) indent = parent_->print(prefix) + 1;
- std::cerr << prefix << std::string(indent, ' ') << "== " << this << std::endl;
- for (typename environment_map<std::string, T>::iterator i = local_frame_.begin(); i != local_frame_.end(); ++i) {
- if (!ends_with(i->first, "[f]") && !ends_with(i->first, "[f]4") && !ends_with(i->first, "[f]2")) {
- std::cerr << prefix << std::string(indent, ' ') << i->first << " " << i->second;
- if (Value_Ptr val = Cast<Value>(i->second))
- { std::cerr << " : " << val->to_string(); }
- std::cerr << std::endl;
- }
- }
- return indent ;
- }
- #endif
-*/
- // compile implementation for AST_Node
- template class Environment<AST_Node_Obj>;
-
-}
-
diff --git a/node_modules/node-sass/src/libsass/src/environment.hpp b/node_modules/node-sass/src/libsass/src/environment.hpp
deleted file mode 100644
index a6939be..0000000
--- a/node_modules/node-sass/src/libsass/src/environment.hpp
+++ /dev/null
@@ -1,113 +0,0 @@
-#ifndef SASS_ENVIRONMENT_H
-#define SASS_ENVIRONMENT_H
-
-#include <string>
-#include "ast_fwd_decl.hpp"
-#include "ast_def_macros.hpp"
-
-namespace Sass {
-
- typedef environment_map<std::string, AST_Node_Obj>::iterator EnvIter;
-
- class EnvResult {
- public:
- EnvIter it;
- bool found;
- public:
- EnvResult(EnvIter it, bool found)
- : it(it), found(found) {}
- };
-
- template <typename T>
- class Environment {
- // TODO: test with map
- environment_map<std::string, T> local_frame_;
- ADD_PROPERTY(Environment*, parent)
- ADD_PROPERTY(bool, is_shadow)
-
- public:
- Environment(bool is_shadow = false);
- Environment(Environment* env, bool is_shadow = false);
- Environment(Environment& env, bool is_shadow = false);
-
- // link parent to create a stack
- void link(Environment& env);
- void link(Environment* env);
-
- // this is used to find the global frame
- // which is the second last on the stack
- bool is_lexical() const;
-
- // only match the real root scope
- // there is still a parent around
- // not sure what it is actually use for
- // I guess we store functions etc. there
- bool is_global() const;
-
- // scope operates on the current frame
-
- environment_map<std::string, T>& local_frame();
-
- bool has_local(const std::string& key) const;
-
- EnvResult find_local(const std::string& key);
-
- T& get_local(const std::string& key);
-
- // set variable on the current frame
- void set_local(const std::string& key, const T& val);
- void set_local(const std::string& key, T&& val);
-
- void del_local(const std::string& key);
-
- // global operates on the global frame
- // which is the second last on the stack
- Environment* global_env();
- // get the env where the variable already exists
- // if it does not yet exist, we return current env
- Environment* lexical_env(const std::string& key);
-
- bool has_global(const std::string& key);
-
- T& get_global(const std::string& key);
-
- // set a variable on the global frame
- void set_global(const std::string& key, const T& val);
- void set_global(const std::string& key, T&& val);
-
- void del_global(const std::string& key);
-
- // see if we have a lexical variable
- // move down the stack but stop before we
- // reach the global frame (is not included)
- bool has_lexical(const std::string& key) const;
-
- // see if we have a lexical we could update
- // either update already existing lexical value
- // or we create a new one on the current frame
- void set_lexical(const std::string& key, T&& val);
- void set_lexical(const std::string& key, const T& val);
-
- // look on the full stack for key
- // include all scopes available
- bool has(const std::string& key) const;
-
- // look on the full stack for key
- // include all scopes available
- EnvResult find(const std::string& key);
-
- // use array access for getter and setter functions
- T& operator[](const std::string& key);
-
- #ifdef DEBUG
- size_t print(std::string prefix = "");
- #endif
-
- };
-
- // define typedef for our use case
- typedef Environment<AST_Node_Obj> Env;
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/error_handling.cpp b/node_modules/node-sass/src/libsass/src/error_handling.cpp
deleted file mode 100644
index 745f655..0000000
--- a/node_modules/node-sass/src/libsass/src/error_handling.cpp
+++ /dev/null
@@ -1,235 +0,0 @@
-#include "sass.hpp"
-#include "ast.hpp"
-#include "prelexer.hpp"
-#include "backtrace.hpp"
-#include "error_handling.hpp"
-
-#include <iostream>
-
-namespace Sass {
-
- namespace Exception {
-
- Base::Base(ParserState pstate, std::string msg, Backtraces traces)
- : std::runtime_error(msg), msg(msg),
- prefix("Error"), pstate(pstate), traces(traces)
- { }
-
- InvalidSass::InvalidSass(ParserState pstate, Backtraces traces, std::string msg)
- : Base(pstate, msg, traces)
- { }
-
-
- InvalidParent::InvalidParent(Selector_Ptr parent, Backtraces traces, Selector_Ptr selector)
- : Base(selector->pstate(), def_msg, traces), parent(parent), selector(selector)
- {
- msg = "Invalid parent selector for \"";
- msg += selector->to_string(Sass_Inspect_Options());
- msg += "\": \"";
- msg += parent->to_string(Sass_Inspect_Options());
- msg += "\"";
- }
-
- InvalidVarKwdType::InvalidVarKwdType(ParserState pstate, Backtraces traces, std::string name, const Argument_Ptr arg)
- : Base(pstate, def_msg, traces), name(name), arg(arg)
- {
- msg = "Variable keyword argument map must have string keys.\n";
- msg += name + " is not a string in " + arg->to_string() + ".";
- }
-
- InvalidArgumentType::InvalidArgumentType(ParserState pstate, Backtraces traces, std::string fn, std::string arg, std::string type, const Value_Ptr value)
- : Base(pstate, def_msg, traces), fn(fn), arg(arg), type(type), value(value)
- {
- msg = arg + ": \"";
- if (value) msg += value->to_string(Sass_Inspect_Options());
- msg += "\" is not a " + type;
- msg += " for `" + fn + "'";
- }
-
- MissingArgument::MissingArgument(ParserState pstate, Backtraces traces, std::string fn, std::string arg, std::string fntype)
- : Base(pstate, def_msg, traces), fn(fn), arg(arg), fntype(fntype)
- {
- msg = fntype + " " + fn;
- msg += " is missing argument ";
- msg += arg + ".";
- }
-
- InvalidSyntax::InvalidSyntax(ParserState pstate, Backtraces traces, std::string msg)
- : Base(pstate, msg, traces)
- { }
-
- NestingLimitError::NestingLimitError(ParserState pstate, Backtraces traces, std::string msg)
- : Base(pstate, msg, traces)
- { }
-
- DuplicateKeyError::DuplicateKeyError(Backtraces traces, const Map& dup, const Expression& org)
- : Base(org.pstate(), def_msg, traces), dup(dup), org(org)
- {
- msg = "Duplicate key ";
- msg += dup.get_duplicate_key()->inspect();
- msg += " in map (";
- msg += org.inspect();
- msg += ").";
- }
-
- TypeMismatch::TypeMismatch(Backtraces traces, const Expression& var, const std::string type)
- : Base(var.pstate(), def_msg, traces), var(var), type(type)
- {
- msg = var.to_string();
- msg += " is not an ";
- msg += type;
- msg += ".";
- }
-
- InvalidValue::InvalidValue(Backtraces traces, const Expression& val)
- : Base(val.pstate(), def_msg, traces), val(val)
- {
- msg = val.to_string();
- msg += " isn't a valid CSS value.";
- }
-
- StackError::StackError(Backtraces traces, const AST_Node& node)
- : Base(node.pstate(), def_msg, traces), node(node)
- {
- msg = "stack level too deep";
- }
-
- IncompatibleUnits::IncompatibleUnits(const Units& lhs, const Units& rhs)
- {
- msg = "Incompatible units: '";
- msg += rhs.unit();
- msg += "' and '";
- msg += lhs.unit();
- msg += "'.";
- }
-
- IncompatibleUnits::IncompatibleUnits(const UnitType lhs, const UnitType rhs)
- {
- msg = "Incompatible units: '";
- msg += unit_to_string(rhs);
- msg += "' and '";
- msg += unit_to_string(lhs);
- msg += "'.";
- }
-
- AlphaChannelsNotEqual::AlphaChannelsNotEqual(Expression_Ptr_Const lhs, Expression_Ptr_Const rhs, enum Sass_OP op)
- : OperationError(), lhs(lhs), rhs(rhs), op(op)
- {
- msg = "Alpha channels must be equal: ";
- msg += lhs->to_string({ NESTED, 5 });
- msg += " " + sass_op_to_name(op) + " ";
- msg += rhs->to_string({ NESTED, 5 });
- msg += ".";
- }
-
- ZeroDivisionError::ZeroDivisionError(const Expression& lhs, const Expression& rhs)
- : OperationError(), lhs(lhs), rhs(rhs)
- {
- msg = "divided by 0";
- }
-
- UndefinedOperation::UndefinedOperation(Expression_Ptr_Const lhs, Expression_Ptr_Const rhs, enum Sass_OP op)
- : OperationError(), lhs(lhs), rhs(rhs), op(op)
- {
- msg = def_op_msg + ": \"";
- msg += lhs->to_string({ NESTED, 5 });
- msg += " " + sass_op_to_name(op) + " ";
- msg += rhs->to_string({ TO_SASS, 5 });
- msg += "\".";
- }
-
- InvalidNullOperation::InvalidNullOperation(Expression_Ptr_Const lhs, Expression_Ptr_Const rhs, enum Sass_OP op)
- : UndefinedOperation(lhs, rhs, op)
- {
- msg = def_op_null_msg + ": \"";
- msg += lhs->inspect();
- msg += " " + sass_op_to_name(op) + " ";
- msg += rhs->inspect();
- msg += "\".";
- }
-
- SassValueError::SassValueError(Backtraces traces, ParserState pstate, OperationError& err)
- : Base(pstate, err.what(), traces)
- {
- msg = err.what();
- prefix = err.errtype();
- }
-
- }
-
-
- void warn(std::string msg, ParserState pstate)
- {
- std::cerr << "Warning: " << msg << std::endl;
- }
-
- void warning(std::string msg, ParserState pstate)
- {
- std::string cwd(Sass::File::get_cwd());
- std::string abs_path(Sass::File::rel2abs(pstate.path, cwd, cwd));
- std::string rel_path(Sass::File::abs2rel(pstate.path, cwd, cwd));
- std::string output_path(Sass::File::path_for_console(rel_path, abs_path, pstate.path));
-
- std::cerr << "WARNING on line " << pstate.line+1 << ", column " << pstate.column+1 << " of " << output_path << ":" << std::endl;
- std::cerr << msg << std::endl << std::endl;
- }
-
- void warn(std::string msg, ParserState pstate, Backtrace* bt)
- {
- warn(msg, pstate);
- }
-
- void deprecated_function(std::string msg, ParserState pstate)
- {
- std::string cwd(Sass::File::get_cwd());
- std::string abs_path(Sass::File::rel2abs(pstate.path, cwd, cwd));
- std::string rel_path(Sass::File::abs2rel(pstate.path, cwd, cwd));
- std::string output_path(Sass::File::path_for_console(rel_path, abs_path, pstate.path));
-
- std::cerr << "DEPRECATION WARNING: " << msg << std::endl;
- std::cerr << "will be an error in future versions of Sass." << std::endl;
- std::cerr << " on line " << pstate.line+1 << " of " << output_path << std::endl;
- }
-
- void deprecated(std::string msg, std::string msg2, bool with_column, ParserState pstate)
- {
- std::string cwd(Sass::File::get_cwd());
- std::string abs_path(Sass::File::rel2abs(pstate.path, cwd, cwd));
- std::string rel_path(Sass::File::abs2rel(pstate.path, cwd, cwd));
- std::string output_path(Sass::File::path_for_console(rel_path, pstate.path, pstate.path));
-
- std::cerr << "DEPRECATION WARNING on line " << pstate.line + 1;
- if (with_column) std::cerr << ", column " << pstate.column + pstate.offset.column + 1;
- if (output_path.length()) std::cerr << " of " << output_path;
- std::cerr << ":" << std::endl;
- std::cerr << msg << std::endl;
- if (msg2.length()) std::cerr << msg2 << std::endl;
- std::cerr << std::endl;
- }
-
- void deprecated_bind(std::string msg, ParserState pstate)
- {
- std::string cwd(Sass::File::get_cwd());
- std::string abs_path(Sass::File::rel2abs(pstate.path, cwd, cwd));
- std::string rel_path(Sass::File::abs2rel(pstate.path, cwd, cwd));
- std::string output_path(Sass::File::path_for_console(rel_path, abs_path, pstate.path));
-
- std::cerr << "WARNING: " << msg << std::endl;
- std::cerr << " on line " << pstate.line+1 << " of " << output_path << std::endl;
- std::cerr << "This will be an error in future versions of Sass." << std::endl;
- }
-
- // should be replaced with error with backtraces
- void coreError(std::string msg, ParserState pstate)
- {
- Backtraces traces;
- throw Exception::InvalidSyntax(pstate, traces, msg);
- }
-
- void error(std::string msg, ParserState pstate, Backtraces& traces)
- {
- traces.push_back(Backtrace(pstate));
- throw Exception::InvalidSyntax(pstate, traces, msg);
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/error_handling.hpp b/node_modules/node-sass/src/libsass/src/error_handling.hpp
deleted file mode 100644
index f863792..0000000
--- a/node_modules/node-sass/src/libsass/src/error_handling.hpp
+++ /dev/null
@@ -1,216 +0,0 @@
-#ifndef SASS_ERROR_HANDLING_H
-#define SASS_ERROR_HANDLING_H
-
-#include <string>
-#include <sstream>
-#include <stdexcept>
-#include "position.hpp"
-#include "backtrace.hpp"
-#include "ast_fwd_decl.hpp"
-#include "sass/functions.h"
-
-namespace Sass {
-
- struct Backtrace;
-
- namespace Exception {
-
- const std::string def_msg = "Invalid sass detected";
- const std::string def_op_msg = "Undefined operation";
- const std::string def_op_null_msg = "Invalid null operation";
- const std::string def_nesting_limit = "Code too deeply neested";
-
- class Base : public std::runtime_error {
- protected:
- std::string msg;
- std::string prefix;
- public:
- ParserState pstate;
- Backtraces traces;
- public:
- Base(ParserState pstate, std::string msg, Backtraces traces);
- virtual const char* errtype() const { return prefix.c_str(); }
- virtual const char* what() const throw() { return msg.c_str(); }
- virtual ~Base() throw() {};
- };
-
- class InvalidSass : public Base {
- public:
- InvalidSass(ParserState pstate, Backtraces traces, std::string msg);
- virtual ~InvalidSass() throw() {};
- };
-
- class InvalidParent : public Base {
- protected:
- Selector_Ptr parent;
- Selector_Ptr selector;
- public:
- InvalidParent(Selector_Ptr parent, Backtraces traces, Selector_Ptr selector);
- virtual ~InvalidParent() throw() {};
- };
-
- class MissingArgument : public Base {
- protected:
- std::string fn;
- std::string arg;
- std::string fntype;
- public:
- MissingArgument(ParserState pstate, Backtraces traces, std::string fn, std::string arg, std::string fntype);
- virtual ~MissingArgument() throw() {};
- };
-
- class InvalidArgumentType : public Base {
- protected:
- std::string fn;
- std::string arg;
- std::string type;
- const Value_Ptr value;
- public:
- InvalidArgumentType(ParserState pstate, Backtraces traces, std::string fn, std::string arg, std::string type, const Value_Ptr value = 0);
- virtual ~InvalidArgumentType() throw() {};
- };
-
- class InvalidVarKwdType : public Base {
- protected:
- std::string name;
- const Argument_Ptr arg;
- public:
- InvalidVarKwdType(ParserState pstate, Backtraces traces, std::string name, const Argument_Ptr arg = 0);
- virtual ~InvalidVarKwdType() throw() {};
- };
-
- class InvalidSyntax : public Base {
- public:
- InvalidSyntax(ParserState pstate, Backtraces traces, std::string msg);
- virtual ~InvalidSyntax() throw() {};
- };
-
- class NestingLimitError : public Base {
- public:
- NestingLimitError(ParserState pstate, Backtraces traces, std::string msg = def_nesting_limit);
- virtual ~NestingLimitError() throw() {};
- };
-
- class DuplicateKeyError : public Base {
- protected:
- const Map& dup;
- const Expression& org;
- public:
- DuplicateKeyError(Backtraces traces, const Map& dup, const Expression& org);
- virtual const char* errtype() const { return "Error"; }
- virtual ~DuplicateKeyError() throw() {};
- };
-
- class TypeMismatch : public Base {
- protected:
- const Expression& var;
- const std::string type;
- public:
- TypeMismatch(Backtraces traces, const Expression& var, const std::string type);
- virtual const char* errtype() const { return "Error"; }
- virtual ~TypeMismatch() throw() {};
- };
-
- class InvalidValue : public Base {
- protected:
- const Expression& val;
- public:
- InvalidValue(Backtraces traces, const Expression& val);
- virtual const char* errtype() const { return "Error"; }
- virtual ~InvalidValue() throw() {};
- };
-
- class StackError : public Base {
- protected:
- const AST_Node& node;
- public:
- StackError(Backtraces traces, const AST_Node& node);
- virtual const char* errtype() const { return "SystemStackError"; }
- virtual ~StackError() throw() {};
- };
-
- /* common virtual base class (has no pstate or trace) */
- class OperationError : public std::runtime_error {
- protected:
- std::string msg;
- public:
- OperationError(std::string msg = def_op_msg)
- : std::runtime_error(msg), msg(msg)
- {};
- public:
- virtual const char* errtype() const { return "Error"; }
- virtual const char* what() const throw() { return msg.c_str(); }
- virtual ~OperationError() throw() {};
- };
-
- class ZeroDivisionError : public OperationError {
- protected:
- const Expression& lhs;
- const Expression& rhs;
- public:
- ZeroDivisionError(const Expression& lhs, const Expression& rhs);
- virtual const char* errtype() const { return "ZeroDivisionError"; }
- virtual ~ZeroDivisionError() throw() {};
- };
-
- class IncompatibleUnits : public OperationError {
- protected:
- // const Sass::UnitType lhs;
- // const Sass::UnitType rhs;
- public:
- IncompatibleUnits(const Units& lhs, const Units& rhs);
- IncompatibleUnits(const UnitType lhs, const UnitType rhs);
- virtual ~IncompatibleUnits() throw() {};
- };
-
- class UndefinedOperation : public OperationError {
- protected:
- Expression_Ptr_Const lhs;
- Expression_Ptr_Const rhs;
- const Sass_OP op;
- public:
- UndefinedOperation(Expression_Ptr_Const lhs, Expression_Ptr_Const rhs, enum Sass_OP op);
- // virtual const char* errtype() const { return "Error"; }
- virtual ~UndefinedOperation() throw() {};
- };
-
- class InvalidNullOperation : public UndefinedOperation {
- public:
- InvalidNullOperation(Expression_Ptr_Const lhs, Expression_Ptr_Const rhs, enum Sass_OP op);
- virtual ~InvalidNullOperation() throw() {};
- };
-
- class AlphaChannelsNotEqual : public OperationError {
- protected:
- Expression_Ptr_Const lhs;
- Expression_Ptr_Const rhs;
- const Sass_OP op;
- public:
- AlphaChannelsNotEqual(Expression_Ptr_Const lhs, Expression_Ptr_Const rhs, enum Sass_OP op);
- // virtual const char* errtype() const { return "Error"; }
- virtual ~AlphaChannelsNotEqual() throw() {};
- };
-
- class SassValueError : public Base {
- public:
- SassValueError(Backtraces traces, ParserState pstate, OperationError& err);
- virtual ~SassValueError() throw() {};
- };
-
- }
-
- void warn(std::string msg, ParserState pstate);
- void warn(std::string msg, ParserState pstate, Backtrace* bt);
- void warning(std::string msg, ParserState pstate);
-
- void deprecated_function(std::string msg, ParserState pstate);
- void deprecated(std::string msg, std::string msg2, bool with_column, ParserState pstate);
- void deprecated_bind(std::string msg, ParserState pstate);
- // void deprecated(std::string msg, ParserState pstate, Backtrace* bt);
-
- void coreError(std::string msg, ParserState pstate);
- void error(std::string msg, ParserState pstate, Backtraces& traces);
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/eval.cpp b/node_modules/node-sass/src/libsass/src/eval.cpp
deleted file mode 100644
index 841f727..0000000
--- a/node_modules/node-sass/src/libsass/src/eval.cpp
+++ /dev/null
@@ -1,1663 +0,0 @@
-#include "sass.hpp"
-#include <cstdlib>
-#include <cmath>
-#include <iostream>
-#include <sstream>
-#include <iomanip>
-#include <typeinfo>
-
-#include "file.hpp"
-#include "eval.hpp"
-#include "ast.hpp"
-#include "bind.hpp"
-#include "util.hpp"
-#include "inspect.hpp"
-#include "operators.hpp"
-#include "environment.hpp"
-#include "position.hpp"
-#include "sass/values.h"
-#include "to_value.hpp"
-#include "to_c.hpp"
-#include "context.hpp"
-#include "backtrace.hpp"
-#include "lexer.hpp"
-#include "prelexer.hpp"
-#include "parser.hpp"
-#include "expand.hpp"
-#include "color_maps.hpp"
-#include "sass_functions.hpp"
-
-namespace Sass {
-
- Eval::Eval(Expand& exp)
- : exp(exp),
- ctx(exp.ctx),
- traces(exp.traces),
- force(false),
- is_in_comment(false),
- is_in_selector_schema(false)
- {
- bool_true = SASS_MEMORY_NEW(Boolean, "[NA]", true);
- bool_false = SASS_MEMORY_NEW(Boolean, "[NA]", false);
- }
- Eval::~Eval() { }
-
- Env* Eval::environment()
- {
- return exp.environment();
- }
-
- Selector_List_Obj Eval::selector()
- {
- return exp.selector();
- }
-
- Expression_Ptr Eval::operator()(Block_Ptr b)
- {
- Expression_Ptr val = 0;
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- val = b->at(i)->perform(this);
- if (val) return val;
- }
- return val;
- }
-
- Expression_Ptr Eval::operator()(Assignment_Ptr a)
- {
- Env* env = exp.environment();
- std::string var(a->variable());
- if (a->is_global()) {
- if (a->is_default()) {
- if (env->has_global(var)) {
- Expression_Ptr e = Cast<Expression>(env->get_global(var));
- if (!e || e->concrete_type() == Expression::NULL_VAL) {
- env->set_global(var, a->value()->perform(this));
- }
- }
- else {
- env->set_global(var, a->value()->perform(this));
- }
- }
- else {
- env->set_global(var, a->value()->perform(this));
- }
- }
- else if (a->is_default()) {
- if (env->has_lexical(var)) {
- auto cur = env;
- while (cur && cur->is_lexical()) {
- if (cur->has_local(var)) {
- if (AST_Node_Obj node = cur->get_local(var)) {
- Expression_Ptr e = Cast<Expression>(node);
- if (!e || e->concrete_type() == Expression::NULL_VAL) {
- cur->set_local(var, a->value()->perform(this));
- }
- }
- else {
- throw std::runtime_error("Env not in sync");
- }
- return 0;
- }
- cur = cur->parent();
- }
- throw std::runtime_error("Env not in sync");
- }
- else if (env->has_global(var)) {
- if (AST_Node_Obj node = env->get_global(var)) {
- Expression_Ptr e = Cast<Expression>(node);
- if (!e || e->concrete_type() == Expression::NULL_VAL) {
- env->set_global(var, a->value()->perform(this));
- }
- }
- }
- else if (env->is_lexical()) {
- env->set_local(var, a->value()->perform(this));
- }
- else {
- env->set_local(var, a->value()->perform(this));
- }
- }
- else {
- env->set_lexical(var, a->value()->perform(this));
- }
- return 0;
- }
-
- Expression_Ptr Eval::operator()(If_Ptr i)
- {
- Expression_Obj rv = 0;
- Env env(exp.environment());
- exp.env_stack.push_back(&env);
- Expression_Obj cond = i->predicate()->perform(this);
- if (!cond->is_false()) {
- rv = i->block()->perform(this);
- }
- else {
- Block_Obj alt = i->alternative();
- if (alt) rv = alt->perform(this);
- }
- exp.env_stack.pop_back();
- return rv.detach();
- }
-
- // For does not create a new env scope
- // But iteration vars are reset afterwards
- Expression_Ptr Eval::operator()(For_Ptr f)
- {
- std::string variable(f->variable());
- Expression_Obj low = f->lower_bound()->perform(this);
- if (low->concrete_type() != Expression::NUMBER) {
- traces.push_back(Backtrace(low->pstate()));
- throw Exception::TypeMismatch(traces, *low, "integer");
- }
- Expression_Obj high = f->upper_bound()->perform(this);
- if (high->concrete_type() != Expression::NUMBER) {
- traces.push_back(Backtrace(high->pstate()));
- throw Exception::TypeMismatch(traces, *high, "integer");
- }
- Number_Obj sass_start = Cast<Number>(low);
- Number_Obj sass_end = Cast<Number>(high);
- // check if units are valid for sequence
- if (sass_start->unit() != sass_end->unit()) {
- std::stringstream msg; msg << "Incompatible units: '"
- << sass_end->unit() << "' and '"
- << sass_start->unit() << "'.";
- error(msg.str(), low->pstate(), traces);
- }
- double start = sass_start->value();
- double end = sass_end->value();
- // only create iterator once in this environment
- Env env(environment(), true);
- exp.env_stack.push_back(&env);
- Block_Obj body = f->block();
- Expression_Ptr val = 0;
- if (start < end) {
- if (f->is_inclusive()) ++end;
- for (double i = start;
- i < end;
- ++i) {
- Number_Obj it = SASS_MEMORY_NEW(Number, low->pstate(), i, sass_end->unit());
- env.set_local(variable, it);
- val = body->perform(this);
- if (val) break;
- }
- } else {
- if (f->is_inclusive()) --end;
- for (double i = start;
- i > end;
- --i) {
- Number_Obj it = SASS_MEMORY_NEW(Number, low->pstate(), i, sass_end->unit());
- env.set_local(variable, it);
- val = body->perform(this);
- if (val) break;
- }
- }
- exp.env_stack.pop_back();
- return val;
- }
-
- // Eval does not create a new env scope
- // But iteration vars are reset afterwards
- Expression_Ptr Eval::operator()(Each_Ptr e)
- {
- std::vector<std::string> variables(e->variables());
- Expression_Obj expr = e->list()->perform(this);
- Env env(environment(), true);
- exp.env_stack.push_back(&env);
- List_Obj list = 0;
- Map_Ptr map = 0;
- if (expr->concrete_type() == Expression::MAP) {
- map = Cast<Map>(expr);
- }
- else if (Selector_List_Ptr ls = Cast<Selector_List>(expr)) {
- Listize listize;
- Expression_Obj rv = ls->perform(&listize);
- list = Cast<List>(rv);
- }
- else if (expr->concrete_type() != Expression::LIST) {
- list = SASS_MEMORY_NEW(List, expr->pstate(), 1, SASS_COMMA);
- list->append(expr);
- }
- else {
- list = Cast<List>(expr);
- }
-
- Block_Obj body = e->block();
- Expression_Obj val = 0;
-
- if (map) {
- for (Expression_Obj key : map->keys()) {
- Expression_Obj value = map->at(key);
-
- if (variables.size() == 1) {
- List_Ptr variable = SASS_MEMORY_NEW(List, map->pstate(), 2, SASS_SPACE);
- variable->append(key);
- variable->append(value);
- env.set_local(variables[0], variable);
- } else {
- env.set_local(variables[0], key);
- env.set_local(variables[1], value);
- }
-
- val = body->perform(this);
- if (val) break;
- }
- }
- else {
- if (list->length() == 1 && Cast<Selector_List>(list)) {
- list = Cast<List>(list);
- }
- for (size_t i = 0, L = list->length(); i < L; ++i) {
- Expression_Ptr item = list->at(i);
- // unwrap value if the expression is an argument
- if (Argument_Ptr arg = Cast<Argument>(item)) item = arg->value();
- // check if we got passed a list of args (investigate)
- if (List_Ptr scalars = Cast<List>(item)) {
- if (variables.size() == 1) {
- Expression_Ptr var = scalars;
- env.set_local(variables[0], var);
- } else {
- // XXX: this is never hit via spec tests
- for (size_t j = 0, K = variables.size(); j < K; ++j) {
- Expression_Ptr res = j >= scalars->length()
- ? SASS_MEMORY_NEW(Null, expr->pstate())
- : scalars->at(j);
- env.set_local(variables[j], res);
- }
- }
- } else {
- if (variables.size() > 0) {
- env.set_local(variables.at(0), item);
- for (size_t j = 1, K = variables.size(); j < K; ++j) {
- // XXX: this is never hit via spec tests
- Expression_Ptr res = SASS_MEMORY_NEW(Null, expr->pstate());
- env.set_local(variables[j], res);
- }
- }
- }
- val = body->perform(this);
- if (val) break;
- }
- }
- exp.env_stack.pop_back();
- return val.detach();
- }
-
- Expression_Ptr Eval::operator()(While_Ptr w)
- {
- Expression_Obj pred = w->predicate();
- Block_Obj body = w->block();
- Env env(environment(), true);
- exp.env_stack.push_back(&env);
- Expression_Obj cond = pred->perform(this);
- while (!cond->is_false()) {
- Expression_Obj val = body->perform(this);
- if (val) {
- exp.env_stack.pop_back();
- return val.detach();
- }
- cond = pred->perform(this);
- }
- exp.env_stack.pop_back();
- return 0;
- }
-
- Expression_Ptr Eval::operator()(Return_Ptr r)
- {
- return r->value()->perform(this);
- }
-
- Expression_Ptr Eval::operator()(Warning_Ptr w)
- {
- Sass_Output_Style outstyle = ctx.c_options.output_style;
- ctx.c_options.output_style = NESTED;
- Expression_Obj message = w->message()->perform(this);
- Env* env = exp.environment();
-
- // try to use generic function
- if (env->has("@warn[f]")) {
-
- // add call stack entry
- ctx.callee_stack.push_back({
- "@warn",
- w->pstate().path,
- w->pstate().line + 1,
- w->pstate().column + 1,
- SASS_CALLEE_FUNCTION,
- { env }
- });
-
- Definition_Ptr def = Cast<Definition>((*env)["@warn[f]"]);
- // Block_Obj body = def->block();
- // Native_Function func = def->native_function();
- Sass_Function_Entry c_function = def->c_function();
- Sass_Function_Fn c_func = sass_function_get_function(c_function);
-
- To_C to_c;
- union Sass_Value* c_args = sass_make_list(1, SASS_COMMA, false);
- sass_list_set_value(c_args, 0, message->perform(&to_c));
- union Sass_Value* c_val = c_func(c_args, c_function, ctx.c_compiler);
- ctx.c_options.output_style = outstyle;
- ctx.callee_stack.pop_back();
- sass_delete_value(c_args);
- sass_delete_value(c_val);
- return 0;
-
- }
-
- std::string result(unquote(message->to_sass()));
- std::cerr << "WARNING: " << result << std::endl;
- traces.push_back(Backtrace(w->pstate()));
- std::cerr << traces_to_string(traces, " ");
- std::cerr << std::endl;
- ctx.c_options.output_style = outstyle;
- traces.pop_back();
- return 0;
- }
-
- Expression_Ptr Eval::operator()(Error_Ptr e)
- {
- Sass_Output_Style outstyle = ctx.c_options.output_style;
- ctx.c_options.output_style = NESTED;
- Expression_Obj message = e->message()->perform(this);
- Env* env = exp.environment();
-
- // try to use generic function
- if (env->has("@error[f]")) {
-
- // add call stack entry
- ctx.callee_stack.push_back({
- "@error",
- e->pstate().path,
- e->pstate().line + 1,
- e->pstate().column + 1,
- SASS_CALLEE_FUNCTION,
- { env }
- });
-
- Definition_Ptr def = Cast<Definition>((*env)["@error[f]"]);
- // Block_Obj body = def->block();
- // Native_Function func = def->native_function();
- Sass_Function_Entry c_function = def->c_function();
- Sass_Function_Fn c_func = sass_function_get_function(c_function);
-
- To_C to_c;
- union Sass_Value* c_args = sass_make_list(1, SASS_COMMA, false);
- sass_list_set_value(c_args, 0, message->perform(&to_c));
- union Sass_Value* c_val = c_func(c_args, c_function, ctx.c_compiler);
- ctx.c_options.output_style = outstyle;
- ctx.callee_stack.pop_back();
- sass_delete_value(c_args);
- sass_delete_value(c_val);
- return 0;
-
- }
-
- std::string result(unquote(message->to_sass()));
- ctx.c_options.output_style = outstyle;
- error(result, e->pstate(), traces);
- return 0;
- }
-
- Expression_Ptr Eval::operator()(Debug_Ptr d)
- {
- Sass_Output_Style outstyle = ctx.c_options.output_style;
- ctx.c_options.output_style = NESTED;
- Expression_Obj message = d->value()->perform(this);
- Env* env = exp.environment();
-
- // try to use generic function
- if (env->has("@debug[f]")) {
-
- // add call stack entry
- ctx.callee_stack.push_back({
- "@debug",
- d->pstate().path,
- d->pstate().line + 1,
- d->pstate().column + 1,
- SASS_CALLEE_FUNCTION,
- { env }
- });
-
- Definition_Ptr def = Cast<Definition>((*env)["@debug[f]"]);
- // Block_Obj body = def->block();
- // Native_Function func = def->native_function();
- Sass_Function_Entry c_function = def->c_function();
- Sass_Function_Fn c_func = sass_function_get_function(c_function);
-
- To_C to_c;
- union Sass_Value* c_args = sass_make_list(1, SASS_COMMA, false);
- sass_list_set_value(c_args, 0, message->perform(&to_c));
- union Sass_Value* c_val = c_func(c_args, c_function, ctx.c_compiler);
- ctx.c_options.output_style = outstyle;
- ctx.callee_stack.pop_back();
- sass_delete_value(c_args);
- sass_delete_value(c_val);
- return 0;
-
- }
-
- std::string cwd(ctx.cwd());
- std::string result(unquote(message->to_sass()));
- std::string abs_path(Sass::File::rel2abs(d->pstate().path, cwd, cwd));
- std::string rel_path(Sass::File::abs2rel(d->pstate().path, cwd, cwd));
- std::string output_path(Sass::File::path_for_console(rel_path, abs_path, d->pstate().path));
- ctx.c_options.output_style = outstyle;
-
- std::cerr << output_path << ":" << d->pstate().line+1 << " DEBUG: " << result;
- std::cerr << std::endl;
- return 0;
- }
-
- Expression_Ptr Eval::operator()(List_Ptr l)
- {
- // special case for unevaluated map
- if (l->separator() == SASS_HASH) {
- Map_Obj lm = SASS_MEMORY_NEW(Map,
- l->pstate(),
- l->length() / 2);
- for (size_t i = 0, L = l->length(); i < L; i += 2)
- {
- Expression_Obj key = (*l)[i+0]->perform(this);
- Expression_Obj val = (*l)[i+1]->perform(this);
- // make sure the color key never displays its real name
- key->is_delayed(true); // verified
- *lm << std::make_pair(key, val);
- }
- if (lm->has_duplicate_key()) {
- traces.push_back(Backtrace(l->pstate()));
- throw Exception::DuplicateKeyError(traces, *lm, *l);
- }
-
- lm->is_interpolant(l->is_interpolant());
- return lm->perform(this);
- }
- // check if we should expand it
- if (l->is_expanded()) return l;
- // regular case for unevaluated lists
- List_Obj ll = SASS_MEMORY_NEW(List,
- l->pstate(),
- l->length(),
- l->separator(),
- l->is_arglist(),
- l->is_bracketed());
- for (size_t i = 0, L = l->length(); i < L; ++i) {
- ll->append((*l)[i]->perform(this));
- }
- ll->is_interpolant(l->is_interpolant());
- ll->from_selector(l->from_selector());
- ll->is_expanded(true);
- return ll.detach();
- }
-
- Expression_Ptr Eval::operator()(Map_Ptr m)
- {
- if (m->is_expanded()) return m;
-
- // make sure we're not starting with duplicate keys.
- // the duplicate key state will have been set in the parser phase.
- if (m->has_duplicate_key()) {
- traces.push_back(Backtrace(m->pstate()));
- throw Exception::DuplicateKeyError(traces, *m, *m);
- }
-
- Map_Obj mm = SASS_MEMORY_NEW(Map,
- m->pstate(),
- m->length());
- for (auto key : m->keys()) {
- Expression_Ptr ex_key = key->perform(this);
- Expression_Ptr ex_val = m->at(key);
- if (ex_val == NULL) continue;
- ex_val = ex_val->perform(this);
- *mm << std::make_pair(ex_key, ex_val);
- }
-
- // check the evaluated keys aren't duplicates.
- if (mm->has_duplicate_key()) {
- traces.push_back(Backtrace(m->pstate()));
- throw Exception::DuplicateKeyError(traces, *mm, *m);
- }
-
- mm->is_expanded(true);
- return mm.detach();
- }
-
- Expression_Ptr Eval::operator()(Binary_Expression_Ptr b_in)
- {
-
- Expression_Obj lhs = b_in->left();
- Expression_Obj rhs = b_in->right();
- enum Sass_OP op_type = b_in->optype();
-
- if (op_type == Sass_OP::AND) {
- // LOCAL_FLAG(force, true);
- lhs = lhs->perform(this);
- if (!*lhs) return lhs.detach();
- return rhs->perform(this);
- }
- else if (op_type == Sass_OP::OR) {
- // LOCAL_FLAG(force, true);
- lhs = lhs->perform(this);
- if (*lhs) return lhs.detach();
- return rhs->perform(this);
- }
-
- // Evaluate variables as early o
- while (Variable_Ptr l_v = Cast<Variable>(lhs)) {
- lhs = operator()(l_v);
- }
- while (Variable_Ptr r_v = Cast<Variable>(rhs)) {
- rhs = operator()(r_v);
- }
-
- Binary_Expression_Obj b = b_in;
-
- // Evaluate sub-expressions early on
- while (Binary_Expression_Ptr l_b = Cast<Binary_Expression>(lhs)) {
- if (!force && l_b->is_delayed()) break;
- lhs = operator()(l_b);
- }
- while (Binary_Expression_Ptr r_b = Cast<Binary_Expression>(rhs)) {
- if (!force && r_b->is_delayed()) break;
- rhs = operator()(r_b);
- }
-
- // don't eval delayed expressions (the '/' when used as a separator)
- if (!force && op_type == Sass_OP::DIV && b->is_delayed()) {
- b->right(b->right()->perform(this));
- b->left(b->left()->perform(this));
- return b.detach();
- }
-
- // specific types we know are final
- // handle them early to avoid overhead
- if (Number_Ptr l_n = Cast<Number>(lhs)) {
- // lhs is number and rhs is number
- if (Number_Ptr r_n = Cast<Number>(rhs)) {
- try {
- switch (op_type) {
- case Sass_OP::EQ: return *l_n == *r_n ? bool_true : bool_false;
- case Sass_OP::NEQ: return *l_n == *r_n ? bool_false : bool_true;
- case Sass_OP::LT: return *l_n < *r_n ? bool_true : bool_false;
- case Sass_OP::GTE: return *l_n < *r_n ? bool_false : bool_true;
- case Sass_OP::LTE: return *l_n < *r_n || *l_n == *r_n ? bool_true : bool_false;
- case Sass_OP::GT: return *l_n < *r_n || *l_n == *r_n ? bool_false : bool_true;
- case Sass_OP::ADD: case Sass_OP::SUB: case Sass_OP::MUL: case Sass_OP::DIV: case Sass_OP::MOD:
- return Operators::op_numbers(op_type, *l_n, *r_n, ctx.c_options, b_in->pstate());
- default: break;
- }
- }
- catch (Exception::OperationError& err)
- {
- traces.push_back(Backtrace(b_in->pstate()));
- throw Exception::SassValueError(traces, b_in->pstate(), err);
- }
- }
- // lhs is number and rhs is color
- else if (Color_Ptr r_c = Cast<Color>(rhs)) {
- try {
- switch (op_type) {
- case Sass_OP::EQ: return *l_n == *r_c ? bool_true : bool_false;
- case Sass_OP::NEQ: return *l_n == *r_c ? bool_false : bool_true;
- case Sass_OP::ADD: case Sass_OP::SUB: case Sass_OP::MUL: case Sass_OP::DIV: case Sass_OP::MOD:
- return Operators::op_number_color(op_type, *l_n, *r_c, ctx.c_options, b_in->pstate());
- default: break;
- }
- }
- catch (Exception::OperationError& err)
- {
- traces.push_back(Backtrace(b_in->pstate()));
- throw Exception::SassValueError(traces, b_in->pstate(), err);
- }
- }
- }
- else if (Color_Ptr l_c = Cast<Color>(lhs)) {
- // lhs is color and rhs is color
- if (Color_Ptr r_c = Cast<Color>(rhs)) {
- try {
- switch (op_type) {
- case Sass_OP::EQ: return *l_c == *r_c ? bool_true : bool_false;
- case Sass_OP::NEQ: return *l_c == *r_c ? bool_false : bool_true;
- case Sass_OP::LT: return *l_c < *r_c ? bool_true : bool_false;
- case Sass_OP::GTE: return *l_c < *r_c ? bool_false : bool_true;
- case Sass_OP::LTE: return *l_c < *r_c || *l_c == *r_c ? bool_true : bool_false;
- case Sass_OP::GT: return *l_c < *r_c || *l_c == *r_c ? bool_false : bool_true;
- case Sass_OP::ADD: case Sass_OP::SUB: case Sass_OP::MUL: case Sass_OP::DIV: case Sass_OP::MOD:
- return Operators::op_colors(op_type, *l_c, *r_c, ctx.c_options, b_in->pstate());
- default: break;
- }
- }
- catch (Exception::OperationError& err)
- {
- traces.push_back(Backtrace(b_in->pstate()));
- throw Exception::SassValueError(traces, b_in->pstate(), err);
- }
- }
- // lhs is color and rhs is number
- else if (Number_Ptr r_n = Cast<Number>(rhs)) {
- try {
- switch (op_type) {
- case Sass_OP::EQ: return *l_c == *r_n ? bool_true : bool_false;
- case Sass_OP::NEQ: return *l_c == *r_n ? bool_false : bool_true;
- case Sass_OP::ADD: case Sass_OP::SUB: case Sass_OP::MUL: case Sass_OP::DIV: case Sass_OP::MOD:
- return Operators::op_color_number(op_type, *l_c, *r_n, ctx.c_options, b_in->pstate());
- default: break;
- }
- }
- catch (Exception::OperationError& err)
- {
- traces.push_back(Backtrace(b_in->pstate()));
- throw Exception::SassValueError(traces, b_in->pstate(), err);
- }
- }
- }
-
- String_Schema_Obj ret_schema;
-
- // only the last item will be used to eval the binary expression
- if (String_Schema_Ptr s_l = Cast<String_Schema>(b->left())) {
- if (!s_l->has_interpolant() && (!s_l->is_right_interpolant())) {
- ret_schema = SASS_MEMORY_NEW(String_Schema, b->pstate());
- Binary_Expression_Obj bin_ex = SASS_MEMORY_NEW(Binary_Expression, b->pstate(),
- b->op(), s_l->last(), b->right());
- bin_ex->is_delayed(b->left()->is_delayed() || b->right()->is_delayed()); // unverified
- for (size_t i = 0; i < s_l->length() - 1; ++i) {
- ret_schema->append(s_l->at(i)->perform(this));
- }
- ret_schema->append(bin_ex->perform(this));
- return ret_schema->perform(this);
- }
- }
- if (String_Schema_Ptr s_r = Cast<String_Schema>(b->right())) {
-
- if (!s_r->has_interpolant() && (!s_r->is_left_interpolant() || op_type == Sass_OP::DIV)) {
- ret_schema = SASS_MEMORY_NEW(String_Schema, b->pstate());
- Binary_Expression_Obj bin_ex = SASS_MEMORY_NEW(Binary_Expression, b->pstate(),
- b->op(), b->left(), s_r->first());
- bin_ex->is_delayed(b->left()->is_delayed() || b->right()->is_delayed()); // verified
- ret_schema->append(bin_ex->perform(this));
- for (size_t i = 1; i < s_r->length(); ++i) {
- ret_schema->append(s_r->at(i)->perform(this));
- }
- return ret_schema->perform(this);
- }
- }
-
- // fully evaluate their values
- if (op_type == Sass_OP::EQ ||
- op_type == Sass_OP::NEQ ||
- op_type == Sass_OP::GT ||
- op_type == Sass_OP::GTE ||
- op_type == Sass_OP::LT ||
- op_type == Sass_OP::LTE)
- {
- LOCAL_FLAG(force, true);
- lhs->is_expanded(false);
- lhs->set_delayed(false);
- lhs = lhs->perform(this);
- rhs->is_expanded(false);
- rhs->set_delayed(false);
- rhs = rhs->perform(this);
- }
- else {
- lhs = lhs->perform(this);
- }
-
- // not a logical connective, so go ahead and eval the rhs
- rhs = rhs->perform(this);
- AST_Node_Obj lu = lhs;
- AST_Node_Obj ru = rhs;
-
- Expression::Concrete_Type l_type;
- Expression::Concrete_Type r_type;
-
- // Is one of the operands an interpolant?
- String_Schema_Obj s1 = Cast<String_Schema>(b->left());
- String_Schema_Obj s2 = Cast<String_Schema>(b->right());
- Binary_Expression_Obj b1 = Cast<Binary_Expression>(b->left());
- Binary_Expression_Obj b2 = Cast<Binary_Expression>(b->right());
-
- bool schema_op = false;
-
- bool force_delay = (s2 && s2->is_left_interpolant()) ||
- (s1 && s1->is_right_interpolant()) ||
- (b1 && b1->is_right_interpolant()) ||
- (b2 && b2->is_left_interpolant());
-
- if ((s1 && s1->has_interpolants()) || (s2 && s2->has_interpolants()) || force_delay)
- {
- if (op_type == Sass_OP::DIV || op_type == Sass_OP::MUL || op_type == Sass_OP::MOD || op_type == Sass_OP::ADD || op_type == Sass_OP::SUB ||
- op_type == Sass_OP::EQ) {
- // If possible upgrade LHS to a number (for number to string compare)
- if (String_Constant_Ptr str = Cast<String_Constant>(lhs)) {
- std::string value(str->value());
- const char* start = value.c_str();
- if (Prelexer::sequence < Prelexer::dimension, Prelexer::end_of_file >(start) != 0) {
- lhs = Parser::lexed_dimension(b->pstate(), str->value());
- }
- }
- // If possible upgrade RHS to a number (for string to number compare)
- if (String_Constant_Ptr str = Cast<String_Constant>(rhs)) {
- std::string value(str->value());
- const char* start = value.c_str();
- if (Prelexer::sequence < Prelexer::dimension, Prelexer::number >(start) != 0) {
- rhs = Parser::lexed_dimension(b->pstate(), str->value());
- }
- }
- }
-
- To_Value to_value(ctx);
- Value_Obj v_l = Cast<Value>(lhs->perform(&to_value));
- Value_Obj v_r = Cast<Value>(rhs->perform(&to_value));
-
- if (force_delay) {
- std::string str("");
- str += v_l->to_string(ctx.c_options);
- if (b->op().ws_before) str += " ";
- str += b->separator();
- if (b->op().ws_after) str += " ";
- str += v_r->to_string(ctx.c_options);
- String_Constant_Ptr val = SASS_MEMORY_NEW(String_Constant, b->pstate(), str);
- val->is_interpolant(b->left()->has_interpolant());
- return val;
- }
- }
-
- // see if it's a relational expression
- try {
- switch(op_type) {
- case Sass_OP::EQ: return SASS_MEMORY_NEW(Boolean, b->pstate(), Operators::eq(lhs, rhs));
- case Sass_OP::NEQ: return SASS_MEMORY_NEW(Boolean, b->pstate(), Operators::neq(lhs, rhs));
- case Sass_OP::GT: return SASS_MEMORY_NEW(Boolean, b->pstate(), Operators::gt(lhs, rhs));
- case Sass_OP::GTE: return SASS_MEMORY_NEW(Boolean, b->pstate(), Operators::gte(lhs, rhs));
- case Sass_OP::LT: return SASS_MEMORY_NEW(Boolean, b->pstate(), Operators::lt(lhs, rhs));
- case Sass_OP::LTE: return SASS_MEMORY_NEW(Boolean, b->pstate(), Operators::lte(lhs, rhs));
- default: break;
- }
- }
- catch (Exception::OperationError& err)
- {
- // throw Exception::Base(b->pstate(), err.what());
- traces.push_back(Backtrace(b->pstate()));
- throw Exception::SassValueError(traces, b->pstate(), err);
- }
-
- l_type = lhs->concrete_type();
- r_type = rhs->concrete_type();
-
- // ToDo: throw error in op functions
- // ToDo: then catch and re-throw them
- Expression_Obj rv;
- try {
- ParserState pstate(b->pstate());
- if (l_type == Expression::NUMBER && r_type == Expression::NUMBER) {
- Number_Ptr l_n = Cast<Number>(lhs);
- Number_Ptr r_n = Cast<Number>(rhs);
- l_n->reduce(); r_n->reduce();
- rv = Operators::op_numbers(op_type, *l_n, *r_n, ctx.c_options, pstate);
- }
- else if (l_type == Expression::NUMBER && r_type == Expression::COLOR) {
- Number_Ptr l_n = Cast<Number>(lhs);
- Color_Ptr r_c = Cast<Color>(rhs);
- rv = Operators::op_number_color(op_type, *l_n, *r_c, ctx.c_options, pstate);
- }
- else if (l_type == Expression::COLOR && r_type == Expression::NUMBER) {
- Color_Ptr l_c = Cast<Color>(lhs);
- Number_Ptr r_n = Cast<Number>(rhs);
- rv = Operators::op_color_number(op_type, *l_c, *r_n, ctx.c_options, pstate);
- }
- else if (l_type == Expression::COLOR && r_type == Expression::COLOR) {
- Color_Ptr l_c = Cast<Color>(lhs);
- Color_Ptr r_c = Cast<Color>(rhs);
- rv = Operators::op_colors(op_type, *l_c, *r_c, ctx.c_options, pstate);
- }
- else {
- To_Value to_value(ctx);
- // this will leak if perform does not return a value!
- Value_Obj v_l = Cast<Value>(lhs->perform(&to_value));
- Value_Obj v_r = Cast<Value>(rhs->perform(&to_value));
- bool interpolant = b->is_right_interpolant() ||
- b->is_left_interpolant() ||
- b->is_interpolant();
- if (op_type == Sass_OP::SUB) interpolant = false;
- // if (op_type == Sass_OP::DIV) interpolant = true;
- // check for type violations
- if (l_type == Expression::MAP || l_type == Expression::FUNCTION_VAL) {
- traces.push_back(Backtrace(v_l->pstate()));
- throw Exception::InvalidValue(traces, *v_l);
- }
- if (r_type == Expression::MAP || l_type == Expression::FUNCTION_VAL) {
- traces.push_back(Backtrace(v_r->pstate()));
- throw Exception::InvalidValue(traces, *v_r);
- }
- Value_Ptr ex = Operators::op_strings(b->op(), *v_l, *v_r, ctx.c_options, pstate, !interpolant); // pass true to compress
- if (String_Constant_Ptr str = Cast<String_Constant>(ex))
- {
- if (str->concrete_type() == Expression::STRING)
- {
- String_Constant_Ptr lstr = Cast<String_Constant>(lhs);
- String_Constant_Ptr rstr = Cast<String_Constant>(rhs);
- if (op_type != Sass_OP::SUB) {
- if (String_Constant_Ptr org = lstr ? lstr : rstr)
- { str->quote_mark(org->quote_mark()); }
- }
- }
- }
- ex->is_interpolant(b->is_interpolant());
- rv = ex;
- }
- }
- catch (Exception::OperationError& err)
- {
- traces.push_back(Backtrace(b->pstate()));
- // throw Exception::Base(b->pstate(), err.what());
- throw Exception::SassValueError(traces, b->pstate(), err);
- }
-
- if (rv) {
- if (schema_op) {
- // XXX: this is never hit via spec tests
- (*s2)[0] = rv;
- rv = s2->perform(this);
- }
- }
-
- return rv.detach();
-
- }
-
- Expression_Ptr Eval::operator()(Unary_Expression_Ptr u)
- {
- Expression_Obj operand = u->operand()->perform(this);
- if (u->optype() == Unary_Expression::NOT) {
- Boolean_Ptr result = SASS_MEMORY_NEW(Boolean, u->pstate(), (bool)*operand);
- result->value(!result->value());
- return result;
- }
- else if (Number_Obj nr = Cast<Number>(operand)) {
- // negate value for minus unary expression
- if (u->optype() == Unary_Expression::MINUS) {
- Number_Obj cpy = SASS_MEMORY_COPY(nr);
- cpy->value( - cpy->value() ); // negate value
- return cpy.detach(); // return the copy
- }
- else if (u->optype() == Unary_Expression::SLASH) {
- std::string str = '/' + nr->to_string(ctx.c_options);
- return SASS_MEMORY_NEW(String_Constant, u->pstate(), str);
- }
- // nothing for positive
- return nr.detach();
- }
- else {
- // Special cases: +/- variables which evaluate to null ouput just +/-,
- // but +/- null itself outputs the string
- if (operand->concrete_type() == Expression::NULL_VAL && Cast<Variable>(u->operand())) {
- u->operand(SASS_MEMORY_NEW(String_Quoted, u->pstate(), ""));
- }
- // Never apply unary opertions on colors @see #2140
- else if (Color_Ptr color = Cast<Color>(operand)) {
- // Use the color name if this was eval with one
- if (color->disp().length() > 0) {
- operand = SASS_MEMORY_NEW(String_Constant, operand->pstate(), color->disp());
- u->operand(operand);
- }
- }
- else {
- u->operand(operand);
- }
-
- return SASS_MEMORY_NEW(String_Quoted,
- u->pstate(),
- u->inspect());
- }
- // unreachable
- return u;
- }
-
- Expression_Ptr Eval::operator()(Function_Call_Ptr c)
- {
- if (traces.size() > Constants::MaxCallStack) {
- // XXX: this is never hit via spec tests
- std::ostringstream stm;
- stm << "Stack depth exceeded max of " << Constants::MaxCallStack;
- error(stm.str(), c->pstate(), traces);
- }
- std::string name(Util::normalize_underscores(c->name()));
- std::string full_name(name + "[f]");
- // we make a clone here, need to implement that further
- Arguments_Obj args = c->arguments();
-
- Env* env = environment();
- if (!env->has(full_name) || (!c->via_call() && Prelexer::re_special_fun(name.c_str()))) {
- if (!env->has("*[f]")) {
- for (Argument_Obj arg : args->elements()) {
- if (List_Obj ls = Cast<List>(arg->value())) {
- if (ls->size() == 0) error("() isn't a valid CSS value.", c->pstate(), traces);
- }
- }
- args = Cast<Arguments>(args->perform(this));
- Function_Call_Obj lit = SASS_MEMORY_NEW(Function_Call,
- c->pstate(),
- c->name(),
- args);
- if (args->has_named_arguments()) {
- error("Function " + c->name() + " doesn't support keyword arguments", c->pstate(), traces);
- }
- String_Quoted_Ptr str = SASS_MEMORY_NEW(String_Quoted,
- c->pstate(),
- lit->to_string(ctx.c_options));
- str->is_interpolant(c->is_interpolant());
- return str;
- } else {
- // call generic function
- full_name = "*[f]";
- }
- }
-
- // further delay for calls
- if (full_name != "call[f]") {
- args->set_delayed(false); // verified
- }
- if (full_name != "if[f]") {
- args = Cast<Arguments>(args->perform(this));
- }
- Definition_Ptr def = Cast<Definition>((*env)[full_name]);
-
- if (c->func()) def = c->func()->definition();
-
- if (def->is_overload_stub()) {
- std::stringstream ss;
- size_t L = args->length();
- // account for rest arguments
- if (args->has_rest_argument() && args->length() > 0) {
- // get the rest arguments list
- List_Ptr rest = Cast<List>(args->last()->value());
- // arguments before rest argument plus rest
- if (rest) L += rest->length() - 1;
- }
- ss << full_name << L;
- full_name = ss.str();
- std::string resolved_name(full_name);
- if (!env->has(resolved_name)) error("overloaded function `" + std::string(c->name()) + "` given wrong number of arguments", c->pstate(), traces);
- def = Cast<Definition>((*env)[resolved_name]);
- }
-
- Expression_Obj result = c;
- Block_Obj body = def->block();
- Native_Function func = def->native_function();
- Sass_Function_Entry c_function = def->c_function();
-
- if (c->is_css()) return result.detach();
-
- Parameters_Obj params = def->parameters();
- Env fn_env(def->environment());
- exp.env_stack.push_back(&fn_env);
-
- if (func || body) {
- bind(std::string("Function"), c->name(), params, args, &ctx, &fn_env, this);
- std::string msg(", in function `" + c->name() + "`");
- traces.push_back(Backtrace(c->pstate(), msg));
- ctx.callee_stack.push_back({
- c->name().c_str(),
- c->pstate().path,
- c->pstate().line + 1,
- c->pstate().column + 1,
- SASS_CALLEE_FUNCTION,
- { env }
- });
-
- // eval the body if user-defined or special, invoke underlying CPP function if native
- if (body /* && !Prelexer::re_special_fun(name.c_str()) */) {
- result = body->perform(this);
- }
- else if (func) {
- result = func(fn_env, *env, ctx, def->signature(), c->pstate(), traces, exp.selector_stack);
- }
- if (!result) {
- error(std::string("Function ") + c->name() + " finished without @return", c->pstate(), traces);
- }
- ctx.callee_stack.pop_back();
- traces.pop_back();
- }
-
- // else if it's a user-defined c function
- // convert call into C-API compatible form
- else if (c_function) {
- Sass_Function_Fn c_func = sass_function_get_function(c_function);
- if (full_name == "*[f]") {
- String_Quoted_Obj str = SASS_MEMORY_NEW(String_Quoted, c->pstate(), c->name());
- Arguments_Obj new_args = SASS_MEMORY_NEW(Arguments, c->pstate());
- new_args->append(SASS_MEMORY_NEW(Argument, c->pstate(), str));
- new_args->concat(args);
- args = new_args;
- }
-
- // populates env with default values for params
- std::string ff(c->name());
- bind(std::string("Function"), c->name(), params, args, &ctx, &fn_env, this);
- std::string msg(", in function `" + c->name() + "`");
- traces.push_back(Backtrace(c->pstate(), msg));
- ctx.callee_stack.push_back({
- c->name().c_str(),
- c->pstate().path,
- c->pstate().line + 1,
- c->pstate().column + 1,
- SASS_CALLEE_C_FUNCTION,
- { env }
- });
-
- To_C to_c;
- union Sass_Value* c_args = sass_make_list(params->length(), SASS_COMMA, false);
- for(size_t i = 0; i < params->length(); i++) {
- Parameter_Obj param = params->at(i);
- std::string key = param->name();
- AST_Node_Obj node = fn_env.get_local(key);
- Expression_Obj arg = Cast<Expression>(node);
- sass_list_set_value(c_args, i, arg->perform(&to_c));
- }
- union Sass_Value* c_val = c_func(c_args, c_function, ctx.c_compiler);
- if (sass_value_get_tag(c_val) == SASS_ERROR) {
- error("error in C function " + c->name() + ": " + sass_error_get_message(c_val), c->pstate(), traces);
- } else if (sass_value_get_tag(c_val) == SASS_WARNING) {
- error("warning in C function " + c->name() + ": " + sass_warning_get_message(c_val), c->pstate(), traces);
- }
- result = cval_to_astnode(c_val, traces, c->pstate());
-
- ctx.callee_stack.pop_back();
- traces.pop_back();
- sass_delete_value(c_args);
- if (c_val != c_args)
- sass_delete_value(c_val);
- }
-
- // link back to function definition
- // only do this for custom functions
- if (result->pstate().file == std::string::npos)
- result->pstate(c->pstate());
-
- result = result->perform(this);
- result->is_interpolant(c->is_interpolant());
- exp.env_stack.pop_back();
- return result.detach();
- }
-
- Expression_Ptr Eval::operator()(Function_Call_Schema_Ptr s)
- {
- Expression_Ptr evaluated_name = s->name()->perform(this);
- Expression_Ptr evaluated_args = s->arguments()->perform(this);
- String_Schema_Obj ss = SASS_MEMORY_NEW(String_Schema, s->pstate(), 2);
- ss->append(evaluated_name);
- ss->append(evaluated_args);
- return ss->perform(this);
- }
-
- Expression_Ptr Eval::operator()(Variable_Ptr v)
- {
- Expression_Obj value = 0;
- Env* env = environment();
- const std::string& name(v->name());
- EnvResult rv(env->find(name));
- if (rv.found) value = static_cast<Expression*>(rv.it->second.ptr());
- else error("Undefined variable: \"" + v->name() + "\".", v->pstate(), traces);
- if (Argument_Ptr arg = Cast<Argument>(value)) value = arg->value();
- if (Number_Ptr nr = Cast<Number>(value)) nr->zero(true); // force flag
- value->is_interpolant(v->is_interpolant());
- if (force) value->is_expanded(false);
- value->set_delayed(false); // verified
- value = value->perform(this);
- if(!force) rv.it->second = value;
- return value.detach();
- }
-
- Expression_Ptr Eval::operator()(Color_Ptr c)
- {
- return c;
- }
-
- Expression_Ptr Eval::operator()(Number_Ptr n)
- {
- return n;
- }
-
- Expression_Ptr Eval::operator()(Boolean_Ptr b)
- {
- return b;
- }
-
- void Eval::interpolation(Context& ctx, std::string& res, Expression_Obj ex, bool into_quotes, bool was_itpl) {
-
- bool needs_closing_brace = false;
-
- if (Arguments_Ptr args = Cast<Arguments>(ex)) {
- List_Ptr ll = SASS_MEMORY_NEW(List, args->pstate(), 0, SASS_COMMA);
- for(auto arg : args->elements()) {
- ll->append(arg->value());
- }
- ll->is_interpolant(args->is_interpolant());
- needs_closing_brace = true;
- res += "(";
- ex = ll;
- }
- if (Number_Ptr nr = Cast<Number>(ex)) {
- Number reduced(nr);
- reduced.reduce();
- if (!reduced.is_valid_css_unit()) {
- traces.push_back(Backtrace(nr->pstate()));
- throw Exception::InvalidValue(traces, *nr);
- }
- }
- if (Argument_Ptr arg = Cast<Argument>(ex)) {
- ex = arg->value();
- }
- if (String_Quoted_Ptr sq = Cast<String_Quoted>(ex)) {
- if (was_itpl) {
- bool was_interpolant = ex->is_interpolant();
- ex = SASS_MEMORY_NEW(String_Constant, sq->pstate(), sq->value());
- ex->is_interpolant(was_interpolant);
- }
- }
-
- if (Cast<Null>(ex)) { return; }
-
- // parent selector needs another go
- if (Cast<Parent_Selector>(ex)) {
- // XXX: this is never hit via spec tests
- ex = ex->perform(this);
- }
-
- if (List_Ptr l = Cast<List>(ex)) {
- List_Obj ll = SASS_MEMORY_NEW(List, l->pstate(), 0, l->separator());
- // this fixes an issue with bourbon sample, not really sure why
- // if (l->size() && Cast<Null>((*l)[0])) { res += ""; }
- for(Expression_Obj item : *l) {
- item->is_interpolant(l->is_interpolant());
- std::string rl(""); interpolation(ctx, rl, item, into_quotes, l->is_interpolant());
- bool is_null = Cast<Null>(item) != 0; // rl != ""
- if (!is_null) ll->append(SASS_MEMORY_NEW(String_Quoted, item->pstate(), rl));
- }
- // Check indicates that we probably should not get a list
- // here. Normally single list items are already unwrapped.
- if (l->size() > 1) {
- // string_to_output would fail "#{'_\a' '_\a'}";
- std::string str(ll->to_string(ctx.c_options));
- str = read_hex_escapes(str); // read escapes
- newline_to_space(str); // replace directly
- res += str; // append to result string
- } else {
- res += (ll->to_string(ctx.c_options));
- }
- ll->is_interpolant(l->is_interpolant());
- }
-
- // Value
- // Function_Call
- // Selector_List
- // String_Quoted
- // String_Constant
- // Parent_Selector
- // Binary_Expression
- else {
- // ex = ex->perform(this);
- if (into_quotes && ex->is_interpolant()) {
- res += evacuate_escapes(ex ? ex->to_string(ctx.c_options) : "");
- } else {
- std::string str(ex ? ex->to_string(ctx.c_options) : "");
- if (into_quotes) str = read_hex_escapes(str);
- res += str; // append to result string
- }
- }
-
- if (needs_closing_brace) res += ")";
-
- }
-
- Expression_Ptr Eval::operator()(String_Schema_Ptr s)
- {
- size_t L = s->length();
- bool into_quotes = false;
- if (L > 1) {
- if (!Cast<String_Quoted>((*s)[0]) && !Cast<String_Quoted>((*s)[L - 1])) {
- if (String_Constant_Ptr l = Cast<String_Constant>((*s)[0])) {
- if (String_Constant_Ptr r = Cast<String_Constant>((*s)[L - 1])) {
- if (r->value().size() > 0) {
- if (l->value()[0] == '"' && r->value()[r->value().size() - 1] == '"') into_quotes = true;
- if (l->value()[0] == '\'' && r->value()[r->value().size() - 1] == '\'') into_quotes = true;
- }
- }
- }
- }
- }
- bool was_quoted = false;
- bool was_interpolant = false;
- std::string res("");
- for (size_t i = 0; i < L; ++i) {
- bool is_quoted = Cast<String_Quoted>((*s)[i]) != NULL;
- if (was_quoted && !(*s)[i]->is_interpolant() && !was_interpolant) { res += " "; }
- else if (i > 0 && is_quoted && !(*s)[i]->is_interpolant() && !was_interpolant) { res += " "; }
- Expression_Obj ex = (*s)[i]->perform(this);
- interpolation(ctx, res, ex, into_quotes, ex->is_interpolant());
- was_quoted = Cast<String_Quoted>((*s)[i]) != NULL;
- was_interpolant = (*s)[i]->is_interpolant();
-
- }
- if (!s->is_interpolant()) {
- if (s->length() > 1 && res == "") return SASS_MEMORY_NEW(Null, s->pstate());
- return SASS_MEMORY_NEW(String_Constant, s->pstate(), res, s->css());
- }
- // string schema seems to have a special unquoting behavior (also handles "nested" quotes)
- String_Quoted_Obj str = SASS_MEMORY_NEW(String_Quoted, s->pstate(), res, 0, false, false, false, s->css());
- // if (s->is_interpolant()) str->quote_mark(0);
- // String_Constant_Ptr str = SASS_MEMORY_NEW(String_Constant, s->pstate(), res);
- if (str->quote_mark()) str->quote_mark('*');
- else if (!is_in_comment) str->value(string_to_output(str->value()));
- str->is_interpolant(s->is_interpolant());
- return str.detach();
- }
-
-
- Expression_Ptr Eval::operator()(String_Constant_Ptr s)
- {
- return s;
- }
-
- Expression_Ptr Eval::operator()(String_Quoted_Ptr s)
- {
- String_Quoted_Ptr str = SASS_MEMORY_NEW(String_Quoted, s->pstate(), "");
- str->value(s->value());
- str->quote_mark(s->quote_mark());
- str->is_interpolant(s->is_interpolant());
- return str;
- }
-
- Expression_Ptr Eval::operator()(Supports_Operator_Ptr c)
- {
- Expression_Ptr left = c->left()->perform(this);
- Expression_Ptr right = c->right()->perform(this);
- Supports_Operator_Ptr cc = SASS_MEMORY_NEW(Supports_Operator,
- c->pstate(),
- Cast<Supports_Condition>(left),
- Cast<Supports_Condition>(right),
- c->operand());
- return cc;
- }
-
- Expression_Ptr Eval::operator()(Supports_Negation_Ptr c)
- {
- Expression_Ptr condition = c->condition()->perform(this);
- Supports_Negation_Ptr cc = SASS_MEMORY_NEW(Supports_Negation,
- c->pstate(),
- Cast<Supports_Condition>(condition));
- return cc;
- }
-
- Expression_Ptr Eval::operator()(Supports_Declaration_Ptr c)
- {
- Expression_Ptr feature = c->feature()->perform(this);
- Expression_Ptr value = c->value()->perform(this);
- Supports_Declaration_Ptr cc = SASS_MEMORY_NEW(Supports_Declaration,
- c->pstate(),
- feature,
- value);
- return cc;
- }
-
- Expression_Ptr Eval::operator()(Supports_Interpolation_Ptr c)
- {
- Expression_Ptr value = c->value()->perform(this);
- Supports_Interpolation_Ptr cc = SASS_MEMORY_NEW(Supports_Interpolation,
- c->pstate(),
- value);
- return cc;
- }
-
- Expression_Ptr Eval::operator()(At_Root_Query_Ptr e)
- {
- Expression_Obj feature = e->feature();
- feature = (feature ? feature->perform(this) : 0);
- Expression_Obj value = e->value();
- value = (value ? value->perform(this) : 0);
- Expression_Ptr ee = SASS_MEMORY_NEW(At_Root_Query,
- e->pstate(),
- Cast<String>(feature),
- value);
- return ee;
- }
-
- Media_Query_Ptr Eval::operator()(Media_Query_Ptr q)
- {
- String_Obj t = q->media_type();
- t = static_cast<String_Ptr>(t.isNull() ? 0 : t->perform(this));
- Media_Query_Obj qq = SASS_MEMORY_NEW(Media_Query,
- q->pstate(),
- t,
- q->length(),
- q->is_negated(),
- q->is_restricted());
- for (size_t i = 0, L = q->length(); i < L; ++i) {
- qq->append(static_cast<Media_Query_Expression_Ptr>((*q)[i]->perform(this)));
- }
- return qq.detach();
- }
-
- Expression_Ptr Eval::operator()(Media_Query_Expression_Ptr e)
- {
- Expression_Obj feature = e->feature();
- feature = (feature ? feature->perform(this) : 0);
- if (feature && Cast<String_Quoted>(feature)) {
- feature = SASS_MEMORY_NEW(String_Quoted,
- feature->pstate(),
- Cast<String_Quoted>(feature)->value());
- }
- Expression_Obj value = e->value();
- value = (value ? value->perform(this) : 0);
- if (value && Cast<String_Quoted>(value)) {
- // XXX: this is never hit via spec tests
- value = SASS_MEMORY_NEW(String_Quoted,
- value->pstate(),
- Cast<String_Quoted>(value)->value());
- }
- return SASS_MEMORY_NEW(Media_Query_Expression,
- e->pstate(),
- feature,
- value,
- e->is_interpolated());
- }
-
- Expression_Ptr Eval::operator()(Null_Ptr n)
- {
- return n;
- }
-
- Expression_Ptr Eval::operator()(Argument_Ptr a)
- {
- Expression_Obj val = a->value()->perform(this);
- bool is_rest_argument = a->is_rest_argument();
- bool is_keyword_argument = a->is_keyword_argument();
-
- if (a->is_rest_argument()) {
- if (val->concrete_type() == Expression::MAP) {
- is_rest_argument = false;
- is_keyword_argument = true;
- }
- else if(val->concrete_type() != Expression::LIST) {
- List_Obj wrapper = SASS_MEMORY_NEW(List,
- val->pstate(),
- 0,
- SASS_COMMA,
- true);
- wrapper->append(val);
- val = wrapper;
- }
- }
- return SASS_MEMORY_NEW(Argument,
- a->pstate(),
- val,
- a->name(),
- is_rest_argument,
- is_keyword_argument);
- }
-
- Expression_Ptr Eval::operator()(Arguments_Ptr a)
- {
- Arguments_Obj aa = SASS_MEMORY_NEW(Arguments, a->pstate());
- if (a->length() == 0) return aa.detach();
- for (size_t i = 0, L = a->length(); i < L; ++i) {
- Expression_Obj rv = (*a)[i]->perform(this);
- Argument_Ptr arg = Cast<Argument>(rv);
- if (!(arg->is_rest_argument() || arg->is_keyword_argument())) {
- aa->append(arg);
- }
- }
-
- if (a->has_rest_argument()) {
- Expression_Obj rest = a->get_rest_argument()->perform(this);
- Expression_Obj splat = Cast<Argument>(rest)->value()->perform(this);
-
- Sass_Separator separator = SASS_COMMA;
- List_Ptr ls = Cast<List>(splat);
- Map_Ptr ms = Cast<Map>(splat);
-
- List_Obj arglist = SASS_MEMORY_NEW(List,
- splat->pstate(),
- 0,
- ls ? ls->separator() : separator,
- true);
-
- if (ls && ls->is_arglist()) {
- arglist->concat(ls);
- } else if (ms) {
- aa->append(SASS_MEMORY_NEW(Argument, splat->pstate(), ms, "", false, true));
- } else if (ls) {
- arglist->concat(ls);
- } else {
- arglist->append(splat);
- }
- if (arglist->length()) {
- aa->append(SASS_MEMORY_NEW(Argument, splat->pstate(), arglist, "", true));
- }
- }
-
- if (a->has_keyword_argument()) {
- Expression_Obj rv = a->get_keyword_argument()->perform(this);
- Argument_Ptr rvarg = Cast<Argument>(rv);
- Expression_Obj kwarg = rvarg->value()->perform(this);
-
- aa->append(SASS_MEMORY_NEW(Argument, kwarg->pstate(), kwarg, "", false, true));
- }
- return aa.detach();
- }
-
- Expression_Ptr Eval::operator()(Comment_Ptr c)
- {
- return 0;
- }
-
- inline Expression_Ptr Eval::fallback_impl(AST_Node_Ptr n)
- {
- return static_cast<Expression_Ptr>(n);
- }
-
- // All the binary helpers.
-
- Expression_Ptr cval_to_astnode(union Sass_Value* v, Backtraces traces, ParserState pstate)
- {
- using std::strlen;
- using std::strcpy;
- Expression_Ptr e = NULL;
- switch (sass_value_get_tag(v)) {
- case SASS_BOOLEAN: {
- e = SASS_MEMORY_NEW(Boolean, pstate, !!sass_boolean_get_value(v));
- } break;
- case SASS_NUMBER: {
- e = SASS_MEMORY_NEW(Number, pstate, sass_number_get_value(v), sass_number_get_unit(v));
- } break;
- case SASS_COLOR: {
- e = SASS_MEMORY_NEW(Color, pstate, sass_color_get_r(v), sass_color_get_g(v), sass_color_get_b(v), sass_color_get_a(v));
- } break;
- case SASS_STRING: {
- if (sass_string_is_quoted(v))
- e = SASS_MEMORY_NEW(String_Quoted, pstate, sass_string_get_value(v));
- else {
- e = SASS_MEMORY_NEW(String_Constant, pstate, sass_string_get_value(v));
- }
- } break;
- case SASS_LIST: {
- List_Ptr l = SASS_MEMORY_NEW(List, pstate, sass_list_get_length(v), sass_list_get_separator(v));
- for (size_t i = 0, L = sass_list_get_length(v); i < L; ++i) {
- l->append(cval_to_astnode(sass_list_get_value(v, i), traces, pstate));
- }
- l->is_bracketed(sass_list_get_is_bracketed(v));
- e = l;
- } break;
- case SASS_MAP: {
- Map_Ptr m = SASS_MEMORY_NEW(Map, pstate);
- for (size_t i = 0, L = sass_map_get_length(v); i < L; ++i) {
- *m << std::make_pair(
- cval_to_astnode(sass_map_get_key(v, i), traces, pstate),
- cval_to_astnode(sass_map_get_value(v, i), traces, pstate));
- }
- e = m;
- } break;
- case SASS_NULL: {
- e = SASS_MEMORY_NEW(Null, pstate);
- } break;
- case SASS_ERROR: {
- error("Error in C function: " + std::string(sass_error_get_message(v)), pstate, traces);
- } break;
- case SASS_WARNING: {
- error("Warning in C function: " + std::string(sass_warning_get_message(v)), pstate, traces);
- } break;
- default: break;
- }
- return e;
- }
-
- Selector_List_Ptr Eval::operator()(Selector_List_Ptr s)
- {
- std::vector<Selector_List_Obj> rv;
- Selector_List_Obj sl = SASS_MEMORY_NEW(Selector_List, s->pstate());
- sl->is_optional(s->is_optional());
- sl->media_block(s->media_block());
- sl->is_optional(s->is_optional());
- for (size_t i = 0, iL = s->length(); i < iL; ++i) {
- rv.push_back(operator()((*s)[i]));
- }
-
- // we should actually permutate parent first
- // but here we have permutated the selector first
- size_t round = 0;
- while (round != std::string::npos) {
- bool abort = true;
- for (size_t i = 0, iL = rv.size(); i < iL; ++i) {
- if (rv[i]->length() > round) {
- sl->append((*rv[i])[round]);
- abort = false;
- }
- }
- if (abort) {
- round = std::string::npos;
- } else {
- ++ round;
- }
-
- }
- return sl.detach();
- }
-
-
- Selector_List_Ptr Eval::operator()(Complex_Selector_Ptr s)
- {
- bool implicit_parent = !exp.old_at_root_without_rule;
- if (is_in_selector_schema) exp.selector_stack.push_back(0);
- Selector_List_Obj resolved = s->resolve_parent_refs(exp.selector_stack, traces, implicit_parent);
- if (is_in_selector_schema) exp.selector_stack.pop_back();
- for (size_t i = 0; i < resolved->length(); i++) {
- Complex_Selector_Ptr is = resolved->at(i)->first();
- while (is) {
- if (is->head()) {
- is->head(operator()(is->head()));
- }
- is = is->tail();
- }
- }
- return resolved.detach();
- }
-
- Compound_Selector_Ptr Eval::operator()(Compound_Selector_Ptr s)
- {
- for (size_t i = 0; i < s->length(); i++) {
- Simple_Selector_Ptr ss = s->at(i);
- // skip parents here (called via resolve_parent_refs)
- if (ss == NULL || Cast<Parent_Selector>(ss)) continue;
- s->at(i) = Cast<Simple_Selector>(ss->perform(this));
- }
- return s;
- }
-
- Selector_List_Ptr Eval::operator()(Selector_Schema_Ptr s)
- {
- LOCAL_FLAG(is_in_selector_schema, true);
- // the parser will look for a brace to end the selector
- ctx.c_options.in_selector = true; // do not compress colors
- Expression_Obj sel = s->contents()->perform(this);
- std::string result_str(sel->to_string(ctx.c_options));
- ctx.c_options.in_selector = false; // flag temporary only
- result_str = unquote(Util::rtrim(result_str));
- char* temp_cstr = sass_copy_c_string(result_str.c_str());
- ctx.strings.push_back(temp_cstr); // attach to context
- Parser p = Parser::from_c_str(temp_cstr, ctx, traces, s->pstate());
- p.last_media_block = s->media_block();
- // a selector schema may or may not connect to parent?
- bool chroot = s->connect_parent() == false;
- Selector_List_Obj sl = p.parse_selector_list(chroot);
- auto vec_str_rend = ctx.strings.rend();
- auto vec_str_rbegin = ctx.strings.rbegin();
- // remove the first item searching from the back
- // we cannot assume our item is still the last one
- // order is not important, so we can optimize this
- auto it = std::find(vec_str_rbegin, vec_str_rend, temp_cstr);
- // undefined behavior if not found!
- if (it != vec_str_rend) {
- // overwrite with last item
- *it = ctx.strings.back();
- // remove last one from vector
- ctx.strings.pop_back();
- // free temporary copy
- free(temp_cstr);
- }
- flag_is_in_selector_schema.reset();
- return operator()(sl);
- }
-
- Expression_Ptr Eval::operator()(Parent_Selector_Ptr p)
- {
- if (Selector_List_Obj pr = selector()) {
- exp.selector_stack.pop_back();
- Selector_List_Obj rv = operator()(pr);
- exp.selector_stack.push_back(rv);
- return rv.detach();
- } else {
- return SASS_MEMORY_NEW(Null, p->pstate());
- }
- }
-
- Simple_Selector_Ptr Eval::operator()(Simple_Selector_Ptr s)
- {
- return s;
- }
-
- // hotfix to avoid invalid nested `:not` selectors
- // probably the wrong place, but this should ultimately
- // be fixed by implement superselector correctly for `:not`
- // first use of "find" (ATM only implemented for selectors)
- bool hasNotSelector(AST_Node_Obj obj) {
- if (Wrapped_Selector_Ptr w = Cast<Wrapped_Selector>(obj)) {
- return w->name() == ":not";
- }
- return false;
- }
-
- Wrapped_Selector_Ptr Eval::operator()(Wrapped_Selector_Ptr s)
- {
-
- if (s->name() == ":not") {
- if (exp.selector_stack.back()) {
- if (s->selector()->find(hasNotSelector)) {
- s->selector()->clear();
- s->name(" ");
- } else if (s->selector()->length() == 1) {
- Complex_Selector_Ptr cs = s->selector()->at(0);
- if (cs->tail()) {
- s->selector()->clear();
- s->name(" ");
- }
- } else if (s->selector()->length() > 1) {
- s->selector()->clear();
- s->name(" ");
- }
- }
- }
- return s;
- };
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/eval.hpp b/node_modules/node-sass/src/libsass/src/eval.hpp
deleted file mode 100644
index aeaada8..0000000
--- a/node_modules/node-sass/src/libsass/src/eval.hpp
+++ /dev/null
@@ -1,103 +0,0 @@
-#ifndef SASS_EVAL_H
-#define SASS_EVAL_H
-
-#include "ast.hpp"
-#include "context.hpp"
-#include "listize.hpp"
-#include "operation.hpp"
-#include "environment.hpp"
-
-namespace Sass {
-
- class Expand;
- class Context;
-
- class Eval : public Operation_CRTP<Expression_Ptr, Eval> {
-
- private:
- Expression_Ptr fallback_impl(AST_Node_Ptr n);
-
- public:
- Expand& exp;
- Context& ctx;
- Backtraces& traces;
- Eval(Expand& exp);
- ~Eval();
-
- bool force;
- bool is_in_comment;
- bool is_in_selector_schema;
-
- Boolean_Obj bool_true;
- Boolean_Obj bool_false;
-
- Env* environment();
- Selector_List_Obj selector();
-
- // for evaluating function bodies
- Expression_Ptr operator()(Block_Ptr);
- Expression_Ptr operator()(Assignment_Ptr);
- Expression_Ptr operator()(If_Ptr);
- Expression_Ptr operator()(For_Ptr);
- Expression_Ptr operator()(Each_Ptr);
- Expression_Ptr operator()(While_Ptr);
- Expression_Ptr operator()(Return_Ptr);
- Expression_Ptr operator()(Warning_Ptr);
- Expression_Ptr operator()(Error_Ptr);
- Expression_Ptr operator()(Debug_Ptr);
-
- Expression_Ptr operator()(List_Ptr);
- Expression_Ptr operator()(Map_Ptr);
- Expression_Ptr operator()(Binary_Expression_Ptr);
- Expression_Ptr operator()(Unary_Expression_Ptr);
- Expression_Ptr operator()(Function_Call_Ptr);
- Expression_Ptr operator()(Function_Call_Schema_Ptr);
- Expression_Ptr operator()(Variable_Ptr);
- Expression_Ptr operator()(Number_Ptr);
- Expression_Ptr operator()(Color_Ptr);
- Expression_Ptr operator()(Boolean_Ptr);
- Expression_Ptr operator()(String_Schema_Ptr);
- Expression_Ptr operator()(String_Quoted_Ptr);
- Expression_Ptr operator()(String_Constant_Ptr);
- // Expression_Ptr operator()(Selector_List_Ptr);
- Media_Query_Ptr operator()(Media_Query_Ptr);
- Expression_Ptr operator()(Media_Query_Expression_Ptr);
- Expression_Ptr operator()(At_Root_Query_Ptr);
- Expression_Ptr operator()(Supports_Operator_Ptr);
- Expression_Ptr operator()(Supports_Negation_Ptr);
- Expression_Ptr operator()(Supports_Declaration_Ptr);
- Expression_Ptr operator()(Supports_Interpolation_Ptr);
- Expression_Ptr operator()(Null_Ptr);
- Expression_Ptr operator()(Argument_Ptr);
- Expression_Ptr operator()(Arguments_Ptr);
- Expression_Ptr operator()(Comment_Ptr);
-
- // these will return selectors
- Selector_List_Ptr operator()(Selector_List_Ptr);
- Selector_List_Ptr operator()(Complex_Selector_Ptr);
- Compound_Selector_Ptr operator()(Compound_Selector_Ptr);
- Simple_Selector_Ptr operator()(Simple_Selector_Ptr s);
- Wrapped_Selector_Ptr operator()(Wrapped_Selector_Ptr s);
- // they don't have any specific implementation (yet)
- // Element_Selector_Ptr operator()(Element_Selector_Ptr s) { return s; };
- // Pseudo_Selector_Ptr operator()(Pseudo_Selector_Ptr s) { return s; };
- // Class_Selector_Ptr operator()(Class_Selector_Ptr s) { return s; };
- // Id_Selector_Ptr operator()(Id_Selector_Ptr s) { return s; };
- // Placeholder_Selector_Ptr operator()(Placeholder_Selector_Ptr s) { return s; };
- // actual evaluated selectors
- Selector_List_Ptr operator()(Selector_Schema_Ptr);
- Expression_Ptr operator()(Parent_Selector_Ptr);
-
- template <typename U>
- Expression_Ptr fallback(U x) { return fallback_impl(x); }
-
- private:
- void interpolation(Context& ctx, std::string& res, Expression_Obj ex, bool into_quotes, bool was_itpl = false);
-
- };
-
- Expression_Ptr cval_to_astnode(union Sass_Value* v, Backtraces traces, ParserState pstate = ParserState("[AST]"));
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/expand.cpp b/node_modules/node-sass/src/libsass/src/expand.cpp
deleted file mode 100644
index d8dc03f..0000000
--- a/node_modules/node-sass/src/libsass/src/expand.cpp
+++ /dev/null
@@ -1,817 +0,0 @@
-#include "sass.hpp"
-#include <iostream>
-#include <typeinfo>
-
-#include "ast.hpp"
-#include "expand.hpp"
-#include "bind.hpp"
-#include "eval.hpp"
-#include "backtrace.hpp"
-#include "context.hpp"
-#include "parser.hpp"
-#include "sass_functions.hpp"
-
-namespace Sass {
-
- // simple endless recursion protection
- const size_t maxRecursion = 500;
-
- Expand::Expand(Context& ctx, Env* env, std::vector<Selector_List_Obj>* stack)
- : ctx(ctx),
- traces(ctx.traces),
- eval(Eval(*this)),
- recursions(0),
- in_keyframes(false),
- at_root_without_rule(false),
- old_at_root_without_rule(false),
- env_stack(std::vector<Env*>()),
- block_stack(std::vector<Block_Ptr>()),
- call_stack(std::vector<AST_Node_Obj>()),
- selector_stack(std::vector<Selector_List_Obj>()),
- media_block_stack(std::vector<Media_Block_Ptr>())
- {
- env_stack.push_back(0);
- env_stack.push_back(env);
- block_stack.push_back(0);
- call_stack.push_back(0);
- if (stack == NULL) { selector_stack.push_back(0); }
- else { selector_stack.insert(selector_stack.end(), stack->begin(), stack->end()); }
- media_block_stack.push_back(0);
- }
-
- Env* Expand::environment()
- {
- if (env_stack.size() > 0)
- return env_stack.back();
- return 0;
- }
-
- Selector_List_Obj Expand::selector()
- {
- if (selector_stack.size() > 0)
- return selector_stack.back();
- return 0;
- }
-
- // blocks create new variable scopes
- Block_Ptr Expand::operator()(Block_Ptr b)
- {
- // create new local environment
- // set the current env as parent
- Env env(environment());
- // copy the block object (add items later)
- Block_Obj bb = SASS_MEMORY_NEW(Block,
- b->pstate(),
- b->length(),
- b->is_root());
- // setup block and env stack
- this->block_stack.push_back(bb);
- this->env_stack.push_back(&env);
- // operate on block
- // this may throw up!
- this->append_block(b);
- // revert block and env stack
- this->block_stack.pop_back();
- this->env_stack.pop_back();
- // return copy
- return bb.detach();
- }
-
- Statement_Ptr Expand::operator()(Ruleset_Ptr r)
- {
- LOCAL_FLAG(old_at_root_without_rule, at_root_without_rule);
-
- if (in_keyframes) {
- Block_Ptr bb = operator()(r->block());
- Keyframe_Rule_Obj k = SASS_MEMORY_NEW(Keyframe_Rule, r->pstate(), bb);
- if (r->selector()) {
- if (Selector_List_Ptr s = r->selector()) {
- selector_stack.push_back(0);
- k->name(s->eval(eval));
- selector_stack.pop_back();
- }
- }
- return k.detach();
- }
-
- // reset when leaving scope
- LOCAL_FLAG(at_root_without_rule, false);
-
- // `&` is allowed in `@at-root`!
- bool has_parent_selector = false;
- for (size_t i = 0, L = selector_stack.size(); i < L && !has_parent_selector; i++) {
- Selector_List_Obj ll = selector_stack.at(i);
- has_parent_selector = ll != 0 && ll->length() > 0;
- }
-
- Selector_List_Obj sel = r->selector();
- if (sel) sel = sel->eval(eval);
-
- // check for parent selectors in base level rules
- if (r->is_root() || (block_stack.back() && block_stack.back()->is_root())) {
- if (Selector_List_Ptr selector_list = Cast<Selector_List>(r->selector())) {
- for (Complex_Selector_Obj complex_selector : selector_list->elements()) {
- Complex_Selector_Ptr tail = complex_selector;
- while (tail) {
- if (tail->head()) for (Simple_Selector_Obj header : tail->head()->elements()) {
- Parent_Selector_Ptr ptr = Cast<Parent_Selector>(header);
- if (ptr == NULL || (!ptr->real() || has_parent_selector)) continue;
- std::string sel_str(complex_selector->to_string(ctx.c_options));
- error("Base-level rules cannot contain the parent-selector-referencing character '&'.", header->pstate(), traces);
- }
- tail = tail->tail();
- }
- }
- }
- }
- else {
- if (sel->length() == 0 || sel->has_parent_ref()) {
- if (sel->has_real_parent_ref() && !has_parent_selector) {
- error("Base-level rules cannot contain the parent-selector-referencing character '&'.", sel->pstate(), traces);
- }
- }
- }
-
- // do not connect parent again
- sel->remove_parent_selectors();
- selector_stack.push_back(sel);
- Env env(environment());
- if (block_stack.back()->is_root()) {
- env_stack.push_back(&env);
- }
- sel->set_media_block(media_block_stack.back());
- Block_Obj blk = 0;
- if (r->block()) blk = operator()(r->block());
- Ruleset_Ptr rr = SASS_MEMORY_NEW(Ruleset,
- r->pstate(),
- sel,
- blk);
- selector_stack.pop_back();
- if (block_stack.back()->is_root()) {
- env_stack.pop_back();
- }
-
- rr->is_root(r->is_root());
- rr->tabs(r->tabs());
-
- return rr;
- }
-
- Statement_Ptr Expand::operator()(Supports_Block_Ptr f)
- {
- Expression_Obj condition = f->condition()->perform(&eval);
- Supports_Block_Obj ff = SASS_MEMORY_NEW(Supports_Block,
- f->pstate(),
- Cast<Supports_Condition>(condition),
- operator()(f->block()));
- return ff.detach();
- }
-
- Statement_Ptr Expand::operator()(Media_Block_Ptr m)
- {
- Media_Block_Obj cpy = SASS_MEMORY_COPY(m);
- // Media_Blocks are prone to have circular references
- // Copy could leak memory if it does not get picked up
- // Looks like we are able to reset block reference for copy
- // Good as it will ensure a low memory overhead for this fix
- // So this is a cheap solution with a minimal price
- ctx.ast_gc.push_back(cpy); cpy->block(0);
- Expression_Obj mq = eval(m->media_queries());
- std::string str_mq(mq->to_string(ctx.c_options));
- char* str = sass_copy_c_string(str_mq.c_str());
- ctx.strings.push_back(str);
- Parser p(Parser::from_c_str(str, ctx, traces, mq->pstate()));
- mq = p.parse_media_queries(); // re-assign now
- cpy->media_queries(mq);
- media_block_stack.push_back(cpy);
- Block_Obj blk = operator()(m->block());
- Media_Block_Ptr mm = SASS_MEMORY_NEW(Media_Block,
- m->pstate(),
- mq,
- blk);
- media_block_stack.pop_back();
- mm->tabs(m->tabs());
- return mm;
- }
-
- Statement_Ptr Expand::operator()(At_Root_Block_Ptr a)
- {
- Block_Obj ab = a->block();
- Expression_Obj ae = a->expression();
-
- if (ae) ae = ae->perform(&eval);
- else ae = SASS_MEMORY_NEW(At_Root_Query, a->pstate());
-
- LOCAL_FLAG(at_root_without_rule, true);
- LOCAL_FLAG(in_keyframes, false);
-
- ;
-
- Block_Obj bb = ab ? operator()(ab) : NULL;
- At_Root_Block_Obj aa = SASS_MEMORY_NEW(At_Root_Block,
- a->pstate(),
- bb,
- Cast<At_Root_Query>(ae));
- return aa.detach();
- }
-
- Statement_Ptr Expand::operator()(Directive_Ptr a)
- {
- LOCAL_FLAG(in_keyframes, a->is_keyframes());
- Block_Ptr ab = a->block();
- Selector_List_Ptr as = a->selector();
- Expression_Ptr av = a->value();
- selector_stack.push_back(0);
- if (av) av = av->perform(&eval);
- if (as) as = eval(as);
- selector_stack.pop_back();
- Block_Ptr bb = ab ? operator()(ab) : NULL;
- Directive_Ptr aa = SASS_MEMORY_NEW(Directive,
- a->pstate(),
- a->keyword(),
- as,
- bb,
- av);
- return aa;
- }
-
- Statement_Ptr Expand::operator()(Declaration_Ptr d)
- {
- Block_Obj ab = d->block();
- String_Obj old_p = d->property();
- Expression_Obj prop = old_p->perform(&eval);
- String_Obj new_p = Cast<String>(prop);
- // we might get a color back
- if (!new_p) {
- std::string str(prop->to_string(ctx.c_options));
- new_p = SASS_MEMORY_NEW(String_Constant, old_p->pstate(), str);
- }
- Expression_Obj value = d->value();
- if (value) value = value->perform(&eval);
- Block_Obj bb = ab ? operator()(ab) : NULL;
- if (!bb) {
- if (!value || (value->is_invisible() && !d->is_important())) return 0;
- }
- Declaration_Ptr decl = SASS_MEMORY_NEW(Declaration,
- d->pstate(),
- new_p,
- value,
- d->is_important(),
- d->is_custom_property(),
- bb);
- decl->tabs(d->tabs());
- return decl;
- }
-
- Statement_Ptr Expand::operator()(Assignment_Ptr a)
- {
- Env* env = environment();
- const std::string& var(a->variable());
- if (a->is_global()) {
- if (a->is_default()) {
- if (env->has_global(var)) {
- Expression_Obj e = Cast<Expression>(env->get_global(var));
- if (!e || e->concrete_type() == Expression::NULL_VAL) {
- env->set_global(var, a->value()->perform(&eval));
- }
- }
- else {
- env->set_global(var, a->value()->perform(&eval));
- }
- }
- else {
- env->set_global(var, a->value()->perform(&eval));
- }
- }
- else if (a->is_default()) {
- if (env->has_lexical(var)) {
- auto cur = env;
- while (cur && cur->is_lexical()) {
- if (cur->has_local(var)) {
- if (AST_Node_Obj node = cur->get_local(var)) {
- Expression_Obj e = Cast<Expression>(node);
- if (!e || e->concrete_type() == Expression::NULL_VAL) {
- cur->set_local(var, a->value()->perform(&eval));
- }
- }
- else {
- throw std::runtime_error("Env not in sync");
- }
- return 0;
- }
- cur = cur->parent();
- }
- throw std::runtime_error("Env not in sync");
- }
- else if (env->has_global(var)) {
- if (AST_Node_Obj node = env->get_global(var)) {
- Expression_Obj e = Cast<Expression>(node);
- if (!e || e->concrete_type() == Expression::NULL_VAL) {
- env->set_global(var, a->value()->perform(&eval));
- }
- }
- }
- else if (env->is_lexical()) {
- env->set_local(var, a->value()->perform(&eval));
- }
- else {
- env->set_local(var, a->value()->perform(&eval));
- }
- }
- else {
- env->set_lexical(var, a->value()->perform(&eval));
- }
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Import_Ptr imp)
- {
- Import_Obj result = SASS_MEMORY_NEW(Import, imp->pstate());
- if (imp->import_queries() && imp->import_queries()->size()) {
- Expression_Obj ex = imp->import_queries()->perform(&eval);
- result->import_queries(Cast<List>(ex));
- }
- for ( size_t i = 0, S = imp->urls().size(); i < S; ++i) {
- result->urls().push_back(imp->urls()[i]->perform(&eval));
- }
- // all resources have been dropped for Input_Stubs
- // for ( size_t i = 0, S = imp->incs().size(); i < S; ++i) {}
- return result.detach();
- }
-
- Statement_Ptr Expand::operator()(Import_Stub_Ptr i)
- {
- traces.push_back(Backtrace(i->pstate()));
- // get parent node from call stack
- AST_Node_Obj parent = call_stack.back();
- if (Cast<Block>(parent) == NULL) {
- error("Import directives may not be used within control directives or mixins.", i->pstate(), traces);
- }
- // we don't seem to need that actually afterall
- Sass_Import_Entry import = sass_make_import(
- i->imp_path().c_str(),
- i->abs_path().c_str(),
- 0, 0
- );
- ctx.import_stack.push_back(import);
-
- Block_Obj trace_block = SASS_MEMORY_NEW(Block, i->pstate());
- Trace_Obj trace = SASS_MEMORY_NEW(Trace, i->pstate(), i->imp_path(), trace_block, 'i');
- block_stack.back()->append(trace);
- block_stack.push_back(trace_block);
-
- const std::string& abs_path(i->resource().abs_path);
- append_block(ctx.sheets.at(abs_path).root);
- sass_delete_import(ctx.import_stack.back());
- ctx.import_stack.pop_back();
- block_stack.pop_back();
- traces.pop_back();
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Warning_Ptr w)
- {
- // eval handles this too, because warnings may occur in functions
- w->perform(&eval);
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Error_Ptr e)
- {
- // eval handles this too, because errors may occur in functions
- e->perform(&eval);
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Debug_Ptr d)
- {
- // eval handles this too, because warnings may occur in functions
- d->perform(&eval);
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Comment_Ptr c)
- {
- if (ctx.output_style() == COMPRESSED) {
- // comments should not be evaluated in compact
- // https://github.com/sass/libsass/issues/2359
- if (!c->is_important()) return NULL;
- }
- eval.is_in_comment = true;
- Comment_Ptr rv = SASS_MEMORY_NEW(Comment, c->pstate(), Cast<String>(c->text()->perform(&eval)), c->is_important());
- eval.is_in_comment = false;
- // TODO: eval the text, once we're parsing/storing it as a String_Schema
- return rv;
- }
-
- Statement_Ptr Expand::operator()(If_Ptr i)
- {
- Env env(environment(), true);
- env_stack.push_back(&env);
- call_stack.push_back(i);
- Expression_Obj rv = i->predicate()->perform(&eval);
- if (*rv) {
- append_block(i->block());
- }
- else {
- Block_Ptr alt = i->alternative();
- if (alt) append_block(alt);
- }
- call_stack.pop_back();
- env_stack.pop_back();
- return 0;
- }
-
- // For does not create a new env scope
- // But iteration vars are reset afterwards
- Statement_Ptr Expand::operator()(For_Ptr f)
- {
- std::string variable(f->variable());
- Expression_Obj low = f->lower_bound()->perform(&eval);
- if (low->concrete_type() != Expression::NUMBER) {
- traces.push_back(Backtrace(low->pstate()));
- throw Exception::TypeMismatch(traces, *low, "integer");
- }
- Expression_Obj high = f->upper_bound()->perform(&eval);
- if (high->concrete_type() != Expression::NUMBER) {
- traces.push_back(Backtrace(high->pstate()));
- throw Exception::TypeMismatch(traces, *high, "integer");
- }
- Number_Obj sass_start = Cast<Number>(low);
- Number_Obj sass_end = Cast<Number>(high);
- // check if units are valid for sequence
- if (sass_start->unit() != sass_end->unit()) {
- std::stringstream msg; msg << "Incompatible units: '"
- << sass_start->unit() << "' and '"
- << sass_end->unit() << "'.";
- error(msg.str(), low->pstate(), traces);
- }
- double start = sass_start->value();
- double end = sass_end->value();
- // only create iterator once in this environment
- Env env(environment(), true);
- env_stack.push_back(&env);
- call_stack.push_back(f);
- Block_Ptr body = f->block();
- if (start < end) {
- if (f->is_inclusive()) ++end;
- for (double i = start;
- i < end;
- ++i) {
- Number_Obj it = SASS_MEMORY_NEW(Number, low->pstate(), i, sass_end->unit());
- env.set_local(variable, it);
- append_block(body);
- }
- } else {
- if (f->is_inclusive()) --end;
- for (double i = start;
- i > end;
- --i) {
- Number_Obj it = SASS_MEMORY_NEW(Number, low->pstate(), i, sass_end->unit());
- env.set_local(variable, it);
- append_block(body);
- }
- }
- call_stack.pop_back();
- env_stack.pop_back();
- return 0;
- }
-
- // Eval does not create a new env scope
- // But iteration vars are reset afterwards
- Statement_Ptr Expand::operator()(Each_Ptr e)
- {
- std::vector<std::string> variables(e->variables());
- Expression_Obj expr = e->list()->perform(&eval);
- List_Obj list = 0;
- Map_Obj map;
- if (expr->concrete_type() == Expression::MAP) {
- map = Cast<Map>(expr);
- }
- else if (Selector_List_Ptr ls = Cast<Selector_List>(expr)) {
- Listize listize;
- Expression_Obj rv = ls->perform(&listize);
- list = Cast<List>(rv);
- }
- else if (expr->concrete_type() != Expression::LIST) {
- list = SASS_MEMORY_NEW(List, expr->pstate(), 1, SASS_COMMA);
- list->append(expr);
- }
- else {
- list = Cast<List>(expr);
- }
- // remember variables and then reset them
- Env env(environment(), true);
- env_stack.push_back(&env);
- call_stack.push_back(e);
- Block_Ptr body = e->block();
-
- if (map) {
- for (auto key : map->keys()) {
- Expression_Obj k = key->perform(&eval);
- Expression_Obj v = map->at(key)->perform(&eval);
-
- if (variables.size() == 1) {
- List_Obj variable = SASS_MEMORY_NEW(List, map->pstate(), 2, SASS_SPACE);
- variable->append(k);
- variable->append(v);
- env.set_local(variables[0], variable);
- } else {
- env.set_local(variables[0], k);
- env.set_local(variables[1], v);
- }
- append_block(body);
- }
- }
- else {
- // bool arglist = list->is_arglist();
- if (list->length() == 1 && Cast<Selector_List>(list)) {
- list = Cast<List>(list);
- }
- for (size_t i = 0, L = list->length(); i < L; ++i) {
- Expression_Obj item = list->at(i);
- // unwrap value if the expression is an argument
- if (Argument_Obj arg = Cast<Argument>(item)) item = arg->value();
- // check if we got passed a list of args (investigate)
- if (List_Obj scalars = Cast<List>(item)) {
- if (variables.size() == 1) {
- List_Obj var = scalars;
- // if (arglist) var = (*scalars)[0];
- env.set_local(variables[0], var);
- } else {
- for (size_t j = 0, K = variables.size(); j < K; ++j) {
- Expression_Obj res = j >= scalars->length()
- ? SASS_MEMORY_NEW(Null, expr->pstate())
- : (*scalars)[j]->perform(&eval);
- env.set_local(variables[j], res);
- }
- }
- } else {
- if (variables.size() > 0) {
- env.set_local(variables.at(0), item);
- for (size_t j = 1, K = variables.size(); j < K; ++j) {
- Expression_Obj res = SASS_MEMORY_NEW(Null, expr->pstate());
- env.set_local(variables[j], res);
- }
- }
- }
- append_block(body);
- }
- }
- call_stack.pop_back();
- env_stack.pop_back();
- return 0;
- }
-
- Statement_Ptr Expand::operator()(While_Ptr w)
- {
- Expression_Obj pred = w->predicate();
- Block_Ptr body = w->block();
- Env env(environment(), true);
- env_stack.push_back(&env);
- call_stack.push_back(w);
- Expression_Obj cond = pred->perform(&eval);
- while (!cond->is_false()) {
- append_block(body);
- cond = pred->perform(&eval);
- }
- call_stack.pop_back();
- env_stack.pop_back();
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Return_Ptr r)
- {
- error("@return may only be used within a function", r->pstate(), traces);
- return 0;
- }
-
-
- void Expand::expand_selector_list(Selector_Obj s, Selector_List_Obj extender) {
-
- if (Selector_List_Obj sl = Cast<Selector_List>(s)) {
- for (Complex_Selector_Obj complex_selector : sl->elements()) {
- Complex_Selector_Obj tail = complex_selector;
- while (tail) {
- if (tail->head()) for (Simple_Selector_Obj header : tail->head()->elements()) {
- if (Cast<Parent_Selector>(header) == NULL) continue; // skip all others
- std::string sel_str(complex_selector->to_string(ctx.c_options));
- error("Can't extend " + sel_str + ": can't extend parent selectors", header->pstate(), traces);
- }
- tail = tail->tail();
- }
- }
- }
-
-
- Selector_List_Obj contextualized = Cast<Selector_List>(s->perform(&eval));
- if (contextualized == false) return;
- for (auto complex_sel : contextualized->elements()) {
- Complex_Selector_Obj c = complex_sel;
- if (!c->head() || c->tail()) {
- std::string sel_str(contextualized->to_string(ctx.c_options));
- error("Can't extend " + sel_str + ": can't extend nested selectors", c->pstate(), traces);
- }
- Compound_Selector_Obj target = c->head();
- if (contextualized->is_optional()) target->is_optional(true);
- for (size_t i = 0, L = extender->length(); i < L; ++i) {
- Complex_Selector_Obj sel = (*extender)[i];
- if (!(sel->head() && sel->head()->length() > 0 &&
- Cast<Parent_Selector>((*sel->head())[0])))
- {
- Compound_Selector_Obj hh = SASS_MEMORY_NEW(Compound_Selector, (*extender)[i]->pstate());
- hh->media_block((*extender)[i]->media_block());
- Complex_Selector_Obj ssel = SASS_MEMORY_NEW(Complex_Selector, (*extender)[i]->pstate());
- ssel->media_block((*extender)[i]->media_block());
- if (sel->has_line_feed()) ssel->has_line_feed(true);
- Parent_Selector_Obj ps = SASS_MEMORY_NEW(Parent_Selector, (*extender)[i]->pstate());
- ps->media_block((*extender)[i]->media_block());
- hh->append(ps);
- ssel->tail(sel);
- ssel->head(hh);
- sel = ssel;
- }
- // if (c->has_line_feed()) sel->has_line_feed(true);
- ctx.subset_map.put(target, std::make_pair(sel, target));
- }
- }
-
- }
-
- Statement* Expand::operator()(Extension_Ptr e)
- {
- if (Selector_List_Ptr extender = selector()) {
- Selector_List_Ptr sl = e->selector();
- // abort on invalid selector
- if (sl == NULL) return NULL;
- if (Selector_Schema_Ptr schema = sl->schema()) {
- if (schema->has_real_parent_ref()) {
- // put root block on stack again (ignore parents)
- // selector schema must not connect in eval!
- block_stack.push_back(block_stack.at(1));
- sl = eval(sl->schema());
- block_stack.pop_back();
- } else {
- selector_stack.push_back(0);
- sl = eval(sl->schema());
- selector_stack.pop_back();
- }
- }
- for (Complex_Selector_Obj cs : sl->elements()) {
- if (!cs.isNull() && !cs->head().isNull()) {
- cs->head()->media_block(media_block_stack.back());
- }
- }
- selector_stack.push_back(0);
- expand_selector_list(sl, extender);
- selector_stack.pop_back();
- }
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Definition_Ptr d)
- {
- Env* env = environment();
- Definition_Obj dd = SASS_MEMORY_COPY(d);
- env->local_frame()[d->name() +
- (d->type() == Definition::MIXIN ? "[m]" : "[f]")] = dd;
-
- if (d->type() == Definition::FUNCTION && (
- Prelexer::calc_fn_call(d->name().c_str()) ||
- d->name() == "element" ||
- d->name() == "expression" ||
- d->name() == "url"
- )) {
- deprecated(
- "Naming a function \"" + d->name() + "\" is disallowed and will be an error in future versions of Sass.",
- "This name conflicts with an existing CSS function with special parse rules.",
- false, d->pstate()
- );
- }
-
- // set the static link so we can have lexical scoping
- dd->environment(env);
- return 0;
- }
-
- Statement_Ptr Expand::operator()(Mixin_Call_Ptr c)
- {
- if (recursions > maxRecursion) {
- throw Exception::StackError(traces, *c);
- }
-
- recursions ++;
-
- Env* env = environment();
- std::string full_name(c->name() + "[m]");
- if (!env->has(full_name)) {
- error("no mixin named " + c->name(), c->pstate(), traces);
- }
- Definition_Obj def = Cast<Definition>((*env)[full_name]);
- Block_Obj body = def->block();
- Parameters_Obj params = def->parameters();
-
- if (c->block() && c->name() != "@content" && !body->has_content()) {
- error("Mixin \"" + c->name() + "\" does not accept a content block.", c->pstate(), traces);
- }
- Expression_Obj rv = c->arguments()->perform(&eval);
- Arguments_Obj args = Cast<Arguments>(rv);
- std::string msg(", in mixin `" + c->name() + "`");
- traces.push_back(Backtrace(c->pstate(), msg));
- ctx.callee_stack.push_back({
- c->name().c_str(),
- c->pstate().path,
- c->pstate().line + 1,
- c->pstate().column + 1,
- SASS_CALLEE_MIXIN,
- { env }
- });
-
- Env new_env(def->environment());
- env_stack.push_back(&new_env);
- if (c->block()) {
- // represent mixin content blocks as thunks/closures
- Definition_Obj thunk = SASS_MEMORY_NEW(Definition,
- c->pstate(),
- "@content",
- SASS_MEMORY_NEW(Parameters, c->pstate()),
- c->block(),
- Definition::MIXIN);
- thunk->environment(env);
- new_env.local_frame()["@content[m]"] = thunk;
- }
-
- bind(std::string("Mixin"), c->name(), params, args, &ctx, &new_env, &eval);
-
- Block_Obj trace_block = SASS_MEMORY_NEW(Block, c->pstate());
- Trace_Obj trace = SASS_MEMORY_NEW(Trace, c->pstate(), c->name(), trace_block);
-
- env->set_global("is_in_mixin", bool_true);
- if (Block_Ptr pr = block_stack.back()) {
- trace_block->is_root(pr->is_root());
- }
- block_stack.push_back(trace_block);
- for (auto bb : body->elements()) {
- if (Ruleset_Ptr r = Cast<Ruleset>(bb)) {
- r->is_root(trace_block->is_root());
- }
- Statement_Obj ith = bb->perform(this);
- if (ith) trace->block()->append(ith);
- }
- block_stack.pop_back();
- env->del_global("is_in_mixin");
-
- ctx.callee_stack.pop_back();
- env_stack.pop_back();
- traces.pop_back();
-
- recursions --;
- return trace.detach();
- }
-
- Statement_Ptr Expand::operator()(Content_Ptr c)
- {
- Env* env = environment();
- // convert @content directives into mixin calls to the underlying thunk
- if (!env->has("@content[m]")) return 0;
-
- if (block_stack.back()->is_root()) {
- selector_stack.push_back(0);
- }
-
- Mixin_Call_Obj call = SASS_MEMORY_NEW(Mixin_Call,
- c->pstate(),
- "@content",
- SASS_MEMORY_NEW(Arguments, c->pstate()));
-
- Trace_Obj trace = Cast<Trace>(call->perform(this));
-
- if (block_stack.back()->is_root()) {
- selector_stack.pop_back();
- }
-
- return trace.detach();
- }
-
- // produce an error if something is not implemented
- inline Statement_Ptr Expand::fallback_impl(AST_Node_Ptr n)
- {
- std::string err =std:: string("`Expand` doesn't handle ") + typeid(*n).name();
- String_Quoted_Obj msg = SASS_MEMORY_NEW(String_Quoted, ParserState("[WARN]"), err);
- error("unknown internal error; please contact the LibSass maintainers", n->pstate(), traces);
- return SASS_MEMORY_NEW(Warning, ParserState("[WARN]"), msg);
- }
-
- // process and add to last block on stack
- inline void Expand::append_block(Block_Ptr b)
- {
- if (b->is_root()) call_stack.push_back(b);
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Ptr stm = b->at(i);
- Statement_Obj ith = stm->perform(this);
- if (ith) block_stack.back()->append(ith);
- }
- if (b->is_root()) call_stack.pop_back();
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/expand.hpp b/node_modules/node-sass/src/libsass/src/expand.hpp
deleted file mode 100644
index 3464c98..0000000
--- a/node_modules/node-sass/src/libsass/src/expand.hpp
+++ /dev/null
@@ -1,82 +0,0 @@
-#ifndef SASS_EXPAND_H
-#define SASS_EXPAND_H
-
-#include <vector>
-
-#include "ast.hpp"
-#include "eval.hpp"
-#include "operation.hpp"
-#include "environment.hpp"
-
-namespace Sass {
-
- class Listize;
- class Context;
- class Eval;
- struct Backtrace;
-
- class Expand : public Operation_CRTP<Statement_Ptr, Expand> {
- public:
-
- Env* environment();
- Selector_List_Obj selector();
-
- Context& ctx;
- Backtraces& traces;
- Eval eval;
- size_t recursions;
- bool in_keyframes;
- bool at_root_without_rule;
- bool old_at_root_without_rule;
-
- // it's easier to work with vectors
- std::vector<Env*> env_stack;
- std::vector<Block_Ptr> block_stack;
- std::vector<AST_Node_Obj> call_stack;
- std::vector<Selector_List_Obj> selector_stack;
- std::vector<Media_Block_Ptr> media_block_stack;
-
- Boolean_Obj bool_true;
-
- Statement_Ptr fallback_impl(AST_Node_Ptr n);
-
- private:
- void expand_selector_list(Selector_Obj, Selector_List_Obj extender);
-
- public:
- Expand(Context&, Env*, std::vector<Selector_List_Obj>* stack = NULL);
- ~Expand() { }
-
- Block_Ptr operator()(Block_Ptr);
- Statement_Ptr operator()(Ruleset_Ptr);
- Statement_Ptr operator()(Media_Block_Ptr);
- Statement_Ptr operator()(Supports_Block_Ptr);
- Statement_Ptr operator()(At_Root_Block_Ptr);
- Statement_Ptr operator()(Directive_Ptr);
- Statement_Ptr operator()(Declaration_Ptr);
- Statement_Ptr operator()(Assignment_Ptr);
- Statement_Ptr operator()(Import_Ptr);
- Statement_Ptr operator()(Import_Stub_Ptr);
- Statement_Ptr operator()(Warning_Ptr);
- Statement_Ptr operator()(Error_Ptr);
- Statement_Ptr operator()(Debug_Ptr);
- Statement_Ptr operator()(Comment_Ptr);
- Statement_Ptr operator()(If_Ptr);
- Statement_Ptr operator()(For_Ptr);
- Statement_Ptr operator()(Each_Ptr);
- Statement_Ptr operator()(While_Ptr);
- Statement_Ptr operator()(Return_Ptr);
- Statement_Ptr operator()(Extension_Ptr);
- Statement_Ptr operator()(Definition_Ptr);
- Statement_Ptr operator()(Mixin_Call_Ptr);
- Statement_Ptr operator()(Content_Ptr);
-
- template <typename U>
- Statement_Ptr fallback(U x) { return fallback_impl(x); }
-
- void append_block(Block_Ptr);
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/extend.cpp b/node_modules/node-sass/src/libsass/src/extend.cpp
deleted file mode 100644
index 6022698..0000000
--- a/node_modules/node-sass/src/libsass/src/extend.cpp
+++ /dev/null
@@ -1,2130 +0,0 @@
-#include "sass.hpp"
-#include "extend.hpp"
-#include "context.hpp"
-#include "backtrace.hpp"
-#include "paths.hpp"
-#include "parser.hpp"
-#include "expand.hpp"
-#include "node.hpp"
-#include "sass_util.hpp"
-#include "remove_placeholders.hpp"
-#include "debug.hpp"
-#include <iostream>
-#include <deque>
-#include <set>
-
-/*
- NOTES:
-
- - The print* functions print to cerr. This allows our testing frameworks (like sass-spec) to ignore the output, which
- is very helpful when debugging. The format of the output is mainly to wrap things in square brackets to match what
- ruby already outputs (to make comparisons easier).
-
- - For the direct porting effort, we're trying to port method-for-method until we get all the tests passing.
- Where applicable, I've tried to include the ruby code above the function for reference until all our tests pass.
- The ruby code isn't always directly portable, so I've tried to include any modified ruby code that was actually
- used for the porting.
-
- - DO NOT try to optimize yet. We get a tremendous benefit out of comparing the output of each stage of the extend to the ruby
- output at the same stage. This makes it much easier to determine where problems are. Try to keep as close to
- the ruby code as you can until we have all the sass-spec tests passing. Then, we should optimize. However, if you see
- something that could probably be optimized, let's not forget it. Add a // TODO: or // IMPROVEMENT: comment.
-
- - Coding conventions in this file (these may need to be changed before merging back into master)
- - Very basic hungarian notation:
- p prefix for pointers (pSelector)
- no prefix for value types and references (selector)
- - Use STL iterators where possible
- - prefer verbose naming over terse naming
- - use typedefs for STL container types for make maintenance easier
-
- - You may see a lot of comments that say "// TODO: is this the correct combinator?". See the comment referring to combinators
- in extendCompoundSelector for a more extensive explanation of my confusion. I think our divergence in data model from ruby
- sass causes this to be necessary.
-
-
- GLOBAL TODOS:
-
- - wrap the contents of the print functions in DEBUG preprocesser conditionals so they will be optimized away in non-debug mode.
-
- - consider making the extend* functions member functions to avoid passing around ctx and subset_map map around. This has the
- drawback that the implementation details of the operator are then exposed to the outside world, which is not ideal and
- can cause additional compile time dependencies.
-
- - mark the helper methods in this file static to given them compilation unit linkage.
-
- - implement parent directive matching
-
- - fix compilation warnings for unused Extend members if we really don't need those references anymore.
- */
-
-
-namespace Sass {
-
-
-
-#ifdef DEBUG
-
- // TODO: move the ast specific ostream operators into ast.hpp/ast.cpp
- std::ostream& operator<<(std::ostream& os, const Complex_Selector::Combinator combinator) {
- switch (combinator) {
- case Complex_Selector::ANCESTOR_OF: os << "\" \""; break;
- case Complex_Selector::PARENT_OF: os << "\">\""; break;
- case Complex_Selector::PRECEDES: os << "\"~\""; break;
- case Complex_Selector::ADJACENT_TO: os << "\"+\""; break;
- case Complex_Selector::REFERENCE: os << "\"/\""; break;
- }
-
- return os;
- }
-
-
- std::ostream& operator<<(std::ostream& os, Compound_Selector& compoundSelector) {
- for (size_t i = 0, L = compoundSelector.length(); i < L; ++i) {
- if (i > 0) os << ", ";
- os << compoundSelector[i]->to_string();
- }
- return os;
- }
-
- std::ostream& operator<<(std::ostream& os, Simple_Selector& simpleSelector) {
- os << simpleSelector.to_string();
- return os;
- }
-
- // Print a string representation of a Compound_Selector
- static void printSimpleSelector(Simple_Selector* pSimpleSelector, const char* message=NULL, bool newline=true) {
-
- if (message) {
- std::cerr << message;
- }
-
- if (pSimpleSelector) {
- std::cerr << "[" << *pSimpleSelector << "]";
- } else {
- std::cerr << "NULL";
- }
-
- if (newline) {
- std::cerr << std::endl;
- }
- }
-
- // Print a string representation of a Compound_Selector
- static void printCompoundSelector(Compound_Selector_Ptr pCompoundSelector, const char* message=NULL, bool newline=true) {
-
- if (message) {
- std::cerr << message;
- }
-
- if (pCompoundSelector) {
- std::cerr << "[" << *pCompoundSelector << "]";
- } else {
- std::cerr << "NULL";
- }
-
- if (newline) {
- std::cerr << std::endl;
- }
- }
-
-
- std::ostream& operator<<(std::ostream& os, Complex_Selector& complexSelector) {
-
- os << "[";
- Complex_Selector_Ptr pIter = &complexSelector;
- bool first = true;
- while (pIter) {
- if (pIter->combinator() != Complex_Selector::ANCESTOR_OF) {
- if (!first) {
- os << ", ";
- }
- first = false;
- os << pIter->combinator();
- }
-
- if (!first) {
- os << ", ";
- }
- first = false;
-
- if (pIter->head()) {
- os << pIter->head()->to_string();
- } else {
- os << "NULL_HEAD";
- }
-
- pIter = pIter->tail();
- }
- os << "]";
-
- return os;
- }
-
-
- // Print a string representation of a Complex_Selector
- static void printComplexSelector(Complex_Selector_Ptr pComplexSelector, const char* message=NULL, bool newline=true) {
-
- if (message) {
- std::cerr << message;
- }
-
- if (pComplexSelector) {
- std::cerr << *pComplexSelector;
- } else {
- std::cerr << "NULL";
- }
-
- if (newline) {
- std::cerr << std::endl;
- }
- }
-
- static void printSelsNewSeqPairCollection(SubSetMapLookups& collection, const char* message=NULL, bool newline=true) {
-
- if (message) {
- std::cerr << message;
- }
- bool first = true;
- std::cerr << "[";
- for(SubSetMapLookup& pair : collection) {
- if (first) {
- first = false;
- } else {
- std::cerr << ", ";
- }
- std::cerr << "[";
- Compound_Selector_Ptr pSels = pair.first;
- Complex_Selector_Ptr pNewSelector = pair.second;
- std::cerr << "[" << *pSels << "], ";
- printComplexSelector(pNewSelector, NULL, false);
- }
- std::cerr << "]";
-
- if (newline) {
- std::cerr << std::endl;
- }
- }
-
- // Print a string representation of a ComplexSelectorSet
- static void printSourcesSet(ComplexSelectorSet& sources, const char* message=NULL, bool newline=true) {
-
- if (message) {
- std::cerr << message;
- }
-
- // Convert to a deque of strings so we can sort since order doesn't matter in a set. This should cut down on
- // the differences we see when debug printing.
- typedef std::deque<std::string> SourceStrings;
- SourceStrings sourceStrings;
- for (ComplexSelectorSet::iterator iterator = sources.begin(), iteratorEnd = sources.end(); iterator != iteratorEnd; ++iterator) {
- Complex_Selector_Ptr pSource = *iterator;
- std::stringstream sstream;
- sstream << complexSelectorToNode(pSource);
- sourceStrings.push_back(sstream.str());
- }
-
- // Sort to get consistent output
- std::sort(sourceStrings.begin(), sourceStrings.end());
-
- std::cerr << "ComplexSelectorSet[";
- for (SourceStrings::iterator iterator = sourceStrings.begin(), iteratorEnd = sourceStrings.end(); iterator != iteratorEnd; ++iterator) {
- std::string source = *iterator;
- if (iterator != sourceStrings.begin()) {
- std::cerr << ", ";
- }
- std::cerr << source;
- }
- std::cerr << "]";
-
- if (newline) {
- std::cerr << std::endl;
- }
- }
-
-
- std::ostream& operator<<(std::ostream& os, SubSetMapPairs& entries) {
- os << "SUBSET_MAP_ENTRIES[";
-
- for (SubSetMapPairs::iterator iterator = entries.begin(), endIterator = entries.end(); iterator != endIterator; ++iterator) {
- Complex_Selector_Obj pExtComplexSelector = iterator->first; // The selector up to where the @extend is (ie, the thing to merge)
- Compound_Selector_Obj pExtCompoundSelector = iterator->second; // The stuff after the @extend
-
- if (iterator != entries.begin()) {
- os << ", ";
- }
-
- os << "(";
-
- if (pExtComplexSelector) {
- std::cerr << *pExtComplexSelector;
- } else {
- std::cerr << "NULL";
- }
-
- os << " -> ";
-
- if (pExtCompoundSelector) {
- std::cerr << *pExtCompoundSelector;
- } else {
- std::cerr << "NULL";
- }
-
- os << ")";
-
- }
-
- os << "]";
-
- return os;
- }
-#endif
-
- static bool parentSuperselector(Complex_Selector_Ptr pOne, Complex_Selector_Ptr pTwo) {
- // TODO: figure out a better way to create a Complex_Selector from scratch
- // TODO: There's got to be a better way. This got ugly quick...
- Element_Selector_Obj fakeParent = SASS_MEMORY_NEW(Element_Selector, ParserState("[FAKE]"), "temp");
- Compound_Selector_Obj fakeHead = SASS_MEMORY_NEW(Compound_Selector, ParserState("[FAKE]"), 1 /*size*/);
- fakeHead->elements().push_back(fakeParent);
- Complex_Selector_Obj fakeParentContainer = SASS_MEMORY_NEW(Complex_Selector, ParserState("[FAKE]"), Complex_Selector::ANCESTOR_OF, fakeHead /*head*/, NULL /*tail*/);
-
- pOne->set_innermost(fakeParentContainer, Complex_Selector::ANCESTOR_OF);
- pTwo->set_innermost(fakeParentContainer, Complex_Selector::ANCESTOR_OF);
-
- bool isSuperselector = pOne->is_superselector_of(pTwo);
-
- pOne->clear_innermost();
- pTwo->clear_innermost();
-
- return isSuperselector;
- }
-
- void nodeToComplexSelectorDeque(const Node& node, ComplexSelectorDeque& out) {
- for (NodeDeque::iterator iter = node.collection()->begin(), iterEnd = node.collection()->end(); iter != iterEnd; iter++) {
- Node& child = *iter;
- out.push_back(nodeToComplexSelector(child));
- }
- }
-
- Node complexSelectorDequeToNode(const ComplexSelectorDeque& deque) {
- Node result = Node::createCollection();
-
- for (ComplexSelectorDeque::const_iterator iter = deque.begin(), iterEnd = deque.end(); iter != iterEnd; iter++) {
- Complex_Selector_Obj pChild = *iter;
- result.collection()->push_back(complexSelectorToNode(pChild));
- }
-
- return result;
- }
-
- class LcsCollectionComparator {
- public:
- LcsCollectionComparator() {}
-
- bool operator()(Complex_Selector_Obj pOne, Complex_Selector_Obj pTwo, Complex_Selector_Obj& pOut) const {
- /*
- This code is based on the following block from ruby sass' subweave
- do |s1, s2|
- next s1 if s1 == s2
- next unless s1.first.is_a?(SimpleSequence) && s2.first.is_a?(SimpleSequence)
- next s2 if parent_superselector?(s1, s2)
- next s1 if parent_superselector?(s2, s1)
- end
- */
-
- if (*pOne == *pTwo) {
- pOut = pOne;
- return true;
- }
-
- if (pOne->combinator() != Complex_Selector::ANCESTOR_OF || pTwo->combinator() != Complex_Selector::ANCESTOR_OF) {
- return false;
- }
-
- if (parentSuperselector(pOne, pTwo)) {
- pOut = pTwo;
- return true;
- }
-
- if (parentSuperselector(pTwo, pOne)) {
- pOut = pOne;
- return true;
- }
-
- return false;
- }
- };
-
-
- /*
- This is the equivalent of ruby's Sass::Util.lcs_backtrace.
-
- # Computes a single longest common subsequence for arrays x and y.
- # Algorithm from http://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Reading_out_an_LCS
- */
- void lcs_backtrace(const LCSTable& c, ComplexSelectorDeque& x, ComplexSelectorDeque& y, int i, int j, const LcsCollectionComparator& comparator, ComplexSelectorDeque& out) {
- //DEBUG_PRINTLN(LCS, "LCSBACK: X=" << x << " Y=" << y << " I=" << i << " J=" << j)
- // TODO: make printComplexSelectorDeque and use DEBUG_EXEC AND DEBUG_PRINTLN HERE to get equivalent output
-
- if (i == 0 || j == 0) {
- DEBUG_PRINTLN(LCS, "RETURNING EMPTY")
- return;
- }
-
-
- Complex_Selector_Obj pCompareOut;
- if (comparator(x[i], y[j], pCompareOut)) {
- DEBUG_PRINTLN(LCS, "RETURNING AFTER ELEM COMPARE")
- lcs_backtrace(c, x, y, i - 1, j - 1, comparator, out);
- out.push_back(pCompareOut);
- return;
- }
-
- if (c[i][j - 1] > c[i - 1][j]) {
- DEBUG_PRINTLN(LCS, "RETURNING AFTER TABLE COMPARE")
- lcs_backtrace(c, x, y, i, j - 1, comparator, out);
- return;
- }
-
- DEBUG_PRINTLN(LCS, "FINAL RETURN")
- lcs_backtrace(c, x, y, i - 1, j, comparator, out);
- return;
- }
-
- /*
- This is the equivalent of ruby's Sass::Util.lcs_table.
-
- # Calculates the memoization table for the Least Common Subsequence algorithm.
- # Algorithm from http://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Computing_the_length_of_the_LCS
- */
- void lcs_table(const ComplexSelectorDeque& x, const ComplexSelectorDeque& y, const LcsCollectionComparator& comparator, LCSTable& out) {
- //DEBUG_PRINTLN(LCS, "LCSTABLE: X=" << x << " Y=" << y)
- // TODO: make printComplexSelectorDeque and use DEBUG_EXEC AND DEBUG_PRINTLN HERE to get equivalent output
-
- LCSTable c(x.size(), std::vector<int>(y.size()));
-
- // These shouldn't be necessary since the vector will be initialized to 0 already.
- // x.size.times {|i| c[i][0] = 0}
- // y.size.times {|j| c[0][j] = 0}
-
- for (size_t i = 1; i < x.size(); i++) {
- for (size_t j = 1; j < y.size(); j++) {
- Complex_Selector_Obj pCompareOut;
-
- if (comparator(x[i], y[j], pCompareOut)) {
- c[i][j] = c[i - 1][j - 1] + 1;
- } else {
- c[i][j] = std::max(c[i][j - 1], c[i - 1][j]);
- }
- }
- }
-
- out = c;
- }
-
- /*
- This is the equivalent of ruby's Sass::Util.lcs.
-
- # Computes a single longest common subsequence for `x` and `y`.
- # If there are more than one longest common subsequences,
- # the one returned is that which starts first in `x`.
-
- # @param x [NodeCollection]
- # @param y [NodeCollection]
- # @comparator An equality check between elements of `x` and `y`.
- # @return [NodeCollection] The LCS
-
- http://en.wikipedia.org/wiki/Longest_common_subsequence_problem
- */
- void lcs(ComplexSelectorDeque& x, ComplexSelectorDeque& y, const LcsCollectionComparator& comparator, ComplexSelectorDeque& out) {
- //DEBUG_PRINTLN(LCS, "LCS: X=" << x << " Y=" << y)
- // TODO: make printComplexSelectorDeque and use DEBUG_EXEC AND DEBUG_PRINTLN HERE to get equivalent output
-
- x.push_front(NULL);
- y.push_front(NULL);
-
- LCSTable table;
- lcs_table(x, y, comparator, table);
-
- return lcs_backtrace(table, x, y, static_cast<int>(x.size()) - 1, static_cast<int>(y.size()) - 1, comparator, out);
- }
-
-
- /*
- This is the equivalent of ruby's Sequence.trim.
-
- The following is the modified version of the ruby code that was more portable to C++. You
- should be able to drop it into ruby 3.2.19 and get the same results from ruby sass.
-
- # Avoid truly horrific quadratic behavior. TODO: I think there
- # may be a way to get perfect trimming without going quadratic.
- return seqses if seqses.size > 100
-
- # Keep the results in a separate array so we can be sure we aren't
- # comparing against an already-trimmed selector. This ensures that two
- # identical selectors don't mutually trim one another.
- result = seqses.dup
-
- # This is n^2 on the sequences, but only comparing between
- # separate sequences should limit the quadratic behavior.
- seqses.each_with_index do |seqs1, i|
- tempResult = []
-
- for seq1 in seqs1 do
- max_spec = 0
- for seq in _sources(seq1) do
- max_spec = [max_spec, seq.specificity].max
- end
-
-
- isMoreSpecificOuter = false
- for seqs2 in result do
- if seqs1.equal?(seqs2) then
- next
- end
-
- # Second Law of Extend: the specificity of a generated selector
- # should never be less than the specificity of the extending
- # selector.
- #
- # See https://github.com/nex3/sass/issues/324.
- isMoreSpecificInner = false
- for seq2 in seqs2 do
- isMoreSpecificInner = _specificity(seq2) >= max_spec && _superselector?(seq2, seq1)
- if isMoreSpecificInner then
- break
- end
- end
-
- if isMoreSpecificInner then
- isMoreSpecificOuter = true
- break
- end
- end
-
- if !isMoreSpecificOuter then
- tempResult.push(seq1)
- end
- end
-
- result[i] = tempResult
-
- end
-
- result
- */
- /*
- - IMPROVEMENT: We could probably work directly in the output trimmed deque.
- */
- Node Extend::trim(Node& seqses, bool isReplace) {
- // See the comments in the above ruby code before embarking on understanding this function.
-
- // Avoid poor performance in extreme cases.
- if (seqses.collection()->size() > 100) {
- return seqses;
- }
-
-
- DEBUG_PRINTLN(TRIM, "TRIM: " << seqses)
-
-
- Node result = Node::createCollection();
- result.plus(seqses);
-
- DEBUG_PRINTLN(TRIM, "RESULT INITIAL: " << result)
-
- // Normally we use the standard STL iterators, but in this case, we need to access the result collection by index since we're
- // iterating the input collection, computing a value, and then setting the result in the output collection. We have to keep track
- // of the index manually.
- int toTrimIndex = 0;
-
- for (NodeDeque::iterator seqsesIter = seqses.collection()->begin(), seqsesIterEnd = seqses.collection()->end(); seqsesIter != seqsesIterEnd; ++seqsesIter) {
- Node& seqs1 = *seqsesIter;
-
- DEBUG_PRINTLN(TRIM, "SEQS1: " << seqs1 << " " << toTrimIndex)
-
- Node tempResult = Node::createCollection();
- tempResult.got_line_feed = seqs1.got_line_feed;
-
- for (NodeDeque::iterator seqs1Iter = seqs1.collection()->begin(), seqs1EndIter = seqs1.collection()->end(); seqs1Iter != seqs1EndIter; ++seqs1Iter) {
- Node& seq1 = *seqs1Iter;
-
- Complex_Selector_Obj pSeq1 = nodeToComplexSelector(seq1);
-
- // Compute the maximum specificity. This requires looking at the "sources" of the sequence. See SimpleSequence.sources in the ruby code
- // for a good description of sources.
- //
- // TODO: I'm pretty sure there's a bug in the sources code. It was implemented for sass-spec's 182_test_nested_extend_loop test.
- // While the test passes, I compared the state of each trim call to verify correctness. The last trim call had incorrect sources. We
- // had an extra source that the ruby version did not have. Without a failing test case, this is going to be extra hard to find. My
- // best guess at this point is that we're cloning an object somewhere and maintaining the sources when we shouldn't be. This is purely
- // a guess though.
- unsigned long maxSpecificity = isReplace ? pSeq1->specificity() : 0;
- ComplexSelectorSet sources = pSeq1->sources();
-
- DEBUG_PRINTLN(TRIM, "TRIM SEQ1: " << seq1)
- DEBUG_EXEC(TRIM, printSourcesSet(sources, "TRIM SOURCES: "))
-
- for (ComplexSelectorSet::iterator sourcesSetIterator = sources.begin(), sourcesSetIteratorEnd = sources.end(); sourcesSetIterator != sourcesSetIteratorEnd; ++sourcesSetIterator) {
- const Complex_Selector_Obj& pCurrentSelector = *sourcesSetIterator;
- maxSpecificity = std::max(maxSpecificity, pCurrentSelector->specificity());
- }
-
- DEBUG_PRINTLN(TRIM, "MAX SPECIFICITY: " << maxSpecificity)
-
- bool isMoreSpecificOuter = false;
-
- int resultIndex = 0;
-
- for (NodeDeque::iterator resultIter = result.collection()->begin(), resultIterEnd = result.collection()->end(); resultIter != resultIterEnd; ++resultIter) {
- Node& seqs2 = *resultIter;
-
- DEBUG_PRINTLN(TRIM, "SEQS1: " << seqs1)
- DEBUG_PRINTLN(TRIM, "SEQS2: " << seqs2)
-
- // Do not compare the same sequence to itself. The ruby call we're trying to
- // emulate is: seqs1.equal?(seqs2). equal? is an object comparison, not an equivalency comparision.
- // Since we have the same pointers in seqes and results, we can do a pointer comparision. seqs1 is
- // derived from seqses and seqs2 is derived from result.
- if (seqs1.collection() == seqs2.collection()) {
- DEBUG_PRINTLN(TRIM, "CONTINUE")
- continue;
- }
-
- bool isMoreSpecificInner = false;
-
- for (NodeDeque::iterator seqs2Iter = seqs2.collection()->begin(), seqs2IterEnd = seqs2.collection()->end(); seqs2Iter != seqs2IterEnd; ++seqs2Iter) {
- Node& seq2 = *seqs2Iter;
-
- Complex_Selector_Obj pSeq2 = nodeToComplexSelector(seq2);
-
- DEBUG_PRINTLN(TRIM, "SEQ2 SPEC: " << pSeq2->specificity())
- DEBUG_PRINTLN(TRIM, "IS SPEC: " << pSeq2->specificity() << " >= " << maxSpecificity << " " << (pSeq2->specificity() >= maxSpecificity ? "true" : "false"))
- DEBUG_PRINTLN(TRIM, "IS SUPER: " << (pSeq2->is_superselector_of(pSeq1) ? "true" : "false"))
-
- isMoreSpecificInner = pSeq2->specificity() >= maxSpecificity && pSeq2->is_superselector_of(pSeq1);
-
- if (isMoreSpecificInner) {
- DEBUG_PRINTLN(TRIM, "FOUND MORE SPECIFIC")
- break;
- }
- }
-
- // If we found something more specific, we're done. Let the outer loop know and stop iterating.
- if (isMoreSpecificInner) {
- isMoreSpecificOuter = true;
- break;
- }
-
- resultIndex++;
- }
-
- if (!isMoreSpecificOuter) {
- DEBUG_PRINTLN(TRIM, "PUSHING: " << seq1)
- tempResult.collection()->push_back(seq1);
- }
-
- }
-
- DEBUG_PRINTLN(TRIM, "RESULT BEFORE ASSIGN: " << result)
- DEBUG_PRINTLN(TRIM, "TEMP RESULT: " << toTrimIndex << " " << tempResult)
- (*result.collection())[toTrimIndex] = tempResult;
-
- toTrimIndex++;
-
- DEBUG_PRINTLN(TRIM, "RESULT: " << result)
- }
-
- return result;
- }
-
-
-
- static bool parentSuperselector(const Node& one, const Node& two) {
- // TODO: figure out a better way to create a Complex_Selector from scratch
- // TODO: There's got to be a better way. This got ugly quick...
- Element_Selector_Obj fakeParent = SASS_MEMORY_NEW(Element_Selector, ParserState("[FAKE]"), "temp");
- Compound_Selector_Obj fakeHead = SASS_MEMORY_NEW(Compound_Selector, ParserState("[FAKE]"), 1 /*size*/);
- fakeHead->elements().push_back(fakeParent);
- Complex_Selector_Obj fakeParentContainer = SASS_MEMORY_NEW(Complex_Selector, ParserState("[FAKE]"), Complex_Selector::ANCESTOR_OF, fakeHead /*head*/, NULL /*tail*/);
-
- Complex_Selector_Obj pOneWithFakeParent = nodeToComplexSelector(one);
- pOneWithFakeParent->set_innermost(fakeParentContainer, Complex_Selector::ANCESTOR_OF);
- Complex_Selector_Obj pTwoWithFakeParent = nodeToComplexSelector(two);
- pTwoWithFakeParent->set_innermost(fakeParentContainer, Complex_Selector::ANCESTOR_OF);
-
- return pOneWithFakeParent->is_superselector_of(pTwoWithFakeParent);
- }
-
-
- class ParentSuperselectorChunker {
- public:
- ParentSuperselectorChunker(Node& lcs) : mLcs(lcs) {}
- Node& mLcs;
-
- bool operator()(const Node& seq) const {
- // {|s| parent_superselector?(s.first, lcs.first)}
- if (seq.collection()->size() == 0) return false;
- return parentSuperselector(seq.collection()->front(), mLcs.collection()->front());
- }
- };
-
- class SubweaveEmptyChunker {
- public:
- bool operator()(const Node& seq) const {
- // {|s| s.empty?}
-
- return seq.collection()->empty();
- }
- };
-
- /*
- # Takes initial subsequences of `seq1` and `seq2` and returns all
- # orderings of those subsequences. The initial subsequences are determined
- # by a block.
- #
- # Destructively removes the initial subsequences of `seq1` and `seq2`.
- #
- # For example, given `(A B C | D E)` and `(1 2 | 3 4 5)` (with `|`
- # denoting the boundary of the initial subsequence), this would return
- # `[(A B C 1 2), (1 2 A B C)]`. The sequences would then be `(D E)` and
- # `(3 4 5)`.
- #
- # @param seq1 [Array]
- # @param seq2 [Array]
- # @yield [a] Used to determine when to cut off the initial subsequences.
- # Called repeatedly for each sequence until it returns true.
- # @yieldparam a [Array] A final subsequence of one input sequence after
- # cutting off some initial subsequence.
- # @yieldreturn [Boolean] Whether or not to cut off the initial subsequence
- # here.
- # @return [Array<Array>] All possible orderings of the initial subsequences.
- def chunks(seq1, seq2)
- chunk1 = []
- chunk1 << seq1.shift until yield seq1
- chunk2 = []
- chunk2 << seq2.shift until yield seq2
- return [] if chunk1.empty? && chunk2.empty?
- return [chunk2] if chunk1.empty?
- return [chunk1] if chunk2.empty?
- [chunk1 + chunk2, chunk2 + chunk1]
- end
- */
- template<typename ChunkerType>
- static Node chunks(Node& seq1, Node& seq2, const ChunkerType& chunker) {
- Node chunk1 = Node::createCollection();
- while (seq1.collection()->size() && !chunker(seq1)) {
- chunk1.collection()->push_back(seq1.collection()->front());
- seq1.collection()->pop_front();
- }
-
- Node chunk2 = Node::createCollection();
- while (!seq2.collection()->empty() && !chunker(seq2)) {
- chunk2.collection()->push_back(seq2.collection()->front());
- seq2.collection()->pop_front();
- }
-
- if (chunk1.collection()->empty() && chunk2.collection()->empty()) {
- DEBUG_PRINTLN(CHUNKS, "RETURNING BOTH EMPTY")
- return Node::createCollection();
- }
-
- if (chunk1.collection()->empty()) {
- Node chunk2Wrapper = Node::createCollection();
- chunk2Wrapper.collection()->push_back(chunk2);
- DEBUG_PRINTLN(CHUNKS, "RETURNING ONE EMPTY")
- return chunk2Wrapper;
- }
-
- if (chunk2.collection()->empty()) {
- Node chunk1Wrapper = Node::createCollection();
- chunk1Wrapper.collection()->push_back(chunk1);
- DEBUG_PRINTLN(CHUNKS, "RETURNING TWO EMPTY")
- return chunk1Wrapper;
- }
-
- Node perms = Node::createCollection();
-
- Node firstPermutation = Node::createCollection();
- firstPermutation.collection()->insert(firstPermutation.collection()->end(), chunk1.collection()->begin(), chunk1.collection()->end());
- firstPermutation.collection()->insert(firstPermutation.collection()->end(), chunk2.collection()->begin(), chunk2.collection()->end());
- perms.collection()->push_back(firstPermutation);
-
- Node secondPermutation = Node::createCollection();
- secondPermutation.collection()->insert(secondPermutation.collection()->end(), chunk2.collection()->begin(), chunk2.collection()->end());
- secondPermutation.collection()->insert(secondPermutation.collection()->end(), chunk1.collection()->begin(), chunk1.collection()->end());
- perms.collection()->push_back(secondPermutation);
-
- DEBUG_PRINTLN(CHUNKS, "RETURNING PERM")
-
- return perms;
- }
-
-
- static Node groupSelectors(Node& seq) {
- Node newSeq = Node::createCollection();
-
- Node tail = Node::createCollection();
- tail.plus(seq);
-
- while (!tail.collection()->empty()) {
- Node head = Node::createCollection();
-
- do {
- head.collection()->push_back(tail.collection()->front());
- tail.collection()->pop_front();
- } while (!tail.collection()->empty() && (head.collection()->back().isCombinator() || tail.collection()->front().isCombinator()));
-
- newSeq.collection()->push_back(head);
- }
-
- return newSeq;
- }
-
-
- static void getAndRemoveInitialOps(Node& seq, Node& ops) {
- NodeDeque& seqCollection = *(seq.collection());
- NodeDeque& opsCollection = *(ops.collection());
-
- while (seqCollection.size() > 0 && seqCollection.front().isCombinator()) {
- opsCollection.push_back(seqCollection.front());
- seqCollection.pop_front();
- }
- }
-
-
- static void getAndRemoveFinalOps(Node& seq, Node& ops) {
- NodeDeque& seqCollection = *(seq.collection());
- NodeDeque& opsCollection = *(ops.collection());
-
- while (seqCollection.size() > 0 && seqCollection.back().isCombinator()) {
- opsCollection.push_back(seqCollection.back()); // Purposefully reversed to match ruby code
- seqCollection.pop_back();
- }
- }
-
-
- /*
- def merge_initial_ops(seq1, seq2)
- ops1, ops2 = [], []
- ops1 << seq1.shift while seq1.first.is_a?(String)
- ops2 << seq2.shift while seq2.first.is_a?(String)
-
- newline = false
- newline ||= !!ops1.shift if ops1.first == "\n"
- newline ||= !!ops2.shift if ops2.first == "\n"
-
- # If neither sequence is a subsequence of the other, they cannot be
- # merged successfully
- lcs = Sass::Util.lcs(ops1, ops2)
- return unless lcs == ops1 || lcs == ops2
- return (newline ? ["\n"] : []) + (ops1.size > ops2.size ? ops1 : ops2)
- end
- */
- static Node mergeInitialOps(Node& seq1, Node& seq2) {
- Node ops1 = Node::createCollection();
- Node ops2 = Node::createCollection();
-
- getAndRemoveInitialOps(seq1, ops1);
- getAndRemoveInitialOps(seq2, ops2);
-
- // TODO: Do we have this information available to us?
- // newline = false
- // newline ||= !!ops1.shift if ops1.first == "\n"
- // newline ||= !!ops2.shift if ops2.first == "\n"
-
- // If neither sequence is a subsequence of the other, they cannot be merged successfully
- DefaultLcsComparator lcsDefaultComparator;
- Node opsLcs = lcs(ops1, ops2, lcsDefaultComparator);
-
- if (!(opsLcs == ops1 || opsLcs == ops2)) {
- return Node::createNil();
- }
-
- // TODO: more newline logic
- // return (newline ? ["\n"] : []) + (ops1.size > ops2.size ? ops1 : ops2)
-
- return (ops1.collection()->size() > ops2.collection()->size() ? ops1 : ops2);
- }
-
-
- /*
- def merge_final_ops(seq1, seq2, res = [])
-
-
- # This code looks complicated, but it's actually just a bunch of special
- # cases for interactions between different combinators.
- op1, op2 = ops1.first, ops2.first
- if op1 && op2
- sel1 = seq1.pop
- sel2 = seq2.pop
- if op1 == '~' && op2 == '~'
- if sel1.superselector?(sel2)
- res.unshift sel2, '~'
- elsif sel2.superselector?(sel1)
- res.unshift sel1, '~'
- else
- merged = sel1.unify(sel2.members, sel2.subject?)
- res.unshift [
- [sel1, '~', sel2, '~'],
- [sel2, '~', sel1, '~'],
- ([merged, '~'] if merged)
- ].compact
- end
- elsif (op1 == '~' && op2 == '+') || (op1 == '+' && op2 == '~')
- if op1 == '~'
- tilde_sel, plus_sel = sel1, sel2
- else
- tilde_sel, plus_sel = sel2, sel1
- end
-
- if tilde_sel.superselector?(plus_sel)
- res.unshift plus_sel, '+'
- else
- merged = plus_sel.unify(tilde_sel.members, tilde_sel.subject?)
- res.unshift [
- [tilde_sel, '~', plus_sel, '+'],
- ([merged, '+'] if merged)
- ].compact
- end
- elsif op1 == '>' && %w[~ +].include?(op2)
- res.unshift sel2, op2
- seq1.push sel1, op1
- elsif op2 == '>' && %w[~ +].include?(op1)
- res.unshift sel1, op1
- seq2.push sel2, op2
- elsif op1 == op2
- return unless merged = sel1.unify(sel2.members, sel2.subject?)
- res.unshift merged, op1
- else
- # Unknown selector combinators can't be unified
- return
- end
- return merge_final_ops(seq1, seq2, res)
- elsif op1
- seq2.pop if op1 == '>' && seq2.last && seq2.last.superselector?(seq1.last)
- res.unshift seq1.pop, op1
- return merge_final_ops(seq1, seq2, res)
- else # op2
- seq1.pop if op2 == '>' && seq1.last && seq1.last.superselector?(seq2.last)
- res.unshift seq2.pop, op2
- return merge_final_ops(seq1, seq2, res)
- end
- end
- */
- static Node mergeFinalOps(Node& seq1, Node& seq2, Node& res) {
-
- Node ops1 = Node::createCollection();
- Node ops2 = Node::createCollection();
-
- getAndRemoveFinalOps(seq1, ops1);
- getAndRemoveFinalOps(seq2, ops2);
-
- // TODO: do we have newlines to remove?
- // ops1.reject! {|o| o == "\n"}
- // ops2.reject! {|o| o == "\n"}
-
- if (ops1.collection()->empty() && ops2.collection()->empty()) {
- return res;
- }
-
- if (ops1.collection()->size() > 1 || ops2.collection()->size() > 1) {
- DefaultLcsComparator lcsDefaultComparator;
- Node opsLcs = lcs(ops1, ops2, lcsDefaultComparator);
-
- // If there are multiple operators, something hacky's going on. If one is a supersequence of the other, use that, otherwise give up.
-
- if (!(opsLcs == ops1 || opsLcs == ops2)) {
- return Node::createNil();
- }
-
- if (ops1.collection()->size() > ops2.collection()->size()) {
- res.collection()->insert(res.collection()->begin(), ops1.collection()->rbegin(), ops1.collection()->rend());
- } else {
- res.collection()->insert(res.collection()->begin(), ops2.collection()->rbegin(), ops2.collection()->rend());
- }
-
- return res;
- }
-
- if (!ops1.collection()->empty() && !ops2.collection()->empty()) {
-
- Node op1 = ops1.collection()->front();
- Node op2 = ops2.collection()->front();
-
- Node sel1 = seq1.collection()->back();
- seq1.collection()->pop_back();
-
- Node sel2 = seq2.collection()->back();
- seq2.collection()->pop_back();
-
- if (op1.combinator() == Complex_Selector::PRECEDES && op2.combinator() == Complex_Selector::PRECEDES) {
-
- if (sel1.selector()->is_superselector_of(sel2.selector())) {
-
- res.collection()->push_front(op1 /*PRECEDES - could have been op2 as well*/);
- res.collection()->push_front(sel2);
-
- } else if (sel2.selector()->is_superselector_of(sel1.selector())) {
-
- res.collection()->push_front(op1 /*PRECEDES - could have been op2 as well*/);
- res.collection()->push_front(sel1);
-
- } else {
-
- DEBUG_PRINTLN(ALL, "sel1: " << sel1)
- DEBUG_PRINTLN(ALL, "sel2: " << sel2)
-
- Complex_Selector_Obj pMergedWrapper = SASS_MEMORY_CLONE(sel1.selector()); // Clone the Complex_Selector to get back to something we can transform to a node once we replace the head with the unification result
- // TODO: does subject matter? Ruby: return unless merged = sel1.unify(sel2.members, sel2.subject?)
- Compound_Selector_Ptr pMerged = sel1.selector()->head()->unify_with(sel2.selector()->head());
- pMergedWrapper->head(pMerged);
-
- DEBUG_EXEC(ALL, printCompoundSelector(pMerged, "MERGED: "))
-
- Node newRes = Node::createCollection();
-
- Node firstPerm = Node::createCollection();
- firstPerm.collection()->push_back(sel1);
- firstPerm.collection()->push_back(Node::createCombinator(Complex_Selector::PRECEDES));
- firstPerm.collection()->push_back(sel2);
- firstPerm.collection()->push_back(Node::createCombinator(Complex_Selector::PRECEDES));
- newRes.collection()->push_back(firstPerm);
-
- Node secondPerm = Node::createCollection();
- secondPerm.collection()->push_back(sel2);
- secondPerm.collection()->push_back(Node::createCombinator(Complex_Selector::PRECEDES));
- secondPerm.collection()->push_back(sel1);
- secondPerm.collection()->push_back(Node::createCombinator(Complex_Selector::PRECEDES));
- newRes.collection()->push_back(secondPerm);
-
- if (pMerged) {
- Node mergedPerm = Node::createCollection();
- mergedPerm.collection()->push_back(Node::createSelector(pMergedWrapper));
- mergedPerm.collection()->push_back(Node::createCombinator(Complex_Selector::PRECEDES));
- newRes.collection()->push_back(mergedPerm);
- }
-
- res.collection()->push_front(newRes);
-
- DEBUG_PRINTLN(ALL, "RESULT: " << res)
-
- }
-
- } else if (((op1.combinator() == Complex_Selector::PRECEDES && op2.combinator() == Complex_Selector::ADJACENT_TO)) || ((op1.combinator() == Complex_Selector::ADJACENT_TO && op2.combinator() == Complex_Selector::PRECEDES))) {
-
- Node tildeSel = sel1;
- Node plusSel = sel2;
- Node plusOp = op2;
- if (op1.combinator() != Complex_Selector::PRECEDES) {
- tildeSel = sel2;
- plusSel = sel1;
- plusOp = op1;
- }
-
- if (tildeSel.selector()->is_superselector_of(plusSel.selector())) {
-
- res.collection()->push_front(plusOp);
- res.collection()->push_front(plusSel);
-
- } else {
-
- DEBUG_PRINTLN(ALL, "PLUS SEL: " << plusSel)
- DEBUG_PRINTLN(ALL, "TILDE SEL: " << tildeSel)
-
- Complex_Selector_Obj pMergedWrapper = SASS_MEMORY_CLONE(plusSel.selector()); // Clone the Complex_Selector to get back to something we can transform to a node once we replace the head with the unification result
- // TODO: does subject matter? Ruby: merged = plus_sel.unify(tilde_sel.members, tilde_sel.subject?)
- Compound_Selector_Ptr pMerged = plusSel.selector()->head()->unify_with(tildeSel.selector()->head());
- pMergedWrapper->head(pMerged);
-
- DEBUG_EXEC(ALL, printCompoundSelector(pMerged, "MERGED: "))
-
- Node newRes = Node::createCollection();
-
- Node firstPerm = Node::createCollection();
- firstPerm.collection()->push_back(tildeSel);
- firstPerm.collection()->push_back(Node::createCombinator(Complex_Selector::PRECEDES));
- firstPerm.collection()->push_back(plusSel);
- firstPerm.collection()->push_back(Node::createCombinator(Complex_Selector::ADJACENT_TO));
- newRes.collection()->push_back(firstPerm);
-
- if (pMerged) {
- Node mergedPerm = Node::createCollection();
- mergedPerm.collection()->push_back(Node::createSelector(pMergedWrapper));
- mergedPerm.collection()->push_back(Node::createCombinator(Complex_Selector::ADJACENT_TO));
- newRes.collection()->push_back(mergedPerm);
- }
-
- res.collection()->push_front(newRes);
-
- DEBUG_PRINTLN(ALL, "RESULT: " << res)
-
- }
- } else if (op1.combinator() == Complex_Selector::PARENT_OF && (op2.combinator() == Complex_Selector::PRECEDES || op2.combinator() == Complex_Selector::ADJACENT_TO)) {
-
- res.collection()->push_front(op2);
- res.collection()->push_front(sel2);
-
- seq1.collection()->push_back(sel1);
- seq1.collection()->push_back(op1);
-
- } else if (op2.combinator() == Complex_Selector::PARENT_OF && (op1.combinator() == Complex_Selector::PRECEDES || op1.combinator() == Complex_Selector::ADJACENT_TO)) {
-
- res.collection()->push_front(op1);
- res.collection()->push_front(sel1);
-
- seq2.collection()->push_back(sel2);
- seq2.collection()->push_back(op2);
-
- } else if (op1.combinator() == op2.combinator()) {
-
- DEBUG_PRINTLN(ALL, "sel1: " << sel1)
- DEBUG_PRINTLN(ALL, "sel2: " << sel2)
-
- Complex_Selector_Obj pMergedWrapper = SASS_MEMORY_CLONE(sel1.selector()); // Clone the Complex_Selector to get back to something we can transform to a node once we replace the head with the unification result
- // TODO: does subject matter? Ruby: return unless merged = sel1.unify(sel2.members, sel2.subject?)
- Compound_Selector_Ptr pMerged = sel1.selector()->head()->unify_with(sel2.selector()->head());
- pMergedWrapper->head(pMerged);
-
- DEBUG_EXEC(ALL, printCompoundSelector(pMerged, "MERGED: "))
-
- if (!pMerged) {
- return Node::createNil();
- }
-
- res.collection()->push_front(op1);
- res.collection()->push_front(Node::createSelector(pMergedWrapper));
-
- DEBUG_PRINTLN(ALL, "RESULT: " << res)
-
- } else {
- return Node::createNil();
- }
-
- return mergeFinalOps(seq1, seq2, res);
-
- } else if (!ops1.collection()->empty()) {
-
- Node op1 = ops1.collection()->front();
-
- if (op1.combinator() == Complex_Selector::PARENT_OF && !seq2.collection()->empty() && seq2.collection()->back().selector()->is_superselector_of(seq1.collection()->back().selector())) {
- seq2.collection()->pop_back();
- }
-
- // TODO: consider unshift(NodeCollection, Node)
- res.collection()->push_front(op1);
- res.collection()->push_front(seq1.collection()->back());
- seq1.collection()->pop_back();
-
- return mergeFinalOps(seq1, seq2, res);
-
- } else { // !ops2.collection()->empty()
-
- Node op2 = ops2.collection()->front();
-
- if (op2.combinator() == Complex_Selector::PARENT_OF && !seq1.collection()->empty() && seq1.collection()->back().selector()->is_superselector_of(seq2.collection()->back().selector())) {
- seq1.collection()->pop_back();
- }
-
- res.collection()->push_front(op2);
- res.collection()->push_front(seq2.collection()->back());
- seq2.collection()->pop_back();
-
- return mergeFinalOps(seq1, seq2, res);
-
- }
-
- }
-
-
- /*
- This is the equivalent of ruby's Sequence.subweave.
-
- Here is the original subweave code for reference during porting.
-
- def subweave(seq1, seq2)
- return [seq2] if seq1.empty?
- return [seq1] if seq2.empty?
-
- seq1, seq2 = seq1.dup, seq2.dup
- return unless init = merge_initial_ops(seq1, seq2)
- return unless fin = merge_final_ops(seq1, seq2)
- seq1 = group_selectors(seq1)
- seq2 = group_selectors(seq2)
- lcs = Sass::Util.lcs(seq2, seq1) do |s1, s2|
- next s1 if s1 == s2
- next unless s1.first.is_a?(SimpleSequence) && s2.first.is_a?(SimpleSequence)
- next s2 if parent_superselector?(s1, s2)
- next s1 if parent_superselector?(s2, s1)
- end
-
- diff = [[init]]
- until lcs.empty?
- diff << chunks(seq1, seq2) {|s| parent_superselector?(s.first, lcs.first)} << [lcs.shift]
- seq1.shift
- seq2.shift
- end
- diff << chunks(seq1, seq2) {|s| s.empty?}
- diff += fin.map {|sel| sel.is_a?(Array) ? sel : [sel]}
- diff.reject! {|c| c.empty?}
-
- result = Sass::Util.paths(diff).map {|p| p.flatten}.reject {|p| path_has_two_subjects?(p)}
-
- result
- end
- */
- Node subweave(Node& one, Node& two) {
- // Check for the simple cases
- if (one.collection()->size() == 0) {
- Node out = Node::createCollection();
- out.collection()->push_back(two);
- return out;
- }
- if (two.collection()->size() == 0) {
- Node out = Node::createCollection();
- out.collection()->push_back(one);
- return out;
- }
-
- Node seq1 = Node::createCollection();
- seq1.plus(one);
- Node seq2 = Node::createCollection();
- seq2.plus(two);
-
- DEBUG_PRINTLN(SUBWEAVE, "SUBWEAVE ONE: " << seq1)
- DEBUG_PRINTLN(SUBWEAVE, "SUBWEAVE TWO: " << seq2)
-
- Node init = mergeInitialOps(seq1, seq2);
- if (init.isNil()) {
- return Node::createNil();
- }
-
- DEBUG_PRINTLN(SUBWEAVE, "INIT: " << init)
-
- Node res = Node::createCollection();
- Node fin = mergeFinalOps(seq1, seq2, res);
- if (fin.isNil()) {
- return Node::createNil();
- }
-
- DEBUG_PRINTLN(SUBWEAVE, "FIN: " << fin)
-
-
- // Moving this line up since fin isn't modified between now and when it happened before
- // fin.map {|sel| sel.is_a?(Array) ? sel : [sel]}
-
- for (NodeDeque::iterator finIter = fin.collection()->begin(), finEndIter = fin.collection()->end();
- finIter != finEndIter; ++finIter) {
-
- Node& childNode = *finIter;
-
- if (!childNode.isCollection()) {
- Node wrapper = Node::createCollection();
- wrapper.collection()->push_back(childNode);
- childNode = wrapper;
- }
-
- }
-
- DEBUG_PRINTLN(SUBWEAVE, "FIN MAPPED: " << fin)
-
-
-
- Node groupSeq1 = groupSelectors(seq1);
- DEBUG_PRINTLN(SUBWEAVE, "SEQ1: " << groupSeq1)
-
- Node groupSeq2 = groupSelectors(seq2);
- DEBUG_PRINTLN(SUBWEAVE, "SEQ2: " << groupSeq2)
-
-
- ComplexSelectorDeque groupSeq1Converted;
- nodeToComplexSelectorDeque(groupSeq1, groupSeq1Converted);
-
- ComplexSelectorDeque groupSeq2Converted;
- nodeToComplexSelectorDeque(groupSeq2, groupSeq2Converted);
-
- ComplexSelectorDeque out;
- LcsCollectionComparator collectionComparator;
- lcs(groupSeq2Converted, groupSeq1Converted, collectionComparator, out);
- Node seqLcs = complexSelectorDequeToNode(out);
-
- DEBUG_PRINTLN(SUBWEAVE, "SEQLCS: " << seqLcs)
-
-
- Node initWrapper = Node::createCollection();
- initWrapper.collection()->push_back(init);
- Node diff = Node::createCollection();
- diff.collection()->push_back(initWrapper);
-
- DEBUG_PRINTLN(SUBWEAVE, "DIFF INIT: " << diff)
-
-
- while (!seqLcs.collection()->empty()) {
- ParentSuperselectorChunker superselectorChunker(seqLcs);
- Node chunksResult = chunks(groupSeq1, groupSeq2, superselectorChunker);
- diff.collection()->push_back(chunksResult);
-
- Node lcsWrapper = Node::createCollection();
- lcsWrapper.collection()->push_back(seqLcs.collection()->front());
- seqLcs.collection()->pop_front();
- diff.collection()->push_back(lcsWrapper);
-
- if (groupSeq1.collection()->size()) groupSeq1.collection()->pop_front();
- if (groupSeq2.collection()->size()) groupSeq2.collection()->pop_front();
- }
-
- DEBUG_PRINTLN(SUBWEAVE, "DIFF POST LCS: " << diff)
-
-
- DEBUG_PRINTLN(SUBWEAVE, "CHUNKS: ONE=" << groupSeq1 << " TWO=" << groupSeq2)
-
-
- SubweaveEmptyChunker emptyChunker;
- Node chunksResult = chunks(groupSeq1, groupSeq2, emptyChunker);
- diff.collection()->push_back(chunksResult);
-
-
- DEBUG_PRINTLN(SUBWEAVE, "DIFF POST CHUNKS: " << diff)
-
-
- diff.collection()->insert(diff.collection()->end(), fin.collection()->begin(), fin.collection()->end());
-
- DEBUG_PRINTLN(SUBWEAVE, "DIFF POST FIN MAPPED: " << diff)
-
- // JMA - filter out the empty nodes (use a new collection, since iterator erase() invalidates the old collection)
- Node diffFiltered = Node::createCollection();
- for (NodeDeque::iterator diffIter = diff.collection()->begin(), diffEndIter = diff.collection()->end();
- diffIter != diffEndIter; ++diffIter) {
- Node& node = *diffIter;
- if (node.collection() && !node.collection()->empty()) {
- diffFiltered.collection()->push_back(node);
- }
- }
- diff = diffFiltered;
-
- DEBUG_PRINTLN(SUBWEAVE, "DIFF POST REJECT: " << diff)
-
-
- Node pathsResult = paths(diff);
-
- DEBUG_PRINTLN(SUBWEAVE, "PATHS: " << pathsResult)
-
-
- // We're flattening in place
- for (NodeDeque::iterator pathsIter = pathsResult.collection()->begin(), pathsEndIter = pathsResult.collection()->end();
- pathsIter != pathsEndIter; ++pathsIter) {
-
- Node& child = *pathsIter;
- child = flatten(child);
- }
-
- DEBUG_PRINTLN(SUBWEAVE, "FLATTENED: " << pathsResult)
-
-
- /*
- TODO: implement
- rejected = mapped.reject {|p| path_has_two_subjects?(p)}
- $stderr.puts "REJECTED: #{rejected}"
- */
-
-
- return pathsResult;
-
- }
- /*
- // disabled to avoid clang warning [-Wunused-function]
- static Node subweaveNaive(const Node& one, const Node& two) {
- Node out = Node::createCollection();
-
- // Check for the simple cases
- if (one.isNil()) {
- out.collection()->push_back(two.klone());
- } else if (two.isNil()) {
- out.collection()->push_back(one.klone());
- } else {
- // Do the naive implementation. pOne = A B and pTwo = C D ...yields... A B C D and C D A B
- // See https://gist.github.com/nex3/7609394 for details.
-
- Node firstPerm = one.klone();
- Node twoCloned = two.klone();
- firstPerm.plus(twoCloned);
- out.collection()->push_back(firstPerm);
-
- Node secondPerm = two.klone();
- Node oneCloned = one.klone();
- secondPerm.plus(oneCloned );
- out.collection()->push_back(secondPerm);
- }
-
- return out;
- }
- */
-
-
- /*
- This is the equivalent of ruby's Sequence.weave.
-
- The following is the modified version of the ruby code that was more portable to C++. You
- should be able to drop it into ruby 3.2.19 and get the same results from ruby sass.
-
- def weave(path)
- # This function works by moving through the selector path left-to-right,
- # building all possible prefixes simultaneously. These prefixes are
- # `befores`, while the remaining parenthesized suffixes is `afters`.
- befores = [[]]
- afters = path.dup
-
- until afters.empty?
- current = afters.shift.dup
- last_current = [current.pop]
-
- tempResult = []
-
- for before in befores do
- sub = subweave(before, current)
- if sub.nil?
- next
- end
-
- for seqs in sub do
- tempResult.push(seqs + last_current)
- end
- end
-
- befores = tempResult
-
- end
-
- return befores
- end
- */
- /*
- def weave(path)
- befores = [[]]
- afters = path.dup
-
- until afters.empty?
- current = afters.shift.dup
-
- last_current = [current.pop]
-
-
- tempResult = []
-
- for before in befores do
- sub = subweave(before, current)
-
- if sub.nil?
- next []
- end
-
-
- for seqs in sub do
- toPush = seqs + last_current
-
- tempResult.push(seqs + last_current)
- end
-
- end
-
- befores = tempResult
-
- end
-
- return befores
- end
- */
- Node Extend::weave(Node& path) {
-
- DEBUG_PRINTLN(WEAVE, "WEAVE: " << path)
-
- Node befores = Node::createCollection();
- befores.collection()->push_back(Node::createCollection());
-
- Node afters = Node::createCollection();
- afters.plus(path);
-
- while (!afters.collection()->empty()) {
- Node current = afters.collection()->front().klone();
- afters.collection()->pop_front();
- DEBUG_PRINTLN(WEAVE, "CURRENT: " << current)
- if (current.collection()->size() == 0) continue;
-
- Node last_current = Node::createCollection();
- last_current.collection()->push_back(current.collection()->back());
- current.collection()->pop_back();
- DEBUG_PRINTLN(WEAVE, "CURRENT POST POP: " << current)
- DEBUG_PRINTLN(WEAVE, "LAST CURRENT: " << last_current)
-
- Node tempResult = Node::createCollection();
-
- for (NodeDeque::iterator beforesIter = befores.collection()->begin(), beforesEndIter = befores.collection()->end(); beforesIter != beforesEndIter; beforesIter++) {
- Node& before = *beforesIter;
-
- Node sub = subweave(before, current);
-
- DEBUG_PRINTLN(WEAVE, "SUB: " << sub)
-
- if (sub.isNil()) {
- return Node::createCollection();
- }
-
- for (NodeDeque::iterator subIter = sub.collection()->begin(), subEndIter = sub.collection()->end(); subIter != subEndIter; subIter++) {
- Node& seqs = *subIter;
-
- Node toPush = Node::createCollection();
- toPush.plus(seqs);
- toPush.plus(last_current);
-
- // move line feed from inner to outer selector (very hacky indeed)
- if (last_current.collection() && last_current.collection()->front().selector()) {
- toPush.got_line_feed = last_current.collection()->front().got_line_feed;
- last_current.collection()->front().selector()->has_line_feed(false);
- last_current.collection()->front().got_line_feed = false;
- }
-
- tempResult.collection()->push_back(toPush);
-
- }
- }
-
- befores = tempResult;
-
- }
-
- return befores;
- }
-
-
-
- /*
- This is the equivalent of ruby's SimpleSequence.do_extend.
-
- // TODO: I think I have some modified ruby code to put here. Check.
- */
- /*
- ISSUES:
- - Previous TODO: Do we need to group the results by extender?
- - What does subject do in?: next unless unified = seq.members.last.unify(self_without_sel, subject?)
- - IMPROVEMENT: The search for uniqueness at the end is not ideal since it's has to loop over everything...
- - IMPROVEMENT: Check if the final search for uniqueness is doing anything that extendComplexSelector isn't already doing...
- */
- template<typename KeyType>
- class GroupByToAFunctor {
- public:
- KeyType operator()(SubSetMapPair& extPair) const {
- Complex_Selector_Obj pSelector = extPair.first;
- return pSelector;
- }
- };
- Node Extend::extendCompoundSelector(Compound_Selector_Ptr pSelector, CompoundSelectorSet& seen, bool isReplace) {
-
- /* this turned out to be too much overhead
- probably due to holding a "Node" object
- // check if we already extended this selector
- // we can do this since subset_map is "static"
- auto memoized = memoizeCompound.find(pSelector);
- if (memoized != memoizeCompound.end()) {
- return memoized->second.klone();
- }
- */
-
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pSelector, "EXTEND COMPOUND: "))
- // TODO: Ruby has another loop here to skip certain members?
-
- // let RESULTS be an empty list of complex selectors
- Node results = Node::createCollection();
- // extendedSelectors.got_line_feed = true;
-
- SubSetMapPairs entries = subset_map.get_v(pSelector);
-
- GroupByToAFunctor<Complex_Selector_Obj> extPairKeyFunctor;
- SubSetMapResults arr;
- group_by_to_a(entries, extPairKeyFunctor, arr);
-
- SubSetMapLookups holder;
-
- // for each (EXTENDER, TARGET) in MAP.get(COMPOUND):
- for (SubSetMapResult& groupedPair : arr) {
-
- Complex_Selector_Obj seq = groupedPair.first;
- SubSetMapPairs& group = groupedPair.second;
-
- DEBUG_EXEC(EXTEND_COMPOUND, printComplexSelector(seq, "SEQ: "))
-
- Compound_Selector_Obj pSels = SASS_MEMORY_NEW(Compound_Selector, pSelector->pstate());
- for (SubSetMapPair& pair : group) {
- pair.second->extended(true);
- pSels->concat(pair.second);
- }
-
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pSels, "SELS: "))
-
- // The selector up to where the @extend is (ie, the thing to merge)
- Complex_Selector_Ptr pExtComplexSelector = seq;
-
- // TODO: This can return a Compound_Selector with no elements. Should that just be returning NULL?
- // RUBY: self_without_sel = Sass::Util.array_minus(members, sels)
- Compound_Selector_Obj pSelectorWithoutExtendSelectors = pSelector->minus(pSels);
-
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pSelector, "MEMBERS: "))
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pSelectorWithoutExtendSelectors, "SELF_WO_SEL: "))
-
- Compound_Selector_Obj pInnermostCompoundSelector = pExtComplexSelector->last()->head();
-
- if (!pInnermostCompoundSelector) {
- pInnermostCompoundSelector = SASS_MEMORY_NEW(Compound_Selector, pSelector->pstate());
- }
- Compound_Selector_Obj pUnifiedSelector = pInnermostCompoundSelector->unify_with(pSelectorWithoutExtendSelectors);
-
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pInnermostCompoundSelector, "LHS: "))
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pSelectorWithoutExtendSelectors, "RHS: "))
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pUnifiedSelector, "UNIFIED: "))
-
- // RUBY: next unless unified
- if (!pUnifiedSelector || pUnifiedSelector->length() == 0) {
- continue;
- }
-
- // TODO: implement the parent directive match (if necessary based on test failures)
- // next if group.map {|e, _| check_directives_match!(e, parent_directives)}.none?
-
- // TODO: This seems a little fishy to me. See if it causes any problems. From the ruby, we should be able to just
- // get rid of the last Compound_Selector and replace it with this one. I think the reason this code is more
- // complex is that Complex_Selector contains a combinator, but in ruby combinators have already been filtered
- // out and aren't operated on.
- Complex_Selector_Obj pNewSelector = SASS_MEMORY_CLONE(pExtComplexSelector); // ->first();
-
- Complex_Selector_Obj pNewInnerMost = SASS_MEMORY_NEW(Complex_Selector, pSelector->pstate(), Complex_Selector::ANCESTOR_OF, pUnifiedSelector, NULL);
-
- Complex_Selector::Combinator combinator = pNewSelector->clear_innermost();
- pNewSelector->set_innermost(pNewInnerMost, combinator);
-
-#ifdef DEBUG
- ComplexSelectorSet debugSet;
- debugSet = pNewSelector->sources();
- if (debugSet.size() > 0) {
- throw std::runtime_error("The new selector should start with no sources. Something needs to be cloned to fix this.");
- }
- debugSet = pExtComplexSelector->sources();
- if (debugSet.size() > 0) {
- throw std::runtime_error("The extension selector from our subset map should not have sources. These will bleed to the new selector. Something needs to be cloned to fix this.");
- }
-#endif
-
-
- // if (pSelector && pSelector->has_line_feed()) pNewInnerMost->has_line_feed(true);
- // Set the sources on our new Complex_Selector to the sources of this simple sequence plus the thing we're extending.
- DEBUG_PRINTLN(EXTEND_COMPOUND, "SOURCES SETTING ON NEW SEQ: " << complexSelectorToNode(pNewSelector))
-
- DEBUG_EXEC(EXTEND_COMPOUND, ComplexSelectorSet oldSet = pNewSelector->sources(); printSourcesSet(oldSet, "SOURCES NEW SEQ BEGIN: "))
-
- // I actually want to create a copy here (performance!)
- ComplexSelectorSet newSourcesSet = pSelector->sources(); // XXX
- DEBUG_EXEC(EXTEND_COMPOUND, printSourcesSet(newSourcesSet, "SOURCES THIS EXTEND: "))
-
- newSourcesSet.insert(pExtComplexSelector);
- DEBUG_EXEC(EXTEND_COMPOUND, printSourcesSet(newSourcesSet, "SOURCES WITH NEW SOURCE: "))
-
- // RUBY: new_seq.add_sources!(sources + [seq])
- pNewSelector->addSources(newSourcesSet);
-
- DEBUG_EXEC(EXTEND_COMPOUND, ComplexSelectorSet newSet = pNewSelector->sources(); printSourcesSet(newSet, "SOURCES ON NEW SELECTOR AFTER ADD: "))
- DEBUG_EXEC(EXTEND_COMPOUND, printSourcesSet(pSelector->sources(), "SOURCES THIS EXTEND WHICH SHOULD BE SAME STILL: "))
-
-
- if (pSels->has_line_feed()) pNewSelector->has_line_feed(true);
-
- holder.push_back(std::make_pair(pSels, pNewSelector));
- }
-
-
- for (SubSetMapLookup& pair : holder) {
-
- Compound_Selector_Obj pSels = pair.first;
- Complex_Selector_Obj pNewSelector = pair.second;
-
-
- // RUBY??: next [] if seen.include?(sels)
- if (seen.find(pSels) != seen.end()) {
- continue;
- }
-
-
- CompoundSelectorSet recurseSeen(seen);
- recurseSeen.insert(pSels);
-
-
- DEBUG_PRINTLN(EXTEND_COMPOUND, "RECURSING DO EXTEND: " << complexSelectorToNode(pNewSelector))
- Node recurseExtendedSelectors = extendComplexSelector(pNewSelector, recurseSeen, isReplace, false); // !:isOriginal
-
- DEBUG_PRINTLN(EXTEND_COMPOUND, "RECURSING DO EXTEND RETURN: " << recurseExtendedSelectors)
-
- for (NodeDeque::iterator iterator = recurseExtendedSelectors.collection()->begin(), endIterator = recurseExtendedSelectors.collection()->end();
- iterator != endIterator; ++iterator) {
- Node newSelector = *iterator;
-
-// DEBUG_PRINTLN(EXTEND_COMPOUND, "EXTENDED AT THIS POINT: " << results)
-// DEBUG_PRINTLN(EXTEND_COMPOUND, "SELECTOR EXISTS ALREADY: " << newSelector << " " << results.contains(newSelector, false /*simpleSelectorOrderDependent*/));
-
- if (!results.contains(newSelector)) {
-// DEBUG_PRINTLN(EXTEND_COMPOUND, "ADDING NEW SELECTOR")
- results.collection()->push_back(newSelector);
- }
- }
- }
-
- DEBUG_EXEC(EXTEND_COMPOUND, printCompoundSelector(pSelector, "EXTEND COMPOUND END: "))
-
- // this turned out to be too much overhead
- // memory results in a map table - since extending is very expensive
- // memoizeCompound.insert(std::pair<Compound_Selector_Obj, Node>(pSelector, results));
-
- return results;
- }
-
-
- // check if selector has something to be extended by subset_map
- bool Extend::complexSelectorHasExtension(Complex_Selector_Ptr selector, CompoundSelectorSet& seen) {
-
- bool hasExtension = false;
-
- Complex_Selector_Obj pIter = selector;
-
- while (!hasExtension && pIter) {
- Compound_Selector_Obj pHead = pIter->head();
-
- if (pHead) {
- SubSetMapPairs entries = subset_map.get_v(pHead);
- for (SubSetMapPair ext : entries) {
- // check if both selectors have the same media block parent
- // if (ext.first->media_block() == pComplexSelector->media_block()) continue;
- if (ext.second->media_block() == 0) continue;
- if (pHead->media_block() &&
- ext.second->media_block()->media_queries() &&
- pHead->media_block()->media_queries()
- ) {
- std::string query_left(ext.second->media_block()->media_queries()->to_string());
- std::string query_right(pHead->media_block()->media_queries()->to_string());
- if (query_left == query_right) continue;
- }
-
- // fail if one goes across media block boundaries
- std::stringstream err;
- std::string cwd(Sass::File::get_cwd());
- ParserState pstate(ext.second->pstate());
- std::string rel_path(Sass::File::abs2rel(pstate.path, cwd, cwd));
- err << "You may not @extend an outer selector from within @media.\n";
- err << "You may only @extend selectors within the same directive.\n";
- err << "From \"@extend " << ext.second->to_string() << "\"";
- err << " on line " << pstate.line+1 << " of " << rel_path << "\n";
- error(err.str(), selector->pstate(), eval->exp.traces);
- }
- if (entries.size() > 0) hasExtension = true;
- }
-
- pIter = pIter->tail();
- }
-
- return hasExtension;
- }
-
-
- /*
- This is the equivalent of ruby's Sequence.do_extend.
-
- // TODO: I think I have some modified ruby code to put here. Check.
- */
- /*
- ISSUES:
- - check to automatically include combinators doesn't transfer over to libsass' data model where
- the combinator and compound selector are one unit
- next [[sseq_or_op]] unless sseq_or_op.is_a?(SimpleSequence)
- */
- Node Extend::extendComplexSelector(Complex_Selector_Ptr selector, CompoundSelectorSet& seen, bool isReplace, bool isOriginal) {
-
- // check if we already extended this selector
- // we can do this since subset_map is "static"
- auto memoized = memoizeComplex.find(selector);
- if (memoized != memoizeComplex.end()) {
- return memoized->second;
- }
-
- // convert the input selector to extend node format
- Node complexSelector = complexSelectorToNode(selector);
- DEBUG_PRINTLN(EXTEND_COMPLEX, "EXTEND COMPLEX: " << complexSelector)
-
- // let CHOICES be an empty list of selector-lists
- // create new collection to hold the results
- Node choices = Node::createCollection();
-
- // for each compound selector COMPOUND in COMPLEX:
- for (Node& sseqOrOp : *complexSelector.collection()) {
-
- DEBUG_PRINTLN(EXTEND_COMPLEX, "LOOP: " << sseqOrOp)
-
- // If it's not a selector (meaning it's a combinator), just include it automatically
- // RUBY: next [[sseq_or_op]] unless sseq_or_op.is_a?(SimpleSequence)
- if (!sseqOrOp.isSelector()) {
- // Wrap our Combinator in two collections to match ruby. This is essentially making a collection Node
- // with one collection child. The collection child represents a Complex_Selector that is only a combinator.
- Node outer = Node::createCollection();
- Node inner = Node::createCollection();
- outer.collection()->push_back(inner);
- inner.collection()->push_back(sseqOrOp);
- choices.collection()->push_back(outer);
- continue;
- }
-
- // verified now that node is a valid selector
- Complex_Selector_Obj sseqSel = sseqOrOp.selector();
- Compound_Selector_Obj sseqHead = sseqSel->head();
-
- // let EXTENDED be extend_compound(COMPOUND, SEEN)
- // extend the compound selector against the given subset_map
- // RUBY: extended = sseq_or_op.do_extend(extends, parent_directives, replace, seen)
- Node extended = extendCompoundSelector(sseqHead, seen, isReplace); // slow(17%)!
- if (sseqOrOp.got_line_feed) extended.got_line_feed = true;
- DEBUG_PRINTLN(EXTEND_COMPLEX, "EXTENDED: " << extended)
-
- // Prepend the Compound_Selector based on the choices logic; choices seems to be extend but with a ruby
- // Array instead of a Sequence due to the member mapping: choices = extended.map {|seq| seq.members}
- // RUBY: extended.first.add_sources!([self]) if original && !has_placeholder?
- if (isOriginal && !selector->has_placeholder()) {
- ComplexSelectorSet srcset;
- srcset.insert(selector);
- sseqSel->addSources(srcset);
- // DEBUG_PRINTLN(EXTEND_COMPLEX, "ADD SOURCES: " << *pComplexSelector)
- }
-
- bool isSuperselector = false;
- // if no complex selector in EXTENDED is a superselector of COMPOUND:
- for (Node& childNode : *extended.collection()) {
- Complex_Selector_Obj pExtensionSelector = nodeToComplexSelector(childNode);
- if (pExtensionSelector->is_superselector_of(sseqSel)) {
- isSuperselector = true;
- break;
- }
- }
-
- if (!isSuperselector) {
- // add a complex selector composed only of COMPOUND to EXTENDED
- if (sseqOrOp.got_line_feed) sseqSel->has_line_feed(sseqOrOp.got_line_feed);
- extended.collection()->push_front(complexSelectorToNode(sseqSel));
- }
-
- DEBUG_PRINTLN(EXTEND_COMPLEX, "CHOICES UNSHIFTED: " << extended)
-
- // add EXTENDED to CHOICES
- // Aggregate our current extensions
- choices.collection()->push_back(extended);
- }
-
-
- DEBUG_PRINTLN(EXTEND_COMPLEX, "EXTENDED NOT EXPANDED: " << choices)
-
-
-
- // Ruby Equivalent: paths
- Node paths = Sass::paths(choices);
-
- DEBUG_PRINTLN(EXTEND_COMPLEX, "PATHS: " << paths)
-
- // let WEAVES be an empty list of selector lists
- Node weaves = Node::createCollection();
-
- // for each list of complex selectors PATH in paths(CHOICES):
- for (Node& path : *paths.collection()) {
- // add weave(PATH) to WEAVES
- Node weaved = weave(path); // slow(12%)!
- weaved.got_line_feed = path.got_line_feed;
- weaves.collection()->push_back(weaved);
- }
-
- DEBUG_PRINTLN(EXTEND_COMPLEX, "WEAVES: " << weaves)
-
- // Ruby Equivalent: trim
- Node trimmed(trim(weaves, isReplace)); // slow(19%)!
-
- DEBUG_PRINTLN(EXTEND_COMPLEX, "TRIMMED: " << trimmed)
-
- // Ruby Equivalent: flatten
- Node flattened(flatten(trimmed, 1));
-
- DEBUG_PRINTLN(EXTEND_COMPLEX, ">>>>> EXTENDED: " << extendedSelectors)
- DEBUG_PRINTLN(EXTEND_COMPLEX, "EXTEND COMPLEX END: " << complexSelector)
-
- // memory results in a map table - since extending is very expensive
- memoizeComplex.insert(std::pair<Complex_Selector_Obj, Node>(selector, flattened));
-
- // return trim(WEAVES)
- return flattened;
- }
-
-
-
- /*
- This is the equivalent of ruby's CommaSequence.do_extend.
- */
- // We get a selector list with has something to extend and a subset_map with
- // all extenders. Pick the ones that match our selectors in the list.
- Selector_List_Ptr Extend::extendSelectorList(Selector_List_Obj pSelectorList, bool isReplace, bool& extendedSomething, CompoundSelectorSet& seen) {
-
- Selector_List_Obj pNewSelectors = SASS_MEMORY_NEW(Selector_List, pSelectorList->pstate(), pSelectorList->length());
-
- // check if we already extended this selector
- // we can do this since subset_map is "static"
- auto memoized = memoizeList.find(pSelectorList);
- if (memoized != memoizeList.end()) {
- extendedSomething = true;
- return memoized->second;
- }
-
- extendedSomething = false;
- // process each comlplex selector in the selector list.
- // Find the ones that can be extended by given subset_map.
- for (size_t index = 0, length = pSelectorList->length(); index < length; index++) {
- Complex_Selector_Obj pSelector = (*pSelectorList)[index];
-
- // ruby sass seems to keep a list of things that have extensions and then only extend those. We don't currently do that.
- // Since it's not that expensive to check if an extension exists in the subset map and since it can be relatively expensive to
- // run through the extend code (which does a data model transformation), check if there is anything to extend before doing
- // the extend. We might be able to optimize extendComplexSelector, but this approach keeps us closer to ruby sass (which helps
- // when debugging).
- if (!complexSelectorHasExtension(pSelector, seen)) {
- pNewSelectors->append(pSelector);
- continue;
- }
-
- // complexSelectorHasExtension was true!
- extendedSomething = true;
-
- // now do the actual extension of the complex selector
- Node extendedSelectors = extendComplexSelector(pSelector, seen, isReplace, true);
-
- if (!pSelector->has_placeholder()) {
- Node nSelector(complexSelectorToNode(pSelector));
- if (!extendedSelectors.contains(nSelector)) {
- pNewSelectors->append(pSelector);
- continue;
- }
- }
-
- bool doReplace = isReplace;
- for (Node& childNode : *extendedSelectors.collection()) {
- // When it is a replace, skip the first one, unless there is only one
- if(doReplace && extendedSelectors.collection()->size() > 1 ) {
- doReplace = false;
- continue;
- }
- pNewSelectors->append(nodeToComplexSelector(childNode));
- }
- }
-
- Remove_Placeholders remove_placeholders;
- // it seems that we have to remove the place holders early here
- // normally we do this as the very last step (compare to ruby sass)
- pNewSelectors = remove_placeholders.remove_placeholders(pNewSelectors);
-
- // unwrap all wrapped selectors with inner lists
- for (Complex_Selector_Obj cur : pNewSelectors->elements()) {
- // process tails
- while (cur) {
- // process header
- if (cur->head() && seen.find(cur->head()) == seen.end()) {
- CompoundSelectorSet recseen(seen);
- recseen.insert(cur->head());
- // create a copy since we add multiple items if stuff get unwrapped
- Compound_Selector_Obj cpy_head = SASS_MEMORY_NEW(Compound_Selector, cur->pstate());
- for (Simple_Selector_Obj hs : *cur->head()) {
- if (Wrapped_Selector_Obj ws = Cast<Wrapped_Selector>(hs)) {
- ws->selector(SASS_MEMORY_CLONE(ws->selector()));
- if (Selector_List_Obj sl = Cast<Selector_List>(ws->selector())) {
- // special case for ruby ass
- if (sl->empty()) {
- // this seems inconsistent but it is how ruby sass seems to remove parentheses
- cpy_head->append(SASS_MEMORY_NEW(Element_Selector, hs->pstate(), ws->name()));
- }
- // has wrapped not selectors
- else if (ws->name() == ":not") {
- // extend the inner list of wrapped selector
- bool extended = false;
- Selector_List_Obj ext_sl = extendSelectorList(sl, false, extended, recseen);
- for (size_t i = 0; i < ext_sl->length(); i += 1) {
- if (Complex_Selector_Obj ext_cs = ext_sl->at(i)) {
- // create clones for wrapped selector and the inner list
- Wrapped_Selector_Obj cpy_ws = SASS_MEMORY_COPY(ws);
- Selector_List_Obj cpy_ws_sl = SASS_MEMORY_NEW(Selector_List, sl->pstate());
- // remove parent selectors from inner selector
- Compound_Selector_Obj ext_head = NULL;
- if (ext_cs->first()) ext_head = ext_cs->first()->head();
- if (ext_head && ext_head && ext_head->length() > 0) {
- cpy_ws_sl->append(ext_cs->first());
- }
- // assign list to clone
- cpy_ws->selector(cpy_ws_sl);
- // append the clone
- cpy_head->append(cpy_ws);
- }
- }
- if (eval && extended) {
- eval->exp.selector_stack.push_back(pNewSelectors);
- cpy_head->perform(eval);
- eval->exp.selector_stack.pop_back();
- }
- }
- // has wrapped selectors
- else {
- Wrapped_Selector_Obj cpy_ws = SASS_MEMORY_COPY(ws);
- Selector_List_Obj ext_sl = extendSelectorList(sl, recseen);
- cpy_ws->selector(ext_sl);
- cpy_head->append(cpy_ws);
- }
- } else {
- cpy_head->append(hs);
- }
- } else {
- cpy_head->append(hs);
- }
- }
- // replace header
- cur->head(cpy_head);
- }
- // process tail
- cur = cur->tail();
- }
- }
-
- // memory results in a map table - since extending is very expensive
- memoizeList.insert(std::pair<Selector_List_Obj, Selector_List_Obj>(pSelectorList, pNewSelectors));
-
- return pNewSelectors.detach();
-
- }
-
-
- bool shouldExtendBlock(Block_Obj b) {
-
- // If a block is empty, there's no reason to extend it since any rules placed on this block
- // won't have any output. The main benefit of this is for structures like:
- //
- // .a {
- // .b {
- // x: y;
- // }
- // }
- //
- // We end up visiting two rulesets (one with the selector .a and the other with the selector .a .b).
- // In this case, we don't want to try to pull rules onto .a since they won't get output anyway since
- // there are no child statements. However .a .b should have extensions applied.
-
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
-
- if (Cast<Ruleset>(stm)) {
- // Do nothing. This doesn't count as a statement that causes extension since we'll
- // iterate over this rule set in a future visit and try to extend it.
- }
- else {
- return true;
- }
- }
-
- return false;
-
- }
-
-
- // Extend a ruleset by extending the selectors and updating them on the ruleset. The block's rules don't need to change.
- // Every Ruleset in the whole tree is calling this function. We decide if there
- // was is @extend that matches our selector. If we find one, we will go further
- // and call the extend magic for our selector. The subset_map contains all blocks
- // where @extend was found. Pick the ones that match our selector!
- void Extend::extendObjectWithSelectorAndBlock(Ruleset_Ptr pObject) {
-
- DEBUG_PRINTLN(EXTEND_OBJECT, "FOUND SELECTOR: " << Cast<Selector_List>(pObject->selector())->to_string())
-
- // Ruby sass seems to filter nodes that don't have any content well before we get here.
- // I'm not sure the repercussions of doing so, so for now, let's just not extend things
- // that won't be output later. Profiling shows this may us 0.2% or so.
- if (!shouldExtendBlock(pObject->block())) {
- DEBUG_PRINTLN(EXTEND_OBJECT, "RETURNING WITHOUT EXTEND ATTEMPT")
- return;
- }
-
- bool extendedSomething = false;
-
- CompoundSelectorSet seen;
- Selector_List_Obj pNewSelectorList = extendSelectorList(pObject->selector(), false, extendedSomething, seen);
-
- if (extendedSomething && pNewSelectorList) {
- DEBUG_PRINTLN(EXTEND_OBJECT, "EXTEND ORIGINAL SELECTORS: " << pObject->selector()->to_string())
- DEBUG_PRINTLN(EXTEND_OBJECT, "EXTEND SETTING NEW SELECTORS: " << pNewSelectorList->to_string())
- pNewSelectorList->remove_parent_selectors();
- pObject->selector(pNewSelectorList);
- } else {
- DEBUG_PRINTLN(EXTEND_OBJECT, "EXTEND DID NOT TRY TO EXTEND ANYTHING")
- }
- }
-
- Extend::Extend(Subset_Map& ssm)
- : subset_map(ssm), eval(NULL)
- { }
-
- void Extend::setEval(Eval& e) {
- eval = &e;
- }
-
- void Extend::operator()(Block_Ptr b)
- {
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- stm->perform(this);
- }
- // do final check if everything was extended
- // we set `extended` flag on extended selectors
- if (b->is_root()) {
- // debug_subset_map(subset_map);
- for(auto const &it : subset_map.values()) {
- Complex_Selector_Ptr sel = NULL;
- Compound_Selector_Ptr ext = NULL;
- if (it.first) sel = it.first->first();
- if (it.second) ext = it.second;
- if (ext && (ext->extended() || ext->is_optional())) continue;
- std::string str_sel(sel ? sel->to_string({ NESTED, 5 }) : "NULL");
- std::string str_ext(ext ? ext->to_string({ NESTED, 5 }) : "NULL");
- // debug_ast(sel, "sel: ");
- // debug_ast(ext, "ext: ");
- error("\"" + str_sel + "\" failed to @extend \"" + str_ext + "\".\n"
- "The selector \"" + str_ext + "\" was not found.\n"
- "Use \"@extend " + str_ext + " !optional\" if the"
- " extend should be able to fail.", (ext ? ext->pstate() : NULL), eval->exp.traces);
- }
- }
-
- }
-
- void Extend::operator()(Ruleset_Ptr pRuleset)
- {
- extendObjectWithSelectorAndBlock( pRuleset );
- pRuleset->block()->perform(this);
- }
-
- void Extend::operator()(Supports_Block_Ptr pFeatureBlock)
- {
- pFeatureBlock->block()->perform(this);
- }
-
- void Extend::operator()(Media_Block_Ptr pMediaBlock)
- {
- pMediaBlock->block()->perform(this);
- }
-
- void Extend::operator()(Directive_Ptr a)
- {
- // Selector_List_Ptr ls = Cast<Selector_List>(a->selector());
- // selector_stack.push_back(ls);
- if (a->block()) a->block()->perform(this);
- // exp.selector_stack.pop_back();
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/extend.hpp b/node_modules/node-sass/src/libsass/src/extend.hpp
deleted file mode 100644
index 03042f3..0000000
--- a/node_modules/node-sass/src/libsass/src/extend.hpp
+++ /dev/null
@@ -1,86 +0,0 @@
-#ifndef SASS_EXTEND_H
-#define SASS_EXTEND_H
-
-#include <string>
-#include <set>
-
-#include "ast.hpp"
-#include "node.hpp"
-#include "eval.hpp"
-#include "operation.hpp"
-#include "subset_map.hpp"
-#include "ast_fwd_decl.hpp"
-
-namespace Sass {
-
- Node subweave(Node& one, Node& two);
-
- class Extend : public Operation_CRTP<void, Extend> {
-
- Subset_Map& subset_map;
- Eval* eval;
-
- void fallback_impl(AST_Node_Ptr n) { }
-
- private:
-
- std::unordered_map<
- Selector_List_Obj, // key
- Selector_List_Obj, // value
- HashNodes, // hasher
- CompareNodes // compare
- > memoizeList;
-
- std::unordered_map<
- Complex_Selector_Obj, // key
- Node, // value
- HashNodes, // hasher
- CompareNodes // compare
- > memoizeComplex;
-
- /* this turned out to be too much overhead
- re-evaluate once we store an ast selector
- std::unordered_map<
- Compound_Selector_Obj, // key
- Node, // value
- HashNodes, // hasher
- CompareNodes // compare
- > memoizeCompound;
- */
-
- void extendObjectWithSelectorAndBlock(Ruleset_Ptr pObject);
- Node extendComplexSelector(Complex_Selector_Ptr sel, CompoundSelectorSet& seen, bool isReplace, bool isOriginal);
- Node extendCompoundSelector(Compound_Selector_Ptr sel, CompoundSelectorSet& seen, bool isReplace);
- bool complexSelectorHasExtension(Complex_Selector_Ptr selector, CompoundSelectorSet& seen);
- Node trim(Node& seqses, bool isReplace);
- Node weave(Node& path);
-
- public:
- void setEval(Eval& eval);
- Selector_List_Ptr extendSelectorList(Selector_List_Obj pSelectorList, bool isReplace, bool& extendedSomething, CompoundSelectorSet& seen);
- Selector_List_Ptr extendSelectorList(Selector_List_Obj pSelectorList, bool isReplace = false) {
- bool extendedSomething = false;
- CompoundSelectorSet seen;
- return extendSelectorList(pSelectorList, isReplace, extendedSomething, seen);
- }
- Selector_List_Ptr extendSelectorList(Selector_List_Obj pSelectorList, CompoundSelectorSet& seen) {
- bool isReplace = false;
- bool extendedSomething = false;
- return extendSelectorList(pSelectorList, isReplace, extendedSomething, seen);
- }
- Extend(Subset_Map&);
- ~Extend() { }
-
- void operator()(Block_Ptr);
- void operator()(Ruleset_Ptr);
- void operator()(Supports_Block_Ptr);
- void operator()(Media_Block_Ptr);
- void operator()(Directive_Ptr);
-
- template <typename U>
- void fallback(U x) { return fallback_impl(x); }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/file.cpp b/node_modules/node-sass/src/libsass/src/file.cpp
deleted file mode 100644
index 32d4a7c..0000000
--- a/node_modules/node-sass/src/libsass/src/file.cpp
+++ /dev/null
@@ -1,485 +0,0 @@
-#include "sass.hpp"
-#ifdef _WIN32
-# ifdef __MINGW32__
-# ifndef off64_t
-# define off64_t _off64_t /* Workaround for http://sourceforge.net/p/mingw/bugs/2024/ */
-# endif
-# endif
-# include <direct.h>
-# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
-#else
-# include <unistd.h>
-#endif
-#include <iostream>
-#include <fstream>
-#include <cctype>
-#include <vector>
-#include <algorithm>
-#include <sys/stat.h>
-#include "file.hpp"
-#include "context.hpp"
-#include "prelexer.hpp"
-#include "utf8_string.hpp"
-#include "sass_functions.hpp"
-#include "sass2scss.h"
-
-#ifdef _WIN32
-# include <windows.h>
-
-# ifdef _MSC_VER
-# include <codecvt>
-inline static std::string wstring_to_string(const std::wstring& wstr)
-{
- std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> wchar_converter;
- return wchar_converter.to_bytes(wstr);
-}
-# else // mingw(/gcc) does not support C++11's codecvt yet.
-inline static std::string wstring_to_string(const std::wstring &wstr)
-{
- int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL);
- std::string strTo(size_needed, 0);
- WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), &strTo[0], size_needed, NULL, NULL);
- return strTo;
-}
-# endif
-#endif
-
-namespace Sass {
- namespace File {
-
- // return the current directory
- // always with forward slashes
- // always with trailing slash
- std::string get_cwd()
- {
- const size_t wd_len = 4096;
- #ifndef _WIN32
- char wd[wd_len];
- char* pwd = getcwd(wd, wd_len);
- // we should check error for more detailed info (e.g. ENOENT)
- // http://man7.org/linux/man-pages/man2/getcwd.2.html#ERRORS
- if (pwd == NULL) throw Exception::OperationError("cwd gone missing");
- std::string cwd = pwd;
- #else
- wchar_t wd[wd_len];
- wchar_t* pwd = _wgetcwd(wd, wd_len);
- if (pwd == NULL) throw Exception::OperationError("cwd gone missing");
- std::string cwd = wstring_to_string(pwd);
- //convert backslashes to forward slashes
- replace(cwd.begin(), cwd.end(), '\\', '/');
- #endif
- if (cwd[cwd.length() - 1] != '/') cwd += '/';
- return cwd;
- }
-
- // test if path exists and is a file
- bool file_exists(const std::string& path)
- {
- #ifdef _WIN32
- wchar_t resolved[32768];
- // windows unicode filepaths are encoded in utf16
- std::string abspath(join_paths(get_cwd(), path));
- std::wstring wpath(UTF_8::convert_to_utf16("\\\\?\\" + abspath));
- std::replace(wpath.begin(), wpath.end(), '/', '\\');
- DWORD rv = GetFullPathNameW(wpath.c_str(), 32767, resolved, NULL);
- if (rv > 32767) throw Exception::OperationError("Path is too long");
- if (rv == 0) throw Exception::OperationError("Path could not be resolved");
- DWORD dwAttrib = GetFileAttributesW(resolved);
- return (dwAttrib != INVALID_FILE_ATTRIBUTES &&
- (!(dwAttrib & FILE_ATTRIBUTE_DIRECTORY)));
- #else
- struct stat st_buf;
- return (stat (path.c_str(), &st_buf) == 0) &&
- (!S_ISDIR (st_buf.st_mode));
- #endif
- }
-
- // return if given path is absolute
- // works with *nix and windows paths
- bool is_absolute_path(const std::string& path)
- {
- #ifdef _WIN32
- if (path.length() >= 2 && isalpha(path[0]) && path[1] == ':') return true;
- #endif
- size_t i = 0;
- // check if we have a protocol
- if (path[i] && Prelexer::is_alpha(path[i])) {
- // skip over all alphanumeric characters
- while (path[i] && Prelexer::is_alnum(path[i])) ++i;
- i = i && path[i] == ':' ? i + 1 : 0;
- }
- return path[i] == '/';
- }
-
- // helper function to find the last directory seperator
- inline size_t find_last_folder_separator(const std::string& path, size_t limit = std::string::npos)
- {
- size_t pos;
- size_t pos_p = path.find_last_of('/', limit);
- #ifdef _WIN32
- size_t pos_w = path.find_last_of('\\', limit);
- #else
- size_t pos_w = std::string::npos;
- #endif
- if (pos_p != std::string::npos && pos_w != std::string::npos) {
- pos = std::max(pos_p, pos_w);
- }
- else if (pos_p != std::string::npos) {
- pos = pos_p;
- }
- else {
- pos = pos_w;
- }
- return pos;
- }
-
- // return only the directory part of path
- std::string dir_name(const std::string& path)
- {
- size_t pos = find_last_folder_separator(path);
- if (pos == std::string::npos) return "";
- else return path.substr(0, pos+1);
- }
-
- // return only the filename part of path
- std::string base_name(const std::string& path)
- {
- size_t pos = find_last_folder_separator(path);
- if (pos == std::string::npos) return path;
- else return path.substr(pos+1);
- }
-
- // do a logical clean up of the path
- // no physical check on the filesystem
- std::string make_canonical_path (std::string path)
- {
-
- // declarations
- size_t pos;
-
- #ifdef _WIN32
- //convert backslashes to forward slashes
- replace(path.begin(), path.end(), '\\', '/');
- #endif
-
- pos = 0; // remove all self references inside the path string
- while((pos = path.find("/./", pos)) != std::string::npos) path.erase(pos, 2);
-
- // remove all leading and trailing self references
- while(path.length() > 1 && path.substr(0, 2) == "./") path.erase(0, 2);
- while((pos = path.length()) > 1 && path.substr(pos - 2) == "/.") path.erase(pos - 2);
-
-
- size_t proto = 0;
- // check if we have a protocol
- if (path[proto] && Prelexer::is_alpha(path[proto])) {
- // skip over all alphanumeric characters
- while (path[proto] && Prelexer::is_alnum(path[proto++])) {}
- // then skip over the mandatory colon
- if (proto && path[proto] == ':') ++ proto;
- }
-
- // then skip over start slashes
- while (path[proto++] == '/') {}
-
- pos = proto; // collapse multiple delimiters into a single one
- while((pos = path.find("//", pos)) != std::string::npos) path.erase(pos, 1);
-
- return path;
-
- }
-
- // join two path segments cleanly together
- // but only if right side is not absolute yet
- std::string join_paths(std::string l, std::string r)
- {
-
- #ifdef _WIN32
- // convert Windows backslashes to URL forward slashes
- replace(l.begin(), l.end(), '\\', '/');
- replace(r.begin(), r.end(), '\\', '/');
- #endif
-
- if (l.empty()) return r;
- if (r.empty()) return l;
-
- if (is_absolute_path(r)) return r;
- if (l[l.length()-1] != '/') l += '/';
-
- // this does a logical cleanup of the right hand path
- // Note that this does collapse x/../y sections into y.
- // This is by design. If /foo on your system is a symlink
- // to /bar/baz, then /foo/../cd is actually /bar/cd,
- // not /cd as a naive ../ removal would give you.
- // will only work on leading double dot dirs on rhs
- // therefore it is safe if lhs is already resolved cwd
- while ((r.length() > 3) && ((r.substr(0, 3) == "../") || (r.substr(0, 3)) == "..\\")) {
- size_t L = l.length(), pos = find_last_folder_separator(l, L - 2);
- bool is_slash = pos + 2 == L && (l[pos+1] == '/' || l[pos+1] == '\\');
- bool is_self = pos + 3 == L && (l[pos+1] == '.');
- if (!is_self && !is_slash) r = r.substr(3);
- else if (pos == std::string::npos) break;
- l = l.substr(0, pos == std::string::npos ? pos : pos + 1);
- }
-
- return l + r;
- }
-
- std::string path_for_console(const std::string& rel_path, const std::string& abs_path, const std::string& orig_path)
- {
- // magic algorith goes here!!
-
- // if the file is outside this directory show the absolute path
- if (rel_path.substr(0, 3) == "../") {
- return orig_path;
- }
- // this seems to work most of the time
- return abs_path == orig_path ? abs_path : rel_path;
- }
-
- // create an absolute path by resolving relative paths with cwd
- std::string rel2abs(const std::string& path, const std::string& base, const std::string& cwd)
- {
- return make_canonical_path(join_paths(join_paths(cwd + "/", base + "/"), path));
- }
-
- // create a path that is relative to the given base directory
- // path and base will first be resolved against cwd to make them absolute
- std::string abs2rel(const std::string& path, const std::string& base, const std::string& cwd)
- {
-
- std::string abs_path = rel2abs(path, cwd);
- std::string abs_base = rel2abs(base, cwd);
-
- size_t proto = 0;
- // check if we have a protocol
- if (path[proto] && Prelexer::is_alpha(path[proto])) {
- // skip over all alphanumeric characters
- while (path[proto] && Prelexer::is_alnum(path[proto++])) {}
- // then skip over the mandatory colon
- if (proto && path[proto] == ':') ++ proto;
- }
-
- // distinguish between windows absolute paths and valid protocols
- // we assume that protocols must at least have two chars to be valid
- if (proto && path[proto++] == '/' && proto > 3) return path;
-
- #ifdef _WIN32
- // absolute link must have a drive letter, and we know that we
- // can only create relative links if both are on the same drive
- if (abs_base[0] != abs_path[0]) return abs_path;
- #endif
-
- std::string stripped_uri = "";
- std::string stripped_base = "";
-
- size_t index = 0;
- size_t minSize = std::min(abs_path.size(), abs_base.size());
- for (size_t i = 0; i < minSize; ++i) {
- #ifdef FS_CASE_SENSITIVE
- if (abs_path[i] != abs_base[i]) break;
- #else
- // compare the charactes in a case insensitive manner
- // windows fs is only case insensitive in ascii ranges
- if (tolower(abs_path[i]) != tolower(abs_base[i])) break;
- #endif
- if (abs_path[i] == '/') index = i + 1;
- }
- for (size_t i = index; i < abs_path.size(); ++i) {
- stripped_uri += abs_path[i];
- }
- for (size_t i = index; i < abs_base.size(); ++i) {
- stripped_base += abs_base[i];
- }
-
- size_t left = 0;
- size_t directories = 0;
- for (size_t right = 0; right < stripped_base.size(); ++right) {
- if (stripped_base[right] == '/') {
- if (stripped_base.substr(left, 2) != "..") {
- ++directories;
- }
- else if (directories > 1) {
- --directories;
- }
- else {
- directories = 0;
- }
- left = right + 1;
- }
- }
-
- std::string result = "";
- for (size_t i = 0; i < directories; ++i) {
- result += "../";
- }
- result += stripped_uri;
-
- return result;
- }
-
- // Resolution order for ambiguous imports:
- // (1) filename as given
- // (2) underscore + given
- // (3) underscore + given + extension
- // (4) given + extension
- std::vector<Include> resolve_includes(const std::string& root, const std::string& file, const std::vector<std::string>& exts)
- {
- std::string filename = join_paths(root, file);
- // split the filename
- std::string base(dir_name(file));
- std::string name(base_name(file));
- std::vector<Include> includes;
- // create full path (maybe relative)
- std::string rel_path(join_paths(base, name));
- std::string abs_path(join_paths(root, rel_path));
- if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
- // next test variation with underscore
- rel_path = join_paths(base, "_" + name);
- abs_path = join_paths(root, rel_path);
- if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
- // next test exts plus underscore
- for(auto ext : exts) {
- rel_path = join_paths(base, "_" + name + ext);
- abs_path = join_paths(root, rel_path);
- if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
- }
- // next test plain name with exts
- for(auto ext : exts) {
- rel_path = join_paths(base, name + ext);
- abs_path = join_paths(root, rel_path);
- if (file_exists(abs_path)) includes.push_back({{ rel_path, root }, abs_path });
- }
- // nothing found
- return includes;
- }
-
- std::vector<std::string> find_files(const std::string& file, const std::vector<std::string> paths)
- {
- std::vector<std::string> includes;
- for (std::string path : paths) {
- std::string abs_path(join_paths(path, file));
- if (file_exists(abs_path)) includes.push_back(abs_path);
- }
- return includes;
- }
-
- std::vector<std::string> find_files(const std::string& file, struct Sass_Compiler* compiler)
- {
- // get the last import entry to get current base directory
- // struct Sass_Options* options = sass_compiler_get_options(compiler);
- Sass_Import_Entry import = sass_compiler_get_last_import(compiler);
- const std::vector<std::string>& incs = compiler->cpp_ctx->include_paths;
- // create the vector with paths to lookup
- std::vector<std::string> paths(1 + incs.size());
- paths.push_back(dir_name(import->abs_path));
- paths.insert(paths.end(), incs.begin(), incs.end());
- // dispatch to find files in paths
- return find_files(file, paths);
- }
-
- // helper function to search one file in all include paths
- // this is normally not used internally by libsass (C-API sugar)
- std::string find_file(const std::string& file, const std::vector<std::string> paths)
- {
- if (file.empty()) return file;
- auto res = find_files(file, paths);
- return res.empty() ? "" : res.front();
- }
-
- // helper function to resolve a filename
- std::string find_include(const std::string& file, const std::vector<std::string> paths)
- {
- // search in every include path for a match
- for (size_t i = 0, S = paths.size(); i < S; ++i)
- {
- std::vector<Include> resolved(resolve_includes(paths[i], file));
- if (resolved.size()) return resolved[0].abs_path;
- }
- // nothing found
- return std::string("");
- }
-
- // try to load the given filename
- // returned memory must be freed
- // will auto convert .sass files
- char* read_file(const std::string& path)
- {
- #ifdef _WIN32
- BYTE* pBuffer;
- DWORD dwBytes;
- wchar_t resolved[32768];
- // windows unicode filepaths are encoded in utf16
- std::string abspath(join_paths(get_cwd(), path));
- std::wstring wpath(UTF_8::convert_to_utf16("\\\\?\\" + abspath));
- std::replace(wpath.begin(), wpath.end(), '/', '\\');
- DWORD rv = GetFullPathNameW(wpath.c_str(), 32767, resolved, NULL);
- if (rv > 32767) throw Exception::OperationError("Path is too long");
- if (rv == 0) throw Exception::OperationError("Path could not be resolved");
- HANDLE hFile = CreateFileW(resolved, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
- if (hFile == INVALID_HANDLE_VALUE) return 0;
- DWORD dwFileLength = GetFileSize(hFile, NULL);
- if (dwFileLength == INVALID_FILE_SIZE) return 0;
- // allocate an extra byte for the null char
- // and another one for edge-cases in lexer
- pBuffer = (BYTE*)malloc((dwFileLength+2)*sizeof(BYTE));
- ReadFile(hFile, pBuffer, dwFileLength, &dwBytes, NULL);
- pBuffer[dwFileLength+0] = '\0';
- pBuffer[dwFileLength+1] = '\0';
- CloseHandle(hFile);
- // just convert from unsigned char*
- char* contents = (char*) pBuffer;
- #else
- struct stat st;
- if (stat(path.c_str(), &st) == -1 || S_ISDIR(st.st_mode)) return 0;
- std::ifstream file(path.c_str(), std::ios::in | std::ios::binary | std::ios::ate);
- char* contents = 0;
- if (file.is_open()) {
- size_t size = file.tellg();
- // allocate an extra byte for the null char
- // and another one for edge-cases in lexer
- contents = (char*) malloc((size+2)*sizeof(char));
- file.seekg(0, std::ios::beg);
- file.read(contents, size);
- contents[size+0] = '\0';
- contents[size+1] = '\0';
- file.close();
- }
- #endif
- std::string extension;
- if (path.length() > 5) {
- extension = path.substr(path.length() - 5, 5);
- }
- for(size_t i=0; i<extension.size();++i)
- extension[i] = tolower(extension[i]);
- if (extension == ".sass" && contents != 0) {
- char * converted = sass2scss(contents, SASS2SCSS_PRETTIFY_1 | SASS2SCSS_KEEP_COMMENT);
- free(contents); // free the indented contents
- return converted; // should be freed by caller
- } else {
- return contents;
- }
- }
-
- // split a path string delimited by semicolons or colons (OS dependent)
- std::vector<std::string> split_path_list(const char* str)
- {
- std::vector<std::string> paths;
- if (str == NULL) return paths;
- // find delimiter via prelexer (return zero at end)
- const char* end = Prelexer::find_first<PATH_SEP>(str);
- // search until null delimiter
- while (end) {
- // add path from current position to delimiter
- paths.push_back(std::string(str, end - str));
- str = end + 1; // skip delimiter
- end = Prelexer::find_first<PATH_SEP>(str);
- }
- // add path from current position to end
- paths.push_back(std::string(str));
- // return back
- return paths;
- }
-
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/file.hpp b/node_modules/node-sass/src/libsass/src/file.hpp
deleted file mode 100644
index 279b9e9..0000000
--- a/node_modules/node-sass/src/libsass/src/file.hpp
+++ /dev/null
@@ -1,133 +0,0 @@
-#ifndef SASS_FILE_H
-#define SASS_FILE_H
-
-#include <string>
-#include <vector>
-
-#include "sass/context.h"
-#include "ast_fwd_decl.hpp"
-
-namespace Sass {
-
- namespace File {
-
- // return the current directory
- // always with forward slashes
- std::string get_cwd();
-
- // test if path exists and is a file
- bool file_exists(const std::string& file);
-
- // return if given path is absolute
- // works with *nix and windows paths
- bool is_absolute_path(const std::string& path);
-
- // return only the directory part of path
- std::string dir_name(const std::string& path);
-
- // return only the filename part of path
- std::string base_name(const std::string&);
-
- // do a locigal clean up of the path
- // no physical check on the filesystem
- std::string make_canonical_path (std::string path);
-
- // join two path segments cleanly together
- // but only if right side is not absolute yet
- std::string join_paths(std::string root, std::string name);
-
- // if the relative path is outside of the cwd we want want to
- // show the absolute path in console messages
- std::string path_for_console(const std::string& rel_path, const std::string& abs_path, const std::string& orig_path);
-
- // create an absolute path by resolving relative paths with cwd
- std::string rel2abs(const std::string& path, const std::string& base = ".", const std::string& cwd = get_cwd());
-
- // create a path that is relative to the given base directory
- // path and base will first be resolved against cwd to make them absolute
- std::string abs2rel(const std::string& path, const std::string& base = ".", const std::string& cwd = get_cwd());
-
- // helper function to resolve a filename
- // searching without variations in all paths
- std::string find_file(const std::string& file, struct Sass_Compiler* options);
- std::string find_file(const std::string& file, const std::vector<std::string> paths);
-
- // helper function to resolve a include filename
- // this has the original resolve logic for sass include
- std::string find_include(const std::string& file, const std::vector<std::string> paths);
-
- // split a path string delimited by semicolons or colons (OS dependent)
- std::vector<std::string> split_path_list(const char* paths);
-
- // try to load the given filename
- // returned memory must be freed
- // will auto convert .sass files
- char* read_file(const std::string& file);
-
- }
-
- // requested import
- class Importer {
- public:
- // requested import path
- std::string imp_path;
- // parent context path
- std::string ctx_path;
- // base derived from context path
- // this really just acts as a cache
- std::string base_path;
- public:
- Importer(std::string imp_path, std::string ctx_path)
- : imp_path(File::make_canonical_path(imp_path)),
- ctx_path(File::make_canonical_path(ctx_path)),
- base_path(File::dir_name(ctx_path))
- { }
- };
-
- // a resolved include (final import)
- class Include : public Importer {
- public:
- // resolved absolute path
- std::string abs_path;
- public:
- Include(const Importer& imp, std::string abs_path)
- : Importer(imp), abs_path(abs_path)
- { }
- };
-
- // a loaded resource
- class Resource {
- public:
- // the file contents
- char* contents;
- // conected sourcemap
- char* srcmap;
- public:
- Resource(char* contents, char* srcmap)
- : contents(contents), srcmap(srcmap)
- { }
- };
-
- // parsed stylesheet from loaded resource
- class StyleSheet : public Resource {
- public:
- // parsed root block
- Block_Obj root;
- public:
- StyleSheet(const Resource& res, Block_Obj root)
- : Resource(res), root(root)
- { }
- };
-
- namespace File {
-
- static std::vector<std::string> defaultExtensions = { ".scss", ".sass", ".css" };
-
- std::vector<Include> resolve_includes(const std::string& root, const std::string& file,
- const std::vector<std::string>& exts = defaultExtensions);
-
- }
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/functions.cpp b/node_modules/node-sass/src/libsass/src/functions.cpp
deleted file mode 100644
index c9999fc..0000000
--- a/node_modules/node-sass/src/libsass/src/functions.cpp
+++ /dev/null
@@ -1,2234 +0,0 @@
-#include "sass.hpp"
-#include "functions.hpp"
-#include "ast.hpp"
-#include "context.hpp"
-#include "backtrace.hpp"
-#include "parser.hpp"
-#include "constants.hpp"
-#include "inspect.hpp"
-#include "extend.hpp"
-#include "eval.hpp"
-#include "util.hpp"
-#include "expand.hpp"
-#include "operators.hpp"
-#include "utf8_string.hpp"
-#include "sass/base.h"
-#include "utf8.h"
-
-#include <cstdint>
-#include <cstdlib>
-#include <cmath>
-#include <cctype>
-#include <sstream>
-#include <string>
-#include <iomanip>
-#include <iostream>
-#include <random>
-#include <set>
-
-#ifdef __MINGW32__
-#include "windows.h"
-#include "wincrypt.h"
-#endif
-
-#define ARG(argname, argtype) get_arg<argtype>(argname, env, sig, pstate, traces)
-#define ARGM(argname, argtype, ctx) get_arg_m(argname, env, sig, pstate, traces, ctx)
-
-// return a number object (copied since we want to have reduced units)
-#define ARGN(argname) get_arg_n(argname, env, sig, pstate, traces) // Number copy
-
-// special function for weird hsla percent (10px == 10% == 10 != 0.1)
-#define ARGVAL(argname) get_arg_val(argname, env, sig, pstate, traces) // double
-
-// macros for common ranges (u mean unsigned or upper, r for full range)
-#define DARG_U_FACT(argname) get_arg_r(argname, env, sig, pstate, traces, - 0.0, 1.0) // double
-#define DARG_R_FACT(argname) get_arg_r(argname, env, sig, pstate, traces, - 1.0, 1.0) // double
-#define DARG_U_BYTE(argname) get_arg_r(argname, env, sig, pstate, traces, - 0.0, 255.0) // double
-#define DARG_R_BYTE(argname) get_arg_r(argname, env, sig, pstate, traces, - 255.0, 255.0) // double
-#define DARG_U_PRCT(argname) get_arg_r(argname, env, sig, pstate, traces, - 0.0, 100.0) // double
-#define DARG_R_PRCT(argname) get_arg_r(argname, env, sig, pstate, traces, - 100.0, 100.0) // double
-
-// macros for color related inputs (rbg and alpha/opacity values)
-#define COLOR_NUM(argname) color_num(argname, env, sig, pstate, traces) // double
-#define ALPHA_NUM(argname) alpha_num(argname, env, sig, pstate, traces) // double
-
-namespace Sass {
- using std::stringstream;
- using std::endl;
-
- Definition_Ptr make_native_function(Signature sig, Native_Function func, Context& ctx)
- {
- Parser sig_parser = Parser::from_c_str(sig, ctx, ctx.traces, ParserState("[built-in function]"));
- sig_parser.lex<Prelexer::identifier>();
- std::string name(Util::normalize_underscores(sig_parser.lexed));
- Parameters_Obj params = sig_parser.parse_parameters();
- return SASS_MEMORY_NEW(Definition,
- ParserState("[built-in function]"),
- sig,
- name,
- params,
- func,
- false);
- }
-
- Definition_Ptr make_c_function(Sass_Function_Entry c_func, Context& ctx)
- {
- using namespace Prelexer;
-
- const char* sig = sass_function_get_signature(c_func);
- Parser sig_parser = Parser::from_c_str(sig, ctx, ctx.traces, ParserState("[c function]"));
- // allow to overload generic callback plus @warn, @error and @debug with custom functions
- sig_parser.lex < alternatives < identifier, exactly <'*'>,
- exactly < Constants::warn_kwd >,
- exactly < Constants::error_kwd >,
- exactly < Constants::debug_kwd >
- > >();
- std::string name(Util::normalize_underscores(sig_parser.lexed));
- Parameters_Obj params = sig_parser.parse_parameters();
- return SASS_MEMORY_NEW(Definition,
- ParserState("[c function]"),
- sig,
- name,
- params,
- c_func,
- false, true);
- }
-
- std::string function_name(Signature sig)
- {
- std::string str(sig);
- return str.substr(0, str.find('('));
- }
-
- namespace Functions {
-
- inline void handle_utf8_error (const ParserState& pstate, Backtraces traces)
- {
- try {
- throw;
- }
- catch (utf8::invalid_code_point) {
- std::string msg("utf8::invalid_code_point");
- error(msg, pstate, traces);
- }
- catch (utf8::not_enough_room) {
- std::string msg("utf8::not_enough_room");
- error(msg, pstate, traces);
- }
- catch (utf8::invalid_utf8) {
- std::string msg("utf8::invalid_utf8");
- error(msg, pstate, traces);
- }
- catch (...) { throw; }
- }
-
- template <typename T>
- T* get_arg(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces)
- {
- // Minimal error handling -- the expectation is that built-ins will be written correctly!
- T* val = Cast<T>(env[argname]);
- if (!val) {
- std::string msg("argument `");
- msg += argname;
- msg += "` of `";
- msg += sig;
- msg += "` must be a ";
- msg += T::type_name();
- error(msg, pstate, traces);
- }
- return val;
- }
-
- Map_Ptr get_arg_m(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces, Context& ctx)
- {
- // Minimal error handling -- the expectation is that built-ins will be written correctly!
- Map_Ptr val = Cast<Map>(env[argname]);
- if (val) return val;
-
- List_Ptr lval = Cast<List>(env[argname]);
- if (lval && lval->length() == 0) return SASS_MEMORY_NEW(Map, pstate, 0);
-
- // fallback on get_arg for error handling
- val = get_arg<Map>(argname, env, sig, pstate, traces);
- return val;
- }
-
- double get_arg_r(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces, double lo, double hi)
- {
- // Minimal error handling -- the expectation is that built-ins will be written correctly!
- Number_Ptr val = get_arg<Number>(argname, env, sig, pstate, traces);
- Number tmpnr(val);
- tmpnr.reduce();
- double v = tmpnr.value();
- if (!(lo <= v && v <= hi)) {
- std::stringstream msg;
- msg << "argument `" << argname << "` of `" << sig << "` must be between ";
- msg << lo << " and " << hi;
- error(msg.str(), pstate, traces);
- }
- return v;
- }
-
- Number_Ptr get_arg_n(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces)
- {
- // Minimal error handling -- the expectation is that built-ins will be written correctly!
- Number_Ptr val = get_arg<Number>(argname, env, sig, pstate, traces);
- val = SASS_MEMORY_COPY(val);
- val->reduce();
- return val;
- }
-
- double get_arg_v(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces)
- {
- // Minimal error handling -- the expectation is that built-ins will be written correctly!
- Number_Ptr val = get_arg<Number>(argname, env, sig, pstate, traces);
- Number tmpnr(val);
- tmpnr.reduce();
- /*
- if (tmpnr.unit() == "%") {
- tmpnr.value(tmpnr.value() / 100);
- tmpnr.numerators.clear();
- } else {
- if (!tmpnr.is_unitless()) error("argument " + argname + " of `" + std::string(sig) + "` must be unitless", pstate);
- }
- */
- return tmpnr.value();
- }
-
- double get_arg_val(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces)
- {
- // Minimal error handling -- the expectation is that built-ins will be written correctly!
- Number_Ptr val = get_arg<Number>(argname, env, sig, pstate, traces);
- Number tmpnr(val);
- tmpnr.reduce();
- return tmpnr.value();
- }
-
- double color_num(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces)
- {
- Number_Ptr val = get_arg<Number>(argname, env, sig, pstate, traces);
- Number tmpnr(val);
- tmpnr.reduce();
- if (tmpnr.unit() == "%") {
- return std::min(std::max(tmpnr.value() * 255 / 100.0, 0.0), 255.0);
- } else {
- return std::min(std::max(tmpnr.value(), 0.0), 255.0);
- }
- }
-
-
- inline double alpha_num(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces) {
- Number_Ptr val = get_arg<Number>(argname, env, sig, pstate, traces);
- Number tmpnr(val);
- tmpnr.reduce();
- if (tmpnr.unit() == "%") {
- return std::min(std::max(tmpnr.value(), 0.0), 100.0);
- } else {
- return std::min(std::max(tmpnr.value(), 0.0), 1.0);
- }
- }
-
- #define ARGSEL(argname, seltype, contextualize) get_arg_sel<seltype>(argname, env, sig, pstate, traces, ctx)
-
- template <typename T>
- T get_arg_sel(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces, Context& ctx);
-
- template <>
- Selector_List_Obj get_arg_sel(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces, Context& ctx) {
- Expression_Obj exp = ARG(argname, Expression);
- if (exp->concrete_type() == Expression::NULL_VAL) {
- std::stringstream msg;
- msg << argname << ": null is not a valid selector: it must be a string,\n";
- msg << "a list of strings, or a list of lists of strings for `" << function_name(sig) << "'";
- error(msg.str(), pstate, traces);
- }
- if (String_Constant_Ptr str = Cast<String_Constant>(exp)) {
- str->quote_mark(0);
- }
- std::string exp_src = exp->to_string(ctx.c_options);
- return Parser::parse_selector(exp_src.c_str(), ctx, traces);
- }
-
- template <>
- Compound_Selector_Obj get_arg_sel(const std::string& argname, Env& env, Signature sig, ParserState pstate, Backtraces traces, Context& ctx) {
- Expression_Obj exp = ARG(argname, Expression);
- if (exp->concrete_type() == Expression::NULL_VAL) {
- std::stringstream msg;
- msg << argname << ": null is not a string for `" << function_name(sig) << "'";
- error(msg.str(), pstate, traces);
- }
- if (String_Constant_Ptr str = Cast<String_Constant>(exp)) {
- str->quote_mark(0);
- }
- std::string exp_src = exp->to_string(ctx.c_options);
- Selector_List_Obj sel_list = Parser::parse_selector(exp_src.c_str(), ctx, traces);
- if (sel_list->length() == 0) return NULL;
- Complex_Selector_Obj first = sel_list->first();
- if (!first->tail()) return first->head();
- return first->tail()->head();
- }
-
- #ifdef __MINGW32__
- uint64_t GetSeed()
- {
- HCRYPTPROV hp = 0;
- BYTE rb[8];
- CryptAcquireContext(&hp, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT);
- CryptGenRandom(hp, sizeof(rb), rb);
- CryptReleaseContext(hp, 0);
-
- uint64_t seed;
- memcpy(&seed, &rb[0], sizeof(seed));
-
- return seed;
- }
- #else
- uint64_t GetSeed()
- {
- std::random_device rd;
- return rd();
- }
- #endif
-
- // note: the performance of many implementations of
- // random_device degrades sharply once the entropy pool
- // is exhausted. For practical use, random_device is
- // generally only used to seed a PRNG such as mt19937.
- static std::mt19937 rand(static_cast<unsigned int>(GetSeed()));
-
- // features
- static std::set<std::string> features {
- "global-variable-shadowing",
- "extend-selector-pseudoclass",
- "at-error",
- "units-level-3",
- "custom-property"
- };
-
- ////////////////
- // RGB FUNCTIONS
- ////////////////
-
- inline bool special_number(String_Constant_Ptr s) {
- if (s) {
- std::string calc("calc(");
- std::string var("var(");
- std::string ss(s->value());
- return std::equal(calc.begin(), calc.end(), ss.begin()) ||
- std::equal(var.begin(), var.end(), ss.begin());
- }
- return false;
- }
-
- Signature rgb_sig = "rgb($red, $green, $blue)";
- BUILT_IN(rgb)
- {
- if (
- special_number(Cast<String_Constant>(env["$red"])) ||
- special_number(Cast<String_Constant>(env["$green"])) ||
- special_number(Cast<String_Constant>(env["$blue"]))
- ) {
- return SASS_MEMORY_NEW(String_Constant, pstate, "rgb("
- + env["$red"]->to_string()
- + ", "
- + env["$green"]->to_string()
- + ", "
- + env["$blue"]->to_string()
- + ")"
- );
- }
-
- return SASS_MEMORY_NEW(Color,
- pstate,
- COLOR_NUM("$red"),
- COLOR_NUM("$green"),
- COLOR_NUM("$blue"));
- }
-
- Signature rgba_4_sig = "rgba($red, $green, $blue, $alpha)";
- BUILT_IN(rgba_4)
- {
- if (
- special_number(Cast<String_Constant>(env["$red"])) ||
- special_number(Cast<String_Constant>(env["$green"])) ||
- special_number(Cast<String_Constant>(env["$blue"])) ||
- special_number(Cast<String_Constant>(env["$alpha"]))
- ) {
- return SASS_MEMORY_NEW(String_Constant, pstate, "rgba("
- + env["$red"]->to_string()
- + ", "
- + env["$green"]->to_string()
- + ", "
- + env["$blue"]->to_string()
- + ", "
- + env["$alpha"]->to_string()
- + ")"
- );
- }
-
- return SASS_MEMORY_NEW(Color,
- pstate,
- COLOR_NUM("$red"),
- COLOR_NUM("$green"),
- COLOR_NUM("$blue"),
- ALPHA_NUM("$alpha"));
- }
-
- Signature rgba_2_sig = "rgba($color, $alpha)";
- BUILT_IN(rgba_2)
- {
- if (
- special_number(Cast<String_Constant>(env["$color"]))
- ) {
- return SASS_MEMORY_NEW(String_Constant, pstate, "rgba("
- + env["$color"]->to_string()
- + ", "
- + env["$alpha"]->to_string()
- + ")"
- );
- }
-
- Color_Ptr c_arg = ARG("$color", Color);
-
- if (
- special_number(Cast<String_Constant>(env["$alpha"]))
- ) {
- std::stringstream strm;
- strm << "rgba("
- << (int)c_arg->r() << ", "
- << (int)c_arg->g() << ", "
- << (int)c_arg->b() << ", "
- << env["$alpha"]->to_string()
- << ")";
- return SASS_MEMORY_NEW(String_Constant, pstate, strm.str());
- }
-
- Color_Ptr new_c = SASS_MEMORY_COPY(c_arg);
- new_c->a(ALPHA_NUM("$alpha"));
- new_c->disp("");
- return new_c;
- }
-
- Signature red_sig = "red($color)";
- BUILT_IN(red)
- { return SASS_MEMORY_NEW(Number, pstate, ARG("$color", Color)->r()); }
-
- Signature green_sig = "green($color)";
- BUILT_IN(green)
- { return SASS_MEMORY_NEW(Number, pstate, ARG("$color", Color)->g()); }
-
- Signature blue_sig = "blue($color)";
- BUILT_IN(blue)
- { return SASS_MEMORY_NEW(Number, pstate, ARG("$color", Color)->b()); }
-
- Color* colormix(Context& ctx, ParserState& pstate, Color* color1, Color* color2, double weight) {
- double p = weight/100;
- double w = 2*p - 1;
- double a = color1->a() - color2->a();
-
- double w1 = (((w * a == -1) ? w : (w + a)/(1 + w*a)) + 1)/2.0;
- double w2 = 1 - w1;
-
- return SASS_MEMORY_NEW(Color,
- pstate,
- Sass::round(w1*color1->r() + w2*color2->r(), ctx.c_options.precision),
- Sass::round(w1*color1->g() + w2*color2->g(), ctx.c_options.precision),
- Sass::round(w1*color1->b() + w2*color2->b(), ctx.c_options.precision),
- color1->a()*p + color2->a()*(1-p));
- }
-
- Signature mix_sig = "mix($color-1, $color-2, $weight: 50%)";
- BUILT_IN(mix)
- {
- Color_Obj color1 = ARG("$color-1", Color);
- Color_Obj color2 = ARG("$color-2", Color);
- double weight = DARG_U_PRCT("$weight");
- return colormix(ctx, pstate, color1, color2, weight);
-
- }
-
- ////////////////
- // HSL FUNCTIONS
- ////////////////
-
- // RGB to HSL helper function
- struct HSL { double h; double s; double l; };
- HSL rgb_to_hsl(double r, double g, double b)
- {
-
- // Algorithm from http://en.wikipedia.org/wiki/wHSL_and_HSV#Conversion_from_RGB_to_HSL_or_HSV
- r /= 255.0; g /= 255.0; b /= 255.0;
-
- double max = std::max(r, std::max(g, b));
- double min = std::min(r, std::min(g, b));
- double delta = max - min;
-
- double h = 0;
- double s;
- double l = (max + min) / 2.0;
-
- if (NEAR_EQUAL(max, min)) {
- h = s = 0; // achromatic
- }
- else {
- if (l < 0.5) s = delta / (max + min);
- else s = delta / (2.0 - max - min);
-
- if (r == max) h = (g - b) / delta + (g < b ? 6 : 0);
- else if (g == max) h = (b - r) / delta + 2;
- else if (b == max) h = (r - g) / delta + 4;
- }
-
- HSL hsl_struct;
- hsl_struct.h = h / 6 * 360;
- hsl_struct.s = s * 100;
- hsl_struct.l = l * 100;
-
- return hsl_struct;
- }
-
- // hue to RGB helper function
- double h_to_rgb(double m1, double m2, double h) {
- while (h < 0) h += 1;
- while (h > 1) h -= 1;
- if (h*6.0 < 1) return m1 + (m2 - m1)*h*6;
- if (h*2.0 < 1) return m2;
- if (h*3.0 < 2) return m1 + (m2 - m1) * (2.0/3.0 - h)*6;
- return m1;
- }
-
- Color_Ptr hsla_impl(double h, double s, double l, double a, Context& ctx, ParserState pstate)
- {
- h /= 360.0;
- s /= 100.0;
- l /= 100.0;
-
- if (l < 0) l = 0;
- if (s < 0) s = 0;
- if (l > 1) l = 1;
- if (s > 1) s = 1;
- while (h < 0) h += 1;
- while (h > 1) h -= 1;
-
- // if saturation is exacly zero, we loose
- // information for hue, since it will evaluate
- // to zero if converted back from rgb. Setting
- // saturation to a very tiny number solves this.
- if (s == 0) s = 1e-10;
-
- // Algorithm from the CSS3 spec: http://www.w3.org/TR/css3-color/#hsl-color.
- double m2;
- if (l <= 0.5) m2 = l*(s+1.0);
- else m2 = (l+s)-(l*s);
- double m1 = (l*2.0)-m2;
- // round the results -- consider moving this into the Color constructor
- double r = (h_to_rgb(m1, m2, h + 1.0/3.0) * 255.0);
- double g = (h_to_rgb(m1, m2, h) * 255.0);
- double b = (h_to_rgb(m1, m2, h - 1.0/3.0) * 255.0);
-
- return SASS_MEMORY_NEW(Color, pstate, r, g, b, a);
- }
-
- Signature hsl_sig = "hsl($hue, $saturation, $lightness)";
- BUILT_IN(hsl)
- {
- if (
- special_number(Cast<String_Constant>(env["$hue"])) ||
- special_number(Cast<String_Constant>(env["$saturation"])) ||
- special_number(Cast<String_Constant>(env["$lightness"]))
- ) {
- return SASS_MEMORY_NEW(String_Constant, pstate, "hsl("
- + env["$hue"]->to_string()
- + ", "
- + env["$saturation"]->to_string()
- + ", "
- + env["$lightness"]->to_string()
- + ")"
- );
- }
-
- return hsla_impl(ARGVAL("$hue"),
- ARGVAL("$saturation"),
- ARGVAL("$lightness"),
- 1.0,
- ctx,
- pstate);
- }
-
- Signature hsla_sig = "hsla($hue, $saturation, $lightness, $alpha)";
- BUILT_IN(hsla)
- {
- if (
- special_number(Cast<String_Constant>(env["$hue"])) ||
- special_number(Cast<String_Constant>(env["$saturation"])) ||
- special_number(Cast<String_Constant>(env["$lightness"])) ||
- special_number(Cast<String_Constant>(env["$alpha"]))
- ) {
- return SASS_MEMORY_NEW(String_Constant, pstate, "hsla("
- + env["$hue"]->to_string()
- + ", "
- + env["$saturation"]->to_string()
- + ", "
- + env["$lightness"]->to_string()
- + ", "
- + env["$alpha"]->to_string()
- + ")"
- );
- }
-
- return hsla_impl(ARGVAL("$hue"),
- ARGVAL("$saturation"),
- ARGVAL("$lightness"),
- ARGVAL("$alpha"),
- ctx,
- pstate);
- }
-
- Signature hue_sig = "hue($color)";
- BUILT_IN(hue)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
- return SASS_MEMORY_NEW(Number, pstate, hsl_color.h, "deg");
- }
-
- Signature saturation_sig = "saturation($color)";
- BUILT_IN(saturation)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
- return SASS_MEMORY_NEW(Number, pstate, hsl_color.s, "%");
- }
-
- Signature lightness_sig = "lightness($color)";
- BUILT_IN(lightness)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
- return SASS_MEMORY_NEW(Number, pstate, hsl_color.l, "%");
- }
-
- Signature adjust_hue_sig = "adjust-hue($color, $degrees)";
- BUILT_IN(adjust_hue)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- double degrees = ARGVAL("$degrees");
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
- return hsla_impl(hsl_color.h + degrees,
- hsl_color.s,
- hsl_color.l,
- rgb_color->a(),
- ctx,
- pstate);
- }
-
- Signature lighten_sig = "lighten($color, $amount)";
- BUILT_IN(lighten)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- double amount = DARG_U_PRCT("$amount");
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
- //Check lightness is not negative before lighten it
- double hslcolorL = hsl_color.l;
- if (hslcolorL < 0) {
- hslcolorL = 0;
- }
-
- return hsla_impl(hsl_color.h,
- hsl_color.s,
- hslcolorL + amount,
- rgb_color->a(),
- ctx,
- pstate);
- }
-
- Signature darken_sig = "darken($color, $amount)";
- BUILT_IN(darken)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- double amount = DARG_U_PRCT("$amount");
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
-
- //Check lightness if not over 100, before darken it
- double hslcolorL = hsl_color.l;
- if (hslcolorL > 100) {
- hslcolorL = 100;
- }
-
- return hsla_impl(hsl_color.h,
- hsl_color.s,
- hslcolorL - amount,
- rgb_color->a(),
- ctx,
- pstate);
- }
-
- Signature saturate_sig = "saturate($color, $amount: false)";
- BUILT_IN(saturate)
- {
- // CSS3 filter function overload: pass literal through directly
- if (!Cast<Number>(env["$amount"])) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "saturate(" + env["$color"]->to_string(ctx.c_options) + ")");
- }
-
- double amount = DARG_U_PRCT("$amount");
- Color_Ptr rgb_color = ARG("$color", Color);
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
-
- double hslcolorS = hsl_color.s + amount;
-
- // Saturation cannot be below 0 or above 100
- if (hslcolorS < 0) {
- hslcolorS = 0;
- }
- if (hslcolorS > 100) {
- hslcolorS = 100;
- }
-
- return hsla_impl(hsl_color.h,
- hslcolorS,
- hsl_color.l,
- rgb_color->a(),
- ctx,
- pstate);
- }
-
- Signature desaturate_sig = "desaturate($color, $amount)";
- BUILT_IN(desaturate)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- double amount = DARG_U_PRCT("$amount");
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
-
- double hslcolorS = hsl_color.s - amount;
-
- // Saturation cannot be below 0 or above 100
- if (hslcolorS <= 0) {
- hslcolorS = 0;
- }
- if (hslcolorS > 100) {
- hslcolorS = 100;
- }
-
- return hsla_impl(hsl_color.h,
- hslcolorS,
- hsl_color.l,
- rgb_color->a(),
- ctx,
- pstate);
- }
-
- Signature grayscale_sig = "grayscale($color)";
- BUILT_IN(grayscale)
- {
- // CSS3 filter function overload: pass literal through directly
- Number_Ptr amount = Cast<Number>(env["$color"]);
- if (amount) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "grayscale(" + amount->to_string(ctx.c_options) + ")");
- }
-
- Color_Ptr rgb_color = ARG("$color", Color);
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
- return hsla_impl(hsl_color.h,
- 0.0,
- hsl_color.l,
- rgb_color->a(),
- ctx,
- pstate);
- }
-
- Signature complement_sig = "complement($color)";
- BUILT_IN(complement)
- {
- Color_Ptr rgb_color = ARG("$color", Color);
- HSL hsl_color = rgb_to_hsl(rgb_color->r(),
- rgb_color->g(),
- rgb_color->b());
- return hsla_impl(hsl_color.h - 180.0,
- hsl_color.s,
- hsl_color.l,
- rgb_color->a(),
- ctx,
- pstate);
- }
-
- Signature invert_sig = "invert($color, $weight: 100%)";
- BUILT_IN(invert)
- {
- // CSS3 filter function overload: pass literal through directly
- Number_Ptr amount = Cast<Number>(env["$color"]);
- if (amount) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "invert(" + amount->to_string(ctx.c_options) + ")");
- }
-
- double weight = DARG_U_PRCT("$weight");
- Color_Ptr rgb_color = ARG("$color", Color);
- Color_Obj inv = SASS_MEMORY_NEW(Color,
- pstate,
- 255 - rgb_color->r(),
- 255 - rgb_color->g(),
- 255 - rgb_color->b(),
- rgb_color->a());
- return colormix(ctx, pstate, inv, rgb_color, weight);
- }
-
- ////////////////////
- // OPACITY FUNCTIONS
- ////////////////////
- Signature alpha_sig = "alpha($color)";
- Signature opacity_sig = "opacity($color)";
- BUILT_IN(alpha)
- {
- String_Constant_Ptr ie_kwd = Cast<String_Constant>(env["$color"]);
- if (ie_kwd) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "alpha(" + ie_kwd->value() + ")");
- }
-
- // CSS3 filter function overload: pass literal through directly
- Number_Ptr amount = Cast<Number>(env["$color"]);
- if (amount) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "opacity(" + amount->to_string(ctx.c_options) + ")");
- }
-
- return SASS_MEMORY_NEW(Number, pstate, ARG("$color", Color)->a());
- }
-
- Signature opacify_sig = "opacify($color, $amount)";
- Signature fade_in_sig = "fade-in($color, $amount)";
- BUILT_IN(opacify)
- {
- Color_Ptr color = ARG("$color", Color);
- double amount = DARG_U_FACT("$amount");
- double alpha = std::min(color->a() + amount, 1.0);
- return SASS_MEMORY_NEW(Color,
- pstate,
- color->r(),
- color->g(),
- color->b(),
- alpha);
- }
-
- Signature transparentize_sig = "transparentize($color, $amount)";
- Signature fade_out_sig = "fade-out($color, $amount)";
- BUILT_IN(transparentize)
- {
- Color_Ptr color = ARG("$color", Color);
- double amount = DARG_U_FACT("$amount");
- double alpha = std::max(color->a() - amount, 0.0);
- return SASS_MEMORY_NEW(Color,
- pstate,
- color->r(),
- color->g(),
- color->b(),
- alpha);
- }
-
- ////////////////////////
- // OTHER COLOR FUNCTIONS
- ////////////////////////
-
- Signature adjust_color_sig = "adjust-color($color, $red: false, $green: false, $blue: false, $hue: false, $saturation: false, $lightness: false, $alpha: false)";
- BUILT_IN(adjust_color)
- {
- Color_Ptr color = ARG("$color", Color);
- Number_Ptr r = Cast<Number>(env["$red"]);
- Number_Ptr g = Cast<Number>(env["$green"]);
- Number_Ptr b = Cast<Number>(env["$blue"]);
- Number_Ptr h = Cast<Number>(env["$hue"]);
- Number_Ptr s = Cast<Number>(env["$saturation"]);
- Number_Ptr l = Cast<Number>(env["$lightness"]);
- Number_Ptr a = Cast<Number>(env["$alpha"]);
-
- bool rgb = r || g || b;
- bool hsl = h || s || l;
-
- if (rgb && hsl) {
- error("Cannot specify HSL and RGB values for a color at the same time for `adjust-color'", pstate, traces);
- }
- if (rgb) {
- double rr = r ? DARG_R_BYTE("$red") : 0;
- double gg = g ? DARG_R_BYTE("$green") : 0;
- double bb = b ? DARG_R_BYTE("$blue") : 0;
- double aa = a ? DARG_R_FACT("$alpha") : 0;
- return SASS_MEMORY_NEW(Color,
- pstate,
- color->r() + rr,
- color->g() + gg,
- color->b() + bb,
- color->a() + aa);
- }
- if (hsl) {
- HSL hsl_struct = rgb_to_hsl(color->r(), color->g(), color->b());
- double ss = s ? DARG_R_PRCT("$saturation") : 0;
- double ll = l ? DARG_R_PRCT("$lightness") : 0;
- double aa = a ? DARG_R_FACT("$alpha") : 0;
- return hsla_impl(hsl_struct.h + (h ? h->value() : 0),
- hsl_struct.s + ss,
- hsl_struct.l + ll,
- color->a() + aa,
- ctx,
- pstate);
- }
- if (a) {
- return SASS_MEMORY_NEW(Color,
- pstate,
- color->r(),
- color->g(),
- color->b(),
- color->a() + (a ? a->value() : 0));
- }
- error("not enough arguments for `adjust-color'", pstate, traces);
- // unreachable
- return color;
- }
-
- Signature scale_color_sig = "scale-color($color, $red: false, $green: false, $blue: false, $hue: false, $saturation: false, $lightness: false, $alpha: false)";
- BUILT_IN(scale_color)
- {
- Color_Ptr color = ARG("$color", Color);
- Number_Ptr r = Cast<Number>(env["$red"]);
- Number_Ptr g = Cast<Number>(env["$green"]);
- Number_Ptr b = Cast<Number>(env["$blue"]);
- Number_Ptr h = Cast<Number>(env["$hue"]);
- Number_Ptr s = Cast<Number>(env["$saturation"]);
- Number_Ptr l = Cast<Number>(env["$lightness"]);
- Number_Ptr a = Cast<Number>(env["$alpha"]);
-
- bool rgb = r || g || b;
- bool hsl = h || s || l;
-
- if (rgb && hsl) {
- error("Cannot specify HSL and RGB values for a color at the same time for `scale-color'", pstate, traces);
- }
- if (rgb) {
- double rscale = (r ? DARG_R_PRCT("$red") : 0.0) / 100.0;
- double gscale = (g ? DARG_R_PRCT("$green") : 0.0) / 100.0;
- double bscale = (b ? DARG_R_PRCT("$blue") : 0.0) / 100.0;
- double ascale = (a ? DARG_R_PRCT("$alpha") : 0.0) / 100.0;
- return SASS_MEMORY_NEW(Color,
- pstate,
- color->r() + rscale * (rscale > 0.0 ? 255 - color->r() : color->r()),
- color->g() + gscale * (gscale > 0.0 ? 255 - color->g() : color->g()),
- color->b() + bscale * (bscale > 0.0 ? 255 - color->b() : color->b()),
- color->a() + ascale * (ascale > 0.0 ? 1.0 - color->a() : color->a()));
- }
- if (hsl) {
- double hscale = (h ? DARG_R_PRCT("$hue") : 0.0) / 100.0;
- double sscale = (s ? DARG_R_PRCT("$saturation") : 0.0) / 100.0;
- double lscale = (l ? DARG_R_PRCT("$lightness") : 0.0) / 100.0;
- double ascale = (a ? DARG_R_PRCT("$alpha") : 0.0) / 100.0;
- HSL hsl_struct = rgb_to_hsl(color->r(), color->g(), color->b());
- hsl_struct.h += hscale * (hscale > 0.0 ? 360.0 - hsl_struct.h : hsl_struct.h);
- hsl_struct.s += sscale * (sscale > 0.0 ? 100.0 - hsl_struct.s : hsl_struct.s);
- hsl_struct.l += lscale * (lscale > 0.0 ? 100.0 - hsl_struct.l : hsl_struct.l);
- double alpha = color->a() + ascale * (ascale > 0.0 ? 1.0 - color->a() : color->a());
- return hsla_impl(hsl_struct.h, hsl_struct.s, hsl_struct.l, alpha, ctx, pstate);
- }
- if (a) {
- double ascale = (DARG_R_PRCT("$alpha")) / 100.0;
- return SASS_MEMORY_NEW(Color,
- pstate,
- color->r(),
- color->g(),
- color->b(),
- color->a() + ascale * (ascale > 0.0 ? 1.0 - color->a() : color->a()));
- }
- error("not enough arguments for `scale-color'", pstate, traces);
- // unreachable
- return color;
- }
-
- Signature change_color_sig = "change-color($color, $red: false, $green: false, $blue: false, $hue: false, $saturation: false, $lightness: false, $alpha: false)";
- BUILT_IN(change_color)
- {
- Color_Ptr color = ARG("$color", Color);
- Number_Ptr r = Cast<Number>(env["$red"]);
- Number_Ptr g = Cast<Number>(env["$green"]);
- Number_Ptr b = Cast<Number>(env["$blue"]);
- Number_Ptr h = Cast<Number>(env["$hue"]);
- Number_Ptr s = Cast<Number>(env["$saturation"]);
- Number_Ptr l = Cast<Number>(env["$lightness"]);
- Number_Ptr a = Cast<Number>(env["$alpha"]);
-
- bool rgb = r || g || b;
- bool hsl = h || s || l;
-
- if (rgb && hsl) {
- error("Cannot specify HSL and RGB values for a color at the same time for `change-color'", pstate, traces);
- }
- if (rgb) {
- return SASS_MEMORY_NEW(Color,
- pstate,
- r ? DARG_U_BYTE("$red") : color->r(),
- g ? DARG_U_BYTE("$green") : color->g(),
- b ? DARG_U_BYTE("$blue") : color->b(),
- a ? DARG_U_BYTE("$alpha") : color->a());
- }
- if (hsl) {
- HSL hsl_struct = rgb_to_hsl(color->r(), color->g(), color->b());
- if (h) hsl_struct.h = std::fmod(h->value(), 360.0);
- if (s) hsl_struct.s = DARG_U_PRCT("$saturation");
- if (l) hsl_struct.l = DARG_U_PRCT("$lightness");
- double alpha = a ? DARG_U_FACT("$alpha") : color->a();
- return hsla_impl(hsl_struct.h, hsl_struct.s, hsl_struct.l, alpha, ctx, pstate);
- }
- if (a) {
- double alpha = DARG_U_FACT("$alpha");
- return SASS_MEMORY_NEW(Color,
- pstate,
- color->r(),
- color->g(),
- color->b(),
- alpha);
- }
- error("not enough arguments for `change-color'", pstate, traces);
- // unreachable
- return color;
- }
-
- template <size_t range>
- static double cap_channel(double c) {
- if (c > range) return range;
- else if (c < 0) return 0;
- else return c;
- }
-
- Signature ie_hex_str_sig = "ie-hex-str($color)";
- BUILT_IN(ie_hex_str)
- {
- Color_Ptr c = ARG("$color", Color);
- double r = cap_channel<0xff>(c->r());
- double g = cap_channel<0xff>(c->g());
- double b = cap_channel<0xff>(c->b());
- double a = cap_channel<1> (c->a()) * 255;
-
- std::stringstream ss;
- ss << '#' << std::setw(2) << std::setfill('0');
- ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(a, ctx.c_options.precision));
- ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(r, ctx.c_options.precision));
- ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(g, ctx.c_options.precision));
- ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(b, ctx.c_options.precision));
-
- std::string result(ss.str());
- for (size_t i = 0, L = result.length(); i < L; ++i) {
- result[i] = std::toupper(result[i]);
- }
- return SASS_MEMORY_NEW(String_Quoted, pstate, result);
- }
-
- ///////////////////
- // STRING FUNCTIONS
- ///////////////////
-
- Signature unquote_sig = "unquote($string)";
- BUILT_IN(sass_unquote)
- {
- AST_Node_Obj arg = env["$string"];
- if (String_Quoted_Ptr string_quoted = Cast<String_Quoted>(arg)) {
- String_Constant_Ptr result = SASS_MEMORY_NEW(String_Constant, pstate, string_quoted->value());
- // remember if the string was quoted (color tokens)
- result->is_delayed(true); // delay colors
- return result;
- }
- else if (String_Constant_Ptr str = Cast<String_Constant>(arg)) {
- return str;
- }
- else if (Expression_Ptr ex = Cast<Expression>(arg)) {
- Sass_Output_Style oldstyle = ctx.c_options.output_style;
- ctx.c_options.output_style = SASS_STYLE_NESTED;
- std::string val(arg->to_string(ctx.c_options));
- val = Cast<Null>(arg) ? "null" : val;
- ctx.c_options.output_style = oldstyle;
-
- deprecated_function("Passing " + val + ", a non-string value, to unquote()", pstate);
- return ex;
- }
- throw std::runtime_error("Invalid Data Type for unquote");
- }
-
- Signature quote_sig = "quote($string)";
- BUILT_IN(sass_quote)
- {
- AST_Node_Obj arg = env["$string"];
- // only set quote mark to true if already a string
- if (String_Quoted_Ptr qstr = Cast<String_Quoted>(arg)) {
- qstr->quote_mark('*');
- return qstr;
- }
- // all other nodes must be converted to a string node
- std::string str(quote(arg->to_string(ctx.c_options), String_Constant::double_quote()));
- String_Quoted_Ptr result = SASS_MEMORY_NEW(String_Quoted, pstate, str);
- result->quote_mark('*');
- return result;
- }
-
-
- Signature str_length_sig = "str-length($string)";
- BUILT_IN(str_length)
- {
- size_t len = std::string::npos;
- try {
- String_Constant_Ptr s = ARG("$string", String_Constant);
- len = UTF_8::code_point_count(s->value(), 0, s->value().size());
-
- }
- // handle any invalid utf8 errors
- // other errors will be re-thrown
- catch (...) { handle_utf8_error(pstate, traces); }
- // return something even if we had an error (-1)
- return SASS_MEMORY_NEW(Number, pstate, (double)len);
- }
-
- Signature str_insert_sig = "str-insert($string, $insert, $index)";
- BUILT_IN(str_insert)
- {
- std::string str;
- try {
- String_Constant_Ptr s = ARG("$string", String_Constant);
- str = s->value();
- str = unquote(str);
- String_Constant_Ptr i = ARG("$insert", String_Constant);
- std::string ins = i->value();
- ins = unquote(ins);
- double index = ARGVAL("$index");
- size_t len = UTF_8::code_point_count(str, 0, str.size());
-
- if (index > 0 && index <= len) {
- // positive and within string length
- str.insert(UTF_8::offset_at_position(str, static_cast<size_t>(index) - 1), ins);
- }
- else if (index > len) {
- // positive and past string length
- str += ins;
- }
- else if (index == 0) {
- str = ins + str;
- }
- else if (std::abs(index) <= len) {
- // negative and within string length
- index += len + 1;
- str.insert(UTF_8::offset_at_position(str, static_cast<size_t>(index)), ins);
- }
- else {
- // negative and past string length
- str = ins + str;
- }
-
- if (String_Quoted_Ptr ss = Cast<String_Quoted>(s)) {
- if (ss->quote_mark()) str = quote(str);
- }
- }
- // handle any invalid utf8 errors
- // other errors will be re-thrown
- catch (...) { handle_utf8_error(pstate, traces); }
- return SASS_MEMORY_NEW(String_Quoted, pstate, str);
- }
-
- Signature str_index_sig = "str-index($string, $substring)";
- BUILT_IN(str_index)
- {
- size_t index = std::string::npos;
- try {
- String_Constant_Ptr s = ARG("$string", String_Constant);
- String_Constant_Ptr t = ARG("$substring", String_Constant);
- std::string str = s->value();
- str = unquote(str);
- std::string substr = t->value();
- substr = unquote(substr);
-
- size_t c_index = str.find(substr);
- if(c_index == std::string::npos) {
- return SASS_MEMORY_NEW(Null, pstate);
- }
- index = UTF_8::code_point_count(str, 0, c_index) + 1;
- }
- // handle any invalid utf8 errors
- // other errors will be re-thrown
- catch (...) { handle_utf8_error(pstate, traces); }
- // return something even if we had an error (-1)
- return SASS_MEMORY_NEW(Number, pstate, (double)index);
- }
-
- Signature str_slice_sig = "str-slice($string, $start-at, $end-at:-1)";
- BUILT_IN(str_slice)
- {
- std::string newstr;
- try {
- String_Constant_Ptr s = ARG("$string", String_Constant);
- double start_at = ARGVAL("$start-at");
- double end_at = ARGVAL("$end-at");
- String_Quoted_Ptr ss = Cast<String_Quoted>(s);
-
- std::string str = unquote(s->value());
-
- size_t size = utf8::distance(str.begin(), str.end());
-
- if (!Cast<Number>(env["$end-at"])) {
- end_at = -1;
- }
-
- if (end_at == 0 || (end_at + size) < 0) {
- if (ss && ss->quote_mark()) newstr = quote("");
- return SASS_MEMORY_NEW(String_Quoted, pstate, newstr);
- }
-
- if (end_at < 0) {
- end_at += size + 1;
- if (end_at == 0) end_at = 1;
- }
- if (end_at > size) { end_at = (double)size; }
- if (start_at < 0) {
- start_at += size + 1;
- if (start_at < 0) start_at = 0;
- }
- else if (start_at == 0) { ++ start_at; }
-
- if (start_at <= end_at)
- {
- std::string::iterator start = str.begin();
- utf8::advance(start, start_at - 1, str.end());
- std::string::iterator end = start;
- utf8::advance(end, end_at - start_at + 1, str.end());
- newstr = std::string(start, end);
- }
- if (ss) {
- if(ss->quote_mark()) newstr = quote(newstr);
- }
- }
- // handle any invalid utf8 errors
- // other errors will be re-thrown
- catch (...) { handle_utf8_error(pstate, traces); }
- return SASS_MEMORY_NEW(String_Quoted, pstate, newstr);
- }
-
- Signature to_upper_case_sig = "to-upper-case($string)";
- BUILT_IN(to_upper_case)
- {
- String_Constant_Ptr s = ARG("$string", String_Constant);
- std::string str = s->value();
-
- for (size_t i = 0, L = str.length(); i < L; ++i) {
- if (Sass::Util::isAscii(str[i])) {
- str[i] = std::toupper(str[i]);
- }
- }
-
- if (String_Quoted_Ptr ss = Cast<String_Quoted>(s)) {
- String_Quoted_Ptr cpy = SASS_MEMORY_COPY(ss);
- cpy->value(str);
- return cpy;
- } else {
- return SASS_MEMORY_NEW(String_Quoted, pstate, str);
- }
- }
-
- Signature to_lower_case_sig = "to-lower-case($string)";
- BUILT_IN(to_lower_case)
- {
- String_Constant_Ptr s = ARG("$string", String_Constant);
- std::string str = s->value();
-
- for (size_t i = 0, L = str.length(); i < L; ++i) {
- if (Sass::Util::isAscii(str[i])) {
- str[i] = std::tolower(str[i]);
- }
- }
-
- if (String_Quoted_Ptr ss = Cast<String_Quoted>(s)) {
- String_Quoted_Ptr cpy = SASS_MEMORY_COPY(ss);
- cpy->value(str);
- return cpy;
- } else {
- return SASS_MEMORY_NEW(String_Quoted, pstate, str);
- }
- }
-
- ///////////////////
- // NUMBER FUNCTIONS
- ///////////////////
-
- Signature percentage_sig = "percentage($number)";
- BUILT_IN(percentage)
- {
- Number_Obj n = ARGN("$number");
- if (!n->is_unitless()) error("argument $number of `" + std::string(sig) + "` must be unitless", pstate, traces);
- return SASS_MEMORY_NEW(Number, pstate, n->value() * 100, "%");
- }
-
- Signature round_sig = "round($number)";
- BUILT_IN(round)
- {
- Number_Obj r = ARGN("$number");
- r->value(Sass::round(r->value(), ctx.c_options.precision));
- r->pstate(pstate);
- return r.detach();
- }
-
- Signature ceil_sig = "ceil($number)";
- BUILT_IN(ceil)
- {
- Number_Obj r = ARGN("$number");
- r->value(std::ceil(r->value()));
- r->pstate(pstate);
- return r.detach();
- }
-
- Signature floor_sig = "floor($number)";
- BUILT_IN(floor)
- {
- Number_Obj r = ARGN("$number");
- r->value(std::floor(r->value()));
- r->pstate(pstate);
- return r.detach();
- }
-
- Signature abs_sig = "abs($number)";
- BUILT_IN(abs)
- {
- Number_Obj r = ARGN("$number");
- r->value(std::abs(r->value()));
- r->pstate(pstate);
- return r.detach();
- }
-
- Signature min_sig = "min($numbers...)";
- BUILT_IN(min)
- {
- List_Ptr arglist = ARG("$numbers", List);
- Number_Obj least = NULL;
- for (size_t i = 0, L = arglist->length(); i < L; ++i) {
- Expression_Obj val = arglist->value_at_index(i);
- Number_Obj xi = Cast<Number>(val);
- if (!xi) {
- error("\"" + val->to_string(ctx.c_options) + "\" is not a number for `min'", pstate, traces);
- }
- if (least) {
- if (*xi < *least) least = xi;
- } else least = xi;
- }
- return least.detach();
- }
-
- Signature max_sig = "max($numbers...)";
- BUILT_IN(max)
- {
- List_Ptr arglist = ARG("$numbers", List);
- Number_Obj greatest = NULL;
- for (size_t i = 0, L = arglist->length(); i < L; ++i) {
- Expression_Obj val = arglist->value_at_index(i);
- Number_Obj xi = Cast<Number>(val);
- if (!xi) {
- error("\"" + val->to_string(ctx.c_options) + "\" is not a number for `max'", pstate, traces);
- }
- if (greatest) {
- if (*greatest < *xi) greatest = xi;
- } else greatest = xi;
- }
- return greatest.detach();
- }
-
- Signature random_sig = "random($limit:false)";
- BUILT_IN(random)
- {
- AST_Node_Obj arg = env["$limit"];
- Value_Ptr v = Cast<Value>(arg);
- Number_Ptr l = Cast<Number>(arg);
- Boolean_Ptr b = Cast<Boolean>(arg);
- if (l) {
- double lv = l->value();
- if (lv < 1) {
- stringstream err;
- err << "$limit " << lv << " must be greater than or equal to 1 for `random'";
- error(err.str(), pstate, traces);
- }
- bool eq_int = std::fabs(trunc(lv) - lv) < NUMBER_EPSILON;
- if (!eq_int) {
- stringstream err;
- err << "Expected $limit to be an integer but got " << lv << " for `random'";
- error(err.str(), pstate, traces);
- }
- std::uniform_real_distribution<> distributor(1, lv + 1);
- uint_fast32_t distributed = static_cast<uint_fast32_t>(distributor(rand));
- return SASS_MEMORY_NEW(Number, pstate, (double)distributed);
- }
- else if (b) {
- std::uniform_real_distribution<> distributor(0, 1);
- double distributed = static_cast<double>(distributor(rand));
- return SASS_MEMORY_NEW(Number, pstate, distributed);
- } else if (v) {
- traces.push_back(Backtrace(pstate));
- throw Exception::InvalidArgumentType(pstate, traces, "random", "$limit", "number", v);
- } else {
- traces.push_back(Backtrace(pstate));
- throw Exception::InvalidArgumentType(pstate, traces, "random", "$limit", "number");
- }
- }
-
- /////////////////
- // LIST FUNCTIONS
- /////////////////
-
- Signature length_sig = "length($list)";
- BUILT_IN(length)
- {
- if (Selector_List_Ptr sl = Cast<Selector_List>(env["$list"])) {
- return SASS_MEMORY_NEW(Number, pstate, (double)sl->length());
- }
- Expression_Ptr v = ARG("$list", Expression);
- if (v->concrete_type() == Expression::MAP) {
- Map_Ptr map = Cast<Map>(env["$list"]);
- return SASS_MEMORY_NEW(Number, pstate, (double)(map ? map->length() : 1));
- }
- if (v->concrete_type() == Expression::SELECTOR) {
- if (Compound_Selector_Ptr h = Cast<Compound_Selector>(v)) {
- return SASS_MEMORY_NEW(Number, pstate, (double)h->length());
- } else if (Selector_List_Ptr ls = Cast<Selector_List>(v)) {
- return SASS_MEMORY_NEW(Number, pstate, (double)ls->length());
- } else {
- return SASS_MEMORY_NEW(Number, pstate, 1);
- }
- }
-
- List_Ptr list = Cast<List>(env["$list"]);
- return SASS_MEMORY_NEW(Number,
- pstate,
- (double)(list ? list->size() : 1));
- }
-
- Signature nth_sig = "nth($list, $n)";
- BUILT_IN(nth)
- {
- double nr = ARGVAL("$n");
- Map_Ptr m = Cast<Map>(env["$list"]);
- if (Selector_List_Ptr sl = Cast<Selector_List>(env["$list"])) {
- size_t len = m ? m->length() : sl->length();
- bool empty = m ? m->empty() : sl->empty();
- if (empty) error("argument `$list` of `" + std::string(sig) + "` must not be empty", pstate, traces);
- double index = std::floor(nr < 0 ? len + nr : nr - 1);
- if (index < 0 || index > len - 1) error("index out of bounds for `" + std::string(sig) + "`", pstate, traces);
- // return (*sl)[static_cast<int>(index)];
- Listize listize;
- return (*sl)[static_cast<int>(index)]->perform(&listize);
- }
- List_Obj l = Cast<List>(env["$list"]);
- if (nr == 0) error("argument `$n` of `" + std::string(sig) + "` must be non-zero", pstate, traces);
- // if the argument isn't a list, then wrap it in a singleton list
- if (!m && !l) {
- l = SASS_MEMORY_NEW(List, pstate, 1);
- l->append(ARG("$list", Expression));
- }
- size_t len = m ? m->length() : l->length();
- bool empty = m ? m->empty() : l->empty();
- if (empty) error("argument `$list` of `" + std::string(sig) + "` must not be empty", pstate, traces);
- double index = std::floor(nr < 0 ? len + nr : nr - 1);
- if (index < 0 || index > len - 1) error("index out of bounds for `" + std::string(sig) + "`", pstate, traces);
-
- if (m) {
- l = SASS_MEMORY_NEW(List, pstate, 1);
- l->append(m->keys()[static_cast<unsigned int>(index)]);
- l->append(m->at(m->keys()[static_cast<unsigned int>(index)]));
- return l.detach();
- }
- else {
- Expression_Obj rv = l->value_at_index(static_cast<int>(index));
- rv->set_delayed(false);
- return rv.detach();
- }
- }
-
- Signature set_nth_sig = "set-nth($list, $n, $value)";
- BUILT_IN(set_nth)
- {
- Map_Obj m = Cast<Map>(env["$list"]);
- List_Obj l = Cast<List>(env["$list"]);
- Number_Obj n = ARG("$n", Number);
- Expression_Obj v = ARG("$value", Expression);
- if (!l) {
- l = SASS_MEMORY_NEW(List, pstate, 1);
- l->append(ARG("$list", Expression));
- }
- if (m) {
- l = m->to_list(pstate);
- }
- if (l->empty()) error("argument `$list` of `" + std::string(sig) + "` must not be empty", pstate, traces);
- double index = std::floor(n->value() < 0 ? l->length() + n->value() : n->value() - 1);
- if (index < 0 || index > l->length() - 1) error("index out of bounds for `" + std::string(sig) + "`", pstate, traces);
- List_Ptr result = SASS_MEMORY_NEW(List, pstate, l->length(), l->separator(), false, l->is_bracketed());
- for (size_t i = 0, L = l->length(); i < L; ++i) {
- result->append(((i == index) ? v : (*l)[i]));
- }
- return result;
- }
-
- Signature index_sig = "index($list, $value)";
- BUILT_IN(index)
- {
- Map_Obj m = Cast<Map>(env["$list"]);
- List_Obj l = Cast<List>(env["$list"]);
- Expression_Obj v = ARG("$value", Expression);
- if (!l) {
- l = SASS_MEMORY_NEW(List, pstate, 1);
- l->append(ARG("$list", Expression));
- }
- if (m) {
- l = m->to_list(pstate);
- }
- for (size_t i = 0, L = l->length(); i < L; ++i) {
- if (Operators::eq(l->value_at_index(i), v)) return SASS_MEMORY_NEW(Number, pstate, (double)(i+1));
- }
- return SASS_MEMORY_NEW(Null, pstate);
- }
-
- Signature join_sig = "join($list1, $list2, $separator: auto, $bracketed: auto)";
- BUILT_IN(join)
- {
- Map_Obj m1 = Cast<Map>(env["$list1"]);
- Map_Obj m2 = Cast<Map>(env["$list2"]);
- List_Obj l1 = Cast<List>(env["$list1"]);
- List_Obj l2 = Cast<List>(env["$list2"]);
- String_Constant_Obj sep = ARG("$separator", String_Constant);
- enum Sass_Separator sep_val = (l1 ? l1->separator() : SASS_SPACE);
- Value* bracketed = ARG("$bracketed", Value);
- bool is_bracketed = (l1 ? l1->is_bracketed() : false);
- if (!l1) {
- l1 = SASS_MEMORY_NEW(List, pstate, 1);
- l1->append(ARG("$list1", Expression));
- sep_val = (l2 ? l2->separator() : SASS_SPACE);
- is_bracketed = (l2 ? l2->is_bracketed() : false);
- }
- if (!l2) {
- l2 = SASS_MEMORY_NEW(List, pstate, 1);
- l2->append(ARG("$list2", Expression));
- }
- if (m1) {
- l1 = m1->to_list(pstate);
- sep_val = SASS_COMMA;
- }
- if (m2) {
- l2 = m2->to_list(pstate);
- }
- size_t len = l1->length() + l2->length();
- std::string sep_str = unquote(sep->value());
- if (sep_str == "space") sep_val = SASS_SPACE;
- else if (sep_str == "comma") sep_val = SASS_COMMA;
- else if (sep_str != "auto") error("argument `$separator` of `" + std::string(sig) + "` must be `space`, `comma`, or `auto`", pstate, traces);
- String_Constant_Obj bracketed_as_str = Cast<String_Constant>(bracketed);
- bool bracketed_is_auto = bracketed_as_str && unquote(bracketed_as_str->value()) == "auto";
- if (!bracketed_is_auto) {
- is_bracketed = !bracketed->is_false();
- }
- List_Obj result = SASS_MEMORY_NEW(List, pstate, len, sep_val, false, is_bracketed);
- result->concat(l1);
- result->concat(l2);
- return result.detach();
- }
-
- Signature append_sig = "append($list, $val, $separator: auto)";
- BUILT_IN(append)
- {
- Map_Obj m = Cast<Map>(env["$list"]);
- List_Obj l = Cast<List>(env["$list"]);
- Expression_Obj v = ARG("$val", Expression);
- if (Selector_List_Ptr sl = Cast<Selector_List>(env["$list"])) {
- Listize listize;
- l = Cast<List>(sl->perform(&listize));
- }
- String_Constant_Obj sep = ARG("$separator", String_Constant);
- if (!l) {
- l = SASS_MEMORY_NEW(List, pstate, 1);
- l->append(ARG("$list", Expression));
- }
- if (m) {
- l = m->to_list(pstate);
- }
- List_Ptr result = SASS_MEMORY_COPY(l);
- std::string sep_str(unquote(sep->value()));
- if (sep_str != "auto") { // check default first
- if (sep_str == "space") result->separator(SASS_SPACE);
- else if (sep_str == "comma") result->separator(SASS_COMMA);
- else error("argument `$separator` of `" + std::string(sig) + "` must be `space`, `comma`, or `auto`", pstate, traces);
- }
- if (l->is_arglist()) {
- result->append(SASS_MEMORY_NEW(Argument,
- v->pstate(),
- v,
- "",
- false,
- false));
-
- } else {
- result->append(v);
- }
- return result;
- }
-
- Signature zip_sig = "zip($lists...)";
- BUILT_IN(zip)
- {
- List_Obj arglist = SASS_MEMORY_COPY(ARG("$lists", List));
- size_t shortest = 0;
- for (size_t i = 0, L = arglist->length(); i < L; ++i) {
- List_Obj ith = Cast<List>(arglist->value_at_index(i));
- Map_Obj mith = Cast<Map>(arglist->value_at_index(i));
- if (!ith) {
- if (mith) {
- ith = mith->to_list(pstate);
- } else {
- ith = SASS_MEMORY_NEW(List, pstate, 1);
- ith->append(arglist->value_at_index(i));
- }
- if (arglist->is_arglist()) {
- Argument_Obj arg = (Argument_Ptr)(arglist->at(i).ptr()); // XXX
- arg->value(ith);
- } else {
- (*arglist)[i] = ith;
- }
- }
- shortest = (i ? std::min(shortest, ith->length()) : ith->length());
- }
- List_Ptr zippers = SASS_MEMORY_NEW(List, pstate, shortest, SASS_COMMA);
- size_t L = arglist->length();
- for (size_t i = 0; i < shortest; ++i) {
- List_Ptr zipper = SASS_MEMORY_NEW(List, pstate, L);
- for (size_t j = 0; j < L; ++j) {
- zipper->append(Cast<List>(arglist->value_at_index(j))->at(i));
- }
- zippers->append(zipper);
- }
- return zippers;
- }
-
- Signature list_separator_sig = "list_separator($list)";
- BUILT_IN(list_separator)
- {
- List_Obj l = Cast<List>(env["$list"]);
- if (!l) {
- l = SASS_MEMORY_NEW(List, pstate, 1);
- l->append(ARG("$list", Expression));
- }
- return SASS_MEMORY_NEW(String_Quoted,
- pstate,
- l->separator() == SASS_COMMA ? "comma" : "space");
- }
-
- /////////////////
- // MAP FUNCTIONS
- /////////////////
-
- Signature map_get_sig = "map-get($map, $key)";
- BUILT_IN(map_get)
- {
- // leaks for "map-get((), foo)" if not Obj
- // investigate why this is (unexpected)
- Map_Obj m = ARGM("$map", Map, ctx);
- Expression_Obj v = ARG("$key", Expression);
- try {
- Expression_Obj val = m->at(v);
- if (!val) return SASS_MEMORY_NEW(Null, pstate);
- val->set_delayed(false);
- return val.detach();
- } catch (const std::out_of_range&) {
- return SASS_MEMORY_NEW(Null, pstate);
- }
- catch (...) { throw; }
- }
-
- Signature map_has_key_sig = "map-has-key($map, $key)";
- BUILT_IN(map_has_key)
- {
- Map_Obj m = ARGM("$map", Map, ctx);
- Expression_Obj v = ARG("$key", Expression);
- return SASS_MEMORY_NEW(Boolean, pstate, m->has(v));
- }
-
- Signature map_keys_sig = "map-keys($map)";
- BUILT_IN(map_keys)
- {
- Map_Obj m = ARGM("$map", Map, ctx);
- List_Ptr result = SASS_MEMORY_NEW(List, pstate, m->length(), SASS_COMMA);
- for ( auto key : m->keys()) {
- result->append(key);
- }
- return result;
- }
-
- Signature map_values_sig = "map-values($map)";
- BUILT_IN(map_values)
- {
- Map_Obj m = ARGM("$map", Map, ctx);
- List_Ptr result = SASS_MEMORY_NEW(List, pstate, m->length(), SASS_COMMA);
- for ( auto key : m->keys()) {
- result->append(m->at(key));
- }
- return result;
- }
-
- Signature map_merge_sig = "map-merge($map1, $map2)";
- BUILT_IN(map_merge)
- {
- Map_Obj m1 = ARGM("$map1", Map, ctx);
- Map_Obj m2 = ARGM("$map2", Map, ctx);
-
- size_t len = m1->length() + m2->length();
- Map_Ptr result = SASS_MEMORY_NEW(Map, pstate, len);
- // concat not implemented for maps
- *result += m1;
- *result += m2;
- return result;
- }
-
- Signature map_remove_sig = "map-remove($map, $keys...)";
- BUILT_IN(map_remove)
- {
- bool remove;
- Map_Obj m = ARGM("$map", Map, ctx);
- List_Obj arglist = ARG("$keys", List);
- Map_Ptr result = SASS_MEMORY_NEW(Map, pstate, 1);
- for (auto key : m->keys()) {
- remove = false;
- for (size_t j = 0, K = arglist->length(); j < K && !remove; ++j) {
- remove = Operators::eq(key, arglist->value_at_index(j));
- }
- if (!remove) *result << std::make_pair(key, m->at(key));
- }
- return result;
- }
-
- Signature keywords_sig = "keywords($args)";
- BUILT_IN(keywords)
- {
- List_Obj arglist = SASS_MEMORY_COPY(ARG("$args", List)); // copy
- Map_Obj result = SASS_MEMORY_NEW(Map, pstate, 1);
- for (size_t i = arglist->size(), L = arglist->length(); i < L; ++i) {
- Expression_Obj obj = arglist->at(i);
- Argument_Obj arg = (Argument_Ptr) obj.ptr(); // XXX
- std::string name = std::string(arg->name());
- name = name.erase(0, 1); // sanitize name (remove dollar sign)
- *result << std::make_pair(SASS_MEMORY_NEW(String_Quoted,
- pstate, name),
- arg->value());
- }
- return result.detach();
- }
-
- //////////////////////////
- // INTROSPECTION FUNCTIONS
- //////////////////////////
-
- Signature type_of_sig = "type-of($value)";
- BUILT_IN(type_of)
- {
- Expression_Ptr v = ARG("$value", Expression);
- return SASS_MEMORY_NEW(String_Quoted, pstate, v->type());
- }
-
- Signature unit_sig = "unit($number)";
- BUILT_IN(unit)
- {
- Number_Obj arg = ARGN("$number");
- std::string str(quote(arg->unit(), '"'));
- return SASS_MEMORY_NEW(String_Quoted, pstate, str);
- }
-
- Signature unitless_sig = "unitless($number)";
- BUILT_IN(unitless)
- {
- Number_Obj arg = ARGN("$number");
- bool unitless = arg->is_unitless();
- return SASS_MEMORY_NEW(Boolean, pstate, unitless);
- }
-
- Signature comparable_sig = "comparable($number-1, $number-2)";
- BUILT_IN(comparable)
- {
- Number_Obj n1 = ARGN("$number-1");
- Number_Obj n2 = ARGN("$number-2");
- if (n1->is_unitless() || n2->is_unitless()) {
- return SASS_MEMORY_NEW(Boolean, pstate, true);
- }
- // normalize into main units
- n1->normalize(); n2->normalize();
- Units &lhs_unit = *n1, &rhs_unit = *n2;
- bool is_comparable = (lhs_unit == rhs_unit);
- return SASS_MEMORY_NEW(Boolean, pstate, is_comparable);
- }
-
- Signature variable_exists_sig = "variable-exists($name)";
- BUILT_IN(variable_exists)
- {
- std::string s = Util::normalize_underscores(unquote(ARG("$name", String_Constant)->value()));
-
- if(d_env.has("$"+s)) {
- return SASS_MEMORY_NEW(Boolean, pstate, true);
- }
- else {
- return SASS_MEMORY_NEW(Boolean, pstate, false);
- }
- }
-
- Signature global_variable_exists_sig = "global-variable-exists($name)";
- BUILT_IN(global_variable_exists)
- {
- std::string s = Util::normalize_underscores(unquote(ARG("$name", String_Constant)->value()));
-
- if(d_env.has_global("$"+s)) {
- return SASS_MEMORY_NEW(Boolean, pstate, true);
- }
- else {
- return SASS_MEMORY_NEW(Boolean, pstate, false);
- }
- }
-
- Signature function_exists_sig = "function-exists($name)";
- BUILT_IN(function_exists)
- {
- String_Constant_Ptr ss = Cast<String_Constant>(env["$name"]);
- if (!ss) {
- error("$name: " + (env["$name"]->to_string()) + " is not a string for `function-exists'", pstate, traces);
- }
-
- std::string name = Util::normalize_underscores(unquote(ss->value()));
-
- if(d_env.has_global(name+"[f]")) {
- return SASS_MEMORY_NEW(Boolean, pstate, true);
- }
- else {
- return SASS_MEMORY_NEW(Boolean, pstate, false);
- }
- }
-
- Signature mixin_exists_sig = "mixin-exists($name)";
- BUILT_IN(mixin_exists)
- {
- std::string s = Util::normalize_underscores(unquote(ARG("$name", String_Constant)->value()));
-
- if(d_env.has_global(s+"[m]")) {
- return SASS_MEMORY_NEW(Boolean, pstate, true);
- }
- else {
- return SASS_MEMORY_NEW(Boolean, pstate, false);
- }
- }
-
- Signature feature_exists_sig = "feature-exists($name)";
- BUILT_IN(feature_exists)
- {
- std::string s = unquote(ARG("$name", String_Constant)->value());
-
- if(features.find(s) == features.end()) {
- return SASS_MEMORY_NEW(Boolean, pstate, false);
- }
- else {
- return SASS_MEMORY_NEW(Boolean, pstate, true);
- }
- }
-
- Signature call_sig = "call($name, $args...)";
- BUILT_IN(call)
- {
- std::string name;
- Function_Ptr ff = Cast<Function>(env["$name"]);
- String_Constant_Ptr ss = Cast<String_Constant>(env["$name"]);
-
- if (ss) {
- name = Util::normalize_underscores(unquote(ss->value()));
- std::cerr << "DEPRECATION WARNING: ";
- std::cerr << "Passing a string to call() is deprecated and will be illegal" << std::endl;
- std::cerr << "in Sass 4.0. Use call(get-function(" + quote(name) + ")) instead." << std::endl;
- std::cerr << std::endl;
- } else if (ff) {
- name = ff->name();
- }
-
- List_Obj arglist = SASS_MEMORY_COPY(ARG("$args", List));
-
- Arguments_Obj args = SASS_MEMORY_NEW(Arguments, pstate);
- // std::string full_name(name + "[f]");
- // Definition_Ptr def = d_env.has(full_name) ? Cast<Definition>((d_env)[full_name]) : 0;
- // Parameters_Ptr params = def ? def->parameters() : 0;
- // size_t param_size = params ? params->length() : 0;
- for (size_t i = 0, L = arglist->length(); i < L; ++i) {
- Expression_Obj expr = arglist->value_at_index(i);
- // if (params && params->has_rest_parameter()) {
- // Parameter_Obj p = param_size > i ? (*params)[i] : 0;
- // List_Ptr list = Cast<List>(expr);
- // if (list && p && !p->is_rest_parameter()) expr = (*list)[0];
- // }
- if (arglist->is_arglist()) {
- Expression_Obj obj = arglist->at(i);
- Argument_Obj arg = (Argument_Ptr) obj.ptr(); // XXX
- args->append(SASS_MEMORY_NEW(Argument,
- pstate,
- expr,
- arg ? arg->name() : "",
- arg ? arg->is_rest_argument() : false,
- arg ? arg->is_keyword_argument() : false));
- } else {
- args->append(SASS_MEMORY_NEW(Argument, pstate, expr));
- }
- }
- Function_Call_Obj func = SASS_MEMORY_NEW(Function_Call, pstate, name, args);
- Expand expand(ctx, &d_env, &selector_stack);
- func->via_call(true); // calc invoke is allowed
- if (ff) func->func(ff);
- return func->perform(&expand.eval);
- }
-
- ////////////////////
- // BOOLEAN FUNCTIONS
- ////////////////////
-
- Signature not_sig = "not($value)";
- BUILT_IN(sass_not)
- {
- return SASS_MEMORY_NEW(Boolean, pstate, ARG("$value", Expression)->is_false());
- }
-
- Signature if_sig = "if($condition, $if-true, $if-false)";
- // BUILT_IN(sass_if)
- // { return ARG("$condition", Expression)->is_false() ? ARG("$if-false", Expression) : ARG("$if-true", Expression); }
- BUILT_IN(sass_if)
- {
- Expand expand(ctx, &d_env, &selector_stack);
- Expression_Obj cond = ARG("$condition", Expression)->perform(&expand.eval);
- bool is_true = !cond->is_false();
- Expression_Obj res = ARG(is_true ? "$if-true" : "$if-false", Expression);
- res = res->perform(&expand.eval);
- res->set_delayed(false); // clone?
- return res.detach();
- }
-
- //////////////////////////
- // MISCELLANEOUS FUNCTIONS
- //////////////////////////
-
- // value.check_deprecated_interp if value.is_a?(Sass::Script::Value::String)
- // unquoted_string(value.to_sass)
-
- Signature inspect_sig = "inspect($value)";
- BUILT_IN(inspect)
- {
- Expression_Ptr v = ARG("$value", Expression);
- if (v->concrete_type() == Expression::NULL_VAL) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "null");
- } else if (v->concrete_type() == Expression::BOOLEAN && v->is_false()) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "false");
- } else if (v->concrete_type() == Expression::STRING) {
- return v;
- } else {
- // ToDo: fix to_sass for nested parentheses
- Sass_Output_Style old_style;
- old_style = ctx.c_options.output_style;
- ctx.c_options.output_style = TO_SASS;
- Emitter emitter(ctx.c_options);
- Inspect i(emitter);
- i.in_declaration = false;
- v->perform(&i);
- ctx.c_options.output_style = old_style;
- return SASS_MEMORY_NEW(String_Quoted, pstate, i.get_buffer());
- }
- // return v;
- }
- Signature selector_nest_sig = "selector-nest($selectors...)";
- BUILT_IN(selector_nest)
- {
- List_Ptr arglist = ARG("$selectors", List);
-
- // Not enough parameters
- if( arglist->length() == 0 )
- error("$selectors: At least one selector must be passed for `selector-nest'", pstate, traces);
-
- // Parse args into vector of selectors
- std::vector<Selector_List_Obj> parsedSelectors;
- for (size_t i = 0, L = arglist->length(); i < L; ++i) {
- Expression_Obj exp = Cast<Expression>(arglist->value_at_index(i));
- if (exp->concrete_type() == Expression::NULL_VAL) {
- std::stringstream msg;
- msg << "$selectors: null is not a valid selector: it must be a string,\n";
- msg << "a list of strings, or a list of lists of strings for 'selector-nest'";
- error(msg.str(), pstate, traces);
- }
- if (String_Constant_Obj str = Cast<String_Constant>(exp)) {
- str->quote_mark(0);
- }
- std::string exp_src = exp->to_string(ctx.c_options);
- Selector_List_Obj sel = Parser::parse_selector(exp_src.c_str(), ctx, traces);
- parsedSelectors.push_back(sel);
- }
-
- // Nothing to do
- if( parsedSelectors.empty() ) {
- return SASS_MEMORY_NEW(Null, pstate);
- }
-
- // Set the first element as the `result`, keep appending to as we go down the parsedSelector vector.
- std::vector<Selector_List_Obj>::iterator itr = parsedSelectors.begin();
- Selector_List_Obj result = *itr;
- ++itr;
-
- for(;itr != parsedSelectors.end(); ++itr) {
- Selector_List_Obj child = *itr;
- std::vector<Complex_Selector_Obj> exploded;
- selector_stack.push_back(result);
- Selector_List_Obj rv = child->resolve_parent_refs(selector_stack, traces);
- selector_stack.pop_back();
- for (size_t m = 0, mLen = rv->length(); m < mLen; ++m) {
- exploded.push_back((*rv)[m]);
- }
- result->elements(exploded);
- }
-
- Listize listize;
- return result->perform(&listize);
- }
-
- Signature selector_append_sig = "selector-append($selectors...)";
- BUILT_IN(selector_append)
- {
- List_Ptr arglist = ARG("$selectors", List);
-
- // Not enough parameters
- if( arglist->length() == 0 )
- error("$selectors: At least one selector must be passed for `selector-append'", pstate, traces);
-
- // Parse args into vector of selectors
- std::vector<Selector_List_Obj> parsedSelectors;
- for (size_t i = 0, L = arglist->length(); i < L; ++i) {
- Expression_Obj exp = Cast<Expression>(arglist->value_at_index(i));
- if (exp->concrete_type() == Expression::NULL_VAL) {
- std::stringstream msg;
- msg << "$selectors: null is not a valid selector: it must be a string,\n";
- msg << "a list of strings, or a list of lists of strings for 'selector-append'";
- error(msg.str(), pstate, traces);
- }
- if (String_Constant_Ptr str = Cast<String_Constant>(exp)) {
- str->quote_mark(0);
- }
- std::string exp_src = exp->to_string();
- Selector_List_Obj sel = Parser::parse_selector(exp_src.c_str(), ctx, traces);
- parsedSelectors.push_back(sel);
- }
-
- // Nothing to do
- if( parsedSelectors.empty() ) {
- return SASS_MEMORY_NEW(Null, pstate);
- }
-
- // Set the first element as the `result`, keep appending to as we go down the parsedSelector vector.
- std::vector<Selector_List_Obj>::iterator itr = parsedSelectors.begin();
- Selector_List_Obj result = *itr;
- ++itr;
-
- for(;itr != parsedSelectors.end(); ++itr) {
- Selector_List_Obj child = *itr;
- std::vector<Complex_Selector_Obj> newElements;
-
- // For every COMPLEX_SELECTOR in `result`
- // For every COMPLEX_SELECTOR in `child`
- // let parentSeqClone equal a copy of result->elements[i]
- // let childSeq equal child->elements[j]
- // Append all of childSeq head elements into parentSeqClone
- // Set the innermost tail of parentSeqClone, to childSeq's tail
- // Replace result->elements with newElements
- for (size_t i = 0, resultLen = result->length(); i < resultLen; ++i) {
- for (size_t j = 0, childLen = child->length(); j < childLen; ++j) {
- Complex_Selector_Obj parentSeqClone = SASS_MEMORY_CLONE((*result)[i]);
- Complex_Selector_Obj childSeq = (*child)[j];
- Complex_Selector_Obj base = childSeq->tail();
-
- // Must be a simple sequence
- if( childSeq->combinator() != Complex_Selector::Combinator::ANCESTOR_OF ) {
- std::string msg("Can't append \"");
- msg += childSeq->to_string();
- msg += "\" to \"";
- msg += parentSeqClone->to_string();
- msg += "\" for `selector-append'";
- error(msg, pstate, traces);
- }
-
- // Cannot be a Universal selector
- Element_Selector_Obj pType = Cast<Element_Selector>(childSeq->head()->first());
- if(pType && pType->name() == "*") {
- std::string msg("Can't append \"");
- msg += childSeq->to_string();
- msg += "\" to \"";
- msg += parentSeqClone->to_string();
- msg += "\" for `selector-append'";
- error(msg, pstate, traces);
- }
-
- // TODO: Add check for namespace stuff
-
- // append any selectors in childSeq's head
- parentSeqClone->innermost()->head()->concat(base->head());
-
- // Set parentSeqClone new tail
- parentSeqClone->innermost()->tail( base->tail() );
-
- newElements.push_back(parentSeqClone);
- }
- }
-
- result->elements(newElements);
- }
-
- Listize listize;
- return result->perform(&listize);
- }
-
- Signature selector_unify_sig = "selector-unify($selector1, $selector2)";
- BUILT_IN(selector_unify)
- {
- Selector_List_Obj selector1 = ARGSEL("$selector1", Selector_List_Obj, p_contextualize);
- Selector_List_Obj selector2 = ARGSEL("$selector2", Selector_List_Obj, p_contextualize);
-
- Selector_List_Obj result = selector1->unify_with(selector2);
- Listize listize;
- return result->perform(&listize);
- }
-
- Signature simple_selectors_sig = "simple-selectors($selector)";
- BUILT_IN(simple_selectors)
- {
- Compound_Selector_Obj sel = ARGSEL("$selector", Compound_Selector_Obj, p_contextualize);
-
- List_Ptr l = SASS_MEMORY_NEW(List, sel->pstate(), sel->length(), SASS_COMMA);
-
- for (size_t i = 0, L = sel->length(); i < L; ++i) {
- Simple_Selector_Obj ss = (*sel)[i];
- std::string ss_string = ss->to_string() ;
-
- l->append(SASS_MEMORY_NEW(String_Quoted, ss->pstate(), ss_string));
- }
-
- return l;
- }
-
- Signature selector_extend_sig = "selector-extend($selector, $extendee, $extender)";
- BUILT_IN(selector_extend)
- {
- Selector_List_Obj selector = ARGSEL("$selector", Selector_List_Obj, p_contextualize);
- Selector_List_Obj extendee = ARGSEL("$extendee", Selector_List_Obj, p_contextualize);
- Selector_List_Obj extender = ARGSEL("$extender", Selector_List_Obj, p_contextualize);
-
- Subset_Map subset_map;
- extender->populate_extends(extendee, subset_map);
- Extend extend(subset_map);
-
- Selector_List_Obj result = extend.extendSelectorList(selector, false);
-
- Listize listize;
- return result->perform(&listize);
- }
-
- Signature selector_replace_sig = "selector-replace($selector, $original, $replacement)";
- BUILT_IN(selector_replace)
- {
- Selector_List_Obj selector = ARGSEL("$selector", Selector_List_Obj, p_contextualize);
- Selector_List_Obj original = ARGSEL("$original", Selector_List_Obj, p_contextualize);
- Selector_List_Obj replacement = ARGSEL("$replacement", Selector_List_Obj, p_contextualize);
- Subset_Map subset_map;
- replacement->populate_extends(original, subset_map);
- Extend extend(subset_map);
-
- Selector_List_Obj result = extend.extendSelectorList(selector, true);
-
- Listize listize;
- return result->perform(&listize);
- }
-
- Signature selector_parse_sig = "selector-parse($selector)";
- BUILT_IN(selector_parse)
- {
- Selector_List_Obj sel = ARGSEL("$selector", Selector_List_Obj, p_contextualize);
-
- Listize listize;
- return sel->perform(&listize);
- }
-
- Signature is_superselector_sig = "is-superselector($super, $sub)";
- BUILT_IN(is_superselector)
- {
- Selector_List_Obj sel_sup = ARGSEL("$super", Selector_List_Obj, p_contextualize);
- Selector_List_Obj sel_sub = ARGSEL("$sub", Selector_List_Obj, p_contextualize);
- bool result = sel_sup->is_superselector_of(sel_sub);
- return SASS_MEMORY_NEW(Boolean, pstate, result);
- }
-
- Signature unique_id_sig = "unique-id()";
- BUILT_IN(unique_id)
- {
- std::stringstream ss;
- std::uniform_real_distribution<> distributor(0, 4294967296); // 16^8
- uint_fast32_t distributed = static_cast<uint_fast32_t>(distributor(rand));
- ss << "u" << std::setfill('0') << std::setw(8) << std::hex << distributed;
- return SASS_MEMORY_NEW(String_Quoted, pstate, ss.str());
- }
-
- Signature is_bracketed_sig = "is-bracketed($list)";
- BUILT_IN(is_bracketed)
- {
- Value_Obj value = ARG("$list", Value);
- List_Obj list = Cast<List>(value);
- return SASS_MEMORY_NEW(Boolean, pstate, list && list->is_bracketed());
- }
-
- Signature content_exists_sig = "content-exists()";
- BUILT_IN(content_exists)
- {
- if (!d_env.has_global("is_in_mixin")) {
- error("Cannot call content-exists() except within a mixin.", pstate, traces);
- }
- return SASS_MEMORY_NEW(Boolean, pstate, d_env.has_lexical("@content[m]"));
- }
-
- Signature get_function_sig = "get-function($name, $css: false)";
- BUILT_IN(get_function)
- {
- String_Constant_Ptr ss = Cast<String_Constant>(env["$name"]);
- if (!ss) {
- error("$name: " + (env["$name"]->to_string()) + " is not a string for `get-function'", pstate, traces);
- }
-
- std::string name = Util::normalize_underscores(unquote(ss->value()));
- std::string full_name = name + "[f]";
-
- Boolean_Obj css = ARG("$css", Boolean);
- if (!css->is_false()) {
- Definition_Ptr def = SASS_MEMORY_NEW(Definition,
- pstate,
- name,
- SASS_MEMORY_NEW(Parameters, pstate),
- SASS_MEMORY_NEW(Block, pstate, 0, false),
- Definition::FUNCTION);
- return SASS_MEMORY_NEW(Function, pstate, def, true);
- }
-
-
- if (!d_env.has_global(full_name)) {
- error("Function not found: " + name, pstate, traces);
- }
-
- Definition_Ptr def = Cast<Definition>(d_env[full_name]);
- return SASS_MEMORY_NEW(Function, pstate, def, false);
- }
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/functions.hpp b/node_modules/node-sass/src/libsass/src/functions.hpp
deleted file mode 100644
index 7019be9..0000000
--- a/node_modules/node-sass/src/libsass/src/functions.hpp
+++ /dev/null
@@ -1,198 +0,0 @@
-#ifndef SASS_FUNCTIONS_H
-#define SASS_FUNCTIONS_H
-
-#include "listize.hpp"
-#include "position.hpp"
-#include "environment.hpp"
-#include "ast_fwd_decl.hpp"
-#include "sass/functions.h"
-
-#define BUILT_IN(name) Expression_Ptr \
-name(Env& env, Env& d_env, Context& ctx, Signature sig, ParserState pstate, Backtraces traces, std::vector<Selector_List_Obj> selector_stack)
-
-namespace Sass {
- struct Backtrace;
- typedef const char* Signature;
- typedef Expression_Ptr (*Native_Function)(Env&, Env&, Context&, Signature, ParserState, Backtraces, std::vector<Selector_List_Obj>);
-
- Definition_Ptr make_native_function(Signature, Native_Function, Context& ctx);
- Definition_Ptr make_c_function(Sass_Function_Entry c_func, Context& ctx);
-
- std::string function_name(Signature);
-
- namespace Functions {
-
- extern Signature rgb_sig;
- extern Signature rgba_4_sig;
- extern Signature rgba_2_sig;
- extern Signature red_sig;
- extern Signature green_sig;
- extern Signature blue_sig;
- extern Signature mix_sig;
- extern Signature hsl_sig;
- extern Signature hsla_sig;
- extern Signature hue_sig;
- extern Signature saturation_sig;
- extern Signature lightness_sig;
- extern Signature adjust_hue_sig;
- extern Signature lighten_sig;
- extern Signature darken_sig;
- extern Signature saturate_sig;
- extern Signature desaturate_sig;
- extern Signature grayscale_sig;
- extern Signature complement_sig;
- extern Signature invert_sig;
- extern Signature alpha_sig;
- extern Signature opacity_sig;
- extern Signature opacify_sig;
- extern Signature fade_in_sig;
- extern Signature transparentize_sig;
- extern Signature fade_out_sig;
- extern Signature adjust_color_sig;
- extern Signature scale_color_sig;
- extern Signature change_color_sig;
- extern Signature ie_hex_str_sig;
- extern Signature unquote_sig;
- extern Signature quote_sig;
- extern Signature str_length_sig;
- extern Signature str_insert_sig;
- extern Signature str_index_sig;
- extern Signature str_slice_sig;
- extern Signature to_upper_case_sig;
- extern Signature to_lower_case_sig;
- extern Signature percentage_sig;
- extern Signature round_sig;
- extern Signature ceil_sig;
- extern Signature floor_sig;
- extern Signature abs_sig;
- extern Signature min_sig;
- extern Signature max_sig;
- extern Signature inspect_sig;
- extern Signature random_sig;
- extern Signature length_sig;
- extern Signature nth_sig;
- extern Signature index_sig;
- extern Signature join_sig;
- extern Signature append_sig;
- extern Signature zip_sig;
- extern Signature list_separator_sig;
- extern Signature type_of_sig;
- extern Signature unit_sig;
- extern Signature unitless_sig;
- extern Signature comparable_sig;
- extern Signature variable_exists_sig;
- extern Signature global_variable_exists_sig;
- extern Signature function_exists_sig;
- extern Signature mixin_exists_sig;
- extern Signature feature_exists_sig;
- extern Signature call_sig;
- extern Signature not_sig;
- extern Signature if_sig;
- extern Signature map_get_sig;
- extern Signature map_merge_sig;
- extern Signature map_remove_sig;
- extern Signature map_keys_sig;
- extern Signature map_values_sig;
- extern Signature map_has_key_sig;
- extern Signature keywords_sig;
- extern Signature set_nth_sig;
- extern Signature unique_id_sig;
- extern Signature selector_nest_sig;
- extern Signature selector_append_sig;
- extern Signature selector_extend_sig;
- extern Signature selector_replace_sig;
- extern Signature selector_unify_sig;
- extern Signature is_superselector_sig;
- extern Signature simple_selectors_sig;
- extern Signature selector_parse_sig;
- extern Signature is_bracketed_sig;
- extern Signature content_exists_sig;
- extern Signature get_function_sig;
-
- BUILT_IN(rgb);
- BUILT_IN(rgba_4);
- BUILT_IN(rgba_2);
- BUILT_IN(red);
- BUILT_IN(green);
- BUILT_IN(blue);
- BUILT_IN(mix);
- BUILT_IN(hsl);
- BUILT_IN(hsla);
- BUILT_IN(hue);
- BUILT_IN(saturation);
- BUILT_IN(lightness);
- BUILT_IN(adjust_hue);
- BUILT_IN(lighten);
- BUILT_IN(darken);
- BUILT_IN(saturate);
- BUILT_IN(desaturate);
- BUILT_IN(grayscale);
- BUILT_IN(complement);
- BUILT_IN(invert);
- BUILT_IN(alpha);
- BUILT_IN(opacify);
- BUILT_IN(transparentize);
- BUILT_IN(adjust_color);
- BUILT_IN(scale_color);
- BUILT_IN(change_color);
- BUILT_IN(ie_hex_str);
- BUILT_IN(sass_unquote);
- BUILT_IN(sass_quote);
- BUILT_IN(str_length);
- BUILT_IN(str_insert);
- BUILT_IN(str_index);
- BUILT_IN(str_slice);
- BUILT_IN(to_upper_case);
- BUILT_IN(to_lower_case);
- BUILT_IN(percentage);
- BUILT_IN(round);
- BUILT_IN(ceil);
- BUILT_IN(floor);
- BUILT_IN(abs);
- BUILT_IN(min);
- BUILT_IN(max);
- BUILT_IN(inspect);
- BUILT_IN(random);
- BUILT_IN(length);
- BUILT_IN(nth);
- BUILT_IN(index);
- BUILT_IN(join);
- BUILT_IN(append);
- BUILT_IN(zip);
- BUILT_IN(list_separator);
- BUILT_IN(type_of);
- BUILT_IN(unit);
- BUILT_IN(unitless);
- BUILT_IN(comparable);
- BUILT_IN(variable_exists);
- BUILT_IN(global_variable_exists);
- BUILT_IN(function_exists);
- BUILT_IN(mixin_exists);
- BUILT_IN(feature_exists);
- BUILT_IN(call);
- BUILT_IN(sass_not);
- BUILT_IN(sass_if);
- BUILT_IN(map_get);
- BUILT_IN(map_merge);
- BUILT_IN(map_remove);
- BUILT_IN(map_keys);
- BUILT_IN(map_values);
- BUILT_IN(map_has_key);
- BUILT_IN(keywords);
- BUILT_IN(set_nth);
- BUILT_IN(unique_id);
- BUILT_IN(selector_nest);
- BUILT_IN(selector_append);
- BUILT_IN(selector_extend);
- BUILT_IN(selector_replace);
- BUILT_IN(selector_unify);
- BUILT_IN(is_superselector);
- BUILT_IN(simple_selectors);
- BUILT_IN(selector_parse);
- BUILT_IN(is_bracketed);
- BUILT_IN(content_exists);
- BUILT_IN(get_function);
- }
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/inspect.cpp b/node_modules/node-sass/src/libsass/src/inspect.cpp
deleted file mode 100644
index 5cd8cc0..0000000
--- a/node_modules/node-sass/src/libsass/src/inspect.cpp
+++ /dev/null
@@ -1,1138 +0,0 @@
-#include "sass.hpp"
-#include <cmath>
-#include <string>
-#include <iostream>
-#include <iomanip>
-#include <stdint.h>
-#include <stdint.h>
-
-#include "ast.hpp"
-#include "inspect.hpp"
-#include "context.hpp"
-#include "listize.hpp"
-#include "color_maps.hpp"
-#include "utf8/checked.h"
-
-namespace Sass {
-
- Inspect::Inspect(const Emitter& emi)
- : Emitter(emi)
- { }
- Inspect::~Inspect() { }
-
- // statements
- void Inspect::operator()(Block_Ptr block)
- {
- if (!block->is_root()) {
- add_open_mapping(block);
- append_scope_opener();
- }
- if (output_style() == NESTED) indentation += block->tabs();
- for (size_t i = 0, L = block->length(); i < L; ++i) {
- (*block)[i]->perform(this);
- }
- if (output_style() == NESTED) indentation -= block->tabs();
- if (!block->is_root()) {
- append_scope_closer();
- add_close_mapping(block);
- }
-
- }
-
- void Inspect::operator()(Ruleset_Ptr ruleset)
- {
- if (ruleset->selector()) {
- opt.in_selector = true;
- ruleset->selector()->perform(this);
- opt.in_selector = false;
- }
- if (ruleset->block()) {
- ruleset->block()->perform(this);
- }
- }
-
- void Inspect::operator()(Keyframe_Rule_Ptr rule)
- {
- if (rule->name()) rule->name()->perform(this);
- if (rule->block()) rule->block()->perform(this);
- }
-
- void Inspect::operator()(Bubble_Ptr bubble)
- {
- append_indentation();
- append_token("::BUBBLE", bubble);
- append_scope_opener();
- bubble->node()->perform(this);
- append_scope_closer();
- }
-
- void Inspect::operator()(Media_Block_Ptr media_block)
- {
- append_indentation();
- append_token("@media", media_block);
- append_mandatory_space();
- in_media_block = true;
- media_block->media_queries()->perform(this);
- in_media_block = false;
- media_block->block()->perform(this);
- }
-
- void Inspect::operator()(Supports_Block_Ptr feature_block)
- {
- append_indentation();
- append_token("@supports", feature_block);
- append_mandatory_space();
- feature_block->condition()->perform(this);
- feature_block->block()->perform(this);
- }
-
- void Inspect::operator()(At_Root_Block_Ptr at_root_block)
- {
- append_indentation();
- append_token("@at-root ", at_root_block);
- append_mandatory_space();
- if(at_root_block->expression()) at_root_block->expression()->perform(this);
- if(at_root_block->block()) at_root_block->block()->perform(this);
- }
-
- void Inspect::operator()(Directive_Ptr at_rule)
- {
- append_indentation();
- append_token(at_rule->keyword(), at_rule);
- if (at_rule->selector()) {
- append_mandatory_space();
- bool was_wrapped = in_wrapped;
- in_wrapped = true;
- at_rule->selector()->perform(this);
- in_wrapped = was_wrapped;
- }
- if (at_rule->value()) {
- append_mandatory_space();
- at_rule->value()->perform(this);
- }
- if (at_rule->block()) {
- at_rule->block()->perform(this);
- }
- else {
- append_delimiter();
- }
- }
-
- void Inspect::operator()(Declaration_Ptr dec)
- {
- if (dec->value()->concrete_type() == Expression::NULL_VAL) return;
- bool was_decl = in_declaration;
- in_declaration = true;
- LOCAL_FLAG(in_custom_property, dec->is_custom_property());
-
- if (output_style() == NESTED)
- indentation += dec->tabs();
- append_indentation();
- if (dec->property())
- dec->property()->perform(this);
- append_colon_separator();
-
- if (dec->value()->concrete_type() == Expression::SELECTOR) {
- Listize listize;
- Expression_Obj ls = dec->value()->perform(&listize);
- ls->perform(this);
- } else {
- dec->value()->perform(this);
- }
-
- if (dec->is_important()) {
- append_optional_space();
- append_string("!important");
- }
- append_delimiter();
- if (output_style() == NESTED)
- indentation -= dec->tabs();
- in_declaration = was_decl;
- }
-
- void Inspect::operator()(Assignment_Ptr assn)
- {
- append_token(assn->variable(), assn);
- append_colon_separator();
- assn->value()->perform(this);
- if (assn->is_default()) {
- append_optional_space();
- append_string("!default");
- }
- append_delimiter();
- }
-
- void Inspect::operator()(Import_Ptr import)
- {
- if (!import->urls().empty()) {
- append_token("@import", import);
- append_mandatory_space();
-
- import->urls().front()->perform(this);
- if (import->urls().size() == 1) {
- if (import->import_queries()) {
- append_mandatory_space();
- import->import_queries()->perform(this);
- }
- }
- append_delimiter();
- for (size_t i = 1, S = import->urls().size(); i < S; ++i) {
- append_mandatory_linefeed();
- append_token("@import", import);
- append_mandatory_space();
-
- import->urls()[i]->perform(this);
- if (import->urls().size() - 1 == i) {
- if (import->import_queries()) {
- append_mandatory_space();
- import->import_queries()->perform(this);
- }
- }
- append_delimiter();
- }
- }
- }
-
- void Inspect::operator()(Import_Stub_Ptr import)
- {
- append_indentation();
- append_token("@import", import);
- append_mandatory_space();
- append_string(import->imp_path());
- append_delimiter();
- }
-
- void Inspect::operator()(Warning_Ptr warning)
- {
- append_indentation();
- append_token("@warn", warning);
- append_mandatory_space();
- warning->message()->perform(this);
- append_delimiter();
- }
-
- void Inspect::operator()(Error_Ptr error)
- {
- append_indentation();
- append_token("@error", error);
- append_mandatory_space();
- error->message()->perform(this);
- append_delimiter();
- }
-
- void Inspect::operator()(Debug_Ptr debug)
- {
- append_indentation();
- append_token("@debug", debug);
- append_mandatory_space();
- debug->value()->perform(this);
- append_delimiter();
- }
-
- void Inspect::operator()(Comment_Ptr comment)
- {
- in_comment = true;
- comment->text()->perform(this);
- in_comment = false;
- }
-
- void Inspect::operator()(If_Ptr cond)
- {
- append_indentation();
- append_token("@if", cond);
- append_mandatory_space();
- cond->predicate()->perform(this);
- cond->block()->perform(this);
- if (cond->alternative()) {
- append_optional_linefeed();
- append_indentation();
- append_string("else");
- cond->alternative()->perform(this);
- }
- }
-
- void Inspect::operator()(For_Ptr loop)
- {
- append_indentation();
- append_token("@for", loop);
- append_mandatory_space();
- append_string(loop->variable());
- append_string(" from ");
- loop->lower_bound()->perform(this);
- append_string(loop->is_inclusive() ? " through " : " to ");
- loop->upper_bound()->perform(this);
- loop->block()->perform(this);
- }
-
- void Inspect::operator()(Each_Ptr loop)
- {
- append_indentation();
- append_token("@each", loop);
- append_mandatory_space();
- append_string(loop->variables()[0]);
- for (size_t i = 1, L = loop->variables().size(); i < L; ++i) {
- append_comma_separator();
- append_string(loop->variables()[i]);
- }
- append_string(" in ");
- loop->list()->perform(this);
- loop->block()->perform(this);
- }
-
- void Inspect::operator()(While_Ptr loop)
- {
- append_indentation();
- append_token("@while", loop);
- append_mandatory_space();
- loop->predicate()->perform(this);
- loop->block()->perform(this);
- }
-
- void Inspect::operator()(Return_Ptr ret)
- {
- append_indentation();
- append_token("@return", ret);
- append_mandatory_space();
- ret->value()->perform(this);
- append_delimiter();
- }
-
- void Inspect::operator()(Extension_Ptr extend)
- {
- append_indentation();
- append_token("@extend", extend);
- append_mandatory_space();
- extend->selector()->perform(this);
- append_delimiter();
- }
-
- void Inspect::operator()(Definition_Ptr def)
- {
- append_indentation();
- if (def->type() == Definition::MIXIN) {
- append_token("@mixin", def);
- append_mandatory_space();
- } else {
- append_token("@function", def);
- append_mandatory_space();
- }
- append_string(def->name());
- def->parameters()->perform(this);
- def->block()->perform(this);
- }
-
- void Inspect::operator()(Mixin_Call_Ptr call)
- {
- append_indentation();
- append_token("@include", call);
- append_mandatory_space();
- append_string(call->name());
- if (call->arguments()) {
- call->arguments()->perform(this);
- }
- if (call->block()) {
- append_optional_space();
- call->block()->perform(this);
- }
- if (!call->block()) append_delimiter();
- }
-
- void Inspect::operator()(Content_Ptr content)
- {
- append_indentation();
- append_token("@content", content);
- append_delimiter();
- }
-
- void Inspect::operator()(Map_Ptr map)
- {
- if (output_style() == TO_SASS && map->empty()) {
- append_string("()");
- return;
- }
- if (map->empty()) return;
- if (map->is_invisible()) return;
- bool items_output = false;
- append_string("(");
- for (auto key : map->keys()) {
- if (items_output) append_comma_separator();
- key->perform(this);
- append_colon_separator();
- LOCAL_FLAG(in_space_array, true);
- LOCAL_FLAG(in_comma_array, true);
- map->at(key)->perform(this);
- items_output = true;
- }
- append_string(")");
- }
-
- std::string Inspect::lbracket(List_Ptr list) {
- return list->is_bracketed() ? "[" : "(";
- }
-
- std::string Inspect::rbracket(List_Ptr list) {
- return list->is_bracketed() ? "]" : ")";
- }
-
- void Inspect::operator()(List_Ptr list)
- {
- if (list->empty() && (output_style() == TO_SASS || list->is_bracketed())) {
- append_string(lbracket(list));
- append_string(rbracket(list));
- return;
- }
- std::string sep(list->separator() == SASS_SPACE ? " " : ",");
- if ((output_style() != COMPRESSED) && sep == ",") sep += " ";
- else if (in_media_block && sep != " ") sep += " "; // verified
- if (list->empty()) return;
- bool items_output = false;
-
- bool was_space_array = in_space_array;
- bool was_comma_array = in_comma_array;
- // if the list is bracketed, always include the left bracket
- if (list->is_bracketed()) {
- append_string(lbracket(list));
- }
- // probably ruby sass eqivalent of element_needs_parens
- else if (output_style() == TO_SASS &&
- list->length() == 1 &&
- !list->from_selector() &&
- !Cast<List>(list->at(0)) &&
- !Cast<Selector_List>(list->at(0))
- ) {
- append_string(lbracket(list));
- }
- else if (!in_declaration && (list->separator() == SASS_HASH ||
- (list->separator() == SASS_SPACE && in_space_array) ||
- (list->separator() == SASS_COMMA && in_comma_array)
- )) {
- append_string(lbracket(list));
- }
-
- if (list->separator() == SASS_SPACE) in_space_array = true;
- else if (list->separator() == SASS_COMMA) in_comma_array = true;
-
- for (size_t i = 0, L = list->size(); i < L; ++i) {
- if (list->separator() == SASS_HASH)
- { sep[0] = i % 2 ? ':' : ','; }
- Expression_Obj list_item = list->at(i);
- if (output_style() != TO_SASS) {
- if (list_item->is_invisible()) {
- // this fixes an issue with "" in a list
- if (!Cast<String_Constant>(list_item)) {
- continue;
- }
- }
- }
- if (items_output) {
- append_string(sep);
- }
- if (items_output && sep != " ")
- append_optional_space();
- list_item->perform(this);
- items_output = true;
- }
-
- in_comma_array = was_comma_array;
- in_space_array = was_space_array;
-
- // if the list is bracketed, always include the right bracket
- if (list->is_bracketed()) {
- if (list->separator() == SASS_COMMA && list->size() == 1) {
- append_string(",");
- }
- append_string(rbracket(list));
- }
- // probably ruby sass eqivalent of element_needs_parens
- else if (output_style() == TO_SASS &&
- list->length() == 1 &&
- !list->from_selector() &&
- !Cast<List>(list->at(0)) &&
- !Cast<Selector_List>(list->at(0))
- ) {
- append_string(",");
- append_string(rbracket(list));
- }
- else if (!in_declaration && (list->separator() == SASS_HASH ||
- (list->separator() == SASS_SPACE && in_space_array) ||
- (list->separator() == SASS_COMMA && in_comma_array)
- )) {
- append_string(rbracket(list));
- }
-
- }
-
- void Inspect::operator()(Binary_Expression_Ptr expr)
- {
- expr->left()->perform(this);
- if ( in_media_block ||
- (output_style() == INSPECT) || (
- expr->op().ws_before
- && (!expr->is_interpolant())
- && (expr->is_left_interpolant() ||
- expr->is_right_interpolant())
-
- )) append_string(" ");
- switch (expr->optype()) {
- case Sass_OP::AND: append_string("&&"); break;
- case Sass_OP::OR: append_string("||"); break;
- case Sass_OP::EQ: append_string("=="); break;
- case Sass_OP::NEQ: append_string("!="); break;
- case Sass_OP::GT: append_string(">"); break;
- case Sass_OP::GTE: append_string(">="); break;
- case Sass_OP::LT: append_string("<"); break;
- case Sass_OP::LTE: append_string("<="); break;
- case Sass_OP::ADD: append_string("+"); break;
- case Sass_OP::SUB: append_string("-"); break;
- case Sass_OP::MUL: append_string("*"); break;
- case Sass_OP::DIV: append_string("/"); break;
- case Sass_OP::MOD: append_string("%"); break;
- default: break; // shouldn't get here
- }
- if ( in_media_block ||
- (output_style() == INSPECT) || (
- expr->op().ws_after
- && (!expr->is_interpolant())
- && (expr->is_left_interpolant() ||
- expr->is_right_interpolant())
- )) append_string(" ");
- expr->right()->perform(this);
- }
-
- void Inspect::operator()(Unary_Expression_Ptr expr)
- {
- if (expr->optype() == Unary_Expression::PLUS) append_string("+");
- else if (expr->optype() == Unary_Expression::SLASH) append_string("/");
- else append_string("-");
- expr->operand()->perform(this);
- }
-
- void Inspect::operator()(Function_Call_Ptr call)
- {
- append_token(call->name(), call);
- call->arguments()->perform(this);
- }
-
- void Inspect::operator()(Function_Call_Schema_Ptr call)
- {
- call->name()->perform(this);
- call->arguments()->perform(this);
- }
-
- void Inspect::operator()(Variable_Ptr var)
- {
- append_token(var->name(), var);
- }
-
- void Inspect::operator()(Number_Ptr n)
- {
-
- std::string res;
-
- // reduce units
- n->reduce();
-
- // check if the fractional part of the value equals to zero
- // neat trick from http://stackoverflow.com/a/1521682/1550314
- // double int_part; bool is_int = modf(value, &int_part) == 0.0;
-
- // this all cannot be done with one run only, since fixed
- // output differs from normal output and regular output
- // can contain scientific notation which we do not want!
-
- // first sample
- std::stringstream ss;
- ss.precision(12);
- ss << n->value();
-
- // check if we got scientific notation in result
- if (ss.str().find_first_of("e") != std::string::npos) {
- ss.clear(); ss.str(std::string());
- ss.precision(std::max(12, opt.precision));
- ss << std::fixed << n->value();
- }
-
- std::string tmp = ss.str();
- size_t pos_point = tmp.find_first_of(".,");
- size_t pos_fract = tmp.find_last_not_of("0");
- bool is_int = pos_point == pos_fract ||
- pos_point == std::string::npos;
-
- // reset stream for another run
- ss.clear(); ss.str(std::string());
-
- // take a shortcut for integers
- if (is_int)
- {
- ss.precision(0);
- ss << std::fixed << n->value();
- res = std::string(ss.str());
- }
- // process floats
- else
- {
- // do we have have too much precision?
- if (pos_fract < opt.precision + pos_point)
- { ss.precision((int)(pos_fract - pos_point)); }
- else { ss.precision(opt.precision); }
- // round value again
- ss << std::fixed << n->value();
- res = std::string(ss.str());
- // maybe we truncated up to decimal point
- size_t pos = res.find_last_not_of("0");
- // handle case where we have a "0"
- if (pos == std::string::npos) {
- res = "0.0";
- } else {
- bool at_dec_point = res[pos] == '.' ||
- res[pos] == ',';
- // don't leave a blank point
- if (at_dec_point) ++ pos;
- res.resize (pos + 1);
- }
- }
-
- // some final cosmetics
- if (res == "0.0") res = "0";
- else if (res == "") res = "0";
- else if (res == "-0") res = "0";
- else if (res == "-0.0") res = "0";
- else if (opt.output_style == COMPRESSED)
- {
- // check if handling negative nr
- size_t off = res[0] == '-' ? 1 : 0;
- // remove leading zero from floating point in compressed mode
- if (n->zero() && res[off] == '0' && res[off+1] == '.') res.erase(off, 1);
- }
-
- // add unit now
- res += n->unit();
-
- // output the final token
- append_token(res, n);
- }
-
- // helper function for serializing colors
- template <size_t range>
- static double cap_channel(double c) {
- if (c > range) return range;
- else if (c < 0) return 0;
- else return c;
- }
-
- void Inspect::operator()(Color_Ptr c)
- {
- // output the final token
- std::stringstream ss;
-
- // original color name
- // maybe an unknown token
- std::string name = c->disp();
-
- if (opt.in_selector && name != "") {
- append_token(name, c);
- return;
- }
-
- // resolved color
- std::string res_name = name;
-
- double r = Sass::round(cap_channel<0xff>(c->r()), opt.precision);
- double g = Sass::round(cap_channel<0xff>(c->g()), opt.precision);
- double b = Sass::round(cap_channel<0xff>(c->b()), opt.precision);
- double a = cap_channel<1> (c->a());
-
- // get color from given name (if one was given at all)
- if (name != "" && name_to_color(name)) {
- Color_Ptr_Const n = name_to_color(name);
- r = Sass::round(cap_channel<0xff>(n->r()), opt.precision);
- g = Sass::round(cap_channel<0xff>(n->g()), opt.precision);
- b = Sass::round(cap_channel<0xff>(n->b()), opt.precision);
- a = cap_channel<1> (n->a());
- }
- // otherwise get the possible resolved color name
- else {
- double numval = r * 0x10000 + g * 0x100 + b;
- if (color_to_name(numval))
- res_name = color_to_name(numval);
- }
-
- std::stringstream hexlet;
- // dart sass compressed all colors in regular css always
- // ruby sass and libsass does it only when not delayed
- // since color math is going to be removed, this can go too
- bool compressed = opt.output_style == COMPRESSED;
- hexlet << '#' << std::setw(1) << std::setfill('0');
- // create a short color hexlet if there is any need for it
- if (compressed && is_color_doublet(r, g, b) && a == 1) {
- hexlet << std::hex << std::setw(1) << (static_cast<unsigned long>(r) >> 4);
- hexlet << std::hex << std::setw(1) << (static_cast<unsigned long>(g) >> 4);
- hexlet << std::hex << std::setw(1) << (static_cast<unsigned long>(b) >> 4);
- } else {
- hexlet << std::hex << std::setw(2) << static_cast<unsigned long>(r);
- hexlet << std::hex << std::setw(2) << static_cast<unsigned long>(g);
- hexlet << std::hex << std::setw(2) << static_cast<unsigned long>(b);
- }
-
- if (compressed && !c->is_delayed()) name = "";
- if (opt.output_style == INSPECT && a >= 1) {
- append_token(hexlet.str(), c);
- return;
- }
-
- // retain the originally specified color definition if unchanged
- if (name != "") {
- ss << name;
- }
- else if (a >= 1) {
- if (res_name != "") {
- if (compressed && hexlet.str().size() < res_name.size()) {
- ss << hexlet.str();
- } else {
- ss << res_name;
- }
- }
- else {
- ss << hexlet.str();
- }
- }
- else {
- ss << "rgba(";
- ss << static_cast<unsigned long>(r) << ",";
- if (!compressed) ss << " ";
- ss << static_cast<unsigned long>(g) << ",";
- if (!compressed) ss << " ";
- ss << static_cast<unsigned long>(b) << ",";
- if (!compressed) ss << " ";
- ss << a << ')';
- }
-
- append_token(ss.str(), c);
-
- }
-
- void Inspect::operator()(Boolean_Ptr b)
- {
- // output the final token
- append_token(b->value() ? "true" : "false", b);
- }
-
- void Inspect::operator()(String_Schema_Ptr ss)
- {
- // Evaluation should turn these into String_Constants,
- // so this method is only for inspection purposes.
- for (size_t i = 0, L = ss->length(); i < L; ++i) {
- if ((*ss)[i]->is_interpolant()) append_string("#{");
- (*ss)[i]->perform(this);
- if ((*ss)[i]->is_interpolant()) append_string("}");
- }
- }
-
- void Inspect::operator()(String_Constant_Ptr s)
- {
- append_token(s->value(), s);
- }
-
- void Inspect::operator()(String_Quoted_Ptr s)
- {
- if (const char q = s->quote_mark()) {
- append_token(quote(s->value(), q), s);
- } else {
- append_token(s->value(), s);
- }
- }
-
- void Inspect::operator()(Custom_Error_Ptr e)
- {
- append_token(e->message(), e);
- }
-
- void Inspect::operator()(Custom_Warning_Ptr w)
- {
- append_token(w->message(), w);
- }
-
- void Inspect::operator()(Supports_Operator_Ptr so)
- {
-
- if (so->needs_parens(so->left())) append_string("(");
- so->left()->perform(this);
- if (so->needs_parens(so->left())) append_string(")");
-
- if (so->operand() == Supports_Operator::AND) {
- append_mandatory_space();
- append_token("and", so);
- append_mandatory_space();
- } else if (so->operand() == Supports_Operator::OR) {
- append_mandatory_space();
- append_token("or", so);
- append_mandatory_space();
- }
-
- if (so->needs_parens(so->right())) append_string("(");
- so->right()->perform(this);
- if (so->needs_parens(so->right())) append_string(")");
- }
-
- void Inspect::operator()(Supports_Negation_Ptr sn)
- {
- append_token("not", sn);
- append_mandatory_space();
- if (sn->needs_parens(sn->condition())) append_string("(");
- sn->condition()->perform(this);
- if (sn->needs_parens(sn->condition())) append_string(")");
- }
-
- void Inspect::operator()(Supports_Declaration_Ptr sd)
- {
- append_string("(");
- sd->feature()->perform(this);
- append_string(": ");
- sd->value()->perform(this);
- append_string(")");
- }
-
- void Inspect::operator()(Supports_Interpolation_Ptr sd)
- {
- sd->value()->perform(this);
- }
-
- void Inspect::operator()(Media_Query_Ptr mq)
- {
- size_t i = 0;
- if (mq->media_type()) {
- if (mq->is_negated()) append_string("not ");
- else if (mq->is_restricted()) append_string("only ");
- mq->media_type()->perform(this);
- }
- else {
- (*mq)[i++]->perform(this);
- }
- for (size_t L = mq->length(); i < L; ++i) {
- append_string(" and ");
- (*mq)[i]->perform(this);
- }
- }
-
- void Inspect::operator()(Media_Query_Expression_Ptr mqe)
- {
- if (mqe->is_interpolated()) {
- mqe->feature()->perform(this);
- }
- else {
- append_string("(");
- mqe->feature()->perform(this);
- if (mqe->value()) {
- append_string(": "); // verified
- mqe->value()->perform(this);
- }
- append_string(")");
- }
- }
-
- void Inspect::operator()(At_Root_Query_Ptr ae)
- {
- if (ae->feature()) {
- append_string("(");
- ae->feature()->perform(this);
- if (ae->value()) {
- append_colon_separator();
- ae->value()->perform(this);
- }
- append_string(")");
- }
- }
-
- void Inspect::operator()(Function_Ptr f)
- {
- append_token("get-function", f);
- append_string("(");
- append_string(quote(f->name()));
- append_string(")");
- }
-
- void Inspect::operator()(Null_Ptr n)
- {
- // output the final token
- append_token("null", n);
- }
-
- // parameters and arguments
- void Inspect::operator()(Parameter_Ptr p)
- {
- append_token(p->name(), p);
- if (p->default_value()) {
- append_colon_separator();
- p->default_value()->perform(this);
- }
- else if (p->is_rest_parameter()) {
- append_string("...");
- }
- }
-
- void Inspect::operator()(Parameters_Ptr p)
- {
- append_string("(");
- if (!p->empty()) {
- (*p)[0]->perform(this);
- for (size_t i = 1, L = p->length(); i < L; ++i) {
- append_comma_separator();
- (*p)[i]->perform(this);
- }
- }
- append_string(")");
- }
-
- void Inspect::operator()(Argument_Ptr a)
- {
- if (!a->name().empty()) {
- append_token(a->name(), a);
- append_colon_separator();
- }
- if (!a->value()) return;
- // Special case: argument nulls can be ignored
- if (a->value()->concrete_type() == Expression::NULL_VAL) {
- return;
- }
- if (a->value()->concrete_type() == Expression::STRING) {
- String_Constant_Ptr s = Cast<String_Constant>(a->value());
- if (s) s->perform(this);
- } else {
- a->value()->perform(this);
- }
- if (a->is_rest_argument()) {
- append_string("...");
- }
- }
-
- void Inspect::operator()(Arguments_Ptr a)
- {
- append_string("(");
- if (!a->empty()) {
- (*a)[0]->perform(this);
- for (size_t i = 1, L = a->length(); i < L; ++i) {
- append_string(", "); // verified
- // Sass Bug? append_comma_separator();
- (*a)[i]->perform(this);
- }
- }
- append_string(")");
- }
-
- void Inspect::operator()(Selector_Schema_Ptr s)
- {
- opt.in_selector = true;
- s->contents()->perform(this);
- opt.in_selector = false;
- }
-
- void Inspect::operator()(Parent_Selector_Ptr p)
- {
- if (p->is_real_parent_ref()) append_string("&");
- }
-
- void Inspect::operator()(Placeholder_Selector_Ptr s)
- {
- append_token(s->name(), s);
- if (s->has_line_break()) append_optional_linefeed();
- if (s->has_line_break()) append_indentation();
-
- }
-
- void Inspect::operator()(Element_Selector_Ptr s)
- {
- append_token(s->ns_name(), s);
- }
-
- void Inspect::operator()(Class_Selector_Ptr s)
- {
- append_token(s->ns_name(), s);
- if (s->has_line_break()) append_optional_linefeed();
- if (s->has_line_break()) append_indentation();
- }
-
- void Inspect::operator()(Id_Selector_Ptr s)
- {
- append_token(s->ns_name(), s);
- if (s->has_line_break()) append_optional_linefeed();
- if (s->has_line_break()) append_indentation();
- }
-
- void Inspect::operator()(Attribute_Selector_Ptr s)
- {
- append_string("[");
- add_open_mapping(s);
- append_token(s->ns_name(), s);
- if (!s->matcher().empty()) {
- append_string(s->matcher());
- if (s->value() && *s->value()) {
- s->value()->perform(this);
- }
- }
- add_close_mapping(s);
- if (s->modifier() != 0) {
- append_mandatory_space();
- append_char(s->modifier());
- }
- append_string("]");
- }
-
- void Inspect::operator()(Pseudo_Selector_Ptr s)
- {
- append_token(s->ns_name(), s);
- if (s->expression()) {
- append_string("(");
- s->expression()->perform(this);
- append_string(")");
- }
- }
-
- void Inspect::operator()(Wrapped_Selector_Ptr s)
- {
- if (s->name() == " ") {
- append_string("");
- } else {
- bool was = in_wrapped;
- in_wrapped = true;
- append_token(s->name(), s);
- append_string("(");
- bool was_comma_array = in_comma_array;
- in_comma_array = false;
- s->selector()->perform(this);
- in_comma_array = was_comma_array;
- append_string(")");
- in_wrapped = was;
- }
- }
-
- void Inspect::operator()(Compound_Selector_Ptr s)
- {
- for (size_t i = 0, L = s->length(); i < L; ++i) {
- (*s)[i]->perform(this);
- }
- if (s->has_line_break()) {
- if (output_style() != COMPACT) {
- append_optional_linefeed();
- }
- }
- }
-
- void Inspect::operator()(Complex_Selector_Ptr c)
- {
- Compound_Selector_Obj head = c->head();
- Complex_Selector_Obj tail = c->tail();
- Complex_Selector::Combinator comb = c->combinator();
-
- if (comb == Complex_Selector::ANCESTOR_OF && (!head || head->empty())) {
- if (tail) tail->perform(this);
- return;
- }
-
- if (c->has_line_feed()) {
- if (!(c->has_parent_ref())) {
- append_optional_linefeed();
- append_indentation();
- }
- }
-
- if (head && head->length() != 0) head->perform(this);
- bool is_empty = !head || head->length() == 0 || head->is_empty_reference();
- bool is_tail = head && !head->is_empty_reference() && tail;
- if (output_style() == COMPRESSED && comb != Complex_Selector::ANCESTOR_OF) scheduled_space = 0;
-
- switch (comb) {
- case Complex_Selector::ANCESTOR_OF:
- if (is_tail) append_mandatory_space();
- break;
- case Complex_Selector::PARENT_OF:
- append_optional_space();
- append_string(">");
- append_optional_space();
- break;
- case Complex_Selector::ADJACENT_TO:
- append_optional_space();
- append_string("+");
- append_optional_space();
- break;
- case Complex_Selector::REFERENCE:
- append_mandatory_space();
- append_string("/");
- if (c->reference()) c->reference()->perform(this);
- append_string("/");
- append_mandatory_space();
- break;
- case Complex_Selector::PRECEDES:
- if (is_empty) append_optional_space();
- else append_mandatory_space();
- append_string("~");
- if (tail) append_mandatory_space();
- else append_optional_space();
- break;
- default: break;
- }
- if (tail && comb != Complex_Selector::ANCESTOR_OF) {
- if (c->has_line_break()) append_optional_linefeed();
- }
- if (tail) tail->perform(this);
- if (!tail && c->has_line_break()) {
- if (output_style() == COMPACT) {
- append_mandatory_space();
- }
- }
- }
-
- void Inspect::operator()(Selector_List_Ptr g)
- {
-
- if (g->empty()) {
- if (output_style() == TO_SASS) {
- append_token("()", g);
- }
- return;
- }
-
-
- bool was_comma_array = in_comma_array;
- // probably ruby sass eqivalent of element_needs_parens
- if (output_style() == TO_SASS && g->length() == 1 &&
- (!Cast<List>((*g)[0]) &&
- !Cast<Selector_List>((*g)[0]))) {
- append_string("(");
- }
- else if (!in_declaration && in_comma_array) {
- append_string("(");
- }
-
- if (in_declaration) in_comma_array = true;
-
- for (size_t i = 0, L = g->length(); i < L; ++i) {
- if (!in_wrapped && i == 0) append_indentation();
- if ((*g)[i] == 0) continue;
- schedule_mapping(g->at(i)->last());
- // add_open_mapping((*g)[i]->last());
- (*g)[i]->perform(this);
- // add_close_mapping((*g)[i]->last());
- if (i < L - 1) {
- scheduled_space = 0;
- append_comma_separator();
- }
- }
-
- in_comma_array = was_comma_array;
- // probably ruby sass eqivalent of element_needs_parens
- if (output_style() == TO_SASS && g->length() == 1 &&
- (!Cast<List>((*g)[0]) &&
- !Cast<Selector_List>((*g)[0]))) {
- append_string(",)");
- }
- else if (!in_declaration && in_comma_array) {
- append_string(")");
- }
-
- }
-
- void Inspect::fallback_impl(AST_Node_Ptr n)
- {
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/inspect.hpp b/node_modules/node-sass/src/libsass/src/inspect.hpp
deleted file mode 100644
index c36790b..0000000
--- a/node_modules/node-sass/src/libsass/src/inspect.hpp
+++ /dev/null
@@ -1,103 +0,0 @@
-#ifndef SASS_INSPECT_H
-#define SASS_INSPECT_H
-
-#include "position.hpp"
-#include "operation.hpp"
-#include "emitter.hpp"
-
-namespace Sass {
- class Context;
-
- class Inspect : public Operation_CRTP<void, Inspect>, public Emitter {
- protected:
- // import all the class-specific methods and override as desired
- using Operation_CRTP<void, Inspect>::operator();
-
- void fallback_impl(AST_Node_Ptr n);
-
- public:
-
- Inspect(const Emitter& emi);
- virtual ~Inspect();
-
- // statements
- virtual void operator()(Block_Ptr);
- virtual void operator()(Ruleset_Ptr);
- virtual void operator()(Bubble_Ptr);
- virtual void operator()(Supports_Block_Ptr);
- virtual void operator()(Media_Block_Ptr);
- virtual void operator()(At_Root_Block_Ptr);
- virtual void operator()(Directive_Ptr);
- virtual void operator()(Keyframe_Rule_Ptr);
- virtual void operator()(Declaration_Ptr);
- virtual void operator()(Assignment_Ptr);
- virtual void operator()(Import_Ptr);
- virtual void operator()(Import_Stub_Ptr);
- virtual void operator()(Warning_Ptr);
- virtual void operator()(Error_Ptr);
- virtual void operator()(Debug_Ptr);
- virtual void operator()(Comment_Ptr);
- virtual void operator()(If_Ptr);
- virtual void operator()(For_Ptr);
- virtual void operator()(Each_Ptr);
- virtual void operator()(While_Ptr);
- virtual void operator()(Return_Ptr);
- virtual void operator()(Extension_Ptr);
- virtual void operator()(Definition_Ptr);
- virtual void operator()(Mixin_Call_Ptr);
- virtual void operator()(Content_Ptr);
- // expressions
- virtual void operator()(Map_Ptr);
- virtual void operator()(Function_Ptr);
- virtual void operator()(List_Ptr);
- virtual void operator()(Binary_Expression_Ptr);
- virtual void operator()(Unary_Expression_Ptr);
- virtual void operator()(Function_Call_Ptr);
- virtual void operator()(Function_Call_Schema_Ptr);
- // virtual void operator()(Custom_Warning_Ptr);
- // virtual void operator()(Custom_Error_Ptr);
- virtual void operator()(Variable_Ptr);
- virtual void operator()(Number_Ptr);
- virtual void operator()(Color_Ptr);
- virtual void operator()(Boolean_Ptr);
- virtual void operator()(String_Schema_Ptr);
- virtual void operator()(String_Constant_Ptr);
- virtual void operator()(String_Quoted_Ptr);
- virtual void operator()(Custom_Error_Ptr);
- virtual void operator()(Custom_Warning_Ptr);
- virtual void operator()(Supports_Operator_Ptr);
- virtual void operator()(Supports_Negation_Ptr);
- virtual void operator()(Supports_Declaration_Ptr);
- virtual void operator()(Supports_Interpolation_Ptr);
- virtual void operator()(Media_Query_Ptr);
- virtual void operator()(Media_Query_Expression_Ptr);
- virtual void operator()(At_Root_Query_Ptr);
- virtual void operator()(Null_Ptr);
- virtual void operator()(Parent_Selector_Ptr p);
- // parameters and arguments
- virtual void operator()(Parameter_Ptr);
- virtual void operator()(Parameters_Ptr);
- virtual void operator()(Argument_Ptr);
- virtual void operator()(Arguments_Ptr);
- // selectors
- virtual void operator()(Selector_Schema_Ptr);
- virtual void operator()(Placeholder_Selector_Ptr);
- virtual void operator()(Element_Selector_Ptr);
- virtual void operator()(Class_Selector_Ptr);
- virtual void operator()(Id_Selector_Ptr);
- virtual void operator()(Attribute_Selector_Ptr);
- virtual void operator()(Pseudo_Selector_Ptr);
- virtual void operator()(Wrapped_Selector_Ptr);
- virtual void operator()(Compound_Selector_Ptr);
- virtual void operator()(Complex_Selector_Ptr);
- virtual void operator()(Selector_List_Ptr);
-
- virtual std::string lbracket(List_Ptr);
- virtual std::string rbracket(List_Ptr);
-
- // template <typename U>
- // void fallback(U x) { fallback_impl(reinterpret_cast<AST_Node_Ptr>(x)); }
- };
-
-}
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/json.cpp b/node_modules/node-sass/src/libsass/src/json.cpp
deleted file mode 100644
index 8f433f5..0000000
--- a/node_modules/node-sass/src/libsass/src/json.cpp
+++ /dev/null
@@ -1,1436 +0,0 @@
-/*
- Copyright (C) 2011 Joseph A. Adams (joeyadams3.14159@gmail.com)
- All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
-*/
-
-#ifdef _MSC_VER
-#define _CRT_SECURE_NO_WARNINGS
-#define _CRT_NONSTDC_NO_DEPRECATE
-#endif
-
-#include "json.hpp"
-
-// include utf8 library used by libsass
-// ToDo: replace internal json utf8 code
-#include "utf8.h"
-
-#include <assert.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#if defined(_MSC_VER) && _MSC_VER < 1900
-#include <stdarg.h>
-#ifdef snprintf
-#undef snprintf
-#endif
-extern "C" int snprintf(char *, size_t, const char *, ...);
-#endif
-
-#define out_of_memory() do { \
- fprintf(stderr, "Out of memory.\n"); \
- exit(EXIT_FAILURE); \
- } while (0)
-
-/* Sadly, strdup is not portable. */
-static char *json_strdup(const char *str)
-{
- char *ret = (char*) malloc(strlen(str) + 1);
- if (ret == NULL)
- out_of_memory();
- strcpy(ret, str);
- return ret;
-}
-
-/* String buffer */
-
-typedef struct
-{
- char *cur;
- char *end;
- char *start;
-} SB;
-
-static void sb_init(SB *sb)
-{
- sb->start = (char*) malloc(17);
- if (sb->start == NULL)
- out_of_memory();
- sb->cur = sb->start;
- sb->end = sb->start + 16;
-}
-
-/* sb and need may be evaluated multiple times. */
-#define sb_need(sb, need) do { \
- if ((sb)->end - (sb)->cur < (need)) \
- sb_grow(sb, need); \
- } while (0)
-
-static void sb_grow(SB *sb, int need)
-{
- size_t length = sb->cur - sb->start;
- size_t alloc = sb->end - sb->start;
-
- do {
- alloc *= 2;
- } while (alloc < length + need);
-
- sb->start = (char*) realloc(sb->start, alloc + 1);
- if (sb->start == NULL)
- out_of_memory();
- sb->cur = sb->start + length;
- sb->end = sb->start + alloc;
-}
-
-static void sb_put(SB *sb, const char *bytes, int count)
-{
- sb_need(sb, count);
- memcpy(sb->cur, bytes, count);
- sb->cur += count;
-}
-
-#define sb_putc(sb, c) do { \
- if ((sb)->cur >= (sb)->end) \
- sb_grow(sb, 1); \
- *(sb)->cur++ = (c); \
- } while (0)
-
-static void sb_puts(SB *sb, const char *str)
-{
- sb_put(sb, str, (int)strlen(str));
-}
-
-static char *sb_finish(SB *sb)
-{
- *sb->cur = 0;
- assert(sb->start <= sb->cur && strlen(sb->start) == (size_t)(sb->cur - sb->start));
- return sb->start;
-}
-
-static void sb_free(SB *sb)
-{
- free(sb->start);
-}
-
-/*
- * Unicode helper functions
- *
- * These are taken from the ccan/charset module and customized a bit.
- * Putting them here means the compiler can (choose to) inline them,
- * and it keeps ccan/json from having a dependency.
- *
- * We use uint32_t Type for Unicode codepoints.
- * We need our own because wchar_t might be 16 bits.
- */
-
-/*
- * Validate a single UTF-8 character starting at @s.
- * The string must be null-terminated.
- *
- * If it's valid, return its length (1 thru 4).
- * If it's invalid or clipped, return 0.
- *
- * This function implements the syntax given in RFC3629, which is
- * the same as that given in The Unicode Standard, Version 6.0.
- *
- * It has the following properties:
- *
- * * All codepoints U+0000..U+10FFFF may be encoded,
- * except for U+D800..U+DFFF, which are reserved
- * for UTF-16 surrogate pair encoding.
- * * UTF-8 byte sequences longer than 4 bytes are not permitted,
- * as they exceed the range of Unicode.
- * * The sixty-six Unicode "non-characters" are permitted
- * (namely, U+FDD0..U+FDEF, U+xxFFFE, and U+xxFFFF).
- */
-static int utf8_validate_cz(const char *s)
-{
- unsigned char c = *s++;
-
- if (c <= 0x7F) { /* 00..7F */
- return 1;
- } else if (c <= 0xC1) { /* 80..C1 */
- /* Disallow overlong 2-byte sequence. */
- return 0;
- } else if (c <= 0xDF) { /* C2..DF */
- /* Make sure subsequent byte is in the range 0x80..0xBF. */
- if (((unsigned char)*s++ & 0xC0) != 0x80)
- return 0;
-
- return 2;
- } else if (c <= 0xEF) { /* E0..EF */
- /* Disallow overlong 3-byte sequence. */
- if (c == 0xE0 && (unsigned char)*s < 0xA0)
- return 0;
-
- /* Disallow U+D800..U+DFFF. */
- if (c == 0xED && (unsigned char)*s > 0x9F)
- return 0;
-
- /* Make sure subsequent bytes are in the range 0x80..0xBF. */
- if (((unsigned char)*s++ & 0xC0) != 0x80)
- return 0;
- if (((unsigned char)*s++ & 0xC0) != 0x80)
- return 0;
-
- return 3;
- } else if (c <= 0xF4) { /* F0..F4 */
- /* Disallow overlong 4-byte sequence. */
- if (c == 0xF0 && (unsigned char)*s < 0x90)
- return 0;
-
- /* Disallow codepoints beyond U+10FFFF. */
- if (c == 0xF4 && (unsigned char)*s > 0x8F)
- return 0;
-
- /* Make sure subsequent bytes are in the range 0x80..0xBF. */
- if (((unsigned char)*s++ & 0xC0) != 0x80)
- return 0;
- if (((unsigned char)*s++ & 0xC0) != 0x80)
- return 0;
- if (((unsigned char)*s++ & 0xC0) != 0x80)
- return 0;
-
- return 4;
- } else { /* F5..FF */
- return 0;
- }
-}
-
-/* Validate a null-terminated UTF-8 string. */
-static bool utf8_validate(const char *s)
-{
- int len;
-
- for (; *s != 0; s += len) {
- len = utf8_validate_cz(s);
- if (len == 0)
- return false;
- }
-
- return true;
-}
-
-/*
- * Read a single UTF-8 character starting at @s,
- * returning the length, in bytes, of the character read.
- *
- * This function assumes input is valid UTF-8,
- * and that there are enough characters in front of @s.
- */
-static int utf8_read_char(const char *s, uint32_t *out)
-{
- const unsigned char *c = (const unsigned char*) s;
-
- assert(utf8_validate_cz(s));
-
- if (c[0] <= 0x7F) {
- /* 00..7F */
- *out = c[0];
- return 1;
- } else if (c[0] <= 0xDF) {
- /* C2..DF (unless input is invalid) */
- *out = ((uint32_t)c[0] & 0x1F) << 6 |
- ((uint32_t)c[1] & 0x3F);
- return 2;
- } else if (c[0] <= 0xEF) {
- /* E0..EF */
- *out = ((uint32_t)c[0] & 0xF) << 12 |
- ((uint32_t)c[1] & 0x3F) << 6 |
- ((uint32_t)c[2] & 0x3F);
- return 3;
- } else {
- /* F0..F4 (unless input is invalid) */
- *out = ((uint32_t)c[0] & 0x7) << 18 |
- ((uint32_t)c[1] & 0x3F) << 12 |
- ((uint32_t)c[2] & 0x3F) << 6 |
- ((uint32_t)c[3] & 0x3F);
- return 4;
- }
-}
-
-/*
- * Write a single UTF-8 character to @s,
- * returning the length, in bytes, of the character written.
- *
- * @unicode must be U+0000..U+10FFFF, but not U+D800..U+DFFF.
- *
- * This function will write up to 4 bytes to @out.
- */
-static int utf8_write_char(uint32_t unicode, char *out)
-{
- unsigned char *o = (unsigned char*) out;
-
- assert(unicode <= 0x10FFFF && !(unicode >= 0xD800 && unicode <= 0xDFFF));
-
- if (unicode <= 0x7F) {
- /* U+0000..U+007F */
- *o++ = unicode;
- return 1;
- } else if (unicode <= 0x7FF) {
- /* U+0080..U+07FF */
- *o++ = 0xC0 | unicode >> 6;
- *o++ = 0x80 | (unicode & 0x3F);
- return 2;
- } else if (unicode <= 0xFFFF) {
- /* U+0800..U+FFFF */
- *o++ = 0xE0 | unicode >> 12;
- *o++ = 0x80 | (unicode >> 6 & 0x3F);
- *o++ = 0x80 | (unicode & 0x3F);
- return 3;
- } else {
- /* U+10000..U+10FFFF */
- *o++ = 0xF0 | unicode >> 18;
- *o++ = 0x80 | (unicode >> 12 & 0x3F);
- *o++ = 0x80 | (unicode >> 6 & 0x3F);
- *o++ = 0x80 | (unicode & 0x3F);
- return 4;
- }
-}
-
-/*
- * Compute the Unicode codepoint of a UTF-16 surrogate pair.
- *
- * @uc should be 0xD800..0xDBFF, and @lc should be 0xDC00..0xDFFF.
- * If they aren't, this function returns false.
- */
-static bool from_surrogate_pair(uint16_t uc, uint16_t lc, uint32_t *unicode)
-{
- if (uc >= 0xD800 && uc <= 0xDBFF && lc >= 0xDC00 && lc <= 0xDFFF) {
- *unicode = 0x10000 + ((((uint32_t)uc & 0x3FF) << 10) | (lc & 0x3FF));
- return true;
- } else {
- return false;
- }
-}
-
-/*
- * Construct a UTF-16 surrogate pair given a Unicode codepoint.
- *
- * @unicode must be U+10000..U+10FFFF.
- */
-static void to_surrogate_pair(uint32_t unicode, uint16_t *uc, uint16_t *lc)
-{
- uint32_t n;
-
- assert(unicode >= 0x10000 && unicode <= 0x10FFFF);
-
- n = unicode - 0x10000;
- *uc = ((n >> 10) & 0x3FF) | 0xD800;
- *lc = (n & 0x3FF) | 0xDC00;
-}
-
-static bool is_space (const char *c);
-static bool is_digit (const char *c);
-static bool parse_value (const char **sp, JsonNode **out);
-static bool parse_string (const char **sp, char **out);
-static bool parse_number (const char **sp, double *out);
-static bool parse_array (const char **sp, JsonNode **out);
-static bool parse_object (const char **sp, JsonNode **out);
-static bool parse_hex16 (const char **sp, uint16_t *out);
-
-static bool expect_literal (const char **sp, const char *str);
-static void skip_space (const char **sp);
-
-static void emit_value (SB *out, const JsonNode *node);
-static void emit_value_indented (SB *out, const JsonNode *node, const char *space, int indent_level);
-static void emit_string (SB *out, const char *str);
-static void emit_number (SB *out, double num);
-static void emit_array (SB *out, const JsonNode *array);
-static void emit_array_indented (SB *out, const JsonNode *array, const char *space, int indent_level);
-static void emit_object (SB *out, const JsonNode *object);
-static void emit_object_indented (SB *out, const JsonNode *object, const char *space, int indent_level);
-
-static int write_hex16(char *out, uint16_t val);
-
-static JsonNode *mknode(JsonTag tag);
-static void append_node(JsonNode *parent, JsonNode *child);
-static void prepend_node(JsonNode *parent, JsonNode *child);
-static void append_member(JsonNode *object, char *key, JsonNode *value);
-
-/* Assertion-friendly validity checks */
-static bool tag_is_valid(unsigned int tag);
-static bool number_is_valid(const char *num);
-
-JsonNode *json_decode(const char *json)
-{
- const char *s = json;
- JsonNode *ret;
-
- skip_space(&s);
- if (!parse_value(&s, &ret))
- return NULL;
-
- skip_space(&s);
- if (*s != 0) {
- json_delete(ret);
- return NULL;
- }
-
- return ret;
-}
-
-char *json_encode(const JsonNode *node)
-{
- return json_stringify(node, NULL);
-}
-
-char *json_encode_string(const char *str)
-{
- SB sb;
- sb_init(&sb);
-
- try {
- emit_string(&sb, str);
- }
- catch (std::exception) {
- sb_free(&sb);
- throw;
- }
-
- return sb_finish(&sb);
-}
-
-char *json_stringify(const JsonNode *node, const char *space)
-{
- SB sb;
- sb_init(&sb);
-
- try {
- if (space != NULL)
- emit_value_indented(&sb, node, space, 0);
- else
- emit_value(&sb, node);
- }
- catch (std::exception) {
- sb_free(&sb);
- throw;
- }
-
- return sb_finish(&sb);
-}
-
-void json_delete(JsonNode *node)
-{
- if (node != NULL) {
- json_remove_from_parent(node);
-
- switch (node->tag) {
- case JSON_STRING:
- free(node->string_);
- break;
- case JSON_ARRAY:
- case JSON_OBJECT:
- {
- JsonNode *child, *next;
- for (child = node->children.head; child != NULL; child = next) {
- next = child->next;
- json_delete(child);
- }
- break;
- }
- default:;
- }
-
- free(node);
- }
-}
-
-bool json_validate(const char *json)
-{
- const char *s = json;
-
- skip_space(&s);
- if (!parse_value(&s, NULL))
- return false;
-
- skip_space(&s);
- if (*s != 0)
- return false;
-
- return true;
-}
-
-JsonNode *json_find_element(JsonNode *array, int index)
-{
- JsonNode *element;
- int i = 0;
-
- if (array == NULL || array->tag != JSON_ARRAY)
- return NULL;
-
- json_foreach(element, array) {
- if (i == index)
- return element;
- i++;
- }
-
- return NULL;
-}
-
-JsonNode *json_find_member(JsonNode *object, const char *name)
-{
- JsonNode *member;
-
- if (object == NULL || object->tag != JSON_OBJECT)
- return NULL;
-
- json_foreach(member, object)
- if (strcmp(member->key, name) == 0)
- return member;
-
- return NULL;
-}
-
-JsonNode *json_first_child(const JsonNode *node)
-{
- if (node != NULL && (node->tag == JSON_ARRAY || node->tag == JSON_OBJECT))
- return node->children.head;
- return NULL;
-}
-
-static JsonNode *mknode(JsonTag tag)
-{
- JsonNode *ret = (JsonNode*) calloc(1, sizeof(JsonNode));
- if (ret == NULL)
- out_of_memory();
- ret->tag = tag;
- return ret;
-}
-
-JsonNode *json_mknull(void)
-{
- return mknode(JSON_NULL);
-}
-
-JsonNode *json_mkbool(bool b)
-{
- JsonNode *ret = mknode(JSON_BOOL);
- ret->bool_ = b;
- return ret;
-}
-
-static JsonNode *mkstring(char *s)
-{
- JsonNode *ret = mknode(JSON_STRING);
- ret->string_ = s;
- return ret;
-}
-
-JsonNode *json_mkstring(const char *s)
-{
- return mkstring(json_strdup(s));
-}
-
-JsonNode *json_mknumber(double n)
-{
- JsonNode *node = mknode(JSON_NUMBER);
- node->number_ = n;
- return node;
-}
-
-JsonNode *json_mkarray(void)
-{
- return mknode(JSON_ARRAY);
-}
-
-JsonNode *json_mkobject(void)
-{
- return mknode(JSON_OBJECT);
-}
-
-static void append_node(JsonNode *parent, JsonNode *child)
-{
- if (child != NULL && parent != NULL) {
- child->parent = parent;
- child->prev = parent->children.tail;
- child->next = NULL;
-
- if (parent->children.tail != NULL)
- parent->children.tail->next = child;
- else
- parent->children.head = child;
- parent->children.tail = child;
- }
-}
-
-static void prepend_node(JsonNode *parent, JsonNode *child)
-{
- if (child != NULL && parent != NULL) {
- child->parent = parent;
- child->prev = NULL;
- child->next = parent->children.head;
-
- if (parent->children.head != NULL)
- parent->children.head->prev = child;
- else
- parent->children.tail = child;
- parent->children.head = child;
- }
-}
-
-static void append_member(JsonNode *object, char *key, JsonNode *value)
-{
- if (value != NULL && object != NULL) {
- value->key = key;
- append_node(object, value);
- }
-}
-
-void json_append_element(JsonNode *array, JsonNode *element)
-{
- if (array != NULL && element !=NULL) {
- assert(array->tag == JSON_ARRAY);
- assert(element->parent == NULL);
-
- append_node(array, element);
- }
-}
-
-void json_prepend_element(JsonNode *array, JsonNode *element)
-{
- assert(array->tag == JSON_ARRAY);
- assert(element->parent == NULL);
-
- prepend_node(array, element);
-}
-
-void json_append_member(JsonNode *object, const char *key, JsonNode *value)
-{
- if (object != NULL && key != NULL && value != NULL) {
- assert(object->tag == JSON_OBJECT);
- assert(value->parent == NULL);
-
- append_member(object, json_strdup(key), value);
- }
-}
-
-void json_prepend_member(JsonNode *object, const char *key, JsonNode *value)
-{
- if (object != NULL && key != NULL && value != NULL) {
- assert(object->tag == JSON_OBJECT);
- assert(value->parent == NULL);
-
- value->key = json_strdup(key);
- prepend_node(object, value);
- }
-}
-
-void json_remove_from_parent(JsonNode *node)
-{
- if (node != NULL) {
- JsonNode *parent = node->parent;
-
- if (parent != NULL) {
- if (node->prev != NULL)
- node->prev->next = node->next;
- else
- parent->children.head = node->next;
-
- if (node->next != NULL)
- node->next->prev = node->prev;
- else
- parent->children.tail = node->prev;
-
- free(node->key);
-
- node->parent = NULL;
- node->prev = node->next = NULL;
- node->key = NULL;
- }
- }
-}
-
-static bool parse_value(const char **sp, JsonNode **out)
-{
- const char *s = *sp;
-
- switch (*s) {
- case 'n':
- if (expect_literal(&s, "null")) {
- if (out)
- *out = json_mknull();
- *sp = s;
- return true;
- }
- return false;
-
- case 'f':
- if (expect_literal(&s, "false")) {
- if (out)
- *out = json_mkbool(false);
- *sp = s;
- return true;
- }
- return false;
-
- case 't':
- if (expect_literal(&s, "true")) {
- if (out)
- *out = json_mkbool(true);
- *sp = s;
- return true;
- }
- return false;
-
- case '"': {
- char *str = NULL;
- if (parse_string(&s, out ? &str : NULL)) {
- if (out)
- *out = mkstring(str);
- *sp = s;
- return true;
- }
- return false;
- }
-
- case '[':
- if (parse_array(&s, out)) {
- *sp = s;
- return true;
- }
- return false;
-
- case '{':
- if (parse_object(&s, out)) {
- *sp = s;
- return true;
- }
- return false;
-
- default: {
- double num;
- if (parse_number(&s, out ? &num : NULL)) {
- if (out)
- *out = json_mknumber(num);
- *sp = s;
- return true;
- }
- return false;
- }
- }
-}
-
-static bool parse_array(const char **sp, JsonNode **out)
-{
- const char *s = *sp;
- JsonNode *ret = out ? json_mkarray() : NULL;
- JsonNode *element = NULL;
-
- if (*s++ != '[')
- goto failure;
- skip_space(&s);
-
- if (*s == ']') {
- s++;
- goto success;
- }
-
- for (;;) {
- if (!parse_value(&s, out ? &element : NULL))
- goto failure;
- skip_space(&s);
-
- if (out)
- json_append_element(ret, element);
-
- if (*s == ']') {
- s++;
- goto success;
- }
-
- if (*s++ != ',')
- goto failure;
- skip_space(&s);
- }
-
-success:
- *sp = s;
- if (out)
- *out = ret;
- return true;
-
-failure:
- json_delete(ret);
- return false;
-}
-
-static bool parse_object(const char **sp, JsonNode **out)
-{
- const char *s = *sp;
- JsonNode *ret = out ? json_mkobject() : NULL;
- char *key = NULL;
- JsonNode *value = NULL;
-
- if (*s++ != '{')
- goto failure;
- skip_space(&s);
-
- if (*s == '}') {
- s++;
- goto success;
- }
-
- for (;;) {
- if (!parse_string(&s, out ? &key : NULL))
- goto failure;
- skip_space(&s);
-
- if (*s++ != ':')
- goto failure_free_key;
- skip_space(&s);
-
- if (!parse_value(&s, out ? &value : NULL))
- goto failure_free_key;
- skip_space(&s);
-
- if (out)
- append_member(ret, key, value);
-
- if (*s == '}') {
- s++;
- goto success;
- }
-
- if (*s++ != ',')
- goto failure;
- skip_space(&s);
- }
-
-success:
- *sp = s;
- if (out)
- *out = ret;
- return true;
-
-failure_free_key:
- if (out)
- free(key);
-failure:
- json_delete(ret);
- return false;
-}
-
-bool parse_string(const char **sp, char **out)
-{
- const char *s = *sp;
- SB sb = { 0, 0, 0 };
- char throwaway_buffer[4];
- /* enough space for a UTF-8 character */
- char *b;
-
- if (*s++ != '"')
- return false;
-
- if (out) {
- sb_init(&sb);
- sb_need(&sb, 4);
- b = sb.cur;
- } else {
- b = throwaway_buffer;
- }
-
- while (*s != '"') {
- unsigned char c = *s++;
-
- /* Parse next character, and write it to b. */
- if (c == '\\') {
- c = *s++;
- switch (c) {
- case '"':
- case '\\':
- case '/':
- *b++ = c;
- break;
- case 'b':
- *b++ = '\b';
- break;
- case 'f':
- *b++ = '\f';
- break;
- case 'n':
- *b++ = '\n';
- break;
- case 'r':
- *b++ = '\r';
- break;
- case 't':
- *b++ = '\t';
- break;
- case 'u':
- {
- uint16_t uc, lc;
- uint32_t unicode;
-
- if (!parse_hex16(&s, &uc))
- goto failed;
-
- if (uc >= 0xD800 && uc <= 0xDFFF) {
- /* Handle UTF-16 surrogate pair. */
- if (*s++ != '\\' || *s++ != 'u' || !parse_hex16(&s, &lc))
- goto failed; /* Incomplete surrogate pair. */
- if (!from_surrogate_pair(uc, lc, &unicode))
- goto failed; /* Invalid surrogate pair. */
- } else if (uc == 0) {
- /* Disallow "\u0000". */
- goto failed;
- } else {
- unicode = uc;
- }
-
- b += utf8_write_char(unicode, b);
- break;
- }
- default:
- /* Invalid escape */
- goto failed;
- }
- } else if (c <= 0x1F) {
- /* Control characters are not allowed in string literals. */
- goto failed;
- } else {
- /* Validate and echo a UTF-8 character. */
- int len;
-
- s--;
- len = utf8_validate_cz(s);
- if (len == 0)
- goto failed; /* Invalid UTF-8 character. */
-
- while (len--)
- *b++ = *s++;
- }
-
- /*
- * Update sb to know about the new bytes,
- * and set up b to write another character.
- */
- if (out) {
- sb.cur = b;
- sb_need(&sb, 4);
- b = sb.cur;
- } else {
- b = throwaway_buffer;
- }
- }
- s++;
-
- if (out)
- *out = sb_finish(&sb);
- *sp = s;
- return true;
-
-failed:
- if (out)
- sb_free(&sb);
- return false;
-}
-
-bool is_space(const char *c) {
- return ((*c) == '\t' || (*c) == '\n' || (*c) == '\r' || (*c) == ' ');
-}
-
-bool is_digit(const char *c){
- return ((*c) >= '0' && (*c) <= '9');
-}
-
-/*
- * The JSON spec says that a number shall follow this precise pattern
- * (spaces and quotes added for readability):
- * '-'? (0 | [1-9][0-9]*) ('.' [0-9]+)? ([Ee] [+-]? [0-9]+)?
- *
- * However, some JSON parsers are more liberal. For instance, PHP accepts
- * '.5' and '1.'. JSON.parse accepts '+3'.
- *
- * This function takes the strict approach.
- */
-bool parse_number(const char **sp, double *out)
-{
- const char *s = *sp;
-
- /* '-'? */
- if (*s == '-')
- s++;
-
- /* (0 | [1-9][0-9]*) */
- if (*s == '0') {
- s++;
- } else {
- if (!is_digit(s))
- return false;
- do {
- s++;
- } while (is_digit(s));
- }
-
- /* ('.' [0-9]+)? */
- if (*s == '.') {
- s++;
- if (!is_digit(s))
- return false;
- do {
- s++;
- } while (is_digit(s));
- }
-
- /* ([Ee] [+-]? [0-9]+)? */
- if (*s == 'E' || *s == 'e') {
- s++;
- if (*s == '+' || *s == '-')
- s++;
- if (!is_digit(s))
- return false;
- do {
- s++;
- } while (is_digit(s));
- }
-
- if (out)
- *out = strtod(*sp, NULL);
-
- *sp = s;
- return true;
-}
-
-static void skip_space(const char **sp)
-{
- const char *s = *sp;
- while (is_space(s))
- s++;
- *sp = s;
-}
-
-static void emit_value(SB *out, const JsonNode *node)
-{
- assert(tag_is_valid(node->tag));
- switch (node->tag) {
- case JSON_NULL:
- sb_puts(out, "null");
- break;
- case JSON_BOOL:
- sb_puts(out, node->bool_ ? "true" : "false");
- break;
- case JSON_STRING:
- emit_string(out, node->string_);
- break;
- case JSON_NUMBER:
- emit_number(out, node->number_);
- break;
- case JSON_ARRAY:
- emit_array(out, node);
- break;
- case JSON_OBJECT:
- emit_object(out, node);
- break;
- default:
- assert(false);
- }
-}
-
-void emit_value_indented(SB *out, const JsonNode *node, const char *space, int indent_level)
-{
- assert(tag_is_valid(node->tag));
- switch (node->tag) {
- case JSON_NULL:
- sb_puts(out, "null");
- break;
- case JSON_BOOL:
- sb_puts(out, node->bool_ ? "true" : "false");
- break;
- case JSON_STRING:
- emit_string(out, node->string_);
- break;
- case JSON_NUMBER:
- emit_number(out, node->number_);
- break;
- case JSON_ARRAY:
- emit_array_indented(out, node, space, indent_level);
- break;
- case JSON_OBJECT:
- emit_object_indented(out, node, space, indent_level);
- break;
- default:
- assert(false);
- }
-}
-
-static void emit_array(SB *out, const JsonNode *array)
-{
- const JsonNode *element;
-
- sb_putc(out, '[');
- json_foreach(element, array) {
- emit_value(out, element);
- if (element->next != NULL)
- sb_putc(out, ',');
- }
- sb_putc(out, ']');
-}
-
-static void emit_array_indented(SB *out, const JsonNode *array, const char *space, int indent_level)
-{
- const JsonNode *element = array->children.head;
- int i;
-
- if (element == NULL) {
- sb_puts(out, "[]");
- return;
- }
-
- sb_puts(out, "[\n");
- while (element != NULL) {
- for (i = 0; i < indent_level + 1; i++)
- sb_puts(out, space);
- emit_value_indented(out, element, space, indent_level + 1);
-
- element = element->next;
- sb_puts(out, element != NULL ? ",\n" : "\n");
- }
- for (i = 0; i < indent_level; i++)
- sb_puts(out, space);
- sb_putc(out, ']');
-}
-
-static void emit_object(SB *out, const JsonNode *object)
-{
- const JsonNode *member;
-
- sb_putc(out, '{');
- json_foreach(member, object) {
- emit_string(out, member->key);
- sb_putc(out, ':');
- emit_value(out, member);
- if (member->next != NULL)
- sb_putc(out, ',');
- }
- sb_putc(out, '}');
-}
-
-static void emit_object_indented(SB *out, const JsonNode *object, const char *space, int indent_level)
-{
- const JsonNode *member = object->children.head;
- int i;
-
- if (member == NULL) {
- sb_puts(out, "{}");
- return;
- }
-
- sb_puts(out, "{\n");
- while (member != NULL) {
- for (i = 0; i < indent_level + 1; i++)
- sb_puts(out, space);
- emit_string(out, member->key);
- sb_puts(out, ": ");
- emit_value_indented(out, member, space, indent_level + 1);
-
- member = member->next;
- sb_puts(out, member != NULL ? ",\n" : "\n");
- }
- for (i = 0; i < indent_level; i++)
- sb_puts(out, space);
- sb_putc(out, '}');
-}
-
-void emit_string(SB *out, const char *str)
-{
- bool escape_unicode = false;
- const char *s = str;
- char *b;
-
-// make assertion catchable
-#ifndef NDEBUG
- if (!utf8_validate(str)) {
- throw utf8::invalid_utf8(0);
- }
-#endif
-
- assert(utf8_validate(str));
-
- /*
- * 14 bytes is enough space to write up to two
- * \uXXXX escapes and two quotation marks.
- */
- sb_need(out, 14);
- b = out->cur;
-
- *b++ = '"';
- while (*s != 0) {
- unsigned char c = *s++;
-
- /* Encode the next character, and write it to b. */
- switch (c) {
- case '"':
- *b++ = '\\';
- *b++ = '"';
- break;
- case '\\':
- *b++ = '\\';
- *b++ = '\\';
- break;
- case '\b':
- *b++ = '\\';
- *b++ = 'b';
- break;
- case '\f':
- *b++ = '\\';
- *b++ = 'f';
- break;
- case '\n':
- *b++ = '\\';
- *b++ = 'n';
- break;
- case '\r':
- *b++ = '\\';
- *b++ = 'r';
- break;
- case '\t':
- *b++ = '\\';
- *b++ = 't';
- break;
- default: {
- int len;
-
- s--;
- len = utf8_validate_cz(s);
-
- if (len == 0) {
- /*
- * Handle invalid UTF-8 character gracefully in production
- * by writing a replacement character (U+FFFD)
- * and skipping a single byte.
- *
- * This should never happen when assertions are enabled
- * due to the assertion at the beginning of this function.
- */
- assert(false);
- if (escape_unicode) {
- strcpy(b, "\\uFFFD");
- b += 6;
- } else {
- *b++ = 0xEFu;
- *b++ = 0xBFu;
- *b++ = 0xBDu;
- }
- s++;
- } else if (c < 0x1F || (c >= 0x80 && escape_unicode)) {
- /* Encode using \u.... */
- uint32_t unicode;
-
- s += utf8_read_char(s, &unicode);
-
- if (unicode <= 0xFFFF) {
- *b++ = '\\';
- *b++ = 'u';
- b += write_hex16(b, unicode);
- } else {
- /* Produce a surrogate pair. */
- uint16_t uc, lc;
- assert(unicode <= 0x10FFFF);
- to_surrogate_pair(unicode, &uc, &lc);
- *b++ = '\\';
- *b++ = 'u';
- b += write_hex16(b, uc);
- *b++ = '\\';
- *b++ = 'u';
- b += write_hex16(b, lc);
- }
- } else {
- /* Write the character directly. */
- while (len--)
- *b++ = *s++;
- }
-
- break;
- }
- }
-
- /*
- * Update *out to know about the new bytes,
- * and set up b to write another encoded character.
- */
- out->cur = b;
- sb_need(out, 14);
- b = out->cur;
- }
- *b++ = '"';
-
- out->cur = b;
-}
-
-static void emit_number(SB *out, double num)
-{
- /*
- * This isn't exactly how JavaScript renders numbers,
- * but it should produce valid JSON for reasonable numbers
- * preserve precision well enough, and avoid some oddities
- * like 0.3 -> 0.299999999999999988898 .
- */
- char buf[64];
- sprintf(buf, "%.16g", num);
-
- if (number_is_valid(buf))
- sb_puts(out, buf);
- else
- sb_puts(out, "null");
-}
-
-static bool tag_is_valid(unsigned int tag)
-{
- return (/* tag >= JSON_NULL && */ tag <= JSON_OBJECT);
-}
-
-static bool number_is_valid(const char *num)
-{
- return (parse_number(&num, NULL) && *num == '\0');
-}
-
-static bool expect_literal(const char **sp, const char *str)
-{
- const char *s = *sp;
-
- while (*str != '\0')
- if (*s++ != *str++)
- return false;
-
- *sp = s;
- return true;
-}
-
-/*
- * Parses exactly 4 hex characters (capital or lowercase).
- * Fails if any input chars are not [0-9A-Fa-f].
- */
-static bool parse_hex16(const char **sp, uint16_t *out)
-{
- const char *s = *sp;
- uint16_t ret = 0;
- uint16_t i;
- uint16_t tmp;
- char c;
-
- for (i = 0; i < 4; i++) {
- c = *s++;
- if (c >= '0' && c <= '9')
- tmp = c - '0';
- else if (c >= 'A' && c <= 'F')
- tmp = c - 'A' + 10;
- else if (c >= 'a' && c <= 'f')
- tmp = c - 'a' + 10;
- else
- return false;
-
- ret <<= 4;
- ret += tmp;
- }
-
- if (out)
- *out = ret;
- *sp = s;
- return true;
-}
-
-/*
- * Encodes a 16-bit number into hexadecimal,
- * writing exactly 4 hex chars.
- */
-static int write_hex16(char *out, uint16_t val)
-{
- const char *hex = "0123456789ABCDEF";
-
- *out++ = hex[(val >> 12) & 0xF];
- *out++ = hex[(val >> 8) & 0xF];
- *out++ = hex[(val >> 4) & 0xF];
- *out++ = hex[ val & 0xF];
-
- return 4;
-}
-
-bool json_check(const JsonNode *node, char errmsg[256])
-{
- #define problem(...) do { \
- if (errmsg != NULL) \
- snprintf(errmsg, 256, __VA_ARGS__); \
- return false; \
- } while (0)
-
- if (node->key != NULL && !utf8_validate(node->key))
- problem("key contains invalid UTF-8");
-
- if (!tag_is_valid(node->tag))
- problem("tag is invalid (%u)", node->tag);
-
- if (node->tag == JSON_BOOL) {
- if (node->bool_ != false && node->bool_ != true)
- problem("bool_ is neither false (%d) nor true (%d)", (int)false, (int)true);
- } else if (node->tag == JSON_STRING) {
- if (node->string_ == NULL)
- problem("string_ is NULL");
- if (!utf8_validate(node->string_))
- problem("string_ contains invalid UTF-8");
- } else if (node->tag == JSON_ARRAY || node->tag == JSON_OBJECT) {
- JsonNode *head = node->children.head;
- JsonNode *tail = node->children.tail;
-
- if (head == NULL || tail == NULL) {
- if (head != NULL)
- problem("tail is NULL, but head is not");
- if (tail != NULL)
- problem("head is NULL, but tail is not");
- } else {
- JsonNode *child;
- JsonNode *last = NULL;
-
- if (head->prev != NULL)
- problem("First child's prev pointer is not NULL");
-
- for (child = head; child != NULL; last = child, child = child->next) {
- if (child == node)
- problem("node is its own child");
- if (child->next == child)
- problem("child->next == child (cycle)");
- if (child->next == head)
- problem("child->next == head (cycle)");
-
- if (child->parent != node)
- problem("child does not point back to parent");
- if (child->next != NULL && child->next->prev != child)
- problem("child->next does not point back to child");
-
- if (node->tag == JSON_ARRAY && child->key != NULL)
- problem("Array element's key is not NULL");
- if (node->tag == JSON_OBJECT && child->key == NULL)
- problem("Object member's key is NULL");
-
- if (!json_check(child, errmsg))
- return false;
- }
-
- if (last != tail)
- problem("tail does not match pointer found by starting at head and following next links");
- }
- }
-
- return true;
-
- #undef problem
-}
diff --git a/node_modules/node-sass/src/libsass/src/json.hpp b/node_modules/node-sass/src/libsass/src/json.hpp
deleted file mode 100644
index 05b35cd..0000000
--- a/node_modules/node-sass/src/libsass/src/json.hpp
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- Copyright (C) 2011 Joseph A. Adams (joeyadams3.14159@gmail.com)
- All rights reserved.
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
-*/
-
-#ifndef CCAN_JSON_H
-#define CCAN_JSON_H
-
-#include <stdbool.h>
-#include <stddef.h>
-
-typedef enum {
- JSON_NULL,
- JSON_BOOL,
- JSON_STRING,
- JSON_NUMBER,
- JSON_ARRAY,
- JSON_OBJECT,
-} JsonTag;
-
-typedef struct JsonNode JsonNode;
-
-struct JsonNode
-{
- /* only if parent is an object or array (NULL otherwise) */
- JsonNode *parent;
- JsonNode *prev, *next;
-
- /* only if parent is an object (NULL otherwise) */
- char *key; /* Must be valid UTF-8. */
-
- JsonTag tag;
- union {
- /* JSON_BOOL */
- bool bool_;
-
- /* JSON_STRING */
- char *string_; /* Must be valid UTF-8. */
-
- /* JSON_NUMBER */
- double number_;
-
- /* JSON_ARRAY */
- /* JSON_OBJECT */
- struct {
- JsonNode *head, *tail;
- } children;
- };
-};
-
-/*** Encoding, decoding, and validation ***/
-
-JsonNode *json_decode (const char *json);
-char *json_encode (const JsonNode *node);
-char *json_encode_string (const char *str);
-char *json_stringify (const JsonNode *node, const char *space);
-void json_delete (JsonNode *node);
-
-bool json_validate (const char *json);
-
-/*** Lookup and traversal ***/
-
-JsonNode *json_find_element (JsonNode *array, int index);
-JsonNode *json_find_member (JsonNode *object, const char *key);
-
-JsonNode *json_first_child (const JsonNode *node);
-
-#define json_foreach(i, object_or_array) \
- for ((i) = json_first_child(object_or_array); \
- (i) != NULL; \
- (i) = (i)->next)
-
-/*** Construction and manipulation ***/
-
-JsonNode *json_mknull(void);
-JsonNode *json_mkbool(bool b);
-JsonNode *json_mkstring(const char *s);
-JsonNode *json_mknumber(double n);
-JsonNode *json_mkarray(void);
-JsonNode *json_mkobject(void);
-
-void json_append_element(JsonNode *array, JsonNode *element);
-void json_prepend_element(JsonNode *array, JsonNode *element);
-void json_append_member(JsonNode *object, const char *key, JsonNode *value);
-void json_prepend_member(JsonNode *object, const char *key, JsonNode *value);
-
-void json_remove_from_parent(JsonNode *node);
-
-/*** Debugging ***/
-
-/*
- * Look for structure and encoding problems in a JsonNode or its descendents.
- *
- * If a problem is detected, return false, writing a description of the problem
- * to errmsg (unless errmsg is NULL).
- */
-bool json_check(const JsonNode *node, char errmsg[256]);
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp b/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
deleted file mode 100644
index e135da7..0000000
--- a/node_modules/node-sass/src/libsass/src/kwd_arg_macros.hpp
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef SASS_KWD_ARG_MACROS_H
-#define SASS_KWD_ARG_MACROS_H
-
-// Example usage:
-// KWD_ARG_SET(Args) {
-// KWD_ARG(Args, string, foo);
-// KWD_ARG(Args, int, bar);
-// ...
-// };
-//
-// ... and later ...
-//
-// something(Args().foo("hey").bar(3));
-
-#define KWD_ARG_SET(set_name) class set_name
-
-#define KWD_ARG(set_name, type, name) \
-private: \
- type name##_; \
-public: \
- set_name& name(type name##__) { \
- name##_ = name##__; \
- return *this; \
- } \
- type name() { return name##_; } \
-private:
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/lexer.cpp b/node_modules/node-sass/src/libsass/src/lexer.cpp
deleted file mode 100644
index be7f677..0000000
--- a/node_modules/node-sass/src/libsass/src/lexer.cpp
+++ /dev/null
@@ -1,181 +0,0 @@
-#include "sass.hpp"
-#include <cctype>
-#include <iostream>
-#include <iomanip>
-#include "lexer.hpp"
-#include "constants.hpp"
-
-
-namespace Sass {
- using namespace Constants;
-
- namespace Prelexer {
-
- //####################################
- // BASIC CHARACTER MATCHERS
- //####################################
-
- // Match standard control chars
- const char* kwd_at(const char* src) { return exactly<'@'>(src); }
- const char* kwd_dot(const char* src) { return exactly<'.'>(src); }
- const char* kwd_comma(const char* src) { return exactly<','>(src); };
- const char* kwd_colon(const char* src) { return exactly<':'>(src); };
- const char* kwd_star(const char* src) { return exactly<'*'>(src); };
- const char* kwd_plus(const char* src) { return exactly<'+'>(src); };
- const char* kwd_minus(const char* src) { return exactly<'-'>(src); };
- const char* kwd_slash(const char* src) { return exactly<'/'>(src); };
-
- //####################################
- // implement some function that do exist in the standard
- // but those are locale aware which brought some trouble
- // this even seems to improve performance by quite a bit
- //####################################
-
- bool is_alpha(const char& chr)
- {
- return unsigned(chr - 'A') <= 'Z' - 'A' ||
- unsigned(chr - 'a') <= 'z' - 'a';
- }
-
- bool is_space(const char& chr)
- {
- // adapted the technique from is_alpha
- return chr == ' ' || unsigned(chr - '\t') <= '\r' - '\t';
- }
-
- bool is_digit(const char& chr)
- {
- // adapted the technique from is_alpha
- return unsigned(chr - '0') <= '9' - '0';
- }
-
- bool is_number(const char& chr)
- {
- // adapted the technique from is_alpha
- return is_digit(chr) || chr == '-' || chr == '+';
- }
-
- bool is_xdigit(const char& chr)
- {
- // adapted the technique from is_alpha
- return unsigned(chr - '0') <= '9' - '0' ||
- unsigned(chr - 'a') <= 'f' - 'a' ||
- unsigned(chr - 'A') <= 'F' - 'A';
- }
-
- bool is_punct(const char& chr)
- {
- // locale independent
- return chr == '.';
- }
-
- bool is_alnum(const char& chr)
- {
- return is_alpha(chr) || is_digit(chr);
- }
-
- // check if char is outside ascii range
- bool is_unicode(const char& chr)
- {
- // check for unicode range
- return unsigned(chr) > 127;
- }
-
- // check if char is outside ascii range
- // but with specific ranges (copied from Ruby Sass)
- bool is_nonascii(const char& chr)
- {
- unsigned int cmp = unsigned(chr);
- return (
- (cmp >= 128 && cmp <= 15572911) ||
- (cmp >= 15630464 && cmp <= 15712189) ||
- (cmp >= 4036001920)
- );
- }
-
- // check if char is within a reduced ascii range
- // valid in a uri (copied from Ruby Sass)
- bool is_uri_character(const char& chr)
- {
- unsigned int cmp = unsigned(chr);
- return (cmp > 41 && cmp < 127) ||
- cmp == ':' || cmp == '/';
- }
-
- // check if char is within a reduced ascii range
- // valid for escaping (copied from Ruby Sass)
- bool is_escapable_character(const char& chr)
- {
- unsigned int cmp = unsigned(chr);
- return cmp > 31 && cmp < 127;
- }
-
- // Match word character (look ahead)
- bool is_character(const char& chr)
- {
- // valid alpha, numeric or unicode char (plus hyphen)
- return is_alnum(chr) || is_unicode(chr) || chr == '-';
- }
-
- //####################################
- // BASIC CLASS MATCHERS
- //####################################
-
- // create matchers that advance the position
- const char* space(const char* src) { return is_space(*src) ? src + 1 : 0; }
- const char* alpha(const char* src) { return is_alpha(*src) ? src + 1 : 0; }
- const char* unicode(const char* src) { return is_unicode(*src) ? src + 1 : 0; }
- const char* nonascii(const char* src) { return is_nonascii(*src) ? src + 1 : 0; }
- const char* digit(const char* src) { return is_digit(*src) ? src + 1 : 0; }
- const char* xdigit(const char* src) { return is_xdigit(*src) ? src + 1 : 0; }
- const char* alnum(const char* src) { return is_alnum(*src) ? src + 1 : 0; }
- const char* punct(const char* src) { return is_punct(*src) ? src + 1 : 0; }
- const char* hyphen(const char* src) { return *src && *src == '-' ? src + 1 : 0; }
- const char* character(const char* src) { return is_character(*src) ? src + 1 : 0; }
- const char* uri_character(const char* src) { return is_uri_character(*src) ? src + 1 : 0; }
- const char* escapable_character(const char* src) { return is_escapable_character(*src) ? src + 1 : 0; }
-
- // Match multiple ctype characters.
- const char* spaces(const char* src) { return one_plus<space>(src); }
- const char* digits(const char* src) { return one_plus<digit>(src); }
- const char* hyphens(const char* src) { return one_plus<hyphen>(src); }
-
- // Whitespace handling.
- const char* no_spaces(const char* src) { return negate< space >(src); }
- const char* optional_spaces(const char* src) { return zero_plus< space >(src); }
-
- // Match any single character.
- const char* any_char(const char* src) { return *src ? src + 1 : src; }
-
- // Match word boundary (zero-width lookahead).
- const char* word_boundary(const char* src) { return is_character(*src) || *src == '#' ? 0 : src; }
-
- // Match linefeed /(?:\n|\r\n?)/
- const char* re_linebreak(const char* src)
- {
- // end of file or unix linefeed return here
- if (*src == 0 || *src == '\n') return src + 1;
- // a carriage return may optionally be followed by a linefeed
- if (*src == '\r') return *(src + 1) == '\n' ? src + 2 : src + 1;
- // no linefeed
- return 0;
- }
-
- // Assert string boundaries (/\Z|\z|\A/)
- // This is a zero-width positive lookahead
- const char* end_of_line(const char* src)
- {
- // end of file or unix linefeed return here
- return *src == 0 || *src == '\n' || *src == '\r' ? src : 0;
- }
-
- // Assert end_of_file boundary (/\z/)
- // This is a zero-width positive lookahead
- const char* end_of_file(const char* src)
- {
- // end of file or unix linefeed return here
- return *src == 0 ? src : 0;
- }
-
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/lexer.hpp b/node_modules/node-sass/src/libsass/src/lexer.hpp
deleted file mode 100644
index 5838c29..0000000
--- a/node_modules/node-sass/src/libsass/src/lexer.hpp
+++ /dev/null
@@ -1,315 +0,0 @@
-#ifndef SASS_LEXER_H
-#define SASS_LEXER_H
-
-#include <cstring>
-
-namespace Sass {
- namespace Prelexer {
-
- //####################################
- // BASIC CHARACTER MATCHERS
- //####################################
-
- // Match standard control chars
- const char* kwd_at(const char* src);
- const char* kwd_dot(const char* src);
- const char* kwd_comma(const char* src);
- const char* kwd_colon(const char* src);
- const char* kwd_star(const char* src);
- const char* kwd_plus(const char* src);
- const char* kwd_minus(const char* src);
- const char* kwd_slash(const char* src);
-
- //####################################
- // BASIC CLASS MATCHERS
- //####################################
-
- // These are locale independant
- bool is_space(const char& src);
- bool is_alpha(const char& src);
- bool is_punct(const char& src);
- bool is_digit(const char& src);
- bool is_number(const char& src);
- bool is_alnum(const char& src);
- bool is_xdigit(const char& src);
- bool is_unicode(const char& src);
- bool is_nonascii(const char& src);
- bool is_character(const char& src);
- bool is_uri_character(const char& src);
- bool escapable_character(const char& src);
-
- // Match a single ctype predicate.
- const char* space(const char* src);
- const char* alpha(const char* src);
- const char* digit(const char* src);
- const char* xdigit(const char* src);
- const char* alnum(const char* src);
- const char* punct(const char* src);
- const char* hyphen(const char* src);
- const char* unicode(const char* src);
- const char* nonascii(const char* src);
- const char* character(const char* src);
- const char* uri_character(const char* src);
- const char* escapable_character(const char* src);
-
- // Match multiple ctype characters.
- const char* spaces(const char* src);
- const char* digits(const char* src);
- const char* hyphens(const char* src);
-
- // Whitespace handling.
- const char* no_spaces(const char* src);
- const char* optional_spaces(const char* src);
-
- // Match any single character (/./).
- const char* any_char(const char* src);
-
- // Assert word boundary (/\b/)
- // Is a zero-width positive lookaheads
- const char* word_boundary(const char* src);
-
- // Match a single linebreak (/(?:\n|\r\n?)/).
- const char* re_linebreak(const char* src);
-
- // Assert string boundaries (/\Z|\z|\A/)
- // There are zero-width positive lookaheads
- const char* end_of_line(const char* src);
-
- // Assert end_of_file boundary (/\z/)
- const char* end_of_file(const char* src);
- // const char* start_of_string(const char* src);
-
- // Type definition for prelexer functions
- typedef const char* (*prelexer)(const char*);
-
- //####################################
- // BASIC "REGEX" CONSTRUCTORS
- //####################################
-
- // Match a single character literal.
- // Regex equivalent: /(?:x)/
- template <char chr>
- const char* exactly(const char* src) {
- return *src == chr ? src + 1 : 0;
- }
-
- // Match the full string literal.
- // Regex equivalent: /(?:literal)/
- template <const char* str>
- const char* exactly(const char* src) {
- if (str == NULL) return 0;
- const char* pre = str;
- if (src == NULL) return 0;
- // there is a small chance that the search string
- // is longer than the rest of the string to look at
- while (*pre && *src == *pre) {
- ++src, ++pre;
- }
- // did the matcher finish?
- return *pre == 0 ? src : 0;
- }
-
-
- // Match a single character literal.
- // Regex equivalent: /(?:x)/i
- // only define lower case alpha chars
- template <char chr>
- const char* insensitive(const char* src) {
- return *src == chr || *src+32 == chr ? src + 1 : 0;
- }
-
- // Match the full string literal.
- // Regex equivalent: /(?:literal)/i
- // only define lower case alpha chars
- template <const char* str>
- const char* insensitive(const char* src) {
- if (str == NULL) return 0;
- const char* pre = str;
- if (src == NULL) return 0;
- // there is a small chance that the search string
- // is longer than the rest of the string to look at
- while (*pre && (*src == *pre || *src+32 == *pre)) {
- ++src, ++pre;
- }
- // did the matcher finish?
- return *pre == 0 ? src : 0;
- }
-
- // Match for members of char class.
- // Regex equivalent: /[axy]/
- template <const char* char_class>
- const char* class_char(const char* src) {
- const char* cc = char_class;
- while (*cc && *src != *cc) ++cc;
- return *cc ? src + 1 : 0;
- }
-
- // Match for members of char class.
- // Regex equivalent: /[axy]+/
- template <const char* char_class>
- const char* class_chars(const char* src) {
- const char* p = src;
- while (class_char<char_class>(p)) ++p;
- return p == src ? 0 : p;
- }
-
- // Match for members of char class.
- // Regex equivalent: /[^axy]/
- template <const char* neg_char_class>
- const char* neg_class_char(const char* src) {
- if (*src == 0) return 0;
- const char* cc = neg_char_class;
- while (*cc && *src != *cc) ++cc;
- return *cc ? 0 : src + 1;
- }
-
- // Match for members of char class.
- // Regex equivalent: /[^axy]+/
- template <const char* neg_char_class>
- const char* neg_class_chars(const char* src) {
- const char* p = src;
- while (neg_class_char<neg_char_class>(p)) ++p;
- return p == src ? 0 : p;
- }
-
- // Match all except the supplied one.
- // Regex equivalent: /[^x]/
- template <const char chr>
- const char* any_char_but(const char* src) {
- return (*src && *src != chr) ? src + 1 : 0;
- }
-
- // Succeeds if the matcher fails.
- // Aka. zero-width negative lookahead.
- // Regex equivalent: /(?!literal)/
- template <prelexer mx>
- const char* negate(const char* src) {
- return mx(src) ? 0 : src;
- }
-
- // Succeeds if the matcher succeeds.
- // Aka. zero-width positive lookahead.
- // Regex equivalent: /(?=literal)/
- // just hangs around until we need it
- template <prelexer mx>
- const char* lookahead(const char* src) {
- return mx(src) ? src : 0;
- }
-
- // Tries supplied matchers in order.
- // Succeeds if one of them succeeds.
- // Regex equivalent: /(?:FOO|BAR)/
- template <const prelexer mx>
- const char* alternatives(const char* src) {
- const char* rslt;
- if ((rslt = mx(src))) return rslt;
- return 0;
- }
- template <const prelexer mx1, const prelexer mx2, const prelexer... mxs>
- const char* alternatives(const char* src) {
- const char* rslt;
- if ((rslt = mx1(src))) return rslt;
- return alternatives<mx2, mxs...>(src);
- }
-
- // Tries supplied matchers in order.
- // Succeeds if all of them succeeds.
- // Regex equivalent: /(?:FOO)(?:BAR)/
- template <const prelexer mx1>
- const char* sequence(const char* src) {
- const char* rslt = src;
- if (!(rslt = mx1(rslt))) return 0;
- return rslt;
- }
- template <const prelexer mx1, const prelexer mx2, const prelexer... mxs>
- const char* sequence(const char* src) {
- const char* rslt = src;
- if (!(rslt = mx1(rslt))) return 0;
- return sequence<mx2, mxs...>(rslt);
- }
-
-
- // Match a pattern or not. Always succeeds.
- // Regex equivalent: /(?:literal)?/
- template <prelexer mx>
- const char* optional(const char* src) {
- const char* p = mx(src);
- return p ? p : src;
- }
-
- // Match zero or more of the patterns.
- // Regex equivalent: /(?:literal)*/
- template <prelexer mx>
- const char* zero_plus(const char* src) {
- const char* p = mx(src);
- while (p) src = p, p = mx(src);
- return src;
- }
-
- // Match one or more of the patterns.
- // Regex equivalent: /(?:literal)+/
- template <prelexer mx>
- const char* one_plus(const char* src) {
- const char* p = mx(src);
- if (!p) return 0;
- while (p) src = p, p = mx(src);
- return src;
- }
-
- // Match mx non-greedy until delimiter.
- // Other prelexers are greedy by default.
- // Regex equivalent: /(?:$mx)*?(?=$delim)\b/
- template <prelexer mx, prelexer delim>
- const char* non_greedy(const char* src) {
- while (!delim(src)) {
- const char* p = mx(src);
- if (p == src) return 0;
- if (p == 0) return 0;
- src = p;
- }
- return src;
- }
-
- //####################################
- // ADVANCED "REGEX" CONSTRUCTORS
- //####################################
-
- // Match with word boundary rule.
- // Regex equivalent: /(?:$mx)\b/i
- template <const char* str>
- const char* keyword(const char* src) {
- return sequence <
- insensitive < str >,
- word_boundary
- >(src);
- }
-
- // Match with word boundary rule.
- // Regex equivalent: /(?:$mx)\b/
- template <const char* str>
- const char* word(const char* src) {
- return sequence <
- exactly < str >,
- word_boundary
- >(src);
- }
-
- template <char chr>
- const char* loosely(const char* src) {
- return sequence <
- optional_spaces,
- exactly < chr >
- >(src);
- }
- template <const char* str>
- const char* loosely(const char* src) {
- return sequence <
- optional_spaces,
- exactly < str >
- >(src);
- }
-
- }
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/listize.cpp b/node_modules/node-sass/src/libsass/src/listize.cpp
deleted file mode 100644
index cb921ae..0000000
--- a/node_modules/node-sass/src/libsass/src/listize.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-#include "sass.hpp"
-#include <iostream>
-#include <typeinfo>
-#include <string>
-
-#include "listize.hpp"
-#include "context.hpp"
-#include "backtrace.hpp"
-#include "error_handling.hpp"
-
-namespace Sass {
-
- Listize::Listize()
- { }
-
- Expression_Ptr Listize::operator()(Selector_List_Ptr sel)
- {
- List_Obj l = SASS_MEMORY_NEW(List, sel->pstate(), sel->length(), SASS_COMMA);
- l->from_selector(true);
- for (size_t i = 0, L = sel->length(); i < L; ++i) {
- if (!sel->at(i)) continue;
- l->append(sel->at(i)->perform(this));
- }
- if (l->length()) return l.detach();
- return SASS_MEMORY_NEW(Null, l->pstate());
- }
-
- Expression_Ptr Listize::operator()(Compound_Selector_Ptr sel)
- {
- std::string str;
- for (size_t i = 0, L = sel->length(); i < L; ++i) {
- Expression_Ptr e = (*sel)[i]->perform(this);
- if (e) str += e->to_string();
- }
- return SASS_MEMORY_NEW(String_Quoted, sel->pstate(), str);
- }
-
- Expression_Ptr Listize::operator()(Complex_Selector_Ptr sel)
- {
- List_Obj l = SASS_MEMORY_NEW(List, sel->pstate(), 2);
- l->from_selector(true);
- Compound_Selector_Obj head = sel->head();
- if (head && !head->is_empty_reference())
- {
- Expression_Ptr hh = head->perform(this);
- if (hh) l->append(hh);
- }
-
- std::string reference = ! sel->reference() ? ""
- : sel->reference()->to_string();
- switch(sel->combinator())
- {
- case Complex_Selector::PARENT_OF:
- l->append(SASS_MEMORY_NEW(String_Quoted, sel->pstate(), ">"));
- break;
- case Complex_Selector::ADJACENT_TO:
- l->append(SASS_MEMORY_NEW(String_Quoted, sel->pstate(), "+"));
- break;
- case Complex_Selector::REFERENCE:
- l->append(SASS_MEMORY_NEW(String_Quoted, sel->pstate(), "/" + reference + "/"));
- break;
- case Complex_Selector::PRECEDES:
- l->append(SASS_MEMORY_NEW(String_Quoted, sel->pstate(), "~"));
- break;
- case Complex_Selector::ANCESTOR_OF:
- break;
- default: break;
- }
-
- Complex_Selector_Obj tail = sel->tail();
- if (tail)
- {
- Expression_Obj tt = tail->perform(this);
- if (List_Ptr ls = Cast<List>(tt))
- { l->concat(ls); }
- }
- if (l->length() == 0) return 0;
- return l.detach();
- }
-
- Expression_Ptr Listize::fallback_impl(AST_Node_Ptr n)
- {
- return Cast<Expression>(n);
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/listize.hpp b/node_modules/node-sass/src/libsass/src/listize.hpp
deleted file mode 100644
index 9716ebe..0000000
--- a/node_modules/node-sass/src/libsass/src/listize.hpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef SASS_LISTIZE_H
-#define SASS_LISTIZE_H
-
-#include <vector>
-#include <iostream>
-
-#include "ast.hpp"
-#include "context.hpp"
-#include "operation.hpp"
-#include "environment.hpp"
-
-namespace Sass {
-
- struct Backtrace;
-
- class Listize : public Operation_CRTP<Expression_Ptr, Listize> {
-
- Expression_Ptr fallback_impl(AST_Node_Ptr n);
-
- public:
- Listize();
- ~Listize() { }
-
- Expression_Ptr operator()(Selector_List_Ptr);
- Expression_Ptr operator()(Complex_Selector_Ptr);
- Expression_Ptr operator()(Compound_Selector_Ptr);
-
- template <typename U>
- Expression_Ptr fallback(U x) { return fallback_impl(x); }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/mapping.hpp b/node_modules/node-sass/src/libsass/src/mapping.hpp
deleted file mode 100644
index 54fb4a0..0000000
--- a/node_modules/node-sass/src/libsass/src/mapping.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#ifndef SASS_MAPPING_H
-#define SASS_MAPPING_H
-
-#include "position.hpp"
-
-namespace Sass {
-
- struct Mapping {
- Position original_position;
- Position generated_position;
-
- Mapping(const Position& original_position, const Position& generated_position)
- : original_position(original_position), generated_position(generated_position) { }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/memory/SharedPtr.cpp b/node_modules/node-sass/src/libsass/src/memory/SharedPtr.cpp
deleted file mode 100644
index 2530360..0000000
--- a/node_modules/node-sass/src/libsass/src/memory/SharedPtr.cpp
+++ /dev/null
@@ -1,114 +0,0 @@
-#include "../sass.hpp"
-#include <iostream>
-#include <typeinfo>
-
-#include "SharedPtr.hpp"
-#include "../ast_fwd_decl.hpp"
-
-#ifdef DEBUG_SHARED_PTR
-#include "../debugger.hpp"
-#endif
-
-namespace Sass {
-
- #ifdef DEBUG_SHARED_PTR
- void SharedObj::dumpMemLeaks() {
- if (!all.empty()) {
- std::cerr << "###################################\n";
- std::cerr << "# REPORTING MISSING DEALLOCATIONS #\n";
- std::cerr << "###################################\n";
- for (SharedObj* var : all) {
- if (AST_Node_Ptr ast = dynamic_cast<AST_Node*>(var)) {
- debug_ast(ast);
- } else {
- std::cerr << "LEAKED " << var << "\n";
- }
- }
- }
- }
- std::vector<SharedObj*> SharedObj::all;
- #endif
-
- bool SharedObj::taint = false;
-
- SharedObj::SharedObj()
- : detached(false)
- #ifdef DEBUG_SHARED_PTR
- , dbg(false)
- #endif
- {
- refcounter = 0;
- #ifdef DEBUG_SHARED_PTR
- if (taint) all.push_back(this);
- #endif
- };
-
- SharedObj::~SharedObj() {
- #ifdef DEBUG_SHARED_PTR
- if (dbg) std::cerr << "Destruct " << this << "\n";
- if(!all.empty()) { // check needed for MSVC (no clue why?)
- all.erase(std::remove(all.begin(), all.end(), this), all.end());
- }
- #endif
- };
-
- void SharedPtr::decRefCount() {
- if (node) {
- -- node->refcounter;
- #ifdef DEBUG_SHARED_PTR
- if (node->dbg) std::cerr << "- " << node << " X " << node->refcounter << " (" << this << ") " << "\n";
- #endif
- if (node->refcounter == 0) {
- #ifdef DEBUG_SHARED_PTR
- // AST_Node_Ptr ast = dynamic_cast<AST_Node*>(node);
- if (node->dbg) std::cerr << "DELETE NODE " << node << "\n";
- #endif
- if (!node->detached) {
- delete(node);
- }
- }
- }
- }
-
- void SharedPtr::incRefCount() {
- if (node) {
- ++ node->refcounter;
- node->detached = false;
- #ifdef DEBUG_SHARED_PTR
- if (node->dbg) {
- std::cerr << "+ " << node << " X " << node->refcounter << " (" << this << ") " << "\n";
- }
- #endif
- }
- }
-
- SharedPtr::~SharedPtr() {
- decRefCount();
- }
-
-
- // the create constructor
- SharedPtr::SharedPtr(SharedObj* ptr)
- : node(ptr) {
- incRefCount();
- }
- // copy assignment operator
- SharedPtr& SharedPtr::operator=(const SharedPtr& rhs) {
- void* cur_ptr = (void*) node;
- void* rhs_ptr = (void*) rhs.node;
- if (cur_ptr == rhs_ptr) {
- return *this;
- }
- decRefCount();
- node = rhs.node;
- incRefCount();
- return *this;
- }
-
- // the copy constructor
- SharedPtr::SharedPtr(const SharedPtr& obj)
- : node(obj.node) {
- incRefCount();
- }
-
-} \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/src/memory/SharedPtr.hpp b/node_modules/node-sass/src/libsass/src/memory/SharedPtr.hpp
deleted file mode 100644
index f20dfa3..0000000
--- a/node_modules/node-sass/src/libsass/src/memory/SharedPtr.hpp
+++ /dev/null
@@ -1,206 +0,0 @@
-#ifndef SASS_MEMORY_SHARED_PTR_H
-#define SASS_MEMORY_SHARED_PTR_H
-
-#include "sass/base.h"
-
-#include <vector>
-
-namespace Sass {
-
- class SharedPtr;
-
- ///////////////////////////////////////////////////////////////////////////////
- // Use macros for the allocation task, since overloading operator `new`
- // has been proven to be flaky under certain compilers (see comment below).
- ///////////////////////////////////////////////////////////////////////////////
-
- #ifdef DEBUG_SHARED_PTR
-
- #define SASS_MEMORY_NEW(Class, ...) \
- ((Class*)(new Class(__VA_ARGS__))->trace(__FILE__, __LINE__)) \
-
- #define SASS_MEMORY_COPY(obj) \
- ((obj)->copy(__FILE__, __LINE__)) \
-
- #define SASS_MEMORY_CLONE(obj) \
- ((obj)->clone(__FILE__, __LINE__)) \
-
- #else
-
- #define SASS_MEMORY_NEW(Class, ...) \
- new Class(__VA_ARGS__) \
-
- #define SASS_MEMORY_COPY(obj) \
- ((obj)->copy()) \
-
- #define SASS_MEMORY_CLONE(obj) \
- ((obj)->clone()) \
-
- #endif
-
- class SharedObj {
- protected:
- friend class SharedPtr;
- friend class Memory_Manager;
- #ifdef DEBUG_SHARED_PTR
- static std::vector<SharedObj*> all;
- std::string file;
- size_t line;
- #endif
- static bool taint;
- long refcounter;
- // long refcount;
- bool detached;
- #ifdef DEBUG_SHARED_PTR
- bool dbg;
- #endif
- public:
- #ifdef DEBUG_SHARED_PTR
- static void dumpMemLeaks();
- SharedObj* trace(std::string file, size_t line) {
- this->file = file;
- this->line = line;
- return this;
- }
- #endif
- SharedObj();
- #ifdef DEBUG_SHARED_PTR
- std::string getDbgFile() {
- return file;
- }
- size_t getDbgLine() {
- return line;
- }
- void setDbg(bool dbg) {
- this->dbg = dbg;
- }
- #endif
- static void setTaint(bool val) {
- taint = val;
- }
- virtual ~SharedObj();
- long getRefCount() {
- return refcounter;
- }
- };
-
-
- class SharedPtr {
- protected:
- SharedObj* node;
- protected:
- void decRefCount();
- void incRefCount();
- public:
- // the empty constructor
- SharedPtr()
- : node(NULL) {};
- // the create constructor
- SharedPtr(SharedObj* ptr);
- // the copy constructor
- SharedPtr(const SharedPtr& obj);
- // the move constructor
- SharedPtr(SharedPtr&& obj);
- // copy assignment operator
- SharedPtr& operator=(const SharedPtr& obj);
- // move assignment operator
- SharedPtr& operator=(SharedPtr&& obj);
- // pure virtual destructor
- virtual ~SharedPtr() = 0;
- public:
- SharedObj* obj () const {
- return node;
- };
- SharedObj* operator-> () const {
- return node;
- };
- bool isNull () {
- return node == NULL;
- };
- bool isNull () const {
- return node == NULL;
- };
- SharedObj* detach() const {
- if (node) {
- node->detached = true;
- }
- return node;
- };
- operator bool() const {
- return node != NULL;
- };
-
- };
-
- template < class T >
- class SharedImpl : private SharedPtr {
- public:
- SharedImpl()
- : SharedPtr(NULL) {};
- SharedImpl(T* node)
- : SharedPtr(node) {};
- template < class U >
- SharedImpl(SharedImpl<U> obj)
- : SharedPtr(static_cast<T*>(obj.ptr())) {}
- SharedImpl(T&& node)
- : SharedPtr(node) {};
- SharedImpl(const T& node)
- : SharedPtr(node) {};
- // the copy constructor
- SharedImpl(const SharedImpl<T>& impl)
- : SharedPtr(impl.node) {};
- // the move constructor
- SharedImpl(SharedImpl<T>&& impl)
- : SharedPtr(impl.node) {};
- // copy assignment operator
- SharedImpl<T>& operator=(const SharedImpl<T>& rhs) {
- if (node) decRefCount();
- node = rhs.node;
- incRefCount();
- return *this;
- }
- // move assignment operator
- SharedImpl<T>& operator=(SharedImpl<T>&& rhs) {
- // don't move our self
- if (this != &rhs) {
- if (node) decRefCount();
- node = std::move(rhs.node);
- rhs.node = NULL;
- }
- return *this;
- }
- ~SharedImpl() {};
- public:
- operator T*() const {
- return static_cast<T*>(this->obj());
- }
- operator T&() const {
- return *static_cast<T*>(this->obj());
- }
- T& operator* () const {
- return *static_cast<T*>(this->obj());
- };
- T* operator-> () const {
- return static_cast<T*>(this->obj());
- };
- T* ptr () const {
- return static_cast<T*>(this->obj());
- };
- T* detach() const {
- if (this->obj() == NULL) return NULL;
- return static_cast<T*>(SharedPtr::detach());
- }
- bool isNull() const {
- return this->obj() == NULL;
- }
- bool operator<(const T& rhs) const {
- return *this->ptr() < rhs;
- };
- operator bool() const {
- return this->obj() != NULL;
- };
- };
-
-}
-
-#endif \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/src/node.cpp b/node_modules/node-sass/src/libsass/src/node.cpp
deleted file mode 100644
index 08eada7..0000000
--- a/node_modules/node-sass/src/libsass/src/node.cpp
+++ /dev/null
@@ -1,319 +0,0 @@
-#include "sass.hpp"
-#include <vector>
-
-#include "node.hpp"
-#include "context.hpp"
-#include "parser.hpp"
-
-namespace Sass {
-
-
- Node Node::createCombinator(const Complex_Selector::Combinator& combinator) {
- NodeDequePtr null;
- return Node(COMBINATOR, combinator, NULL /*pSelector*/, null /*pCollection*/);
- }
-
-
- Node Node::createSelector(const Complex_Selector& pSelector) {
- NodeDequePtr null;
-
- Complex_Selector_Ptr pStripped = SASS_MEMORY_COPY(&pSelector);
- pStripped->tail(NULL);
- pStripped->combinator(Complex_Selector::ANCESTOR_OF);
-
- Node n(SELECTOR, Complex_Selector::ANCESTOR_OF, pStripped, null /*pCollection*/);
- n.got_line_feed = pSelector.has_line_feed();
- return n;
- }
-
-
- Node Node::createCollection() {
- NodeDequePtr pEmptyCollection = std::make_shared<NodeDeque>();
- return Node(COLLECTION, Complex_Selector::ANCESTOR_OF, NULL /*pSelector*/, pEmptyCollection);
- }
-
-
- Node Node::createCollection(const NodeDeque& values) {
- NodeDequePtr pShallowCopiedCollection = std::make_shared<NodeDeque>(values);
- return Node(COLLECTION, Complex_Selector::ANCESTOR_OF, NULL /*pSelector*/, pShallowCopiedCollection);
- }
-
-
- Node Node::createNil() {
- NodeDequePtr null;
- return Node(NIL, Complex_Selector::ANCESTOR_OF, NULL /*pSelector*/, null /*pCollection*/);
- }
-
-
- Node::Node(const TYPE& type, Complex_Selector::Combinator combinator, Complex_Selector_Ptr pSelector, NodeDequePtr& pCollection)
- : got_line_feed(false), mType(type), mCombinator(combinator), mpSelector(pSelector), mpCollection(pCollection)
- { if (pSelector) got_line_feed = pSelector->has_line_feed(); }
-
-
- Node Node::klone() const {
- NodeDequePtr pNewCollection = std::make_shared<NodeDeque>();
- if (mpCollection) {
- for (NodeDeque::iterator iter = mpCollection->begin(), iterEnd = mpCollection->end(); iter != iterEnd; iter++) {
- Node& toClone = *iter;
- pNewCollection->push_back(toClone.klone());
- }
- }
-
- Node n(mType, mCombinator, mpSelector ? SASS_MEMORY_COPY(mpSelector) : NULL, pNewCollection);
- n.got_line_feed = got_line_feed;
- return n;
- }
-
-
- bool Node::contains(const Node& potentialChild) const {
- bool found = false;
-
- for (NodeDeque::iterator iter = mpCollection->begin(), iterEnd = mpCollection->end(); iter != iterEnd; iter++) {
- Node& toTest = *iter;
-
- if (toTest == potentialChild) {
- found = true;
- break;
- }
- }
-
- return found;
- }
-
-
- bool Node::operator==(const Node& rhs) const {
- if (this->type() != rhs.type()) {
- return false;
- }
-
- if (this->isCombinator()) {
-
- return this->combinator() == rhs.combinator();
-
- } else if (this->isNil()) {
-
- return true; // no state to check
-
- } else if (this->isSelector()){
-
- return *this->selector() == *rhs.selector();
-
- } else if (this->isCollection()) {
-
- if (this->collection()->size() != rhs.collection()->size()) {
- return false;
- }
-
- for (NodeDeque::iterator lhsIter = this->collection()->begin(), lhsIterEnd = this->collection()->end(),
- rhsIter = rhs.collection()->begin(); lhsIter != lhsIterEnd; lhsIter++, rhsIter++) {
-
- if (*lhsIter != *rhsIter) {
- return false;
- }
-
- }
-
- return true;
-
- }
-
- // We shouldn't get here.
- throw "Comparing unknown node types. A new type was probably added and this method wasn't implemented for it.";
- }
-
-
- void Node::plus(Node& rhs) {
- if (!this->isCollection() || !rhs.isCollection()) {
- throw "Both the current node and rhs must be collections.";
- }
- this->collection()->insert(this->collection()->end(), rhs.collection()->begin(), rhs.collection()->end());
- }
-
-#ifdef DEBUG
- std::ostream& operator<<(std::ostream& os, const Node& node) {
-
- if (node.isCombinator()) {
-
- switch (node.combinator()) {
- case Complex_Selector::ANCESTOR_OF: os << "\" \""; break;
- case Complex_Selector::PARENT_OF: os << "\">\""; break;
- case Complex_Selector::PRECEDES: os << "\"~\""; break;
- case Complex_Selector::ADJACENT_TO: os << "\"+\""; break;
- case Complex_Selector::REFERENCE: os << "\"/\""; break;
- }
-
- } else if (node.isNil()) {
-
- os << "nil";
-
- } else if (node.isSelector()){
-
- os << node.selector()->head()->to_string();
-
- } else if (node.isCollection()) {
-
- os << "[";
-
- for (NodeDeque::iterator iter = node.collection()->begin(), iterBegin = node.collection()->begin(), iterEnd = node.collection()->end(); iter != iterEnd; iter++) {
- if (iter != iterBegin) {
- os << ", ";
- }
-
- os << (*iter);
- }
-
- os << "]";
-
- }
-
- return os;
-
- }
-#endif
-
-
- Node complexSelectorToNode(Complex_Selector_Ptr pToConvert) {
- if (pToConvert == NULL) {
- return Node::createNil();
- }
- Node node = Node::createCollection();
- node.got_line_feed = pToConvert->has_line_feed();
- bool has_lf = pToConvert->has_line_feed();
-
- // unwrap the selector from parent ref
- if (pToConvert->head() && pToConvert->head()->has_parent_ref()) {
- Complex_Selector_Obj tail = pToConvert->tail();
- if (tail) tail->has_line_feed(pToConvert->has_line_feed());
- pToConvert = tail;
- }
-
- while (pToConvert) {
-
- bool empty_parent_ref = pToConvert->head() && pToConvert->head()->is_empty_reference();
-
- // the first Complex_Selector may contain a dummy head pointer, skip it.
- if (pToConvert->head() && !empty_parent_ref) {
- node.collection()->push_back(Node::createSelector(*pToConvert));
- if (has_lf) node.collection()->back().got_line_feed = has_lf;
- if (pToConvert->head() || empty_parent_ref) {
- if (pToConvert->tail()) {
- pToConvert->tail()->has_line_feed(pToConvert->has_line_feed());
- }
- }
- has_lf = false;
- }
-
- if (pToConvert->combinator() != Complex_Selector::ANCESTOR_OF) {
- node.collection()->push_back(Node::createCombinator(pToConvert->combinator()));
- if (has_lf) node.collection()->back().got_line_feed = has_lf;
- has_lf = false;
- }
-
- if (pToConvert && empty_parent_ref && pToConvert->tail()) {
- // pToConvert->tail()->has_line_feed(pToConvert->has_line_feed());
- }
-
- pToConvert = pToConvert->tail();
- }
-
- return node;
- }
-
-
- Complex_Selector_Ptr nodeToComplexSelector(const Node& toConvert) {
- if (toConvert.isNil()) {
- return NULL;
- }
-
-
- if (!toConvert.isCollection()) {
- throw "The node to convert to a Complex_Selector_Ptr must be a collection type or nil.";
- }
-
-
- NodeDeque& childNodes = *toConvert.collection();
-
- std::string noPath("");
- Complex_Selector_Obj pFirst = SASS_MEMORY_NEW(Complex_Selector, ParserState("[NODE]"), Complex_Selector::ANCESTOR_OF, NULL, NULL);
-
- Complex_Selector_Obj pCurrent = pFirst;
-
- if (toConvert.isSelector()) pFirst->has_line_feed(toConvert.got_line_feed);
- if (toConvert.isCombinator()) pFirst->has_line_feed(toConvert.got_line_feed);
-
- for (NodeDeque::iterator childIter = childNodes.begin(), childIterEnd = childNodes.end(); childIter != childIterEnd; childIter++) {
-
- Node& child = *childIter;
-
- if (child.isSelector()) {
- // JMA - need to clone the selector, because they can end up getting shared across Node
- // collections, and can result in an infinite loop during the call to parentSuperselector()
- pCurrent->tail(SASS_MEMORY_COPY(child.selector()));
- // if (child.got_line_feed) pCurrent->has_line_feed(child.got_line_feed);
- pCurrent = pCurrent->tail();
- } else if (child.isCombinator()) {
- pCurrent->combinator(child.combinator());
- if (child.got_line_feed) pCurrent->has_line_feed(child.got_line_feed);
-
- // if the next node is also a combinator, create another Complex_Selector to hold it so it doesn't replace the current combinator
- if (childIter+1 != childIterEnd) {
- Node& nextNode = *(childIter+1);
- if (nextNode.isCombinator()) {
- pCurrent->tail(SASS_MEMORY_NEW(Complex_Selector, ParserState("[NODE]"), Complex_Selector::ANCESTOR_OF, NULL, NULL));
- if (nextNode.got_line_feed) pCurrent->tail()->has_line_feed(nextNode.got_line_feed);
- pCurrent = pCurrent->tail();
- }
- }
- } else {
- throw "The node to convert's children must be only combinators or selectors.";
- }
- }
-
- // Put the dummy Compound_Selector in the first position, for consistency with the rest of libsass
- Compound_Selector_Ptr fakeHead = SASS_MEMORY_NEW(Compound_Selector, ParserState("[NODE]"), 1);
- Parent_Selector_Ptr selectorRef = SASS_MEMORY_NEW(Parent_Selector, ParserState("[NODE]"));
- fakeHead->elements().push_back(selectorRef);
- if (toConvert.got_line_feed) pFirst->has_line_feed(toConvert.got_line_feed);
- // pFirst->has_line_feed(pFirst->has_line_feed() || pFirst->tail()->has_line_feed() || toConvert.got_line_feed);
- pFirst->head(fakeHead);
- return SASS_MEMORY_COPY(pFirst);
- }
-
- // A very naive trim function, which removes duplicates in a node
- // This is only used in Complex_Selector::unify_with for now, may need modifications to fit other needs
- Node Node::naiveTrim(Node& seqses) {
-
- std::vector<Node*> res;
- std::vector<Complex_Selector_Obj> known;
-
- NodeDeque::reverse_iterator seqsesIter = seqses.collection()->rbegin(),
- seqsesIterEnd = seqses.collection()->rend();
-
- for (; seqsesIter != seqsesIterEnd; ++seqsesIter)
- {
- Node& seqs1 = *seqsesIter;
- if( seqs1.isSelector() ) {
- Complex_Selector_Obj sel = seqs1.selector();
- std::vector<Complex_Selector_Obj>::iterator it;
- bool found = false;
- for (it = known.begin(); it != known.end(); ++it) {
- if (**it == *sel) { found = true; break; }
- }
- if( !found ) {
- known.push_back(seqs1.selector());
- res.push_back(&seqs1);
- }
- } else {
- res.push_back(&seqs1);
- }
- }
-
- Node result = Node::createCollection();
-
- for (size_t i = res.size() - 1; i != std::string::npos; --i) {
- result.collection()->push_back(*res[i]);
- }
-
- return result;
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/node.hpp b/node_modules/node-sass/src/libsass/src/node.hpp
deleted file mode 100644
index 23ba360..0000000
--- a/node_modules/node-sass/src/libsass/src/node.hpp
+++ /dev/null
@@ -1,118 +0,0 @@
-#ifndef SASS_NODE_H
-#define SASS_NODE_H
-
-#include <deque>
-#include <memory>
-
-#include "ast.hpp"
-
-
-namespace Sass {
-
-
-
-
- class Context;
-
- /*
- There are a lot of stumbling blocks when trying to port the ruby extend code to C++. The biggest is the choice of
- data type. The ruby code will pretty seamlessly switch types between an Array<SimpleSequence or Op> (libsass'
- equivalent is the Complex_Selector) to a Sequence, which contains more metadata about the sequence than just the
- selector info. They also have the ability to have arbitrary nestings of arrays like [1, [2]], which is hard to
- implement using Array equivalents in C++ (like the deque or vector). They also have the ability to include nil
- in the arrays, like [1, nil, 3], which has potential semantic differences than an empty array [1, [], 3]. To be
- able to represent all of these as unique cases, we need to create a tree of variant objects. The tree nature allows
- the inconsistent nesting levels. The variant nature (while making some of the C++ code uglier) allows the code to
- more closely match the ruby code, which is a huge benefit when attempting to implement an complex algorithm like
- the Extend operator.
-
- Note that the current libsass data model also pairs the combinator with the Complex_Selector that follows it, but
- ruby sass has no such restriction, so we attempt to create a data structure that can handle them split apart.
- */
-
- class Node;
- typedef std::deque<Node> NodeDeque;
- typedef std::shared_ptr<NodeDeque> NodeDequePtr;
-
- class Node {
- public:
- enum TYPE {
- SELECTOR,
- COMBINATOR,
- COLLECTION,
- NIL
- };
-
- TYPE type() const { return mType; }
- bool isCombinator() const { return mType == COMBINATOR; }
- bool isSelector() const { return mType == SELECTOR; }
- bool isCollection() const { return mType == COLLECTION; }
- bool isNil() const { return mType == NIL; }
- bool got_line_feed;
-
- Complex_Selector::Combinator combinator() const { return mCombinator; }
-
- Complex_Selector_Obj selector() { return mpSelector; }
- Complex_Selector_Obj selector() const { return mpSelector; }
-
- NodeDequePtr collection() { return mpCollection; }
- const NodeDequePtr collection() const { return mpCollection; }
-
- static Node createCombinator(const Complex_Selector::Combinator& combinator);
-
- // This method will klone the selector, stripping off the tail and combinator
- static Node createSelector(const Complex_Selector& pSelector);
-
- static Node createCollection();
- static Node createCollection(const NodeDeque& values);
-
- static Node createNil();
- static Node naiveTrim(Node& seqses);
-
- Node klone() const;
-
- bool operator==(const Node& rhs) const;
- inline bool operator!=(const Node& rhs) const { return !(*this == rhs); }
-
-
- /*
- COLLECTION FUNCTIONS
-
- Most types don't need any helper methods (nil and combinator due to their simplicity and
- selector due to the fact that we leverage the non-node selector code on the Complex_Selector
- whereever possible). The following methods are intended to be called on Node objects whose
- type is COLLECTION only.
- */
-
- // rhs and this must be node collections. Shallow copy the nodes from rhs to the end of this.
- // This function DOES NOT remove the nodes from rhs.
- void plus(Node& rhs);
-
- // potentialChild must be a node collection of selectors/combinators. this must be a collection
- // of collections of nodes/combinators. This method checks if potentialChild is a child of this
- // Node.
- bool contains(const Node& potentialChild) const;
-
- private:
- // Private constructor; Use the static methods (like createCombinator and createSelector)
- // to instantiate this object. This is more expressive, and it allows us to break apart each
- // case into separate functions.
- Node(const TYPE& type, Complex_Selector::Combinator combinator, Complex_Selector_Ptr pSelector, NodeDequePtr& pCollection);
-
- TYPE mType;
-
- // TODO: can we union these to save on memory?
- Complex_Selector::Combinator mCombinator;
- Complex_Selector_Obj mpSelector;
- NodeDequePtr mpCollection;
- };
-
-#ifdef DEBUG
- std::ostream& operator<<(std::ostream& os, const Node& node);
-#endif
- Node complexSelectorToNode(Complex_Selector_Ptr pToConvert);
- Complex_Selector_Ptr nodeToComplexSelector(const Node& toConvert);
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/operation.hpp b/node_modules/node-sass/src/libsass/src/operation.hpp
deleted file mode 100644
index 2d4fbec..0000000
--- a/node_modules/node-sass/src/libsass/src/operation.hpp
+++ /dev/null
@@ -1,173 +0,0 @@
-#ifndef SASS_OPERATION_H
-#define SASS_OPERATION_H
-
-#include "ast_fwd_decl.hpp"
-
-namespace Sass {
-
- template<typename T>
- class Operation {
- public:
- virtual T operator()(AST_Node_Ptr x) = 0;
- virtual ~Operation() { }
- // statements
- virtual T operator()(Block_Ptr x) = 0;
- virtual T operator()(Ruleset_Ptr x) = 0;
- virtual T operator()(Bubble_Ptr x) = 0;
- virtual T operator()(Trace_Ptr x) = 0;
- virtual T operator()(Supports_Block_Ptr x) = 0;
- virtual T operator()(Media_Block_Ptr x) = 0;
- virtual T operator()(At_Root_Block_Ptr x) = 0;
- virtual T operator()(Directive_Ptr x) = 0;
- virtual T operator()(Keyframe_Rule_Ptr x) = 0;
- virtual T operator()(Declaration_Ptr x) = 0;
- virtual T operator()(Assignment_Ptr x) = 0;
- virtual T operator()(Import_Ptr x) = 0;
- virtual T operator()(Import_Stub_Ptr x) = 0;
- virtual T operator()(Warning_Ptr x) = 0;
- virtual T operator()(Error_Ptr x) = 0;
- virtual T operator()(Debug_Ptr x) = 0;
- virtual T operator()(Comment_Ptr x) = 0;
- virtual T operator()(If_Ptr x) = 0;
- virtual T operator()(For_Ptr x) = 0;
- virtual T operator()(Each_Ptr x) = 0;
- virtual T operator()(While_Ptr x) = 0;
- virtual T operator()(Return_Ptr x) = 0;
- virtual T operator()(Content_Ptr x) = 0;
- virtual T operator()(Extension_Ptr x) = 0;
- virtual T operator()(Definition_Ptr x) = 0;
- virtual T operator()(Mixin_Call_Ptr x) = 0;
- // expressions
- virtual T operator()(List_Ptr x) = 0;
- virtual T operator()(Map_Ptr x) = 0;
- virtual T operator()(Function_Ptr x) = 0;
- virtual T operator()(Binary_Expression_Ptr x) = 0;
- virtual T operator()(Unary_Expression_Ptr x) = 0;
- virtual T operator()(Function_Call_Ptr x) = 0;
- virtual T operator()(Function_Call_Schema_Ptr x) = 0;
- virtual T operator()(Custom_Warning_Ptr x) = 0;
- virtual T operator()(Custom_Error_Ptr x) = 0;
- virtual T operator()(Variable_Ptr x) = 0;
- virtual T operator()(Number_Ptr x) = 0;
- virtual T operator()(Color_Ptr x) = 0;
- virtual T operator()(Boolean_Ptr x) = 0;
- virtual T operator()(String_Schema_Ptr x) = 0;
- virtual T operator()(String_Quoted_Ptr x) = 0;
- virtual T operator()(String_Constant_Ptr x) = 0;
- virtual T operator()(Supports_Condition_Ptr x) = 0;
- virtual T operator()(Supports_Operator_Ptr x) = 0;
- virtual T operator()(Supports_Negation_Ptr x) = 0;
- virtual T operator()(Supports_Declaration_Ptr x) = 0;
- virtual T operator()(Supports_Interpolation_Ptr x) = 0;
- virtual T operator()(Media_Query_Ptr x) = 0;
- virtual T operator()(Media_Query_Expression_Ptr x) = 0;
- virtual T operator()(At_Root_Query_Ptr x) = 0;
- virtual T operator()(Null_Ptr x) = 0;
- virtual T operator()(Parent_Selector_Ptr x) = 0;
- // parameters and arguments
- virtual T operator()(Parameter_Ptr x) = 0;
- virtual T operator()(Parameters_Ptr x) = 0;
- virtual T operator()(Argument_Ptr x) = 0;
- virtual T operator()(Arguments_Ptr x) = 0;
- // selectors
- virtual T operator()(Selector_Schema_Ptr x) = 0;
- virtual T operator()(Placeholder_Selector_Ptr x) = 0;
- virtual T operator()(Element_Selector_Ptr x) = 0;
- virtual T operator()(Class_Selector_Ptr x) = 0;
- virtual T operator()(Id_Selector_Ptr x) = 0;
- virtual T operator()(Attribute_Selector_Ptr x) = 0;
- virtual T operator()(Pseudo_Selector_Ptr x) = 0;
- virtual T operator()(Wrapped_Selector_Ptr x) = 0;
- virtual T operator()(Compound_Selector_Ptr x)= 0;
- virtual T operator()(Complex_Selector_Ptr x) = 0;
- virtual T operator()(Selector_List_Ptr x) = 0;
-
- template <typename U>
- T fallback(U x) { return T(); }
- };
-
- template <typename T, typename D>
- class Operation_CRTP : public Operation<T> {
- public:
- D& impl() { return static_cast<D&>(*this); }
- public:
- T operator()(AST_Node_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- // statements
- T operator()(Block_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Ruleset_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Bubble_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Trace_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Supports_Block_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Media_Block_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(At_Root_Block_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Directive_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Keyframe_Rule_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Declaration_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Assignment_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Import_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Import_Stub_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Warning_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Error_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Debug_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Comment_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(If_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(For_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Each_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(While_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Return_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Content_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Extension_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Definition_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Mixin_Call_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- // expressions
- T operator()(List_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Map_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Function_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Binary_Expression_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Unary_Expression_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Function_Call_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Function_Call_Schema_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Custom_Warning_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Custom_Error_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Variable_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Number_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Color_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Boolean_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(String_Schema_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(String_Constant_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(String_Quoted_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Supports_Condition_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Supports_Operator_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Supports_Negation_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Supports_Declaration_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Supports_Interpolation_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Media_Query_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Media_Query_Expression_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(At_Root_Query_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Null_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Parent_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- // parameters and arguments
- T operator()(Parameter_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Parameters_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Argument_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Arguments_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- // selectors
- T operator()(Selector_Schema_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Placeholder_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Element_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Class_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Id_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Attribute_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Pseudo_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Wrapped_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Compound_Selector_Ptr x){ return static_cast<D*>(this)->fallback(x); }
- T operator()(Complex_Selector_Ptr x) { return static_cast<D*>(this)->fallback(x); }
- T operator()(Selector_List_Ptr x) { return static_cast<D*>(this)->fallback(x); }
-
- template <typename U>
- T fallback(U x) { return T(); }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/operators.cpp b/node_modules/node-sass/src/libsass/src/operators.cpp
deleted file mode 100644
index a1fd562..0000000
--- a/node_modules/node-sass/src/libsass/src/operators.cpp
+++ /dev/null
@@ -1,267 +0,0 @@
-#include "sass.hpp"
-#include "operators.hpp"
-
-namespace Sass {
-
- namespace Operators {
-
- inline double add(double x, double y) { return x + y; }
- inline double sub(double x, double y) { return x - y; }
- inline double mul(double x, double y) { return x * y; }
- inline double div(double x, double y) { return x / y; } // x/0 checked by caller
-
- inline double mod(double x, double y) { // x/0 checked by caller
- if ((x > 0 && y < 0) || (x < 0 && y > 0)) {
- double ret = std::fmod(x, y);
- return ret ? ret + y : ret;
- } else {
- return std::fmod(x, y);
- }
- }
-
- typedef double (*bop)(double, double);
- bop ops[Sass_OP::NUM_OPS] = {
- 0, 0, // and, or
- 0, 0, 0, 0, 0, 0, // eq, neq, gt, gte, lt, lte
- add, sub, mul, div, mod
- };
-
- /* static function, has no pstate or traces */
- bool eq(Expression_Obj lhs, Expression_Obj rhs)
- {
- // operation is undefined if one is not a number
- if (!lhs || !rhs) throw Exception::UndefinedOperation(lhs, rhs, Sass_OP::EQ);
- // use compare operator from ast node
- return *lhs == *rhs;
- }
-
- /* static function, throws OperationError, has no pstate or traces */
- bool cmp(Expression_Obj lhs, Expression_Obj rhs, const Sass_OP op)
- {
- // can only compare numbers!?
- Number_Obj l = Cast<Number>(lhs);
- Number_Obj r = Cast<Number>(rhs);
- // operation is undefined if one is not a number
- if (!l || !r) throw Exception::UndefinedOperation(lhs, rhs, op);
- // use compare operator from ast node
- return *l < *r;
- }
-
- /* static functions, throws OperationError, has no pstate or traces */
- bool lt(Expression_Obj lhs, Expression_Obj rhs) { return cmp(lhs, rhs, Sass_OP::LT); }
- bool neq(Expression_Obj lhs, Expression_Obj rhs) { return eq(lhs, rhs) == false; }
- bool gt(Expression_Obj lhs, Expression_Obj rhs) { return !cmp(lhs, rhs, Sass_OP::GT) && neq(lhs, rhs); }
- bool lte(Expression_Obj lhs, Expression_Obj rhs) { return cmp(lhs, rhs, Sass_OP::LTE) || eq(lhs, rhs); }
- bool gte(Expression_Obj lhs, Expression_Obj rhs) { return !cmp(lhs, rhs, Sass_OP::GTE) || eq(lhs, rhs); }
-
- /* colour math deprecation warning */
- void op_color_deprecation(enum Sass_OP op, std::string lsh, std::string rhs, const ParserState& pstate)
- {
- std::string op_str(
- op == Sass_OP::ADD ? "plus" :
- op == Sass_OP::DIV ? "div" :
- op == Sass_OP::SUB ? "minus" :
- op == Sass_OP::MUL ? "times" : ""
- );
-
- std::string msg("The operation `" + lsh + " " + op_str + " " + rhs + "` is deprecated and will be an error in future versions.");
- std::string tail("Consider using Sass's color functions instead.\nhttp://sass-lang.com/documentation/Sass/Script/Functions.html#other_color_functions");
-
- deprecated(msg, tail, false, pstate);
- }
-
- /* static function, throws OperationError, has no traces but optional pstate for returned value */
- Value_Ptr op_strings(Sass::Operand operand, Value& lhs, Value& rhs, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed)
- {
- enum Sass_OP op = operand.operand;
-
- String_Quoted_Ptr lqstr = Cast<String_Quoted>(&lhs);
- String_Quoted_Ptr rqstr = Cast<String_Quoted>(&rhs);
-
- std::string lstr(lqstr ? lqstr->value() : lhs.to_string(opt));
- std::string rstr(rqstr ? rqstr->value() : rhs.to_string(opt));
-
- if (Cast<Null>(&lhs)) throw Exception::InvalidNullOperation(&lhs, &rhs, op);
- if (Cast<Null>(&rhs)) throw Exception::InvalidNullOperation(&lhs, &rhs, op);
-
- std::string sep;
- switch (op) {
- case Sass_OP::ADD: sep = ""; break;
- case Sass_OP::SUB: sep = "-"; break;
- case Sass_OP::DIV: sep = "/"; break;
- case Sass_OP::EQ: sep = "=="; break;
- case Sass_OP::NEQ: sep = "!="; break;
- case Sass_OP::LT: sep = "<"; break;
- case Sass_OP::GT: sep = ">"; break;
- case Sass_OP::LTE: sep = "<="; break;
- case Sass_OP::GTE: sep = ">="; break;
- default:
- throw Exception::UndefinedOperation(&lhs, &rhs, op);
- break;
- }
-
- if (op == Sass_OP::ADD) {
- // create string that might be quoted on output (but do not unquote what we pass)
- return SASS_MEMORY_NEW(String_Quoted, pstate, lstr + rstr, 0, false, true);
- }
-
- // add whitespace around operator
- // but only if result is not delayed
- if (sep != "" && delayed == false) {
- if (operand.ws_before) sep = " " + sep;
- if (operand.ws_after) sep = sep + " ";
- }
-
- if (op == Sass_OP::SUB || op == Sass_OP::DIV) {
- if (lqstr && lqstr->quote_mark()) lstr = quote(lstr);
- if (rqstr && rqstr->quote_mark()) rstr = quote(rstr);
- }
-
- return SASS_MEMORY_NEW(String_Constant, pstate, lstr + sep + rstr);
- }
-
- /* static function, throws OperationError, has no traces but optional pstate for returned value */
- Value_Ptr op_colors(enum Sass_OP op, const Color& lhs, const Color& rhs, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed)
- {
-
- if (lhs.a() != rhs.a()) {
- throw Exception::AlphaChannelsNotEqual(&lhs, &rhs, op);
- }
- if ((op == Sass_OP::DIV || op == Sass_OP::MOD) && (!rhs.r() || !rhs.g() || !rhs.b())) {
- throw Exception::ZeroDivisionError(lhs, rhs);
- }
-
- op_color_deprecation(op, lhs.to_string(), rhs.to_string(), pstate);
-
- return SASS_MEMORY_NEW(Color,
- pstate,
- ops[op](lhs.r(), rhs.r()),
- ops[op](lhs.g(), rhs.g()),
- ops[op](lhs.b(), rhs.b()),
- lhs.a());
- }
-
- /* static function, throws OperationError, has no traces but optional pstate for returned value */
- Value_Ptr op_numbers(enum Sass_OP op, const Number& lhs, const Number& rhs, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed)
- {
- double lval = lhs.value();
- double rval = rhs.value();
-
- if (op == Sass_OP::MOD && rval == 0) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, "NaN");
- }
-
- if (op == Sass_OP::DIV && rval == 0) {
- std::string result(lval ? "Infinity" : "NaN");
- return SASS_MEMORY_NEW(String_Quoted, pstate, result);
- }
-
- size_t l_n_units = lhs.numerators.size();
- size_t l_d_units = lhs.numerators.size();
- size_t r_n_units = rhs.denominators.size();
- size_t r_d_units = rhs.denominators.size();
- // optimize out the most common and simplest case
- if (l_n_units == r_n_units && l_d_units == r_d_units) {
- if (l_n_units + l_d_units <= 1 && r_n_units + r_d_units <= 1) {
- if (lhs.numerators == rhs.numerators) {
- if (lhs.denominators == rhs.denominators) {
- Number_Ptr v = SASS_MEMORY_COPY(&lhs);
- v->value(ops[op](lval, rval));
- return v;
- }
- }
- }
- }
-
- Number_Obj v = SASS_MEMORY_COPY(&lhs);
-
- if (lhs.is_unitless() && (op == Sass_OP::ADD || op == Sass_OP::SUB || op == Sass_OP::MOD)) {
- v->numerators = rhs.numerators;
- v->denominators = rhs.denominators;
- }
-
- if (op == Sass_OP::MUL) {
- v->value(ops[op](lval, rval));
- v->numerators.insert(v->numerators.end(),
- rhs.numerators.begin(), rhs.numerators.end()
- );
- v->denominators.insert(v->denominators.end(),
- rhs.denominators.begin(), rhs.denominators.end()
- );
- v->reduce();
- }
- else if (op == Sass_OP::DIV) {
- v->value(ops[op](lval, rval));
- v->numerators.insert(v->numerators.end(),
- rhs.denominators.begin(), rhs.denominators.end()
- );
- v->denominators.insert(v->denominators.end(),
- rhs.numerators.begin(), rhs.numerators.end()
- );
- v->reduce();
- }
- else {
- Number ln(lhs), rn(rhs);
- ln.reduce(); rn.reduce();
- double f(rn.convert_factor(ln));
- v->value(ops[op](lval, rn.value() * f));
- }
-
- v->pstate(pstate);
- return v.detach();
- }
-
- /* static function, throws OperationError, has no traces but optional pstate for returned value */
- Value_Ptr op_number_color(enum Sass_OP op, const Number& lhs, const Color& rhs, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed)
- {
- double lval = lhs.value();
-
- switch (op) {
- case Sass_OP::ADD:
- case Sass_OP::MUL: {
- op_color_deprecation(op, lhs.to_string(), rhs.to_string(opt), pstate);
- return SASS_MEMORY_NEW(Color,
- pstate,
- ops[op](lval, rhs.r()),
- ops[op](lval, rhs.g()),
- ops[op](lval, rhs.b()),
- rhs.a());
- }
- case Sass_OP::SUB:
- case Sass_OP::DIV: {
- std::string color(rhs.to_string(opt));
- op_color_deprecation(op, lhs.to_string(), color, pstate);
- return SASS_MEMORY_NEW(String_Quoted,
- pstate,
- lhs.to_string(opt)
- + sass_op_separator(op)
- + color);
- }
- default: break;
- }
- throw Exception::UndefinedOperation(&lhs, &rhs, op);
- }
-
- /* static function, throws OperationError, has no traces but optional pstate for returned value */
- Value_Ptr op_color_number(enum Sass_OP op, const Color& lhs, const Number& rhs, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed)
- {
- double rval = rhs.value();
-
- if ((op == Sass_OP::DIV || op == Sass_OP::DIV) && rval == 0) {
- // comparison of Fixnum with Float failed?
- throw Exception::ZeroDivisionError(lhs, rhs);
- }
-
- op_color_deprecation(op, lhs.to_string(), rhs.to_string(), pstate);
-
- return SASS_MEMORY_NEW(Color,
- pstate,
- ops[op](lhs.r(), rval),
- ops[op](lhs.g(), rval),
- ops[op](lhs.b(), rval),
- lhs.a());
- }
-
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/operators.hpp b/node_modules/node-sass/src/libsass/src/operators.hpp
deleted file mode 100644
index f89eb4e..0000000
--- a/node_modules/node-sass/src/libsass/src/operators.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef SASS_OPERATORS_H
-#define SASS_OPERATORS_H
-
-#include "values.hpp"
-#include "sass/values.h"
-
-namespace Sass {
-
- namespace Operators {
-
- // equality operator using AST Node operator==
- bool eq(Expression_Obj, Expression_Obj);
- bool neq(Expression_Obj, Expression_Obj);
- // specific operators based on cmp and eq
- bool lt(Expression_Obj, Expression_Obj);
- bool gt(Expression_Obj, Expression_Obj);
- bool lte(Expression_Obj, Expression_Obj);
- bool gte(Expression_Obj, Expression_Obj);
- // arithmetic for all the combinations that matter
- Value_Ptr op_strings(Sass::Operand, Value&, Value&, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed = false);
- Value_Ptr op_colors(enum Sass_OP, const Color&, const Color&, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed = false);
- Value_Ptr op_numbers(enum Sass_OP, const Number&, const Number&, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed = false);
- Value_Ptr op_number_color(enum Sass_OP, const Number&, const Color&, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed = false);
- Value_Ptr op_color_number(enum Sass_OP, const Color&, const Number&, struct Sass_Inspect_Options opt, const ParserState& pstate, bool delayed = false);
-
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/output.cpp b/node_modules/node-sass/src/libsass/src/output.cpp
deleted file mode 100644
index b2ca65e..0000000
--- a/node_modules/node-sass/src/libsass/src/output.cpp
+++ /dev/null
@@ -1,336 +0,0 @@
-#include "sass.hpp"
-#include "ast.hpp"
-#include "output.hpp"
-
-namespace Sass {
-
- Output::Output(Sass_Output_Options& opt)
- : Inspect(Emitter(opt)),
- charset(""),
- top_nodes(0)
- {}
-
- Output::~Output() { }
-
- void Output::fallback_impl(AST_Node_Ptr n)
- {
- return n->perform(this);
- }
-
- void Output::operator()(Number_Ptr n)
- {
- // check for a valid unit here
- // includes result for reporting
- if (!n->is_valid_css_unit()) {
- // should be handle in check_expression
- throw Exception::InvalidValue({}, *n);
- }
- // use values to_string facility
- std::string res = n->to_string(opt);
- // output the final token
- append_token(res, n);
- }
-
- void Output::operator()(Import_Ptr imp)
- {
- top_nodes.push_back(imp);
- }
-
- void Output::operator()(Map_Ptr m)
- {
- // should be handle in check_expression
- throw Exception::InvalidValue({}, *m);
- }
-
- OutputBuffer Output::get_buffer(void)
- {
-
- Emitter emitter(opt);
- Inspect inspect(emitter);
-
- size_t size_nodes = top_nodes.size();
- for (size_t i = 0; i < size_nodes; i++) {
- top_nodes[i]->perform(&inspect);
- inspect.append_mandatory_linefeed();
- }
-
- // flush scheduled outputs
- // maybe omit semicolon if possible
- inspect.finalize(wbuf.buffer.size() == 0);
- // prepend buffer on top
- prepend_output(inspect.output());
- // make sure we end with a linefeed
- if (!ends_with(wbuf.buffer, opt.linefeed)) {
- // if the output is not completely empty
- if (!wbuf.buffer.empty()) append_string(opt.linefeed);
- }
-
- // search for unicode char
- for(const char& chr : wbuf.buffer) {
- // skip all ascii chars
- // static cast to unsigned to handle `char` being signed / unsigned
- if (static_cast<unsigned>(chr) < 128) continue;
- // declare the charset
- if (output_style() != COMPRESSED)
- charset = "@charset \"UTF-8\";"
- + std::string(opt.linefeed);
- else charset = "\xEF\xBB\xBF";
- // abort search
- break;
- }
-
- // add charset as first line, before comments and imports
- if (!charset.empty()) prepend_string(charset);
-
- return wbuf;
-
- }
-
- void Output::operator()(Comment_Ptr c)
- {
- std::string txt = c->text()->to_string(opt);
- // if (indentation && txt == "/**/") return;
- bool important = c->is_important();
- if (output_style() != COMPRESSED || important) {
- if (buffer().size() == 0) {
- top_nodes.push_back(c);
- } else {
- in_comment = true;
- append_indentation();
- c->text()->perform(this);
- in_comment = false;
- if (indentation == 0) {
- append_mandatory_linefeed();
- } else {
- append_optional_linefeed();
- }
- }
- }
- }
-
- void Output::operator()(Ruleset_Ptr r)
- {
- Selector_Obj s = r->selector();
- Block_Obj b = r->block();
-
- // Filter out rulesets that aren't printable (process its children though)
- if (!Util::isPrintable(r, output_style())) {
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- const Statement_Obj& stm = b->at(i);
- if (Cast<Has_Block>(stm)) {
- if (!Cast<Declaration>(stm)) {
- stm->perform(this);
- }
- }
- }
- return;
- }
-
- if (output_style() == NESTED) indentation += r->tabs();
- if (opt.source_comments) {
- std::stringstream ss;
- append_indentation();
- std::string path(File::abs2rel(r->pstate().path));
- ss << "/* line " << r->pstate().line + 1 << ", " << path << " */";
- append_string(ss.str());
- append_optional_linefeed();
- }
- scheduled_crutch = s;
- if (s) s->perform(this);
- append_scope_opener(b);
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- bool bPrintExpression = true;
- // Check print conditions
- if (Declaration_Ptr dec = Cast<Declaration>(stm)) {
- if (String_Constant_Ptr valConst = Cast<String_Constant>(dec->value())) {
- std::string val(valConst->value());
- if (String_Quoted_Ptr qstr = Cast<String_Quoted>(valConst)) {
- if (!qstr->quote_mark() && val.empty()) {
- bPrintExpression = false;
- }
- }
- }
- else if (List_Ptr list = Cast<List>(dec->value())) {
- bool all_invisible = true;
- for (size_t list_i = 0, list_L = list->length(); list_i < list_L; ++list_i) {
- Expression_Ptr item = list->at(list_i);
- if (!item->is_invisible()) all_invisible = false;
- }
- if (all_invisible && !list->is_bracketed()) bPrintExpression = false;
- }
- }
- // Print if OK
- if (bPrintExpression) {
- stm->perform(this);
- }
- }
- if (output_style() == NESTED) indentation -= r->tabs();
- append_scope_closer(b);
-
- }
- void Output::operator()(Keyframe_Rule_Ptr r)
- {
- Block_Obj b = r->block();
- Selector_Obj v = r->name();
-
- if (!v.isNull()) {
- v->perform(this);
- }
-
- if (!b) {
- append_colon_separator();
- return;
- }
-
- append_scope_opener();
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- stm->perform(this);
- if (i < L - 1) append_special_linefeed();
- }
- append_scope_closer();
- }
-
- void Output::operator()(Supports_Block_Ptr f)
- {
- if (f->is_invisible()) return;
-
- Supports_Condition_Obj c = f->condition();
- Block_Obj b = f->block();
-
- // Filter out feature blocks that aren't printable (process its children though)
- if (!Util::isPrintable(f, output_style())) {
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- if (Cast<Has_Block>(stm)) {
- stm->perform(this);
- }
- }
- return;
- }
-
- if (output_style() == NESTED) indentation += f->tabs();
- append_indentation();
- append_token("@supports", f);
- append_mandatory_space();
- c->perform(this);
- append_scope_opener();
-
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- stm->perform(this);
- if (i < L - 1) append_special_linefeed();
- }
-
- if (output_style() == NESTED) indentation -= f->tabs();
-
- append_scope_closer();
-
- }
-
- void Output::operator()(Media_Block_Ptr m)
- {
- if (m->is_invisible()) return;
-
- Block_Obj b = m->block();
-
- // Filter out media blocks that aren't printable (process its children though)
- if (!Util::isPrintable(m, output_style())) {
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- if (Cast<Has_Block>(stm)) {
- stm->perform(this);
- }
- }
- return;
- }
- if (output_style() == NESTED) indentation += m->tabs();
- append_indentation();
- append_token("@media", m);
- append_mandatory_space();
- in_media_block = true;
- m->media_queries()->perform(this);
- in_media_block = false;
- append_scope_opener();
-
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- if (b->at(i)) {
- Statement_Obj stm = b->at(i);
- stm->perform(this);
- }
- if (i < L - 1) append_special_linefeed();
- }
-
- if (output_style() == NESTED) indentation -= m->tabs();
- append_scope_closer();
- }
-
- void Output::operator()(Directive_Ptr a)
- {
- std::string kwd = a->keyword();
- Selector_Obj s = a->selector();
- Expression_Obj v = a->value();
- Block_Obj b = a->block();
-
- append_indentation();
- append_token(kwd, a);
- if (s) {
- append_mandatory_space();
- in_wrapped = true;
- s->perform(this);
- in_wrapped = false;
- }
- if (v) {
- append_mandatory_space();
- // ruby sass bug? should use options?
- append_token(v->to_string(/* opt */), v);
- }
- if (!b) {
- append_delimiter();
- return;
- }
-
- if (b->is_invisible() || b->length() == 0) {
- append_optional_space();
- return append_string("{}");
- }
-
- append_scope_opener();
-
- bool format = kwd != "@font-face";;
-
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- stm->perform(this);
- if (i < L - 1 && format) append_special_linefeed();
- }
-
- append_scope_closer();
- }
-
- void Output::operator()(String_Quoted_Ptr s)
- {
- if (s->quote_mark()) {
- append_token(quote(s->value(), s->quote_mark()), s);
- } else if (!in_comment) {
- append_token(string_to_output(s->value()), s);
- } else {
- append_token(s->value(), s);
- }
- }
-
- void Output::operator()(String_Constant_Ptr s)
- {
- std::string value(s->value());
- if (s->can_compress_whitespace() && output_style() == COMPRESSED) {
- value.erase(std::remove_if(value.begin(), value.end(), ::isspace), value.end());
- }
- if (!in_comment && !in_custom_property) {
- append_token(string_to_output(value), s);
- } else {
- append_token(value, s);
- }
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/output.hpp b/node_modules/node-sass/src/libsass/src/output.hpp
deleted file mode 100644
index c460b13..0000000
--- a/node_modules/node-sass/src/libsass/src/output.hpp
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef SASS_OUTPUT_H
-#define SASS_OUTPUT_H
-
-#include <string>
-#include <vector>
-
-#include "util.hpp"
-#include "inspect.hpp"
-#include "operation.hpp"
-
-namespace Sass {
- class Context;
-
- // Refactor to make it generic to find linefeed (look behind)
- inline bool ends_with(std::string const & value, std::string const & ending)
- {
- if (ending.size() > value.size()) return false;
- return std::equal(ending.rbegin(), ending.rend(), value.rbegin());
- }
-
- class Output : public Inspect {
- protected:
- using Inspect::operator();
-
- public:
- Output(Sass_Output_Options& opt);
- virtual ~Output();
-
- protected:
- std::string charset;
- std::vector<AST_Node_Ptr> top_nodes;
-
- public:
- OutputBuffer get_buffer(void);
-
- virtual void operator()(Map_Ptr);
- virtual void operator()(Ruleset_Ptr);
- virtual void operator()(Supports_Block_Ptr);
- virtual void operator()(Media_Block_Ptr);
- virtual void operator()(Directive_Ptr);
- virtual void operator()(Keyframe_Rule_Ptr);
- virtual void operator()(Import_Ptr);
- virtual void operator()(Comment_Ptr);
- virtual void operator()(Number_Ptr);
- virtual void operator()(String_Quoted_Ptr);
- virtual void operator()(String_Constant_Ptr);
-
- void fallback_impl(AST_Node_Ptr n);
-
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/parser.cpp b/node_modules/node-sass/src/libsass/src/parser.cpp
deleted file mode 100644
index 28fe022..0000000
--- a/node_modules/node-sass/src/libsass/src/parser.cpp
+++ /dev/null
@@ -1,3137 +0,0 @@
-#include "sass.hpp"
-#include "parser.hpp"
-#include "file.hpp"
-#include "inspect.hpp"
-#include "constants.hpp"
-#include "util.hpp"
-#include "prelexer.hpp"
-#include "color_maps.hpp"
-#include "sass/functions.h"
-#include "error_handling.hpp"
-
-// Notes about delayed: some ast nodes can have delayed evaluation so
-// they can preserve their original semantics if needed. This is most
-// prominently exhibited by the division operation, since it is not
-// only a valid operation, but also a valid css statement (i.e. for
-// fonts, as in `16px/24px`). When parsing lists and expression we
-// unwrap single items from lists and other operations. A nested list
-// must not be delayed, only the items of the first level sometimes
-// are delayed (as with argument lists). To achieve this we need to
-// pass status to the list parser, so this can be set correctly.
-// Another case with delayed values are colors. In compressed mode
-// only processed values get compressed (other are left as written).
-
-#include <cstdlib>
-#include <iostream>
-#include <vector>
-#include <typeinfo>
-
-namespace Sass {
- using namespace Constants;
- using namespace Prelexer;
-
- Parser Parser::from_c_str(const char* beg, Context& ctx, Backtraces traces, ParserState pstate, const char* source)
- {
- pstate.offset.column = 0;
- pstate.offset.line = 0;
- Parser p(ctx, pstate, traces);
- p.source = source ? source : beg;
- p.position = beg ? beg : p.source;
- p.end = p.position + strlen(p.position);
- Block_Obj root = SASS_MEMORY_NEW(Block, pstate);
- p.block_stack.push_back(root);
- root->is_root(true);
- return p;
- }
-
- Parser Parser::from_c_str(const char* beg, const char* end, Context& ctx, Backtraces traces, ParserState pstate, const char* source)
- {
- pstate.offset.column = 0;
- pstate.offset.line = 0;
- Parser p(ctx, pstate, traces);
- p.source = source ? source : beg;
- p.position = beg ? beg : p.source;
- p.end = end ? end : p.position + strlen(p.position);
- Block_Obj root = SASS_MEMORY_NEW(Block, pstate);
- p.block_stack.push_back(root);
- root->is_root(true);
- return p;
- }
-
- void Parser::advanceToNextToken() {
- lex < css_comments >(false);
- // advance to position
- pstate += pstate.offset;
- pstate.offset.column = 0;
- pstate.offset.line = 0;
- }
-
- Selector_List_Obj Parser::parse_selector(const char* beg, Context& ctx, Backtraces traces, ParserState pstate, const char* source)
- {
- Parser p = Parser::from_c_str(beg, ctx, traces, pstate, source);
- // ToDo: ruby sass errors on parent references
- // ToDo: remap the source-map entries somehow
- return p.parse_selector_list(false);
- }
-
- bool Parser::peek_newline(const char* start)
- {
- return peek_linefeed(start ? start : position)
- && ! peek_css<exactly<'{'>>(start);
- }
-
- Parser Parser::from_token(Token t, Context& ctx, Backtraces traces, ParserState pstate, const char* source)
- {
- Parser p(ctx, pstate, traces);
- p.source = source ? source : t.begin;
- p.position = t.begin ? t.begin : p.source;
- p.end = t.end ? t.end : p.position + strlen(p.position);
- Block_Obj root = SASS_MEMORY_NEW(Block, pstate);
- p.block_stack.push_back(root);
- root->is_root(true);
- return p;
- }
-
- /* main entry point to parse root block */
- Block_Obj Parser::parse()
- {
-
- // consume unicode BOM
- read_bom();
-
- // scan the input to find invalid utf8 sequences
- const char* it = utf8::find_invalid(position, end);
-
- // report invalid utf8
- if (it != end) {
- pstate += Offset::init(position, it);
- traces.push_back(Backtrace(pstate));
- throw Exception::InvalidSass(pstate, traces, "Invalid UTF-8 sequence");
- }
-
- // create a block AST node to hold children
- Block_Obj root = SASS_MEMORY_NEW(Block, pstate, 0, true);
-
- // check seems a bit esoteric but works
- if (ctx.resources.size() == 1) {
- // apply headers only on very first include
- ctx.apply_custom_headers(root, path, pstate);
- }
-
- // parse children nodes
- block_stack.push_back(root);
- parse_block_nodes(true);
- block_stack.pop_back();
-
- // update final position
- root->update_pstate(pstate);
-
- if (position != end) {
- css_error("Invalid CSS", " after ", ": expected selector or at-rule, was ");
- }
-
- return root;
- }
-
-
- // convenience function for block parsing
- // will create a new block ad-hoc for you
- // this is the base block parsing function
- Block_Obj Parser::parse_css_block(bool is_root)
- {
-
- // parse comments before block
- // lex < optional_css_comments >();
-
- // lex mandatory opener or error out
- if (!lex_css < exactly<'{'> >()) {
- css_error("Invalid CSS", " after ", ": expected \"{\", was ");
- }
- // create new block and push to the selector stack
- Block_Obj block = SASS_MEMORY_NEW(Block, pstate, 0, is_root);
- block_stack.push_back(block);
-
- if (!parse_block_nodes(is_root)) css_error("Invalid CSS", " after ", ": expected \"}\", was ");
-
- if (!lex_css < exactly<'}'> >()) {
- css_error("Invalid CSS", " after ", ": expected \"}\", was ");
- }
-
- // update for end position
- // this seems to be done somewhere else
- // but that fixed selector schema issue
- // block->update_pstate(pstate);
-
- // parse comments after block
- // lex < optional_css_comments >();
-
- block_stack.pop_back();
-
- return block;
- }
-
- // convenience function for block parsing
- // will create a new block ad-hoc for you
- // also updates the `in_at_root` flag
- Block_Obj Parser::parse_block(bool is_root)
- {
- return parse_css_block(is_root);
- }
-
- // the main block parsing function
- // parses stuff between `{` and `}`
- bool Parser::parse_block_nodes(bool is_root)
- {
-
- // loop until end of string
- while (position < end) {
-
- // we should be able to refactor this
- parse_block_comments();
- lex < css_whitespace >();
-
- if (lex < exactly<';'> >()) continue;
- if (peek < end_of_file >()) return true;
- if (peek < exactly<'}'> >()) return true;
-
- if (parse_block_node(is_root)) continue;
-
- parse_block_comments();
-
- if (lex_css < exactly<';'> >()) continue;
- if (peek_css < end_of_file >()) return true;
- if (peek_css < exactly<'}'> >()) return true;
-
- // illegal sass
- return false;
- }
- // return success
- return true;
- }
-
- // parser for a single node in a block
- // semicolons must be lexed beforehand
- bool Parser::parse_block_node(bool is_root) {
-
- Block_Obj block = block_stack.back();
-
- parse_block_comments();
-
- // throw away white-space
- // includes line comments
- lex < css_whitespace >();
-
- Lookahead lookahead_result;
-
- // also parse block comments
-
- // first parse everything that is allowed in functions
- if (lex < variable >(true)) { block->append(parse_assignment()); }
- else if (lex < kwd_err >(true)) { block->append(parse_error()); }
- else if (lex < kwd_dbg >(true)) { block->append(parse_debug()); }
- else if (lex < kwd_warn >(true)) { block->append(parse_warning()); }
- else if (lex < kwd_if_directive >(true)) { block->append(parse_if_directive()); }
- else if (lex < kwd_for_directive >(true)) { block->append(parse_for_directive()); }
- else if (lex < kwd_each_directive >(true)) { block->append(parse_each_directive()); }
- else if (lex < kwd_while_directive >(true)) { block->append(parse_while_directive()); }
- else if (lex < kwd_return_directive >(true)) { block->append(parse_return_directive()); }
-
- // parse imports to process later
- else if (lex < kwd_import >(true)) {
- Scope parent = stack.empty() ? Scope::Rules : stack.back();
- if (parent != Scope::Function && parent != Scope::Root && parent != Scope::Rules && parent != Scope::Media) {
- if (! peek_css< uri_prefix >(position)) { // this seems to go in ruby sass 3.4.20
- error("Import directives may not be used within control directives or mixins.");
- }
- }
- // this puts the parsed doc into sheets
- // import stub will fetch this in expand
- Import_Obj imp = parse_import();
- // if it is a url, we only add the statement
- if (!imp->urls().empty()) block->append(imp);
- // process all resources now (add Import_Stub nodes)
- for (size_t i = 0, S = imp->incs().size(); i < S; ++i) {
- block->append(SASS_MEMORY_NEW(Import_Stub, pstate, imp->incs()[i]));
- }
- }
-
- else if (lex < kwd_extend >(true)) {
- Lookahead lookahead = lookahead_for_include(position);
- if (!lookahead.found) css_error("Invalid CSS", " after ", ": expected selector, was ");
- Selector_List_Obj target;
- if (!lookahead.has_interpolants) {
- target = parse_selector_list(true);
- }
- else {
- target = SASS_MEMORY_NEW(Selector_List, pstate);
- target->schema(parse_selector_schema(lookahead.found, true));
- }
-
- block->append(SASS_MEMORY_NEW(Extension, pstate, target));
- }
-
- // selector may contain interpolations which need delayed evaluation
- else if (
- !(lookahead_result = lookahead_for_selector(position)).error &&
- !lookahead_result.is_custom_property
- )
- {
- block->append(parse_ruleset(lookahead_result));
- }
-
- // parse multiple specific keyword directives
- else if (lex < kwd_media >(true)) { block->append(parse_media_block()); }
- else if (lex < kwd_at_root >(true)) { block->append(parse_at_root_block()); }
- else if (lex < kwd_include_directive >(true)) { block->append(parse_include_directive()); }
- else if (lex < kwd_content_directive >(true)) { block->append(parse_content_directive()); }
- else if (lex < kwd_supports_directive >(true)) { block->append(parse_supports_directive()); }
- else if (lex < kwd_mixin >(true)) { block->append(parse_definition(Definition::MIXIN)); }
- else if (lex < kwd_function >(true)) { block->append(parse_definition(Definition::FUNCTION)); }
-
- // ignore the @charset directive for now
- else if (lex< kwd_charset_directive >(true)) { parse_charset_directive(); }
-
- // generic at keyword (keep last)
- else if (lex< re_special_directive >(true)) { block->append(parse_special_directive()); }
- else if (lex< re_prefixed_directive >(true)) { block->append(parse_prefixed_directive()); }
- else if (lex< at_keyword >(true)) { block->append(parse_directive()); }
-
- else if (is_root && stack.back() != Scope::AtRoot /* && block->is_root() */) {
- lex< css_whitespace >();
- if (position >= end) return true;
- css_error("Invalid CSS", " after ", ": expected 1 selector or at-rule, was ");
- }
- // parse a declaration
- else
- {
- // ToDo: how does it handle parse errors?
- // maybe we are expected to parse something?
- Declaration_Obj decl = parse_declaration();
- decl->tabs(indentation);
- block->append(decl);
- // maybe we have a "sub-block"
- if (peek< exactly<'{'> >()) {
- if (decl->is_indented()) ++ indentation;
- // parse a propset that rides on the declaration's property
- stack.push_back(Scope::Properties);
- decl->block(parse_block());
- stack.pop_back();
- if (decl->is_indented()) -- indentation;
- }
- }
- // something matched
- return true;
- }
- // EO parse_block_nodes
-
- // parse imports inside the
- Import_Obj Parser::parse_import()
- {
- Import_Obj imp = SASS_MEMORY_NEW(Import, pstate);
- std::vector<std::pair<std::string,Function_Call_Obj>> to_import;
- bool first = true;
- do {
- while (lex< block_comment >());
- if (lex< quoted_string >()) {
- to_import.push_back(std::pair<std::string,Function_Call_Obj>(std::string(lexed), 0));
- }
- else if (lex< uri_prefix >()) {
- Arguments_Obj args = SASS_MEMORY_NEW(Arguments, pstate);
- Function_Call_Obj result = SASS_MEMORY_NEW(Function_Call, pstate, "url", args);
-
- if (lex< quoted_string >()) {
- Expression_Obj quoted_url = parse_string();
- args->append(SASS_MEMORY_NEW(Argument, quoted_url->pstate(), quoted_url));
- }
- else if (String_Obj string_url = parse_url_function_argument()) {
- args->append(SASS_MEMORY_NEW(Argument, string_url->pstate(), string_url));
- }
- else if (peek < skip_over_scopes < exactly < '(' >, exactly < ')' > > >(position)) {
- Expression_Obj braced_url = parse_list(); // parse_interpolated_chunk(lexed);
- args->append(SASS_MEMORY_NEW(Argument, braced_url->pstate(), braced_url));
- }
- else {
- error("malformed URL");
- }
- if (!lex< exactly<')'> >()) error("URI is missing ')'");
- to_import.push_back(std::pair<std::string, Function_Call_Obj>("", result));
- }
- else {
- if (first) error("@import directive requires a url or quoted path");
- else error("expecting another url or quoted path in @import list");
- }
- first = false;
- } while (lex_css< exactly<','> >());
-
- if (!peek_css< alternatives< exactly<';'>, exactly<'}'>, end_of_file > >()) {
- List_Obj import_queries = parse_media_queries();
- imp->import_queries(import_queries);
- }
-
- for(auto location : to_import) {
- if (location.second) {
- imp->urls().push_back(location.second);
- }
- // check if custom importers want to take over the handling
- else if (!ctx.call_importers(unquote(location.first), path, pstate, imp)) {
- // nobody wants it, so we do our import
- ctx.import_url(imp, location.first, path);
- }
- }
-
- return imp;
- }
-
- Definition_Obj Parser::parse_definition(Definition::Type which_type)
- {
- std::string which_str(lexed);
- if (!lex< identifier >()) error("invalid name in " + which_str + " definition");
- std::string name(Util::normalize_underscores(lexed));
- if (which_type == Definition::FUNCTION && (name == "and" || name == "or" || name == "not"))
- { error("Invalid function name \"" + name + "\"."); }
- ParserState source_position_of_def = pstate;
- Parameters_Obj params = parse_parameters();
- if (which_type == Definition::MIXIN) stack.push_back(Scope::Mixin);
- else stack.push_back(Scope::Function);
- Block_Obj body = parse_block();
- stack.pop_back();
- return SASS_MEMORY_NEW(Definition, source_position_of_def, name, params, body, which_type);
- }
-
- Parameters_Obj Parser::parse_parameters()
- {
- Parameters_Obj params = SASS_MEMORY_NEW(Parameters, pstate);
- if (lex_css< exactly<'('> >()) {
- // if there's anything there at all
- if (!peek_css< exactly<')'> >()) {
- do {
- if (peek< exactly<')'> >()) break;
- params->append(parse_parameter());
- } while (lex_css< exactly<','> >());
- }
- if (!lex_css< exactly<')'> >()) {
- css_error("Invalid CSS", " after ", ": expected \")\", was ");
- }
- }
- return params;
- }
-
- Parameter_Obj Parser::parse_parameter()
- {
- if (peek< alternatives< exactly<','>, exactly< '{' >, exactly<';'> > >()) {
- css_error("Invalid CSS", " after ", ": expected variable (e.g. $foo), was ");
- }
- while (lex< alternatives < spaces, block_comment > >());
- lex < variable >();
- std::string name(Util::normalize_underscores(lexed));
- ParserState pos = pstate;
- Expression_Obj val;
- bool is_rest = false;
- while (lex< alternatives < spaces, block_comment > >());
- if (lex< exactly<':'> >()) { // there's a default value
- while (lex< block_comment >());
- val = parse_space_list();
- }
- else if (lex< exactly< ellipsis > >()) {
- is_rest = true;
- }
- return SASS_MEMORY_NEW(Parameter, pos, name, val, is_rest);
- }
-
- Arguments_Obj Parser::parse_arguments()
- {
- Arguments_Obj args = SASS_MEMORY_NEW(Arguments, pstate);
- if (lex_css< exactly<'('> >()) {
- // if there's anything there at all
- if (!peek_css< exactly<')'> >()) {
- do {
- if (peek< exactly<')'> >()) break;
- args->append(parse_argument());
- } while (lex_css< exactly<','> >());
- }
- if (!lex_css< exactly<')'> >()) {
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- }
- return args;
- }
-
- Argument_Obj Parser::parse_argument()
- {
- if (peek< alternatives< exactly<','>, exactly< '{' >, exactly<';'> > >()) {
- css_error("Invalid CSS", " after ", ": expected \")\", was ");
- }
- if (peek_css< sequence < exactly< hash_lbrace >, exactly< rbrace > > >()) {
- position += 2;
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
-
- Argument_Obj arg;
- if (peek_css< sequence < variable, optional_css_comments, exactly<':'> > >()) {
- lex_css< variable >();
- std::string name(Util::normalize_underscores(lexed));
- ParserState p = pstate;
- lex_css< exactly<':'> >();
- Expression_Obj val = parse_space_list();
- arg = SASS_MEMORY_NEW(Argument, p, val, name);
- }
- else {
- bool is_arglist = false;
- bool is_keyword = false;
- Expression_Obj val = parse_space_list();
- List_Ptr l = Cast<List>(val);
- if (lex_css< exactly< ellipsis > >()) {
- if (val->concrete_type() == Expression::MAP || (
- (l != NULL && l->separator() == SASS_HASH)
- )) is_keyword = true;
- else is_arglist = true;
- }
- arg = SASS_MEMORY_NEW(Argument, pstate, val, "", is_arglist, is_keyword);
- }
- return arg;
- }
-
- Assignment_Obj Parser::parse_assignment()
- {
- std::string name(Util::normalize_underscores(lexed));
- ParserState var_source_position = pstate;
- if (!lex< exactly<':'> >()) error("expected ':' after " + name + " in assignment statement");
- if (peek_css< alternatives < exactly<';'>, end_of_file > >()) {
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- Expression_Obj val;
- Lookahead lookahead = lookahead_for_value(position);
- if (lookahead.has_interpolants && lookahead.found) {
- val = parse_value_schema(lookahead.found);
- } else {
- val = parse_list();
- }
- bool is_default = false;
- bool is_global = false;
- while (peek< alternatives < default_flag, global_flag > >()) {
- if (lex< default_flag >()) is_default = true;
- else if (lex< global_flag >()) is_global = true;
- }
- return SASS_MEMORY_NEW(Assignment, var_source_position, name, val, is_default, is_global);
- }
-
- // a ruleset connects a selector and a block
- Ruleset_Obj Parser::parse_ruleset(Lookahead lookahead)
- {
- NESTING_GUARD(nestings);
- // inherit is_root from parent block
- Block_Obj parent = block_stack.back();
- bool is_root = parent && parent->is_root();
- // make sure to move up the the last position
- lex < optional_css_whitespace >(false, true);
- // create the connector object (add parts later)
- Ruleset_Obj ruleset = SASS_MEMORY_NEW(Ruleset, pstate);
- // parse selector static or as schema to be evaluated later
- if (lookahead.parsable) ruleset->selector(parse_selector_list(false));
- else {
- Selector_List_Obj list = SASS_MEMORY_NEW(Selector_List, pstate);
- list->schema(parse_selector_schema(lookahead.position, false));
- ruleset->selector(list);
- }
- // then parse the inner block
- stack.push_back(Scope::Rules);
- ruleset->block(parse_block());
- stack.pop_back();
- // update for end position
- ruleset->update_pstate(pstate);
- ruleset->block()->update_pstate(pstate);
- // need this info for sanity checks
- ruleset->is_root(is_root);
- // return AST Node
- return ruleset;
- }
-
- // parse a selector schema that will be evaluated in the eval stage
- // uses a string schema internally to do the actual schema handling
- // in the eval stage we will be re-parse it into an actual selector
- Selector_Schema_Obj Parser::parse_selector_schema(const char* end_of_selector, bool chroot)
- {
- NESTING_GUARD(nestings);
- // move up to the start
- lex< optional_spaces >();
- const char* i = position;
- // selector schema re-uses string schema implementation
- String_Schema_Ptr schema = SASS_MEMORY_NEW(String_Schema, pstate);
- // the selector schema is pretty much just a wrapper for the string schema
- Selector_Schema_Obj selector_schema = SASS_MEMORY_NEW(Selector_Schema, pstate, schema);
- selector_schema->connect_parent(chroot == false);
- selector_schema->media_block(last_media_block);
-
- // process until end
- while (i < end_of_selector) {
- // try to parse mutliple interpolants
- if (const char* p = find_first_in_interval< exactly<hash_lbrace>, block_comment >(i, end_of_selector)) {
- // accumulate the preceding segment if the position has advanced
- if (i < p) {
- std::string parsed(i, p);
- String_Constant_Obj str = SASS_MEMORY_NEW(String_Constant, pstate, parsed);
- pstate += Offset(parsed);
- str->update_pstate(pstate);
- schema->append(str);
- }
-
- // skip over all nested inner interpolations up to our own delimiter
- const char* j = skip_over_scopes< exactly<hash_lbrace>, exactly<rbrace> >(p + 2, end_of_selector);
- // check if the interpolation never ends of only contains white-space (error out)
- if (!j || peek < sequence < optional_spaces, exactly<rbrace> > >(p+2)) {
- position = p+2;
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- // pass inner expression to the parser to resolve nested interpolations
- pstate.add(p, p+2);
- Expression_Obj interpolant = Parser::from_c_str(p+2, j, ctx, traces, pstate).parse_list();
- // set status on the list expression
- interpolant->is_interpolant(true);
- // schema->has_interpolants(true);
- // add to the string schema
- schema->append(interpolant);
- // advance parser state
- pstate.add(p+2, j);
- // advance position
- i = j;
- }
- // no more interpolants have been found
- // add the last segment if there is one
- else {
- // make sure to add the last bits of the string up to the end (if any)
- if (i < end_of_selector) {
- std::string parsed(i, end_of_selector);
- String_Constant_Obj str = SASS_MEMORY_NEW(String_Constant, pstate, parsed);
- pstate += Offset(parsed);
- str->update_pstate(pstate);
- i = end_of_selector;
- schema->append(str);
- }
- // exit loop
- }
- }
- // EO until eos
-
- // update position
- position = i;
-
- // update for end position
- selector_schema->update_pstate(pstate);
- schema->update_pstate(pstate);
-
- after_token = before_token = pstate;
-
- // return parsed result
- return selector_schema.detach();
- }
- // EO parse_selector_schema
-
- void Parser::parse_charset_directive()
- {
- lex <
- sequence <
- quoted_string,
- optional_spaces,
- exactly <';'>
- >
- >();
- }
-
- // called after parsing `kwd_include_directive`
- Mixin_Call_Obj Parser::parse_include_directive()
- {
- // lex identifier into `lexed` var
- lex_identifier(); // may error out
- // normalize underscores to hyphens
- std::string name(Util::normalize_underscores(lexed));
- // create the initial mixin call object
- Mixin_Call_Obj call = SASS_MEMORY_NEW(Mixin_Call, pstate, name, 0, 0);
- // parse mandatory arguments
- call->arguments(parse_arguments());
- // parse optional block
- if (peek < exactly <'{'> >()) {
- call->block(parse_block());
- }
- // return ast node
- return call.detach();
- }
- // EO parse_include_directive
-
- // parse a list of complex selectors
- // this is the main entry point for most
- Selector_List_Obj Parser::parse_selector_list(bool chroot)
- {
- bool reloop;
- bool had_linefeed = false;
- NESTING_GUARD(nestings);
- Complex_Selector_Obj sel;
- Selector_List_Obj group = SASS_MEMORY_NEW(Selector_List, pstate);
- group->media_block(last_media_block);
-
- if (peek_css< alternatives < end_of_file, exactly <'{'>, exactly <','> > >()) {
- css_error("Invalid CSS", " after ", ": expected selector, was ");
- }
-
- do {
- reloop = false;
-
- had_linefeed = had_linefeed || peek_newline();
-
- if (peek_css< alternatives < class_char < selector_list_delims > > >())
- break; // in case there are superfluous commas at the end
-
- // now parse the complex selector
- sel = parse_complex_selector(chroot);
-
- if (!sel) return group.detach();
-
- sel->has_line_feed(had_linefeed);
-
- had_linefeed = false;
-
- while (peek_css< exactly<','> >())
- {
- lex< css_comments >(false);
- // consume everything up and including the comma separator
- reloop = lex< exactly<','> >() != 0;
- // remember line break (also between some commas)
- had_linefeed = had_linefeed || peek_newline();
- // remember line break (also between some commas)
- }
- group->append(sel);
- }
- while (reloop);
- while (lex_css< kwd_optional >()) {
- group->is_optional(true);
- }
- // update for end position
- group->update_pstate(pstate);
- if (sel) sel->last()->has_line_break(false);
- return group.detach();
- }
- // EO parse_selector_list
-
- // a complex selector combines a compound selector with another
- // complex selector, with one of four combinator operations.
- // the compound selector (head) is optional, since the combinator
- // can come first in the whole selector sequence (like `> DIV').
- Complex_Selector_Obj Parser::parse_complex_selector(bool chroot)
- {
-
- NESTING_GUARD(nestings);
- String_Obj reference = 0;
- lex < block_comment >();
- advanceToNextToken();
- Complex_Selector_Obj sel = SASS_MEMORY_NEW(Complex_Selector, pstate);
-
- if (peek < end_of_file >()) return 0;
-
- // parse the left hand side
- Compound_Selector_Obj lhs;
- // special case if it starts with combinator ([+~>])
- if (!peek_css< class_char < selector_combinator_ops > >()) {
- // parse the left hand side
- lhs = parse_compound_selector();
- }
-
-
- // parse combinator between lhs and rhs
- Complex_Selector::Combinator combinator = Complex_Selector::ANCESTOR_OF;
- if (lex< exactly<'+'> >()) combinator = Complex_Selector::ADJACENT_TO;
- else if (lex< exactly<'~'> >()) combinator = Complex_Selector::PRECEDES;
- else if (lex< exactly<'>'> >()) combinator = Complex_Selector::PARENT_OF;
- else if (lex< sequence < exactly<'/'>, negate < exactly < '*' > > > >()) {
- // comments are allowed, but not spaces?
- combinator = Complex_Selector::REFERENCE;
- if (!lex < re_reference_combinator >()) return 0;
- reference = SASS_MEMORY_NEW(String_Constant, pstate, lexed);
- if (!lex < exactly < '/' > >()) return 0; // ToDo: error msg?
- }
-
- if (!lhs && combinator == Complex_Selector::ANCESTOR_OF) return 0;
-
- // lex < block_comment >();
- sel->head(lhs);
- sel->combinator(combinator);
- sel->media_block(last_media_block);
-
- if (combinator == Complex_Selector::REFERENCE) sel->reference(reference);
- // has linfeed after combinator?
- sel->has_line_break(peek_newline());
- // sel->has_line_feed(has_line_feed);
-
- // check if we got the abort condition (ToDo: optimize)
- if (!peek_css< class_char < complex_selector_delims > >()) {
- // parse next selector in sequence
- sel->tail(parse_complex_selector(true));
- }
-
- // add a parent selector if we are not in a root
- // also skip adding parent ref if we only have refs
- if (!sel->has_parent_ref() && !chroot) {
- // create the objects to wrap parent selector reference
- Compound_Selector_Obj head = SASS_MEMORY_NEW(Compound_Selector, pstate);
- Parent_Selector_Ptr parent = SASS_MEMORY_NEW(Parent_Selector, pstate, false);
- parent->media_block(last_media_block);
- head->media_block(last_media_block);
- // add simple selector
- head->append(parent);
- // selector may not have any head yet
- if (!sel->head()) { sel->head(head); }
- // otherwise we need to create a new complex selector and set the old one as its tail
- else {
- sel = SASS_MEMORY_NEW(Complex_Selector, pstate, Complex_Selector::ANCESTOR_OF, head, sel);
- sel->media_block(last_media_block);
- }
- // peek for linefeed and remember result on head
- // if (peek_newline()) head->has_line_break(true);
- }
-
- sel->update_pstate(pstate);
- // complex selector
- return sel;
- }
- // EO parse_complex_selector
-
- // parse one compound selector, which is basically
- // a list of simple selectors (directly adjacent)
- // lex them exactly (without skipping white-space)
- Compound_Selector_Obj Parser::parse_compound_selector()
- {
- // init an empty compound selector wrapper
- Compound_Selector_Obj seq = SASS_MEMORY_NEW(Compound_Selector, pstate);
- seq->media_block(last_media_block);
-
- // skip initial white-space
- lex< css_whitespace >();
-
- // parse list
- while (true)
- {
- // remove all block comments (don't skip white-space)
- lex< delimited_by< slash_star, star_slash, false > >(false);
- // parse functional
- if (match < re_pseudo_selector >())
- {
- seq->append(parse_simple_selector());
- }
- // parse parent selector
- else if (lex< exactly<'&'> >(false))
- {
- // this produces a linefeed!?
- seq->has_parent_reference(true);
- seq->append(SASS_MEMORY_NEW(Parent_Selector, pstate));
- // parent selector only allowed at start
- // upcoming Sass may allow also trailing
- if (seq->length() > 1) {
- ParserState state(pstate);
- Simple_Selector_Obj cur = (*seq)[seq->length()-1];
- Simple_Selector_Obj prev = (*seq)[seq->length()-2];
- std::string sel(prev->to_string({ NESTED, 5 }));
- std::string found(cur->to_string({ NESTED, 5 }));
- if (lex < identifier >()) { found += std::string(lexed); }
- error("Invalid CSS after \"" + sel + "\": expected \"{\", was \"" + found + "\"\n\n"
- "\"" + found + "\" may only be used at the beginning of a compound selector.", state);
- }
- }
- // parse type selector
- else if (lex< re_type_selector >(false))
- {
- seq->append(SASS_MEMORY_NEW(Element_Selector, pstate, lexed));
- }
- // peek for abort conditions
- else if (peek< spaces >()) break;
- else if (peek< end_of_file >()) { break; }
- else if (peek_css < class_char < selector_combinator_ops > >()) break;
- else if (peek_css < class_char < complex_selector_delims > >()) break;
- // otherwise parse another simple selector
- else {
- Simple_Selector_Obj sel = parse_simple_selector();
- if (!sel) return 0;
- seq->append(sel);
- }
- }
-
- if (seq && !peek_css<alternatives<end_of_file,exactly<'{'>>>()) {
- seq->has_line_break(peek_newline());
- }
-
- // EO while true
- return seq;
-
- }
- // EO parse_compound_selector
-
- Simple_Selector_Obj Parser::parse_simple_selector()
- {
- lex < css_comments >(false);
- if (lex< class_name >()) {
- return SASS_MEMORY_NEW(Class_Selector, pstate, lexed);
- }
- else if (lex< id_name >()) {
- return SASS_MEMORY_NEW(Id_Selector, pstate, lexed);
- }
- else if (lex< alternatives < variable, number, static_reference_combinator > >()) {
- return SASS_MEMORY_NEW(Element_Selector, pstate, lexed);
- }
- else if (peek< pseudo_not >()) {
- return parse_negated_selector();
- }
- else if (peek< re_pseudo_selector >()) {
- return parse_pseudo_selector();
- }
- else if (peek< exactly<':'> >()) {
- return parse_pseudo_selector();
- }
- else if (lex < exactly<'['> >()) {
- return parse_attribute_selector();
- }
- else if (lex< placeholder >()) {
- Placeholder_Selector_Ptr sel = SASS_MEMORY_NEW(Placeholder_Selector, pstate, lexed);
- sel->media_block(last_media_block);
- return sel;
- }
- else {
- css_error("Invalid CSS", " after ", ": expected selector, was ");
- }
- // failed
- return 0;
- }
-
- Wrapped_Selector_Obj Parser::parse_negated_selector()
- {
- lex< pseudo_not >();
- std::string name(lexed);
- ParserState nsource_position = pstate;
- Selector_List_Obj negated = parse_selector_list(true);
- if (!lex< exactly<')'> >()) {
- error("negated selector is missing ')'");
- }
- name.erase(name.size() - 1);
- return SASS_MEMORY_NEW(Wrapped_Selector, nsource_position, name, negated);
- }
-
- // a pseudo selector often starts with one or two colons
- // it can contain more selectors inside parentheses
- Simple_Selector_Obj Parser::parse_pseudo_selector() {
- if (lex< sequence<
- optional < pseudo_prefix >,
- // we keep the space within the name, strange enough
- // ToDo: refactor output to schedule the space for it
- // or do we really want to keep the real white-space?
- sequence< identifier, optional < block_comment >, exactly<'('> >
- > >())
- {
-
- std::string name(lexed);
- name.erase(name.size() - 1);
- ParserState p = pstate;
-
- // specially parse static stuff
- // ToDo: really everything static?
- if (peek_css <
- sequence <
- alternatives <
- static_value,
- binomial
- >,
- optional_css_whitespace,
- exactly<')'>
- >
- >()
- ) {
- lex_css< alternatives < static_value, binomial > >();
- String_Constant_Obj expr = SASS_MEMORY_NEW(String_Constant, pstate, lexed);
- if (lex_css< exactly<')'> >()) {
- expr->can_compress_whitespace(true);
- return SASS_MEMORY_NEW(Pseudo_Selector, p, name, expr);
- }
- }
- else if (Selector_List_Obj wrapped = parse_selector_list(true)) {
- if (wrapped && lex_css< exactly<')'> >()) {
- return SASS_MEMORY_NEW(Wrapped_Selector, p, name, wrapped);
- }
- }
-
- }
- // EO if pseudo selector
-
- else if (lex < sequence< optional < pseudo_prefix >, identifier > >()) {
- return SASS_MEMORY_NEW(Pseudo_Selector, pstate, lexed);
- }
- else if(lex < pseudo_prefix >()) {
- css_error("Invalid CSS", " after ", ": expected pseudoclass or pseudoelement, was ");
- }
-
- css_error("Invalid CSS", " after ", ": expected \")\", was ");
-
- // unreachable statement
- return 0;
- }
-
- const char* Parser::re_attr_sensitive_close(const char* src)
- {
- return alternatives < exactly<']'>, exactly<'/'> >(src);
- }
-
- const char* Parser::re_attr_insensitive_close(const char* src)
- {
- return sequence < insensitive<'i'>, re_attr_sensitive_close >(src);
- }
-
- Attribute_Selector_Obj Parser::parse_attribute_selector()
- {
- ParserState p = pstate;
- if (!lex_css< attribute_name >()) error("invalid attribute name in attribute selector");
- std::string name(lexed);
- if (lex_css< re_attr_sensitive_close >()) {
- return SASS_MEMORY_NEW(Attribute_Selector, p, name, "", 0, 0);
- }
- else if (lex_css< re_attr_insensitive_close >()) {
- char modifier = lexed.begin[0];
- return SASS_MEMORY_NEW(Attribute_Selector, p, name, "", 0, modifier);
- }
- if (!lex_css< alternatives< exact_match, class_match, dash_match,
- prefix_match, suffix_match, substring_match > >()) {
- error("invalid operator in attribute selector for " + name);
- }
- std::string matcher(lexed);
-
- String_Obj value = 0;
- if (lex_css< identifier >()) {
- value = SASS_MEMORY_NEW(String_Constant, p, lexed);
- }
- else if (lex_css< quoted_string >()) {
- value = parse_interpolated_chunk(lexed, true); // needed!
- }
- else {
- error("expected a string constant or identifier in attribute selector for " + name);
- }
-
- if (lex_css< re_attr_sensitive_close >()) {
- return SASS_MEMORY_NEW(Attribute_Selector, p, name, matcher, value, 0);
- }
- else if (lex_css< re_attr_insensitive_close >()) {
- char modifier = lexed.begin[0];
- return SASS_MEMORY_NEW(Attribute_Selector, p, name, matcher, value, modifier);
- }
- error("unterminated attribute selector for " + name);
- return NULL; // to satisfy compilers (error must not return)
- }
-
- /* parse block comment and add to block */
- void Parser::parse_block_comments()
- {
- Block_Obj block = block_stack.back();
-
- while (lex< block_comment >()) {
- bool is_important = lexed.begin[2] == '!';
- // flag on second param is to skip loosely over comments
- String_Obj contents = parse_interpolated_chunk(lexed, true, false);
- block->append(SASS_MEMORY_NEW(Comment, pstate, contents, is_important));
- }
- }
-
- Declaration_Obj Parser::parse_declaration() {
- String_Obj prop;
- bool is_custom_property = false;
- if (lex< sequence< optional< exactly<'*'> >, identifier_schema > >()) {
- const std::string property(lexed);
- is_custom_property = property.compare(0, 2, "--") == 0;
- prop = parse_identifier_schema();
- }
- else if (lex< sequence< optional< exactly<'*'> >, identifier, zero_plus< block_comment > > >()) {
- const std::string property(lexed);
- is_custom_property = property.compare(0, 2, "--") == 0;
- prop = SASS_MEMORY_NEW(String_Constant, pstate, lexed);
- }
- else {
- css_error("Invalid CSS", " after ", ": expected \"}\", was ");
- }
- bool is_indented = true;
- const std::string property(lexed);
- if (!lex_css< one_plus< exactly<':'> > >()) error("property \"" + escape_string(property) + "\" must be followed by a ':'");
- if (!is_custom_property && match< sequence< optional_css_comments, exactly<';'> > >()) error("style declaration must contain a value");
- if (match< sequence< optional_css_comments, exactly<'{'> > >()) is_indented = false; // don't indent if value is empty
- if (is_custom_property) {
- return SASS_MEMORY_NEW(Declaration, prop->pstate(), prop, parse_css_variable_value(), false, true);
- }
- lex < css_comments >(false);
- if (peek_css< static_value >()) {
- return SASS_MEMORY_NEW(Declaration, prop->pstate(), prop, parse_static_value()/*, lex<kwd_important>()*/);
- }
- else {
- Expression_Obj value;
- Lookahead lookahead = lookahead_for_value(position);
- if (lookahead.found) {
- if (lookahead.has_interpolants) {
- value = parse_value_schema(lookahead.found);
- } else {
- value = parse_list(DELAYED);
- }
- }
- else {
- value = parse_list(DELAYED);
- if (List_Ptr list = Cast<List>(value)) {
- if (!list->is_bracketed() && list->length() == 0 && !peek< exactly <'{'> >()) {
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- }
- }
- lex < css_comments >(false);
- Declaration_Obj decl = SASS_MEMORY_NEW(Declaration, prop->pstate(), prop, value/*, lex<kwd_important>()*/);
- decl->is_indented(is_indented);
- decl->update_pstate(pstate);
- return decl;
- }
- }
-
- // parse +/- and return false if negative
- // this is never hit via spec tests
- bool Parser::parse_number_prefix()
- {
- bool positive = true;
- while(true) {
- if (lex < block_comment >()) continue;
- if (lex < number_prefix >()) continue;
- if (lex < exactly < '-' > >()) {
- positive = !positive;
- continue;
- }
- break;
- }
- return positive;
- }
-
- Expression_Obj Parser::parse_map()
- {
- NESTING_GUARD(nestings);
- Expression_Obj key = parse_list();
- List_Obj map = SASS_MEMORY_NEW(List, pstate, 0, SASS_HASH);
-
- // it's not a map so return the lexed value as a list value
- if (!lex_css< exactly<':'> >())
- { return key; }
-
- List_Obj l = Cast<List>(key);
- if (l && l->separator() == SASS_COMMA) {
- css_error("Invalid CSS", " after ", ": expected \")\", was ");
- }
-
- Expression_Obj value = parse_space_list();
-
- map->append(key);
- map->append(value);
-
- while (lex_css< exactly<','> >())
- {
- // allow trailing commas - #495
- if (peek_css< exactly<')'> >(position))
- { break; }
-
- key = parse_space_list();
-
- if (!(lex< exactly<':'> >()))
- { css_error("Invalid CSS", " after ", ": expected \":\", was "); }
-
- value = parse_space_list();
-
- map->append(key);
- map->append(value);
- }
-
- ParserState ps = map->pstate();
- ps.offset = pstate - ps + pstate.offset;
- map->pstate(ps);
-
- return map;
- }
-
- Expression_Obj Parser::parse_bracket_list()
- {
- NESTING_GUARD(nestings);
- // check if we have an empty list
- // return the empty list as such
- if (peek_css< list_terminator >(position))
- {
- // return an empty list (nothing to delay)
- return SASS_MEMORY_NEW(List, pstate, 0, SASS_SPACE, false, true);
- }
-
- bool has_paren = peek_css< exactly<'('> >() != NULL;
-
- // now try to parse a space list
- Expression_Obj list = parse_space_list();
- // if it's a singleton, return it (don't wrap it)
- if (!peek_css< exactly<','> >(position)) {
- List_Obj l = Cast<List>(list);
- if (!l || l->is_bracketed() || has_paren) {
- List_Obj bracketed_list = SASS_MEMORY_NEW(List, pstate, 1, SASS_SPACE, false, true);
- bracketed_list->append(list);
- return bracketed_list;
- }
- l->is_bracketed(true);
- return l;
- }
-
- // if we got so far, we actually do have a comma list
- List_Obj bracketed_list = SASS_MEMORY_NEW(List, pstate, 2, SASS_COMMA, false, true);
- // wrap the first expression
- bracketed_list->append(list);
-
- while (lex_css< exactly<','> >())
- {
- // check for abort condition
- if (peek_css< list_terminator >(position)
- ) { break; }
- // otherwise add another expression
- bracketed_list->append(parse_space_list());
- }
- // return the list
- return bracketed_list;
- }
-
- // parse list returns either a space separated list,
- // a comma separated list or any bare expression found.
- // so to speak: we unwrap items from lists if possible here!
- Expression_Obj Parser::parse_list(bool delayed)
- {
- NESTING_GUARD(nestings);
- return parse_comma_list(delayed);
- }
-
- // will return singletons unwrapped
- Expression_Obj Parser::parse_comma_list(bool delayed)
- {
- NESTING_GUARD(nestings);
- // check if we have an empty list
- // return the empty list as such
- if (peek_css< list_terminator >(position))
- {
- // return an empty list (nothing to delay)
- return SASS_MEMORY_NEW(List, pstate, 0);
- }
-
- // now try to parse a space list
- Expression_Obj list = parse_space_list();
- // if it's a singleton, return it (don't wrap it)
- if (!peek_css< exactly<','> >(position)) {
- // set_delay doesn't apply to list children
- // so this will only undelay single values
- if (!delayed) list->set_delayed(false);
- return list;
- }
-
- // if we got so far, we actually do have a comma list
- List_Obj comma_list = SASS_MEMORY_NEW(List, pstate, 2, SASS_COMMA);
- // wrap the first expression
- comma_list->append(list);
-
- while (lex_css< exactly<','> >())
- {
- // check for abort condition
- if (peek_css< list_terminator >(position)
- ) { break; }
- // otherwise add another expression
- comma_list->append(parse_space_list());
- }
- // return the list
- return comma_list;
- }
- // EO parse_comma_list
-
- // will return singletons unwrapped
- Expression_Obj Parser::parse_space_list()
- {
- NESTING_GUARD(nestings);
- Expression_Obj disj1 = parse_disjunction();
- // if it's a singleton, return it (don't wrap it)
- if (peek_css< space_list_terminator >(position)
- ) {
- return disj1; }
-
- List_Obj space_list = SASS_MEMORY_NEW(List, pstate, 2, SASS_SPACE);
- space_list->append(disj1);
-
- while (
- !(peek_css< space_list_terminator >(position)) &&
- peek_css< optional_css_whitespace >() != end
- ) {
- // the space is parsed implicitly?
- space_list->append(parse_disjunction());
- }
- // return the list
- return space_list;
- }
- // EO parse_space_list
-
- // parse logical OR operation
- Expression_Obj Parser::parse_disjunction()
- {
- NESTING_GUARD(nestings);
- advanceToNextToken();
- ParserState state(pstate);
- // parse the left hand side conjunction
- Expression_Obj conj = parse_conjunction();
- // parse multiple right hand sides
- std::vector<Expression_Obj> operands;
- while (lex_css< kwd_or >())
- operands.push_back(parse_conjunction());
- // if it's a singleton, return it directly
- if (operands.size() == 0) return conj;
- // fold all operands into one binary expression
- Expression_Obj ex = fold_operands(conj, operands, { Sass_OP::OR });
- state.offset = pstate - state + pstate.offset;
- ex->pstate(state);
- return ex;
- }
- // EO parse_disjunction
-
- // parse logical AND operation
- Expression_Obj Parser::parse_conjunction()
- {
- NESTING_GUARD(nestings);
- advanceToNextToken();
- ParserState state(pstate);
- // parse the left hand side relation
- Expression_Obj rel = parse_relation();
- // parse multiple right hand sides
- std::vector<Expression_Obj> operands;
- while (lex_css< kwd_and >()) {
- operands.push_back(parse_relation());
- }
- // if it's a singleton, return it directly
- if (operands.size() == 0) return rel;
- // fold all operands into one binary expression
- Expression_Obj ex = fold_operands(rel, operands, { Sass_OP::AND });
- state.offset = pstate - state + pstate.offset;
- ex->pstate(state);
- return ex;
- }
- // EO parse_conjunction
-
- // parse comparison operations
- Expression_Obj Parser::parse_relation()
- {
- NESTING_GUARD(nestings);
- advanceToNextToken();
- ParserState state(pstate);
- // parse the left hand side expression
- Expression_Obj lhs = parse_expression();
- std::vector<Expression_Obj> operands;
- std::vector<Operand> operators;
- // if it's a singleton, return it (don't wrap it)
- while (peek< alternatives <
- kwd_eq,
- kwd_neq,
- kwd_gte,
- kwd_gt,
- kwd_lte,
- kwd_lt
- > >(position))
- {
- // is directly adjancent to expression?
- bool left_ws = peek < css_comments >() != NULL;
- // parse the operator
- enum Sass_OP op
- = lex<kwd_eq>() ? Sass_OP::EQ
- : lex<kwd_neq>() ? Sass_OP::NEQ
- : lex<kwd_gte>() ? Sass_OP::GTE
- : lex<kwd_lte>() ? Sass_OP::LTE
- : lex<kwd_gt>() ? Sass_OP::GT
- : lex<kwd_lt>() ? Sass_OP::LT
- // we checked the possibilities on top of fn
- : Sass_OP::EQ;
- // is directly adjacent to expression?
- bool right_ws = peek < css_comments >() != NULL;
- operators.push_back({ op, left_ws, right_ws });
- operands.push_back(parse_expression());
- }
- // we are called recursively for list, so we first
- // fold inner binary expression which has delayed
- // correctly set to zero. After folding we also unwrap
- // single nested items. So we cannot set delay on the
- // returned result here, as we have lost nestings ...
- Expression_Obj ex = fold_operands(lhs, operands, operators);
- state.offset = pstate - state + pstate.offset;
- ex->pstate(state);
- return ex;
- }
- // parse_relation
-
- // parse expression valid for operations
- // called from parse_relation
- // called from parse_for_directive
- // called from parse_media_expression
- // parse addition and subtraction operations
- Expression_Obj Parser::parse_expression()
- {
- NESTING_GUARD(nestings);
- advanceToNextToken();
- ParserState state(pstate);
- // parses multiple add and subtract operations
- // NOTE: make sure that identifiers starting with
- // NOTE: dashes do NOT count as subtract operation
- Expression_Obj lhs = parse_operators();
- // if it's a singleton, return it (don't wrap it)
- if (!(peek_css< exactly<'+'> >(position) ||
- // condition is a bit misterious, but some combinations should not be counted as operations
- (peek< no_spaces >(position) && peek< sequence< negate< unsigned_number >, exactly<'-'>, negate< space > > >(position)) ||
- (peek< sequence< negate< unsigned_number >, exactly<'-'>, negate< unsigned_number > > >(position))) ||
- peek< sequence < zero_plus < exactly <'-' > >, identifier > >(position))
- { return lhs; }
-
- std::vector<Expression_Obj> operands;
- std::vector<Operand> operators;
- bool left_ws = peek < css_comments >() != NULL;
- while (
- lex_css< exactly<'+'> >() ||
-
- (
- ! peek_css< sequence < zero_plus < exactly <'-' > >, identifier > >(position)
- && lex_css< sequence< negate< digit >, exactly<'-'> > >()
- )
-
- ) {
-
- bool right_ws = peek < css_comments >() != NULL;
- operators.push_back({ lexed.to_string() == "+" ? Sass_OP::ADD : Sass_OP::SUB, left_ws, right_ws });
- operands.push_back(parse_operators());
- left_ws = peek < css_comments >() != NULL;
- }
-
- if (operands.size() == 0) return lhs;
- Expression_Obj ex = fold_operands(lhs, operands, operators);
- state.offset = pstate - state + pstate.offset;
- ex->pstate(state);
- return ex;
- }
-
- // parse addition and subtraction operations
- Expression_Obj Parser::parse_operators()
- {
- NESTING_GUARD(nestings);
- advanceToNextToken();
- ParserState state(pstate);
- Expression_Obj factor = parse_factor();
- // if it's a singleton, return it (don't wrap it)
- std::vector<Expression_Obj> operands; // factors
- std::vector<Operand> operators; // ops
- // lex operations to apply to lhs
- const char* left_ws = peek < css_comments >();
- while (lex_css< class_char< static_ops > >()) {
- const char* right_ws = peek < css_comments >();
- switch(*lexed.begin) {
- case '*': operators.push_back({ Sass_OP::MUL, left_ws != 0, right_ws != 0 }); break;
- case '/': operators.push_back({ Sass_OP::DIV, left_ws != 0, right_ws != 0 }); break;
- case '%': operators.push_back({ Sass_OP::MOD, left_ws != 0, right_ws != 0 }); break;
- default: throw std::runtime_error("unknown static op parsed");
- }
- operands.push_back(parse_factor());
- left_ws = peek < css_comments >();
- }
- // operands and operators to binary expression
- Expression_Obj ex = fold_operands(factor, operands, operators);
- state.offset = pstate - state + pstate.offset;
- ex->pstate(state);
- return ex;
- }
- // EO parse_operators
-
-
- // called from parse_operators
- // called from parse_value_schema
- Expression_Obj Parser::parse_factor()
- {
- NESTING_GUARD(nestings);
- lex < css_comments >(false);
- if (lex_css< exactly<'('> >()) {
- // parse_map may return a list
- Expression_Obj value = parse_map();
- // lex the expected closing parenthesis
- if (!lex_css< exactly<')'> >()) error("unclosed parenthesis");
- // expression can be evaluated
- return value;
- }
- else if (lex_css< exactly<'['> >()) {
- // explicit bracketed
- Expression_Obj value = parse_bracket_list();
- // lex the expected closing square bracket
- if (!lex_css< exactly<']'> >()) error("unclosed squared bracket");
- return value;
- }
- // string may be interpolated
- // if (lex< quoted_string >()) {
- // return &parse_string();
- // }
- else if (peek< ie_property >()) {
- return parse_ie_property();
- }
- else if (peek< ie_keyword_arg >()) {
- return parse_ie_keyword_arg();
- }
- else if (peek< sequence < calc_fn_call, exactly <'('> > >()) {
- return parse_calc_function();
- }
- else if (lex < functional_schema >()) {
- return parse_function_call_schema();
- }
- else if (lex< identifier_schema >()) {
- String_Obj string = parse_identifier_schema();
- if (String_Schema_Ptr schema = Cast<String_Schema>(string)) {
- if (lex < exactly < '(' > >()) {
- schema->append(parse_list());
- lex < exactly < ')' > >();
- }
- }
- return string;
- }
- else if (peek< sequence< uri_prefix, W, real_uri_value > >()) {
- return parse_url_function_string();
- }
- else if (peek< re_functional >()) {
- return parse_function_call();
- }
- else if (lex< exactly<'+'> >()) {
- Unary_Expression_Ptr ex = SASS_MEMORY_NEW(Unary_Expression, pstate, Unary_Expression::PLUS, parse_factor());
- if (ex && ex->operand()) ex->is_delayed(ex->operand()->is_delayed());
- return ex;
- }
- else if (lex< exactly<'-'> >()) {
- Unary_Expression_Ptr ex = SASS_MEMORY_NEW(Unary_Expression, pstate, Unary_Expression::MINUS, parse_factor());
- if (ex && ex->operand()) ex->is_delayed(ex->operand()->is_delayed());
- return ex;
- }
- else if (lex< exactly<'/'> >()) {
- Unary_Expression_Ptr ex = SASS_MEMORY_NEW(Unary_Expression, pstate, Unary_Expression::SLASH, parse_factor());
- if (ex && ex->operand()) ex->is_delayed(ex->operand()->is_delayed());
- return ex;
- }
- else if (lex< sequence< kwd_not > >()) {
- Unary_Expression_Ptr ex = SASS_MEMORY_NEW(Unary_Expression, pstate, Unary_Expression::NOT, parse_factor());
- if (ex && ex->operand()) ex->is_delayed(ex->operand()->is_delayed());
- return ex;
- }
- // this whole branch is never hit via spec tests
- else if (peek < sequence < one_plus < alternatives < css_whitespace, exactly<'-'>, exactly<'+'> > >, number > >()) {
- if (parse_number_prefix()) return parse_value(); // prefix is positive
- Unary_Expression_Ptr ex = SASS_MEMORY_NEW(Unary_Expression, pstate, Unary_Expression::MINUS, parse_value());
- if (ex->operand()) ex->is_delayed(ex->operand()->is_delayed());
- return ex;
- }
- else {
- return parse_value();
- }
- }
-
- bool number_has_zero(const std::string& parsed)
- {
- size_t L = parsed.length();
- return !( (L > 0 && parsed.substr(0, 1) == ".") ||
- (L > 1 && parsed.substr(0, 2) == "0.") ||
- (L > 1 && parsed.substr(0, 2) == "-.") ||
- (L > 2 && parsed.substr(0, 3) == "-0.") );
- }
-
- Number_Ptr Parser::lexed_number(const ParserState& pstate, const std::string& parsed)
- {
- Number_Ptr nr = SASS_MEMORY_NEW(Number,
- pstate,
- sass_strtod(parsed.c_str()),
- "",
- number_has_zero(parsed));
- nr->is_interpolant(false);
- nr->is_delayed(true);
- return nr;
- }
-
- Number_Ptr Parser::lexed_percentage(const ParserState& pstate, const std::string& parsed)
- {
- Number_Ptr nr = SASS_MEMORY_NEW(Number,
- pstate,
- sass_strtod(parsed.c_str()),
- "%",
- true);
- nr->is_interpolant(false);
- nr->is_delayed(true);
- return nr;
- }
-
- Number_Ptr Parser::lexed_dimension(const ParserState& pstate, const std::string& parsed)
- {
- size_t L = parsed.length();
- size_t num_pos = parsed.find_first_not_of(" \n\r\t");
- if (num_pos == std::string::npos) num_pos = L;
- size_t unit_pos = parsed.find_first_not_of("-+0123456789.", num_pos);
- if (parsed[unit_pos] == 'e' && is_number(parsed[unit_pos+1]) ) {
- unit_pos = parsed.find_first_not_of("-+0123456789.", ++ unit_pos);
- }
- if (unit_pos == std::string::npos) unit_pos = L;
- const std::string& num = parsed.substr(num_pos, unit_pos - num_pos);
- Number_Ptr nr = SASS_MEMORY_NEW(Number,
- pstate,
- sass_strtod(num.c_str()),
- Token(number(parsed.c_str())),
- number_has_zero(parsed));
- nr->is_interpolant(false);
- nr->is_delayed(true);
- return nr;
- }
-
- Value_Ptr Parser::lexed_hex_color(const ParserState& pstate, const std::string& parsed)
- {
- Color_Ptr color = NULL;
- if (parsed[0] != '#') {
- return SASS_MEMORY_NEW(String_Quoted, pstate, parsed);
- }
- // chop off the '#'
- std::string hext(parsed.substr(1));
- if (parsed.length() == 4) {
- std::string r(2, parsed[1]);
- std::string g(2, parsed[2]);
- std::string b(2, parsed[3]);
- color = SASS_MEMORY_NEW(Color,
- pstate,
- static_cast<double>(strtol(r.c_str(), NULL, 16)),
- static_cast<double>(strtol(g.c_str(), NULL, 16)),
- static_cast<double>(strtol(b.c_str(), NULL, 16)),
- 1, // alpha channel
- parsed);
- }
- else if (parsed.length() == 5) {
- std::string r(2, parsed[1]);
- std::string g(2, parsed[2]);
- std::string b(2, parsed[3]);
- std::string a(2, parsed[4]);
- color = SASS_MEMORY_NEW(Color,
- pstate,
- static_cast<double>(strtol(r.c_str(), NULL, 16)),
- static_cast<double>(strtol(g.c_str(), NULL, 16)),
- static_cast<double>(strtol(b.c_str(), NULL, 16)),
- static_cast<double>(strtol(a.c_str(), NULL, 16)) / 255,
- parsed);
- }
- else if (parsed.length() == 7) {
- std::string r(parsed.substr(1,2));
- std::string g(parsed.substr(3,2));
- std::string b(parsed.substr(5,2));
- color = SASS_MEMORY_NEW(Color,
- pstate,
- static_cast<double>(strtol(r.c_str(), NULL, 16)),
- static_cast<double>(strtol(g.c_str(), NULL, 16)),
- static_cast<double>(strtol(b.c_str(), NULL, 16)),
- 1, // alpha channel
- parsed);
- }
- else if (parsed.length() == 9) {
- std::string r(parsed.substr(1,2));
- std::string g(parsed.substr(3,2));
- std::string b(parsed.substr(5,2));
- std::string a(parsed.substr(7,2));
- color = SASS_MEMORY_NEW(Color,
- pstate,
- static_cast<double>(strtol(r.c_str(), NULL, 16)),
- static_cast<double>(strtol(g.c_str(), NULL, 16)),
- static_cast<double>(strtol(b.c_str(), NULL, 16)),
- static_cast<double>(strtol(a.c_str(), NULL, 16)) / 255,
- parsed);
- }
- color->is_interpolant(false);
- color->is_delayed(false);
- return color;
- }
-
- Value_Ptr Parser::color_or_string(const std::string& lexed) const
- {
- if (auto color = name_to_color(lexed)) {
- auto c = SASS_MEMORY_NEW(Color, color);
- c->is_delayed(true);
- c->pstate(pstate);
- c->disp(lexed);
- return c;
- } else {
- return SASS_MEMORY_NEW(String_Constant, pstate, lexed);
- }
- }
-
- // parse one value for a list
- Expression_Obj Parser::parse_value()
- {
- lex< css_comments >(false);
- if (lex< ampersand >())
- {
- if (match< ampersand >()) {
- warning("In Sass, \"&&\" means two copies of the parent selector. You probably want to use \"and\" instead.", pstate);
- }
- return SASS_MEMORY_NEW(Parent_Selector, pstate); }
-
- if (lex< kwd_important >())
- { return SASS_MEMORY_NEW(String_Constant, pstate, "!important"); }
-
- // parse `10%4px` into separated items and not a schema
- if (lex< sequence < percentage, lookahead < number > > >())
- { return lexed_percentage(lexed); }
-
- if (lex< sequence < number, lookahead< sequence < op, number > > > >())
- { return lexed_number(lexed); }
-
- // string may be interpolated
- if (lex< sequence < quoted_string, lookahead < exactly <'-'> > > >())
- { return parse_string(); }
-
- if (const char* stop = peek< value_schema >())
- { return parse_value_schema(stop); }
-
- // string may be interpolated
- if (lex< quoted_string >())
- { return parse_string(); }
-
- if (lex< kwd_true >())
- { return SASS_MEMORY_NEW(Boolean, pstate, true); }
-
- if (lex< kwd_false >())
- { return SASS_MEMORY_NEW(Boolean, pstate, false); }
-
- if (lex< kwd_null >())
- { return SASS_MEMORY_NEW(Null, pstate); }
-
- if (lex< identifier >()) {
- return color_or_string(lexed);
- }
-
- if (lex< percentage >())
- { return lexed_percentage(lexed); }
-
- // match hex number first because 0x000 looks like a number followed by an identifier
- if (lex< sequence < alternatives< hex, hex0 >, negate < exactly<'-'> > > >())
- { return lexed_hex_color(lexed); }
-
- if (lex< hexa >())
- { return lexed_hex_color(lexed); }
-
- if (lex< sequence < exactly <'#'>, identifier > >())
- { return SASS_MEMORY_NEW(String_Quoted, pstate, lexed); }
-
- // also handle the 10em- foo special case
- // alternatives < exactly < '.' >, .. > -- `1.5em-.75em` is split into a list, not a binary expression
- if (lex< sequence< dimension, optional< sequence< exactly<'-'>, lookahead< alternatives < space > > > > > >())
- { return lexed_dimension(lexed); }
-
- if (lex< sequence< static_component, one_plus< strict_identifier > > >())
- { return SASS_MEMORY_NEW(String_Constant, pstate, lexed); }
-
- if (lex< number >())
- { return lexed_number(lexed); }
-
- if (lex< variable >())
- { return SASS_MEMORY_NEW(Variable, pstate, Util::normalize_underscores(lexed)); }
-
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
-
- // unreachable statement
- return 0;
- }
-
- // this parses interpolation inside other strings
- // means the result should later be quoted again
- String_Obj Parser::parse_interpolated_chunk(Token chunk, bool constant, bool css)
- {
- const char* i = chunk.begin;
- // see if there any interpolants
- const char* p = constant ? find_first_in_interval< exactly<hash_lbrace> >(i, chunk.end) :
- find_first_in_interval< exactly<hash_lbrace>, block_comment >(i, chunk.end);
-
- if (!p) {
- String_Quoted_Ptr str_quoted = SASS_MEMORY_NEW(String_Quoted, pstate, std::string(i, chunk.end), 0, false, false, true, css);
- if (!constant && str_quoted->quote_mark()) str_quoted->quote_mark('*');
- return str_quoted;
- }
-
- String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate, 0, css);
- schema->is_interpolant(true);
- while (i < chunk.end) {
- p = constant ? find_first_in_interval< exactly<hash_lbrace> >(i, chunk.end) :
- find_first_in_interval< exactly<hash_lbrace>, block_comment >(i, chunk.end);
- if (p) {
- if (i < p) {
- // accumulate the preceding segment if it's nonempty
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string(i, p), css));
- }
- // we need to skip anything inside strings
- // create a new target in parser/prelexer
- if (peek < sequence < optional_spaces, exactly<rbrace> > >(p+2)) { position = p+2;
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- const char* j = skip_over_scopes< exactly<hash_lbrace>, exactly<rbrace> >(p + 2, chunk.end); // find the closing brace
- if (j) { --j;
- // parse the interpolant and accumulate it
- Expression_Obj interp_node = Parser::from_token(Token(p+2, j), ctx, traces, pstate, source).parse_list();
- interp_node->is_interpolant(true);
- schema->append(interp_node);
- i = j;
- }
- else {
- // throw an error if the interpolant is unterminated
- error("unterminated interpolant inside string constant " + chunk.to_string());
- }
- }
- else { // no interpolants left; add the last segment if nonempty
- // check if we need quotes here (was not sure after merge)
- if (i < chunk.end) schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string(i, chunk.end), css));
- break;
- }
- ++ i;
- }
-
- return schema.detach();
- }
-
- String_Schema_Obj Parser::parse_css_variable_value(bool top_level)
- {
- String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
- String_Schema_Obj tok;
- if (!(tok = parse_css_variable_value_token(top_level))) {
- return NULL;
- }
-
- schema->concat(tok);
- while ((tok = parse_css_variable_value_token(top_level))) {
- schema->concat(tok);
- }
-
- return schema.detach();
- }
-
- String_Schema_Obj Parser::parse_css_variable_value_token(bool top_level)
- {
- String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
- if (
- (top_level && lex< css_variable_top_level_value >(false)) ||
- (!top_level && lex< css_variable_value >(false))
- ) {
- Token str(lexed);
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, str));
- }
- else if (Expression_Obj tok = lex_interpolation()) {
- if (String_Schema_Ptr s = Cast<String_Schema>(tok)) {
- schema->concat(s);
- } else {
- schema->append(tok);
- }
- }
- else if (lex< quoted_string >()) {
- Expression_Obj tok = parse_string();
- if (String_Schema_Ptr s = Cast<String_Schema>(tok)) {
- schema->concat(s);
- } else {
- schema->append(tok);
- }
- }
- else {
- if (peek< alternatives< exactly<'('>, exactly<'['>, exactly<'{'> > >()) {
- if (lex< exactly<'('> >()) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string("(")));
- if (String_Schema_Obj tok = parse_css_variable_value(false)) schema->concat(tok);
- if (!lex< exactly<')'> >()) css_error("Invalid CSS", " after ", ": expected \")\", was ");
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string(")")));
- }
- else if (lex< exactly<'['> >()) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string("[")));
- if (String_Schema_Obj tok = parse_css_variable_value(false)) schema->concat(tok);
- if (!lex< exactly<']'> >()) css_error("Invalid CSS", " after ", ": expected \"]\", was ");
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string("]")));
- }
- else if (lex< exactly<'{'> >()) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string("{")));
- if (String_Schema_Obj tok = parse_css_variable_value(false)) schema->concat(tok);
- if (!lex< exactly<'}'> >()) css_error("Invalid CSS", " after ", ": expected \"}\", was ");
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string("}")));
- }
- }
- }
-
- return schema->length() > 0 ? schema.detach() : NULL;
- }
-
- Value_Obj Parser::parse_static_value()
- {
- lex< static_value >();
- Token str(lexed);
- // static values always have trailing white-
- // space and end delimiter (\s*[;]$) included
- --pstate.offset.column;
- --after_token.column;
- --str.end;
- --position;
-
- return color_or_string(str.time_wspace());;
- }
-
- String_Obj Parser::parse_string()
- {
- return parse_interpolated_chunk(Token(lexed));
- }
-
- String_Obj Parser::parse_ie_property()
- {
- lex< ie_property >();
- Token str(lexed);
- const char* i = str.begin;
- // see if there any interpolants
- const char* p = find_first_in_interval< exactly<hash_lbrace>, block_comment >(str.begin, str.end);
- if (!p) {
- return SASS_MEMORY_NEW(String_Quoted, pstate, std::string(str.begin, str.end));
- }
-
- String_Schema_Ptr schema = SASS_MEMORY_NEW(String_Schema, pstate);
- while (i < str.end) {
- p = find_first_in_interval< exactly<hash_lbrace>, block_comment >(i, str.end);
- if (p) {
- if (i < p) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string(i, p))); // accumulate the preceding segment if it's nonempty
- }
- if (peek < sequence < optional_spaces, exactly<rbrace> > >(p+2)) { position = p+2;
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- const char* j = skip_over_scopes< exactly<hash_lbrace>, exactly<rbrace> >(p+2, str.end); // find the closing brace
- if (j) {
- // parse the interpolant and accumulate it
- Expression_Obj interp_node = Parser::from_token(Token(p+2, j), ctx, traces, pstate, source).parse_list();
- interp_node->is_interpolant(true);
- schema->append(interp_node);
- i = j;
- }
- else {
- // throw an error if the interpolant is unterminated
- error("unterminated interpolant inside IE function " + str.to_string());
- }
- }
- else { // no interpolants left; add the last segment if nonempty
- if (i < str.end) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string(i, str.end)));
- }
- break;
- }
- }
- return schema;
- }
-
- String_Obj Parser::parse_ie_keyword_arg()
- {
- String_Schema_Ptr kwd_arg = SASS_MEMORY_NEW(String_Schema, pstate, 3);
- if (lex< variable >()) {
- kwd_arg->append(SASS_MEMORY_NEW(Variable, pstate, Util::normalize_underscores(lexed)));
- } else {
- lex< alternatives< identifier_schema, identifier > >();
- kwd_arg->append(SASS_MEMORY_NEW(String_Constant, pstate, lexed));
- }
- lex< exactly<'='> >();
- kwd_arg->append(SASS_MEMORY_NEW(String_Constant, pstate, lexed));
- if (peek< variable >()) kwd_arg->append(parse_list());
- else if (lex< number >()) {
- std::string parsed(lexed);
- Util::normalize_decimals(parsed);
- kwd_arg->append(lexed_number(parsed));
- }
- else if (peek < ie_keyword_arg_value >()) { kwd_arg->append(parse_list()); }
- return kwd_arg;
- }
-
- String_Schema_Obj Parser::parse_value_schema(const char* stop)
- {
- // initialize the string schema object to add tokens
- String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
-
- if (peek<exactly<'}'>>()) {
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
-
- const char* e;
- const char* ee = end;
- end = stop;
- size_t num_items = 0;
- bool need_space = false;
- while (position < stop) {
- // parse space between tokens
- if (lex< spaces >() && num_items) {
- need_space = true;
- }
- if (need_space) {
- need_space = false;
- // schema->append(SASS_MEMORY_NEW(String_Constant, pstate, " "));
- }
- if ((e = peek< re_functional >()) && e < stop) {
- schema->append(parse_function_call());
- }
- // lex an interpolant /#{...}/
- else if (lex< exactly < hash_lbrace > >()) {
- // Try to lex static expression first
- if (peek< exactly< rbrace > >()) {
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- Expression_Obj ex;
- if (lex< re_static_expression >()) {
- ex = SASS_MEMORY_NEW(String_Constant, pstate, lexed);
- } else {
- ex = parse_list(true);
- }
- ex->is_interpolant(true);
- schema->append(ex);
- if (!lex < exactly < rbrace > >()) {
- css_error("Invalid CSS", " after ", ": expected \"}\", was ");
- }
- }
- // lex some string constants or other valid token
- // Note: [-+] chars are left over from i.e. `#{3}+3`
- else if (lex< alternatives < exactly<'%'>, exactly < '-' >, exactly < '+' > > >()) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, lexed));
- }
- // lex a quoted string
- else if (lex< quoted_string >()) {
- // need_space = true;
- // if (schema->length()) schema->append(SASS_MEMORY_NEW(String_Constant, pstate, " "));
- // else need_space = true;
- schema->append(parse_string());
- if ((*position == '"' || *position == '\'') || peek < alternatives < alpha > >()) {
- // need_space = true;
- }
- if (peek < exactly < '-' > >()) break;
- }
- else if (lex< identifier >()) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, lexed));
- if ((*position == '"' || *position == '\'') || peek < alternatives < alpha > >()) {
- // need_space = true;
- }
- }
- // lex (normalized) variable
- else if (lex< variable >()) {
- std::string name(Util::normalize_underscores(lexed));
- schema->append(SASS_MEMORY_NEW(Variable, pstate, name));
- }
- // lex percentage value
- else if (lex< percentage >()) {
- schema->append(lexed_percentage(lexed));
- }
- // lex dimension value
- else if (lex< dimension >()) {
- schema->append(lexed_dimension(lexed));
- }
- // lex number value
- else if (lex< number >()) {
- schema->append(lexed_number(lexed));
- }
- // lex hex color value
- else if (lex< sequence < hex, negate < exactly < '-' > > > >()) {
- schema->append(lexed_hex_color(lexed));
- }
- else if (lex< sequence < exactly <'#'>, identifier > >()) {
- schema->append(SASS_MEMORY_NEW(String_Quoted, pstate, lexed));
- }
- // lex a value in parentheses
- else if (peek< parenthese_scope >()) {
- schema->append(parse_factor());
- }
- else {
- break;
- }
- ++num_items;
- }
- if (position != stop) {
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, std::string(position, stop)));
- position = stop;
- }
- end = ee;
- return schema;
- }
-
- // this parses interpolation outside other strings
- // means the result must not be quoted again later
- String_Obj Parser::parse_identifier_schema()
- {
- Token id(lexed);
- const char* i = id.begin;
- // see if there any interpolants
- const char* p = find_first_in_interval< exactly<hash_lbrace>, block_comment >(id.begin, id.end);
- if (!p) {
- return SASS_MEMORY_NEW(String_Constant, pstate, std::string(id.begin, id.end));
- }
-
- String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
- while (i < id.end) {
- p = find_first_in_interval< exactly<hash_lbrace>, block_comment >(i, id.end);
- if (p) {
- if (i < p) {
- // accumulate the preceding segment if it's nonempty
- const char* o = position; position = i;
- schema->append(parse_value_schema(p));
- position = o;
- }
- // we need to skip anything inside strings
- // create a new target in parser/prelexer
- if (peek < sequence < optional_spaces, exactly<rbrace> > >(p+2)) { position = p;
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ");
- }
- const char* j = skip_over_scopes< exactly<hash_lbrace>, exactly<rbrace> >(p+2, id.end); // find the closing brace
- if (j) {
- // parse the interpolant and accumulate it
- Expression_Obj interp_node = Parser::from_token(Token(p+2, j), ctx, traces, pstate, source).parse_list(DELAYED);
- interp_node->is_interpolant(true);
- schema->append(interp_node);
- // schema->has_interpolants(true);
- i = j;
- }
- else {
- // throw an error if the interpolant is unterminated
- error("unterminated interpolant inside interpolated identifier " + id.to_string());
- }
- }
- else { // no interpolants left; add the last segment if nonempty
- if (i < end) {
- const char* o = position; position = i;
- schema->append(parse_value_schema(id.end));
- position = o;
- }
- break;
- }
- }
- return schema ? schema.detach() : 0;
- }
-
- // calc functions should preserve arguments
- Function_Call_Obj Parser::parse_calc_function()
- {
- lex< identifier >();
- std::string name(lexed);
- ParserState call_pos = pstate;
- lex< exactly<'('> >();
- ParserState arg_pos = pstate;
- const char* arg_beg = position;
- parse_list();
- const char* arg_end = position;
- lex< skip_over_scopes <
- exactly < '(' >,
- exactly < ')' >
- > >();
-
- Argument_Obj arg = SASS_MEMORY_NEW(Argument, arg_pos, parse_interpolated_chunk(Token(arg_beg, arg_end)));
- Arguments_Obj args = SASS_MEMORY_NEW(Arguments, arg_pos);
- args->append(arg);
- return SASS_MEMORY_NEW(Function_Call, call_pos, name, args);
- }
-
- String_Obj Parser::parse_url_function_string()
- {
- std::string prefix("");
- if (lex< uri_prefix >()) {
- prefix = std::string(lexed);
- }
-
- lex < optional_spaces >();
- String_Obj url_string = parse_url_function_argument();
-
- std::string suffix("");
- if (lex< real_uri_suffix >()) {
- suffix = std::string(lexed);
- }
-
- std::string uri("");
- if (url_string) {
- uri = url_string->to_string({ NESTED, 5 });
- }
-
- if (String_Schema_Ptr schema = Cast<String_Schema>(url_string)) {
- String_Schema_Obj res = SASS_MEMORY_NEW(String_Schema, pstate);
- res->append(SASS_MEMORY_NEW(String_Constant, pstate, prefix));
- res->append(schema);
- res->append(SASS_MEMORY_NEW(String_Constant, pstate, suffix));
- return res;
- } else {
- std::string res = prefix + uri + suffix;
- return SASS_MEMORY_NEW(String_Constant, pstate, res);
- }
- }
-
- String_Obj Parser::parse_url_function_argument()
- {
- const char* p = position;
-
- std::string uri("");
- if (lex< real_uri_value >(false)) {
- uri = lexed.to_string();
- }
-
- if (peek< exactly< hash_lbrace > >()) {
- const char* pp = position;
- // TODO: error checking for unclosed interpolants
- while (pp && peek< exactly< hash_lbrace > >(pp)) {
- pp = sequence< interpolant, real_uri_value >(pp);
- }
- if (!pp) return 0;
- position = pp;
- return parse_interpolated_chunk(Token(p, position));
- }
- else if (uri != "") {
- std::string res = Util::rtrim(uri);
- return SASS_MEMORY_NEW(String_Constant, pstate, res);
- }
-
- return 0;
- }
-
- Function_Call_Obj Parser::parse_function_call()
- {
- lex< identifier >();
- std::string name(lexed);
-
- if (Util::normalize_underscores(name) == "content-exists" && stack.back() != Scope::Mixin)
- { error("Cannot call content-exists() except within a mixin."); }
-
- ParserState call_pos = pstate;
- Arguments_Obj args = parse_arguments();
- return SASS_MEMORY_NEW(Function_Call, call_pos, name, args);
- }
-
- Function_Call_Schema_Obj Parser::parse_function_call_schema()
- {
- String_Obj name = parse_identifier_schema();
- ParserState source_position_of_call = pstate;
- Arguments_Obj args = parse_arguments();
-
- return SASS_MEMORY_NEW(Function_Call_Schema, source_position_of_call, name, args);
- }
-
- Content_Obj Parser::parse_content_directive()
- {
- return SASS_MEMORY_NEW(Content, pstate);
- }
-
- If_Obj Parser::parse_if_directive(bool else_if)
- {
- stack.push_back(Scope::Control);
- ParserState if_source_position = pstate;
- bool root = block_stack.back()->is_root();
- Expression_Obj predicate = parse_list();
- Block_Obj block = parse_block(root);
- Block_Obj alternative = NULL;
-
- // only throw away comment if we parse a case
- // we want all other comments to be parsed
- if (lex_css< elseif_directive >()) {
- alternative = SASS_MEMORY_NEW(Block, pstate);
- alternative->append(parse_if_directive(true));
- }
- else if (lex_css< kwd_else_directive >()) {
- alternative = parse_block(root);
- }
- stack.pop_back();
- return SASS_MEMORY_NEW(If, if_source_position, predicate, block, alternative);
- }
-
- For_Obj Parser::parse_for_directive()
- {
- stack.push_back(Scope::Control);
- ParserState for_source_position = pstate;
- bool root = block_stack.back()->is_root();
- lex_variable();
- std::string var(Util::normalize_underscores(lexed));
- if (!lex< kwd_from >()) error("expected 'from' keyword in @for directive");
- Expression_Obj lower_bound = parse_expression();
- bool inclusive = false;
- if (lex< kwd_through >()) inclusive = true;
- else if (lex< kwd_to >()) inclusive = false;
- else error("expected 'through' or 'to' keyword in @for directive");
- Expression_Obj upper_bound = parse_expression();
- Block_Obj body = parse_block(root);
- stack.pop_back();
- return SASS_MEMORY_NEW(For, for_source_position, var, lower_bound, upper_bound, body, inclusive);
- }
-
- // helper to parse a var token
- Token Parser::lex_variable()
- {
- // peek for dollar sign first
- if (!peek< exactly <'$'> >()) {
- css_error("Invalid CSS", " after ", ": expected \"$\", was ");
- }
- // we expect a simple identifier as the call name
- if (!lex< sequence < exactly <'$'>, identifier > >()) {
- lex< exactly <'$'> >(); // move pstate and position up
- css_error("Invalid CSS", " after ", ": expected identifier, was ");
- }
- // return object
- return token;
- }
- // helper to parse identifier
- Token Parser::lex_identifier()
- {
- // we expect a simple identifier as the call name
- if (!lex< identifier >()) { // ToDo: pstate wrong?
- css_error("Invalid CSS", " after ", ": expected identifier, was ");
- }
- // return object
- return token;
- }
-
- Each_Obj Parser::parse_each_directive()
- {
- stack.push_back(Scope::Control);
- ParserState each_source_position = pstate;
- bool root = block_stack.back()->is_root();
- std::vector<std::string> vars;
- lex_variable();
- vars.push_back(Util::normalize_underscores(lexed));
- while (lex< exactly<','> >()) {
- if (!lex< variable >()) error("@each directive requires an iteration variable");
- vars.push_back(Util::normalize_underscores(lexed));
- }
- if (!lex< kwd_in >()) error("expected 'in' keyword in @each directive");
- Expression_Obj list = parse_list();
- Block_Obj body = parse_block(root);
- stack.pop_back();
- return SASS_MEMORY_NEW(Each, each_source_position, vars, list, body);
- }
-
- // called after parsing `kwd_while_directive`
- While_Obj Parser::parse_while_directive()
- {
- stack.push_back(Scope::Control);
- bool root = block_stack.back()->is_root();
- // create the initial while call object
- While_Obj call = SASS_MEMORY_NEW(While, pstate, 0, 0);
- // parse mandatory predicate
- Expression_Obj predicate = parse_list();
- List_Obj l = Cast<List>(predicate);
- if (!predicate || (l && !l->length())) {
- css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was ", false);
- }
- call->predicate(predicate);
- // parse mandatory block
- call->block(parse_block(root));
- // return ast node
- stack.pop_back();
- // return ast node
- return call.detach();
- }
-
- // EO parse_while_directive
- Media_Block_Obj Parser::parse_media_block()
- {
- stack.push_back(Scope::Media);
- Media_Block_Obj media_block = SASS_MEMORY_NEW(Media_Block, pstate, 0, 0);
-
- media_block->media_queries(parse_media_queries());
-
- Media_Block_Obj prev_media_block = last_media_block;
- last_media_block = media_block;
- media_block->block(parse_css_block());
- last_media_block = prev_media_block;
- stack.pop_back();
- return media_block.detach();
- }
-
- List_Obj Parser::parse_media_queries()
- {
- advanceToNextToken();
- List_Obj queries = SASS_MEMORY_NEW(List, pstate, 0, SASS_COMMA);
- if (!peek_css < exactly <'{'> >()) queries->append(parse_media_query());
- while (lex_css < exactly <','> >()) queries->append(parse_media_query());
- queries->update_pstate(pstate);
- return queries.detach();
- }
-
- // Expression_Ptr Parser::parse_media_query()
- Media_Query_Obj Parser::parse_media_query()
- {
- advanceToNextToken();
- Media_Query_Obj media_query = SASS_MEMORY_NEW(Media_Query, pstate);
- if (lex < kwd_not >()) { media_query->is_negated(true); lex < css_comments >(false); }
- else if (lex < kwd_only >()) { media_query->is_restricted(true); lex < css_comments >(false); }
-
- if (lex < identifier_schema >()) media_query->media_type(parse_identifier_schema());
- else if (lex < identifier >()) media_query->media_type(parse_interpolated_chunk(lexed));
- else media_query->append(parse_media_expression());
-
- while (lex_css < kwd_and >()) media_query->append(parse_media_expression());
- if (lex < identifier_schema >()) {
- String_Schema_Ptr schema = SASS_MEMORY_NEW(String_Schema, pstate);
- schema->append(media_query->media_type());
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, " "));
- schema->append(parse_identifier_schema());
- media_query->media_type(schema);
- }
- while (lex_css < kwd_and >()) media_query->append(parse_media_expression());
-
- media_query->update_pstate(pstate);
-
- return media_query;
- }
-
- Media_Query_Expression_Obj Parser::parse_media_expression()
- {
- if (lex < identifier_schema >()) {
- String_Obj ss = parse_identifier_schema();
- return SASS_MEMORY_NEW(Media_Query_Expression, pstate, ss, 0, true);
- }
- if (!lex_css< exactly<'('> >()) {
- error("media query expression must begin with '('");
- }
- Expression_Obj feature;
- if (peek_css< exactly<')'> >()) {
- error("media feature required in media query expression");
- }
- feature = parse_expression();
- Expression_Obj expression = 0;
- if (lex_css< exactly<':'> >()) {
- expression = parse_list(DELAYED);
- }
- if (!lex_css< exactly<')'> >()) {
- error("unclosed parenthesis in media query expression");
- }
- return SASS_MEMORY_NEW(Media_Query_Expression, feature->pstate(), feature, expression);
- }
-
- // lexed after `kwd_supports_directive`
- // these are very similar to media blocks
- Supports_Block_Obj Parser::parse_supports_directive()
- {
- Supports_Condition_Obj cond = parse_supports_condition();
- if (!cond) {
- css_error("Invalid CSS", " after ", ": expected @supports condition (e.g. (display: flexbox)), was ", false);
- }
- // create the ast node object for the support queries
- Supports_Block_Obj query = SASS_MEMORY_NEW(Supports_Block, pstate, cond);
- // additional block is mandatory
- // parse inner block
- query->block(parse_block());
- // return ast node
- return query;
- }
-
- // parse one query operation
- // may encounter nested queries
- Supports_Condition_Obj Parser::parse_supports_condition()
- {
- lex < css_whitespace >();
- Supports_Condition_Obj cond;
- if ((cond = parse_supports_negation())) return cond;
- if ((cond = parse_supports_operator())) return cond;
- if ((cond = parse_supports_interpolation())) return cond;
- return cond;
- }
-
- Supports_Condition_Obj Parser::parse_supports_negation()
- {
- if (!lex < kwd_not >()) return 0;
- Supports_Condition_Obj cond = parse_supports_condition_in_parens();
- return SASS_MEMORY_NEW(Supports_Negation, pstate, cond);
- }
-
- Supports_Condition_Obj Parser::parse_supports_operator()
- {
- Supports_Condition_Obj cond = parse_supports_condition_in_parens();
- if (cond.isNull()) return 0;
-
- while (true) {
- Supports_Operator::Operand op = Supports_Operator::OR;
- if (lex < kwd_and >()) { op = Supports_Operator::AND; }
- else if(!lex < kwd_or >()) { break; }
-
- lex < css_whitespace >();
- Supports_Condition_Obj right = parse_supports_condition_in_parens();
-
- // Supports_Condition_Ptr cc = SASS_MEMORY_NEW(Supports_Condition, *static_cast<Supports_Condition_Ptr>(cond));
- cond = SASS_MEMORY_NEW(Supports_Operator, pstate, cond, right, op);
- }
- return cond;
- }
-
- Supports_Condition_Obj Parser::parse_supports_interpolation()
- {
- if (!lex < interpolant >()) return 0;
-
- String_Obj interp = parse_interpolated_chunk(lexed);
- if (!interp) return 0;
-
- return SASS_MEMORY_NEW(Supports_Interpolation, pstate, interp);
- }
-
- // TODO: This needs some major work. Although feature conditions
- // look like declarations their semantics differ significantly
- Supports_Condition_Obj Parser::parse_supports_declaration()
- {
- Supports_Condition_Ptr cond;
- // parse something declaration like
- Expression_Obj feature = parse_expression();
- Expression_Obj expression = 0;
- if (lex_css< exactly<':'> >()) {
- expression = parse_list(DELAYED);
- }
- if (!feature || !expression) error("@supports condition expected declaration");
- cond = SASS_MEMORY_NEW(Supports_Declaration,
- feature->pstate(),
- feature,
- expression);
- // ToDo: maybe we need an additional error condition?
- return cond;
- }
-
- Supports_Condition_Obj Parser::parse_supports_condition_in_parens()
- {
- Supports_Condition_Obj interp = parse_supports_interpolation();
- if (interp != 0) return interp;
-
- if (!lex < exactly <'('> >()) return 0;
- lex < css_whitespace >();
-
- Supports_Condition_Obj cond = parse_supports_condition();
- if (cond != 0) {
- if (!lex < exactly <')'> >()) error("unclosed parenthesis in @supports declaration");
- } else {
- cond = parse_supports_declaration();
- if (!lex < exactly <')'> >()) error("unclosed parenthesis in @supports declaration");
- }
- lex < css_whitespace >();
- return cond;
- }
-
- At_Root_Block_Obj Parser::parse_at_root_block()
- {
- stack.push_back(Scope::AtRoot);
- ParserState at_source_position = pstate;
- Block_Obj body = 0;
- At_Root_Query_Obj expr;
- Lookahead lookahead_result;
- if (lex_css< exactly<'('> >()) {
- expr = parse_at_root_query();
- }
- if (peek_css < exactly<'{'> >()) {
- lex <optional_spaces>();
- body = parse_block(true);
- }
- else if ((lookahead_result = lookahead_for_selector(position)).found) {
- Ruleset_Obj r = parse_ruleset(lookahead_result);
- body = SASS_MEMORY_NEW(Block, r->pstate(), 1, true);
- body->append(r);
- }
- At_Root_Block_Obj at_root = SASS_MEMORY_NEW(At_Root_Block, at_source_position, body);
- if (!expr.isNull()) at_root->expression(expr);
- stack.pop_back();
- return at_root;
- }
-
- At_Root_Query_Obj Parser::parse_at_root_query()
- {
- if (peek< exactly<')'> >()) error("at-root feature required in at-root expression");
-
- if (!peek< alternatives< kwd_with_directive, kwd_without_directive > >()) {
- css_error("Invalid CSS", " after ", ": expected \"with\" or \"without\", was ");
- }
-
- Expression_Obj feature = parse_list();
- if (!lex_css< exactly<':'> >()) error("style declaration must contain a value");
- Expression_Obj expression = parse_list();
- List_Obj value = SASS_MEMORY_NEW(List, feature->pstate(), 1);
-
- if (expression->concrete_type() == Expression::LIST) {
- value = Cast<List>(expression);
- }
- else value->append(expression);
-
- At_Root_Query_Obj cond = SASS_MEMORY_NEW(At_Root_Query,
- value->pstate(),
- feature,
- value);
- if (!lex_css< exactly<')'> >()) error("unclosed parenthesis in @at-root expression");
- return cond;
- }
-
- Directive_Obj Parser::parse_special_directive()
- {
- std::string kwd(lexed);
-
- if (lexed == "@else") error("Invalid CSS: @else must come after @if");
-
- // this whole branch is never hit via spec tests
-
- Directive_Ptr at_rule = SASS_MEMORY_NEW(Directive, pstate, kwd);
- Lookahead lookahead = lookahead_for_include(position);
- if (lookahead.found && !lookahead.has_interpolants) {
- at_rule->selector(parse_selector_list(false));
- }
-
- lex < css_comments >(false);
-
- if (lex < static_property >()) {
- at_rule->value(parse_interpolated_chunk(Token(lexed)));
- } else if (!(peek < alternatives < exactly<'{'>, exactly<'}'>, exactly<';'> > >())) {
- at_rule->value(parse_list());
- }
-
- lex < css_comments >(false);
-
- if (peek< exactly<'{'> >()) {
- at_rule->block(parse_block());
- }
-
- return at_rule;
- }
-
- // this whole branch is never hit via spec tests
- Directive_Obj Parser::parse_prefixed_directive()
- {
- std::string kwd(lexed);
-
- if (lexed == "@else") error("Invalid CSS: @else must come after @if");
-
- Directive_Obj at_rule = SASS_MEMORY_NEW(Directive, pstate, kwd);
- Lookahead lookahead = lookahead_for_include(position);
- if (lookahead.found && !lookahead.has_interpolants) {
- at_rule->selector(parse_selector_list(false));
- }
-
- lex < css_comments >(false);
-
- if (lex < static_property >()) {
- at_rule->value(parse_interpolated_chunk(Token(lexed)));
- } else if (!(peek < alternatives < exactly<'{'>, exactly<'}'>, exactly<';'> > >())) {
- at_rule->value(parse_list());
- }
-
- lex < css_comments >(false);
-
- if (peek< exactly<'{'> >()) {
- at_rule->block(parse_block());
- }
-
- return at_rule;
- }
-
-
- Directive_Obj Parser::parse_directive()
- {
- Directive_Obj directive = SASS_MEMORY_NEW(Directive, pstate, lexed);
- String_Schema_Obj val = parse_almost_any_value();
- // strip left and right if they are of type string
- directive->value(val);
- if (peek< exactly<'{'> >()) {
- directive->block(parse_block());
- }
- return directive;
- }
-
- Expression_Obj Parser::lex_interpolation()
- {
- if (lex < interpolant >(true) != NULL) {
- return parse_interpolated_chunk(lexed, true);
- }
- return 0;
- }
-
- Expression_Obj Parser::lex_interp_uri()
- {
- // create a string schema by lexing optional interpolations
- return lex_interp< re_string_uri_open, re_string_uri_close >();
- }
-
- Expression_Obj Parser::lex_interp_string()
- {
- Expression_Obj rv;
- if ((rv = lex_interp< re_string_double_open, re_string_double_close >())) return rv;
- if ((rv = lex_interp< re_string_single_open, re_string_single_close >())) return rv;
- return rv;
- }
-
- Expression_Obj Parser::lex_almost_any_value_chars()
- {
- const char* match =
- lex <
- one_plus <
- alternatives <
- sequence <
- exactly <'\\'>,
- any_char
- >,
- sequence <
- negate <
- sequence <
- exactly < url_kwd >,
- exactly <'('>
- >
- >,
- neg_class_char <
- almost_any_value_class
- >
- >,
- sequence <
- exactly <'/'>,
- negate <
- alternatives <
- exactly <'/'>,
- exactly <'*'>
- >
- >
- >,
- sequence <
- exactly <'\\'>,
- exactly <'#'>,
- negate <
- exactly <'{'>
- >
- >,
- sequence <
- exactly <'!'>,
- negate <
- alpha
- >
- >
- >
- >
- >(false);
- if (match) {
- return SASS_MEMORY_NEW(String_Constant, pstate, lexed);
- }
- return NULL;
- }
-
- Expression_Obj Parser::lex_almost_any_value_token()
- {
- Expression_Obj rv;
- if (*position == 0) return 0;
- if ((rv = lex_almost_any_value_chars())) return rv;
- // if ((rv = lex_block_comment())) return rv;
- // if ((rv = lex_single_line_comment())) return rv;
- if ((rv = lex_interp_string())) return rv;
- if ((rv = lex_interp_uri())) return rv;
- if ((rv = lex_interpolation())) return rv;
- if (lex< alternatives< hex, hex0 > >())
- { return lexed_hex_color(lexed); }
- return rv;
- }
-
- String_Schema_Obj Parser::parse_almost_any_value()
- {
-
- String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
- if (*position == 0) return 0;
- lex < spaces >(false);
- Expression_Obj token = lex_almost_any_value_token();
- if (!token) return 0;
- schema->append(token);
- if (*position == 0) {
- schema->rtrim();
- return schema.detach();
- }
-
- while ((token = lex_almost_any_value_token())) {
- schema->append(token);
- }
-
- lex < css_whitespace >();
-
- schema->rtrim();
-
- return schema.detach();
- }
-
- Warning_Obj Parser::parse_warning()
- {
- if (stack.back() != Scope::Root &&
- stack.back() != Scope::Function &&
- stack.back() != Scope::Mixin &&
- stack.back() != Scope::Control &&
- stack.back() != Scope::Rules) {
- error("Illegal nesting: Only properties may be nested beneath properties.");
- }
- return SASS_MEMORY_NEW(Warning, pstate, parse_list(DELAYED));
- }
-
- Error_Obj Parser::parse_error()
- {
- if (stack.back() != Scope::Root &&
- stack.back() != Scope::Function &&
- stack.back() != Scope::Mixin &&
- stack.back() != Scope::Control &&
- stack.back() != Scope::Rules) {
- error("Illegal nesting: Only properties may be nested beneath properties.");
- }
- return SASS_MEMORY_NEW(Error, pstate, parse_list(DELAYED));
- }
-
- Debug_Obj Parser::parse_debug()
- {
- if (stack.back() != Scope::Root &&
- stack.back() != Scope::Function &&
- stack.back() != Scope::Mixin &&
- stack.back() != Scope::Control &&
- stack.back() != Scope::Rules) {
- error("Illegal nesting: Only properties may be nested beneath properties.");
- }
- return SASS_MEMORY_NEW(Debug, pstate, parse_list(DELAYED));
- }
-
- Return_Obj Parser::parse_return_directive()
- {
- // check that we do not have an empty list (ToDo: check if we got all cases)
- if (peek_css < alternatives < exactly < ';' >, exactly < '}' >, end_of_file > >())
- { css_error("Invalid CSS", " after ", ": expected expression (e.g. 1px, bold), was "); }
- return SASS_MEMORY_NEW(Return, pstate, parse_list());
- }
-
- Lookahead Parser::lookahead_for_selector(const char* start)
- {
- // init result struct
- Lookahead rv = Lookahead();
- // get start position
- const char* p = start ? start : position;
- // match in one big "regex"
- rv.error = p;
- if (const char* q =
- peek <
- re_selector_list
- >(p)
- ) {
- bool could_be_property = peek< sequence< exactly<'-'>, exactly<'-'> > >(p) != 0;
- bool could_be_escaped = false;
- while (p < q) {
- // did we have interpolations?
- if (*p == '#' && *(p+1) == '{') {
- rv.has_interpolants = true;
- p = q; break;
- }
- // A property that's ambiguous with a nested selector is interpreted as a
- // custom property.
- if (*p == ':' && !could_be_escaped) {
- rv.is_custom_property = could_be_property || p+1 == q || peek< space >(p+1);
- }
- could_be_escaped = *p == '\\';
- ++ p;
- }
- // store anyway }
-
-
- // ToDo: remove
- rv.error = q;
- rv.position = q;
- // check expected opening bracket
- // only after successfull matching
- if (peek < exactly<'{'> >(q)) rv.found = q;
- // else if (peek < end_of_file >(q)) rv.found = q;
- else if (peek < exactly<'('> >(q)) rv.found = q;
- // else if (peek < exactly<';'> >(q)) rv.found = q;
- // else if (peek < exactly<'}'> >(q)) rv.found = q;
- if (rv.found || *p == 0) rv.error = 0;
- }
-
- rv.parsable = ! rv.has_interpolants;
-
- // return result
- return rv;
-
- }
- // EO lookahead_for_selector
-
- // used in parse_block_nodes and parse_special_directive
- // ToDo: actual usage is still not really clear to me?
- Lookahead Parser::lookahead_for_include(const char* start)
- {
- // we actually just lookahead for a selector
- Lookahead rv = lookahead_for_selector(start);
- // but the "found" rules are different
- if (const char* p = rv.position) {
- // check for additional abort condition
- if (peek < exactly<';'> >(p)) rv.found = p;
- else if (peek < exactly<'}'> >(p)) rv.found = p;
- }
- // return result
- return rv;
- }
- // EO lookahead_for_include
-
- // look ahead for a token with interpolation in it
- // we mostly use the result if there is an interpolation
- // everything that passes here gets parsed as one schema
- // meaning it will not be parsed as a space separated list
- Lookahead Parser::lookahead_for_value(const char* start)
- {
- // init result struct
- Lookahead rv = Lookahead();
- // get start position
- const char* p = start ? start : position;
- // match in one big "regex"
- if (const char* q =
- peek <
- non_greedy <
- alternatives <
- // consume whitespace
- block_comment, // spaces,
- // main tokens
- sequence <
- interpolant,
- optional <
- quoted_string
- >
- >,
- identifier,
- variable,
- // issue #442
- sequence <
- parenthese_scope,
- interpolant,
- optional <
- quoted_string
- >
- >
- >,
- sequence <
- // optional_spaces,
- alternatives <
- // end_of_file,
- exactly<'{'>,
- exactly<'}'>,
- exactly<';'>
- >
- >
- >
- >(p)
- ) {
- if (p == q) return rv;
- while (p < q) {
- // did we have interpolations?
- if (*p == '#' && *(p+1) == '{') {
- rv.has_interpolants = true;
- p = q; break;
- }
- ++ p;
- }
- // store anyway
- // ToDo: remove
- rv.position = q;
- // check expected opening bracket
- // only after successful matching
- if (peek < exactly<'{'> >(q)) rv.found = q;
- else if (peek < exactly<';'> >(q)) rv.found = q;
- else if (peek < exactly<'}'> >(q)) rv.found = q;
- }
-
- // return result
- return rv;
- }
- // EO lookahead_for_value
-
- void Parser::read_bom()
- {
- size_t skip = 0;
- std::string encoding;
- bool utf_8 = false;
- switch ((unsigned char) source[0]) {
- case 0xEF:
- skip = check_bom_chars(source, end, utf_8_bom, 3);
- encoding = "UTF-8";
- utf_8 = true;
- break;
- case 0xFE:
- skip = check_bom_chars(source, end, utf_16_bom_be, 2);
- encoding = "UTF-16 (big endian)";
- break;
- case 0xFF:
- skip = check_bom_chars(source, end, utf_16_bom_le, 2);
- skip += (skip ? check_bom_chars(source, end, utf_32_bom_le, 4) : 0);
- encoding = (skip == 2 ? "UTF-16 (little endian)" : "UTF-32 (little endian)");
- break;
- case 0x00:
- skip = check_bom_chars(source, end, utf_32_bom_be, 4);
- encoding = "UTF-32 (big endian)";
- break;
- case 0x2B:
- skip = check_bom_chars(source, end, utf_7_bom_1, 4)
- | check_bom_chars(source, end, utf_7_bom_2, 4)
- | check_bom_chars(source, end, utf_7_bom_3, 4)
- | check_bom_chars(source, end, utf_7_bom_4, 4)
- | check_bom_chars(source, end, utf_7_bom_5, 5);
- encoding = "UTF-7";
- break;
- case 0xF7:
- skip = check_bom_chars(source, end, utf_1_bom, 3);
- encoding = "UTF-1";
- break;
- case 0xDD:
- skip = check_bom_chars(source, end, utf_ebcdic_bom, 4);
- encoding = "UTF-EBCDIC";
- break;
- case 0x0E:
- skip = check_bom_chars(source, end, scsu_bom, 3);
- encoding = "SCSU";
- break;
- case 0xFB:
- skip = check_bom_chars(source, end, bocu_1_bom, 3);
- encoding = "BOCU-1";
- break;
- case 0x84:
- skip = check_bom_chars(source, end, gb_18030_bom, 4);
- encoding = "GB-18030";
- break;
- default: break;
- }
- if (skip > 0 && !utf_8) error("only UTF-8 documents are currently supported; your document appears to be " + encoding);
- position += skip;
- }
-
- size_t check_bom_chars(const char* src, const char *end, const unsigned char* bom, size_t len)
- {
- size_t skip = 0;
- if (src + len > end) return 0;
- for (size_t i = 0; i < len; ++i, ++skip) {
- if ((unsigned char) src[i] != bom[i]) return 0;
- }
- return skip;
- }
-
-
- Expression_Obj Parser::fold_operands(Expression_Obj base, std::vector<Expression_Obj>& operands, Operand op)
- {
- for (size_t i = 0, S = operands.size(); i < S; ++i) {
- base = SASS_MEMORY_NEW(Binary_Expression, base->pstate(), op, base, operands[i]);
- }
- return base;
- }
-
- Expression_Obj Parser::fold_operands(Expression_Obj base, std::vector<Expression_Obj>& operands, std::vector<Operand>& ops, size_t i)
- {
- if (String_Schema_Ptr schema = Cast<String_Schema>(base)) {
- // return schema;
- if (schema->has_interpolants()) {
- if (i + 1 < operands.size() && (
- (ops[0].operand == Sass_OP::EQ)
- || (ops[0].operand == Sass_OP::ADD)
- || (ops[0].operand == Sass_OP::DIV)
- || (ops[0].operand == Sass_OP::MUL)
- || (ops[0].operand == Sass_OP::NEQ)
- || (ops[0].operand == Sass_OP::LT)
- || (ops[0].operand == Sass_OP::GT)
- || (ops[0].operand == Sass_OP::LTE)
- || (ops[0].operand == Sass_OP::GTE)
- )) {
- Expression_Obj rhs = fold_operands(operands[i], operands, ops, i + 1);
- rhs = SASS_MEMORY_NEW(Binary_Expression, base->pstate(), ops[0], schema, rhs);
- return rhs;
- }
- // return schema;
- }
- }
-
- for (size_t S = operands.size(); i < S; ++i) {
- if (String_Schema_Ptr schema = Cast<String_Schema>(operands[i])) {
- if (schema->has_interpolants()) {
- if (i + 1 < S) {
- // this whole branch is never hit via spec tests
- Expression_Obj rhs = fold_operands(operands[i+1], operands, ops, i + 2);
- rhs = SASS_MEMORY_NEW(Binary_Expression, base->pstate(), ops[i], schema, rhs);
- base = SASS_MEMORY_NEW(Binary_Expression, base->pstate(), ops[i], base, rhs);
- return base;
- }
- base = SASS_MEMORY_NEW(Binary_Expression, base->pstate(), ops[i], base, operands[i]);
- return base;
- } else {
- base = SASS_MEMORY_NEW(Binary_Expression, base->pstate(), ops[i], base, operands[i]);
- }
- } else {
- base = SASS_MEMORY_NEW(Binary_Expression, base->pstate(), ops[i], base, operands[i]);
- }
- Binary_Expression_Ptr b = Cast<Binary_Expression>(base.ptr());
- if (b && ops[i].operand == Sass_OP::DIV && b->left()->is_delayed() && b->right()->is_delayed()) {
- base->is_delayed(true);
- }
- }
- // nested binary expression are never to be delayed
- if (Binary_Expression_Ptr b = Cast<Binary_Expression>(base)) {
- if (Cast<Binary_Expression>(b->left())) base->set_delayed(false);
- if (Cast<Binary_Expression>(b->right())) base->set_delayed(false);
- }
- return base;
- }
-
- void Parser::error(std::string msg, Position pos)
- {
- Position p(pos.line ? pos : before_token);
- ParserState pstate(path, source, p, Offset(0, 0));
- traces.push_back(Backtrace(pstate));
- throw Exception::InvalidSass(pstate, traces, msg);
- }
-
- void Parser::error(std::string msg)
- {
- error(msg, pstate);
- }
-
- // print a css parsing error with actual context information from parsed source
- void Parser::css_error(const std::string& msg, const std::string& prefix, const std::string& middle, const bool trim)
- {
- int max_len = 18;
- const char* end = this->end;
- while (*end != 0) ++ end;
- const char* pos = peek < optional_spaces >();
- if (!pos) pos = position;
-
- const char* last_pos(pos);
- if (last_pos > source) {
- utf8::prior(last_pos, source);
- }
- // backup position to last significant char
- while (trim && last_pos > source && last_pos < end) {
- if (!Prelexer::is_space(*last_pos)) break;
- utf8::prior(last_pos, source);
- }
-
- bool ellipsis_left = false;
- const char* pos_left(last_pos);
- const char* end_left(last_pos);
-
- if (*pos_left) utf8::next(pos_left, end);
- if (*end_left) utf8::next(end_left, end);
- while (pos_left > source) {
- if (utf8::distance(pos_left, end_left) >= max_len) {
- utf8::prior(pos_left, source);
- ellipsis_left = *(pos_left) != '\n' &&
- *(pos_left) != '\r';
- utf8::next(pos_left, end);
- break;
- }
-
- const char* prev = pos_left;
- utf8::prior(prev, source);
- if (*prev == '\r') break;
- if (*prev == '\n') break;
- pos_left = prev;
- }
- if (pos_left < source) {
- pos_left = source;
- }
-
- bool ellipsis_right = false;
- const char* end_right(pos);
- const char* pos_right(pos);
- while (end_right < end) {
- if (utf8::distance(pos_right, end_right) > max_len) {
- ellipsis_left = *(pos_right) != '\n' &&
- *(pos_right) != '\r';
- break;
- }
- if (*end_right == '\r') break;
- if (*end_right == '\n') break;
- utf8::next(end_right, end);
- }
- // if (*end_right == 0) end_right ++;
-
- std::string left(pos_left, end_left);
- std::string right(pos_right, end_right);
- size_t left_subpos = left.size() > 15 ? left.size() - 15 : 0;
- size_t right_subpos = right.size() > 15 ? right.size() - 15 : 0;
- if (left_subpos && ellipsis_left) left = ellipsis + left.substr(left_subpos);
- if (right_subpos && ellipsis_right) right = right.substr(right_subpos) + ellipsis;
- // Hotfix when source is null, probably due to interpolation parsing!?
- if (source == NULL || *source == 0) source = pstate.src;
- // now pass new message to the more generic error function
- error(msg + prefix + quote(left) + middle + quote(right));
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/parser.hpp b/node_modules/node-sass/src/libsass/src/parser.hpp
deleted file mode 100644
index d2a6ddc..0000000
--- a/node_modules/node-sass/src/libsass/src/parser.hpp
+++ /dev/null
@@ -1,400 +0,0 @@
-#ifndef SASS_PARSER_H
-#define SASS_PARSER_H
-
-#include <string>
-#include <vector>
-
-#include "ast.hpp"
-#include "position.hpp"
-#include "context.hpp"
-#include "position.hpp"
-#include "prelexer.hpp"
-
-#ifndef MAX_NESTING
-// Note that this limit is not an exact science
-// it depends on various factors, which some are
-// not under our control (compile time or even OS
-// dependent settings on the available stack size)
-// It should fix most common segfault cases though.
-#define MAX_NESTING 512
-#endif
-
-struct Lookahead {
- const char* found;
- const char* error;
- const char* position;
- bool parsable;
- bool has_interpolants;
- bool is_custom_property;
-};
-
-namespace Sass {
-
- class Parser : public ParserState {
- public:
-
- enum Scope { Root, Mixin, Function, Media, Control, Properties, Rules, AtRoot };
-
- Context& ctx;
- std::vector<Block_Obj> block_stack;
- std::vector<Scope> stack;
- Media_Block_Ptr last_media_block;
- const char* source;
- const char* position;
- const char* end;
- Position before_token;
- Position after_token;
- ParserState pstate;
- Backtraces traces;
- size_t indentation;
- size_t nestings;
-
- Token lexed;
-
- Parser(Context& ctx, const ParserState& pstate, Backtraces traces)
- : ParserState(pstate), ctx(ctx), block_stack(), stack(0), last_media_block(),
- source(0), position(0), end(0), before_token(pstate), after_token(pstate),
- pstate(pstate), traces(traces), indentation(0), nestings(0)
- {
- stack.push_back(Scope::Root);
- }
-
- // static Parser from_string(const std::string& src, Context& ctx, ParserState pstate = ParserState("[STRING]"));
- static Parser from_c_str(const char* src, Context& ctx, Backtraces, ParserState pstate = ParserState("[CSTRING]"), const char* source = 0);
- static Parser from_c_str(const char* beg, const char* end, Context& ctx, Backtraces, ParserState pstate = ParserState("[CSTRING]"), const char* source = 0);
- static Parser from_token(Token t, Context& ctx, Backtraces, ParserState pstate = ParserState("[TOKEN]"), const char* source = 0);
- // special static parsers to convert strings into certain selectors
- static Selector_List_Obj parse_selector(const char* src, Context& ctx, Backtraces, ParserState pstate = ParserState("[SELECTOR]"), const char* source = 0);
-
-#ifdef __clang__
-
- // lex and peak uses the template parameter to branch on the action, which
- // triggers clangs tautological comparison on the single-comparison
- // branches. This is not a bug, just a merging of behaviour into
- // one function
-
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wtautological-compare"
-
-#endif
-
-
- // skip current token and next whitespace
- // moves ParserState right before next token
- void advanceToNextToken();
-
- bool peek_newline(const char* start = 0);
-
- // skip over spaces, tabs and line comments
- template <Prelexer::prelexer mx>
- const char* sneak(const char* start = 0)
- {
- using namespace Prelexer;
-
- // maybe use optional start position from arguments?
- const char* it_position = start ? start : position;
-
- // skip white-space?
- if (mx == spaces ||
- mx == no_spaces ||
- mx == css_comments ||
- mx == css_whitespace ||
- mx == optional_spaces ||
- mx == optional_css_comments ||
- mx == optional_css_whitespace
- ) {
- return it_position;
- }
-
- // skip over spaces, tabs and sass line comments
- const char* pos = optional_css_whitespace(it_position);
- // always return a valid position
- return pos ? pos : it_position;
-
- }
-
- // match will not skip over space, tabs and line comment
- // return the position where the lexer match will occur
- template <Prelexer::prelexer mx>
- const char* match(const char* start = 0)
- {
- // match the given prelexer
- return mx(position);
- }
-
- // peek will only skip over space, tabs and line comment
- // return the position where the lexer match will occur
- template <Prelexer::prelexer mx>
- const char* peek(const char* start = 0)
- {
-
- // sneak up to the actual token we want to lex
- // this should skip over white-space if desired
- const char* it_before_token = sneak < mx >(start);
-
- // match the given prelexer
- const char* match = mx(it_before_token);
-
- // check if match is in valid range
- return match <= end ? match : 0;
-
- }
-
- // white-space handling is built into the lexer
- // this way you do not need to parse it yourself
- // some matchers don't accept certain white-space
- // we do not support start arg, since we manipulate
- // sourcemap offset and we modify the position pointer!
- // lex will only skip over space, tabs and line comment
- template <Prelexer::prelexer mx>
- const char* lex(bool lazy = true, bool force = false)
- {
-
- if (*position == 0) return 0;
-
- // position considered before lexed token
- // we can skip whitespace or comments for
- // lazy developers (but we need control)
- const char* it_before_token = position;
-
- // sneak up to the actual token we want to lex
- // this should skip over white-space if desired
- if (lazy) it_before_token = sneak < mx >(position);
-
- // now call matcher to get position after token
- const char* it_after_token = mx(it_before_token);
-
- // check if match is in valid range
- if (it_after_token > end) return 0;
-
- // maybe we want to update the parser state anyway?
- if (force == false) {
- // assertion that we got a valid match
- if (it_after_token == 0) return 0;
- // assertion that we actually lexed something
- if (it_after_token == it_before_token) return 0;
- }
-
- // create new lexed token object (holds the parse results)
- lexed = Token(position, it_before_token, it_after_token);
-
- // advance position (add whitespace before current token)
- before_token = after_token.add(position, it_before_token);
-
- // update after_token position for current token
- after_token.add(it_before_token, it_after_token);
-
- // ToDo: could probably do this incremetal on original object (API wants offset?)
- pstate = ParserState(path, source, lexed, before_token, after_token - before_token);
-
- // advance internal char iterator
- return position = it_after_token;
-
- }
-
- // lex_css skips over space, tabs, line and block comment
- // all block comments will be consumed and thrown away
- // source-map position will point to token after the comment
- template <Prelexer::prelexer mx>
- const char* lex_css()
- {
- // copy old token
- Token prev = lexed;
- // store previous pointer
- const char* oldpos = position;
- Position bt = before_token;
- Position at = after_token;
- ParserState op = pstate;
- // throw away comments
- // update srcmap position
- lex < Prelexer::css_comments >();
- // now lex a new token
- const char* pos = lex< mx >();
- // maybe restore prev state
- if (pos == 0) {
- pstate = op;
- lexed = prev;
- position = oldpos;
- after_token = at;
- before_token = bt;
- }
- // return match
- return pos;
- }
-
- // all block comments will be skipped and thrown away
- template <Prelexer::prelexer mx>
- const char* peek_css(const char* start = 0)
- {
- // now peek a token (skip comments first)
- return peek< mx >(peek < Prelexer::css_comments >(start));
- }
-
-#ifdef __clang__
-
-#pragma clang diagnostic pop
-
-#endif
-
- void error(std::string msg);
- void error(std::string msg, Position pos);
- // generate message with given and expected sample
- // text before and in the middle are configurable
- void css_error(const std::string& msg,
- const std::string& prefix = " after ",
- const std::string& middle = ", was: ",
- const bool trim = true);
- void read_bom();
-
- Block_Obj parse();
- Import_Obj parse_import();
- Definition_Obj parse_definition(Definition::Type which_type);
- Parameters_Obj parse_parameters();
- Parameter_Obj parse_parameter();
- Mixin_Call_Obj parse_include_directive();
- Arguments_Obj parse_arguments();
- Argument_Obj parse_argument();
- Assignment_Obj parse_assignment();
- Ruleset_Obj parse_ruleset(Lookahead lookahead);
- Selector_List_Obj parse_selector_list(bool chroot);
- Complex_Selector_Obj parse_complex_selector(bool chroot);
- Selector_Schema_Obj parse_selector_schema(const char* end_of_selector, bool chroot);
- Compound_Selector_Obj parse_compound_selector();
- Simple_Selector_Obj parse_simple_selector();
- Wrapped_Selector_Obj parse_negated_selector();
- Simple_Selector_Obj parse_pseudo_selector();
- Attribute_Selector_Obj parse_attribute_selector();
- Block_Obj parse_block(bool is_root = false);
- Block_Obj parse_css_block(bool is_root = false);
- bool parse_block_nodes(bool is_root = false);
- bool parse_block_node(bool is_root = false);
-
- bool parse_number_prefix();
- Declaration_Obj parse_declaration();
- Expression_Obj parse_map();
- Expression_Obj parse_bracket_list();
- Expression_Obj parse_list(bool delayed = false);
- Expression_Obj parse_comma_list(bool delayed = false);
- Expression_Obj parse_space_list();
- Expression_Obj parse_disjunction();
- Expression_Obj parse_conjunction();
- Expression_Obj parse_relation();
- Expression_Obj parse_expression();
- Expression_Obj parse_operators();
- Expression_Obj parse_factor();
- Expression_Obj parse_value();
- Function_Call_Obj parse_calc_function();
- Function_Call_Obj parse_function_call();
- Function_Call_Schema_Obj parse_function_call_schema();
- String_Obj parse_url_function_string();
- String_Obj parse_url_function_argument();
- String_Obj parse_interpolated_chunk(Token, bool constant = false, bool css = true);
- String_Obj parse_string();
- Value_Obj parse_static_value();
- String_Schema_Obj parse_css_variable_value(bool top_level = true);
- String_Schema_Obj parse_css_variable_value_token(bool top_level = true);
- String_Obj parse_ie_property();
- String_Obj parse_ie_keyword_arg();
- String_Schema_Obj parse_value_schema(const char* stop);
- String_Obj parse_identifier_schema();
- If_Obj parse_if_directive(bool else_if = false);
- For_Obj parse_for_directive();
- Each_Obj parse_each_directive();
- While_Obj parse_while_directive();
- Return_Obj parse_return_directive();
- Content_Obj parse_content_directive();
- void parse_charset_directive();
- Media_Block_Obj parse_media_block();
- List_Obj parse_media_queries();
- Media_Query_Obj parse_media_query();
- Media_Query_Expression_Obj parse_media_expression();
- Supports_Block_Obj parse_supports_directive();
- Supports_Condition_Obj parse_supports_condition();
- Supports_Condition_Obj parse_supports_negation();
- Supports_Condition_Obj parse_supports_operator();
- Supports_Condition_Obj parse_supports_interpolation();
- Supports_Condition_Obj parse_supports_declaration();
- Supports_Condition_Obj parse_supports_condition_in_parens();
- At_Root_Block_Obj parse_at_root_block();
- At_Root_Query_Obj parse_at_root_query();
- String_Schema_Obj parse_almost_any_value();
- Directive_Obj parse_special_directive();
- Directive_Obj parse_prefixed_directive();
- Directive_Obj parse_directive();
- Warning_Obj parse_warning();
- Error_Obj parse_error();
- Debug_Obj parse_debug();
-
- Value_Ptr color_or_string(const std::string& lexed) const;
-
- // be more like ruby sass
- Expression_Obj lex_almost_any_value_token();
- Expression_Obj lex_almost_any_value_chars();
- Expression_Obj lex_interp_string();
- Expression_Obj lex_interp_uri();
- Expression_Obj lex_interpolation();
-
- // these will throw errors
- Token lex_variable();
- Token lex_identifier();
-
- void parse_block_comments();
-
- Lookahead lookahead_for_value(const char* start = 0);
- Lookahead lookahead_for_selector(const char* start = 0);
- Lookahead lookahead_for_include(const char* start = 0);
-
- Expression_Obj fold_operands(Expression_Obj base, std::vector<Expression_Obj>& operands, Operand op);
- Expression_Obj fold_operands(Expression_Obj base, std::vector<Expression_Obj>& operands, std::vector<Operand>& ops, size_t i = 0);
-
- void throw_syntax_error(std::string message, size_t ln = 0);
- void throw_read_error(std::string message, size_t ln = 0);
-
-
- template <Prelexer::prelexer open, Prelexer::prelexer close>
- Expression_Obj lex_interp()
- {
- if (lex < open >(false)) {
- String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate);
- // std::cerr << "LEX [[" << std::string(lexed) << "]]\n";
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, lexed));
- if (position[0] == '#' && position[1] == '{') {
- Expression_Obj itpl = lex_interpolation();
- if (!itpl.isNull()) schema->append(itpl);
- while (lex < close >(false)) {
- // std::cerr << "LEX [[" << std::string(lexed) << "]]\n";
- schema->append(SASS_MEMORY_NEW(String_Constant, pstate, lexed));
- if (position[0] == '#' && position[1] == '{') {
- Expression_Obj itpl = lex_interpolation();
- if (!itpl.isNull()) schema->append(itpl);
- } else {
- return schema;
- }
- }
- } else {
- return SASS_MEMORY_NEW(String_Constant, pstate, lexed);
- }
- }
- return 0;
- }
-
- public:
- static Number_Ptr lexed_number(const ParserState& pstate, const std::string& parsed);
- static Number_Ptr lexed_dimension(const ParserState& pstate, const std::string& parsed);
- static Number_Ptr lexed_percentage(const ParserState& pstate, const std::string& parsed);
- static Value_Ptr lexed_hex_color(const ParserState& pstate, const std::string& parsed);
- private:
- Number_Ptr lexed_number(const std::string& parsed) { return lexed_number(pstate, parsed); };
- Number_Ptr lexed_dimension(const std::string& parsed) { return lexed_dimension(pstate, parsed); };
- Number_Ptr lexed_percentage(const std::string& parsed) { return lexed_percentage(pstate, parsed); };
- Value_Ptr lexed_hex_color(const std::string& parsed) { return lexed_hex_color(pstate, parsed); };
-
- static const char* re_attr_sensitive_close(const char* src);
- static const char* re_attr_insensitive_close(const char* src);
-
- };
-
- size_t check_bom_chars(const char* src, const char *end, const unsigned char* bom, size_t len);
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/paths.hpp b/node_modules/node-sass/src/libsass/src/paths.hpp
deleted file mode 100644
index aabab94..0000000
--- a/node_modules/node-sass/src/libsass/src/paths.hpp
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef SASS_PATHS_H
-#define SASS_PATHS_H
-
-#include <string>
-#include <vector>
-#include <sstream>
-
-
-template<typename T>
-std::string vector_to_string(std::vector<T> v)
-{
- std::stringstream buffer;
- buffer << "[";
-
- if (!v.empty())
- { buffer << v[0]; }
- else
- { buffer << "]"; }
-
- if (v.size() == 1)
- { buffer << "]"; }
- else
- {
- for (size_t i = 1, S = v.size(); i < S; ++i) buffer << ", " << v[i];
- buffer << "]";
- }
-
- return buffer.str();
-}
-
-namespace Sass {
-
-
- template<typename T>
- std::vector<std::vector<T> > paths(std::vector<std::vector<T> > strata, size_t from_end = 0)
- {
- if (strata.empty()) {
- return std::vector<std::vector<T> >();
- }
-
- size_t end = strata.size() - from_end;
- if (end <= 1) {
- std::vector<std::vector<T> > starting_points;
- starting_points.reserve(strata[0].size());
- for (size_t i = 0, S = strata[0].size(); i < S; ++i) {
- std::vector<T> starting_point;
- starting_point.push_back(strata[0][i]);
- starting_points.push_back(starting_point);
- }
- return starting_points;
- }
-
- std::vector<std::vector<T> > up_to_here = paths(strata, from_end + 1);
- std::vector<T> here = strata[end-1];
-
- std::vector<std::vector<T> > branches;
- branches.reserve(up_to_here.size() * here.size());
- for (size_t i = 0, S1 = up_to_here.size(); i < S1; ++i) {
- for (size_t j = 0, S2 = here.size(); j < S2; ++j) {
- std::vector<T> branch = up_to_here[i];
- branch.push_back(here[j]);
- branches.push_back(branch);
- }
- }
-
- return branches;
- }
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/plugins.cpp b/node_modules/node-sass/src/libsass/src/plugins.cpp
deleted file mode 100644
index eecba78..0000000
--- a/node_modules/node-sass/src/libsass/src/plugins.cpp
+++ /dev/null
@@ -1,184 +0,0 @@
-#include "sass.hpp"
-#include <iostream>
-#include "output.hpp"
-#include "plugins.hpp"
-
-#ifdef _WIN32
-#include <windows.h>
-#else
-#include <sys/types.h>
-#include <dirent.h>
-#include <errno.h>
-#include <dlfcn.h>
-#endif
-
-namespace Sass {
-
- Plugins::Plugins(void) { }
- Plugins::~Plugins(void)
- {
- for (auto function : functions) {
- sass_delete_function(function);
- }
- for (auto importer : importers) {
- sass_delete_importer(importer);
- }
- for (auto header : headers) {
- sass_delete_importer(header);
- }
- }
-
- // check if plugin is compatible with this version
- // plugins may be linked static against libsass
- // we try to be compatible between major versions
- inline bool compatibility(const char* their_version)
- {
-// const char* their_version = "3.1.2";
- // first check if anyone has an unknown version
- const char* our_version = libsass_version();
- if (!strcmp(their_version, "[na]")) return false;
- if (!strcmp(our_version, "[na]")) return false;
-
- // find the position of the second dot
- size_t pos = std::string(our_version).find('.', 0);
- if (pos != std::string::npos) pos = std::string(our_version).find('.', pos + 1);
-
- // if we do not have two dots we fallback to compare complete string
- if (pos == std::string::npos) { return strcmp(their_version, our_version) ? 0 : 1; }
- // otherwise only compare up to the second dot (major versions)
- else { return strncmp(their_version, our_version, pos) ? 0 : 1; }
-
- }
-
- // load one specific plugin
- bool Plugins::load_plugin (const std::string& path)
- {
-
- typedef const char* (*__plugin_version__)(void);
- typedef Sass_Function_List (*__plugin_load_fns__)(void);
- typedef Sass_Importer_List (*__plugin_load_imps__)(void);
-
- if (LOAD_LIB(plugin, path))
- {
- // try to load initial function to query libsass version suppor
- if (LOAD_LIB_FN(__plugin_version__, plugin_version, "libsass_get_version"))
- {
- // get the libsass version of the plugin
- if (!compatibility(plugin_version())) return false;
- // try to get import address for "libsass_load_functions"
- if (LOAD_LIB_FN(__plugin_load_fns__, plugin_load_functions, "libsass_load_functions"))
- {
- Sass_Function_List fns = plugin_load_functions(), _p = fns;
- while (fns && *fns) { functions.push_back(*fns); ++ fns; }
- sass_free_memory(_p); // only delete the container, items not yet
- }
- // try to get import address for "libsass_load_importers"
- if (LOAD_LIB_FN(__plugin_load_imps__, plugin_load_importers, "libsass_load_importers"))
- {
- Sass_Importer_List imps = plugin_load_importers(), _p = imps;
- while (imps && *imps) { importers.push_back(*imps); ++ imps; }
- sass_free_memory(_p); // only delete the container, items not yet
- }
- // try to get import address for "libsass_load_headers"
- if (LOAD_LIB_FN(__plugin_load_imps__, plugin_load_headers, "libsass_load_headers"))
- {
- Sass_Importer_List imps = plugin_load_headers(), _p = imps;
- while (imps && *imps) { headers.push_back(*imps); ++ imps; }
- sass_free_memory(_p); // only delete the container, items not yet
- }
- // success
- return true;
- }
- else
- {
- // print debug message to stderr (should not happen)
- std::cerr << "failed loading 'libsass_support' in <" << path << ">" << std::endl;
- if (const char* dlsym_error = dlerror()) std::cerr << dlsym_error << std::endl;
- CLOSE_LIB(plugin);
- }
- }
- else
- {
- // print debug message to stderr (should not happen)
- std::cerr << "failed loading plugin <" << path << ">" << std::endl;
- if (const char* dlopen_error = dlerror()) std::cerr << dlopen_error << std::endl;
- }
-
- return false;
-
- }
-
- size_t Plugins::load_plugins(const std::string& path)
- {
-
- // count plugins
- size_t loaded = 0;
-
- #ifdef _WIN32
-
- try
- {
-
- // use wchar (utf16)
- WIN32_FIND_DATAW data;
- // trailing slash is guaranteed
- std::string globsrch(path + "*.dll");
- // convert to wide chars (utf16) for system call
- std::wstring wglobsrch(UTF_8::convert_to_utf16(globsrch));
- HANDLE hFile = FindFirstFileW(wglobsrch.c_str(), &data);
- // check if system called returned a result
- // ToDo: maybe we should print a debug message
- if (hFile == INVALID_HANDLE_VALUE) return -1;
-
- // read directory
- while (true)
- {
- try
- {
- // the system will report the filenames with wide chars (utf16)
- std::string entry = UTF_8::convert_from_utf16(data.cFileName);
- // check if file ending matches exactly
- if (!ends_with(entry, ".dll")) continue;
- // load the plugin and increase counter
- if (load_plugin(path + entry)) ++ loaded;
- // check if there should be more entries
- if (GetLastError() == ERROR_NO_MORE_FILES) break;
- // load next entry (check for return type)
- if (!FindNextFileW(hFile, &data)) break;
- }
- catch (...)
- {
- // report the error to the console (should not happen)
- // seems like we got strange data from the system call?
- std::cerr << "filename in plugin path has invalid utf8?" << std::endl;
- }
- }
- }
- catch (utf8::invalid_utf8)
- {
- // report the error to the console (should not happen)
- // implementors should make sure to provide valid utf8
- std::cerr << "plugin path contains invalid utf8" << std::endl;
- }
-
- #else
-
- DIR *dp;
- struct dirent *dirp;
- if((dp = opendir(path.c_str())) == NULL) return -1;
- while ((dirp = readdir(dp)) != NULL) {
- #if __APPLE__
- if (!ends_with(dirp->d_name, ".dylib")) continue;
- #else
- if (!ends_with(dirp->d_name, ".so")) continue;
- #endif
- if (load_plugin(path + dirp->d_name)) ++ loaded;
- }
- closedir(dp);
-
- #endif
- return loaded;
-
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/plugins.hpp b/node_modules/node-sass/src/libsass/src/plugins.hpp
deleted file mode 100644
index fe4eed0..0000000
--- a/node_modules/node-sass/src/libsass/src/plugins.hpp
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef SASS_PLUGINS_H
-#define SASS_PLUGINS_H
-
-#include <string>
-#include <vector>
-#include "utf8_string.hpp"
-#include "sass/functions.h"
-
-#ifdef _WIN32
-
- #define LOAD_LIB(var, path) HMODULE var = LoadLibraryW(UTF_8::convert_to_utf16(path).c_str())
- #define LOAD_LIB_WCHR(var, path_wide_str) HMODULE var = LoadLibraryW(path_wide_str.c_str())
- #define LOAD_LIB_FN(type, var, name) type var = (type) GetProcAddress(plugin, name)
- #define CLOSE_LIB(var) FreeLibrary(var)
-
- #ifndef dlerror
- #define dlerror() 0
- #endif
-
-#else
-
- #define LOAD_LIB(var, path) void* var = dlopen(path.c_str(), RTLD_LAZY)
- #define LOAD_LIB_FN(type, var, name) type var = (type) dlsym(plugin, name)
- #define CLOSE_LIB(var) dlclose(var)
-
-#endif
-
-namespace Sass {
-
-
- class Plugins {
-
- public: // c-tor
- Plugins(void);
- ~Plugins(void);
-
- public: // methods
- // load one specific plugin
- bool load_plugin(const std::string& path);
- // load all plugins from a directory
- size_t load_plugins(const std::string& path);
-
- public: // public accessors
- const std::vector<Sass_Importer_Entry> get_headers(void) { return headers; }
- const std::vector<Sass_Importer_Entry> get_importers(void) { return importers; }
- const std::vector<Sass_Function_Entry> get_functions(void) { return functions; }
-
- private: // private vars
- std::vector<Sass_Importer_Entry> headers;
- std::vector<Sass_Importer_Entry> importers;
- std::vector<Sass_Function_Entry> functions;
-
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/position.cpp b/node_modules/node-sass/src/libsass/src/position.cpp
deleted file mode 100644
index 312e04c..0000000
--- a/node_modules/node-sass/src/libsass/src/position.cpp
+++ /dev/null
@@ -1,181 +0,0 @@
-#include "sass.hpp"
-#include "position.hpp"
-
-namespace Sass {
-
-
- Offset::Offset(const char chr)
- : line(chr == '\n' ? 1 : 0),
- column(chr == '\n' ? 0 : 1)
- {}
-
- Offset::Offset(const char* string)
- : line(0), column(0)
- {
- *this = inc(string, string + strlen(string));
- }
-
- Offset::Offset(const std::string& text)
- : line(0), column(0)
- {
- *this = inc(text.c_str(), text.c_str() + text.size());
- }
-
- Offset::Offset(const size_t line, const size_t column)
- : line(line), column(column) { }
-
- // init/create instance from const char substring
- Offset Offset::init(const char* beg, const char* end)
- {
- Offset offset(0, 0);
- if (end == 0) {
- end += strlen(beg);
- }
- offset.add(beg, end);
- return offset;
- }
-
- // increase offset by given string (mostly called by lexer)
- // increase line counter and count columns on the last line
- Offset Offset::add(const char* begin, const char* end)
- {
- if (end == 0) return *this;
- while (begin < end && *begin) {
- if (*begin == '\n') {
- ++ line;
- // start new line
- column = 0;
- } else {
- // do not count any utf8 continuation bytes
- // https://stackoverflow.com/a/9356203/1550314
- // https://en.wikipedia.org/wiki/UTF-8#Description
- unsigned char chr = *begin;
- // skip over 10xxxxxx
- // is 1st bit not set
- if ((chr & 128) == 0) {
- // regular ascii char
- column += 1;
- }
- // is 2nd bit not set
- else if ((chr & 64) == 0) {
- // first utf8 byte
- column += 1;
- }
- }
- ++ begin;
- }
- return *this;
- }
-
- // increase offset by given string (mostly called by lexer)
- // increase line counter and count columns on the last line
- Offset Offset::inc(const char* begin, const char* end) const
- {
- Offset offset(line, column);
- offset.add(begin, end);
- return offset;
- }
-
- bool Offset::operator== (const Offset &pos) const
- {
- return line == pos.line && column == pos.column;
- }
-
- bool Offset::operator!= (const Offset &pos) const
- {
- return line != pos.line || column != pos.column;
- }
-
- void Offset::operator+= (const Offset &off)
- {
- *this = Offset(line + off.line, off.line > 0 ? off.column : column + off.column);
- }
-
- Offset Offset::operator+ (const Offset &off) const
- {
- return Offset(line + off.line, off.line > 0 ? off.column : column + off.column);
- }
-
- Offset Offset::operator- (const Offset &off) const
- {
- return Offset(line - off.line, off.line == line ? column - off.column : column);
- }
-
- Position::Position(const size_t file)
- : Offset(0, 0), file(file) { }
-
- Position::Position(const size_t file, const Offset& offset)
- : Offset(offset), file(file) { }
-
- Position::Position(const size_t line, const size_t column)
- : Offset(line, column), file(-1) { }
-
- Position::Position(const size_t file, const size_t line, const size_t column)
- : Offset(line, column), file(file) { }
-
-
- ParserState::ParserState(const char* path, const char* src, const size_t file)
- : Position(file, 0, 0), path(path), src(src), offset(0, 0), token() { }
-
- ParserState::ParserState(const char* path, const char* src, const Position& position, Offset offset)
- : Position(position), path(path), src(src), offset(offset), token() { }
-
- ParserState::ParserState(const char* path, const char* src, const Token& token, const Position& position, Offset offset)
- : Position(position), path(path), src(src), offset(offset), token(token) { }
-
- Position Position::add(const char* begin, const char* end)
- {
- Offset::add(begin, end);
- return *this;
- }
-
- Position Position::inc(const char* begin, const char* end) const
- {
- Offset offset(line, column);
- offset = offset.inc(begin, end);
- return Position(file, offset);
- }
-
- bool Position::operator== (const Position &pos) const
- {
- return file == pos.file && line == pos.line && column == pos.column;
- }
-
- bool Position::operator!= (const Position &pos) const
- {
- return file == pos.file || line != pos.line || column != pos.column;
- }
-
- void Position::operator+= (const Offset &off)
- {
- *this = Position(file, line + off.line, off.line > 0 ? off.column : column + off.column);
- }
-
- const Position Position::operator+ (const Offset &off) const
- {
- return Position(file, line + off.line, off.line > 0 ? off.column : column + off.column);
- }
-
- const Offset Position::operator- (const Offset &off) const
- {
- return Offset(line - off.line, off.line == line ? column - off.column : column);
- }
-
- /* not used anymore - remove?
- std::ostream& operator<<(std::ostream& strm, const Offset& off)
- {
- if (off.line == string::npos) strm << "-1:"; else strm << off.line << ":";
- if (off.column == string::npos) strm << "-1"; else strm << off.column;
- return strm;
- } */
-
- /* not used anymore - remove?
- std::ostream& operator<<(std::ostream& strm, const Position& pos)
- {
- if (pos.file != string::npos) strm << pos.file << ":";
- if (pos.line == string::npos) strm << "-1:"; else strm << pos.line << ":";
- if (pos.column == string::npos) strm << "-1"; else strm << pos.column;
- return strm;
- } */
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/position.hpp b/node_modules/node-sass/src/libsass/src/position.hpp
deleted file mode 100644
index 923be3c..0000000
--- a/node_modules/node-sass/src/libsass/src/position.hpp
+++ /dev/null
@@ -1,124 +0,0 @@
-#ifndef SASS_POSITION_H
-#define SASS_POSITION_H
-
-#include <string>
-#include <cstring>
-// #include <iostream>
-
-namespace Sass {
-
-
- class Offset {
-
- public: // c-tor
- Offset(const char chr);
- Offset(const char* string);
- Offset(const std::string& text);
- Offset(const size_t line, const size_t column);
-
- // return new position, incremented by the given string
- Offset add(const char* begin, const char* end);
- Offset inc(const char* begin, const char* end) const;
-
- // init/create instance from const char substring
- static Offset init(const char* beg, const char* end);
-
- public: // overload operators for position
- void operator+= (const Offset &pos);
- bool operator== (const Offset &pos) const;
- bool operator!= (const Offset &pos) const;
- Offset operator+ (const Offset &off) const;
- Offset operator- (const Offset &off) const;
-
- public: // overload output stream operator
- // friend std::ostream& operator<<(std::ostream& strm, const Offset& off);
-
- public:
- Offset off() { return *this; }
-
- public:
- size_t line;
- size_t column;
-
- };
-
- class Position : public Offset {
-
- public: // c-tor
- Position(const size_t file); // line(0), column(0)
- Position(const size_t file, const Offset& offset);
- Position(const size_t line, const size_t column); // file(-1)
- Position(const size_t file, const size_t line, const size_t column);
-
- public: // overload operators for position
- void operator+= (const Offset &off);
- bool operator== (const Position &pos) const;
- bool operator!= (const Position &pos) const;
- const Position operator+ (const Offset &off) const;
- const Offset operator- (const Offset &off) const;
- // return new position, incremented by the given string
- Position add(const char* begin, const char* end);
- Position inc(const char* begin, const char* end) const;
-
- public: // overload output stream operator
- // friend std::ostream& operator<<(std::ostream& strm, const Position& pos);
-
- public:
- size_t file;
-
- };
-
- // Token type for representing lexed chunks of text
- class Token {
- public:
- const char* prefix;
- const char* begin;
- const char* end;
-
- Token()
- : prefix(0), begin(0), end(0) { }
- Token(const char* b, const char* e)
- : prefix(b), begin(b), end(e) { }
- Token(const char* str)
- : prefix(str), begin(str), end(str + strlen(str)) { }
- Token(const char* p, const char* b, const char* e)
- : prefix(p), begin(b), end(e) { }
-
- size_t length() const { return end - begin; }
- std::string ws_before() const { return std::string(prefix, begin); }
- const std::string to_string() const { return std::string(begin, end); }
- std::string time_wspace() const {
- std::string str(to_string());
- std::string whitespaces(" \t\f\v\n\r");
- return str.erase(str.find_last_not_of(whitespaces)+1);
- }
-
- operator bool() { return begin && end && begin >= end; }
- operator std::string() { return to_string(); }
-
- bool operator==(Token t) { return to_string() == t.to_string(); }
- };
-
- class ParserState : public Position {
-
- public: // c-tor
- ParserState(const char* path, const char* src = 0, const size_t file = std::string::npos);
- ParserState(const char* path, const char* src, const Position& position, Offset offset = Offset(0, 0));
- ParserState(const char* path, const char* src, const Token& token, const Position& position, Offset offset = Offset(0, 0));
-
- public: // down casts
- Offset off() { return *this; }
- Position pos() { return *this; }
- ParserState pstate() { return *this; }
-
- public:
- const char* path;
- const char* src;
- Offset offset;
- Token token;
-
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/prelexer.cpp b/node_modules/node-sass/src/libsass/src/prelexer.cpp
deleted file mode 100644
index a43b1ee..0000000
--- a/node_modules/node-sass/src/libsass/src/prelexer.cpp
+++ /dev/null
@@ -1,1774 +0,0 @@
-#include "sass.hpp"
-#include <cctype>
-#include <iostream>
-#include <iomanip>
-#include "util.hpp"
-#include "position.hpp"
-#include "prelexer.hpp"
-#include "constants.hpp"
-
-
-namespace Sass {
- // using namespace Lexer;
- using namespace Constants;
-
- namespace Prelexer {
-
-
- /*
-
- def string_re(open, close)
- /#{open}((?:\\.|\#(?!\{)|[^#{close}\\#])*)(#{close}|#\{)/m
- end
- end
-
- # A hash of regular expressions that are used for tokenizing strings.
- #
- # The key is a `[Symbol, Boolean]` pair.
- # The symbol represents which style of quotation to use,
- # while the boolean represents whether or not the string
- # is following an interpolated segment.
- STRING_REGULAR_EXPRESSIONS = {
- :double => {
- /#{open}((?:\\.|\#(?!\{)|[^#{close}\\#])*)(#{close}|#\{)/m
- false => string_re('"', '"'),
- true => string_re('', '"')
- },
- :single => {
- false => string_re("'", "'"),
- true => string_re('', "'")
- },
- :uri => {
- false => /url\(#{W}(#{URLCHAR}*?)(#{W}\)|#\{)/,
- true => /(#{URLCHAR}*?)(#{W}\)|#\{)/
- },
- # Defined in https://developer.mozilla.org/en/CSS/@-moz-document as a
- # non-standard version of http://www.w3.org/TR/css3-conditional/
- :url_prefix => {
- false => /url-prefix\(#{W}(#{URLCHAR}*?)(#{W}\)|#\{)/,
- true => /(#{URLCHAR}*?)(#{W}\)|#\{)/
- },
- :domain => {
- false => /domain\(#{W}(#{URLCHAR}*?)(#{W}\)|#\{)/,
- true => /(#{URLCHAR}*?)(#{W}\)|#\{)/
- }
- }
- */
-
- /*
- /#{open}
- (
- \\.
- |
- \# (?!\{)
- |
- [^#{close}\\#]
- )*
- (#{close}|#\{)
- /m
- false => string_re('"', '"'),
- true => string_re('', '"')
- */
- extern const char string_double_negates[] = "\"\\#";
- const char* re_string_double_close(const char* src)
- {
- return sequence <
- // valid chars
- zero_plus <
- alternatives <
- // escaped char
- sequence <
- exactly <'\\'>,
- any_char
- >,
- // non interpolate hash
- sequence <
- exactly <'#'>,
- negate <
- exactly <'{'>
- >
- >,
- // other valid chars
- neg_class_char <
- string_double_negates
- >
- >
- >,
- // quoted string closer
- // or interpolate opening
- alternatives <
- exactly <'"'>,
- lookahead < exactly< hash_lbrace > >
- >
- >(src);
- }
-
- const char* re_string_double_open(const char* src)
- {
- return sequence <
- // quoted string opener
- exactly <'"'>,
- // valid chars
- zero_plus <
- alternatives <
- // escaped char
- sequence <
- exactly <'\\'>,
- any_char
- >,
- // non interpolate hash
- sequence <
- exactly <'#'>,
- negate <
- exactly <'{'>
- >
- >,
- // other valid chars
- neg_class_char <
- string_double_negates
- >
- >
- >,
- // quoted string closer
- // or interpolate opening
- alternatives <
- exactly <'"'>,
- lookahead < exactly< hash_lbrace > >
- >
- >(src);
- }
-
- extern const char string_single_negates[] = "'\\#";
- const char* re_string_single_close(const char* src)
- {
- return sequence <
- // valid chars
- zero_plus <
- alternatives <
- // escaped char
- sequence <
- exactly <'\\'>,
- any_char
- >,
- // non interpolate hash
- sequence <
- exactly <'#'>,
- negate <
- exactly <'{'>
- >
- >,
- // other valid chars
- neg_class_char <
- string_single_negates
- >
- >
- >,
- // quoted string closer
- // or interpolate opening
- alternatives <
- exactly <'\''>,
- lookahead < exactly< hash_lbrace > >
- >
- >(src);
- }
-
- const char* re_string_single_open(const char* src)
- {
- return sequence <
- // quoted string opener
- exactly <'\''>,
- // valid chars
- zero_plus <
- alternatives <
- // escaped char
- sequence <
- exactly <'\\'>,
- any_char
- >,
- // non interpolate hash
- sequence <
- exactly <'#'>,
- negate <
- exactly <'{'>
- >
- >,
- // other valid chars
- neg_class_char <
- string_single_negates
- >
- >
- >,
- // quoted string closer
- // or interpolate opening
- alternatives <
- exactly <'\''>,
- lookahead < exactly< hash_lbrace > >
- >
- >(src);
- }
-
- /*
- :uri => {
- false => /url\(#{W}(#{URLCHAR}*?)(#{W}\)|#\{)/,
- true => /(#{URLCHAR}*?)(#{W}\)|#\{)/
- },
- */
- const char* re_string_uri_close(const char* src)
- {
- return sequence <
- non_greedy<
- alternatives<
- class_char< real_uri_chars >,
- uri_character,
- NONASCII,
- ESCAPE
- >,
- alternatives<
- sequence < optional < W >, exactly <')'> >,
- lookahead < exactly< hash_lbrace > >
- >
- >,
- optional <
- sequence < optional < W >, exactly <')'> >
- >
- >(src);
- }
-
- const char* re_string_uri_open(const char* src)
- {
- return sequence <
- exactly <'u'>,
- exactly <'r'>,
- exactly <'l'>,
- exactly <'('>,
- W,
- alternatives<
- quoted_string,
- non_greedy<
- alternatives<
- class_char< real_uri_chars >,
- uri_character,
- NONASCII,
- ESCAPE
- >,
- alternatives<
- sequence < W, exactly <')'> >,
- exactly< hash_lbrace >
- >
- >
- >
- >(src);
- }
-
- // Match a line comment (/.*?(?=\n|\r\n?|\Z)/.
- const char* line_comment(const char* src)
- {
- return sequence<
- exactly <
- slash_slash
- >,
- non_greedy<
- any_char,
- end_of_line
- >
- >(src);
- }
-
- // Match a block comment.
- const char* block_comment(const char* src)
- {
- return sequence<
- delimited_by<
- slash_star,
- star_slash,
- false
- >
- >(src);
- }
- /* not use anymore - remove?
- const char* block_comment_prefix(const char* src) {
- return exactly<slash_star>(src);
- }
- // Match either comment.
- const char* comment(const char* src) {
- return line_comment(src);
- }
- */
-
- // Match zero plus white-space or line_comments
- const char* optional_css_whitespace(const char* src) {
- return zero_plus< alternatives<spaces, line_comment> >(src);
- }
- const char* css_whitespace(const char* src) {
- return one_plus< alternatives<spaces, line_comment> >(src);
- }
- // Match optional_css_whitepace plus block_comments
- const char* optional_css_comments(const char* src) {
- return zero_plus< alternatives<spaces, line_comment, block_comment> >(src);
- }
- const char* css_comments(const char* src) {
- return one_plus< alternatives<spaces, line_comment, block_comment> >(src);
- }
-
- // Match one backslash escaped char /\\./
- const char* escape_seq(const char* src)
- {
- return sequence<
- exactly<'\\'>,
- alternatives <
- minmax_range<
- 1, 3, xdigit
- >,
- any_char
- >,
- optional <
- exactly <' '>
- >
- >(src);
- }
-
- // Match identifier start
- const char* identifier_alpha(const char* src)
- {
- return alternatives<
- unicode_seq,
- alpha,
- unicode,
- exactly<'-'>,
- exactly<'_'>,
- NONASCII,
- ESCAPE,
- escape_seq
- >(src);
- }
-
- // Match identifier after start
- const char* identifier_alnum(const char* src)
- {
- return alternatives<
- unicode_seq,
- alnum,
- unicode,
- exactly<'-'>,
- exactly<'_'>,
- NONASCII,
- ESCAPE,
- escape_seq
- >(src);
- }
-
- // Match CSS identifiers.
- const char* strict_identifier(const char* src)
- {
- return sequence<
- one_plus < strict_identifier_alpha >,
- zero_plus < strict_identifier_alnum >
- // word_boundary not needed
- >(src);
- }
-
- // Match CSS identifiers.
- const char* identifier(const char* src)
- {
- return sequence<
- zero_plus< exactly<'-'> >,
- one_plus < identifier_alpha >,
- zero_plus < identifier_alnum >
- // word_boundary not needed
- >(src);
- }
-
- const char* strict_identifier_alpha(const char* src)
- {
- return alternatives <
- alpha,
- unicode,
- escape_seq,
- exactly<'_'>
- >(src);
- }
-
- const char* strict_identifier_alnum(const char* src)
- {
- return alternatives <
- alnum,
- unicode,
- escape_seq,
- exactly<'_'>
- >(src);
- }
-
- // Match a single CSS unit
- const char* one_unit(const char* src)
- {
- return sequence <
- optional < exactly <'-'> >,
- strict_identifier_alpha,
- zero_plus < alternatives<
- strict_identifier_alnum,
- sequence <
- one_plus < exactly<'-'> >,
- strict_identifier_alpha
- >
- > >
- >(src);
- }
-
- // Match numerator/denominator CSS units
- const char* multiple_units(const char* src)
- {
- return
- sequence <
- one_unit,
- zero_plus <
- sequence <
- exactly <'*'>,
- one_unit
- >
- >
- >(src);
- }
-
- // Match complex CSS unit identifiers
- const char* unit_identifier(const char* src)
- {
- return sequence <
- multiple_units,
- optional <
- sequence <
- exactly <'/'>,
- negate < sequence <
- exactly < calc_fn_kwd >,
- exactly < '(' >
- > >,
- multiple_units
- > >
- >(src);
- }
-
- const char* identifier_alnums(const char* src)
- {
- return one_plus< identifier_alnum >(src);
- }
-
- // Match number prefix ([\+\-]+)
- const char* number_prefix(const char* src) {
- return alternatives <
- exactly < '+' >,
- sequence <
- exactly < '-' >,
- optional_css_whitespace,
- exactly< '-' >
- >
- >(src);
- }
-
- // Match interpolant schemas
- const char* identifier_schema(const char* src) {
-
- return sequence <
- one_plus <
- sequence <
- zero_plus <
- alternatives <
- sequence <
- optional <
- exactly <'$'>
- >,
- identifier
- >,
- exactly <'-'>
- >
- >,
- interpolant,
- zero_plus <
- alternatives <
- digits,
- sequence <
- optional <
- exactly <'$'>
- >,
- identifier
- >,
- quoted_string,
- exactly<'-'>
- >
- >
- >
- >,
- negate <
- exactly<'%'>
- >
- > (src);
- }
-
- // interpolants can be recursive/nested
- const char* interpolant(const char* src) {
- return recursive_scopes< exactly<hash_lbrace>, exactly<rbrace> >(src);
- }
-
- // $re_squote = /'(?:$re_itplnt|\\.|[^'])*'/
- const char* single_quoted_string(const char* src) {
- // match a single quoted string, while skipping interpolants
- return sequence <
- exactly <'\''>,
- zero_plus <
- alternatives <
- // skip escapes
- sequence <
- exactly < '\\' >,
- re_linebreak
- >,
- escape_seq,
- unicode_seq,
- // skip interpolants
- interpolant,
- // skip non delimiters
- any_char_but < '\'' >
- >
- >,
- exactly <'\''>
- >(src);
- }
-
- // $re_dquote = /"(?:$re_itp|\\.|[^"])*"/
- const char* double_quoted_string(const char* src) {
- // match a single quoted string, while skipping interpolants
- return sequence <
- exactly <'"'>,
- zero_plus <
- alternatives <
- // skip escapes
- sequence <
- exactly < '\\' >,
- re_linebreak
- >,
- escape_seq,
- unicode_seq,
- // skip interpolants
- interpolant,
- // skip non delimiters
- any_char_but < '"' >
- >
- >,
- exactly <'"'>
- >(src);
- }
-
- // $re_quoted = /(?:$re_squote|$re_dquote)/
- const char* quoted_string(const char* src) {
- // match a quoted string, while skipping interpolants
- return alternatives<
- single_quoted_string,
- double_quoted_string
- >(src);
- }
-
- const char* sass_value(const char* src) {
- return alternatives <
- quoted_string,
- identifier,
- percentage,
- hex,
- dimension,
- number
- >(src);
- }
-
- // this is basically `one_plus < sass_value >`
- // takes care to not parse invalid combinations
- const char* value_combinations(const char* src) {
- // `2px-2px` is invalid combo
- bool was_number = false;
- const char* pos;
- while (src) {
- if ((pos = alternatives < quoted_string, identifier, percentage, hex >(src))) {
- was_number = false;
- src = pos;
- } else if (!was_number && !exactly<'+'>(src) && (pos = alternatives < dimension, number >(src))) {
- was_number = true;
- src = pos;
- } else {
- break;
- }
- }
- return src;
- }
-
- // must be at least one interpolant
- // can be surrounded by sass values
- // make sure to never parse (dim)(dim)
- // since this wrongly consumes `2px-1px`
- // `2px1px` is valid number (unit `px1px`)
- const char* value_schema(const char* src)
- {
- return sequence <
- one_plus <
- sequence <
- optional < value_combinations >,
- interpolant,
- optional < value_combinations >
- >
- >
- >(src);
- }
-
- // Match CSS '@' keywords.
- const char* at_keyword(const char* src) {
- return sequence<exactly<'@'>, identifier>(src);
- }
-
- /*
- tok(%r{
- (
- \\.
- |
- (?!url\()
- [^"'/\#!;\{\}] # "
- |
- /(?![\*\/])
- |
- \#(?!\{)
- |
- !(?![a-z]) # TODO: never consume "!" when issue 1126 is fixed.
- )+
- }xi) || tok(COMMENT) || tok(SINGLE_LINE_COMMENT) || interp_string || interp_uri ||
- interpolation(:warn_for_color)
- */
- const char* re_almost_any_value_token(const char* src) {
-
- return alternatives <
- one_plus <
- alternatives <
- sequence <
- exactly <'\\'>,
- any_char
- >,
- sequence <
- negate <
- uri_prefix
- >,
- neg_class_char <
- almost_any_value_class
- >
- >,
- sequence <
- exactly <'/'>,
- negate <
- alternatives <
- exactly <'/'>,
- exactly <'*'>
- >
- >
- >,
- sequence <
- exactly <'\\'>,
- exactly <'#'>,
- negate <
- exactly <'{'>
- >
- >,
- sequence <
- exactly <'!'>,
- negate <
- alpha
- >
- >
- >
- >,
- block_comment,
- line_comment,
- interpolant,
- space,
- sequence <
- exactly<'u'>,
- exactly<'r'>,
- exactly<'l'>,
- exactly<'('>,
- zero_plus <
- alternatives <
- class_char< real_uri_chars >,
- uri_character,
- NONASCII,
- ESCAPE
- >
- >,
- // false => /url\(#{W}(#{URLCHAR}*?)(#{W}\)|#\{)/,
- // true => /(#{URLCHAR}*?)(#{W}\)|#\{)/
- exactly<')'>
- >
- >(src);
- }
-
- /*
- DIRECTIVES = Set[:mixin, :include, :function, :return, :debug, :warn, :for,
- :each, :while, :if, :else, :extend, :import, :media, :charset, :content,
- :_moz_document, :at_root, :error]
- */
- const char* re_special_directive(const char* src) {
- return alternatives <
- word < mixin_kwd >,
- word < include_kwd >,
- word < function_kwd >,
- word < return_kwd >,
- word < debug_kwd >,
- word < warn_kwd >,
- word < for_kwd >,
- word < each_kwd >,
- word < while_kwd >,
- word < if_kwd >,
- word < else_kwd >,
- word < extend_kwd >,
- word < import_kwd >,
- word < media_kwd >,
- word < charset_kwd >,
- word < content_kwd >,
- // exactly < moz_document_kwd >,
- word < at_root_kwd >,
- word < error_kwd >
- >(src);
- }
-
- const char* re_prefixed_directive(const char* src) {
- return sequence <
- optional <
- sequence <
- exactly <'-'>,
- one_plus < alnum >,
- exactly <'-'>
- >
- >,
- exactly < supports_kwd >
- >(src);
- }
-
- const char* re_reference_combinator(const char* src) {
- return sequence <
- optional <
- sequence <
- zero_plus <
- exactly <'-'>
- >,
- identifier,
- exactly <'|'>
- >
- >,
- zero_plus <
- exactly <'-'>
- >,
- identifier
- >(src);
- }
-
- const char* static_reference_combinator(const char* src) {
- return sequence <
- exactly <'/'>,
- re_reference_combinator,
- exactly <'/'>
- >(src);
- }
-
- const char* schema_reference_combinator(const char* src) {
- return sequence <
- exactly <'/'>,
- optional <
- sequence <
- css_ip_identifier,
- exactly <'|'>
- >
- >,
- css_ip_identifier,
- exactly <'/'>
- > (src);
- }
-
- const char* kwd_import(const char* src) {
- return word<import_kwd>(src);
- }
-
- const char* kwd_at_root(const char* src) {
- return word<at_root_kwd>(src);
- }
-
- const char* kwd_with_directive(const char* src) {
- return word<with_kwd>(src);
- }
-
- const char* kwd_without_directive(const char* src) {
- return word<without_kwd>(src);
- }
-
- const char* kwd_media(const char* src) {
- return word<media_kwd>(src);
- }
-
- const char* kwd_supports_directive(const char* src) {
- return word<supports_kwd>(src);
- }
-
- const char* kwd_mixin(const char* src) {
- return word<mixin_kwd>(src);
- }
-
- const char* kwd_function(const char* src) {
- return word<function_kwd>(src);
- }
-
- const char* kwd_return_directive(const char* src) {
- return word<return_kwd>(src);
- }
-
- const char* kwd_include_directive(const char* src) {
- return word<include_kwd>(src);
- }
-
- const char* kwd_content_directive(const char* src) {
- return word<content_kwd>(src);
- }
-
- const char* kwd_charset_directive(const char* src) {
- return word<charset_kwd>(src);
- }
-
- const char* kwd_extend(const char* src) {
- return word<extend_kwd>(src);
- }
-
-
- const char* kwd_if_directive(const char* src) {
- return word<if_kwd>(src);
- }
-
- const char* kwd_else_directive(const char* src) {
- return word<else_kwd>(src);
- }
- const char* elseif_directive(const char* src) {
- return sequence< exactly< else_kwd >,
- optional_css_comments,
- word< if_after_else_kwd > >(src);
- }
-
- const char* kwd_for_directive(const char* src) {
- return word<for_kwd>(src);
- }
-
- const char* kwd_from(const char* src) {
- return word<from_kwd>(src);
- }
-
- const char* kwd_to(const char* src) {
- return word<to_kwd>(src);
- }
-
- const char* kwd_through(const char* src) {
- return word<through_kwd>(src);
- }
-
- const char* kwd_each_directive(const char* src) {
- return word<each_kwd>(src);
- }
-
- const char* kwd_in(const char* src) {
- return word<in_kwd>(src);
- }
-
- const char* kwd_while_directive(const char* src) {
- return word<while_kwd>(src);
- }
-
- const char* name(const char* src) {
- return one_plus< alternatives< alnum,
- exactly<'-'>,
- exactly<'_'>,
- escape_seq > >(src);
- }
-
- const char* kwd_warn(const char* src) {
- return word<warn_kwd>(src);
- }
-
- const char* kwd_err(const char* src) {
- return word<error_kwd>(src);
- }
-
- const char* kwd_dbg(const char* src) {
- return word<debug_kwd>(src);
- }
-
- /* not used anymore - remove?
- const char* directive(const char* src) {
- return sequence< exactly<'@'>, identifier >(src);
- } */
-
- const char* kwd_null(const char* src) {
- return word<null_kwd>(src);
- }
-
- const char* css_identifier(const char* src) {
- return sequence <
- zero_plus <
- exactly <'-'>
- >,
- identifier
- >(src);
- }
-
- const char* css_ip_identifier(const char* src) {
- return sequence <
- zero_plus <
- exactly <'-'>
- >,
- alternatives <
- identifier,
- interpolant
- >
- >(src);
- }
-
- // Match CSS type selectors
- const char* namespace_prefix(const char* src) {
- return sequence <
- optional <
- alternatives <
- exactly <'*'>,
- css_identifier
- >
- >,
- exactly <'|'>,
- negate <
- exactly <'='>
- >
- >(src);
- }
-
- // Match CSS type selectors
- const char* namespace_schema(const char* src) {
- return sequence <
- optional <
- alternatives <
- exactly <'*'>,
- css_ip_identifier
- >
- >,
- exactly<'|'>,
- negate <
- exactly <'='>
- >
- >(src);
- }
-
- const char* hyphens_and_identifier(const char* src) {
- return sequence< zero_plus< exactly< '-' > >, identifier_alnums >(src);
- }
- const char* hyphens_and_name(const char* src) {
- return sequence< zero_plus< exactly< '-' > >, name >(src);
- }
- const char* universal(const char* src) {
- return sequence< optional<namespace_schema>, exactly<'*'> >(src);
- }
- // Match CSS id names.
- const char* id_name(const char* src) {
- return sequence<exactly<'#'>, identifier_alnums >(src);
- }
- // Match CSS class names.
- const char* class_name(const char* src) {
- return sequence<exactly<'.'>, identifier >(src);
- }
- // Attribute name in an attribute selector.
- const char* attribute_name(const char* src) {
- return alternatives< sequence< optional<namespace_schema>, identifier>,
- identifier >(src);
- }
- // match placeholder selectors
- const char* placeholder(const char* src) {
- return sequence<exactly<'%'>, identifier_alnums >(src);
- }
- // Match CSS numeric constants.
-
- const char* op(const char* src) {
- return class_char<op_chars>(src);
- }
- const char* sign(const char* src) {
- return class_char<sign_chars>(src);
- }
- const char* unsigned_number(const char* src) {
- return alternatives<sequence< zero_plus<digits>,
- exactly<'.'>,
- one_plus<digits> >,
- digits>(src);
- }
- const char* number(const char* src) {
- return sequence<
- optional<sign>,
- unsigned_number,
- optional<
- sequence<
- exactly<'e'>,
- optional<sign>,
- unsigned_number
- >
- >
- >(src);
- }
- const char* coefficient(const char* src) {
- return alternatives< sequence< optional<sign>, digits >,
- sign >(src);
- }
- const char* binomial(const char* src) {
- return sequence <
- optional < sign >,
- optional < digits >,
- exactly <'n'>,
- zero_plus < sequence <
- optional_css_whitespace, sign,
- optional_css_whitespace, digits
- > >
- >(src);
- }
- const char* percentage(const char* src) {
- return sequence< number, exactly<'%'> >(src);
- }
- const char* ampersand(const char* src) {
- return exactly<'&'>(src);
- }
-
- /* not used anymore - remove?
- const char* em(const char* src) {
- return sequence< number, exactly<em_kwd> >(src);
- } */
- const char* dimension(const char* src) {
- return sequence<number, unit_identifier >(src);
- }
- const char* hex(const char* src) {
- const char* p = sequence< exactly<'#'>, one_plus<xdigit> >(src);
- ptrdiff_t len = p - src;
- return (len != 4 && len != 7) ? 0 : p;
- }
- const char* hexa(const char* src) {
- const char* p = sequence< exactly<'#'>, one_plus<xdigit> >(src);
- ptrdiff_t len = p - src;
- return (len != 5 && len != 9) ? 0 : p;
- }
- const char* hex0(const char* src) {
- const char* p = sequence< exactly<'0'>, exactly<'x'>, one_plus<xdigit> >(src);
- ptrdiff_t len = p - src;
- return (len != 5 && len != 8) ? 0 : p;
- }
-
- /* no longer used - remove?
- const char* rgb_prefix(const char* src) {
- return word<rgb_fn_kwd>(src);
- }*/
- // Match CSS uri specifiers.
-
- const char* uri_prefix(const char* src) {
- return sequence <
- exactly <
- url_kwd
- >,
- zero_plus <
- sequence <
- exactly <'-'>,
- one_plus <
- alpha
- >
- >
- >,
- exactly <'('>
- >(src);
- }
-
- // TODO: rename the following two functions
- /* no longer used - remove?
- const char* uri(const char* src) {
- return sequence< exactly<url_kwd>,
- optional<spaces>,
- quoted_string,
- optional<spaces>,
- exactly<')'> >(src);
- }*/
- /* no longer used - remove?
- const char* url_value(const char* src) {
- return sequence< optional< sequence< identifier, exactly<':'> > >, // optional protocol
- one_plus< sequence< zero_plus< exactly<'/'> >, filename > >, // one or more folders and/or trailing filename
- optional< exactly<'/'> > >(src);
- }*/
- /* no longer used - remove?
- const char* url_schema(const char* src) {
- return sequence< optional< sequence< identifier, exactly<':'> > >, // optional protocol
- filename_schema >(src); // optional trailing slash
- }*/
- // Match CSS "!important" keyword.
- const char* kwd_important(const char* src) {
- return sequence< exactly<'!'>,
- optional_css_whitespace,
- word<important_kwd> >(src);
- }
- // Match CSS "!optional" keyword.
- const char* kwd_optional(const char* src) {
- return sequence< exactly<'!'>,
- optional_css_whitespace,
- word<optional_kwd> >(src);
- }
- // Match Sass "!default" keyword.
- const char* default_flag(const char* src) {
- return sequence< exactly<'!'>,
- optional_css_whitespace,
- word<default_kwd> >(src);
- }
- // Match Sass "!global" keyword.
- const char* global_flag(const char* src) {
- return sequence< exactly<'!'>,
- optional_css_whitespace,
- word<global_kwd> >(src);
- }
- // Match CSS pseudo-class/element prefixes.
- const char* pseudo_prefix(const char* src) {
- return sequence< exactly<':'>, optional< exactly<':'> > >(src);
- }
- // Match CSS function call openers.
- const char* functional_schema(const char* src) {
- return sequence <
- one_plus <
- sequence <
- zero_plus <
- alternatives <
- identifier,
- exactly <'-'>
- >
- >,
- one_plus <
- sequence <
- interpolant,
- alternatives <
- digits,
- identifier,
- exactly<'+'>,
- exactly<'-'>
- >
- >
- >
- >
- >,
- negate <
- exactly <'%'>
- >,
- lookahead <
- exactly <'('>
- >
- > (src);
- }
-
- const char* re_nothing(const char* src) {
- return src;
- }
-
- const char* re_functional(const char* src) {
- return sequence< identifier, optional < block_comment >, exactly<'('> >(src);
- }
- const char* re_pseudo_selector(const char* src) {
- return sequence< identifier, optional < block_comment >, exactly<'('> >(src);
- }
- // Match the CSS negation pseudo-class.
- const char* pseudo_not(const char* src) {
- return word< pseudo_not_fn_kwd >(src);
- }
- // Match CSS 'odd' and 'even' keywords for functional pseudo-classes.
- const char* even(const char* src) {
- return word<even_kwd>(src);
- }
- const char* odd(const char* src) {
- return word<odd_kwd>(src);
- }
- // Match CSS attribute-matching operators.
- const char* exact_match(const char* src) { return exactly<'='>(src); }
- const char* class_match(const char* src) { return exactly<tilde_equal>(src); }
- const char* dash_match(const char* src) { return exactly<pipe_equal>(src); }
- const char* prefix_match(const char* src) { return exactly<caret_equal>(src); }
- const char* suffix_match(const char* src) { return exactly<dollar_equal>(src); }
- const char* substring_match(const char* src) { return exactly<star_equal>(src); }
- // Match CSS combinators.
- /* not used anymore - remove?
- const char* adjacent_to(const char* src) {
- return sequence< optional_spaces, exactly<'+'> >(src);
- }
- const char* precedes(const char* src) {
- return sequence< optional_spaces, exactly<'~'> >(src);
- }
- const char* parent_of(const char* src) {
- return sequence< optional_spaces, exactly<'>'> >(src);
- }
- const char* ancestor_of(const char* src) {
- return sequence< spaces, negate< exactly<'{'> > >(src);
- }*/
-
- // Match SCSS variable names.
- const char* variable(const char* src) {
- return sequence<exactly<'$'>, identifier>(src);
- }
-
- // parse `calc`, `-a-calc` and `--b-c-calc`
- // but do not parse `foocalc` or `foo-calc`
- const char* calc_fn_call(const char* src) {
- return sequence <
- optional < sequence <
- hyphens,
- one_plus < sequence <
- strict_identifier,
- hyphens
- > >
- > >,
- exactly < calc_fn_kwd >,
- word_boundary
- >(src);
- }
-
- // Match Sass boolean keywords.
- const char* kwd_true(const char* src) {
- return word<true_kwd>(src);
- }
- const char* kwd_false(const char* src) {
- return word<false_kwd>(src);
- }
- const char* kwd_only(const char* src) {
- return keyword < only_kwd >(src);
- }
- const char* kwd_and(const char* src) {
- return keyword < and_kwd >(src);
- }
- const char* kwd_or(const char* src) {
- return keyword < or_kwd >(src);
- }
- const char* kwd_not(const char* src) {
- return keyword < not_kwd >(src);
- }
- const char* kwd_eq(const char* src) {
- return exactly<eq>(src);
- }
- const char* kwd_neq(const char* src) {
- return exactly<neq>(src);
- }
- const char* kwd_gt(const char* src) {
- return exactly<gt>(src);
- }
- const char* kwd_gte(const char* src) {
- return exactly<gte>(src);
- }
- const char* kwd_lt(const char* src) {
- return exactly<lt>(src);
- }
- const char* kwd_lte(const char* src) {
- return exactly<lte>(src);
- }
-
- // match specific IE syntax
- const char* ie_progid(const char* src) {
- return sequence <
- word<progid_kwd>,
- exactly<':'>,
- alternatives< identifier_schema, identifier >,
- zero_plus< sequence<
- exactly<'.'>,
- alternatives< identifier_schema, identifier >
- > >,
- zero_plus < sequence<
- exactly<'('>,
- optional_css_whitespace,
- optional < sequence<
- alternatives< variable, identifier_schema, identifier >,
- optional_css_whitespace,
- exactly<'='>,
- optional_css_whitespace,
- alternatives< variable, identifier_schema, identifier, quoted_string, number, hex, hexa >,
- zero_plus< sequence<
- optional_css_whitespace,
- exactly<','>,
- optional_css_whitespace,
- sequence<
- alternatives< variable, identifier_schema, identifier >,
- optional_css_whitespace,
- exactly<'='>,
- optional_css_whitespace,
- alternatives< variable, identifier_schema, identifier, quoted_string, number, hex, hexa >
- >
- > >
- > >,
- optional_css_whitespace,
- exactly<')'>
- > >
- >(src);
- }
- const char* ie_expression(const char* src) {
- return sequence < word<expression_kwd>, exactly<'('>, skip_over_scopes< exactly<'('>, exactly<')'> > >(src);
- }
- const char* ie_property(const char* src) {
- return alternatives < ie_expression, ie_progid >(src);
- }
-
- // const char* ie_args(const char* src) {
- // return sequence< alternatives< ie_keyword_arg, value_schema, quoted_string, interpolant, number, identifier, delimited_by< '(', ')', true> >,
- // zero_plus< sequence< optional_css_whitespace, exactly<','>, optional_css_whitespace, alternatives< ie_keyword_arg, value_schema, quoted_string, interpolant, number, identifier, delimited_by<'(', ')', true> > > > >(src);
- // }
-
- const char* ie_keyword_arg_property(const char* src) {
- return alternatives <
- variable,
- identifier_schema,
- identifier
- >(src);
- }
- const char* ie_keyword_arg_value(const char* src) {
- return alternatives <
- variable,
- identifier_schema,
- identifier,
- quoted_string,
- number,
- hex,
- hexa,
- sequence <
- exactly < '(' >,
- skip_over_scopes <
- exactly < '(' >,
- exactly < ')' >
- >
- >
- >(src);
- }
-
- const char* ie_keyword_arg(const char* src) {
- return sequence <
- ie_keyword_arg_property,
- optional_css_whitespace,
- exactly<'='>,
- optional_css_whitespace,
- ie_keyword_arg_value
- >(src);
- }
-
- // Path matching functions.
- /* not used anymore - remove?
- const char* folder(const char* src) {
- return sequence< zero_plus< any_char_except<'/'> >,
- exactly<'/'> >(src);
- }
- const char* folders(const char* src) {
- return zero_plus< folder >(src);
- }*/
- /* not used anymore - remove?
- const char* chunk(const char* src) {
- char inside_str = 0;
- const char* p = src;
- size_t depth = 0;
- while (true) {
- if (!*p) {
- return 0;
- }
- else if (!inside_str && (*p == '"' || *p == '\'')) {
- inside_str = *p;
- }
- else if (*p == inside_str && *(p-1) != '\\') {
- inside_str = 0;
- }
- else if (*p == '(' && !inside_str) {
- ++depth;
- }
- else if (*p == ')' && !inside_str) {
- if (depth == 0) return p;
- else --depth;
- }
- ++p;
- }
- // unreachable
- return 0;
- }
- */
-
- // follow the CSS spec more closely and see if this helps us scan URLs correctly
- /* not used anymore - remove?
- const char* NL(const char* src) {
- return alternatives< exactly<'\n'>,
- sequence< exactly<'\r'>, exactly<'\n'> >,
- exactly<'\r'>,
- exactly<'\f'> >(src);
- }*/
-
- const char* H(const char* src) {
- return std::isxdigit(*src) ? src+1 : 0;
- }
-
- const char* W(const char* src) {
- return zero_plus< alternatives<
- space,
- exactly< '\t' >,
- exactly< '\r' >,
- exactly< '\n' >,
- exactly< '\f' >
- > >(src);
- }
-
- const char* UUNICODE(const char* src) {
- return sequence< exactly<'\\'>,
- between<H, 1, 6>,
- optional< W >
- >(src);
- }
-
- const char* NONASCII(const char* src) {
- return nonascii(src);
- }
-
- const char* ESCAPE(const char* src) {
- return alternatives<
- UUNICODE,
- sequence<
- exactly<'\\'>,
- alternatives<
- NONASCII,
- escapable_character
- >
- >
- >(src);
- }
-
- const char* list_terminator(const char* src) {
- return alternatives <
- exactly<';'>,
- exactly<'}'>,
- exactly<'{'>,
- exactly<')'>,
- exactly<']'>,
- exactly<':'>,
- end_of_file,
- exactly<ellipsis>,
- default_flag,
- global_flag
- >(src);
- };
-
- const char* space_list_terminator(const char* src) {
- return alternatives <
- exactly<','>,
- list_terminator
- >(src);
- };
-
-
- // const char* real_uri_prefix(const char* src) {
- // return alternatives<
- // exactly< url_kwd >,
- // exactly< url_prefix_kwd >
- // >(src);
- // }
-
- const char* real_uri(const char* src) {
- return sequence<
- exactly< url_kwd >,
- exactly< '(' >,
- W,
- real_uri_value,
- exactly< ')' >
- >(src);
- }
-
- const char* real_uri_suffix(const char* src) {
- return sequence< W, exactly< ')' > >(src);
- }
-
- const char* real_uri_value(const char* src) {
- return
- sequence<
- non_greedy<
- alternatives<
- class_char< real_uri_chars >,
- uri_character,
- NONASCII,
- ESCAPE
- >,
- alternatives<
- real_uri_suffix,
- exactly< hash_lbrace >
- >
- >
- >
- (src);
- }
-
- const char* static_string(const char* src) {
- const char* pos = src;
- const char * s = quoted_string(pos);
- Token t(pos, s);
- const unsigned int p = count_interval< interpolant >(t.begin, t.end);
- return (p == 0) ? t.end : 0;
- }
-
- const char* unicode_seq(const char* src) {
- return sequence <
- alternatives <
- exactly< 'U' >,
- exactly< 'u' >
- >,
- exactly< '+' >,
- padded_token <
- 6, xdigit,
- exactly < '?' >
- >
- >(src);
- }
-
- const char* static_component(const char* src) {
- return alternatives< identifier,
- static_string,
- percentage,
- hex,
- hexa,
- exactly<'|'>,
- // exactly<'+'>,
- sequence < number, unit_identifier >,
- number,
- sequence< exactly<'!'>, word<important_kwd> >
- >(src);
- }
-
- const char* static_property(const char* src) {
- return
- sequence <
- zero_plus<
- sequence <
- optional_css_comments,
- alternatives <
- exactly<','>,
- exactly<'('>,
- exactly<')'>,
- kwd_optional,
- quoted_string,
- interpolant,
- identifier,
- percentage,
- dimension,
- variable,
- alnum,
- sequence <
- exactly <'\\'>,
- any_char
- >
- >
- >
- >,
- lookahead <
- sequence <
- optional_css_comments,
- alternatives <
- exactly <';'>,
- exactly <'}'>,
- end_of_file
- >
- >
- >
- >(src);
- }
-
- const char* static_value(const char* src) {
- return sequence< sequence<
- static_component,
- zero_plus< identifier >
- >,
- zero_plus < sequence<
- alternatives<
- sequence< optional_spaces, alternatives<
- exactly < '/' >,
- exactly < ',' >,
- exactly < ' ' >
- >, optional_spaces >,
- spaces
- >,
- static_component
- > >,
- zero_plus < spaces >,
- alternatives< exactly<';'>, exactly<'}'> >
- >(src);
- }
-
- extern const char css_variable_url_negates[] = "()[]{}\"'#/";
- const char* css_variable_value(const char* src) {
- return sequence<
- alternatives<
- sequence<
- negate< exactly< url_fn_kwd > >,
- one_plus< neg_class_char< css_variable_url_negates > >
- >,
- sequence< exactly<'#'>, negate< exactly<'{'> > >,
- sequence< exactly<'/'>, negate< exactly<'*'> > >,
- static_string,
- real_uri,
- block_comment
- >
- >(src);
- }
-
- extern const char css_variable_url_top_level_negates[] = "()[]{}\"'#/;";
- const char* css_variable_top_level_value(const char* src) {
- return sequence<
- alternatives<
- sequence<
- negate< exactly< url_fn_kwd > >,
- one_plus< neg_class_char< css_variable_url_top_level_negates > >
- >,
- sequence< exactly<'#'>, negate< exactly<'{'> > >,
- sequence< exactly<'/'>, negate< exactly<'*'> > >,
- static_string,
- real_uri,
- block_comment
- >
- >(src);
- }
-
- const char* parenthese_scope(const char* src) {
- return sequence <
- exactly < '(' >,
- skip_over_scopes <
- exactly < '(' >,
- exactly < ')' >
- >
- >(src);
- }
-
- const char* re_selector_list(const char* src) {
- return alternatives <
- // partial bem selector
- sequence <
- ampersand,
- one_plus <
- exactly < '-' >
- >,
- word_boundary,
- optional_spaces
- >,
- // main selector matching
- one_plus <
- alternatives <
- // consume whitespace and comments
- spaces, block_comment, line_comment,
- // match `/deep/` selector (pass-trough)
- // there is no functionality for it yet
- schema_reference_combinator,
- // match selector ops /[*&%,\[\]]/
- class_char < selector_lookahead_ops >,
- // match selector combinators /[>+~]/
- class_char < selector_combinator_ops >,
- // match pseudo selectors
- sequence <
- exactly <'('>,
- optional_spaces,
- optional <re_selector_list>,
- optional_spaces,
- exactly <')'>
- >,
- // match attribute compare operators
- alternatives <
- exact_match, class_match, dash_match,
- prefix_match, suffix_match, substring_match
- >,
- // main selector match
- sequence <
- // allow namespace prefix
- optional < namespace_schema >,
- // modifiers prefixes
- alternatives <
- sequence <
- exactly <'#'>,
- // not for interpolation
- negate < exactly <'{'> >
- >,
- // class match
- exactly <'.'>,
- // single or double colon
- sequence <
- optional < pseudo_prefix >,
- // fix libsass issue 2376
- negate < uri_prefix >
- >
- >,
- // accept hypens in token
- one_plus < sequence <
- // can start with hyphens
- zero_plus <
- sequence <
- exactly <'-'>,
- optional_spaces
- >
- >,
- // now the main token
- alternatives <
- kwd_optional,
- exactly <'*'>,
- quoted_string,
- interpolant,
- identifier,
- variable,
- percentage,
- binomial,
- dimension,
- alnum
- >
- > >,
- // can also end with hyphens
- zero_plus < exactly<'-'> >
- >
- >
- >
- >(src);
- }
-
- const char* type_selector(const char* src) {
- return sequence< optional<namespace_schema>, identifier>(src);
- }
- const char* re_type_selector(const char* src) {
- return alternatives< type_selector, universal, dimension, percentage, number, identifier_alnums >(src);
- }
- const char* re_static_expression(const char* src) {
- return sequence< number, optional_spaces, exactly<'/'>, optional_spaces, number >(src);
- }
-
- // lexer special_fn: these functions cannot be overloaded
- // (/((-[\w-]+-)?(calc|element)|expression|progid:[a-z\.]*)\(/i)
- const char* re_special_fun(const char* src) {
-
- // match this first as we test prefix hyphens
- if (const char* calc = calc_fn_call(src)) {
- return calc;
- }
-
- return sequence <
- optional <
- sequence <
- exactly <'-'>,
- one_plus <
- alternatives <
- alpha,
- exactly <'+'>,
- exactly <'-'>
- >
- >
- >
- >,
- alternatives <
- word < expression_kwd >,
- sequence <
- sequence <
- exactly < progid_kwd >,
- exactly <':'>
- >,
- zero_plus <
- alternatives <
- char_range <'a', 'z'>,
- exactly <'.'>
- >
- >
- >
- >
- >(src);
- }
-
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/prelexer.hpp b/node_modules/node-sass/src/libsass/src/prelexer.hpp
deleted file mode 100644
index 2d8f831..0000000
--- a/node_modules/node-sass/src/libsass/src/prelexer.hpp
+++ /dev/null
@@ -1,484 +0,0 @@
-#ifndef SASS_PRELEXER_H
-#define SASS_PRELEXER_H
-
-#include <cstring>
-#include "lexer.hpp"
-
-namespace Sass {
- // using namespace Lexer;
- namespace Prelexer {
-
- //####################################
- // KEYWORD "REGEX" MATCHERS
- //####################################
-
- // Match Sass boolean keywords.
- const char* kwd_true(const char* src);
- const char* kwd_false(const char* src);
- const char* kwd_only(const char* src);
- const char* kwd_and(const char* src);
- const char* kwd_or(const char* src);
- const char* kwd_not(const char* src);
- const char* kwd_eq(const char* src);
- const char* kwd_neq(const char* src);
- const char* kwd_gt(const char* src);
- const char* kwd_gte(const char* src);
- const char* kwd_lt(const char* src);
- const char* kwd_lte(const char* src);
-
- // Match standard control chars
- const char* kwd_at(const char* src);
- const char* kwd_dot(const char* src);
- const char* kwd_comma(const char* src);
- const char* kwd_colon(const char* src);
- const char* kwd_slash(const char* src);
- const char* kwd_star(const char* src);
- const char* kwd_plus(const char* src);
- const char* kwd_minus(const char* src);
-
- //####################################
- // SPECIAL "REGEX" CONSTRUCTS
- //####################################
-
- // Match a sequence of characters delimited by the supplied chars.
- template <char beg, char end, bool esc>
- const char* delimited_by(const char* src) {
- src = exactly<beg>(src);
- if (!src) return 0;
- const char* stop;
- while (true) {
- if (!*src) return 0;
- stop = exactly<end>(src);
- if (stop && (!esc || *(src - 1) != '\\')) return stop;
- src = stop ? stop : src + 1;
- }
- }
-
- // skip to delimiter (mx) inside given range
- // this will savely skip over all quoted strings
- // recursive skip stuff delimited by start/stop
- // first start/opener must be consumed already!
- template<prelexer start, prelexer stop>
- const char* skip_over_scopes(const char* src, const char* end) {
-
- size_t level = 0;
- bool in_squote = false;
- bool in_dquote = false;
- // bool in_braces = false;
-
- while (*src) {
-
- // check for abort condition
- if (end && src >= end) break;
-
- // has escaped sequence?
- if (*src == '\\') {
- ++ src; // skip this (and next)
- }
- else if (*src == '"') {
- in_dquote = ! in_dquote;
- }
- else if (*src == '\'') {
- in_squote = ! in_squote;
- }
- else if (in_dquote || in_squote) {
- // take everything literally
- }
-
- // find another opener inside?
- else if (const char* pos = start(src)) {
- ++ level; // increase counter
- src = pos - 1; // advance position
- }
-
- // look for the closer (maybe final, maybe not)
- else if (const char* final = stop(src)) {
- // only close one level?
- if (level > 0) -- level;
- // return position at end of stop
- // delimiter may be multiple chars
- else return final;
- // advance position
- src = final - 1;
- }
-
- // next
- ++ src;
- }
-
- return 0;
- }
-
- // skip to a skip delimited by parentheses
- // uses smart `skip_over_scopes` internally
- const char* parenthese_scope(const char* src);
-
- // skip to delimiter (mx) inside given range
- // this will savely skip over all quoted strings
- // recursive skip stuff delimited by start/stop
- // first start/opener must be consumed already!
- template<prelexer start, prelexer stop>
- const char* skip_over_scopes(const char* src) {
- return skip_over_scopes<start, stop>(src, 0);
- }
-
- // Match a sequence of characters delimited by the supplied chars.
- template <prelexer start, prelexer stop>
- const char* recursive_scopes(const char* src) {
- // parse opener
- src = start(src);
- // abort if not found
- if (!src) return 0;
- // parse the rest until final closer
- return skip_over_scopes<start, stop>(src);
- }
-
- // Match a sequence of characters delimited by the supplied strings.
- template <const char* beg, const char* end, bool esc>
- const char* delimited_by(const char* src) {
- src = exactly<beg>(src);
- if (!src) return 0;
- const char* stop;
- while (true) {
- if (!*src) return 0;
- stop = exactly<end>(src);
- if (stop && (!esc || *(src - 1) != '\\')) return stop;
- src = stop ? stop : src + 1;
- }
- }
-
- // Tries to match a certain number of times (between the supplied interval).
- template<prelexer mx, size_t lo, size_t hi>
- const char* between(const char* src) {
- for (size_t i = 0; i < lo; ++i) {
- src = mx(src);
- if (!src) return 0;
- }
- for (size_t i = lo; i <= hi; ++i) {
- const char* new_src = mx(src);
- if (!new_src) return src;
- src = new_src;
- }
- return src;
- }
-
- // equivalent of STRING_REGULAR_EXPRESSIONS
- const char* re_string_double_open(const char* src);
- const char* re_string_double_close(const char* src);
- const char* re_string_single_open(const char* src);
- const char* re_string_single_close(const char* src);
- const char* re_string_uri_open(const char* src);
- const char* re_string_uri_close(const char* src);
-
- // Match a line comment.
- const char* line_comment(const char* src);
-
- // Match a block comment.
- const char* block_comment(const char* src);
- // Match either.
- const char* comment(const char* src);
- // Match double- and single-quoted strings.
- const char* double_quoted_string(const char* src);
- const char* single_quoted_string(const char* src);
- const char* quoted_string(const char* src);
- // Match interpolants.
- const char* interpolant(const char* src);
- // Match number prefix ([\+\-]+)
- const char* number_prefix(const char* src);
-
- // Match zero plus white-space or line_comments
- const char* optional_css_whitespace(const char* src);
- const char* css_whitespace(const char* src);
- // Match optional_css_whitepace plus block_comments
- const char* optional_css_comments(const char* src);
- const char* css_comments(const char* src);
-
- // Match one backslash escaped char
- const char* escape_seq(const char* src);
-
- // Match CSS css variables.
- const char* custom_property_name(const char* src);
- // Match a CSS identifier.
- const char* identifier(const char* src);
- const char* identifier_alpha(const char* src);
- const char* identifier_alnum(const char* src);
- const char* strict_identifier(const char* src);
- const char* strict_identifier_alpha(const char* src);
- const char* strict_identifier_alnum(const char* src);
- // Match a CSS unit identifier.
- const char* one_unit(const char* src);
- const char* multiple_units(const char* src);
- const char* unit_identifier(const char* src);
- // const char* strict_identifier_alnums(const char* src);
- // Match reference selector.
- const char* re_reference_combinator(const char* src);
- const char* static_reference_combinator(const char* src);
- const char* schema_reference_combinator(const char* src);
-
- // Match interpolant schemas
- const char* identifier_schema(const char* src);
- const char* value_schema(const char* src);
- const char* sass_value(const char* src);
- // const char* filename(const char* src);
- // const char* filename_schema(const char* src);
- // const char* url_schema(const char* src);
- // const char* url_value(const char* src);
- const char* vendor_prefix(const char* src);
-
- const char* re_special_directive(const char* src);
- const char* re_prefixed_directive(const char* src);
- const char* re_almost_any_value_token(const char* src);
-
- // Match CSS '@' keywords.
- const char* at_keyword(const char* src);
- const char* kwd_import(const char* src);
- const char* kwd_at_root(const char* src);
- const char* kwd_with_directive(const char* src);
- const char* kwd_without_directive(const char* src);
- const char* kwd_media(const char* src);
- const char* kwd_supports_directive(const char* src);
- // const char* keyframes(const char* src);
- // const char* keyf(const char* src);
- const char* kwd_mixin(const char* src);
- const char* kwd_function(const char* src);
- const char* kwd_return_directive(const char* src);
- const char* kwd_include_directive(const char* src);
- const char* kwd_content_directive(const char* src);
- const char* kwd_charset_directive(const char* src);
- const char* kwd_extend(const char* src);
-
- const char* unicode_seq(const char* src);
-
- const char* kwd_if_directive(const char* src);
- const char* kwd_else_directive(const char* src);
- const char* elseif_directive(const char* src);
-
- const char* kwd_for_directive(const char* src);
- const char* kwd_from(const char* src);
- const char* kwd_to(const char* src);
- const char* kwd_through(const char* src);
-
- const char* kwd_each_directive(const char* src);
- const char* kwd_in(const char* src);
-
- const char* kwd_while_directive(const char* src);
-
- const char* re_nothing(const char* src);
-
- const char* re_special_fun(const char* src);
-
- const char* kwd_warn(const char* src);
- const char* kwd_err(const char* src);
- const char* kwd_dbg(const char* src);
-
- const char* kwd_null(const char* src);
-
- const char* re_selector_list(const char* src);
- const char* re_type_selector(const char* src);
- const char* re_static_expression(const char* src);
-
- // identifier that can start with hyphens
- const char* css_identifier(const char* src);
- const char* css_ip_identifier(const char* src);
-
- // Match CSS type selectors
- const char* namespace_schema(const char* src);
- const char* namespace_prefix(const char* src);
- const char* type_selector(const char* src);
- const char* hyphens_and_identifier(const char* src);
- const char* hyphens_and_name(const char* src);
- const char* universal(const char* src);
- // Match CSS id names.
- const char* id_name(const char* src);
- // Match CSS class names.
- const char* class_name(const char* src);
- // Attribute name in an attribute selector
- const char* attribute_name(const char* src);
- // Match placeholder selectors.
- const char* placeholder(const char* src);
- // Match CSS numeric constants.
- const char* op(const char* src);
- const char* sign(const char* src);
- const char* unsigned_number(const char* src);
- const char* number(const char* src);
- const char* coefficient(const char* src);
- const char* binomial(const char* src);
- const char* percentage(const char* src);
- const char* ampersand(const char* src);
- const char* dimension(const char* src);
- const char* hex(const char* src);
- const char* hexa(const char* src);
- const char* hex0(const char* src);
- // const char* rgb_prefix(const char* src);
- // Match CSS uri specifiers.
- const char* uri_prefix(const char* src);
- // Match CSS "!important" keyword.
- const char* kwd_important(const char* src);
- // Match CSS "!optional" keyword.
- const char* kwd_optional(const char* src);
- // Match Sass "!default" keyword.
- const char* default_flag(const char* src);
- const char* global_flag(const char* src);
- // Match CSS pseudo-class/element prefixes
- const char* pseudo_prefix(const char* src);
- // Match CSS function call openers.
- const char* re_functional(const char* src);
- const char* re_pseudo_selector(const char* src);
- const char* functional_schema(const char* src);
- const char* pseudo_not(const char* src);
- // Match CSS 'odd' and 'even' keywords for functional pseudo-classes.
- const char* even(const char* src);
- const char* odd(const char* src);
- // Match CSS attribute-matching operators.
- const char* exact_match(const char* src);
- const char* class_match(const char* src);
- const char* dash_match(const char* src);
- const char* prefix_match(const char* src);
- const char* suffix_match(const char* src);
- const char* substring_match(const char* src);
- // Match CSS combinators.
- // const char* adjacent_to(const char* src);
- // const char* precedes(const char* src);
- // const char* parent_of(const char* src);
- // const char* ancestor_of(const char* src);
-
- // Match SCSS variable names.
- const char* variable(const char* src);
- const char* calc_fn_call(const char* src);
-
- // IE stuff
- const char* ie_progid(const char* src);
- const char* ie_expression(const char* src);
- const char* ie_property(const char* src);
- const char* ie_keyword_arg(const char* src);
- const char* ie_keyword_arg_value(const char* src);
- const char* ie_keyword_arg_property(const char* src);
-
- // characters that terminate parsing of a list
- const char* list_terminator(const char* src);
- const char* space_list_terminator(const char* src);
-
- // match url()
- const char* H(const char* src);
- const char* W(const char* src);
- // `UNICODE` makes VS sad
- const char* UUNICODE(const char* src);
- const char* NONASCII(const char* src);
- const char* ESCAPE(const char* src);
- const char* real_uri(const char* src);
- const char* real_uri_suffix(const char* src);
- // const char* real_uri_prefix(const char* src);
- const char* real_uri_value(const char* src);
-
- // Path matching functions.
- // const char* folder(const char* src);
- // const char* folders(const char* src);
-
-
- const char* static_string(const char* src);
- const char* static_component(const char* src);
- const char* static_property(const char* src);
- const char* static_value(const char* src);
-
- const char* css_variable_value(const char* src);
- const char* css_variable_top_level_value(const char* src);
-
- // Utility functions for finding and counting characters in a string.
- template<char c>
- const char* find_first(const char* src) {
- while (*src && *src != c) ++src;
- return *src ? src : 0;
- }
- template<prelexer mx>
- const char* find_first(const char* src) {
- while (*src && !mx(src)) ++src;
- return *src ? src : 0;
- }
- template<prelexer mx>
- const char* find_first_in_interval(const char* beg, const char* end) {
- bool esc = false;
- while ((beg < end) && *beg) {
- if (esc) esc = false;
- else if (*beg == '\\') esc = true;
- else if (mx(beg)) return beg;
- ++beg;
- }
- return 0;
- }
- template<prelexer mx, prelexer skip>
- const char* find_first_in_interval(const char* beg, const char* end) {
- bool esc = false;
- while ((beg < end) && *beg) {
- if (esc) esc = false;
- else if (*beg == '\\') esc = true;
- else if (const char* pos = skip(beg)) beg = pos;
- else if (mx(beg)) return beg;
- ++beg;
- }
- return 0;
- }
- template <prelexer mx>
- unsigned int count_interval(const char* beg, const char* end) {
- unsigned int counter = 0;
- bool esc = false;
- while (beg < end && *beg) {
- const char* p;
- if (esc) {
- esc = false;
- ++beg;
- } else if (*beg == '\\') {
- esc = true;
- ++beg;
- } else if ((p = mx(beg))) {
- ++counter;
- beg = p;
- }
- else {
- ++beg;
- }
- }
- return counter;
- }
-
- template <size_t size, prelexer mx, prelexer pad>
- const char* padded_token(const char* src)
- {
- size_t got = 0;
- const char* pos = src;
- while (got < size) {
- if (!mx(pos)) break;
- ++ pos; ++ got;
- }
- while (got < size) {
- if (!pad(pos)) break;
- ++ pos; ++ got;
- }
- return got ? pos : 0;
- }
-
- template <size_t min, size_t max, prelexer mx>
- const char* minmax_range(const char* src)
- {
- size_t got = 0;
- const char* pos = src;
- while (got < max) {
- if (!mx(pos)) break;
- ++ pos; ++ got;
- }
- if (got < min) return 0;
- if (got > max) return 0;
- return pos;
- }
-
- template <char min, char max>
- const char* char_range(const char* src)
- {
- if (*src < min) return 0;
- if (*src > max) return 0;
- return src + 1;
- }
-
- }
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/remove_placeholders.cpp b/node_modules/node-sass/src/libsass/src/remove_placeholders.cpp
deleted file mode 100644
index 15cddac..0000000
--- a/node_modules/node-sass/src/libsass/src/remove_placeholders.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-#include "sass.hpp"
-#include "remove_placeholders.hpp"
-#include "context.hpp"
-#include "inspect.hpp"
-#include <iostream>
-
-namespace Sass {
-
- Remove_Placeholders::Remove_Placeholders()
- { }
-
- void Remove_Placeholders::operator()(Block_Ptr b) {
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Ptr st = b->at(i);
- st->perform(this);
- }
- }
-
- Selector_List_Ptr Remove_Placeholders::remove_placeholders(Selector_List_Ptr sl)
- {
- Selector_List_Ptr new_sl = SASS_MEMORY_NEW(Selector_List, sl->pstate());
-
- for (size_t i = 0, L = sl->length(); i < L; ++i) {
- if (!sl->at(i)->contains_placeholder()) {
- new_sl->append(sl->at(i));
- }
- }
-
- return new_sl;
-
- }
-
-
- void Remove_Placeholders::operator()(Ruleset_Ptr r) {
- // Create a new selector group without placeholders
- Selector_List_Obj sl = Cast<Selector_List>(r->selector());
-
- if (sl) {
- // Set the new placeholder selector list
- r->selector(remove_placeholders(sl));
- // Remove placeholders in wrapped selectors
- for (Complex_Selector_Obj cs : sl->elements()) {
- while (cs) {
- if (cs->head()) {
- for (Simple_Selector_Obj& ss : cs->head()->elements()) {
- if (Wrapped_Selector_Ptr ws = Cast<Wrapped_Selector>(ss)) {
- if (Selector_List_Ptr wsl = Cast<Selector_List>(ws->selector())) {
- Selector_List_Ptr clean = remove_placeholders(wsl);
- // also clean superflous parent selectors
- // probably not really the correct place
- clean->remove_parent_selectors();
- ws->selector(clean);
- }
- }
- }
- }
- cs = cs->tail();
- }
- }
- }
-
- // Iterate into child blocks
- Block_Obj b = r->block();
-
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- if (b->at(i)) {
- Statement_Obj st = b->at(i);
- st->perform(this);
- }
- }
- }
-
- void Remove_Placeholders::operator()(Media_Block_Ptr m) {
- operator()(m->block());
- }
- void Remove_Placeholders::operator()(Supports_Block_Ptr m) {
- operator()(m->block());
- }
-
- void Remove_Placeholders::operator()(Directive_Ptr a) {
- if (a->block()) a->block()->perform(this);
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/remove_placeholders.hpp b/node_modules/node-sass/src/libsass/src/remove_placeholders.hpp
deleted file mode 100644
index c13b631..0000000
--- a/node_modules/node-sass/src/libsass/src/remove_placeholders.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef SASS_REMOVE_PLACEHOLDERS_H
-#define SASS_REMOVE_PLACEHOLDERS_H
-
-#pragma once
-
-#include "ast.hpp"
-#include "operation.hpp"
-
-namespace Sass {
-
-
- class Remove_Placeholders : public Operation_CRTP<void, Remove_Placeholders> {
-
- void fallback_impl(AST_Node_Ptr n) {}
-
- public:
- Selector_List_Ptr remove_placeholders(Selector_List_Ptr);
-
- public:
- Remove_Placeholders();
- ~Remove_Placeholders() { }
-
- void operator()(Block_Ptr);
- void operator()(Ruleset_Ptr);
- void operator()(Media_Block_Ptr);
- void operator()(Supports_Block_Ptr);
- void operator()(Directive_Ptr);
-
- template <typename U>
- void fallback(U x) { return fallback_impl(x); }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/sass.cpp b/node_modules/node-sass/src/libsass/src/sass.cpp
deleted file mode 100644
index 72edd7c..0000000
--- a/node_modules/node-sass/src/libsass/src/sass.cpp
+++ /dev/null
@@ -1,151 +0,0 @@
-#include "sass.hpp"
-#include <cstdlib>
-#include <cstring>
-#include <vector>
-#include <sstream>
-
-#include "sass.h"
-#include "file.hpp"
-#include "util.hpp"
-#include "sass_context.hpp"
-#include "sass_functions.hpp"
-
-namespace Sass {
-
- // helper to convert string list to vector
- std::vector<std::string> list2vec(struct string_list* cur)
- {
- std::vector<std::string> list;
- while (cur) {
- list.push_back(cur->string);
- cur = cur->next;
- }
- return list;
- }
-
-}
-
-extern "C" {
- using namespace Sass;
-
- // Allocate libsass heap memory
- // Don't forget string termination!
- void* ADDCALL sass_alloc_memory(size_t size)
- {
- void* ptr = malloc(size);
- if (ptr == NULL) {
- std::cerr << "Out of memory.\n";
- exit(EXIT_FAILURE);
- }
- return ptr;
- }
-
- char* ADDCALL sass_copy_c_string(const char* str)
- {
- size_t len = strlen(str) + 1;
- char* cpy = (char*) sass_alloc_memory(len);
- std::memcpy(cpy, str, len);
- return cpy;
- }
-
- // Deallocate libsass heap memory
- void ADDCALL sass_free_memory(void* ptr)
- {
- if (ptr) free (ptr);
- }
-
- // caller must free the returned memory
- char* ADDCALL sass_string_quote (const char *str, const char quote_mark)
- {
- std::string quoted = quote(str, quote_mark);
- return sass_copy_c_string(quoted.c_str());
- }
-
- // caller must free the returned memory
- char* ADDCALL sass_string_unquote (const char *str)
- {
- std::string unquoted = unquote(str);
- return sass_copy_c_string(unquoted.c_str());
- }
-
- char* ADDCALL sass_compiler_find_include (const char* file, struct Sass_Compiler* compiler)
- {
- // get the last import entry to get current base directory
- Sass_Import_Entry import = sass_compiler_get_last_import(compiler);
- const std::vector<std::string>& incs = compiler->cpp_ctx->include_paths;
- // create the vector with paths to lookup
- std::vector<std::string> paths(1 + incs.size());
- paths.push_back(File::dir_name(import->abs_path));
- paths.insert( paths.end(), incs.begin(), incs.end() );
- // now resolve the file path relative to lookup paths
- std::string resolved(File::find_include(file, paths));
- return sass_copy_c_string(resolved.c_str());
- }
-
- char* ADDCALL sass_compiler_find_file (const char* file, struct Sass_Compiler* compiler)
- {
- // get the last import entry to get current base directory
- Sass_Import_Entry import = sass_compiler_get_last_import(compiler);
- const std::vector<std::string>& incs = compiler->cpp_ctx->include_paths;
- // create the vector with paths to lookup
- std::vector<std::string> paths(1 + incs.size());
- paths.push_back(File::dir_name(import->abs_path));
- paths.insert( paths.end(), incs.begin(), incs.end() );
- // now resolve the file path relative to lookup paths
- std::string resolved(File::find_file(file, paths));
- return sass_copy_c_string(resolved.c_str());
- }
-
- // Make sure to free the returned value!
- // Incs array has to be null terminated!
- // this has the original resolve logic for sass include
- char* ADDCALL sass_find_include (const char* file, struct Sass_Options* opt)
- {
- std::vector<std::string> vec(list2vec(opt->include_paths));
- std::string resolved(File::find_include(file, vec));
- return sass_copy_c_string(resolved.c_str());
- }
-
- // Make sure to free the returned value!
- // Incs array has to be null terminated!
- char* ADDCALL sass_find_file (const char* file, struct Sass_Options* opt)
- {
- std::vector<std::string> vec(list2vec(opt->include_paths));
- std::string resolved(File::find_file(file, vec));
- return sass_copy_c_string(resolved.c_str());
- }
-
- // Get compiled libsass version
- const char* ADDCALL libsass_version(void)
- {
- return LIBSASS_VERSION;
- }
-
- // Get compiled libsass version
- const char* ADDCALL libsass_language_version(void)
- {
- return LIBSASS_LANGUAGE_VERSION;
- }
-
-}
-
-namespace Sass {
-
- // helper to aid dreaded MSVC debug mode
- char* sass_copy_string(std::string str)
- {
- // In MSVC the following can lead to segfault:
- // sass_copy_c_string(stream.str().c_str());
- // Reason is that the string returned by str() is disposed before
- // sass_copy_c_string is invoked. The string is actually a stack
- // object, so indeed nobody is holding on to it. So it seems
- // perfectly fair to release it right away. So the const char*
- // by c_str will point to invalid memory. I'm not sure if this is
- // the behavior for all compiler, but I'm pretty sure we would
- // have gotten more issues reported if that would be the case.
- // Wrapping it in a functions seems the cleanest approach as the
- // function must hold on to the stack variable until it's done.
- return sass_copy_c_string(str.c_str());
- }
-
-} \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/src/sass.hpp b/node_modules/node-sass/src/libsass/src/sass.hpp
deleted file mode 100644
index f055049..0000000
--- a/node_modules/node-sass/src/libsass/src/sass.hpp
+++ /dev/null
@@ -1,139 +0,0 @@
-// must be the first include in all compile units
-#ifndef SASS_SASS_H
-#define SASS_SASS_H
-
-// undefine extensions macro to tell sys includes
-// that we do not want any macros to be exported
-// mainly fixes an issue on SmartOS (SEC macro)
-#undef __EXTENSIONS__
-
-#ifdef _MSC_VER
-#pragma warning(disable : 4005)
-#endif
-
-// aplies to MSVC and MinGW
-#ifdef _WIN32
-// we do not want the ERROR macro
-# define NOGDI
-// we do not want the min/max macro
-# define NOMINMAX
-// we do not want the IN/OUT macro
-# define _NO_W32_PSEUDO_MODIFIERS
-#endif
-
-
-// should we be case insensitive
-// when dealing with files or paths
-#ifndef FS_CASE_SENSITIVE
-# ifdef _WIN32
-# define FS_CASE_SENSITIVE 0
-# else
-# define FS_CASE_SENSITIVE 1
-# endif
-#endif
-
-// path separation char
-#ifndef PATH_SEP
-# ifdef _WIN32
-# define PATH_SEP ';'
-# else
-# define PATH_SEP ':'
-# endif
-#endif
-
-
-// include C-API header
-#include "sass/base.h"
-
-// For C++ helper
-#include <string>
-
-// output behaviours
-namespace Sass {
-
- // create some C++ aliases for the most used options
- const static Sass_Output_Style NESTED = SASS_STYLE_NESTED;
- const static Sass_Output_Style COMPACT = SASS_STYLE_COMPACT;
- const static Sass_Output_Style EXPANDED = SASS_STYLE_EXPANDED;
- const static Sass_Output_Style COMPRESSED = SASS_STYLE_COMPRESSED;
- // only used internal to trigger ruby inspect behavior
- const static Sass_Output_Style INSPECT = SASS_STYLE_INSPECT;
- const static Sass_Output_Style TO_SASS = SASS_STYLE_TO_SASS;
-
- // helper to aid dreaded MSVC debug mode
- // see implementation for more details
- char* sass_copy_string(std::string str);
-
-}
-
-// input behaviours
-enum Sass_Input_Style {
- SASS_CONTEXT_NULL,
- SASS_CONTEXT_FILE,
- SASS_CONTEXT_DATA,
- SASS_CONTEXT_FOLDER
-};
-
-// simple linked list
-struct string_list {
- string_list* next;
- char* string;
-};
-
-// sass config options structure
-struct Sass_Inspect_Options {
-
- // Output style for the generated css code
- // A value from above SASS_STYLE_* constants
- enum Sass_Output_Style output_style;
-
- // Precision for fractional numbers
- int precision;
-
- // Do not compress colors in selectors
- bool in_selector;
-
- // initialization list (constructor with defaults)
- Sass_Inspect_Options(Sass_Output_Style style = Sass::NESTED,
- int precision = 5, bool in_selector = false)
- : output_style(style), precision(precision), in_selector(in_selector)
- { }
-
-};
-
-// sass config options structure
-struct Sass_Output_Options : Sass_Inspect_Options {
-
- // String to be used for indentation
- const char* indent;
- // String to be used to for line feeds
- const char* linefeed;
-
- // Emit comments in the generated CSS indicating
- // the corresponding source line.
- bool source_comments;
-
- // initialization list (constructor with defaults)
- Sass_Output_Options(struct Sass_Inspect_Options opt,
- const char* indent = " ",
- const char* linefeed = "\n",
- bool source_comments = false)
- : Sass_Inspect_Options(opt),
- indent(indent), linefeed(linefeed),
- source_comments(source_comments)
- { }
-
- // initialization list (constructor with defaults)
- Sass_Output_Options(Sass_Output_Style style = Sass::NESTED,
- int precision = 5,
- const char* indent = " ",
- const char* linefeed = "\n",
- bool source_comments = false)
- : Sass_Inspect_Options(style, precision),
- indent(indent), linefeed(linefeed),
- source_comments(source_comments)
- { }
-
-};
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/sass2scss.cpp b/node_modules/node-sass/src/libsass/src/sass2scss.cpp
deleted file mode 100644
index 56333b3..0000000
--- a/node_modules/node-sass/src/libsass/src/sass2scss.cpp
+++ /dev/null
@@ -1,864 +0,0 @@
-/**
- * sass2scss
- * Licensed under the MIT License
- * Copyright (c) Marcel Greter
- */
-
-#ifdef _MSC_VER
-#define _CRT_SECURE_NO_WARNINGS
-#define _CRT_NONSTDC_NO_DEPRECATE
-#endif
-
-// include library
-#include <stack>
-#include <string>
-#include <cstring>
-#include <cstdlib>
-#include <sstream>
-#include <iostream>
-#include <stdio.h>
-
-///*
-//
-// src comments: comments in sass syntax (staring with //)
-// css comments: multiline comments in css syntax (starting with /*)
-//
-// KEEP_COMMENT: keep src comments in the resulting css code
-// STRIP_COMMENT: strip out all comments (either src or css)
-// CONVERT_COMMENT: convert all src comments to css comments
-//
-//*/
-
-// our own header
-#include "sass2scss.h"
-
-// add namespace for c++
-namespace Sass
-{
-
- // return the actual prettify value from options
- #define PRETTIFY(converter) (converter.options - (converter.options & 248))
- // query the options integer to check if the option is enables
- #define KEEP_COMMENT(converter) ((converter.options & SASS2SCSS_KEEP_COMMENT) == SASS2SCSS_KEEP_COMMENT)
- #define STRIP_COMMENT(converter) ((converter.options & SASS2SCSS_STRIP_COMMENT) == SASS2SCSS_STRIP_COMMENT)
- #define CONVERT_COMMENT(converter) ((converter.options & SASS2SCSS_CONVERT_COMMENT) == SASS2SCSS_CONVERT_COMMENT)
-
- // some makros to access the indentation stack
- #define INDENT(converter) (converter.indents.top())
-
- // some makros to query comment parser status
- #define IS_PARSING(converter) (converter.comment == "")
- #define IS_COMMENT(converter) (converter.comment != "")
- #define IS_SRC_COMMENT(converter) (converter.comment == "//" && ! CONVERT_COMMENT(converter))
- #define IS_CSS_COMMENT(converter) (converter.comment == "/*" || (converter.comment == "//" && CONVERT_COMMENT(converter)))
-
- // pretty printer helper function
- static std::string closer (const converter& converter)
- {
- return PRETTIFY(converter) == 0 ? " }" :
- PRETTIFY(converter) <= 1 ? " }" :
- "\n" + INDENT(converter) + "}";
- }
-
- // pretty printer helper function
- static std::string opener (const converter& converter)
- {
- return PRETTIFY(converter) == 0 ? " { " :
- PRETTIFY(converter) <= 2 ? " {" :
- "\n" + INDENT(converter) + "{";
- }
-
- // check if the given string is a pseudo selector
- // needed to differentiate from sass property syntax
- static bool isPseudoSelector (std::string& sel)
- {
-
- size_t len = sel.length();
- if (len < 1) return false;
- size_t pos = sel.find_first_not_of("abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1);
- if (pos != std::string::npos) sel.erase(pos, std::string::npos);
- size_t i = sel.length();
- while (i -- > 0) { sel.at(i) = tolower(sel.at(i)); }
-
- // CSS Level 1 - Recommendation
- if (sel == ":link") return true;
- if (sel == ":visited") return true;
- if (sel == ":active") return true;
-
- // CSS Level 2 (Revision 1) - Recommendation
- if (sel == ":lang") return true;
- if (sel == ":first-child") return true;
- if (sel == ":hover") return true;
- if (sel == ":focus") return true;
- // disabled - also valid properties
- // if (sel == ":left") return true;
- // if (sel == ":right") return true;
- if (sel == ":first") return true;
-
- // Selectors Level 3 - Recommendation
- if (sel == ":target") return true;
- if (sel == ":root") return true;
- if (sel == ":nth-child") return true;
- if (sel == ":nth-last-of-child") return true;
- if (sel == ":nth-of-type") return true;
- if (sel == ":nth-last-of-type") return true;
- if (sel == ":last-child") return true;
- if (sel == ":first-of-type") return true;
- if (sel == ":last-of-type") return true;
- if (sel == ":only-child") return true;
- if (sel == ":only-of-type") return true;
- if (sel == ":empty") return true;
- if (sel == ":not") return true;
-
- // CSS Basic User Interface Module Level 3 - Working Draft
- if (sel == ":default") return true;
- if (sel == ":valid") return true;
- if (sel == ":invalid") return true;
- if (sel == ":in-range") return true;
- if (sel == ":out-of-range") return true;
- if (sel == ":required") return true;
- if (sel == ":optional") return true;
- if (sel == ":read-only") return true;
- if (sel == ":read-write") return true;
- if (sel == ":dir") return true;
- if (sel == ":enabled") return true;
- if (sel == ":disabled") return true;
- if (sel == ":checked") return true;
- if (sel == ":indeterminate") return true;
- if (sel == ":nth-last-child") return true;
-
- // Selectors Level 4 - Working Draft
- if (sel == ":any-link") return true;
- if (sel == ":local-link") return true;
- if (sel == ":scope") return true;
- if (sel == ":active-drop-target") return true;
- if (sel == ":valid-drop-target") return true;
- if (sel == ":invalid-drop-target") return true;
- if (sel == ":current") return true;
- if (sel == ":past") return true;
- if (sel == ":future") return true;
- if (sel == ":placeholder-shown") return true;
- if (sel == ":user-error") return true;
- if (sel == ":blank") return true;
- if (sel == ":nth-match") return true;
- if (sel == ":nth-last-match") return true;
- if (sel == ":nth-column") return true;
- if (sel == ":nth-last-column") return true;
- if (sel == ":matches") return true;
-
- // Fullscreen API - Living Standard
- if (sel == ":fullscreen") return true;
-
- // not a pseudo selector
- return false;
-
- }
-
- // check if there is some char data
- // will ignore everything in comments
- static bool hasCharData (std::string& sass)
- {
-
- size_t col_pos = 0;
-
- while (true)
- {
-
- // try to find some meaningfull char
- col_pos = sass.find_first_not_of(" \t\n\v\f\r", col_pos);
-
- // there was no meaningfull char found
- if (col_pos == std::string::npos) return false;
-
- // found a multiline comment opener
- if (sass.substr(col_pos, 2) == "/*")
- {
- // find the multiline comment closer
- col_pos = sass.find("*/", col_pos);
- // maybe we did not find the closer here
- if (col_pos == std::string::npos) return false;
- // skip closer
- col_pos += 2;
- }
- else
- {
- return true;
- }
-
- }
-
- }
- // EO hasCharData
-
- // find src comment opener
- // correctly skips quoted strings
- static size_t findCommentOpener (std::string& sass)
- {
-
- size_t col_pos = 0;
- bool apoed = false;
- bool quoted = false;
- bool comment = false;
- size_t brackets = 0;
-
- while (col_pos != std::string::npos)
- {
-
- // process all interesting chars
- col_pos = sass.find_first_of("\"\'/\\*()", col_pos);
-
- // assertion for valid result
- if (col_pos != std::string::npos)
- {
- char character = sass.at(col_pos);
-
- if (character == '(')
- {
- if (!quoted && !apoed) brackets ++;
- }
- else if (character == ')')
- {
- if (!quoted && !apoed) brackets --;
- }
- else if (character == '\"')
- {
- // invert quote bool
- if (!apoed && !comment) quoted = !quoted;
- }
- else if (character == '\'')
- {
- // invert quote bool
- if (!quoted && !comment) apoed = !apoed;
- }
- else if (col_pos > 0 && character == '/')
- {
- if (sass.at(col_pos - 1) == '*')
- {
- comment = false;
- }
- // next needs to be a slash too
- else if (sass.at(col_pos - 1) == '/')
- {
- // only found if not in single or double quote, bracket or comment
- if (!quoted && !apoed && !comment && brackets == 0) return col_pos - 1;
- }
- }
- else if (character == '\\')
- {
- // skip next char if in quote
- if (quoted || apoed) col_pos ++;
- }
- // this might be a comment opener
- else if (col_pos > 0 && character == '*')
- {
- // opening a multiline comment
- if (sass.at(col_pos - 1) == '/')
- {
- // we are now in a comment
- if (!quoted && !apoed) comment = true;
- }
- }
-
- // skip char
- col_pos ++;
-
- }
-
- }
- // EO while
-
- return col_pos;
-
- }
- // EO findCommentOpener
-
- // remove multiline comments from sass string
- // correctly skips quoted strings
- static std::string removeMultilineComment (std::string &sass)
- {
-
- std::string clean = "";
- size_t col_pos = 0;
- size_t open_pos = 0;
- size_t close_pos = 0;
- bool apoed = false;
- bool quoted = false;
- bool comment = false;
-
- // process sass til string end
- while (col_pos != std::string::npos)
- {
-
- // process all interesting chars
- col_pos = sass.find_first_of("\"\'/\\*", col_pos);
-
- // assertion for valid result
- if (col_pos != std::string::npos)
- {
- char character = sass.at(col_pos);
-
- // found quoted string delimiter
- if (character == '\"')
- {
- if (!apoed && !comment) quoted = !quoted;
- }
- else if (character == '\'')
- {
- if (!quoted && !comment) apoed = !apoed;
- }
- // found possible comment closer
- else if (character == '/')
- {
- // look back to see if it is actually a closer
- if (comment && col_pos > 0 && sass.at(col_pos - 1) == '*')
- {
- close_pos = col_pos + 1; comment = false;
- }
- }
- else if (character == '\\')
- {
- // skip escaped char
- if (quoted || apoed) col_pos ++;
- }
- // this might be a comment opener
- else if (character == '*')
- {
- // look back to see if it is actually an opener
- if (!quoted && !apoed && col_pos > 0 && sass.at(col_pos - 1) == '/')
- {
- comment = true; open_pos = col_pos - 1;
- clean += sass.substr(close_pos, open_pos - close_pos);
- }
- }
-
- // skip char
- col_pos ++;
-
- }
-
- }
- // EO while
-
- // add final parts (add half open comment text)
- if (comment) clean += sass.substr(open_pos);
- else clean += sass.substr(close_pos);
-
- // return string
- return clean;
-
- }
- // EO removeMultilineComment
-
- // right trim a given string
- std::string rtrim(const std::string &sass)
- {
- std::string trimmed = sass;
- size_t pos_ws = trimmed.find_last_not_of(" \t\n\v\f\r");
- if (pos_ws != std::string::npos)
- { trimmed.erase(pos_ws + 1); }
- else { trimmed.clear(); }
- return trimmed;
- }
- // EO rtrim
-
- // flush whitespace and print additional text, but
- // only print additional chars and buffer whitespace
- std::string flush (std::string& sass, converter& converter)
- {
-
- // return flushed
- std::string scss = "";
-
- // print whitespace buffer
- scss += PRETTIFY(converter) > 0 ?
- converter.whitespace : "";
- // reset whitespace buffer
- converter.whitespace = "";
-
- // remove possible newlines from string
- size_t pos_right = sass.find_last_not_of("\n\r");
- if (pos_right == std::string::npos) return scss;
-
- // get the linefeeds from the string
- std::string lfs = sass.substr(pos_right + 1);
- sass = sass.substr(0, pos_right + 1);
-
- // find some source comment opener
- size_t comment_pos = findCommentOpener(sass);
- // check if there was a source comment
- if (comment_pos != std::string::npos)
- {
- // convert comment (but only outside other coments)
- if (CONVERT_COMMENT(converter) && !IS_COMMENT(converter))
- {
- // convert to multiline comment
- sass.at(comment_pos + 1) = '*';
- // add comment node to the whitespace
- sass += " */";
- }
- // not at line start
- if (comment_pos > 0)
- {
- // also include whitespace before the actual comment opener
- size_t ws_pos = sass.find_last_not_of(SASS2SCSS_FIND_WHITESPACE, comment_pos - 1);
- comment_pos = ws_pos == std::string::npos ? 0 : ws_pos + 1;
- }
- if (!STRIP_COMMENT(converter))
- {
- // add comment node to the whitespace
- converter.whitespace += sass.substr(comment_pos);
- }
- else
- {
- // sass = removeMultilineComments(sass);
- }
- // update the actual sass code
- sass = sass.substr(0, comment_pos);
- }
-
- // add newline as getline discharged it
- converter.whitespace += lfs + "\n";
-
- // maybe remove any leading whitespace
- if (PRETTIFY(converter) == 0)
- {
- // remove leading whitespace and update string
- size_t pos_left = sass.find_first_not_of(SASS2SCSS_FIND_WHITESPACE);
- if (pos_left != std::string::npos) sass = sass.substr(pos_left);
- }
-
- // add flushed data
- scss += sass;
-
- // return string
- return scss;
-
- }
- // EO flush
-
- // process a line of the sass text
- std::string process (std::string& sass, converter& converter)
- {
-
- // resulting string
- std::string scss = "";
-
- // strip multi line comments
- if (STRIP_COMMENT(converter))
- {
- sass = removeMultilineComment(sass);
- }
-
- // right trim input
- sass = rtrim(sass);
-
- // get postion of first meaningfull character in string
- size_t pos_left = sass.find_first_not_of(SASS2SCSS_FIND_WHITESPACE);
-
- // special case for final run
- if (converter.end_of_file) pos_left = 0;
-
- // maybe has only whitespace
- if (pos_left == std::string::npos)
- {
- // just add complete whitespace
- converter.whitespace += sass + "\n";
- }
- // have meaningfull first char
- else
- {
-
- // extract and store indentation string
- std::string indent = sass.substr(0, pos_left);
-
- // check if current line starts a comment
- std::string open = sass.substr(pos_left, 2);
-
- // line has less or same indentation
- // finalize previous open parser context
- if (indent.length() <= INDENT(converter).length())
- {
-
- // close multilinie comment
- if (IS_CSS_COMMENT(converter))
- {
- // check if comments will be stripped anyway
- if (!STRIP_COMMENT(converter)) scss += " */";
- }
- // close src comment comment
- else if (IS_SRC_COMMENT(converter))
- {
- // add a newline to avoid closer on same line
- // this would put the bracket in the comment node
- // no longer needed since we parse them correctly
- // if (KEEP_COMMENT(converter)) scss += "\n";
- }
- // close css properties
- else if (converter.property)
- {
- // add closer unless in concat mode
- if (!converter.comma)
- {
- // if there was no colon we have a selector
- // looks like there were no inner properties
- if (converter.selector) scss += " {}";
- // add final semicolon
- else if (!converter.semicolon) scss += ";";
- }
- }
-
- // reset comment state
- converter.comment = "";
-
- }
-
- // make sure we close every "higher" block
- while (indent.length() < INDENT(converter).length())
- {
- // pop stacked context
- converter.indents.pop();
- // print close bracket
- if (IS_PARSING(converter))
- { scss += closer(converter); }
- else { scss += " */"; }
- // reset comment state
- converter.comment = "";
- }
-
- // reset converter state
- converter.selector = false;
-
- // looks like some undocumented behavior ...
- // https://github.com/mgreter/sass2scss/issues/29
- if (sass.substr(pos_left, 1) == "\\") {
- converter.selector = true;
- sass[pos_left] = ' ';
- }
-
- // check if we have sass property syntax
- if (sass.substr(pos_left, 1) == ":" && sass.substr(pos_left, 2) != "::")
- {
-
- // default to a selector
- // change back if property found
- converter.selector = true;
- // get postion of first whitespace char
- size_t pos_wspace = sass.find_first_of(SASS2SCSS_FIND_WHITESPACE, pos_left);
- // assertion check for valid result
- if (pos_wspace != std::string::npos)
- {
- // get the possible pseudo selector
- std::string pseudo = sass.substr(pos_left, pos_wspace - pos_left);
- // get position of the first real property value char
- // pseudo selectors get this far, but have no actual value
- size_t pos_value = sass.find_first_not_of(SASS2SCSS_FIND_WHITESPACE, pos_wspace);
- // assertion check for valid result
- if (pos_value != std::string::npos)
- {
- // only process if not (fallowed by a semicolon or is a pseudo selector)
- if (!(sass.at(pos_value) == ':' || isPseudoSelector(pseudo)))
- {
- // create new string by interchanging the colon sign for property and value
- sass = indent + sass.substr(pos_left + 1, pos_wspace - pos_left - 1) + ":" + sass.substr(pos_wspace);
- // try to find a colon in the current line, but only ...
- size_t pos_colon = sass.find_first_not_of(":", pos_left);
- // assertion for valid result
- if (pos_colon != std::string::npos)
- {
- // ... after the first word (skip begining colons)
- pos_colon = sass.find_first_of(":", pos_colon);
- // it is a selector if there was no colon found
- converter.selector = pos_colon == std::string::npos;
- }
- }
- }
- }
-
- // check if we have a BEM property (one colon and no selector)
- if (sass.substr(pos_left, 1) == ":" && converter.selector == true) {
- size_t pos_wspace = sass.find_first_of(SASS2SCSS_FIND_WHITESPACE, pos_left);
- sass = indent + sass.substr(pos_left + 1, pos_wspace) + ":";
- }
-
- }
-
- // terminate some statements immediately
- else if (
- sass.substr(pos_left, 5) == "@warn" ||
- sass.substr(pos_left, 6) == "@debug" ||
- sass.substr(pos_left, 6) == "@error" ||
- sass.substr(pos_left, 8) == "@charset" ||
- sass.substr(pos_left, 10) == "@namespace"
- ) { sass = indent + sass.substr(pos_left); }
- // replace some specific sass shorthand directives (if not fallowed by a white space character)
- else if (sass.substr(pos_left, 1) == "=")
- { sass = indent + "@mixin " + sass.substr(pos_left + 1); }
- else if (sass.substr(pos_left, 1) == "+")
- {
- // must be followed by a mixin call (no whitespace afterwards or at ending directly)
- if (sass[pos_left+1] != 0 && sass[pos_left+1] != ' ' && sass[pos_left+1] != '\t') {
- sass = indent + "@include " + sass.substr(pos_left + 1);
- }
- }
-
- // add quotes for import if needed
- else if (sass.substr(pos_left, 7) == "@import")
- {
- // get positions for the actual import url
- size_t pos_import = sass.find_first_of(SASS2SCSS_FIND_WHITESPACE, pos_left + 7);
- size_t pos_quote = sass.find_first_not_of(SASS2SCSS_FIND_WHITESPACE, pos_import);
- // leave proper urls untouched
- if (sass.substr(pos_quote, 4) != "url(")
- {
- // check if the url appears to be already quoted
- if (sass.substr(pos_quote, 1) != "\"" && sass.substr(pos_quote, 1) != "\'")
- {
- // get position of the last char on the line
- size_t pos_end = sass.find_last_not_of(SASS2SCSS_FIND_WHITESPACE);
- // assertion check for valid result
- if (pos_end != std::string::npos)
- {
- // add quotes around the full line after the import statement
- sass = sass.substr(0, pos_quote) + "\"" + sass.substr(pos_quote, pos_end - pos_quote + 1) + "\"";
- }
- }
- }
-
- }
- else if (
- sass.substr(pos_left, 7) != "@return" &&
- sass.substr(pos_left, 7) != "@extend" &&
- sass.substr(pos_left, 8) != "@include" &&
- sass.substr(pos_left, 8) != "@content"
- ) {
-
- // probably a selector anyway
- converter.selector = true;
- // try to find first colon in the current line
- size_t pos_colon = sass.find_first_of(":", pos_left);
- // assertion that we have a colon
- if (pos_colon != std::string::npos)
- {
- // it is not a selector if we have a space after a colon
- if (sass[pos_colon+1] == ' ') converter.selector = false;
- if (sass[pos_colon+1] == ' ') converter.selector = false;
- }
-
- }
-
- // current line has more indentation
- if (indent.length() >= INDENT(converter).length())
- {
- // not in comment mode
- if (IS_PARSING(converter))
- {
- // has meaningfull chars
- if (hasCharData(sass))
- {
- // is probably a property
- // also true for selectors
- converter.property = true;
- }
- }
- }
- // current line has more indentation
- if (indent.length() > INDENT(converter).length())
- {
- // not in comment mode
- if (IS_PARSING(converter))
- {
- // had meaningfull chars
- if (converter.property)
- {
- // print block opener
- scss += opener(converter);
- // push new stack context
- converter.indents.push("");
- // store block indentation
- INDENT(converter) = indent;
- }
- }
- // is and will be a src comment
- else if (!IS_CSS_COMMENT(converter))
- {
- // scss does not allow multiline src comments
- // therefore add forward slashes to all lines
- sass.at(INDENT(converter).length()+0) = '/';
- // there is an edge case here if indentation
- // is minimal (will overwrite the fist char)
- sass.at(INDENT(converter).length()+1) = '/';
- // could code around that, but I dont' think
- // this will ever be the cause for any trouble
- }
- }
-
- // line is opening a new comment
- if (open == "/*" || open == "//")
- {
- // reset the property state
- converter.property = false;
- // close previous comment
- if (IS_CSS_COMMENT(converter) && open != "")
- {
- if (!STRIP_COMMENT(converter) && !CONVERT_COMMENT(converter)) scss += " */";
- }
- // force single line comments
- // into a correct css comment
- if (CONVERT_COMMENT(converter))
- {
- if (IS_PARSING(converter))
- { sass.at(pos_left + 1) = '*'; }
- }
- // set comment flag
- converter.comment = open;
-
- }
-
- // flush data only under certain conditions
- if (!(
- // strip css and src comments if option is set
- (IS_COMMENT(converter) && STRIP_COMMENT(converter)) ||
- // strip src comment even if strip option is not set
- // but only if the keep src comment option is not set
- (IS_SRC_COMMENT(converter) && ! KEEP_COMMENT(converter))
- ))
- {
- // flush data and buffer whitespace
- scss += flush(sass, converter);
- }
-
- // get postion of last meaningfull char
- size_t pos_right = sass.find_last_not_of(SASS2SCSS_FIND_WHITESPACE);
-
- // check for invalid result
- if (pos_right != std::string::npos)
- {
-
- // get the last meaningfull char
- std::string close = sass.substr(pos_right, 1);
-
- // check if next line should be concatenated (list mode)
- converter.comma = IS_PARSING(converter) && close == ",";
- converter.semicolon = IS_PARSING(converter) && close == ";";
-
- // check if we have more than
- // one meaningfull char
- if (pos_right > 0)
- {
-
- // get the last two chars from string
- std::string close = sass.substr(pos_right - 1, 2);
- // update parser status for expicitly closed comment
- if (close == "*/") converter.comment = "";
-
- }
-
- }
- // EO have meaningfull chars from end
-
- }
- // EO have meaningfull chars from start
-
- // return scss
- return scss;
-
- }
- // EO process
-
- // read line with either CR, LF or CR LF format
- // http://stackoverflow.com/a/6089413/1550314
- static std::istream& safeGetline(std::istream& is, std::string& t)
- {
- t.clear();
-
- // The characters in the stream are read one-by-one using a std::streambuf.
- // That is faster than reading them one-by-one using the std::istream.
- // Code that uses streambuf this way must be guarded by a sentry object.
- // The sentry object performs various tasks,
- // such as thread synchronization and updating the stream state.
-
- std::istream::sentry se(is, true);
- std::streambuf* sb = is.rdbuf();
-
- for(;;) {
- int c = sb->sbumpc();
- switch (c) {
- case '\n':
- return is;
- case '\r':
- if(sb->sgetc() == '\n')
- sb->sbumpc();
- return is;
- case EOF:
- // Also handle the case when the last line has no line ending
- if(t.empty())
- is.setstate(std::ios::eofbit);
- return is;
- default:
- t += (char)c;
- }
- }
- }
-
- // the main converter function for c++
- char* sass2scss (const std::string& sass, const int options)
- {
-
- // local variables
- std::string line;
- std::string scss = "";
- std::stringstream stream(sass);
-
- // create converter variable
- converter converter;
- // initialise all options
- converter.comma = false;
- converter.property = false;
- converter.selector = false;
- converter.semicolon = false;
- converter.end_of_file = false;
- converter.comment = "";
- converter.whitespace = "";
- converter.indents.push("");
- converter.options = options;
-
- // read line by line and process them
- while(safeGetline(stream, line) && !stream.eof())
- { scss += process(line, converter); }
-
- // create mutable string
- std::string closer = "";
- // set the end of file flag
- converter.end_of_file = true;
- // process to close all open blocks
- scss += process(closer, converter);
-
- // allocate new memory on the heap
- // caller has to free it after use
- char * cstr = (char*) malloc (scss.length() + 1);
- // create a copy of the string
- strcpy (cstr, scss.c_str());
- // return pointer
- return &cstr[0];
-
- }
- // EO sass2scss
-
-}
-// EO namespace
-
-// implement for c
-extern "C"
-{
-
- char* ADDCALL sass2scss (const char* sass, const int options)
- {
- return Sass::sass2scss(sass, options);
- }
-
- // Get compiled sass2scss version
- const char* ADDCALL sass2scss_version(void) {
- return SASS2SCSS_VERSION;
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/sass_context.cpp b/node_modules/node-sass/src/libsass/src/sass_context.cpp
deleted file mode 100644
index afadc66..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_context.cpp
+++ /dev/null
@@ -1,769 +0,0 @@
-#include "sass.hpp"
-#include <cstring>
-#include <stdexcept>
-#include <sstream>
-#include <string>
-#include <vector>
-
-#include "sass.h"
-#include "ast.hpp"
-#include "file.hpp"
-#include "json.hpp"
-#include "util.hpp"
-#include "context.hpp"
-#include "sass_context.hpp"
-#include "sass_functions.hpp"
-#include "ast_fwd_decl.hpp"
-#include "error_handling.hpp"
-
-#define LFEED "\n"
-
-// C++ helper
-namespace Sass {
- // see sass_copy_c_string(std::string str)
- static inline JsonNode* json_mkstream(const std::stringstream& stream)
- {
- // hold on to string on stack!
- std::string str(stream.str());
- return json_mkstring(str.c_str());
- }
-
- static int handle_error(Sass_Context* c_ctx) {
- try {
- throw;
- }
- catch (Exception::Base& e) {
- std::stringstream msg_stream;
- std::string cwd(Sass::File::get_cwd());
- std::string msg_prefix(e.errtype());
- bool got_newline = false;
- msg_stream << msg_prefix << ": ";
- const char* msg = e.what();
- while (msg && *msg) {
- if (*msg == '\r') {
- got_newline = true;
- }
- else if (*msg == '\n') {
- got_newline = true;
- }
- else if (got_newline) {
- msg_stream << std::string(msg_prefix.size() + 2, ' ');
- got_newline = false;
- }
- msg_stream << *msg;
- ++msg;
- }
- if (!got_newline) msg_stream << "\n";
-
- if (e.traces.empty()) {
- // we normally should have some traces, still here as a fallback
- std::string rel_path(Sass::File::abs2rel(e.pstate.path, cwd, cwd));
- msg_stream << std::string(msg_prefix.size() + 2, ' ');
- msg_stream << " on line " << e.pstate.line + 1 << " of " << rel_path << "\n";
- }
- else {
- std::string rel_path(Sass::File::abs2rel(e.pstate.path, cwd, cwd));
- msg_stream << traces_to_string(e.traces, " ");
- }
-
- // now create the code trace (ToDo: maybe have util functions?)
- if (e.pstate.line != std::string::npos && e.pstate.column != std::string::npos) {
- size_t lines = e.pstate.line;
- const char* line_beg = e.pstate.src;
- // scan through src until target line
- // move line_beg pointer to line start
- while (line_beg && *line_beg && lines != 0) {
- if (*line_beg == '\n') --lines;
- utf8::unchecked::next(line_beg);
- }
- const char* line_end = line_beg;
- // move line_end before next newline character
- while (line_end && *line_end && *line_end != '\n') {
- if (*line_end == '\n') break;
- if (*line_end == '\r') break;
- utf8::unchecked::next(line_end);
- }
- if (line_end && *line_end != 0) ++ line_end;
- size_t line_len = line_end - line_beg;
- size_t move_in = 0; size_t shorten = 0;
- size_t left_chars = 42; size_t max_chars = 76;
- // reported excerpt should not exceed `max_chars` chars
- if (e.pstate.column > line_len) left_chars = e.pstate.column;
- if (e.pstate.column > left_chars) move_in = e.pstate.column - left_chars;
- if (line_len > max_chars + move_in) shorten = line_len - move_in - max_chars;
- utf8::advance(line_beg, move_in, line_end);
- utf8::retreat(line_end, shorten, line_beg);
- std::string sanitized; std::string marker(e.pstate.column - move_in, '-');
- utf8::replace_invalid(line_beg, line_end, std::back_inserter(sanitized));
- msg_stream << ">> " << sanitized << "\n";
- msg_stream << " " << marker << "^\n";
- }
-
- JsonNode* json_err = json_mkobject();
- json_append_member(json_err, "status", json_mknumber(1));
- json_append_member(json_err, "file", json_mkstring(e.pstate.path));
- json_append_member(json_err, "line", json_mknumber((double)(e.pstate.line + 1)));
- json_append_member(json_err, "column", json_mknumber((double)(e.pstate.column + 1)));
- json_append_member(json_err, "message", json_mkstring(e.what()));
- json_append_member(json_err, "formatted", json_mkstream(msg_stream));
- try { c_ctx->error_json = json_stringify(json_err, " "); }
- catch (...) {}
- c_ctx->error_message = sass_copy_string(msg_stream.str());
- c_ctx->error_text = sass_copy_c_string(e.what());
- c_ctx->error_status = 1;
- c_ctx->error_file = sass_copy_c_string(e.pstate.path);
- c_ctx->error_line = e.pstate.line + 1;
- c_ctx->error_column = e.pstate.column + 1;
- c_ctx->error_src = e.pstate.src;
- c_ctx->output_string = 0;
- c_ctx->source_map_string = 0;
- json_delete(json_err);
- }
- catch (std::bad_alloc& ba) {
- std::stringstream msg_stream;
- JsonNode* json_err = json_mkobject();
- msg_stream << "Unable to allocate memory: " << ba.what() << std::endl;
- json_append_member(json_err, "status", json_mknumber(2));
- json_append_member(json_err, "message", json_mkstring(ba.what()));
- json_append_member(json_err, "formatted", json_mkstream(msg_stream));
- try { c_ctx->error_json = json_stringify(json_err, " "); }
- catch (...) {}
- c_ctx->error_message = sass_copy_string(msg_stream.str());
- c_ctx->error_text = sass_copy_c_string(ba.what());
- c_ctx->error_status = 2;
- c_ctx->output_string = 0;
- c_ctx->source_map_string = 0;
- json_delete(json_err);
- }
- catch (std::exception& e) {
- std::stringstream msg_stream;
- JsonNode* json_err = json_mkobject();
- msg_stream << "Internal Error: " << e.what() << std::endl;
- json_append_member(json_err, "status", json_mknumber(3));
- json_append_member(json_err, "message", json_mkstring(e.what()));
- json_append_member(json_err, "formatted", json_mkstream(msg_stream));
- try { c_ctx->error_json = json_stringify(json_err, " "); }
- catch (...) {}
- c_ctx->error_message = sass_copy_string(msg_stream.str());
- c_ctx->error_text = sass_copy_c_string(e.what());
- c_ctx->error_status = 3;
- c_ctx->output_string = 0;
- c_ctx->source_map_string = 0;
- json_delete(json_err);
- }
- catch (std::string& e) {
- std::stringstream msg_stream;
- JsonNode* json_err = json_mkobject();
- msg_stream << "Internal Error: " << e << std::endl;
- json_append_member(json_err, "status", json_mknumber(4));
- json_append_member(json_err, "message", json_mkstring(e.c_str()));
- json_append_member(json_err, "formatted", json_mkstream(msg_stream));
- try { c_ctx->error_json = json_stringify(json_err, " "); }
- catch (...) {}
- c_ctx->error_message = sass_copy_string(msg_stream.str());
- c_ctx->error_text = sass_copy_c_string(e.c_str());
- c_ctx->error_status = 4;
- c_ctx->output_string = 0;
- c_ctx->source_map_string = 0;
- json_delete(json_err);
- }
- catch (const char* e) {
- std::stringstream msg_stream;
- JsonNode* json_err = json_mkobject();
- msg_stream << "Internal Error: " << e << std::endl;
- json_append_member(json_err, "status", json_mknumber(4));
- json_append_member(json_err, "message", json_mkstring(e));
- json_append_member(json_err, "formatted", json_mkstream(msg_stream));
- try { c_ctx->error_json = json_stringify(json_err, " "); }
- catch (...) {}
- c_ctx->error_message = sass_copy_string(msg_stream.str());
- c_ctx->error_text = sass_copy_c_string(e);
- c_ctx->error_status = 4;
- c_ctx->output_string = 0;
- c_ctx->source_map_string = 0;
- json_delete(json_err);
- }
- catch (...) {
- std::stringstream msg_stream;
- JsonNode* json_err = json_mkobject();
- msg_stream << "Unknown error occurred" << std::endl;
- json_append_member(json_err, "status", json_mknumber(5));
- json_append_member(json_err, "message", json_mkstring("unknown"));
- try { c_ctx->error_json = json_stringify(json_err, " "); }
- catch (...) {}
- c_ctx->error_message = sass_copy_string(msg_stream.str());
- c_ctx->error_text = sass_copy_c_string("unknown");
- c_ctx->error_status = 5;
- c_ctx->output_string = 0;
- c_ctx->source_map_string = 0;
- json_delete(json_err);
- }
- return c_ctx->error_status;
- }
-
- // allow one error handler to throw another error
- // this can happen with invalid utf8 and json lib
- static int handle_errors(Sass_Context* c_ctx) {
- try { return handle_error(c_ctx); }
- catch (...) { return handle_error(c_ctx); }
- }
-
- static Block_Obj sass_parse_block(Sass_Compiler* compiler) throw()
- {
-
- // assert valid pointer
- if (compiler == 0) return 0;
- // The cpp context must be set by now
- Context* cpp_ctx = compiler->cpp_ctx;
- Sass_Context* c_ctx = compiler->c_ctx;
- // We will take care to wire up the rest
- compiler->cpp_ctx->c_compiler = compiler;
- compiler->state = SASS_COMPILER_PARSED;
-
- try {
-
- // get input/output path from options
- std::string input_path = safe_str(c_ctx->input_path);
- std::string output_path = safe_str(c_ctx->output_path);
-
- // maybe skip some entries of included files
- // we do not include stdin for data contexts
- bool skip = c_ctx->type == SASS_CONTEXT_DATA;
-
- // dispatch parse call
- Block_Obj root(cpp_ctx->parse());
- // abort on errors
- if (!root) return 0;
-
- // skip all prefixed files? (ToDo: check srcmap)
- // IMO source-maps should point to headers already
- // therefore don't skip it for now. re-enable or
- // remove completely once this is tested
- size_t headers = cpp_ctx->head_imports;
-
- // copy the included files on to the context (dont forget to free later)
- if (copy_strings(cpp_ctx->get_included_files(skip, headers), &c_ctx->included_files) == NULL)
- throw(std::bad_alloc());
-
- // return parsed block
- return root;
-
- }
- // pass errors to generic error handler
- catch (...) { handle_errors(c_ctx); }
-
- // error
- return 0;
-
- }
-
-}
-
-extern "C" {
- using namespace Sass;
-
- static void sass_clear_options (struct Sass_Options* options);
- static void sass_reset_options (struct Sass_Options* options);
- static void copy_options(struct Sass_Options* to, struct Sass_Options* from) {
- // do not overwrite ourself
- if (to == from) return;
- // free assigned memory
- sass_clear_options(to);
- // move memory
- *to = *from;
- // Reset pointers on source
- sass_reset_options(from);
- }
-
- #define IMPLEMENT_SASS_OPTION_ACCESSOR(type, option) \
- type ADDCALL sass_option_get_##option (struct Sass_Options* options) { return options->option; } \
- void ADDCALL sass_option_set_##option (struct Sass_Options* options, type option) { options->option = option; }
- #define IMPLEMENT_SASS_OPTION_STRING_GETTER(type, option, def) \
- type ADDCALL sass_option_get_##option (struct Sass_Options* options) { return safe_str(options->option, def); }
- #define IMPLEMENT_SASS_OPTION_STRING_SETTER(type, option, def) \
- void ADDCALL sass_option_set_##option (struct Sass_Options* options, type option) \
- { free(options->option); options->option = option || def ? sass_copy_c_string(option ? option : def) : 0; }
- #define IMPLEMENT_SASS_OPTION_STRING_ACCESSOR(type, option, def) \
- IMPLEMENT_SASS_OPTION_STRING_GETTER(type, option, def) \
- IMPLEMENT_SASS_OPTION_STRING_SETTER(type, option, def)
-
- #define IMPLEMENT_SASS_CONTEXT_GETTER(type, option) \
- type ADDCALL sass_context_get_##option (struct Sass_Context* ctx) { return ctx->option; }
- #define IMPLEMENT_SASS_CONTEXT_TAKER(type, option) \
- type sass_context_take_##option (struct Sass_Context* ctx) \
- { type foo = ctx->option; ctx->option = 0; return foo; }
-
-
- // generic compilation function (not exported, use file/data compile instead)
- static Sass_Compiler* sass_prepare_context (Sass_Context* c_ctx, Context* cpp_ctx) throw()
- {
- try {
- // register our custom functions
- if (c_ctx->c_functions) {
- auto this_func_data = c_ctx->c_functions;
- while (this_func_data && *this_func_data) {
- cpp_ctx->add_c_function(*this_func_data);
- ++this_func_data;
- }
- }
-
- // register our custom headers
- if (c_ctx->c_headers) {
- auto this_head_data = c_ctx->c_headers;
- while (this_head_data && *this_head_data) {
- cpp_ctx->add_c_header(*this_head_data);
- ++this_head_data;
- }
- }
-
- // register our custom importers
- if (c_ctx->c_importers) {
- auto this_imp_data = c_ctx->c_importers;
- while (this_imp_data && *this_imp_data) {
- cpp_ctx->add_c_importer(*this_imp_data);
- ++this_imp_data;
- }
- }
-
- // reset error status
- c_ctx->error_json = 0;
- c_ctx->error_text = 0;
- c_ctx->error_message = 0;
- c_ctx->error_status = 0;
- // reset error position
- c_ctx->error_src = 0;
- c_ctx->error_file = 0;
- c_ctx->error_line = std::string::npos;
- c_ctx->error_column = std::string::npos;
-
- // allocate a new compiler instance
- void* ctxmem = calloc(1, sizeof(struct Sass_Compiler));
- if (ctxmem == 0) { std::cerr << "Error allocating memory for context" << std::endl; return 0; }
- Sass_Compiler* compiler = (struct Sass_Compiler*) ctxmem;
- compiler->state = SASS_COMPILER_CREATED;
-
- // store in sass compiler
- compiler->c_ctx = c_ctx;
- compiler->cpp_ctx = cpp_ctx;
- cpp_ctx->c_compiler = compiler;
-
- // use to parse block
- return compiler;
-
- }
- // pass errors to generic error handler
- catch (...) { handle_errors(c_ctx); }
-
- // error
- return 0;
-
- }
-
- // generic compilation function (not exported, use file/data compile instead)
- static int sass_compile_context (Sass_Context* c_ctx, Context* cpp_ctx)
- {
-
- // prepare sass compiler with context and options
- Sass_Compiler* compiler = sass_prepare_context(c_ctx, cpp_ctx);
-
- try {
- // call each compiler step
- sass_compiler_parse(compiler);
- sass_compiler_execute(compiler);
- }
- // pass errors to generic error handler
- catch (...) { handle_errors(c_ctx); }
-
- sass_delete_compiler(compiler);
-
- return c_ctx->error_status;
- }
-
- inline void init_options (struct Sass_Options* options)
- {
- options->precision = 5;
- options->indent = " ";
- options->linefeed = LFEED;
- }
-
- Sass_Options* ADDCALL sass_make_options (void)
- {
- struct Sass_Options* options = (struct Sass_Options*) calloc(1, sizeof(struct Sass_Options));
- if (options == 0) { std::cerr << "Error allocating memory for options" << std::endl; return 0; }
- init_options(options);
- return options;
- }
-
- Sass_File_Context* ADDCALL sass_make_file_context(const char* input_path)
- {
- SharedObj::setTaint(true); // needed for static colors
- struct Sass_File_Context* ctx = (struct Sass_File_Context*) calloc(1, sizeof(struct Sass_File_Context));
- if (ctx == 0) { std::cerr << "Error allocating memory for file context" << std::endl; return 0; }
- ctx->type = SASS_CONTEXT_FILE;
- init_options(ctx);
- try {
- if (input_path == 0) { throw(std::runtime_error("File context created without an input path")); }
- if (*input_path == 0) { throw(std::runtime_error("File context created with empty input path")); }
- sass_option_set_input_path(ctx, input_path);
- } catch (...) {
- handle_errors(ctx);
- }
- return ctx;
- }
-
- Sass_Data_Context* ADDCALL sass_make_data_context(char* source_string)
- {
- struct Sass_Data_Context* ctx = (struct Sass_Data_Context*) calloc(1, sizeof(struct Sass_Data_Context));
- if (ctx == 0) { std::cerr << "Error allocating memory for data context" << std::endl; return 0; }
- ctx->type = SASS_CONTEXT_DATA;
- init_options(ctx);
- try {
- if (source_string == 0) { throw(std::runtime_error("Data context created without a source string")); }
- if (*source_string == 0) { throw(std::runtime_error("Data context created with empty source string")); }
- ctx->source_string = source_string;
- } catch (...) {
- handle_errors(ctx);
- }
- return ctx;
- }
-
- struct Sass_Compiler* ADDCALL sass_make_data_compiler (struct Sass_Data_Context* data_ctx)
- {
- if (data_ctx == 0) return 0;
- Context* cpp_ctx = new Data_Context(*data_ctx);
- return sass_prepare_context(data_ctx, cpp_ctx);
- }
-
- struct Sass_Compiler* ADDCALL sass_make_file_compiler (struct Sass_File_Context* file_ctx)
- {
- if (file_ctx == 0) return 0;
- Context* cpp_ctx = new File_Context(*file_ctx);
- return sass_prepare_context(file_ctx, cpp_ctx);
- }
-
- int ADDCALL sass_compile_data_context(Sass_Data_Context* data_ctx)
- {
- if (data_ctx == 0) return 1;
- if (data_ctx->error_status)
- return data_ctx->error_status;
- try {
- if (data_ctx->source_string == 0) { throw(std::runtime_error("Data context has no source string")); }
- // empty source string is a valid case, even if not really usefull (different than with file context)
- // if (*data_ctx->source_string == 0) { throw(std::runtime_error("Data context has empty source string")); }
- }
- catch (...) { return handle_errors(data_ctx) | 1; }
- Context* cpp_ctx = new Data_Context(*data_ctx);
- return sass_compile_context(data_ctx, cpp_ctx);
- }
-
- int ADDCALL sass_compile_file_context(Sass_File_Context* file_ctx)
- {
- if (file_ctx == 0) return 1;
- if (file_ctx->error_status)
- return file_ctx->error_status;
- try {
- if (file_ctx->input_path == 0) { throw(std::runtime_error("File context has no input path")); }
- if (*file_ctx->input_path == 0) { throw(std::runtime_error("File context has empty input path")); }
- }
- catch (...) { return handle_errors(file_ctx) | 1; }
- Context* cpp_ctx = new File_Context(*file_ctx);
- return sass_compile_context(file_ctx, cpp_ctx);
- }
-
- int ADDCALL sass_compiler_parse(struct Sass_Compiler* compiler)
- {
- if (compiler == 0) return 1;
- if (compiler->state == SASS_COMPILER_PARSED) return 0;
- if (compiler->state != SASS_COMPILER_CREATED) return -1;
- if (compiler->c_ctx == NULL) return 1;
- if (compiler->cpp_ctx == NULL) return 1;
- if (compiler->c_ctx->error_status)
- return compiler->c_ctx->error_status;
- // parse the context we have set up (file or data)
- compiler->root = sass_parse_block(compiler);
- // success
- return 0;
- }
-
- int ADDCALL sass_compiler_execute(struct Sass_Compiler* compiler)
- {
- if (compiler == 0) return 1;
- if (compiler->state == SASS_COMPILER_EXECUTED) return 0;
- if (compiler->state != SASS_COMPILER_PARSED) return -1;
- if (compiler->c_ctx == NULL) return 1;
- if (compiler->cpp_ctx == NULL) return 1;
- if (compiler->root.isNull()) return 1;
- if (compiler->c_ctx->error_status)
- return compiler->c_ctx->error_status;
- compiler->state = SASS_COMPILER_EXECUTED;
- Context* cpp_ctx = compiler->cpp_ctx;
- Block_Obj root = compiler->root;
- // compile the parsed root block
- try { compiler->c_ctx->output_string = cpp_ctx->render(root); }
- // pass catched errors to generic error handler
- catch (...) { return handle_errors(compiler->c_ctx) | 1; }
- // generate source map json and store on context
- compiler->c_ctx->source_map_string = cpp_ctx->render_srcmap();
- // success
- return 0;
- }
-
- // helper function, not exported, only accessible locally
- static void sass_reset_options (struct Sass_Options* options)
- {
- // free pointer before
- // or copy/move them
- options->input_path = 0;
- options->output_path = 0;
- options->plugin_path = 0;
- options->include_path = 0;
- options->source_map_file = 0;
- options->source_map_root = 0;
- options->c_functions = 0;
- options->c_importers = 0;
- options->c_headers = 0;
- options->plugin_paths = 0;
- options->include_paths = 0;
- }
-
- // helper function, not exported, only accessible locally
- static void sass_clear_options (struct Sass_Options* options)
- {
- if (options == 0) return;
- // Deallocate custom functions, headers and importes
- sass_delete_function_list(options->c_functions);
- sass_delete_importer_list(options->c_importers);
- sass_delete_importer_list(options->c_headers);
- // Deallocate inc paths
- if (options->plugin_paths) {
- struct string_list* cur;
- struct string_list* next;
- cur = options->plugin_paths;
- while (cur) {
- next = cur->next;
- free(cur->string);
- free(cur);
- cur = next;
- }
- }
- // Deallocate inc paths
- if (options->include_paths) {
- struct string_list* cur;
- struct string_list* next;
- cur = options->include_paths;
- while (cur) {
- next = cur->next;
- free(cur->string);
- free(cur);
- cur = next;
- }
- }
- // Free options strings
- free(options->input_path);
- free(options->output_path);
- free(options->plugin_path);
- free(options->include_path);
- free(options->source_map_file);
- free(options->source_map_root);
- // Reset our pointers
- options->input_path = 0;
- options->output_path = 0;
- options->plugin_path = 0;
- options->include_path = 0;
- options->source_map_file = 0;
- options->source_map_root = 0;
- options->c_functions = 0;
- options->c_importers = 0;
- options->c_headers = 0;
- options->plugin_paths = 0;
- options->include_paths = 0;
- }
-
- // helper function, not exported, only accessible locally
- // sass_free_context is also defined in old sass_interface
- static void sass_clear_context (struct Sass_Context* ctx)
- {
- if (ctx == 0) return;
- // release the allocated memory (mostly via sass_copy_c_string)
- if (ctx->output_string) free(ctx->output_string);
- if (ctx->source_map_string) free(ctx->source_map_string);
- if (ctx->error_message) free(ctx->error_message);
- if (ctx->error_text) free(ctx->error_text);
- if (ctx->error_json) free(ctx->error_json);
- if (ctx->error_file) free(ctx->error_file);
- free_string_array(ctx->included_files);
- // play safe and reset properties
- ctx->output_string = 0;
- ctx->source_map_string = 0;
- ctx->error_message = 0;
- ctx->error_text = 0;
- ctx->error_json = 0;
- ctx->error_file = 0;
- ctx->included_files = 0;
- // debug leaked memory
- #ifdef DEBUG_SHARED_PTR
- SharedObj::dumpMemLeaks();
- #endif
- // now clear the options
- sass_clear_options(ctx);
- }
-
- void ADDCALL sass_delete_compiler (struct Sass_Compiler* compiler)
- {
- if (compiler == 0) {
- return;
- }
- Context* cpp_ctx = compiler->cpp_ctx;
- if (cpp_ctx) delete(cpp_ctx);
- compiler->cpp_ctx = NULL;
- compiler->c_ctx = NULL;
- compiler->root = NULL;
- free(compiler);
- }
-
- void ADDCALL sass_delete_options (struct Sass_Options* options)
- {
- sass_clear_options(options); free(options);
- }
-
- // Deallocate all associated memory with file context
- void ADDCALL sass_delete_file_context (struct Sass_File_Context* ctx)
- {
- // clear the context and free it
- sass_clear_context(ctx); free(ctx);
- }
- // Deallocate all associated memory with data context
- void ADDCALL sass_delete_data_context (struct Sass_Data_Context* ctx)
- {
- // clean the source string if it was not passed
- // we reset this member once we start parsing
- if (ctx->source_string) free(ctx->source_string);
- // clear the context and free it
- sass_clear_context(ctx); free(ctx);
- }
-
- // Getters for sass context from specific implementations
- struct Sass_Context* ADDCALL sass_file_context_get_context(struct Sass_File_Context* ctx) { return ctx; }
- struct Sass_Context* ADDCALL sass_data_context_get_context(struct Sass_Data_Context* ctx) { return ctx; }
-
- // Getters for context options from Sass_Context
- struct Sass_Options* ADDCALL sass_context_get_options(struct Sass_Context* ctx) { return ctx; }
- struct Sass_Options* ADDCALL sass_file_context_get_options(struct Sass_File_Context* ctx) { return ctx; }
- struct Sass_Options* ADDCALL sass_data_context_get_options(struct Sass_Data_Context* ctx) { return ctx; }
- void ADDCALL sass_file_context_set_options (struct Sass_File_Context* ctx, struct Sass_Options* opt) { copy_options(ctx, opt); }
- void ADDCALL sass_data_context_set_options (struct Sass_Data_Context* ctx, struct Sass_Options* opt) { copy_options(ctx, opt); }
-
- // Getters for Sass_Compiler options (get conected sass context)
- enum Sass_Compiler_State ADDCALL sass_compiler_get_state(struct Sass_Compiler* compiler) { return compiler->state; }
- struct Sass_Context* ADDCALL sass_compiler_get_context(struct Sass_Compiler* compiler) { return compiler->c_ctx; }
- struct Sass_Options* ADDCALL sass_compiler_get_options(struct Sass_Compiler* compiler) { return compiler->c_ctx; }
- // Getters for Sass_Compiler options (query import stack)
- size_t ADDCALL sass_compiler_get_import_stack_size(struct Sass_Compiler* compiler) { return compiler->cpp_ctx->import_stack.size(); }
- Sass_Import_Entry ADDCALL sass_compiler_get_last_import(struct Sass_Compiler* compiler) { return compiler->cpp_ctx->import_stack.back(); }
- Sass_Import_Entry ADDCALL sass_compiler_get_import_entry(struct Sass_Compiler* compiler, size_t idx) { return compiler->cpp_ctx->import_stack[idx]; }
- // Getters for Sass_Compiler options (query function stack)
- size_t ADDCALL sass_compiler_get_callee_stack_size(struct Sass_Compiler* compiler) { return compiler->cpp_ctx->callee_stack.size(); }
- Sass_Callee_Entry ADDCALL sass_compiler_get_last_callee(struct Sass_Compiler* compiler) { return &compiler->cpp_ctx->callee_stack.back(); }
- Sass_Callee_Entry ADDCALL sass_compiler_get_callee_entry(struct Sass_Compiler* compiler, size_t idx) { return &compiler->cpp_ctx->callee_stack[idx]; }
-
- // Calculate the size of the stored null terminated array
- size_t ADDCALL sass_context_get_included_files_size (struct Sass_Context* ctx)
- { size_t l = 0; auto i = ctx->included_files; while (i && *i) { ++i; ++l; } return l; }
-
- // Create getter and setters for options
- IMPLEMENT_SASS_OPTION_ACCESSOR(int, precision);
- IMPLEMENT_SASS_OPTION_ACCESSOR(enum Sass_Output_Style, output_style);
- IMPLEMENT_SASS_OPTION_ACCESSOR(bool, source_comments);
- IMPLEMENT_SASS_OPTION_ACCESSOR(bool, source_map_embed);
- IMPLEMENT_SASS_OPTION_ACCESSOR(bool, source_map_contents);
- IMPLEMENT_SASS_OPTION_ACCESSOR(bool, source_map_file_urls);
- IMPLEMENT_SASS_OPTION_ACCESSOR(bool, omit_source_map_url);
- IMPLEMENT_SASS_OPTION_ACCESSOR(bool, is_indented_syntax_src);
- IMPLEMENT_SASS_OPTION_ACCESSOR(Sass_Function_List, c_functions);
- IMPLEMENT_SASS_OPTION_ACCESSOR(Sass_Importer_List, c_importers);
- IMPLEMENT_SASS_OPTION_ACCESSOR(Sass_Importer_List, c_headers);
- IMPLEMENT_SASS_OPTION_ACCESSOR(const char*, indent);
- IMPLEMENT_SASS_OPTION_ACCESSOR(const char*, linefeed);
- IMPLEMENT_SASS_OPTION_STRING_SETTER(const char*, plugin_path, 0);
- IMPLEMENT_SASS_OPTION_STRING_SETTER(const char*, include_path, 0);
- IMPLEMENT_SASS_OPTION_STRING_ACCESSOR(const char*, input_path, 0);
- IMPLEMENT_SASS_OPTION_STRING_ACCESSOR(const char*, output_path, 0);
- IMPLEMENT_SASS_OPTION_STRING_ACCESSOR(const char*, source_map_file, 0);
- IMPLEMENT_SASS_OPTION_STRING_ACCESSOR(const char*, source_map_root, 0);
-
- // Create getter and setters for context
- IMPLEMENT_SASS_CONTEXT_GETTER(int, error_status);
- IMPLEMENT_SASS_CONTEXT_GETTER(const char*, error_json);
- IMPLEMENT_SASS_CONTEXT_GETTER(const char*, error_message);
- IMPLEMENT_SASS_CONTEXT_GETTER(const char*, error_text);
- IMPLEMENT_SASS_CONTEXT_GETTER(const char*, error_file);
- IMPLEMENT_SASS_CONTEXT_GETTER(size_t, error_line);
- IMPLEMENT_SASS_CONTEXT_GETTER(size_t, error_column);
- IMPLEMENT_SASS_CONTEXT_GETTER(const char*, error_src);
- IMPLEMENT_SASS_CONTEXT_GETTER(const char*, output_string);
- IMPLEMENT_SASS_CONTEXT_GETTER(const char*, source_map_string);
- IMPLEMENT_SASS_CONTEXT_GETTER(char**, included_files);
-
- // Take ownership of memory (value on context is set to 0)
- IMPLEMENT_SASS_CONTEXT_TAKER(char*, error_json);
- IMPLEMENT_SASS_CONTEXT_TAKER(char*, error_message);
- IMPLEMENT_SASS_CONTEXT_TAKER(char*, error_text);
- IMPLEMENT_SASS_CONTEXT_TAKER(char*, error_file);
- IMPLEMENT_SASS_CONTEXT_TAKER(char*, output_string);
- IMPLEMENT_SASS_CONTEXT_TAKER(char*, source_map_string);
- IMPLEMENT_SASS_CONTEXT_TAKER(char**, included_files);
-
- // Push function for include paths (no manipulation support for now)
- void ADDCALL sass_option_push_include_path(struct Sass_Options* options, const char* path)
- {
-
- struct string_list* include_path = (struct string_list*) calloc(1, sizeof(struct string_list));
- if (include_path == 0) return;
- include_path->string = path ? sass_copy_c_string(path) : 0;
- struct string_list* last = options->include_paths;
- if (!options->include_paths) {
- options->include_paths = include_path;
- } else {
- while (last->next)
- last = last->next;
- last->next = include_path;
- }
-
- }
-
- // Push function for include paths (no manipulation support for now)
- size_t ADDCALL sass_option_get_include_path_size(struct Sass_Options* options)
- {
- size_t len = 0;
- struct string_list* cur = options->include_paths;
- while (cur) { len ++; cur = cur->next; }
- return len;
- }
-
- // Push function for include paths (no manipulation support for now)
- const char* ADDCALL sass_option_get_include_path(struct Sass_Options* options, size_t i)
- {
- struct string_list* cur = options->include_paths;
- while (i) { i--; cur = cur->next; }
- return cur->string;
- }
-
- // Push function for plugin paths (no manipulation support for now)
- void ADDCALL sass_option_push_plugin_path(struct Sass_Options* options, const char* path)
- {
-
- struct string_list* plugin_path = (struct string_list*) calloc(1, sizeof(struct string_list));
- if (plugin_path == 0) return;
- plugin_path->string = path ? sass_copy_c_string(path) : 0;
- struct string_list* last = options->plugin_paths;
- if (!options->plugin_paths) {
- options->plugin_paths = plugin_path;
- } else {
- while (last->next)
- last = last->next;
- last->next = plugin_path;
- }
-
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/sass_context.hpp b/node_modules/node-sass/src/libsass/src/sass_context.hpp
deleted file mode 100644
index 8ae1fb1..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_context.hpp
+++ /dev/null
@@ -1,129 +0,0 @@
-#ifndef SASS_SASS_CONTEXT_H
-#define SASS_SASS_CONTEXT_H
-
-#include "sass/base.h"
-#include "sass/context.h"
-#include "ast_fwd_decl.hpp"
-
-// sass config options structure
-struct Sass_Options : Sass_Output_Options {
-
- // embed sourceMappingUrl as data uri
- bool source_map_embed;
-
- // embed include contents in maps
- bool source_map_contents;
-
- // create file urls for sources
- bool source_map_file_urls;
-
- // Disable sourceMappingUrl in css output
- bool omit_source_map_url;
-
- // Treat source_string as sass (as opposed to scss)
- bool is_indented_syntax_src;
-
- // The input path is used for source map
- // generation. It can be used to define
- // something with string compilation or to
- // overload the input file path. It is
- // set to "stdin" for data contexts and
- // to the input file on file contexts.
- char* input_path;
-
- // The output path is used for source map
- // generation. LibSass will not write to
- // this file, it is just used to create
- // information in source-maps etc.
- char* output_path;
-
- // Colon-separated list of paths
- // Semicolon-separated on Windows
- // Maybe use array interface instead?
- char* include_path;
- char* plugin_path;
-
- // Include paths (linked string list)
- struct string_list* include_paths;
- // Plugin paths (linked string list)
- struct string_list* plugin_paths;
-
- // Path to source map file
- // Enables source map generation
- // Used to create sourceMappingUrl
- char* source_map_file;
-
- // Directly inserted in source maps
- char* source_map_root;
-
- // Custom functions that can be called from sccs code
- Sass_Function_List c_functions;
-
- // List of custom importers
- Sass_Importer_List c_importers;
-
- // List of custom headers
- Sass_Importer_List c_headers;
-
-};
-
-
-// base for all contexts
-struct Sass_Context : Sass_Options
-{
-
- // store context type info
- enum Sass_Input_Style type;
-
- // generated output data
- char* output_string;
-
- // generated source map json
- char* source_map_string;
-
- // error status
- int error_status;
- char* error_json;
- char* error_text;
- char* error_message;
- // error position
- char* error_file;
- size_t error_line;
- size_t error_column;
- const char* error_src;
-
- // report imported files
- char** included_files;
-
-};
-
-// struct for file compilation
-struct Sass_File_Context : Sass_Context {
-
- // no additional fields required
- // input_path is already on options
-
-};
-
-// struct for data compilation
-struct Sass_Data_Context : Sass_Context {
-
- // provided source string
- char* source_string;
- char* srcmap_string;
-
-};
-
-// link c and cpp context
-struct Sass_Compiler {
- // progress status
- Sass_Compiler_State state;
- // original c context
- Sass_Context* c_ctx;
- // Sass::Context
- Sass::Context* cpp_ctx;
- // Sass::Block
- Sass::Block_Obj root;
-};
-
-#endif \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/src/sass_functions.cpp b/node_modules/node-sass/src/libsass/src/sass_functions.cpp
deleted file mode 100644
index bfbf258..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_functions.cpp
+++ /dev/null
@@ -1,207 +0,0 @@
-#include "sass.hpp"
-#include <cstring>
-#include "util.hpp"
-#include "context.hpp"
-#include "values.hpp"
-#include "sass/functions.h"
-#include "sass_functions.hpp"
-
-extern "C" {
- using namespace Sass;
-
- Sass_Function_List ADDCALL sass_make_function_list(size_t length)
- {
- return (Sass_Function_List) calloc(length + 1, sizeof(Sass_Function_Entry));
- }
-
- Sass_Function_Entry ADDCALL sass_make_function(const char* signature, Sass_Function_Fn function, void* cookie)
- {
- Sass_Function_Entry cb = (Sass_Function_Entry) calloc(1, sizeof(Sass_Function));
- if (cb == 0) return 0;
- cb->signature = sass_copy_c_string(signature);
- cb->function = function;
- cb->cookie = cookie;
- return cb;
- }
-
- void ADDCALL sass_delete_function(Sass_Function_Entry entry)
- {
- free(entry->signature);
- free(entry);
- }
-
- // Deallocator for the allocated memory
- void ADDCALL sass_delete_function_list(Sass_Function_List list)
- {
- Sass_Function_List it = list;
- if (list == 0) return;
- while(*list) {
- sass_delete_function(*list);
- ++list;
- }
- free(it);
- }
-
- // Setters and getters for callbacks on function lists
- Sass_Function_Entry ADDCALL sass_function_get_list_entry(Sass_Function_List list, size_t pos) { return list[pos]; }
- void sass_function_set_list_entry(Sass_Function_List list, size_t pos, Sass_Function_Entry cb) { list[pos] = cb; }
-
- const char* ADDCALL sass_function_get_signature(Sass_Function_Entry cb) { return cb->signature; }
- Sass_Function_Fn ADDCALL sass_function_get_function(Sass_Function_Entry cb) { return cb->function; }
- void* ADDCALL sass_function_get_cookie(Sass_Function_Entry cb) { return cb->cookie; }
-
- Sass_Importer_Entry ADDCALL sass_make_importer(Sass_Importer_Fn importer, double priority, void* cookie)
- {
- Sass_Importer_Entry cb = (Sass_Importer_Entry) calloc(1, sizeof(Sass_Importer));
- if (cb == 0) return 0;
- cb->importer = importer;
- cb->priority = priority;
- cb->cookie = cookie;
- return cb;
- }
-
- Sass_Importer_Fn ADDCALL sass_importer_get_function(Sass_Importer_Entry cb) { return cb->importer; }
- double ADDCALL sass_importer_get_priority (Sass_Importer_Entry cb) { return cb->priority; }
- void* ADDCALL sass_importer_get_cookie(Sass_Importer_Entry cb) { return cb->cookie; }
-
- // Just in case we have some stray import structs
- void ADDCALL sass_delete_importer (Sass_Importer_Entry cb)
- {
- free(cb);
- }
-
- // Creator for sass custom importer function list
- Sass_Importer_List ADDCALL sass_make_importer_list(size_t length)
- {
- return (Sass_Importer_List) calloc(length + 1, sizeof(Sass_Importer_Entry));
- }
-
- // Deallocator for the allocated memory
- void ADDCALL sass_delete_importer_list(Sass_Importer_List list)
- {
- Sass_Importer_List it = list;
- if (list == 0) return;
- while(*list) {
- sass_delete_importer(*list);
- ++list;
- }
- free(it);
- }
-
- Sass_Importer_Entry ADDCALL sass_importer_get_list_entry(Sass_Importer_List list, size_t idx) { return list[idx]; }
- void ADDCALL sass_importer_set_list_entry(Sass_Importer_List list, size_t idx, Sass_Importer_Entry cb) { list[idx] = cb; }
-
- // Creator for sass custom importer return argument list
- Sass_Import_List ADDCALL sass_make_import_list(size_t length)
- {
- return (Sass_Import**) calloc(length + 1, sizeof(Sass_Import*));
- }
-
- // Creator for a single import entry returned by the custom importer inside the list
- // We take ownership of the memory for source and srcmap (freed when context is destroyd)
- Sass_Import_Entry ADDCALL sass_make_import(const char* imp_path, const char* abs_path, char* source, char* srcmap)
- {
- Sass_Import* v = (Sass_Import*) calloc(1, sizeof(Sass_Import));
- if (v == 0) return 0;
- v->imp_path = imp_path ? sass_copy_c_string(imp_path) : 0;
- v->abs_path = abs_path ? sass_copy_c_string(abs_path) : 0;
- v->source = source;
- v->srcmap = srcmap;
- v->error = 0;
- v->line = -1;
- v->column = -1;
- return v;
- }
-
- // Older style, but somehow still valid - keep around or deprecate?
- Sass_Import_Entry ADDCALL sass_make_import_entry(const char* path, char* source, char* srcmap)
- {
- return sass_make_import(path, path, source, srcmap);
- }
-
- // Upgrade a normal import entry to throw an error (original path can be re-used by error reporting)
- Sass_Import_Entry ADDCALL sass_import_set_error(Sass_Import_Entry import, const char* error, size_t line, size_t col)
- {
- if (import == 0) return 0;
- if (import->error) free(import->error);
- import->error = error ? sass_copy_c_string(error) : 0;
- import->line = line ? line : -1;
- import->column = col ? col : -1;
- return import;
- }
-
- // Setters and getters for entries on the import list
- void ADDCALL sass_import_set_list_entry(Sass_Import_List list, size_t idx, Sass_Import_Entry entry) { list[idx] = entry; }
- Sass_Import_Entry ADDCALL sass_import_get_list_entry(Sass_Import_List list, size_t idx) { return list[idx]; }
-
- // Deallocator for the allocated memory
- void ADDCALL sass_delete_import_list(Sass_Import_List list)
- {
- Sass_Import_List it = list;
- if (list == 0) return;
- while(*list) {
- sass_delete_import(*list);
- ++list;
- }
- free(it);
- }
-
- // Just in case we have some stray import structs
- void ADDCALL sass_delete_import(Sass_Import_Entry import)
- {
- free(import->imp_path);
- free(import->abs_path);
- free(import->source);
- free(import->srcmap);
- free(import->error);
- free(import);
- }
-
- // Getter for callee entry
- const char* ADDCALL sass_callee_get_name(Sass_Callee_Entry entry) { return entry->name; }
- const char* ADDCALL sass_callee_get_path(Sass_Callee_Entry entry) { return entry->path; }
- size_t ADDCALL sass_callee_get_line(Sass_Callee_Entry entry) { return entry->line; }
- size_t ADDCALL sass_callee_get_column(Sass_Callee_Entry entry) { return entry->column; }
- enum Sass_Callee_Type ADDCALL sass_callee_get_type(Sass_Callee_Entry entry) { return entry->type; }
- Sass_Env_Frame ADDCALL sass_callee_get_env (Sass_Callee_Entry entry) { return &entry->env; }
-
- // Getters and Setters for environments (lexical, local and global)
- union Sass_Value* ADDCALL sass_env_get_lexical (Sass_Env_Frame env, const char* name) {
- Expression_Ptr ex = Cast<Expression>((*env->frame)[name]);
- return ex != NULL ? ast_node_to_sass_value(ex) : NULL;
- }
- void ADDCALL sass_env_set_lexical (Sass_Env_Frame env, const char* name, union Sass_Value* val) {
- (*env->frame)[name] = sass_value_to_ast_node(val);
- }
- union Sass_Value* ADDCALL sass_env_get_local (Sass_Env_Frame env, const char* name) {
- Expression_Ptr ex = Cast<Expression>(env->frame->get_local(name));
- return ex != NULL ? ast_node_to_sass_value(ex) : NULL;
- }
- void ADDCALL sass_env_set_local (Sass_Env_Frame env, const char* name, union Sass_Value* val) {
- env->frame->set_local(name, sass_value_to_ast_node(val));
- }
- union Sass_Value* ADDCALL sass_env_get_global (Sass_Env_Frame env, const char* name) {
- Expression_Ptr ex = Cast<Expression>(env->frame->get_global(name));
- return ex != NULL ? ast_node_to_sass_value(ex) : NULL;
- }
- void ADDCALL sass_env_set_global (Sass_Env_Frame env, const char* name, union Sass_Value* val) {
- env->frame->set_global(name, sass_value_to_ast_node(val));
- }
-
- // Getter for import entry
- const char* ADDCALL sass_import_get_imp_path(Sass_Import_Entry entry) { return entry->imp_path; }
- const char* ADDCALL sass_import_get_abs_path(Sass_Import_Entry entry) { return entry->abs_path; }
- const char* ADDCALL sass_import_get_source(Sass_Import_Entry entry) { return entry->source; }
- const char* ADDCALL sass_import_get_srcmap(Sass_Import_Entry entry) { return entry->srcmap; }
-
- // Getter for import error entry
- size_t ADDCALL sass_import_get_error_line(Sass_Import_Entry entry) { return entry->line; }
- size_t ADDCALL sass_import_get_error_column(Sass_Import_Entry entry) { return entry->column; }
- const char* ADDCALL sass_import_get_error_message(Sass_Import_Entry entry) { return entry->error; }
-
- // Explicit functions to take ownership of the memory
- // Resets our own property since we do not know if it is still alive
- char* ADDCALL sass_import_take_source(Sass_Import_Entry entry) { char* ptr = entry->source; entry->source = 0; return ptr; }
- char* ADDCALL sass_import_take_srcmap(Sass_Import_Entry entry) { char* ptr = entry->srcmap; entry->srcmap = 0; return ptr; }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/sass_functions.hpp b/node_modules/node-sass/src/libsass/src/sass_functions.hpp
deleted file mode 100644
index 3b646d6..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_functions.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef SASS_SASS_FUNCTIONS_H
-#define SASS_SASS_FUNCTIONS_H
-
-#include "sass.h"
-#include "environment.hpp"
-#include "functions.hpp"
-
-// Struct to hold custom function callback
-struct Sass_Function {
- char* signature;
- Sass_Function_Fn function;
- void* cookie;
-};
-
-// External import entry
-struct Sass_Import {
- char* imp_path; // path as found in the import statement
- char *abs_path; // path after importer has resolved it
- char* source;
- char* srcmap;
- // error handling
- char* error;
- size_t line;
- size_t column;
-};
-
-// External environments
-struct Sass_Env {
- // links to parent frames
- Sass::Env* frame;
-};
-
-// External call entry
-struct Sass_Callee {
- const char* name;
- const char* path;
- size_t line;
- size_t column;
- enum Sass_Callee_Type type;
- struct Sass_Env env;
-};
-
-// Struct to hold importer callback
-struct Sass_Importer {
- Sass_Importer_Fn importer;
- double priority;
- void* cookie;
-};
-
-#endif \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/src/sass_util.cpp b/node_modules/node-sass/src/libsass/src/sass_util.cpp
deleted file mode 100644
index 3aef2bc..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_util.cpp
+++ /dev/null
@@ -1,149 +0,0 @@
-#include "sass.hpp"
-#include "node.hpp"
-
-namespace Sass {
-
-
- /*
- # This is the equivalent of ruby's Sass::Util.paths.
- #
- # Return an array of all possible paths through the given arrays.
- #
- # @param arrs [NodeCollection<NodeCollection<Node>>]
- # @return [NodeCollection<NodeCollection<Node>>]
- #
- # @example
- # paths([[1, 2], [3, 4], [5]]) #=>
- # # [[1, 3, 5],
- # # [2, 3, 5],
- # # [1, 4, 5],
- # # [2, 4, 5]]
-
- The following is the modified version of the ruby code that was more portable to C++. You
- should be able to drop it into ruby 3.2.19 and get the same results from ruby sass.
-
- def paths(arrs)
- // I changed the inject and maps to an iterative approach to make it easier to implement in C++
- loopStart = [[]]
-
- for arr in arrs do
- permutations = []
- for e in arr do
- for path in loopStart do
- permutations.push(path + [e])
- end
- end
- loopStart = permutations
- end
- end
- */
- Node paths(const Node& arrs) {
-
- Node loopStart = Node::createCollection();
- loopStart.collection()->push_back(Node::createCollection());
-
- for (NodeDeque::iterator arrsIter = arrs.collection()->begin(), arrsEndIter = arrs.collection()->end();
- arrsIter != arrsEndIter; ++arrsIter) {
-
- Node& arr = *arrsIter;
-
- Node permutations = Node::createCollection();
-
- for (NodeDeque::iterator arrIter = arr.collection()->begin(), arrIterEnd = arr.collection()->end();
- arrIter != arrIterEnd; ++arrIter) {
-
- Node& e = *arrIter;
-
- for (NodeDeque::iterator loopStartIter = loopStart.collection()->begin(), loopStartIterEnd = loopStart.collection()->end();
- loopStartIter != loopStartIterEnd; ++loopStartIter) {
-
- Node& path = *loopStartIter;
-
- Node newPermutation = Node::createCollection();
- newPermutation.got_line_feed = arr.got_line_feed;
- newPermutation.plus(path);
- newPermutation.collection()->push_back(e);
-
- permutations.collection()->push_back(newPermutation);
- }
- }
-
- loopStart = permutations;
- }
-
- return loopStart;
- }
-
-
- /*
- This is the equivalent of ruby sass' Sass::Util.flatten and [].flatten.
- Sass::Util.flatten requires the number of levels to flatten, while
- [].flatten doesn't and will flatten the entire array. This function
- supports both.
-
- # Flattens the first `n` nested arrays. If n == -1, all arrays will be flattened
- #
- # @param arr [NodeCollection] The array to flatten
- # @param n [int] The number of levels to flatten
- # @return [NodeCollection] The flattened array
-
- The following is the modified version of the ruby code that was more portable to C++. You
- should be able to drop it into ruby 3.2.19 and get the same results from ruby sass.
-
- def flatten(arr, n = -1)
- if n != -1 and n == 0 then
- return arr
- end
-
- flattened = []
-
- for e in arr do
- if e.is_a?(Array) then
- flattened.concat(flatten(e, n - 1))
- else
- flattened << e
- end
- end
-
- return flattened
- end
- */
- Node flatten(Node& arr, int n) {
- if (n != -1 && n == 0) {
- return arr;
- }
-
- Node flattened = Node::createCollection();
- if (arr.got_line_feed) flattened.got_line_feed = true;
-
- for (NodeDeque::iterator iter = arr.collection()->begin(), iterEnd = arr.collection()->end();
- iter != iterEnd; iter++) {
- Node& e = *iter;
-
- // e has the lf set
- if (e.isCollection()) {
-
- // e.collection().got_line_feed = e.got_line_feed;
- Node recurseFlattened = flatten(e, n - 1);
-
- if(e.got_line_feed) {
- flattened.got_line_feed = e.got_line_feed;
- recurseFlattened.got_line_feed = e.got_line_feed;
- }
-
- for(auto i : (*recurseFlattened.collection())) {
- if (recurseFlattened.got_line_feed) {
-
- i.got_line_feed = true;
- }
- flattened.collection()->push_back(i);
- }
-
- } else {
- flattened.collection()->push_back(e);
- }
- }
-
- return flattened;
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/sass_util.hpp b/node_modules/node-sass/src/libsass/src/sass_util.hpp
deleted file mode 100644
index 816da5f..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_util.hpp
+++ /dev/null
@@ -1,256 +0,0 @@
-#ifndef SASS_SASS_UTIL_H
-#define SASS_SASS_UTIL_H
-
-#include "ast.hpp"
-#include "node.hpp"
-#include "debug.hpp"
-
-namespace Sass {
-
-
-
-
- /*
- This is for ports of functions in the Sass:Util module.
- */
-
-
- /*
- # Return a Node collection of all possible paths through the given Node collection of Node collections.
- #
- # @param arrs [NodeCollection<NodeCollection<Node>>]
- # @return [NodeCollection<NodeCollection<Node>>]
- #
- # @example
- # paths([[1, 2], [3, 4], [5]]) #=>
- # # [[1, 3, 5],
- # # [2, 3, 5],
- # # [1, 4, 5],
- # # [2, 4, 5]]
- */
- Node paths(const Node& arrs);
-
-
- /*
- This class is a default implementation of a Node comparator that can be passed to the lcs function below.
- It uses operator== for equality comparision. It then returns one if the Nodes are equal.
- */
- class DefaultLcsComparator {
- public:
- bool operator()(const Node& one, const Node& two, Node& out) const {
- // TODO: Is this the correct C++ interpretation?
- // block ||= proc {|a, b| a == b && a}
- if (one == two) {
- out = one;
- return true;
- }
-
- return false;
- }
- };
-
-
- typedef std::vector<std::vector<int> > LCSTable;
-
-
- /*
- This is the equivalent of ruby's Sass::Util.lcs_backtrace.
-
- # Computes a single longest common subsequence for arrays x and y.
- # Algorithm from http://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Reading_out_an_LCS
- */
- template<typename ComparatorType>
- Node lcs_backtrace(const LCSTable& c, const Node& x, const Node& y, int i, int j, const ComparatorType& comparator) {
- DEBUG_PRINTLN(LCS, "LCSBACK: X=" << x << " Y=" << y << " I=" << i << " J=" << j)
-
- if (i == 0 || j == 0) {
- DEBUG_PRINTLN(LCS, "RETURNING EMPTY")
- return Node::createCollection();
- }
-
- NodeDeque& xChildren = *(x.collection());
- NodeDeque& yChildren = *(y.collection());
-
- Node compareOut = Node::createNil();
- if (comparator(xChildren[i], yChildren[j], compareOut)) {
- DEBUG_PRINTLN(LCS, "RETURNING AFTER ELEM COMPARE")
- Node result = lcs_backtrace(c, x, y, i - 1, j - 1, comparator);
- result.collection()->push_back(compareOut);
- return result;
- }
-
- if (c[i][j - 1] > c[i - 1][j]) {
- DEBUG_PRINTLN(LCS, "RETURNING AFTER TABLE COMPARE")
- return lcs_backtrace(c, x, y, i, j - 1, comparator);
- }
-
- DEBUG_PRINTLN(LCS, "FINAL RETURN")
- return lcs_backtrace(c, x, y, i - 1, j, comparator);
- }
-
-
- /*
- This is the equivalent of ruby's Sass::Util.lcs_table.
-
- # Calculates the memoization table for the Least Common Subsequence algorithm.
- # Algorithm from http://en.wikipedia.org/wiki/Longest_common_subsequence_problem#Computing_the_length_of_the_LCS
- */
- template<typename ComparatorType>
- void lcs_table(const Node& x, const Node& y, const ComparatorType& comparator, LCSTable& out) {
- DEBUG_PRINTLN(LCS, "LCSTABLE: X=" << x << " Y=" << y)
-
- NodeDeque& xChildren = *(x.collection());
- NodeDeque& yChildren = *(y.collection());
-
- LCSTable c(xChildren.size(), std::vector<int>(yChildren.size()));
-
- // These shouldn't be necessary since the vector will be initialized to 0 already.
- // x.size.times {|i| c[i][0] = 0}
- // y.size.times {|j| c[0][j] = 0}
-
- for (size_t i = 1; i < xChildren.size(); i++) {
- for (size_t j = 1; j < yChildren.size(); j++) {
- Node compareOut = Node::createNil();
-
- if (comparator(xChildren[i], yChildren[j], compareOut)) {
- c[i][j] = c[i - 1][j - 1] + 1;
- } else {
- c[i][j] = std::max(c[i][j - 1], c[i - 1][j]);
- }
- }
- }
-
- out = c;
- }
-
-
- /*
- This is the equivalent of ruby's Sass::Util.lcs.
-
- # Computes a single longest common subsequence for `x` and `y`.
- # If there are more than one longest common subsequences,
- # the one returned is that which starts first in `x`.
-
- # @param x [NodeCollection]
- # @param y [NodeCollection]
- # @comparator An equality check between elements of `x` and `y`.
- # @return [NodeCollection] The LCS
-
- http://en.wikipedia.org/wiki/Longest_common_subsequence_problem
- */
- template<typename ComparatorType>
- Node lcs(Node& x, Node& y, const ComparatorType& comparator) {
- DEBUG_PRINTLN(LCS, "LCS: X=" << x << " Y=" << y)
-
- Node newX = Node::createCollection();
- newX.collection()->push_back(Node::createNil());
- newX.plus(x);
-
- Node newY = Node::createCollection();
- newY.collection()->push_back(Node::createNil());
- newY.plus(y);
-
- LCSTable table;
- lcs_table(newX, newY, comparator, table);
-
- return lcs_backtrace(table, newX, newY, static_cast<int>(newX.collection()->size()) - 1, static_cast<int>(newY.collection()->size()) - 1, comparator);
- }
-
-
- /*
- This is the equivalent of ruby sass' Sass::Util.flatten and [].flatten.
- Sass::Util.flatten requires the number of levels to flatten, while
- [].flatten doesn't and will flatten the entire array. This function
- supports both.
-
- # Flattens the first `n` nested arrays. If n == -1, all arrays will be flattened
- #
- # @param arr [NodeCollection] The array to flatten
- # @param n [int] The number of levels to flatten
- # @return [NodeCollection] The flattened array
- */
- Node flatten(Node& arr, int n = -1);
-
-
- /*
- This is the equivalent of ruby's Sass::Util.group_by_to_a.
-
- # Performs the equivalent of `enum.group_by.to_a`, but with a guaranteed
- # order. Unlike [#hash_to_a], the resulting order isn't sorted key order;
- # instead, it's the same order as `#group_by` has under Ruby 1.9 (key
- # appearance order).
- #
- # @param enum [Enumerable]
- # @return [Array<[Object, Array]>] An array of pairs.
-
- TODO: update @param and @return once I know what those are.
-
- The following is the modified version of the ruby code that was more portable to C++. You
- should be able to drop it into ruby 3.2.19 and get the same results from ruby sass.
-
- def group_by_to_a(enum, &block)
- order = {}
-
- arr = []
-
- grouped = {}
-
- for e in enum do
- key = block[e]
- unless order.include?(key)
- order[key] = order.size
- end
-
- if not grouped.has_key?(key) then
- grouped[key] = [e]
- else
- grouped[key].push(e)
- end
- end
-
- grouped.each do |key, vals|
- arr[order[key]] = [key, vals]
- end
-
- arr
- end
-
- */
- template<typename EnumType, typename KeyType, typename KeyFunctorType>
- void group_by_to_a(std::vector<EnumType>& enumeration, KeyFunctorType& keyFunc, std::vector<std::pair<KeyType, std::vector<EnumType> > >& arr /*out*/) {
-
- std::map<unsigned int, KeyType> order;
-
- std::map<size_t, std::vector<EnumType> > grouped;
-
- for (typename std::vector<EnumType>::iterator enumIter = enumeration.begin(), enumIterEnd = enumeration.end(); enumIter != enumIterEnd; enumIter++) {
- EnumType& e = *enumIter;
-
- KeyType key = keyFunc(e);
-
- if (grouped.find(key->hash()) == grouped.end()) {
- order.insert(std::make_pair((unsigned int)order.size(), key));
-
- std::vector<EnumType> newCollection;
- newCollection.push_back(e);
- grouped.insert(std::make_pair(key->hash(), newCollection));
- } else {
- std::vector<EnumType>& collection = grouped.at(key->hash());
- collection.push_back(e);
- }
- }
-
- for (unsigned int index = 0; index < order.size(); index++) {
- KeyType& key = order.at(index);
- std::vector<EnumType>& values = grouped.at(key->hash());
-
- std::pair<KeyType, std::vector<EnumType> > grouping = std::make_pair(key, values);
-
- arr.push_back(grouping);
- }
- }
-
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/sass_values.cpp b/node_modules/node-sass/src/libsass/src/sass_values.cpp
deleted file mode 100644
index 34c591a..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_values.cpp
+++ /dev/null
@@ -1,357 +0,0 @@
-#include "sass.hpp"
-#include <cstdlib>
-#include <cstring>
-#include "util.hpp"
-#include "eval.hpp"
-#include "values.hpp"
-#include "operators.hpp"
-#include "sass/values.h"
-#include "sass_values.hpp"
-
-extern "C" {
- using namespace Sass;
-
- // Return the sass tag for a generic sass value
- enum Sass_Tag ADDCALL sass_value_get_tag(const union Sass_Value* v) { return v->unknown.tag; }
-
- // Check value for specified type
- bool ADDCALL sass_value_is_null(const union Sass_Value* v) { return v->unknown.tag == SASS_NULL; }
- bool ADDCALL sass_value_is_number(const union Sass_Value* v) { return v->unknown.tag == SASS_NUMBER; }
- bool ADDCALL sass_value_is_string(const union Sass_Value* v) { return v->unknown.tag == SASS_STRING; }
- bool ADDCALL sass_value_is_boolean(const union Sass_Value* v) { return v->unknown.tag == SASS_BOOLEAN; }
- bool ADDCALL sass_value_is_color(const union Sass_Value* v) { return v->unknown.tag == SASS_COLOR; }
- bool ADDCALL sass_value_is_list(const union Sass_Value* v) { return v->unknown.tag == SASS_LIST; }
- bool ADDCALL sass_value_is_map(const union Sass_Value* v) { return v->unknown.tag == SASS_MAP; }
- bool ADDCALL sass_value_is_error(const union Sass_Value* v) { return v->unknown.tag == SASS_ERROR; }
- bool ADDCALL sass_value_is_warning(const union Sass_Value* v) { return v->unknown.tag == SASS_WARNING; }
-
- // Getters and setters for Sass_Number
- double ADDCALL sass_number_get_value(const union Sass_Value* v) { return v->number.value; }
- void ADDCALL sass_number_set_value(union Sass_Value* v, double value) { v->number.value = value; }
- const char* ADDCALL sass_number_get_unit(const union Sass_Value* v) { return v->number.unit; }
- void ADDCALL sass_number_set_unit(union Sass_Value* v, char* unit) { v->number.unit = unit; }
-
- // Getters and setters for Sass_String
- const char* ADDCALL sass_string_get_value(const union Sass_Value* v) { return v->string.value; }
- void ADDCALL sass_string_set_value(union Sass_Value* v, char* value) { v->string.value = value; }
- bool ADDCALL sass_string_is_quoted(const union Sass_Value* v) { return v->string.quoted; }
- void ADDCALL sass_string_set_quoted(union Sass_Value* v, bool quoted) { v->string.quoted = quoted; }
-
- // Getters and setters for Sass_Boolean
- bool ADDCALL sass_boolean_get_value(const union Sass_Value* v) { return v->boolean.value; }
- void ADDCALL sass_boolean_set_value(union Sass_Value* v, bool value) { v->boolean.value = value; }
-
- // Getters and setters for Sass_Color
- double ADDCALL sass_color_get_r(const union Sass_Value* v) { return v->color.r; }
- void ADDCALL sass_color_set_r(union Sass_Value* v, double r) { v->color.r = r; }
- double ADDCALL sass_color_get_g(const union Sass_Value* v) { return v->color.g; }
- void ADDCALL sass_color_set_g(union Sass_Value* v, double g) { v->color.g = g; }
- double ADDCALL sass_color_get_b(const union Sass_Value* v) { return v->color.b; }
- void ADDCALL sass_color_set_b(union Sass_Value* v, double b) { v->color.b = b; }
- double ADDCALL sass_color_get_a(const union Sass_Value* v) { return v->color.a; }
- void ADDCALL sass_color_set_a(union Sass_Value* v, double a) { v->color.a = a; }
-
- // Getters and setters for Sass_List
- size_t ADDCALL sass_list_get_length(const union Sass_Value* v) { return v->list.length; }
- enum Sass_Separator ADDCALL sass_list_get_separator(const union Sass_Value* v) { return v->list.separator; }
- void ADDCALL sass_list_set_separator(union Sass_Value* v, enum Sass_Separator separator) { v->list.separator = separator; }
- bool ADDCALL sass_list_get_is_bracketed(const union Sass_Value* v) { return v->list.is_bracketed; }
- void ADDCALL sass_list_set_is_bracketed(union Sass_Value* v, bool is_bracketed) { v->list.is_bracketed = is_bracketed; }
- // Getters and setters for Sass_List values
- union Sass_Value* ADDCALL sass_list_get_value(const union Sass_Value* v, size_t i) { return v->list.values[i]; }
- void ADDCALL sass_list_set_value(union Sass_Value* v, size_t i, union Sass_Value* value) { v->list.values[i] = value; }
-
- // Getters and setters for Sass_Map
- size_t ADDCALL sass_map_get_length(const union Sass_Value* v) { return v->map.length; }
- // Getters and setters for Sass_List keys and values
- union Sass_Value* ADDCALL sass_map_get_key(const union Sass_Value* v, size_t i) { return v->map.pairs[i].key; }
- union Sass_Value* ADDCALL sass_map_get_value(const union Sass_Value* v, size_t i) { return v->map.pairs[i].value; }
- void ADDCALL sass_map_set_key(union Sass_Value* v, size_t i, union Sass_Value* key) { v->map.pairs[i].key = key; }
- void ADDCALL sass_map_set_value(union Sass_Value* v, size_t i, union Sass_Value* val) { v->map.pairs[i].value = val; }
-
- // Getters and setters for Sass_Error
- char* ADDCALL sass_error_get_message(const union Sass_Value* v) { return v->error.message; };
- void ADDCALL sass_error_set_message(union Sass_Value* v, char* msg) { v->error.message = msg; };
-
- // Getters and setters for Sass_Warning
- char* ADDCALL sass_warning_get_message(const union Sass_Value* v) { return v->warning.message; };
- void ADDCALL sass_warning_set_message(union Sass_Value* v, char* msg) { v->warning.message = msg; };
-
- // Creator functions for all value types
-
- union Sass_Value* ADDCALL sass_make_boolean(bool val)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->boolean.tag = SASS_BOOLEAN;
- v->boolean.value = val;
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_number(double val, const char* unit)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->number.tag = SASS_NUMBER;
- v->number.value = val;
- v->number.unit = unit ? sass_copy_c_string(unit) : 0;
- if (v->number.unit == 0) { free(v); return 0; }
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_color(double r, double g, double b, double a)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->color.tag = SASS_COLOR;
- v->color.r = r;
- v->color.g = g;
- v->color.b = b;
- v->color.a = a;
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_string(const char* val)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->string.quoted = false;
- v->string.tag = SASS_STRING;
- v->string.value = val ? sass_copy_c_string(val) : 0;
- if (v->string.value == 0) { free(v); return 0; }
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_qstring(const char* val)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->string.quoted = true;
- v->string.tag = SASS_STRING;
- v->string.value = val ? sass_copy_c_string(val) : 0;
- if (v->string.value == 0) { free(v); return 0; }
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_list(size_t len, enum Sass_Separator sep, bool is_bracketed)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->list.tag = SASS_LIST;
- v->list.length = len;
- v->list.separator = sep;
- v->list.is_bracketed = is_bracketed;
- v->list.values = (union Sass_Value**) calloc(len, sizeof(union Sass_Value*));
- if (v->list.values == 0) { free(v); return 0; }
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_map(size_t len)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->map.tag = SASS_MAP;
- v->map.length = len;
- v->map.pairs = (struct Sass_MapPair*) calloc(len, sizeof(struct Sass_MapPair));
- if (v->map.pairs == 0) { free(v); return 0; }
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_null(void)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->null.tag = SASS_NULL;
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_error(const char* msg)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->error.tag = SASS_ERROR;
- v->error.message = msg ? sass_copy_c_string(msg) : 0;
- if (v->error.message == 0) { free(v); return 0; }
- return v;
- }
-
- union Sass_Value* ADDCALL sass_make_warning(const char* msg)
- {
- union Sass_Value* v = (Sass_Value*) calloc(1, sizeof(Sass_Value));
- if (v == 0) return 0;
- v->warning.tag = SASS_WARNING;
- v->warning.message = msg ? sass_copy_c_string(msg) : 0;
- if (v->warning.message == 0) { free(v); return 0; }
- return v;
- }
-
- // will free all associated sass values
- void ADDCALL sass_delete_value(union Sass_Value* val) {
-
- size_t i;
- if (val == 0) return;
- switch(val->unknown.tag) {
- case SASS_NULL: {
- } break;
- case SASS_BOOLEAN: {
- } break;
- case SASS_NUMBER: {
- free(val->number.unit);
- } break;
- case SASS_COLOR: {
- } break;
- case SASS_STRING: {
- free(val->string.value);
- } break;
- case SASS_LIST: {
- for (i=0; i<val->list.length; i++) {
- sass_delete_value(val->list.values[i]);
- }
- free(val->list.values);
- } break;
- case SASS_MAP: {
- for (i=0; i<val->map.length; i++) {
- sass_delete_value(val->map.pairs[i].key);
- sass_delete_value(val->map.pairs[i].value);
- }
- free(val->map.pairs);
- } break;
- case SASS_ERROR: {
- free(val->error.message);
- } break;
- case SASS_WARNING: {
- free(val->error.message);
- } break;
- default: break;
- }
-
- free(val);
-
- }
-
- // Make a deep cloned copy of the given sass value
- union Sass_Value* ADDCALL sass_clone_value (const union Sass_Value* val)
- {
-
- size_t i;
- if (val == 0) return 0;
- switch(val->unknown.tag) {
- case SASS_NULL: {
- return sass_make_null();
- }
- case SASS_BOOLEAN: {
- return sass_make_boolean(val->boolean.value);
- }
- case SASS_NUMBER: {
- return sass_make_number(val->number.value, val->number.unit);
- }
- case SASS_COLOR: {
- return sass_make_color(val->color.r, val->color.g, val->color.b, val->color.a);
- }
- case SASS_STRING: {
- return sass_string_is_quoted(val) ? sass_make_qstring(val->string.value) : sass_make_string(val->string.value);
- }
- case SASS_LIST: {
- union Sass_Value* list = sass_make_list(val->list.length, val->list.separator, val->list.is_bracketed);
- for (i = 0; i < list->list.length; i++) {
- list->list.values[i] = sass_clone_value(val->list.values[i]);
- }
- return list;
- }
- case SASS_MAP: {
- union Sass_Value* map = sass_make_map(val->map.length);
- for (i = 0; i < val->map.length; i++) {
- map->map.pairs[i].key = sass_clone_value(val->map.pairs[i].key);
- map->map.pairs[i].value = sass_clone_value(val->map.pairs[i].value);
- }
- return map;
- }
- case SASS_ERROR: {
- return sass_make_error(val->error.message);
- }
- case SASS_WARNING: {
- return sass_make_warning(val->warning.message);
- }
- default: break;
- }
-
- return 0;
-
- }
-
- union Sass_Value* ADDCALL sass_value_stringify (const union Sass_Value* v, bool compressed, int precision)
- {
- Value_Obj val = sass_value_to_ast_node(v);
- Sass_Inspect_Options options(compressed ? COMPRESSED : NESTED, precision);
- std::string str(val->to_string(options));
- return sass_make_qstring(str.c_str());
- }
-
- union Sass_Value* ADDCALL sass_value_op (enum Sass_OP op, const union Sass_Value* a, const union Sass_Value* b)
- {
-
- Sass::Value_Ptr rv;
-
- try {
-
- Value_Obj lhs = sass_value_to_ast_node(a);
- Value_Obj rhs = sass_value_to_ast_node(b);
- struct Sass_Inspect_Options options(NESTED, 5);
-
- // see if it's a relational expression
- switch(op) {
- case Sass_OP::EQ: return sass_make_boolean(Operators::eq(lhs, rhs));
- case Sass_OP::NEQ: return sass_make_boolean(Operators::neq(lhs, rhs));
- case Sass_OP::GT: return sass_make_boolean(Operators::gt(lhs, rhs));
- case Sass_OP::GTE: return sass_make_boolean(Operators::gte(lhs, rhs));
- case Sass_OP::LT: return sass_make_boolean(Operators::lt(lhs, rhs));
- case Sass_OP::LTE: return sass_make_boolean(Operators::lte(lhs, rhs));
- case Sass_OP::AND: return ast_node_to_sass_value(lhs->is_false() ? lhs : rhs);
- case Sass_OP::OR: return ast_node_to_sass_value(lhs->is_false() ? rhs : lhs);
- default: break;
- }
-
- if (sass_value_is_number(a) && sass_value_is_number(b)) {
- Number_Ptr_Const l_n = Cast<Number>(lhs);
- Number_Ptr_Const r_n = Cast<Number>(rhs);
- rv = Operators::op_numbers(op, *l_n, *r_n, options, l_n->pstate());
- }
- else if (sass_value_is_number(a) && sass_value_is_color(a)) {
- Number_Ptr_Const l_n = Cast<Number>(lhs);
- Color_Ptr_Const r_c = Cast<Color>(rhs);
- rv = Operators::op_number_color(op, *l_n, *r_c, options, l_n->pstate());
- }
- else if (sass_value_is_color(a) && sass_value_is_number(b)) {
- Color_Ptr_Const l_c = Cast<Color>(lhs);
- Number_Ptr_Const r_n = Cast<Number>(rhs);
- rv = Operators::op_color_number(op, *l_c, *r_n, options, l_c->pstate());
- }
- else if (sass_value_is_color(a) && sass_value_is_color(b)) {
- Color_Ptr_Const l_c = Cast<Color>(lhs);
- Color_Ptr_Const r_c = Cast<Color>(rhs);
- rv = Operators::op_colors(op, *l_c, *r_c, options, l_c->pstate());
- }
- else /* convert other stuff to string and apply operation */ {
- Value_Ptr l_v = Cast<Value>(lhs);
- Value_Ptr r_v = Cast<Value>(rhs);
- rv = Operators::op_strings(op, *l_v, *r_v, options, l_v->pstate());
- }
-
- // ToDo: maybe we should should return null value?
- if (!rv) return sass_make_error("invalid return value");
-
- // convert result back to ast node
- return ast_node_to_sass_value(rv);
-
- }
-
- // simply pass the error message back to the caller for now
- catch (Exception::InvalidSass& e) { return sass_make_error(e.what()); }
- catch (std::bad_alloc&) { return sass_make_error("memory exhausted"); }
- catch (std::exception& e) { return sass_make_error(e.what()); }
- catch (std::string& e) { return sass_make_error(e.c_str()); }
- catch (const char* e) { return sass_make_error(e); }
- catch (...) { return sass_make_error("unknown"); }
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/sass_values.hpp b/node_modules/node-sass/src/libsass/src/sass_values.hpp
deleted file mode 100644
index 9aa5cdb..0000000
--- a/node_modules/node-sass/src/libsass/src/sass_values.hpp
+++ /dev/null
@@ -1,82 +0,0 @@
-#ifndef SASS_SASS_VALUES_H
-#define SASS_SASS_VALUES_H
-
-#include "sass.h"
-
-struct Sass_Unknown {
- enum Sass_Tag tag;
-};
-
-struct Sass_Boolean {
- enum Sass_Tag tag;
- bool value;
-};
-
-struct Sass_Number {
- enum Sass_Tag tag;
- double value;
- char* unit;
-};
-
-struct Sass_Color {
- enum Sass_Tag tag;
- double r;
- double g;
- double b;
- double a;
-};
-
-struct Sass_String {
- enum Sass_Tag tag;
- bool quoted;
- char* value;
-};
-
-struct Sass_List {
- enum Sass_Tag tag;
- enum Sass_Separator separator;
- bool is_bracketed;
- size_t length;
- // null terminated "array"
- union Sass_Value** values;
-};
-
-struct Sass_Map {
- enum Sass_Tag tag;
- size_t length;
- struct Sass_MapPair* pairs;
-};
-
-struct Sass_Null {
- enum Sass_Tag tag;
-};
-
-struct Sass_Error {
- enum Sass_Tag tag;
- char* message;
-};
-
-struct Sass_Warning {
- enum Sass_Tag tag;
- char* message;
-};
-
-union Sass_Value {
- struct Sass_Unknown unknown;
- struct Sass_Boolean boolean;
- struct Sass_Number number;
- struct Sass_Color color;
- struct Sass_String string;
- struct Sass_List list;
- struct Sass_Map map;
- struct Sass_Null null;
- struct Sass_Error error;
- struct Sass_Warning warning;
-};
-
-struct Sass_MapPair {
- union Sass_Value* key;
- union Sass_Value* value;
-};
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/source_map.cpp b/node_modules/node-sass/src/libsass/src/source_map.cpp
deleted file mode 100644
index c171a3f..0000000
--- a/node_modules/node-sass/src/libsass/src/source_map.cpp
+++ /dev/null
@@ -1,195 +0,0 @@
-#include "sass.hpp"
-#include <string>
-#include <sstream>
-#include <iostream>
-#include <iomanip>
-
-#include "ast.hpp"
-#include "json.hpp"
-#include "context.hpp"
-#include "position.hpp"
-#include "source_map.hpp"
-
-namespace Sass {
- SourceMap::SourceMap() : current_position(0, 0, 0), file("stdin") { }
- SourceMap::SourceMap(const std::string& file) : current_position(0, 0, 0), file(file) { }
-
- std::string SourceMap::render_srcmap(Context &ctx) {
-
- const bool include_sources = ctx.c_options.source_map_contents;
- const std::vector<std::string> links = ctx.srcmap_links;
- const std::vector<Resource>& sources(ctx.resources);
-
- JsonNode* json_srcmap = json_mkobject();
-
- json_append_member(json_srcmap, "version", json_mknumber(3));
-
- const char *file_name = file.c_str();
- JsonNode *json_file_name = json_mkstring(file_name);
- json_append_member(json_srcmap, "file", json_file_name);
-
- // pass-through sourceRoot option
- if (!ctx.source_map_root.empty()) {
- JsonNode* root = json_mkstring(ctx.source_map_root.c_str());
- json_append_member(json_srcmap, "sourceRoot", root);
- }
-
- JsonNode *json_sources = json_mkarray();
- for (size_t i = 0; i < source_index.size(); ++i) {
- std::string source(links[source_index[i]]);
- if (ctx.c_options.source_map_file_urls) {
- source = File::rel2abs(source);
- // check for windows abs path
- if (source[0] == '/') {
- // ends up with three slashes
- source = "file://" + source;
- } else {
- // needs an additional slash
- source = "file:///" + source;
- }
- }
- const char* source_name = source.c_str();
- JsonNode *json_source_name = json_mkstring(source_name);
- json_append_element(json_sources, json_source_name);
- }
- json_append_member(json_srcmap, "sources", json_sources);
-
- if (include_sources && source_index.size()) {
- JsonNode *json_contents = json_mkarray();
- for (size_t i = 0; i < source_index.size(); ++i) {
- const Resource& resource(sources[source_index[i]]);
- JsonNode *json_content = json_mkstring(resource.contents);
- json_append_element(json_contents, json_content);
- }
- json_append_member(json_srcmap, "sourcesContent", json_contents);
- }
-
- JsonNode *json_names = json_mkarray();
- // so far we have no implementation for names
- // no problem as we do not alter any identifiers
- json_append_member(json_srcmap, "names", json_names);
-
- std::string mappings = serialize_mappings();
- JsonNode *json_mappings = json_mkstring(mappings.c_str());
- json_append_member(json_srcmap, "mappings", json_mappings);
-
- char *str = json_stringify(json_srcmap, "\t");
- std::string result = std::string(str);
- free(str);
- json_delete(json_srcmap);
- return result;
- }
-
- std::string SourceMap::serialize_mappings() {
- std::string result = "";
-
- size_t previous_generated_line = 0;
- size_t previous_generated_column = 0;
- size_t previous_original_line = 0;
- size_t previous_original_column = 0;
- size_t previous_original_file = 0;
- for (size_t i = 0; i < mappings.size(); ++i) {
- const size_t generated_line = mappings[i].generated_position.line;
- const size_t generated_column = mappings[i].generated_position.column;
- const size_t original_line = mappings[i].original_position.line;
- const size_t original_column = mappings[i].original_position.column;
- const size_t original_file = mappings[i].original_position.file;
-
- if (generated_line != previous_generated_line) {
- previous_generated_column = 0;
- if (generated_line > previous_generated_line) {
- result += std::string(generated_line - previous_generated_line, ';');
- previous_generated_line = generated_line;
- }
- }
- else if (i > 0) {
- result += ",";
- }
-
- // generated column
- result += base64vlq.encode(static_cast<int>(generated_column) - static_cast<int>(previous_generated_column));
- previous_generated_column = generated_column;
- // file
- result += base64vlq.encode(static_cast<int>(original_file) - static_cast<int>(previous_original_file));
- previous_original_file = original_file;
- // source line
- result += base64vlq.encode(static_cast<int>(original_line) - static_cast<int>(previous_original_line));
- previous_original_line = original_line;
- // source column
- result += base64vlq.encode(static_cast<int>(original_column) - static_cast<int>(previous_original_column));
- previous_original_column = original_column;
- }
-
- return result;
- }
-
- void SourceMap::prepend(const OutputBuffer& out)
- {
- Offset size(out.smap.current_position);
- for (Mapping mapping : out.smap.mappings) {
- if (mapping.generated_position.line > size.line) {
- throw(std::runtime_error("prepend sourcemap has illegal line"));
- }
- if (mapping.generated_position.line == size.line) {
- if (mapping.generated_position.column > size.column) {
- throw(std::runtime_error("prepend sourcemap has illegal column"));
- }
- }
- }
- // adjust the buffer offset
- prepend(Offset(out.buffer));
- // now add the new mappings
- VECTOR_UNSHIFT(mappings, out.smap.mappings);
- }
-
- void SourceMap::append(const OutputBuffer& out)
- {
- append(Offset(out.buffer));
- }
-
- void SourceMap::prepend(const Offset& offset)
- {
- if (offset.line != 0 || offset.column != 0) {
- for (Mapping& mapping : mappings) {
- // move stuff on the first old line
- if (mapping.generated_position.line == 0) {
- mapping.generated_position.column += offset.column;
- }
- // make place for the new lines
- mapping.generated_position.line += offset.line;
- }
- }
- if (current_position.line == 0) {
- current_position.column += offset.column;
- }
- current_position.line += offset.line;
- }
-
- void SourceMap::append(const Offset& offset)
- {
- current_position += offset;
- }
-
- void SourceMap::add_open_mapping(const AST_Node_Ptr node)
- {
- mappings.push_back(Mapping(node->pstate(), current_position));
- }
-
- void SourceMap::add_close_mapping(const AST_Node_Ptr node)
- {
- mappings.push_back(Mapping(node->pstate() + node->pstate().offset, current_position));
- }
-
- ParserState SourceMap::remap(const ParserState& pstate) {
- for (size_t i = 0; i < mappings.size(); ++i) {
- if (
- mappings[i].generated_position.file == pstate.file &&
- mappings[i].generated_position.line == pstate.line &&
- mappings[i].generated_position.column == pstate.column
- ) return ParserState(pstate.path, pstate.src, mappings[i].original_position, pstate.offset);
- }
- return ParserState(pstate.path, pstate.src, Position(-1, -1, -1), Offset(0, 0));
-
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/source_map.hpp b/node_modules/node-sass/src/libsass/src/source_map.hpp
deleted file mode 100644
index 0778564..0000000
--- a/node_modules/node-sass/src/libsass/src/source_map.hpp
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef SASS_SOURCE_MAP_H
-#define SASS_SOURCE_MAP_H
-
-#include <string>
-#include <vector>
-
-#include "ast_fwd_decl.hpp"
-#include "base64vlq.hpp"
-#include "position.hpp"
-#include "mapping.hpp"
-
-#define VECTOR_PUSH(vec, ins) vec.insert(vec.end(), ins.begin(), ins.end())
-#define VECTOR_UNSHIFT(vec, ins) vec.insert(vec.begin(), ins.begin(), ins.end())
-
-namespace Sass {
-
- class Context;
- class OutputBuffer;
-
- class SourceMap {
-
- public:
- std::vector<size_t> source_index;
- SourceMap();
- SourceMap(const std::string& file);
-
- void append(const Offset& offset);
- void prepend(const Offset& offset);
- void append(const OutputBuffer& out);
- void prepend(const OutputBuffer& out);
- void add_open_mapping(const AST_Node_Ptr node);
- void add_close_mapping(const AST_Node_Ptr node);
-
- std::string render_srcmap(Context &ctx);
- ParserState remap(const ParserState& pstate);
-
- private:
-
- std::string serialize_mappings();
-
- std::vector<Mapping> mappings;
- Position current_position;
-public:
- std::string file;
-private:
- Base64VLQ base64vlq;
- };
-
- class OutputBuffer {
- public:
- OutputBuffer(void)
- : buffer(""),
- smap()
- { }
- public:
- std::string buffer;
- SourceMap smap;
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/subset_map.cpp b/node_modules/node-sass/src/libsass/src/subset_map.cpp
deleted file mode 100644
index 24513e4..0000000
--- a/node_modules/node-sass/src/libsass/src/subset_map.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-#include "sass.hpp"
-#include "ast.hpp"
-#include "subset_map.hpp"
-
-namespace Sass {
-
- void Subset_Map::put(const Compound_Selector_Obj& sel, const SubSetMapPair& value)
- {
- if (sel->empty()) throw std::runtime_error("internal error: subset map keys may not be empty");
- size_t index = values_.size();
- values_.push_back(value);
- for (size_t i = 0, S = sel->length(); i < S; ++i)
- {
- hash_[(*sel)[i]].push_back(std::make_pair(sel, index));
- }
- }
-
- std::vector<SubSetMapPair> Subset_Map::get_kv(const Compound_Selector_Obj& sel)
- {
- SimpleSelectorDict dict(sel->begin(), sel->end()); // XXX Set
- std::vector<size_t> indices;
- for (size_t i = 0, S = sel->length(); i < S; ++i) {
- if (!hash_.count((*sel)[i])) {
- continue;
- }
- const std::vector<std::pair<Compound_Selector_Obj, size_t> >& subsets = hash_[(*sel)[i]];
- for (const std::pair<Compound_Selector_Obj, size_t>& item : subsets) {
- bool include = true;
- for (const Simple_Selector_Obj& it : item.first->elements()) {
- auto found = dict.find(it);
- if (found == dict.end()) {
- include = false;
- break;
- }
- }
- if (include) indices.push_back(item.second);
- }
- }
- sort(indices.begin(), indices.end());
- std::vector<size_t>::iterator indices_end = unique(indices.begin(), indices.end());
- indices.resize(distance(indices.begin(), indices_end));
-
- std::vector<SubSetMapPair> results;
- for (size_t i = 0, S = indices.size(); i < S; ++i) {
- results.push_back(values_[indices[i]]);
- }
- return results;
- }
-
- std::vector<SubSetMapPair> Subset_Map::get_v(const Compound_Selector_Obj& sel)
- {
- return get_kv(sel);
- }
-
-} \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/src/subset_map.hpp b/node_modules/node-sass/src/libsass/src/subset_map.hpp
deleted file mode 100644
index 5c091e6..0000000
--- a/node_modules/node-sass/src/libsass/src/subset_map.hpp
+++ /dev/null
@@ -1,76 +0,0 @@
-#ifndef SASS_SUBSET_MAP_H
-#define SASS_SUBSET_MAP_H
-
-#include <map>
-#include <set>
-#include <vector>
-#include <algorithm>
-#include <iterator>
-
-#include "ast_fwd_decl.hpp"
-
-
-// #include <iostream>
-// #include <sstream>
-// template<typename T>
-// std::string vector_to_string(std::vector<T> v)
-// {
-// std::stringstream buffer;
-// buffer << "[";
-
-// if (!v.empty())
-// { buffer << v[0]; }
-// else
-// { buffer << "]"; }
-
-// if (v.size() == 1)
-// { buffer << "]"; }
-// else
-// {
-// for (size_t i = 1, S = v.size(); i < S; ++i) buffer << ", " << v[i];
-// buffer << "]";
-// }
-
-// return buffer.str();
-// }
-
-// template<typename T>
-// std::string set_to_string(set<T> v)
-// {
-// std::stringstream buffer;
-// buffer << "[";
-// typename std::set<T>::iterator i = v.begin();
-// if (!v.empty())
-// { buffer << *i; }
-// else
-// { buffer << "]"; }
-
-// if (v.size() == 1)
-// { buffer << "]"; }
-// else
-// {
-// for (++i; i != v.end(); ++i) buffer << ", " << *i;
-// buffer << "]";
-// }
-
-// return buffer.str();
-// }
-
-namespace Sass {
-
- class Subset_Map {
- private:
- std::vector<SubSetMapPair> values_;
- std::map<Simple_Selector_Obj, std::vector<std::pair<Compound_Selector_Obj, size_t> >, OrderNodes > hash_;
- public:
- void put(const Compound_Selector_Obj& sel, const SubSetMapPair& value);
- std::vector<SubSetMapPair> get_kv(const Compound_Selector_Obj& s);
- std::vector<SubSetMapPair> get_v(const Compound_Selector_Obj& s);
- bool empty() { return values_.empty(); }
- void clear() { values_.clear(); hash_.clear(); }
- const std::vector<SubSetMapPair> values(void) { return values_; }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/support/libsass.pc.in b/node_modules/node-sass/src/libsass/src/support/libsass.pc.in
deleted file mode 100644
index d201bfa..0000000
--- a/node_modules/node-sass/src/libsass/src/support/libsass.pc.in
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: libsass
-URL: https://github.com/sass/libsass
-Description: A C implementation of a Sass compiler
-Version: @VERSION@
-Libs: -L${libdir} -lsass
-Cflags: -I${includedir}
diff --git a/node_modules/node-sass/src/libsass/src/to_c.cpp b/node_modules/node-sass/src/libsass/src/to_c.cpp
deleted file mode 100644
index 8a6ea8d..0000000
--- a/node_modules/node-sass/src/libsass/src/to_c.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-#include "sass.hpp"
-#include "to_c.hpp"
-#include "ast.hpp"
-
-namespace Sass {
-
- union Sass_Value* To_C::fallback_impl(AST_Node_Ptr n)
- { return sass_make_error("unknown type for C-API"); }
-
- union Sass_Value* To_C::operator()(Boolean_Ptr b)
- { return sass_make_boolean(b->value()); }
-
- union Sass_Value* To_C::operator()(Number_Ptr n)
- { return sass_make_number(n->value(), n->unit().c_str()); }
-
- union Sass_Value* To_C::operator()(Custom_Warning_Ptr w)
- { return sass_make_warning(w->message().c_str()); }
-
- union Sass_Value* To_C::operator()(Custom_Error_Ptr e)
- { return sass_make_error(e->message().c_str()); }
-
- union Sass_Value* To_C::operator()(Color_Ptr c)
- { return sass_make_color(c->r(), c->g(), c->b(), c->a()); }
-
- union Sass_Value* To_C::operator()(String_Constant_Ptr s)
- {
- if (s->quote_mark()) {
- return sass_make_qstring(s->value().c_str());
- } else {
- return sass_make_string(s->value().c_str());
- }
- }
-
- union Sass_Value* To_C::operator()(String_Quoted_Ptr s)
- { return sass_make_qstring(s->value().c_str()); }
-
- union Sass_Value* To_C::operator()(List_Ptr l)
- {
- union Sass_Value* v = sass_make_list(l->length(), l->separator(), l->is_bracketed());
- for (size_t i = 0, L = l->length(); i < L; ++i) {
- sass_list_set_value(v, i, (*l)[i]->perform(this));
- }
- return v;
- }
-
- union Sass_Value* To_C::operator()(Map_Ptr m)
- {
- union Sass_Value* v = sass_make_map(m->length());
- int i = 0;
- for (auto key : m->keys()) {
- sass_map_set_key(v, i, key->perform(this));
- sass_map_set_value(v, i, m->at(key)->perform(this));
- i++;
- }
- return v;
- }
-
- union Sass_Value* To_C::operator()(Arguments_Ptr a)
- {
- union Sass_Value* v = sass_make_list(a->length(), SASS_COMMA, false);
- for (size_t i = 0, L = a->length(); i < L; ++i) {
- sass_list_set_value(v, i, (*a)[i]->perform(this));
- }
- return v;
- }
-
- union Sass_Value* To_C::operator()(Argument_Ptr a)
- { return a->value()->perform(this); }
-
- // not strictly necessary because of the fallback
- union Sass_Value* To_C::operator()(Null_Ptr n)
- { return sass_make_null(); }
-
-};
diff --git a/node_modules/node-sass/src/libsass/src/to_c.hpp b/node_modules/node-sass/src/libsass/src/to_c.hpp
deleted file mode 100644
index a5331e3..0000000
--- a/node_modules/node-sass/src/libsass/src/to_c.hpp
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef SASS_TO_C_H
-#define SASS_TO_C_H
-
-#include "ast_fwd_decl.hpp"
-#include "operation.hpp"
-#include "sass/values.h"
-
-namespace Sass {
-
- class To_C : public Operation_CRTP<union Sass_Value*, To_C> {
- // override this to define a catch-all
- union Sass_Value* fallback_impl(AST_Node_Ptr n);
-
- public:
-
- To_C() { }
- ~To_C() { }
-
- union Sass_Value* operator()(Boolean_Ptr);
- union Sass_Value* operator()(Number_Ptr);
- union Sass_Value* operator()(Color_Ptr);
- union Sass_Value* operator()(String_Constant_Ptr);
- union Sass_Value* operator()(String_Quoted_Ptr);
- union Sass_Value* operator()(Custom_Warning_Ptr);
- union Sass_Value* operator()(Custom_Error_Ptr);
- union Sass_Value* operator()(List_Ptr);
- union Sass_Value* operator()(Map_Ptr);
- union Sass_Value* operator()(Null_Ptr);
- union Sass_Value* operator()(Arguments_Ptr);
- union Sass_Value* operator()(Argument_Ptr);
-
- // dispatch to fallback implementation
- union Sass_Value* fallback(AST_Node_Ptr x)
- { return fallback_impl(x); }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/to_value.cpp b/node_modules/node-sass/src/libsass/src/to_value.cpp
deleted file mode 100644
index 3912c55..0000000
--- a/node_modules/node-sass/src/libsass/src/to_value.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-#include "sass.hpp"
-#include "ast.hpp"
-#include "to_value.hpp"
-
-namespace Sass {
-
- Value_Ptr To_Value::fallback_impl(AST_Node_Ptr n)
- {
- // throw a runtime error if this happens
- // we want a well defined set of possible nodes
- throw std::runtime_error("invalid node for to_value");
- }
-
- // Custom_Error is a valid value
- Value_Ptr To_Value::operator()(Custom_Error_Ptr e)
- {
- return e;
- }
-
- // Custom_Warning is a valid value
- Value_Ptr To_Value::operator()(Custom_Warning_Ptr w)
- {
- return w;
- }
-
- // Boolean is a valid value
- Value_Ptr To_Value::operator()(Boolean_Ptr b)
- {
- return b;
- }
-
- // Number is a valid value
- Value_Ptr To_Value::operator()(Number_Ptr n)
- {
- return n;
- }
-
- // Color is a valid value
- Value_Ptr To_Value::operator()(Color_Ptr c)
- {
- return c;
- }
-
- // String_Constant is a valid value
- Value_Ptr To_Value::operator()(String_Constant_Ptr s)
- {
- return s;
- }
-
- // String_Quoted is a valid value
- Value_Ptr To_Value::operator()(String_Quoted_Ptr s)
- {
- return s;
- }
-
- // List is a valid value
- Value_Ptr To_Value::operator()(List_Ptr l)
- {
- List_Obj ll = SASS_MEMORY_NEW(List,
- l->pstate(),
- l->length(),
- l->separator(),
- l->is_arglist(),
- l->is_bracketed());
- for (size_t i = 0, L = l->length(); i < L; ++i) {
- ll->append((*l)[i]->perform(this));
- }
- return ll.detach();
- }
-
- // Map is a valid value
- Value_Ptr To_Value::operator()(Map_Ptr m)
- {
- return m;
- }
-
- // Null is a valid value
- Value_Ptr To_Value::operator()(Null_Ptr n)
- {
- return n;
- }
-
- // Function is a valid value
- Value_Ptr To_Value::operator()(Function_Ptr n)
- {
- return n;
- }
-
- // Argument returns its value
- Value_Ptr To_Value::operator()(Argument_Ptr arg)
- {
- if (!arg->name().empty()) return 0;
- return arg->value()->perform(this);
- }
-
- // Selector_List is converted to a string
- Value_Ptr To_Value::operator()(Selector_List_Ptr s)
- {
- return SASS_MEMORY_NEW(String_Quoted,
- s->pstate(),
- s->to_string(ctx.c_options));
- }
-
- // Binary_Expression is converted to a string
- Value_Ptr To_Value::operator()(Binary_Expression_Ptr s)
- {
- return SASS_MEMORY_NEW(String_Quoted,
- s->pstate(),
- s->to_string(ctx.c_options));
- }
-
-};
diff --git a/node_modules/node-sass/src/libsass/src/to_value.hpp b/node_modules/node-sass/src/libsass/src/to_value.hpp
deleted file mode 100644
index 8f64128..0000000
--- a/node_modules/node-sass/src/libsass/src/to_value.hpp
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifndef SASS_TO_VALUE_H
-#define SASS_TO_VALUE_H
-
-#include "operation.hpp"
-#include "sass/values.h"
-#include "ast_fwd_decl.hpp"
-
-namespace Sass {
-
- class To_Value : public Operation_CRTP<Value_Ptr, To_Value> {
-
- Value_Ptr fallback_impl(AST_Node_Ptr n);
-
- private:
-
- Context& ctx;
-
- public:
-
- To_Value(Context& ctx)
- : ctx(ctx)
- { }
- ~To_Value() { }
- using Operation<Value_Ptr>::operator();
-
- Value_Ptr operator()(Argument_Ptr);
- Value_Ptr operator()(Boolean_Ptr);
- Value_Ptr operator()(Number_Ptr);
- Value_Ptr operator()(Color_Ptr);
- Value_Ptr operator()(String_Constant_Ptr);
- Value_Ptr operator()(String_Quoted_Ptr);
- Value_Ptr operator()(Custom_Warning_Ptr);
- Value_Ptr operator()(Custom_Error_Ptr);
- Value_Ptr operator()(List_Ptr);
- Value_Ptr operator()(Map_Ptr);
- Value_Ptr operator()(Null_Ptr);
- Value_Ptr operator()(Function_Ptr);
-
- // convert to string via `To_String`
- Value_Ptr operator()(Selector_List_Ptr);
- Value_Ptr operator()(Binary_Expression_Ptr);
-
- // fallback throws error
- template <typename U>
- Value_Ptr fallback(U x) { return fallback_impl(x); }
- };
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/units.cpp b/node_modules/node-sass/src/libsass/src/units.cpp
deleted file mode 100644
index 779f1d2..0000000
--- a/node_modules/node-sass/src/libsass/src/units.cpp
+++ /dev/null
@@ -1,501 +0,0 @@
-#include "sass.hpp"
-#include <stdexcept>
-#include "units.hpp"
-#include "error_handling.hpp"
-
-namespace Sass {
-
- /* the conversion matrix can be readed the following way */
- /* if you go down, the factor is for the numerator (multiply) */
- /* if you go right, the factor is for the denominator (divide) */
- /* and yes, we actually use both, not sure why, but why not!? */
-
- const double size_conversion_factors[6][6] =
- {
- /* in cm pc mm pt px */
- /* in */ { 1, 2.54, 6, 25.4, 72, 96, },
- /* cm */ { 1.0/2.54, 1, 6.0/2.54, 10, 72.0/2.54, 96.0/2.54 },
- /* pc */ { 1.0/6.0, 2.54/6.0, 1, 25.4/6.0, 72.0/6.0, 96.0/6.0 },
- /* mm */ { 1.0/25.4, 1.0/10.0, 6.0/25.4, 1, 72.0/25.4, 96.0/25.4 },
- /* pt */ { 1.0/72.0, 2.54/72.0, 6.0/72.0, 25.4/72.0, 1, 96.0/72.0 },
- /* px */ { 1.0/96.0, 2.54/96.0, 6.0/96.0, 25.4/96.0, 72.0/96.0, 1, }
- };
-
- const double angle_conversion_factors[4][4] =
- {
- /* deg grad rad turn */
- /* deg */ { 1, 40.0/36.0, PI/180.0, 1.0/360.0 },
- /* grad */ { 36.0/40.0, 1, PI/200.0, 1.0/400.0 },
- /* rad */ { 180.0/PI, 200.0/PI, 1, 0.5/PI },
- /* turn */ { 360.0, 400.0, 2.0*PI, 1 }
- };
-
- const double time_conversion_factors[2][2] =
- {
- /* s ms */
- /* s */ { 1, 1000.0 },
- /* ms */ { 1/1000.0, 1 }
- };
- const double frequency_conversion_factors[2][2] =
- {
- /* Hz kHz */
- /* Hz */ { 1, 1/1000.0 },
- /* kHz */ { 1000.0, 1 }
- };
- const double resolution_conversion_factors[3][3] =
- {
- /* dpi dpcm dppx */
- /* dpi */ { 1, 1/2.54, 1/96.0 },
- /* dpcm */ { 2.54, 1, 2.54/96 },
- /* dppx */ { 96, 96/2.54, 1 }
- };
-
- UnitClass get_unit_type(UnitType unit)
- {
- switch (unit & 0xFF00)
- {
- case UnitClass::LENGTH: return UnitClass::LENGTH;
- case UnitClass::ANGLE: return UnitClass::ANGLE;
- case UnitClass::TIME: return UnitClass::TIME;
- case UnitClass::FREQUENCY: return UnitClass::FREQUENCY;
- case UnitClass::RESOLUTION: return UnitClass::RESOLUTION;
- default: return UnitClass::INCOMMENSURABLE;
- }
- };
-
- std::string get_unit_class(UnitType unit)
- {
- switch (unit & 0xFF00)
- {
- case UnitClass::LENGTH: return "LENGTH";
- case UnitClass::ANGLE: return "ANGLE";
- case UnitClass::TIME: return "TIME";
- case UnitClass::FREQUENCY: return "FREQUENCY";
- case UnitClass::RESOLUTION: return "RESOLUTION";
- default: return "INCOMMENSURABLE";
- }
- };
-
- UnitType get_main_unit(const UnitClass unit)
- {
- switch (unit)
- {
- case UnitClass::LENGTH: return UnitType::PX;
- case UnitClass::ANGLE: return UnitType::DEG;
- case UnitClass::TIME: return UnitType::SEC;
- case UnitClass::FREQUENCY: return UnitType::HERTZ;
- case UnitClass::RESOLUTION: return UnitType::DPI;
- default: return UnitType::UNKNOWN;
- }
- };
-
- UnitType string_to_unit(const std::string& s)
- {
- // size units
- if (s == "px") return UnitType::PX;
- else if (s == "pt") return UnitType::PT;
- else if (s == "pc") return UnitType::PC;
- else if (s == "mm") return UnitType::MM;
- else if (s == "cm") return UnitType::CM;
- else if (s == "in") return UnitType::IN;
- // angle units
- else if (s == "deg") return UnitType::DEG;
- else if (s == "grad") return UnitType::GRAD;
- else if (s == "rad") return UnitType::RAD;
- else if (s == "turn") return UnitType::TURN;
- // time units
- else if (s == "s") return UnitType::SEC;
- else if (s == "ms") return UnitType::MSEC;
- // frequency units
- else if (s == "Hz") return UnitType::HERTZ;
- else if (s == "kHz") return UnitType::KHERTZ;
- // resolutions units
- else if (s == "dpi") return UnitType::DPI;
- else if (s == "dpcm") return UnitType::DPCM;
- else if (s == "dppx") return UnitType::DPPX;
- // for unknown units
- else return UnitType::UNKNOWN;
- }
-
- const char* unit_to_string(UnitType unit)
- {
- switch (unit) {
- // size units
- case UnitType::PX: return "px";
- case UnitType::PT: return "pt";
- case UnitType::PC: return "pc";
- case UnitType::MM: return "mm";
- case UnitType::CM: return "cm";
- case UnitType::IN: return "in";
- // angle units
- case UnitType::DEG: return "deg";
- case UnitType::GRAD: return "grad";
- case UnitType::RAD: return "rad";
- case UnitType::TURN: return "turn";
- // time units
- case UnitType::SEC: return "s";
- case UnitType::MSEC: return "ms";
- // frequency units
- case UnitType::HERTZ: return "Hz";
- case UnitType::KHERTZ: return "kHz";
- // resolutions units
- case UnitType::DPI: return "dpi";
- case UnitType::DPCM: return "dpcm";
- case UnitType::DPPX: return "dppx";
- // for unknown units
- default: return "";
- }
- }
-
- std::string unit_to_class(const std::string& s)
- {
- if (s == "px") return "LENGTH";
- else if (s == "pt") return "LENGTH";
- else if (s == "pc") return "LENGTH";
- else if (s == "mm") return "LENGTH";
- else if (s == "cm") return "LENGTH";
- else if (s == "in") return "LENGTH";
- // angle units
- else if (s == "deg") return "ANGLE";
- else if (s == "grad") return "ANGLE";
- else if (s == "rad") return "ANGLE";
- else if (s == "turn") return "ANGLE";
- // time units
- else if (s == "s") return "TIME";
- else if (s == "ms") return "TIME";
- // frequency units
- else if (s == "Hz") return "FREQUENCY";
- else if (s == "kHz") return "FREQUENCY";
- // resolutions units
- else if (s == "dpi") return "RESOLUTION";
- else if (s == "dpcm") return "RESOLUTION";
- else if (s == "dppx") return "RESOLUTION";
- // for unknown units
- return "CUSTOM:" + s;
- }
-
- // throws incompatibleUnits exceptions
- double conversion_factor(const std::string& s1, const std::string& s2)
- {
- // assert for same units
- if (s1 == s2) return 1;
- // get unit enum from string
- UnitType u1 = string_to_unit(s1);
- UnitType u2 = string_to_unit(s2);
- // query unit group types
- UnitClass t1 = get_unit_type(u1);
- UnitClass t2 = get_unit_type(u2);
- // return the conversion factor
- return conversion_factor(u1, u2, t1, t2);
- }
-
- // throws incompatibleUnits exceptions
- double conversion_factor(UnitType u1, UnitType u2, UnitClass t1, UnitClass t2)
- {
- // can't convert between groups
- if (t1 != t2) return 0;
- // get absolute offset
- // used for array acces
- size_t i1 = u1 - t1;
- size_t i2 = u2 - t2;
- // process known units
- switch (t1) {
- case LENGTH:
- return size_conversion_factors[i1][i2];
- case ANGLE:
- return angle_conversion_factors[i1][i2];
- case TIME:
- return time_conversion_factors[i1][i2];
- case FREQUENCY:
- return frequency_conversion_factors[i1][i2];
- case RESOLUTION:
- return resolution_conversion_factors[i1][i2];
- case INCOMMENSURABLE:
- return 0;
- }
- // fallback
- return 0;
- }
-
- double convert_units(const std::string& lhs, const std::string& rhs, int& lhsexp, int& rhsexp)
- {
- double f = 0;
- // do not convert same ones
- if (lhs == rhs) return 0;
- // skip already canceled out unit
- if (lhsexp == 0) return 0;
- if (rhsexp == 0) return 0;
- // check if it can be converted
- UnitType ulhs = string_to_unit(lhs);
- UnitType urhs = string_to_unit(rhs);
- // skip units we cannot convert
- if (ulhs == UNKNOWN) return 0;
- if (urhs == UNKNOWN) return 0;
- // query unit group types
- UnitClass clhs = get_unit_type(ulhs);
- UnitClass crhs = get_unit_type(urhs);
- // skip units we cannot convert
- if (clhs != crhs) return 0;
- // if right denominator is bigger than lhs, we want to keep it in rhs unit
- if (rhsexp < 0 && lhsexp > 0 && - rhsexp > lhsexp) {
- // get the conversion factor for units
- f = conversion_factor(urhs, ulhs, clhs, crhs);
- // left hand side has been consumned
- f = std::pow(f, lhsexp);
- rhsexp += lhsexp;
- lhsexp = 0;
- }
- else {
- // get the conversion factor for units
- f = conversion_factor(ulhs, urhs, clhs, crhs);
- // right hand side has been consumned
- f = std::pow(f, rhsexp);
- lhsexp += rhsexp;
- rhsexp = 0;
- }
- return f;
- }
-
- bool Units::operator< (const Units& rhs) const
- {
- return (numerators < rhs.numerators) &&
- (denominators < rhs.denominators);
- }
- bool Units::operator== (const Units& rhs) const
- {
- return (numerators == rhs.numerators) &&
- (denominators == rhs.denominators);
- }
-
- double Units::normalize()
- {
-
- size_t iL = numerators.size();
- size_t nL = denominators.size();
-
- // the final conversion factor
- double factor = 1;
-
- for (size_t i = 0; i < iL; i++) {
- std::string &lhs = numerators[i];
- UnitType ulhs = string_to_unit(lhs);
- if (ulhs == UNKNOWN) continue;
- UnitClass clhs = get_unit_type(ulhs);
- UnitType umain = get_main_unit(clhs);
- if (ulhs == umain) continue;
- double f(conversion_factor(umain, ulhs, clhs, clhs));
- if (f == 0) throw std::runtime_error("INVALID");
- numerators[i] = unit_to_string(umain);
- factor /= f;
- }
-
- for (size_t n = 0; n < nL; n++) {
- std::string &rhs = denominators[n];
- UnitType urhs = string_to_unit(rhs);
- if (urhs == UNKNOWN) continue;
- UnitClass crhs = get_unit_type(urhs);
- UnitType umain = get_main_unit(crhs);
- if (urhs == umain) continue;
- double f(conversion_factor(umain, urhs, crhs, crhs));
- if (f == 0) throw std::runtime_error("INVALID");
- denominators[n] = unit_to_string(umain);
- factor /= f;
- }
-
- std::sort (numerators.begin(), numerators.end());
- std::sort (denominators.begin(), denominators.end());
-
- // return for conversion
- return factor;
- }
-
- double Units::reduce()
- {
-
- size_t iL = numerators.size();
- size_t nL = denominators.size();
-
- // have less than two units?
- if (iL + nL < 2) return 1;
-
- // first make sure same units cancel each other out
- // it seems that a map table will fit nicely to do this
- // we basically construct exponents for each unit
- // has the advantage that they will be pre-sorted
- std::map<std::string, int> exponents;
-
- // initialize by summing up occurences in unit vectors
- // this will already cancel out equivalent units (e.q. px/px)
- for (size_t i = 0; i < iL; i ++) exponents[numerators[i]] += 1;
- for (size_t n = 0; n < nL; n ++) exponents[denominators[n]] -= 1;
-
- // the final conversion factor
- double factor = 1;
-
- // convert between compatible units
- for (size_t i = 0; i < iL; i++) {
- for (size_t n = 0; n < nL; n++) {
- std::string &lhs = numerators[i], &rhs = denominators[n];
- int &lhsexp = exponents[lhs], &rhsexp = exponents[rhs];
- double f(convert_units(lhs, rhs, lhsexp, rhsexp));
- if (f == 0) continue;
- factor /= f;
- }
- }
-
- // now we can build up the new unit arrays
- numerators.clear();
- denominators.clear();
-
- // recreate sorted units vectors
- for (auto exp : exponents) {
- int &exponent = exp.second;
- while (exponent > 0 && exponent --)
- numerators.push_back(exp.first);
- while (exponent < 0 && exponent ++)
- denominators.push_back(exp.first);
- }
-
- // return for conversion
- return factor;
-
- }
-
- std::string Units::unit() const
- {
- std::string u;
- size_t iL = numerators.size();
- size_t nL = denominators.size();
- for (size_t i = 0; i < iL; i += 1) {
- if (i) u += '*';
- u += numerators[i];
- }
- if (nL != 0) u += '/';
- for (size_t n = 0; n < nL; n += 1) {
- if (n) u += '*';
- u += denominators[n];
- }
- return u;
- }
-
- bool Units::is_unitless() const
- {
- return numerators.empty() &&
- denominators.empty();
- }
-
- bool Units::is_valid_css_unit() const
- {
- return numerators.size() <= 1 &&
- denominators.size() == 0;
- }
-
- // this does not cover all cases (multiple prefered units)
- double Units::convert_factor(const Units& r) const
- {
-
- std::vector<std::string> miss_nums(0);
- std::vector<std::string> miss_dens(0);
- // create copy since we need these for state keeping
- std::vector<std::string> r_nums(r.numerators);
- std::vector<std::string> r_dens(r.denominators);
-
- auto l_num_it = numerators.begin();
- auto l_num_end = numerators.end();
-
- bool l_unitless = is_unitless();
- auto r_unitless = r.is_unitless();
-
- // overall conversion
- double factor = 1;
-
- // process all left numerators
- while (l_num_it != l_num_end)
- {
- // get and increment afterwards
- const std::string l_num = *(l_num_it ++);
-
- auto r_num_it = r_nums.begin(), r_num_end = r_nums.end();
-
- bool found = false;
- // search for compatible numerator
- while (r_num_it != r_num_end)
- {
- // get and increment afterwards
- const std::string r_num = *(r_num_it);
- // get possible conversion factor for units
- double conversion = conversion_factor(l_num, r_num);
- // skip incompatible numerator
- if (conversion == 0) {
- ++ r_num_it;
- continue;
- }
- // apply to global factor
- factor *= conversion;
- // remove item from vector
- r_nums.erase(r_num_it);
- // found numerator
- found = true;
- break;
- }
- // maybe we did not find any
- // left numerator is leftover
- if (!found) miss_nums.push_back(l_num);
- }
-
- auto l_den_it = denominators.begin();
- auto l_den_end = denominators.end();
-
- // process all left denominators
- while (l_den_it != l_den_end)
- {
- // get and increment afterwards
- const std::string l_den = *(l_den_it ++);
-
- auto r_den_it = r_dens.begin();
- auto r_den_end = r_dens.end();
-
- bool found = false;
- // search for compatible denominator
- while (r_den_it != r_den_end)
- {
- // get and increment afterwards
- const std::string r_den = *(r_den_it);
- // get possible converstion factor for units
- double conversion = conversion_factor(l_den, r_den);
- // skip incompatible denominator
- if (conversion == 0) {
- ++ r_den_it;
- continue;
- }
- // apply to global factor
- factor /= conversion;
- // remove item from vector
- r_dens.erase(r_den_it);
- // found denominator
- found = true;
- break;
- }
- // maybe we did not find any
- // left denominator is leftover
- if (!found) miss_dens.push_back(l_den);
- }
-
- // check left-overs (ToDo: might cancel out?)
- if (miss_nums.size() > 0 && !r_unitless) {
- throw Exception::IncompatibleUnits(r, *this);
- }
- else if (miss_dens.size() > 0 && !r_unitless) {
- throw Exception::IncompatibleUnits(r, *this);
- }
- else if (r_nums.size() > 0 && !l_unitless) {
- throw Exception::IncompatibleUnits(r, *this);
- }
- else if (r_dens.size() > 0 && !l_unitless) {
- throw Exception::IncompatibleUnits(r, *this);
- }
-
- return factor;
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/units.hpp b/node_modules/node-sass/src/libsass/src/units.hpp
deleted file mode 100644
index 306f534..0000000
--- a/node_modules/node-sass/src/libsass/src/units.hpp
+++ /dev/null
@@ -1,109 +0,0 @@
-#ifndef SASS_UNITS_H
-#define SASS_UNITS_H
-
-#include <cmath>
-#include <string>
-#include <sstream>
-#include <vector>
-
-namespace Sass {
-
- const double PI = std::acos(-1);
-
- enum UnitClass {
- LENGTH = 0x000,
- ANGLE = 0x100,
- TIME = 0x200,
- FREQUENCY = 0x300,
- RESOLUTION = 0x400,
- INCOMMENSURABLE = 0x500
- };
-
- enum UnitType {
-
- // size units
- IN = UnitClass::LENGTH,
- CM,
- PC,
- MM,
- PT,
- PX,
-
- // angle units
- DEG = ANGLE,
- GRAD,
- RAD,
- TURN,
-
- // time units
- SEC = TIME,
- MSEC,
-
- // frequency units
- HERTZ = FREQUENCY,
- KHERTZ,
-
- // resolutions units
- DPI = RESOLUTION,
- DPCM,
- DPPX,
-
- // for unknown units
- UNKNOWN = INCOMMENSURABLE
-
- };
-
- class Units {
- public:
- std::vector<std::string> numerators;
- std::vector<std::string> denominators;
- public:
- // default constructor
- Units() :
- numerators(),
- denominators()
- { }
- // copy constructor
- Units(const Units* ptr) :
- numerators(ptr->numerators),
- denominators(ptr->denominators)
- { }
- // convert to string
- std::string unit() const;
- // get if units are empty
- bool is_unitless() const;
- // return if valid for css
- bool is_valid_css_unit() const;
- // reduce units for output
- // returns conversion factor
- double reduce();
- // normalize units for compare
- // returns conversion factor
- double normalize();
- // compare operations
- bool operator< (const Units& rhs) const;
- bool operator== (const Units& rhs) const;
- // factor to convert into given units
- double convert_factor(const Units&) const;
- };
-
- extern const double size_conversion_factors[6][6];
- extern const double angle_conversion_factors[4][4];
- extern const double time_conversion_factors[2][2];
- extern const double frequency_conversion_factors[2][2];
- extern const double resolution_conversion_factors[3][3];
-
- UnitType get_main_unit(const UnitClass unit);
- enum Sass::UnitType string_to_unit(const std::string&);
- const char* unit_to_string(Sass::UnitType unit);
- enum Sass::UnitClass get_unit_type(Sass::UnitType unit);
- std::string get_unit_class(Sass::UnitType unit);
- std::string unit_to_class(const std::string&);
- // throws incompatibleUnits exceptions
- double conversion_factor(const std::string&, const std::string&);
- double conversion_factor(UnitType, UnitType, UnitClass, UnitClass);
- double convert_units(const std::string&, const std::string&, int&, int&);
-
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/utf8.h b/node_modules/node-sass/src/libsass/src/utf8.h
deleted file mode 100644
index 82b13f5..0000000
--- a/node_modules/node-sass/src/libsass/src/utf8.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2006 Nemanja Trifunovic
-
-/*
-Permission is hereby granted, free of charge, to any person or organization
-obtaining a copy of the software and accompanying documentation covered by
-this license (the "Software") to use, reproduce, display, distribute,
-execute, and transmit the Software, and to prepare derivative works of the
-Software, and to permit third-parties to whom the Software is furnished to
-do so, all subject to the following:
-
-The copyright notices in the Software and this entire statement, including
-the above license grant, this restriction and the following disclaimer,
-must be included in all copies of the Software, in whole or in part, and
-all derivative works of the Software, unless such copies or derivative
-works are solely in the form of machine-executable object code generated by
-a source language processor.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
-SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
-FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
-*/
-
-
-#ifndef UTF8_FOR_CPP_2675DCD0_9480_4c0c_B92A_CC14C027B731
-#define UTF8_FOR_CPP_2675DCD0_9480_4c0c_B92A_CC14C027B731
-
-#include "utf8/checked.h"
-#include "utf8/unchecked.h"
-
-#endif // header guard
diff --git a/node_modules/node-sass/src/libsass/src/utf8/checked.h b/node_modules/node-sass/src/libsass/src/utf8/checked.h
deleted file mode 100644
index 693aee9..0000000
--- a/node_modules/node-sass/src/libsass/src/utf8/checked.h
+++ /dev/null
@@ -1,334 +0,0 @@
-// Copyright 2006 Nemanja Trifunovic
-
-/*
-Permission is hereby granted, free of charge, to any person or organization
-obtaining a copy of the software and accompanying documentation covered by
-this license (the "Software") to use, reproduce, display, distribute,
-execute, and transmit the Software, and to prepare derivative works of the
-Software, and to permit third-parties to whom the Software is furnished to
-do so, all subject to the following:
-
-The copyright notices in the Software and this entire statement, including
-the above license grant, this restriction and the following disclaimer,
-must be included in all copies of the Software, in whole or in part, and
-all derivative works of the Software, unless such copies or derivative
-works are solely in the form of machine-executable object code generated by
-a source language processor.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
-SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
-FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
-*/
-
-
-#ifndef UTF8_FOR_CPP_CHECKED_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-#define UTF8_FOR_CPP_CHECKED_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-
-#include "core.h"
-#include <stdexcept>
-
-namespace utf8
-{
- // Base for the exceptions that may be thrown from the library
- class exception : public ::std::exception {
- };
-
- // Exceptions that may be thrown from the library functions.
- class invalid_code_point : public exception {
- uint32_t cp;
- public:
- invalid_code_point(uint32_t cp) : cp(cp) {}
- virtual const char* what() const throw() { return "Invalid code point"; }
- uint32_t code_point() const {return cp;}
- };
-
- class invalid_utf8 : public exception {
- uint8_t u8;
- public:
- invalid_utf8 (uint8_t u) : u8(u) {}
- virtual const char* what() const throw() { return "Invalid UTF-8"; }
- uint8_t utf8_octet() const {return u8;}
- };
-
- class invalid_utf16 : public exception {
- uint16_t u16;
- public:
- invalid_utf16 (uint16_t u) : u16(u) {}
- virtual const char* what() const throw() { return "Invalid UTF-16"; }
- uint16_t utf16_word() const {return u16;}
- };
-
- class not_enough_room : public exception {
- public:
- virtual const char* what() const throw() { return "Not enough space"; }
- };
-
- /// The library API - functions intended to be called by the users
-
- template <typename octet_iterator>
- octet_iterator append(uint32_t cp, octet_iterator result)
- {
- if (!utf8::internal::is_code_point_valid(cp))
- throw invalid_code_point(cp);
-
- if (cp < 0x80) // one octet
- *(result++) = static_cast<uint8_t>(cp);
- else if (cp < 0x800) { // two octets
- *(result++) = static_cast<uint8_t>((cp >> 6) | 0xc0);
- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
- }
- else if (cp < 0x10000) { // three octets
- *(result++) = static_cast<uint8_t>((cp >> 12) | 0xe0);
- *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
- }
- else { // four octets
- *(result++) = static_cast<uint8_t>((cp >> 18) | 0xf0);
- *(result++) = static_cast<uint8_t>(((cp >> 12) & 0x3f) | 0x80);
- *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
- }
- return result;
- }
-
- template <typename octet_iterator, typename output_iterator>
- output_iterator replace_invalid(octet_iterator start, octet_iterator end, output_iterator out, uint32_t replacement)
- {
- while (start != end) {
- octet_iterator sequence_start = start;
- internal::utf_error err_code = utf8::internal::validate_next(start, end);
- switch (err_code) {
- case internal::UTF8_OK :
- for (octet_iterator it = sequence_start; it != start; ++it)
- *out++ = *it;
- break;
- case internal::NOT_ENOUGH_ROOM:
- throw not_enough_room();
- case internal::INVALID_LEAD:
- out = utf8::append (replacement, out);
- ++start;
- break;
- case internal::INCOMPLETE_SEQUENCE:
- case internal::OVERLONG_SEQUENCE:
- case internal::INVALID_CODE_POINT:
- out = utf8::append (replacement, out);
- ++start;
- // just one replacement mark for the sequence
- while (start != end && utf8::internal::is_trail(*start))
- ++start;
- break;
- }
- }
- return out;
- }
-
- template <typename octet_iterator, typename output_iterator>
- inline output_iterator replace_invalid(octet_iterator start, octet_iterator end, output_iterator out)
- {
- static const uint32_t replacement_marker = utf8::internal::mask16(0xfffd);
- return utf8::replace_invalid(start, end, out, replacement_marker);
- }
-
- template <typename octet_iterator>
- uint32_t next(octet_iterator& it, octet_iterator end)
- {
- uint32_t cp = 0;
- internal::utf_error err_code = utf8::internal::validate_next(it, end, cp);
- switch (err_code) {
- case internal::UTF8_OK :
- break;
- case internal::NOT_ENOUGH_ROOM :
- throw not_enough_room();
- case internal::INVALID_LEAD :
- case internal::INCOMPLETE_SEQUENCE :
- case internal::OVERLONG_SEQUENCE :
- throw invalid_utf8(*it);
- case internal::INVALID_CODE_POINT :
- throw invalid_code_point(cp);
- }
- return cp;
- }
-
- template <typename octet_iterator>
- uint32_t peek_next(octet_iterator it, octet_iterator end)
- {
- return utf8::next(it, end);
- }
-
- template <typename octet_iterator>
- uint32_t prior(octet_iterator& it, octet_iterator start)
- {
- // can't do much if it == start
- if (it == start)
- throw not_enough_room();
-
- octet_iterator end = it;
- // Go back until we hit either a lead octet or start
- while (utf8::internal::is_trail(*(--it)))
- if (it == start)
- throw invalid_utf8(*it); // error - no lead byte in the sequence
- return utf8::peek_next(it, end);
- }
-
- /// Deprecated in versions that include "prior"
- template <typename octet_iterator>
- uint32_t previous(octet_iterator& it, octet_iterator pass_start)
- {
- octet_iterator end = it;
- while (utf8::internal::is_trail(*(--it)))
- if (it == pass_start)
- throw invalid_utf8(*it); // error - no lead byte in the sequence
- octet_iterator temp = it;
- return utf8::next(temp, end);
- }
-
- template <typename octet_iterator, typename distance_type>
- void advance (octet_iterator& it, distance_type n, octet_iterator end)
- {
- for (distance_type i = 0; i < n; ++i)
- utf8::next(it, end);
- }
-
- template <typename octet_iterator, typename distance_type>
- void retreat (octet_iterator& it, distance_type n, octet_iterator start)
- {
- for (distance_type i = 0; i < n; ++i)
- utf8::prior(it, start);
- }
-
- template <typename octet_iterator>
- typename std::iterator_traits<octet_iterator>::difference_type
- distance (octet_iterator first, octet_iterator last)
- {
- typename std::iterator_traits<octet_iterator>::difference_type dist;
- for (dist = 0; first < last; ++dist)
- utf8::next(first, last);
- return dist;
- }
-
- template <typename u16bit_iterator, typename octet_iterator>
- octet_iterator utf16to8 (u16bit_iterator start, u16bit_iterator end, octet_iterator result)
- {
- while (start != end) {
- uint32_t cp = utf8::internal::mask16(*start++);
- // Take care of surrogate pairs first
- if (utf8::internal::is_lead_surrogate(cp)) {
- if (start != end) {
- uint32_t trail_surrogate = utf8::internal::mask16(*start++);
- if (utf8::internal::is_trail_surrogate(trail_surrogate))
- cp = (cp << 10) + trail_surrogate + internal::SURROGATE_OFFSET;
- else
- throw invalid_utf16(static_cast<uint16_t>(trail_surrogate));
- }
- else
- throw invalid_utf16(static_cast<uint16_t>(cp));
-
- }
- // Lone trail surrogate
- else if (utf8::internal::is_trail_surrogate(cp))
- throw invalid_utf16(static_cast<uint16_t>(cp));
-
- result = utf8::append(cp, result);
- }
- return result;
- }
-
- template <typename u16bit_iterator, typename octet_iterator>
- u16bit_iterator utf8to16 (octet_iterator start, octet_iterator end, u16bit_iterator result)
- {
- while (start != end) {
- uint32_t cp = utf8::next(start, end);
- if (cp > 0xffff) { //make a surrogate pair
- *result++ = static_cast<uint16_t>((cp >> 10) + internal::LEAD_OFFSET);
- *result++ = static_cast<uint16_t>((cp & 0x3ff) + internal::TRAIL_SURROGATE_MIN);
- }
- else
- *result++ = static_cast<uint16_t>(cp);
- }
- return result;
- }
-
- template <typename octet_iterator, typename u32bit_iterator>
- octet_iterator utf32to8 (u32bit_iterator start, u32bit_iterator end, octet_iterator result)
- {
- while (start != end)
- result = utf8::append(*(start++), result);
-
- return result;
- }
-
- template <typename octet_iterator, typename u32bit_iterator>
- u32bit_iterator utf8to32 (octet_iterator start, octet_iterator end, u32bit_iterator result)
- {
- while (start != end)
- (*result++) = utf8::next(start, end);
-
- return result;
- }
-
- // The iterator class
- template <typename octet_iterator>
- class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
- octet_iterator it;
- octet_iterator range_start;
- octet_iterator range_end;
- public:
- iterator () {}
- explicit iterator (const octet_iterator& octet_it,
- const octet_iterator& range_start,
- const octet_iterator& range_end) :
- it(octet_it), range_start(range_start), range_end(range_end)
- {
- if (it < range_start || it > range_end)
- throw std::out_of_range("Invalid utf-8 iterator position");
- }
- // the default "big three" are OK
- octet_iterator base () const { return it; }
- uint32_t operator * () const
- {
- octet_iterator temp = it;
- return utf8::next(temp, range_end);
- }
- bool operator == (const iterator& rhs) const
- {
- if (range_start != rhs.range_start || range_end != rhs.range_end)
- throw std::logic_error("Comparing utf-8 iterators defined with different ranges");
- return (it == rhs.it);
- }
- bool operator != (const iterator& rhs) const
- {
- return !(operator == (rhs));
- }
- iterator& operator ++ ()
- {
- utf8::next(it, range_end);
- return *this;
- }
- iterator operator ++ (int)
- {
- iterator temp = *this;
- utf8::next(it, range_end);
- return temp;
- }
- iterator& operator -- ()
- {
- utf8::prior(it, range_start);
- return *this;
- }
- iterator operator -- (int)
- {
- iterator temp = *this;
- utf8::prior(it, range_start);
- return temp;
- }
- }; // class iterator
-
-} // namespace utf8
-
-#endif //header guard
-
-
diff --git a/node_modules/node-sass/src/libsass/src/utf8/core.h b/node_modules/node-sass/src/libsass/src/utf8/core.h
deleted file mode 100644
index f85081f..0000000
--- a/node_modules/node-sass/src/libsass/src/utf8/core.h
+++ /dev/null
@@ -1,329 +0,0 @@
-// Copyright 2006 Nemanja Trifunovic
-
-/*
-Permission is hereby granted, free of charge, to any person or organization
-obtaining a copy of the software and accompanying documentation covered by
-this license (the "Software") to use, reproduce, display, distribute,
-execute, and transmit the Software, and to prepare derivative works of the
-Software, and to permit third-parties to whom the Software is furnished to
-do so, all subject to the following:
-
-The copyright notices in the Software and this entire statement, including
-the above license grant, this restriction and the following disclaimer,
-must be included in all copies of the Software, in whole or in part, and
-all derivative works of the Software, unless such copies or derivative
-works are solely in the form of machine-executable object code generated by
-a source language processor.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
-SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
-FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
-*/
-
-
-#ifndef UTF8_FOR_CPP_CORE_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-#define UTF8_FOR_CPP_CORE_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-
-#include <iterator>
-
-namespace utf8
-{
- // The typedefs for 8-bit, 16-bit and 32-bit unsigned integers
- // You may need to change them to match your system.
- // These typedefs have the same names as ones from cstdint, or boost/cstdint
- typedef unsigned char uint8_t;
- typedef unsigned short uint16_t;
- typedef unsigned int uint32_t;
-
-// Helper code - not intended to be directly called by the library users. May be changed at any time
-namespace internal
-{
- // Unicode constants
- // Leading (high) surrogates: 0xd800 - 0xdbff
- // Trailing (low) surrogates: 0xdc00 - 0xdfff
- const uint16_t LEAD_SURROGATE_MIN = 0xd800u;
- const uint16_t LEAD_SURROGATE_MAX = 0xdbffu;
- const uint16_t TRAIL_SURROGATE_MIN = 0xdc00u;
- const uint16_t TRAIL_SURROGATE_MAX = 0xdfffu;
- const uint16_t LEAD_OFFSET = LEAD_SURROGATE_MIN - (0x10000 >> 10);
- const uint32_t SURROGATE_OFFSET = 0x10000u - (LEAD_SURROGATE_MIN << 10) - TRAIL_SURROGATE_MIN;
-
- // Maximum valid value for a Unicode code point
- const uint32_t CODE_POINT_MAX = 0x0010ffffu;
-
- template<typename octet_type>
- inline uint8_t mask8(octet_type oc)
- {
- return static_cast<uint8_t>(0xff & oc);
- }
- template<typename u16_type>
- inline uint16_t mask16(u16_type oc)
- {
- return static_cast<uint16_t>(0xffff & oc);
- }
- template<typename octet_type>
- inline bool is_trail(octet_type oc)
- {
- return ((utf8::internal::mask8(oc) >> 6) == 0x2);
- }
-
- template <typename u16>
- inline bool is_lead_surrogate(u16 cp)
- {
- return (cp >= LEAD_SURROGATE_MIN && cp <= LEAD_SURROGATE_MAX);
- }
-
- template <typename u16>
- inline bool is_trail_surrogate(u16 cp)
- {
- return (cp >= TRAIL_SURROGATE_MIN && cp <= TRAIL_SURROGATE_MAX);
- }
-
- template <typename u16>
- inline bool is_surrogate(u16 cp)
- {
- return (cp >= LEAD_SURROGATE_MIN && cp <= TRAIL_SURROGATE_MAX);
- }
-
- template <typename u32>
- inline bool is_code_point_valid(u32 cp)
- {
- return (cp <= CODE_POINT_MAX && !utf8::internal::is_surrogate(cp));
- }
-
- template <typename octet_iterator>
- inline typename std::iterator_traits<octet_iterator>::difference_type
- sequence_length(octet_iterator lead_it)
- {
- uint8_t lead = utf8::internal::mask8(*lead_it);
- if (lead < 0x80)
- return 1;
- else if ((lead >> 5) == 0x6)
- return 2;
- else if ((lead >> 4) == 0xe)
- return 3;
- else if ((lead >> 3) == 0x1e)
- return 4;
- else
- return 0;
- }
-
- template <typename octet_difference_type>
- inline bool is_overlong_sequence(uint32_t cp, octet_difference_type length)
- {
- if (cp < 0x80) {
- if (length != 1)
- return true;
- }
- else if (cp < 0x800) {
- if (length != 2)
- return true;
- }
- else if (cp < 0x10000) {
- if (length != 3)
- return true;
- }
-
- return false;
- }
-
- enum utf_error {UTF8_OK, NOT_ENOUGH_ROOM, INVALID_LEAD, INCOMPLETE_SEQUENCE, OVERLONG_SEQUENCE, INVALID_CODE_POINT};
-
- /// Helper for get_sequence_x
- template <typename octet_iterator>
- utf_error increase_safely(octet_iterator& it, octet_iterator end)
- {
- if (++it == end)
- return NOT_ENOUGH_ROOM;
-
- if (!utf8::internal::is_trail(*it))
- return INCOMPLETE_SEQUENCE;
-
- return UTF8_OK;
- }
-
- #define UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(IT, END) {utf_error ret = increase_safely(IT, END); if (ret != UTF8_OK) return ret;}
-
- /// get_sequence_x functions decode utf-8 sequences of the length x
- template <typename octet_iterator>
- utf_error get_sequence_1(octet_iterator& it, octet_iterator end, uint32_t& code_point)
- {
- if (it == end)
- return NOT_ENOUGH_ROOM;
-
- code_point = utf8::internal::mask8(*it);
-
- return UTF8_OK;
- }
-
- template <typename octet_iterator>
- utf_error get_sequence_2(octet_iterator& it, octet_iterator end, uint32_t& code_point)
- {
- if (it == end)
- return NOT_ENOUGH_ROOM;
-
- code_point = utf8::internal::mask8(*it);
-
- UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end)
-
- code_point = ((code_point << 6) & 0x7ff) + ((*it) & 0x3f);
-
- return UTF8_OK;
- }
-
- template <typename octet_iterator>
- utf_error get_sequence_3(octet_iterator& it, octet_iterator end, uint32_t& code_point)
- {
- if (it == end)
- return NOT_ENOUGH_ROOM;
-
- code_point = utf8::internal::mask8(*it);
-
- UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end)
-
- code_point = ((code_point << 12) & 0xffff) + ((utf8::internal::mask8(*it) << 6) & 0xfff);
-
- UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end)
-
- code_point += (*it) & 0x3f;
-
- return UTF8_OK;
- }
-
- template <typename octet_iterator>
- utf_error get_sequence_4(octet_iterator& it, octet_iterator end, uint32_t& code_point)
- {
- if (it == end)
- return NOT_ENOUGH_ROOM;
-
- code_point = utf8::internal::mask8(*it);
-
- UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end)
-
- code_point = ((code_point << 18) & 0x1fffff) + ((utf8::internal::mask8(*it) << 12) & 0x3ffff);
-
- UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end)
-
- code_point += (utf8::internal::mask8(*it) << 6) & 0xfff;
-
- UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR(it, end)
-
- code_point += (*it) & 0x3f;
-
- return UTF8_OK;
- }
-
- #undef UTF8_CPP_INCREASE_AND_RETURN_ON_ERROR
-
- template <typename octet_iterator>
- utf_error validate_next(octet_iterator& it, octet_iterator end, uint32_t& code_point)
- {
- // Save the original value of it so we can go back in case of failure
- // Of course, it does not make much sense with i.e. stream iterators
- octet_iterator original_it = it;
-
- uint32_t cp = 0;
- // Determine the sequence length based on the lead octet
- typedef typename std::iterator_traits<octet_iterator>::difference_type octet_difference_type;
- const octet_difference_type length = utf8::internal::sequence_length(it);
-
- // Get trail octets and calculate the code point
- utf_error err = UTF8_OK;
- switch (length) {
- case 0:
- return INVALID_LEAD;
- case 1:
- err = utf8::internal::get_sequence_1(it, end, cp);
- break;
- case 2:
- err = utf8::internal::get_sequence_2(it, end, cp);
- break;
- case 3:
- err = utf8::internal::get_sequence_3(it, end, cp);
- break;
- case 4:
- err = utf8::internal::get_sequence_4(it, end, cp);
- break;
- }
-
- if (err == UTF8_OK) {
- // Decoding succeeded. Now, security checks...
- if (utf8::internal::is_code_point_valid(cp)) {
- if (!utf8::internal::is_overlong_sequence(cp, length)){
- // Passed! Return here.
- code_point = cp;
- ++it;
- return UTF8_OK;
- }
- else
- err = OVERLONG_SEQUENCE;
- }
- else
- err = INVALID_CODE_POINT;
- }
-
- // Failure branch - restore the original value of the iterator
- it = original_it;
- return err;
- }
-
- template <typename octet_iterator>
- inline utf_error validate_next(octet_iterator& it, octet_iterator end) {
- uint32_t ignored;
- return utf8::internal::validate_next(it, end, ignored);
- }
-
-} // namespace internal
-
- /// The library API - functions intended to be called by the users
-
- // Byte order mark
- const uint8_t bom[] = {0xef, 0xbb, 0xbf};
-
- template <typename octet_iterator>
- octet_iterator find_invalid(octet_iterator start, octet_iterator end)
- {
- octet_iterator result = start;
- while (result != end) {
- utf8::internal::utf_error err_code = utf8::internal::validate_next(result, end);
- if (err_code != internal::UTF8_OK)
- return result;
- }
- return result;
- }
-
- template <typename octet_iterator>
- inline bool is_valid(octet_iterator start, octet_iterator end)
- {
- return (utf8::find_invalid(start, end) == end);
- }
-
- template <typename octet_iterator>
- inline bool starts_with_bom (octet_iterator it, octet_iterator end)
- {
- return (
- ((it != end) && (utf8::internal::mask8(*it++)) == bom[0]) &&
- ((it != end) && (utf8::internal::mask8(*it++)) == bom[1]) &&
- ((it != end) && (utf8::internal::mask8(*it)) == bom[2])
- );
- }
-
- //Deprecated in release 2.3
- template <typename octet_iterator>
- inline bool is_bom (octet_iterator it)
- {
- return (
- (utf8::internal::mask8(*it++)) == bom[0] &&
- (utf8::internal::mask8(*it++)) == bom[1] &&
- (utf8::internal::mask8(*it)) == bom[2]
- );
- }
-} // namespace utf8
-
-#endif // header guard
-
-
diff --git a/node_modules/node-sass/src/libsass/src/utf8/unchecked.h b/node_modules/node-sass/src/libsass/src/utf8/unchecked.h
deleted file mode 100644
index 01bdd07..0000000
--- a/node_modules/node-sass/src/libsass/src/utf8/unchecked.h
+++ /dev/null
@@ -1,235 +0,0 @@
-// Copyright 2006 Nemanja Trifunovic
-
-/*
-Permission is hereby granted, free of charge, to any person or organization
-obtaining a copy of the software and accompanying documentation covered by
-this license (the "Software") to use, reproduce, display, distribute,
-execute, and transmit the Software, and to prepare derivative works of the
-Software, and to permit third-parties to whom the Software is furnished to
-do so, all subject to the following:
-
-The copyright notices in the Software and this entire statement, including
-the above license grant, this restriction and the following disclaimer,
-must be included in all copies of the Software, in whole or in part, and
-all derivative works of the Software, unless such copies or derivative
-works are solely in the form of machine-executable object code generated by
-a source language processor.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
-SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
-FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
-*/
-
-
-#ifndef UTF8_FOR_CPP_UNCHECKED_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-#define UTF8_FOR_CPP_UNCHECKED_H_2675DCD0_9480_4c0c_B92A_CC14C027B731
-
-#include "core.h"
-
-namespace utf8
-{
- namespace unchecked
- {
- template <typename octet_iterator>
- octet_iterator append(uint32_t cp, octet_iterator result)
- {
- if (cp < 0x80) // one octet
- *(result++) = static_cast<uint8_t>(cp);
- else if (cp < 0x800) { // two octets
- *(result++) = static_cast<uint8_t>((cp >> 6) | 0xc0);
- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
- }
- else if (cp < 0x10000) { // three octets
- *(result++) = static_cast<uint8_t>((cp >> 12) | 0xe0);
- *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
- }
- else { // four octets
- *(result++) = static_cast<uint8_t>((cp >> 18) | 0xf0);
- *(result++) = static_cast<uint8_t>(((cp >> 12) & 0x3f)| 0x80);
- *(result++) = static_cast<uint8_t>(((cp >> 6) & 0x3f) | 0x80);
- *(result++) = static_cast<uint8_t>((cp & 0x3f) | 0x80);
- }
- return result;
- }
-
- template <typename octet_iterator>
- uint32_t next(octet_iterator& it)
- {
- uint32_t cp = utf8::internal::mask8(*it);
- typename std::iterator_traits<octet_iterator>::difference_type length = utf8::internal::sequence_length(it);
- switch (length) {
- case 1:
- break;
- case 2:
- it++;
- cp = ((cp << 6) & 0x7ff) + ((*it) & 0x3f);
- break;
- case 3:
- ++it;
- cp = ((cp << 12) & 0xffff) + ((utf8::internal::mask8(*it) << 6) & 0xfff);
- ++it;
- cp += (*it) & 0x3f;
- break;
- case 4:
- ++it;
- cp = ((cp << 18) & 0x1fffff) + ((utf8::internal::mask8(*it) << 12) & 0x3ffff);
- ++it;
- cp += (utf8::internal::mask8(*it) << 6) & 0xfff;
- ++it;
- cp += (*it) & 0x3f;
- break;
- }
- ++it;
- return cp;
- }
-
- template <typename octet_iterator>
- uint32_t peek_next(octet_iterator it)
- {
- return utf8::unchecked::next(it);
- }
-
- template <typename octet_iterator>
- uint32_t prior(octet_iterator& it)
- {
- while (utf8::internal::is_trail(*(--it))) ;
- octet_iterator temp = it;
- return utf8::unchecked::next(temp);
- }
-
- // Deprecated in versions that include prior, but only for the sake of consistency (see utf8::previous)
- template <typename octet_iterator>
- inline uint32_t previous(octet_iterator& it)
- {
- return utf8::unchecked::prior(it);
- }
-
- template <typename octet_iterator, typename distance_type>
- void advance (octet_iterator& it, distance_type n)
- {
- for (distance_type i = 0; i < n; ++i)
- utf8::unchecked::next(it);
- }
-
- template <typename octet_iterator, typename distance_type>
- void retreat (octet_iterator& it, distance_type n)
- {
- for (distance_type i = 0; i < n; ++i)
- utf8::unchecked::prior(it);
- }
-
- template <typename octet_iterator>
- typename std::iterator_traits<octet_iterator>::difference_type
- distance (octet_iterator first, octet_iterator last)
- {
- typename std::iterator_traits<octet_iterator>::difference_type dist;
- for (dist = 0; first < last; ++dist)
- utf8::unchecked::next(first);
- return dist;
- }
-
- template <typename u16bit_iterator, typename octet_iterator>
- octet_iterator utf16to8 (u16bit_iterator start, u16bit_iterator end, octet_iterator result)
- {
- while (start != end) {
- uint32_t cp = utf8::internal::mask16(*start++);
- // Take care of surrogate pairs first
- if (utf8::internal::is_lead_surrogate(cp)) {
- uint32_t trail_surrogate = utf8::internal::mask16(*start++);
- cp = (cp << 10) + trail_surrogate + internal::SURROGATE_OFFSET;
- }
- result = utf8::unchecked::append(cp, result);
- }
- return result;
- }
-
- template <typename u16bit_iterator, typename octet_iterator>
- u16bit_iterator utf8to16 (octet_iterator start, octet_iterator end, u16bit_iterator result)
- {
- while (start < end) {
- uint32_t cp = utf8::unchecked::next(start);
- if (cp > 0xffff) { //make a surrogate pair
- *result++ = static_cast<uint16_t>((cp >> 10) + internal::LEAD_OFFSET);
- *result++ = static_cast<uint16_t>((cp & 0x3ff) + internal::TRAIL_SURROGATE_MIN);
- }
- else
- *result++ = static_cast<uint16_t>(cp);
- }
- return result;
- }
-
- template <typename octet_iterator, typename u32bit_iterator>
- octet_iterator utf32to8 (u32bit_iterator start, u32bit_iterator end, octet_iterator result)
- {
- while (start != end)
- result = utf8::unchecked::append(*(start++), result);
-
- return result;
- }
-
- template <typename octet_iterator, typename u32bit_iterator>
- u32bit_iterator utf8to32 (octet_iterator start, octet_iterator end, u32bit_iterator result)
- {
- while (start < end)
- (*result++) = utf8::unchecked::next(start);
-
- return result;
- }
-
- // The iterator class
- template <typename octet_iterator>
- class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
- octet_iterator it;
- public:
- iterator () {}
- explicit iterator (const octet_iterator& octet_it): it(octet_it) {}
- // the default "big three" are OK
- octet_iterator base () const { return it; }
- uint32_t operator * () const
- {
- octet_iterator temp = it;
- return utf8::unchecked::next(temp);
- }
- bool operator == (const iterator& rhs) const
- {
- return (it == rhs.it);
- }
- bool operator != (const iterator& rhs) const
- {
- return !(operator == (rhs));
- }
- iterator& operator ++ ()
- {
- ::std::advance(it, utf8::internal::sequence_length(it));
- return *this;
- }
- iterator operator ++ (int)
- {
- iterator temp = *this;
- ::std::advance(it, utf8::internal::sequence_length(it));
- return temp;
- }
- iterator& operator -- ()
- {
- utf8::unchecked::prior(it);
- return *this;
- }
- iterator operator -- (int)
- {
- iterator temp = *this;
- utf8::unchecked::prior(it);
- return temp;
- }
- }; // class iterator
-
- } // namespace utf8::unchecked
-} // namespace utf8
-
-
-#endif // header guard
-
diff --git a/node_modules/node-sass/src/libsass/src/utf8_string.cpp b/node_modules/node-sass/src/libsass/src/utf8_string.cpp
deleted file mode 100644
index 1942552..0000000
--- a/node_modules/node-sass/src/libsass/src/utf8_string.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-#include "sass.hpp"
-#include <string>
-#include <vector>
-#include <cstdlib>
-#include <cmath>
-
-#include "utf8.h"
-
-namespace Sass {
- namespace UTF_8 {
- using std::string;
-
- // naming conventions:
- // offset: raw byte offset (0 based)
- // position: code point offset (0 based)
- // index: code point offset (1 based or negative)
-
- // function that will count the number of code points (utf-8 characters) from the given beginning to the given end
- size_t code_point_count(const string& str, size_t start, size_t end) {
- return utf8::distance(str.begin() + start, str.begin() + end);
- }
-
- size_t code_point_count(const string& str) {
- return utf8::distance(str.begin(), str.end());
- }
-
- // function that will return the byte offset at a code point position
- size_t offset_at_position(const string& str, size_t position) {
- string::const_iterator it = str.begin();
- utf8::advance(it, position, str.end());
- return std::distance(str.begin(), it);
- }
-
- // function that returns number of bytes in a character at offset
- size_t code_point_size_at_offset(const string& str, size_t offset) {
- // get iterator from string and forward by offset
- string::const_iterator stop = str.begin() + offset;
- // check if beyond boundary
- if (stop == str.end()) return 0;
- // advance by one code point
- utf8::advance(stop, 1, str.end());
- // calculate offset for code point
- return stop - str.begin() - offset;
- }
-
- // function that will return a normalized index, given a crazy one
- size_t normalize_index(int index, size_t len) {
- long signed_len = static_cast<long>(len);
- // assuming the index is 1-based
- // we are returning a 0-based index
- if (index > 0 && index <= signed_len) {
- // positive and within string length
- return index-1;
- }
- else if (index > signed_len) {
- // positive and past string length
- return len;
- }
- else if (index == 0) {
- return 0;
- }
- else if (std::abs((double)index) <= signed_len) {
- // negative and within string length
- return index + signed_len;
- }
- else {
- // negative and past string length
- return 0;
- }
- }
-
- #ifdef _WIN32
-
- // utf16 functions
- using std::wstring;
-
- // convert from utf16/wide string to utf8 string
- string convert_from_utf16(const wstring& utf16)
- {
- string utf8;
- // pre-allocate expected memory
- utf8.reserve(sizeof(utf16)/2);
- utf8::utf16to8(utf16.begin(), utf16.end(),
- back_inserter(utf8));
- return utf8;
- }
-
- // convert from utf8 string to utf16/wide string
- wstring convert_to_utf16(const string& utf8)
- {
- wstring utf16;
- // pre-allocate expected memory
- utf16.reserve(code_point_count(utf8)*2);
- utf8::utf8to16(utf8.begin(), utf8.end(),
- back_inserter(utf16));
- return utf16;
- }
-
- #endif
-
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/utf8_string.hpp b/node_modules/node-sass/src/libsass/src/utf8_string.hpp
deleted file mode 100644
index 5e879be..0000000
--- a/node_modules/node-sass/src/libsass/src/utf8_string.hpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifndef SASS_UTF8_STRING_H
-#define SASS_UTF8_STRING_H
-
-#include <string>
-#include "utf8.h"
-
-namespace Sass {
- namespace UTF_8 {
-
- // naming conventions:
- // offset: raw byte offset (0 based)
- // position: code point offset (0 based)
- // index: code point offset (1 based or negative)
-
- // function that will count the number of code points (utf-8 characters) from the beginning to the given end
- size_t code_point_count(const std::string& str, size_t start, size_t end);
- size_t code_point_count(const std::string& str);
-
- // function that will return the byte offset of a code point in a
- size_t offset_at_position(const std::string& str, size_t position);
-
- // function that returns number of bytes in a character in a string
- size_t code_point_size_at_offset(const std::string& str, size_t offset);
-
- // function that will return a normalized index, given a crazy one
- size_t normalize_index(int index, size_t len);
-
- #ifdef _WIN32
- // functions to handle unicode paths on windows
- std::string convert_from_utf16(const std::wstring& wstr);
- std::wstring convert_to_utf16(const std::string& str);
- #endif
-
- }
-}
-
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/util.cpp b/node_modules/node-sass/src/libsass/src/util.cpp
deleted file mode 100644
index 60f69ab..0000000
--- a/node_modules/node-sass/src/libsass/src/util.cpp
+++ /dev/null
@@ -1,733 +0,0 @@
-#include "sass.hpp"
-#include "sass.h"
-#include "ast.hpp"
-#include "util.hpp"
-#include "lexer.hpp"
-#include "prelexer.hpp"
-#include "constants.hpp"
-#include "utf8/checked.h"
-
-#include <cmath>
-#include <stdint.h>
-#if defined(_MSC_VER) && _MSC_VER >= 1800 && _MSC_VER < 1900 && defined(_M_X64)
-#include <mutex>
-#endif
-
-namespace Sass {
-
- double round(double val, size_t precision)
- {
- // Disable FMA3-optimized implementation when compiling with VS2013 for x64 targets
- // See https://github.com/sass/node-sass/issues/1854 for details
- // FIXME: Remove this workaround when we switch to VS2015+
- #if defined(_MSC_VER) && _MSC_VER >= 1800 && _MSC_VER < 1900 && defined(_M_X64)
- static std::once_flag flag;
- std::call_once(flag, []() { _set_FMA3_enable(0); });
- #endif
-
- // https://github.com/sass/sass/commit/4e3e1d5684cc29073a507578fc977434ff488c93
- if (fmod(val, 1) - 0.5 > - std::pow(0.1, precision + 1)) return std::ceil(val);
- else if (fmod(val, 1) - 0.5 > std::pow(0.1, precision)) return std::floor(val);
- // work around some compiler issue
- // cygwin has it not defined in std
- using namespace std;
- return ::round(val);
- }
-
- /* Locale unspecific atof function. */
- double sass_strtod(const char *str)
- {
- char separator = *(localeconv()->decimal_point);
- if(separator != '.'){
- // The current locale specifies another
- // separator. convert the separator to the
- // one understood by the locale if needed
- const char *found = strchr(str, '.');
- if(found != NULL){
- // substitution is required. perform the substitution on a copy
- // of the string. This is slower but it is thread safe.
- char *copy = sass_copy_c_string(str);
- *(copy + (found - str)) = separator;
- double res = strtod(copy, NULL);
- free(copy);
- return res;
- }
- }
-
- return strtod(str, NULL);
- }
-
- // helper for safe access to c_ctx
- const char* safe_str (const char* str, const char* alt) {
- return str == NULL ? alt : str;
- }
-
- void free_string_array(char ** arr) {
- if(!arr)
- return;
-
- char **it = arr;
- while (it && (*it)) {
- free(*it);
- ++it;
- }
-
- free(arr);
- }
-
- char **copy_strings(const std::vector<std::string>& strings, char*** array, int skip) {
- int num = static_cast<int>(strings.size()) - skip;
- char** arr = (char**) calloc(num + 1, sizeof(char*));
- if (arr == 0)
- return *array = (char **)NULL;
-
- for(int i = 0; i < num; i++) {
- arr[i] = (char*) malloc(sizeof(char) * (strings[i + skip].size() + 1));
- if (arr[i] == 0) {
- free_string_array(arr);
- return *array = (char **)NULL;
- }
- std::copy(strings[i + skip].begin(), strings[i + skip].end(), arr[i]);
- arr[i][strings[i + skip].size()] = '\0';
- }
-
- arr[num] = 0;
- return *array = arr;
- }
-
- // read css string (handle multiline DELIM)
- std::string read_css_string(const std::string& str, bool css)
- {
- if (!css) return str;
- std::string out("");
- bool esc = false;
- for (auto i : str) {
- if (i == '\\') {
- esc = ! esc;
- } else if (esc && i == '\r') {
- continue;
- } else if (esc && i == '\n') {
- out.resize (out.size () - 1);
- esc = false;
- continue;
- } else {
- esc = false;
- }
- out.push_back(i);
- }
- // happens when parsing does not correctly skip
- // over escaped sequences for ie. interpolations
- // one example: foo\#{interpolate}
- // if (esc) out += '\\';
- return out;
- }
-
- // double escape all escape sequences
- // keep unescaped quotes and backslashes
- std::string evacuate_escapes(const std::string& str)
- {
- std::string out("");
- bool esc = false;
- for (auto i : str) {
- if (i == '\\' && !esc) {
- out += '\\';
- out += '\\';
- esc = true;
- } else if (esc && i == '"') {
- out += '\\';
- out += i;
- esc = false;
- } else if (esc && i == '\'') {
- out += '\\';
- out += i;
- esc = false;
- } else if (esc && i == '\\') {
- out += '\\';
- out += i;
- esc = false;
- } else {
- esc = false;
- out += i;
- }
- }
- // happens when parsing does not correctly skip
- // over escaped sequences for ie. interpolations
- // one example: foo\#{interpolate}
- // if (esc) out += '\\';
- return out;
- }
-
- // bell characters are replaced with spaces
- void newline_to_space(std::string& str)
- {
- std::replace(str.begin(), str.end(), '\n', ' ');
- }
-
- // bell characters are replaced with spaces
- // also eats spaces after line-feeds (ltrim)
- std::string string_to_output(const std::string& str)
- {
- std::string out("");
- bool lf = false;
- for (auto i : str) {
- if (i == '\n') {
- out += ' ';
- lf = true;
- } else if (!(lf && isspace(i))) {
- out += i;
- lf = false;
- }
- }
- return out;
- }
-
- std::string escape_string(const std::string& str)
- {
- std::string out("");
- for (auto i : str) {
- if (i == '\n') {
- out += "\\n";
- } else if (i == '\r') {
- out += "\\r";
- } else if (i == '\t') {
- out += "\\t";
- } else {
- out += i;
- }
- }
- return out;
- }
-
- std::string comment_to_string(const std::string& text)
- {
- std::string str = "";
- size_t has = 0;
- char prev = 0;
- bool clean = false;
- for (auto i : text) {
- if (clean) {
- if (i == '\n') { has = 0; }
- else if (i == '\r') { has = 0; }
- else if (i == '\t') { ++ has; }
- else if (i == ' ') { ++ has; }
- else if (i == '*') {}
- else {
- clean = false;
- str += ' ';
- if (prev == '*' && i == '/') str += "*/";
- else str += i;
- }
- } else if (i == '\n') {
- clean = true;
- } else if (i == '\r') {
- clean = true;
- } else {
- str += i;
- }
- prev = i;
- }
- if (has) return str;
- else return text;
- }
-
- // find best quote_mark by detecting if the string contains any single
- // or double quotes. When a single quote is found, we not we want a double
- // quote as quote_mark. Otherwise we check if the string cotains any double
- // quotes, which will trigger the use of single quotes as best quote_mark.
- char detect_best_quotemark(const char* s, char qm)
- {
- // ensure valid fallback quote_mark
- char quote_mark = qm && qm != '*' ? qm : '"';
- while (*s) {
- // force double quotes as soon
- // as one single quote is found
- if (*s == '\'') { return '"'; }
- // a single does not force quote_mark
- // maybe we see a double quote later
- else if (*s == '"') { quote_mark = '\''; }
- ++ s;
- }
- return quote_mark;
- }
-
- std::string read_hex_escapes(const std::string& s)
- {
-
- std::string result;
- bool skipped = false;
-
- for (size_t i = 0, L = s.length(); i < L; ++i) {
-
- // implement the same strange ruby sass behavior
- // an escape sequence can also mean a unicode char
- if (s[i] == '\\' && !skipped) {
-
- // remember
- skipped = true;
-
- // escape length
- size_t len = 1;
-
- // parse as many sequence chars as possible
- // ToDo: Check if ruby aborts after possible max
- while (i + len < L && s[i + len] && isxdigit(s[i + len])) ++ len;
-
- if (len > 1) {
-
- // convert the extracted hex string to code point value
- // ToDo: Maybe we could do this without creating a substring
- uint32_t cp = strtol(s.substr (i + 1, len - 1).c_str(), NULL, 16);
-
- if (s[i + len] == ' ') ++ len;
-
- // assert invalid code points
- if (cp == 0) cp = 0xFFFD;
- // replace bell character
- // if (cp == '\n') cp = 32;
-
- // use a very simple approach to convert via utf8 lib
- // maybe there is a more elegant way; maybe we shoud
- // convert the whole output from string to a stream!?
- // allocate memory for utf8 char and convert to utf8
- unsigned char u[5] = {0,0,0,0,0}; utf8::append(cp, u);
- for(size_t m = 0; m < 5 && u[m]; m++) result.push_back(u[m]);
-
- // skip some more chars?
- i += len - 1; skipped = false;
-
- }
-
- else {
-
- skipped = false;
-
- result.push_back(s[i]);
-
- }
-
- }
-
- else {
-
- result.push_back(s[i]);
-
- }
-
- }
-
- return result;
-
- }
-
- std::string unquote(const std::string& s, char* qd, bool keep_utf8_sequences, bool strict)
- {
-
- // not enough room for quotes
- // no possibility to unquote
- if (s.length() < 2) return s;
-
- char q;
- bool skipped = false;
-
- // this is no guarantee that the unquoting will work
- // what about whitespace before/after the quote_mark?
- if (*s.begin() == '"' && *s.rbegin() == '"') q = '"';
- else if (*s.begin() == '\'' && *s.rbegin() == '\'') q = '\'';
- else return s;
-
- std::string unq;
- unq.reserve(s.length()-2);
-
- for (size_t i = 1, L = s.length() - 1; i < L; ++i) {
-
- // implement the same strange ruby sass behavior
- // an escape sequence can also mean a unicode char
- if (s[i] == '\\' && !skipped) {
- // remember
- skipped = true;
-
- // skip it
- // ++ i;
-
- // if (i == L) break;
-
- // escape length
- size_t len = 1;
-
- // parse as many sequence chars as possible
- // ToDo: Check if ruby aborts after possible max
- while (i + len < L && s[i + len] && isxdigit(s[i + len])) ++ len;
-
- // hex string?
- if (keep_utf8_sequences) {
- unq.push_back(s[i]);
- } else if (len > 1) {
-
- // convert the extracted hex string to code point value
- // ToDo: Maybe we could do this without creating a substring
- uint32_t cp = strtol(s.substr (i + 1, len - 1).c_str(), NULL, 16);
-
- if (s[i + len] == ' ') ++ len;
-
- // assert invalid code points
- if (cp == 0) cp = 0xFFFD;
- // replace bell character
- // if (cp == '\n') cp = 32;
-
- // use a very simple approach to convert via utf8 lib
- // maybe there is a more elegant way; maybe we shoud
- // convert the whole output from string to a stream!?
- // allocate memory for utf8 char and convert to utf8
- unsigned char u[5] = {0,0,0,0,0}; utf8::append(cp, u);
- for(size_t m = 0; m < 5 && u[m]; m++) unq.push_back(u[m]);
-
- // skip some more chars?
- i += len - 1; skipped = false;
-
- }
-
-
- }
- // check for unexpected delimiter
- // be strict and throw error back
- // else if (!skipped && q == s[i]) {
- // // don't be that strict
- // return s;
- // // this basically always means an internal error and not users fault
- // error("Unescaped delimiter in string to unquote found. [" + s + "]", ParserState("[UNQUOTE]"));
- // }
- else {
- if (strict && !skipped) {
- if (s[i] == q) return s;
- }
- skipped = false;
- unq.push_back(s[i]);
- }
-
- }
- if (skipped) { return s; }
- if (qd) *qd = q;
- return unq;
-
- }
-
- std::string quote(const std::string& s, char q)
- {
-
- // autodetect with fallback to given quote
- q = detect_best_quotemark(s.c_str(), q);
-
- // return an empty quoted string
- if (s.empty()) return std::string(2, q ? q : '"');
-
- std::string quoted;
- quoted.reserve(s.length()+2);
- quoted.push_back(q);
-
- const char* it = s.c_str();
- const char* end = it + strlen(it) + 1;
- while (*it && it < end) {
- const char* now = it;
-
- if (*it == q) {
- quoted.push_back('\\');
- } else if (*it == '\\') {
- quoted.push_back('\\');
- }
-
- int cp = utf8::next(it, end);
-
- // in case of \r, check if the next in sequence
- // is \n and then advance the iterator and skip \r
- if (cp == '\r' && it < end && utf8::peek_next(it, end) == '\n') {
- cp = utf8::next(it, end);
- }
-
- if (cp == '\n') {
- quoted.push_back('\\');
- quoted.push_back('a');
- // we hope we can remove this flag once we figure out
- // why ruby sass has these different output behaviors
- // gsub(/\n(?![a-fA-F0-9\s])/, "\\a").gsub("\n", "\\a ")
- using namespace Prelexer;
- if (alternatives <
- Prelexer::char_range<'a', 'f'>,
- Prelexer::char_range<'A', 'F'>,
- Prelexer::char_range<'0', '9'>,
- space
- >(it) != NULL) {
- quoted.push_back(' ');
- }
- } else if (cp < 127) {
- quoted.push_back((char) cp);
- } else {
- while (now < it) {
- quoted.push_back(*now);
- ++ now;
- }
- }
- }
-
- quoted.push_back(q);
- return quoted;
- }
-
- bool is_hex_doublet(double n)
- {
- return n == 0x00 || n == 0x11 || n == 0x22 || n == 0x33 ||
- n == 0x44 || n == 0x55 || n == 0x66 || n == 0x77 ||
- n == 0x88 || n == 0x99 || n == 0xAA || n == 0xBB ||
- n == 0xCC || n == 0xDD || n == 0xEE || n == 0xFF ;
- }
-
- bool is_color_doublet(double r, double g, double b)
- {
- return is_hex_doublet(r) && is_hex_doublet(g) && is_hex_doublet(b);
- }
-
- bool peek_linefeed(const char* start)
- {
- using namespace Prelexer;
- using namespace Constants;
- return sequence <
- zero_plus <
- alternatives <
- exactly <' '>,
- exactly <'\t'>,
- line_comment,
- block_comment,
- delimited_by <
- slash_star,
- star_slash,
- false
- >
- >
- >,
- re_linebreak
- >(start) != 0;
- }
-
- namespace Util {
- using std::string;
-
- std::string rtrim(const std::string &str) {
- std::string trimmed = str;
- size_t pos_ws = trimmed.find_last_not_of(" \t\n\v\f\r");
- if (pos_ws != std::string::npos)
- { trimmed.erase(pos_ws + 1); }
- else { trimmed.clear(); }
- return trimmed;
- }
-
- std::string normalize_underscores(const std::string& str) {
- std::string normalized = str;
- for(size_t i = 0, L = normalized.length(); i < L; ++i) {
- if(normalized[i] == '_') {
- normalized[i] = '-';
- }
- }
- return normalized;
- }
-
- std::string normalize_decimals(const std::string& str) {
- std::string prefix = "0";
- std::string normalized = str;
-
- return normalized[0] == '.' ? normalized.insert(0, prefix) : normalized;
- }
-
- bool isPrintable(Ruleset_Ptr r, Sass_Output_Style style) {
- if (r == NULL) {
- return false;
- }
-
- Block_Obj b = r->block();
-
- Selector_List_Ptr sl = Cast<Selector_List>(r->selector());
- bool hasSelectors = sl ? sl->length() > 0 : false;
-
- if (!hasSelectors) {
- return false;
- }
-
- bool hasDeclarations = false;
- bool hasPrintableChildBlocks = false;
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- if (Cast<Directive>(stm)) {
- return true;
- } else if (Declaration_Ptr d = Cast<Declaration>(stm)) {
- return isPrintable(d, style);
- } else if (Has_Block_Ptr p = Cast<Has_Block>(stm)) {
- Block_Obj pChildBlock = p->block();
- if (isPrintable(pChildBlock, style)) {
- hasPrintableChildBlocks = true;
- }
- } else if (Comment_Ptr c = Cast<Comment>(stm)) {
- // keep for uncompressed
- if (style != COMPRESSED) {
- hasDeclarations = true;
- }
- // output style compressed
- if (c->is_important()) {
- hasDeclarations = c->is_important();
- }
- } else {
- hasDeclarations = true;
- }
-
- if (hasDeclarations || hasPrintableChildBlocks) {
- return true;
- }
- }
-
- return false;
- }
-
- bool isPrintable(String_Constant_Ptr s, Sass_Output_Style style)
- {
- return ! s->value().empty();
- }
-
- bool isPrintable(String_Quoted_Ptr s, Sass_Output_Style style)
- {
- return true;
- }
-
- bool isPrintable(Declaration_Ptr d, Sass_Output_Style style)
- {
- Expression_Obj val = d->value();
- if (String_Quoted_Obj sq = Cast<String_Quoted>(val)) return isPrintable(sq.ptr(), style);
- if (String_Constant_Obj sc = Cast<String_Constant>(val)) return isPrintable(sc.ptr(), style);
- return true;
- }
-
- bool isPrintable(Supports_Block_Ptr f, Sass_Output_Style style) {
- if (f == NULL) {
- return false;
- }
-
- Block_Obj b = f->block();
-
- bool hasDeclarations = false;
- bool hasPrintableChildBlocks = false;
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- if (Cast<Declaration>(stm) || Cast<Directive>(stm)) {
- hasDeclarations = true;
- }
- else if (Has_Block_Ptr b = Cast<Has_Block>(stm)) {
- Block_Obj pChildBlock = b->block();
- if (!b->is_invisible()) {
- if (isPrintable(pChildBlock, style)) {
- hasPrintableChildBlocks = true;
- }
- }
- }
-
- if (hasDeclarations || hasPrintableChildBlocks) {
- return true;
- }
- }
-
- return false;
- }
-
- bool isPrintable(Media_Block_Ptr m, Sass_Output_Style style)
- {
- if (m == 0) return false;
- Block_Obj b = m->block();
- if (b == 0) return false;
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- if (Cast<Directive>(stm)) return true;
- else if (Cast<Declaration>(stm)) return true;
- else if (Comment_Ptr c = Cast<Comment>(stm)) {
- if (isPrintable(c, style)) {
- return true;
- }
- }
- else if (Ruleset_Ptr r = Cast<Ruleset>(stm)) {
- if (isPrintable(r, style)) {
- return true;
- }
- }
- else if (Supports_Block_Ptr f = Cast<Supports_Block>(stm)) {
- if (isPrintable(f, style)) {
- return true;
- }
- }
- else if (Media_Block_Ptr mb = Cast<Media_Block>(stm)) {
- if (isPrintable(mb, style)) {
- return true;
- }
- }
- else if (Has_Block_Ptr b = Cast<Has_Block>(stm)) {
- if (isPrintable(b->block(), style)) {
- return true;
- }
- }
- }
- return false;
- }
-
- bool isPrintable(Comment_Ptr c, Sass_Output_Style style)
- {
- // keep for uncompressed
- if (style != COMPRESSED) {
- return true;
- }
- // output style compressed
- if (c->is_important()) {
- return true;
- }
- // not printable
- return false;
- };
-
- bool isPrintable(Block_Obj b, Sass_Output_Style style) {
- if (!b) {
- return false;
- }
-
- for (size_t i = 0, L = b->length(); i < L; ++i) {
- Statement_Obj stm = b->at(i);
- if (Cast<Declaration>(stm) || Cast<Directive>(stm)) {
- return true;
- }
- else if (Comment_Ptr c = Cast<Comment>(stm)) {
- if (isPrintable(c, style)) {
- return true;
- }
- }
- else if (Ruleset_Ptr r = Cast<Ruleset>(stm)) {
- if (isPrintable(r, style)) {
- return true;
- }
- }
- else if (Supports_Block_Ptr f = Cast<Supports_Block>(stm)) {
- if (isPrintable(f, style)) {
- return true;
- }
- }
- else if (Media_Block_Ptr m = Cast<Media_Block>(stm)) {
- if (isPrintable(m, style)) {
- return true;
- }
- }
- else if (Has_Block_Ptr b = Cast<Has_Block>(stm)) {
- if (isPrintable(b->block(), style)) {
- return true;
- }
- }
- }
-
- return false;
- }
-
- bool isAscii(const char chr) {
- return unsigned(chr) < 128;
- }
-
- }
-}
diff --git a/node_modules/node-sass/src/libsass/src/util.hpp b/node_modules/node-sass/src/libsass/src/util.hpp
deleted file mode 100644
index f23475f..0000000
--- a/node_modules/node-sass/src/libsass/src/util.hpp
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef SASS_UTIL_H
-#define SASS_UTIL_H
-
-#include <vector>
-#include <string>
-#include <assert.h>
-#include "sass.hpp"
-#include "sass/base.h"
-#include "ast_fwd_decl.hpp"
-
-#define SASS_ASSERT(cond, msg) assert(cond && msg)
-
-namespace Sass {
-
- double round(double val, size_t precision = 0);
- double sass_strtod(const char* str);
- const char* safe_str(const char *, const char* = "");
- void free_string_array(char **);
- char **copy_strings(const std::vector<std::string>&, char ***, int = 0);
- std::string read_css_string(const std::string& str, bool css = true);
- std::string evacuate_escapes(const std::string& str);
- std::string string_to_output(const std::string& str);
- std::string comment_to_string(const std::string& text);
- std::string read_hex_escapes(const std::string& str);
- std::string escape_string(const std::string& str);
- void newline_to_space(std::string& str);
-
- std::string quote(const std::string&, char q = 0);
- std::string unquote(const std::string&, char* q = 0, bool keep_utf8_sequences = false, bool strict = true);
- char detect_best_quotemark(const char* s, char qm = '"');
-
- bool is_hex_doublet(double n);
- bool is_color_doublet(double r, double g, double b);
-
- bool peek_linefeed(const char* start);
-
- namespace Util {
-
- std::string rtrim(const std::string& str);
-
- std::string normalize_underscores(const std::string& str);
- std::string normalize_decimals(const std::string& str);
-
- bool isPrintable(Ruleset_Ptr r, Sass_Output_Style style = NESTED);
- bool isPrintable(Supports_Block_Ptr r, Sass_Output_Style style = NESTED);
- bool isPrintable(Media_Block_Ptr r, Sass_Output_Style style = NESTED);
- bool isPrintable(Comment_Ptr b, Sass_Output_Style style = NESTED);
- bool isPrintable(Block_Obj b, Sass_Output_Style style = NESTED);
- bool isPrintable(String_Constant_Ptr s, Sass_Output_Style style = NESTED);
- bool isPrintable(String_Quoted_Ptr s, Sass_Output_Style style = NESTED);
- bool isPrintable(Declaration_Ptr d, Sass_Output_Style style = NESTED);
- bool isAscii(const char chr);
-
- }
-}
-#endif
diff --git a/node_modules/node-sass/src/libsass/src/values.cpp b/node_modules/node-sass/src/libsass/src/values.cpp
deleted file mode 100644
index 0f2fd48..0000000
--- a/node_modules/node-sass/src/libsass/src/values.cpp
+++ /dev/null
@@ -1,131 +0,0 @@
-#include "sass.hpp"
-#include "sass.h"
-#include "values.hpp"
-
-#include <stdint.h>
-
-namespace Sass {
-
- // convert value from C++ side to C-API
- union Sass_Value* ast_node_to_sass_value (const Expression_Ptr val)
- {
- if (val->concrete_type() == Expression::NUMBER)
- {
- Number_Ptr_Const res = Cast<Number>(val);
- return sass_make_number(res->value(), res->unit().c_str());
- }
- else if (val->concrete_type() == Expression::COLOR)
- {
- Color_Ptr_Const col = Cast<Color>(val);
- return sass_make_color(col->r(), col->g(), col->b(), col->a());
- }
- else if (val->concrete_type() == Expression::LIST)
- {
- List_Ptr_Const l = Cast<List>(val);
- union Sass_Value* list = sass_make_list(l->size(), l->separator(), l->is_bracketed());
- for (size_t i = 0, L = l->length(); i < L; ++i) {
- Expression_Obj obj = l->at(i);
- auto val = ast_node_to_sass_value(obj);
- sass_list_set_value(list, i, val);
- }
- return list;
- }
- else if (val->concrete_type() == Expression::MAP)
- {
- Map_Ptr_Const m = Cast<Map>(val);
- union Sass_Value* map = sass_make_map(m->length());
- size_t i = 0; for (Expression_Obj key : m->keys()) {
- sass_map_set_key(map, i, ast_node_to_sass_value(key));
- sass_map_set_value(map, i, ast_node_to_sass_value(m->at(key)));
- ++ i;
- }
- return map;
- }
- else if (val->concrete_type() == Expression::NULL_VAL)
- {
- return sass_make_null();
- }
- else if (val->concrete_type() == Expression::BOOLEAN)
- {
- Boolean_Ptr_Const res = Cast<Boolean>(val);
- return sass_make_boolean(res->value());
- }
- else if (val->concrete_type() == Expression::STRING)
- {
- if (String_Quoted_Ptr_Const qstr = Cast<String_Quoted>(val))
- {
- return sass_make_qstring(qstr->value().c_str());
- }
- else if (String_Constant_Ptr_Const cstr = Cast<String_Constant>(val))
- {
- return sass_make_string(cstr->value().c_str());
- }
- }
- return sass_make_error("unknown sass value type");
- }
-
- // convert value from C-API to C++ side
- Value_Ptr sass_value_to_ast_node (const union Sass_Value* val)
- {
- switch (sass_value_get_tag(val)) {
- case SASS_NUMBER:
- return SASS_MEMORY_NEW(Number,
- ParserState("[C-VALUE]"),
- sass_number_get_value(val),
- sass_number_get_unit(val));
- case SASS_BOOLEAN:
- return SASS_MEMORY_NEW(Boolean,
- ParserState("[C-VALUE]"),
- sass_boolean_get_value(val));
- case SASS_COLOR:
- return SASS_MEMORY_NEW(Color,
- ParserState("[C-VALUE]"),
- sass_color_get_r(val),
- sass_color_get_g(val),
- sass_color_get_b(val),
- sass_color_get_a(val));
- case SASS_STRING:
- if (sass_string_is_quoted(val)) {
- return SASS_MEMORY_NEW(String_Quoted,
- ParserState("[C-VALUE]"),
- sass_string_get_value(val));
- }
- return SASS_MEMORY_NEW(String_Constant,
- ParserState("[C-VALUE]"),
- sass_string_get_value(val));
- case SASS_LIST: {
- List_Ptr l = SASS_MEMORY_NEW(List,
- ParserState("[C-VALUE]"),
- sass_list_get_length(val),
- sass_list_get_separator(val));
- for (size_t i = 0, L = sass_list_get_length(val); i < L; ++i) {
- l->append(sass_value_to_ast_node(sass_list_get_value(val, i)));
- }
- l->is_bracketed(sass_list_get_is_bracketed(val));
- return l;
- }
- case SASS_MAP: {
- Map_Ptr m = SASS_MEMORY_NEW(Map, ParserState("[C-VALUE]"));
- for (size_t i = 0, L = sass_map_get_length(val); i < L; ++i) {
- *m << std::make_pair(
- sass_value_to_ast_node(sass_map_get_key(val, i)),
- sass_value_to_ast_node(sass_map_get_value(val, i)));
- }
- return m;
- }
- case SASS_NULL:
- return SASS_MEMORY_NEW(Null, ParserState("[C-VALUE]"));
- case SASS_ERROR:
- return SASS_MEMORY_NEW(Custom_Error,
- ParserState("[C-VALUE]"),
- sass_error_get_message(val));
- case SASS_WARNING:
- return SASS_MEMORY_NEW(Custom_Warning,
- ParserState("[C-VALUE]"),
- sass_warning_get_message(val));
- default: break;
- }
- return 0;
- }
-
-}
diff --git a/node_modules/node-sass/src/libsass/src/values.hpp b/node_modules/node-sass/src/libsass/src/values.hpp
deleted file mode 100644
index f78ca12..0000000
--- a/node_modules/node-sass/src/libsass/src/values.hpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef SASS_VALUES_H
-#define SASS_VALUES_H
-
-#include "ast.hpp"
-
-namespace Sass {
-
- union Sass_Value* ast_node_to_sass_value (const Expression_Ptr val);
- Value_Ptr sass_value_to_ast_node (const union Sass_Value* val);
-
-}
-#endif
diff --git a/node_modules/node-sass/src/libsass/test/test_node.cpp b/node_modules/node-sass/src/libsass/test/test_node.cpp
deleted file mode 100644
index 905dc18..0000000
--- a/node_modules/node-sass/src/libsass/test/test_node.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-#include <assert.h>
-#include <sstream>
-
-#include "node.hpp"
-#include "parser.hpp"
-
-
-#define STATIC_ARRAY_SIZE(array) (sizeof((array))/sizeof((array[0])))
-
-
-namespace Sass {
-
- Context ctx = Context::Data();
-
- const char* const ROUNDTRIP_TESTS[] = {
- NULL,
- "~",
- "CMPD",
- "~ CMPD",
- "CMPD >",
- "> > CMPD",
- "CMPD ~ ~",
- "> + CMPD1.CMPD2 > ~",
- "> + CMPD1.CMPD2 CMPD3.CMPD4 > ~",
- "+ CMPD1 CMPD2 ~ CMPD3 + CMPD4 > CMPD5 > ~"
- };
-
-
-
- static Complex_Selector* createComplexSelector(std::string src) {
- std::string temp(src);
- temp += ";";
- return (*Parser::from_c_str(temp.c_str(), ctx, "", Position()).parse_selector_list())[0];
- }
-
-
- void roundtripTest(const char* toTest) {
-
- // Create the initial selector
-
- Complex_Selector* pOrigSelector = NULL;
- if (toTest) {
- pOrigSelector = createComplexSelector(toTest);
- }
-
- std::string expected(pOrigSelector ? pOrigSelector->to_string() : "NULL");
-
-
- // Roundtrip the selector into a node and back
-
- Node node = complexSelectorToNode(pOrigSelector, ctx);
-
- std::stringstream nodeStringStream;
- nodeStringStream << node;
- std::string nodeString = nodeStringStream.str();
- cout << "ASNODE: " << node << endl;
-
- Complex_Selector* pNewSelector = nodeToComplexSelector(node, ctx);
-
- // Show the result
-
- std::string result(pNewSelector ? pNewSelector->to_string() : "NULL");
-
- cout << "SELECTOR: " << expected << endl;
- cout << "NEW SELECTOR: " << result << endl;
-
-
- // Test that they are equal using the equality operator
-
- assert( (!pOrigSelector && !pNewSelector ) || (pOrigSelector && pNewSelector) );
- if (pOrigSelector) {
- assert( *pOrigSelector == *pNewSelector );
- }
-
-
- // Test that they are equal by comparing the string versions of the selectors
-
- assert(expected == result);
-
- }
-
-
- int main() {
- for (int index = 0; index < STATIC_ARRAY_SIZE(ROUNDTRIP_TESTS); index++) {
- const char* const toTest = ROUNDTRIP_TESTS[index];
- cout << "\nINPUT STRING: " << (toTest ? toTest : "NULL") << endl;
- roundtripTest(toTest);
- }
-
- cout << "\nTesting Done.\n";
- }
-
-
-}
diff --git a/node_modules/node-sass/src/libsass/test/test_paths.cpp b/node_modules/node-sass/src/libsass/test/test_paths.cpp
deleted file mode 100644
index bfcf8ec..0000000
--- a/node_modules/node-sass/src/libsass/test/test_paths.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <iostream>
-#include "../paths.hpp"
-
-using namespace Sass;
-
-template<typename T>
-std::vector<T>& operator<<(std::vector<T>& v, const T& e)
-{
- v.push_back(e);
- return v;
-}
-
-int main()
-{
- std::vector<int> v1, v2, v3;
- v1 << 1 << 2;
- v2 << 3;
- v3 << 4 << 5 << 6;
-
- std::vector<std::vector<int> > ss;
- ss << v1 << v2 << v3;
-
- std::vector<std::vector<int> > ps = paths(ss);
- for (size_t i = 0, S = ps.size(); i < S; ++i) {
- std::cout << vector_to_string(ps[i]) << std::endl;
- }
- return 0;
-}
diff --git a/node_modules/node-sass/src/libsass/test/test_selector_difference.cpp b/node_modules/node-sass/src/libsass/test/test_selector_difference.cpp
deleted file mode 100644
index e2880c0..0000000
--- a/node_modules/node-sass/src/libsass/test/test_selector_difference.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "../ast.hpp"
-#include "../context.hpp"
-#include "../parser.hpp"
-#include <string>
-#include <iostream>
-
-using namespace Sass;
-
-Context ctx = Context::Data();
-
-Compound_Selector* selector(std::string src)
-{ return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_compound_selector(); }
-
-void diff(std::string s, std::string t)
-{
- std::cout << s << " - " << t << " = " << selector(s + ";")->minus(selector(t + ";"), ctx)->to_string() << std::endl;
-}
-
-int main()
-{
- diff(".a.b.c", ".c.b");
- diff(".a.b.c", ".fludge.b");
-
- return 0;
-}
diff --git a/node_modules/node-sass/src/libsass/test/test_specificity.cpp b/node_modules/node-sass/src/libsass/test/test_specificity.cpp
deleted file mode 100644
index ba9bbfc..0000000
--- a/node_modules/node-sass/src/libsass/test/test_specificity.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "../ast.hpp"
-#include "../context.hpp"
-#include "../parser.hpp"
-#include <string>
-#include <iostream>
-
-using namespace Sass;
-
-Context ctx = Context::Data();
-
-Selector* selector(std::string src)
-{ return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_selector_list(); }
-
-void spec(std::string sel)
-{ std::cout << sel << "\t::\t" << selector(sel + ";")->specificity() << std::endl; }
-
-int main()
-{
- spec("foo bar hux");
- spec(".foo .bar hux");
- spec("#foo .bar[hux='mux']");
- spec("a b c d e f");
-
- return 0;
-}
diff --git a/node_modules/node-sass/src/libsass/test/test_subset_map.cpp b/node_modules/node-sass/src/libsass/test/test_subset_map.cpp
deleted file mode 100644
index 3794514..0000000
--- a/node_modules/node-sass/src/libsass/test/test_subset_map.cpp
+++ /dev/null
@@ -1,472 +0,0 @@
-#include <string>
-#include <iostream>
-#include <assert.h>
-#include "../subset_map.hpp"
-
-Subset_Map<std::string, std::string> ssm;
-
-string toString(std::vector<std::string> v);
-string toString(std::vector<std::pair<std::string, std::vector<std::string>>> v);
-void assertEqual(string std::sExpected, std::string sResult);
-
-void setup() {
- ssm.clear();
-
- //@ssm[Set[1, 2]] = "Foo"
- std::vector<std::string> s1;
- s1.push_back("1");
- s1.push_back("2");
- ssm.put(s1, "Foo");
-
- //@ssm[Set["fizz", "fazz"]] = "Bar"
- std::vector<std::string> s2;
- s2.push_back("fizz");
- s2.push_back("fazz");
- ssm.put(s2, "Bar");
-
- //@ssm[Set[:foo, :bar]] = "Baz"
- std::vector<std::string> s3;
- s3.push_back(":foo");
- s3.push_back(":bar");
- ssm.put(s3, "Baz");
-
- //@ssm[Set[:foo, :bar, :baz]] = "Bang"
- std::vector<std::string> s4;
- s4.push_back(":foo");
- s4.push_back(":bar");
- s4.push_back(":baz");
- ssm.put(s4, "Bang");
-
- //@ssm[Set[:bip, :bop, :blip]] = "Qux"
- std::vector<std::string> s5;
- s5.push_back(":bip");
- s5.push_back(":bop");
- s5.push_back(":blip");
- ssm.put(s5, "Qux");
-
- //@ssm[Set[:bip, :bop]] = "Thram"
- std::vector<std::string> s6;
- s6.push_back(":bip");
- s6.push_back(":bop");
- ssm.put(s6, "Thram");
-}
-
-void testEqualKeys() {
- std::cout << "testEqualKeys" << std::endl;
-
- //assert_equal [["Foo", Set[1, 2]]], @ssm.get(Set[1, 2])
- std::vector<std::string> k1;
- k1.push_back("1");
- k1.push_back("2");
- assertEqual("[[Foo, Set[1, 2]]]", toString(ssm.get_kv(k1)));
-
- //assert_equal [["Bar", Set["fizz", "fazz"]]], @ssm.get(Set["fizz", "fazz"])
- std::vector<std::string> k2;
- k2.push_back("fizz");
- k2.push_back("fazz");
- assertEqual("[[Bar, Set[fizz, fazz]]]", toString(ssm.get_kv(k2)));
-
- std::cout << std::endl;
-}
-
-void testSubsetKeys() {
- std::cout << "testSubsetKeys" << std::endl;
-
- //assert_equal [["Foo", Set[1, 2]]], @ssm.get(Set[1, 2, "fuzz"])
- std::vector<std::string> k1;
- k1.push_back("1");
- k1.push_back("2");
- k1.push_back("fuzz");
- assertEqual("[[Foo, Set[1, 2]]]", toString(ssm.get_kv(k1)));
-
- //assert_equal [["Bar", Set["fizz", "fazz"]]], @ssm.get(Set["fizz", "fazz", 3])
- std::vector<std::string> k2;
- k2.push_back("fizz");
- k2.push_back("fazz");
- k2.push_back("3");
- assertEqual("[[Bar, Set[fizz, fazz]]]", toString(ssm.get_kv(k2)));
-
- std::cout << std::endl;
-}
-
-void testSupersetKeys() {
- std::cout << "testSupersetKeys" << std::endl;
-
- //assert_equal [], @ssm.get(Set[1])
- std::vector<std::string> k1;
- k1.push_back("1");
- assertEqual("[]", toString(ssm.get_kv(k1)));
-
- //assert_equal [], @ssm.get(Set[2])
- std::vector<std::string> k2;
- k2.push_back("2");
- assertEqual("[]", toString(ssm.get_kv(k2)));
-
- //assert_equal [], @ssm.get(Set["fizz"])
- std::vector<std::string> k3;
- k3.push_back("fizz");
- assertEqual("[]", toString(ssm.get_kv(k3)));
-
- //assert_equal [], @ssm.get(Set["fazz"])
- std::vector<std::string> k4;
- k4.push_back("fazz");
- assertEqual("[]", toString(ssm.get_kv(k4)));
-
- std::cout << std::endl;
-}
-
-void testDisjointKeys() {
- std::cout << "testDisjointKeys" << std::endl;
-
- //assert_equal [], @ssm.get(Set[3, 4])
- std::vector<std::string> k1;
- k1.push_back("3");
- k1.push_back("4");
- assertEqual("[]", toString(ssm.get_kv(k1)));
-
- //assert_equal [], @ssm.get(Set["fuzz", "frizz"])
- std::vector<std::string> k2;
- k2.push_back("fuzz");
- k2.push_back("frizz");
- assertEqual("[]", toString(ssm.get_kv(k2)));
-
- //assert_equal [], @ssm.get(Set["gran", 15])
- std::vector<std::string> k3;
- k3.push_back("gran");
- k3.push_back("15");
- assertEqual("[]", toString(ssm.get_kv(k3)));
-
- std::cout << std::endl;
-}
-
-void testSemiDisjointKeys() {
- std::cout << "testSemiDisjointKeys" << std::endl;
-
- //assert_equal [], @ssm.get(Set[2, 3])
- std::vector<std::string> k1;
- k1.push_back("2");
- k1.push_back("3");
- assertEqual("[]", toString(ssm.get_kv(k1)));
-
- //assert_equal [], @ssm.get(Set["fizz", "fuzz"])
- std::vector<std::string> k2;
- k2.push_back("fizz");
- k2.push_back("fuzz");
- assertEqual("[]", toString(ssm.get_kv(k2)));
-
- //assert_equal [], @ssm.get(Set[1, "fazz"])
- std::vector<std::string> k3;
- k3.push_back("1");
- k3.push_back("fazz");
- assertEqual("[]", toString(ssm.get_kv(k3)));
-
- std::cout << std::endl;
-}
-
-void testEmptyKeySet() {
- std::cout << "testEmptyKeySet" << std::endl;
-
- //assert_raises(ArgumentError) {@ssm[Set[]] = "Fail"}
- std::vector<std::string> s1;
- try {
- ssm.put(s1, "Fail");
- }
- catch (const char* &e) {
- assertEqual("internal error: subset map keys may not be empty", e);
- }
-}
-
-void testEmptyKeyGet() {
- std::cout << "testEmptyKeyGet" << std::endl;
-
- //assert_equal [], @ssm.get(Set[])
- std::vector<std::string> k1;
- assertEqual("[]", toString(ssm.get_kv(k1)));
-
- std::cout << std::endl;
-}
-void testMultipleSubsets() {
- std::cout << "testMultipleSubsets" << std::endl;
-
- //assert_equal [["Foo", Set[1, 2]], ["Bar", Set["fizz", "fazz"]]], @ssm.get(Set[1, 2, "fizz", "fazz"])
- std::vector<std::string> k1;
- k1.push_back("1");
- k1.push_back("2");
- k1.push_back("fizz");
- k1.push_back("fazz");
- assertEqual("[[Foo, Set[1, 2]], [Bar, Set[fizz, fazz]]]", toString(ssm.get_kv(k1)));
-
- //assert_equal [["Foo", Set[1, 2]], ["Bar", Set["fizz", "fazz"]]], @ssm.get(Set[1, 2, 3, "fizz", "fazz", "fuzz"])
- std::vector<std::string> k2;
- k2.push_back("1");
- k2.push_back("2");
- k2.push_back("3");
- k2.push_back("fizz");
- k2.push_back("fazz");
- k2.push_back("fuzz");
- assertEqual("[[Foo, Set[1, 2]], [Bar, Set[fizz, fazz]]]", toString(ssm.get_kv(k2)));
-
- //assert_equal [["Baz", Set[:foo, :bar]]], @ssm.get(Set[:foo, :bar])
- std::vector<std::string> k3;
- k3.push_back(":foo");
- k3.push_back(":bar");
- assertEqual("[[Baz, Set[:foo, :bar]]]", toString(ssm.get_kv(k3)));
-
- //assert_equal [["Baz", Set[:foo, :bar]], ["Bang", Set[:foo, :bar, :baz]]], @ssm.get(Set[:foo, :bar, :baz])
- std::vector<std::string> k4;
- k4.push_back(":foo");
- k4.push_back(":bar");
- k4.push_back(":baz");
- assertEqual("[[Baz, Set[:foo, :bar]], [Bang, Set[:foo, :bar, :baz]]]", toString(ssm.get_kv(k4)));
-
- std::cout << std::endl;
-}
-void testBracketBracket() {
- std::cout << "testBracketBracket" << std::endl;
-
- //assert_equal ["Foo"], @ssm[Set[1, 2, "fuzz"]]
- std::vector<std::string> k1;
- k1.push_back("1");
- k1.push_back("2");
- k1.push_back("fuzz");
- assertEqual("[Foo]", toString(ssm.get_v(k1)));
-
- //assert_equal ["Baz", "Bang"], @ssm[Set[:foo, :bar, :baz]]
- std::vector<std::string> k2;
- k2.push_back(":foo");
- k2.push_back(":bar");
- k2.push_back(":baz");
- assertEqual("[Baz, Bang]", toString(ssm.get_v(k2)));
-
- std::cout << std::endl;
-}
-
-void testKeyOrder() {
- std::cout << "testEqualKeys" << std::endl;
-
- //assert_equal [["Foo", Set[1, 2]]], @ssm.get(Set[2, 1])
- std::vector<std::string> k1;
- k1.push_back("2");
- k1.push_back("1");
- assertEqual("[[Foo, Set[1, 2]]]", toString(ssm.get_kv(k1)));
-
- std::cout << std::endl;
-}
-
-void testOrderPreserved() {
- std::cout << "testOrderPreserved" << std::endl;
- //@ssm[Set[10, 11, 12]] = 1
- std::vector<std::string> s1;
- s1.push_back("10");
- s1.push_back("11");
- s1.push_back("12");
- ssm.put(s1, "1");
-
- //@ssm[Set[10, 11]] = 2
- std::vector<std::string> s2;
- s2.push_back("10");
- s2.push_back("11");
- ssm.put(s2, "2");
-
- //@ssm[Set[11]] = 3
- std::vector<std::string> s3;
- s3.push_back("11");
- ssm.put(s3, "3");
-
- //@ssm[Set[11, 12]] = 4
- std::vector<std::string> s4;
- s4.push_back("11");
- s4.push_back("12");
- ssm.put(s4, "4");
-
- //@ssm[Set[9, 10, 11, 12, 13]] = 5
- std::vector<std::string> s5;
- s5.push_back("9");
- s5.push_back("10");
- s5.push_back("11");
- s5.push_back("12");
- s5.push_back("13");
- ssm.put(s5, "5");
-
- //@ssm[Set[10, 13]] = 6
- std::vector<std::string> s6;
- s6.push_back("10");
- s6.push_back("13");
- ssm.put(s6, "6");
-
- //assert_equal([[1, Set[10, 11, 12]], [2, Set[10, 11]], [3, Set[11]], [4, Set[11, 12]], [5, Set[9, 10, 11, 12, 13]], [6, Set[10, 13]]], @ssm.get(Set[9, 10, 11, 12, 13]))
- std::vector<std::string> k1;
- k1.push_back("9");
- k1.push_back("10");
- k1.push_back("11");
- k1.push_back("12");
- k1.push_back("13");
- assertEqual("[[1, Set[10, 11, 12]], [2, Set[10, 11]], [3, Set[11]], [4, Set[11, 12]], [5, Set[9, 10, 11, 12, 13]], [6, Set[10, 13]]]", toString(ssm.get_kv(k1)));
-
- std::cout << std::endl;
-}
-void testMultipleEqualValues() {
- std::cout << "testMultipleEqualValues" << std::endl;
- //@ssm[Set[11, 12]] = 1
- std::vector<std::string> s1;
- s1.push_back("11");
- s1.push_back("12");
- ssm.put(s1, "1");
-
- //@ssm[Set[12, 13]] = 2
- std::vector<std::string> s2;
- s2.push_back("12");
- s2.push_back("13");
- ssm.put(s2, "2");
-
- //@ssm[Set[13, 14]] = 1
- std::vector<std::string> s3;
- s3.push_back("13");
- s3.push_back("14");
- ssm.put(s3, "1");
-
- //@ssm[Set[14, 15]] = 1
- std::vector<std::string> s4;
- s4.push_back("14");
- s4.push_back("15");
- ssm.put(s4, "1");
-
- //assert_equal([[1, Set[11, 12]], [2, Set[12, 13]], [1, Set[13, 14]], [1, Set[14, 15]]], @ssm.get(Set[11, 12, 13, 14, 15]))
- std::vector<std::string> k1;
- k1.push_back("11");
- k1.push_back("12");
- k1.push_back("13");
- k1.push_back("14");
- k1.push_back("15");
- assertEqual("[[1, Set[11, 12]], [2, Set[12, 13]], [1, Set[13, 14]], [1, Set[14, 15]]]", toString(ssm.get_kv(k1)));
-
- std::cout << std::endl;
-}
-
-int main()
-{
- std::vector<std::string> s1;
- s1.push_back("1");
- s1.push_back("2");
-
- std::vector<std::string> s2;
- s2.push_back("2");
- s2.push_back("3");
-
- std::vector<std::string> s3;
- s3.push_back("3");
- s3.push_back("4");
-
- ssm.put(s1, "value1");
- ssm.put(s2, "value2");
- ssm.put(s3, "value3");
-
- std::vector<std::string> s4;
- s4.push_back("1");
- s4.push_back("2");
- s4.push_back("3");
-
- std::vector<std::pair<string, std::vector<std::string> > > fetched(ssm.get_kv(s4));
-
- std::cout << "PRINTING RESULTS:" << std::endl;
- for (size_t i = 0, S = fetched.size(); i < S; ++i) {
- std::cout << fetched[i].first << std::endl;
- }
-
- Subset_Map<string, string> ssm2;
- ssm2.put(s1, "foo");
- ssm2.put(s2, "bar");
- ssm2.put(s4, "hux");
-
- std::vector<std::pair<string, std::vector<std::string> > > fetched2(ssm2.get_kv(s4));
-
- std::cout << std::endl << "PRINTING RESULTS:" << std::endl;
- for (size_t i = 0, S = fetched2.size(); i < S; ++i) {
- std::cout << fetched2[i].first << std::endl;
- }
-
- std::cout << "TRYING ON A SELECTOR-LIKE OBJECT" << std::endl;
-
- Subset_Map<string, string> sel_ssm;
- std::vector<std::string> target;
- target.push_back("desk");
- target.push_back(".wood");
-
- std::vector<std::string> actual;
- actual.push_back("desk");
- actual.push_back(".wood");
- actual.push_back(".mine");
-
- sel_ssm.put(target, "has-aquarium");
- std::vector<std::pair<string, std::vector<std::string> > > fetched3(sel_ssm.get_kv(actual));
- std::cout << "RESULTS:" << std::endl;
- for (size_t i = 0, S = fetched3.size(); i < S; ++i) {
- std::cout << fetched3[i].first << std::endl;
- }
-
- std::cout << std::endl;
-
- // BEGIN PORTED RUBY TESTS FROM /test/sass/util/subset_map_test.rb
-
- setup();
- testEqualKeys();
- testSubsetKeys();
- testSupersetKeys();
- testDisjointKeys();
- testSemiDisjointKeys();
- testEmptyKeySet();
- testEmptyKeyGet();
- testMultipleSubsets();
- testBracketBracket();
- testKeyOrder();
-
- setup();
- testOrderPreserved();
-
- setup();
- testMultipleEqualValues();
-
- return 0;
-}
-
-string toString(std::vector<std::pair<string, std::vector<std::string>>> v)
-{
- std::stringstream buffer;
- buffer << "[";
- for (size_t i = 0, S = v.size(); i < S; ++i) {
- buffer << "[" << v[i].first;
- buffer << ", Set[";
- for (size_t j = 0, S = v[i].second.size(); j < S; ++j) {
- buffer << v[i].second[j];
- if (j < S-1) {
- buffer << ", ";
- }
- }
- buffer << "]]";
- if (i < S-1) {
- buffer << ", ";
- }
- }
- buffer << "]";
- return buffer.str();
-}
-
-string toString(std::vector<std::string> v)
-{
- std::stringstream buffer;
- buffer << "[";
- for (size_t i = 0, S = v.size(); i < S; ++i) {
- buffer << v[i];
- if (i < S-1) {
- buffer << ", ";
- }
- }
- buffer << "]";
- return buffer.str();
-}
-
-void assertEqual(string sExpected, string sResult) {
- std::cout << "Expected: " << sExpected << std::endl;
- std::cout << "Result: " << sResult << std::endl;
- assert(sExpected == sResult);
-}
diff --git a/node_modules/node-sass/src/libsass/test/test_superselector.cpp b/node_modules/node-sass/src/libsass/test/test_superselector.cpp
deleted file mode 100644
index bf21c7c..0000000
--- a/node_modules/node-sass/src/libsass/test/test_superselector.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-#include "../ast.hpp"
-#include "../context.hpp"
-#include "../parser.hpp"
-#include <string>
-
-using namespace Sass;
-
-Context ctx = Context(Context::Data());
-
-Compound_Selector* compound_selector(std::string src)
-{ return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_compound_selector(); }
-
-Complex_Selector* complex_selector(std::string src)
-{ return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_complex_selector(false); }
-
-void check_compound(std::string s1, std::string s2)
-{
- std::cout << "Is "
- << s1
- << " a superselector of "
- << s2
- << "?\t"
- << compound_selector(s1 + ";")->is_superselector_of(compound_selector(s2 + ";"))
- << std::endl;
-}
-
-void check_complex(std::string s1, std::string s2)
-{
- std::cout << "Is "
- << s1
- << " a superselector of "
- << s2
- << "?\t"
- << complex_selector(s1 + ";")->is_superselector_of(complex_selector(s2 + ";"))
- << std::endl;
-}
-
-int main()
-{
- check_compound(".foo", ".foo.bar");
- check_compound(".foo.bar", ".foo");
- check_compound(".foo.bar", "div.foo");
- check_compound(".foo", "div.foo");
- check_compound("div.foo", ".foo");
- check_compound("div.foo", "div.bar.foo");
- check_compound("p.foo", "div.bar.foo");
- check_compound(".hux", ".mumble");
-
- std::cout << std::endl;
-
- check_complex(".foo ~ .bar", ".foo + .bar");
- check_complex(".foo .bar", ".foo + .bar");
- check_complex(".foo .bar", ".foo > .bar");
- check_complex(".foo .bar > .hux", ".foo.a .bar.b > .hux");
- check_complex(".foo ~ .bar .hux", ".foo.a + .bar.b > .hux");
- check_complex(".foo", ".bar .foo");
- check_complex(".foo", ".foo.a");
- check_complex(".foo.bar", ".foo");
- check_complex(".foo .bar .hux", ".bar .hux");
- check_complex(".foo ~ .bar .hux.x", ".foo.a + .bar.b > .hux.y");
- check_complex(".foo ~ .bar .hux", ".foo.a + .bar.b > .mumble");
- check_complex(".foo + .bar", ".foo ~ .bar");
- check_complex("a c e", "a b c d e");
- check_complex("c a e", "a b c d e");
-
- return 0;
-}
-
-
diff --git a/node_modules/node-sass/src/libsass/test/test_unification.cpp b/node_modules/node-sass/src/libsass/test/test_unification.cpp
deleted file mode 100644
index 5c663ee..0000000
--- a/node_modules/node-sass/src/libsass/test/test_unification.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#include "../ast.hpp"
-#include "../context.hpp"
-#include "../parser.hpp"
-#include <string>
-
-using namespace Sass;
-
-Context ctx = Context(Context::Data());
-
-Compound_Selector* selector(std::string src)
-{ return Parser::from_c_str(src.c_str(), ctx, "", Position()).parse_compound_selector(); }
-
-void unify(std::string lhs, std::string rhs)
-{
- Compound_Selector* unified = selector(lhs + ";")->unify_with(selector(rhs + ";"), ctx);
- std::cout << lhs << " UNIFIED WITH " << rhs << " =\t" << (unified ? unified->to_string() : "NOTHING") << std::endl;
-}
-
-int main()
-{
- unify(".foo", ".foo.bar");
- unify("div:nth-of-type(odd)", "div:first-child");
- unify("div", "span:whatever");
- unify("div", "span");
- unify("foo:bar::after", "foo:bar::first-letter");
- unify(".foo#bar.hux", ".hux.foo#bar");
- unify(".foo#bar.hux", ".hux.foo#baz");
- unify("*:blah:fudge", "p:fudge:blah");
-
- return 0;
-}
diff --git a/node_modules/node-sass/src/libsass/version.sh b/node_modules/node-sass/src/libsass/version.sh
deleted file mode 100755
index 281de74..0000000
--- a/node_modules/node-sass/src/libsass/version.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-if test "x$LIBSASS_VERSION" = "x"; then
- LIBSASS_VERSION=`git describe --abbrev=4 --dirty --always --tags 2>/dev/null`
-fi
-if test "x$LIBSASS_VERSION" = "x"; then
- LIBSASS_VERSION=`cat VERSION 2>/dev/null`
-fi
-if test "x$LIBSASS_VERSION" = "x"; then
- LIBSASS_VERSION="[na]"
-fi
-echo $LIBSASS_VERSION
diff --git a/node_modules/node-sass/src/libsass/win/libsass.sln b/node_modules/node-sass/src/libsass/win/libsass.sln
deleted file mode 100644
index 2a55ad8..0000000
--- a/node_modules/node-sass/src/libsass/win/libsass.sln
+++ /dev/null
@@ -1,39 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25420.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsass", "libsass.vcxproj", "{E4030474-AFC9-4CC6-BEB6-D846F631502B}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".SolutionItems", ".SolutionItems", "{33318C77-2391-4399-8118-C109155A4A75}"
- ProjectSection(SolutionItems) = preProject
- ..\.editorconfig = ..\.editorconfig
- ..\.gitattributes = ..\.gitattributes
- ..\.gitignore = ..\.gitignore
- ..\.travis.yml = ..\.travis.yml
- ..\appveyor.yml = ..\appveyor.yml
- ..\Readme.md = ..\Readme.md
- ..\res\resource.rc = ..\res\resource.rc
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|Win64 = Debug|Win64
- Release|Win32 = Release|Win32
- Release|Win64 = Release|Win64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Debug|Win32.ActiveCfg = Debug|Win32
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Debug|Win32.Build.0 = Debug|Win32
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Debug|Win64.ActiveCfg = Debug|x64
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Debug|Win64.Build.0 = Debug|x64
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Release|Win32.ActiveCfg = Release|Win32
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Release|Win32.Build.0 = Release|Win32
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Release|Win64.ActiveCfg = Release|x64
- {E4030474-AFC9-4CC6-BEB6-D846F631502B}.Release|Win64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/node_modules/node-sass/src/libsass/win/libsass.sln.DotSettings b/node_modules/node-sass/src/libsass/win/libsass.sln.DotSettings
deleted file mode 100644
index 405024e..0000000
--- a/node_modules/node-sass/src/libsass/win/libsass.sln.DotSettings
+++ /dev/null
@@ -1,9 +0,0 @@
-<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Acencode_002Ec_002Fl_003A_002E_002E_003Fsrc_003Fcencode_002Ec/@EntryIndexedValue">ExplicitlyExcluded</s:String>
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Achecked_002Eh_002Fl_003A_002E_002E_003Fsrc_003Futf8_003Fchecked_002Eh/@EntryIndexedValue">ExplicitlyExcluded</s:String>
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Acore_002Eh_002Fl_003A_002E_002E_003Fsrc_003Futf8_003Fcore_002Eh/@EntryIndexedValue">ExplicitlyExcluded</s:String>
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Ajson_002Ecpp_002Fl_003A_002E_002E_003Fsrc_003Fjson_002Ecpp/@EntryIndexedValue">ExplicitlyExcluded</s:String>
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Ajson_002Ehpp_002Fl_003A_002E_002E_003Fsrc_003Fjson_002Ehpp/@EntryIndexedValue">ExplicitlyExcluded</s:String>
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Asass2scss_002Ecpp_002Fl_003A_002E_002E_003Fsrc_003Fsass2scss_002Ecpp/@EntryIndexedValue">ExplicitlyExcluded</s:String>
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Asass2scss_002Eh_002Fl_003A_002E_002E_003Finclude_003Fsass2scss_002Eh/@EntryIndexedValue">ExplicitlyExcluded</s:String>
- <s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=E4030474_002DAFC9_002D4CC6_002DBEB6_002DD846F631502B_002Ff_003Aunchecked_002Eh_002Fl_003A_002E_002E_003Fsrc_003Futf8_003Funchecked_002Eh/@EntryIndexedValue">ExplicitlyExcluded</s:String></wpf:ResourceDictionary> \ No newline at end of file
diff --git a/node_modules/node-sass/src/libsass/win/libsass.targets b/node_modules/node-sass/src/libsass/win/libsass.targets
deleted file mode 100644
index c1c7d45..0000000
--- a/node_modules/node-sass/src/libsass/win/libsass.targets
+++ /dev/null
@@ -1,118 +0,0 @@
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup Label="LibSass Include Headers">
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass.h" />
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass2scss.h" />
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\base.h" />
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\context.h" />
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\functions.h" />
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\values.h" />
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\version.h" />
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\version.h.in" />
- </ItemGroup>
- <ItemGroup Label="LibSass Headers">
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast_def_macros.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\memory\SharedPtr.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast_factory.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast_fwd_decl.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\backtrace.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\base64vlq.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\bind.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\b64\cencode.h" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\check_nesting.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\color_maps.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\constants.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\context.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\cssize.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\debug.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\emitter.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\environment.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\error_handling.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\eval.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\expand.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\extend.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\file.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\functions.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\inspect.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\json.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\kwd_arg_macros.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\lexer.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\listize.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\mapping.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\node.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\operation.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\output.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\parser.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\paths.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\plugins.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\position.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\prelexer.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\remove_placeholders.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_context.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_functions.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_util.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_values.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\source_map.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\subset_map.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\to_c.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\to_value.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\units.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8.h" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8\checked.h" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8\core.h" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8\unchecked.h" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8_string.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\util.hpp" />
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\values.hpp" />
- </ItemGroup>
- <ItemGroup Label="LibSass Sources">
- <ClCompile Include="$(LIBSASS_SRC_DIR)\ast.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\memory\SharedPtr.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\ast_fwd_decl.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\base64vlq.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\bind.cpp" />
- <ClCompile Condition="$(VisualStudioVersion) &lt; 14.0" Include="$(LIBSASS_SRC_DIR)\c99func.c" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\cencode.c" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\check_nesting.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\color_maps.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\constants.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\context.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\cssize.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\emitter.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\environment.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\error_handling.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\eval.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\expand.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\extend.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\file.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\functions.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\inspect.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\json.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\lexer.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\listize.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\node.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\output.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\parser.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\plugins.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\position.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\prelexer.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\backtrace.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\operators.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\remove_placeholders.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_context.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_functions.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_util.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_values.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass2scss.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\source_map.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\subset_map.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\to_c.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\to_value.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\units.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\utf8_string.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\util.cpp" />
- <ClCompile Include="$(LIBSASS_SRC_DIR)\values.cpp" />
- </ItemGroup>
-</Project>
diff --git a/node_modules/node-sass/src/libsass/win/libsass.vcxproj b/node_modules/node-sass/src/libsass/win/libsass.vcxproj
deleted file mode 100644
index 8cfd61f..0000000
--- a/node_modules/node-sass/src/libsass/win/libsass.vcxproj
+++ /dev/null
@@ -1,188 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="GitVersion;Main" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <LIBSASS_VERSION>[NA]</LIBSASS_VERSION>
- <LIBSASS_SRC_DIR>..\src</LIBSASS_SRC_DIR>
- <LIBSASS_HEADERS_DIR>..\src</LIBSASS_HEADERS_DIR>
- <LIBSASS_INCLUDES_DIR>..\include</LIBSASS_INCLUDES_DIR>
- </PropertyGroup>
- <Target Name="GitVersion">
- <Exec Command="git -C .. describe --abbrev=4 --dirty --always --tags" LogStandardErrorAsError="true" ContinueOnError="true" ConsoleToMSBuild="true">
- <Output TaskParameter="ConsoleOutput" PropertyName="LIBSASS_VERSION" />
- </Exec>
- </Target>
- <Target Name="VersionMacros">
- <ItemGroup>
- <ClCompile>
- <PreprocessorDefinitions>%(PreprocessorDefinitions);LIBSASS_VERSION="$(LIBSASS_VERSION)";</PreprocessorDefinitions>
- </ClCompile>
- </ItemGroup>
- </Target>
- <Target Name="Main">
- <Message Text="libsass: $(LIBSASS_VERSION)" />
- <Message Condition="$(LIBSASS_STATIC_LIB) != ''" Text="Building Static LibSass" />
- <Message Condition="$(LIBSASS_STATIC_LIB) == ''" Text="Building Dynamic LibSass" />
- <CallTarget Targets="VersionMacros" />
- <CallTarget Targets="Build" />
- </Target>
- <ItemGroup Label="ProjectConfigurations">
- <ProjectConfiguration Include="Debug|Win32">
- <Configuration>Debug</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Debug|x64">
- <Configuration>Debug</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|Win32">
- <Configuration>Release</Configuration>
- <Platform>Win32</Platform>
- </ProjectConfiguration>
- <ProjectConfiguration Include="Release|x64">
- <Configuration>Release</Configuration>
- <Platform>x64</Platform>
- </ProjectConfiguration>
- </ItemGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
- <PropertyGroup Label="Globals">
- <ProjectGuid>{E4030474-AFC9-4CC6-BEB6-D846F631502B}</ProjectGuid>
- <Keyword>Win32Proj</Keyword>
- <RootNamespace>libsass</RootNamespace>
- </PropertyGroup>
- <PropertyGroup Label="Common Properties">
- <TargetName>libsass</TargetName>
- <CharacterSet>Unicode</CharacterSet>
- </PropertyGroup>
- <PropertyGroup Condition="$(LIBSASS_STATIC_LIB) == ''">
- <ConfigurationType>DynamicLibrary</ConfigurationType>
- <PreprocessorDefinitions>ADD_EXPORTS;$(PreprocessorDefinitions);</PreprocessorDefinitions>
- </PropertyGroup>
- <PropertyGroup Condition="$(LIBSASS_STATIC_LIB) != ''">
- <ConfigurationType>StaticLibrary</ConfigurationType>
- </PropertyGroup>
- <PropertyGroup Label="VS2013 toolset selection" Condition="'$(VisualStudioVersion)' == '12.0'">
- <PlatformToolset>v120</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Label="VS2015 toolset selection" Condition="'$(VisualStudioVersion)' == '14.0'">
- <PlatformToolset>v140</PlatformToolset>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
- <UseDebugLibraries>true</UseDebugLibraries>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
- <UseDebugLibraries>false</UseDebugLibraries>
- <WholeProgramOptimization>true</WholeProgramOptimization>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <ImportGroup Label="ExtensionSettings">
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
- <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
- </ImportGroup>
- <PropertyGroup Label="UserMacros" />
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(SolutionDir)bin\Debug\</OutDir>
- <IntDir>$(SolutionDir)bin\Debug\obj\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <LinkIncremental>true</LinkIncremental>
- <OutDir>$(SolutionDir)bin\Debug\</OutDir>
- <IntDir>$(SolutionDir)bin\Debug\obj\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(SolutionDir)bin\</OutDir>
- <IntDir>$(SolutionDir)bin\obj\</IntDir>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <LinkIncremental>false</LinkIncremental>
- <OutDir>$(SolutionDir)bin\</OutDir>
- <IntDir>$(SolutionDir)bin\obj\</IntDir>
- </PropertyGroup>
- <ItemDefinitionGroup>
- <ClCompile>
- <AdditionalIncludeDirectories>..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- </ClCompile>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <ClCompile>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <WarningLevel>Level3</WarningLevel>
- <Optimization>Disabled</Optimization>
- <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <ClCompile>
- <WarningLevel>Level3</WarningLevel>
- <PrecompiledHeader>
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;$(PreprocessorDefinitions);</PreprocessorDefinitions>
- </ClCompile>
- <Link>
- <SubSystem>Console</SubSystem>
- <GenerateDebugInformation>true</GenerateDebugInformation>
- <EnableCOMDATFolding>true</EnableCOMDATFolding>
- <OptimizeReferences>true</OptimizeReferences>
- </Link>
- </ItemDefinitionGroup>
- <Import Project="libsass.targets" />
- <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <ImportGroup Label="ExtensionTargets">
- </ImportGroup>
-</Project>
diff --git a/node_modules/node-sass/src/libsass/win/libsass.vcxproj.filters b/node_modules/node-sass/src/libsass/win/libsass.vcxproj.filters
deleted file mode 100644
index 980f00f..0000000
--- a/node_modules/node-sass/src/libsass/win/libsass.vcxproj.filters
+++ /dev/null
@@ -1,357 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <ItemGroup>
- <Filter Include="Resources">
- <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
- <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
- </Filter>
- <Filter Include="Headers">
- <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
- <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
- </Filter>
- <Filter Include="Sources">
- <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
- <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
- </Filter>
- <Filter Include="Include Headers">
- <UniqueIdentifier>{bb9c270d-e9f5-49bf-afda-771a1a4bb5b7}</UniqueIdentifier>
- <Extensions>h;hh;hpp;hxx;hm;in;inl;inc;xsd</Extensions>
- </Filter>
- </ItemGroup>
- <ItemGroup Label="Includes">
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass.h">
- <Filter>Include Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass2scss.h">
- <Filter>Include Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\base.h">
- <Filter>Include Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\context.h">
- <Filter>Include Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\functions.h">
- <Filter>Include Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\values.h">
- <Filter>Include Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\version.h">
- <Filter>Include Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_INCLUDES_DIR)\sass\version.h.in">
- <Filter>Include Headers</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup Label="Headers">
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\memory\SharedPtr.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast_def_macros.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast_factory.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\ast_fwd_decl.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\backtrace.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\base64vlq.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\bind.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\check_nesting.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\color_maps.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\constants.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\context.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\cssize.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\debug.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\emitter.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\environment.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\error_handling.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\eval.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\expand.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\extend.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\file.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\functions.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\inspect.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\json.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\kwd_arg_macros.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\lexer.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\listize.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\mapping.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\node.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\operation.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\output.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\parser.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\paths.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\plugins.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\position.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\prelexer.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\remove_placeholders.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_context.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_functions.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_util.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass_values.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\source_map.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\subset_map.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\to_c.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\to_value.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\units.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8.h">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8\checked.h">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8\core.h">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8\unchecked.h">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\utf8_string.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\util.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\values.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\sass.hpp">
- <Filter>Headers</Filter>
- </ClInclude>
- <ClInclude Include="$(LIBSASS_HEADERS_DIR)\b64\cencode.h">
- <Filter>Headers</Filter>
- </ClInclude>
- </ItemGroup>
- <ItemGroup Label="Sources">
- <ClCompile Include="$(LIBSASS_SRC_DIR)\ast.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\memory\SharedPtr.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\ast_fwd_decl.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\base64vlq.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\bind.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Condition="$(VisualStudioVersion) &lt; 14.0" Include="$(LIBSASS_SRC_DIR)\c99func.c">
- <Filter>Source Files</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\cencode.c">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\check_nesting.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\color_maps.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\constants.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\context.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\cssize.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\emitter.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\environment.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\error_handling.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\eval.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\expand.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\extend.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\file.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\functions.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\inspect.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\json.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\lexer.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\listize.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\node.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\output.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\parser.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\plugins.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\position.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\prelexer.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\backtrace.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\operators.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\remove_placeholders.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_context.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_functions.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_util.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass_values.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\sass2scss.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\source_map.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\subset_map.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\to_c.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\to_value.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\units.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\utf8_string.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\util.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- <ClCompile Include="$(LIBSASS_SRC_DIR)\values.cpp">
- <Filter>Sources</Filter>
- </ClCompile>
- </ItemGroup>
-</Project>
diff --git a/node_modules/node-sass/src/sass_context_wrapper.cpp b/node_modules/node-sass/src/sass_context_wrapper.cpp
deleted file mode 100644
index aa25c79..0000000
--- a/node_modules/node-sass/src/sass_context_wrapper.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-#include "sass_context_wrapper.h"
-
-extern "C" {
- using namespace std;
-
- void compile_it(uv_work_t* req) {
- sass_context_wrapper* ctx_w = (sass_context_wrapper*)req->data;
-
- if (ctx_w->dctx) {
- compile_data(ctx_w->dctx);
- }
- else if (ctx_w->fctx) {
- compile_file(ctx_w->fctx);
- }
- }
-
- void compile_data(struct Sass_Data_Context* dctx) {
- sass_compile_data_context(dctx);
- }
-
- void compile_file(struct Sass_File_Context* fctx) {
- sass_compile_file_context(fctx);
- }
-
- sass_context_wrapper* sass_make_context_wrapper() {
- return (sass_context_wrapper*)calloc(1, sizeof(sass_context_wrapper));
- }
-
- void sass_free_context_wrapper(sass_context_wrapper* ctx_w) {
- if (ctx_w->dctx) {
- sass_delete_data_context(ctx_w->dctx);
- }
- else if (ctx_w->fctx) {
- sass_delete_file_context(ctx_w->fctx);
- }
- if (ctx_w->async_resource) {
- delete ctx_w->async_resource;
- }
-
- delete ctx_w->error_callback;
- delete ctx_w->success_callback;
-
- ctx_w->result.Reset();
-
- free(ctx_w->include_path);
- free(ctx_w->linefeed);
- free(ctx_w->out_file);
- free(ctx_w->source_map);
- free(ctx_w->source_map_root);
- free(ctx_w->indent);
-
- std::vector<CustomImporterBridge *>::iterator imp_it = ctx_w->importer_bridges.begin();
- while (imp_it != ctx_w->importer_bridges.end()) {
- CustomImporterBridge* p = *imp_it;
- imp_it = ctx_w->importer_bridges.erase(imp_it);
- delete p;
- }
- std::vector<CustomFunctionBridge *>::iterator func_it = ctx_w->function_bridges.begin();
- while (func_it != ctx_w->function_bridges.end()) {
- CustomFunctionBridge* p = *func_it;
- func_it = ctx_w->function_bridges.erase(func_it);
- delete p;
- }
-
- free(ctx_w);
- }
-}
diff --git a/node_modules/node-sass/src/sass_context_wrapper.h b/node_modules/node-sass/src/sass_context_wrapper.h
deleted file mode 100644
index 4aa3568..0000000
--- a/node_modules/node-sass/src/sass_context_wrapper.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef SASS_CONTEXT_WRAPPER
-#define SASS_CONTEXT_WRAPPER
-
-#include <vector>
-#include <memory>
-#include <nan.h>
-#include <stdlib.h>
-#include <sass/context.h>
-#include "custom_function_bridge.h"
-#include "custom_importer_bridge.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- void compile_data(struct Sass_Data_Context* dctx);
- void compile_file(struct Sass_File_Context* fctx);
- void compile_it(uv_work_t* req);
-
- struct sass_context_wrapper {
- // binding related
- bool is_sync;
- void* cookie;
- char* file;
- char* include_path;
- char* out_file;
- char* source_map;
- char* source_map_root;
- char* linefeed;
- char* indent;
-
- // libsass related
- Sass_Data_Context* dctx;
- Sass_File_Context* fctx;
-
- // libuv related
- uv_async_t async;
- uv_work_t request;
-
- // v8 and nan related
- Nan::Persistent<v8::Object> result;
- Nan::AsyncResource* async_resource;
- Nan::Callback* error_callback;
- Nan::Callback* success_callback;
-
- std::vector<CustomFunctionBridge *> function_bridges;
- std::vector<CustomImporterBridge *> importer_bridges;
- };
-
- struct sass_context_wrapper* sass_make_context_wrapper(void);
- void sass_free_context_wrapper(struct sass_context_wrapper*);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/boolean.cpp b/node_modules/node-sass/src/sass_types/boolean.cpp
deleted file mode 100644
index 2d47932..0000000
--- a/node_modules/node-sass/src/sass_types/boolean.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-#include <nan.h>
-#include "boolean.h"
-
-namespace SassTypes
-{
- Nan::Persistent<v8::Function> Boolean::constructor;
- bool Boolean::constructor_locked = false;
-
- Boolean::Boolean(bool _value) {
- value = sass_make_boolean(_value);
- }
-
- Boolean& Boolean::get_singleton(bool v) {
- static Boolean instance_false(false), instance_true(true);
- return v ? instance_true : instance_false;
- }
-
- v8::Local<v8::Function> Boolean::get_constructor() {
- Nan::EscapableHandleScope scope;
- v8::Local<v8::Function> conslocal;
- if (constructor.IsEmpty()) {
- v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
-
- tpl->SetClassName(Nan::New("SassBoolean").ToLocalChecked());
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
- Nan::SetPrototypeTemplate(tpl, "getValue", Nan::New<v8::FunctionTemplate>(GetValue));
-
- conslocal = Nan::GetFunction(tpl).ToLocalChecked();
- constructor.Reset(conslocal);
-
- get_singleton(false).js_object.Reset(Nan::NewInstance(conslocal).ToLocalChecked());
- Nan::SetInternalFieldPointer(Nan::New(get_singleton(false).js_object), 0, &get_singleton(false));
- Nan::Set(conslocal, Nan::New("FALSE").ToLocalChecked(), Nan::New(get_singleton(false).js_object));
-
- get_singleton(true).js_object.Reset(Nan::NewInstance(conslocal).ToLocalChecked());
- Nan::SetInternalFieldPointer(Nan::New(get_singleton(true).js_object), 0, &get_singleton(true));
- Nan::Set(conslocal, Nan::New("TRUE").ToLocalChecked(), Nan::New(get_singleton(true).js_object));
-
- constructor_locked = true;
- } else {
- conslocal = Nan::New(constructor);
- }
-
- return scope.Escape(conslocal);
- }
-
- v8::Local<v8::Object> Boolean::get_js_object() {
- return Nan::New(this->js_object);
- }
-
- v8::Local<v8::Boolean> Boolean::get_js_boolean() {
- return sass_boolean_get_value(this->value) ? Nan::True() : Nan::False();
- }
-
- NAN_METHOD(Boolean::New) {
- if (info.IsConstructCall()) {
- if (constructor_locked) {
- return Nan::ThrowTypeError("Cannot instantiate SassBoolean");
- }
- }
- else {
- if (info.Length() != 1 || !info[0]->IsBoolean()) {
- return Nan::ThrowTypeError("Expected one boolean argument");
- }
-
- info.GetReturnValue().Set(get_singleton(Nan::To<bool>(info[0]).FromJust()).get_js_object());
- }
- }
-
- NAN_METHOD(Boolean::GetValue) {
- info.GetReturnValue().Set(Boolean::Unwrap<Boolean>(info.This())->get_js_boolean());
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/boolean.h b/node_modules/node-sass/src/sass_types/boolean.h
deleted file mode 100644
index 721a41c..0000000
--- a/node_modules/node-sass/src/sass_types/boolean.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef SASS_TYPES_BOOLEAN_H
-#define SASS_TYPES_BOOLEAN_H
-
-#include <nan.h>
-#include "value.h"
-#include "sass_value_wrapper.h"
-
-namespace SassTypes
-{
- class Boolean : public SassTypes::Value {
- public:
- static Boolean& get_singleton(bool);
- static v8::Local<v8::Function> get_constructor();
-
- v8::Local<v8::Object> get_js_object();
-
- static NAN_METHOD(New);
- static NAN_METHOD(GetValue);
-
- private:
- Boolean(bool);
-
- Nan::Persistent<v8::Object> js_object;
-
- static Nan::Persistent<v8::Function> constructor;
- static bool constructor_locked;
- v8::Local<v8::Boolean> get_js_boolean();
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/color.cpp b/node_modules/node-sass/src/sass_types/color.cpp
deleted file mode 100644
index 40358a2..0000000
--- a/node_modules/node-sass/src/sass_types/color.cpp
+++ /dev/null
@@ -1,127 +0,0 @@
-#include <nan.h>
-#include "color.h"
-
-namespace SassTypes
-{
- Color::Color(Sass_Value* v) : SassValueWrapper(v) {}
-
- Sass_Value* Color::construct(const std::vector<v8::Local<v8::Value>> raw_val, Sass_Value **out) {
- double a = 1.0, r = 0, g = 0, b = 0;
- unsigned argb;
-
- switch (raw_val.size()) {
- case 1:
- if (!raw_val[0]->IsNumber()) {
- return fail("Only argument should be an integer.", out);
- }
-
- argb = Nan::To<int32_t>(raw_val[0]).FromJust();
- a = (double)((argb >> 030) & 0xff) / 0xff;
- r = (double)((argb >> 020) & 0xff);
- g = (double)((argb >> 010) & 0xff);
- b = (double)(argb & 0xff);
- break;
-
- case 4:
- if (!raw_val[3]->IsNumber()) {
- return fail("Constructor arguments should be numbers exclusively.", out);
- }
-
- a = Nan::To<double>(raw_val[3]).FromJust();
- NODE_SASS_FALLTHROUGH;
-
- case 3:
- if (!raw_val[0]->IsNumber() || !raw_val[1]->IsNumber() || !raw_val[2]->IsNumber()) {
- return fail("Constructor arguments should be numbers exclusively.", out);
- }
-
- r = Nan::To<double>(raw_val[0]).FromJust();
- g = Nan::To<double>(raw_val[1]).FromJust();
- b = Nan::To<double>(raw_val[2]).FromJust();
- break;
-
- case 0:
- break;
-
- default:
- return fail("Constructor should be invoked with either 0, 1, 3 or 4 arguments.", out);
- }
-
- return *out = sass_make_color(r, g, b, a);
- }
-
- void Color::initPrototype(v8::Local<v8::FunctionTemplate> proto) {
- Nan::SetPrototypeMethod(proto, "getR", GetR);
- Nan::SetPrototypeMethod(proto, "getG", GetG);
- Nan::SetPrototypeMethod(proto, "getB", GetB);
- Nan::SetPrototypeMethod(proto, "getA", GetA);
- Nan::SetPrototypeMethod(proto, "setR", SetR);
- Nan::SetPrototypeMethod(proto, "setG", SetG);
- Nan::SetPrototypeMethod(proto, "setB", SetB);
- Nan::SetPrototypeMethod(proto, "setA", SetA);
- }
-
- NAN_METHOD(Color::GetR) {
- info.GetReturnValue().Set(sass_color_get_r(Color::Unwrap<Color>(info.This())->value));
- }
-
- NAN_METHOD(Color::GetG) {
- info.GetReturnValue().Set(sass_color_get_g(Color::Unwrap<Color>(info.This())->value));
- }
-
- NAN_METHOD(Color::GetB) {
- info.GetReturnValue().Set(sass_color_get_b(Color::Unwrap<Color>(info.This())->value));
- }
-
- NAN_METHOD(Color::GetA) {
- info.GetReturnValue().Set(sass_color_get_a(Color::Unwrap<Color>(info.This())->value));
- }
-
- NAN_METHOD(Color::SetR) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied value should be a number");
- }
-
- sass_color_set_r(Color::Unwrap<Color>(info.This())->value, Nan::To<double>(info[0]).FromJust());
- }
-
- NAN_METHOD(Color::SetG) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied value should be a number");
- }
-
- sass_color_set_g(Color::Unwrap<Color>(info.This())->value, Nan::To<double>(info[0]).FromJust());
- }
-
- NAN_METHOD(Color::SetB) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied value should be a number");
- }
-
- sass_color_set_b(Color::Unwrap<Color>(info.This())->value, Nan::To<double>(info[0]).FromJust());
- }
-
- NAN_METHOD(Color::SetA) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied value should be a number");
- }
-
- sass_color_set_a(Color::Unwrap<Color>(info.This())->value, Nan::To<double>(info[0]).FromJust());
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/color.h b/node_modules/node-sass/src/sass_types/color.h
deleted file mode 100644
index 1bf9043..0000000
--- a/node_modules/node-sass/src/sass_types/color.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef SASS_TYPES_COLOR_H
-#define SASS_TYPES_COLOR_H
-
-#include <nan.h>
-#include "sass_value_wrapper.h"
-
-#if defined(__GNUC__) && __GNUC__ >= 7
-#define NODE_SASS_FALLTHROUGH __attribute__ ((fallthrough))
-#else
-#define NODE_SASS_FALLTHROUGH
-#endif
-
-namespace SassTypes
-{
- class Color : public SassValueWrapper<Color> {
- public:
- Color(Sass_Value*);
- static char const* get_constructor_name() { return "SassColor"; }
- static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **);
-
- static void initPrototype(v8::Local<v8::FunctionTemplate>);
-
- static NAN_METHOD(GetR);
- static NAN_METHOD(GetG);
- static NAN_METHOD(GetB);
- static NAN_METHOD(GetA);
- static NAN_METHOD(SetR);
- static NAN_METHOD(SetG);
- static NAN_METHOD(SetB);
- static NAN_METHOD(SetA);
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/error.cpp b/node_modules/node-sass/src/sass_types/error.cpp
deleted file mode 100644
index 03c6307..0000000
--- a/node_modules/node-sass/src/sass_types/error.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <nan.h>
-#include "error.h"
-#include "../create_string.h"
-
-namespace SassTypes
-{
- Error::Error(Sass_Value* v) : SassValueWrapper(v) {}
-
- Sass_Value* Error::construct(const std::vector<v8::Local<v8::Value>> raw_val, Sass_Value **out) {
- char const* value = "";
-
- if (raw_val.size() >= 1) {
- if (!raw_val[0]->IsString()) {
- return fail("Argument should be a string.", out);
- }
-
- value = create_string(raw_val[0]);
- }
-
- return *out = sass_make_error(value);
- }
-
- void Error::initPrototype(v8::Local<v8::FunctionTemplate>) {}
-}
diff --git a/node_modules/node-sass/src/sass_types/error.h b/node_modules/node-sass/src/sass_types/error.h
deleted file mode 100644
index 01786fd..0000000
--- a/node_modules/node-sass/src/sass_types/error.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef SASS_TYPES_ERROR_H
-#define SASS_TYPES_ERROR_H
-
-#include <nan.h>
-#include "sass_value_wrapper.h"
-
-namespace SassTypes
-{
- class Error : public SassValueWrapper<Error> {
- public:
- Error(Sass_Value*);
- static char const* get_constructor_name() { return "SassError"; }
- static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **);
-
- static void initPrototype(v8::Local<v8::FunctionTemplate>);
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/factory.cpp b/node_modules/node-sass/src/sass_types/factory.cpp
deleted file mode 100644
index c650710..0000000
--- a/node_modules/node-sass/src/sass_types/factory.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-#include <nan.h>
-#include "factory.h"
-#include "value.h"
-#include "number.h"
-#include "string.h"
-#include "color.h"
-#include "boolean.h"
-#include "list.h"
-#include "map.h"
-#include "null.h"
-#include "error.h"
-
-namespace SassTypes
-{
- SassTypes::Value* Factory::create(Sass_Value* v) {
- switch (sass_value_get_tag(v)) {
- case SASS_NUMBER:
- return new Number(v);
-
- case SASS_STRING:
- return new String(v);
-
- case SASS_COLOR:
- return new Color(v);
-
- case SASS_BOOLEAN:
- return &Boolean::get_singleton(sass_boolean_get_value(v));
-
- case SASS_LIST:
- return new List(v);
-
- case SASS_MAP:
- return new Map(v);
-
- case SASS_NULL:
- return &Null::get_singleton();
-
- case SASS_ERROR:
- return new Error(v);
-
- default:
- const char *msg = "Unknown type encountered.";
- Nan::ThrowTypeError(msg);
- return new Error(sass_make_error(msg));
- }
- }
-
- NAN_MODULE_INIT(Factory::initExports) {
- Nan::HandleScope scope;
- v8::Local<v8::Object> types = Nan::New<v8::Object>();
-
- Nan::Set(types, Nan::New("Number").ToLocalChecked(), Number::get_constructor());
- Nan::Set(types, Nan::New("String").ToLocalChecked(), String::get_constructor());
- Nan::Set(types, Nan::New("Color").ToLocalChecked(), Color::get_constructor());
- Nan::Set(types, Nan::New("Boolean").ToLocalChecked(), Boolean::get_constructor());
- Nan::Set(types, Nan::New("List").ToLocalChecked(), List::get_constructor());
- Nan::Set(types, Nan::New("Map").ToLocalChecked(), Map::get_constructor());
- Nan::Set(types, Nan::New("Null").ToLocalChecked(), Null::get_constructor());
- Nan::Set(types, Nan::New("Error").ToLocalChecked(), Error::get_constructor());
- Nan::Set(target, Nan::New<v8::String>("types").ToLocalChecked(), types);
- }
-
- Value* Factory::unwrap(v8::Local<v8::Value> obj) {
- if (obj->IsObject()) {
- v8::Local<v8::Object> v8_obj = obj.As<v8::Object>();
- if (v8_obj->InternalFieldCount() == 1) {
- return SassTypes::Value::Unwrap<Value>(v8_obj);
- }
- }
- return NULL;
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/factory.h b/node_modules/node-sass/src/sass_types/factory.h
deleted file mode 100644
index 27b7e3f..0000000
--- a/node_modules/node-sass/src/sass_types/factory.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef SASS_TYPES_FACTORY_H
-#define SASS_TYPES_FACTORY_H
-
-#include <nan.h>
-#include <sass/values.h>
-#include "value.h"
-
-namespace SassTypes
-{
- // This is the guru that knows everything about instantiating the right subclass of SassTypes::Value
- // to wrap a given Sass_Value object.
- class Factory {
- public:
- static NAN_MODULE_INIT(initExports);
- static Value* create(Sass_Value*);
- static Value* unwrap(v8::Local<v8::Value>);
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/list.cpp b/node_modules/node-sass/src/sass_types/list.cpp
deleted file mode 100644
index 4c946ec..0000000
--- a/node_modules/node-sass/src/sass_types/list.cpp
+++ /dev/null
@@ -1,101 +0,0 @@
-#include <nan.h>
-#include "list.h"
-
-namespace SassTypes
-{
- List::List(Sass_Value* v) : SassValueWrapper(v) {}
-
- Sass_Value* List::construct(const std::vector<v8::Local<v8::Value>> raw_val, Sass_Value **out) {
- size_t length = 0;
- bool comma = true;
- bool is_bracketed = false;
-
- if (raw_val.size() >= 1) {
- if (!raw_val[0]->IsNumber()) {
- return fail("First argument should be an integer.", out);
- }
-
- length = Nan::To<uint32_t>(raw_val[0]).FromJust();
-
- if (raw_val.size() >= 2) {
- if (!raw_val[1]->IsBoolean()) {
- return fail("Second argument should be a boolean.", out);
- }
-
- comma = Nan::To<bool>(raw_val[1]).FromJust();
- }
- }
-
- return *out = sass_make_list(length, comma ? SASS_COMMA : SASS_SPACE, is_bracketed);
- }
-
- void List::initPrototype(v8::Local<v8::FunctionTemplate> proto) {
- Nan::SetPrototypeMethod(proto, "getLength", GetLength);
- Nan::SetPrototypeMethod(proto, "getSeparator", GetSeparator);
- Nan::SetPrototypeMethod(proto, "setSeparator", SetSeparator);
- Nan::SetPrototypeMethod(proto, "getValue", GetValue);
- Nan::SetPrototypeMethod(proto, "setValue", SetValue);
- }
-
- NAN_METHOD(List::GetValue) {
-
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied index should be an integer");
- }
-
- Sass_Value* list = List::Unwrap<List>(info.This())->value;
- size_t index = Nan::To<uint32_t>(info[0]).FromJust();
-
-
- if (index >= sass_list_get_length(list)) {
- return Nan::ThrowRangeError(Nan::New("Out of bound index").ToLocalChecked());
- }
-
- info.GetReturnValue().Set(Factory::create(sass_list_get_value(list, Nan::To<uint32_t>(info[0]).FromJust()))->get_js_object());
- }
-
- NAN_METHOD(List::SetValue) {
- if (info.Length() != 2) {
- return Nan::ThrowTypeError("Expected two arguments");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied index should be an integer");
- }
-
- if (!info[1]->IsObject()) {
- return Nan::ThrowTypeError("Supplied value should be a SassValue object");
- }
-
- Value* sass_value = Factory::unwrap(info[1]);
- if (sass_value) {
- sass_list_set_value(List::Unwrap<List>(info.This())->value, Nan::To<uint32_t>(info[0]).FromJust(), sass_value->get_sass_value());
- } else {
- Nan::ThrowTypeError("A SassValue is expected as the list item");
- }
- }
-
- NAN_METHOD(List::GetSeparator) {
- info.GetReturnValue().Set(sass_list_get_separator(List::Unwrap<List>(info.This())->value) == SASS_COMMA);
- }
-
- NAN_METHOD(List::SetSeparator) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsBoolean()) {
- return Nan::ThrowTypeError("Supplied value should be a boolean");
- }
-
- sass_list_set_separator(List::Unwrap<List>(info.This())->value, Nan::To<bool>(info[0]).FromJust() ? SASS_COMMA : SASS_SPACE);
- }
-
- NAN_METHOD(List::GetLength) {
- info.GetReturnValue().Set(Nan::New<v8::Number>(sass_list_get_length(List::Unwrap<List>(info.This())->value)));
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/list.h b/node_modules/node-sass/src/sass_types/list.h
deleted file mode 100644
index c43b754..0000000
--- a/node_modules/node-sass/src/sass_types/list.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef SASS_TYPES_LIST_H
-#define SASS_TYPES_LIST_H
-
-#include <nan.h>
-#include "sass_value_wrapper.h"
-
-namespace SassTypes
-{
- class List : public SassValueWrapper<List> {
- public:
- List(Sass_Value*);
- static char const* get_constructor_name() { return "SassList"; }
- static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **);
-
- static void initPrototype(v8::Local<v8::FunctionTemplate>);
-
- static NAN_METHOD(GetValue);
- static NAN_METHOD(SetValue);
- static NAN_METHOD(GetSeparator);
- static NAN_METHOD(SetSeparator);
- static NAN_METHOD(GetLength);
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/map.cpp b/node_modules/node-sass/src/sass_types/map.cpp
deleted file mode 100644
index ae4a260..0000000
--- a/node_modules/node-sass/src/sass_types/map.cpp
+++ /dev/null
@@ -1,118 +0,0 @@
-#include <nan.h>
-#include "map.h"
-
-namespace SassTypes
-{
- Map::Map(Sass_Value* v) : SassValueWrapper(v) {}
-
- Sass_Value* Map::construct(const std::vector<v8::Local<v8::Value>> raw_val, Sass_Value **out) {
- size_t length = 0;
-
- if (raw_val.size() >= 1) {
- if (!raw_val[0]->IsNumber()) {
- return fail("First argument should be an integer.", out);
- }
-
- length = Nan::To<uint32_t>(raw_val[0]).FromJust();
- }
-
- return *out = sass_make_map(length);
- }
-
- void Map::initPrototype(v8::Local<v8::FunctionTemplate> proto) {
- Nan::SetPrototypeMethod(proto, "getLength", GetLength);
- Nan::SetPrototypeMethod(proto, "getKey", GetKey);
- Nan::SetPrototypeMethod(proto, "setKey", SetKey);
- Nan::SetPrototypeMethod(proto, "getValue", GetValue);
- Nan::SetPrototypeMethod(proto, "setValue", SetValue);
- }
-
- NAN_METHOD(Map::GetValue) {
-
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied index should be an integer");
- }
-
- Sass_Value* map = Map::Unwrap<Map>(info.This())->value;
- size_t index = Nan::To<uint32_t>(info[0]).FromJust();
-
-
- if (index >= sass_map_get_length(map)) {
- return Nan::ThrowRangeError(Nan::New("Out of bound index").ToLocalChecked());
- }
-
- info.GetReturnValue().Set(Factory::create(sass_map_get_value(map, Nan::To<uint32_t>(info[0]).FromJust()))->get_js_object());
- }
-
- NAN_METHOD(Map::SetValue) {
- if (info.Length() != 2) {
- return Nan::ThrowTypeError("Expected two arguments");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied index should be an integer");
- }
-
- if (!info[1]->IsObject()) {
- return Nan::ThrowTypeError("Supplied value should be a SassValue object");
- }
-
- Value* sass_value = Factory::unwrap(info[1]);
- if (sass_value) {
- sass_map_set_value(Map::Unwrap<Map>(info.This())->value, Nan::To<uint32_t>(info[0]).FromJust(), sass_value->get_sass_value());
- } else {
- Nan::ThrowTypeError("A SassValue is expected as a map value");
- }
- }
-
- NAN_METHOD(Map::GetKey) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied index should be an integer");
- }
-
- Sass_Value* map = Map::Unwrap<Map>(info.This())->value;
- size_t index = Nan::To<uint32_t>(info[0]).FromJust();
-
-
- if (index >= sass_map_get_length(map)) {
- return Nan::ThrowRangeError(Nan::New("Out of bound index").ToLocalChecked());
- }
-
- SassTypes::Value* obj = Factory::create(sass_map_get_key(map, Nan::To<uint32_t>(info[0]).FromJust()));
- v8::Local<v8::Object> js_obj = obj->get_js_object();
- info.GetReturnValue().Set(js_obj);
- }
-
- NAN_METHOD(Map::SetKey) {
- if (info.Length() != 2) {
- return Nan::ThrowTypeError("Expected two arguments");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied index should be an integer");
- }
-
- if (!info[1]->IsObject()) {
- return Nan::ThrowTypeError("Supplied value should be a SassValue object");
- }
-
- Value* sass_value = Factory::unwrap(info[1]);
- if (sass_value) {
- sass_map_set_key(Map::Unwrap<Map>(info.This())->value, Nan::To<uint32_t>(info[0]).FromJust(), sass_value->get_sass_value());
- } else {
- Nan::ThrowTypeError("A SassValue is expected as a map key");
- }
- }
-
- NAN_METHOD(Map::GetLength) {
- info.GetReturnValue().Set(Nan::New<v8::Number>(sass_map_get_length(Map::Unwrap<Map>(info.This())->value)));
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/map.h b/node_modules/node-sass/src/sass_types/map.h
deleted file mode 100644
index 832585d..0000000
--- a/node_modules/node-sass/src/sass_types/map.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef SASS_TYPES_MAP_H
-#define SASS_TYPES_MAP_H
-
-#include <nan.h>
-#include "sass_value_wrapper.h"
-
-namespace SassTypes
-{
- class Map : public SassValueWrapper<Map> {
- public:
- Map(Sass_Value*);
- static char const* get_constructor_name() { return "SassMap"; }
- static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **);
-
- static void initPrototype(v8::Local<v8::FunctionTemplate>);
-
- static NAN_METHOD(GetValue);
- static NAN_METHOD(SetValue);
- static NAN_METHOD(GetKey);
- static NAN_METHOD(SetKey);
- static NAN_METHOD(GetLength);
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/null.cpp b/node_modules/node-sass/src/sass_types/null.cpp
deleted file mode 100644
index 69f4c21..0000000
--- a/node_modules/node-sass/src/sass_types/null.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <nan.h>
-#include "null.h"
-
-namespace SassTypes
-{
- Nan::Persistent<v8::Function> Null::constructor;
- bool Null::constructor_locked = false;
-
- Null::Null() {
- value = sass_make_null();
- }
-
- Null& Null::get_singleton() {
- static Null singleton_instance;
- return singleton_instance;
- }
-
- v8::Local<v8::Function> Null::get_constructor() {
- Nan::EscapableHandleScope scope;
- v8::Local<v8::Function> conslocal;
- if (constructor.IsEmpty()) {
- v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
-
- tpl->SetClassName(Nan::New("SassNull").ToLocalChecked());
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
-
- conslocal = Nan::GetFunction(tpl).ToLocalChecked();
- constructor.Reset(conslocal);
-
- get_singleton().js_object.Reset(Nan::NewInstance(conslocal).ToLocalChecked());
- Nan::SetInternalFieldPointer(Nan::New(get_singleton().js_object), 0, &get_singleton());
- Nan::Set(conslocal, Nan::New("NULL").ToLocalChecked(), Nan::New(get_singleton().js_object));
-
- constructor_locked = true;
- } else {
- conslocal = Nan::New(constructor);
- }
-
- return scope.Escape(conslocal);
- }
-
- v8::Local<v8::Object> Null::get_js_object() {
- return Nan::New(this->js_object);
- }
-
- NAN_METHOD(Null::New) {
-
- if (info.IsConstructCall()) {
- if (constructor_locked) {
- return Nan::ThrowTypeError("Cannot instantiate SassNull");
- }
- }
- else {
- info.GetReturnValue().Set(get_singleton().get_js_object());
- }
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/null.h b/node_modules/node-sass/src/sass_types/null.h
deleted file mode 100644
index 15b64ba..0000000
--- a/node_modules/node-sass/src/sass_types/null.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef SASS_TYPES_NULL_H
-#define SASS_TYPES_NULL_H
-
-#include <nan.h>
-#include "value.h"
-
-namespace SassTypes
-{
- class Null : public SassTypes::Value {
- public:
- static Null& get_singleton();
- static v8::Local<v8::Function> get_constructor();
-
- Sass_Value* get_sass_value();
- v8::Local<v8::Object> get_js_object();
-
- static NAN_METHOD(New);
-
- private:
- Null();
-
- Nan::Persistent<v8::Object> js_object;
-
- static Nan::Persistent<v8::Function> constructor;
- static bool constructor_locked;
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/number.cpp b/node_modules/node-sass/src/sass_types/number.cpp
deleted file mode 100644
index d8d303e..0000000
--- a/node_modules/node-sass/src/sass_types/number.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-#include <nan.h>
-#include "number.h"
-#include "../create_string.h"
-
-namespace SassTypes
-{
- Number::Number(Sass_Value* v) : SassValueWrapper(v) {}
-
- Sass_Value* Number::construct(const std::vector<v8::Local<v8::Value>> raw_val, Sass_Value **out) {
- double value = 0;
- char const* unit = "";
-
- if (raw_val.size() >= 1) {
- if (!raw_val[0]->IsNumber()) {
- return fail("First argument should be a number.", out);
- }
-
- value = Nan::To<double>(raw_val[0]).FromJust();
-
- if (raw_val.size() >= 2) {
- if (!raw_val[1]->IsString()) {
- return fail("Second argument should be a string.", out);
- }
-
- unit = create_string(raw_val[1]);
- *out = sass_make_number(value, unit);
- delete unit;
- return *out;
-
- }
- }
-
- return *out = sass_make_number(value, unit);
- }
-
- void Number::initPrototype(v8::Local<v8::FunctionTemplate> proto) {
- Nan::SetPrototypeMethod(proto, "getValue", GetValue);
- Nan::SetPrototypeMethod(proto, "getUnit", GetUnit);
- Nan::SetPrototypeMethod(proto, "setValue", SetValue);
- Nan::SetPrototypeMethod(proto, "setUnit", SetUnit);
- }
-
- NAN_METHOD(Number::GetValue) {
- info.GetReturnValue().Set(Nan::New<v8::Number>(sass_number_get_value(Number::Unwrap<Number>(info.This())->value)));
- }
-
- NAN_METHOD(Number::GetUnit) {
- info.GetReturnValue().Set(Nan::New<v8::String>(sass_number_get_unit(Number::Unwrap<Number>(info.This())->value)).ToLocalChecked());
- }
-
- NAN_METHOD(Number::SetValue) {
-
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsNumber()) {
- return Nan::ThrowTypeError("Supplied value should be a number");
- }
-
- sass_number_set_value(Number::Unwrap<Number>(info.This())->value, Nan::To<double>(info[0]).FromJust());
- }
-
- NAN_METHOD(Number::SetUnit) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsString()) {
- return Nan::ThrowTypeError("Supplied value should be a string");
- }
-
- sass_number_set_unit(Number::Unwrap<Number>(info.This())->value, create_string(info[0]));
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/number.h b/node_modules/node-sass/src/sass_types/number.h
deleted file mode 100644
index 48a0236..0000000
--- a/node_modules/node-sass/src/sass_types/number.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef SASS_TYPES_NUMBER_H
-#define SASS_TYPES_NUMBER_H
-
-#include <nan.h>
-#include "sass_value_wrapper.h"
-
-namespace SassTypes
-{
-
- class Number : public SassValueWrapper<Number> {
- public:
- Number(Sass_Value*);
- static char const* get_constructor_name() { return "SassNumber"; }
- static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **out);
-
- static void initPrototype(v8::Local<v8::FunctionTemplate>);
-
- static NAN_METHOD(GetValue);
- static NAN_METHOD(GetUnit);
- static NAN_METHOD(SetValue);
- static NAN_METHOD(SetUnit);
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/sass_value_wrapper.h b/node_modules/node-sass/src/sass_types/sass_value_wrapper.h
deleted file mode 100644
index 52a3511..0000000
--- a/node_modules/node-sass/src/sass_types/sass_value_wrapper.h
+++ /dev/null
@@ -1,101 +0,0 @@
-#ifndef SASS_TYPES_SASS_VALUE_WRAPPER_H
-#define SASS_TYPES_SASS_VALUE_WRAPPER_H
-
-#include <stdexcept>
-#include <vector>
-#include <nan.h>
-#include "value.h"
-#include "factory.h"
-
-namespace SassTypes
-{
- // Include this in any SassTypes::Value subclasses to handle all the heavy lifting of constructing JS
- // objects and wrapping sass values inside them
- template <class T>
- /* class SassValueWrapper : public SassTypes::Value { */
- class SassValueWrapper : public SassTypes::Value {
- public:
- static char const* get_constructor_name() { return "SassValue"; }
-
- SassValueWrapper(Sass_Value* v) : Value(v) { }
- v8::Local<v8::Object> get_js_object();
-
- static v8::Local<v8::Function> get_constructor();
- static v8::Local<v8::FunctionTemplate> get_constructor_template();
- static NAN_METHOD(New);
- static Sass_Value *fail(const char *, Sass_Value **);
-
- /* private: */
- static Nan::Persistent<v8::Function> constructor;
- };
-
- template <class T>
- Nan::Persistent<v8::Function> SassValueWrapper<T>::constructor;
-
- template <class T>
- v8::Local<v8::Object> SassValueWrapper<T>::get_js_object() {
- if (this->persistent().IsEmpty()) {
- v8::Local<v8::Object> wrapper = Nan::NewInstance(T::get_constructor()).ToLocalChecked();
- this->Wrap(wrapper);
- }
-
- return this->handle();
- }
-
- template <class T>
- v8::Local<v8::FunctionTemplate> SassValueWrapper<T>::get_constructor_template() {
- Nan::EscapableHandleScope scope;
- v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
- tpl->SetClassName(Nan::New<v8::String>(T::get_constructor_name()).ToLocalChecked());
- tpl->InstanceTemplate()->SetInternalFieldCount(1);
- T::initPrototype(tpl);
-
- return scope.Escape(tpl);
- }
-
- template <class T>
- v8::Local<v8::Function> SassValueWrapper<T>::get_constructor() {
- if (constructor.IsEmpty()) {
- constructor.Reset(Nan::GetFunction(T::get_constructor_template()).ToLocalChecked());
- }
-
- return Nan::New(constructor);
- }
-
- template <class T>
- NAN_METHOD(SassValueWrapper<T>::New) {
- std::vector<v8::Local<v8::Value>> localArgs(info.Length());
-
- for (auto i = 0; i < info.Length(); ++i) {
- localArgs[i] = info[i];
- }
- if (info.IsConstructCall()) {
- Sass_Value* value;
- if (T::construct(localArgs, &value) != NULL) {
- T* obj = new T(value);
- sass_delete_value(value);
-
- obj->Wrap(info.This());
- info.GetReturnValue().Set(info.This());
- } else {
- return Nan::ThrowError(Nan::New<v8::String>(sass_error_get_message(value)).ToLocalChecked());
- }
- } else {
- v8::Local<v8::Function> cons = T::get_constructor();
- v8::Local<v8::Object> inst;
- if (Nan::NewInstance(cons, info.Length(), &localArgs[0]).ToLocal(&inst)) {
- info.GetReturnValue().Set(inst);
- } else {
- info.GetReturnValue().Set(Nan::Undefined());
- }
- }
- }
-
- template <class T>
- Sass_Value *SassValueWrapper<T>::fail(const char *reason, Sass_Value **out) {
- *out = sass_make_error(reason);
- return NULL;
- }
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/string.cpp b/node_modules/node-sass/src/sass_types/string.cpp
deleted file mode 100644
index c6f2c48..0000000
--- a/node_modules/node-sass/src/sass_types/string.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#include <nan.h>
-#include "string.h"
-#include "../create_string.h"
-
-namespace SassTypes
-{
- String::String(Sass_Value* v) : SassValueWrapper(v) {}
-
- Sass_Value* String::construct(const std::vector<v8::Local<v8::Value>> raw_val, Sass_Value **out) {
- char const* value = "";
-
- if (raw_val.size() >= 1) {
- if (!raw_val[0]->IsString()) {
- return fail("Argument should be a string.", out);
- }
-
- value = create_string(raw_val[0]);
- *out = sass_make_string(value);
- delete value;
- return *out;
-
- } else {
- return *out = sass_make_string(value);
- }
-
- }
-
- void String::initPrototype(v8::Local<v8::FunctionTemplate> proto) {
- Nan::SetPrototypeMethod(proto, "getValue", GetValue);
- Nan::SetPrototypeMethod(proto, "setValue", SetValue);
- }
-
- NAN_METHOD(String::GetValue) {
- info.GetReturnValue().Set(Nan::New<v8::String>(sass_string_get_value(String::Unwrap<String>(info.This())->value)).ToLocalChecked());
- }
-
- NAN_METHOD(String::SetValue) {
- if (info.Length() != 1) {
- return Nan::ThrowTypeError("Expected just one argument");
- }
-
- if (!info[0]->IsString()) {
- return Nan::ThrowTypeError("Supplied value should be a string");
- }
-
- sass_string_set_value(String::Unwrap<String>(info.This())->value, create_string(info[0]));
- }
-}
diff --git a/node_modules/node-sass/src/sass_types/string.h b/node_modules/node-sass/src/sass_types/string.h
deleted file mode 100644
index 2e72c82..0000000
--- a/node_modules/node-sass/src/sass_types/string.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef SASS_TYPES_STRING_H
-#define SASS_TYPES_STRING_H
-
-#include <nan.h>
-#include "sass_value_wrapper.h"
-
-namespace SassTypes
-{
- class String : public SassValueWrapper<String> {
- public:
- String(Sass_Value*);
- static char const* get_constructor_name() { return "SassString"; }
- static Sass_Value* construct(const std::vector<v8::Local<v8::Value>>, Sass_Value **);
-
- static void initPrototype(v8::Local<v8::FunctionTemplate>);
-
- static NAN_METHOD(GetValue);
- static NAN_METHOD(SetValue);
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/src/sass_types/value.h b/node_modules/node-sass/src/sass_types/value.h
deleted file mode 100644
index fa4703c..0000000
--- a/node_modules/node-sass/src/sass_types/value.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef SASS_TYPES_VALUE_H
-#define SASS_TYPES_VALUE_H
-
-#include <nan.h>
-#include <sass/values.h>
-
-namespace SassTypes
-{
- // This is the interface that all sass values must comply with
- class Value : public Nan::ObjectWrap {
-
- public:
- virtual v8::Local<v8::Object> get_js_object() =0;
-
- Value() {
-
- }
-
- Sass_Value* get_sass_value() {
- return sass_clone_value(this->value);
- }
-
- protected:
-
- Sass_Value* value;
-
- Value(Sass_Value* v) {
- this->value = sass_clone_value(v);
- }
-
- ~Value() {
- sass_delete_value(this->value);
- }
-
- static Sass_Value* fail(const char *reason, Sass_Value **out) {
- *out = sass_make_error(reason);
- return NULL;
- }
- };
-}
-
-#endif
diff --git a/node_modules/node-sass/test/.eslintrc b/node_modules/node-sass/test/.eslintrc
deleted file mode 100644
index 7eeefc3..0000000
--- a/node_modules/node-sass/test/.eslintrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "env": {
- "mocha": true
- }
-}
diff --git a/node_modules/node-sass/test/api.js b/node_modules/node-sass/test/api.js
deleted file mode 100644
index 5db3113..0000000
--- a/node_modules/node-sass/test/api.js
+++ /dev/null
@@ -1,2035 +0,0 @@
-/*eslint new-cap: ["error", {"capIsNewExceptions": ["Color"]}]*/
-
-var assert = require('assert'),
- fs = require('fs'),
- path = require('path'),
- read = fs.readFileSync,
- sassPath = process.env.NODESASS_COV
- ? require.resolve('../lib-cov')
- : require.resolve('../lib'),
- sass = require(sassPath),
- fixture = path.join.bind(null, __dirname, 'fixtures'),
- resolveFixture = path.resolve.bind(null, __dirname, 'fixtures');
-
-describe('api', function() {
-
- describe('.render(options, callback)', function() {
-
- beforeEach(function() {
- delete process.env.SASS_PATH;
- });
-
- it('should compile sass to css with file', function(done) {
- var expected = read(fixture('simple/expected.css'), 'utf8').trim();
-
- sass.render({
- file: fixture('simple/index.scss')
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should compile sass to css with outFile set to absolute url', function(done) {
- sass.render({
- file: fixture('simple/index.scss'),
- sourceMap: true,
- outFile: fixture('simple/index-test.css')
- }, function(error, result) {
- assert.equal(JSON.parse(result.map).file, 'index-test.css');
- done();
- });
- });
-
- it('should compile sass to css with outFile set to relative url', function(done) {
- sass.render({
- file: fixture('simple/index.scss'),
- sourceMap: true,
- outFile: './index-test.css'
- }, function(error, result) {
- assert.equal(JSON.parse(result.map).file, 'index-test.css');
- done();
- });
- });
-
- it('should compile sass to css with outFile and sourceMap set to relative url', function(done) {
- sass.render({
- file: fixture('simple/index.scss'),
- sourceMap: './deep/nested/index.map',
- outFile: './index-test.css'
- }, function(error, result) {
- assert.equal(JSON.parse(result.map).file, '../../index-test.css');
- done();
- });
- });
-
- it('should not generate source map when not requested', function(done) {
- sass.render({
- file: fixture('simple/index.scss'),
- sourceMap: false
- }, function(error, result) {
- assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
- done();
- });
- });
-
- it('should not generate source map without outFile and no explicit path given', function(done) {
- sass.render({
- file: fixture('simple/index.scss'),
- sourceMap: true
- }, function(error, result) {
- assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
- done();
- });
- });
-
- it('should compile generate map with sourceMapRoot pass-through option', function(done) {
- sass.render({
- file: fixture('simple/index.scss'),
- sourceMap: './deep/nested/index.map',
- sourceMapRoot: 'http://test.com/',
- outFile: './index-test.css'
- }, function(error, result) {
- assert.equal(JSON.parse(result.map).sourceRoot, 'http://test.com/');
- done();
- });
- });
-
- it('should compile sass to css with data', function(done) {
- var src = read(fixture('simple/index.scss'), 'utf8');
- var expected = read(fixture('simple/expected.css'), 'utf8').trim();
-
- sass.render({
- data: src
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should compile sass to css using indented syntax', function(done) {
- var src = read(fixture('indent/index.sass'), 'utf8');
- var expected = read(fixture('indent/expected.css'), 'utf8').trim();
-
- sass.render({
- data: src,
- indentedSyntax: true
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should NOT compile empty data string', function(done) {
- sass.render({
- data: ''
- }, function(error) {
- assert.equal(error.message, 'No input specified: provide a file name or a source string to process');
- done();
- });
- });
-
- it('should NOT compile without any input', function(done) {
- sass.render({ }, function(error) {
- assert.equal(error.message, 'No input specified: provide a file name or a source string to process');
- done();
- });
- });
-
- it('should returnn error status 1 for bad input', function(done) {
- sass.render({
- data: '#navbar width 80%;'
- }, function(error) {
- assert(error.message);
- assert.equal(error.status, 1);
- done();
- });
- });
-
- it('should compile with include paths', function(done) {
- var src = read(fixture('include-path/index.scss'), 'utf8');
- var expected = read(fixture('include-path/expected.css'), 'utf8').trim();
-
- sass.render({
- data: src,
- includePaths: [
- fixture('include-path/functions'),
- fixture('include-path/lib')
- ]
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should add cwd to the front on include paths', function(done) {
- var src = fixture('cwd-include-path/root/index.scss');
- var expected = read(fixture('cwd-include-path/expected.css'), 'utf8').trim();
- var cwd = process.cwd();
-
- process.chdir(fixture('cwd-include-path'));
- sass.render({
- file: src,
- includePaths: []
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
-
- process.chdir(cwd);
- done();
- });
- });
-
- it('should check SASS_PATH in the specified order', function(done) {
- var src = read(fixture('sass-path/index.scss'), 'utf8');
- var expectedRed = read(fixture('sass-path/expected-red.css'), 'utf8').trim();
- var expectedOrange = read(fixture('sass-path/expected-orange.css'), 'utf8').trim();
-
- var envIncludes = [
- fixture('sass-path/red'),
- fixture('sass-path/orange')
- ];
-
- process.env.SASS_PATH = envIncludes.join(path.delimiter);
- sass.render({
- data: src,
- includePaths: []
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expectedRed.replace(/\r\n/g, '\n'));
- });
-
- process.env.SASS_PATH = envIncludes.reverse().join(path.delimiter);
- sass.render({
- data: src,
- includePaths: []
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expectedOrange.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should prefer include path over SASS_PATH', function(done) {
- var src = read(fixture('sass-path/index.scss'), 'utf8');
- var expectedRed = read(fixture('sass-path/expected-red.css'), 'utf8').trim();
- var expectedOrange = read(fixture('sass-path/expected-orange.css'), 'utf8').trim();
-
- var envIncludes = [
- fixture('sass-path/red')
- ];
- process.env.SASS_PATH = envIncludes.join(path.delimiter);
-
- sass.render({
- data: src,
- includePaths: []
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expectedRed.replace(/\r\n/g, '\n'));
- });
- sass.render({
- data: src,
- includePaths: [fixture('sass-path/orange')]
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expectedOrange.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should render with precision option', function(done) {
- var src = read(fixture('precision/index.scss'), 'utf8');
- var expected = read(fixture('precision/expected.css'), 'utf8').trim();
-
- sass.render({
- data: src,
- precision: 10
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should contain all included files in stats when data is passed', function(done) {
- var src = read(fixture('include-files/index.scss'), 'utf8');
- var expected = [
- fixture('include-files/bar.scss').replace(/\\/g, '/'),
- fixture('include-files/foo.scss').replace(/\\/g, '/')
- ];
-
- sass.render({
- data: src,
- includePaths: [fixture('include-files')]
- }, function(error, result) {
- assert.deepEqual(result.stats.includedFiles, expected);
- done();
- });
- });
-
- it('should render with indentWidth and indentType options', function(done) {
- sass.render({
- data: 'div { color: transparent; }',
- indentWidth: 7,
- indentType: 'tab'
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n\t\t\t\t\t\t\tcolor: transparent; }');
- done();
- });
- });
-
- it('should render with linefeed option', function(done) {
- sass.render({
- data: 'div { color: transparent; }',
- linefeed: 'lfcr'
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n\r color: transparent; }');
- done();
- });
- });
- });
-
- describe('.render(importer)', function() {
- var src = read(fixture('include-files/index.scss'), 'utf8');
-
- it('should respect the order of chained imports when using custom importers and one file is custom imported and the other is not.', function(done) {
- sass.render({
- file: fixture('include-files/chained-imports-with-custom-importer.scss'),
- importer: function(url, prev, done) {
- // NOTE: to see that this test failure is only due to the stated
- // issue do each of the following and see that the tests pass.
- //
- // a) add `return sass.NULL;` as the first line in this function to
- // cause non-custom importers to always be used.
- // b) comment out the conditional below to force our custom
- // importer to always be used.
- //
- // You will notice that the tests pass when either all native, or
- // all custom importers are used, but not when a native + custom
- // import chain is used.
- if (url !== 'file-processed-by-loader') {
- return sass.NULL;
- }
- done({
- file: fixture('include-files/' + url + '.scss')
- });
- }
- }, function(err, data) {
- assert.equal(err, null);
-
- assert.equal(
- data.css.toString().trim(),
- 'body {\n color: "red"; }'
- );
-
- done();
- });
- });
-
- it('should still call the next importer with the resolved prev path when the previous importer returned both a file and contents property - issue #1219', function(done) {
- sass.render({
- data: '@import "a";',
- importer: function(url, prev, done) {
- if (url === 'a') {
- done({
- file: '/Users/me/sass/lib/a.scss',
- contents: '@import "b"'
- });
- } else {
- assert.equal(prev, '/Users/me/sass/lib/a.scss');
- done({
- file: '/Users/me/sass/lib/b.scss',
- contents: 'div {color: yellow;}'
- });
- }
- }
- }, function() {
- done();
- });
- });
-
- it('should override imports with "data" as input and fires callback with file and contents', function(done) {
- sass.render({
- data: src,
- importer: function(url, prev, done) {
- done({
- file: '/some/other/path.scss',
- contents: 'div {color: yellow;}'
- });
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should should resolve imports depth first', function (done) {
- var actualImportOrder = [];
- var expectedImportOrder = [
- 'a', '_common', 'vars', 'struct', 'a1', 'common', 'vars', 'struct', 'b', 'b1'
- ];
- var expected = read(fixture('depth-first/expected.css'));
-
- sass.render({
- file: fixture('depth-first/index.scss'),
- importer: function (url, prev, done) {
- actualImportOrder.push(url);
- done();
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), expected);
- assert.deepEqual(actualImportOrder, expectedImportOrder);
- done();
- });
- });
-
- it('should override imports with "file" as input and fires callback with file and contents', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev, done) {
- done({
- file: '/some/other/path.scss',
- contents: 'div {color: yellow;}'
- });
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should override imports with "data" as input and returns file and contents', function(done) {
- sass.render({
- data: src,
- importer: function(url, prev) {
- return {
- file: prev + url,
- contents: 'div {color: yellow;}'
- };
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should override imports with "file" as input and returns file and contents', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev) {
- return {
- file: prev + url,
- contents: 'div {color: yellow;}'
- };
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should override imports with "data" as input and fires callback with file', function(done) {
- sass.render({
- data: src,
- importer: function(url, /* jshint unused:false */ prev, done) {
- done({
- file: path.resolve(path.dirname(fixture('include-files/index.scss')), url + (path.extname(url) ? '' : '.scss'))
- });
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should override imports with "file" as input and fires callback with file', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev, done) {
- done({
- file: path.resolve(path.dirname(prev), url + (path.extname(url) ? '' : '.scss'))
- });
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should override imports with "data" as input and returns file', function(done) {
- sass.render({
- data: src,
- importer: function(url) {
- return {
- file: path.resolve(path.dirname(fixture('include-files/index.scss')), url + (path.extname(url) ? '' : '.scss'))
- };
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should override imports with "file" as input and returns file', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev) {
- return {
- file: path.resolve(path.dirname(prev), url + (path.extname(url) ? '' : '.scss'))
- };
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should fallback to default import behaviour if importer returns sass.NULL', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev, done) {
- done(sass.NULL);
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should fallback to default import behaviour if importer returns null for backwards compatibility', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev, done) {
- done(null);
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should fallback to default import behaviour if importer returns undefined for backwards compatibility', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev, done) {
- done(undefined);
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should fallback to default import behaviour if importer returns false for backwards compatibility', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev, done) {
- done(false);
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
- });
-
- it('should override imports with "data" as input and fires callback with contents', function(done) {
- sass.render({
- data: src,
- importer: function(url, prev, done) {
- done({
- contents: 'div {color: yellow;}'
- });
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should override imports with "file" as input and fires callback with contents', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev, done) {
- done({
- contents: 'div {color: yellow;}'
- });
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should override imports with "data" as input and returns contents', function(done) {
- sass.render({
- data: src,
- importer: function() {
- return {
- contents: 'div {color: yellow;}'
- };
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should override imports with "file" as input and returns contents', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: function() {
- return {
- contents: 'div {color: yellow;}'
- };
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should accept arrays of importers and return respect the order', function(done) {
- sass.render({
- file: fixture('include-files/index.scss'),
- importer: [
- function() {
- return sass.NULL;
- },
- function() {
- return {
- contents: 'div {color: yellow;}'
- };
- }
- ]
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
- });
-
- it('should be able to see its options in this.options', function(done) {
- var fxt = fixture('include-files/index.scss');
- sass.render({
- file: fxt,
- importer: function() {
- assert.equal(fxt, this.options.file);
- return {};
- }
- }, function() {
- assert.equal(fxt, this.options.file);
- done();
- });
- });
-
- it('should be able to access a persistent options object', function(done) {
- sass.render({
- data: src,
- importer: function() {
- this.state = this.state || 0;
- this.state++;
- return {
- contents: 'div {color: yellow;}'
- };
- }
- }, function() {
- assert.equal(this.state, 2);
- done();
- });
- });
-
- it('should wrap importer options', function(done) {
- var options;
- options = {
- data: src,
- importer: function() {
- assert.notStrictEqual(this.options.importer, options.importer);
- return {
- contents: 'div {color: yellow;}'
- };
- }
- };
- sass.render(options, function() {
- done();
- });
- });
-
- it('should reflect user-defined error when returned as callback', function(done) {
- sass.render({
- data: src,
- importer: function(url, prev, done) {
- done(new Error('doesn\'t exist!'));
- }
- }, function(error) {
- assert(/doesn\'t exist!/.test(error.message));
- done();
- });
- });
-
- it('should reflect user-defined error with return', function(done) {
- sass.render({
- data: src,
- importer: function() {
- return new Error('doesn\'t exist!');
- }
- }, function(error) {
- assert(/doesn\'t exist!/.test(error.message));
- done();
- });
- });
-
- it('should throw exception when importer returns an invalid value', function(done) {
- sass.render({
- data: src,
- importer: function() {
- return { contents: new Buffer('i am not a string!') };
- }
- }, function(error) {
- assert(/returned value of `contents` must be a string/.test(error.message));
- done();
- });
- });
- });
-
- describe('.render(functions)', function() {
- it('should call custom defined nullary function', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return new sass.types.Number(42, 'px');
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: 42px; }');
- done();
- });
- });
-
- it('should call custom function with multiple args', function(done) {
- sass.render({
- data: 'div { color: foo(3, 42px); }',
- functions: {
- 'foo($a, $b)': function(factor, size) {
- return new sass.types.Number(factor.getValue() * size.getValue(), size.getUnit());
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: 126px; }');
- done();
- });
- });
-
- it('should work with custom functions that return data asynchronously', function(done) {
- sass.render({
- data: 'div { color: foo(42px); }',
- functions: {
- 'foo($a)': function(size, done) {
- setTimeout(function() {
- done(new sass.types.Number(66, 'em'));
- }, 50);
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: 66em; }');
- done();
- });
- });
-
- it('should let custom functions call setter methods on wrapped sass values (number)', function(done) {
- sass.render({
- data: 'div { width: foo(42px); height: bar(42px); }',
- functions: {
- 'foo($a)': function(size) {
- size.setUnit('rem');
- return size;
- },
- 'bar($a)': function(size) {
- size.setValue(size.getValue() * 2);
- return size;
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n width: 42rem;\n height: 84px; }');
- done();
- });
- });
-
- it('should properly convert strings when calling custom functions', function(done) {
- sass.render({
- data: 'div { color: foo("bar"); }',
- functions: {
- 'foo($a)': function(str) {
- str = str.getValue().replace(/['"]/g, '');
- return new sass.types.String('"' + str + str + '"');
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: "barbar"; }');
- done();
- });
- });
-
- it('should let custom functions call setter methods on wrapped sass values (string)', function(done) {
- sass.render({
- data: 'div { width: foo("bar"); }',
- functions: {
- 'foo($a)': function(str) {
- var unquoted = str.getValue().replace(/['"]/g, '');
- str.setValue('"' + unquoted + unquoted + '"');
- return str;
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n width: "barbar"; }');
- done();
- });
- });
-
- it('should properly convert colors when calling custom functions', function(done) {
- sass.render({
- data: 'div { color: foo(#f00); background-color: bar(); border-color: baz(); }',
- functions: {
- 'foo($a)': function(color) {
- assert.equal(color.getR(), 255);
- assert.equal(color.getG(), 0);
- assert.equal(color.getB(), 0);
- assert.equal(color.getA(), 1.0);
-
- return new sass.types.Color(255, 255, 0, 0.5);
- },
- 'bar()': function() {
- return new sass.types.Color(0x33ff00ff);
- },
- 'baz()': function() {
- return new sass.types.Color(0xffff0000);
- }
- }
- }, function(error, result) {
- assert.equal(
- result.css.toString().trim(),
- 'div {\n color: rgba(255, 255, 0, 0.5);' +
- '\n background-color: rgba(255, 0, 255, 0.2);' +
- '\n border-color: red; }'
- );
- done();
- });
- });
-
- it('should properly convert boolean when calling custom functions', function(done) {
- sass.render({
- data: 'div { color: if(foo(true, false), #fff, #000);' +
- '\n background-color: if(foo(true, true), #fff, #000); }',
- functions: {
- 'foo($a, $b)': function(a, b) {
- return sass.types.Boolean(a.getValue() && b.getValue());
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: #000;\n background-color: #fff; }');
- done();
- });
- });
-
- it('should let custom functions call setter methods on wrapped sass values (boolean)', function(done) {
- sass.render({
- data: 'div { color: if(foo(false), #fff, #000); background-color: if(foo(true), #fff, #000); }',
- functions: {
- 'foo($a)': function(a) {
- return a.getValue() ? sass.types.Boolean.FALSE : sass.types.Boolean.TRUE;
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: #fff;\n background-color: #000; }');
- done();
- });
- });
-
- it('should properly convert lists when calling custom functions', function(done) {
- sass.render({
- data: '$test-list: (bar, #f00, 123em); @each $item in foo($test-list) { .#{$item} { color: #fff; } }',
- functions: {
- 'foo($l)': function(list) {
- assert.equal(list.getLength(), 3);
- assert.ok(list.getValue(0) instanceof sass.types.String);
- assert.equal(list.getValue(0).getValue(), 'bar');
- assert.ok(list.getValue(1) instanceof sass.types.Color);
- assert.equal(list.getValue(1).getR(), 0xff);
- assert.equal(list.getValue(1).getG(), 0);
- assert.equal(list.getValue(1).getB(), 0);
- assert.ok(list.getValue(2) instanceof sass.types.Number);
- assert.equal(list.getValue(2).getValue(), 123);
- assert.equal(list.getValue(2).getUnit(), 'em');
-
- var out = new sass.types.List(3);
- out.setValue(0, new sass.types.String('foo'));
- out.setValue(1, new sass.types.String('bar'));
- out.setValue(2, new sass.types.String('baz'));
- return out;
- }
- }
- }, function(error, result) {
- assert.equal(
- result.css.toString().trim(),
- '.foo {\n color: #fff; }\n\n.bar {\n color: #fff; }\n\n.baz {\n color: #fff; }'
- );
- done();
- });
- });
-
- it('should properly convert maps when calling custom functions', function(done) {
- sass.render({
- data: '$test-map: foo((abc: 123, #def: true)); div { color: if(map-has-key($test-map, hello), #fff, #000); }' +
- 'span { color: map-get($test-map, baz); }',
- functions: {
- 'foo($m)': function(map) {
- assert.equal(map.getLength(), 2);
- assert.ok(map.getKey(0) instanceof sass.types.String);
- assert.ok(map.getKey(1) instanceof sass.types.Color);
- assert.ok(map.getValue(0) instanceof sass.types.Number);
- assert.ok(map.getValue(1) instanceof sass.types.Boolean);
- assert.equal(map.getKey(0).getValue(), 'abc');
- assert.equal(map.getValue(0).getValue(), 123);
- assert.equal(map.getKey(1).getR(), 0xdd);
- assert.equal(map.getValue(1).getValue(), true);
-
- var out = new sass.types.Map(3);
- out.setKey(0, new sass.types.String('hello'));
- out.setValue(0, new sass.types.String('world'));
- out.setKey(1, new sass.types.String('foo'));
- out.setValue(1, new sass.types.String('bar'));
- out.setKey(2, new sass.types.String('baz'));
- out.setValue(2, new sass.types.String('qux'));
- return out;
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: #fff; }\n\nspan {\n color: qux; }');
- done();
- });
- });
-
- it('should properly convert null when calling custom functions', function(done) {
- sass.render({
- data: 'div { color: if(foo("bar"), #fff, #000); } ' +
- 'span { color: if(foo(null), #fff, #000); }' +
- 'table { color: if(bar() == null, #fff, #000); }',
- functions: {
- 'foo($a)': function(a) {
- return sass.types.Boolean(a instanceof sass.types.Null);
- },
- 'bar()': function() {
- return sass.NULL;
- }
- }
- }, function(error, result) {
- assert.equal(
- result.css.toString().trim(),
- 'div {\n color: #000; }\n\nspan {\n color: #fff; }\n\ntable {\n color: #fff; }'
- );
- done();
- });
- });
-
- it('should be possible to carry sass values across different renders', function(done) {
- var persistentMap;
-
- sass.render({
- data: 'div { color: foo((abc: #112233, #ddeeff: true)); }',
- functions: {
- foo: function(m) {
- persistentMap = m;
- return sass.types.Color(0, 0, 0);
- }
- }
- }, function() {
- sass.render({
- data: 'div { color: map-get(bar(), abc); background-color: baz(); }',
- functions: {
- bar: function() {
- return persistentMap;
- },
- baz: function() {
- return persistentMap.getKey(1);
- }
- }
- }, function(errror, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: #112233;\n background-color: #ddeeff; }');
- done();
- });
- });
- });
-
- it('should let us register custom functions without signatures', function(done) {
- sass.render({
- data: 'div { color: foo(20, 22); }',
- functions: {
- foo: function(a, b) {
- return new sass.types.Number(a.getValue() + b.getValue(), 'em');
- }
- }
- }, function(error, result) {
- assert.equal(result.css.toString().trim(), 'div {\n color: 42em; }');
- done();
- });
- });
-
- it('should fail when returning anything other than a sass value from a custom function', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return {};
- }
- }
- }, function(error) {
- assert.ok(/A SassValue object was expected/.test(error.message));
- done();
- });
- });
-
- it('should properly bubble up standard JS errors thrown by custom functions', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- throw new RangeError('This is a test error');
- }
- }
- }, function(error) {
- assert.ok(/This is a test error/.test(error.message));
- done();
- });
- });
-
- it('should properly bubble up unknown errors thrown by custom functions', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- throw {};
- }
- }
- }, function(error) {
- assert.ok(/unexpected error/.test(error.message));
- done();
- });
- });
-
- it('should call custom functions with correct context', function(done) {
- function assertExpected(result) {
- assert.equal(result.css.toString().trim(), 'div {\n foo1: 1;\n foo2: 2; }');
- }
- var options = {
- data: 'div { foo1: foo(); foo2: foo(); }',
- functions: {
- // foo() is stateful and will persist an incrementing counter
- 'foo()': function() {
- assert(this);
- this.fooCounter = (this.fooCounter || 0) + 1;
- return new sass.types.Number(this.fooCounter);
- }
- }
- };
-
- sass.render(options, function(error, result) {
- assertExpected(result);
- done();
- });
- });
-
- describe('should properly bubble up errors from sass color constructor', function() {
- it('four booleans', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return new sass.types.Color(false, false, false, false);
- }
- }
- }, function(error) {
- assert.ok(/Constructor arguments should be numbers exclusively/.test(error.message));
- done();
- });
- });
-
- it('two arguments', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return sass.types.Color(2,3);
- }
- }
- }, function(error) {
- assert.ok(/Constructor should be invoked with either 0, 1, 3 or 4 arguments/.test(error.message));
- done();
- });
- });
-
- it('single string argument', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return sass.types.Color('foo');
- }
- }
- }, function(error) {
- assert.ok(/Only argument should be an integer/.test(error.message));
- done();
- });
- });
- });
-
- it('should properly bubble up errors from sass value constructors', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return sass.types.Boolean('foo');
- }
- }
- }, function(error) {
- assert.ok(/Expected one boolean argument/.test(error.message));
- done();
- });
- });
-
- it('should properly bubble up errors from sass value setters', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- var ret = new sass.types.Number(42);
- ret.setUnit(123);
- return ret;
- }
- }
- }, function(error) {
- assert.ok(/Supplied value should be a string/.test(error.message));
- done();
- });
- });
-
- it('should fail when trying to set a bare number as the List item', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- var out = new sass.types.List(1);
- out.setValue(0, 2);
- return out;
- }
- }
- }, function(error) {
- assert.ok(/Supplied value should be a SassValue object/.test(error.message));
- done();
- });
- });
-
- it('should fail when trying to set a bare Object as the List item', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- var out = new sass.types.List(1);
- out.setValue(0, {});
- return out;
- }
- }
- }, function(error) {
- assert.ok(/A SassValue is expected as the list item/.test(error.message));
- done();
- });
- });
-
- it('should fail when trying to set a bare Object as the Map key', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- var out = new sass.types.Map(1);
- out.setKey(0, {});
- out.setValue(0, new sass.types.String('aaa'));
- return out;
- }
- }
- }, function(error) {
- assert.ok(/A SassValue is expected as a map key/.test(error.message));
- done();
- });
- });
-
- it('should fail when trying to set a bare Object as the Map value', function(done) {
- sass.render({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- var out = new sass.types.Map(1);
- out.setKey(0, new sass.types.String('aaa'));
- out.setValue(0, {});
- return out;
- }
- }
- }, function(error) {
- assert.ok(/A SassValue is expected as a map value/.test(error.message));
- done();
- });
- });
-
- it('should always map null, true and false to the same (immutable) object', function(done) {
- var counter = 0;
-
- sass.render({
- data: 'div { color: foo(bar(null)); background-color: baz("foo" == "bar"); }',
- functions: {
- foo: function(a) {
- assert.strictEqual(a, sass.TRUE,
- 'Supplied value should be the same instance as sass.TRUE'
- );
-
- assert.strictEqual(
- sass.types.Boolean(true), sass.types.Boolean(true),
- 'sass.types.Boolean(true) should return a singleton');
-
- assert.strictEqual(
- sass.types.Boolean(true), sass.TRUE,
- 'sass.types.Boolean(true) should be the same instance as sass.TRUE');
-
- counter++;
-
- return sass.types.String('foo');
- },
- bar: function(a) {
- assert.strictEqual(a, sass.NULL,
- 'Supplied value should be the same instance as sass.NULL');
-
- assert.throws(function() {
- return new sass.types.Null();
- }, /Cannot instantiate SassNull/);
-
- counter++;
-
- return sass.TRUE;
- },
- baz: function(a) {
- assert.strictEqual(a, sass.FALSE,
- 'Supplied value should be the same instance as sass.FALSE');
-
- assert.throws(function() {
- return new sass.types.Boolean(false);
- }, /Cannot instantiate SassBoolean/);
-
- assert.strictEqual(
- sass.types.Boolean(false), sass.types.Boolean(false),
- 'sass.types.Boolean(false) should return a singleton');
-
- assert.strictEqual(
- sass.types.Boolean(false), sass.FALSE,
- 'sass.types.Boolean(false) should return singleton identical to sass.FALSE');
-
- counter++;
-
- return sass.types.String('baz');
- }
- }
- }, function() {
- assert.strictEqual(counter, 3);
- done();
- });
- });
- });
-
- describe('.render({stats: {}})', function() {
- var start = Date.now();
-
- it('should provide a start timestamp', function(done) {
- sass.render({
- file: fixture('include-files/index.scss')
- }, function(error, result) {
- assert(!error);
- assert.strictEqual(typeof result.stats.start, 'number');
- assert(result.stats.start >= start);
- done();
- });
- });
-
- it('should provide an end timestamp', function(done) {
- sass.render({
- file: fixture('include-files/index.scss')
- }, function(error, result) {
- assert(!error);
- assert.strictEqual(typeof result.stats.end, 'number');
- assert(result.stats.end >= result.stats.start);
- done();
- });
- });
-
- it('should provide a duration', function(done) {
- sass.render({
- file: fixture('include-files/index.scss')
- }, function(error, result) {
- assert(!error);
- assert.strictEqual(typeof result.stats.duration, 'number');
- assert.equal(result.stats.end - result.stats.start, result.stats.duration);
- done();
- });
- });
-
- it('should contain the given entry file', function(done) {
- sass.render({
- file: fixture('include-files/index.scss')
- }, function(error, result) {
- assert(!error);
- assert.equal(result.stats.entry, fixture('include-files/index.scss'));
- done();
- });
- });
-
- it('should contain an array of all included files', function(done) {
- var expected = [
- fixture('include-files/bar.scss').replace(/\\/g, '/'),
- fixture('include-files/foo.scss').replace(/\\/g, '/'),
- fixture('include-files/index.scss').replace(/\\/g, '/')
- ];
-
- sass.render({
- file: fixture('include-files/index.scss')
- }, function(error, result) {
- assert(!error);
- assert.deepEqual(result.stats.includedFiles.sort(), expected.sort());
- done();
- });
- });
-
- it('should contain array with the entry if there are no import statements', function(done) {
- var expected = fixture('simple/index.scss').replace(/\\/g, '/');
-
- sass.render({
- file: fixture('simple/index.scss')
- }, function(error, result) {
- assert.deepEqual(result.stats.includedFiles, [expected]);
- done();
- });
- });
-
- it('should state `data` as entry file', function(done) {
- sass.render({
- data: read(fixture('simple/index.scss'), 'utf8')
- }, function(error, result) {
- assert.equal(result.stats.entry, 'data');
- done();
- });
- });
-
- it('should contain an empty array as includedFiles', function(done) {
- sass.render({
- data: read(fixture('simple/index.scss'), 'utf8')
- }, function(error, result) {
- assert.deepEqual(result.stats.includedFiles, []);
- done();
- });
- });
- });
-
- describe('.renderSync(options)', function() {
- it('should compile sass to css with file', function(done) {
- var expected = read(fixture('simple/expected.css'), 'utf8').trim();
- var result = sass.renderSync({ file: fixture('simple/index.scss') });
-
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should compile sass to css with outFile set to absolute url', function(done) {
- var result = sass.renderSync({
- file: fixture('simple/index.scss'),
- sourceMap: true,
- outFile: fixture('simple/index-test.css')
- });
-
- assert.equal(JSON.parse(result.map).file, 'index-test.css');
- done();
- });
-
- it('should compile sass to css with outFile set to relative url', function(done) {
- var result = sass.renderSync({
- file: fixture('simple/index.scss'),
- sourceMap: true,
- outFile: './index-test.css'
- });
-
- assert.equal(JSON.parse(result.map).file, 'index-test.css');
- done();
- });
-
- it('should compile sass to css with outFile and sourceMap set to relative url', function(done) {
- var result = sass.renderSync({
- file: fixture('simple/index.scss'),
- sourceMap: './deep/nested/index.map',
- outFile: './index-test.css'
- });
-
- assert.equal(JSON.parse(result.map).file, '../../index-test.css');
- done();
- });
-
- it('should not generate source map when not requested', function(done) {
- var result = sass.renderSync({
- file: fixture('simple/index.scss'),
- sourceMap: false
- });
-
- assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
- done();
- });
-
- it('should not generate source map without outFile and no explicit path given', function(done) {
- var result = sass.renderSync({
- file: fixture('simple/index.scss'),
- sourceMap: true
- });
-
- assert.strictEqual(result.hasOwnProperty('map'), false, 'result has a map property');
- done();
- });
-
- it('should compile generate map with sourceMapRoot pass-through option', function(done) {
- var result = sass.renderSync({
- file: fixture('simple/index.scss'),
- sourceMap: './deep/nested/index.map',
- sourceMapRoot: 'http://test.com/',
- outFile: './index-test.css'
- });
-
- assert.equal(JSON.parse(result.map).sourceRoot, 'http://test.com/');
- done();
- });
-
- it('should compile sass to css with data', function(done) {
- var src = read(fixture('simple/index.scss'), 'utf8');
- var expected = read(fixture('simple/expected.css'), 'utf8').trim();
- var result = sass.renderSync({ data: src });
-
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should compile sass to css using indented syntax', function(done) {
- var src = read(fixture('indent/index.sass'), 'utf8');
- var expected = read(fixture('indent/expected.css'), 'utf8').trim();
- var result = sass.renderSync({
- data: src,
- indentedSyntax: true
- });
-
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should NOT compile empty data string', function(done) {
- assert.throws(function() {
- sass.renderSync({ data: '' });
- }, /No input specified: provide a file name or a source string to process/ );
- done();
- });
-
- it('should NOT compile without any input', function(done) {
- assert.throws(function() {
- sass.renderSync({});
- }, /No input specified: provide a file name or a source string to process/);
- done();
- });
-
- it('should throw error for bad input', function(done) {
- assert.throws(function() {
- sass.renderSync('somestring');
- });
- assert.throws(function() {
- sass.renderSync({ data: '#navbar width 80%;' });
- });
-
- done();
- });
-
- it('should compile with include paths', function(done) {
- var src = read(fixture('include-path/index.scss'), 'utf8');
- var expected = read(fixture('include-path/expected.css'), 'utf8').trim();
- var result = sass.renderSync({
- data: src,
- includePaths: [
- fixture('include-path/functions'),
- fixture('include-path/lib')
- ]
- });
-
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should add cwd to the front on include paths', function(done) {
- var src = fixture('cwd-include-path/root/index.scss');
- var expected = read(fixture('cwd-include-path/expected.css'), 'utf8').trim();
- var cwd = process.cwd();
-
- process.chdir(fixture('cwd-include-path'));
- var result = sass.renderSync({
- file: src,
- includePaths: [
- fixture('include-path/functions'),
- fixture('include-path/lib')
- ]
- });
- process.chdir(cwd);
-
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should check SASS_PATH in the specified order', function(done) {
- var src = read(fixture('sass-path/index.scss'), 'utf8');
- var expectedRed = read(fixture('sass-path/expected-red.css'), 'utf8').trim();
- var expectedOrange = read(fixture('sass-path/expected-orange.css'), 'utf8').trim();
-
- var envIncludes = [
- fixture('sass-path/red'),
- fixture('sass-path/orange')
- ];
-
- process.env.SASS_PATH = envIncludes.join(path.delimiter);
- var result = sass.renderSync({
- data: src,
- includePaths: []
- });
-
- assert.equal(result.css.toString().trim(), expectedRed.replace(/\r\n/g, '\n'));
-
- process.env.SASS_PATH = envIncludes.reverse().join(path.delimiter);
- result = sass.renderSync({
- data: src,
- includePaths: []
- });
-
- assert.equal(result.css.toString().trim(), expectedOrange.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should prefer include path over SASS_PATH', function(done) {
- var src = read(fixture('sass-path/index.scss'), 'utf8');
- var expectedRed = read(fixture('sass-path/expected-red.css'), 'utf8').trim();
- var expectedOrange = read(fixture('sass-path/expected-orange.css'), 'utf8').trim();
-
- var envIncludes = [
- fixture('sass-path/red')
- ];
- process.env.SASS_PATH = envIncludes.join(path.delimiter);
-
- var result = sass.renderSync({
- data: src,
- includePaths: []
- });
-
- assert.equal(result.css.toString().trim(), expectedRed.replace(/\r\n/g, '\n'));
-
- result = sass.renderSync({
- data: src,
- includePaths: [fixture('sass-path/orange')]
- });
-
- assert.equal(result.css.toString().trim(), expectedOrange.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should render with precision option', function(done) {
- var src = read(fixture('precision/index.scss'), 'utf8');
- var expected = read(fixture('precision/expected.css'), 'utf8').trim();
- var result = sass.renderSync({
- data: src,
- precision: 10
- });
-
- assert.equal(result.css.toString().trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- it('should contain all included files in stats when data is passed', function(done) {
- var src = read(fixture('include-files/index.scss'), 'utf8');
- var expected = [
- fixture('include-files/bar.scss').replace(/\\/g, '/'),
- fixture('include-files/foo.scss').replace(/\\/g, '/')
- ];
-
- var result = sass.renderSync({
- data: src,
- includePaths: [fixture('include-files')]
- });
-
- assert.deepEqual(result.stats.includedFiles, expected);
- done();
- });
-
- it('should render with indentWidth and indentType options', function(done) {
- var result = sass.renderSync({
- data: 'div { color: transparent; }',
- indentWidth: 7,
- indentType: 'tab'
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n\t\t\t\t\t\t\tcolor: transparent; }');
- done();
- });
-
- it('should render with linefeed option', function(done) {
- var result = sass.renderSync({
- data: 'div { color: transparent; }',
- linefeed: 'lfcr'
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n\r color: transparent; }');
- done();
- });
- });
-
- describe('.renderSync(importer)', function() {
- var src = read(fixture('include-files/index.scss'), 'utf8');
-
- it('should override imports with "data" as input and returns file and contents', function(done) {
- var result = sass.renderSync({
- data: src,
- importer: function(url, prev) {
- return {
- file: prev + url,
- contents: 'div {color: yellow;}'
- };
- }
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
-
- it('should override imports with "file" as input and returns file and contents', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev) {
- return {
- file: prev + url,
- contents: 'div {color: yellow;}'
- };
- }
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
-
- it('should override imports with "data" as input and returns file', function(done) {
- var result = sass.renderSync({
- data: src,
- importer: function(url) {
- return {
- file: path.resolve(path.dirname(fixture('include-files/index.scss')), url + (path.extname(url) ? '' : '.scss'))
- };
- }
- });
-
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
-
- it('should override imports with "file" as input and returns file', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function(url, prev) {
- return {
- file: path.resolve(path.dirname(prev), url + (path.extname(url) ? '' : '.scss'))
- };
- }
- });
-
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
-
- it('should override imports with "data" as input and returns contents', function(done) {
- var result = sass.renderSync({
- data: src,
- importer: function() {
- return {
- contents: 'div {color: yellow;}'
- };
- }
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
-
- it('should override imports with "file" as input and returns contents', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function() {
- return {
- contents: 'div {color: yellow;}'
- };
- }
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
-
-
-
- it('should fallback to default import behaviour if importer returns sass.NULL', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function() {
- return sass.NULL;
- }
- });
-
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
-
- it('should fallback to default import behaviour if importer returns null for backwards compatibility', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function() {
- return null;
- }
- });
-
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
-
- it('should fallback to default import behaviour if importer returns undefined for backwards compatibility', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function() {
- return undefined;
- }
- });
-
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
-
- it('should fallback to default import behaviour if importer returns false for backwards compatibility', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function() {
- return false;
- }
- });
-
- assert.equal(result.css.toString().trim(), '/* foo.scss */\n/* bar.scss */');
- done();
- });
-
- it('should accept arrays of importers and return respect the order', function(done) {
- var result = sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: [
- function() {
- return sass.NULL;
- },
- function() {
- return {
- contents: 'div {color: yellow;}'
- };
- }
- ]
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n color: yellow; }\n\ndiv {\n color: yellow; }');
- done();
- });
-
- it('should be able to see its options in this.options', function(done) {
- var fxt = fixture('include-files/index.scss');
- var sync = false;
- sass.renderSync({
- file: fixture('include-files/index.scss'),
- importer: function() {
- assert.equal(fxt, this.options.file);
- sync = true;
- return {};
- }
- });
- assert.equal(sync, true);
- done();
- });
-
- it('should throw user-defined error', function(done) {
- assert.throws(function() {
- sass.renderSync({
- data: src,
- importer: function() {
- return new Error('doesn\'t exist!');
- }
- });
- }, /doesn\'t exist!/);
-
- done();
- });
-
- it('should throw exception when importer returns an invalid value', function(done) {
- assert.throws(function() {
- sass.renderSync({
- data: src,
- importer: function() {
- return { contents: new Buffer('i am not a string!') };
- }
- });
- }, /returned value of `contents` must be a string/);
-
- done();
- });
- });
-
- describe('.renderSync(functions)', function() {
- it('should call custom function in sync mode', function(done) {
- var result = sass.renderSync({
- data: 'div { width: cos(0) * 50px; }',
- functions: {
- 'cos($a)': function(angle) {
- if (!(angle instanceof sass.types.Number)) {
- throw new TypeError('Unexpected type for "angle"');
- }
- return new sass.types.Number(Math.cos(angle.getValue()));
- }
- }
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n width: 50px; }');
- done();
- });
-
- it('should return a list of selectors after calling the headings custom function', function(done) {
- var result = sass.renderSync({
- data: '#{headings(2,5)} { color: #08c; }',
- functions: {
- 'headings($from: 0, $to: 6)': function(from, to) {
- var i, f = from.getValue(), t = to.getValue(),
- list = new sass.types.List(t - f + 1);
-
- for (i = f; i <= t; i++) {
- list.setValue(i - f, new sass.types.String('h' + i));
- }
-
- return list;
- }
- }
- });
-
- assert.equal(result.css.toString().trim(), 'h2, h3, h4, h5 {\n color: #08c; }');
- done();
- });
-
- it('should let custom function invoke sass types constructors without the `new` keyword', function(done) {
- var result = sass.renderSync({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return sass.types.Number(42, 'em');
- }
- }
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n color: 42em; }');
- done();
- });
-
- it('should let us register custom functions without signatures', function(done) {
- var result = sass.renderSync({
- data: 'div { color: foo(20, 22); }',
- functions: {
- foo: function(a, b) {
- return new sass.types.Number(a.getValue() + b.getValue(), 'em');
- }
- }
- });
-
- assert.equal(result.css.toString().trim(), 'div {\n color: 42em; }');
- done();
- });
-
- it('should fail when returning anything other than a sass value from a custom function', function(done) {
- assert.throws(function() {
- sass.renderSync({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return {};
- }
- }
- });
- }, /A SassValue object was expected/);
-
- done();
- });
-
- it('should properly bubble up standard JS errors thrown by custom functions', function(done) {
- assert.throws(function() {
- sass.renderSync({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- throw new RangeError('This is a test error');
- }
- }
- });
- }, /This is a test error/);
-
- done();
- });
-
- it('should properly bubble up unknown errors thrown by custom functions', function(done) {
- assert.throws(function() {
- sass.renderSync({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- throw {};
- }
- }
- });
- }, /unexpected error/);
-
- done();
- });
-
- it('should properly bubble up errors from sass value getters/setters/constructors', function(done) {
- assert.throws(function() {
- sass.renderSync({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- return sass.types.Boolean('foo');
- }
- }
- });
- }, /Expected one boolean argument/);
-
- assert.throws(function() {
- sass.renderSync({
- data: 'div { color: foo(); }',
- functions: {
- 'foo()': function() {
- var ret = new sass.types.Number(42);
- ret.setUnit(123);
- return ret;
- }
- }
- });
- }, /Supplied value should be a string/);
-
- done();
- });
-
- it('should call custom functions with correct context', function(done) {
- function assertExpected(result) {
- assert.equal(result.css.toString().trim(), 'div {\n foo1: 1;\n foo2: 2; }');
- }
- var options = {
- data: 'div { foo1: foo(); foo2: foo(); }',
- functions: {
- // foo() is stateful and will persist an incrementing counter
- 'foo()': function() {
- assert(this);
- this.fooCounter = (this.fooCounter || 0) + 1;
- return new sass.types.Number(this.fooCounter);
- }
- }
- };
- assertExpected(sass.renderSync(options));
- done();
- });
- });
-
- describe('.renderSync({stats: {}})', function() {
- var start = Date.now();
- var result = sass.renderSync({
- file: fixture('include-files/index.scss')
- });
-
- it('should provide a start timestamp', function(done) {
- assert.strictEqual(typeof result.stats.start, 'number');
- assert(result.stats.start >= start);
- done();
- });
-
- it('should provide an end timestamp', function(done) {
- assert.strictEqual(typeof result.stats.end, 'number');
- assert(result.stats.end >= result.stats.start);
- done();
- });
-
- it('should provide a duration', function(done) {
- assert.strictEqual(typeof result.stats.duration, 'number');
- assert.equal(result.stats.end - result.stats.start, result.stats.duration);
- done();
- });
-
- it('should contain the given entry file', function(done) {
- assert.equal(result.stats.entry, resolveFixture('include-files/index.scss'));
- done();
- });
-
- it('should contain an array of all included files', function(done) {
- var expected = [
- fixture('include-files/bar.scss').replace(/\\/g, '/'),
- fixture('include-files/foo.scss').replace(/\\/g, '/'),
- fixture('include-files/index.scss').replace(/\\/g, '/')
- ].sort();
- var actual = result.stats.includedFiles.sort();
-
- assert.equal(actual[0], expected[0]);
- assert.equal(actual[1], expected[1]);
- assert.equal(actual[2], expected[2]);
- done();
- });
-
- it('should contain array with the entry if there are no import statements', function(done) {
- var expected = fixture('simple/index.scss').replace(/\\/g, '/');
-
- var result = sass.renderSync({
- file: fixture('simple/index.scss')
- });
-
- assert.deepEqual(result.stats.includedFiles, [expected]);
- done();
- });
-
- it('should state `data` as entry file', function(done) {
- var result = sass.renderSync({
- data: read(fixture('simple/index.scss'), 'utf8')
- });
-
- assert.equal(result.stats.entry, 'data');
- done();
- });
-
- it('should contain an empty array as includedFiles', function(done) {
- var result = sass.renderSync({
- data: read(fixture('simple/index.scss'), 'utf8')
- });
-
- assert.deepEqual(result.stats.includedFiles, []);
- done();
- });
- });
-
- describe('.info', function() {
- var package = require('../package.json'),
- info = sass.info;
-
- it('should return a correct version info', function(done) {
- assert(info.indexOf(package.version) > 0);
- assert(info.indexOf('(Wrapper)') > 0);
- assert(info.indexOf('[JavaScript]') > 0);
- assert(info.indexOf('[NA]') < 0);
- assert(info.indexOf('(Sass Compiler)') > 0);
- assert(info.indexOf('[C/C++]') > 0);
-
- done();
- });
- });
-});
diff --git a/node_modules/node-sass/test/binding.js b/node_modules/node-sass/test/binding.js
deleted file mode 100644
index 200c780..0000000
--- a/node_modules/node-sass/test/binding.js
+++ /dev/null
@@ -1,129 +0,0 @@
-/*eslint new-cap: ["error", {"capIsNewExceptions": ["Color"]}]*/
-
-var assert = require('assert'),
- path = require('path'),
- etx = require('../lib/extensions'),
- binding = process.env.NODESASS_COV
- ? require('../lib-cov/binding')
- : require('../lib/binding');
-
-describe('binding', function() {
- describe('missing error', function() {
- it('should be useful', function() {
- process.env.SASS_BINARY_NAME = 'unknown-x64-48';
-
- assert.throws(
- function() { binding(etx); },
- function(err) {
- var re = new RegExp('Missing binding.*?\\' + path.sep + 'vendor\\' + path.sep);
- if ((err instanceof Error)) {
- return re.test(err);
- }
- }
- );
- });
-
- it('should list currently installed bindings', function() {
- assert.throws(
- function() { binding(etx); },
- function(err) {
- var etx = require('../lib/extensions');
-
- delete process.env.SASS_BINARY_NAME;
-
- if ((err instanceof Error)) {
- return err.message.indexOf(
- etx.getHumanEnvironment(etx.getBinaryName())
- ) !== -1;
- }
- }
- );
- });
- });
-
- describe('on unsupported environment', function() {
- describe('with an unsupported architecture', function() {
- beforeEach(function() {
- Object.defineProperty(process, 'arch', {
- value: 'foo',
- });
- });
-
- afterEach(function() {
- Object.defineProperty(process, 'arch', {
- value: 'x64',
- });
- });
-
- it('should error', function() {
- assert.throws(
- function() { binding(etx); },
- 'Node Sass does not yet support your current environment'
- );
- });
-
- it('should inform the user the architecture is unsupported', function() {
- assert.throws(
- function() { binding(etx); },
- 'Unsupported architecture (foo)'
- );
- });
- });
-
- describe('with an unsupported platform', function() {
- beforeEach(function() {
- Object.defineProperty(process, 'platform', {
- value: 'bar',
- });
- });
-
- afterEach(function() {
- Object.defineProperty(process, 'platform', {
- value: 'darwin',
- });
- });
-
- it('should error', function() {
- assert.throws(
- function() { binding(etx); },
- 'Node Sass does not yet support your current environment'
- );
- });
-
- it('should inform the user the platform is unsupported', function() {
- assert.throws(
- function() { binding(etx); },
- 'Unsupported platform (bar)'
- );
- });
- });
-
- describe('with an unsupported runtime', function() {
- beforeEach(function() {
- Object.defineProperty(process.versions, 'modules', {
- value: 'baz',
- });
- });
-
- afterEach(function() {
- Object.defineProperty(process.versions, 'modules', {
- value: 51,
- });
- });
-
- it('should error', function() {
- assert.throws(
- function() { binding(etx); },
- 'Node Sass does not yet support your current environment'
- );
- });
-
- it('should inform the user the runtime is unsupported', function() {
- assert.throws(
- function() { binding(etx); },
- 'Unsupported runtime (baz)'
- );
- });
- });
- });
-});
diff --git a/node_modules/node-sass/test/cli.js b/node_modules/node-sass/test/cli.js
deleted file mode 100644
index 78a8091..0000000
--- a/node_modules/node-sass/test/cli.js
+++ /dev/null
@@ -1,804 +0,0 @@
-var assert = require('assert'),
- fs = require('fs'),
- path = require('path'),
- read = require('fs').readFileSync,
- glob = require('glob'),
- rimraf = require('rimraf'),
- stream = require('stream'),
- spawn = require('cross-spawn'),
- cli = path.join(__dirname, '..', 'bin', 'node-sass'),
- fixture = path.join.bind(null, __dirname, 'fixtures');
-
-describe('cli', function() {
- // For some reason we experience random timeout failures in CI
- // due to spawn hanging/failing silently. See #1692.
- this.retries(4);
-
- describe('node-sass < in.scss', function() {
- it('should read data from stdin', function(done) {
- var src = fs.createReadStream(fixture('simple/index.scss'));
- var expected = read(fixture('simple/expected.css'), 'utf8').trim();
- var bin = spawn(cli);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- src.pipe(bin.stdin);
- });
-
- it('should compile sass using the --indented-syntax option', function(done) {
- var src = fs.createReadStream(fixture('indent/index.sass'));
- var expected = read(fixture('indent/expected.css'), 'utf8').trim();
- var bin = spawn(cli, ['--indented-syntax']);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- src.pipe(bin.stdin);
- });
-
- it('should compile with the --quiet option', function(done) {
- var src = fs.createReadStream(fixture('simple/index.scss'));
- var expected = read(fixture('simple/expected.css'), 'utf8').trim();
- var bin = spawn(cli, ['--quiet']);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- src.pipe(bin.stdin);
- });
-
- it('should compile with the --output-style option', function(done) {
- var src = fs.createReadStream(fixture('compressed/index.scss'));
- var expected = read(fixture('compressed/expected.css'), 'utf8').trim();
- var bin = spawn(cli, ['--output-style', 'compressed']);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- src.pipe(bin.stdin);
- });
-
- it('should compile with the --source-comments option', function(done) {
- var src = fs.createReadStream(fixture('source-comments/index.scss'));
- var expected = read(fixture('source-comments/expected.css'), 'utf8').trim();
- var bin = spawn(cli, ['--source-comments']);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
-
- src.pipe(bin.stdin);
- });
-
- it('should render with indentWidth and indentType options', function(done) {
- var src = new stream.Readable();
- var bin = spawn(cli, ['--indent-width', 7, '--indent-type', 'tab']);
-
- src._read = function() { };
- src.push('div { color: transparent; }');
- src.push(null);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), 'div {\n\t\t\t\t\t\t\tcolor: transparent; }');
- done();
- });
-
- src.pipe(bin.stdin);
- });
-
- it('should render with linefeed option', function(done) {
- var src = new stream.Readable();
- var bin = spawn(cli, ['--linefeed', 'lfcr']);
-
- src._read = function() { };
- src.push('div { color: transparent; }');
- src.push(null);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), 'div {\n\r color: transparent; }');
- done();
- });
-
- src.pipe(bin.stdin);
- });
- });
-
- describe('node-sass in.scss', function() {
- it('should compile a scss file', function(done) {
- process.chdir(fixture('simple'));
-
- var src = fixture('simple/index.scss');
- var dest = fixture('simple/index.css');
- var bin = spawn(cli, [src, dest]);
-
- bin.once('close', function() {
- assert(fs.existsSync(dest));
- fs.unlinkSync(dest);
- process.chdir(__dirname);
- done();
- });
- });
-
- it('should compile a scss file to custom destination', function(done) {
- process.chdir(fixture('simple'));
-
- var src = fixture('simple/index.scss');
- var dest = fixture('simple/index-custom.css');
- var bin = spawn(cli, [src, dest]);
-
- bin.once('close', function() {
- assert(fs.existsSync(dest));
- fs.unlinkSync(dest);
- process.chdir(__dirname);
- done();
- });
- });
-
- it('should compile with the --include-path option', function(done) {
- var includePaths = [
- '--include-path', fixture('include-path/functions'),
- '--include-path', fixture('include-path/lib')
- ];
-
- var src = fixture('include-path/index.scss');
- var expected = read(fixture('include-path/expected.css'), 'utf8').trim();
- var bin = spawn(cli, [src].concat(includePaths));
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.equal(data.trim(), expected.replace(/\r\n/g, '\n'));
- done();
- });
- });
-
- it('should compile silently using the --quiet option', function(done) {
- process.chdir(fixture('simple'));
-
- var src = fixture('simple/index.scss');
- var dest = fixture('simple/index.css');
- var bin = spawn(cli, [src, dest, '--quiet']);
- var didEmit = false;
-
- bin.stderr.once('data', function() {
- didEmit = true;
- });
-
- bin.once('close', function() {
- assert.equal(didEmit, false);
- fs.unlinkSync(dest);
- process.chdir(__dirname);
- done();
- });
- });
-
- it('should still report errors with the --quiet option', function(done) {
- process.chdir(fixture('invalid'));
-
- var src = fixture('invalid/index.scss');
- var dest = fixture('invalid/index.css');
- var bin = spawn(cli, [src, dest, '--quiet']);
- var didEmit = false;
-
- bin.stderr.once('data', function() {
- didEmit = true;
- });
-
- bin.once('close', function() {
- assert.equal(didEmit, true);
- process.chdir(__dirname);
- done();
- });
- });
-
- it('should not exit with the --watch option', function(done) {
- var src = fixture('simple/index.scss');
- var bin = spawn(cli, [src, '--watch']);
- var exited;
-
- bin.once('close', function() {
- exited = true;
- });
-
- setTimeout(function() {
- if (exited) {
- throw new Error('Watch ended too early!');
- } else {
- bin.kill();
- done();
- }
- }, 100);
- });
-
- it.skip('should emit `warn` on file change when using --watch option', function(done) {
- var src = fixture('simple/tmp.scss');
-
- fs.writeFileSync(src, '');
-
- var bin = spawn(cli, ['--watch', src]);
-
- bin.stderr.setEncoding('utf8');
- bin.stderr.once('data', function(data) {
- assert.strictEqual(data.trim(), '=> changed: ' + src);
- fs.unlinkSync(src);
- bin.kill();
- done();
- });
-
- setTimeout(function() {
- fs.appendFileSync(src, 'body {}');
- }, 500);
- });
-
- it.skip('should emit nothing on file change when using --watch and --quiet options', function(done) {
- var src = fixture('simple/tmp.scss');
- var didEmit = false;
- fs.writeFileSync(src, '');
-
- var bin = spawn(cli, ['--watch', '--quiet', src]);
-
- bin.stderr.setEncoding('utf8');
- bin.stderr.once('data', function() {
- didEmit = true;
- });
-
- setTimeout(function() {
- fs.appendFileSync(src, 'body {}');
- setTimeout(function() {
- assert.equal(didEmit, false);
- bin.kill();
- done();
- fs.unlinkSync(src);
- }, 200);
- }, 500);
- });
-
- it.skip('should render all watched files', function(done) {
- var src = fixture('simple/bar.scss');
-
- fs.writeFileSync(src, '');
-
- var bin = spawn(cli, [
- '--output-style', 'compressed',
- '--watch', src
- ]);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.strictEqual(data.trim(), 'body{background:white}');
- fs.unlinkSync(src);
- bin.kill();
- done();
- });
-
- setTimeout(function() {
- fs.appendFileSync(src, 'body{background:white}');
- }, 500);
- });
-
- it.skip('should watch the full scss dep tree for a single file (scss)', function(done) {
- var src = fixture('watching/index.scss');
- var foo = fixture('watching/white.scss');
-
- fs.writeFileSync(foo, '');
-
- var bin = spawn(cli, [
- '--output-style', 'compressed',
- '--watch', src
- ]);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.strictEqual(data.trim(), 'body{background:blue}');
- bin.kill();
- done();
- });
-
- setTimeout(function() {
- fs.appendFileSync(foo, 'body{background:blue}\n');
- }, 500);
- });
-
- it.skip('should watch the full sass dep tree for a single file (sass)', function(done) {
- var src = fixture('watching/index.sass');
- var foo = fixture('watching/bar.sass');
-
- fs.writeFileSync(foo, '');
-
- var bin = spawn(cli, [
- '--output-style', 'compressed',
- '--watch', src
- ]);
-
- bin.stdout.setEncoding('utf8');
- bin.stdout.once('data', function(data) {
- assert.strictEqual(data.trim(), 'body{background:red}');
- bin.kill();
- done();
- });
-
- setTimeout(function() {
- fs.appendFileSync(foo, 'body\n\tbackground: red\n');
- }, 500);
- });
- });
-
- describe('node-sass --output directory', function() {
- it.skip('should watch whole directory', function(done) {
- var destDir = fixture('watching-css-out-01/');
- var srcDir = fixture('watching-dir-01/');
- var srcFile = path.join(srcDir, 'index.scss');
-
- fs.writeFileSync(srcFile, '');
-
- var bin = spawn(cli, [
- '--output-style', 'compressed',
- '--output', destDir,
- '--watch', srcDir
- ]);
-
- setTimeout(function() {
- fs.appendFileSync(srcFile, 'a {color:green;}\n');
- setTimeout(function() {
- bin.kill();
- var files = fs.readdirSync(destDir);
- assert.deepEqual(files, ['index.css']);
- rimraf(destDir, done);
- }, 200);
- }, 500);
- });
-
- it.skip('should compile all changed files in watched directory', function(done) {
- var destDir = fixture('watching-css-out-02/');
- var srcDir = fixture('watching-dir-02/');
- var srcFile = path.join(srcDir, 'foo.scss');
-
- fs.writeFileSync(srcFile, '');
-
- var bin = spawn(cli, [
- '--output-style', 'compressed',
- '--output', destDir,
- '--watch', srcDir
- ]);
-
- setTimeout(function () {
- fs.appendFileSync(srcFile, 'body{background:white}\n');
- setTimeout(function () {
- bin.kill();
- var files = fs.readdirSync(destDir);
- assert.deepEqual(files, ['foo.css', 'index.css']);
- rimraf(destDir, done);
- }, 200);
- }, 500);
- });
- });
-
- describe('node-sass in.scss --output out.css', function() {
- it('should compile a scss file to build.css', function(done) {
- var src = fixture('simple/index.scss');
- var dest = fixture('simple/index.css');
- var bin = spawn(cli, [src, '--output', path.dirname(dest)]);
-
- bin.once('close', function() {
- assert(fs.existsSync(dest));
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should compile with the --source-map option', function(done) {
- var src = fixture('source-map/index.scss');
- var destCss = fixture('source-map/index.css');
- var destMap = fixture('source-map/index.map');
- var expectedCss = read(fixture('source-map/expected.css'), 'utf8').trim().replace(/\r\n/g, '\n');
- var expectedMap = read(fixture('source-map/expected.map'), 'utf8').trim().replace(/\r\n/g, '\n');
- var bin = spawn(cli, [src, '--output', path.dirname(destCss), '--source-map', destMap]);
-
- bin.once('close', function() {
- assert.equal(read(destCss, 'utf8').trim(), expectedCss);
- assert.equal(read(destMap, 'utf8').trim(), expectedMap);
- fs.unlinkSync(destCss);
- fs.unlinkSync(destMap);
- done();
- });
- });
-
- it('should omit sourceMappingURL if --omit-source-map-url flag is used', function(done) {
- var src = fixture('source-map/index.scss');
- var dest = fixture('source-map/index.css');
- var map = fixture('source-map/index.map');
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--source-map', map, '--omit-source-map-url'
- ]);
-
- bin.once('close', function() {
- assert.strictEqual(read(dest, 'utf8').indexOf('sourceMappingURL'), -1);
- assert(fs.existsSync(map));
- fs.unlinkSync(map);
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should compile with the --source-root option', function(done) {
- var src = fixture('source-map/index.scss');
- var destCss = fixture('source-map/index.css');
- var destMap = fixture('source-map/index.map');
- var expectedCss = read(fixture('source-map/expected.css'), 'utf8').trim().replace(/\r\n/g, '\n');
- var expectedUrl = 'http://test/';
- var bin = spawn(cli, [
- src, '--output', path.dirname(destCss),
- '--source-map-root', expectedUrl,
- '--source-map', destMap
- ]);
-
- bin.once('close', function() {
- assert.equal(read(destCss, 'utf8').trim(), expectedCss);
- assert.equal(JSON.parse(read(destMap, 'utf8')).sourceRoot, expectedUrl);
- fs.unlinkSync(destCss);
- fs.unlinkSync(destMap);
- done();
- });
- });
-
- it('should compile with the --source-map-embed option and no outfile', function(done) {
- var src = fixture('source-map-embed/index.scss');
- var expectedCss = read(fixture('source-map-embed/expected.css'), 'utf8').trim().replace(/\r\n/g, '\n');
- var result = '';
- var bin = spawn(cli, [
- src,
- '--source-map-embed',
- '--source-map', 'true'
- ]);
-
- bin.stdout.on('data', function(data) {
- result += data;
- });
-
- bin.once('close', function() {
- assert.equal(result.trim().replace(/\r\n/g, '\n'), expectedCss);
- done();
- });
- });
- });
-
- describe('node-sass sass/ --output css/', function() {
- it('should create the output directory', function(done) {
- var src = fixture('input-directory/sass');
- var dest = fixture('input-directory/css');
- var bin = spawn(cli, [src, '--output', dest]);
-
- bin.once('close', function() {
- assert(fs.existsSync(dest));
- rimraf.sync(dest);
- done();
- });
- });
-
- it('should compile all files in the folder', function(done) {
- var src = fixture('input-directory/sass');
- var dest = fixture('input-directory/css');
- var bin = spawn(cli, [src, '--output', dest]);
-
- bin.once('close', function() {
- var files = fs.readdirSync(dest).sort();
- assert.deepEqual(files, ['one.css', 'two.css', 'nested'].sort());
- var nestedFiles = fs.readdirSync(path.join(dest, 'nested'));
- assert.deepEqual(nestedFiles, ['three.css']);
- rimraf.sync(dest);
- done();
- });
- });
-
- it('should compile with --source-map set to directory', function(done) {
- var src = fixture('input-directory/sass');
- var dest = fixture('input-directory/css');
- var destMap = fixture('input-directory/map');
- var bin = spawn(cli, [src, '--output', dest, '--source-map', destMap]);
-
- bin.once('close', function() {
- var map = JSON.parse(read(fixture('input-directory/map/nested/three.css.map'), 'utf8'));
-
- assert.equal(map.file, '../../css/nested/three.css');
- rimraf.sync(dest);
- rimraf.sync(destMap);
- done();
- });
- });
-
- it('should skip files with an underscore', function(done) {
- var src = fixture('input-directory/sass');
- var dest = fixture('input-directory/css');
- var bin = spawn(cli, [src, '--output', dest]);
-
- bin.once('close', function() {
- var files = fs.readdirSync(dest);
- assert.equal(files.indexOf('_skipped.css'), -1);
- rimraf.sync(dest);
- done();
- });
- });
-
- it('should ignore nested files if --recursive false', function(done) {
- var src = fixture('input-directory/sass');
- var dest = fixture('input-directory/css');
- var bin = spawn(cli, [
- src, '--output', dest,
- '--recursive', false
- ]);
-
- bin.once('close', function() {
- var files = fs.readdirSync(dest);
- assert.deepEqual(files, ['one.css', 'two.css']);
- rimraf.sync(dest);
- done();
- });
- });
-
- it('should error if no output directory is provided', function(done) {
- var src = fixture('input-directory/sass');
- var bin = spawn(cli, [src]);
-
- bin.once('close', function(code) {
- assert.notStrictEqual(code, 0);
- assert.strictEqual(glob.sync(fixture('input-directory/**/*.css')).length, 0);
- done();
- });
- });
-
- it('should error if output directory is not a directory', function(done) {
- var src = fixture('input-directory/sass');
- var dest = fixture('input-directory/sass/one.scss');
- var bin = spawn(cli, [src, '--output', dest]);
-
- bin.once('close', function(code) {
- assert.notStrictEqual(code, 0);
- assert.equal(glob.sync(fixture('input-directory/**/*.css')).length, 0);
- done();
- });
- });
-
- it('should not error if output directory is a symlink', function(done) {
- var outputDir = fixture('input-directory/css');
- var src = fixture('input-directory/sass');
- var symlink = fixture('symlinked-css');
- fs.mkdirSync(outputDir);
- fs.symlinkSync(outputDir, symlink);
- var bin = spawn(cli, [src, '--output', symlink]);
-
- bin.once('close', function() {
- var files = fs.readdirSync(outputDir).sort();
- assert.deepEqual(files, ['one.css', 'two.css', 'nested'].sort());
- var nestedFiles = fs.readdirSync(path.join(outputDir, 'nested'));
- assert.deepEqual(nestedFiles, ['three.css']);
- rimraf.sync(outputDir);
- fs.unlinkSync(symlink);
- done();
- });
- });
- });
-
- describe('node-sass in.scss --output path/to/file/out.css', function() {
- it('should create the output directory', function(done) {
- var src = fixture('output-directory/index.scss');
- var dest = fixture('output-directory/path/to/file/index.css');
- var bin = spawn(cli, [src, '--output', path.dirname(dest)]);
-
- bin.once('close', function() {
- assert(fs.existsSync(path.dirname(dest)));
- fs.unlinkSync(dest);
- fs.rmdirSync(path.dirname(dest));
- dest = path.dirname(dest);
- fs.rmdirSync(path.dirname(dest));
- dest = path.dirname(dest);
- fs.rmdirSync(path.dirname(dest));
- done();
- });
- });
-
- });
-
- describe('node-sass --follow --output output-dir input-dir', function() {
- it('should compile with the --follow option', function(done) {
- var src = fixture('follow/input-dir');
- var dest = fixture('follow/output-dir');
-
- fs.mkdirSync(src);
- fs.symlinkSync(path.join(path.dirname(src), 'foo'), path.join(src, 'foo'), 'dir');
-
- var bin = spawn(cli, [src, '--follow', '--output', dest]);
-
- bin.once('close', function() {
- var expected = path.join(dest, 'foo/bar/index.css');
- fs.unlinkSync(path.join(src, 'foo'));
- fs.rmdirSync(src);
- assert(fs.existsSync(expected));
- fs.unlinkSync(expected);
- expected = path.dirname(expected);
- fs.rmdirSync(expected);
- expected = path.dirname(expected);
- fs.rmdirSync(expected);
- fs.rmdirSync(dest);
- done();
- });
- });
- });
-
- describe('importer', function() {
- var dest = fixture('include-files/index.css');
- var src = fixture('include-files/index.scss');
- var expected = read(fixture('include-files/expected-importer.css'), 'utf8').trim().replace(/\r\n/g, '\n');
-
- it('should override imports and fire callback with file and contents', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_importer_file_and_data_cb.js')
- ]);
-
- bin.once('close', function() {
- assert.equal(read(dest, 'utf8').trim(), expected);
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should override imports and fire callback with file', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_importer_file_cb.js')
- ]);
-
- bin.once('close', function() {
- if (fs.existsSync(dest)) {
- assert.equal(read(dest, 'utf8').trim(), '');
- fs.unlinkSync(dest);
- }
-
- done();
- });
- });
-
- it('should override imports and fire callback with data', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_importer_data_cb.js')
- ]);
-
- bin.once('close', function() {
- assert.equal(read(dest, 'utf8').trim(), expected);
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should override imports and return file and contents', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_importer_file_and_data.js')
- ]);
-
- bin.once('close', function() {
- assert.equal(read(dest, 'utf8').trim(), expected);
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should override imports and return file', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_importer_file.js')
- ]);
-
- bin.once('close', function() {
- if (fs.existsSync(dest)) {
- assert.equal(read(dest, 'utf8').trim(), '');
- fs.unlinkSync(dest);
- }
-
- done();
- });
- });
-
- it('should override imports and return data', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_importer_data.js')
- ]);
-
- bin.once('close', function() {
- assert.equal(read(dest, 'utf8').trim(), expected);
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should accept arrays of importers and return respect the order', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_arrays_of_importers.js')
- ]);
-
- bin.once('close', function() {
- assert.equal(read(dest, 'utf8').trim(), expected);
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should return error for invalid importer file path', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('non/existing/path')
- ]);
-
- bin.once('close', function(code) {
- assert.notStrictEqual(code, 0);
- done();
- });
- });
-
- it('should reflect user-defined Error', function(done) {
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--importer', fixture('extras/my_custom_importer_error.js')
- ]);
-
- bin.stderr.once('data', function(code) {
- assert.equal(JSON.parse(code).message, 'doesn\'t exist!');
- done();
- });
- });
- });
-
- describe('functions', function() {
- it('should let custom functions call setter methods on wrapped sass values (number)', function(done) {
- var dest = fixture('custom-functions/setter.css');
- var src = fixture('custom-functions/setter.scss');
- var expected = read(fixture('custom-functions/setter-expected.css'), 'utf8').trim().replace(/\r\n/g, '\n');
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--functions', fixture('extras/my_custom_functions_setter.js')
- ]);
-
- bin.once('close', function() {
- assert.equal(read(dest, 'utf8').trim(), expected);
- fs.unlinkSync(dest);
- done();
- });
- });
-
- it('should properly convert strings when calling custom functions', function(done) {
- var dest = fixture('custom-functions/string-conversion.css');
- var src = fixture('custom-functions/string-conversion.scss');
- var expected = read(fixture('custom-functions/string-conversion-expected.css'), 'utf8').trim().replace(/\r\n/g, '\n');
- var bin = spawn(cli, [
- src, '--output', path.dirname(dest),
- '--functions', fixture('extras/my_custom_functions_string_conversion.js')
- ]);
-
- bin.once('close', function() {
- assert.equal(read(dest, 'utf8').trim(), expected);
- fs.unlinkSync(dest);
- done();
- });
- });
- });
-});
diff --git a/node_modules/node-sass/test/downloadoptions.js b/node_modules/node-sass/test/downloadoptions.js
deleted file mode 100644
index 18daeb9..0000000
--- a/node_modules/node-sass/test/downloadoptions.js
+++ /dev/null
@@ -1,74 +0,0 @@
-var assert = require('assert'),
- ua = require('../scripts/util/useragent'),
- opts = require('../scripts/util/downloadoptions');
-
-
-describe('util', function() {
- describe('downloadoptions', function() {
- describe('without a proxy', function() {
- it('should look as we expect', function() {
- var expected = {
- rejectUnauthorized: false,
- timeout: 60000,
- headers: {
- 'User-Agent': ua(),
- },
- encoding: null,
- };
-
- assert.deepEqual(opts(), expected);
- });
- });
-
- describe('with an npm config proxy', function() {
- var proxy = 'http://test.proxy:1234';
-
- before(function() {
- process.env.npm_config_proxy = proxy;
- });
-
- after(function() {
- delete process.env.npm_config_proxy;
- });
-
- it('should look as we expect', function() {
- var expected = {
- rejectUnauthorized: false,
- proxy: proxy,
- timeout: 60000,
- headers: {
- 'User-Agent': ua(),
- },
- encoding: null,
- };
-
- assert.deepEqual(opts(), expected);
- });
- });
-
- describe('with an env proxy proxy', function() {
- var proxy = 'http://test.proxy:1234';
-
- before(function() {
- process.env.HTTP_PROXY = proxy;
- });
-
- after(function() {
- delete process.env.HTTP_PROXY;
- });
-
- it('should look as we expect', function() {
- var expected = {
- rejectUnauthorized: false,
- timeout: 60000,
- headers: {
- 'User-Agent': ua(),
- },
- encoding: null,
- };
-
- assert.deepEqual(opts(), expected);
- });
- });
- });
-});
diff --git a/node_modules/node-sass/test/errors.js b/node_modules/node-sass/test/errors.js
deleted file mode 100644
index 4570c19..0000000
--- a/node_modules/node-sass/test/errors.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var assert = require('assert'),
- path = require('path'),
- errors = require('../lib/errors');
-
-describe('binary errors', function() {
-
- function getCurrentPlatform() {
- if (process.platform === 'win32') {
- return 'Windows';
- } else if (process.platform === 'darwin') {
- return 'OS X';
- }
- return '';
- }
-
- function getCurrentArchitecture() {
- if (process.arch === 'x86' || process.arch === 'ia32') {
- return '32-bit';
- } else if (process.arch === 'x64') {
- return '64-bit';
- }
- return '';
- }
-
- function getCurrentEnvironment() {
- return getCurrentPlatform() + ' ' + getCurrentArchitecture();
- }
-
- describe('for an unsupported environment', function() {
- it('identifies the current environment', function() {
- var message = errors.unsupportedEnvironment();
- assert.ok(message.indexOf(getCurrentEnvironment()) !== -1);
- });
-
- it('links to supported environment documentation', function() {
- var message = errors.unsupportedEnvironment();
- assert.ok(message.indexOf('https://github.com/sass/node-sass/releases/tag/v') !== -1);
- });
- });
-
- describe('for an missing binary', function() {
- it('identifies the current environment', function() {
- var message = errors.missingBinary();
- assert.ok(message.indexOf(getCurrentEnvironment()) !== -1);
- });
-
- it('documents the expected binary location', function() {
- var message = errors.missingBinary();
- assert.ok(message.indexOf(path.sep + 'vendor' + path.sep) !== -1);
- });
- });
-
-});
diff --git a/node_modules/node-sass/test/fixtures/compressed/expected.css b/node_modules/node-sass/test/fixtures/compressed/expected.css
deleted file mode 100644
index 197319f..0000000
--- a/node_modules/node-sass/test/fixtures/compressed/expected.css
+++ /dev/null
@@ -1 +0,0 @@
-#navbar{width:80%;height:23px}#navbar ul{list-style-type:none}#navbar li{float:left}#navbar li a{font-weight:bold}
diff --git a/node_modules/node-sass/test/fixtures/compressed/index.scss b/node_modules/node-sass/test/fixtures/compressed/index.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/compressed/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/custom-functions/setter-expected.css b/node_modules/node-sass/test/fixtures/custom-functions/setter-expected.css
deleted file mode 100644
index 9b67ea9..0000000
--- a/node_modules/node-sass/test/fixtures/custom-functions/setter-expected.css
+++ /dev/null
@@ -1,3 +0,0 @@
-div {
- width: 42rem;
- height: 84px; }
diff --git a/node_modules/node-sass/test/fixtures/custom-functions/setter.scss b/node_modules/node-sass/test/fixtures/custom-functions/setter.scss
deleted file mode 100644
index fbc6116..0000000
--- a/node_modules/node-sass/test/fixtures/custom-functions/setter.scss
+++ /dev/null
@@ -1 +0,0 @@
-div { width: foo(42px); height: bar(42px); }
diff --git a/node_modules/node-sass/test/fixtures/custom-functions/string-conversion-expected.css b/node_modules/node-sass/test/fixtures/custom-functions/string-conversion-expected.css
deleted file mode 100644
index 741d2cb..0000000
--- a/node_modules/node-sass/test/fixtures/custom-functions/string-conversion-expected.css
+++ /dev/null
@@ -1,2 +0,0 @@
-div {
- color: "barbar"; }
diff --git a/node_modules/node-sass/test/fixtures/custom-functions/string-conversion.scss b/node_modules/node-sass/test/fixtures/custom-functions/string-conversion.scss
deleted file mode 100644
index 4e6403f..0000000
--- a/node_modules/node-sass/test/fixtures/custom-functions/string-conversion.scss
+++ /dev/null
@@ -1 +0,0 @@
-div { color: foo("bar"); }
diff --git a/node_modules/node-sass/test/fixtures/cwd-include-path/expected.css b/node_modules/node-sass/test/fixtures/cwd-include-path/expected.css
deleted file mode 100644
index 1cfd35a..0000000
--- a/node_modules/node-sass/test/fixtures/cwd-include-path/expected.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.outside {
- color: red; }
diff --git a/node_modules/node-sass/test/fixtures/cwd-include-path/outside.scss b/node_modules/node-sass/test/fixtures/cwd-include-path/outside.scss
deleted file mode 100644
index 9568623..0000000
--- a/node_modules/node-sass/test/fixtures/cwd-include-path/outside.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.outside {
- color: red;
-}
diff --git a/node_modules/node-sass/test/fixtures/cwd-include-path/root/index.scss b/node_modules/node-sass/test/fixtures/cwd-include-path/root/index.scss
deleted file mode 100644
index 0279f78..0000000
--- a/node_modules/node-sass/test/fixtures/cwd-include-path/root/index.scss
+++ /dev/null
@@ -1 +0,0 @@
-@import 'outside';
diff --git a/node_modules/node-sass/test/fixtures/depth-first/_common.scss b/node_modules/node-sass/test/fixtures/depth-first/_common.scss
deleted file mode 100644
index 7b30f5e..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/_common.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@import "vars";
-@import "struct";
-
-.myvars {
- content: quote($import_counter);
-}
diff --git a/node_modules/node-sass/test/fixtures/depth-first/_struct.scss b/node_modules/node-sass/test/fixtures/depth-first/_struct.scss
deleted file mode 100644
index f3152b7..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/_struct.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.common-struct {
- content: "common-struct";
-}
diff --git a/node_modules/node-sass/test/fixtures/depth-first/_vars.scss b/node_modules/node-sass/test/fixtures/depth-first/_vars.scss
deleted file mode 100644
index da5a7f2..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/_vars.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-$import_counter: $import_counter + 1;
-
-.common-vars {
- content: "common-vars";
-}
diff --git a/node_modules/node-sass/test/fixtures/depth-first/a.scss b/node_modules/node-sass/test/fixtures/depth-first/a.scss
deleted file mode 100644
index 6c815de..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/a.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-@import "_common";
-@import "a1";
-
-.a2 {
- content: "a2";
-}
-
diff --git a/node_modules/node-sass/test/fixtures/depth-first/a1.scss b/node_modules/node-sass/test/fixtures/depth-first/a1.scss
deleted file mode 100644
index 272671b..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/a1.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.a1 {
- content: "a1";
-}
diff --git a/node_modules/node-sass/test/fixtures/depth-first/b.scss b/node_modules/node-sass/test/fixtures/depth-first/b.scss
deleted file mode 100644
index 2f21d7d..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/b.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@import "b1";
-
-.b2 {
- content: "b2";
-}
diff --git a/node_modules/node-sass/test/fixtures/depth-first/b1.scss b/node_modules/node-sass/test/fixtures/depth-first/b1.scss
deleted file mode 100644
index ec7b88d..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/b1.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.b1 {
- content: "b1";
-}
diff --git a/node_modules/node-sass/test/fixtures/depth-first/expected.css b/node_modules/node-sass/test/fixtures/depth-first/expected.css
deleted file mode 100644
index f83c268..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/expected.css
+++ /dev/null
@@ -1,32 +0,0 @@
-.common-vars {
- content: "common-vars"; }
-
-.common-struct {
- content: "common-struct"; }
-
-.myvars {
- content: "1"; }
-
-.a1 {
- content: "a1"; }
-
-.a2 {
- content: "a2"; }
-
-.common-vars {
- content: "common-vars"; }
-
-.common-struct {
- content: "common-struct"; }
-
-.myvars {
- content: "2"; }
-
-.b1 {
- content: "b1"; }
-
-.b2 {
- content: "b2"; }
-
-#the-last {
- content: "LAST"; } \ No newline at end of file
diff --git a/node_modules/node-sass/test/fixtures/depth-first/index.scss b/node_modules/node-sass/test/fixtures/depth-first/index.scss
deleted file mode 100644
index 09b0e76..0000000
--- a/node_modules/node-sass/test/fixtures/depth-first/index.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-$import_counter: 0;
-@import "a";
-@import "common";
-@import "b";
-
-#the-last {
- content: "LAST";
-}
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_arrays_of_importers.js b/node_modules/node-sass/test/fixtures/extras/my_custom_arrays_of_importers.js
deleted file mode 100644
index 38c1c08..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_arrays_of_importers.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var sass = require('../../..');
-
-module.exports = [
- function() {
- return sass.NULL;
- },
- function() {
- return {
- contents: 'div {color: yellow;}'
- };
- }
-];
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_functions_setter.js b/node_modules/node-sass/test/fixtures/extras/my_custom_functions_setter.js
deleted file mode 100644
index 9ec8c24..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_functions_setter.js
+++ /dev/null
@@ -1,10 +0,0 @@
-module.exports = {
- 'foo($a)': function(size) {
- size.setUnit('rem');
- return size;
- },
- 'bar($a)': function(size) {
- size.setValue(size.getValue() * 2);
- return size;
- }
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_functions_string_conversion.js b/node_modules/node-sass/test/fixtures/extras/my_custom_functions_string_conversion.js
deleted file mode 100644
index 3aa4eb8..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_functions_string_conversion.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var sass = require('../../..');
-
-module.exports = {
- 'foo($a)': function(str) {
- str = str.getValue().replace(/['"]/g, '');
- return new sass.types.String('"' + str + str + '"');
- }
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_data.js b/node_modules/node-sass/test/fixtures/extras/my_custom_importer_data.js
deleted file mode 100644
index 23f272a..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_data.js
+++ /dev/null
@@ -1,5 +0,0 @@
-module.exports = function() {
- return {
- contents: 'div {color: yellow;}'
- };
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_data_cb.js b/node_modules/node-sass/test/fixtures/extras/my_custom_importer_data_cb.js
deleted file mode 100644
index d587304..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_data_cb.js
+++ /dev/null
@@ -1,5 +0,0 @@
-module.exports = function(file, prev, done) {
- done({
- contents: 'div {color: yellow;}'
- });
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_error.js b/node_modules/node-sass/test/fixtures/extras/my_custom_importer_error.js
deleted file mode 100644
index eb1c959..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_error.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = function() {
- return new Error('doesn\'t exist!');
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file.js b/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file.js
deleted file mode 100644
index ad7b17d..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var path = require('path');
-
-module.exports = function(file) {
- return {
- file: path.resolve(path.join(process.cwd(), 'test/fixtures/include-files/', file + (path.extname(file) ? '' : '.scss')))
- };
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data.js b/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data.js
deleted file mode 100644
index e29f042..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = function() {
- return {
- file: '/some/random/path/file.scss',
- contents: 'div {color: yellow;}'
- };
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data_cb.js b/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data_cb.js
deleted file mode 100644
index e24f05e..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_and_data_cb.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = function(file, prev, done) {
- done({
- file: '/some/random/path/file.scss',
- contents: 'div {color: yellow;}'
- });
-};
diff --git a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_cb.js b/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_cb.js
deleted file mode 100644
index dc5b8bd..0000000
--- a/node_modules/node-sass/test/fixtures/extras/my_custom_importer_file_cb.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var path = require('path');
-
-module.exports = function(file, /* jshint unused:false */ prev, done) {
- done({
- file: path.resolve(path.join(process.cwd(), 'test/fixtures/include-files/', file + (path.extname(file) ? '' : '.scss')))
- });
-};
diff --git a/node_modules/node-sass/test/fixtures/follow/foo/bar/index.scss b/node_modules/node-sass/test/fixtures/follow/foo/bar/index.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/follow/foo/bar/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/include-files/bar.scss b/node_modules/node-sass/test/fixtures/include-files/bar.scss
deleted file mode 100644
index f377712..0000000
--- a/node_modules/node-sass/test/fixtures/include-files/bar.scss
+++ /dev/null
@@ -1 +0,0 @@
-/* bar.scss */
diff --git a/node_modules/node-sass/test/fixtures/include-files/chained-imports-with-custom-importer.scss b/node_modules/node-sass/test/fixtures/include-files/chained-imports-with-custom-importer.scss
deleted file mode 100644
index 8dbe665..0000000
--- a/node_modules/node-sass/test/fixtures/include-files/chained-imports-with-custom-importer.scss
+++ /dev/null
@@ -1 +0,0 @@
-@import "file-not-processed-by-loader", "file-processed-by-loader";
diff --git a/node_modules/node-sass/test/fixtures/include-files/expected-importer.css b/node_modules/node-sass/test/fixtures/include-files/expected-importer.css
deleted file mode 100644
index 1925a60..0000000
--- a/node_modules/node-sass/test/fixtures/include-files/expected-importer.css
+++ /dev/null
@@ -1,5 +0,0 @@
-div {
- color: yellow; }
-
-div {
- color: yellow; }
diff --git a/node_modules/node-sass/test/fixtures/include-files/file-not-processed-by-loader.scss b/node_modules/node-sass/test/fixtures/include-files/file-not-processed-by-loader.scss
deleted file mode 100644
index 47f8c1d..0000000
--- a/node_modules/node-sass/test/fixtures/include-files/file-not-processed-by-loader.scss
+++ /dev/null
@@ -1 +0,0 @@
-$variable-defined-by-file-not-processed-by-loader: 'red';
diff --git a/node_modules/node-sass/test/fixtures/include-files/file-processed-by-loader.scss b/node_modules/node-sass/test/fixtures/include-files/file-processed-by-loader.scss
deleted file mode 100644
index 4c79efe..0000000
--- a/node_modules/node-sass/test/fixtures/include-files/file-processed-by-loader.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- color: $variable-defined-by-file-not-processed-by-loader;
-}
diff --git a/node_modules/node-sass/test/fixtures/include-files/foo.scss b/node_modules/node-sass/test/fixtures/include-files/foo.scss
deleted file mode 100644
index 9834f54..0000000
--- a/node_modules/node-sass/test/fixtures/include-files/foo.scss
+++ /dev/null
@@ -1 +0,0 @@
-/* foo.scss */
diff --git a/node_modules/node-sass/test/fixtures/include-files/index.scss b/node_modules/node-sass/test/fixtures/include-files/index.scss
deleted file mode 100644
index 01bdbe2..0000000
--- a/node_modules/node-sass/test/fixtures/include-files/index.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-@import 'foo';
-@import 'bar';
diff --git a/node_modules/node-sass/test/fixtures/include-path/expected.css b/node_modules/node-sass/test/fixtures/include-path/expected.css
deleted file mode 100644
index 1f0ae60..0000000
--- a/node_modules/node-sass/test/fixtures/include-path/expected.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- background: red;
- color: #0000fe; }
diff --git a/node_modules/node-sass/test/fixtures/include-path/functions/colorBlue.scss b/node_modules/node-sass/test/fixtures/include-path/functions/colorBlue.scss
deleted file mode 100644
index 4fa618c..0000000
--- a/node_modules/node-sass/test/fixtures/include-path/functions/colorBlue.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-@function colorBlue() {
- @return #0000fe;
-}
diff --git a/node_modules/node-sass/test/fixtures/include-path/index.scss b/node_modules/node-sass/test/fixtures/include-path/index.scss
deleted file mode 100644
index 8b0f5e8..0000000
--- a/node_modules/node-sass/test/fixtures/include-path/index.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-@import 'vars';
-@import 'colorBlue';
-
-body {
- background: $color;
- color: colorBlue();
-}
diff --git a/node_modules/node-sass/test/fixtures/include-path/lib/vars.scss b/node_modules/node-sass/test/fixtures/include-path/lib/vars.scss
deleted file mode 100644
index 4b04915..0000000
--- a/node_modules/node-sass/test/fixtures/include-path/lib/vars.scss
+++ /dev/null
@@ -1 +0,0 @@
-$color: red;
diff --git a/node_modules/node-sass/test/fixtures/indent/expected.css b/node_modules/node-sass/test/fixtures/indent/expected.css
deleted file mode 100644
index a7df077..0000000
--- a/node_modules/node-sass/test/fixtures/indent/expected.css
+++ /dev/null
@@ -1,2 +0,0 @@
-foo + bar {
- color: red; }
diff --git a/node_modules/node-sass/test/fixtures/indent/index.sass b/node_modules/node-sass/test/fixtures/indent/index.sass
deleted file mode 100644
index 3f7dfae..0000000
--- a/node_modules/node-sass/test/fixtures/indent/index.sass
+++ /dev/null
@@ -1,3 +0,0 @@
-foo
- + bar
- color: red
diff --git a/node_modules/node-sass/test/fixtures/input-directory/sass/_skipped.scss b/node_modules/node-sass/test/fixtures/input-directory/sass/_skipped.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/input-directory/sass/_skipped.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/input-directory/sass/nested/three.scss b/node_modules/node-sass/test/fixtures/input-directory/sass/nested/three.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/input-directory/sass/nested/three.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/input-directory/sass/one.scss b/node_modules/node-sass/test/fixtures/input-directory/sass/one.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/input-directory/sass/one.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/input-directory/sass/two.scss b/node_modules/node-sass/test/fixtures/input-directory/sass/two.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/input-directory/sass/two.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/invalid/index.scss b/node_modules/node-sass/test/fixtures/invalid/index.scss
deleted file mode 100644
index e04c557..0000000
--- a/node_modules/node-sass/test/fixtures/invalid/index.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- background-color: $green;
-}
diff --git a/node_modules/node-sass/test/fixtures/output-directory/index.scss b/node_modules/node-sass/test/fixtures/output-directory/index.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/output-directory/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/precision/expected.css b/node_modules/node-sass/test/fixtures/precision/expected.css
deleted file mode 100644
index c9a0a06..0000000
--- a/node_modules/node-sass/test/fixtures/precision/expected.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.foo {
- margin: 1.23456789 px; }
diff --git a/node_modules/node-sass/test/fixtures/precision/index.scss b/node_modules/node-sass/test/fixtures/precision/index.scss
deleted file mode 100644
index 328b214..0000000
--- a/node_modules/node-sass/test/fixtures/precision/index.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.foo {
- margin: 1.23456789 px;
-}
diff --git a/node_modules/node-sass/test/fixtures/sass-path/expected-orange.css b/node_modules/node-sass/test/fixtures/sass-path/expected-orange.css
deleted file mode 100644
index 32b0627..0000000
--- a/node_modules/node-sass/test/fixtures/sass-path/expected-orange.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- background: orange; }
-
diff --git a/node_modules/node-sass/test/fixtures/sass-path/expected-red.css b/node_modules/node-sass/test/fixtures/sass-path/expected-red.css
deleted file mode 100644
index 3884d51..0000000
--- a/node_modules/node-sass/test/fixtures/sass-path/expected-red.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- background: red; }
-
diff --git a/node_modules/node-sass/test/fixtures/sass-path/index.scss b/node_modules/node-sass/test/fixtures/sass-path/index.scss
deleted file mode 100644
index 867386c..0000000
--- a/node_modules/node-sass/test/fixtures/sass-path/index.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@import 'colors';
-
-body {
- background: $color;
-}
-
diff --git a/node_modules/node-sass/test/fixtures/sass-path/orange/colors.scss b/node_modules/node-sass/test/fixtures/sass-path/orange/colors.scss
deleted file mode 100644
index ca95971..0000000
--- a/node_modules/node-sass/test/fixtures/sass-path/orange/colors.scss
+++ /dev/null
@@ -1 +0,0 @@
-$color: orange;
diff --git a/node_modules/node-sass/test/fixtures/sass-path/red/colors.scss b/node_modules/node-sass/test/fixtures/sass-path/red/colors.scss
deleted file mode 100644
index 4b04915..0000000
--- a/node_modules/node-sass/test/fixtures/sass-path/red/colors.scss
+++ /dev/null
@@ -1 +0,0 @@
-$color: red;
diff --git a/node_modules/node-sass/test/fixtures/simple/expected.css b/node_modules/node-sass/test/fixtures/simple/expected.css
deleted file mode 100644
index 402ae50..0000000
--- a/node_modules/node-sass/test/fixtures/simple/expected.css
+++ /dev/null
@@ -1,11 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px; }
-
-#navbar ul {
- list-style-type: none; }
-
-#navbar li {
- float: left; }
- #navbar li a {
- font-weight: bold; }
diff --git a/node_modules/node-sass/test/fixtures/simple/index.scss b/node_modules/node-sass/test/fixtures/simple/index.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/simple/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/source-comments/expected.css b/node_modules/node-sass/test/fixtures/source-comments/expected.css
deleted file mode 100644
index 53b1a38..0000000
--- a/node_modules/node-sass/test/fixtures/source-comments/expected.css
+++ /dev/null
@@ -1,15 +0,0 @@
-/* line 1, stdin */
-#navbar {
- width: 80%;
- height: 23px; }
-
-/* line 6, stdin */
-#navbar ul {
- list-style-type: none; }
-
-/* line 10, stdin */
-#navbar li {
- float: left; }
- /* line 13, stdin */
- #navbar li a {
- font-weight: bold; }
diff --git a/node_modules/node-sass/test/fixtures/source-comments/index.scss b/node_modules/node-sass/test/fixtures/source-comments/index.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/source-comments/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/source-map-embed/expected.css b/node_modules/node-sass/test/fixtures/source-map-embed/expected.css
deleted file mode 100644
index 56f2e59..0000000
--- a/node_modules/node-sass/test/fixtures/source-map-embed/expected.css
+++ /dev/null
@@ -1,13 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px; }
-
-#navbar ul {
- list-style-type: none; }
-
-#navbar li {
- float: left; }
- #navbar li a {
- font-weight: bold; }
-
-/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiZml4dHVyZXMvc291cmNlLW1hcC1lbWJlZC9pbmRleC5jc3MiLAoJInNvdXJjZXMiOiBbCgkJImZpeHR1cmVzL3NvdXJjZS1tYXAtZW1iZWQvaW5kZXguc2NzcyIKCV0sCgkibmFtZXMiOiBbXSwKCSJtYXBwaW5ncyI6ICJBQUFBLEFBQUEsT0FBTyxDQUFDO0VBQ04sS0FBSyxFQUFFLEdBQUc7RUFDVixNQUFNLEVBQUUsSUFBSSxHQUNiOztBQUVELEFBQUEsT0FBTyxDQUFDLEVBQUUsQ0FBQztFQUNULGVBQWUsRUFBRSxJQUFJLEdBQ3RCOztBQUVELEFBQUEsT0FBTyxDQUFDLEVBQUUsQ0FBQztFQUNULEtBQUssRUFBRSxJQUFJLEdBS1o7RUFORCxBQUdFLE9BSEssQ0FBQyxFQUFFLENBR1IsQ0FBQyxDQUFDO0lBQ0EsV0FBVyxFQUFFLElBQUksR0FDbEIiCn0= */
diff --git a/node_modules/node-sass/test/fixtures/source-map-embed/index.scss b/node_modules/node-sass/test/fixtures/source-map-embed/index.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/source-map-embed/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/source-map/expected.css b/node_modules/node-sass/test/fixtures/source-map/expected.css
deleted file mode 100644
index 708bc47..0000000
--- a/node_modules/node-sass/test/fixtures/source-map/expected.css
+++ /dev/null
@@ -1,13 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px; }
-
-#navbar ul {
- list-style-type: none; }
-
-#navbar li {
- float: left; }
- #navbar li a {
- font-weight: bold; }
-
-/*# sourceMappingURL=index.map */
diff --git a/node_modules/node-sass/test/fixtures/source-map/expected.map b/node_modules/node-sass/test/fixtures/source-map/expected.map
deleted file mode 100644
index bd43765..0000000
--- a/node_modules/node-sass/test/fixtures/source-map/expected.map
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "version": 3,
- "file": "index.css",
- "sources": [
- "index.scss"
- ],
- "names": [],
- "mappings": "AAAA,AAAA,OAAO,CAAC;EACN,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,IAAI,GACb;;AAED,AAAA,OAAO,CAAC,EAAE,CAAC;EACT,eAAe,EAAE,IAAI,GACtB;;AAED,AAAA,OAAO,CAAC,EAAE,CAAC;EACT,KAAK,EAAE,IAAI,GAKZ;EAND,AAGE,OAHK,CAAC,EAAE,CAGR,CAAC,CAAC;IACA,WAAW,EAAE,IAAI,GAClB"
-}
diff --git a/node_modules/node-sass/test/fixtures/source-map/index.scss b/node_modules/node-sass/test/fixtures/source-map/index.scss
deleted file mode 100644
index 38a8fe6..0000000
--- a/node_modules/node-sass/test/fixtures/source-map/index.scss
+++ /dev/null
@@ -1,16 +0,0 @@
-#navbar {
- width: 80%;
- height: 23px;
-}
-
-#navbar ul {
- list-style-type: none;
-}
-
-#navbar li {
- float: left;
-
- a {
- font-weight: bold;
- }
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/main/one.scss b/node_modules/node-sass/test/fixtures/watcher/main/one.scss
deleted file mode 100644
index 414af5e..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/main/one.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@import "partials/one";
-
-.one {
- color: red;
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/main/partials/_one.scss b/node_modules/node-sass/test/fixtures/watcher/main/partials/_one.scss
deleted file mode 100644
index 379ec65..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/main/partials/_one.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@import "partials/three";
-
-.one {
- color: darkred;
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/main/partials/_three.scss b/node_modules/node-sass/test/fixtures/watcher/main/partials/_three.scss
deleted file mode 100644
index 1846e9a..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/main/partials/_three.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.three {
- color: darkgreen;
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/main/partials/_two.scss b/node_modules/node-sass/test/fixtures/watcher/main/partials/_two.scss
deleted file mode 100644
index 7a1ace9..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/main/partials/_two.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@import "partials/three";
-
-.two {
- color: darkblue;
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/main/three.scss b/node_modules/node-sass/test/fixtures/watcher/main/three.scss
deleted file mode 100644
index 24cab72..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/main/three.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.three {
- color: green;
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/main/two.scss b/node_modules/node-sass/test/fixtures/watcher/main/two.scss
deleted file mode 100644
index 68036db..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/main/two.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.two {
- color: blue;
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/sibling/partials/_three.scss b/node_modules/node-sass/test/fixtures/watcher/sibling/partials/_three.scss
deleted file mode 100644
index 1846e9a..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/sibling/partials/_three.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.three {
- color: darkgreen;
-}
diff --git a/node_modules/node-sass/test/fixtures/watcher/sibling/three.scss b/node_modules/node-sass/test/fixtures/watcher/sibling/three.scss
deleted file mode 100644
index 4e9d1a7..0000000
--- a/node_modules/node-sass/test/fixtures/watcher/sibling/three.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@import "partials/three";
-
-.three {
- color: green;
-}
diff --git a/node_modules/node-sass/test/fixtures/watching-dir-01/index.scss b/node_modules/node-sass/test/fixtures/watching-dir-01/index.scss
deleted file mode 100644
index b189432..0000000
--- a/node_modules/node-sass/test/fixtures/watching-dir-01/index.scss
+++ /dev/null
@@ -1 +0,0 @@
-a {color:green;}
diff --git a/node_modules/node-sass/test/fixtures/watching-dir-02/foo.scss b/node_modules/node-sass/test/fixtures/watching-dir-02/foo.scss
deleted file mode 100644
index 620aa31..0000000
--- a/node_modules/node-sass/test/fixtures/watching-dir-02/foo.scss
+++ /dev/null
@@ -1 +0,0 @@
-body{background:white}
diff --git a/node_modules/node-sass/test/fixtures/watching-dir-02/index.scss b/node_modules/node-sass/test/fixtures/watching-dir-02/index.scss
deleted file mode 100644
index dece2c6..0000000
--- a/node_modules/node-sass/test/fixtures/watching-dir-02/index.scss
+++ /dev/null
@@ -1 +0,0 @@
-@import './foo';
diff --git a/node_modules/node-sass/test/fixtures/watching/bar.sass b/node_modules/node-sass/test/fixtures/watching/bar.sass
deleted file mode 100644
index de9fd93..0000000
--- a/node_modules/node-sass/test/fixtures/watching/bar.sass
+++ /dev/null
@@ -1,2 +0,0 @@
-body
- background: white
diff --git a/node_modules/node-sass/test/fixtures/watching/index.sass b/node_modules/node-sass/test/fixtures/watching/index.sass
deleted file mode 100644
index 9f146c8..0000000
--- a/node_modules/node-sass/test/fixtures/watching/index.sass
+++ /dev/null
@@ -1 +0,0 @@
-@import "bar.sass";
diff --git a/node_modules/node-sass/test/fixtures/watching/index.scss b/node_modules/node-sass/test/fixtures/watching/index.scss
deleted file mode 100644
index 7905647..0000000
--- a/node_modules/node-sass/test/fixtures/watching/index.scss
+++ /dev/null
@@ -1 +0,0 @@
-@import './white';
diff --git a/node_modules/node-sass/test/fixtures/watching/white.scss b/node_modules/node-sass/test/fixtures/watching/white.scss
deleted file mode 100644
index 620aa31..0000000
--- a/node_modules/node-sass/test/fixtures/watching/white.scss
+++ /dev/null
@@ -1 +0,0 @@
-body{background:white}
diff --git a/node_modules/node-sass/test/lowlevel.js b/node_modules/node-sass/test/lowlevel.js
deleted file mode 100644
index a849a46..0000000
--- a/node_modules/node-sass/test/lowlevel.js
+++ /dev/null
@@ -1,243 +0,0 @@
-process.env.NODESASS_COV ? require('../lib-cov') : require('../lib');
-
-var assert = require('assert'),
- sass = require('../lib/extensions'),
- binding = require(sass.getBinaryPath());
-
-describe('lowlevel', function() {
- it('fail with options not an object', function(done) {
- var options = 2;
- assert.throws(function() {
- binding.renderSync(options);
- }, /"result" element is not an object/);
- done();
- });
-
- it('data context with options.data not provided', function(done) {
- var options = {
- /* data: */
- sourceComments: false,
- file: null,
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n',
- result: { stats: {} } };
-
- binding.renderSync(options);
- assert(/Data context created without a source string/.test(options.result.error),
- 'Should fail with error message "Data context created without a source string"');
- done();
- });
-
- it('data context with both options.data and options.file not provided', function(done) {
- var options = {
- /* data: */
- sourceComments: false,
- /* file: null, */
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n',
- result: { stats: {} } };
-
- binding.renderSync(options);
- assert(/Data context created without a source string/.test(options.result.error),
- 'Should fail with error message "Data context created without a source string"');
- done();
- });
-
- it('file context with both options.data and options.file not provided', function(done) {
- var options = {
- /* data: */
- sourceComments: false,
- /* file: null, */
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n',
- result: { stats: {} } };
-
- binding.renderFileSync(options);
- assert(/File context created without an input path/.test(options.result.error),
- 'Should fail with error message "File context created without an input path"');
- done();
- });
-
- it('file context with options.file not provided, options.data given', function(done) {
- var options = {
- data: 'div { width: 10px; } ',
- sourceComments: false,
- /* file: null, */
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n',
- result: { stats: {} } };
-
- binding.renderFileSync(options);
- assert(/File context created without an input path/.test(options.result.error),
- 'Should fail with error message "File context created without an input path"');
- done();
- });
-
- it('fail with options.result not provided', function(done) {
- var options = { data: 'div { width: 10px; } ',
- sourceComments: false,
- file: null,
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n' };
-
- assert.throws(function() {
- binding.renderSync(options);
- }, /"result" element is not an object/);
- done();
- });
-
-
- it('fail with options.result not an object', function(done) {
- var options = { data: 'div { width: 10px; } ',
- sourceComments: false,
- file: null,
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n',
- result: 2 };
-
- assert.throws(function() {
- binding.renderSync(options);
- }, /"result" element is not an object/);
- done();
- });
-
-
- it('fail with options.result.stats not provided', function(done) {
-
- var options = { data: 'div { width: 10px; } ',
- sourceComments: false,
- file: null,
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n',
- result: {} };
-
- assert.throws(function() {
- binding.renderSync(options);
- }, /"result.stats" element is not an object/);
- done();
- });
-
- it('fail with options.result.stats not an object', function(done) {
-
- var options = { data: 'div { width: 10px; } ',
- sourceComments: false,
- file: null,
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- indentWidth: 2,
- indentType: 0,
- linefeed: '\n',
- result: { stats: 2 } };
-
- assert.throws(function() {
- binding.renderSync(options);
- }, /"result.stats" element is not an object/);
- done();
- });
-
- it('options.indentWidth not provided', function(done) {
- var options = { data: 'div { width: 10px; }',
- sourceComments: false,
- file: null,
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- /* indentWidth */
- indentType: 0,
- linefeed: '\n',
- result: { stats: {} } };
-
- binding.renderSync(options);
- assert(options.result.css);
- done();
- });
-
- it('empty data string', function(done) {
- var options = { data: '',
- sourceComments: false,
- file: null,
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- /* indentWidth */
- indentType: 0,
- linefeed: '\n',
- result: { stats: {} } };
-
- binding.renderSync(options);
- assert(/empty source string/.test(options.result.error),
- 'Should fail with error message "Data context created with empty source string"');
- done();
- });
-
-
- it('empty file string', function(done) {
- var options = {
- sourceComments: false,
- file: '',
- outFile: null,
- includePaths: '',
- precision: 5,
- sourceMap: null,
- style: 0,
- /* indentWidth */
- indentType: 0,
- linefeed: '\n',
- result: { stats: {} } };
-
- binding.renderFileSync(options);
- assert(/empty input path/.test(options.result.error),
- 'Should fail with error message "File context created with empty input path"');
- done();
- });
-
-}); // lowlevel
diff --git a/node_modules/node-sass/test/runtime.js b/node_modules/node-sass/test/runtime.js
deleted file mode 100644
index c4ae9d5..0000000
--- a/node_modules/node-sass/test/runtime.js
+++ /dev/null
@@ -1,185 +0,0 @@
-var assert = require('assert'),
- sass = process.env.NODESASS_COV
- ? require('../lib-cov/extensions')
- : require('../lib/extensions');
-
-describe('runtime parameters', function() {
- var pkg = require('../package'),
- // Let's use JSON to fake a deep copy
- savedArgv = JSON.stringify(process.argv),
- savedEnv = JSON.stringify(process.env);
-
- afterEach(function() {
- process.argv = JSON.parse(savedArgv);
- process.env = JSON.parse(savedEnv);
- delete pkg.nodeSassConfig;
- });
-
- describe('configuration precedence should be respected', function() {
-
- describe('SASS_BINARY_NAME', function() {
- beforeEach(function() {
- process.argv.push('--sass-binary-name', 'aaa');
- process.env.SASS_BINARY_NAME = 'bbb';
- process.env.npm_config_sass_binary_name = 'ccc';
- pkg.nodeSassConfig = { binaryName: 'ddd' };
- });
-
- it('command line argument', function() {
- assert.equal(sass.getBinaryName(), 'aaa_binding.node');
- });
-
- it('environment variable', function() {
- process.argv = [];
- assert.equal(sass.getBinaryName(), 'bbb_binding.node');
- });
-
- it('npm config variable', function() {
- process.argv = [];
- process.env.SASS_BINARY_NAME = null;
- assert.equal(sass.getBinaryName(), 'ccc_binding.node');
- });
-
- it('package.json', function() {
- process.argv = [];
- process.env.SASS_BINARY_NAME = null;
- process.env.npm_config_sass_binary_name = null;
- assert.equal(sass.getBinaryName(), 'ddd_binding.node');
- });
- });
-
- describe('SASS_BINARY_SITE', function() {
- beforeEach(function() {
- process.argv.push('--sass-binary-site', 'http://aaa.example.com:9999');
- process.env.SASS_BINARY_SITE = 'http://bbb.example.com:8888';
- process.env.npm_config_sass_binary_site = 'http://ccc.example.com:7777';
- pkg.nodeSassConfig = { binarySite: 'http://ddd.example.com:6666' };
- });
-
- it('command line argument', function() {
- var URL = 'http://aaa.example.com:9999';
- assert.equal(sass.getBinaryUrl().substr(0, URL.length), URL);
- });
-
- it('environment variable', function() {
- process.argv = [];
- var URL = 'http://bbb.example.com:8888';
- assert.equal(sass.getBinaryUrl().substr(0, URL.length), URL);
- });
-
- it('npm config variable', function() {
- process.argv = [];
- process.env.SASS_BINARY_SITE = null;
- var URL = 'http://ccc.example.com:7777';
- assert.equal(sass.getBinaryUrl().substr(0, URL.length), URL);
- });
-
- it('package.json', function() {
- process.argv = [];
- process.env.SASS_BINARY_SITE = null;
- process.env.npm_config_sass_binary_site = null;
- var URL = 'http://ddd.example.com:6666';
- assert.equal(sass.getBinaryUrl().substr(0, URL.length), URL);
- });
- });
-
- describe('SASS_BINARY_DIR', function() {
- beforeEach(function() {
- process.argv.push('--sass-binary-dir', 'aaa');
- process.env.SASS_BINARY_DIR = 'bbb';
- process.env.npm_config_sass_binary_dir = 'ccc';
- pkg.nodeSassConfig = { binaryDir: 'ddd' };
- });
-
- it('command line argument', function() {
- assert.equal(sass.getBinaryDir(), 'aaa');
- });
-
- it('environment variable', function() {
- process.argv = [];
- assert.equal(sass.getBinaryDir(), 'bbb');
- });
-
- it('npm config variable', function() {
- process.argv = [];
- process.env.SASS_BINARY_DIR = null;
- assert.equal(sass.getBinaryDir(), 'ccc');
- });
-
- it('package.json', function() {
- process.argv = [];
- process.env.SASS_BINARY_DIR = null;
- process.env.npm_config_sass_binary_dir = null;
- assert.equal(sass.getBinaryDir(), 'ddd');
- });
- });
-
- describe('SASS_BINARY_PATH', function() {
- beforeEach(function() {
- process.argv.push('--sass-binary-path', 'aaa_binding.node');
- process.env.SASS_BINARY_PATH = 'bbb_binding.node';
- process.env.npm_config_sass_binary_path = 'ccc_binding.node';
- pkg.nodeSassConfig = { binaryPath: 'ddd_binding.node' };
- });
-
- it('command line argument', function() {
- assert.equal(sass.getBinaryPath(), 'aaa_binding.node');
- });
-
- it('environment variable', function() {
- process.argv = [];
- assert.equal(sass.getBinaryPath(), 'bbb_binding.node');
- });
-
- it('npm config variable', function() {
- process.argv = [];
- process.env.SASS_BINARY_PATH = null;
- assert.equal(sass.getBinaryPath(), 'ccc_binding.node');
- });
-
- it('package.json', function() {
- process.argv = [];
- process.env.SASS_BINARY_PATH = null;
- process.env.npm_config_sass_binary_path = null;
- assert.equal(sass.getBinaryPath(), 'ddd_binding.node');
- });
- });
-
- });
-
- describe.skip('Sass Binary Cache', function() {
- var npmCacheDir;
- before(function() {
- npmCacheDir = process.env.npm_config_cache;
- });
-
- beforeEach(function() {
- delete process.env.npm_config_sass_binary_cache;
- });
-
- it('npm config variable', function() {
- var overridenCachePath = '/foo/bar/';
- process.env.npm_config_sass_binary_cache = overridenCachePath;
- assert.equal(sass.getCachePath(), overridenCachePath);
- });
-
- it('With no value, falls back to NPM cache', function() {
- assert.equal(sass.getCachePath(), npmCacheDir);
- });
- });
-});
-
-// describe('library detection', function() {
-// it('should throw error when libsass binary is missing.', function() {
-// var sass = require(extensionsPath),
-// originalBin = sass.getBinaryPath(),
-// renamedBin = [originalBin, '_moved'].join('');
-
-// assert.throws(function() {
-// fs.renameSync(originalBin, renamedBin);
-// sass.getBinaryPath(true);
-// }, /The `libsass` binding was not found/);
-
-// fs.renameSync(renamedBin, originalBin);
-// });
-// });
diff --git a/node_modules/node-sass/test/scripts/util/proxy.js b/node_modules/node-sass/test/scripts/util/proxy.js
deleted file mode 100644
index d829bdb..0000000
--- a/node_modules/node-sass/test/scripts/util/proxy.js
+++ /dev/null
@@ -1,76 +0,0 @@
-var assert = require('assert'),
- proxy = require('../../../scripts/util/proxy');
-
-describe('proxy', function() {
- var oldEnvironment;
-
- beforeEach(function() {
- oldEnvironment = process.env;
- });
-
- afterEach(function() {
- process.env = oldEnvironment;
- });
-
- describe('without an npm proxy config', function() {
- delete process.env.npm_config_https_proxy;
- delete process.env.npm_config_proxy;
- delete process.env.npm_config_http_proxy;
-
- it('should return an empty string', function() {
- assert.strictEqual('', proxy());
- });
-
- it('should ignore system proxy environment variables', function() {
- process.env.HTTPS_PROXY = 'http://https_proxy.com';
- process.env.PROXY = 'http://proxy.com';
- process.env.HTTP_PROXY = 'http://http_proxy.com';
-
- assert.strictEqual('', proxy());
- });
- });
-
- describe('with an npm proxy config', function() {
- beforeEach(function() {
- process.env.npm_config_https_proxy = 'http://https_proxy.com';
- process.env.npm_config_proxy = 'http://proxy.com';
- process.env.npm_config_http_proxy = 'http://http_proxy.com';
- });
-
- describe('https_proxy', function() {
- it('should have the highest precedence', function() {
- assert.strictEqual(process.env.npm_config_https_proxy, proxy());
- });
- });
-
- describe('proxy', function() {
- it('should have the higher precedence than https_proxy', function() {
- assert.strictEqual(process.env.npm_config_https_proxy, proxy());
- delete process.env.npm_config_https_proxy;
-
- assert.strictEqual(process.env.npm_config_proxy, proxy());
- });
-
- it('should have the lower precedence than http_proxy', function() {
- delete process.env.npm_config_https_proxy;
-
- assert.strictEqual(process.env.npm_config_proxy, proxy());
- delete process.env.npm_config_proxy;
-
- assert.strictEqual(process.env.npm_config_http_proxy, proxy());
- });
- });
-
- describe('http_proxy', function() {
- it('should have the lowest precedence', function() {
- assert.strictEqual(process.env.npm_config_https_proxy, proxy());
- delete process.env.npm_config_https_proxy;
-
- assert.strictEqual(process.env.npm_config_proxy, proxy());
- delete process.env.npm_config_proxy;
-
- assert.strictEqual(process.env.npm_config_http_proxy, proxy());
- });
- });
- });
-}); \ No newline at end of file
diff --git a/node_modules/node-sass/test/spec.js b/node_modules/node-sass/test/spec.js
deleted file mode 100644
index 1ccaa8d..0000000
--- a/node_modules/node-sass/test/spec.js
+++ /dev/null
@@ -1,192 +0,0 @@
-var assert = require('assert'),
- fs = require('fs'),
- exists = fs.existsSync,
- join = require('path').join,
- read = fs.readFileSync,
- sass = process.env.NODESASS_COV
- ? require('../lib-cov')
- : require('../lib'),
- readYaml = require('read-yaml'),
- mergeWith = require('lodash/mergeWith'),
- assign = require('lodash/assign'),
- glob = require('glob'),
- specPath = require('sass-spec').dirname.replace(/\\/g, '/'),
- impl = 'libsass',
- version = 3.5;
-
-var normalize = function(str) {
- // This should be /\r\n/g, '\n', but there seems to be some empty line issues
- return str.replace(/\s+/g, '');
-};
-
-var inputs = glob.sync(specPath + '/**/input.*');
-
-var initialize = function(inputCss, options) {
- var testCase = {};
- var folders = inputCss.split('/');
- var folder = join(inputCss, '..');
- testCase.folder = folder;
- testCase.name = folders[folders.length - 2];
- testCase.inputPath = inputCss;
- testCase.expectedPath = join(folder, 'expected_output.css');
- testCase.errorPath = join(folder, 'error');
- testCase.statusPath = join(folder, 'status');
- testCase.optionsPath = join(folder, 'options.yml');
- if (exists(testCase.optionsPath)) {
- options = mergeWith(assign({}, options), readYaml.sync(testCase.optionsPath), customizer);
- }
- testCase.includePaths = [
- folder,
- join(folder, 'sub')
- ];
- testCase.precision = parseFloat(options[':precision']) || 5;
- testCase.outputStyle = options[':output_style'] ? options[':output_style'].replace(':', '') : 'nested';
- testCase.todo = options[':todo'] !== undefined && options[':todo'] !== null && options[':todo'].indexOf(impl) !== -1;
- testCase.only = options[':only_on'] !== undefined && options[':only_on'] !== null && options[':only_on'];
- testCase.warningTodo = options[':warning_todo'] !== undefined && options[':warning_todo'] !== null && options[':warning_todo'].indexOf(impl) !== -1;
- testCase.startVersion = parseFloat(options[':start_version']) || 0;
- testCase.endVersion = parseFloat(options[':end_version']) || 99;
- testCase.options = options;
- testCase.result = false;
-
- // Probe filesystem once and cache the results
- testCase.shouldFail = exists(testCase.statusPath) && !fs.statSync(testCase.statusPath).isDirectory();
- testCase.verifyStderr = exists(testCase.errorPath) && !fs.statSync(testCase.errorPath).isDirectory();
- return testCase;
-};
-
-var runTest = function(inputCssPath, options) {
- var test = initialize(inputCssPath, options);
-
- it(test.name, function(done) {
- if (test.todo || test.warningTodo) {
- this.skip('Test marked with TODO');
- } else if (test.only && test.only.indexOf(impl) === -1) {
- this.skip('Tests marked for only: ' + test.only.join(', '));
- } else if (version < test.startVersion) {
- this.skip('Tests marked for newer Sass versions only');
- } else if (version > test.endVersion) {
- this.skip('Tests marked for older Sass versions only');
- } else {
- var expected = normalize(read(test.expectedPath, 'utf8'));
- sass.render({
- file: test.inputPath,
- includePaths: test.includePaths,
- precision: test.precision,
- outputStyle: test.outputStyle
- }, function(error, result) {
- if (test.shouldFail) {
- // Replace 1, with parseInt(read(test.statusPath, 'utf8')) pending
- // https://github.com/sass/libsass/issues/2162
- assert.equal(error.status, 1);
- } else if (test.verifyStderr) {
- var expectedError = read(test.errorPath, 'utf8');
- if (error === null) {
- // Probably a warning
- assert.ok(expectedError, 'Expected some sort of warning, but found none');
- } else {
- // The error messages seem to have some differences in areas
- // like line numbering, so we'll check the first line for the
- // general errror message only
- assert.equal(
- error.formatted.toString().split('\n')[0],
- expectedError.toString().split('\n')[0],
- 'Should Error.\nOptions' + JSON.stringify(test.options));
- }
- } else if (expected) {
- assert.equal(
- normalize(result.css.toString()),
- expected,
- 'Should equal with options ' + JSON.stringify(test.options)
- );
- }
- done();
- });
- }
- });
-};
-
-var specSuite = {
- name: specPath.split('/').slice(-1)[0],
- folder: specPath,
- tests: [],
- suites: [],
- options: {}
-};
-
-function customizer(objValue, srcValue) {
- if (Array.isArray(objValue)) {
- return objValue.concat(srcValue);
- }
-}
-
-var executeSuite = function(suite, tests) {
- var suiteFolderLength = suite.folder.split('/').length;
- var optionsFile = join(suite.folder, 'options.yml');
- if (exists(optionsFile)) {
- suite.options = mergeWith(assign({}, suite.options), readYaml.sync(optionsFile), customizer);
- }
-
- // Push tests in the current suite
- tests = tests.filter(function(test) {
- var testSuiteFolder = test.split('/');
- var inputSass = testSuiteFolder[suiteFolderLength + 1];
- // Add the test if the specPath matches the testname
- if (inputSass === 'input.scss' || inputSass === 'input.sass') {
- suite.tests.push(test);
- } else {
- return test;
- }
- });
-
- if (tests.length !== 0) {
- var prevSuite = tests[0].split('/')[suiteFolderLength];
- var suiteName = '';
- var prevSuiteStart = 0;
- for (var i = 0; i < tests.length; i++) {
- var test = tests[i];
- suiteName = test.split('/')[suiteFolderLength];
- if (suiteName !== prevSuite) {
- suite.suites.push(
- executeSuite(
- {
- name: prevSuite,
- folder: suite.folder + '/' + prevSuite,
- tests: [],
- suites: [],
- options: assign({}, suite.options),
- },
- tests.slice(prevSuiteStart, i)
- )
- );
- prevSuite = suiteName;
- prevSuiteStart = i;
- }
- }
- suite.suites.push(
- executeSuite(
- {
- name: suiteName,
- folder: suite.folder + '/' + suiteName,
- tests: [],
- suites: [],
- options: assign({}, suite.options),
- },
- tests.slice(prevSuiteStart, tests.length)
- )
- );
- }
- return suite;
-};
-var allSuites = executeSuite(specSuite, inputs);
-var runSuites = function(suite) {
- describe(suite.name, function(){
- suite.tests.forEach(function(test){
- runTest(test, suite.options);
- });
- suite.suites.forEach(function(subsuite) {
- runSuites(subsuite);
- });
- });
-};
-runSuites(allSuites);
diff --git a/node_modules/node-sass/test/types.js b/node_modules/node-sass/test/types.js
deleted file mode 100644
index b1863af..0000000
--- a/node_modules/node-sass/test/types.js
+++ /dev/null
@@ -1,643 +0,0 @@
-/*eslint new-cap: ["error", { "capIsNew": false }]*/
-'use strict';
-
-var assert = require('assert');
-var sass = require('../');
-
-describe('sass.types', function() {
- describe('Boolean', function() {
- it('exists', function() {
- assert(sass.types.Boolean);
- });
-
- it('names the constructor correctly', function() {
- assert.equal(sass.types.Boolean.name, 'SassBoolean');
- });
-
- it('supports call constructor', function() {
- var t = sass.types.Boolean(true);
- assert.equal(t.toString(), '[object SassBoolean]');
-
- var f = sass.types.Boolean(false);
- assert.equal(f.toString(), '[object SassBoolean]');
- });
-
- it('has true and false singletons', function() {
- assert.equal(sass.types.Boolean(true), sass.types.Boolean(true));
- assert.equal(sass.types.Boolean(false), sass.types.Boolean(false));
- assert.notEqual(sass.types.Boolean(false), sass.types.Boolean(true));
- assert.equal(sass.types.Boolean(true), sass.types.Boolean.TRUE);
- assert.equal(sass.types.Boolean(false), sass.types.Boolean.FALSE);
- });
-
- it('supports DOES NOT support new constructor', function() {
- assert.throws(function() {
- new sass.types.Boolean(true);
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Cannot instantiate SassBoolean');
- return true;
- });
- });
-
- it('throws with incorrect constructor args', function() {
- assert.throws(function() {
- sass.types.Boolean();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected one boolean argument');
- return true;
- });
-
- [1, 2, '', 'hi', {}, []].forEach(function(arg) {
- assert.throws(function() {
- sass.types.Boolean(arg);
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected one boolean argument');
- return true;
- });
- });
-
- assert.throws(function() {
- sass.types.Boolean(true, false);
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected one boolean argument');
- return true;
- });
- });
-
- it('implements getValue', function() {
- var t = sass.types.Boolean(true);
- assert.equal(typeof t.getValue, 'function');
- assert.equal(t.getValue(), true);
-
- var f = sass.types.Boolean(false);
- assert.equal(typeof f.getValue, 'function');
- assert.equal(f.getValue(), false);
- });
- });
-
- describe('Color', function() {
- it('exists', function() {
- assert(sass.types.Color);
- });
-
- it('names the constructor correctly', function() {
- assert.equal(sass.types.Color.name, 'SassColor');
- });
-
- it('supports call constructor', function() {
- var t = sass.types.Color();
- assert.equal(t.toString(), '[object SassColor]');
- });
-
- it('supports new constructor', function() {
- var t = new sass.types.Color(1);
- assert.equal(t.toString(), '[object SassColor]');
- });
-
- it('supports variadic constructor args', function() {
- var a = new sass.types.Color();
-
- assert.equal(a.getR(), 0);
- assert.equal(a.getG(), 0);
- assert.equal(a.getB(), 0);
- assert.equal(a.getA(), 1);
-
- var b = new sass.types.Color(1);
-
- assert.equal(b.getR(), 0);
- assert.equal(b.getG(), 0);
- assert.equal(b.getB(), 1);
- assert.equal(b.getA(), 0); // why ?
-
- assert.throws(function() {
- new sass.types.Color(1, 2);
- }, function(error) {
- // assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Constructor should be invoked with either 0, 1, 3 or 4 arguments.');
- return true;
- });
-
- var c = new sass.types.Color(1, 2, 3);
-
- assert.equal(c.getR(), 1);
- assert.equal(c.getG(), 2);
- assert.equal(c.getB(), 3);
- assert.equal(c.getA(), 1);
-
- var d = new sass.types.Color(1, 2, 3, 4);
-
- assert.equal(d.getR(), 1);
- assert.equal(d.getG(), 2);
- assert.equal(d.getB(), 3);
- assert.equal(d.getA(), 4);
-
- assert.throws(function() {
- new sass.types.Color(1, 2, 3, 4, 5);
- }, function(error) {
- // assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Constructor should be invoked with either 0, 1, 3 or 4 arguments.');
- return true;
- });
- });
-
- it('supports get{R,G,B,A} and set{R,G,B,A}', function() {
- var c = new sass.types.Color();
-
- assert.equal(c.getR(), 0);
- assert.equal(c.getG(), 0);
- assert.equal(c.getB(), 0);
- assert.equal(c.getA(), 1);
-
- assert.equal(c.setR(1), undefined);
-
- assert.equal(c.getR(), 1);
- assert.equal(c.getG(), 0);
- assert.equal(c.getB(), 0);
- assert.equal(c.getA(), 1);
-
- assert.equal(c.setG(1), undefined);
-
- assert.equal(c.getR(), 1);
- assert.equal(c.getG(), 1);
- assert.equal(c.getB(), 0);
- assert.equal(c.getA(), 1);
-
- assert.equal(c.setB(1), undefined);
-
- assert.equal(c.getR(), 1);
- assert.equal(c.getG(), 1);
- assert.equal(c.getB(), 1);
- assert.equal(c.getA(), 1);
-
- assert.equal(c.setA(0), undefined);
-
- assert.equal(c.getR(), 1);
- assert.equal(c.getG(), 1);
- assert.equal(c.getB(), 1);
- assert.equal(c.getA(), 0);
- });
-
- it('throws with incorrect set{R,G,B,A} arguments', function() {
- var c = new sass.types.Color();
-
- function assertJustOneArgument(cb) {
- assert.throws(function() {
- cb();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected just one argument');
-
- return true;
- });
- }
-
- function assertNumberArgument(arg, cb) {
- assert.throws(function() {
- cb();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Supplied value should be a number');
-
- return true;
- }, 'argument was: ' + arg);
- }
-
- assertJustOneArgument(function() { c.setR(); });
- assertJustOneArgument(function() { c.setG(); });
- assertJustOneArgument(function() { c.setB(); });
- assertJustOneArgument(function() { c.setA(); });
-
- assertJustOneArgument(function() { c.setR(1, 2); });
- assertJustOneArgument(function() { c.setG(1, 2); });
- assertJustOneArgument(function() { c.setB(1, 2); });
- assertJustOneArgument(function() { c.setA(1, 2); });
-
- [true, false, '0', '1', '', 'omg', {}, []].forEach(function(arg) {
- assertNumberArgument(arg, function() { c.setR(arg); });
- assertNumberArgument(arg, function() { c.setG(arg); });
- assertNumberArgument(arg, function() { c.setB(arg); });
- assertNumberArgument(arg, function() { c.setA(arg); });
- });
- });
- });
-
- describe('Error', function() {
- it('exists', function() {
- assert(sass.types.Error);
- });
-
- it('has a correctly named constructor', function() {
- assert.equal(sass.types.Error.name, 'SassError');
- });
-
- it('supports call constructor', function() {
- var e = sass.types.Error('Such Error');
- assert.ok(e instanceof sass.types.Error);
- assert.equal(e.toString(), '[object SassError]');
-
- // TODO: I'm not sure this object works well, it likely needs to be fleshed out more...
- });
-
- it('supports new constructor', function() {
- var e = new sass.types.Error('Such Error');
- assert.ok(e instanceof sass.types.Error);
- assert.equal(e.toString(), '[object SassError]');
- // TODO: I'm not sure this object works well, it likely needs to be fleshed out more...
- });
- });
-
- describe('List', function() {
- it('exists', function() {
- assert(sass.types.List);
- });
-
- it('has a corectly named constructor', function() {
- assert.equal(sass.types.List.name, 'SassList');
- });
-
- it('support call constructor', function() {
- var list = sass.types.List();
- assert.ok(list instanceof sass.types.List);
- assert.equal(list.toString(), '[object SassList]');
- });
-
- it('support new constructor', function() {
- var list = new sass.types.List();
- assert.ok(list instanceof sass.types.List);
- assert.equal(list.toString(), '[object SassList]');
- });
-
- it('support variadic constructor', function() {
- var a = new sass.types.List();
- assert.equal(a.getLength(), 0);
- assert.equal(a.getSeparator(), true);
- var b = new sass.types.List(1);
- assert.equal(b.getSeparator(), true);
- assert.equal(b.getLength(), 1);
- var c = new sass.types.List(1, true);
- assert.equal(b.getLength(), 1);
- assert.equal(c.getSeparator(), true);
- var d = new sass.types.List(1, false);
- assert.equal(b.getLength(), 1);
- assert.equal(d.getSeparator(), false);
- var e = new sass.types.List(1, true, 2);
- assert.equal(b.getLength(), 1);
- assert.equal(e.getSeparator(), true);
-
- assert.throws(function() {
- new sass.types.List('not-a-number');
- }, function(error) {
- // TODO: TypeError
- assert.equal(error.message, 'First argument should be an integer.');
- return true;
- });
-
- assert.throws(function() {
- new sass.types.List(1, 'not-a-boolean');
- }, function(error) {
- // TODO: TypeError
- assert.equal(error.message, 'Second argument should be a boolean.');
- return true;
- });
- });
-
- it('supports {get,set}Separator', function() {
- var a = new sass.types.List();
- assert.equal(a.getSeparator(), true);
- assert.equal(a.setSeparator(true), undefined);
- assert.equal(a.getSeparator(), true);
- assert.equal(a.setSeparator(false), undefined);
- assert.equal(a.getSeparator(), false);
-
- assert.throws(function() {
- a.setSeparator();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected just one argument');
- return true;
- });
-
- [1, '', [], {}].forEach(function(arg) {
- assert.throws(function() {
- a.setSeparator(arg);
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Supplied value should be a boolean');
- return true;
- }, 'setSeparator(' + arg + ')');
- });
- });
-
- it('supports setValue and getValue', function() {
- var a = new sass.types.List();
-
- assert.throws(function() {
- a.getValue();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected just one argument');
-
- return true;
- });
-
- ['hi', [], {}].forEach(function(arg) {
- assert.throws(function() {
- a.getValue(arg);
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Supplied index should be an integer');
-
- return true;
- }, 'getValue(' + arg + ')');
- });
-
- assert.throws(function() {
- a.getValue(0);
- }, function(error) {
- assert.ok(error instanceof RangeError);
- assert.equal(error.message, 'Out of bound index');
-
- return true;
- });
-
- assert.throws(function() {
- a.getValue(-1);
- }, function(error) {
- assert.ok(error instanceof RangeError);
- assert.equal(error.message, 'Out of bound index');
-
- return true;
- });
-
- assert.throws(function() {
- a.setValue();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected two arguments');
- return true;
- });
-
- assert.throws(function() {
- a.setValue(1);
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected two arguments');
- return true;
- });
-
- assert.throws(function() {
- a.setValue(0, 'no-a-sass-value');
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Supplied value should be a SassValue object');
- return true;
- });
- });
-
- // TODO: more complex set/get value scenarios
- });
-
- describe('Map', function() {
- it('exists', function() {
- assert(sass.types.Map);
- });
-
- it('has a correctly named constructor', function() {
- assert.equal(sass.types.Map.name, 'SassMap');
- });
-
- it('supports call constructor', function() {
- var x = sass.types.Map();
- assert.equal(x.toString(), '[object SassMap]');
- });
-
- it('supports new constructor', function() {
- var x = new sass.types.Map();
- assert.equal(x.toString(), '[object SassMap]');
- });
-
- it('supports an optional constructor argument', function() {
- var x = new sass.types.Map();
- var y = new sass.types.Map(1);
- var z = new sass.types.Map(2, 3);
-
- assert.throws(function() {
- new sass.types.Map('OMG');
- }, function(error) {
- assert.equal(error.message, 'First argument should be an integer.');
- // TODO: TypeError
-
- return true;
- });
-
- assert.equal(x.getLength(), 0);
- assert.equal(y.getLength(), 1);
- assert.equal(z.getLength(), 2);
- });
-
- it('supports length', function() {
- var y = new sass.types.Map(1);
- var z = new sass.types.Map(2);
-
- assert.equal(y.getLength(), 1);
- assert.equal(z.getLength(), 2);
- });
-
- it('supports {get,set}Value {get,set}Key', function() {
- var y = new sass.types.Map(1);
- var omg = new sass.types.String('OMG');
- y.setValue(0, omg);
- console.log(y.getValue(0));
- });
- });
-
- describe('Null', function() {
- it('exists', function() {
- assert(sass.types.Null);
- });
-
- it('has a correctly named constructor', function() {
- assert.equal(sass.types.Null.name, 'SassNull');
- });
-
- it('does not support new constructor', function() {
- assert.throws(function() {
- new sass.types.Null();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Cannot instantiate SassNull');
- return true;
- });
- });
-
- it('supports call constructor (and is a singleton)', function() {
- assert.equal(sass.types.Null(), sass.types.Null());
- assert.equal(sass.types.Null(), sass.types.Null.NULL);
- });
- });
-
- describe('Number', function() {
- it('exists', function() {
- assert(sass.types.Number);
- });
-
- it('has a correctly named constructor', function() {
- assert.equal(sass.types.Number.name, 'SassNumber');
- });
-
- it('supports new constructor', function() {
- var number = new sass.types.Number();
- assert.equal(number.toString(), '[object SassNumber]');
- });
-
- it('supports call constructor', function() {
- var number = sass.types.Number();
- assert.equal(number.toString(), '[object SassNumber]');
- });
-
- it('supports multiple constructor arguments', function() {
- var a = new sass.types.Number();
- var b = new sass.types.Number(1);
- var c = new sass.types.Number(2, 'px');
-
- assert.throws(function() {
- new sass.types.Number('OMG');
- }, function(error) {
- // TODO: TypeError
- assert.equal(error.message, 'First argument should be a number.');
- return true;
- });
-
- assert.throws(function() {
- new sass.types.Number(1, 2);
- }, function(error) {
- // TODO: TypeError
- assert.equal(error.message, 'Second argument should be a string.');
- return true;
- });
-
- assert.equal(a.getValue(), 0);
- assert.equal(a.getUnit(), '');
- assert.equal(b.getValue(), 1);
- assert.equal(b.getUnit(), '');
- assert.equal(c.getValue(), 2);
- assert.equal(c.getUnit(), 'px');
- });
-
- it('supports get{Unit,Value}, set{Unit,Value}', function() {
- var number = new sass.types.Number(1, 'px');
- assert.equal(number.getValue(), 1);
- assert.equal(number.getUnit(), 'px');
-
- number.setValue(2);
- assert.equal(number.getValue(), 2);
- assert.equal(number.getUnit(), 'px');
-
- number.setUnit('em');
- assert.equal(number.getValue(), 2);
- assert.equal(number.getUnit(), 'em');
-
- assert.throws(function() {
- number.setValue('OMG');
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Supplied value should be a number');
- return true;
- });
-
- assert.throws(function() {
- number.setValue();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected just one argument');
- return true;
- });
-
- assert.throws(function() {
- number.setUnit();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected just one argument');
- return true;
- });
-
- assert.throws(function() {
- number.setUnit(1);
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Supplied value should be a string');
- return true;
- });
- });
- });
-
- describe('String', function() {
- it('exists', function() {
- assert(sass.types.String);
- });
-
- it('has a properly named constructor', function() {
- assert.equal(sass.types.String.name, 'SassString');
- });
-
- it('supports call constructor', function() {
- var x = sass.types.String('OMG');
-
- assert.equal(x.toString(), '[object SassString]');
- assert.equal(x.getValue(), 'OMG');
- });
-
- it('supports new constructor', function() {
- var x = new sass.types.String('OMG');
-
- assert.equal(x.toString(), '[object SassString]');
- assert.equal(x.getValue(), 'OMG');
- });
-
- it('supports multiple constructor arg combinations', function() {
- new sass.types.String();
- new sass.types.String('OMG');
- new sass.types.String('OMG', 'NOPE');
-
- [null, undefined, [], {}, function() { }].forEach(function(arg) {
- assert.throws(function() {
- new sass.types.String(arg);
- }, function(error) {
- // TODO: TypeError
- assert.equal(error.message, 'Argument should be a string.');
- return true;
- });
- });
- });
-
- it('supports {get,set}Value', function() {
- var x = new sass.types.String();
-
- assert.equal(x.getValue(), '');
- assert.equal(x.setValue('hi'), undefined);
- assert.equal(x.getValue(), 'hi');
- assert.equal(x.setValue('bye'), undefined);
- assert.equal(x.getValue(), 'bye');
-
- assert.throws(function() {
- x.setValue();
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected just one argument');
- return true;
- });
-
- assert.throws(function() {
- x.setValue('hi', 'hi');
- }, function(error) {
- assert.ok(error instanceof TypeError);
- assert.equal(error.message, 'Expected just one argument');
- return true;
- });
- });
- });
-});
diff --git a/node_modules/node-sass/test/useragent.js b/node_modules/node-sass/test/useragent.js
deleted file mode 100644
index 27e4e78..0000000
--- a/node_modules/node-sass/test/useragent.js
+++ /dev/null
@@ -1,15 +0,0 @@
-var assert = require('assert'),
- pkg = require('../package.json'),
- ua = require('../scripts/util/useragent');
-
-describe('util', function() {
- describe('useragent', function() {
- it('should look as we expect', function() {
- var reNode = 'node/' + process.version;
- var reSass = 'node-sass-installer/' + pkg.version;
- var reUA = new RegExp('^' + reNode + ' ' + reSass + '$');
-
- assert.ok(reUA.test(ua()));
- });
- });
-});
diff --git a/node_modules/node-sass/test/watcher.js b/node_modules/node-sass/test/watcher.js
deleted file mode 100644
index c96d398..0000000
--- a/node_modules/node-sass/test/watcher.js
+++ /dev/null
@@ -1,503 +0,0 @@
-var assert = require('assert'),
- fs = require('fs-extra'),
- path = require('path'),
- temp = require('unique-temp-dir'),
- watcher = require('../lib/watcher');
-
-describe('watcher', function() {
- var main, sibling;
- var origin = path.join(__dirname, 'fixtures', 'watcher');
-
- beforeEach(function() {
- var fixture = temp();
- fs.ensureDirSync(fixture);
- fs.copySync(origin, fixture);
- main = fs.realpathSync(path.join(fixture, 'main'));
- sibling = fs.realpathSync(path.join(fixture, 'sibling'));
- });
-
- describe('with directory', function() {
- beforeEach(function() {
- watcher.reset({
- directory: main,
- includePath: [main]
- });
- });
-
- describe('when a file is changed', function() {
- describe('and it is in the graph', function() {
- describe('if it is a partial', function() {
- it('should record its ancestors as changed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.changed, [
- path.join(main, 'one.scss'),
- ]);
- });
-
- it('should record its descendants as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.added, [
- path.join(main, 'partials', '_three.scss'),
- ]);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.removed, []);
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record itself as changed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.changed, [
- file,
- ]);
- });
-
- it('should record its descendants as added', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.added, [
- path.join(main, 'partials', '_one.scss'),
- path.join(main, 'partials', '_three.scss'),
- ]);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.removed, []);
- });
- });
- });
-
- describe('and is not in the graph', function() {
- describe('if it is a partial', function() {
- it('should not record anything', function() {
- var file = path.join(sibling, 'partials', '_three.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files, {
- added: [],
- changed: [],
- removed: [],
- });
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record itself as changed', function() {
- var file = path.join(sibling, 'three.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files, {
- added: [],
- changed: [file],
- removed: [],
- });
- });
- });
- });
- });
-
- describe('when a file is added', function() {
- describe('and it is in the graph', function() {
- describe('if it is a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record its descendants as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, [
- path.join(main, 'partials', '_three.scss')
- ]);
- });
-
- it('should record nothing as changed', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.changed, []);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.removed, []);
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record its descendants as added', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, [
- path.join(main, 'partials', '_one.scss'),
- path.join(main, 'partials', '_three.scss'),
- ]);
- });
-
- it('should record nothing as changed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.changed, []);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.removed, []);
- });
- });
- });
- });
-
- describe('when a file is removed', function() {
- describe('and it is in the graph', function() {
- describe('if it is a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record its ancestors as changed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.changed, [
- path.join(main, 'one.scss'),
- ]);
- });
-
- it('should record itself as removed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.removed, [file]);
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record nothing as changed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.changed, []);
- });
-
- it('should record itself as removed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.removed, [file]);
- });
- });
- });
-
- describe('and is not in the graph', function() {
- describe('if it is a partial', function() {
- it('should record nothing', function() {
- var file = path.join(sibling, 'partials', '_three.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files, {
- added: [],
- changed: [],
- removed: [],
- });
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record nothing', function() {
- var file = path.join(sibling, 'three.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files, {
- added: [],
- changed: [],
- removed: [],
- });
- });
- });
- });
- });
- });
-
- describe('with file', function() {
- beforeEach(function() {
- watcher.reset({
- src: path.join(main, 'one.scss'),
- includePath: [main]
- });
- });
-
- describe('when a file is changed', function() {
- describe('and it is in the graph', function() {
- describe('if it is a partial', function() {
- it('should record its descendants as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.added, [
- path.join(main, 'partials', '_three.scss'),
- ]);
- });
-
- it('should record its ancenstors as changed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.changed, [
- path.join(main, 'one.scss'),
- ]);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.removed, []);
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record its descendants as added', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.added, [
- path.join(main, 'partials', '_one.scss'),
- path.join(main, 'partials', '_three.scss'),
- ]);
- });
-
- it('should record itself as changed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.changed, [file]);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.removed, []);
- });
- });
- });
-
- describe('and it is not in the graph', function() {
- describe('if it is a partial', function() {
- it('should record nothing', function() {
- var file = path.join(sibling, 'partials', '_three.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files, {
- added: [],
- changed: [],
- removed: [],
- });
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(sibling, 'three.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record itself as changed', function() {
- var file = path.join(sibling, 'three.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.changed, [file]);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(sibling, 'three.scss');
- var files = watcher.changed(file);
- assert.deepEqual(files.removed, []);
- });
- });
- });
- });
-
- describe('when a file is added', function() {
- describe('and it is in the graph', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record its descendants as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, [
- path.join(main, 'partials', '_three.scss'),
- ]);
- });
-
- it('should record nothing as changed', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.changed, []);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.removed, []);
- });
- });
-
- describe('and it is not in the graph', function() {
- beforeEach(function() {
- watcher.reset({
- src: path.join(main, 'two.scss'),
- includePath: [main]
- });
- });
-
- describe('if it is a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, [
- file,
- ]);
- });
-
- it('should not record its descendants as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, [
- file,
- ]);
- });
-
- it('should record nothing as changed', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.changed, []);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'partials', '_three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.removed, []);
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record itself as added', function() {
- var file = path.join(main, 'three.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.added, [
- file,
- ]);
- });
-
- it('should record nothing as changed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.changed, []);
- });
-
- it('should record nothing as removed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.added(file);
- assert.deepEqual(files.removed, []);
- });
- });
- });
- });
-
- describe('when a file is removed', function() {
- describe('and it is in the graph', function() {
- describe('if it is a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record its ancestors as changed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.changed, [
- path.join(main, 'one.scss'),
- ]);
- });
-
- it('should record itself as removed', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.removed, [file]);
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.added, []);
- });
-
- it('should record nothing as changed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.changed, []);
- });
-
- it('should record itself as removed', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files.removed, [file]);
- });
- });
- });
-
- describe('and is not in the graph', function() {
- beforeEach(function() {
- watcher.reset({
- src: path.join(main, 'two.scss'),
- includePath: [main]
- });
- });
-
- describe('if it is a partial', function() {
- it('should record nothing as added', function() {
- var file = path.join(main, 'partials', '_one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files, {
- added: [],
- changed: [],
- removed: [],
- });
- });
- });
-
- describe('if it is not a partial', function() {
- it('should record nothing', function() {
- var file = path.join(main, 'one.scss');
- var files = watcher.removed(file);
- assert.deepEqual(files, {
- added: [],
- changed: [],
- removed: [],
- });
- });
- });
- });
- });
- });
-});
diff --git a/node_modules/node-sass/vendor/darwin-x64-64/binding.node b/node_modules/node-sass/vendor/darwin-x64-64/binding.node
deleted file mode 100644
index fa1613a..0000000
--- a/node_modules/node-sass/vendor/darwin-x64-64/binding.node
+++ /dev/null
Binary files differ
diff --git a/node_modules/nopt/.npmignore b/node_modules/nopt/.npmignore
deleted file mode 100644
index 3c3629e..0000000
--- a/node_modules/nopt/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/node_modules/nopt/.travis.yml b/node_modules/nopt/.travis.yml
deleted file mode 100644
index 99f2bbf..0000000
--- a/node_modules/nopt/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: node_js
-language: node_js
-node_js:
- - '0.8'
- - '0.10'
- - '0.12'
- - 'iojs'
-before_install:
- - npm install -g npm@latest
diff --git a/node_modules/nopt/LICENSE b/node_modules/nopt/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/nopt/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/nopt/README.md b/node_modules/nopt/README.md
deleted file mode 100644
index f21a4b3..0000000
--- a/node_modules/nopt/README.md
+++ /dev/null
@@ -1,211 +0,0 @@
-If you want to write an option parser, and have it be good, there are
-two ways to do it. The Right Way, and the Wrong Way.
-
-The Wrong Way is to sit down and write an option parser. We've all done
-that.
-
-The Right Way is to write some complex configurable program with so many
-options that you hit the limit of your frustration just trying to
-manage them all, and defer it with duct-tape solutions until you see
-exactly to the core of the problem, and finally snap and write an
-awesome option parser.
-
-If you want to write an option parser, don't write an option parser.
-Write a package manager, or a source control system, or a service
-restarter, or an operating system. You probably won't end up with a
-good one of those, but if you don't give up, and you are relentless and
-diligent enough in your procrastination, you may just end up with a very
-nice option parser.
-
-## USAGE
-
- // my-program.js
- var nopt = require("nopt")
- , Stream = require("stream").Stream
- , path = require("path")
- , knownOpts = { "foo" : [String, null]
- , "bar" : [Stream, Number]
- , "baz" : path
- , "bloo" : [ "big", "medium", "small" ]
- , "flag" : Boolean
- , "pick" : Boolean
- , "many1" : [String, Array]
- , "many2" : [path]
- }
- , shortHands = { "foofoo" : ["--foo", "Mr. Foo"]
- , "b7" : ["--bar", "7"]
- , "m" : ["--bloo", "medium"]
- , "p" : ["--pick"]
- , "f" : ["--flag"]
- }
- // everything is optional.
- // knownOpts and shorthands default to {}
- // arg list defaults to process.argv
- // slice defaults to 2
- , parsed = nopt(knownOpts, shortHands, process.argv, 2)
- console.log(parsed)
-
-This would give you support for any of the following:
-
-```bash
-$ node my-program.js --foo "blerp" --no-flag
-{ "foo" : "blerp", "flag" : false }
-
-$ node my-program.js ---bar 7 --foo "Mr. Hand" --flag
-{ bar: 7, foo: "Mr. Hand", flag: true }
-
-$ node my-program.js --foo "blerp" -f -----p
-{ foo: "blerp", flag: true, pick: true }
-
-$ node my-program.js -fp --foofoo
-{ foo: "Mr. Foo", flag: true, pick: true }
-
-$ node my-program.js --foofoo -- -fp # -- stops the flag parsing.
-{ foo: "Mr. Foo", argv: { remain: ["-fp"] } }
-
-$ node my-program.js --blatzk -fp # unknown opts are ok.
-{ blatzk: true, flag: true, pick: true }
-
-$ node my-program.js --blatzk=1000 -fp # but you need to use = if they have a value
-{ blatzk: 1000, flag: true, pick: true }
-
-$ node my-program.js --no-blatzk -fp # unless they start with "no-"
-{ blatzk: false, flag: true, pick: true }
-
-$ node my-program.js --baz b/a/z # known paths are resolved.
-{ baz: "/Users/isaacs/b/a/z" }
-
-# if Array is one of the types, then it can take many
-# values, and will always be an array. The other types provided
-# specify what types are allowed in the list.
-
-$ node my-program.js --many1 5 --many1 null --many1 foo
-{ many1: ["5", "null", "foo"] }
-
-$ node my-program.js --many2 foo --many2 bar
-{ many2: ["/path/to/foo", "path/to/bar"] }
-```
-
-Read the tests at the bottom of `lib/nopt.js` for more examples of
-what this puppy can do.
-
-## Types
-
-The following types are supported, and defined on `nopt.typeDefs`
-
-* String: A normal string. No parsing is done.
-* path: A file system path. Gets resolved against cwd if not absolute.
-* url: A url. If it doesn't parse, it isn't accepted.
-* Number: Must be numeric.
-* Date: Must parse as a date. If it does, and `Date` is one of the options,
- then it will return a Date object, not a string.
-* Boolean: Must be either `true` or `false`. If an option is a boolean,
- then it does not need a value, and its presence will imply `true` as
- the value. To negate boolean flags, do `--no-whatever` or `--whatever
- false`
-* NaN: Means that the option is strictly not allowed. Any value will
- fail.
-* Stream: An object matching the "Stream" class in node. Valuable
- for use when validating programmatically. (npm uses this to let you
- supply any WriteStream on the `outfd` and `logfd` config options.)
-* Array: If `Array` is specified as one of the types, then the value
- will be parsed as a list of options. This means that multiple values
- can be specified, and that the value will always be an array.
-
-If a type is an array of values not on this list, then those are
-considered valid values. For instance, in the example above, the
-`--bloo` option can only be one of `"big"`, `"medium"`, or `"small"`,
-and any other value will be rejected.
-
-When parsing unknown fields, `"true"`, `"false"`, and `"null"` will be
-interpreted as their JavaScript equivalents.
-
-You can also mix types and values, or multiple types, in a list. For
-instance `{ blah: [Number, null] }` would allow a value to be set to
-either a Number or null. When types are ordered, this implies a
-preference, and the first type that can be used to properly interpret
-the value will be used.
-
-To define a new type, add it to `nopt.typeDefs`. Each item in that
-hash is an object with a `type` member and a `validate` method. The
-`type` member is an object that matches what goes in the type list. The
-`validate` method is a function that gets called with `validate(data,
-key, val)`. Validate methods should assign `data[key]` to the valid
-value of `val` if it can be handled properly, or return boolean
-`false` if it cannot.
-
-You can also call `nopt.clean(data, types, typeDefs)` to clean up a
-config object and remove its invalid properties.
-
-## Error Handling
-
-By default, nopt outputs a warning to standard error when invalid values for
-known options are found. You can change this behavior by assigning a method
-to `nopt.invalidHandler`. This method will be called with
-the offending `nopt.invalidHandler(key, val, types)`.
-
-If no `nopt.invalidHandler` is assigned, then it will console.error
-its whining. If it is assigned to boolean `false` then the warning is
-suppressed.
-
-## Abbreviations
-
-Yes, they are supported. If you define options like this:
-
-```javascript
-{ "foolhardyelephants" : Boolean
-, "pileofmonkeys" : Boolean }
-```
-
-Then this will work:
-
-```bash
-node program.js --foolhar --pil
-node program.js --no-f --pileofmon
-# etc.
-```
-
-## Shorthands
-
-Shorthands are a hash of shorter option names to a snippet of args that
-they expand to.
-
-If multiple one-character shorthands are all combined, and the
-combination does not unambiguously match any other option or shorthand,
-then they will be broken up into their constituent parts. For example:
-
-```json
-{ "s" : ["--loglevel", "silent"]
-, "g" : "--global"
-, "f" : "--force"
-, "p" : "--parseable"
-, "l" : "--long"
-}
-```
-
-```bash
-npm ls -sgflp
-# just like doing this:
-npm ls --loglevel silent --global --force --long --parseable
-```
-
-## The Rest of the args
-
-The config object returned by nopt is given a special member called
-`argv`, which is an object with the following fields:
-
-* `remain`: The remaining args after all the parsing has occurred.
-* `original`: The args as they originally appeared.
-* `cooked`: The args after flags and shorthands are expanded.
-
-## Slicing
-
-Node programs are called with more or less the exact argv as it appears
-in C land, after the v8 and node-specific options have been plucked off.
-As such, `argv[0]` is always `node` and `argv[1]` is always the
-JavaScript program being run.
-
-That's usually not very useful to you. So they're sliced off by
-default. If you want them, then you can pass in `0` as the last
-argument, or any other number that you'd like to slice off the start of
-the list.
diff --git a/node_modules/nopt/bin/nopt.js b/node_modules/nopt/bin/nopt.js
deleted file mode 100755
index 3232d4c..0000000
--- a/node_modules/nopt/bin/nopt.js
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/env node
-var nopt = require("../lib/nopt")
- , path = require("path")
- , types = { num: Number
- , bool: Boolean
- , help: Boolean
- , list: Array
- , "num-list": [Number, Array]
- , "str-list": [String, Array]
- , "bool-list": [Boolean, Array]
- , str: String
- , clear: Boolean
- , config: Boolean
- , length: Number
- , file: path
- }
- , shorthands = { s: [ "--str", "astring" ]
- , b: [ "--bool" ]
- , nb: [ "--no-bool" ]
- , tft: [ "--bool-list", "--no-bool-list", "--bool-list", "true" ]
- , "?": ["--help"]
- , h: ["--help"]
- , H: ["--help"]
- , n: [ "--num", "125" ]
- , c: ["--config"]
- , l: ["--length"]
- , f: ["--file"]
- }
- , parsed = nopt( types
- , shorthands
- , process.argv
- , 2 )
-
-console.log("parsed", parsed)
-
-if (parsed.help) {
- console.log("")
- console.log("nopt cli tester")
- console.log("")
- console.log("types")
- console.log(Object.keys(types).map(function M (t) {
- var type = types[t]
- if (Array.isArray(type)) {
- return [t, type.map(function (type) { return type.name })]
- }
- return [t, type && type.name]
- }).reduce(function (s, i) {
- s[i[0]] = i[1]
- return s
- }, {}))
- console.log("")
- console.log("shorthands")
- console.log(shorthands)
-}
diff --git a/node_modules/nopt/examples/my-program.js b/node_modules/nopt/examples/my-program.js
deleted file mode 100755
index 142447e..0000000
--- a/node_modules/nopt/examples/my-program.js
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env node
-
-//process.env.DEBUG_NOPT = 1
-
-// my-program.js
-var nopt = require("../lib/nopt")
- , Stream = require("stream").Stream
- , path = require("path")
- , knownOpts = { "foo" : [String, null]
- , "bar" : [Stream, Number]
- , "baz" : path
- , "bloo" : [ "big", "medium", "small" ]
- , "flag" : Boolean
- , "pick" : Boolean
- }
- , shortHands = { "foofoo" : ["--foo", "Mr. Foo"]
- , "b7" : ["--bar", "7"]
- , "m" : ["--bloo", "medium"]
- , "p" : ["--pick"]
- , "f" : ["--flag", "true"]
- , "g" : ["--flag"]
- , "s" : "--flag"
- }
- // everything is optional.
- // knownOpts and shorthands default to {}
- // arg list defaults to process.argv
- // slice defaults to 2
- , parsed = nopt(knownOpts, shortHands, process.argv, 2)
-
-console.log("parsed =\n"+ require("util").inspect(parsed))
diff --git a/node_modules/nopt/lib/nopt.js b/node_modules/nopt/lib/nopt.js
deleted file mode 100644
index 97707e7..0000000
--- a/node_modules/nopt/lib/nopt.js
+++ /dev/null
@@ -1,415 +0,0 @@
-// info about each config option.
-
-var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
- ? function () { console.error.apply(console, arguments) }
- : function () {}
-
-var url = require("url")
- , path = require("path")
- , Stream = require("stream").Stream
- , abbrev = require("abbrev")
-
-module.exports = exports = nopt
-exports.clean = clean
-
-exports.typeDefs =
- { String : { type: String, validate: validateString }
- , Boolean : { type: Boolean, validate: validateBoolean }
- , url : { type: url, validate: validateUrl }
- , Number : { type: Number, validate: validateNumber }
- , path : { type: path, validate: validatePath }
- , Stream : { type: Stream, validate: validateStream }
- , Date : { type: Date, validate: validateDate }
- }
-
-function nopt (types, shorthands, args, slice) {
- args = args || process.argv
- types = types || {}
- shorthands = shorthands || {}
- if (typeof slice !== "number") slice = 2
-
- debug(types, shorthands, args, slice)
-
- args = args.slice(slice)
- var data = {}
- , key
- , remain = []
- , cooked = args
- , original = args.slice(0)
-
- parse(args, data, remain, types, shorthands)
- // now data is full
- clean(data, types, exports.typeDefs)
- data.argv = {remain:remain,cooked:cooked,original:original}
- Object.defineProperty(data.argv, 'toString', { value: function () {
- return this.original.map(JSON.stringify).join(" ")
- }, enumerable: false })
- return data
-}
-
-function clean (data, types, typeDefs) {
- typeDefs = typeDefs || exports.typeDefs
- var remove = {}
- , typeDefault = [false, true, null, String, Array]
-
- Object.keys(data).forEach(function (k) {
- if (k === "argv") return
- var val = data[k]
- , isArray = Array.isArray(val)
- , type = types[k]
- if (!isArray) val = [val]
- if (!type) type = typeDefault
- if (type === Array) type = typeDefault.concat(Array)
- if (!Array.isArray(type)) type = [type]
-
- debug("val=%j", val)
- debug("types=", type)
- val = val.map(function (val) {
- // if it's an unknown value, then parse false/true/null/numbers/dates
- if (typeof val === "string") {
- debug("string %j", val)
- val = val.trim()
- if ((val === "null" && ~type.indexOf(null))
- || (val === "true" &&
- (~type.indexOf(true) || ~type.indexOf(Boolean)))
- || (val === "false" &&
- (~type.indexOf(false) || ~type.indexOf(Boolean)))) {
- val = JSON.parse(val)
- debug("jsonable %j", val)
- } else if (~type.indexOf(Number) && !isNaN(val)) {
- debug("convert to number", val)
- val = +val
- } else if (~type.indexOf(Date) && !isNaN(Date.parse(val))) {
- debug("convert to date", val)
- val = new Date(val)
- }
- }
-
- if (!types.hasOwnProperty(k)) {
- return val
- }
-
- // allow `--no-blah` to set 'blah' to null if null is allowed
- if (val === false && ~type.indexOf(null) &&
- !(~type.indexOf(false) || ~type.indexOf(Boolean))) {
- val = null
- }
-
- var d = {}
- d[k] = val
- debug("prevalidated val", d, val, types[k])
- if (!validate(d, k, val, types[k], typeDefs)) {
- if (exports.invalidHandler) {
- exports.invalidHandler(k, val, types[k], data)
- } else if (exports.invalidHandler !== false) {
- debug("invalid: "+k+"="+val, types[k])
- }
- return remove
- }
- debug("validated val", d, val, types[k])
- return d[k]
- }).filter(function (val) { return val !== remove })
-
- if (!val.length) delete data[k]
- else if (isArray) {
- debug(isArray, data[k], val)
- data[k] = val
- } else data[k] = val[0]
-
- debug("k=%s val=%j", k, val, data[k])
- })
-}
-
-function validateString (data, k, val) {
- data[k] = String(val)
-}
-
-function validatePath (data, k, val) {
- if (val === true) return false
- if (val === null) return true
-
- val = String(val)
- var homePattern = process.platform === 'win32' ? /^~(\/|\\)/ : /^~\//
- if (val.match(homePattern) && process.env.HOME) {
- val = path.resolve(process.env.HOME, val.substr(2))
- }
- data[k] = path.resolve(String(val))
- return true
-}
-
-function validateNumber (data, k, val) {
- debug("validate Number %j %j %j", k, val, isNaN(val))
- if (isNaN(val)) return false
- data[k] = +val
-}
-
-function validateDate (data, k, val) {
- debug("validate Date %j %j %j", k, val, Date.parse(val))
- var s = Date.parse(val)
- if (isNaN(s)) return false
- data[k] = new Date(val)
-}
-
-function validateBoolean (data, k, val) {
- if (val instanceof Boolean) val = val.valueOf()
- else if (typeof val === "string") {
- if (!isNaN(val)) val = !!(+val)
- else if (val === "null" || val === "false") val = false
- else val = true
- } else val = !!val
- data[k] = val
-}
-
-function validateUrl (data, k, val) {
- val = url.parse(String(val))
- if (!val.host) return false
- data[k] = val.href
-}
-
-function validateStream (data, k, val) {
- if (!(val instanceof Stream)) return false
- data[k] = val
-}
-
-function validate (data, k, val, type, typeDefs) {
- // arrays are lists of types.
- if (Array.isArray(type)) {
- for (var i = 0, l = type.length; i < l; i ++) {
- if (type[i] === Array) continue
- if (validate(data, k, val, type[i], typeDefs)) return true
- }
- delete data[k]
- return false
- }
-
- // an array of anything?
- if (type === Array) return true
-
- // NaN is poisonous. Means that something is not allowed.
- if (type !== type) {
- debug("Poison NaN", k, val, type)
- delete data[k]
- return false
- }
-
- // explicit list of values
- if (val === type) {
- debug("Explicitly allowed %j", val)
- // if (isArray) (data[k] = data[k] || []).push(val)
- // else data[k] = val
- data[k] = val
- return true
- }
-
- // now go through the list of typeDefs, validate against each one.
- var ok = false
- , types = Object.keys(typeDefs)
- for (var i = 0, l = types.length; i < l; i ++) {
- debug("test type %j %j %j", k, val, types[i])
- var t = typeDefs[types[i]]
- if (t &&
- ((type && type.name && t.type && t.type.name) ? (type.name === t.type.name) : (type === t.type))) {
- var d = {}
- ok = false !== t.validate(d, k, val)
- val = d[k]
- if (ok) {
- // if (isArray) (data[k] = data[k] || []).push(val)
- // else data[k] = val
- data[k] = val
- break
- }
- }
- }
- debug("OK? %j (%j %j %j)", ok, k, val, types[i])
-
- if (!ok) delete data[k]
- return ok
-}
-
-function parse (args, data, remain, types, shorthands) {
- debug("parse", args, data, remain)
-
- var key = null
- , abbrevs = abbrev(Object.keys(types))
- , shortAbbr = abbrev(Object.keys(shorthands))
-
- for (var i = 0; i < args.length; i ++) {
- var arg = args[i]
- debug("arg", arg)
-
- if (arg.match(/^-{2,}$/)) {
- // done with keys.
- // the rest are args.
- remain.push.apply(remain, args.slice(i + 1))
- args[i] = "--"
- break
- }
- var hadEq = false
- if (arg.charAt(0) === "-" && arg.length > 1) {
- if (arg.indexOf("=") !== -1) {
- hadEq = true
- var v = arg.split("=")
- arg = v.shift()
- v = v.join("=")
- args.splice.apply(args, [i, 1].concat([arg, v]))
- }
-
- // see if it's a shorthand
- // if so, splice and back up to re-parse it.
- var shRes = resolveShort(arg, shorthands, shortAbbr, abbrevs)
- debug("arg=%j shRes=%j", arg, shRes)
- if (shRes) {
- debug(arg, shRes)
- args.splice.apply(args, [i, 1].concat(shRes))
- if (arg !== shRes[0]) {
- i --
- continue
- }
- }
- arg = arg.replace(/^-+/, "")
- var no = null
- while (arg.toLowerCase().indexOf("no-") === 0) {
- no = !no
- arg = arg.substr(3)
- }
-
- if (abbrevs[arg]) arg = abbrevs[arg]
-
- var isArray = types[arg] === Array ||
- Array.isArray(types[arg]) && types[arg].indexOf(Array) !== -1
-
- // allow unknown things to be arrays if specified multiple times.
- if (!types.hasOwnProperty(arg) && data.hasOwnProperty(arg)) {
- if (!Array.isArray(data[arg]))
- data[arg] = [data[arg]]
- isArray = true
- }
-
- var val
- , la = args[i + 1]
-
- var isBool = typeof no === 'boolean' ||
- types[arg] === Boolean ||
- Array.isArray(types[arg]) && types[arg].indexOf(Boolean) !== -1 ||
- (typeof types[arg] === 'undefined' && !hadEq) ||
- (la === "false" &&
- (types[arg] === null ||
- Array.isArray(types[arg]) && ~types[arg].indexOf(null)))
-
- if (isBool) {
- // just set and move along
- val = !no
- // however, also support --bool true or --bool false
- if (la === "true" || la === "false") {
- val = JSON.parse(la)
- la = null
- if (no) val = !val
- i ++
- }
-
- // also support "foo":[Boolean, "bar"] and "--foo bar"
- if (Array.isArray(types[arg]) && la) {
- if (~types[arg].indexOf(la)) {
- // an explicit type
- val = la
- i ++
- } else if ( la === "null" && ~types[arg].indexOf(null) ) {
- // null allowed
- val = null
- i ++
- } else if ( !la.match(/^-{2,}[^-]/) &&
- !isNaN(la) &&
- ~types[arg].indexOf(Number) ) {
- // number
- val = +la
- i ++
- } else if ( !la.match(/^-[^-]/) && ~types[arg].indexOf(String) ) {
- // string
- val = la
- i ++
- }
- }
-
- if (isArray) (data[arg] = data[arg] || []).push(val)
- else data[arg] = val
-
- continue
- }
-
- if (types[arg] === String && la === undefined)
- la = ""
-
- if (la && la.match(/^-{2,}$/)) {
- la = undefined
- i --
- }
-
- val = la === undefined ? true : la
- if (isArray) (data[arg] = data[arg] || []).push(val)
- else data[arg] = val
-
- i ++
- continue
- }
- remain.push(arg)
- }
-}
-
-function resolveShort (arg, shorthands, shortAbbr, abbrevs) {
- // handle single-char shorthands glommed together, like
- // npm ls -glp, but only if there is one dash, and only if
- // all of the chars are single-char shorthands, and it's
- // not a match to some other abbrev.
- arg = arg.replace(/^-+/, '')
-
- // if it's an exact known option, then don't go any further
- if (abbrevs[arg] === arg)
- return null
-
- // if it's an exact known shortopt, same deal
- if (shorthands[arg]) {
- // make it an array, if it's a list of words
- if (shorthands[arg] && !Array.isArray(shorthands[arg]))
- shorthands[arg] = shorthands[arg].split(/\s+/)
-
- return shorthands[arg]
- }
-
- // first check to see if this arg is a set of single-char shorthands
- var singles = shorthands.___singles
- if (!singles) {
- singles = Object.keys(shorthands).filter(function (s) {
- return s.length === 1
- }).reduce(function (l,r) {
- l[r] = true
- return l
- }, {})
- shorthands.___singles = singles
- debug('shorthand singles', singles)
- }
-
- var chrs = arg.split("").filter(function (c) {
- return singles[c]
- })
-
- if (chrs.join("") === arg) return chrs.map(function (c) {
- return shorthands[c]
- }).reduce(function (l, r) {
- return l.concat(r)
- }, [])
-
-
- // if it's an arg abbrev, and not a literal shorthand, then prefer the arg
- if (abbrevs[arg] && !shorthands[arg])
- return null
-
- // if it's an abbr for a shorthand, then use that
- if (shortAbbr[arg])
- arg = shortAbbr[arg]
-
- // make it an array, if it's a list of words
- if (shorthands[arg] && !Array.isArray(shorthands[arg]))
- shorthands[arg] = shorthands[arg].split(/\s+/)
-
- return shorthands[arg]
-}
diff --git a/node_modules/nopt/package.json b/node_modules/nopt/package.json
deleted file mode 100644
index 3361195..0000000
--- a/node_modules/nopt/package.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "_from": "nopt@2 || 3",
- "_id": "nopt@3.0.6",
- "_inBundle": false,
- "_integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
- "_location": "/nopt",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "nopt@2 || 3",
- "name": "nopt",
- "escapedName": "nopt",
- "rawSpec": "2 || 3",
- "saveSpec": null,
- "fetchSpec": "2 || 3"
- },
- "_requiredBy": [
- "/node-gyp"
- ],
- "_resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
- "_shasum": "c6465dbf08abcd4db359317f79ac68a646b28ff9",
- "_spec": "nopt@2 || 3",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-gyp",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bin": {
- "nopt": "./bin/nopt.js"
- },
- "bugs": {
- "url": "https://github.com/npm/nopt/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "abbrev": "1"
- },
- "deprecated": false,
- "description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.",
- "devDependencies": {
- "tap": "^1.2.0"
- },
- "homepage": "https://github.com/npm/nopt#readme",
- "license": "ISC",
- "main": "lib/nopt.js",
- "name": "nopt",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/nopt.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "3.0.6"
-}
diff --git a/node_modules/nopt/test/basic.js b/node_modules/nopt/test/basic.js
deleted file mode 100644
index d399de9..0000000
--- a/node_modules/nopt/test/basic.js
+++ /dev/null
@@ -1,273 +0,0 @@
-var nopt = require("../")
- , test = require('tap').test
-
-
-test("passing a string results in a string", function (t) {
- var parsed = nopt({ key: String }, {}, ["--key", "myvalue"], 0)
- t.same(parsed.key, "myvalue")
- t.end()
-})
-
-// https://github.com/npm/nopt/issues/31
-test("Empty String results in empty string, not true", function (t) {
- var parsed = nopt({ empty: String }, {}, ["--empty"], 0)
- t.same(parsed.empty, "")
- t.end()
-})
-
-test("~ path is resolved to $HOME", function (t) {
- var path = require("path")
- if (!process.env.HOME) process.env.HOME = "/tmp"
- var parsed = nopt({key: path}, {}, ["--key=~/val"], 0)
- t.same(parsed.key, path.resolve(process.env.HOME, "val"))
- t.end()
-})
-
-// https://github.com/npm/nopt/issues/24
-test("Unknown options are not parsed as numbers", function (t) {
- var parsed = nopt({"parse-me": Number}, null, ['--leave-as-is=1.20', '--parse-me=1.20'], 0)
- t.equal(parsed['leave-as-is'], '1.20')
- t.equal(parsed['parse-me'], 1.2)
- t.end()
-});
-
-// https://github.com/npm/nopt/issues/48
-test("Check types based on name of type", function (t) {
- var parsed = nopt({"parse-me": {name: "Number"}}, null, ['--parse-me=1.20'], 0)
- t.equal(parsed['parse-me'], 1.2)
- t.end()
-})
-
-
-test("Missing types are not parsed", function (t) {
- var parsed = nopt({"parse-me": {}}, null, ['--parse-me=1.20'], 0)
- //should only contain argv
- t.equal(Object.keys(parsed).length, 1)
- t.end()
-})
-
-test("Types passed without a name are not parsed", function (t) {
- var parsed = nopt({"parse-me": {}}, {}, ['--parse-me=1.20'], 0)
- //should only contain argv
- t.equal(Object.keys(parsed).length, 1)
- t.end()
-})
-
-test("other tests", function (t) {
-
- var util = require("util")
- , Stream = require("stream")
- , path = require("path")
- , url = require("url")
-
- , shorthands =
- { s : ["--loglevel", "silent"]
- , d : ["--loglevel", "info"]
- , dd : ["--loglevel", "verbose"]
- , ddd : ["--loglevel", "silly"]
- , noreg : ["--no-registry"]
- , reg : ["--registry"]
- , "no-reg" : ["--no-registry"]
- , silent : ["--loglevel", "silent"]
- , verbose : ["--loglevel", "verbose"]
- , h : ["--usage"]
- , H : ["--usage"]
- , "?" : ["--usage"]
- , help : ["--usage"]
- , v : ["--version"]
- , f : ["--force"]
- , desc : ["--description"]
- , "no-desc" : ["--no-description"]
- , "local" : ["--no-global"]
- , l : ["--long"]
- , p : ["--parseable"]
- , porcelain : ["--parseable"]
- , g : ["--global"]
- }
-
- , types =
- { aoa: Array
- , nullstream: [null, Stream]
- , date: Date
- , str: String
- , browser : String
- , cache : path
- , color : ["always", Boolean]
- , depth : Number
- , description : Boolean
- , dev : Boolean
- , editor : path
- , force : Boolean
- , global : Boolean
- , globalconfig : path
- , group : [String, Number]
- , gzipbin : String
- , logfd : [Number, Stream]
- , loglevel : ["silent","win","error","warn","info","verbose","silly"]
- , long : Boolean
- , "node-version" : [false, String]
- , npaturl : url
- , npat : Boolean
- , "onload-script" : [false, String]
- , outfd : [Number, Stream]
- , parseable : Boolean
- , pre: Boolean
- , prefix: path
- , proxy : url
- , "rebuild-bundle" : Boolean
- , registry : url
- , searchopts : String
- , searchexclude: [null, String]
- , shell : path
- , t: [Array, String]
- , tag : String
- , tar : String
- , tmp : path
- , "unsafe-perm" : Boolean
- , usage : Boolean
- , user : String
- , username : String
- , userconfig : path
- , version : Boolean
- , viewer: path
- , _exit : Boolean
- , path: path
- }
-
- ; [["-v", {version:true}, []]
- ,["---v", {version:true}, []]
- ,["ls -s --no-reg connect -d",
- {loglevel:"info",registry:null},["ls","connect"]]
- ,["ls ---s foo",{loglevel:"silent"},["ls","foo"]]
- ,["ls --registry blargle", {}, ["ls"]]
- ,["--no-registry", {registry:null}, []]
- ,["--no-color true", {color:false}, []]
- ,["--no-color false", {color:true}, []]
- ,["--no-color", {color:false}, []]
- ,["--color false", {color:false}, []]
- ,["--color --logfd 7", {logfd:7,color:true}, []]
- ,["--color=true", {color:true}, []]
- ,["--logfd=10", {logfd:10}, []]
- ,["--tmp=/tmp -tar=gtar",{tmp:"/tmp",tar:"gtar"},[]]
- ,["--tmp=tmp -tar=gtar",
- {tmp:path.resolve(process.cwd(), "tmp"),tar:"gtar"},[]]
- ,["--logfd x", {}, []]
- ,["a -true -- -no-false", {true:true},["a","-no-false"]]
- ,["a -no-false", {false:false},["a"]]
- ,["a -no-no-true", {true:true}, ["a"]]
- ,["a -no-no-no-false", {false:false}, ["a"]]
- ,["---NO-no-No-no-no-no-nO-no-no"+
- "-No-no-no-no-no-no-no-no-no"+
- "-no-no-no-no-NO-NO-no-no-no-no-no-no"+
- "-no-body-can-do-the-boogaloo-like-I-do"
- ,{"body-can-do-the-boogaloo-like-I-do":false}, []]
- ,["we are -no-strangers-to-love "+
- "--you-know=the-rules --and=so-do-i "+
- "---im-thinking-of=a-full-commitment "+
- "--no-you-would-get-this-from-any-other-guy "+
- "--no-gonna-give-you-up "+
- "-no-gonna-let-you-down=true "+
- "--no-no-gonna-run-around false "+
- "--desert-you=false "+
- "--make-you-cry false "+
- "--no-tell-a-lie "+
- "--no-no-and-hurt-you false"
- ,{"strangers-to-love":false
- ,"you-know":"the-rules"
- ,"and":"so-do-i"
- ,"you-would-get-this-from-any-other-guy":false
- ,"gonna-give-you-up":false
- ,"gonna-let-you-down":false
- ,"gonna-run-around":false
- ,"desert-you":false
- ,"make-you-cry":false
- ,"tell-a-lie":false
- ,"and-hurt-you":false
- },["we", "are"]]
- ,["-t one -t two -t three"
- ,{t: ["one", "two", "three"]}
- ,[]]
- ,["-t one -t null -t three four five null"
- ,{t: ["one", "null", "three"]}
- ,["four", "five", "null"]]
- ,["-t foo"
- ,{t:["foo"]}
- ,[]]
- ,["--no-t"
- ,{t:["false"]}
- ,[]]
- ,["-no-no-t"
- ,{t:["true"]}
- ,[]]
- ,["-aoa one -aoa null -aoa 100"
- ,{aoa:["one", null, '100']}
- ,[]]
- ,["-str 100"
- ,{str:"100"}
- ,[]]
- ,["--color always"
- ,{color:"always"}
- ,[]]
- ,["--no-nullstream"
- ,{nullstream:null}
- ,[]]
- ,["--nullstream false"
- ,{nullstream:null}
- ,[]]
- ,["--notadate=2011-01-25"
- ,{notadate: "2011-01-25"}
- ,[]]
- ,["--date 2011-01-25"
- ,{date: new Date("2011-01-25")}
- ,[]]
- ,["-cl 1"
- ,{config: true, length: 1}
- ,[]
- ,{config: Boolean, length: Number, clear: Boolean}
- ,{c: "--config", l: "--length"}]
- ,["--acount bla"
- ,{"acount":true}
- ,["bla"]
- ,{account: Boolean, credentials: Boolean, options: String}
- ,{a:"--account", c:"--credentials",o:"--options"}]
- ,["--clear"
- ,{clear:true}
- ,[]
- ,{clear:Boolean,con:Boolean,len:Boolean,exp:Boolean,add:Boolean,rep:Boolean}
- ,{c:"--con",l:"--len",e:"--exp",a:"--add",r:"--rep"}]
- ,["--file -"
- ,{"file":"-"}
- ,[]
- ,{file:String}
- ,{}]
- ,["--file -"
- ,{"file":true}
- ,["-"]
- ,{file:Boolean}
- ,{}]
- ,["--path"
- ,{"path":null}
- ,[]]
- ,["--path ."
- ,{"path":process.cwd()}
- ,[]]
- ].forEach(function (test) {
- var argv = test[0].split(/\s+/)
- , opts = test[1]
- , rem = test[2]
- , actual = nopt(test[3] || types, test[4] || shorthands, argv, 0)
- , parsed = actual.argv
- delete actual.argv
- for (var i in opts) {
- var e = JSON.stringify(opts[i])
- , a = JSON.stringify(actual[i] === undefined ? null : actual[i])
- if (e && typeof e === "object") {
- t.deepEqual(e, a)
- } else {
- t.equal(e, a)
- }
- }
- t.deepEqual(rem, parsed.remain)
- })
- t.end()
-})
diff --git a/node_modules/normalize-package-data/AUTHORS b/node_modules/normalize-package-data/AUTHORS
deleted file mode 100644
index 66282ba..0000000
--- a/node_modules/normalize-package-data/AUTHORS
+++ /dev/null
@@ -1,4 +0,0 @@
-# Names sorted by how much code was originally theirs.
-Isaac Z. Schlueter <i@izs.me>
-Meryn Stol <merynstol@gmail.com>
-Robert Kowalski <rok@kowalski.gd>
diff --git a/node_modules/normalize-package-data/LICENSE b/node_modules/normalize-package-data/LICENSE
deleted file mode 100644
index 6ed662c..0000000
--- a/node_modules/normalize-package-data/LICENSE
+++ /dev/null
@@ -1,30 +0,0 @@
-This package contains code originally written by Isaac Z. Schlueter.
-Used with permission.
-
-Copyright (c) Meryn Stol ("Author")
-All rights reserved.
-
-The BSD License
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
-BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/normalize-package-data/README.md b/node_modules/normalize-package-data/README.md
deleted file mode 100644
index d2bd7bc..0000000
--- a/node_modules/normalize-package-data/README.md
+++ /dev/null
@@ -1,106 +0,0 @@
-# normalize-package-data [![Build Status](https://travis-ci.org/npm/normalize-package-data.png?branch=master)](https://travis-ci.org/npm/normalize-package-data)
-
-normalize-package-data exports a function that normalizes package metadata. This data is typically found in a package.json file, but in principle could come from any source - for example the npm registry.
-
-normalize-package-data is used by [read-package-json](https://npmjs.org/package/read-package-json) to normalize the data it reads from a package.json file. In turn, read-package-json is used by [npm](https://npmjs.org/package/npm) and various npm-related tools.
-
-## Installation
-
-```
-npm install normalize-package-data
-```
-
-## Usage
-
-Basic usage is really simple. You call the function that normalize-package-data exports. Let's call it `normalizeData`.
-
-```javascript
-normalizeData = require('normalize-package-data')
-packageData = require("./package.json")
-normalizeData(packageData)
-// packageData is now normalized
-```
-
-#### Strict mode
-
-You may activate strict validation by passing true as the second argument.
-
-```javascript
-normalizeData = require('normalize-package-data')
-packageData = require("./package.json")
-normalizeData(packageData, true)
-// packageData is now normalized
-```
-
-If strict mode is activated, only Semver 2.0 version strings are accepted. Otherwise, Semver 1.0 strings are accepted as well. Packages must have a name, and the name field must not have contain leading or trailing whitespace.
-
-#### Warnings
-
-Optionally, you may pass a "warning" function. It gets called whenever the `normalizeData` function encounters something that doesn't look right. It indicates less than perfect input data.
-
-```javascript
-normalizeData = require('normalize-package-data')
-packageData = require("./package.json")
-warnFn = function(msg) { console.error(msg) }
-normalizeData(packageData, warnFn)
-// packageData is now normalized. Any number of warnings may have been logged.
-```
-
-You may combine strict validation with warnings by passing `true` as the second argument, and `warnFn` as third.
-
-When `private` field is set to `true`, warnings will be suppressed.
-
-### Potential exceptions
-
-If the supplied data has an invalid name or version vield, `normalizeData` will throw an error. Depending on where you call `normalizeData`, you may want to catch these errors so can pass them to a callback.
-
-## What normalization (currently) entails
-
-* The value of `name` field gets trimmed (unless in strict mode).
-* The value of the `version` field gets cleaned by `semver.clean`. See [documentation for the semver module](https://github.com/isaacs/node-semver).
-* If `name` and/or `version` fields are missing, they are set to empty strings.
-* If `files` field is not an array, it will be removed.
-* If `bin` field is a string, then `bin` field will become an object with `name` set to the value of the `name` field, and `bin` set to the original string value.
-* If `man` field is a string, it will become an array with the original string as its sole member.
-* If `keywords` field is string, it is considered to be a list of keywords separated by one or more white-space characters. It gets converted to an array by splitting on `\s+`.
-* All people fields (`author`, `maintainers`, `contributors`) get converted into objects with name, email and url properties.
-* If `bundledDependencies` field (a typo) exists and `bundleDependencies` field does not, `bundledDependencies` will get renamed to `bundleDependencies`.
-* If the value of any of the dependencies fields (`dependencies`, `devDependencies`, `optionalDependencies`) is a string, it gets converted into an object with familiar `name=>value` pairs.
-* The values in `optionalDependencies` get added to `dependencies`. The `optionalDependencies` array is left untouched.
-* As of v2: Dependencies that point at known hosted git providers (currently: github, bitbucket, gitlab) will have their URLs canonicalized, but protocols will be preserved.
-* As of v2: Dependencies that use shortcuts for hosted git providers (`org/proj`, `github:org/proj`, `bitbucket:org/proj`, `gitlab:org/proj`, `gist:docid`) will have the shortcut left in place. (In the case of github, the `org/proj` form will be expanded to `github:org/proj`.) THIS MARKS A BREAKING CHANGE FROM V1, where the shorcut was previously expanded to a URL.
-* If `description` field does not exist, but `readme` field does, then (more or less) the first paragraph of text that's found in the readme is taken as value for `description`.
-* If `repository` field is a string, it will become an object with `url` set to the original string value, and `type` set to `"git"`.
-* If `repository.url` is not a valid url, but in the style of "[owner-name]/[repo-name]", `repository.url` will be set to git+https://github.com/[owner-name]/[repo-name].git
-* If `bugs` field is a string, the value of `bugs` field is changed into an object with `url` set to the original string value.
-* If `bugs` field does not exist, but `repository` field points to a repository hosted on GitHub, the value of the `bugs` field gets set to an url in the form of https://github.com/[owner-name]/[repo-name]/issues . If the repository field points to a GitHub Gist repo url, the associated http url is chosen.
-* If `bugs` field is an object, the resulting value only has email and url properties. If email and url properties are not strings, they are ignored. If no valid values for either email or url is found, bugs field will be removed.
-* If `homepage` field is not a string, it will be removed.
-* If the url in the `homepage` field does not specify a protocol, then http is assumed. For example, `myproject.org` will be changed to `http://myproject.org`.
-* If `homepage` field does not exist, but `repository` field points to a repository hosted on GitHub, the value of the `homepage` field gets set to an url in the form of https://github.com/[owner-name]/[repo-name]#readme . If the repository field points to a GitHub Gist repo url, the associated http url is chosen.
-
-### Rules for name field
-
-If `name` field is given, the value of the name field must be a string. The string may not:
-
-* start with a period.
-* contain the following characters: `/@\s+%`
-* contain any characters that would need to be encoded for use in urls.
-* resemble the word `node_modules` or `favicon.ico` (case doesn't matter).
-
-### Rules for version field
-
-If `version` field is given, the value of the version field must be a valid *semver* string, as determined by the `semver.valid` method. See [documentation for the semver module](https://github.com/isaacs/node-semver).
-
-### Rules for license field
-
-The `license` field should be a valid *SPDX license expression* or one of the special values allowed by [validate-npm-package-license](https://npmjs.com/package/validate-npm-package-license). See [documentation for the license field in package.json](https://docs.npmjs.com/files/package.json#license).
-
-## Credits
-
-This package contains code based on read-package-json written by Isaac Z. Schlueter. Used with permisson.
-
-## License
-
-normalize-package-data is released under the [BSD 2-Clause License](http://opensource.org/licenses/MIT).
-Copyright (c) 2013 Meryn Stol
diff --git a/node_modules/normalize-package-data/lib/extract_description.js b/node_modules/normalize-package-data/lib/extract_description.js
deleted file mode 100644
index 83f10aa..0000000
--- a/node_modules/normalize-package-data/lib/extract_description.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = extractDescription
-
-// Extracts description from contents of a readme file in markdown format
-function extractDescription (d) {
- if (!d) return;
- if (d === "ERROR: No README data found!") return;
- // the first block of text before the first heading
- // that isn't the first line heading
- d = d.trim().split('\n')
- for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s ++);
- var l = d.length
- for (var e = s + 1; e < l && d[e].trim(); e ++);
- return d.slice(s, e).join(' ').trim()
-}
diff --git a/node_modules/normalize-package-data/lib/fixer.js b/node_modules/normalize-package-data/lib/fixer.js
deleted file mode 100644
index 27682e9..0000000
--- a/node_modules/normalize-package-data/lib/fixer.js
+++ /dev/null
@@ -1,418 +0,0 @@
-var semver = require("semver")
-var validateLicense = require('validate-npm-package-license');
-var hostedGitInfo = require("hosted-git-info")
-var isBuiltinModule = require("resolve").isCore
-var depTypes = ["dependencies","devDependencies","optionalDependencies"]
-var extractDescription = require("./extract_description")
-var url = require("url")
-var typos = require("./typos.json")
-
-var fixer = module.exports = {
- // default warning function
- warn: function() {},
-
- fixRepositoryField: function(data) {
- if (data.repositories) {
- this.warn("repositories");
- data.repository = data.repositories[0]
- }
- if (!data.repository) return this.warn("missingRepository")
- if (typeof data.repository === "string") {
- data.repository = {
- type: "git",
- url: data.repository
- }
- }
- var r = data.repository.url || ""
- if (r) {
- var hosted = hostedGitInfo.fromUrl(r)
- if (hosted) {
- r = data.repository.url
- = hosted.getDefaultRepresentation() == "shortcut" ? hosted.https() : hosted.toString()
- }
- }
-
- if (r.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)) {
- this.warn("brokenGitUrl", r)
- }
- }
-
-, fixTypos: function(data) {
- Object.keys(typos.topLevel).forEach(function (d) {
- if (data.hasOwnProperty(d)) {
- this.warn("typo", d, typos.topLevel[d])
- }
- }, this)
- }
-
-, fixScriptsField: function(data) {
- if (!data.scripts) return
- if (typeof data.scripts !== "object") {
- this.warn("nonObjectScripts")
- delete data.scripts
- return
- }
- Object.keys(data.scripts).forEach(function (k) {
- if (typeof data.scripts[k] !== "string") {
- this.warn("nonStringScript")
- delete data.scripts[k]
- } else if (typos.script[k] && !data.scripts[typos.script[k]]) {
- this.warn("typo", k, typos.script[k], "scripts")
- }
- }, this)
- }
-
-, fixFilesField: function(data) {
- var files = data.files
- if (files && !Array.isArray(files)) {
- this.warn("nonArrayFiles")
- delete data.files
- } else if (data.files) {
- data.files = data.files.filter(function(file) {
- if (!file || typeof file !== "string") {
- this.warn("invalidFilename", file)
- return false
- } else {
- return true
- }
- }, this)
- }
- }
-
-, fixBinField: function(data) {
- if (!data.bin) return;
- if (typeof data.bin === "string") {
- var b = {}
- var match
- if (match = data.name.match(/^@[^/]+[/](.*)$/)) {
- b[match[1]] = data.bin
- } else {
- b[data.name] = data.bin
- }
- data.bin = b
- }
- }
-
-, fixManField: function(data) {
- if (!data.man) return;
- if (typeof data.man === "string") {
- data.man = [ data.man ]
- }
- }
-, fixBundleDependenciesField: function(data) {
- var bdd = "bundledDependencies"
- var bd = "bundleDependencies"
- if (data[bdd] && !data[bd]) {
- data[bd] = data[bdd]
- delete data[bdd]
- }
- if (data[bd] && !Array.isArray(data[bd])) {
- this.warn("nonArrayBundleDependencies")
- delete data[bd]
- } else if (data[bd]) {
- data[bd] = data[bd].filter(function(bd) {
- if (!bd || typeof bd !== 'string') {
- this.warn("nonStringBundleDependency", bd)
- return false
- } else {
- if (!data.dependencies) {
- data.dependencies = {}
- }
- if (!data.dependencies.hasOwnProperty(bd)) {
- this.warn("nonDependencyBundleDependency", bd)
- data.dependencies[bd] = "*"
- }
- return true
- }
- }, this)
- }
- }
-
-, fixDependencies: function(data, strict) {
- var loose = !strict
- objectifyDeps(data, this.warn)
- addOptionalDepsToDeps(data, this.warn)
- this.fixBundleDependenciesField(data)
-
- ;['dependencies','devDependencies'].forEach(function(deps) {
- if (!(deps in data)) return
- if (!data[deps] || typeof data[deps] !== "object") {
- this.warn("nonObjectDependencies", deps)
- delete data[deps]
- return
- }
- Object.keys(data[deps]).forEach(function (d) {
- var r = data[deps][d]
- if (typeof r !== 'string') {
- this.warn("nonStringDependency", d, JSON.stringify(r))
- delete data[deps][d]
- }
- var hosted = hostedGitInfo.fromUrl(data[deps][d])
- if (hosted) data[deps][d] = hosted.toString()
- }, this)
- }, this)
- }
-
-, fixModulesField: function (data) {
- if (data.modules) {
- this.warn("deprecatedModules")
- delete data.modules
- }
- }
-
-, fixKeywordsField: function (data) {
- if (typeof data.keywords === "string") {
- data.keywords = data.keywords.split(/,\s+/)
- }
- if (data.keywords && !Array.isArray(data.keywords)) {
- delete data.keywords
- this.warn("nonArrayKeywords")
- } else if (data.keywords) {
- data.keywords = data.keywords.filter(function(kw) {
- if (typeof kw !== "string" || !kw) {
- this.warn("nonStringKeyword");
- return false
- } else {
- return true
- }
- }, this)
- }
- }
-
-, fixVersionField: function(data, strict) {
- // allow "loose" semver 1.0 versions in non-strict mode
- // enforce strict semver 2.0 compliance in strict mode
- var loose = !strict
- if (!data.version) {
- data.version = ""
- return true
- }
- if (!semver.valid(data.version, loose)) {
- throw new Error('Invalid version: "'+ data.version + '"')
- }
- data.version = semver.clean(data.version, loose)
- return true
- }
-
-, fixPeople: function(data) {
- modifyPeople(data, unParsePerson)
- modifyPeople(data, parsePerson)
- }
-
-, fixNameField: function(data, options) {
- if (typeof options === "boolean") options = {strict: options}
- else if (typeof options === "undefined") options = {}
- var strict = options.strict
- if (!data.name && !strict) {
- data.name = ""
- return
- }
- if (typeof data.name !== "string") {
- throw new Error("name field must be a string.")
- }
- if (!strict)
- data.name = data.name.trim()
- ensureValidName(data.name, strict, options.allowLegacyCase)
- if (isBuiltinModule(data.name))
- this.warn("conflictingName", data.name)
- }
-
-
-, fixDescriptionField: function (data) {
- if (data.description && typeof data.description !== 'string') {
- this.warn("nonStringDescription")
- delete data.description
- }
- if (data.readme && !data.description)
- data.description = extractDescription(data.readme)
- if(data.description === undefined) delete data.description;
- if (!data.description) this.warn("missingDescription")
- }
-
-, fixReadmeField: function (data) {
- if (!data.readme) {
- this.warn("missingReadme")
- data.readme = "ERROR: No README data found!"
- }
- }
-
-, fixBugsField: function(data) {
- if (!data.bugs && data.repository && data.repository.url) {
- var hosted = hostedGitInfo.fromUrl(data.repository.url)
- if(hosted && hosted.bugs()) {
- data.bugs = {url: hosted.bugs()}
- }
- }
- else if(data.bugs) {
- var emailRe = /^.+@.*\..+$/
- if(typeof data.bugs == "string") {
- if(emailRe.test(data.bugs))
- data.bugs = {email:data.bugs}
- else if(url.parse(data.bugs).protocol)
- data.bugs = {url: data.bugs}
- else
- this.warn("nonEmailUrlBugsString")
- }
- else {
- bugsTypos(data.bugs, this.warn)
- var oldBugs = data.bugs
- data.bugs = {}
- if(oldBugs.url) {
- if(typeof(oldBugs.url) == "string" && url.parse(oldBugs.url).protocol)
- data.bugs.url = oldBugs.url
- else
- this.warn("nonUrlBugsUrlField")
- }
- if(oldBugs.email) {
- if(typeof(oldBugs.email) == "string" && emailRe.test(oldBugs.email))
- data.bugs.email = oldBugs.email
- else
- this.warn("nonEmailBugsEmailField")
- }
- }
- if(!data.bugs.email && !data.bugs.url) {
- delete data.bugs
- this.warn("emptyNormalizedBugs")
- }
- }
- }
-
-, fixHomepageField: function(data) {
- if (!data.homepage && data.repository && data.repository.url) {
- var hosted = hostedGitInfo.fromUrl(data.repository.url)
- if (hosted && hosted.docs()) data.homepage = hosted.docs()
- }
- if (!data.homepage) return
-
- if(typeof data.homepage !== "string") {
- this.warn("nonUrlHomepage")
- return delete data.homepage
- }
- if(!url.parse(data.homepage).protocol) {
- data.homepage = "http://" + data.homepage
- }
- }
-
-, fixLicenseField: function(data) {
- if (!data.license) {
- return this.warn("missingLicense")
- } else{
- if (
- typeof(data.license) !== 'string' ||
- data.license.length < 1 ||
- data.license.trim() === ''
- ) {
- this.warn("invalidLicense")
- } else {
- if (!validateLicense(data.license).validForNewPackages)
- this.warn("invalidLicense")
- }
- }
- }
-}
-
-function isValidScopedPackageName(spec) {
- if (spec.charAt(0) !== '@') return false
-
- var rest = spec.slice(1).split('/')
- if (rest.length !== 2) return false
-
- return rest[0] && rest[1] &&
- rest[0] === encodeURIComponent(rest[0]) &&
- rest[1] === encodeURIComponent(rest[1])
-}
-
-function isCorrectlyEncodedName(spec) {
- return !spec.match(/[\/@\s\+%:]/) &&
- spec === encodeURIComponent(spec)
-}
-
-function ensureValidName (name, strict, allowLegacyCase) {
- if (name.charAt(0) === "." ||
- !(isValidScopedPackageName(name) || isCorrectlyEncodedName(name)) ||
- (strict && (!allowLegacyCase) && name !== name.toLowerCase()) ||
- name.toLowerCase() === "node_modules" ||
- name.toLowerCase() === "favicon.ico") {
- throw new Error("Invalid name: " + JSON.stringify(name))
- }
-}
-
-function modifyPeople (data, fn) {
- if (data.author) data.author = fn(data.author)
- ;["maintainers", "contributors"].forEach(function (set) {
- if (!Array.isArray(data[set])) return;
- data[set] = data[set].map(fn)
- })
- return data
-}
-
-function unParsePerson (person) {
- if (typeof person === "string") return person
- var name = person.name || ""
- var u = person.url || person.web
- var url = u ? (" ("+u+")") : ""
- var e = person.email || person.mail
- var email = e ? (" <"+e+">") : ""
- return name+email+url
-}
-
-function parsePerson (person) {
- if (typeof person !== "string") return person
- var name = person.match(/^([^\(<]+)/)
- var url = person.match(/\(([^\)]+)\)/)
- var email = person.match(/<([^>]+)>/)
- var obj = {}
- if (name && name[0].trim()) obj.name = name[0].trim()
- if (email) obj.email = email[1];
- if (url) obj.url = url[1];
- return obj
-}
-
-function addOptionalDepsToDeps (data, warn) {
- var o = data.optionalDependencies
- if (!o) return;
- var d = data.dependencies || {}
- Object.keys(o).forEach(function (k) {
- d[k] = o[k]
- })
- data.dependencies = d
-}
-
-function depObjectify (deps, type, warn) {
- if (!deps) return {}
- if (typeof deps === "string") {
- deps = deps.trim().split(/[\n\r\s\t ,]+/)
- }
- if (!Array.isArray(deps)) return deps
- warn("deprecatedArrayDependencies", type)
- var o = {}
- deps.filter(function (d) {
- return typeof d === "string"
- }).forEach(function(d) {
- d = d.trim().split(/(:?[@\s><=])/)
- var dn = d.shift()
- var dv = d.join("")
- dv = dv.trim()
- dv = dv.replace(/^@/, "")
- o[dn] = dv
- })
- return o
-}
-
-function objectifyDeps (data, warn) {
- depTypes.forEach(function (type) {
- if (!data[type]) return;
- data[type] = depObjectify(data[type], type, warn)
- })
-}
-
-function bugsTypos(bugs, warn) {
- if (!bugs) return
- Object.keys(bugs).forEach(function (k) {
- if (typos.bugs[k]) {
- warn("typo", k, typos.bugs[k], "bugs")
- bugs[typos.bugs[k]] = bugs[k]
- delete bugs[k]
- }
- })
-}
diff --git a/node_modules/normalize-package-data/lib/make_warning.js b/node_modules/normalize-package-data/lib/make_warning.js
deleted file mode 100644
index 4ac74ad..0000000
--- a/node_modules/normalize-package-data/lib/make_warning.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var util = require("util")
-var messages = require("./warning_messages.json")
-
-module.exports = function() {
- var args = Array.prototype.slice.call(arguments, 0)
- var warningName = args.shift()
- if (warningName == "typo") {
- return makeTypoWarning.apply(null,args)
- }
- else {
- var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'"
- args.unshift(msgTemplate)
- return util.format.apply(null, args)
- }
-}
-
-function makeTypoWarning (providedName, probableName, field) {
- if (field) {
- providedName = field + "['" + providedName + "']"
- probableName = field + "['" + probableName + "']"
- }
- return util.format(messages.typo, providedName, probableName)
-}
diff --git a/node_modules/normalize-package-data/lib/normalize.js b/node_modules/normalize-package-data/lib/normalize.js
deleted file mode 100644
index bd1bfef..0000000
--- a/node_modules/normalize-package-data/lib/normalize.js
+++ /dev/null
@@ -1,39 +0,0 @@
-module.exports = normalize
-
-var fixer = require("./fixer")
-normalize.fixer = fixer
-
-var makeWarning = require("./make_warning")
-
-var fieldsToFix = ['name','version','description','repository','modules','scripts'
- ,'files','bin','man','bugs','keywords','readme','homepage','license']
-var otherThingsToFix = ['dependencies','people', 'typos']
-
-var thingsToFix = fieldsToFix.map(function(fieldName) {
- return ucFirst(fieldName) + "Field"
-})
-// two ways to do this in CoffeeScript on only one line, sub-70 chars:
-// thingsToFix = fieldsToFix.map (name) -> ucFirst(name) + "Field"
-// thingsToFix = (ucFirst(name) + "Field" for name in fieldsToFix)
-thingsToFix = thingsToFix.concat(otherThingsToFix)
-
-function normalize (data, warn, strict) {
- if(warn === true) warn = null, strict = true
- if(!strict) strict = false
- if(!warn || data.private) warn = function(msg) { /* noop */ }
-
- if (data.scripts &&
- data.scripts.install === "node-gyp rebuild" &&
- !data.scripts.preinstall) {
- data.gypfile = true
- }
- fixer.warn = function() { warn(makeWarning.apply(null, arguments)) }
- thingsToFix.forEach(function(thingName) {
- fixer["fix" + ucFirst(thingName)](data, strict)
- })
- data._id = data.name + "@" + data.version
-}
-
-function ucFirst (string) {
- return string.charAt(0).toUpperCase() + string.slice(1);
-}
diff --git a/node_modules/normalize-package-data/lib/safe_format.js b/node_modules/normalize-package-data/lib/safe_format.js
deleted file mode 100644
index b07f100..0000000
--- a/node_modules/normalize-package-data/lib/safe_format.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var util = require('util')
-
-module.exports = function() {
- var args = Array.prototype.slice.call(arguments, 0)
- args.forEach(function(arg) {
- if (!arg) throw new TypeError('Bad arguments.')
- })
- return util.format.apply(null, arguments)
-}
diff --git a/node_modules/normalize-package-data/lib/typos.json b/node_modules/normalize-package-data/lib/typos.json
deleted file mode 100644
index 7f9dd28..0000000
--- a/node_modules/normalize-package-data/lib/typos.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "topLevel": {
- "dependancies": "dependencies"
- ,"dependecies": "dependencies"
- ,"depdenencies": "dependencies"
- ,"devEependencies": "devDependencies"
- ,"depends": "dependencies"
- ,"dev-dependencies": "devDependencies"
- ,"devDependences": "devDependencies"
- ,"devDepenencies": "devDependencies"
- ,"devdependencies": "devDependencies"
- ,"repostitory": "repository"
- ,"repo": "repository"
- ,"prefereGlobal": "preferGlobal"
- ,"hompage": "homepage"
- ,"hampage": "homepage"
- ,"autohr": "author"
- ,"autor": "author"
- ,"contributers": "contributors"
- ,"publicationConfig": "publishConfig"
- ,"script": "scripts"
- },
- "bugs": { "web": "url", "name": "url" },
- "script": { "server": "start", "tests": "test" }
-}
diff --git a/node_modules/normalize-package-data/lib/warning_messages.json b/node_modules/normalize-package-data/lib/warning_messages.json
deleted file mode 100644
index 4890f50..0000000
--- a/node_modules/normalize-package-data/lib/warning_messages.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "repositories": "'repositories' (plural) Not supported. Please pick one as the 'repository' field"
- ,"missingRepository": "No repository field."
- ,"brokenGitUrl": "Probably broken git url: %s"
- ,"nonObjectScripts": "scripts must be an object"
- ,"nonStringScript": "script values must be string commands"
- ,"nonArrayFiles": "Invalid 'files' member"
- ,"invalidFilename": "Invalid filename in 'files' list: %s"
- ,"nonArrayBundleDependencies": "Invalid 'bundleDependencies' list. Must be array of package names"
- ,"nonStringBundleDependency": "Invalid bundleDependencies member: %s"
- ,"nonDependencyBundleDependency": "Non-dependency in bundleDependencies: %s"
- ,"nonObjectDependencies": "%s field must be an object"
- ,"nonStringDependency": "Invalid dependency: %s %s"
- ,"deprecatedArrayDependencies": "specifying %s as array is deprecated"
- ,"deprecatedModules": "modules field is deprecated"
- ,"nonArrayKeywords": "keywords should be an array of strings"
- ,"nonStringKeyword": "keywords should be an array of strings"
- ,"conflictingName": "%s is also the name of a node core module."
- ,"nonStringDescription": "'description' field should be a string"
- ,"missingDescription": "No description"
- ,"missingReadme": "No README data"
- ,"missingLicense": "No license field."
- ,"nonEmailUrlBugsString": "Bug string field must be url, email, or {email,url}"
- ,"nonUrlBugsUrlField": "bugs.url field must be a string url. Deleted."
- ,"nonEmailBugsEmailField": "bugs.email field must be a string email. Deleted."
- ,"emptyNormalizedBugs": "Normalized value of bugs field is an empty object. Deleted."
- ,"nonUrlHomepage": "homepage field must be a string url. Deleted."
- ,"invalidLicense": "license should be a valid SPDX license expression"
- ,"typo": "%s should probably be %s."
-}
diff --git a/node_modules/normalize-package-data/package.json b/node_modules/normalize-package-data/package.json
deleted file mode 100644
index 56e9f1b..0000000
--- a/node_modules/normalize-package-data/package.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "_from": "normalize-package-data@^2.3.4",
- "_id": "normalize-package-data@2.5.0",
- "_inBundle": false,
- "_integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
- "_location": "/normalize-package-data",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "normalize-package-data@^2.3.4",
- "name": "normalize-package-data",
- "escapedName": "normalize-package-data",
- "rawSpec": "^2.3.4",
- "saveSpec": null,
- "fetchSpec": "^2.3.4"
- },
- "_requiredBy": [
- "/meow",
- "/read-pkg"
- ],
- "_resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
- "_shasum": "e66db1838b200c1dfc233225d12cb36520e234a8",
- "_spec": "normalize-package-data@^2.3.4",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Meryn Stol",
- "email": "merynstol@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/npm/normalize-package-data/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me"
- },
- {
- "name": "Meryn Stol",
- "email": "merynstol@gmail.com"
- },
- {
- "name": "Robert Kowalski",
- "email": "rok@kowalski.gd"
- }
- ],
- "dependencies": {
- "hosted-git-info": "^2.1.4",
- "resolve": "^1.10.0",
- "semver": "2 || 3 || 4 || 5",
- "validate-npm-package-license": "^3.0.1"
- },
- "deprecated": false,
- "description": "Normalizes data that can be found in package.json files.",
- "devDependencies": {
- "async": "^2.6.1",
- "tap": "^12.4.0",
- "underscore": "^1.8.3"
- },
- "files": [
- "lib/*.js",
- "lib/*.json",
- "AUTHORS"
- ],
- "homepage": "https://github.com/npm/normalize-package-data#readme",
- "license": "BSD-2-Clause",
- "main": "lib/normalize.js",
- "name": "normalize-package-data",
- "repository": {
- "type": "git",
- "url": "git://github.com/npm/normalize-package-data.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "2.5.0"
-}
diff --git a/node_modules/npmlog/CHANGELOG.md b/node_modules/npmlog/CHANGELOG.md
deleted file mode 100644
index 51e4abc..0000000
--- a/node_modules/npmlog/CHANGELOG.md
+++ /dev/null
@@ -1,49 +0,0 @@
-### v4.0.2
-
-* Added installation instructions.
-
-### v4.0.1
-
-* Fix bugs where `log.progressEnabled` got out of sync with how `gauge` kept
- track of these things resulting in a progressbar that couldn't be disabled.
-
-### v4.0.0
-
-* Allow creating log levels that are an empty string or 0.
-
-### v3.1.2
-
-* Update to `gauge@1.6.0` adding support for default values for template
- items.
-
-### v3.1.1
-
-* Update to `gauge@1.5.3` to fix to `1.x` compatibility when it comes to
- when a progress bar is enabled. In `1.x` if you didn't have a TTY the
- progress bar was never shown. In `2.x` it merely defaults to disabled,
- but you can enable it explicitly if you still want progress updates.
-
-### v3.1.0
-
-* Update to `gauge@2.5.2`:
- * Updates the `signal-exit` dependency which fixes an incompatibility with
- the node profiler.
- * Uses externalizes its ansi code generation in `console-control-strings`
-* Make the default progress bar include the last line printed, colored as it
- would be when printing to a tty.
-
-### v3.0.0
-
-* Switch to `gauge@2.0.0`, for better performance, better look.
-* Set stderr/stdout blocking if they're tty's, so that we can hide a
- progress bar going to stderr and then safely print to stdout. Without
- this the two can end up overlapping producing confusing and sometimes
- corrupted output.
-
-### v2.0.0
-
-* Make the `error` event non-fatal so that folks can use it as a prefix.
-
-### v1.0.0
-
-* Add progress bar with `gauge@1.1.0`
diff --git a/node_modules/npmlog/LICENSE b/node_modules/npmlog/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/npmlog/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/npmlog/README.md b/node_modules/npmlog/README.md
deleted file mode 100644
index 268a4af..0000000
--- a/node_modules/npmlog/README.md
+++ /dev/null
@@ -1,216 +0,0 @@
-# npmlog
-
-The logger util that npm uses.
-
-This logger is very basic. It does the logging for npm. It supports
-custom levels and colored output.
-
-By default, logs are written to stderr. If you want to send log messages
-to outputs other than streams, then you can change the `log.stream`
-member, or you can just listen to the events that it emits, and do
-whatever you want with them.
-
-# Installation
-
-```console
-npm install npmlog --save
-```
-
-# Basic Usage
-
-```javascript
-var log = require('npmlog')
-
-// additional stuff ---------------------------+
-// message ----------+ |
-// prefix ----+ | |
-// level -+ | | |
-// v v v v
- log.info('fyi', 'I have a kitty cat: %j', myKittyCat)
-```
-
-## log.level
-
-* {String}
-
-The level to display logs at. Any logs at or above this level will be
-displayed. The special level `silent` will prevent anything from being
-displayed ever.
-
-## log.record
-
-* {Array}
-
-An array of all the log messages that have been entered.
-
-## log.maxRecordSize
-
-* {Number}
-
-The maximum number of records to keep. If log.record gets bigger than
-10% over this value, then it is sliced down to 90% of this value.
-
-The reason for the 10% window is so that it doesn't have to resize a
-large array on every log entry.
-
-## log.prefixStyle
-
-* {Object}
-
-A style object that specifies how prefixes are styled. (See below)
-
-## log.headingStyle
-
-* {Object}
-
-A style object that specifies how the heading is styled. (See below)
-
-## log.heading
-
-* {String} Default: ""
-
-If set, a heading that is printed at the start of every line.
-
-## log.stream
-
-* {Stream} Default: `process.stderr`
-
-The stream where output is written.
-
-## log.enableColor()
-
-Force colors to be used on all messages, regardless of the output
-stream.
-
-## log.disableColor()
-
-Disable colors on all messages.
-
-## log.enableProgress()
-
-Enable the display of log activity spinner and progress bar
-
-## log.disableProgress()
-
-Disable the display of a progress bar
-
-## log.enableUnicode()
-
-Force the unicode theme to be used for the progress bar.
-
-## log.disableUnicode()
-
-Disable the use of unicode in the progress bar.
-
-## log.setGaugeTemplate(template)
-
-Set a template for outputting the progress bar. See the [gauge documentation] for details.
-
-[gauge documentation]: https://npmjs.com/package/gauge
-
-## log.setGaugeThemeset(themes)
-
-Select a themeset to pick themes from for the progress bar. See the [gauge documentation] for details.
-
-## log.pause()
-
-Stop emitting messages to the stream, but do not drop them.
-
-## log.resume()
-
-Emit all buffered messages that were written while paused.
-
-## log.log(level, prefix, message, ...)
-
-* `level` {String} The level to emit the message at
-* `prefix` {String} A string prefix. Set to "" to skip.
-* `message...` Arguments to `util.format`
-
-Emit a log message at the specified level.
-
-## log\[level](prefix, message, ...)
-
-For example,
-
-* log.silly(prefix, message, ...)
-* log.verbose(prefix, message, ...)
-* log.info(prefix, message, ...)
-* log.http(prefix, message, ...)
-* log.warn(prefix, message, ...)
-* log.error(prefix, message, ...)
-
-Like `log.log(level, prefix, message, ...)`. In this way, each level is
-given a shorthand, so you can do `log.info(prefix, message)`.
-
-## log.addLevel(level, n, style, disp)
-
-* `level` {String} Level indicator
-* `n` {Number} The numeric level
-* `style` {Object} Object with fg, bg, inverse, etc.
-* `disp` {String} Optional replacement for `level` in the output.
-
-Sets up a new level with a shorthand function and so forth.
-
-Note that if the number is `Infinity`, then setting the level to that
-will cause all log messages to be suppressed. If the number is
-`-Infinity`, then the only way to show it is to enable all log messages.
-
-## log.newItem(name, todo, weight)
-
-* `name` {String} Optional; progress item name.
-* `todo` {Number} Optional; total amount of work to be done. Default 0.
-* `weight` {Number} Optional; the weight of this item relative to others. Default 1.
-
-This adds a new `are-we-there-yet` item tracker to the progress tracker. The
-object returned has the `log[level]` methods but is otherwise an
-`are-we-there-yet` `Tracker` object.
-
-## log.newStream(name, todo, weight)
-
-This adds a new `are-we-there-yet` stream tracker to the progress tracker. The
-object returned has the `log[level]` methods but is otherwise an
-`are-we-there-yet` `TrackerStream` object.
-
-## log.newGroup(name, weight)
-
-This adds a new `are-we-there-yet` tracker group to the progress tracker. The
-object returned has the `log[level]` methods but is otherwise an
-`are-we-there-yet` `TrackerGroup` object.
-
-# Events
-
-Events are all emitted with the message object.
-
-* `log` Emitted for all messages
-* `log.<level>` Emitted for all messages with the `<level>` level.
-* `<prefix>` Messages with prefixes also emit their prefix as an event.
-
-# Style Objects
-
-Style objects can have the following fields:
-
-* `fg` {String} Color for the foreground text
-* `bg` {String} Color for the background
-* `bold`, `inverse`, `underline` {Boolean} Set the associated property
-* `bell` {Boolean} Make a noise (This is pretty annoying, probably.)
-
-# Message Objects
-
-Every log event is emitted with a message object, and the `log.record`
-list contains all of them that have been created. They have the
-following fields:
-
-* `id` {Number}
-* `level` {String}
-* `prefix` {String}
-* `message` {String} Result of `util.format()`
-* `messageRaw` {Array} Arguments to `util.format()`
-
-# Blocking TTYs
-
-We use [`set-blocking`](https://npmjs.com/package/set-blocking) to set
-stderr and stdout blocking if they are tty's and have the setBlocking call.
-This is a work around for an issue in early versions of Node.js 6.x, which
-made stderr and stdout non-blocking on OSX. (They are always blocking
-Windows and were never blocking on Linux.) `npmlog` needs them to be blocking
-so that it can allow output to stdout and stderr to be interlaced.
diff --git a/node_modules/npmlog/log.js b/node_modules/npmlog/log.js
deleted file mode 100644
index 341f331..0000000
--- a/node_modules/npmlog/log.js
+++ /dev/null
@@ -1,309 +0,0 @@
-'use strict'
-var Progress = require('are-we-there-yet')
-var Gauge = require('gauge')
-var EE = require('events').EventEmitter
-var log = exports = module.exports = new EE()
-var util = require('util')
-
-var setBlocking = require('set-blocking')
-var consoleControl = require('console-control-strings')
-
-setBlocking(true)
-var stream = process.stderr
-Object.defineProperty(log, 'stream', {
- set: function (newStream) {
- stream = newStream
- if (this.gauge) this.gauge.setWriteTo(stream, stream)
- },
- get: function () {
- return stream
- }
-})
-
-// by default, decide based on tty-ness.
-var colorEnabled
-log.useColor = function () {
- return colorEnabled != null ? colorEnabled : stream.isTTY
-}
-
-log.enableColor = function () {
- colorEnabled = true
- this.gauge.setTheme({hasColor: colorEnabled, hasUnicode: unicodeEnabled})
-}
-log.disableColor = function () {
- colorEnabled = false
- this.gauge.setTheme({hasColor: colorEnabled, hasUnicode: unicodeEnabled})
-}
-
-// default level
-log.level = 'info'
-
-log.gauge = new Gauge(stream, {
- enabled: false, // no progress bars unless asked
- theme: {hasColor: log.useColor()},
- template: [
- {type: 'progressbar', length: 20},
- {type: 'activityIndicator', kerning: 1, length: 1},
- {type: 'section', default: ''},
- ':',
- {type: 'logline', kerning: 1, default: ''}
- ]
-})
-
-log.tracker = new Progress.TrackerGroup()
-
-// we track this separately as we may need to temporarily disable the
-// display of the status bar for our own loggy purposes.
-log.progressEnabled = log.gauge.isEnabled()
-
-var unicodeEnabled
-
-log.enableUnicode = function () {
- unicodeEnabled = true
- this.gauge.setTheme({hasColor: this.useColor(), hasUnicode: unicodeEnabled})
-}
-
-log.disableUnicode = function () {
- unicodeEnabled = false
- this.gauge.setTheme({hasColor: this.useColor(), hasUnicode: unicodeEnabled})
-}
-
-log.setGaugeThemeset = function (themes) {
- this.gauge.setThemeset(themes)
-}
-
-log.setGaugeTemplate = function (template) {
- this.gauge.setTemplate(template)
-}
-
-log.enableProgress = function () {
- if (this.progressEnabled) return
- this.progressEnabled = true
- this.tracker.on('change', this.showProgress)
- if (this._pause) return
- this.gauge.enable()
-}
-
-log.disableProgress = function () {
- if (!this.progressEnabled) return
- this.progressEnabled = false
- this.tracker.removeListener('change', this.showProgress)
- this.gauge.disable()
-}
-
-var trackerConstructors = ['newGroup', 'newItem', 'newStream']
-
-var mixinLog = function (tracker) {
- // mixin the public methods from log into the tracker
- // (except: conflicts and one's we handle specially)
- Object.keys(log).forEach(function (P) {
- if (P[0] === '_') return
- if (trackerConstructors.filter(function (C) { return C === P }).length) return
- if (tracker[P]) return
- if (typeof log[P] !== 'function') return
- var func = log[P]
- tracker[P] = function () {
- return func.apply(log, arguments)
- }
- })
- // if the new tracker is a group, make sure any subtrackers get
- // mixed in too
- if (tracker instanceof Progress.TrackerGroup) {
- trackerConstructors.forEach(function (C) {
- var func = tracker[C]
- tracker[C] = function () { return mixinLog(func.apply(tracker, arguments)) }
- })
- }
- return tracker
-}
-
-// Add tracker constructors to the top level log object
-trackerConstructors.forEach(function (C) {
- log[C] = function () { return mixinLog(this.tracker[C].apply(this.tracker, arguments)) }
-})
-
-log.clearProgress = function (cb) {
- if (!this.progressEnabled) return cb && process.nextTick(cb)
- this.gauge.hide(cb)
-}
-
-log.showProgress = function (name, completed) {
- if (!this.progressEnabled) return
- var values = {}
- if (name) values.section = name
- var last = log.record[log.record.length - 1]
- if (last) {
- values.subsection = last.prefix
- var disp = log.disp[last.level] || last.level
- var logline = this._format(disp, log.style[last.level])
- if (last.prefix) logline += ' ' + this._format(last.prefix, this.prefixStyle)
- logline += ' ' + last.message.split(/\r?\n/)[0]
- values.logline = logline
- }
- values.completed = completed || this.tracker.completed()
- this.gauge.show(values)
-}.bind(log) // bind for use in tracker's on-change listener
-
-// temporarily stop emitting, but don't drop
-log.pause = function () {
- this._paused = true
- if (this.progressEnabled) this.gauge.disable()
-}
-
-log.resume = function () {
- if (!this._paused) return
- this._paused = false
-
- var b = this._buffer
- this._buffer = []
- b.forEach(function (m) {
- this.emitLog(m)
- }, this)
- if (this.progressEnabled) this.gauge.enable()
-}
-
-log._buffer = []
-
-var id = 0
-log.record = []
-log.maxRecordSize = 10000
-log.log = function (lvl, prefix, message) {
- var l = this.levels[lvl]
- if (l === undefined) {
- return this.emit('error', new Error(util.format(
- 'Undefined log level: %j', lvl)))
- }
-
- var a = new Array(arguments.length - 2)
- var stack = null
- for (var i = 2; i < arguments.length; i++) {
- var arg = a[i - 2] = arguments[i]
-
- // resolve stack traces to a plain string.
- if (typeof arg === 'object' && arg &&
- (arg instanceof Error) && arg.stack) {
-
- Object.defineProperty(arg, 'stack', {
- value: stack = arg.stack + '',
- enumerable: true,
- writable: true
- })
- }
- }
- if (stack) a.unshift(stack + '\n')
- message = util.format.apply(util, a)
-
- var m = { id: id++,
- level: lvl,
- prefix: String(prefix || ''),
- message: message,
- messageRaw: a }
-
- this.emit('log', m)
- this.emit('log.' + lvl, m)
- if (m.prefix) this.emit(m.prefix, m)
-
- this.record.push(m)
- var mrs = this.maxRecordSize
- var n = this.record.length - mrs
- if (n > mrs / 10) {
- var newSize = Math.floor(mrs * 0.9)
- this.record = this.record.slice(-1 * newSize)
- }
-
- this.emitLog(m)
-}.bind(log)
-
-log.emitLog = function (m) {
- if (this._paused) {
- this._buffer.push(m)
- return
- }
- if (this.progressEnabled) this.gauge.pulse(m.prefix)
- var l = this.levels[m.level]
- if (l === undefined) return
- if (l < this.levels[this.level]) return
- if (l > 0 && !isFinite(l)) return
-
- // If 'disp' is null or undefined, use the lvl as a default
- // Allows: '', 0 as valid disp
- var disp = log.disp[m.level] != null ? log.disp[m.level] : m.level
- this.clearProgress()
- m.message.split(/\r?\n/).forEach(function (line) {
- if (this.heading) {
- this.write(this.heading, this.headingStyle)
- this.write(' ')
- }
- this.write(disp, log.style[m.level])
- var p = m.prefix || ''
- if (p) this.write(' ')
- this.write(p, this.prefixStyle)
- this.write(' ' + line + '\n')
- }, this)
- this.showProgress()
-}
-
-log._format = function (msg, style) {
- if (!stream) return
-
- var output = ''
- if (this.useColor()) {
- style = style || {}
- var settings = []
- if (style.fg) settings.push(style.fg)
- if (style.bg) settings.push('bg' + style.bg[0].toUpperCase() + style.bg.slice(1))
- if (style.bold) settings.push('bold')
- if (style.underline) settings.push('underline')
- if (style.inverse) settings.push('inverse')
- if (settings.length) output += consoleControl.color(settings)
- if (style.beep) output += consoleControl.beep()
- }
- output += msg
- if (this.useColor()) {
- output += consoleControl.color('reset')
- }
- return output
-}
-
-log.write = function (msg, style) {
- if (!stream) return
-
- stream.write(this._format(msg, style))
-}
-
-log.addLevel = function (lvl, n, style, disp) {
- // If 'disp' is null or undefined, use the lvl as a default
- if (disp == null) disp = lvl
- this.levels[lvl] = n
- this.style[lvl] = style
- if (!this[lvl]) {
- this[lvl] = function () {
- var a = new Array(arguments.length + 1)
- a[0] = lvl
- for (var i = 0; i < arguments.length; i++) {
- a[i + 1] = arguments[i]
- }
- return this.log.apply(this, a)
- }.bind(this)
- }
- this.disp[lvl] = disp
-}
-
-log.prefixStyle = { fg: 'magenta' }
-log.headingStyle = { fg: 'white', bg: 'black' }
-
-log.style = {}
-log.levels = {}
-log.disp = {}
-log.addLevel('silly', -Infinity, { inverse: true }, 'sill')
-log.addLevel('verbose', 1000, { fg: 'blue', bg: 'black' }, 'verb')
-log.addLevel('info', 2000, { fg: 'green' })
-log.addLevel('timing', 2500, { fg: 'green', bg: 'black' })
-log.addLevel('http', 3000, { fg: 'green', bg: 'black' })
-log.addLevel('notice', 3500, { fg: 'blue', bg: 'black' })
-log.addLevel('warn', 4000, { fg: 'black', bg: 'yellow' }, 'WARN')
-log.addLevel('error', 5000, { fg: 'red', bg: 'black' }, 'ERR!')
-log.addLevel('silent', Infinity)
-
-// allow 'error' prefix
-log.on('error', function () {})
diff --git a/node_modules/npmlog/package.json b/node_modules/npmlog/package.json
deleted file mode 100644
index ab38758..0000000
--- a/node_modules/npmlog/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_from": "npmlog@^4.0.0",
- "_id": "npmlog@4.1.2",
- "_inBundle": false,
- "_integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
- "_location": "/npmlog",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "npmlog@^4.0.0",
- "name": "npmlog",
- "escapedName": "npmlog",
- "rawSpec": "^4.0.0",
- "saveSpec": null,
- "fetchSpec": "^4.0.0"
- },
- "_requiredBy": [
- "/node-gyp",
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
- "_shasum": "08a7f2a8bf734604779a9efa4ad5cc717abb954b",
- "_spec": "npmlog@^4.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/npm/npmlog/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "are-we-there-yet": "~1.1.2",
- "console-control-strings": "~1.1.0",
- "gauge": "~2.7.3",
- "set-blocking": "~2.0.0"
- },
- "deprecated": false,
- "description": "logger for npm",
- "devDependencies": {
- "standard": "~7.1.2",
- "tap": "~5.7.3"
- },
- "files": [
- "log.js"
- ],
- "homepage": "https://github.com/npm/npmlog#readme",
- "license": "ISC",
- "main": "log.js",
- "name": "npmlog",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/npmlog.git"
- },
- "scripts": {
- "test": "standard && tap test/*.js"
- },
- "version": "4.1.2"
-}
diff --git a/node_modules/number-is-nan/index.js b/node_modules/number-is-nan/index.js
deleted file mode 100644
index 79be4b9..0000000
--- a/node_modules/number-is-nan/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict';
-module.exports = Number.isNaN || function (x) {
- return x !== x;
-};
diff --git a/node_modules/number-is-nan/license b/node_modules/number-is-nan/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/number-is-nan/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/number-is-nan/package.json b/node_modules/number-is-nan/package.json
deleted file mode 100644
index e1b4a65..0000000
--- a/node_modules/number-is-nan/package.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "_from": "number-is-nan@^1.0.0",
- "_id": "number-is-nan@1.0.1",
- "_inBundle": false,
- "_integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
- "_location": "/number-is-nan",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "number-is-nan@^1.0.0",
- "name": "number-is-nan",
- "escapedName": "number-is-nan",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/is-finite",
- "/is-fullwidth-code-point"
- ],
- "_resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
- "_shasum": "097b602b53422a522c1afb8790318336941a011d",
- "_spec": "number-is-nan@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/is-finite",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/number-is-nan/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "ES2015 Number.isNaN() ponyfill",
- "devDependencies": {
- "ava": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/number-is-nan#readme",
- "keywords": [
- "es2015",
- "ecmascript",
- "ponyfill",
- "polyfill",
- "shim",
- "number",
- "is",
- "nan",
- "not"
- ],
- "license": "MIT",
- "name": "number-is-nan",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/number-is-nan.git"
- },
- "scripts": {
- "test": "ava"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/number-is-nan/readme.md b/node_modules/number-is-nan/readme.md
deleted file mode 100644
index 2463508..0000000
--- a/node_modules/number-is-nan/readme.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# number-is-nan [![Build Status](https://travis-ci.org/sindresorhus/number-is-nan.svg?branch=master)](https://travis-ci.org/sindresorhus/number-is-nan)
-
-> ES2015 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) [ponyfill](https://ponyfill.com)
-
-
-## Install
-
-```
-$ npm install --save number-is-nan
-```
-
-
-## Usage
-
-```js
-var numberIsNan = require('number-is-nan');
-
-numberIsNan(NaN);
-//=> true
-
-numberIsNan('unicorn');
-//=> false
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/oauth-sign/LICENSE b/node_modules/oauth-sign/LICENSE
deleted file mode 100644
index a4a9aee..0000000
--- a/node_modules/oauth-sign/LICENSE
+++ /dev/null
@@ -1,55 +0,0 @@
-Apache License
-
-Version 2.0, January 2004
-
-http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-
-You must give any other recipients of the Work or Derivative Works a copy of this License; and
-
-You must cause any modified files to carry prominent notices stating that You changed the files; and
-
-You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-
-If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS \ No newline at end of file
diff --git a/node_modules/oauth-sign/README.md b/node_modules/oauth-sign/README.md
deleted file mode 100644
index 549cbba..0000000
--- a/node_modules/oauth-sign/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-oauth-sign
-==========
-
-OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module.
-
-## Supported Method Signatures
-
-- HMAC-SHA1
-- HMAC-SHA256
-- RSA-SHA1
-- PLAINTEXT \ No newline at end of file
diff --git a/node_modules/oauth-sign/index.js b/node_modules/oauth-sign/index.js
deleted file mode 100644
index 6482f77..0000000
--- a/node_modules/oauth-sign/index.js
+++ /dev/null
@@ -1,146 +0,0 @@
-var crypto = require('crypto')
-
-function sha (key, body, algorithm) {
- return crypto.createHmac(algorithm, key).update(body).digest('base64')
-}
-
-function rsa (key, body) {
- return crypto.createSign('RSA-SHA1').update(body).sign(key, 'base64')
-}
-
-function rfc3986 (str) {
- return encodeURIComponent(str)
- .replace(/!/g,'%21')
- .replace(/\*/g,'%2A')
- .replace(/\(/g,'%28')
- .replace(/\)/g,'%29')
- .replace(/'/g,'%27')
-}
-
-// Maps object to bi-dimensional array
-// Converts { foo: 'A', bar: [ 'b', 'B' ]} to
-// [ ['foo', 'A'], ['bar', 'b'], ['bar', 'B'] ]
-function map (obj) {
- var key, val, arr = []
- for (key in obj) {
- val = obj[key]
- if (Array.isArray(val))
- for (var i = 0; i < val.length; i++)
- arr.push([key, val[i]])
- else if (typeof val === 'object')
- for (var prop in val)
- arr.push([key + '[' + prop + ']', val[prop]])
- else
- arr.push([key, val])
- }
- return arr
-}
-
-// Compare function for sort
-function compare (a, b) {
- return a > b ? 1 : a < b ? -1 : 0
-}
-
-function generateBase (httpMethod, base_uri, params) {
- // adapted from https://dev.twitter.com/docs/auth/oauth and
- // https://dev.twitter.com/docs/auth/creating-signature
-
- // Parameter normalization
- // http://tools.ietf.org/html/rfc5849#section-3.4.1.3.2
- var normalized = map(params)
- // 1. First, the name and value of each parameter are encoded
- .map(function (p) {
- return [ rfc3986(p[0]), rfc3986(p[1] || '') ]
- })
- // 2. The parameters are sorted by name, using ascending byte value
- // ordering. If two or more parameters share the same name, they
- // are sorted by their value.
- .sort(function (a, b) {
- return compare(a[0], b[0]) || compare(a[1], b[1])
- })
- // 3. The name of each parameter is concatenated to its corresponding
- // value using an "=" character (ASCII code 61) as a separator, even
- // if the value is empty.
- .map(function (p) { return p.join('=') })
- // 4. The sorted name/value pairs are concatenated together into a
- // single string by using an "&" character (ASCII code 38) as
- // separator.
- .join('&')
-
- var base = [
- rfc3986(httpMethod ? httpMethod.toUpperCase() : 'GET'),
- rfc3986(base_uri),
- rfc3986(normalized)
- ].join('&')
-
- return base
-}
-
-function hmacsign (httpMethod, base_uri, params, consumer_secret, token_secret) {
- var base = generateBase(httpMethod, base_uri, params)
- var key = [
- consumer_secret || '',
- token_secret || ''
- ].map(rfc3986).join('&')
-
- return sha(key, base, 'sha1')
-}
-
-function hmacsign256 (httpMethod, base_uri, params, consumer_secret, token_secret) {
- var base = generateBase(httpMethod, base_uri, params)
- var key = [
- consumer_secret || '',
- token_secret || ''
- ].map(rfc3986).join('&')
-
- return sha(key, base, 'sha256')
-}
-
-function rsasign (httpMethod, base_uri, params, private_key, token_secret) {
- var base = generateBase(httpMethod, base_uri, params)
- var key = private_key || ''
-
- return rsa(key, base)
-}
-
-function plaintext (consumer_secret, token_secret) {
- var key = [
- consumer_secret || '',
- token_secret || ''
- ].map(rfc3986).join('&')
-
- return key
-}
-
-function sign (signMethod, httpMethod, base_uri, params, consumer_secret, token_secret) {
- var method
- var skipArgs = 1
-
- switch (signMethod) {
- case 'RSA-SHA1':
- method = rsasign
- break
- case 'HMAC-SHA1':
- method = hmacsign
- break
- case 'HMAC-SHA256':
- method = hmacsign256
- break
- case 'PLAINTEXT':
- method = plaintext
- skipArgs = 4
- break
- default:
- throw new Error('Signature method not supported: ' + signMethod)
- }
-
- return method.apply(null, [].slice.call(arguments, skipArgs))
-}
-
-exports.hmacsign = hmacsign
-exports.hmacsign256 = hmacsign256
-exports.rsasign = rsasign
-exports.plaintext = plaintext
-exports.sign = sign
-exports.rfc3986 = rfc3986
-exports.generateBase = generateBase \ No newline at end of file
diff --git a/node_modules/oauth-sign/package.json b/node_modules/oauth-sign/package.json
deleted file mode 100644
index 59d74ed..0000000
--- a/node_modules/oauth-sign/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_from": "oauth-sign@~0.9.0",
- "_id": "oauth-sign@0.9.0",
- "_inBundle": false,
- "_integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==",
- "_location": "/oauth-sign",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "oauth-sign@~0.9.0",
- "name": "oauth-sign",
- "escapedName": "oauth-sign",
- "rawSpec": "~0.9.0",
- "saveSpec": null,
- "fetchSpec": "~0.9.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
- "_shasum": "47a7b016baa68b5fa0ecf3dee08a85c679ac6455",
- "_spec": "oauth-sign@~0.9.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Mikeal Rogers",
- "email": "mikeal.rogers@gmail.com",
- "url": "http://www.futurealoof.com"
- },
- "bugs": {
- "url": "https://github.com/mikeal/oauth-sign/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module.",
- "devDependencies": {},
- "engines": {
- "node": "*"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/mikeal/oauth-sign#readme",
- "license": "Apache-2.0",
- "main": "index.js",
- "name": "oauth-sign",
- "optionalDependencies": {},
- "repository": {
- "url": "git+https://github.com/mikeal/oauth-sign.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "0.9.0"
-}
diff --git a/node_modules/object-assign/index.js b/node_modules/object-assign/index.js
deleted file mode 100644
index 0930cf8..0000000
--- a/node_modules/object-assign/index.js
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
-object-assign
-(c) Sindre Sorhus
-@license MIT
-*/
-
-'use strict';
-/* eslint-disable no-unused-vars */
-var getOwnPropertySymbols = Object.getOwnPropertySymbols;
-var hasOwnProperty = Object.prototype.hasOwnProperty;
-var propIsEnumerable = Object.prototype.propertyIsEnumerable;
-
-function toObject(val) {
- if (val === null || val === undefined) {
- throw new TypeError('Object.assign cannot be called with null or undefined');
- }
-
- return Object(val);
-}
-
-function shouldUseNative() {
- try {
- if (!Object.assign) {
- return false;
- }
-
- // Detect buggy property enumeration order in older V8 versions.
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
- test1[5] = 'de';
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test2 = {};
- for (var i = 0; i < 10; i++) {
- test2['_' + String.fromCharCode(i)] = i;
- }
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
- return test2[n];
- });
- if (order2.join('') !== '0123456789') {
- return false;
- }
-
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
- var test3 = {};
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
- test3[letter] = letter;
- });
- if (Object.keys(Object.assign({}, test3)).join('') !==
- 'abcdefghijklmnopqrst') {
- return false;
- }
-
- return true;
- } catch (err) {
- // We don't expect any of the above to throw, but better to be safe.
- return false;
- }
-}
-
-module.exports = shouldUseNative() ? Object.assign : function (target, source) {
- var from;
- var to = toObject(target);
- var symbols;
-
- for (var s = 1; s < arguments.length; s++) {
- from = Object(arguments[s]);
-
- for (var key in from) {
- if (hasOwnProperty.call(from, key)) {
- to[key] = from[key];
- }
- }
-
- if (getOwnPropertySymbols) {
- symbols = getOwnPropertySymbols(from);
- for (var i = 0; i < symbols.length; i++) {
- if (propIsEnumerable.call(from, symbols[i])) {
- to[symbols[i]] = from[symbols[i]];
- }
- }
- }
- }
-
- return to;
-};
diff --git a/node_modules/object-assign/license b/node_modules/object-assign/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/object-assign/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/object-assign/package.json b/node_modules/object-assign/package.json
deleted file mode 100644
index b693f21..0000000
--- a/node_modules/object-assign/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "object-assign@^4.0.1",
- "_id": "object-assign@4.1.1",
- "_inBundle": false,
- "_integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
- "_location": "/object-assign",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "object-assign@^4.0.1",
- "name": "object-assign",
- "escapedName": "object-assign",
- "rawSpec": "^4.0.1",
- "saveSpec": null,
- "fetchSpec": "^4.0.1"
- },
- "_requiredBy": [
- "/gauge",
- "/meow"
- ],
- "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "_shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863",
- "_spec": "object-assign@^4.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/object-assign/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "ES2015 `Object.assign()` ponyfill",
- "devDependencies": {
- "ava": "^0.16.0",
- "lodash": "^4.16.4",
- "matcha": "^0.7.0",
- "xo": "^0.16.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/object-assign#readme",
- "keywords": [
- "object",
- "assign",
- "extend",
- "properties",
- "es2015",
- "ecmascript",
- "harmony",
- "ponyfill",
- "prollyfill",
- "polyfill",
- "shim",
- "browser"
- ],
- "license": "MIT",
- "name": "object-assign",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/object-assign.git"
- },
- "scripts": {
- "bench": "matcha bench.js",
- "test": "xo && ava"
- },
- "version": "4.1.1"
-}
diff --git a/node_modules/object-assign/readme.md b/node_modules/object-assign/readme.md
deleted file mode 100644
index 1be09d3..0000000
--- a/node_modules/object-assign/readme.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)
-
-> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com)
-
-
-## Use the built-in
-
-Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari),
-support `Object.assign()` :tada:. If you target only those environments, then by all
-means, use `Object.assign()` instead of this package.
-
-
-## Install
-
-```
-$ npm install --save object-assign
-```
-
-
-## Usage
-
-```js
-const objectAssign = require('object-assign');
-
-objectAssign({foo: 0}, {bar: 1});
-//=> {foo: 0, bar: 1}
-
-// multiple sources
-objectAssign({foo: 0}, {bar: 1}, {baz: 2});
-//=> {foo: 0, bar: 1, baz: 2}
-
-// overwrites equal keys
-objectAssign({foo: 0}, {foo: 1}, {foo: 2});
-//=> {foo: 2}
-
-// ignores null and undefined sources
-objectAssign({foo: 0}, null, {bar: 1}, undefined);
-//=> {foo: 0, bar: 1}
-```
-
-
-## API
-
-### objectAssign(target, [source, ...])
-
-Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.
-
-
-## Resources
-
-- [ES2015 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)
-
-
-## Related
-
-- [deep-assign](https://github.com/sindresorhus/deep-assign) - Recursive `Object.assign()`
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/once/LICENSE b/node_modules/once/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/once/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/once/README.md b/node_modules/once/README.md
deleted file mode 100644
index 1f1ffca..0000000
--- a/node_modules/once/README.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# once
-
-Only call a function once.
-
-## usage
-
-```javascript
-var once = require('once')
-
-function load (file, cb) {
- cb = once(cb)
- loader.load('file')
- loader.once('load', cb)
- loader.once('error', cb)
-}
-```
-
-Or add to the Function.prototype in a responsible way:
-
-```javascript
-// only has to be done once
-require('once').proto()
-
-function load (file, cb) {
- cb = cb.once()
- loader.load('file')
- loader.once('load', cb)
- loader.once('error', cb)
-}
-```
-
-Ironically, the prototype feature makes this module twice as
-complicated as necessary.
-
-To check whether you function has been called, use `fn.called`. Once the
-function is called for the first time the return value of the original
-function is saved in `fn.value` and subsequent calls will continue to
-return this value.
-
-```javascript
-var once = require('once')
-
-function load (cb) {
- cb = once(cb)
- var stream = createStream()
- stream.once('data', cb)
- stream.once('end', function () {
- if (!cb.called) cb(new Error('not found'))
- })
-}
-```
-
-## `once.strict(func)`
-
-Throw an error if the function is called twice.
-
-Some functions are expected to be called only once. Using `once` for them would
-potentially hide logical errors.
-
-In the example below, the `greet` function has to call the callback only once:
-
-```javascript
-function greet (name, cb) {
- // return is missing from the if statement
- // when no name is passed, the callback is called twice
- if (!name) cb('Hello anonymous')
- cb('Hello ' + name)
-}
-
-function log (msg) {
- console.log(msg)
-}
-
-// this will print 'Hello anonymous' but the logical error will be missed
-greet(null, once(msg))
-
-// once.strict will print 'Hello anonymous' and throw an error when the callback will be called the second time
-greet(null, once.strict(msg))
-```
diff --git a/node_modules/once/once.js b/node_modules/once/once.js
deleted file mode 100644
index 2354067..0000000
--- a/node_modules/once/once.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var wrappy = require('wrappy')
-module.exports = wrappy(once)
-module.exports.strict = wrappy(onceStrict)
-
-once.proto = once(function () {
- Object.defineProperty(Function.prototype, 'once', {
- value: function () {
- return once(this)
- },
- configurable: true
- })
-
- Object.defineProperty(Function.prototype, 'onceStrict', {
- value: function () {
- return onceStrict(this)
- },
- configurable: true
- })
-})
-
-function once (fn) {
- var f = function () {
- if (f.called) return f.value
- f.called = true
- return f.value = fn.apply(this, arguments)
- }
- f.called = false
- return f
-}
-
-function onceStrict (fn) {
- var f = function () {
- if (f.called)
- throw new Error(f.onceError)
- f.called = true
- return f.value = fn.apply(this, arguments)
- }
- var name = fn.name || 'Function wrapped with `once`'
- f.onceError = name + " shouldn't be called more than once"
- f.called = false
- return f
-}
diff --git a/node_modules/once/package.json b/node_modules/once/package.json
deleted file mode 100644
index 58c95fc..0000000
--- a/node_modules/once/package.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "_from": "once@^1.3.0",
- "_id": "once@1.4.0",
- "_inBundle": false,
- "_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "_location": "/once",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "once@^1.3.0",
- "name": "once",
- "escapedName": "once",
- "rawSpec": "^1.3.0",
- "saveSpec": null,
- "fetchSpec": "^1.3.0"
- },
- "_requiredBy": [
- "/glob",
- "/inflight"
- ],
- "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1",
- "_spec": "once@^1.3.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/glob",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/once/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "wrappy": "1"
- },
- "deprecated": false,
- "description": "Run a function exactly one time",
- "devDependencies": {
- "tap": "^7.0.1"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "once.js"
- ],
- "homepage": "https://github.com/isaacs/once#readme",
- "keywords": [
- "once",
- "function",
- "one",
- "single"
- ],
- "license": "ISC",
- "main": "once.js",
- "name": "once",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/once.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "1.4.0"
-}
diff --git a/node_modules/os-homedir/index.js b/node_modules/os-homedir/index.js
deleted file mode 100644
index 3306616..0000000
--- a/node_modules/os-homedir/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-var os = require('os');
-
-function homedir() {
- var env = process.env;
- var home = env.HOME;
- var user = env.LOGNAME || env.USER || env.LNAME || env.USERNAME;
-
- if (process.platform === 'win32') {
- return env.USERPROFILE || env.HOMEDRIVE + env.HOMEPATH || home || null;
- }
-
- if (process.platform === 'darwin') {
- return home || (user ? '/Users/' + user : null);
- }
-
- if (process.platform === 'linux') {
- return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null));
- }
-
- return home || null;
-}
-
-module.exports = typeof os.homedir === 'function' ? os.homedir : homedir;
diff --git a/node_modules/os-homedir/license b/node_modules/os-homedir/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/os-homedir/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/os-homedir/package.json b/node_modules/os-homedir/package.json
deleted file mode 100644
index d9b50d1..0000000
--- a/node_modules/os-homedir/package.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "_from": "os-homedir@^1.0.0",
- "_id": "os-homedir@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
- "_location": "/os-homedir",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "os-homedir@^1.0.0",
- "name": "os-homedir",
- "escapedName": "os-homedir",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/osenv"
- ],
- "_resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
- "_shasum": "ffbc4988336e0e833de0c168c7ef152121aa7fb3",
- "_spec": "os-homedir@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/osenv",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/os-homedir/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Node.js 4 `os.homedir()` ponyfill",
- "devDependencies": {
- "ava": "*",
- "path-exists": "^2.0.0",
- "xo": "^0.16.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/os-homedir#readme",
- "keywords": [
- "builtin",
- "core",
- "ponyfill",
- "polyfill",
- "shim",
- "os",
- "homedir",
- "home",
- "dir",
- "directory",
- "folder",
- "user",
- "path"
- ],
- "license": "MIT",
- "name": "os-homedir",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/os-homedir.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/os-homedir/readme.md b/node_modules/os-homedir/readme.md
deleted file mode 100644
index 856ae61..0000000
--- a/node_modules/os-homedir/readme.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# os-homedir [![Build Status](https://travis-ci.org/sindresorhus/os-homedir.svg?branch=master)](https://travis-ci.org/sindresorhus/os-homedir)
-
-> Node.js 4 [`os.homedir()`](https://nodejs.org/api/os.html#os_os_homedir) [ponyfill](https://ponyfill.com)
-
-
-## Install
-
-```
-$ npm install --save os-homedir
-```
-
-
-## Usage
-
-```js
-const osHomedir = require('os-homedir');
-
-console.log(osHomedir());
-//=> '/Users/sindresorhus'
-```
-
-
-## Related
-
-- [user-home](https://github.com/sindresorhus/user-home) - Same as this module but caches the result
-- [home-or-tmp](https://github.com/sindresorhus/home-or-tmp) - Get the user home directory with fallback to the system temp directory
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/os-tmpdir/index.js b/node_modules/os-tmpdir/index.js
deleted file mode 100644
index 2077b1c..0000000
--- a/node_modules/os-tmpdir/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-var isWindows = process.platform === 'win32';
-var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
-
-// https://github.com/nodejs/node/blob/3e7a14381497a3b73dda68d05b5130563cdab420/lib/os.js#L25-L43
-module.exports = function () {
- var path;
-
- if (isWindows) {
- path = process.env.TEMP ||
- process.env.TMP ||
- (process.env.SystemRoot || process.env.windir) + '\\temp';
- } else {
- path = process.env.TMPDIR ||
- process.env.TMP ||
- process.env.TEMP ||
- '/tmp';
- }
-
- if (trailingSlashRe.test(path)) {
- path = path.slice(0, -1);
- }
-
- return path;
-};
diff --git a/node_modules/os-tmpdir/license b/node_modules/os-tmpdir/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/os-tmpdir/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/os-tmpdir/package.json b/node_modules/os-tmpdir/package.json
deleted file mode 100644
index 73cdc66..0000000
--- a/node_modules/os-tmpdir/package.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "_from": "os-tmpdir@^1.0.0",
- "_id": "os-tmpdir@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
- "_location": "/os-tmpdir",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "os-tmpdir@^1.0.0",
- "name": "os-tmpdir",
- "escapedName": "os-tmpdir",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/osenv"
- ],
- "_resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "_shasum": "bbe67406c79aa85c5cfec766fe5734555dfa1274",
- "_spec": "os-tmpdir@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/osenv",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/os-tmpdir/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Node.js os.tmpdir() ponyfill",
- "devDependencies": {
- "ava": "*",
- "xo": "^0.16.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/os-tmpdir#readme",
- "keywords": [
- "built-in",
- "core",
- "ponyfill",
- "polyfill",
- "shim",
- "os",
- "tmpdir",
- "tempdir",
- "tmp",
- "temp",
- "dir",
- "directory",
- "env",
- "environment"
- ],
- "license": "MIT",
- "name": "os-tmpdir",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/os-tmpdir.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/os-tmpdir/readme.md b/node_modules/os-tmpdir/readme.md
deleted file mode 100644
index c09f7ed..0000000
--- a/node_modules/os-tmpdir/readme.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# os-tmpdir [![Build Status](https://travis-ci.org/sindresorhus/os-tmpdir.svg?branch=master)](https://travis-ci.org/sindresorhus/os-tmpdir)
-
-> Node.js [`os.tmpdir()`](https://nodejs.org/api/os.html#os_os_tmpdir) [ponyfill](https://ponyfill.com)
-
-Use this instead of `require('os').tmpdir()` to get a consistent behavior on different Node.js versions (even 0.8).
-
-
-## Install
-
-```
-$ npm install --save os-tmpdir
-```
-
-
-## Usage
-
-```js
-const osTmpdir = require('os-tmpdir');
-
-osTmpdir();
-//=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'
-```
-
-
-## API
-
-See the [`os.tmpdir()` docs](https://nodejs.org/api/os.html#os_os_tmpdir).
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/osenv/LICENSE b/node_modules/osenv/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/osenv/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/osenv/README.md b/node_modules/osenv/README.md
deleted file mode 100644
index 08fd900..0000000
--- a/node_modules/osenv/README.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# osenv
-
-Look up environment settings specific to different operating systems.
-
-## Usage
-
-```javascript
-var osenv = require('osenv')
-var path = osenv.path()
-var user = osenv.user()
-// etc.
-
-// Some things are not reliably in the env, and have a fallback command:
-var h = osenv.hostname(function (er, hostname) {
- h = hostname
-})
-// This will still cause it to be memoized, so calling osenv.hostname()
-// is now an immediate operation.
-
-// You can always send a cb, which will get called in the nextTick
-// if it's been memoized, or wait for the fallback data if it wasn't
-// found in the environment.
-osenv.hostname(function (er, hostname) {
- if (er) console.error('error looking up hostname')
- else console.log('this machine calls itself %s', hostname)
-})
-```
-
-## osenv.hostname()
-
-The machine name. Calls `hostname` if not found.
-
-## osenv.user()
-
-The currently logged-in user. Calls `whoami` if not found.
-
-## osenv.prompt()
-
-Either PS1 on unix, or PROMPT on Windows.
-
-## osenv.tmpdir()
-
-The place where temporary files should be created.
-
-## osenv.home()
-
-No place like it.
-
-## osenv.path()
-
-An array of the places that the operating system will search for
-executables.
-
-## osenv.editor()
-
-Return the executable name of the editor program. This uses the EDITOR
-and VISUAL environment variables, and falls back to `vi` on Unix, or
-`notepad.exe` on Windows.
-
-## osenv.shell()
-
-The SHELL on Unix, which Windows calls the ComSpec. Defaults to 'bash'
-or 'cmd'.
diff --git a/node_modules/osenv/osenv.js b/node_modules/osenv/osenv.js
deleted file mode 100644
index 702a95b..0000000
--- a/node_modules/osenv/osenv.js
+++ /dev/null
@@ -1,72 +0,0 @@
-var isWindows = process.platform === 'win32'
-var path = require('path')
-var exec = require('child_process').exec
-var osTmpdir = require('os-tmpdir')
-var osHomedir = require('os-homedir')
-
-// looking up envs is a bit costly.
-// Also, sometimes we want to have a fallback
-// Pass in a callback to wait for the fallback on failures
-// After the first lookup, always returns the same thing.
-function memo (key, lookup, fallback) {
- var fell = false
- var falling = false
- exports[key] = function (cb) {
- var val = lookup()
- if (!val && !fell && !falling && fallback) {
- fell = true
- falling = true
- exec(fallback, function (er, output, stderr) {
- falling = false
- if (er) return // oh well, we tried
- val = output.trim()
- })
- }
- exports[key] = function (cb) {
- if (cb) process.nextTick(cb.bind(null, null, val))
- return val
- }
- if (cb && !falling) process.nextTick(cb.bind(null, null, val))
- return val
- }
-}
-
-memo('user', function () {
- return ( isWindows
- ? process.env.USERDOMAIN + '\\' + process.env.USERNAME
- : process.env.USER
- )
-}, 'whoami')
-
-memo('prompt', function () {
- return isWindows ? process.env.PROMPT : process.env.PS1
-})
-
-memo('hostname', function () {
- return isWindows ? process.env.COMPUTERNAME : process.env.HOSTNAME
-}, 'hostname')
-
-memo('tmpdir', function () {
- return osTmpdir()
-})
-
-memo('home', function () {
- return osHomedir()
-})
-
-memo('path', function () {
- return (process.env.PATH ||
- process.env.Path ||
- process.env.path).split(isWindows ? ';' : ':')
-})
-
-memo('editor', function () {
- return process.env.EDITOR ||
- process.env.VISUAL ||
- (isWindows ? 'notepad.exe' : 'vi')
-})
-
-memo('shell', function () {
- return isWindows ? process.env.ComSpec || 'cmd'
- : process.env.SHELL || 'bash'
-})
diff --git a/node_modules/osenv/package.json b/node_modules/osenv/package.json
deleted file mode 100644
index 98540db..0000000
--- a/node_modules/osenv/package.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "_from": "osenv@0",
- "_id": "osenv@0.1.5",
- "_inBundle": false,
- "_integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
- "_location": "/osenv",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "osenv@0",
- "name": "osenv",
- "escapedName": "osenv",
- "rawSpec": "0",
- "saveSpec": null,
- "fetchSpec": "0"
- },
- "_requiredBy": [
- "/node-gyp"
- ],
- "_resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
- "_shasum": "85cdfafaeb28e8677f416e287592b5f3f49ea410",
- "_spec": "osenv@0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-gyp",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/npm/osenv/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "os-homedir": "^1.0.0",
- "os-tmpdir": "^1.0.0"
- },
- "deprecated": false,
- "description": "Look up environment settings specific to different operating systems",
- "devDependencies": {
- "tap": "^11.1.0"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "osenv.js"
- ],
- "homepage": "https://github.com/npm/osenv#readme",
- "keywords": [
- "environment",
- "variable",
- "home",
- "tmpdir",
- "path",
- "prompt",
- "ps1"
- ],
- "license": "ISC",
- "main": "osenv.js",
- "name": "osenv",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/osenv.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test/*.js"
- },
- "version": "0.1.5"
-}
diff --git a/node_modules/p-limit/index.d.ts b/node_modules/p-limit/index.d.ts
deleted file mode 100644
index 6bbfad4..0000000
--- a/node_modules/p-limit/index.d.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-export interface Limit {
- /**
- @param fn - Promise-returning/async function.
- @param arguments - Any arguments to pass through to `fn`. Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a lot of functions.
- @returns The promise returned by calling `fn(...arguments)`.
- */
- <Arguments extends unknown[], ReturnType>(
- fn: (...arguments: Arguments) => PromiseLike<ReturnType> | ReturnType,
- ...arguments: Arguments
- ): Promise<ReturnType>;
-
- /**
- The number of promises that are currently running.
- */
- readonly activeCount: number;
-
- /**
- The number of promises that are waiting to run (i.e. their internal `fn` was not called yet).
- */
- readonly pendingCount: number;
-
- /**
- Discard pending promises that are waiting to run.
-
- This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.
-
- Note: This does not cancel promises that are already running.
- */
- clearQueue(): void;
-}
-
-/**
-Run multiple promise-returning & async functions with limited concurrency.
-
-@param concurrency - Concurrency limit. Minimum: `1`.
-@returns A `limit` function.
-*/
-export default function pLimit(concurrency: number): Limit;
diff --git a/node_modules/p-limit/index.js b/node_modules/p-limit/index.js
deleted file mode 100644
index 6a72a4c..0000000
--- a/node_modules/p-limit/index.js
+++ /dev/null
@@ -1,57 +0,0 @@
-'use strict';
-const pTry = require('p-try');
-
-const pLimit = concurrency => {
- if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
- return Promise.reject(new TypeError('Expected `concurrency` to be a number from 1 and up'));
- }
-
- const queue = [];
- let activeCount = 0;
-
- const next = () => {
- activeCount--;
-
- if (queue.length > 0) {
- queue.shift()();
- }
- };
-
- const run = (fn, resolve, ...args) => {
- activeCount++;
-
- const result = pTry(fn, ...args);
-
- resolve(result);
-
- result.then(next, next);
- };
-
- const enqueue = (fn, resolve, ...args) => {
- if (activeCount < concurrency) {
- run(fn, resolve, ...args);
- } else {
- queue.push(run.bind(null, fn, resolve, ...args));
- }
- };
-
- const generator = (fn, ...args) => new Promise(resolve => enqueue(fn, resolve, ...args));
- Object.defineProperties(generator, {
- activeCount: {
- get: () => activeCount
- },
- pendingCount: {
- get: () => queue.length
- },
- clearQueue: {
- value: () => {
- queue.length = 0;
- }
- }
- });
-
- return generator;
-};
-
-module.exports = pLimit;
-module.exports.default = pLimit;
diff --git a/node_modules/p-limit/license b/node_modules/p-limit/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/p-limit/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/p-limit/package.json b/node_modules/p-limit/package.json
deleted file mode 100644
index 1f1bf3e..0000000
--- a/node_modules/p-limit/package.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_from": "p-limit@^2.0.0",
- "_id": "p-limit@2.3.0",
- "_inBundle": false,
- "_integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "_location": "/p-limit",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "p-limit@^2.0.0",
- "name": "p-limit",
- "escapedName": "p-limit",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/p-locate"
- ],
- "_resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
- "_shasum": "3dd33c647a214fdfffd835933eb086da0dc21db1",
- "_spec": "p-limit@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/p-locate",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/p-limit/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "p-try": "^2.0.0"
- },
- "deprecated": false,
- "description": "Run multiple promise-returning & async functions with limited concurrency",
- "devDependencies": {
- "ava": "^1.2.1",
- "delay": "^4.1.0",
- "in-range": "^1.0.0",
- "random-int": "^1.0.0",
- "time-span": "^2.0.0",
- "tsd-check": "^0.3.0",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "funding": "https://github.com/sponsors/sindresorhus",
- "homepage": "https://github.com/sindresorhus/p-limit#readme",
- "keywords": [
- "promise",
- "limit",
- "limited",
- "concurrency",
- "throttle",
- "throat",
- "rate",
- "batch",
- "ratelimit",
- "task",
- "queue",
- "async",
- "await",
- "promises",
- "bluebird"
- ],
- "license": "MIT",
- "name": "p-limit",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/p-limit.git"
- },
- "scripts": {
- "test": "xo && ava && tsd-check"
- },
- "version": "2.3.0"
-}
diff --git a/node_modules/p-limit/readme.md b/node_modules/p-limit/readme.md
deleted file mode 100644
index 64aa476..0000000
--- a/node_modules/p-limit/readme.md
+++ /dev/null
@@ -1,101 +0,0 @@
-# p-limit [![Build Status](https://travis-ci.org/sindresorhus/p-limit.svg?branch=master)](https://travis-ci.org/sindresorhus/p-limit)
-
-> Run multiple promise-returning & async functions with limited concurrency
-
-## Install
-
-```
-$ npm install p-limit
-```
-
-## Usage
-
-```js
-const pLimit = require('p-limit');
-
-const limit = pLimit(1);
-
-const input = [
- limit(() => fetchSomething('foo')),
- limit(() => fetchSomething('bar')),
- limit(() => doSomething())
-];
-
-(async () => {
- // Only one promise is run at once
- const result = await Promise.all(input);
- console.log(result);
-})();
-```
-
-## API
-
-### pLimit(concurrency)
-
-Returns a `limit` function.
-
-#### concurrency
-
-Type: `number`\
-Minimum: `1`\
-Default: `Infinity`
-
-Concurrency limit.
-
-### limit(fn, ...args)
-
-Returns the promise returned by calling `fn(...args)`.
-
-#### fn
-
-Type: `Function`
-
-Promise-returning/async function.
-
-#### args
-
-Any arguments to pass through to `fn`.
-
-Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions.
-
-### limit.activeCount
-
-The number of promises that are currently running.
-
-### limit.pendingCount
-
-The number of promises that are waiting to run (i.e. their internal `fn` was not called yet).
-
-### limit.clearQueue()
-
-Discard pending promises that are waiting to run.
-
-This might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.
-
-Note: This does not cancel promises that are already running.
-
-## FAQ
-
-### How is this different from the [`p-queue`](https://github.com/sindresorhus/p-queue) package?
-
-This package is only about limiting the number of concurrent executions, while `p-queue` is a fully featured queue implementation with lots of different options, introspection, and ability to pause the queue.
-
-## Related
-
-- [p-queue](https://github.com/sindresorhus/p-queue) - Promise queue with concurrency control
-- [p-throttle](https://github.com/sindresorhus/p-throttle) - Throttle promise-returning & async functions
-- [p-debounce](https://github.com/sindresorhus/p-debounce) - Debounce promise-returning & async functions
-- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency
-- [More…](https://github.com/sindresorhus/promise-fun)
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-p-limit?utm_source=npm-p-limit&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
diff --git a/node_modules/p-locate/index.js b/node_modules/p-locate/index.js
deleted file mode 100644
index 4bd08aa..0000000
--- a/node_modules/p-locate/index.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-const pLimit = require('p-limit');
-
-class EndError extends Error {
- constructor(value) {
- super();
- this.value = value;
- }
-}
-
-// The input can also be a promise, so we `Promise.resolve()` it
-const testElement = (el, tester) => Promise.resolve(el).then(tester);
-
-// The input can also be a promise, so we `Promise.all()` them both
-const finder = el => Promise.all(el).then(val => val[1] === true && Promise.reject(new EndError(val[0])));
-
-module.exports = (iterable, tester, opts) => {
- opts = Object.assign({
- concurrency: Infinity,
- preserveOrder: true
- }, opts);
-
- const limit = pLimit(opts.concurrency);
-
- // Start all the promises concurrently with optional limit
- const items = [...iterable].map(el => [el, limit(testElement, el, tester)]);
-
- // Check the promises either serially or concurrently
- const checkLimit = pLimit(opts.preserveOrder ? 1 : Infinity);
-
- return Promise.all(items.map(el => checkLimit(finder, el)))
- .then(() => {})
- .catch(err => err instanceof EndError ? err.value : Promise.reject(err));
-};
diff --git a/node_modules/p-locate/license b/node_modules/p-locate/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/p-locate/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/p-locate/package.json b/node_modules/p-locate/package.json
deleted file mode 100644
index 772d52b..0000000
--- a/node_modules/p-locate/package.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "_from": "p-locate@^3.0.0",
- "_id": "p-locate@3.0.0",
- "_inBundle": false,
- "_integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
- "_location": "/p-locate",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "p-locate@^3.0.0",
- "name": "p-locate",
- "escapedName": "p-locate",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/locate-path"
- ],
- "_resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
- "_shasum": "322d69a05c0264b25997d9f40cd8a891ab0064a4",
- "_spec": "p-locate@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/locate-path",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/p-locate/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "p-limit": "^2.0.0"
- },
- "deprecated": false,
- "description": "Get the first fulfilled promise that satisfies the provided testing function",
- "devDependencies": {
- "ava": "*",
- "delay": "^3.0.0",
- "in-range": "^1.0.0",
- "time-span": "^2.0.0",
- "xo": "*"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/p-locate#readme",
- "keywords": [
- "promise",
- "locate",
- "find",
- "finder",
- "search",
- "searcher",
- "test",
- "array",
- "collection",
- "iterable",
- "iterator",
- "race",
- "fulfilled",
- "fastest",
- "async",
- "await",
- "promises",
- "bluebird"
- ],
- "license": "MIT",
- "name": "p-locate",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/p-locate.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.0.0"
-}
diff --git a/node_modules/p-locate/readme.md b/node_modules/p-locate/readme.md
deleted file mode 100644
index 3b0173b..0000000
--- a/node_modules/p-locate/readme.md
+++ /dev/null
@@ -1,88 +0,0 @@
-# p-locate [![Build Status](https://travis-ci.org/sindresorhus/p-locate.svg?branch=master)](https://travis-ci.org/sindresorhus/p-locate)
-
-> Get the first fulfilled promise that satisfies the provided testing function
-
-Think of it like an async version of [`Array#find`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find).
-
-
-## Install
-
-```
-$ npm install p-locate
-```
-
-
-## Usage
-
-Here we find the first file that exists on disk, in array order.
-
-```js
-const pathExists = require('path-exists');
-const pLocate = require('p-locate');
-
-const files = [
- 'unicorn.png',
- 'rainbow.png', // Only this one actually exists on disk
- 'pony.png'
-];
-
-(async () => {
- const foundPath = await pLocate(files, file => pathExists(file));
-
- console.log(foundPath);
- //=> 'rainbow'
-})();
-```
-
-*The above is just an example. Use [`locate-path`](https://github.com/sindresorhus/locate-path) if you need this.*
-
-
-## API
-
-### pLocate(input, tester, [options])
-
-Returns a `Promise` that is fulfilled when `tester` resolves to `true` or the iterable is done, or rejects if any of the promises reject. The fulfilled value is the current iterable value or `undefined` if `tester` never resolved to `true`.
-
-#### input
-
-Type: `Iterable<Promise|any>`
-
-#### tester(element)
-
-Type: `Function`
-
-Expected to return a `Promise<boolean>` or boolean.
-
-#### options
-
-Type: `Object`
-
-##### concurrency
-
-Type: `number`<br>
-Default: `Infinity`<br>
-Minimum: `1`
-
-Number of concurrently pending promises returned by `tester`.
-
-##### preserveOrder
-
-Type: `boolean`<br>
-Default: `true`
-
-Preserve `input` order when searching.
-
-Disable this to improve performance if you don't care about the order.
-
-
-## Related
-
-- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently
-- [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently
-- [p-any](https://github.com/sindresorhus/p-any) - Wait for any promise to be fulfilled
-- [More…](https://github.com/sindresorhus/promise-fun)
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/p-try/index.d.ts b/node_modules/p-try/index.d.ts
deleted file mode 100644
index 2a7319e..0000000
--- a/node_modules/p-try/index.d.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-declare const pTry: {
- /**
- Start a promise chain.
-
- @param fn - The function to run to start the promise chain.
- @param arguments - Arguments to pass to `fn`.
- @returns The value of calling `fn(...arguments)`. If the function throws an error, the returned `Promise` will be rejected with that error.
-
- @example
- ```
- import pTry = require('p-try');
-
- (async () => {
- try {
- const value = await pTry(() => {
- return synchronousFunctionThatMightThrow();
- });
- console.log(value);
- } catch (error) {
- console.error(error);
- }
- })();
- ```
- */
- <ValueType, ArgumentsType extends unknown[]>(
- fn: (...arguments: ArgumentsType) => PromiseLike<ValueType> | ValueType,
- ...arguments: ArgumentsType
- ): Promise<ValueType>;
-
- // TODO: remove this in the next major version, refactor the whole definition to:
- // declare function pTry<ValueType, ArgumentsType extends unknown[]>(
- // fn: (...arguments: ArgumentsType) => PromiseLike<ValueType> | ValueType,
- // ...arguments: ArgumentsType
- // ): Promise<ValueType>;
- // export = pTry;
- default: typeof pTry;
-};
-
-export = pTry;
diff --git a/node_modules/p-try/index.js b/node_modules/p-try/index.js
deleted file mode 100644
index db858da..0000000
--- a/node_modules/p-try/index.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-const pTry = (fn, ...arguments_) => new Promise(resolve => {
- resolve(fn(...arguments_));
-});
-
-module.exports = pTry;
-// TODO: remove this in the next major version
-module.exports.default = pTry;
diff --git a/node_modules/p-try/license b/node_modules/p-try/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/p-try/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/p-try/package.json b/node_modules/p-try/package.json
deleted file mode 100644
index 64f0080..0000000
--- a/node_modules/p-try/package.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "_from": "p-try@^2.0.0",
- "_id": "p-try@2.2.0",
- "_inBundle": false,
- "_integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
- "_location": "/p-try",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "p-try@^2.0.0",
- "name": "p-try",
- "escapedName": "p-try",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/p-limit"
- ],
- "_resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "_shasum": "cb2868540e313d61de58fafbe35ce9004d5540e6",
- "_spec": "p-try@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/p-limit",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/p-try/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "`Start a promise chain",
- "devDependencies": {
- "ava": "^1.4.1",
- "tsd": "^0.7.1",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "homepage": "https://github.com/sindresorhus/p-try#readme",
- "keywords": [
- "promise",
- "try",
- "resolve",
- "function",
- "catch",
- "async",
- "await",
- "promises",
- "settled",
- "ponyfill",
- "polyfill",
- "shim",
- "bluebird"
- ],
- "license": "MIT",
- "name": "p-try",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/p-try.git"
- },
- "scripts": {
- "test": "xo && ava && tsd"
- },
- "version": "2.2.0"
-}
diff --git a/node_modules/p-try/readme.md b/node_modules/p-try/readme.md
deleted file mode 100644
index 4d7bd64..0000000
--- a/node_modules/p-try/readme.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# p-try [![Build Status](https://travis-ci.org/sindresorhus/p-try.svg?branch=master)](https://travis-ci.org/sindresorhus/p-try)
-
-> Start a promise chain
-
-[How is it useful?](http://cryto.net/~joepie91/blog/2016/05/11/what-is-promise-try-and-why-does-it-matter/)
-
-
-## Install
-
-```
-$ npm install p-try
-```
-
-
-## Usage
-
-```js
-const pTry = require('p-try');
-
-(async () => {
- try {
- const value = await pTry(() => {
- return synchronousFunctionThatMightThrow();
- });
- console.log(value);
- } catch (error) {
- console.error(error);
- }
-})();
-```
-
-
-## API
-
-### pTry(fn, ...arguments)
-
-Returns a `Promise` resolved with the value of calling `fn(...arguments)`. If the function throws an error, the returned `Promise` will be rejected with that error.
-
-Support for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions.
-
-#### fn
-
-The function to run to start the promise chain.
-
-#### arguments
-
-Arguments to pass to `fn`.
-
-
-## Related
-
-- [p-finally](https://github.com/sindresorhus/p-finally) - `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome
-- [More…](https://github.com/sindresorhus/promise-fun)
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/parse-json/index.js b/node_modules/parse-json/index.js
deleted file mode 100644
index 04add8a..0000000
--- a/node_modules/parse-json/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
-'use strict';
-var errorEx = require('error-ex');
-var fallback = require('./vendor/parse');
-
-var JSONError = errorEx('JSONError', {
- fileName: errorEx.append('in %s')
-});
-
-module.exports = function (x, reviver, filename) {
- if (typeof reviver === 'string') {
- filename = reviver;
- reviver = null;
- }
-
- try {
- try {
- return JSON.parse(x, reviver);
- } catch (err) {
- fallback.parse(x, {
- mode: 'json',
- reviver: reviver
- });
-
- throw err;
- }
- } catch (err) {
- var jsonErr = new JSONError(err);
-
- if (filename) {
- jsonErr.fileName = filename;
- }
-
- throw jsonErr;
- }
-};
diff --git a/node_modules/parse-json/license b/node_modules/parse-json/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/parse-json/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/parse-json/package.json b/node_modules/parse-json/package.json
deleted file mode 100644
index 36837c3..0000000
--- a/node_modules/parse-json/package.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "_from": "parse-json@^2.2.0",
- "_id": "parse-json@2.2.0",
- "_inBundle": false,
- "_integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
- "_location": "/parse-json",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "parse-json@^2.2.0",
- "name": "parse-json",
- "escapedName": "parse-json",
- "rawSpec": "^2.2.0",
- "saveSpec": null,
- "fetchSpec": "^2.2.0"
- },
- "_requiredBy": [
- "/load-json-file"
- ],
- "_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
- "_shasum": "f480f40434ef80741f8469099f8dea18f55a4dc9",
- "_spec": "parse-json@^2.2.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/load-json-file",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/parse-json/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "error-ex": "^1.2.0"
- },
- "deprecated": false,
- "description": "Parse JSON with more helpful errors",
- "devDependencies": {
- "ava": "0.0.4",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js",
- "vendor"
- ],
- "homepage": "https://github.com/sindresorhus/parse-json#readme",
- "keywords": [
- "parse",
- "json",
- "graceful",
- "error",
- "message",
- "humanize",
- "friendly",
- "helpful",
- "string",
- "str"
- ],
- "license": "MIT",
- "name": "parse-json",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/parse-json.git"
- },
- "scripts": {
- "test": "xo && node test.js"
- },
- "version": "2.2.0",
- "xo": {
- "ignores": [
- "vendor/**"
- ]
- }
-}
diff --git a/node_modules/parse-json/readme.md b/node_modules/parse-json/readme.md
deleted file mode 100644
index ca96e60..0000000
--- a/node_modules/parse-json/readme.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# parse-json [![Build Status](https://travis-ci.org/sindresorhus/parse-json.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-json)
-
-> Parse JSON with more helpful errors
-
-
-## Install
-
-```
-$ npm install --save parse-json
-```
-
-
-## Usage
-
-```js
-var parseJson = require('parse-json');
-var json = '{\n\t"foo": true,\n}';
-
-
-JSON.parse(json);
-/*
-undefined:3
-}
-^
-SyntaxError: Unexpected token }
-*/
-
-
-parseJson(json);
-/*
-JSONError: Trailing comma in object at 3:1
-}
-^
-*/
-
-
-parseJson(json, 'foo.json');
-/*
-JSONError: Trailing comma in object at 3:1 in foo.json
-}
-^
-*/
-
-
-// you can also add the filename at a later point
-try {
- parseJson(json);
-} catch (err) {
- err.fileName = 'foo.json';
- throw err;
-}
-/*
-JSONError: Trailing comma in object at 3:1 in foo.json
-}
-^
-*/
-```
-
-## API
-
-### parseJson(input, [reviver], [filename])
-
-#### input
-
-Type: `string`
-
-#### reviver
-
-Type: `function`
-
-Prescribes how the value originally produced by parsing is transformed, before being returned. See [`JSON.parse` docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter
-) for more.
-
-#### filename
-
-Type: `string`
-
-Filename displayed in the error message.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/parse-json/vendor/parse.js b/node_modules/parse-json/vendor/parse.js
deleted file mode 100644
index 5f9fe99..0000000
--- a/node_modules/parse-json/vendor/parse.js
+++ /dev/null
@@ -1,752 +0,0 @@
-/*
- * Author: Alex Kocharin <alex@kocharin.ru>
- * GIT: https://github.com/rlidwka/jju
- * License: WTFPL, grab your copy here: http://www.wtfpl.net/txt/copying/
- */
-
-// RTFM: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
-
-var Uni = require('./unicode')
-
-function isHexDigit(x) {
- return (x >= '0' && x <= '9')
- || (x >= 'A' && x <= 'F')
- || (x >= 'a' && x <= 'f')
-}
-
-function isOctDigit(x) {
- return x >= '0' && x <= '7'
-}
-
-function isDecDigit(x) {
- return x >= '0' && x <= '9'
-}
-
-var unescapeMap = {
- '\'': '\'',
- '"' : '"',
- '\\': '\\',
- 'b' : '\b',
- 'f' : '\f',
- 'n' : '\n',
- 'r' : '\r',
- 't' : '\t',
- 'v' : '\v',
- '/' : '/',
-}
-
-function formatError(input, msg, position, lineno, column, json5) {
- var result = msg + ' at ' + (lineno + 1) + ':' + (column + 1)
- , tmppos = position - column - 1
- , srcline = ''
- , underline = ''
-
- var isLineTerminator = json5 ? Uni.isLineTerminator : Uni.isLineTerminatorJSON
-
- // output no more than 70 characters before the wrong ones
- if (tmppos < position - 70) {
- tmppos = position - 70
- }
-
- while (1) {
- var chr = input[++tmppos]
-
- if (isLineTerminator(chr) || tmppos === input.length) {
- if (position >= tmppos) {
- // ending line error, so show it after the last char
- underline += '^'
- }
- break
- }
- srcline += chr
-
- if (position === tmppos) {
- underline += '^'
- } else if (position > tmppos) {
- underline += input[tmppos] === '\t' ? '\t' : ' '
- }
-
- // output no more than 78 characters on the string
- if (srcline.length > 78) break
- }
-
- return result + '\n' + srcline + '\n' + underline
-}
-
-function parse(input, options) {
- // parse as a standard JSON mode
- var json5 = !(options.mode === 'json' || options.legacy)
- var isLineTerminator = json5 ? Uni.isLineTerminator : Uni.isLineTerminatorJSON
- var isWhiteSpace = json5 ? Uni.isWhiteSpace : Uni.isWhiteSpaceJSON
-
- var length = input.length
- , lineno = 0
- , linestart = 0
- , position = 0
- , stack = []
-
- var tokenStart = function() {}
- var tokenEnd = function(v) {return v}
-
- /* tokenize({
- raw: '...',
- type: 'whitespace'|'comment'|'key'|'literal'|'separator'|'newline',
- value: 'number'|'string'|'whatever',
- path: [...],
- })
- */
- if (options._tokenize) {
- ;(function() {
- var start = null
- tokenStart = function() {
- if (start !== null) throw Error('internal error, token overlap')
- start = position
- }
-
- tokenEnd = function(v, type) {
- if (start != position) {
- var hash = {
- raw: input.substr(start, position-start),
- type: type,
- stack: stack.slice(0),
- }
- if (v !== undefined) hash.value = v
- options._tokenize.call(null, hash)
- }
- start = null
- return v
- }
- })()
- }
-
- function fail(msg) {
- var column = position - linestart
-
- if (!msg) {
- if (position < length) {
- var token = '\'' +
- JSON
- .stringify(input[position])
- .replace(/^"|"$/g, '')
- .replace(/'/g, "\\'")
- .replace(/\\"/g, '"')
- + '\''
-
- if (!msg) msg = 'Unexpected token ' + token
- } else {
- if (!msg) msg = 'Unexpected end of input'
- }
- }
-
- var error = SyntaxError(formatError(input, msg, position, lineno, column, json5))
- error.row = lineno + 1
- error.column = column + 1
- throw error
- }
-
- function newline(chr) {
- // account for <cr><lf>
- if (chr === '\r' && input[position] === '\n') position++
- linestart = position
- lineno++
- }
-
- function parseGeneric() {
- var result
-
- while (position < length) {
- tokenStart()
- var chr = input[position++]
-
- if (chr === '"' || (chr === '\'' && json5)) {
- return tokenEnd(parseString(chr), 'literal')
-
- } else if (chr === '{') {
- tokenEnd(undefined, 'separator')
- return parseObject()
-
- } else if (chr === '[') {
- tokenEnd(undefined, 'separator')
- return parseArray()
-
- } else if (chr === '-'
- || chr === '.'
- || isDecDigit(chr)
- // + number Infinity NaN
- || (json5 && (chr === '+' || chr === 'I' || chr === 'N'))
- ) {
- return tokenEnd(parseNumber(), 'literal')
-
- } else if (chr === 'n') {
- parseKeyword('null')
- return tokenEnd(null, 'literal')
-
- } else if (chr === 't') {
- parseKeyword('true')
- return tokenEnd(true, 'literal')
-
- } else if (chr === 'f') {
- parseKeyword('false')
- return tokenEnd(false, 'literal')
-
- } else {
- position--
- return tokenEnd(undefined)
- }
- }
- }
-
- function parseKey() {
- var result
-
- while (position < length) {
- tokenStart()
- var chr = input[position++]
-
- if (chr === '"' || (chr === '\'' && json5)) {
- return tokenEnd(parseString(chr), 'key')
-
- } else if (chr === '{') {
- tokenEnd(undefined, 'separator')
- return parseObject()
-
- } else if (chr === '[') {
- tokenEnd(undefined, 'separator')
- return parseArray()
-
- } else if (chr === '.'
- || isDecDigit(chr)
- ) {
- return tokenEnd(parseNumber(true), 'key')
-
- } else if (json5
- && Uni.isIdentifierStart(chr) || (chr === '\\' && input[position] === 'u')) {
- // unicode char or a unicode sequence
- var rollback = position - 1
- var result = parseIdentifier()
-
- if (result === undefined) {
- position = rollback
- return tokenEnd(undefined)
- } else {
- return tokenEnd(result, 'key')
- }
-
- } else {
- position--
- return tokenEnd(undefined)
- }
- }
- }
-
- function skipWhiteSpace() {
- tokenStart()
- while (position < length) {
- var chr = input[position++]
-
- if (isLineTerminator(chr)) {
- position--
- tokenEnd(undefined, 'whitespace')
- tokenStart()
- position++
- newline(chr)
- tokenEnd(undefined, 'newline')
- tokenStart()
-
- } else if (isWhiteSpace(chr)) {
- // nothing
-
- } else if (chr === '/'
- && json5
- && (input[position] === '/' || input[position] === '*')
- ) {
- position--
- tokenEnd(undefined, 'whitespace')
- tokenStart()
- position++
- skipComment(input[position++] === '*')
- tokenEnd(undefined, 'comment')
- tokenStart()
-
- } else {
- position--
- break
- }
- }
- return tokenEnd(undefined, 'whitespace')
- }
-
- function skipComment(multi) {
- while (position < length) {
- var chr = input[position++]
-
- if (isLineTerminator(chr)) {
- // LineTerminator is an end of singleline comment
- if (!multi) {
- // let parent function deal with newline
- position--
- return
- }
-
- newline(chr)
-
- } else if (chr === '*' && multi) {
- // end of multiline comment
- if (input[position] === '/') {
- position++
- return
- }
-
- } else {
- // nothing
- }
- }
-
- if (multi) {
- fail('Unclosed multiline comment')
- }
- }
-
- function parseKeyword(keyword) {
- // keyword[0] is not checked because it should've checked earlier
- var _pos = position
- var len = keyword.length
- for (var i=1; i<len; i++) {
- if (position >= length || keyword[i] != input[position]) {
- position = _pos-1
- fail()
- }
- position++
- }
- }
-
- function parseObject() {
- var result = options.null_prototype ? Object.create(null) : {}
- , empty_object = {}
- , is_non_empty = false
-
- while (position < length) {
- skipWhiteSpace()
- var item1 = parseKey()
- skipWhiteSpace()
- tokenStart()
- var chr = input[position++]
- tokenEnd(undefined, 'separator')
-
- if (chr === '}' && item1 === undefined) {
- if (!json5 && is_non_empty) {
- position--
- fail('Trailing comma in object')
- }
- return result
-
- } else if (chr === ':' && item1 !== undefined) {
- skipWhiteSpace()
- stack.push(item1)
- var item2 = parseGeneric()
- stack.pop()
-
- if (item2 === undefined) fail('No value found for key ' + item1)
- if (typeof(item1) !== 'string') {
- if (!json5 || typeof(item1) !== 'number') {
- fail('Wrong key type: ' + item1)
- }
- }
-
- if ((item1 in empty_object || empty_object[item1] != null) && options.reserved_keys !== 'replace') {
- if (options.reserved_keys === 'throw') {
- fail('Reserved key: ' + item1)
- } else {
- // silently ignore it
- }
- } else {
- if (typeof(options.reviver) === 'function') {
- item2 = options.reviver.call(null, item1, item2)
- }
-
- if (item2 !== undefined) {
- is_non_empty = true
- Object.defineProperty(result, item1, {
- value: item2,
- enumerable: true,
- configurable: true,
- writable: true,
- })
- }
- }
-
- skipWhiteSpace()
-
- tokenStart()
- var chr = input[position++]
- tokenEnd(undefined, 'separator')
-
- if (chr === ',') {
- continue
-
- } else if (chr === '}') {
- return result
-
- } else {
- fail()
- }
-
- } else {
- position--
- fail()
- }
- }
-
- fail()
- }
-
- function parseArray() {
- var result = []
-
- while (position < length) {
- skipWhiteSpace()
- stack.push(result.length)
- var item = parseGeneric()
- stack.pop()
- skipWhiteSpace()
- tokenStart()
- var chr = input[position++]
- tokenEnd(undefined, 'separator')
-
- if (item !== undefined) {
- if (typeof(options.reviver) === 'function') {
- item = options.reviver.call(null, String(result.length), item)
- }
- if (item === undefined) {
- result.length++
- item = true // hack for check below, not included into result
- } else {
- result.push(item)
- }
- }
-
- if (chr === ',') {
- if (item === undefined) {
- fail('Elisions are not supported')
- }
-
- } else if (chr === ']') {
- if (!json5 && item === undefined && result.length) {
- position--
- fail('Trailing comma in array')
- }
- return result
-
- } else {
- position--
- fail()
- }
- }
- }
-
- function parseNumber() {
- // rewind because we don't know first char
- position--
-
- var start = position
- , chr = input[position++]
- , t
-
- var to_num = function(is_octal) {
- var str = input.substr(start, position - start)
-
- if (is_octal) {
- var result = parseInt(str.replace(/^0o?/, ''), 8)
- } else {
- var result = Number(str)
- }
-
- if (Number.isNaN(result)) {
- position--
- fail('Bad numeric literal - "' + input.substr(start, position - start + 1) + '"')
- } else if (!json5 && !str.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i)) {
- // additional restrictions imposed by json
- position--
- fail('Non-json numeric literal - "' + input.substr(start, position - start + 1) + '"')
- } else {
- return result
- }
- }
-
- // ex: -5982475.249875e+29384
- // ^ skipping this
- if (chr === '-' || (chr === '+' && json5)) chr = input[position++]
-
- if (chr === 'N' && json5) {
- parseKeyword('NaN')
- return NaN
- }
-
- if (chr === 'I' && json5) {
- parseKeyword('Infinity')
-
- // returning +inf or -inf
- return to_num()
- }
-
- if (chr >= '1' && chr <= '9') {
- // ex: -5982475.249875e+29384
- // ^^^ skipping these
- while (position < length && isDecDigit(input[position])) position++
- chr = input[position++]
- }
-
- // special case for leading zero: 0.123456
- if (chr === '0') {
- chr = input[position++]
-
- // new syntax, "0o777" old syntax, "0777"
- var is_octal = chr === 'o' || chr === 'O' || isOctDigit(chr)
- var is_hex = chr === 'x' || chr === 'X'
-
- if (json5 && (is_octal || is_hex)) {
- while (position < length
- && (is_hex ? isHexDigit : isOctDigit)( input[position] )
- ) position++
-
- var sign = 1
- if (input[start] === '-') {
- sign = -1
- start++
- } else if (input[start] === '+') {
- start++
- }
-
- return sign * to_num(is_octal)
- }
- }
-
- if (chr === '.') {
- // ex: -5982475.249875e+29384
- // ^^^ skipping these
- while (position < length && isDecDigit(input[position])) position++
- chr = input[position++]
- }
-
- if (chr === 'e' || chr === 'E') {
- chr = input[position++]
- if (chr === '-' || chr === '+') position++
- // ex: -5982475.249875e+29384
- // ^^^ skipping these
- while (position < length && isDecDigit(input[position])) position++
- chr = input[position++]
- }
-
- // we have char in the buffer, so count for it
- position--
- return to_num()
- }
-
- function parseIdentifier() {
- // rewind because we don't know first char
- position--
-
- var result = ''
-
- while (position < length) {
- var chr = input[position++]
-
- if (chr === '\\'
- && input[position] === 'u'
- && isHexDigit(input[position+1])
- && isHexDigit(input[position+2])
- && isHexDigit(input[position+3])
- && isHexDigit(input[position+4])
- ) {
- // UnicodeEscapeSequence
- chr = String.fromCharCode(parseInt(input.substr(position+1, 4), 16))
- position += 5
- }
-
- if (result.length) {
- // identifier started
- if (Uni.isIdentifierPart(chr)) {
- result += chr
- } else {
- position--
- return result
- }
-
- } else {
- if (Uni.isIdentifierStart(chr)) {
- result += chr
- } else {
- return undefined
- }
- }
- }
-
- fail()
- }
-
- function parseString(endChar) {
- // 7.8.4 of ES262 spec
- var result = ''
-
- while (position < length) {
- var chr = input[position++]
-
- if (chr === endChar) {
- return result
-
- } else if (chr === '\\') {
- if (position >= length) fail()
- chr = input[position++]
-
- if (unescapeMap[chr] && (json5 || (chr != 'v' && chr != "'"))) {
- result += unescapeMap[chr]
-
- } else if (json5 && isLineTerminator(chr)) {
- // line continuation
- newline(chr)
-
- } else if (chr === 'u' || (chr === 'x' && json5)) {
- // unicode/character escape sequence
- var off = chr === 'u' ? 4 : 2
-
- // validation for \uXXXX
- for (var i=0; i<off; i++) {
- if (position >= length) fail()
- if (!isHexDigit(input[position])) fail('Bad escape sequence')
- position++
- }
-
- result += String.fromCharCode(parseInt(input.substr(position-off, off), 16))
- } else if (json5 && isOctDigit(chr)) {
- if (chr < '4' && isOctDigit(input[position]) && isOctDigit(input[position+1])) {
- // three-digit octal
- var digits = 3
- } else if (isOctDigit(input[position])) {
- // two-digit octal
- var digits = 2
- } else {
- var digits = 1
- }
- position += digits - 1
- result += String.fromCharCode(parseInt(input.substr(position-digits, digits), 8))
- /*if (!isOctDigit(input[position])) {
- // \0 is allowed still
- result += '\0'
- } else {
- fail('Octal literals are not supported')
- }*/
-
- } else if (json5) {
- // \X -> x
- result += chr
-
- } else {
- position--
- fail()
- }
-
- } else if (isLineTerminator(chr)) {
- fail()
-
- } else {
- if (!json5 && chr.charCodeAt(0) < 32) {
- position--
- fail('Unexpected control character')
- }
-
- // SourceCharacter but not one of " or \ or LineTerminator
- result += chr
- }
- }
-
- fail()
- }
-
- skipWhiteSpace()
- var return_value = parseGeneric()
- if (return_value !== undefined || position < length) {
- skipWhiteSpace()
-
- if (position >= length) {
- if (typeof(options.reviver) === 'function') {
- return_value = options.reviver.call(null, '', return_value)
- }
- return return_value
- } else {
- fail()
- }
-
- } else {
- if (position) {
- fail('No data, only a whitespace')
- } else {
- fail('No data, empty input')
- }
- }
-}
-
-/*
- * parse(text, options)
- * or
- * parse(text, reviver)
- *
- * where:
- * text - string
- * options - object
- * reviver - function
- */
-module.exports.parse = function parseJSON(input, options) {
- // support legacy functions
- if (typeof(options) === 'function') {
- options = {
- reviver: options
- }
- }
-
- if (input === undefined) {
- // parse(stringify(x)) should be equal x
- // with JSON functions it is not 'cause of undefined
- // so we're fixing it
- return undefined
- }
-
- // JSON.parse compat
- if (typeof(input) !== 'string') input = String(input)
- if (options == null) options = {}
- if (options.reserved_keys == null) options.reserved_keys = 'ignore'
-
- if (options.reserved_keys === 'throw' || options.reserved_keys === 'ignore') {
- if (options.null_prototype == null) {
- options.null_prototype = true
- }
- }
-
- try {
- return parse(input, options)
- } catch(err) {
- // jju is a recursive parser, so JSON.parse("{{{{{{{") could blow up the stack
- //
- // this catch is used to skip all those internal calls
- if (err instanceof SyntaxError && err.row != null && err.column != null) {
- var old_err = err
- err = SyntaxError(old_err.message)
- err.column = old_err.column
- err.row = old_err.row
- }
- throw err
- }
-}
-
-module.exports.tokenize = function tokenizeJSON(input, options) {
- if (options == null) options = {}
-
- options._tokenize = function(smth) {
- if (options._addstack) smth.stack.unshift.apply(smth.stack, options._addstack)
- tokens.push(smth)
- }
-
- var tokens = []
- tokens.data = module.exports.parse(input, options)
- return tokens
-}
-
diff --git a/node_modules/parse-json/vendor/unicode.js b/node_modules/parse-json/vendor/unicode.js
deleted file mode 100644
index 1a29143..0000000
--- a/node_modules/parse-json/vendor/unicode.js
+++ /dev/null
@@ -1,71 +0,0 @@
-
-// This is autogenerated with esprima tools, see:
-// https://github.com/ariya/esprima/blob/master/esprima.js
-//
-// PS: oh God, I hate Unicode
-
-// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierStart:
-
-var Uni = module.exports
-
-module.exports.isWhiteSpace = function isWhiteSpace(x) {
- // section 7.2, table 2
- return x === '\u0020'
- || x === '\u00A0'
- || x === '\uFEFF' // <-- this is not a Unicode WS, only a JS one
- || (x >= '\u0009' && x <= '\u000D') // 9 A B C D
-
- // + whitespace characters from unicode, category Zs
- || x === '\u1680'
- || x === '\u180E'
- || (x >= '\u2000' && x <= '\u200A') // 0 1 2 3 4 5 6 7 8 9 A
- || x === '\u2028'
- || x === '\u2029'
- || x === '\u202F'
- || x === '\u205F'
- || x === '\u3000'
-}
-
-module.exports.isWhiteSpaceJSON = function isWhiteSpaceJSON(x) {
- return x === '\u0020'
- || x === '\u0009'
- || x === '\u000A'
- || x === '\u000D'
-}
-
-module.exports.isLineTerminator = function isLineTerminator(x) {
- // ok, here is the part when JSON is wrong
- // section 7.3, table 3
- return x === '\u000A'
- || x === '\u000D'
- || x === '\u2028'
- || x === '\u2029'
-}
-
-module.exports.isLineTerminatorJSON = function isLineTerminatorJSON(x) {
- return x === '\u000A'
- || x === '\u000D'
-}
-
-module.exports.isIdentifierStart = function isIdentifierStart(x) {
- return x === '$'
- || x === '_'
- || (x >= 'A' && x <= 'Z')
- || (x >= 'a' && x <= 'z')
- || (x >= '\u0080' && Uni.NonAsciiIdentifierStart.test(x))
-}
-
-module.exports.isIdentifierPart = function isIdentifierPart(x) {
- return x === '$'
- || x === '_'
- || (x >= 'A' && x <= 'Z')
- || (x >= 'a' && x <= 'z')
- || (x >= '0' && x <= '9') // <-- addition to Start
- || (x >= '\u0080' && Uni.NonAsciiIdentifierPart.test(x))
-}
-
-module.exports.NonAsciiIdentifierStart = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/
-
-// ECMAScript 5.1/Unicode v6.3.0 NonAsciiIdentifierPart:
-
-module.exports.NonAsciiIdentifierPart = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/
diff --git a/node_modules/path-exists/index.js b/node_modules/path-exists/index.js
deleted file mode 100644
index a7e680a..0000000
--- a/node_modules/path-exists/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-var fs = require('fs');
-var Promise = require('pinkie-promise');
-
-module.exports = function (fp) {
- var fn = typeof fs.access === 'function' ? fs.access : fs.stat;
-
- return new Promise(function (resolve) {
- fn(fp, function (err) {
- resolve(!err);
- });
- });
-};
-
-module.exports.sync = function (fp) {
- var fn = typeof fs.accessSync === 'function' ? fs.accessSync : fs.statSync;
-
- try {
- fn(fp);
- return true;
- } catch (err) {
- return false;
- }
-};
diff --git a/node_modules/path-exists/license b/node_modules/path-exists/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/path-exists/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/path-exists/package.json b/node_modules/path-exists/package.json
deleted file mode 100644
index b24c0a0..0000000
--- a/node_modules/path-exists/package.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "_from": "path-exists@^2.0.0",
- "_id": "path-exists@2.1.0",
- "_inBundle": false,
- "_integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
- "_location": "/path-exists",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "path-exists@^2.0.0",
- "name": "path-exists",
- "escapedName": "path-exists",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/find-up"
- ],
- "_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
- "_shasum": "0feb6c64f0fc518d9a754dd5efb62c7022761f4b",
- "_spec": "path-exists@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/find-up",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/path-exists/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "pinkie-promise": "^2.0.0"
- },
- "deprecated": false,
- "description": "Check if a path exists",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/path-exists#readme",
- "keywords": [
- "path",
- "exists",
- "exist",
- "file",
- "filepath",
- "fs",
- "filesystem",
- "file-system",
- "access",
- "stat"
- ],
- "license": "MIT",
- "name": "path-exists",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/path-exists.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "2.1.0"
-}
diff --git a/node_modules/path-exists/readme.md b/node_modules/path-exists/readme.md
deleted file mode 100644
index 8fbcd68..0000000
--- a/node_modules/path-exists/readme.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# path-exists [![Build Status](https://travis-ci.org/sindresorhus/path-exists.svg?branch=master)](https://travis-ci.org/sindresorhus/path-exists)
-
-> Check if a path exists
-
-Because [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), but there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it.
-
-Never use this before handling a file though:
-
-> In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there.
-
-
-## Install
-
-```
-$ npm install --save path-exists
-```
-
-
-## Usage
-
-```js
-// foo.js
-var pathExists = require('path-exists');
-
-pathExists('foo.js').then(function (exists) {
- console.log(exists);
- //=> true
-});
-```
-
-
-## API
-
-### pathExists(path)
-
-Returns a promise that resolves to a boolean of whether the path exists.
-
-### pathExists.sync(path)
-
-Returns a boolean of whether the path exists.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/path-is-absolute/index.js b/node_modules/path-is-absolute/index.js
deleted file mode 100644
index 22aa6c3..0000000
--- a/node_modules/path-is-absolute/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-function posix(path) {
- return path.charAt(0) === '/';
-}
-
-function win32(path) {
- // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56
- var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
- var result = splitDeviceRe.exec(path);
- var device = result[1] || '';
- var isUnc = Boolean(device && device.charAt(1) !== ':');
-
- // UNC paths are always absolute
- return Boolean(result[2] || isUnc);
-}
-
-module.exports = process.platform === 'win32' ? win32 : posix;
-module.exports.posix = posix;
-module.exports.win32 = win32;
diff --git a/node_modules/path-is-absolute/license b/node_modules/path-is-absolute/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/path-is-absolute/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/path-is-absolute/package.json b/node_modules/path-is-absolute/package.json
deleted file mode 100644
index 650021a..0000000
--- a/node_modules/path-is-absolute/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "path-is-absolute@^1.0.0",
- "_id": "path-is-absolute@1.0.1",
- "_inBundle": false,
- "_integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
- "_location": "/path-is-absolute",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "path-is-absolute@^1.0.0",
- "name": "path-is-absolute",
- "escapedName": "path-is-absolute",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/glob"
- ],
- "_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "_shasum": "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f",
- "_spec": "path-is-absolute@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/glob",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/path-is-absolute/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Node.js 0.12 path.isAbsolute() ponyfill",
- "devDependencies": {
- "xo": "^0.16.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/path-is-absolute#readme",
- "keywords": [
- "path",
- "paths",
- "file",
- "dir",
- "absolute",
- "isabsolute",
- "is-absolute",
- "built-in",
- "util",
- "utils",
- "core",
- "ponyfill",
- "polyfill",
- "shim",
- "is",
- "detect",
- "check"
- ],
- "license": "MIT",
- "name": "path-is-absolute",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/path-is-absolute.git"
- },
- "scripts": {
- "test": "xo && node test.js"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/path-is-absolute/readme.md b/node_modules/path-is-absolute/readme.md
deleted file mode 100644
index 8dbdf5f..0000000
--- a/node_modules/path-is-absolute/readme.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# path-is-absolute [![Build Status](https://travis-ci.org/sindresorhus/path-is-absolute.svg?branch=master)](https://travis-ci.org/sindresorhus/path-is-absolute)
-
-> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) [ponyfill](https://ponyfill.com)
-
-
-## Install
-
-```
-$ npm install --save path-is-absolute
-```
-
-
-## Usage
-
-```js
-const pathIsAbsolute = require('path-is-absolute');
-
-// Running on Linux
-pathIsAbsolute('/home/foo');
-//=> true
-pathIsAbsolute('C:/Users/foo');
-//=> false
-
-// Running on Windows
-pathIsAbsolute('C:/Users/foo');
-//=> true
-pathIsAbsolute('/home/foo');
-//=> false
-
-// Running on any OS
-pathIsAbsolute.posix('/home/foo');
-//=> true
-pathIsAbsolute.posix('C:/Users/foo');
-//=> false
-pathIsAbsolute.win32('C:/Users/foo');
-//=> true
-pathIsAbsolute.win32('/home/foo');
-//=> false
-```
-
-
-## API
-
-See the [`path.isAbsolute()` docs](http://nodejs.org/api/path.html#path_path_isabsolute_path).
-
-### pathIsAbsolute(path)
-
-### pathIsAbsolute.posix(path)
-
-POSIX specific version.
-
-### pathIsAbsolute.win32(path)
-
-Windows specific version.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/path-parse/.travis.yml b/node_modules/path-parse/.travis.yml
deleted file mode 100644
index dae31da..0000000
--- a/node_modules/path-parse/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-language: node_js
-node_js:
- - "0.12"
- - "0.11"
- - "0.10"
- - "0.10.12"
- - "0.8"
- - "0.6"
- - "iojs"
diff --git a/node_modules/path-parse/LICENSE b/node_modules/path-parse/LICENSE
deleted file mode 100644
index 810f3db..0000000
--- a/node_modules/path-parse/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Javier Blanco
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/path-parse/README.md b/node_modules/path-parse/README.md
deleted file mode 100644
index 05097f8..0000000
--- a/node_modules/path-parse/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# path-parse [![Build Status](https://travis-ci.org/jbgutierrez/path-parse.svg?branch=master)](https://travis-ci.org/jbgutierrez/path-parse)
-
-> Node.js [`path.parse(pathString)`](https://nodejs.org/api/path.html#path_path_parse_pathstring) [ponyfill](https://ponyfill.com).
-
-## Install
-
-```
-$ npm install --save path-parse
-```
-
-## Usage
-
-```js
-var pathParse = require('path-parse');
-
-pathParse('/home/user/dir/file.txt');
-//=> {
-// root : "/",
-// dir : "/home/user/dir",
-// base : "file.txt",
-// ext : ".txt",
-// name : "file"
-// }
-```
-
-## API
-
-See [`path.parse(pathString)`](https://nodejs.org/api/path.html#path_path_parse_pathstring) docs.
-
-### pathParse(path)
-
-### pathParse.posix(path)
-
-The Posix specific version.
-
-### pathParse.win32(path)
-
-The Windows specific version.
-
-## License
-
-MIT © [Javier Blanco](http://jbgutierrez.info)
diff --git a/node_modules/path-parse/index.js b/node_modules/path-parse/index.js
deleted file mode 100644
index 3b7601f..0000000
--- a/node_modules/path-parse/index.js
+++ /dev/null
@@ -1,93 +0,0 @@
-'use strict';
-
-var isWindows = process.platform === 'win32';
-
-// Regex to split a windows path into three parts: [*, device, slash,
-// tail] windows-only
-var splitDeviceRe =
- /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
-
-// Regex to split the tail part of the above into [*, dir, basename, ext]
-var splitTailRe =
- /^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/;
-
-var win32 = {};
-
-// Function to split a filename into [root, dir, basename, ext]
-function win32SplitPath(filename) {
- // Separate device+slash from tail
- var result = splitDeviceRe.exec(filename),
- device = (result[1] || '') + (result[2] || ''),
- tail = result[3] || '';
- // Split the tail into dir, basename and extension
- var result2 = splitTailRe.exec(tail),
- dir = result2[1],
- basename = result2[2],
- ext = result2[3];
- return [device, dir, basename, ext];
-}
-
-win32.parse = function(pathString) {
- if (typeof pathString !== 'string') {
- throw new TypeError(
- "Parameter 'pathString' must be a string, not " + typeof pathString
- );
- }
- var allParts = win32SplitPath(pathString);
- if (!allParts || allParts.length !== 4) {
- throw new TypeError("Invalid path '" + pathString + "'");
- }
- return {
- root: allParts[0],
- dir: allParts[0] + allParts[1].slice(0, -1),
- base: allParts[2],
- ext: allParts[3],
- name: allParts[2].slice(0, allParts[2].length - allParts[3].length)
- };
-};
-
-
-
-// Split a filename into [root, dir, basename, ext], unix version
-// 'root' is just a slash, or nothing.
-var splitPathRe =
- /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
-var posix = {};
-
-
-function posixSplitPath(filename) {
- return splitPathRe.exec(filename).slice(1);
-}
-
-
-posix.parse = function(pathString) {
- if (typeof pathString !== 'string') {
- throw new TypeError(
- "Parameter 'pathString' must be a string, not " + typeof pathString
- );
- }
- var allParts = posixSplitPath(pathString);
- if (!allParts || allParts.length !== 4) {
- throw new TypeError("Invalid path '" + pathString + "'");
- }
- allParts[1] = allParts[1] || '';
- allParts[2] = allParts[2] || '';
- allParts[3] = allParts[3] || '';
-
- return {
- root: allParts[0],
- dir: allParts[0] + allParts[1].slice(0, -1),
- base: allParts[2],
- ext: allParts[3],
- name: allParts[2].slice(0, allParts[2].length - allParts[3].length)
- };
-};
-
-
-if (isWindows)
- module.exports = win32.parse;
-else /* posix */
- module.exports = posix.parse;
-
-module.exports.posix = posix.parse;
-module.exports.win32 = win32.parse;
diff --git a/node_modules/path-parse/package.json b/node_modules/path-parse/package.json
deleted file mode 100644
index 186f0d3..0000000
--- a/node_modules/path-parse/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "_from": "path-parse@^1.0.6",
- "_id": "path-parse@1.0.6",
- "_inBundle": false,
- "_integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
- "_location": "/path-parse",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "path-parse@^1.0.6",
- "name": "path-parse",
- "escapedName": "path-parse",
- "rawSpec": "^1.0.6",
- "saveSpec": null,
- "fetchSpec": "^1.0.6"
- },
- "_requiredBy": [
- "/resolve"
- ],
- "_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
- "_shasum": "d62dbb5679405d72c4737ec58600e9ddcf06d24c",
- "_spec": "path-parse@^1.0.6",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/resolve",
- "author": {
- "name": "Javier Blanco",
- "email": "http://jbgutierrez.info"
- },
- "bugs": {
- "url": "https://github.com/jbgutierrez/path-parse/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Node.js path.parse() ponyfill",
- "homepage": "https://github.com/jbgutierrez/path-parse#readme",
- "keywords": [
- "path",
- "paths",
- "file",
- "dir",
- "parse",
- "built-in",
- "util",
- "utils",
- "core",
- "ponyfill",
- "polyfill",
- "shim"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "path-parse",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jbgutierrez/path-parse.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "1.0.6"
-}
diff --git a/node_modules/path-parse/test.js b/node_modules/path-parse/test.js
deleted file mode 100644
index 0b30c12..0000000
--- a/node_modules/path-parse/test.js
+++ /dev/null
@@ -1,77 +0,0 @@
-var assert = require('assert');
-var pathParse = require('./index');
-
-var winParseTests = [
- [{ root: 'C:\\', dir: 'C:\\path\\dir', base: 'index.html', ext: '.html', name: 'index' }, 'C:\\path\\dir\\index.html'],
- [{ root: 'C:\\', dir: 'C:\\another_path\\DIR\\1\\2\\33', base: 'index', ext: '', name: 'index' }, 'C:\\another_path\\DIR\\1\\2\\33\\index'],
- [{ root: '', dir: 'another_path\\DIR with spaces\\1\\2\\33', base: 'index', ext: '', name: 'index' }, 'another_path\\DIR with spaces\\1\\2\\33\\index'],
- [{ root: '\\', dir: '\\foo', base: 'C:', ext: '', name: 'C:' }, '\\foo\\C:'],
- [{ root: '', dir: '', base: 'file', ext: '', name: 'file' }, 'file'],
- [{ root: '', dir: '.', base: 'file', ext: '', name: 'file' }, '.\\file'],
-
- // unc
- [{ root: '\\\\server\\share\\', dir: '\\\\server\\share\\', base: 'file_path', ext: '', name: 'file_path' }, '\\\\server\\share\\file_path'],
- [{ root: '\\\\server two\\shared folder\\', dir: '\\\\server two\\shared folder\\', base: 'file path.zip', ext: '.zip', name: 'file path' }, '\\\\server two\\shared folder\\file path.zip'],
- [{ root: '\\\\teela\\admin$\\', dir: '\\\\teela\\admin$\\', base: 'system32', ext: '', name: 'system32' }, '\\\\teela\\admin$\\system32'],
- [{ root: '\\\\?\\UNC\\', dir: '\\\\?\\UNC\\server', base: 'share', ext: '', name: 'share' }, '\\\\?\\UNC\\server\\share']
-];
-
-var winSpecialCaseFormatTests = [
- [{dir: 'some\\dir'}, 'some\\dir\\'],
- [{base: 'index.html'}, 'index.html'],
- [{}, '']
-];
-
-var unixParseTests = [
- [{ root: '/', dir: '/home/user/dir', base: 'file.txt', ext: '.txt', name: 'file' }, '/home/user/dir/file.txt'],
- [{ root: '/', dir: '/home/user/a dir', base: 'another File.zip', ext: '.zip', name: 'another File' }, '/home/user/a dir/another File.zip'],
- [{ root: '/', dir: '/home/user/a dir/', base: 'another&File.', ext: '.', name: 'another&File' }, '/home/user/a dir//another&File.'],
- [{ root: '/', dir: '/home/user/a$$$dir/', base: 'another File.zip', ext: '.zip', name: 'another File' }, '/home/user/a$$$dir//another File.zip'],
- [{ root: '', dir: 'user/dir', base: 'another File.zip', ext: '.zip', name: 'another File' }, 'user/dir/another File.zip'],
- [{ root: '', dir: '', base: 'file', ext: '', name: 'file' }, 'file'],
- [{ root: '', dir: '', base: '.\\file', ext: '', name: '.\\file' }, '.\\file'],
- [{ root: '', dir: '.', base: 'file', ext: '', name: 'file' }, './file'],
- [{ root: '', dir: '', base: 'C:\\foo', ext: '', name: 'C:\\foo' }, 'C:\\foo']
-];
-
-var unixSpecialCaseFormatTests = [
- [{dir: 'some/dir'}, 'some/dir/'],
- [{base: 'index.html'}, 'index.html'],
- [{}, '']
-];
-
-var errors = [
- {input: null, message: /Parameter 'pathString' must be a string, not/},
- {input: {}, message: /Parameter 'pathString' must be a string, not object/},
- {input: true, message: /Parameter 'pathString' must be a string, not boolean/},
- {input: 1, message: /Parameter 'pathString' must be a string, not number/},
- {input: undefined, message: /Parameter 'pathString' must be a string, not undefined/},
-];
-
-checkParseFormat(pathParse.win32, winParseTests);
-checkParseFormat(pathParse.posix, unixParseTests);
-checkErrors(pathParse.win32);
-checkErrors(pathParse.posix);
-
-function checkErrors(parse) {
- errors.forEach(function(errorCase) {
- try {
- parse(errorCase.input);
- } catch(err) {
- assert.ok(err instanceof TypeError);
- assert.ok(
- errorCase.message.test(err.message),
- 'expected ' + errorCase.message + ' to match ' + err.message
- );
- return;
- }
-
- assert.fail('should have thrown');
- });
-}
-
-function checkParseFormat(parse, testCases) {
- testCases.forEach(function(testCase) {
- assert.deepEqual(parse(testCase[1]), testCase[0]);
- });
-}
diff --git a/node_modules/path-type/index.js b/node_modules/path-type/index.js
deleted file mode 100644
index 207a1d1..0000000
--- a/node_modules/path-type/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-var fs = require('graceful-fs');
-var Promise = require('pinkie-promise');
-var pify = require('pify');
-
-function type(fn, fn2, fp) {
- if (typeof fp !== 'string') {
- return Promise.reject(new TypeError('Expected a string'));
- }
-
- return pify(fs[fn], Promise)(fp).then(function (stats) {
- return stats[fn2]();
- });
-}
-
-function typeSync(fn, fn2, fp) {
- if (typeof fp !== 'string') {
- throw new TypeError('Expected a string');
- }
-
- return fs[fn](fp)[fn2]();
-}
-
-exports.file = type.bind(null, 'stat', 'isFile');
-exports.dir = type.bind(null, 'stat', 'isDirectory');
-exports.symlink = type.bind(null, 'lstat', 'isSymbolicLink');
-exports.fileSync = typeSync.bind(null, 'statSync', 'isFile');
-exports.dirSync = typeSync.bind(null, 'statSync', 'isDirectory');
-exports.symlinkSync = typeSync.bind(null, 'lstatSync', 'isSymbolicLink');
diff --git a/node_modules/path-type/license b/node_modules/path-type/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/path-type/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/path-type/package.json b/node_modules/path-type/package.json
deleted file mode 100644
index bb8733b..0000000
--- a/node_modules/path-type/package.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_from": "path-type@^1.0.0",
- "_id": "path-type@1.1.0",
- "_inBundle": false,
- "_integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
- "_location": "/path-type",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "path-type@^1.0.0",
- "name": "path-type",
- "escapedName": "path-type",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/read-pkg"
- ],
- "_resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
- "_shasum": "59c44f7ee491da704da415da5a4070ba4f8fe441",
- "_spec": "path-type@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/read-pkg",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/path-type/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "graceful-fs": "^4.1.2",
- "pify": "^2.0.0",
- "pinkie-promise": "^2.0.0"
- },
- "deprecated": false,
- "description": "Check if a path is a file, directory, or symlink",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/path-type#readme",
- "keywords": [
- "path",
- "fs",
- "type",
- "is",
- "check",
- "directory",
- "dir",
- "file",
- "filepath",
- "symlink",
- "symbolic",
- "link",
- "stat",
- "stats",
- "filesystem"
- ],
- "license": "MIT",
- "name": "path-type",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/path-type.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.1.0",
- "xo": {
- "ignores": [
- "test.js"
- ]
- }
-}
diff --git a/node_modules/path-type/readme.md b/node_modules/path-type/readme.md
deleted file mode 100644
index eac12d6..0000000
--- a/node_modules/path-type/readme.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# path-type [![Build Status](https://travis-ci.org/sindresorhus/path-type.svg?branch=master)](https://travis-ci.org/sindresorhus/path-type)
-
-> Check if a path is a file, directory, or symlink
-
-
-## Install
-
-```
-$ npm install --save path-type
-```
-
-
-## Usage
-
-```js
-var pathType = require('path-type');
-
-pathType.file('package.json').then(function (isFile) {
- console.log(isFile);
- //=> true
-})
-```
-
-
-## API
-
-### .file(path)
-### .dir(path)
-### .symlink(path)
-
-Returns a promise that resolves to a boolean of whether the path is the checked type.
-
-### .fileSync(path)
-### .dirSync(path)
-### .symlinkSync(path)
-
-Returns a boolean of whether the path is the checked type.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/performance-now/.npmignore b/node_modules/performance-now/.npmignore
deleted file mode 100644
index 496ee2c..0000000
--- a/node_modules/performance-now/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-.DS_Store \ No newline at end of file
diff --git a/node_modules/performance-now/.tm_properties b/node_modules/performance-now/.tm_properties
deleted file mode 100644
index 4b8eb3f..0000000
--- a/node_modules/performance-now/.tm_properties
+++ /dev/null
@@ -1,7 +0,0 @@
-excludeDirectories = "{.git,node_modules}"
-excludeInFolderSearch = "{excludeDirectories,lib}"
-
-includeFiles = "{.gitignore,.npmignore,.travis.yml}"
-
-[ attr.untitled ]
-fileType = 'source.coffee' \ No newline at end of file
diff --git a/node_modules/performance-now/.travis.yml b/node_modules/performance-now/.travis.yml
deleted file mode 100644
index 1543c19..0000000
--- a/node_modules/performance-now/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
- - "node"
- - "6"
- - "4"
- - "0.12"
diff --git a/node_modules/performance-now/README.md b/node_modules/performance-now/README.md
deleted file mode 100644
index 28080f8..0000000
--- a/node_modules/performance-now/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# performance-now [![Build Status](https://travis-ci.org/braveg1rl/performance-now.png?branch=master)](https://travis-ci.org/braveg1rl/performance-now) [![Dependency Status](https://david-dm.org/braveg1rl/performance-now.png)](https://david-dm.org/braveg1rl/performance-now)
-
-Implements a function similar to `performance.now` (based on `process.hrtime`).
-
-Modern browsers have a `window.performance` object with - among others - a `now` method which gives time in milliseconds, but with sub-millisecond precision. This module offers the same function based on the Node.js native `process.hrtime` function.
-
-Using `process.hrtime` means that the reported time will be monotonically increasing, and not subject to clock-drift.
-
-According to the [High Resolution Time specification](http://www.w3.org/TR/hr-time/), the number of milliseconds reported by `performance.now` should be relative to the value of `performance.timing.navigationStart`.
-
-In the current version of the module (2.0) the reported time is relative to the time the current Node process has started (inferred from `process.uptime()`).
-
-Version 1.0 reported a different time. The reported time was relative to the time the module was loaded (i.e. the time it was first `require`d). If you need this functionality, version 1.0 is still available on NPM.
-
-## Example usage
-
-```javascript
-var now = require("performance-now")
-var start = now()
-var end = now()
-console.log(start.toFixed(3)) // the number of milliseconds the current node process is running
-console.log((start-end).toFixed(3)) // ~ 0.002 on my system
-```
-
-Running the now function two times right after each other yields a time difference of a few microseconds. Given this overhead, I think it's best to assume that the precision of intervals computed with this method is not higher than 10 microseconds, if you don't know the exact overhead on your own system.
-
-## License
-
-performance-now is released under the [MIT License](http://opensource.org/licenses/MIT).
-Copyright (c) 2017 Braveg1rl
diff --git a/node_modules/performance-now/lib/performance-now.js b/node_modules/performance-now/lib/performance-now.js
deleted file mode 100644
index 37f569d..0000000
--- a/node_modules/performance-now/lib/performance-now.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Generated by CoffeeScript 1.12.2
-(function() {
- var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
-
- if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
- module.exports = function() {
- return performance.now();
- };
- } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
- module.exports = function() {
- return (getNanoSeconds() - nodeLoadTime) / 1e6;
- };
- hrtime = process.hrtime;
- getNanoSeconds = function() {
- var hr;
- hr = hrtime();
- return hr[0] * 1e9 + hr[1];
- };
- moduleLoadTime = getNanoSeconds();
- upTime = process.uptime() * 1e9;
- nodeLoadTime = moduleLoadTime - upTime;
- } else if (Date.now) {
- module.exports = function() {
- return Date.now() - loadTime;
- };
- loadTime = Date.now();
- } else {
- module.exports = function() {
- return new Date().getTime() - loadTime;
- };
- loadTime = new Date().getTime();
- }
-
-}).call(this);
-
-//# sourceMappingURL=performance-now.js.map
diff --git a/node_modules/performance-now/lib/performance-now.js.map b/node_modules/performance-now/lib/performance-now.js.map
deleted file mode 100644
index bef8362..0000000
--- a/node_modules/performance-now/lib/performance-now.js.map
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "version": 3,
- "file": "performance-now.js",
- "sourceRoot": "..",
- "sources": [
- "src/performance-now.coffee"
- ],
- "names": [],
- "mappings": ";AAAA;AAAA,MAAA;;EAAA,IAAG,4DAAA,IAAiB,WAAW,CAAC,GAAhC;IACE,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAG,WAAW,CAAC,GAAZ,CAAA;IAAH,EADnB;GAAA,MAEK,IAAG,oDAAA,IAAa,OAAO,CAAC,MAAxB;IACH,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAG,CAAC,cAAA,CAAA,CAAA,GAAmB,YAApB,CAAA,GAAoC;IAAvC;IACjB,MAAA,GAAS,OAAO,CAAC;IACjB,cAAA,GAAiB,SAAA;AACf,UAAA;MAAA,EAAA,GAAK,MAAA,CAAA;aACL,EAAG,CAAA,CAAA,CAAH,GAAQ,GAAR,GAAc,EAAG,CAAA,CAAA;IAFF;IAGjB,cAAA,GAAiB,cAAA,CAAA;IACjB,MAAA,GAAS,OAAO,CAAC,MAAR,CAAA,CAAA,GAAmB;IAC5B,YAAA,GAAe,cAAA,GAAiB,OAR7B;GAAA,MASA,IAAG,IAAI,CAAC,GAAR;IACH,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAG,IAAI,CAAC,GAAL,CAAA,CAAA,GAAa;IAAhB;IACjB,QAAA,GAAW,IAAI,CAAC,GAAL,CAAA,EAFR;GAAA,MAAA;IAIH,MAAM,CAAC,OAAP,GAAiB,SAAA;aAAO,IAAA,IAAA,CAAA,CAAM,CAAC,OAAP,CAAA,CAAJ,GAAuB;IAA1B;IACjB,QAAA,GAAe,IAAA,IAAA,CAAA,CAAM,CAAC,OAAP,CAAA,EALZ;;AAXL"
-} \ No newline at end of file
diff --git a/node_modules/performance-now/license.txt b/node_modules/performance-now/license.txt
deleted file mode 100644
index 0bf51b4..0000000
--- a/node_modules/performance-now/license.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-Copyright (c) 2013 Braveg1rl
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/performance-now/package.json b/node_modules/performance-now/package.json
deleted file mode 100644
index 8b8ae88..0000000
--- a/node_modules/performance-now/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "_from": "performance-now@^2.1.0",
- "_id": "performance-now@2.1.0",
- "_inBundle": false,
- "_integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
- "_location": "/performance-now",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "performance-now@^2.1.0",
- "name": "performance-now",
- "escapedName": "performance-now",
- "rawSpec": "^2.1.0",
- "saveSpec": null,
- "fetchSpec": "^2.1.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
- "_shasum": "6309f4e0e5fa913ec1c69307ae364b4b377c9e7b",
- "_spec": "performance-now@^2.1.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Braveg1rl",
- "email": "braveg1rl@outlook.com"
- },
- "bugs": {
- "url": "https://github.com/braveg1rl/performance-now/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Implements performance.now (based on process.hrtime).",
- "devDependencies": {
- "bluebird": "^3.4.7",
- "call-delayed": "^1.0.0",
- "chai": "^3.5.0",
- "chai-increasing": "^1.2.0",
- "coffee-script": "~1.12.2",
- "mocha": "~3.2.0",
- "pre-commit": "^1.2.2"
- },
- "homepage": "https://github.com/braveg1rl/performance-now",
- "keywords": [],
- "license": "MIT",
- "main": "lib/performance-now.js",
- "name": "performance-now",
- "optionalDependencies": {},
- "private": false,
- "repository": {
- "type": "git",
- "url": "git://github.com/braveg1rl/performance-now.git"
- },
- "scripts": {
- "build": "mkdir -p lib && rm -rf lib/* && node_modules/.bin/coffee --compile -m --output lib/ src/",
- "prepublish": "npm test",
- "pretest": "npm run build",
- "test": "mocha",
- "watch": "coffee --watch --compile --output lib/ src/"
- },
- "typings": "src/index.d.ts",
- "version": "2.1.0"
-}
diff --git a/node_modules/performance-now/src/index.d.ts b/node_modules/performance-now/src/index.d.ts
deleted file mode 100644
index 68dca8e..0000000
--- a/node_modules/performance-now/src/index.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-// This file describes the package to typescript.
-
-/**
- * Returns the number of milliseconds since the page was loaded (if browser)
- * or the node process was started.
- */
-declare function now(): number;
-export = now;
diff --git a/node_modules/performance-now/src/performance-now.coffee b/node_modules/performance-now/src/performance-now.coffee
deleted file mode 100644
index a8e075a..0000000
--- a/node_modules/performance-now/src/performance-now.coffee
+++ /dev/null
@@ -1,17 +0,0 @@
-if performance? and performance.now
- module.exports = -> performance.now()
-else if process? and process.hrtime
- module.exports = -> (getNanoSeconds() - nodeLoadTime) / 1e6
- hrtime = process.hrtime
- getNanoSeconds = ->
- hr = hrtime()
- hr[0] * 1e9 + hr[1]
- moduleLoadTime = getNanoSeconds()
- upTime = process.uptime() * 1e9
- nodeLoadTime = moduleLoadTime - upTime
-else if Date.now
- module.exports = -> Date.now() - loadTime
- loadTime = Date.now()
-else
- module.exports = -> new Date().getTime() - loadTime
- loadTime = new Date().getTime()
diff --git a/node_modules/performance-now/test/mocha.opts b/node_modules/performance-now/test/mocha.opts
deleted file mode 100644
index 55d8492..0000000
--- a/node_modules/performance-now/test/mocha.opts
+++ /dev/null
@@ -1,3 +0,0 @@
---require coffee-script/register
---compilers coffee:coffee-script/register
---reporter spec \ No newline at end of file
diff --git a/node_modules/performance-now/test/performance-now.coffee b/node_modules/performance-now/test/performance-now.coffee
deleted file mode 100644
index c99e95c..0000000
--- a/node_modules/performance-now/test/performance-now.coffee
+++ /dev/null
@@ -1,43 +0,0 @@
-chai = require "chai"
-chai.use(require "chai-increasing")
-{assert,expect} = chai
-Bluebird = require "bluebird"
-
-now = require "../"
-
-getUptime = -> process.uptime() * 1e3
-
-describe "now", ->
- it "reported time differs at most 1ms from a freshly reported uptime", ->
- assert.isAtMost Math.abs(now()-getUptime()), 1
-
- it "two subsequent calls return an increasing number", ->
- assert.isBelow now(), now()
-
- it "has less than 10 microseconds overhead", ->
- assert.isBelow Math.abs(now() - now()), 0.010
-
- it "can be called 1 million times in under 1 second (averaging under 1 microsecond per call)", ->
- @timeout 1000
- now() for [0...1e6]
- undefined
-
- it "for 10,000 numbers, number n is never bigger than number n-1", ->
- stamps = (now() for [1...10000])
- expect(stamps).to.be.increasing
-
- it "shows that at least 0.2 ms has passed after a timeout of 1 ms", ->
- earlier = now()
- Bluebird.resolve().delay(1).then -> assert.isAbove (now()-earlier), 0.2
-
- it "shows that at most 3 ms has passed after a timeout of 1 ms", ->
- earlier = now()
- Bluebird.resolve().delay(1).then -> assert.isBelow (now()-earlier), 3
-
- it "shows that at least 190ms ms has passed after a timeout of 200ms", ->
- earlier = now()
- Bluebird.resolve().delay(200).then -> assert.isAbove (now()-earlier), 190
-
- it "shows that at most 220 ms has passed after a timeout of 200ms", ->
- earlier = now()
- Bluebird.resolve().delay(200).then -> assert.isBelow (now()-earlier), 220
diff --git a/node_modules/performance-now/test/scripts.coffee b/node_modules/performance-now/test/scripts.coffee
deleted file mode 100644
index 16312f1..0000000
--- a/node_modules/performance-now/test/scripts.coffee
+++ /dev/null
@@ -1,27 +0,0 @@
-Bluebird = require "bluebird"
-exec = require("child_process").execSync
-{assert} = require "chai"
-
-describe "scripts/initital-value.coffee (module.uptime(), expressed in milliseconds)", ->
- result = exec("./test/scripts/initial-value.coffee").toString().trim()
- it "printed #{result}", ->
- it "printed a value above 100", -> assert.isAbove result, 100
- it "printed a value below 350", -> assert.isBelow result, 350
-
-describe "scripts/delayed-require.coffee (sum of uptime and 250 ms delay`)", ->
- result = exec("./test/scripts/delayed-require.coffee").toString().trim()
- it "printed #{result}", ->
- it "printed a value above 350", -> assert.isAbove result, 350
- it "printed a value below 600", -> assert.isBelow result, 600
-
-describe "scripts/delayed-call.coffee (sum of uptime and 250 ms delay`)", ->
- result = exec("./test/scripts/delayed-call.coffee").toString().trim()
- it "printed #{result}", ->
- it "printed a value above 350", -> assert.isAbove result, 350
- it "printed a value below 600", -> assert.isBelow result, 600
-
-describe "scripts/difference.coffee", ->
- result = exec("./test/scripts/difference.coffee").toString().trim()
- it "printed #{result}", ->
- it "printed a value above 0.005", -> assert.isAbove result, 0.005
- it "printed a value below 0.07", -> assert.isBelow result, 0.07
diff --git a/node_modules/performance-now/test/scripts/delayed-call.coffee b/node_modules/performance-now/test/scripts/delayed-call.coffee
deleted file mode 100755
index 0c3bab5..0000000
--- a/node_modules/performance-now/test/scripts/delayed-call.coffee
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env ./node_modules/.bin/coffee
-
-###
-Expected output is a number above 350 and below 600.
-The time reported is relative to the time the node.js process was started
-this is approximately at `(Date.now() process.uptime() * 1000)`
-###
-
-delay = require "call-delayed"
-now = require "../../lib/performance-now"
-delay 250, -> console.log now().toFixed 3
diff --git a/node_modules/performance-now/test/scripts/delayed-require.coffee b/node_modules/performance-now/test/scripts/delayed-require.coffee
deleted file mode 100755
index 3ddee95..0000000
--- a/node_modules/performance-now/test/scripts/delayed-require.coffee
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env ./node_modules/.bin/coffee
-
-###
-Expected output is a number above 350 and below 600.
-The time reported is relative to the time the node.js process was started
-this is approximately at `(Date.now() process.uptime() * 1000)`
-###
-
-delay = require "call-delayed"
-delay 250, ->
- now = require "../../lib/performance-now"
- console.log now().toFixed 3
diff --git a/node_modules/performance-now/test/scripts/difference.coffee b/node_modules/performance-now/test/scripts/difference.coffee
deleted file mode 100755
index 0b5edf6..0000000
--- a/node_modules/performance-now/test/scripts/difference.coffee
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env ./node_modules/.bin/coffee
-
-# Expected output is above 0.005 and below 0.07.
-
-now = require('../../lib/performance-now')
-console.log -(now() - now()).toFixed 3
diff --git a/node_modules/performance-now/test/scripts/initial-value.coffee b/node_modules/performance-now/test/scripts/initial-value.coffee
deleted file mode 100755
index 19ef4e0..0000000
--- a/node_modules/performance-now/test/scripts/initial-value.coffee
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env ./node_modules/.bin/coffee
-
-###
-Expected output is a number above 100 and below 350.
-The time reported is relative to the time the node.js process was started
-this is approximately at `(Date.now() process.uptime() * 1000)`
-###
-
-now = require '../../lib/performance-now'
-console.log now().toFixed 3
diff --git a/node_modules/pify/index.js b/node_modules/pify/index.js
deleted file mode 100644
index 7c720eb..0000000
--- a/node_modules/pify/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-'use strict';
-
-var processFn = function (fn, P, opts) {
- return function () {
- var that = this;
- var args = new Array(arguments.length);
-
- for (var i = 0; i < arguments.length; i++) {
- args[i] = arguments[i];
- }
-
- return new P(function (resolve, reject) {
- args.push(function (err, result) {
- if (err) {
- reject(err);
- } else if (opts.multiArgs) {
- var results = new Array(arguments.length - 1);
-
- for (var i = 1; i < arguments.length; i++) {
- results[i - 1] = arguments[i];
- }
-
- resolve(results);
- } else {
- resolve(result);
- }
- });
-
- fn.apply(that, args);
- });
- };
-};
-
-var pify = module.exports = function (obj, P, opts) {
- if (typeof P !== 'function') {
- opts = P;
- P = Promise;
- }
-
- opts = opts || {};
- opts.exclude = opts.exclude || [/.+Sync$/];
-
- var filter = function (key) {
- var match = function (pattern) {
- return typeof pattern === 'string' ? key === pattern : pattern.test(key);
- };
-
- return opts.include ? opts.include.some(match) : !opts.exclude.some(match);
- };
-
- var ret = typeof obj === 'function' ? function () {
- if (opts.excludeMain) {
- return obj.apply(this, arguments);
- }
-
- return processFn(obj, P, opts).apply(this, arguments);
- } : {};
-
- return Object.keys(obj).reduce(function (ret, key) {
- var x = obj[key];
-
- ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x;
-
- return ret;
- }, ret);
-};
-
-pify.all = pify;
diff --git a/node_modules/pify/license b/node_modules/pify/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/pify/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/pify/package.json b/node_modules/pify/package.json
deleted file mode 100644
index d14842e..0000000
--- a/node_modules/pify/package.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_from": "pify@^2.0.0",
- "_id": "pify@2.3.0",
- "_inBundle": false,
- "_integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
- "_location": "/pify",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "pify@^2.0.0",
- "name": "pify",
- "escapedName": "pify",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/load-json-file",
- "/path-type"
- ],
- "_resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
- "_shasum": "ed141a6ac043a849ea588498e7dca8b15330e90c",
- "_spec": "pify@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/load-json-file",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/pify/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Promisify a callback-style function",
- "devDependencies": {
- "ava": "*",
- "pinkie-promise": "^1.0.0",
- "v8-natives": "0.0.2",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/pify#readme",
- "keywords": [
- "promise",
- "promises",
- "promisify",
- "denodify",
- "denodeify",
- "callback",
- "cb",
- "node",
- "then",
- "thenify",
- "convert",
- "transform",
- "wrap",
- "wrapper",
- "bind",
- "to",
- "async",
- "es2015"
- ],
- "license": "MIT",
- "name": "pify",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/pify.git"
- },
- "scripts": {
- "optimization-test": "node --allow-natives-syntax optimization-test.js",
- "test": "xo && ava && npm run optimization-test"
- },
- "version": "2.3.0"
-}
diff --git a/node_modules/pify/readme.md b/node_modules/pify/readme.md
deleted file mode 100644
index c79ca8b..0000000
--- a/node_modules/pify/readme.md
+++ /dev/null
@@ -1,119 +0,0 @@
-# pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify)
-
-> Promisify a callback-style function
-
-
-## Install
-
-```
-$ npm install --save pify
-```
-
-
-## Usage
-
-```js
-const fs = require('fs');
-const pify = require('pify');
-
-// promisify a single function
-
-pify(fs.readFile)('package.json', 'utf8').then(data => {
- console.log(JSON.parse(data).name);
- //=> 'pify'
-});
-
-// or promisify all methods in a module
-
-pify(fs).readFile('package.json', 'utf8').then(data => {
- console.log(JSON.parse(data).name);
- //=> 'pify'
-});
-```
-
-
-## API
-
-### pify(input, [promiseModule], [options])
-
-Returns a promise wrapped version of the supplied function or module.
-
-#### input
-
-Type: `function`, `object`
-
-Callback-style function or module whose methods you want to promisify.
-
-#### promiseModule
-
-Type: `function`
-
-Custom promise module to use instead of the native one.
-
-Check out [`pinkie-promise`](https://github.com/floatdrop/pinkie-promise) if you need a tiny promise polyfill.
-
-#### options
-
-##### multiArgs
-
-Type: `boolean`
-Default: `false`
-
-By default, the promisified function will only return the second argument from the callback, which works fine for most APIs. This option can be useful for modules like `request` that return multiple arguments. Turning this on will make it return an array of all arguments from the callback, excluding the error argument, instead of just the second argument.
-
-```js
-const request = require('request');
-const pify = require('pify');
-
-pify(request, {multiArgs: true})('https://sindresorhus.com').then(result => {
- const [httpResponse, body] = result;
-});
-```
-
-##### include
-
-Type: `array` of (`string`|`regex`)
-
-Methods in a module to promisify. Remaining methods will be left untouched.
-
-##### exclude
-
-Type: `array` of (`string`|`regex`)
-Default: `[/.+Sync$/]`
-
-Methods in a module **not** to promisify. Methods with names ending with `'Sync'` are excluded by default.
-
-##### excludeMain
-
-Type: `boolean`
-Default: `false`
-
-By default, if given module is a function itself, this function will be promisified. Turn this option on if you want to promisify only methods of the module.
-
-```js
-const pify = require('pify');
-
-function fn() {
- return true;
-}
-
-fn.method = (data, callback) => {
- setImmediate(() => {
- callback(data, null);
- });
-};
-
-// promisify methods but not fn()
-const promiseFn = pify(fn, {excludeMain: true});
-
-if (promiseFn()) {
- promiseFn.method('hi').then(data => {
- console.log(data);
- });
-}
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/pinkie-promise/index.js b/node_modules/pinkie-promise/index.js
deleted file mode 100644
index 777377a..0000000
--- a/node_modules/pinkie-promise/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = typeof Promise === 'function' ? Promise : require('pinkie');
diff --git a/node_modules/pinkie-promise/license b/node_modules/pinkie-promise/license
deleted file mode 100644
index 1aeb74f..0000000
--- a/node_modules/pinkie-promise/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Vsevolod Strukchinsky <floatdrop@gmail.com> (github.com/floatdrop)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/pinkie-promise/package.json b/node_modules/pinkie-promise/package.json
deleted file mode 100644
index 3ba8282..0000000
--- a/node_modules/pinkie-promise/package.json
+++ /dev/null
@@ -1,70 +0,0 @@
-{
- "_from": "pinkie-promise@^2.0.0",
- "_id": "pinkie-promise@2.0.1",
- "_inBundle": false,
- "_integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
- "_location": "/pinkie-promise",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "pinkie-promise@^2.0.0",
- "name": "pinkie-promise",
- "escapedName": "pinkie-promise",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/find-up",
- "/load-json-file",
- "/path-exists",
- "/path-type"
- ],
- "_resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
- "_shasum": "2135d6dfa7a358c069ac9b178776288228450ffa",
- "_spec": "pinkie-promise@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/find-up",
- "author": {
- "name": "Vsevolod Strukchinsky",
- "email": "floatdrop@gmail.com",
- "url": "github.com/floatdrop"
- },
- "bugs": {
- "url": "https://github.com/floatdrop/pinkie-promise/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "pinkie": "^2.0.0"
- },
- "deprecated": false,
- "description": "ES2015 Promise ponyfill",
- "devDependencies": {
- "mocha": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/floatdrop/pinkie-promise#readme",
- "keywords": [
- "promise",
- "promises",
- "es2015",
- "es6",
- "polyfill",
- "ponyfill"
- ],
- "license": "MIT",
- "name": "pinkie-promise",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/floatdrop/pinkie-promise.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "2.0.1"
-}
diff --git a/node_modules/pinkie-promise/readme.md b/node_modules/pinkie-promise/readme.md
deleted file mode 100644
index 78477f4..0000000
--- a/node_modules/pinkie-promise/readme.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# pinkie-promise [![Build Status](https://travis-ci.org/floatdrop/pinkie-promise.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie-promise)
-
-> [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) ponyfill
-
-Module exports global Promise object (if available) or [`pinkie`](http://github.com/floatdrop/pinkie) Promise polyfill.
-
-## Install
-
-```
-$ npm install --save pinkie-promise
-```
-
-## Usage
-
-```js
-var Promise = require('pinkie-promise');
-
-new Promise(function (resolve) { resolve('unicorns'); });
-//=> Promise { 'unicorns' }
-```
-
-## Related
-
-- [pify](https://github.com/sindresorhus/pify) - Promisify a callback-style function
-
-## License
-
-MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)
diff --git a/node_modules/pinkie/index.js b/node_modules/pinkie/index.js
deleted file mode 100644
index 14ce1bf..0000000
--- a/node_modules/pinkie/index.js
+++ /dev/null
@@ -1,292 +0,0 @@
-'use strict';
-
-var PENDING = 'pending';
-var SETTLED = 'settled';
-var FULFILLED = 'fulfilled';
-var REJECTED = 'rejected';
-var NOOP = function () {};
-var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
-
-var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
-var asyncQueue = [];
-var asyncTimer;
-
-function asyncFlush() {
- // run promise callbacks
- for (var i = 0; i < asyncQueue.length; i++) {
- asyncQueue[i][0](asyncQueue[i][1]);
- }
-
- // reset async asyncQueue
- asyncQueue = [];
- asyncTimer = false;
-}
-
-function asyncCall(callback, arg) {
- asyncQueue.push([callback, arg]);
-
- if (!asyncTimer) {
- asyncTimer = true;
- asyncSetTimer(asyncFlush, 0);
- }
-}
-
-function invokeResolver(resolver, promise) {
- function resolvePromise(value) {
- resolve(promise, value);
- }
-
- function rejectPromise(reason) {
- reject(promise, reason);
- }
-
- try {
- resolver(resolvePromise, rejectPromise);
- } catch (e) {
- rejectPromise(e);
- }
-}
-
-function invokeCallback(subscriber) {
- var owner = subscriber.owner;
- var settled = owner._state;
- var value = owner._data;
- var callback = subscriber[settled];
- var promise = subscriber.then;
-
- if (typeof callback === 'function') {
- settled = FULFILLED;
- try {
- value = callback(value);
- } catch (e) {
- reject(promise, e);
- }
- }
-
- if (!handleThenable(promise, value)) {
- if (settled === FULFILLED) {
- resolve(promise, value);
- }
-
- if (settled === REJECTED) {
- reject(promise, value);
- }
- }
-}
-
-function handleThenable(promise, value) {
- var resolved;
-
- try {
- if (promise === value) {
- throw new TypeError('A promises callback cannot return that same promise.');
- }
-
- if (value && (typeof value === 'function' || typeof value === 'object')) {
- // then should be retrieved only once
- var then = value.then;
-
- if (typeof then === 'function') {
- then.call(value, function (val) {
- if (!resolved) {
- resolved = true;
-
- if (value === val) {
- fulfill(promise, val);
- } else {
- resolve(promise, val);
- }
- }
- }, function (reason) {
- if (!resolved) {
- resolved = true;
-
- reject(promise, reason);
- }
- });
-
- return true;
- }
- }
- } catch (e) {
- if (!resolved) {
- reject(promise, e);
- }
-
- return true;
- }
-
- return false;
-}
-
-function resolve(promise, value) {
- if (promise === value || !handleThenable(promise, value)) {
- fulfill(promise, value);
- }
-}
-
-function fulfill(promise, value) {
- if (promise._state === PENDING) {
- promise._state = SETTLED;
- promise._data = value;
-
- asyncCall(publishFulfillment, promise);
- }
-}
-
-function reject(promise, reason) {
- if (promise._state === PENDING) {
- promise._state = SETTLED;
- promise._data = reason;
-
- asyncCall(publishRejection, promise);
- }
-}
-
-function publish(promise) {
- promise._then = promise._then.forEach(invokeCallback);
-}
-
-function publishFulfillment(promise) {
- promise._state = FULFILLED;
- publish(promise);
-}
-
-function publishRejection(promise) {
- promise._state = REJECTED;
- publish(promise);
- if (!promise._handled && isNode) {
- global.process.emit('unhandledRejection', promise._data, promise);
- }
-}
-
-function notifyRejectionHandled(promise) {
- global.process.emit('rejectionHandled', promise);
-}
-
-/**
- * @class
- */
-function Promise(resolver) {
- if (typeof resolver !== 'function') {
- throw new TypeError('Promise resolver ' + resolver + ' is not a function');
- }
-
- if (this instanceof Promise === false) {
- throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
- }
-
- this._then = [];
-
- invokeResolver(resolver, this);
-}
-
-Promise.prototype = {
- constructor: Promise,
-
- _state: PENDING,
- _then: null,
- _data: undefined,
- _handled: false,
-
- then: function (onFulfillment, onRejection) {
- var subscriber = {
- owner: this,
- then: new this.constructor(NOOP),
- fulfilled: onFulfillment,
- rejected: onRejection
- };
-
- if ((onRejection || onFulfillment) && !this._handled) {
- this._handled = true;
- if (this._state === REJECTED && isNode) {
- asyncCall(notifyRejectionHandled, this);
- }
- }
-
- if (this._state === FULFILLED || this._state === REJECTED) {
- // already resolved, call callback async
- asyncCall(invokeCallback, subscriber);
- } else {
- // subscribe
- this._then.push(subscriber);
- }
-
- return subscriber.then;
- },
-
- catch: function (onRejection) {
- return this.then(null, onRejection);
- }
-};
-
-Promise.all = function (promises) {
- if (!Array.isArray(promises)) {
- throw new TypeError('You must pass an array to Promise.all().');
- }
-
- return new Promise(function (resolve, reject) {
- var results = [];
- var remaining = 0;
-
- function resolver(index) {
- remaining++;
- return function (value) {
- results[index] = value;
- if (!--remaining) {
- resolve(results);
- }
- };
- }
-
- for (var i = 0, promise; i < promises.length; i++) {
- promise = promises[i];
-
- if (promise && typeof promise.then === 'function') {
- promise.then(resolver(i), reject);
- } else {
- results[i] = promise;
- }
- }
-
- if (!remaining) {
- resolve(results);
- }
- });
-};
-
-Promise.race = function (promises) {
- if (!Array.isArray(promises)) {
- throw new TypeError('You must pass an array to Promise.race().');
- }
-
- return new Promise(function (resolve, reject) {
- for (var i = 0, promise; i < promises.length; i++) {
- promise = promises[i];
-
- if (promise && typeof promise.then === 'function') {
- promise.then(resolve, reject);
- } else {
- resolve(promise);
- }
- }
- });
-};
-
-Promise.resolve = function (value) {
- if (value && typeof value === 'object' && value.constructor === Promise) {
- return value;
- }
-
- return new Promise(function (resolve) {
- resolve(value);
- });
-};
-
-Promise.reject = function (reason) {
- return new Promise(function (resolve, reject) {
- reject(reason);
- });
-};
-
-module.exports = Promise;
diff --git a/node_modules/pinkie/license b/node_modules/pinkie/license
deleted file mode 100644
index 1aeb74f..0000000
--- a/node_modules/pinkie/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Vsevolod Strukchinsky <floatdrop@gmail.com> (github.com/floatdrop)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/pinkie/package.json b/node_modules/pinkie/package.json
deleted file mode 100644
index 3e0f9f3..0000000
--- a/node_modules/pinkie/package.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "_from": "pinkie@^2.0.0",
- "_id": "pinkie@2.0.4",
- "_inBundle": false,
- "_integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=",
- "_location": "/pinkie",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "pinkie@^2.0.0",
- "name": "pinkie",
- "escapedName": "pinkie",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/pinkie-promise"
- ],
- "_resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
- "_shasum": "72556b80cfa0d48a974e80e77248e80ed4f7f870",
- "_spec": "pinkie@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/pinkie-promise",
- "author": {
- "name": "Vsevolod Strukchinsky",
- "email": "floatdrop@gmail.com",
- "url": "github.com/floatdrop"
- },
- "bugs": {
- "url": "https://github.com/floatdrop/pinkie/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Itty bitty little widdle twinkie pinkie ES2015 Promise implementation",
- "devDependencies": {
- "core-assert": "^0.1.1",
- "coveralls": "^2.11.4",
- "mocha": "*",
- "nyc": "^3.2.2",
- "promises-aplus-tests": "*",
- "xo": "^0.10.1"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/floatdrop/pinkie#readme",
- "keywords": [
- "promise",
- "promises",
- "es2015",
- "es6"
- ],
- "license": "MIT",
- "name": "pinkie",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/floatdrop/pinkie.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "test": "xo && nyc mocha"
- },
- "version": "2.0.4"
-}
diff --git a/node_modules/pinkie/readme.md b/node_modules/pinkie/readme.md
deleted file mode 100644
index 1565f95..0000000
--- a/node_modules/pinkie/readme.md
+++ /dev/null
@@ -1,83 +0,0 @@
-<h1 align="center">
- <br>
- <img width="256" src="media/logo.png" alt="pinkie">
- <br>
- <br>
-</h1>
-
-> Itty bitty little widdle twinkie pinkie [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation
-
-[![Build Status](https://travis-ci.org/floatdrop/pinkie.svg?branch=master)](https://travis-ci.org/floatdrop/pinkie) [![Coverage Status](https://coveralls.io/repos/floatdrop/pinkie/badge.svg?branch=master&service=github)](https://coveralls.io/github/floatdrop/pinkie?branch=master)
-
-There are [tons of Promise implementations](https://github.com/promises-aplus/promises-spec/blob/master/implementations.md#standalone) out there, but all of them focus on browser compatibility and are often bloated with functionality.
-
-This module is an exact Promise specification polyfill (like [native-promise-only](https://github.com/getify/native-promise-only)), but in Node.js land (it should be browserify-able though).
-
-
-## Install
-
-```
-$ npm install --save pinkie
-```
-
-
-## Usage
-
-```js
-var fs = require('fs');
-var Promise = require('pinkie');
-
-new Promise(function (resolve, reject) {
- fs.readFile('foo.json', 'utf8', function (err, data) {
- if (err) {
- reject(err);
- return;
- }
-
- resolve(data);
- });
-});
-//=> Promise
-```
-
-
-### API
-
-`pinkie` exports bare [ES2015 Promise](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects) implementation and polyfills [Node.js rejection events](https://nodejs.org/api/process.html#process_event_unhandledrejection). In case you forgot:
-
-#### new Promise(executor)
-
-Returns new instance of `Promise`.
-
-##### executor
-
-*Required*
-Type: `function`
-
-Function with two arguments `resolve` and `reject`. The first argument fulfills the promise, the second argument rejects it.
-
-#### pinkie.all(promises)
-
-Returns a promise that resolves when all of the promises in the `promises` Array argument have resolved.
-
-#### pinkie.race(promises)
-
-Returns a promise that resolves or rejects as soon as one of the promises in the `promises` Array resolves or rejects, with the value or reason from that promise.
-
-#### pinkie.reject(reason)
-
-Returns a Promise object that is rejected with the given `reason`.
-
-#### pinkie.resolve(value)
-
-Returns a Promise object that is resolved with the given `value`. If the `value` is a thenable (i.e. has a then method), the returned promise will "follow" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the `value`.
-
-
-## Related
-
-- [pinkie-promise](https://github.com/floatdrop/pinkie-promise) - Returns the native Promise or this module
-
-
-## License
-
-MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)
diff --git a/node_modules/process-nextick-args/index.js b/node_modules/process-nextick-args/index.js
deleted file mode 100644
index 3eecf11..0000000
--- a/node_modules/process-nextick-args/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-'use strict';
-
-if (typeof process === 'undefined' ||
- !process.version ||
- process.version.indexOf('v0.') === 0 ||
- process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
- module.exports = { nextTick: nextTick };
-} else {
- module.exports = process
-}
-
-function nextTick(fn, arg1, arg2, arg3) {
- if (typeof fn !== 'function') {
- throw new TypeError('"callback" argument must be a function');
- }
- var len = arguments.length;
- var args, i;
- switch (len) {
- case 0:
- case 1:
- return process.nextTick(fn);
- case 2:
- return process.nextTick(function afterTickOne() {
- fn.call(null, arg1);
- });
- case 3:
- return process.nextTick(function afterTickTwo() {
- fn.call(null, arg1, arg2);
- });
- case 4:
- return process.nextTick(function afterTickThree() {
- fn.call(null, arg1, arg2, arg3);
- });
- default:
- args = new Array(len - 1);
- i = 0;
- while (i < args.length) {
- args[i++] = arguments[i];
- }
- return process.nextTick(function afterTick() {
- fn.apply(null, args);
- });
- }
-}
-
diff --git a/node_modules/process-nextick-args/license.md b/node_modules/process-nextick-args/license.md
deleted file mode 100644
index c67e353..0000000
--- a/node_modules/process-nextick-args/license.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (c) 2015 Calvin Metcalf
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.**
diff --git a/node_modules/process-nextick-args/package.json b/node_modules/process-nextick-args/package.json
deleted file mode 100644
index c658d38..0000000
--- a/node_modules/process-nextick-args/package.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "_from": "process-nextick-args@~2.0.0",
- "_id": "process-nextick-args@2.0.1",
- "_inBundle": false,
- "_integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
- "_location": "/process-nextick-args",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "process-nextick-args@~2.0.0",
- "name": "process-nextick-args",
- "escapedName": "process-nextick-args",
- "rawSpec": "~2.0.0",
- "saveSpec": null,
- "fetchSpec": "~2.0.0"
- },
- "_requiredBy": [
- "/readable-stream"
- ],
- "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
- "_shasum": "7820d9b16120cc55ca9ae7792680ae7dba6d7fe2",
- "_spec": "process-nextick-args@~2.0.0",
- "_where": "/Users/gebauer/Workspace/hugo-dev-theme/themes/ag/node_modules/readable-stream",
- "author": "",
- "bugs": {
- "url": "https://github.com/calvinmetcalf/process-nextick-args/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "process.nextTick but always with args",
- "devDependencies": {
- "tap": "~0.2.6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/calvinmetcalf/process-nextick-args",
- "license": "MIT",
- "main": "index.js",
- "name": "process-nextick-args",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/calvinmetcalf/process-nextick-args.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "2.0.1"
-}
diff --git a/node_modules/process-nextick-args/readme.md b/node_modules/process-nextick-args/readme.md
deleted file mode 100644
index ecb432c..0000000
--- a/node_modules/process-nextick-args/readme.md
+++ /dev/null
@@ -1,18 +0,0 @@
-process-nextick-args
-=====
-
-[![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args)
-
-```bash
-npm install --save process-nextick-args
-```
-
-Always be able to pass arguments to process.nextTick, no matter the platform
-
-```js
-var pna = require('process-nextick-args');
-
-pna.nextTick(function (a, b, c) {
- console.log(a, b, c);
-}, 'step', 3, 'profit');
-```
diff --git a/node_modules/pseudomap/LICENSE b/node_modules/pseudomap/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/pseudomap/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/pseudomap/README.md b/node_modules/pseudomap/README.md
deleted file mode 100644
index 778bf01..0000000
--- a/node_modules/pseudomap/README.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# pseudomap
-
-A thing that is a lot like ES6 `Map`, but without iterators, for use
-in environments where `for..of` syntax and `Map` are not available.
-
-If you need iterators, or just in general a more faithful polyfill to
-ES6 Maps, check out [es6-map](http://npm.im/es6-map).
-
-If you are in an environment where `Map` is supported, then that will
-be returned instead, unless `process.env.TEST_PSEUDOMAP` is set.
-
-You can use any value as keys, and any value as data. Setting again
-with the identical key will overwrite the previous value.
-
-Internally, data is stored on an `Object.create(null)` style object.
-The key is coerced to a string to generate the key on the internal
-data-bag object. The original key used is stored along with the data.
-
-In the event of a stringified-key collision, a new key is generated by
-appending an increasing number to the stringified-key until finding
-either the intended key or an empty spot.
-
-Note that because object traversal order of plain objects is not
-guaranteed to be identical to insertion order, the insertion order
-guarantee of `Map.prototype.forEach` is not guaranteed in this
-implementation. However, in all versions of Node.js and V8 where this
-module works, `forEach` does traverse data in insertion order.
-
-## API
-
-Most of the [Map
-API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map),
-with the following exceptions:
-
-1. A `Map` object is not an iterator.
-2. `values`, `keys`, and `entries` methods are not implemented,
- because they return iterators.
-3. The argument to the constructor can be an Array of `[key, value]`
- pairs, or a `Map` or `PseudoMap` object. But, since iterators
- aren't used, passing any plain-old iterator won't initialize the
- map properly.
-
-## USAGE
-
-Use just like a regular ES6 Map.
-
-```javascript
-var PseudoMap = require('pseudomap')
-
-// optionally provide a pseudomap, or an array of [key,value] pairs
-// as the argument to initialize the map with
-var myMap = new PseudoMap()
-
-myMap.set(1, 'number 1')
-myMap.set('1', 'string 1')
-var akey = {}
-var bkey = {}
-myMap.set(akey, { some: 'data' })
-myMap.set(bkey, { some: 'other data' })
-```
diff --git a/node_modules/pseudomap/map.js b/node_modules/pseudomap/map.js
deleted file mode 100644
index 7db1599..0000000
--- a/node_modules/pseudomap/map.js
+++ /dev/null
@@ -1,9 +0,0 @@
-if (process.env.npm_package_name === 'pseudomap' &&
- process.env.npm_lifecycle_script === 'test')
- process.env.TEST_PSEUDOMAP = 'true'
-
-if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) {
- module.exports = Map
-} else {
- module.exports = require('./pseudomap')
-}
diff --git a/node_modules/pseudomap/package.json b/node_modules/pseudomap/package.json
deleted file mode 100644
index c2ea781..0000000
--- a/node_modules/pseudomap/package.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "_from": "pseudomap@^1.0.2",
- "_id": "pseudomap@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
- "_location": "/pseudomap",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "pseudomap@^1.0.2",
- "name": "pseudomap",
- "escapedName": "pseudomap",
- "rawSpec": "^1.0.2",
- "saveSpec": null,
- "fetchSpec": "^1.0.2"
- },
- "_requiredBy": [
- "/lru-cache"
- ],
- "_resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
- "_shasum": "f052a28da70e618917ef0a8ac34c1ae5a68286b3",
- "_spec": "pseudomap@^1.0.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/lru-cache",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/pseudomap/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available.",
- "devDependencies": {
- "tap": "^2.3.1"
- },
- "directories": {
- "test": "test"
- },
- "homepage": "https://github.com/isaacs/pseudomap#readme",
- "license": "ISC",
- "main": "map.js",
- "name": "pseudomap",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/isaacs/pseudomap.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/pseudomap/pseudomap.js b/node_modules/pseudomap/pseudomap.js
deleted file mode 100644
index 25a21d8..0000000
--- a/node_modules/pseudomap/pseudomap.js
+++ /dev/null
@@ -1,113 +0,0 @@
-var hasOwnProperty = Object.prototype.hasOwnProperty
-
-module.exports = PseudoMap
-
-function PseudoMap (set) {
- if (!(this instanceof PseudoMap)) // whyyyyyyy
- throw new TypeError("Constructor PseudoMap requires 'new'")
-
- this.clear()
-
- if (set) {
- if ((set instanceof PseudoMap) ||
- (typeof Map === 'function' && set instanceof Map))
- set.forEach(function (value, key) {
- this.set(key, value)
- }, this)
- else if (Array.isArray(set))
- set.forEach(function (kv) {
- this.set(kv[0], kv[1])
- }, this)
- else
- throw new TypeError('invalid argument')
- }
-}
-
-PseudoMap.prototype.forEach = function (fn, thisp) {
- thisp = thisp || this
- Object.keys(this._data).forEach(function (k) {
- if (k !== 'size')
- fn.call(thisp, this._data[k].value, this._data[k].key)
- }, this)
-}
-
-PseudoMap.prototype.has = function (k) {
- return !!find(this._data, k)
-}
-
-PseudoMap.prototype.get = function (k) {
- var res = find(this._data, k)
- return res && res.value
-}
-
-PseudoMap.prototype.set = function (k, v) {
- set(this._data, k, v)
-}
-
-PseudoMap.prototype.delete = function (k) {
- var res = find(this._data, k)
- if (res) {
- delete this._data[res._index]
- this._data.size--
- }
-}
-
-PseudoMap.prototype.clear = function () {
- var data = Object.create(null)
- data.size = 0
-
- Object.defineProperty(this, '_data', {
- value: data,
- enumerable: false,
- configurable: true,
- writable: false
- })
-}
-
-Object.defineProperty(PseudoMap.prototype, 'size', {
- get: function () {
- return this._data.size
- },
- set: function (n) {},
- enumerable: true,
- configurable: true
-})
-
-PseudoMap.prototype.values =
-PseudoMap.prototype.keys =
-PseudoMap.prototype.entries = function () {
- throw new Error('iterators are not implemented in this version')
-}
-
-// Either identical, or both NaN
-function same (a, b) {
- return a === b || a !== a && b !== b
-}
-
-function Entry (k, v, i) {
- this.key = k
- this.value = v
- this._index = i
-}
-
-function find (data, k) {
- for (var i = 0, s = '_' + k, key = s;
- hasOwnProperty.call(data, key);
- key = s + i++) {
- if (same(data[key].key, k))
- return data[key]
- }
-}
-
-function set (data, k, v) {
- for (var i = 0, s = '_' + k, key = s;
- hasOwnProperty.call(data, key);
- key = s + i++) {
- if (same(data[key].key, k)) {
- data[key].value = v
- return
- }
- }
- data.size++
- data[key] = new Entry(k, v, key)
-}
diff --git a/node_modules/pseudomap/test/basic.js b/node_modules/pseudomap/test/basic.js
deleted file mode 100644
index 4378e45..0000000
--- a/node_modules/pseudomap/test/basic.js
+++ /dev/null
@@ -1,86 +0,0 @@
-var t = require('tap')
-
-process.env.TEST_PSEUDOMAP = 'true'
-
-var PM = require('../')
-runTests(PM)
-
-// if possible, verify that Map also behaves the same way
-if (typeof Map === 'function')
- runTests(Map)
-
-
-function runTests (Map) {
- t.throws(Map)
-
- var m = new Map()
-
- t.equal(m.size, 0)
-
- m.set(1, '1 string')
- t.equal(m.get(1), '1 string')
- t.equal(m.size, 1)
- m.size = 1000
- t.equal(m.size, 1)
- m.size = 0
- t.equal(m.size, 1)
-
- m = new Map([[1, 'number 1'], ['1', 'string 1']])
- t.equal(m.get(1), 'number 1')
- t.equal(m.get('1'), 'string 1')
- t.equal(m.size, 2)
-
- m = new Map(m)
- t.equal(m.get(1), 'number 1')
- t.equal(m.get('1'), 'string 1')
- t.equal(m.size, 2)
-
- var akey = {}
- var bkey = {}
- m.set(akey, { some: 'data' })
- m.set(bkey, { some: 'other data' })
- t.same(m.get(akey), { some: 'data' })
- t.same(m.get(bkey), { some: 'other data' })
- t.equal(m.size, 4)
-
- var x = /x/
- var y = /x/
- m.set(x, 'x regex')
- m.set(y, 'y regex')
- t.equal(m.get(x), 'x regex')
- m.set(x, 'x again')
- t.equal(m.get(x), 'x again')
- t.equal(m.size, 6)
-
- m.set(NaN, 'not a number')
- t.equal(m.get(NaN), 'not a number')
- m.set(NaN, 'it is a ' + typeof NaN)
- t.equal(m.get(NaN), 'it is a number')
- m.set('NaN', 'stringie nan')
- t.equal(m.get(NaN), 'it is a number')
- t.equal(m.get('NaN'), 'stringie nan')
- t.equal(m.size, 8)
-
- m.delete(NaN)
- t.equal(m.get(NaN), undefined)
- t.equal(m.size, 7)
-
- var expect = [
- { value: 'number 1', key: 1 },
- { value: 'string 1', key: '1' },
- { value: { some: 'data' }, key: {} },
- { value: { some: 'other data' }, key: {} },
- { value: 'x again', key: /x/ },
- { value: 'y regex', key: /x/ },
- { value: 'stringie nan', key: 'NaN' }
- ]
- var actual = []
-
- m.forEach(function (value, key) {
- actual.push({ value: value, key: key })
- })
- t.same(actual, expect)
-
- m.clear()
- t.equal(m.size, 0)
-}
diff --git a/node_modules/psl/LICENSE b/node_modules/psl/LICENSE
deleted file mode 100644
index 78d792e..0000000
--- a/node_modules/psl/LICENSE
+++ /dev/null
@@ -1,9 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2017 Lupo Montero lupomontero@gmail.com
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/psl/README.md b/node_modules/psl/README.md
deleted file mode 100644
index e876c3d..0000000
--- a/node_modules/psl/README.md
+++ /dev/null
@@ -1,215 +0,0 @@
-# psl (Public Suffix List)
-
-[![NPM](https://nodei.co/npm/psl.png?downloads=true&downloadRank=true)](https://nodei.co/npm/psl/)
-
-[![Greenkeeper badge](https://badges.greenkeeper.io/lupomontero/psl.svg)](https://greenkeeper.io/)
-[![Build Status](https://travis-ci.org/lupomontero/psl.svg?branch=master)](https://travis-ci.org/lupomontero/psl)
-[![devDependency Status](https://david-dm.org/lupomontero/psl/dev-status.png)](https://david-dm.org/lupomontero/psl#info=devDependencies)
-
-`psl` is a `JavaScript` domain name parser based on the
-[Public Suffix List](https://publicsuffix.org/).
-
-This implementation is tested against the
-[test data hosted by Mozilla](http://mxr.mozilla.org/mozilla-central/source/netwerk/test/unit/data/test_psl.txt?raw=1)
-and kindly provided by [Comodo](https://www.comodo.com/).
-
-Cross browser testing provided by
-[<img alt="BrowserStack" width="160" src="./browserstack-logo.svg" />](https://www.browserstack.com/)
-
-## What is the Public Suffix List?
-
-The Public Suffix List is a cross-vendor initiative to provide an accurate list
-of domain name suffixes.
-
-The Public Suffix List is an initiative of the Mozilla Project, but is
-maintained as a community resource. It is available for use in any software,
-but was originally created to meet the needs of browser manufacturers.
-
-A "public suffix" is one under which Internet users can directly register names.
-Some examples of public suffixes are ".com", ".co.uk" and "pvt.k12.wy.us". The
-Public Suffix List is a list of all known public suffixes.
-
-Source: http://publicsuffix.org
-
-
-## Installation
-
-### Node.js
-
-```sh
-npm install --save psl
-```
-
-### Browser
-
-Download [psl.min.js](https://raw.githubusercontent.com/lupomontero/psl/master/dist/psl.min.js)
-and include it in a script tag.
-
-```html
-<script src="psl.min.js"></script>
-```
-
-This script is browserified and wrapped in a [umd](https://github.com/umdjs/umd)
-wrapper so you should be able to use it standalone or together with a module
-loader.
-
-## API
-
-### `psl.parse(domain)`
-
-Parse domain based on Public Suffix List. Returns an `Object` with the following
-properties:
-
-* `tld`: Top level domain (this is the _public suffix_).
-* `sld`: Second level domain (the first private part of the domain name).
-* `domain`: The domain name is the `sld` + `tld`.
-* `subdomain`: Optional parts left of the domain.
-
-#### Example:
-
-```js
-var psl = require('psl');
-
-// Parse domain without subdomain
-var parsed = psl.parse('google.com');
-console.log(parsed.tld); // 'com'
-console.log(parsed.sld); // 'google'
-console.log(parsed.domain); // 'google.com'
-console.log(parsed.subdomain); // null
-
-// Parse domain with subdomain
-var parsed = psl.parse('www.google.com');
-console.log(parsed.tld); // 'com'
-console.log(parsed.sld); // 'google'
-console.log(parsed.domain); // 'google.com'
-console.log(parsed.subdomain); // 'www'
-
-// Parse domain with nested subdomains
-var parsed = psl.parse('a.b.c.d.foo.com');
-console.log(parsed.tld); // 'com'
-console.log(parsed.sld); // 'foo'
-console.log(parsed.domain); // 'foo.com'
-console.log(parsed.subdomain); // 'a.b.c.d'
-```
-
-### `psl.get(domain)`
-
-Get domain name, `sld` + `tld`. Returns `null` if not valid.
-
-#### Example:
-
-```js
-var psl = require('psl');
-
-// null input.
-psl.get(null); // null
-
-// Mixed case.
-psl.get('COM'); // null
-psl.get('example.COM'); // 'example.com'
-psl.get('WwW.example.COM'); // 'example.com'
-
-// Unlisted TLD.
-psl.get('example'); // null
-psl.get('example.example'); // 'example.example'
-psl.get('b.example.example'); // 'example.example'
-psl.get('a.b.example.example'); // 'example.example'
-
-// TLD with only 1 rule.
-psl.get('biz'); // null
-psl.get('domain.biz'); // 'domain.biz'
-psl.get('b.domain.biz'); // 'domain.biz'
-psl.get('a.b.domain.biz'); // 'domain.biz'
-
-// TLD with some 2-level rules.
-psl.get('uk.com'); // null);
-psl.get('example.uk.com'); // 'example.uk.com');
-psl.get('b.example.uk.com'); // 'example.uk.com');
-
-// More complex TLD.
-psl.get('c.kobe.jp'); // null
-psl.get('b.c.kobe.jp'); // 'b.c.kobe.jp'
-psl.get('a.b.c.kobe.jp'); // 'b.c.kobe.jp'
-psl.get('city.kobe.jp'); // 'city.kobe.jp'
-psl.get('www.city.kobe.jp'); // 'city.kobe.jp'
-
-// IDN labels.
-psl.get('食狮.com.cn'); // '食狮.com.cn'
-psl.get('食狮.公司.cn'); // '食狮.公司.cn'
-psl.get('www.食狮.公司.cn'); // '食狮.公司.cn'
-
-// Same as above, but punycoded.
-psl.get('xn--85x722f.com.cn'); // 'xn--85x722f.com.cn'
-psl.get('xn--85x722f.xn--55qx5d.cn'); // 'xn--85x722f.xn--55qx5d.cn'
-psl.get('www.xn--85x722f.xn--55qx5d.cn'); // 'xn--85x722f.xn--55qx5d.cn'
-```
-
-### `psl.isValid(domain)`
-
-Check whether a domain has a valid Public Suffix. Returns a `Boolean` indicating
-whether the domain has a valid Public Suffix.
-
-#### Example
-
-```js
-var psl = require('psl');
-
-psl.isValid('google.com'); // true
-psl.isValid('www.google.com'); // true
-psl.isValid('x.yz'); // false
-```
-
-
-## Testing and Building
-
-Test are written using [`mocha`](https://mochajs.org/) and can be
-run in two different environments: `node` and `phantomjs`.
-
-```sh
-# This will run `eslint`, `mocha` and `karma`.
-npm test
-
-# Individual test environments
-# Run tests in node only.
-./node_modules/.bin/mocha test
-# Run tests in phantomjs only.
-./node_modules/.bin/karma start ./karma.conf.js --single-run
-
-# Build data (parse raw list) and create dist files
-npm run build
-```
-
-Feel free to fork if you see possible improvements!
-
-
-## Acknowledgements
-
-* Mozilla Foundation's [Public Suffix List](https://publicsuffix.org/)
-* Thanks to Rob Stradling of [Comodo](https://www.comodo.com/) for providing
- test data.
-* Inspired by [weppos/publicsuffix-ruby](https://github.com/weppos/publicsuffix-ruby)
-
-
-## License
-
-The MIT License (MIT)
-
-Copyright (c) 2017 Lupo Montero <lupomontero@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/psl/browserstack-logo.svg b/node_modules/psl/browserstack-logo.svg
deleted file mode 100644
index 195f64d..0000000
--- a/node_modules/psl/browserstack-logo.svg
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- viewBox="0 0 490.1 105.6" style="enable-background:new 0 0 490.1 105.6;" xml:space="preserve">
-<style type="text/css">
- .st0{fill:#F4B960;}
- .st1{fill:#E66F32;}
- .st2{fill:#E43C41;}
- .st3{fill:#BDD041;}
- .st4{fill:#6DB54C;}
- .st5{fill:#AEDAE6;}
- .st6{fill:#56B8DE;}
- .st7{fill:#00B1D5;}
- .st8{fill:url(#SVGID_1_);}
- .st9{fill:#221F1F;}
- .st10{fill:#FFFFFF;}
- .st11{fill:#000111;}
-</style>
-<title>Browserstack-logo-white</title>
-<circle class="st0" cx="52.8" cy="52.8" r="52.8"/>
-<circle class="st1" cx="47.5" cy="47.5" r="47.5"/>
-<circle class="st2" cx="53.8" cy="41.1" r="41.1"/>
-<circle class="st3" cx="57.1" cy="44.4" r="37.8"/>
-<circle class="st4" cx="54.3" cy="47.2" r="35.1"/>
-<circle class="st5" cx="48.8" cy="41.7" r="29.5"/>
-<circle class="st6" cx="53.6" cy="36.8" r="24.7"/>
-<circle class="st7" cx="56.6" cy="39.9" r="21.7"/>
-<radialGradient id="SVGID_1_" cx="53.45" cy="63.02" r="18.57" gradientTransform="matrix(1 0 0 -1 0 106)" gradientUnits="userSpaceOnUse">
- <stop offset="0" style="stop-color:#797979"/>
- <stop offset="1" style="stop-color:#4C4C4C"/>
-</radialGradient>
-<circle class="st8" cx="53.5" cy="43" r="18.6"/>
-<circle class="st9" cx="53.5" cy="43" r="18.6"/>
-<ellipse transform="matrix(0.4094 -0.9123 0.9123 0.4094 2.8913 76.9251)" class="st10" cx="60.9" cy="36.2" rx="5.7" ry="3.7"/>
-<path class="st11" d="M122.5,32.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h16.6c9.5,0,13.9,4.4,13.9,11c0.2,3.7-1.8,7.2-5.2,8.8v0.1
- c3.7,1.5,6.1,5.2,6,9.3c0,8.2-5.6,12.2-15.4,12.2h-16c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1L122.5,32.6L122.5,32.6z M139.6,49.1
- c3.9,0,6.4-2.2,6.4-5.4s-2.4-5.5-6.4-5.5h-8.9c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1v10.2c0,0.2,0.1,0.3,0.3,0.4c0,0,0,0,0.1,0
- H139.6L139.6,49.1z M130.6,66.9h9.3c4.3,0,6.8-2.3,6.8-5.8s-2.4-5.7-6.7-5.7h-9.3c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1v10.7
- C130.3,66.8,130.4,66.9,130.6,66.9C130.6,66.9,130.6,66.9,130.6,66.9L130.6,66.9z"/>
-<path class="st11" d="M159.9,73.3c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1V44.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h6
- c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v2.5h0.1c1.5-2.2,4.2-3.8,8.2-3.8c2.4,0,4.8,0.8,6.6,2.4c0.3,0.3,0.4,0.5,0.1,0.8l-3.5,4.1
- c-0.2,0.3-0.6,0.4-0.9,0.2c0,0,0,0-0.1,0c-1.4-0.9-3-1.4-4.7-1.4c-4.1,0-6,2.7-6,7.4v15.9c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0
- H159.9L159.9,73.3z"/>
-<path class="st11" d="M182.9,65.8c-0.8-2.3-1.1-4.8-1.1-7.2c-0.1-2.5,0.3-4.9,1.1-7.2c1.8-5.1,6.6-8.1,13.1-8.1s11.2,3,13,8.1
- c0.8,2.3,1.1,4.8,1.1,7.2c0.1,2.5-0.3,4.9-1.1,7.2c-1.8,5.1-6.6,8.1-13,8.1S184.7,71,182.9,65.8z M201.9,64c0.5-1.7,0.8-3.6,0.7-5.4
- c0.1-1.8-0.1-3.7-0.7-5.4c-0.9-2.5-3.3-4-5.9-3.8c-2.6-0.2-5.1,1.4-6,3.8c-0.5,1.8-0.8,3.6-0.7,5.4c-0.1,1.8,0.1,3.7,0.7,5.4
- c0.9,2.5,3.4,4,6,3.8C198.6,68,201,66.5,201.9,64L201.9,64z"/>
-<path class="st11" d="M241.9,73.3c-0.4,0-0.7-0.3-0.8-0.6L235,53.9h-0.1l-6.2,18.7c-0.1,0.4-0.4,0.6-0.8,0.6h-5.4
- c-0.4,0-0.7-0.3-0.8-0.6l-10-28.1c-0.1-0.2,0-0.5,0.2-0.6c0.1,0,0.2-0.1,0.3,0h6.3c0.4,0,0.8,0.2,0.9,0.6l6.1,19.3h0.1l6-19.3
- c0.1-0.4,0.5-0.6,0.9-0.6h4.7c0.4,0,0.7,0.2,0.9,0.6l6.4,19.3h0.1l5.8-19.3c0.1-0.4,0.5-0.7,0.9-0.6h6.3c0.2-0.1,0.5,0.1,0.5,0.3
- c0,0.1,0,0.2,0,0.3l-10,28.1c-0.1,0.4-0.4,0.6-0.8,0.6L241.9,73.3L241.9,73.3z"/>
-<path class="st11" d="M259.3,69.3c-0.2-0.2-0.3-0.6-0.1-0.8c0,0,0,0,0.1-0.1l3.7-3.6c0.3-0.2,0.7-0.2,0.9,0c2.6,2.1,5.9,3.3,9.3,3.3
- c3.9,0,5.9-1.5,5.9-3.5c0-1.8-1.1-2.9-5.2-3.2l-3.4-0.3c-6.4-0.6-9.7-3.6-9.7-8.6c0-5.7,4.4-9.2,12.3-9.2c4.2-0.1,8.4,1.2,11.9,3.6
- c0.3,0.2,0.3,0.5,0.2,0.8c0,0,0,0,0,0.1l-3.2,3.6c-0.2,0.3-0.6,0.3-0.9,0.1c-2.5-1.5-5.4-2.4-8.3-2.4c-3.1,0-4.8,1.3-4.8,3
- s1.1,2.7,5.2,3.1l3.4,0.3c6.6,0.6,9.8,3.8,9.8,8.6c0,5.8-4.6,9.9-13.3,9.9C268,74,263.2,72.4,259.3,69.3z"/>
-<path class="st11" d="M291.2,65.8c-0.8-2.3-1.2-4.7-1.1-7.2c-0.1-2.5,0.3-4.9,1-7.2c1.8-5.1,6.6-8.1,12.9-8.1c6.5,0,11.2,3.1,13,8.1
- c0.7,2.1,1,4.1,1,8.8c0,0.3-0.3,0.6-0.6,0.6c0,0-0.1,0-0.1,0h-19.5c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1c0,0.8,0.2,1.5,0.5,2.2
- c1,2.9,3.5,4.4,7.1,4.4c2.7,0.1,5.4-0.9,7.4-2.8c0.2-0.3,0.7-0.4,1-0.1c0,0,0,0,0,0l3.9,3.2c0.2,0.1,0.3,0.5,0.2,0.7
- c0,0.1-0.1,0.1-0.1,0.1c-2.7,2.9-7.2,5-13,5C297.8,73.9,293,70.9,291.2,65.8z M310.4,52.8c-0.9-2.4-3.2-3.8-6.2-3.8
- s-5.4,1.4-6.2,3.8c-0.3,0.8-0.4,1.6-0.4,2.5c0,0.2,0.1,0.3,0.3,0.4c0,0,0,0,0.1,0h12.4c0.2,0,0.4-0.1,0.4-0.3c0,0,0,0,0-0.1
- C310.8,54.5,310.6,53.6,310.4,52.8L310.4,52.8z"/>
-<path class="st11" d="M323.6,73.3c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1V44.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h6
- c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v2.5h0.1c1.5-2.2,4.2-3.8,8.2-3.8c2.4,0,4.8,0.8,6.6,2.4c0.3,0.3,0.4,0.5,0.1,0.8l-3.5,4.1
- c-0.2,0.3-0.6,0.4-0.9,0.2c0,0,0,0-0.1,0c-1.4-0.9-3-1.4-4.7-1.4c-4.1,0-6,2.7-6,7.4v15.9c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0
- H323.6L323.6,73.3z"/>
-<path class="st11" d="M346.5,68.5c-0.3-0.2-0.4-0.6-0.2-0.9c0,0,0,0,0,0l4.1-4.4c0.2-0.3,0.6-0.3,0.9-0.1c0,0,0,0,0,0
- c3.5,2.7,7.7,4.2,12.1,4.4c5.3,0,8.4-2.5,8.4-6c0-3-2-4.9-8.1-5.7l-2.4-0.3c-8.6-1.1-13.5-4.9-13.5-11.8c0-7.5,5.9-12.4,15.1-12.4
- c5.1-0.1,10.1,1.4,14.5,4.2c0.3,0.1,0.4,0.4,0.2,0.7c0,0.1-0.1,0.1-0.1,0.2l-3.1,4.5c-0.2,0.3-0.6,0.4-0.9,0.2
- c-3.2-2.1-6.9-3.2-10.7-3.2c-4.5,0-7,2.3-7,5.5c0,2.9,2.2,4.8,8.2,5.6l2.4,0.3c8.6,1.1,13.3,4.9,13.3,12c0,7.3-5.7,12.8-16.8,12.8
- C356.3,73.9,350,71.5,346.5,68.5z"/>
-<path class="st11" d="M393.3,73.8c-6.4,0-8.8-2.9-8.8-8.6V49.8c0-0.2-0.1-0.3-0.3-0.4c0,0,0,0-0.1,0H382c-0.3,0-0.6-0.2-0.7-0.5
- c0,0,0,0,0-0.1v-4.1c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h2.1c0.2,0,0.4-0.1,0.4-0.3c0,0,0,0,0-0.1v-8c0-0.3,0.3-0.6,0.6-0.6
- c0,0,0,0,0.1,0h6c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v8c0,0.2,0.1,0.3,0.3,0.4c0,0,0,0,0.1,0h4.2c0.3,0,0.6,0.2,0.7,0.5
- c0,0,0,0,0,0.1v4.1c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0h-4.2c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1V65c0,2.1,0.9,2.7,3,2.7h1.6
- c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v4.9c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0L393.3,73.8L393.3,73.8z"/>
-<path class="st11" d="M421.2,73.3c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1v-2.1h0c-1.5,2-4.5,3.4-8.9,3.4c-5.8,0-10.6-2.8-10.6-8.9
- c0-6.4,4.9-9.3,12.7-9.3h6.4c0.2,0,0.4-0.1,0.4-0.3c0,0,0,0,0-0.1v-1.4c0-3.3-1.7-4.9-7-4.9c-2.6-0.1-5.1,0.6-7.2,2
- c-0.3,0.2-0.7,0.2-0.9-0.1c0,0,0,0,0-0.1l-2.4-4c-0.2-0.2-0.1-0.6,0.1-0.8c0,0,0,0,0,0c2.6-1.7,6-2.9,11.2-2.9
- c9.6,0,13.2,3,13.2,10.2v19.1c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0H421.2L421.2,73.3z M420.4,63.4v-2.2c0-0.2-0.1-0.3-0.3-0.4
- c0,0,0,0-0.1,0h-5.2c-4.7,0-6.8,1.2-6.8,3.9c0,2.4,1.9,3.6,5.5,3.6C417.9,68.4,420.4,66.8,420.4,63.4L420.4,63.4z"/>
-<path class="st11" d="M433.1,65.8c-0.7-2.3-1.1-4.8-1-7.2c-0.1-2.4,0.3-4.9,1-7.2c1.8-5.2,6.7-8.1,13.1-8.1c4.2-0.2,8.2,1.5,11,4.6
- c0.2,0.2,0.2,0.6,0,0.8c0,0,0,0-0.1,0.1l-4.1,3.3c-0.3,0.2-0.7,0.2-0.9-0.1c0,0,0,0,0-0.1c-1.5-1.7-3.6-2.6-5.9-2.5
- c-2.8,0-5,1.3-5.9,3.8c-0.5,1.8-0.8,3.6-0.7,5.4c-0.1,1.8,0.1,3.7,0.7,5.5c0.9,2.5,3.1,3.8,5.9,3.8c2.2,0.1,4.4-0.9,5.9-2.6
- c0.2-0.3,0.6-0.3,0.9-0.1c0,0,0,0,0,0l4.1,3.3c0.3,0.2,0.3,0.5,0.1,0.8c0,0,0,0-0.1,0.1c-2.9,3-6.9,4.6-11,4.5
- C439.8,73.9,435,71.1,433.1,65.8z"/>
-<path class="st11" d="M482.8,73.3c-0.4,0-0.8-0.2-1-0.6l-8-12.3l-4.3,4.6v7.7c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0h-6
- c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1V32.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h6c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v23.8
- l10.8-11.8c0.3-0.4,0.8-0.6,1.2-0.6h6.7c0.2,0,0.4,0.1,0.4,0.3c0,0.1,0,0.3-0.1,0.3l-10.1,10.7L490,72.7c0.1,0.2,0.1,0.4,0,0.5
- c-0.1,0.1-0.2,0.1-0.3,0.1H482.8L482.8,73.3z"/>
-</svg>
diff --git a/node_modules/psl/data/rules.json b/node_modules/psl/data/rules.json
deleted file mode 100644
index e19abdc..0000000
--- a/node_modules/psl/data/rules.json
+++ /dev/null
@@ -1,8834 +0,0 @@
-[
-"ac",
-"com.ac",
-"edu.ac",
-"gov.ac",
-"net.ac",
-"mil.ac",
-"org.ac",
-"ad",
-"nom.ad",
-"ae",
-"co.ae",
-"net.ae",
-"org.ae",
-"sch.ae",
-"ac.ae",
-"gov.ae",
-"mil.ae",
-"aero",
-"accident-investigation.aero",
-"accident-prevention.aero",
-"aerobatic.aero",
-"aeroclub.aero",
-"aerodrome.aero",
-"agents.aero",
-"aircraft.aero",
-"airline.aero",
-"airport.aero",
-"air-surveillance.aero",
-"airtraffic.aero",
-"air-traffic-control.aero",
-"ambulance.aero",
-"amusement.aero",
-"association.aero",
-"author.aero",
-"ballooning.aero",
-"broker.aero",
-"caa.aero",
-"cargo.aero",
-"catering.aero",
-"certification.aero",
-"championship.aero",
-"charter.aero",
-"civilaviation.aero",
-"club.aero",
-"conference.aero",
-"consultant.aero",
-"consulting.aero",
-"control.aero",
-"council.aero",
-"crew.aero",
-"design.aero",
-"dgca.aero",
-"educator.aero",
-"emergency.aero",
-"engine.aero",
-"engineer.aero",
-"entertainment.aero",
-"equipment.aero",
-"exchange.aero",
-"express.aero",
-"federation.aero",
-"flight.aero",
-"freight.aero",
-"fuel.aero",
-"gliding.aero",
-"government.aero",
-"groundhandling.aero",
-"group.aero",
-"hanggliding.aero",
-"homebuilt.aero",
-"insurance.aero",
-"journal.aero",
-"journalist.aero",
-"leasing.aero",
-"logistics.aero",
-"magazine.aero",
-"maintenance.aero",
-"media.aero",
-"microlight.aero",
-"modelling.aero",
-"navigation.aero",
-"parachuting.aero",
-"paragliding.aero",
-"passenger-association.aero",
-"pilot.aero",
-"press.aero",
-"production.aero",
-"recreation.aero",
-"repbody.aero",
-"res.aero",
-"research.aero",
-"rotorcraft.aero",
-"safety.aero",
-"scientist.aero",
-"services.aero",
-"show.aero",
-"skydiving.aero",
-"software.aero",
-"student.aero",
-"trader.aero",
-"trading.aero",
-"trainer.aero",
-"union.aero",
-"workinggroup.aero",
-"works.aero",
-"af",
-"gov.af",
-"com.af",
-"org.af",
-"net.af",
-"edu.af",
-"ag",
-"com.ag",
-"org.ag",
-"net.ag",
-"co.ag",
-"nom.ag",
-"ai",
-"off.ai",
-"com.ai",
-"net.ai",
-"org.ai",
-"al",
-"com.al",
-"edu.al",
-"gov.al",
-"mil.al",
-"net.al",
-"org.al",
-"am",
-"co.am",
-"com.am",
-"commune.am",
-"net.am",
-"org.am",
-"ao",
-"ed.ao",
-"gv.ao",
-"og.ao",
-"co.ao",
-"pb.ao",
-"it.ao",
-"aq",
-"ar",
-"com.ar",
-"edu.ar",
-"gob.ar",
-"gov.ar",
-"int.ar",
-"mil.ar",
-"musica.ar",
-"net.ar",
-"org.ar",
-"tur.ar",
-"arpa",
-"e164.arpa",
-"in-addr.arpa",
-"ip6.arpa",
-"iris.arpa",
-"uri.arpa",
-"urn.arpa",
-"as",
-"gov.as",
-"asia",
-"at",
-"ac.at",
-"co.at",
-"gv.at",
-"or.at",
-"au",
-"com.au",
-"net.au",
-"org.au",
-"edu.au",
-"gov.au",
-"asn.au",
-"id.au",
-"info.au",
-"conf.au",
-"oz.au",
-"act.au",
-"nsw.au",
-"nt.au",
-"qld.au",
-"sa.au",
-"tas.au",
-"vic.au",
-"wa.au",
-"act.edu.au",
-"catholic.edu.au",
-"nsw.edu.au",
-"nt.edu.au",
-"qld.edu.au",
-"sa.edu.au",
-"tas.edu.au",
-"vic.edu.au",
-"wa.edu.au",
-"qld.gov.au",
-"sa.gov.au",
-"tas.gov.au",
-"vic.gov.au",
-"wa.gov.au",
-"education.tas.edu.au",
-"schools.nsw.edu.au",
-"aw",
-"com.aw",
-"ax",
-"az",
-"com.az",
-"net.az",
-"int.az",
-"gov.az",
-"org.az",
-"edu.az",
-"info.az",
-"pp.az",
-"mil.az",
-"name.az",
-"pro.az",
-"biz.az",
-"ba",
-"com.ba",
-"edu.ba",
-"gov.ba",
-"mil.ba",
-"net.ba",
-"org.ba",
-"bb",
-"biz.bb",
-"co.bb",
-"com.bb",
-"edu.bb",
-"gov.bb",
-"info.bb",
-"net.bb",
-"org.bb",
-"store.bb",
-"tv.bb",
-"*.bd",
-"be",
-"ac.be",
-"bf",
-"gov.bf",
-"bg",
-"a.bg",
-"b.bg",
-"c.bg",
-"d.bg",
-"e.bg",
-"f.bg",
-"g.bg",
-"h.bg",
-"i.bg",
-"j.bg",
-"k.bg",
-"l.bg",
-"m.bg",
-"n.bg",
-"o.bg",
-"p.bg",
-"q.bg",
-"r.bg",
-"s.bg",
-"t.bg",
-"u.bg",
-"v.bg",
-"w.bg",
-"x.bg",
-"y.bg",
-"z.bg",
-"0.bg",
-"1.bg",
-"2.bg",
-"3.bg",
-"4.bg",
-"5.bg",
-"6.bg",
-"7.bg",
-"8.bg",
-"9.bg",
-"bh",
-"com.bh",
-"edu.bh",
-"net.bh",
-"org.bh",
-"gov.bh",
-"bi",
-"co.bi",
-"com.bi",
-"edu.bi",
-"or.bi",
-"org.bi",
-"biz",
-"bj",
-"asso.bj",
-"barreau.bj",
-"gouv.bj",
-"bm",
-"com.bm",
-"edu.bm",
-"gov.bm",
-"net.bm",
-"org.bm",
-"bn",
-"com.bn",
-"edu.bn",
-"gov.bn",
-"net.bn",
-"org.bn",
-"bo",
-"com.bo",
-"edu.bo",
-"gob.bo",
-"int.bo",
-"org.bo",
-"net.bo",
-"mil.bo",
-"tv.bo",
-"web.bo",
-"academia.bo",
-"agro.bo",
-"arte.bo",
-"blog.bo",
-"bolivia.bo",
-"ciencia.bo",
-"cooperativa.bo",
-"democracia.bo",
-"deporte.bo",
-"ecologia.bo",
-"economia.bo",
-"empresa.bo",
-"indigena.bo",
-"industria.bo",
-"info.bo",
-"medicina.bo",
-"movimiento.bo",
-"musica.bo",
-"natural.bo",
-"nombre.bo",
-"noticias.bo",
-"patria.bo",
-"politica.bo",
-"profesional.bo",
-"plurinacional.bo",
-"pueblo.bo",
-"revista.bo",
-"salud.bo",
-"tecnologia.bo",
-"tksat.bo",
-"transporte.bo",
-"wiki.bo",
-"br",
-"9guacu.br",
-"abc.br",
-"adm.br",
-"adv.br",
-"agr.br",
-"aju.br",
-"am.br",
-"anani.br",
-"aparecida.br",
-"arq.br",
-"art.br",
-"ato.br",
-"b.br",
-"barueri.br",
-"belem.br",
-"bhz.br",
-"bio.br",
-"blog.br",
-"bmd.br",
-"boavista.br",
-"bsb.br",
-"campinagrande.br",
-"campinas.br",
-"caxias.br",
-"cim.br",
-"cng.br",
-"cnt.br",
-"com.br",
-"contagem.br",
-"coop.br",
-"cri.br",
-"cuiaba.br",
-"curitiba.br",
-"def.br",
-"ecn.br",
-"eco.br",
-"edu.br",
-"emp.br",
-"eng.br",
-"esp.br",
-"etc.br",
-"eti.br",
-"far.br",
-"feira.br",
-"flog.br",
-"floripa.br",
-"fm.br",
-"fnd.br",
-"fortal.br",
-"fot.br",
-"foz.br",
-"fst.br",
-"g12.br",
-"ggf.br",
-"goiania.br",
-"gov.br",
-"ac.gov.br",
-"al.gov.br",
-"am.gov.br",
-"ap.gov.br",
-"ba.gov.br",
-"ce.gov.br",
-"df.gov.br",
-"es.gov.br",
-"go.gov.br",
-"ma.gov.br",
-"mg.gov.br",
-"ms.gov.br",
-"mt.gov.br",
-"pa.gov.br",
-"pb.gov.br",
-"pe.gov.br",
-"pi.gov.br",
-"pr.gov.br",
-"rj.gov.br",
-"rn.gov.br",
-"ro.gov.br",
-"rr.gov.br",
-"rs.gov.br",
-"sc.gov.br",
-"se.gov.br",
-"sp.gov.br",
-"to.gov.br",
-"gru.br",
-"imb.br",
-"ind.br",
-"inf.br",
-"jab.br",
-"jampa.br",
-"jdf.br",
-"joinville.br",
-"jor.br",
-"jus.br",
-"leg.br",
-"lel.br",
-"londrina.br",
-"macapa.br",
-"maceio.br",
-"manaus.br",
-"maringa.br",
-"mat.br",
-"med.br",
-"mil.br",
-"morena.br",
-"mp.br",
-"mus.br",
-"natal.br",
-"net.br",
-"niteroi.br",
-"*.nom.br",
-"not.br",
-"ntr.br",
-"odo.br",
-"ong.br",
-"org.br",
-"osasco.br",
-"palmas.br",
-"poa.br",
-"ppg.br",
-"pro.br",
-"psc.br",
-"psi.br",
-"pvh.br",
-"qsl.br",
-"radio.br",
-"rec.br",
-"recife.br",
-"ribeirao.br",
-"rio.br",
-"riobranco.br",
-"riopreto.br",
-"salvador.br",
-"sampa.br",
-"santamaria.br",
-"santoandre.br",
-"saobernardo.br",
-"saogonca.br",
-"sjc.br",
-"slg.br",
-"slz.br",
-"sorocaba.br",
-"srv.br",
-"taxi.br",
-"tc.br",
-"teo.br",
-"the.br",
-"tmp.br",
-"trd.br",
-"tur.br",
-"tv.br",
-"udi.br",
-"vet.br",
-"vix.br",
-"vlog.br",
-"wiki.br",
-"zlg.br",
-"bs",
-"com.bs",
-"net.bs",
-"org.bs",
-"edu.bs",
-"gov.bs",
-"bt",
-"com.bt",
-"edu.bt",
-"gov.bt",
-"net.bt",
-"org.bt",
-"bv",
-"bw",
-"co.bw",
-"org.bw",
-"by",
-"gov.by",
-"mil.by",
-"com.by",
-"of.by",
-"bz",
-"com.bz",
-"net.bz",
-"org.bz",
-"edu.bz",
-"gov.bz",
-"ca",
-"ab.ca",
-"bc.ca",
-"mb.ca",
-"nb.ca",
-"nf.ca",
-"nl.ca",
-"ns.ca",
-"nt.ca",
-"nu.ca",
-"on.ca",
-"pe.ca",
-"qc.ca",
-"sk.ca",
-"yk.ca",
-"gc.ca",
-"cat",
-"cc",
-"cd",
-"gov.cd",
-"cf",
-"cg",
-"ch",
-"ci",
-"org.ci",
-"or.ci",
-"com.ci",
-"co.ci",
-"edu.ci",
-"ed.ci",
-"ac.ci",
-"net.ci",
-"go.ci",
-"asso.ci",
-"aéroport.ci",
-"int.ci",
-"presse.ci",
-"md.ci",
-"gouv.ci",
-"*.ck",
-"!www.ck",
-"cl",
-"aprendemas.cl",
-"co.cl",
-"gob.cl",
-"gov.cl",
-"mil.cl",
-"cm",
-"co.cm",
-"com.cm",
-"gov.cm",
-"net.cm",
-"cn",
-"ac.cn",
-"com.cn",
-"edu.cn",
-"gov.cn",
-"net.cn",
-"org.cn",
-"mil.cn",
-"公司.cn",
-"网络.cn",
-"網絡.cn",
-"ah.cn",
-"bj.cn",
-"cq.cn",
-"fj.cn",
-"gd.cn",
-"gs.cn",
-"gz.cn",
-"gx.cn",
-"ha.cn",
-"hb.cn",
-"he.cn",
-"hi.cn",
-"hl.cn",
-"hn.cn",
-"jl.cn",
-"js.cn",
-"jx.cn",
-"ln.cn",
-"nm.cn",
-"nx.cn",
-"qh.cn",
-"sc.cn",
-"sd.cn",
-"sh.cn",
-"sn.cn",
-"sx.cn",
-"tj.cn",
-"xj.cn",
-"xz.cn",
-"yn.cn",
-"zj.cn",
-"hk.cn",
-"mo.cn",
-"tw.cn",
-"co",
-"arts.co",
-"com.co",
-"edu.co",
-"firm.co",
-"gov.co",
-"info.co",
-"int.co",
-"mil.co",
-"net.co",
-"nom.co",
-"org.co",
-"rec.co",
-"web.co",
-"com",
-"coop",
-"cr",
-"ac.cr",
-"co.cr",
-"ed.cr",
-"fi.cr",
-"go.cr",
-"or.cr",
-"sa.cr",
-"cu",
-"com.cu",
-"edu.cu",
-"org.cu",
-"net.cu",
-"gov.cu",
-"inf.cu",
-"cv",
-"cw",
-"com.cw",
-"edu.cw",
-"net.cw",
-"org.cw",
-"cx",
-"gov.cx",
-"cy",
-"ac.cy",
-"biz.cy",
-"com.cy",
-"ekloges.cy",
-"gov.cy",
-"ltd.cy",
-"name.cy",
-"net.cy",
-"org.cy",
-"parliament.cy",
-"press.cy",
-"pro.cy",
-"tm.cy",
-"cz",
-"de",
-"dj",
-"dk",
-"dm",
-"com.dm",
-"net.dm",
-"org.dm",
-"edu.dm",
-"gov.dm",
-"do",
-"art.do",
-"com.do",
-"edu.do",
-"gob.do",
-"gov.do",
-"mil.do",
-"net.do",
-"org.do",
-"sld.do",
-"web.do",
-"dz",
-"com.dz",
-"org.dz",
-"net.dz",
-"gov.dz",
-"edu.dz",
-"asso.dz",
-"pol.dz",
-"art.dz",
-"ec",
-"com.ec",
-"info.ec",
-"net.ec",
-"fin.ec",
-"k12.ec",
-"med.ec",
-"pro.ec",
-"org.ec",
-"edu.ec",
-"gov.ec",
-"gob.ec",
-"mil.ec",
-"edu",
-"ee",
-"edu.ee",
-"gov.ee",
-"riik.ee",
-"lib.ee",
-"med.ee",
-"com.ee",
-"pri.ee",
-"aip.ee",
-"org.ee",
-"fie.ee",
-"eg",
-"com.eg",
-"edu.eg",
-"eun.eg",
-"gov.eg",
-"mil.eg",
-"name.eg",
-"net.eg",
-"org.eg",
-"sci.eg",
-"*.er",
-"es",
-"com.es",
-"nom.es",
-"org.es",
-"gob.es",
-"edu.es",
-"et",
-"com.et",
-"gov.et",
-"org.et",
-"edu.et",
-"biz.et",
-"name.et",
-"info.et",
-"net.et",
-"eu",
-"fi",
-"aland.fi",
-"fj",
-"ac.fj",
-"biz.fj",
-"com.fj",
-"gov.fj",
-"info.fj",
-"mil.fj",
-"name.fj",
-"net.fj",
-"org.fj",
-"pro.fj",
-"*.fk",
-"fm",
-"fo",
-"fr",
-"asso.fr",
-"com.fr",
-"gouv.fr",
-"nom.fr",
-"prd.fr",
-"tm.fr",
-"aeroport.fr",
-"avocat.fr",
-"avoues.fr",
-"cci.fr",
-"chambagri.fr",
-"chirurgiens-dentistes.fr",
-"experts-comptables.fr",
-"geometre-expert.fr",
-"greta.fr",
-"huissier-justice.fr",
-"medecin.fr",
-"notaires.fr",
-"pharmacien.fr",
-"port.fr",
-"veterinaire.fr",
-"ga",
-"gb",
-"gd",
-"ge",
-"com.ge",
-"edu.ge",
-"gov.ge",
-"org.ge",
-"mil.ge",
-"net.ge",
-"pvt.ge",
-"gf",
-"gg",
-"co.gg",
-"net.gg",
-"org.gg",
-"gh",
-"com.gh",
-"edu.gh",
-"gov.gh",
-"org.gh",
-"mil.gh",
-"gi",
-"com.gi",
-"ltd.gi",
-"gov.gi",
-"mod.gi",
-"edu.gi",
-"org.gi",
-"gl",
-"co.gl",
-"com.gl",
-"edu.gl",
-"net.gl",
-"org.gl",
-"gm",
-"gn",
-"ac.gn",
-"com.gn",
-"edu.gn",
-"gov.gn",
-"org.gn",
-"net.gn",
-"gov",
-"gp",
-"com.gp",
-"net.gp",
-"mobi.gp",
-"edu.gp",
-"org.gp",
-"asso.gp",
-"gq",
-"gr",
-"com.gr",
-"edu.gr",
-"net.gr",
-"org.gr",
-"gov.gr",
-"gs",
-"gt",
-"com.gt",
-"edu.gt",
-"gob.gt",
-"ind.gt",
-"mil.gt",
-"net.gt",
-"org.gt",
-"gu",
-"com.gu",
-"edu.gu",
-"gov.gu",
-"guam.gu",
-"info.gu",
-"net.gu",
-"org.gu",
-"web.gu",
-"gw",
-"gy",
-"co.gy",
-"com.gy",
-"edu.gy",
-"gov.gy",
-"net.gy",
-"org.gy",
-"hk",
-"com.hk",
-"edu.hk",
-"gov.hk",
-"idv.hk",
-"net.hk",
-"org.hk",
-"公司.hk",
-"教育.hk",
-"敎育.hk",
-"政府.hk",
-"個人.hk",
-"个人.hk",
-"箇人.hk",
-"網络.hk",
-"网络.hk",
-"组織.hk",
-"網絡.hk",
-"网絡.hk",
-"组织.hk",
-"組織.hk",
-"組织.hk",
-"hm",
-"hn",
-"com.hn",
-"edu.hn",
-"org.hn",
-"net.hn",
-"mil.hn",
-"gob.hn",
-"hr",
-"iz.hr",
-"from.hr",
-"name.hr",
-"com.hr",
-"ht",
-"com.ht",
-"shop.ht",
-"firm.ht",
-"info.ht",
-"adult.ht",
-"net.ht",
-"pro.ht",
-"org.ht",
-"med.ht",
-"art.ht",
-"coop.ht",
-"pol.ht",
-"asso.ht",
-"edu.ht",
-"rel.ht",
-"gouv.ht",
-"perso.ht",
-"hu",
-"co.hu",
-"info.hu",
-"org.hu",
-"priv.hu",
-"sport.hu",
-"tm.hu",
-"2000.hu",
-"agrar.hu",
-"bolt.hu",
-"casino.hu",
-"city.hu",
-"erotica.hu",
-"erotika.hu",
-"film.hu",
-"forum.hu",
-"games.hu",
-"hotel.hu",
-"ingatlan.hu",
-"jogasz.hu",
-"konyvelo.hu",
-"lakas.hu",
-"media.hu",
-"news.hu",
-"reklam.hu",
-"sex.hu",
-"shop.hu",
-"suli.hu",
-"szex.hu",
-"tozsde.hu",
-"utazas.hu",
-"video.hu",
-"id",
-"ac.id",
-"biz.id",
-"co.id",
-"desa.id",
-"go.id",
-"mil.id",
-"my.id",
-"net.id",
-"or.id",
-"ponpes.id",
-"sch.id",
-"web.id",
-"ie",
-"gov.ie",
-"il",
-"ac.il",
-"co.il",
-"gov.il",
-"idf.il",
-"k12.il",
-"muni.il",
-"net.il",
-"org.il",
-"im",
-"ac.im",
-"co.im",
-"com.im",
-"ltd.co.im",
-"net.im",
-"org.im",
-"plc.co.im",
-"tt.im",
-"tv.im",
-"in",
-"co.in",
-"firm.in",
-"net.in",
-"org.in",
-"gen.in",
-"ind.in",
-"nic.in",
-"ac.in",
-"edu.in",
-"res.in",
-"gov.in",
-"mil.in",
-"info",
-"int",
-"eu.int",
-"io",
-"com.io",
-"iq",
-"gov.iq",
-"edu.iq",
-"mil.iq",
-"com.iq",
-"org.iq",
-"net.iq",
-"ir",
-"ac.ir",
-"co.ir",
-"gov.ir",
-"id.ir",
-"net.ir",
-"org.ir",
-"sch.ir",
-"ایران.ir",
-"ايران.ir",
-"is",
-"net.is",
-"com.is",
-"edu.is",
-"gov.is",
-"org.is",
-"int.is",
-"it",
-"gov.it",
-"edu.it",
-"abr.it",
-"abruzzo.it",
-"aosta-valley.it",
-"aostavalley.it",
-"bas.it",
-"basilicata.it",
-"cal.it",
-"calabria.it",
-"cam.it",
-"campania.it",
-"emilia-romagna.it",
-"emiliaromagna.it",
-"emr.it",
-"friuli-v-giulia.it",
-"friuli-ve-giulia.it",
-"friuli-vegiulia.it",
-"friuli-venezia-giulia.it",
-"friuli-veneziagiulia.it",
-"friuli-vgiulia.it",
-"friuliv-giulia.it",
-"friulive-giulia.it",
-"friulivegiulia.it",
-"friulivenezia-giulia.it",
-"friuliveneziagiulia.it",
-"friulivgiulia.it",
-"fvg.it",
-"laz.it",
-"lazio.it",
-"lig.it",
-"liguria.it",
-"lom.it",
-"lombardia.it",
-"lombardy.it",
-"lucania.it",
-"mar.it",
-"marche.it",
-"mol.it",
-"molise.it",
-"piedmont.it",
-"piemonte.it",
-"pmn.it",
-"pug.it",
-"puglia.it",
-"sar.it",
-"sardegna.it",
-"sardinia.it",
-"sic.it",
-"sicilia.it",
-"sicily.it",
-"taa.it",
-"tos.it",
-"toscana.it",
-"trentin-sud-tirol.it",
-"trentin-süd-tirol.it",
-"trentin-sudtirol.it",
-"trentin-südtirol.it",
-"trentin-sued-tirol.it",
-"trentin-suedtirol.it",
-"trentino-a-adige.it",
-"trentino-aadige.it",
-"trentino-alto-adige.it",
-"trentino-altoadige.it",
-"trentino-s-tirol.it",
-"trentino-stirol.it",
-"trentino-sud-tirol.it",
-"trentino-süd-tirol.it",
-"trentino-sudtirol.it",
-"trentino-südtirol.it",
-"trentino-sued-tirol.it",
-"trentino-suedtirol.it",
-"trentino.it",
-"trentinoa-adige.it",
-"trentinoaadige.it",
-"trentinoalto-adige.it",
-"trentinoaltoadige.it",
-"trentinos-tirol.it",
-"trentinostirol.it",
-"trentinosud-tirol.it",
-"trentinosüd-tirol.it",
-"trentinosudtirol.it",
-"trentinosüdtirol.it",
-"trentinosued-tirol.it",
-"trentinosuedtirol.it",
-"trentinsud-tirol.it",
-"trentinsüd-tirol.it",
-"trentinsudtirol.it",
-"trentinsüdtirol.it",
-"trentinsued-tirol.it",
-"trentinsuedtirol.it",
-"tuscany.it",
-"umb.it",
-"umbria.it",
-"val-d-aosta.it",
-"val-daosta.it",
-"vald-aosta.it",
-"valdaosta.it",
-"valle-aosta.it",
-"valle-d-aosta.it",
-"valle-daosta.it",
-"valleaosta.it",
-"valled-aosta.it",
-"valledaosta.it",
-"vallee-aoste.it",
-"vallée-aoste.it",
-"vallee-d-aoste.it",
-"vallée-d-aoste.it",
-"valleeaoste.it",
-"valléeaoste.it",
-"valleedaoste.it",
-"valléedaoste.it",
-"vao.it",
-"vda.it",
-"ven.it",
-"veneto.it",
-"ag.it",
-"agrigento.it",
-"al.it",
-"alessandria.it",
-"alto-adige.it",
-"altoadige.it",
-"an.it",
-"ancona.it",
-"andria-barletta-trani.it",
-"andria-trani-barletta.it",
-"andriabarlettatrani.it",
-"andriatranibarletta.it",
-"ao.it",
-"aosta.it",
-"aoste.it",
-"ap.it",
-"aq.it",
-"aquila.it",
-"ar.it",
-"arezzo.it",
-"ascoli-piceno.it",
-"ascolipiceno.it",
-"asti.it",
-"at.it",
-"av.it",
-"avellino.it",
-"ba.it",
-"balsan-sudtirol.it",
-"balsan-südtirol.it",
-"balsan-suedtirol.it",
-"balsan.it",
-"bari.it",
-"barletta-trani-andria.it",
-"barlettatraniandria.it",
-"belluno.it",
-"benevento.it",
-"bergamo.it",
-"bg.it",
-"bi.it",
-"biella.it",
-"bl.it",
-"bn.it",
-"bo.it",
-"bologna.it",
-"bolzano-altoadige.it",
-"bolzano.it",
-"bozen-sudtirol.it",
-"bozen-südtirol.it",
-"bozen-suedtirol.it",
-"bozen.it",
-"br.it",
-"brescia.it",
-"brindisi.it",
-"bs.it",
-"bt.it",
-"bulsan-sudtirol.it",
-"bulsan-südtirol.it",
-"bulsan-suedtirol.it",
-"bulsan.it",
-"bz.it",
-"ca.it",
-"cagliari.it",
-"caltanissetta.it",
-"campidano-medio.it",
-"campidanomedio.it",
-"campobasso.it",
-"carbonia-iglesias.it",
-"carboniaiglesias.it",
-"carrara-massa.it",
-"carraramassa.it",
-"caserta.it",
-"catania.it",
-"catanzaro.it",
-"cb.it",
-"ce.it",
-"cesena-forli.it",
-"cesena-forlì.it",
-"cesenaforli.it",
-"cesenaforlì.it",
-"ch.it",
-"chieti.it",
-"ci.it",
-"cl.it",
-"cn.it",
-"co.it",
-"como.it",
-"cosenza.it",
-"cr.it",
-"cremona.it",
-"crotone.it",
-"cs.it",
-"ct.it",
-"cuneo.it",
-"cz.it",
-"dell-ogliastra.it",
-"dellogliastra.it",
-"en.it",
-"enna.it",
-"fc.it",
-"fe.it",
-"fermo.it",
-"ferrara.it",
-"fg.it",
-"fi.it",
-"firenze.it",
-"florence.it",
-"fm.it",
-"foggia.it",
-"forli-cesena.it",
-"forlì-cesena.it",
-"forlicesena.it",
-"forlìcesena.it",
-"fr.it",
-"frosinone.it",
-"ge.it",
-"genoa.it",
-"genova.it",
-"go.it",
-"gorizia.it",
-"gr.it",
-"grosseto.it",
-"iglesias-carbonia.it",
-"iglesiascarbonia.it",
-"im.it",
-"imperia.it",
-"is.it",
-"isernia.it",
-"kr.it",
-"la-spezia.it",
-"laquila.it",
-"laspezia.it",
-"latina.it",
-"lc.it",
-"le.it",
-"lecce.it",
-"lecco.it",
-"li.it",
-"livorno.it",
-"lo.it",
-"lodi.it",
-"lt.it",
-"lu.it",
-"lucca.it",
-"macerata.it",
-"mantova.it",
-"massa-carrara.it",
-"massacarrara.it",
-"matera.it",
-"mb.it",
-"mc.it",
-"me.it",
-"medio-campidano.it",
-"mediocampidano.it",
-"messina.it",
-"mi.it",
-"milan.it",
-"milano.it",
-"mn.it",
-"mo.it",
-"modena.it",
-"monza-brianza.it",
-"monza-e-della-brianza.it",
-"monza.it",
-"monzabrianza.it",
-"monzaebrianza.it",
-"monzaedellabrianza.it",
-"ms.it",
-"mt.it",
-"na.it",
-"naples.it",
-"napoli.it",
-"no.it",
-"novara.it",
-"nu.it",
-"nuoro.it",
-"og.it",
-"ogliastra.it",
-"olbia-tempio.it",
-"olbiatempio.it",
-"or.it",
-"oristano.it",
-"ot.it",
-"pa.it",
-"padova.it",
-"padua.it",
-"palermo.it",
-"parma.it",
-"pavia.it",
-"pc.it",
-"pd.it",
-"pe.it",
-"perugia.it",
-"pesaro-urbino.it",
-"pesarourbino.it",
-"pescara.it",
-"pg.it",
-"pi.it",
-"piacenza.it",
-"pisa.it",
-"pistoia.it",
-"pn.it",
-"po.it",
-"pordenone.it",
-"potenza.it",
-"pr.it",
-"prato.it",
-"pt.it",
-"pu.it",
-"pv.it",
-"pz.it",
-"ra.it",
-"ragusa.it",
-"ravenna.it",
-"rc.it",
-"re.it",
-"reggio-calabria.it",
-"reggio-emilia.it",
-"reggiocalabria.it",
-"reggioemilia.it",
-"rg.it",
-"ri.it",
-"rieti.it",
-"rimini.it",
-"rm.it",
-"rn.it",
-"ro.it",
-"roma.it",
-"rome.it",
-"rovigo.it",
-"sa.it",
-"salerno.it",
-"sassari.it",
-"savona.it",
-"si.it",
-"siena.it",
-"siracusa.it",
-"so.it",
-"sondrio.it",
-"sp.it",
-"sr.it",
-"ss.it",
-"suedtirol.it",
-"südtirol.it",
-"sv.it",
-"ta.it",
-"taranto.it",
-"te.it",
-"tempio-olbia.it",
-"tempioolbia.it",
-"teramo.it",
-"terni.it",
-"tn.it",
-"to.it",
-"torino.it",
-"tp.it",
-"tr.it",
-"trani-andria-barletta.it",
-"trani-barletta-andria.it",
-"traniandriabarletta.it",
-"tranibarlettaandria.it",
-"trapani.it",
-"trento.it",
-"treviso.it",
-"trieste.it",
-"ts.it",
-"turin.it",
-"tv.it",
-"ud.it",
-"udine.it",
-"urbino-pesaro.it",
-"urbinopesaro.it",
-"va.it",
-"varese.it",
-"vb.it",
-"vc.it",
-"ve.it",
-"venezia.it",
-"venice.it",
-"verbania.it",
-"vercelli.it",
-"verona.it",
-"vi.it",
-"vibo-valentia.it",
-"vibovalentia.it",
-"vicenza.it",
-"viterbo.it",
-"vr.it",
-"vs.it",
-"vt.it",
-"vv.it",
-"je",
-"co.je",
-"net.je",
-"org.je",
-"*.jm",
-"jo",
-"com.jo",
-"org.jo",
-"net.jo",
-"edu.jo",
-"sch.jo",
-"gov.jo",
-"mil.jo",
-"name.jo",
-"jobs",
-"jp",
-"ac.jp",
-"ad.jp",
-"co.jp",
-"ed.jp",
-"go.jp",
-"gr.jp",
-"lg.jp",
-"ne.jp",
-"or.jp",
-"aichi.jp",
-"akita.jp",
-"aomori.jp",
-"chiba.jp",
-"ehime.jp",
-"fukui.jp",
-"fukuoka.jp",
-"fukushima.jp",
-"gifu.jp",
-"gunma.jp",
-"hiroshima.jp",
-"hokkaido.jp",
-"hyogo.jp",
-"ibaraki.jp",
-"ishikawa.jp",
-"iwate.jp",
-"kagawa.jp",
-"kagoshima.jp",
-"kanagawa.jp",
-"kochi.jp",
-"kumamoto.jp",
-"kyoto.jp",
-"mie.jp",
-"miyagi.jp",
-"miyazaki.jp",
-"nagano.jp",
-"nagasaki.jp",
-"nara.jp",
-"niigata.jp",
-"oita.jp",
-"okayama.jp",
-"okinawa.jp",
-"osaka.jp",
-"saga.jp",
-"saitama.jp",
-"shiga.jp",
-"shimane.jp",
-"shizuoka.jp",
-"tochigi.jp",
-"tokushima.jp",
-"tokyo.jp",
-"tottori.jp",
-"toyama.jp",
-"wakayama.jp",
-"yamagata.jp",
-"yamaguchi.jp",
-"yamanashi.jp",
-"栃木.jp",
-"愛知.jp",
-"愛媛.jp",
-"兵庫.jp",
-"熊本.jp",
-"茨城.jp",
-"北海道.jp",
-"千葉.jp",
-"和歌山.jp",
-"長崎.jp",
-"長野.jp",
-"新潟.jp",
-"青森.jp",
-"静岡.jp",
-"東京.jp",
-"石川.jp",
-"埼玉.jp",
-"三重.jp",
-"京都.jp",
-"佐賀.jp",
-"大分.jp",
-"大阪.jp",
-"奈良.jp",
-"宮城.jp",
-"宮崎.jp",
-"富山.jp",
-"山口.jp",
-"山形.jp",
-"山梨.jp",
-"岩手.jp",
-"岐阜.jp",
-"岡山.jp",
-"島根.jp",
-"広島.jp",
-"徳島.jp",
-"沖縄.jp",
-"滋賀.jp",
-"神奈川.jp",
-"福井.jp",
-"福岡.jp",
-"福島.jp",
-"秋田.jp",
-"群馬.jp",
-"香川.jp",
-"高知.jp",
-"鳥取.jp",
-"鹿児島.jp",
-"*.kawasaki.jp",
-"*.kitakyushu.jp",
-"*.kobe.jp",
-"*.nagoya.jp",
-"*.sapporo.jp",
-"*.sendai.jp",
-"*.yokohama.jp",
-"!city.kawasaki.jp",
-"!city.kitakyushu.jp",
-"!city.kobe.jp",
-"!city.nagoya.jp",
-"!city.sapporo.jp",
-"!city.sendai.jp",
-"!city.yokohama.jp",
-"aisai.aichi.jp",
-"ama.aichi.jp",
-"anjo.aichi.jp",
-"asuke.aichi.jp",
-"chiryu.aichi.jp",
-"chita.aichi.jp",
-"fuso.aichi.jp",
-"gamagori.aichi.jp",
-"handa.aichi.jp",
-"hazu.aichi.jp",
-"hekinan.aichi.jp",
-"higashiura.aichi.jp",
-"ichinomiya.aichi.jp",
-"inazawa.aichi.jp",
-"inuyama.aichi.jp",
-"isshiki.aichi.jp",
-"iwakura.aichi.jp",
-"kanie.aichi.jp",
-"kariya.aichi.jp",
-"kasugai.aichi.jp",
-"kira.aichi.jp",
-"kiyosu.aichi.jp",
-"komaki.aichi.jp",
-"konan.aichi.jp",
-"kota.aichi.jp",
-"mihama.aichi.jp",
-"miyoshi.aichi.jp",
-"nishio.aichi.jp",
-"nisshin.aichi.jp",
-"obu.aichi.jp",
-"oguchi.aichi.jp",
-"oharu.aichi.jp",
-"okazaki.aichi.jp",
-"owariasahi.aichi.jp",
-"seto.aichi.jp",
-"shikatsu.aichi.jp",
-"shinshiro.aichi.jp",
-"shitara.aichi.jp",
-"tahara.aichi.jp",
-"takahama.aichi.jp",
-"tobishima.aichi.jp",
-"toei.aichi.jp",
-"togo.aichi.jp",
-"tokai.aichi.jp",
-"tokoname.aichi.jp",
-"toyoake.aichi.jp",
-"toyohashi.aichi.jp",
-"toyokawa.aichi.jp",
-"toyone.aichi.jp",
-"toyota.aichi.jp",
-"tsushima.aichi.jp",
-"yatomi.aichi.jp",
-"akita.akita.jp",
-"daisen.akita.jp",
-"fujisato.akita.jp",
-"gojome.akita.jp",
-"hachirogata.akita.jp",
-"happou.akita.jp",
-"higashinaruse.akita.jp",
-"honjo.akita.jp",
-"honjyo.akita.jp",
-"ikawa.akita.jp",
-"kamikoani.akita.jp",
-"kamioka.akita.jp",
-"katagami.akita.jp",
-"kazuno.akita.jp",
-"kitaakita.akita.jp",
-"kosaka.akita.jp",
-"kyowa.akita.jp",
-"misato.akita.jp",
-"mitane.akita.jp",
-"moriyoshi.akita.jp",
-"nikaho.akita.jp",
-"noshiro.akita.jp",
-"odate.akita.jp",
-"oga.akita.jp",
-"ogata.akita.jp",
-"semboku.akita.jp",
-"yokote.akita.jp",
-"yurihonjo.akita.jp",
-"aomori.aomori.jp",
-"gonohe.aomori.jp",
-"hachinohe.aomori.jp",
-"hashikami.aomori.jp",
-"hiranai.aomori.jp",
-"hirosaki.aomori.jp",
-"itayanagi.aomori.jp",
-"kuroishi.aomori.jp",
-"misawa.aomori.jp",
-"mutsu.aomori.jp",
-"nakadomari.aomori.jp",
-"noheji.aomori.jp",
-"oirase.aomori.jp",
-"owani.aomori.jp",
-"rokunohe.aomori.jp",
-"sannohe.aomori.jp",
-"shichinohe.aomori.jp",
-"shingo.aomori.jp",
-"takko.aomori.jp",
-"towada.aomori.jp",
-"tsugaru.aomori.jp",
-"tsuruta.aomori.jp",
-"abiko.chiba.jp",
-"asahi.chiba.jp",
-"chonan.chiba.jp",
-"chosei.chiba.jp",
-"choshi.chiba.jp",
-"chuo.chiba.jp",
-"funabashi.chiba.jp",
-"futtsu.chiba.jp",
-"hanamigawa.chiba.jp",
-"ichihara.chiba.jp",
-"ichikawa.chiba.jp",
-"ichinomiya.chiba.jp",
-"inzai.chiba.jp",
-"isumi.chiba.jp",
-"kamagaya.chiba.jp",
-"kamogawa.chiba.jp",
-"kashiwa.chiba.jp",
-"katori.chiba.jp",
-"katsuura.chiba.jp",
-"kimitsu.chiba.jp",
-"kisarazu.chiba.jp",
-"kozaki.chiba.jp",
-"kujukuri.chiba.jp",
-"kyonan.chiba.jp",
-"matsudo.chiba.jp",
-"midori.chiba.jp",
-"mihama.chiba.jp",
-"minamiboso.chiba.jp",
-"mobara.chiba.jp",
-"mutsuzawa.chiba.jp",
-"nagara.chiba.jp",
-"nagareyama.chiba.jp",
-"narashino.chiba.jp",
-"narita.chiba.jp",
-"noda.chiba.jp",
-"oamishirasato.chiba.jp",
-"omigawa.chiba.jp",
-"onjuku.chiba.jp",
-"otaki.chiba.jp",
-"sakae.chiba.jp",
-"sakura.chiba.jp",
-"shimofusa.chiba.jp",
-"shirako.chiba.jp",
-"shiroi.chiba.jp",
-"shisui.chiba.jp",
-"sodegaura.chiba.jp",
-"sosa.chiba.jp",
-"tako.chiba.jp",
-"tateyama.chiba.jp",
-"togane.chiba.jp",
-"tohnosho.chiba.jp",
-"tomisato.chiba.jp",
-"urayasu.chiba.jp",
-"yachimata.chiba.jp",
-"yachiyo.chiba.jp",
-"yokaichiba.chiba.jp",
-"yokoshibahikari.chiba.jp",
-"yotsukaido.chiba.jp",
-"ainan.ehime.jp",
-"honai.ehime.jp",
-"ikata.ehime.jp",
-"imabari.ehime.jp",
-"iyo.ehime.jp",
-"kamijima.ehime.jp",
-"kihoku.ehime.jp",
-"kumakogen.ehime.jp",
-"masaki.ehime.jp",
-"matsuno.ehime.jp",
-"matsuyama.ehime.jp",
-"namikata.ehime.jp",
-"niihama.ehime.jp",
-"ozu.ehime.jp",
-"saijo.ehime.jp",
-"seiyo.ehime.jp",
-"shikokuchuo.ehime.jp",
-"tobe.ehime.jp",
-"toon.ehime.jp",
-"uchiko.ehime.jp",
-"uwajima.ehime.jp",
-"yawatahama.ehime.jp",
-"echizen.fukui.jp",
-"eiheiji.fukui.jp",
-"fukui.fukui.jp",
-"ikeda.fukui.jp",
-"katsuyama.fukui.jp",
-"mihama.fukui.jp",
-"minamiechizen.fukui.jp",
-"obama.fukui.jp",
-"ohi.fukui.jp",
-"ono.fukui.jp",
-"sabae.fukui.jp",
-"sakai.fukui.jp",
-"takahama.fukui.jp",
-"tsuruga.fukui.jp",
-"wakasa.fukui.jp",
-"ashiya.fukuoka.jp",
-"buzen.fukuoka.jp",
-"chikugo.fukuoka.jp",
-"chikuho.fukuoka.jp",
-"chikujo.fukuoka.jp",
-"chikushino.fukuoka.jp",
-"chikuzen.fukuoka.jp",
-"chuo.fukuoka.jp",
-"dazaifu.fukuoka.jp",
-"fukuchi.fukuoka.jp",
-"hakata.fukuoka.jp",
-"higashi.fukuoka.jp",
-"hirokawa.fukuoka.jp",
-"hisayama.fukuoka.jp",
-"iizuka.fukuoka.jp",
-"inatsuki.fukuoka.jp",
-"kaho.fukuoka.jp",
-"kasuga.fukuoka.jp",
-"kasuya.fukuoka.jp",
-"kawara.fukuoka.jp",
-"keisen.fukuoka.jp",
-"koga.fukuoka.jp",
-"kurate.fukuoka.jp",
-"kurogi.fukuoka.jp",
-"kurume.fukuoka.jp",
-"minami.fukuoka.jp",
-"miyako.fukuoka.jp",
-"miyama.fukuoka.jp",
-"miyawaka.fukuoka.jp",
-"mizumaki.fukuoka.jp",
-"munakata.fukuoka.jp",
-"nakagawa.fukuoka.jp",
-"nakama.fukuoka.jp",
-"nishi.fukuoka.jp",
-"nogata.fukuoka.jp",
-"ogori.fukuoka.jp",
-"okagaki.fukuoka.jp",
-"okawa.fukuoka.jp",
-"oki.fukuoka.jp",
-"omuta.fukuoka.jp",
-"onga.fukuoka.jp",
-"onojo.fukuoka.jp",
-"oto.fukuoka.jp",
-"saigawa.fukuoka.jp",
-"sasaguri.fukuoka.jp",
-"shingu.fukuoka.jp",
-"shinyoshitomi.fukuoka.jp",
-"shonai.fukuoka.jp",
-"soeda.fukuoka.jp",
-"sue.fukuoka.jp",
-"tachiarai.fukuoka.jp",
-"tagawa.fukuoka.jp",
-"takata.fukuoka.jp",
-"toho.fukuoka.jp",
-"toyotsu.fukuoka.jp",
-"tsuiki.fukuoka.jp",
-"ukiha.fukuoka.jp",
-"umi.fukuoka.jp",
-"usui.fukuoka.jp",
-"yamada.fukuoka.jp",
-"yame.fukuoka.jp",
-"yanagawa.fukuoka.jp",
-"yukuhashi.fukuoka.jp",
-"aizubange.fukushima.jp",
-"aizumisato.fukushima.jp",
-"aizuwakamatsu.fukushima.jp",
-"asakawa.fukushima.jp",
-"bandai.fukushima.jp",
-"date.fukushima.jp",
-"fukushima.fukushima.jp",
-"furudono.fukushima.jp",
-"futaba.fukushima.jp",
-"hanawa.fukushima.jp",
-"higashi.fukushima.jp",
-"hirata.fukushima.jp",
-"hirono.fukushima.jp",
-"iitate.fukushima.jp",
-"inawashiro.fukushima.jp",
-"ishikawa.fukushima.jp",
-"iwaki.fukushima.jp",
-"izumizaki.fukushima.jp",
-"kagamiishi.fukushima.jp",
-"kaneyama.fukushima.jp",
-"kawamata.fukushima.jp",
-"kitakata.fukushima.jp",
-"kitashiobara.fukushima.jp",
-"koori.fukushima.jp",
-"koriyama.fukushima.jp",
-"kunimi.fukushima.jp",
-"miharu.fukushima.jp",
-"mishima.fukushima.jp",
-"namie.fukushima.jp",
-"nango.fukushima.jp",
-"nishiaizu.fukushima.jp",
-"nishigo.fukushima.jp",
-"okuma.fukushima.jp",
-"omotego.fukushima.jp",
-"ono.fukushima.jp",
-"otama.fukushima.jp",
-"samegawa.fukushima.jp",
-"shimogo.fukushima.jp",
-"shirakawa.fukushima.jp",
-"showa.fukushima.jp",
-"soma.fukushima.jp",
-"sukagawa.fukushima.jp",
-"taishin.fukushima.jp",
-"tamakawa.fukushima.jp",
-"tanagura.fukushima.jp",
-"tenei.fukushima.jp",
-"yabuki.fukushima.jp",
-"yamato.fukushima.jp",
-"yamatsuri.fukushima.jp",
-"yanaizu.fukushima.jp",
-"yugawa.fukushima.jp",
-"anpachi.gifu.jp",
-"ena.gifu.jp",
-"gifu.gifu.jp",
-"ginan.gifu.jp",
-"godo.gifu.jp",
-"gujo.gifu.jp",
-"hashima.gifu.jp",
-"hichiso.gifu.jp",
-"hida.gifu.jp",
-"higashishirakawa.gifu.jp",
-"ibigawa.gifu.jp",
-"ikeda.gifu.jp",
-"kakamigahara.gifu.jp",
-"kani.gifu.jp",
-"kasahara.gifu.jp",
-"kasamatsu.gifu.jp",
-"kawaue.gifu.jp",
-"kitagata.gifu.jp",
-"mino.gifu.jp",
-"minokamo.gifu.jp",
-"mitake.gifu.jp",
-"mizunami.gifu.jp",
-"motosu.gifu.jp",
-"nakatsugawa.gifu.jp",
-"ogaki.gifu.jp",
-"sakahogi.gifu.jp",
-"seki.gifu.jp",
-"sekigahara.gifu.jp",
-"shirakawa.gifu.jp",
-"tajimi.gifu.jp",
-"takayama.gifu.jp",
-"tarui.gifu.jp",
-"toki.gifu.jp",
-"tomika.gifu.jp",
-"wanouchi.gifu.jp",
-"yamagata.gifu.jp",
-"yaotsu.gifu.jp",
-"yoro.gifu.jp",
-"annaka.gunma.jp",
-"chiyoda.gunma.jp",
-"fujioka.gunma.jp",
-"higashiagatsuma.gunma.jp",
-"isesaki.gunma.jp",
-"itakura.gunma.jp",
-"kanna.gunma.jp",
-"kanra.gunma.jp",
-"katashina.gunma.jp",
-"kawaba.gunma.jp",
-"kiryu.gunma.jp",
-"kusatsu.gunma.jp",
-"maebashi.gunma.jp",
-"meiwa.gunma.jp",
-"midori.gunma.jp",
-"minakami.gunma.jp",
-"naganohara.gunma.jp",
-"nakanojo.gunma.jp",
-"nanmoku.gunma.jp",
-"numata.gunma.jp",
-"oizumi.gunma.jp",
-"ora.gunma.jp",
-"ota.gunma.jp",
-"shibukawa.gunma.jp",
-"shimonita.gunma.jp",
-"shinto.gunma.jp",
-"showa.gunma.jp",
-"takasaki.gunma.jp",
-"takayama.gunma.jp",
-"tamamura.gunma.jp",
-"tatebayashi.gunma.jp",
-"tomioka.gunma.jp",
-"tsukiyono.gunma.jp",
-"tsumagoi.gunma.jp",
-"ueno.gunma.jp",
-"yoshioka.gunma.jp",
-"asaminami.hiroshima.jp",
-"daiwa.hiroshima.jp",
-"etajima.hiroshima.jp",
-"fuchu.hiroshima.jp",
-"fukuyama.hiroshima.jp",
-"hatsukaichi.hiroshima.jp",
-"higashihiroshima.hiroshima.jp",
-"hongo.hiroshima.jp",
-"jinsekikogen.hiroshima.jp",
-"kaita.hiroshima.jp",
-"kui.hiroshima.jp",
-"kumano.hiroshima.jp",
-"kure.hiroshima.jp",
-"mihara.hiroshima.jp",
-"miyoshi.hiroshima.jp",
-"naka.hiroshima.jp",
-"onomichi.hiroshima.jp",
-"osakikamijima.hiroshima.jp",
-"otake.hiroshima.jp",
-"saka.hiroshima.jp",
-"sera.hiroshima.jp",
-"seranishi.hiroshima.jp",
-"shinichi.hiroshima.jp",
-"shobara.hiroshima.jp",
-"takehara.hiroshima.jp",
-"abashiri.hokkaido.jp",
-"abira.hokkaido.jp",
-"aibetsu.hokkaido.jp",
-"akabira.hokkaido.jp",
-"akkeshi.hokkaido.jp",
-"asahikawa.hokkaido.jp",
-"ashibetsu.hokkaido.jp",
-"ashoro.hokkaido.jp",
-"assabu.hokkaido.jp",
-"atsuma.hokkaido.jp",
-"bibai.hokkaido.jp",
-"biei.hokkaido.jp",
-"bifuka.hokkaido.jp",
-"bihoro.hokkaido.jp",
-"biratori.hokkaido.jp",
-"chippubetsu.hokkaido.jp",
-"chitose.hokkaido.jp",
-"date.hokkaido.jp",
-"ebetsu.hokkaido.jp",
-"embetsu.hokkaido.jp",
-"eniwa.hokkaido.jp",
-"erimo.hokkaido.jp",
-"esan.hokkaido.jp",
-"esashi.hokkaido.jp",
-"fukagawa.hokkaido.jp",
-"fukushima.hokkaido.jp",
-"furano.hokkaido.jp",
-"furubira.hokkaido.jp",
-"haboro.hokkaido.jp",
-"hakodate.hokkaido.jp",
-"hamatonbetsu.hokkaido.jp",
-"hidaka.hokkaido.jp",
-"higashikagura.hokkaido.jp",
-"higashikawa.hokkaido.jp",
-"hiroo.hokkaido.jp",
-"hokuryu.hokkaido.jp",
-"hokuto.hokkaido.jp",
-"honbetsu.hokkaido.jp",
-"horokanai.hokkaido.jp",
-"horonobe.hokkaido.jp",
-"ikeda.hokkaido.jp",
-"imakane.hokkaido.jp",
-"ishikari.hokkaido.jp",
-"iwamizawa.hokkaido.jp",
-"iwanai.hokkaido.jp",
-"kamifurano.hokkaido.jp",
-"kamikawa.hokkaido.jp",
-"kamishihoro.hokkaido.jp",
-"kamisunagawa.hokkaido.jp",
-"kamoenai.hokkaido.jp",
-"kayabe.hokkaido.jp",
-"kembuchi.hokkaido.jp",
-"kikonai.hokkaido.jp",
-"kimobetsu.hokkaido.jp",
-"kitahiroshima.hokkaido.jp",
-"kitami.hokkaido.jp",
-"kiyosato.hokkaido.jp",
-"koshimizu.hokkaido.jp",
-"kunneppu.hokkaido.jp",
-"kuriyama.hokkaido.jp",
-"kuromatsunai.hokkaido.jp",
-"kushiro.hokkaido.jp",
-"kutchan.hokkaido.jp",
-"kyowa.hokkaido.jp",
-"mashike.hokkaido.jp",
-"matsumae.hokkaido.jp",
-"mikasa.hokkaido.jp",
-"minamifurano.hokkaido.jp",
-"mombetsu.hokkaido.jp",
-"moseushi.hokkaido.jp",
-"mukawa.hokkaido.jp",
-"muroran.hokkaido.jp",
-"naie.hokkaido.jp",
-"nakagawa.hokkaido.jp",
-"nakasatsunai.hokkaido.jp",
-"nakatombetsu.hokkaido.jp",
-"nanae.hokkaido.jp",
-"nanporo.hokkaido.jp",
-"nayoro.hokkaido.jp",
-"nemuro.hokkaido.jp",
-"niikappu.hokkaido.jp",
-"niki.hokkaido.jp",
-"nishiokoppe.hokkaido.jp",
-"noboribetsu.hokkaido.jp",
-"numata.hokkaido.jp",
-"obihiro.hokkaido.jp",
-"obira.hokkaido.jp",
-"oketo.hokkaido.jp",
-"okoppe.hokkaido.jp",
-"otaru.hokkaido.jp",
-"otobe.hokkaido.jp",
-"otofuke.hokkaido.jp",
-"otoineppu.hokkaido.jp",
-"oumu.hokkaido.jp",
-"ozora.hokkaido.jp",
-"pippu.hokkaido.jp",
-"rankoshi.hokkaido.jp",
-"rebun.hokkaido.jp",
-"rikubetsu.hokkaido.jp",
-"rishiri.hokkaido.jp",
-"rishirifuji.hokkaido.jp",
-"saroma.hokkaido.jp",
-"sarufutsu.hokkaido.jp",
-"shakotan.hokkaido.jp",
-"shari.hokkaido.jp",
-"shibecha.hokkaido.jp",
-"shibetsu.hokkaido.jp",
-"shikabe.hokkaido.jp",
-"shikaoi.hokkaido.jp",
-"shimamaki.hokkaido.jp",
-"shimizu.hokkaido.jp",
-"shimokawa.hokkaido.jp",
-"shinshinotsu.hokkaido.jp",
-"shintoku.hokkaido.jp",
-"shiranuka.hokkaido.jp",
-"shiraoi.hokkaido.jp",
-"shiriuchi.hokkaido.jp",
-"sobetsu.hokkaido.jp",
-"sunagawa.hokkaido.jp",
-"taiki.hokkaido.jp",
-"takasu.hokkaido.jp",
-"takikawa.hokkaido.jp",
-"takinoue.hokkaido.jp",
-"teshikaga.hokkaido.jp",
-"tobetsu.hokkaido.jp",
-"tohma.hokkaido.jp",
-"tomakomai.hokkaido.jp",
-"tomari.hokkaido.jp",
-"toya.hokkaido.jp",
-"toyako.hokkaido.jp",
-"toyotomi.hokkaido.jp",
-"toyoura.hokkaido.jp",
-"tsubetsu.hokkaido.jp",
-"tsukigata.hokkaido.jp",
-"urakawa.hokkaido.jp",
-"urausu.hokkaido.jp",
-"uryu.hokkaido.jp",
-"utashinai.hokkaido.jp",
-"wakkanai.hokkaido.jp",
-"wassamu.hokkaido.jp",
-"yakumo.hokkaido.jp",
-"yoichi.hokkaido.jp",
-"aioi.hyogo.jp",
-"akashi.hyogo.jp",
-"ako.hyogo.jp",
-"amagasaki.hyogo.jp",
-"aogaki.hyogo.jp",
-"asago.hyogo.jp",
-"ashiya.hyogo.jp",
-"awaji.hyogo.jp",
-"fukusaki.hyogo.jp",
-"goshiki.hyogo.jp",
-"harima.hyogo.jp",
-"himeji.hyogo.jp",
-"ichikawa.hyogo.jp",
-"inagawa.hyogo.jp",
-"itami.hyogo.jp",
-"kakogawa.hyogo.jp",
-"kamigori.hyogo.jp",
-"kamikawa.hyogo.jp",
-"kasai.hyogo.jp",
-"kasuga.hyogo.jp",
-"kawanishi.hyogo.jp",
-"miki.hyogo.jp",
-"minamiawaji.hyogo.jp",
-"nishinomiya.hyogo.jp",
-"nishiwaki.hyogo.jp",
-"ono.hyogo.jp",
-"sanda.hyogo.jp",
-"sannan.hyogo.jp",
-"sasayama.hyogo.jp",
-"sayo.hyogo.jp",
-"shingu.hyogo.jp",
-"shinonsen.hyogo.jp",
-"shiso.hyogo.jp",
-"sumoto.hyogo.jp",
-"taishi.hyogo.jp",
-"taka.hyogo.jp",
-"takarazuka.hyogo.jp",
-"takasago.hyogo.jp",
-"takino.hyogo.jp",
-"tamba.hyogo.jp",
-"tatsuno.hyogo.jp",
-"toyooka.hyogo.jp",
-"yabu.hyogo.jp",
-"yashiro.hyogo.jp",
-"yoka.hyogo.jp",
-"yokawa.hyogo.jp",
-"ami.ibaraki.jp",
-"asahi.ibaraki.jp",
-"bando.ibaraki.jp",
-"chikusei.ibaraki.jp",
-"daigo.ibaraki.jp",
-"fujishiro.ibaraki.jp",
-"hitachi.ibaraki.jp",
-"hitachinaka.ibaraki.jp",
-"hitachiomiya.ibaraki.jp",
-"hitachiota.ibaraki.jp",
-"ibaraki.ibaraki.jp",
-"ina.ibaraki.jp",
-"inashiki.ibaraki.jp",
-"itako.ibaraki.jp",
-"iwama.ibaraki.jp",
-"joso.ibaraki.jp",
-"kamisu.ibaraki.jp",
-"kasama.ibaraki.jp",
-"kashima.ibaraki.jp",
-"kasumigaura.ibaraki.jp",
-"koga.ibaraki.jp",
-"miho.ibaraki.jp",
-"mito.ibaraki.jp",
-"moriya.ibaraki.jp",
-"naka.ibaraki.jp",
-"namegata.ibaraki.jp",
-"oarai.ibaraki.jp",
-"ogawa.ibaraki.jp",
-"omitama.ibaraki.jp",
-"ryugasaki.ibaraki.jp",
-"sakai.ibaraki.jp",
-"sakuragawa.ibaraki.jp",
-"shimodate.ibaraki.jp",
-"shimotsuma.ibaraki.jp",
-"shirosato.ibaraki.jp",
-"sowa.ibaraki.jp",
-"suifu.ibaraki.jp",
-"takahagi.ibaraki.jp",
-"tamatsukuri.ibaraki.jp",
-"tokai.ibaraki.jp",
-"tomobe.ibaraki.jp",
-"tone.ibaraki.jp",
-"toride.ibaraki.jp",
-"tsuchiura.ibaraki.jp",
-"tsukuba.ibaraki.jp",
-"uchihara.ibaraki.jp",
-"ushiku.ibaraki.jp",
-"yachiyo.ibaraki.jp",
-"yamagata.ibaraki.jp",
-"yawara.ibaraki.jp",
-"yuki.ibaraki.jp",
-"anamizu.ishikawa.jp",
-"hakui.ishikawa.jp",
-"hakusan.ishikawa.jp",
-"kaga.ishikawa.jp",
-"kahoku.ishikawa.jp",
-"kanazawa.ishikawa.jp",
-"kawakita.ishikawa.jp",
-"komatsu.ishikawa.jp",
-"nakanoto.ishikawa.jp",
-"nanao.ishikawa.jp",
-"nomi.ishikawa.jp",
-"nonoichi.ishikawa.jp",
-"noto.ishikawa.jp",
-"shika.ishikawa.jp",
-"suzu.ishikawa.jp",
-"tsubata.ishikawa.jp",
-"tsurugi.ishikawa.jp",
-"uchinada.ishikawa.jp",
-"wajima.ishikawa.jp",
-"fudai.iwate.jp",
-"fujisawa.iwate.jp",
-"hanamaki.iwate.jp",
-"hiraizumi.iwate.jp",
-"hirono.iwate.jp",
-"ichinohe.iwate.jp",
-"ichinoseki.iwate.jp",
-"iwaizumi.iwate.jp",
-"iwate.iwate.jp",
-"joboji.iwate.jp",
-"kamaishi.iwate.jp",
-"kanegasaki.iwate.jp",
-"karumai.iwate.jp",
-"kawai.iwate.jp",
-"kitakami.iwate.jp",
-"kuji.iwate.jp",
-"kunohe.iwate.jp",
-"kuzumaki.iwate.jp",
-"miyako.iwate.jp",
-"mizusawa.iwate.jp",
-"morioka.iwate.jp",
-"ninohe.iwate.jp",
-"noda.iwate.jp",
-"ofunato.iwate.jp",
-"oshu.iwate.jp",
-"otsuchi.iwate.jp",
-"rikuzentakata.iwate.jp",
-"shiwa.iwate.jp",
-"shizukuishi.iwate.jp",
-"sumita.iwate.jp",
-"tanohata.iwate.jp",
-"tono.iwate.jp",
-"yahaba.iwate.jp",
-"yamada.iwate.jp",
-"ayagawa.kagawa.jp",
-"higashikagawa.kagawa.jp",
-"kanonji.kagawa.jp",
-"kotohira.kagawa.jp",
-"manno.kagawa.jp",
-"marugame.kagawa.jp",
-"mitoyo.kagawa.jp",
-"naoshima.kagawa.jp",
-"sanuki.kagawa.jp",
-"tadotsu.kagawa.jp",
-"takamatsu.kagawa.jp",
-"tonosho.kagawa.jp",
-"uchinomi.kagawa.jp",
-"utazu.kagawa.jp",
-"zentsuji.kagawa.jp",
-"akune.kagoshima.jp",
-"amami.kagoshima.jp",
-"hioki.kagoshima.jp",
-"isa.kagoshima.jp",
-"isen.kagoshima.jp",
-"izumi.kagoshima.jp",
-"kagoshima.kagoshima.jp",
-"kanoya.kagoshima.jp",
-"kawanabe.kagoshima.jp",
-"kinko.kagoshima.jp",
-"kouyama.kagoshima.jp",
-"makurazaki.kagoshima.jp",
-"matsumoto.kagoshima.jp",
-"minamitane.kagoshima.jp",
-"nakatane.kagoshima.jp",
-"nishinoomote.kagoshima.jp",
-"satsumasendai.kagoshima.jp",
-"soo.kagoshima.jp",
-"tarumizu.kagoshima.jp",
-"yusui.kagoshima.jp",
-"aikawa.kanagawa.jp",
-"atsugi.kanagawa.jp",
-"ayase.kanagawa.jp",
-"chigasaki.kanagawa.jp",
-"ebina.kanagawa.jp",
-"fujisawa.kanagawa.jp",
-"hadano.kanagawa.jp",
-"hakone.kanagawa.jp",
-"hiratsuka.kanagawa.jp",
-"isehara.kanagawa.jp",
-"kaisei.kanagawa.jp",
-"kamakura.kanagawa.jp",
-"kiyokawa.kanagawa.jp",
-"matsuda.kanagawa.jp",
-"minamiashigara.kanagawa.jp",
-"miura.kanagawa.jp",
-"nakai.kanagawa.jp",
-"ninomiya.kanagawa.jp",
-"odawara.kanagawa.jp",
-"oi.kanagawa.jp",
-"oiso.kanagawa.jp",
-"sagamihara.kanagawa.jp",
-"samukawa.kanagawa.jp",
-"tsukui.kanagawa.jp",
-"yamakita.kanagawa.jp",
-"yamato.kanagawa.jp",
-"yokosuka.kanagawa.jp",
-"yugawara.kanagawa.jp",
-"zama.kanagawa.jp",
-"zushi.kanagawa.jp",
-"aki.kochi.jp",
-"geisei.kochi.jp",
-"hidaka.kochi.jp",
-"higashitsuno.kochi.jp",
-"ino.kochi.jp",
-"kagami.kochi.jp",
-"kami.kochi.jp",
-"kitagawa.kochi.jp",
-"kochi.kochi.jp",
-"mihara.kochi.jp",
-"motoyama.kochi.jp",
-"muroto.kochi.jp",
-"nahari.kochi.jp",
-"nakamura.kochi.jp",
-"nankoku.kochi.jp",
-"nishitosa.kochi.jp",
-"niyodogawa.kochi.jp",
-"ochi.kochi.jp",
-"okawa.kochi.jp",
-"otoyo.kochi.jp",
-"otsuki.kochi.jp",
-"sakawa.kochi.jp",
-"sukumo.kochi.jp",
-"susaki.kochi.jp",
-"tosa.kochi.jp",
-"tosashimizu.kochi.jp",
-"toyo.kochi.jp",
-"tsuno.kochi.jp",
-"umaji.kochi.jp",
-"yasuda.kochi.jp",
-"yusuhara.kochi.jp",
-"amakusa.kumamoto.jp",
-"arao.kumamoto.jp",
-"aso.kumamoto.jp",
-"choyo.kumamoto.jp",
-"gyokuto.kumamoto.jp",
-"kamiamakusa.kumamoto.jp",
-"kikuchi.kumamoto.jp",
-"kumamoto.kumamoto.jp",
-"mashiki.kumamoto.jp",
-"mifune.kumamoto.jp",
-"minamata.kumamoto.jp",
-"minamioguni.kumamoto.jp",
-"nagasu.kumamoto.jp",
-"nishihara.kumamoto.jp",
-"oguni.kumamoto.jp",
-"ozu.kumamoto.jp",
-"sumoto.kumamoto.jp",
-"takamori.kumamoto.jp",
-"uki.kumamoto.jp",
-"uto.kumamoto.jp",
-"yamaga.kumamoto.jp",
-"yamato.kumamoto.jp",
-"yatsushiro.kumamoto.jp",
-"ayabe.kyoto.jp",
-"fukuchiyama.kyoto.jp",
-"higashiyama.kyoto.jp",
-"ide.kyoto.jp",
-"ine.kyoto.jp",
-"joyo.kyoto.jp",
-"kameoka.kyoto.jp",
-"kamo.kyoto.jp",
-"kita.kyoto.jp",
-"kizu.kyoto.jp",
-"kumiyama.kyoto.jp",
-"kyotamba.kyoto.jp",
-"kyotanabe.kyoto.jp",
-"kyotango.kyoto.jp",
-"maizuru.kyoto.jp",
-"minami.kyoto.jp",
-"minamiyamashiro.kyoto.jp",
-"miyazu.kyoto.jp",
-"muko.kyoto.jp",
-"nagaokakyo.kyoto.jp",
-"nakagyo.kyoto.jp",
-"nantan.kyoto.jp",
-"oyamazaki.kyoto.jp",
-"sakyo.kyoto.jp",
-"seika.kyoto.jp",
-"tanabe.kyoto.jp",
-"uji.kyoto.jp",
-"ujitawara.kyoto.jp",
-"wazuka.kyoto.jp",
-"yamashina.kyoto.jp",
-"yawata.kyoto.jp",
-"asahi.mie.jp",
-"inabe.mie.jp",
-"ise.mie.jp",
-"kameyama.mie.jp",
-"kawagoe.mie.jp",
-"kiho.mie.jp",
-"kisosaki.mie.jp",
-"kiwa.mie.jp",
-"komono.mie.jp",
-"kumano.mie.jp",
-"kuwana.mie.jp",
-"matsusaka.mie.jp",
-"meiwa.mie.jp",
-"mihama.mie.jp",
-"minamiise.mie.jp",
-"misugi.mie.jp",
-"miyama.mie.jp",
-"nabari.mie.jp",
-"shima.mie.jp",
-"suzuka.mie.jp",
-"tado.mie.jp",
-"taiki.mie.jp",
-"taki.mie.jp",
-"tamaki.mie.jp",
-"toba.mie.jp",
-"tsu.mie.jp",
-"udono.mie.jp",
-"ureshino.mie.jp",
-"watarai.mie.jp",
-"yokkaichi.mie.jp",
-"furukawa.miyagi.jp",
-"higashimatsushima.miyagi.jp",
-"ishinomaki.miyagi.jp",
-"iwanuma.miyagi.jp",
-"kakuda.miyagi.jp",
-"kami.miyagi.jp",
-"kawasaki.miyagi.jp",
-"marumori.miyagi.jp",
-"matsushima.miyagi.jp",
-"minamisanriku.miyagi.jp",
-"misato.miyagi.jp",
-"murata.miyagi.jp",
-"natori.miyagi.jp",
-"ogawara.miyagi.jp",
-"ohira.miyagi.jp",
-"onagawa.miyagi.jp",
-"osaki.miyagi.jp",
-"rifu.miyagi.jp",
-"semine.miyagi.jp",
-"shibata.miyagi.jp",
-"shichikashuku.miyagi.jp",
-"shikama.miyagi.jp",
-"shiogama.miyagi.jp",
-"shiroishi.miyagi.jp",
-"tagajo.miyagi.jp",
-"taiwa.miyagi.jp",
-"tome.miyagi.jp",
-"tomiya.miyagi.jp",
-"wakuya.miyagi.jp",
-"watari.miyagi.jp",
-"yamamoto.miyagi.jp",
-"zao.miyagi.jp",
-"aya.miyazaki.jp",
-"ebino.miyazaki.jp",
-"gokase.miyazaki.jp",
-"hyuga.miyazaki.jp",
-"kadogawa.miyazaki.jp",
-"kawaminami.miyazaki.jp",
-"kijo.miyazaki.jp",
-"kitagawa.miyazaki.jp",
-"kitakata.miyazaki.jp",
-"kitaura.miyazaki.jp",
-"kobayashi.miyazaki.jp",
-"kunitomi.miyazaki.jp",
-"kushima.miyazaki.jp",
-"mimata.miyazaki.jp",
-"miyakonojo.miyazaki.jp",
-"miyazaki.miyazaki.jp",
-"morotsuka.miyazaki.jp",
-"nichinan.miyazaki.jp",
-"nishimera.miyazaki.jp",
-"nobeoka.miyazaki.jp",
-"saito.miyazaki.jp",
-"shiiba.miyazaki.jp",
-"shintomi.miyazaki.jp",
-"takaharu.miyazaki.jp",
-"takanabe.miyazaki.jp",
-"takazaki.miyazaki.jp",
-"tsuno.miyazaki.jp",
-"achi.nagano.jp",
-"agematsu.nagano.jp",
-"anan.nagano.jp",
-"aoki.nagano.jp",
-"asahi.nagano.jp",
-"azumino.nagano.jp",
-"chikuhoku.nagano.jp",
-"chikuma.nagano.jp",
-"chino.nagano.jp",
-"fujimi.nagano.jp",
-"hakuba.nagano.jp",
-"hara.nagano.jp",
-"hiraya.nagano.jp",
-"iida.nagano.jp",
-"iijima.nagano.jp",
-"iiyama.nagano.jp",
-"iizuna.nagano.jp",
-"ikeda.nagano.jp",
-"ikusaka.nagano.jp",
-"ina.nagano.jp",
-"karuizawa.nagano.jp",
-"kawakami.nagano.jp",
-"kiso.nagano.jp",
-"kisofukushima.nagano.jp",
-"kitaaiki.nagano.jp",
-"komagane.nagano.jp",
-"komoro.nagano.jp",
-"matsukawa.nagano.jp",
-"matsumoto.nagano.jp",
-"miasa.nagano.jp",
-"minamiaiki.nagano.jp",
-"minamimaki.nagano.jp",
-"minamiminowa.nagano.jp",
-"minowa.nagano.jp",
-"miyada.nagano.jp",
-"miyota.nagano.jp",
-"mochizuki.nagano.jp",
-"nagano.nagano.jp",
-"nagawa.nagano.jp",
-"nagiso.nagano.jp",
-"nakagawa.nagano.jp",
-"nakano.nagano.jp",
-"nozawaonsen.nagano.jp",
-"obuse.nagano.jp",
-"ogawa.nagano.jp",
-"okaya.nagano.jp",
-"omachi.nagano.jp",
-"omi.nagano.jp",
-"ookuwa.nagano.jp",
-"ooshika.nagano.jp",
-"otaki.nagano.jp",
-"otari.nagano.jp",
-"sakae.nagano.jp",
-"sakaki.nagano.jp",
-"saku.nagano.jp",
-"sakuho.nagano.jp",
-"shimosuwa.nagano.jp",
-"shinanomachi.nagano.jp",
-"shiojiri.nagano.jp",
-"suwa.nagano.jp",
-"suzaka.nagano.jp",
-"takagi.nagano.jp",
-"takamori.nagano.jp",
-"takayama.nagano.jp",
-"tateshina.nagano.jp",
-"tatsuno.nagano.jp",
-"togakushi.nagano.jp",
-"togura.nagano.jp",
-"tomi.nagano.jp",
-"ueda.nagano.jp",
-"wada.nagano.jp",
-"yamagata.nagano.jp",
-"yamanouchi.nagano.jp",
-"yasaka.nagano.jp",
-"yasuoka.nagano.jp",
-"chijiwa.nagasaki.jp",
-"futsu.nagasaki.jp",
-"goto.nagasaki.jp",
-"hasami.nagasaki.jp",
-"hirado.nagasaki.jp",
-"iki.nagasaki.jp",
-"isahaya.nagasaki.jp",
-"kawatana.nagasaki.jp",
-"kuchinotsu.nagasaki.jp",
-"matsuura.nagasaki.jp",
-"nagasaki.nagasaki.jp",
-"obama.nagasaki.jp",
-"omura.nagasaki.jp",
-"oseto.nagasaki.jp",
-"saikai.nagasaki.jp",
-"sasebo.nagasaki.jp",
-"seihi.nagasaki.jp",
-"shimabara.nagasaki.jp",
-"shinkamigoto.nagasaki.jp",
-"togitsu.nagasaki.jp",
-"tsushima.nagasaki.jp",
-"unzen.nagasaki.jp",
-"ando.nara.jp",
-"gose.nara.jp",
-"heguri.nara.jp",
-"higashiyoshino.nara.jp",
-"ikaruga.nara.jp",
-"ikoma.nara.jp",
-"kamikitayama.nara.jp",
-"kanmaki.nara.jp",
-"kashiba.nara.jp",
-"kashihara.nara.jp",
-"katsuragi.nara.jp",
-"kawai.nara.jp",
-"kawakami.nara.jp",
-"kawanishi.nara.jp",
-"koryo.nara.jp",
-"kurotaki.nara.jp",
-"mitsue.nara.jp",
-"miyake.nara.jp",
-"nara.nara.jp",
-"nosegawa.nara.jp",
-"oji.nara.jp",
-"ouda.nara.jp",
-"oyodo.nara.jp",
-"sakurai.nara.jp",
-"sango.nara.jp",
-"shimoichi.nara.jp",
-"shimokitayama.nara.jp",
-"shinjo.nara.jp",
-"soni.nara.jp",
-"takatori.nara.jp",
-"tawaramoto.nara.jp",
-"tenkawa.nara.jp",
-"tenri.nara.jp",
-"uda.nara.jp",
-"yamatokoriyama.nara.jp",
-"yamatotakada.nara.jp",
-"yamazoe.nara.jp",
-"yoshino.nara.jp",
-"aga.niigata.jp",
-"agano.niigata.jp",
-"gosen.niigata.jp",
-"itoigawa.niigata.jp",
-"izumozaki.niigata.jp",
-"joetsu.niigata.jp",
-"kamo.niigata.jp",
-"kariwa.niigata.jp",
-"kashiwazaki.niigata.jp",
-"minamiuonuma.niigata.jp",
-"mitsuke.niigata.jp",
-"muika.niigata.jp",
-"murakami.niigata.jp",
-"myoko.niigata.jp",
-"nagaoka.niigata.jp",
-"niigata.niigata.jp",
-"ojiya.niigata.jp",
-"omi.niigata.jp",
-"sado.niigata.jp",
-"sanjo.niigata.jp",
-"seiro.niigata.jp",
-"seirou.niigata.jp",
-"sekikawa.niigata.jp",
-"shibata.niigata.jp",
-"tagami.niigata.jp",
-"tainai.niigata.jp",
-"tochio.niigata.jp",
-"tokamachi.niigata.jp",
-"tsubame.niigata.jp",
-"tsunan.niigata.jp",
-"uonuma.niigata.jp",
-"yahiko.niigata.jp",
-"yoita.niigata.jp",
-"yuzawa.niigata.jp",
-"beppu.oita.jp",
-"bungoono.oita.jp",
-"bungotakada.oita.jp",
-"hasama.oita.jp",
-"hiji.oita.jp",
-"himeshima.oita.jp",
-"hita.oita.jp",
-"kamitsue.oita.jp",
-"kokonoe.oita.jp",
-"kuju.oita.jp",
-"kunisaki.oita.jp",
-"kusu.oita.jp",
-"oita.oita.jp",
-"saiki.oita.jp",
-"taketa.oita.jp",
-"tsukumi.oita.jp",
-"usa.oita.jp",
-"usuki.oita.jp",
-"yufu.oita.jp",
-"akaiwa.okayama.jp",
-"asakuchi.okayama.jp",
-"bizen.okayama.jp",
-"hayashima.okayama.jp",
-"ibara.okayama.jp",
-"kagamino.okayama.jp",
-"kasaoka.okayama.jp",
-"kibichuo.okayama.jp",
-"kumenan.okayama.jp",
-"kurashiki.okayama.jp",
-"maniwa.okayama.jp",
-"misaki.okayama.jp",
-"nagi.okayama.jp",
-"niimi.okayama.jp",
-"nishiawakura.okayama.jp",
-"okayama.okayama.jp",
-"satosho.okayama.jp",
-"setouchi.okayama.jp",
-"shinjo.okayama.jp",
-"shoo.okayama.jp",
-"soja.okayama.jp",
-"takahashi.okayama.jp",
-"tamano.okayama.jp",
-"tsuyama.okayama.jp",
-"wake.okayama.jp",
-"yakage.okayama.jp",
-"aguni.okinawa.jp",
-"ginowan.okinawa.jp",
-"ginoza.okinawa.jp",
-"gushikami.okinawa.jp",
-"haebaru.okinawa.jp",
-"higashi.okinawa.jp",
-"hirara.okinawa.jp",
-"iheya.okinawa.jp",
-"ishigaki.okinawa.jp",
-"ishikawa.okinawa.jp",
-"itoman.okinawa.jp",
-"izena.okinawa.jp",
-"kadena.okinawa.jp",
-"kin.okinawa.jp",
-"kitadaito.okinawa.jp",
-"kitanakagusuku.okinawa.jp",
-"kumejima.okinawa.jp",
-"kunigami.okinawa.jp",
-"minamidaito.okinawa.jp",
-"motobu.okinawa.jp",
-"nago.okinawa.jp",
-"naha.okinawa.jp",
-"nakagusuku.okinawa.jp",
-"nakijin.okinawa.jp",
-"nanjo.okinawa.jp",
-"nishihara.okinawa.jp",
-"ogimi.okinawa.jp",
-"okinawa.okinawa.jp",
-"onna.okinawa.jp",
-"shimoji.okinawa.jp",
-"taketomi.okinawa.jp",
-"tarama.okinawa.jp",
-"tokashiki.okinawa.jp",
-"tomigusuku.okinawa.jp",
-"tonaki.okinawa.jp",
-"urasoe.okinawa.jp",
-"uruma.okinawa.jp",
-"yaese.okinawa.jp",
-"yomitan.okinawa.jp",
-"yonabaru.okinawa.jp",
-"yonaguni.okinawa.jp",
-"zamami.okinawa.jp",
-"abeno.osaka.jp",
-"chihayaakasaka.osaka.jp",
-"chuo.osaka.jp",
-"daito.osaka.jp",
-"fujiidera.osaka.jp",
-"habikino.osaka.jp",
-"hannan.osaka.jp",
-"higashiosaka.osaka.jp",
-"higashisumiyoshi.osaka.jp",
-"higashiyodogawa.osaka.jp",
-"hirakata.osaka.jp",
-"ibaraki.osaka.jp",
-"ikeda.osaka.jp",
-"izumi.osaka.jp",
-"izumiotsu.osaka.jp",
-"izumisano.osaka.jp",
-"kadoma.osaka.jp",
-"kaizuka.osaka.jp",
-"kanan.osaka.jp",
-"kashiwara.osaka.jp",
-"katano.osaka.jp",
-"kawachinagano.osaka.jp",
-"kishiwada.osaka.jp",
-"kita.osaka.jp",
-"kumatori.osaka.jp",
-"matsubara.osaka.jp",
-"minato.osaka.jp",
-"minoh.osaka.jp",
-"misaki.osaka.jp",
-"moriguchi.osaka.jp",
-"neyagawa.osaka.jp",
-"nishi.osaka.jp",
-"nose.osaka.jp",
-"osakasayama.osaka.jp",
-"sakai.osaka.jp",
-"sayama.osaka.jp",
-"sennan.osaka.jp",
-"settsu.osaka.jp",
-"shijonawate.osaka.jp",
-"shimamoto.osaka.jp",
-"suita.osaka.jp",
-"tadaoka.osaka.jp",
-"taishi.osaka.jp",
-"tajiri.osaka.jp",
-"takaishi.osaka.jp",
-"takatsuki.osaka.jp",
-"tondabayashi.osaka.jp",
-"toyonaka.osaka.jp",
-"toyono.osaka.jp",
-"yao.osaka.jp",
-"ariake.saga.jp",
-"arita.saga.jp",
-"fukudomi.saga.jp",
-"genkai.saga.jp",
-"hamatama.saga.jp",
-"hizen.saga.jp",
-"imari.saga.jp",
-"kamimine.saga.jp",
-"kanzaki.saga.jp",
-"karatsu.saga.jp",
-"kashima.saga.jp",
-"kitagata.saga.jp",
-"kitahata.saga.jp",
-"kiyama.saga.jp",
-"kouhoku.saga.jp",
-"kyuragi.saga.jp",
-"nishiarita.saga.jp",
-"ogi.saga.jp",
-"omachi.saga.jp",
-"ouchi.saga.jp",
-"saga.saga.jp",
-"shiroishi.saga.jp",
-"taku.saga.jp",
-"tara.saga.jp",
-"tosu.saga.jp",
-"yoshinogari.saga.jp",
-"arakawa.saitama.jp",
-"asaka.saitama.jp",
-"chichibu.saitama.jp",
-"fujimi.saitama.jp",
-"fujimino.saitama.jp",
-"fukaya.saitama.jp",
-"hanno.saitama.jp",
-"hanyu.saitama.jp",
-"hasuda.saitama.jp",
-"hatogaya.saitama.jp",
-"hatoyama.saitama.jp",
-"hidaka.saitama.jp",
-"higashichichibu.saitama.jp",
-"higashimatsuyama.saitama.jp",
-"honjo.saitama.jp",
-"ina.saitama.jp",
-"iruma.saitama.jp",
-"iwatsuki.saitama.jp",
-"kamiizumi.saitama.jp",
-"kamikawa.saitama.jp",
-"kamisato.saitama.jp",
-"kasukabe.saitama.jp",
-"kawagoe.saitama.jp",
-"kawaguchi.saitama.jp",
-"kawajima.saitama.jp",
-"kazo.saitama.jp",
-"kitamoto.saitama.jp",
-"koshigaya.saitama.jp",
-"kounosu.saitama.jp",
-"kuki.saitama.jp",
-"kumagaya.saitama.jp",
-"matsubushi.saitama.jp",
-"minano.saitama.jp",
-"misato.saitama.jp",
-"miyashiro.saitama.jp",
-"miyoshi.saitama.jp",
-"moroyama.saitama.jp",
-"nagatoro.saitama.jp",
-"namegawa.saitama.jp",
-"niiza.saitama.jp",
-"ogano.saitama.jp",
-"ogawa.saitama.jp",
-"ogose.saitama.jp",
-"okegawa.saitama.jp",
-"omiya.saitama.jp",
-"otaki.saitama.jp",
-"ranzan.saitama.jp",
-"ryokami.saitama.jp",
-"saitama.saitama.jp",
-"sakado.saitama.jp",
-"satte.saitama.jp",
-"sayama.saitama.jp",
-"shiki.saitama.jp",
-"shiraoka.saitama.jp",
-"soka.saitama.jp",
-"sugito.saitama.jp",
-"toda.saitama.jp",
-"tokigawa.saitama.jp",
-"tokorozawa.saitama.jp",
-"tsurugashima.saitama.jp",
-"urawa.saitama.jp",
-"warabi.saitama.jp",
-"yashio.saitama.jp",
-"yokoze.saitama.jp",
-"yono.saitama.jp",
-"yorii.saitama.jp",
-"yoshida.saitama.jp",
-"yoshikawa.saitama.jp",
-"yoshimi.saitama.jp",
-"aisho.shiga.jp",
-"gamo.shiga.jp",
-"higashiomi.shiga.jp",
-"hikone.shiga.jp",
-"koka.shiga.jp",
-"konan.shiga.jp",
-"kosei.shiga.jp",
-"koto.shiga.jp",
-"kusatsu.shiga.jp",
-"maibara.shiga.jp",
-"moriyama.shiga.jp",
-"nagahama.shiga.jp",
-"nishiazai.shiga.jp",
-"notogawa.shiga.jp",
-"omihachiman.shiga.jp",
-"otsu.shiga.jp",
-"ritto.shiga.jp",
-"ryuoh.shiga.jp",
-"takashima.shiga.jp",
-"takatsuki.shiga.jp",
-"torahime.shiga.jp",
-"toyosato.shiga.jp",
-"yasu.shiga.jp",
-"akagi.shimane.jp",
-"ama.shimane.jp",
-"gotsu.shimane.jp",
-"hamada.shimane.jp",
-"higashiizumo.shimane.jp",
-"hikawa.shimane.jp",
-"hikimi.shimane.jp",
-"izumo.shimane.jp",
-"kakinoki.shimane.jp",
-"masuda.shimane.jp",
-"matsue.shimane.jp",
-"misato.shimane.jp",
-"nishinoshima.shimane.jp",
-"ohda.shimane.jp",
-"okinoshima.shimane.jp",
-"okuizumo.shimane.jp",
-"shimane.shimane.jp",
-"tamayu.shimane.jp",
-"tsuwano.shimane.jp",
-"unnan.shimane.jp",
-"yakumo.shimane.jp",
-"yasugi.shimane.jp",
-"yatsuka.shimane.jp",
-"arai.shizuoka.jp",
-"atami.shizuoka.jp",
-"fuji.shizuoka.jp",
-"fujieda.shizuoka.jp",
-"fujikawa.shizuoka.jp",
-"fujinomiya.shizuoka.jp",
-"fukuroi.shizuoka.jp",
-"gotemba.shizuoka.jp",
-"haibara.shizuoka.jp",
-"hamamatsu.shizuoka.jp",
-"higashiizu.shizuoka.jp",
-"ito.shizuoka.jp",
-"iwata.shizuoka.jp",
-"izu.shizuoka.jp",
-"izunokuni.shizuoka.jp",
-"kakegawa.shizuoka.jp",
-"kannami.shizuoka.jp",
-"kawanehon.shizuoka.jp",
-"kawazu.shizuoka.jp",
-"kikugawa.shizuoka.jp",
-"kosai.shizuoka.jp",
-"makinohara.shizuoka.jp",
-"matsuzaki.shizuoka.jp",
-"minamiizu.shizuoka.jp",
-"mishima.shizuoka.jp",
-"morimachi.shizuoka.jp",
-"nishiizu.shizuoka.jp",
-"numazu.shizuoka.jp",
-"omaezaki.shizuoka.jp",
-"shimada.shizuoka.jp",
-"shimizu.shizuoka.jp",
-"shimoda.shizuoka.jp",
-"shizuoka.shizuoka.jp",
-"susono.shizuoka.jp",
-"yaizu.shizuoka.jp",
-"yoshida.shizuoka.jp",
-"ashikaga.tochigi.jp",
-"bato.tochigi.jp",
-"haga.tochigi.jp",
-"ichikai.tochigi.jp",
-"iwafune.tochigi.jp",
-"kaminokawa.tochigi.jp",
-"kanuma.tochigi.jp",
-"karasuyama.tochigi.jp",
-"kuroiso.tochigi.jp",
-"mashiko.tochigi.jp",
-"mibu.tochigi.jp",
-"moka.tochigi.jp",
-"motegi.tochigi.jp",
-"nasu.tochigi.jp",
-"nasushiobara.tochigi.jp",
-"nikko.tochigi.jp",
-"nishikata.tochigi.jp",
-"nogi.tochigi.jp",
-"ohira.tochigi.jp",
-"ohtawara.tochigi.jp",
-"oyama.tochigi.jp",
-"sakura.tochigi.jp",
-"sano.tochigi.jp",
-"shimotsuke.tochigi.jp",
-"shioya.tochigi.jp",
-"takanezawa.tochigi.jp",
-"tochigi.tochigi.jp",
-"tsuga.tochigi.jp",
-"ujiie.tochigi.jp",
-"utsunomiya.tochigi.jp",
-"yaita.tochigi.jp",
-"aizumi.tokushima.jp",
-"anan.tokushima.jp",
-"ichiba.tokushima.jp",
-"itano.tokushima.jp",
-"kainan.tokushima.jp",
-"komatsushima.tokushima.jp",
-"matsushige.tokushima.jp",
-"mima.tokushima.jp",
-"minami.tokushima.jp",
-"miyoshi.tokushima.jp",
-"mugi.tokushima.jp",
-"nakagawa.tokushima.jp",
-"naruto.tokushima.jp",
-"sanagochi.tokushima.jp",
-"shishikui.tokushima.jp",
-"tokushima.tokushima.jp",
-"wajiki.tokushima.jp",
-"adachi.tokyo.jp",
-"akiruno.tokyo.jp",
-"akishima.tokyo.jp",
-"aogashima.tokyo.jp",
-"arakawa.tokyo.jp",
-"bunkyo.tokyo.jp",
-"chiyoda.tokyo.jp",
-"chofu.tokyo.jp",
-"chuo.tokyo.jp",
-"edogawa.tokyo.jp",
-"fuchu.tokyo.jp",
-"fussa.tokyo.jp",
-"hachijo.tokyo.jp",
-"hachioji.tokyo.jp",
-"hamura.tokyo.jp",
-"higashikurume.tokyo.jp",
-"higashimurayama.tokyo.jp",
-"higashiyamato.tokyo.jp",
-"hino.tokyo.jp",
-"hinode.tokyo.jp",
-"hinohara.tokyo.jp",
-"inagi.tokyo.jp",
-"itabashi.tokyo.jp",
-"katsushika.tokyo.jp",
-"kita.tokyo.jp",
-"kiyose.tokyo.jp",
-"kodaira.tokyo.jp",
-"koganei.tokyo.jp",
-"kokubunji.tokyo.jp",
-"komae.tokyo.jp",
-"koto.tokyo.jp",
-"kouzushima.tokyo.jp",
-"kunitachi.tokyo.jp",
-"machida.tokyo.jp",
-"meguro.tokyo.jp",
-"minato.tokyo.jp",
-"mitaka.tokyo.jp",
-"mizuho.tokyo.jp",
-"musashimurayama.tokyo.jp",
-"musashino.tokyo.jp",
-"nakano.tokyo.jp",
-"nerima.tokyo.jp",
-"ogasawara.tokyo.jp",
-"okutama.tokyo.jp",
-"ome.tokyo.jp",
-"oshima.tokyo.jp",
-"ota.tokyo.jp",
-"setagaya.tokyo.jp",
-"shibuya.tokyo.jp",
-"shinagawa.tokyo.jp",
-"shinjuku.tokyo.jp",
-"suginami.tokyo.jp",
-"sumida.tokyo.jp",
-"tachikawa.tokyo.jp",
-"taito.tokyo.jp",
-"tama.tokyo.jp",
-"toshima.tokyo.jp",
-"chizu.tottori.jp",
-"hino.tottori.jp",
-"kawahara.tottori.jp",
-"koge.tottori.jp",
-"kotoura.tottori.jp",
-"misasa.tottori.jp",
-"nanbu.tottori.jp",
-"nichinan.tottori.jp",
-"sakaiminato.tottori.jp",
-"tottori.tottori.jp",
-"wakasa.tottori.jp",
-"yazu.tottori.jp",
-"yonago.tottori.jp",
-"asahi.toyama.jp",
-"fuchu.toyama.jp",
-"fukumitsu.toyama.jp",
-"funahashi.toyama.jp",
-"himi.toyama.jp",
-"imizu.toyama.jp",
-"inami.toyama.jp",
-"johana.toyama.jp",
-"kamiichi.toyama.jp",
-"kurobe.toyama.jp",
-"nakaniikawa.toyama.jp",
-"namerikawa.toyama.jp",
-"nanto.toyama.jp",
-"nyuzen.toyama.jp",
-"oyabe.toyama.jp",
-"taira.toyama.jp",
-"takaoka.toyama.jp",
-"tateyama.toyama.jp",
-"toga.toyama.jp",
-"tonami.toyama.jp",
-"toyama.toyama.jp",
-"unazuki.toyama.jp",
-"uozu.toyama.jp",
-"yamada.toyama.jp",
-"arida.wakayama.jp",
-"aridagawa.wakayama.jp",
-"gobo.wakayama.jp",
-"hashimoto.wakayama.jp",
-"hidaka.wakayama.jp",
-"hirogawa.wakayama.jp",
-"inami.wakayama.jp",
-"iwade.wakayama.jp",
-"kainan.wakayama.jp",
-"kamitonda.wakayama.jp",
-"katsuragi.wakayama.jp",
-"kimino.wakayama.jp",
-"kinokawa.wakayama.jp",
-"kitayama.wakayama.jp",
-"koya.wakayama.jp",
-"koza.wakayama.jp",
-"kozagawa.wakayama.jp",
-"kudoyama.wakayama.jp",
-"kushimoto.wakayama.jp",
-"mihama.wakayama.jp",
-"misato.wakayama.jp",
-"nachikatsuura.wakayama.jp",
-"shingu.wakayama.jp",
-"shirahama.wakayama.jp",
-"taiji.wakayama.jp",
-"tanabe.wakayama.jp",
-"wakayama.wakayama.jp",
-"yuasa.wakayama.jp",
-"yura.wakayama.jp",
-"asahi.yamagata.jp",
-"funagata.yamagata.jp",
-"higashine.yamagata.jp",
-"iide.yamagata.jp",
-"kahoku.yamagata.jp",
-"kaminoyama.yamagata.jp",
-"kaneyama.yamagata.jp",
-"kawanishi.yamagata.jp",
-"mamurogawa.yamagata.jp",
-"mikawa.yamagata.jp",
-"murayama.yamagata.jp",
-"nagai.yamagata.jp",
-"nakayama.yamagata.jp",
-"nanyo.yamagata.jp",
-"nishikawa.yamagata.jp",
-"obanazawa.yamagata.jp",
-"oe.yamagata.jp",
-"oguni.yamagata.jp",
-"ohkura.yamagata.jp",
-"oishida.yamagata.jp",
-"sagae.yamagata.jp",
-"sakata.yamagata.jp",
-"sakegawa.yamagata.jp",
-"shinjo.yamagata.jp",
-"shirataka.yamagata.jp",
-"shonai.yamagata.jp",
-"takahata.yamagata.jp",
-"tendo.yamagata.jp",
-"tozawa.yamagata.jp",
-"tsuruoka.yamagata.jp",
-"yamagata.yamagata.jp",
-"yamanobe.yamagata.jp",
-"yonezawa.yamagata.jp",
-"yuza.yamagata.jp",
-"abu.yamaguchi.jp",
-"hagi.yamaguchi.jp",
-"hikari.yamaguchi.jp",
-"hofu.yamaguchi.jp",
-"iwakuni.yamaguchi.jp",
-"kudamatsu.yamaguchi.jp",
-"mitou.yamaguchi.jp",
-"nagato.yamaguchi.jp",
-"oshima.yamaguchi.jp",
-"shimonoseki.yamaguchi.jp",
-"shunan.yamaguchi.jp",
-"tabuse.yamaguchi.jp",
-"tokuyama.yamaguchi.jp",
-"toyota.yamaguchi.jp",
-"ube.yamaguchi.jp",
-"yuu.yamaguchi.jp",
-"chuo.yamanashi.jp",
-"doshi.yamanashi.jp",
-"fuefuki.yamanashi.jp",
-"fujikawa.yamanashi.jp",
-"fujikawaguchiko.yamanashi.jp",
-"fujiyoshida.yamanashi.jp",
-"hayakawa.yamanashi.jp",
-"hokuto.yamanashi.jp",
-"ichikawamisato.yamanashi.jp",
-"kai.yamanashi.jp",
-"kofu.yamanashi.jp",
-"koshu.yamanashi.jp",
-"kosuge.yamanashi.jp",
-"minami-alps.yamanashi.jp",
-"minobu.yamanashi.jp",
-"nakamichi.yamanashi.jp",
-"nanbu.yamanashi.jp",
-"narusawa.yamanashi.jp",
-"nirasaki.yamanashi.jp",
-"nishikatsura.yamanashi.jp",
-"oshino.yamanashi.jp",
-"otsuki.yamanashi.jp",
-"showa.yamanashi.jp",
-"tabayama.yamanashi.jp",
-"tsuru.yamanashi.jp",
-"uenohara.yamanashi.jp",
-"yamanakako.yamanashi.jp",
-"yamanashi.yamanashi.jp",
-"ke",
-"ac.ke",
-"co.ke",
-"go.ke",
-"info.ke",
-"me.ke",
-"mobi.ke",
-"ne.ke",
-"or.ke",
-"sc.ke",
-"kg",
-"org.kg",
-"net.kg",
-"com.kg",
-"edu.kg",
-"gov.kg",
-"mil.kg",
-"*.kh",
-"ki",
-"edu.ki",
-"biz.ki",
-"net.ki",
-"org.ki",
-"gov.ki",
-"info.ki",
-"com.ki",
-"km",
-"org.km",
-"nom.km",
-"gov.km",
-"prd.km",
-"tm.km",
-"edu.km",
-"mil.km",
-"ass.km",
-"com.km",
-"coop.km",
-"asso.km",
-"presse.km",
-"medecin.km",
-"notaires.km",
-"pharmaciens.km",
-"veterinaire.km",
-"gouv.km",
-"kn",
-"net.kn",
-"org.kn",
-"edu.kn",
-"gov.kn",
-"kp",
-"com.kp",
-"edu.kp",
-"gov.kp",
-"org.kp",
-"rep.kp",
-"tra.kp",
-"kr",
-"ac.kr",
-"co.kr",
-"es.kr",
-"go.kr",
-"hs.kr",
-"kg.kr",
-"mil.kr",
-"ms.kr",
-"ne.kr",
-"or.kr",
-"pe.kr",
-"re.kr",
-"sc.kr",
-"busan.kr",
-"chungbuk.kr",
-"chungnam.kr",
-"daegu.kr",
-"daejeon.kr",
-"gangwon.kr",
-"gwangju.kr",
-"gyeongbuk.kr",
-"gyeonggi.kr",
-"gyeongnam.kr",
-"incheon.kr",
-"jeju.kr",
-"jeonbuk.kr",
-"jeonnam.kr",
-"seoul.kr",
-"ulsan.kr",
-"kw",
-"com.kw",
-"edu.kw",
-"emb.kw",
-"gov.kw",
-"ind.kw",
-"net.kw",
-"org.kw",
-"ky",
-"edu.ky",
-"gov.ky",
-"com.ky",
-"org.ky",
-"net.ky",
-"kz",
-"org.kz",
-"edu.kz",
-"net.kz",
-"gov.kz",
-"mil.kz",
-"com.kz",
-"la",
-"int.la",
-"net.la",
-"info.la",
-"edu.la",
-"gov.la",
-"per.la",
-"com.la",
-"org.la",
-"lb",
-"com.lb",
-"edu.lb",
-"gov.lb",
-"net.lb",
-"org.lb",
-"lc",
-"com.lc",
-"net.lc",
-"co.lc",
-"org.lc",
-"edu.lc",
-"gov.lc",
-"li",
-"lk",
-"gov.lk",
-"sch.lk",
-"net.lk",
-"int.lk",
-"com.lk",
-"org.lk",
-"edu.lk",
-"ngo.lk",
-"soc.lk",
-"web.lk",
-"ltd.lk",
-"assn.lk",
-"grp.lk",
-"hotel.lk",
-"ac.lk",
-"lr",
-"com.lr",
-"edu.lr",
-"gov.lr",
-"org.lr",
-"net.lr",
-"ls",
-"ac.ls",
-"biz.ls",
-"co.ls",
-"edu.ls",
-"gov.ls",
-"info.ls",
-"net.ls",
-"org.ls",
-"sc.ls",
-"lt",
-"gov.lt",
-"lu",
-"lv",
-"com.lv",
-"edu.lv",
-"gov.lv",
-"org.lv",
-"mil.lv",
-"id.lv",
-"net.lv",
-"asn.lv",
-"conf.lv",
-"ly",
-"com.ly",
-"net.ly",
-"gov.ly",
-"plc.ly",
-"edu.ly",
-"sch.ly",
-"med.ly",
-"org.ly",
-"id.ly",
-"ma",
-"co.ma",
-"net.ma",
-"gov.ma",
-"org.ma",
-"ac.ma",
-"press.ma",
-"mc",
-"tm.mc",
-"asso.mc",
-"md",
-"me",
-"co.me",
-"net.me",
-"org.me",
-"edu.me",
-"ac.me",
-"gov.me",
-"its.me",
-"priv.me",
-"mg",
-"org.mg",
-"nom.mg",
-"gov.mg",
-"prd.mg",
-"tm.mg",
-"edu.mg",
-"mil.mg",
-"com.mg",
-"co.mg",
-"mh",
-"mil",
-"mk",
-"com.mk",
-"org.mk",
-"net.mk",
-"edu.mk",
-"gov.mk",
-"inf.mk",
-"name.mk",
-"ml",
-"com.ml",
-"edu.ml",
-"gouv.ml",
-"gov.ml",
-"net.ml",
-"org.ml",
-"presse.ml",
-"*.mm",
-"mn",
-"gov.mn",
-"edu.mn",
-"org.mn",
-"mo",
-"com.mo",
-"net.mo",
-"org.mo",
-"edu.mo",
-"gov.mo",
-"mobi",
-"mp",
-"mq",
-"mr",
-"gov.mr",
-"ms",
-"com.ms",
-"edu.ms",
-"gov.ms",
-"net.ms",
-"org.ms",
-"mt",
-"com.mt",
-"edu.mt",
-"net.mt",
-"org.mt",
-"mu",
-"com.mu",
-"net.mu",
-"org.mu",
-"gov.mu",
-"ac.mu",
-"co.mu",
-"or.mu",
-"museum",
-"academy.museum",
-"agriculture.museum",
-"air.museum",
-"airguard.museum",
-"alabama.museum",
-"alaska.museum",
-"amber.museum",
-"ambulance.museum",
-"american.museum",
-"americana.museum",
-"americanantiques.museum",
-"americanart.museum",
-"amsterdam.museum",
-"and.museum",
-"annefrank.museum",
-"anthro.museum",
-"anthropology.museum",
-"antiques.museum",
-"aquarium.museum",
-"arboretum.museum",
-"archaeological.museum",
-"archaeology.museum",
-"architecture.museum",
-"art.museum",
-"artanddesign.museum",
-"artcenter.museum",
-"artdeco.museum",
-"arteducation.museum",
-"artgallery.museum",
-"arts.museum",
-"artsandcrafts.museum",
-"asmatart.museum",
-"assassination.museum",
-"assisi.museum",
-"association.museum",
-"astronomy.museum",
-"atlanta.museum",
-"austin.museum",
-"australia.museum",
-"automotive.museum",
-"aviation.museum",
-"axis.museum",
-"badajoz.museum",
-"baghdad.museum",
-"bahn.museum",
-"bale.museum",
-"baltimore.museum",
-"barcelona.museum",
-"baseball.museum",
-"basel.museum",
-"baths.museum",
-"bauern.museum",
-"beauxarts.museum",
-"beeldengeluid.museum",
-"bellevue.museum",
-"bergbau.museum",
-"berkeley.museum",
-"berlin.museum",
-"bern.museum",
-"bible.museum",
-"bilbao.museum",
-"bill.museum",
-"birdart.museum",
-"birthplace.museum",
-"bonn.museum",
-"boston.museum",
-"botanical.museum",
-"botanicalgarden.museum",
-"botanicgarden.museum",
-"botany.museum",
-"brandywinevalley.museum",
-"brasil.museum",
-"bristol.museum",
-"british.museum",
-"britishcolumbia.museum",
-"broadcast.museum",
-"brunel.museum",
-"brussel.museum",
-"brussels.museum",
-"bruxelles.museum",
-"building.museum",
-"burghof.museum",
-"bus.museum",
-"bushey.museum",
-"cadaques.museum",
-"california.museum",
-"cambridge.museum",
-"can.museum",
-"canada.museum",
-"capebreton.museum",
-"carrier.museum",
-"cartoonart.museum",
-"casadelamoneda.museum",
-"castle.museum",
-"castres.museum",
-"celtic.museum",
-"center.museum",
-"chattanooga.museum",
-"cheltenham.museum",
-"chesapeakebay.museum",
-"chicago.museum",
-"children.museum",
-"childrens.museum",
-"childrensgarden.museum",
-"chiropractic.museum",
-"chocolate.museum",
-"christiansburg.museum",
-"cincinnati.museum",
-"cinema.museum",
-"circus.museum",
-"civilisation.museum",
-"civilization.museum",
-"civilwar.museum",
-"clinton.museum",
-"clock.museum",
-"coal.museum",
-"coastaldefence.museum",
-"cody.museum",
-"coldwar.museum",
-"collection.museum",
-"colonialwilliamsburg.museum",
-"coloradoplateau.museum",
-"columbia.museum",
-"columbus.museum",
-"communication.museum",
-"communications.museum",
-"community.museum",
-"computer.museum",
-"computerhistory.museum",
-"comunicações.museum",
-"contemporary.museum",
-"contemporaryart.museum",
-"convent.museum",
-"copenhagen.museum",
-"corporation.museum",
-"correios-e-telecomunicações.museum",
-"corvette.museum",
-"costume.museum",
-"countryestate.museum",
-"county.museum",
-"crafts.museum",
-"cranbrook.museum",
-"creation.museum",
-"cultural.museum",
-"culturalcenter.museum",
-"culture.museum",
-"cyber.museum",
-"cymru.museum",
-"dali.museum",
-"dallas.museum",
-"database.museum",
-"ddr.museum",
-"decorativearts.museum",
-"delaware.museum",
-"delmenhorst.museum",
-"denmark.museum",
-"depot.museum",
-"design.museum",
-"detroit.museum",
-"dinosaur.museum",
-"discovery.museum",
-"dolls.museum",
-"donostia.museum",
-"durham.museum",
-"eastafrica.museum",
-"eastcoast.museum",
-"education.museum",
-"educational.museum",
-"egyptian.museum",
-"eisenbahn.museum",
-"elburg.museum",
-"elvendrell.museum",
-"embroidery.museum",
-"encyclopedic.museum",
-"england.museum",
-"entomology.museum",
-"environment.museum",
-"environmentalconservation.museum",
-"epilepsy.museum",
-"essex.museum",
-"estate.museum",
-"ethnology.museum",
-"exeter.museum",
-"exhibition.museum",
-"family.museum",
-"farm.museum",
-"farmequipment.museum",
-"farmers.museum",
-"farmstead.museum",
-"field.museum",
-"figueres.museum",
-"filatelia.museum",
-"film.museum",
-"fineart.museum",
-"finearts.museum",
-"finland.museum",
-"flanders.museum",
-"florida.museum",
-"force.museum",
-"fortmissoula.museum",
-"fortworth.museum",
-"foundation.museum",
-"francaise.museum",
-"frankfurt.museum",
-"franziskaner.museum",
-"freemasonry.museum",
-"freiburg.museum",
-"fribourg.museum",
-"frog.museum",
-"fundacio.museum",
-"furniture.museum",
-"gallery.museum",
-"garden.museum",
-"gateway.museum",
-"geelvinck.museum",
-"gemological.museum",
-"geology.museum",
-"georgia.museum",
-"giessen.museum",
-"glas.museum",
-"glass.museum",
-"gorge.museum",
-"grandrapids.museum",
-"graz.museum",
-"guernsey.museum",
-"halloffame.museum",
-"hamburg.museum",
-"handson.museum",
-"harvestcelebration.museum",
-"hawaii.museum",
-"health.museum",
-"heimatunduhren.museum",
-"hellas.museum",
-"helsinki.museum",
-"hembygdsforbund.museum",
-"heritage.museum",
-"histoire.museum",
-"historical.museum",
-"historicalsociety.museum",
-"historichouses.museum",
-"historisch.museum",
-"historisches.museum",
-"history.museum",
-"historyofscience.museum",
-"horology.museum",
-"house.museum",
-"humanities.museum",
-"illustration.museum",
-"imageandsound.museum",
-"indian.museum",
-"indiana.museum",
-"indianapolis.museum",
-"indianmarket.museum",
-"intelligence.museum",
-"interactive.museum",
-"iraq.museum",
-"iron.museum",
-"isleofman.museum",
-"jamison.museum",
-"jefferson.museum",
-"jerusalem.museum",
-"jewelry.museum",
-"jewish.museum",
-"jewishart.museum",
-"jfk.museum",
-"journalism.museum",
-"judaica.museum",
-"judygarland.museum",
-"juedisches.museum",
-"juif.museum",
-"karate.museum",
-"karikatur.museum",
-"kids.museum",
-"koebenhavn.museum",
-"koeln.museum",
-"kunst.museum",
-"kunstsammlung.museum",
-"kunstunddesign.museum",
-"labor.museum",
-"labour.museum",
-"lajolla.museum",
-"lancashire.museum",
-"landes.museum",
-"lans.museum",
-"läns.museum",
-"larsson.museum",
-"lewismiller.museum",
-"lincoln.museum",
-"linz.museum",
-"living.museum",
-"livinghistory.museum",
-"localhistory.museum",
-"london.museum",
-"losangeles.museum",
-"louvre.museum",
-"loyalist.museum",
-"lucerne.museum",
-"luxembourg.museum",
-"luzern.museum",
-"mad.museum",
-"madrid.museum",
-"mallorca.museum",
-"manchester.museum",
-"mansion.museum",
-"mansions.museum",
-"manx.museum",
-"marburg.museum",
-"maritime.museum",
-"maritimo.museum",
-"maryland.museum",
-"marylhurst.museum",
-"media.museum",
-"medical.museum",
-"medizinhistorisches.museum",
-"meeres.museum",
-"memorial.museum",
-"mesaverde.museum",
-"michigan.museum",
-"midatlantic.museum",
-"military.museum",
-"mill.museum",
-"miners.museum",
-"mining.museum",
-"minnesota.museum",
-"missile.museum",
-"missoula.museum",
-"modern.museum",
-"moma.museum",
-"money.museum",
-"monmouth.museum",
-"monticello.museum",
-"montreal.museum",
-"moscow.museum",
-"motorcycle.museum",
-"muenchen.museum",
-"muenster.museum",
-"mulhouse.museum",
-"muncie.museum",
-"museet.museum",
-"museumcenter.museum",
-"museumvereniging.museum",
-"music.museum",
-"national.museum",
-"nationalfirearms.museum",
-"nationalheritage.museum",
-"nativeamerican.museum",
-"naturalhistory.museum",
-"naturalhistorymuseum.museum",
-"naturalsciences.museum",
-"nature.museum",
-"naturhistorisches.museum",
-"natuurwetenschappen.museum",
-"naumburg.museum",
-"naval.museum",
-"nebraska.museum",
-"neues.museum",
-"newhampshire.museum",
-"newjersey.museum",
-"newmexico.museum",
-"newport.museum",
-"newspaper.museum",
-"newyork.museum",
-"niepce.museum",
-"norfolk.museum",
-"north.museum",
-"nrw.museum",
-"nyc.museum",
-"nyny.museum",
-"oceanographic.museum",
-"oceanographique.museum",
-"omaha.museum",
-"online.museum",
-"ontario.museum",
-"openair.museum",
-"oregon.museum",
-"oregontrail.museum",
-"otago.museum",
-"oxford.museum",
-"pacific.museum",
-"paderborn.museum",
-"palace.museum",
-"paleo.museum",
-"palmsprings.museum",
-"panama.museum",
-"paris.museum",
-"pasadena.museum",
-"pharmacy.museum",
-"philadelphia.museum",
-"philadelphiaarea.museum",
-"philately.museum",
-"phoenix.museum",
-"photography.museum",
-"pilots.museum",
-"pittsburgh.museum",
-"planetarium.museum",
-"plantation.museum",
-"plants.museum",
-"plaza.museum",
-"portal.museum",
-"portland.museum",
-"portlligat.museum",
-"posts-and-telecommunications.museum",
-"preservation.museum",
-"presidio.museum",
-"press.museum",
-"project.museum",
-"public.museum",
-"pubol.museum",
-"quebec.museum",
-"railroad.museum",
-"railway.museum",
-"research.museum",
-"resistance.museum",
-"riodejaneiro.museum",
-"rochester.museum",
-"rockart.museum",
-"roma.museum",
-"russia.museum",
-"saintlouis.museum",
-"salem.museum",
-"salvadordali.museum",
-"salzburg.museum",
-"sandiego.museum",
-"sanfrancisco.museum",
-"santabarbara.museum",
-"santacruz.museum",
-"santafe.museum",
-"saskatchewan.museum",
-"satx.museum",
-"savannahga.museum",
-"schlesisches.museum",
-"schoenbrunn.museum",
-"schokoladen.museum",
-"school.museum",
-"schweiz.museum",
-"science.museum",
-"scienceandhistory.museum",
-"scienceandindustry.museum",
-"sciencecenter.museum",
-"sciencecenters.museum",
-"science-fiction.museum",
-"sciencehistory.museum",
-"sciences.museum",
-"sciencesnaturelles.museum",
-"scotland.museum",
-"seaport.museum",
-"settlement.museum",
-"settlers.museum",
-"shell.museum",
-"sherbrooke.museum",
-"sibenik.museum",
-"silk.museum",
-"ski.museum",
-"skole.museum",
-"society.museum",
-"sologne.museum",
-"soundandvision.museum",
-"southcarolina.museum",
-"southwest.museum",
-"space.museum",
-"spy.museum",
-"square.museum",
-"stadt.museum",
-"stalbans.museum",
-"starnberg.museum",
-"state.museum",
-"stateofdelaware.museum",
-"station.museum",
-"steam.museum",
-"steiermark.museum",
-"stjohn.museum",
-"stockholm.museum",
-"stpetersburg.museum",
-"stuttgart.museum",
-"suisse.museum",
-"surgeonshall.museum",
-"surrey.museum",
-"svizzera.museum",
-"sweden.museum",
-"sydney.museum",
-"tank.museum",
-"tcm.museum",
-"technology.museum",
-"telekommunikation.museum",
-"television.museum",
-"texas.museum",
-"textile.museum",
-"theater.museum",
-"time.museum",
-"timekeeping.museum",
-"topology.museum",
-"torino.museum",
-"touch.museum",
-"town.museum",
-"transport.museum",
-"tree.museum",
-"trolley.museum",
-"trust.museum",
-"trustee.museum",
-"uhren.museum",
-"ulm.museum",
-"undersea.museum",
-"university.museum",
-"usa.museum",
-"usantiques.museum",
-"usarts.museum",
-"uscountryestate.museum",
-"usculture.museum",
-"usdecorativearts.museum",
-"usgarden.museum",
-"ushistory.museum",
-"ushuaia.museum",
-"uslivinghistory.museum",
-"utah.museum",
-"uvic.museum",
-"valley.museum",
-"vantaa.museum",
-"versailles.museum",
-"viking.museum",
-"village.museum",
-"virginia.museum",
-"virtual.museum",
-"virtuel.museum",
-"vlaanderen.museum",
-"volkenkunde.museum",
-"wales.museum",
-"wallonie.museum",
-"war.museum",
-"washingtondc.museum",
-"watchandclock.museum",
-"watch-and-clock.museum",
-"western.museum",
-"westfalen.museum",
-"whaling.museum",
-"wildlife.museum",
-"williamsburg.museum",
-"windmill.museum",
-"workshop.museum",
-"york.museum",
-"yorkshire.museum",
-"yosemite.museum",
-"youth.museum",
-"zoological.museum",
-"zoology.museum",
-"ירושלים.museum",
-"иком.museum",
-"mv",
-"aero.mv",
-"biz.mv",
-"com.mv",
-"coop.mv",
-"edu.mv",
-"gov.mv",
-"info.mv",
-"int.mv",
-"mil.mv",
-"museum.mv",
-"name.mv",
-"net.mv",
-"org.mv",
-"pro.mv",
-"mw",
-"ac.mw",
-"biz.mw",
-"co.mw",
-"com.mw",
-"coop.mw",
-"edu.mw",
-"gov.mw",
-"int.mw",
-"museum.mw",
-"net.mw",
-"org.mw",
-"mx",
-"com.mx",
-"org.mx",
-"gob.mx",
-"edu.mx",
-"net.mx",
-"my",
-"com.my",
-"net.my",
-"org.my",
-"gov.my",
-"edu.my",
-"mil.my",
-"name.my",
-"mz",
-"ac.mz",
-"adv.mz",
-"co.mz",
-"edu.mz",
-"gov.mz",
-"mil.mz",
-"net.mz",
-"org.mz",
-"na",
-"info.na",
-"pro.na",
-"name.na",
-"school.na",
-"or.na",
-"dr.na",
-"us.na",
-"mx.na",
-"ca.na",
-"in.na",
-"cc.na",
-"tv.na",
-"ws.na",
-"mobi.na",
-"co.na",
-"com.na",
-"org.na",
-"name",
-"nc",
-"asso.nc",
-"nom.nc",
-"ne",
-"net",
-"nf",
-"com.nf",
-"net.nf",
-"per.nf",
-"rec.nf",
-"web.nf",
-"arts.nf",
-"firm.nf",
-"info.nf",
-"other.nf",
-"store.nf",
-"ng",
-"com.ng",
-"edu.ng",
-"gov.ng",
-"i.ng",
-"mil.ng",
-"mobi.ng",
-"name.ng",
-"net.ng",
-"org.ng",
-"sch.ng",
-"ni",
-"ac.ni",
-"biz.ni",
-"co.ni",
-"com.ni",
-"edu.ni",
-"gob.ni",
-"in.ni",
-"info.ni",
-"int.ni",
-"mil.ni",
-"net.ni",
-"nom.ni",
-"org.ni",
-"web.ni",
-"nl",
-"no",
-"fhs.no",
-"vgs.no",
-"fylkesbibl.no",
-"folkebibl.no",
-"museum.no",
-"idrett.no",
-"priv.no",
-"mil.no",
-"stat.no",
-"dep.no",
-"kommune.no",
-"herad.no",
-"aa.no",
-"ah.no",
-"bu.no",
-"fm.no",
-"hl.no",
-"hm.no",
-"jan-mayen.no",
-"mr.no",
-"nl.no",
-"nt.no",
-"of.no",
-"ol.no",
-"oslo.no",
-"rl.no",
-"sf.no",
-"st.no",
-"svalbard.no",
-"tm.no",
-"tr.no",
-"va.no",
-"vf.no",
-"gs.aa.no",
-"gs.ah.no",
-"gs.bu.no",
-"gs.fm.no",
-"gs.hl.no",
-"gs.hm.no",
-"gs.jan-mayen.no",
-"gs.mr.no",
-"gs.nl.no",
-"gs.nt.no",
-"gs.of.no",
-"gs.ol.no",
-"gs.oslo.no",
-"gs.rl.no",
-"gs.sf.no",
-"gs.st.no",
-"gs.svalbard.no",
-"gs.tm.no",
-"gs.tr.no",
-"gs.va.no",
-"gs.vf.no",
-"akrehamn.no",
-"åkrehamn.no",
-"algard.no",
-"ålgård.no",
-"arna.no",
-"brumunddal.no",
-"bryne.no",
-"bronnoysund.no",
-"brønnøysund.no",
-"drobak.no",
-"drøbak.no",
-"egersund.no",
-"fetsund.no",
-"floro.no",
-"florø.no",
-"fredrikstad.no",
-"hokksund.no",
-"honefoss.no",
-"hønefoss.no",
-"jessheim.no",
-"jorpeland.no",
-"jørpeland.no",
-"kirkenes.no",
-"kopervik.no",
-"krokstadelva.no",
-"langevag.no",
-"langevåg.no",
-"leirvik.no",
-"mjondalen.no",
-"mjøndalen.no",
-"mo-i-rana.no",
-"mosjoen.no",
-"mosjøen.no",
-"nesoddtangen.no",
-"orkanger.no",
-"osoyro.no",
-"osøyro.no",
-"raholt.no",
-"råholt.no",
-"sandnessjoen.no",
-"sandnessjøen.no",
-"skedsmokorset.no",
-"slattum.no",
-"spjelkavik.no",
-"stathelle.no",
-"stavern.no",
-"stjordalshalsen.no",
-"stjørdalshalsen.no",
-"tananger.no",
-"tranby.no",
-"vossevangen.no",
-"afjord.no",
-"åfjord.no",
-"agdenes.no",
-"al.no",
-"ål.no",
-"alesund.no",
-"ålesund.no",
-"alstahaug.no",
-"alta.no",
-"áltá.no",
-"alaheadju.no",
-"álaheadju.no",
-"alvdal.no",
-"amli.no",
-"åmli.no",
-"amot.no",
-"åmot.no",
-"andebu.no",
-"andoy.no",
-"andøy.no",
-"andasuolo.no",
-"ardal.no",
-"årdal.no",
-"aremark.no",
-"arendal.no",
-"ås.no",
-"aseral.no",
-"åseral.no",
-"asker.no",
-"askim.no",
-"askvoll.no",
-"askoy.no",
-"askøy.no",
-"asnes.no",
-"åsnes.no",
-"audnedaln.no",
-"aukra.no",
-"aure.no",
-"aurland.no",
-"aurskog-holand.no",
-"aurskog-høland.no",
-"austevoll.no",
-"austrheim.no",
-"averoy.no",
-"averøy.no",
-"balestrand.no",
-"ballangen.no",
-"balat.no",
-"bálát.no",
-"balsfjord.no",
-"bahccavuotna.no",
-"báhccavuotna.no",
-"bamble.no",
-"bardu.no",
-"beardu.no",
-"beiarn.no",
-"bajddar.no",
-"bájddar.no",
-"baidar.no",
-"báidár.no",
-"berg.no",
-"bergen.no",
-"berlevag.no",
-"berlevåg.no",
-"bearalvahki.no",
-"bearalváhki.no",
-"bindal.no",
-"birkenes.no",
-"bjarkoy.no",
-"bjarkøy.no",
-"bjerkreim.no",
-"bjugn.no",
-"bodo.no",
-"bodø.no",
-"badaddja.no",
-"bådåddjå.no",
-"budejju.no",
-"bokn.no",
-"bremanger.no",
-"bronnoy.no",
-"brønnøy.no",
-"bygland.no",
-"bykle.no",
-"barum.no",
-"bærum.no",
-"bo.telemark.no",
-"bø.telemark.no",
-"bo.nordland.no",
-"bø.nordland.no",
-"bievat.no",
-"bievát.no",
-"bomlo.no",
-"bømlo.no",
-"batsfjord.no",
-"båtsfjord.no",
-"bahcavuotna.no",
-"báhcavuotna.no",
-"dovre.no",
-"drammen.no",
-"drangedal.no",
-"dyroy.no",
-"dyrøy.no",
-"donna.no",
-"dønna.no",
-"eid.no",
-"eidfjord.no",
-"eidsberg.no",
-"eidskog.no",
-"eidsvoll.no",
-"eigersund.no",
-"elverum.no",
-"enebakk.no",
-"engerdal.no",
-"etne.no",
-"etnedal.no",
-"evenes.no",
-"evenassi.no",
-"evenášši.no",
-"evje-og-hornnes.no",
-"farsund.no",
-"fauske.no",
-"fuossko.no",
-"fuoisku.no",
-"fedje.no",
-"fet.no",
-"finnoy.no",
-"finnøy.no",
-"fitjar.no",
-"fjaler.no",
-"fjell.no",
-"flakstad.no",
-"flatanger.no",
-"flekkefjord.no",
-"flesberg.no",
-"flora.no",
-"fla.no",
-"flå.no",
-"folldal.no",
-"forsand.no",
-"fosnes.no",
-"frei.no",
-"frogn.no",
-"froland.no",
-"frosta.no",
-"frana.no",
-"fræna.no",
-"froya.no",
-"frøya.no",
-"fusa.no",
-"fyresdal.no",
-"forde.no",
-"førde.no",
-"gamvik.no",
-"gangaviika.no",
-"gáŋgaviika.no",
-"gaular.no",
-"gausdal.no",
-"gildeskal.no",
-"gildeskål.no",
-"giske.no",
-"gjemnes.no",
-"gjerdrum.no",
-"gjerstad.no",
-"gjesdal.no",
-"gjovik.no",
-"gjøvik.no",
-"gloppen.no",
-"gol.no",
-"gran.no",
-"grane.no",
-"granvin.no",
-"gratangen.no",
-"grimstad.no",
-"grong.no",
-"kraanghke.no",
-"kråanghke.no",
-"grue.no",
-"gulen.no",
-"hadsel.no",
-"halden.no",
-"halsa.no",
-"hamar.no",
-"hamaroy.no",
-"habmer.no",
-"hábmer.no",
-"hapmir.no",
-"hápmir.no",
-"hammerfest.no",
-"hammarfeasta.no",
-"hámmárfeasta.no",
-"haram.no",
-"hareid.no",
-"harstad.no",
-"hasvik.no",
-"aknoluokta.no",
-"ákŋoluokta.no",
-"hattfjelldal.no",
-"aarborte.no",
-"haugesund.no",
-"hemne.no",
-"hemnes.no",
-"hemsedal.no",
-"heroy.more-og-romsdal.no",
-"herøy.møre-og-romsdal.no",
-"heroy.nordland.no",
-"herøy.nordland.no",
-"hitra.no",
-"hjartdal.no",
-"hjelmeland.no",
-"hobol.no",
-"hobøl.no",
-"hof.no",
-"hol.no",
-"hole.no",
-"holmestrand.no",
-"holtalen.no",
-"holtålen.no",
-"hornindal.no",
-"horten.no",
-"hurdal.no",
-"hurum.no",
-"hvaler.no",
-"hyllestad.no",
-"hagebostad.no",
-"hægebostad.no",
-"hoyanger.no",
-"høyanger.no",
-"hoylandet.no",
-"høylandet.no",
-"ha.no",
-"hå.no",
-"ibestad.no",
-"inderoy.no",
-"inderøy.no",
-"iveland.no",
-"jevnaker.no",
-"jondal.no",
-"jolster.no",
-"jølster.no",
-"karasjok.no",
-"karasjohka.no",
-"kárášjohka.no",
-"karlsoy.no",
-"galsa.no",
-"gálsá.no",
-"karmoy.no",
-"karmøy.no",
-"kautokeino.no",
-"guovdageaidnu.no",
-"klepp.no",
-"klabu.no",
-"klæbu.no",
-"kongsberg.no",
-"kongsvinger.no",
-"kragero.no",
-"kragerø.no",
-"kristiansand.no",
-"kristiansund.no",
-"krodsherad.no",
-"krødsherad.no",
-"kvalsund.no",
-"rahkkeravju.no",
-"ráhkkerávju.no",
-"kvam.no",
-"kvinesdal.no",
-"kvinnherad.no",
-"kviteseid.no",
-"kvitsoy.no",
-"kvitsøy.no",
-"kvafjord.no",
-"kvæfjord.no",
-"giehtavuoatna.no",
-"kvanangen.no",
-"kvænangen.no",
-"navuotna.no",
-"návuotna.no",
-"kafjord.no",
-"kåfjord.no",
-"gaivuotna.no",
-"gáivuotna.no",
-"larvik.no",
-"lavangen.no",
-"lavagis.no",
-"loabat.no",
-"loabát.no",
-"lebesby.no",
-"davvesiida.no",
-"leikanger.no",
-"leirfjord.no",
-"leka.no",
-"leksvik.no",
-"lenvik.no",
-"leangaviika.no",
-"leaŋgaviika.no",
-"lesja.no",
-"levanger.no",
-"lier.no",
-"lierne.no",
-"lillehammer.no",
-"lillesand.no",
-"lindesnes.no",
-"lindas.no",
-"lindås.no",
-"lom.no",
-"loppa.no",
-"lahppi.no",
-"láhppi.no",
-"lund.no",
-"lunner.no",
-"luroy.no",
-"lurøy.no",
-"luster.no",
-"lyngdal.no",
-"lyngen.no",
-"ivgu.no",
-"lardal.no",
-"lerdal.no",
-"lærdal.no",
-"lodingen.no",
-"lødingen.no",
-"lorenskog.no",
-"lørenskog.no",
-"loten.no",
-"løten.no",
-"malvik.no",
-"masoy.no",
-"måsøy.no",
-"muosat.no",
-"muosát.no",
-"mandal.no",
-"marker.no",
-"marnardal.no",
-"masfjorden.no",
-"meland.no",
-"meldal.no",
-"melhus.no",
-"meloy.no",
-"meløy.no",
-"meraker.no",
-"meråker.no",
-"moareke.no",
-"moåreke.no",
-"midsund.no",
-"midtre-gauldal.no",
-"modalen.no",
-"modum.no",
-"molde.no",
-"moskenes.no",
-"moss.no",
-"mosvik.no",
-"malselv.no",
-"målselv.no",
-"malatvuopmi.no",
-"málatvuopmi.no",
-"namdalseid.no",
-"aejrie.no",
-"namsos.no",
-"namsskogan.no",
-"naamesjevuemie.no",
-"nååmesjevuemie.no",
-"laakesvuemie.no",
-"nannestad.no",
-"narvik.no",
-"narviika.no",
-"naustdal.no",
-"nedre-eiker.no",
-"nes.akershus.no",
-"nes.buskerud.no",
-"nesna.no",
-"nesodden.no",
-"nesseby.no",
-"unjarga.no",
-"unjárga.no",
-"nesset.no",
-"nissedal.no",
-"nittedal.no",
-"nord-aurdal.no",
-"nord-fron.no",
-"nord-odal.no",
-"norddal.no",
-"nordkapp.no",
-"davvenjarga.no",
-"davvenjárga.no",
-"nordre-land.no",
-"nordreisa.no",
-"raisa.no",
-"ráisa.no",
-"nore-og-uvdal.no",
-"notodden.no",
-"naroy.no",
-"nærøy.no",
-"notteroy.no",
-"nøtterøy.no",
-"odda.no",
-"oksnes.no",
-"øksnes.no",
-"oppdal.no",
-"oppegard.no",
-"oppegård.no",
-"orkdal.no",
-"orland.no",
-"ørland.no",
-"orskog.no",
-"ørskog.no",
-"orsta.no",
-"ørsta.no",
-"os.hedmark.no",
-"os.hordaland.no",
-"osen.no",
-"osteroy.no",
-"osterøy.no",
-"ostre-toten.no",
-"østre-toten.no",
-"overhalla.no",
-"ovre-eiker.no",
-"øvre-eiker.no",
-"oyer.no",
-"øyer.no",
-"oygarden.no",
-"øygarden.no",
-"oystre-slidre.no",
-"øystre-slidre.no",
-"porsanger.no",
-"porsangu.no",
-"porsáŋgu.no",
-"porsgrunn.no",
-"radoy.no",
-"radøy.no",
-"rakkestad.no",
-"rana.no",
-"ruovat.no",
-"randaberg.no",
-"rauma.no",
-"rendalen.no",
-"rennebu.no",
-"rennesoy.no",
-"rennesøy.no",
-"rindal.no",
-"ringebu.no",
-"ringerike.no",
-"ringsaker.no",
-"rissa.no",
-"risor.no",
-"risør.no",
-"roan.no",
-"rollag.no",
-"rygge.no",
-"ralingen.no",
-"rælingen.no",
-"rodoy.no",
-"rødøy.no",
-"romskog.no",
-"rømskog.no",
-"roros.no",
-"røros.no",
-"rost.no",
-"røst.no",
-"royken.no",
-"røyken.no",
-"royrvik.no",
-"røyrvik.no",
-"rade.no",
-"råde.no",
-"salangen.no",
-"siellak.no",
-"saltdal.no",
-"salat.no",
-"sálát.no",
-"sálat.no",
-"samnanger.no",
-"sande.more-og-romsdal.no",
-"sande.møre-og-romsdal.no",
-"sande.vestfold.no",
-"sandefjord.no",
-"sandnes.no",
-"sandoy.no",
-"sandøy.no",
-"sarpsborg.no",
-"sauda.no",
-"sauherad.no",
-"sel.no",
-"selbu.no",
-"selje.no",
-"seljord.no",
-"sigdal.no",
-"siljan.no",
-"sirdal.no",
-"skaun.no",
-"skedsmo.no",
-"ski.no",
-"skien.no",
-"skiptvet.no",
-"skjervoy.no",
-"skjervøy.no",
-"skierva.no",
-"skiervá.no",
-"skjak.no",
-"skjåk.no",
-"skodje.no",
-"skanland.no",
-"skånland.no",
-"skanit.no",
-"skánit.no",
-"smola.no",
-"smøla.no",
-"snillfjord.no",
-"snasa.no",
-"snåsa.no",
-"snoasa.no",
-"snaase.no",
-"snåase.no",
-"sogndal.no",
-"sokndal.no",
-"sola.no",
-"solund.no",
-"songdalen.no",
-"sortland.no",
-"spydeberg.no",
-"stange.no",
-"stavanger.no",
-"steigen.no",
-"steinkjer.no",
-"stjordal.no",
-"stjørdal.no",
-"stokke.no",
-"stor-elvdal.no",
-"stord.no",
-"stordal.no",
-"storfjord.no",
-"omasvuotna.no",
-"strand.no",
-"stranda.no",
-"stryn.no",
-"sula.no",
-"suldal.no",
-"sund.no",
-"sunndal.no",
-"surnadal.no",
-"sveio.no",
-"svelvik.no",
-"sykkylven.no",
-"sogne.no",
-"søgne.no",
-"somna.no",
-"sømna.no",
-"sondre-land.no",
-"søndre-land.no",
-"sor-aurdal.no",
-"sør-aurdal.no",
-"sor-fron.no",
-"sør-fron.no",
-"sor-odal.no",
-"sør-odal.no",
-"sor-varanger.no",
-"sør-varanger.no",
-"matta-varjjat.no",
-"mátta-várjjat.no",
-"sorfold.no",
-"sørfold.no",
-"sorreisa.no",
-"sørreisa.no",
-"sorum.no",
-"sørum.no",
-"tana.no",
-"deatnu.no",
-"time.no",
-"tingvoll.no",
-"tinn.no",
-"tjeldsund.no",
-"dielddanuorri.no",
-"tjome.no",
-"tjøme.no",
-"tokke.no",
-"tolga.no",
-"torsken.no",
-"tranoy.no",
-"tranøy.no",
-"tromso.no",
-"tromsø.no",
-"tromsa.no",
-"romsa.no",
-"trondheim.no",
-"troandin.no",
-"trysil.no",
-"trana.no",
-"træna.no",
-"trogstad.no",
-"trøgstad.no",
-"tvedestrand.no",
-"tydal.no",
-"tynset.no",
-"tysfjord.no",
-"divtasvuodna.no",
-"divttasvuotna.no",
-"tysnes.no",
-"tysvar.no",
-"tysvær.no",
-"tonsberg.no",
-"tønsberg.no",
-"ullensaker.no",
-"ullensvang.no",
-"ulvik.no",
-"utsira.no",
-"vadso.no",
-"vadsø.no",
-"cahcesuolo.no",
-"čáhcesuolo.no",
-"vaksdal.no",
-"valle.no",
-"vang.no",
-"vanylven.no",
-"vardo.no",
-"vardø.no",
-"varggat.no",
-"várggát.no",
-"vefsn.no",
-"vaapste.no",
-"vega.no",
-"vegarshei.no",
-"vegårshei.no",
-"vennesla.no",
-"verdal.no",
-"verran.no",
-"vestby.no",
-"vestnes.no",
-"vestre-slidre.no",
-"vestre-toten.no",
-"vestvagoy.no",
-"vestvågøy.no",
-"vevelstad.no",
-"vik.no",
-"vikna.no",
-"vindafjord.no",
-"volda.no",
-"voss.no",
-"varoy.no",
-"værøy.no",
-"vagan.no",
-"vågan.no",
-"voagat.no",
-"vagsoy.no",
-"vågsøy.no",
-"vaga.no",
-"vågå.no",
-"valer.ostfold.no",
-"våler.østfold.no",
-"valer.hedmark.no",
-"våler.hedmark.no",
-"*.np",
-"nr",
-"biz.nr",
-"info.nr",
-"gov.nr",
-"edu.nr",
-"org.nr",
-"net.nr",
-"com.nr",
-"nu",
-"nz",
-"ac.nz",
-"co.nz",
-"cri.nz",
-"geek.nz",
-"gen.nz",
-"govt.nz",
-"health.nz",
-"iwi.nz",
-"kiwi.nz",
-"maori.nz",
-"mil.nz",
-"māori.nz",
-"net.nz",
-"org.nz",
-"parliament.nz",
-"school.nz",
-"om",
-"co.om",
-"com.om",
-"edu.om",
-"gov.om",
-"med.om",
-"museum.om",
-"net.om",
-"org.om",
-"pro.om",
-"onion",
-"org",
-"pa",
-"ac.pa",
-"gob.pa",
-"com.pa",
-"org.pa",
-"sld.pa",
-"edu.pa",
-"net.pa",
-"ing.pa",
-"abo.pa",
-"med.pa",
-"nom.pa",
-"pe",
-"edu.pe",
-"gob.pe",
-"nom.pe",
-"mil.pe",
-"org.pe",
-"com.pe",
-"net.pe",
-"pf",
-"com.pf",
-"org.pf",
-"edu.pf",
-"*.pg",
-"ph",
-"com.ph",
-"net.ph",
-"org.ph",
-"gov.ph",
-"edu.ph",
-"ngo.ph",
-"mil.ph",
-"i.ph",
-"pk",
-"com.pk",
-"net.pk",
-"edu.pk",
-"org.pk",
-"fam.pk",
-"biz.pk",
-"web.pk",
-"gov.pk",
-"gob.pk",
-"gok.pk",
-"gon.pk",
-"gop.pk",
-"gos.pk",
-"info.pk",
-"pl",
-"com.pl",
-"net.pl",
-"org.pl",
-"aid.pl",
-"agro.pl",
-"atm.pl",
-"auto.pl",
-"biz.pl",
-"edu.pl",
-"gmina.pl",
-"gsm.pl",
-"info.pl",
-"mail.pl",
-"miasta.pl",
-"media.pl",
-"mil.pl",
-"nieruchomosci.pl",
-"nom.pl",
-"pc.pl",
-"powiat.pl",
-"priv.pl",
-"realestate.pl",
-"rel.pl",
-"sex.pl",
-"shop.pl",
-"sklep.pl",
-"sos.pl",
-"szkola.pl",
-"targi.pl",
-"tm.pl",
-"tourism.pl",
-"travel.pl",
-"turystyka.pl",
-"gov.pl",
-"ap.gov.pl",
-"ic.gov.pl",
-"is.gov.pl",
-"us.gov.pl",
-"kmpsp.gov.pl",
-"kppsp.gov.pl",
-"kwpsp.gov.pl",
-"psp.gov.pl",
-"wskr.gov.pl",
-"kwp.gov.pl",
-"mw.gov.pl",
-"ug.gov.pl",
-"um.gov.pl",
-"umig.gov.pl",
-"ugim.gov.pl",
-"upow.gov.pl",
-"uw.gov.pl",
-"starostwo.gov.pl",
-"pa.gov.pl",
-"po.gov.pl",
-"psse.gov.pl",
-"pup.gov.pl",
-"rzgw.gov.pl",
-"sa.gov.pl",
-"so.gov.pl",
-"sr.gov.pl",
-"wsa.gov.pl",
-"sko.gov.pl",
-"uzs.gov.pl",
-"wiih.gov.pl",
-"winb.gov.pl",
-"pinb.gov.pl",
-"wios.gov.pl",
-"witd.gov.pl",
-"wzmiuw.gov.pl",
-"piw.gov.pl",
-"wiw.gov.pl",
-"griw.gov.pl",
-"wif.gov.pl",
-"oum.gov.pl",
-"sdn.gov.pl",
-"zp.gov.pl",
-"uppo.gov.pl",
-"mup.gov.pl",
-"wuoz.gov.pl",
-"konsulat.gov.pl",
-"oirm.gov.pl",
-"augustow.pl",
-"babia-gora.pl",
-"bedzin.pl",
-"beskidy.pl",
-"bialowieza.pl",
-"bialystok.pl",
-"bielawa.pl",
-"bieszczady.pl",
-"boleslawiec.pl",
-"bydgoszcz.pl",
-"bytom.pl",
-"cieszyn.pl",
-"czeladz.pl",
-"czest.pl",
-"dlugoleka.pl",
-"elblag.pl",
-"elk.pl",
-"glogow.pl",
-"gniezno.pl",
-"gorlice.pl",
-"grajewo.pl",
-"ilawa.pl",
-"jaworzno.pl",
-"jelenia-gora.pl",
-"jgora.pl",
-"kalisz.pl",
-"kazimierz-dolny.pl",
-"karpacz.pl",
-"kartuzy.pl",
-"kaszuby.pl",
-"katowice.pl",
-"kepno.pl",
-"ketrzyn.pl",
-"klodzko.pl",
-"kobierzyce.pl",
-"kolobrzeg.pl",
-"konin.pl",
-"konskowola.pl",
-"kutno.pl",
-"lapy.pl",
-"lebork.pl",
-"legnica.pl",
-"lezajsk.pl",
-"limanowa.pl",
-"lomza.pl",
-"lowicz.pl",
-"lubin.pl",
-"lukow.pl",
-"malbork.pl",
-"malopolska.pl",
-"mazowsze.pl",
-"mazury.pl",
-"mielec.pl",
-"mielno.pl",
-"mragowo.pl",
-"naklo.pl",
-"nowaruda.pl",
-"nysa.pl",
-"olawa.pl",
-"olecko.pl",
-"olkusz.pl",
-"olsztyn.pl",
-"opoczno.pl",
-"opole.pl",
-"ostroda.pl",
-"ostroleka.pl",
-"ostrowiec.pl",
-"ostrowwlkp.pl",
-"pila.pl",
-"pisz.pl",
-"podhale.pl",
-"podlasie.pl",
-"polkowice.pl",
-"pomorze.pl",
-"pomorskie.pl",
-"prochowice.pl",
-"pruszkow.pl",
-"przeworsk.pl",
-"pulawy.pl",
-"radom.pl",
-"rawa-maz.pl",
-"rybnik.pl",
-"rzeszow.pl",
-"sanok.pl",
-"sejny.pl",
-"slask.pl",
-"slupsk.pl",
-"sosnowiec.pl",
-"stalowa-wola.pl",
-"skoczow.pl",
-"starachowice.pl",
-"stargard.pl",
-"suwalki.pl",
-"swidnica.pl",
-"swiebodzin.pl",
-"swinoujscie.pl",
-"szczecin.pl",
-"szczytno.pl",
-"tarnobrzeg.pl",
-"tgory.pl",
-"turek.pl",
-"tychy.pl",
-"ustka.pl",
-"walbrzych.pl",
-"warmia.pl",
-"warszawa.pl",
-"waw.pl",
-"wegrow.pl",
-"wielun.pl",
-"wlocl.pl",
-"wloclawek.pl",
-"wodzislaw.pl",
-"wolomin.pl",
-"wroclaw.pl",
-"zachpomor.pl",
-"zagan.pl",
-"zarow.pl",
-"zgora.pl",
-"zgorzelec.pl",
-"pm",
-"pn",
-"gov.pn",
-"co.pn",
-"org.pn",
-"edu.pn",
-"net.pn",
-"post",
-"pr",
-"com.pr",
-"net.pr",
-"org.pr",
-"gov.pr",
-"edu.pr",
-"isla.pr",
-"pro.pr",
-"biz.pr",
-"info.pr",
-"name.pr",
-"est.pr",
-"prof.pr",
-"ac.pr",
-"pro",
-"aaa.pro",
-"aca.pro",
-"acct.pro",
-"avocat.pro",
-"bar.pro",
-"cpa.pro",
-"eng.pro",
-"jur.pro",
-"law.pro",
-"med.pro",
-"recht.pro",
-"ps",
-"edu.ps",
-"gov.ps",
-"sec.ps",
-"plo.ps",
-"com.ps",
-"org.ps",
-"net.ps",
-"pt",
-"net.pt",
-"gov.pt",
-"org.pt",
-"edu.pt",
-"int.pt",
-"publ.pt",
-"com.pt",
-"nome.pt",
-"pw",
-"co.pw",
-"ne.pw",
-"or.pw",
-"ed.pw",
-"go.pw",
-"belau.pw",
-"py",
-"com.py",
-"coop.py",
-"edu.py",
-"gov.py",
-"mil.py",
-"net.py",
-"org.py",
-"qa",
-"com.qa",
-"edu.qa",
-"gov.qa",
-"mil.qa",
-"name.qa",
-"net.qa",
-"org.qa",
-"sch.qa",
-"re",
-"asso.re",
-"com.re",
-"nom.re",
-"ro",
-"arts.ro",
-"com.ro",
-"firm.ro",
-"info.ro",
-"nom.ro",
-"nt.ro",
-"org.ro",
-"rec.ro",
-"store.ro",
-"tm.ro",
-"www.ro",
-"rs",
-"ac.rs",
-"co.rs",
-"edu.rs",
-"gov.rs",
-"in.rs",
-"org.rs",
-"ru",
-"rw",
-"ac.rw",
-"co.rw",
-"coop.rw",
-"gov.rw",
-"mil.rw",
-"net.rw",
-"org.rw",
-"sa",
-"com.sa",
-"net.sa",
-"org.sa",
-"gov.sa",
-"med.sa",
-"pub.sa",
-"edu.sa",
-"sch.sa",
-"sb",
-"com.sb",
-"edu.sb",
-"gov.sb",
-"net.sb",
-"org.sb",
-"sc",
-"com.sc",
-"gov.sc",
-"net.sc",
-"org.sc",
-"edu.sc",
-"sd",
-"com.sd",
-"net.sd",
-"org.sd",
-"edu.sd",
-"med.sd",
-"tv.sd",
-"gov.sd",
-"info.sd",
-"se",
-"a.se",
-"ac.se",
-"b.se",
-"bd.se",
-"brand.se",
-"c.se",
-"d.se",
-"e.se",
-"f.se",
-"fh.se",
-"fhsk.se",
-"fhv.se",
-"g.se",
-"h.se",
-"i.se",
-"k.se",
-"komforb.se",
-"kommunalforbund.se",
-"komvux.se",
-"l.se",
-"lanbib.se",
-"m.se",
-"n.se",
-"naturbruksgymn.se",
-"o.se",
-"org.se",
-"p.se",
-"parti.se",
-"pp.se",
-"press.se",
-"r.se",
-"s.se",
-"t.se",
-"tm.se",
-"u.se",
-"w.se",
-"x.se",
-"y.se",
-"z.se",
-"sg",
-"com.sg",
-"net.sg",
-"org.sg",
-"gov.sg",
-"edu.sg",
-"per.sg",
-"sh",
-"com.sh",
-"net.sh",
-"gov.sh",
-"org.sh",
-"mil.sh",
-"si",
-"sj",
-"sk",
-"sl",
-"com.sl",
-"net.sl",
-"edu.sl",
-"gov.sl",
-"org.sl",
-"sm",
-"sn",
-"art.sn",
-"com.sn",
-"edu.sn",
-"gouv.sn",
-"org.sn",
-"perso.sn",
-"univ.sn",
-"so",
-"com.so",
-"edu.so",
-"gov.so",
-"me.so",
-"net.so",
-"org.so",
-"sr",
-"ss",
-"biz.ss",
-"com.ss",
-"edu.ss",
-"gov.ss",
-"net.ss",
-"org.ss",
-"st",
-"co.st",
-"com.st",
-"consulado.st",
-"edu.st",
-"embaixada.st",
-"gov.st",
-"mil.st",
-"net.st",
-"org.st",
-"principe.st",
-"saotome.st",
-"store.st",
-"su",
-"sv",
-"com.sv",
-"edu.sv",
-"gob.sv",
-"org.sv",
-"red.sv",
-"sx",
-"gov.sx",
-"sy",
-"edu.sy",
-"gov.sy",
-"net.sy",
-"mil.sy",
-"com.sy",
-"org.sy",
-"sz",
-"co.sz",
-"ac.sz",
-"org.sz",
-"tc",
-"td",
-"tel",
-"tf",
-"tg",
-"th",
-"ac.th",
-"co.th",
-"go.th",
-"in.th",
-"mi.th",
-"net.th",
-"or.th",
-"tj",
-"ac.tj",
-"biz.tj",
-"co.tj",
-"com.tj",
-"edu.tj",
-"go.tj",
-"gov.tj",
-"int.tj",
-"mil.tj",
-"name.tj",
-"net.tj",
-"nic.tj",
-"org.tj",
-"test.tj",
-"web.tj",
-"tk",
-"tl",
-"gov.tl",
-"tm",
-"com.tm",
-"co.tm",
-"org.tm",
-"net.tm",
-"nom.tm",
-"gov.tm",
-"mil.tm",
-"edu.tm",
-"tn",
-"com.tn",
-"ens.tn",
-"fin.tn",
-"gov.tn",
-"ind.tn",
-"intl.tn",
-"nat.tn",
-"net.tn",
-"org.tn",
-"info.tn",
-"perso.tn",
-"tourism.tn",
-"edunet.tn",
-"rnrt.tn",
-"rns.tn",
-"rnu.tn",
-"mincom.tn",
-"agrinet.tn",
-"defense.tn",
-"turen.tn",
-"to",
-"com.to",
-"gov.to",
-"net.to",
-"org.to",
-"edu.to",
-"mil.to",
-"tr",
-"av.tr",
-"bbs.tr",
-"bel.tr",
-"biz.tr",
-"com.tr",
-"dr.tr",
-"edu.tr",
-"gen.tr",
-"gov.tr",
-"info.tr",
-"mil.tr",
-"k12.tr",
-"kep.tr",
-"name.tr",
-"net.tr",
-"org.tr",
-"pol.tr",
-"tel.tr",
-"tsk.tr",
-"tv.tr",
-"web.tr",
-"nc.tr",
-"gov.nc.tr",
-"tt",
-"co.tt",
-"com.tt",
-"org.tt",
-"net.tt",
-"biz.tt",
-"info.tt",
-"pro.tt",
-"int.tt",
-"coop.tt",
-"jobs.tt",
-"mobi.tt",
-"travel.tt",
-"museum.tt",
-"aero.tt",
-"name.tt",
-"gov.tt",
-"edu.tt",
-"tv",
-"tw",
-"edu.tw",
-"gov.tw",
-"mil.tw",
-"com.tw",
-"net.tw",
-"org.tw",
-"idv.tw",
-"game.tw",
-"ebiz.tw",
-"club.tw",
-"網路.tw",
-"組織.tw",
-"商業.tw",
-"tz",
-"ac.tz",
-"co.tz",
-"go.tz",
-"hotel.tz",
-"info.tz",
-"me.tz",
-"mil.tz",
-"mobi.tz",
-"ne.tz",
-"or.tz",
-"sc.tz",
-"tv.tz",
-"ua",
-"com.ua",
-"edu.ua",
-"gov.ua",
-"in.ua",
-"net.ua",
-"org.ua",
-"cherkassy.ua",
-"cherkasy.ua",
-"chernigov.ua",
-"chernihiv.ua",
-"chernivtsi.ua",
-"chernovtsy.ua",
-"ck.ua",
-"cn.ua",
-"cr.ua",
-"crimea.ua",
-"cv.ua",
-"dn.ua",
-"dnepropetrovsk.ua",
-"dnipropetrovsk.ua",
-"dominic.ua",
-"donetsk.ua",
-"dp.ua",
-"if.ua",
-"ivano-frankivsk.ua",
-"kh.ua",
-"kharkiv.ua",
-"kharkov.ua",
-"kherson.ua",
-"khmelnitskiy.ua",
-"khmelnytskyi.ua",
-"kiev.ua",
-"kirovograd.ua",
-"km.ua",
-"kr.ua",
-"krym.ua",
-"ks.ua",
-"kv.ua",
-"kyiv.ua",
-"lg.ua",
-"lt.ua",
-"lugansk.ua",
-"lutsk.ua",
-"lv.ua",
-"lviv.ua",
-"mk.ua",
-"mykolaiv.ua",
-"nikolaev.ua",
-"od.ua",
-"odesa.ua",
-"odessa.ua",
-"pl.ua",
-"poltava.ua",
-"rivne.ua",
-"rovno.ua",
-"rv.ua",
-"sb.ua",
-"sebastopol.ua",
-"sevastopol.ua",
-"sm.ua",
-"sumy.ua",
-"te.ua",
-"ternopil.ua",
-"uz.ua",
-"uzhgorod.ua",
-"vinnica.ua",
-"vinnytsia.ua",
-"vn.ua",
-"volyn.ua",
-"yalta.ua",
-"zaporizhzhe.ua",
-"zaporizhzhia.ua",
-"zhitomir.ua",
-"zhytomyr.ua",
-"zp.ua",
-"zt.ua",
-"ug",
-"co.ug",
-"or.ug",
-"ac.ug",
-"sc.ug",
-"go.ug",
-"ne.ug",
-"com.ug",
-"org.ug",
-"uk",
-"ac.uk",
-"co.uk",
-"gov.uk",
-"ltd.uk",
-"me.uk",
-"net.uk",
-"nhs.uk",
-"org.uk",
-"plc.uk",
-"police.uk",
-"*.sch.uk",
-"us",
-"dni.us",
-"fed.us",
-"isa.us",
-"kids.us",
-"nsn.us",
-"ak.us",
-"al.us",
-"ar.us",
-"as.us",
-"az.us",
-"ca.us",
-"co.us",
-"ct.us",
-"dc.us",
-"de.us",
-"fl.us",
-"ga.us",
-"gu.us",
-"hi.us",
-"ia.us",
-"id.us",
-"il.us",
-"in.us",
-"ks.us",
-"ky.us",
-"la.us",
-"ma.us",
-"md.us",
-"me.us",
-"mi.us",
-"mn.us",
-"mo.us",
-"ms.us",
-"mt.us",
-"nc.us",
-"nd.us",
-"ne.us",
-"nh.us",
-"nj.us",
-"nm.us",
-"nv.us",
-"ny.us",
-"oh.us",
-"ok.us",
-"or.us",
-"pa.us",
-"pr.us",
-"ri.us",
-"sc.us",
-"sd.us",
-"tn.us",
-"tx.us",
-"ut.us",
-"vi.us",
-"vt.us",
-"va.us",
-"wa.us",
-"wi.us",
-"wv.us",
-"wy.us",
-"k12.ak.us",
-"k12.al.us",
-"k12.ar.us",
-"k12.as.us",
-"k12.az.us",
-"k12.ca.us",
-"k12.co.us",
-"k12.ct.us",
-"k12.dc.us",
-"k12.de.us",
-"k12.fl.us",
-"k12.ga.us",
-"k12.gu.us",
-"k12.ia.us",
-"k12.id.us",
-"k12.il.us",
-"k12.in.us",
-"k12.ks.us",
-"k12.ky.us",
-"k12.la.us",
-"k12.ma.us",
-"k12.md.us",
-"k12.me.us",
-"k12.mi.us",
-"k12.mn.us",
-"k12.mo.us",
-"k12.ms.us",
-"k12.mt.us",
-"k12.nc.us",
-"k12.ne.us",
-"k12.nh.us",
-"k12.nj.us",
-"k12.nm.us",
-"k12.nv.us",
-"k12.ny.us",
-"k12.oh.us",
-"k12.ok.us",
-"k12.or.us",
-"k12.pa.us",
-"k12.pr.us",
-"k12.ri.us",
-"k12.sc.us",
-"k12.tn.us",
-"k12.tx.us",
-"k12.ut.us",
-"k12.vi.us",
-"k12.vt.us",
-"k12.va.us",
-"k12.wa.us",
-"k12.wi.us",
-"k12.wy.us",
-"cc.ak.us",
-"cc.al.us",
-"cc.ar.us",
-"cc.as.us",
-"cc.az.us",
-"cc.ca.us",
-"cc.co.us",
-"cc.ct.us",
-"cc.dc.us",
-"cc.de.us",
-"cc.fl.us",
-"cc.ga.us",
-"cc.gu.us",
-"cc.hi.us",
-"cc.ia.us",
-"cc.id.us",
-"cc.il.us",
-"cc.in.us",
-"cc.ks.us",
-"cc.ky.us",
-"cc.la.us",
-"cc.ma.us",
-"cc.md.us",
-"cc.me.us",
-"cc.mi.us",
-"cc.mn.us",
-"cc.mo.us",
-"cc.ms.us",
-"cc.mt.us",
-"cc.nc.us",
-"cc.nd.us",
-"cc.ne.us",
-"cc.nh.us",
-"cc.nj.us",
-"cc.nm.us",
-"cc.nv.us",
-"cc.ny.us",
-"cc.oh.us",
-"cc.ok.us",
-"cc.or.us",
-"cc.pa.us",
-"cc.pr.us",
-"cc.ri.us",
-"cc.sc.us",
-"cc.sd.us",
-"cc.tn.us",
-"cc.tx.us",
-"cc.ut.us",
-"cc.vi.us",
-"cc.vt.us",
-"cc.va.us",
-"cc.wa.us",
-"cc.wi.us",
-"cc.wv.us",
-"cc.wy.us",
-"lib.ak.us",
-"lib.al.us",
-"lib.ar.us",
-"lib.as.us",
-"lib.az.us",
-"lib.ca.us",
-"lib.co.us",
-"lib.ct.us",
-"lib.dc.us",
-"lib.fl.us",
-"lib.ga.us",
-"lib.gu.us",
-"lib.hi.us",
-"lib.ia.us",
-"lib.id.us",
-"lib.il.us",
-"lib.in.us",
-"lib.ks.us",
-"lib.ky.us",
-"lib.la.us",
-"lib.ma.us",
-"lib.md.us",
-"lib.me.us",
-"lib.mi.us",
-"lib.mn.us",
-"lib.mo.us",
-"lib.ms.us",
-"lib.mt.us",
-"lib.nc.us",
-"lib.nd.us",
-"lib.ne.us",
-"lib.nh.us",
-"lib.nj.us",
-"lib.nm.us",
-"lib.nv.us",
-"lib.ny.us",
-"lib.oh.us",
-"lib.ok.us",
-"lib.or.us",
-"lib.pa.us",
-"lib.pr.us",
-"lib.ri.us",
-"lib.sc.us",
-"lib.sd.us",
-"lib.tn.us",
-"lib.tx.us",
-"lib.ut.us",
-"lib.vi.us",
-"lib.vt.us",
-"lib.va.us",
-"lib.wa.us",
-"lib.wi.us",
-"lib.wy.us",
-"pvt.k12.ma.us",
-"chtr.k12.ma.us",
-"paroch.k12.ma.us",
-"ann-arbor.mi.us",
-"cog.mi.us",
-"dst.mi.us",
-"eaton.mi.us",
-"gen.mi.us",
-"mus.mi.us",
-"tec.mi.us",
-"washtenaw.mi.us",
-"uy",
-"com.uy",
-"edu.uy",
-"gub.uy",
-"mil.uy",
-"net.uy",
-"org.uy",
-"uz",
-"co.uz",
-"com.uz",
-"net.uz",
-"org.uz",
-"va",
-"vc",
-"com.vc",
-"net.vc",
-"org.vc",
-"gov.vc",
-"mil.vc",
-"edu.vc",
-"ve",
-"arts.ve",
-"co.ve",
-"com.ve",
-"e12.ve",
-"edu.ve",
-"firm.ve",
-"gob.ve",
-"gov.ve",
-"info.ve",
-"int.ve",
-"mil.ve",
-"net.ve",
-"org.ve",
-"rec.ve",
-"store.ve",
-"tec.ve",
-"web.ve",
-"vg",
-"vi",
-"co.vi",
-"com.vi",
-"k12.vi",
-"net.vi",
-"org.vi",
-"vn",
-"com.vn",
-"net.vn",
-"org.vn",
-"edu.vn",
-"gov.vn",
-"int.vn",
-"ac.vn",
-"biz.vn",
-"info.vn",
-"name.vn",
-"pro.vn",
-"health.vn",
-"vu",
-"com.vu",
-"edu.vu",
-"net.vu",
-"org.vu",
-"wf",
-"ws",
-"com.ws",
-"net.ws",
-"org.ws",
-"gov.ws",
-"edu.ws",
-"yt",
-"امارات",
-"հայ",
-"বাংলা",
-"бг",
-"бел",
-"中国",
-"中國",
-"الجزائر",
-"مصر",
-"ею",
-"ευ",
-"موريتانيا",
-"გე",
-"ελ",
-"香港",
-"公司.香港",
-"教育.香港",
-"政府.香港",
-"個人.香港",
-"網絡.香港",
-"組織.香港",
-"ಭಾರತ",
-"ଭାରତ",
-"ভাৰত",
-"भारतम्",
-"भारोत",
-"ڀارت",
-"ഭാരതം",
-"भारत",
-"بارت",
-"بھارت",
-"భారత్",
-"ભારત",
-"ਭਾਰਤ",
-"ভারত",
-"இந்தியா",
-"ایران",
-"ايران",
-"عراق",
-"الاردن",
-"한국",
-"қаз",
-"ලංකා",
-"இலங்கை",
-"المغرب",
-"мкд",
-"мон",
-"澳門",
-"澳门",
-"مليسيا",
-"عمان",
-"پاکستان",
-"پاكستان",
-"فلسطين",
-"срб",
-"пр.срб",
-"орг.срб",
-"обр.срб",
-"од.срб",
-"упр.срб",
-"ак.срб",
-"рф",
-"قطر",
-"السعودية",
-"السعودیة",
-"السعودیۃ",
-"السعوديه",
-"سودان",
-"新加坡",
-"சிங்கப்பூர்",
-"سورية",
-"سوريا",
-"ไทย",
-"ศึกษา.ไทย",
-"ธุรกิจ.ไทย",
-"รัฐบาล.ไทย",
-"ทหาร.ไทย",
-"เน็ต.ไทย",
-"องค์กร.ไทย",
-"تونس",
-"台灣",
-"台湾",
-"臺灣",
-"укр",
-"اليمن",
-"xxx",
-"*.ye",
-"ac.za",
-"agric.za",
-"alt.za",
-"co.za",
-"edu.za",
-"gov.za",
-"grondar.za",
-"law.za",
-"mil.za",
-"net.za",
-"ngo.za",
-"nic.za",
-"nis.za",
-"nom.za",
-"org.za",
-"school.za",
-"tm.za",
-"web.za",
-"zm",
-"ac.zm",
-"biz.zm",
-"co.zm",
-"com.zm",
-"edu.zm",
-"gov.zm",
-"info.zm",
-"mil.zm",
-"net.zm",
-"org.zm",
-"sch.zm",
-"zw",
-"ac.zw",
-"co.zw",
-"gov.zw",
-"mil.zw",
-"org.zw",
-"aaa",
-"aarp",
-"abarth",
-"abb",
-"abbott",
-"abbvie",
-"abc",
-"able",
-"abogado",
-"abudhabi",
-"academy",
-"accenture",
-"accountant",
-"accountants",
-"aco",
-"actor",
-"adac",
-"ads",
-"adult",
-"aeg",
-"aetna",
-"afamilycompany",
-"afl",
-"africa",
-"agakhan",
-"agency",
-"aig",
-"aigo",
-"airbus",
-"airforce",
-"airtel",
-"akdn",
-"alfaromeo",
-"alibaba",
-"alipay",
-"allfinanz",
-"allstate",
-"ally",
-"alsace",
-"alstom",
-"amazon",
-"americanexpress",
-"americanfamily",
-"amex",
-"amfam",
-"amica",
-"amsterdam",
-"analytics",
-"android",
-"anquan",
-"anz",
-"aol",
-"apartments",
-"app",
-"apple",
-"aquarelle",
-"arab",
-"aramco",
-"archi",
-"army",
-"art",
-"arte",
-"asda",
-"associates",
-"athleta",
-"attorney",
-"auction",
-"audi",
-"audible",
-"audio",
-"auspost",
-"author",
-"auto",
-"autos",
-"avianca",
-"aws",
-"axa",
-"azure",
-"baby",
-"baidu",
-"banamex",
-"bananarepublic",
-"band",
-"bank",
-"bar",
-"barcelona",
-"barclaycard",
-"barclays",
-"barefoot",
-"bargains",
-"baseball",
-"basketball",
-"bauhaus",
-"bayern",
-"bbc",
-"bbt",
-"bbva",
-"bcg",
-"bcn",
-"beats",
-"beauty",
-"beer",
-"bentley",
-"berlin",
-"best",
-"bestbuy",
-"bet",
-"bharti",
-"bible",
-"bid",
-"bike",
-"bing",
-"bingo",
-"bio",
-"black",
-"blackfriday",
-"blockbuster",
-"blog",
-"bloomberg",
-"blue",
-"bms",
-"bmw",
-"bnpparibas",
-"boats",
-"boehringer",
-"bofa",
-"bom",
-"bond",
-"boo",
-"book",
-"booking",
-"bosch",
-"bostik",
-"boston",
-"bot",
-"boutique",
-"box",
-"bradesco",
-"bridgestone",
-"broadway",
-"broker",
-"brother",
-"brussels",
-"budapest",
-"bugatti",
-"build",
-"builders",
-"business",
-"buy",
-"buzz",
-"bzh",
-"cab",
-"cafe",
-"cal",
-"call",
-"calvinklein",
-"cam",
-"camera",
-"camp",
-"cancerresearch",
-"canon",
-"capetown",
-"capital",
-"capitalone",
-"car",
-"caravan",
-"cards",
-"care",
-"career",
-"careers",
-"cars",
-"casa",
-"case",
-"caseih",
-"cash",
-"casino",
-"catering",
-"catholic",
-"cba",
-"cbn",
-"cbre",
-"cbs",
-"ceb",
-"center",
-"ceo",
-"cern",
-"cfa",
-"cfd",
-"chanel",
-"channel",
-"charity",
-"chase",
-"chat",
-"cheap",
-"chintai",
-"christmas",
-"chrome",
-"church",
-"cipriani",
-"circle",
-"cisco",
-"citadel",
-"citi",
-"citic",
-"city",
-"cityeats",
-"claims",
-"cleaning",
-"click",
-"clinic",
-"clinique",
-"clothing",
-"cloud",
-"club",
-"clubmed",
-"coach",
-"codes",
-"coffee",
-"college",
-"cologne",
-"comcast",
-"commbank",
-"community",
-"company",
-"compare",
-"computer",
-"comsec",
-"condos",
-"construction",
-"consulting",
-"contact",
-"contractors",
-"cooking",
-"cookingchannel",
-"cool",
-"corsica",
-"country",
-"coupon",
-"coupons",
-"courses",
-"cpa",
-"credit",
-"creditcard",
-"creditunion",
-"cricket",
-"crown",
-"crs",
-"cruise",
-"cruises",
-"csc",
-"cuisinella",
-"cymru",
-"cyou",
-"dabur",
-"dad",
-"dance",
-"data",
-"date",
-"dating",
-"datsun",
-"day",
-"dclk",
-"dds",
-"deal",
-"dealer",
-"deals",
-"degree",
-"delivery",
-"dell",
-"deloitte",
-"delta",
-"democrat",
-"dental",
-"dentist",
-"desi",
-"design",
-"dev",
-"dhl",
-"diamonds",
-"diet",
-"digital",
-"direct",
-"directory",
-"discount",
-"discover",
-"dish",
-"diy",
-"dnp",
-"docs",
-"doctor",
-"dog",
-"domains",
-"dot",
-"download",
-"drive",
-"dtv",
-"dubai",
-"duck",
-"dunlop",
-"dupont",
-"durban",
-"dvag",
-"dvr",
-"earth",
-"eat",
-"eco",
-"edeka",
-"education",
-"email",
-"emerck",
-"energy",
-"engineer",
-"engineering",
-"enterprises",
-"epson",
-"equipment",
-"ericsson",
-"erni",
-"esq",
-"estate",
-"esurance",
-"etisalat",
-"eurovision",
-"eus",
-"events",
-"exchange",
-"expert",
-"exposed",
-"express",
-"extraspace",
-"fage",
-"fail",
-"fairwinds",
-"faith",
-"family",
-"fan",
-"fans",
-"farm",
-"farmers",
-"fashion",
-"fast",
-"fedex",
-"feedback",
-"ferrari",
-"ferrero",
-"fiat",
-"fidelity",
-"fido",
-"film",
-"final",
-"finance",
-"financial",
-"fire",
-"firestone",
-"firmdale",
-"fish",
-"fishing",
-"fit",
-"fitness",
-"flickr",
-"flights",
-"flir",
-"florist",
-"flowers",
-"fly",
-"foo",
-"food",
-"foodnetwork",
-"football",
-"ford",
-"forex",
-"forsale",
-"forum",
-"foundation",
-"fox",
-"free",
-"fresenius",
-"frl",
-"frogans",
-"frontdoor",
-"frontier",
-"ftr",
-"fujitsu",
-"fujixerox",
-"fun",
-"fund",
-"furniture",
-"futbol",
-"fyi",
-"gal",
-"gallery",
-"gallo",
-"gallup",
-"game",
-"games",
-"gap",
-"garden",
-"gay",
-"gbiz",
-"gdn",
-"gea",
-"gent",
-"genting",
-"george",
-"ggee",
-"gift",
-"gifts",
-"gives",
-"giving",
-"glade",
-"glass",
-"gle",
-"global",
-"globo",
-"gmail",
-"gmbh",
-"gmo",
-"gmx",
-"godaddy",
-"gold",
-"goldpoint",
-"golf",
-"goo",
-"goodyear",
-"goog",
-"google",
-"gop",
-"got",
-"grainger",
-"graphics",
-"gratis",
-"green",
-"gripe",
-"grocery",
-"group",
-"guardian",
-"gucci",
-"guge",
-"guide",
-"guitars",
-"guru",
-"hair",
-"hamburg",
-"hangout",
-"haus",
-"hbo",
-"hdfc",
-"hdfcbank",
-"health",
-"healthcare",
-"help",
-"helsinki",
-"here",
-"hermes",
-"hgtv",
-"hiphop",
-"hisamitsu",
-"hitachi",
-"hiv",
-"hkt",
-"hockey",
-"holdings",
-"holiday",
-"homedepot",
-"homegoods",
-"homes",
-"homesense",
-"honda",
-"horse",
-"hospital",
-"host",
-"hosting",
-"hot",
-"hoteles",
-"hotels",
-"hotmail",
-"house",
-"how",
-"hsbc",
-"hughes",
-"hyatt",
-"hyundai",
-"ibm",
-"icbc",
-"ice",
-"icu",
-"ieee",
-"ifm",
-"ikano",
-"imamat",
-"imdb",
-"immo",
-"immobilien",
-"inc",
-"industries",
-"infiniti",
-"ing",
-"ink",
-"institute",
-"insurance",
-"insure",
-"intel",
-"international",
-"intuit",
-"investments",
-"ipiranga",
-"irish",
-"ismaili",
-"ist",
-"istanbul",
-"itau",
-"itv",
-"iveco",
-"jaguar",
-"java",
-"jcb",
-"jcp",
-"jeep",
-"jetzt",
-"jewelry",
-"jio",
-"jll",
-"jmp",
-"jnj",
-"joburg",
-"jot",
-"joy",
-"jpmorgan",
-"jprs",
-"juegos",
-"juniper",
-"kaufen",
-"kddi",
-"kerryhotels",
-"kerrylogistics",
-"kerryproperties",
-"kfh",
-"kia",
-"kim",
-"kinder",
-"kindle",
-"kitchen",
-"kiwi",
-"koeln",
-"komatsu",
-"kosher",
-"kpmg",
-"kpn",
-"krd",
-"kred",
-"kuokgroup",
-"kyoto",
-"lacaixa",
-"lamborghini",
-"lamer",
-"lancaster",
-"lancia",
-"land",
-"landrover",
-"lanxess",
-"lasalle",
-"lat",
-"latino",
-"latrobe",
-"law",
-"lawyer",
-"lds",
-"lease",
-"leclerc",
-"lefrak",
-"legal",
-"lego",
-"lexus",
-"lgbt",
-"lidl",
-"life",
-"lifeinsurance",
-"lifestyle",
-"lighting",
-"like",
-"lilly",
-"limited",
-"limo",
-"lincoln",
-"linde",
-"link",
-"lipsy",
-"live",
-"living",
-"lixil",
-"llc",
-"llp",
-"loan",
-"loans",
-"locker",
-"locus",
-"loft",
-"lol",
-"london",
-"lotte",
-"lotto",
-"love",
-"lpl",
-"lplfinancial",
-"ltd",
-"ltda",
-"lundbeck",
-"lupin",
-"luxe",
-"luxury",
-"macys",
-"madrid",
-"maif",
-"maison",
-"makeup",
-"man",
-"management",
-"mango",
-"map",
-"market",
-"marketing",
-"markets",
-"marriott",
-"marshalls",
-"maserati",
-"mattel",
-"mba",
-"mckinsey",
-"med",
-"media",
-"meet",
-"melbourne",
-"meme",
-"memorial",
-"men",
-"menu",
-"merckmsd",
-"metlife",
-"miami",
-"microsoft",
-"mini",
-"mint",
-"mit",
-"mitsubishi",
-"mlb",
-"mls",
-"mma",
-"mobile",
-"moda",
-"moe",
-"moi",
-"mom",
-"monash",
-"money",
-"monster",
-"mormon",
-"mortgage",
-"moscow",
-"moto",
-"motorcycles",
-"mov",
-"movie",
-"msd",
-"mtn",
-"mtr",
-"mutual",
-"nab",
-"nadex",
-"nagoya",
-"nationwide",
-"natura",
-"navy",
-"nba",
-"nec",
-"netbank",
-"netflix",
-"network",
-"neustar",
-"new",
-"newholland",
-"news",
-"next",
-"nextdirect",
-"nexus",
-"nfl",
-"ngo",
-"nhk",
-"nico",
-"nike",
-"nikon",
-"ninja",
-"nissan",
-"nissay",
-"nokia",
-"northwesternmutual",
-"norton",
-"now",
-"nowruz",
-"nowtv",
-"nra",
-"nrw",
-"ntt",
-"nyc",
-"obi",
-"observer",
-"off",
-"office",
-"okinawa",
-"olayan",
-"olayangroup",
-"oldnavy",
-"ollo",
-"omega",
-"one",
-"ong",
-"onl",
-"online",
-"onyourside",
-"ooo",
-"open",
-"oracle",
-"orange",
-"organic",
-"origins",
-"osaka",
-"otsuka",
-"ott",
-"ovh",
-"page",
-"panasonic",
-"paris",
-"pars",
-"partners",
-"parts",
-"party",
-"passagens",
-"pay",
-"pccw",
-"pet",
-"pfizer",
-"pharmacy",
-"phd",
-"philips",
-"phone",
-"photo",
-"photography",
-"photos",
-"physio",
-"pics",
-"pictet",
-"pictures",
-"pid",
-"pin",
-"ping",
-"pink",
-"pioneer",
-"pizza",
-"place",
-"play",
-"playstation",
-"plumbing",
-"plus",
-"pnc",
-"pohl",
-"poker",
-"politie",
-"porn",
-"pramerica",
-"praxi",
-"press",
-"prime",
-"prod",
-"productions",
-"prof",
-"progressive",
-"promo",
-"properties",
-"property",
-"protection",
-"pru",
-"prudential",
-"pub",
-"pwc",
-"qpon",
-"quebec",
-"quest",
-"qvc",
-"racing",
-"radio",
-"raid",
-"read",
-"realestate",
-"realtor",
-"realty",
-"recipes",
-"red",
-"redstone",
-"redumbrella",
-"rehab",
-"reise",
-"reisen",
-"reit",
-"reliance",
-"ren",
-"rent",
-"rentals",
-"repair",
-"report",
-"republican",
-"rest",
-"restaurant",
-"review",
-"reviews",
-"rexroth",
-"rich",
-"richardli",
-"ricoh",
-"rightathome",
-"ril",
-"rio",
-"rip",
-"rmit",
-"rocher",
-"rocks",
-"rodeo",
-"rogers",
-"room",
-"rsvp",
-"rugby",
-"ruhr",
-"run",
-"rwe",
-"ryukyu",
-"saarland",
-"safe",
-"safety",
-"sakura",
-"sale",
-"salon",
-"samsclub",
-"samsung",
-"sandvik",
-"sandvikcoromant",
-"sanofi",
-"sap",
-"sarl",
-"sas",
-"save",
-"saxo",
-"sbi",
-"sbs",
-"sca",
-"scb",
-"schaeffler",
-"schmidt",
-"scholarships",
-"school",
-"schule",
-"schwarz",
-"science",
-"scjohnson",
-"scor",
-"scot",
-"search",
-"seat",
-"secure",
-"security",
-"seek",
-"select",
-"sener",
-"services",
-"ses",
-"seven",
-"sew",
-"sex",
-"sexy",
-"sfr",
-"shangrila",
-"sharp",
-"shaw",
-"shell",
-"shia",
-"shiksha",
-"shoes",
-"shop",
-"shopping",
-"shouji",
-"show",
-"showtime",
-"shriram",
-"silk",
-"sina",
-"singles",
-"site",
-"ski",
-"skin",
-"sky",
-"skype",
-"sling",
-"smart",
-"smile",
-"sncf",
-"soccer",
-"social",
-"softbank",
-"software",
-"sohu",
-"solar",
-"solutions",
-"song",
-"sony",
-"soy",
-"spa",
-"space",
-"sport",
-"spot",
-"spreadbetting",
-"srl",
-"stada",
-"staples",
-"star",
-"statebank",
-"statefarm",
-"stc",
-"stcgroup",
-"stockholm",
-"storage",
-"store",
-"stream",
-"studio",
-"study",
-"style",
-"sucks",
-"supplies",
-"supply",
-"support",
-"surf",
-"surgery",
-"suzuki",
-"swatch",
-"swiftcover",
-"swiss",
-"sydney",
-"symantec",
-"systems",
-"tab",
-"taipei",
-"talk",
-"taobao",
-"target",
-"tatamotors",
-"tatar",
-"tattoo",
-"tax",
-"taxi",
-"tci",
-"tdk",
-"team",
-"tech",
-"technology",
-"temasek",
-"tennis",
-"teva",
-"thd",
-"theater",
-"theatre",
-"tiaa",
-"tickets",
-"tienda",
-"tiffany",
-"tips",
-"tires",
-"tirol",
-"tjmaxx",
-"tjx",
-"tkmaxx",
-"tmall",
-"today",
-"tokyo",
-"tools",
-"top",
-"toray",
-"toshiba",
-"total",
-"tours",
-"town",
-"toyota",
-"toys",
-"trade",
-"trading",
-"training",
-"travel",
-"travelchannel",
-"travelers",
-"travelersinsurance",
-"trust",
-"trv",
-"tube",
-"tui",
-"tunes",
-"tushu",
-"tvs",
-"ubank",
-"ubs",
-"unicom",
-"university",
-"uno",
-"uol",
-"ups",
-"vacations",
-"vana",
-"vanguard",
-"vegas",
-"ventures",
-"verisign",
-"versicherung",
-"vet",
-"viajes",
-"video",
-"vig",
-"viking",
-"villas",
-"vin",
-"vip",
-"virgin",
-"visa",
-"vision",
-"viva",
-"vivo",
-"vlaanderen",
-"vodka",
-"volkswagen",
-"volvo",
-"vote",
-"voting",
-"voto",
-"voyage",
-"vuelos",
-"wales",
-"walmart",
-"walter",
-"wang",
-"wanggou",
-"watch",
-"watches",
-"weather",
-"weatherchannel",
-"webcam",
-"weber",
-"website",
-"wed",
-"wedding",
-"weibo",
-"weir",
-"whoswho",
-"wien",
-"wiki",
-"williamhill",
-"win",
-"windows",
-"wine",
-"winners",
-"wme",
-"wolterskluwer",
-"woodside",
-"work",
-"works",
-"world",
-"wow",
-"wtc",
-"wtf",
-"xbox",
-"xerox",
-"xfinity",
-"xihuan",
-"xin",
-"कॉम",
-"セール",
-"佛山",
-"慈善",
-"集团",
-"在线",
-"大众汽车",
-"点看",
-"คอม",
-"八卦",
-"موقع",
-"公益",
-"公司",
-"香格里拉",
-"网站",
-"移动",
-"我爱你",
-"москва",
-"католик",
-"онлайн",
-"сайт",
-"联通",
-"קום",
-"时尚",
-"微博",
-"淡马锡",
-"ファッション",
-"орг",
-"नेट",
-"ストア",
-"アマゾン",
-"삼성",
-"商标",
-"商店",
-"商城",
-"дети",
-"ポイント",
-"新闻",
-"工行",
-"家電",
-"كوم",
-"中文网",
-"中信",
-"娱乐",
-"谷歌",
-"電訊盈科",
-"购物",
-"クラウド",
-"通販",
-"网店",
-"संगठन",
-"餐厅",
-"网络",
-"ком",
-"亚马逊",
-"诺基亚",
-"食品",
-"飞利浦",
-"手表",
-"手机",
-"ارامكو",
-"العليان",
-"اتصالات",
-"بازار",
-"ابوظبي",
-"كاثوليك",
-"همراه",
-"닷컴",
-"政府",
-"شبكة",
-"بيتك",
-"عرب",
-"机构",
-"组织机构",
-"健康",
-"招聘",
-"рус",
-"珠宝",
-"大拿",
-"みんな",
-"グーグル",
-"世界",
-"書籍",
-"网址",
-"닷넷",
-"コム",
-"天主教",
-"游戏",
-"vermögensberater",
-"vermögensberatung",
-"企业",
-"信息",
-"嘉里大酒店",
-"嘉里",
-"广东",
-"政务",
-"xyz",
-"yachts",
-"yahoo",
-"yamaxun",
-"yandex",
-"yodobashi",
-"yoga",
-"yokohama",
-"you",
-"youtube",
-"yun",
-"zappos",
-"zara",
-"zero",
-"zip",
-"zone",
-"zuerich",
-"cc.ua",
-"inf.ua",
-"ltd.ua",
-"adobeaemcloud.com",
-"adobeaemcloud.net",
-"*.dev.adobeaemcloud.com",
-"beep.pl",
-"barsy.ca",
-"*.compute.estate",
-"*.alces.network",
-"altervista.org",
-"alwaysdata.net",
-"cloudfront.net",
-"*.compute.amazonaws.com",
-"*.compute-1.amazonaws.com",
-"*.compute.amazonaws.com.cn",
-"us-east-1.amazonaws.com",
-"cn-north-1.eb.amazonaws.com.cn",
-"cn-northwest-1.eb.amazonaws.com.cn",
-"elasticbeanstalk.com",
-"ap-northeast-1.elasticbeanstalk.com",
-"ap-northeast-2.elasticbeanstalk.com",
-"ap-northeast-3.elasticbeanstalk.com",
-"ap-south-1.elasticbeanstalk.com",
-"ap-southeast-1.elasticbeanstalk.com",
-"ap-southeast-2.elasticbeanstalk.com",
-"ca-central-1.elasticbeanstalk.com",
-"eu-central-1.elasticbeanstalk.com",
-"eu-west-1.elasticbeanstalk.com",
-"eu-west-2.elasticbeanstalk.com",
-"eu-west-3.elasticbeanstalk.com",
-"sa-east-1.elasticbeanstalk.com",
-"us-east-1.elasticbeanstalk.com",
-"us-east-2.elasticbeanstalk.com",
-"us-gov-west-1.elasticbeanstalk.com",
-"us-west-1.elasticbeanstalk.com",
-"us-west-2.elasticbeanstalk.com",
-"*.elb.amazonaws.com",
-"*.elb.amazonaws.com.cn",
-"s3.amazonaws.com",
-"s3-ap-northeast-1.amazonaws.com",
-"s3-ap-northeast-2.amazonaws.com",
-"s3-ap-south-1.amazonaws.com",
-"s3-ap-southeast-1.amazonaws.com",
-"s3-ap-southeast-2.amazonaws.com",
-"s3-ca-central-1.amazonaws.com",
-"s3-eu-central-1.amazonaws.com",
-"s3-eu-west-1.amazonaws.com",
-"s3-eu-west-2.amazonaws.com",
-"s3-eu-west-3.amazonaws.com",
-"s3-external-1.amazonaws.com",
-"s3-fips-us-gov-west-1.amazonaws.com",
-"s3-sa-east-1.amazonaws.com",
-"s3-us-gov-west-1.amazonaws.com",
-"s3-us-east-2.amazonaws.com",
-"s3-us-west-1.amazonaws.com",
-"s3-us-west-2.amazonaws.com",
-"s3.ap-northeast-2.amazonaws.com",
-"s3.ap-south-1.amazonaws.com",
-"s3.cn-north-1.amazonaws.com.cn",
-"s3.ca-central-1.amazonaws.com",
-"s3.eu-central-1.amazonaws.com",
-"s3.eu-west-2.amazonaws.com",
-"s3.eu-west-3.amazonaws.com",
-"s3.us-east-2.amazonaws.com",
-"s3.dualstack.ap-northeast-1.amazonaws.com",
-"s3.dualstack.ap-northeast-2.amazonaws.com",
-"s3.dualstack.ap-south-1.amazonaws.com",
-"s3.dualstack.ap-southeast-1.amazonaws.com",
-"s3.dualstack.ap-southeast-2.amazonaws.com",
-"s3.dualstack.ca-central-1.amazonaws.com",
-"s3.dualstack.eu-central-1.amazonaws.com",
-"s3.dualstack.eu-west-1.amazonaws.com",
-"s3.dualstack.eu-west-2.amazonaws.com",
-"s3.dualstack.eu-west-3.amazonaws.com",
-"s3.dualstack.sa-east-1.amazonaws.com",
-"s3.dualstack.us-east-1.amazonaws.com",
-"s3.dualstack.us-east-2.amazonaws.com",
-"s3-website-us-east-1.amazonaws.com",
-"s3-website-us-west-1.amazonaws.com",
-"s3-website-us-west-2.amazonaws.com",
-"s3-website-ap-northeast-1.amazonaws.com",
-"s3-website-ap-southeast-1.amazonaws.com",
-"s3-website-ap-southeast-2.amazonaws.com",
-"s3-website-eu-west-1.amazonaws.com",
-"s3-website-sa-east-1.amazonaws.com",
-"s3-website.ap-northeast-2.amazonaws.com",
-"s3-website.ap-south-1.amazonaws.com",
-"s3-website.ca-central-1.amazonaws.com",
-"s3-website.eu-central-1.amazonaws.com",
-"s3-website.eu-west-2.amazonaws.com",
-"s3-website.eu-west-3.amazonaws.com",
-"s3-website.us-east-2.amazonaws.com",
-"amsw.nl",
-"t3l3p0rt.net",
-"tele.amune.org",
-"apigee.io",
-"on-aptible.com",
-"user.aseinet.ne.jp",
-"gv.vc",
-"d.gv.vc",
-"user.party.eus",
-"pimienta.org",
-"poivron.org",
-"potager.org",
-"sweetpepper.org",
-"myasustor.com",
-"myfritz.net",
-"*.awdev.ca",
-"*.advisor.ws",
-"b-data.io",
-"backplaneapp.io",
-"balena-devices.com",
-"app.banzaicloud.io",
-"betainabox.com",
-"bnr.la",
-"blackbaudcdn.net",
-"boomla.net",
-"boxfuse.io",
-"square7.ch",
-"bplaced.com",
-"bplaced.de",
-"square7.de",
-"bplaced.net",
-"square7.net",
-"browsersafetymark.io",
-"uk0.bigv.io",
-"dh.bytemark.co.uk",
-"vm.bytemark.co.uk",
-"mycd.eu",
-"carrd.co",
-"crd.co",
-"uwu.ai",
-"ae.org",
-"ar.com",
-"br.com",
-"cn.com",
-"com.de",
-"com.se",
-"de.com",
-"eu.com",
-"gb.com",
-"gb.net",
-"hu.com",
-"hu.net",
-"jp.net",
-"jpn.com",
-"kr.com",
-"mex.com",
-"no.com",
-"qc.com",
-"ru.com",
-"sa.com",
-"se.net",
-"uk.com",
-"uk.net",
-"us.com",
-"uy.com",
-"za.bz",
-"za.com",
-"africa.com",
-"gr.com",
-"in.net",
-"us.org",
-"co.com",
-"c.la",
-"certmgr.org",
-"xenapponazure.com",
-"discourse.group",
-"discourse.team",
-"virtueeldomein.nl",
-"cleverapps.io",
-"*.lcl.dev",
-"*.stg.dev",
-"c66.me",
-"cloud66.ws",
-"cloud66.zone",
-"jdevcloud.com",
-"wpdevcloud.com",
-"cloudaccess.host",
-"freesite.host",
-"cloudaccess.net",
-"cloudcontrolled.com",
-"cloudcontrolapp.com",
-"cloudera.site",
-"trycloudflare.com",
-"workers.dev",
-"wnext.app",
-"co.ca",
-"*.otap.co",
-"co.cz",
-"c.cdn77.org",
-"cdn77-ssl.net",
-"r.cdn77.net",
-"rsc.cdn77.org",
-"ssl.origin.cdn77-secure.org",
-"cloudns.asia",
-"cloudns.biz",
-"cloudns.club",
-"cloudns.cc",
-"cloudns.eu",
-"cloudns.in",
-"cloudns.info",
-"cloudns.org",
-"cloudns.pro",
-"cloudns.pw",
-"cloudns.us",
-"cloudeity.net",
-"cnpy.gdn",
-"co.nl",
-"co.no",
-"webhosting.be",
-"hosting-cluster.nl",
-"ac.ru",
-"edu.ru",
-"gov.ru",
-"int.ru",
-"mil.ru",
-"test.ru",
-"dyn.cosidns.de",
-"dynamisches-dns.de",
-"dnsupdater.de",
-"internet-dns.de",
-"l-o-g-i-n.de",
-"dynamic-dns.info",
-"feste-ip.net",
-"knx-server.net",
-"static-access.net",
-"realm.cz",
-"*.cryptonomic.net",
-"cupcake.is",
-"*.customer-oci.com",
-"*.oci.customer-oci.com",
-"*.ocp.customer-oci.com",
-"*.ocs.customer-oci.com",
-"cyon.link",
-"cyon.site",
-"daplie.me",
-"localhost.daplie.me",
-"dattolocal.com",
-"dattorelay.com",
-"dattoweb.com",
-"mydatto.com",
-"dattolocal.net",
-"mydatto.net",
-"biz.dk",
-"co.dk",
-"firm.dk",
-"reg.dk",
-"store.dk",
-"*.dapps.earth",
-"*.bzz.dapps.earth",
-"builtwithdark.com",
-"edgestack.me",
-"debian.net",
-"dedyn.io",
-"dnshome.de",
-"online.th",
-"shop.th",
-"drayddns.com",
-"dreamhosters.com",
-"mydrobo.com",
-"drud.io",
-"drud.us",
-"duckdns.org",
-"dy.fi",
-"tunk.org",
-"dyndns-at-home.com",
-"dyndns-at-work.com",
-"dyndns-blog.com",
-"dyndns-free.com",
-"dyndns-home.com",
-"dyndns-ip.com",
-"dyndns-mail.com",
-"dyndns-office.com",
-"dyndns-pics.com",
-"dyndns-remote.com",
-"dyndns-server.com",
-"dyndns-web.com",
-"dyndns-wiki.com",
-"dyndns-work.com",
-"dyndns.biz",
-"dyndns.info",
-"dyndns.org",
-"dyndns.tv",
-"at-band-camp.net",
-"ath.cx",
-"barrel-of-knowledge.info",
-"barrell-of-knowledge.info",
-"better-than.tv",
-"blogdns.com",
-"blogdns.net",
-"blogdns.org",
-"blogsite.org",
-"boldlygoingnowhere.org",
-"broke-it.net",
-"buyshouses.net",
-"cechire.com",
-"dnsalias.com",
-"dnsalias.net",
-"dnsalias.org",
-"dnsdojo.com",
-"dnsdojo.net",
-"dnsdojo.org",
-"does-it.net",
-"doesntexist.com",
-"doesntexist.org",
-"dontexist.com",
-"dontexist.net",
-"dontexist.org",
-"doomdns.com",
-"doomdns.org",
-"dvrdns.org",
-"dyn-o-saur.com",
-"dynalias.com",
-"dynalias.net",
-"dynalias.org",
-"dynathome.net",
-"dyndns.ws",
-"endofinternet.net",
-"endofinternet.org",
-"endoftheinternet.org",
-"est-a-la-maison.com",
-"est-a-la-masion.com",
-"est-le-patron.com",
-"est-mon-blogueur.com",
-"for-better.biz",
-"for-more.biz",
-"for-our.info",
-"for-some.biz",
-"for-the.biz",
-"forgot.her.name",
-"forgot.his.name",
-"from-ak.com",
-"from-al.com",
-"from-ar.com",
-"from-az.net",
-"from-ca.com",
-"from-co.net",
-"from-ct.com",
-"from-dc.com",
-"from-de.com",
-"from-fl.com",
-"from-ga.com",
-"from-hi.com",
-"from-ia.com",
-"from-id.com",
-"from-il.com",
-"from-in.com",
-"from-ks.com",
-"from-ky.com",
-"from-la.net",
-"from-ma.com",
-"from-md.com",
-"from-me.org",
-"from-mi.com",
-"from-mn.com",
-"from-mo.com",
-"from-ms.com",
-"from-mt.com",
-"from-nc.com",
-"from-nd.com",
-"from-ne.com",
-"from-nh.com",
-"from-nj.com",
-"from-nm.com",
-"from-nv.com",
-"from-ny.net",
-"from-oh.com",
-"from-ok.com",
-"from-or.com",
-"from-pa.com",
-"from-pr.com",
-"from-ri.com",
-"from-sc.com",
-"from-sd.com",
-"from-tn.com",
-"from-tx.com",
-"from-ut.com",
-"from-va.com",
-"from-vt.com",
-"from-wa.com",
-"from-wi.com",
-"from-wv.com",
-"from-wy.com",
-"ftpaccess.cc",
-"fuettertdasnetz.de",
-"game-host.org",
-"game-server.cc",
-"getmyip.com",
-"gets-it.net",
-"go.dyndns.org",
-"gotdns.com",
-"gotdns.org",
-"groks-the.info",
-"groks-this.info",
-"ham-radio-op.net",
-"here-for-more.info",
-"hobby-site.com",
-"hobby-site.org",
-"home.dyndns.org",
-"homedns.org",
-"homeftp.net",
-"homeftp.org",
-"homeip.net",
-"homelinux.com",
-"homelinux.net",
-"homelinux.org",
-"homeunix.com",
-"homeunix.net",
-"homeunix.org",
-"iamallama.com",
-"in-the-band.net",
-"is-a-anarchist.com",
-"is-a-blogger.com",
-"is-a-bookkeeper.com",
-"is-a-bruinsfan.org",
-"is-a-bulls-fan.com",
-"is-a-candidate.org",
-"is-a-caterer.com",
-"is-a-celticsfan.org",
-"is-a-chef.com",
-"is-a-chef.net",
-"is-a-chef.org",
-"is-a-conservative.com",
-"is-a-cpa.com",
-"is-a-cubicle-slave.com",
-"is-a-democrat.com",
-"is-a-designer.com",
-"is-a-doctor.com",
-"is-a-financialadvisor.com",
-"is-a-geek.com",
-"is-a-geek.net",
-"is-a-geek.org",
-"is-a-green.com",
-"is-a-guru.com",
-"is-a-hard-worker.com",
-"is-a-hunter.com",
-"is-a-knight.org",
-"is-a-landscaper.com",
-"is-a-lawyer.com",
-"is-a-liberal.com",
-"is-a-libertarian.com",
-"is-a-linux-user.org",
-"is-a-llama.com",
-"is-a-musician.com",
-"is-a-nascarfan.com",
-"is-a-nurse.com",
-"is-a-painter.com",
-"is-a-patsfan.org",
-"is-a-personaltrainer.com",
-"is-a-photographer.com",
-"is-a-player.com",
-"is-a-republican.com",
-"is-a-rockstar.com",
-"is-a-socialist.com",
-"is-a-soxfan.org",
-"is-a-student.com",
-"is-a-teacher.com",
-"is-a-techie.com",
-"is-a-therapist.com",
-"is-an-accountant.com",
-"is-an-actor.com",
-"is-an-actress.com",
-"is-an-anarchist.com",
-"is-an-artist.com",
-"is-an-engineer.com",
-"is-an-entertainer.com",
-"is-by.us",
-"is-certified.com",
-"is-found.org",
-"is-gone.com",
-"is-into-anime.com",
-"is-into-cars.com",
-"is-into-cartoons.com",
-"is-into-games.com",
-"is-leet.com",
-"is-lost.org",
-"is-not-certified.com",
-"is-saved.org",
-"is-slick.com",
-"is-uberleet.com",
-"is-very-bad.org",
-"is-very-evil.org",
-"is-very-good.org",
-"is-very-nice.org",
-"is-very-sweet.org",
-"is-with-theband.com",
-"isa-geek.com",
-"isa-geek.net",
-"isa-geek.org",
-"isa-hockeynut.com",
-"issmarterthanyou.com",
-"isteingeek.de",
-"istmein.de",
-"kicks-ass.net",
-"kicks-ass.org",
-"knowsitall.info",
-"land-4-sale.us",
-"lebtimnetz.de",
-"leitungsen.de",
-"likes-pie.com",
-"likescandy.com",
-"merseine.nu",
-"mine.nu",
-"misconfused.org",
-"mypets.ws",
-"myphotos.cc",
-"neat-url.com",
-"office-on-the.net",
-"on-the-web.tv",
-"podzone.net",
-"podzone.org",
-"readmyblog.org",
-"saves-the-whales.com",
-"scrapper-site.net",
-"scrapping.cc",
-"selfip.biz",
-"selfip.com",
-"selfip.info",
-"selfip.net",
-"selfip.org",
-"sells-for-less.com",
-"sells-for-u.com",
-"sells-it.net",
-"sellsyourhome.org",
-"servebbs.com",
-"servebbs.net",
-"servebbs.org",
-"serveftp.net",
-"serveftp.org",
-"servegame.org",
-"shacknet.nu",
-"simple-url.com",
-"space-to-rent.com",
-"stuff-4-sale.org",
-"stuff-4-sale.us",
-"teaches-yoga.com",
-"thruhere.net",
-"traeumtgerade.de",
-"webhop.biz",
-"webhop.info",
-"webhop.net",
-"webhop.org",
-"worse-than.tv",
-"writesthisblog.com",
-"ddnss.de",
-"dyn.ddnss.de",
-"dyndns.ddnss.de",
-"dyndns1.de",
-"dyn-ip24.de",
-"home-webserver.de",
-"dyn.home-webserver.de",
-"myhome-server.de",
-"ddnss.org",
-"definima.net",
-"definima.io",
-"bci.dnstrace.pro",
-"ddnsfree.com",
-"ddnsgeek.com",
-"giize.com",
-"gleeze.com",
-"kozow.com",
-"loseyourip.com",
-"ooguy.com",
-"theworkpc.com",
-"casacam.net",
-"dynu.net",
-"accesscam.org",
-"camdvr.org",
-"freeddns.org",
-"mywire.org",
-"webredirect.org",
-"myddns.rocks",
-"blogsite.xyz",
-"dynv6.net",
-"e4.cz",
-"en-root.fr",
-"mytuleap.com",
-"onred.one",
-"staging.onred.one",
-"enonic.io",
-"customer.enonic.io",
-"eu.org",
-"al.eu.org",
-"asso.eu.org",
-"at.eu.org",
-"au.eu.org",
-"be.eu.org",
-"bg.eu.org",
-"ca.eu.org",
-"cd.eu.org",
-"ch.eu.org",
-"cn.eu.org",
-"cy.eu.org",
-"cz.eu.org",
-"de.eu.org",
-"dk.eu.org",
-"edu.eu.org",
-"ee.eu.org",
-"es.eu.org",
-"fi.eu.org",
-"fr.eu.org",
-"gr.eu.org",
-"hr.eu.org",
-"hu.eu.org",
-"ie.eu.org",
-"il.eu.org",
-"in.eu.org",
-"int.eu.org",
-"is.eu.org",
-"it.eu.org",
-"jp.eu.org",
-"kr.eu.org",
-"lt.eu.org",
-"lu.eu.org",
-"lv.eu.org",
-"mc.eu.org",
-"me.eu.org",
-"mk.eu.org",
-"mt.eu.org",
-"my.eu.org",
-"net.eu.org",
-"ng.eu.org",
-"nl.eu.org",
-"no.eu.org",
-"nz.eu.org",
-"paris.eu.org",
-"pl.eu.org",
-"pt.eu.org",
-"q-a.eu.org",
-"ro.eu.org",
-"ru.eu.org",
-"se.eu.org",
-"si.eu.org",
-"sk.eu.org",
-"tr.eu.org",
-"uk.eu.org",
-"us.eu.org",
-"eu-1.evennode.com",
-"eu-2.evennode.com",
-"eu-3.evennode.com",
-"eu-4.evennode.com",
-"us-1.evennode.com",
-"us-2.evennode.com",
-"us-3.evennode.com",
-"us-4.evennode.com",
-"twmail.cc",
-"twmail.net",
-"twmail.org",
-"mymailer.com.tw",
-"url.tw",
-"apps.fbsbx.com",
-"ru.net",
-"adygeya.ru",
-"bashkiria.ru",
-"bir.ru",
-"cbg.ru",
-"com.ru",
-"dagestan.ru",
-"grozny.ru",
-"kalmykia.ru",
-"kustanai.ru",
-"marine.ru",
-"mordovia.ru",
-"msk.ru",
-"mytis.ru",
-"nalchik.ru",
-"nov.ru",
-"pyatigorsk.ru",
-"spb.ru",
-"vladikavkaz.ru",
-"vladimir.ru",
-"abkhazia.su",
-"adygeya.su",
-"aktyubinsk.su",
-"arkhangelsk.su",
-"armenia.su",
-"ashgabad.su",
-"azerbaijan.su",
-"balashov.su",
-"bashkiria.su",
-"bryansk.su",
-"bukhara.su",
-"chimkent.su",
-"dagestan.su",
-"east-kazakhstan.su",
-"exnet.su",
-"georgia.su",
-"grozny.su",
-"ivanovo.su",
-"jambyl.su",
-"kalmykia.su",
-"kaluga.su",
-"karacol.su",
-"karaganda.su",
-"karelia.su",
-"khakassia.su",
-"krasnodar.su",
-"kurgan.su",
-"kustanai.su",
-"lenug.su",
-"mangyshlak.su",
-"mordovia.su",
-"msk.su",
-"murmansk.su",
-"nalchik.su",
-"navoi.su",
-"north-kazakhstan.su",
-"nov.su",
-"obninsk.su",
-"penza.su",
-"pokrovsk.su",
-"sochi.su",
-"spb.su",
-"tashkent.su",
-"termez.su",
-"togliatti.su",
-"troitsk.su",
-"tselinograd.su",
-"tula.su",
-"tuva.su",
-"vladikavkaz.su",
-"vladimir.su",
-"vologda.su",
-"channelsdvr.net",
-"u.channelsdvr.net",
-"fastly-terrarium.com",
-"fastlylb.net",
-"map.fastlylb.net",
-"freetls.fastly.net",
-"map.fastly.net",
-"a.prod.fastly.net",
-"global.prod.fastly.net",
-"a.ssl.fastly.net",
-"b.ssl.fastly.net",
-"global.ssl.fastly.net",
-"fastpanel.direct",
-"fastvps-server.com",
-"fhapp.xyz",
-"fedorainfracloud.org",
-"fedorapeople.org",
-"cloud.fedoraproject.org",
-"app.os.fedoraproject.org",
-"app.os.stg.fedoraproject.org",
-"mydobiss.com",
-"filegear.me",
-"filegear-au.me",
-"filegear-de.me",
-"filegear-gb.me",
-"filegear-ie.me",
-"filegear-jp.me",
-"filegear-sg.me",
-"firebaseapp.com",
-"flynnhub.com",
-"flynnhosting.net",
-"0e.vc",
-"freebox-os.com",
-"freeboxos.com",
-"fbx-os.fr",
-"fbxos.fr",
-"freebox-os.fr",
-"freeboxos.fr",
-"freedesktop.org",
-"*.futurecms.at",
-"*.ex.futurecms.at",
-"*.in.futurecms.at",
-"futurehosting.at",
-"futuremailing.at",
-"*.ex.ortsinfo.at",
-"*.kunden.ortsinfo.at",
-"*.statics.cloud",
-"service.gov.uk",
-"gehirn.ne.jp",
-"usercontent.jp",
-"gentapps.com",
-"lab.ms",
-"github.io",
-"githubusercontent.com",
-"gitlab.io",
-"glitch.me",
-"lolipop.io",
-"cloudapps.digital",
-"london.cloudapps.digital",
-"homeoffice.gov.uk",
-"ro.im",
-"shop.ro",
-"goip.de",
-"run.app",
-"a.run.app",
-"web.app",
-"*.0emm.com",
-"appspot.com",
-"*.r.appspot.com",
-"blogspot.ae",
-"blogspot.al",
-"blogspot.am",
-"blogspot.ba",
-"blogspot.be",
-"blogspot.bg",
-"blogspot.bj",
-"blogspot.ca",
-"blogspot.cf",
-"blogspot.ch",
-"blogspot.cl",
-"blogspot.co.at",
-"blogspot.co.id",
-"blogspot.co.il",
-"blogspot.co.ke",
-"blogspot.co.nz",
-"blogspot.co.uk",
-"blogspot.co.za",
-"blogspot.com",
-"blogspot.com.ar",
-"blogspot.com.au",
-"blogspot.com.br",
-"blogspot.com.by",
-"blogspot.com.co",
-"blogspot.com.cy",
-"blogspot.com.ee",
-"blogspot.com.eg",
-"blogspot.com.es",
-"blogspot.com.mt",
-"blogspot.com.ng",
-"blogspot.com.tr",
-"blogspot.com.uy",
-"blogspot.cv",
-"blogspot.cz",
-"blogspot.de",
-"blogspot.dk",
-"blogspot.fi",
-"blogspot.fr",
-"blogspot.gr",
-"blogspot.hk",
-"blogspot.hr",
-"blogspot.hu",
-"blogspot.ie",
-"blogspot.in",
-"blogspot.is",
-"blogspot.it",
-"blogspot.jp",
-"blogspot.kr",
-"blogspot.li",
-"blogspot.lt",
-"blogspot.lu",
-"blogspot.md",
-"blogspot.mk",
-"blogspot.mr",
-"blogspot.mx",
-"blogspot.my",
-"blogspot.nl",
-"blogspot.no",
-"blogspot.pe",
-"blogspot.pt",
-"blogspot.qa",
-"blogspot.re",
-"blogspot.ro",
-"blogspot.rs",
-"blogspot.ru",
-"blogspot.se",
-"blogspot.sg",
-"blogspot.si",
-"blogspot.sk",
-"blogspot.sn",
-"blogspot.td",
-"blogspot.tw",
-"blogspot.ug",
-"blogspot.vn",
-"cloudfunctions.net",
-"cloud.goog",
-"codespot.com",
-"googleapis.com",
-"googlecode.com",
-"pagespeedmobilizer.com",
-"publishproxy.com",
-"withgoogle.com",
-"withyoutube.com",
-"awsmppl.com",
-"fin.ci",
-"free.hr",
-"caa.li",
-"ua.rs",
-"conf.se",
-"hs.zone",
-"hs.run",
-"hashbang.sh",
-"hasura.app",
-"hasura-app.io",
-"hepforge.org",
-"herokuapp.com",
-"herokussl.com",
-"myravendb.com",
-"ravendb.community",
-"ravendb.me",
-"development.run",
-"ravendb.run",
-"bpl.biz",
-"orx.biz",
-"ng.city",
-"biz.gl",
-"ng.ink",
-"col.ng",
-"firm.ng",
-"gen.ng",
-"ltd.ng",
-"ngo.ng",
-"ng.school",
-"sch.so",
-"häkkinen.fi",
-"*.moonscale.io",
-"moonscale.net",
-"iki.fi",
-"dyn-berlin.de",
-"in-berlin.de",
-"in-brb.de",
-"in-butter.de",
-"in-dsl.de",
-"in-dsl.net",
-"in-dsl.org",
-"in-vpn.de",
-"in-vpn.net",
-"in-vpn.org",
-"biz.at",
-"info.at",
-"info.cx",
-"ac.leg.br",
-"al.leg.br",
-"am.leg.br",
-"ap.leg.br",
-"ba.leg.br",
-"ce.leg.br",
-"df.leg.br",
-"es.leg.br",
-"go.leg.br",
-"ma.leg.br",
-"mg.leg.br",
-"ms.leg.br",
-"mt.leg.br",
-"pa.leg.br",
-"pb.leg.br",
-"pe.leg.br",
-"pi.leg.br",
-"pr.leg.br",
-"rj.leg.br",
-"rn.leg.br",
-"ro.leg.br",
-"rr.leg.br",
-"rs.leg.br",
-"sc.leg.br",
-"se.leg.br",
-"sp.leg.br",
-"to.leg.br",
-"pixolino.com",
-"ipifony.net",
-"mein-iserv.de",
-"test-iserv.de",
-"iserv.dev",
-"iobb.net",
-"myjino.ru",
-"*.hosting.myjino.ru",
-"*.landing.myjino.ru",
-"*.spectrum.myjino.ru",
-"*.vps.myjino.ru",
-"*.triton.zone",
-"*.cns.joyent.com",
-"js.org",
-"kaas.gg",
-"khplay.nl",
-"keymachine.de",
-"kinghost.net",
-"uni5.net",
-"knightpoint.systems",
-"oya.to",
-"co.krd",
-"edu.krd",
-"git-repos.de",
-"lcube-server.de",
-"svn-repos.de",
-"leadpages.co",
-"lpages.co",
-"lpusercontent.com",
-"lelux.site",
-"co.business",
-"co.education",
-"co.events",
-"co.financial",
-"co.network",
-"co.place",
-"co.technology",
-"app.lmpm.com",
-"linkitools.space",
-"linkyard.cloud",
-"linkyard-cloud.ch",
-"members.linode.com",
-"nodebalancer.linode.com",
-"we.bs",
-"loginline.app",
-"loginline.dev",
-"loginline.io",
-"loginline.services",
-"loginline.site",
-"krasnik.pl",
-"leczna.pl",
-"lubartow.pl",
-"lublin.pl",
-"poniatowa.pl",
-"swidnik.pl",
-"uklugs.org",
-"glug.org.uk",
-"lug.org.uk",
-"lugs.org.uk",
-"barsy.bg",
-"barsy.co.uk",
-"barsyonline.co.uk",
-"barsycenter.com",
-"barsyonline.com",
-"barsy.club",
-"barsy.de",
-"barsy.eu",
-"barsy.in",
-"barsy.info",
-"barsy.io",
-"barsy.me",
-"barsy.menu",
-"barsy.mobi",
-"barsy.net",
-"barsy.online",
-"barsy.org",
-"barsy.pro",
-"barsy.pub",
-"barsy.shop",
-"barsy.site",
-"barsy.support",
-"barsy.uk",
-"*.magentosite.cloud",
-"mayfirst.info",
-"mayfirst.org",
-"hb.cldmail.ru",
-"miniserver.com",
-"memset.net",
-"cloud.metacentrum.cz",
-"custom.metacentrum.cz",
-"flt.cloud.muni.cz",
-"usr.cloud.muni.cz",
-"meteorapp.com",
-"eu.meteorapp.com",
-"co.pl",
-"azurecontainer.io",
-"azurewebsites.net",
-"azure-mobile.net",
-"cloudapp.net",
-"mozilla-iot.org",
-"bmoattachments.org",
-"net.ru",
-"org.ru",
-"pp.ru",
-"ui.nabu.casa",
-"pony.club",
-"of.fashion",
-"on.fashion",
-"of.football",
-"in.london",
-"of.london",
-"for.men",
-"and.mom",
-"for.mom",
-"for.one",
-"for.sale",
-"of.work",
-"to.work",
-"nctu.me",
-"bitballoon.com",
-"netlify.com",
-"4u.com",
-"ngrok.io",
-"nh-serv.co.uk",
-"nfshost.com",
-"dnsking.ch",
-"mypi.co",
-"n4t.co",
-"001www.com",
-"ddnslive.com",
-"myiphost.com",
-"forumz.info",
-"16-b.it",
-"32-b.it",
-"64-b.it",
-"soundcast.me",
-"tcp4.me",
-"dnsup.net",
-"hicam.net",
-"now-dns.net",
-"ownip.net",
-"vpndns.net",
-"dynserv.org",
-"now-dns.org",
-"x443.pw",
-"now-dns.top",
-"ntdll.top",
-"freeddns.us",
-"crafting.xyz",
-"zapto.xyz",
-"nsupdate.info",
-"nerdpol.ovh",
-"blogsyte.com",
-"brasilia.me",
-"cable-modem.org",
-"ciscofreak.com",
-"collegefan.org",
-"couchpotatofries.org",
-"damnserver.com",
-"ddns.me",
-"ditchyourip.com",
-"dnsfor.me",
-"dnsiskinky.com",
-"dvrcam.info",
-"dynns.com",
-"eating-organic.net",
-"fantasyleague.cc",
-"geekgalaxy.com",
-"golffan.us",
-"health-carereform.com",
-"homesecuritymac.com",
-"homesecuritypc.com",
-"hopto.me",
-"ilovecollege.info",
-"loginto.me",
-"mlbfan.org",
-"mmafan.biz",
-"myactivedirectory.com",
-"mydissent.net",
-"myeffect.net",
-"mymediapc.net",
-"mypsx.net",
-"mysecuritycamera.com",
-"mysecuritycamera.net",
-"mysecuritycamera.org",
-"net-freaks.com",
-"nflfan.org",
-"nhlfan.net",
-"no-ip.ca",
-"no-ip.co.uk",
-"no-ip.net",
-"noip.us",
-"onthewifi.com",
-"pgafan.net",
-"point2this.com",
-"pointto.us",
-"privatizehealthinsurance.net",
-"quicksytes.com",
-"read-books.org",
-"securitytactics.com",
-"serveexchange.com",
-"servehumour.com",
-"servep2p.com",
-"servesarcasm.com",
-"stufftoread.com",
-"ufcfan.org",
-"unusualperson.com",
-"workisboring.com",
-"3utilities.com",
-"bounceme.net",
-"ddns.net",
-"ddnsking.com",
-"gotdns.ch",
-"hopto.org",
-"myftp.biz",
-"myftp.org",
-"myvnc.com",
-"no-ip.biz",
-"no-ip.info",
-"no-ip.org",
-"noip.me",
-"redirectme.net",
-"servebeer.com",
-"serveblog.net",
-"servecounterstrike.com",
-"serveftp.com",
-"servegame.com",
-"servehalflife.com",
-"servehttp.com",
-"serveirc.com",
-"serveminecraft.net",
-"servemp3.com",
-"servepics.com",
-"servequake.com",
-"sytes.net",
-"webhop.me",
-"zapto.org",
-"stage.nodeart.io",
-"nodum.co",
-"nodum.io",
-"pcloud.host",
-"nyc.mn",
-"nom.ae",
-"nom.af",
-"nom.ai",
-"nom.al",
-"nym.by",
-"nom.bz",
-"nym.bz",
-"nom.cl",
-"nym.ec",
-"nom.gd",
-"nom.ge",
-"nom.gl",
-"nym.gr",
-"nom.gt",
-"nym.gy",
-"nym.hk",
-"nom.hn",
-"nym.ie",
-"nom.im",
-"nom.ke",
-"nym.kz",
-"nym.la",
-"nym.lc",
-"nom.li",
-"nym.li",
-"nym.lt",
-"nym.lu",
-"nom.lv",
-"nym.me",
-"nom.mk",
-"nym.mn",
-"nym.mx",
-"nom.nu",
-"nym.nz",
-"nym.pe",
-"nym.pt",
-"nom.pw",
-"nom.qa",
-"nym.ro",
-"nom.rs",
-"nom.si",
-"nym.sk",
-"nom.st",
-"nym.su",
-"nym.sx",
-"nom.tj",
-"nym.tw",
-"nom.ug",
-"nom.uy",
-"nom.vc",
-"nom.vg",
-"static.observableusercontent.com",
-"cya.gg",
-"cloudycluster.net",
-"nid.io",
-"opencraft.hosting",
-"operaunite.com",
-"skygearapp.com",
-"outsystemscloud.com",
-"ownprovider.com",
-"own.pm",
-"ox.rs",
-"oy.lc",
-"pgfog.com",
-"pagefrontapp.com",
-"art.pl",
-"gliwice.pl",
-"krakow.pl",
-"poznan.pl",
-"wroc.pl",
-"zakopane.pl",
-"pantheonsite.io",
-"gotpantheon.com",
-"mypep.link",
-"perspecta.cloud",
-"on-web.fr",
-"*.platform.sh",
-"*.platformsh.site",
-"dyn53.io",
-"co.bn",
-"xen.prgmr.com",
-"priv.at",
-"prvcy.page",
-"*.dweb.link",
-"protonet.io",
-"chirurgiens-dentistes-en-france.fr",
-"byen.site",
-"pubtls.org",
-"qualifioapp.com",
-"qbuser.com",
-"instantcloud.cn",
-"ras.ru",
-"qa2.com",
-"qcx.io",
-"*.sys.qcx.io",
-"dev-myqnapcloud.com",
-"alpha-myqnapcloud.com",
-"myqnapcloud.com",
-"*.quipelements.com",
-"vapor.cloud",
-"vaporcloud.io",
-"rackmaze.com",
-"rackmaze.net",
-"*.on-k3s.io",
-"*.on-rancher.cloud",
-"*.on-rio.io",
-"readthedocs.io",
-"rhcloud.com",
-"app.render.com",
-"onrender.com",
-"repl.co",
-"repl.run",
-"resindevice.io",
-"devices.resinstaging.io",
-"hzc.io",
-"wellbeingzone.eu",
-"ptplus.fit",
-"wellbeingzone.co.uk",
-"git-pages.rit.edu",
-"sandcats.io",
-"logoip.de",
-"logoip.com",
-"schokokeks.net",
-"gov.scot",
-"scrysec.com",
-"firewall-gateway.com",
-"firewall-gateway.de",
-"my-gateway.de",
-"my-router.de",
-"spdns.de",
-"spdns.eu",
-"firewall-gateway.net",
-"my-firewall.org",
-"myfirewall.org",
-"spdns.org",
-"senseering.net",
-"biz.ua",
-"co.ua",
-"pp.ua",
-"shiftedit.io",
-"myshopblocks.com",
-"shopitsite.com",
-"mo-siemens.io",
-"1kapp.com",
-"appchizi.com",
-"applinzi.com",
-"sinaapp.com",
-"vipsinaapp.com",
-"siteleaf.net",
-"bounty-full.com",
-"alpha.bounty-full.com",
-"beta.bounty-full.com",
-"stackhero-network.com",
-"static.land",
-"dev.static.land",
-"sites.static.land",
-"apps.lair.io",
-"*.stolos.io",
-"spacekit.io",
-"customer.speedpartner.de",
-"api.stdlib.com",
-"storj.farm",
-"utwente.io",
-"soc.srcf.net",
-"user.srcf.net",
-"temp-dns.com",
-"applicationcloud.io",
-"scapp.io",
-"*.s5y.io",
-"*.sensiosite.cloud",
-"syncloud.it",
-"diskstation.me",
-"dscloud.biz",
-"dscloud.me",
-"dscloud.mobi",
-"dsmynas.com",
-"dsmynas.net",
-"dsmynas.org",
-"familyds.com",
-"familyds.net",
-"familyds.org",
-"i234.me",
-"myds.me",
-"synology.me",
-"vpnplus.to",
-"direct.quickconnect.to",
-"taifun-dns.de",
-"gda.pl",
-"gdansk.pl",
-"gdynia.pl",
-"med.pl",
-"sopot.pl",
-"edugit.org",
-"telebit.app",
-"telebit.io",
-"*.telebit.xyz",
-"gwiddle.co.uk",
-"thingdustdata.com",
-"cust.dev.thingdust.io",
-"cust.disrec.thingdust.io",
-"cust.prod.thingdust.io",
-"cust.testing.thingdust.io",
-"arvo.network",
-"azimuth.network",
-"bloxcms.com",
-"townnews-staging.com",
-"12hp.at",
-"2ix.at",
-"4lima.at",
-"lima-city.at",
-"12hp.ch",
-"2ix.ch",
-"4lima.ch",
-"lima-city.ch",
-"trafficplex.cloud",
-"de.cool",
-"12hp.de",
-"2ix.de",
-"4lima.de",
-"lima-city.de",
-"1337.pictures",
-"clan.rip",
-"lima-city.rocks",
-"webspace.rocks",
-"lima.zone",
-"*.transurl.be",
-"*.transurl.eu",
-"*.transurl.nl",
-"tuxfamily.org",
-"dd-dns.de",
-"diskstation.eu",
-"diskstation.org",
-"dray-dns.de",
-"draydns.de",
-"dyn-vpn.de",
-"dynvpn.de",
-"mein-vigor.de",
-"my-vigor.de",
-"my-wan.de",
-"syno-ds.de",
-"synology-diskstation.de",
-"synology-ds.de",
-"uber.space",
-"*.uberspace.de",
-"hk.com",
-"hk.org",
-"ltd.hk",
-"inc.hk",
-"virtualuser.de",
-"virtual-user.de",
-"urown.cloud",
-"dnsupdate.info",
-"lib.de.us",
-"2038.io",
-"router.management",
-"v-info.info",
-"voorloper.cloud",
-"v.ua",
-"wafflecell.com",
-"*.webhare.dev",
-"wedeploy.io",
-"wedeploy.me",
-"wedeploy.sh",
-"remotewd.com",
-"wmflabs.org",
-"myforum.community",
-"community-pro.de",
-"diskussionsbereich.de",
-"community-pro.net",
-"meinforum.net",
-"half.host",
-"xnbay.com",
-"u2.xnbay.com",
-"u2-local.xnbay.com",
-"cistron.nl",
-"demon.nl",
-"xs4all.space",
-"yandexcloud.net",
-"storage.yandexcloud.net",
-"website.yandexcloud.net",
-"official.academy",
-"yolasite.com",
-"ybo.faith",
-"yombo.me",
-"homelink.one",
-"ybo.party",
-"ybo.review",
-"ybo.science",
-"ybo.trade",
-"nohost.me",
-"noho.st",
-"za.net",
-"za.org",
-"now.sh",
-"bss.design",
-"basicserver.io",
-"virtualserver.io",
-"enterprisecloud.nu"
-] \ No newline at end of file
diff --git a/node_modules/psl/dist/psl.js b/node_modules/psl/dist/psl.js
deleted file mode 100644
index f4b9b89..0000000
--- a/node_modules/psl/dist/psl.js
+++ /dev/null
@@ -1,9645 +0,0 @@
-(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.psl = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
-module.exports=[
-"ac",
-"com.ac",
-"edu.ac",
-"gov.ac",
-"net.ac",
-"mil.ac",
-"org.ac",
-"ad",
-"nom.ad",
-"ae",
-"co.ae",
-"net.ae",
-"org.ae",
-"sch.ae",
-"ac.ae",
-"gov.ae",
-"mil.ae",
-"aero",
-"accident-investigation.aero",
-"accident-prevention.aero",
-"aerobatic.aero",
-"aeroclub.aero",
-"aerodrome.aero",
-"agents.aero",
-"aircraft.aero",
-"airline.aero",
-"airport.aero",
-"air-surveillance.aero",
-"airtraffic.aero",
-"air-traffic-control.aero",
-"ambulance.aero",
-"amusement.aero",
-"association.aero",
-"author.aero",
-"ballooning.aero",
-"broker.aero",
-"caa.aero",
-"cargo.aero",
-"catering.aero",
-"certification.aero",
-"championship.aero",
-"charter.aero",
-"civilaviation.aero",
-"club.aero",
-"conference.aero",
-"consultant.aero",
-"consulting.aero",
-"control.aero",
-"council.aero",
-"crew.aero",
-"design.aero",
-"dgca.aero",
-"educator.aero",
-"emergency.aero",
-"engine.aero",
-"engineer.aero",
-"entertainment.aero",
-"equipment.aero",
-"exchange.aero",
-"express.aero",
-"federation.aero",
-"flight.aero",
-"freight.aero",
-"fuel.aero",
-"gliding.aero",
-"government.aero",
-"groundhandling.aero",
-"group.aero",
-"hanggliding.aero",
-"homebuilt.aero",
-"insurance.aero",
-"journal.aero",
-"journalist.aero",
-"leasing.aero",
-"logistics.aero",
-"magazine.aero",
-"maintenance.aero",
-"media.aero",
-"microlight.aero",
-"modelling.aero",
-"navigation.aero",
-"parachuting.aero",
-"paragliding.aero",
-"passenger-association.aero",
-"pilot.aero",
-"press.aero",
-"production.aero",
-"recreation.aero",
-"repbody.aero",
-"res.aero",
-"research.aero",
-"rotorcraft.aero",
-"safety.aero",
-"scientist.aero",
-"services.aero",
-"show.aero",
-"skydiving.aero",
-"software.aero",
-"student.aero",
-"trader.aero",
-"trading.aero",
-"trainer.aero",
-"union.aero",
-"workinggroup.aero",
-"works.aero",
-"af",
-"gov.af",
-"com.af",
-"org.af",
-"net.af",
-"edu.af",
-"ag",
-"com.ag",
-"org.ag",
-"net.ag",
-"co.ag",
-"nom.ag",
-"ai",
-"off.ai",
-"com.ai",
-"net.ai",
-"org.ai",
-"al",
-"com.al",
-"edu.al",
-"gov.al",
-"mil.al",
-"net.al",
-"org.al",
-"am",
-"co.am",
-"com.am",
-"commune.am",
-"net.am",
-"org.am",
-"ao",
-"ed.ao",
-"gv.ao",
-"og.ao",
-"co.ao",
-"pb.ao",
-"it.ao",
-"aq",
-"ar",
-"com.ar",
-"edu.ar",
-"gob.ar",
-"gov.ar",
-"int.ar",
-"mil.ar",
-"musica.ar",
-"net.ar",
-"org.ar",
-"tur.ar",
-"arpa",
-"e164.arpa",
-"in-addr.arpa",
-"ip6.arpa",
-"iris.arpa",
-"uri.arpa",
-"urn.arpa",
-"as",
-"gov.as",
-"asia",
-"at",
-"ac.at",
-"co.at",
-"gv.at",
-"or.at",
-"au",
-"com.au",
-"net.au",
-"org.au",
-"edu.au",
-"gov.au",
-"asn.au",
-"id.au",
-"info.au",
-"conf.au",
-"oz.au",
-"act.au",
-"nsw.au",
-"nt.au",
-"qld.au",
-"sa.au",
-"tas.au",
-"vic.au",
-"wa.au",
-"act.edu.au",
-"catholic.edu.au",
-"nsw.edu.au",
-"nt.edu.au",
-"qld.edu.au",
-"sa.edu.au",
-"tas.edu.au",
-"vic.edu.au",
-"wa.edu.au",
-"qld.gov.au",
-"sa.gov.au",
-"tas.gov.au",
-"vic.gov.au",
-"wa.gov.au",
-"education.tas.edu.au",
-"schools.nsw.edu.au",
-"aw",
-"com.aw",
-"ax",
-"az",
-"com.az",
-"net.az",
-"int.az",
-"gov.az",
-"org.az",
-"edu.az",
-"info.az",
-"pp.az",
-"mil.az",
-"name.az",
-"pro.az",
-"biz.az",
-"ba",
-"com.ba",
-"edu.ba",
-"gov.ba",
-"mil.ba",
-"net.ba",
-"org.ba",
-"bb",
-"biz.bb",
-"co.bb",
-"com.bb",
-"edu.bb",
-"gov.bb",
-"info.bb",
-"net.bb",
-"org.bb",
-"store.bb",
-"tv.bb",
-"*.bd",
-"be",
-"ac.be",
-"bf",
-"gov.bf",
-"bg",
-"a.bg",
-"b.bg",
-"c.bg",
-"d.bg",
-"e.bg",
-"f.bg",
-"g.bg",
-"h.bg",
-"i.bg",
-"j.bg",
-"k.bg",
-"l.bg",
-"m.bg",
-"n.bg",
-"o.bg",
-"p.bg",
-"q.bg",
-"r.bg",
-"s.bg",
-"t.bg",
-"u.bg",
-"v.bg",
-"w.bg",
-"x.bg",
-"y.bg",
-"z.bg",
-"0.bg",
-"1.bg",
-"2.bg",
-"3.bg",
-"4.bg",
-"5.bg",
-"6.bg",
-"7.bg",
-"8.bg",
-"9.bg",
-"bh",
-"com.bh",
-"edu.bh",
-"net.bh",
-"org.bh",
-"gov.bh",
-"bi",
-"co.bi",
-"com.bi",
-"edu.bi",
-"or.bi",
-"org.bi",
-"biz",
-"bj",
-"asso.bj",
-"barreau.bj",
-"gouv.bj",
-"bm",
-"com.bm",
-"edu.bm",
-"gov.bm",
-"net.bm",
-"org.bm",
-"bn",
-"com.bn",
-"edu.bn",
-"gov.bn",
-"net.bn",
-"org.bn",
-"bo",
-"com.bo",
-"edu.bo",
-"gob.bo",
-"int.bo",
-"org.bo",
-"net.bo",
-"mil.bo",
-"tv.bo",
-"web.bo",
-"academia.bo",
-"agro.bo",
-"arte.bo",
-"blog.bo",
-"bolivia.bo",
-"ciencia.bo",
-"cooperativa.bo",
-"democracia.bo",
-"deporte.bo",
-"ecologia.bo",
-"economia.bo",
-"empresa.bo",
-"indigena.bo",
-"industria.bo",
-"info.bo",
-"medicina.bo",
-"movimiento.bo",
-"musica.bo",
-"natural.bo",
-"nombre.bo",
-"noticias.bo",
-"patria.bo",
-"politica.bo",
-"profesional.bo",
-"plurinacional.bo",
-"pueblo.bo",
-"revista.bo",
-"salud.bo",
-"tecnologia.bo",
-"tksat.bo",
-"transporte.bo",
-"wiki.bo",
-"br",
-"9guacu.br",
-"abc.br",
-"adm.br",
-"adv.br",
-"agr.br",
-"aju.br",
-"am.br",
-"anani.br",
-"aparecida.br",
-"arq.br",
-"art.br",
-"ato.br",
-"b.br",
-"barueri.br",
-"belem.br",
-"bhz.br",
-"bio.br",
-"blog.br",
-"bmd.br",
-"boavista.br",
-"bsb.br",
-"campinagrande.br",
-"campinas.br",
-"caxias.br",
-"cim.br",
-"cng.br",
-"cnt.br",
-"com.br",
-"contagem.br",
-"coop.br",
-"cri.br",
-"cuiaba.br",
-"curitiba.br",
-"def.br",
-"ecn.br",
-"eco.br",
-"edu.br",
-"emp.br",
-"eng.br",
-"esp.br",
-"etc.br",
-"eti.br",
-"far.br",
-"feira.br",
-"flog.br",
-"floripa.br",
-"fm.br",
-"fnd.br",
-"fortal.br",
-"fot.br",
-"foz.br",
-"fst.br",
-"g12.br",
-"ggf.br",
-"goiania.br",
-"gov.br",
-"ac.gov.br",
-"al.gov.br",
-"am.gov.br",
-"ap.gov.br",
-"ba.gov.br",
-"ce.gov.br",
-"df.gov.br",
-"es.gov.br",
-"go.gov.br",
-"ma.gov.br",
-"mg.gov.br",
-"ms.gov.br",
-"mt.gov.br",
-"pa.gov.br",
-"pb.gov.br",
-"pe.gov.br",
-"pi.gov.br",
-"pr.gov.br",
-"rj.gov.br",
-"rn.gov.br",
-"ro.gov.br",
-"rr.gov.br",
-"rs.gov.br",
-"sc.gov.br",
-"se.gov.br",
-"sp.gov.br",
-"to.gov.br",
-"gru.br",
-"imb.br",
-"ind.br",
-"inf.br",
-"jab.br",
-"jampa.br",
-"jdf.br",
-"joinville.br",
-"jor.br",
-"jus.br",
-"leg.br",
-"lel.br",
-"londrina.br",
-"macapa.br",
-"maceio.br",
-"manaus.br",
-"maringa.br",
-"mat.br",
-"med.br",
-"mil.br",
-"morena.br",
-"mp.br",
-"mus.br",
-"natal.br",
-"net.br",
-"niteroi.br",
-"*.nom.br",
-"not.br",
-"ntr.br",
-"odo.br",
-"ong.br",
-"org.br",
-"osasco.br",
-"palmas.br",
-"poa.br",
-"ppg.br",
-"pro.br",
-"psc.br",
-"psi.br",
-"pvh.br",
-"qsl.br",
-"radio.br",
-"rec.br",
-"recife.br",
-"ribeirao.br",
-"rio.br",
-"riobranco.br",
-"riopreto.br",
-"salvador.br",
-"sampa.br",
-"santamaria.br",
-"santoandre.br",
-"saobernardo.br",
-"saogonca.br",
-"sjc.br",
-"slg.br",
-"slz.br",
-"sorocaba.br",
-"srv.br",
-"taxi.br",
-"tc.br",
-"teo.br",
-"the.br",
-"tmp.br",
-"trd.br",
-"tur.br",
-"tv.br",
-"udi.br",
-"vet.br",
-"vix.br",
-"vlog.br",
-"wiki.br",
-"zlg.br",
-"bs",
-"com.bs",
-"net.bs",
-"org.bs",
-"edu.bs",
-"gov.bs",
-"bt",
-"com.bt",
-"edu.bt",
-"gov.bt",
-"net.bt",
-"org.bt",
-"bv",
-"bw",
-"co.bw",
-"org.bw",
-"by",
-"gov.by",
-"mil.by",
-"com.by",
-"of.by",
-"bz",
-"com.bz",
-"net.bz",
-"org.bz",
-"edu.bz",
-"gov.bz",
-"ca",
-"ab.ca",
-"bc.ca",
-"mb.ca",
-"nb.ca",
-"nf.ca",
-"nl.ca",
-"ns.ca",
-"nt.ca",
-"nu.ca",
-"on.ca",
-"pe.ca",
-"qc.ca",
-"sk.ca",
-"yk.ca",
-"gc.ca",
-"cat",
-"cc",
-"cd",
-"gov.cd",
-"cf",
-"cg",
-"ch",
-"ci",
-"org.ci",
-"or.ci",
-"com.ci",
-"co.ci",
-"edu.ci",
-"ed.ci",
-"ac.ci",
-"net.ci",
-"go.ci",
-"asso.ci",
-"aéroport.ci",
-"int.ci",
-"presse.ci",
-"md.ci",
-"gouv.ci",
-"*.ck",
-"!www.ck",
-"cl",
-"aprendemas.cl",
-"co.cl",
-"gob.cl",
-"gov.cl",
-"mil.cl",
-"cm",
-"co.cm",
-"com.cm",
-"gov.cm",
-"net.cm",
-"cn",
-"ac.cn",
-"com.cn",
-"edu.cn",
-"gov.cn",
-"net.cn",
-"org.cn",
-"mil.cn",
-"公司.cn",
-"网络.cn",
-"網絡.cn",
-"ah.cn",
-"bj.cn",
-"cq.cn",
-"fj.cn",
-"gd.cn",
-"gs.cn",
-"gz.cn",
-"gx.cn",
-"ha.cn",
-"hb.cn",
-"he.cn",
-"hi.cn",
-"hl.cn",
-"hn.cn",
-"jl.cn",
-"js.cn",
-"jx.cn",
-"ln.cn",
-"nm.cn",
-"nx.cn",
-"qh.cn",
-"sc.cn",
-"sd.cn",
-"sh.cn",
-"sn.cn",
-"sx.cn",
-"tj.cn",
-"xj.cn",
-"xz.cn",
-"yn.cn",
-"zj.cn",
-"hk.cn",
-"mo.cn",
-"tw.cn",
-"co",
-"arts.co",
-"com.co",
-"edu.co",
-"firm.co",
-"gov.co",
-"info.co",
-"int.co",
-"mil.co",
-"net.co",
-"nom.co",
-"org.co",
-"rec.co",
-"web.co",
-"com",
-"coop",
-"cr",
-"ac.cr",
-"co.cr",
-"ed.cr",
-"fi.cr",
-"go.cr",
-"or.cr",
-"sa.cr",
-"cu",
-"com.cu",
-"edu.cu",
-"org.cu",
-"net.cu",
-"gov.cu",
-"inf.cu",
-"cv",
-"cw",
-"com.cw",
-"edu.cw",
-"net.cw",
-"org.cw",
-"cx",
-"gov.cx",
-"cy",
-"ac.cy",
-"biz.cy",
-"com.cy",
-"ekloges.cy",
-"gov.cy",
-"ltd.cy",
-"name.cy",
-"net.cy",
-"org.cy",
-"parliament.cy",
-"press.cy",
-"pro.cy",
-"tm.cy",
-"cz",
-"de",
-"dj",
-"dk",
-"dm",
-"com.dm",
-"net.dm",
-"org.dm",
-"edu.dm",
-"gov.dm",
-"do",
-"art.do",
-"com.do",
-"edu.do",
-"gob.do",
-"gov.do",
-"mil.do",
-"net.do",
-"org.do",
-"sld.do",
-"web.do",
-"dz",
-"com.dz",
-"org.dz",
-"net.dz",
-"gov.dz",
-"edu.dz",
-"asso.dz",
-"pol.dz",
-"art.dz",
-"ec",
-"com.ec",
-"info.ec",
-"net.ec",
-"fin.ec",
-"k12.ec",
-"med.ec",
-"pro.ec",
-"org.ec",
-"edu.ec",
-"gov.ec",
-"gob.ec",
-"mil.ec",
-"edu",
-"ee",
-"edu.ee",
-"gov.ee",
-"riik.ee",
-"lib.ee",
-"med.ee",
-"com.ee",
-"pri.ee",
-"aip.ee",
-"org.ee",
-"fie.ee",
-"eg",
-"com.eg",
-"edu.eg",
-"eun.eg",
-"gov.eg",
-"mil.eg",
-"name.eg",
-"net.eg",
-"org.eg",
-"sci.eg",
-"*.er",
-"es",
-"com.es",
-"nom.es",
-"org.es",
-"gob.es",
-"edu.es",
-"et",
-"com.et",
-"gov.et",
-"org.et",
-"edu.et",
-"biz.et",
-"name.et",
-"info.et",
-"net.et",
-"eu",
-"fi",
-"aland.fi",
-"fj",
-"ac.fj",
-"biz.fj",
-"com.fj",
-"gov.fj",
-"info.fj",
-"mil.fj",
-"name.fj",
-"net.fj",
-"org.fj",
-"pro.fj",
-"*.fk",
-"fm",
-"fo",
-"fr",
-"asso.fr",
-"com.fr",
-"gouv.fr",
-"nom.fr",
-"prd.fr",
-"tm.fr",
-"aeroport.fr",
-"avocat.fr",
-"avoues.fr",
-"cci.fr",
-"chambagri.fr",
-"chirurgiens-dentistes.fr",
-"experts-comptables.fr",
-"geometre-expert.fr",
-"greta.fr",
-"huissier-justice.fr",
-"medecin.fr",
-"notaires.fr",
-"pharmacien.fr",
-"port.fr",
-"veterinaire.fr",
-"ga",
-"gb",
-"gd",
-"ge",
-"com.ge",
-"edu.ge",
-"gov.ge",
-"org.ge",
-"mil.ge",
-"net.ge",
-"pvt.ge",
-"gf",
-"gg",
-"co.gg",
-"net.gg",
-"org.gg",
-"gh",
-"com.gh",
-"edu.gh",
-"gov.gh",
-"org.gh",
-"mil.gh",
-"gi",
-"com.gi",
-"ltd.gi",
-"gov.gi",
-"mod.gi",
-"edu.gi",
-"org.gi",
-"gl",
-"co.gl",
-"com.gl",
-"edu.gl",
-"net.gl",
-"org.gl",
-"gm",
-"gn",
-"ac.gn",
-"com.gn",
-"edu.gn",
-"gov.gn",
-"org.gn",
-"net.gn",
-"gov",
-"gp",
-"com.gp",
-"net.gp",
-"mobi.gp",
-"edu.gp",
-"org.gp",
-"asso.gp",
-"gq",
-"gr",
-"com.gr",
-"edu.gr",
-"net.gr",
-"org.gr",
-"gov.gr",
-"gs",
-"gt",
-"com.gt",
-"edu.gt",
-"gob.gt",
-"ind.gt",
-"mil.gt",
-"net.gt",
-"org.gt",
-"gu",
-"com.gu",
-"edu.gu",
-"gov.gu",
-"guam.gu",
-"info.gu",
-"net.gu",
-"org.gu",
-"web.gu",
-"gw",
-"gy",
-"co.gy",
-"com.gy",
-"edu.gy",
-"gov.gy",
-"net.gy",
-"org.gy",
-"hk",
-"com.hk",
-"edu.hk",
-"gov.hk",
-"idv.hk",
-"net.hk",
-"org.hk",
-"公司.hk",
-"教育.hk",
-"敎育.hk",
-"政府.hk",
-"個人.hk",
-"个人.hk",
-"箇人.hk",
-"網络.hk",
-"网络.hk",
-"组織.hk",
-"網絡.hk",
-"网絡.hk",
-"组织.hk",
-"組織.hk",
-"組织.hk",
-"hm",
-"hn",
-"com.hn",
-"edu.hn",
-"org.hn",
-"net.hn",
-"mil.hn",
-"gob.hn",
-"hr",
-"iz.hr",
-"from.hr",
-"name.hr",
-"com.hr",
-"ht",
-"com.ht",
-"shop.ht",
-"firm.ht",
-"info.ht",
-"adult.ht",
-"net.ht",
-"pro.ht",
-"org.ht",
-"med.ht",
-"art.ht",
-"coop.ht",
-"pol.ht",
-"asso.ht",
-"edu.ht",
-"rel.ht",
-"gouv.ht",
-"perso.ht",
-"hu",
-"co.hu",
-"info.hu",
-"org.hu",
-"priv.hu",
-"sport.hu",
-"tm.hu",
-"2000.hu",
-"agrar.hu",
-"bolt.hu",
-"casino.hu",
-"city.hu",
-"erotica.hu",
-"erotika.hu",
-"film.hu",
-"forum.hu",
-"games.hu",
-"hotel.hu",
-"ingatlan.hu",
-"jogasz.hu",
-"konyvelo.hu",
-"lakas.hu",
-"media.hu",
-"news.hu",
-"reklam.hu",
-"sex.hu",
-"shop.hu",
-"suli.hu",
-"szex.hu",
-"tozsde.hu",
-"utazas.hu",
-"video.hu",
-"id",
-"ac.id",
-"biz.id",
-"co.id",
-"desa.id",
-"go.id",
-"mil.id",
-"my.id",
-"net.id",
-"or.id",
-"ponpes.id",
-"sch.id",
-"web.id",
-"ie",
-"gov.ie",
-"il",
-"ac.il",
-"co.il",
-"gov.il",
-"idf.il",
-"k12.il",
-"muni.il",
-"net.il",
-"org.il",
-"im",
-"ac.im",
-"co.im",
-"com.im",
-"ltd.co.im",
-"net.im",
-"org.im",
-"plc.co.im",
-"tt.im",
-"tv.im",
-"in",
-"co.in",
-"firm.in",
-"net.in",
-"org.in",
-"gen.in",
-"ind.in",
-"nic.in",
-"ac.in",
-"edu.in",
-"res.in",
-"gov.in",
-"mil.in",
-"info",
-"int",
-"eu.int",
-"io",
-"com.io",
-"iq",
-"gov.iq",
-"edu.iq",
-"mil.iq",
-"com.iq",
-"org.iq",
-"net.iq",
-"ir",
-"ac.ir",
-"co.ir",
-"gov.ir",
-"id.ir",
-"net.ir",
-"org.ir",
-"sch.ir",
-"ایران.ir",
-"ايران.ir",
-"is",
-"net.is",
-"com.is",
-"edu.is",
-"gov.is",
-"org.is",
-"int.is",
-"it",
-"gov.it",
-"edu.it",
-"abr.it",
-"abruzzo.it",
-"aosta-valley.it",
-"aostavalley.it",
-"bas.it",
-"basilicata.it",
-"cal.it",
-"calabria.it",
-"cam.it",
-"campania.it",
-"emilia-romagna.it",
-"emiliaromagna.it",
-"emr.it",
-"friuli-v-giulia.it",
-"friuli-ve-giulia.it",
-"friuli-vegiulia.it",
-"friuli-venezia-giulia.it",
-"friuli-veneziagiulia.it",
-"friuli-vgiulia.it",
-"friuliv-giulia.it",
-"friulive-giulia.it",
-"friulivegiulia.it",
-"friulivenezia-giulia.it",
-"friuliveneziagiulia.it",
-"friulivgiulia.it",
-"fvg.it",
-"laz.it",
-"lazio.it",
-"lig.it",
-"liguria.it",
-"lom.it",
-"lombardia.it",
-"lombardy.it",
-"lucania.it",
-"mar.it",
-"marche.it",
-"mol.it",
-"molise.it",
-"piedmont.it",
-"piemonte.it",
-"pmn.it",
-"pug.it",
-"puglia.it",
-"sar.it",
-"sardegna.it",
-"sardinia.it",
-"sic.it",
-"sicilia.it",
-"sicily.it",
-"taa.it",
-"tos.it",
-"toscana.it",
-"trentin-sud-tirol.it",
-"trentin-süd-tirol.it",
-"trentin-sudtirol.it",
-"trentin-südtirol.it",
-"trentin-sued-tirol.it",
-"trentin-suedtirol.it",
-"trentino-a-adige.it",
-"trentino-aadige.it",
-"trentino-alto-adige.it",
-"trentino-altoadige.it",
-"trentino-s-tirol.it",
-"trentino-stirol.it",
-"trentino-sud-tirol.it",
-"trentino-süd-tirol.it",
-"trentino-sudtirol.it",
-"trentino-südtirol.it",
-"trentino-sued-tirol.it",
-"trentino-suedtirol.it",
-"trentino.it",
-"trentinoa-adige.it",
-"trentinoaadige.it",
-"trentinoalto-adige.it",
-"trentinoaltoadige.it",
-"trentinos-tirol.it",
-"trentinostirol.it",
-"trentinosud-tirol.it",
-"trentinosüd-tirol.it",
-"trentinosudtirol.it",
-"trentinosüdtirol.it",
-"trentinosued-tirol.it",
-"trentinosuedtirol.it",
-"trentinsud-tirol.it",
-"trentinsüd-tirol.it",
-"trentinsudtirol.it",
-"trentinsüdtirol.it",
-"trentinsued-tirol.it",
-"trentinsuedtirol.it",
-"tuscany.it",
-"umb.it",
-"umbria.it",
-"val-d-aosta.it",
-"val-daosta.it",
-"vald-aosta.it",
-"valdaosta.it",
-"valle-aosta.it",
-"valle-d-aosta.it",
-"valle-daosta.it",
-"valleaosta.it",
-"valled-aosta.it",
-"valledaosta.it",
-"vallee-aoste.it",
-"vallée-aoste.it",
-"vallee-d-aoste.it",
-"vallée-d-aoste.it",
-"valleeaoste.it",
-"valléeaoste.it",
-"valleedaoste.it",
-"valléedaoste.it",
-"vao.it",
-"vda.it",
-"ven.it",
-"veneto.it",
-"ag.it",
-"agrigento.it",
-"al.it",
-"alessandria.it",
-"alto-adige.it",
-"altoadige.it",
-"an.it",
-"ancona.it",
-"andria-barletta-trani.it",
-"andria-trani-barletta.it",
-"andriabarlettatrani.it",
-"andriatranibarletta.it",
-"ao.it",
-"aosta.it",
-"aoste.it",
-"ap.it",
-"aq.it",
-"aquila.it",
-"ar.it",
-"arezzo.it",
-"ascoli-piceno.it",
-"ascolipiceno.it",
-"asti.it",
-"at.it",
-"av.it",
-"avellino.it",
-"ba.it",
-"balsan-sudtirol.it",
-"balsan-südtirol.it",
-"balsan-suedtirol.it",
-"balsan.it",
-"bari.it",
-"barletta-trani-andria.it",
-"barlettatraniandria.it",
-"belluno.it",
-"benevento.it",
-"bergamo.it",
-"bg.it",
-"bi.it",
-"biella.it",
-"bl.it",
-"bn.it",
-"bo.it",
-"bologna.it",
-"bolzano-altoadige.it",
-"bolzano.it",
-"bozen-sudtirol.it",
-"bozen-südtirol.it",
-"bozen-suedtirol.it",
-"bozen.it",
-"br.it",
-"brescia.it",
-"brindisi.it",
-"bs.it",
-"bt.it",
-"bulsan-sudtirol.it",
-"bulsan-südtirol.it",
-"bulsan-suedtirol.it",
-"bulsan.it",
-"bz.it",
-"ca.it",
-"cagliari.it",
-"caltanissetta.it",
-"campidano-medio.it",
-"campidanomedio.it",
-"campobasso.it",
-"carbonia-iglesias.it",
-"carboniaiglesias.it",
-"carrara-massa.it",
-"carraramassa.it",
-"caserta.it",
-"catania.it",
-"catanzaro.it",
-"cb.it",
-"ce.it",
-"cesena-forli.it",
-"cesena-forlì.it",
-"cesenaforli.it",
-"cesenaforlì.it",
-"ch.it",
-"chieti.it",
-"ci.it",
-"cl.it",
-"cn.it",
-"co.it",
-"como.it",
-"cosenza.it",
-"cr.it",
-"cremona.it",
-"crotone.it",
-"cs.it",
-"ct.it",
-"cuneo.it",
-"cz.it",
-"dell-ogliastra.it",
-"dellogliastra.it",
-"en.it",
-"enna.it",
-"fc.it",
-"fe.it",
-"fermo.it",
-"ferrara.it",
-"fg.it",
-"fi.it",
-"firenze.it",
-"florence.it",
-"fm.it",
-"foggia.it",
-"forli-cesena.it",
-"forlì-cesena.it",
-"forlicesena.it",
-"forlìcesena.it",
-"fr.it",
-"frosinone.it",
-"ge.it",
-"genoa.it",
-"genova.it",
-"go.it",
-"gorizia.it",
-"gr.it",
-"grosseto.it",
-"iglesias-carbonia.it",
-"iglesiascarbonia.it",
-"im.it",
-"imperia.it",
-"is.it",
-"isernia.it",
-"kr.it",
-"la-spezia.it",
-"laquila.it",
-"laspezia.it",
-"latina.it",
-"lc.it",
-"le.it",
-"lecce.it",
-"lecco.it",
-"li.it",
-"livorno.it",
-"lo.it",
-"lodi.it",
-"lt.it",
-"lu.it",
-"lucca.it",
-"macerata.it",
-"mantova.it",
-"massa-carrara.it",
-"massacarrara.it",
-"matera.it",
-"mb.it",
-"mc.it",
-"me.it",
-"medio-campidano.it",
-"mediocampidano.it",
-"messina.it",
-"mi.it",
-"milan.it",
-"milano.it",
-"mn.it",
-"mo.it",
-"modena.it",
-"monza-brianza.it",
-"monza-e-della-brianza.it",
-"monza.it",
-"monzabrianza.it",
-"monzaebrianza.it",
-"monzaedellabrianza.it",
-"ms.it",
-"mt.it",
-"na.it",
-"naples.it",
-"napoli.it",
-"no.it",
-"novara.it",
-"nu.it",
-"nuoro.it",
-"og.it",
-"ogliastra.it",
-"olbia-tempio.it",
-"olbiatempio.it",
-"or.it",
-"oristano.it",
-"ot.it",
-"pa.it",
-"padova.it",
-"padua.it",
-"palermo.it",
-"parma.it",
-"pavia.it",
-"pc.it",
-"pd.it",
-"pe.it",
-"perugia.it",
-"pesaro-urbino.it",
-"pesarourbino.it",
-"pescara.it",
-"pg.it",
-"pi.it",
-"piacenza.it",
-"pisa.it",
-"pistoia.it",
-"pn.it",
-"po.it",
-"pordenone.it",
-"potenza.it",
-"pr.it",
-"prato.it",
-"pt.it",
-"pu.it",
-"pv.it",
-"pz.it",
-"ra.it",
-"ragusa.it",
-"ravenna.it",
-"rc.it",
-"re.it",
-"reggio-calabria.it",
-"reggio-emilia.it",
-"reggiocalabria.it",
-"reggioemilia.it",
-"rg.it",
-"ri.it",
-"rieti.it",
-"rimini.it",
-"rm.it",
-"rn.it",
-"ro.it",
-"roma.it",
-"rome.it",
-"rovigo.it",
-"sa.it",
-"salerno.it",
-"sassari.it",
-"savona.it",
-"si.it",
-"siena.it",
-"siracusa.it",
-"so.it",
-"sondrio.it",
-"sp.it",
-"sr.it",
-"ss.it",
-"suedtirol.it",
-"südtirol.it",
-"sv.it",
-"ta.it",
-"taranto.it",
-"te.it",
-"tempio-olbia.it",
-"tempioolbia.it",
-"teramo.it",
-"terni.it",
-"tn.it",
-"to.it",
-"torino.it",
-"tp.it",
-"tr.it",
-"trani-andria-barletta.it",
-"trani-barletta-andria.it",
-"traniandriabarletta.it",
-"tranibarlettaandria.it",
-"trapani.it",
-"trento.it",
-"treviso.it",
-"trieste.it",
-"ts.it",
-"turin.it",
-"tv.it",
-"ud.it",
-"udine.it",
-"urbino-pesaro.it",
-"urbinopesaro.it",
-"va.it",
-"varese.it",
-"vb.it",
-"vc.it",
-"ve.it",
-"venezia.it",
-"venice.it",
-"verbania.it",
-"vercelli.it",
-"verona.it",
-"vi.it",
-"vibo-valentia.it",
-"vibovalentia.it",
-"vicenza.it",
-"viterbo.it",
-"vr.it",
-"vs.it",
-"vt.it",
-"vv.it",
-"je",
-"co.je",
-"net.je",
-"org.je",
-"*.jm",
-"jo",
-"com.jo",
-"org.jo",
-"net.jo",
-"edu.jo",
-"sch.jo",
-"gov.jo",
-"mil.jo",
-"name.jo",
-"jobs",
-"jp",
-"ac.jp",
-"ad.jp",
-"co.jp",
-"ed.jp",
-"go.jp",
-"gr.jp",
-"lg.jp",
-"ne.jp",
-"or.jp",
-"aichi.jp",
-"akita.jp",
-"aomori.jp",
-"chiba.jp",
-"ehime.jp",
-"fukui.jp",
-"fukuoka.jp",
-"fukushima.jp",
-"gifu.jp",
-"gunma.jp",
-"hiroshima.jp",
-"hokkaido.jp",
-"hyogo.jp",
-"ibaraki.jp",
-"ishikawa.jp",
-"iwate.jp",
-"kagawa.jp",
-"kagoshima.jp",
-"kanagawa.jp",
-"kochi.jp",
-"kumamoto.jp",
-"kyoto.jp",
-"mie.jp",
-"miyagi.jp",
-"miyazaki.jp",
-"nagano.jp",
-"nagasaki.jp",
-"nara.jp",
-"niigata.jp",
-"oita.jp",
-"okayama.jp",
-"okinawa.jp",
-"osaka.jp",
-"saga.jp",
-"saitama.jp",
-"shiga.jp",
-"shimane.jp",
-"shizuoka.jp",
-"tochigi.jp",
-"tokushima.jp",
-"tokyo.jp",
-"tottori.jp",
-"toyama.jp",
-"wakayama.jp",
-"yamagata.jp",
-"yamaguchi.jp",
-"yamanashi.jp",
-"栃木.jp",
-"愛知.jp",
-"愛媛.jp",
-"兵庫.jp",
-"熊本.jp",
-"茨城.jp",
-"北海道.jp",
-"千葉.jp",
-"和歌山.jp",
-"長崎.jp",
-"長野.jp",
-"新潟.jp",
-"青森.jp",
-"静岡.jp",
-"東京.jp",
-"石川.jp",
-"埼玉.jp",
-"三重.jp",
-"京都.jp",
-"佐賀.jp",
-"大分.jp",
-"大阪.jp",
-"奈良.jp",
-"宮城.jp",
-"宮崎.jp",
-"富山.jp",
-"山口.jp",
-"山形.jp",
-"山梨.jp",
-"岩手.jp",
-"岐阜.jp",
-"岡山.jp",
-"島根.jp",
-"広島.jp",
-"徳島.jp",
-"沖縄.jp",
-"滋賀.jp",
-"神奈川.jp",
-"福井.jp",
-"福岡.jp",
-"福島.jp",
-"秋田.jp",
-"群馬.jp",
-"香川.jp",
-"高知.jp",
-"鳥取.jp",
-"鹿児島.jp",
-"*.kawasaki.jp",
-"*.kitakyushu.jp",
-"*.kobe.jp",
-"*.nagoya.jp",
-"*.sapporo.jp",
-"*.sendai.jp",
-"*.yokohama.jp",
-"!city.kawasaki.jp",
-"!city.kitakyushu.jp",
-"!city.kobe.jp",
-"!city.nagoya.jp",
-"!city.sapporo.jp",
-"!city.sendai.jp",
-"!city.yokohama.jp",
-"aisai.aichi.jp",
-"ama.aichi.jp",
-"anjo.aichi.jp",
-"asuke.aichi.jp",
-"chiryu.aichi.jp",
-"chita.aichi.jp",
-"fuso.aichi.jp",
-"gamagori.aichi.jp",
-"handa.aichi.jp",
-"hazu.aichi.jp",
-"hekinan.aichi.jp",
-"higashiura.aichi.jp",
-"ichinomiya.aichi.jp",
-"inazawa.aichi.jp",
-"inuyama.aichi.jp",
-"isshiki.aichi.jp",
-"iwakura.aichi.jp",
-"kanie.aichi.jp",
-"kariya.aichi.jp",
-"kasugai.aichi.jp",
-"kira.aichi.jp",
-"kiyosu.aichi.jp",
-"komaki.aichi.jp",
-"konan.aichi.jp",
-"kota.aichi.jp",
-"mihama.aichi.jp",
-"miyoshi.aichi.jp",
-"nishio.aichi.jp",
-"nisshin.aichi.jp",
-"obu.aichi.jp",
-"oguchi.aichi.jp",
-"oharu.aichi.jp",
-"okazaki.aichi.jp",
-"owariasahi.aichi.jp",
-"seto.aichi.jp",
-"shikatsu.aichi.jp",
-"shinshiro.aichi.jp",
-"shitara.aichi.jp",
-"tahara.aichi.jp",
-"takahama.aichi.jp",
-"tobishima.aichi.jp",
-"toei.aichi.jp",
-"togo.aichi.jp",
-"tokai.aichi.jp",
-"tokoname.aichi.jp",
-"toyoake.aichi.jp",
-"toyohashi.aichi.jp",
-"toyokawa.aichi.jp",
-"toyone.aichi.jp",
-"toyota.aichi.jp",
-"tsushima.aichi.jp",
-"yatomi.aichi.jp",
-"akita.akita.jp",
-"daisen.akita.jp",
-"fujisato.akita.jp",
-"gojome.akita.jp",
-"hachirogata.akita.jp",
-"happou.akita.jp",
-"higashinaruse.akita.jp",
-"honjo.akita.jp",
-"honjyo.akita.jp",
-"ikawa.akita.jp",
-"kamikoani.akita.jp",
-"kamioka.akita.jp",
-"katagami.akita.jp",
-"kazuno.akita.jp",
-"kitaakita.akita.jp",
-"kosaka.akita.jp",
-"kyowa.akita.jp",
-"misato.akita.jp",
-"mitane.akita.jp",
-"moriyoshi.akita.jp",
-"nikaho.akita.jp",
-"noshiro.akita.jp",
-"odate.akita.jp",
-"oga.akita.jp",
-"ogata.akita.jp",
-"semboku.akita.jp",
-"yokote.akita.jp",
-"yurihonjo.akita.jp",
-"aomori.aomori.jp",
-"gonohe.aomori.jp",
-"hachinohe.aomori.jp",
-"hashikami.aomori.jp",
-"hiranai.aomori.jp",
-"hirosaki.aomori.jp",
-"itayanagi.aomori.jp",
-"kuroishi.aomori.jp",
-"misawa.aomori.jp",
-"mutsu.aomori.jp",
-"nakadomari.aomori.jp",
-"noheji.aomori.jp",
-"oirase.aomori.jp",
-"owani.aomori.jp",
-"rokunohe.aomori.jp",
-"sannohe.aomori.jp",
-"shichinohe.aomori.jp",
-"shingo.aomori.jp",
-"takko.aomori.jp",
-"towada.aomori.jp",
-"tsugaru.aomori.jp",
-"tsuruta.aomori.jp",
-"abiko.chiba.jp",
-"asahi.chiba.jp",
-"chonan.chiba.jp",
-"chosei.chiba.jp",
-"choshi.chiba.jp",
-"chuo.chiba.jp",
-"funabashi.chiba.jp",
-"futtsu.chiba.jp",
-"hanamigawa.chiba.jp",
-"ichihara.chiba.jp",
-"ichikawa.chiba.jp",
-"ichinomiya.chiba.jp",
-"inzai.chiba.jp",
-"isumi.chiba.jp",
-"kamagaya.chiba.jp",
-"kamogawa.chiba.jp",
-"kashiwa.chiba.jp",
-"katori.chiba.jp",
-"katsuura.chiba.jp",
-"kimitsu.chiba.jp",
-"kisarazu.chiba.jp",
-"kozaki.chiba.jp",
-"kujukuri.chiba.jp",
-"kyonan.chiba.jp",
-"matsudo.chiba.jp",
-"midori.chiba.jp",
-"mihama.chiba.jp",
-"minamiboso.chiba.jp",
-"mobara.chiba.jp",
-"mutsuzawa.chiba.jp",
-"nagara.chiba.jp",
-"nagareyama.chiba.jp",
-"narashino.chiba.jp",
-"narita.chiba.jp",
-"noda.chiba.jp",
-"oamishirasato.chiba.jp",
-"omigawa.chiba.jp",
-"onjuku.chiba.jp",
-"otaki.chiba.jp",
-"sakae.chiba.jp",
-"sakura.chiba.jp",
-"shimofusa.chiba.jp",
-"shirako.chiba.jp",
-"shiroi.chiba.jp",
-"shisui.chiba.jp",
-"sodegaura.chiba.jp",
-"sosa.chiba.jp",
-"tako.chiba.jp",
-"tateyama.chiba.jp",
-"togane.chiba.jp",
-"tohnosho.chiba.jp",
-"tomisato.chiba.jp",
-"urayasu.chiba.jp",
-"yachimata.chiba.jp",
-"yachiyo.chiba.jp",
-"yokaichiba.chiba.jp",
-"yokoshibahikari.chiba.jp",
-"yotsukaido.chiba.jp",
-"ainan.ehime.jp",
-"honai.ehime.jp",
-"ikata.ehime.jp",
-"imabari.ehime.jp",
-"iyo.ehime.jp",
-"kamijima.ehime.jp",
-"kihoku.ehime.jp",
-"kumakogen.ehime.jp",
-"masaki.ehime.jp",
-"matsuno.ehime.jp",
-"matsuyama.ehime.jp",
-"namikata.ehime.jp",
-"niihama.ehime.jp",
-"ozu.ehime.jp",
-"saijo.ehime.jp",
-"seiyo.ehime.jp",
-"shikokuchuo.ehime.jp",
-"tobe.ehime.jp",
-"toon.ehime.jp",
-"uchiko.ehime.jp",
-"uwajima.ehime.jp",
-"yawatahama.ehime.jp",
-"echizen.fukui.jp",
-"eiheiji.fukui.jp",
-"fukui.fukui.jp",
-"ikeda.fukui.jp",
-"katsuyama.fukui.jp",
-"mihama.fukui.jp",
-"minamiechizen.fukui.jp",
-"obama.fukui.jp",
-"ohi.fukui.jp",
-"ono.fukui.jp",
-"sabae.fukui.jp",
-"sakai.fukui.jp",
-"takahama.fukui.jp",
-"tsuruga.fukui.jp",
-"wakasa.fukui.jp",
-"ashiya.fukuoka.jp",
-"buzen.fukuoka.jp",
-"chikugo.fukuoka.jp",
-"chikuho.fukuoka.jp",
-"chikujo.fukuoka.jp",
-"chikushino.fukuoka.jp",
-"chikuzen.fukuoka.jp",
-"chuo.fukuoka.jp",
-"dazaifu.fukuoka.jp",
-"fukuchi.fukuoka.jp",
-"hakata.fukuoka.jp",
-"higashi.fukuoka.jp",
-"hirokawa.fukuoka.jp",
-"hisayama.fukuoka.jp",
-"iizuka.fukuoka.jp",
-"inatsuki.fukuoka.jp",
-"kaho.fukuoka.jp",
-"kasuga.fukuoka.jp",
-"kasuya.fukuoka.jp",
-"kawara.fukuoka.jp",
-"keisen.fukuoka.jp",
-"koga.fukuoka.jp",
-"kurate.fukuoka.jp",
-"kurogi.fukuoka.jp",
-"kurume.fukuoka.jp",
-"minami.fukuoka.jp",
-"miyako.fukuoka.jp",
-"miyama.fukuoka.jp",
-"miyawaka.fukuoka.jp",
-"mizumaki.fukuoka.jp",
-"munakata.fukuoka.jp",
-"nakagawa.fukuoka.jp",
-"nakama.fukuoka.jp",
-"nishi.fukuoka.jp",
-"nogata.fukuoka.jp",
-"ogori.fukuoka.jp",
-"okagaki.fukuoka.jp",
-"okawa.fukuoka.jp",
-"oki.fukuoka.jp",
-"omuta.fukuoka.jp",
-"onga.fukuoka.jp",
-"onojo.fukuoka.jp",
-"oto.fukuoka.jp",
-"saigawa.fukuoka.jp",
-"sasaguri.fukuoka.jp",
-"shingu.fukuoka.jp",
-"shinyoshitomi.fukuoka.jp",
-"shonai.fukuoka.jp",
-"soeda.fukuoka.jp",
-"sue.fukuoka.jp",
-"tachiarai.fukuoka.jp",
-"tagawa.fukuoka.jp",
-"takata.fukuoka.jp",
-"toho.fukuoka.jp",
-"toyotsu.fukuoka.jp",
-"tsuiki.fukuoka.jp",
-"ukiha.fukuoka.jp",
-"umi.fukuoka.jp",
-"usui.fukuoka.jp",
-"yamada.fukuoka.jp",
-"yame.fukuoka.jp",
-"yanagawa.fukuoka.jp",
-"yukuhashi.fukuoka.jp",
-"aizubange.fukushima.jp",
-"aizumisato.fukushima.jp",
-"aizuwakamatsu.fukushima.jp",
-"asakawa.fukushima.jp",
-"bandai.fukushima.jp",
-"date.fukushima.jp",
-"fukushima.fukushima.jp",
-"furudono.fukushima.jp",
-"futaba.fukushima.jp",
-"hanawa.fukushima.jp",
-"higashi.fukushima.jp",
-"hirata.fukushima.jp",
-"hirono.fukushima.jp",
-"iitate.fukushima.jp",
-"inawashiro.fukushima.jp",
-"ishikawa.fukushima.jp",
-"iwaki.fukushima.jp",
-"izumizaki.fukushima.jp",
-"kagamiishi.fukushima.jp",
-"kaneyama.fukushima.jp",
-"kawamata.fukushima.jp",
-"kitakata.fukushima.jp",
-"kitashiobara.fukushima.jp",
-"koori.fukushima.jp",
-"koriyama.fukushima.jp",
-"kunimi.fukushima.jp",
-"miharu.fukushima.jp",
-"mishima.fukushima.jp",
-"namie.fukushima.jp",
-"nango.fukushima.jp",
-"nishiaizu.fukushima.jp",
-"nishigo.fukushima.jp",
-"okuma.fukushima.jp",
-"omotego.fukushima.jp",
-"ono.fukushima.jp",
-"otama.fukushima.jp",
-"samegawa.fukushima.jp",
-"shimogo.fukushima.jp",
-"shirakawa.fukushima.jp",
-"showa.fukushima.jp",
-"soma.fukushima.jp",
-"sukagawa.fukushima.jp",
-"taishin.fukushima.jp",
-"tamakawa.fukushima.jp",
-"tanagura.fukushima.jp",
-"tenei.fukushima.jp",
-"yabuki.fukushima.jp",
-"yamato.fukushima.jp",
-"yamatsuri.fukushima.jp",
-"yanaizu.fukushima.jp",
-"yugawa.fukushima.jp",
-"anpachi.gifu.jp",
-"ena.gifu.jp",
-"gifu.gifu.jp",
-"ginan.gifu.jp",
-"godo.gifu.jp",
-"gujo.gifu.jp",
-"hashima.gifu.jp",
-"hichiso.gifu.jp",
-"hida.gifu.jp",
-"higashishirakawa.gifu.jp",
-"ibigawa.gifu.jp",
-"ikeda.gifu.jp",
-"kakamigahara.gifu.jp",
-"kani.gifu.jp",
-"kasahara.gifu.jp",
-"kasamatsu.gifu.jp",
-"kawaue.gifu.jp",
-"kitagata.gifu.jp",
-"mino.gifu.jp",
-"minokamo.gifu.jp",
-"mitake.gifu.jp",
-"mizunami.gifu.jp",
-"motosu.gifu.jp",
-"nakatsugawa.gifu.jp",
-"ogaki.gifu.jp",
-"sakahogi.gifu.jp",
-"seki.gifu.jp",
-"sekigahara.gifu.jp",
-"shirakawa.gifu.jp",
-"tajimi.gifu.jp",
-"takayama.gifu.jp",
-"tarui.gifu.jp",
-"toki.gifu.jp",
-"tomika.gifu.jp",
-"wanouchi.gifu.jp",
-"yamagata.gifu.jp",
-"yaotsu.gifu.jp",
-"yoro.gifu.jp",
-"annaka.gunma.jp",
-"chiyoda.gunma.jp",
-"fujioka.gunma.jp",
-"higashiagatsuma.gunma.jp",
-"isesaki.gunma.jp",
-"itakura.gunma.jp",
-"kanna.gunma.jp",
-"kanra.gunma.jp",
-"katashina.gunma.jp",
-"kawaba.gunma.jp",
-"kiryu.gunma.jp",
-"kusatsu.gunma.jp",
-"maebashi.gunma.jp",
-"meiwa.gunma.jp",
-"midori.gunma.jp",
-"minakami.gunma.jp",
-"naganohara.gunma.jp",
-"nakanojo.gunma.jp",
-"nanmoku.gunma.jp",
-"numata.gunma.jp",
-"oizumi.gunma.jp",
-"ora.gunma.jp",
-"ota.gunma.jp",
-"shibukawa.gunma.jp",
-"shimonita.gunma.jp",
-"shinto.gunma.jp",
-"showa.gunma.jp",
-"takasaki.gunma.jp",
-"takayama.gunma.jp",
-"tamamura.gunma.jp",
-"tatebayashi.gunma.jp",
-"tomioka.gunma.jp",
-"tsukiyono.gunma.jp",
-"tsumagoi.gunma.jp",
-"ueno.gunma.jp",
-"yoshioka.gunma.jp",
-"asaminami.hiroshima.jp",
-"daiwa.hiroshima.jp",
-"etajima.hiroshima.jp",
-"fuchu.hiroshima.jp",
-"fukuyama.hiroshima.jp",
-"hatsukaichi.hiroshima.jp",
-"higashihiroshima.hiroshima.jp",
-"hongo.hiroshima.jp",
-"jinsekikogen.hiroshima.jp",
-"kaita.hiroshima.jp",
-"kui.hiroshima.jp",
-"kumano.hiroshima.jp",
-"kure.hiroshima.jp",
-"mihara.hiroshima.jp",
-"miyoshi.hiroshima.jp",
-"naka.hiroshima.jp",
-"onomichi.hiroshima.jp",
-"osakikamijima.hiroshima.jp",
-"otake.hiroshima.jp",
-"saka.hiroshima.jp",
-"sera.hiroshima.jp",
-"seranishi.hiroshima.jp",
-"shinichi.hiroshima.jp",
-"shobara.hiroshima.jp",
-"takehara.hiroshima.jp",
-"abashiri.hokkaido.jp",
-"abira.hokkaido.jp",
-"aibetsu.hokkaido.jp",
-"akabira.hokkaido.jp",
-"akkeshi.hokkaido.jp",
-"asahikawa.hokkaido.jp",
-"ashibetsu.hokkaido.jp",
-"ashoro.hokkaido.jp",
-"assabu.hokkaido.jp",
-"atsuma.hokkaido.jp",
-"bibai.hokkaido.jp",
-"biei.hokkaido.jp",
-"bifuka.hokkaido.jp",
-"bihoro.hokkaido.jp",
-"biratori.hokkaido.jp",
-"chippubetsu.hokkaido.jp",
-"chitose.hokkaido.jp",
-"date.hokkaido.jp",
-"ebetsu.hokkaido.jp",
-"embetsu.hokkaido.jp",
-"eniwa.hokkaido.jp",
-"erimo.hokkaido.jp",
-"esan.hokkaido.jp",
-"esashi.hokkaido.jp",
-"fukagawa.hokkaido.jp",
-"fukushima.hokkaido.jp",
-"furano.hokkaido.jp",
-"furubira.hokkaido.jp",
-"haboro.hokkaido.jp",
-"hakodate.hokkaido.jp",
-"hamatonbetsu.hokkaido.jp",
-"hidaka.hokkaido.jp",
-"higashikagura.hokkaido.jp",
-"higashikawa.hokkaido.jp",
-"hiroo.hokkaido.jp",
-"hokuryu.hokkaido.jp",
-"hokuto.hokkaido.jp",
-"honbetsu.hokkaido.jp",
-"horokanai.hokkaido.jp",
-"horonobe.hokkaido.jp",
-"ikeda.hokkaido.jp",
-"imakane.hokkaido.jp",
-"ishikari.hokkaido.jp",
-"iwamizawa.hokkaido.jp",
-"iwanai.hokkaido.jp",
-"kamifurano.hokkaido.jp",
-"kamikawa.hokkaido.jp",
-"kamishihoro.hokkaido.jp",
-"kamisunagawa.hokkaido.jp",
-"kamoenai.hokkaido.jp",
-"kayabe.hokkaido.jp",
-"kembuchi.hokkaido.jp",
-"kikonai.hokkaido.jp",
-"kimobetsu.hokkaido.jp",
-"kitahiroshima.hokkaido.jp",
-"kitami.hokkaido.jp",
-"kiyosato.hokkaido.jp",
-"koshimizu.hokkaido.jp",
-"kunneppu.hokkaido.jp",
-"kuriyama.hokkaido.jp",
-"kuromatsunai.hokkaido.jp",
-"kushiro.hokkaido.jp",
-"kutchan.hokkaido.jp",
-"kyowa.hokkaido.jp",
-"mashike.hokkaido.jp",
-"matsumae.hokkaido.jp",
-"mikasa.hokkaido.jp",
-"minamifurano.hokkaido.jp",
-"mombetsu.hokkaido.jp",
-"moseushi.hokkaido.jp",
-"mukawa.hokkaido.jp",
-"muroran.hokkaido.jp",
-"naie.hokkaido.jp",
-"nakagawa.hokkaido.jp",
-"nakasatsunai.hokkaido.jp",
-"nakatombetsu.hokkaido.jp",
-"nanae.hokkaido.jp",
-"nanporo.hokkaido.jp",
-"nayoro.hokkaido.jp",
-"nemuro.hokkaido.jp",
-"niikappu.hokkaido.jp",
-"niki.hokkaido.jp",
-"nishiokoppe.hokkaido.jp",
-"noboribetsu.hokkaido.jp",
-"numata.hokkaido.jp",
-"obihiro.hokkaido.jp",
-"obira.hokkaido.jp",
-"oketo.hokkaido.jp",
-"okoppe.hokkaido.jp",
-"otaru.hokkaido.jp",
-"otobe.hokkaido.jp",
-"otofuke.hokkaido.jp",
-"otoineppu.hokkaido.jp",
-"oumu.hokkaido.jp",
-"ozora.hokkaido.jp",
-"pippu.hokkaido.jp",
-"rankoshi.hokkaido.jp",
-"rebun.hokkaido.jp",
-"rikubetsu.hokkaido.jp",
-"rishiri.hokkaido.jp",
-"rishirifuji.hokkaido.jp",
-"saroma.hokkaido.jp",
-"sarufutsu.hokkaido.jp",
-"shakotan.hokkaido.jp",
-"shari.hokkaido.jp",
-"shibecha.hokkaido.jp",
-"shibetsu.hokkaido.jp",
-"shikabe.hokkaido.jp",
-"shikaoi.hokkaido.jp",
-"shimamaki.hokkaido.jp",
-"shimizu.hokkaido.jp",
-"shimokawa.hokkaido.jp",
-"shinshinotsu.hokkaido.jp",
-"shintoku.hokkaido.jp",
-"shiranuka.hokkaido.jp",
-"shiraoi.hokkaido.jp",
-"shiriuchi.hokkaido.jp",
-"sobetsu.hokkaido.jp",
-"sunagawa.hokkaido.jp",
-"taiki.hokkaido.jp",
-"takasu.hokkaido.jp",
-"takikawa.hokkaido.jp",
-"takinoue.hokkaido.jp",
-"teshikaga.hokkaido.jp",
-"tobetsu.hokkaido.jp",
-"tohma.hokkaido.jp",
-"tomakomai.hokkaido.jp",
-"tomari.hokkaido.jp",
-"toya.hokkaido.jp",
-"toyako.hokkaido.jp",
-"toyotomi.hokkaido.jp",
-"toyoura.hokkaido.jp",
-"tsubetsu.hokkaido.jp",
-"tsukigata.hokkaido.jp",
-"urakawa.hokkaido.jp",
-"urausu.hokkaido.jp",
-"uryu.hokkaido.jp",
-"utashinai.hokkaido.jp",
-"wakkanai.hokkaido.jp",
-"wassamu.hokkaido.jp",
-"yakumo.hokkaido.jp",
-"yoichi.hokkaido.jp",
-"aioi.hyogo.jp",
-"akashi.hyogo.jp",
-"ako.hyogo.jp",
-"amagasaki.hyogo.jp",
-"aogaki.hyogo.jp",
-"asago.hyogo.jp",
-"ashiya.hyogo.jp",
-"awaji.hyogo.jp",
-"fukusaki.hyogo.jp",
-"goshiki.hyogo.jp",
-"harima.hyogo.jp",
-"himeji.hyogo.jp",
-"ichikawa.hyogo.jp",
-"inagawa.hyogo.jp",
-"itami.hyogo.jp",
-"kakogawa.hyogo.jp",
-"kamigori.hyogo.jp",
-"kamikawa.hyogo.jp",
-"kasai.hyogo.jp",
-"kasuga.hyogo.jp",
-"kawanishi.hyogo.jp",
-"miki.hyogo.jp",
-"minamiawaji.hyogo.jp",
-"nishinomiya.hyogo.jp",
-"nishiwaki.hyogo.jp",
-"ono.hyogo.jp",
-"sanda.hyogo.jp",
-"sannan.hyogo.jp",
-"sasayama.hyogo.jp",
-"sayo.hyogo.jp",
-"shingu.hyogo.jp",
-"shinonsen.hyogo.jp",
-"shiso.hyogo.jp",
-"sumoto.hyogo.jp",
-"taishi.hyogo.jp",
-"taka.hyogo.jp",
-"takarazuka.hyogo.jp",
-"takasago.hyogo.jp",
-"takino.hyogo.jp",
-"tamba.hyogo.jp",
-"tatsuno.hyogo.jp",
-"toyooka.hyogo.jp",
-"yabu.hyogo.jp",
-"yashiro.hyogo.jp",
-"yoka.hyogo.jp",
-"yokawa.hyogo.jp",
-"ami.ibaraki.jp",
-"asahi.ibaraki.jp",
-"bando.ibaraki.jp",
-"chikusei.ibaraki.jp",
-"daigo.ibaraki.jp",
-"fujishiro.ibaraki.jp",
-"hitachi.ibaraki.jp",
-"hitachinaka.ibaraki.jp",
-"hitachiomiya.ibaraki.jp",
-"hitachiota.ibaraki.jp",
-"ibaraki.ibaraki.jp",
-"ina.ibaraki.jp",
-"inashiki.ibaraki.jp",
-"itako.ibaraki.jp",
-"iwama.ibaraki.jp",
-"joso.ibaraki.jp",
-"kamisu.ibaraki.jp",
-"kasama.ibaraki.jp",
-"kashima.ibaraki.jp",
-"kasumigaura.ibaraki.jp",
-"koga.ibaraki.jp",
-"miho.ibaraki.jp",
-"mito.ibaraki.jp",
-"moriya.ibaraki.jp",
-"naka.ibaraki.jp",
-"namegata.ibaraki.jp",
-"oarai.ibaraki.jp",
-"ogawa.ibaraki.jp",
-"omitama.ibaraki.jp",
-"ryugasaki.ibaraki.jp",
-"sakai.ibaraki.jp",
-"sakuragawa.ibaraki.jp",
-"shimodate.ibaraki.jp",
-"shimotsuma.ibaraki.jp",
-"shirosato.ibaraki.jp",
-"sowa.ibaraki.jp",
-"suifu.ibaraki.jp",
-"takahagi.ibaraki.jp",
-"tamatsukuri.ibaraki.jp",
-"tokai.ibaraki.jp",
-"tomobe.ibaraki.jp",
-"tone.ibaraki.jp",
-"toride.ibaraki.jp",
-"tsuchiura.ibaraki.jp",
-"tsukuba.ibaraki.jp",
-"uchihara.ibaraki.jp",
-"ushiku.ibaraki.jp",
-"yachiyo.ibaraki.jp",
-"yamagata.ibaraki.jp",
-"yawara.ibaraki.jp",
-"yuki.ibaraki.jp",
-"anamizu.ishikawa.jp",
-"hakui.ishikawa.jp",
-"hakusan.ishikawa.jp",
-"kaga.ishikawa.jp",
-"kahoku.ishikawa.jp",
-"kanazawa.ishikawa.jp",
-"kawakita.ishikawa.jp",
-"komatsu.ishikawa.jp",
-"nakanoto.ishikawa.jp",
-"nanao.ishikawa.jp",
-"nomi.ishikawa.jp",
-"nonoichi.ishikawa.jp",
-"noto.ishikawa.jp",
-"shika.ishikawa.jp",
-"suzu.ishikawa.jp",
-"tsubata.ishikawa.jp",
-"tsurugi.ishikawa.jp",
-"uchinada.ishikawa.jp",
-"wajima.ishikawa.jp",
-"fudai.iwate.jp",
-"fujisawa.iwate.jp",
-"hanamaki.iwate.jp",
-"hiraizumi.iwate.jp",
-"hirono.iwate.jp",
-"ichinohe.iwate.jp",
-"ichinoseki.iwate.jp",
-"iwaizumi.iwate.jp",
-"iwate.iwate.jp",
-"joboji.iwate.jp",
-"kamaishi.iwate.jp",
-"kanegasaki.iwate.jp",
-"karumai.iwate.jp",
-"kawai.iwate.jp",
-"kitakami.iwate.jp",
-"kuji.iwate.jp",
-"kunohe.iwate.jp",
-"kuzumaki.iwate.jp",
-"miyako.iwate.jp",
-"mizusawa.iwate.jp",
-"morioka.iwate.jp",
-"ninohe.iwate.jp",
-"noda.iwate.jp",
-"ofunato.iwate.jp",
-"oshu.iwate.jp",
-"otsuchi.iwate.jp",
-"rikuzentakata.iwate.jp",
-"shiwa.iwate.jp",
-"shizukuishi.iwate.jp",
-"sumita.iwate.jp",
-"tanohata.iwate.jp",
-"tono.iwate.jp",
-"yahaba.iwate.jp",
-"yamada.iwate.jp",
-"ayagawa.kagawa.jp",
-"higashikagawa.kagawa.jp",
-"kanonji.kagawa.jp",
-"kotohira.kagawa.jp",
-"manno.kagawa.jp",
-"marugame.kagawa.jp",
-"mitoyo.kagawa.jp",
-"naoshima.kagawa.jp",
-"sanuki.kagawa.jp",
-"tadotsu.kagawa.jp",
-"takamatsu.kagawa.jp",
-"tonosho.kagawa.jp",
-"uchinomi.kagawa.jp",
-"utazu.kagawa.jp",
-"zentsuji.kagawa.jp",
-"akune.kagoshima.jp",
-"amami.kagoshima.jp",
-"hioki.kagoshima.jp",
-"isa.kagoshima.jp",
-"isen.kagoshima.jp",
-"izumi.kagoshima.jp",
-"kagoshima.kagoshima.jp",
-"kanoya.kagoshima.jp",
-"kawanabe.kagoshima.jp",
-"kinko.kagoshima.jp",
-"kouyama.kagoshima.jp",
-"makurazaki.kagoshima.jp",
-"matsumoto.kagoshima.jp",
-"minamitane.kagoshima.jp",
-"nakatane.kagoshima.jp",
-"nishinoomote.kagoshima.jp",
-"satsumasendai.kagoshima.jp",
-"soo.kagoshima.jp",
-"tarumizu.kagoshima.jp",
-"yusui.kagoshima.jp",
-"aikawa.kanagawa.jp",
-"atsugi.kanagawa.jp",
-"ayase.kanagawa.jp",
-"chigasaki.kanagawa.jp",
-"ebina.kanagawa.jp",
-"fujisawa.kanagawa.jp",
-"hadano.kanagawa.jp",
-"hakone.kanagawa.jp",
-"hiratsuka.kanagawa.jp",
-"isehara.kanagawa.jp",
-"kaisei.kanagawa.jp",
-"kamakura.kanagawa.jp",
-"kiyokawa.kanagawa.jp",
-"matsuda.kanagawa.jp",
-"minamiashigara.kanagawa.jp",
-"miura.kanagawa.jp",
-"nakai.kanagawa.jp",
-"ninomiya.kanagawa.jp",
-"odawara.kanagawa.jp",
-"oi.kanagawa.jp",
-"oiso.kanagawa.jp",
-"sagamihara.kanagawa.jp",
-"samukawa.kanagawa.jp",
-"tsukui.kanagawa.jp",
-"yamakita.kanagawa.jp",
-"yamato.kanagawa.jp",
-"yokosuka.kanagawa.jp",
-"yugawara.kanagawa.jp",
-"zama.kanagawa.jp",
-"zushi.kanagawa.jp",
-"aki.kochi.jp",
-"geisei.kochi.jp",
-"hidaka.kochi.jp",
-"higashitsuno.kochi.jp",
-"ino.kochi.jp",
-"kagami.kochi.jp",
-"kami.kochi.jp",
-"kitagawa.kochi.jp",
-"kochi.kochi.jp",
-"mihara.kochi.jp",
-"motoyama.kochi.jp",
-"muroto.kochi.jp",
-"nahari.kochi.jp",
-"nakamura.kochi.jp",
-"nankoku.kochi.jp",
-"nishitosa.kochi.jp",
-"niyodogawa.kochi.jp",
-"ochi.kochi.jp",
-"okawa.kochi.jp",
-"otoyo.kochi.jp",
-"otsuki.kochi.jp",
-"sakawa.kochi.jp",
-"sukumo.kochi.jp",
-"susaki.kochi.jp",
-"tosa.kochi.jp",
-"tosashimizu.kochi.jp",
-"toyo.kochi.jp",
-"tsuno.kochi.jp",
-"umaji.kochi.jp",
-"yasuda.kochi.jp",
-"yusuhara.kochi.jp",
-"amakusa.kumamoto.jp",
-"arao.kumamoto.jp",
-"aso.kumamoto.jp",
-"choyo.kumamoto.jp",
-"gyokuto.kumamoto.jp",
-"kamiamakusa.kumamoto.jp",
-"kikuchi.kumamoto.jp",
-"kumamoto.kumamoto.jp",
-"mashiki.kumamoto.jp",
-"mifune.kumamoto.jp",
-"minamata.kumamoto.jp",
-"minamioguni.kumamoto.jp",
-"nagasu.kumamoto.jp",
-"nishihara.kumamoto.jp",
-"oguni.kumamoto.jp",
-"ozu.kumamoto.jp",
-"sumoto.kumamoto.jp",
-"takamori.kumamoto.jp",
-"uki.kumamoto.jp",
-"uto.kumamoto.jp",
-"yamaga.kumamoto.jp",
-"yamato.kumamoto.jp",
-"yatsushiro.kumamoto.jp",
-"ayabe.kyoto.jp",
-"fukuchiyama.kyoto.jp",
-"higashiyama.kyoto.jp",
-"ide.kyoto.jp",
-"ine.kyoto.jp",
-"joyo.kyoto.jp",
-"kameoka.kyoto.jp",
-"kamo.kyoto.jp",
-"kita.kyoto.jp",
-"kizu.kyoto.jp",
-"kumiyama.kyoto.jp",
-"kyotamba.kyoto.jp",
-"kyotanabe.kyoto.jp",
-"kyotango.kyoto.jp",
-"maizuru.kyoto.jp",
-"minami.kyoto.jp",
-"minamiyamashiro.kyoto.jp",
-"miyazu.kyoto.jp",
-"muko.kyoto.jp",
-"nagaokakyo.kyoto.jp",
-"nakagyo.kyoto.jp",
-"nantan.kyoto.jp",
-"oyamazaki.kyoto.jp",
-"sakyo.kyoto.jp",
-"seika.kyoto.jp",
-"tanabe.kyoto.jp",
-"uji.kyoto.jp",
-"ujitawara.kyoto.jp",
-"wazuka.kyoto.jp",
-"yamashina.kyoto.jp",
-"yawata.kyoto.jp",
-"asahi.mie.jp",
-"inabe.mie.jp",
-"ise.mie.jp",
-"kameyama.mie.jp",
-"kawagoe.mie.jp",
-"kiho.mie.jp",
-"kisosaki.mie.jp",
-"kiwa.mie.jp",
-"komono.mie.jp",
-"kumano.mie.jp",
-"kuwana.mie.jp",
-"matsusaka.mie.jp",
-"meiwa.mie.jp",
-"mihama.mie.jp",
-"minamiise.mie.jp",
-"misugi.mie.jp",
-"miyama.mie.jp",
-"nabari.mie.jp",
-"shima.mie.jp",
-"suzuka.mie.jp",
-"tado.mie.jp",
-"taiki.mie.jp",
-"taki.mie.jp",
-"tamaki.mie.jp",
-"toba.mie.jp",
-"tsu.mie.jp",
-"udono.mie.jp",
-"ureshino.mie.jp",
-"watarai.mie.jp",
-"yokkaichi.mie.jp",
-"furukawa.miyagi.jp",
-"higashimatsushima.miyagi.jp",
-"ishinomaki.miyagi.jp",
-"iwanuma.miyagi.jp",
-"kakuda.miyagi.jp",
-"kami.miyagi.jp",
-"kawasaki.miyagi.jp",
-"marumori.miyagi.jp",
-"matsushima.miyagi.jp",
-"minamisanriku.miyagi.jp",
-"misato.miyagi.jp",
-"murata.miyagi.jp",
-"natori.miyagi.jp",
-"ogawara.miyagi.jp",
-"ohira.miyagi.jp",
-"onagawa.miyagi.jp",
-"osaki.miyagi.jp",
-"rifu.miyagi.jp",
-"semine.miyagi.jp",
-"shibata.miyagi.jp",
-"shichikashuku.miyagi.jp",
-"shikama.miyagi.jp",
-"shiogama.miyagi.jp",
-"shiroishi.miyagi.jp",
-"tagajo.miyagi.jp",
-"taiwa.miyagi.jp",
-"tome.miyagi.jp",
-"tomiya.miyagi.jp",
-"wakuya.miyagi.jp",
-"watari.miyagi.jp",
-"yamamoto.miyagi.jp",
-"zao.miyagi.jp",
-"aya.miyazaki.jp",
-"ebino.miyazaki.jp",
-"gokase.miyazaki.jp",
-"hyuga.miyazaki.jp",
-"kadogawa.miyazaki.jp",
-"kawaminami.miyazaki.jp",
-"kijo.miyazaki.jp",
-"kitagawa.miyazaki.jp",
-"kitakata.miyazaki.jp",
-"kitaura.miyazaki.jp",
-"kobayashi.miyazaki.jp",
-"kunitomi.miyazaki.jp",
-"kushima.miyazaki.jp",
-"mimata.miyazaki.jp",
-"miyakonojo.miyazaki.jp",
-"miyazaki.miyazaki.jp",
-"morotsuka.miyazaki.jp",
-"nichinan.miyazaki.jp",
-"nishimera.miyazaki.jp",
-"nobeoka.miyazaki.jp",
-"saito.miyazaki.jp",
-"shiiba.miyazaki.jp",
-"shintomi.miyazaki.jp",
-"takaharu.miyazaki.jp",
-"takanabe.miyazaki.jp",
-"takazaki.miyazaki.jp",
-"tsuno.miyazaki.jp",
-"achi.nagano.jp",
-"agematsu.nagano.jp",
-"anan.nagano.jp",
-"aoki.nagano.jp",
-"asahi.nagano.jp",
-"azumino.nagano.jp",
-"chikuhoku.nagano.jp",
-"chikuma.nagano.jp",
-"chino.nagano.jp",
-"fujimi.nagano.jp",
-"hakuba.nagano.jp",
-"hara.nagano.jp",
-"hiraya.nagano.jp",
-"iida.nagano.jp",
-"iijima.nagano.jp",
-"iiyama.nagano.jp",
-"iizuna.nagano.jp",
-"ikeda.nagano.jp",
-"ikusaka.nagano.jp",
-"ina.nagano.jp",
-"karuizawa.nagano.jp",
-"kawakami.nagano.jp",
-"kiso.nagano.jp",
-"kisofukushima.nagano.jp",
-"kitaaiki.nagano.jp",
-"komagane.nagano.jp",
-"komoro.nagano.jp",
-"matsukawa.nagano.jp",
-"matsumoto.nagano.jp",
-"miasa.nagano.jp",
-"minamiaiki.nagano.jp",
-"minamimaki.nagano.jp",
-"minamiminowa.nagano.jp",
-"minowa.nagano.jp",
-"miyada.nagano.jp",
-"miyota.nagano.jp",
-"mochizuki.nagano.jp",
-"nagano.nagano.jp",
-"nagawa.nagano.jp",
-"nagiso.nagano.jp",
-"nakagawa.nagano.jp",
-"nakano.nagano.jp",
-"nozawaonsen.nagano.jp",
-"obuse.nagano.jp",
-"ogawa.nagano.jp",
-"okaya.nagano.jp",
-"omachi.nagano.jp",
-"omi.nagano.jp",
-"ookuwa.nagano.jp",
-"ooshika.nagano.jp",
-"otaki.nagano.jp",
-"otari.nagano.jp",
-"sakae.nagano.jp",
-"sakaki.nagano.jp",
-"saku.nagano.jp",
-"sakuho.nagano.jp",
-"shimosuwa.nagano.jp",
-"shinanomachi.nagano.jp",
-"shiojiri.nagano.jp",
-"suwa.nagano.jp",
-"suzaka.nagano.jp",
-"takagi.nagano.jp",
-"takamori.nagano.jp",
-"takayama.nagano.jp",
-"tateshina.nagano.jp",
-"tatsuno.nagano.jp",
-"togakushi.nagano.jp",
-"togura.nagano.jp",
-"tomi.nagano.jp",
-"ueda.nagano.jp",
-"wada.nagano.jp",
-"yamagata.nagano.jp",
-"yamanouchi.nagano.jp",
-"yasaka.nagano.jp",
-"yasuoka.nagano.jp",
-"chijiwa.nagasaki.jp",
-"futsu.nagasaki.jp",
-"goto.nagasaki.jp",
-"hasami.nagasaki.jp",
-"hirado.nagasaki.jp",
-"iki.nagasaki.jp",
-"isahaya.nagasaki.jp",
-"kawatana.nagasaki.jp",
-"kuchinotsu.nagasaki.jp",
-"matsuura.nagasaki.jp",
-"nagasaki.nagasaki.jp",
-"obama.nagasaki.jp",
-"omura.nagasaki.jp",
-"oseto.nagasaki.jp",
-"saikai.nagasaki.jp",
-"sasebo.nagasaki.jp",
-"seihi.nagasaki.jp",
-"shimabara.nagasaki.jp",
-"shinkamigoto.nagasaki.jp",
-"togitsu.nagasaki.jp",
-"tsushima.nagasaki.jp",
-"unzen.nagasaki.jp",
-"ando.nara.jp",
-"gose.nara.jp",
-"heguri.nara.jp",
-"higashiyoshino.nara.jp",
-"ikaruga.nara.jp",
-"ikoma.nara.jp",
-"kamikitayama.nara.jp",
-"kanmaki.nara.jp",
-"kashiba.nara.jp",
-"kashihara.nara.jp",
-"katsuragi.nara.jp",
-"kawai.nara.jp",
-"kawakami.nara.jp",
-"kawanishi.nara.jp",
-"koryo.nara.jp",
-"kurotaki.nara.jp",
-"mitsue.nara.jp",
-"miyake.nara.jp",
-"nara.nara.jp",
-"nosegawa.nara.jp",
-"oji.nara.jp",
-"ouda.nara.jp",
-"oyodo.nara.jp",
-"sakurai.nara.jp",
-"sango.nara.jp",
-"shimoichi.nara.jp",
-"shimokitayama.nara.jp",
-"shinjo.nara.jp",
-"soni.nara.jp",
-"takatori.nara.jp",
-"tawaramoto.nara.jp",
-"tenkawa.nara.jp",
-"tenri.nara.jp",
-"uda.nara.jp",
-"yamatokoriyama.nara.jp",
-"yamatotakada.nara.jp",
-"yamazoe.nara.jp",
-"yoshino.nara.jp",
-"aga.niigata.jp",
-"agano.niigata.jp",
-"gosen.niigata.jp",
-"itoigawa.niigata.jp",
-"izumozaki.niigata.jp",
-"joetsu.niigata.jp",
-"kamo.niigata.jp",
-"kariwa.niigata.jp",
-"kashiwazaki.niigata.jp",
-"minamiuonuma.niigata.jp",
-"mitsuke.niigata.jp",
-"muika.niigata.jp",
-"murakami.niigata.jp",
-"myoko.niigata.jp",
-"nagaoka.niigata.jp",
-"niigata.niigata.jp",
-"ojiya.niigata.jp",
-"omi.niigata.jp",
-"sado.niigata.jp",
-"sanjo.niigata.jp",
-"seiro.niigata.jp",
-"seirou.niigata.jp",
-"sekikawa.niigata.jp",
-"shibata.niigata.jp",
-"tagami.niigata.jp",
-"tainai.niigata.jp",
-"tochio.niigata.jp",
-"tokamachi.niigata.jp",
-"tsubame.niigata.jp",
-"tsunan.niigata.jp",
-"uonuma.niigata.jp",
-"yahiko.niigata.jp",
-"yoita.niigata.jp",
-"yuzawa.niigata.jp",
-"beppu.oita.jp",
-"bungoono.oita.jp",
-"bungotakada.oita.jp",
-"hasama.oita.jp",
-"hiji.oita.jp",
-"himeshima.oita.jp",
-"hita.oita.jp",
-"kamitsue.oita.jp",
-"kokonoe.oita.jp",
-"kuju.oita.jp",
-"kunisaki.oita.jp",
-"kusu.oita.jp",
-"oita.oita.jp",
-"saiki.oita.jp",
-"taketa.oita.jp",
-"tsukumi.oita.jp",
-"usa.oita.jp",
-"usuki.oita.jp",
-"yufu.oita.jp",
-"akaiwa.okayama.jp",
-"asakuchi.okayama.jp",
-"bizen.okayama.jp",
-"hayashima.okayama.jp",
-"ibara.okayama.jp",
-"kagamino.okayama.jp",
-"kasaoka.okayama.jp",
-"kibichuo.okayama.jp",
-"kumenan.okayama.jp",
-"kurashiki.okayama.jp",
-"maniwa.okayama.jp",
-"misaki.okayama.jp",
-"nagi.okayama.jp",
-"niimi.okayama.jp",
-"nishiawakura.okayama.jp",
-"okayama.okayama.jp",
-"satosho.okayama.jp",
-"setouchi.okayama.jp",
-"shinjo.okayama.jp",
-"shoo.okayama.jp",
-"soja.okayama.jp",
-"takahashi.okayama.jp",
-"tamano.okayama.jp",
-"tsuyama.okayama.jp",
-"wake.okayama.jp",
-"yakage.okayama.jp",
-"aguni.okinawa.jp",
-"ginowan.okinawa.jp",
-"ginoza.okinawa.jp",
-"gushikami.okinawa.jp",
-"haebaru.okinawa.jp",
-"higashi.okinawa.jp",
-"hirara.okinawa.jp",
-"iheya.okinawa.jp",
-"ishigaki.okinawa.jp",
-"ishikawa.okinawa.jp",
-"itoman.okinawa.jp",
-"izena.okinawa.jp",
-"kadena.okinawa.jp",
-"kin.okinawa.jp",
-"kitadaito.okinawa.jp",
-"kitanakagusuku.okinawa.jp",
-"kumejima.okinawa.jp",
-"kunigami.okinawa.jp",
-"minamidaito.okinawa.jp",
-"motobu.okinawa.jp",
-"nago.okinawa.jp",
-"naha.okinawa.jp",
-"nakagusuku.okinawa.jp",
-"nakijin.okinawa.jp",
-"nanjo.okinawa.jp",
-"nishihara.okinawa.jp",
-"ogimi.okinawa.jp",
-"okinawa.okinawa.jp",
-"onna.okinawa.jp",
-"shimoji.okinawa.jp",
-"taketomi.okinawa.jp",
-"tarama.okinawa.jp",
-"tokashiki.okinawa.jp",
-"tomigusuku.okinawa.jp",
-"tonaki.okinawa.jp",
-"urasoe.okinawa.jp",
-"uruma.okinawa.jp",
-"yaese.okinawa.jp",
-"yomitan.okinawa.jp",
-"yonabaru.okinawa.jp",
-"yonaguni.okinawa.jp",
-"zamami.okinawa.jp",
-"abeno.osaka.jp",
-"chihayaakasaka.osaka.jp",
-"chuo.osaka.jp",
-"daito.osaka.jp",
-"fujiidera.osaka.jp",
-"habikino.osaka.jp",
-"hannan.osaka.jp",
-"higashiosaka.osaka.jp",
-"higashisumiyoshi.osaka.jp",
-"higashiyodogawa.osaka.jp",
-"hirakata.osaka.jp",
-"ibaraki.osaka.jp",
-"ikeda.osaka.jp",
-"izumi.osaka.jp",
-"izumiotsu.osaka.jp",
-"izumisano.osaka.jp",
-"kadoma.osaka.jp",
-"kaizuka.osaka.jp",
-"kanan.osaka.jp",
-"kashiwara.osaka.jp",
-"katano.osaka.jp",
-"kawachinagano.osaka.jp",
-"kishiwada.osaka.jp",
-"kita.osaka.jp",
-"kumatori.osaka.jp",
-"matsubara.osaka.jp",
-"minato.osaka.jp",
-"minoh.osaka.jp",
-"misaki.osaka.jp",
-"moriguchi.osaka.jp",
-"neyagawa.osaka.jp",
-"nishi.osaka.jp",
-"nose.osaka.jp",
-"osakasayama.osaka.jp",
-"sakai.osaka.jp",
-"sayama.osaka.jp",
-"sennan.osaka.jp",
-"settsu.osaka.jp",
-"shijonawate.osaka.jp",
-"shimamoto.osaka.jp",
-"suita.osaka.jp",
-"tadaoka.osaka.jp",
-"taishi.osaka.jp",
-"tajiri.osaka.jp",
-"takaishi.osaka.jp",
-"takatsuki.osaka.jp",
-"tondabayashi.osaka.jp",
-"toyonaka.osaka.jp",
-"toyono.osaka.jp",
-"yao.osaka.jp",
-"ariake.saga.jp",
-"arita.saga.jp",
-"fukudomi.saga.jp",
-"genkai.saga.jp",
-"hamatama.saga.jp",
-"hizen.saga.jp",
-"imari.saga.jp",
-"kamimine.saga.jp",
-"kanzaki.saga.jp",
-"karatsu.saga.jp",
-"kashima.saga.jp",
-"kitagata.saga.jp",
-"kitahata.saga.jp",
-"kiyama.saga.jp",
-"kouhoku.saga.jp",
-"kyuragi.saga.jp",
-"nishiarita.saga.jp",
-"ogi.saga.jp",
-"omachi.saga.jp",
-"ouchi.saga.jp",
-"saga.saga.jp",
-"shiroishi.saga.jp",
-"taku.saga.jp",
-"tara.saga.jp",
-"tosu.saga.jp",
-"yoshinogari.saga.jp",
-"arakawa.saitama.jp",
-"asaka.saitama.jp",
-"chichibu.saitama.jp",
-"fujimi.saitama.jp",
-"fujimino.saitama.jp",
-"fukaya.saitama.jp",
-"hanno.saitama.jp",
-"hanyu.saitama.jp",
-"hasuda.saitama.jp",
-"hatogaya.saitama.jp",
-"hatoyama.saitama.jp",
-"hidaka.saitama.jp",
-"higashichichibu.saitama.jp",
-"higashimatsuyama.saitama.jp",
-"honjo.saitama.jp",
-"ina.saitama.jp",
-"iruma.saitama.jp",
-"iwatsuki.saitama.jp",
-"kamiizumi.saitama.jp",
-"kamikawa.saitama.jp",
-"kamisato.saitama.jp",
-"kasukabe.saitama.jp",
-"kawagoe.saitama.jp",
-"kawaguchi.saitama.jp",
-"kawajima.saitama.jp",
-"kazo.saitama.jp",
-"kitamoto.saitama.jp",
-"koshigaya.saitama.jp",
-"kounosu.saitama.jp",
-"kuki.saitama.jp",
-"kumagaya.saitama.jp",
-"matsubushi.saitama.jp",
-"minano.saitama.jp",
-"misato.saitama.jp",
-"miyashiro.saitama.jp",
-"miyoshi.saitama.jp",
-"moroyama.saitama.jp",
-"nagatoro.saitama.jp",
-"namegawa.saitama.jp",
-"niiza.saitama.jp",
-"ogano.saitama.jp",
-"ogawa.saitama.jp",
-"ogose.saitama.jp",
-"okegawa.saitama.jp",
-"omiya.saitama.jp",
-"otaki.saitama.jp",
-"ranzan.saitama.jp",
-"ryokami.saitama.jp",
-"saitama.saitama.jp",
-"sakado.saitama.jp",
-"satte.saitama.jp",
-"sayama.saitama.jp",
-"shiki.saitama.jp",
-"shiraoka.saitama.jp",
-"soka.saitama.jp",
-"sugito.saitama.jp",
-"toda.saitama.jp",
-"tokigawa.saitama.jp",
-"tokorozawa.saitama.jp",
-"tsurugashima.saitama.jp",
-"urawa.saitama.jp",
-"warabi.saitama.jp",
-"yashio.saitama.jp",
-"yokoze.saitama.jp",
-"yono.saitama.jp",
-"yorii.saitama.jp",
-"yoshida.saitama.jp",
-"yoshikawa.saitama.jp",
-"yoshimi.saitama.jp",
-"aisho.shiga.jp",
-"gamo.shiga.jp",
-"higashiomi.shiga.jp",
-"hikone.shiga.jp",
-"koka.shiga.jp",
-"konan.shiga.jp",
-"kosei.shiga.jp",
-"koto.shiga.jp",
-"kusatsu.shiga.jp",
-"maibara.shiga.jp",
-"moriyama.shiga.jp",
-"nagahama.shiga.jp",
-"nishiazai.shiga.jp",
-"notogawa.shiga.jp",
-"omihachiman.shiga.jp",
-"otsu.shiga.jp",
-"ritto.shiga.jp",
-"ryuoh.shiga.jp",
-"takashima.shiga.jp",
-"takatsuki.shiga.jp",
-"torahime.shiga.jp",
-"toyosato.shiga.jp",
-"yasu.shiga.jp",
-"akagi.shimane.jp",
-"ama.shimane.jp",
-"gotsu.shimane.jp",
-"hamada.shimane.jp",
-"higashiizumo.shimane.jp",
-"hikawa.shimane.jp",
-"hikimi.shimane.jp",
-"izumo.shimane.jp",
-"kakinoki.shimane.jp",
-"masuda.shimane.jp",
-"matsue.shimane.jp",
-"misato.shimane.jp",
-"nishinoshima.shimane.jp",
-"ohda.shimane.jp",
-"okinoshima.shimane.jp",
-"okuizumo.shimane.jp",
-"shimane.shimane.jp",
-"tamayu.shimane.jp",
-"tsuwano.shimane.jp",
-"unnan.shimane.jp",
-"yakumo.shimane.jp",
-"yasugi.shimane.jp",
-"yatsuka.shimane.jp",
-"arai.shizuoka.jp",
-"atami.shizuoka.jp",
-"fuji.shizuoka.jp",
-"fujieda.shizuoka.jp",
-"fujikawa.shizuoka.jp",
-"fujinomiya.shizuoka.jp",
-"fukuroi.shizuoka.jp",
-"gotemba.shizuoka.jp",
-"haibara.shizuoka.jp",
-"hamamatsu.shizuoka.jp",
-"higashiizu.shizuoka.jp",
-"ito.shizuoka.jp",
-"iwata.shizuoka.jp",
-"izu.shizuoka.jp",
-"izunokuni.shizuoka.jp",
-"kakegawa.shizuoka.jp",
-"kannami.shizuoka.jp",
-"kawanehon.shizuoka.jp",
-"kawazu.shizuoka.jp",
-"kikugawa.shizuoka.jp",
-"kosai.shizuoka.jp",
-"makinohara.shizuoka.jp",
-"matsuzaki.shizuoka.jp",
-"minamiizu.shizuoka.jp",
-"mishima.shizuoka.jp",
-"morimachi.shizuoka.jp",
-"nishiizu.shizuoka.jp",
-"numazu.shizuoka.jp",
-"omaezaki.shizuoka.jp",
-"shimada.shizuoka.jp",
-"shimizu.shizuoka.jp",
-"shimoda.shizuoka.jp",
-"shizuoka.shizuoka.jp",
-"susono.shizuoka.jp",
-"yaizu.shizuoka.jp",
-"yoshida.shizuoka.jp",
-"ashikaga.tochigi.jp",
-"bato.tochigi.jp",
-"haga.tochigi.jp",
-"ichikai.tochigi.jp",
-"iwafune.tochigi.jp",
-"kaminokawa.tochigi.jp",
-"kanuma.tochigi.jp",
-"karasuyama.tochigi.jp",
-"kuroiso.tochigi.jp",
-"mashiko.tochigi.jp",
-"mibu.tochigi.jp",
-"moka.tochigi.jp",
-"motegi.tochigi.jp",
-"nasu.tochigi.jp",
-"nasushiobara.tochigi.jp",
-"nikko.tochigi.jp",
-"nishikata.tochigi.jp",
-"nogi.tochigi.jp",
-"ohira.tochigi.jp",
-"ohtawara.tochigi.jp",
-"oyama.tochigi.jp",
-"sakura.tochigi.jp",
-"sano.tochigi.jp",
-"shimotsuke.tochigi.jp",
-"shioya.tochigi.jp",
-"takanezawa.tochigi.jp",
-"tochigi.tochigi.jp",
-"tsuga.tochigi.jp",
-"ujiie.tochigi.jp",
-"utsunomiya.tochigi.jp",
-"yaita.tochigi.jp",
-"aizumi.tokushima.jp",
-"anan.tokushima.jp",
-"ichiba.tokushima.jp",
-"itano.tokushima.jp",
-"kainan.tokushima.jp",
-"komatsushima.tokushima.jp",
-"matsushige.tokushima.jp",
-"mima.tokushima.jp",
-"minami.tokushima.jp",
-"miyoshi.tokushima.jp",
-"mugi.tokushima.jp",
-"nakagawa.tokushima.jp",
-"naruto.tokushima.jp",
-"sanagochi.tokushima.jp",
-"shishikui.tokushima.jp",
-"tokushima.tokushima.jp",
-"wajiki.tokushima.jp",
-"adachi.tokyo.jp",
-"akiruno.tokyo.jp",
-"akishima.tokyo.jp",
-"aogashima.tokyo.jp",
-"arakawa.tokyo.jp",
-"bunkyo.tokyo.jp",
-"chiyoda.tokyo.jp",
-"chofu.tokyo.jp",
-"chuo.tokyo.jp",
-"edogawa.tokyo.jp",
-"fuchu.tokyo.jp",
-"fussa.tokyo.jp",
-"hachijo.tokyo.jp",
-"hachioji.tokyo.jp",
-"hamura.tokyo.jp",
-"higashikurume.tokyo.jp",
-"higashimurayama.tokyo.jp",
-"higashiyamato.tokyo.jp",
-"hino.tokyo.jp",
-"hinode.tokyo.jp",
-"hinohara.tokyo.jp",
-"inagi.tokyo.jp",
-"itabashi.tokyo.jp",
-"katsushika.tokyo.jp",
-"kita.tokyo.jp",
-"kiyose.tokyo.jp",
-"kodaira.tokyo.jp",
-"koganei.tokyo.jp",
-"kokubunji.tokyo.jp",
-"komae.tokyo.jp",
-"koto.tokyo.jp",
-"kouzushima.tokyo.jp",
-"kunitachi.tokyo.jp",
-"machida.tokyo.jp",
-"meguro.tokyo.jp",
-"minato.tokyo.jp",
-"mitaka.tokyo.jp",
-"mizuho.tokyo.jp",
-"musashimurayama.tokyo.jp",
-"musashino.tokyo.jp",
-"nakano.tokyo.jp",
-"nerima.tokyo.jp",
-"ogasawara.tokyo.jp",
-"okutama.tokyo.jp",
-"ome.tokyo.jp",
-"oshima.tokyo.jp",
-"ota.tokyo.jp",
-"setagaya.tokyo.jp",
-"shibuya.tokyo.jp",
-"shinagawa.tokyo.jp",
-"shinjuku.tokyo.jp",
-"suginami.tokyo.jp",
-"sumida.tokyo.jp",
-"tachikawa.tokyo.jp",
-"taito.tokyo.jp",
-"tama.tokyo.jp",
-"toshima.tokyo.jp",
-"chizu.tottori.jp",
-"hino.tottori.jp",
-"kawahara.tottori.jp",
-"koge.tottori.jp",
-"kotoura.tottori.jp",
-"misasa.tottori.jp",
-"nanbu.tottori.jp",
-"nichinan.tottori.jp",
-"sakaiminato.tottori.jp",
-"tottori.tottori.jp",
-"wakasa.tottori.jp",
-"yazu.tottori.jp",
-"yonago.tottori.jp",
-"asahi.toyama.jp",
-"fuchu.toyama.jp",
-"fukumitsu.toyama.jp",
-"funahashi.toyama.jp",
-"himi.toyama.jp",
-"imizu.toyama.jp",
-"inami.toyama.jp",
-"johana.toyama.jp",
-"kamiichi.toyama.jp",
-"kurobe.toyama.jp",
-"nakaniikawa.toyama.jp",
-"namerikawa.toyama.jp",
-"nanto.toyama.jp",
-"nyuzen.toyama.jp",
-"oyabe.toyama.jp",
-"taira.toyama.jp",
-"takaoka.toyama.jp",
-"tateyama.toyama.jp",
-"toga.toyama.jp",
-"tonami.toyama.jp",
-"toyama.toyama.jp",
-"unazuki.toyama.jp",
-"uozu.toyama.jp",
-"yamada.toyama.jp",
-"arida.wakayama.jp",
-"aridagawa.wakayama.jp",
-"gobo.wakayama.jp",
-"hashimoto.wakayama.jp",
-"hidaka.wakayama.jp",
-"hirogawa.wakayama.jp",
-"inami.wakayama.jp",
-"iwade.wakayama.jp",
-"kainan.wakayama.jp",
-"kamitonda.wakayama.jp",
-"katsuragi.wakayama.jp",
-"kimino.wakayama.jp",
-"kinokawa.wakayama.jp",
-"kitayama.wakayama.jp",
-"koya.wakayama.jp",
-"koza.wakayama.jp",
-"kozagawa.wakayama.jp",
-"kudoyama.wakayama.jp",
-"kushimoto.wakayama.jp",
-"mihama.wakayama.jp",
-"misato.wakayama.jp",
-"nachikatsuura.wakayama.jp",
-"shingu.wakayama.jp",
-"shirahama.wakayama.jp",
-"taiji.wakayama.jp",
-"tanabe.wakayama.jp",
-"wakayama.wakayama.jp",
-"yuasa.wakayama.jp",
-"yura.wakayama.jp",
-"asahi.yamagata.jp",
-"funagata.yamagata.jp",
-"higashine.yamagata.jp",
-"iide.yamagata.jp",
-"kahoku.yamagata.jp",
-"kaminoyama.yamagata.jp",
-"kaneyama.yamagata.jp",
-"kawanishi.yamagata.jp",
-"mamurogawa.yamagata.jp",
-"mikawa.yamagata.jp",
-"murayama.yamagata.jp",
-"nagai.yamagata.jp",
-"nakayama.yamagata.jp",
-"nanyo.yamagata.jp",
-"nishikawa.yamagata.jp",
-"obanazawa.yamagata.jp",
-"oe.yamagata.jp",
-"oguni.yamagata.jp",
-"ohkura.yamagata.jp",
-"oishida.yamagata.jp",
-"sagae.yamagata.jp",
-"sakata.yamagata.jp",
-"sakegawa.yamagata.jp",
-"shinjo.yamagata.jp",
-"shirataka.yamagata.jp",
-"shonai.yamagata.jp",
-"takahata.yamagata.jp",
-"tendo.yamagata.jp",
-"tozawa.yamagata.jp",
-"tsuruoka.yamagata.jp",
-"yamagata.yamagata.jp",
-"yamanobe.yamagata.jp",
-"yonezawa.yamagata.jp",
-"yuza.yamagata.jp",
-"abu.yamaguchi.jp",
-"hagi.yamaguchi.jp",
-"hikari.yamaguchi.jp",
-"hofu.yamaguchi.jp",
-"iwakuni.yamaguchi.jp",
-"kudamatsu.yamaguchi.jp",
-"mitou.yamaguchi.jp",
-"nagato.yamaguchi.jp",
-"oshima.yamaguchi.jp",
-"shimonoseki.yamaguchi.jp",
-"shunan.yamaguchi.jp",
-"tabuse.yamaguchi.jp",
-"tokuyama.yamaguchi.jp",
-"toyota.yamaguchi.jp",
-"ube.yamaguchi.jp",
-"yuu.yamaguchi.jp",
-"chuo.yamanashi.jp",
-"doshi.yamanashi.jp",
-"fuefuki.yamanashi.jp",
-"fujikawa.yamanashi.jp",
-"fujikawaguchiko.yamanashi.jp",
-"fujiyoshida.yamanashi.jp",
-"hayakawa.yamanashi.jp",
-"hokuto.yamanashi.jp",
-"ichikawamisato.yamanashi.jp",
-"kai.yamanashi.jp",
-"kofu.yamanashi.jp",
-"koshu.yamanashi.jp",
-"kosuge.yamanashi.jp",
-"minami-alps.yamanashi.jp",
-"minobu.yamanashi.jp",
-"nakamichi.yamanashi.jp",
-"nanbu.yamanashi.jp",
-"narusawa.yamanashi.jp",
-"nirasaki.yamanashi.jp",
-"nishikatsura.yamanashi.jp",
-"oshino.yamanashi.jp",
-"otsuki.yamanashi.jp",
-"showa.yamanashi.jp",
-"tabayama.yamanashi.jp",
-"tsuru.yamanashi.jp",
-"uenohara.yamanashi.jp",
-"yamanakako.yamanashi.jp",
-"yamanashi.yamanashi.jp",
-"ke",
-"ac.ke",
-"co.ke",
-"go.ke",
-"info.ke",
-"me.ke",
-"mobi.ke",
-"ne.ke",
-"or.ke",
-"sc.ke",
-"kg",
-"org.kg",
-"net.kg",
-"com.kg",
-"edu.kg",
-"gov.kg",
-"mil.kg",
-"*.kh",
-"ki",
-"edu.ki",
-"biz.ki",
-"net.ki",
-"org.ki",
-"gov.ki",
-"info.ki",
-"com.ki",
-"km",
-"org.km",
-"nom.km",
-"gov.km",
-"prd.km",
-"tm.km",
-"edu.km",
-"mil.km",
-"ass.km",
-"com.km",
-"coop.km",
-"asso.km",
-"presse.km",
-"medecin.km",
-"notaires.km",
-"pharmaciens.km",
-"veterinaire.km",
-"gouv.km",
-"kn",
-"net.kn",
-"org.kn",
-"edu.kn",
-"gov.kn",
-"kp",
-"com.kp",
-"edu.kp",
-"gov.kp",
-"org.kp",
-"rep.kp",
-"tra.kp",
-"kr",
-"ac.kr",
-"co.kr",
-"es.kr",
-"go.kr",
-"hs.kr",
-"kg.kr",
-"mil.kr",
-"ms.kr",
-"ne.kr",
-"or.kr",
-"pe.kr",
-"re.kr",
-"sc.kr",
-"busan.kr",
-"chungbuk.kr",
-"chungnam.kr",
-"daegu.kr",
-"daejeon.kr",
-"gangwon.kr",
-"gwangju.kr",
-"gyeongbuk.kr",
-"gyeonggi.kr",
-"gyeongnam.kr",
-"incheon.kr",
-"jeju.kr",
-"jeonbuk.kr",
-"jeonnam.kr",
-"seoul.kr",
-"ulsan.kr",
-"kw",
-"com.kw",
-"edu.kw",
-"emb.kw",
-"gov.kw",
-"ind.kw",
-"net.kw",
-"org.kw",
-"ky",
-"edu.ky",
-"gov.ky",
-"com.ky",
-"org.ky",
-"net.ky",
-"kz",
-"org.kz",
-"edu.kz",
-"net.kz",
-"gov.kz",
-"mil.kz",
-"com.kz",
-"la",
-"int.la",
-"net.la",
-"info.la",
-"edu.la",
-"gov.la",
-"per.la",
-"com.la",
-"org.la",
-"lb",
-"com.lb",
-"edu.lb",
-"gov.lb",
-"net.lb",
-"org.lb",
-"lc",
-"com.lc",
-"net.lc",
-"co.lc",
-"org.lc",
-"edu.lc",
-"gov.lc",
-"li",
-"lk",
-"gov.lk",
-"sch.lk",
-"net.lk",
-"int.lk",
-"com.lk",
-"org.lk",
-"edu.lk",
-"ngo.lk",
-"soc.lk",
-"web.lk",
-"ltd.lk",
-"assn.lk",
-"grp.lk",
-"hotel.lk",
-"ac.lk",
-"lr",
-"com.lr",
-"edu.lr",
-"gov.lr",
-"org.lr",
-"net.lr",
-"ls",
-"ac.ls",
-"biz.ls",
-"co.ls",
-"edu.ls",
-"gov.ls",
-"info.ls",
-"net.ls",
-"org.ls",
-"sc.ls",
-"lt",
-"gov.lt",
-"lu",
-"lv",
-"com.lv",
-"edu.lv",
-"gov.lv",
-"org.lv",
-"mil.lv",
-"id.lv",
-"net.lv",
-"asn.lv",
-"conf.lv",
-"ly",
-"com.ly",
-"net.ly",
-"gov.ly",
-"plc.ly",
-"edu.ly",
-"sch.ly",
-"med.ly",
-"org.ly",
-"id.ly",
-"ma",
-"co.ma",
-"net.ma",
-"gov.ma",
-"org.ma",
-"ac.ma",
-"press.ma",
-"mc",
-"tm.mc",
-"asso.mc",
-"md",
-"me",
-"co.me",
-"net.me",
-"org.me",
-"edu.me",
-"ac.me",
-"gov.me",
-"its.me",
-"priv.me",
-"mg",
-"org.mg",
-"nom.mg",
-"gov.mg",
-"prd.mg",
-"tm.mg",
-"edu.mg",
-"mil.mg",
-"com.mg",
-"co.mg",
-"mh",
-"mil",
-"mk",
-"com.mk",
-"org.mk",
-"net.mk",
-"edu.mk",
-"gov.mk",
-"inf.mk",
-"name.mk",
-"ml",
-"com.ml",
-"edu.ml",
-"gouv.ml",
-"gov.ml",
-"net.ml",
-"org.ml",
-"presse.ml",
-"*.mm",
-"mn",
-"gov.mn",
-"edu.mn",
-"org.mn",
-"mo",
-"com.mo",
-"net.mo",
-"org.mo",
-"edu.mo",
-"gov.mo",
-"mobi",
-"mp",
-"mq",
-"mr",
-"gov.mr",
-"ms",
-"com.ms",
-"edu.ms",
-"gov.ms",
-"net.ms",
-"org.ms",
-"mt",
-"com.mt",
-"edu.mt",
-"net.mt",
-"org.mt",
-"mu",
-"com.mu",
-"net.mu",
-"org.mu",
-"gov.mu",
-"ac.mu",
-"co.mu",
-"or.mu",
-"museum",
-"academy.museum",
-"agriculture.museum",
-"air.museum",
-"airguard.museum",
-"alabama.museum",
-"alaska.museum",
-"amber.museum",
-"ambulance.museum",
-"american.museum",
-"americana.museum",
-"americanantiques.museum",
-"americanart.museum",
-"amsterdam.museum",
-"and.museum",
-"annefrank.museum",
-"anthro.museum",
-"anthropology.museum",
-"antiques.museum",
-"aquarium.museum",
-"arboretum.museum",
-"archaeological.museum",
-"archaeology.museum",
-"architecture.museum",
-"art.museum",
-"artanddesign.museum",
-"artcenter.museum",
-"artdeco.museum",
-"arteducation.museum",
-"artgallery.museum",
-"arts.museum",
-"artsandcrafts.museum",
-"asmatart.museum",
-"assassination.museum",
-"assisi.museum",
-"association.museum",
-"astronomy.museum",
-"atlanta.museum",
-"austin.museum",
-"australia.museum",
-"automotive.museum",
-"aviation.museum",
-"axis.museum",
-"badajoz.museum",
-"baghdad.museum",
-"bahn.museum",
-"bale.museum",
-"baltimore.museum",
-"barcelona.museum",
-"baseball.museum",
-"basel.museum",
-"baths.museum",
-"bauern.museum",
-"beauxarts.museum",
-"beeldengeluid.museum",
-"bellevue.museum",
-"bergbau.museum",
-"berkeley.museum",
-"berlin.museum",
-"bern.museum",
-"bible.museum",
-"bilbao.museum",
-"bill.museum",
-"birdart.museum",
-"birthplace.museum",
-"bonn.museum",
-"boston.museum",
-"botanical.museum",
-"botanicalgarden.museum",
-"botanicgarden.museum",
-"botany.museum",
-"brandywinevalley.museum",
-"brasil.museum",
-"bristol.museum",
-"british.museum",
-"britishcolumbia.museum",
-"broadcast.museum",
-"brunel.museum",
-"brussel.museum",
-"brussels.museum",
-"bruxelles.museum",
-"building.museum",
-"burghof.museum",
-"bus.museum",
-"bushey.museum",
-"cadaques.museum",
-"california.museum",
-"cambridge.museum",
-"can.museum",
-"canada.museum",
-"capebreton.museum",
-"carrier.museum",
-"cartoonart.museum",
-"casadelamoneda.museum",
-"castle.museum",
-"castres.museum",
-"celtic.museum",
-"center.museum",
-"chattanooga.museum",
-"cheltenham.museum",
-"chesapeakebay.museum",
-"chicago.museum",
-"children.museum",
-"childrens.museum",
-"childrensgarden.museum",
-"chiropractic.museum",
-"chocolate.museum",
-"christiansburg.museum",
-"cincinnati.museum",
-"cinema.museum",
-"circus.museum",
-"civilisation.museum",
-"civilization.museum",
-"civilwar.museum",
-"clinton.museum",
-"clock.museum",
-"coal.museum",
-"coastaldefence.museum",
-"cody.museum",
-"coldwar.museum",
-"collection.museum",
-"colonialwilliamsburg.museum",
-"coloradoplateau.museum",
-"columbia.museum",
-"columbus.museum",
-"communication.museum",
-"communications.museum",
-"community.museum",
-"computer.museum",
-"computerhistory.museum",
-"comunicações.museum",
-"contemporary.museum",
-"contemporaryart.museum",
-"convent.museum",
-"copenhagen.museum",
-"corporation.museum",
-"correios-e-telecomunicações.museum",
-"corvette.museum",
-"costume.museum",
-"countryestate.museum",
-"county.museum",
-"crafts.museum",
-"cranbrook.museum",
-"creation.museum",
-"cultural.museum",
-"culturalcenter.museum",
-"culture.museum",
-"cyber.museum",
-"cymru.museum",
-"dali.museum",
-"dallas.museum",
-"database.museum",
-"ddr.museum",
-"decorativearts.museum",
-"delaware.museum",
-"delmenhorst.museum",
-"denmark.museum",
-"depot.museum",
-"design.museum",
-"detroit.museum",
-"dinosaur.museum",
-"discovery.museum",
-"dolls.museum",
-"donostia.museum",
-"durham.museum",
-"eastafrica.museum",
-"eastcoast.museum",
-"education.museum",
-"educational.museum",
-"egyptian.museum",
-"eisenbahn.museum",
-"elburg.museum",
-"elvendrell.museum",
-"embroidery.museum",
-"encyclopedic.museum",
-"england.museum",
-"entomology.museum",
-"environment.museum",
-"environmentalconservation.museum",
-"epilepsy.museum",
-"essex.museum",
-"estate.museum",
-"ethnology.museum",
-"exeter.museum",
-"exhibition.museum",
-"family.museum",
-"farm.museum",
-"farmequipment.museum",
-"farmers.museum",
-"farmstead.museum",
-"field.museum",
-"figueres.museum",
-"filatelia.museum",
-"film.museum",
-"fineart.museum",
-"finearts.museum",
-"finland.museum",
-"flanders.museum",
-"florida.museum",
-"force.museum",
-"fortmissoula.museum",
-"fortworth.museum",
-"foundation.museum",
-"francaise.museum",
-"frankfurt.museum",
-"franziskaner.museum",
-"freemasonry.museum",
-"freiburg.museum",
-"fribourg.museum",
-"frog.museum",
-"fundacio.museum",
-"furniture.museum",
-"gallery.museum",
-"garden.museum",
-"gateway.museum",
-"geelvinck.museum",
-"gemological.museum",
-"geology.museum",
-"georgia.museum",
-"giessen.museum",
-"glas.museum",
-"glass.museum",
-"gorge.museum",
-"grandrapids.museum",
-"graz.museum",
-"guernsey.museum",
-"halloffame.museum",
-"hamburg.museum",
-"handson.museum",
-"harvestcelebration.museum",
-"hawaii.museum",
-"health.museum",
-"heimatunduhren.museum",
-"hellas.museum",
-"helsinki.museum",
-"hembygdsforbund.museum",
-"heritage.museum",
-"histoire.museum",
-"historical.museum",
-"historicalsociety.museum",
-"historichouses.museum",
-"historisch.museum",
-"historisches.museum",
-"history.museum",
-"historyofscience.museum",
-"horology.museum",
-"house.museum",
-"humanities.museum",
-"illustration.museum",
-"imageandsound.museum",
-"indian.museum",
-"indiana.museum",
-"indianapolis.museum",
-"indianmarket.museum",
-"intelligence.museum",
-"interactive.museum",
-"iraq.museum",
-"iron.museum",
-"isleofman.museum",
-"jamison.museum",
-"jefferson.museum",
-"jerusalem.museum",
-"jewelry.museum",
-"jewish.museum",
-"jewishart.museum",
-"jfk.museum",
-"journalism.museum",
-"judaica.museum",
-"judygarland.museum",
-"juedisches.museum",
-"juif.museum",
-"karate.museum",
-"karikatur.museum",
-"kids.museum",
-"koebenhavn.museum",
-"koeln.museum",
-"kunst.museum",
-"kunstsammlung.museum",
-"kunstunddesign.museum",
-"labor.museum",
-"labour.museum",
-"lajolla.museum",
-"lancashire.museum",
-"landes.museum",
-"lans.museum",
-"läns.museum",
-"larsson.museum",
-"lewismiller.museum",
-"lincoln.museum",
-"linz.museum",
-"living.museum",
-"livinghistory.museum",
-"localhistory.museum",
-"london.museum",
-"losangeles.museum",
-"louvre.museum",
-"loyalist.museum",
-"lucerne.museum",
-"luxembourg.museum",
-"luzern.museum",
-"mad.museum",
-"madrid.museum",
-"mallorca.museum",
-"manchester.museum",
-"mansion.museum",
-"mansions.museum",
-"manx.museum",
-"marburg.museum",
-"maritime.museum",
-"maritimo.museum",
-"maryland.museum",
-"marylhurst.museum",
-"media.museum",
-"medical.museum",
-"medizinhistorisches.museum",
-"meeres.museum",
-"memorial.museum",
-"mesaverde.museum",
-"michigan.museum",
-"midatlantic.museum",
-"military.museum",
-"mill.museum",
-"miners.museum",
-"mining.museum",
-"minnesota.museum",
-"missile.museum",
-"missoula.museum",
-"modern.museum",
-"moma.museum",
-"money.museum",
-"monmouth.museum",
-"monticello.museum",
-"montreal.museum",
-"moscow.museum",
-"motorcycle.museum",
-"muenchen.museum",
-"muenster.museum",
-"mulhouse.museum",
-"muncie.museum",
-"museet.museum",
-"museumcenter.museum",
-"museumvereniging.museum",
-"music.museum",
-"national.museum",
-"nationalfirearms.museum",
-"nationalheritage.museum",
-"nativeamerican.museum",
-"naturalhistory.museum",
-"naturalhistorymuseum.museum",
-"naturalsciences.museum",
-"nature.museum",
-"naturhistorisches.museum",
-"natuurwetenschappen.museum",
-"naumburg.museum",
-"naval.museum",
-"nebraska.museum",
-"neues.museum",
-"newhampshire.museum",
-"newjersey.museum",
-"newmexico.museum",
-"newport.museum",
-"newspaper.museum",
-"newyork.museum",
-"niepce.museum",
-"norfolk.museum",
-"north.museum",
-"nrw.museum",
-"nyc.museum",
-"nyny.museum",
-"oceanographic.museum",
-"oceanographique.museum",
-"omaha.museum",
-"online.museum",
-"ontario.museum",
-"openair.museum",
-"oregon.museum",
-"oregontrail.museum",
-"otago.museum",
-"oxford.museum",
-"pacific.museum",
-"paderborn.museum",
-"palace.museum",
-"paleo.museum",
-"palmsprings.museum",
-"panama.museum",
-"paris.museum",
-"pasadena.museum",
-"pharmacy.museum",
-"philadelphia.museum",
-"philadelphiaarea.museum",
-"philately.museum",
-"phoenix.museum",
-"photography.museum",
-"pilots.museum",
-"pittsburgh.museum",
-"planetarium.museum",
-"plantation.museum",
-"plants.museum",
-"plaza.museum",
-"portal.museum",
-"portland.museum",
-"portlligat.museum",
-"posts-and-telecommunications.museum",
-"preservation.museum",
-"presidio.museum",
-"press.museum",
-"project.museum",
-"public.museum",
-"pubol.museum",
-"quebec.museum",
-"railroad.museum",
-"railway.museum",
-"research.museum",
-"resistance.museum",
-"riodejaneiro.museum",
-"rochester.museum",
-"rockart.museum",
-"roma.museum",
-"russia.museum",
-"saintlouis.museum",
-"salem.museum",
-"salvadordali.museum",
-"salzburg.museum",
-"sandiego.museum",
-"sanfrancisco.museum",
-"santabarbara.museum",
-"santacruz.museum",
-"santafe.museum",
-"saskatchewan.museum",
-"satx.museum",
-"savannahga.museum",
-"schlesisches.museum",
-"schoenbrunn.museum",
-"schokoladen.museum",
-"school.museum",
-"schweiz.museum",
-"science.museum",
-"scienceandhistory.museum",
-"scienceandindustry.museum",
-"sciencecenter.museum",
-"sciencecenters.museum",
-"science-fiction.museum",
-"sciencehistory.museum",
-"sciences.museum",
-"sciencesnaturelles.museum",
-"scotland.museum",
-"seaport.museum",
-"settlement.museum",
-"settlers.museum",
-"shell.museum",
-"sherbrooke.museum",
-"sibenik.museum",
-"silk.museum",
-"ski.museum",
-"skole.museum",
-"society.museum",
-"sologne.museum",
-"soundandvision.museum",
-"southcarolina.museum",
-"southwest.museum",
-"space.museum",
-"spy.museum",
-"square.museum",
-"stadt.museum",
-"stalbans.museum",
-"starnberg.museum",
-"state.museum",
-"stateofdelaware.museum",
-"station.museum",
-"steam.museum",
-"steiermark.museum",
-"stjohn.museum",
-"stockholm.museum",
-"stpetersburg.museum",
-"stuttgart.museum",
-"suisse.museum",
-"surgeonshall.museum",
-"surrey.museum",
-"svizzera.museum",
-"sweden.museum",
-"sydney.museum",
-"tank.museum",
-"tcm.museum",
-"technology.museum",
-"telekommunikation.museum",
-"television.museum",
-"texas.museum",
-"textile.museum",
-"theater.museum",
-"time.museum",
-"timekeeping.museum",
-"topology.museum",
-"torino.museum",
-"touch.museum",
-"town.museum",
-"transport.museum",
-"tree.museum",
-"trolley.museum",
-"trust.museum",
-"trustee.museum",
-"uhren.museum",
-"ulm.museum",
-"undersea.museum",
-"university.museum",
-"usa.museum",
-"usantiques.museum",
-"usarts.museum",
-"uscountryestate.museum",
-"usculture.museum",
-"usdecorativearts.museum",
-"usgarden.museum",
-"ushistory.museum",
-"ushuaia.museum",
-"uslivinghistory.museum",
-"utah.museum",
-"uvic.museum",
-"valley.museum",
-"vantaa.museum",
-"versailles.museum",
-"viking.museum",
-"village.museum",
-"virginia.museum",
-"virtual.museum",
-"virtuel.museum",
-"vlaanderen.museum",
-"volkenkunde.museum",
-"wales.museum",
-"wallonie.museum",
-"war.museum",
-"washingtondc.museum",
-"watchandclock.museum",
-"watch-and-clock.museum",
-"western.museum",
-"westfalen.museum",
-"whaling.museum",
-"wildlife.museum",
-"williamsburg.museum",
-"windmill.museum",
-"workshop.museum",
-"york.museum",
-"yorkshire.museum",
-"yosemite.museum",
-"youth.museum",
-"zoological.museum",
-"zoology.museum",
-"ירושלים.museum",
-"иком.museum",
-"mv",
-"aero.mv",
-"biz.mv",
-"com.mv",
-"coop.mv",
-"edu.mv",
-"gov.mv",
-"info.mv",
-"int.mv",
-"mil.mv",
-"museum.mv",
-"name.mv",
-"net.mv",
-"org.mv",
-"pro.mv",
-"mw",
-"ac.mw",
-"biz.mw",
-"co.mw",
-"com.mw",
-"coop.mw",
-"edu.mw",
-"gov.mw",
-"int.mw",
-"museum.mw",
-"net.mw",
-"org.mw",
-"mx",
-"com.mx",
-"org.mx",
-"gob.mx",
-"edu.mx",
-"net.mx",
-"my",
-"com.my",
-"net.my",
-"org.my",
-"gov.my",
-"edu.my",
-"mil.my",
-"name.my",
-"mz",
-"ac.mz",
-"adv.mz",
-"co.mz",
-"edu.mz",
-"gov.mz",
-"mil.mz",
-"net.mz",
-"org.mz",
-"na",
-"info.na",
-"pro.na",
-"name.na",
-"school.na",
-"or.na",
-"dr.na",
-"us.na",
-"mx.na",
-"ca.na",
-"in.na",
-"cc.na",
-"tv.na",
-"ws.na",
-"mobi.na",
-"co.na",
-"com.na",
-"org.na",
-"name",
-"nc",
-"asso.nc",
-"nom.nc",
-"ne",
-"net",
-"nf",
-"com.nf",
-"net.nf",
-"per.nf",
-"rec.nf",
-"web.nf",
-"arts.nf",
-"firm.nf",
-"info.nf",
-"other.nf",
-"store.nf",
-"ng",
-"com.ng",
-"edu.ng",
-"gov.ng",
-"i.ng",
-"mil.ng",
-"mobi.ng",
-"name.ng",
-"net.ng",
-"org.ng",
-"sch.ng",
-"ni",
-"ac.ni",
-"biz.ni",
-"co.ni",
-"com.ni",
-"edu.ni",
-"gob.ni",
-"in.ni",
-"info.ni",
-"int.ni",
-"mil.ni",
-"net.ni",
-"nom.ni",
-"org.ni",
-"web.ni",
-"nl",
-"no",
-"fhs.no",
-"vgs.no",
-"fylkesbibl.no",
-"folkebibl.no",
-"museum.no",
-"idrett.no",
-"priv.no",
-"mil.no",
-"stat.no",
-"dep.no",
-"kommune.no",
-"herad.no",
-"aa.no",
-"ah.no",
-"bu.no",
-"fm.no",
-"hl.no",
-"hm.no",
-"jan-mayen.no",
-"mr.no",
-"nl.no",
-"nt.no",
-"of.no",
-"ol.no",
-"oslo.no",
-"rl.no",
-"sf.no",
-"st.no",
-"svalbard.no",
-"tm.no",
-"tr.no",
-"va.no",
-"vf.no",
-"gs.aa.no",
-"gs.ah.no",
-"gs.bu.no",
-"gs.fm.no",
-"gs.hl.no",
-"gs.hm.no",
-"gs.jan-mayen.no",
-"gs.mr.no",
-"gs.nl.no",
-"gs.nt.no",
-"gs.of.no",
-"gs.ol.no",
-"gs.oslo.no",
-"gs.rl.no",
-"gs.sf.no",
-"gs.st.no",
-"gs.svalbard.no",
-"gs.tm.no",
-"gs.tr.no",
-"gs.va.no",
-"gs.vf.no",
-"akrehamn.no",
-"åkrehamn.no",
-"algard.no",
-"ålgård.no",
-"arna.no",
-"brumunddal.no",
-"bryne.no",
-"bronnoysund.no",
-"brønnøysund.no",
-"drobak.no",
-"drøbak.no",
-"egersund.no",
-"fetsund.no",
-"floro.no",
-"florø.no",
-"fredrikstad.no",
-"hokksund.no",
-"honefoss.no",
-"hønefoss.no",
-"jessheim.no",
-"jorpeland.no",
-"jørpeland.no",
-"kirkenes.no",
-"kopervik.no",
-"krokstadelva.no",
-"langevag.no",
-"langevåg.no",
-"leirvik.no",
-"mjondalen.no",
-"mjøndalen.no",
-"mo-i-rana.no",
-"mosjoen.no",
-"mosjøen.no",
-"nesoddtangen.no",
-"orkanger.no",
-"osoyro.no",
-"osøyro.no",
-"raholt.no",
-"råholt.no",
-"sandnessjoen.no",
-"sandnessjøen.no",
-"skedsmokorset.no",
-"slattum.no",
-"spjelkavik.no",
-"stathelle.no",
-"stavern.no",
-"stjordalshalsen.no",
-"stjørdalshalsen.no",
-"tananger.no",
-"tranby.no",
-"vossevangen.no",
-"afjord.no",
-"åfjord.no",
-"agdenes.no",
-"al.no",
-"ål.no",
-"alesund.no",
-"ålesund.no",
-"alstahaug.no",
-"alta.no",
-"áltá.no",
-"alaheadju.no",
-"álaheadju.no",
-"alvdal.no",
-"amli.no",
-"åmli.no",
-"amot.no",
-"åmot.no",
-"andebu.no",
-"andoy.no",
-"andøy.no",
-"andasuolo.no",
-"ardal.no",
-"årdal.no",
-"aremark.no",
-"arendal.no",
-"ås.no",
-"aseral.no",
-"åseral.no",
-"asker.no",
-"askim.no",
-"askvoll.no",
-"askoy.no",
-"askøy.no",
-"asnes.no",
-"åsnes.no",
-"audnedaln.no",
-"aukra.no",
-"aure.no",
-"aurland.no",
-"aurskog-holand.no",
-"aurskog-høland.no",
-"austevoll.no",
-"austrheim.no",
-"averoy.no",
-"averøy.no",
-"balestrand.no",
-"ballangen.no",
-"balat.no",
-"bálát.no",
-"balsfjord.no",
-"bahccavuotna.no",
-"báhccavuotna.no",
-"bamble.no",
-"bardu.no",
-"beardu.no",
-"beiarn.no",
-"bajddar.no",
-"bájddar.no",
-"baidar.no",
-"báidár.no",
-"berg.no",
-"bergen.no",
-"berlevag.no",
-"berlevåg.no",
-"bearalvahki.no",
-"bearalváhki.no",
-"bindal.no",
-"birkenes.no",
-"bjarkoy.no",
-"bjarkøy.no",
-"bjerkreim.no",
-"bjugn.no",
-"bodo.no",
-"bodø.no",
-"badaddja.no",
-"bådåddjå.no",
-"budejju.no",
-"bokn.no",
-"bremanger.no",
-"bronnoy.no",
-"brønnøy.no",
-"bygland.no",
-"bykle.no",
-"barum.no",
-"bærum.no",
-"bo.telemark.no",
-"bø.telemark.no",
-"bo.nordland.no",
-"bø.nordland.no",
-"bievat.no",
-"bievát.no",
-"bomlo.no",
-"bømlo.no",
-"batsfjord.no",
-"båtsfjord.no",
-"bahcavuotna.no",
-"báhcavuotna.no",
-"dovre.no",
-"drammen.no",
-"drangedal.no",
-"dyroy.no",
-"dyrøy.no",
-"donna.no",
-"dønna.no",
-"eid.no",
-"eidfjord.no",
-"eidsberg.no",
-"eidskog.no",
-"eidsvoll.no",
-"eigersund.no",
-"elverum.no",
-"enebakk.no",
-"engerdal.no",
-"etne.no",
-"etnedal.no",
-"evenes.no",
-"evenassi.no",
-"evenášši.no",
-"evje-og-hornnes.no",
-"farsund.no",
-"fauske.no",
-"fuossko.no",
-"fuoisku.no",
-"fedje.no",
-"fet.no",
-"finnoy.no",
-"finnøy.no",
-"fitjar.no",
-"fjaler.no",
-"fjell.no",
-"flakstad.no",
-"flatanger.no",
-"flekkefjord.no",
-"flesberg.no",
-"flora.no",
-"fla.no",
-"flå.no",
-"folldal.no",
-"forsand.no",
-"fosnes.no",
-"frei.no",
-"frogn.no",
-"froland.no",
-"frosta.no",
-"frana.no",
-"fræna.no",
-"froya.no",
-"frøya.no",
-"fusa.no",
-"fyresdal.no",
-"forde.no",
-"førde.no",
-"gamvik.no",
-"gangaviika.no",
-"gáŋgaviika.no",
-"gaular.no",
-"gausdal.no",
-"gildeskal.no",
-"gildeskål.no",
-"giske.no",
-"gjemnes.no",
-"gjerdrum.no",
-"gjerstad.no",
-"gjesdal.no",
-"gjovik.no",
-"gjøvik.no",
-"gloppen.no",
-"gol.no",
-"gran.no",
-"grane.no",
-"granvin.no",
-"gratangen.no",
-"grimstad.no",
-"grong.no",
-"kraanghke.no",
-"kråanghke.no",
-"grue.no",
-"gulen.no",
-"hadsel.no",
-"halden.no",
-"halsa.no",
-"hamar.no",
-"hamaroy.no",
-"habmer.no",
-"hábmer.no",
-"hapmir.no",
-"hápmir.no",
-"hammerfest.no",
-"hammarfeasta.no",
-"hámmárfeasta.no",
-"haram.no",
-"hareid.no",
-"harstad.no",
-"hasvik.no",
-"aknoluokta.no",
-"ákŋoluokta.no",
-"hattfjelldal.no",
-"aarborte.no",
-"haugesund.no",
-"hemne.no",
-"hemnes.no",
-"hemsedal.no",
-"heroy.more-og-romsdal.no",
-"herøy.møre-og-romsdal.no",
-"heroy.nordland.no",
-"herøy.nordland.no",
-"hitra.no",
-"hjartdal.no",
-"hjelmeland.no",
-"hobol.no",
-"hobøl.no",
-"hof.no",
-"hol.no",
-"hole.no",
-"holmestrand.no",
-"holtalen.no",
-"holtålen.no",
-"hornindal.no",
-"horten.no",
-"hurdal.no",
-"hurum.no",
-"hvaler.no",
-"hyllestad.no",
-"hagebostad.no",
-"hægebostad.no",
-"hoyanger.no",
-"høyanger.no",
-"hoylandet.no",
-"høylandet.no",
-"ha.no",
-"hå.no",
-"ibestad.no",
-"inderoy.no",
-"inderøy.no",
-"iveland.no",
-"jevnaker.no",
-"jondal.no",
-"jolster.no",
-"jølster.no",
-"karasjok.no",
-"karasjohka.no",
-"kárášjohka.no",
-"karlsoy.no",
-"galsa.no",
-"gálsá.no",
-"karmoy.no",
-"karmøy.no",
-"kautokeino.no",
-"guovdageaidnu.no",
-"klepp.no",
-"klabu.no",
-"klæbu.no",
-"kongsberg.no",
-"kongsvinger.no",
-"kragero.no",
-"kragerø.no",
-"kristiansand.no",
-"kristiansund.no",
-"krodsherad.no",
-"krødsherad.no",
-"kvalsund.no",
-"rahkkeravju.no",
-"ráhkkerávju.no",
-"kvam.no",
-"kvinesdal.no",
-"kvinnherad.no",
-"kviteseid.no",
-"kvitsoy.no",
-"kvitsøy.no",
-"kvafjord.no",
-"kvæfjord.no",
-"giehtavuoatna.no",
-"kvanangen.no",
-"kvænangen.no",
-"navuotna.no",
-"návuotna.no",
-"kafjord.no",
-"kåfjord.no",
-"gaivuotna.no",
-"gáivuotna.no",
-"larvik.no",
-"lavangen.no",
-"lavagis.no",
-"loabat.no",
-"loabát.no",
-"lebesby.no",
-"davvesiida.no",
-"leikanger.no",
-"leirfjord.no",
-"leka.no",
-"leksvik.no",
-"lenvik.no",
-"leangaviika.no",
-"leaŋgaviika.no",
-"lesja.no",
-"levanger.no",
-"lier.no",
-"lierne.no",
-"lillehammer.no",
-"lillesand.no",
-"lindesnes.no",
-"lindas.no",
-"lindås.no",
-"lom.no",
-"loppa.no",
-"lahppi.no",
-"láhppi.no",
-"lund.no",
-"lunner.no",
-"luroy.no",
-"lurøy.no",
-"luster.no",
-"lyngdal.no",
-"lyngen.no",
-"ivgu.no",
-"lardal.no",
-"lerdal.no",
-"lærdal.no",
-"lodingen.no",
-"lødingen.no",
-"lorenskog.no",
-"lørenskog.no",
-"loten.no",
-"løten.no",
-"malvik.no",
-"masoy.no",
-"måsøy.no",
-"muosat.no",
-"muosát.no",
-"mandal.no",
-"marker.no",
-"marnardal.no",
-"masfjorden.no",
-"meland.no",
-"meldal.no",
-"melhus.no",
-"meloy.no",
-"meløy.no",
-"meraker.no",
-"meråker.no",
-"moareke.no",
-"moåreke.no",
-"midsund.no",
-"midtre-gauldal.no",
-"modalen.no",
-"modum.no",
-"molde.no",
-"moskenes.no",
-"moss.no",
-"mosvik.no",
-"malselv.no",
-"målselv.no",
-"malatvuopmi.no",
-"málatvuopmi.no",
-"namdalseid.no",
-"aejrie.no",
-"namsos.no",
-"namsskogan.no",
-"naamesjevuemie.no",
-"nååmesjevuemie.no",
-"laakesvuemie.no",
-"nannestad.no",
-"narvik.no",
-"narviika.no",
-"naustdal.no",
-"nedre-eiker.no",
-"nes.akershus.no",
-"nes.buskerud.no",
-"nesna.no",
-"nesodden.no",
-"nesseby.no",
-"unjarga.no",
-"unjárga.no",
-"nesset.no",
-"nissedal.no",
-"nittedal.no",
-"nord-aurdal.no",
-"nord-fron.no",
-"nord-odal.no",
-"norddal.no",
-"nordkapp.no",
-"davvenjarga.no",
-"davvenjárga.no",
-"nordre-land.no",
-"nordreisa.no",
-"raisa.no",
-"ráisa.no",
-"nore-og-uvdal.no",
-"notodden.no",
-"naroy.no",
-"nærøy.no",
-"notteroy.no",
-"nøtterøy.no",
-"odda.no",
-"oksnes.no",
-"øksnes.no",
-"oppdal.no",
-"oppegard.no",
-"oppegård.no",
-"orkdal.no",
-"orland.no",
-"ørland.no",
-"orskog.no",
-"ørskog.no",
-"orsta.no",
-"ørsta.no",
-"os.hedmark.no",
-"os.hordaland.no",
-"osen.no",
-"osteroy.no",
-"osterøy.no",
-"ostre-toten.no",
-"østre-toten.no",
-"overhalla.no",
-"ovre-eiker.no",
-"øvre-eiker.no",
-"oyer.no",
-"øyer.no",
-"oygarden.no",
-"øygarden.no",
-"oystre-slidre.no",
-"øystre-slidre.no",
-"porsanger.no",
-"porsangu.no",
-"porsáŋgu.no",
-"porsgrunn.no",
-"radoy.no",
-"radøy.no",
-"rakkestad.no",
-"rana.no",
-"ruovat.no",
-"randaberg.no",
-"rauma.no",
-"rendalen.no",
-"rennebu.no",
-"rennesoy.no",
-"rennesøy.no",
-"rindal.no",
-"ringebu.no",
-"ringerike.no",
-"ringsaker.no",
-"rissa.no",
-"risor.no",
-"risør.no",
-"roan.no",
-"rollag.no",
-"rygge.no",
-"ralingen.no",
-"rælingen.no",
-"rodoy.no",
-"rødøy.no",
-"romskog.no",
-"rømskog.no",
-"roros.no",
-"røros.no",
-"rost.no",
-"røst.no",
-"royken.no",
-"røyken.no",
-"royrvik.no",
-"røyrvik.no",
-"rade.no",
-"råde.no",
-"salangen.no",
-"siellak.no",
-"saltdal.no",
-"salat.no",
-"sálát.no",
-"sálat.no",
-"samnanger.no",
-"sande.more-og-romsdal.no",
-"sande.møre-og-romsdal.no",
-"sande.vestfold.no",
-"sandefjord.no",
-"sandnes.no",
-"sandoy.no",
-"sandøy.no",
-"sarpsborg.no",
-"sauda.no",
-"sauherad.no",
-"sel.no",
-"selbu.no",
-"selje.no",
-"seljord.no",
-"sigdal.no",
-"siljan.no",
-"sirdal.no",
-"skaun.no",
-"skedsmo.no",
-"ski.no",
-"skien.no",
-"skiptvet.no",
-"skjervoy.no",
-"skjervøy.no",
-"skierva.no",
-"skiervá.no",
-"skjak.no",
-"skjåk.no",
-"skodje.no",
-"skanland.no",
-"skånland.no",
-"skanit.no",
-"skánit.no",
-"smola.no",
-"smøla.no",
-"snillfjord.no",
-"snasa.no",
-"snåsa.no",
-"snoasa.no",
-"snaase.no",
-"snåase.no",
-"sogndal.no",
-"sokndal.no",
-"sola.no",
-"solund.no",
-"songdalen.no",
-"sortland.no",
-"spydeberg.no",
-"stange.no",
-"stavanger.no",
-"steigen.no",
-"steinkjer.no",
-"stjordal.no",
-"stjørdal.no",
-"stokke.no",
-"stor-elvdal.no",
-"stord.no",
-"stordal.no",
-"storfjord.no",
-"omasvuotna.no",
-"strand.no",
-"stranda.no",
-"stryn.no",
-"sula.no",
-"suldal.no",
-"sund.no",
-"sunndal.no",
-"surnadal.no",
-"sveio.no",
-"svelvik.no",
-"sykkylven.no",
-"sogne.no",
-"søgne.no",
-"somna.no",
-"sømna.no",
-"sondre-land.no",
-"søndre-land.no",
-"sor-aurdal.no",
-"sør-aurdal.no",
-"sor-fron.no",
-"sør-fron.no",
-"sor-odal.no",
-"sør-odal.no",
-"sor-varanger.no",
-"sør-varanger.no",
-"matta-varjjat.no",
-"mátta-várjjat.no",
-"sorfold.no",
-"sørfold.no",
-"sorreisa.no",
-"sørreisa.no",
-"sorum.no",
-"sørum.no",
-"tana.no",
-"deatnu.no",
-"time.no",
-"tingvoll.no",
-"tinn.no",
-"tjeldsund.no",
-"dielddanuorri.no",
-"tjome.no",
-"tjøme.no",
-"tokke.no",
-"tolga.no",
-"torsken.no",
-"tranoy.no",
-"tranøy.no",
-"tromso.no",
-"tromsø.no",
-"tromsa.no",
-"romsa.no",
-"trondheim.no",
-"troandin.no",
-"trysil.no",
-"trana.no",
-"træna.no",
-"trogstad.no",
-"trøgstad.no",
-"tvedestrand.no",
-"tydal.no",
-"tynset.no",
-"tysfjord.no",
-"divtasvuodna.no",
-"divttasvuotna.no",
-"tysnes.no",
-"tysvar.no",
-"tysvær.no",
-"tonsberg.no",
-"tønsberg.no",
-"ullensaker.no",
-"ullensvang.no",
-"ulvik.no",
-"utsira.no",
-"vadso.no",
-"vadsø.no",
-"cahcesuolo.no",
-"čáhcesuolo.no",
-"vaksdal.no",
-"valle.no",
-"vang.no",
-"vanylven.no",
-"vardo.no",
-"vardø.no",
-"varggat.no",
-"várggát.no",
-"vefsn.no",
-"vaapste.no",
-"vega.no",
-"vegarshei.no",
-"vegårshei.no",
-"vennesla.no",
-"verdal.no",
-"verran.no",
-"vestby.no",
-"vestnes.no",
-"vestre-slidre.no",
-"vestre-toten.no",
-"vestvagoy.no",
-"vestvågøy.no",
-"vevelstad.no",
-"vik.no",
-"vikna.no",
-"vindafjord.no",
-"volda.no",
-"voss.no",
-"varoy.no",
-"værøy.no",
-"vagan.no",
-"vågan.no",
-"voagat.no",
-"vagsoy.no",
-"vågsøy.no",
-"vaga.no",
-"vågå.no",
-"valer.ostfold.no",
-"våler.østfold.no",
-"valer.hedmark.no",
-"våler.hedmark.no",
-"*.np",
-"nr",
-"biz.nr",
-"info.nr",
-"gov.nr",
-"edu.nr",
-"org.nr",
-"net.nr",
-"com.nr",
-"nu",
-"nz",
-"ac.nz",
-"co.nz",
-"cri.nz",
-"geek.nz",
-"gen.nz",
-"govt.nz",
-"health.nz",
-"iwi.nz",
-"kiwi.nz",
-"maori.nz",
-"mil.nz",
-"māori.nz",
-"net.nz",
-"org.nz",
-"parliament.nz",
-"school.nz",
-"om",
-"co.om",
-"com.om",
-"edu.om",
-"gov.om",
-"med.om",
-"museum.om",
-"net.om",
-"org.om",
-"pro.om",
-"onion",
-"org",
-"pa",
-"ac.pa",
-"gob.pa",
-"com.pa",
-"org.pa",
-"sld.pa",
-"edu.pa",
-"net.pa",
-"ing.pa",
-"abo.pa",
-"med.pa",
-"nom.pa",
-"pe",
-"edu.pe",
-"gob.pe",
-"nom.pe",
-"mil.pe",
-"org.pe",
-"com.pe",
-"net.pe",
-"pf",
-"com.pf",
-"org.pf",
-"edu.pf",
-"*.pg",
-"ph",
-"com.ph",
-"net.ph",
-"org.ph",
-"gov.ph",
-"edu.ph",
-"ngo.ph",
-"mil.ph",
-"i.ph",
-"pk",
-"com.pk",
-"net.pk",
-"edu.pk",
-"org.pk",
-"fam.pk",
-"biz.pk",
-"web.pk",
-"gov.pk",
-"gob.pk",
-"gok.pk",
-"gon.pk",
-"gop.pk",
-"gos.pk",
-"info.pk",
-"pl",
-"com.pl",
-"net.pl",
-"org.pl",
-"aid.pl",
-"agro.pl",
-"atm.pl",
-"auto.pl",
-"biz.pl",
-"edu.pl",
-"gmina.pl",
-"gsm.pl",
-"info.pl",
-"mail.pl",
-"miasta.pl",
-"media.pl",
-"mil.pl",
-"nieruchomosci.pl",
-"nom.pl",
-"pc.pl",
-"powiat.pl",
-"priv.pl",
-"realestate.pl",
-"rel.pl",
-"sex.pl",
-"shop.pl",
-"sklep.pl",
-"sos.pl",
-"szkola.pl",
-"targi.pl",
-"tm.pl",
-"tourism.pl",
-"travel.pl",
-"turystyka.pl",
-"gov.pl",
-"ap.gov.pl",
-"ic.gov.pl",
-"is.gov.pl",
-"us.gov.pl",
-"kmpsp.gov.pl",
-"kppsp.gov.pl",
-"kwpsp.gov.pl",
-"psp.gov.pl",
-"wskr.gov.pl",
-"kwp.gov.pl",
-"mw.gov.pl",
-"ug.gov.pl",
-"um.gov.pl",
-"umig.gov.pl",
-"ugim.gov.pl",
-"upow.gov.pl",
-"uw.gov.pl",
-"starostwo.gov.pl",
-"pa.gov.pl",
-"po.gov.pl",
-"psse.gov.pl",
-"pup.gov.pl",
-"rzgw.gov.pl",
-"sa.gov.pl",
-"so.gov.pl",
-"sr.gov.pl",
-"wsa.gov.pl",
-"sko.gov.pl",
-"uzs.gov.pl",
-"wiih.gov.pl",
-"winb.gov.pl",
-"pinb.gov.pl",
-"wios.gov.pl",
-"witd.gov.pl",
-"wzmiuw.gov.pl",
-"piw.gov.pl",
-"wiw.gov.pl",
-"griw.gov.pl",
-"wif.gov.pl",
-"oum.gov.pl",
-"sdn.gov.pl",
-"zp.gov.pl",
-"uppo.gov.pl",
-"mup.gov.pl",
-"wuoz.gov.pl",
-"konsulat.gov.pl",
-"oirm.gov.pl",
-"augustow.pl",
-"babia-gora.pl",
-"bedzin.pl",
-"beskidy.pl",
-"bialowieza.pl",
-"bialystok.pl",
-"bielawa.pl",
-"bieszczady.pl",
-"boleslawiec.pl",
-"bydgoszcz.pl",
-"bytom.pl",
-"cieszyn.pl",
-"czeladz.pl",
-"czest.pl",
-"dlugoleka.pl",
-"elblag.pl",
-"elk.pl",
-"glogow.pl",
-"gniezno.pl",
-"gorlice.pl",
-"grajewo.pl",
-"ilawa.pl",
-"jaworzno.pl",
-"jelenia-gora.pl",
-"jgora.pl",
-"kalisz.pl",
-"kazimierz-dolny.pl",
-"karpacz.pl",
-"kartuzy.pl",
-"kaszuby.pl",
-"katowice.pl",
-"kepno.pl",
-"ketrzyn.pl",
-"klodzko.pl",
-"kobierzyce.pl",
-"kolobrzeg.pl",
-"konin.pl",
-"konskowola.pl",
-"kutno.pl",
-"lapy.pl",
-"lebork.pl",
-"legnica.pl",
-"lezajsk.pl",
-"limanowa.pl",
-"lomza.pl",
-"lowicz.pl",
-"lubin.pl",
-"lukow.pl",
-"malbork.pl",
-"malopolska.pl",
-"mazowsze.pl",
-"mazury.pl",
-"mielec.pl",
-"mielno.pl",
-"mragowo.pl",
-"naklo.pl",
-"nowaruda.pl",
-"nysa.pl",
-"olawa.pl",
-"olecko.pl",
-"olkusz.pl",
-"olsztyn.pl",
-"opoczno.pl",
-"opole.pl",
-"ostroda.pl",
-"ostroleka.pl",
-"ostrowiec.pl",
-"ostrowwlkp.pl",
-"pila.pl",
-"pisz.pl",
-"podhale.pl",
-"podlasie.pl",
-"polkowice.pl",
-"pomorze.pl",
-"pomorskie.pl",
-"prochowice.pl",
-"pruszkow.pl",
-"przeworsk.pl",
-"pulawy.pl",
-"radom.pl",
-"rawa-maz.pl",
-"rybnik.pl",
-"rzeszow.pl",
-"sanok.pl",
-"sejny.pl",
-"slask.pl",
-"slupsk.pl",
-"sosnowiec.pl",
-"stalowa-wola.pl",
-"skoczow.pl",
-"starachowice.pl",
-"stargard.pl",
-"suwalki.pl",
-"swidnica.pl",
-"swiebodzin.pl",
-"swinoujscie.pl",
-"szczecin.pl",
-"szczytno.pl",
-"tarnobrzeg.pl",
-"tgory.pl",
-"turek.pl",
-"tychy.pl",
-"ustka.pl",
-"walbrzych.pl",
-"warmia.pl",
-"warszawa.pl",
-"waw.pl",
-"wegrow.pl",
-"wielun.pl",
-"wlocl.pl",
-"wloclawek.pl",
-"wodzislaw.pl",
-"wolomin.pl",
-"wroclaw.pl",
-"zachpomor.pl",
-"zagan.pl",
-"zarow.pl",
-"zgora.pl",
-"zgorzelec.pl",
-"pm",
-"pn",
-"gov.pn",
-"co.pn",
-"org.pn",
-"edu.pn",
-"net.pn",
-"post",
-"pr",
-"com.pr",
-"net.pr",
-"org.pr",
-"gov.pr",
-"edu.pr",
-"isla.pr",
-"pro.pr",
-"biz.pr",
-"info.pr",
-"name.pr",
-"est.pr",
-"prof.pr",
-"ac.pr",
-"pro",
-"aaa.pro",
-"aca.pro",
-"acct.pro",
-"avocat.pro",
-"bar.pro",
-"cpa.pro",
-"eng.pro",
-"jur.pro",
-"law.pro",
-"med.pro",
-"recht.pro",
-"ps",
-"edu.ps",
-"gov.ps",
-"sec.ps",
-"plo.ps",
-"com.ps",
-"org.ps",
-"net.ps",
-"pt",
-"net.pt",
-"gov.pt",
-"org.pt",
-"edu.pt",
-"int.pt",
-"publ.pt",
-"com.pt",
-"nome.pt",
-"pw",
-"co.pw",
-"ne.pw",
-"or.pw",
-"ed.pw",
-"go.pw",
-"belau.pw",
-"py",
-"com.py",
-"coop.py",
-"edu.py",
-"gov.py",
-"mil.py",
-"net.py",
-"org.py",
-"qa",
-"com.qa",
-"edu.qa",
-"gov.qa",
-"mil.qa",
-"name.qa",
-"net.qa",
-"org.qa",
-"sch.qa",
-"re",
-"asso.re",
-"com.re",
-"nom.re",
-"ro",
-"arts.ro",
-"com.ro",
-"firm.ro",
-"info.ro",
-"nom.ro",
-"nt.ro",
-"org.ro",
-"rec.ro",
-"store.ro",
-"tm.ro",
-"www.ro",
-"rs",
-"ac.rs",
-"co.rs",
-"edu.rs",
-"gov.rs",
-"in.rs",
-"org.rs",
-"ru",
-"rw",
-"ac.rw",
-"co.rw",
-"coop.rw",
-"gov.rw",
-"mil.rw",
-"net.rw",
-"org.rw",
-"sa",
-"com.sa",
-"net.sa",
-"org.sa",
-"gov.sa",
-"med.sa",
-"pub.sa",
-"edu.sa",
-"sch.sa",
-"sb",
-"com.sb",
-"edu.sb",
-"gov.sb",
-"net.sb",
-"org.sb",
-"sc",
-"com.sc",
-"gov.sc",
-"net.sc",
-"org.sc",
-"edu.sc",
-"sd",
-"com.sd",
-"net.sd",
-"org.sd",
-"edu.sd",
-"med.sd",
-"tv.sd",
-"gov.sd",
-"info.sd",
-"se",
-"a.se",
-"ac.se",
-"b.se",
-"bd.se",
-"brand.se",
-"c.se",
-"d.se",
-"e.se",
-"f.se",
-"fh.se",
-"fhsk.se",
-"fhv.se",
-"g.se",
-"h.se",
-"i.se",
-"k.se",
-"komforb.se",
-"kommunalforbund.se",
-"komvux.se",
-"l.se",
-"lanbib.se",
-"m.se",
-"n.se",
-"naturbruksgymn.se",
-"o.se",
-"org.se",
-"p.se",
-"parti.se",
-"pp.se",
-"press.se",
-"r.se",
-"s.se",
-"t.se",
-"tm.se",
-"u.se",
-"w.se",
-"x.se",
-"y.se",
-"z.se",
-"sg",
-"com.sg",
-"net.sg",
-"org.sg",
-"gov.sg",
-"edu.sg",
-"per.sg",
-"sh",
-"com.sh",
-"net.sh",
-"gov.sh",
-"org.sh",
-"mil.sh",
-"si",
-"sj",
-"sk",
-"sl",
-"com.sl",
-"net.sl",
-"edu.sl",
-"gov.sl",
-"org.sl",
-"sm",
-"sn",
-"art.sn",
-"com.sn",
-"edu.sn",
-"gouv.sn",
-"org.sn",
-"perso.sn",
-"univ.sn",
-"so",
-"com.so",
-"edu.so",
-"gov.so",
-"me.so",
-"net.so",
-"org.so",
-"sr",
-"ss",
-"biz.ss",
-"com.ss",
-"edu.ss",
-"gov.ss",
-"net.ss",
-"org.ss",
-"st",
-"co.st",
-"com.st",
-"consulado.st",
-"edu.st",
-"embaixada.st",
-"gov.st",
-"mil.st",
-"net.st",
-"org.st",
-"principe.st",
-"saotome.st",
-"store.st",
-"su",
-"sv",
-"com.sv",
-"edu.sv",
-"gob.sv",
-"org.sv",
-"red.sv",
-"sx",
-"gov.sx",
-"sy",
-"edu.sy",
-"gov.sy",
-"net.sy",
-"mil.sy",
-"com.sy",
-"org.sy",
-"sz",
-"co.sz",
-"ac.sz",
-"org.sz",
-"tc",
-"td",
-"tel",
-"tf",
-"tg",
-"th",
-"ac.th",
-"co.th",
-"go.th",
-"in.th",
-"mi.th",
-"net.th",
-"or.th",
-"tj",
-"ac.tj",
-"biz.tj",
-"co.tj",
-"com.tj",
-"edu.tj",
-"go.tj",
-"gov.tj",
-"int.tj",
-"mil.tj",
-"name.tj",
-"net.tj",
-"nic.tj",
-"org.tj",
-"test.tj",
-"web.tj",
-"tk",
-"tl",
-"gov.tl",
-"tm",
-"com.tm",
-"co.tm",
-"org.tm",
-"net.tm",
-"nom.tm",
-"gov.tm",
-"mil.tm",
-"edu.tm",
-"tn",
-"com.tn",
-"ens.tn",
-"fin.tn",
-"gov.tn",
-"ind.tn",
-"intl.tn",
-"nat.tn",
-"net.tn",
-"org.tn",
-"info.tn",
-"perso.tn",
-"tourism.tn",
-"edunet.tn",
-"rnrt.tn",
-"rns.tn",
-"rnu.tn",
-"mincom.tn",
-"agrinet.tn",
-"defense.tn",
-"turen.tn",
-"to",
-"com.to",
-"gov.to",
-"net.to",
-"org.to",
-"edu.to",
-"mil.to",
-"tr",
-"av.tr",
-"bbs.tr",
-"bel.tr",
-"biz.tr",
-"com.tr",
-"dr.tr",
-"edu.tr",
-"gen.tr",
-"gov.tr",
-"info.tr",
-"mil.tr",
-"k12.tr",
-"kep.tr",
-"name.tr",
-"net.tr",
-"org.tr",
-"pol.tr",
-"tel.tr",
-"tsk.tr",
-"tv.tr",
-"web.tr",
-"nc.tr",
-"gov.nc.tr",
-"tt",
-"co.tt",
-"com.tt",
-"org.tt",
-"net.tt",
-"biz.tt",
-"info.tt",
-"pro.tt",
-"int.tt",
-"coop.tt",
-"jobs.tt",
-"mobi.tt",
-"travel.tt",
-"museum.tt",
-"aero.tt",
-"name.tt",
-"gov.tt",
-"edu.tt",
-"tv",
-"tw",
-"edu.tw",
-"gov.tw",
-"mil.tw",
-"com.tw",
-"net.tw",
-"org.tw",
-"idv.tw",
-"game.tw",
-"ebiz.tw",
-"club.tw",
-"網路.tw",
-"組織.tw",
-"商業.tw",
-"tz",
-"ac.tz",
-"co.tz",
-"go.tz",
-"hotel.tz",
-"info.tz",
-"me.tz",
-"mil.tz",
-"mobi.tz",
-"ne.tz",
-"or.tz",
-"sc.tz",
-"tv.tz",
-"ua",
-"com.ua",
-"edu.ua",
-"gov.ua",
-"in.ua",
-"net.ua",
-"org.ua",
-"cherkassy.ua",
-"cherkasy.ua",
-"chernigov.ua",
-"chernihiv.ua",
-"chernivtsi.ua",
-"chernovtsy.ua",
-"ck.ua",
-"cn.ua",
-"cr.ua",
-"crimea.ua",
-"cv.ua",
-"dn.ua",
-"dnepropetrovsk.ua",
-"dnipropetrovsk.ua",
-"dominic.ua",
-"donetsk.ua",
-"dp.ua",
-"if.ua",
-"ivano-frankivsk.ua",
-"kh.ua",
-"kharkiv.ua",
-"kharkov.ua",
-"kherson.ua",
-"khmelnitskiy.ua",
-"khmelnytskyi.ua",
-"kiev.ua",
-"kirovograd.ua",
-"km.ua",
-"kr.ua",
-"krym.ua",
-"ks.ua",
-"kv.ua",
-"kyiv.ua",
-"lg.ua",
-"lt.ua",
-"lugansk.ua",
-"lutsk.ua",
-"lv.ua",
-"lviv.ua",
-"mk.ua",
-"mykolaiv.ua",
-"nikolaev.ua",
-"od.ua",
-"odesa.ua",
-"odessa.ua",
-"pl.ua",
-"poltava.ua",
-"rivne.ua",
-"rovno.ua",
-"rv.ua",
-"sb.ua",
-"sebastopol.ua",
-"sevastopol.ua",
-"sm.ua",
-"sumy.ua",
-"te.ua",
-"ternopil.ua",
-"uz.ua",
-"uzhgorod.ua",
-"vinnica.ua",
-"vinnytsia.ua",
-"vn.ua",
-"volyn.ua",
-"yalta.ua",
-"zaporizhzhe.ua",
-"zaporizhzhia.ua",
-"zhitomir.ua",
-"zhytomyr.ua",
-"zp.ua",
-"zt.ua",
-"ug",
-"co.ug",
-"or.ug",
-"ac.ug",
-"sc.ug",
-"go.ug",
-"ne.ug",
-"com.ug",
-"org.ug",
-"uk",
-"ac.uk",
-"co.uk",
-"gov.uk",
-"ltd.uk",
-"me.uk",
-"net.uk",
-"nhs.uk",
-"org.uk",
-"plc.uk",
-"police.uk",
-"*.sch.uk",
-"us",
-"dni.us",
-"fed.us",
-"isa.us",
-"kids.us",
-"nsn.us",
-"ak.us",
-"al.us",
-"ar.us",
-"as.us",
-"az.us",
-"ca.us",
-"co.us",
-"ct.us",
-"dc.us",
-"de.us",
-"fl.us",
-"ga.us",
-"gu.us",
-"hi.us",
-"ia.us",
-"id.us",
-"il.us",
-"in.us",
-"ks.us",
-"ky.us",
-"la.us",
-"ma.us",
-"md.us",
-"me.us",
-"mi.us",
-"mn.us",
-"mo.us",
-"ms.us",
-"mt.us",
-"nc.us",
-"nd.us",
-"ne.us",
-"nh.us",
-"nj.us",
-"nm.us",
-"nv.us",
-"ny.us",
-"oh.us",
-"ok.us",
-"or.us",
-"pa.us",
-"pr.us",
-"ri.us",
-"sc.us",
-"sd.us",
-"tn.us",
-"tx.us",
-"ut.us",
-"vi.us",
-"vt.us",
-"va.us",
-"wa.us",
-"wi.us",
-"wv.us",
-"wy.us",
-"k12.ak.us",
-"k12.al.us",
-"k12.ar.us",
-"k12.as.us",
-"k12.az.us",
-"k12.ca.us",
-"k12.co.us",
-"k12.ct.us",
-"k12.dc.us",
-"k12.de.us",
-"k12.fl.us",
-"k12.ga.us",
-"k12.gu.us",
-"k12.ia.us",
-"k12.id.us",
-"k12.il.us",
-"k12.in.us",
-"k12.ks.us",
-"k12.ky.us",
-"k12.la.us",
-"k12.ma.us",
-"k12.md.us",
-"k12.me.us",
-"k12.mi.us",
-"k12.mn.us",
-"k12.mo.us",
-"k12.ms.us",
-"k12.mt.us",
-"k12.nc.us",
-"k12.ne.us",
-"k12.nh.us",
-"k12.nj.us",
-"k12.nm.us",
-"k12.nv.us",
-"k12.ny.us",
-"k12.oh.us",
-"k12.ok.us",
-"k12.or.us",
-"k12.pa.us",
-"k12.pr.us",
-"k12.ri.us",
-"k12.sc.us",
-"k12.tn.us",
-"k12.tx.us",
-"k12.ut.us",
-"k12.vi.us",
-"k12.vt.us",
-"k12.va.us",
-"k12.wa.us",
-"k12.wi.us",
-"k12.wy.us",
-"cc.ak.us",
-"cc.al.us",
-"cc.ar.us",
-"cc.as.us",
-"cc.az.us",
-"cc.ca.us",
-"cc.co.us",
-"cc.ct.us",
-"cc.dc.us",
-"cc.de.us",
-"cc.fl.us",
-"cc.ga.us",
-"cc.gu.us",
-"cc.hi.us",
-"cc.ia.us",
-"cc.id.us",
-"cc.il.us",
-"cc.in.us",
-"cc.ks.us",
-"cc.ky.us",
-"cc.la.us",
-"cc.ma.us",
-"cc.md.us",
-"cc.me.us",
-"cc.mi.us",
-"cc.mn.us",
-"cc.mo.us",
-"cc.ms.us",
-"cc.mt.us",
-"cc.nc.us",
-"cc.nd.us",
-"cc.ne.us",
-"cc.nh.us",
-"cc.nj.us",
-"cc.nm.us",
-"cc.nv.us",
-"cc.ny.us",
-"cc.oh.us",
-"cc.ok.us",
-"cc.or.us",
-"cc.pa.us",
-"cc.pr.us",
-"cc.ri.us",
-"cc.sc.us",
-"cc.sd.us",
-"cc.tn.us",
-"cc.tx.us",
-"cc.ut.us",
-"cc.vi.us",
-"cc.vt.us",
-"cc.va.us",
-"cc.wa.us",
-"cc.wi.us",
-"cc.wv.us",
-"cc.wy.us",
-"lib.ak.us",
-"lib.al.us",
-"lib.ar.us",
-"lib.as.us",
-"lib.az.us",
-"lib.ca.us",
-"lib.co.us",
-"lib.ct.us",
-"lib.dc.us",
-"lib.fl.us",
-"lib.ga.us",
-"lib.gu.us",
-"lib.hi.us",
-"lib.ia.us",
-"lib.id.us",
-"lib.il.us",
-"lib.in.us",
-"lib.ks.us",
-"lib.ky.us",
-"lib.la.us",
-"lib.ma.us",
-"lib.md.us",
-"lib.me.us",
-"lib.mi.us",
-"lib.mn.us",
-"lib.mo.us",
-"lib.ms.us",
-"lib.mt.us",
-"lib.nc.us",
-"lib.nd.us",
-"lib.ne.us",
-"lib.nh.us",
-"lib.nj.us",
-"lib.nm.us",
-"lib.nv.us",
-"lib.ny.us",
-"lib.oh.us",
-"lib.ok.us",
-"lib.or.us",
-"lib.pa.us",
-"lib.pr.us",
-"lib.ri.us",
-"lib.sc.us",
-"lib.sd.us",
-"lib.tn.us",
-"lib.tx.us",
-"lib.ut.us",
-"lib.vi.us",
-"lib.vt.us",
-"lib.va.us",
-"lib.wa.us",
-"lib.wi.us",
-"lib.wy.us",
-"pvt.k12.ma.us",
-"chtr.k12.ma.us",
-"paroch.k12.ma.us",
-"ann-arbor.mi.us",
-"cog.mi.us",
-"dst.mi.us",
-"eaton.mi.us",
-"gen.mi.us",
-"mus.mi.us",
-"tec.mi.us",
-"washtenaw.mi.us",
-"uy",
-"com.uy",
-"edu.uy",
-"gub.uy",
-"mil.uy",
-"net.uy",
-"org.uy",
-"uz",
-"co.uz",
-"com.uz",
-"net.uz",
-"org.uz",
-"va",
-"vc",
-"com.vc",
-"net.vc",
-"org.vc",
-"gov.vc",
-"mil.vc",
-"edu.vc",
-"ve",
-"arts.ve",
-"co.ve",
-"com.ve",
-"e12.ve",
-"edu.ve",
-"firm.ve",
-"gob.ve",
-"gov.ve",
-"info.ve",
-"int.ve",
-"mil.ve",
-"net.ve",
-"org.ve",
-"rec.ve",
-"store.ve",
-"tec.ve",
-"web.ve",
-"vg",
-"vi",
-"co.vi",
-"com.vi",
-"k12.vi",
-"net.vi",
-"org.vi",
-"vn",
-"com.vn",
-"net.vn",
-"org.vn",
-"edu.vn",
-"gov.vn",
-"int.vn",
-"ac.vn",
-"biz.vn",
-"info.vn",
-"name.vn",
-"pro.vn",
-"health.vn",
-"vu",
-"com.vu",
-"edu.vu",
-"net.vu",
-"org.vu",
-"wf",
-"ws",
-"com.ws",
-"net.ws",
-"org.ws",
-"gov.ws",
-"edu.ws",
-"yt",
-"امارات",
-"հայ",
-"বাংলা",
-"бг",
-"бел",
-"中国",
-"中國",
-"الجزائر",
-"مصر",
-"ею",
-"ευ",
-"موريتانيا",
-"გე",
-"ελ",
-"香港",
-"公司.香港",
-"教育.香港",
-"政府.香港",
-"個人.香港",
-"網絡.香港",
-"組織.香港",
-"ಭಾರತ",
-"ଭାରତ",
-"ভাৰত",
-"भारतम्",
-"भारोत",
-"ڀارت",
-"ഭാരതം",
-"भारत",
-"بارت",
-"بھارت",
-"భారత్",
-"ભારત",
-"ਭਾਰਤ",
-"ভারত",
-"இந்தியா",
-"ایران",
-"ايران",
-"عراق",
-"الاردن",
-"한국",
-"қаз",
-"ලංකා",
-"இலங்கை",
-"المغرب",
-"мкд",
-"мон",
-"澳門",
-"澳门",
-"مليسيا",
-"عمان",
-"پاکستان",
-"پاكستان",
-"فلسطين",
-"срб",
-"пр.срб",
-"орг.срб",
-"обр.срб",
-"од.срб",
-"упр.срб",
-"ак.срб",
-"рф",
-"قطر",
-"السعودية",
-"السعودیة",
-"السعودیۃ",
-"السعوديه",
-"سودان",
-"新加坡",
-"சிங்கப்பூர்",
-"سورية",
-"سوريا",
-"ไทย",
-"ศึกษา.ไทย",
-"ธุรกิจ.ไทย",
-"รัฐบาล.ไทย",
-"ทหาร.ไทย",
-"เน็ต.ไทย",
-"องค์กร.ไทย",
-"تونس",
-"台灣",
-"台湾",
-"臺灣",
-"укр",
-"اليمن",
-"xxx",
-"*.ye",
-"ac.za",
-"agric.za",
-"alt.za",
-"co.za",
-"edu.za",
-"gov.za",
-"grondar.za",
-"law.za",
-"mil.za",
-"net.za",
-"ngo.za",
-"nic.za",
-"nis.za",
-"nom.za",
-"org.za",
-"school.za",
-"tm.za",
-"web.za",
-"zm",
-"ac.zm",
-"biz.zm",
-"co.zm",
-"com.zm",
-"edu.zm",
-"gov.zm",
-"info.zm",
-"mil.zm",
-"net.zm",
-"org.zm",
-"sch.zm",
-"zw",
-"ac.zw",
-"co.zw",
-"gov.zw",
-"mil.zw",
-"org.zw",
-"aaa",
-"aarp",
-"abarth",
-"abb",
-"abbott",
-"abbvie",
-"abc",
-"able",
-"abogado",
-"abudhabi",
-"academy",
-"accenture",
-"accountant",
-"accountants",
-"aco",
-"actor",
-"adac",
-"ads",
-"adult",
-"aeg",
-"aetna",
-"afamilycompany",
-"afl",
-"africa",
-"agakhan",
-"agency",
-"aig",
-"aigo",
-"airbus",
-"airforce",
-"airtel",
-"akdn",
-"alfaromeo",
-"alibaba",
-"alipay",
-"allfinanz",
-"allstate",
-"ally",
-"alsace",
-"alstom",
-"amazon",
-"americanexpress",
-"americanfamily",
-"amex",
-"amfam",
-"amica",
-"amsterdam",
-"analytics",
-"android",
-"anquan",
-"anz",
-"aol",
-"apartments",
-"app",
-"apple",
-"aquarelle",
-"arab",
-"aramco",
-"archi",
-"army",
-"art",
-"arte",
-"asda",
-"associates",
-"athleta",
-"attorney",
-"auction",
-"audi",
-"audible",
-"audio",
-"auspost",
-"author",
-"auto",
-"autos",
-"avianca",
-"aws",
-"axa",
-"azure",
-"baby",
-"baidu",
-"banamex",
-"bananarepublic",
-"band",
-"bank",
-"bar",
-"barcelona",
-"barclaycard",
-"barclays",
-"barefoot",
-"bargains",
-"baseball",
-"basketball",
-"bauhaus",
-"bayern",
-"bbc",
-"bbt",
-"bbva",
-"bcg",
-"bcn",
-"beats",
-"beauty",
-"beer",
-"bentley",
-"berlin",
-"best",
-"bestbuy",
-"bet",
-"bharti",
-"bible",
-"bid",
-"bike",
-"bing",
-"bingo",
-"bio",
-"black",
-"blackfriday",
-"blockbuster",
-"blog",
-"bloomberg",
-"blue",
-"bms",
-"bmw",
-"bnpparibas",
-"boats",
-"boehringer",
-"bofa",
-"bom",
-"bond",
-"boo",
-"book",
-"booking",
-"bosch",
-"bostik",
-"boston",
-"bot",
-"boutique",
-"box",
-"bradesco",
-"bridgestone",
-"broadway",
-"broker",
-"brother",
-"brussels",
-"budapest",
-"bugatti",
-"build",
-"builders",
-"business",
-"buy",
-"buzz",
-"bzh",
-"cab",
-"cafe",
-"cal",
-"call",
-"calvinklein",
-"cam",
-"camera",
-"camp",
-"cancerresearch",
-"canon",
-"capetown",
-"capital",
-"capitalone",
-"car",
-"caravan",
-"cards",
-"care",
-"career",
-"careers",
-"cars",
-"casa",
-"case",
-"caseih",
-"cash",
-"casino",
-"catering",
-"catholic",
-"cba",
-"cbn",
-"cbre",
-"cbs",
-"ceb",
-"center",
-"ceo",
-"cern",
-"cfa",
-"cfd",
-"chanel",
-"channel",
-"charity",
-"chase",
-"chat",
-"cheap",
-"chintai",
-"christmas",
-"chrome",
-"church",
-"cipriani",
-"circle",
-"cisco",
-"citadel",
-"citi",
-"citic",
-"city",
-"cityeats",
-"claims",
-"cleaning",
-"click",
-"clinic",
-"clinique",
-"clothing",
-"cloud",
-"club",
-"clubmed",
-"coach",
-"codes",
-"coffee",
-"college",
-"cologne",
-"comcast",
-"commbank",
-"community",
-"company",
-"compare",
-"computer",
-"comsec",
-"condos",
-"construction",
-"consulting",
-"contact",
-"contractors",
-"cooking",
-"cookingchannel",
-"cool",
-"corsica",
-"country",
-"coupon",
-"coupons",
-"courses",
-"cpa",
-"credit",
-"creditcard",
-"creditunion",
-"cricket",
-"crown",
-"crs",
-"cruise",
-"cruises",
-"csc",
-"cuisinella",
-"cymru",
-"cyou",
-"dabur",
-"dad",
-"dance",
-"data",
-"date",
-"dating",
-"datsun",
-"day",
-"dclk",
-"dds",
-"deal",
-"dealer",
-"deals",
-"degree",
-"delivery",
-"dell",
-"deloitte",
-"delta",
-"democrat",
-"dental",
-"dentist",
-"desi",
-"design",
-"dev",
-"dhl",
-"diamonds",
-"diet",
-"digital",
-"direct",
-"directory",
-"discount",
-"discover",
-"dish",
-"diy",
-"dnp",
-"docs",
-"doctor",
-"dog",
-"domains",
-"dot",
-"download",
-"drive",
-"dtv",
-"dubai",
-"duck",
-"dunlop",
-"dupont",
-"durban",
-"dvag",
-"dvr",
-"earth",
-"eat",
-"eco",
-"edeka",
-"education",
-"email",
-"emerck",
-"energy",
-"engineer",
-"engineering",
-"enterprises",
-"epson",
-"equipment",
-"ericsson",
-"erni",
-"esq",
-"estate",
-"esurance",
-"etisalat",
-"eurovision",
-"eus",
-"events",
-"exchange",
-"expert",
-"exposed",
-"express",
-"extraspace",
-"fage",
-"fail",
-"fairwinds",
-"faith",
-"family",
-"fan",
-"fans",
-"farm",
-"farmers",
-"fashion",
-"fast",
-"fedex",
-"feedback",
-"ferrari",
-"ferrero",
-"fiat",
-"fidelity",
-"fido",
-"film",
-"final",
-"finance",
-"financial",
-"fire",
-"firestone",
-"firmdale",
-"fish",
-"fishing",
-"fit",
-"fitness",
-"flickr",
-"flights",
-"flir",
-"florist",
-"flowers",
-"fly",
-"foo",
-"food",
-"foodnetwork",
-"football",
-"ford",
-"forex",
-"forsale",
-"forum",
-"foundation",
-"fox",
-"free",
-"fresenius",
-"frl",
-"frogans",
-"frontdoor",
-"frontier",
-"ftr",
-"fujitsu",
-"fujixerox",
-"fun",
-"fund",
-"furniture",
-"futbol",
-"fyi",
-"gal",
-"gallery",
-"gallo",
-"gallup",
-"game",
-"games",
-"gap",
-"garden",
-"gay",
-"gbiz",
-"gdn",
-"gea",
-"gent",
-"genting",
-"george",
-"ggee",
-"gift",
-"gifts",
-"gives",
-"giving",
-"glade",
-"glass",
-"gle",
-"global",
-"globo",
-"gmail",
-"gmbh",
-"gmo",
-"gmx",
-"godaddy",
-"gold",
-"goldpoint",
-"golf",
-"goo",
-"goodyear",
-"goog",
-"google",
-"gop",
-"got",
-"grainger",
-"graphics",
-"gratis",
-"green",
-"gripe",
-"grocery",
-"group",
-"guardian",
-"gucci",
-"guge",
-"guide",
-"guitars",
-"guru",
-"hair",
-"hamburg",
-"hangout",
-"haus",
-"hbo",
-"hdfc",
-"hdfcbank",
-"health",
-"healthcare",
-"help",
-"helsinki",
-"here",
-"hermes",
-"hgtv",
-"hiphop",
-"hisamitsu",
-"hitachi",
-"hiv",
-"hkt",
-"hockey",
-"holdings",
-"holiday",
-"homedepot",
-"homegoods",
-"homes",
-"homesense",
-"honda",
-"horse",
-"hospital",
-"host",
-"hosting",
-"hot",
-"hoteles",
-"hotels",
-"hotmail",
-"house",
-"how",
-"hsbc",
-"hughes",
-"hyatt",
-"hyundai",
-"ibm",
-"icbc",
-"ice",
-"icu",
-"ieee",
-"ifm",
-"ikano",
-"imamat",
-"imdb",
-"immo",
-"immobilien",
-"inc",
-"industries",
-"infiniti",
-"ing",
-"ink",
-"institute",
-"insurance",
-"insure",
-"intel",
-"international",
-"intuit",
-"investments",
-"ipiranga",
-"irish",
-"ismaili",
-"ist",
-"istanbul",
-"itau",
-"itv",
-"iveco",
-"jaguar",
-"java",
-"jcb",
-"jcp",
-"jeep",
-"jetzt",
-"jewelry",
-"jio",
-"jll",
-"jmp",
-"jnj",
-"joburg",
-"jot",
-"joy",
-"jpmorgan",
-"jprs",
-"juegos",
-"juniper",
-"kaufen",
-"kddi",
-"kerryhotels",
-"kerrylogistics",
-"kerryproperties",
-"kfh",
-"kia",
-"kim",
-"kinder",
-"kindle",
-"kitchen",
-"kiwi",
-"koeln",
-"komatsu",
-"kosher",
-"kpmg",
-"kpn",
-"krd",
-"kred",
-"kuokgroup",
-"kyoto",
-"lacaixa",
-"lamborghini",
-"lamer",
-"lancaster",
-"lancia",
-"land",
-"landrover",
-"lanxess",
-"lasalle",
-"lat",
-"latino",
-"latrobe",
-"law",
-"lawyer",
-"lds",
-"lease",
-"leclerc",
-"lefrak",
-"legal",
-"lego",
-"lexus",
-"lgbt",
-"lidl",
-"life",
-"lifeinsurance",
-"lifestyle",
-"lighting",
-"like",
-"lilly",
-"limited",
-"limo",
-"lincoln",
-"linde",
-"link",
-"lipsy",
-"live",
-"living",
-"lixil",
-"llc",
-"llp",
-"loan",
-"loans",
-"locker",
-"locus",
-"loft",
-"lol",
-"london",
-"lotte",
-"lotto",
-"love",
-"lpl",
-"lplfinancial",
-"ltd",
-"ltda",
-"lundbeck",
-"lupin",
-"luxe",
-"luxury",
-"macys",
-"madrid",
-"maif",
-"maison",
-"makeup",
-"man",
-"management",
-"mango",
-"map",
-"market",
-"marketing",
-"markets",
-"marriott",
-"marshalls",
-"maserati",
-"mattel",
-"mba",
-"mckinsey",
-"med",
-"media",
-"meet",
-"melbourne",
-"meme",
-"memorial",
-"men",
-"menu",
-"merckmsd",
-"metlife",
-"miami",
-"microsoft",
-"mini",
-"mint",
-"mit",
-"mitsubishi",
-"mlb",
-"mls",
-"mma",
-"mobile",
-"moda",
-"moe",
-"moi",
-"mom",
-"monash",
-"money",
-"monster",
-"mormon",
-"mortgage",
-"moscow",
-"moto",
-"motorcycles",
-"mov",
-"movie",
-"msd",
-"mtn",
-"mtr",
-"mutual",
-"nab",
-"nadex",
-"nagoya",
-"nationwide",
-"natura",
-"navy",
-"nba",
-"nec",
-"netbank",
-"netflix",
-"network",
-"neustar",
-"new",
-"newholland",
-"news",
-"next",
-"nextdirect",
-"nexus",
-"nfl",
-"ngo",
-"nhk",
-"nico",
-"nike",
-"nikon",
-"ninja",
-"nissan",
-"nissay",
-"nokia",
-"northwesternmutual",
-"norton",
-"now",
-"nowruz",
-"nowtv",
-"nra",
-"nrw",
-"ntt",
-"nyc",
-"obi",
-"observer",
-"off",
-"office",
-"okinawa",
-"olayan",
-"olayangroup",
-"oldnavy",
-"ollo",
-"omega",
-"one",
-"ong",
-"onl",
-"online",
-"onyourside",
-"ooo",
-"open",
-"oracle",
-"orange",
-"organic",
-"origins",
-"osaka",
-"otsuka",
-"ott",
-"ovh",
-"page",
-"panasonic",
-"paris",
-"pars",
-"partners",
-"parts",
-"party",
-"passagens",
-"pay",
-"pccw",
-"pet",
-"pfizer",
-"pharmacy",
-"phd",
-"philips",
-"phone",
-"photo",
-"photography",
-"photos",
-"physio",
-"pics",
-"pictet",
-"pictures",
-"pid",
-"pin",
-"ping",
-"pink",
-"pioneer",
-"pizza",
-"place",
-"play",
-"playstation",
-"plumbing",
-"plus",
-"pnc",
-"pohl",
-"poker",
-"politie",
-"porn",
-"pramerica",
-"praxi",
-"press",
-"prime",
-"prod",
-"productions",
-"prof",
-"progressive",
-"promo",
-"properties",
-"property",
-"protection",
-"pru",
-"prudential",
-"pub",
-"pwc",
-"qpon",
-"quebec",
-"quest",
-"qvc",
-"racing",
-"radio",
-"raid",
-"read",
-"realestate",
-"realtor",
-"realty",
-"recipes",
-"red",
-"redstone",
-"redumbrella",
-"rehab",
-"reise",
-"reisen",
-"reit",
-"reliance",
-"ren",
-"rent",
-"rentals",
-"repair",
-"report",
-"republican",
-"rest",
-"restaurant",
-"review",
-"reviews",
-"rexroth",
-"rich",
-"richardli",
-"ricoh",
-"rightathome",
-"ril",
-"rio",
-"rip",
-"rmit",
-"rocher",
-"rocks",
-"rodeo",
-"rogers",
-"room",
-"rsvp",
-"rugby",
-"ruhr",
-"run",
-"rwe",
-"ryukyu",
-"saarland",
-"safe",
-"safety",
-"sakura",
-"sale",
-"salon",
-"samsclub",
-"samsung",
-"sandvik",
-"sandvikcoromant",
-"sanofi",
-"sap",
-"sarl",
-"sas",
-"save",
-"saxo",
-"sbi",
-"sbs",
-"sca",
-"scb",
-"schaeffler",
-"schmidt",
-"scholarships",
-"school",
-"schule",
-"schwarz",
-"science",
-"scjohnson",
-"scor",
-"scot",
-"search",
-"seat",
-"secure",
-"security",
-"seek",
-"select",
-"sener",
-"services",
-"ses",
-"seven",
-"sew",
-"sex",
-"sexy",
-"sfr",
-"shangrila",
-"sharp",
-"shaw",
-"shell",
-"shia",
-"shiksha",
-"shoes",
-"shop",
-"shopping",
-"shouji",
-"show",
-"showtime",
-"shriram",
-"silk",
-"sina",
-"singles",
-"site",
-"ski",
-"skin",
-"sky",
-"skype",
-"sling",
-"smart",
-"smile",
-"sncf",
-"soccer",
-"social",
-"softbank",
-"software",
-"sohu",
-"solar",
-"solutions",
-"song",
-"sony",
-"soy",
-"spa",
-"space",
-"sport",
-"spot",
-"spreadbetting",
-"srl",
-"stada",
-"staples",
-"star",
-"statebank",
-"statefarm",
-"stc",
-"stcgroup",
-"stockholm",
-"storage",
-"store",
-"stream",
-"studio",
-"study",
-"style",
-"sucks",
-"supplies",
-"supply",
-"support",
-"surf",
-"surgery",
-"suzuki",
-"swatch",
-"swiftcover",
-"swiss",
-"sydney",
-"symantec",
-"systems",
-"tab",
-"taipei",
-"talk",
-"taobao",
-"target",
-"tatamotors",
-"tatar",
-"tattoo",
-"tax",
-"taxi",
-"tci",
-"tdk",
-"team",
-"tech",
-"technology",
-"temasek",
-"tennis",
-"teva",
-"thd",
-"theater",
-"theatre",
-"tiaa",
-"tickets",
-"tienda",
-"tiffany",
-"tips",
-"tires",
-"tirol",
-"tjmaxx",
-"tjx",
-"tkmaxx",
-"tmall",
-"today",
-"tokyo",
-"tools",
-"top",
-"toray",
-"toshiba",
-"total",
-"tours",
-"town",
-"toyota",
-"toys",
-"trade",
-"trading",
-"training",
-"travel",
-"travelchannel",
-"travelers",
-"travelersinsurance",
-"trust",
-"trv",
-"tube",
-"tui",
-"tunes",
-"tushu",
-"tvs",
-"ubank",
-"ubs",
-"unicom",
-"university",
-"uno",
-"uol",
-"ups",
-"vacations",
-"vana",
-"vanguard",
-"vegas",
-"ventures",
-"verisign",
-"versicherung",
-"vet",
-"viajes",
-"video",
-"vig",
-"viking",
-"villas",
-"vin",
-"vip",
-"virgin",
-"visa",
-"vision",
-"viva",
-"vivo",
-"vlaanderen",
-"vodka",
-"volkswagen",
-"volvo",
-"vote",
-"voting",
-"voto",
-"voyage",
-"vuelos",
-"wales",
-"walmart",
-"walter",
-"wang",
-"wanggou",
-"watch",
-"watches",
-"weather",
-"weatherchannel",
-"webcam",
-"weber",
-"website",
-"wed",
-"wedding",
-"weibo",
-"weir",
-"whoswho",
-"wien",
-"wiki",
-"williamhill",
-"win",
-"windows",
-"wine",
-"winners",
-"wme",
-"wolterskluwer",
-"woodside",
-"work",
-"works",
-"world",
-"wow",
-"wtc",
-"wtf",
-"xbox",
-"xerox",
-"xfinity",
-"xihuan",
-"xin",
-"कॉम",
-"セール",
-"佛山",
-"慈善",
-"集团",
-"在线",
-"大众汽车",
-"点看",
-"คอม",
-"八卦",
-"موقع",
-"公益",
-"公司",
-"香格里拉",
-"网站",
-"移动",
-"我爱你",
-"москва",
-"католик",
-"онлайн",
-"сайт",
-"联通",
-"קום",
-"时尚",
-"微博",
-"淡马锡",
-"ファッション",
-"орг",
-"नेट",
-"ストア",
-"アマゾン",
-"삼성",
-"商标",
-"商店",
-"商城",
-"дети",
-"ポイント",
-"新闻",
-"工行",
-"家電",
-"كوم",
-"中文网",
-"中信",
-"娱乐",
-"谷歌",
-"電訊盈科",
-"购物",
-"クラウド",
-"通販",
-"网店",
-"संगठन",
-"餐厅",
-"网络",
-"ком",
-"亚马逊",
-"诺基亚",
-"食品",
-"飞利浦",
-"手表",
-"手机",
-"ارامكو",
-"العليان",
-"اتصالات",
-"بازار",
-"ابوظبي",
-"كاثوليك",
-"همراه",
-"닷컴",
-"政府",
-"شبكة",
-"بيتك",
-"عرب",
-"机构",
-"组织机构",
-"健康",
-"招聘",
-"рус",
-"珠宝",
-"大拿",
-"みんな",
-"グーグル",
-"世界",
-"書籍",
-"网址",
-"닷넷",
-"コム",
-"天主教",
-"游戏",
-"vermögensberater",
-"vermögensberatung",
-"企业",
-"信息",
-"嘉里大酒店",
-"嘉里",
-"广东",
-"政务",
-"xyz",
-"yachts",
-"yahoo",
-"yamaxun",
-"yandex",
-"yodobashi",
-"yoga",
-"yokohama",
-"you",
-"youtube",
-"yun",
-"zappos",
-"zara",
-"zero",
-"zip",
-"zone",
-"zuerich",
-"cc.ua",
-"inf.ua",
-"ltd.ua",
-"adobeaemcloud.com",
-"adobeaemcloud.net",
-"*.dev.adobeaemcloud.com",
-"beep.pl",
-"barsy.ca",
-"*.compute.estate",
-"*.alces.network",
-"altervista.org",
-"alwaysdata.net",
-"cloudfront.net",
-"*.compute.amazonaws.com",
-"*.compute-1.amazonaws.com",
-"*.compute.amazonaws.com.cn",
-"us-east-1.amazonaws.com",
-"cn-north-1.eb.amazonaws.com.cn",
-"cn-northwest-1.eb.amazonaws.com.cn",
-"elasticbeanstalk.com",
-"ap-northeast-1.elasticbeanstalk.com",
-"ap-northeast-2.elasticbeanstalk.com",
-"ap-northeast-3.elasticbeanstalk.com",
-"ap-south-1.elasticbeanstalk.com",
-"ap-southeast-1.elasticbeanstalk.com",
-"ap-southeast-2.elasticbeanstalk.com",
-"ca-central-1.elasticbeanstalk.com",
-"eu-central-1.elasticbeanstalk.com",
-"eu-west-1.elasticbeanstalk.com",
-"eu-west-2.elasticbeanstalk.com",
-"eu-west-3.elasticbeanstalk.com",
-"sa-east-1.elasticbeanstalk.com",
-"us-east-1.elasticbeanstalk.com",
-"us-east-2.elasticbeanstalk.com",
-"us-gov-west-1.elasticbeanstalk.com",
-"us-west-1.elasticbeanstalk.com",
-"us-west-2.elasticbeanstalk.com",
-"*.elb.amazonaws.com",
-"*.elb.amazonaws.com.cn",
-"s3.amazonaws.com",
-"s3-ap-northeast-1.amazonaws.com",
-"s3-ap-northeast-2.amazonaws.com",
-"s3-ap-south-1.amazonaws.com",
-"s3-ap-southeast-1.amazonaws.com",
-"s3-ap-southeast-2.amazonaws.com",
-"s3-ca-central-1.amazonaws.com",
-"s3-eu-central-1.amazonaws.com",
-"s3-eu-west-1.amazonaws.com",
-"s3-eu-west-2.amazonaws.com",
-"s3-eu-west-3.amazonaws.com",
-"s3-external-1.amazonaws.com",
-"s3-fips-us-gov-west-1.amazonaws.com",
-"s3-sa-east-1.amazonaws.com",
-"s3-us-gov-west-1.amazonaws.com",
-"s3-us-east-2.amazonaws.com",
-"s3-us-west-1.amazonaws.com",
-"s3-us-west-2.amazonaws.com",
-"s3.ap-northeast-2.amazonaws.com",
-"s3.ap-south-1.amazonaws.com",
-"s3.cn-north-1.amazonaws.com.cn",
-"s3.ca-central-1.amazonaws.com",
-"s3.eu-central-1.amazonaws.com",
-"s3.eu-west-2.amazonaws.com",
-"s3.eu-west-3.amazonaws.com",
-"s3.us-east-2.amazonaws.com",
-"s3.dualstack.ap-northeast-1.amazonaws.com",
-"s3.dualstack.ap-northeast-2.amazonaws.com",
-"s3.dualstack.ap-south-1.amazonaws.com",
-"s3.dualstack.ap-southeast-1.amazonaws.com",
-"s3.dualstack.ap-southeast-2.amazonaws.com",
-"s3.dualstack.ca-central-1.amazonaws.com",
-"s3.dualstack.eu-central-1.amazonaws.com",
-"s3.dualstack.eu-west-1.amazonaws.com",
-"s3.dualstack.eu-west-2.amazonaws.com",
-"s3.dualstack.eu-west-3.amazonaws.com",
-"s3.dualstack.sa-east-1.amazonaws.com",
-"s3.dualstack.us-east-1.amazonaws.com",
-"s3.dualstack.us-east-2.amazonaws.com",
-"s3-website-us-east-1.amazonaws.com",
-"s3-website-us-west-1.amazonaws.com",
-"s3-website-us-west-2.amazonaws.com",
-"s3-website-ap-northeast-1.amazonaws.com",
-"s3-website-ap-southeast-1.amazonaws.com",
-"s3-website-ap-southeast-2.amazonaws.com",
-"s3-website-eu-west-1.amazonaws.com",
-"s3-website-sa-east-1.amazonaws.com",
-"s3-website.ap-northeast-2.amazonaws.com",
-"s3-website.ap-south-1.amazonaws.com",
-"s3-website.ca-central-1.amazonaws.com",
-"s3-website.eu-central-1.amazonaws.com",
-"s3-website.eu-west-2.amazonaws.com",
-"s3-website.eu-west-3.amazonaws.com",
-"s3-website.us-east-2.amazonaws.com",
-"amsw.nl",
-"t3l3p0rt.net",
-"tele.amune.org",
-"apigee.io",
-"on-aptible.com",
-"user.aseinet.ne.jp",
-"gv.vc",
-"d.gv.vc",
-"user.party.eus",
-"pimienta.org",
-"poivron.org",
-"potager.org",
-"sweetpepper.org",
-"myasustor.com",
-"myfritz.net",
-"*.awdev.ca",
-"*.advisor.ws",
-"b-data.io",
-"backplaneapp.io",
-"balena-devices.com",
-"app.banzaicloud.io",
-"betainabox.com",
-"bnr.la",
-"blackbaudcdn.net",
-"boomla.net",
-"boxfuse.io",
-"square7.ch",
-"bplaced.com",
-"bplaced.de",
-"square7.de",
-"bplaced.net",
-"square7.net",
-"browsersafetymark.io",
-"uk0.bigv.io",
-"dh.bytemark.co.uk",
-"vm.bytemark.co.uk",
-"mycd.eu",
-"carrd.co",
-"crd.co",
-"uwu.ai",
-"ae.org",
-"ar.com",
-"br.com",
-"cn.com",
-"com.de",
-"com.se",
-"de.com",
-"eu.com",
-"gb.com",
-"gb.net",
-"hu.com",
-"hu.net",
-"jp.net",
-"jpn.com",
-"kr.com",
-"mex.com",
-"no.com",
-"qc.com",
-"ru.com",
-"sa.com",
-"se.net",
-"uk.com",
-"uk.net",
-"us.com",
-"uy.com",
-"za.bz",
-"za.com",
-"africa.com",
-"gr.com",
-"in.net",
-"us.org",
-"co.com",
-"c.la",
-"certmgr.org",
-"xenapponazure.com",
-"discourse.group",
-"discourse.team",
-"virtueeldomein.nl",
-"cleverapps.io",
-"*.lcl.dev",
-"*.stg.dev",
-"c66.me",
-"cloud66.ws",
-"cloud66.zone",
-"jdevcloud.com",
-"wpdevcloud.com",
-"cloudaccess.host",
-"freesite.host",
-"cloudaccess.net",
-"cloudcontrolled.com",
-"cloudcontrolapp.com",
-"cloudera.site",
-"trycloudflare.com",
-"workers.dev",
-"wnext.app",
-"co.ca",
-"*.otap.co",
-"co.cz",
-"c.cdn77.org",
-"cdn77-ssl.net",
-"r.cdn77.net",
-"rsc.cdn77.org",
-"ssl.origin.cdn77-secure.org",
-"cloudns.asia",
-"cloudns.biz",
-"cloudns.club",
-"cloudns.cc",
-"cloudns.eu",
-"cloudns.in",
-"cloudns.info",
-"cloudns.org",
-"cloudns.pro",
-"cloudns.pw",
-"cloudns.us",
-"cloudeity.net",
-"cnpy.gdn",
-"co.nl",
-"co.no",
-"webhosting.be",
-"hosting-cluster.nl",
-"ac.ru",
-"edu.ru",
-"gov.ru",
-"int.ru",
-"mil.ru",
-"test.ru",
-"dyn.cosidns.de",
-"dynamisches-dns.de",
-"dnsupdater.de",
-"internet-dns.de",
-"l-o-g-i-n.de",
-"dynamic-dns.info",
-"feste-ip.net",
-"knx-server.net",
-"static-access.net",
-"realm.cz",
-"*.cryptonomic.net",
-"cupcake.is",
-"*.customer-oci.com",
-"*.oci.customer-oci.com",
-"*.ocp.customer-oci.com",
-"*.ocs.customer-oci.com",
-"cyon.link",
-"cyon.site",
-"daplie.me",
-"localhost.daplie.me",
-"dattolocal.com",
-"dattorelay.com",
-"dattoweb.com",
-"mydatto.com",
-"dattolocal.net",
-"mydatto.net",
-"biz.dk",
-"co.dk",
-"firm.dk",
-"reg.dk",
-"store.dk",
-"*.dapps.earth",
-"*.bzz.dapps.earth",
-"builtwithdark.com",
-"edgestack.me",
-"debian.net",
-"dedyn.io",
-"dnshome.de",
-"online.th",
-"shop.th",
-"drayddns.com",
-"dreamhosters.com",
-"mydrobo.com",
-"drud.io",
-"drud.us",
-"duckdns.org",
-"dy.fi",
-"tunk.org",
-"dyndns-at-home.com",
-"dyndns-at-work.com",
-"dyndns-blog.com",
-"dyndns-free.com",
-"dyndns-home.com",
-"dyndns-ip.com",
-"dyndns-mail.com",
-"dyndns-office.com",
-"dyndns-pics.com",
-"dyndns-remote.com",
-"dyndns-server.com",
-"dyndns-web.com",
-"dyndns-wiki.com",
-"dyndns-work.com",
-"dyndns.biz",
-"dyndns.info",
-"dyndns.org",
-"dyndns.tv",
-"at-band-camp.net",
-"ath.cx",
-"barrel-of-knowledge.info",
-"barrell-of-knowledge.info",
-"better-than.tv",
-"blogdns.com",
-"blogdns.net",
-"blogdns.org",
-"blogsite.org",
-"boldlygoingnowhere.org",
-"broke-it.net",
-"buyshouses.net",
-"cechire.com",
-"dnsalias.com",
-"dnsalias.net",
-"dnsalias.org",
-"dnsdojo.com",
-"dnsdojo.net",
-"dnsdojo.org",
-"does-it.net",
-"doesntexist.com",
-"doesntexist.org",
-"dontexist.com",
-"dontexist.net",
-"dontexist.org",
-"doomdns.com",
-"doomdns.org",
-"dvrdns.org",
-"dyn-o-saur.com",
-"dynalias.com",
-"dynalias.net",
-"dynalias.org",
-"dynathome.net",
-"dyndns.ws",
-"endofinternet.net",
-"endofinternet.org",
-"endoftheinternet.org",
-"est-a-la-maison.com",
-"est-a-la-masion.com",
-"est-le-patron.com",
-"est-mon-blogueur.com",
-"for-better.biz",
-"for-more.biz",
-"for-our.info",
-"for-some.biz",
-"for-the.biz",
-"forgot.her.name",
-"forgot.his.name",
-"from-ak.com",
-"from-al.com",
-"from-ar.com",
-"from-az.net",
-"from-ca.com",
-"from-co.net",
-"from-ct.com",
-"from-dc.com",
-"from-de.com",
-"from-fl.com",
-"from-ga.com",
-"from-hi.com",
-"from-ia.com",
-"from-id.com",
-"from-il.com",
-"from-in.com",
-"from-ks.com",
-"from-ky.com",
-"from-la.net",
-"from-ma.com",
-"from-md.com",
-"from-me.org",
-"from-mi.com",
-"from-mn.com",
-"from-mo.com",
-"from-ms.com",
-"from-mt.com",
-"from-nc.com",
-"from-nd.com",
-"from-ne.com",
-"from-nh.com",
-"from-nj.com",
-"from-nm.com",
-"from-nv.com",
-"from-ny.net",
-"from-oh.com",
-"from-ok.com",
-"from-or.com",
-"from-pa.com",
-"from-pr.com",
-"from-ri.com",
-"from-sc.com",
-"from-sd.com",
-"from-tn.com",
-"from-tx.com",
-"from-ut.com",
-"from-va.com",
-"from-vt.com",
-"from-wa.com",
-"from-wi.com",
-"from-wv.com",
-"from-wy.com",
-"ftpaccess.cc",
-"fuettertdasnetz.de",
-"game-host.org",
-"game-server.cc",
-"getmyip.com",
-"gets-it.net",
-"go.dyndns.org",
-"gotdns.com",
-"gotdns.org",
-"groks-the.info",
-"groks-this.info",
-"ham-radio-op.net",
-"here-for-more.info",
-"hobby-site.com",
-"hobby-site.org",
-"home.dyndns.org",
-"homedns.org",
-"homeftp.net",
-"homeftp.org",
-"homeip.net",
-"homelinux.com",
-"homelinux.net",
-"homelinux.org",
-"homeunix.com",
-"homeunix.net",
-"homeunix.org",
-"iamallama.com",
-"in-the-band.net",
-"is-a-anarchist.com",
-"is-a-blogger.com",
-"is-a-bookkeeper.com",
-"is-a-bruinsfan.org",
-"is-a-bulls-fan.com",
-"is-a-candidate.org",
-"is-a-caterer.com",
-"is-a-celticsfan.org",
-"is-a-chef.com",
-"is-a-chef.net",
-"is-a-chef.org",
-"is-a-conservative.com",
-"is-a-cpa.com",
-"is-a-cubicle-slave.com",
-"is-a-democrat.com",
-"is-a-designer.com",
-"is-a-doctor.com",
-"is-a-financialadvisor.com",
-"is-a-geek.com",
-"is-a-geek.net",
-"is-a-geek.org",
-"is-a-green.com",
-"is-a-guru.com",
-"is-a-hard-worker.com",
-"is-a-hunter.com",
-"is-a-knight.org",
-"is-a-landscaper.com",
-"is-a-lawyer.com",
-"is-a-liberal.com",
-"is-a-libertarian.com",
-"is-a-linux-user.org",
-"is-a-llama.com",
-"is-a-musician.com",
-"is-a-nascarfan.com",
-"is-a-nurse.com",
-"is-a-painter.com",
-"is-a-patsfan.org",
-"is-a-personaltrainer.com",
-"is-a-photographer.com",
-"is-a-player.com",
-"is-a-republican.com",
-"is-a-rockstar.com",
-"is-a-socialist.com",
-"is-a-soxfan.org",
-"is-a-student.com",
-"is-a-teacher.com",
-"is-a-techie.com",
-"is-a-therapist.com",
-"is-an-accountant.com",
-"is-an-actor.com",
-"is-an-actress.com",
-"is-an-anarchist.com",
-"is-an-artist.com",
-"is-an-engineer.com",
-"is-an-entertainer.com",
-"is-by.us",
-"is-certified.com",
-"is-found.org",
-"is-gone.com",
-"is-into-anime.com",
-"is-into-cars.com",
-"is-into-cartoons.com",
-"is-into-games.com",
-"is-leet.com",
-"is-lost.org",
-"is-not-certified.com",
-"is-saved.org",
-"is-slick.com",
-"is-uberleet.com",
-"is-very-bad.org",
-"is-very-evil.org",
-"is-very-good.org",
-"is-very-nice.org",
-"is-very-sweet.org",
-"is-with-theband.com",
-"isa-geek.com",
-"isa-geek.net",
-"isa-geek.org",
-"isa-hockeynut.com",
-"issmarterthanyou.com",
-"isteingeek.de",
-"istmein.de",
-"kicks-ass.net",
-"kicks-ass.org",
-"knowsitall.info",
-"land-4-sale.us",
-"lebtimnetz.de",
-"leitungsen.de",
-"likes-pie.com",
-"likescandy.com",
-"merseine.nu",
-"mine.nu",
-"misconfused.org",
-"mypets.ws",
-"myphotos.cc",
-"neat-url.com",
-"office-on-the.net",
-"on-the-web.tv",
-"podzone.net",
-"podzone.org",
-"readmyblog.org",
-"saves-the-whales.com",
-"scrapper-site.net",
-"scrapping.cc",
-"selfip.biz",
-"selfip.com",
-"selfip.info",
-"selfip.net",
-"selfip.org",
-"sells-for-less.com",
-"sells-for-u.com",
-"sells-it.net",
-"sellsyourhome.org",
-"servebbs.com",
-"servebbs.net",
-"servebbs.org",
-"serveftp.net",
-"serveftp.org",
-"servegame.org",
-"shacknet.nu",
-"simple-url.com",
-"space-to-rent.com",
-"stuff-4-sale.org",
-"stuff-4-sale.us",
-"teaches-yoga.com",
-"thruhere.net",
-"traeumtgerade.de",
-"webhop.biz",
-"webhop.info",
-"webhop.net",
-"webhop.org",
-"worse-than.tv",
-"writesthisblog.com",
-"ddnss.de",
-"dyn.ddnss.de",
-"dyndns.ddnss.de",
-"dyndns1.de",
-"dyn-ip24.de",
-"home-webserver.de",
-"dyn.home-webserver.de",
-"myhome-server.de",
-"ddnss.org",
-"definima.net",
-"definima.io",
-"bci.dnstrace.pro",
-"ddnsfree.com",
-"ddnsgeek.com",
-"giize.com",
-"gleeze.com",
-"kozow.com",
-"loseyourip.com",
-"ooguy.com",
-"theworkpc.com",
-"casacam.net",
-"dynu.net",
-"accesscam.org",
-"camdvr.org",
-"freeddns.org",
-"mywire.org",
-"webredirect.org",
-"myddns.rocks",
-"blogsite.xyz",
-"dynv6.net",
-"e4.cz",
-"en-root.fr",
-"mytuleap.com",
-"onred.one",
-"staging.onred.one",
-"enonic.io",
-"customer.enonic.io",
-"eu.org",
-"al.eu.org",
-"asso.eu.org",
-"at.eu.org",
-"au.eu.org",
-"be.eu.org",
-"bg.eu.org",
-"ca.eu.org",
-"cd.eu.org",
-"ch.eu.org",
-"cn.eu.org",
-"cy.eu.org",
-"cz.eu.org",
-"de.eu.org",
-"dk.eu.org",
-"edu.eu.org",
-"ee.eu.org",
-"es.eu.org",
-"fi.eu.org",
-"fr.eu.org",
-"gr.eu.org",
-"hr.eu.org",
-"hu.eu.org",
-"ie.eu.org",
-"il.eu.org",
-"in.eu.org",
-"int.eu.org",
-"is.eu.org",
-"it.eu.org",
-"jp.eu.org",
-"kr.eu.org",
-"lt.eu.org",
-"lu.eu.org",
-"lv.eu.org",
-"mc.eu.org",
-"me.eu.org",
-"mk.eu.org",
-"mt.eu.org",
-"my.eu.org",
-"net.eu.org",
-"ng.eu.org",
-"nl.eu.org",
-"no.eu.org",
-"nz.eu.org",
-"paris.eu.org",
-"pl.eu.org",
-"pt.eu.org",
-"q-a.eu.org",
-"ro.eu.org",
-"ru.eu.org",
-"se.eu.org",
-"si.eu.org",
-"sk.eu.org",
-"tr.eu.org",
-"uk.eu.org",
-"us.eu.org",
-"eu-1.evennode.com",
-"eu-2.evennode.com",
-"eu-3.evennode.com",
-"eu-4.evennode.com",
-"us-1.evennode.com",
-"us-2.evennode.com",
-"us-3.evennode.com",
-"us-4.evennode.com",
-"twmail.cc",
-"twmail.net",
-"twmail.org",
-"mymailer.com.tw",
-"url.tw",
-"apps.fbsbx.com",
-"ru.net",
-"adygeya.ru",
-"bashkiria.ru",
-"bir.ru",
-"cbg.ru",
-"com.ru",
-"dagestan.ru",
-"grozny.ru",
-"kalmykia.ru",
-"kustanai.ru",
-"marine.ru",
-"mordovia.ru",
-"msk.ru",
-"mytis.ru",
-"nalchik.ru",
-"nov.ru",
-"pyatigorsk.ru",
-"spb.ru",
-"vladikavkaz.ru",
-"vladimir.ru",
-"abkhazia.su",
-"adygeya.su",
-"aktyubinsk.su",
-"arkhangelsk.su",
-"armenia.su",
-"ashgabad.su",
-"azerbaijan.su",
-"balashov.su",
-"bashkiria.su",
-"bryansk.su",
-"bukhara.su",
-"chimkent.su",
-"dagestan.su",
-"east-kazakhstan.su",
-"exnet.su",
-"georgia.su",
-"grozny.su",
-"ivanovo.su",
-"jambyl.su",
-"kalmykia.su",
-"kaluga.su",
-"karacol.su",
-"karaganda.su",
-"karelia.su",
-"khakassia.su",
-"krasnodar.su",
-"kurgan.su",
-"kustanai.su",
-"lenug.su",
-"mangyshlak.su",
-"mordovia.su",
-"msk.su",
-"murmansk.su",
-"nalchik.su",
-"navoi.su",
-"north-kazakhstan.su",
-"nov.su",
-"obninsk.su",
-"penza.su",
-"pokrovsk.su",
-"sochi.su",
-"spb.su",
-"tashkent.su",
-"termez.su",
-"togliatti.su",
-"troitsk.su",
-"tselinograd.su",
-"tula.su",
-"tuva.su",
-"vladikavkaz.su",
-"vladimir.su",
-"vologda.su",
-"channelsdvr.net",
-"u.channelsdvr.net",
-"fastly-terrarium.com",
-"fastlylb.net",
-"map.fastlylb.net",
-"freetls.fastly.net",
-"map.fastly.net",
-"a.prod.fastly.net",
-"global.prod.fastly.net",
-"a.ssl.fastly.net",
-"b.ssl.fastly.net",
-"global.ssl.fastly.net",
-"fastpanel.direct",
-"fastvps-server.com",
-"fhapp.xyz",
-"fedorainfracloud.org",
-"fedorapeople.org",
-"cloud.fedoraproject.org",
-"app.os.fedoraproject.org",
-"app.os.stg.fedoraproject.org",
-"mydobiss.com",
-"filegear.me",
-"filegear-au.me",
-"filegear-de.me",
-"filegear-gb.me",
-"filegear-ie.me",
-"filegear-jp.me",
-"filegear-sg.me",
-"firebaseapp.com",
-"flynnhub.com",
-"flynnhosting.net",
-"0e.vc",
-"freebox-os.com",
-"freeboxos.com",
-"fbx-os.fr",
-"fbxos.fr",
-"freebox-os.fr",
-"freeboxos.fr",
-"freedesktop.org",
-"*.futurecms.at",
-"*.ex.futurecms.at",
-"*.in.futurecms.at",
-"futurehosting.at",
-"futuremailing.at",
-"*.ex.ortsinfo.at",
-"*.kunden.ortsinfo.at",
-"*.statics.cloud",
-"service.gov.uk",
-"gehirn.ne.jp",
-"usercontent.jp",
-"gentapps.com",
-"lab.ms",
-"github.io",
-"githubusercontent.com",
-"gitlab.io",
-"glitch.me",
-"lolipop.io",
-"cloudapps.digital",
-"london.cloudapps.digital",
-"homeoffice.gov.uk",
-"ro.im",
-"shop.ro",
-"goip.de",
-"run.app",
-"a.run.app",
-"web.app",
-"*.0emm.com",
-"appspot.com",
-"*.r.appspot.com",
-"blogspot.ae",
-"blogspot.al",
-"blogspot.am",
-"blogspot.ba",
-"blogspot.be",
-"blogspot.bg",
-"blogspot.bj",
-"blogspot.ca",
-"blogspot.cf",
-"blogspot.ch",
-"blogspot.cl",
-"blogspot.co.at",
-"blogspot.co.id",
-"blogspot.co.il",
-"blogspot.co.ke",
-"blogspot.co.nz",
-"blogspot.co.uk",
-"blogspot.co.za",
-"blogspot.com",
-"blogspot.com.ar",
-"blogspot.com.au",
-"blogspot.com.br",
-"blogspot.com.by",
-"blogspot.com.co",
-"blogspot.com.cy",
-"blogspot.com.ee",
-"blogspot.com.eg",
-"blogspot.com.es",
-"blogspot.com.mt",
-"blogspot.com.ng",
-"blogspot.com.tr",
-"blogspot.com.uy",
-"blogspot.cv",
-"blogspot.cz",
-"blogspot.de",
-"blogspot.dk",
-"blogspot.fi",
-"blogspot.fr",
-"blogspot.gr",
-"blogspot.hk",
-"blogspot.hr",
-"blogspot.hu",
-"blogspot.ie",
-"blogspot.in",
-"blogspot.is",
-"blogspot.it",
-"blogspot.jp",
-"blogspot.kr",
-"blogspot.li",
-"blogspot.lt",
-"blogspot.lu",
-"blogspot.md",
-"blogspot.mk",
-"blogspot.mr",
-"blogspot.mx",
-"blogspot.my",
-"blogspot.nl",
-"blogspot.no",
-"blogspot.pe",
-"blogspot.pt",
-"blogspot.qa",
-"blogspot.re",
-"blogspot.ro",
-"blogspot.rs",
-"blogspot.ru",
-"blogspot.se",
-"blogspot.sg",
-"blogspot.si",
-"blogspot.sk",
-"blogspot.sn",
-"blogspot.td",
-"blogspot.tw",
-"blogspot.ug",
-"blogspot.vn",
-"cloudfunctions.net",
-"cloud.goog",
-"codespot.com",
-"googleapis.com",
-"googlecode.com",
-"pagespeedmobilizer.com",
-"publishproxy.com",
-"withgoogle.com",
-"withyoutube.com",
-"awsmppl.com",
-"fin.ci",
-"free.hr",
-"caa.li",
-"ua.rs",
-"conf.se",
-"hs.zone",
-"hs.run",
-"hashbang.sh",
-"hasura.app",
-"hasura-app.io",
-"hepforge.org",
-"herokuapp.com",
-"herokussl.com",
-"myravendb.com",
-"ravendb.community",
-"ravendb.me",
-"development.run",
-"ravendb.run",
-"bpl.biz",
-"orx.biz",
-"ng.city",
-"biz.gl",
-"ng.ink",
-"col.ng",
-"firm.ng",
-"gen.ng",
-"ltd.ng",
-"ngo.ng",
-"ng.school",
-"sch.so",
-"häkkinen.fi",
-"*.moonscale.io",
-"moonscale.net",
-"iki.fi",
-"dyn-berlin.de",
-"in-berlin.de",
-"in-brb.de",
-"in-butter.de",
-"in-dsl.de",
-"in-dsl.net",
-"in-dsl.org",
-"in-vpn.de",
-"in-vpn.net",
-"in-vpn.org",
-"biz.at",
-"info.at",
-"info.cx",
-"ac.leg.br",
-"al.leg.br",
-"am.leg.br",
-"ap.leg.br",
-"ba.leg.br",
-"ce.leg.br",
-"df.leg.br",
-"es.leg.br",
-"go.leg.br",
-"ma.leg.br",
-"mg.leg.br",
-"ms.leg.br",
-"mt.leg.br",
-"pa.leg.br",
-"pb.leg.br",
-"pe.leg.br",
-"pi.leg.br",
-"pr.leg.br",
-"rj.leg.br",
-"rn.leg.br",
-"ro.leg.br",
-"rr.leg.br",
-"rs.leg.br",
-"sc.leg.br",
-"se.leg.br",
-"sp.leg.br",
-"to.leg.br",
-"pixolino.com",
-"ipifony.net",
-"mein-iserv.de",
-"test-iserv.de",
-"iserv.dev",
-"iobb.net",
-"myjino.ru",
-"*.hosting.myjino.ru",
-"*.landing.myjino.ru",
-"*.spectrum.myjino.ru",
-"*.vps.myjino.ru",
-"*.triton.zone",
-"*.cns.joyent.com",
-"js.org",
-"kaas.gg",
-"khplay.nl",
-"keymachine.de",
-"kinghost.net",
-"uni5.net",
-"knightpoint.systems",
-"oya.to",
-"co.krd",
-"edu.krd",
-"git-repos.de",
-"lcube-server.de",
-"svn-repos.de",
-"leadpages.co",
-"lpages.co",
-"lpusercontent.com",
-"lelux.site",
-"co.business",
-"co.education",
-"co.events",
-"co.financial",
-"co.network",
-"co.place",
-"co.technology",
-"app.lmpm.com",
-"linkitools.space",
-"linkyard.cloud",
-"linkyard-cloud.ch",
-"members.linode.com",
-"nodebalancer.linode.com",
-"we.bs",
-"loginline.app",
-"loginline.dev",
-"loginline.io",
-"loginline.services",
-"loginline.site",
-"krasnik.pl",
-"leczna.pl",
-"lubartow.pl",
-"lublin.pl",
-"poniatowa.pl",
-"swidnik.pl",
-"uklugs.org",
-"glug.org.uk",
-"lug.org.uk",
-"lugs.org.uk",
-"barsy.bg",
-"barsy.co.uk",
-"barsyonline.co.uk",
-"barsycenter.com",
-"barsyonline.com",
-"barsy.club",
-"barsy.de",
-"barsy.eu",
-"barsy.in",
-"barsy.info",
-"barsy.io",
-"barsy.me",
-"barsy.menu",
-"barsy.mobi",
-"barsy.net",
-"barsy.online",
-"barsy.org",
-"barsy.pro",
-"barsy.pub",
-"barsy.shop",
-"barsy.site",
-"barsy.support",
-"barsy.uk",
-"*.magentosite.cloud",
-"mayfirst.info",
-"mayfirst.org",
-"hb.cldmail.ru",
-"miniserver.com",
-"memset.net",
-"cloud.metacentrum.cz",
-"custom.metacentrum.cz",
-"flt.cloud.muni.cz",
-"usr.cloud.muni.cz",
-"meteorapp.com",
-"eu.meteorapp.com",
-"co.pl",
-"azurecontainer.io",
-"azurewebsites.net",
-"azure-mobile.net",
-"cloudapp.net",
-"mozilla-iot.org",
-"bmoattachments.org",
-"net.ru",
-"org.ru",
-"pp.ru",
-"ui.nabu.casa",
-"pony.club",
-"of.fashion",
-"on.fashion",
-"of.football",
-"in.london",
-"of.london",
-"for.men",
-"and.mom",
-"for.mom",
-"for.one",
-"for.sale",
-"of.work",
-"to.work",
-"nctu.me",
-"bitballoon.com",
-"netlify.com",
-"4u.com",
-"ngrok.io",
-"nh-serv.co.uk",
-"nfshost.com",
-"dnsking.ch",
-"mypi.co",
-"n4t.co",
-"001www.com",
-"ddnslive.com",
-"myiphost.com",
-"forumz.info",
-"16-b.it",
-"32-b.it",
-"64-b.it",
-"soundcast.me",
-"tcp4.me",
-"dnsup.net",
-"hicam.net",
-"now-dns.net",
-"ownip.net",
-"vpndns.net",
-"dynserv.org",
-"now-dns.org",
-"x443.pw",
-"now-dns.top",
-"ntdll.top",
-"freeddns.us",
-"crafting.xyz",
-"zapto.xyz",
-"nsupdate.info",
-"nerdpol.ovh",
-"blogsyte.com",
-"brasilia.me",
-"cable-modem.org",
-"ciscofreak.com",
-"collegefan.org",
-"couchpotatofries.org",
-"damnserver.com",
-"ddns.me",
-"ditchyourip.com",
-"dnsfor.me",
-"dnsiskinky.com",
-"dvrcam.info",
-"dynns.com",
-"eating-organic.net",
-"fantasyleague.cc",
-"geekgalaxy.com",
-"golffan.us",
-"health-carereform.com",
-"homesecuritymac.com",
-"homesecuritypc.com",
-"hopto.me",
-"ilovecollege.info",
-"loginto.me",
-"mlbfan.org",
-"mmafan.biz",
-"myactivedirectory.com",
-"mydissent.net",
-"myeffect.net",
-"mymediapc.net",
-"mypsx.net",
-"mysecuritycamera.com",
-"mysecuritycamera.net",
-"mysecuritycamera.org",
-"net-freaks.com",
-"nflfan.org",
-"nhlfan.net",
-"no-ip.ca",
-"no-ip.co.uk",
-"no-ip.net",
-"noip.us",
-"onthewifi.com",
-"pgafan.net",
-"point2this.com",
-"pointto.us",
-"privatizehealthinsurance.net",
-"quicksytes.com",
-"read-books.org",
-"securitytactics.com",
-"serveexchange.com",
-"servehumour.com",
-"servep2p.com",
-"servesarcasm.com",
-"stufftoread.com",
-"ufcfan.org",
-"unusualperson.com",
-"workisboring.com",
-"3utilities.com",
-"bounceme.net",
-"ddns.net",
-"ddnsking.com",
-"gotdns.ch",
-"hopto.org",
-"myftp.biz",
-"myftp.org",
-"myvnc.com",
-"no-ip.biz",
-"no-ip.info",
-"no-ip.org",
-"noip.me",
-"redirectme.net",
-"servebeer.com",
-"serveblog.net",
-"servecounterstrike.com",
-"serveftp.com",
-"servegame.com",
-"servehalflife.com",
-"servehttp.com",
-"serveirc.com",
-"serveminecraft.net",
-"servemp3.com",
-"servepics.com",
-"servequake.com",
-"sytes.net",
-"webhop.me",
-"zapto.org",
-"stage.nodeart.io",
-"nodum.co",
-"nodum.io",
-"pcloud.host",
-"nyc.mn",
-"nom.ae",
-"nom.af",
-"nom.ai",
-"nom.al",
-"nym.by",
-"nom.bz",
-"nym.bz",
-"nom.cl",
-"nym.ec",
-"nom.gd",
-"nom.ge",
-"nom.gl",
-"nym.gr",
-"nom.gt",
-"nym.gy",
-"nym.hk",
-"nom.hn",
-"nym.ie",
-"nom.im",
-"nom.ke",
-"nym.kz",
-"nym.la",
-"nym.lc",
-"nom.li",
-"nym.li",
-"nym.lt",
-"nym.lu",
-"nom.lv",
-"nym.me",
-"nom.mk",
-"nym.mn",
-"nym.mx",
-"nom.nu",
-"nym.nz",
-"nym.pe",
-"nym.pt",
-"nom.pw",
-"nom.qa",
-"nym.ro",
-"nom.rs",
-"nom.si",
-"nym.sk",
-"nom.st",
-"nym.su",
-"nym.sx",
-"nom.tj",
-"nym.tw",
-"nom.ug",
-"nom.uy",
-"nom.vc",
-"nom.vg",
-"static.observableusercontent.com",
-"cya.gg",
-"cloudycluster.net",
-"nid.io",
-"opencraft.hosting",
-"operaunite.com",
-"skygearapp.com",
-"outsystemscloud.com",
-"ownprovider.com",
-"own.pm",
-"ox.rs",
-"oy.lc",
-"pgfog.com",
-"pagefrontapp.com",
-"art.pl",
-"gliwice.pl",
-"krakow.pl",
-"poznan.pl",
-"wroc.pl",
-"zakopane.pl",
-"pantheonsite.io",
-"gotpantheon.com",
-"mypep.link",
-"perspecta.cloud",
-"on-web.fr",
-"*.platform.sh",
-"*.platformsh.site",
-"dyn53.io",
-"co.bn",
-"xen.prgmr.com",
-"priv.at",
-"prvcy.page",
-"*.dweb.link",
-"protonet.io",
-"chirurgiens-dentistes-en-france.fr",
-"byen.site",
-"pubtls.org",
-"qualifioapp.com",
-"qbuser.com",
-"instantcloud.cn",
-"ras.ru",
-"qa2.com",
-"qcx.io",
-"*.sys.qcx.io",
-"dev-myqnapcloud.com",
-"alpha-myqnapcloud.com",
-"myqnapcloud.com",
-"*.quipelements.com",
-"vapor.cloud",
-"vaporcloud.io",
-"rackmaze.com",
-"rackmaze.net",
-"*.on-k3s.io",
-"*.on-rancher.cloud",
-"*.on-rio.io",
-"readthedocs.io",
-"rhcloud.com",
-"app.render.com",
-"onrender.com",
-"repl.co",
-"repl.run",
-"resindevice.io",
-"devices.resinstaging.io",
-"hzc.io",
-"wellbeingzone.eu",
-"ptplus.fit",
-"wellbeingzone.co.uk",
-"git-pages.rit.edu",
-"sandcats.io",
-"logoip.de",
-"logoip.com",
-"schokokeks.net",
-"gov.scot",
-"scrysec.com",
-"firewall-gateway.com",
-"firewall-gateway.de",
-"my-gateway.de",
-"my-router.de",
-"spdns.de",
-"spdns.eu",
-"firewall-gateway.net",
-"my-firewall.org",
-"myfirewall.org",
-"spdns.org",
-"senseering.net",
-"biz.ua",
-"co.ua",
-"pp.ua",
-"shiftedit.io",
-"myshopblocks.com",
-"shopitsite.com",
-"mo-siemens.io",
-"1kapp.com",
-"appchizi.com",
-"applinzi.com",
-"sinaapp.com",
-"vipsinaapp.com",
-"siteleaf.net",
-"bounty-full.com",
-"alpha.bounty-full.com",
-"beta.bounty-full.com",
-"stackhero-network.com",
-"static.land",
-"dev.static.land",
-"sites.static.land",
-"apps.lair.io",
-"*.stolos.io",
-"spacekit.io",
-"customer.speedpartner.de",
-"api.stdlib.com",
-"storj.farm",
-"utwente.io",
-"soc.srcf.net",
-"user.srcf.net",
-"temp-dns.com",
-"applicationcloud.io",
-"scapp.io",
-"*.s5y.io",
-"*.sensiosite.cloud",
-"syncloud.it",
-"diskstation.me",
-"dscloud.biz",
-"dscloud.me",
-"dscloud.mobi",
-"dsmynas.com",
-"dsmynas.net",
-"dsmynas.org",
-"familyds.com",
-"familyds.net",
-"familyds.org",
-"i234.me",
-"myds.me",
-"synology.me",
-"vpnplus.to",
-"direct.quickconnect.to",
-"taifun-dns.de",
-"gda.pl",
-"gdansk.pl",
-"gdynia.pl",
-"med.pl",
-"sopot.pl",
-"edugit.org",
-"telebit.app",
-"telebit.io",
-"*.telebit.xyz",
-"gwiddle.co.uk",
-"thingdustdata.com",
-"cust.dev.thingdust.io",
-"cust.disrec.thingdust.io",
-"cust.prod.thingdust.io",
-"cust.testing.thingdust.io",
-"arvo.network",
-"azimuth.network",
-"bloxcms.com",
-"townnews-staging.com",
-"12hp.at",
-"2ix.at",
-"4lima.at",
-"lima-city.at",
-"12hp.ch",
-"2ix.ch",
-"4lima.ch",
-"lima-city.ch",
-"trafficplex.cloud",
-"de.cool",
-"12hp.de",
-"2ix.de",
-"4lima.de",
-"lima-city.de",
-"1337.pictures",
-"clan.rip",
-"lima-city.rocks",
-"webspace.rocks",
-"lima.zone",
-"*.transurl.be",
-"*.transurl.eu",
-"*.transurl.nl",
-"tuxfamily.org",
-"dd-dns.de",
-"diskstation.eu",
-"diskstation.org",
-"dray-dns.de",
-"draydns.de",
-"dyn-vpn.de",
-"dynvpn.de",
-"mein-vigor.de",
-"my-vigor.de",
-"my-wan.de",
-"syno-ds.de",
-"synology-diskstation.de",
-"synology-ds.de",
-"uber.space",
-"*.uberspace.de",
-"hk.com",
-"hk.org",
-"ltd.hk",
-"inc.hk",
-"virtualuser.de",
-"virtual-user.de",
-"urown.cloud",
-"dnsupdate.info",
-"lib.de.us",
-"2038.io",
-"router.management",
-"v-info.info",
-"voorloper.cloud",
-"v.ua",
-"wafflecell.com",
-"*.webhare.dev",
-"wedeploy.io",
-"wedeploy.me",
-"wedeploy.sh",
-"remotewd.com",
-"wmflabs.org",
-"myforum.community",
-"community-pro.de",
-"diskussionsbereich.de",
-"community-pro.net",
-"meinforum.net",
-"half.host",
-"xnbay.com",
-"u2.xnbay.com",
-"u2-local.xnbay.com",
-"cistron.nl",
-"demon.nl",
-"xs4all.space",
-"yandexcloud.net",
-"storage.yandexcloud.net",
-"website.yandexcloud.net",
-"official.academy",
-"yolasite.com",
-"ybo.faith",
-"yombo.me",
-"homelink.one",
-"ybo.party",
-"ybo.review",
-"ybo.science",
-"ybo.trade",
-"nohost.me",
-"noho.st",
-"za.net",
-"za.org",
-"now.sh",
-"bss.design",
-"basicserver.io",
-"virtualserver.io",
-"enterprisecloud.nu"
-]
-},{}],2:[function(require,module,exports){
-/*eslint no-var:0, prefer-arrow-callback: 0, object-shorthand: 0 */
-'use strict';
-
-
-var Punycode = require('punycode');
-
-
-var internals = {};
-
-
-//
-// Read rules from file.
-//
-internals.rules = require('./data/rules.json').map(function (rule) {
-
- return {
- rule: rule,
- suffix: rule.replace(/^(\*\.|\!)/, ''),
- punySuffix: -1,
- wildcard: rule.charAt(0) === '*',
- exception: rule.charAt(0) === '!'
- };
-});
-
-
-//
-// Check is given string ends with `suffix`.
-//
-internals.endsWith = function (str, suffix) {
-
- return str.indexOf(suffix, str.length - suffix.length) !== -1;
-};
-
-
-//
-// Find rule for a given domain.
-//
-internals.findRule = function (domain) {
-
- var punyDomain = Punycode.toASCII(domain);
- return internals.rules.reduce(function (memo, rule) {
-
- if (rule.punySuffix === -1){
- rule.punySuffix = Punycode.toASCII(rule.suffix);
- }
- if (!internals.endsWith(punyDomain, '.' + rule.punySuffix) && punyDomain !== rule.punySuffix) {
- return memo;
- }
- // This has been commented out as it never seems to run. This is because
- // sub tlds always appear after their parents and we never find a shorter
- // match.
- //if (memo) {
- // var memoSuffix = Punycode.toASCII(memo.suffix);
- // if (memoSuffix.length >= punySuffix.length) {
- // return memo;
- // }
- //}
- return rule;
- }, null);
-};
-
-
-//
-// Error codes and messages.
-//
-exports.errorCodes = {
- DOMAIN_TOO_SHORT: 'Domain name too short.',
- DOMAIN_TOO_LONG: 'Domain name too long. It should be no more than 255 chars.',
- LABEL_STARTS_WITH_DASH: 'Domain name label can not start with a dash.',
- LABEL_ENDS_WITH_DASH: 'Domain name label can not end with a dash.',
- LABEL_TOO_LONG: 'Domain name label should be at most 63 chars long.',
- LABEL_TOO_SHORT: 'Domain name label should be at least 1 character long.',
- LABEL_INVALID_CHARS: 'Domain name label can only contain alphanumeric characters or dashes.'
-};
-
-
-//
-// Validate domain name and throw if not valid.
-//
-// From wikipedia:
-//
-// Hostnames are composed of series of labels concatenated with dots, as are all
-// domain names. Each label must be between 1 and 63 characters long, and the
-// entire hostname (including the delimiting dots) has a maximum of 255 chars.
-//
-// Allowed chars:
-//
-// * `a-z`
-// * `0-9`
-// * `-` but not as a starting or ending character
-// * `.` as a separator for the textual portions of a domain name
-//
-// * http://en.wikipedia.org/wiki/Domain_name
-// * http://en.wikipedia.org/wiki/Hostname
-//
-internals.validate = function (input) {
-
- // Before we can validate we need to take care of IDNs with unicode chars.
- var ascii = Punycode.toASCII(input);
-
- if (ascii.length < 1) {
- return 'DOMAIN_TOO_SHORT';
- }
- if (ascii.length > 255) {
- return 'DOMAIN_TOO_LONG';
- }
-
- // Check each part's length and allowed chars.
- var labels = ascii.split('.');
- var label;
-
- for (var i = 0; i < labels.length; ++i) {
- label = labels[i];
- if (!label.length) {
- return 'LABEL_TOO_SHORT';
- }
- if (label.length > 63) {
- return 'LABEL_TOO_LONG';
- }
- if (label.charAt(0) === '-') {
- return 'LABEL_STARTS_WITH_DASH';
- }
- if (label.charAt(label.length - 1) === '-') {
- return 'LABEL_ENDS_WITH_DASH';
- }
- if (!/^[a-z0-9\-]+$/.test(label)) {
- return 'LABEL_INVALID_CHARS';
- }
- }
-};
-
-
-//
-// Public API
-//
-
-
-//
-// Parse domain.
-//
-exports.parse = function (input) {
-
- if (typeof input !== 'string') {
- throw new TypeError('Domain name must be a string.');
- }
-
- // Force domain to lowercase.
- var domain = input.slice(0).toLowerCase();
-
- // Handle FQDN.
- // TODO: Simply remove trailing dot?
- if (domain.charAt(domain.length - 1) === '.') {
- domain = domain.slice(0, domain.length - 1);
- }
-
- // Validate and sanitise input.
- var error = internals.validate(domain);
- if (error) {
- return {
- input: input,
- error: {
- message: exports.errorCodes[error],
- code: error
- }
- };
- }
-
- var parsed = {
- input: input,
- tld: null,
- sld: null,
- domain: null,
- subdomain: null,
- listed: false
- };
-
- var domainParts = domain.split('.');
-
- // Non-Internet TLD
- if (domainParts[domainParts.length - 1] === 'local') {
- return parsed;
- }
-
- var handlePunycode = function () {
-
- if (!/xn--/.test(domain)) {
- return parsed;
- }
- if (parsed.domain) {
- parsed.domain = Punycode.toASCII(parsed.domain);
- }
- if (parsed.subdomain) {
- parsed.subdomain = Punycode.toASCII(parsed.subdomain);
- }
- return parsed;
- };
-
- var rule = internals.findRule(domain);
-
- // Unlisted tld.
- if (!rule) {
- if (domainParts.length < 2) {
- return parsed;
- }
- parsed.tld = domainParts.pop();
- parsed.sld = domainParts.pop();
- parsed.domain = [parsed.sld, parsed.tld].join('.');
- if (domainParts.length) {
- parsed.subdomain = domainParts.pop();
- }
- return handlePunycode();
- }
-
- // At this point we know the public suffix is listed.
- parsed.listed = true;
-
- var tldParts = rule.suffix.split('.');
- var privateParts = domainParts.slice(0, domainParts.length - tldParts.length);
-
- if (rule.exception) {
- privateParts.push(tldParts.shift());
- }
-
- parsed.tld = tldParts.join('.');
-
- if (!privateParts.length) {
- return handlePunycode();
- }
-
- if (rule.wildcard) {
- tldParts.unshift(privateParts.pop());
- parsed.tld = tldParts.join('.');
- }
-
- if (!privateParts.length) {
- return handlePunycode();
- }
-
- parsed.sld = privateParts.pop();
- parsed.domain = [parsed.sld, parsed.tld].join('.');
-
- if (privateParts.length) {
- parsed.subdomain = privateParts.join('.');
- }
-
- return handlePunycode();
-};
-
-
-//
-// Get domain.
-//
-exports.get = function (domain) {
-
- if (!domain) {
- return null;
- }
- return exports.parse(domain).domain || null;
-};
-
-
-//
-// Check whether domain belongs to a known public suffix.
-//
-exports.isValid = function (domain) {
-
- var parsed = exports.parse(domain);
- return Boolean(parsed.domain && parsed.listed);
-};
-
-},{"./data/rules.json":1,"punycode":3}],3:[function(require,module,exports){
-(function (global){
-/*! https://mths.be/punycode v1.4.1 by @mathias */
-;(function(root) {
-
- /** Detect free variables */
- var freeExports = typeof exports == 'object' && exports &&
- !exports.nodeType && exports;
- var freeModule = typeof module == 'object' && module &&
- !module.nodeType && module;
- var freeGlobal = typeof global == 'object' && global;
- if (
- freeGlobal.global === freeGlobal ||
- freeGlobal.window === freeGlobal ||
- freeGlobal.self === freeGlobal
- ) {
- root = freeGlobal;
- }
-
- /**
- * The `punycode` object.
- * @name punycode
- * @type Object
- */
- var punycode,
-
- /** Highest positive signed 32-bit float value */
- maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
-
- /** Bootstring parameters */
- base = 36,
- tMin = 1,
- tMax = 26,
- skew = 38,
- damp = 700,
- initialBias = 72,
- initialN = 128, // 0x80
- delimiter = '-', // '\x2D'
-
- /** Regular expressions */
- regexPunycode = /^xn--/,
- regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
- regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
-
- /** Error messages */
- errors = {
- 'overflow': 'Overflow: input needs wider integers to process',
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
- 'invalid-input': 'Invalid input'
- },
-
- /** Convenience shortcuts */
- baseMinusTMin = base - tMin,
- floor = Math.floor,
- stringFromCharCode = String.fromCharCode,
-
- /** Temporary variable */
- key;
-
- /*--------------------------------------------------------------------------*/
-
- /**
- * A generic error utility function.
- * @private
- * @param {String} type The error type.
- * @returns {Error} Throws a `RangeError` with the applicable error message.
- */
- function error(type) {
- throw new RangeError(errors[type]);
- }
-
- /**
- * A generic `Array#map` utility function.
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} callback The function that gets called for every array
- * item.
- * @returns {Array} A new array of values returned by the callback function.
- */
- function map(array, fn) {
- var length = array.length;
- var result = [];
- while (length--) {
- result[length] = fn(array[length]);
- }
- return result;
- }
-
- /**
- * A simple `Array#map`-like wrapper to work with domain name strings or email
- * addresses.
- * @private
- * @param {String} domain The domain name or email address.
- * @param {Function} callback The function that gets called for every
- * character.
- * @returns {Array} A new string of characters returned by the callback
- * function.
- */
- function mapDomain(string, fn) {
- var parts = string.split('@');
- var result = '';
- if (parts.length > 1) {
- // In email addresses, only the domain name should be punycoded. Leave
- // the local part (i.e. everything up to `@`) intact.
- result = parts[0] + '@';
- string = parts[1];
- }
- // Avoid `split(regex)` for IE8 compatibility. See #17.
- string = string.replace(regexSeparators, '\x2E');
- var labels = string.split('.');
- var encoded = map(labels, fn).join('.');
- return result + encoded;
- }
-
- /**
- * Creates an array containing the numeric code points of each Unicode
- * character in the string. While JavaScript uses UCS-2 internally,
- * this function will convert a pair of surrogate halves (each of which
- * UCS-2 exposes as separate characters) into a single code point,
- * matching UTF-16.
- * @see `punycode.ucs2.encode`
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode.ucs2
- * @name decode
- * @param {String} string The Unicode input string (UCS-2).
- * @returns {Array} The new array of code points.
- */
- function ucs2decode(string) {
- var output = [],
- counter = 0,
- length = string.length,
- value,
- extra;
- while (counter < length) {
- value = string.charCodeAt(counter++);
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
- // high surrogate, and there is a next character
- extra = string.charCodeAt(counter++);
- if ((extra & 0xFC00) == 0xDC00) { // low surrogate
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
- } else {
- // unmatched surrogate; only append this code unit, in case the next
- // code unit is the high surrogate of a surrogate pair
- output.push(value);
- counter--;
- }
- } else {
- output.push(value);
- }
- }
- return output;
- }
-
- /**
- * Creates a string based on an array of numeric code points.
- * @see `punycode.ucs2.decode`
- * @memberOf punycode.ucs2
- * @name encode
- * @param {Array} codePoints The array of numeric code points.
- * @returns {String} The new Unicode string (UCS-2).
- */
- function ucs2encode(array) {
- return map(array, function(value) {
- var output = '';
- if (value > 0xFFFF) {
- value -= 0x10000;
- output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
- value = 0xDC00 | value & 0x3FF;
- }
- output += stringFromCharCode(value);
- return output;
- }).join('');
- }
-
- /**
- * Converts a basic code point into a digit/integer.
- * @see `digitToBasic()`
- * @private
- * @param {Number} codePoint The basic numeric code point value.
- * @returns {Number} The numeric value of a basic code point (for use in
- * representing integers) in the range `0` to `base - 1`, or `base` if
- * the code point does not represent a value.
- */
- function basicToDigit(codePoint) {
- if (codePoint - 48 < 10) {
- return codePoint - 22;
- }
- if (codePoint - 65 < 26) {
- return codePoint - 65;
- }
- if (codePoint - 97 < 26) {
- return codePoint - 97;
- }
- return base;
- }
-
- /**
- * Converts a digit/integer into a basic code point.
- * @see `basicToDigit()`
- * @private
- * @param {Number} digit The numeric value of a basic code point.
- * @returns {Number} The basic code point whose value (when used for
- * representing integers) is `digit`, which needs to be in the range
- * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
- * used; else, the lowercase form is used. The behavior is undefined
- * if `flag` is non-zero and `digit` has no uppercase form.
- */
- function digitToBasic(digit, flag) {
- // 0..25 map to ASCII a..z or A..Z
- // 26..35 map to ASCII 0..9
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
- }
-
- /**
- * Bias adaptation function as per section 3.4 of RFC 3492.
- * https://tools.ietf.org/html/rfc3492#section-3.4
- * @private
- */
- function adapt(delta, numPoints, firstTime) {
- var k = 0;
- delta = firstTime ? floor(delta / damp) : delta >> 1;
- delta += floor(delta / numPoints);
- for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
- delta = floor(delta / baseMinusTMin);
- }
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
- }
-
- /**
- * Converts a Punycode string of ASCII-only symbols to a string of Unicode
- * symbols.
- * @memberOf punycode
- * @param {String} input The Punycode string of ASCII-only symbols.
- * @returns {String} The resulting string of Unicode symbols.
- */
- function decode(input) {
- // Don't use UCS-2
- var output = [],
- inputLength = input.length,
- out,
- i = 0,
- n = initialN,
- bias = initialBias,
- basic,
- j,
- index,
- oldi,
- w,
- k,
- digit,
- t,
- /** Cached calculation results */
- baseMinusT;
-
- // Handle the basic code points: let `basic` be the number of input code
- // points before the last delimiter, or `0` if there is none, then copy
- // the first basic code points to the output.
-
- basic = input.lastIndexOf(delimiter);
- if (basic < 0) {
- basic = 0;
- }
-
- for (j = 0; j < basic; ++j) {
- // if it's not a basic code point
- if (input.charCodeAt(j) >= 0x80) {
- error('not-basic');
- }
- output.push(input.charCodeAt(j));
- }
-
- // Main decoding loop: start just after the last delimiter if any basic code
- // points were copied; start at the beginning otherwise.
-
- for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
-
- // `index` is the index of the next character to be consumed.
- // Decode a generalized variable-length integer into `delta`,
- // which gets added to `i`. The overflow checking is easier
- // if we increase `i` as we go, then subtract off its starting
- // value at the end to obtain `delta`.
- for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
-
- if (index >= inputLength) {
- error('invalid-input');
- }
-
- digit = basicToDigit(input.charCodeAt(index++));
-
- if (digit >= base || digit > floor((maxInt - i) / w)) {
- error('overflow');
- }
-
- i += digit * w;
- t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
-
- if (digit < t) {
- break;
- }
-
- baseMinusT = base - t;
- if (w > floor(maxInt / baseMinusT)) {
- error('overflow');
- }
-
- w *= baseMinusT;
-
- }
-
- out = output.length + 1;
- bias = adapt(i - oldi, out, oldi == 0);
-
- // `i` was supposed to wrap around from `out` to `0`,
- // incrementing `n` each time, so we'll fix that now:
- if (floor(i / out) > maxInt - n) {
- error('overflow');
- }
-
- n += floor(i / out);
- i %= out;
-
- // Insert `n` at position `i` of the output
- output.splice(i++, 0, n);
-
- }
-
- return ucs2encode(output);
- }
-
- /**
- * Converts a string of Unicode symbols (e.g. a domain name label) to a
- * Punycode string of ASCII-only symbols.
- * @memberOf punycode
- * @param {String} input The string of Unicode symbols.
- * @returns {String} The resulting Punycode string of ASCII-only symbols.
- */
- function encode(input) {
- var n,
- delta,
- handledCPCount,
- basicLength,
- bias,
- j,
- m,
- q,
- k,
- t,
- currentValue,
- output = [],
- /** `inputLength` will hold the number of code points in `input`. */
- inputLength,
- /** Cached calculation results */
- handledCPCountPlusOne,
- baseMinusT,
- qMinusT;
-
- // Convert the input in UCS-2 to Unicode
- input = ucs2decode(input);
-
- // Cache the length
- inputLength = input.length;
-
- // Initialize the state
- n = initialN;
- delta = 0;
- bias = initialBias;
-
- // Handle the basic code points
- for (j = 0; j < inputLength; ++j) {
- currentValue = input[j];
- if (currentValue < 0x80) {
- output.push(stringFromCharCode(currentValue));
- }
- }
-
- handledCPCount = basicLength = output.length;
-
- // `handledCPCount` is the number of code points that have been handled;
- // `basicLength` is the number of basic code points.
-
- // Finish the basic string - if it is not empty - with a delimiter
- if (basicLength) {
- output.push(delimiter);
- }
-
- // Main encoding loop:
- while (handledCPCount < inputLength) {
-
- // All non-basic code points < n have been handled already. Find the next
- // larger one:
- for (m = maxInt, j = 0; j < inputLength; ++j) {
- currentValue = input[j];
- if (currentValue >= n && currentValue < m) {
- m = currentValue;
- }
- }
-
- // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
- // but guard against overflow
- handledCPCountPlusOne = handledCPCount + 1;
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
- error('overflow');
- }
-
- delta += (m - n) * handledCPCountPlusOne;
- n = m;
-
- for (j = 0; j < inputLength; ++j) {
- currentValue = input[j];
-
- if (currentValue < n && ++delta > maxInt) {
- error('overflow');
- }
-
- if (currentValue == n) {
- // Represent delta as a generalized variable-length integer
- for (q = delta, k = base; /* no condition */; k += base) {
- t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
- if (q < t) {
- break;
- }
- qMinusT = q - t;
- baseMinusT = base - t;
- output.push(
- stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
- );
- q = floor(qMinusT / baseMinusT);
- }
-
- output.push(stringFromCharCode(digitToBasic(q, 0)));
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
- delta = 0;
- ++handledCPCount;
- }
- }
-
- ++delta;
- ++n;
-
- }
- return output.join('');
- }
-
- /**
- * Converts a Punycode string representing a domain name or an email address
- * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
- * it doesn't matter if you call it on a string that has already been
- * converted to Unicode.
- * @memberOf punycode
- * @param {String} input The Punycoded domain name or email address to
- * convert to Unicode.
- * @returns {String} The Unicode representation of the given Punycode
- * string.
- */
- function toUnicode(input) {
- return mapDomain(input, function(string) {
- return regexPunycode.test(string)
- ? decode(string.slice(4).toLowerCase())
- : string;
- });
- }
-
- /**
- * Converts a Unicode string representing a domain name or an email address to
- * Punycode. Only the non-ASCII parts of the domain name will be converted,
- * i.e. it doesn't matter if you call it with a domain that's already in
- * ASCII.
- * @memberOf punycode
- * @param {String} input The domain name or email address to convert, as a
- * Unicode string.
- * @returns {String} The Punycode representation of the given domain name or
- * email address.
- */
- function toASCII(input) {
- return mapDomain(input, function(string) {
- return regexNonASCII.test(string)
- ? 'xn--' + encode(string)
- : string;
- });
- }
-
- /*--------------------------------------------------------------------------*/
-
- /** Define the public API */
- punycode = {
- /**
- * A string representing the current Punycode.js version number.
- * @memberOf punycode
- * @type String
- */
- 'version': '1.4.1',
- /**
- * An object of methods to convert from JavaScript's internal character
- * representation (UCS-2) to Unicode code points, and back.
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode
- * @type Object
- */
- 'ucs2': {
- 'decode': ucs2decode,
- 'encode': ucs2encode
- },
- 'decode': decode,
- 'encode': encode,
- 'toASCII': toASCII,
- 'toUnicode': toUnicode
- };
-
- /** Expose `punycode` */
- // Some AMD build optimizers, like r.js, check for specific condition patterns
- // like the following:
- if (
- typeof define == 'function' &&
- typeof define.amd == 'object' &&
- define.amd
- ) {
- define('punycode', function() {
- return punycode;
- });
- } else if (freeExports && freeModule) {
- if (module.exports == freeExports) {
- // in Node.js, io.js, or RingoJS v0.8.0+
- freeModule.exports = punycode;
- } else {
- // in Narwhal or RingoJS v0.7.0-
- for (key in punycode) {
- punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
- }
- }
- } else {
- // in Rhino or a web browser
- root.punycode = punycode;
- }
-
-}(this));
-
-}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{}]},{},[2])(2)
-});
diff --git a/node_modules/psl/dist/psl.min.js b/node_modules/psl/dist/psl.min.js
deleted file mode 100644
index d5c787e..0000000
--- a/node_modules/psl/dist/psl.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).psl=a()}}(function(){return function s(m,t,u){function r(o,a){if(!t[o]){if(!m[o]){var i="function"==typeof require&&require;if(!a&&i)return i(o,!0);if(p)return p(o,!0);var e=new Error("Cannot find module '"+o+"'");throw e.code="MODULE_NOT_FOUND",e}var n=t[o]={exports:{}};m[o][0].call(n.exports,function(a){return r(m[o][1][a]||a)},n,n.exports,s,m,t,u)}return t[o].exports}for(var p="function"==typeof require&&require,a=0;a<u.length;a++)r(u[a]);return r}({1:[function(a,o,i){o.exports=["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","freight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","gov.af","com.af","org.af","net.af","edu.af","ag","com.ag","org.ag","net.ag","co.ag","nom.ag","ai","off.ai","com.ai","net.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","ed.ao","gv.ao","og.ao","co.ao","pb.ao","it.ao","aq","ar","com.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","net.ar","org.ar","tur.ar","arpa","e164.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","co.at","gv.at","or.at","au","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","info.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","education.tas.edu.au","schools.nsw.edu.au","aw","com.aw","ax","az","com.az","net.az","int.az","gov.az","org.az","edu.az","info.az","pp.az","mil.az","name.az","pro.az","biz.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","bh","com.bh","edu.bh","net.bh","org.bh","gov.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","asso.bj","barreau.bj","gouv.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","org.bo","net.bo","mil.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","politica.bo","profesional.bo","plurinacional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bhz.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","cri.br","cuiaba.br","curitiba.br","def.br","ecn.br","eco.br","edu.br","emp.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","lel.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","net.bs","org.bs","edu.bs","gov.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","com.bz","net.bz","org.bz","edu.bz","gov.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","org.ci","or.ci","com.ci","co.ci","edu.ci","ed.ci","ac.ci","net.ci","go.ci","asso.ci","aéroport.ci","int.ci","presse.ci","md.ci","gouv.ci","*.ck","!www.ck","cl","aprendemas.cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","net.cn","org.cn","mil.cn","公司.cn","网络.cn","網絡.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gz.cn","gx.cn","ha.cn","hb.cn","he.cn","hi.cn","hl.cn","hn.cn","jl.cn","js.cn","jx.cn","ln.cn","nm.cn","nx.cn","qh.cn","sc.cn","sd.cn","sh.cn","sn.cn","sx.cn","tj.cn","xj.cn","xz.cn","yn.cn","zj.cn","hk.cn","mo.cn","tw.cn","co","arts.co","com.co","edu.co","firm.co","gov.co","info.co","int.co","mil.co","net.co","nom.co","org.co","rec.co","web.co","com","coop","cr","ac.cr","co.cr","ed.cr","fi.cr","go.cr","or.cr","sa.cr","cu","com.cu","edu.cu","org.cu","net.cu","gov.cu","inf.cu","cv","cw","com.cw","edu.cw","net.cw","org.cw","cx","gov.cx","cy","ac.cy","biz.cy","com.cy","ekloges.cy","gov.cy","ltd.cy","name.cy","net.cy","org.cy","parliament.cy","press.cy","pro.cy","tm.cy","cz","de","dj","dk","dm","com.dm","net.dm","org.dm","edu.dm","gov.dm","do","art.do","com.do","edu.do","gob.do","gov.do","mil.do","net.do","org.do","sld.do","web.do","dz","com.dz","org.dz","net.dz","gov.dz","edu.dz","asso.dz","pol.dz","art.dz","ec","com.ec","info.ec","net.ec","fin.ec","k12.ec","med.ec","pro.ec","org.ec","edu.ec","gov.ec","gob.ec","mil.ec","edu","ee","edu.ee","gov.ee","riik.ee","lib.ee","med.ee","com.ee","pri.ee","aip.ee","org.ee","fie.ee","eg","com.eg","edu.eg","eun.eg","gov.eg","mil.eg","name.eg","net.eg","org.eg","sci.eg","*.er","es","com.es","nom.es","org.es","gob.es","edu.es","et","com.et","gov.et","org.et","edu.et","biz.et","name.et","info.et","net.et","eu","fi","aland.fi","fj","ac.fj","biz.fj","com.fj","gov.fj","info.fj","mil.fj","name.fj","net.fj","org.fj","pro.fj","*.fk","fm","fo","fr","asso.fr","com.fr","gouv.fr","nom.fr","prd.fr","tm.fr","aeroport.fr","avocat.fr","avoues.fr","cci.fr","chambagri.fr","chirurgiens-dentistes.fr","experts-comptables.fr","geometre-expert.fr","greta.fr","huissier-justice.fr","medecin.fr","notaires.fr","pharmacien.fr","port.fr","veterinaire.fr","ga","gb","gd","ge","com.ge","edu.ge","gov.ge","org.ge","mil.ge","net.ge","pvt.ge","gf","gg","co.gg","net.gg","org.gg","gh","com.gh","edu.gh","gov.gh","org.gh","mil.gh","gi","com.gi","ltd.gi","gov.gi","mod.gi","edu.gi","org.gi","gl","co.gl","com.gl","edu.gl","net.gl","org.gl","gm","gn","ac.gn","com.gn","edu.gn","gov.gn","org.gn","net.gn","gov","gp","com.gp","net.gp","mobi.gp","edu.gp","org.gp","asso.gp","gq","gr","com.gr","edu.gr","net.gr","org.gr","gov.gr","gs","gt","com.gt","edu.gt","gob.gt","ind.gt","mil.gt","net.gt","org.gt","gu","com.gu","edu.gu","gov.gu","guam.gu","info.gu","net.gu","org.gu","web.gu","gw","gy","co.gy","com.gy","edu.gy","gov.gy","net.gy","org.gy","hk","com.hk","edu.hk","gov.hk","idv.hk","net.hk","org.hk","公司.hk","教育.hk","敎育.hk","政府.hk","個人.hk","个人.hk","箇人.hk","網络.hk","网络.hk","组織.hk","網絡.hk","网絡.hk","组织.hk","組織.hk","組织.hk","hm","hn","com.hn","edu.hn","org.hn","net.hn","mil.hn","gob.hn","hr","iz.hr","from.hr","name.hr","com.hr","ht","com.ht","shop.ht","firm.ht","info.ht","adult.ht","net.ht","pro.ht","org.ht","med.ht","art.ht","coop.ht","pol.ht","asso.ht","edu.ht","rel.ht","gouv.ht","perso.ht","hu","co.hu","info.hu","org.hu","priv.hu","sport.hu","tm.hu","2000.hu","agrar.hu","bolt.hu","casino.hu","city.hu","erotica.hu","erotika.hu","film.hu","forum.hu","games.hu","hotel.hu","ingatlan.hu","jogasz.hu","konyvelo.hu","lakas.hu","media.hu","news.hu","reklam.hu","sex.hu","shop.hu","suli.hu","szex.hu","tozsde.hu","utazas.hu","video.hu","id","ac.id","biz.id","co.id","desa.id","go.id","mil.id","my.id","net.id","or.id","ponpes.id","sch.id","web.id","ie","gov.ie","il","ac.il","co.il","gov.il","idf.il","k12.il","muni.il","net.il","org.il","im","ac.im","co.im","com.im","ltd.co.im","net.im","org.im","plc.co.im","tt.im","tv.im","in","co.in","firm.in","net.in","org.in","gen.in","ind.in","nic.in","ac.in","edu.in","res.in","gov.in","mil.in","info","int","eu.int","io","com.io","iq","gov.iq","edu.iq","mil.iq","com.iq","org.iq","net.iq","ir","ac.ir","co.ir","gov.ir","id.ir","net.ir","org.ir","sch.ir","ایران.ir","ايران.ir","is","net.is","com.is","edu.is","gov.is","org.is","int.is","it","gov.it","edu.it","abr.it","abruzzo.it","aosta-valley.it","aostavalley.it","bas.it","basilicata.it","cal.it","calabria.it","cam.it","campania.it","emilia-romagna.it","emiliaromagna.it","emr.it","friuli-v-giulia.it","friuli-ve-giulia.it","friuli-vegiulia.it","friuli-venezia-giulia.it","friuli-veneziagiulia.it","friuli-vgiulia.it","friuliv-giulia.it","friulive-giulia.it","friulivegiulia.it","friulivenezia-giulia.it","friuliveneziagiulia.it","friulivgiulia.it","fvg.it","laz.it","lazio.it","lig.it","liguria.it","lom.it","lombardia.it","lombardy.it","lucania.it","mar.it","marche.it","mol.it","molise.it","piedmont.it","piemonte.it","pmn.it","pug.it","puglia.it","sar.it","sardegna.it","sardinia.it","sic.it","sicilia.it","sicily.it","taa.it","tos.it","toscana.it","trentin-sud-tirol.it","trentin-süd-tirol.it","trentin-sudtirol.it","trentin-südtirol.it","trentin-sued-tirol.it","trentin-suedtirol.it","trentino-a-adige.it","trentino-aadige.it","trentino-alto-adige.it","trentino-altoadige.it","trentino-s-tirol.it","trentino-stirol.it","trentino-sud-tirol.it","trentino-süd-tirol.it","trentino-sudtirol.it","trentino-südtirol.it","trentino-sued-tirol.it","trentino-suedtirol.it","trentino.it","trentinoa-adige.it","trentinoaadige.it","trentinoalto-adige.it","trentinoaltoadige.it","trentinos-tirol.it","trentinostirol.it","trentinosud-tirol.it","trentinosüd-tirol.it","trentinosudtirol.it","trentinosüdtirol.it","trentinosued-tirol.it","trentinosuedtirol.it","trentinsud-tirol.it","trentinsüd-tirol.it","trentinsudtirol.it","trentinsüdtirol.it","trentinsued-tirol.it","trentinsuedtirol.it","tuscany.it","umb.it","umbria.it","val-d-aosta.it","val-daosta.it","vald-aosta.it","valdaosta.it","valle-aosta.it","valle-d-aosta.it","valle-daosta.it","valleaosta.it","valled-aosta.it","valledaosta.it","vallee-aoste.it","vallée-aoste.it","vallee-d-aoste.it","vallée-d-aoste.it","valleeaoste.it","valléeaoste.it","valleedaoste.it","valléedaoste.it","vao.it","vda.it","ven.it","veneto.it","ag.it","agrigento.it","al.it","alessandria.it","alto-adige.it","altoadige.it","an.it","ancona.it","andria-barletta-trani.it","andria-trani-barletta.it","andriabarlettatrani.it","andriatranibarletta.it","ao.it","aosta.it","aoste.it","ap.it","aq.it","aquila.it","ar.it","arezzo.it","ascoli-piceno.it","ascolipiceno.it","asti.it","at.it","av.it","avellino.it","ba.it","balsan-sudtirol.it","balsan-südtirol.it","balsan-suedtirol.it","balsan.it","bari.it","barletta-trani-andria.it","barlettatraniandria.it","belluno.it","benevento.it","bergamo.it","bg.it","bi.it","biella.it","bl.it","bn.it","bo.it","bologna.it","bolzano-altoadige.it","bolzano.it","bozen-sudtirol.it","bozen-südtirol.it","bozen-suedtirol.it","bozen.it","br.it","brescia.it","brindisi.it","bs.it","bt.it","bulsan-sudtirol.it","bulsan-südtirol.it","bulsan-suedtirol.it","bulsan.it","bz.it","ca.it","cagliari.it","caltanissetta.it","campidano-medio.it","campidanomedio.it","campobasso.it","carbonia-iglesias.it","carboniaiglesias.it","carrara-massa.it","carraramassa.it","caserta.it","catania.it","catanzaro.it","cb.it","ce.it","cesena-forli.it","cesena-forlì.it","cesenaforli.it","cesenaforlì.it","ch.it","chieti.it","ci.it","cl.it","cn.it","co.it","como.it","cosenza.it","cr.it","cremona.it","crotone.it","cs.it","ct.it","cuneo.it","cz.it","dell-ogliastra.it","dellogliastra.it","en.it","enna.it","fc.it","fe.it","fermo.it","ferrara.it","fg.it","fi.it","firenze.it","florence.it","fm.it","foggia.it","forli-cesena.it","forlì-cesena.it","forlicesena.it","forlìcesena.it","fr.it","frosinone.it","ge.it","genoa.it","genova.it","go.it","gorizia.it","gr.it","grosseto.it","iglesias-carbonia.it","iglesiascarbonia.it","im.it","imperia.it","is.it","isernia.it","kr.it","la-spezia.it","laquila.it","laspezia.it","latina.it","lc.it","le.it","lecce.it","lecco.it","li.it","livorno.it","lo.it","lodi.it","lt.it","lu.it","lucca.it","macerata.it","mantova.it","massa-carrara.it","massacarrara.it","matera.it","mb.it","mc.it","me.it","medio-campidano.it","mediocampidano.it","messina.it","mi.it","milan.it","milano.it","mn.it","mo.it","modena.it","monza-brianza.it","monza-e-della-brianza.it","monza.it","monzabrianza.it","monzaebrianza.it","monzaedellabrianza.it","ms.it","mt.it","na.it","naples.it","napoli.it","no.it","novara.it","nu.it","nuoro.it","og.it","ogliastra.it","olbia-tempio.it","olbiatempio.it","or.it","oristano.it","ot.it","pa.it","padova.it","padua.it","palermo.it","parma.it","pavia.it","pc.it","pd.it","pe.it","perugia.it","pesaro-urbino.it","pesarourbino.it","pescara.it","pg.it","pi.it","piacenza.it","pisa.it","pistoia.it","pn.it","po.it","pordenone.it","potenza.it","pr.it","prato.it","pt.it","pu.it","pv.it","pz.it","ra.it","ragusa.it","ravenna.it","rc.it","re.it","reggio-calabria.it","reggio-emilia.it","reggiocalabria.it","reggioemilia.it","rg.it","ri.it","rieti.it","rimini.it","rm.it","rn.it","ro.it","roma.it","rome.it","rovigo.it","sa.it","salerno.it","sassari.it","savona.it","si.it","siena.it","siracusa.it","so.it","sondrio.it","sp.it","sr.it","ss.it","suedtirol.it","südtirol.it","sv.it","ta.it","taranto.it","te.it","tempio-olbia.it","tempioolbia.it","teramo.it","terni.it","tn.it","to.it","torino.it","tp.it","tr.it","trani-andria-barletta.it","trani-barletta-andria.it","traniandriabarletta.it","tranibarlettaandria.it","trapani.it","trento.it","treviso.it","trieste.it","ts.it","turin.it","tv.it","ud.it","udine.it","urbino-pesaro.it","urbinopesaro.it","va.it","varese.it","vb.it","vc.it","ve.it","venezia.it","venice.it","verbania.it","vercelli.it","verona.it","vi.it","vibo-valentia.it","vibovalentia.it","vicenza.it","viterbo.it","vr.it","vs.it","vt.it","vv.it","je","co.je","net.je","org.je","*.jm","jo","com.jo","org.jo","net.jo","edu.jo","sch.jo","gov.jo","mil.jo","name.jo","jobs","jp","ac.jp","ad.jp","co.jp","ed.jp","go.jp","gr.jp","lg.jp","ne.jp","or.jp","aichi.jp","akita.jp","aomori.jp","chiba.jp","ehime.jp","fukui.jp","fukuoka.jp","fukushima.jp","gifu.jp","gunma.jp","hiroshima.jp","hokkaido.jp","hyogo.jp","ibaraki.jp","ishikawa.jp","iwate.jp","kagawa.jp","kagoshima.jp","kanagawa.jp","kochi.jp","kumamoto.jp","kyoto.jp","mie.jp","miyagi.jp","miyazaki.jp","nagano.jp","nagasaki.jp","nara.jp","niigata.jp","oita.jp","okayama.jp","okinawa.jp","osaka.jp","saga.jp","saitama.jp","shiga.jp","shimane.jp","shizuoka.jp","tochigi.jp","tokushima.jp","tokyo.jp","tottori.jp","toyama.jp","wakayama.jp","yamagata.jp","yamaguchi.jp","yamanashi.jp","栃木.jp","愛知.jp","愛媛.jp","兵庫.jp","熊本.jp","茨城.jp","北海道.jp","千葉.jp","和歌山.jp","長崎.jp","長野.jp","新潟.jp","青森.jp","静岡.jp","東京.jp","石川.jp","埼玉.jp","三重.jp","京都.jp","佐賀.jp","大分.jp","大阪.jp","奈良.jp","宮城.jp","宮崎.jp","富山.jp","山口.jp","山形.jp","山梨.jp","岩手.jp","岐阜.jp","岡山.jp","島根.jp","広島.jp","徳島.jp","沖縄.jp","滋賀.jp","神奈川.jp","福井.jp","福岡.jp","福島.jp","秋田.jp","群馬.jp","香川.jp","高知.jp","鳥取.jp","鹿児島.jp","*.kawasaki.jp","*.kitakyushu.jp","*.kobe.jp","*.nagoya.jp","*.sapporo.jp","*.sendai.jp","*.yokohama.jp","!city.kawasaki.jp","!city.kitakyushu.jp","!city.kobe.jp","!city.nagoya.jp","!city.sapporo.jp","!city.sendai.jp","!city.yokohama.jp","aisai.aichi.jp","ama.aichi.jp","anjo.aichi.jp","asuke.aichi.jp","chiryu.aichi.jp","chita.aichi.jp","fuso.aichi.jp","gamagori.aichi.jp","handa.aichi.jp","hazu.aichi.jp","hekinan.aichi.jp","higashiura.aichi.jp","ichinomiya.aichi.jp","inazawa.aichi.jp","inuyama.aichi.jp","isshiki.aichi.jp","iwakura.aichi.jp","kanie.aichi.jp","kariya.aichi.jp","kasugai.aichi.jp","kira.aichi.jp","kiyosu.aichi.jp","komaki.aichi.jp","konan.aichi.jp","kota.aichi.jp","mihama.aichi.jp","miyoshi.aichi.jp","nishio.aichi.jp","nisshin.aichi.jp","obu.aichi.jp","oguchi.aichi.jp","oharu.aichi.jp","okazaki.aichi.jp","owariasahi.aichi.jp","seto.aichi.jp","shikatsu.aichi.jp","shinshiro.aichi.jp","shitara.aichi.jp","tahara.aichi.jp","takahama.aichi.jp","tobishima.aichi.jp","toei.aichi.jp","togo.aichi.jp","tokai.aichi.jp","tokoname.aichi.jp","toyoake.aichi.jp","toyohashi.aichi.jp","toyokawa.aichi.jp","toyone.aichi.jp","toyota.aichi.jp","tsushima.aichi.jp","yatomi.aichi.jp","akita.akita.jp","daisen.akita.jp","fujisato.akita.jp","gojome.akita.jp","hachirogata.akita.jp","happou.akita.jp","higashinaruse.akita.jp","honjo.akita.jp","honjyo.akita.jp","ikawa.akita.jp","kamikoani.akita.jp","kamioka.akita.jp","katagami.akita.jp","kazuno.akita.jp","kitaakita.akita.jp","kosaka.akita.jp","kyowa.akita.jp","misato.akita.jp","mitane.akita.jp","moriyoshi.akita.jp","nikaho.akita.jp","noshiro.akita.jp","odate.akita.jp","oga.akita.jp","ogata.akita.jp","semboku.akita.jp","yokote.akita.jp","yurihonjo.akita.jp","aomori.aomori.jp","gonohe.aomori.jp","hachinohe.aomori.jp","hashikami.aomori.jp","hiranai.aomori.jp","hirosaki.aomori.jp","itayanagi.aomori.jp","kuroishi.aomori.jp","misawa.aomori.jp","mutsu.aomori.jp","nakadomari.aomori.jp","noheji.aomori.jp","oirase.aomori.jp","owani.aomori.jp","rokunohe.aomori.jp","sannohe.aomori.jp","shichinohe.aomori.jp","shingo.aomori.jp","takko.aomori.jp","towada.aomori.jp","tsugaru.aomori.jp","tsuruta.aomori.jp","abiko.chiba.jp","asahi.chiba.jp","chonan.chiba.jp","chosei.chiba.jp","choshi.chiba.jp","chuo.chiba.jp","funabashi.chiba.jp","futtsu.chiba.jp","hanamigawa.chiba.jp","ichihara.chiba.jp","ichikawa.chiba.jp","ichinomiya.chiba.jp","inzai.chiba.jp","isumi.chiba.jp","kamagaya.chiba.jp","kamogawa.chiba.jp","kashiwa.chiba.jp","katori.chiba.jp","katsuura.chiba.jp","kimitsu.chiba.jp","kisarazu.chiba.jp","kozaki.chiba.jp","kujukuri.chiba.jp","kyonan.chiba.jp","matsudo.chiba.jp","midori.chiba.jp","mihama.chiba.jp","minamiboso.chiba.jp","mobara.chiba.jp","mutsuzawa.chiba.jp","nagara.chiba.jp","nagareyama.chiba.jp","narashino.chiba.jp","narita.chiba.jp","noda.chiba.jp","oamishirasato.chiba.jp","omigawa.chiba.jp","onjuku.chiba.jp","otaki.chiba.jp","sakae.chiba.jp","sakura.chiba.jp","shimofusa.chiba.jp","shirako.chiba.jp","shiroi.chiba.jp","shisui.chiba.jp","sodegaura.chiba.jp","sosa.chiba.jp","tako.chiba.jp","tateyama.chiba.jp","togane.chiba.jp","tohnosho.chiba.jp","tomisato.chiba.jp","urayasu.chiba.jp","yachimata.chiba.jp","yachiyo.chiba.jp","yokaichiba.chiba.jp","yokoshibahikari.chiba.jp","yotsukaido.chiba.jp","ainan.ehime.jp","honai.ehime.jp","ikata.ehime.jp","imabari.ehime.jp","iyo.ehime.jp","kamijima.ehime.jp","kihoku.ehime.jp","kumakogen.ehime.jp","masaki.ehime.jp","matsuno.ehime.jp","matsuyama.ehime.jp","namikata.ehime.jp","niihama.ehime.jp","ozu.ehime.jp","saijo.ehime.jp","seiyo.ehime.jp","shikokuchuo.ehime.jp","tobe.ehime.jp","toon.ehime.jp","uchiko.ehime.jp","uwajima.ehime.jp","yawatahama.ehime.jp","echizen.fukui.jp","eiheiji.fukui.jp","fukui.fukui.jp","ikeda.fukui.jp","katsuyama.fukui.jp","mihama.fukui.jp","minamiechizen.fukui.jp","obama.fukui.jp","ohi.fukui.jp","ono.fukui.jp","sabae.fukui.jp","sakai.fukui.jp","takahama.fukui.jp","tsuruga.fukui.jp","wakasa.fukui.jp","ashiya.fukuoka.jp","buzen.fukuoka.jp","chikugo.fukuoka.jp","chikuho.fukuoka.jp","chikujo.fukuoka.jp","chikushino.fukuoka.jp","chikuzen.fukuoka.jp","chuo.fukuoka.jp","dazaifu.fukuoka.jp","fukuchi.fukuoka.jp","hakata.fukuoka.jp","higashi.fukuoka.jp","hirokawa.fukuoka.jp","hisayama.fukuoka.jp","iizuka.fukuoka.jp","inatsuki.fukuoka.jp","kaho.fukuoka.jp","kasuga.fukuoka.jp","kasuya.fukuoka.jp","kawara.fukuoka.jp","keisen.fukuoka.jp","koga.fukuoka.jp","kurate.fukuoka.jp","kurogi.fukuoka.jp","kurume.fukuoka.jp","minami.fukuoka.jp","miyako.fukuoka.jp","miyama.fukuoka.jp","miyawaka.fukuoka.jp","mizumaki.fukuoka.jp","munakata.fukuoka.jp","nakagawa.fukuoka.jp","nakama.fukuoka.jp","nishi.fukuoka.jp","nogata.fukuoka.jp","ogori.fukuoka.jp","okagaki.fukuoka.jp","okawa.fukuoka.jp","oki.fukuoka.jp","omuta.fukuoka.jp","onga.fukuoka.jp","onojo.fukuoka.jp","oto.fukuoka.jp","saigawa.fukuoka.jp","sasaguri.fukuoka.jp","shingu.fukuoka.jp","shinyoshitomi.fukuoka.jp","shonai.fukuoka.jp","soeda.fukuoka.jp","sue.fukuoka.jp","tachiarai.fukuoka.jp","tagawa.fukuoka.jp","takata.fukuoka.jp","toho.fukuoka.jp","toyotsu.fukuoka.jp","tsuiki.fukuoka.jp","ukiha.fukuoka.jp","umi.fukuoka.jp","usui.fukuoka.jp","yamada.fukuoka.jp","yame.fukuoka.jp","yanagawa.fukuoka.jp","yukuhashi.fukuoka.jp","aizubange.fukushima.jp","aizumisato.fukushima.jp","aizuwakamatsu.fukushima.jp","asakawa.fukushima.jp","bandai.fukushima.jp","date.fukushima.jp","fukushima.fukushima.jp","furudono.fukushima.jp","futaba.fukushima.jp","hanawa.fukushima.jp","higashi.fukushima.jp","hirata.fukushima.jp","hirono.fukushima.jp","iitate.fukushima.jp","inawashiro.fukushima.jp","ishikawa.fukushima.jp","iwaki.fukushima.jp","izumizaki.fukushima.jp","kagamiishi.fukushima.jp","kaneyama.fukushima.jp","kawamata.fukushima.jp","kitakata.fukushima.jp","kitashiobara.fukushima.jp","koori.fukushima.jp","koriyama.fukushima.jp","kunimi.fukushima.jp","miharu.fukushima.jp","mishima.fukushima.jp","namie.fukushima.jp","nango.fukushima.jp","nishiaizu.fukushima.jp","nishigo.fukushima.jp","okuma.fukushima.jp","omotego.fukushima.jp","ono.fukushima.jp","otama.fukushima.jp","samegawa.fukushima.jp","shimogo.fukushima.jp","shirakawa.fukushima.jp","showa.fukushima.jp","soma.fukushima.jp","sukagawa.fukushima.jp","taishin.fukushima.jp","tamakawa.fukushima.jp","tanagura.fukushima.jp","tenei.fukushima.jp","yabuki.fukushima.jp","yamato.fukushima.jp","yamatsuri.fukushima.jp","yanaizu.fukushima.jp","yugawa.fukushima.jp","anpachi.gifu.jp","ena.gifu.jp","gifu.gifu.jp","ginan.gifu.jp","godo.gifu.jp","gujo.gifu.jp","hashima.gifu.jp","hichiso.gifu.jp","hida.gifu.jp","higashishirakawa.gifu.jp","ibigawa.gifu.jp","ikeda.gifu.jp","kakamigahara.gifu.jp","kani.gifu.jp","kasahara.gifu.jp","kasamatsu.gifu.jp","kawaue.gifu.jp","kitagata.gifu.jp","mino.gifu.jp","minokamo.gifu.jp","mitake.gifu.jp","mizunami.gifu.jp","motosu.gifu.jp","nakatsugawa.gifu.jp","ogaki.gifu.jp","sakahogi.gifu.jp","seki.gifu.jp","sekigahara.gifu.jp","shirakawa.gifu.jp","tajimi.gifu.jp","takayama.gifu.jp","tarui.gifu.jp","toki.gifu.jp","tomika.gifu.jp","wanouchi.gifu.jp","yamagata.gifu.jp","yaotsu.gifu.jp","yoro.gifu.jp","annaka.gunma.jp","chiyoda.gunma.jp","fujioka.gunma.jp","higashiagatsuma.gunma.jp","isesaki.gunma.jp","itakura.gunma.jp","kanna.gunma.jp","kanra.gunma.jp","katashina.gunma.jp","kawaba.gunma.jp","kiryu.gunma.jp","kusatsu.gunma.jp","maebashi.gunma.jp","meiwa.gunma.jp","midori.gunma.jp","minakami.gunma.jp","naganohara.gunma.jp","nakanojo.gunma.jp","nanmoku.gunma.jp","numata.gunma.jp","oizumi.gunma.jp","ora.gunma.jp","ota.gunma.jp","shibukawa.gunma.jp","shimonita.gunma.jp","shinto.gunma.jp","showa.gunma.jp","takasaki.gunma.jp","takayama.gunma.jp","tamamura.gunma.jp","tatebayashi.gunma.jp","tomioka.gunma.jp","tsukiyono.gunma.jp","tsumagoi.gunma.jp","ueno.gunma.jp","yoshioka.gunma.jp","asaminami.hiroshima.jp","daiwa.hiroshima.jp","etajima.hiroshima.jp","fuchu.hiroshima.jp","fukuyama.hiroshima.jp","hatsukaichi.hiroshima.jp","higashihiroshima.hiroshima.jp","hongo.hiroshima.jp","jinsekikogen.hiroshima.jp","kaita.hiroshima.jp","kui.hiroshima.jp","kumano.hiroshima.jp","kure.hiroshima.jp","mihara.hiroshima.jp","miyoshi.hiroshima.jp","naka.hiroshima.jp","onomichi.hiroshima.jp","osakikamijima.hiroshima.jp","otake.hiroshima.jp","saka.hiroshima.jp","sera.hiroshima.jp","seranishi.hiroshima.jp","shinichi.hiroshima.jp","shobara.hiroshima.jp","takehara.hiroshima.jp","abashiri.hokkaido.jp","abira.hokkaido.jp","aibetsu.hokkaido.jp","akabira.hokkaido.jp","akkeshi.hokkaido.jp","asahikawa.hokkaido.jp","ashibetsu.hokkaido.jp","ashoro.hokkaido.jp","assabu.hokkaido.jp","atsuma.hokkaido.jp","bibai.hokkaido.jp","biei.hokkaido.jp","bifuka.hokkaido.jp","bihoro.hokkaido.jp","biratori.hokkaido.jp","chippubetsu.hokkaido.jp","chitose.hokkaido.jp","date.hokkaido.jp","ebetsu.hokkaido.jp","embetsu.hokkaido.jp","eniwa.hokkaido.jp","erimo.hokkaido.jp","esan.hokkaido.jp","esashi.hokkaido.jp","fukagawa.hokkaido.jp","fukushima.hokkaido.jp","furano.hokkaido.jp","furubira.hokkaido.jp","haboro.hokkaido.jp","hakodate.hokkaido.jp","hamatonbetsu.hokkaido.jp","hidaka.hokkaido.jp","higashikagura.hokkaido.jp","higashikawa.hokkaido.jp","hiroo.hokkaido.jp","hokuryu.hokkaido.jp","hokuto.hokkaido.jp","honbetsu.hokkaido.jp","horokanai.hokkaido.jp","horonobe.hokkaido.jp","ikeda.hokkaido.jp","imakane.hokkaido.jp","ishikari.hokkaido.jp","iwamizawa.hokkaido.jp","iwanai.hokkaido.jp","kamifurano.hokkaido.jp","kamikawa.hokkaido.jp","kamishihoro.hokkaido.jp","kamisunagawa.hokkaido.jp","kamoenai.hokkaido.jp","kayabe.hokkaido.jp","kembuchi.hokkaido.jp","kikonai.hokkaido.jp","kimobetsu.hokkaido.jp","kitahiroshima.hokkaido.jp","kitami.hokkaido.jp","kiyosato.hokkaido.jp","koshimizu.hokkaido.jp","kunneppu.hokkaido.jp","kuriyama.hokkaido.jp","kuromatsunai.hokkaido.jp","kushiro.hokkaido.jp","kutchan.hokkaido.jp","kyowa.hokkaido.jp","mashike.hokkaido.jp","matsumae.hokkaido.jp","mikasa.hokkaido.jp","minamifurano.hokkaido.jp","mombetsu.hokkaido.jp","moseushi.hokkaido.jp","mukawa.hokkaido.jp","muroran.hokkaido.jp","naie.hokkaido.jp","nakagawa.hokkaido.jp","nakasatsunai.hokkaido.jp","nakatombetsu.hokkaido.jp","nanae.hokkaido.jp","nanporo.hokkaido.jp","nayoro.hokkaido.jp","nemuro.hokkaido.jp","niikappu.hokkaido.jp","niki.hokkaido.jp","nishiokoppe.hokkaido.jp","noboribetsu.hokkaido.jp","numata.hokkaido.jp","obihiro.hokkaido.jp","obira.hokkaido.jp","oketo.hokkaido.jp","okoppe.hokkaido.jp","otaru.hokkaido.jp","otobe.hokkaido.jp","otofuke.hokkaido.jp","otoineppu.hokkaido.jp","oumu.hokkaido.jp","ozora.hokkaido.jp","pippu.hokkaido.jp","rankoshi.hokkaido.jp","rebun.hokkaido.jp","rikubetsu.hokkaido.jp","rishiri.hokkaido.jp","rishirifuji.hokkaido.jp","saroma.hokkaido.jp","sarufutsu.hokkaido.jp","shakotan.hokkaido.jp","shari.hokkaido.jp","shibecha.hokkaido.jp","shibetsu.hokkaido.jp","shikabe.hokkaido.jp","shikaoi.hokkaido.jp","shimamaki.hokkaido.jp","shimizu.hokkaido.jp","shimokawa.hokkaido.jp","shinshinotsu.hokkaido.jp","shintoku.hokkaido.jp","shiranuka.hokkaido.jp","shiraoi.hokkaido.jp","shiriuchi.hokkaido.jp","sobetsu.hokkaido.jp","sunagawa.hokkaido.jp","taiki.hokkaido.jp","takasu.hokkaido.jp","takikawa.hokkaido.jp","takinoue.hokkaido.jp","teshikaga.hokkaido.jp","tobetsu.hokkaido.jp","tohma.hokkaido.jp","tomakomai.hokkaido.jp","tomari.hokkaido.jp","toya.hokkaido.jp","toyako.hokkaido.jp","toyotomi.hokkaido.jp","toyoura.hokkaido.jp","tsubetsu.hokkaido.jp","tsukigata.hokkaido.jp","urakawa.hokkaido.jp","urausu.hokkaido.jp","uryu.hokkaido.jp","utashinai.hokkaido.jp","wakkanai.hokkaido.jp","wassamu.hokkaido.jp","yakumo.hokkaido.jp","yoichi.hokkaido.jp","aioi.hyogo.jp","akashi.hyogo.jp","ako.hyogo.jp","amagasaki.hyogo.jp","aogaki.hyogo.jp","asago.hyogo.jp","ashiya.hyogo.jp","awaji.hyogo.jp","fukusaki.hyogo.jp","goshiki.hyogo.jp","harima.hyogo.jp","himeji.hyogo.jp","ichikawa.hyogo.jp","inagawa.hyogo.jp","itami.hyogo.jp","kakogawa.hyogo.jp","kamigori.hyogo.jp","kamikawa.hyogo.jp","kasai.hyogo.jp","kasuga.hyogo.jp","kawanishi.hyogo.jp","miki.hyogo.jp","minamiawaji.hyogo.jp","nishinomiya.hyogo.jp","nishiwaki.hyogo.jp","ono.hyogo.jp","sanda.hyogo.jp","sannan.hyogo.jp","sasayama.hyogo.jp","sayo.hyogo.jp","shingu.hyogo.jp","shinonsen.hyogo.jp","shiso.hyogo.jp","sumoto.hyogo.jp","taishi.hyogo.jp","taka.hyogo.jp","takarazuka.hyogo.jp","takasago.hyogo.jp","takino.hyogo.jp","tamba.hyogo.jp","tatsuno.hyogo.jp","toyooka.hyogo.jp","yabu.hyogo.jp","yashiro.hyogo.jp","yoka.hyogo.jp","yokawa.hyogo.jp","ami.ibaraki.jp","asahi.ibaraki.jp","bando.ibaraki.jp","chikusei.ibaraki.jp","daigo.ibaraki.jp","fujishiro.ibaraki.jp","hitachi.ibaraki.jp","hitachinaka.ibaraki.jp","hitachiomiya.ibaraki.jp","hitachiota.ibaraki.jp","ibaraki.ibaraki.jp","ina.ibaraki.jp","inashiki.ibaraki.jp","itako.ibaraki.jp","iwama.ibaraki.jp","joso.ibaraki.jp","kamisu.ibaraki.jp","kasama.ibaraki.jp","kashima.ibaraki.jp","kasumigaura.ibaraki.jp","koga.ibaraki.jp","miho.ibaraki.jp","mito.ibaraki.jp","moriya.ibaraki.jp","naka.ibaraki.jp","namegata.ibaraki.jp","oarai.ibaraki.jp","ogawa.ibaraki.jp","omitama.ibaraki.jp","ryugasaki.ibaraki.jp","sakai.ibaraki.jp","sakuragawa.ibaraki.jp","shimodate.ibaraki.jp","shimotsuma.ibaraki.jp","shirosato.ibaraki.jp","sowa.ibaraki.jp","suifu.ibaraki.jp","takahagi.ibaraki.jp","tamatsukuri.ibaraki.jp","tokai.ibaraki.jp","tomobe.ibaraki.jp","tone.ibaraki.jp","toride.ibaraki.jp","tsuchiura.ibaraki.jp","tsukuba.ibaraki.jp","uchihara.ibaraki.jp","ushiku.ibaraki.jp","yachiyo.ibaraki.jp","yamagata.ibaraki.jp","yawara.ibaraki.jp","yuki.ibaraki.jp","anamizu.ishikawa.jp","hakui.ishikawa.jp","hakusan.ishikawa.jp","kaga.ishikawa.jp","kahoku.ishikawa.jp","kanazawa.ishikawa.jp","kawakita.ishikawa.jp","komatsu.ishikawa.jp","nakanoto.ishikawa.jp","nanao.ishikawa.jp","nomi.ishikawa.jp","nonoichi.ishikawa.jp","noto.ishikawa.jp","shika.ishikawa.jp","suzu.ishikawa.jp","tsubata.ishikawa.jp","tsurugi.ishikawa.jp","uchinada.ishikawa.jp","wajima.ishikawa.jp","fudai.iwate.jp","fujisawa.iwate.jp","hanamaki.iwate.jp","hiraizumi.iwate.jp","hirono.iwate.jp","ichinohe.iwate.jp","ichinoseki.iwate.jp","iwaizumi.iwate.jp","iwate.iwate.jp","joboji.iwate.jp","kamaishi.iwate.jp","kanegasaki.iwate.jp","karumai.iwate.jp","kawai.iwate.jp","kitakami.iwate.jp","kuji.iwate.jp","kunohe.iwate.jp","kuzumaki.iwate.jp","miyako.iwate.jp","mizusawa.iwate.jp","morioka.iwate.jp","ninohe.iwate.jp","noda.iwate.jp","ofunato.iwate.jp","oshu.iwate.jp","otsuchi.iwate.jp","rikuzentakata.iwate.jp","shiwa.iwate.jp","shizukuishi.iwate.jp","sumita.iwate.jp","tanohata.iwate.jp","tono.iwate.jp","yahaba.iwate.jp","yamada.iwate.jp","ayagawa.kagawa.jp","higashikagawa.kagawa.jp","kanonji.kagawa.jp","kotohira.kagawa.jp","manno.kagawa.jp","marugame.kagawa.jp","mitoyo.kagawa.jp","naoshima.kagawa.jp","sanuki.kagawa.jp","tadotsu.kagawa.jp","takamatsu.kagawa.jp","tonosho.kagawa.jp","uchinomi.kagawa.jp","utazu.kagawa.jp","zentsuji.kagawa.jp","akune.kagoshima.jp","amami.kagoshima.jp","hioki.kagoshima.jp","isa.kagoshima.jp","isen.kagoshima.jp","izumi.kagoshima.jp","kagoshima.kagoshima.jp","kanoya.kagoshima.jp","kawanabe.kagoshima.jp","kinko.kagoshima.jp","kouyama.kagoshima.jp","makurazaki.kagoshima.jp","matsumoto.kagoshima.jp","minamitane.kagoshima.jp","nakatane.kagoshima.jp","nishinoomote.kagoshima.jp","satsumasendai.kagoshima.jp","soo.kagoshima.jp","tarumizu.kagoshima.jp","yusui.kagoshima.jp","aikawa.kanagawa.jp","atsugi.kanagawa.jp","ayase.kanagawa.jp","chigasaki.kanagawa.jp","ebina.kanagawa.jp","fujisawa.kanagawa.jp","hadano.kanagawa.jp","hakone.kanagawa.jp","hiratsuka.kanagawa.jp","isehara.kanagawa.jp","kaisei.kanagawa.jp","kamakura.kanagawa.jp","kiyokawa.kanagawa.jp","matsuda.kanagawa.jp","minamiashigara.kanagawa.jp","miura.kanagawa.jp","nakai.kanagawa.jp","ninomiya.kanagawa.jp","odawara.kanagawa.jp","oi.kanagawa.jp","oiso.kanagawa.jp","sagamihara.kanagawa.jp","samukawa.kanagawa.jp","tsukui.kanagawa.jp","yamakita.kanagawa.jp","yamato.kanagawa.jp","yokosuka.kanagawa.jp","yugawara.kanagawa.jp","zama.kanagawa.jp","zushi.kanagawa.jp","aki.kochi.jp","geisei.kochi.jp","hidaka.kochi.jp","higashitsuno.kochi.jp","ino.kochi.jp","kagami.kochi.jp","kami.kochi.jp","kitagawa.kochi.jp","kochi.kochi.jp","mihara.kochi.jp","motoyama.kochi.jp","muroto.kochi.jp","nahari.kochi.jp","nakamura.kochi.jp","nankoku.kochi.jp","nishitosa.kochi.jp","niyodogawa.kochi.jp","ochi.kochi.jp","okawa.kochi.jp","otoyo.kochi.jp","otsuki.kochi.jp","sakawa.kochi.jp","sukumo.kochi.jp","susaki.kochi.jp","tosa.kochi.jp","tosashimizu.kochi.jp","toyo.kochi.jp","tsuno.kochi.jp","umaji.kochi.jp","yasuda.kochi.jp","yusuhara.kochi.jp","amakusa.kumamoto.jp","arao.kumamoto.jp","aso.kumamoto.jp","choyo.kumamoto.jp","gyokuto.kumamoto.jp","kamiamakusa.kumamoto.jp","kikuchi.kumamoto.jp","kumamoto.kumamoto.jp","mashiki.kumamoto.jp","mifune.kumamoto.jp","minamata.kumamoto.jp","minamioguni.kumamoto.jp","nagasu.kumamoto.jp","nishihara.kumamoto.jp","oguni.kumamoto.jp","ozu.kumamoto.jp","sumoto.kumamoto.jp","takamori.kumamoto.jp","uki.kumamoto.jp","uto.kumamoto.jp","yamaga.kumamoto.jp","yamato.kumamoto.jp","yatsushiro.kumamoto.jp","ayabe.kyoto.jp","fukuchiyama.kyoto.jp","higashiyama.kyoto.jp","ide.kyoto.jp","ine.kyoto.jp","joyo.kyoto.jp","kameoka.kyoto.jp","kamo.kyoto.jp","kita.kyoto.jp","kizu.kyoto.jp","kumiyama.kyoto.jp","kyotamba.kyoto.jp","kyotanabe.kyoto.jp","kyotango.kyoto.jp","maizuru.kyoto.jp","minami.kyoto.jp","minamiyamashiro.kyoto.jp","miyazu.kyoto.jp","muko.kyoto.jp","nagaokakyo.kyoto.jp","nakagyo.kyoto.jp","nantan.kyoto.jp","oyamazaki.kyoto.jp","sakyo.kyoto.jp","seika.kyoto.jp","tanabe.kyoto.jp","uji.kyoto.jp","ujitawara.kyoto.jp","wazuka.kyoto.jp","yamashina.kyoto.jp","yawata.kyoto.jp","asahi.mie.jp","inabe.mie.jp","ise.mie.jp","kameyama.mie.jp","kawagoe.mie.jp","kiho.mie.jp","kisosaki.mie.jp","kiwa.mie.jp","komono.mie.jp","kumano.mie.jp","kuwana.mie.jp","matsusaka.mie.jp","meiwa.mie.jp","mihama.mie.jp","minamiise.mie.jp","misugi.mie.jp","miyama.mie.jp","nabari.mie.jp","shima.mie.jp","suzuka.mie.jp","tado.mie.jp","taiki.mie.jp","taki.mie.jp","tamaki.mie.jp","toba.mie.jp","tsu.mie.jp","udono.mie.jp","ureshino.mie.jp","watarai.mie.jp","yokkaichi.mie.jp","furukawa.miyagi.jp","higashimatsushima.miyagi.jp","ishinomaki.miyagi.jp","iwanuma.miyagi.jp","kakuda.miyagi.jp","kami.miyagi.jp","kawasaki.miyagi.jp","marumori.miyagi.jp","matsushima.miyagi.jp","minamisanriku.miyagi.jp","misato.miyagi.jp","murata.miyagi.jp","natori.miyagi.jp","ogawara.miyagi.jp","ohira.miyagi.jp","onagawa.miyagi.jp","osaki.miyagi.jp","rifu.miyagi.jp","semine.miyagi.jp","shibata.miyagi.jp","shichikashuku.miyagi.jp","shikama.miyagi.jp","shiogama.miyagi.jp","shiroishi.miyagi.jp","tagajo.miyagi.jp","taiwa.miyagi.jp","tome.miyagi.jp","tomiya.miyagi.jp","wakuya.miyagi.jp","watari.miyagi.jp","yamamoto.miyagi.jp","zao.miyagi.jp","aya.miyazaki.jp","ebino.miyazaki.jp","gokase.miyazaki.jp","hyuga.miyazaki.jp","kadogawa.miyazaki.jp","kawaminami.miyazaki.jp","kijo.miyazaki.jp","kitagawa.miyazaki.jp","kitakata.miyazaki.jp","kitaura.miyazaki.jp","kobayashi.miyazaki.jp","kunitomi.miyazaki.jp","kushima.miyazaki.jp","mimata.miyazaki.jp","miyakonojo.miyazaki.jp","miyazaki.miyazaki.jp","morotsuka.miyazaki.jp","nichinan.miyazaki.jp","nishimera.miyazaki.jp","nobeoka.miyazaki.jp","saito.miyazaki.jp","shiiba.miyazaki.jp","shintomi.miyazaki.jp","takaharu.miyazaki.jp","takanabe.miyazaki.jp","takazaki.miyazaki.jp","tsuno.miyazaki.jp","achi.nagano.jp","agematsu.nagano.jp","anan.nagano.jp","aoki.nagano.jp","asahi.nagano.jp","azumino.nagano.jp","chikuhoku.nagano.jp","chikuma.nagano.jp","chino.nagano.jp","fujimi.nagano.jp","hakuba.nagano.jp","hara.nagano.jp","hiraya.nagano.jp","iida.nagano.jp","iijima.nagano.jp","iiyama.nagano.jp","iizuna.nagano.jp","ikeda.nagano.jp","ikusaka.nagano.jp","ina.nagano.jp","karuizawa.nagano.jp","kawakami.nagano.jp","kiso.nagano.jp","kisofukushima.nagano.jp","kitaaiki.nagano.jp","komagane.nagano.jp","komoro.nagano.jp","matsukawa.nagano.jp","matsumoto.nagano.jp","miasa.nagano.jp","minamiaiki.nagano.jp","minamimaki.nagano.jp","minamiminowa.nagano.jp","minowa.nagano.jp","miyada.nagano.jp","miyota.nagano.jp","mochizuki.nagano.jp","nagano.nagano.jp","nagawa.nagano.jp","nagiso.nagano.jp","nakagawa.nagano.jp","nakano.nagano.jp","nozawaonsen.nagano.jp","obuse.nagano.jp","ogawa.nagano.jp","okaya.nagano.jp","omachi.nagano.jp","omi.nagano.jp","ookuwa.nagano.jp","ooshika.nagano.jp","otaki.nagano.jp","otari.nagano.jp","sakae.nagano.jp","sakaki.nagano.jp","saku.nagano.jp","sakuho.nagano.jp","shimosuwa.nagano.jp","shinanomachi.nagano.jp","shiojiri.nagano.jp","suwa.nagano.jp","suzaka.nagano.jp","takagi.nagano.jp","takamori.nagano.jp","takayama.nagano.jp","tateshina.nagano.jp","tatsuno.nagano.jp","togakushi.nagano.jp","togura.nagano.jp","tomi.nagano.jp","ueda.nagano.jp","wada.nagano.jp","yamagata.nagano.jp","yamanouchi.nagano.jp","yasaka.nagano.jp","yasuoka.nagano.jp","chijiwa.nagasaki.jp","futsu.nagasaki.jp","goto.nagasaki.jp","hasami.nagasaki.jp","hirado.nagasaki.jp","iki.nagasaki.jp","isahaya.nagasaki.jp","kawatana.nagasaki.jp","kuchinotsu.nagasaki.jp","matsuura.nagasaki.jp","nagasaki.nagasaki.jp","obama.nagasaki.jp","omura.nagasaki.jp","oseto.nagasaki.jp","saikai.nagasaki.jp","sasebo.nagasaki.jp","seihi.nagasaki.jp","shimabara.nagasaki.jp","shinkamigoto.nagasaki.jp","togitsu.nagasaki.jp","tsushima.nagasaki.jp","unzen.nagasaki.jp","ando.nara.jp","gose.nara.jp","heguri.nara.jp","higashiyoshino.nara.jp","ikaruga.nara.jp","ikoma.nara.jp","kamikitayama.nara.jp","kanmaki.nara.jp","kashiba.nara.jp","kashihara.nara.jp","katsuragi.nara.jp","kawai.nara.jp","kawakami.nara.jp","kawanishi.nara.jp","koryo.nara.jp","kurotaki.nara.jp","mitsue.nara.jp","miyake.nara.jp","nara.nara.jp","nosegawa.nara.jp","oji.nara.jp","ouda.nara.jp","oyodo.nara.jp","sakurai.nara.jp","sango.nara.jp","shimoichi.nara.jp","shimokitayama.nara.jp","shinjo.nara.jp","soni.nara.jp","takatori.nara.jp","tawaramoto.nara.jp","tenkawa.nara.jp","tenri.nara.jp","uda.nara.jp","yamatokoriyama.nara.jp","yamatotakada.nara.jp","yamazoe.nara.jp","yoshino.nara.jp","aga.niigata.jp","agano.niigata.jp","gosen.niigata.jp","itoigawa.niigata.jp","izumozaki.niigata.jp","joetsu.niigata.jp","kamo.niigata.jp","kariwa.niigata.jp","kashiwazaki.niigata.jp","minamiuonuma.niigata.jp","mitsuke.niigata.jp","muika.niigata.jp","murakami.niigata.jp","myoko.niigata.jp","nagaoka.niigata.jp","niigata.niigata.jp","ojiya.niigata.jp","omi.niigata.jp","sado.niigata.jp","sanjo.niigata.jp","seiro.niigata.jp","seirou.niigata.jp","sekikawa.niigata.jp","shibata.niigata.jp","tagami.niigata.jp","tainai.niigata.jp","tochio.niigata.jp","tokamachi.niigata.jp","tsubame.niigata.jp","tsunan.niigata.jp","uonuma.niigata.jp","yahiko.niigata.jp","yoita.niigata.jp","yuzawa.niigata.jp","beppu.oita.jp","bungoono.oita.jp","bungotakada.oita.jp","hasama.oita.jp","hiji.oita.jp","himeshima.oita.jp","hita.oita.jp","kamitsue.oita.jp","kokonoe.oita.jp","kuju.oita.jp","kunisaki.oita.jp","kusu.oita.jp","oita.oita.jp","saiki.oita.jp","taketa.oita.jp","tsukumi.oita.jp","usa.oita.jp","usuki.oita.jp","yufu.oita.jp","akaiwa.okayama.jp","asakuchi.okayama.jp","bizen.okayama.jp","hayashima.okayama.jp","ibara.okayama.jp","kagamino.okayama.jp","kasaoka.okayama.jp","kibichuo.okayama.jp","kumenan.okayama.jp","kurashiki.okayama.jp","maniwa.okayama.jp","misaki.okayama.jp","nagi.okayama.jp","niimi.okayama.jp","nishiawakura.okayama.jp","okayama.okayama.jp","satosho.okayama.jp","setouchi.okayama.jp","shinjo.okayama.jp","shoo.okayama.jp","soja.okayama.jp","takahashi.okayama.jp","tamano.okayama.jp","tsuyama.okayama.jp","wake.okayama.jp","yakage.okayama.jp","aguni.okinawa.jp","ginowan.okinawa.jp","ginoza.okinawa.jp","gushikami.okinawa.jp","haebaru.okinawa.jp","higashi.okinawa.jp","hirara.okinawa.jp","iheya.okinawa.jp","ishigaki.okinawa.jp","ishikawa.okinawa.jp","itoman.okinawa.jp","izena.okinawa.jp","kadena.okinawa.jp","kin.okinawa.jp","kitadaito.okinawa.jp","kitanakagusuku.okinawa.jp","kumejima.okinawa.jp","kunigami.okinawa.jp","minamidaito.okinawa.jp","motobu.okinawa.jp","nago.okinawa.jp","naha.okinawa.jp","nakagusuku.okinawa.jp","nakijin.okinawa.jp","nanjo.okinawa.jp","nishihara.okinawa.jp","ogimi.okinawa.jp","okinawa.okinawa.jp","onna.okinawa.jp","shimoji.okinawa.jp","taketomi.okinawa.jp","tarama.okinawa.jp","tokashiki.okinawa.jp","tomigusuku.okinawa.jp","tonaki.okinawa.jp","urasoe.okinawa.jp","uruma.okinawa.jp","yaese.okinawa.jp","yomitan.okinawa.jp","yonabaru.okinawa.jp","yonaguni.okinawa.jp","zamami.okinawa.jp","abeno.osaka.jp","chihayaakasaka.osaka.jp","chuo.osaka.jp","daito.osaka.jp","fujiidera.osaka.jp","habikino.osaka.jp","hannan.osaka.jp","higashiosaka.osaka.jp","higashisumiyoshi.osaka.jp","higashiyodogawa.osaka.jp","hirakata.osaka.jp","ibaraki.osaka.jp","ikeda.osaka.jp","izumi.osaka.jp","izumiotsu.osaka.jp","izumisano.osaka.jp","kadoma.osaka.jp","kaizuka.osaka.jp","kanan.osaka.jp","kashiwara.osaka.jp","katano.osaka.jp","kawachinagano.osaka.jp","kishiwada.osaka.jp","kita.osaka.jp","kumatori.osaka.jp","matsubara.osaka.jp","minato.osaka.jp","minoh.osaka.jp","misaki.osaka.jp","moriguchi.osaka.jp","neyagawa.osaka.jp","nishi.osaka.jp","nose.osaka.jp","osakasayama.osaka.jp","sakai.osaka.jp","sayama.osaka.jp","sennan.osaka.jp","settsu.osaka.jp","shijonawate.osaka.jp","shimamoto.osaka.jp","suita.osaka.jp","tadaoka.osaka.jp","taishi.osaka.jp","tajiri.osaka.jp","takaishi.osaka.jp","takatsuki.osaka.jp","tondabayashi.osaka.jp","toyonaka.osaka.jp","toyono.osaka.jp","yao.osaka.jp","ariake.saga.jp","arita.saga.jp","fukudomi.saga.jp","genkai.saga.jp","hamatama.saga.jp","hizen.saga.jp","imari.saga.jp","kamimine.saga.jp","kanzaki.saga.jp","karatsu.saga.jp","kashima.saga.jp","kitagata.saga.jp","kitahata.saga.jp","kiyama.saga.jp","kouhoku.saga.jp","kyuragi.saga.jp","nishiarita.saga.jp","ogi.saga.jp","omachi.saga.jp","ouchi.saga.jp","saga.saga.jp","shiroishi.saga.jp","taku.saga.jp","tara.saga.jp","tosu.saga.jp","yoshinogari.saga.jp","arakawa.saitama.jp","asaka.saitama.jp","chichibu.saitama.jp","fujimi.saitama.jp","fujimino.saitama.jp","fukaya.saitama.jp","hanno.saitama.jp","hanyu.saitama.jp","hasuda.saitama.jp","hatogaya.saitama.jp","hatoyama.saitama.jp","hidaka.saitama.jp","higashichichibu.saitama.jp","higashimatsuyama.saitama.jp","honjo.saitama.jp","ina.saitama.jp","iruma.saitama.jp","iwatsuki.saitama.jp","kamiizumi.saitama.jp","kamikawa.saitama.jp","kamisato.saitama.jp","kasukabe.saitama.jp","kawagoe.saitama.jp","kawaguchi.saitama.jp","kawajima.saitama.jp","kazo.saitama.jp","kitamoto.saitama.jp","koshigaya.saitama.jp","kounosu.saitama.jp","kuki.saitama.jp","kumagaya.saitama.jp","matsubushi.saitama.jp","minano.saitama.jp","misato.saitama.jp","miyashiro.saitama.jp","miyoshi.saitama.jp","moroyama.saitama.jp","nagatoro.saitama.jp","namegawa.saitama.jp","niiza.saitama.jp","ogano.saitama.jp","ogawa.saitama.jp","ogose.saitama.jp","okegawa.saitama.jp","omiya.saitama.jp","otaki.saitama.jp","ranzan.saitama.jp","ryokami.saitama.jp","saitama.saitama.jp","sakado.saitama.jp","satte.saitama.jp","sayama.saitama.jp","shiki.saitama.jp","shiraoka.saitama.jp","soka.saitama.jp","sugito.saitama.jp","toda.saitama.jp","tokigawa.saitama.jp","tokorozawa.saitama.jp","tsurugashima.saitama.jp","urawa.saitama.jp","warabi.saitama.jp","yashio.saitama.jp","yokoze.saitama.jp","yono.saitama.jp","yorii.saitama.jp","yoshida.saitama.jp","yoshikawa.saitama.jp","yoshimi.saitama.jp","aisho.shiga.jp","gamo.shiga.jp","higashiomi.shiga.jp","hikone.shiga.jp","koka.shiga.jp","konan.shiga.jp","kosei.shiga.jp","koto.shiga.jp","kusatsu.shiga.jp","maibara.shiga.jp","moriyama.shiga.jp","nagahama.shiga.jp","nishiazai.shiga.jp","notogawa.shiga.jp","omihachiman.shiga.jp","otsu.shiga.jp","ritto.shiga.jp","ryuoh.shiga.jp","takashima.shiga.jp","takatsuki.shiga.jp","torahime.shiga.jp","toyosato.shiga.jp","yasu.shiga.jp","akagi.shimane.jp","ama.shimane.jp","gotsu.shimane.jp","hamada.shimane.jp","higashiizumo.shimane.jp","hikawa.shimane.jp","hikimi.shimane.jp","izumo.shimane.jp","kakinoki.shimane.jp","masuda.shimane.jp","matsue.shimane.jp","misato.shimane.jp","nishinoshima.shimane.jp","ohda.shimane.jp","okinoshima.shimane.jp","okuizumo.shimane.jp","shimane.shimane.jp","tamayu.shimane.jp","tsuwano.shimane.jp","unnan.shimane.jp","yakumo.shimane.jp","yasugi.shimane.jp","yatsuka.shimane.jp","arai.shizuoka.jp","atami.shizuoka.jp","fuji.shizuoka.jp","fujieda.shizuoka.jp","fujikawa.shizuoka.jp","fujinomiya.shizuoka.jp","fukuroi.shizuoka.jp","gotemba.shizuoka.jp","haibara.shizuoka.jp","hamamatsu.shizuoka.jp","higashiizu.shizuoka.jp","ito.shizuoka.jp","iwata.shizuoka.jp","izu.shizuoka.jp","izunokuni.shizuoka.jp","kakegawa.shizuoka.jp","kannami.shizuoka.jp","kawanehon.shizuoka.jp","kawazu.shizuoka.jp","kikugawa.shizuoka.jp","kosai.shizuoka.jp","makinohara.shizuoka.jp","matsuzaki.shizuoka.jp","minamiizu.shizuoka.jp","mishima.shizuoka.jp","morimachi.shizuoka.jp","nishiizu.shizuoka.jp","numazu.shizuoka.jp","omaezaki.shizuoka.jp","shimada.shizuoka.jp","shimizu.shizuoka.jp","shimoda.shizuoka.jp","shizuoka.shizuoka.jp","susono.shizuoka.jp","yaizu.shizuoka.jp","yoshida.shizuoka.jp","ashikaga.tochigi.jp","bato.tochigi.jp","haga.tochigi.jp","ichikai.tochigi.jp","iwafune.tochigi.jp","kaminokawa.tochigi.jp","kanuma.tochigi.jp","karasuyama.tochigi.jp","kuroiso.tochigi.jp","mashiko.tochigi.jp","mibu.tochigi.jp","moka.tochigi.jp","motegi.tochigi.jp","nasu.tochigi.jp","nasushiobara.tochigi.jp","nikko.tochigi.jp","nishikata.tochigi.jp","nogi.tochigi.jp","ohira.tochigi.jp","ohtawara.tochigi.jp","oyama.tochigi.jp","sakura.tochigi.jp","sano.tochigi.jp","shimotsuke.tochigi.jp","shioya.tochigi.jp","takanezawa.tochigi.jp","tochigi.tochigi.jp","tsuga.tochigi.jp","ujiie.tochigi.jp","utsunomiya.tochigi.jp","yaita.tochigi.jp","aizumi.tokushima.jp","anan.tokushima.jp","ichiba.tokushima.jp","itano.tokushima.jp","kainan.tokushima.jp","komatsushima.tokushima.jp","matsushige.tokushima.jp","mima.tokushima.jp","minami.tokushima.jp","miyoshi.tokushima.jp","mugi.tokushima.jp","nakagawa.tokushima.jp","naruto.tokushima.jp","sanagochi.tokushima.jp","shishikui.tokushima.jp","tokushima.tokushima.jp","wajiki.tokushima.jp","adachi.tokyo.jp","akiruno.tokyo.jp","akishima.tokyo.jp","aogashima.tokyo.jp","arakawa.tokyo.jp","bunkyo.tokyo.jp","chiyoda.tokyo.jp","chofu.tokyo.jp","chuo.tokyo.jp","edogawa.tokyo.jp","fuchu.tokyo.jp","fussa.tokyo.jp","hachijo.tokyo.jp","hachioji.tokyo.jp","hamura.tokyo.jp","higashikurume.tokyo.jp","higashimurayama.tokyo.jp","higashiyamato.tokyo.jp","hino.tokyo.jp","hinode.tokyo.jp","hinohara.tokyo.jp","inagi.tokyo.jp","itabashi.tokyo.jp","katsushika.tokyo.jp","kita.tokyo.jp","kiyose.tokyo.jp","kodaira.tokyo.jp","koganei.tokyo.jp","kokubunji.tokyo.jp","komae.tokyo.jp","koto.tokyo.jp","kouzushima.tokyo.jp","kunitachi.tokyo.jp","machida.tokyo.jp","meguro.tokyo.jp","minato.tokyo.jp","mitaka.tokyo.jp","mizuho.tokyo.jp","musashimurayama.tokyo.jp","musashino.tokyo.jp","nakano.tokyo.jp","nerima.tokyo.jp","ogasawara.tokyo.jp","okutama.tokyo.jp","ome.tokyo.jp","oshima.tokyo.jp","ota.tokyo.jp","setagaya.tokyo.jp","shibuya.tokyo.jp","shinagawa.tokyo.jp","shinjuku.tokyo.jp","suginami.tokyo.jp","sumida.tokyo.jp","tachikawa.tokyo.jp","taito.tokyo.jp","tama.tokyo.jp","toshima.tokyo.jp","chizu.tottori.jp","hino.tottori.jp","kawahara.tottori.jp","koge.tottori.jp","kotoura.tottori.jp","misasa.tottori.jp","nanbu.tottori.jp","nichinan.tottori.jp","sakaiminato.tottori.jp","tottori.tottori.jp","wakasa.tottori.jp","yazu.tottori.jp","yonago.tottori.jp","asahi.toyama.jp","fuchu.toyama.jp","fukumitsu.toyama.jp","funahashi.toyama.jp","himi.toyama.jp","imizu.toyama.jp","inami.toyama.jp","johana.toyama.jp","kamiichi.toyama.jp","kurobe.toyama.jp","nakaniikawa.toyama.jp","namerikawa.toyama.jp","nanto.toyama.jp","nyuzen.toyama.jp","oyabe.toyama.jp","taira.toyama.jp","takaoka.toyama.jp","tateyama.toyama.jp","toga.toyama.jp","tonami.toyama.jp","toyama.toyama.jp","unazuki.toyama.jp","uozu.toyama.jp","yamada.toyama.jp","arida.wakayama.jp","aridagawa.wakayama.jp","gobo.wakayama.jp","hashimoto.wakayama.jp","hidaka.wakayama.jp","hirogawa.wakayama.jp","inami.wakayama.jp","iwade.wakayama.jp","kainan.wakayama.jp","kamitonda.wakayama.jp","katsuragi.wakayama.jp","kimino.wakayama.jp","kinokawa.wakayama.jp","kitayama.wakayama.jp","koya.wakayama.jp","koza.wakayama.jp","kozagawa.wakayama.jp","kudoyama.wakayama.jp","kushimoto.wakayama.jp","mihama.wakayama.jp","misato.wakayama.jp","nachikatsuura.wakayama.jp","shingu.wakayama.jp","shirahama.wakayama.jp","taiji.wakayama.jp","tanabe.wakayama.jp","wakayama.wakayama.jp","yuasa.wakayama.jp","yura.wakayama.jp","asahi.yamagata.jp","funagata.yamagata.jp","higashine.yamagata.jp","iide.yamagata.jp","kahoku.yamagata.jp","kaminoyama.yamagata.jp","kaneyama.yamagata.jp","kawanishi.yamagata.jp","mamurogawa.yamagata.jp","mikawa.yamagata.jp","murayama.yamagata.jp","nagai.yamagata.jp","nakayama.yamagata.jp","nanyo.yamagata.jp","nishikawa.yamagata.jp","obanazawa.yamagata.jp","oe.yamagata.jp","oguni.yamagata.jp","ohkura.yamagata.jp","oishida.yamagata.jp","sagae.yamagata.jp","sakata.yamagata.jp","sakegawa.yamagata.jp","shinjo.yamagata.jp","shirataka.yamagata.jp","shonai.yamagata.jp","takahata.yamagata.jp","tendo.yamagata.jp","tozawa.yamagata.jp","tsuruoka.yamagata.jp","yamagata.yamagata.jp","yamanobe.yamagata.jp","yonezawa.yamagata.jp","yuza.yamagata.jp","abu.yamaguchi.jp","hagi.yamaguchi.jp","hikari.yamaguchi.jp","hofu.yamaguchi.jp","iwakuni.yamaguchi.jp","kudamatsu.yamaguchi.jp","mitou.yamaguchi.jp","nagato.yamaguchi.jp","oshima.yamaguchi.jp","shimonoseki.yamaguchi.jp","shunan.yamaguchi.jp","tabuse.yamaguchi.jp","tokuyama.yamaguchi.jp","toyota.yamaguchi.jp","ube.yamaguchi.jp","yuu.yamaguchi.jp","chuo.yamanashi.jp","doshi.yamanashi.jp","fuefuki.yamanashi.jp","fujikawa.yamanashi.jp","fujikawaguchiko.yamanashi.jp","fujiyoshida.yamanashi.jp","hayakawa.yamanashi.jp","hokuto.yamanashi.jp","ichikawamisato.yamanashi.jp","kai.yamanashi.jp","kofu.yamanashi.jp","koshu.yamanashi.jp","kosuge.yamanashi.jp","minami-alps.yamanashi.jp","minobu.yamanashi.jp","nakamichi.yamanashi.jp","nanbu.yamanashi.jp","narusawa.yamanashi.jp","nirasaki.yamanashi.jp","nishikatsura.yamanashi.jp","oshino.yamanashi.jp","otsuki.yamanashi.jp","showa.yamanashi.jp","tabayama.yamanashi.jp","tsuru.yamanashi.jp","uenohara.yamanashi.jp","yamanakako.yamanashi.jp","yamanashi.yamanashi.jp","ke","ac.ke","co.ke","go.ke","info.ke","me.ke","mobi.ke","ne.ke","or.ke","sc.ke","kg","org.kg","net.kg","com.kg","edu.kg","gov.kg","mil.kg","*.kh","ki","edu.ki","biz.ki","net.ki","org.ki","gov.ki","info.ki","com.ki","km","org.km","nom.km","gov.km","prd.km","tm.km","edu.km","mil.km","ass.km","com.km","coop.km","asso.km","presse.km","medecin.km","notaires.km","pharmaciens.km","veterinaire.km","gouv.km","kn","net.kn","org.kn","edu.kn","gov.kn","kp","com.kp","edu.kp","gov.kp","org.kp","rep.kp","tra.kp","kr","ac.kr","co.kr","es.kr","go.kr","hs.kr","kg.kr","mil.kr","ms.kr","ne.kr","or.kr","pe.kr","re.kr","sc.kr","busan.kr","chungbuk.kr","chungnam.kr","daegu.kr","daejeon.kr","gangwon.kr","gwangju.kr","gyeongbuk.kr","gyeonggi.kr","gyeongnam.kr","incheon.kr","jeju.kr","jeonbuk.kr","jeonnam.kr","seoul.kr","ulsan.kr","kw","com.kw","edu.kw","emb.kw","gov.kw","ind.kw","net.kw","org.kw","ky","edu.ky","gov.ky","com.ky","org.ky","net.ky","kz","org.kz","edu.kz","net.kz","gov.kz","mil.kz","com.kz","la","int.la","net.la","info.la","edu.la","gov.la","per.la","com.la","org.la","lb","com.lb","edu.lb","gov.lb","net.lb","org.lb","lc","com.lc","net.lc","co.lc","org.lc","edu.lc","gov.lc","li","lk","gov.lk","sch.lk","net.lk","int.lk","com.lk","org.lk","edu.lk","ngo.lk","soc.lk","web.lk","ltd.lk","assn.lk","grp.lk","hotel.lk","ac.lk","lr","com.lr","edu.lr","gov.lr","org.lr","net.lr","ls","ac.ls","biz.ls","co.ls","edu.ls","gov.ls","info.ls","net.ls","org.ls","sc.ls","lt","gov.lt","lu","lv","com.lv","edu.lv","gov.lv","org.lv","mil.lv","id.lv","net.lv","asn.lv","conf.lv","ly","com.ly","net.ly","gov.ly","plc.ly","edu.ly","sch.ly","med.ly","org.ly","id.ly","ma","co.ma","net.ma","gov.ma","org.ma","ac.ma","press.ma","mc","tm.mc","asso.mc","md","me","co.me","net.me","org.me","edu.me","ac.me","gov.me","its.me","priv.me","mg","org.mg","nom.mg","gov.mg","prd.mg","tm.mg","edu.mg","mil.mg","com.mg","co.mg","mh","mil","mk","com.mk","org.mk","net.mk","edu.mk","gov.mk","inf.mk","name.mk","ml","com.ml","edu.ml","gouv.ml","gov.ml","net.ml","org.ml","presse.ml","*.mm","mn","gov.mn","edu.mn","org.mn","mo","com.mo","net.mo","org.mo","edu.mo","gov.mo","mobi","mp","mq","mr","gov.mr","ms","com.ms","edu.ms","gov.ms","net.ms","org.ms","mt","com.mt","edu.mt","net.mt","org.mt","mu","com.mu","net.mu","org.mu","gov.mu","ac.mu","co.mu","or.mu","museum","academy.museum","agriculture.museum","air.museum","airguard.museum","alabama.museum","alaska.museum","amber.museum","ambulance.museum","american.museum","americana.museum","americanantiques.museum","americanart.museum","amsterdam.museum","and.museum","annefrank.museum","anthro.museum","anthropology.museum","antiques.museum","aquarium.museum","arboretum.museum","archaeological.museum","archaeology.museum","architecture.museum","art.museum","artanddesign.museum","artcenter.museum","artdeco.museum","arteducation.museum","artgallery.museum","arts.museum","artsandcrafts.museum","asmatart.museum","assassination.museum","assisi.museum","association.museum","astronomy.museum","atlanta.museum","austin.museum","australia.museum","automotive.museum","aviation.museum","axis.museum","badajoz.museum","baghdad.museum","bahn.museum","bale.museum","baltimore.museum","barcelona.museum","baseball.museum","basel.museum","baths.museum","bauern.museum","beauxarts.museum","beeldengeluid.museum","bellevue.museum","bergbau.museum","berkeley.museum","berlin.museum","bern.museum","bible.museum","bilbao.museum","bill.museum","birdart.museum","birthplace.museum","bonn.museum","boston.museum","botanical.museum","botanicalgarden.museum","botanicgarden.museum","botany.museum","brandywinevalley.museum","brasil.museum","bristol.museum","british.museum","britishcolumbia.museum","broadcast.museum","brunel.museum","brussel.museum","brussels.museum","bruxelles.museum","building.museum","burghof.museum","bus.museum","bushey.museum","cadaques.museum","california.museum","cambridge.museum","can.museum","canada.museum","capebreton.museum","carrier.museum","cartoonart.museum","casadelamoneda.museum","castle.museum","castres.museum","celtic.museum","center.museum","chattanooga.museum","cheltenham.museum","chesapeakebay.museum","chicago.museum","children.museum","childrens.museum","childrensgarden.museum","chiropractic.museum","chocolate.museum","christiansburg.museum","cincinnati.museum","cinema.museum","circus.museum","civilisation.museum","civilization.museum","civilwar.museum","clinton.museum","clock.museum","coal.museum","coastaldefence.museum","cody.museum","coldwar.museum","collection.museum","colonialwilliamsburg.museum","coloradoplateau.museum","columbia.museum","columbus.museum","communication.museum","communications.museum","community.museum","computer.museum","computerhistory.museum","comunicações.museum","contemporary.museum","contemporaryart.museum","convent.museum","copenhagen.museum","corporation.museum","correios-e-telecomunicações.museum","corvette.museum","costume.museum","countryestate.museum","county.museum","crafts.museum","cranbrook.museum","creation.museum","cultural.museum","culturalcenter.museum","culture.museum","cyber.museum","cymru.museum","dali.museum","dallas.museum","database.museum","ddr.museum","decorativearts.museum","delaware.museum","delmenhorst.museum","denmark.museum","depot.museum","design.museum","detroit.museum","dinosaur.museum","discovery.museum","dolls.museum","donostia.museum","durham.museum","eastafrica.museum","eastcoast.museum","education.museum","educational.museum","egyptian.museum","eisenbahn.museum","elburg.museum","elvendrell.museum","embroidery.museum","encyclopedic.museum","england.museum","entomology.museum","environment.museum","environmentalconservation.museum","epilepsy.museum","essex.museum","estate.museum","ethnology.museum","exeter.museum","exhibition.museum","family.museum","farm.museum","farmequipment.museum","farmers.museum","farmstead.museum","field.museum","figueres.museum","filatelia.museum","film.museum","fineart.museum","finearts.museum","finland.museum","flanders.museum","florida.museum","force.museum","fortmissoula.museum","fortworth.museum","foundation.museum","francaise.museum","frankfurt.museum","franziskaner.museum","freemasonry.museum","freiburg.museum","fribourg.museum","frog.museum","fundacio.museum","furniture.museum","gallery.museum","garden.museum","gateway.museum","geelvinck.museum","gemological.museum","geology.museum","georgia.museum","giessen.museum","glas.museum","glass.museum","gorge.museum","grandrapids.museum","graz.museum","guernsey.museum","halloffame.museum","hamburg.museum","handson.museum","harvestcelebration.museum","hawaii.museum","health.museum","heimatunduhren.museum","hellas.museum","helsinki.museum","hembygdsforbund.museum","heritage.museum","histoire.museum","historical.museum","historicalsociety.museum","historichouses.museum","historisch.museum","historisches.museum","history.museum","historyofscience.museum","horology.museum","house.museum","humanities.museum","illustration.museum","imageandsound.museum","indian.museum","indiana.museum","indianapolis.museum","indianmarket.museum","intelligence.museum","interactive.museum","iraq.museum","iron.museum","isleofman.museum","jamison.museum","jefferson.museum","jerusalem.museum","jewelry.museum","jewish.museum","jewishart.museum","jfk.museum","journalism.museum","judaica.museum","judygarland.museum","juedisches.museum","juif.museum","karate.museum","karikatur.museum","kids.museum","koebenhavn.museum","koeln.museum","kunst.museum","kunstsammlung.museum","kunstunddesign.museum","labor.museum","labour.museum","lajolla.museum","lancashire.museum","landes.museum","lans.museum","läns.museum","larsson.museum","lewismiller.museum","lincoln.museum","linz.museum","living.museum","livinghistory.museum","localhistory.museum","london.museum","losangeles.museum","louvre.museum","loyalist.museum","lucerne.museum","luxembourg.museum","luzern.museum","mad.museum","madrid.museum","mallorca.museum","manchester.museum","mansion.museum","mansions.museum","manx.museum","marburg.museum","maritime.museum","maritimo.museum","maryland.museum","marylhurst.museum","media.museum","medical.museum","medizinhistorisches.museum","meeres.museum","memorial.museum","mesaverde.museum","michigan.museum","midatlantic.museum","military.museum","mill.museum","miners.museum","mining.museum","minnesota.museum","missile.museum","missoula.museum","modern.museum","moma.museum","money.museum","monmouth.museum","monticello.museum","montreal.museum","moscow.museum","motorcycle.museum","muenchen.museum","muenster.museum","mulhouse.museum","muncie.museum","museet.museum","museumcenter.museum","museumvereniging.museum","music.museum","national.museum","nationalfirearms.museum","nationalheritage.museum","nativeamerican.museum","naturalhistory.museum","naturalhistorymuseum.museum","naturalsciences.museum","nature.museum","naturhistorisches.museum","natuurwetenschappen.museum","naumburg.museum","naval.museum","nebraska.museum","neues.museum","newhampshire.museum","newjersey.museum","newmexico.museum","newport.museum","newspaper.museum","newyork.museum","niepce.museum","norfolk.museum","north.museum","nrw.museum","nyc.museum","nyny.museum","oceanographic.museum","oceanographique.museum","omaha.museum","online.museum","ontario.museum","openair.museum","oregon.museum","oregontrail.museum","otago.museum","oxford.museum","pacific.museum","paderborn.museum","palace.museum","paleo.museum","palmsprings.museum","panama.museum","paris.museum","pasadena.museum","pharmacy.museum","philadelphia.museum","philadelphiaarea.museum","philately.museum","phoenix.museum","photography.museum","pilots.museum","pittsburgh.museum","planetarium.museum","plantation.museum","plants.museum","plaza.museum","portal.museum","portland.museum","portlligat.museum","posts-and-telecommunications.museum","preservation.museum","presidio.museum","press.museum","project.museum","public.museum","pubol.museum","quebec.museum","railroad.museum","railway.museum","research.museum","resistance.museum","riodejaneiro.museum","rochester.museum","rockart.museum","roma.museum","russia.museum","saintlouis.museum","salem.museum","salvadordali.museum","salzburg.museum","sandiego.museum","sanfrancisco.museum","santabarbara.museum","santacruz.museum","santafe.museum","saskatchewan.museum","satx.museum","savannahga.museum","schlesisches.museum","schoenbrunn.museum","schokoladen.museum","school.museum","schweiz.museum","science.museum","scienceandhistory.museum","scienceandindustry.museum","sciencecenter.museum","sciencecenters.museum","science-fiction.museum","sciencehistory.museum","sciences.museum","sciencesnaturelles.museum","scotland.museum","seaport.museum","settlement.museum","settlers.museum","shell.museum","sherbrooke.museum","sibenik.museum","silk.museum","ski.museum","skole.museum","society.museum","sologne.museum","soundandvision.museum","southcarolina.museum","southwest.museum","space.museum","spy.museum","square.museum","stadt.museum","stalbans.museum","starnberg.museum","state.museum","stateofdelaware.museum","station.museum","steam.museum","steiermark.museum","stjohn.museum","stockholm.museum","stpetersburg.museum","stuttgart.museum","suisse.museum","surgeonshall.museum","surrey.museum","svizzera.museum","sweden.museum","sydney.museum","tank.museum","tcm.museum","technology.museum","telekommunikation.museum","television.museum","texas.museum","textile.museum","theater.museum","time.museum","timekeeping.museum","topology.museum","torino.museum","touch.museum","town.museum","transport.museum","tree.museum","trolley.museum","trust.museum","trustee.museum","uhren.museum","ulm.museum","undersea.museum","university.museum","usa.museum","usantiques.museum","usarts.museum","uscountryestate.museum","usculture.museum","usdecorativearts.museum","usgarden.museum","ushistory.museum","ushuaia.museum","uslivinghistory.museum","utah.museum","uvic.museum","valley.museum","vantaa.museum","versailles.museum","viking.museum","village.museum","virginia.museum","virtual.museum","virtuel.museum","vlaanderen.museum","volkenkunde.museum","wales.museum","wallonie.museum","war.museum","washingtondc.museum","watchandclock.museum","watch-and-clock.museum","western.museum","westfalen.museum","whaling.museum","wildlife.museum","williamsburg.museum","windmill.museum","workshop.museum","york.museum","yorkshire.museum","yosemite.museum","youth.museum","zoological.museum","zoology.museum","ירושלים.museum","иком.museum","mv","aero.mv","biz.mv","com.mv","coop.mv","edu.mv","gov.mv","info.mv","int.mv","mil.mv","museum.mv","name.mv","net.mv","org.mv","pro.mv","mw","ac.mw","biz.mw","co.mw","com.mw","coop.mw","edu.mw","gov.mw","int.mw","museum.mw","net.mw","org.mw","mx","com.mx","org.mx","gob.mx","edu.mx","net.mx","my","com.my","net.my","org.my","gov.my","edu.my","mil.my","name.my","mz","ac.mz","adv.mz","co.mz","edu.mz","gov.mz","mil.mz","net.mz","org.mz","na","info.na","pro.na","name.na","school.na","or.na","dr.na","us.na","mx.na","ca.na","in.na","cc.na","tv.na","ws.na","mobi.na","co.na","com.na","org.na","name","nc","asso.nc","nom.nc","ne","net","nf","com.nf","net.nf","per.nf","rec.nf","web.nf","arts.nf","firm.nf","info.nf","other.nf","store.nf","ng","com.ng","edu.ng","gov.ng","i.ng","mil.ng","mobi.ng","name.ng","net.ng","org.ng","sch.ng","ni","ac.ni","biz.ni","co.ni","com.ni","edu.ni","gob.ni","in.ni","info.ni","int.ni","mil.ni","net.ni","nom.ni","org.ni","web.ni","nl","no","fhs.no","vgs.no","fylkesbibl.no","folkebibl.no","museum.no","idrett.no","priv.no","mil.no","stat.no","dep.no","kommune.no","herad.no","aa.no","ah.no","bu.no","fm.no","hl.no","hm.no","jan-mayen.no","mr.no","nl.no","nt.no","of.no","ol.no","oslo.no","rl.no","sf.no","st.no","svalbard.no","tm.no","tr.no","va.no","vf.no","gs.aa.no","gs.ah.no","gs.bu.no","gs.fm.no","gs.hl.no","gs.hm.no","gs.jan-mayen.no","gs.mr.no","gs.nl.no","gs.nt.no","gs.of.no","gs.ol.no","gs.oslo.no","gs.rl.no","gs.sf.no","gs.st.no","gs.svalbard.no","gs.tm.no","gs.tr.no","gs.va.no","gs.vf.no","akrehamn.no","åkrehamn.no","algard.no","ålgård.no","arna.no","brumunddal.no","bryne.no","bronnoysund.no","brønnøysund.no","drobak.no","drøbak.no","egersund.no","fetsund.no","floro.no","florø.no","fredrikstad.no","hokksund.no","honefoss.no","hønefoss.no","jessheim.no","jorpeland.no","jørpeland.no","kirkenes.no","kopervik.no","krokstadelva.no","langevag.no","langevåg.no","leirvik.no","mjondalen.no","mjøndalen.no","mo-i-rana.no","mosjoen.no","mosjøen.no","nesoddtangen.no","orkanger.no","osoyro.no","osøyro.no","raholt.no","råholt.no","sandnessjoen.no","sandnessjøen.no","skedsmokorset.no","slattum.no","spjelkavik.no","stathelle.no","stavern.no","stjordalshalsen.no","stjørdalshalsen.no","tananger.no","tranby.no","vossevangen.no","afjord.no","åfjord.no","agdenes.no","al.no","ål.no","alesund.no","ålesund.no","alstahaug.no","alta.no","áltá.no","alaheadju.no","álaheadju.no","alvdal.no","amli.no","åmli.no","amot.no","åmot.no","andebu.no","andoy.no","andøy.no","andasuolo.no","ardal.no","årdal.no","aremark.no","arendal.no","ås.no","aseral.no","åseral.no","asker.no","askim.no","askvoll.no","askoy.no","askøy.no","asnes.no","åsnes.no","audnedaln.no","aukra.no","aure.no","aurland.no","aurskog-holand.no","aurskog-høland.no","austevoll.no","austrheim.no","averoy.no","averøy.no","balestrand.no","ballangen.no","balat.no","bálát.no","balsfjord.no","bahccavuotna.no","báhccavuotna.no","bamble.no","bardu.no","beardu.no","beiarn.no","bajddar.no","bájddar.no","baidar.no","báidár.no","berg.no","bergen.no","berlevag.no","berlevåg.no","bearalvahki.no","bearalváhki.no","bindal.no","birkenes.no","bjarkoy.no","bjarkøy.no","bjerkreim.no","bjugn.no","bodo.no","bodø.no","badaddja.no","bådåddjå.no","budejju.no","bokn.no","bremanger.no","bronnoy.no","brønnøy.no","bygland.no","bykle.no","barum.no","bærum.no","bo.telemark.no","bø.telemark.no","bo.nordland.no","bø.nordland.no","bievat.no","bievát.no","bomlo.no","bømlo.no","batsfjord.no","båtsfjord.no","bahcavuotna.no","báhcavuotna.no","dovre.no","drammen.no","drangedal.no","dyroy.no","dyrøy.no","donna.no","dønna.no","eid.no","eidfjord.no","eidsberg.no","eidskog.no","eidsvoll.no","eigersund.no","elverum.no","enebakk.no","engerdal.no","etne.no","etnedal.no","evenes.no","evenassi.no","evenášši.no","evje-og-hornnes.no","farsund.no","fauske.no","fuossko.no","fuoisku.no","fedje.no","fet.no","finnoy.no","finnøy.no","fitjar.no","fjaler.no","fjell.no","flakstad.no","flatanger.no","flekkefjord.no","flesberg.no","flora.no","fla.no","flå.no","folldal.no","forsand.no","fosnes.no","frei.no","frogn.no","froland.no","frosta.no","frana.no","fræna.no","froya.no","frøya.no","fusa.no","fyresdal.no","forde.no","førde.no","gamvik.no","gangaviika.no","gáŋgaviika.no","gaular.no","gausdal.no","gildeskal.no","gildeskål.no","giske.no","gjemnes.no","gjerdrum.no","gjerstad.no","gjesdal.no","gjovik.no","gjøvik.no","gloppen.no","gol.no","gran.no","grane.no","granvin.no","gratangen.no","grimstad.no","grong.no","kraanghke.no","kråanghke.no","grue.no","gulen.no","hadsel.no","halden.no","halsa.no","hamar.no","hamaroy.no","habmer.no","hábmer.no","hapmir.no","hápmir.no","hammerfest.no","hammarfeasta.no","hámmárfeasta.no","haram.no","hareid.no","harstad.no","hasvik.no","aknoluokta.no","ákŋoluokta.no","hattfjelldal.no","aarborte.no","haugesund.no","hemne.no","hemnes.no","hemsedal.no","heroy.more-og-romsdal.no","herøy.møre-og-romsdal.no","heroy.nordland.no","herøy.nordland.no","hitra.no","hjartdal.no","hjelmeland.no","hobol.no","hobøl.no","hof.no","hol.no","hole.no","holmestrand.no","holtalen.no","holtålen.no","hornindal.no","horten.no","hurdal.no","hurum.no","hvaler.no","hyllestad.no","hagebostad.no","hægebostad.no","hoyanger.no","høyanger.no","hoylandet.no","høylandet.no","ha.no","hå.no","ibestad.no","inderoy.no","inderøy.no","iveland.no","jevnaker.no","jondal.no","jolster.no","jølster.no","karasjok.no","karasjohka.no","kárášjohka.no","karlsoy.no","galsa.no","gálsá.no","karmoy.no","karmøy.no","kautokeino.no","guovdageaidnu.no","klepp.no","klabu.no","klæbu.no","kongsberg.no","kongsvinger.no","kragero.no","kragerø.no","kristiansand.no","kristiansund.no","krodsherad.no","krødsherad.no","kvalsund.no","rahkkeravju.no","ráhkkerávju.no","kvam.no","kvinesdal.no","kvinnherad.no","kviteseid.no","kvitsoy.no","kvitsøy.no","kvafjord.no","kvæfjord.no","giehtavuoatna.no","kvanangen.no","kvænangen.no","navuotna.no","návuotna.no","kafjord.no","kåfjord.no","gaivuotna.no","gáivuotna.no","larvik.no","lavangen.no","lavagis.no","loabat.no","loabát.no","lebesby.no","davvesiida.no","leikanger.no","leirfjord.no","leka.no","leksvik.no","lenvik.no","leangaviika.no","leaŋgaviika.no","lesja.no","levanger.no","lier.no","lierne.no","lillehammer.no","lillesand.no","lindesnes.no","lindas.no","lindås.no","lom.no","loppa.no","lahppi.no","láhppi.no","lund.no","lunner.no","luroy.no","lurøy.no","luster.no","lyngdal.no","lyngen.no","ivgu.no","lardal.no","lerdal.no","lærdal.no","lodingen.no","lødingen.no","lorenskog.no","lørenskog.no","loten.no","løten.no","malvik.no","masoy.no","måsøy.no","muosat.no","muosát.no","mandal.no","marker.no","marnardal.no","masfjorden.no","meland.no","meldal.no","melhus.no","meloy.no","meløy.no","meraker.no","meråker.no","moareke.no","moåreke.no","midsund.no","midtre-gauldal.no","modalen.no","modum.no","molde.no","moskenes.no","moss.no","mosvik.no","malselv.no","målselv.no","malatvuopmi.no","málatvuopmi.no","namdalseid.no","aejrie.no","namsos.no","namsskogan.no","naamesjevuemie.no","nååmesjevuemie.no","laakesvuemie.no","nannestad.no","narvik.no","narviika.no","naustdal.no","nedre-eiker.no","nes.akershus.no","nes.buskerud.no","nesna.no","nesodden.no","nesseby.no","unjarga.no","unjárga.no","nesset.no","nissedal.no","nittedal.no","nord-aurdal.no","nord-fron.no","nord-odal.no","norddal.no","nordkapp.no","davvenjarga.no","davvenjárga.no","nordre-land.no","nordreisa.no","raisa.no","ráisa.no","nore-og-uvdal.no","notodden.no","naroy.no","nærøy.no","notteroy.no","nøtterøy.no","odda.no","oksnes.no","øksnes.no","oppdal.no","oppegard.no","oppegård.no","orkdal.no","orland.no","ørland.no","orskog.no","ørskog.no","orsta.no","ørsta.no","os.hedmark.no","os.hordaland.no","osen.no","osteroy.no","osterøy.no","ostre-toten.no","østre-toten.no","overhalla.no","ovre-eiker.no","øvre-eiker.no","oyer.no","øyer.no","oygarden.no","øygarden.no","oystre-slidre.no","øystre-slidre.no","porsanger.no","porsangu.no","porsáŋgu.no","porsgrunn.no","radoy.no","radøy.no","rakkestad.no","rana.no","ruovat.no","randaberg.no","rauma.no","rendalen.no","rennebu.no","rennesoy.no","rennesøy.no","rindal.no","ringebu.no","ringerike.no","ringsaker.no","rissa.no","risor.no","risør.no","roan.no","rollag.no","rygge.no","ralingen.no","rælingen.no","rodoy.no","rødøy.no","romskog.no","rømskog.no","roros.no","røros.no","rost.no","røst.no","royken.no","røyken.no","royrvik.no","røyrvik.no","rade.no","råde.no","salangen.no","siellak.no","saltdal.no","salat.no","sálát.no","sálat.no","samnanger.no","sande.more-og-romsdal.no","sande.møre-og-romsdal.no","sande.vestfold.no","sandefjord.no","sandnes.no","sandoy.no","sandøy.no","sarpsborg.no","sauda.no","sauherad.no","sel.no","selbu.no","selje.no","seljord.no","sigdal.no","siljan.no","sirdal.no","skaun.no","skedsmo.no","ski.no","skien.no","skiptvet.no","skjervoy.no","skjervøy.no","skierva.no","skiervá.no","skjak.no","skjåk.no","skodje.no","skanland.no","skånland.no","skanit.no","skánit.no","smola.no","smøla.no","snillfjord.no","snasa.no","snåsa.no","snoasa.no","snaase.no","snåase.no","sogndal.no","sokndal.no","sola.no","solund.no","songdalen.no","sortland.no","spydeberg.no","stange.no","stavanger.no","steigen.no","steinkjer.no","stjordal.no","stjørdal.no","stokke.no","stor-elvdal.no","stord.no","stordal.no","storfjord.no","omasvuotna.no","strand.no","stranda.no","stryn.no","sula.no","suldal.no","sund.no","sunndal.no","surnadal.no","sveio.no","svelvik.no","sykkylven.no","sogne.no","søgne.no","somna.no","sømna.no","sondre-land.no","søndre-land.no","sor-aurdal.no","sør-aurdal.no","sor-fron.no","sør-fron.no","sor-odal.no","sør-odal.no","sor-varanger.no","sør-varanger.no","matta-varjjat.no","mátta-várjjat.no","sorfold.no","sørfold.no","sorreisa.no","sørreisa.no","sorum.no","sørum.no","tana.no","deatnu.no","time.no","tingvoll.no","tinn.no","tjeldsund.no","dielddanuorri.no","tjome.no","tjøme.no","tokke.no","tolga.no","torsken.no","tranoy.no","tranøy.no","tromso.no","tromsø.no","tromsa.no","romsa.no","trondheim.no","troandin.no","trysil.no","trana.no","træna.no","trogstad.no","trøgstad.no","tvedestrand.no","tydal.no","tynset.no","tysfjord.no","divtasvuodna.no","divttasvuotna.no","tysnes.no","tysvar.no","tysvær.no","tonsberg.no","tønsberg.no","ullensaker.no","ullensvang.no","ulvik.no","utsira.no","vadso.no","vadsø.no","cahcesuolo.no","čáhcesuolo.no","vaksdal.no","valle.no","vang.no","vanylven.no","vardo.no","vardø.no","varggat.no","várggát.no","vefsn.no","vaapste.no","vega.no","vegarshei.no","vegårshei.no","vennesla.no","verdal.no","verran.no","vestby.no","vestnes.no","vestre-slidre.no","vestre-toten.no","vestvagoy.no","vestvågøy.no","vevelstad.no","vik.no","vikna.no","vindafjord.no","volda.no","voss.no","varoy.no","værøy.no","vagan.no","vågan.no","voagat.no","vagsoy.no","vågsøy.no","vaga.no","vågå.no","valer.ostfold.no","våler.østfold.no","valer.hedmark.no","våler.hedmark.no","*.np","nr","biz.nr","info.nr","gov.nr","edu.nr","org.nr","net.nr","com.nr","nu","nz","ac.nz","co.nz","cri.nz","geek.nz","gen.nz","govt.nz","health.nz","iwi.nz","kiwi.nz","maori.nz","mil.nz","māori.nz","net.nz","org.nz","parliament.nz","school.nz","om","co.om","com.om","edu.om","gov.om","med.om","museum.om","net.om","org.om","pro.om","onion","org","pa","ac.pa","gob.pa","com.pa","org.pa","sld.pa","edu.pa","net.pa","ing.pa","abo.pa","med.pa","nom.pa","pe","edu.pe","gob.pe","nom.pe","mil.pe","org.pe","com.pe","net.pe","pf","com.pf","org.pf","edu.pf","*.pg","ph","com.ph","net.ph","org.ph","gov.ph","edu.ph","ngo.ph","mil.ph","i.ph","pk","com.pk","net.pk","edu.pk","org.pk","fam.pk","biz.pk","web.pk","gov.pk","gob.pk","gok.pk","gon.pk","gop.pk","gos.pk","info.pk","pl","com.pl","net.pl","org.pl","aid.pl","agro.pl","atm.pl","auto.pl","biz.pl","edu.pl","gmina.pl","gsm.pl","info.pl","mail.pl","miasta.pl","media.pl","mil.pl","nieruchomosci.pl","nom.pl","pc.pl","powiat.pl","priv.pl","realestate.pl","rel.pl","sex.pl","shop.pl","sklep.pl","sos.pl","szkola.pl","targi.pl","tm.pl","tourism.pl","travel.pl","turystyka.pl","gov.pl","ap.gov.pl","ic.gov.pl","is.gov.pl","us.gov.pl","kmpsp.gov.pl","kppsp.gov.pl","kwpsp.gov.pl","psp.gov.pl","wskr.gov.pl","kwp.gov.pl","mw.gov.pl","ug.gov.pl","um.gov.pl","umig.gov.pl","ugim.gov.pl","upow.gov.pl","uw.gov.pl","starostwo.gov.pl","pa.gov.pl","po.gov.pl","psse.gov.pl","pup.gov.pl","rzgw.gov.pl","sa.gov.pl","so.gov.pl","sr.gov.pl","wsa.gov.pl","sko.gov.pl","uzs.gov.pl","wiih.gov.pl","winb.gov.pl","pinb.gov.pl","wios.gov.pl","witd.gov.pl","wzmiuw.gov.pl","piw.gov.pl","wiw.gov.pl","griw.gov.pl","wif.gov.pl","oum.gov.pl","sdn.gov.pl","zp.gov.pl","uppo.gov.pl","mup.gov.pl","wuoz.gov.pl","konsulat.gov.pl","oirm.gov.pl","augustow.pl","babia-gora.pl","bedzin.pl","beskidy.pl","bialowieza.pl","bialystok.pl","bielawa.pl","bieszczady.pl","boleslawiec.pl","bydgoszcz.pl","bytom.pl","cieszyn.pl","czeladz.pl","czest.pl","dlugoleka.pl","elblag.pl","elk.pl","glogow.pl","gniezno.pl","gorlice.pl","grajewo.pl","ilawa.pl","jaworzno.pl","jelenia-gora.pl","jgora.pl","kalisz.pl","kazimierz-dolny.pl","karpacz.pl","kartuzy.pl","kaszuby.pl","katowice.pl","kepno.pl","ketrzyn.pl","klodzko.pl","kobierzyce.pl","kolobrzeg.pl","konin.pl","konskowola.pl","kutno.pl","lapy.pl","lebork.pl","legnica.pl","lezajsk.pl","limanowa.pl","lomza.pl","lowicz.pl","lubin.pl","lukow.pl","malbork.pl","malopolska.pl","mazowsze.pl","mazury.pl","mielec.pl","mielno.pl","mragowo.pl","naklo.pl","nowaruda.pl","nysa.pl","olawa.pl","olecko.pl","olkusz.pl","olsztyn.pl","opoczno.pl","opole.pl","ostroda.pl","ostroleka.pl","ostrowiec.pl","ostrowwlkp.pl","pila.pl","pisz.pl","podhale.pl","podlasie.pl","polkowice.pl","pomorze.pl","pomorskie.pl","prochowice.pl","pruszkow.pl","przeworsk.pl","pulawy.pl","radom.pl","rawa-maz.pl","rybnik.pl","rzeszow.pl","sanok.pl","sejny.pl","slask.pl","slupsk.pl","sosnowiec.pl","stalowa-wola.pl","skoczow.pl","starachowice.pl","stargard.pl","suwalki.pl","swidnica.pl","swiebodzin.pl","swinoujscie.pl","szczecin.pl","szczytno.pl","tarnobrzeg.pl","tgory.pl","turek.pl","tychy.pl","ustka.pl","walbrzych.pl","warmia.pl","warszawa.pl","waw.pl","wegrow.pl","wielun.pl","wlocl.pl","wloclawek.pl","wodzislaw.pl","wolomin.pl","wroclaw.pl","zachpomor.pl","zagan.pl","zarow.pl","zgora.pl","zgorzelec.pl","pm","pn","gov.pn","co.pn","org.pn","edu.pn","net.pn","post","pr","com.pr","net.pr","org.pr","gov.pr","edu.pr","isla.pr","pro.pr","biz.pr","info.pr","name.pr","est.pr","prof.pr","ac.pr","pro","aaa.pro","aca.pro","acct.pro","avocat.pro","bar.pro","cpa.pro","eng.pro","jur.pro","law.pro","med.pro","recht.pro","ps","edu.ps","gov.ps","sec.ps","plo.ps","com.ps","org.ps","net.ps","pt","net.pt","gov.pt","org.pt","edu.pt","int.pt","publ.pt","com.pt","nome.pt","pw","co.pw","ne.pw","or.pw","ed.pw","go.pw","belau.pw","py","com.py","coop.py","edu.py","gov.py","mil.py","net.py","org.py","qa","com.qa","edu.qa","gov.qa","mil.qa","name.qa","net.qa","org.qa","sch.qa","re","asso.re","com.re","nom.re","ro","arts.ro","com.ro","firm.ro","info.ro","nom.ro","nt.ro","org.ro","rec.ro","store.ro","tm.ro","www.ro","rs","ac.rs","co.rs","edu.rs","gov.rs","in.rs","org.rs","ru","rw","ac.rw","co.rw","coop.rw","gov.rw","mil.rw","net.rw","org.rw","sa","com.sa","net.sa","org.sa","gov.sa","med.sa","pub.sa","edu.sa","sch.sa","sb","com.sb","edu.sb","gov.sb","net.sb","org.sb","sc","com.sc","gov.sc","net.sc","org.sc","edu.sc","sd","com.sd","net.sd","org.sd","edu.sd","med.sd","tv.sd","gov.sd","info.sd","se","a.se","ac.se","b.se","bd.se","brand.se","c.se","d.se","e.se","f.se","fh.se","fhsk.se","fhv.se","g.se","h.se","i.se","k.se","komforb.se","kommunalforbund.se","komvux.se","l.se","lanbib.se","m.se","n.se","naturbruksgymn.se","o.se","org.se","p.se","parti.se","pp.se","press.se","r.se","s.se","t.se","tm.se","u.se","w.se","x.se","y.se","z.se","sg","com.sg","net.sg","org.sg","gov.sg","edu.sg","per.sg","sh","com.sh","net.sh","gov.sh","org.sh","mil.sh","si","sj","sk","sl","com.sl","net.sl","edu.sl","gov.sl","org.sl","sm","sn","art.sn","com.sn","edu.sn","gouv.sn","org.sn","perso.sn","univ.sn","so","com.so","edu.so","gov.so","me.so","net.so","org.so","sr","ss","biz.ss","com.ss","edu.ss","gov.ss","net.ss","org.ss","st","co.st","com.st","consulado.st","edu.st","embaixada.st","gov.st","mil.st","net.st","org.st","principe.st","saotome.st","store.st","su","sv","com.sv","edu.sv","gob.sv","org.sv","red.sv","sx","gov.sx","sy","edu.sy","gov.sy","net.sy","mil.sy","com.sy","org.sy","sz","co.sz","ac.sz","org.sz","tc","td","tel","tf","tg","th","ac.th","co.th","go.th","in.th","mi.th","net.th","or.th","tj","ac.tj","biz.tj","co.tj","com.tj","edu.tj","go.tj","gov.tj","int.tj","mil.tj","name.tj","net.tj","nic.tj","org.tj","test.tj","web.tj","tk","tl","gov.tl","tm","com.tm","co.tm","org.tm","net.tm","nom.tm","gov.tm","mil.tm","edu.tm","tn","com.tn","ens.tn","fin.tn","gov.tn","ind.tn","intl.tn","nat.tn","net.tn","org.tn","info.tn","perso.tn","tourism.tn","edunet.tn","rnrt.tn","rns.tn","rnu.tn","mincom.tn","agrinet.tn","defense.tn","turen.tn","to","com.to","gov.to","net.to","org.to","edu.to","mil.to","tr","av.tr","bbs.tr","bel.tr","biz.tr","com.tr","dr.tr","edu.tr","gen.tr","gov.tr","info.tr","mil.tr","k12.tr","kep.tr","name.tr","net.tr","org.tr","pol.tr","tel.tr","tsk.tr","tv.tr","web.tr","nc.tr","gov.nc.tr","tt","co.tt","com.tt","org.tt","net.tt","biz.tt","info.tt","pro.tt","int.tt","coop.tt","jobs.tt","mobi.tt","travel.tt","museum.tt","aero.tt","name.tt","gov.tt","edu.tt","tv","tw","edu.tw","gov.tw","mil.tw","com.tw","net.tw","org.tw","idv.tw","game.tw","ebiz.tw","club.tw","網路.tw","組織.tw","商業.tw","tz","ac.tz","co.tz","go.tz","hotel.tz","info.tz","me.tz","mil.tz","mobi.tz","ne.tz","or.tz","sc.tz","tv.tz","ua","com.ua","edu.ua","gov.ua","in.ua","net.ua","org.ua","cherkassy.ua","cherkasy.ua","chernigov.ua","chernihiv.ua","chernivtsi.ua","chernovtsy.ua","ck.ua","cn.ua","cr.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","dominic.ua","donetsk.ua","dp.ua","if.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","khmelnytskyi.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","krym.ua","ks.ua","kv.ua","kyiv.ua","lg.ua","lt.ua","lugansk.ua","lutsk.ua","lv.ua","lviv.ua","mk.ua","mykolaiv.ua","nikolaev.ua","od.ua","odesa.ua","odessa.ua","pl.ua","poltava.ua","rivne.ua","rovno.ua","rv.ua","sb.ua","sebastopol.ua","sevastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","uz.ua","uzhgorod.ua","vinnica.ua","vinnytsia.ua","vn.ua","volyn.ua","yalta.ua","zaporizhzhe.ua","zaporizhzhia.ua","zhitomir.ua","zhytomyr.ua","zp.ua","zt.ua","ug","co.ug","or.ug","ac.ug","sc.ug","go.ug","ne.ug","com.ug","org.ug","uk","ac.uk","co.uk","gov.uk","ltd.uk","me.uk","net.uk","nhs.uk","org.uk","plc.uk","police.uk","*.sch.uk","us","dni.us","fed.us","isa.us","kids.us","nsn.us","ak.us","al.us","ar.us","as.us","az.us","ca.us","co.us","ct.us","dc.us","de.us","fl.us","ga.us","gu.us","hi.us","ia.us","id.us","il.us","in.us","ks.us","ky.us","la.us","ma.us","md.us","me.us","mi.us","mn.us","mo.us","ms.us","mt.us","nc.us","nd.us","ne.us","nh.us","nj.us","nm.us","nv.us","ny.us","oh.us","ok.us","or.us","pa.us","pr.us","ri.us","sc.us","sd.us","tn.us","tx.us","ut.us","vi.us","vt.us","va.us","wa.us","wi.us","wv.us","wy.us","k12.ak.us","k12.al.us","k12.ar.us","k12.as.us","k12.az.us","k12.ca.us","k12.co.us","k12.ct.us","k12.dc.us","k12.de.us","k12.fl.us","k12.ga.us","k12.gu.us","k12.ia.us","k12.id.us","k12.il.us","k12.in.us","k12.ks.us","k12.ky.us","k12.la.us","k12.ma.us","k12.md.us","k12.me.us","k12.mi.us","k12.mn.us","k12.mo.us","k12.ms.us","k12.mt.us","k12.nc.us","k12.ne.us","k12.nh.us","k12.nj.us","k12.nm.us","k12.nv.us","k12.ny.us","k12.oh.us","k12.ok.us","k12.or.us","k12.pa.us","k12.pr.us","k12.ri.us","k12.sc.us","k12.tn.us","k12.tx.us","k12.ut.us","k12.vi.us","k12.vt.us","k12.va.us","k12.wa.us","k12.wi.us","k12.wy.us","cc.ak.us","cc.al.us","cc.ar.us","cc.as.us","cc.az.us","cc.ca.us","cc.co.us","cc.ct.us","cc.dc.us","cc.de.us","cc.fl.us","cc.ga.us","cc.gu.us","cc.hi.us","cc.ia.us","cc.id.us","cc.il.us","cc.in.us","cc.ks.us","cc.ky.us","cc.la.us","cc.ma.us","cc.md.us","cc.me.us","cc.mi.us","cc.mn.us","cc.mo.us","cc.ms.us","cc.mt.us","cc.nc.us","cc.nd.us","cc.ne.us","cc.nh.us","cc.nj.us","cc.nm.us","cc.nv.us","cc.ny.us","cc.oh.us","cc.ok.us","cc.or.us","cc.pa.us","cc.pr.us","cc.ri.us","cc.sc.us","cc.sd.us","cc.tn.us","cc.tx.us","cc.ut.us","cc.vi.us","cc.vt.us","cc.va.us","cc.wa.us","cc.wi.us","cc.wv.us","cc.wy.us","lib.ak.us","lib.al.us","lib.ar.us","lib.as.us","lib.az.us","lib.ca.us","lib.co.us","lib.ct.us","lib.dc.us","lib.fl.us","lib.ga.us","lib.gu.us","lib.hi.us","lib.ia.us","lib.id.us","lib.il.us","lib.in.us","lib.ks.us","lib.ky.us","lib.la.us","lib.ma.us","lib.md.us","lib.me.us","lib.mi.us","lib.mn.us","lib.mo.us","lib.ms.us","lib.mt.us","lib.nc.us","lib.nd.us","lib.ne.us","lib.nh.us","lib.nj.us","lib.nm.us","lib.nv.us","lib.ny.us","lib.oh.us","lib.ok.us","lib.or.us","lib.pa.us","lib.pr.us","lib.ri.us","lib.sc.us","lib.sd.us","lib.tn.us","lib.tx.us","lib.ut.us","lib.vi.us","lib.vt.us","lib.va.us","lib.wa.us","lib.wi.us","lib.wy.us","pvt.k12.ma.us","chtr.k12.ma.us","paroch.k12.ma.us","ann-arbor.mi.us","cog.mi.us","dst.mi.us","eaton.mi.us","gen.mi.us","mus.mi.us","tec.mi.us","washtenaw.mi.us","uy","com.uy","edu.uy","gub.uy","mil.uy","net.uy","org.uy","uz","co.uz","com.uz","net.uz","org.uz","va","vc","com.vc","net.vc","org.vc","gov.vc","mil.vc","edu.vc","ve","arts.ve","co.ve","com.ve","e12.ve","edu.ve","firm.ve","gob.ve","gov.ve","info.ve","int.ve","mil.ve","net.ve","org.ve","rec.ve","store.ve","tec.ve","web.ve","vg","vi","co.vi","com.vi","k12.vi","net.vi","org.vi","vn","com.vn","net.vn","org.vn","edu.vn","gov.vn","int.vn","ac.vn","biz.vn","info.vn","name.vn","pro.vn","health.vn","vu","com.vu","edu.vu","net.vu","org.vu","wf","ws","com.ws","net.ws","org.ws","gov.ws","edu.ws","yt","امارات","հայ","বাংলা","бг","бел","中国","中國","الجزائر","مصر","ею","ευ","موريتانيا","გე","ελ","香港","公司.香港","教育.香港","政府.香港","個人.香港","網絡.香港","組織.香港","ಭಾರತ","ଭାରତ","ভাৰত","भारतम्","भारोत","ڀارت","ഭാരതം","भारत","بارت","بھارت","భారత్","ભારત","ਭਾਰਤ","ভারত","இந்தியா","ایران","ايران","عراق","الاردن","한국","қаз","ලංකා","இலங்கை","المغرب","мкд","мон","澳門","澳门","مليسيا","عمان","پاکستان","پاكستان","فلسطين","срб","пр.срб","орг.срб","обр.срб","од.срб","упр.срб","ак.срб","рф","قطر","السعودية","السعودیة","السعودیۃ","السعوديه","سودان","新加坡","சிங்கப்பூர்","سورية","سوريا","ไทย","ศึกษา.ไทย","ธุรกิจ.ไทย","รัฐบาล.ไทย","ทหาร.ไทย","เน็ต.ไทย","องค์กร.ไทย","تونس","台灣","台湾","臺灣","укр","اليمن","xxx","*.ye","ac.za","agric.za","alt.za","co.za","edu.za","gov.za","grondar.za","law.za","mil.za","net.za","ngo.za","nic.za","nis.za","nom.za","org.za","school.za","tm.za","web.za","zm","ac.zm","biz.zm","co.zm","com.zm","edu.zm","gov.zm","info.zm","mil.zm","net.zm","org.zm","sch.zm","zw","ac.zw","co.zw","gov.zw","mil.zw","org.zw","aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","academy","accenture","accountant","accountants","aco","actor","adac","ads","adult","aeg","aetna","afamilycompany","afl","africa","agakhan","agency","aig","aigo","airbus","airforce","airtel","akdn","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","aol","apartments","app","apple","aquarelle","arab","aramco","archi","army","art","arte","asda","associates","athleta","attorney","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aws","axa","azure","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bbc","bbt","bbva","bcg","bcn","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bharti","bible","bid","bike","bing","bingo","bio","black","blackfriday","blockbuster","blog","bloomberg","blue","bms","bmw","bnpparibas","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","bradesco","bridgestone","broadway","broker","brother","brussels","budapest","bugatti","build","builders","business","buy","buzz","bzh","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","caseih","cash","casino","catering","catholic","cba","cbn","cbre","cbs","ceb","center","ceo","cern","cfa","cfd","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","coach","codes","coffee","college","cologne","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","corsica","country","coupon","coupons","courses","cpa","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","csc","cuisinella","cymru","cyou","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dnp","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","duck","dunlop","dupont","durban","dvag","dvr","earth","eat","eco","edeka","education","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","ericsson","erni","esq","estate","esurance","etisalat","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","flickr","flights","flir","florist","flowers","fly","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fujixerox","fun","fund","furniture","futbol","fyi","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gbiz","gdn","gea","gent","genting","george","ggee","gift","gifts","gives","giving","glade","glass","gle","global","globo","gmail","gmbh","gmo","gmx","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","grainger","graphics","gratis","green","gripe","grocery","group","guardian","gucci","guge","guide","guitars","guru","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hkt","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hsbc","hughes","hyatt","hyundai","ibm","icbc","ice","icu","ieee","ifm","ikano","imamat","imdb","immo","immobilien","inc","industries","infiniti","ing","ink","institute","insurance","insure","intel","international","intuit","investments","ipiranga","irish","ismaili","ist","istanbul","itau","itv","iveco","jaguar","java","jcb","jcp","jeep","jetzt","jewelry","jio","jll","jmp","jnj","joburg","jot","joy","jpmorgan","jprs","juegos","juniper","kaufen","kddi","kerryhotels","kerrylogistics","kerryproperties","kfh","kia","kim","kinder","kindle","kitchen","kiwi","koeln","komatsu","kosher","kpmg","kpn","krd","kred","kuokgroup","kyoto","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","lixil","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","ltd","ltda","lundbeck","lupin","luxe","luxury","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mckinsey","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","metlife","miami","microsoft","mini","mint","mit","mitsubishi","mlb","mls","mma","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","msd","mtn","mtr","mutual","nab","nadex","nagoya","nationwide","natura","navy","nba","nec","netbank","netflix","network","neustar","new","newholland","news","next","nextdirect","nexus","nfl","ngo","nhk","nico","nike","nikon","ninja","nissan","nissay","nokia","northwesternmutual","norton","now","nowruz","nowtv","nra","nrw","ntt","nyc","obi","observer","off","office","okinawa","olayan","olayangroup","oldnavy","ollo","omega","one","ong","onl","online","onyourside","ooo","open","oracle","orange","organic","origins","osaka","otsuka","ott","ovh","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pet","pfizer","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","place","play","playstation","plumbing","plus","pnc","pohl","poker","politie","porn","pramerica","praxi","press","prime","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","pub","pwc","qpon","quebec","quest","qvc","racing","radio","raid","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","rightathome","ril","rio","rip","rmit","rocher","rocks","rodeo","rogers","room","rsvp","rugby","ruhr","run","rwe","ryukyu","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sbi","sbs","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scjohnson","scor","scot","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","shriram","silk","sina","singles","site","ski","skin","sky","skype","sling","smart","smile","sncf","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","spreadbetting","srl","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","sucks","supplies","supply","support","surf","surgery","suzuki","swatch","swiftcover","swiss","sydney","symantec","systems","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tci","tdk","team","tech","technology","temasek","tennis","teva","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tjmaxx","tjx","tkmaxx","tmall","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tube","tui","tunes","tushu","tvs","ubank","ubs","unicom","university","uno","uol","ups","vacations","vana","vanguard","vegas","ventures","verisign","versicherung","vet","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vodka","volkswagen","volvo","vote","voting","voto","voyage","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","慈善","集团","在线","大众汽车","点看","คอม","八卦","موقع","公益","公司","香格里拉","网站","移动","我爱你","москва","католик","онлайн","сайт","联通","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","商标","商店","商城","дети","ポイント","新闻","工行","家電","كوم","中文网","中信","娱乐","谷歌","電訊盈科","购物","クラウド","通販","网店","संगठन","餐厅","网络","ком","亚马逊","诺基亚","食品","飞利浦","手表","手机","ارامكو","العليان","اتصالات","بازار","ابوظبي","كاثوليك","همراه","닷컴","政府","شبكة","بيتك","عرب","机构","组织机构","健康","招聘","рус","珠宝","大拿","みんな","グーグル","世界","書籍","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","广东","政务","xyz","yachts","yahoo","yamaxun","yandex","yodobashi","yoga","yokohama","you","youtube","yun","zappos","zara","zero","zip","zone","zuerich","cc.ua","inf.ua","ltd.ua","adobeaemcloud.com","adobeaemcloud.net","*.dev.adobeaemcloud.com","beep.pl","barsy.ca","*.compute.estate","*.alces.network","altervista.org","alwaysdata.net","cloudfront.net","*.compute.amazonaws.com","*.compute-1.amazonaws.com","*.compute.amazonaws.com.cn","us-east-1.amazonaws.com","cn-north-1.eb.amazonaws.com.cn","cn-northwest-1.eb.amazonaws.com.cn","elasticbeanstalk.com","ap-northeast-1.elasticbeanstalk.com","ap-northeast-2.elasticbeanstalk.com","ap-northeast-3.elasticbeanstalk.com","ap-south-1.elasticbeanstalk.com","ap-southeast-1.elasticbeanstalk.com","ap-southeast-2.elasticbeanstalk.com","ca-central-1.elasticbeanstalk.com","eu-central-1.elasticbeanstalk.com","eu-west-1.elasticbeanstalk.com","eu-west-2.elasticbeanstalk.com","eu-west-3.elasticbeanstalk.com","sa-east-1.elasticbeanstalk.com","us-east-1.elasticbeanstalk.com","us-east-2.elasticbeanstalk.com","us-gov-west-1.elasticbeanstalk.com","us-west-1.elasticbeanstalk.com","us-west-2.elasticbeanstalk.com","*.elb.amazonaws.com","*.elb.amazonaws.com.cn","s3.amazonaws.com","s3-ap-northeast-1.amazonaws.com","s3-ap-northeast-2.amazonaws.com","s3-ap-south-1.amazonaws.com","s3-ap-southeast-1.amazonaws.com","s3-ap-southeast-2.amazonaws.com","s3-ca-central-1.amazonaws.com","s3-eu-central-1.amazonaws.com","s3-eu-west-1.amazonaws.com","s3-eu-west-2.amazonaws.com","s3-eu-west-3.amazonaws.com","s3-external-1.amazonaws.com","s3-fips-us-gov-west-1.amazonaws.com","s3-sa-east-1.amazonaws.com","s3-us-gov-west-1.amazonaws.com","s3-us-east-2.amazonaws.com","s3-us-west-1.amazonaws.com","s3-us-west-2.amazonaws.com","s3.ap-northeast-2.amazonaws.com","s3.ap-south-1.amazonaws.com","s3.cn-north-1.amazonaws.com.cn","s3.ca-central-1.amazonaws.com","s3.eu-central-1.amazonaws.com","s3.eu-west-2.amazonaws.com","s3.eu-west-3.amazonaws.com","s3.us-east-2.amazonaws.com","s3.dualstack.ap-northeast-1.amazonaws.com","s3.dualstack.ap-northeast-2.amazonaws.com","s3.dualstack.ap-south-1.amazonaws.com","s3.dualstack.ap-southeast-1.amazonaws.com","s3.dualstack.ap-southeast-2.amazonaws.com","s3.dualstack.ca-central-1.amazonaws.com","s3.dualstack.eu-central-1.amazonaws.com","s3.dualstack.eu-west-1.amazonaws.com","s3.dualstack.eu-west-2.amazonaws.com","s3.dualstack.eu-west-3.amazonaws.com","s3.dualstack.sa-east-1.amazonaws.com","s3.dualstack.us-east-1.amazonaws.com","s3.dualstack.us-east-2.amazonaws.com","s3-website-us-east-1.amazonaws.com","s3-website-us-west-1.amazonaws.com","s3-website-us-west-2.amazonaws.com","s3-website-ap-northeast-1.amazonaws.com","s3-website-ap-southeast-1.amazonaws.com","s3-website-ap-southeast-2.amazonaws.com","s3-website-eu-west-1.amazonaws.com","s3-website-sa-east-1.amazonaws.com","s3-website.ap-northeast-2.amazonaws.com","s3-website.ap-south-1.amazonaws.com","s3-website.ca-central-1.amazonaws.com","s3-website.eu-central-1.amazonaws.com","s3-website.eu-west-2.amazonaws.com","s3-website.eu-west-3.amazonaws.com","s3-website.us-east-2.amazonaws.com","amsw.nl","t3l3p0rt.net","tele.amune.org","apigee.io","on-aptible.com","user.aseinet.ne.jp","gv.vc","d.gv.vc","user.party.eus","pimienta.org","poivron.org","potager.org","sweetpepper.org","myasustor.com","myfritz.net","*.awdev.ca","*.advisor.ws","b-data.io","backplaneapp.io","balena-devices.com","app.banzaicloud.io","betainabox.com","bnr.la","blackbaudcdn.net","boomla.net","boxfuse.io","square7.ch","bplaced.com","bplaced.de","square7.de","bplaced.net","square7.net","browsersafetymark.io","uk0.bigv.io","dh.bytemark.co.uk","vm.bytemark.co.uk","mycd.eu","carrd.co","crd.co","uwu.ai","ae.org","ar.com","br.com","cn.com","com.de","com.se","de.com","eu.com","gb.com","gb.net","hu.com","hu.net","jp.net","jpn.com","kr.com","mex.com","no.com","qc.com","ru.com","sa.com","se.net","uk.com","uk.net","us.com","uy.com","za.bz","za.com","africa.com","gr.com","in.net","us.org","co.com","c.la","certmgr.org","xenapponazure.com","discourse.group","discourse.team","virtueeldomein.nl","cleverapps.io","*.lcl.dev","*.stg.dev","c66.me","cloud66.ws","cloud66.zone","jdevcloud.com","wpdevcloud.com","cloudaccess.host","freesite.host","cloudaccess.net","cloudcontrolled.com","cloudcontrolapp.com","cloudera.site","trycloudflare.com","workers.dev","wnext.app","co.ca","*.otap.co","co.cz","c.cdn77.org","cdn77-ssl.net","r.cdn77.net","rsc.cdn77.org","ssl.origin.cdn77-secure.org","cloudns.asia","cloudns.biz","cloudns.club","cloudns.cc","cloudns.eu","cloudns.in","cloudns.info","cloudns.org","cloudns.pro","cloudns.pw","cloudns.us","cloudeity.net","cnpy.gdn","co.nl","co.no","webhosting.be","hosting-cluster.nl","ac.ru","edu.ru","gov.ru","int.ru","mil.ru","test.ru","dyn.cosidns.de","dynamisches-dns.de","dnsupdater.de","internet-dns.de","l-o-g-i-n.de","dynamic-dns.info","feste-ip.net","knx-server.net","static-access.net","realm.cz","*.cryptonomic.net","cupcake.is","*.customer-oci.com","*.oci.customer-oci.com","*.ocp.customer-oci.com","*.ocs.customer-oci.com","cyon.link","cyon.site","daplie.me","localhost.daplie.me","dattolocal.com","dattorelay.com","dattoweb.com","mydatto.com","dattolocal.net","mydatto.net","biz.dk","co.dk","firm.dk","reg.dk","store.dk","*.dapps.earth","*.bzz.dapps.earth","builtwithdark.com","edgestack.me","debian.net","dedyn.io","dnshome.de","online.th","shop.th","drayddns.com","dreamhosters.com","mydrobo.com","drud.io","drud.us","duckdns.org","dy.fi","tunk.org","dyndns-at-home.com","dyndns-at-work.com","dyndns-blog.com","dyndns-free.com","dyndns-home.com","dyndns-ip.com","dyndns-mail.com","dyndns-office.com","dyndns-pics.com","dyndns-remote.com","dyndns-server.com","dyndns-web.com","dyndns-wiki.com","dyndns-work.com","dyndns.biz","dyndns.info","dyndns.org","dyndns.tv","at-band-camp.net","ath.cx","barrel-of-knowledge.info","barrell-of-knowledge.info","better-than.tv","blogdns.com","blogdns.net","blogdns.org","blogsite.org","boldlygoingnowhere.org","broke-it.net","buyshouses.net","cechire.com","dnsalias.com","dnsalias.net","dnsalias.org","dnsdojo.com","dnsdojo.net","dnsdojo.org","does-it.net","doesntexist.com","doesntexist.org","dontexist.com","dontexist.net","dontexist.org","doomdns.com","doomdns.org","dvrdns.org","dyn-o-saur.com","dynalias.com","dynalias.net","dynalias.org","dynathome.net","dyndns.ws","endofinternet.net","endofinternet.org","endoftheinternet.org","est-a-la-maison.com","est-a-la-masion.com","est-le-patron.com","est-mon-blogueur.com","for-better.biz","for-more.biz","for-our.info","for-some.biz","for-the.biz","forgot.her.name","forgot.his.name","from-ak.com","from-al.com","from-ar.com","from-az.net","from-ca.com","from-co.net","from-ct.com","from-dc.com","from-de.com","from-fl.com","from-ga.com","from-hi.com","from-ia.com","from-id.com","from-il.com","from-in.com","from-ks.com","from-ky.com","from-la.net","from-ma.com","from-md.com","from-me.org","from-mi.com","from-mn.com","from-mo.com","from-ms.com","from-mt.com","from-nc.com","from-nd.com","from-ne.com","from-nh.com","from-nj.com","from-nm.com","from-nv.com","from-ny.net","from-oh.com","from-ok.com","from-or.com","from-pa.com","from-pr.com","from-ri.com","from-sc.com","from-sd.com","from-tn.com","from-tx.com","from-ut.com","from-va.com","from-vt.com","from-wa.com","from-wi.com","from-wv.com","from-wy.com","ftpaccess.cc","fuettertdasnetz.de","game-host.org","game-server.cc","getmyip.com","gets-it.net","go.dyndns.org","gotdns.com","gotdns.org","groks-the.info","groks-this.info","ham-radio-op.net","here-for-more.info","hobby-site.com","hobby-site.org","home.dyndns.org","homedns.org","homeftp.net","homeftp.org","homeip.net","homelinux.com","homelinux.net","homelinux.org","homeunix.com","homeunix.net","homeunix.org","iamallama.com","in-the-band.net","is-a-anarchist.com","is-a-blogger.com","is-a-bookkeeper.com","is-a-bruinsfan.org","is-a-bulls-fan.com","is-a-candidate.org","is-a-caterer.com","is-a-celticsfan.org","is-a-chef.com","is-a-chef.net","is-a-chef.org","is-a-conservative.com","is-a-cpa.com","is-a-cubicle-slave.com","is-a-democrat.com","is-a-designer.com","is-a-doctor.com","is-a-financialadvisor.com","is-a-geek.com","is-a-geek.net","is-a-geek.org","is-a-green.com","is-a-guru.com","is-a-hard-worker.com","is-a-hunter.com","is-a-knight.org","is-a-landscaper.com","is-a-lawyer.com","is-a-liberal.com","is-a-libertarian.com","is-a-linux-user.org","is-a-llama.com","is-a-musician.com","is-a-nascarfan.com","is-a-nurse.com","is-a-painter.com","is-a-patsfan.org","is-a-personaltrainer.com","is-a-photographer.com","is-a-player.com","is-a-republican.com","is-a-rockstar.com","is-a-socialist.com","is-a-soxfan.org","is-a-student.com","is-a-teacher.com","is-a-techie.com","is-a-therapist.com","is-an-accountant.com","is-an-actor.com","is-an-actress.com","is-an-anarchist.com","is-an-artist.com","is-an-engineer.com","is-an-entertainer.com","is-by.us","is-certified.com","is-found.org","is-gone.com","is-into-anime.com","is-into-cars.com","is-into-cartoons.com","is-into-games.com","is-leet.com","is-lost.org","is-not-certified.com","is-saved.org","is-slick.com","is-uberleet.com","is-very-bad.org","is-very-evil.org","is-very-good.org","is-very-nice.org","is-very-sweet.org","is-with-theband.com","isa-geek.com","isa-geek.net","isa-geek.org","isa-hockeynut.com","issmarterthanyou.com","isteingeek.de","istmein.de","kicks-ass.net","kicks-ass.org","knowsitall.info","land-4-sale.us","lebtimnetz.de","leitungsen.de","likes-pie.com","likescandy.com","merseine.nu","mine.nu","misconfused.org","mypets.ws","myphotos.cc","neat-url.com","office-on-the.net","on-the-web.tv","podzone.net","podzone.org","readmyblog.org","saves-the-whales.com","scrapper-site.net","scrapping.cc","selfip.biz","selfip.com","selfip.info","selfip.net","selfip.org","sells-for-less.com","sells-for-u.com","sells-it.net","sellsyourhome.org","servebbs.com","servebbs.net","servebbs.org","serveftp.net","serveftp.org","servegame.org","shacknet.nu","simple-url.com","space-to-rent.com","stuff-4-sale.org","stuff-4-sale.us","teaches-yoga.com","thruhere.net","traeumtgerade.de","webhop.biz","webhop.info","webhop.net","webhop.org","worse-than.tv","writesthisblog.com","ddnss.de","dyn.ddnss.de","dyndns.ddnss.de","dyndns1.de","dyn-ip24.de","home-webserver.de","dyn.home-webserver.de","myhome-server.de","ddnss.org","definima.net","definima.io","bci.dnstrace.pro","ddnsfree.com","ddnsgeek.com","giize.com","gleeze.com","kozow.com","loseyourip.com","ooguy.com","theworkpc.com","casacam.net","dynu.net","accesscam.org","camdvr.org","freeddns.org","mywire.org","webredirect.org","myddns.rocks","blogsite.xyz","dynv6.net","e4.cz","en-root.fr","mytuleap.com","onred.one","staging.onred.one","enonic.io","customer.enonic.io","eu.org","al.eu.org","asso.eu.org","at.eu.org","au.eu.org","be.eu.org","bg.eu.org","ca.eu.org","cd.eu.org","ch.eu.org","cn.eu.org","cy.eu.org","cz.eu.org","de.eu.org","dk.eu.org","edu.eu.org","ee.eu.org","es.eu.org","fi.eu.org","fr.eu.org","gr.eu.org","hr.eu.org","hu.eu.org","ie.eu.org","il.eu.org","in.eu.org","int.eu.org","is.eu.org","it.eu.org","jp.eu.org","kr.eu.org","lt.eu.org","lu.eu.org","lv.eu.org","mc.eu.org","me.eu.org","mk.eu.org","mt.eu.org","my.eu.org","net.eu.org","ng.eu.org","nl.eu.org","no.eu.org","nz.eu.org","paris.eu.org","pl.eu.org","pt.eu.org","q-a.eu.org","ro.eu.org","ru.eu.org","se.eu.org","si.eu.org","sk.eu.org","tr.eu.org","uk.eu.org","us.eu.org","eu-1.evennode.com","eu-2.evennode.com","eu-3.evennode.com","eu-4.evennode.com","us-1.evennode.com","us-2.evennode.com","us-3.evennode.com","us-4.evennode.com","twmail.cc","twmail.net","twmail.org","mymailer.com.tw","url.tw","apps.fbsbx.com","ru.net","adygeya.ru","bashkiria.ru","bir.ru","cbg.ru","com.ru","dagestan.ru","grozny.ru","kalmykia.ru","kustanai.ru","marine.ru","mordovia.ru","msk.ru","mytis.ru","nalchik.ru","nov.ru","pyatigorsk.ru","spb.ru","vladikavkaz.ru","vladimir.ru","abkhazia.su","adygeya.su","aktyubinsk.su","arkhangelsk.su","armenia.su","ashgabad.su","azerbaijan.su","balashov.su","bashkiria.su","bryansk.su","bukhara.su","chimkent.su","dagestan.su","east-kazakhstan.su","exnet.su","georgia.su","grozny.su","ivanovo.su","jambyl.su","kalmykia.su","kaluga.su","karacol.su","karaganda.su","karelia.su","khakassia.su","krasnodar.su","kurgan.su","kustanai.su","lenug.su","mangyshlak.su","mordovia.su","msk.su","murmansk.su","nalchik.su","navoi.su","north-kazakhstan.su","nov.su","obninsk.su","penza.su","pokrovsk.su","sochi.su","spb.su","tashkent.su","termez.su","togliatti.su","troitsk.su","tselinograd.su","tula.su","tuva.su","vladikavkaz.su","vladimir.su","vologda.su","channelsdvr.net","u.channelsdvr.net","fastly-terrarium.com","fastlylb.net","map.fastlylb.net","freetls.fastly.net","map.fastly.net","a.prod.fastly.net","global.prod.fastly.net","a.ssl.fastly.net","b.ssl.fastly.net","global.ssl.fastly.net","fastpanel.direct","fastvps-server.com","fhapp.xyz","fedorainfracloud.org","fedorapeople.org","cloud.fedoraproject.org","app.os.fedoraproject.org","app.os.stg.fedoraproject.org","mydobiss.com","filegear.me","filegear-au.me","filegear-de.me","filegear-gb.me","filegear-ie.me","filegear-jp.me","filegear-sg.me","firebaseapp.com","flynnhub.com","flynnhosting.net","0e.vc","freebox-os.com","freeboxos.com","fbx-os.fr","fbxos.fr","freebox-os.fr","freeboxos.fr","freedesktop.org","*.futurecms.at","*.ex.futurecms.at","*.in.futurecms.at","futurehosting.at","futuremailing.at","*.ex.ortsinfo.at","*.kunden.ortsinfo.at","*.statics.cloud","service.gov.uk","gehirn.ne.jp","usercontent.jp","gentapps.com","lab.ms","github.io","githubusercontent.com","gitlab.io","glitch.me","lolipop.io","cloudapps.digital","london.cloudapps.digital","homeoffice.gov.uk","ro.im","shop.ro","goip.de","run.app","a.run.app","web.app","*.0emm.com","appspot.com","*.r.appspot.com","blogspot.ae","blogspot.al","blogspot.am","blogspot.ba","blogspot.be","blogspot.bg","blogspot.bj","blogspot.ca","blogspot.cf","blogspot.ch","blogspot.cl","blogspot.co.at","blogspot.co.id","blogspot.co.il","blogspot.co.ke","blogspot.co.nz","blogspot.co.uk","blogspot.co.za","blogspot.com","blogspot.com.ar","blogspot.com.au","blogspot.com.br","blogspot.com.by","blogspot.com.co","blogspot.com.cy","blogspot.com.ee","blogspot.com.eg","blogspot.com.es","blogspot.com.mt","blogspot.com.ng","blogspot.com.tr","blogspot.com.uy","blogspot.cv","blogspot.cz","blogspot.de","blogspot.dk","blogspot.fi","blogspot.fr","blogspot.gr","blogspot.hk","blogspot.hr","blogspot.hu","blogspot.ie","blogspot.in","blogspot.is","blogspot.it","blogspot.jp","blogspot.kr","blogspot.li","blogspot.lt","blogspot.lu","blogspot.md","blogspot.mk","blogspot.mr","blogspot.mx","blogspot.my","blogspot.nl","blogspot.no","blogspot.pe","blogspot.pt","blogspot.qa","blogspot.re","blogspot.ro","blogspot.rs","blogspot.ru","blogspot.se","blogspot.sg","blogspot.si","blogspot.sk","blogspot.sn","blogspot.td","blogspot.tw","blogspot.ug","blogspot.vn","cloudfunctions.net","cloud.goog","codespot.com","googleapis.com","googlecode.com","pagespeedmobilizer.com","publishproxy.com","withgoogle.com","withyoutube.com","awsmppl.com","fin.ci","free.hr","caa.li","ua.rs","conf.se","hs.zone","hs.run","hashbang.sh","hasura.app","hasura-app.io","hepforge.org","herokuapp.com","herokussl.com","myravendb.com","ravendb.community","ravendb.me","development.run","ravendb.run","bpl.biz","orx.biz","ng.city","biz.gl","ng.ink","col.ng","firm.ng","gen.ng","ltd.ng","ngo.ng","ng.school","sch.so","häkkinen.fi","*.moonscale.io","moonscale.net","iki.fi","dyn-berlin.de","in-berlin.de","in-brb.de","in-butter.de","in-dsl.de","in-dsl.net","in-dsl.org","in-vpn.de","in-vpn.net","in-vpn.org","biz.at","info.at","info.cx","ac.leg.br","al.leg.br","am.leg.br","ap.leg.br","ba.leg.br","ce.leg.br","df.leg.br","es.leg.br","go.leg.br","ma.leg.br","mg.leg.br","ms.leg.br","mt.leg.br","pa.leg.br","pb.leg.br","pe.leg.br","pi.leg.br","pr.leg.br","rj.leg.br","rn.leg.br","ro.leg.br","rr.leg.br","rs.leg.br","sc.leg.br","se.leg.br","sp.leg.br","to.leg.br","pixolino.com","ipifony.net","mein-iserv.de","test-iserv.de","iserv.dev","iobb.net","myjino.ru","*.hosting.myjino.ru","*.landing.myjino.ru","*.spectrum.myjino.ru","*.vps.myjino.ru","*.triton.zone","*.cns.joyent.com","js.org","kaas.gg","khplay.nl","keymachine.de","kinghost.net","uni5.net","knightpoint.systems","oya.to","co.krd","edu.krd","git-repos.de","lcube-server.de","svn-repos.de","leadpages.co","lpages.co","lpusercontent.com","lelux.site","co.business","co.education","co.events","co.financial","co.network","co.place","co.technology","app.lmpm.com","linkitools.space","linkyard.cloud","linkyard-cloud.ch","members.linode.com","nodebalancer.linode.com","we.bs","loginline.app","loginline.dev","loginline.io","loginline.services","loginline.site","krasnik.pl","leczna.pl","lubartow.pl","lublin.pl","poniatowa.pl","swidnik.pl","uklugs.org","glug.org.uk","lug.org.uk","lugs.org.uk","barsy.bg","barsy.co.uk","barsyonline.co.uk","barsycenter.com","barsyonline.com","barsy.club","barsy.de","barsy.eu","barsy.in","barsy.info","barsy.io","barsy.me","barsy.menu","barsy.mobi","barsy.net","barsy.online","barsy.org","barsy.pro","barsy.pub","barsy.shop","barsy.site","barsy.support","barsy.uk","*.magentosite.cloud","mayfirst.info","mayfirst.org","hb.cldmail.ru","miniserver.com","memset.net","cloud.metacentrum.cz","custom.metacentrum.cz","flt.cloud.muni.cz","usr.cloud.muni.cz","meteorapp.com","eu.meteorapp.com","co.pl","azurecontainer.io","azurewebsites.net","azure-mobile.net","cloudapp.net","mozilla-iot.org","bmoattachments.org","net.ru","org.ru","pp.ru","ui.nabu.casa","pony.club","of.fashion","on.fashion","of.football","in.london","of.london","for.men","and.mom","for.mom","for.one","for.sale","of.work","to.work","nctu.me","bitballoon.com","netlify.com","4u.com","ngrok.io","nh-serv.co.uk","nfshost.com","dnsking.ch","mypi.co","n4t.co","001www.com","ddnslive.com","myiphost.com","forumz.info","16-b.it","32-b.it","64-b.it","soundcast.me","tcp4.me","dnsup.net","hicam.net","now-dns.net","ownip.net","vpndns.net","dynserv.org","now-dns.org","x443.pw","now-dns.top","ntdll.top","freeddns.us","crafting.xyz","zapto.xyz","nsupdate.info","nerdpol.ovh","blogsyte.com","brasilia.me","cable-modem.org","ciscofreak.com","collegefan.org","couchpotatofries.org","damnserver.com","ddns.me","ditchyourip.com","dnsfor.me","dnsiskinky.com","dvrcam.info","dynns.com","eating-organic.net","fantasyleague.cc","geekgalaxy.com","golffan.us","health-carereform.com","homesecuritymac.com","homesecuritypc.com","hopto.me","ilovecollege.info","loginto.me","mlbfan.org","mmafan.biz","myactivedirectory.com","mydissent.net","myeffect.net","mymediapc.net","mypsx.net","mysecuritycamera.com","mysecuritycamera.net","mysecuritycamera.org","net-freaks.com","nflfan.org","nhlfan.net","no-ip.ca","no-ip.co.uk","no-ip.net","noip.us","onthewifi.com","pgafan.net","point2this.com","pointto.us","privatizehealthinsurance.net","quicksytes.com","read-books.org","securitytactics.com","serveexchange.com","servehumour.com","servep2p.com","servesarcasm.com","stufftoread.com","ufcfan.org","unusualperson.com","workisboring.com","3utilities.com","bounceme.net","ddns.net","ddnsking.com","gotdns.ch","hopto.org","myftp.biz","myftp.org","myvnc.com","no-ip.biz","no-ip.info","no-ip.org","noip.me","redirectme.net","servebeer.com","serveblog.net","servecounterstrike.com","serveftp.com","servegame.com","servehalflife.com","servehttp.com","serveirc.com","serveminecraft.net","servemp3.com","servepics.com","servequake.com","sytes.net","webhop.me","zapto.org","stage.nodeart.io","nodum.co","nodum.io","pcloud.host","nyc.mn","nom.ae","nom.af","nom.ai","nom.al","nym.by","nom.bz","nym.bz","nom.cl","nym.ec","nom.gd","nom.ge","nom.gl","nym.gr","nom.gt","nym.gy","nym.hk","nom.hn","nym.ie","nom.im","nom.ke","nym.kz","nym.la","nym.lc","nom.li","nym.li","nym.lt","nym.lu","nom.lv","nym.me","nom.mk","nym.mn","nym.mx","nom.nu","nym.nz","nym.pe","nym.pt","nom.pw","nom.qa","nym.ro","nom.rs","nom.si","nym.sk","nom.st","nym.su","nym.sx","nom.tj","nym.tw","nom.ug","nom.uy","nom.vc","nom.vg","static.observableusercontent.com","cya.gg","cloudycluster.net","nid.io","opencraft.hosting","operaunite.com","skygearapp.com","outsystemscloud.com","ownprovider.com","own.pm","ox.rs","oy.lc","pgfog.com","pagefrontapp.com","art.pl","gliwice.pl","krakow.pl","poznan.pl","wroc.pl","zakopane.pl","pantheonsite.io","gotpantheon.com","mypep.link","perspecta.cloud","on-web.fr","*.platform.sh","*.platformsh.site","dyn53.io","co.bn","xen.prgmr.com","priv.at","prvcy.page","*.dweb.link","protonet.io","chirurgiens-dentistes-en-france.fr","byen.site","pubtls.org","qualifioapp.com","qbuser.com","instantcloud.cn","ras.ru","qa2.com","qcx.io","*.sys.qcx.io","dev-myqnapcloud.com","alpha-myqnapcloud.com","myqnapcloud.com","*.quipelements.com","vapor.cloud","vaporcloud.io","rackmaze.com","rackmaze.net","*.on-k3s.io","*.on-rancher.cloud","*.on-rio.io","readthedocs.io","rhcloud.com","app.render.com","onrender.com","repl.co","repl.run","resindevice.io","devices.resinstaging.io","hzc.io","wellbeingzone.eu","ptplus.fit","wellbeingzone.co.uk","git-pages.rit.edu","sandcats.io","logoip.de","logoip.com","schokokeks.net","gov.scot","scrysec.com","firewall-gateway.com","firewall-gateway.de","my-gateway.de","my-router.de","spdns.de","spdns.eu","firewall-gateway.net","my-firewall.org","myfirewall.org","spdns.org","senseering.net","biz.ua","co.ua","pp.ua","shiftedit.io","myshopblocks.com","shopitsite.com","mo-siemens.io","1kapp.com","appchizi.com","applinzi.com","sinaapp.com","vipsinaapp.com","siteleaf.net","bounty-full.com","alpha.bounty-full.com","beta.bounty-full.com","stackhero-network.com","static.land","dev.static.land","sites.static.land","apps.lair.io","*.stolos.io","spacekit.io","customer.speedpartner.de","api.stdlib.com","storj.farm","utwente.io","soc.srcf.net","user.srcf.net","temp-dns.com","applicationcloud.io","scapp.io","*.s5y.io","*.sensiosite.cloud","syncloud.it","diskstation.me","dscloud.biz","dscloud.me","dscloud.mobi","dsmynas.com","dsmynas.net","dsmynas.org","familyds.com","familyds.net","familyds.org","i234.me","myds.me","synology.me","vpnplus.to","direct.quickconnect.to","taifun-dns.de","gda.pl","gdansk.pl","gdynia.pl","med.pl","sopot.pl","edugit.org","telebit.app","telebit.io","*.telebit.xyz","gwiddle.co.uk","thingdustdata.com","cust.dev.thingdust.io","cust.disrec.thingdust.io","cust.prod.thingdust.io","cust.testing.thingdust.io","arvo.network","azimuth.network","bloxcms.com","townnews-staging.com","12hp.at","2ix.at","4lima.at","lima-city.at","12hp.ch","2ix.ch","4lima.ch","lima-city.ch","trafficplex.cloud","de.cool","12hp.de","2ix.de","4lima.de","lima-city.de","1337.pictures","clan.rip","lima-city.rocks","webspace.rocks","lima.zone","*.transurl.be","*.transurl.eu","*.transurl.nl","tuxfamily.org","dd-dns.de","diskstation.eu","diskstation.org","dray-dns.de","draydns.de","dyn-vpn.de","dynvpn.de","mein-vigor.de","my-vigor.de","my-wan.de","syno-ds.de","synology-diskstation.de","synology-ds.de","uber.space","*.uberspace.de","hk.com","hk.org","ltd.hk","inc.hk","virtualuser.de","virtual-user.de","urown.cloud","dnsupdate.info","lib.de.us","2038.io","router.management","v-info.info","voorloper.cloud","v.ua","wafflecell.com","*.webhare.dev","wedeploy.io","wedeploy.me","wedeploy.sh","remotewd.com","wmflabs.org","myforum.community","community-pro.de","diskussionsbereich.de","community-pro.net","meinforum.net","half.host","xnbay.com","u2.xnbay.com","u2-local.xnbay.com","cistron.nl","demon.nl","xs4all.space","yandexcloud.net","storage.yandexcloud.net","website.yandexcloud.net","official.academy","yolasite.com","ybo.faith","yombo.me","homelink.one","ybo.party","ybo.review","ybo.science","ybo.trade","nohost.me","noho.st","za.net","za.org","now.sh","bss.design","basicserver.io","virtualserver.io","enterprisecloud.nu"]},{}],2:[function(a,o,r){"use strict";var p=a("punycode"),k={};k.rules=a("./data/rules.json").map(function(a){return{rule:a,suffix:a.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:"*"===a.charAt(0),exception:"!"===a.charAt(0)}}),k.endsWith=function(a,o){return-1!==a.indexOf(o,a.length-o.length)},k.findRule=function(a){var i=p.toASCII(a);return k.rules.reduce(function(a,o){return-1===o.punySuffix&&(o.punySuffix=p.toASCII(o.suffix)),k.endsWith(i,"."+o.punySuffix)||i===o.punySuffix?o:a},null)},r.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},k.validate=function(a){var o=p.toASCII(a);if(o.length<1)return"DOMAIN_TOO_SHORT";if(255<o.length)return"DOMAIN_TOO_LONG";for(var i,e=o.split("."),n=0;n<e.length;++n){if(!(i=e[n]).length)return"LABEL_TOO_SHORT";if(63<i.length)return"LABEL_TOO_LONG";if("-"===i.charAt(0))return"LABEL_STARTS_WITH_DASH";if("-"===i.charAt(i.length-1))return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(i))return"LABEL_INVALID_CHARS"}},r.parse=function(a){if("string"!=typeof a)throw new TypeError("Domain name must be a string.");var o=a.slice(0).toLowerCase();"."===o.charAt(o.length-1)&&(o=o.slice(0,o.length-1));var i=k.validate(o);if(i)return{input:a,error:{message:r.errorCodes[i],code:i}};var e={input:a,tld:null,sld:null,domain:null,subdomain:null,listed:!1},n=o.split(".");if("local"===n[n.length-1])return e;function s(){return/xn--/.test(o)&&(e.domain&&(e.domain=p.toASCII(e.domain)),e.subdomain&&(e.subdomain=p.toASCII(e.subdomain))),e}var m=k.findRule(o);if(!m)return n.length<2?e:(e.tld=n.pop(),e.sld=n.pop(),e.domain=[e.sld,e.tld].join("."),n.length&&(e.subdomain=n.pop()),s());e.listed=!0;var t=m.suffix.split("."),u=n.slice(0,n.length-t.length);return m.exception&&u.push(t.shift()),e.tld=t.join("."),u.length?(m.wildcard&&(t.unshift(u.pop()),e.tld=t.join(".")),u.length&&(e.sld=u.pop(),e.domain=[e.sld,e.tld].join("."),u.length&&(e.subdomain=u.join("."))),s()):s()},r.get=function(a){return a&&r.parse(a).domain||null},r.isValid=function(a){var o=r.parse(a);return Boolean(o.domain&&o.listed)}},{"./data/rules.json":1,punycode:3}],3:[function(a,T,D){(function(S){!function(a){var o="object"==typeof D&&D&&!D.nodeType&&D,i="object"==typeof T&&T&&!T.nodeType&&T,e="object"==typeof S&&S;e.global!==e&&e.window!==e&&e.self!==e||(a=e);var n,s,d=2147483647,b=36,y=1,f=26,m=38,t=700,v=72,w=128,z="-",u=/^xn--/,r=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=b-y,x=Math.floor,q=String.fromCharCode;function A(a){throw new RangeError(k[a])}function l(a,o){for(var i=a.length,e=[];i--;)e[i]=o(a[i]);return e}function g(a,o){var i=a.split("@"),e="";return 1<i.length&&(e=i[0]+"@",a=i[1]),e+l((a=a.replace(p,".")).split("."),o).join(".")}function O(a){for(var o,i,e=[],n=0,s=a.length;n<s;)55296<=(o=a.charCodeAt(n++))&&o<=56319&&n<s?56320==(64512&(i=a.charCodeAt(n++)))?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),n--):e.push(o);return e}function _(a){return l(a,function(a){var o="";return 65535<a&&(o+=q((a-=65536)>>>10&1023|55296),a=56320|1023&a),o+=q(a)}).join("")}function L(a,o){return a+22+75*(a<26)-((0!=o)<<5)}function I(a,o,i){var e=0;for(a=i?x(a/t):a>>1,a+=x(a/o);c*f>>1<a;e+=b)a=x(a/c);return x(e+(c+1)*a/(a+m))}function h(a){var o,i,e,n,s,m,t,u,r,p,k,c=[],l=a.length,g=0,h=w,j=v;for((i=a.lastIndexOf(z))<0&&(i=0),e=0;e<i;++e)128<=a.charCodeAt(e)&&A("not-basic"),c.push(a.charCodeAt(e));for(n=0<i?i+1:0;n<l;){for(s=g,m=1,t=b;l<=n&&A("invalid-input"),k=a.charCodeAt(n++),(b<=(u=k-48<10?k-22:k-65<26?k-65:k-97<26?k-97:b)||u>x((d-g)/m))&&A("overflow"),g+=u*m,!(u<(r=t<=j?y:j+f<=t?f:t-j));t+=b)m>x(d/(p=b-r))&&A("overflow"),m*=p;j=I(g-s,o=c.length+1,0==s),x(g/o)>d-h&&A("overflow"),h+=x(g/o),g%=o,c.splice(g++,0,h)}return _(c)}function j(a){var o,i,e,n,s,m,t,u,r,p,k,c,l,g,h,j=[];for(c=(a=O(a)).length,o=w,s=v,m=i=0;m<c;++m)(k=a[m])<128&&j.push(q(k));for(e=n=j.length,n&&j.push(z);e<c;){for(t=d,m=0;m<c;++m)o<=(k=a[m])&&k<t&&(t=k);for(t-o>x((d-i)/(l=e+1))&&A("overflow"),i+=(t-o)*l,o=t,m=0;m<c;++m)if((k=a[m])<o&&++i>d&&A("overflow"),k==o){for(u=i,r=b;!(u<(p=r<=s?y:s+f<=r?f:r-s));r+=b)h=u-p,g=b-p,j.push(q(L(p+h%g,0))),u=x(h/g);j.push(q(L(u,0))),s=I(i,l,e==n),i=0,++e}++i,++o}return j.join("")}if(n={version:"1.4.1",ucs2:{decode:O,encode:_},decode:h,encode:j,toASCII:function(a){return g(a,function(a){return r.test(a)?"xn--"+j(a):a})},toUnicode:function(a){return g(a,function(a){return u.test(a)?h(a.slice(4).toLowerCase()):a})}},0,o&&i)if(T.exports==o)i.exports=n;else for(s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);else a.punycode=n}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2])(2)});
diff --git a/node_modules/psl/index.js b/node_modules/psl/index.js
deleted file mode 100644
index da7bc12..0000000
--- a/node_modules/psl/index.js
+++ /dev/null
@@ -1,269 +0,0 @@
-/*eslint no-var:0, prefer-arrow-callback: 0, object-shorthand: 0 */
-'use strict';
-
-
-var Punycode = require('punycode');
-
-
-var internals = {};
-
-
-//
-// Read rules from file.
-//
-internals.rules = require('./data/rules.json').map(function (rule) {
-
- return {
- rule: rule,
- suffix: rule.replace(/^(\*\.|\!)/, ''),
- punySuffix: -1,
- wildcard: rule.charAt(0) === '*',
- exception: rule.charAt(0) === '!'
- };
-});
-
-
-//
-// Check is given string ends with `suffix`.
-//
-internals.endsWith = function (str, suffix) {
-
- return str.indexOf(suffix, str.length - suffix.length) !== -1;
-};
-
-
-//
-// Find rule for a given domain.
-//
-internals.findRule = function (domain) {
-
- var punyDomain = Punycode.toASCII(domain);
- return internals.rules.reduce(function (memo, rule) {
-
- if (rule.punySuffix === -1){
- rule.punySuffix = Punycode.toASCII(rule.suffix);
- }
- if (!internals.endsWith(punyDomain, '.' + rule.punySuffix) && punyDomain !== rule.punySuffix) {
- return memo;
- }
- // This has been commented out as it never seems to run. This is because
- // sub tlds always appear after their parents and we never find a shorter
- // match.
- //if (memo) {
- // var memoSuffix = Punycode.toASCII(memo.suffix);
- // if (memoSuffix.length >= punySuffix.length) {
- // return memo;
- // }
- //}
- return rule;
- }, null);
-};
-
-
-//
-// Error codes and messages.
-//
-exports.errorCodes = {
- DOMAIN_TOO_SHORT: 'Domain name too short.',
- DOMAIN_TOO_LONG: 'Domain name too long. It should be no more than 255 chars.',
- LABEL_STARTS_WITH_DASH: 'Domain name label can not start with a dash.',
- LABEL_ENDS_WITH_DASH: 'Domain name label can not end with a dash.',
- LABEL_TOO_LONG: 'Domain name label should be at most 63 chars long.',
- LABEL_TOO_SHORT: 'Domain name label should be at least 1 character long.',
- LABEL_INVALID_CHARS: 'Domain name label can only contain alphanumeric characters or dashes.'
-};
-
-
-//
-// Validate domain name and throw if not valid.
-//
-// From wikipedia:
-//
-// Hostnames are composed of series of labels concatenated with dots, as are all
-// domain names. Each label must be between 1 and 63 characters long, and the
-// entire hostname (including the delimiting dots) has a maximum of 255 chars.
-//
-// Allowed chars:
-//
-// * `a-z`
-// * `0-9`
-// * `-` but not as a starting or ending character
-// * `.` as a separator for the textual portions of a domain name
-//
-// * http://en.wikipedia.org/wiki/Domain_name
-// * http://en.wikipedia.org/wiki/Hostname
-//
-internals.validate = function (input) {
-
- // Before we can validate we need to take care of IDNs with unicode chars.
- var ascii = Punycode.toASCII(input);
-
- if (ascii.length < 1) {
- return 'DOMAIN_TOO_SHORT';
- }
- if (ascii.length > 255) {
- return 'DOMAIN_TOO_LONG';
- }
-
- // Check each part's length and allowed chars.
- var labels = ascii.split('.');
- var label;
-
- for (var i = 0; i < labels.length; ++i) {
- label = labels[i];
- if (!label.length) {
- return 'LABEL_TOO_SHORT';
- }
- if (label.length > 63) {
- return 'LABEL_TOO_LONG';
- }
- if (label.charAt(0) === '-') {
- return 'LABEL_STARTS_WITH_DASH';
- }
- if (label.charAt(label.length - 1) === '-') {
- return 'LABEL_ENDS_WITH_DASH';
- }
- if (!/^[a-z0-9\-]+$/.test(label)) {
- return 'LABEL_INVALID_CHARS';
- }
- }
-};
-
-
-//
-// Public API
-//
-
-
-//
-// Parse domain.
-//
-exports.parse = function (input) {
-
- if (typeof input !== 'string') {
- throw new TypeError('Domain name must be a string.');
- }
-
- // Force domain to lowercase.
- var domain = input.slice(0).toLowerCase();
-
- // Handle FQDN.
- // TODO: Simply remove trailing dot?
- if (domain.charAt(domain.length - 1) === '.') {
- domain = domain.slice(0, domain.length - 1);
- }
-
- // Validate and sanitise input.
- var error = internals.validate(domain);
- if (error) {
- return {
- input: input,
- error: {
- message: exports.errorCodes[error],
- code: error
- }
- };
- }
-
- var parsed = {
- input: input,
- tld: null,
- sld: null,
- domain: null,
- subdomain: null,
- listed: false
- };
-
- var domainParts = domain.split('.');
-
- // Non-Internet TLD
- if (domainParts[domainParts.length - 1] === 'local') {
- return parsed;
- }
-
- var handlePunycode = function () {
-
- if (!/xn--/.test(domain)) {
- return parsed;
- }
- if (parsed.domain) {
- parsed.domain = Punycode.toASCII(parsed.domain);
- }
- if (parsed.subdomain) {
- parsed.subdomain = Punycode.toASCII(parsed.subdomain);
- }
- return parsed;
- };
-
- var rule = internals.findRule(domain);
-
- // Unlisted tld.
- if (!rule) {
- if (domainParts.length < 2) {
- return parsed;
- }
- parsed.tld = domainParts.pop();
- parsed.sld = domainParts.pop();
- parsed.domain = [parsed.sld, parsed.tld].join('.');
- if (domainParts.length) {
- parsed.subdomain = domainParts.pop();
- }
- return handlePunycode();
- }
-
- // At this point we know the public suffix is listed.
- parsed.listed = true;
-
- var tldParts = rule.suffix.split('.');
- var privateParts = domainParts.slice(0, domainParts.length - tldParts.length);
-
- if (rule.exception) {
- privateParts.push(tldParts.shift());
- }
-
- parsed.tld = tldParts.join('.');
-
- if (!privateParts.length) {
- return handlePunycode();
- }
-
- if (rule.wildcard) {
- tldParts.unshift(privateParts.pop());
- parsed.tld = tldParts.join('.');
- }
-
- if (!privateParts.length) {
- return handlePunycode();
- }
-
- parsed.sld = privateParts.pop();
- parsed.domain = [parsed.sld, parsed.tld].join('.');
-
- if (privateParts.length) {
- parsed.subdomain = privateParts.join('.');
- }
-
- return handlePunycode();
-};
-
-
-//
-// Get domain.
-//
-exports.get = function (domain) {
-
- if (!domain) {
- return null;
- }
- return exports.parse(domain).domain || null;
-};
-
-
-//
-// Check whether domain belongs to a known public suffix.
-//
-exports.isValid = function (domain) {
-
- var parsed = exports.parse(domain);
- return Boolean(parsed.domain && parsed.listed);
-};
diff --git a/node_modules/psl/package.json b/node_modules/psl/package.json
deleted file mode 100644
index a5230f9..0000000
--- a/node_modules/psl/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "psl@^1.1.28",
- "_id": "psl@1.8.0",
- "_inBundle": false,
- "_integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==",
- "_location": "/psl",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "psl@^1.1.28",
- "name": "psl",
- "escapedName": "psl",
- "rawSpec": "^1.1.28",
- "saveSpec": null,
- "fetchSpec": "^1.1.28"
- },
- "_requiredBy": [
- "/tough-cookie"
- ],
- "_resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
- "_shasum": "9326f8bcfb013adcc005fdff056acce020e51c24",
- "_spec": "psl@^1.1.28",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/tough-cookie",
- "author": {
- "name": "Lupo Montero",
- "email": "lupomontero@gmail.com",
- "url": "https://lupomontero.com/"
- },
- "bugs": {
- "url": "https://github.com/lupomontero/psl/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Domain name parser based on the Public Suffix List",
- "devDependencies": {
- "JSONStream": "^1.3.5",
- "browserify": "^16.5.0",
- "commit-and-pr": "^1.0.4",
- "eslint": "^6.8.0",
- "eslint-config-hapi": "^12.0.0",
- "eslint-plugin-hapi": "^4.1.0",
- "karma": "^4.4.1",
- "karma-browserify": "^7.0.0",
- "karma-mocha": "^1.3.0",
- "karma-mocha-reporter": "^2.2.5",
- "karma-phantomjs-launcher": "^1.0.4",
- "mocha": "^7.1.1",
- "phantomjs-prebuilt": "^2.1.16",
- "request": "^2.88.2",
- "uglify-js": "^3.8.0",
- "watchify": "^3.11.1"
- },
- "homepage": "https://github.com/lupomontero/psl#readme",
- "keywords": [
- "publicsuffix",
- "publicsuffixlist"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "psl",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/lupomontero/psl.git"
- },
- "scripts": {
- "build": "browserify ./index.js --standalone=psl > ./dist/psl.js",
- "changelog": "git log $(git describe --tags --abbrev=0)..HEAD --oneline --format=\"%h %s (%an <%ae>)\"",
- "commit-and-pr": "commit-and-pr",
- "postbuild": "cat ./dist/psl.js | uglifyjs -c -m > ./dist/psl.min.js",
- "prebuild": "./scripts/update-rules.js",
- "pretest": "eslint .",
- "test": "mocha test && karma start ./karma.conf.js --single-run",
- "watch": "mocha test --watch"
- },
- "version": "1.8.0"
-}
diff --git a/node_modules/punycode/LICENSE-MIT.txt b/node_modules/punycode/LICENSE-MIT.txt
deleted file mode 100644
index a41e0a7..0000000
--- a/node_modules/punycode/LICENSE-MIT.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright Mathias Bynens <https://mathiasbynens.be/>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/punycode/README.md b/node_modules/punycode/README.md
deleted file mode 100644
index ee2f9d6..0000000
--- a/node_modules/punycode/README.md
+++ /dev/null
@@ -1,122 +0,0 @@
-# Punycode.js [![Build status](https://travis-ci.org/bestiejs/punycode.js.svg?branch=master)](https://travis-ci.org/bestiejs/punycode.js) [![Code coverage status](http://img.shields.io/codecov/c/github/bestiejs/punycode.js.svg)](https://codecov.io/gh/bestiejs/punycode.js) [![Dependency status](https://gemnasium.com/bestiejs/punycode.js.svg)](https://gemnasium.com/bestiejs/punycode.js)
-
-Punycode.js is a robust Punycode converter that fully complies to [RFC 3492](https://tools.ietf.org/html/rfc3492) and [RFC 5891](https://tools.ietf.org/html/rfc5891).
-
-This JavaScript library is the result of comparing, optimizing and documenting different open-source implementations of the Punycode algorithm:
-
-* [The C example code from RFC 3492](https://tools.ietf.org/html/rfc3492#appendix-C)
-* [`punycode.c` by _Markus W. Scherer_ (IBM)](http://opensource.apple.com/source/ICU/ICU-400.42/icuSources/common/punycode.c)
-* [`punycode.c` by _Ben Noordhuis_](https://github.com/bnoordhuis/punycode/blob/master/punycode.c)
-* [JavaScript implementation by _some_](http://stackoverflow.com/questions/183485/can-anyone-recommend-a-good-free-javascript-for-punycode-to-unicode-conversion/301287#301287)
-* [`punycode.js` by _Ben Noordhuis_](https://github.com/joyent/node/blob/426298c8c1c0d5b5224ac3658c41e7c2a3fe9377/lib/punycode.js) (note: [not fully compliant](https://github.com/joyent/node/issues/2072))
-
-This project was [bundled](https://github.com/joyent/node/blob/master/lib/punycode.js) with Node.js from [v0.6.2+](https://github.com/joyent/node/compare/975f1930b1...61e796decc) until [v7](https://github.com/nodejs/node/pull/7941) (soft-deprecated).
-
-The current version supports recent versions of Node.js only. It provides a CommonJS module and an ES6 module. For the old version that offers the same functionality with broader support, including Rhino, Ringo, Narwhal, and web browsers, see [v1.4.1](https://github.com/bestiejs/punycode.js/releases/tag/v1.4.1).
-
-## Installation
-
-Via [npm](https://www.npmjs.com/):
-
-```bash
-npm install punycode --save
-```
-
-In [Node.js](https://nodejs.org/):
-
-```js
-const punycode = require('punycode');
-```
-
-## API
-
-### `punycode.decode(string)`
-
-Converts a Punycode string of ASCII symbols to a string of Unicode symbols.
-
-```js
-// decode domain name parts
-punycode.decode('maana-pta'); // 'mañana'
-punycode.decode('--dqo34k'); // '☃-⌘'
-```
-
-### `punycode.encode(string)`
-
-Converts a string of Unicode symbols to a Punycode string of ASCII symbols.
-
-```js
-// encode domain name parts
-punycode.encode('mañana'); // 'maana-pta'
-punycode.encode('☃-⌘'); // '--dqo34k'
-```
-
-### `punycode.toUnicode(input)`
-
-Converts a Punycode string representing a domain name or an email address to Unicode. Only the Punycoded parts of the input will be converted, i.e. it doesn’t matter if you call it on a string that has already been converted to Unicode.
-
-```js
-// decode domain names
-punycode.toUnicode('xn--maana-pta.com');
-// → 'mañana.com'
-punycode.toUnicode('xn----dqo34k.com');
-// → '☃-⌘.com'
-
-// decode email addresses
-punycode.toUnicode('джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq');
-// → 'джумла@джpумлатест.bрфa'
-```
-
-### `punycode.toASCII(input)`
-
-Converts a lowercased Unicode string representing a domain name or an email address to Punycode. Only the non-ASCII parts of the input will be converted, i.e. it doesn’t matter if you call it with a domain that’s already in ASCII.
-
-```js
-// encode domain names
-punycode.toASCII('mañana.com');
-// → 'xn--maana-pta.com'
-punycode.toASCII('☃-⌘.com');
-// → 'xn----dqo34k.com'
-
-// encode email addresses
-punycode.toASCII('джумла@джpумлатест.bрфa');
-// → 'джумла@xn--p-8sbkgc5ag7bhce.xn--ba-lmcq'
-```
-
-### `punycode.ucs2`
-
-#### `punycode.ucs2.decode(string)`
-
-Creates an array containing the numeric code point values of each Unicode symbol in the string. While [JavaScript uses UCS-2 internally](https://mathiasbynens.be/notes/javascript-encoding), this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16.
-
-```js
-punycode.ucs2.decode('abc');
-// → [0x61, 0x62, 0x63]
-// surrogate pair for U+1D306 TETRAGRAM FOR CENTRE:
-punycode.ucs2.decode('\uD834\uDF06');
-// → [0x1D306]
-```
-
-#### `punycode.ucs2.encode(codePoints)`
-
-Creates a string based on an array of numeric code point values.
-
-```js
-punycode.ucs2.encode([0x61, 0x62, 0x63]);
-// → 'abc'
-punycode.ucs2.encode([0x1D306]);
-// → '\uD834\uDF06'
-```
-
-### `punycode.version`
-
-A string representing the current Punycode.js version number.
-
-## Author
-
-| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
-|---|
-| [Mathias Bynens](https://mathiasbynens.be/) |
-
-## License
-
-Punycode.js is available under the [MIT](https://mths.be/mit) license.
diff --git a/node_modules/punycode/package.json b/node_modules/punycode/package.json
deleted file mode 100644
index fa44ac6..0000000
--- a/node_modules/punycode/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "_from": "punycode@^2.1.0",
- "_id": "punycode@2.1.1",
- "_inBundle": false,
- "_integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",
- "_location": "/punycode",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "punycode@^2.1.0",
- "name": "punycode",
- "escapedName": "punycode",
- "rawSpec": "^2.1.0",
- "saveSpec": null,
- "fetchSpec": "^2.1.0"
- },
- "_requiredBy": [
- "/uri-js"
- ],
- "_resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
- "_shasum": "b58b010ac40c22c5657616c8d2c2c02c7bf479ec",
- "_spec": "punycode@^2.1.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/uri-js",
- "author": {
- "name": "Mathias Bynens",
- "url": "https://mathiasbynens.be/"
- },
- "bugs": {
- "url": "https://github.com/bestiejs/punycode.js/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Mathias Bynens",
- "url": "https://mathiasbynens.be/"
- }
- ],
- "deprecated": false,
- "description": "A robust Punycode converter that fully complies to RFC 3492 and RFC 5891, and works on nearly all JavaScript platforms.",
- "devDependencies": {
- "codecov": "^1.0.1",
- "istanbul": "^0.4.1",
- "mocha": "^2.5.3"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "LICENSE-MIT.txt",
- "punycode.js",
- "punycode.es6.js"
- ],
- "homepage": "https://mths.be/punycode",
- "jsnext:main": "punycode.es6.js",
- "jspm": {
- "map": {
- "./punycode.js": {
- "node": "@node/punycode"
- }
- }
- },
- "keywords": [
- "punycode",
- "unicode",
- "idn",
- "idna",
- "dns",
- "url",
- "domain"
- ],
- "license": "MIT",
- "main": "punycode.js",
- "module": "punycode.es6.js",
- "name": "punycode",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/bestiejs/punycode.js.git"
- },
- "scripts": {
- "prepublish": "node scripts/prepublish.js",
- "test": "mocha tests"
- },
- "version": "2.1.1"
-}
diff --git a/node_modules/punycode/punycode.es6.js b/node_modules/punycode/punycode.es6.js
deleted file mode 100644
index 4610bc9..0000000
--- a/node_modules/punycode/punycode.es6.js
+++ /dev/null
@@ -1,441 +0,0 @@
-'use strict';
-
-/** Highest positive signed 32-bit float value */
-const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
-
-/** Bootstring parameters */
-const base = 36;
-const tMin = 1;
-const tMax = 26;
-const skew = 38;
-const damp = 700;
-const initialBias = 72;
-const initialN = 128; // 0x80
-const delimiter = '-'; // '\x2D'
-
-/** Regular expressions */
-const regexPunycode = /^xn--/;
-const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
-const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
-
-/** Error messages */
-const errors = {
- 'overflow': 'Overflow: input needs wider integers to process',
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
- 'invalid-input': 'Invalid input'
-};
-
-/** Convenience shortcuts */
-const baseMinusTMin = base - tMin;
-const floor = Math.floor;
-const stringFromCharCode = String.fromCharCode;
-
-/*--------------------------------------------------------------------------*/
-
-/**
- * A generic error utility function.
- * @private
- * @param {String} type The error type.
- * @returns {Error} Throws a `RangeError` with the applicable error message.
- */
-function error(type) {
- throw new RangeError(errors[type]);
-}
-
-/**
- * A generic `Array#map` utility function.
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} callback The function that gets called for every array
- * item.
- * @returns {Array} A new array of values returned by the callback function.
- */
-function map(array, fn) {
- const result = [];
- let length = array.length;
- while (length--) {
- result[length] = fn(array[length]);
- }
- return result;
-}
-
-/**
- * A simple `Array#map`-like wrapper to work with domain name strings or email
- * addresses.
- * @private
- * @param {String} domain The domain name or email address.
- * @param {Function} callback The function that gets called for every
- * character.
- * @returns {Array} A new string of characters returned by the callback
- * function.
- */
-function mapDomain(string, fn) {
- const parts = string.split('@');
- let result = '';
- if (parts.length > 1) {
- // In email addresses, only the domain name should be punycoded. Leave
- // the local part (i.e. everything up to `@`) intact.
- result = parts[0] + '@';
- string = parts[1];
- }
- // Avoid `split(regex)` for IE8 compatibility. See #17.
- string = string.replace(regexSeparators, '\x2E');
- const labels = string.split('.');
- const encoded = map(labels, fn).join('.');
- return result + encoded;
-}
-
-/**
- * Creates an array containing the numeric code points of each Unicode
- * character in the string. While JavaScript uses UCS-2 internally,
- * this function will convert a pair of surrogate halves (each of which
- * UCS-2 exposes as separate characters) into a single code point,
- * matching UTF-16.
- * @see `punycode.ucs2.encode`
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode.ucs2
- * @name decode
- * @param {String} string The Unicode input string (UCS-2).
- * @returns {Array} The new array of code points.
- */
-function ucs2decode(string) {
- const output = [];
- let counter = 0;
- const length = string.length;
- while (counter < length) {
- const value = string.charCodeAt(counter++);
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
- // It's a high surrogate, and there is a next character.
- const extra = string.charCodeAt(counter++);
- if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
- } else {
- // It's an unmatched surrogate; only append this code unit, in case the
- // next code unit is the high surrogate of a surrogate pair.
- output.push(value);
- counter--;
- }
- } else {
- output.push(value);
- }
- }
- return output;
-}
-
-/**
- * Creates a string based on an array of numeric code points.
- * @see `punycode.ucs2.decode`
- * @memberOf punycode.ucs2
- * @name encode
- * @param {Array} codePoints The array of numeric code points.
- * @returns {String} The new Unicode string (UCS-2).
- */
-const ucs2encode = array => String.fromCodePoint(...array);
-
-/**
- * Converts a basic code point into a digit/integer.
- * @see `digitToBasic()`
- * @private
- * @param {Number} codePoint The basic numeric code point value.
- * @returns {Number} The numeric value of a basic code point (for use in
- * representing integers) in the range `0` to `base - 1`, or `base` if
- * the code point does not represent a value.
- */
-const basicToDigit = function(codePoint) {
- if (codePoint - 0x30 < 0x0A) {
- return codePoint - 0x16;
- }
- if (codePoint - 0x41 < 0x1A) {
- return codePoint - 0x41;
- }
- if (codePoint - 0x61 < 0x1A) {
- return codePoint - 0x61;
- }
- return base;
-};
-
-/**
- * Converts a digit/integer into a basic code point.
- * @see `basicToDigit()`
- * @private
- * @param {Number} digit The numeric value of a basic code point.
- * @returns {Number} The basic code point whose value (when used for
- * representing integers) is `digit`, which needs to be in the range
- * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
- * used; else, the lowercase form is used. The behavior is undefined
- * if `flag` is non-zero and `digit` has no uppercase form.
- */
-const digitToBasic = function(digit, flag) {
- // 0..25 map to ASCII a..z or A..Z
- // 26..35 map to ASCII 0..9
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
-};
-
-/**
- * Bias adaptation function as per section 3.4 of RFC 3492.
- * https://tools.ietf.org/html/rfc3492#section-3.4
- * @private
- */
-const adapt = function(delta, numPoints, firstTime) {
- let k = 0;
- delta = firstTime ? floor(delta / damp) : delta >> 1;
- delta += floor(delta / numPoints);
- for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
- delta = floor(delta / baseMinusTMin);
- }
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
-};
-
-/**
- * Converts a Punycode string of ASCII-only symbols to a string of Unicode
- * symbols.
- * @memberOf punycode
- * @param {String} input The Punycode string of ASCII-only symbols.
- * @returns {String} The resulting string of Unicode symbols.
- */
-const decode = function(input) {
- // Don't use UCS-2.
- const output = [];
- const inputLength = input.length;
- let i = 0;
- let n = initialN;
- let bias = initialBias;
-
- // Handle the basic code points: let `basic` be the number of input code
- // points before the last delimiter, or `0` if there is none, then copy
- // the first basic code points to the output.
-
- let basic = input.lastIndexOf(delimiter);
- if (basic < 0) {
- basic = 0;
- }
-
- for (let j = 0; j < basic; ++j) {
- // if it's not a basic code point
- if (input.charCodeAt(j) >= 0x80) {
- error('not-basic');
- }
- output.push(input.charCodeAt(j));
- }
-
- // Main decoding loop: start just after the last delimiter if any basic code
- // points were copied; start at the beginning otherwise.
-
- for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
-
- // `index` is the index of the next character to be consumed.
- // Decode a generalized variable-length integer into `delta`,
- // which gets added to `i`. The overflow checking is easier
- // if we increase `i` as we go, then subtract off its starting
- // value at the end to obtain `delta`.
- let oldi = i;
- for (let w = 1, k = base; /* no condition */; k += base) {
-
- if (index >= inputLength) {
- error('invalid-input');
- }
-
- const digit = basicToDigit(input.charCodeAt(index++));
-
- if (digit >= base || digit > floor((maxInt - i) / w)) {
- error('overflow');
- }
-
- i += digit * w;
- const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
-
- if (digit < t) {
- break;
- }
-
- const baseMinusT = base - t;
- if (w > floor(maxInt / baseMinusT)) {
- error('overflow');
- }
-
- w *= baseMinusT;
-
- }
-
- const out = output.length + 1;
- bias = adapt(i - oldi, out, oldi == 0);
-
- // `i` was supposed to wrap around from `out` to `0`,
- // incrementing `n` each time, so we'll fix that now:
- if (floor(i / out) > maxInt - n) {
- error('overflow');
- }
-
- n += floor(i / out);
- i %= out;
-
- // Insert `n` at position `i` of the output.
- output.splice(i++, 0, n);
-
- }
-
- return String.fromCodePoint(...output);
-};
-
-/**
- * Converts a string of Unicode symbols (e.g. a domain name label) to a
- * Punycode string of ASCII-only symbols.
- * @memberOf punycode
- * @param {String} input The string of Unicode symbols.
- * @returns {String} The resulting Punycode string of ASCII-only symbols.
- */
-const encode = function(input) {
- const output = [];
-
- // Convert the input in UCS-2 to an array of Unicode code points.
- input = ucs2decode(input);
-
- // Cache the length.
- let inputLength = input.length;
-
- // Initialize the state.
- let n = initialN;
- let delta = 0;
- let bias = initialBias;
-
- // Handle the basic code points.
- for (const currentValue of input) {
- if (currentValue < 0x80) {
- output.push(stringFromCharCode(currentValue));
- }
- }
-
- let basicLength = output.length;
- let handledCPCount = basicLength;
-
- // `handledCPCount` is the number of code points that have been handled;
- // `basicLength` is the number of basic code points.
-
- // Finish the basic string with a delimiter unless it's empty.
- if (basicLength) {
- output.push(delimiter);
- }
-
- // Main encoding loop:
- while (handledCPCount < inputLength) {
-
- // All non-basic code points < n have been handled already. Find the next
- // larger one:
- let m = maxInt;
- for (const currentValue of input) {
- if (currentValue >= n && currentValue < m) {
- m = currentValue;
- }
- }
-
- // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
- // but guard against overflow.
- const handledCPCountPlusOne = handledCPCount + 1;
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
- error('overflow');
- }
-
- delta += (m - n) * handledCPCountPlusOne;
- n = m;
-
- for (const currentValue of input) {
- if (currentValue < n && ++delta > maxInt) {
- error('overflow');
- }
- if (currentValue == n) {
- // Represent delta as a generalized variable-length integer.
- let q = delta;
- for (let k = base; /* no condition */; k += base) {
- const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
- if (q < t) {
- break;
- }
- const qMinusT = q - t;
- const baseMinusT = base - t;
- output.push(
- stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
- );
- q = floor(qMinusT / baseMinusT);
- }
-
- output.push(stringFromCharCode(digitToBasic(q, 0)));
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
- delta = 0;
- ++handledCPCount;
- }
- }
-
- ++delta;
- ++n;
-
- }
- return output.join('');
-};
-
-/**
- * Converts a Punycode string representing a domain name or an email address
- * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
- * it doesn't matter if you call it on a string that has already been
- * converted to Unicode.
- * @memberOf punycode
- * @param {String} input The Punycoded domain name or email address to
- * convert to Unicode.
- * @returns {String} The Unicode representation of the given Punycode
- * string.
- */
-const toUnicode = function(input) {
- return mapDomain(input, function(string) {
- return regexPunycode.test(string)
- ? decode(string.slice(4).toLowerCase())
- : string;
- });
-};
-
-/**
- * Converts a Unicode string representing a domain name or an email address to
- * Punycode. Only the non-ASCII parts of the domain name will be converted,
- * i.e. it doesn't matter if you call it with a domain that's already in
- * ASCII.
- * @memberOf punycode
- * @param {String} input The domain name or email address to convert, as a
- * Unicode string.
- * @returns {String} The Punycode representation of the given domain name or
- * email address.
- */
-const toASCII = function(input) {
- return mapDomain(input, function(string) {
- return regexNonASCII.test(string)
- ? 'xn--' + encode(string)
- : string;
- });
-};
-
-/*--------------------------------------------------------------------------*/
-
-/** Define the public API */
-const punycode = {
- /**
- * A string representing the current Punycode.js version number.
- * @memberOf punycode
- * @type String
- */
- 'version': '2.1.0',
- /**
- * An object of methods to convert from JavaScript's internal character
- * representation (UCS-2) to Unicode code points, and back.
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode
- * @type Object
- */
- 'ucs2': {
- 'decode': ucs2decode,
- 'encode': ucs2encode
- },
- 'decode': decode,
- 'encode': encode,
- 'toASCII': toASCII,
- 'toUnicode': toUnicode
-};
-
-export { ucs2decode, ucs2encode, decode, encode, toASCII, toUnicode };
-export default punycode;
diff --git a/node_modules/punycode/punycode.js b/node_modules/punycode/punycode.js
deleted file mode 100644
index ea61fd0..0000000
--- a/node_modules/punycode/punycode.js
+++ /dev/null
@@ -1,440 +0,0 @@
-'use strict';
-
-/** Highest positive signed 32-bit float value */
-const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
-
-/** Bootstring parameters */
-const base = 36;
-const tMin = 1;
-const tMax = 26;
-const skew = 38;
-const damp = 700;
-const initialBias = 72;
-const initialN = 128; // 0x80
-const delimiter = '-'; // '\x2D'
-
-/** Regular expressions */
-const regexPunycode = /^xn--/;
-const regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
-const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
-
-/** Error messages */
-const errors = {
- 'overflow': 'Overflow: input needs wider integers to process',
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
- 'invalid-input': 'Invalid input'
-};
-
-/** Convenience shortcuts */
-const baseMinusTMin = base - tMin;
-const floor = Math.floor;
-const stringFromCharCode = String.fromCharCode;
-
-/*--------------------------------------------------------------------------*/
-
-/**
- * A generic error utility function.
- * @private
- * @param {String} type The error type.
- * @returns {Error} Throws a `RangeError` with the applicable error message.
- */
-function error(type) {
- throw new RangeError(errors[type]);
-}
-
-/**
- * A generic `Array#map` utility function.
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} callback The function that gets called for every array
- * item.
- * @returns {Array} A new array of values returned by the callback function.
- */
-function map(array, fn) {
- const result = [];
- let length = array.length;
- while (length--) {
- result[length] = fn(array[length]);
- }
- return result;
-}
-
-/**
- * A simple `Array#map`-like wrapper to work with domain name strings or email
- * addresses.
- * @private
- * @param {String} domain The domain name or email address.
- * @param {Function} callback The function that gets called for every
- * character.
- * @returns {Array} A new string of characters returned by the callback
- * function.
- */
-function mapDomain(string, fn) {
- const parts = string.split('@');
- let result = '';
- if (parts.length > 1) {
- // In email addresses, only the domain name should be punycoded. Leave
- // the local part (i.e. everything up to `@`) intact.
- result = parts[0] + '@';
- string = parts[1];
- }
- // Avoid `split(regex)` for IE8 compatibility. See #17.
- string = string.replace(regexSeparators, '\x2E');
- const labels = string.split('.');
- const encoded = map(labels, fn).join('.');
- return result + encoded;
-}
-
-/**
- * Creates an array containing the numeric code points of each Unicode
- * character in the string. While JavaScript uses UCS-2 internally,
- * this function will convert a pair of surrogate halves (each of which
- * UCS-2 exposes as separate characters) into a single code point,
- * matching UTF-16.
- * @see `punycode.ucs2.encode`
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode.ucs2
- * @name decode
- * @param {String} string The Unicode input string (UCS-2).
- * @returns {Array} The new array of code points.
- */
-function ucs2decode(string) {
- const output = [];
- let counter = 0;
- const length = string.length;
- while (counter < length) {
- const value = string.charCodeAt(counter++);
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
- // It's a high surrogate, and there is a next character.
- const extra = string.charCodeAt(counter++);
- if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
- } else {
- // It's an unmatched surrogate; only append this code unit, in case the
- // next code unit is the high surrogate of a surrogate pair.
- output.push(value);
- counter--;
- }
- } else {
- output.push(value);
- }
- }
- return output;
-}
-
-/**
- * Creates a string based on an array of numeric code points.
- * @see `punycode.ucs2.decode`
- * @memberOf punycode.ucs2
- * @name encode
- * @param {Array} codePoints The array of numeric code points.
- * @returns {String} The new Unicode string (UCS-2).
- */
-const ucs2encode = array => String.fromCodePoint(...array);
-
-/**
- * Converts a basic code point into a digit/integer.
- * @see `digitToBasic()`
- * @private
- * @param {Number} codePoint The basic numeric code point value.
- * @returns {Number} The numeric value of a basic code point (for use in
- * representing integers) in the range `0` to `base - 1`, or `base` if
- * the code point does not represent a value.
- */
-const basicToDigit = function(codePoint) {
- if (codePoint - 0x30 < 0x0A) {
- return codePoint - 0x16;
- }
- if (codePoint - 0x41 < 0x1A) {
- return codePoint - 0x41;
- }
- if (codePoint - 0x61 < 0x1A) {
- return codePoint - 0x61;
- }
- return base;
-};
-
-/**
- * Converts a digit/integer into a basic code point.
- * @see `basicToDigit()`
- * @private
- * @param {Number} digit The numeric value of a basic code point.
- * @returns {Number} The basic code point whose value (when used for
- * representing integers) is `digit`, which needs to be in the range
- * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
- * used; else, the lowercase form is used. The behavior is undefined
- * if `flag` is non-zero and `digit` has no uppercase form.
- */
-const digitToBasic = function(digit, flag) {
- // 0..25 map to ASCII a..z or A..Z
- // 26..35 map to ASCII 0..9
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
-};
-
-/**
- * Bias adaptation function as per section 3.4 of RFC 3492.
- * https://tools.ietf.org/html/rfc3492#section-3.4
- * @private
- */
-const adapt = function(delta, numPoints, firstTime) {
- let k = 0;
- delta = firstTime ? floor(delta / damp) : delta >> 1;
- delta += floor(delta / numPoints);
- for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
- delta = floor(delta / baseMinusTMin);
- }
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
-};
-
-/**
- * Converts a Punycode string of ASCII-only symbols to a string of Unicode
- * symbols.
- * @memberOf punycode
- * @param {String} input The Punycode string of ASCII-only symbols.
- * @returns {String} The resulting string of Unicode symbols.
- */
-const decode = function(input) {
- // Don't use UCS-2.
- const output = [];
- const inputLength = input.length;
- let i = 0;
- let n = initialN;
- let bias = initialBias;
-
- // Handle the basic code points: let `basic` be the number of input code
- // points before the last delimiter, or `0` if there is none, then copy
- // the first basic code points to the output.
-
- let basic = input.lastIndexOf(delimiter);
- if (basic < 0) {
- basic = 0;
- }
-
- for (let j = 0; j < basic; ++j) {
- // if it's not a basic code point
- if (input.charCodeAt(j) >= 0x80) {
- error('not-basic');
- }
- output.push(input.charCodeAt(j));
- }
-
- // Main decoding loop: start just after the last delimiter if any basic code
- // points were copied; start at the beginning otherwise.
-
- for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
-
- // `index` is the index of the next character to be consumed.
- // Decode a generalized variable-length integer into `delta`,
- // which gets added to `i`. The overflow checking is easier
- // if we increase `i` as we go, then subtract off its starting
- // value at the end to obtain `delta`.
- let oldi = i;
- for (let w = 1, k = base; /* no condition */; k += base) {
-
- if (index >= inputLength) {
- error('invalid-input');
- }
-
- const digit = basicToDigit(input.charCodeAt(index++));
-
- if (digit >= base || digit > floor((maxInt - i) / w)) {
- error('overflow');
- }
-
- i += digit * w;
- const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
-
- if (digit < t) {
- break;
- }
-
- const baseMinusT = base - t;
- if (w > floor(maxInt / baseMinusT)) {
- error('overflow');
- }
-
- w *= baseMinusT;
-
- }
-
- const out = output.length + 1;
- bias = adapt(i - oldi, out, oldi == 0);
-
- // `i` was supposed to wrap around from `out` to `0`,
- // incrementing `n` each time, so we'll fix that now:
- if (floor(i / out) > maxInt - n) {
- error('overflow');
- }
-
- n += floor(i / out);
- i %= out;
-
- // Insert `n` at position `i` of the output.
- output.splice(i++, 0, n);
-
- }
-
- return String.fromCodePoint(...output);
-};
-
-/**
- * Converts a string of Unicode symbols (e.g. a domain name label) to a
- * Punycode string of ASCII-only symbols.
- * @memberOf punycode
- * @param {String} input The string of Unicode symbols.
- * @returns {String} The resulting Punycode string of ASCII-only symbols.
- */
-const encode = function(input) {
- const output = [];
-
- // Convert the input in UCS-2 to an array of Unicode code points.
- input = ucs2decode(input);
-
- // Cache the length.
- let inputLength = input.length;
-
- // Initialize the state.
- let n = initialN;
- let delta = 0;
- let bias = initialBias;
-
- // Handle the basic code points.
- for (const currentValue of input) {
- if (currentValue < 0x80) {
- output.push(stringFromCharCode(currentValue));
- }
- }
-
- let basicLength = output.length;
- let handledCPCount = basicLength;
-
- // `handledCPCount` is the number of code points that have been handled;
- // `basicLength` is the number of basic code points.
-
- // Finish the basic string with a delimiter unless it's empty.
- if (basicLength) {
- output.push(delimiter);
- }
-
- // Main encoding loop:
- while (handledCPCount < inputLength) {
-
- // All non-basic code points < n have been handled already. Find the next
- // larger one:
- let m = maxInt;
- for (const currentValue of input) {
- if (currentValue >= n && currentValue < m) {
- m = currentValue;
- }
- }
-
- // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
- // but guard against overflow.
- const handledCPCountPlusOne = handledCPCount + 1;
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
- error('overflow');
- }
-
- delta += (m - n) * handledCPCountPlusOne;
- n = m;
-
- for (const currentValue of input) {
- if (currentValue < n && ++delta > maxInt) {
- error('overflow');
- }
- if (currentValue == n) {
- // Represent delta as a generalized variable-length integer.
- let q = delta;
- for (let k = base; /* no condition */; k += base) {
- const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
- if (q < t) {
- break;
- }
- const qMinusT = q - t;
- const baseMinusT = base - t;
- output.push(
- stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
- );
- q = floor(qMinusT / baseMinusT);
- }
-
- output.push(stringFromCharCode(digitToBasic(q, 0)));
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
- delta = 0;
- ++handledCPCount;
- }
- }
-
- ++delta;
- ++n;
-
- }
- return output.join('');
-};
-
-/**
- * Converts a Punycode string representing a domain name or an email address
- * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
- * it doesn't matter if you call it on a string that has already been
- * converted to Unicode.
- * @memberOf punycode
- * @param {String} input The Punycoded domain name or email address to
- * convert to Unicode.
- * @returns {String} The Unicode representation of the given Punycode
- * string.
- */
-const toUnicode = function(input) {
- return mapDomain(input, function(string) {
- return regexPunycode.test(string)
- ? decode(string.slice(4).toLowerCase())
- : string;
- });
-};
-
-/**
- * Converts a Unicode string representing a domain name or an email address to
- * Punycode. Only the non-ASCII parts of the domain name will be converted,
- * i.e. it doesn't matter if you call it with a domain that's already in
- * ASCII.
- * @memberOf punycode
- * @param {String} input The domain name or email address to convert, as a
- * Unicode string.
- * @returns {String} The Punycode representation of the given domain name or
- * email address.
- */
-const toASCII = function(input) {
- return mapDomain(input, function(string) {
- return regexNonASCII.test(string)
- ? 'xn--' + encode(string)
- : string;
- });
-};
-
-/*--------------------------------------------------------------------------*/
-
-/** Define the public API */
-const punycode = {
- /**
- * A string representing the current Punycode.js version number.
- * @memberOf punycode
- * @type String
- */
- 'version': '2.1.0',
- /**
- * An object of methods to convert from JavaScript's internal character
- * representation (UCS-2) to Unicode code points, and back.
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode
- * @type Object
- */
- 'ucs2': {
- 'decode': ucs2decode,
- 'encode': ucs2encode
- },
- 'decode': decode,
- 'encode': encode,
- 'toASCII': toASCII,
- 'toUnicode': toUnicode
-};
-
-module.exports = punycode;
diff --git a/node_modules/qs/.editorconfig b/node_modules/qs/.editorconfig
deleted file mode 100644
index b2654e7..0000000
--- a/node_modules/qs/.editorconfig
+++ /dev/null
@@ -1,30 +0,0 @@
-root = true
-
-[*]
-indent_style = space
-indent_size = 4
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-max_line_length = 140
-
-[test/*]
-max_line_length = off
-
-[*.md]
-max_line_length = off
-
-[*.json]
-max_line_length = off
-
-[Makefile]
-max_line_length = off
-
-[CHANGELOG.md]
-indent_style = space
-indent_size = 2
-
-[LICENSE]
-indent_size = 2
-max_line_length = off
diff --git a/node_modules/qs/.eslintignore b/node_modules/qs/.eslintignore
deleted file mode 100644
index 1521c8b..0000000
--- a/node_modules/qs/.eslintignore
+++ /dev/null
@@ -1 +0,0 @@
-dist
diff --git a/node_modules/qs/.eslintrc b/node_modules/qs/.eslintrc
deleted file mode 100644
index b7a87b9..0000000
--- a/node_modules/qs/.eslintrc
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "root": true,
-
- "extends": "@ljharb",
-
- "rules": {
- "complexity": 0,
- "consistent-return": 1,
- "func-name-matching": 0,
- "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
- "indent": [2, 4],
- "max-params": [2, 12],
- "max-statements": [2, 45],
- "no-continue": 1,
- "no-magic-numbers": 0,
- "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
- "operator-linebreak": [2, "before"],
- }
-}
diff --git a/node_modules/qs/CHANGELOG.md b/node_modules/qs/CHANGELOG.md
deleted file mode 100644
index fe52320..0000000
--- a/node_modules/qs/CHANGELOG.md
+++ /dev/null
@@ -1,226 +0,0 @@
-## **6.5.2**
-- [Fix] use `safer-buffer` instead of `Buffer` constructor
-- [Refactor] utils: `module.exports` one thing, instead of mutating `exports` (#230)
-- [Dev Deps] update `browserify`, `eslint`, `iconv-lite`, `safer-buffer`, `tape`, `browserify`
-
-## **6.5.1**
-- [Fix] Fix parsing & compacting very deep objects (#224)
-- [Refactor] name utils functions
-- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`
-- [Tests] up to `node` `v8.4`; use `nvm install-latest-npm` so newer npm doesn’t break older node
-- [Tests] Use precise dist for Node.js 0.6 runtime (#225)
-- [Tests] make 0.6 required, now that it’s passing
-- [Tests] on `node` `v8.2`; fix npm on node 0.6
-
-## **6.5.0**
-- [New] add `utils.assign`
-- [New] pass default encoder/decoder to custom encoder/decoder functions (#206)
-- [New] `parse`/`stringify`: add `ignoreQueryPrefix`/`addQueryPrefix` options, respectively (#213)
-- [Fix] Handle stringifying empty objects with addQueryPrefix (#217)
-- [Fix] do not mutate `options` argument (#207)
-- [Refactor] `parse`: cache index to reuse in else statement (#182)
-- [Docs] add various badges to readme (#208)
-- [Dev Deps] update `eslint`, `browserify`, `iconv-lite`, `tape`
-- [Tests] up to `node` `v8.1`, `v7.10`, `v6.11`; npm v4.6 breaks on node < v1; npm v5+ breaks on node < v4
-- [Tests] add `editorconfig-tools`
-
-## **6.4.0**
-- [New] `qs.stringify`: add `encodeValuesOnly` option
-- [Fix] follow `allowPrototypes` option during merge (#201, #201)
-- [Fix] support keys starting with brackets (#202, #200)
-- [Fix] chmod a-x
-- [Dev Deps] update `eslint`
-- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
-- [eslint] reduce warnings
-
-## **6.3.2**
-- [Fix] follow `allowPrototypes` option during merge (#201, #200)
-- [Dev Deps] update `eslint`
-- [Fix] chmod a-x
-- [Fix] support keys starting with brackets (#202, #200)
-- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
-
-## **6.3.1**
-- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties (thanks, @snyk!)
-- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `browserify`, `iconv-lite`, `qs-iconv`, `tape`
-- [Tests] on all node minors; improve test matrix
-- [Docs] document stringify option `allowDots` (#195)
-- [Docs] add empty object and array values example (#195)
-- [Docs] Fix minor inconsistency/typo (#192)
-- [Docs] document stringify option `sort` (#191)
-- [Refactor] `stringify`: throw faster with an invalid encoder
-- [Refactor] remove unnecessary escapes (#184)
-- Remove contributing.md, since `qs` is no longer part of `hapi` (#183)
-
-## **6.3.0**
-- [New] Add support for RFC 1738 (#174, #173)
-- [New] `stringify`: Add `serializeDate` option to customize Date serialization (#159)
-- [Fix] ensure `utils.merge` handles merging two arrays
-- [Refactor] only constructors should be capitalized
-- [Refactor] capitalized var names are for constructors only
-- [Refactor] avoid using a sparse array
-- [Robustness] `formats`: cache `String#replace`
-- [Dev Deps] update `browserify`, `eslint`, `@ljharb/eslint-config`; add `safe-publish-latest`
-- [Tests] up to `node` `v6.8`, `v4.6`; improve test matrix
-- [Tests] flesh out arrayLimit/arrayFormat tests (#107)
-- [Tests] skip Object.create tests when null objects are not available
-- [Tests] Turn on eslint for test files (#175)
-
-## **6.2.3**
-- [Fix] follow `allowPrototypes` option during merge (#201, #200)
-- [Fix] chmod a-x
-- [Fix] support keys starting with brackets (#202, #200)
-- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
-
-## **6.2.2**
-- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
-
-## **6.2.1**
-- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
-- [Refactor] Be explicit and use `Object.prototype.hasOwnProperty.call`
-- [Tests] remove `parallelshell` since it does not reliably report failures
-- [Tests] up to `node` `v6.3`, `v5.12`
-- [Dev Deps] update `tape`, `eslint`, `@ljharb/eslint-config`, `qs-iconv`
-
-## [**6.2.0**](https://github.com/ljharb/qs/issues?milestone=36&state=closed)
-- [New] pass Buffers to the encoder/decoder directly (#161)
-- [New] add "encoder" and "decoder" options, for custom param encoding/decoding (#160)
-- [Fix] fix compacting of nested sparse arrays (#150)
-
-## **6.1.2
-- [Fix] follow `allowPrototypes` option during merge (#201, #200)
-- [Fix] chmod a-x
-- [Fix] support keys starting with brackets (#202, #200)
-- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
-
-## **6.1.1**
-- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
-
-## [**6.1.0**](https://github.com/ljharb/qs/issues?milestone=35&state=closed)
-- [New] allowDots option for `stringify` (#151)
-- [Fix] "sort" option should work at a depth of 3 or more (#151)
-- [Fix] Restore `dist` directory; will be removed in v7 (#148)
-
-## **6.0.4**
-- [Fix] follow `allowPrototypes` option during merge (#201, #200)
-- [Fix] chmod a-x
-- [Fix] support keys starting with brackets (#202, #200)
-- [Tests] up to `node` `v7.7`, `v6.10`,` v4.8`; disable osx builds since they block linux builds
-
-## **6.0.3**
-- [Fix] ensure that `allowPrototypes: false` does not ever shadow Object.prototype properties
-- [Fix] Restore `dist` directory; will be removed in v7 (#148)
-
-## [**6.0.2**](https://github.com/ljharb/qs/issues?milestone=33&state=closed)
-- Revert ES6 requirement and restore support for node down to v0.8.
-
-## [**6.0.1**](https://github.com/ljharb/qs/issues?milestone=32&state=closed)
-- [**#127**](https://github.com/ljharb/qs/pull/127) Fix engines definition in package.json
-
-## [**6.0.0**](https://github.com/ljharb/qs/issues?milestone=31&state=closed)
-- [**#124**](https://github.com/ljharb/qs/issues/124) Use ES6 and drop support for node < v4
-
-## **5.2.1**
-- [Fix] ensure `key[]=x&key[]&key[]=y` results in 3, not 2, values
-
-## [**5.2.0**](https://github.com/ljharb/qs/issues?milestone=30&state=closed)
-- [**#64**](https://github.com/ljharb/qs/issues/64) Add option to sort object keys in the query string
-
-## [**5.1.0**](https://github.com/ljharb/qs/issues?milestone=29&state=closed)
-- [**#117**](https://github.com/ljharb/qs/issues/117) make URI encoding stringified results optional
-- [**#106**](https://github.com/ljharb/qs/issues/106) Add flag `skipNulls` to optionally skip null values in stringify
-
-## [**5.0.0**](https://github.com/ljharb/qs/issues?milestone=28&state=closed)
-- [**#114**](https://github.com/ljharb/qs/issues/114) default allowDots to false
-- [**#100**](https://github.com/ljharb/qs/issues/100) include dist to npm
-
-## [**4.0.0**](https://github.com/ljharb/qs/issues?milestone=26&state=closed)
-- [**#98**](https://github.com/ljharb/qs/issues/98) make returning plain objects and allowing prototype overwriting properties optional
-
-## [**3.1.0**](https://github.com/ljharb/qs/issues?milestone=24&state=closed)
-- [**#89**](https://github.com/ljharb/qs/issues/89) Add option to disable "Transform dot notation to bracket notation"
-
-## [**3.0.0**](https://github.com/ljharb/qs/issues?milestone=23&state=closed)
-- [**#80**](https://github.com/ljharb/qs/issues/80) qs.parse silently drops properties
-- [**#77**](https://github.com/ljharb/qs/issues/77) Perf boost
-- [**#60**](https://github.com/ljharb/qs/issues/60) Add explicit option to disable array parsing
-- [**#74**](https://github.com/ljharb/qs/issues/74) Bad parse when turning array into object
-- [**#81**](https://github.com/ljharb/qs/issues/81) Add a `filter` option
-- [**#68**](https://github.com/ljharb/qs/issues/68) Fixed issue with recursion and passing strings into objects.
-- [**#66**](https://github.com/ljharb/qs/issues/66) Add mixed array and object dot notation support Closes: #47
-- [**#76**](https://github.com/ljharb/qs/issues/76) RFC 3986
-- [**#85**](https://github.com/ljharb/qs/issues/85) No equal sign
-- [**#84**](https://github.com/ljharb/qs/issues/84) update license attribute
-
-## [**2.4.1**](https://github.com/ljharb/qs/issues?milestone=20&state=closed)
-- [**#73**](https://github.com/ljharb/qs/issues/73) Property 'hasOwnProperty' of object #<Object> is not a function
-
-## [**2.4.0**](https://github.com/ljharb/qs/issues?milestone=19&state=closed)
-- [**#70**](https://github.com/ljharb/qs/issues/70) Add arrayFormat option
-
-## [**2.3.3**](https://github.com/ljharb/qs/issues?milestone=18&state=closed)
-- [**#59**](https://github.com/ljharb/qs/issues/59) make sure array indexes are >= 0, closes #57
-- [**#58**](https://github.com/ljharb/qs/issues/58) make qs usable for browser loader
-
-## [**2.3.2**](https://github.com/ljharb/qs/issues?milestone=17&state=closed)
-- [**#55**](https://github.com/ljharb/qs/issues/55) allow merging a string into an object
-
-## [**2.3.1**](https://github.com/ljharb/qs/issues?milestone=16&state=closed)
-- [**#52**](https://github.com/ljharb/qs/issues/52) Return "undefined" and "false" instead of throwing "TypeError".
-
-## [**2.3.0**](https://github.com/ljharb/qs/issues?milestone=15&state=closed)
-- [**#50**](https://github.com/ljharb/qs/issues/50) add option to omit array indices, closes #46
-
-## [**2.2.5**](https://github.com/ljharb/qs/issues?milestone=14&state=closed)
-- [**#39**](https://github.com/ljharb/qs/issues/39) Is there an alternative to Buffer.isBuffer?
-- [**#49**](https://github.com/ljharb/qs/issues/49) refactor utils.merge, fixes #45
-- [**#41**](https://github.com/ljharb/qs/issues/41) avoid browserifying Buffer, for #39
-
-## [**2.2.4**](https://github.com/ljharb/qs/issues?milestone=13&state=closed)
-- [**#38**](https://github.com/ljharb/qs/issues/38) how to handle object keys beginning with a number
-
-## [**2.2.3**](https://github.com/ljharb/qs/issues?milestone=12&state=closed)
-- [**#37**](https://github.com/ljharb/qs/issues/37) parser discards first empty value in array
-- [**#36**](https://github.com/ljharb/qs/issues/36) Update to lab 4.x
-
-## [**2.2.2**](https://github.com/ljharb/qs/issues?milestone=11&state=closed)
-- [**#33**](https://github.com/ljharb/qs/issues/33) Error when plain object in a value
-- [**#34**](https://github.com/ljharb/qs/issues/34) use Object.prototype.hasOwnProperty.call instead of obj.hasOwnProperty
-- [**#24**](https://github.com/ljharb/qs/issues/24) Changelog? Semver?
-
-## [**2.2.1**](https://github.com/ljharb/qs/issues?milestone=10&state=closed)
-- [**#32**](https://github.com/ljharb/qs/issues/32) account for circular references properly, closes #31
-- [**#31**](https://github.com/ljharb/qs/issues/31) qs.parse stackoverflow on circular objects
-
-## [**2.2.0**](https://github.com/ljharb/qs/issues?milestone=9&state=closed)
-- [**#26**](https://github.com/ljharb/qs/issues/26) Don't use Buffer global if it's not present
-- [**#30**](https://github.com/ljharb/qs/issues/30) Bug when merging non-object values into arrays
-- [**#29**](https://github.com/ljharb/qs/issues/29) Don't call Utils.clone at the top of Utils.merge
-- [**#23**](https://github.com/ljharb/qs/issues/23) Ability to not limit parameters?
-
-## [**2.1.0**](https://github.com/ljharb/qs/issues?milestone=8&state=closed)
-- [**#22**](https://github.com/ljharb/qs/issues/22) Enable using a RegExp as delimiter
-
-## [**2.0.0**](https://github.com/ljharb/qs/issues?milestone=7&state=closed)
-- [**#18**](https://github.com/ljharb/qs/issues/18) Why is there arrayLimit?
-- [**#20**](https://github.com/ljharb/qs/issues/20) Configurable parametersLimit
-- [**#21**](https://github.com/ljharb/qs/issues/21) make all limits optional, for #18, for #20
-
-## [**1.2.2**](https://github.com/ljharb/qs/issues?milestone=6&state=closed)
-- [**#19**](https://github.com/ljharb/qs/issues/19) Don't overwrite null values
-
-## [**1.2.1**](https://github.com/ljharb/qs/issues?milestone=5&state=closed)
-- [**#16**](https://github.com/ljharb/qs/issues/16) ignore non-string delimiters
-- [**#15**](https://github.com/ljharb/qs/issues/15) Close code block
-
-## [**1.2.0**](https://github.com/ljharb/qs/issues?milestone=4&state=closed)
-- [**#12**](https://github.com/ljharb/qs/issues/12) Add optional delim argument
-- [**#13**](https://github.com/ljharb/qs/issues/13) fix #11: flattened keys in array are now correctly parsed
-
-## [**1.1.0**](https://github.com/ljharb/qs/issues?milestone=3&state=closed)
-- [**#7**](https://github.com/ljharb/qs/issues/7) Empty values of a POST array disappear after being submitted
-- [**#9**](https://github.com/ljharb/qs/issues/9) Should not omit equals signs (=) when value is null
-- [**#6**](https://github.com/ljharb/qs/issues/6) Minor grammar fix in README
-
-## [**1.0.2**](https://github.com/ljharb/qs/issues?milestone=2&state=closed)
-- [**#5**](https://github.com/ljharb/qs/issues/5) array holes incorrectly copied into object on large index
diff --git a/node_modules/qs/LICENSE b/node_modules/qs/LICENSE
deleted file mode 100644
index d456948..0000000
--- a/node_modules/qs/LICENSE
+++ /dev/null
@@ -1,28 +0,0 @@
-Copyright (c) 2014 Nathan LaFreniere and other contributors.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * The names of any contributors may not be used to endorse or promote
- products derived from this software without specific prior written
- permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
-DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- * * *
-
-The complete list of contributors can be found at: https://github.com/hapijs/qs/graphs/contributors
diff --git a/node_modules/qs/README.md b/node_modules/qs/README.md
deleted file mode 100644
index d811966..0000000
--- a/node_modules/qs/README.md
+++ /dev/null
@@ -1,475 +0,0 @@
-# qs <sup>[![Version Badge][2]][1]</sup>
-
-[![Build Status][3]][4]
-[![dependency status][5]][6]
-[![dev dependency status][7]][8]
-[![License][license-image]][license-url]
-[![Downloads][downloads-image]][downloads-url]
-
-[![npm badge][11]][1]
-
-A querystring parsing and stringifying library with some added security.
-
-Lead Maintainer: [Jordan Harband](https://github.com/ljharb)
-
-The **qs** module was originally created and maintained by [TJ Holowaychuk](https://github.com/visionmedia/node-querystring).
-
-## Usage
-
-```javascript
-var qs = require('qs');
-var assert = require('assert');
-
-var obj = qs.parse('a=c');
-assert.deepEqual(obj, { a: 'c' });
-
-var str = qs.stringify(obj);
-assert.equal(str, 'a=c');
-```
-
-### Parsing Objects
-
-[](#preventEval)
-```javascript
-qs.parse(string, [options]);
-```
-
-**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`.
-For example, the string `'foo[bar]=baz'` converts to:
-
-```javascript
-assert.deepEqual(qs.parse('foo[bar]=baz'), {
- foo: {
- bar: 'baz'
- }
-});
-```
-
-When using the `plainObjects` option the parsed value is returned as a null object, created via `Object.create(null)` and as such you should be aware that prototype methods will not exist on it and a user may set those names to whatever value they like:
-
-```javascript
-var nullObject = qs.parse('a[hasOwnProperty]=b', { plainObjects: true });
-assert.deepEqual(nullObject, { a: { hasOwnProperty: 'b' } });
-```
-
-By default parameters that would overwrite properties on the object prototype are ignored, if you wish to keep the data from those fields either use `plainObjects` as mentioned above, or set `allowPrototypes` to `true` which will allow user input to overwrite those properties. *WARNING* It is generally a bad idea to enable this option as it can cause problems when attempting to use the properties that have been overwritten. Always be careful with this option.
-
-```javascript
-var protoObject = qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true });
-assert.deepEqual(protoObject, { a: { hasOwnProperty: 'b' } });
-```
-
-URI encoded strings work too:
-
-```javascript
-assert.deepEqual(qs.parse('a%5Bb%5D=c'), {
- a: { b: 'c' }
-});
-```
-
-You can also nest your objects, like `'foo[bar][baz]=foobarbaz'`:
-
-```javascript
-assert.deepEqual(qs.parse('foo[bar][baz]=foobarbaz'), {
- foo: {
- bar: {
- baz: 'foobarbaz'
- }
- }
-});
-```
-
-By default, when nesting objects **qs** will only parse up to 5 children deep. This means if you attempt to parse a string like
-`'a[b][c][d][e][f][g][h][i]=j'` your resulting object will be:
-
-```javascript
-var expected = {
- a: {
- b: {
- c: {
- d: {
- e: {
- f: {
- '[g][h][i]': 'j'
- }
- }
- }
- }
- }
- }
-};
-var string = 'a[b][c][d][e][f][g][h][i]=j';
-assert.deepEqual(qs.parse(string), expected);
-```
-
-This depth can be overridden by passing a `depth` option to `qs.parse(string, [options])`:
-
-```javascript
-var deep = qs.parse('a[b][c][d][e][f][g][h][i]=j', { depth: 1 });
-assert.deepEqual(deep, { a: { b: { '[c][d][e][f][g][h][i]': 'j' } } });
-```
-
-The depth limit helps mitigate abuse when **qs** is used to parse user input, and it is recommended to keep it a reasonably small number.
-
-For similar reasons, by default **qs** will only parse up to 1000 parameters. This can be overridden by passing a `parameterLimit` option:
-
-```javascript
-var limited = qs.parse('a=b&c=d', { parameterLimit: 1 });
-assert.deepEqual(limited, { a: 'b' });
-```
-
-To bypass the leading question mark, use `ignoreQueryPrefix`:
-
-```javascript
-var prefixed = qs.parse('?a=b&c=d', { ignoreQueryPrefix: true });
-assert.deepEqual(prefixed, { a: 'b', c: 'd' });
-```
-
-An optional delimiter can also be passed:
-
-```javascript
-var delimited = qs.parse('a=b;c=d', { delimiter: ';' });
-assert.deepEqual(delimited, { a: 'b', c: 'd' });
-```
-
-Delimiters can be a regular expression too:
-
-```javascript
-var regexed = qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ });
-assert.deepEqual(regexed, { a: 'b', c: 'd', e: 'f' });
-```
-
-Option `allowDots` can be used to enable dot notation:
-
-```javascript
-var withDots = qs.parse('a.b=c', { allowDots: true });
-assert.deepEqual(withDots, { a: { b: 'c' } });
-```
-
-### Parsing Arrays
-
-**qs** can also parse arrays using a similar `[]` notation:
-
-```javascript
-var withArray = qs.parse('a[]=b&a[]=c');
-assert.deepEqual(withArray, { a: ['b', 'c'] });
-```
-
-You may specify an index as well:
-
-```javascript
-var withIndexes = qs.parse('a[1]=c&a[0]=b');
-assert.deepEqual(withIndexes, { a: ['b', 'c'] });
-```
-
-Note that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number
-to create an array. When creating arrays with specific indices, **qs** will compact a sparse array to only the existing values preserving
-their order:
-
-```javascript
-var noSparse = qs.parse('a[1]=b&a[15]=c');
-assert.deepEqual(noSparse, { a: ['b', 'c'] });
-```
-
-Note that an empty string is also a value, and will be preserved:
-
-```javascript
-var withEmptyString = qs.parse('a[]=&a[]=b');
-assert.deepEqual(withEmptyString, { a: ['', 'b'] });
-
-var withIndexedEmptyString = qs.parse('a[0]=b&a[1]=&a[2]=c');
-assert.deepEqual(withIndexedEmptyString, { a: ['b', '', 'c'] });
-```
-
-**qs** will also limit specifying indices in an array to a maximum index of `20`. Any array members with an index of greater than `20` will
-instead be converted to an object with the index as the key:
-
-```javascript
-var withMaxIndex = qs.parse('a[100]=b');
-assert.deepEqual(withMaxIndex, { a: { '100': 'b' } });
-```
-
-This limit can be overridden by passing an `arrayLimit` option:
-
-```javascript
-var withArrayLimit = qs.parse('a[1]=b', { arrayLimit: 0 });
-assert.deepEqual(withArrayLimit, { a: { '1': 'b' } });
-```
-
-To disable array parsing entirely, set `parseArrays` to `false`.
-
-```javascript
-var noParsingArrays = qs.parse('a[]=b', { parseArrays: false });
-assert.deepEqual(noParsingArrays, { a: { '0': 'b' } });
-```
-
-If you mix notations, **qs** will merge the two items into an object:
-
-```javascript
-var mixedNotation = qs.parse('a[0]=b&a[b]=c');
-assert.deepEqual(mixedNotation, { a: { '0': 'b', b: 'c' } });
-```
-
-You can also create arrays of objects:
-
-```javascript
-var arraysOfObjects = qs.parse('a[][b]=c');
-assert.deepEqual(arraysOfObjects, { a: [{ b: 'c' }] });
-```
-
-### Stringifying
-
-[](#preventEval)
-```javascript
-qs.stringify(object, [options]);
-```
-
-When stringifying, **qs** by default URI encodes output. Objects are stringified as you would expect:
-
-```javascript
-assert.equal(qs.stringify({ a: 'b' }), 'a=b');
-assert.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
-```
-
-This encoding can be disabled by setting the `encode` option to `false`:
-
-```javascript
-var unencoded = qs.stringify({ a: { b: 'c' } }, { encode: false });
-assert.equal(unencoded, 'a[b]=c');
-```
-
-Encoding can be disabled for keys by setting the `encodeValuesOnly` option to `true`:
-```javascript
-var encodedValues = qs.stringify(
- { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] },
- { encodeValuesOnly: true }
-);
-assert.equal(encodedValues,'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h');
-```
-
-This encoding can also be replaced by a custom encoding method set as `encoder` option:
-
-```javascript
-var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str) {
- // Passed in values `a`, `b`, `c`
- return // Return encoded string
-}})
-```
-
-_(Note: the `encoder` option does not apply if `encode` is `false`)_
-
-Analogue to the `encoder` there is a `decoder` option for `parse` to override decoding of properties and values:
-
-```javascript
-var decoded = qs.parse('x=z', { decoder: function (str) {
- // Passed in values `x`, `z`
- return // Return decoded string
-}})
-```
-
-Examples beyond this point will be shown as though the output is not URI encoded for clarity. Please note that the return values in these cases *will* be URI encoded during real usage.
-
-When arrays are stringified, by default they are given explicit indices:
-
-```javascript
-qs.stringify({ a: ['b', 'c', 'd'] });
-// 'a[0]=b&a[1]=c&a[2]=d'
-```
-
-You may override this by setting the `indices` option to `false`:
-
-```javascript
-qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false });
-// 'a=b&a=c&a=d'
-```
-
-You may use the `arrayFormat` option to specify the format of the output array:
-
-```javascript
-qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' })
-// 'a[0]=b&a[1]=c'
-qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' })
-// 'a[]=b&a[]=c'
-qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' })
-// 'a=b&a=c'
-```
-
-When objects are stringified, by default they use bracket notation:
-
-```javascript
-qs.stringify({ a: { b: { c: 'd', e: 'f' } } });
-// 'a[b][c]=d&a[b][e]=f'
-```
-
-You may override this to use dot notation by setting the `allowDots` option to `true`:
-
-```javascript
-qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true });
-// 'a.b.c=d&a.b.e=f'
-```
-
-Empty strings and null values will omit the value, but the equals sign (=) remains in place:
-
-```javascript
-assert.equal(qs.stringify({ a: '' }), 'a=');
-```
-
-Key with no values (such as an empty object or array) will return nothing:
-
-```javascript
-assert.equal(qs.stringify({ a: [] }), '');
-assert.equal(qs.stringify({ a: {} }), '');
-assert.equal(qs.stringify({ a: [{}] }), '');
-assert.equal(qs.stringify({ a: { b: []} }), '');
-assert.equal(qs.stringify({ a: { b: {}} }), '');
-```
-
-Properties that are set to `undefined` will be omitted entirely:
-
-```javascript
-assert.equal(qs.stringify({ a: null, b: undefined }), 'a=');
-```
-
-The query string may optionally be prepended with a question mark:
-
-```javascript
-assert.equal(qs.stringify({ a: 'b', c: 'd' }, { addQueryPrefix: true }), '?a=b&c=d');
-```
-
-The delimiter may be overridden with stringify as well:
-
-```javascript
-assert.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
-```
-
-If you only want to override the serialization of `Date` objects, you can provide a `serializeDate` option:
-
-```javascript
-var date = new Date(7);
-assert.equal(qs.stringify({ a: date }), 'a=1970-01-01T00:00:00.007Z'.replace(/:/g, '%3A'));
-assert.equal(
- qs.stringify({ a: date }, { serializeDate: function (d) { return d.getTime(); } }),
- 'a=7'
-);
-```
-
-You may use the `sort` option to affect the order of parameter keys:
-
-```javascript
-function alphabeticalSort(a, b) {
- return a.localeCompare(b);
-}
-assert.equal(qs.stringify({ a: 'c', z: 'y', b : 'f' }, { sort: alphabeticalSort }), 'a=c&b=f&z=y');
-```
-
-Finally, you can use the `filter` option to restrict which keys will be included in the stringified output.
-If you pass a function, it will be called for each key to obtain the replacement value. Otherwise, if you
-pass an array, it will be used to select properties and array indices for stringification:
-
-```javascript
-function filterFunc(prefix, value) {
- if (prefix == 'b') {
- // Return an `undefined` value to omit a property.
- return;
- }
- if (prefix == 'e[f]') {
- return value.getTime();
- }
- if (prefix == 'e[g][0]') {
- return value * 2;
- }
- return value;
-}
-qs.stringify({ a: 'b', c: 'd', e: { f: new Date(123), g: [2] } }, { filter: filterFunc });
-// 'a=b&c=d&e[f]=123&e[g][0]=4'
-qs.stringify({ a: 'b', c: 'd', e: 'f' }, { filter: ['a', 'e'] });
-// 'a=b&e=f'
-qs.stringify({ a: ['b', 'c', 'd'], e: 'f' }, { filter: ['a', 0, 2] });
-// 'a[0]=b&a[2]=d'
-```
-
-### Handling of `null` values
-
-By default, `null` values are treated like empty strings:
-
-```javascript
-var withNull = qs.stringify({ a: null, b: '' });
-assert.equal(withNull, 'a=&b=');
-```
-
-Parsing does not distinguish between parameters with and without equal signs. Both are converted to empty strings.
-
-```javascript
-var equalsInsensitive = qs.parse('a&b=');
-assert.deepEqual(equalsInsensitive, { a: '', b: '' });
-```
-
-To distinguish between `null` values and empty strings use the `strictNullHandling` flag. In the result string the `null`
-values have no `=` sign:
-
-```javascript
-var strictNull = qs.stringify({ a: null, b: '' }, { strictNullHandling: true });
-assert.equal(strictNull, 'a&b=');
-```
-
-To parse values without `=` back to `null` use the `strictNullHandling` flag:
-
-```javascript
-var parsedStrictNull = qs.parse('a&b=', { strictNullHandling: true });
-assert.deepEqual(parsedStrictNull, { a: null, b: '' });
-```
-
-To completely skip rendering keys with `null` values, use the `skipNulls` flag:
-
-```javascript
-var nullsSkipped = qs.stringify({ a: 'b', c: null}, { skipNulls: true });
-assert.equal(nullsSkipped, 'a=b');
-```
-
-### Dealing with special character sets
-
-By default the encoding and decoding of characters is done in `utf-8`. If you
-wish to encode querystrings to a different character set (i.e.
-[Shift JIS](https://en.wikipedia.org/wiki/Shift_JIS)) you can use the
-[`qs-iconv`](https://github.com/martinheidegger/qs-iconv) library:
-
-```javascript
-var encoder = require('qs-iconv/encoder')('shift_jis');
-var shiftJISEncoded = qs.stringify({ a: 'こんにちは!' }, { encoder: encoder });
-assert.equal(shiftJISEncoded, 'a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I');
-```
-
-This also works for decoding of query strings:
-
-```javascript
-var decoder = require('qs-iconv/decoder')('shift_jis');
-var obj = qs.parse('a=%82%B1%82%F1%82%C9%82%BF%82%CD%81I', { decoder: decoder });
-assert.deepEqual(obj, { a: 'こんにちは!' });
-```
-
-### RFC 3986 and RFC 1738 space encoding
-
-RFC3986 used as default option and encodes ' ' to *%20* which is backward compatible.
-In the same time, output can be stringified as per RFC1738 with ' ' equal to '+'.
-
-```
-assert.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
-assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC3986' }), 'a=b%20c');
-assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c');
-```
-
-[1]: https://npmjs.org/package/qs
-[2]: http://versionbadg.es/ljharb/qs.svg
-[3]: https://api.travis-ci.org/ljharb/qs.svg
-[4]: https://travis-ci.org/ljharb/qs
-[5]: https://david-dm.org/ljharb/qs.svg
-[6]: https://david-dm.org/ljharb/qs
-[7]: https://david-dm.org/ljharb/qs/dev-status.svg
-[8]: https://david-dm.org/ljharb/qs?type=dev
-[9]: https://ci.testling.com/ljharb/qs.png
-[10]: https://ci.testling.com/ljharb/qs
-[11]: https://nodei.co/npm/qs.png?downloads=true&stars=true
-[license-image]: http://img.shields.io/npm/l/qs.svg
-[license-url]: LICENSE
-[downloads-image]: http://img.shields.io/npm/dm/qs.svg
-[downloads-url]: http://npm-stat.com/charts.html?package=qs
diff --git a/node_modules/qs/dist/qs.js b/node_modules/qs/dist/qs.js
deleted file mode 100644
index ecf7ba4..0000000
--- a/node_modules/qs/dist/qs.js
+++ /dev/null
@@ -1,638 +0,0 @@
-(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
-'use strict';
-
-var replace = String.prototype.replace;
-var percentTwenties = /%20/g;
-
-module.exports = {
- 'default': 'RFC3986',
- formatters: {
- RFC1738: function (value) {
- return replace.call(value, percentTwenties, '+');
- },
- RFC3986: function (value) {
- return value;
- }
- },
- RFC1738: 'RFC1738',
- RFC3986: 'RFC3986'
-};
-
-},{}],2:[function(require,module,exports){
-'use strict';
-
-var stringify = require('./stringify');
-var parse = require('./parse');
-var formats = require('./formats');
-
-module.exports = {
- formats: formats,
- parse: parse,
- stringify: stringify
-};
-
-},{"./formats":1,"./parse":3,"./stringify":4}],3:[function(require,module,exports){
-'use strict';
-
-var utils = require('./utils');
-
-var has = Object.prototype.hasOwnProperty;
-
-var defaults = {
- allowDots: false,
- allowPrototypes: false,
- arrayLimit: 20,
- decoder: utils.decode,
- delimiter: '&',
- depth: 5,
- parameterLimit: 1000,
- plainObjects: false,
- strictNullHandling: false
-};
-
-var parseValues = function parseQueryStringValues(str, options) {
- var obj = {};
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
- var parts = cleanStr.split(options.delimiter, limit);
-
- for (var i = 0; i < parts.length; ++i) {
- var part = parts[i];
-
- var bracketEqualsPos = part.indexOf(']=');
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
-
- var key, val;
- if (pos === -1) {
- key = options.decoder(part, defaults.decoder);
- val = options.strictNullHandling ? null : '';
- } else {
- key = options.decoder(part.slice(0, pos), defaults.decoder);
- val = options.decoder(part.slice(pos + 1), defaults.decoder);
- }
- if (has.call(obj, key)) {
- obj[key] = [].concat(obj[key]).concat(val);
- } else {
- obj[key] = val;
- }
- }
-
- return obj;
-};
-
-var parseObject = function (chain, val, options) {
- var leaf = val;
-
- for (var i = chain.length - 1; i >= 0; --i) {
- var obj;
- var root = chain[i];
-
- if (root === '[]') {
- obj = [];
- obj = obj.concat(leaf);
- } else {
- obj = options.plainObjects ? Object.create(null) : {};
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
- var index = parseInt(cleanRoot, 10);
- if (
- !isNaN(index)
- && root !== cleanRoot
- && String(index) === cleanRoot
- && index >= 0
- && (options.parseArrays && index <= options.arrayLimit)
- ) {
- obj = [];
- obj[index] = leaf;
- } else {
- obj[cleanRoot] = leaf;
- }
- }
-
- leaf = obj;
- }
-
- return leaf;
-};
-
-var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
- if (!givenKey) {
- return;
- }
-
- // Transform dot notation to bracket notation
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
-
- // The regex chunks
-
- var brackets = /(\[[^[\]]*])/;
- var child = /(\[[^[\]]*])/g;
-
- // Get the parent
-
- var segment = brackets.exec(key);
- var parent = segment ? key.slice(0, segment.index) : key;
-
- // Stash the parent if it exists
-
- var keys = [];
- if (parent) {
- // If we aren't using plain objects, optionally prefix keys
- // that would overwrite object prototype properties
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
- if (!options.allowPrototypes) {
- return;
- }
- }
-
- keys.push(parent);
- }
-
- // Loop through children appending to the array until we hit depth
-
- var i = 0;
- while ((segment = child.exec(key)) !== null && i < options.depth) {
- i += 1;
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
- if (!options.allowPrototypes) {
- return;
- }
- }
- keys.push(segment[1]);
- }
-
- // If there's a remainder, just add whatever is left
-
- if (segment) {
- keys.push('[' + key.slice(segment.index) + ']');
- }
-
- return parseObject(keys, val, options);
-};
-
-module.exports = function (str, opts) {
- var options = opts ? utils.assign({}, opts) : {};
-
- if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {
- throw new TypeError('Decoder has to be a function.');
- }
-
- options.ignoreQueryPrefix = options.ignoreQueryPrefix === true;
- options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter;
- options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth;
- options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit;
- options.parseArrays = options.parseArrays !== false;
- options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder;
- options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots;
- options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects;
- options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes;
- options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit;
- options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
-
- if (str === '' || str === null || typeof str === 'undefined') {
- return options.plainObjects ? Object.create(null) : {};
- }
-
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
- var obj = options.plainObjects ? Object.create(null) : {};
-
- // Iterate over the keys and setup the new object
-
- var keys = Object.keys(tempObj);
- for (var i = 0; i < keys.length; ++i) {
- var key = keys[i];
- var newObj = parseKeys(key, tempObj[key], options);
- obj = utils.merge(obj, newObj, options);
- }
-
- return utils.compact(obj);
-};
-
-},{"./utils":5}],4:[function(require,module,exports){
-'use strict';
-
-var utils = require('./utils');
-var formats = require('./formats');
-
-var arrayPrefixGenerators = {
- brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
- return prefix + '[]';
- },
- indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
- return prefix + '[' + key + ']';
- },
- repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
- return prefix;
- }
-};
-
-var toISO = Date.prototype.toISOString;
-
-var defaults = {
- delimiter: '&',
- encode: true,
- encoder: utils.encode,
- encodeValuesOnly: false,
- serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
- return toISO.call(date);
- },
- skipNulls: false,
- strictNullHandling: false
-};
-
-var stringify = function stringify( // eslint-disable-line func-name-matching
- object,
- prefix,
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encoder,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
-) {
- var obj = object;
- if (typeof filter === 'function') {
- obj = filter(prefix, obj);
- } else if (obj instanceof Date) {
- obj = serializeDate(obj);
- } else if (obj === null) {
- if (strictNullHandling) {
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;
- }
-
- obj = '';
- }
-
- if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
- if (encoder) {
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder);
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder))];
- }
- return [formatter(prefix) + '=' + formatter(String(obj))];
- }
-
- var values = [];
-
- if (typeof obj === 'undefined') {
- return values;
- }
-
- var objKeys;
- if (Array.isArray(filter)) {
- objKeys = filter;
- } else {
- var keys = Object.keys(obj);
- objKeys = sort ? keys.sort(sort) : keys;
- }
-
- for (var i = 0; i < objKeys.length; ++i) {
- var key = objKeys[i];
-
- if (skipNulls && obj[key] === null) {
- continue;
- }
-
- if (Array.isArray(obj)) {
- values = values.concat(stringify(
- obj[key],
- generateArrayPrefix(prefix, key),
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encoder,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
- ));
- } else {
- values = values.concat(stringify(
- obj[key],
- prefix + (allowDots ? '.' + key : '[' + key + ']'),
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encoder,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
- ));
- }
- }
-
- return values;
-};
-
-module.exports = function (object, opts) {
- var obj = object;
- var options = opts ? utils.assign({}, opts) : {};
-
- if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
- throw new TypeError('Encoder has to be a function.');
- }
-
- var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter;
- var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
- var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;
- var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;
- var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;
- var sort = typeof options.sort === 'function' ? options.sort : null;
- var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;
- var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;
- var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly;
- if (typeof options.format === 'undefined') {
- options.format = formats['default'];
- } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {
- throw new TypeError('Unknown format option provided.');
- }
- var formatter = formats.formatters[options.format];
- var objKeys;
- var filter;
-
- if (typeof options.filter === 'function') {
- filter = options.filter;
- obj = filter('', obj);
- } else if (Array.isArray(options.filter)) {
- filter = options.filter;
- objKeys = filter;
- }
-
- var keys = [];
-
- if (typeof obj !== 'object' || obj === null) {
- return '';
- }
-
- var arrayFormat;
- if (options.arrayFormat in arrayPrefixGenerators) {
- arrayFormat = options.arrayFormat;
- } else if ('indices' in options) {
- arrayFormat = options.indices ? 'indices' : 'repeat';
- } else {
- arrayFormat = 'indices';
- }
-
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
-
- if (!objKeys) {
- objKeys = Object.keys(obj);
- }
-
- if (sort) {
- objKeys.sort(sort);
- }
-
- for (var i = 0; i < objKeys.length; ++i) {
- var key = objKeys[i];
-
- if (skipNulls && obj[key] === null) {
- continue;
- }
-
- keys = keys.concat(stringify(
- obj[key],
- key,
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encode ? encoder : null,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
- ));
- }
-
- var joined = keys.join(delimiter);
- var prefix = options.addQueryPrefix === true ? '?' : '';
-
- return joined.length > 0 ? prefix + joined : '';
-};
-
-},{"./formats":1,"./utils":5}],5:[function(require,module,exports){
-'use strict';
-
-var has = Object.prototype.hasOwnProperty;
-
-var hexTable = (function () {
- var array = [];
- for (var i = 0; i < 256; ++i) {
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
- }
-
- return array;
-}());
-
-var compactQueue = function compactQueue(queue) {
- var obj;
-
- while (queue.length) {
- var item = queue.pop();
- obj = item.obj[item.prop];
-
- if (Array.isArray(obj)) {
- var compacted = [];
-
- for (var j = 0; j < obj.length; ++j) {
- if (typeof obj[j] !== 'undefined') {
- compacted.push(obj[j]);
- }
- }
-
- item.obj[item.prop] = compacted;
- }
- }
-
- return obj;
-};
-
-var arrayToObject = function arrayToObject(source, options) {
- var obj = options && options.plainObjects ? Object.create(null) : {};
- for (var i = 0; i < source.length; ++i) {
- if (typeof source[i] !== 'undefined') {
- obj[i] = source[i];
- }
- }
-
- return obj;
-};
-
-var merge = function merge(target, source, options) {
- if (!source) {
- return target;
- }
-
- if (typeof source !== 'object') {
- if (Array.isArray(target)) {
- target.push(source);
- } else if (typeof target === 'object') {
- if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
- target[source] = true;
- }
- } else {
- return [target, source];
- }
-
- return target;
- }
-
- if (typeof target !== 'object') {
- return [target].concat(source);
- }
-
- var mergeTarget = target;
- if (Array.isArray(target) && !Array.isArray(source)) {
- mergeTarget = arrayToObject(target, options);
- }
-
- if (Array.isArray(target) && Array.isArray(source)) {
- source.forEach(function (item, i) {
- if (has.call(target, i)) {
- if (target[i] && typeof target[i] === 'object') {
- target[i] = merge(target[i], item, options);
- } else {
- target.push(item);
- }
- } else {
- target[i] = item;
- }
- });
- return target;
- }
-
- return Object.keys(source).reduce(function (acc, key) {
- var value = source[key];
-
- if (has.call(acc, key)) {
- acc[key] = merge(acc[key], value, options);
- } else {
- acc[key] = value;
- }
- return acc;
- }, mergeTarget);
-};
-
-var assign = function assignSingleSource(target, source) {
- return Object.keys(source).reduce(function (acc, key) {
- acc[key] = source[key];
- return acc;
- }, target);
-};
-
-var decode = function (str) {
- try {
- return decodeURIComponent(str.replace(/\+/g, ' '));
- } catch (e) {
- return str;
- }
-};
-
-var encode = function encode(str) {
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
- // It has been adapted here for stricter adherence to RFC 3986
- if (str.length === 0) {
- return str;
- }
-
- var string = typeof str === 'string' ? str : String(str);
-
- var out = '';
- for (var i = 0; i < string.length; ++i) {
- var c = string.charCodeAt(i);
-
- if (
- c === 0x2D // -
- || c === 0x2E // .
- || c === 0x5F // _
- || c === 0x7E // ~
- || (c >= 0x30 && c <= 0x39) // 0-9
- || (c >= 0x41 && c <= 0x5A) // a-z
- || (c >= 0x61 && c <= 0x7A) // A-Z
- ) {
- out += string.charAt(i);
- continue;
- }
-
- if (c < 0x80) {
- out = out + hexTable[c];
- continue;
- }
-
- if (c < 0x800) {
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
- continue;
- }
-
- if (c < 0xD800 || c >= 0xE000) {
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
- continue;
- }
-
- i += 1;
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
- out += hexTable[0xF0 | (c >> 18)]
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
- + hexTable[0x80 | (c & 0x3F)];
- }
-
- return out;
-};
-
-var compact = function compact(value) {
- var queue = [{ obj: { o: value }, prop: 'o' }];
- var refs = [];
-
- for (var i = 0; i < queue.length; ++i) {
- var item = queue[i];
- var obj = item.obj[item.prop];
-
- var keys = Object.keys(obj);
- for (var j = 0; j < keys.length; ++j) {
- var key = keys[j];
- var val = obj[key];
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
- queue.push({ obj: obj, prop: key });
- refs.push(val);
- }
- }
- }
-
- return compactQueue(queue);
-};
-
-var isRegExp = function isRegExp(obj) {
- return Object.prototype.toString.call(obj) === '[object RegExp]';
-};
-
-var isBuffer = function isBuffer(obj) {
- if (obj === null || typeof obj === 'undefined') {
- return false;
- }
-
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
-};
-
-module.exports = {
- arrayToObject: arrayToObject,
- assign: assign,
- compact: compact,
- decode: decode,
- encode: encode,
- isBuffer: isBuffer,
- isRegExp: isRegExp,
- merge: merge
-};
-
-},{}]},{},[2])(2)
-});
diff --git a/node_modules/qs/lib/formats.js b/node_modules/qs/lib/formats.js
deleted file mode 100644
index df45997..0000000
--- a/node_modules/qs/lib/formats.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var replace = String.prototype.replace;
-var percentTwenties = /%20/g;
-
-module.exports = {
- 'default': 'RFC3986',
- formatters: {
- RFC1738: function (value) {
- return replace.call(value, percentTwenties, '+');
- },
- RFC3986: function (value) {
- return value;
- }
- },
- RFC1738: 'RFC1738',
- RFC3986: 'RFC3986'
-};
diff --git a/node_modules/qs/lib/index.js b/node_modules/qs/lib/index.js
deleted file mode 100644
index 0d6a97d..0000000
--- a/node_modules/qs/lib/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var stringify = require('./stringify');
-var parse = require('./parse');
-var formats = require('./formats');
-
-module.exports = {
- formats: formats,
- parse: parse,
- stringify: stringify
-};
diff --git a/node_modules/qs/lib/parse.js b/node_modules/qs/lib/parse.js
deleted file mode 100644
index 8c9872e..0000000
--- a/node_modules/qs/lib/parse.js
+++ /dev/null
@@ -1,174 +0,0 @@
-'use strict';
-
-var utils = require('./utils');
-
-var has = Object.prototype.hasOwnProperty;
-
-var defaults = {
- allowDots: false,
- allowPrototypes: false,
- arrayLimit: 20,
- decoder: utils.decode,
- delimiter: '&',
- depth: 5,
- parameterLimit: 1000,
- plainObjects: false,
- strictNullHandling: false
-};
-
-var parseValues = function parseQueryStringValues(str, options) {
- var obj = {};
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
- var parts = cleanStr.split(options.delimiter, limit);
-
- for (var i = 0; i < parts.length; ++i) {
- var part = parts[i];
-
- var bracketEqualsPos = part.indexOf(']=');
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
-
- var key, val;
- if (pos === -1) {
- key = options.decoder(part, defaults.decoder);
- val = options.strictNullHandling ? null : '';
- } else {
- key = options.decoder(part.slice(0, pos), defaults.decoder);
- val = options.decoder(part.slice(pos + 1), defaults.decoder);
- }
- if (has.call(obj, key)) {
- obj[key] = [].concat(obj[key]).concat(val);
- } else {
- obj[key] = val;
- }
- }
-
- return obj;
-};
-
-var parseObject = function (chain, val, options) {
- var leaf = val;
-
- for (var i = chain.length - 1; i >= 0; --i) {
- var obj;
- var root = chain[i];
-
- if (root === '[]') {
- obj = [];
- obj = obj.concat(leaf);
- } else {
- obj = options.plainObjects ? Object.create(null) : {};
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
- var index = parseInt(cleanRoot, 10);
- if (
- !isNaN(index)
- && root !== cleanRoot
- && String(index) === cleanRoot
- && index >= 0
- && (options.parseArrays && index <= options.arrayLimit)
- ) {
- obj = [];
- obj[index] = leaf;
- } else {
- obj[cleanRoot] = leaf;
- }
- }
-
- leaf = obj;
- }
-
- return leaf;
-};
-
-var parseKeys = function parseQueryStringKeys(givenKey, val, options) {
- if (!givenKey) {
- return;
- }
-
- // Transform dot notation to bracket notation
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
-
- // The regex chunks
-
- var brackets = /(\[[^[\]]*])/;
- var child = /(\[[^[\]]*])/g;
-
- // Get the parent
-
- var segment = brackets.exec(key);
- var parent = segment ? key.slice(0, segment.index) : key;
-
- // Stash the parent if it exists
-
- var keys = [];
- if (parent) {
- // If we aren't using plain objects, optionally prefix keys
- // that would overwrite object prototype properties
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
- if (!options.allowPrototypes) {
- return;
- }
- }
-
- keys.push(parent);
- }
-
- // Loop through children appending to the array until we hit depth
-
- var i = 0;
- while ((segment = child.exec(key)) !== null && i < options.depth) {
- i += 1;
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
- if (!options.allowPrototypes) {
- return;
- }
- }
- keys.push(segment[1]);
- }
-
- // If there's a remainder, just add whatever is left
-
- if (segment) {
- keys.push('[' + key.slice(segment.index) + ']');
- }
-
- return parseObject(keys, val, options);
-};
-
-module.exports = function (str, opts) {
- var options = opts ? utils.assign({}, opts) : {};
-
- if (options.decoder !== null && options.decoder !== undefined && typeof options.decoder !== 'function') {
- throw new TypeError('Decoder has to be a function.');
- }
-
- options.ignoreQueryPrefix = options.ignoreQueryPrefix === true;
- options.delimiter = typeof options.delimiter === 'string' || utils.isRegExp(options.delimiter) ? options.delimiter : defaults.delimiter;
- options.depth = typeof options.depth === 'number' ? options.depth : defaults.depth;
- options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : defaults.arrayLimit;
- options.parseArrays = options.parseArrays !== false;
- options.decoder = typeof options.decoder === 'function' ? options.decoder : defaults.decoder;
- options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : defaults.allowDots;
- options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : defaults.plainObjects;
- options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : defaults.allowPrototypes;
- options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : defaults.parameterLimit;
- options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
-
- if (str === '' || str === null || typeof str === 'undefined') {
- return options.plainObjects ? Object.create(null) : {};
- }
-
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
- var obj = options.plainObjects ? Object.create(null) : {};
-
- // Iterate over the keys and setup the new object
-
- var keys = Object.keys(tempObj);
- for (var i = 0; i < keys.length; ++i) {
- var key = keys[i];
- var newObj = parseKeys(key, tempObj[key], options);
- obj = utils.merge(obj, newObj, options);
- }
-
- return utils.compact(obj);
-};
diff --git a/node_modules/qs/lib/stringify.js b/node_modules/qs/lib/stringify.js
deleted file mode 100644
index ab915ac..0000000
--- a/node_modules/qs/lib/stringify.js
+++ /dev/null
@@ -1,210 +0,0 @@
-'use strict';
-
-var utils = require('./utils');
-var formats = require('./formats');
-
-var arrayPrefixGenerators = {
- brackets: function brackets(prefix) { // eslint-disable-line func-name-matching
- return prefix + '[]';
- },
- indices: function indices(prefix, key) { // eslint-disable-line func-name-matching
- return prefix + '[' + key + ']';
- },
- repeat: function repeat(prefix) { // eslint-disable-line func-name-matching
- return prefix;
- }
-};
-
-var toISO = Date.prototype.toISOString;
-
-var defaults = {
- delimiter: '&',
- encode: true,
- encoder: utils.encode,
- encodeValuesOnly: false,
- serializeDate: function serializeDate(date) { // eslint-disable-line func-name-matching
- return toISO.call(date);
- },
- skipNulls: false,
- strictNullHandling: false
-};
-
-var stringify = function stringify( // eslint-disable-line func-name-matching
- object,
- prefix,
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encoder,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
-) {
- var obj = object;
- if (typeof filter === 'function') {
- obj = filter(prefix, obj);
- } else if (obj instanceof Date) {
- obj = serializeDate(obj);
- } else if (obj === null) {
- if (strictNullHandling) {
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder) : prefix;
- }
-
- obj = '';
- }
-
- if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean' || utils.isBuffer(obj)) {
- if (encoder) {
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder);
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder))];
- }
- return [formatter(prefix) + '=' + formatter(String(obj))];
- }
-
- var values = [];
-
- if (typeof obj === 'undefined') {
- return values;
- }
-
- var objKeys;
- if (Array.isArray(filter)) {
- objKeys = filter;
- } else {
- var keys = Object.keys(obj);
- objKeys = sort ? keys.sort(sort) : keys;
- }
-
- for (var i = 0; i < objKeys.length; ++i) {
- var key = objKeys[i];
-
- if (skipNulls && obj[key] === null) {
- continue;
- }
-
- if (Array.isArray(obj)) {
- values = values.concat(stringify(
- obj[key],
- generateArrayPrefix(prefix, key),
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encoder,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
- ));
- } else {
- values = values.concat(stringify(
- obj[key],
- prefix + (allowDots ? '.' + key : '[' + key + ']'),
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encoder,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
- ));
- }
- }
-
- return values;
-};
-
-module.exports = function (object, opts) {
- var obj = object;
- var options = opts ? utils.assign({}, opts) : {};
-
- if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
- throw new TypeError('Encoder has to be a function.');
- }
-
- var delimiter = typeof options.delimiter === 'undefined' ? defaults.delimiter : options.delimiter;
- var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : defaults.strictNullHandling;
- var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : defaults.skipNulls;
- var encode = typeof options.encode === 'boolean' ? options.encode : defaults.encode;
- var encoder = typeof options.encoder === 'function' ? options.encoder : defaults.encoder;
- var sort = typeof options.sort === 'function' ? options.sort : null;
- var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;
- var serializeDate = typeof options.serializeDate === 'function' ? options.serializeDate : defaults.serializeDate;
- var encodeValuesOnly = typeof options.encodeValuesOnly === 'boolean' ? options.encodeValuesOnly : defaults.encodeValuesOnly;
- if (typeof options.format === 'undefined') {
- options.format = formats['default'];
- } else if (!Object.prototype.hasOwnProperty.call(formats.formatters, options.format)) {
- throw new TypeError('Unknown format option provided.');
- }
- var formatter = formats.formatters[options.format];
- var objKeys;
- var filter;
-
- if (typeof options.filter === 'function') {
- filter = options.filter;
- obj = filter('', obj);
- } else if (Array.isArray(options.filter)) {
- filter = options.filter;
- objKeys = filter;
- }
-
- var keys = [];
-
- if (typeof obj !== 'object' || obj === null) {
- return '';
- }
-
- var arrayFormat;
- if (options.arrayFormat in arrayPrefixGenerators) {
- arrayFormat = options.arrayFormat;
- } else if ('indices' in options) {
- arrayFormat = options.indices ? 'indices' : 'repeat';
- } else {
- arrayFormat = 'indices';
- }
-
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
-
- if (!objKeys) {
- objKeys = Object.keys(obj);
- }
-
- if (sort) {
- objKeys.sort(sort);
- }
-
- for (var i = 0; i < objKeys.length; ++i) {
- var key = objKeys[i];
-
- if (skipNulls && obj[key] === null) {
- continue;
- }
-
- keys = keys.concat(stringify(
- obj[key],
- key,
- generateArrayPrefix,
- strictNullHandling,
- skipNulls,
- encode ? encoder : null,
- filter,
- sort,
- allowDots,
- serializeDate,
- formatter,
- encodeValuesOnly
- ));
- }
-
- var joined = keys.join(delimiter);
- var prefix = options.addQueryPrefix === true ? '?' : '';
-
- return joined.length > 0 ? prefix + joined : '';
-};
diff --git a/node_modules/qs/lib/utils.js b/node_modules/qs/lib/utils.js
deleted file mode 100644
index 8775a32..0000000
--- a/node_modules/qs/lib/utils.js
+++ /dev/null
@@ -1,213 +0,0 @@
-'use strict';
-
-var has = Object.prototype.hasOwnProperty;
-
-var hexTable = (function () {
- var array = [];
- for (var i = 0; i < 256; ++i) {
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
- }
-
- return array;
-}());
-
-var compactQueue = function compactQueue(queue) {
- var obj;
-
- while (queue.length) {
- var item = queue.pop();
- obj = item.obj[item.prop];
-
- if (Array.isArray(obj)) {
- var compacted = [];
-
- for (var j = 0; j < obj.length; ++j) {
- if (typeof obj[j] !== 'undefined') {
- compacted.push(obj[j]);
- }
- }
-
- item.obj[item.prop] = compacted;
- }
- }
-
- return obj;
-};
-
-var arrayToObject = function arrayToObject(source, options) {
- var obj = options && options.plainObjects ? Object.create(null) : {};
- for (var i = 0; i < source.length; ++i) {
- if (typeof source[i] !== 'undefined') {
- obj[i] = source[i];
- }
- }
-
- return obj;
-};
-
-var merge = function merge(target, source, options) {
- if (!source) {
- return target;
- }
-
- if (typeof source !== 'object') {
- if (Array.isArray(target)) {
- target.push(source);
- } else if (typeof target === 'object') {
- if (options.plainObjects || options.allowPrototypes || !has.call(Object.prototype, source)) {
- target[source] = true;
- }
- } else {
- return [target, source];
- }
-
- return target;
- }
-
- if (typeof target !== 'object') {
- return [target].concat(source);
- }
-
- var mergeTarget = target;
- if (Array.isArray(target) && !Array.isArray(source)) {
- mergeTarget = arrayToObject(target, options);
- }
-
- if (Array.isArray(target) && Array.isArray(source)) {
- source.forEach(function (item, i) {
- if (has.call(target, i)) {
- if (target[i] && typeof target[i] === 'object') {
- target[i] = merge(target[i], item, options);
- } else {
- target.push(item);
- }
- } else {
- target[i] = item;
- }
- });
- return target;
- }
-
- return Object.keys(source).reduce(function (acc, key) {
- var value = source[key];
-
- if (has.call(acc, key)) {
- acc[key] = merge(acc[key], value, options);
- } else {
- acc[key] = value;
- }
- return acc;
- }, mergeTarget);
-};
-
-var assign = function assignSingleSource(target, source) {
- return Object.keys(source).reduce(function (acc, key) {
- acc[key] = source[key];
- return acc;
- }, target);
-};
-
-var decode = function (str) {
- try {
- return decodeURIComponent(str.replace(/\+/g, ' '));
- } catch (e) {
- return str;
- }
-};
-
-var encode = function encode(str) {
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
- // It has been adapted here for stricter adherence to RFC 3986
- if (str.length === 0) {
- return str;
- }
-
- var string = typeof str === 'string' ? str : String(str);
-
- var out = '';
- for (var i = 0; i < string.length; ++i) {
- var c = string.charCodeAt(i);
-
- if (
- c === 0x2D // -
- || c === 0x2E // .
- || c === 0x5F // _
- || c === 0x7E // ~
- || (c >= 0x30 && c <= 0x39) // 0-9
- || (c >= 0x41 && c <= 0x5A) // a-z
- || (c >= 0x61 && c <= 0x7A) // A-Z
- ) {
- out += string.charAt(i);
- continue;
- }
-
- if (c < 0x80) {
- out = out + hexTable[c];
- continue;
- }
-
- if (c < 0x800) {
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
- continue;
- }
-
- if (c < 0xD800 || c >= 0xE000) {
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
- continue;
- }
-
- i += 1;
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
- out += hexTable[0xF0 | (c >> 18)]
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
- + hexTable[0x80 | (c & 0x3F)];
- }
-
- return out;
-};
-
-var compact = function compact(value) {
- var queue = [{ obj: { o: value }, prop: 'o' }];
- var refs = [];
-
- for (var i = 0; i < queue.length; ++i) {
- var item = queue[i];
- var obj = item.obj[item.prop];
-
- var keys = Object.keys(obj);
- for (var j = 0; j < keys.length; ++j) {
- var key = keys[j];
- var val = obj[key];
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
- queue.push({ obj: obj, prop: key });
- refs.push(val);
- }
- }
- }
-
- return compactQueue(queue);
-};
-
-var isRegExp = function isRegExp(obj) {
- return Object.prototype.toString.call(obj) === '[object RegExp]';
-};
-
-var isBuffer = function isBuffer(obj) {
- if (obj === null || typeof obj === 'undefined') {
- return false;
- }
-
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
-};
-
-module.exports = {
- arrayToObject: arrayToObject,
- assign: assign,
- compact: compact,
- decode: decode,
- encode: encode,
- isBuffer: isBuffer,
- isRegExp: isRegExp,
- merge: merge
-};
diff --git a/node_modules/qs/package.json b/node_modules/qs/package.json
deleted file mode 100644
index af92c34..0000000
--- a/node_modules/qs/package.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "_from": "qs@~6.5.2",
- "_id": "qs@6.5.2",
- "_inBundle": false,
- "_integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==",
- "_location": "/qs",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "qs@~6.5.2",
- "name": "qs",
- "escapedName": "qs",
- "rawSpec": "~6.5.2",
- "saveSpec": null,
- "fetchSpec": "~6.5.2"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
- "_shasum": "cb3ae806e8740444584ef154ce8ee98d403f3e36",
- "_spec": "qs@~6.5.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "bugs": {
- "url": "https://github.com/ljharb/qs/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Jordan Harband",
- "email": "ljharb@gmail.com",
- "url": "http://ljharb.codes"
- }
- ],
- "dependencies": {},
- "deprecated": false,
- "description": "A querystring parser that supports nesting and arrays, with a depth limit",
- "devDependencies": {
- "@ljharb/eslint-config": "^12.2.1",
- "browserify": "^16.2.0",
- "covert": "^1.1.0",
- "editorconfig-tools": "^0.1.1",
- "eslint": "^4.19.1",
- "evalmd": "^0.0.17",
- "iconv-lite": "^0.4.21",
- "mkdirp": "^0.5.1",
- "qs-iconv": "^1.0.4",
- "safe-publish-latest": "^1.1.1",
- "safer-buffer": "^2.1.2",
- "tape": "^4.9.0"
- },
- "engines": {
- "node": ">=0.6"
- },
- "homepage": "https://github.com/ljharb/qs",
- "keywords": [
- "querystring",
- "qs"
- ],
- "license": "BSD-3-Clause",
- "main": "lib/index.js",
- "name": "qs",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ljharb/qs.git"
- },
- "scripts": {
- "coverage": "covert test",
- "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js",
- "lint": "eslint lib/*.js test/*.js",
- "prelint": "editorconfig-tools check * lib/* test/*",
- "prepublish": "safe-publish-latest && npm run dist",
- "pretest": "npm run --silent readme && npm run --silent lint",
- "readme": "evalmd README.md",
- "test": "npm run --silent coverage",
- "tests-only": "node test"
- },
- "version": "6.5.2"
-}
diff --git a/node_modules/qs/test/.eslintrc b/node_modules/qs/test/.eslintrc
deleted file mode 100644
index 20175d6..0000000
--- a/node_modules/qs/test/.eslintrc
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "rules": {
- "array-bracket-newline": 0,
- "array-element-newline": 0,
- "consistent-return": 2,
- "max-lines": 0,
- "max-nested-callbacks": [2, 3],
- "max-statements": 0,
- "no-buffer-constructor": 0,
- "no-extend-native": 0,
- "no-magic-numbers": 0,
- "object-curly-newline": 0,
- "sort-keys": 0
- }
-}
diff --git a/node_modules/qs/test/index.js b/node_modules/qs/test/index.js
deleted file mode 100644
index 5e6bc8f..0000000
--- a/node_modules/qs/test/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-require('./parse');
-
-require('./stringify');
-
-require('./utils');
diff --git a/node_modules/qs/test/parse.js b/node_modules/qs/test/parse.js
deleted file mode 100644
index 0f8fe45..0000000
--- a/node_modules/qs/test/parse.js
+++ /dev/null
@@ -1,574 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var qs = require('../');
-var utils = require('../lib/utils');
-var iconv = require('iconv-lite');
-var SaferBuffer = require('safer-buffer').Buffer;
-
-test('parse()', function (t) {
- t.test('parses a simple string', function (st) {
- st.deepEqual(qs.parse('0=foo'), { 0: 'foo' });
- st.deepEqual(qs.parse('foo=c++'), { foo: 'c ' });
- st.deepEqual(qs.parse('a[>=]=23'), { a: { '>=': '23' } });
- st.deepEqual(qs.parse('a[<=>]==23'), { a: { '<=>': '=23' } });
- st.deepEqual(qs.parse('a[==]=23'), { a: { '==': '23' } });
- st.deepEqual(qs.parse('foo', { strictNullHandling: true }), { foo: null });
- st.deepEqual(qs.parse('foo'), { foo: '' });
- st.deepEqual(qs.parse('foo='), { foo: '' });
- st.deepEqual(qs.parse('foo=bar'), { foo: 'bar' });
- st.deepEqual(qs.parse(' foo = bar = baz '), { ' foo ': ' bar = baz ' });
- st.deepEqual(qs.parse('foo=bar=baz'), { foo: 'bar=baz' });
- st.deepEqual(qs.parse('foo=bar&bar=baz'), { foo: 'bar', bar: 'baz' });
- st.deepEqual(qs.parse('foo2=bar2&baz2='), { foo2: 'bar2', baz2: '' });
- st.deepEqual(qs.parse('foo=bar&baz', { strictNullHandling: true }), { foo: 'bar', baz: null });
- st.deepEqual(qs.parse('foo=bar&baz'), { foo: 'bar', baz: '' });
- st.deepEqual(qs.parse('cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World'), {
- cht: 'p3',
- chd: 't:60,40',
- chs: '250x100',
- chl: 'Hello|World'
- });
- st.end();
- });
-
- t.test('allows enabling dot notation', function (st) {
- st.deepEqual(qs.parse('a.b=c'), { 'a.b': 'c' });
- st.deepEqual(qs.parse('a.b=c', { allowDots: true }), { a: { b: 'c' } });
- st.end();
- });
-
- t.deepEqual(qs.parse('a[b]=c'), { a: { b: 'c' } }, 'parses a single nested string');
- t.deepEqual(qs.parse('a[b][c]=d'), { a: { b: { c: 'd' } } }, 'parses a double nested string');
- t.deepEqual(
- qs.parse('a[b][c][d][e][f][g][h]=i'),
- { a: { b: { c: { d: { e: { f: { '[g][h]': 'i' } } } } } } },
- 'defaults to a depth of 5'
- );
-
- t.test('only parses one level when depth = 1', function (st) {
- st.deepEqual(qs.parse('a[b][c]=d', { depth: 1 }), { a: { b: { '[c]': 'd' } } });
- st.deepEqual(qs.parse('a[b][c][d]=e', { depth: 1 }), { a: { b: { '[c][d]': 'e' } } });
- st.end();
- });
-
- t.deepEqual(qs.parse('a=b&a=c'), { a: ['b', 'c'] }, 'parses a simple array');
-
- t.test('parses an explicit array', function (st) {
- st.deepEqual(qs.parse('a[]=b'), { a: ['b'] });
- st.deepEqual(qs.parse('a[]=b&a[]=c'), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a[]=b&a[]=c&a[]=d'), { a: ['b', 'c', 'd'] });
- st.end();
- });
-
- t.test('parses a mix of simple and explicit arrays', function (st) {
- st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a[0]=b&a=c'), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a=b&a[0]=c'), { a: ['b', 'c'] });
-
- st.deepEqual(qs.parse('a[1]=b&a=c', { arrayLimit: 20 }), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a[]=b&a=c', { arrayLimit: 0 }), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a[]=b&a=c'), { a: ['b', 'c'] });
-
- st.deepEqual(qs.parse('a=b&a[1]=c', { arrayLimit: 20 }), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a=b&a[]=c', { arrayLimit: 0 }), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a=b&a[]=c'), { a: ['b', 'c'] });
-
- st.end();
- });
-
- t.test('parses a nested array', function (st) {
- st.deepEqual(qs.parse('a[b][]=c&a[b][]=d'), { a: { b: ['c', 'd'] } });
- st.deepEqual(qs.parse('a[>=]=25'), { a: { '>=': '25' } });
- st.end();
- });
-
- t.test('allows to specify array indices', function (st) {
- st.deepEqual(qs.parse('a[1]=c&a[0]=b&a[2]=d'), { a: ['b', 'c', 'd'] });
- st.deepEqual(qs.parse('a[1]=c&a[0]=b'), { a: ['b', 'c'] });
- st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 20 }), { a: ['c'] });
- st.deepEqual(qs.parse('a[1]=c', { arrayLimit: 0 }), { a: { 1: 'c' } });
- st.deepEqual(qs.parse('a[1]=c'), { a: ['c'] });
- st.end();
- });
-
- t.test('limits specific array indices to arrayLimit', function (st) {
- st.deepEqual(qs.parse('a[20]=a', { arrayLimit: 20 }), { a: ['a'] });
- st.deepEqual(qs.parse('a[21]=a', { arrayLimit: 20 }), { a: { 21: 'a' } });
- st.end();
- });
-
- t.deepEqual(qs.parse('a[12b]=c'), { a: { '12b': 'c' } }, 'supports keys that begin with a number');
-
- t.test('supports encoded = signs', function (st) {
- st.deepEqual(qs.parse('he%3Dllo=th%3Dere'), { 'he=llo': 'th=ere' });
- st.end();
- });
-
- t.test('is ok with url encoded strings', function (st) {
- st.deepEqual(qs.parse('a[b%20c]=d'), { a: { 'b c': 'd' } });
- st.deepEqual(qs.parse('a[b]=c%20d'), { a: { b: 'c d' } });
- st.end();
- });
-
- t.test('allows brackets in the value', function (st) {
- st.deepEqual(qs.parse('pets=["tobi"]'), { pets: '["tobi"]' });
- st.deepEqual(qs.parse('operators=[">=", "<="]'), { operators: '[">=", "<="]' });
- st.end();
- });
-
- t.test('allows empty values', function (st) {
- st.deepEqual(qs.parse(''), {});
- st.deepEqual(qs.parse(null), {});
- st.deepEqual(qs.parse(undefined), {});
- st.end();
- });
-
- t.test('transforms arrays to objects', function (st) {
- st.deepEqual(qs.parse('foo[0]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } });
- st.deepEqual(qs.parse('foo[bad]=baz&foo[0]=bar'), { foo: { bad: 'baz', 0: 'bar' } });
- st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar'), { foo: { bad: 'baz', 0: 'bar' } });
- st.deepEqual(qs.parse('foo[]=bar&foo[bad]=baz'), { foo: { 0: 'bar', bad: 'baz' } });
- st.deepEqual(qs.parse('foo[bad]=baz&foo[]=bar&foo[]=foo'), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } });
- st.deepEqual(qs.parse('foo[0][a]=a&foo[0][b]=b&foo[1][a]=aa&foo[1][b]=bb'), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] });
-
- st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: false }), { a: { 0: 'b', t: 'u' } });
- st.deepEqual(qs.parse('a[]=b&a[t]=u&a[hasOwnProperty]=c', { allowPrototypes: true }), { a: { 0: 'b', t: 'u', hasOwnProperty: 'c' } });
- st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: false }), { a: { 0: 'b', x: 'y' } });
- st.deepEqual(qs.parse('a[]=b&a[hasOwnProperty]=c&a[x]=y', { allowPrototypes: true }), { a: { 0: 'b', hasOwnProperty: 'c', x: 'y' } });
- st.end();
- });
-
- t.test('transforms arrays to objects (dot notation)', function (st) {
- st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: 'baz' } });
- st.deepEqual(qs.parse('foo[0].baz=bar&fool.bad.boo=baz', { allowDots: true }), { foo: [{ baz: 'bar' }], fool: { bad: { boo: 'baz' } } });
- st.deepEqual(qs.parse('foo[0][0].baz=bar&fool.bad=baz', { allowDots: true }), { foo: [[{ baz: 'bar' }]], fool: { bad: 'baz' } });
- st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15'], bar: '2' }] });
- st.deepEqual(qs.parse('foo[0].baz[0]=15&foo[0].baz[1]=16&foo[0].bar=2', { allowDots: true }), { foo: [{ baz: ['15', '16'], bar: '2' }] });
- st.deepEqual(qs.parse('foo.bad=baz&foo[0]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } });
- st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar' } });
- st.deepEqual(qs.parse('foo[]=bar&foo.bad=baz', { allowDots: true }), { foo: { 0: 'bar', bad: 'baz' } });
- st.deepEqual(qs.parse('foo.bad=baz&foo[]=bar&foo[]=foo', { allowDots: true }), { foo: { bad: 'baz', 0: 'bar', 1: 'foo' } });
- st.deepEqual(qs.parse('foo[0].a=a&foo[0].b=b&foo[1].a=aa&foo[1].b=bb', { allowDots: true }), { foo: [{ a: 'a', b: 'b' }, { a: 'aa', b: 'bb' }] });
- st.end();
- });
-
- t.test('correctly prunes undefined values when converting an array to an object', function (st) {
- st.deepEqual(qs.parse('a[2]=b&a[99999999]=c'), { a: { 2: 'b', 99999999: 'c' } });
- st.end();
- });
-
- t.test('supports malformed uri characters', function (st) {
- st.deepEqual(qs.parse('{%:%}', { strictNullHandling: true }), { '{%:%}': null });
- st.deepEqual(qs.parse('{%:%}='), { '{%:%}': '' });
- st.deepEqual(qs.parse('foo=%:%}'), { foo: '%:%}' });
- st.end();
- });
-
- t.test('doesn\'t produce empty keys', function (st) {
- st.deepEqual(qs.parse('_r=1&'), { _r: '1' });
- st.end();
- });
-
- t.test('cannot access Object prototype', function (st) {
- qs.parse('constructor[prototype][bad]=bad');
- qs.parse('bad[constructor][prototype][bad]=bad');
- st.equal(typeof Object.prototype.bad, 'undefined');
- st.end();
- });
-
- t.test('parses arrays of objects', function (st) {
- st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] });
- st.deepEqual(qs.parse('a[0][b]=c'), { a: [{ b: 'c' }] });
- st.end();
- });
-
- t.test('allows for empty strings in arrays', function (st) {
- st.deepEqual(qs.parse('a[]=b&a[]=&a[]=c'), { a: ['b', '', 'c'] });
-
- st.deepEqual(
- qs.parse('a[0]=b&a[1]&a[2]=c&a[19]=', { strictNullHandling: true, arrayLimit: 20 }),
- { a: ['b', null, 'c', ''] },
- 'with arrayLimit 20 + array indices: null then empty string works'
- );
- st.deepEqual(
- qs.parse('a[]=b&a[]&a[]=c&a[]=', { strictNullHandling: true, arrayLimit: 0 }),
- { a: ['b', null, 'c', ''] },
- 'with arrayLimit 0 + array brackets: null then empty string works'
- );
-
- st.deepEqual(
- qs.parse('a[0]=b&a[1]=&a[2]=c&a[19]', { strictNullHandling: true, arrayLimit: 20 }),
- { a: ['b', '', 'c', null] },
- 'with arrayLimit 20 + array indices: empty string then null works'
- );
- st.deepEqual(
- qs.parse('a[]=b&a[]=&a[]=c&a[]', { strictNullHandling: true, arrayLimit: 0 }),
- { a: ['b', '', 'c', null] },
- 'with arrayLimit 0 + array brackets: empty string then null works'
- );
-
- st.deepEqual(
- qs.parse('a[]=&a[]=b&a[]=c'),
- { a: ['', 'b', 'c'] },
- 'array brackets: empty strings work'
- );
- st.end();
- });
-
- t.test('compacts sparse arrays', function (st) {
- st.deepEqual(qs.parse('a[10]=1&a[2]=2', { arrayLimit: 20 }), { a: ['2', '1'] });
- st.deepEqual(qs.parse('a[1][b][2][c]=1', { arrayLimit: 20 }), { a: [{ b: [{ c: '1' }] }] });
- st.deepEqual(qs.parse('a[1][2][3][c]=1', { arrayLimit: 20 }), { a: [[[{ c: '1' }]]] });
- st.deepEqual(qs.parse('a[1][2][3][c][1]=1', { arrayLimit: 20 }), { a: [[[{ c: ['1'] }]]] });
- st.end();
- });
-
- t.test('parses semi-parsed strings', function (st) {
- st.deepEqual(qs.parse({ 'a[b]': 'c' }), { a: { b: 'c' } });
- st.deepEqual(qs.parse({ 'a[b]': 'c', 'a[d]': 'e' }), { a: { b: 'c', d: 'e' } });
- st.end();
- });
-
- t.test('parses buffers correctly', function (st) {
- var b = SaferBuffer.from('test');
- st.deepEqual(qs.parse({ a: b }), { a: b });
- st.end();
- });
-
- t.test('continues parsing when no parent is found', function (st) {
- st.deepEqual(qs.parse('[]=&a=b'), { 0: '', a: 'b' });
- st.deepEqual(qs.parse('[]&a=b', { strictNullHandling: true }), { 0: null, a: 'b' });
- st.deepEqual(qs.parse('[foo]=bar'), { foo: 'bar' });
- st.end();
- });
-
- t.test('does not error when parsing a very long array', function (st) {
- var str = 'a[]=a';
- while (Buffer.byteLength(str) < 128 * 1024) {
- str = str + '&' + str;
- }
-
- st.doesNotThrow(function () {
- qs.parse(str);
- });
-
- st.end();
- });
-
- t.test('should not throw when a native prototype has an enumerable property', { parallel: false }, function (st) {
- Object.prototype.crash = '';
- Array.prototype.crash = '';
- st.doesNotThrow(qs.parse.bind(null, 'a=b'));
- st.deepEqual(qs.parse('a=b'), { a: 'b' });
- st.doesNotThrow(qs.parse.bind(null, 'a[][b]=c'));
- st.deepEqual(qs.parse('a[][b]=c'), { a: [{ b: 'c' }] });
- delete Object.prototype.crash;
- delete Array.prototype.crash;
- st.end();
- });
-
- t.test('parses a string with an alternative string delimiter', function (st) {
- st.deepEqual(qs.parse('a=b;c=d', { delimiter: ';' }), { a: 'b', c: 'd' });
- st.end();
- });
-
- t.test('parses a string with an alternative RegExp delimiter', function (st) {
- st.deepEqual(qs.parse('a=b; c=d', { delimiter: /[;,] */ }), { a: 'b', c: 'd' });
- st.end();
- });
-
- t.test('does not use non-splittable objects as delimiters', function (st) {
- st.deepEqual(qs.parse('a=b&c=d', { delimiter: true }), { a: 'b', c: 'd' });
- st.end();
- });
-
- t.test('allows overriding parameter limit', function (st) {
- st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: 1 }), { a: 'b' });
- st.end();
- });
-
- t.test('allows setting the parameter limit to Infinity', function (st) {
- st.deepEqual(qs.parse('a=b&c=d', { parameterLimit: Infinity }), { a: 'b', c: 'd' });
- st.end();
- });
-
- t.test('allows overriding array limit', function (st) {
- st.deepEqual(qs.parse('a[0]=b', { arrayLimit: -1 }), { a: { 0: 'b' } });
- st.deepEqual(qs.parse('a[-1]=b', { arrayLimit: -1 }), { a: { '-1': 'b' } });
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { arrayLimit: 0 }), { a: { 0: 'b', 1: 'c' } });
- st.end();
- });
-
- t.test('allows disabling array parsing', function (st) {
- st.deepEqual(qs.parse('a[0]=b&a[1]=c', { parseArrays: false }), { a: { 0: 'b', 1: 'c' } });
- st.end();
- });
-
- t.test('allows for query string prefix', function (st) {
- st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
- st.deepEqual(qs.parse('foo=bar', { ignoreQueryPrefix: true }), { foo: 'bar' });
- st.deepEqual(qs.parse('?foo=bar', { ignoreQueryPrefix: false }), { '?foo': 'bar' });
- st.end();
- });
-
- t.test('parses an object', function (st) {
- var input = {
- 'user[name]': { 'pop[bob]': 3 },
- 'user[email]': null
- };
-
- var expected = {
- user: {
- name: { 'pop[bob]': 3 },
- email: null
- }
- };
-
- var result = qs.parse(input);
-
- st.deepEqual(result, expected);
- st.end();
- });
-
- t.test('parses an object in dot notation', function (st) {
- var input = {
- 'user.name': { 'pop[bob]': 3 },
- 'user.email.': null
- };
-
- var expected = {
- user: {
- name: { 'pop[bob]': 3 },
- email: null
- }
- };
-
- var result = qs.parse(input, { allowDots: true });
-
- st.deepEqual(result, expected);
- st.end();
- });
-
- t.test('parses an object and not child values', function (st) {
- var input = {
- 'user[name]': { 'pop[bob]': { test: 3 } },
- 'user[email]': null
- };
-
- var expected = {
- user: {
- name: { 'pop[bob]': { test: 3 } },
- email: null
- }
- };
-
- var result = qs.parse(input);
-
- st.deepEqual(result, expected);
- st.end();
- });
-
- t.test('does not blow up when Buffer global is missing', function (st) {
- var tempBuffer = global.Buffer;
- delete global.Buffer;
- var result = qs.parse('a=b&c=d');
- global.Buffer = tempBuffer;
- st.deepEqual(result, { a: 'b', c: 'd' });
- st.end();
- });
-
- t.test('does not crash when parsing circular references', function (st) {
- var a = {};
- a.b = a;
-
- var parsed;
-
- st.doesNotThrow(function () {
- parsed = qs.parse({ 'foo[bar]': 'baz', 'foo[baz]': a });
- });
-
- st.equal('foo' in parsed, true, 'parsed has "foo" property');
- st.equal('bar' in parsed.foo, true);
- st.equal('baz' in parsed.foo, true);
- st.equal(parsed.foo.bar, 'baz');
- st.deepEqual(parsed.foo.baz, a);
- st.end();
- });
-
- t.test('does not crash when parsing deep objects', function (st) {
- var parsed;
- var str = 'foo';
-
- for (var i = 0; i < 5000; i++) {
- str += '[p]';
- }
-
- str += '=bar';
-
- st.doesNotThrow(function () {
- parsed = qs.parse(str, { depth: 5000 });
- });
-
- st.equal('foo' in parsed, true, 'parsed has "foo" property');
-
- var depth = 0;
- var ref = parsed.foo;
- while ((ref = ref.p)) {
- depth += 1;
- }
-
- st.equal(depth, 5000, 'parsed is 5000 properties deep');
-
- st.end();
- });
-
- t.test('parses null objects correctly', { skip: !Object.create }, function (st) {
- var a = Object.create(null);
- a.b = 'c';
-
- st.deepEqual(qs.parse(a), { b: 'c' });
- var result = qs.parse({ a: a });
- st.equal('a' in result, true, 'result has "a" property');
- st.deepEqual(result.a, a);
- st.end();
- });
-
- t.test('parses dates correctly', function (st) {
- var now = new Date();
- st.deepEqual(qs.parse({ a: now }), { a: now });
- st.end();
- });
-
- t.test('parses regular expressions correctly', function (st) {
- var re = /^test$/;
- st.deepEqual(qs.parse({ a: re }), { a: re });
- st.end();
- });
-
- t.test('does not allow overwriting prototype properties', function (st) {
- st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: false }), {});
- st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: false }), {});
-
- st.deepEqual(
- qs.parse('toString', { allowPrototypes: false }),
- {},
- 'bare "toString" results in {}'
- );
-
- st.end();
- });
-
- t.test('can allow overwriting prototype properties', function (st) {
- st.deepEqual(qs.parse('a[hasOwnProperty]=b', { allowPrototypes: true }), { a: { hasOwnProperty: 'b' } });
- st.deepEqual(qs.parse('hasOwnProperty=b', { allowPrototypes: true }), { hasOwnProperty: 'b' });
-
- st.deepEqual(
- qs.parse('toString', { allowPrototypes: true }),
- { toString: '' },
- 'bare "toString" results in { toString: "" }'
- );
-
- st.end();
- });
-
- t.test('params starting with a closing bracket', function (st) {
- st.deepEqual(qs.parse(']=toString'), { ']': 'toString' });
- st.deepEqual(qs.parse(']]=toString'), { ']]': 'toString' });
- st.deepEqual(qs.parse(']hello]=toString'), { ']hello]': 'toString' });
- st.end();
- });
-
- t.test('params starting with a starting bracket', function (st) {
- st.deepEqual(qs.parse('[=toString'), { '[': 'toString' });
- st.deepEqual(qs.parse('[[=toString'), { '[[': 'toString' });
- st.deepEqual(qs.parse('[hello[=toString'), { '[hello[': 'toString' });
- st.end();
- });
-
- t.test('add keys to objects', function (st) {
- st.deepEqual(
- qs.parse('a[b]=c&a=d'),
- { a: { b: 'c', d: true } },
- 'can add keys to objects'
- );
-
- st.deepEqual(
- qs.parse('a[b]=c&a=toString'),
- { a: { b: 'c' } },
- 'can not overwrite prototype'
- );
-
- st.deepEqual(
- qs.parse('a[b]=c&a=toString', { allowPrototypes: true }),
- { a: { b: 'c', toString: true } },
- 'can overwrite prototype with allowPrototypes true'
- );
-
- st.deepEqual(
- qs.parse('a[b]=c&a=toString', { plainObjects: true }),
- { a: { b: 'c', toString: true } },
- 'can overwrite prototype with plainObjects true'
- );
-
- st.end();
- });
-
- t.test('can return null objects', { skip: !Object.create }, function (st) {
- var expected = Object.create(null);
- expected.a = Object.create(null);
- expected.a.b = 'c';
- expected.a.hasOwnProperty = 'd';
- st.deepEqual(qs.parse('a[b]=c&a[hasOwnProperty]=d', { plainObjects: true }), expected);
- st.deepEqual(qs.parse(null, { plainObjects: true }), Object.create(null));
- var expectedArray = Object.create(null);
- expectedArray.a = Object.create(null);
- expectedArray.a[0] = 'b';
- expectedArray.a.c = 'd';
- st.deepEqual(qs.parse('a[]=b&a[c]=d', { plainObjects: true }), expectedArray);
- st.end();
- });
-
- t.test('can parse with custom encoding', function (st) {
- st.deepEqual(qs.parse('%8c%a7=%91%e5%8d%e3%95%7b', {
- decoder: function (str) {
- var reg = /%([0-9A-F]{2})/ig;
- var result = [];
- var parts = reg.exec(str);
- while (parts) {
- result.push(parseInt(parts[1], 16));
- parts = reg.exec(str);
- }
- return iconv.decode(SaferBuffer.from(result), 'shift_jis').toString();
- }
- }), { 県: '大阪府' });
- st.end();
- });
-
- t.test('receives the default decoder as a second argument', function (st) {
- st.plan(1);
- qs.parse('a', {
- decoder: function (str, defaultDecoder) {
- st.equal(defaultDecoder, utils.decode);
- }
- });
- st.end();
- });
-
- t.test('throws error with wrong decoder', function (st) {
- st['throws'](function () {
- qs.parse({}, { decoder: 'string' });
- }, new TypeError('Decoder has to be a function.'));
- st.end();
- });
-
- t.test('does not mutate the options argument', function (st) {
- var options = {};
- qs.parse('a[b]=true', options);
- st.deepEqual(options, {});
- st.end();
- });
-
- t.end();
-});
diff --git a/node_modules/qs/test/stringify.js b/node_modules/qs/test/stringify.js
deleted file mode 100644
index 165ac62..0000000
--- a/node_modules/qs/test/stringify.js
+++ /dev/null
@@ -1,597 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var qs = require('../');
-var utils = require('../lib/utils');
-var iconv = require('iconv-lite');
-var SaferBuffer = require('safer-buffer').Buffer;
-
-test('stringify()', function (t) {
- t.test('stringifies a querystring object', function (st) {
- st.equal(qs.stringify({ a: 'b' }), 'a=b');
- st.equal(qs.stringify({ a: 1 }), 'a=1');
- st.equal(qs.stringify({ a: 1, b: 2 }), 'a=1&b=2');
- st.equal(qs.stringify({ a: 'A_Z' }), 'a=A_Z');
- st.equal(qs.stringify({ a: '€' }), 'a=%E2%82%AC');
- st.equal(qs.stringify({ a: '' }), 'a=%EE%80%80');
- st.equal(qs.stringify({ a: 'א' }), 'a=%D7%90');
- st.equal(qs.stringify({ a: '𐐷' }), 'a=%F0%90%90%B7');
- st.end();
- });
-
- t.test('adds query prefix', function (st) {
- st.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b');
- st.end();
- });
-
- t.test('with query prefix, outputs blank string given an empty object', function (st) {
- st.equal(qs.stringify({}, { addQueryPrefix: true }), '');
- st.end();
- });
-
- t.test('stringifies a nested object', function (st) {
- st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
- st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }), 'a%5Bb%5D%5Bc%5D%5Bd%5D=e');
- st.end();
- });
-
- t.test('stringifies a nested object with dots notation', function (st) {
- st.equal(qs.stringify({ a: { b: 'c' } }, { allowDots: true }), 'a.b=c');
- st.equal(qs.stringify({ a: { b: { c: { d: 'e' } } } }, { allowDots: true }), 'a.b.c.d=e');
- st.end();
- });
-
- t.test('stringifies an array value', function (st) {
- st.equal(
- qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'indices' }),
- 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d',
- 'indices => indices'
- );
- st.equal(
- qs.stringify({ a: ['b', 'c', 'd'] }, { arrayFormat: 'brackets' }),
- 'a%5B%5D=b&a%5B%5D=c&a%5B%5D=d',
- 'brackets => brackets'
- );
- st.equal(
- qs.stringify({ a: ['b', 'c', 'd'] }),
- 'a%5B0%5D=b&a%5B1%5D=c&a%5B2%5D=d',
- 'default => indices'
- );
- st.end();
- });
-
- t.test('omits nulls when asked', function (st) {
- st.equal(qs.stringify({ a: 'b', c: null }, { skipNulls: true }), 'a=b');
- st.end();
- });
-
- t.test('omits nested nulls when asked', function (st) {
- st.equal(qs.stringify({ a: { b: 'c', d: null } }, { skipNulls: true }), 'a%5Bb%5D=c');
- st.end();
- });
-
- t.test('omits array indices when asked', function (st) {
- st.equal(qs.stringify({ a: ['b', 'c', 'd'] }, { indices: false }), 'a=b&a=c&a=d');
- st.end();
- });
-
- t.test('stringifies a nested array value', function (st) {
- st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'indices' }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
- st.equal(qs.stringify({ a: { b: ['c', 'd'] } }, { arrayFormat: 'brackets' }), 'a%5Bb%5D%5B%5D=c&a%5Bb%5D%5B%5D=d');
- st.equal(qs.stringify({ a: { b: ['c', 'd'] } }), 'a%5Bb%5D%5B0%5D=c&a%5Bb%5D%5B1%5D=d');
- st.end();
- });
-
- t.test('stringifies a nested array value with dots notation', function (st) {
- st.equal(
- qs.stringify(
- { a: { b: ['c', 'd'] } },
- { allowDots: true, encode: false, arrayFormat: 'indices' }
- ),
- 'a.b[0]=c&a.b[1]=d',
- 'indices: stringifies with dots + indices'
- );
- st.equal(
- qs.stringify(
- { a: { b: ['c', 'd'] } },
- { allowDots: true, encode: false, arrayFormat: 'brackets' }
- ),
- 'a.b[]=c&a.b[]=d',
- 'brackets: stringifies with dots + brackets'
- );
- st.equal(
- qs.stringify(
- { a: { b: ['c', 'd'] } },
- { allowDots: true, encode: false }
- ),
- 'a.b[0]=c&a.b[1]=d',
- 'default: stringifies with dots + indices'
- );
- st.end();
- });
-
- t.test('stringifies an object inside an array', function (st) {
- st.equal(
- qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'indices' }),
- 'a%5B0%5D%5Bb%5D=c',
- 'indices => brackets'
- );
- st.equal(
- qs.stringify({ a: [{ b: 'c' }] }, { arrayFormat: 'brackets' }),
- 'a%5B%5D%5Bb%5D=c',
- 'brackets => brackets'
- );
- st.equal(
- qs.stringify({ a: [{ b: 'c' }] }),
- 'a%5B0%5D%5Bb%5D=c',
- 'default => indices'
- );
-
- st.equal(
- qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'indices' }),
- 'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1',
- 'indices => indices'
- );
-
- st.equal(
- qs.stringify({ a: [{ b: { c: [1] } }] }, { arrayFormat: 'brackets' }),
- 'a%5B%5D%5Bb%5D%5Bc%5D%5B%5D=1',
- 'brackets => brackets'
- );
-
- st.equal(
- qs.stringify({ a: [{ b: { c: [1] } }] }),
- 'a%5B0%5D%5Bb%5D%5Bc%5D%5B0%5D=1',
- 'default => indices'
- );
-
- st.end();
- });
-
- t.test('stringifies an array with mixed objects and primitives', function (st) {
- st.equal(
- qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'indices' }),
- 'a[0][b]=1&a[1]=2&a[2]=3',
- 'indices => indices'
- );
- st.equal(
- qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false, arrayFormat: 'brackets' }),
- 'a[][b]=1&a[]=2&a[]=3',
- 'brackets => brackets'
- );
- st.equal(
- qs.stringify({ a: [{ b: 1 }, 2, 3] }, { encode: false }),
- 'a[0][b]=1&a[1]=2&a[2]=3',
- 'default => indices'
- );
-
- st.end();
- });
-
- t.test('stringifies an object inside an array with dots notation', function (st) {
- st.equal(
- qs.stringify(
- { a: [{ b: 'c' }] },
- { allowDots: true, encode: false, arrayFormat: 'indices' }
- ),
- 'a[0].b=c',
- 'indices => indices'
- );
- st.equal(
- qs.stringify(
- { a: [{ b: 'c' }] },
- { allowDots: true, encode: false, arrayFormat: 'brackets' }
- ),
- 'a[].b=c',
- 'brackets => brackets'
- );
- st.equal(
- qs.stringify(
- { a: [{ b: 'c' }] },
- { allowDots: true, encode: false }
- ),
- 'a[0].b=c',
- 'default => indices'
- );
-
- st.equal(
- qs.stringify(
- { a: [{ b: { c: [1] } }] },
- { allowDots: true, encode: false, arrayFormat: 'indices' }
- ),
- 'a[0].b.c[0]=1',
- 'indices => indices'
- );
- st.equal(
- qs.stringify(
- { a: [{ b: { c: [1] } }] },
- { allowDots: true, encode: false, arrayFormat: 'brackets' }
- ),
- 'a[].b.c[]=1',
- 'brackets => brackets'
- );
- st.equal(
- qs.stringify(
- { a: [{ b: { c: [1] } }] },
- { allowDots: true, encode: false }
- ),
- 'a[0].b.c[0]=1',
- 'default => indices'
- );
-
- st.end();
- });
-
- t.test('does not omit object keys when indices = false', function (st) {
- st.equal(qs.stringify({ a: [{ b: 'c' }] }, { indices: false }), 'a%5Bb%5D=c');
- st.end();
- });
-
- t.test('uses indices notation for arrays when indices=true', function (st) {
- st.equal(qs.stringify({ a: ['b', 'c'] }, { indices: true }), 'a%5B0%5D=b&a%5B1%5D=c');
- st.end();
- });
-
- t.test('uses indices notation for arrays when no arrayFormat is specified', function (st) {
- st.equal(qs.stringify({ a: ['b', 'c'] }), 'a%5B0%5D=b&a%5B1%5D=c');
- st.end();
- });
-
- t.test('uses indices notation for arrays when no arrayFormat=indices', function (st) {
- st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'indices' }), 'a%5B0%5D=b&a%5B1%5D=c');
- st.end();
- });
-
- t.test('uses repeat notation for arrays when no arrayFormat=repeat', function (st) {
- st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'repeat' }), 'a=b&a=c');
- st.end();
- });
-
- t.test('uses brackets notation for arrays when no arrayFormat=brackets', function (st) {
- st.equal(qs.stringify({ a: ['b', 'c'] }, { arrayFormat: 'brackets' }), 'a%5B%5D=b&a%5B%5D=c');
- st.end();
- });
-
- t.test('stringifies a complicated object', function (st) {
- st.equal(qs.stringify({ a: { b: 'c', d: 'e' } }), 'a%5Bb%5D=c&a%5Bd%5D=e');
- st.end();
- });
-
- t.test('stringifies an empty value', function (st) {
- st.equal(qs.stringify({ a: '' }), 'a=');
- st.equal(qs.stringify({ a: null }, { strictNullHandling: true }), 'a');
-
- st.equal(qs.stringify({ a: '', b: '' }), 'a=&b=');
- st.equal(qs.stringify({ a: null, b: '' }, { strictNullHandling: true }), 'a&b=');
-
- st.equal(qs.stringify({ a: { b: '' } }), 'a%5Bb%5D=');
- st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: true }), 'a%5Bb%5D');
- st.equal(qs.stringify({ a: { b: null } }, { strictNullHandling: false }), 'a%5Bb%5D=');
-
- st.end();
- });
-
- t.test('stringifies a null object', { skip: !Object.create }, function (st) {
- var obj = Object.create(null);
- obj.a = 'b';
- st.equal(qs.stringify(obj), 'a=b');
- st.end();
- });
-
- t.test('returns an empty string for invalid input', function (st) {
- st.equal(qs.stringify(undefined), '');
- st.equal(qs.stringify(false), '');
- st.equal(qs.stringify(null), '');
- st.equal(qs.stringify(''), '');
- st.end();
- });
-
- t.test('stringifies an object with a null object as a child', { skip: !Object.create }, function (st) {
- var obj = { a: Object.create(null) };
-
- obj.a.b = 'c';
- st.equal(qs.stringify(obj), 'a%5Bb%5D=c');
- st.end();
- });
-
- t.test('drops keys with a value of undefined', function (st) {
- st.equal(qs.stringify({ a: undefined }), '');
-
- st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: true }), 'a%5Bc%5D');
- st.equal(qs.stringify({ a: { b: undefined, c: null } }, { strictNullHandling: false }), 'a%5Bc%5D=');
- st.equal(qs.stringify({ a: { b: undefined, c: '' } }), 'a%5Bc%5D=');
- st.end();
- });
-
- t.test('url encodes values', function (st) {
- st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
- st.end();
- });
-
- t.test('stringifies a date', function (st) {
- var now = new Date();
- var str = 'a=' + encodeURIComponent(now.toISOString());
- st.equal(qs.stringify({ a: now }), str);
- st.end();
- });
-
- t.test('stringifies the weird object from qs', function (st) {
- st.equal(qs.stringify({ 'my weird field': '~q1!2"\'w$5&7/z8)?' }), 'my%20weird%20field=~q1%212%22%27w%245%267%2Fz8%29%3F');
- st.end();
- });
-
- t.test('skips properties that are part of the object prototype', function (st) {
- Object.prototype.crash = 'test';
- st.equal(qs.stringify({ a: 'b' }), 'a=b');
- st.equal(qs.stringify({ a: { b: 'c' } }), 'a%5Bb%5D=c');
- delete Object.prototype.crash;
- st.end();
- });
-
- t.test('stringifies boolean values', function (st) {
- st.equal(qs.stringify({ a: true }), 'a=true');
- st.equal(qs.stringify({ a: { b: true } }), 'a%5Bb%5D=true');
- st.equal(qs.stringify({ b: false }), 'b=false');
- st.equal(qs.stringify({ b: { c: false } }), 'b%5Bc%5D=false');
- st.end();
- });
-
- t.test('stringifies buffer values', function (st) {
- st.equal(qs.stringify({ a: SaferBuffer.from('test') }), 'a=test');
- st.equal(qs.stringify({ a: { b: SaferBuffer.from('test') } }), 'a%5Bb%5D=test');
- st.end();
- });
-
- t.test('stringifies an object using an alternative delimiter', function (st) {
- st.equal(qs.stringify({ a: 'b', c: 'd' }, { delimiter: ';' }), 'a=b;c=d');
- st.end();
- });
-
- t.test('doesn\'t blow up when Buffer global is missing', function (st) {
- var tempBuffer = global.Buffer;
- delete global.Buffer;
- var result = qs.stringify({ a: 'b', c: 'd' });
- global.Buffer = tempBuffer;
- st.equal(result, 'a=b&c=d');
- st.end();
- });
-
- t.test('selects properties when filter=array', function (st) {
- st.equal(qs.stringify({ a: 'b' }, { filter: ['a'] }), 'a=b');
- st.equal(qs.stringify({ a: 1 }, { filter: [] }), '');
-
- st.equal(
- qs.stringify(
- { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
- { filter: ['a', 'b', 0, 2], arrayFormat: 'indices' }
- ),
- 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3',
- 'indices => indices'
- );
- st.equal(
- qs.stringify(
- { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
- { filter: ['a', 'b', 0, 2], arrayFormat: 'brackets' }
- ),
- 'a%5Bb%5D%5B%5D=1&a%5Bb%5D%5B%5D=3',
- 'brackets => brackets'
- );
- st.equal(
- qs.stringify(
- { a: { b: [1, 2, 3, 4], c: 'd' }, c: 'f' },
- { filter: ['a', 'b', 0, 2] }
- ),
- 'a%5Bb%5D%5B0%5D=1&a%5Bb%5D%5B2%5D=3',
- 'default => indices'
- );
-
- st.end();
- });
-
- t.test('supports custom representations when filter=function', function (st) {
- var calls = 0;
- var obj = { a: 'b', c: 'd', e: { f: new Date(1257894000000) } };
- var filterFunc = function (prefix, value) {
- calls += 1;
- if (calls === 1) {
- st.equal(prefix, '', 'prefix is empty');
- st.equal(value, obj);
- } else if (prefix === 'c') {
- return void 0;
- } else if (value instanceof Date) {
- st.equal(prefix, 'e[f]');
- return value.getTime();
- }
- return value;
- };
-
- st.equal(qs.stringify(obj, { filter: filterFunc }), 'a=b&e%5Bf%5D=1257894000000');
- st.equal(calls, 5);
- st.end();
- });
-
- t.test('can disable uri encoding', function (st) {
- st.equal(qs.stringify({ a: 'b' }, { encode: false }), 'a=b');
- st.equal(qs.stringify({ a: { b: 'c' } }, { encode: false }), 'a[b]=c');
- st.equal(qs.stringify({ a: 'b', c: null }, { strictNullHandling: true, encode: false }), 'a=b&c');
- st.end();
- });
-
- t.test('can sort the keys', function (st) {
- var sort = function (a, b) {
- return a.localeCompare(b);
- };
- st.equal(qs.stringify({ a: 'c', z: 'y', b: 'f' }, { sort: sort }), 'a=c&b=f&z=y');
- st.equal(qs.stringify({ a: 'c', z: { j: 'a', i: 'b' }, b: 'f' }, { sort: sort }), 'a=c&b=f&z%5Bi%5D=b&z%5Bj%5D=a');
- st.end();
- });
-
- t.test('can sort the keys at depth 3 or more too', function (st) {
- var sort = function (a, b) {
- return a.localeCompare(b);
- };
- st.equal(
- qs.stringify(
- { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' },
- { sort: sort, encode: false }
- ),
- 'a=a&b=b&z[zi][zia]=zia&z[zi][zib]=zib&z[zj][zja]=zja&z[zj][zjb]=zjb'
- );
- st.equal(
- qs.stringify(
- { a: 'a', z: { zj: { zjb: 'zjb', zja: 'zja' }, zi: { zib: 'zib', zia: 'zia' } }, b: 'b' },
- { sort: null, encode: false }
- ),
- 'a=a&z[zj][zjb]=zjb&z[zj][zja]=zja&z[zi][zib]=zib&z[zi][zia]=zia&b=b'
- );
- st.end();
- });
-
- t.test('can stringify with custom encoding', function (st) {
- st.equal(qs.stringify({ 県: '大阪府', '': '' }, {
- encoder: function (str) {
- if (str.length === 0) {
- return '';
- }
- var buf = iconv.encode(str, 'shiftjis');
- var result = [];
- for (var i = 0; i < buf.length; ++i) {
- result.push(buf.readUInt8(i).toString(16));
- }
- return '%' + result.join('%');
- }
- }), '%8c%a7=%91%e5%8d%e3%95%7b&=');
- st.end();
- });
-
- t.test('receives the default encoder as a second argument', function (st) {
- st.plan(2);
- qs.stringify({ a: 1 }, {
- encoder: function (str, defaultEncoder) {
- st.equal(defaultEncoder, utils.encode);
- }
- });
- st.end();
- });
-
- t.test('throws error with wrong encoder', function (st) {
- st['throws'](function () {
- qs.stringify({}, { encoder: 'string' });
- }, new TypeError('Encoder has to be a function.'));
- st.end();
- });
-
- t.test('can use custom encoder for a buffer object', { skip: typeof Buffer === 'undefined' }, function (st) {
- st.equal(qs.stringify({ a: SaferBuffer.from([1]) }, {
- encoder: function (buffer) {
- if (typeof buffer === 'string') {
- return buffer;
- }
- return String.fromCharCode(buffer.readUInt8(0) + 97);
- }
- }), 'a=b');
- st.end();
- });
-
- t.test('serializeDate option', function (st) {
- var date = new Date();
- st.equal(
- qs.stringify({ a: date }),
- 'a=' + date.toISOString().replace(/:/g, '%3A'),
- 'default is toISOString'
- );
-
- var mutatedDate = new Date();
- mutatedDate.toISOString = function () {
- throw new SyntaxError();
- };
- st['throws'](function () {
- mutatedDate.toISOString();
- }, SyntaxError);
- st.equal(
- qs.stringify({ a: mutatedDate }),
- 'a=' + Date.prototype.toISOString.call(mutatedDate).replace(/:/g, '%3A'),
- 'toISOString works even when method is not locally present'
- );
-
- var specificDate = new Date(6);
- st.equal(
- qs.stringify(
- { a: specificDate },
- { serializeDate: function (d) { return d.getTime() * 7; } }
- ),
- 'a=42',
- 'custom serializeDate function called'
- );
-
- st.end();
- });
-
- t.test('RFC 1738 spaces serialization', function (st) {
- st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC1738 }), 'a=b+c');
- st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC1738 }), 'a+b=c+d');
- st.end();
- });
-
- t.test('RFC 3986 spaces serialization', function (st) {
- st.equal(qs.stringify({ a: 'b c' }, { format: qs.formats.RFC3986 }), 'a=b%20c');
- st.equal(qs.stringify({ 'a b': 'c d' }, { format: qs.formats.RFC3986 }), 'a%20b=c%20d');
- st.end();
- });
-
- t.test('Backward compatibility to RFC 3986', function (st) {
- st.equal(qs.stringify({ a: 'b c' }), 'a=b%20c');
- st.end();
- });
-
- t.test('Edge cases and unknown formats', function (st) {
- ['UFO1234', false, 1234, null, {}, []].forEach(
- function (format) {
- st['throws'](
- function () {
- qs.stringify({ a: 'b c' }, { format: format });
- },
- new TypeError('Unknown format option provided.')
- );
- }
- );
- st.end();
- });
-
- t.test('encodeValuesOnly', function (st) {
- st.equal(
- qs.stringify(
- { a: 'b', c: ['d', 'e=f'], f: [['g'], ['h']] },
- { encodeValuesOnly: true }
- ),
- 'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h'
- );
- st.equal(
- qs.stringify(
- { a: 'b', c: ['d', 'e'], f: [['g'], ['h']] }
- ),
- 'a=b&c%5B0%5D=d&c%5B1%5D=e&f%5B0%5D%5B0%5D=g&f%5B1%5D%5B0%5D=h'
- );
- st.end();
- });
-
- t.test('encodeValuesOnly - strictNullHandling', function (st) {
- st.equal(
- qs.stringify(
- { a: { b: null } },
- { encodeValuesOnly: true, strictNullHandling: true }
- ),
- 'a[b]'
- );
- st.end();
- });
-
- t.test('does not mutate the options argument', function (st) {
- var options = {};
- qs.stringify({}, options);
- st.deepEqual(options, {});
- st.end();
- });
-
- t.end();
-});
diff --git a/node_modules/qs/test/utils.js b/node_modules/qs/test/utils.js
deleted file mode 100644
index eff4011..0000000
--- a/node_modules/qs/test/utils.js
+++ /dev/null
@@ -1,34 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var utils = require('../lib/utils');
-
-test('merge()', function (t) {
- t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key');
-
- var oneMerged = utils.merge({ foo: 'bar' }, { foo: { first: '123' } });
- t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into an array');
-
- var twoMerged = utils.merge({ foo: ['bar', { first: '123' }] }, { foo: { second: '456' } });
- t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standalone and two objects into an array');
-
- var sandwiched = utils.merge({ foo: ['bar', { first: '123', second: '456' }] }, { foo: 'baz' });
- t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an object sandwiched by two standalones into an array');
-
- var nestedArrays = utils.merge({ foo: ['baz'] }, { foo: ['bar', 'xyzzy'] });
- t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] });
-
- t.end();
-});
-
-test('assign()', function (t) {
- var target = { a: 1, b: 2 };
- var source = { b: 3, c: 4 };
- var result = utils.assign(target, source);
-
- t.equal(result, target, 'returns the target');
- t.deepEqual(target, { a: 1, b: 3, c: 4 }, 'target and source are merged');
- t.deepEqual(source, { b: 3, c: 4 }, 'source is untouched');
-
- t.end();
-});
diff --git a/node_modules/read-pkg-up/index.js b/node_modules/read-pkg-up/index.js
deleted file mode 100644
index beb3d48..0000000
--- a/node_modules/read-pkg-up/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-var findUp = require('find-up');
-var readPkg = require('read-pkg');
-
-module.exports = function (opts) {
- return findUp('package.json', opts).then(function (fp) {
- if (!fp) {
- return {};
- }
-
- return readPkg(fp, opts).then(function (pkg) {
- return {
- pkg: pkg,
- path: fp
- };
- });
- });
-};
-
-module.exports.sync = function (opts) {
- var fp = findUp.sync('package.json', opts);
-
- if (!fp) {
- return {};
- }
-
- return {
- pkg: readPkg.sync(fp, opts),
- path: fp
- };
-};
diff --git a/node_modules/read-pkg-up/license b/node_modules/read-pkg-up/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/read-pkg-up/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/read-pkg-up/package.json b/node_modules/read-pkg-up/package.json
deleted file mode 100644
index 557f35e..0000000
--- a/node_modules/read-pkg-up/package.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "_from": "read-pkg-up@^1.0.1",
- "_id": "read-pkg-up@1.0.1",
- "_inBundle": false,
- "_integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
- "_location": "/read-pkg-up",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "read-pkg-up@^1.0.1",
- "name": "read-pkg-up",
- "escapedName": "read-pkg-up",
- "rawSpec": "^1.0.1",
- "saveSpec": null,
- "fetchSpec": "^1.0.1"
- },
- "_requiredBy": [
- "/meow",
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
- "_shasum": "9d63c13276c065918d57f002a57f40a1b643fb02",
- "_spec": "read-pkg-up@^1.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/read-pkg-up/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "find-up": "^1.0.0",
- "read-pkg": "^1.0.0"
- },
- "deprecated": false,
- "description": "Read the closest package.json file",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/read-pkg-up#readme",
- "keywords": [
- "json",
- "read",
- "parse",
- "file",
- "fs",
- "graceful",
- "load",
- "pkg",
- "package",
- "find",
- "up",
- "find-up",
- "findup",
- "look-up",
- "look",
- "file",
- "search",
- "match",
- "package",
- "resolve",
- "parent",
- "parents",
- "folder",
- "directory",
- "dir",
- "walk",
- "walking",
- "path"
- ],
- "license": "MIT",
- "name": "read-pkg-up",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/read-pkg-up.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/read-pkg-up/readme.md b/node_modules/read-pkg-up/readme.md
deleted file mode 100644
index dbd88f3..0000000
--- a/node_modules/read-pkg-up/readme.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# read-pkg-up [![Build Status](https://travis-ci.org/sindresorhus/read-pkg-up.svg?branch=master)](https://travis-ci.org/sindresorhus/read-pkg-up)
-
-> Read the closest package.json file
-
-
-## Why
-
-- [Finds the closest package.json](https://github.com/sindresorhus/find-up)
-- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs)
-- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom)
-- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)
-- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)
-
-
-## Install
-
-```
-$ npm install --save read-pkg-up
-```
-
-
-## Usage
-
-```js
-var readPkgUp = require('read-pkg-up');
-
-readPkgUp().then(function (result) {
- console.log(result);
- /*
- {
- pkg: {
- name: 'awesome-package',
- version: '1.0.0',
- ...
- },
- path: '/Users/sindresorhus/dev/awesome-package'
- }
- */
-});
-```
-
-
-## API
-
-### readPkgUp([options])
-
-Returns a promise that resolves to a result object.
-
-### readPkgUp.sync([options])
-
-Returns a result object.
-
-#### options
-
-##### cwd
-
-Type: `string`
-Default: `.`
-
-Directory to start looking for a package.json file.
-
-##### normalize
-
-Type: `boolean`
-Default: `true`
-
-[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.
-
-
-## Related
-
-- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a package.json file
-- [find-up](https://github.com/sindresorhus/find-up) - Find a file by walking up parent directories
-- [pkg-conf](https://github.com/sindresorhus/pkg-conf) - Get namespaced config from the closest package.json
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/read-pkg/index.js b/node_modules/read-pkg/index.js
deleted file mode 100644
index c5c3afa..0000000
--- a/node_modules/read-pkg/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-'use strict';
-var path = require('path');
-var loadJsonFile = require('load-json-file');
-var normalizePackageData = require('normalize-package-data');
-var pathType = require('path-type');
-
-module.exports = function (fp, opts) {
- if (typeof fp !== 'string') {
- opts = fp;
- fp = '.';
- }
-
- opts = opts || {};
-
- return pathType.dir(fp)
- .then(function (isDir) {
- if (isDir) {
- fp = path.join(fp, 'package.json');
- }
-
- return loadJsonFile(fp);
- })
- .then(function (x) {
- if (opts.normalize !== false) {
- normalizePackageData(x);
- }
-
- return x;
- });
-};
-
-module.exports.sync = function (fp, opts) {
- if (typeof fp !== 'string') {
- opts = fp;
- fp = '.';
- }
-
- opts = opts || {};
- fp = pathType.dirSync(fp) ? path.join(fp, 'package.json') : fp;
-
- var x = loadJsonFile.sync(fp);
-
- if (opts.normalize !== false) {
- normalizePackageData(x);
- }
-
- return x;
-};
diff --git a/node_modules/read-pkg/license b/node_modules/read-pkg/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/read-pkg/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/read-pkg/package.json b/node_modules/read-pkg/package.json
deleted file mode 100644
index e4c1aeb..0000000
--- a/node_modules/read-pkg/package.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "_from": "read-pkg@^1.0.0",
- "_id": "read-pkg@1.1.0",
- "_inBundle": false,
- "_integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
- "_location": "/read-pkg",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "read-pkg@^1.0.0",
- "name": "read-pkg",
- "escapedName": "read-pkg",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/read-pkg-up"
- ],
- "_resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
- "_shasum": "f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28",
- "_spec": "read-pkg@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/read-pkg-up",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/read-pkg/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "load-json-file": "^1.0.0",
- "normalize-package-data": "^2.3.2",
- "path-type": "^1.0.0"
- },
- "deprecated": false,
- "description": "Read a package.json file",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/read-pkg#readme",
- "keywords": [
- "json",
- "read",
- "parse",
- "file",
- "fs",
- "graceful",
- "load",
- "pkg",
- "package",
- "normalize"
- ],
- "license": "MIT",
- "name": "read-pkg",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/read-pkg.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.1.0"
-}
diff --git a/node_modules/read-pkg/readme.md b/node_modules/read-pkg/readme.md
deleted file mode 100644
index 9a0d4cc..0000000
--- a/node_modules/read-pkg/readme.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# read-pkg [![Build Status](https://travis-ci.org/sindresorhus/read-pkg.svg?branch=master)](https://travis-ci.org/sindresorhus/read-pkg)
-
-> Read a package.json file
-
-
-## Why
-
-- [Gracefully handles filesystem issues](https://github.com/isaacs/node-graceful-fs)
-- [Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom)
-- [Throws more helpful JSON errors](https://github.com/sindresorhus/parse-json)
-- [Normalizes the data](https://github.com/npm/normalize-package-data#what-normalization-currently-entails)
-
-
-## Install
-
-```
-$ npm install --save read-pkg
-```
-
-
-## Usage
-
-```js
-var readPkg = require('read-pkg');
-
-readPkg().then(function (pkg) {
- console.log(pkg);
- //=> {name: 'read-pkg', ...}
-});
-
-readPkg(__dirname).then(function (pkg) {
- console.log(pkg);
- //=> {name: 'read-pkg', ...}
-});
-
-readPkg(path.join('unicorn', 'package.json')).then(function (pkg) {
- console.log(pkg);
- //=> {name: 'read-pkg', ...}
-});
-```
-
-
-## API
-
-### readPkg([path], [options])
-
-Returns a promise that resolves to the parsed JSON.
-
-### readPkg.sync([path], [options])
-
-Returns the parsed JSON.
-
-#### path
-
-Type: `string`
-Default: `.`
-
-Path to a `package.json` file or its directory.
-
-#### options
-
-##### normalize
-
-Type: `boolean`
-Default: `true`
-
-[Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data.
-
-
-## Related
-
-- [read-pkg-up](https://github.com/sindresorhus/read-pkg-up) - Read the closest package.json file
-- [write-pkg](https://github.com/sindresorhus/write-pkg) - Write a `package.json` file
-- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/readable-stream/.travis.yml b/node_modules/readable-stream/.travis.yml
deleted file mode 100644
index f62cdac..0000000
--- a/node_modules/readable-stream/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-sudo: false
-language: node_js
-before_install:
- - (test $NPM_LEGACY && npm install -g npm@2 && npm install -g npm@3) || true
-notifications:
- email: false
-matrix:
- fast_finish: true
- include:
- - node_js: '0.8'
- env: NPM_LEGACY=true
- - node_js: '0.10'
- env: NPM_LEGACY=true
- - node_js: '0.11'
- env: NPM_LEGACY=true
- - node_js: '0.12'
- env: NPM_LEGACY=true
- - node_js: 1
- env: NPM_LEGACY=true
- - node_js: 2
- env: NPM_LEGACY=true
- - node_js: 3
- env: NPM_LEGACY=true
- - node_js: 4
- - node_js: 5
- - node_js: 6
- - node_js: 7
- - node_js: 8
- - node_js: 9
-script: "npm run test"
-env:
- global:
- - secure: rE2Vvo7vnjabYNULNyLFxOyt98BoJexDqsiOnfiD6kLYYsiQGfr/sbZkPMOFm9qfQG7pjqx+zZWZjGSswhTt+626C0t/njXqug7Yps4c3dFblzGfreQHp7wNX5TFsvrxd6dAowVasMp61sJcRnB2w8cUzoe3RAYUDHyiHktwqMc=
- - secure: g9YINaKAdMatsJ28G9jCGbSaguXCyxSTy+pBO6Ch0Cf57ZLOTka3HqDj8p3nV28LUIHZ3ut5WO43CeYKwt4AUtLpBS3a0dndHdY6D83uY6b2qh5hXlrcbeQTq2cvw2y95F7hm4D1kwrgZ7ViqaKggRcEupAL69YbJnxeUDKWEdI=
diff --git a/node_modules/readable-stream/CONTRIBUTING.md b/node_modules/readable-stream/CONTRIBUTING.md
deleted file mode 100644
index f478d58..0000000
--- a/node_modules/readable-stream/CONTRIBUTING.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Developer's Certificate of Origin 1.1
-
-By making a contribution to this project, I certify that:
-
-* (a) The contribution was created in whole or in part by me and I
- have the right to submit it under the open source license
- indicated in the file; or
-
-* (b) The contribution is based upon previous work that, to the best
- of my knowledge, is covered under an appropriate open source
- license and I have the right under that license to submit that
- work with modifications, whether created in whole or in part
- by me, under the same open source license (unless I am
- permitted to submit under a different license), as indicated
- in the file; or
-
-* (c) The contribution was provided directly to me by some other
- person who certified (a), (b) or (c) and I have not modified
- it.
-
-* (d) I understand and agree that this project and the contribution
- are public and that a record of the contribution (including all
- personal information I submit with it, including my sign-off) is
- maintained indefinitely and may be redistributed consistent with
- this project or the open source license(s) involved.
-
-## Moderation Policy
-
-The [Node.js Moderation Policy] applies to this WG.
-
-## Code of Conduct
-
-The [Node.js Code of Conduct][] applies to this WG.
-
-[Node.js Code of Conduct]:
-https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md
-[Node.js Moderation Policy]:
-https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md
diff --git a/node_modules/readable-stream/GOVERNANCE.md b/node_modules/readable-stream/GOVERNANCE.md
deleted file mode 100644
index 16ffb93..0000000
--- a/node_modules/readable-stream/GOVERNANCE.md
+++ /dev/null
@@ -1,136 +0,0 @@
-### Streams Working Group
-
-The Node.js Streams is jointly governed by a Working Group
-(WG)
-that is responsible for high-level guidance of the project.
-
-The WG has final authority over this project including:
-
-* Technical direction
-* Project governance and process (including this policy)
-* Contribution policy
-* GitHub repository hosting
-* Conduct guidelines
-* Maintaining the list of additional Collaborators
-
-For the current list of WG members, see the project
-[README.md](./README.md#current-project-team-members).
-
-### Collaborators
-
-The readable-stream GitHub repository is
-maintained by the WG and additional Collaborators who are added by the
-WG on an ongoing basis.
-
-Individuals making significant and valuable contributions are made
-Collaborators and given commit-access to the project. These
-individuals are identified by the WG and their addition as
-Collaborators is discussed during the WG meeting.
-
-_Note:_ If you make a significant contribution and are not considered
-for commit-access log an issue or contact a WG member directly and it
-will be brought up in the next WG meeting.
-
-Modifications of the contents of the readable-stream repository are
-made on
-a collaborative basis. Anybody with a GitHub account may propose a
-modification via pull request and it will be considered by the project
-Collaborators. All pull requests must be reviewed and accepted by a
-Collaborator with sufficient expertise who is able to take full
-responsibility for the change. In the case of pull requests proposed
-by an existing Collaborator, an additional Collaborator is required
-for sign-off. Consensus should be sought if additional Collaborators
-participate and there is disagreement around a particular
-modification. See _Consensus Seeking Process_ below for further detail
-on the consensus model used for governance.
-
-Collaborators may opt to elevate significant or controversial
-modifications, or modifications that have not found consensus to the
-WG for discussion by assigning the ***WG-agenda*** tag to a pull
-request or issue. The WG should serve as the final arbiter where
-required.
-
-For the current list of Collaborators, see the project
-[README.md](./README.md#members).
-
-### WG Membership
-
-WG seats are not time-limited. There is no fixed size of the WG.
-However, the expected target is between 6 and 12, to ensure adequate
-coverage of important areas of expertise, balanced with the ability to
-make decisions efficiently.
-
-There is no specific set of requirements or qualifications for WG
-membership beyond these rules.
-
-The WG may add additional members to the WG by unanimous consensus.
-
-A WG member may be removed from the WG by voluntary resignation, or by
-unanimous consensus of all other WG members.
-
-Changes to WG membership should be posted in the agenda, and may be
-suggested as any other agenda item (see "WG Meetings" below).
-
-If an addition or removal is proposed during a meeting, and the full
-WG is not in attendance to participate, then the addition or removal
-is added to the agenda for the subsequent meeting. This is to ensure
-that all members are given the opportunity to participate in all
-membership decisions. If a WG member is unable to attend a meeting
-where a planned membership decision is being made, then their consent
-is assumed.
-
-No more than 1/3 of the WG members may be affiliated with the same
-employer. If removal or resignation of a WG member, or a change of
-employment by a WG member, creates a situation where more than 1/3 of
-the WG membership shares an employer, then the situation must be
-immediately remedied by the resignation or removal of one or more WG
-members affiliated with the over-represented employer(s).
-
-### WG Meetings
-
-The WG meets occasionally on a Google Hangout On Air. A designated moderator
-approved by the WG runs the meeting. Each meeting should be
-published to YouTube.
-
-Items are added to the WG agenda that are considered contentious or
-are modifications of governance, contribution policy, WG membership,
-or release process.
-
-The intention of the agenda is not to approve or review all patches;
-that should happen continuously on GitHub and be handled by the larger
-group of Collaborators.
-
-Any community member or contributor can ask that something be added to
-the next meeting's agenda by logging a GitHub Issue. Any Collaborator,
-WG member or the moderator can add the item to the agenda by adding
-the ***WG-agenda*** tag to the issue.
-
-Prior to each WG meeting the moderator will share the Agenda with
-members of the WG. WG members can add any items they like to the
-agenda at the beginning of each meeting. The moderator and the WG
-cannot veto or remove items.
-
-The WG may invite persons or representatives from certain projects to
-participate in a non-voting capacity.
-
-The moderator is responsible for summarizing the discussion of each
-agenda item and sends it as a pull request after the meeting.
-
-### Consensus Seeking Process
-
-The WG follows a
-[Consensus
-Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making)
-decision-making model.
-
-When an agenda item has appeared to reach a consensus the moderator
-will ask "Does anyone object?" as a final call for dissent from the
-consensus.
-
-If an agenda item cannot reach a consensus a WG member can call for
-either a closing vote or a vote to table the issue to the next
-meeting. The call for a vote must be seconded by a majority of the WG
-or else the discussion will continue. Simple majority wins.
-
-Note that changes to WG membership require a majority consensus. See
-"WG Membership" above.
diff --git a/node_modules/readable-stream/LICENSE b/node_modules/readable-stream/LICENSE
deleted file mode 100644
index 2873b3b..0000000
--- a/node_modules/readable-stream/LICENSE
+++ /dev/null
@@ -1,47 +0,0 @@
-Node.js is licensed for use as follows:
-
-"""
-Copyright Node.js contributors. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
-"""
-
-This license applies to parts of Node.js originating from the
-https://github.com/joyent/node repository:
-
-"""
-Copyright Joyent, Inc. and other Node contributors. All rights reserved.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
-"""
diff --git a/node_modules/readable-stream/README.md b/node_modules/readable-stream/README.md
deleted file mode 100644
index 23fe3f3..0000000
--- a/node_modules/readable-stream/README.md
+++ /dev/null
@@ -1,58 +0,0 @@
-# readable-stream
-
-***Node-core v8.11.1 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream)
-
-
-[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/)
-[![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/)
-
-
-[![Sauce Test Status](https://saucelabs.com/browser-matrix/readable-stream.svg)](https://saucelabs.com/u/readable-stream)
-
-```bash
-npm install --save readable-stream
-```
-
-***Node-core streams for userland***
-
-This package is a mirror of the Streams2 and Streams3 implementations in
-Node-core.
-
-Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v8.11.1/docs/api/stream.html).
-
-If you want to guarantee a stable streams base, regardless of what version of
-Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html).
-
-As of version 2.0.0 **readable-stream** uses semantic versioning.
-
-# Streams Working Group
-
-`readable-stream` is maintained by the Streams Working Group, which
-oversees the development and maintenance of the Streams API within
-Node.js. The responsibilities of the Streams Working Group include:
-
-* Addressing stream issues on the Node.js issue tracker.
-* Authoring and editing stream documentation within the Node.js project.
-* Reviewing changes to stream subclasses within the Node.js project.
-* Redirecting changes to streams from the Node.js project to this
- project.
-* Assisting in the implementation of stream providers within Node.js.
-* Recommending versions of `readable-stream` to be included in Node.js.
-* Messaging about the future of streams to give the community advance
- notice of changes.
-
-<a name="members"></a>
-## Team Members
-
-* **Chris Dickinson** ([@chrisdickinson](https://github.com/chrisdickinson)) &lt;christopher.s.dickinson@gmail.com&gt;
- - Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B
-* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) &lt;calvin.metcalf@gmail.com&gt;
- - Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242
-* **Rod Vagg** ([@rvagg](https://github.com/rvagg)) &lt;rod@vagg.org&gt;
- - Release GPG key: DD8F2338BAE7501E3DD5AC78C273792F7D83545D
-* **Sam Newman** ([@sonewman](https://github.com/sonewman)) &lt;newmansam@outlook.com&gt;
-* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) &lt;mathiasbuus@gmail.com&gt;
-* **Domenic Denicola** ([@domenic](https://github.com/domenic)) &lt;d@domenic.me&gt;
-* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) &lt;matteo.collina@gmail.com&gt;
- - Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E
-* **Irina Shestak** ([@lrlna](https://github.com/lrlna)) &lt;shestak.irina@gmail.com&gt;
diff --git a/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md b/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md
deleted file mode 100644
index 83275f1..0000000
--- a/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# streams WG Meeting 2015-01-30
-
-## Links
-
-* **Google Hangouts Video**: http://www.youtube.com/watch?v=I9nDOSGfwZg
-* **GitHub Issue**: https://github.com/iojs/readable-stream/issues/106
-* **Original Minutes Google Doc**: https://docs.google.com/document/d/17aTgLnjMXIrfjgNaTUnHQO7m3xgzHR2VXBTmi03Qii4/
-
-## Agenda
-
-Extracted from https://github.com/iojs/readable-stream/labels/wg-agenda prior to meeting.
-
-* adopt a charter [#105](https://github.com/iojs/readable-stream/issues/105)
-* release and versioning strategy [#101](https://github.com/iojs/readable-stream/issues/101)
-* simpler stream creation [#102](https://github.com/iojs/readable-stream/issues/102)
-* proposal: deprecate implicit flowing of streams [#99](https://github.com/iojs/readable-stream/issues/99)
-
-## Minutes
-
-### adopt a charter
-
-* group: +1's all around
-
-### What versioning scheme should be adopted?
-* group: +1’s 3.0.0
-* domenic+group: pulling in patches from other sources where appropriate
-* mikeal: version independently, suggesting versions for io.js
-* mikeal+domenic: work with TC to notify in advance of changes
-simpler stream creation
-
-### streamline creation of streams
-* sam: streamline creation of streams
-* domenic: nice simple solution posted
- but, we lose the opportunity to change the model
- may not be backwards incompatible (double check keys)
-
- **action item:** domenic will check
-
-### remove implicit flowing of streams on(‘data’)
-* add isFlowing / isPaused
-* mikeal: worrying that we’re documenting polyfill methods – confuses users
-* domenic: more reflective API is probably good, with warning labels for users
-* new section for mad scientists (reflective stream access)
-* calvin: name the “third state”
-* mikeal: maybe borrow the name from whatwg?
-* domenic: we’re missing the “third state”
-* consensus: kind of difficult to name the third state
-* mikeal: figure out differences in states / compat
-* mathias: always flow on data – eliminates third state
- * explore what it breaks
-
-**action items:**
-* ask isaac for ability to list packages by what public io.js APIs they use (esp. Stream)
-* ask rod/build for infrastructure
-* **chris**: explore the “flow on data” approach
-* add isPaused/isFlowing
-* add new docs section
-* move isPaused to that section
-
-
diff --git a/node_modules/readable-stream/duplex-browser.js b/node_modules/readable-stream/duplex-browser.js
deleted file mode 100644
index f8b2db8..0000000
--- a/node_modules/readable-stream/duplex-browser.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./lib/_stream_duplex.js');
diff --git a/node_modules/readable-stream/duplex.js b/node_modules/readable-stream/duplex.js
deleted file mode 100644
index 46924cb..0000000
--- a/node_modules/readable-stream/duplex.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./readable').Duplex
diff --git a/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/readable-stream/lib/_stream_duplex.js
deleted file mode 100644
index 57003c3..0000000
--- a/node_modules/readable-stream/lib/_stream_duplex.js
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// a duplex stream is just a stream that is both readable and writable.
-// Since JS doesn't have multiple prototypal inheritance, this class
-// prototypally inherits from Readable, and then parasitically from
-// Writable.
-
-'use strict';
-
-/*<replacement>*/
-
-var pna = require('process-nextick-args');
-/*</replacement>*/
-
-/*<replacement>*/
-var objectKeys = Object.keys || function (obj) {
- var keys = [];
- for (var key in obj) {
- keys.push(key);
- }return keys;
-};
-/*</replacement>*/
-
-module.exports = Duplex;
-
-/*<replacement>*/
-var util = Object.create(require('core-util-is'));
-util.inherits = require('inherits');
-/*</replacement>*/
-
-var Readable = require('./_stream_readable');
-var Writable = require('./_stream_writable');
-
-util.inherits(Duplex, Readable);
-
-{
- // avoid scope creep, the keys array can then be collected
- var keys = objectKeys(Writable.prototype);
- for (var v = 0; v < keys.length; v++) {
- var method = keys[v];
- if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
- }
-}
-
-function Duplex(options) {
- if (!(this instanceof Duplex)) return new Duplex(options);
-
- Readable.call(this, options);
- Writable.call(this, options);
-
- if (options && options.readable === false) this.readable = false;
-
- if (options && options.writable === false) this.writable = false;
-
- this.allowHalfOpen = true;
- if (options && options.allowHalfOpen === false) this.allowHalfOpen = false;
-
- this.once('end', onend);
-}
-
-Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
- // making it explicit this property is not enumerable
- // because otherwise some prototype manipulation in
- // userland will fail
- enumerable: false,
- get: function () {
- return this._writableState.highWaterMark;
- }
-});
-
-// the no-half-open enforcer
-function onend() {
- // if we allow half-open state, or if the writable side ended,
- // then we're ok.
- if (this.allowHalfOpen || this._writableState.ended) return;
-
- // no more data can be written.
- // But allow more writes to happen in this tick.
- pna.nextTick(onEndNT, this);
-}
-
-function onEndNT(self) {
- self.end();
-}
-
-Object.defineProperty(Duplex.prototype, 'destroyed', {
- get: function () {
- if (this._readableState === undefined || this._writableState === undefined) {
- return false;
- }
- return this._readableState.destroyed && this._writableState.destroyed;
- },
- set: function (value) {
- // we ignore the value if the stream
- // has not been initialized yet
- if (this._readableState === undefined || this._writableState === undefined) {
- return;
- }
-
- // backward compatibility, the user is explicitly
- // managing destroyed
- this._readableState.destroyed = value;
- this._writableState.destroyed = value;
- }
-});
-
-Duplex.prototype._destroy = function (err, cb) {
- this.push(null);
- this.end();
-
- pna.nextTick(cb, err);
-}; \ No newline at end of file
diff --git a/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/readable-stream/lib/_stream_passthrough.js
deleted file mode 100644
index 612edb4..0000000
--- a/node_modules/readable-stream/lib/_stream_passthrough.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// a passthrough stream.
-// basically just the most minimal sort of Transform stream.
-// Every written chunk gets output as-is.
-
-'use strict';
-
-module.exports = PassThrough;
-
-var Transform = require('./_stream_transform');
-
-/*<replacement>*/
-var util = Object.create(require('core-util-is'));
-util.inherits = require('inherits');
-/*</replacement>*/
-
-util.inherits(PassThrough, Transform);
-
-function PassThrough(options) {
- if (!(this instanceof PassThrough)) return new PassThrough(options);
-
- Transform.call(this, options);
-}
-
-PassThrough.prototype._transform = function (chunk, encoding, cb) {
- cb(null, chunk);
-}; \ No newline at end of file
diff --git a/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/readable-stream/lib/_stream_readable.js
deleted file mode 100644
index 0f80764..0000000
--- a/node_modules/readable-stream/lib/_stream_readable.js
+++ /dev/null
@@ -1,1019 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-'use strict';
-
-/*<replacement>*/
-
-var pna = require('process-nextick-args');
-/*</replacement>*/
-
-module.exports = Readable;
-
-/*<replacement>*/
-var isArray = require('isarray');
-/*</replacement>*/
-
-/*<replacement>*/
-var Duplex;
-/*</replacement>*/
-
-Readable.ReadableState = ReadableState;
-
-/*<replacement>*/
-var EE = require('events').EventEmitter;
-
-var EElistenerCount = function (emitter, type) {
- return emitter.listeners(type).length;
-};
-/*</replacement>*/
-
-/*<replacement>*/
-var Stream = require('./internal/streams/stream');
-/*</replacement>*/
-
-/*<replacement>*/
-
-var Buffer = require('safe-buffer').Buffer;
-var OurUint8Array = global.Uint8Array || function () {};
-function _uint8ArrayToBuffer(chunk) {
- return Buffer.from(chunk);
-}
-function _isUint8Array(obj) {
- return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
-}
-
-/*</replacement>*/
-
-/*<replacement>*/
-var util = Object.create(require('core-util-is'));
-util.inherits = require('inherits');
-/*</replacement>*/
-
-/*<replacement>*/
-var debugUtil = require('util');
-var debug = void 0;
-if (debugUtil && debugUtil.debuglog) {
- debug = debugUtil.debuglog('stream');
-} else {
- debug = function () {};
-}
-/*</replacement>*/
-
-var BufferList = require('./internal/streams/BufferList');
-var destroyImpl = require('./internal/streams/destroy');
-var StringDecoder;
-
-util.inherits(Readable, Stream);
-
-var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
-
-function prependListener(emitter, event, fn) {
- // Sadly this is not cacheable as some libraries bundle their own
- // event emitter implementation with them.
- if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);
-
- // This is a hack to make sure that our error handler is attached before any
- // userland ones. NEVER DO THIS. This is here only because this code needs
- // to continue to work with older versions of Node.js that do not include
- // the prependListener() method. The goal is to eventually remove this hack.
- if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
-}
-
-function ReadableState(options, stream) {
- Duplex = Duplex || require('./_stream_duplex');
-
- options = options || {};
-
- // Duplex streams are both readable and writable, but share
- // the same options object.
- // However, some cases require setting options to different
- // values for the readable and the writable sides of the duplex stream.
- // These options can be provided separately as readableXXX and writableXXX.
- var isDuplex = stream instanceof Duplex;
-
- // object stream flag. Used to make read(n) ignore n and to
- // make all the buffer merging and length checks go away
- this.objectMode = !!options.objectMode;
-
- if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
-
- // the point at which it stops calling _read() to fill the buffer
- // Note: 0 is a valid value, means "don't call _read preemptively ever"
- var hwm = options.highWaterMark;
- var readableHwm = options.readableHighWaterMark;
- var defaultHwm = this.objectMode ? 16 : 16 * 1024;
-
- if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm;
-
- // cast to ints.
- this.highWaterMark = Math.floor(this.highWaterMark);
-
- // A linked list is used to store data chunks instead of an array because the
- // linked list can remove elements from the beginning faster than
- // array.shift()
- this.buffer = new BufferList();
- this.length = 0;
- this.pipes = null;
- this.pipesCount = 0;
- this.flowing = null;
- this.ended = false;
- this.endEmitted = false;
- this.reading = false;
-
- // a flag to be able to tell if the event 'readable'/'data' is emitted
- // immediately, or on a later tick. We set this to true at first, because
- // any actions that shouldn't happen until "later" should generally also
- // not happen before the first read call.
- this.sync = true;
-
- // whenever we return null, then we set a flag to say
- // that we're awaiting a 'readable' event emission.
- this.needReadable = false;
- this.emittedReadable = false;
- this.readableListening = false;
- this.resumeScheduled = false;
-
- // has it been destroyed
- this.destroyed = false;
-
- // Crypto is kind of old and crusty. Historically, its default string
- // encoding is 'binary' so we have to make this configurable.
- // Everything else in the universe uses 'utf8', though.
- this.defaultEncoding = options.defaultEncoding || 'utf8';
-
- // the number of writers that are awaiting a drain event in .pipe()s
- this.awaitDrain = 0;
-
- // if true, a maybeReadMore has been scheduled
- this.readingMore = false;
-
- this.decoder = null;
- this.encoding = null;
- if (options.encoding) {
- if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
- this.decoder = new StringDecoder(options.encoding);
- this.encoding = options.encoding;
- }
-}
-
-function Readable(options) {
- Duplex = Duplex || require('./_stream_duplex');
-
- if (!(this instanceof Readable)) return new Readable(options);
-
- this._readableState = new ReadableState(options, this);
-
- // legacy
- this.readable = true;
-
- if (options) {
- if (typeof options.read === 'function') this._read = options.read;
-
- if (typeof options.destroy === 'function') this._destroy = options.destroy;
- }
-
- Stream.call(this);
-}
-
-Object.defineProperty(Readable.prototype, 'destroyed', {
- get: function () {
- if (this._readableState === undefined) {
- return false;
- }
- return this._readableState.destroyed;
- },
- set: function (value) {
- // we ignore the value if the stream
- // has not been initialized yet
- if (!this._readableState) {
- return;
- }
-
- // backward compatibility, the user is explicitly
- // managing destroyed
- this._readableState.destroyed = value;
- }
-});
-
-Readable.prototype.destroy = destroyImpl.destroy;
-Readable.prototype._undestroy = destroyImpl.undestroy;
-Readable.prototype._destroy = function (err, cb) {
- this.push(null);
- cb(err);
-};
-
-// Manually shove something into the read() buffer.
-// This returns true if the highWaterMark has not been hit yet,
-// similar to how Writable.write() returns true if you should
-// write() some more.
-Readable.prototype.push = function (chunk, encoding) {
- var state = this._readableState;
- var skipChunkCheck;
-
- if (!state.objectMode) {
- if (typeof chunk === 'string') {
- encoding = encoding || state.defaultEncoding;
- if (encoding !== state.encoding) {
- chunk = Buffer.from(chunk, encoding);
- encoding = '';
- }
- skipChunkCheck = true;
- }
- } else {
- skipChunkCheck = true;
- }
-
- return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
-};
-
-// Unshift should *always* be something directly out of read()
-Readable.prototype.unshift = function (chunk) {
- return readableAddChunk(this, chunk, null, true, false);
-};
-
-function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
- var state = stream._readableState;
- if (chunk === null) {
- state.reading = false;
- onEofChunk(stream, state);
- } else {
- var er;
- if (!skipChunkCheck) er = chunkInvalid(state, chunk);
- if (er) {
- stream.emit('error', er);
- } else if (state.objectMode || chunk && chunk.length > 0) {
- if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {
- chunk = _uint8ArrayToBuffer(chunk);
- }
-
- if (addToFront) {
- if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true);
- } else if (state.ended) {
- stream.emit('error', new Error('stream.push() after EOF'));
- } else {
- state.reading = false;
- if (state.decoder && !encoding) {
- chunk = state.decoder.write(chunk);
- if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);
- } else {
- addChunk(stream, state, chunk, false);
- }
- }
- } else if (!addToFront) {
- state.reading = false;
- }
- }
-
- return needMoreData(state);
-}
-
-function addChunk(stream, state, chunk, addToFront) {
- if (state.flowing && state.length === 0 && !state.sync) {
- stream.emit('data', chunk);
- stream.read(0);
- } else {
- // update the buffer info.
- state.length += state.objectMode ? 1 : chunk.length;
- if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);
-
- if (state.needReadable) emitReadable(stream);
- }
- maybeReadMore(stream, state);
-}
-
-function chunkInvalid(state, chunk) {
- var er;
- if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
- er = new TypeError('Invalid non-string/buffer chunk');
- }
- return er;
-}
-
-// if it's past the high water mark, we can push in some more.
-// Also, if we have no data yet, we can stand some
-// more bytes. This is to work around cases where hwm=0,
-// such as the repl. Also, if the push() triggered a
-// readable event, and the user called read(largeNumber) such that
-// needReadable was set, then we ought to push more, so that another
-// 'readable' event will be triggered.
-function needMoreData(state) {
- return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);
-}
-
-Readable.prototype.isPaused = function () {
- return this._readableState.flowing === false;
-};
-
-// backwards compatibility.
-Readable.prototype.setEncoding = function (enc) {
- if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
- this._readableState.decoder = new StringDecoder(enc);
- this._readableState.encoding = enc;
- return this;
-};
-
-// Don't raise the hwm > 8MB
-var MAX_HWM = 0x800000;
-function computeNewHighWaterMark(n) {
- if (n >= MAX_HWM) {
- n = MAX_HWM;
- } else {
- // Get the next highest power of 2 to prevent increasing hwm excessively in
- // tiny amounts
- n--;
- n |= n >>> 1;
- n |= n >>> 2;
- n |= n >>> 4;
- n |= n >>> 8;
- n |= n >>> 16;
- n++;
- }
- return n;
-}
-
-// This function is designed to be inlinable, so please take care when making
-// changes to the function body.
-function howMuchToRead(n, state) {
- if (n <= 0 || state.length === 0 && state.ended) return 0;
- if (state.objectMode) return 1;
- if (n !== n) {
- // Only flow one buffer at a time
- if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
- }
- // If we're asking for more than the current hwm, then raise the hwm.
- if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
- if (n <= state.length) return n;
- // Don't have enough
- if (!state.ended) {
- state.needReadable = true;
- return 0;
- }
- return state.length;
-}
-
-// you can override either this method, or the async _read(n) below.
-Readable.prototype.read = function (n) {
- debug('read', n);
- n = parseInt(n, 10);
- var state = this._readableState;
- var nOrig = n;
-
- if (n !== 0) state.emittedReadable = false;
-
- // if we're doing read(0) to trigger a readable event, but we
- // already have a bunch of data in the buffer, then just trigger
- // the 'readable' event and move on.
- if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
- debug('read: emitReadable', state.length, state.ended);
- if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
- return null;
- }
-
- n = howMuchToRead(n, state);
-
- // if we've ended, and we're now clear, then finish it up.
- if (n === 0 && state.ended) {
- if (state.length === 0) endReadable(this);
- return null;
- }
-
- // All the actual chunk generation logic needs to be
- // *below* the call to _read. The reason is that in certain
- // synthetic stream cases, such as passthrough streams, _read
- // may be a completely synchronous operation which may change
- // the state of the read buffer, providing enough data when
- // before there was *not* enough.
- //
- // So, the steps are:
- // 1. Figure out what the state of things will be after we do
- // a read from the buffer.
- //
- // 2. If that resulting state will trigger a _read, then call _read.
- // Note that this may be asynchronous, or synchronous. Yes, it is
- // deeply ugly to write APIs this way, but that still doesn't mean
- // that the Readable class should behave improperly, as streams are
- // designed to be sync/async agnostic.
- // Take note if the _read call is sync or async (ie, if the read call
- // has returned yet), so that we know whether or not it's safe to emit
- // 'readable' etc.
- //
- // 3. Actually pull the requested chunks out of the buffer and return.
-
- // if we need a readable event, then we need to do some reading.
- var doRead = state.needReadable;
- debug('need readable', doRead);
-
- // if we currently have less than the highWaterMark, then also read some
- if (state.length === 0 || state.length - n < state.highWaterMark) {
- doRead = true;
- debug('length less than watermark', doRead);
- }
-
- // however, if we've ended, then there's no point, and if we're already
- // reading, then it's unnecessary.
- if (state.ended || state.reading) {
- doRead = false;
- debug('reading or ended', doRead);
- } else if (doRead) {
- debug('do read');
- state.reading = true;
- state.sync = true;
- // if the length is currently zero, then we *need* a readable event.
- if (state.length === 0) state.needReadable = true;
- // call internal read method
- this._read(state.highWaterMark);
- state.sync = false;
- // If _read pushed data synchronously, then `reading` will be false,
- // and we need to re-evaluate how much data we can return to the user.
- if (!state.reading) n = howMuchToRead(nOrig, state);
- }
-
- var ret;
- if (n > 0) ret = fromList(n, state);else ret = null;
-
- if (ret === null) {
- state.needReadable = true;
- n = 0;
- } else {
- state.length -= n;
- }
-
- if (state.length === 0) {
- // If we have nothing in the buffer, then we want to know
- // as soon as we *do* get something into the buffer.
- if (!state.ended) state.needReadable = true;
-
- // If we tried to read() past the EOF, then emit end on the next tick.
- if (nOrig !== n && state.ended) endReadable(this);
- }
-
- if (ret !== null) this.emit('data', ret);
-
- return ret;
-};
-
-function onEofChunk(stream, state) {
- if (state.ended) return;
- if (state.decoder) {
- var chunk = state.decoder.end();
- if (chunk && chunk.length) {
- state.buffer.push(chunk);
- state.length += state.objectMode ? 1 : chunk.length;
- }
- }
- state.ended = true;
-
- // emit 'readable' now to make sure it gets picked up.
- emitReadable(stream);
-}
-
-// Don't emit readable right away in sync mode, because this can trigger
-// another read() call => stack overflow. This way, it might trigger
-// a nextTick recursion warning, but that's not so bad.
-function emitReadable(stream) {
- var state = stream._readableState;
- state.needReadable = false;
- if (!state.emittedReadable) {
- debug('emitReadable', state.flowing);
- state.emittedReadable = true;
- if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream);
- }
-}
-
-function emitReadable_(stream) {
- debug('emit readable');
- stream.emit('readable');
- flow(stream);
-}
-
-// at this point, the user has presumably seen the 'readable' event,
-// and called read() to consume some data. that may have triggered
-// in turn another _read(n) call, in which case reading = true if
-// it's in progress.
-// However, if we're not ended, or reading, and the length < hwm,
-// then go ahead and try to read some more preemptively.
-function maybeReadMore(stream, state) {
- if (!state.readingMore) {
- state.readingMore = true;
- pna.nextTick(maybeReadMore_, stream, state);
- }
-}
-
-function maybeReadMore_(stream, state) {
- var len = state.length;
- while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {
- debug('maybeReadMore read 0');
- stream.read(0);
- if (len === state.length)
- // didn't get any data, stop spinning.
- break;else len = state.length;
- }
- state.readingMore = false;
-}
-
-// abstract method. to be overridden in specific implementation classes.
-// call cb(er, data) where data is <= n in length.
-// for virtual (non-string, non-buffer) streams, "length" is somewhat
-// arbitrary, and perhaps not very meaningful.
-Readable.prototype._read = function (n) {
- this.emit('error', new Error('_read() is not implemented'));
-};
-
-Readable.prototype.pipe = function (dest, pipeOpts) {
- var src = this;
- var state = this._readableState;
-
- switch (state.pipesCount) {
- case 0:
- state.pipes = dest;
- break;
- case 1:
- state.pipes = [state.pipes, dest];
- break;
- default:
- state.pipes.push(dest);
- break;
- }
- state.pipesCount += 1;
- debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
-
- var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
-
- var endFn = doEnd ? onend : unpipe;
- if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn);
-
- dest.on('unpipe', onunpipe);
- function onunpipe(readable, unpipeInfo) {
- debug('onunpipe');
- if (readable === src) {
- if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
- unpipeInfo.hasUnpiped = true;
- cleanup();
- }
- }
- }
-
- function onend() {
- debug('onend');
- dest.end();
- }
-
- // when the dest drains, it reduces the awaitDrain counter
- // on the source. This would be more elegant with a .once()
- // handler in flow(), but adding and removing repeatedly is
- // too slow.
- var ondrain = pipeOnDrain(src);
- dest.on('drain', ondrain);
-
- var cleanedUp = false;
- function cleanup() {
- debug('cleanup');
- // cleanup event handlers once the pipe is broken
- dest.removeListener('close', onclose);
- dest.removeListener('finish', onfinish);
- dest.removeListener('drain', ondrain);
- dest.removeListener('error', onerror);
- dest.removeListener('unpipe', onunpipe);
- src.removeListener('end', onend);
- src.removeListener('end', unpipe);
- src.removeListener('data', ondata);
-
- cleanedUp = true;
-
- // if the reader is waiting for a drain event from this
- // specific writer, then it would cause it to never start
- // flowing again.
- // So, if this is awaiting a drain, then we just call it now.
- // If we don't know, then assume that we are waiting for one.
- if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
- }
-
- // If the user pushes more data while we're writing to dest then we'll end up
- // in ondata again. However, we only want to increase awaitDrain once because
- // dest will only emit one 'drain' event for the multiple writes.
- // => Introduce a guard on increasing awaitDrain.
- var increasedAwaitDrain = false;
- src.on('data', ondata);
- function ondata(chunk) {
- debug('ondata');
- increasedAwaitDrain = false;
- var ret = dest.write(chunk);
- if (false === ret && !increasedAwaitDrain) {
- // If the user unpiped during `dest.write()`, it is possible
- // to get stuck in a permanently paused state if that write
- // also returned false.
- // => Check whether `dest` is still a piping destination.
- if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
- debug('false write response, pause', src._readableState.awaitDrain);
- src._readableState.awaitDrain++;
- increasedAwaitDrain = true;
- }
- src.pause();
- }
- }
-
- // if the dest has an error, then stop piping into it.
- // however, don't suppress the throwing behavior for this.
- function onerror(er) {
- debug('onerror', er);
- unpipe();
- dest.removeListener('error', onerror);
- if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er);
- }
-
- // Make sure our error handler is attached before userland ones.
- prependListener(dest, 'error', onerror);
-
- // Both close and finish should trigger unpipe, but only once.
- function onclose() {
- dest.removeListener('finish', onfinish);
- unpipe();
- }
- dest.once('close', onclose);
- function onfinish() {
- debug('onfinish');
- dest.removeListener('close', onclose);
- unpipe();
- }
- dest.once('finish', onfinish);
-
- function unpipe() {
- debug('unpipe');
- src.unpipe(dest);
- }
-
- // tell the dest that it's being piped to
- dest.emit('pipe', src);
-
- // start the flow if it hasn't been started already.
- if (!state.flowing) {
- debug('pipe resume');
- src.resume();
- }
-
- return dest;
-};
-
-function pipeOnDrain(src) {
- return function () {
- var state = src._readableState;
- debug('pipeOnDrain', state.awaitDrain);
- if (state.awaitDrain) state.awaitDrain--;
- if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
- state.flowing = true;
- flow(src);
- }
- };
-}
-
-Readable.prototype.unpipe = function (dest) {
- var state = this._readableState;
- var unpipeInfo = { hasUnpiped: false };
-
- // if we're not piping anywhere, then do nothing.
- if (state.pipesCount === 0) return this;
-
- // just one destination. most common case.
- if (state.pipesCount === 1) {
- // passed in one, but it's not the right one.
- if (dest && dest !== state.pipes) return this;
-
- if (!dest) dest = state.pipes;
-
- // got a match.
- state.pipes = null;
- state.pipesCount = 0;
- state.flowing = false;
- if (dest) dest.emit('unpipe', this, unpipeInfo);
- return this;
- }
-
- // slow case. multiple pipe destinations.
-
- if (!dest) {
- // remove all.
- var dests = state.pipes;
- var len = state.pipesCount;
- state.pipes = null;
- state.pipesCount = 0;
- state.flowing = false;
-
- for (var i = 0; i < len; i++) {
- dests[i].emit('unpipe', this, unpipeInfo);
- }return this;
- }
-
- // try to find the right one.
- var index = indexOf(state.pipes, dest);
- if (index === -1) return this;
-
- state.pipes.splice(index, 1);
- state.pipesCount -= 1;
- if (state.pipesCount === 1) state.pipes = state.pipes[0];
-
- dest.emit('unpipe', this, unpipeInfo);
-
- return this;
-};
-
-// set up data events if they are asked for
-// Ensure readable listeners eventually get something
-Readable.prototype.on = function (ev, fn) {
- var res = Stream.prototype.on.call(this, ev, fn);
-
- if (ev === 'data') {
- // Start flowing on next tick if stream isn't explicitly paused
- if (this._readableState.flowing !== false) this.resume();
- } else if (ev === 'readable') {
- var state = this._readableState;
- if (!state.endEmitted && !state.readableListening) {
- state.readableListening = state.needReadable = true;
- state.emittedReadable = false;
- if (!state.reading) {
- pna.nextTick(nReadingNextTick, this);
- } else if (state.length) {
- emitReadable(this);
- }
- }
- }
-
- return res;
-};
-Readable.prototype.addListener = Readable.prototype.on;
-
-function nReadingNextTick(self) {
- debug('readable nexttick read 0');
- self.read(0);
-}
-
-// pause() and resume() are remnants of the legacy readable stream API
-// If the user uses them, then switch into old mode.
-Readable.prototype.resume = function () {
- var state = this._readableState;
- if (!state.flowing) {
- debug('resume');
- state.flowing = true;
- resume(this, state);
- }
- return this;
-};
-
-function resume(stream, state) {
- if (!state.resumeScheduled) {
- state.resumeScheduled = true;
- pna.nextTick(resume_, stream, state);
- }
-}
-
-function resume_(stream, state) {
- if (!state.reading) {
- debug('resume read 0');
- stream.read(0);
- }
-
- state.resumeScheduled = false;
- state.awaitDrain = 0;
- stream.emit('resume');
- flow(stream);
- if (state.flowing && !state.reading) stream.read(0);
-}
-
-Readable.prototype.pause = function () {
- debug('call pause flowing=%j', this._readableState.flowing);
- if (false !== this._readableState.flowing) {
- debug('pause');
- this._readableState.flowing = false;
- this.emit('pause');
- }
- return this;
-};
-
-function flow(stream) {
- var state = stream._readableState;
- debug('flow', state.flowing);
- while (state.flowing && stream.read() !== null) {}
-}
-
-// wrap an old-style stream as the async data source.
-// This is *not* part of the readable stream interface.
-// It is an ugly unfortunate mess of history.
-Readable.prototype.wrap = function (stream) {
- var _this = this;
-
- var state = this._readableState;
- var paused = false;
-
- stream.on('end', function () {
- debug('wrapped end');
- if (state.decoder && !state.ended) {
- var chunk = state.decoder.end();
- if (chunk && chunk.length) _this.push(chunk);
- }
-
- _this.push(null);
- });
-
- stream.on('data', function (chunk) {
- debug('wrapped data');
- if (state.decoder) chunk = state.decoder.write(chunk);
-
- // don't skip over falsy values in objectMode
- if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;
-
- var ret = _this.push(chunk);
- if (!ret) {
- paused = true;
- stream.pause();
- }
- });
-
- // proxy all the other methods.
- // important when wrapping filters and duplexes.
- for (var i in stream) {
- if (this[i] === undefined && typeof stream[i] === 'function') {
- this[i] = function (method) {
- return function () {
- return stream[method].apply(stream, arguments);
- };
- }(i);
- }
- }
-
- // proxy certain important events.
- for (var n = 0; n < kProxyEvents.length; n++) {
- stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
- }
-
- // when we try to consume some more bytes, simply unpause the
- // underlying stream.
- this._read = function (n) {
- debug('wrapped _read', n);
- if (paused) {
- paused = false;
- stream.resume();
- }
- };
-
- return this;
-};
-
-Object.defineProperty(Readable.prototype, 'readableHighWaterMark', {
- // making it explicit this property is not enumerable
- // because otherwise some prototype manipulation in
- // userland will fail
- enumerable: false,
- get: function () {
- return this._readableState.highWaterMark;
- }
-});
-
-// exposed for testing purposes only.
-Readable._fromList = fromList;
-
-// Pluck off n bytes from an array of buffers.
-// Length is the combined lengths of all the buffers in the list.
-// This function is designed to be inlinable, so please take care when making
-// changes to the function body.
-function fromList(n, state) {
- // nothing buffered
- if (state.length === 0) return null;
-
- var ret;
- if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
- // read it all, truncate the list
- if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);
- state.buffer.clear();
- } else {
- // read part of list
- ret = fromListPartial(n, state.buffer, state.decoder);
- }
-
- return ret;
-}
-
-// Extracts only enough buffered data to satisfy the amount requested.
-// This function is designed to be inlinable, so please take care when making
-// changes to the function body.
-function fromListPartial(n, list, hasStrings) {
- var ret;
- if (n < list.head.data.length) {
- // slice is the same for buffers and strings
- ret = list.head.data.slice(0, n);
- list.head.data = list.head.data.slice(n);
- } else if (n === list.head.data.length) {
- // first chunk is a perfect match
- ret = list.shift();
- } else {
- // result spans more than one buffer
- ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
- }
- return ret;
-}
-
-// Copies a specified amount of characters from the list of buffered data
-// chunks.
-// This function is designed to be inlinable, so please take care when making
-// changes to the function body.
-function copyFromBufferString(n, list) {
- var p = list.head;
- var c = 1;
- var ret = p.data;
- n -= ret.length;
- while (p = p.next) {
- var str = p.data;
- var nb = n > str.length ? str.length : n;
- if (nb === str.length) ret += str;else ret += str.slice(0, n);
- n -= nb;
- if (n === 0) {
- if (nb === str.length) {
- ++c;
- if (p.next) list.head = p.next;else list.head = list.tail = null;
- } else {
- list.head = p;
- p.data = str.slice(nb);
- }
- break;
- }
- ++c;
- }
- list.length -= c;
- return ret;
-}
-
-// Copies a specified amount of bytes from the list of buffered data chunks.
-// This function is designed to be inlinable, so please take care when making
-// changes to the function body.
-function copyFromBuffer(n, list) {
- var ret = Buffer.allocUnsafe(n);
- var p = list.head;
- var c = 1;
- p.data.copy(ret);
- n -= p.data.length;
- while (p = p.next) {
- var buf = p.data;
- var nb = n > buf.length ? buf.length : n;
- buf.copy(ret, ret.length - n, 0, nb);
- n -= nb;
- if (n === 0) {
- if (nb === buf.length) {
- ++c;
- if (p.next) list.head = p.next;else list.head = list.tail = null;
- } else {
- list.head = p;
- p.data = buf.slice(nb);
- }
- break;
- }
- ++c;
- }
- list.length -= c;
- return ret;
-}
-
-function endReadable(stream) {
- var state = stream._readableState;
-
- // If we get here before consuming all the bytes, then that is a
- // bug in node. Should never happen.
- if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');
-
- if (!state.endEmitted) {
- state.ended = true;
- pna.nextTick(endReadableNT, state, stream);
- }
-}
-
-function endReadableNT(state, stream) {
- // Check that we didn't get one last unshift.
- if (!state.endEmitted && state.length === 0) {
- state.endEmitted = true;
- stream.readable = false;
- stream.emit('end');
- }
-}
-
-function indexOf(xs, x) {
- for (var i = 0, l = xs.length; i < l; i++) {
- if (xs[i] === x) return i;
- }
- return -1;
-} \ No newline at end of file
diff --git a/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/readable-stream/lib/_stream_transform.js
deleted file mode 100644
index fcfc105..0000000
--- a/node_modules/readable-stream/lib/_stream_transform.js
+++ /dev/null
@@ -1,214 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// a transform stream is a readable/writable stream where you do
-// something with the data. Sometimes it's called a "filter",
-// but that's not a great name for it, since that implies a thing where
-// some bits pass through, and others are simply ignored. (That would
-// be a valid example of a transform, of course.)
-//
-// While the output is causally related to the input, it's not a
-// necessarily symmetric or synchronous transformation. For example,
-// a zlib stream might take multiple plain-text writes(), and then
-// emit a single compressed chunk some time in the future.
-//
-// Here's how this works:
-//
-// The Transform stream has all the aspects of the readable and writable
-// stream classes. When you write(chunk), that calls _write(chunk,cb)
-// internally, and returns false if there's a lot of pending writes
-// buffered up. When you call read(), that calls _read(n) until
-// there's enough pending readable data buffered up.
-//
-// In a transform stream, the written data is placed in a buffer. When
-// _read(n) is called, it transforms the queued up data, calling the
-// buffered _write cb's as it consumes chunks. If consuming a single
-// written chunk would result in multiple output chunks, then the first
-// outputted bit calls the readcb, and subsequent chunks just go into
-// the read buffer, and will cause it to emit 'readable' if necessary.
-//
-// This way, back-pressure is actually determined by the reading side,
-// since _read has to be called to start processing a new chunk. However,
-// a pathological inflate type of transform can cause excessive buffering
-// here. For example, imagine a stream where every byte of input is
-// interpreted as an integer from 0-255, and then results in that many
-// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in
-// 1kb of data being output. In this case, you could write a very small
-// amount of input, and end up with a very large amount of output. In
-// such a pathological inflating mechanism, there'd be no way to tell
-// the system to stop doing the transform. A single 4MB write could
-// cause the system to run out of memory.
-//
-// However, even in such a pathological case, only a single written chunk
-// would be consumed, and then the rest would wait (un-transformed) until
-// the results of the previous transformed chunk were consumed.
-
-'use strict';
-
-module.exports = Transform;
-
-var Duplex = require('./_stream_duplex');
-
-/*<replacement>*/
-var util = Object.create(require('core-util-is'));
-util.inherits = require('inherits');
-/*</replacement>*/
-
-util.inherits(Transform, Duplex);
-
-function afterTransform(er, data) {
- var ts = this._transformState;
- ts.transforming = false;
-
- var cb = ts.writecb;
-
- if (!cb) {
- return this.emit('error', new Error('write callback called multiple times'));
- }
-
- ts.writechunk = null;
- ts.writecb = null;
-
- if (data != null) // single equals check for both `null` and `undefined`
- this.push(data);
-
- cb(er);
-
- var rs = this._readableState;
- rs.reading = false;
- if (rs.needReadable || rs.length < rs.highWaterMark) {
- this._read(rs.highWaterMark);
- }
-}
-
-function Transform(options) {
- if (!(this instanceof Transform)) return new Transform(options);
-
- Duplex.call(this, options);
-
- this._transformState = {
- afterTransform: afterTransform.bind(this),
- needTransform: false,
- transforming: false,
- writecb: null,
- writechunk: null,
- writeencoding: null
- };
-
- // start out asking for a readable event once data is transformed.
- this._readableState.needReadable = true;
-
- // we have implemented the _read method, and done the other things
- // that Readable wants before the first _read call, so unset the
- // sync guard flag.
- this._readableState.sync = false;
-
- if (options) {
- if (typeof options.transform === 'function') this._transform = options.transform;
-
- if (typeof options.flush === 'function') this._flush = options.flush;
- }
-
- // When the writable side finishes, then flush out anything remaining.
- this.on('prefinish', prefinish);
-}
-
-function prefinish() {
- var _this = this;
-
- if (typeof this._flush === 'function') {
- this._flush(function (er, data) {
- done(_this, er, data);
- });
- } else {
- done(this, null, null);
- }
-}
-
-Transform.prototype.push = function (chunk, encoding) {
- this._transformState.needTransform = false;
- return Duplex.prototype.push.call(this, chunk, encoding);
-};
-
-// This is the part where you do stuff!
-// override this function in implementation classes.
-// 'chunk' is an input chunk.
-//
-// Call `push(newChunk)` to pass along transformed output
-// to the readable side. You may call 'push' zero or more times.
-//
-// Call `cb(err)` when you are done with this chunk. If you pass
-// an error, then that'll put the hurt on the whole operation. If you
-// never call cb(), then you'll never get another chunk.
-Transform.prototype._transform = function (chunk, encoding, cb) {
- throw new Error('_transform() is not implemented');
-};
-
-Transform.prototype._write = function (chunk, encoding, cb) {
- var ts = this._transformState;
- ts.writecb = cb;
- ts.writechunk = chunk;
- ts.writeencoding = encoding;
- if (!ts.transforming) {
- var rs = this._readableState;
- if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
- }
-};
-
-// Doesn't matter what the args are here.
-// _transform does all the work.
-// That we got here means that the readable side wants more data.
-Transform.prototype._read = function (n) {
- var ts = this._transformState;
-
- if (ts.writechunk !== null && ts.writecb && !ts.transforming) {
- ts.transforming = true;
- this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
- } else {
- // mark that we need a transform, so that any data that comes in
- // will get processed, now that we've asked for it.
- ts.needTransform = true;
- }
-};
-
-Transform.prototype._destroy = function (err, cb) {
- var _this2 = this;
-
- Duplex.prototype._destroy.call(this, err, function (err2) {
- cb(err2);
- _this2.emit('close');
- });
-};
-
-function done(stream, er, data) {
- if (er) return stream.emit('error', er);
-
- if (data != null) // single equals check for both `null` and `undefined`
- stream.push(data);
-
- // if there's nothing in the write buffer, then that means
- // that nothing more will ever be provided
- if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0');
-
- if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming');
-
- return stream.push(null);
-} \ No newline at end of file
diff --git a/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/readable-stream/lib/_stream_writable.js
deleted file mode 100644
index b0b0220..0000000
--- a/node_modules/readable-stream/lib/_stream_writable.js
+++ /dev/null
@@ -1,687 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// A bit simpler than readable streams.
-// Implement an async ._write(chunk, encoding, cb), and it'll handle all
-// the drain event emission and buffering.
-
-'use strict';
-
-/*<replacement>*/
-
-var pna = require('process-nextick-args');
-/*</replacement>*/
-
-module.exports = Writable;
-
-/* <replacement> */
-function WriteReq(chunk, encoding, cb) {
- this.chunk = chunk;
- this.encoding = encoding;
- this.callback = cb;
- this.next = null;
-}
-
-// It seems a linked list but it is not
-// there will be only 2 of these for each stream
-function CorkedRequest(state) {
- var _this = this;
-
- this.next = null;
- this.entry = null;
- this.finish = function () {
- onCorkedFinish(_this, state);
- };
-}
-/* </replacement> */
-
-/*<replacement>*/
-var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
-/*</replacement>*/
-
-/*<replacement>*/
-var Duplex;
-/*</replacement>*/
-
-Writable.WritableState = WritableState;
-
-/*<replacement>*/
-var util = Object.create(require('core-util-is'));
-util.inherits = require('inherits');
-/*</replacement>*/
-
-/*<replacement>*/
-var internalUtil = {
- deprecate: require('util-deprecate')
-};
-/*</replacement>*/
-
-/*<replacement>*/
-var Stream = require('./internal/streams/stream');
-/*</replacement>*/
-
-/*<replacement>*/
-
-var Buffer = require('safe-buffer').Buffer;
-var OurUint8Array = global.Uint8Array || function () {};
-function _uint8ArrayToBuffer(chunk) {
- return Buffer.from(chunk);
-}
-function _isUint8Array(obj) {
- return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
-}
-
-/*</replacement>*/
-
-var destroyImpl = require('./internal/streams/destroy');
-
-util.inherits(Writable, Stream);
-
-function nop() {}
-
-function WritableState(options, stream) {
- Duplex = Duplex || require('./_stream_duplex');
-
- options = options || {};
-
- // Duplex streams are both readable and writable, but share
- // the same options object.
- // However, some cases require setting options to different
- // values for the readable and the writable sides of the duplex stream.
- // These options can be provided separately as readableXXX and writableXXX.
- var isDuplex = stream instanceof Duplex;
-
- // object stream flag to indicate whether or not this stream
- // contains buffers or objects.
- this.objectMode = !!options.objectMode;
-
- if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
-
- // the point at which write() starts returning false
- // Note: 0 is a valid value, means that we always return false if
- // the entire buffer is not flushed immediately on write()
- var hwm = options.highWaterMark;
- var writableHwm = options.writableHighWaterMark;
- var defaultHwm = this.objectMode ? 16 : 16 * 1024;
-
- if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm;
-
- // cast to ints.
- this.highWaterMark = Math.floor(this.highWaterMark);
-
- // if _final has been called
- this.finalCalled = false;
-
- // drain event flag.
- this.needDrain = false;
- // at the start of calling end()
- this.ending = false;
- // when end() has been called, and returned
- this.ended = false;
- // when 'finish' is emitted
- this.finished = false;
-
- // has it been destroyed
- this.destroyed = false;
-
- // should we decode strings into buffers before passing to _write?
- // this is here so that some node-core streams can optimize string
- // handling at a lower level.
- var noDecode = options.decodeStrings === false;
- this.decodeStrings = !noDecode;
-
- // Crypto is kind of old and crusty. Historically, its default string
- // encoding is 'binary' so we have to make this configurable.
- // Everything else in the universe uses 'utf8', though.
- this.defaultEncoding = options.defaultEncoding || 'utf8';
-
- // not an actual buffer we keep track of, but a measurement
- // of how much we're waiting to get pushed to some underlying
- // socket or file.
- this.length = 0;
-
- // a flag to see when we're in the middle of a write.
- this.writing = false;
-
- // when true all writes will be buffered until .uncork() call
- this.corked = 0;
-
- // a flag to be able to tell if the onwrite cb is called immediately,
- // or on a later tick. We set this to true at first, because any
- // actions that shouldn't happen until "later" should generally also
- // not happen before the first write call.
- this.sync = true;
-
- // a flag to know if we're processing previously buffered items, which
- // may call the _write() callback in the same tick, so that we don't
- // end up in an overlapped onwrite situation.
- this.bufferProcessing = false;
-
- // the callback that's passed to _write(chunk,cb)
- this.onwrite = function (er) {
- onwrite(stream, er);
- };
-
- // the callback that the user supplies to write(chunk,encoding,cb)
- this.writecb = null;
-
- // the amount that is being written when _write is called.
- this.writelen = 0;
-
- this.bufferedRequest = null;
- this.lastBufferedRequest = null;
-
- // number of pending user-supplied write callbacks
- // this must be 0 before 'finish' can be emitted
- this.pendingcb = 0;
-
- // emit prefinish if the only thing we're waiting for is _write cbs
- // This is relevant for synchronous Transform streams
- this.prefinished = false;
-
- // True if the error was already emitted and should not be thrown again
- this.errorEmitted = false;
-
- // count buffered requests
- this.bufferedRequestCount = 0;
-
- // allocate the first CorkedRequest, there is always
- // one allocated and free to use, and we maintain at most two
- this.corkedRequestsFree = new CorkedRequest(this);
-}
-
-WritableState.prototype.getBuffer = function getBuffer() {
- var current = this.bufferedRequest;
- var out = [];
- while (current) {
- out.push(current);
- current = current.next;
- }
- return out;
-};
-
-(function () {
- try {
- Object.defineProperty(WritableState.prototype, 'buffer', {
- get: internalUtil.deprecate(function () {
- return this.getBuffer();
- }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')
- });
- } catch (_) {}
-})();
-
-// Test _writableState for inheritance to account for Duplex streams,
-// whose prototype chain only points to Readable.
-var realHasInstance;
-if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
- realHasInstance = Function.prototype[Symbol.hasInstance];
- Object.defineProperty(Writable, Symbol.hasInstance, {
- value: function (object) {
- if (realHasInstance.call(this, object)) return true;
- if (this !== Writable) return false;
-
- return object && object._writableState instanceof WritableState;
- }
- });
-} else {
- realHasInstance = function (object) {
- return object instanceof this;
- };
-}
-
-function Writable(options) {
- Duplex = Duplex || require('./_stream_duplex');
-
- // Writable ctor is applied to Duplexes, too.
- // `realHasInstance` is necessary because using plain `instanceof`
- // would return false, as no `_writableState` property is attached.
-
- // Trying to use the custom `instanceof` for Writable here will also break the
- // Node.js LazyTransform implementation, which has a non-trivial getter for
- // `_writableState` that would lead to infinite recursion.
- if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) {
- return new Writable(options);
- }
-
- this._writableState = new WritableState(options, this);
-
- // legacy.
- this.writable = true;
-
- if (options) {
- if (typeof options.write === 'function') this._write = options.write;
-
- if (typeof options.writev === 'function') this._writev = options.writev;
-
- if (typeof options.destroy === 'function') this._destroy = options.destroy;
-
- if (typeof options.final === 'function') this._final = options.final;
- }
-
- Stream.call(this);
-}
-
-// Otherwise people can pipe Writable streams, which is just wrong.
-Writable.prototype.pipe = function () {
- this.emit('error', new Error('Cannot pipe, not readable'));
-};
-
-function writeAfterEnd(stream, cb) {
- var er = new Error('write after end');
- // TODO: defer error events consistently everywhere, not just the cb
- stream.emit('error', er);
- pna.nextTick(cb, er);
-}
-
-// Checks that a user-supplied chunk is valid, especially for the particular
-// mode the stream is in. Currently this means that `null` is never accepted
-// and undefined/non-string values are only allowed in object mode.
-function validChunk(stream, state, chunk, cb) {
- var valid = true;
- var er = false;
-
- if (chunk === null) {
- er = new TypeError('May not write null values to stream');
- } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
- er = new TypeError('Invalid non-string/buffer chunk');
- }
- if (er) {
- stream.emit('error', er);
- pna.nextTick(cb, er);
- valid = false;
- }
- return valid;
-}
-
-Writable.prototype.write = function (chunk, encoding, cb) {
- var state = this._writableState;
- var ret = false;
- var isBuf = !state.objectMode && _isUint8Array(chunk);
-
- if (isBuf && !Buffer.isBuffer(chunk)) {
- chunk = _uint8ArrayToBuffer(chunk);
- }
-
- if (typeof encoding === 'function') {
- cb = encoding;
- encoding = null;
- }
-
- if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;
-
- if (typeof cb !== 'function') cb = nop;
-
- if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {
- state.pendingcb++;
- ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
- }
-
- return ret;
-};
-
-Writable.prototype.cork = function () {
- var state = this._writableState;
-
- state.corked++;
-};
-
-Writable.prototype.uncork = function () {
- var state = this._writableState;
-
- if (state.corked) {
- state.corked--;
-
- if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
- }
-};
-
-Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
- // node::ParseEncoding() requires lower case.
- if (typeof encoding === 'string') encoding = encoding.toLowerCase();
- if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding);
- this._writableState.defaultEncoding = encoding;
- return this;
-};
-
-function decodeChunk(state, chunk, encoding) {
- if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
- chunk = Buffer.from(chunk, encoding);
- }
- return chunk;
-}
-
-Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
- // making it explicit this property is not enumerable
- // because otherwise some prototype manipulation in
- // userland will fail
- enumerable: false,
- get: function () {
- return this._writableState.highWaterMark;
- }
-});
-
-// if we're already writing something, then just put this
-// in the queue, and wait our turn. Otherwise, call _write
-// If we return false, then we need a drain event, so set that flag.
-function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
- if (!isBuf) {
- var newChunk = decodeChunk(state, chunk, encoding);
- if (chunk !== newChunk) {
- isBuf = true;
- encoding = 'buffer';
- chunk = newChunk;
- }
- }
- var len = state.objectMode ? 1 : chunk.length;
-
- state.length += len;
-
- var ret = state.length < state.highWaterMark;
- // we must ensure that previous needDrain will not be reset to false.
- if (!ret) state.needDrain = true;
-
- if (state.writing || state.corked) {
- var last = state.lastBufferedRequest;
- state.lastBufferedRequest = {
- chunk: chunk,
- encoding: encoding,
- isBuf: isBuf,
- callback: cb,
- next: null
- };
- if (last) {
- last.next = state.lastBufferedRequest;
- } else {
- state.bufferedRequest = state.lastBufferedRequest;
- }
- state.bufferedRequestCount += 1;
- } else {
- doWrite(stream, state, false, len, chunk, encoding, cb);
- }
-
- return ret;
-}
-
-function doWrite(stream, state, writev, len, chunk, encoding, cb) {
- state.writelen = len;
- state.writecb = cb;
- state.writing = true;
- state.sync = true;
- if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
- state.sync = false;
-}
-
-function onwriteError(stream, state, sync, er, cb) {
- --state.pendingcb;
-
- if (sync) {
- // defer the callback if we are being called synchronously
- // to avoid piling up things on the stack
- pna.nextTick(cb, er);
- // this can emit finish, and it will always happen
- // after error
- pna.nextTick(finishMaybe, stream, state);
- stream._writableState.errorEmitted = true;
- stream.emit('error', er);
- } else {
- // the caller expect this to happen before if
- // it is async
- cb(er);
- stream._writableState.errorEmitted = true;
- stream.emit('error', er);
- // this can emit finish, but finish must
- // always follow error
- finishMaybe(stream, state);
- }
-}
-
-function onwriteStateUpdate(state) {
- state.writing = false;
- state.writecb = null;
- state.length -= state.writelen;
- state.writelen = 0;
-}
-
-function onwrite(stream, er) {
- var state = stream._writableState;
- var sync = state.sync;
- var cb = state.writecb;
-
- onwriteStateUpdate(state);
-
- if (er) onwriteError(stream, state, sync, er, cb);else {
- // Check if we're actually ready to finish, but don't emit yet
- var finished = needFinish(state);
-
- if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
- clearBuffer(stream, state);
- }
-
- if (sync) {
- /*<replacement>*/
- asyncWrite(afterWrite, stream, state, finished, cb);
- /*</replacement>*/
- } else {
- afterWrite(stream, state, finished, cb);
- }
- }
-}
-
-function afterWrite(stream, state, finished, cb) {
- if (!finished) onwriteDrain(stream, state);
- state.pendingcb--;
- cb();
- finishMaybe(stream, state);
-}
-
-// Must force callback to be called on nextTick, so that we don't
-// emit 'drain' before the write() consumer gets the 'false' return
-// value, and has a chance to attach a 'drain' listener.
-function onwriteDrain(stream, state) {
- if (state.length === 0 && state.needDrain) {
- state.needDrain = false;
- stream.emit('drain');
- }
-}
-
-// if there's something in the buffer waiting, then process it
-function clearBuffer(stream, state) {
- state.bufferProcessing = true;
- var entry = state.bufferedRequest;
-
- if (stream._writev && entry && entry.next) {
- // Fast case, write everything using _writev()
- var l = state.bufferedRequestCount;
- var buffer = new Array(l);
- var holder = state.corkedRequestsFree;
- holder.entry = entry;
-
- var count = 0;
- var allBuffers = true;
- while (entry) {
- buffer[count] = entry;
- if (!entry.isBuf) allBuffers = false;
- entry = entry.next;
- count += 1;
- }
- buffer.allBuffers = allBuffers;
-
- doWrite(stream, state, true, state.length, buffer, '', holder.finish);
-
- // doWrite is almost always async, defer these to save a bit of time
- // as the hot path ends with doWrite
- state.pendingcb++;
- state.lastBufferedRequest = null;
- if (holder.next) {
- state.corkedRequestsFree = holder.next;
- holder.next = null;
- } else {
- state.corkedRequestsFree = new CorkedRequest(state);
- }
- state.bufferedRequestCount = 0;
- } else {
- // Slow case, write chunks one-by-one
- while (entry) {
- var chunk = entry.chunk;
- var encoding = entry.encoding;
- var cb = entry.callback;
- var len = state.objectMode ? 1 : chunk.length;
-
- doWrite(stream, state, false, len, chunk, encoding, cb);
- entry = entry.next;
- state.bufferedRequestCount--;
- // if we didn't call the onwrite immediately, then
- // it means that we need to wait until it does.
- // also, that means that the chunk and cb are currently
- // being processed, so move the buffer counter past them.
- if (state.writing) {
- break;
- }
- }
-
- if (entry === null) state.lastBufferedRequest = null;
- }
-
- state.bufferedRequest = entry;
- state.bufferProcessing = false;
-}
-
-Writable.prototype._write = function (chunk, encoding, cb) {
- cb(new Error('_write() is not implemented'));
-};
-
-Writable.prototype._writev = null;
-
-Writable.prototype.end = function (chunk, encoding, cb) {
- var state = this._writableState;
-
- if (typeof chunk === 'function') {
- cb = chunk;
- chunk = null;
- encoding = null;
- } else if (typeof encoding === 'function') {
- cb = encoding;
- encoding = null;
- }
-
- if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);
-
- // .end() fully uncorks
- if (state.corked) {
- state.corked = 1;
- this.uncork();
- }
-
- // ignore unnecessary end() calls.
- if (!state.ending && !state.finished) endWritable(this, state, cb);
-};
-
-function needFinish(state) {
- return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
-}
-function callFinal(stream, state) {
- stream._final(function (err) {
- state.pendingcb--;
- if (err) {
- stream.emit('error', err);
- }
- state.prefinished = true;
- stream.emit('prefinish');
- finishMaybe(stream, state);
- });
-}
-function prefinish(stream, state) {
- if (!state.prefinished && !state.finalCalled) {
- if (typeof stream._final === 'function') {
- state.pendingcb++;
- state.finalCalled = true;
- pna.nextTick(callFinal, stream, state);
- } else {
- state.prefinished = true;
- stream.emit('prefinish');
- }
- }
-}
-
-function finishMaybe(stream, state) {
- var need = needFinish(state);
- if (need) {
- prefinish(stream, state);
- if (state.pendingcb === 0) {
- state.finished = true;
- stream.emit('finish');
- }
- }
- return need;
-}
-
-function endWritable(stream, state, cb) {
- state.ending = true;
- finishMaybe(stream, state);
- if (cb) {
- if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);
- }
- state.ended = true;
- stream.writable = false;
-}
-
-function onCorkedFinish(corkReq, state, err) {
- var entry = corkReq.entry;
- corkReq.entry = null;
- while (entry) {
- var cb = entry.callback;
- state.pendingcb--;
- cb(err);
- entry = entry.next;
- }
- if (state.corkedRequestsFree) {
- state.corkedRequestsFree.next = corkReq;
- } else {
- state.corkedRequestsFree = corkReq;
- }
-}
-
-Object.defineProperty(Writable.prototype, 'destroyed', {
- get: function () {
- if (this._writableState === undefined) {
- return false;
- }
- return this._writableState.destroyed;
- },
- set: function (value) {
- // we ignore the value if the stream
- // has not been initialized yet
- if (!this._writableState) {
- return;
- }
-
- // backward compatibility, the user is explicitly
- // managing destroyed
- this._writableState.destroyed = value;
- }
-});
-
-Writable.prototype.destroy = destroyImpl.destroy;
-Writable.prototype._undestroy = destroyImpl.undestroy;
-Writable.prototype._destroy = function (err, cb) {
- this.end();
- cb(err);
-}; \ No newline at end of file
diff --git a/node_modules/readable-stream/lib/internal/streams/BufferList.js b/node_modules/readable-stream/lib/internal/streams/BufferList.js
deleted file mode 100644
index aefc68b..0000000
--- a/node_modules/readable-stream/lib/internal/streams/BufferList.js
+++ /dev/null
@@ -1,79 +0,0 @@
-'use strict';
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-var Buffer = require('safe-buffer').Buffer;
-var util = require('util');
-
-function copyBuffer(src, target, offset) {
- src.copy(target, offset);
-}
-
-module.exports = function () {
- function BufferList() {
- _classCallCheck(this, BufferList);
-
- this.head = null;
- this.tail = null;
- this.length = 0;
- }
-
- BufferList.prototype.push = function push(v) {
- var entry = { data: v, next: null };
- if (this.length > 0) this.tail.next = entry;else this.head = entry;
- this.tail = entry;
- ++this.length;
- };
-
- BufferList.prototype.unshift = function unshift(v) {
- var entry = { data: v, next: this.head };
- if (this.length === 0) this.tail = entry;
- this.head = entry;
- ++this.length;
- };
-
- BufferList.prototype.shift = function shift() {
- if (this.length === 0) return;
- var ret = this.head.data;
- if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
- --this.length;
- return ret;
- };
-
- BufferList.prototype.clear = function clear() {
- this.head = this.tail = null;
- this.length = 0;
- };
-
- BufferList.prototype.join = function join(s) {
- if (this.length === 0) return '';
- var p = this.head;
- var ret = '' + p.data;
- while (p = p.next) {
- ret += s + p.data;
- }return ret;
- };
-
- BufferList.prototype.concat = function concat(n) {
- if (this.length === 0) return Buffer.alloc(0);
- if (this.length === 1) return this.head.data;
- var ret = Buffer.allocUnsafe(n >>> 0);
- var p = this.head;
- var i = 0;
- while (p) {
- copyBuffer(p.data, ret, i);
- i += p.data.length;
- p = p.next;
- }
- return ret;
- };
-
- return BufferList;
-}();
-
-if (util && util.inspect && util.inspect.custom) {
- module.exports.prototype[util.inspect.custom] = function () {
- var obj = util.inspect({ length: this.length });
- return this.constructor.name + ' ' + obj;
- };
-} \ No newline at end of file
diff --git a/node_modules/readable-stream/lib/internal/streams/destroy.js b/node_modules/readable-stream/lib/internal/streams/destroy.js
deleted file mode 100644
index 5a0a0d8..0000000
--- a/node_modules/readable-stream/lib/internal/streams/destroy.js
+++ /dev/null
@@ -1,74 +0,0 @@
-'use strict';
-
-/*<replacement>*/
-
-var pna = require('process-nextick-args');
-/*</replacement>*/
-
-// undocumented cb() API, needed for core, not for public API
-function destroy(err, cb) {
- var _this = this;
-
- var readableDestroyed = this._readableState && this._readableState.destroyed;
- var writableDestroyed = this._writableState && this._writableState.destroyed;
-
- if (readableDestroyed || writableDestroyed) {
- if (cb) {
- cb(err);
- } else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
- pna.nextTick(emitErrorNT, this, err);
- }
- return this;
- }
-
- // we set destroyed to true before firing error callbacks in order
- // to make it re-entrance safe in case destroy() is called within callbacks
-
- if (this._readableState) {
- this._readableState.destroyed = true;
- }
-
- // if this is a duplex stream mark the writable part as destroyed as well
- if (this._writableState) {
- this._writableState.destroyed = true;
- }
-
- this._destroy(err || null, function (err) {
- if (!cb && err) {
- pna.nextTick(emitErrorNT, _this, err);
- if (_this._writableState) {
- _this._writableState.errorEmitted = true;
- }
- } else if (cb) {
- cb(err);
- }
- });
-
- return this;
-}
-
-function undestroy() {
- if (this._readableState) {
- this._readableState.destroyed = false;
- this._readableState.reading = false;
- this._readableState.ended = false;
- this._readableState.endEmitted = false;
- }
-
- if (this._writableState) {
- this._writableState.destroyed = false;
- this._writableState.ended = false;
- this._writableState.ending = false;
- this._writableState.finished = false;
- this._writableState.errorEmitted = false;
- }
-}
-
-function emitErrorNT(self, err) {
- self.emit('error', err);
-}
-
-module.exports = {
- destroy: destroy,
- undestroy: undestroy
-}; \ No newline at end of file
diff --git a/node_modules/readable-stream/lib/internal/streams/stream-browser.js b/node_modules/readable-stream/lib/internal/streams/stream-browser.js
deleted file mode 100644
index 9332a3f..0000000
--- a/node_modules/readable-stream/lib/internal/streams/stream-browser.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('events').EventEmitter;
diff --git a/node_modules/readable-stream/lib/internal/streams/stream.js b/node_modules/readable-stream/lib/internal/streams/stream.js
deleted file mode 100644
index ce2ad5b..0000000
--- a/node_modules/readable-stream/lib/internal/streams/stream.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('stream');
diff --git a/node_modules/readable-stream/package.json b/node_modules/readable-stream/package.json
deleted file mode 100644
index 184fc03..0000000
--- a/node_modules/readable-stream/package.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "_from": "readable-stream@^2.0.6",
- "_id": "readable-stream@2.3.7",
- "_inBundle": false,
- "_integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
- "_location": "/readable-stream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "readable-stream@^2.0.6",
- "name": "readable-stream",
- "escapedName": "readable-stream",
- "rawSpec": "^2.0.6",
- "saveSpec": null,
- "fetchSpec": "^2.0.6"
- },
- "_requiredBy": [
- "/are-we-there-yet",
- "/stdout-stream"
- ],
- "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
- "_shasum": "1eca1cf711aef814c04f62252a36a62f6cb23b57",
- "_spec": "readable-stream@^2.0.6",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/are-we-there-yet",
- "browser": {
- "util": false,
- "./readable.js": "./readable-browser.js",
- "./writable.js": "./writable-browser.js",
- "./duplex.js": "./duplex-browser.js",
- "./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js"
- },
- "bugs": {
- "url": "https://github.com/nodejs/readable-stream/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "core-util-is": "~1.0.0",
- "inherits": "~2.0.3",
- "isarray": "~1.0.0",
- "process-nextick-args": "~2.0.0",
- "safe-buffer": "~5.1.1",
- "string_decoder": "~1.1.1",
- "util-deprecate": "~1.0.1"
- },
- "deprecated": false,
- "description": "Streams3, a user-land copy of the stream library from Node.js",
- "devDependencies": {
- "assert": "^1.4.0",
- "babel-polyfill": "^6.9.1",
- "buffer": "^4.9.0",
- "lolex": "^2.3.2",
- "nyc": "^6.4.0",
- "tap": "^0.7.0",
- "tape": "^4.8.0"
- },
- "homepage": "https://github.com/nodejs/readable-stream#readme",
- "keywords": [
- "readable",
- "stream",
- "pipe"
- ],
- "license": "MIT",
- "main": "readable.js",
- "name": "readable-stream",
- "nyc": {
- "include": [
- "lib/**.js"
- ]
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/nodejs/readable-stream.git"
- },
- "scripts": {
- "ci": "tap test/parallel/*.js test/ours/*.js --tap | tee test.tap && node test/verify-dependencies.js",
- "cover": "nyc npm test",
- "report": "nyc report --reporter=lcov",
- "test": "tap test/parallel/*.js test/ours/*.js && node test/verify-dependencies.js"
- },
- "version": "2.3.7"
-}
diff --git a/node_modules/readable-stream/passthrough.js b/node_modules/readable-stream/passthrough.js
deleted file mode 100644
index ffd791d..0000000
--- a/node_modules/readable-stream/passthrough.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./readable').PassThrough
diff --git a/node_modules/readable-stream/readable-browser.js b/node_modules/readable-stream/readable-browser.js
deleted file mode 100644
index e503725..0000000
--- a/node_modules/readable-stream/readable-browser.js
+++ /dev/null
@@ -1,7 +0,0 @@
-exports = module.exports = require('./lib/_stream_readable.js');
-exports.Stream = exports;
-exports.Readable = exports;
-exports.Writable = require('./lib/_stream_writable.js');
-exports.Duplex = require('./lib/_stream_duplex.js');
-exports.Transform = require('./lib/_stream_transform.js');
-exports.PassThrough = require('./lib/_stream_passthrough.js');
diff --git a/node_modules/readable-stream/readable.js b/node_modules/readable-stream/readable.js
deleted file mode 100644
index ec89ec5..0000000
--- a/node_modules/readable-stream/readable.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var Stream = require('stream');
-if (process.env.READABLE_STREAM === 'disable' && Stream) {
- module.exports = Stream;
- exports = module.exports = Stream.Readable;
- exports.Readable = Stream.Readable;
- exports.Writable = Stream.Writable;
- exports.Duplex = Stream.Duplex;
- exports.Transform = Stream.Transform;
- exports.PassThrough = Stream.PassThrough;
- exports.Stream = Stream;
-} else {
- exports = module.exports = require('./lib/_stream_readable.js');
- exports.Stream = Stream || exports;
- exports.Readable = exports;
- exports.Writable = require('./lib/_stream_writable.js');
- exports.Duplex = require('./lib/_stream_duplex.js');
- exports.Transform = require('./lib/_stream_transform.js');
- exports.PassThrough = require('./lib/_stream_passthrough.js');
-}
diff --git a/node_modules/readable-stream/transform.js b/node_modules/readable-stream/transform.js
deleted file mode 100644
index b1baba2..0000000
--- a/node_modules/readable-stream/transform.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./readable').Transform
diff --git a/node_modules/readable-stream/writable-browser.js b/node_modules/readable-stream/writable-browser.js
deleted file mode 100644
index ebdde6a..0000000
--- a/node_modules/readable-stream/writable-browser.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./lib/_stream_writable.js');
diff --git a/node_modules/readable-stream/writable.js b/node_modules/readable-stream/writable.js
deleted file mode 100644
index 3211a6f..0000000
--- a/node_modules/readable-stream/writable.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var Stream = require("stream")
-var Writable = require("./lib/_stream_writable.js")
-
-if (process.env.READABLE_STREAM === 'disable') {
- module.exports = Stream && Stream.Writable || Writable
-} else {
- module.exports = Writable
-}
diff --git a/node_modules/redent/index.js b/node_modules/redent/index.js
deleted file mode 100644
index 2b92020..0000000
--- a/node_modules/redent/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-var stripIndent = require('strip-indent');
-var indentString = require('indent-string');
-
-module.exports = function (str, count, indent) {
- return indentString(stripIndent(str), indent || ' ', count || 0);
-};
diff --git a/node_modules/redent/license b/node_modules/redent/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/redent/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/redent/package.json b/node_modules/redent/package.json
deleted file mode 100644
index 4c272c4..0000000
--- a/node_modules/redent/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "redent@^1.0.0",
- "_id": "redent@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=",
- "_location": "/redent",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "redent@^1.0.0",
- "name": "redent",
- "escapedName": "redent",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/meow"
- ],
- "_resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
- "_shasum": "cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde",
- "_spec": "redent@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/redent/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "indent-string": "^2.1.0",
- "strip-indent": "^1.0.1"
- },
- "deprecated": false,
- "description": "Strip redundant indentation and indent the string",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/redent#readme",
- "keywords": [
- "string",
- "str",
- "strip",
- "trim",
- "indent",
- "indentation",
- "add",
- "reindent",
- "normalize",
- "remove",
- "whitespace",
- "space"
- ],
- "license": "MIT",
- "name": "redent",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/redent.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/redent/readme.md b/node_modules/redent/readme.md
deleted file mode 100644
index 8e7a807..0000000
--- a/node_modules/redent/readme.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# redent [![Build Status](https://travis-ci.org/sindresorhus/redent.svg?branch=master)](https://travis-ci.org/sindresorhus/redent)
-
-> [Strip redundant indentation](https://github.com/sindresorhus/strip-indent) and [indent the string](https://github.com/sindresorhus/indent-string)
-
-
-## Install
-
-```
-$ npm install --save redent
-```
-
-
-## Usage
-
-```js
-const redent = require('redent');
-
-redent('\n foo\n bar\n', 1);
-//=> '\n foo\n bar\n'
-```
-
-
-## API
-
-### redent(input, [count], [indent])
-
-#### input
-
-Type: `string`
-
-#### count
-
-Type: `number`
-Default: `0`
-
-How many times you want `indent` repeated.
-
-#### indent
-
-Type: `string`
-Default: `' '`
-
-The string to use for the indent.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/repeating/index.js b/node_modules/repeating/index.js
deleted file mode 100644
index ccae0d7..0000000
--- a/node_modules/repeating/index.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-var isFinite = require('is-finite');
-
-module.exports = function (str, n) {
- if (typeof str !== 'string') {
- throw new TypeError('Expected `input` to be a string');
- }
-
- if (n < 0 || !isFinite(n)) {
- throw new TypeError('Expected `count` to be a positive finite number');
- }
-
- var ret = '';
-
- do {
- if (n & 1) {
- ret += str;
- }
-
- str += str;
- } while ((n >>= 1));
-
- return ret;
-};
diff --git a/node_modules/repeating/license b/node_modules/repeating/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/repeating/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/repeating/package.json b/node_modules/repeating/package.json
deleted file mode 100644
index b532a7a..0000000
--- a/node_modules/repeating/package.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "_from": "repeating@^2.0.0",
- "_id": "repeating@2.0.1",
- "_inBundle": false,
- "_integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=",
- "_location": "/repeating",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "repeating@^2.0.0",
- "name": "repeating",
- "escapedName": "repeating",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/indent-string"
- ],
- "_resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
- "_shasum": "5214c53a926d3552707527fbab415dbc08d06dda",
- "_spec": "repeating@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/indent-string",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/repeating/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "is-finite": "^1.0.0"
- },
- "deprecated": false,
- "description": "Repeat a string - fast",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/repeating#readme",
- "keywords": [
- "repeat",
- "string",
- "repeating",
- "str",
- "text",
- "fill",
- "pad"
- ],
- "license": "MIT",
- "name": "repeating",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/repeating.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "2.0.1"
-}
diff --git a/node_modules/repeating/readme.md b/node_modules/repeating/readme.md
deleted file mode 100644
index 06f0b69..0000000
--- a/node_modules/repeating/readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# repeating [![Build Status](https://travis-ci.org/sindresorhus/repeating.svg?branch=master)](https://travis-ci.org/sindresorhus/repeating)
-
-> Repeat a string - fast
-
-
-## Install
-
-```
-$ npm install --save repeating
-```
-
-
-## Usage
-
-```js
-const repeating = require('repeating');
-
-repeating('unicorn ', 100);
-//=> 'unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn '
-```
-
-
-## Related
-
-- [repeating-cli](https://github.com/sindresorhus/repeating-cli) - CLI for this module
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/request/CHANGELOG.md b/node_modules/request/CHANGELOG.md
deleted file mode 100644
index d3ffcd0..0000000
--- a/node_modules/request/CHANGELOG.md
+++ /dev/null
@@ -1,717 +0,0 @@
-## Change Log
-
-### v2.88.0 (2018/08/10)
-- [#2996](https://github.com/request/request/pull/2996) fix(uuid): import versioned uuid (@kwonoj)
-- [#2994](https://github.com/request/request/pull/2994) Update to oauth-sign 0.9.0 (@dlecocq)
-- [#2993](https://github.com/request/request/pull/2993) Fix header tests (@simov)
-- [#2904](https://github.com/request/request/pull/2904) #515, #2894 Strip port suffix from Host header if the protocol is known. (#2904) (@paambaati)
-- [#2791](https://github.com/request/request/pull/2791) Improve AWS SigV4 support. (#2791) (@vikhyat)
-- [#2977](https://github.com/request/request/pull/2977) Update test certificates (@simov)
-
-### v2.87.0 (2018/05/21)
-- [#2943](https://github.com/request/request/pull/2943) Replace hawk dependency with a local implemenation (#2943) (@hueniverse)
-
-### v2.86.0 (2018/05/15)
-- [#2885](https://github.com/request/request/pull/2885) Remove redundant code (for Node.js 0.9.4 and below) and dependency (@ChALkeR)
-- [#2942](https://github.com/request/request/pull/2942) Make Test GREEN Again! (@simov)
-- [#2923](https://github.com/request/request/pull/2923) Alterations for failing CI tests (@gareth-robinson)
-
-### v2.85.0 (2018/03/12)
-- [#2880](https://github.com/request/request/pull/2880) Revert "Update hawk to 7.0.7 (#2880)" (@simov)
-
-### v2.84.0 (2018/03/12)
-- [#2793](https://github.com/request/request/pull/2793) Fixed calculation of oauth_body_hash, issue #2792 (@dvishniakov)
-- [#2880](https://github.com/request/request/pull/2880) Update hawk to 7.0.7 (#2880) (@kornel-kedzierski)
-
-### v2.83.0 (2017/09/27)
-- [#2776](https://github.com/request/request/pull/2776) Updating tough-cookie due to security fix. (#2776) (@karlnorling)
-
-### v2.82.0 (2017/09/19)
-- [#2703](https://github.com/request/request/pull/2703) Add Node.js v8 to Travis CI (@ryysud)
-- [#2751](https://github.com/request/request/pull/2751) Update of hawk and qs to latest version (#2751) (@Olivier-Moreau)
-- [#2658](https://github.com/request/request/pull/2658) Fixed some text in README.md (#2658) (@Marketionist)
-- [#2635](https://github.com/request/request/pull/2635) chore(package): update aws-sign2 to version 0.7.0 (#2635) (@greenkeeperio-bot)
-- [#2641](https://github.com/request/request/pull/2641) Update README to simplify & update convenience methods (#2641) (@FredKSchott)
-- [#2541](https://github.com/request/request/pull/2541) Add convenience method for HTTP OPTIONS (#2541) (@jamesseanwright)
-- [#2605](https://github.com/request/request/pull/2605) Add promise support section to README (#2605) (@FredKSchott)
-- [#2579](https://github.com/request/request/pull/2579) refactor(lint): replace eslint with standard (#2579) (@ahmadnassri)
-- [#2598](https://github.com/request/request/pull/2598) Update codecov to version 2.0.2 🚀 (@greenkeeperio-bot)
-- [#2590](https://github.com/request/request/pull/2590) Adds test-timing keepAlive test (@nicjansma)
-- [#2589](https://github.com/request/request/pull/2589) fix tabulation on request example README.MD (@odykyi)
-- [#2594](https://github.com/request/request/pull/2594) chore(dependencies): har-validator to 5.x [removes babel dep] (@ahmadnassri)
-
-### v2.81.0 (2017/03/09)
-- [#2584](https://github.com/request/request/pull/2584) Security issue: Upgrade qs to version 6.4.0 (@sergejmueller)
-- [#2578](https://github.com/request/request/pull/2578) safe-buffer doesn't zero-fill by default, its just a polyfill. (#2578) (@mikeal)
-- [#2566](https://github.com/request/request/pull/2566) Timings: Tracks 'lookup', adds 'wait' time, fixes connection re-use (#2566) (@nicjansma)
-- [#2574](https://github.com/request/request/pull/2574) Migrating to safe-buffer for improved security. (@mikeal)
-- [#2573](https://github.com/request/request/pull/2573) fixes #2572 (@ahmadnassri)
-
-### v2.80.0 (2017/03/04)
-- [#2571](https://github.com/request/request/pull/2571) Correctly format the Host header for IPv6 addresses (@JamesMGreene)
-- [#2558](https://github.com/request/request/pull/2558) Update README.md example snippet (@FredKSchott)
-- [#2221](https://github.com/request/request/pull/2221) Adding a simple Response object reference in argument specification (@calamarico)
-- [#2452](https://github.com/request/request/pull/2452) Adds .timings array with DNC, TCP, request and response times (@nicjansma)
-- [#2553](https://github.com/request/request/pull/2553) add ISSUE_TEMPLATE, move PR template (@FredKSchott)
-- [#2539](https://github.com/request/request/pull/2539) Create PULL_REQUEST_TEMPLATE.md (@FredKSchott)
-- [#2524](https://github.com/request/request/pull/2524) Update caseless to version 0.12.0 🚀 (@greenkeeperio-bot)
-- [#2460](https://github.com/request/request/pull/2460) Fix wrong MIME type in example (@OwnageIsMagic)
-- [#2514](https://github.com/request/request/pull/2514) Change tags to keywords in package.json (@humphd)
-- [#2492](https://github.com/request/request/pull/2492) More lenient gzip decompression (@addaleax)
-
-### v2.79.0 (2016/11/18)
-- [#2368](https://github.com/request/request/pull/2368) Fix typeof check in test-pool.js (@forivall)
-- [#2394](https://github.com/request/request/pull/2394) Use `files` in package.json (@SimenB)
-- [#2463](https://github.com/request/request/pull/2463) AWS support for session tokens for temporary credentials (@simov)
-- [#2467](https://github.com/request/request/pull/2467) Migrate to uuid (@simov, @antialias)
-- [#2459](https://github.com/request/request/pull/2459) Update taper to version 0.5.0 🚀 (@greenkeeperio-bot)
-- [#2448](https://github.com/request/request/pull/2448) Make other connect timeout test more reliable too (@mscdex)
-
-### v2.78.0 (2016/11/03)
-- [#2447](https://github.com/request/request/pull/2447) Always set request timeout on keep-alive connections (@mscdex)
-
-### v2.77.0 (2016/11/03)
-- [#2439](https://github.com/request/request/pull/2439) Fix socket 'connect' listener handling (@mscdex)
-- [#2442](https://github.com/request/request/pull/2442) 👻😱 Node.js 0.10 is unmaintained 😱👻 (@greenkeeperio-bot)
-- [#2435](https://github.com/request/request/pull/2435) Add followOriginalHttpMethod to redirect to original HTTP method (@kirrg001)
-- [#2414](https://github.com/request/request/pull/2414) Improve test-timeout reliability (@mscdex)
-
-### v2.76.0 (2016/10/25)
-- [#2424](https://github.com/request/request/pull/2424) Handle buffers directly instead of using "bl" (@zertosh)
-- [#2415](https://github.com/request/request/pull/2415) Re-enable timeout tests on Travis + other fixes (@mscdex)
-- [#2431](https://github.com/request/request/pull/2431) Improve timeouts accuracy and node v6.8.0+ compatibility (@mscdex, @greenkeeperio-bot)
-- [#2428](https://github.com/request/request/pull/2428) Update qs to version 6.3.0 🚀 (@greenkeeperio-bot)
-- [#2420](https://github.com/request/request/pull/2420) change .on to .once, remove possible memory leaks (@duereg)
-- [#2426](https://github.com/request/request/pull/2426) Remove "isFunction" helper in favor of "typeof" check (@zertosh)
-- [#2425](https://github.com/request/request/pull/2425) Simplify "defer" helper creation (@zertosh)
-- [#2402](https://github.com/request/request/pull/2402) form-data@2.1.1 breaks build 🚨 (@greenkeeperio-bot)
-- [#2393](https://github.com/request/request/pull/2393) Update form-data to version 2.1.0 🚀 (@greenkeeperio-bot)
-
-### v2.75.0 (2016/09/17)
-- [#2381](https://github.com/request/request/pull/2381) Drop support for Node 0.10 (@simov)
-- [#2377](https://github.com/request/request/pull/2377) Update form-data to version 2.0.0 🚀 (@greenkeeperio-bot)
-- [#2353](https://github.com/request/request/pull/2353) Add greenkeeper ignored packages (@simov)
-- [#2351](https://github.com/request/request/pull/2351) Update karma-tap to version 3.0.1 🚀 (@greenkeeperio-bot)
-- [#2348](https://github.com/request/request/pull/2348) form-data@1.0.1 breaks build 🚨 (@greenkeeperio-bot)
-- [#2349](https://github.com/request/request/pull/2349) Check error type instead of string (@scotttrinh)
-
-### v2.74.0 (2016/07/22)
-- [#2295](https://github.com/request/request/pull/2295) Update tough-cookie to 2.3.0 (@stash-sfdc)
-- [#2280](https://github.com/request/request/pull/2280) Update karma-tap to version 2.0.1 🚀 (@greenkeeperio-bot)
-
-### v2.73.0 (2016/07/09)
-- [#2240](https://github.com/request/request/pull/2240) Remove connectionErrorHandler to fix #1903 (@zarenner)
-- [#2251](https://github.com/request/request/pull/2251) tape@4.6.0 breaks build 🚨 (@greenkeeperio-bot)
-- [#2225](https://github.com/request/request/pull/2225) Update docs (@ArtskydJ)
-- [#2203](https://github.com/request/request/pull/2203) Update browserify to version 13.0.1 🚀 (@greenkeeperio-bot)
-- [#2275](https://github.com/request/request/pull/2275) Update karma to version 1.1.1 🚀 (@greenkeeperio-bot)
-- [#2204](https://github.com/request/request/pull/2204) Add codecov.yml and disable PR comments (@simov)
-- [#2212](https://github.com/request/request/pull/2212) Fix link to http.IncomingMessage documentation (@nazieb)
-- [#2208](https://github.com/request/request/pull/2208) Update to form-data RC4 and pass null values to it (@simov)
-- [#2207](https://github.com/request/request/pull/2207) Move aws4 require statement to the top (@simov)
-- [#2199](https://github.com/request/request/pull/2199) Update karma-coverage to version 1.0.0 🚀 (@greenkeeperio-bot)
-- [#2206](https://github.com/request/request/pull/2206) Update qs to version 6.2.0 🚀 (@greenkeeperio-bot)
-- [#2205](https://github.com/request/request/pull/2205) Use server-destory to close hanging sockets in tests (@simov)
-- [#2200](https://github.com/request/request/pull/2200) Update karma-cli to version 1.0.0 🚀 (@greenkeeperio-bot)
-
-### v2.72.0 (2016/04/17)
-- [#2176](https://github.com/request/request/pull/2176) Do not try to pipe Gzip responses with no body (@simov)
-- [#2175](https://github.com/request/request/pull/2175) Add 'delete' alias for the 'del' API method (@simov, @MuhanZou)
-- [#2172](https://github.com/request/request/pull/2172) Add support for deflate content encoding (@czardoz)
-- [#2169](https://github.com/request/request/pull/2169) Add callback option (@simov)
-- [#2165](https://github.com/request/request/pull/2165) Check for self.req existence inside the write method (@simov)
-- [#2167](https://github.com/request/request/pull/2167) Fix TravisCI badge reference master branch (@a0viedo)
-
-### v2.71.0 (2016/04/12)
-- [#2164](https://github.com/request/request/pull/2164) Catch errors from the underlying http module (@simov)
-
-### v2.70.0 (2016/04/05)
-- [#2147](https://github.com/request/request/pull/2147) Update eslint to version 2.5.3 🚀 (@simov, @greenkeeperio-bot)
-- [#2009](https://github.com/request/request/pull/2009) Support JSON stringify replacer argument. (@elyobo)
-- [#2142](https://github.com/request/request/pull/2142) Update eslint to version 2.5.1 🚀 (@greenkeeperio-bot)
-- [#2128](https://github.com/request/request/pull/2128) Update browserify-istanbul to version 2.0.0 🚀 (@greenkeeperio-bot)
-- [#2115](https://github.com/request/request/pull/2115) Update eslint to version 2.3.0 🚀 (@simov, @greenkeeperio-bot)
-- [#2089](https://github.com/request/request/pull/2089) Fix badges (@simov)
-- [#2092](https://github.com/request/request/pull/2092) Update browserify-istanbul to version 1.0.0 🚀 (@greenkeeperio-bot)
-- [#2079](https://github.com/request/request/pull/2079) Accept read stream as body option (@simov)
-- [#2070](https://github.com/request/request/pull/2070) Update bl to version 1.1.2 🚀 (@greenkeeperio-bot)
-- [#2063](https://github.com/request/request/pull/2063) Up bluebird and oauth-sign (@simov)
-- [#2058](https://github.com/request/request/pull/2058) Karma fixes for latest versions (@eiriksm)
-- [#2057](https://github.com/request/request/pull/2057) Update contributing guidelines (@simov)
-- [#2054](https://github.com/request/request/pull/2054) Update qs to version 6.1.0 🚀 (@greenkeeperio-bot)
-
-### v2.69.0 (2016/01/27)
-- [#2041](https://github.com/request/request/pull/2041) restore aws4 as regular dependency (@rmg)
-
-### v2.68.0 (2016/01/27)
-- [#2036](https://github.com/request/request/pull/2036) Add AWS Signature Version 4 (@simov, @mirkods)
-- [#2022](https://github.com/request/request/pull/2022) Convert numeric multipart bodies to string (@simov, @feross)
-- [#2024](https://github.com/request/request/pull/2024) Update har-validator dependency for nsp advisory #76 (@TylerDixon)
-- [#2016](https://github.com/request/request/pull/2016) Update qs to version 6.0.2 🚀 (@greenkeeperio-bot)
-- [#2007](https://github.com/request/request/pull/2007) Use the `extend` module instead of util._extend (@simov)
-- [#2003](https://github.com/request/request/pull/2003) Update browserify to version 13.0.0 🚀 (@greenkeeperio-bot)
-- [#1989](https://github.com/request/request/pull/1989) Update buffer-equal to version 1.0.0 🚀 (@greenkeeperio-bot)
-- [#1956](https://github.com/request/request/pull/1956) Check form-data content-length value before setting up the header (@jongyoonlee)
-- [#1958](https://github.com/request/request/pull/1958) Use IncomingMessage.destroy method (@simov)
-- [#1952](https://github.com/request/request/pull/1952) Adds example for Tor proxy (@prometheansacrifice)
-- [#1943](https://github.com/request/request/pull/1943) Update eslint to version 1.10.3 🚀 (@simov, @greenkeeperio-bot)
-- [#1924](https://github.com/request/request/pull/1924) Update eslint to version 1.10.1 🚀 (@greenkeeperio-bot)
-- [#1915](https://github.com/request/request/pull/1915) Remove content-length and transfer-encoding headers from defaultProxyHeaderWhiteList (@yaxia)
-
-### v2.67.0 (2015/11/19)
-- [#1913](https://github.com/request/request/pull/1913) Update http-signature to version 1.1.0 🚀 (@greenkeeperio-bot)
-
-### v2.66.0 (2015/11/18)
-- [#1906](https://github.com/request/request/pull/1906) Update README URLs based on HTTP redirects (@ReadmeCritic)
-- [#1905](https://github.com/request/request/pull/1905) Convert typed arrays into regular buffers (@simov)
-- [#1902](https://github.com/request/request/pull/1902) node-uuid@1.4.7 breaks build 🚨 (@greenkeeperio-bot)
-- [#1894](https://github.com/request/request/pull/1894) Fix tunneling after redirection from https (Original: #1881) (@simov, @falms)
-- [#1893](https://github.com/request/request/pull/1893) Update eslint to version 1.9.0 🚀 (@greenkeeperio-bot)
-- [#1852](https://github.com/request/request/pull/1852) Update eslint to version 1.7.3 🚀 (@simov, @greenkeeperio-bot, @paulomcnally, @michelsalib, @arbaaz, @nsklkn, @LoicMahieu, @JoshWillik, @jzaefferer, @ryanwholey, @djchie, @thisconnect, @mgenereu, @acroca, @Sebmaster, @KoltesDigital)
-- [#1876](https://github.com/request/request/pull/1876) Implement loose matching for har mime types (@simov)
-- [#1875](https://github.com/request/request/pull/1875) Update bluebird to version 3.0.2 🚀 (@simov, @greenkeeperio-bot)
-- [#1871](https://github.com/request/request/pull/1871) Update browserify to version 12.0.1 🚀 (@greenkeeperio-bot)
-- [#1866](https://github.com/request/request/pull/1866) Add missing quotes on x-token property in README (@miguelmota)
-- [#1874](https://github.com/request/request/pull/1874) Fix typo in README.md (@gswalden)
-- [#1860](https://github.com/request/request/pull/1860) Improve referer header tests and docs (@simov)
-- [#1861](https://github.com/request/request/pull/1861) Remove redundant call to Stream constructor (@watson)
-- [#1857](https://github.com/request/request/pull/1857) Fix Referer header to point to the original host name (@simov)
-- [#1850](https://github.com/request/request/pull/1850) Update karma-coverage to version 0.5.3 🚀 (@greenkeeperio-bot)
-- [#1847](https://github.com/request/request/pull/1847) Use node's latest version when building (@simov)
-- [#1836](https://github.com/request/request/pull/1836) Tunnel: fix wrong property name (@KoltesDigital)
-- [#1820](https://github.com/request/request/pull/1820) Set href as request.js uses it (@mgenereu)
-- [#1840](https://github.com/request/request/pull/1840) Update http-signature to version 1.0.2 🚀 (@greenkeeperio-bot)
-- [#1845](https://github.com/request/request/pull/1845) Update istanbul to version 0.4.0 🚀 (@greenkeeperio-bot)
-
-### v2.65.0 (2015/10/11)
-- [#1833](https://github.com/request/request/pull/1833) Update aws-sign2 to version 0.6.0 🚀 (@greenkeeperio-bot)
-- [#1811](https://github.com/request/request/pull/1811) Enable loose cookie parsing in tough-cookie (@Sebmaster)
-- [#1830](https://github.com/request/request/pull/1830) Bring back tilde ranges for all dependencies (@simov)
-- [#1821](https://github.com/request/request/pull/1821) Implement support for RFC 2617 MD5-sess algorithm. (@BigDSK)
-- [#1828](https://github.com/request/request/pull/1828) Updated qs dependency to 5.2.0 (@acroca)
-- [#1818](https://github.com/request/request/pull/1818) Extract `readResponseBody` method out of `onRequestResponse` (@pvoisin)
-- [#1819](https://github.com/request/request/pull/1819) Run stringify once (@mgenereu)
-- [#1814](https://github.com/request/request/pull/1814) Updated har-validator to version 2.0.2 (@greenkeeperio-bot)
-- [#1807](https://github.com/request/request/pull/1807) Updated tough-cookie to version 2.1.0 (@greenkeeperio-bot)
-- [#1800](https://github.com/request/request/pull/1800) Add caret ranges for devDependencies, except eslint (@simov)
-- [#1799](https://github.com/request/request/pull/1799) Updated karma-browserify to version 4.4.0 (@greenkeeperio-bot)
-- [#1797](https://github.com/request/request/pull/1797) Updated tape to version 4.2.0 (@greenkeeperio-bot)
-- [#1788](https://github.com/request/request/pull/1788) Pinned all dependencies (@greenkeeperio-bot)
-
-### v2.64.0 (2015/09/25)
-- [#1787](https://github.com/request/request/pull/1787) npm ignore examples, release.sh and disabled.appveyor.yml (@thisconnect)
-- [#1775](https://github.com/request/request/pull/1775) Fix typo in README.md (@djchie)
-- [#1776](https://github.com/request/request/pull/1776) Changed word 'conjuction' to read 'conjunction' in README.md (@ryanwholey)
-- [#1785](https://github.com/request/request/pull/1785) Revert: Set default application/json content-type when using json option #1772 (@simov)
-
-### v2.63.0 (2015/09/21)
-- [#1772](https://github.com/request/request/pull/1772) Set default application/json content-type when using json option (@jzaefferer)
-
-### v2.62.0 (2015/09/15)
-- [#1768](https://github.com/request/request/pull/1768) Add node 4.0 to the list of build targets (@simov)
-- [#1767](https://github.com/request/request/pull/1767) Query strings now cooperate with unix sockets (@JoshWillik)
-- [#1750](https://github.com/request/request/pull/1750) Revert doc about installation of tough-cookie added in #884 (@LoicMahieu)
-- [#1746](https://github.com/request/request/pull/1746) Missed comma in Readme (@nsklkn)
-- [#1743](https://github.com/request/request/pull/1743) Fix options not being initialized in defaults method (@simov)
-
-### v2.61.0 (2015/08/19)
-- [#1721](https://github.com/request/request/pull/1721) Minor fix in README.md (@arbaaz)
-- [#1733](https://github.com/request/request/pull/1733) Avoid useless Buffer transformation (@michelsalib)
-- [#1726](https://github.com/request/request/pull/1726) Update README.md (@paulomcnally)
-- [#1715](https://github.com/request/request/pull/1715) Fix forever option in node > 0.10 #1709 (@calibr)
-- [#1716](https://github.com/request/request/pull/1716) Do not create Buffer from Object in setContentLength(iojs v3.0 issue) (@calibr)
-- [#1711](https://github.com/request/request/pull/1711) Add ability to detect connect timeouts (@kevinburke)
-- [#1712](https://github.com/request/request/pull/1712) Set certificate expiration to August 2, 2018 (@kevinburke)
-- [#1700](https://github.com/request/request/pull/1700) debug() when JSON.parse() on a response body fails (@phillipj)
-
-### v2.60.0 (2015/07/21)
-- [#1687](https://github.com/request/request/pull/1687) Fix caseless bug - content-type not being set for multipart/form-data (@simov, @garymathews)
-
-### v2.59.0 (2015/07/20)
-- [#1671](https://github.com/request/request/pull/1671) Add tests and docs for using the agent, agentClass, agentOptions and forever options.
- Forever option defaults to using http(s).Agent in node 0.12+ (@simov)
-- [#1679](https://github.com/request/request/pull/1679) Fix - do not remove OAuth param when using OAuth realm (@simov, @jhalickman)
-- [#1668](https://github.com/request/request/pull/1668) updated dependencies (@deamme)
-- [#1656](https://github.com/request/request/pull/1656) Fix form method (@simov)
-- [#1651](https://github.com/request/request/pull/1651) Preserve HEAD method when using followAllRedirects (@simov)
-- [#1652](https://github.com/request/request/pull/1652) Update `encoding` option documentation in README.md (@daniel347x)
-- [#1650](https://github.com/request/request/pull/1650) Allow content-type overriding when using the `form` option (@simov)
-- [#1646](https://github.com/request/request/pull/1646) Clarify the nature of setting `ca` in `agentOptions` (@jeffcharles)
-
-### v2.58.0 (2015/06/16)
-- [#1638](https://github.com/request/request/pull/1638) Use the `extend` module to deep extend in the defaults method (@simov)
-- [#1631](https://github.com/request/request/pull/1631) Move tunnel logic into separate module (@simov)
-- [#1634](https://github.com/request/request/pull/1634) Fix OAuth query transport_method (@simov)
-- [#1603](https://github.com/request/request/pull/1603) Add codecov (@simov)
-
-### v2.57.0 (2015/05/31)
-- [#1615](https://github.com/request/request/pull/1615) Replace '.client' with '.socket' as the former was deprecated in 2.2.0. (@ChALkeR)
-
-### v2.56.0 (2015/05/28)
-- [#1610](https://github.com/request/request/pull/1610) Bump module dependencies (@simov)
-- [#1600](https://github.com/request/request/pull/1600) Extract the querystring logic into separate module (@simov)
-- [#1607](https://github.com/request/request/pull/1607) Re-generate certificates (@simov)
-- [#1599](https://github.com/request/request/pull/1599) Move getProxyFromURI logic below the check for Invaild URI (#1595) (@simov)
-- [#1598](https://github.com/request/request/pull/1598) Fix the way http verbs are defined in order to please intellisense IDEs (@simov, @flannelJesus)
-- [#1591](https://github.com/request/request/pull/1591) A few minor fixes: (@simov)
-- [#1584](https://github.com/request/request/pull/1584) Refactor test-default tests (according to comments in #1430) (@simov)
-- [#1585](https://github.com/request/request/pull/1585) Fixing documentation regarding TLS options (#1583) (@mainakae)
-- [#1574](https://github.com/request/request/pull/1574) Refresh the oauth_nonce on redirect (#1573) (@simov)
-- [#1570](https://github.com/request/request/pull/1570) Discovered tests that weren't properly running (@seanstrom)
-- [#1569](https://github.com/request/request/pull/1569) Fix pause before response arrives (@kevinoid)
-- [#1558](https://github.com/request/request/pull/1558) Emit error instead of throw (@simov)
-- [#1568](https://github.com/request/request/pull/1568) Fix stall when piping gzipped response (@kevinoid)
-- [#1560](https://github.com/request/request/pull/1560) Update combined-stream (@apechimp)
-- [#1543](https://github.com/request/request/pull/1543) Initial support for oauth_body_hash on json payloads (@simov, @aesopwolf)
-- [#1541](https://github.com/request/request/pull/1541) Fix coveralls (@simov)
-- [#1540](https://github.com/request/request/pull/1540) Fix recursive defaults for convenience methods (@simov)
-- [#1536](https://github.com/request/request/pull/1536) More eslint style rules (@froatsnook)
-- [#1533](https://github.com/request/request/pull/1533) Adding dependency status bar to README.md (@YasharF)
-- [#1539](https://github.com/request/request/pull/1539) ensure the latest version of har-validator is included (@ahmadnassri)
-- [#1516](https://github.com/request/request/pull/1516) forever+pool test (@devTristan)
-
-### v2.55.0 (2015/04/05)
-- [#1520](https://github.com/request/request/pull/1520) Refactor defaults (@simov)
-- [#1525](https://github.com/request/request/pull/1525) Delete request headers with undefined value. (@froatsnook)
-- [#1521](https://github.com/request/request/pull/1521) Add promise tests (@simov)
-- [#1518](https://github.com/request/request/pull/1518) Fix defaults (@simov)
-- [#1515](https://github.com/request/request/pull/1515) Allow static invoking of convenience methods (@simov)
-- [#1505](https://github.com/request/request/pull/1505) Fix multipart boundary extraction regexp (@simov)
-- [#1510](https://github.com/request/request/pull/1510) Fix basic auth form data (@simov)
-
-### v2.54.0 (2015/03/24)
-- [#1501](https://github.com/request/request/pull/1501) HTTP Archive 1.2 support (@ahmadnassri)
-- [#1486](https://github.com/request/request/pull/1486) Add a test for the forever agent (@akshayp)
-- [#1500](https://github.com/request/request/pull/1500) Adding handling for no auth method and null bearer (@philberg)
-- [#1498](https://github.com/request/request/pull/1498) Add table of contents in readme (@simov)
-- [#1477](https://github.com/request/request/pull/1477) Add support for qs options via qsOptions key (@simov)
-- [#1496](https://github.com/request/request/pull/1496) Parameters encoded to base 64 should be decoded as UTF-8, not ASCII. (@albanm)
-- [#1494](https://github.com/request/request/pull/1494) Update eslint (@froatsnook)
-- [#1474](https://github.com/request/request/pull/1474) Require Colon in Basic Auth (@erykwalder)
-- [#1481](https://github.com/request/request/pull/1481) Fix baseUrl and redirections. (@burningtree)
-- [#1469](https://github.com/request/request/pull/1469) Feature/base url (@froatsnook)
-- [#1459](https://github.com/request/request/pull/1459) Add option to time request/response cycle (including rollup of redirects) (@aaron-em)
-- [#1468](https://github.com/request/request/pull/1468) Re-enable io.js/node 0.12 build (@simov, @mikeal, @BBB)
-- [#1442](https://github.com/request/request/pull/1442) Fixed the issue with strictSSL tests on 0.12 & io.js by explicitly setting a cipher that matches the cert. (@BBB, @nickmccurdy, @demohi, @simov, @0x4139)
-- [#1460](https://github.com/request/request/pull/1460) localAddress or proxy config is lost when redirecting (@simov, @0x4139)
-- [#1453](https://github.com/request/request/pull/1453) Test on Node.js 0.12 and io.js with allowed failures (@nickmccurdy, @demohi)
-- [#1426](https://github.com/request/request/pull/1426) Fixing tests to pass on io.js and node 0.12 (only test-https.js stiff failing) (@mikeal)
-- [#1446](https://github.com/request/request/pull/1446) Missing HTTP referer header with redirects Fixes #1038 (@simov, @guimon)
-- [#1428](https://github.com/request/request/pull/1428) Deprecate Node v0.8.x (@nylen)
-- [#1436](https://github.com/request/request/pull/1436) Add ability to set a requester without setting default options (@tikotzky)
-- [#1435](https://github.com/request/request/pull/1435) dry up verb methods (@sethpollack)
-- [#1423](https://github.com/request/request/pull/1423) Allow fully qualified multipart content-type header (@simov)
-- [#1430](https://github.com/request/request/pull/1430) Fix recursive requester (@tikotzky)
-- [#1429](https://github.com/request/request/pull/1429) Throw error when making HEAD request with a body (@tikotzky)
-- [#1419](https://github.com/request/request/pull/1419) Add note that the project is broken in 0.12.x (@nylen)
-- [#1413](https://github.com/request/request/pull/1413) Fix basic auth (@simov)
-- [#1397](https://github.com/request/request/pull/1397) Improve pipe-from-file tests (@nylen)
-
-### v2.53.0 (2015/02/02)
-- [#1396](https://github.com/request/request/pull/1396) Do not rfc3986 escape JSON bodies (@nylen, @simov)
-- [#1392](https://github.com/request/request/pull/1392) Improve `timeout` option description (@watson)
-
-### v2.52.0 (2015/02/02)
-- [#1383](https://github.com/request/request/pull/1383) Add missing HTTPS options that were not being passed to tunnel (@brichard19) (@nylen)
-- [#1388](https://github.com/request/request/pull/1388) Upgrade mime-types package version (@roderickhsiao)
-- [#1389](https://github.com/request/request/pull/1389) Revise Setup Tunnel Function (@seanstrom)
-- [#1374](https://github.com/request/request/pull/1374) Allow explicitly disabling tunneling for proxied https destinations (@nylen)
-- [#1376](https://github.com/request/request/pull/1376) Use karma-browserify for tests. Add browser test coverage reporter. (@eiriksm)
-- [#1366](https://github.com/request/request/pull/1366) Refactor OAuth into separate module (@simov)
-- [#1373](https://github.com/request/request/pull/1373) Rewrite tunnel test to be pure Node.js (@nylen)
-- [#1371](https://github.com/request/request/pull/1371) Upgrade test reporter (@nylen)
-- [#1360](https://github.com/request/request/pull/1360) Refactor basic, bearer, digest auth logic into separate class (@simov)
-- [#1354](https://github.com/request/request/pull/1354) Remove circular dependency from debugging code (@nylen)
-- [#1351](https://github.com/request/request/pull/1351) Move digest auth into private prototype method (@simov)
-- [#1352](https://github.com/request/request/pull/1352) Update hawk dependency to ~2.3.0 (@mridgway)
-- [#1353](https://github.com/request/request/pull/1353) Correct travis-ci badge (@dogancelik)
-- [#1349](https://github.com/request/request/pull/1349) Make sure we return on errored browser requests. (@eiriksm)
-- [#1346](https://github.com/request/request/pull/1346) getProxyFromURI Extraction Refactor (@seanstrom)
-- [#1337](https://github.com/request/request/pull/1337) Standardize test ports on 6767 (@nylen)
-- [#1341](https://github.com/request/request/pull/1341) Emit FormData error events as Request error events (@nylen, @rwky)
-- [#1343](https://github.com/request/request/pull/1343) Clean up readme badges, and add Travis and Coveralls badges (@nylen)
-- [#1345](https://github.com/request/request/pull/1345) Update README.md (@Aaron-Hartwig)
-- [#1338](https://github.com/request/request/pull/1338) Always wait for server.close() callback in tests (@nylen)
-- [#1342](https://github.com/request/request/pull/1342) Add mock https server and redo start of browser tests for this purpose. (@eiriksm)
-- [#1339](https://github.com/request/request/pull/1339) Improve auth docs (@nylen)
-- [#1335](https://github.com/request/request/pull/1335) Add support for OAuth plaintext signature method (@simov)
-- [#1332](https://github.com/request/request/pull/1332) Add clean script to remove test-browser.js after the tests run (@seanstrom)
-- [#1327](https://github.com/request/request/pull/1327) Fix errors generating coverage reports. (@nylen)
-- [#1330](https://github.com/request/request/pull/1330) Return empty buffer upon empty response body and encoding is set to null (@seanstrom)
-- [#1326](https://github.com/request/request/pull/1326) Use faster container-based infrastructure on Travis (@nylen)
-- [#1315](https://github.com/request/request/pull/1315) Implement rfc3986 option (@simov, @nylen, @apoco, @DullReferenceException, @mmalecki, @oliamb, @cliffcrosland, @LewisJEllis, @eiriksm, @poislagarde)
-- [#1314](https://github.com/request/request/pull/1314) Detect urlencoded form data header via regex (@simov)
-- [#1317](https://github.com/request/request/pull/1317) Improve OAuth1.0 server side flow example (@simov)
-
-### v2.51.0 (2014/12/10)
-- [#1310](https://github.com/request/request/pull/1310) Revert changes introduced in https://github.com/request/request/pull/1282 (@simov)
-
-### v2.50.0 (2014/12/09)
-- [#1308](https://github.com/request/request/pull/1308) Add browser test to keep track of browserify compability. (@eiriksm)
-- [#1299](https://github.com/request/request/pull/1299) Add optional support for jsonReviver (@poislagarde)
-- [#1277](https://github.com/request/request/pull/1277) Add Coveralls configuration (@simov)
-- [#1307](https://github.com/request/request/pull/1307) Upgrade form-data, add back browserify compability. Fixes #455. (@eiriksm)
-- [#1305](https://github.com/request/request/pull/1305) Fix typo in README.md (@LewisJEllis)
-- [#1288](https://github.com/request/request/pull/1288) Update README.md to explain custom file use case (@cliffcrosland)
-
-### v2.49.0 (2014/11/28)
-- [#1295](https://github.com/request/request/pull/1295) fix(proxy): no-proxy false positive (@oliamb)
-- [#1292](https://github.com/request/request/pull/1292) Upgrade `caseless` to 0.8.1 (@mmalecki)
-- [#1276](https://github.com/request/request/pull/1276) Set transfer encoding for multipart/related to chunked by default (@simov)
-- [#1275](https://github.com/request/request/pull/1275) Fix multipart content-type headers detection (@simov)
-- [#1269](https://github.com/request/request/pull/1269) adds streams example for review (@tbuchok)
-- [#1238](https://github.com/request/request/pull/1238) Add examples README.md (@simov)
-
-### v2.48.0 (2014/11/12)
-- [#1263](https://github.com/request/request/pull/1263) Fixed a syntax error / typo in README.md (@xna2)
-- [#1253](https://github.com/request/request/pull/1253) Add multipart chunked flag (@simov, @nylen)
-- [#1251](https://github.com/request/request/pull/1251) Clarify that defaults() does not modify global defaults (@nylen)
-- [#1250](https://github.com/request/request/pull/1250) Improve documentation for pool and maxSockets options (@nylen)
-- [#1237](https://github.com/request/request/pull/1237) Documenting error handling when using streams (@vmattos)
-- [#1244](https://github.com/request/request/pull/1244) Finalize changelog command (@nylen)
-- [#1241](https://github.com/request/request/pull/1241) Fix typo (@alexanderGugel)
-- [#1223](https://github.com/request/request/pull/1223) Show latest version number instead of "upcoming" in changelog (@nylen)
-- [#1236](https://github.com/request/request/pull/1236) Document how to use custom CA in README (#1229) (@hypesystem)
-- [#1228](https://github.com/request/request/pull/1228) Support for oauth with RSA-SHA1 signing (@nylen)
-- [#1216](https://github.com/request/request/pull/1216) Made json and multipart options coexist (@nylen, @simov)
-- [#1225](https://github.com/request/request/pull/1225) Allow header white/exclusive lists in any case. (@RReverser)
-
-### v2.47.0 (2014/10/26)
-- [#1222](https://github.com/request/request/pull/1222) Move from mikeal/request to request/request (@nylen)
-- [#1220](https://github.com/request/request/pull/1220) update qs dependency to 2.3.1 (@FredKSchott)
-- [#1212](https://github.com/request/request/pull/1212) Improve tests/test-timeout.js (@nylen)
-- [#1219](https://github.com/request/request/pull/1219) remove old globalAgent workaround for node 0.4 (@request)
-- [#1214](https://github.com/request/request/pull/1214) Remove cruft left over from optional dependencies (@nylen)
-- [#1215](https://github.com/request/request/pull/1215) Add proxyHeaderExclusiveList option for proxy-only headers. (@RReverser)
-- [#1211](https://github.com/request/request/pull/1211) Allow 'Host' header instead of 'host' and remember case across redirects (@nylen)
-- [#1208](https://github.com/request/request/pull/1208) Improve release script (@nylen)
-- [#1213](https://github.com/request/request/pull/1213) Support for custom cookie store (@nylen, @mitsuru)
-- [#1197](https://github.com/request/request/pull/1197) Clean up some code around setting the agent (@FredKSchott)
-- [#1209](https://github.com/request/request/pull/1209) Improve multipart form append test (@simov)
-- [#1207](https://github.com/request/request/pull/1207) Update changelog (@nylen)
-- [#1185](https://github.com/request/request/pull/1185) Stream multipart/related bodies (@simov)
-
-### v2.46.0 (2014/10/23)
-- [#1198](https://github.com/request/request/pull/1198) doc for TLS/SSL protocol options (@shawnzhu)
-- [#1200](https://github.com/request/request/pull/1200) Add a Gitter chat badge to README.md (@gitter-badger)
-- [#1196](https://github.com/request/request/pull/1196) Upgrade taper test reporter to v0.3.0 (@nylen)
-- [#1199](https://github.com/request/request/pull/1199) Fix lint error: undeclared var i (@nylen)
-- [#1191](https://github.com/request/request/pull/1191) Move self.proxy decision logic out of init and into a helper (@FredKSchott)
-- [#1190](https://github.com/request/request/pull/1190) Move _buildRequest() logic back into init (@FredKSchott)
-- [#1186](https://github.com/request/request/pull/1186) Support Smarter Unix URL Scheme (@FredKSchott)
-- [#1178](https://github.com/request/request/pull/1178) update form documentation for new usage (@FredKSchott)
-- [#1180](https://github.com/request/request/pull/1180) Enable no-mixed-requires linting rule (@nylen)
-- [#1184](https://github.com/request/request/pull/1184) Don't forward authorization header across redirects to different hosts (@nylen)
-- [#1183](https://github.com/request/request/pull/1183) Correct README about pre and postamble CRLF using multipart and not mult... (@netpoetica)
-- [#1179](https://github.com/request/request/pull/1179) Lint tests directory (@nylen)
-- [#1169](https://github.com/request/request/pull/1169) add metadata for form-data file field (@dotcypress)
-- [#1173](https://github.com/request/request/pull/1173) remove optional dependencies (@seanstrom)
-- [#1165](https://github.com/request/request/pull/1165) Cleanup event listeners and remove function creation from init (@FredKSchott)
-- [#1174](https://github.com/request/request/pull/1174) update the request.cookie docs to have a valid cookie example (@seanstrom)
-- [#1168](https://github.com/request/request/pull/1168) create a detach helper and use detach helper in replace of nextTick (@seanstrom)
-- [#1171](https://github.com/request/request/pull/1171) in post can send form data and use callback (@MiroRadenovic)
-- [#1159](https://github.com/request/request/pull/1159) accept charset for x-www-form-urlencoded content-type (@seanstrom)
-- [#1157](https://github.com/request/request/pull/1157) Update README.md: body with json=true (@Rob--W)
-- [#1164](https://github.com/request/request/pull/1164) Disable tests/test-timeout.js on Travis (@nylen)
-- [#1153](https://github.com/request/request/pull/1153) Document how to run a single test (@nylen)
-- [#1144](https://github.com/request/request/pull/1144) adds documentation for the "response" event within the streaming section (@tbuchok)
-- [#1162](https://github.com/request/request/pull/1162) Update eslintrc file to no longer allow past errors (@FredKSchott)
-- [#1155](https://github.com/request/request/pull/1155) Support/use self everywhere (@seanstrom)
-- [#1161](https://github.com/request/request/pull/1161) fix no-use-before-define lint warnings (@emkay)
-- [#1156](https://github.com/request/request/pull/1156) adding curly brackets to get rid of lint errors (@emkay)
-- [#1151](https://github.com/request/request/pull/1151) Fix localAddress test on OS X (@nylen)
-- [#1145](https://github.com/request/request/pull/1145) documentation: fix outdated reference to setCookieSync old name in README (@FredKSchott)
-- [#1131](https://github.com/request/request/pull/1131) Update pool documentation (@FredKSchott)
-- [#1143](https://github.com/request/request/pull/1143) Rewrite all tests to use tape (@nylen)
-- [#1137](https://github.com/request/request/pull/1137) Add ability to specifiy querystring lib in options. (@jgrund)
-- [#1138](https://github.com/request/request/pull/1138) allow hostname and port in place of host on uri (@cappslock)
-- [#1134](https://github.com/request/request/pull/1134) Fix multiple redirects and `self.followRedirect` (@blakeembrey)
-- [#1130](https://github.com/request/request/pull/1130) documentation fix: add note about npm test for contributing (@FredKSchott)
-- [#1120](https://github.com/request/request/pull/1120) Support/refactor request setup tunnel (@seanstrom)
-- [#1129](https://github.com/request/request/pull/1129) linting fix: convert double quote strings to use single quotes (@FredKSchott)
-- [#1124](https://github.com/request/request/pull/1124) linting fix: remove unneccesary semi-colons (@FredKSchott)
-
-### v2.45.0 (2014/10/06)
-- [#1128](https://github.com/request/request/pull/1128) Add test for setCookie regression (@nylen)
-- [#1127](https://github.com/request/request/pull/1127) added tests around using objects as values in a query string (@bcoe)
-- [#1103](https://github.com/request/request/pull/1103) Support/refactor request constructor (@nylen, @seanstrom)
-- [#1119](https://github.com/request/request/pull/1119) add basic linting to request library (@FredKSchott)
-- [#1121](https://github.com/request/request/pull/1121) Revert "Explicitly use sync versions of cookie functions" (@nylen)
-- [#1118](https://github.com/request/request/pull/1118) linting fix: Restructure bad empty if statement (@FredKSchott)
-- [#1117](https://github.com/request/request/pull/1117) Fix a bad check for valid URIs (@FredKSchott)
-- [#1113](https://github.com/request/request/pull/1113) linting fix: space out operators (@FredKSchott)
-- [#1116](https://github.com/request/request/pull/1116) Fix typo in `noProxyHost` definition (@FredKSchott)
-- [#1114](https://github.com/request/request/pull/1114) linting fix: Added a `new` operator that was missing when creating and throwing a new error (@FredKSchott)
-- [#1096](https://github.com/request/request/pull/1096) No_proxy support (@samcday)
-- [#1107](https://github.com/request/request/pull/1107) linting-fix: remove unused variables (@FredKSchott)
-- [#1112](https://github.com/request/request/pull/1112) linting fix: Make return values consistent and more straitforward (@FredKSchott)
-- [#1111](https://github.com/request/request/pull/1111) linting fix: authPieces was getting redeclared (@FredKSchott)
-- [#1105](https://github.com/request/request/pull/1105) Use strict mode in request (@FredKSchott)
-- [#1110](https://github.com/request/request/pull/1110) linting fix: replace lazy '==' with more strict '===' (@FredKSchott)
-- [#1109](https://github.com/request/request/pull/1109) linting fix: remove function call from if-else conditional statement (@FredKSchott)
-- [#1102](https://github.com/request/request/pull/1102) Fix to allow setting a `requester` on recursive calls to `request.defaults` (@tikotzky)
-- [#1095](https://github.com/request/request/pull/1095) Tweaking engines in package.json (@pdehaan)
-- [#1082](https://github.com/request/request/pull/1082) Forward the socket event from the httpModule request (@seanstrom)
-- [#972](https://github.com/request/request/pull/972) Clarify gzip handling in the README (@kevinoid)
-- [#1089](https://github.com/request/request/pull/1089) Mention that encoding defaults to utf8, not Buffer (@stuartpb)
-- [#1088](https://github.com/request/request/pull/1088) Fix cookie example in README.md and make it more clear (@pipi32167)
-- [#1027](https://github.com/request/request/pull/1027) Add support for multipart form data in request options. (@crocket)
-- [#1076](https://github.com/request/request/pull/1076) use Request.abort() to abort the request when the request has timed-out (@seanstrom)
-- [#1068](https://github.com/request/request/pull/1068) add optional postamble required by .NET multipart requests (@netpoetica)
-
-### v2.43.0 (2014/09/18)
-- [#1057](https://github.com/request/request/pull/1057) Defaults should not overwrite defined options (@davidwood)
-- [#1046](https://github.com/request/request/pull/1046) Propagate datastream errors, useful in case gzip fails. (@ZJONSSON, @Janpot)
-- [#1063](https://github.com/request/request/pull/1063) copy the input headers object #1060 (@finnp)
-- [#1031](https://github.com/request/request/pull/1031) Explicitly use sync versions of cookie functions (@ZJONSSON)
-- [#1056](https://github.com/request/request/pull/1056) Fix redirects when passing url.parse(x) as URL to convenience method (@nylen)
-
-### v2.42.0 (2014/09/04)
-- [#1053](https://github.com/request/request/pull/1053) Fix #1051 Parse auth properly when using non-tunneling proxy (@isaacs)
-
-### v2.41.0 (2014/09/04)
-- [#1050](https://github.com/request/request/pull/1050) Pass whitelisted headers to tunneling proxy. Organize all tunneling logic. (@isaacs, @Feldhacker)
-- [#1035](https://github.com/request/request/pull/1035) souped up nodei.co badge (@rvagg)
-- [#1048](https://github.com/request/request/pull/1048) Aws is now possible over a proxy (@steven-aerts)
-- [#1039](https://github.com/request/request/pull/1039) extract out helper functions to a helper file (@seanstrom)
-- [#1021](https://github.com/request/request/pull/1021) Support/refactor indexjs (@seanstrom)
-- [#1033](https://github.com/request/request/pull/1033) Improve and document debug options (@nylen)
-- [#1034](https://github.com/request/request/pull/1034) Fix readme headings (@nylen)
-- [#1030](https://github.com/request/request/pull/1030) Allow recursive request.defaults (@tikotzky)
-- [#1029](https://github.com/request/request/pull/1029) Fix a couple of typos (@nylen)
-- [#675](https://github.com/request/request/pull/675) Checking for SSL fault on connection before reading SSL properties (@VRMink)
-- [#989](https://github.com/request/request/pull/989) Added allowRedirect function. Should return true if redirect is allowed or false otherwise (@doronin)
-- [#1025](https://github.com/request/request/pull/1025) [fixes #1023] Set self._ended to true once response has ended (@mridgway)
-- [#1020](https://github.com/request/request/pull/1020) Add back removed debug metadata (@FredKSchott)
-- [#1008](https://github.com/request/request/pull/1008) Moving to module instead of cutomer buffer concatenation. (@mikeal)
-- [#770](https://github.com/request/request/pull/770) Added dependency badge for README file; (@timgluz, @mafintosh, @lalitkapoor, @stash, @bobyrizov)
-- [#1016](https://github.com/request/request/pull/1016) toJSON no longer results in an infinite loop, returns simple objects (@FredKSchott)
-- [#1018](https://github.com/request/request/pull/1018) Remove pre-0.4.4 HTTPS fix (@mmalecki)
-- [#1006](https://github.com/request/request/pull/1006) Migrate to caseless, fixes #1001 (@mikeal)
-- [#995](https://github.com/request/request/pull/995) Fix parsing array of objects (@sjonnet19)
-- [#999](https://github.com/request/request/pull/999) Fix fallback for browserify for optional modules. (@eiriksm)
-- [#996](https://github.com/request/request/pull/996) Wrong oauth signature when multiple same param keys exist [updated] (@bengl)
-
-### v2.40.0 (2014/08/06)
-- [#992](https://github.com/request/request/pull/992) Fix security vulnerability. Update qs (@poeticninja)
-- [#988](https://github.com/request/request/pull/988) “--” -> “—” (@upisfree)
-- [#987](https://github.com/request/request/pull/987) Show optional modules as being loaded by the module that reqeusted them (@iarna)
-
-### v2.39.0 (2014/07/24)
-- [#976](https://github.com/request/request/pull/976) Update README.md (@pvoznenko)
-
-### v2.38.0 (2014/07/22)
-- [#952](https://github.com/request/request/pull/952) Adding support to client certificate with proxy use case (@ofirshaked)
-- [#884](https://github.com/request/request/pull/884) Documented tough-cookie installation. (@wbyoung)
-- [#935](https://github.com/request/request/pull/935) Correct repository url (@fritx)
-- [#963](https://github.com/request/request/pull/963) Update changelog (@nylen)
-- [#960](https://github.com/request/request/pull/960) Support gzip with encoding on node pre-v0.9.4 (@kevinoid)
-- [#953](https://github.com/request/request/pull/953) Add async Content-Length computation when using form-data (@LoicMahieu)
-- [#844](https://github.com/request/request/pull/844) Add support for HTTP[S]_PROXY environment variables. Fixes #595. (@jvmccarthy)
-- [#946](https://github.com/request/request/pull/946) defaults: merge headers (@aj0strow)
-
-### v2.37.0 (2014/07/07)
-- [#957](https://github.com/request/request/pull/957) Silence EventEmitter memory leak warning #311 (@watson)
-- [#955](https://github.com/request/request/pull/955) check for content-length header before setting it in nextTick (@camilleanne)
-- [#951](https://github.com/request/request/pull/951) Add support for gzip content decoding (@kevinoid)
-- [#949](https://github.com/request/request/pull/949) Manually enter querystring in form option (@charlespwd)
-- [#944](https://github.com/request/request/pull/944) Make request work with browserify (@eiriksm)
-- [#943](https://github.com/request/request/pull/943) New mime module (@eiriksm)
-- [#927](https://github.com/request/request/pull/927) Bump version of hawk dep. (@samccone)
-- [#907](https://github.com/request/request/pull/907) append secureOptions to poolKey (@medovob)
-
-### v2.35.0 (2014/05/17)
-- [#901](https://github.com/request/request/pull/901) Fixes #555 (@pigulla)
-- [#897](https://github.com/request/request/pull/897) merge with default options (@vohof)
-- [#891](https://github.com/request/request/pull/891) fixes 857 - options object is mutated by calling request (@lalitkapoor)
-- [#869](https://github.com/request/request/pull/869) Pipefilter test (@tgohn)
-- [#866](https://github.com/request/request/pull/866) Fix typo (@dandv)
-- [#861](https://github.com/request/request/pull/861) Add support for RFC 6750 Bearer Tokens (@phedny)
-- [#809](https://github.com/request/request/pull/809) upgrade tunnel-proxy to 0.4.0 (@ksato9700)
-- [#850](https://github.com/request/request/pull/850) Fix word consistency in readme (@0xNobody)
-- [#810](https://github.com/request/request/pull/810) add some exposition to mpu example in README.md (@mikermcneil)
-- [#840](https://github.com/request/request/pull/840) improve error reporting for invalid protocols (@FND)
-- [#821](https://github.com/request/request/pull/821) added secureOptions back (@nw)
-- [#815](https://github.com/request/request/pull/815) Create changelog based on pull requests (@lalitkapoor)
-
-### v2.34.0 (2014/02/18)
-- [#516](https://github.com/request/request/pull/516) UNIX Socket URL Support (@lyuzashi)
-- [#801](https://github.com/request/request/pull/801) 794 ignore cookie parsing and domain errors (@lalitkapoor)
-- [#802](https://github.com/request/request/pull/802) Added the Apache license to the package.json. (@keskival)
-- [#793](https://github.com/request/request/pull/793) Adds content-length calculation when submitting forms using form-data li... (@Juul)
-- [#785](https://github.com/request/request/pull/785) Provide ability to override content-type when `json` option used (@vvo)
-- [#781](https://github.com/request/request/pull/781) simpler isReadStream function (@joaojeronimo)
-
-### v2.32.0 (2014/01/16)
-- [#767](https://github.com/request/request/pull/767) Use tough-cookie CookieJar sync API (@stash)
-- [#764](https://github.com/request/request/pull/764) Case-insensitive authentication scheme (@bobyrizov)
-- [#763](https://github.com/request/request/pull/763) Upgrade tough-cookie to 0.10.0 (@stash)
-- [#744](https://github.com/request/request/pull/744) Use Cookie.parse (@lalitkapoor)
-- [#757](https://github.com/request/request/pull/757) require aws-sign2 (@mafintosh)
-
-### v2.31.0 (2014/01/08)
-- [#645](https://github.com/request/request/pull/645) update twitter api url to v1.1 (@mick)
-- [#746](https://github.com/request/request/pull/746) README: Markdown code highlight (@weakish)
-- [#745](https://github.com/request/request/pull/745) updating setCookie example to make it clear that the callback is required (@emkay)
-- [#742](https://github.com/request/request/pull/742) Add note about JSON output body type (@iansltx)
-- [#741](https://github.com/request/request/pull/741) README example is using old cookie jar api (@emkay)
-- [#736](https://github.com/request/request/pull/736) Fix callback arguments documentation (@mmalecki)
-- [#732](https://github.com/request/request/pull/732) JSHINT: Creating global 'for' variable. Should be 'for (var ...'. (@Fritz-Lium)
-- [#730](https://github.com/request/request/pull/730) better HTTP DIGEST support (@dai-shi)
-- [#728](https://github.com/request/request/pull/728) Fix TypeError when calling request.cookie (@scarletmeow)
-- [#727](https://github.com/request/request/pull/727) fix requester bug (@jchris)
-- [#724](https://github.com/request/request/pull/724) README.md: add custom HTTP Headers example. (@tcort)
-- [#719](https://github.com/request/request/pull/719) Made a comment gender neutral. (@unsetbit)
-- [#715](https://github.com/request/request/pull/715) Request.multipart no longer crashes when header 'Content-type' present (@pastaclub)
-- [#710](https://github.com/request/request/pull/710) Fixing listing in callback part of docs. (@lukasz-zak)
-- [#696](https://github.com/request/request/pull/696) Edited README.md for formatting and clarity of phrasing (@Zearin)
-- [#694](https://github.com/request/request/pull/694) Typo in README (@VRMink)
-- [#690](https://github.com/request/request/pull/690) Handle blank password in basic auth. (@diversario)
-- [#682](https://github.com/request/request/pull/682) Optional dependencies (@Turbo87)
-- [#683](https://github.com/request/request/pull/683) Travis CI support (@Turbo87)
-- [#674](https://github.com/request/request/pull/674) change cookie module,to tough-cookie.please check it . (@sxyizhiren)
-- [#666](https://github.com/request/request/pull/666) make `ciphers` and `secureProtocol` to work in https request (@richarddong)
-- [#656](https://github.com/request/request/pull/656) Test case for #304. (@diversario)
-- [#662](https://github.com/request/request/pull/662) option.tunnel to explicitly disable tunneling (@seanmonstar)
-- [#659](https://github.com/request/request/pull/659) fix failure when running with NODE_DEBUG=request, and a test for that (@jrgm)
-- [#630](https://github.com/request/request/pull/630) Send random cnonce for HTTP Digest requests (@wprl)
-- [#619](https://github.com/request/request/pull/619) decouple things a bit (@joaojeronimo)
-- [#613](https://github.com/request/request/pull/613) Fixes #583, moved initialization of self.uri.pathname (@lexander)
-- [#605](https://github.com/request/request/pull/605) Only include ":" + pass in Basic Auth if it's defined (fixes #602) (@bendrucker)
-- [#596](https://github.com/request/request/pull/596) Global agent is being used when pool is specified (@Cauldrath)
-- [#594](https://github.com/request/request/pull/594) Emit complete event when there is no callback (@RomainLK)
-- [#601](https://github.com/request/request/pull/601) Fixed a small typo (@michalstanko)
-- [#589](https://github.com/request/request/pull/589) Prevent setting headers after they are sent (@geek)
-- [#587](https://github.com/request/request/pull/587) Global cookie jar disabled by default (@threepointone)
-- [#544](https://github.com/request/request/pull/544) Update http-signature version. (@davidlehn)
-- [#581](https://github.com/request/request/pull/581) Fix spelling of "ignoring." (@bigeasy)
-- [#568](https://github.com/request/request/pull/568) use agentOptions to create agent when specified in request (@SamPlacette)
-- [#564](https://github.com/request/request/pull/564) Fix redirections (@criloz)
-- [#541](https://github.com/request/request/pull/541) The exported request function doesn't have an auth method (@tschaub)
-- [#542](https://github.com/request/request/pull/542) Expose Request class (@regality)
-- [#536](https://github.com/request/request/pull/536) Allow explicitly empty user field for basic authentication. (@mikeando)
-- [#532](https://github.com/request/request/pull/532) fix typo (@fredericosilva)
-- [#497](https://github.com/request/request/pull/497) Added redirect event (@Cauldrath)
-- [#503](https://github.com/request/request/pull/503) Fix basic auth for passwords that contain colons (@tonistiigi)
-- [#521](https://github.com/request/request/pull/521) Improving test-localAddress.js (@noway)
-- [#529](https://github.com/request/request/pull/529) dependencies versions bump (@jodaka)
-- [#523](https://github.com/request/request/pull/523) Updating dependencies (@noway)
-- [#520](https://github.com/request/request/pull/520) Fixing test-tunnel.js (@noway)
-- [#519](https://github.com/request/request/pull/519) Update internal path state on post-creation QS changes (@jblebrun)
-- [#510](https://github.com/request/request/pull/510) Add HTTP Signature support. (@davidlehn)
-- [#502](https://github.com/request/request/pull/502) Fix POST (and probably other) requests that are retried after 401 Unauthorized (@nylen)
-- [#508](https://github.com/request/request/pull/508) Honor the .strictSSL option when using proxies (tunnel-agent) (@jhs)
-- [#512](https://github.com/request/request/pull/512) Make password optional to support the format: http://username@hostname/ (@pajato1)
-- [#513](https://github.com/request/request/pull/513) add 'localAddress' support (@yyfrankyy)
-- [#498](https://github.com/request/request/pull/498) Moving response emit above setHeaders on destination streams (@kenperkins)
-- [#490](https://github.com/request/request/pull/490) Empty response body (3-rd argument) must be passed to callback as an empty string (@Olegas)
-- [#479](https://github.com/request/request/pull/479) Changing so if Accept header is explicitly set, sending json does not ov... (@RoryH)
-- [#475](https://github.com/request/request/pull/475) Use `unescape` from `querystring` (@shimaore)
-- [#473](https://github.com/request/request/pull/473) V0.10 compat (@isaacs)
-- [#471](https://github.com/request/request/pull/471) Using querystring library from visionmedia (@kbackowski)
-- [#461](https://github.com/request/request/pull/461) Strip the UTF8 BOM from a UTF encoded response (@kppullin)
-- [#460](https://github.com/request/request/pull/460) hawk 0.10.0 (@hueniverse)
-- [#462](https://github.com/request/request/pull/462) if query params are empty, then request path shouldn't end with a '?' (merges cleanly now) (@jaipandya)
-- [#456](https://github.com/request/request/pull/456) hawk 0.9.0 (@hueniverse)
-- [#429](https://github.com/request/request/pull/429) Copy options before adding callback. (@nrn, @nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki)
-- [#454](https://github.com/request/request/pull/454) Destroy the response if present when destroying the request (clean merge) (@mafintosh)
-- [#310](https://github.com/request/request/pull/310) Twitter Oauth Stuff Out of Date; Now Updated (@joemccann, @isaacs, @mscdex)
-- [#413](https://github.com/request/request/pull/413) rename googledoodle.png to .jpg (@nfriedly, @youurayy, @jplock, @kapetan, @landeiro, @othiym23, @mmalecki)
-- [#448](https://github.com/request/request/pull/448) Convenience method for PATCH (@mloar)
-- [#444](https://github.com/request/request/pull/444) protect against double callbacks on error path (@spollack)
-- [#433](https://github.com/request/request/pull/433) Added support for HTTPS cert & key (@mmalecki)
-- [#430](https://github.com/request/request/pull/430) Respect specified {Host,host} headers, not just {host} (@andrewschaaf)
-- [#415](https://github.com/request/request/pull/415) Fixed a typo. (@jerem)
-- [#338](https://github.com/request/request/pull/338) Add more auth options, including digest support (@nylen)
-- [#403](https://github.com/request/request/pull/403) Optimize environment lookup to happen once only (@mmalecki)
-- [#398](https://github.com/request/request/pull/398) Add more reporting to tests (@mmalecki)
-- [#388](https://github.com/request/request/pull/388) Ensure "safe" toJSON doesn't break EventEmitters (@othiym23)
-- [#381](https://github.com/request/request/pull/381) Resolving "Invalid signature. Expected signature base string: " (@landeiro)
-- [#380](https://github.com/request/request/pull/380) Fixes missing host header on retried request when using forever agent (@mac-)
-- [#376](https://github.com/request/request/pull/376) Headers lost on redirect (@kapetan)
-- [#375](https://github.com/request/request/pull/375) Fix for missing oauth_timestamp parameter (@jplock)
-- [#374](https://github.com/request/request/pull/374) Correct Host header for proxy tunnel CONNECT (@youurayy)
-- [#370](https://github.com/request/request/pull/370) Twitter reverse auth uses x_auth_mode not x_auth_type (@drudge)
-- [#369](https://github.com/request/request/pull/369) Don't remove x_auth_mode for Twitter reverse auth (@drudge)
-- [#344](https://github.com/request/request/pull/344) Make AWS auth signing find headers correctly (@nlf)
-- [#363](https://github.com/request/request/pull/363) rfc3986 on base_uri, now passes tests (@jeffmarshall)
-- [#362](https://github.com/request/request/pull/362) Running `rfc3986` on `base_uri` in `oauth.hmacsign` instead of just `encodeURIComponent` (@jeffmarshall)
-- [#361](https://github.com/request/request/pull/361) Don't create a Content-Length header if we already have it set (@danjenkins)
-- [#360](https://github.com/request/request/pull/360) Delete self._form along with everything else on redirect (@jgautier)
-- [#355](https://github.com/request/request/pull/355) stop sending erroneous headers on redirected requests (@azylman)
-- [#332](https://github.com/request/request/pull/332) Fix #296 - Only set Content-Type if body exists (@Marsup)
-- [#343](https://github.com/request/request/pull/343) Allow AWS to work in more situations, added a note in the README on its usage (@nlf)
-- [#320](https://github.com/request/request/pull/320) request.defaults() doesn't need to wrap jar() (@StuartHarris)
-- [#322](https://github.com/request/request/pull/322) Fix + test for piped into request bumped into redirect. #321 (@alexindigo)
-- [#326](https://github.com/request/request/pull/326) Do not try to remove listener from an undefined connection (@CartoDB)
-- [#318](https://github.com/request/request/pull/318) Pass servername to tunneling secure socket creation (@isaacs)
-- [#317](https://github.com/request/request/pull/317) Workaround for #313 (@isaacs)
-- [#293](https://github.com/request/request/pull/293) Allow parser errors to bubble up to request (@mscdex)
-- [#290](https://github.com/request/request/pull/290) A test for #289 (@isaacs)
-- [#280](https://github.com/request/request/pull/280) Like in node.js print options if NODE_DEBUG contains the word request (@Filirom1)
-- [#207](https://github.com/request/request/pull/207) Fix #206 Change HTTP/HTTPS agent when redirecting between protocols (@isaacs)
-- [#214](https://github.com/request/request/pull/214) documenting additional behavior of json option (@jphaas, @vpulim)
-- [#272](https://github.com/request/request/pull/272) Boundary begins with CRLF? (@elspoono, @timshadel, @naholyr, @nanodocumet, @TehShrike)
-- [#284](https://github.com/request/request/pull/284) Remove stray `console.log()` call in multipart generator. (@bcherry)
-- [#241](https://github.com/request/request/pull/241) Composability updates suggested by issue #239 (@polotek)
-- [#282](https://github.com/request/request/pull/282) OAuth Authorization header contains non-"oauth_" parameters (@jplock)
-- [#279](https://github.com/request/request/pull/279) fix tests with boundary by injecting boundry from header (@benatkin)
-- [#273](https://github.com/request/request/pull/273) Pipe back pressure issue (@mafintosh)
-- [#268](https://github.com/request/request/pull/268) I'm not OCD seriously (@TehShrike)
-- [#263](https://github.com/request/request/pull/263) Bug in OAuth key generation for sha1 (@nanodocumet)
-- [#265](https://github.com/request/request/pull/265) uncaughtException when redirected to invalid URI (@naholyr)
-- [#262](https://github.com/request/request/pull/262) JSON test should check for equality (@timshadel)
-- [#261](https://github.com/request/request/pull/261) Setting 'pool' to 'false' does NOT disable Agent pooling (@timshadel)
-- [#249](https://github.com/request/request/pull/249) Fix for the fix of your (closed) issue #89 where self.headers[content-length] is set to 0 for all methods (@sethbridges, @polotek, @zephrax, @jeromegn)
-- [#255](https://github.com/request/request/pull/255) multipart allow body === '' ( the empty string ) (@Filirom1)
-- [#260](https://github.com/request/request/pull/260) fixed just another leak of 'i' (@sreuter)
-- [#246](https://github.com/request/request/pull/246) Fixing the set-cookie header (@jeromegn)
-- [#243](https://github.com/request/request/pull/243) Dynamic boundary (@zephrax)
-- [#240](https://github.com/request/request/pull/240) don't error when null is passed for options (@polotek)
-- [#211](https://github.com/request/request/pull/211) Replace all occurrences of special chars in RFC3986 (@chriso, @vpulim)
-- [#224](https://github.com/request/request/pull/224) Multipart content-type change (@janjongboom)
-- [#217](https://github.com/request/request/pull/217) need to use Authorization (titlecase) header with Tumblr OAuth (@visnup)
-- [#203](https://github.com/request/request/pull/203) Fix cookie and redirect bugs and add auth support for HTTPS tunnel (@vpulim)
-- [#199](https://github.com/request/request/pull/199) Tunnel (@isaacs)
-- [#198](https://github.com/request/request/pull/198) Bugfix on forever usage of util.inherits (@isaacs)
-- [#197](https://github.com/request/request/pull/197) Make ForeverAgent work with HTTPS (@isaacs)
-- [#193](https://github.com/request/request/pull/193) Fixes GH-119 (@goatslacker)
-- [#188](https://github.com/request/request/pull/188) Add abort support to the returned request (@itay)
-- [#176](https://github.com/request/request/pull/176) Querystring option (@csainty)
-- [#182](https://github.com/request/request/pull/182) Fix request.defaults to support (uri, options, callback) api (@twilson63)
-- [#180](https://github.com/request/request/pull/180) Modified the post, put, head and del shortcuts to support uri optional param (@twilson63)
-- [#179](https://github.com/request/request/pull/179) fix to add opts in .pipe(stream, opts) (@substack)
-- [#177](https://github.com/request/request/pull/177) Issue #173 Support uri as first and optional config as second argument (@twilson63)
-- [#170](https://github.com/request/request/pull/170) can't create a cookie in a wrapped request (defaults) (@fabianonunes)
-- [#168](https://github.com/request/request/pull/168) Picking off an EasyFix by adding some missing mimetypes. (@serby)
-- [#161](https://github.com/request/request/pull/161) Fix cookie jar/headers.cookie collision (#125) (@papandreou)
-- [#162](https://github.com/request/request/pull/162) Fix issue #159 (@dpetukhov)
-- [#90](https://github.com/request/request/pull/90) add option followAllRedirects to follow post/put redirects (@jroes)
-- [#148](https://github.com/request/request/pull/148) Retry Agent (@thejh)
-- [#146](https://github.com/request/request/pull/146) Multipart should respect content-type if previously set (@apeace)
-- [#144](https://github.com/request/request/pull/144) added "form" option to readme (@petejkim)
-- [#133](https://github.com/request/request/pull/133) Fixed cookies parsing (@afanasy)
-- [#135](https://github.com/request/request/pull/135) host vs hostname (@iangreenleaf)
-- [#132](https://github.com/request/request/pull/132) return the body as a Buffer when encoding is set to null (@jahewson)
-- [#112](https://github.com/request/request/pull/112) Support using a custom http-like module (@jhs)
-- [#104](https://github.com/request/request/pull/104) Cookie handling contains bugs (@janjongboom)
-- [#121](https://github.com/request/request/pull/121) Another patch for cookie handling regression (@jhurliman)
-- [#117](https://github.com/request/request/pull/117) Remove the global `i` (@3rd-Eden)
-- [#110](https://github.com/request/request/pull/110) Update to Iris Couch URL (@jhs)
-- [#86](https://github.com/request/request/pull/86) Can't post binary to multipart requests (@kkaefer)
-- [#105](https://github.com/request/request/pull/105) added test for proxy option. (@dominictarr)
-- [#102](https://github.com/request/request/pull/102) Implemented cookies - closes issue 82: https://github.com/mikeal/request/issues/82 (@alessioalex)
-- [#97](https://github.com/request/request/pull/97) Typo in previous pull causes TypeError in non-0.5.11 versions (@isaacs)
-- [#96](https://github.com/request/request/pull/96) Authless parsed url host support (@isaacs)
-- [#81](https://github.com/request/request/pull/81) Enhance redirect handling (@danmactough)
-- [#78](https://github.com/request/request/pull/78) Don't try to do strictSSL for non-ssl connections (@isaacs)
-- [#76](https://github.com/request/request/pull/76) Bug when a request fails and a timeout is set (@Marsup)
-- [#70](https://github.com/request/request/pull/70) add test script to package.json (@isaacs, @aheckmann)
-- [#73](https://github.com/request/request/pull/73) Fix #71 Respect the strictSSL flag (@isaacs)
-- [#69](https://github.com/request/request/pull/69) Flatten chunked requests properly (@isaacs)
-- [#67](https://github.com/request/request/pull/67) fixed global variable leaks (@aheckmann)
-- [#66](https://github.com/request/request/pull/66) Do not overwrite established content-type headers for read stream deliver (@voodootikigod)
-- [#53](https://github.com/request/request/pull/53) Parse json: Issue #51 (@benatkin)
-- [#45](https://github.com/request/request/pull/45) Added timeout option (@mbrevoort)
-- [#35](https://github.com/request/request/pull/35) The "end" event isn't emitted for some responses (@voxpelli)
-- [#31](https://github.com/request/request/pull/31) Error on piping a request to a destination (@tobowers) \ No newline at end of file
diff --git a/node_modules/request/LICENSE b/node_modules/request/LICENSE
deleted file mode 100644
index a4a9aee..0000000
--- a/node_modules/request/LICENSE
+++ /dev/null
@@ -1,55 +0,0 @@
-Apache License
-
-Version 2.0, January 2004
-
-http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-
-You must give any other recipients of the Work or Derivative Works a copy of this License; and
-
-You must cause any modified files to carry prominent notices stating that You changed the files; and
-
-You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-
-If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS \ No newline at end of file
diff --git a/node_modules/request/README.md b/node_modules/request/README.md
deleted file mode 100644
index 9da0eb7..0000000
--- a/node_modules/request/README.md
+++ /dev/null
@@ -1,1133 +0,0 @@
-# Deprecated!
-
-As of Feb 11th 2020, request is fully deprecated. No new changes are expected land. In fact, none have landed for some time.
-
-For more information about why request is deprecated and possible alternatives refer to
-[this issue](https://github.com/request/request/issues/3142).
-
-# Request - Simplified HTTP client
-
-[![npm package](https://nodei.co/npm/request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/request/)
-
-[![Build status](https://img.shields.io/travis/request/request/master.svg?style=flat-square)](https://travis-ci.org/request/request)
-[![Coverage](https://img.shields.io/codecov/c/github/request/request.svg?style=flat-square)](https://codecov.io/github/request/request?branch=master)
-[![Coverage](https://img.shields.io/coveralls/request/request.svg?style=flat-square)](https://coveralls.io/r/request/request)
-[![Dependency Status](https://img.shields.io/david/request/request.svg?style=flat-square)](https://david-dm.org/request/request)
-[![Known Vulnerabilities](https://snyk.io/test/npm/request/badge.svg?style=flat-square)](https://snyk.io/test/npm/request)
-[![Gitter](https://img.shields.io/badge/gitter-join_chat-blue.svg?style=flat-square)](https://gitter.im/request/request?utm_source=badge)
-
-
-## Super simple to use
-
-Request is designed to be the simplest way possible to make http calls. It supports HTTPS and follows redirects by default.
-
-```js
-const request = require('request');
-request('http://www.google.com', function (error, response, body) {
- console.error('error:', error); // Print the error if one occurred
- console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
- console.log('body:', body); // Print the HTML for the Google homepage.
-});
-```
-
-
-## Table of contents
-
-- [Streaming](#streaming)
-- [Promises & Async/Await](#promises--asyncawait)
-- [Forms](#forms)
-- [HTTP Authentication](#http-authentication)
-- [Custom HTTP Headers](#custom-http-headers)
-- [OAuth Signing](#oauth-signing)
-- [Proxies](#proxies)
-- [Unix Domain Sockets](#unix-domain-sockets)
-- [TLS/SSL Protocol](#tlsssl-protocol)
-- [Support for HAR 1.2](#support-for-har-12)
-- [**All Available Options**](#requestoptions-callback)
-
-Request also offers [convenience methods](#convenience-methods) like
-`request.defaults` and `request.post`, and there are
-lots of [usage examples](#examples) and several
-[debugging techniques](#debugging).
-
-
----
-
-
-## Streaming
-
-You can stream any response to a file stream.
-
-```js
-request('http://google.com/doodle.png').pipe(fs.createWriteStream('doodle.png'))
-```
-
-You can also stream a file to a PUT or POST request. This method will also check the file extension against a mapping of file extensions to content-types (in this case `application/json`) and use the proper `content-type` in the PUT request (if the headers don’t already provide one).
-
-```js
-fs.createReadStream('file.json').pipe(request.put('http://mysite.com/obj.json'))
-```
-
-Request can also `pipe` to itself. When doing so, `content-type` and `content-length` are preserved in the PUT headers.
-
-```js
-request.get('http://google.com/img.png').pipe(request.put('http://mysite.com/img.png'))
-```
-
-Request emits a "response" event when a response is received. The `response` argument will be an instance of [http.IncomingMessage](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
-
-```js
-request
- .get('http://google.com/img.png')
- .on('response', function(response) {
- console.log(response.statusCode) // 200
- console.log(response.headers['content-type']) // 'image/png'
- })
- .pipe(request.put('http://mysite.com/img.png'))
-```
-
-To easily handle errors when streaming requests, listen to the `error` event before piping:
-
-```js
-request
- .get('http://mysite.com/doodle.png')
- .on('error', function(err) {
- console.error(err)
- })
- .pipe(fs.createWriteStream('doodle.png'))
-```
-
-Now let’s get fancy.
-
-```js
-http.createServer(function (req, resp) {
- if (req.url === '/doodle.png') {
- if (req.method === 'PUT') {
- req.pipe(request.put('http://mysite.com/doodle.png'))
- } else if (req.method === 'GET' || req.method === 'HEAD') {
- request.get('http://mysite.com/doodle.png').pipe(resp)
- }
- }
-})
-```
-
-You can also `pipe()` from `http.ServerRequest` instances, as well as to `http.ServerResponse` instances. The HTTP method, headers, and entity-body data will be sent. Which means that, if you don't really care about security, you can do:
-
-```js
-http.createServer(function (req, resp) {
- if (req.url === '/doodle.png') {
- const x = request('http://mysite.com/doodle.png')
- req.pipe(x)
- x.pipe(resp)
- }
-})
-```
-
-And since `pipe()` returns the destination stream in ≥ Node 0.5.x you can do one line proxying. :)
-
-```js
-req.pipe(request('http://mysite.com/doodle.png')).pipe(resp)
-```
-
-Also, none of this new functionality conflicts with requests previous features, it just expands them.
-
-```js
-const r = request.defaults({'proxy':'http://localproxy.com'})
-
-http.createServer(function (req, resp) {
- if (req.url === '/doodle.png') {
- r.get('http://google.com/doodle.png').pipe(resp)
- }
-})
-```
-
-You can still use intermediate proxies, the requests will still follow HTTP forwards, etc.
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## Promises & Async/Await
-
-`request` supports both streaming and callback interfaces natively. If you'd like `request` to return a Promise instead, you can use an alternative interface wrapper for `request`. These wrappers can be useful if you prefer to work with Promises, or if you'd like to use `async`/`await` in ES2017.
-
-Several alternative interfaces are provided by the request team, including:
-- [`request-promise`](https://github.com/request/request-promise) (uses [Bluebird](https://github.com/petkaantonov/bluebird) Promises)
-- [`request-promise-native`](https://github.com/request/request-promise-native) (uses native Promises)
-- [`request-promise-any`](https://github.com/request/request-promise-any) (uses [any-promise](https://www.npmjs.com/package/any-promise) Promises)
-
-Also, [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original), which is available from Node.js v8.0 can be used to convert a regular function that takes a callback to return a promise instead.
-
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## Forms
-
-`request` supports `application/x-www-form-urlencoded` and `multipart/form-data` form uploads. For `multipart/related` refer to the `multipart` API.
-
-
-#### application/x-www-form-urlencoded (URL-Encoded Forms)
-
-URL-encoded forms are simple.
-
-```js
-request.post('http://service.com/upload', {form:{key:'value'}})
-// or
-request.post('http://service.com/upload').form({key:'value'})
-// or
-request.post({url:'http://service.com/upload', form: {key:'value'}}, function(err,httpResponse,body){ /* ... */ })
-```
-
-
-#### multipart/form-data (Multipart Form Uploads)
-
-For `multipart/form-data` we use the [form-data](https://github.com/form-data/form-data) library by [@felixge](https://github.com/felixge). For the most cases, you can pass your upload form data via the `formData` option.
-
-
-```js
-const formData = {
- // Pass a simple key-value pair
- my_field: 'my_value',
- // Pass data via Buffers
- my_buffer: Buffer.from([1, 2, 3]),
- // Pass data via Streams
- my_file: fs.createReadStream(__dirname + '/unicycle.jpg'),
- // Pass multiple values /w an Array
- attachments: [
- fs.createReadStream(__dirname + '/attachment1.jpg'),
- fs.createReadStream(__dirname + '/attachment2.jpg')
- ],
- // Pass optional meta-data with an 'options' object with style: {value: DATA, options: OPTIONS}
- // Use case: for some types of streams, you'll need to provide "file"-related information manually.
- // See the `form-data` README for more information about options: https://github.com/form-data/form-data
- custom_file: {
- value: fs.createReadStream('/dev/urandom'),
- options: {
- filename: 'topsecret.jpg',
- contentType: 'image/jpeg'
- }
- }
-};
-request.post({url:'http://service.com/upload', formData: formData}, function optionalCallback(err, httpResponse, body) {
- if (err) {
- return console.error('upload failed:', err);
- }
- console.log('Upload successful! Server responded with:', body);
-});
-```
-
-For advanced cases, you can access the form-data object itself via `r.form()`. This can be modified until the request is fired on the next cycle of the event-loop. (Note that this calling `form()` will clear the currently set form data for that request.)
-
-```js
-// NOTE: Advanced use-case, for normal use see 'formData' usage above
-const r = request.post('http://service.com/upload', function optionalCallback(err, httpResponse, body) {...})
-const form = r.form();
-form.append('my_field', 'my_value');
-form.append('my_buffer', Buffer.from([1, 2, 3]));
-form.append('custom_file', fs.createReadStream(__dirname + '/unicycle.jpg'), {filename: 'unicycle.jpg'});
-```
-See the [form-data README](https://github.com/form-data/form-data) for more information & examples.
-
-
-#### multipart/related
-
-Some variations in different HTTP implementations require a newline/CRLF before, after, or both before and after the boundary of a `multipart/related` request (using the multipart option). This has been observed in the .NET WebAPI version 4.0. You can turn on a boundary preambleCRLF or postamble by passing them as `true` to your request options.
-
-```js
- request({
- method: 'PUT',
- preambleCRLF: true,
- postambleCRLF: true,
- uri: 'http://service.com/upload',
- multipart: [
- {
- 'content-type': 'application/json',
- body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}})
- },
- { body: 'I am an attachment' },
- { body: fs.createReadStream('image.png') }
- ],
- // alternatively pass an object containing additional options
- multipart: {
- chunked: false,
- data: [
- {
- 'content-type': 'application/json',
- body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}})
- },
- { body: 'I am an attachment' }
- ]
- }
- },
- function (error, response, body) {
- if (error) {
- return console.error('upload failed:', error);
- }
- console.log('Upload successful! Server responded with:', body);
- })
-```
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## HTTP Authentication
-
-```js
-request.get('http://some.server.com/').auth('username', 'password', false);
-// or
-request.get('http://some.server.com/', {
- 'auth': {
- 'user': 'username',
- 'pass': 'password',
- 'sendImmediately': false
- }
-});
-// or
-request.get('http://some.server.com/').auth(null, null, true, 'bearerToken');
-// or
-request.get('http://some.server.com/', {
- 'auth': {
- 'bearer': 'bearerToken'
- }
-});
-```
-
-If passed as an option, `auth` should be a hash containing values:
-
-- `user` || `username`
-- `pass` || `password`
-- `sendImmediately` (optional)
-- `bearer` (optional)
-
-The method form takes parameters
-`auth(username, password, sendImmediately, bearer)`.
-
-`sendImmediately` defaults to `true`, which causes a basic or bearer
-authentication header to be sent. If `sendImmediately` is `false`, then
-`request` will retry with a proper authentication header after receiving a
-`401` response from the server (which must contain a `WWW-Authenticate` header
-indicating the required authentication method).
-
-Note that you can also specify basic authentication using the URL itself, as
-detailed in [RFC 1738](http://www.ietf.org/rfc/rfc1738.txt). Simply pass the
-`user:password` before the host with an `@` sign:
-
-```js
-const username = 'username',
- password = 'password',
- url = 'http://' + username + ':' + password + '@some.server.com';
-
-request({url}, function (error, response, body) {
- // Do more stuff with 'body' here
-});
-```
-
-Digest authentication is supported, but it only works with `sendImmediately`
-set to `false`; otherwise `request` will send basic authentication on the
-initial request, which will probably cause the request to fail.
-
-Bearer authentication is supported, and is activated when the `bearer` value is
-available. The value may be either a `String` or a `Function` returning a
-`String`. Using a function to supply the bearer token is particularly useful if
-used in conjunction with `defaults` to allow a single function to supply the
-last known token at the time of sending a request, or to compute one on the fly.
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## Custom HTTP Headers
-
-HTTP Headers, such as `User-Agent`, can be set in the `options` object.
-In the example below, we call the github API to find out the number
-of stars and forks for the request repository. This requires a
-custom `User-Agent` header as well as https.
-
-```js
-const request = require('request');
-
-const options = {
- url: 'https://api.github.com/repos/request/request',
- headers: {
- 'User-Agent': 'request'
- }
-};
-
-function callback(error, response, body) {
- if (!error && response.statusCode == 200) {
- const info = JSON.parse(body);
- console.log(info.stargazers_count + " Stars");
- console.log(info.forks_count + " Forks");
- }
-}
-
-request(options, callback);
-```
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## OAuth Signing
-
-[OAuth version 1.0](https://tools.ietf.org/html/rfc5849) is supported. The
-default signing algorithm is
-[HMAC-SHA1](https://tools.ietf.org/html/rfc5849#section-3.4.2):
-
-```js
-// OAuth1.0 - 3-legged server side flow (Twitter example)
-// step 1
-const qs = require('querystring')
- , oauth =
- { callback: 'http://mysite.com/callback/'
- , consumer_key: CONSUMER_KEY
- , consumer_secret: CONSUMER_SECRET
- }
- , url = 'https://api.twitter.com/oauth/request_token'
- ;
-request.post({url:url, oauth:oauth}, function (e, r, body) {
- // Ideally, you would take the body in the response
- // and construct a URL that a user clicks on (like a sign in button).
- // The verifier is only available in the response after a user has
- // verified with twitter that they are authorizing your app.
-
- // step 2
- const req_data = qs.parse(body)
- const uri = 'https://api.twitter.com/oauth/authenticate'
- + '?' + qs.stringify({oauth_token: req_data.oauth_token})
- // redirect the user to the authorize uri
-
- // step 3
- // after the user is redirected back to your server
- const auth_data = qs.parse(body)
- , oauth =
- { consumer_key: CONSUMER_KEY
- , consumer_secret: CONSUMER_SECRET
- , token: auth_data.oauth_token
- , token_secret: req_data.oauth_token_secret
- , verifier: auth_data.oauth_verifier
- }
- , url = 'https://api.twitter.com/oauth/access_token'
- ;
- request.post({url:url, oauth:oauth}, function (e, r, body) {
- // ready to make signed requests on behalf of the user
- const perm_data = qs.parse(body)
- , oauth =
- { consumer_key: CONSUMER_KEY
- , consumer_secret: CONSUMER_SECRET
- , token: perm_data.oauth_token
- , token_secret: perm_data.oauth_token_secret
- }
- , url = 'https://api.twitter.com/1.1/users/show.json'
- , qs =
- { screen_name: perm_data.screen_name
- , user_id: perm_data.user_id
- }
- ;
- request.get({url:url, oauth:oauth, qs:qs, json:true}, function (e, r, user) {
- console.log(user)
- })
- })
-})
-```
-
-For [RSA-SHA1 signing](https://tools.ietf.org/html/rfc5849#section-3.4.3), make
-the following changes to the OAuth options object:
-* Pass `signature_method : 'RSA-SHA1'`
-* Instead of `consumer_secret`, specify a `private_key` string in
- [PEM format](http://how2ssl.com/articles/working_with_pem_files/)
-
-For [PLAINTEXT signing](http://oauth.net/core/1.0/#anchor22), make
-the following changes to the OAuth options object:
-* Pass `signature_method : 'PLAINTEXT'`
-
-To send OAuth parameters via query params or in a post body as described in The
-[Consumer Request Parameters](http://oauth.net/core/1.0/#consumer_req_param)
-section of the oauth1 spec:
-* Pass `transport_method : 'query'` or `transport_method : 'body'` in the OAuth
- options object.
-* `transport_method` defaults to `'header'`
-
-To use [Request Body Hash](https://oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html) you can either
-* Manually generate the body hash and pass it as a string `body_hash: '...'`
-* Automatically generate the body hash by passing `body_hash: true`
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## Proxies
-
-If you specify a `proxy` option, then the request (and any subsequent
-redirects) will be sent via a connection to the proxy server.
-
-If your endpoint is an `https` url, and you are using a proxy, then
-request will send a `CONNECT` request to the proxy server *first*, and
-then use the supplied connection to connect to the endpoint.
-
-That is, first it will make a request like:
-
-```
-HTTP/1.1 CONNECT endpoint-server.com:80
-Host: proxy-server.com
-User-Agent: whatever user agent you specify
-```
-
-and then the proxy server make a TCP connection to `endpoint-server`
-on port `80`, and return a response that looks like:
-
-```
-HTTP/1.1 200 OK
-```
-
-At this point, the connection is left open, and the client is
-communicating directly with the `endpoint-server.com` machine.
-
-See [the wikipedia page on HTTP Tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel)
-for more information.
-
-By default, when proxying `http` traffic, request will simply make a
-standard proxied `http` request. This is done by making the `url`
-section of the initial line of the request a fully qualified url to
-the endpoint.
-
-For example, it will make a single request that looks like:
-
-```
-HTTP/1.1 GET http://endpoint-server.com/some-url
-Host: proxy-server.com
-Other-Headers: all go here
-
-request body or whatever
-```
-
-Because a pure "http over http" tunnel offers no additional security
-or other features, it is generally simpler to go with a
-straightforward HTTP proxy in this case. However, if you would like
-to force a tunneling proxy, you may set the `tunnel` option to `true`.
-
-You can also make a standard proxied `http` request by explicitly setting
-`tunnel : false`, but **note that this will allow the proxy to see the traffic
-to/from the destination server**.
-
-If you are using a tunneling proxy, you may set the
-`proxyHeaderWhiteList` to share certain headers with the proxy.
-
-You can also set the `proxyHeaderExclusiveList` to share certain
-headers only with the proxy and not with destination host.
-
-By default, this set is:
-
-```
-accept
-accept-charset
-accept-encoding
-accept-language
-accept-ranges
-cache-control
-content-encoding
-content-language
-content-length
-content-location
-content-md5
-content-range
-content-type
-connection
-date
-expect
-max-forwards
-pragma
-proxy-authorization
-referer
-te
-transfer-encoding
-user-agent
-via
-```
-
-Note that, when using a tunneling proxy, the `proxy-authorization`
-header and any headers from custom `proxyHeaderExclusiveList` are
-*never* sent to the endpoint server, but only to the proxy server.
-
-
-### Controlling proxy behaviour using environment variables
-
-The following environment variables are respected by `request`:
-
- * `HTTP_PROXY` / `http_proxy`
- * `HTTPS_PROXY` / `https_proxy`
- * `NO_PROXY` / `no_proxy`
-
-When `HTTP_PROXY` / `http_proxy` are set, they will be used to proxy non-SSL requests that do not have an explicit `proxy` configuration option present. Similarly, `HTTPS_PROXY` / `https_proxy` will be respected for SSL requests that do not have an explicit `proxy` configuration option. It is valid to define a proxy in one of the environment variables, but then override it for a specific request, using the `proxy` configuration option. Furthermore, the `proxy` configuration option can be explicitly set to false / null to opt out of proxying altogether for that request.
-
-`request` is also aware of the `NO_PROXY`/`no_proxy` environment variables. These variables provide a granular way to opt out of proxying, on a per-host basis. It should contain a comma separated list of hosts to opt out of proxying. It is also possible to opt of proxying when a particular destination port is used. Finally, the variable may be set to `*` to opt out of the implicit proxy configuration of the other environment variables.
-
-Here's some examples of valid `no_proxy` values:
-
- * `google.com` - don't proxy HTTP/HTTPS requests to Google.
- * `google.com:443` - don't proxy HTTPS requests to Google, but *do* proxy HTTP requests to Google.
- * `google.com:443, yahoo.com:80` - don't proxy HTTPS requests to Google, and don't proxy HTTP requests to Yahoo!
- * `*` - ignore `https_proxy`/`http_proxy` environment variables altogether.
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## UNIX Domain Sockets
-
-`request` supports making requests to [UNIX Domain Sockets](https://en.wikipedia.org/wiki/Unix_domain_socket). To make one, use the following URL scheme:
-
-```js
-/* Pattern */ 'http://unix:SOCKET:PATH'
-/* Example */ request.get('http://unix:/absolute/path/to/unix.socket:/request/path')
-```
-
-Note: The `SOCKET` path is assumed to be absolute to the root of the host file system.
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## TLS/SSL Protocol
-
-TLS/SSL Protocol options, such as `cert`, `key` and `passphrase`, can be
-set directly in `options` object, in the `agentOptions` property of the `options` object, or even in `https.globalAgent.options`. Keep in mind that, although `agentOptions` allows for a slightly wider range of configurations, the recommended way is via `options` object directly, as using `agentOptions` or `https.globalAgent.options` would not be applied in the same way in proxied environments (as data travels through a TLS connection instead of an http/https agent).
-
-```js
-const fs = require('fs')
- , path = require('path')
- , certFile = path.resolve(__dirname, 'ssl/client.crt')
- , keyFile = path.resolve(__dirname, 'ssl/client.key')
- , caFile = path.resolve(__dirname, 'ssl/ca.cert.pem')
- , request = require('request');
-
-const options = {
- url: 'https://api.some-server.com/',
- cert: fs.readFileSync(certFile),
- key: fs.readFileSync(keyFile),
- passphrase: 'password',
- ca: fs.readFileSync(caFile)
-};
-
-request.get(options);
-```
-
-### Using `options.agentOptions`
-
-In the example below, we call an API that requires client side SSL certificate
-(in PEM format) with passphrase protected private key (in PEM format) and disable the SSLv3 protocol:
-
-```js
-const fs = require('fs')
- , path = require('path')
- , certFile = path.resolve(__dirname, 'ssl/client.crt')
- , keyFile = path.resolve(__dirname, 'ssl/client.key')
- , request = require('request');
-
-const options = {
- url: 'https://api.some-server.com/',
- agentOptions: {
- cert: fs.readFileSync(certFile),
- key: fs.readFileSync(keyFile),
- // Or use `pfx` property replacing `cert` and `key` when using private key, certificate and CA certs in PFX or PKCS12 format:
- // pfx: fs.readFileSync(pfxFilePath),
- passphrase: 'password',
- securityOptions: 'SSL_OP_NO_SSLv3'
- }
-};
-
-request.get(options);
-```
-
-It is able to force using SSLv3 only by specifying `secureProtocol`:
-
-```js
-request.get({
- url: 'https://api.some-server.com/',
- agentOptions: {
- secureProtocol: 'SSLv3_method'
- }
-});
-```
-
-It is possible to accept other certificates than those signed by generally allowed Certificate Authorities (CAs).
-This can be useful, for example, when using self-signed certificates.
-To require a different root certificate, you can specify the signing CA by adding the contents of the CA's certificate file to the `agentOptions`.
-The certificate the domain presents must be signed by the root certificate specified:
-
-```js
-request.get({
- url: 'https://api.some-server.com/',
- agentOptions: {
- ca: fs.readFileSync('ca.cert.pem')
- }
-});
-```
-
-The `ca` value can be an array of certificates, in the event you have a private or internal corporate public-key infrastructure hierarchy. For example, if you want to connect to https://api.some-server.com which presents a key chain consisting of:
-1. its own public key, which is signed by:
-2. an intermediate "Corp Issuing Server", that is in turn signed by:
-3. a root CA "Corp Root CA";
-
-you can configure your request as follows:
-
-```js
-request.get({
- url: 'https://api.some-server.com/',
- agentOptions: {
- ca: [
- fs.readFileSync('Corp Issuing Server.pem'),
- fs.readFileSync('Corp Root CA.pem')
- ]
- }
-});
-```
-
-[back to top](#table-of-contents)
-
-
----
-
-## Support for HAR 1.2
-
-The `options.har` property will override the values: `url`, `method`, `qs`, `headers`, `form`, `formData`, `body`, `json`, as well as construct multipart data and read files from disk when `request.postData.params[].fileName` is present without a matching `value`.
-
-A validation step will check if the HAR Request format matches the latest spec (v1.2) and will skip parsing if not matching.
-
-```js
- const request = require('request')
- request({
- // will be ignored
- method: 'GET',
- uri: 'http://www.google.com',
-
- // HTTP Archive Request Object
- har: {
- url: 'http://www.mockbin.com/har',
- method: 'POST',
- headers: [
- {
- name: 'content-type',
- value: 'application/x-www-form-urlencoded'
- }
- ],
- postData: {
- mimeType: 'application/x-www-form-urlencoded',
- params: [
- {
- name: 'foo',
- value: 'bar'
- },
- {
- name: 'hello',
- value: 'world'
- }
- ]
- }
- }
- })
-
- // a POST request will be sent to http://www.mockbin.com
- // with body an application/x-www-form-urlencoded body:
- // foo=bar&hello=world
-```
-
-[back to top](#table-of-contents)
-
-
----
-
-## request(options, callback)
-
-The first argument can be either a `url` or an `options` object. The only required option is `uri`; all others are optional.
-
-- `uri` || `url` - fully qualified uri or a parsed url object from `url.parse()`
-- `baseUrl` - fully qualified uri string used as the base url. Most useful with `request.defaults`, for example when you want to do many requests to the same domain. If `baseUrl` is `https://example.com/api/`, then requesting `/end/point?test=true` will fetch `https://example.com/api/end/point?test=true`. When `baseUrl` is given, `uri` must also be a string.
-- `method` - http method (default: `"GET"`)
-- `headers` - http headers (default: `{}`)
-
----
-
-- `qs` - object containing querystring values to be appended to the `uri`
-- `qsParseOptions` - object containing options to pass to the [qs.parse](https://github.com/hapijs/qs#parsing-objects) method. Alternatively pass options to the [querystring.parse](https://nodejs.org/docs/v0.12.0/api/querystring.html#querystring_querystring_parse_str_sep_eq_options) method using this format `{sep:';', eq:':', options:{}}`
-- `qsStringifyOptions` - object containing options to pass to the [qs.stringify](https://github.com/hapijs/qs#stringifying) method. Alternatively pass options to the [querystring.stringify](https://nodejs.org/docs/v0.12.0/api/querystring.html#querystring_querystring_stringify_obj_sep_eq_options) method using this format `{sep:';', eq:':', options:{}}`. For example, to change the way arrays are converted to query strings using the `qs` module pass the `arrayFormat` option with one of `indices|brackets|repeat`
-- `useQuerystring` - if true, use `querystring` to stringify and parse
- querystrings, otherwise use `qs` (default: `false`). Set this option to
- `true` if you need arrays to be serialized as `foo=bar&foo=baz` instead of the
- default `foo[0]=bar&foo[1]=baz`.
-
----
-
-- `body` - entity body for PATCH, POST and PUT requests. Must be a `Buffer`, `String` or `ReadStream`. If `json` is `true`, then `body` must be a JSON-serializable object.
-- `form` - when passed an object or a querystring, this sets `body` to a querystring representation of value, and adds `Content-type: application/x-www-form-urlencoded` header. When passed no options, a `FormData` instance is returned (and is piped to request). See "Forms" section above.
-- `formData` - data to pass for a `multipart/form-data` request. See
- [Forms](#forms) section above.
-- `multipart` - array of objects which contain their own headers and `body`
- attributes. Sends a `multipart/related` request. See [Forms](#forms) section
- above.
- - Alternatively you can pass in an object `{chunked: false, data: []}` where
- `chunked` is used to specify whether the request is sent in
- [chunked transfer encoding](https://en.wikipedia.org/wiki/Chunked_transfer_encoding)
- In non-chunked requests, data items with body streams are not allowed.
-- `preambleCRLF` - append a newline/CRLF before the boundary of your `multipart/form-data` request.
-- `postambleCRLF` - append a newline/CRLF at the end of the boundary of your `multipart/form-data` request.
-- `json` - sets `body` to JSON representation of value and adds `Content-type: application/json` header. Additionally, parses the response body as JSON.
-- `jsonReviver` - a [reviver function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) that will be passed to `JSON.parse()` when parsing a JSON response body.
-- `jsonReplacer` - a [replacer function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) that will be passed to `JSON.stringify()` when stringifying a JSON request body.
-
----
-
-- `auth` - a hash containing values `user` || `username`, `pass` || `password`, and `sendImmediately` (optional). See documentation above.
-- `oauth` - options for OAuth HMAC-SHA1 signing. See documentation above.
-- `hawk` - options for [Hawk signing](https://github.com/hueniverse/hawk). The `credentials` key must contain the necessary signing info, [see hawk docs for details](https://github.com/hueniverse/hawk#usage-example).
-- `aws` - `object` containing AWS signing information. Should have the properties `key`, `secret`, and optionally `session` (note that this only works for services that require session as part of the canonical string). Also requires the property `bucket`, unless you’re specifying your `bucket` as part of the path, or the request doesn’t use a bucket (i.e. GET Services). If you want to use AWS sign version 4 use the parameter `sign_version` with value `4` otherwise the default is version 2. If you are using SigV4, you can also include a `service` property that specifies the service name. **Note:** you need to `npm install aws4` first.
-- `httpSignature` - options for the [HTTP Signature Scheme](https://github.com/joyent/node-http-signature/blob/master/http_signing.md) using [Joyent's library](https://github.com/joyent/node-http-signature). The `keyId` and `key` properties must be specified. See the docs for other options.
-
----
-
-- `followRedirect` - follow HTTP 3xx responses as redirects (default: `true`). This property can also be implemented as function which gets `response` object as a single argument and should return `true` if redirects should continue or `false` otherwise.
-- `followAllRedirects` - follow non-GET HTTP 3xx responses as redirects (default: `false`)
-- `followOriginalHttpMethod` - by default we redirect to HTTP method GET. you can enable this property to redirect to the original HTTP method (default: `false`)
-- `maxRedirects` - the maximum number of redirects to follow (default: `10`)
-- `removeRefererHeader` - removes the referer header when a redirect happens (default: `false`). **Note:** if true, referer header set in the initial request is preserved during redirect chain.
-
----
-
-- `encoding` - encoding to be used on `setEncoding` of response data. If `null`, the `body` is returned as a `Buffer`. Anything else **(including the default value of `undefined`)** will be passed as the [encoding](http://nodejs.org/api/buffer.html#buffer_buffer) parameter to `toString()` (meaning this is effectively `utf8` by default). (**Note:** if you expect binary data, you should set `encoding: null`.)
-- `gzip` - if `true`, add an `Accept-Encoding` header to request compressed content encodings from the server (if not already present) and decode supported content encodings in the response. **Note:** Automatic decoding of the response content is performed on the body data returned through `request` (both through the `request` stream and passed to the callback function) but is not performed on the `response` stream (available from the `response` event) which is the unmodified `http.IncomingMessage` object which may contain compressed data. See example below.
-- `jar` - if `true`, remember cookies for future use (or define your custom cookie jar; see examples section)
-
----
-
-- `agent` - `http(s).Agent` instance to use
-- `agentClass` - alternatively specify your agent's class name
-- `agentOptions` - and pass its options. **Note:** for HTTPS see [tls API doc for TLS/SSL options](http://nodejs.org/api/tls.html#tls_tls_connect_options_callback) and the [documentation above](#using-optionsagentoptions).
-- `forever` - set to `true` to use the [forever-agent](https://github.com/request/forever-agent) **Note:** Defaults to `http(s).Agent({keepAlive:true})` in node 0.12+
-- `pool` - an object describing which agents to use for the request. If this option is omitted the request will use the global agent (as long as your options allow for it). Otherwise, request will search the pool for your custom agent. If no custom agent is found, a new agent will be created and added to the pool. **Note:** `pool` is used only when the `agent` option is not specified.
- - A `maxSockets` property can also be provided on the `pool` object to set the max number of sockets for all agents created (ex: `pool: {maxSockets: Infinity}`).
- - Note that if you are sending multiple requests in a loop and creating
- multiple new `pool` objects, `maxSockets` will not work as intended. To
- work around this, either use [`request.defaults`](#requestdefaultsoptions)
- with your pool options or create the pool object with the `maxSockets`
- property outside of the loop.
-- `timeout` - integer containing number of milliseconds, controls two timeouts.
- - **Read timeout**: Time to wait for a server to send response headers (and start the response body) before aborting the request.
- - **Connection timeout**: Sets the socket to timeout after `timeout` milliseconds of inactivity. Note that increasing the timeout beyond the OS-wide TCP connection timeout will not have any effect ([the default in Linux can be anywhere from 20-120 seconds][linux-timeout])
-
-[linux-timeout]: http://www.sekuda.com/overriding_the_default_linux_kernel_20_second_tcp_socket_connect_timeout
-
----
-
-- `localAddress` - local interface to bind for network connections.
-- `proxy` - an HTTP proxy to be used. Supports proxy Auth with Basic Auth, identical to support for the `url` parameter (by embedding the auth info in the `uri`)
-- `strictSSL` - if `true`, requires SSL certificates be valid. **Note:** to use your own certificate authority, you need to specify an agent that was created with that CA as an option.
-- `tunnel` - controls the behavior of
- [HTTP `CONNECT` tunneling](https://en.wikipedia.org/wiki/HTTP_tunnel#HTTP_CONNECT_tunneling)
- as follows:
- - `undefined` (default) - `true` if the destination is `https`, `false` otherwise
- - `true` - always tunnel to the destination by making a `CONNECT` request to
- the proxy
- - `false` - request the destination as a `GET` request.
-- `proxyHeaderWhiteList` - a whitelist of headers to send to a
- tunneling proxy.
-- `proxyHeaderExclusiveList` - a whitelist of headers to send
- exclusively to a tunneling proxy and not to destination.
-
----
-
-- `time` - if `true`, the request-response cycle (including all redirects) is timed at millisecond resolution. When set, the following properties are added to the response object:
- - `elapsedTime` Duration of the entire request/response in milliseconds (*deprecated*).
- - `responseStartTime` Timestamp when the response began (in Unix Epoch milliseconds) (*deprecated*).
- - `timingStart` Timestamp of the start of the request (in Unix Epoch milliseconds).
- - `timings` Contains event timestamps in millisecond resolution relative to `timingStart`. If there were redirects, the properties reflect the timings of the final request in the redirect chain:
- - `socket` Relative timestamp when the [`http`](https://nodejs.org/api/http.html#http_event_socket) module's `socket` event fires. This happens when the socket is assigned to the request.
- - `lookup` Relative timestamp when the [`net`](https://nodejs.org/api/net.html#net_event_lookup) module's `lookup` event fires. This happens when the DNS has been resolved.
- - `connect`: Relative timestamp when the [`net`](https://nodejs.org/api/net.html#net_event_connect) module's `connect` event fires. This happens when the server acknowledges the TCP connection.
- - `response`: Relative timestamp when the [`http`](https://nodejs.org/api/http.html#http_event_response) module's `response` event fires. This happens when the first bytes are received from the server.
- - `end`: Relative timestamp when the last bytes of the response are received.
- - `timingPhases` Contains the durations of each request phase. If there were redirects, the properties reflect the timings of the final request in the redirect chain:
- - `wait`: Duration of socket initialization (`timings.socket`)
- - `dns`: Duration of DNS lookup (`timings.lookup` - `timings.socket`)
- - `tcp`: Duration of TCP connection (`timings.connect` - `timings.socket`)
- - `firstByte`: Duration of HTTP server response (`timings.response` - `timings.connect`)
- - `download`: Duration of HTTP download (`timings.end` - `timings.response`)
- - `total`: Duration entire HTTP round-trip (`timings.end`)
-
-- `har` - a [HAR 1.2 Request Object](http://www.softwareishard.com/blog/har-12-spec/#request), will be processed from HAR format into options overwriting matching values *(see the [HAR 1.2 section](#support-for-har-12) for details)*
-- `callback` - alternatively pass the request's callback in the options object
-
-The callback argument gets 3 arguments:
-
-1. An `error` when applicable (usually from [`http.ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest) object)
-2. An [`http.IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) object (Response object)
-3. The third is the `response` body (`String` or `Buffer`, or JSON object if the `json` option is supplied)
-
-[back to top](#table-of-contents)
-
-
----
-
-## Convenience methods
-
-There are also shorthand methods for different HTTP METHODs and some other conveniences.
-
-
-### request.defaults(options)
-
-This method **returns a wrapper** around the normal request API that defaults
-to whatever options you pass to it.
-
-**Note:** `request.defaults()` **does not** modify the global request API;
-instead, it **returns a wrapper** that has your default settings applied to it.
-
-**Note:** You can call `.defaults()` on the wrapper that is returned from
-`request.defaults` to add/override defaults that were previously defaulted.
-
-For example:
-```js
-//requests using baseRequest() will set the 'x-token' header
-const baseRequest = request.defaults({
- headers: {'x-token': 'my-token'}
-})
-
-//requests using specialRequest() will include the 'x-token' header set in
-//baseRequest and will also include the 'special' header
-const specialRequest = baseRequest.defaults({
- headers: {special: 'special value'}
-})
-```
-
-### request.METHOD()
-
-These HTTP method convenience functions act just like `request()` but with a default method already set for you:
-
-- *request.get()*: Defaults to `method: "GET"`.
-- *request.post()*: Defaults to `method: "POST"`.
-- *request.put()*: Defaults to `method: "PUT"`.
-- *request.patch()*: Defaults to `method: "PATCH"`.
-- *request.del() / request.delete()*: Defaults to `method: "DELETE"`.
-- *request.head()*: Defaults to `method: "HEAD"`.
-- *request.options()*: Defaults to `method: "OPTIONS"`.
-
-### request.cookie()
-
-Function that creates a new cookie.
-
-```js
-request.cookie('key1=value1')
-```
-### request.jar()
-
-Function that creates a new cookie jar.
-
-```js
-request.jar()
-```
-
-### response.caseless.get('header-name')
-
-Function that returns the specified response header field using a [case-insensitive match](https://tools.ietf.org/html/rfc7230#section-3.2)
-
-```js
-request('http://www.google.com', function (error, response, body) {
- // print the Content-Type header even if the server returned it as 'content-type' (lowercase)
- console.log('Content-Type is:', response.caseless.get('Content-Type'));
-});
-```
-
-[back to top](#table-of-contents)
-
-
----
-
-
-## Debugging
-
-There are at least three ways to debug the operation of `request`:
-
-1. Launch the node process like `NODE_DEBUG=request node script.js`
- (`lib,request,otherlib` works too).
-
-2. Set `require('request').debug = true` at any time (this does the same thing
- as #1).
-
-3. Use the [request-debug module](https://github.com/request/request-debug) to
- view request and response headers and bodies.
-
-[back to top](#table-of-contents)
-
-
----
-
-## Timeouts
-
-Most requests to external servers should have a timeout attached, in case the
-server is not responding in a timely manner. Without a timeout, your code may
-have a socket open/consume resources for minutes or more.
-
-There are two main types of timeouts: **connection timeouts** and **read
-timeouts**. A connect timeout occurs if the timeout is hit while your client is
-attempting to establish a connection to a remote machine (corresponding to the
-[connect() call][connect] on the socket). A read timeout occurs any time the
-server is too slow to send back a part of the response.
-
-These two situations have widely different implications for what went wrong
-with the request, so it's useful to be able to distinguish them. You can detect
-timeout errors by checking `err.code` for an 'ETIMEDOUT' value. Further, you
-can detect whether the timeout was a connection timeout by checking if the
-`err.connect` property is set to `true`.
-
-```js
-request.get('http://10.255.255.1', {timeout: 1500}, function(err) {
- console.log(err.code === 'ETIMEDOUT');
- // Set to `true` if the timeout was a connection timeout, `false` or
- // `undefined` otherwise.
- console.log(err.connect === true);
- process.exit(0);
-});
-```
-
-[connect]: http://linux.die.net/man/2/connect
-
-## Examples:
-
-```js
- const request = require('request')
- , rand = Math.floor(Math.random()*100000000).toString()
- ;
- request(
- { method: 'PUT'
- , uri: 'http://mikeal.iriscouch.com/testjs/' + rand
- , multipart:
- [ { 'content-type': 'application/json'
- , body: JSON.stringify({foo: 'bar', _attachments: {'message.txt': {follows: true, length: 18, 'content_type': 'text/plain' }}})
- }
- , { body: 'I am an attachment' }
- ]
- }
- , function (error, response, body) {
- if(response.statusCode == 201){
- console.log('document saved as: http://mikeal.iriscouch.com/testjs/'+ rand)
- } else {
- console.log('error: '+ response.statusCode)
- console.log(body)
- }
- }
- )
-```
-
-For backwards-compatibility, response compression is not supported by default.
-To accept gzip-compressed responses, set the `gzip` option to `true`. Note
-that the body data passed through `request` is automatically decompressed
-while the response object is unmodified and will contain compressed data if
-the server sent a compressed response.
-
-```js
- const request = require('request')
- request(
- { method: 'GET'
- , uri: 'http://www.google.com'
- , gzip: true
- }
- , function (error, response, body) {
- // body is the decompressed response body
- console.log('server encoded the data as: ' + (response.headers['content-encoding'] || 'identity'))
- console.log('the decoded data is: ' + body)
- }
- )
- .on('data', function(data) {
- // decompressed data as it is received
- console.log('decoded chunk: ' + data)
- })
- .on('response', function(response) {
- // unmodified http.IncomingMessage object
- response.on('data', function(data) {
- // compressed data as it is received
- console.log('received ' + data.length + ' bytes of compressed data')
- })
- })
-```
-
-Cookies are disabled by default (else, they would be used in subsequent requests). To enable cookies, set `jar` to `true` (either in `defaults` or `options`).
-
-```js
-const request = request.defaults({jar: true})
-request('http://www.google.com', function () {
- request('http://images.google.com')
-})
-```
-
-To use a custom cookie jar (instead of `request`’s global cookie jar), set `jar` to an instance of `request.jar()` (either in `defaults` or `options`)
-
-```js
-const j = request.jar()
-const request = request.defaults({jar:j})
-request('http://www.google.com', function () {
- request('http://images.google.com')
-})
-```
-
-OR
-
-```js
-const j = request.jar();
-const cookie = request.cookie('key1=value1');
-const url = 'http://www.google.com';
-j.setCookie(cookie, url);
-request({url: url, jar: j}, function () {
- request('http://images.google.com')
-})
-```
-
-To use a custom cookie store (such as a
-[`FileCookieStore`](https://github.com/mitsuru/tough-cookie-filestore)
-which supports saving to and restoring from JSON files), pass it as a parameter
-to `request.jar()`:
-
-```js
-const FileCookieStore = require('tough-cookie-filestore');
-// NOTE - currently the 'cookies.json' file must already exist!
-const j = request.jar(new FileCookieStore('cookies.json'));
-request = request.defaults({ jar : j })
-request('http://www.google.com', function() {
- request('http://images.google.com')
-})
-```
-
-The cookie store must be a
-[`tough-cookie`](https://github.com/SalesforceEng/tough-cookie)
-store and it must support synchronous operations; see the
-[`CookieStore` API docs](https://github.com/SalesforceEng/tough-cookie#api)
-for details.
-
-To inspect your cookie jar after a request:
-
-```js
-const j = request.jar()
-request({url: 'http://www.google.com', jar: j}, function () {
- const cookie_string = j.getCookieString(url); // "key1=value1; key2=value2; ..."
- const cookies = j.getCookies(url);
- // [{key: 'key1', value: 'value1', domain: "www.google.com", ...}, ...]
-})
-```
-
-[back to top](#table-of-contents)
diff --git a/node_modules/request/index.js b/node_modules/request/index.js
deleted file mode 100755
index d50f991..0000000
--- a/node_modules/request/index.js
+++ /dev/null
@@ -1,155 +0,0 @@
-// Copyright 2010-2012 Mikeal Rogers
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-'use strict'
-
-var extend = require('extend')
-var cookies = require('./lib/cookies')
-var helpers = require('./lib/helpers')
-
-var paramsHaveRequestBody = helpers.paramsHaveRequestBody
-
-// organize params for patch, post, put, head, del
-function initParams (uri, options, callback) {
- if (typeof options === 'function') {
- callback = options
- }
-
- var params = {}
- if (options !== null && typeof options === 'object') {
- extend(params, options, {uri: uri})
- } else if (typeof uri === 'string') {
- extend(params, {uri: uri})
- } else {
- extend(params, uri)
- }
-
- params.callback = callback || params.callback
- return params
-}
-
-function request (uri, options, callback) {
- if (typeof uri === 'undefined') {
- throw new Error('undefined is not a valid uri or options object.')
- }
-
- var params = initParams(uri, options, callback)
-
- if (params.method === 'HEAD' && paramsHaveRequestBody(params)) {
- throw new Error('HTTP HEAD requests MUST NOT include a request body.')
- }
-
- return new request.Request(params)
-}
-
-function verbFunc (verb) {
- var method = verb.toUpperCase()
- return function (uri, options, callback) {
- var params = initParams(uri, options, callback)
- params.method = method
- return request(params, params.callback)
- }
-}
-
-// define like this to please codeintel/intellisense IDEs
-request.get = verbFunc('get')
-request.head = verbFunc('head')
-request.options = verbFunc('options')
-request.post = verbFunc('post')
-request.put = verbFunc('put')
-request.patch = verbFunc('patch')
-request.del = verbFunc('delete')
-request['delete'] = verbFunc('delete')
-
-request.jar = function (store) {
- return cookies.jar(store)
-}
-
-request.cookie = function (str) {
- return cookies.parse(str)
-}
-
-function wrapRequestMethod (method, options, requester, verb) {
- return function (uri, opts, callback) {
- var params = initParams(uri, opts, callback)
-
- var target = {}
- extend(true, target, options, params)
-
- target.pool = params.pool || options.pool
-
- if (verb) {
- target.method = verb.toUpperCase()
- }
-
- if (typeof requester === 'function') {
- method = requester
- }
-
- return method(target, target.callback)
- }
-}
-
-request.defaults = function (options, requester) {
- var self = this
-
- options = options || {}
-
- if (typeof options === 'function') {
- requester = options
- options = {}
- }
-
- var defaults = wrapRequestMethod(self, options, requester)
-
- var verbs = ['get', 'head', 'post', 'put', 'patch', 'del', 'delete']
- verbs.forEach(function (verb) {
- defaults[verb] = wrapRequestMethod(self[verb], options, requester, verb)
- })
-
- defaults.cookie = wrapRequestMethod(self.cookie, options, requester)
- defaults.jar = self.jar
- defaults.defaults = self.defaults
- return defaults
-}
-
-request.forever = function (agentOptions, optionsArg) {
- var options = {}
- if (optionsArg) {
- extend(options, optionsArg)
- }
- if (agentOptions) {
- options.agentOptions = agentOptions
- }
-
- options.forever = true
- return request.defaults(options)
-}
-
-// Exports
-
-module.exports = request
-request.Request = require('./request')
-request.initParams = initParams
-
-// Backwards compatibility for request.debug
-Object.defineProperty(request, 'debug', {
- enumerable: true,
- get: function () {
- return request.Request.debug
- },
- set: function (debug) {
- request.Request.debug = debug
- }
-})
diff --git a/node_modules/request/lib/auth.js b/node_modules/request/lib/auth.js
deleted file mode 100644
index 02f2038..0000000
--- a/node_modules/request/lib/auth.js
+++ /dev/null
@@ -1,167 +0,0 @@
-'use strict'
-
-var caseless = require('caseless')
-var uuid = require('uuid/v4')
-var helpers = require('./helpers')
-
-var md5 = helpers.md5
-var toBase64 = helpers.toBase64
-
-function Auth (request) {
- // define all public properties here
- this.request = request
- this.hasAuth = false
- this.sentAuth = false
- this.bearerToken = null
- this.user = null
- this.pass = null
-}
-
-Auth.prototype.basic = function (user, pass, sendImmediately) {
- var self = this
- if (typeof user !== 'string' || (pass !== undefined && typeof pass !== 'string')) {
- self.request.emit('error', new Error('auth() received invalid user or password'))
- }
- self.user = user
- self.pass = pass
- self.hasAuth = true
- var header = user + ':' + (pass || '')
- if (sendImmediately || typeof sendImmediately === 'undefined') {
- var authHeader = 'Basic ' + toBase64(header)
- self.sentAuth = true
- return authHeader
- }
-}
-
-Auth.prototype.bearer = function (bearer, sendImmediately) {
- var self = this
- self.bearerToken = bearer
- self.hasAuth = true
- if (sendImmediately || typeof sendImmediately === 'undefined') {
- if (typeof bearer === 'function') {
- bearer = bearer()
- }
- var authHeader = 'Bearer ' + (bearer || '')
- self.sentAuth = true
- return authHeader
- }
-}
-
-Auth.prototype.digest = function (method, path, authHeader) {
- // TODO: More complete implementation of RFC 2617.
- // - handle challenge.domain
- // - support qop="auth-int" only
- // - handle Authentication-Info (not necessarily?)
- // - check challenge.stale (not necessarily?)
- // - increase nc (not necessarily?)
- // For reference:
- // http://tools.ietf.org/html/rfc2617#section-3
- // https://github.com/bagder/curl/blob/master/lib/http_digest.c
-
- var self = this
-
- var challenge = {}
- var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi
- while (true) {
- var match = re.exec(authHeader)
- if (!match) {
- break
- }
- challenge[match[1]] = match[2] || match[3]
- }
-
- /**
- * RFC 2617: handle both MD5 and MD5-sess algorithms.
- *
- * If the algorithm directive's value is "MD5" or unspecified, then HA1 is
- * HA1=MD5(username:realm:password)
- * If the algorithm directive's value is "MD5-sess", then HA1 is
- * HA1=MD5(MD5(username:realm:password):nonce:cnonce)
- */
- var ha1Compute = function (algorithm, user, realm, pass, nonce, cnonce) {
- var ha1 = md5(user + ':' + realm + ':' + pass)
- if (algorithm && algorithm.toLowerCase() === 'md5-sess') {
- return md5(ha1 + ':' + nonce + ':' + cnonce)
- } else {
- return ha1
- }
- }
-
- var qop = /(^|,)\s*auth\s*($|,)/.test(challenge.qop) && 'auth'
- var nc = qop && '00000001'
- var cnonce = qop && uuid().replace(/-/g, '')
- var ha1 = ha1Compute(challenge.algorithm, self.user, challenge.realm, self.pass, challenge.nonce, cnonce)
- var ha2 = md5(method + ':' + path)
- var digestResponse = qop
- ? md5(ha1 + ':' + challenge.nonce + ':' + nc + ':' + cnonce + ':' + qop + ':' + ha2)
- : md5(ha1 + ':' + challenge.nonce + ':' + ha2)
- var authValues = {
- username: self.user,
- realm: challenge.realm,
- nonce: challenge.nonce,
- uri: path,
- qop: qop,
- response: digestResponse,
- nc: nc,
- cnonce: cnonce,
- algorithm: challenge.algorithm,
- opaque: challenge.opaque
- }
-
- authHeader = []
- for (var k in authValues) {
- if (authValues[k]) {
- if (k === 'qop' || k === 'nc' || k === 'algorithm') {
- authHeader.push(k + '=' + authValues[k])
- } else {
- authHeader.push(k + '="' + authValues[k] + '"')
- }
- }
- }
- authHeader = 'Digest ' + authHeader.join(', ')
- self.sentAuth = true
- return authHeader
-}
-
-Auth.prototype.onRequest = function (user, pass, sendImmediately, bearer) {
- var self = this
- var request = self.request
-
- var authHeader
- if (bearer === undefined && user === undefined) {
- self.request.emit('error', new Error('no auth mechanism defined'))
- } else if (bearer !== undefined) {
- authHeader = self.bearer(bearer, sendImmediately)
- } else {
- authHeader = self.basic(user, pass, sendImmediately)
- }
- if (authHeader) {
- request.setHeader('authorization', authHeader)
- }
-}
-
-Auth.prototype.onResponse = function (response) {
- var self = this
- var request = self.request
-
- if (!self.hasAuth || self.sentAuth) { return null }
-
- var c = caseless(response.headers)
-
- var authHeader = c.get('www-authenticate')
- var authVerb = authHeader && authHeader.split(' ')[0].toLowerCase()
- request.debug('reauth', authVerb)
-
- switch (authVerb) {
- case 'basic':
- return self.basic(self.user, self.pass, true)
-
- case 'bearer':
- return self.bearer(self.bearerToken, true)
-
- case 'digest':
- return self.digest(request.method, request.path, authHeader)
- }
-}
-
-exports.Auth = Auth
diff --git a/node_modules/request/lib/cookies.js b/node_modules/request/lib/cookies.js
deleted file mode 100644
index bd5d46b..0000000
--- a/node_modules/request/lib/cookies.js
+++ /dev/null
@@ -1,38 +0,0 @@
-'use strict'
-
-var tough = require('tough-cookie')
-
-var Cookie = tough.Cookie
-var CookieJar = tough.CookieJar
-
-exports.parse = function (str) {
- if (str && str.uri) {
- str = str.uri
- }
- if (typeof str !== 'string') {
- throw new Error('The cookie function only accepts STRING as param')
- }
- return Cookie.parse(str, {loose: true})
-}
-
-// Adapt the sometimes-Async api of tough.CookieJar to our requirements
-function RequestJar (store) {
- var self = this
- self._jar = new CookieJar(store, {looseMode: true})
-}
-RequestJar.prototype.setCookie = function (cookieOrStr, uri, options) {
- var self = this
- return self._jar.setCookieSync(cookieOrStr, uri, options || {})
-}
-RequestJar.prototype.getCookieString = function (uri) {
- var self = this
- return self._jar.getCookieStringSync(uri)
-}
-RequestJar.prototype.getCookies = function (uri) {
- var self = this
- return self._jar.getCookiesSync(uri)
-}
-
-exports.jar = function (store) {
- return new RequestJar(store)
-}
diff --git a/node_modules/request/lib/getProxyFromURI.js b/node_modules/request/lib/getProxyFromURI.js
deleted file mode 100644
index 0b9b18e..0000000
--- a/node_modules/request/lib/getProxyFromURI.js
+++ /dev/null
@@ -1,79 +0,0 @@
-'use strict'
-
-function formatHostname (hostname) {
- // canonicalize the hostname, so that 'oogle.com' won't match 'google.com'
- return hostname.replace(/^\.*/, '.').toLowerCase()
-}
-
-function parseNoProxyZone (zone) {
- zone = zone.trim().toLowerCase()
-
- var zoneParts = zone.split(':', 2)
- var zoneHost = formatHostname(zoneParts[0])
- var zonePort = zoneParts[1]
- var hasPort = zone.indexOf(':') > -1
-
- return {hostname: zoneHost, port: zonePort, hasPort: hasPort}
-}
-
-function uriInNoProxy (uri, noProxy) {
- var port = uri.port || (uri.protocol === 'https:' ? '443' : '80')
- var hostname = formatHostname(uri.hostname)
- var noProxyList = noProxy.split(',')
-
- // iterate through the noProxyList until it finds a match.
- return noProxyList.map(parseNoProxyZone).some(function (noProxyZone) {
- var isMatchedAt = hostname.indexOf(noProxyZone.hostname)
- var hostnameMatched = (
- isMatchedAt > -1 &&
- (isMatchedAt === hostname.length - noProxyZone.hostname.length)
- )
-
- if (noProxyZone.hasPort) {
- return (port === noProxyZone.port) && hostnameMatched
- }
-
- return hostnameMatched
- })
-}
-
-function getProxyFromURI (uri) {
- // Decide the proper request proxy to use based on the request URI object and the
- // environmental variables (NO_PROXY, HTTP_PROXY, etc.)
- // respect NO_PROXY environment variables (see: https://lynx.invisible-island.net/lynx2.8.7/breakout/lynx_help/keystrokes/environments.html)
-
- var noProxy = process.env.NO_PROXY || process.env.no_proxy || ''
-
- // if the noProxy is a wildcard then return null
-
- if (noProxy === '*') {
- return null
- }
-
- // if the noProxy is not empty and the uri is found return null
-
- if (noProxy !== '' && uriInNoProxy(uri, noProxy)) {
- return null
- }
-
- // Check for HTTP or HTTPS Proxy in environment Else default to null
-
- if (uri.protocol === 'http:') {
- return process.env.HTTP_PROXY ||
- process.env.http_proxy || null
- }
-
- if (uri.protocol === 'https:') {
- return process.env.HTTPS_PROXY ||
- process.env.https_proxy ||
- process.env.HTTP_PROXY ||
- process.env.http_proxy || null
- }
-
- // if none of that works, return null
- // (What uri protocol are you using then?)
-
- return null
-}
-
-module.exports = getProxyFromURI
diff --git a/node_modules/request/lib/har.js b/node_modules/request/lib/har.js
deleted file mode 100644
index 0dedee4..0000000
--- a/node_modules/request/lib/har.js
+++ /dev/null
@@ -1,205 +0,0 @@
-'use strict'
-
-var fs = require('fs')
-var qs = require('querystring')
-var validate = require('har-validator')
-var extend = require('extend')
-
-function Har (request) {
- this.request = request
-}
-
-Har.prototype.reducer = function (obj, pair) {
- // new property ?
- if (obj[pair.name] === undefined) {
- obj[pair.name] = pair.value
- return obj
- }
-
- // existing? convert to array
- var arr = [
- obj[pair.name],
- pair.value
- ]
-
- obj[pair.name] = arr
-
- return obj
-}
-
-Har.prototype.prep = function (data) {
- // construct utility properties
- data.queryObj = {}
- data.headersObj = {}
- data.postData.jsonObj = false
- data.postData.paramsObj = false
-
- // construct query objects
- if (data.queryString && data.queryString.length) {
- data.queryObj = data.queryString.reduce(this.reducer, {})
- }
-
- // construct headers objects
- if (data.headers && data.headers.length) {
- // loweCase header keys
- data.headersObj = data.headers.reduceRight(function (headers, header) {
- headers[header.name] = header.value
- return headers
- }, {})
- }
-
- // construct Cookie header
- if (data.cookies && data.cookies.length) {
- var cookies = data.cookies.map(function (cookie) {
- return cookie.name + '=' + cookie.value
- })
-
- if (cookies.length) {
- data.headersObj.cookie = cookies.join('; ')
- }
- }
-
- // prep body
- function some (arr) {
- return arr.some(function (type) {
- return data.postData.mimeType.indexOf(type) === 0
- })
- }
-
- if (some([
- 'multipart/mixed',
- 'multipart/related',
- 'multipart/form-data',
- 'multipart/alternative'])) {
- // reset values
- data.postData.mimeType = 'multipart/form-data'
- } else if (some([
- 'application/x-www-form-urlencoded'])) {
- if (!data.postData.params) {
- data.postData.text = ''
- } else {
- data.postData.paramsObj = data.postData.params.reduce(this.reducer, {})
-
- // always overwrite
- data.postData.text = qs.stringify(data.postData.paramsObj)
- }
- } else if (some([
- 'text/json',
- 'text/x-json',
- 'application/json',
- 'application/x-json'])) {
- data.postData.mimeType = 'application/json'
-
- if (data.postData.text) {
- try {
- data.postData.jsonObj = JSON.parse(data.postData.text)
- } catch (e) {
- this.request.debug(e)
-
- // force back to text/plain
- data.postData.mimeType = 'text/plain'
- }
- }
- }
-
- return data
-}
-
-Har.prototype.options = function (options) {
- // skip if no har property defined
- if (!options.har) {
- return options
- }
-
- var har = {}
- extend(har, options.har)
-
- // only process the first entry
- if (har.log && har.log.entries) {
- har = har.log.entries[0]
- }
-
- // add optional properties to make validation successful
- har.url = har.url || options.url || options.uri || options.baseUrl || '/'
- har.httpVersion = har.httpVersion || 'HTTP/1.1'
- har.queryString = har.queryString || []
- har.headers = har.headers || []
- har.cookies = har.cookies || []
- har.postData = har.postData || {}
- har.postData.mimeType = har.postData.mimeType || 'application/octet-stream'
-
- har.bodySize = 0
- har.headersSize = 0
- har.postData.size = 0
-
- if (!validate.request(har)) {
- return options
- }
-
- // clean up and get some utility properties
- var req = this.prep(har)
-
- // construct new options
- if (req.url) {
- options.url = req.url
- }
-
- if (req.method) {
- options.method = req.method
- }
-
- if (Object.keys(req.queryObj).length) {
- options.qs = req.queryObj
- }
-
- if (Object.keys(req.headersObj).length) {
- options.headers = req.headersObj
- }
-
- function test (type) {
- return req.postData.mimeType.indexOf(type) === 0
- }
- if (test('application/x-www-form-urlencoded')) {
- options.form = req.postData.paramsObj
- } else if (test('application/json')) {
- if (req.postData.jsonObj) {
- options.body = req.postData.jsonObj
- options.json = true
- }
- } else if (test('multipart/form-data')) {
- options.formData = {}
-
- req.postData.params.forEach(function (param) {
- var attachment = {}
-
- if (!param.fileName && !param.contentType) {
- options.formData[param.name] = param.value
- return
- }
-
- // attempt to read from disk!
- if (param.fileName && !param.value) {
- attachment.value = fs.createReadStream(param.fileName)
- } else if (param.value) {
- attachment.value = param.value
- }
-
- if (param.fileName) {
- attachment.options = {
- filename: param.fileName,
- contentType: param.contentType ? param.contentType : null
- }
- }
-
- options.formData[param.name] = attachment
- })
- } else {
- if (req.postData.text) {
- options.body = req.postData.text
- }
- }
-
- return options
-}
-
-exports.Har = Har
diff --git a/node_modules/request/lib/hawk.js b/node_modules/request/lib/hawk.js
deleted file mode 100644
index de48a98..0000000
--- a/node_modules/request/lib/hawk.js
+++ /dev/null
@@ -1,89 +0,0 @@
-'use strict'
-
-var crypto = require('crypto')
-
-function randomString (size) {
- var bits = (size + 1) * 6
- var buffer = crypto.randomBytes(Math.ceil(bits / 8))
- var string = buffer.toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '')
- return string.slice(0, size)
-}
-
-function calculatePayloadHash (payload, algorithm, contentType) {
- var hash = crypto.createHash(algorithm)
- hash.update('hawk.1.payload\n')
- hash.update((contentType ? contentType.split(';')[0].trim().toLowerCase() : '') + '\n')
- hash.update(payload || '')
- hash.update('\n')
- return hash.digest('base64')
-}
-
-exports.calculateMac = function (credentials, opts) {
- var normalized = 'hawk.1.header\n' +
- opts.ts + '\n' +
- opts.nonce + '\n' +
- (opts.method || '').toUpperCase() + '\n' +
- opts.resource + '\n' +
- opts.host.toLowerCase() + '\n' +
- opts.port + '\n' +
- (opts.hash || '') + '\n'
-
- if (opts.ext) {
- normalized = normalized + opts.ext.replace('\\', '\\\\').replace('\n', '\\n')
- }
-
- normalized = normalized + '\n'
-
- if (opts.app) {
- normalized = normalized + opts.app + '\n' + (opts.dlg || '') + '\n'
- }
-
- var hmac = crypto.createHmac(credentials.algorithm, credentials.key).update(normalized)
- var digest = hmac.digest('base64')
- return digest
-}
-
-exports.header = function (uri, method, opts) {
- var timestamp = opts.timestamp || Math.floor((Date.now() + (opts.localtimeOffsetMsec || 0)) / 1000)
- var credentials = opts.credentials
- if (!credentials || !credentials.id || !credentials.key || !credentials.algorithm) {
- return ''
- }
-
- if (['sha1', 'sha256'].indexOf(credentials.algorithm) === -1) {
- return ''
- }
-
- var artifacts = {
- ts: timestamp,
- nonce: opts.nonce || randomString(6),
- method: method,
- resource: uri.pathname + (uri.search || ''),
- host: uri.hostname,
- port: uri.port || (uri.protocol === 'http:' ? 80 : 443),
- hash: opts.hash,
- ext: opts.ext,
- app: opts.app,
- dlg: opts.dlg
- }
-
- if (!artifacts.hash && (opts.payload || opts.payload === '')) {
- artifacts.hash = calculatePayloadHash(opts.payload, credentials.algorithm, opts.contentType)
- }
-
- var mac = exports.calculateMac(credentials, artifacts)
-
- var hasExt = artifacts.ext !== null && artifacts.ext !== undefined && artifacts.ext !== ''
- var header = 'Hawk id="' + credentials.id +
- '", ts="' + artifacts.ts +
- '", nonce="' + artifacts.nonce +
- (artifacts.hash ? '", hash="' + artifacts.hash : '') +
- (hasExt ? '", ext="' + artifacts.ext.replace(/\\/g, '\\\\').replace(/"/g, '\\"') : '') +
- '", mac="' + mac + '"'
-
- if (artifacts.app) {
- header = header + ', app="' + artifacts.app + (artifacts.dlg ? '", dlg="' + artifacts.dlg : '') + '"'
- }
-
- return header
-}
diff --git a/node_modules/request/lib/helpers.js b/node_modules/request/lib/helpers.js
deleted file mode 100644
index 8b2a7e6..0000000
--- a/node_modules/request/lib/helpers.js
+++ /dev/null
@@ -1,66 +0,0 @@
-'use strict'
-
-var jsonSafeStringify = require('json-stringify-safe')
-var crypto = require('crypto')
-var Buffer = require('safe-buffer').Buffer
-
-var defer = typeof setImmediate === 'undefined'
- ? process.nextTick
- : setImmediate
-
-function paramsHaveRequestBody (params) {
- return (
- params.body ||
- params.requestBodyStream ||
- (params.json && typeof params.json !== 'boolean') ||
- params.multipart
- )
-}
-
-function safeStringify (obj, replacer) {
- var ret
- try {
- ret = JSON.stringify(obj, replacer)
- } catch (e) {
- ret = jsonSafeStringify(obj, replacer)
- }
- return ret
-}
-
-function md5 (str) {
- return crypto.createHash('md5').update(str).digest('hex')
-}
-
-function isReadStream (rs) {
- return rs.readable && rs.path && rs.mode
-}
-
-function toBase64 (str) {
- return Buffer.from(str || '', 'utf8').toString('base64')
-}
-
-function copy (obj) {
- var o = {}
- Object.keys(obj).forEach(function (i) {
- o[i] = obj[i]
- })
- return o
-}
-
-function version () {
- var numbers = process.version.replace('v', '').split('.')
- return {
- major: parseInt(numbers[0], 10),
- minor: parseInt(numbers[1], 10),
- patch: parseInt(numbers[2], 10)
- }
-}
-
-exports.paramsHaveRequestBody = paramsHaveRequestBody
-exports.safeStringify = safeStringify
-exports.md5 = md5
-exports.isReadStream = isReadStream
-exports.toBase64 = toBase64
-exports.copy = copy
-exports.version = version
-exports.defer = defer
diff --git a/node_modules/request/lib/multipart.js b/node_modules/request/lib/multipart.js
deleted file mode 100644
index 6a009bc..0000000
--- a/node_modules/request/lib/multipart.js
+++ /dev/null
@@ -1,112 +0,0 @@
-'use strict'
-
-var uuid = require('uuid/v4')
-var CombinedStream = require('combined-stream')
-var isstream = require('isstream')
-var Buffer = require('safe-buffer').Buffer
-
-function Multipart (request) {
- this.request = request
- this.boundary = uuid()
- this.chunked = false
- this.body = null
-}
-
-Multipart.prototype.isChunked = function (options) {
- var self = this
- var chunked = false
- var parts = options.data || options
-
- if (!parts.forEach) {
- self.request.emit('error', new Error('Argument error, options.multipart.'))
- }
-
- if (options.chunked !== undefined) {
- chunked = options.chunked
- }
-
- if (self.request.getHeader('transfer-encoding') === 'chunked') {
- chunked = true
- }
-
- if (!chunked) {
- parts.forEach(function (part) {
- if (typeof part.body === 'undefined') {
- self.request.emit('error', new Error('Body attribute missing in multipart.'))
- }
- if (isstream(part.body)) {
- chunked = true
- }
- })
- }
-
- return chunked
-}
-
-Multipart.prototype.setHeaders = function (chunked) {
- var self = this
-
- if (chunked && !self.request.hasHeader('transfer-encoding')) {
- self.request.setHeader('transfer-encoding', 'chunked')
- }
-
- var header = self.request.getHeader('content-type')
-
- if (!header || header.indexOf('multipart') === -1) {
- self.request.setHeader('content-type', 'multipart/related; boundary=' + self.boundary)
- } else {
- if (header.indexOf('boundary') !== -1) {
- self.boundary = header.replace(/.*boundary=([^\s;]+).*/, '$1')
- } else {
- self.request.setHeader('content-type', header + '; boundary=' + self.boundary)
- }
- }
-}
-
-Multipart.prototype.build = function (parts, chunked) {
- var self = this
- var body = chunked ? new CombinedStream() : []
-
- function add (part) {
- if (typeof part === 'number') {
- part = part.toString()
- }
- return chunked ? body.append(part) : body.push(Buffer.from(part))
- }
-
- if (self.request.preambleCRLF) {
- add('\r\n')
- }
-
- parts.forEach(function (part) {
- var preamble = '--' + self.boundary + '\r\n'
- Object.keys(part).forEach(function (key) {
- if (key === 'body') { return }
- preamble += key + ': ' + part[key] + '\r\n'
- })
- preamble += '\r\n'
- add(preamble)
- add(part.body)
- add('\r\n')
- })
- add('--' + self.boundary + '--')
-
- if (self.request.postambleCRLF) {
- add('\r\n')
- }
-
- return body
-}
-
-Multipart.prototype.onRequest = function (options) {
- var self = this
-
- var chunked = self.isChunked(options)
- var parts = options.data || options
-
- self.setHeaders(chunked)
- self.chunked = chunked
- self.body = self.build(parts, chunked)
-}
-
-exports.Multipart = Multipart
diff --git a/node_modules/request/lib/oauth.js b/node_modules/request/lib/oauth.js
deleted file mode 100644
index 96de72b..0000000
--- a/node_modules/request/lib/oauth.js
+++ /dev/null
@@ -1,148 +0,0 @@
-'use strict'
-
-var url = require('url')
-var qs = require('qs')
-var caseless = require('caseless')
-var uuid = require('uuid/v4')
-var oauth = require('oauth-sign')
-var crypto = require('crypto')
-var Buffer = require('safe-buffer').Buffer
-
-function OAuth (request) {
- this.request = request
- this.params = null
-}
-
-OAuth.prototype.buildParams = function (_oauth, uri, method, query, form, qsLib) {
- var oa = {}
- for (var i in _oauth) {
- oa['oauth_' + i] = _oauth[i]
- }
- if (!oa.oauth_version) {
- oa.oauth_version = '1.0'
- }
- if (!oa.oauth_timestamp) {
- oa.oauth_timestamp = Math.floor(Date.now() / 1000).toString()
- }
- if (!oa.oauth_nonce) {
- oa.oauth_nonce = uuid().replace(/-/g, '')
- }
- if (!oa.oauth_signature_method) {
- oa.oauth_signature_method = 'HMAC-SHA1'
- }
-
- var consumer_secret_or_private_key = oa.oauth_consumer_secret || oa.oauth_private_key // eslint-disable-line camelcase
- delete oa.oauth_consumer_secret
- delete oa.oauth_private_key
-
- var token_secret = oa.oauth_token_secret // eslint-disable-line camelcase
- delete oa.oauth_token_secret
-
- var realm = oa.oauth_realm
- delete oa.oauth_realm
- delete oa.oauth_transport_method
-
- var baseurl = uri.protocol + '//' + uri.host + uri.pathname
- var params = qsLib.parse([].concat(query, form, qsLib.stringify(oa)).join('&'))
-
- oa.oauth_signature = oauth.sign(
- oa.oauth_signature_method,
- method,
- baseurl,
- params,
- consumer_secret_or_private_key, // eslint-disable-line camelcase
- token_secret // eslint-disable-line camelcase
- )
-
- if (realm) {
- oa.realm = realm
- }
-
- return oa
-}
-
-OAuth.prototype.buildBodyHash = function (_oauth, body) {
- if (['HMAC-SHA1', 'RSA-SHA1'].indexOf(_oauth.signature_method || 'HMAC-SHA1') < 0) {
- this.request.emit('error', new Error('oauth: ' + _oauth.signature_method +
- ' signature_method not supported with body_hash signing.'))
- }
-
- var shasum = crypto.createHash('sha1')
- shasum.update(body || '')
- var sha1 = shasum.digest('hex')
-
- return Buffer.from(sha1, 'hex').toString('base64')
-}
-
-OAuth.prototype.concatParams = function (oa, sep, wrap) {
- wrap = wrap || ''
-
- var params = Object.keys(oa).filter(function (i) {
- return i !== 'realm' && i !== 'oauth_signature'
- }).sort()
-
- if (oa.realm) {
- params.splice(0, 0, 'realm')
- }
- params.push('oauth_signature')
-
- return params.map(function (i) {
- return i + '=' + wrap + oauth.rfc3986(oa[i]) + wrap
- }).join(sep)
-}
-
-OAuth.prototype.onRequest = function (_oauth) {
- var self = this
- self.params = _oauth
-
- var uri = self.request.uri || {}
- var method = self.request.method || ''
- var headers = caseless(self.request.headers)
- var body = self.request.body || ''
- var qsLib = self.request.qsLib || qs
-
- var form
- var query
- var contentType = headers.get('content-type') || ''
- var formContentType = 'application/x-www-form-urlencoded'
- var transport = _oauth.transport_method || 'header'
-
- if (contentType.slice(0, formContentType.length) === formContentType) {
- contentType = formContentType
- form = body
- }
- if (uri.query) {
- query = uri.query
- }
- if (transport === 'body' && (method !== 'POST' || contentType !== formContentType)) {
- self.request.emit('error', new Error('oauth: transport_method of body requires POST ' +
- 'and content-type ' + formContentType))
- }
-
- if (!form && typeof _oauth.body_hash === 'boolean') {
- _oauth.body_hash = self.buildBodyHash(_oauth, self.request.body.toString())
- }
-
- var oa = self.buildParams(_oauth, uri, method, query, form, qsLib)
-
- switch (transport) {
- case 'header':
- self.request.setHeader('Authorization', 'OAuth ' + self.concatParams(oa, ',', '"'))
- break
-
- case 'query':
- var href = self.request.uri.href += (query ? '&' : '?') + self.concatParams(oa, '&')
- self.request.uri = url.parse(href)
- self.request.path = self.request.uri.path
- break
-
- case 'body':
- self.request.body = (form ? form + '&' : '') + self.concatParams(oa, '&')
- break
-
- default:
- self.request.emit('error', new Error('oauth: transport_method invalid'))
- }
-}
-
-exports.OAuth = OAuth
diff --git a/node_modules/request/lib/querystring.js b/node_modules/request/lib/querystring.js
deleted file mode 100644
index 4a32cd1..0000000
--- a/node_modules/request/lib/querystring.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict'
-
-var qs = require('qs')
-var querystring = require('querystring')
-
-function Querystring (request) {
- this.request = request
- this.lib = null
- this.useQuerystring = null
- this.parseOptions = null
- this.stringifyOptions = null
-}
-
-Querystring.prototype.init = function (options) {
- if (this.lib) { return }
-
- this.useQuerystring = options.useQuerystring
- this.lib = (this.useQuerystring ? querystring : qs)
-
- this.parseOptions = options.qsParseOptions || {}
- this.stringifyOptions = options.qsStringifyOptions || {}
-}
-
-Querystring.prototype.stringify = function (obj) {
- return (this.useQuerystring)
- ? this.rfc3986(this.lib.stringify(obj,
- this.stringifyOptions.sep || null,
- this.stringifyOptions.eq || null,
- this.stringifyOptions))
- : this.lib.stringify(obj, this.stringifyOptions)
-}
-
-Querystring.prototype.parse = function (str) {
- return (this.useQuerystring)
- ? this.lib.parse(str,
- this.parseOptions.sep || null,
- this.parseOptions.eq || null,
- this.parseOptions)
- : this.lib.parse(str, this.parseOptions)
-}
-
-Querystring.prototype.rfc3986 = function (str) {
- return str.replace(/[!'()*]/g, function (c) {
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
- })
-}
-
-Querystring.prototype.unescape = querystring.unescape
-
-exports.Querystring = Querystring
diff --git a/node_modules/request/lib/redirect.js b/node_modules/request/lib/redirect.js
deleted file mode 100644
index b9150e7..0000000
--- a/node_modules/request/lib/redirect.js
+++ /dev/null
@@ -1,154 +0,0 @@
-'use strict'
-
-var url = require('url')
-var isUrl = /^https?:/
-
-function Redirect (request) {
- this.request = request
- this.followRedirect = true
- this.followRedirects = true
- this.followAllRedirects = false
- this.followOriginalHttpMethod = false
- this.allowRedirect = function () { return true }
- this.maxRedirects = 10
- this.redirects = []
- this.redirectsFollowed = 0
- this.removeRefererHeader = false
-}
-
-Redirect.prototype.onRequest = function (options) {
- var self = this
-
- if (options.maxRedirects !== undefined) {
- self.maxRedirects = options.maxRedirects
- }
- if (typeof options.followRedirect === 'function') {
- self.allowRedirect = options.followRedirect
- }
- if (options.followRedirect !== undefined) {
- self.followRedirects = !!options.followRedirect
- }
- if (options.followAllRedirects !== undefined) {
- self.followAllRedirects = options.followAllRedirects
- }
- if (self.followRedirects || self.followAllRedirects) {
- self.redirects = self.redirects || []
- }
- if (options.removeRefererHeader !== undefined) {
- self.removeRefererHeader = options.removeRefererHeader
- }
- if (options.followOriginalHttpMethod !== undefined) {
- self.followOriginalHttpMethod = options.followOriginalHttpMethod
- }
-}
-
-Redirect.prototype.redirectTo = function (response) {
- var self = this
- var request = self.request
-
- var redirectTo = null
- if (response.statusCode >= 300 && response.statusCode < 400 && response.caseless.has('location')) {
- var location = response.caseless.get('location')
- request.debug('redirect', location)
-
- if (self.followAllRedirects) {
- redirectTo = location
- } else if (self.followRedirects) {
- switch (request.method) {
- case 'PATCH':
- case 'PUT':
- case 'POST':
- case 'DELETE':
- // Do not follow redirects
- break
- default:
- redirectTo = location
- break
- }
- }
- } else if (response.statusCode === 401) {
- var authHeader = request._auth.onResponse(response)
- if (authHeader) {
- request.setHeader('authorization', authHeader)
- redirectTo = request.uri
- }
- }
- return redirectTo
-}
-
-Redirect.prototype.onResponse = function (response) {
- var self = this
- var request = self.request
-
- var redirectTo = self.redirectTo(response)
- if (!redirectTo || !self.allowRedirect.call(request, response)) {
- return false
- }
-
- request.debug('redirect to', redirectTo)
-
- // ignore any potential response body. it cannot possibly be useful
- // to us at this point.
- // response.resume should be defined, but check anyway before calling. Workaround for browserify.
- if (response.resume) {
- response.resume()
- }
-
- if (self.redirectsFollowed >= self.maxRedirects) {
- request.emit('error', new Error('Exceeded maxRedirects. Probably stuck in a redirect loop ' + request.uri.href))
- return false
- }
- self.redirectsFollowed += 1
-
- if (!isUrl.test(redirectTo)) {
- redirectTo = url.resolve(request.uri.href, redirectTo)
- }
-
- var uriPrev = request.uri
- request.uri = url.parse(redirectTo)
-
- // handle the case where we change protocol from https to http or vice versa
- if (request.uri.protocol !== uriPrev.protocol) {
- delete request.agent
- }
-
- self.redirects.push({ statusCode: response.statusCode, redirectUri: redirectTo })
-
- if (self.followAllRedirects && request.method !== 'HEAD' &&
- response.statusCode !== 401 && response.statusCode !== 307) {
- request.method = self.followOriginalHttpMethod ? request.method : 'GET'
- }
- // request.method = 'GET' // Force all redirects to use GET || commented out fixes #215
- delete request.src
- delete request.req
- delete request._started
- if (response.statusCode !== 401 && response.statusCode !== 307) {
- // Remove parameters from the previous response, unless this is the second request
- // for a server that requires digest authentication.
- delete request.body
- delete request._form
- if (request.headers) {
- request.removeHeader('host')
- request.removeHeader('content-type')
- request.removeHeader('content-length')
- if (request.uri.hostname !== request.originalHost.split(':')[0]) {
- // Remove authorization if changing hostnames (but not if just
- // changing ports or protocols). This matches the behavior of curl:
- // https://github.com/bagder/curl/blob/6beb0eee/lib/http.c#L710
- request.removeHeader('authorization')
- }
- }
- }
-
- if (!self.removeRefererHeader) {
- request.setHeader('referer', uriPrev.href)
- }
-
- request.emit('redirect')
-
- request.init()
-
- return true
-}
-
-exports.Redirect = Redirect
diff --git a/node_modules/request/lib/tunnel.js b/node_modules/request/lib/tunnel.js
deleted file mode 100644
index 4479003..0000000
--- a/node_modules/request/lib/tunnel.js
+++ /dev/null
@@ -1,175 +0,0 @@
-'use strict'
-
-var url = require('url')
-var tunnel = require('tunnel-agent')
-
-var defaultProxyHeaderWhiteList = [
- 'accept',
- 'accept-charset',
- 'accept-encoding',
- 'accept-language',
- 'accept-ranges',
- 'cache-control',
- 'content-encoding',
- 'content-language',
- 'content-location',
- 'content-md5',
- 'content-range',
- 'content-type',
- 'connection',
- 'date',
- 'expect',
- 'max-forwards',
- 'pragma',
- 'referer',
- 'te',
- 'user-agent',
- 'via'
-]
-
-var defaultProxyHeaderExclusiveList = [
- 'proxy-authorization'
-]
-
-function constructProxyHost (uriObject) {
- var port = uriObject.port
- var protocol = uriObject.protocol
- var proxyHost = uriObject.hostname + ':'
-
- if (port) {
- proxyHost += port
- } else if (protocol === 'https:') {
- proxyHost += '443'
- } else {
- proxyHost += '80'
- }
-
- return proxyHost
-}
-
-function constructProxyHeaderWhiteList (headers, proxyHeaderWhiteList) {
- var whiteList = proxyHeaderWhiteList
- .reduce(function (set, header) {
- set[header.toLowerCase()] = true
- return set
- }, {})
-
- return Object.keys(headers)
- .filter(function (header) {
- return whiteList[header.toLowerCase()]
- })
- .reduce(function (set, header) {
- set[header] = headers[header]
- return set
- }, {})
-}
-
-function constructTunnelOptions (request, proxyHeaders) {
- var proxy = request.proxy
-
- var tunnelOptions = {
- proxy: {
- host: proxy.hostname,
- port: +proxy.port,
- proxyAuth: proxy.auth,
- headers: proxyHeaders
- },
- headers: request.headers,
- ca: request.ca,
- cert: request.cert,
- key: request.key,
- passphrase: request.passphrase,
- pfx: request.pfx,
- ciphers: request.ciphers,
- rejectUnauthorized: request.rejectUnauthorized,
- secureOptions: request.secureOptions,
- secureProtocol: request.secureProtocol
- }
-
- return tunnelOptions
-}
-
-function constructTunnelFnName (uri, proxy) {
- var uriProtocol = (uri.protocol === 'https:' ? 'https' : 'http')
- var proxyProtocol = (proxy.protocol === 'https:' ? 'Https' : 'Http')
- return [uriProtocol, proxyProtocol].join('Over')
-}
-
-function getTunnelFn (request) {
- var uri = request.uri
- var proxy = request.proxy
- var tunnelFnName = constructTunnelFnName(uri, proxy)
- return tunnel[tunnelFnName]
-}
-
-function Tunnel (request) {
- this.request = request
- this.proxyHeaderWhiteList = defaultProxyHeaderWhiteList
- this.proxyHeaderExclusiveList = []
- if (typeof request.tunnel !== 'undefined') {
- this.tunnelOverride = request.tunnel
- }
-}
-
-Tunnel.prototype.isEnabled = function () {
- var self = this
- var request = self.request
- // Tunnel HTTPS by default. Allow the user to override this setting.
-
- // If self.tunnelOverride is set (the user specified a value), use it.
- if (typeof self.tunnelOverride !== 'undefined') {
- return self.tunnelOverride
- }
-
- // If the destination is HTTPS, tunnel.
- if (request.uri.protocol === 'https:') {
- return true
- }
-
- // Otherwise, do not use tunnel.
- return false
-}
-
-Tunnel.prototype.setup = function (options) {
- var self = this
- var request = self.request
-
- options = options || {}
-
- if (typeof request.proxy === 'string') {
- request.proxy = url.parse(request.proxy)
- }
-
- if (!request.proxy || !request.tunnel) {
- return false
- }
-
- // Setup Proxy Header Exclusive List and White List
- if (options.proxyHeaderWhiteList) {
- self.proxyHeaderWhiteList = options.proxyHeaderWhiteList
- }
- if (options.proxyHeaderExclusiveList) {
- self.proxyHeaderExclusiveList = options.proxyHeaderExclusiveList
- }
-
- var proxyHeaderExclusiveList = self.proxyHeaderExclusiveList.concat(defaultProxyHeaderExclusiveList)
- var proxyHeaderWhiteList = self.proxyHeaderWhiteList.concat(proxyHeaderExclusiveList)
-
- // Setup Proxy Headers and Proxy Headers Host
- // Only send the Proxy White Listed Header names
- var proxyHeaders = constructProxyHeaderWhiteList(request.headers, proxyHeaderWhiteList)
- proxyHeaders.host = constructProxyHost(request.uri)
-
- proxyHeaderExclusiveList.forEach(request.removeHeader, request)
-
- // Set Agent from Tunnel Data
- var tunnelFn = getTunnelFn(request)
- var tunnelOptions = constructTunnelOptions(request, proxyHeaders)
- request.agent = tunnelFn(tunnelOptions)
-
- return true
-}
-
-Tunnel.defaultProxyHeaderWhiteList = defaultProxyHeaderWhiteList
-Tunnel.defaultProxyHeaderExclusiveList = defaultProxyHeaderExclusiveList
-exports.Tunnel = Tunnel
diff --git a/node_modules/request/package.json b/node_modules/request/package.json
deleted file mode 100644
index e3c97be..0000000
--- a/node_modules/request/package.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "_from": "request@^2.88.0",
- "_id": "request@2.88.2",
- "_inBundle": false,
- "_integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
- "_location": "/request",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "request@^2.88.0",
- "name": "request",
- "escapedName": "request",
- "rawSpec": "^2.88.0",
- "saveSpec": null,
- "fetchSpec": "^2.88.0"
- },
- "_requiredBy": [
- "/node-gyp",
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
- "_shasum": "d73c918731cb5a87da047e207234146f664d12b3",
- "_spec": "request@^2.88.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/node-sass",
- "author": {
- "name": "Mikeal Rogers",
- "email": "mikeal.rogers@gmail.com"
- },
- "bugs": {
- "url": "http://github.com/request/request/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "aws-sign2": "~0.7.0",
- "aws4": "^1.8.0",
- "caseless": "~0.12.0",
- "combined-stream": "~1.0.6",
- "extend": "~3.0.2",
- "forever-agent": "~0.6.1",
- "form-data": "~2.3.2",
- "har-validator": "~5.1.3",
- "http-signature": "~1.2.0",
- "is-typedarray": "~1.0.0",
- "isstream": "~0.1.2",
- "json-stringify-safe": "~5.0.1",
- "mime-types": "~2.1.19",
- "oauth-sign": "~0.9.0",
- "performance-now": "^2.1.0",
- "qs": "~6.5.2",
- "safe-buffer": "^5.1.2",
- "tough-cookie": "~2.5.0",
- "tunnel-agent": "^0.6.0",
- "uuid": "^3.3.2"
- },
- "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142",
- "description": "Simplified HTTP request client.",
- "devDependencies": {
- "bluebird": "^3.2.1",
- "browserify": "^13.0.1",
- "browserify-istanbul": "^2.0.0",
- "buffer-equal": "^1.0.0",
- "codecov": "^3.0.4",
- "coveralls": "^3.0.2",
- "function-bind": "^1.0.2",
- "karma": "^3.0.0",
- "karma-browserify": "^5.0.1",
- "karma-cli": "^1.0.0",
- "karma-coverage": "^1.0.0",
- "karma-phantomjs-launcher": "^1.0.0",
- "karma-tap": "^3.0.1",
- "nyc": "^14.1.1",
- "phantomjs-prebuilt": "^2.1.3",
- "rimraf": "^2.2.8",
- "server-destroy": "^1.0.1",
- "standard": "^9.0.0",
- "tape": "^4.6.0",
- "taper": "^0.5.0"
- },
- "engines": {
- "node": ">= 6"
- },
- "files": [
- "lib/",
- "index.js",
- "request.js"
- ],
- "greenkeeper": {
- "ignore": [
- "hawk",
- "har-validator"
- ]
- },
- "homepage": "https://github.com/request/request#readme",
- "keywords": [
- "http",
- "simple",
- "util",
- "utility"
- ],
- "license": "Apache-2.0",
- "main": "index.js",
- "name": "request",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/request/request.git"
- },
- "scripts": {
- "lint": "standard",
- "test": "npm run lint && npm run test-ci && npm run test-browser",
- "test-browser": "node tests/browser/start.js",
- "test-ci": "taper tests/test-*.js",
- "test-cov": "nyc --reporter=lcov tape tests/test-*.js"
- },
- "version": "2.88.2"
-}
diff --git a/node_modules/request/request.js b/node_modules/request/request.js
deleted file mode 100644
index 198b760..0000000
--- a/node_modules/request/request.js
+++ /dev/null
@@ -1,1553 +0,0 @@
-'use strict'
-
-var http = require('http')
-var https = require('https')
-var url = require('url')
-var util = require('util')
-var stream = require('stream')
-var zlib = require('zlib')
-var aws2 = require('aws-sign2')
-var aws4 = require('aws4')
-var httpSignature = require('http-signature')
-var mime = require('mime-types')
-var caseless = require('caseless')
-var ForeverAgent = require('forever-agent')
-var FormData = require('form-data')
-var extend = require('extend')
-var isstream = require('isstream')
-var isTypedArray = require('is-typedarray').strict
-var helpers = require('./lib/helpers')
-var cookies = require('./lib/cookies')
-var getProxyFromURI = require('./lib/getProxyFromURI')
-var Querystring = require('./lib/querystring').Querystring
-var Har = require('./lib/har').Har
-var Auth = require('./lib/auth').Auth
-var OAuth = require('./lib/oauth').OAuth
-var hawk = require('./lib/hawk')
-var Multipart = require('./lib/multipart').Multipart
-var Redirect = require('./lib/redirect').Redirect
-var Tunnel = require('./lib/tunnel').Tunnel
-var now = require('performance-now')
-var Buffer = require('safe-buffer').Buffer
-
-var safeStringify = helpers.safeStringify
-var isReadStream = helpers.isReadStream
-var toBase64 = helpers.toBase64
-var defer = helpers.defer
-var copy = helpers.copy
-var version = helpers.version
-var globalCookieJar = cookies.jar()
-
-var globalPool = {}
-
-function filterForNonReserved (reserved, options) {
- // Filter out properties that are not reserved.
- // Reserved values are passed in at call site.
-
- var object = {}
- for (var i in options) {
- var notReserved = (reserved.indexOf(i) === -1)
- if (notReserved) {
- object[i] = options[i]
- }
- }
- return object
-}
-
-function filterOutReservedFunctions (reserved, options) {
- // Filter out properties that are functions and are reserved.
- // Reserved values are passed in at call site.
-
- var object = {}
- for (var i in options) {
- var isReserved = !(reserved.indexOf(i) === -1)
- var isFunction = (typeof options[i] === 'function')
- if (!(isReserved && isFunction)) {
- object[i] = options[i]
- }
- }
- return object
-}
-
-// Return a simpler request object to allow serialization
-function requestToJSON () {
- var self = this
- return {
- uri: self.uri,
- method: self.method,
- headers: self.headers
- }
-}
-
-// Return a simpler response object to allow serialization
-function responseToJSON () {
- var self = this
- return {
- statusCode: self.statusCode,
- body: self.body,
- headers: self.headers,
- request: requestToJSON.call(self.request)
- }
-}
-
-function Request (options) {
- // if given the method property in options, set property explicitMethod to true
-
- // extend the Request instance with any non-reserved properties
- // remove any reserved functions from the options object
- // set Request instance to be readable and writable
- // call init
-
- var self = this
-
- // start with HAR, then override with additional options
- if (options.har) {
- self._har = new Har(self)
- options = self._har.options(options)
- }
-
- stream.Stream.call(self)
- var reserved = Object.keys(Request.prototype)
- var nonReserved = filterForNonReserved(reserved, options)
-
- extend(self, nonReserved)
- options = filterOutReservedFunctions(reserved, options)
-
- self.readable = true
- self.writable = true
- if (options.method) {
- self.explicitMethod = true
- }
- self._qs = new Querystring(self)
- self._auth = new Auth(self)
- self._oauth = new OAuth(self)
- self._multipart = new Multipart(self)
- self._redirect = new Redirect(self)
- self._tunnel = new Tunnel(self)
- self.init(options)
-}
-
-util.inherits(Request, stream.Stream)
-
-// Debugging
-Request.debug = process.env.NODE_DEBUG && /\brequest\b/.test(process.env.NODE_DEBUG)
-function debug () {
- if (Request.debug) {
- console.error('REQUEST %s', util.format.apply(util, arguments))
- }
-}
-Request.prototype.debug = debug
-
-Request.prototype.init = function (options) {
- // init() contains all the code to setup the request object.
- // the actual outgoing request is not started until start() is called
- // this function is called from both the constructor and on redirect.
- var self = this
- if (!options) {
- options = {}
- }
- self.headers = self.headers ? copy(self.headers) : {}
-
- // Delete headers with value undefined since they break
- // ClientRequest.OutgoingMessage.setHeader in node 0.12
- for (var headerName in self.headers) {
- if (typeof self.headers[headerName] === 'undefined') {
- delete self.headers[headerName]
- }
- }
-
- caseless.httpify(self, self.headers)
-
- if (!self.method) {
- self.method = options.method || 'GET'
- }
- if (!self.localAddress) {
- self.localAddress = options.localAddress
- }
-
- self._qs.init(options)
-
- debug(options)
- if (!self.pool && self.pool !== false) {
- self.pool = globalPool
- }
- self.dests = self.dests || []
- self.__isRequestRequest = true
-
- // Protect against double callback
- if (!self._callback && self.callback) {
- self._callback = self.callback
- self.callback = function () {
- if (self._callbackCalled) {
- return // Print a warning maybe?
- }
- self._callbackCalled = true
- self._callback.apply(self, arguments)
- }
- self.on('error', self.callback.bind())
- self.on('complete', self.callback.bind(self, null))
- }
-
- // People use this property instead all the time, so support it
- if (!self.uri && self.url) {
- self.uri = self.url
- delete self.url
- }
-
- // If there's a baseUrl, then use it as the base URL (i.e. uri must be
- // specified as a relative path and is appended to baseUrl).
- if (self.baseUrl) {
- if (typeof self.baseUrl !== 'string') {
- return self.emit('error', new Error('options.baseUrl must be a string'))
- }
-
- if (typeof self.uri !== 'string') {
- return self.emit('error', new Error('options.uri must be a string when using options.baseUrl'))
- }
-
- if (self.uri.indexOf('//') === 0 || self.uri.indexOf('://') !== -1) {
- return self.emit('error', new Error('options.uri must be a path when using options.baseUrl'))
- }
-
- // Handle all cases to make sure that there's only one slash between
- // baseUrl and uri.
- var baseUrlEndsWithSlash = self.baseUrl.lastIndexOf('/') === self.baseUrl.length - 1
- var uriStartsWithSlash = self.uri.indexOf('/') === 0
-
- if (baseUrlEndsWithSlash && uriStartsWithSlash) {
- self.uri = self.baseUrl + self.uri.slice(1)
- } else if (baseUrlEndsWithSlash || uriStartsWithSlash) {
- self.uri = self.baseUrl + self.uri
- } else if (self.uri === '') {
- self.uri = self.baseUrl
- } else {
- self.uri = self.baseUrl + '/' + self.uri
- }
- delete self.baseUrl
- }
-
- // A URI is needed by this point, emit error if we haven't been able to get one
- if (!self.uri) {
- return self.emit('error', new Error('options.uri is a required argument'))
- }
-
- // If a string URI/URL was given, parse it into a URL object
- if (typeof self.uri === 'string') {
- self.uri = url.parse(self.uri)
- }
-
- // Some URL objects are not from a URL parsed string and need href added
- if (!self.uri.href) {
- self.uri.href = url.format(self.uri)
- }
-
- // DEPRECATED: Warning for users of the old Unix Sockets URL Scheme
- if (self.uri.protocol === 'unix:') {
- return self.emit('error', new Error('`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`'))
- }
-
- // Support Unix Sockets
- if (self.uri.host === 'unix') {
- self.enableUnixSocket()
- }
-
- if (self.strictSSL === false) {
- self.rejectUnauthorized = false
- }
-
- if (!self.uri.pathname) { self.uri.pathname = '/' }
-
- if (!(self.uri.host || (self.uri.hostname && self.uri.port)) && !self.uri.isUnix) {
- // Invalid URI: it may generate lot of bad errors, like 'TypeError: Cannot call method `indexOf` of undefined' in CookieJar
- // Detect and reject it as soon as possible
- var faultyUri = url.format(self.uri)
- var message = 'Invalid URI "' + faultyUri + '"'
- if (Object.keys(options).length === 0) {
- // No option ? This can be the sign of a redirect
- // As this is a case where the user cannot do anything (they didn't call request directly with this URL)
- // they should be warned that it can be caused by a redirection (can save some hair)
- message += '. This can be caused by a crappy redirection.'
- }
- // This error was fatal
- self.abort()
- return self.emit('error', new Error(message))
- }
-
- if (!self.hasOwnProperty('proxy')) {
- self.proxy = getProxyFromURI(self.uri)
- }
-
- self.tunnel = self._tunnel.isEnabled()
- if (self.proxy) {
- self._tunnel.setup(options)
- }
-
- self._redirect.onRequest(options)
-
- self.setHost = false
- if (!self.hasHeader('host')) {
- var hostHeaderName = self.originalHostHeaderName || 'host'
- self.setHeader(hostHeaderName, self.uri.host)
- // Drop :port suffix from Host header if known protocol.
- if (self.uri.port) {
- if ((self.uri.port === '80' && self.uri.protocol === 'http:') ||
- (self.uri.port === '443' && self.uri.protocol === 'https:')) {
- self.setHeader(hostHeaderName, self.uri.hostname)
- }
- }
- self.setHost = true
- }
-
- self.jar(self._jar || options.jar)
-
- if (!self.uri.port) {
- if (self.uri.protocol === 'http:') { self.uri.port = 80 } else if (self.uri.protocol === 'https:') { self.uri.port = 443 }
- }
-
- if (self.proxy && !self.tunnel) {
- self.port = self.proxy.port
- self.host = self.proxy.hostname
- } else {
- self.port = self.uri.port
- self.host = self.uri.hostname
- }
-
- if (options.form) {
- self.form(options.form)
- }
-
- if (options.formData) {
- var formData = options.formData
- var requestForm = self.form()
- var appendFormValue = function (key, value) {
- if (value && value.hasOwnProperty('value') && value.hasOwnProperty('options')) {
- requestForm.append(key, value.value, value.options)
- } else {
- requestForm.append(key, value)
- }
- }
- for (var formKey in formData) {
- if (formData.hasOwnProperty(formKey)) {
- var formValue = formData[formKey]
- if (formValue instanceof Array) {
- for (var j = 0; j < formValue.length; j++) {
- appendFormValue(formKey, formValue[j])
- }
- } else {
- appendFormValue(formKey, formValue)
- }
- }
- }
- }
-
- if (options.qs) {
- self.qs(options.qs)
- }
-
- if (self.uri.path) {
- self.path = self.uri.path
- } else {
- self.path = self.uri.pathname + (self.uri.search || '')
- }
-
- if (self.path.length === 0) {
- self.path = '/'
- }
-
- // Auth must happen last in case signing is dependent on other headers
- if (options.aws) {
- self.aws(options.aws)
- }
-
- if (options.hawk) {
- self.hawk(options.hawk)
- }
-
- if (options.httpSignature) {
- self.httpSignature(options.httpSignature)
- }
-
- if (options.auth) {
- if (Object.prototype.hasOwnProperty.call(options.auth, 'username')) {
- options.auth.user = options.auth.username
- }
- if (Object.prototype.hasOwnProperty.call(options.auth, 'password')) {
- options.auth.pass = options.auth.password
- }
-
- self.auth(
- options.auth.user,
- options.auth.pass,
- options.auth.sendImmediately,
- options.auth.bearer
- )
- }
-
- if (self.gzip && !self.hasHeader('accept-encoding')) {
- self.setHeader('accept-encoding', 'gzip, deflate')
- }
-
- if (self.uri.auth && !self.hasHeader('authorization')) {
- var uriAuthPieces = self.uri.auth.split(':').map(function (item) { return self._qs.unescape(item) })
- self.auth(uriAuthPieces[0], uriAuthPieces.slice(1).join(':'), true)
- }
-
- if (!self.tunnel && self.proxy && self.proxy.auth && !self.hasHeader('proxy-authorization')) {
- var proxyAuthPieces = self.proxy.auth.split(':').map(function (item) { return self._qs.unescape(item) })
- var authHeader = 'Basic ' + toBase64(proxyAuthPieces.join(':'))
- self.setHeader('proxy-authorization', authHeader)
- }
-
- if (self.proxy && !self.tunnel) {
- self.path = (self.uri.protocol + '//' + self.uri.host + self.path)
- }
-
- if (options.json) {
- self.json(options.json)
- }
- if (options.multipart) {
- self.multipart(options.multipart)
- }
-
- if (options.time) {
- self.timing = true
-
- // NOTE: elapsedTime is deprecated in favor of .timings
- self.elapsedTime = self.elapsedTime || 0
- }
-
- function setContentLength () {
- if (isTypedArray(self.body)) {
- self.body = Buffer.from(self.body)
- }
-
- if (!self.hasHeader('content-length')) {
- var length
- if (typeof self.body === 'string') {
- length = Buffer.byteLength(self.body)
- } else if (Array.isArray(self.body)) {
- length = self.body.reduce(function (a, b) { return a + b.length }, 0)
- } else {
- length = self.body.length
- }
-
- if (length) {
- self.setHeader('content-length', length)
- } else {
- self.emit('error', new Error('Argument error, options.body.'))
- }
- }
- }
- if (self.body && !isstream(self.body)) {
- setContentLength()
- }
-
- if (options.oauth) {
- self.oauth(options.oauth)
- } else if (self._oauth.params && self.hasHeader('authorization')) {
- self.oauth(self._oauth.params)
- }
-
- var protocol = self.proxy && !self.tunnel ? self.proxy.protocol : self.uri.protocol
- var defaultModules = {'http:': http, 'https:': https}
- var httpModules = self.httpModules || {}
-
- self.httpModule = httpModules[protocol] || defaultModules[protocol]
-
- if (!self.httpModule) {
- return self.emit('error', new Error('Invalid protocol: ' + protocol))
- }
-
- if (options.ca) {
- self.ca = options.ca
- }
-
- if (!self.agent) {
- if (options.agentOptions) {
- self.agentOptions = options.agentOptions
- }
-
- if (options.agentClass) {
- self.agentClass = options.agentClass
- } else if (options.forever) {
- var v = version()
- // use ForeverAgent in node 0.10- only
- if (v.major === 0 && v.minor <= 10) {
- self.agentClass = protocol === 'http:' ? ForeverAgent : ForeverAgent.SSL
- } else {
- self.agentClass = self.httpModule.Agent
- self.agentOptions = self.agentOptions || {}
- self.agentOptions.keepAlive = true
- }
- } else {
- self.agentClass = self.httpModule.Agent
- }
- }
-
- if (self.pool === false) {
- self.agent = false
- } else {
- self.agent = self.agent || self.getNewAgent()
- }
-
- self.on('pipe', function (src) {
- if (self.ntick && self._started) {
- self.emit('error', new Error('You cannot pipe to this stream after the outbound request has started.'))
- }
- self.src = src
- if (isReadStream(src)) {
- if (!self.hasHeader('content-type')) {
- self.setHeader('content-type', mime.lookup(src.path))
- }
- } else {
- if (src.headers) {
- for (var i in src.headers) {
- if (!self.hasHeader(i)) {
- self.setHeader(i, src.headers[i])
- }
- }
- }
- if (self._json && !self.hasHeader('content-type')) {
- self.setHeader('content-type', 'application/json')
- }
- if (src.method && !self.explicitMethod) {
- self.method = src.method
- }
- }
-
- // self.on('pipe', function () {
- // console.error('You have already piped to this stream. Pipeing twice is likely to break the request.')
- // })
- })
-
- defer(function () {
- if (self._aborted) {
- return
- }
-
- var end = function () {
- if (self._form) {
- if (!self._auth.hasAuth) {
- self._form.pipe(self)
- } else if (self._auth.hasAuth && self._auth.sentAuth) {
- self._form.pipe(self)
- }
- }
- if (self._multipart && self._multipart.chunked) {
- self._multipart.body.pipe(self)
- }
- if (self.body) {
- if (isstream(self.body)) {
- self.body.pipe(self)
- } else {
- setContentLength()
- if (Array.isArray(self.body)) {
- self.body.forEach(function (part) {
- self.write(part)
- })
- } else {
- self.write(self.body)
- }
- self.end()
- }
- } else if (self.requestBodyStream) {
- console.warn('options.requestBodyStream is deprecated, please pass the request object to stream.pipe.')
- self.requestBodyStream.pipe(self)
- } else if (!self.src) {
- if (self._auth.hasAuth && !self._auth.sentAuth) {
- self.end()
- return
- }
- if (self.method !== 'GET' && typeof self.method !== 'undefined') {
- self.setHeader('content-length', 0)
- }
- self.end()
- }
- }
-
- if (self._form && !self.hasHeader('content-length')) {
- // Before ending the request, we had to compute the length of the whole form, asyncly
- self.setHeader(self._form.getHeaders(), true)
- self._form.getLength(function (err, length) {
- if (!err && !isNaN(length)) {
- self.setHeader('content-length', length)
- }
- end()
- })
- } else {
- end()
- }
-
- self.ntick = true
- })
-}
-
-Request.prototype.getNewAgent = function () {
- var self = this
- var Agent = self.agentClass
- var options = {}
- if (self.agentOptions) {
- for (var i in self.agentOptions) {
- options[i] = self.agentOptions[i]
- }
- }
- if (self.ca) {
- options.ca = self.ca
- }
- if (self.ciphers) {
- options.ciphers = self.ciphers
- }
- if (self.secureProtocol) {
- options.secureProtocol = self.secureProtocol
- }
- if (self.secureOptions) {
- options.secureOptions = self.secureOptions
- }
- if (typeof self.rejectUnauthorized !== 'undefined') {
- options.rejectUnauthorized = self.rejectUnauthorized
- }
-
- if (self.cert && self.key) {
- options.key = self.key
- options.cert = self.cert
- }
-
- if (self.pfx) {
- options.pfx = self.pfx
- }
-
- if (self.passphrase) {
- options.passphrase = self.passphrase
- }
-
- var poolKey = ''
-
- // different types of agents are in different pools
- if (Agent !== self.httpModule.Agent) {
- poolKey += Agent.name
- }
-
- // ca option is only relevant if proxy or destination are https
- var proxy = self.proxy
- if (typeof proxy === 'string') {
- proxy = url.parse(proxy)
- }
- var isHttps = (proxy && proxy.protocol === 'https:') || this.uri.protocol === 'https:'
-
- if (isHttps) {
- if (options.ca) {
- if (poolKey) {
- poolKey += ':'
- }
- poolKey += options.ca
- }
-
- if (typeof options.rejectUnauthorized !== 'undefined') {
- if (poolKey) {
- poolKey += ':'
- }
- poolKey += options.rejectUnauthorized
- }
-
- if (options.cert) {
- if (poolKey) {
- poolKey += ':'
- }
- poolKey += options.cert.toString('ascii') + options.key.toString('ascii')
- }
-
- if (options.pfx) {
- if (poolKey) {
- poolKey += ':'
- }
- poolKey += options.pfx.toString('ascii')
- }
-
- if (options.ciphers) {
- if (poolKey) {
- poolKey += ':'
- }
- poolKey += options.ciphers
- }
-
- if (options.secureProtocol) {
- if (poolKey) {
- poolKey += ':'
- }
- poolKey += options.secureProtocol
- }
-
- if (options.secureOptions) {
- if (poolKey) {
- poolKey += ':'
- }
- poolKey += options.secureOptions
- }
- }
-
- if (self.pool === globalPool && !poolKey && Object.keys(options).length === 0 && self.httpModule.globalAgent) {
- // not doing anything special. Use the globalAgent
- return self.httpModule.globalAgent
- }
-
- // we're using a stored agent. Make sure it's protocol-specific
- poolKey = self.uri.protocol + poolKey
-
- // generate a new agent for this setting if none yet exists
- if (!self.pool[poolKey]) {
- self.pool[poolKey] = new Agent(options)
- // properly set maxSockets on new agents
- if (self.pool.maxSockets) {
- self.pool[poolKey].maxSockets = self.pool.maxSockets
- }
- }
-
- return self.pool[poolKey]
-}
-
-Request.prototype.start = function () {
- // start() is called once we are ready to send the outgoing HTTP request.
- // this is usually called on the first write(), end() or on nextTick()
- var self = this
-
- if (self.timing) {
- // All timings will be relative to this request's startTime. In order to do this,
- // we need to capture the wall-clock start time (via Date), immediately followed
- // by the high-resolution timer (via now()). While these two won't be set
- // at the _exact_ same time, they should be close enough to be able to calculate
- // high-resolution, monotonically non-decreasing timestamps relative to startTime.
- var startTime = new Date().getTime()
- var startTimeNow = now()
- }
-
- if (self._aborted) {
- return
- }
-
- self._started = true
- self.method = self.method || 'GET'
- self.href = self.uri.href
-
- if (self.src && self.src.stat && self.src.stat.size && !self.hasHeader('content-length')) {
- self.setHeader('content-length', self.src.stat.size)
- }
- if (self._aws) {
- self.aws(self._aws, true)
- }
-
- // We have a method named auth, which is completely different from the http.request
- // auth option. If we don't remove it, we're gonna have a bad time.
- var reqOptions = copy(self)
- delete reqOptions.auth
-
- debug('make request', self.uri.href)
-
- // node v6.8.0 now supports a `timeout` value in `http.request()`, but we
- // should delete it for now since we handle timeouts manually for better
- // consistency with node versions before v6.8.0
- delete reqOptions.timeout
-
- try {
- self.req = self.httpModule.request(reqOptions)
- } catch (err) {
- self.emit('error', err)
- return
- }
-
- if (self.timing) {
- self.startTime = startTime
- self.startTimeNow = startTimeNow
-
- // Timing values will all be relative to startTime (by comparing to startTimeNow
- // so we have an accurate clock)
- self.timings = {}
- }
-
- var timeout
- if (self.timeout && !self.timeoutTimer) {
- if (self.timeout < 0) {
- timeout = 0
- } else if (typeof self.timeout === 'number' && isFinite(self.timeout)) {
- timeout = self.timeout
- }
- }
-
- self.req.on('response', self.onRequestResponse.bind(self))
- self.req.on('error', self.onRequestError.bind(self))
- self.req.on('drain', function () {
- self.emit('drain')
- })
-
- self.req.on('socket', function (socket) {
- // `._connecting` was the old property which was made public in node v6.1.0
- var isConnecting = socket._connecting || socket.connecting
- if (self.timing) {
- self.timings.socket = now() - self.startTimeNow
-
- if (isConnecting) {
- var onLookupTiming = function () {
- self.timings.lookup = now() - self.startTimeNow
- }
-
- var onConnectTiming = function () {
- self.timings.connect = now() - self.startTimeNow
- }
-
- socket.once('lookup', onLookupTiming)
- socket.once('connect', onConnectTiming)
-
- // clean up timing event listeners if needed on error
- self.req.once('error', function () {
- socket.removeListener('lookup', onLookupTiming)
- socket.removeListener('connect', onConnectTiming)
- })
- }
- }
-
- var setReqTimeout = function () {
- // This timeout sets the amount of time to wait *between* bytes sent
- // from the server once connected.
- //
- // In particular, it's useful for erroring if the server fails to send
- // data halfway through streaming a response.
- self.req.setTimeout(timeout, function () {
- if (self.req) {
- self.abort()
- var e = new Error('ESOCKETTIMEDOUT')
- e.code = 'ESOCKETTIMEDOUT'
- e.connect = false
- self.emit('error', e)
- }
- })
- }
- if (timeout !== undefined) {
- // Only start the connection timer if we're actually connecting a new
- // socket, otherwise if we're already connected (because this is a
- // keep-alive connection) do not bother. This is important since we won't
- // get a 'connect' event for an already connected socket.
- if (isConnecting) {
- var onReqSockConnect = function () {
- socket.removeListener('connect', onReqSockConnect)
- self.clearTimeout()
- setReqTimeout()
- }
-
- socket.on('connect', onReqSockConnect)
-
- self.req.on('error', function (err) { // eslint-disable-line handle-callback-err
- socket.removeListener('connect', onReqSockConnect)
- })
-
- // Set a timeout in memory - this block will throw if the server takes more
- // than `timeout` to write the HTTP status and headers (corresponding to
- // the on('response') event on the client). NB: this measures wall-clock
- // time, not the time between bytes sent by the server.
- self.timeoutTimer = setTimeout(function () {
- socket.removeListener('connect', onReqSockConnect)
- self.abort()
- var e = new Error('ETIMEDOUT')
- e.code = 'ETIMEDOUT'
- e.connect = true
- self.emit('error', e)
- }, timeout)
- } else {
- // We're already connected
- setReqTimeout()
- }
- }
- self.emit('socket', socket)
- })
-
- self.emit('request', self.req)
-}
-
-Request.prototype.onRequestError = function (error) {
- var self = this
- if (self._aborted) {
- return
- }
- if (self.req && self.req._reusedSocket && error.code === 'ECONNRESET' &&
- self.agent.addRequestNoreuse) {
- self.agent = { addRequest: self.agent.addRequestNoreuse.bind(self.agent) }
- self.start()
- self.req.end()
- return
- }
- self.clearTimeout()
- self.emit('error', error)
-}
-
-Request.prototype.onRequestResponse = function (response) {
- var self = this
-
- if (self.timing) {
- self.timings.response = now() - self.startTimeNow
- }
-
- debug('onRequestResponse', self.uri.href, response.statusCode, response.headers)
- response.on('end', function () {
- if (self.timing) {
- self.timings.end = now() - self.startTimeNow
- response.timingStart = self.startTime
-
- // fill in the blanks for any periods that didn't trigger, such as
- // no lookup or connect due to keep alive
- if (!self.timings.socket) {
- self.timings.socket = 0
- }
- if (!self.timings.lookup) {
- self.timings.lookup = self.timings.socket
- }
- if (!self.timings.connect) {
- self.timings.connect = self.timings.lookup
- }
- if (!self.timings.response) {
- self.timings.response = self.timings.connect
- }
-
- debug('elapsed time', self.timings.end)
-
- // elapsedTime includes all redirects
- self.elapsedTime += Math.round(self.timings.end)
-
- // NOTE: elapsedTime is deprecated in favor of .timings
- response.elapsedTime = self.elapsedTime
-
- // timings is just for the final fetch
- response.timings = self.timings
-
- // pre-calculate phase timings as well
- response.timingPhases = {
- wait: self.timings.socket,
- dns: self.timings.lookup - self.timings.socket,
- tcp: self.timings.connect - self.timings.lookup,
- firstByte: self.timings.response - self.timings.connect,
- download: self.timings.end - self.timings.response,
- total: self.timings.end
- }
- }
- debug('response end', self.uri.href, response.statusCode, response.headers)
- })
-
- if (self._aborted) {
- debug('aborted', self.uri.href)
- response.resume()
- return
- }
-
- self.response = response
- response.request = self
- response.toJSON = responseToJSON
-
- // XXX This is different on 0.10, because SSL is strict by default
- if (self.httpModule === https &&
- self.strictSSL && (!response.hasOwnProperty('socket') ||
- !response.socket.authorized)) {
- debug('strict ssl error', self.uri.href)
- var sslErr = response.hasOwnProperty('socket') ? response.socket.authorizationError : self.uri.href + ' does not support SSL'
- self.emit('error', new Error('SSL Error: ' + sslErr))
- return
- }
-
- // Save the original host before any redirect (if it changes, we need to
- // remove any authorization headers). Also remember the case of the header
- // name because lots of broken servers expect Host instead of host and we
- // want the caller to be able to specify this.
- self.originalHost = self.getHeader('host')
- if (!self.originalHostHeaderName) {
- self.originalHostHeaderName = self.hasHeader('host')
- }
- if (self.setHost) {
- self.removeHeader('host')
- }
- self.clearTimeout()
-
- var targetCookieJar = (self._jar && self._jar.setCookie) ? self._jar : globalCookieJar
- var addCookie = function (cookie) {
- // set the cookie if it's domain in the href's domain.
- try {
- targetCookieJar.setCookie(cookie, self.uri.href, {ignoreError: true})
- } catch (e) {
- self.emit('error', e)
- }
- }
-
- response.caseless = caseless(response.headers)
-
- if (response.caseless.has('set-cookie') && (!self._disableCookies)) {
- var headerName = response.caseless.has('set-cookie')
- if (Array.isArray(response.headers[headerName])) {
- response.headers[headerName].forEach(addCookie)
- } else {
- addCookie(response.headers[headerName])
- }
- }
-
- if (self._redirect.onResponse(response)) {
- return // Ignore the rest of the response
- } else {
- // Be a good stream and emit end when the response is finished.
- // Hack to emit end on close because of a core bug that never fires end
- response.on('close', function () {
- if (!self._ended) {
- self.response.emit('end')
- }
- })
-
- response.once('end', function () {
- self._ended = true
- })
-
- var noBody = function (code) {
- return (
- self.method === 'HEAD' ||
- // Informational
- (code >= 100 && code < 200) ||
- // No Content
- code === 204 ||
- // Not Modified
- code === 304
- )
- }
-
- var responseContent
- if (self.gzip && !noBody(response.statusCode)) {
- var contentEncoding = response.headers['content-encoding'] || 'identity'
- contentEncoding = contentEncoding.trim().toLowerCase()
-
- // Be more lenient with decoding compressed responses, since (very rarely)
- // servers send slightly invalid gzip responses that are still accepted
- // by common browsers.
- // Always using Z_SYNC_FLUSH is what cURL does.
- var zlibOptions = {
- flush: zlib.Z_SYNC_FLUSH,
- finishFlush: zlib.Z_SYNC_FLUSH
- }
-
- if (contentEncoding === 'gzip') {
- responseContent = zlib.createGunzip(zlibOptions)
- response.pipe(responseContent)
- } else if (contentEncoding === 'deflate') {
- responseContent = zlib.createInflate(zlibOptions)
- response.pipe(responseContent)
- } else {
- // Since previous versions didn't check for Content-Encoding header,
- // ignore any invalid values to preserve backwards-compatibility
- if (contentEncoding !== 'identity') {
- debug('ignoring unrecognized Content-Encoding ' + contentEncoding)
- }
- responseContent = response
- }
- } else {
- responseContent = response
- }
-
- if (self.encoding) {
- if (self.dests.length !== 0) {
- console.error('Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.')
- } else {
- responseContent.setEncoding(self.encoding)
- }
- }
-
- if (self._paused) {
- responseContent.pause()
- }
-
- self.responseContent = responseContent
-
- self.emit('response', response)
-
- self.dests.forEach(function (dest) {
- self.pipeDest(dest)
- })
-
- responseContent.on('data', function (chunk) {
- if (self.timing && !self.responseStarted) {
- self.responseStartTime = (new Date()).getTime()
-
- // NOTE: responseStartTime is deprecated in favor of .timings
- response.responseStartTime = self.responseStartTime
- }
- self._destdata = true
- self.emit('data', chunk)
- })
- responseContent.once('end', function (chunk) {
- self.emit('end', chunk)
- })
- responseContent.on('error', function (error) {
- self.emit('error', error)
- })
- responseContent.on('close', function () { self.emit('close') })
-
- if (self.callback) {
- self.readResponseBody(response)
- } else { // if no callback
- self.on('end', function () {
- if (self._aborted) {
- debug('aborted', self.uri.href)
- return
- }
- self.emit('complete', response)
- })
- }
- }
- debug('finish init function', self.uri.href)
-}
-
-Request.prototype.readResponseBody = function (response) {
- var self = this
- debug("reading response's body")
- var buffers = []
- var bufferLength = 0
- var strings = []
-
- self.on('data', function (chunk) {
- if (!Buffer.isBuffer(chunk)) {
- strings.push(chunk)
- } else if (chunk.length) {
- bufferLength += chunk.length
- buffers.push(chunk)
- }
- })
- self.on('end', function () {
- debug('end event', self.uri.href)
- if (self._aborted) {
- debug('aborted', self.uri.href)
- // `buffer` is defined in the parent scope and used in a closure it exists for the life of the request.
- // This can lead to leaky behavior if the user retains a reference to the request object.
- buffers = []
- bufferLength = 0
- return
- }
-
- if (bufferLength) {
- debug('has body', self.uri.href, bufferLength)
- response.body = Buffer.concat(buffers, bufferLength)
- if (self.encoding !== null) {
- response.body = response.body.toString(self.encoding)
- }
- // `buffer` is defined in the parent scope and used in a closure it exists for the life of the Request.
- // This can lead to leaky behavior if the user retains a reference to the request object.
- buffers = []
- bufferLength = 0
- } else if (strings.length) {
- // The UTF8 BOM [0xEF,0xBB,0xBF] is converted to [0xFE,0xFF] in the JS UTC16/UCS2 representation.
- // Strip this value out when the encoding is set to 'utf8', as upstream consumers won't expect it and it breaks JSON.parse().
- if (self.encoding === 'utf8' && strings[0].length > 0 && strings[0][0] === '\uFEFF') {
- strings[0] = strings[0].substring(1)
- }
- response.body = strings.join('')
- }
-
- if (self._json) {
- try {
- response.body = JSON.parse(response.body, self._jsonReviver)
- } catch (e) {
- debug('invalid JSON received', self.uri.href)
- }
- }
- debug('emitting complete', self.uri.href)
- if (typeof response.body === 'undefined' && !self._json) {
- response.body = self.encoding === null ? Buffer.alloc(0) : ''
- }
- self.emit('complete', response, response.body)
- })
-}
-
-Request.prototype.abort = function () {
- var self = this
- self._aborted = true
-
- if (self.req) {
- self.req.abort()
- } else if (self.response) {
- self.response.destroy()
- }
-
- self.clearTimeout()
- self.emit('abort')
-}
-
-Request.prototype.pipeDest = function (dest) {
- var self = this
- var response = self.response
- // Called after the response is received
- if (dest.headers && !dest.headersSent) {
- if (response.caseless.has('content-type')) {
- var ctname = response.caseless.has('content-type')
- if (dest.setHeader) {
- dest.setHeader(ctname, response.headers[ctname])
- } else {
- dest.headers[ctname] = response.headers[ctname]
- }
- }
-
- if (response.caseless.has('content-length')) {
- var clname = response.caseless.has('content-length')
- if (dest.setHeader) {
- dest.setHeader(clname, response.headers[clname])
- } else {
- dest.headers[clname] = response.headers[clname]
- }
- }
- }
- if (dest.setHeader && !dest.headersSent) {
- for (var i in response.headers) {
- // If the response content is being decoded, the Content-Encoding header
- // of the response doesn't represent the piped content, so don't pass it.
- if (!self.gzip || i !== 'content-encoding') {
- dest.setHeader(i, response.headers[i])
- }
- }
- dest.statusCode = response.statusCode
- }
- if (self.pipefilter) {
- self.pipefilter(response, dest)
- }
-}
-
-Request.prototype.qs = function (q, clobber) {
- var self = this
- var base
- if (!clobber && self.uri.query) {
- base = self._qs.parse(self.uri.query)
- } else {
- base = {}
- }
-
- for (var i in q) {
- base[i] = q[i]
- }
-
- var qs = self._qs.stringify(base)
-
- if (qs === '') {
- return self
- }
-
- self.uri = url.parse(self.uri.href.split('?')[0] + '?' + qs)
- self.url = self.uri
- self.path = self.uri.path
-
- if (self.uri.host === 'unix') {
- self.enableUnixSocket()
- }
-
- return self
-}
-Request.prototype.form = function (form) {
- var self = this
- if (form) {
- if (!/^application\/x-www-form-urlencoded\b/.test(self.getHeader('content-type'))) {
- self.setHeader('content-type', 'application/x-www-form-urlencoded')
- }
- self.body = (typeof form === 'string')
- ? self._qs.rfc3986(form.toString('utf8'))
- : self._qs.stringify(form).toString('utf8')
- return self
- }
- // create form-data object
- self._form = new FormData()
- self._form.on('error', function (err) {
- err.message = 'form-data: ' + err.message
- self.emit('error', err)
- self.abort()
- })
- return self._form
-}
-Request.prototype.multipart = function (multipart) {
- var self = this
-
- self._multipart.onRequest(multipart)
-
- if (!self._multipart.chunked) {
- self.body = self._multipart.body
- }
-
- return self
-}
-Request.prototype.json = function (val) {
- var self = this
-
- if (!self.hasHeader('accept')) {
- self.setHeader('accept', 'application/json')
- }
-
- if (typeof self.jsonReplacer === 'function') {
- self._jsonReplacer = self.jsonReplacer
- }
-
- self._json = true
- if (typeof val === 'boolean') {
- if (self.body !== undefined) {
- if (!/^application\/x-www-form-urlencoded\b/.test(self.getHeader('content-type'))) {
- self.body = safeStringify(self.body, self._jsonReplacer)
- } else {
- self.body = self._qs.rfc3986(self.body)
- }
- if (!self.hasHeader('content-type')) {
- self.setHeader('content-type', 'application/json')
- }
- }
- } else {
- self.body = safeStringify(val, self._jsonReplacer)
- if (!self.hasHeader('content-type')) {
- self.setHeader('content-type', 'application/json')
- }
- }
-
- if (typeof self.jsonReviver === 'function') {
- self._jsonReviver = self.jsonReviver
- }
-
- return self
-}
-Request.prototype.getHeader = function (name, headers) {
- var self = this
- var result, re, match
- if (!headers) {
- headers = self.headers
- }
- Object.keys(headers).forEach(function (key) {
- if (key.length !== name.length) {
- return
- }
- re = new RegExp(name, 'i')
- match = key.match(re)
- if (match) {
- result = headers[key]
- }
- })
- return result
-}
-Request.prototype.enableUnixSocket = function () {
- // Get the socket & request paths from the URL
- var unixParts = this.uri.path.split(':')
- var host = unixParts[0]
- var path = unixParts[1]
- // Apply unix properties to request
- this.socketPath = host
- this.uri.pathname = path
- this.uri.path = path
- this.uri.host = host
- this.uri.hostname = host
- this.uri.isUnix = true
-}
-
-Request.prototype.auth = function (user, pass, sendImmediately, bearer) {
- var self = this
-
- self._auth.onRequest(user, pass, sendImmediately, bearer)
-
- return self
-}
-Request.prototype.aws = function (opts, now) {
- var self = this
-
- if (!now) {
- self._aws = opts
- return self
- }
-
- if (opts.sign_version === 4 || opts.sign_version === '4') {
- // use aws4
- var options = {
- host: self.uri.host,
- path: self.uri.path,
- method: self.method,
- headers: self.headers,
- body: self.body
- }
- if (opts.service) {
- options.service = opts.service
- }
- var signRes = aws4.sign(options, {
- accessKeyId: opts.key,
- secretAccessKey: opts.secret,
- sessionToken: opts.session
- })
- self.setHeader('authorization', signRes.headers.Authorization)
- self.setHeader('x-amz-date', signRes.headers['X-Amz-Date'])
- if (signRes.headers['X-Amz-Security-Token']) {
- self.setHeader('x-amz-security-token', signRes.headers['X-Amz-Security-Token'])
- }
- } else {
- // default: use aws-sign2
- var date = new Date()
- self.setHeader('date', date.toUTCString())
- var auth = {
- key: opts.key,
- secret: opts.secret,
- verb: self.method.toUpperCase(),
- date: date,
- contentType: self.getHeader('content-type') || '',
- md5: self.getHeader('content-md5') || '',
- amazonHeaders: aws2.canonicalizeHeaders(self.headers)
- }
- var path = self.uri.path
- if (opts.bucket && path) {
- auth.resource = '/' + opts.bucket + path
- } else if (opts.bucket && !path) {
- auth.resource = '/' + opts.bucket
- } else if (!opts.bucket && path) {
- auth.resource = path
- } else if (!opts.bucket && !path) {
- auth.resource = '/'
- }
- auth.resource = aws2.canonicalizeResource(auth.resource)
- self.setHeader('authorization', aws2.authorization(auth))
- }
-
- return self
-}
-Request.prototype.httpSignature = function (opts) {
- var self = this
- httpSignature.signRequest({
- getHeader: function (header) {
- return self.getHeader(header, self.headers)
- },
- setHeader: function (header, value) {
- self.setHeader(header, value)
- },
- method: self.method,
- path: self.path
- }, opts)
- debug('httpSignature authorization', self.getHeader('authorization'))
-
- return self
-}
-Request.prototype.hawk = function (opts) {
- var self = this
- self.setHeader('Authorization', hawk.header(self.uri, self.method, opts))
-}
-Request.prototype.oauth = function (_oauth) {
- var self = this
-
- self._oauth.onRequest(_oauth)
-
- return self
-}
-
-Request.prototype.jar = function (jar) {
- var self = this
- var cookies
-
- if (self._redirect.redirectsFollowed === 0) {
- self.originalCookieHeader = self.getHeader('cookie')
- }
-
- if (!jar) {
- // disable cookies
- cookies = false
- self._disableCookies = true
- } else {
- var targetCookieJar = jar.getCookieString ? jar : globalCookieJar
- var urihref = self.uri.href
- // fetch cookie in the Specified host
- if (targetCookieJar) {
- cookies = targetCookieJar.getCookieString(urihref)
- }
- }
-
- // if need cookie and cookie is not empty
- if (cookies && cookies.length) {
- if (self.originalCookieHeader) {
- // Don't overwrite existing Cookie header
- self.setHeader('cookie', self.originalCookieHeader + '; ' + cookies)
- } else {
- self.setHeader('cookie', cookies)
- }
- }
- self._jar = jar
- return self
-}
-
-// Stream API
-Request.prototype.pipe = function (dest, opts) {
- var self = this
-
- if (self.response) {
- if (self._destdata) {
- self.emit('error', new Error('You cannot pipe after data has been emitted from the response.'))
- } else if (self._ended) {
- self.emit('error', new Error('You cannot pipe after the response has been ended.'))
- } else {
- stream.Stream.prototype.pipe.call(self, dest, opts)
- self.pipeDest(dest)
- return dest
- }
- } else {
- self.dests.push(dest)
- stream.Stream.prototype.pipe.call(self, dest, opts)
- return dest
- }
-}
-Request.prototype.write = function () {
- var self = this
- if (self._aborted) { return }
-
- if (!self._started) {
- self.start()
- }
- if (self.req) {
- return self.req.write.apply(self.req, arguments)
- }
-}
-Request.prototype.end = function (chunk) {
- var self = this
- if (self._aborted) { return }
-
- if (chunk) {
- self.write(chunk)
- }
- if (!self._started) {
- self.start()
- }
- if (self.req) {
- self.req.end()
- }
-}
-Request.prototype.pause = function () {
- var self = this
- if (!self.responseContent) {
- self._paused = true
- } else {
- self.responseContent.pause.apply(self.responseContent, arguments)
- }
-}
-Request.prototype.resume = function () {
- var self = this
- if (!self.responseContent) {
- self._paused = false
- } else {
- self.responseContent.resume.apply(self.responseContent, arguments)
- }
-}
-Request.prototype.destroy = function () {
- var self = this
- this.clearTimeout()
- if (!self._ended) {
- self.end()
- } else if (self.response) {
- self.response.destroy()
- }
-}
-
-Request.prototype.clearTimeout = function () {
- if (this.timeoutTimer) {
- clearTimeout(this.timeoutTimer)
- this.timeoutTimer = null
- }
-}
-
-Request.defaultProxyHeaderWhiteList =
- Tunnel.defaultProxyHeaderWhiteList.slice()
-
-Request.defaultProxyHeaderExclusiveList =
- Tunnel.defaultProxyHeaderExclusiveList.slice()
-
-// Exports
-
-Request.prototype.toJSON = requestToJSON
-module.exports = Request
diff --git a/node_modules/require-directory/.jshintrc b/node_modules/require-directory/.jshintrc
deleted file mode 100644
index e14e4dc..0000000
--- a/node_modules/require-directory/.jshintrc
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "maxerr" : 50,
- "bitwise" : true,
- "camelcase" : true,
- "curly" : true,
- "eqeqeq" : true,
- "forin" : true,
- "immed" : true,
- "indent" : 2,
- "latedef" : true,
- "newcap" : true,
- "noarg" : true,
- "noempty" : true,
- "nonew" : true,
- "plusplus" : true,
- "quotmark" : true,
- "undef" : true,
- "unused" : true,
- "strict" : true,
- "trailing" : true,
- "maxparams" : false,
- "maxdepth" : false,
- "maxstatements" : false,
- "maxcomplexity" : false,
- "maxlen" : false,
- "asi" : false,
- "boss" : false,
- "debug" : false,
- "eqnull" : true,
- "es5" : false,
- "esnext" : false,
- "moz" : false,
- "evil" : false,
- "expr" : true,
- "funcscope" : true,
- "globalstrict" : true,
- "iterator" : true,
- "lastsemic" : false,
- "laxbreak" : false,
- "laxcomma" : false,
- "loopfunc" : false,
- "multistr" : false,
- "proto" : false,
- "scripturl" : false,
- "smarttabs" : false,
- "shadow" : false,
- "sub" : false,
- "supernew" : false,
- "validthis" : false,
- "browser" : true,
- "couch" : false,
- "devel" : true,
- "dojo" : false,
- "jquery" : false,
- "mootools" : false,
- "node" : true,
- "nonstandard" : false,
- "prototypejs" : false,
- "rhino" : false,
- "worker" : false,
- "wsh" : false,
- "yui" : false,
- "nomen" : true,
- "onevar" : true,
- "passfail" : false,
- "white" : true
-}
diff --git a/node_modules/require-directory/.npmignore b/node_modules/require-directory/.npmignore
deleted file mode 100644
index 47cf365..0000000
--- a/node_modules/require-directory/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-test/**
diff --git a/node_modules/require-directory/.travis.yml b/node_modules/require-directory/.travis.yml
deleted file mode 100644
index 20fd86b..0000000
--- a/node_modules/require-directory/.travis.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-language: node_js
-node_js:
- - 0.10
diff --git a/node_modules/require-directory/LICENSE b/node_modules/require-directory/LICENSE
deleted file mode 100644
index a70f253..0000000
--- a/node_modules/require-directory/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2011 Troy Goode <troygoode@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/require-directory/README.markdown b/node_modules/require-directory/README.markdown
deleted file mode 100644
index 926a063..0000000
--- a/node_modules/require-directory/README.markdown
+++ /dev/null
@@ -1,184 +0,0 @@
-# require-directory
-
-Recursively iterates over specified directory, `require()`'ing each file, and returning a nested hash structure containing those modules.
-
-**[Follow me (@troygoode) on Twitter!](https://twitter.com/intent/user?screen_name=troygoode)**
-
-[![NPM](https://nodei.co/npm/require-directory.png?downloads=true&stars=true)](https://nodei.co/npm/require-directory/)
-
-[![build status](https://secure.travis-ci.org/troygoode/node-require-directory.png)](http://travis-ci.org/troygoode/node-require-directory)
-
-## How To Use
-
-### Installation (via [npm](https://npmjs.org/package/require-directory))
-
-```bash
-$ npm install require-directory
-```
-
-### Usage
-
-A common pattern in node.js is to include an index file which creates a hash of the files in its current directory. Given a directory structure like so:
-
-* app.js
-* routes/
- * index.js
- * home.js
- * auth/
- * login.js
- * logout.js
- * register.js
-
-`routes/index.js` uses `require-directory` to build the hash (rather than doing so manually) like so:
-
-```javascript
-var requireDirectory = require('require-directory');
-module.exports = requireDirectory(module);
-```
-
-`app.js` references `routes/index.js` like any other module, but it now has a hash/tree of the exports from the `./routes/` directory:
-
-```javascript
-var routes = require('./routes');
-
-// snip
-
-app.get('/', routes.home);
-app.get('/register', routes.auth.register);
-app.get('/login', routes.auth.login);
-app.get('/logout', routes.auth.logout);
-```
-
-The `routes` variable above is the equivalent of this:
-
-```javascript
-var routes = {
- home: require('routes/home.js'),
- auth: {
- login: require('routes/auth/login.js'),
- logout: require('routes/auth/logout.js'),
- register: require('routes/auth/register.js')
- }
-};
-```
-
-*Note that `routes.index` will be `undefined` as you would hope.*
-
-### Specifying Another Directory
-
-You can specify which directory you want to build a tree of (if it isn't the current directory for whatever reason) by passing it as the second parameter. Not specifying the path (`requireDirectory(module)`) is the equivelant of `requireDirectory(module, __dirname)`:
-
-```javascript
-var requireDirectory = require('require-directory');
-module.exports = requireDirectory(module, './some/subdirectory');
-```
-
-For example, in the [example in the Usage section](#usage) we could have avoided creating `routes/index.js` and instead changed the first lines of `app.js` to:
-
-```javascript
-var requireDirectory = require('require-directory');
-var routes = requireDirectory(module, './routes');
-```
-
-## Options
-
-You can pass an options hash to `require-directory` as the 2nd parameter (or 3rd if you're passing the path to another directory as the 2nd parameter already). Here are the available options:
-
-### Whitelisting
-
-Whitelisting (either via RegExp or function) allows you to specify that only certain files be loaded.
-
-```javascript
-var requireDirectory = require('require-directory'),
- whitelist = /onlyinclude.js$/,
- hash = requireDirectory(module, {include: whitelist});
-```
-
-```javascript
-var requireDirectory = require('require-directory'),
- check = function(path){
- if(/onlyinclude.js$/.test(path)){
- return true; // don't include
- }else{
- return false; // go ahead and include
- }
- },
- hash = requireDirectory(module, {include: check});
-```
-
-### Blacklisting
-
-Blacklisting (either via RegExp or function) allows you to specify that all but certain files should be loaded.
-
-```javascript
-var requireDirectory = require('require-directory'),
- blacklist = /dontinclude\.js$/,
- hash = requireDirectory(module, {exclude: blacklist});
-```
-
-```javascript
-var requireDirectory = require('require-directory'),
- check = function(path){
- if(/dontinclude\.js$/.test(path)){
- return false; // don't include
- }else{
- return true; // go ahead and include
- }
- },
- hash = requireDirectory(module, {exclude: check});
-```
-
-### Visiting Objects As They're Loaded
-
-`require-directory` takes a function as the `visit` option that will be called for each module that is added to module.exports.
-
-```javascript
-var requireDirectory = require('require-directory'),
- visitor = function(obj) {
- console.log(obj); // will be called for every module that is loaded
- },
- hash = requireDirectory(module, {visit: visitor});
-```
-
-The visitor can also transform the objects by returning a value:
-
-```javascript
-var requireDirectory = require('require-directory'),
- visitor = function(obj) {
- return obj(new Date());
- },
- hash = requireDirectory(module, {visit: visitor});
-```
-
-### Renaming Keys
-
-```javascript
-var requireDirectory = require('require-directory'),
- renamer = function(name) {
- return name.toUpperCase();
- },
- hash = requireDirectory(module, {rename: renamer});
-```
-
-### No Recursion
-
-```javascript
-var requireDirectory = require('require-directory'),
- hash = requireDirectory(module, {recurse: false});
-```
-
-## Run Unit Tests
-
-```bash
-$ npm run lint
-$ npm test
-```
-
-## License
-
-[MIT License](http://www.opensource.org/licenses/mit-license.php)
-
-## Author
-
-[Troy Goode](https://github.com/TroyGoode) ([troygoode@gmail.com](mailto:troygoode@gmail.com))
-
diff --git a/node_modules/require-directory/index.js b/node_modules/require-directory/index.js
deleted file mode 100644
index cd37da7..0000000
--- a/node_modules/require-directory/index.js
+++ /dev/null
@@ -1,86 +0,0 @@
-'use strict';
-
-var fs = require('fs'),
- join = require('path').join,
- resolve = require('path').resolve,
- dirname = require('path').dirname,
- defaultOptions = {
- extensions: ['js', 'json', 'coffee'],
- recurse: true,
- rename: function (name) {
- return name;
- },
- visit: function (obj) {
- return obj;
- }
- };
-
-function checkFileInclusion(path, filename, options) {
- return (
- // verify file has valid extension
- (new RegExp('\\.(' + options.extensions.join('|') + ')$', 'i').test(filename)) &&
-
- // if options.include is a RegExp, evaluate it and make sure the path passes
- !(options.include && options.include instanceof RegExp && !options.include.test(path)) &&
-
- // if options.include is a function, evaluate it and make sure the path passes
- !(options.include && typeof options.include === 'function' && !options.include(path, filename)) &&
-
- // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
- !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path)) &&
-
- // if options.exclude is a function, evaluate it and make sure the path doesn't pass
- !(options.exclude && typeof options.exclude === 'function' && options.exclude(path, filename))
- );
-}
-
-function requireDirectory(m, path, options) {
- var retval = {};
-
- // path is optional
- if (path && !options && typeof path !== 'string') {
- options = path;
- path = null;
- }
-
- // default options
- options = options || {};
- for (var prop in defaultOptions) {
- if (typeof options[prop] === 'undefined') {
- options[prop] = defaultOptions[prop];
- }
- }
-
- // if no path was passed in, assume the equivelant of __dirname from caller
- // otherwise, resolve path relative to the equivalent of __dirname
- path = !path ? dirname(m.filename) : resolve(dirname(m.filename), path);
-
- // get the path of each file in specified directory, append to current tree node, recurse
- fs.readdirSync(path).forEach(function (filename) {
- var joined = join(path, filename),
- files,
- key,
- obj;
-
- if (fs.statSync(joined).isDirectory() && options.recurse) {
- // this node is a directory; recurse
- files = requireDirectory(m, joined, options);
- // exclude empty directories
- if (Object.keys(files).length) {
- retval[options.rename(filename, joined, filename)] = files;
- }
- } else {
- if (joined !== m.filename && checkFileInclusion(joined, filename, options)) {
- // hash node key shouldn't include file extension
- key = filename.substring(0, filename.lastIndexOf('.'));
- obj = m.require(joined);
- retval[options.rename(key, joined, filename)] = options.visit(obj, joined, filename) || obj;
- }
- }
- });
-
- return retval;
-}
-
-module.exports = requireDirectory;
-module.exports.defaults = defaultOptions;
diff --git a/node_modules/require-directory/package.json b/node_modules/require-directory/package.json
deleted file mode 100644
index 826f918..0000000
--- a/node_modules/require-directory/package.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "_from": "require-directory@^2.1.1",
- "_id": "require-directory@2.1.1",
- "_inBundle": false,
- "_integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
- "_location": "/require-directory",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "require-directory@^2.1.1",
- "name": "require-directory",
- "escapedName": "require-directory",
- "rawSpec": "^2.1.1",
- "saveSpec": null,
- "fetchSpec": "^2.1.1"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "_shasum": "8c64ad5fd30dab1c976e2344ffe7f792a6a6df42",
- "_spec": "require-directory@^2.1.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/yargs",
- "author": {
- "name": "Troy Goode",
- "email": "troygoode@gmail.com",
- "url": "http://github.com/troygoode/"
- },
- "bugs": {
- "url": "http://github.com/troygoode/node-require-directory/issues/"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Troy Goode",
- "email": "troygoode@gmail.com",
- "url": "http://github.com/troygoode/"
- }
- ],
- "deprecated": false,
- "description": "Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.",
- "devDependencies": {
- "jshint": "^2.6.0",
- "mocha": "^2.1.0"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "homepage": "https://github.com/troygoode/node-require-directory/",
- "keywords": [
- "require",
- "directory",
- "library",
- "recursive"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "require-directory",
- "repository": {
- "type": "git",
- "url": "git://github.com/troygoode/node-require-directory.git"
- },
- "scripts": {
- "lint": "jshint index.js test/test.js",
- "test": "mocha"
- },
- "version": "2.1.1"
-}
diff --git a/node_modules/require-main-filename/CHANGELOG.md b/node_modules/require-main-filename/CHANGELOG.md
deleted file mode 100644
index 717d59e..0000000
--- a/node_modules/require-main-filename/CHANGELOG.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="2.0.0"></a>
-# [2.0.0](https://github.com/yargs/require-main-filename/compare/v1.0.2...v2.0.0) (2019-01-28)
-
-
-### Chores
-
-* drop support for Node 0.10 ([#11](https://github.com/yargs/require-main-filename/issues/11)) ([87f4e13](https://github.com/yargs/require-main-filename/commit/87f4e13))
-
-
-### BREAKING CHANGES
-
-* drop support for Node 0.10/0.12
-
-
-
-<a name="1.0.2"></a>
-## [1.0.2](https://github.com/yargs/require-main-filename/compare/v1.0.1...v1.0.2) (2017-06-16)
-
-
-### Bug Fixes
-
-* add files to package.json ([#4](https://github.com/yargs/require-main-filename/issues/4)) ([fa29988](https://github.com/yargs/require-main-filename/commit/fa29988))
diff --git a/node_modules/require-main-filename/LICENSE.txt b/node_modules/require-main-filename/LICENSE.txt
deleted file mode 100644
index 836440b..0000000
--- a/node_modules/require-main-filename/LICENSE.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2016, Contributors
-
-Permission to use, copy, modify, and/or distribute this software
-for any purpose with or without fee is hereby granted, provided
-that the above copyright notice and this permission notice
-appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
-LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
-OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/require-main-filename/README.md b/node_modules/require-main-filename/README.md
deleted file mode 100644
index 820d9f5..0000000
--- a/node_modules/require-main-filename/README.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# require-main-filename
-
-[![Build Status](https://travis-ci.org/yargs/require-main-filename.png)](https://travis-ci.org/yargs/require-main-filename)
-[![Coverage Status](https://coveralls.io/repos/yargs/require-main-filename/badge.svg?branch=master)](https://coveralls.io/r/yargs/require-main-filename?branch=master)
-[![NPM version](https://img.shields.io/npm/v/require-main-filename.svg)](https://www.npmjs.com/package/require-main-filename)
-
-`require.main.filename` is great for figuring out the entry
-point for the current application. This can be combined with a module like
-[pkg-conf](https://www.npmjs.com/package/pkg-conf) to, _as if by magic_, load
-top-level configuration.
-
-Unfortunately, `require.main.filename` sometimes fails when an application is
-executed with an alternative process manager, e.g., [iisnode](https://github.com/tjanczuk/iisnode).
-
-`require-main-filename` is a shim that addresses this problem.
-
-## Usage
-
-```js
-var main = require('require-main-filename')()
-// use main as an alternative to require.main.filename.
-```
-
-## License
-
-ISC
diff --git a/node_modules/require-main-filename/index.js b/node_modules/require-main-filename/index.js
deleted file mode 100644
index dca7f0c..0000000
--- a/node_modules/require-main-filename/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-module.exports = function (_require) {
- _require = _require || require
- var main = _require.main
- if (main && isIISNode(main)) return handleIISNode(main)
- else return main ? main.filename : process.cwd()
-}
-
-function isIISNode (main) {
- return /\\iisnode\\/.test(main.filename)
-}
-
-function handleIISNode (main) {
- if (!main.children.length) {
- return main.filename
- } else {
- return main.children[0].filename
- }
-}
diff --git a/node_modules/require-main-filename/package.json b/node_modules/require-main-filename/package.json
deleted file mode 100644
index accd5b5..0000000
--- a/node_modules/require-main-filename/package.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "_from": "require-main-filename@^2.0.0",
- "_id": "require-main-filename@2.0.0",
- "_inBundle": false,
- "_integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
- "_location": "/require-main-filename",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "require-main-filename@^2.0.0",
- "name": "require-main-filename",
- "escapedName": "require-main-filename",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
- "_shasum": "d0b329ecc7cc0f61649f62215be69af54aa8989b",
- "_spec": "require-main-filename@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "Ben Coe",
- "email": "ben@npmjs.com"
- },
- "bugs": {
- "url": "https://github.com/yargs/require-main-filename/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "shim for require.main.filename() that works in as many environments as possible",
- "devDependencies": {
- "chai": "^4.0.0",
- "standard": "^10.0.3",
- "standard-version": "^4.0.0",
- "tap": "^11.0.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/yargs/require-main-filename#readme",
- "keywords": [
- "require",
- "shim",
- "iisnode"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "require-main-filename",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/yargs/require-main-filename.git"
- },
- "scripts": {
- "pretest": "standard",
- "release": "standard-version",
- "test": "tap --coverage test.js"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/resolve/.editorconfig b/node_modules/resolve/.editorconfig
deleted file mode 100644
index bc228f8..0000000
--- a/node_modules/resolve/.editorconfig
+++ /dev/null
@@ -1,20 +0,0 @@
-root = true
-
-[*]
-indent_style = tab
-indent_size = 4
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-max_line_length = 150
-
-[CHANGELOG.md]
-indent_style = space
-indent_size = 2
-
-[*.json]
-max_line_length = off
-
-[Makefile]
-max_line_length = off
diff --git a/node_modules/resolve/.eslintignore b/node_modules/resolve/.eslintignore
deleted file mode 100644
index 3c3629e..0000000
--- a/node_modules/resolve/.eslintignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules
diff --git a/node_modules/resolve/.eslintrc b/node_modules/resolve/.eslintrc
deleted file mode 100644
index a22863c..0000000
--- a/node_modules/resolve/.eslintrc
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "extends": "@ljharb",
- "root": true,
- "rules": {
- "array-bracket-newline": 0,
- "array-element-newline": 0,
- "indent": [2, 4],
- "strict": 0,
- "complexity": 0,
- "consistent-return": 0,
- "curly": 0,
- "dot-notation": [2, { "allowKeywords": true }],
- "func-name-matching": 0,
- "func-style": 0,
- "global-require": 0,
- "id-length": [2, { "min": 1, "max": 30 }],
- "max-lines-per-function": 0,
- "max-nested-callbacks": 0,
- "max-params": 0,
- "max-statements-per-line": [2, { "max": 2 }],
- "max-statements": 0,
- "no-magic-numbers": 0,
- "no-console": 0,
- "no-shadow": 0,
- "no-unused-vars": [2, { "vars": "all", "args": "none" }],
- "no-use-before-define": 0,
- "object-curly-newline": 0,
- "operator-linebreak": [2, "before"],
- "sort-keys": 0,
- },
- "overrides": [
- {
- "files": "test/resolver/nested_symlinks/mylib/*.js",
- "rules": {
- "no-throw-literal": 0,
- },
- },
- ],
-}
diff --git a/node_modules/resolve/.travis.yml b/node_modules/resolve/.travis.yml
deleted file mode 100644
index 5ed0fa5..0000000
--- a/node_modules/resolve/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-version: ~> 1.0
-language: node_js
-os:
- - linux
-import:
- - ljharb/travis-ci:node/all.yml
- - ljharb/travis-ci:node/pretest.yml
- - ljharb/travis-ci:node/posttest.yml
diff --git a/node_modules/resolve/LICENSE b/node_modules/resolve/LICENSE
deleted file mode 100644
index ff4fce2..0000000
--- a/node_modules/resolve/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2012 James Halliday
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/resolve/appveyor.yml b/node_modules/resolve/appveyor.yml
deleted file mode 100644
index 9458fb8..0000000
--- a/node_modules/resolve/appveyor.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-version: 1.0.{build}
-skip_branch_with_pr: true
-build: off
-
-environment:
- matrix:
- - nodejs_version: "12"
- - nodejs_version: "11"
- - nodejs_version: "10"
- - nodejs_version: "9"
- - nodejs_version: "8"
- - nodejs_version: "7"
- - nodejs_version: "6"
- - nodejs_version: "5"
- - nodejs_version: "4"
- - nodejs_version: "3"
- - nodejs_version: "2"
- - nodejs_version: "1"
- - nodejs_version: "0.12"
- - nodejs_version: "0.10"
- - nodejs_version: "0.8"
- - nodejs_version: "0.6"
-matrix:
- # fast_finish: true
- allow_failures:
- - nodejs_version: "5" # due to windows npm bug, registry-side
- - nodejs_version: "0.8"
- - nodejs_version: "0.6"
-
-platform:
- - x86
- - x64
-
-# Install scripts. (runs after repo cloning)
-install:
- # Fix symlinks in working copy (see https://github.com/appveyor/ci/issues/650#issuecomment-186592582) / https://github.com/charleskorn/batect/commit/d08986802ec43086902958c4ee7e57ff3e71dbef
- - git config core.symlinks true
- - git reset --hard
- # Get the latest stable version of Node.js or io.js
- - ps: Install-Product node $env:nodejs_version $env:platform
- - IF %nodejs_version% EQU 0.6 npm config set strict-ssl false && npm -g install npm@1.3
- - IF %nodejs_version% EQU 0.8 npm config set strict-ssl false && npm -g install npm@1.4.28 && npm install -g npm@4.5
- - set PATH=%APPDATA%\npm;%PATH%
- #- IF %nodejs_version% NEQ 0.6 AND %nodejs_version% NEQ 0.8 npm -g install npm
- # install modules
- - npm install
-
-# Post-install test scripts.
-test_script:
- # Output useful info for debugging.
- - node --version
- - npm --version
- # run tests
- - npm run tests-only
diff --git a/node_modules/resolve/example/async.js b/node_modules/resolve/example/async.js
deleted file mode 100644
index 20e65dc..0000000
--- a/node_modules/resolve/example/async.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var resolve = require('../');
-resolve('tap', { basedir: __dirname }, function (err, res) {
- if (err) console.error(err);
- else console.log(res);
-});
diff --git a/node_modules/resolve/example/sync.js b/node_modules/resolve/example/sync.js
deleted file mode 100644
index 54b2cc1..0000000
--- a/node_modules/resolve/example/sync.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var resolve = require('../');
-var res = resolve.sync('tap', { basedir: __dirname });
-console.log(res);
diff --git a/node_modules/resolve/index.js b/node_modules/resolve/index.js
deleted file mode 100644
index 125d814..0000000
--- a/node_modules/resolve/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var async = require('./lib/async');
-async.core = require('./lib/core');
-async.isCore = require('./lib/is-core');
-async.sync = require('./lib/sync');
-
-module.exports = async;
diff --git a/node_modules/resolve/lib/async.js b/node_modules/resolve/lib/async.js
deleted file mode 100644
index 06aa458..0000000
--- a/node_modules/resolve/lib/async.js
+++ /dev/null
@@ -1,298 +0,0 @@
-var fs = require('fs');
-var path = require('path');
-var caller = require('./caller.js');
-var nodeModulesPaths = require('./node-modules-paths.js');
-var normalizeOptions = require('./normalize-options.js');
-var isCore = require('./is-core');
-
-var realpathFS = fs.realpath && typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath;
-
-var defaultIsFile = function isFile(file, cb) {
- fs.stat(file, function (err, stat) {
- if (!err) {
- return cb(null, stat.isFile() || stat.isFIFO());
- }
- if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
- return cb(err);
- });
-};
-
-var defaultIsDir = function isDirectory(dir, cb) {
- fs.stat(dir, function (err, stat) {
- if (!err) {
- return cb(null, stat.isDirectory());
- }
- if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
- return cb(err);
- });
-};
-
-var defaultRealpath = function realpath(x, cb) {
- realpathFS(x, function (realpathErr, realPath) {
- if (realpathErr && realpathErr.code !== 'ENOENT') cb(realpathErr);
- else cb(null, realpathErr ? x : realPath);
- });
-};
-
-var maybeRealpath = function maybeRealpath(realpath, x, opts, cb) {
- if (opts && opts.preserveSymlinks === false) {
- realpath(x, cb);
- } else {
- cb(null, x);
- }
-};
-
-var getPackageCandidates = function getPackageCandidates(x, start, opts) {
- var dirs = nodeModulesPaths(start, opts, x);
- for (var i = 0; i < dirs.length; i++) {
- dirs[i] = path.join(dirs[i], x);
- }
- return dirs;
-};
-
-module.exports = function resolve(x, options, callback) {
- var cb = callback;
- var opts = options;
- if (typeof options === 'function') {
- cb = opts;
- opts = {};
- }
- if (typeof x !== 'string') {
- var err = new TypeError('Path must be a string.');
- return process.nextTick(function () {
- cb(err);
- });
- }
-
- opts = normalizeOptions(x, opts);
-
- var isFile = opts.isFile || defaultIsFile;
- var isDirectory = opts.isDirectory || defaultIsDir;
- var readFile = opts.readFile || fs.readFile;
- var realpath = opts.realpath || defaultRealpath;
- var packageIterator = opts.packageIterator;
-
- var extensions = opts.extensions || ['.js'];
- var basedir = opts.basedir || path.dirname(caller());
- var parent = opts.filename || basedir;
-
- opts.paths = opts.paths || [];
-
- // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
- var absoluteStart = path.resolve(basedir);
-
- maybeRealpath(
- realpath,
- absoluteStart,
- opts,
- function (err, realStart) {
- if (err) cb(err);
- else init(realStart);
- }
- );
-
- var res;
- function init(basedir) {
- if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) {
- res = path.resolve(basedir, x);
- if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
- if ((/\/$/).test(x) && res === basedir) {
- loadAsDirectory(res, opts.package, onfile);
- } else loadAsFile(res, opts.package, onfile);
- } else if (isCore(x)) {
- return cb(null, x);
- } else loadNodeModules(x, basedir, function (err, n, pkg) {
- if (err) cb(err);
- else if (n) {
- return maybeRealpath(realpath, n, opts, function (err, realN) {
- if (err) {
- cb(err);
- } else {
- cb(null, realN, pkg);
- }
- });
- } else {
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
- moduleError.code = 'MODULE_NOT_FOUND';
- cb(moduleError);
- }
- });
- }
-
- function onfile(err, m, pkg) {
- if (err) cb(err);
- else if (m) cb(null, m, pkg);
- else loadAsDirectory(res, function (err, d, pkg) {
- if (err) cb(err);
- else if (d) {
- maybeRealpath(realpath, d, opts, function (err, realD) {
- if (err) {
- cb(err);
- } else {
- cb(null, realD, pkg);
- }
- });
- } else {
- var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'");
- moduleError.code = 'MODULE_NOT_FOUND';
- cb(moduleError);
- }
- });
- }
-
- function loadAsFile(x, thePackage, callback) {
- var loadAsFilePackage = thePackage;
- var cb = callback;
- if (typeof loadAsFilePackage === 'function') {
- cb = loadAsFilePackage;
- loadAsFilePackage = undefined;
- }
-
- var exts = [''].concat(extensions);
- load(exts, x, loadAsFilePackage);
-
- function load(exts, x, loadPackage) {
- if (exts.length === 0) return cb(null, undefined, loadPackage);
- var file = x + exts[0];
-
- var pkg = loadPackage;
- if (pkg) onpkg(null, pkg);
- else loadpkg(path.dirname(file), onpkg);
-
- function onpkg(err, pkg_, dir) {
- pkg = pkg_;
- if (err) return cb(err);
- if (dir && pkg && opts.pathFilter) {
- var rfile = path.relative(dir, file);
- var rel = rfile.slice(0, rfile.length - exts[0].length);
- var r = opts.pathFilter(pkg, x, rel);
- if (r) return load(
- [''].concat(extensions.slice()),
- path.resolve(dir, r),
- pkg
- );
- }
- isFile(file, onex);
- }
- function onex(err, ex) {
- if (err) return cb(err);
- if (ex) return cb(null, file, pkg);
- load(exts.slice(1), x, pkg);
- }
- }
- }
-
- function loadpkg(dir, cb) {
- if (dir === '' || dir === '/') return cb(null);
- if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) {
- return cb(null);
- }
- if ((/[/\\]node_modules[/\\]*$/).test(dir)) return cb(null);
-
- maybeRealpath(realpath, dir, opts, function (unwrapErr, pkgdir) {
- if (unwrapErr) return loadpkg(path.dirname(dir), cb);
- var pkgfile = path.join(pkgdir, 'package.json');
- isFile(pkgfile, function (err, ex) {
- // on err, ex is false
- if (!ex) return loadpkg(path.dirname(dir), cb);
-
- readFile(pkgfile, function (err, body) {
- if (err) cb(err);
- try { var pkg = JSON.parse(body); } catch (jsonErr) {}
-
- if (pkg && opts.packageFilter) {
- pkg = opts.packageFilter(pkg, pkgfile);
- }
- cb(null, pkg, dir);
- });
- });
- });
- }
-
- function loadAsDirectory(x, loadAsDirectoryPackage, callback) {
- var cb = callback;
- var fpkg = loadAsDirectoryPackage;
- if (typeof fpkg === 'function') {
- cb = fpkg;
- fpkg = opts.package;
- }
-
- maybeRealpath(realpath, x, opts, function (unwrapErr, pkgdir) {
- if (unwrapErr) return cb(unwrapErr);
- var pkgfile = path.join(pkgdir, 'package.json');
- isFile(pkgfile, function (err, ex) {
- if (err) return cb(err);
- if (!ex) return loadAsFile(path.join(x, 'index'), fpkg, cb);
-
- readFile(pkgfile, function (err, body) {
- if (err) return cb(err);
- try {
- var pkg = JSON.parse(body);
- } catch (jsonErr) {}
-
- if (pkg && opts.packageFilter) {
- pkg = opts.packageFilter(pkg, pkgfile);
- }
-
- if (pkg && pkg.main) {
- if (typeof pkg.main !== 'string') {
- var mainError = new TypeError('package “' + pkg.name + '” `main` must be a string');
- mainError.code = 'INVALID_PACKAGE_MAIN';
- return cb(mainError);
- }
- if (pkg.main === '.' || pkg.main === './') {
- pkg.main = 'index';
- }
- loadAsFile(path.resolve(x, pkg.main), pkg, function (err, m, pkg) {
- if (err) return cb(err);
- if (m) return cb(null, m, pkg);
- if (!pkg) return loadAsFile(path.join(x, 'index'), pkg, cb);
-
- var dir = path.resolve(x, pkg.main);
- loadAsDirectory(dir, pkg, function (err, n, pkg) {
- if (err) return cb(err);
- if (n) return cb(null, n, pkg);
- loadAsFile(path.join(x, 'index'), pkg, cb);
- });
- });
- return;
- }
-
- loadAsFile(path.join(x, '/index'), pkg, cb);
- });
- });
- });
- }
-
- function processDirs(cb, dirs) {
- if (dirs.length === 0) return cb(null, undefined);
- var dir = dirs[0];
-
- isDirectory(path.dirname(dir), isdir);
-
- function isdir(err, isdir) {
- if (err) return cb(err);
- if (!isdir) return processDirs(cb, dirs.slice(1));
- loadAsFile(dir, opts.package, onfile);
- }
-
- function onfile(err, m, pkg) {
- if (err) return cb(err);
- if (m) return cb(null, m, pkg);
- loadAsDirectory(dir, opts.package, ondir);
- }
-
- function ondir(err, n, pkg) {
- if (err) return cb(err);
- if (n) return cb(null, n, pkg);
- processDirs(cb, dirs.slice(1));
- }
- }
- function loadNodeModules(x, start, cb) {
- var thunk = function () { return getPackageCandidates(x, start, opts); };
- processDirs(
- cb,
- packageIterator ? packageIterator(x, start, thunk, opts) : thunk()
- );
- }
-};
diff --git a/node_modules/resolve/lib/caller.js b/node_modules/resolve/lib/caller.js
deleted file mode 100644
index b14a280..0000000
--- a/node_modules/resolve/lib/caller.js
+++ /dev/null
@@ -1,8 +0,0 @@
-module.exports = function () {
- // see https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi
- var origPrepareStackTrace = Error.prepareStackTrace;
- Error.prepareStackTrace = function (_, stack) { return stack; };
- var stack = (new Error()).stack;
- Error.prepareStackTrace = origPrepareStackTrace;
- return stack[2].getFileName();
-};
diff --git a/node_modules/resolve/lib/core.js b/node_modules/resolve/lib/core.js
deleted file mode 100644
index 0877650..0000000
--- a/node_modules/resolve/lib/core.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var current = (process.versions && process.versions.node && process.versions.node.split('.')) || [];
-
-function specifierIncluded(specifier) {
- var parts = specifier.split(' ');
- var op = parts.length > 1 ? parts[0] : '=';
- var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
-
- for (var i = 0; i < 3; ++i) {
- var cur = Number(current[i] || 0);
- var ver = Number(versionParts[i] || 0);
- if (cur === ver) {
- continue; // eslint-disable-line no-restricted-syntax, no-continue
- }
- if (op === '<') {
- return cur < ver;
- } else if (op === '>=') {
- return cur >= ver;
- } else {
- return false;
- }
- }
- return op === '>=';
-}
-
-function matchesRange(range) {
- var specifiers = range.split(/ ?&& ?/);
- if (specifiers.length === 0) { return false; }
- for (var i = 0; i < specifiers.length; ++i) {
- if (!specifierIncluded(specifiers[i])) { return false; }
- }
- return true;
-}
-
-function versionIncluded(specifierValue) {
- if (typeof specifierValue === 'boolean') { return specifierValue; }
- if (specifierValue && typeof specifierValue === 'object') {
- for (var i = 0; i < specifierValue.length; ++i) {
- if (matchesRange(specifierValue[i])) { return true; }
- }
- return false;
- }
- return matchesRange(specifierValue);
-}
-
-var data = require('./core.json');
-
-var core = {};
-for (var mod in data) { // eslint-disable-line no-restricted-syntax
- if (Object.prototype.hasOwnProperty.call(data, mod)) {
- core[mod] = versionIncluded(data[mod]);
- }
-}
-module.exports = core;
diff --git a/node_modules/resolve/lib/core.json b/node_modules/resolve/lib/core.json
deleted file mode 100644
index d51b70b..0000000
--- a/node_modules/resolve/lib/core.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "assert": true,
- "async_hooks": ">= 8",
- "buffer_ieee754": "< 0.9.7",
- "buffer": true,
- "child_process": true,
- "cluster": true,
- "console": true,
- "constants": true,
- "crypto": true,
- "_debug_agent": ">= 1 && < 8",
- "_debugger": "< 8",
- "dgram": true,
- "dns": true,
- "domain": true,
- "events": true,
- "freelist": "< 6",
- "fs": true,
- "fs/promises": [">= 10 && < 10.1", ">= 14"],
- "_http_agent": ">= 0.11.1",
- "_http_client": ">= 0.11.1",
- "_http_common": ">= 0.11.1",
- "_http_incoming": ">= 0.11.1",
- "_http_outgoing": ">= 0.11.1",
- "_http_server": ">= 0.11.1",
- "http": true,
- "http2": ">= 8.8",
- "https": true,
- "inspector": ">= 8.0.0",
- "_linklist": "< 8",
- "module": true,
- "net": true,
- "node-inspect/lib/_inspect": ">= 7.6.0 && < 12",
- "node-inspect/lib/internal/inspect_client": ">= 7.6.0 && < 12",
- "node-inspect/lib/internal/inspect_repl": ">= 7.6.0 && < 12",
- "os": true,
- "path": true,
- "perf_hooks": ">= 8.5",
- "process": ">= 1",
- "punycode": true,
- "querystring": true,
- "readline": true,
- "repl": true,
- "smalloc": ">= 0.11.5 && < 3",
- "_stream_duplex": ">= 0.9.4",
- "_stream_transform": ">= 0.9.4",
- "_stream_wrap": ">= 1.4.1",
- "_stream_passthrough": ">= 0.9.4",
- "_stream_readable": ">= 0.9.4",
- "_stream_writable": ">= 0.9.4",
- "stream": true,
- "string_decoder": true,
- "sys": true,
- "timers": true,
- "_tls_common": ">= 0.11.13",
- "_tls_legacy": ">= 0.11.3 && < 10",
- "_tls_wrap": ">= 0.11.3",
- "tls": true,
- "trace_events": ">= 10",
- "tty": true,
- "url": true,
- "util": true,
- "v8/tools/arguments": ">= 10 && < 12",
- "v8/tools/codemap": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
- "v8/tools/consarray": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
- "v8/tools/csvparser": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
- "v8/tools/logreader": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
- "v8/tools/profile_view": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
- "v8/tools/splaytree": [">= 4.4.0 && < 5", ">= 5.2.0 && < 12"],
- "v8": ">= 1",
- "vm": true,
- "wasi": ">= 13.4 && < 13.5",
- "worker_threads": ">= 11.7",
- "zlib": true
-}
diff --git a/node_modules/resolve/lib/is-core.js b/node_modules/resolve/lib/is-core.js
deleted file mode 100644
index 48bc96c..0000000
--- a/node_modules/resolve/lib/is-core.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var core = require('./core');
-
-module.exports = function isCore(x) {
- return Object.prototype.hasOwnProperty.call(core, x);
-};
diff --git a/node_modules/resolve/lib/node-modules-paths.js b/node_modules/resolve/lib/node-modules-paths.js
deleted file mode 100644
index 2b43813..0000000
--- a/node_modules/resolve/lib/node-modules-paths.js
+++ /dev/null
@@ -1,42 +0,0 @@
-var path = require('path');
-var parse = path.parse || require('path-parse');
-
-var getNodeModulesDirs = function getNodeModulesDirs(absoluteStart, modules) {
- var prefix = '/';
- if ((/^([A-Za-z]:)/).test(absoluteStart)) {
- prefix = '';
- } else if ((/^\\\\/).test(absoluteStart)) {
- prefix = '\\\\';
- }
-
- var paths = [absoluteStart];
- var parsed = parse(absoluteStart);
- while (parsed.dir !== paths[paths.length - 1]) {
- paths.push(parsed.dir);
- parsed = parse(parsed.dir);
- }
-
- return paths.reduce(function (dirs, aPath) {
- return dirs.concat(modules.map(function (moduleDir) {
- return path.resolve(prefix, aPath, moduleDir);
- }));
- }, []);
-};
-
-module.exports = function nodeModulesPaths(start, opts, request) {
- var modules = opts && opts.moduleDirectory
- ? [].concat(opts.moduleDirectory)
- : ['node_modules'];
-
- if (opts && typeof opts.paths === 'function') {
- return opts.paths(
- request,
- start,
- function () { return getNodeModulesDirs(start, modules); },
- opts
- );
- }
-
- var dirs = getNodeModulesDirs(start, modules);
- return opts && opts.paths ? dirs.concat(opts.paths) : dirs;
-};
diff --git a/node_modules/resolve/lib/normalize-options.js b/node_modules/resolve/lib/normalize-options.js
deleted file mode 100644
index 4b56904..0000000
--- a/node_modules/resolve/lib/normalize-options.js
+++ /dev/null
@@ -1,10 +0,0 @@
-module.exports = function (x, opts) {
- /**
- * This file is purposefully a passthrough. It's expected that third-party
- * environments will override it at runtime in order to inject special logic
- * into `resolve` (by manipulating the options). One such example is the PnP
- * code path in Yarn.
- */
-
- return opts || {};
-};
diff --git a/node_modules/resolve/lib/sync.js b/node_modules/resolve/lib/sync.js
deleted file mode 100644
index da74e19..0000000
--- a/node_modules/resolve/lib/sync.js
+++ /dev/null
@@ -1,191 +0,0 @@
-var isCore = require('./is-core');
-var fs = require('fs');
-var path = require('path');
-var caller = require('./caller.js');
-var nodeModulesPaths = require('./node-modules-paths.js');
-var normalizeOptions = require('./normalize-options.js');
-
-var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync;
-
-var defaultIsFile = function isFile(file) {
- try {
- var stat = fs.statSync(file);
- } catch (e) {
- if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
- throw e;
- }
- return stat.isFile() || stat.isFIFO();
-};
-
-var defaultIsDir = function isDirectory(dir) {
- try {
- var stat = fs.statSync(dir);
- } catch (e) {
- if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
- throw e;
- }
- return stat.isDirectory();
-};
-
-var defaultRealpathSync = function realpathSync(x) {
- try {
- return realpathFS(x);
- } catch (realpathErr) {
- if (realpathErr.code !== 'ENOENT') {
- throw realpathErr;
- }
- }
- return x;
-};
-
-var maybeRealpathSync = function maybeRealpathSync(realpathSync, x, opts) {
- if (opts && opts.preserveSymlinks === false) {
- return realpathSync(x);
- }
- return x;
-};
-
-var getPackageCandidates = function getPackageCandidates(x, start, opts) {
- var dirs = nodeModulesPaths(start, opts, x);
- for (var i = 0; i < dirs.length; i++) {
- dirs[i] = path.join(dirs[i], x);
- }
- return dirs;
-};
-
-module.exports = function resolveSync(x, options) {
- if (typeof x !== 'string') {
- throw new TypeError('Path must be a string.');
- }
- var opts = normalizeOptions(x, options);
-
- var isFile = opts.isFile || defaultIsFile;
- var readFileSync = opts.readFileSync || fs.readFileSync;
- var isDirectory = opts.isDirectory || defaultIsDir;
- var realpathSync = opts.realpathSync || defaultRealpathSync;
- var packageIterator = opts.packageIterator;
-
- var extensions = opts.extensions || ['.js'];
- var basedir = opts.basedir || path.dirname(caller());
- var parent = opts.filename || basedir;
-
- opts.paths = opts.paths || [];
-
- // ensure that `basedir` is an absolute path at this point, resolving against the process' current working directory
- var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts);
-
- if ((/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/).test(x)) {
- var res = path.resolve(absoluteStart, x);
- if (x === '.' || x === '..' || x.slice(-1) === '/') res += '/';
- var m = loadAsFileSync(res) || loadAsDirectorySync(res);
- if (m) return maybeRealpathSync(realpathSync, m, opts);
- } else if (isCore(x)) {
- return x;
- } else {
- var n = loadNodeModulesSync(x, absoluteStart);
- if (n) return maybeRealpathSync(realpathSync, n, opts);
- }
-
- var err = new Error("Cannot find module '" + x + "' from '" + parent + "'");
- err.code = 'MODULE_NOT_FOUND';
- throw err;
-
- function loadAsFileSync(x) {
- var pkg = loadpkg(path.dirname(x));
-
- if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
- var rfile = path.relative(pkg.dir, x);
- var r = opts.pathFilter(pkg.pkg, x, rfile);
- if (r) {
- x = path.resolve(pkg.dir, r); // eslint-disable-line no-param-reassign
- }
- }
-
- if (isFile(x)) {
- return x;
- }
-
- for (var i = 0; i < extensions.length; i++) {
- var file = x + extensions[i];
- if (isFile(file)) {
- return file;
- }
- }
- }
-
- function loadpkg(dir) {
- if (dir === '' || dir === '/') return;
- if (process.platform === 'win32' && (/^\w:[/\\]*$/).test(dir)) {
- return;
- }
- if ((/[/\\]node_modules[/\\]*$/).test(dir)) return;
-
- var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), 'package.json');
-
- if (!isFile(pkgfile)) {
- return loadpkg(path.dirname(dir));
- }
-
- var body = readFileSync(pkgfile);
-
- try {
- var pkg = JSON.parse(body);
- } catch (jsonErr) {}
-
- if (pkg && opts.packageFilter) {
- // v2 will pass pkgfile
- pkg = opts.packageFilter(pkg, /*pkgfile,*/ dir); // eslint-disable-line spaced-comment
- }
-
- return { pkg: pkg, dir: dir };
- }
-
- function loadAsDirectorySync(x) {
- var pkgfile = path.join(maybeRealpathSync(realpathSync, x, opts), '/package.json');
- if (isFile(pkgfile)) {
- try {
- var body = readFileSync(pkgfile, 'UTF8');
- var pkg = JSON.parse(body);
- } catch (e) {}
-
- if (pkg && opts.packageFilter) {
- // v2 will pass pkgfile
- pkg = opts.packageFilter(pkg, /*pkgfile,*/ x); // eslint-disable-line spaced-comment
- }
-
- if (pkg && pkg.main) {
- if (typeof pkg.main !== 'string') {
- var mainError = new TypeError('package “' + pkg.name + '” `main` must be a string');
- mainError.code = 'INVALID_PACKAGE_MAIN';
- throw mainError;
- }
- if (pkg.main === '.' || pkg.main === './') {
- pkg.main = 'index';
- }
- try {
- var m = loadAsFileSync(path.resolve(x, pkg.main));
- if (m) return m;
- var n = loadAsDirectorySync(path.resolve(x, pkg.main));
- if (n) return n;
- } catch (e) {}
- }
- }
-
- return loadAsFileSync(path.join(x, '/index'));
- }
-
- function loadNodeModulesSync(x, start) {
- var thunk = function () { return getPackageCandidates(x, start, opts); };
- var dirs = packageIterator ? packageIterator(x, start, thunk, opts) : thunk();
-
- for (var i = 0; i < dirs.length; i++) {
- var dir = dirs[i];
- if (isDirectory(path.dirname(dir))) {
- var m = loadAsFileSync(dir);
- if (m) return m;
- var n = loadAsDirectorySync(dir);
- if (n) return n;
- }
- }
- }
-};
diff --git a/node_modules/resolve/package.json b/node_modules/resolve/package.json
deleted file mode 100644
index 825e8c7..0000000
--- a/node_modules/resolve/package.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "_from": "resolve@^1.10.0",
- "_id": "resolve@1.17.0",
- "_inBundle": false,
- "_integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==",
- "_location": "/resolve",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "resolve@^1.10.0",
- "name": "resolve",
- "escapedName": "resolve",
- "rawSpec": "^1.10.0",
- "saveSpec": null,
- "fetchSpec": "^1.10.0"
- },
- "_requiredBy": [
- "/normalize-package-data"
- ],
- "_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz",
- "_shasum": "b25941b54968231cc2d1bb76a79cb7f2c0bf8444",
- "_spec": "resolve@^1.10.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/normalize-package-data",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "bugs": {
- "url": "https://github.com/browserify/resolve/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "path-parse": "^1.0.6"
- },
- "deprecated": false,
- "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
- "devDependencies": {
- "@ljharb/eslint-config": "^16.0.0",
- "array.prototype.map": "^1.0.2",
- "eslint": "^6.8.0",
- "object-keys": "^1.1.1",
- "safe-publish-latest": "^1.1.4",
- "tap": "0.4.13",
- "tape": "^5.0.0-next.5"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- },
- "homepage": "https://github.com/browserify/resolve#readme",
- "keywords": [
- "resolve",
- "require",
- "node",
- "module"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "resolve",
- "repository": {
- "type": "git",
- "url": "git://github.com/browserify/resolve.git"
- },
- "scripts": {
- "lint": "eslint .",
- "posttest": "npm run test:multirepo",
- "prepublish": "safe-publish-latest",
- "pretest": "npm run lint",
- "pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async",
- "test": "npm run --silent tests-only",
- "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test",
- "tests-only": "tape test/*.js"
- },
- "version": "1.17.0"
-}
diff --git a/node_modules/resolve/readme.markdown b/node_modules/resolve/readme.markdown
deleted file mode 100644
index 5e1aea3..0000000
--- a/node_modules/resolve/readme.markdown
+++ /dev/null
@@ -1,242 +0,0 @@
-# resolve
-
-implements the [node `require.resolve()`
-algorithm](https://nodejs.org/api/modules.html#modules_all_together)
-such that you can `require.resolve()` on behalf of a file asynchronously and
-synchronously
-
-[![build status](https://secure.travis-ci.org/browserify/resolve.png)](http://travis-ci.org/browserify/resolve)
-
-# example
-
-asynchronously resolve:
-
-```js
-var resolve = require('resolve');
-resolve('tap', { basedir: __dirname }, function (err, res) {
- if (err) console.error(err);
- else console.log(res);
-});
-```
-
-```
-$ node example/async.js
-/home/substack/projects/node-resolve/node_modules/tap/lib/main.js
-```
-
-synchronously resolve:
-
-```js
-var resolve = require('resolve');
-var res = resolve.sync('tap', { basedir: __dirname });
-console.log(res);
-```
-
-```
-$ node example/sync.js
-/home/substack/projects/node-resolve/node_modules/tap/lib/main.js
-```
-
-# methods
-
-```js
-var resolve = require('resolve');
-```
-
-## resolve(id, opts={}, cb)
-
-Asynchronously resolve the module path string `id` into `cb(err, res [, pkg])`, where `pkg` (if defined) is the data from `package.json`.
-
-options are:
-
-* opts.basedir - directory to begin resolving from
-
-* opts.package - `package.json` data applicable to the module being loaded
-
-* opts.extensions - array of file extensions to search in order
-
-* opts.readFile - how to read files asynchronously
-
-* opts.isFile - function to asynchronously test whether a file exists
-
-* opts.isDirectory - function to asynchronously test whether a directory exists
-
-* opts.realpath - function to asynchronously resolve a potential symlink to its real path
-
-* `opts.packageFilter(pkg, pkgfile, dir)` - transform the parsed package.json contents before looking at the "main" field
- * pkg - package data
- * pkgfile - path to package.json
- * dir - directory for package.json
-
-* `opts.pathFilter(pkg, path, relativePath)` - transform a path within a package
- * pkg - package data
- * path - the path being resolved
- * relativePath - the path relative from the package.json location
- * returns - a relative path that will be joined from the package.json location
-
-* opts.paths - require.paths array to use if nothing is found on the normal `node_modules` recursive walk (probably don't use this)
-
- For advanced users, `paths` can also be a `opts.paths(request, start, opts)` function
- * request - the import specifier being resolved
- * start - lookup path
- * getNodeModulesDirs - a thunk (no-argument function) that returns the paths using standard `node_modules` resolution
- * opts - the resolution options
-
-* `opts.packageIterator(request, start, opts)` - return the list of candidate paths where the packages sources may be found (probably don't use this)
- * request - the import specifier being resolved
- * start - lookup path
- * getPackageCandidates - a thunk (no-argument function) that returns the paths using standard `node_modules` resolution
- * opts - the resolution options
-
-* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: `"node_modules"`
-
-* opts.preserveSymlinks - if true, doesn't resolve `basedir` to real path before resolving.
-This is the way Node resolves dependencies when executed with the [--preserve-symlinks](https://nodejs.org/api/all.html#cli_preserve_symlinks) flag.
-**Note:** this property is currently `true` by default but it will be changed to
-`false` in the next major version because *Node's resolution algorithm does not preserve symlinks by default*.
-
-default `opts` values:
-
-```js
-{
- paths: [],
- basedir: __dirname,
- extensions: ['.js'],
- readFile: fs.readFile,
- isFile: function isFile(file, cb) {
- fs.stat(file, function (err, stat) {
- if (!err) {
- return cb(null, stat.isFile() || stat.isFIFO());
- }
- if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
- return cb(err);
- });
- },
- isDirectory: function isDirectory(dir, cb) {
- fs.stat(dir, function (err, stat) {
- if (!err) {
- return cb(null, stat.isDirectory());
- }
- if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
- return cb(err);
- });
- },
- realpath: function realpath(file, cb) {
- var realpath = typeof fs.realpath.native === 'function' ? fs.realpath.native : fs.realpath;
- realpath(file, function (realPathErr, realPath) {
- if (realPathErr && realPathErr.code !== 'ENOENT') cb(realPathErr);
- else cb(null, realPathErr ? file : realPath);
- });
- },
- moduleDirectory: 'node_modules',
- preserveSymlinks: true
-}
-```
-
-## resolve.sync(id, opts)
-
-Synchronously resolve the module path string `id`, returning the result and
-throwing an error when `id` can't be resolved.
-
-options are:
-
-* opts.basedir - directory to begin resolving from
-
-* opts.extensions - array of file extensions to search in order
-
-* opts.readFile - how to read files synchronously
-
-* opts.isFile - function to synchronously test whether a file exists
-
-* opts.isDirectory - function to synchronously test whether a directory exists
-
-* opts.realpathSync - function to synchronously resolve a potential symlink to its real path
-
-* `opts.packageFilter(pkg, dir)` - transform the parsed package.json contents before looking at the "main" field
- * pkg - package data
- * dir - directory for package.json (Note: the second argument will change to "pkgfile" in v2)
-
-* `opts.pathFilter(pkg, path, relativePath)` - transform a path within a package
- * pkg - package data
- * path - the path being resolved
- * relativePath - the path relative from the package.json location
- * returns - a relative path that will be joined from the package.json location
-
-* opts.paths - require.paths array to use if nothing is found on the normal `node_modules` recursive walk (probably don't use this)
-
- For advanced users, `paths` can also be a `opts.paths(request, start, opts)` function
- * request - the import specifier being resolved
- * start - lookup path
- * getNodeModulesDirs - a thunk (no-argument function) that returns the paths using standard `node_modules` resolution
- * opts - the resolution options
-
-* `opts.packageIterator(request, start, opts)` - return the list of candidate paths where the packages sources may be found (probably don't use this)
- * request - the import specifier being resolved
- * start - lookup path
- * getPackageCandidates - a thunk (no-argument function) that returns the paths using standard `node_modules` resolution
- * opts - the resolution options
-
-* opts.moduleDirectory - directory (or directories) in which to recursively look for modules. default: `"node_modules"`
-
-* opts.preserveSymlinks - if true, doesn't resolve `basedir` to real path before resolving.
-This is the way Node resolves dependencies when executed with the [--preserve-symlinks](https://nodejs.org/api/all.html#cli_preserve_symlinks) flag.
-**Note:** this property is currently `true` by default but it will be changed to
-`false` in the next major version because *Node's resolution algorithm does not preserve symlinks by default*.
-
-default `opts` values:
-
-```js
-{
- paths: [],
- basedir: __dirname,
- extensions: ['.js'],
- readFileSync: fs.readFileSync,
- isFile: function isFile(file) {
- try {
- var stat = fs.statSync(file);
- } catch (e) {
- if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
- throw e;
- }
- return stat.isFile() || stat.isFIFO();
- },
- isDirectory: function isDirectory(dir) {
- try {
- var stat = fs.statSync(dir);
- } catch (e) {
- if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) return false;
- throw e;
- }
- return stat.isDirectory();
- },
- realpathSync: function realpathSync(file) {
- try {
- var realpath = typeof fs.realpathSync.native === 'function' ? fs.realpathSync.native : fs.realpathSync;
- return realpath(file);
- } catch (realPathErr) {
- if (realPathErr.code !== 'ENOENT') {
- throw realPathErr;
- }
- }
- return file;
- },
- moduleDirectory: 'node_modules',
- preserveSymlinks: true
-}
-```
-
-## resolve.isCore(pkg)
-
-Return whether a package is in core.
-
-# install
-
-With [npm](https://npmjs.org) do:
-
-```sh
-npm install resolve
-```
-
-# license
-
-MIT
diff --git a/node_modules/resolve/test/.eslintrc b/node_modules/resolve/test/.eslintrc
deleted file mode 100644
index ddd262d..0000000
--- a/node_modules/resolve/test/.eslintrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "rules": {
- "max-lines": 0
- }
-}
diff --git a/node_modules/resolve/test/core.js b/node_modules/resolve/test/core.js
deleted file mode 100644
index 4c111e1..0000000
--- a/node_modules/resolve/test/core.js
+++ /dev/null
@@ -1,85 +0,0 @@
-var test = require('tape');
-var keys = require('object-keys');
-var resolve = require('../');
-
-test('core modules', function (t) {
- t.test('isCore()', function (st) {
- st.ok(resolve.isCore('fs'));
- st.ok(resolve.isCore('net'));
- st.ok(resolve.isCore('http'));
-
- st.ok(!resolve.isCore('seq'));
- st.ok(!resolve.isCore('../'));
-
- st.ok(!resolve.isCore('toString'));
-
- st.end();
- });
-
- t.test('core list', function (st) {
- var cores = keys(resolve.core);
- st.plan(cores.length);
-
- for (var i = 0; i < cores.length; ++i) {
- var mod = cores[i];
- if (resolve.core[mod]) {
- st.doesNotThrow(
- function () { require(mod); }, // eslint-disable-line no-loop-func
- mod + ' supported; requiring does not throw'
- );
- } else {
- st.throws(
- function () { require(mod); }, // eslint-disable-line no-loop-func
- mod + ' not supported; requiring throws'
- );
- }
- }
-
- st.end();
- });
-
- t.test('core via repl module', { skip: !resolve.core.repl }, function (st) {
- var libs = require('repl')._builtinLibs; // eslint-disable-line no-underscore-dangle
- if (!libs) {
- st.skip('module.builtinModules does not exist');
- return st.end();
- }
- for (var i = 0; i < libs.length; ++i) {
- var mod = libs[i];
- st.ok(resolve.core[mod], mod + ' is a core module');
- st.doesNotThrow(
- function () { require(mod); }, // eslint-disable-line no-loop-func
- 'requiring ' + mod + ' does not throw'
- );
- }
- st.end();
- });
-
- t.test('core via builtinModules list', { skip: !resolve.core.module }, function (st) {
- var libs = require('module').builtinModules;
- if (!libs) {
- st.skip('module.builtinModules does not exist');
- return st.end();
- }
- var blacklist = [
- '_debug_agent',
- 'v8/tools/tickprocessor-driver',
- 'v8/tools/SourceMap',
- 'v8/tools/tickprocessor',
- 'v8/tools/profile'
- ];
- for (var i = 0; i < libs.length; ++i) {
- var mod = libs[i];
- if (blacklist.indexOf(mod) === -1) {
- st.ok(resolve.core[mod], mod + ' is a core module');
- st.doesNotThrow(
- function () { require(mod); }, // eslint-disable-line no-loop-func
- 'requiring ' + mod + ' does not throw'
- );
- }
- }
- st.end();
- });
-
- t.end();
-});
diff --git a/node_modules/resolve/test/dotdot.js b/node_modules/resolve/test/dotdot.js
deleted file mode 100644
index 3080665..0000000
--- a/node_modules/resolve/test/dotdot.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('dotdot', function (t) {
- t.plan(4);
- var dir = path.join(__dirname, '/dotdot/abc');
-
- resolve('..', { basedir: dir }, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(__dirname, 'dotdot/index.js'));
- });
-
- resolve('.', { basedir: dir }, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(dir, 'index.js'));
- });
-});
-
-test('dotdot sync', function (t) {
- t.plan(2);
- var dir = path.join(__dirname, '/dotdot/abc');
-
- var a = resolve.sync('..', { basedir: dir });
- t.equal(a, path.join(__dirname, 'dotdot/index.js'));
-
- var b = resolve.sync('.', { basedir: dir });
- t.equal(b, path.join(dir, 'index.js'));
-});
diff --git a/node_modules/resolve/test/dotdot/abc/index.js b/node_modules/resolve/test/dotdot/abc/index.js
deleted file mode 100644
index 67f2534..0000000
--- a/node_modules/resolve/test/dotdot/abc/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var x = require('..');
-console.log(x);
diff --git a/node_modules/resolve/test/dotdot/index.js b/node_modules/resolve/test/dotdot/index.js
deleted file mode 100644
index 643f9fc..0000000
--- a/node_modules/resolve/test/dotdot/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'whatever';
diff --git a/node_modules/resolve/test/faulty_basedir.js b/node_modules/resolve/test/faulty_basedir.js
deleted file mode 100644
index 5f2141a..0000000
--- a/node_modules/resolve/test/faulty_basedir.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var test = require('tape');
-var path = require('path');
-var resolve = require('../');
-
-test('faulty basedir must produce error in windows', { skip: process.platform !== 'win32' }, function (t) {
- t.plan(1);
-
- var resolverDir = 'C:\\a\\b\\c\\d';
-
- resolve('tape/lib/test.js', { basedir: resolverDir }, function (err, res, pkg) {
- t.equal(!!err, true);
- });
-});
-
-test('non-existent basedir should not throw when preserveSymlinks is false', function (t) {
- t.plan(2);
-
- var opts = {
- basedir: path.join(path.sep, 'unreal', 'path', 'that', 'does', 'not', 'exist'),
- preserveSymlinks: false
- };
-
- var module = './dotdot/abc';
-
- resolve(module, opts, function (err, res) {
- t.equal(err.code, 'MODULE_NOT_FOUND');
- t.equal(res, undefined);
- });
-});
diff --git a/node_modules/resolve/test/filter.js b/node_modules/resolve/test/filter.js
deleted file mode 100644
index 8f8cccd..0000000
--- a/node_modules/resolve/test/filter.js
+++ /dev/null
@@ -1,34 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('filter', function (t) {
- t.plan(4);
- var dir = path.join(__dirname, 'resolver');
- var packageFilterArgs;
- resolve('./baz', {
- basedir: dir,
- packageFilter: function (pkg, pkgfile) {
- pkg.main = 'doom'; // eslint-disable-line no-param-reassign
- packageFilterArgs = [pkg, pkgfile];
- return pkg;
- }
- }, function (err, res, pkg) {
- if (err) t.fail(err);
-
- t.equal(res, path.join(dir, 'baz/doom.js'), 'changing the package "main" works');
-
- var packageData = packageFilterArgs[0];
- t.equal(pkg, packageData, 'first packageFilter argument is "pkg"');
- t.equal(packageData.main, 'doom', 'package "main" was altered');
-
- var packageFile = packageFilterArgs[1];
- t.equal(
- packageFile,
- path.join(dir, 'baz/package.json'),
- 'second packageFilter argument is "pkgfile"'
- );
-
- t.end();
- });
-});
diff --git a/node_modules/resolve/test/filter_sync.js b/node_modules/resolve/test/filter_sync.js
deleted file mode 100644
index 8a43b98..0000000
--- a/node_modules/resolve/test/filter_sync.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('filter', function (t) {
- var dir = path.join(__dirname, 'resolver');
- var packageFilterArgs;
- var res = resolve.sync('./baz', {
- basedir: dir,
- // NOTE: in v2.x, this will be `pkg, pkgfile, dir`, but must remain "broken" here in v1.x for compatibility
- packageFilter: function (pkg, /*pkgfile,*/ dir) { // eslint-disable-line spaced-comment
- pkg.main = 'doom'; // eslint-disable-line no-param-reassign
- packageFilterArgs = 'is 1.x' ? [pkg, dir] : [pkg, pkgfile, dir]; // eslint-disable-line no-constant-condition, no-undef
- return pkg;
- }
- });
-
- t.equal(res, path.join(dir, 'baz/doom.js'), 'changing the package "main" works');
-
- var packageData = packageFilterArgs[0];
- t.equal(packageData.main, 'doom', 'package "main" was altered');
-
- if (!'is 1.x') { // eslint-disable-line no-constant-condition
- var packageFile = packageFilterArgs[1];
- t.equal(packageFile, path.join(dir, 'baz', 'package.json'), 'package.json path is correct');
- }
-
- var packageDir = packageFilterArgs['is 1.x' ? 1 : 2]; // eslint-disable-line no-constant-condition
- // eslint-disable-next-line no-constant-condition
- t.equal(packageDir, path.join(dir, 'baz'), ('is 1.x' ? 'second' : 'third') + ' packageFilter argument is "dir"');
-
- t.end();
-});
diff --git a/node_modules/resolve/test/mock.js b/node_modules/resolve/test/mock.js
deleted file mode 100644
index b9f17fe..0000000
--- a/node_modules/resolve/test/mock.js
+++ /dev/null
@@ -1,239 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('mock', function (t) {
- t.plan(8);
-
- var files = {};
- files[path.resolve('/foo/bar/baz.js')] = 'beep';
-
- var dirs = {};
- dirs[path.resolve('/foo/bar')] = true;
-
- function opts(basedir) {
- return {
- basedir: path.resolve(basedir),
- isFile: function (file, cb) {
- cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file)));
- },
- isDirectory: function (dir, cb) {
- cb(null, !!dirs[path.resolve(dir)]);
- },
- readFile: function (file, cb) {
- cb(null, files[path.resolve(file)]);
- },
- realpath: function (file, cb) {
- cb(null, file);
- }
- };
- }
-
- resolve('./baz', opts('/foo/bar'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/bar/baz.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('./baz.js', opts('/foo/bar'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/bar/baz.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('baz', opts('/foo/bar'), function (err, res) {
- t.equal(err.message, "Cannot find module 'baz' from '" + path.resolve('/foo/bar') + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-
- resolve('../baz', opts('/foo/bar'), function (err, res) {
- t.equal(err.message, "Cannot find module '../baz' from '" + path.resolve('/foo/bar') + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-});
-
-test('mock from package', function (t) {
- t.plan(8);
-
- var files = {};
- files[path.resolve('/foo/bar/baz.js')] = 'beep';
-
- var dirs = {};
- dirs[path.resolve('/foo/bar')] = true;
-
- function opts(basedir) {
- return {
- basedir: path.resolve(basedir),
- isFile: function (file, cb) {
- cb(null, Object.prototype.hasOwnProperty.call(files, file));
- },
- isDirectory: function (dir, cb) {
- cb(null, !!dirs[path.resolve(dir)]);
- },
- 'package': { main: 'bar' },
- readFile: function (file, cb) {
- cb(null, files[file]);
- },
- realpath: function (file, cb) {
- cb(null, file);
- }
- };
- }
-
- resolve('./baz', opts('/foo/bar'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/bar/baz.js'));
- t.equal(pkg && pkg.main, 'bar');
- });
-
- resolve('./baz.js', opts('/foo/bar'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/bar/baz.js'));
- t.equal(pkg && pkg.main, 'bar');
- });
-
- resolve('baz', opts('/foo/bar'), function (err, res) {
- t.equal(err.message, "Cannot find module 'baz' from '" + path.resolve('/foo/bar') + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-
- resolve('../baz', opts('/foo/bar'), function (err, res) {
- t.equal(err.message, "Cannot find module '../baz' from '" + path.resolve('/foo/bar') + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-});
-
-test('mock package', function (t) {
- t.plan(2);
-
- var files = {};
- files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep';
- files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({
- main: './baz.js'
- });
-
- var dirs = {};
- dirs[path.resolve('/foo')] = true;
- dirs[path.resolve('/foo/node_modules')] = true;
-
- function opts(basedir) {
- return {
- basedir: path.resolve(basedir),
- isFile: function (file, cb) {
- cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file)));
- },
- isDirectory: function (dir, cb) {
- cb(null, !!dirs[path.resolve(dir)]);
- },
- readFile: function (file, cb) {
- cb(null, files[path.resolve(file)]);
- },
- realpath: function (file, cb) {
- cb(null, file);
- }
- };
- }
-
- resolve('bar', opts('/foo'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/node_modules/bar/baz.js'));
- t.equal(pkg && pkg.main, './baz.js');
- });
-});
-
-test('mock package from package', function (t) {
- t.plan(2);
-
- var files = {};
- files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep';
- files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({
- main: './baz.js'
- });
-
- var dirs = {};
- dirs[path.resolve('/foo')] = true;
- dirs[path.resolve('/foo/node_modules')] = true;
-
- function opts(basedir) {
- return {
- basedir: path.resolve(basedir),
- isFile: function (file, cb) {
- cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file)));
- },
- isDirectory: function (dir, cb) {
- cb(null, !!dirs[path.resolve(dir)]);
- },
- 'package': { main: 'bar' },
- readFile: function (file, cb) {
- cb(null, files[path.resolve(file)]);
- },
- realpath: function (file, cb) {
- cb(null, file);
- }
- };
- }
-
- resolve('bar', opts('/foo'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/node_modules/bar/baz.js'));
- t.equal(pkg && pkg.main, './baz.js');
- });
-});
-
-test('symlinked', function (t) {
- t.plan(4);
-
- var files = {};
- files[path.resolve('/foo/bar/baz.js')] = 'beep';
- files[path.resolve('/foo/bar/symlinked/baz.js')] = 'beep';
-
- var dirs = {};
- dirs[path.resolve('/foo/bar')] = true;
- dirs[path.resolve('/foo/bar/symlinked')] = true;
-
- function opts(basedir) {
- return {
- preserveSymlinks: false,
- basedir: path.resolve(basedir),
- isFile: function (file, cb) {
- cb(null, Object.prototype.hasOwnProperty.call(files, path.resolve(file)));
- },
- isDirectory: function (dir, cb) {
- cb(null, !!dirs[path.resolve(dir)]);
- },
- readFile: function (file, cb) {
- cb(null, files[path.resolve(file)]);
- },
- realpath: function (file, cb) {
- var resolved = path.resolve(file);
-
- if (resolved.indexOf('symlinked') >= 0) {
- cb(null, resolved);
- return;
- }
-
- var ext = path.extname(resolved);
-
- if (ext) {
- var dir = path.dirname(resolved);
- var base = path.basename(resolved);
- cb(null, path.join(dir, 'symlinked', base));
- } else {
- cb(null, path.join(resolved, 'symlinked'));
- }
- }
- };
- }
-
- resolve('./baz', opts('/foo/bar'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/bar/symlinked/baz.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('./baz.js', opts('/foo/bar'), function (err, res, pkg) {
- if (err) return t.fail(err);
- t.equal(res, path.resolve('/foo/bar/symlinked/baz.js'));
- t.equal(pkg, undefined);
- });
-});
diff --git a/node_modules/resolve/test/mock_sync.js b/node_modules/resolve/test/mock_sync.js
deleted file mode 100644
index fcf8114..0000000
--- a/node_modules/resolve/test/mock_sync.js
+++ /dev/null
@@ -1,141 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('mock', function (t) {
- t.plan(4);
-
- var files = {};
- files[path.resolve('/foo/bar/baz.js')] = 'beep';
-
- var dirs = {};
- dirs[path.resolve('/foo/bar')] = true;
-
- function opts(basedir) {
- return {
- basedir: path.resolve(basedir),
- isFile: function (file) {
- return Object.prototype.hasOwnProperty.call(files, path.resolve(file));
- },
- isDirectory: function (dir) {
- return !!dirs[path.resolve(dir)];
- },
- readFileSync: function (file) {
- return files[path.resolve(file)];
- },
- realpathSync: function (file) {
- return file;
- }
- };
- }
-
- t.equal(
- resolve.sync('./baz', opts('/foo/bar')),
- path.resolve('/foo/bar/baz.js')
- );
-
- t.equal(
- resolve.sync('./baz.js', opts('/foo/bar')),
- path.resolve('/foo/bar/baz.js')
- );
-
- t.throws(function () {
- resolve.sync('baz', opts('/foo/bar'));
- });
-
- t.throws(function () {
- resolve.sync('../baz', opts('/foo/bar'));
- });
-});
-
-test('mock package', function (t) {
- t.plan(1);
-
- var files = {};
- files[path.resolve('/foo/node_modules/bar/baz.js')] = 'beep';
- files[path.resolve('/foo/node_modules/bar/package.json')] = JSON.stringify({
- main: './baz.js'
- });
-
- var dirs = {};
- dirs[path.resolve('/foo')] = true;
- dirs[path.resolve('/foo/node_modules')] = true;
-
- function opts(basedir) {
- return {
- basedir: path.resolve(basedir),
- isFile: function (file) {
- return Object.prototype.hasOwnProperty.call(files, path.resolve(file));
- },
- isDirectory: function (dir) {
- return !!dirs[path.resolve(dir)];
- },
- readFileSync: function (file) {
- return files[path.resolve(file)];
- },
- realpathSync: function (file) {
- return file;
- }
- };
- }
-
- t.equal(
- resolve.sync('bar', opts('/foo')),
- path.resolve('/foo/node_modules/bar/baz.js')
- );
-});
-
-test('symlinked', function (t) {
- t.plan(2);
-
- var files = {};
- files[path.resolve('/foo/bar/baz.js')] = 'beep';
- files[path.resolve('/foo/bar/symlinked/baz.js')] = 'beep';
-
- var dirs = {};
- dirs[path.resolve('/foo/bar')] = true;
- dirs[path.resolve('/foo/bar/symlinked')] = true;
-
- function opts(basedir) {
- return {
- preserveSymlinks: false,
- basedir: path.resolve(basedir),
- isFile: function (file) {
- return Object.prototype.hasOwnProperty.call(files, path.resolve(file));
- },
- isDirectory: function (dir) {
- return !!dirs[path.resolve(dir)];
- },
- readFileSync: function (file) {
- return files[path.resolve(file)];
- },
- realpathSync: function (file) {
- var resolved = path.resolve(file);
-
- if (resolved.indexOf('symlinked') >= 0) {
- return resolved;
- }
-
- var ext = path.extname(resolved);
-
- if (ext) {
- var dir = path.dirname(resolved);
- var base = path.basename(resolved);
- return path.join(dir, 'symlinked', base);
- } else {
- return path.join(resolved, 'symlinked');
- }
- }
- };
- }
-
- t.equal(
- resolve.sync('./baz', opts('/foo/bar')),
- path.resolve('/foo/bar/symlinked/baz.js')
- );
-
- t.equal(
- resolve.sync('./baz.js', opts('/foo/bar')),
- path.resolve('/foo/bar/symlinked/baz.js')
- );
-});
diff --git a/node_modules/resolve/test/module_dir.js b/node_modules/resolve/test/module_dir.js
deleted file mode 100644
index b50e5bb..0000000
--- a/node_modules/resolve/test/module_dir.js
+++ /dev/null
@@ -1,56 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('moduleDirectory strings', function (t) {
- t.plan(4);
- var dir = path.join(__dirname, 'module_dir');
- var xopts = {
- basedir: dir,
- moduleDirectory: 'xmodules'
- };
- resolve('aaa', xopts, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(dir, '/xmodules/aaa/index.js'));
- });
-
- var yopts = {
- basedir: dir,
- moduleDirectory: 'ymodules'
- };
- resolve('aaa', yopts, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(dir, '/ymodules/aaa/index.js'));
- });
-});
-
-test('moduleDirectory array', function (t) {
- t.plan(6);
- var dir = path.join(__dirname, 'module_dir');
- var aopts = {
- basedir: dir,
- moduleDirectory: ['xmodules', 'ymodules', 'zmodules']
- };
- resolve('aaa', aopts, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(dir, '/xmodules/aaa/index.js'));
- });
-
- var bopts = {
- basedir: dir,
- moduleDirectory: ['zmodules', 'ymodules', 'xmodules']
- };
- resolve('aaa', bopts, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(dir, '/ymodules/aaa/index.js'));
- });
-
- var copts = {
- basedir: dir,
- moduleDirectory: ['xmodules', 'ymodules', 'zmodules']
- };
- resolve('bbb', copts, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(dir, '/zmodules/bbb/main.js'));
- });
-});
diff --git a/node_modules/resolve/test/module_dir/xmodules/aaa/index.js b/node_modules/resolve/test/module_dir/xmodules/aaa/index.js
deleted file mode 100644
index dd7cf7b..0000000
--- a/node_modules/resolve/test/module_dir/xmodules/aaa/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function (x) { return x * 100; };
diff --git a/node_modules/resolve/test/module_dir/ymodules/aaa/index.js b/node_modules/resolve/test/module_dir/ymodules/aaa/index.js
deleted file mode 100644
index ef2d4d4..0000000
--- a/node_modules/resolve/test/module_dir/ymodules/aaa/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function (x) { return x + 100; };
diff --git a/node_modules/resolve/test/module_dir/zmodules/bbb/main.js b/node_modules/resolve/test/module_dir/zmodules/bbb/main.js
deleted file mode 100644
index e8ba629..0000000
--- a/node_modules/resolve/test/module_dir/zmodules/bbb/main.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = function (n) { return n * 111; };
diff --git a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json b/node_modules/resolve/test/module_dir/zmodules/bbb/package.json
deleted file mode 100644
index c13b8cf..0000000
--- a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "main": "main.js"
-}
diff --git a/node_modules/resolve/test/node-modules-paths.js b/node_modules/resolve/test/node-modules-paths.js
deleted file mode 100644
index 675441d..0000000
--- a/node_modules/resolve/test/node-modules-paths.js
+++ /dev/null
@@ -1,143 +0,0 @@
-var test = require('tape');
-var path = require('path');
-var parse = path.parse || require('path-parse');
-var keys = require('object-keys');
-
-var nodeModulesPaths = require('../lib/node-modules-paths');
-
-var verifyDirs = function verifyDirs(t, start, dirs, moduleDirectories, paths) {
- var moduleDirs = [].concat(moduleDirectories || 'node_modules');
- if (paths) {
- for (var k = 0; k < paths.length; ++k) {
- moduleDirs.push(path.basename(paths[k]));
- }
- }
-
- var foundModuleDirs = {};
- var uniqueDirs = {};
- var parsedDirs = {};
- for (var i = 0; i < dirs.length; ++i) {
- var parsed = parse(dirs[i]);
- if (!foundModuleDirs[parsed.base]) { foundModuleDirs[parsed.base] = 0; }
- foundModuleDirs[parsed.base] += 1;
- parsedDirs[parsed.dir] = true;
- uniqueDirs[dirs[i]] = true;
- }
- t.equal(keys(parsedDirs).length >= start.split(path.sep).length, true, 'there are >= dirs than "start" has');
- var foundModuleDirNames = keys(foundModuleDirs);
- t.deepEqual(foundModuleDirNames, moduleDirs, 'all desired module dirs were found');
- t.equal(keys(uniqueDirs).length, dirs.length, 'all dirs provided were unique');
-
- var counts = {};
- for (var j = 0; j < foundModuleDirNames.length; ++j) {
- counts[foundModuleDirs[j]] = true;
- }
- t.equal(keys(counts).length, 1, 'all found module directories had the same count');
-};
-
-test('node-modules-paths', function (t) {
- t.test('no options', function (t) {
- var start = path.join(__dirname, 'resolver');
- var dirs = nodeModulesPaths(start);
-
- verifyDirs(t, start, dirs);
-
- t.end();
- });
-
- t.test('empty options', function (t) {
- var start = path.join(__dirname, 'resolver');
- var dirs = nodeModulesPaths(start, {});
-
- verifyDirs(t, start, dirs);
-
- t.end();
- });
-
- t.test('with paths=array option', function (t) {
- var start = path.join(__dirname, 'resolver');
- var paths = ['a', 'b'];
- var dirs = nodeModulesPaths(start, { paths: paths });
-
- verifyDirs(t, start, dirs, null, paths);
-
- t.end();
- });
-
- t.test('with paths=function option', function (t) {
- var paths = function paths(request, absoluteStart, getNodeModulesDirs, opts) {
- return getNodeModulesDirs().concat(path.join(absoluteStart, 'not node modules', request));
- };
-
- var start = path.join(__dirname, 'resolver');
- var dirs = nodeModulesPaths(start, { paths: paths }, 'pkg');
-
- verifyDirs(t, start, dirs, null, [path.join(start, 'not node modules', 'pkg')]);
-
- t.end();
- });
-
- t.test('with paths=function skipping node modules resolution', function (t) {
- var paths = function paths(request, absoluteStart, getNodeModulesDirs, opts) {
- return [];
- };
- var start = path.join(__dirname, 'resolver');
- var dirs = nodeModulesPaths(start, { paths: paths });
- t.deepEqual(dirs, [], 'no node_modules was computed');
- t.end();
- });
-
- t.test('with moduleDirectory option', function (t) {
- var start = path.join(__dirname, 'resolver');
- var moduleDirectory = 'not node modules';
- var dirs = nodeModulesPaths(start, { moduleDirectory: moduleDirectory });
-
- verifyDirs(t, start, dirs, moduleDirectory);
-
- t.end();
- });
-
- t.test('with 1 moduleDirectory and paths options', function (t) {
- var start = path.join(__dirname, 'resolver');
- var paths = ['a', 'b'];
- var moduleDirectory = 'not node modules';
- var dirs = nodeModulesPaths(start, { paths: paths, moduleDirectory: moduleDirectory });
-
- verifyDirs(t, start, dirs, moduleDirectory, paths);
-
- t.end();
- });
-
- t.test('with 1+ moduleDirectory and paths options', function (t) {
- var start = path.join(__dirname, 'resolver');
- var paths = ['a', 'b'];
- var moduleDirectories = ['not node modules', 'other modules'];
- var dirs = nodeModulesPaths(start, { paths: paths, moduleDirectory: moduleDirectories });
-
- verifyDirs(t, start, dirs, moduleDirectories, paths);
-
- t.end();
- });
-
- t.test('combine paths correctly on Windows', function (t) {
- var start = 'C:\\Users\\username\\myProject\\src';
- var paths = [];
- var moduleDirectories = ['node_modules', start];
- var dirs = nodeModulesPaths(start, { paths: paths, moduleDirectory: moduleDirectories });
-
- t.equal(dirs.indexOf(path.resolve(start)) > -1, true, 'should contain start dir');
-
- t.end();
- });
-
- t.test('combine paths correctly on non-Windows', { skip: process.platform === 'win32' }, function (t) {
- var start = '/Users/username/git/myProject/src';
- var paths = [];
- var moduleDirectories = ['node_modules', '/Users/username/git/myProject/src'];
- var dirs = nodeModulesPaths(start, { paths: paths, moduleDirectory: moduleDirectories });
-
- t.equal(dirs.indexOf(path.resolve(start)) > -1, true, 'should contain start dir');
-
- t.end();
- });
-});
diff --git a/node_modules/resolve/test/node_path.js b/node_modules/resolve/test/node_path.js
deleted file mode 100644
index d06aa4e..0000000
--- a/node_modules/resolve/test/node_path.js
+++ /dev/null
@@ -1,70 +0,0 @@
-var fs = require('fs');
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('$NODE_PATH', function (t) {
- t.plan(8);
-
- var isDir = function (dir, cb) {
- if (dir === '/node_path' || dir === 'node_path/x') {
- return cb(null, true);
- }
- fs.stat(dir, function (err, stat) {
- if (!err) {
- return cb(null, stat.isDirectory());
- }
- if (err.code === 'ENOENT' || err.code === 'ENOTDIR') return cb(null, false);
- return cb(err);
- });
- };
-
- resolve('aaa', {
- paths: [
- path.join(__dirname, '/node_path/x'),
- path.join(__dirname, '/node_path/y')
- ],
- basedir: __dirname,
- isDirectory: isDir
- }, function (err, res) {
- t.error(err);
- t.equal(res, path.join(__dirname, '/node_path/x/aaa/index.js'), 'aaa resolves');
- });
-
- resolve('bbb', {
- paths: [
- path.join(__dirname, '/node_path/x'),
- path.join(__dirname, '/node_path/y')
- ],
- basedir: __dirname,
- isDirectory: isDir
- }, function (err, res) {
- t.error(err);
- t.equal(res, path.join(__dirname, '/node_path/y/bbb/index.js'), 'bbb resolves');
- });
-
- resolve('ccc', {
- paths: [
- path.join(__dirname, '/node_path/x'),
- path.join(__dirname, '/node_path/y')
- ],
- basedir: __dirname,
- isDirectory: isDir
- }, function (err, res) {
- t.error(err);
- t.equal(res, path.join(__dirname, '/node_path/x/ccc/index.js'), 'ccc resolves');
- });
-
- // ensure that relative paths still resolve against the regular `node_modules` correctly
- resolve('tap', {
- paths: [
- 'node_path'
- ],
- basedir: path.join(__dirname, 'node_path/x'),
- isDirectory: isDir
- }, function (err, res) {
- var root = require('tap/package.json').main;
- t.error(err);
- t.equal(res, path.resolve(__dirname, '..', 'node_modules/tap', root), 'tap resolves');
- });
-});
diff --git a/node_modules/resolve/test/node_path/x/aaa/index.js b/node_modules/resolve/test/node_path/x/aaa/index.js
deleted file mode 100644
index ad70d0b..0000000
--- a/node_modules/resolve/test/node_path/x/aaa/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'A';
diff --git a/node_modules/resolve/test/node_path/x/ccc/index.js b/node_modules/resolve/test/node_path/x/ccc/index.js
deleted file mode 100644
index a64132e..0000000
--- a/node_modules/resolve/test/node_path/x/ccc/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'C';
diff --git a/node_modules/resolve/test/node_path/y/bbb/index.js b/node_modules/resolve/test/node_path/y/bbb/index.js
deleted file mode 100644
index 4d0f32e..0000000
--- a/node_modules/resolve/test/node_path/y/bbb/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'B';
diff --git a/node_modules/resolve/test/node_path/y/ccc/index.js b/node_modules/resolve/test/node_path/y/ccc/index.js
deleted file mode 100644
index 793315e..0000000
--- a/node_modules/resolve/test/node_path/y/ccc/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'CY';
diff --git a/node_modules/resolve/test/nonstring.js b/node_modules/resolve/test/nonstring.js
deleted file mode 100644
index ef63c40..0000000
--- a/node_modules/resolve/test/nonstring.js
+++ /dev/null
@@ -1,9 +0,0 @@
-var test = require('tape');
-var resolve = require('../');
-
-test('nonstring', function (t) {
- t.plan(1);
- resolve(555, function (err, res, pkg) {
- t.ok(err);
- });
-});
diff --git a/node_modules/resolve/test/pathfilter.js b/node_modules/resolve/test/pathfilter.js
deleted file mode 100644
index 16519ae..0000000
--- a/node_modules/resolve/test/pathfilter.js
+++ /dev/null
@@ -1,75 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-var resolverDir = path.join(__dirname, '/pathfilter/deep_ref');
-
-var pathFilterFactory = function (t) {
- return function (pkg, x, remainder) {
- t.equal(pkg.version, '1.2.3');
- t.equal(x, path.join(resolverDir, 'node_modules/deep/ref'));
- t.equal(remainder, 'ref');
- return 'alt';
- };
-};
-
-test('#62: deep module references and the pathFilter', function (t) {
- t.test('deep/ref.js', function (st) {
- st.plan(3);
-
- resolve('deep/ref', { basedir: resolverDir }, function (err, res, pkg) {
- if (err) st.fail(err);
-
- st.equal(pkg.version, '1.2.3');
- st.equal(res, path.join(resolverDir, 'node_modules/deep/ref.js'));
- });
-
- var res = resolve.sync('deep/ref', { basedir: resolverDir });
- st.equal(res, path.join(resolverDir, 'node_modules/deep/ref.js'));
- });
-
- t.test('deep/deeper/ref', function (st) {
- st.plan(4);
-
- resolve(
- 'deep/deeper/ref',
- { basedir: resolverDir },
- function (err, res, pkg) {
- if (err) t.fail(err);
- st.notEqual(pkg, undefined);
- st.equal(pkg.version, '1.2.3');
- st.equal(res, path.join(resolverDir, 'node_modules/deep/deeper/ref.js'));
- }
- );
-
- var res = resolve.sync(
- 'deep/deeper/ref',
- { basedir: resolverDir }
- );
- st.equal(res, path.join(resolverDir, 'node_modules/deep/deeper/ref.js'));
- });
-
- t.test('deep/ref alt', function (st) {
- st.plan(8);
-
- var pathFilter = pathFilterFactory(st);
-
- var res = resolve.sync(
- 'deep/ref',
- { basedir: resolverDir, pathFilter: pathFilter }
- );
- st.equal(res, path.join(resolverDir, 'node_modules/deep/alt.js'));
-
- resolve(
- 'deep/ref',
- { basedir: resolverDir, pathFilter: pathFilter },
- function (err, res, pkg) {
- if (err) st.fail(err);
- st.equal(res, path.join(resolverDir, 'node_modules/deep/alt.js'));
- st.end();
- }
- );
- });
-
- t.end();
-});
diff --git a/node_modules/resolve/test/pathfilter/deep_ref/main.js b/node_modules/resolve/test/pathfilter/deep_ref/main.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/pathfilter/deep_ref/main.js
+++ /dev/null
diff --git a/node_modules/resolve/test/precedence.js b/node_modules/resolve/test/precedence.js
deleted file mode 100644
index 2febb59..0000000
--- a/node_modules/resolve/test/precedence.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('precedence', function (t) {
- t.plan(3);
- var dir = path.join(__dirname, 'precedence/aaa');
-
- resolve('./', { basedir: dir }, function (err, res, pkg) {
- t.ifError(err);
- t.equal(res, path.join(dir, 'index.js'));
- t.equal(pkg.name, 'resolve');
- });
-});
-
-test('./ should not load ${dir}.js', function (t) { // eslint-disable-line no-template-curly-in-string
- t.plan(1);
- var dir = path.join(__dirname, 'precedence/bbb');
-
- resolve('./', { basedir: dir }, function (err, res, pkg) {
- t.ok(err);
- });
-});
diff --git a/node_modules/resolve/test/precedence/aaa.js b/node_modules/resolve/test/precedence/aaa.js
deleted file mode 100644
index b83a3e7..0000000
--- a/node_modules/resolve/test/precedence/aaa.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'wtf';
diff --git a/node_modules/resolve/test/precedence/aaa/index.js b/node_modules/resolve/test/precedence/aaa/index.js
deleted file mode 100644
index e0f8f6a..0000000
--- a/node_modules/resolve/test/precedence/aaa/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'okok';
diff --git a/node_modules/resolve/test/precedence/aaa/main.js b/node_modules/resolve/test/precedence/aaa/main.js
deleted file mode 100644
index 93542a9..0000000
--- a/node_modules/resolve/test/precedence/aaa/main.js
+++ /dev/null
@@ -1 +0,0 @@
-console.log(require('./'));
diff --git a/node_modules/resolve/test/precedence/bbb.js b/node_modules/resolve/test/precedence/bbb.js
deleted file mode 100644
index 2298f47..0000000
--- a/node_modules/resolve/test/precedence/bbb.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = '>_<';
diff --git a/node_modules/resolve/test/precedence/bbb/main.js b/node_modules/resolve/test/precedence/bbb/main.js
deleted file mode 100644
index 716b81d..0000000
--- a/node_modules/resolve/test/precedence/bbb/main.js
+++ /dev/null
@@ -1 +0,0 @@
-console.log(require('./')); // should throw
diff --git a/node_modules/resolve/test/resolver.js b/node_modules/resolve/test/resolver.js
deleted file mode 100644
index aa36ee1..0000000
--- a/node_modules/resolve/test/resolver.js
+++ /dev/null
@@ -1,450 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('async foo', function (t) {
- t.plan(12);
- var dir = path.join(__dirname, 'resolver');
-
- resolve('./foo', { basedir: dir }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'foo.js'));
- t.equal(pkg && pkg.name, 'resolve');
- });
-
- resolve('./foo.js', { basedir: dir }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'foo.js'));
- t.equal(pkg && pkg.name, 'resolve');
- });
-
- resolve('./foo', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'foo.js'));
- t.equal(pkg && pkg.main, 'resolver');
- });
-
- resolve('./foo.js', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'foo.js'));
- t.equal(pkg.main, 'resolver');
- });
-
- resolve('./foo', { basedir: dir, filename: path.join(dir, 'baz.js') }, function (err, res) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'foo.js'));
- });
-
- resolve('foo', { basedir: dir }, function (err) {
- t.equal(err.message, "Cannot find module 'foo' from '" + path.resolve(dir) + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-
- // Test that filename is reported as the "from" value when passed.
- resolve('foo', { basedir: dir, filename: path.join(dir, 'baz.js') }, function (err) {
- t.equal(err.message, "Cannot find module 'foo' from '" + path.join(dir, 'baz.js') + "'");
- });
-});
-
-test('bar', function (t) {
- t.plan(6);
- var dir = path.join(__dirname, 'resolver');
-
- resolve('foo', { basedir: dir + '/bar' }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'bar/node_modules/foo/index.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('foo', { basedir: dir + '/bar' }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'bar/node_modules/foo/index.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('foo', { basedir: dir + '/bar', 'package': { main: 'bar' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'bar/node_modules/foo/index.js'));
- t.equal(pkg.main, 'bar');
- });
-});
-
-test('baz', function (t) {
- t.plan(4);
- var dir = path.join(__dirname, 'resolver');
-
- resolve('./baz', { basedir: dir }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'baz/quux.js'));
- t.equal(pkg.main, 'quux.js');
- });
-
- resolve('./baz', { basedir: dir, 'package': { main: 'resolver' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'baz/quux.js'));
- t.equal(pkg.main, 'quux.js');
- });
-});
-
-test('biz', function (t) {
- t.plan(24);
- var dir = path.join(__dirname, 'resolver/biz/node_modules');
-
- resolve('./grux', { basedir: dir }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'grux/index.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('./grux', { basedir: dir, 'package': { main: 'biz' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'grux/index.js'));
- t.equal(pkg.main, 'biz');
- });
-
- resolve('./garply', { basedir: dir }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'garply/lib/index.js'));
- t.equal(pkg.main, './lib');
- });
-
- resolve('./garply', { basedir: dir, 'package': { main: 'biz' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'garply/lib/index.js'));
- t.equal(pkg.main, './lib');
- });
-
- resolve('tiv', { basedir: dir + '/grux' }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'tiv/index.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('tiv', { basedir: dir + '/grux', 'package': { main: 'grux' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'tiv/index.js'));
- t.equal(pkg.main, 'grux');
- });
-
- resolve('tiv', { basedir: dir + '/garply' }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'tiv/index.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('tiv', { basedir: dir + '/garply', 'package': { main: './lib' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'tiv/index.js'));
- t.equal(pkg.main, './lib');
- });
-
- resolve('grux', { basedir: dir + '/tiv' }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'grux/index.js'));
- t.equal(pkg, undefined);
- });
-
- resolve('grux', { basedir: dir + '/tiv', 'package': { main: 'tiv' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'grux/index.js'));
- t.equal(pkg.main, 'tiv');
- });
-
- resolve('garply', { basedir: dir + '/tiv' }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'garply/lib/index.js'));
- t.equal(pkg.main, './lib');
- });
-
- resolve('garply', { basedir: dir + '/tiv', 'package': { main: 'tiv' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'garply/lib/index.js'));
- t.equal(pkg.main, './lib');
- });
-});
-
-test('quux', function (t) {
- t.plan(2);
- var dir = path.join(__dirname, 'resolver/quux');
-
- resolve('./foo', { basedir: dir, 'package': { main: 'quux' } }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'foo/index.js'));
- t.equal(pkg.main, 'quux');
- });
-});
-
-test('normalize', function (t) {
- t.plan(2);
- var dir = path.join(__dirname, 'resolver/biz/node_modules/grux');
-
- resolve('../grux', { basedir: dir }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'index.js'));
- t.equal(pkg, undefined);
- });
-});
-
-test('cup', function (t) {
- t.plan(5);
- var dir = path.join(__dirname, 'resolver');
-
- resolve('./cup', { basedir: dir, extensions: ['.js', '.coffee'] }, function (err, res) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'cup.coffee'));
- });
-
- resolve('./cup.coffee', { basedir: dir }, function (err, res) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'cup.coffee'));
- });
-
- resolve('./cup', { basedir: dir, extensions: ['.js'] }, function (err, res) {
- t.equal(err.message, "Cannot find module './cup' from '" + path.resolve(dir) + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-
- // Test that filename is reported as the "from" value when passed.
- resolve('./cup', { basedir: dir, extensions: ['.js'], filename: path.join(dir, 'cupboard.js') }, function (err, res) {
- t.equal(err.message, "Cannot find module './cup' from '" + path.join(dir, 'cupboard.js') + "'");
- });
-});
-
-test('mug', function (t) {
- t.plan(3);
- var dir = path.join(__dirname, 'resolver');
-
- resolve('./mug', { basedir: dir }, function (err, res) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'mug.js'));
- });
-
- resolve('./mug', { basedir: dir, extensions: ['.coffee', '.js'] }, function (err, res) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, '/mug.coffee'));
- });
-
- resolve('./mug', { basedir: dir, extensions: ['.js', '.coffee'] }, function (err, res) {
- t.equal(res, path.join(dir, '/mug.js'));
- });
-});
-
-test('other path', function (t) {
- t.plan(6);
- var resolverDir = path.join(__dirname, 'resolver');
- var dir = path.join(resolverDir, 'bar');
- var otherDir = path.join(resolverDir, 'other_path');
-
- resolve('root', { basedir: dir, paths: [otherDir] }, function (err, res) {
- if (err) t.fail(err);
- t.equal(res, path.join(resolverDir, 'other_path/root.js'));
- });
-
- resolve('lib/other-lib', { basedir: dir, paths: [otherDir] }, function (err, res) {
- if (err) t.fail(err);
- t.equal(res, path.join(resolverDir, 'other_path/lib/other-lib.js'));
- });
-
- resolve('root', { basedir: dir }, function (err, res) {
- t.equal(err.message, "Cannot find module 'root' from '" + path.resolve(dir) + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-
- resolve('zzz', { basedir: dir, paths: [otherDir] }, function (err, res) {
- t.equal(err.message, "Cannot find module 'zzz' from '" + path.resolve(dir) + "'");
- t.equal(err.code, 'MODULE_NOT_FOUND');
- });
-});
-
-test('path iterator', function (t) {
- t.plan(2);
-
- var resolverDir = path.join(__dirname, 'resolver');
-
- var exactIterator = function (x, start, getPackageCandidates, opts) {
- return [path.join(resolverDir, x)];
- };
-
- resolve('baz', { packageIterator: exactIterator }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(resolverDir, 'baz/quux.js'));
- t.equal(pkg && pkg.name, 'baz');
- });
-});
-
-test('incorrect main', function (t) {
- t.plan(1);
-
- var resolverDir = path.join(__dirname, 'resolver');
- var dir = path.join(resolverDir, 'incorrect_main');
-
- resolve('./incorrect_main', { basedir: resolverDir }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'index.js'));
- });
-});
-
-test('without basedir', function (t) {
- t.plan(1);
-
- var dir = path.join(__dirname, 'resolver/without_basedir');
- var tester = require(path.join(dir, 'main.js'));
-
- tester(t, function (err, res, pkg) {
- if (err) {
- t.fail(err);
- } else {
- t.equal(res, path.join(dir, 'node_modules/mymodule.js'));
- }
- });
-});
-
-test('#52 - incorrectly resolves module-paths like "./someFolder/" when there is a file of the same name', function (t) {
- t.plan(2);
-
- var dir = path.join(__dirname, 'resolver');
-
- resolve('./foo', { basedir: path.join(dir, 'same_names') }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'same_names/foo.js'));
- });
-
- resolve('./foo/', { basedir: path.join(dir, 'same_names') }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'same_names/foo/index.js'));
- });
-});
-
-test('#211 - incorrectly resolves module-paths like "." when from inside a folder with a sibling file of the same name', function (t) {
- t.plan(2);
-
- var dir = path.join(__dirname, 'resolver');
-
- resolve('./', { basedir: path.join(dir, 'same_names/foo') }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'same_names/foo/index.js'));
- });
-
- resolve('.', { basedir: path.join(dir, 'same_names/foo') }, function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'same_names/foo/index.js'));
- });
-});
-
-test('async: #121 - treating an existing file as a dir when no basedir', function (t) {
- var testFile = path.basename(__filename);
-
- t.test('sanity check', function (st) {
- st.plan(1);
- resolve('./' + testFile, function (err, res, pkg) {
- if (err) t.fail(err);
- st.equal(res, __filename, 'sanity check');
- });
- });
-
- t.test('with a fake directory', function (st) {
- st.plan(4);
-
- resolve('./' + testFile + '/blah', function (err, res, pkg) {
- st.ok(err, 'there is an error');
- st.notOk(res, 'no result');
-
- st.equal(err && err.code, 'MODULE_NOT_FOUND', 'error code matches require.resolve');
- st.equal(
- err && err.message,
- 'Cannot find module \'./' + testFile + '/blah\' from \'' + __dirname + '\'',
- 'can not find nonexistent module'
- );
- st.end();
- });
- });
-
- t.end();
-});
-
-test('async dot main', function (t) {
- var start = new Date();
- t.plan(3);
- resolve('./resolver/dot_main', function (err, ret) {
- t.notOk(err);
- t.equal(ret, path.join(__dirname, 'resolver/dot_main/index.js'));
- t.ok(new Date() - start < 50, 'resolve.sync timedout');
- t.end();
- });
-});
-
-test('async dot slash main', function (t) {
- var start = new Date();
- t.plan(3);
- resolve('./resolver/dot_slash_main', function (err, ret) {
- t.notOk(err);
- t.equal(ret, path.join(__dirname, 'resolver/dot_slash_main/index.js'));
- t.ok(new Date() - start < 50, 'resolve.sync timedout');
- t.end();
- });
-});
-
-test('not a directory', function (t) {
- t.plan(6);
- var path = './foo';
- resolve(path, { basedir: __filename }, function (err, res, pkg) {
- t.ok(err, 'a non-directory errors');
- t.equal(arguments.length, 1);
- t.equal(res, undefined);
- t.equal(pkg, undefined);
-
- t.equal(err && err.message, 'Cannot find module \'' + path + '\' from \'' + __filename + '\'');
- t.equal(err && err.code, 'MODULE_NOT_FOUND');
- });
-});
-
-test('non-string "main" field in package.json', function (t) {
- t.plan(5);
-
- var dir = path.join(__dirname, 'resolver');
- resolve('./invalid_main', { basedir: dir }, function (err, res, pkg) {
- t.ok(err, 'errors on non-string main');
- t.equal(err.message, 'package “invalid main” `main` must be a string');
- t.equal(err.code, 'INVALID_PACKAGE_MAIN');
- t.equal(res, undefined, 'res is undefined');
- t.equal(pkg, undefined, 'pkg is undefined');
- });
-});
-
-test('non-string "main" field in package.json', function (t) {
- t.plan(5);
-
- var dir = path.join(__dirname, 'resolver');
- resolve('./invalid_main', { basedir: dir }, function (err, res, pkg) {
- t.ok(err, 'errors on non-string main');
- t.equal(err.message, 'package “invalid main” `main` must be a string');
- t.equal(err.code, 'INVALID_PACKAGE_MAIN');
- t.equal(res, undefined, 'res is undefined');
- t.equal(pkg, undefined, 'pkg is undefined');
- });
-});
-
-test('browser field in package.json', function (t) {
- t.plan(3);
-
- var dir = path.join(__dirname, 'resolver');
- resolve(
- './browser_field',
- {
- basedir: dir,
- packageFilter: function packageFilter(pkg) {
- if (pkg.browser) {
- pkg.main = pkg.browser; // eslint-disable-line no-param-reassign
- delete pkg.browser; // eslint-disable-line no-param-reassign
- }
- return pkg;
- }
- },
- function (err, res, pkg) {
- if (err) t.fail(err);
- t.equal(res, path.join(dir, 'browser_field', 'b.js'));
- t.equal(pkg && pkg.main, 'b');
- t.equal(pkg && pkg.browser, undefined);
- }
- );
-});
diff --git a/node_modules/resolve/test/resolver/baz/doom.js b/node_modules/resolve/test/resolver/baz/doom.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/baz/doom.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/baz/package.json b/node_modules/resolve/test/resolver/baz/package.json
deleted file mode 100644
index 2f77720..0000000
--- a/node_modules/resolve/test/resolver/baz/package.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "name": "baz",
- "main": "quux.js"
-}
diff --git a/node_modules/resolve/test/resolver/baz/quux.js b/node_modules/resolve/test/resolver/baz/quux.js
deleted file mode 100644
index bd816ea..0000000
--- a/node_modules/resolve/test/resolver/baz/quux.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 1;
diff --git a/node_modules/resolve/test/resolver/browser_field/a.js b/node_modules/resolve/test/resolver/browser_field/a.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/browser_field/a.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/browser_field/b.js b/node_modules/resolve/test/resolver/browser_field/b.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/browser_field/b.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/browser_field/package.json b/node_modules/resolve/test/resolver/browser_field/package.json
deleted file mode 100644
index bf406f0..0000000
--- a/node_modules/resolve/test/resolver/browser_field/package.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "browser_field",
- "main": "a",
- "browser": "b"
-}
diff --git a/node_modules/resolve/test/resolver/cup.coffee b/node_modules/resolve/test/resolver/cup.coffee
deleted file mode 100644
index 8b13789..0000000
--- a/node_modules/resolve/test/resolver/cup.coffee
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/node_modules/resolve/test/resolver/dot_main/index.js b/node_modules/resolve/test/resolver/dot_main/index.js
deleted file mode 100644
index bd816ea..0000000
--- a/node_modules/resolve/test/resolver/dot_main/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 1;
diff --git a/node_modules/resolve/test/resolver/dot_main/package.json b/node_modules/resolve/test/resolver/dot_main/package.json
deleted file mode 100644
index d7f4fc8..0000000
--- a/node_modules/resolve/test/resolver/dot_main/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "main": "."
-}
diff --git a/node_modules/resolve/test/resolver/dot_slash_main/index.js b/node_modules/resolve/test/resolver/dot_slash_main/index.js
deleted file mode 100644
index bd816ea..0000000
--- a/node_modules/resolve/test/resolver/dot_slash_main/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 1;
diff --git a/node_modules/resolve/test/resolver/dot_slash_main/package.json b/node_modules/resolve/test/resolver/dot_slash_main/package.json
deleted file mode 100644
index f51287b..0000000
--- a/node_modules/resolve/test/resolver/dot_slash_main/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "main": "./"
-}
diff --git a/node_modules/resolve/test/resolver/foo.js b/node_modules/resolve/test/resolver/foo.js
deleted file mode 100644
index bd816ea..0000000
--- a/node_modules/resolve/test/resolver/foo.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 1;
diff --git a/node_modules/resolve/test/resolver/incorrect_main/index.js b/node_modules/resolve/test/resolver/incorrect_main/index.js
deleted file mode 100644
index bc1fb0a..0000000
--- a/node_modules/resolve/test/resolver/incorrect_main/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// this is the actual main file 'index.js', not 'wrong.js' like the package.json would indicate
-module.exports = 1;
diff --git a/node_modules/resolve/test/resolver/incorrect_main/package.json b/node_modules/resolve/test/resolver/incorrect_main/package.json
deleted file mode 100644
index b718804..0000000
--- a/node_modules/resolve/test/resolver/incorrect_main/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "main": "wrong.js"
-}
diff --git a/node_modules/resolve/test/resolver/invalid_main/package.json b/node_modules/resolve/test/resolver/invalid_main/package.json
deleted file mode 100644
index 0cf8279..0000000
--- a/node_modules/resolve/test/resolver/invalid_main/package.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "invalid main",
- "main": [
- "why is this a thing",
- "srsly omg wtf"
- ]
-}
diff --git a/node_modules/resolve/test/resolver/mug.coffee b/node_modules/resolve/test/resolver/mug.coffee
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/mug.coffee
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/mug.js b/node_modules/resolve/test/resolver/mug.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/mug.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/multirepo/lerna.json b/node_modules/resolve/test/resolver/multirepo/lerna.json
deleted file mode 100644
index d6707ca..0000000
--- a/node_modules/resolve/test/resolver/multirepo/lerna.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "packages": [
- "packages/*"
- ],
- "version": "0.0.0"
-}
diff --git a/node_modules/resolve/test/resolver/multirepo/package.json b/node_modules/resolve/test/resolver/multirepo/package.json
deleted file mode 100644
index 8508f9d..0000000
--- a/node_modules/resolve/test/resolver/multirepo/package.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "monorepo-symlink-test",
- "private": true,
- "version": "0.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "postinstall": "lerna bootstrap",
- "test": "node packages/package-a"
- },
- "author": "",
- "license": "MIT",
- "dependencies": {
- "jquery": "^3.3.1",
- "resolve": "../../../"
- },
- "devDependencies": {
- "lerna": "^3.4.3"
- }
-}
diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js b/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js
deleted file mode 100644
index 8875a32..0000000
--- a/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
-'use strict';
-
-var assert = require('assert');
-var path = require('path');
-var resolve = require('resolve');
-
-var basedir = __dirname + '/node_modules/@my-scope/package-b';
-
-var expected = path.join(__dirname, '../../node_modules/jquery/dist/jquery.js');
-
-/*
- * preserveSymlinks === false
- * will search NPM package from
- * - packages/package-b/node_modules
- * - packages/node_modules
- * - node_modules
- */
-assert.equal(resolve.sync('jquery', { basedir: basedir, preserveSymlinks: false }), expected);
-assert.equal(resolve.sync('../../node_modules/jquery', { basedir: basedir, preserveSymlinks: false }), expected);
-
-/*
- * preserveSymlinks === true
- * will search NPM package from
- * - packages/package-a/node_modules/@my-scope/packages/package-b/node_modules
- * - packages/package-a/node_modules/@my-scope/packages/node_modules
- * - packages/package-a/node_modules/@my-scope/node_modules
- * - packages/package-a/node_modules/node_modules
- * - packages/package-a/node_modules
- * - packages/node_modules
- * - node_modules
- */
-assert.equal(resolve.sync('jquery', { basedir: basedir, preserveSymlinks: true }), expected);
-assert.equal(resolve.sync('../../../../../node_modules/jquery', { basedir: basedir, preserveSymlinks: true }), expected);
-
-console.log(' * all monorepo paths successfully resolved through symlinks');
diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json b/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json
deleted file mode 100644
index 204de51..0000000
--- a/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "@my-scope/package-a",
- "version": "0.0.0",
- "private": true,
- "description": "",
- "license": "MIT",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: run tests from root\" && exit 1"
- },
- "dependencies": {
- "@my-scope/package-b": "^0.0.0"
- }
-}
diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js b/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json b/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json
deleted file mode 100644
index f57c3b5..0000000
--- a/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "name": "@my-scope/package-b",
- "private": true,
- "version": "0.0.0",
- "description": "",
- "license": "MIT",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: run tests from root\" && exit 1"
- },
- "dependencies": {
- "@my-scope/package-a": "^0.0.0"
- }
-}
diff --git a/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js b/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js
deleted file mode 100644
index 9b4846a..0000000
--- a/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var a = require.resolve('buffer/').replace(process.cwd(), '$CWD');
-var b;
-var c;
-
-var test = function test() {
- console.log(a, ': require.resolve, preserveSymlinks ' + (process.execArgv.indexOf('preserve-symlinks') > -1 ? 'true' : 'false'));
- console.log(b, ': preserveSymlinks true');
- console.log(c, ': preserveSymlinks false');
-
- if (a !== b && a !== c) {
- throw 'async: no match';
- }
- console.log('async: success! a matched either b or c\n');
-};
-
-require('resolve')('buffer/', { preserveSymlinks: true }, function (err, result) {
- if (err) { throw err; }
- b = result.replace(process.cwd(), '$CWD');
- if (b && c) { test(); }
-});
-require('resolve')('buffer/', { preserveSymlinks: false }, function (err, result) {
- if (err) { throw err; }
- c = result.replace(process.cwd(), '$CWD');
- if (b && c) { test(); }
-});
-
diff --git a/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json b/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json
deleted file mode 100644
index acfe9e9..0000000
--- a/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "mylib",
- "version": "0.0.0",
- "description": "",
- "private": true,
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "buffer": "*"
- }
-}
diff --git a/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js b/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
deleted file mode 100644
index 3283efc..0000000
--- a/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var a = require.resolve('buffer/').replace(process.cwd(), '$CWD');
-var b = require('resolve').sync('buffer/', { preserveSymlinks: true }).replace(process.cwd(), '$CWD');
-var c = require('resolve').sync('buffer/', { preserveSymlinks: false }).replace(process.cwd(), '$CWD');
-
-console.log(a, ': require.resolve, preserveSymlinks ' + (process.execArgv.indexOf('preserve-symlinks') > -1 ? 'true' : 'false'));
-console.log(b, ': preserveSymlinks true');
-console.log(c, ': preserveSymlinks false');
-
-if (a !== b && a !== c) {
- throw 'sync: no match';
-}
-console.log('sync: success! a matched either b or c\n');
diff --git a/node_modules/resolve/test/resolver/other_path/lib/other-lib.js b/node_modules/resolve/test/resolver/other_path/lib/other-lib.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/other_path/lib/other-lib.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/other_path/root.js b/node_modules/resolve/test/resolver/other_path/root.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/other_path/root.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/quux/foo/index.js b/node_modules/resolve/test/resolver/quux/foo/index.js
deleted file mode 100644
index bd816ea..0000000
--- a/node_modules/resolve/test/resolver/quux/foo/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 1;
diff --git a/node_modules/resolve/test/resolver/same_names/foo.js b/node_modules/resolve/test/resolver/same_names/foo.js
deleted file mode 100644
index 888cae3..0000000
--- a/node_modules/resolve/test/resolver/same_names/foo.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 42;
diff --git a/node_modules/resolve/test/resolver/same_names/foo/index.js b/node_modules/resolve/test/resolver/same_names/foo/index.js
deleted file mode 100644
index bd816ea..0000000
--- a/node_modules/resolve/test/resolver/same_names/foo/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 1;
diff --git a/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js b/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep b/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep
+++ /dev/null
diff --git a/node_modules/resolve/test/resolver/symlinked/package/bar.js b/node_modules/resolve/test/resolver/symlinked/package/bar.js
deleted file mode 100644
index cb1c2c0..0000000
--- a/node_modules/resolve/test/resolver/symlinked/package/bar.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = 'bar';
diff --git a/node_modules/resolve/test/resolver/symlinked/package/package.json b/node_modules/resolve/test/resolver/symlinked/package/package.json
deleted file mode 100644
index 8e1b585..0000000
--- a/node_modules/resolve/test/resolver/symlinked/package/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "main": "bar.js"
-} \ No newline at end of file
diff --git a/node_modules/resolve/test/resolver/without_basedir/main.js b/node_modules/resolve/test/resolver/without_basedir/main.js
deleted file mode 100644
index 5b31975..0000000
--- a/node_modules/resolve/test/resolver/without_basedir/main.js
+++ /dev/null
@@ -1,5 +0,0 @@
-var resolve = require('../../../');
-
-module.exports = function (t, cb) {
- resolve('mymodule', null, cb);
-};
diff --git a/node_modules/resolve/test/resolver_sync.js b/node_modules/resolve/test/resolver_sync.js
deleted file mode 100644
index 3082c96..0000000
--- a/node_modules/resolve/test/resolver_sync.js
+++ /dev/null
@@ -1,358 +0,0 @@
-var path = require('path');
-var test = require('tape');
-var resolve = require('../');
-
-test('foo', function (t) {
- var dir = path.join(__dirname, 'resolver');
-
- t.equal(
- resolve.sync('./foo', { basedir: dir }),
- path.join(dir, 'foo.js')
- );
-
- t.equal(
- resolve.sync('./foo.js', { basedir: dir }),
- path.join(dir, 'foo.js')
- );
-
- t.equal(
- resolve.sync('./foo.js', { basedir: dir, filename: path.join(dir, 'bar.js') }),
- path.join(dir, 'foo.js')
- );
-
- t.throws(function () {
- resolve.sync('foo', { basedir: dir });
- });
-
- // Test that filename is reported as the "from" value when passed.
- t.throws(
- function () {
- resolve.sync('foo', { basedir: dir, filename: path.join(dir, 'bar.js') });
- },
- {
- name: 'Error',
- message: "Cannot find module 'foo' from '" + path.join(dir, 'bar.js') + "'"
- }
- );
-
- t.end();
-});
-
-test('bar', function (t) {
- var dir = path.join(__dirname, 'resolver');
-
- t.equal(
- resolve.sync('foo', { basedir: path.join(dir, 'bar') }),
- path.join(dir, 'bar/node_modules/foo/index.js')
- );
- t.end();
-});
-
-test('baz', function (t) {
- var dir = path.join(__dirname, 'resolver');
-
- t.equal(
- resolve.sync('./baz', { basedir: dir }),
- path.join(dir, 'baz/quux.js')
- );
- t.end();
-});
-
-test('biz', function (t) {
- var dir = path.join(__dirname, 'resolver/biz/node_modules');
- t.equal(
- resolve.sync('./grux', { basedir: dir }),
- path.join(dir, 'grux/index.js')
- );
-
- t.equal(
- resolve.sync('tiv', { basedir: path.join(dir, 'grux') }),
- path.join(dir, 'tiv/index.js')
- );
-
- t.equal(
- resolve.sync('grux', { basedir: path.join(dir, 'tiv') }),
- path.join(dir, 'grux/index.js')
- );
- t.end();
-});
-
-test('normalize', function (t) {
- var dir = path.join(__dirname, 'resolver/biz/node_modules/grux');
- t.equal(
- resolve.sync('../grux', { basedir: dir }),
- path.join(dir, 'index.js')
- );
- t.end();
-});
-
-test('cup', function (t) {
- var dir = path.join(__dirname, 'resolver');
- t.equal(
- resolve.sync('./cup', {
- basedir: dir,
- extensions: ['.js', '.coffee']
- }),
- path.join(dir, 'cup.coffee')
- );
-
- t.equal(
- resolve.sync('./cup.coffee', { basedir: dir }),
- path.join(dir, 'cup.coffee')
- );
-
- t.throws(function () {
- resolve.sync('./cup', {
- basedir: dir,
- extensions: ['.js']
- });
- });
-
- t.end();
-});
-
-test('mug', function (t) {
- var dir = path.join(__dirname, 'resolver');
- t.equal(
- resolve.sync('./mug', { basedir: dir }),
- path.join(dir, 'mug.js')
- );
-
- t.equal(
- resolve.sync('./mug', {
- basedir: dir,
- extensions: ['.coffee', '.js']
- }),
- path.join(dir, 'mug.coffee')
- );
-
- t.equal(
- resolve.sync('./mug', {
- basedir: dir,
- extensions: ['.js', '.coffee']
- }),
- path.join(dir, 'mug.js')
- );
-
- t.end();
-});
-
-test('other path', function (t) {
- var resolverDir = path.join(__dirname, 'resolver');
- var dir = path.join(resolverDir, 'bar');
- var otherDir = path.join(resolverDir, 'other_path');
-
- t.equal(
- resolve.sync('root', {
- basedir: dir,
- paths: [otherDir]
- }),
- path.join(resolverDir, 'other_path/root.js')
- );
-
- t.equal(
- resolve.sync('lib/other-lib', {
- basedir: dir,
- paths: [otherDir]
- }),
- path.join(resolverDir, 'other_path/lib/other-lib.js')
- );
-
- t.throws(function () {
- resolve.sync('root', { basedir: dir });
- });
-
- t.throws(function () {
- resolve.sync('zzz', {
- basedir: dir,
- paths: [otherDir]
- });
- });
-
- t.end();
-});
-
-test('path iterator', function (t) {
- var resolverDir = path.join(__dirname, 'resolver');
-
- var exactIterator = function (x, start, getPackageCandidates, opts) {
- return [path.join(resolverDir, x)];
- };
-
- t.equal(
- resolve.sync('baz', { packageIterator: exactIterator }),
- path.join(resolverDir, 'baz/quux.js')
- );
-
- t.end();
-});
-
-test('incorrect main', function (t) {
- var resolverDir = path.join(__dirname, 'resolver');
- var dir = path.join(resolverDir, 'incorrect_main');
-
- t.equal(
- resolve.sync('./incorrect_main', { basedir: resolverDir }),
- path.join(dir, 'index.js')
- );
-
- t.end();
-});
-
-var stubStatSync = function stubStatSync(fn) {
- var fs = require('fs');
- var statSync = fs.statSync;
- try {
- fs.statSync = function () {
- throw new EvalError('Unknown Error');
- };
- return fn();
- } finally {
- fs.statSync = statSync;
- }
-};
-
-test('#79 - re-throw non ENOENT errors from stat', function (t) {
- var dir = path.join(__dirname, 'resolver');
-
- stubStatSync(function () {
- t.throws(function () {
- resolve.sync('foo', { basedir: dir });
- }, /Unknown Error/);
- });
-
- t.end();
-});
-
-test('#52 - incorrectly resolves module-paths like "./someFolder/" when there is a file of the same name', function (t) {
- var dir = path.join(__dirname, 'resolver');
-
- t.equal(
- resolve.sync('./foo', { basedir: path.join(dir, 'same_names') }),
- path.join(dir, 'same_names/foo.js')
- );
- t.equal(
- resolve.sync('./foo/', { basedir: path.join(dir, 'same_names') }),
- path.join(dir, 'same_names/foo/index.js')
- );
- t.end();
-});
-
-test('#211 - incorrectly resolves module-paths like "." when from inside a folder with a sibling file of the same name', function (t) {
- var dir = path.join(__dirname, 'resolver');
-
- t.equal(
- resolve.sync('./', { basedir: path.join(dir, 'same_names/foo') }),
- path.join(dir, 'same_names/foo/index.js')
- );
- t.equal(
- resolve.sync('.', { basedir: path.join(dir, 'same_names/foo') }),
- path.join(dir, 'same_names/foo/index.js')
- );
- t.end();
-});
-
-test('sync: #121 - treating an existing file as a dir when no basedir', function (t) {
- var testFile = path.basename(__filename);
-
- t.test('sanity check', function (st) {
- st.equal(
- resolve.sync('./' + testFile),
- __filename,
- 'sanity check'
- );
- st.end();
- });
-
- t.test('with a fake directory', function (st) {
- function run() { return resolve.sync('./' + testFile + '/blah'); }
-
- st.throws(run, 'throws an error');
-
- try {
- run();
- } catch (e) {
- st.equal(e.code, 'MODULE_NOT_FOUND', 'error code matches require.resolve');
- st.equal(
- e.message,
- 'Cannot find module \'./' + testFile + '/blah\' from \'' + __dirname + '\'',
- 'can not find nonexistent module'
- );
- }
-
- st.end();
- });
-
- t.end();
-});
-
-test('sync dot main', function (t) {
- var start = new Date();
- t.equal(resolve.sync('./resolver/dot_main'), path.join(__dirname, 'resolver/dot_main/index.js'));
- t.ok(new Date() - start < 50, 'resolve.sync timedout');
- t.end();
-});
-
-test('sync dot slash main', function (t) {
- var start = new Date();
- t.equal(resolve.sync('./resolver/dot_slash_main'), path.join(__dirname, 'resolver/dot_slash_main/index.js'));
- t.ok(new Date() - start < 50, 'resolve.sync timedout');
- t.end();
-});
-
-test('not a directory', function (t) {
- var path = './foo';
- try {
- resolve.sync(path, { basedir: __filename });
- t.fail();
- } catch (err) {
- t.ok(err, 'a non-directory errors');
- t.equal(err && err.message, 'Cannot find module \'' + path + "' from '" + __filename + "'");
- t.equal(err && err.code, 'MODULE_NOT_FOUND');
- }
- t.end();
-});
-
-test('non-string "main" field in package.json', function (t) {
- var dir = path.join(__dirname, 'resolver');
- try {
- var result = resolve.sync('./invalid_main', { basedir: dir });
- t.equal(result, undefined, 'result should not exist');
- t.fail('should not get here');
- } catch (err) {
- t.ok(err, 'errors on non-string main');
- t.equal(err.message, 'package “invalid main” `main` must be a string');
- t.equal(err.code, 'INVALID_PACKAGE_MAIN');
- }
- t.end();
-});
-
-test('non-string "main" field in package.json', function (t) {
- var dir = path.join(__dirname, 'resolver');
- try {
- var result = resolve.sync('./invalid_main', { basedir: dir });
- t.equal(result, undefined, 'result should not exist');
- t.fail('should not get here');
- } catch (err) {
- t.ok(err, 'errors on non-string main');
- t.equal(err.message, 'package “invalid main” `main` must be a string');
- t.equal(err.code, 'INVALID_PACKAGE_MAIN');
- }
- t.end();
-});
-
-test('browser field in package.json', function (t) {
- var dir = path.join(__dirname, 'resolver');
- var res = resolve.sync('./browser_field', {
- basedir: dir,
- packageFilter: function packageFilter(pkg) {
- if (pkg.browser) {
- pkg.main = pkg.browser; // eslint-disable-line no-param-reassign
- delete pkg.browser; // eslint-disable-line no-param-reassign
- }
- return pkg;
- }
- });
- t.equal(res, path.join(dir, 'browser_field', 'b.js'));
- t.end();
-});
diff --git a/node_modules/resolve/test/shadowed_core.js b/node_modules/resolve/test/shadowed_core.js
deleted file mode 100644
index 98c52a7..0000000
--- a/node_modules/resolve/test/shadowed_core.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var test = require('tape');
-var resolve = require('../');
-var path = require('path');
-
-test('shadowed core modules still return core module', function (t) {
- t.plan(2);
-
- resolve('util', { basedir: path.join(__dirname, 'shadowed_core') }, function (err, res) {
- t.ifError(err);
- t.equal(res, 'util');
- });
-});
-
-test('shadowed core modules still return core module [sync]', function (t) {
- t.plan(1);
-
- var res = resolve.sync('util', { basedir: path.join(__dirname, 'shadowed_core') });
-
- t.equal(res, 'util');
-});
-
-test('shadowed core modules return shadow when appending `/`', function (t) {
- t.plan(2);
-
- resolve('util/', { basedir: path.join(__dirname, 'shadowed_core') }, function (err, res) {
- t.ifError(err);
- t.equal(res, path.join(__dirname, 'shadowed_core/node_modules/util/index.js'));
- });
-});
-
-test('shadowed core modules return shadow when appending `/` [sync]', function (t) {
- t.plan(1);
-
- var res = resolve.sync('util/', { basedir: path.join(__dirname, 'shadowed_core') });
-
- t.equal(res, path.join(__dirname, 'shadowed_core/node_modules/util/index.js'));
-});
-
diff --git a/node_modules/resolve/test/shadowed_core/node_modules/util/index.js b/node_modules/resolve/test/shadowed_core/node_modules/util/index.js
deleted file mode 100644
index e69de29..0000000
--- a/node_modules/resolve/test/shadowed_core/node_modules/util/index.js
+++ /dev/null
diff --git a/node_modules/resolve/test/subdirs.js b/node_modules/resolve/test/subdirs.js
deleted file mode 100644
index b7b8450..0000000
--- a/node_modules/resolve/test/subdirs.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var test = require('tape');
-var resolve = require('../');
-var path = require('path');
-
-test('subdirs', function (t) {
- t.plan(2);
-
- var dir = path.join(__dirname, '/subdirs');
- resolve('a/b/c/x.json', { basedir: dir }, function (err, res) {
- t.ifError(err);
- t.equal(res, path.join(dir, 'node_modules/a/b/c/x.json'));
- });
-});
diff --git a/node_modules/resolve/test/symlinks.js b/node_modules/resolve/test/symlinks.js
deleted file mode 100644
index 152d14e..0000000
--- a/node_modules/resolve/test/symlinks.js
+++ /dev/null
@@ -1,173 +0,0 @@
-var path = require('path');
-var fs = require('fs');
-var test = require('tape');
-var map = require('array.prototype.map');
-var resolve = require('../');
-
-var symlinkDir = path.join(__dirname, 'resolver', 'symlinked', 'symlink');
-var packageDir = path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'package');
-var modADir = path.join(__dirname, 'symlinks', 'source', 'node_modules', 'mod-a');
-var symlinkModADir = path.join(__dirname, 'symlinks', 'dest', 'node_modules', 'mod-a');
-try {
- fs.unlinkSync(symlinkDir);
-} catch (err) {}
-try {
- fs.unlinkSync(packageDir);
-} catch (err) {}
-try {
- fs.unlinkSync(modADir);
-} catch (err) {}
-try {
- fs.unlinkSync(symlinkModADir);
-} catch (err) {}
-
-try {
- fs.symlinkSync('./_/symlink_target', symlinkDir, 'dir');
-} catch (err) {
- // if fails then it is probably on Windows and lets try to create a junction
- fs.symlinkSync(path.join(__dirname, 'resolver', 'symlinked', '_', 'symlink_target') + '\\', symlinkDir, 'junction');
-}
-try {
- fs.symlinkSync('../../package', packageDir, 'dir');
-} catch (err) {
- // if fails then it is probably on Windows and lets try to create a junction
- fs.symlinkSync(path.join(__dirname, '..', '..', 'package') + '\\', packageDir, 'junction');
-}
-try {
- fs.symlinkSync('../../source/node_modules/mod-a', symlinkModADir, 'dir');
-} catch (err) {
- // if fails then it is probably on Windows and lets try to create a junction
- fs.symlinkSync(path.join(__dirname, '..', '..', 'source', 'node_modules', 'mod-a') + '\\', symlinkModADir, 'junction');
-}
-
-test('symlink', function (t) {
- t.plan(2);
-
- resolve('foo', { basedir: symlinkDir, preserveSymlinks: false }, function (err, res, pkg) {
- t.error(err);
- t.equal(res, path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js'));
- });
-});
-
-test('sync symlink when preserveSymlinks = true', function (t) {
- t.plan(4);
-
- resolve('foo', { basedir: symlinkDir }, function (err, res, pkg) {
- t.ok(err, 'there is an error');
- t.notOk(res, 'no result');
-
- t.equal(err && err.code, 'MODULE_NOT_FOUND', 'error code matches require.resolve');
- t.equal(
- err && err.message,
- 'Cannot find module \'foo\' from \'' + symlinkDir + '\'',
- 'can not find nonexistent module'
- );
- });
-});
-
-test('sync symlink', function (t) {
- var start = new Date();
- t.doesNotThrow(function () {
- t.equal(resolve.sync('foo', { basedir: symlinkDir, preserveSymlinks: false }), path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js'));
- });
- t.ok(new Date() - start < 50, 'resolve.sync timedout');
- t.end();
-});
-
-test('sync symlink when preserveSymlinks = true', function (t) {
- t.throws(function () {
- resolve.sync('foo', { basedir: symlinkDir });
- }, /Cannot find module 'foo'/);
- t.end();
-});
-
-test('sync symlink from node_modules to other dir when preserveSymlinks = false', function (t) {
- var basedir = path.join(__dirname, 'resolver', 'symlinked', '_');
- var fn = resolve.sync('package', { basedir: basedir, preserveSymlinks: false });
-
- t.equal(fn, path.resolve(__dirname, 'resolver/symlinked/package/bar.js'));
- t.end();
-});
-
-test('async symlink from node_modules to other dir when preserveSymlinks = false', function (t) {
- t.plan(2);
- var basedir = path.join(__dirname, 'resolver', 'symlinked', '_');
- resolve('package', { basedir: basedir, preserveSymlinks: false }, function (err, result) {
- t.notOk(err, 'no error');
- t.equal(result, path.resolve(__dirname, 'resolver/symlinked/package/bar.js'));
- });
-});
-
-test('packageFilter', function (t) {
- function relative(x) {
- return path.relative(__dirname, x);
- }
-
- function testPackageFilter(preserveSymlinks) {
- return function (st) {
- st.plan('is 1.x' ? 3 : 5); // eslint-disable-line no-constant-condition
-
- var destMain = 'symlinks/dest/node_modules/mod-a/index.js';
- var destPkg = 'symlinks/dest/node_modules/mod-a/package.json';
- var sourceMain = 'symlinks/source/node_modules/mod-a/index.js';
- var sourcePkg = 'symlinks/source/node_modules/mod-a/package.json';
- var destDir = path.join(__dirname, 'symlinks', 'dest');
-
- /* eslint multiline-comment-style: 0 */
- /* v2.x will restore these tests
- var packageFilterPath = [];
- var actualPath = resolve.sync('mod-a', {
- basedir: destDir,
- preserveSymlinks: preserveSymlinks,
- packageFilter: function (pkg, pkgfile, dir) {
- packageFilterPath.push(pkgfile);
- }
- });
- st.equal(
- relative(actualPath),
- path.normalize(preserveSymlinks ? destMain : sourceMain),
- 'sync: actual path is correct'
- );
- st.deepEqual(
- map(packageFilterPath, relative),
- map(preserveSymlinks ? [destPkg, destPkg] : [sourcePkg, sourcePkg], path.normalize),
- 'sync: packageFilter pkgfile arg is correct'
- );
- */
-
- var asyncPackageFilterPath = [];
- resolve(
- 'mod-a',
- {
- basedir: destDir,
- preserveSymlinks: preserveSymlinks,
- packageFilter: function (pkg, pkgfile) {
- asyncPackageFilterPath.push(pkgfile);
- }
- },
- function (err, actualPath) {
- st.error(err, 'no error');
- st.equal(
- relative(actualPath),
- path.normalize(preserveSymlinks ? destMain : sourceMain),
- 'async: actual path is correct'
- );
- st.deepEqual(
- map(asyncPackageFilterPath, relative),
- map(
- preserveSymlinks ? [destPkg, destPkg, destPkg] : [sourcePkg, sourcePkg, sourcePkg],
- path.normalize
- ),
- 'async: packageFilter pkgfile arg is correct'
- );
- }
- );
- };
- }
-
- t.test('preserveSymlinks: false', testPackageFilter(false));
-
- t.test('preserveSymlinks: true', testPackageFilter(true));
-
- t.end();
-});
diff --git a/node_modules/rimraf/LICENSE b/node_modules/rimraf/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/rimraf/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/rimraf/README.md b/node_modules/rimraf/README.md
deleted file mode 100644
index 423b8cf..0000000
--- a/node_modules/rimraf/README.md
+++ /dev/null
@@ -1,101 +0,0 @@
-[![Build Status](https://travis-ci.org/isaacs/rimraf.svg?branch=master)](https://travis-ci.org/isaacs/rimraf) [![Dependency Status](https://david-dm.org/isaacs/rimraf.svg)](https://david-dm.org/isaacs/rimraf) [![devDependency Status](https://david-dm.org/isaacs/rimraf/dev-status.svg)](https://david-dm.org/isaacs/rimraf#info=devDependencies)
-
-The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
-
-Install with `npm install rimraf`, or just drop rimraf.js somewhere.
-
-## API
-
-`rimraf(f, [opts], callback)`
-
-The first parameter will be interpreted as a globbing pattern for files. If you
-want to disable globbing you can do so with `opts.disableGlob` (defaults to
-`false`). This might be handy, for instance, if you have filenames that contain
-globbing wildcard characters.
-
-The callback will be called with an error if there is one. Certain
-errors are handled for you:
-
-* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of
- `opts.maxBusyTries` times before giving up, adding 100ms of wait
- between each attempt. The default `maxBusyTries` is 3.
-* `ENOENT` - If the file doesn't exist, rimraf will return
- successfully, since your desired outcome is already the case.
-* `EMFILE` - Since `readdir` requires opening a file descriptor, it's
- possible to hit `EMFILE` if too many file descriptors are in use.
- In the sync case, there's nothing to be done for this. But in the
- async case, rimraf will gradually back off with timeouts up to
- `opts.emfileWait` ms, which defaults to 1000.
-
-## options
-
-* unlink, chmod, stat, lstat, rmdir, readdir,
- unlinkSync, chmodSync, statSync, lstatSync, rmdirSync, readdirSync
-
- In order to use a custom file system library, you can override
- specific fs functions on the options object.
-
- If any of these functions are present on the options object, then
- the supplied function will be used instead of the default fs
- method.
-
- Sync methods are only relevant for `rimraf.sync()`, of course.
-
- For example:
-
- ```javascript
- var myCustomFS = require('some-custom-fs')
-
- rimraf('some-thing', myCustomFS, callback)
- ```
-
-* maxBusyTries
-
- If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error code is encountered
- on Windows systems, then rimraf will retry with a linear backoff
- wait of 100ms longer on each try. The default maxBusyTries is 3.
-
- Only relevant for async usage.
-
-* emfileWait
-
- If an `EMFILE` error is encountered, then rimraf will retry
- repeatedly with a linear backoff of 1ms longer on each try, until
- the timeout counter hits this max. The default limit is 1000.
-
- If you repeatedly encounter `EMFILE` errors, then consider using
- [graceful-fs](http://npm.im/graceful-fs) in your program.
-
- Only relevant for async usage.
-
-* glob
-
- Set to `false` to disable [glob](http://npm.im/glob) pattern
- matching.
-
- Set to an object to pass options to the glob module. The default
- glob options are `{ nosort: true, silent: true }`.
-
- Glob version 6 is used in this module.
-
- Relevant for both sync and async usage.
-
-* disableGlob
-
- Set to any non-falsey value to disable globbing entirely.
- (Equivalent to setting `glob: false`.)
-
-## rimraf.sync
-
-It can remove stuff synchronously, too. But that's not so good. Use
-the async API. It's better.
-
-## CLI
-
-If installed with `npm install rimraf -g` it can be used as a global
-command `rimraf <path> [<path> ...]` which is useful for cross platform support.
-
-## mkdirp
-
-If you need to create a directory recursively, check out
-[mkdirp](https://github.com/substack/node-mkdirp).
diff --git a/node_modules/rimraf/bin.js b/node_modules/rimraf/bin.js
deleted file mode 100755
index 0d1e17b..0000000
--- a/node_modules/rimraf/bin.js
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env node
-
-var rimraf = require('./')
-
-var help = false
-var dashdash = false
-var noglob = false
-var args = process.argv.slice(2).filter(function(arg) {
- if (dashdash)
- return !!arg
- else if (arg === '--')
- dashdash = true
- else if (arg === '--no-glob' || arg === '-G')
- noglob = true
- else if (arg === '--glob' || arg === '-g')
- noglob = false
- else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
- help = true
- else
- return !!arg
-})
-
-if (help || args.length === 0) {
- // If they didn't ask for help, then this is not a "success"
- var log = help ? console.log : console.error
- log('Usage: rimraf <path> [<path> ...]')
- log('')
- log(' Deletes all files and folders at "path" recursively.')
- log('')
- log('Options:')
- log('')
- log(' -h, --help Display this usage info')
- log(' -G, --no-glob Do not expand glob patterns in arguments')
- log(' -g, --glob Expand glob patterns in arguments (default)')
- process.exit(help ? 0 : 1)
-} else
- go(0)
-
-function go (n) {
- if (n >= args.length)
- return
- var options = {}
- if (noglob)
- options = { glob: false }
- rimraf(args[n], options, function (er) {
- if (er)
- throw er
- go(n+1)
- })
-}
diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json
deleted file mode 100644
index ffd33f6..0000000
--- a/node_modules/rimraf/package.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "_from": "rimraf@2",
- "_id": "rimraf@2.7.1",
- "_inBundle": false,
- "_integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
- "_location": "/rimraf",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "rimraf@2",
- "name": "rimraf",
- "escapedName": "rimraf",
- "rawSpec": "2",
- "saveSpec": null,
- "fetchSpec": "2"
- },
- "_requiredBy": [
- "/fstream",
- "/node-gyp"
- ],
- "_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
- "_shasum": "35797f13a7fdadc566142c29d4f07ccad483e3ec",
- "_spec": "rimraf@2",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/node-gyp",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bin": {
- "rimraf": "bin.js"
- },
- "bugs": {
- "url": "https://github.com/isaacs/rimraf/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "glob": "^7.1.3"
- },
- "deprecated": false,
- "description": "A deep deletion module for node (like `rm -rf`)",
- "devDependencies": {
- "mkdirp": "^0.5.1",
- "tap": "^12.1.1"
- },
- "files": [
- "LICENSE",
- "README.md",
- "bin.js",
- "rimraf.js"
- ],
- "homepage": "https://github.com/isaacs/rimraf#readme",
- "license": "ISC",
- "main": "rimraf.js",
- "name": "rimraf",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/rimraf.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test/*.js"
- },
- "version": "2.7.1"
-}
diff --git a/node_modules/rimraf/rimraf.js b/node_modules/rimraf/rimraf.js
deleted file mode 100644
index a90ad02..0000000
--- a/node_modules/rimraf/rimraf.js
+++ /dev/null
@@ -1,372 +0,0 @@
-module.exports = rimraf
-rimraf.sync = rimrafSync
-
-var assert = require("assert")
-var path = require("path")
-var fs = require("fs")
-var glob = undefined
-try {
- glob = require("glob")
-} catch (_err) {
- // treat glob as optional.
-}
-var _0666 = parseInt('666', 8)
-
-var defaultGlobOpts = {
- nosort: true,
- silent: true
-}
-
-// for EMFILE handling
-var timeout = 0
-
-var isWindows = (process.platform === "win32")
-
-function defaults (options) {
- var methods = [
- 'unlink',
- 'chmod',
- 'stat',
- 'lstat',
- 'rmdir',
- 'readdir'
- ]
- methods.forEach(function(m) {
- options[m] = options[m] || fs[m]
- m = m + 'Sync'
- options[m] = options[m] || fs[m]
- })
-
- options.maxBusyTries = options.maxBusyTries || 3
- options.emfileWait = options.emfileWait || 1000
- if (options.glob === false) {
- options.disableGlob = true
- }
- if (options.disableGlob !== true && glob === undefined) {
- throw Error('glob dependency not found, set `options.disableGlob = true` if intentional')
- }
- options.disableGlob = options.disableGlob || false
- options.glob = options.glob || defaultGlobOpts
-}
-
-function rimraf (p, options, cb) {
- if (typeof options === 'function') {
- cb = options
- options = {}
- }
-
- assert(p, 'rimraf: missing path')
- assert.equal(typeof p, 'string', 'rimraf: path should be a string')
- assert.equal(typeof cb, 'function', 'rimraf: callback function required')
- assert(options, 'rimraf: invalid options argument provided')
- assert.equal(typeof options, 'object', 'rimraf: options should be object')
-
- defaults(options)
-
- var busyTries = 0
- var errState = null
- var n = 0
-
- if (options.disableGlob || !glob.hasMagic(p))
- return afterGlob(null, [p])
-
- options.lstat(p, function (er, stat) {
- if (!er)
- return afterGlob(null, [p])
-
- glob(p, options.glob, afterGlob)
- })
-
- function next (er) {
- errState = errState || er
- if (--n === 0)
- cb(errState)
- }
-
- function afterGlob (er, results) {
- if (er)
- return cb(er)
-
- n = results.length
- if (n === 0)
- return cb()
-
- results.forEach(function (p) {
- rimraf_(p, options, function CB (er) {
- if (er) {
- if ((er.code === "EBUSY" || er.code === "ENOTEMPTY" || er.code === "EPERM") &&
- busyTries < options.maxBusyTries) {
- busyTries ++
- var time = busyTries * 100
- // try again, with the same exact callback as this one.
- return setTimeout(function () {
- rimraf_(p, options, CB)
- }, time)
- }
-
- // this one won't happen if graceful-fs is used.
- if (er.code === "EMFILE" && timeout < options.emfileWait) {
- return setTimeout(function () {
- rimraf_(p, options, CB)
- }, timeout ++)
- }
-
- // already gone
- if (er.code === "ENOENT") er = null
- }
-
- timeout = 0
- next(er)
- })
- })
- }
-}
-
-// Two possible strategies.
-// 1. Assume it's a file. unlink it, then do the dir stuff on EPERM or EISDIR
-// 2. Assume it's a directory. readdir, then do the file stuff on ENOTDIR
-//
-// Both result in an extra syscall when you guess wrong. However, there
-// are likely far more normal files in the world than directories. This
-// is based on the assumption that a the average number of files per
-// directory is >= 1.
-//
-// If anyone ever complains about this, then I guess the strategy could
-// be made configurable somehow. But until then, YAGNI.
-function rimraf_ (p, options, cb) {
- assert(p)
- assert(options)
- assert(typeof cb === 'function')
-
- // sunos lets the root user unlink directories, which is... weird.
- // so we have to lstat here and make sure it's not a dir.
- options.lstat(p, function (er, st) {
- if (er && er.code === "ENOENT")
- return cb(null)
-
- // Windows can EPERM on stat. Life is suffering.
- if (er && er.code === "EPERM" && isWindows)
- fixWinEPERM(p, options, er, cb)
-
- if (st && st.isDirectory())
- return rmdir(p, options, er, cb)
-
- options.unlink(p, function (er) {
- if (er) {
- if (er.code === "ENOENT")
- return cb(null)
- if (er.code === "EPERM")
- return (isWindows)
- ? fixWinEPERM(p, options, er, cb)
- : rmdir(p, options, er, cb)
- if (er.code === "EISDIR")
- return rmdir(p, options, er, cb)
- }
- return cb(er)
- })
- })
-}
-
-function fixWinEPERM (p, options, er, cb) {
- assert(p)
- assert(options)
- assert(typeof cb === 'function')
- if (er)
- assert(er instanceof Error)
-
- options.chmod(p, _0666, function (er2) {
- if (er2)
- cb(er2.code === "ENOENT" ? null : er)
- else
- options.stat(p, function(er3, stats) {
- if (er3)
- cb(er3.code === "ENOENT" ? null : er)
- else if (stats.isDirectory())
- rmdir(p, options, er, cb)
- else
- options.unlink(p, cb)
- })
- })
-}
-
-function fixWinEPERMSync (p, options, er) {
- assert(p)
- assert(options)
- if (er)
- assert(er instanceof Error)
-
- try {
- options.chmodSync(p, _0666)
- } catch (er2) {
- if (er2.code === "ENOENT")
- return
- else
- throw er
- }
-
- try {
- var stats = options.statSync(p)
- } catch (er3) {
- if (er3.code === "ENOENT")
- return
- else
- throw er
- }
-
- if (stats.isDirectory())
- rmdirSync(p, options, er)
- else
- options.unlinkSync(p)
-}
-
-function rmdir (p, options, originalEr, cb) {
- assert(p)
- assert(options)
- if (originalEr)
- assert(originalEr instanceof Error)
- assert(typeof cb === 'function')
-
- // try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
- // if we guessed wrong, and it's not a directory, then
- // raise the original error.
- options.rmdir(p, function (er) {
- if (er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM"))
- rmkids(p, options, cb)
- else if (er && er.code === "ENOTDIR")
- cb(originalEr)
- else
- cb(er)
- })
-}
-
-function rmkids(p, options, cb) {
- assert(p)
- assert(options)
- assert(typeof cb === 'function')
-
- options.readdir(p, function (er, files) {
- if (er)
- return cb(er)
- var n = files.length
- if (n === 0)
- return options.rmdir(p, cb)
- var errState
- files.forEach(function (f) {
- rimraf(path.join(p, f), options, function (er) {
- if (errState)
- return
- if (er)
- return cb(errState = er)
- if (--n === 0)
- options.rmdir(p, cb)
- })
- })
- })
-}
-
-// this looks simpler, and is strictly *faster*, but will
-// tie up the JavaScript thread and fail on excessively
-// deep directory trees.
-function rimrafSync (p, options) {
- options = options || {}
- defaults(options)
-
- assert(p, 'rimraf: missing path')
- assert.equal(typeof p, 'string', 'rimraf: path should be a string')
- assert(options, 'rimraf: missing options')
- assert.equal(typeof options, 'object', 'rimraf: options should be object')
-
- var results
-
- if (options.disableGlob || !glob.hasMagic(p)) {
- results = [p]
- } else {
- try {
- options.lstatSync(p)
- results = [p]
- } catch (er) {
- results = glob.sync(p, options.glob)
- }
- }
-
- if (!results.length)
- return
-
- for (var i = 0; i < results.length; i++) {
- var p = results[i]
-
- try {
- var st = options.lstatSync(p)
- } catch (er) {
- if (er.code === "ENOENT")
- return
-
- // Windows can EPERM on stat. Life is suffering.
- if (er.code === "EPERM" && isWindows)
- fixWinEPERMSync(p, options, er)
- }
-
- try {
- // sunos lets the root user unlink directories, which is... weird.
- if (st && st.isDirectory())
- rmdirSync(p, options, null)
- else
- options.unlinkSync(p)
- } catch (er) {
- if (er.code === "ENOENT")
- return
- if (er.code === "EPERM")
- return isWindows ? fixWinEPERMSync(p, options, er) : rmdirSync(p, options, er)
- if (er.code !== "EISDIR")
- throw er
-
- rmdirSync(p, options, er)
- }
- }
-}
-
-function rmdirSync (p, options, originalEr) {
- assert(p)
- assert(options)
- if (originalEr)
- assert(originalEr instanceof Error)
-
- try {
- options.rmdirSync(p)
- } catch (er) {
- if (er.code === "ENOENT")
- return
- if (er.code === "ENOTDIR")
- throw originalEr
- if (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM")
- rmkidsSync(p, options)
- }
-}
-
-function rmkidsSync (p, options) {
- assert(p)
- assert(options)
- options.readdirSync(p).forEach(function (f) {
- rimrafSync(path.join(p, f), options)
- })
-
- // We only end up here once we got ENOTEMPTY at least once, and
- // at this point, we are guaranteed to have removed all the kids.
- // So, we know that it won't be ENOENT or ENOTDIR or anything else.
- // try really hard to delete stuff on windows, because it has a
- // PROFOUNDLY annoying habit of not closing handles promptly when
- // files are deleted, resulting in spurious ENOTEMPTY errors.
- var retries = isWindows ? 100 : 1
- var i = 0
- do {
- var threw = true
- try {
- var ret = options.rmdirSync(p, options)
- threw = false
- return ret
- } finally {
- if (++i < retries && threw)
- continue
- }
- } while (true)
-}
diff --git a/node_modules/safe-buffer/LICENSE b/node_modules/safe-buffer/LICENSE
deleted file mode 100644
index 0c068ce..0000000
--- a/node_modules/safe-buffer/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Feross Aboukhadijeh
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/safe-buffer/README.md b/node_modules/safe-buffer/README.md
deleted file mode 100644
index e9a81af..0000000
--- a/node_modules/safe-buffer/README.md
+++ /dev/null
@@ -1,584 +0,0 @@
-# safe-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
-
-[travis-image]: https://img.shields.io/travis/feross/safe-buffer/master.svg
-[travis-url]: https://travis-ci.org/feross/safe-buffer
-[npm-image]: https://img.shields.io/npm/v/safe-buffer.svg
-[npm-url]: https://npmjs.org/package/safe-buffer
-[downloads-image]: https://img.shields.io/npm/dm/safe-buffer.svg
-[downloads-url]: https://npmjs.org/package/safe-buffer
-[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
-[standard-url]: https://standardjs.com
-
-#### Safer Node.js Buffer API
-
-**Use the new Node.js Buffer APIs (`Buffer.from`, `Buffer.alloc`,
-`Buffer.allocUnsafe`, `Buffer.allocUnsafeSlow`) in all versions of Node.js.**
-
-**Uses the built-in implementation when available.**
-
-## install
-
-```
-npm install safe-buffer
-```
-
-## usage
-
-The goal of this package is to provide a safe replacement for the node.js `Buffer`.
-
-It's a drop-in replacement for `Buffer`. You can use it by adding one `require` line to
-the top of your node.js modules:
-
-```js
-var Buffer = require('safe-buffer').Buffer
-
-// Existing buffer code will continue to work without issues:
-
-new Buffer('hey', 'utf8')
-new Buffer([1, 2, 3], 'utf8')
-new Buffer(obj)
-new Buffer(16) // create an uninitialized buffer (potentially unsafe)
-
-// But you can use these new explicit APIs to make clear what you want:
-
-Buffer.from('hey', 'utf8') // convert from many types to a Buffer
-Buffer.alloc(16) // create a zero-filled buffer (safe)
-Buffer.allocUnsafe(16) // create an uninitialized buffer (potentially unsafe)
-```
-
-## api
-
-### Class Method: Buffer.from(array)
-<!-- YAML
-added: v3.0.0
--->
-
-* `array` {Array}
-
-Allocates a new `Buffer` using an `array` of octets.
-
-```js
-const buf = Buffer.from([0x62,0x75,0x66,0x66,0x65,0x72]);
- // creates a new Buffer containing ASCII bytes
- // ['b','u','f','f','e','r']
-```
-
-A `TypeError` will be thrown if `array` is not an `Array`.
-
-### Class Method: Buffer.from(arrayBuffer[, byteOffset[, length]])
-<!-- YAML
-added: v5.10.0
--->
-
-* `arrayBuffer` {ArrayBuffer} The `.buffer` property of a `TypedArray` or
- a `new ArrayBuffer()`
-* `byteOffset` {Number} Default: `0`
-* `length` {Number} Default: `arrayBuffer.length - byteOffset`
-
-When passed a reference to the `.buffer` property of a `TypedArray` instance,
-the newly created `Buffer` will share the same allocated memory as the
-TypedArray.
-
-```js
-const arr = new Uint16Array(2);
-arr[0] = 5000;
-arr[1] = 4000;
-
-const buf = Buffer.from(arr.buffer); // shares the memory with arr;
-
-console.log(buf);
- // Prints: <Buffer 88 13 a0 0f>
-
-// changing the TypedArray changes the Buffer also
-arr[1] = 6000;
-
-console.log(buf);
- // Prints: <Buffer 88 13 70 17>
-```
-
-The optional `byteOffset` and `length` arguments specify a memory range within
-the `arrayBuffer` that will be shared by the `Buffer`.
-
-```js
-const ab = new ArrayBuffer(10);
-const buf = Buffer.from(ab, 0, 2);
-console.log(buf.length);
- // Prints: 2
-```
-
-A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer`.
-
-### Class Method: Buffer.from(buffer)
-<!-- YAML
-added: v3.0.0
--->
-
-* `buffer` {Buffer}
-
-Copies the passed `buffer` data onto a new `Buffer` instance.
-
-```js
-const buf1 = Buffer.from('buffer');
-const buf2 = Buffer.from(buf1);
-
-buf1[0] = 0x61;
-console.log(buf1.toString());
- // 'auffer'
-console.log(buf2.toString());
- // 'buffer' (copy is not changed)
-```
-
-A `TypeError` will be thrown if `buffer` is not a `Buffer`.
-
-### Class Method: Buffer.from(str[, encoding])
-<!-- YAML
-added: v5.10.0
--->
-
-* `str` {String} String to encode.
-* `encoding` {String} Encoding to use, Default: `'utf8'`
-
-Creates a new `Buffer` containing the given JavaScript string `str`. If
-provided, the `encoding` parameter identifies the character encoding.
-If not provided, `encoding` defaults to `'utf8'`.
-
-```js
-const buf1 = Buffer.from('this is a tést');
-console.log(buf1.toString());
- // prints: this is a tést
-console.log(buf1.toString('ascii'));
- // prints: this is a tC)st
-
-const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
-console.log(buf2.toString());
- // prints: this is a tést
-```
-
-A `TypeError` will be thrown if `str` is not a string.
-
-### Class Method: Buffer.alloc(size[, fill[, encoding]])
-<!-- YAML
-added: v5.10.0
--->
-
-* `size` {Number}
-* `fill` {Value} Default: `undefined`
-* `encoding` {String} Default: `utf8`
-
-Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the
-`Buffer` will be *zero-filled*.
-
-```js
-const buf = Buffer.alloc(5);
-console.log(buf);
- // <Buffer 00 00 00 00 00>
-```
-
-The `size` must be less than or equal to the value of
-`require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
-`(2^31)-1`). Otherwise, a [`RangeError`][] is thrown. A zero-length Buffer will
-be created if a `size` less than or equal to 0 is specified.
-
-If `fill` is specified, the allocated `Buffer` will be initialized by calling
-`buf.fill(fill)`. See [`buf.fill()`][] for more information.
-
-```js
-const buf = Buffer.alloc(5, 'a');
-console.log(buf);
- // <Buffer 61 61 61 61 61>
-```
-
-If both `fill` and `encoding` are specified, the allocated `Buffer` will be
-initialized by calling `buf.fill(fill, encoding)`. For example:
-
-```js
-const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64');
-console.log(buf);
- // <Buffer 68 65 6c 6c 6f 20 77 6f 72 6c 64>
-```
-
-Calling `Buffer.alloc(size)` can be significantly slower than the alternative
-`Buffer.allocUnsafe(size)` but ensures that the newly created `Buffer` instance
-contents will *never contain sensitive data*.
-
-A `TypeError` will be thrown if `size` is not a number.
-
-### Class Method: Buffer.allocUnsafe(size)
-<!-- YAML
-added: v5.10.0
--->
-
-* `size` {Number}
-
-Allocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must
-be less than or equal to the value of `require('buffer').kMaxLength` (on 64-bit
-architectures, `kMaxLength` is `(2^31)-1`). Otherwise, a [`RangeError`][] is
-thrown. A zero-length Buffer will be created if a `size` less than or equal to
-0 is specified.
-
-The underlying memory for `Buffer` instances created in this way is *not
-initialized*. The contents of the newly created `Buffer` are unknown and
-*may contain sensitive data*. Use [`buf.fill(0)`][] to initialize such
-`Buffer` instances to zeroes.
-
-```js
-const buf = Buffer.allocUnsafe(5);
-console.log(buf);
- // <Buffer 78 e0 82 02 01>
- // (octets will be different, every time)
-buf.fill(0);
-console.log(buf);
- // <Buffer 00 00 00 00 00>
-```
-
-A `TypeError` will be thrown if `size` is not a number.
-
-Note that the `Buffer` module pre-allocates an internal `Buffer` instance of
-size `Buffer.poolSize` that is used as a pool for the fast allocation of new
-`Buffer` instances created using `Buffer.allocUnsafe(size)` (and the deprecated
-`new Buffer(size)` constructor) only when `size` is less than or equal to
-`Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two). The default
-value of `Buffer.poolSize` is `8192` but can be modified.
-
-Use of this pre-allocated internal memory pool is a key difference between
-calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`.
-Specifically, `Buffer.alloc(size, fill)` will *never* use the internal Buffer
-pool, while `Buffer.allocUnsafe(size).fill(fill)` *will* use the internal
-Buffer pool if `size` is less than or equal to half `Buffer.poolSize`. The
-difference is subtle but can be important when an application requires the
-additional performance that `Buffer.allocUnsafe(size)` provides.
-
-### Class Method: Buffer.allocUnsafeSlow(size)
-<!-- YAML
-added: v5.10.0
--->
-
-* `size` {Number}
-
-Allocates a new *non-zero-filled* and non-pooled `Buffer` of `size` bytes. The
-`size` must be less than or equal to the value of
-`require('buffer').kMaxLength` (on 64-bit architectures, `kMaxLength` is
-`(2^31)-1`). Otherwise, a [`RangeError`][] is thrown. A zero-length Buffer will
-be created if a `size` less than or equal to 0 is specified.
-
-The underlying memory for `Buffer` instances created in this way is *not
-initialized*. The contents of the newly created `Buffer` are unknown and
-*may contain sensitive data*. Use [`buf.fill(0)`][] to initialize such
-`Buffer` instances to zeroes.
-
-When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
-allocations under 4KB are, by default, sliced from a single pre-allocated
-`Buffer`. This allows applications to avoid the garbage collection overhead of
-creating many individually allocated Buffers. This approach improves both
-performance and memory usage by eliminating the need to track and cleanup as
-many `Persistent` objects.
-
-However, in the case where a developer may need to retain a small chunk of
-memory from a pool for an indeterminate amount of time, it may be appropriate
-to create an un-pooled Buffer instance using `Buffer.allocUnsafeSlow()` then
-copy out the relevant bits.
-
-```js
-// need to keep around a few small chunks of memory
-const store = [];
-
-socket.on('readable', () => {
- const data = socket.read();
- // allocate for retained data
- const sb = Buffer.allocUnsafeSlow(10);
- // copy the data into the new allocation
- data.copy(sb, 0, 0, 10);
- store.push(sb);
-});
-```
-
-Use of `Buffer.allocUnsafeSlow()` should be used only as a last resort *after*
-a developer has observed undue memory retention in their applications.
-
-A `TypeError` will be thrown if `size` is not a number.
-
-### All the Rest
-
-The rest of the `Buffer` API is exactly the same as in node.js.
-[See the docs](https://nodejs.org/api/buffer.html).
-
-
-## Related links
-
-- [Node.js issue: Buffer(number) is unsafe](https://github.com/nodejs/node/issues/4660)
-- [Node.js Enhancement Proposal: Buffer.from/Buffer.alloc/Buffer.zalloc/Buffer() soft-deprecate](https://github.com/nodejs/node-eps/pull/4)
-
-## Why is `Buffer` unsafe?
-
-Today, the node.js `Buffer` constructor is overloaded to handle many different argument
-types like `String`, `Array`, `Object`, `TypedArrayView` (`Uint8Array`, etc.),
-`ArrayBuffer`, and also `Number`.
-
-The API is optimized for convenience: you can throw any type at it, and it will try to do
-what you want.
-
-Because the Buffer constructor is so powerful, you often see code like this:
-
-```js
-// Convert UTF-8 strings to hex
-function toHex (str) {
- return new Buffer(str).toString('hex')
-}
-```
-
-***But what happens if `toHex` is called with a `Number` argument?***
-
-### Remote Memory Disclosure
-
-If an attacker can make your program call the `Buffer` constructor with a `Number`
-argument, then they can make it allocate uninitialized memory from the node.js process.
-This could potentially disclose TLS private keys, user data, or database passwords.
-
-When the `Buffer` constructor is passed a `Number` argument, it returns an
-**UNINITIALIZED** block of memory of the specified `size`. When you create a `Buffer` like
-this, you **MUST** overwrite the contents before returning it to the user.
-
-From the [node.js docs](https://nodejs.org/api/buffer.html#buffer_new_buffer_size):
-
-> `new Buffer(size)`
->
-> - `size` Number
->
-> The underlying memory for `Buffer` instances created in this way is not initialized.
-> **The contents of a newly created `Buffer` are unknown and could contain sensitive
-> data.** Use `buf.fill(0)` to initialize a Buffer to zeroes.
-
-(Emphasis our own.)
-
-Whenever the programmer intended to create an uninitialized `Buffer` you often see code
-like this:
-
-```js
-var buf = new Buffer(16)
-
-// Immediately overwrite the uninitialized buffer with data from another buffer
-for (var i = 0; i < buf.length; i++) {
- buf[i] = otherBuf[i]
-}
-```
-
-
-### Would this ever be a problem in real code?
-
-Yes. It's surprisingly common to forget to check the type of your variables in a
-dynamically-typed language like JavaScript.
-
-Usually the consequences of assuming the wrong type is that your program crashes with an
-uncaught exception. But the failure mode for forgetting to check the type of arguments to
-the `Buffer` constructor is more catastrophic.
-
-Here's an example of a vulnerable service that takes a JSON payload and converts it to
-hex:
-
-```js
-// Take a JSON payload {str: "some string"} and convert it to hex
-var server = http.createServer(function (req, res) {
- var data = ''
- req.setEncoding('utf8')
- req.on('data', function (chunk) {
- data += chunk
- })
- req.on('end', function () {
- var body = JSON.parse(data)
- res.end(new Buffer(body.str).toString('hex'))
- })
-})
-
-server.listen(8080)
-```
-
-In this example, an http client just has to send:
-
-```json
-{
- "str": 1000
-}
-```
-
-and it will get back 1,000 bytes of uninitialized memory from the server.
-
-This is a very serious bug. It's similar in severity to the
-[the Heartbleed bug](http://heartbleed.com/) that allowed disclosure of OpenSSL process
-memory by remote attackers.
-
-
-### Which real-world packages were vulnerable?
-
-#### [`bittorrent-dht`](https://www.npmjs.com/package/bittorrent-dht)
-
-[Mathias Buus](https://github.com/mafintosh) and I
-([Feross Aboukhadijeh](http://feross.org/)) found this issue in one of our own packages,
-[`bittorrent-dht`](https://www.npmjs.com/package/bittorrent-dht). The bug would allow
-anyone on the internet to send a series of messages to a user of `bittorrent-dht` and get
-them to reveal 20 bytes at a time of uninitialized memory from the node.js process.
-
-Here's
-[the commit](https://github.com/feross/bittorrent-dht/commit/6c7da04025d5633699800a99ec3fbadf70ad35b8)
-that fixed it. We released a new fixed version, created a
-[Node Security Project disclosure](https://nodesecurity.io/advisories/68), and deprecated all
-vulnerable versions on npm so users will get a warning to upgrade to a newer version.
-
-#### [`ws`](https://www.npmjs.com/package/ws)
-
-That got us wondering if there were other vulnerable packages. Sure enough, within a short
-period of time, we found the same issue in [`ws`](https://www.npmjs.com/package/ws), the
-most popular WebSocket implementation in node.js.
-
-If certain APIs were called with `Number` parameters instead of `String` or `Buffer` as
-expected, then uninitialized server memory would be disclosed to the remote peer.
-
-These were the vulnerable methods:
-
-```js
-socket.send(number)
-socket.ping(number)
-socket.pong(number)
-```
-
-Here's a vulnerable socket server with some echo functionality:
-
-```js
-server.on('connection', function (socket) {
- socket.on('message', function (message) {
- message = JSON.parse(message)
- if (message.type === 'echo') {
- socket.send(message.data) // send back the user's message
- }
- })
-})
-```
-
-`socket.send(number)` called on the server, will disclose server memory.
-
-Here's [the release](https://github.com/websockets/ws/releases/tag/1.0.1) where the issue
-was fixed, with a more detailed explanation. Props to
-[Arnout Kazemier](https://github.com/3rd-Eden) for the quick fix. Here's the
-[Node Security Project disclosure](https://nodesecurity.io/advisories/67).
-
-
-### What's the solution?
-
-It's important that node.js offers a fast way to get memory otherwise performance-critical
-applications would needlessly get a lot slower.
-
-But we need a better way to *signal our intent* as programmers. **When we want
-uninitialized memory, we should request it explicitly.**
-
-Sensitive functionality should not be packed into a developer-friendly API that loosely
-accepts many different types. This type of API encourages the lazy practice of passing
-variables in without checking the type very carefully.
-
-#### A new API: `Buffer.allocUnsafe(number)`
-
-The functionality of creating buffers with uninitialized memory should be part of another
-API. We propose `Buffer.allocUnsafe(number)`. This way, it's not part of an API that
-frequently gets user input of all sorts of different types passed into it.
-
-```js
-var buf = Buffer.allocUnsafe(16) // careful, uninitialized memory!
-
-// Immediately overwrite the uninitialized buffer with data from another buffer
-for (var i = 0; i < buf.length; i++) {
- buf[i] = otherBuf[i]
-}
-```
-
-
-### How do we fix node.js core?
-
-We sent [a PR to node.js core](https://github.com/nodejs/node/pull/4514) (merged as
-`semver-major`) which defends against one case:
-
-```js
-var str = 16
-new Buffer(str, 'utf8')
-```
-
-In this situation, it's implied that the programmer intended the first argument to be a
-string, since they passed an encoding as a second argument. Today, node.js will allocate
-uninitialized memory in the case of `new Buffer(number, encoding)`, which is probably not
-what the programmer intended.
-
-But this is only a partial solution, since if the programmer does `new Buffer(variable)`
-(without an `encoding` parameter) there's no way to know what they intended. If `variable`
-is sometimes a number, then uninitialized memory will sometimes be returned.
-
-### What's the real long-term fix?
-
-We could deprecate and remove `new Buffer(number)` and use `Buffer.allocUnsafe(number)` when
-we need uninitialized memory. But that would break 1000s of packages.
-
-~~We believe the best solution is to:~~
-
-~~1. Change `new Buffer(number)` to return safe, zeroed-out memory~~
-
-~~2. Create a new API for creating uninitialized Buffers. We propose: `Buffer.allocUnsafe(number)`~~
-
-#### Update
-
-We now support adding three new APIs:
-
-- `Buffer.from(value)` - convert from any type to a buffer
-- `Buffer.alloc(size)` - create a zero-filled buffer
-- `Buffer.allocUnsafe(size)` - create an uninitialized buffer with given size
-
-This solves the core problem that affected `ws` and `bittorrent-dht` which is
-`Buffer(variable)` getting tricked into taking a number argument.
-
-This way, existing code continues working and the impact on the npm ecosystem will be
-minimal. Over time, npm maintainers can migrate performance-critical code to use
-`Buffer.allocUnsafe(number)` instead of `new Buffer(number)`.
-
-
-### Conclusion
-
-We think there's a serious design issue with the `Buffer` API as it exists today. It
-promotes insecure software by putting high-risk functionality into a convenient API
-with friendly "developer ergonomics".
-
-This wasn't merely a theoretical exercise because we found the issue in some of the
-most popular npm packages.
-
-Fortunately, there's an easy fix that can be applied today. Use `safe-buffer` in place of
-`buffer`.
-
-```js
-var Buffer = require('safe-buffer').Buffer
-```
-
-Eventually, we hope that node.js core can switch to this new, safer behavior. We believe
-the impact on the ecosystem would be minimal since it's not a breaking change.
-Well-maintained, popular packages would be updated to use `Buffer.alloc` quickly, while
-older, insecure packages would magically become safe from this attack vector.
-
-
-## links
-
-- [Node.js PR: buffer: throw if both length and enc are passed](https://github.com/nodejs/node/pull/4514)
-- [Node Security Project disclosure for `ws`](https://nodesecurity.io/advisories/67)
-- [Node Security Project disclosure for`bittorrent-dht`](https://nodesecurity.io/advisories/68)
-
-
-## credit
-
-The original issues in `bittorrent-dht`
-([disclosure](https://nodesecurity.io/advisories/68)) and
-`ws` ([disclosure](https://nodesecurity.io/advisories/67)) were discovered by
-[Mathias Buus](https://github.com/mafintosh) and
-[Feross Aboukhadijeh](http://feross.org/).
-
-Thanks to [Adam Baldwin](https://github.com/evilpacket) for helping disclose these issues
-and for his work running the [Node Security Project](https://nodesecurity.io/).
-
-Thanks to [John Hiesey](https://github.com/jhiesey) for proofreading this README and
-auditing the code.
-
-
-## license
-
-MIT. Copyright (C) [Feross Aboukhadijeh](http://feross.org)
diff --git a/node_modules/safe-buffer/index.d.ts b/node_modules/safe-buffer/index.d.ts
deleted file mode 100644
index e9fed80..0000000
--- a/node_modules/safe-buffer/index.d.ts
+++ /dev/null
@@ -1,187 +0,0 @@
-declare module "safe-buffer" {
- export class Buffer {
- length: number
- write(string: string, offset?: number, length?: number, encoding?: string): number;
- toString(encoding?: string, start?: number, end?: number): string;
- toJSON(): { type: 'Buffer', data: any[] };
- equals(otherBuffer: Buffer): boolean;
- compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
- copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
- slice(start?: number, end?: number): Buffer;
- writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
- readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
- readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
- readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
- readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
- readUInt8(offset: number, noAssert?: boolean): number;
- readUInt16LE(offset: number, noAssert?: boolean): number;
- readUInt16BE(offset: number, noAssert?: boolean): number;
- readUInt32LE(offset: number, noAssert?: boolean): number;
- readUInt32BE(offset: number, noAssert?: boolean): number;
- readInt8(offset: number, noAssert?: boolean): number;
- readInt16LE(offset: number, noAssert?: boolean): number;
- readInt16BE(offset: number, noAssert?: boolean): number;
- readInt32LE(offset: number, noAssert?: boolean): number;
- readInt32BE(offset: number, noAssert?: boolean): number;
- readFloatLE(offset: number, noAssert?: boolean): number;
- readFloatBE(offset: number, noAssert?: boolean): number;
- readDoubleLE(offset: number, noAssert?: boolean): number;
- readDoubleBE(offset: number, noAssert?: boolean): number;
- swap16(): Buffer;
- swap32(): Buffer;
- swap64(): Buffer;
- writeUInt8(value: number, offset: number, noAssert?: boolean): number;
- writeUInt16LE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
- writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
- writeInt8(value: number, offset: number, noAssert?: boolean): number;
- writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
- writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
- writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
- writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
- writeFloatLE(value: number, offset: number, noAssert?: boolean): number;
- writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
- writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
- writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
- fill(value: any, offset?: number, end?: number): this;
- indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
- lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
- includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean;
-
- /**
- * Allocates a new buffer containing the given {str}.
- *
- * @param str String to store in buffer.
- * @param encoding encoding to use, optional. Default is 'utf8'
- */
- constructor (str: string, encoding?: string);
- /**
- * Allocates a new buffer of {size} octets.
- *
- * @param size count of octets to allocate.
- */
- constructor (size: number);
- /**
- * Allocates a new buffer containing the given {array} of octets.
- *
- * @param array The octets to store.
- */
- constructor (array: Uint8Array);
- /**
- * Produces a Buffer backed by the same allocated memory as
- * the given {ArrayBuffer}.
- *
- *
- * @param arrayBuffer The ArrayBuffer with which to share memory.
- */
- constructor (arrayBuffer: ArrayBuffer);
- /**
- * Allocates a new buffer containing the given {array} of octets.
- *
- * @param array The octets to store.
- */
- constructor (array: any[]);
- /**
- * Copies the passed {buffer} data onto a new {Buffer} instance.
- *
- * @param buffer The buffer to copy.
- */
- constructor (buffer: Buffer);
- prototype: Buffer;
- /**
- * Allocates a new Buffer using an {array} of octets.
- *
- * @param array
- */
- static from(array: any[]): Buffer;
- /**
- * When passed a reference to the .buffer property of a TypedArray instance,
- * the newly created Buffer will share the same allocated memory as the TypedArray.
- * The optional {byteOffset} and {length} arguments specify a memory range
- * within the {arrayBuffer} that will be shared by the Buffer.
- *
- * @param arrayBuffer The .buffer property of a TypedArray or a new ArrayBuffer()
- * @param byteOffset
- * @param length
- */
- static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
- /**
- * Copies the passed {buffer} data onto a new Buffer instance.
- *
- * @param buffer
- */
- static from(buffer: Buffer): Buffer;
- /**
- * Creates a new Buffer containing the given JavaScript string {str}.
- * If provided, the {encoding} parameter identifies the character encoding.
- * If not provided, {encoding} defaults to 'utf8'.
- *
- * @param str
- */
- static from(str: string, encoding?: string): Buffer;
- /**
- * Returns true if {obj} is a Buffer
- *
- * @param obj object to test.
- */
- static isBuffer(obj: any): obj is Buffer;
- /**
- * Returns true if {encoding} is a valid encoding argument.
- * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
- *
- * @param encoding string to test.
- */
- static isEncoding(encoding: string): boolean;
- /**
- * Gives the actual byte length of a string. encoding defaults to 'utf8'.
- * This is not the same as String.prototype.length since that returns the number of characters in a string.
- *
- * @param string string to test.
- * @param encoding encoding used to evaluate (defaults to 'utf8')
- */
- static byteLength(string: string, encoding?: string): number;
- /**
- * Returns a buffer which is the result of concatenating all the buffers in the list together.
- *
- * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer.
- * If the list has exactly one item, then the first item of the list is returned.
- * If the list has more than one item, then a new Buffer is created.
- *
- * @param list An array of Buffer objects to concatenate
- * @param totalLength Total length of the buffers when concatenated.
- * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly.
- */
- static concat(list: Buffer[], totalLength?: number): Buffer;
- /**
- * The same as buf1.compare(buf2).
- */
- static compare(buf1: Buffer, buf2: Buffer): number;
- /**
- * Allocates a new buffer of {size} octets.
- *
- * @param size count of octets to allocate.
- * @param fill if specified, buffer will be initialized by calling buf.fill(fill).
- * If parameter is omitted, buffer will be filled with zeros.
- * @param encoding encoding used for call to buf.fill while initalizing
- */
- static alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
- /**
- * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents
- * of the newly created Buffer are unknown and may contain sensitive data.
- *
- * @param size count of octets to allocate
- */
- static allocUnsafe(size: number): Buffer;
- /**
- * Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents
- * of the newly created Buffer are unknown and may contain sensitive data.
- *
- * @param size count of octets to allocate
- */
- static allocUnsafeSlow(size: number): Buffer;
- }
-} \ No newline at end of file
diff --git a/node_modules/safe-buffer/index.js b/node_modules/safe-buffer/index.js
deleted file mode 100644
index 22438da..0000000
--- a/node_modules/safe-buffer/index.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/* eslint-disable node/no-deprecated-api */
-var buffer = require('buffer')
-var Buffer = buffer.Buffer
-
-// alternative to using Object.keys for old browsers
-function copyProps (src, dst) {
- for (var key in src) {
- dst[key] = src[key]
- }
-}
-if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
- module.exports = buffer
-} else {
- // Copy properties from require('buffer')
- copyProps(buffer, exports)
- exports.Buffer = SafeBuffer
-}
-
-function SafeBuffer (arg, encodingOrOffset, length) {
- return Buffer(arg, encodingOrOffset, length)
-}
-
-// Copy static methods from Buffer
-copyProps(Buffer, SafeBuffer)
-
-SafeBuffer.from = function (arg, encodingOrOffset, length) {
- if (typeof arg === 'number') {
- throw new TypeError('Argument must not be a number')
- }
- return Buffer(arg, encodingOrOffset, length)
-}
-
-SafeBuffer.alloc = function (size, fill, encoding) {
- if (typeof size !== 'number') {
- throw new TypeError('Argument must be a number')
- }
- var buf = Buffer(size)
- if (fill !== undefined) {
- if (typeof encoding === 'string') {
- buf.fill(fill, encoding)
- } else {
- buf.fill(fill)
- }
- } else {
- buf.fill(0)
- }
- return buf
-}
-
-SafeBuffer.allocUnsafe = function (size) {
- if (typeof size !== 'number') {
- throw new TypeError('Argument must be a number')
- }
- return Buffer(size)
-}
-
-SafeBuffer.allocUnsafeSlow = function (size) {
- if (typeof size !== 'number') {
- throw new TypeError('Argument must be a number')
- }
- return buffer.SlowBuffer(size)
-}
diff --git a/node_modules/safe-buffer/package.json b/node_modules/safe-buffer/package.json
deleted file mode 100644
index be98ff3..0000000
--- a/node_modules/safe-buffer/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "_from": "safe-buffer@~5.1.1",
- "_id": "safe-buffer@5.1.2",
- "_inBundle": false,
- "_integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
- "_location": "/safe-buffer",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "safe-buffer@~5.1.1",
- "name": "safe-buffer",
- "escapedName": "safe-buffer",
- "rawSpec": "~5.1.1",
- "saveSpec": null,
- "fetchSpec": "~5.1.1"
- },
- "_requiredBy": [
- "/readable-stream",
- "/request",
- "/string_decoder",
- "/tunnel-agent"
- ],
- "_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "_shasum": "991ec69d296e0313747d59bdfd2b745c35f8828d",
- "_spec": "safe-buffer@~5.1.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/readable-stream",
- "author": {
- "name": "Feross Aboukhadijeh",
- "email": "feross@feross.org",
- "url": "http://feross.org"
- },
- "bugs": {
- "url": "https://github.com/feross/safe-buffer/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Safer Node.js Buffer API",
- "devDependencies": {
- "standard": "*",
- "tape": "^4.0.0"
- },
- "homepage": "https://github.com/feross/safe-buffer",
- "keywords": [
- "buffer",
- "buffer allocate",
- "node security",
- "safe",
- "safe-buffer",
- "security",
- "uninitialized"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "safe-buffer",
- "repository": {
- "type": "git",
- "url": "git://github.com/feross/safe-buffer.git"
- },
- "scripts": {
- "test": "standard && tape test/*.js"
- },
- "types": "index.d.ts",
- "version": "5.1.2"
-}
diff --git a/node_modules/safer-buffer/LICENSE b/node_modules/safer-buffer/LICENSE
deleted file mode 100644
index 4fe9e6f..0000000
--- a/node_modules/safer-buffer/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/safer-buffer/Porting-Buffer.md b/node_modules/safer-buffer/Porting-Buffer.md
deleted file mode 100644
index 68d86ba..0000000
--- a/node_modules/safer-buffer/Porting-Buffer.md
+++ /dev/null
@@ -1,268 +0,0 @@
-# Porting to the Buffer.from/Buffer.alloc API
-
-<a id="overview"></a>
-## Overview
-
-- [Variant 1: Drop support for Node.js ≤ 4.4.x and 5.0.0 — 5.9.x.](#variant-1) (*recommended*)
-- [Variant 2: Use a polyfill](#variant-2)
-- [Variant 3: manual detection, with safeguards](#variant-3)
-
-### Finding problematic bits of code using grep
-
-Just run `grep -nrE '[^a-zA-Z](Slow)?Buffer\s*\(' --exclude-dir node_modules`.
-
-It will find all the potentially unsafe places in your own code (with some considerably unlikely
-exceptions).
-
-### Finding problematic bits of code using Node.js 8
-
-If you’re using Node.js ≥ 8.0.0 (which is recommended), Node.js exposes multiple options that help with finding the relevant pieces of code:
-
-- `--trace-warnings` will make Node.js show a stack trace for this warning and other warnings that are printed by Node.js.
-- `--trace-deprecation` does the same thing, but only for deprecation warnings.
-- `--pending-deprecation` will show more types of deprecation warnings. In particular, it will show the `Buffer()` deprecation warning, even on Node.js 8.
-
-You can set these flags using an environment variable:
-
-```console
-$ export NODE_OPTIONS='--trace-warnings --pending-deprecation'
-$ cat example.js
-'use strict';
-const foo = new Buffer('foo');
-$ node example.js
-(node:7147) [DEP0005] DeprecationWarning: The Buffer() and new Buffer() constructors are not recommended for use due to security and usability concerns. Please use the new Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() construction methods instead.
- at showFlaggedDeprecation (buffer.js:127:13)
- at new Buffer (buffer.js:148:3)
- at Object.<anonymous> (/path/to/example.js:2:13)
- [... more stack trace lines ...]
-```
-
-### Finding problematic bits of code using linters
-
-Eslint rules [no-buffer-constructor](https://eslint.org/docs/rules/no-buffer-constructor)
-or
-[node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md)
-also find calls to deprecated `Buffer()` API. Those rules are included in some pre-sets.
-
-There is a drawback, though, that it doesn't always
-[work correctly](https://github.com/chalker/safer-buffer#why-not-safe-buffer) when `Buffer` is
-overriden e.g. with a polyfill, so recommended is a combination of this and some other method
-described above.
-
-<a id="variant-1"></a>
-## Variant 1: Drop support for Node.js ≤ 4.4.x and 5.0.0 — 5.9.x.
-
-This is the recommended solution nowadays that would imply only minimal overhead.
-
-The Node.js 5.x release line has been unsupported since July 2016, and the Node.js 4.x release line reaches its End of Life in April 2018 (→ [Schedule](https://github.com/nodejs/Release#release-schedule)). This means that these versions of Node.js will *not* receive any updates, even in case of security issues, so using these release lines should be avoided, if at all possible.
-
-What you would do in this case is to convert all `new Buffer()` or `Buffer()` calls to use `Buffer.alloc()` or `Buffer.from()`, in the following way:
-
-- For `new Buffer(number)`, replace it with `Buffer.alloc(number)`.
-- For `new Buffer(string)` (or `new Buffer(string, encoding)`), replace it with `Buffer.from(string)` (or `Buffer.from(string, encoding)`).
-- For all other combinations of arguments (these are much rarer), also replace `new Buffer(...arguments)` with `Buffer.from(...arguments)`.
-
-Note that `Buffer.alloc()` is also _faster_ on the current Node.js versions than
-`new Buffer(size).fill(0)`, which is what you would otherwise need to ensure zero-filling.
-
-Enabling eslint rule [no-buffer-constructor](https://eslint.org/docs/rules/no-buffer-constructor)
-or
-[node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md)
-is recommended to avoid accidential unsafe Buffer API usage.
-
-There is also a [JSCodeshift codemod](https://github.com/joyeecheung/node-dep-codemod#dep005)
-for automatically migrating Buffer constructors to `Buffer.alloc()` or `Buffer.from()`.
-Note that it currently only works with cases where the arguments are literals or where the
-constructor is invoked with two arguments.
-
-_If you currently support those older Node.js versions and dropping them would be a semver-major change
-for you, or if you support older branches of your packages, consider using [Variant 2](#variant-2)
-or [Variant 3](#variant-3) on older branches, so people using those older branches will also receive
-the fix. That way, you will eradicate potential issues caused by unguarded Buffer API usage and
-your users will not observe a runtime deprecation warning when running your code on Node.js 10._
-
-<a id="variant-2"></a>
-## Variant 2: Use a polyfill
-
-Utilize [safer-buffer](https://www.npmjs.com/package/safer-buffer) as a polyfill to support older
-Node.js versions.
-
-You would take exacly the same steps as in [Variant 1](#variant-1), but with a polyfill
-`const Buffer = require('safer-buffer').Buffer` in all files where you use the new `Buffer` api.
-
-Make sure that you do not use old `new Buffer` API — in any files where the line above is added,
-using old `new Buffer()` API will _throw_. It will be easy to notice that in CI, though.
-
-Alternatively, you could use [buffer-from](https://www.npmjs.com/package/buffer-from) and/or
-[buffer-alloc](https://www.npmjs.com/package/buffer-alloc) [ponyfills](https://ponyfill.com/) —
-those are great, the only downsides being 4 deps in the tree and slightly more code changes to
-migrate off them (as you would be using e.g. `Buffer.from` under a different name). If you need only
-`Buffer.from` polyfilled — `buffer-from` alone which comes with no extra dependencies.
-
-_Alternatively, you could use [safe-buffer](https://www.npmjs.com/package/safe-buffer) — it also
-provides a polyfill, but takes a different approach which has
-[it's drawbacks](https://github.com/chalker/safer-buffer#why-not-safe-buffer). It will allow you
-to also use the older `new Buffer()` API in your code, though — but that's arguably a benefit, as
-it is problematic, can cause issues in your code, and will start emitting runtime deprecation
-warnings starting with Node.js 10._
-
-Note that in either case, it is important that you also remove all calls to the old Buffer
-API manually — just throwing in `safe-buffer` doesn't fix the problem by itself, it just provides
-a polyfill for the new API. I have seen people doing that mistake.
-
-Enabling eslint rule [no-buffer-constructor](https://eslint.org/docs/rules/no-buffer-constructor)
-or
-[node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md)
-is recommended.
-
-_Don't forget to drop the polyfill usage once you drop support for Node.js < 4.5.0._
-
-<a id="variant-3"></a>
-## Variant 3 — manual detection, with safeguards
-
-This is useful if you create Buffer instances in only a few places (e.g. one), or you have your own
-wrapper around them.
-
-### Buffer(0)
-
-This special case for creating empty buffers can be safely replaced with `Buffer.concat([])`, which
-returns the same result all the way down to Node.js 0.8.x.
-
-### Buffer(notNumber)
-
-Before:
-
-```js
-var buf = new Buffer(notNumber, encoding);
-```
-
-After:
-
-```js
-var buf;
-if (Buffer.from && Buffer.from !== Uint8Array.from) {
- buf = Buffer.from(notNumber, encoding);
-} else {
- if (typeof notNumber === 'number')
- throw new Error('The "size" argument must be of type number.');
- buf = new Buffer(notNumber, encoding);
-}
-```
-
-`encoding` is optional.
-
-Note that the `typeof notNumber` before `new Buffer` is required (for cases when `notNumber` argument is not
-hard-coded) and _is not caused by the deprecation of Buffer constructor_ — it's exactly _why_ the
-Buffer constructor is deprecated. Ecosystem packages lacking this type-check caused numereous
-security issues — situations when unsanitized user input could end up in the `Buffer(arg)` create
-problems ranging from DoS to leaking sensitive information to the attacker from the process memory.
-
-When `notNumber` argument is hardcoded (e.g. literal `"abc"` or `[0,1,2]`), the `typeof` check can
-be omitted.
-
-Also note that using TypeScript does not fix this problem for you — when libs written in
-`TypeScript` are used from JS, or when user input ends up there — it behaves exactly as pure JS, as
-all type checks are translation-time only and are not present in the actual JS code which TS
-compiles to.
-
-### Buffer(number)
-
-For Node.js 0.10.x (and below) support:
-
-```js
-var buf;
-if (Buffer.alloc) {
- buf = Buffer.alloc(number);
-} else {
- buf = new Buffer(number);
- buf.fill(0);
-}
-```
-
-Otherwise (Node.js ≥ 0.12.x):
-
-```js
-const buf = Buffer.alloc ? Buffer.alloc(number) : new Buffer(number).fill(0);
-```
-
-## Regarding Buffer.allocUnsafe
-
-Be extra cautious when using `Buffer.allocUnsafe`:
- * Don't use it if you don't have a good reason to
- * e.g. you probably won't ever see a performance difference for small buffers, in fact, those
- might be even faster with `Buffer.alloc()`,
- * if your code is not in the hot code path — you also probably won't notice a difference,
- * keep in mind that zero-filling minimizes the potential risks.
- * If you use it, make sure that you never return the buffer in a partially-filled state,
- * if you are writing to it sequentially — always truncate it to the actuall written length
-
-Errors in handling buffers allocated with `Buffer.allocUnsafe` could result in various issues,
-ranged from undefined behaviour of your code to sensitive data (user input, passwords, certs)
-leaking to the remote attacker.
-
-_Note that the same applies to `new Buffer` usage without zero-filling, depending on the Node.js
-version (and lacking type checks also adds DoS to the list of potential problems)._
-
-<a id="faq"></a>
-## FAQ
-
-<a id="design-flaws"></a>
-### What is wrong with the `Buffer` constructor?
-
-The `Buffer` constructor could be used to create a buffer in many different ways:
-
-- `new Buffer(42)` creates a `Buffer` of 42 bytes. Before Node.js 8, this buffer contained
- *arbitrary memory* for performance reasons, which could include anything ranging from
- program source code to passwords and encryption keys.
-- `new Buffer('abc')` creates a `Buffer` that contains the UTF-8-encoded version of
- the string `'abc'`. A second argument could specify another encoding: For example,
- `new Buffer(string, 'base64')` could be used to convert a Base64 string into the original
- sequence of bytes that it represents.
-- There are several other combinations of arguments.
-
-This meant that, in code like `var buffer = new Buffer(foo);`, *it is not possible to tell
-what exactly the contents of the generated buffer are* without knowing the type of `foo`.
-
-Sometimes, the value of `foo` comes from an external source. For example, this function
-could be exposed as a service on a web server, converting a UTF-8 string into its Base64 form:
-
-```
-function stringToBase64(req, res) {
- // The request body should have the format of `{ string: 'foobar' }`
- const rawBytes = new Buffer(req.body.string)
- const encoded = rawBytes.toString('base64')
- res.end({ encoded: encoded })
-}
-```
-
-Note that this code does *not* validate the type of `req.body.string`:
-
-- `req.body.string` is expected to be a string. If this is the case, all goes well.
-- `req.body.string` is controlled by the client that sends the request.
-- If `req.body.string` is the *number* `50`, the `rawBytes` would be 50 bytes:
- - Before Node.js 8, the content would be uninitialized
- - After Node.js 8, the content would be `50` bytes with the value `0`
-
-Because of the missing type check, an attacker could intentionally send a number
-as part of the request. Using this, they can either:
-
-- Read uninitialized memory. This **will** leak passwords, encryption keys and other
- kinds of sensitive information. (Information leak)
-- Force the program to allocate a large amount of memory. For example, when specifying
- `500000000` as the input value, each request will allocate 500MB of memory.
- This can be used to either exhaust the memory available of a program completely
- and make it crash, or slow it down significantly. (Denial of Service)
-
-Both of these scenarios are considered serious security issues in a real-world
-web server context.
-
-when using `Buffer.from(req.body.string)` instead, passing a number will always
-throw an exception instead, giving a controlled behaviour that can always be
-handled by the program.
-
-<a id="ecosystem-usage"></a>
-### The `Buffer()` constructor has been deprecated for a while. Is this really an issue?
-
-Surveys of code in the `npm` ecosystem have shown that the `Buffer()` constructor is still
-widely used. This includes new code, and overall usage of such code has actually been
-*increasing*.
diff --git a/node_modules/safer-buffer/Readme.md b/node_modules/safer-buffer/Readme.md
deleted file mode 100644
index 14b0822..0000000
--- a/node_modules/safer-buffer/Readme.md
+++ /dev/null
@@ -1,156 +0,0 @@
-# safer-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![javascript style guide][standard-image]][standard-url] [![Security Responsible Disclosure][secuirty-image]][secuirty-url]
-
-[travis-image]: https://travis-ci.org/ChALkeR/safer-buffer.svg?branch=master
-[travis-url]: https://travis-ci.org/ChALkeR/safer-buffer
-[npm-image]: https://img.shields.io/npm/v/safer-buffer.svg
-[npm-url]: https://npmjs.org/package/safer-buffer
-[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
-[standard-url]: https://standardjs.com
-[secuirty-image]: https://img.shields.io/badge/Security-Responsible%20Disclosure-green.svg
-[secuirty-url]: https://github.com/nodejs/security-wg/blob/master/processes/responsible_disclosure_template.md
-
-Modern Buffer API polyfill without footguns, working on Node.js from 0.8 to current.
-
-## How to use?
-
-First, port all `Buffer()` and `new Buffer()` calls to `Buffer.alloc()` and `Buffer.from()` API.
-
-Then, to achieve compatibility with outdated Node.js versions (`<4.5.0` and 5.x `<5.9.0`), use
-`const Buffer = require('safer-buffer').Buffer` in all files where you make calls to the new
-Buffer API. _Use `var` instead of `const` if you need that for your Node.js version range support._
-
-Also, see the
-[porting Buffer](https://github.com/ChALkeR/safer-buffer/blob/master/Porting-Buffer.md) guide.
-
-## Do I need it?
-
-Hopefully, not — dropping support for outdated Node.js versions should be fine nowdays, and that
-is the recommended path forward. You _do_ need to port to the `Buffer.alloc()` and `Buffer.from()`
-though.
-
-See the [porting guide](https://github.com/ChALkeR/safer-buffer/blob/master/Porting-Buffer.md)
-for a better description.
-
-## Why not [safe-buffer](https://npmjs.com/safe-buffer)?
-
-_In short: while `safe-buffer` serves as a polyfill for the new API, it allows old API usage and
-itself contains footguns._
-
-`safe-buffer` could be used safely to get the new API while still keeping support for older
-Node.js versions (like this module), but while analyzing ecosystem usage of the old Buffer API
-I found out that `safe-buffer` is itself causing problems in some cases.
-
-For example, consider the following snippet:
-
-```console
-$ cat example.unsafe.js
-console.log(Buffer(20))
-$ ./node-v6.13.0-linux-x64/bin/node example.unsafe.js
-<Buffer 0a 00 00 00 00 00 00 00 28 13 de 02 00 00 00 00 05 00 00 00>
-$ standard example.unsafe.js
-standard: Use JavaScript Standard Style (https://standardjs.com)
- /home/chalker/repo/safer-buffer/example.unsafe.js:2:13: 'Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead.
-```
-
-This is allocates and writes to console an uninitialized chunk of memory.
-[standard](https://www.npmjs.com/package/standard) linter (among others) catch that and warn people
-to avoid using unsafe API.
-
-Let's now throw in `safe-buffer`!
-
-```console
-$ cat example.safe-buffer.js
-const Buffer = require('safe-buffer').Buffer
-console.log(Buffer(20))
-$ standard example.safe-buffer.js
-$ ./node-v6.13.0-linux-x64/bin/node example.safe-buffer.js
-<Buffer 08 00 00 00 00 00 00 00 28 58 01 82 fe 7f 00 00 00 00 00 00>
-```
-
-See the problem? Adding in `safe-buffer` _magically removes the lint warning_, but the behavior
-remains identiсal to what we had before, and when launched on Node.js 6.x LTS — this dumps out
-chunks of uninitialized memory.
-_And this code will still emit runtime warnings on Node.js 10.x and above._
-
-That was done by design. I first considered changing `safe-buffer`, prohibiting old API usage or
-emitting warnings on it, but that significantly diverges from `safe-buffer` design. After some
-discussion, it was decided to move my approach into a separate package, and _this is that separate
-package_.
-
-This footgun is not imaginary — I observed top-downloaded packages doing that kind of thing,
-«fixing» the lint warning by blindly including `safe-buffer` without any actual changes.
-
-Also in some cases, even if the API _was_ migrated to use of safe Buffer API — a random pull request
-can bring unsafe Buffer API usage back to the codebase by adding new calls — and that could go
-unnoticed even if you have a linter prohibiting that (becase of the reason stated above), and even
-pass CI. _I also observed that being done in popular packages._
-
-Some examples:
- * [webdriverio](https://github.com/webdriverio/webdriverio/commit/05cbd3167c12e4930f09ef7cf93b127ba4effae4#diff-124380949022817b90b622871837d56cR31)
- (a module with 548 759 downloads/month),
- * [websocket-stream](https://github.com/maxogden/websocket-stream/commit/c9312bd24d08271687d76da0fe3c83493871cf61)
- (218 288 d/m, fix in [maxogden/websocket-stream#142](https://github.com/maxogden/websocket-stream/pull/142)),
- * [node-serialport](https://github.com/node-serialport/node-serialport/commit/e8d9d2b16c664224920ce1c895199b1ce2def48c)
- (113 138 d/m, fix in [node-serialport/node-serialport#1510](https://github.com/node-serialport/node-serialport/pull/1510)),
- * [karma](https://github.com/karma-runner/karma/commit/3d94b8cf18c695104ca195334dc75ff054c74eec)
- (3 973 193 d/m, fix in [karma-runner/karma#2947](https://github.com/karma-runner/karma/pull/2947)),
- * [spdy-transport](https://github.com/spdy-http2/spdy-transport/commit/5375ac33f4a62a4f65bcfc2827447d42a5dbe8b1)
- (5 970 727 d/m, fix in [spdy-http2/spdy-transport#53](https://github.com/spdy-http2/spdy-transport/pull/53)).
- * And there are a lot more over the ecosystem.
-
-I filed a PR at
-[mysticatea/eslint-plugin-node#110](https://github.com/mysticatea/eslint-plugin-node/pull/110) to
-partially fix that (for cases when that lint rule is used), but it is a semver-major change for
-linter rules and presets, so it would take significant time for that to reach actual setups.
-_It also hasn't been released yet (2018-03-20)._
-
-Also, `safer-buffer` discourages the usage of `.allocUnsafe()`, which is often done by a mistake.
-It still supports it with an explicit concern barier, by placing it under
-`require('safer-buffer/dangereous')`.
-
-## But isn't throwing bad?
-
-Not really. It's an error that could be noticed and fixed early, instead of causing havoc later like
-unguarded `new Buffer()` calls that end up receiving user input can do.
-
-This package affects only the files where `var Buffer = require('safer-buffer').Buffer` was done, so
-it is really simple to keep track of things and make sure that you don't mix old API usage with that.
-Also, CI should hint anything that you might have missed.
-
-New commits, if tested, won't land new usage of unsafe Buffer API this way.
-_Node.js 10.x also deals with that by printing a runtime depecation warning._
-
-### Would it affect third-party modules?
-
-No, unless you explicitly do an awful thing like monkey-patching or overriding the built-in `Buffer`.
-Don't do that.
-
-### But I don't want throwing…
-
-That is also fine!
-
-Also, it could be better in some cases when you don't comprehensive enough test coverage.
-
-In that case — just don't override `Buffer` and use
-`var SaferBuffer = require('safer-buffer').Buffer` instead.
-
-That way, everything using `Buffer` natively would still work, but there would be two drawbacks:
-
-* `Buffer.from`/`Buffer.alloc` won't be polyfilled — use `SaferBuffer.from` and
- `SaferBuffer.alloc` instead.
-* You are still open to accidentally using the insecure deprecated API — use a linter to catch that.
-
-Note that using a linter to catch accidential `Buffer` constructor usage in this case is strongly
-recommended. `Buffer` is not overriden in this usecase, so linters won't get confused.
-
-## «Without footguns»?
-
-Well, it is still possible to do _some_ things with `Buffer` API, e.g. accessing `.buffer` property
-on older versions and duping things from there. You shouldn't do that in your code, probabably.
-
-The intention is to remove the most significant footguns that affect lots of packages in the
-ecosystem, and to do it in the proper way.
-
-Also, this package doesn't protect against security issues affecting some Node.js versions, so for
-usage in your own production code, it is still recommended to update to a Node.js version
-[supported by upstream](https://github.com/nodejs/release#release-schedule).
diff --git a/node_modules/safer-buffer/dangerous.js b/node_modules/safer-buffer/dangerous.js
deleted file mode 100644
index ca41fdc..0000000
--- a/node_modules/safer-buffer/dangerous.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/* eslint-disable node/no-deprecated-api */
-
-'use strict'
-
-var buffer = require('buffer')
-var Buffer = buffer.Buffer
-var safer = require('./safer.js')
-var Safer = safer.Buffer
-
-var dangerous = {}
-
-var key
-
-for (key in safer) {
- if (!safer.hasOwnProperty(key)) continue
- dangerous[key] = safer[key]
-}
-
-var Dangereous = dangerous.Buffer = {}
-
-// Copy Safer API
-for (key in Safer) {
- if (!Safer.hasOwnProperty(key)) continue
- Dangereous[key] = Safer[key]
-}
-
-// Copy those missing unsafe methods, if they are present
-for (key in Buffer) {
- if (!Buffer.hasOwnProperty(key)) continue
- if (Dangereous.hasOwnProperty(key)) continue
- Dangereous[key] = Buffer[key]
-}
-
-if (!Dangereous.allocUnsafe) {
- Dangereous.allocUnsafe = function (size) {
- if (typeof size !== 'number') {
- throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size)
- }
- if (size < 0 || size >= 2 * (1 << 30)) {
- throw new RangeError('The value "' + size + '" is invalid for option "size"')
- }
- return Buffer(size)
- }
-}
-
-if (!Dangereous.allocUnsafeSlow) {
- Dangereous.allocUnsafeSlow = function (size) {
- if (typeof size !== 'number') {
- throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size)
- }
- if (size < 0 || size >= 2 * (1 << 30)) {
- throw new RangeError('The value "' + size + '" is invalid for option "size"')
- }
- return buffer.SlowBuffer(size)
- }
-}
-
-module.exports = dangerous
diff --git a/node_modules/safer-buffer/package.json b/node_modules/safer-buffer/package.json
deleted file mode 100644
index 4e2d5be..0000000
--- a/node_modules/safer-buffer/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_from": "safer-buffer@^2.0.2",
- "_id": "safer-buffer@2.1.2",
- "_inBundle": false,
- "_integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
- "_location": "/safer-buffer",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "safer-buffer@^2.0.2",
- "name": "safer-buffer",
- "escapedName": "safer-buffer",
- "rawSpec": "^2.0.2",
- "saveSpec": null,
- "fetchSpec": "^2.0.2"
- },
- "_requiredBy": [
- "/asn1",
- "/ecc-jsbn",
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "_shasum": "44fa161b0187b9549dd84bb91802f9bd8385cd6a",
- "_spec": "safer-buffer@^2.0.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "author": {
- "name": "Nikita Skovoroda",
- "email": "chalkerx@gmail.com",
- "url": "https://github.com/ChALkeR"
- },
- "bugs": {
- "url": "https://github.com/ChALkeR/safer-buffer/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Modern Buffer API polyfill without footguns",
- "devDependencies": {
- "standard": "^11.0.1",
- "tape": "^4.9.0"
- },
- "files": [
- "Porting-Buffer.md",
- "Readme.md",
- "tests.js",
- "dangerous.js",
- "safer.js"
- ],
- "homepage": "https://github.com/ChALkeR/safer-buffer#readme",
- "license": "MIT",
- "main": "safer.js",
- "name": "safer-buffer",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/ChALkeR/safer-buffer.git"
- },
- "scripts": {
- "browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js",
- "test": "standard && tape tests.js"
- },
- "version": "2.1.2"
-}
diff --git a/node_modules/safer-buffer/safer.js b/node_modules/safer-buffer/safer.js
deleted file mode 100644
index 37c7e1a..0000000
--- a/node_modules/safer-buffer/safer.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/* eslint-disable node/no-deprecated-api */
-
-'use strict'
-
-var buffer = require('buffer')
-var Buffer = buffer.Buffer
-
-var safer = {}
-
-var key
-
-for (key in buffer) {
- if (!buffer.hasOwnProperty(key)) continue
- if (key === 'SlowBuffer' || key === 'Buffer') continue
- safer[key] = buffer[key]
-}
-
-var Safer = safer.Buffer = {}
-for (key in Buffer) {
- if (!Buffer.hasOwnProperty(key)) continue
- if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue
- Safer[key] = Buffer[key]
-}
-
-safer.Buffer.prototype = Buffer.prototype
-
-if (!Safer.from || Safer.from === Uint8Array.from) {
- Safer.from = function (value, encodingOrOffset, length) {
- if (typeof value === 'number') {
- throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value)
- }
- if (value && typeof value.length === 'undefined') {
- throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value)
- }
- return Buffer(value, encodingOrOffset, length)
- }
-}
-
-if (!Safer.alloc) {
- Safer.alloc = function (size, fill, encoding) {
- if (typeof size !== 'number') {
- throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size)
- }
- if (size < 0 || size >= 2 * (1 << 30)) {
- throw new RangeError('The value "' + size + '" is invalid for option "size"')
- }
- var buf = Buffer(size)
- if (!fill || fill.length === 0) {
- buf.fill(0)
- } else if (typeof encoding === 'string') {
- buf.fill(fill, encoding)
- } else {
- buf.fill(fill)
- }
- return buf
- }
-}
-
-if (!safer.kStringMaxLength) {
- try {
- safer.kStringMaxLength = process.binding('buffer').kStringMaxLength
- } catch (e) {
- // we can't determine kStringMaxLength in environments where process.binding
- // is unsupported, so let's not set it
- }
-}
-
-if (!safer.constants) {
- safer.constants = {
- MAX_LENGTH: safer.kMaxLength
- }
- if (safer.kStringMaxLength) {
- safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength
- }
-}
-
-module.exports = safer
diff --git a/node_modules/safer-buffer/tests.js b/node_modules/safer-buffer/tests.js
deleted file mode 100644
index 7ed2777..0000000
--- a/node_modules/safer-buffer/tests.js
+++ /dev/null
@@ -1,406 +0,0 @@
-/* eslint-disable node/no-deprecated-api */
-
-'use strict'
-
-var test = require('tape')
-
-var buffer = require('buffer')
-
-var index = require('./')
-var safer = require('./safer')
-var dangerous = require('./dangerous')
-
-/* Inheritance tests */
-
-test('Default is Safer', function (t) {
- t.equal(index, safer)
- t.notEqual(safer, dangerous)
- t.notEqual(index, dangerous)
- t.end()
-})
-
-test('Is not a function', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(typeof impl, 'object')
- t.equal(typeof impl.Buffer, 'object')
- });
- [buffer].forEach(function (impl) {
- t.equal(typeof impl, 'object')
- t.equal(typeof impl.Buffer, 'function')
- })
- t.end()
-})
-
-test('Constructor throws', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.throws(function () { impl.Buffer() })
- t.throws(function () { impl.Buffer(0) })
- t.throws(function () { impl.Buffer('a') })
- t.throws(function () { impl.Buffer('a', 'utf-8') })
- t.throws(function () { return new impl.Buffer() })
- t.throws(function () { return new impl.Buffer(0) })
- t.throws(function () { return new impl.Buffer('a') })
- t.throws(function () { return new impl.Buffer('a', 'utf-8') })
- })
- t.end()
-})
-
-test('Safe methods exist', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(typeof impl.Buffer.alloc, 'function', 'alloc')
- t.equal(typeof impl.Buffer.from, 'function', 'from')
- })
- t.end()
-})
-
-test('Unsafe methods exist only in Dangerous', function (t) {
- [index, safer].forEach(function (impl) {
- t.equal(typeof impl.Buffer.allocUnsafe, 'undefined')
- t.equal(typeof impl.Buffer.allocUnsafeSlow, 'undefined')
- });
- [dangerous].forEach(function (impl) {
- t.equal(typeof impl.Buffer.allocUnsafe, 'function')
- t.equal(typeof impl.Buffer.allocUnsafeSlow, 'function')
- })
- t.end()
-})
-
-test('Generic methods/properties are defined and equal', function (t) {
- ['poolSize', 'isBuffer', 'concat', 'byteLength'].forEach(function (method) {
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl.Buffer[method], buffer.Buffer[method], method)
- t.notEqual(typeof impl.Buffer[method], 'undefined', method)
- })
- })
- t.end()
-})
-
-test('Built-in buffer static methods/properties are inherited', function (t) {
- Object.keys(buffer).forEach(function (method) {
- if (method === 'SlowBuffer' || method === 'Buffer') return;
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl[method], buffer[method], method)
- t.notEqual(typeof impl[method], 'undefined', method)
- })
- })
- t.end()
-})
-
-test('Built-in Buffer static methods/properties are inherited', function (t) {
- Object.keys(buffer.Buffer).forEach(function (method) {
- if (method === 'allocUnsafe' || method === 'allocUnsafeSlow') return;
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl.Buffer[method], buffer.Buffer[method], method)
- t.notEqual(typeof impl.Buffer[method], 'undefined', method)
- })
- })
- t.end()
-})
-
-test('.prototype property of Buffer is inherited', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl.Buffer.prototype, buffer.Buffer.prototype, 'prototype')
- t.notEqual(typeof impl.Buffer.prototype, 'undefined', 'prototype')
- })
- t.end()
-})
-
-test('All Safer methods are present in Dangerous', function (t) {
- Object.keys(safer).forEach(function (method) {
- if (method === 'Buffer') return;
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl[method], safer[method], method)
- if (method !== 'kStringMaxLength') {
- t.notEqual(typeof impl[method], 'undefined', method)
- }
- })
- })
- Object.keys(safer.Buffer).forEach(function (method) {
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl.Buffer[method], safer.Buffer[method], method)
- t.notEqual(typeof impl.Buffer[method], 'undefined', method)
- })
- })
- t.end()
-})
-
-test('Safe methods from Dangerous methods are present in Safer', function (t) {
- Object.keys(dangerous).forEach(function (method) {
- if (method === 'Buffer') return;
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl[method], dangerous[method], method)
- if (method !== 'kStringMaxLength') {
- t.notEqual(typeof impl[method], 'undefined', method)
- }
- })
- })
- Object.keys(dangerous.Buffer).forEach(function (method) {
- if (method === 'allocUnsafe' || method === 'allocUnsafeSlow') return;
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl.Buffer[method], dangerous.Buffer[method], method)
- t.notEqual(typeof impl.Buffer[method], 'undefined', method)
- })
- })
- t.end()
-})
-
-/* Behaviour tests */
-
-test('Methods return Buffers', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0)))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0, 10)))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0, 'a')))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(10)))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(10, 'x')))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(9, 'ab')))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.from('')))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.from('string')))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.from('string', 'utf-8')))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64')))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.from([0, 42, 3])))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.from(new Uint8Array([0, 42, 3]))))
- t.ok(buffer.Buffer.isBuffer(impl.Buffer.from([])))
- });
- ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) {
- t.ok(buffer.Buffer.isBuffer(dangerous.Buffer[method](0)))
- t.ok(buffer.Buffer.isBuffer(dangerous.Buffer[method](10)))
- })
- t.end()
-})
-
-test('Constructor is buffer.Buffer', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl.Buffer.alloc(0).constructor, buffer.Buffer)
- t.equal(impl.Buffer.alloc(0, 10).constructor, buffer.Buffer)
- t.equal(impl.Buffer.alloc(0, 'a').constructor, buffer.Buffer)
- t.equal(impl.Buffer.alloc(10).constructor, buffer.Buffer)
- t.equal(impl.Buffer.alloc(10, 'x').constructor, buffer.Buffer)
- t.equal(impl.Buffer.alloc(9, 'ab').constructor, buffer.Buffer)
- t.equal(impl.Buffer.from('').constructor, buffer.Buffer)
- t.equal(impl.Buffer.from('string').constructor, buffer.Buffer)
- t.equal(impl.Buffer.from('string', 'utf-8').constructor, buffer.Buffer)
- t.equal(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64').constructor, buffer.Buffer)
- t.equal(impl.Buffer.from([0, 42, 3]).constructor, buffer.Buffer)
- t.equal(impl.Buffer.from(new Uint8Array([0, 42, 3])).constructor, buffer.Buffer)
- t.equal(impl.Buffer.from([]).constructor, buffer.Buffer)
- });
- [0, 10, 100].forEach(function (arg) {
- t.equal(dangerous.Buffer.allocUnsafe(arg).constructor, buffer.Buffer)
- t.equal(dangerous.Buffer.allocUnsafeSlow(arg).constructor, buffer.SlowBuffer(0).constructor)
- })
- t.end()
-})
-
-test('Invalid calls throw', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.throws(function () { impl.Buffer.from(0) })
- t.throws(function () { impl.Buffer.from(10) })
- t.throws(function () { impl.Buffer.from(10, 'utf-8') })
- t.throws(function () { impl.Buffer.from('string', 'invalid encoding') })
- t.throws(function () { impl.Buffer.from(-10) })
- t.throws(function () { impl.Buffer.from(1e90) })
- t.throws(function () { impl.Buffer.from(Infinity) })
- t.throws(function () { impl.Buffer.from(-Infinity) })
- t.throws(function () { impl.Buffer.from(NaN) })
- t.throws(function () { impl.Buffer.from(null) })
- t.throws(function () { impl.Buffer.from(undefined) })
- t.throws(function () { impl.Buffer.from() })
- t.throws(function () { impl.Buffer.from({}) })
- t.throws(function () { impl.Buffer.alloc('') })
- t.throws(function () { impl.Buffer.alloc('string') })
- t.throws(function () { impl.Buffer.alloc('string', 'utf-8') })
- t.throws(function () { impl.Buffer.alloc('b25ldHdvdGhyZWU=', 'base64') })
- t.throws(function () { impl.Buffer.alloc(-10) })
- t.throws(function () { impl.Buffer.alloc(1e90) })
- t.throws(function () { impl.Buffer.alloc(2 * (1 << 30)) })
- t.throws(function () { impl.Buffer.alloc(Infinity) })
- t.throws(function () { impl.Buffer.alloc(-Infinity) })
- t.throws(function () { impl.Buffer.alloc(null) })
- t.throws(function () { impl.Buffer.alloc(undefined) })
- t.throws(function () { impl.Buffer.alloc() })
- t.throws(function () { impl.Buffer.alloc([]) })
- t.throws(function () { impl.Buffer.alloc([0, 42, 3]) })
- t.throws(function () { impl.Buffer.alloc({}) })
- });
- ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) {
- t.throws(function () { dangerous.Buffer[method]('') })
- t.throws(function () { dangerous.Buffer[method]('string') })
- t.throws(function () { dangerous.Buffer[method]('string', 'utf-8') })
- t.throws(function () { dangerous.Buffer[method](2 * (1 << 30)) })
- t.throws(function () { dangerous.Buffer[method](Infinity) })
- if (dangerous.Buffer[method] === buffer.Buffer.allocUnsafe) {
- t.skip('Skipping, older impl of allocUnsafe coerced negative sizes to 0')
- } else {
- t.throws(function () { dangerous.Buffer[method](-10) })
- t.throws(function () { dangerous.Buffer[method](-1e90) })
- t.throws(function () { dangerous.Buffer[method](-Infinity) })
- }
- t.throws(function () { dangerous.Buffer[method](null) })
- t.throws(function () { dangerous.Buffer[method](undefined) })
- t.throws(function () { dangerous.Buffer[method]() })
- t.throws(function () { dangerous.Buffer[method]([]) })
- t.throws(function () { dangerous.Buffer[method]([0, 42, 3]) })
- t.throws(function () { dangerous.Buffer[method]({}) })
- })
- t.end()
-})
-
-test('Buffers have appropriate lengths', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.equal(impl.Buffer.alloc(0).length, 0)
- t.equal(impl.Buffer.alloc(10).length, 10)
- t.equal(impl.Buffer.from('').length, 0)
- t.equal(impl.Buffer.from('string').length, 6)
- t.equal(impl.Buffer.from('string', 'utf-8').length, 6)
- t.equal(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64').length, 11)
- t.equal(impl.Buffer.from([0, 42, 3]).length, 3)
- t.equal(impl.Buffer.from(new Uint8Array([0, 42, 3])).length, 3)
- t.equal(impl.Buffer.from([]).length, 0)
- });
- ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) {
- t.equal(dangerous.Buffer[method](0).length, 0)
- t.equal(dangerous.Buffer[method](10).length, 10)
- })
- t.end()
-})
-
-test('Buffers have appropriate lengths (2)', function (t) {
- t.equal(index.Buffer.alloc, safer.Buffer.alloc)
- t.equal(index.Buffer.alloc, dangerous.Buffer.alloc)
- var ok = true;
- [ safer.Buffer.alloc,
- dangerous.Buffer.allocUnsafe,
- dangerous.Buffer.allocUnsafeSlow
- ].forEach(function (method) {
- for (var i = 0; i < 1e2; i++) {
- var length = Math.round(Math.random() * 1e5)
- var buf = method(length)
- if (!buffer.Buffer.isBuffer(buf)) ok = false
- if (buf.length !== length) ok = false
- }
- })
- t.ok(ok)
- t.end()
-})
-
-test('.alloc(size) is zero-filled and has correct length', function (t) {
- t.equal(index.Buffer.alloc, safer.Buffer.alloc)
- t.equal(index.Buffer.alloc, dangerous.Buffer.alloc)
- var ok = true
- for (var i = 0; i < 1e2; i++) {
- var length = Math.round(Math.random() * 2e6)
- var buf = index.Buffer.alloc(length)
- if (!buffer.Buffer.isBuffer(buf)) ok = false
- if (buf.length !== length) ok = false
- var j
- for (j = 0; j < length; j++) {
- if (buf[j] !== 0) ok = false
- }
- buf.fill(1)
- for (j = 0; j < length; j++) {
- if (buf[j] !== 1) ok = false
- }
- }
- t.ok(ok)
- t.end()
-})
-
-test('.allocUnsafe / .allocUnsafeSlow are fillable and have correct lengths', function (t) {
- ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) {
- var ok = true
- for (var i = 0; i < 1e2; i++) {
- var length = Math.round(Math.random() * 2e6)
- var buf = dangerous.Buffer[method](length)
- if (!buffer.Buffer.isBuffer(buf)) ok = false
- if (buf.length !== length) ok = false
- buf.fill(0, 0, length)
- var j
- for (j = 0; j < length; j++) {
- if (buf[j] !== 0) ok = false
- }
- buf.fill(1, 0, length)
- for (j = 0; j < length; j++) {
- if (buf[j] !== 1) ok = false
- }
- }
- t.ok(ok, method)
- })
- t.end()
-})
-
-test('.alloc(size, fill) is `fill`-filled', function (t) {
- t.equal(index.Buffer.alloc, safer.Buffer.alloc)
- t.equal(index.Buffer.alloc, dangerous.Buffer.alloc)
- var ok = true
- for (var i = 0; i < 1e2; i++) {
- var length = Math.round(Math.random() * 2e6)
- var fill = Math.round(Math.random() * 255)
- var buf = index.Buffer.alloc(length, fill)
- if (!buffer.Buffer.isBuffer(buf)) ok = false
- if (buf.length !== length) ok = false
- for (var j = 0; j < length; j++) {
- if (buf[j] !== fill) ok = false
- }
- }
- t.ok(ok)
- t.end()
-})
-
-test('.alloc(size, fill) is `fill`-filled', function (t) {
- t.equal(index.Buffer.alloc, safer.Buffer.alloc)
- t.equal(index.Buffer.alloc, dangerous.Buffer.alloc)
- var ok = true
- for (var i = 0; i < 1e2; i++) {
- var length = Math.round(Math.random() * 2e6)
- var fill = Math.round(Math.random() * 255)
- var buf = index.Buffer.alloc(length, fill)
- if (!buffer.Buffer.isBuffer(buf)) ok = false
- if (buf.length !== length) ok = false
- for (var j = 0; j < length; j++) {
- if (buf[j] !== fill) ok = false
- }
- }
- t.ok(ok)
- t.deepEqual(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 97))
- t.notDeepEqual(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 98))
-
- var tmp = new buffer.Buffer(2)
- tmp.fill('ok')
- if (tmp[1] === tmp[0]) {
- // Outdated Node.js
- t.deepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('ooooo'))
- } else {
- t.deepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('okoko'))
- }
- t.notDeepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('kokok'))
-
- t.end()
-})
-
-test('safer.Buffer.from returns results same as Buffer constructor', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.deepEqual(impl.Buffer.from(''), new buffer.Buffer(''))
- t.deepEqual(impl.Buffer.from('string'), new buffer.Buffer('string'))
- t.deepEqual(impl.Buffer.from('string', 'utf-8'), new buffer.Buffer('string', 'utf-8'))
- t.deepEqual(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), new buffer.Buffer('b25ldHdvdGhyZWU=', 'base64'))
- t.deepEqual(impl.Buffer.from([0, 42, 3]), new buffer.Buffer([0, 42, 3]))
- t.deepEqual(impl.Buffer.from(new Uint8Array([0, 42, 3])), new buffer.Buffer(new Uint8Array([0, 42, 3])))
- t.deepEqual(impl.Buffer.from([]), new buffer.Buffer([]))
- })
- t.end()
-})
-
-test('safer.Buffer.from returns consistent results', function (t) {
- [index, safer, dangerous].forEach(function (impl) {
- t.deepEqual(impl.Buffer.from(''), impl.Buffer.alloc(0))
- t.deepEqual(impl.Buffer.from([]), impl.Buffer.alloc(0))
- t.deepEqual(impl.Buffer.from(new Uint8Array([])), impl.Buffer.alloc(0))
- t.deepEqual(impl.Buffer.from('string', 'utf-8'), impl.Buffer.from('string'))
- t.deepEqual(impl.Buffer.from('string'), impl.Buffer.from([115, 116, 114, 105, 110, 103]))
- t.deepEqual(impl.Buffer.from('string'), impl.Buffer.from(impl.Buffer.from('string')))
- t.deepEqual(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), impl.Buffer.from('onetwothree'))
- t.notDeepEqual(impl.Buffer.from('b25ldHdvdGhyZWU='), impl.Buffer.from('onetwothree'))
- })
- t.end()
-})
diff --git a/node_modules/sass-graph/CHANGELOG.md b/node_modules/sass-graph/CHANGELOG.md
deleted file mode 100644
index c21889a..0000000
--- a/node_modules/sass-graph/CHANGELOG.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Change Log
-All notable changes to this project will be documented in this file.
-
-## [next]
-### Features
-
-### Fixes
-
-### Tests
-
-## [2.2.4]
-### Dependencies
-
-- yargs@^7.0.0 (@alan-agius4, #84)
-
-## [2.2.3]
-### Dependencies
-
-- scss-tokenizer@^0.2.3 (@xzyfer)
-
-## [2.2.2]
-### Fixes
-
-- Babel runtime error messages (@xzyfer, #76 #77)
-
-### Dependencies
-
-- scss-tokenizer@^0.2.1 (@xzyfer)
-
-## [2.2.1]
-### Fixes
-
-- Babel runtime error messages (@STRML, #76 #77)
-
-### Dependencies
-
-- scss-tokenizer@^0.2.0
-
-## [2.2.0]
-### Features
-
-- Replace `@import` regexes with [scss-tokenizer](https://www.npmjs.com/package/scss-tokenizer) (@xzyfer, #68)
-- Add support for the old indented (`.sass`) syntax (@xzyfer, #31)
-- Add an option to follow symbolic links (@ludwiktrammer, #74)
-
-### Fixes
-
-- Replaces deprecated `fs.existsSync` (@martinheidegger, #29)
-
-### Tests
-
-- Significantly clean up test suite (@xzyfer, #69)
-
-### Dependencies
-
-- yargs@^6.6.0
-- mocha@^3.2.0
-
-## [2.1.2]
-### Fixes
-
-- Remove non-essential files from npm package (@jorrit, #48)
-- Update yargs to version 4.7.1 (@greenkeeperio-bot, #46)
-- Update glob to version 7.0.0 (@greenkeeperio-bot, #36)
-
-## [2.1.1]
-### Fixes
-
-- Don't add directory `@import`s to graph - [@niksy](https://github.com/niksy)
-
-## [2.1.0]
-### Features
-
-- Update to lodash 4 - [@nightwolfz](https://github.com/nightwolfz)
-
-### Fixes
-
-- Fixed directories with extensions being treated as files - [@niksy](https://github.com/niksy)
-
-## [2.0.1]
-### Fixes
-- Fixed tests for Windows - [@pleunv](https://github.com/pleunv)
-
-## [2.0.0]
-### BREAKING CHANGES
-- `.sass` files are not included in the graph by default. Use the `-e .sass` flag.
-
-### Features
-- Configurable file extensions - [@dannymidnight](https://github.com/dannymidnight), [@xzyfer](https://github.com/xzyfer)
-
-### Fixes
-- Prioritize cwd when resolving load paths - [@schnerd](https://github.com/schnerd)
-
-### Tests
-- Added test for prioritizing cwd when resolving load paths - [@xzyfer](https://github.com/xzyfer)
-
-## [1.3.0]
-### Features
-- Add support for indented syntax - [@vegetableman](https://github.com/vegetableman)
-
-## [1.2.0]
-### Features
-- Add support for custom imports - [@kevin-smets](https://github.com/kevin-smets)
-
-## [1.1.0] - 2015-03-18
-### Fixes
-- Only strip extension for css, scss, sass files - [@nervo](https://github.com/nervo)
-
-## [1.0.4] - 2015-03-03
-### Tests
-- Added a test for nested imports - [@kevin-smets](https://github.com/kevin-smets)
-
-## [1.0.3] - 2015-02-02
-### Fixes
-- Replace incorrect usage of `for..in` loops with simple `for` loops
-
-## [1.0.2] - 2015-02-02
-### Fixes
-- Don't iterate over inherited object properties
-
-## [1.0.1] - 2015-01-05
-### Fixes
-- Handle errors in the visitor
-
-## [1.0.0] - 2015-01-05
-
-Initial stable release
diff --git a/node_modules/sass-graph/bin/sassgraph b/node_modules/sass-graph/bin/sassgraph
deleted file mode 100755
index dd793fb..0000000
--- a/node_modules/sass-graph/bin/sassgraph
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/usr/bin/env node
-var fs = require('fs');
-var path = require('path');
-
-var command, directory, file;
-
-var yargs = require('yargs')
- .usage('Usage: $0 <command> [options] <dir> [file]')
- // .demand(1)
-
- .command('ancestors', 'Output the ancestors')
- .command('descendents', 'Output the descendents')
-
- .example('$0 ancestors -I src src/ src/_footer.scss', 'outputs the ancestors of src/_footer.scss')
-
- .option('I', {
- alias: 'load-path',
- default: [process.cwd()],
- describe: 'Add directories to the sass load path',
- type: 'array',
- })
-
- .option('e', {
- alias: 'extensions',
- default: ['scss', 'css', 'sass'],
- describe: 'File extensions to include in the graph',
- type: 'array',
- })
-
- .option('f', {
- alias: 'follow',
- default: false,
- describe: 'Follow symbolic links',
- type: 'bool',
- })
-
- .option('j', {
- alias: 'json',
- default: false,
- describe: 'Output the index in json',
- type: 'bool',
- })
-
- .version(function() {
- return require('../package').version;
- })
- .alias('v', 'version')
-
- .help('h')
- .alias('h', 'help');
-
-var argv = yargs.argv;
-
-if (argv._.length === 0) {
- yargs.showHelp();
- process.exit(1);
-}
-
-if (['ancestors', 'descendents'].indexOf(argv._[0]) !== -1) {
- command = argv._.shift();
-}
-
-if (argv._ && path.extname(argv._[0]) === '') {
- directory = argv._.shift();
-}
-
-if (argv._ && path.extname(argv._[0])) {
- file = argv._.shift();
-}
-
-
-try {
- if (!directory) {
- throw new Error('Missing directory');
- }
-
- if (!command && !argv.json) {
- throw new Error('Missing command');
- }
-
- if (!file && (command === 'ancestors' || command === 'descendents')) {
- throw new Error(command + ' command requires a file');
- }
-
- var loadPaths = argv.loadPath;
- if(process.env.SASS_PATH) {
- loadPaths = loadPaths.concat(process.env.SASS_PATH.split(/:/).map(function(f) {
- return path.resolve(f);
- }));
- }
-
- var graph = require('../').parseDir(directory, {
- extensions: argv.extensions,
- loadPaths: loadPaths,
- follow: argv.follow,
- });
-
- if(argv.json) {
- console.log(JSON.stringify(graph.index, null, 4));
- process.exit(0);
- }
-
- if (command === 'ancestors') {
- graph.visitAncestors(path.resolve(file), function(f) {
- console.log(f);
- });
- }
-
- if (command === 'descendents') {
- graph.visitDescendents(path.resolve(file), function(f) {
- console.log(f);
- });
- }
-} catch(e) {
- if (e.code === 'ENOENT') {
- console.error('Error: no such file or directory "' + e.path + '"');
- }
- else {
- console.log('Error: ' + e.message);
- }
-
- // console.log(e.stack);
- process.exit(1);
-}
diff --git a/node_modules/sass-graph/package.json b/node_modules/sass-graph/package.json
deleted file mode 100644
index 5a5a4c7..0000000
--- a/node_modules/sass-graph/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "sass-graph@2.2.5",
- "_id": "sass-graph@2.2.5",
- "_inBundle": false,
- "_integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==",
- "_location": "/sass-graph",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "sass-graph@2.2.5",
- "name": "sass-graph",
- "escapedName": "sass-graph",
- "rawSpec": "2.2.5",
- "saveSpec": null,
- "fetchSpec": "2.2.5"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz",
- "_shasum": "a981c87446b8319d96dce0671e487879bd24c2e8",
- "_spec": "sass-graph@2.2.5",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/node-sass",
- "author": {
- "name": "xzyfer"
- },
- "bin": {
- "sassgraph": "bin/sassgraph"
- },
- "bugs": {
- "url": "https://github.com/xzyfer/sass-graph/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "glob": "^7.0.0",
- "lodash": "^4.0.0",
- "scss-tokenizer": "^0.2.3",
- "yargs": "^13.3.2"
- },
- "deprecated": false,
- "description": "Parse sass files and extract a graph of imports",
- "devDependencies": {
- "assert": "^1.3.0",
- "chai": "^3.5.0",
- "coveralls": "^2.13.0",
- "mocha": "^3.2.0",
- "nyc": "^10.2.0"
- },
- "directories": {
- "bin": "./bin"
- },
- "files": [
- "bin",
- "parse-imports.js",
- "sass-graph.js"
- ],
- "homepage": "https://github.com/xzyfer/sass-graph#readme",
- "keywords": [
- "sass",
- "graph"
- ],
- "license": "MIT",
- "main": "sass-graph.js",
- "name": "sass-graph",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/xzyfer/sass-graph.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "test": "nyc mocha"
- },
- "version": "2.2.5"
-}
diff --git a/node_modules/sass-graph/parse-imports.js b/node_modules/sass-graph/parse-imports.js
deleted file mode 100644
index 634253e..0000000
--- a/node_modules/sass-graph/parse-imports.js
+++ /dev/null
@@ -1,64 +0,0 @@
-var tokenizer = require('scss-tokenizer');
-
-function parseImports(content, isIndentedSyntax) {
- var tokens = tokenizer.tokenize(content);
- var results = [];
- var tmp = '';
- var inImport = false;
- var inParen = false;
- var prevToken = tokens[0];
-
- var i, token;
- for (i = 1; i < tokens.length; i++) {
- token = tokens[i];
-
- if (inImport && !inParen && token[0] === 'string') {
- results.push(token[1]);
- }
- else if (token[1] === 'import' && prevToken[1] === '@') {
- if (inImport && !isIndentedSyntax) {
- throw new Error('Encountered invalid @import syntax.');
- }
-
- inImport = true;
- }
- else if (inImport && !inParen && (token[0] === 'ident' || token[0] === '/')) {
- tmp += token[1];
- }
- else if (inImport && !inParen && (token[0] === 'space' || token[0] === 'newline')) {
- if (tmp !== '') {
- results.push(tmp);
- tmp = '';
-
- if (isIndentedSyntax) {
- inImport = false;
- }
- }
- }
- else if (inImport && token[0] === ';') {
- inImport = false;
-
- if (tmp !== '') {
- results.push(tmp);
- tmp = '';
- }
- }
- else if (inImport && token[0] === '(') {
- inParen = true;
- tmp = '';
- }
- else if (inParen && token[0] === ')') {
- inParen = false;
- }
-
- prevToken = token;
- }
-
- if (tmp !== '') {
- results.push(tmp);
- }
-
- return results;
-}
-
-module.exports = parseImports;
diff --git a/node_modules/sass-graph/readme.md b/node_modules/sass-graph/readme.md
deleted file mode 100644
index 1cb67fb..0000000
--- a/node_modules/sass-graph/readme.md
+++ /dev/null
@@ -1,123 +0,0 @@
-# Sass Graph
-
-Parses Sass files in a directory and exposes a graph of dependencies
-
-[![Build Status](https://travis-ci.org/xzyfer/sass-graph.svg?branch=master)](https://travis-ci.org/xzyfer/sass-graph)
-[![Coverage Status](https://coveralls.io/repos/github/xzyfer/sass-graph/badge.svg?branch=master)](https://coveralls.io/github/xzyfer/sass-graph?branch=master)
-[![npm version](https://badge.fury.io/js/sass-graph.svg)](http://badge.fury.io/js/sass-graph)
-[![Dependency Status](https://david-dm.org/xzyfer/sass-graph.svg?theme=shields.io)](https://david-dm.org/xzyfer/sass-graph)
-[![devDependency Status](https://david-dm.org/xzyfer/sass-graph/dev-status.svg?theme=shields.io)](https://david-dm.org/xzyfer/sass-graph#info=devDependencies)
-
-## Install
-
-Install with [npm](https://npmjs.org/package/sass-graph)
-
-```
-npm install --save-dev sass-graph
-```
-
-## Usage
-
-Usage as a Node library:
-
-```js
-var sassGraph = require('./sass-graph');
-```
-
-Usage as a command line tool:
-
-The command line tool will parse a graph and then either display ancestors, descendents or both.
-
-```
-$ ./bin/sassgraph --help
-Usage: bin/sassgraph <command> [options] <dir> [file]
-
-Commands:
- ancestors Output the ancestors
- descendents Output the descendents
-
-Options:
- -I, --load-path Add directories to the sass load path
- -e, --extensions File extensions to include in the graph
- -j, --json Output the index in json
- -h, --help Show help
- -v, --version Show version number
-
-Examples:
- ./bin/sassgraph descendents test/fixtures test/fixtures/a.scss
- /path/to/test/fixtures/b.scss
- /path/to/test/fixtures/_c.scss
-```
-
-## API
-
-#### parseDir
-
-Parses a directory and builds a dependency graph of all requested file extensions.
-
-#### parseFile
-
-Parses a file and builds its dependency graph.
-
-## Options
-
-#### loadPaths
-
-Type: `Array`
-Default: `[process.cwd]`
-
-Directories to use when resolved `@import` directives.
-
-#### extensions
-
-Type: `Array`
-Default: `['scss', 'css', 'sass']`
-
-File types to be parsed.
-
-#### follow
-
-Type: `Boolean`
-Default: `false`
-
-Follow symbolic links.
-
-## Example
-
-```js
-var sassGraph = require('./sass-graph');
-console.log(sassGraph.parseDir('test/fixtures'));
-
-//{ index: {,
-// '/path/to/test/fixtures/a.scss': {
-// imports: ['b.scss'],
-// importedBy: [],
-// },
-// '/path/to/test/fixtures/b.scss': {
-// imports: ['_c.scss'],
-// importedBy: ['a.scss'],
-// },
-// '/path/to/test/fixtures/_c.scss': {
-// imports: [],
-// importedBy: ['b/scss'],
-// },
-//}}
-```
-
-## Running Mocha tests
-
-You can run the tests by executing the following commands:
-
-```
-npm install
-npm test
-```
-
-## Authors
-
-Sass graph was originally written by [Lachlan Donald](http://lachlan.me).
-It is now maintained by [Michael Mifsud](http://twitter.com/xzyfer).
-
-## License
-
-MIT
diff --git a/node_modules/sass-graph/sass-graph.js b/node_modules/sass-graph/sass-graph.js
deleted file mode 100644
index 5d5aba0..0000000
--- a/node_modules/sass-graph/sass-graph.js
+++ /dev/null
@@ -1,160 +0,0 @@
-'use strict';
-
-var fs = require('fs');
-var path = require('path');
-var _ = require('lodash');
-var glob = require('glob');
-var parseImports = require('./parse-imports');
-
-// resolve a sass module to a path
-function resolveSassPath(sassPath, loadPaths, extensions) {
- // trim sass file extensions
- var re = new RegExp('(\.('+extensions.join('|')+'))$', 'i');
- var sassPathName = sassPath.replace(re, '');
- // check all load paths
- var i, j, length = loadPaths.length, scssPath, partialPath;
- for (i = 0; i < length; i++) {
- for (j = 0; j < extensions.length; j++) {
- scssPath = path.normalize(loadPaths[i] + '/' + sassPathName + '.' + extensions[j]);
- try {
- if (fs.lstatSync(scssPath).isFile()) {
- return scssPath;
- }
- } catch (e) {}
- }
-
- // special case for _partials
- for (j = 0; j < extensions.length; j++) {
- scssPath = path.normalize(loadPaths[i] + '/' + sassPathName + '.' + extensions[j]);
- partialPath = path.join(path.dirname(scssPath), '_' + path.basename(scssPath));
- try {
- if (fs.lstatSync(partialPath).isFile()) {
- return partialPath;
- }
- } catch (e) {}
- }
- }
-
- // File to import not found or unreadable so we assume this is a custom import
- return false;
-}
-
-function Graph(options, dir) {
- this.dir = dir;
- this.extensions = options.extensions || [];
- this.index = {};
- this.follow = options.follow || false;
- this.loadPaths = _(options.loadPaths).map(function(p) {
- return path.resolve(p);
- }).value();
-
- if (dir) {
- var graph = this;
- _.each(glob.sync(dir+'/**/*.@('+this.extensions.join('|')+')', { dot: true, nodir: true, follow: this.follow }), function(file) {
- graph.addFile(path.resolve(file));
- });
- }
-}
-
-// add a sass file to the graph
-Graph.prototype.addFile = function(filepath, parent) {
- var entry = this.index[filepath] = this.index[filepath] || {
- imports: [],
- importedBy: [],
- modified: fs.statSync(filepath).mtime
- };
-
- var resolvedParent;
- var isIndentedSyntax = path.extname(filepath) === '.sass';
- var imports = parseImports(fs.readFileSync(filepath, 'utf-8'), isIndentedSyntax);
- var cwd = path.dirname(filepath);
-
- var i, length = imports.length, loadPaths, resolved;
- for (i = 0; i < length; i++) {
- loadPaths = _([cwd, this.dir]).concat(this.loadPaths).filter().uniq().value();
- resolved = resolveSassPath(imports[i], loadPaths, this.extensions);
- if (!resolved) continue;
-
- // recurse into dependencies if not already enumerated
- if (!_.includes(entry.imports, resolved)) {
- entry.imports.push(resolved);
- this.addFile(fs.realpathSync(resolved), filepath);
- }
- }
-
- // add link back to parent
- if (parent) {
- resolvedParent = _(parent).intersection(this.loadPaths).value();
-
- if (resolvedParent) {
- resolvedParent = parent.substr(parent.indexOf(resolvedParent));
- } else {
- resolvedParent = parent;
- }
-
- entry.importedBy.push(resolvedParent);
- }
-};
-
-// visits all files that are ancestors of the provided file
-Graph.prototype.visitAncestors = function(filepath, callback) {
- this.visit(filepath, callback, function(err, node) {
- if (err || !node) return [];
- return node.importedBy;
- });
-};
-
-// visits all files that are descendents of the provided file
-Graph.prototype.visitDescendents = function(filepath, callback) {
- this.visit(filepath, callback, function(err, node) {
- if (err || !node) return [];
- return node.imports;
- });
-};
-
-// a generic visitor that uses an edgeCallback to find the edges to traverse for a node
-Graph.prototype.visit = function(filepath, callback, edgeCallback, visited) {
- filepath = fs.realpathSync(filepath);
- var visited = visited || [];
- if (!this.index.hasOwnProperty(filepath)) {
- edgeCallback('Graph doesn\'t contain ' + filepath, null);
- }
- var edges = edgeCallback(null, this.index[filepath]);
-
- var i, length = edges.length;
- for (i = 0; i < length; i++) {
- if (!_.includes(visited, edges[i])) {
- visited.push(edges[i]);
- callback(edges[i], this.index[edges[i]]);
- this.visit(edges[i], callback, edgeCallback, visited);
- }
- }
-};
-
-function processOptions(options) {
- return _.assign({
- loadPaths: [process.cwd()],
- extensions: ['scss', 'css', 'sass'],
- }, options);
-}
-
-module.exports.parseFile = function(filepath, options) {
- if (fs.lstatSync(filepath).isFile()) {
- filepath = path.resolve(filepath);
- options = processOptions(options);
- var graph = new Graph(options);
- graph.addFile(filepath);
- return graph;
- }
- // throws
-};
-
-module.exports.parseDir = function(dirpath, options) {
- if (fs.lstatSync(dirpath).isDirectory()) {
- dirpath = path.resolve(dirpath);
- options = processOptions(options);
- var graph = new Graph(options, dirpath);
- return graph;
- }
- // throws
-};
diff --git a/node_modules/scss-tokenizer/LICENSE b/node_modules/scss-tokenizer/LICENSE
deleted file mode 100644
index eb44a43..0000000
--- a/node_modules/scss-tokenizer/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 sasstools
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/node_modules/scss-tokenizer/README.md b/node_modules/scss-tokenizer/README.md
deleted file mode 100644
index cfcb2c0..0000000
--- a/node_modules/scss-tokenizer/README.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# scss-tokenizer
-A tokenzier for Sass' SCSS syntax
-
-![https://travis-ci.org/sasstools/scss-tokenizer.svg?branch=master](https://img.shields.io/travis/sasstools/scss-tokenizer.svg)
-![https://www.npmjs.com/package/scss-tokenizer](https://img.shields.io/npm/v/scss-tokenizer.svg)
-![https://github.com/sasstools/scss-tokenizer/issues](https://img.shields.io/github/issues/sasstools/scss-tokenizer.svg)
-![](https://img.shields.io/github/license/sasstools/scss-tokenizer.svg)
-
-# Install
-
-```
-npm install scss-tokenizer
-```
-
-# Usage
-
-```js
-var scss = require('scss-tokenizer');
-scss.tokenize(css);
-```
-
-# API
-
-### `tokenize`
-
-Tokenizes source `css` and returns an ordered array of tokens with positional
-data.
-
-```js
-var tokenizer = require('scss-tokenizer');
-var tokens = tokenize.tokenize(css);
-```
-
-Arguments:
-
-* `css (string|#toString)`: String with input CSS or any object
- with `toString()` method, like file stream.
-* `opts (object) optional`: options:
- * `from`: the path to the source CSS file. You should always set `from`,
- because it is used in map generation and in syntax error messages.
-
-# Test
-
-```
-npm test
-```
-
-## Attribution
-
-This project started as a fork of the [PostCSS](https://github.com/postcss/postcss) tokenizer.
diff --git a/node_modules/scss-tokenizer/index.js b/node_modules/scss-tokenizer/index.js
deleted file mode 100644
index 51d496c..0000000
--- a/node_modules/scss-tokenizer/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./lib/entry').default;
diff --git a/node_modules/scss-tokenizer/lib/entry.js b/node_modules/scss-tokenizer/lib/entry.js
deleted file mode 100644
index 282c6b6..0000000
--- a/node_modules/scss-tokenizer/lib/entry.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-exports.__esModule = true;
-
-var _input = require('./input');
-
-var _input2 = _interopRequireDefault(_input);
-
-var _tokenize = require('./tokenize');
-
-var _tokenize2 = _interopRequireDefault(_tokenize);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var scss = {};
-scss.tokenize = function (css) {
- var input = new _input2.default(css);
- return (0, _tokenize2.default)(input);
-};
-
-exports.default = scss; \ No newline at end of file
diff --git a/node_modules/scss-tokenizer/lib/input.js b/node_modules/scss-tokenizer/lib/input.js
deleted file mode 100644
index ffbc009..0000000
--- a/node_modules/scss-tokenizer/lib/input.js
+++ /dev/null
@@ -1,57 +0,0 @@
-'use strict';
-
-exports.__esModule = true;
-
-var _previousMap = require('./previous-map');
-
-var _previousMap2 = _interopRequireDefault(_previousMap);
-
-var _path = require('path');
-
-var _path2 = _interopRequireDefault(_path);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-var sequence = 0;
-
-var Input = function () {
- function Input(css) {
- var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- _classCallCheck(this, Input);
-
- this.css = css.toString();
-
- if (this.css[0] === '\uFEFF' || this.css[0] === '\uFFFE') {
- this.css = this.css.slice(1);
- }
-
- if (opts.from) this.file = _path2.default.resolve(opts.from);
-
- var map = new _previousMap2.default(this.css, opts, this.id);
- if (map.text) {
- this.map = map;
- var file = map.consumer().file;
- if (!this.file && file) this.file = this.mapResolve(file);
- }
-
- if (this.file) {
- this.from = this.file;
- } else {
- sequence += 1;
- this.id = '<input css ' + sequence + '>';
- this.from = this.id;
- }
- if (this.map) this.map.file = this.from;
- }
-
- Input.prototype.mapResolve = function mapResolve(file) {
- return _path2.default.resolve(this.map.consumer().sourceRoot || '.', file);
- };
-
- return Input;
-}();
-
-exports.default = Input; \ No newline at end of file
diff --git a/node_modules/scss-tokenizer/lib/previous-map.js b/node_modules/scss-tokenizer/lib/previous-map.js
deleted file mode 100644
index 034e9ca..0000000
--- a/node_modules/scss-tokenizer/lib/previous-map.js
+++ /dev/null
@@ -1,105 +0,0 @@
-'use strict';
-
-exports.__esModule = true;
-
-var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
-
-var _jsBase = require('js-base64');
-
-var _sourceMap = require('source-map');
-
-var _sourceMap2 = _interopRequireDefault(_sourceMap);
-
-var _path = require('path');
-
-var _path2 = _interopRequireDefault(_path);
-
-var _fs = require('fs');
-
-var _fs2 = _interopRequireDefault(_fs);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-var PreviousMap = function () {
- function PreviousMap(css, opts) {
- _classCallCheck(this, PreviousMap);
-
- this.loadAnnotation(css);
- this.inline = this.startWith(this.annotation, 'data:');
-
- var prev = opts.map ? opts.map.prev : undefined;
- var text = this.loadMap(opts.from, prev);
- if (text) this.text = text;
- }
-
- PreviousMap.prototype.consumer = function consumer() {
- if (!this.consumerCache) {
- this.consumerCache = new _sourceMap2.default.SourceMapConsumer(this.text);
- }
- return this.consumerCache;
- };
-
- PreviousMap.prototype.withContent = function withContent() {
- return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
- };
-
- PreviousMap.prototype.startWith = function startWith(string, start) {
- if (!string) return false;
- return string.substr(0, start.length) === start;
- };
-
- PreviousMap.prototype.loadAnnotation = function loadAnnotation(css) {
- var match = css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);
- if (match) this.annotation = match[1].trim();
- };
-
- PreviousMap.prototype.decodeInline = function decodeInline(text) {
- var uri = 'data:application/json,';
- var base64 = 'data:application/json;base64,';
-
- if (this.startWith(text, uri)) {
- return decodeURIComponent(text.substr(uri.length));
- } else if (this.startWith(text, base64)) {
- return _jsBase.Base64.decode(text.substr(base64.length));
- } else {
- var encoding = text.match(/data:application\/json;([^,]+),/)[1];
- throw new Error('Unsupported source map encoding ' + encoding);
- }
- };
-
- PreviousMap.prototype.loadMap = function loadMap(file, prev) {
- if (prev === false) return false;
-
- if (prev) {
- if (typeof prev === 'string') {
- return prev;
- } else if (prev instanceof _sourceMap2.default.SourceMapConsumer) {
- return _sourceMap2.default.SourceMapGenerator.fromSourceMap(prev).toString();
- } else if (prev instanceof _sourceMap2.default.SourceMapGenerator) {
- return prev.toString();
- } else if ((typeof prev === 'undefined' ? 'undefined' : _typeof(prev)) === 'object' && prev.mappings) {
- return JSON.stringify(prev);
- } else {
- throw new Error('Unsupported previous source map format: ' + prev.toString());
- }
- } else if (this.inline) {
- return this.decodeInline(this.annotation);
- } else if (this.annotation) {
- var map = this.annotation;
- if (file) map = _path2.default.join(_path2.default.dirname(file), map);
-
- this.root = _path2.default.dirname(map);
- if (_fs2.default.existsSync && _fs2.default.existsSync(map)) {
- return _fs2.default.readFileSync(map, 'utf-8').toString().trim();
- } else {
- return false;
- }
- }
- };
-
- return PreviousMap;
-}();
-
-exports.default = PreviousMap; \ No newline at end of file
diff --git a/node_modules/scss-tokenizer/lib/tokenize-comment.js b/node_modules/scss-tokenizer/lib/tokenize-comment.js
deleted file mode 100644
index ade9717..0000000
--- a/node_modules/scss-tokenizer/lib/tokenize-comment.js
+++ /dev/null
@@ -1,148 +0,0 @@
-'use strict';
-
-exports.__esModule = true;
-exports.default = tokenize;
-
-var _input = require('./input');
-
-var _input2 = _interopRequireDefault(_input);
-
-var _tokenizeString = require('./tokenize-string');
-
-var _tokenizeString2 = _interopRequireDefault(_tokenizeString);
-
-var _tokenizeInterpolant2 = require('./tokenize-interpolant');
-
-var _tokenizeInterpolant3 = _interopRequireDefault(_tokenizeInterpolant2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var newline = '\n'.charCodeAt(0),
- space = ' '.charCodeAt(0),
- feed = '\f'.charCodeAt(0),
- tab = '\t'.charCodeAt(0),
- cr = '\r'.charCodeAt(0),
- hash = '#'.charCodeAt(0),
- backslash = '\\'.charCodeAt(0),
- slash = '/'.charCodeAt(0),
- openCurly = '{'.charCodeAt(0),
- closeCurly = '}'.charCodeAt(0),
- asterisk = '*'.charCodeAt(0),
- wordEnd = /[ \n\t\r\(\)\{\},:;@!'"\\]|\*(?=\/)|#(?={)/g;
-
-function tokenize(input, l, p) {
- var tokens = [];
- var css = input.css.valueOf();
-
- var code = void 0,
- next = void 0,
- lines = void 0,
- last = void 0,
- content = void 0,
- escape = void 0,
- nextLine = void 0,
- nextOffset = void 0,
- escaped = void 0,
- escapePos = void 0,
- inInterpolant = void 0,
- inComment = void 0,
- inString = void 0;
-
- var length = css.length;
- var offset = -1;
- var line = l || 1;
- var pos = p || 0;
-
- loop: while (pos < length) {
- code = css.charCodeAt(pos);
-
- if (code === newline) {
- offset = pos;
- line += 1;
- }
-
- switch (code) {
- case space:
- case tab:
- case cr:
- case feed:
- next = pos;
- do {
- next += 1;
- code = css.charCodeAt(next);
- if (code === newline) {
- offset = next;
- line += 1;
- }
- } while (code === space || code === tab || code === cr || code === feed);
-
- tokens.push(['space', css.slice(pos, next)]);
- pos = next - 1;
- break;
-
- case newline:
- tokens.push(['newline', '\n', line, pos - offset]);
- break;
-
- case closeCurly:
- tokens.push(['endInterpolant', '}', line, pos - offset]);
- break;
-
- case backslash:
- next = pos;
- escape = true;
- while (css.charCodeAt(next + 1) === backslash) {
- next += 1;
- escape = !escape;
- }
- code = css.charCodeAt(next + 1);
- if (escape && code !== slash && code !== space && code !== newline && code !== tab && code !== cr && code !== feed) {
- next += 1;
- }
- tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
- pos = next;
- break;
-
- default:
-
- if (code === asterisk && css.charCodeAt(pos + 1) === slash) {
- next = pos;
- pos = next - 1;
- break loop;
- }
-
- if (code === hash && css.charCodeAt(pos + 1) === openCurly) {
- tokens.push(['startInterpolant', '#{', line, pos + 1 - offset]);
- next = pos + 1;
-
- var _tokenizeInterpolant = (0, _tokenizeInterpolant3.default)(input, line, next + 1),
- t = _tokenizeInterpolant.tokens,
- _p = _tokenizeInterpolant.pos;
-
- tokens = tokens.concat(t);
- next = _p;
-
- pos = next;
- break;
- }
-
- wordEnd.lastIndex = pos + 1;
- wordEnd.test(css);
- if (wordEnd.lastIndex === 0) {
- next = css.length - 1;
- } else {
- next = wordEnd.lastIndex - 2;
- }
-
- tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
-
- break;
- }
-
- pos++;
- }
-
- return { tokens: tokens, line: line, pos: pos, offset: offset };
-} \ No newline at end of file
diff --git a/node_modules/scss-tokenizer/lib/tokenize-interpolant.js b/node_modules/scss-tokenizer/lib/tokenize-interpolant.js
deleted file mode 100644
index 415771f..0000000
--- a/node_modules/scss-tokenizer/lib/tokenize-interpolant.js
+++ /dev/null
@@ -1,303 +0,0 @@
-'use strict';
-
-exports.__esModule = true;
-exports.default = tokenize;
-
-var _input = require('./input');
-
-var _input2 = _interopRequireDefault(_input);
-
-var _tokenizeString2 = require('./tokenize-string');
-
-var _tokenizeString3 = _interopRequireDefault(_tokenizeString2);
-
-var _tokenizeComment2 = require('./tokenize-comment');
-
-var _tokenizeComment3 = _interopRequireDefault(_tokenizeComment2);
-
-var _tokenizeInterpolant2 = require('./tokenize-interpolant');
-
-var _tokenizeInterpolant3 = _interopRequireDefault(_tokenizeInterpolant2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var singleQuote = "'".charCodeAt(0),
- doubleQuote = '"'.charCodeAt(0),
- dollar = '$'.charCodeAt(0),
- hash = '#'.charCodeAt(0),
- backslash = '\\'.charCodeAt(0),
- slash = '/'.charCodeAt(0),
- newline = '\n'.charCodeAt(0),
- space = ' '.charCodeAt(0),
- feed = '\f'.charCodeAt(0),
- tab = '\t'.charCodeAt(0),
- cr = '\r'.charCodeAt(0),
- openBracket = '('.charCodeAt(0),
- closeBracket = ')'.charCodeAt(0),
- openCurly = '{'.charCodeAt(0),
- closeCurly = '}'.charCodeAt(0),
- semicolon = ';'.charCodeAt(0),
- asterisk = '*'.charCodeAt(0),
- colon = ':'.charCodeAt(0),
- at = '@'.charCodeAt(0),
- comma = ','.charCodeAt(0),
- plus = '+'.charCodeAt(0),
- minus = '-'.charCodeAt(0),
- decComb = '>'.charCodeAt(0),
- adjComb = '~'.charCodeAt(0),
- number = /[+-]?(\d+(\.\d+)?|\.\d+)|(e[+-]\d+)/gi,
- sQuoteEnd = /(.*?)[^\\](?=((#{)|'))/gm,
- dQuoteEnd = /(.*?)[^\\](?=((#{)|"))/gm,
- wordEnd = /[ \n\t\r\(\)\{\},:;@!'"\\]|\/(?=\*)|#(?={)/g,
- ident = /-?([a-z_]|\\[^\\])([a-z-_0-9]|\\[^\\])*/gi;
-
-function tokenize(input, l, p) {
- var tokens = [];
- var css = input.css.valueOf();
-
- var code = void 0,
- next = void 0,
- quote = void 0,
- lines = void 0,
- last = void 0,
- content = void 0,
- escape = void 0,
- nextLine = void 0,
- nextOffset = void 0,
- escaped = void 0,
- escapePos = void 0,
- inInterpolant = void 0,
- inComment = void 0,
- inString = void 0;
-
- var length = css.length;
- var offset = -1;
- var line = l || 1;
- var pos = p || 0;
-
- loop: while (pos < length) {
- code = css.charCodeAt(pos);
-
- if (code === newline) {
- offset = pos;
- line += 1;
- }
-
- switch (code) {
- case space:
- case tab:
- case cr:
- case feed:
- next = pos;
- do {
- next += 1;
- code = css.charCodeAt(next);
- if (code === newline) {
- offset = next;
- line += 1;
- }
- } while (code === space || code === tab || code === cr || code === feed);
-
- tokens.push(['space', css.slice(pos, next)]);
- pos = next - 1;
- break;
-
- case newline:
- tokens.push(['newline', '\n', line, pos - offset]);
- break;
-
- case plus:
- tokens.push(['+', '+', line, pos - offset]);
- break;
-
- case minus:
- tokens.push(['-', '-', line, pos - offset]);
- break;
-
- case decComb:
- tokens.push(['>', '>', line, pos - offset]);
- break;
-
- case adjComb:
- tokens.push(['~', '~', line, pos - offset]);
- break;
-
- case openCurly:
- tokens.push(['{', '{', line, pos - offset]);
- break;
-
- case closeCurly:
- if (inInterpolant) {
- inInterpolant = false;
- tokens.push(['endInterpolant', '}', line, pos - offset]);
- } else {
- break loop;
- }
- break;
-
- case comma:
- tokens.push([',', ',', line, pos - offset]);
- break;
-
- case dollar:
- tokens.push(['$', '$', line, pos - offset]);
- break;
-
- case colon:
- tokens.push([':', ':', line, pos - offset]);
- break;
-
- case semicolon:
- tokens.push([';', ';', line, pos - offset]);
- break;
-
- case openBracket:
- tokens.push(['(', '(', line, pos - offset]);
- break;
-
- case closeBracket:
- tokens.push([')', ')', line, pos - offset]);
- break;
-
- case singleQuote:
- case doubleQuote:
- quote = code === singleQuote ? "'" : '"';
- tokens.push([quote, quote, line, pos - offset]);
- next = pos + 1;
-
- var _tokenizeString = (0, _tokenizeString3.default)(input, line, next, quote),
- t = _tokenizeString.tokens,
- _p = _tokenizeString.pos;
-
- tokens = tokens.concat(t);
- next = _p;
-
- pos = next;
- break;
-
- case at:
- tokens.push(['@', '@', line, pos - offset]);
- break;
-
- case backslash:
- next = pos;
- escape = true;
- while (css.charCodeAt(next + 1) === backslash) {
- next += 1;
- escape = !escape;
- }
- code = css.charCodeAt(next + 1);
- if (escape && code !== space && code !== newline && code !== tab && code !== cr && code !== feed) {
- next += 1;
- }
- tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
- pos = next;
- break;
-
- default:
- ident.lastIndex = pos;
- number.lastIndex = pos;
- wordEnd.lastIndex = pos;
-
- if (code === slash && css.charCodeAt(pos + 1) === asterisk) {
- inComment = true;
- tokens.push(['startComment', '/*', line, pos + 1 - offset]);
- next = pos + 1;
-
- var _tokenizeComment = (0, _tokenizeComment3.default)(input, line, next + 1),
- _t = _tokenizeComment.tokens,
- _l = _tokenizeComment.line,
- _p2 = _tokenizeComment.pos,
- o = _tokenizeComment.offset;
-
- tokens = tokens.concat(_t);
- next = _p2;
- line = _l;
- offset = o;
-
- pos = next;
- break;
- }
-
- if (code === asterisk && css.charCodeAt(pos + 1) !== slash) {
- tokens.push(['*', '*', line, pos - offset]);
- break;
- }
-
- if (inComment && code === asterisk && css.charCodeAt(pos + 1) === slash) {
- inComment = false;
- tokens.push(['endComment', '*/', line, pos + 1 - offset]);
- pos += 2;
- break;
- }
-
- if (code === slash && css.charCodeAt(pos + 1) !== slash) {
- tokens.push(['/', '/', line, pos - offset]);
- pos += 2;
- break;
- }
-
- if (code === hash && css.charCodeAt(pos + 1) === openCurly) {
- inInterpolant = true;
- tokens.push(['startInterpolant', '#{', line, pos + 1 - offset]);
- next = pos + 1;
-
- var _tokenizeInterpolant = (0, _tokenizeInterpolant3.default)(input, line, next + 1),
- _t2 = _tokenizeInterpolant.tokens,
- _p3 = _tokenizeInterpolant.pos;
-
- tokens = tokens.concat(_t2);
- next = _p3;
-
- pos = next;
- break;
- }
-
- if (code === slash && css.charCodeAt(pos + 1) === slash) {
- next = css.indexOf('\n\n', pos + 2);
- next = next > 0 ? next : css.length;
-
- tokens.push(['scssComment', css.slice(pos, next), line, pos - offset, line, next - offset]);
-
- pos = next;
- break;
- }
-
- if (ident.test(css) && (ident.lastIndex = pos || 1) && ident.exec(css).index === pos) {
- next = ident.lastIndex - 1;
-
- tokens.push(['ident', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
- break;
- }
-
- if (number.test(css) && (number.lastIndex = pos || 1) && number.exec(css).index === pos) {
- next = number.lastIndex - 1;
-
- tokens.push(['number', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
- break;
- }
-
- wordEnd.lastIndex = pos + 1;
- wordEnd.test(css);
- if (wordEnd.lastIndex === 0) {
- next = css.length - 1;
- } else {
- next = wordEnd.lastIndex - 2;
- }
-
- tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
-
- break;
- }
-
- pos++;
- }
-
- return { tokens: tokens, pos: pos };
-} \ No newline at end of file
diff --git a/node_modules/scss-tokenizer/lib/tokenize-string.js b/node_modules/scss-tokenizer/lib/tokenize-string.js
deleted file mode 100644
index 55e7af5..0000000
--- a/node_modules/scss-tokenizer/lib/tokenize-string.js
+++ /dev/null
@@ -1,130 +0,0 @@
-'use strict';
-
-exports.__esModule = true;
-exports.default = tokenize;
-
-var _input = require('./input');
-
-var _input2 = _interopRequireDefault(_input);
-
-var _tokenizeString = require('./tokenize-string');
-
-var _tokenizeString2 = _interopRequireDefault(_tokenizeString);
-
-var _tokenizeInterpolant2 = require('./tokenize-interpolant');
-
-var _tokenizeInterpolant3 = _interopRequireDefault(_tokenizeInterpolant2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var singleQuote = "'".charCodeAt(0),
- doubleQuote = '"'.charCodeAt(0),
- newline = '\n'.charCodeAt(0),
- space = ' '.charCodeAt(0),
- feed = '\f'.charCodeAt(0),
- tab = '\t'.charCodeAt(0),
- cr = '\r'.charCodeAt(0),
- hash = '#'.charCodeAt(0),
- backslash = '\\'.charCodeAt(0),
- slash = '/'.charCodeAt(0),
- openCurly = '{'.charCodeAt(0),
- closeCurly = '}'.charCodeAt(0),
- interpolantEnd = /([.\s]*?)[^\\](?=(}))/gm,
- sQuoteEnd = /([.\s]*?)[^\\](?=((#{)|'))/gm,
- dQuoteEnd = /([.\s]*?)[^\\](?=((#{)|"))/gm;
-
-function tokenize(input, l, p, quote) {
- var tokens = [];
- var css = input.css.valueOf();
-
- var code = void 0,
- next = void 0,
- lines = void 0,
- last = void 0,
- content = void 0,
- escape = void 0,
- nextLine = void 0,
- nextOffset = void 0,
- escaped = void 0,
- escapePos = void 0,
- inInterpolant = void 0,
- inComment = void 0,
- inString = void 0;
-
- var length = css.length;
- var offset = -1;
- var line = l || 1;
- var pos = p || 0;
-
- var quoteEnd = quote === "'" ? sQuoteEnd : dQuoteEnd;
- var quoteChar = quote.charCodeAt(0);
-
- loop: while (pos < length) {
- code = css.charCodeAt(pos);
-
- if (code === newline) {
- offset = pos;
- line += 1;
- }
-
- switch (code) {
-
- case closeCurly:
- tokens.push(['endInterpolant', '}', line, pos - offset]);
- break;
-
- case quoteChar:
- tokens.push([quote, quote, line, pos - offset]);
- break loop;
-
- case backslash:
- next = pos;
- escape = true;
- while (css.charCodeAt(next + 1) === backslash) {
- next += 1;
- escape = !escape;
- }
- code = css.charCodeAt(next + 1);
- if (escape && code !== slash && code !== space && code !== newline && code !== tab && code !== cr && code !== feed) {
- next += 1;
- }
- tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
- pos = next;
- break;
-
- default:
- if (code === hash && css.charCodeAt(pos + 1) === openCurly) {
- tokens.push(['startInterpolant', '#{', line, pos + 1 - offset]);
- next = pos + 1;
-
- var _tokenizeInterpolant = (0, _tokenizeInterpolant3.default)(input, line, next + 1),
- t = _tokenizeInterpolant.tokens,
- _p = _tokenizeInterpolant.pos;
-
- tokens = tokens.concat(t);
- next = _p;
-
- pos = next;
- } else {
- quoteEnd.lastIndex = pos;
- quoteEnd.test(css);
-
- if (quoteEnd.lastIndex === 0) {
- next = css.length - 1;
- } else {
- next = quoteEnd.lastIndex - 1;
- }
-
- tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
- }
-
- break;
- }
-
- pos++;
- }
-
- return { tokens: tokens, pos: pos };
-} \ No newline at end of file
diff --git a/node_modules/scss-tokenizer/lib/tokenize.js b/node_modules/scss-tokenizer/lib/tokenize.js
deleted file mode 100644
index 4be34fe..0000000
--- a/node_modules/scss-tokenizer/lib/tokenize.js
+++ /dev/null
@@ -1,302 +0,0 @@
-'use strict';
-
-exports.__esModule = true;
-exports.default = tokenize;
-
-var _input = require('./input');
-
-var _input2 = _interopRequireDefault(_input);
-
-var _tokenizeString2 = require('./tokenize-string');
-
-var _tokenizeString3 = _interopRequireDefault(_tokenizeString2);
-
-var _tokenizeComment2 = require('./tokenize-comment');
-
-var _tokenizeComment3 = _interopRequireDefault(_tokenizeComment2);
-
-var _tokenizeInterpolant2 = require('./tokenize-interpolant');
-
-var _tokenizeInterpolant3 = _interopRequireDefault(_tokenizeInterpolant2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var singleQuote = "'".charCodeAt(0),
- doubleQuote = '"'.charCodeAt(0),
- dollar = '$'.charCodeAt(0),
- hash = '#'.charCodeAt(0),
- backslash = '\\'.charCodeAt(0),
- slash = '/'.charCodeAt(0),
- newline = '\n'.charCodeAt(0),
- space = ' '.charCodeAt(0),
- feed = '\f'.charCodeAt(0),
- tab = '\t'.charCodeAt(0),
- cr = '\r'.charCodeAt(0),
- openBracket = '('.charCodeAt(0),
- closeBracket = ')'.charCodeAt(0),
- openCurly = '{'.charCodeAt(0),
- closeCurly = '}'.charCodeAt(0),
- semicolon = ';'.charCodeAt(0),
- asterisk = '*'.charCodeAt(0),
- colon = ':'.charCodeAt(0),
- at = '@'.charCodeAt(0),
- comma = ','.charCodeAt(0),
- plus = '+'.charCodeAt(0),
- minus = '-'.charCodeAt(0),
- decComb = '>'.charCodeAt(0),
- adjComb = '~'.charCodeAt(0),
- number = /[+-]?(\d+(\.\d+)?|\.\d+)|(e[+-]\d+)/gi,
- sQuoteEnd = /(.*?)[^\\](?=((#{)|'))/gm,
- dQuoteEnd = /(.*?)[^\\](?=((#{)|"))/gm,
- wordEnd = /[ \n\t\r\(\)\{\},:;@!'"\\]|\/(?=\*)|#(?={)/g,
- ident = /-?([a-z_]|\\[^\\])([a-z-_0-9]|\\[^\\])*/gi;
-
-function tokenize(input, l, p) {
- var tokens = [];
- var css = input.css.valueOf();
-
- var code = void 0,
- next = void 0,
- quote = void 0,
- lines = void 0,
- last = void 0,
- content = void 0,
- escape = void 0,
- nextLine = void 0,
- nextOffset = void 0,
- escaped = void 0,
- escapePos = void 0,
- inInterpolant = void 0,
- inComment = void 0,
- inString = void 0;
-
- var length = css.length;
- var offset = -1;
- var line = l || 1;
- var pos = p || 0;
-
- while (pos < length) {
- code = css.charCodeAt(pos);
-
- if (code === newline) {
- offset = pos;
- line += 1;
- }
-
- switch (code) {
- case space:
- case tab:
- case cr:
- case feed:
- next = pos;
- do {
- next += 1;
- code = css.charCodeAt(next);
- if (code === newline) {
- offset = next;
- line += 1;
- }
- } while (code === space || code === tab || code === cr || code === feed);
-
- tokens.push(['space', css.slice(pos, next)]);
- pos = next - 1;
- break;
-
- case newline:
- tokens.push(['newline', '\n', line, pos - offset]);
- break;
-
- case plus:
- tokens.push(['+', '+', line, pos - offset]);
- break;
-
- case minus:
- tokens.push(['-', '-', line, pos - offset]);
- break;
-
- case decComb:
- tokens.push(['>', '>', line, pos - offset]);
- break;
-
- case adjComb:
- tokens.push(['~', '~', line, pos - offset]);
- break;
-
- case openCurly:
- tokens.push(['{', '{', line, pos - offset]);
- break;
-
- case closeCurly:
- if (inInterpolant) {
- inInterpolant = false;
- tokens.push(['endInterpolant', '}', line, pos - offset]);
- } else {
- tokens.push(['}', '}', line, pos - offset]);
- }
- break;
-
- case comma:
- tokens.push([',', ',', line, pos - offset]);
- break;
-
- case dollar:
- tokens.push(['$', '$', line, pos - offset]);
- break;
-
- case colon:
- tokens.push([':', ':', line, pos - offset]);
- break;
-
- case semicolon:
- tokens.push([';', ';', line, pos - offset]);
- break;
-
- case openBracket:
- tokens.push(['(', '(', line, pos - offset]);
- break;
-
- case closeBracket:
- tokens.push([')', ')', line, pos - offset]);
- break;
-
- case singleQuote:
- case doubleQuote:
- quote = code === singleQuote ? "'" : '"';
- tokens.push([quote, quote, line, pos - offset]);
- next = pos + 1;
-
- var _tokenizeString = (0, _tokenizeString3.default)(input, line, next, quote),
- t = _tokenizeString.tokens,
- _p = _tokenizeString.pos;
-
- tokens = tokens.concat(t);
- next = _p;
-
- pos = next;
- break;
-
- case at:
- tokens.push(['@', '@', line, pos - offset]);
- break;
-
- case backslash:
- next = pos;
- escape = true;
- while (css.charCodeAt(next + 1) === backslash) {
- next += 1;
- escape = !escape;
- }
- code = css.charCodeAt(next + 1);
- if (escape && code !== space && code !== newline && code !== tab && code !== cr && code !== feed) {
- next += 1;
- }
- tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
- pos = next;
- break;
-
- default:
- ident.lastIndex = pos;
- number.lastIndex = pos;
- wordEnd.lastIndex = pos;
-
- if (code === slash && css.charCodeAt(pos + 1) === asterisk) {
- inComment = true;
- tokens.push(['startComment', '/*', line, pos + 1 - offset]);
- next = pos + 1;
-
- var _tokenizeComment = (0, _tokenizeComment3.default)(input, line, next + 1),
- _t = _tokenizeComment.tokens,
- _l = _tokenizeComment.line,
- _p2 = _tokenizeComment.pos,
- o = _tokenizeComment.offset;
-
- tokens = tokens.concat(_t);
- next = _p2;
- line = _l;
- offset = o;
-
- pos = next;
- break;
- }
-
- if (code === asterisk && css.charCodeAt(pos + 1) !== slash) {
- tokens.push(['*', '*', line, pos - offset]);
- break;
- }
-
- if (inComment && code === asterisk && css.charCodeAt(pos + 1) === slash) {
- inComment = false;
- tokens.push(['endComment', '*/', line, pos + 1 - offset]);
- pos += 2;
- break;
- }
-
- if (code === slash && css.charCodeAt(pos + 1) !== slash) {
- tokens.push(['/', '/', line, pos - offset]);
- break;
- }
-
- if (code === hash && css.charCodeAt(pos + 1) === openCurly) {
- inInterpolant = true;
- tokens.push(['startInterpolant', '#{', line, pos + 1 - offset]);
- next = pos + 1;
-
- var _tokenizeInterpolant = (0, _tokenizeInterpolant3.default)(input, line, next + 1),
- _t2 = _tokenizeInterpolant.tokens,
- _p3 = _tokenizeInterpolant.pos;
-
- tokens = tokens.concat(_t2);
- next = _p3;
-
- pos = next;
- break;
- }
-
- if (code === slash && css.charCodeAt(pos + 1) === slash) {
- next = css.indexOf('\n', pos + 2);
- next = (next > 0 ? next : css.length) - 1;
-
- tokens.push(['scssComment', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
- break;
- }
-
- if (ident.test(css) && (ident.lastIndex = pos || 1) && ident.exec(css).index === pos) {
- next = ident.lastIndex - 1;
-
- tokens.push(['ident', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
- break;
- }
-
- if (number.test(css) && (number.lastIndex = pos || 1) && number.exec(css).index === pos) {
- next = number.lastIndex - 1;
-
- tokens.push(['number', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
- break;
- }
-
- wordEnd.lastIndex = pos + 1;
- wordEnd.test(css);
- if (wordEnd.lastIndex === 0) {
- next = css.length - 1;
- } else {
- next = wordEnd.lastIndex - 2;
- }
-
- tokens.push(['word', css.slice(pos, next + 1), line, pos - offset, line, next - offset]);
-
- pos = next;
-
- break;
- }
-
- pos++;
- }
-
- return tokens;
-} \ No newline at end of file
diff --git a/node_modules/scss-tokenizer/package.json b/node_modules/scss-tokenizer/package.json
deleted file mode 100644
index 3d7b57e..0000000
--- a/node_modules/scss-tokenizer/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "scss-tokenizer@^0.2.3",
- "_id": "scss-tokenizer@0.2.3",
- "_inBundle": false,
- "_integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=",
- "_location": "/scss-tokenizer",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "scss-tokenizer@^0.2.3",
- "name": "scss-tokenizer",
- "escapedName": "scss-tokenizer",
- "rawSpec": "^0.2.3",
- "saveSpec": null,
- "fetchSpec": "^0.2.3"
- },
- "_requiredBy": [
- "/sass-graph"
- ],
- "_resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz",
- "_shasum": "8eb06db9a9723333824d3f5530641149847ce5d1",
- "_spec": "scss-tokenizer@^0.2.3",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sass-graph",
- "author": {
- "name": "xzyfer"
- },
- "bugs": {
- "url": "https://github.com/sasstools/scss-tokenizer/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "js-base64": "^2.1.8",
- "source-map": "^0.4.2"
- },
- "deprecated": false,
- "description": "A tokenzier for Sass' SCSS syntax",
- "devDependencies": {
- "babel-cli": "^6.24.1",
- "babel-preset-es2015": "^6.24.1",
- "chai": "^3.5.0",
- "glob": "^5.0.10",
- "mocha": "^3.2.0",
- "sass-spec": "^3.5.0-1"
- },
- "files": [
- "index.js",
- "lib"
- ],
- "homepage": "https://github.com/sasstools/scss-tokenizer",
- "keywords": [
- "parser",
- "tokenizer",
- "sass",
- "scss",
- "libsass"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "scss-tokenizer",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sasstools/scss-tokenizer.git"
- },
- "scripts": {
- "build": "npm run clean; babel src/ --out-dir lib",
- "clean": "rm lib/*",
- "test": "mocha"
- },
- "version": "0.2.3"
-}
diff --git a/node_modules/semver/CHANGELOG.md b/node_modules/semver/CHANGELOG.md
deleted file mode 100644
index 66304fd..0000000
--- a/node_modules/semver/CHANGELOG.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# changes log
-
-## 5.7
-
-* Add `minVersion` method
-
-## 5.6
-
-* Move boolean `loose` param to an options object, with
- backwards-compatibility protection.
-* Add ability to opt out of special prerelease version handling with
- the `includePrerelease` option flag.
-
-## 5.5
-
-* Add version coercion capabilities
-
-## 5.4
-
-* Add intersection checking
-
-## 5.3
-
-* Add `minSatisfying` method
-
-## 5.2
-
-* Add `prerelease(v)` that returns prerelease components
-
-## 5.1
-
-* Add Backus-Naur for ranges
-* Remove excessively cute inspection methods
-
-## 5.0
-
-* Remove AMD/Browserified build artifacts
-* Fix ltr and gtr when using the `*` range
-* Fix for range `*` with a prerelease identifier
diff --git a/node_modules/semver/LICENSE b/node_modules/semver/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/semver/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/semver/README.md b/node_modules/semver/README.md
deleted file mode 100644
index f8dfa5a..0000000
--- a/node_modules/semver/README.md
+++ /dev/null
@@ -1,412 +0,0 @@
-semver(1) -- The semantic versioner for npm
-===========================================
-
-## Install
-
-```bash
-npm install --save semver
-````
-
-## Usage
-
-As a node module:
-
-```js
-const semver = require('semver')
-
-semver.valid('1.2.3') // '1.2.3'
-semver.valid('a.b.c') // null
-semver.clean(' =v1.2.3 ') // '1.2.3'
-semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
-semver.gt('1.2.3', '9.8.7') // false
-semver.lt('1.2.3', '9.8.7') // true
-semver.minVersion('>=1.0.0') // '1.0.0'
-semver.valid(semver.coerce('v2')) // '2.0.0'
-semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7'
-```
-
-As a command-line utility:
-
-```
-$ semver -h
-
-A JavaScript implementation of the https://semver.org/ specification
-Copyright Isaac Z. Schlueter
-
-Usage: semver [options] <version> [<version> [...]]
-Prints valid versions sorted by SemVer precedence
-
-Options:
--r --range <range>
- Print versions that match the specified range.
-
--i --increment [<level>]
- Increment a version by the specified level. Level can
- be one of: major, minor, patch, premajor, preminor,
- prepatch, or prerelease. Default level is 'patch'.
- Only one version may be specified.
-
---preid <identifier>
- Identifier to be used to prefix premajor, preminor,
- prepatch or prerelease version increments.
-
--l --loose
- Interpret versions and ranges loosely
-
--p --include-prerelease
- Always include prerelease versions in range matching
-
--c --coerce
- Coerce a string into SemVer if possible
- (does not imply --loose)
-
-Program exits successfully if any valid version satisfies
-all supplied ranges, and prints all satisfying versions.
-
-If no satisfying versions are found, then exits failure.
-
-Versions are printed in ascending order, so supplying
-multiple versions to the utility will just sort them.
-```
-
-## Versions
-
-A "version" is described by the `v2.0.0` specification found at
-<https://semver.org/>.
-
-A leading `"="` or `"v"` character is stripped off and ignored.
-
-## Ranges
-
-A `version range` is a set of `comparators` which specify versions
-that satisfy the range.
-
-A `comparator` is composed of an `operator` and a `version`. The set
-of primitive `operators` is:
-
-* `<` Less than
-* `<=` Less than or equal to
-* `>` Greater than
-* `>=` Greater than or equal to
-* `=` Equal. If no operator is specified, then equality is assumed,
- so this operator is optional, but MAY be included.
-
-For example, the comparator `>=1.2.7` would match the versions
-`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
-or `1.1.0`.
-
-Comparators can be joined by whitespace to form a `comparator set`,
-which is satisfied by the **intersection** of all of the comparators
-it includes.
-
-A range is composed of one or more comparator sets, joined by `||`. A
-version matches a range if and only if every comparator in at least
-one of the `||`-separated comparator sets is satisfied by the version.
-
-For example, the range `>=1.2.7 <1.3.0` would match the versions
-`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,
-or `1.1.0`.
-
-The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,
-`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
-
-### Prerelease Tags
-
-If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then
-it will only be allowed to satisfy comparator sets if at least one
-comparator with the same `[major, minor, patch]` tuple also has a
-prerelease tag.
-
-For example, the range `>1.2.3-alpha.3` would be allowed to match the
-version `1.2.3-alpha.7`, but it would *not* be satisfied by
-`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater
-than" `1.2.3-alpha.3` according to the SemVer sort rules. The version
-range only accepts prerelease tags on the `1.2.3` version. The
-version `3.4.5` *would* satisfy the range, because it does not have a
-prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
-
-The purpose for this behavior is twofold. First, prerelease versions
-frequently are updated very quickly, and contain many breaking changes
-that are (by the author's design) not yet fit for public consumption.
-Therefore, by default, they are excluded from range matching
-semantics.
-
-Second, a user who has opted into using a prerelease version has
-clearly indicated the intent to use *that specific* set of
-alpha/beta/rc versions. By including a prerelease tag in the range,
-the user is indicating that they are aware of the risk. However, it
-is still not appropriate to assume that they have opted into taking a
-similar risk on the *next* set of prerelease versions.
-
-Note that this behavior can be suppressed (treating all prerelease
-versions as if they were normal versions, for the purpose of range
-matching) by setting the `includePrerelease` flag on the options
-object to any
-[functions](https://github.com/npm/node-semver#functions) that do
-range matching.
-
-#### Prerelease Identifiers
-
-The method `.inc` takes an additional `identifier` string argument that
-will append the value of the string as a prerelease identifier:
-
-```javascript
-semver.inc('1.2.3', 'prerelease', 'beta')
-// '1.2.4-beta.0'
-```
-
-command-line example:
-
-```bash
-$ semver 1.2.3 -i prerelease --preid beta
-1.2.4-beta.0
-```
-
-Which then can be used to increment further:
-
-```bash
-$ semver 1.2.4-beta.0 -i prerelease
-1.2.4-beta.1
-```
-
-### Advanced Range Syntax
-
-Advanced range syntax desugars to primitive comparators in
-deterministic ways.
-
-Advanced ranges may be combined in the same way as primitive
-comparators using white space or `||`.
-
-#### Hyphen Ranges `X.Y.Z - A.B.C`
-
-Specifies an inclusive set.
-
-* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
-
-If a partial version is provided as the first version in the inclusive
-range, then the missing pieces are replaced with zeroes.
-
-* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
-
-If a partial version is provided as the second version in the
-inclusive range, then all versions that start with the supplied parts
-of the tuple are accepted, but nothing that would be greater than the
-provided tuple parts.
-
-* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
-* `1.2.3 - 2` := `>=1.2.3 <3.0.0`
-
-#### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
-
-Any of `X`, `x`, or `*` may be used to "stand in" for one of the
-numeric values in the `[major, minor, patch]` tuple.
-
-* `*` := `>=0.0.0` (Any version satisfies)
-* `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
-* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
-
-A partial version range is treated as an X-Range, so the special
-character is in fact optional.
-
-* `""` (empty string) := `*` := `>=0.0.0`
-* `1` := `1.x.x` := `>=1.0.0 <2.0.0`
-* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
-
-#### Tilde Ranges `~1.2.3` `~1.2` `~1`
-
-Allows patch-level changes if a minor version is specified on the
-comparator. Allows minor-level changes if not.
-
-* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
-* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
-* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
-* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
-* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
-* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
-* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in
- the `1.2.3` version will be allowed, if they are greater than or
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
- `1.2.4-beta.2` would not, because it is a prerelease of a
- different `[major, minor, patch]` tuple.
-
-#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
-
-Allows changes that do not modify the left-most non-zero digit in the
-`[major, minor, patch]` tuple. In other words, this allows patch and
-minor updates for versions `1.0.0` and above, patch updates for
-versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.
-
-Many authors treat a `0.x` version as if the `x` were the major
-"breaking-change" indicator.
-
-Caret ranges are ideal when an author may make breaking changes
-between `0.2.4` and `0.3.0` releases, which is a common practice.
-However, it presumes that there will *not* be breaking changes between
-`0.2.4` and `0.2.5`. It allows for changes that are presumed to be
-additive (but non-breaking), according to commonly observed practices.
-
-* `^1.2.3` := `>=1.2.3 <2.0.0`
-* `^0.2.3` := `>=0.2.3 <0.3.0`
-* `^0.0.3` := `>=0.0.3 <0.0.4`
-* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in
- the `1.2.3` version will be allowed, if they are greater than or
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
- `1.2.4-beta.2` would not, because it is a prerelease of a
- different `[major, minor, patch]` tuple.
-* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the
- `0.0.3` version *only* will be allowed, if they are greater than or
- equal to `beta`. So, `0.0.3-pr.2` would be allowed.
-
-When parsing caret ranges, a missing `patch` value desugars to the
-number `0`, but will allow flexibility within that value, even if the
-major and minor versions are both `0`.
-
-* `^1.2.x` := `>=1.2.0 <2.0.0`
-* `^0.0.x` := `>=0.0.0 <0.1.0`
-* `^0.0` := `>=0.0.0 <0.1.0`
-
-A missing `minor` and `patch` values will desugar to zero, but also
-allow flexibility within those values, even if the major version is
-zero.
-
-* `^1.x` := `>=1.0.0 <2.0.0`
-* `^0.x` := `>=0.0.0 <1.0.0`
-
-### Range Grammar
-
-Putting all this together, here is a Backus-Naur grammar for ranges,
-for the benefit of parser authors:
-
-```bnf
-range-set ::= range ( logical-or range ) *
-logical-or ::= ( ' ' ) * '||' ( ' ' ) *
-range ::= hyphen | simple ( ' ' simple ) * | ''
-hyphen ::= partial ' - ' partial
-simple ::= primitive | partial | tilde | caret
-primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
-partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
-xr ::= 'x' | 'X' | '*' | nr
-nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
-tilde ::= '~' partial
-caret ::= '^' partial
-qualifier ::= ( '-' pre )? ( '+' build )?
-pre ::= parts
-build ::= parts
-parts ::= part ( '.' part ) *
-part ::= nr | [-0-9A-Za-z]+
-```
-
-## Functions
-
-All methods and classes take a final `options` object argument. All
-options in this object are `false` by default. The options supported
-are:
-
-- `loose` Be more forgiving about not-quite-valid semver strings.
- (Any resulting output will always be 100% strict compliant, of
- course.) For backwards compatibility reasons, if the `options`
- argument is a boolean value instead of an object, it is interpreted
- to be the `loose` param.
-- `includePrerelease` Set to suppress the [default
- behavior](https://github.com/npm/node-semver#prerelease-tags) of
- excluding prerelease tagged versions from ranges unless they are
- explicitly opted into.
-
-Strict-mode Comparators and Ranges will be strict about the SemVer
-strings that they parse.
-
-* `valid(v)`: Return the parsed version, or null if it's not valid.
-* `inc(v, release)`: Return the version incremented by the release
- type (`major`, `premajor`, `minor`, `preminor`, `patch`,
- `prepatch`, or `prerelease`), or null if it's not valid
- * `premajor` in one call will bump the version up to the next major
- version and down to a prerelease of that major version.
- `preminor`, and `prepatch` work the same way.
- * If called from a non-prerelease version, the `prerelease` will work the
- same as `prepatch`. It increments the patch version, then makes a
- prerelease. If the input version is already a prerelease it simply
- increments it.
-* `prerelease(v)`: Returns an array of prerelease components, or null
- if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]`
-* `major(v)`: Return the major version number.
-* `minor(v)`: Return the minor version number.
-* `patch(v)`: Return the patch version number.
-* `intersects(r1, r2, loose)`: Return true if the two supplied ranges
- or comparators intersect.
-* `parse(v)`: Attempt to parse a string as a semantic version, returning either
- a `SemVer` object or `null`.
-
-### Comparison
-
-* `gt(v1, v2)`: `v1 > v2`
-* `gte(v1, v2)`: `v1 >= v2`
-* `lt(v1, v2)`: `v1 < v2`
-* `lte(v1, v2)`: `v1 <= v2`
-* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,
- even if they're not the exact same string. You already know how to
- compare strings.
-* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.
-* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call
- the corresponding function above. `"==="` and `"!=="` do simple
- string comparison, but are included for completeness. Throws if an
- invalid comparison string is provided.
-* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if
- `v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
-* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions
- in descending order when passed to `Array.sort()`.
-* `diff(v1, v2)`: Returns difference between two versions by the release type
- (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),
- or null if the versions are the same.
-
-### Comparators
-
-* `intersects(comparator)`: Return true if the comparators intersect
-
-### Ranges
-
-* `validRange(range)`: Return the valid range or null if it's not valid
-* `satisfies(version, range)`: Return true if the version satisfies the
- range.
-* `maxSatisfying(versions, range)`: Return the highest version in the list
- that satisfies the range, or `null` if none of them do.
-* `minSatisfying(versions, range)`: Return the lowest version in the list
- that satisfies the range, or `null` if none of them do.
-* `minVersion(range)`: Return the lowest version that can possibly match
- the given range.
-* `gtr(version, range)`: Return `true` if version is greater than all the
- versions possible in the range.
-* `ltr(version, range)`: Return `true` if version is less than all the
- versions possible in the range.
-* `outside(version, range, hilo)`: Return true if the version is outside
- the bounds of the range in either the high or low direction. The
- `hilo` argument must be either the string `'>'` or `'<'`. (This is
- the function called by `gtr` and `ltr`.)
-* `intersects(range)`: Return true if any of the ranges comparators intersect
-
-Note that, since ranges may be non-contiguous, a version might not be
-greater than a range, less than a range, *or* satisfy a range! For
-example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`
-until `2.0.0`, so the version `1.2.10` would not be greater than the
-range (because `2.0.1` satisfies, which is higher), nor less than the
-range (since `1.2.8` satisfies, which is lower), and it also does not
-satisfy the range.
-
-If you want to know if a version satisfies or does not satisfy a
-range, use the `satisfies(version, range)` function.
-
-### Coercion
-
-* `coerce(version)`: Coerces a string to semver if possible
-
-This aims to provide a very forgiving translation of a non-semver string to
-semver. It looks for the first digit in a string, and consumes all
-remaining characters which satisfy at least a partial semver (e.g., `1`,
-`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer
-versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All
-surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes
-`3.4.0`). Only text which lacks digits will fail coercion (`version one`
-is not valid). The maximum length for any semver component considered for
-coercion is 16 characters; longer components will be ignored
-(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any
-semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value
-components are invalid (`9999999999999999.4.7.4` is likely invalid).
diff --git a/node_modules/semver/bin/semver b/node_modules/semver/bin/semver
deleted file mode 100755
index 801e77f..0000000
--- a/node_modules/semver/bin/semver
+++ /dev/null
@@ -1,160 +0,0 @@
-#!/usr/bin/env node
-// Standalone semver comparison program.
-// Exits successfully and prints matching version(s) if
-// any supplied version is valid and passes all tests.
-
-var argv = process.argv.slice(2)
-
-var versions = []
-
-var range = []
-
-var inc = null
-
-var version = require('../package.json').version
-
-var loose = false
-
-var includePrerelease = false
-
-var coerce = false
-
-var identifier
-
-var semver = require('../semver')
-
-var reverse = false
-
-var options = {}
-
-main()
-
-function main () {
- if (!argv.length) return help()
- while (argv.length) {
- var a = argv.shift()
- var indexOfEqualSign = a.indexOf('=')
- if (indexOfEqualSign !== -1) {
- a = a.slice(0, indexOfEqualSign)
- argv.unshift(a.slice(indexOfEqualSign + 1))
- }
- switch (a) {
- case '-rv': case '-rev': case '--rev': case '--reverse':
- reverse = true
- break
- case '-l': case '--loose':
- loose = true
- break
- case '-p': case '--include-prerelease':
- includePrerelease = true
- break
- case '-v': case '--version':
- versions.push(argv.shift())
- break
- case '-i': case '--inc': case '--increment':
- switch (argv[0]) {
- case 'major': case 'minor': case 'patch': case 'prerelease':
- case 'premajor': case 'preminor': case 'prepatch':
- inc = argv.shift()
- break
- default:
- inc = 'patch'
- break
- }
- break
- case '--preid':
- identifier = argv.shift()
- break
- case '-r': case '--range':
- range.push(argv.shift())
- break
- case '-c': case '--coerce':
- coerce = true
- break
- case '-h': case '--help': case '-?':
- return help()
- default:
- versions.push(a)
- break
- }
- }
-
- var options = { loose: loose, includePrerelease: includePrerelease }
-
- versions = versions.map(function (v) {
- return coerce ? (semver.coerce(v) || { version: v }).version : v
- }).filter(function (v) {
- return semver.valid(v)
- })
- if (!versions.length) return fail()
- if (inc && (versions.length !== 1 || range.length)) { return failInc() }
-
- for (var i = 0, l = range.length; i < l; i++) {
- versions = versions.filter(function (v) {
- return semver.satisfies(v, range[i], options)
- })
- if (!versions.length) return fail()
- }
- return success(versions)
-}
-
-function failInc () {
- console.error('--inc can only be used on a single version with no range')
- fail()
-}
-
-function fail () { process.exit(1) }
-
-function success () {
- var compare = reverse ? 'rcompare' : 'compare'
- versions.sort(function (a, b) {
- return semver[compare](a, b, options)
- }).map(function (v) {
- return semver.clean(v, options)
- }).map(function (v) {
- return inc ? semver.inc(v, inc, options, identifier) : v
- }).forEach(function (v, i, _) { console.log(v) })
-}
-
-function help () {
- console.log(['SemVer ' + version,
- '',
- 'A JavaScript implementation of the https://semver.org/ specification',
- 'Copyright Isaac Z. Schlueter',
- '',
- 'Usage: semver [options] <version> [<version> [...]]',
- 'Prints valid versions sorted by SemVer precedence',
- '',
- 'Options:',
- '-r --range <range>',
- ' Print versions that match the specified range.',
- '',
- '-i --increment [<level>]',
- ' Increment a version by the specified level. Level can',
- ' be one of: major, minor, patch, premajor, preminor,',
- " prepatch, or prerelease. Default level is 'patch'.",
- ' Only one version may be specified.',
- '',
- '--preid <identifier>',
- ' Identifier to be used to prefix premajor, preminor,',
- ' prepatch or prerelease version increments.',
- '',
- '-l --loose',
- ' Interpret versions and ranges loosely',
- '',
- '-p --include-prerelease',
- ' Always include prerelease versions in range matching',
- '',
- '-c --coerce',
- ' Coerce a string into SemVer if possible',
- ' (does not imply --loose)',
- '',
- 'Program exits successfully if any valid version satisfies',
- 'all supplied ranges, and prints all satisfying versions.',
- '',
- 'If no satisfying versions are found, then exits failure.',
- '',
- 'Versions are printed in ascending order, so supplying',
- 'multiple versions to the utility will just sort them.'
- ].join('\n'))
-}
diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json
deleted file mode 100644
index 829e8ac..0000000
--- a/node_modules/semver/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_from": "semver@2 || 3 || 4 || 5",
- "_id": "semver@5.7.1",
- "_inBundle": false,
- "_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "_location": "/semver",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "semver@2 || 3 || 4 || 5",
- "name": "semver",
- "escapedName": "semver",
- "rawSpec": "2 || 3 || 4 || 5",
- "saveSpec": null,
- "fetchSpec": "2 || 3 || 4 || 5"
- },
- "_requiredBy": [
- "/normalize-package-data"
- ],
- "_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "_shasum": "a954f931aeba508d307bbf069eff0c01c96116f7",
- "_spec": "semver@2 || 3 || 4 || 5",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/normalize-package-data",
- "bin": {
- "semver": "bin/semver"
- },
- "bugs": {
- "url": "https://github.com/npm/node-semver/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "The semantic version parser used by npm.",
- "devDependencies": {
- "tap": "^13.0.0-rc.18"
- },
- "files": [
- "bin",
- "range.bnf",
- "semver.js"
- ],
- "homepage": "https://github.com/npm/node-semver#readme",
- "license": "ISC",
- "main": "semver.js",
- "name": "semver",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/node-semver.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap"
- },
- "tap": {
- "check-coverage": true
- },
- "version": "5.7.1"
-}
diff --git a/node_modules/semver/range.bnf b/node_modules/semver/range.bnf
deleted file mode 100644
index d4c6ae0..0000000
--- a/node_modules/semver/range.bnf
+++ /dev/null
@@ -1,16 +0,0 @@
-range-set ::= range ( logical-or range ) *
-logical-or ::= ( ' ' ) * '||' ( ' ' ) *
-range ::= hyphen | simple ( ' ' simple ) * | ''
-hyphen ::= partial ' - ' partial
-simple ::= primitive | partial | tilde | caret
-primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
-partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
-xr ::= 'x' | 'X' | '*' | nr
-nr ::= '0' | [1-9] ( [0-9] ) *
-tilde ::= '~' partial
-caret ::= '^' partial
-qualifier ::= ( '-' pre )? ( '+' build )?
-pre ::= parts
-build ::= parts
-parts ::= part ( '.' part ) *
-part ::= nr | [-0-9A-Za-z]+
diff --git a/node_modules/semver/semver.js b/node_modules/semver/semver.js
deleted file mode 100644
index d315d5d..0000000
--- a/node_modules/semver/semver.js
+++ /dev/null
@@ -1,1483 +0,0 @@
-exports = module.exports = SemVer
-
-var debug
-/* istanbul ignore next */
-if (typeof process === 'object' &&
- process.env &&
- process.env.NODE_DEBUG &&
- /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
- debug = function () {
- var args = Array.prototype.slice.call(arguments, 0)
- args.unshift('SEMVER')
- console.log.apply(console, args)
- }
-} else {
- debug = function () {}
-}
-
-// Note: this is the semver.org version of the spec that it implements
-// Not necessarily the package version of this code.
-exports.SEMVER_SPEC_VERSION = '2.0.0'
-
-var MAX_LENGTH = 256
-var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
- /* istanbul ignore next */ 9007199254740991
-
-// Max safe segment length for coercion.
-var MAX_SAFE_COMPONENT_LENGTH = 16
-
-// The actual regexps go on exports.re
-var re = exports.re = []
-var src = exports.src = []
-var R = 0
-
-// The following Regular Expressions can be used for tokenizing,
-// validating, and parsing SemVer version strings.
-
-// ## Numeric Identifier
-// A single `0`, or a non-zero digit followed by zero or more digits.
-
-var NUMERICIDENTIFIER = R++
-src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'
-var NUMERICIDENTIFIERLOOSE = R++
-src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'
-
-// ## Non-numeric Identifier
-// Zero or more digits, followed by a letter or hyphen, and then zero or
-// more letters, digits, or hyphens.
-
-var NONNUMERICIDENTIFIER = R++
-src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'
-
-// ## Main Version
-// Three dot-separated numeric identifiers.
-
-var MAINVERSION = R++
-src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
- '(' + src[NUMERICIDENTIFIER] + ')\\.' +
- '(' + src[NUMERICIDENTIFIER] + ')'
-
-var MAINVERSIONLOOSE = R++
-src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
- '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
- '(' + src[NUMERICIDENTIFIERLOOSE] + ')'
-
-// ## Pre-release Version Identifier
-// A numeric identifier, or a non-numeric identifier.
-
-var PRERELEASEIDENTIFIER = R++
-src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
- '|' + src[NONNUMERICIDENTIFIER] + ')'
-
-var PRERELEASEIDENTIFIERLOOSE = R++
-src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
- '|' + src[NONNUMERICIDENTIFIER] + ')'
-
-// ## Pre-release Version
-// Hyphen, followed by one or more dot-separated pre-release version
-// identifiers.
-
-var PRERELEASE = R++
-src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
- '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'
-
-var PRERELEASELOOSE = R++
-src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
- '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'
-
-// ## Build Metadata Identifier
-// Any combination of digits, letters, or hyphens.
-
-var BUILDIDENTIFIER = R++
-src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'
-
-// ## Build Metadata
-// Plus sign, followed by one or more period-separated build metadata
-// identifiers.
-
-var BUILD = R++
-src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
- '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'
-
-// ## Full Version String
-// A main version, followed optionally by a pre-release version and
-// build metadata.
-
-// Note that the only major, minor, patch, and pre-release sections of
-// the version string are capturing groups. The build metadata is not a
-// capturing group, because it should not ever be used in version
-// comparison.
-
-var FULL = R++
-var FULLPLAIN = 'v?' + src[MAINVERSION] +
- src[PRERELEASE] + '?' +
- src[BUILD] + '?'
-
-src[FULL] = '^' + FULLPLAIN + '$'
-
-// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
-// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
-// common in the npm registry.
-var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
- src[PRERELEASELOOSE] + '?' +
- src[BUILD] + '?'
-
-var LOOSE = R++
-src[LOOSE] = '^' + LOOSEPLAIN + '$'
-
-var GTLT = R++
-src[GTLT] = '((?:<|>)?=?)'
-
-// Something like "2.*" or "1.2.x".
-// Note that "x.x" is a valid xRange identifer, meaning "any version"
-// Only the first item is strictly required.
-var XRANGEIDENTIFIERLOOSE = R++
-src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'
-var XRANGEIDENTIFIER = R++
-src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'
-
-var XRANGEPLAIN = R++
-src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
- '(?:' + src[PRERELEASE] + ')?' +
- src[BUILD] + '?' +
- ')?)?'
-
-var XRANGEPLAINLOOSE = R++
-src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
- '(?:' + src[PRERELEASELOOSE] + ')?' +
- src[BUILD] + '?' +
- ')?)?'
-
-var XRANGE = R++
-src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'
-var XRANGELOOSE = R++
-src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'
-
-// Coercion.
-// Extract anything that could conceivably be a part of a valid semver
-var COERCE = R++
-src[COERCE] = '(?:^|[^\\d])' +
- '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' +
- '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
- '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' +
- '(?:$|[^\\d])'
-
-// Tilde ranges.
-// Meaning is "reasonably at or greater than"
-var LONETILDE = R++
-src[LONETILDE] = '(?:~>?)'
-
-var TILDETRIM = R++
-src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'
-re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g')
-var tildeTrimReplace = '$1~'
-
-var TILDE = R++
-src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'
-var TILDELOOSE = R++
-src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'
-
-// Caret ranges.
-// Meaning is "at least and backwards compatible with"
-var LONECARET = R++
-src[LONECARET] = '(?:\\^)'
-
-var CARETTRIM = R++
-src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'
-re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g')
-var caretTrimReplace = '$1^'
-
-var CARET = R++
-src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'
-var CARETLOOSE = R++
-src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'
-
-// A simple gt/lt/eq thing, or just "" to indicate "any version"
-var COMPARATORLOOSE = R++
-src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'
-var COMPARATOR = R++
-src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'
-
-// An expression to strip any whitespace between the gtlt and the thing
-// it modifies, so that `> 1.2.3` ==> `>1.2.3`
-var COMPARATORTRIM = R++
-src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
- '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'
-
-// this one has to use the /g flag
-re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g')
-var comparatorTrimReplace = '$1$2$3'
-
-// Something like `1.2.3 - 1.2.4`
-// Note that these all use the loose form, because they'll be
-// checked against either the strict or loose comparator form
-// later.
-var HYPHENRANGE = R++
-src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
- '\\s+-\\s+' +
- '(' + src[XRANGEPLAIN] + ')' +
- '\\s*$'
-
-var HYPHENRANGELOOSE = R++
-src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
- '\\s+-\\s+' +
- '(' + src[XRANGEPLAINLOOSE] + ')' +
- '\\s*$'
-
-// Star ranges basically just allow anything at all.
-var STAR = R++
-src[STAR] = '(<|>)?=?\\s*\\*'
-
-// Compile to actual regexp objects.
-// All are flag-free, unless they were created above with a flag.
-for (var i = 0; i < R; i++) {
- debug(i, src[i])
- if (!re[i]) {
- re[i] = new RegExp(src[i])
- }
-}
-
-exports.parse = parse
-function parse (version, options) {
- if (!options || typeof options !== 'object') {
- options = {
- loose: !!options,
- includePrerelease: false
- }
- }
-
- if (version instanceof SemVer) {
- return version
- }
-
- if (typeof version !== 'string') {
- return null
- }
-
- if (version.length > MAX_LENGTH) {
- return null
- }
-
- var r = options.loose ? re[LOOSE] : re[FULL]
- if (!r.test(version)) {
- return null
- }
-
- try {
- return new SemVer(version, options)
- } catch (er) {
- return null
- }
-}
-
-exports.valid = valid
-function valid (version, options) {
- var v = parse(version, options)
- return v ? v.version : null
-}
-
-exports.clean = clean
-function clean (version, options) {
- var s = parse(version.trim().replace(/^[=v]+/, ''), options)
- return s ? s.version : null
-}
-
-exports.SemVer = SemVer
-
-function SemVer (version, options) {
- if (!options || typeof options !== 'object') {
- options = {
- loose: !!options,
- includePrerelease: false
- }
- }
- if (version instanceof SemVer) {
- if (version.loose === options.loose) {
- return version
- } else {
- version = version.version
- }
- } else if (typeof version !== 'string') {
- throw new TypeError('Invalid Version: ' + version)
- }
-
- if (version.length > MAX_LENGTH) {
- throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
- }
-
- if (!(this instanceof SemVer)) {
- return new SemVer(version, options)
- }
-
- debug('SemVer', version, options)
- this.options = options
- this.loose = !!options.loose
-
- var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL])
-
- if (!m) {
- throw new TypeError('Invalid Version: ' + version)
- }
-
- this.raw = version
-
- // these are actually numbers
- this.major = +m[1]
- this.minor = +m[2]
- this.patch = +m[3]
-
- if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
- throw new TypeError('Invalid major version')
- }
-
- if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
- throw new TypeError('Invalid minor version')
- }
-
- if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
- throw new TypeError('Invalid patch version')
- }
-
- // numberify any prerelease numeric ids
- if (!m[4]) {
- this.prerelease = []
- } else {
- this.prerelease = m[4].split('.').map(function (id) {
- if (/^[0-9]+$/.test(id)) {
- var num = +id
- if (num >= 0 && num < MAX_SAFE_INTEGER) {
- return num
- }
- }
- return id
- })
- }
-
- this.build = m[5] ? m[5].split('.') : []
- this.format()
-}
-
-SemVer.prototype.format = function () {
- this.version = this.major + '.' + this.minor + '.' + this.patch
- if (this.prerelease.length) {
- this.version += '-' + this.prerelease.join('.')
- }
- return this.version
-}
-
-SemVer.prototype.toString = function () {
- return this.version
-}
-
-SemVer.prototype.compare = function (other) {
- debug('SemVer.compare', this.version, this.options, other)
- if (!(other instanceof SemVer)) {
- other = new SemVer(other, this.options)
- }
-
- return this.compareMain(other) || this.comparePre(other)
-}
-
-SemVer.prototype.compareMain = function (other) {
- if (!(other instanceof SemVer)) {
- other = new SemVer(other, this.options)
- }
-
- return compareIdentifiers(this.major, other.major) ||
- compareIdentifiers(this.minor, other.minor) ||
- compareIdentifiers(this.patch, other.patch)
-}
-
-SemVer.prototype.comparePre = function (other) {
- if (!(other instanceof SemVer)) {
- other = new SemVer(other, this.options)
- }
-
- // NOT having a prerelease is > having one
- if (this.prerelease.length && !other.prerelease.length) {
- return -1
- } else if (!this.prerelease.length && other.prerelease.length) {
- return 1
- } else if (!this.prerelease.length && !other.prerelease.length) {
- return 0
- }
-
- var i = 0
- do {
- var a = this.prerelease[i]
- var b = other.prerelease[i]
- debug('prerelease compare', i, a, b)
- if (a === undefined && b === undefined) {
- return 0
- } else if (b === undefined) {
- return 1
- } else if (a === undefined) {
- return -1
- } else if (a === b) {
- continue
- } else {
- return compareIdentifiers(a, b)
- }
- } while (++i)
-}
-
-// preminor will bump the version up to the next minor release, and immediately
-// down to pre-release. premajor and prepatch work the same way.
-SemVer.prototype.inc = function (release, identifier) {
- switch (release) {
- case 'premajor':
- this.prerelease.length = 0
- this.patch = 0
- this.minor = 0
- this.major++
- this.inc('pre', identifier)
- break
- case 'preminor':
- this.prerelease.length = 0
- this.patch = 0
- this.minor++
- this.inc('pre', identifier)
- break
- case 'prepatch':
- // If this is already a prerelease, it will bump to the next version
- // drop any prereleases that might already exist, since they are not
- // relevant at this point.
- this.prerelease.length = 0
- this.inc('patch', identifier)
- this.inc('pre', identifier)
- break
- // If the input is a non-prerelease version, this acts the same as
- // prepatch.
- case 'prerelease':
- if (this.prerelease.length === 0) {
- this.inc('patch', identifier)
- }
- this.inc('pre', identifier)
- break
-
- case 'major':
- // If this is a pre-major version, bump up to the same major version.
- // Otherwise increment major.
- // 1.0.0-5 bumps to 1.0.0
- // 1.1.0 bumps to 2.0.0
- if (this.minor !== 0 ||
- this.patch !== 0 ||
- this.prerelease.length === 0) {
- this.major++
- }
- this.minor = 0
- this.patch = 0
- this.prerelease = []
- break
- case 'minor':
- // If this is a pre-minor version, bump up to the same minor version.
- // Otherwise increment minor.
- // 1.2.0-5 bumps to 1.2.0
- // 1.2.1 bumps to 1.3.0
- if (this.patch !== 0 || this.prerelease.length === 0) {
- this.minor++
- }
- this.patch = 0
- this.prerelease = []
- break
- case 'patch':
- // If this is not a pre-release version, it will increment the patch.
- // If it is a pre-release it will bump up to the same patch version.
- // 1.2.0-5 patches to 1.2.0
- // 1.2.0 patches to 1.2.1
- if (this.prerelease.length === 0) {
- this.patch++
- }
- this.prerelease = []
- break
- // This probably shouldn't be used publicly.
- // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
- case 'pre':
- if (this.prerelease.length === 0) {
- this.prerelease = [0]
- } else {
- var i = this.prerelease.length
- while (--i >= 0) {
- if (typeof this.prerelease[i] === 'number') {
- this.prerelease[i]++
- i = -2
- }
- }
- if (i === -1) {
- // didn't increment anything
- this.prerelease.push(0)
- }
- }
- if (identifier) {
- // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
- // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
- if (this.prerelease[0] === identifier) {
- if (isNaN(this.prerelease[1])) {
- this.prerelease = [identifier, 0]
- }
- } else {
- this.prerelease = [identifier, 0]
- }
- }
- break
-
- default:
- throw new Error('invalid increment argument: ' + release)
- }
- this.format()
- this.raw = this.version
- return this
-}
-
-exports.inc = inc
-function inc (version, release, loose, identifier) {
- if (typeof (loose) === 'string') {
- identifier = loose
- loose = undefined
- }
-
- try {
- return new SemVer(version, loose).inc(release, identifier).version
- } catch (er) {
- return null
- }
-}
-
-exports.diff = diff
-function diff (version1, version2) {
- if (eq(version1, version2)) {
- return null
- } else {
- var v1 = parse(version1)
- var v2 = parse(version2)
- var prefix = ''
- if (v1.prerelease.length || v2.prerelease.length) {
- prefix = 'pre'
- var defaultResult = 'prerelease'
- }
- for (var key in v1) {
- if (key === 'major' || key === 'minor' || key === 'patch') {
- if (v1[key] !== v2[key]) {
- return prefix + key
- }
- }
- }
- return defaultResult // may be undefined
- }
-}
-
-exports.compareIdentifiers = compareIdentifiers
-
-var numeric = /^[0-9]+$/
-function compareIdentifiers (a, b) {
- var anum = numeric.test(a)
- var bnum = numeric.test(b)
-
- if (anum && bnum) {
- a = +a
- b = +b
- }
-
- return a === b ? 0
- : (anum && !bnum) ? -1
- : (bnum && !anum) ? 1
- : a < b ? -1
- : 1
-}
-
-exports.rcompareIdentifiers = rcompareIdentifiers
-function rcompareIdentifiers (a, b) {
- return compareIdentifiers(b, a)
-}
-
-exports.major = major
-function major (a, loose) {
- return new SemVer(a, loose).major
-}
-
-exports.minor = minor
-function minor (a, loose) {
- return new SemVer(a, loose).minor
-}
-
-exports.patch = patch
-function patch (a, loose) {
- return new SemVer(a, loose).patch
-}
-
-exports.compare = compare
-function compare (a, b, loose) {
- return new SemVer(a, loose).compare(new SemVer(b, loose))
-}
-
-exports.compareLoose = compareLoose
-function compareLoose (a, b) {
- return compare(a, b, true)
-}
-
-exports.rcompare = rcompare
-function rcompare (a, b, loose) {
- return compare(b, a, loose)
-}
-
-exports.sort = sort
-function sort (list, loose) {
- return list.sort(function (a, b) {
- return exports.compare(a, b, loose)
- })
-}
-
-exports.rsort = rsort
-function rsort (list, loose) {
- return list.sort(function (a, b) {
- return exports.rcompare(a, b, loose)
- })
-}
-
-exports.gt = gt
-function gt (a, b, loose) {
- return compare(a, b, loose) > 0
-}
-
-exports.lt = lt
-function lt (a, b, loose) {
- return compare(a, b, loose) < 0
-}
-
-exports.eq = eq
-function eq (a, b, loose) {
- return compare(a, b, loose) === 0
-}
-
-exports.neq = neq
-function neq (a, b, loose) {
- return compare(a, b, loose) !== 0
-}
-
-exports.gte = gte
-function gte (a, b, loose) {
- return compare(a, b, loose) >= 0
-}
-
-exports.lte = lte
-function lte (a, b, loose) {
- return compare(a, b, loose) <= 0
-}
-
-exports.cmp = cmp
-function cmp (a, op, b, loose) {
- switch (op) {
- case '===':
- if (typeof a === 'object')
- a = a.version
- if (typeof b === 'object')
- b = b.version
- return a === b
-
- case '!==':
- if (typeof a === 'object')
- a = a.version
- if (typeof b === 'object')
- b = b.version
- return a !== b
-
- case '':
- case '=':
- case '==':
- return eq(a, b, loose)
-
- case '!=':
- return neq(a, b, loose)
-
- case '>':
- return gt(a, b, loose)
-
- case '>=':
- return gte(a, b, loose)
-
- case '<':
- return lt(a, b, loose)
-
- case '<=':
- return lte(a, b, loose)
-
- default:
- throw new TypeError('Invalid operator: ' + op)
- }
-}
-
-exports.Comparator = Comparator
-function Comparator (comp, options) {
- if (!options || typeof options !== 'object') {
- options = {
- loose: !!options,
- includePrerelease: false
- }
- }
-
- if (comp instanceof Comparator) {
- if (comp.loose === !!options.loose) {
- return comp
- } else {
- comp = comp.value
- }
- }
-
- if (!(this instanceof Comparator)) {
- return new Comparator(comp, options)
- }
-
- debug('comparator', comp, options)
- this.options = options
- this.loose = !!options.loose
- this.parse(comp)
-
- if (this.semver === ANY) {
- this.value = ''
- } else {
- this.value = this.operator + this.semver.version
- }
-
- debug('comp', this)
-}
-
-var ANY = {}
-Comparator.prototype.parse = function (comp) {
- var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
- var m = comp.match(r)
-
- if (!m) {
- throw new TypeError('Invalid comparator: ' + comp)
- }
-
- this.operator = m[1]
- if (this.operator === '=') {
- this.operator = ''
- }
-
- // if it literally is just '>' or '' then allow anything.
- if (!m[2]) {
- this.semver = ANY
- } else {
- this.semver = new SemVer(m[2], this.options.loose)
- }
-}
-
-Comparator.prototype.toString = function () {
- return this.value
-}
-
-Comparator.prototype.test = function (version) {
- debug('Comparator.test', version, this.options.loose)
-
- if (this.semver === ANY) {
- return true
- }
-
- if (typeof version === 'string') {
- version = new SemVer(version, this.options)
- }
-
- return cmp(version, this.operator, this.semver, this.options)
-}
-
-Comparator.prototype.intersects = function (comp, options) {
- if (!(comp instanceof Comparator)) {
- throw new TypeError('a Comparator is required')
- }
-
- if (!options || typeof options !== 'object') {
- options = {
- loose: !!options,
- includePrerelease: false
- }
- }
-
- var rangeTmp
-
- if (this.operator === '') {
- rangeTmp = new Range(comp.value, options)
- return satisfies(this.value, rangeTmp, options)
- } else if (comp.operator === '') {
- rangeTmp = new Range(this.value, options)
- return satisfies(comp.semver, rangeTmp, options)
- }
-
- var sameDirectionIncreasing =
- (this.operator === '>=' || this.operator === '>') &&
- (comp.operator === '>=' || comp.operator === '>')
- var sameDirectionDecreasing =
- (this.operator === '<=' || this.operator === '<') &&
- (comp.operator === '<=' || comp.operator === '<')
- var sameSemVer = this.semver.version === comp.semver.version
- var differentDirectionsInclusive =
- (this.operator === '>=' || this.operator === '<=') &&
- (comp.operator === '>=' || comp.operator === '<=')
- var oppositeDirectionsLessThan =
- cmp(this.semver, '<', comp.semver, options) &&
- ((this.operator === '>=' || this.operator === '>') &&
- (comp.operator === '<=' || comp.operator === '<'))
- var oppositeDirectionsGreaterThan =
- cmp(this.semver, '>', comp.semver, options) &&
- ((this.operator === '<=' || this.operator === '<') &&
- (comp.operator === '>=' || comp.operator === '>'))
-
- return sameDirectionIncreasing || sameDirectionDecreasing ||
- (sameSemVer && differentDirectionsInclusive) ||
- oppositeDirectionsLessThan || oppositeDirectionsGreaterThan
-}
-
-exports.Range = Range
-function Range (range, options) {
- if (!options || typeof options !== 'object') {
- options = {
- loose: !!options,
- includePrerelease: false
- }
- }
-
- if (range instanceof Range) {
- if (range.loose === !!options.loose &&
- range.includePrerelease === !!options.includePrerelease) {
- return range
- } else {
- return new Range(range.raw, options)
- }
- }
-
- if (range instanceof Comparator) {
- return new Range(range.value, options)
- }
-
- if (!(this instanceof Range)) {
- return new Range(range, options)
- }
-
- this.options = options
- this.loose = !!options.loose
- this.includePrerelease = !!options.includePrerelease
-
- // First, split based on boolean or ||
- this.raw = range
- this.set = range.split(/\s*\|\|\s*/).map(function (range) {
- return this.parseRange(range.trim())
- }, this).filter(function (c) {
- // throw out any that are not relevant for whatever reason
- return c.length
- })
-
- if (!this.set.length) {
- throw new TypeError('Invalid SemVer Range: ' + range)
- }
-
- this.format()
-}
-
-Range.prototype.format = function () {
- this.range = this.set.map(function (comps) {
- return comps.join(' ').trim()
- }).join('||').trim()
- return this.range
-}
-
-Range.prototype.toString = function () {
- return this.range
-}
-
-Range.prototype.parseRange = function (range) {
- var loose = this.options.loose
- range = range.trim()
- // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
- var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]
- range = range.replace(hr, hyphenReplace)
- debug('hyphen replace', range)
- // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
- range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace)
- debug('comparator trim', range, re[COMPARATORTRIM])
-
- // `~ 1.2.3` => `~1.2.3`
- range = range.replace(re[TILDETRIM], tildeTrimReplace)
-
- // `^ 1.2.3` => `^1.2.3`
- range = range.replace(re[CARETTRIM], caretTrimReplace)
-
- // normalize spaces
- range = range.split(/\s+/).join(' ')
-
- // At this point, the range is completely trimmed and
- // ready to be split into comparators.
-
- var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]
- var set = range.split(' ').map(function (comp) {
- return parseComparator(comp, this.options)
- }, this).join(' ').split(/\s+/)
- if (this.options.loose) {
- // in loose mode, throw out any that are not valid comparators
- set = set.filter(function (comp) {
- return !!comp.match(compRe)
- })
- }
- set = set.map(function (comp) {
- return new Comparator(comp, this.options)
- }, this)
-
- return set
-}
-
-Range.prototype.intersects = function (range, options) {
- if (!(range instanceof Range)) {
- throw new TypeError('a Range is required')
- }
-
- return this.set.some(function (thisComparators) {
- return thisComparators.every(function (thisComparator) {
- return range.set.some(function (rangeComparators) {
- return rangeComparators.every(function (rangeComparator) {
- return thisComparator.intersects(rangeComparator, options)
- })
- })
- })
- })
-}
-
-// Mostly just for testing and legacy API reasons
-exports.toComparators = toComparators
-function toComparators (range, options) {
- return new Range(range, options).set.map(function (comp) {
- return comp.map(function (c) {
- return c.value
- }).join(' ').trim().split(' ')
- })
-}
-
-// comprised of xranges, tildes, stars, and gtlt's at this point.
-// already replaced the hyphen ranges
-// turn into a set of JUST comparators.
-function parseComparator (comp, options) {
- debug('comp', comp, options)
- comp = replaceCarets(comp, options)
- debug('caret', comp)
- comp = replaceTildes(comp, options)
- debug('tildes', comp)
- comp = replaceXRanges(comp, options)
- debug('xrange', comp)
- comp = replaceStars(comp, options)
- debug('stars', comp)
- return comp
-}
-
-function isX (id) {
- return !id || id.toLowerCase() === 'x' || id === '*'
-}
-
-// ~, ~> --> * (any, kinda silly)
-// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
-// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
-// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
-// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
-// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
-function replaceTildes (comp, options) {
- return comp.trim().split(/\s+/).map(function (comp) {
- return replaceTilde(comp, options)
- }).join(' ')
-}
-
-function replaceTilde (comp, options) {
- var r = options.loose ? re[TILDELOOSE] : re[TILDE]
- return comp.replace(r, function (_, M, m, p, pr) {
- debug('tilde', comp, _, M, m, p, pr)
- var ret
-
- if (isX(M)) {
- ret = ''
- } else if (isX(m)) {
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
- } else if (isX(p)) {
- // ~1.2 == >=1.2.0 <1.3.0
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
- } else if (pr) {
- debug('replaceTilde pr', pr)
- ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
- ' <' + M + '.' + (+m + 1) + '.0'
- } else {
- // ~1.2.3 == >=1.2.3 <1.3.0
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + (+m + 1) + '.0'
- }
-
- debug('tilde return', ret)
- return ret
- })
-}
-
-// ^ --> * (any, kinda silly)
-// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
-// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
-// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
-// ^1.2.3 --> >=1.2.3 <2.0.0
-// ^1.2.0 --> >=1.2.0 <2.0.0
-function replaceCarets (comp, options) {
- return comp.trim().split(/\s+/).map(function (comp) {
- return replaceCaret(comp, options)
- }).join(' ')
-}
-
-function replaceCaret (comp, options) {
- debug('caret', comp, options)
- var r = options.loose ? re[CARETLOOSE] : re[CARET]
- return comp.replace(r, function (_, M, m, p, pr) {
- debug('caret', comp, _, M, m, p, pr)
- var ret
-
- if (isX(M)) {
- ret = ''
- } else if (isX(m)) {
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
- } else if (isX(p)) {
- if (M === '0') {
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
- } else {
- ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'
- }
- } else if (pr) {
- debug('replaceCaret pr', pr)
- if (M === '0') {
- if (m === '0') {
- ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
- ' <' + M + '.' + m + '.' + (+p + 1)
- } else {
- ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
- ' <' + M + '.' + (+m + 1) + '.0'
- }
- } else {
- ret = '>=' + M + '.' + m + '.' + p + '-' + pr +
- ' <' + (+M + 1) + '.0.0'
- }
- } else {
- debug('no pr')
- if (M === '0') {
- if (m === '0') {
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + m + '.' + (+p + 1)
- } else {
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + M + '.' + (+m + 1) + '.0'
- }
- } else {
- ret = '>=' + M + '.' + m + '.' + p +
- ' <' + (+M + 1) + '.0.0'
- }
- }
-
- debug('caret return', ret)
- return ret
- })
-}
-
-function replaceXRanges (comp, options) {
- debug('replaceXRanges', comp, options)
- return comp.split(/\s+/).map(function (comp) {
- return replaceXRange(comp, options)
- }).join(' ')
-}
-
-function replaceXRange (comp, options) {
- comp = comp.trim()
- var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]
- return comp.replace(r, function (ret, gtlt, M, m, p, pr) {
- debug('xRange', comp, ret, gtlt, M, m, p, pr)
- var xM = isX(M)
- var xm = xM || isX(m)
- var xp = xm || isX(p)
- var anyX = xp
-
- if (gtlt === '=' && anyX) {
- gtlt = ''
- }
-
- if (xM) {
- if (gtlt === '>' || gtlt === '<') {
- // nothing is allowed
- ret = '<0.0.0'
- } else {
- // nothing is forbidden
- ret = '*'
- }
- } else if (gtlt && anyX) {
- // we know patch is an x, because we have any x at all.
- // replace X with 0
- if (xm) {
- m = 0
- }
- p = 0
-
- if (gtlt === '>') {
- // >1 => >=2.0.0
- // >1.2 => >=1.3.0
- // >1.2.3 => >= 1.2.4
- gtlt = '>='
- if (xm) {
- M = +M + 1
- m = 0
- p = 0
- } else {
- m = +m + 1
- p = 0
- }
- } else if (gtlt === '<=') {
- // <=0.7.x is actually <0.8.0, since any 0.7.x should
- // pass. Similarly, <=7.x is actually <8.0.0, etc.
- gtlt = '<'
- if (xm) {
- M = +M + 1
- } else {
- m = +m + 1
- }
- }
-
- ret = gtlt + M + '.' + m + '.' + p
- } else if (xm) {
- ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'
- } else if (xp) {
- ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'
- }
-
- debug('xRange return', ret)
-
- return ret
- })
-}
-
-// Because * is AND-ed with everything else in the comparator,
-// and '' means "any version", just remove the *s entirely.
-function replaceStars (comp, options) {
- debug('replaceStars', comp, options)
- // Looseness is ignored here. star is always as loose as it gets!
- return comp.trim().replace(re[STAR], '')
-}
-
-// This function is passed to string.replace(re[HYPHENRANGE])
-// M, m, patch, prerelease, build
-// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
-// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
-// 1.2 - 3.4 => >=1.2.0 <3.5.0
-function hyphenReplace ($0,
- from, fM, fm, fp, fpr, fb,
- to, tM, tm, tp, tpr, tb) {
- if (isX(fM)) {
- from = ''
- } else if (isX(fm)) {
- from = '>=' + fM + '.0.0'
- } else if (isX(fp)) {
- from = '>=' + fM + '.' + fm + '.0'
- } else {
- from = '>=' + from
- }
-
- if (isX(tM)) {
- to = ''
- } else if (isX(tm)) {
- to = '<' + (+tM + 1) + '.0.0'
- } else if (isX(tp)) {
- to = '<' + tM + '.' + (+tm + 1) + '.0'
- } else if (tpr) {
- to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr
- } else {
- to = '<=' + to
- }
-
- return (from + ' ' + to).trim()
-}
-
-// if ANY of the sets match ALL of its comparators, then pass
-Range.prototype.test = function (version) {
- if (!version) {
- return false
- }
-
- if (typeof version === 'string') {
- version = new SemVer(version, this.options)
- }
-
- for (var i = 0; i < this.set.length; i++) {
- if (testSet(this.set[i], version, this.options)) {
- return true
- }
- }
- return false
-}
-
-function testSet (set, version, options) {
- for (var i = 0; i < set.length; i++) {
- if (!set[i].test(version)) {
- return false
- }
- }
-
- if (version.prerelease.length && !options.includePrerelease) {
- // Find the set of versions that are allowed to have prereleases
- // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
- // That should allow `1.2.3-pr.2` to pass.
- // However, `1.2.4-alpha.notready` should NOT be allowed,
- // even though it's within the range set by the comparators.
- for (i = 0; i < set.length; i++) {
- debug(set[i].semver)
- if (set[i].semver === ANY) {
- continue
- }
-
- if (set[i].semver.prerelease.length > 0) {
- var allowed = set[i].semver
- if (allowed.major === version.major &&
- allowed.minor === version.minor &&
- allowed.patch === version.patch) {
- return true
- }
- }
- }
-
- // Version has a -pre, but it's not one of the ones we like.
- return false
- }
-
- return true
-}
-
-exports.satisfies = satisfies
-function satisfies (version, range, options) {
- try {
- range = new Range(range, options)
- } catch (er) {
- return false
- }
- return range.test(version)
-}
-
-exports.maxSatisfying = maxSatisfying
-function maxSatisfying (versions, range, options) {
- var max = null
- var maxSV = null
- try {
- var rangeObj = new Range(range, options)
- } catch (er) {
- return null
- }
- versions.forEach(function (v) {
- if (rangeObj.test(v)) {
- // satisfies(v, range, options)
- if (!max || maxSV.compare(v) === -1) {
- // compare(max, v, true)
- max = v
- maxSV = new SemVer(max, options)
- }
- }
- })
- return max
-}
-
-exports.minSatisfying = minSatisfying
-function minSatisfying (versions, range, options) {
- var min = null
- var minSV = null
- try {
- var rangeObj = new Range(range, options)
- } catch (er) {
- return null
- }
- versions.forEach(function (v) {
- if (rangeObj.test(v)) {
- // satisfies(v, range, options)
- if (!min || minSV.compare(v) === 1) {
- // compare(min, v, true)
- min = v
- minSV = new SemVer(min, options)
- }
- }
- })
- return min
-}
-
-exports.minVersion = minVersion
-function minVersion (range, loose) {
- range = new Range(range, loose)
-
- var minver = new SemVer('0.0.0')
- if (range.test(minver)) {
- return minver
- }
-
- minver = new SemVer('0.0.0-0')
- if (range.test(minver)) {
- return minver
- }
-
- minver = null
- for (var i = 0; i < range.set.length; ++i) {
- var comparators = range.set[i]
-
- comparators.forEach(function (comparator) {
- // Clone to avoid manipulating the comparator's semver object.
- var compver = new SemVer(comparator.semver.version)
- switch (comparator.operator) {
- case '>':
- if (compver.prerelease.length === 0) {
- compver.patch++
- } else {
- compver.prerelease.push(0)
- }
- compver.raw = compver.format()
- /* fallthrough */
- case '':
- case '>=':
- if (!minver || gt(minver, compver)) {
- minver = compver
- }
- break
- case '<':
- case '<=':
- /* Ignore maximum versions */
- break
- /* istanbul ignore next */
- default:
- throw new Error('Unexpected operation: ' + comparator.operator)
- }
- })
- }
-
- if (minver && range.test(minver)) {
- return minver
- }
-
- return null
-}
-
-exports.validRange = validRange
-function validRange (range, options) {
- try {
- // Return '*' instead of '' so that truthiness works.
- // This will throw if it's invalid anyway
- return new Range(range, options).range || '*'
- } catch (er) {
- return null
- }
-}
-
-// Determine if version is less than all the versions possible in the range
-exports.ltr = ltr
-function ltr (version, range, options) {
- return outside(version, range, '<', options)
-}
-
-// Determine if version is greater than all the versions possible in the range.
-exports.gtr = gtr
-function gtr (version, range, options) {
- return outside(version, range, '>', options)
-}
-
-exports.outside = outside
-function outside (version, range, hilo, options) {
- version = new SemVer(version, options)
- range = new Range(range, options)
-
- var gtfn, ltefn, ltfn, comp, ecomp
- switch (hilo) {
- case '>':
- gtfn = gt
- ltefn = lte
- ltfn = lt
- comp = '>'
- ecomp = '>='
- break
- case '<':
- gtfn = lt
- ltefn = gte
- ltfn = gt
- comp = '<'
- ecomp = '<='
- break
- default:
- throw new TypeError('Must provide a hilo val of "<" or ">"')
- }
-
- // If it satisifes the range it is not outside
- if (satisfies(version, range, options)) {
- return false
- }
-
- // From now on, variable terms are as if we're in "gtr" mode.
- // but note that everything is flipped for the "ltr" function.
-
- for (var i = 0; i < range.set.length; ++i) {
- var comparators = range.set[i]
-
- var high = null
- var low = null
-
- comparators.forEach(function (comparator) {
- if (comparator.semver === ANY) {
- comparator = new Comparator('>=0.0.0')
- }
- high = high || comparator
- low = low || comparator
- if (gtfn(comparator.semver, high.semver, options)) {
- high = comparator
- } else if (ltfn(comparator.semver, low.semver, options)) {
- low = comparator
- }
- })
-
- // If the edge version comparator has a operator then our version
- // isn't outside it
- if (high.operator === comp || high.operator === ecomp) {
- return false
- }
-
- // If the lowest version comparator has an operator and our version
- // is less than it then it isn't higher than the range
- if ((!low.operator || low.operator === comp) &&
- ltefn(version, low.semver)) {
- return false
- } else if (low.operator === ecomp && ltfn(version, low.semver)) {
- return false
- }
- }
- return true
-}
-
-exports.prerelease = prerelease
-function prerelease (version, options) {
- var parsed = parse(version, options)
- return (parsed && parsed.prerelease.length) ? parsed.prerelease : null
-}
-
-exports.intersects = intersects
-function intersects (r1, r2, options) {
- r1 = new Range(r1, options)
- r2 = new Range(r2, options)
- return r1.intersects(r2)
-}
-
-exports.coerce = coerce
-function coerce (version) {
- if (version instanceof SemVer) {
- return version
- }
-
- if (typeof version !== 'string') {
- return null
- }
-
- var match = version.match(re[COERCE])
-
- if (match == null) {
- return null
- }
-
- return parse(match[1] +
- '.' + (match[2] || '0') +
- '.' + (match[3] || '0'))
-}
diff --git a/node_modules/set-blocking/CHANGELOG.md b/node_modules/set-blocking/CHANGELOG.md
deleted file mode 100644
index 03bf591..0000000
--- a/node_modules/set-blocking/CHANGELOG.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="2.0.0"></a>
-# [2.0.0](https://github.com/yargs/set-blocking/compare/v1.0.0...v2.0.0) (2016-05-17)
-
-
-### Features
-
-* add an isTTY check ([#3](https://github.com/yargs/set-blocking/issues/3)) ([66ce277](https://github.com/yargs/set-blocking/commit/66ce277))
-
-
-### BREAKING CHANGES
-
-* stdio/stderr will not be set to blocking if isTTY === false
-
-
-
-<a name="1.0.0"></a>
-# 1.0.0 (2016-05-14)
-
-
-### Features
-
-* implemented shim for stream._handle.setBlocking ([6bde0c0](https://github.com/yargs/set-blocking/commit/6bde0c0))
diff --git a/node_modules/set-blocking/LICENSE.txt b/node_modules/set-blocking/LICENSE.txt
deleted file mode 100644
index 836440b..0000000
--- a/node_modules/set-blocking/LICENSE.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2016, Contributors
-
-Permission to use, copy, modify, and/or distribute this software
-for any purpose with or without fee is hereby granted, provided
-that the above copyright notice and this permission notice
-appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
-LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
-OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/set-blocking/README.md b/node_modules/set-blocking/README.md
deleted file mode 100644
index e93b420..0000000
--- a/node_modules/set-blocking/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# set-blocking
-
-[![Build Status](https://travis-ci.org/yargs/set-blocking.svg)](https://travis-ci.org/yargs/set-blocking)
-[![NPM version](https://img.shields.io/npm/v/set-blocking.svg)](https://www.npmjs.com/package/set-blocking)
-[![Coverage Status](https://coveralls.io/repos/yargs/set-blocking/badge.svg?branch=)](https://coveralls.io/r/yargs/set-blocking?branch=master)
-[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
-
-set blocking `stdio` and `stderr` ensuring that terminal output does not truncate.
-
-```js
-const setBlocking = require('set-blocking')
-setBlocking(true)
-console.log(someLargeStringToOutput)
-```
-
-## Historical Context/Word of Warning
-
-This was created as a shim to address the bug discussed in [node #6456](https://github.com/nodejs/node/issues/6456). This bug crops up on
-newer versions of Node.js (`0.12+`), truncating terminal output.
-
-You should be mindful of the side-effects caused by using `set-blocking`:
-
-* if your module sets blocking to `true`, it will effect other modules
- consuming your library. In [yargs](https://github.com/yargs/yargs/blob/master/yargs.js#L653) we only call
- `setBlocking(true)` once we already know we are about to call `process.exit(code)`.
-* this patch will not apply to subprocesses spawned with `isTTY = true`, this is
- the [default `spawn()` behavior](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options).
-
-## License
-
-ISC
diff --git a/node_modules/set-blocking/index.js b/node_modules/set-blocking/index.js
deleted file mode 100644
index 6f78774..0000000
--- a/node_modules/set-blocking/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = function (blocking) {
- [process.stdout, process.stderr].forEach(function (stream) {
- if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') {
- stream._handle.setBlocking(blocking)
- }
- })
-}
diff --git a/node_modules/set-blocking/package.json b/node_modules/set-blocking/package.json
deleted file mode 100644
index 16949ef..0000000
--- a/node_modules/set-blocking/package.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_from": "set-blocking@~2.0.0",
- "_id": "set-blocking@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
- "_location": "/set-blocking",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "set-blocking@~2.0.0",
- "name": "set-blocking",
- "escapedName": "set-blocking",
- "rawSpec": "~2.0.0",
- "saveSpec": null,
- "fetchSpec": "~2.0.0"
- },
- "_requiredBy": [
- "/npmlog",
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "_shasum": "045f9782d011ae9a6803ddd382b24392b3d890f7",
- "_spec": "set-blocking@~2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/npmlog",
- "author": {
- "name": "Ben Coe",
- "email": "ben@npmjs.com"
- },
- "bugs": {
- "url": "https://github.com/yargs/set-blocking/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "set blocking stdio and stderr ensuring that terminal output does not truncate",
- "devDependencies": {
- "chai": "^3.5.0",
- "coveralls": "^2.11.9",
- "mocha": "^2.4.5",
- "nyc": "^6.4.4",
- "standard": "^7.0.1",
- "standard-version": "^2.2.1"
- },
- "files": [
- "index.js",
- "LICENSE.txt"
- ],
- "homepage": "https://github.com/yargs/set-blocking#readme",
- "keywords": [
- "flush",
- "terminal",
- "blocking",
- "shim",
- "stdio",
- "stderr"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "set-blocking",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/yargs/set-blocking.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "pretest": "standard",
- "test": "nyc mocha ./test/*.js",
- "version": "standard-version"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/signal-exit/CHANGELOG.md b/node_modules/signal-exit/CHANGELOG.md
deleted file mode 100644
index ed104f4..0000000
--- a/node_modules/signal-exit/CHANGELOG.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-### [3.0.3](https://github.com/tapjs/signal-exit/compare/v3.0.2...v3.0.3) (2020-03-26)
-
-
-### Bug Fixes
-
-* patch `SIGHUP` to `SIGINT` when on Windows ([cfd1046](https://github.com/tapjs/signal-exit/commit/cfd1046079af4f0e44f93c69c237a09de8c23ef2))
-* **ci:** use Travis for Windows builds ([007add7](https://github.com/tapjs/signal-exit/commit/007add793d2b5ae3c382512103adbf321768a0b8))
-
-<a name="3.0.1"></a>
-## [3.0.1](https://github.com/tapjs/signal-exit/compare/v3.0.0...v3.0.1) (2016-09-08)
-
-
-### Bug Fixes
-
-* do not listen on SIGBUS, SIGFPE, SIGSEGV and SIGILL ([#40](https://github.com/tapjs/signal-exit/issues/40)) ([5b105fb](https://github.com/tapjs/signal-exit/commit/5b105fb))
-
-
-
-<a name="3.0.0"></a>
-# [3.0.0](https://github.com/tapjs/signal-exit/compare/v2.1.2...v3.0.0) (2016-06-13)
-
-
-### Bug Fixes
-
-* get our test suite running on Windows ([#23](https://github.com/tapjs/signal-exit/issues/23)) ([6f3eda8](https://github.com/tapjs/signal-exit/commit/6f3eda8))
-* hooking SIGPROF was interfering with profilers see [#21](https://github.com/tapjs/signal-exit/issues/21) ([#24](https://github.com/tapjs/signal-exit/issues/24)) ([1248a4c](https://github.com/tapjs/signal-exit/commit/1248a4c))
-
-
-### BREAKING CHANGES
-
-* signal-exit no longer wires into SIGPROF
diff --git a/node_modules/signal-exit/LICENSE.txt b/node_modules/signal-exit/LICENSE.txt
deleted file mode 100644
index eead04a..0000000
--- a/node_modules/signal-exit/LICENSE.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-The ISC License
-
-Copyright (c) 2015, Contributors
-
-Permission to use, copy, modify, and/or distribute this software
-for any purpose with or without fee is hereby granted, provided
-that the above copyright notice and this permission notice
-appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
-LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
-OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/signal-exit/README.md b/node_modules/signal-exit/README.md
deleted file mode 100644
index 9f8eb59..0000000
--- a/node_modules/signal-exit/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# signal-exit
-
-[![Build Status](https://travis-ci.org/tapjs/signal-exit.png)](https://travis-ci.org/tapjs/signal-exit)
-[![Coverage](https://coveralls.io/repos/tapjs/signal-exit/badge.svg?branch=master)](https://coveralls.io/r/tapjs/signal-exit?branch=master)
-[![NPM version](https://img.shields.io/npm/v/signal-exit.svg)](https://www.npmjs.com/package/signal-exit)
-[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
-
-When you want to fire an event no matter how a process exits:
-
-* reaching the end of execution.
-* explicitly having `process.exit(code)` called.
-* having `process.kill(pid, sig)` called.
-* receiving a fatal signal from outside the process
-
-Use `signal-exit`.
-
-```js
-var onExit = require('signal-exit')
-
-onExit(function (code, signal) {
- console.log('process exited!')
-})
-```
-
-## API
-
-`var remove = onExit(function (code, signal) {}, options)`
-
-The return value of the function is a function that will remove the
-handler.
-
-Note that the function *only* fires for signals if the signal would
-cause the proces to exit. That is, there are no other listeners, and
-it is a fatal signal.
-
-## Options
-
-* `alwaysLast`: Run this handler after any other signal or exit
- handlers. This causes `process.emit` to be monkeypatched.
diff --git a/node_modules/signal-exit/index.js b/node_modules/signal-exit/index.js
deleted file mode 100644
index 6b6c43a..0000000
--- a/node_modules/signal-exit/index.js
+++ /dev/null
@@ -1,163 +0,0 @@
-// Note: since nyc uses this module to output coverage, any lines
-// that are in the direct sync flow of nyc's outputCoverage are
-// ignored, since we can never get coverage for them.
-var assert = require('assert')
-var signals = require('./signals.js')
-var isWin = /^win/i.test(process.platform)
-
-var EE = require('events')
-/* istanbul ignore if */
-if (typeof EE !== 'function') {
- EE = EE.EventEmitter
-}
-
-var emitter
-if (process.__signal_exit_emitter__) {
- emitter = process.__signal_exit_emitter__
-} else {
- emitter = process.__signal_exit_emitter__ = new EE()
- emitter.count = 0
- emitter.emitted = {}
-}
-
-// Because this emitter is a global, we have to check to see if a
-// previous version of this library failed to enable infinite listeners.
-// I know what you're about to say. But literally everything about
-// signal-exit is a compromise with evil. Get used to it.
-if (!emitter.infinite) {
- emitter.setMaxListeners(Infinity)
- emitter.infinite = true
-}
-
-module.exports = function (cb, opts) {
- assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
-
- if (loaded === false) {
- load()
- }
-
- var ev = 'exit'
- if (opts && opts.alwaysLast) {
- ev = 'afterexit'
- }
-
- var remove = function () {
- emitter.removeListener(ev, cb)
- if (emitter.listeners('exit').length === 0 &&
- emitter.listeners('afterexit').length === 0) {
- unload()
- }
- }
- emitter.on(ev, cb)
-
- return remove
-}
-
-module.exports.unload = unload
-function unload () {
- if (!loaded) {
- return
- }
- loaded = false
-
- signals.forEach(function (sig) {
- try {
- process.removeListener(sig, sigListeners[sig])
- } catch (er) {}
- })
- process.emit = originalProcessEmit
- process.reallyExit = originalProcessReallyExit
- emitter.count -= 1
-}
-
-function emit (event, code, signal) {
- if (emitter.emitted[event]) {
- return
- }
- emitter.emitted[event] = true
- emitter.emit(event, code, signal)
-}
-
-// { <signal>: <listener fn>, ... }
-var sigListeners = {}
-signals.forEach(function (sig) {
- sigListeners[sig] = function listener () {
- // If there are no other listeners, an exit is coming!
- // Simplest way: remove us and then re-send the signal.
- // We know that this will kill the process, so we can
- // safely emit now.
- var listeners = process.listeners(sig)
- if (listeners.length === emitter.count) {
- unload()
- emit('exit', null, sig)
- /* istanbul ignore next */
- emit('afterexit', null, sig)
- /* istanbul ignore next */
- if (isWin && sig === 'SIGHUP') {
- // "SIGHUP" throws an `ENOSYS` error on Windows,
- // so use a supported signal instead
- sig = 'SIGINT'
- }
- process.kill(process.pid, sig)
- }
- }
-})
-
-module.exports.signals = function () {
- return signals
-}
-
-module.exports.load = load
-
-var loaded = false
-
-function load () {
- if (loaded) {
- return
- }
- loaded = true
-
- // This is the number of onSignalExit's that are in play.
- // It's important so that we can count the correct number of
- // listeners on signals, and don't wait for the other one to
- // handle it instead of us.
- emitter.count += 1
-
- signals = signals.filter(function (sig) {
- try {
- process.on(sig, sigListeners[sig])
- return true
- } catch (er) {
- return false
- }
- })
-
- process.emit = processEmit
- process.reallyExit = processReallyExit
-}
-
-var originalProcessReallyExit = process.reallyExit
-function processReallyExit (code) {
- process.exitCode = code || 0
- emit('exit', process.exitCode, null)
- /* istanbul ignore next */
- emit('afterexit', process.exitCode, null)
- /* istanbul ignore next */
- originalProcessReallyExit.call(process, process.exitCode)
-}
-
-var originalProcessEmit = process.emit
-function processEmit (ev, arg) {
- if (ev === 'exit') {
- if (arg !== undefined) {
- process.exitCode = arg
- }
- var ret = originalProcessEmit.apply(this, arguments)
- emit('exit', process.exitCode, null)
- /* istanbul ignore next */
- emit('afterexit', process.exitCode, null)
- return ret
- } else {
- return originalProcessEmit.apply(this, arguments)
- }
-}
diff --git a/node_modules/signal-exit/package.json b/node_modules/signal-exit/package.json
deleted file mode 100644
index 746c3d9..0000000
--- a/node_modules/signal-exit/package.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "_from": "signal-exit@^3.0.0",
- "_id": "signal-exit@3.0.3",
- "_inBundle": false,
- "_integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==",
- "_location": "/signal-exit",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "signal-exit@^3.0.0",
- "name": "signal-exit",
- "escapedName": "signal-exit",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/gauge",
- "/loud-rejection"
- ],
- "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
- "_shasum": "a1410c2edd8f077b08b4e253c8eacfcaf057461c",
- "_spec": "signal-exit@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/loud-rejection",
- "author": {
- "name": "Ben Coe",
- "email": "ben@npmjs.com"
- },
- "bugs": {
- "url": "https://github.com/tapjs/signal-exit/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "when you want to fire an event no matter how a process exits.",
- "devDependencies": {
- "chai": "^3.5.0",
- "coveralls": "^2.11.10",
- "nyc": "^8.1.0",
- "standard": "^8.1.0",
- "standard-version": "^2.3.0",
- "tap": "^8.0.1"
- },
- "files": [
- "index.js",
- "signals.js"
- ],
- "homepage": "https://github.com/tapjs/signal-exit",
- "keywords": [
- "signal",
- "exit"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "signal-exit",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/tapjs/signal-exit.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "pretest": "standard",
- "release": "standard-version",
- "test": "tap --timeout=240 ./test/*.js --cov"
- },
- "version": "3.0.3"
-}
diff --git a/node_modules/signal-exit/signals.js b/node_modules/signal-exit/signals.js
deleted file mode 100644
index 3bd67a8..0000000
--- a/node_modules/signal-exit/signals.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// This is not the set of all possible signals.
-//
-// It IS, however, the set of all signals that trigger
-// an exit on either Linux or BSD systems. Linux is a
-// superset of the signal names supported on BSD, and
-// the unknown signals just fail to register, so we can
-// catch that easily enough.
-//
-// Don't bother with SIGKILL. It's uncatchable, which
-// means that we can't fire any callbacks anyway.
-//
-// If a user does happen to register a handler on a non-
-// fatal signal like SIGWINCH or something, and then
-// exit, it'll end up firing `process.emit('exit')`, so
-// the handler will be fired anyway.
-//
-// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
-// artificially, inherently leave the process in a
-// state from which it is not safe to try and enter JS
-// listeners.
-module.exports = [
- 'SIGABRT',
- 'SIGALRM',
- 'SIGHUP',
- 'SIGINT',
- 'SIGTERM'
-]
-
-if (process.platform !== 'win32') {
- module.exports.push(
- 'SIGVTALRM',
- 'SIGXCPU',
- 'SIGXFSZ',
- 'SIGUSR2',
- 'SIGTRAP',
- 'SIGSYS',
- 'SIGQUIT',
- 'SIGIOT'
- // should detect profiler and enable/disable accordingly.
- // see #21
- // 'SIGPROF'
- )
-}
-
-if (process.platform === 'linux') {
- module.exports.push(
- 'SIGIO',
- 'SIGPOLL',
- 'SIGPWR',
- 'SIGSTKFLT',
- 'SIGUNUSED'
- )
-}
diff --git a/node_modules/source-map/README.md b/node_modules/source-map/README.md
deleted file mode 100644
index b7c6786..0000000
--- a/node_modules/source-map/README.md
+++ /dev/null
@@ -1,510 +0,0 @@
-# Source Map
-
-This is a library to generate and consume the source map format
-[described here][format].
-
-This library is written in the Asynchronous Module Definition format, and works
-in the following environments:
-
-* Modern Browsers supporting ECMAScript 5 (either after the build, or with an
- AMD loader such as RequireJS)
-
-* Inside Firefox (as a JSM file, after the build)
-
-* With NodeJS versions 0.8.X and higher
-
-## Node
-
- $ npm install source-map
-
-## Building from Source (for everywhere else)
-
-Install Node and then run
-
- $ git clone https://fitzgen@github.com/mozilla/source-map.git
- $ cd source-map
- $ npm link .
-
-Next, run
-
- $ node Makefile.dryice.js
-
-This should spew a bunch of stuff to stdout, and create the following files:
-
-* `dist/source-map.js` - The unminified browser version.
-
-* `dist/source-map.min.js` - The minified browser version.
-
-* `dist/SourceMap.jsm` - The JavaScript Module for inclusion in Firefox source.
-
-## Examples
-
-### Consuming a source map
-
-```js
-var rawSourceMap = {
- version: 3,
- file: 'min.js',
- names: ['bar', 'baz', 'n'],
- sources: ['one.js', 'two.js'],
- sourceRoot: 'http://example.com/www/js/',
- mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA'
-};
-
-var smc = new SourceMapConsumer(rawSourceMap);
-
-console.log(smc.sources);
-// [ 'http://example.com/www/js/one.js',
-// 'http://example.com/www/js/two.js' ]
-
-console.log(smc.originalPositionFor({
- line: 2,
- column: 28
-}));
-// { source: 'http://example.com/www/js/two.js',
-// line: 2,
-// column: 10,
-// name: 'n' }
-
-console.log(smc.generatedPositionFor({
- source: 'http://example.com/www/js/two.js',
- line: 2,
- column: 10
-}));
-// { line: 2, column: 28 }
-
-smc.eachMapping(function (m) {
- // ...
-});
-```
-
-### Generating a source map
-
-In depth guide:
-[**Compiling to JavaScript, and Debugging with Source Maps**](https://hacks.mozilla.org/2013/05/compiling-to-javascript-and-debugging-with-source-maps/)
-
-#### With SourceNode (high level API)
-
-```js
-function compile(ast) {
- switch (ast.type) {
- case 'BinaryExpression':
- return new SourceNode(
- ast.location.line,
- ast.location.column,
- ast.location.source,
- [compile(ast.left), " + ", compile(ast.right)]
- );
- case 'Literal':
- return new SourceNode(
- ast.location.line,
- ast.location.column,
- ast.location.source,
- String(ast.value)
- );
- // ...
- default:
- throw new Error("Bad AST");
- }
-}
-
-var ast = parse("40 + 2", "add.js");
-console.log(compile(ast).toStringWithSourceMap({
- file: 'add.js'
-}));
-// { code: '40 + 2',
-// map: [object SourceMapGenerator] }
-```
-
-#### With SourceMapGenerator (low level API)
-
-```js
-var map = new SourceMapGenerator({
- file: "source-mapped.js"
-});
-
-map.addMapping({
- generated: {
- line: 10,
- column: 35
- },
- source: "foo.js",
- original: {
- line: 33,
- column: 2
- },
- name: "christopher"
-});
-
-console.log(map.toString());
-// '{"version":3,"file":"source-mapped.js","sources":["foo.js"],"names":["christopher"],"mappings":";;;;;;;;;mCAgCEA"}'
-```
-
-## API
-
-Get a reference to the module:
-
-```js
-// NodeJS
-var sourceMap = require('source-map');
-
-// Browser builds
-var sourceMap = window.sourceMap;
-
-// Inside Firefox
-let sourceMap = {};
-Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap);
-```
-
-### SourceMapConsumer
-
-A SourceMapConsumer instance represents a parsed source map which we can query
-for information about the original file positions by giving it a file position
-in the generated source.
-
-#### new SourceMapConsumer(rawSourceMap)
-
-The only parameter is the raw source map (either as a string which can be
-`JSON.parse`'d, or an object). According to the spec, source maps have the
-following attributes:
-
-* `version`: Which version of the source map spec this map is following.
-
-* `sources`: An array of URLs to the original source files.
-
-* `names`: An array of identifiers which can be referrenced by individual
- mappings.
-
-* `sourceRoot`: Optional. The URL root from which all sources are relative.
-
-* `sourcesContent`: Optional. An array of contents of the original source files.
-
-* `mappings`: A string of base64 VLQs which contain the actual mappings.
-
-* `file`: Optional. The generated filename this source map is associated with.
-
-#### SourceMapConsumer.prototype.computeColumnSpans()
-
-Compute the last column for each generated mapping. The last column is
-inclusive.
-
-#### SourceMapConsumer.prototype.originalPositionFor(generatedPosition)
-
-Returns the original source, line, and column information for the generated
-source's line and column positions provided. The only argument is an object with
-the following properties:
-
-* `line`: The line number in the generated source.
-
-* `column`: The column number in the generated source.
-
-* `bias`: Either `SourceMapConsumer.GREATEST_LOWER_BOUND` or
- `SourceMapConsumer.LEAST_UPPER_BOUND`. Specifies whether to return the closest
- element that is smaller than or greater than the one we are searching for,
- respectively, if the exact element cannot be found. Defaults to
- `SourceMapConsumer.GREATEST_LOWER_BOUND`.
-
-and an object is returned with the following properties:
-
-* `source`: The original source file, or null if this information is not
- available.
-
-* `line`: The line number in the original source, or null if this information is
- not available.
-
-* `column`: The column number in the original source, or null or null if this
- information is not available.
-
-* `name`: The original identifier, or null if this information is not available.
-
-#### SourceMapConsumer.prototype.generatedPositionFor(originalPosition)
-
-Returns the generated line and column information for the original source,
-line, and column positions provided. The only argument is an object with
-the following properties:
-
-* `source`: The filename of the original source.
-
-* `line`: The line number in the original source.
-
-* `column`: The column number in the original source.
-
-and an object is returned with the following properties:
-
-* `line`: The line number in the generated source, or null.
-
-* `column`: The column number in the generated source, or null.
-
-#### SourceMapConsumer.prototype.allGeneratedPositionsFor(originalPosition)
-
-Returns all generated line and column information for the original source, line,
-and column provided. If no column is provided, returns all mappings
-corresponding to a either the line we are searching for or the next closest line
-that has any mappings. Otherwise, returns all mappings corresponding to the
-given line and either the column we are searching for or the next closest column
-that has any offsets.
-
-The only argument is an object with the following properties:
-
-* `source`: The filename of the original source.
-
-* `line`: The line number in the original source.
-
-* `column`: Optional. The column number in the original source.
-
-and an array of objects is returned, each with the following properties:
-
-* `line`: The line number in the generated source, or null.
-
-* `column`: The column number in the generated source, or null.
-
-#### SourceMapConsumer.prototype.hasContentsOfAllSources()
-
-Return true if we have the embedded source content for every source listed in
-the source map, false otherwise.
-
-In other words, if this method returns `true`, then `smc.sourceContentFor(s)`
-will succeed for every source `s` in `smc.sources`.
-
-#### SourceMapConsumer.prototype.sourceContentFor(source[, returnNullOnMissing])
-
-Returns the original source content for the source provided. The only
-argument is the URL of the original source file.
-
-If the source content for the given source is not found, then an error is
-thrown. Optionally, pass `true` as the second param to have `null` returned
-instead.
-
-#### SourceMapConsumer.prototype.eachMapping(callback, context, order)
-
-Iterate over each mapping between an original source/line/column and a
-generated line/column in this source map.
-
-* `callback`: The function that is called with each mapping. Mappings have the
- form `{ source, generatedLine, generatedColumn, originalLine, originalColumn,
- name }`
-
-* `context`: Optional. If specified, this object will be the value of `this`
- every time that `callback` is called.
-
-* `order`: Either `SourceMapConsumer.GENERATED_ORDER` or
- `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to iterate over
- the mappings sorted by the generated file's line/column order or the
- original's source/line/column order, respectively. Defaults to
- `SourceMapConsumer.GENERATED_ORDER`.
-
-### SourceMapGenerator
-
-An instance of the SourceMapGenerator represents a source map which is being
-built incrementally.
-
-#### new SourceMapGenerator([startOfSourceMap])
-
-You may pass an object with the following properties:
-
-* `file`: The filename of the generated source that this source map is
- associated with.
-
-* `sourceRoot`: A root for all relative URLs in this source map.
-
-* `skipValidation`: Optional. When `true`, disables validation of mappings as
- they are added. This can improve performance but should be used with
- discretion, as a last resort. Even then, one should avoid using this flag when
- running tests, if possible.
-
-#### SourceMapGenerator.fromSourceMap(sourceMapConsumer)
-
-Creates a new SourceMapGenerator based on a SourceMapConsumer
-
-* `sourceMapConsumer` The SourceMap.
-
-#### SourceMapGenerator.prototype.addMapping(mapping)
-
-Add a single mapping from original source line and column to the generated
-source's line and column for this source map being created. The mapping object
-should have the following properties:
-
-* `generated`: An object with the generated line and column positions.
-
-* `original`: An object with the original line and column positions.
-
-* `source`: The original source file (relative to the sourceRoot).
-
-* `name`: An optional original token name for this mapping.
-
-#### SourceMapGenerator.prototype.setSourceContent(sourceFile, sourceContent)
-
-Set the source content for an original source file.
-
-* `sourceFile` the URL of the original source file.
-
-* `sourceContent` the content of the source file.
-
-#### SourceMapGenerator.prototype.applySourceMap(sourceMapConsumer[, sourceFile[, sourceMapPath]])
-
-Applies a SourceMap for a source file to the SourceMap.
-Each mapping to the supplied source file is rewritten using the
-supplied SourceMap. Note: The resolution for the resulting mappings
-is the minimium of this map and the supplied map.
-
-* `sourceMapConsumer`: The SourceMap to be applied.
-
-* `sourceFile`: Optional. The filename of the source file.
- If omitted, sourceMapConsumer.file will be used, if it exists.
- Otherwise an error will be thrown.
-
-* `sourceMapPath`: Optional. The dirname of the path to the SourceMap
- to be applied. If relative, it is relative to the SourceMap.
-
- This parameter is needed when the two SourceMaps aren't in the same
- directory, and the SourceMap to be applied contains relative source
- paths. If so, those relative source paths need to be rewritten
- relative to the SourceMap.
-
- If omitted, it is assumed that both SourceMaps are in the same directory,
- thus not needing any rewriting. (Supplying `'.'` has the same effect.)
-
-#### SourceMapGenerator.prototype.toString()
-
-Renders the source map being generated to a string.
-
-### SourceNode
-
-SourceNodes provide a way to abstract over interpolating and/or concatenating
-snippets of generated JavaScript source code, while maintaining the line and
-column information associated between those snippets and the original source
-code. This is useful as the final intermediate representation a compiler might
-use before outputting the generated JS and source map.
-
-#### new SourceNode([line, column, source[, chunk[, name]]])
-
-* `line`: The original line number associated with this source node, or null if
- it isn't associated with an original line.
-
-* `column`: The original column number associated with this source node, or null
- if it isn't associated with an original column.
-
-* `source`: The original source's filename; null if no filename is provided.
-
-* `chunk`: Optional. Is immediately passed to `SourceNode.prototype.add`, see
- below.
-
-* `name`: Optional. The original identifier.
-
-#### SourceNode.fromStringWithSourceMap(code, sourceMapConsumer[, relativePath])
-
-Creates a SourceNode from generated code and a SourceMapConsumer.
-
-* `code`: The generated code
-
-* `sourceMapConsumer` The SourceMap for the generated code
-
-* `relativePath` The optional path that relative sources in `sourceMapConsumer`
- should be relative to.
-
-#### SourceNode.prototype.add(chunk)
-
-Add a chunk of generated JS to this source node.
-
-* `chunk`: A string snippet of generated JS code, another instance of
- `SourceNode`, or an array where each member is one of those things.
-
-#### SourceNode.prototype.prepend(chunk)
-
-Prepend a chunk of generated JS to this source node.
-
-* `chunk`: A string snippet of generated JS code, another instance of
- `SourceNode`, or an array where each member is one of those things.
-
-#### SourceNode.prototype.setSourceContent(sourceFile, sourceContent)
-
-Set the source content for a source file. This will be added to the
-`SourceMap` in the `sourcesContent` field.
-
-* `sourceFile`: The filename of the source file
-
-* `sourceContent`: The content of the source file
-
-#### SourceNode.prototype.walk(fn)
-
-Walk over the tree of JS snippets in this node and its children. The walking
-function is called once for each snippet of JS and is passed that snippet and
-the its original associated source's line/column location.
-
-* `fn`: The traversal function.
-
-#### SourceNode.prototype.walkSourceContents(fn)
-
-Walk over the tree of SourceNodes. The walking function is called for each
-source file content and is passed the filename and source content.
-
-* `fn`: The traversal function.
-
-#### SourceNode.prototype.join(sep)
-
-Like `Array.prototype.join` except for SourceNodes. Inserts the separator
-between each of this source node's children.
-
-* `sep`: The separator.
-
-#### SourceNode.prototype.replaceRight(pattern, replacement)
-
-Call `String.prototype.replace` on the very right-most source snippet. Useful
-for trimming whitespace from the end of a source node, etc.
-
-* `pattern`: The pattern to replace.
-
-* `replacement`: The thing to replace the pattern with.
-
-#### SourceNode.prototype.toString()
-
-Return the string representation of this source node. Walks over the tree and
-concatenates all the various snippets together to one string.
-
-#### SourceNode.prototype.toStringWithSourceMap([startOfSourceMap])
-
-Returns the string representation of this tree of source nodes, plus a
-SourceMapGenerator which contains all the mappings between the generated and
-original sources.
-
-The arguments are the same as those to `new SourceMapGenerator`.
-
-## Tests
-
-[![Build Status](https://travis-ci.org/mozilla/source-map.png?branch=master)](https://travis-ci.org/mozilla/source-map)
-
-Install NodeJS version 0.8.0 or greater, then run `node test/run-tests.js`.
-
-To add new tests, create a new file named `test/test-<your new test name>.js`
-and export your test functions with names that start with "test", for example
-
-```js
-exports["test doing the foo bar"] = function (assert, util) {
- ...
-};
-```
-
-The new test will be located automatically when you run the suite.
-
-The `util` argument is the test utility module located at `test/source-map/util`.
-
-The `assert` argument is a cut down version of node's assert module. You have
-access to the following assertion functions:
-
-* `doesNotThrow`
-
-* `equal`
-
-* `ok`
-
-* `strictEqual`
-
-* `throws`
-
-(The reason for the restricted set of test functions is because we need the
-tests to run inside Firefox's test suite as well and so the assert module is
-shimmed in that environment. See `build/assert-shim.js`.)
-
-[format]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit
-[feature]: https://wiki.mozilla.org/DevTools/Features/SourceMap
-[Dryice]: https://github.com/mozilla/dryice
diff --git a/node_modules/source-map/build/assert-shim.js b/node_modules/source-map/build/assert-shim.js
deleted file mode 100644
index daa1a62..0000000
--- a/node_modules/source-map/build/assert-shim.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-define('test/source-map/assert', ['exports'], function (exports) {
-
- let do_throw = function (msg) {
- throw new Error(msg);
- };
-
- exports.init = function (throw_fn) {
- do_throw = throw_fn;
- };
-
- exports.doesNotThrow = function (fn) {
- try {
- fn();
- }
- catch (e) {
- do_throw(e.message);
- }
- };
-
- exports.equal = function (actual, expected, msg) {
- msg = msg || String(actual) + ' != ' + String(expected);
- if (actual != expected) {
- do_throw(msg);
- }
- };
-
- exports.ok = function (val, msg) {
- msg = msg || String(val) + ' is falsey';
- if (!Boolean(val)) {
- do_throw(msg);
- }
- };
-
- exports.strictEqual = function (actual, expected, msg) {
- msg = msg || String(actual) + ' !== ' + String(expected);
- if (actual !== expected) {
- do_throw(msg);
- }
- };
-
- exports.throws = function (fn) {
- try {
- fn();
- do_throw('Expected an error to be thrown, but it wasn\'t.');
- }
- catch (e) {
- }
- };
-
-});
diff --git a/node_modules/source-map/build/mini-require.js b/node_modules/source-map/build/mini-require.js
deleted file mode 100644
index 0daf453..0000000
--- a/node_modules/source-map/build/mini-require.js
+++ /dev/null
@@ -1,152 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-/**
- * Define a module along with a payload.
- * @param {string} moduleName Name for the payload
- * @param {ignored} deps Ignored. For compatibility with CommonJS AMD Spec
- * @param {function} payload Function with (require, exports, module) params
- */
-function define(moduleName, deps, payload) {
- if (typeof moduleName != "string") {
- throw new TypeError('Expected string, got: ' + moduleName);
- }
-
- if (arguments.length == 2) {
- payload = deps;
- }
-
- if (moduleName in define.modules) {
- throw new Error("Module already defined: " + moduleName);
- }
- define.modules[moduleName] = payload;
-};
-
-/**
- * The global store of un-instantiated modules
- */
-define.modules = {};
-
-
-/**
- * We invoke require() in the context of a Domain so we can have multiple
- * sets of modules running separate from each other.
- * This contrasts with JSMs which are singletons, Domains allows us to
- * optionally load a CommonJS module twice with separate data each time.
- * Perhaps you want 2 command lines with a different set of commands in each,
- * for example.
- */
-function Domain() {
- this.modules = {};
- this._currentModule = null;
-}
-
-(function () {
-
- /**
- * Lookup module names and resolve them by calling the definition function if
- * needed.
- * There are 2 ways to call this, either with an array of dependencies and a
- * callback to call when the dependencies are found (which can happen
- * asynchronously in an in-page context) or with a single string an no callback
- * where the dependency is resolved synchronously and returned.
- * The API is designed to be compatible with the CommonJS AMD spec and
- * RequireJS.
- * @param {string[]|string} deps A name, or names for the payload
- * @param {function|undefined} callback Function to call when the dependencies
- * are resolved
- * @return {undefined|object} The module required or undefined for
- * array/callback method
- */
- Domain.prototype.require = function(deps, callback) {
- if (Array.isArray(deps)) {
- var params = deps.map(function(dep) {
- return this.lookup(dep);
- }, this);
- if (callback) {
- callback.apply(null, params);
- }
- return undefined;
- }
- else {
- return this.lookup(deps);
- }
- };
-
- function normalize(path) {
- var bits = path.split('/');
- var i = 1;
- while (i < bits.length) {
- if (bits[i] === '..') {
- bits.splice(i-1, 1);
- } else if (bits[i] === '.') {
- bits.splice(i, 1);
- } else {
- i++;
- }
- }
- return bits.join('/');
- }
-
- function join(a, b) {
- a = a.trim();
- b = b.trim();
- if (/^\//.test(b)) {
- return b;
- } else {
- return a.replace(/\/*$/, '/') + b;
- }
- }
-
- function dirname(path) {
- var bits = path.split('/');
- bits.pop();
- return bits.join('/');
- }
-
- /**
- * Lookup module names and resolve them by calling the definition function if
- * needed.
- * @param {string} moduleName A name for the payload to lookup
- * @return {object} The module specified by aModuleName or null if not found.
- */
- Domain.prototype.lookup = function(moduleName) {
- if (/^\./.test(moduleName)) {
- moduleName = normalize(join(dirname(this._currentModule), moduleName));
- }
-
- if (moduleName in this.modules) {
- var module = this.modules[moduleName];
- return module;
- }
-
- if (!(moduleName in define.modules)) {
- throw new Error("Module not defined: " + moduleName);
- }
-
- var module = define.modules[moduleName];
-
- if (typeof module == "function") {
- var exports = {};
- var previousModule = this._currentModule;
- this._currentModule = moduleName;
- module(this.require.bind(this), exports, { id: moduleName, uri: "" });
- this._currentModule = previousModule;
- module = exports;
- }
-
- // cache the resulting module object for next time
- this.modules[moduleName] = module;
-
- return module;
- };
-
-}());
-
-define.Domain = Domain;
-define.globalDomain = new Domain();
-var require = define.globalDomain.require.bind(define.globalDomain);
diff --git a/node_modules/source-map/build/prefix-source-map.jsm b/node_modules/source-map/build/prefix-source-map.jsm
deleted file mode 100644
index 209dbd7..0000000
--- a/node_modules/source-map/build/prefix-source-map.jsm
+++ /dev/null
@@ -1,21 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-/*
- * WARNING!
- *
- * Do not edit this file directly, it is built from the sources at
- * https://github.com/mozilla/source-map/
- */
-
-///////////////////////////////////////////////////////////////////////////////
-
-
-this.EXPORTED_SYMBOLS = [ "SourceMapConsumer", "SourceMapGenerator", "SourceNode" ];
-
-Components.utils.import("resource://gre/modules/devtools/Console.jsm");
-Components.utils.import('resource://gre/modules/devtools/Require.jsm');
diff --git a/node_modules/source-map/build/prefix-utils.jsm b/node_modules/source-map/build/prefix-utils.jsm
deleted file mode 100644
index 80341d4..0000000
--- a/node_modules/source-map/build/prefix-utils.jsm
+++ /dev/null
@@ -1,18 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-
-/*
- * WARNING!
- *
- * Do not edit this file directly, it is built from the sources at
- * https://github.com/mozilla/source-map/
- */
-
-Components.utils.import('resource://gre/modules/devtools/Require.jsm');
-Components.utils.import('resource://gre/modules/devtools/SourceMap.jsm');
-
-this.EXPORTED_SYMBOLS = [ "define", "runSourceMapTests" ];
diff --git a/node_modules/source-map/build/suffix-browser.js b/node_modules/source-map/build/suffix-browser.js
deleted file mode 100644
index fb29ff5..0000000
--- a/node_modules/source-map/build/suffix-browser.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-///////////////////////////////////////////////////////////////////////////////
-
-this.sourceMap = {
- SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer,
- SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator,
- SourceNode: require('source-map/source-node').SourceNode
-};
diff --git a/node_modules/source-map/build/suffix-source-map.jsm b/node_modules/source-map/build/suffix-source-map.jsm
deleted file mode 100644
index cf3c2d8..0000000
--- a/node_modules/source-map/build/suffix-source-map.jsm
+++ /dev/null
@@ -1,6 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-///////////////////////////////////////////////////////////////////////////////
-
-this.SourceMapConsumer = require('source-map/source-map-consumer').SourceMapConsumer;
-this.SourceMapGenerator = require('source-map/source-map-generator').SourceMapGenerator;
-this.SourceNode = require('source-map/source-node').SourceNode;
diff --git a/node_modules/source-map/build/suffix-utils.jsm b/node_modules/source-map/build/suffix-utils.jsm
deleted file mode 100644
index b31b84c..0000000
--- a/node_modules/source-map/build/suffix-utils.jsm
+++ /dev/null
@@ -1,21 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-function runSourceMapTests(modName, do_throw) {
- let mod = require(modName);
- let assert = require('test/source-map/assert');
- let util = require('test/source-map/util');
-
- assert.init(do_throw);
-
- for (let k in mod) {
- if (/^test/.test(k)) {
- mod[k](assert, util);
- }
- }
-
-}
-this.runSourceMapTests = runSourceMapTests;
diff --git a/node_modules/source-map/build/test-prefix.js b/node_modules/source-map/build/test-prefix.js
deleted file mode 100644
index 1b13f30..0000000
--- a/node_modules/source-map/build/test-prefix.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * WARNING!
- *
- * Do not edit this file directly, it is built from the sources at
- * https://github.com/mozilla/source-map/
- */
-
-Components.utils.import('resource://test/Utils.jsm');
diff --git a/node_modules/source-map/build/test-suffix.js b/node_modules/source-map/build/test-suffix.js
deleted file mode 100644
index bec2de3..0000000
--- a/node_modules/source-map/build/test-suffix.js
+++ /dev/null
@@ -1,3 +0,0 @@
-function run_test() {
- runSourceMapTests('{THIS_MODULE}', do_throw);
-}
diff --git a/node_modules/source-map/lib/source-map.js b/node_modules/source-map/lib/source-map.js
deleted file mode 100644
index 121ad24..0000000
--- a/node_modules/source-map/lib/source-map.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
- * Copyright 2009-2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE.txt or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator;
-exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer;
-exports.SourceNode = require('./source-map/source-node').SourceNode;
diff --git a/node_modules/source-map/lib/source-map/array-set.js b/node_modules/source-map/lib/source-map/array-set.js
deleted file mode 100644
index 19cb841..0000000
--- a/node_modules/source-map/lib/source-map/array-set.js
+++ /dev/null
@@ -1,107 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- var util = require('./util');
-
- /**
- * A data structure which is a combination of an array and a set. Adding a new
- * member is O(1), testing for membership is O(1), and finding the index of an
- * element is O(1). Removing elements from the set is not supported. Only
- * strings are supported for membership.
- */
- function ArraySet() {
- this._array = [];
- this._set = {};
- }
-
- /**
- * Static method for creating ArraySet instances from an existing array.
- */
- ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
- var set = new ArraySet();
- for (var i = 0, len = aArray.length; i < len; i++) {
- set.add(aArray[i], aAllowDuplicates);
- }
- return set;
- };
-
- /**
- * Return how many unique items are in this ArraySet. If duplicates have been
- * added, than those do not count towards the size.
- *
- * @returns Number
- */
- ArraySet.prototype.size = function ArraySet_size() {
- return Object.getOwnPropertyNames(this._set).length;
- };
-
- /**
- * Add the given string to this set.
- *
- * @param String aStr
- */
- ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
- var isDuplicate = this.has(aStr);
- var idx = this._array.length;
- if (!isDuplicate || aAllowDuplicates) {
- this._array.push(aStr);
- }
- if (!isDuplicate) {
- this._set[util.toSetString(aStr)] = idx;
- }
- };
-
- /**
- * Is the given string a member of this set?
- *
- * @param String aStr
- */
- ArraySet.prototype.has = function ArraySet_has(aStr) {
- return Object.prototype.hasOwnProperty.call(this._set,
- util.toSetString(aStr));
- };
-
- /**
- * What is the index of the given string in the array?
- *
- * @param String aStr
- */
- ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) {
- if (this.has(aStr)) {
- return this._set[util.toSetString(aStr)];
- }
- throw new Error('"' + aStr + '" is not in the set.');
- };
-
- /**
- * What is the element at the given index?
- *
- * @param Number aIdx
- */
- ArraySet.prototype.at = function ArraySet_at(aIdx) {
- if (aIdx >= 0 && aIdx < this._array.length) {
- return this._array[aIdx];
- }
- throw new Error('No element indexed by ' + aIdx);
- };
-
- /**
- * Returns the array representation of this set (which has the proper indices
- * indicated by indexOf). Note that this is a copy of the internal array used
- * for storing the members so that no one can mess with internal state.
- */
- ArraySet.prototype.toArray = function ArraySet_toArray() {
- return this._array.slice();
- };
-
- exports.ArraySet = ArraySet;
-
-});
diff --git a/node_modules/source-map/lib/source-map/base64-vlq.js b/node_modules/source-map/lib/source-map/base64-vlq.js
deleted file mode 100644
index bbe9a58..0000000
--- a/node_modules/source-map/lib/source-map/base64-vlq.js
+++ /dev/null
@@ -1,146 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- *
- * Based on the Base 64 VLQ implementation in Closure Compiler:
- * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java
- *
- * Copyright 2011 The Closure Compiler Authors. All rights reserved.
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following
- * disclaimer in the documentation and/or other materials provided
- * with the distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- var base64 = require('./base64');
-
- // A single base 64 digit can contain 6 bits of data. For the base 64 variable
- // length quantities we use in the source map spec, the first bit is the sign,
- // the next four bits are the actual value, and the 6th bit is the
- // continuation bit. The continuation bit tells us whether there are more
- // digits in this value following this digit.
- //
- // Continuation
- // | Sign
- // | |
- // V V
- // 101011
-
- var VLQ_BASE_SHIFT = 5;
-
- // binary: 100000
- var VLQ_BASE = 1 << VLQ_BASE_SHIFT;
-
- // binary: 011111
- var VLQ_BASE_MASK = VLQ_BASE - 1;
-
- // binary: 100000
- var VLQ_CONTINUATION_BIT = VLQ_BASE;
-
- /**
- * Converts from a two-complement value to a value where the sign bit is
- * placed in the least significant bit. For example, as decimals:
- * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)
- * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)
- */
- function toVLQSigned(aValue) {
- return aValue < 0
- ? ((-aValue) << 1) + 1
- : (aValue << 1) + 0;
- }
-
- /**
- * Converts to a two-complement value from a value where the sign bit is
- * placed in the least significant bit. For example, as decimals:
- * 2 (10 binary) becomes 1, 3 (11 binary) becomes -1
- * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2
- */
- function fromVLQSigned(aValue) {
- var isNegative = (aValue & 1) === 1;
- var shifted = aValue >> 1;
- return isNegative
- ? -shifted
- : shifted;
- }
-
- /**
- * Returns the base 64 VLQ encoded value.
- */
- exports.encode = function base64VLQ_encode(aValue) {
- var encoded = "";
- var digit;
-
- var vlq = toVLQSigned(aValue);
-
- do {
- digit = vlq & VLQ_BASE_MASK;
- vlq >>>= VLQ_BASE_SHIFT;
- if (vlq > 0) {
- // There are still more digits in this value, so we must make sure the
- // continuation bit is marked.
- digit |= VLQ_CONTINUATION_BIT;
- }
- encoded += base64.encode(digit);
- } while (vlq > 0);
-
- return encoded;
- };
-
- /**
- * Decodes the next base 64 VLQ value from the given string and returns the
- * value and the rest of the string via the out parameter.
- */
- exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
- var strLen = aStr.length;
- var result = 0;
- var shift = 0;
- var continuation, digit;
-
- do {
- if (aIndex >= strLen) {
- throw new Error("Expected more digits in base 64 VLQ value.");
- }
-
- digit = base64.decode(aStr.charCodeAt(aIndex++));
- if (digit === -1) {
- throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1));
- }
-
- continuation = !!(digit & VLQ_CONTINUATION_BIT);
- digit &= VLQ_BASE_MASK;
- result = result + (digit << shift);
- shift += VLQ_BASE_SHIFT;
- } while (continuation);
-
- aOutParam.value = fromVLQSigned(result);
- aOutParam.rest = aIndex;
- };
-
-});
diff --git a/node_modules/source-map/lib/source-map/base64.js b/node_modules/source-map/lib/source-map/base64.js
deleted file mode 100644
index 35adbc1..0000000
--- a/node_modules/source-map/lib/source-map/base64.js
+++ /dev/null
@@ -1,73 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
-
- /**
- * Encode an integer in the range of 0 to 63 to a single base 64 digit.
- */
- exports.encode = function (number) {
- if (0 <= number && number < intToCharMap.length) {
- return intToCharMap[number];
- }
- throw new TypeError("Must be between 0 and 63: " + aNumber);
- };
-
- /**
- * Decode a single base 64 character code digit to an integer. Returns -1 on
- * failure.
- */
- exports.decode = function (charCode) {
- var bigA = 65; // 'A'
- var bigZ = 90; // 'Z'
-
- var littleA = 97; // 'a'
- var littleZ = 122; // 'z'
-
- var zero = 48; // '0'
- var nine = 57; // '9'
-
- var plus = 43; // '+'
- var slash = 47; // '/'
-
- var littleOffset = 26;
- var numberOffset = 52;
-
- // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
- if (bigA <= charCode && charCode <= bigZ) {
- return (charCode - bigA);
- }
-
- // 26 - 51: abcdefghijklmnopqrstuvwxyz
- if (littleA <= charCode && charCode <= littleZ) {
- return (charCode - littleA + littleOffset);
- }
-
- // 52 - 61: 0123456789
- if (zero <= charCode && charCode <= nine) {
- return (charCode - zero + numberOffset);
- }
-
- // 62: +
- if (charCode == plus) {
- return 62;
- }
-
- // 63: /
- if (charCode == slash) {
- return 63;
- }
-
- // Invalid base64 digit.
- return -1;
- };
-
-});
diff --git a/node_modules/source-map/lib/source-map/binary-search.js b/node_modules/source-map/lib/source-map/binary-search.js
deleted file mode 100644
index 7936f7e..0000000
--- a/node_modules/source-map/lib/source-map/binary-search.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- exports.GREATEST_LOWER_BOUND = 1;
- exports.LEAST_UPPER_BOUND = 2;
-
- /**
- * Recursive implementation of binary search.
- *
- * @param aLow Indices here and lower do not contain the needle.
- * @param aHigh Indices here and higher do not contain the needle.
- * @param aNeedle The element being searched for.
- * @param aHaystack The non-empty array being searched.
- * @param aCompare Function which takes two elements and returns -1, 0, or 1.
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
- * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- */
- function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {
- // This function terminates when one of the following is true:
- //
- // 1. We find the exact element we are looking for.
- //
- // 2. We did not find the exact element, but we can return the index of
- // the next-closest element.
- //
- // 3. We did not find the exact element, and there is no next-closest
- // element than the one we are searching for, so we return -1.
- var mid = Math.floor((aHigh - aLow) / 2) + aLow;
- var cmp = aCompare(aNeedle, aHaystack[mid], true);
- if (cmp === 0) {
- // Found the element we are looking for.
- return mid;
- }
- else if (cmp > 0) {
- // Our needle is greater than aHaystack[mid].
- if (aHigh - mid > 1) {
- // The element is in the upper half.
- return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);
- }
-
- // The exact needle element was not found in this haystack. Determine if
- // we are in termination case (3) or (2) and return the appropriate thing.
- if (aBias == exports.LEAST_UPPER_BOUND) {
- return aHigh < aHaystack.length ? aHigh : -1;
- } else {
- return mid;
- }
- }
- else {
- // Our needle is less than aHaystack[mid].
- if (mid - aLow > 1) {
- // The element is in the lower half.
- return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);
- }
-
- // we are in termination case (3) or (2) and return the appropriate thing.
- if (aBias == exports.LEAST_UPPER_BOUND) {
- return mid;
- } else {
- return aLow < 0 ? -1 : aLow;
- }
- }
- }
-
- /**
- * This is an implementation of binary search which will always try and return
- * the index of the closest element if there is no exact hit. This is because
- * mappings between original and generated line/col pairs are single points,
- * and there is an implicit region between each of them, so a miss just means
- * that you aren't on the very start of a region.
- *
- * @param aNeedle The element you are looking for.
- * @param aHaystack The array that is being searched.
- * @param aCompare A function which takes the needle and an element in the
- * array and returns -1, 0, or 1 depending on whether the needle is less
- * than, equal to, or greater than the element, respectively.
- * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or
- * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.
- */
- exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
- if (aHaystack.length === 0) {
- return -1;
- }
-
- var index = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack,
- aCompare, aBias || exports.GREATEST_LOWER_BOUND);
- if (index < 0) {
- return -1;
- }
-
- // We have found either the exact element, or the next-closest element than
- // the one we are searching for. However, there may be more than one such
- // element. Make sure we always return the smallest of these.
- while (index - 1 >= 0) {
- if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {
- break;
- }
- --index;
- }
-
- return index;
- };
-
-});
diff --git a/node_modules/source-map/lib/source-map/mapping-list.js b/node_modules/source-map/lib/source-map/mapping-list.js
deleted file mode 100644
index 01aff22..0000000
--- a/node_modules/source-map/lib/source-map/mapping-list.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2014 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- var util = require('./util');
-
- /**
- * Determine whether mappingB is after mappingA with respect to generated
- * position.
- */
- function generatedPositionAfter(mappingA, mappingB) {
- // Optimized for most common case
- var lineA = mappingA.generatedLine;
- var lineB = mappingB.generatedLine;
- var columnA = mappingA.generatedColumn;
- var columnB = mappingB.generatedColumn;
- return lineB > lineA || lineB == lineA && columnB >= columnA ||
- util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
- }
-
- /**
- * A data structure to provide a sorted view of accumulated mappings in a
- * performance conscious manner. It trades a neglibable overhead in general
- * case for a large speedup in case of mappings being added in order.
- */
- function MappingList() {
- this._array = [];
- this._sorted = true;
- // Serves as infimum
- this._last = {generatedLine: -1, generatedColumn: 0};
- }
-
- /**
- * Iterate through internal items. This method takes the same arguments that
- * `Array.prototype.forEach` takes.
- *
- * NOTE: The order of the mappings is NOT guaranteed.
- */
- MappingList.prototype.unsortedForEach =
- function MappingList_forEach(aCallback, aThisArg) {
- this._array.forEach(aCallback, aThisArg);
- };
-
- /**
- * Add the given source mapping.
- *
- * @param Object aMapping
- */
- MappingList.prototype.add = function MappingList_add(aMapping) {
- var mapping;
- if (generatedPositionAfter(this._last, aMapping)) {
- this._last = aMapping;
- this._array.push(aMapping);
- } else {
- this._sorted = false;
- this._array.push(aMapping);
- }
- };
-
- /**
- * Returns the flat, sorted array of mappings. The mappings are sorted by
- * generated position.
- *
- * WARNING: This method returns internal data without copying, for
- * performance. The return value must NOT be mutated, and should be treated as
- * an immutable borrow. If you want to take ownership, you must make your own
- * copy.
- */
- MappingList.prototype.toArray = function MappingList_toArray() {
- if (!this._sorted) {
- this._array.sort(util.compareByGeneratedPositionsInflated);
- this._sorted = true;
- }
- return this._array;
- };
-
- exports.MappingList = MappingList;
-
-});
diff --git a/node_modules/source-map/lib/source-map/quick-sort.js b/node_modules/source-map/lib/source-map/quick-sort.js
deleted file mode 100644
index e0551ed..0000000
--- a/node_modules/source-map/lib/source-map/quick-sort.js
+++ /dev/null
@@ -1,120 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- // It turns out that some (most?) JavaScript engines don't self-host
- // `Array.prototype.sort`. This makes sense because C++ will likely remain
- // faster than JS when doing raw CPU-intensive sorting. However, when using a
- // custom comparator function, calling back and forth between the VM's C++ and
- // JIT'd JS is rather slow *and* loses JIT type information, resulting in
- // worse generated code for the comparator function than would be optimal. In
- // fact, when sorting with a comparator, these costs outweigh the benefits of
- // sorting in C++. By using our own JS-implemented Quick Sort (below), we get
- // a ~3500ms mean speed-up in `bench/bench.html`.
-
- /**
- * Swap the elements indexed by `x` and `y` in the array `ary`.
- *
- * @param {Array} ary
- * The array.
- * @param {Number} x
- * The index of the first item.
- * @param {Number} y
- * The index of the second item.
- */
- function swap(ary, x, y) {
- var temp = ary[x];
- ary[x] = ary[y];
- ary[y] = temp;
- }
-
- /**
- * Returns a random integer within the range `low .. high` inclusive.
- *
- * @param {Number} low
- * The lower bound on the range.
- * @param {Number} high
- * The upper bound on the range.
- */
- function randomIntInRange(low, high) {
- return Math.round(low + (Math.random() * (high - low)));
- }
-
- /**
- * The Quick Sort algorithm.
- *
- * @param {Array} ary
- * An array to sort.
- * @param {function} comparator
- * Function to use to compare two items.
- * @param {Number} p
- * Start index of the array
- * @param {Number} r
- * End index of the array
- */
- function doQuickSort(ary, comparator, p, r) {
- // If our lower bound is less than our upper bound, we (1) partition the
- // array into two pieces and (2) recurse on each half. If it is not, this is
- // the empty array and our base case.
-
- if (p < r) {
- // (1) Partitioning.
- //
- // The partitioning chooses a pivot between `p` and `r` and moves all
- // elements that are less than or equal to the pivot to the before it, and
- // all the elements that are greater than it after it. The effect is that
- // once partition is done, the pivot is in the exact place it will be when
- // the array is put in sorted order, and it will not need to be moved
- // again. This runs in O(n) time.
-
- // Always choose a random pivot so that an input array which is reverse
- // sorted does not cause O(n^2) running time.
- var pivotIndex = randomIntInRange(p, r);
- var i = p - 1;
-
- swap(ary, pivotIndex, r);
- var pivot = ary[r];
-
- // Immediately after `j` is incremented in this loop, the following hold
- // true:
- //
- // * Every element in `ary[p .. i]` is less than or equal to the pivot.
- //
- // * Every element in `ary[i+1 .. j-1]` is greater than the pivot.
- for (var j = p; j < r; j++) {
- if (comparator(ary[j], pivot) <= 0) {
- i += 1;
- swap(ary, i, j);
- }
- }
-
- swap(ary, i + 1, j);
- var q = i + 1;
-
- // (2) Recurse on each half.
-
- doQuickSort(ary, comparator, p, q - 1);
- doQuickSort(ary, comparator, q + 1, r);
- }
- }
-
- /**
- * Sort the given array in-place with the given comparator function.
- *
- * @param {Array} ary
- * An array to sort.
- * @param {function} comparator
- * Function to use to compare two items.
- */
- exports.quickSort = function (ary, comparator) {
- doQuickSort(ary, comparator, 0, ary.length - 1);
- };
-
-});
diff --git a/node_modules/source-map/lib/source-map/source-map-consumer.js b/node_modules/source-map/lib/source-map/source-map-consumer.js
deleted file mode 100644
index cbdc467..0000000
--- a/node_modules/source-map/lib/source-map/source-map-consumer.js
+++ /dev/null
@@ -1,1077 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- var util = require('./util');
- var binarySearch = require('./binary-search');
- var ArraySet = require('./array-set').ArraySet;
- var base64VLQ = require('./base64-vlq');
- var quickSort = require('./quick-sort').quickSort;
-
- function SourceMapConsumer(aSourceMap) {
- var sourceMap = aSourceMap;
- if (typeof aSourceMap === 'string') {
- sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
- }
-
- return sourceMap.sections != null
- ? new IndexedSourceMapConsumer(sourceMap)
- : new BasicSourceMapConsumer(sourceMap);
- }
-
- SourceMapConsumer.fromSourceMap = function(aSourceMap) {
- return BasicSourceMapConsumer.fromSourceMap(aSourceMap);
- }
-
- /**
- * The version of the source mapping spec that we are consuming.
- */
- SourceMapConsumer.prototype._version = 3;
-
- // `__generatedMappings` and `__originalMappings` are arrays that hold the
- // parsed mapping coordinates from the source map's "mappings" attribute. They
- // are lazily instantiated, accessed via the `_generatedMappings` and
- // `_originalMappings` getters respectively, and we only parse the mappings
- // and create these arrays once queried for a source location. We jump through
- // these hoops because there can be many thousands of mappings, and parsing
- // them is expensive, so we only want to do it if we must.
- //
- // Each object in the arrays is of the form:
- //
- // {
- // generatedLine: The line number in the generated code,
- // generatedColumn: The column number in the generated code,
- // source: The path to the original source file that generated this
- // chunk of code,
- // originalLine: The line number in the original source that
- // corresponds to this chunk of generated code,
- // originalColumn: The column number in the original source that
- // corresponds to this chunk of generated code,
- // name: The name of the original symbol which generated this chunk of
- // code.
- // }
- //
- // All properties except for `generatedLine` and `generatedColumn` can be
- // `null`.
- //
- // `_generatedMappings` is ordered by the generated positions.
- //
- // `_originalMappings` is ordered by the original positions.
-
- SourceMapConsumer.prototype.__generatedMappings = null;
- Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', {
- get: function () {
- if (!this.__generatedMappings) {
- this._parseMappings(this._mappings, this.sourceRoot);
- }
-
- return this.__generatedMappings;
- }
- });
-
- SourceMapConsumer.prototype.__originalMappings = null;
- Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', {
- get: function () {
- if (!this.__originalMappings) {
- this._parseMappings(this._mappings, this.sourceRoot);
- }
-
- return this.__originalMappings;
- }
- });
-
- SourceMapConsumer.prototype._charIsMappingSeparator =
- function SourceMapConsumer_charIsMappingSeparator(aStr, index) {
- var c = aStr.charAt(index);
- return c === ";" || c === ",";
- };
-
- /**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
- SourceMapConsumer.prototype._parseMappings =
- function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
- throw new Error("Subclasses must implement _parseMappings");
- };
-
- SourceMapConsumer.GENERATED_ORDER = 1;
- SourceMapConsumer.ORIGINAL_ORDER = 2;
-
- SourceMapConsumer.GREATEST_LOWER_BOUND = 1;
- SourceMapConsumer.LEAST_UPPER_BOUND = 2;
-
- /**
- * Iterate over each mapping between an original source/line/column and a
- * generated line/column in this source map.
- *
- * @param Function aCallback
- * The function that is called with each mapping.
- * @param Object aContext
- * Optional. If specified, this object will be the value of `this` every
- * time that `aCallback` is called.
- * @param aOrder
- * Either `SourceMapConsumer.GENERATED_ORDER` or
- * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to
- * iterate over the mappings sorted by the generated file's line/column
- * order or the original's source/line/column order, respectively. Defaults to
- * `SourceMapConsumer.GENERATED_ORDER`.
- */
- SourceMapConsumer.prototype.eachMapping =
- function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) {
- var context = aContext || null;
- var order = aOrder || SourceMapConsumer.GENERATED_ORDER;
-
- var mappings;
- switch (order) {
- case SourceMapConsumer.GENERATED_ORDER:
- mappings = this._generatedMappings;
- break;
- case SourceMapConsumer.ORIGINAL_ORDER:
- mappings = this._originalMappings;
- break;
- default:
- throw new Error("Unknown order of iteration.");
- }
-
- var sourceRoot = this.sourceRoot;
- mappings.map(function (mapping) {
- var source = mapping.source === null ? null : this._sources.at(mapping.source);
- if (source != null && sourceRoot != null) {
- source = util.join(sourceRoot, source);
- }
- return {
- source: source,
- generatedLine: mapping.generatedLine,
- generatedColumn: mapping.generatedColumn,
- originalLine: mapping.originalLine,
- originalColumn: mapping.originalColumn,
- name: mapping.name === null ? null : this._names.at(mapping.name)
- };
- }, this).forEach(aCallback, context);
- };
-
- /**
- * Returns all generated line and column information for the original source,
- * line, and column provided. If no column is provided, returns all mappings
- * corresponding to a either the line we are searching for or the next
- * closest line that has any mappings. Otherwise, returns all mappings
- * corresponding to the given line and either the column we are searching for
- * or the next closest column that has any offsets.
- *
- * The only argument is an object with the following properties:
- *
- * - source: The filename of the original source.
- * - line: The line number in the original source.
- * - column: Optional. the column number in the original source.
- *
- * and an array of objects is returned, each with the following properties:
- *
- * - line: The line number in the generated source, or null.
- * - column: The column number in the generated source, or null.
- */
- SourceMapConsumer.prototype.allGeneratedPositionsFor =
- function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
- var line = util.getArg(aArgs, 'line');
-
- // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping
- // returns the index of the closest mapping less than the needle. By
- // setting needle.originalColumn to 0, we thus find the last mapping for
- // the given line, provided such a mapping exists.
- var needle = {
- source: util.getArg(aArgs, 'source'),
- originalLine: line,
- originalColumn: util.getArg(aArgs, 'column', 0)
- };
-
- if (this.sourceRoot != null) {
- needle.source = util.relative(this.sourceRoot, needle.source);
- }
- if (!this._sources.has(needle.source)) {
- return [];
- }
- needle.source = this._sources.indexOf(needle.source);
-
- var mappings = [];
-
- var index = this._findMapping(needle,
- this._originalMappings,
- "originalLine",
- "originalColumn",
- util.compareByOriginalPositions,
- binarySearch.LEAST_UPPER_BOUND);
- if (index >= 0) {
- var mapping = this._originalMappings[index];
-
- if (aArgs.column === undefined) {
- var originalLine = mapping.originalLine;
-
- // Iterate until either we run out of mappings, or we run into
- // a mapping for a different line than the one we found. Since
- // mappings are sorted, this is guaranteed to find all mappings for
- // the line we found.
- while (mapping && mapping.originalLine === originalLine) {
- mappings.push({
- line: util.getArg(mapping, 'generatedLine', null),
- column: util.getArg(mapping, 'generatedColumn', null),
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
- });
-
- mapping = this._originalMappings[++index];
- }
- } else {
- var originalColumn = mapping.originalColumn;
-
- // Iterate until either we run out of mappings, or we run into
- // a mapping for a different line than the one we were searching for.
- // Since mappings are sorted, this is guaranteed to find all mappings for
- // the line we are searching for.
- while (mapping &&
- mapping.originalLine === line &&
- mapping.originalColumn == originalColumn) {
- mappings.push({
- line: util.getArg(mapping, 'generatedLine', null),
- column: util.getArg(mapping, 'generatedColumn', null),
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
- });
-
- mapping = this._originalMappings[++index];
- }
- }
- }
-
- return mappings;
- };
-
- exports.SourceMapConsumer = SourceMapConsumer;
-
- /**
- * A BasicSourceMapConsumer instance represents a parsed source map which we can
- * query for information about the original file positions by giving it a file
- * position in the generated source.
- *
- * The only parameter is the raw source map (either as a JSON string, or
- * already parsed to an object). According to the spec, source maps have the
- * following attributes:
- *
- * - version: Which version of the source map spec this map is following.
- * - sources: An array of URLs to the original source files.
- * - names: An array of identifiers which can be referrenced by individual mappings.
- * - sourceRoot: Optional. The URL root from which all sources are relative.
- * - sourcesContent: Optional. An array of contents of the original source files.
- * - mappings: A string of base64 VLQs which contain the actual mappings.
- * - file: Optional. The generated file this source map is associated with.
- *
- * Here is an example source map, taken from the source map spec[0]:
- *
- * {
- * version : 3,
- * file: "out.js",
- * sourceRoot : "",
- * sources: ["foo.js", "bar.js"],
- * names: ["src", "maps", "are", "fun"],
- * mappings: "AA,AB;;ABCDE;"
- * }
- *
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#
- */
- function BasicSourceMapConsumer(aSourceMap) {
- var sourceMap = aSourceMap;
- if (typeof aSourceMap === 'string') {
- sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
- }
-
- var version = util.getArg(sourceMap, 'version');
- var sources = util.getArg(sourceMap, 'sources');
- // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which
- // requires the array) to play nice here.
- var names = util.getArg(sourceMap, 'names', []);
- var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null);
- var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null);
- var mappings = util.getArg(sourceMap, 'mappings');
- var file = util.getArg(sourceMap, 'file', null);
-
- // Once again, Sass deviates from the spec and supplies the version as a
- // string rather than a number, so we use loose equality checking here.
- if (version != this._version) {
- throw new Error('Unsupported version: ' + version);
- }
-
- // Some source maps produce relative source paths like "./foo.js" instead of
- // "foo.js". Normalize these first so that future comparisons will succeed.
- // See bugzil.la/1090768.
- sources = sources.map(util.normalize);
-
- // Pass `true` below to allow duplicate names and sources. While source maps
- // are intended to be compressed and deduplicated, the TypeScript compiler
- // sometimes generates source maps with duplicates in them. See Github issue
- // #72 and bugzil.la/889492.
- this._names = ArraySet.fromArray(names, true);
- this._sources = ArraySet.fromArray(sources, true);
-
- this.sourceRoot = sourceRoot;
- this.sourcesContent = sourcesContent;
- this._mappings = mappings;
- this.file = file;
- }
-
- BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
- BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;
-
- /**
- * Create a BasicSourceMapConsumer from a SourceMapGenerator.
- *
- * @param SourceMapGenerator aSourceMap
- * The source map that will be consumed.
- * @returns BasicSourceMapConsumer
- */
- BasicSourceMapConsumer.fromSourceMap =
- function SourceMapConsumer_fromSourceMap(aSourceMap) {
- var smc = Object.create(BasicSourceMapConsumer.prototype);
-
- var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
- var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
- smc.sourceRoot = aSourceMap._sourceRoot;
- smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(),
- smc.sourceRoot);
- smc.file = aSourceMap._file;
-
- // Because we are modifying the entries (by converting string sources and
- // names to indices into the sources and names ArraySets), we have to make
- // a copy of the entry or else bad things happen. Shared mutable state
- // strikes again! See github issue #191.
-
- var generatedMappings = aSourceMap._mappings.toArray().slice();
- var destGeneratedMappings = smc.__generatedMappings = [];
- var destOriginalMappings = smc.__originalMappings = [];
-
- for (var i = 0, length = generatedMappings.length; i < length; i++) {
- var srcMapping = generatedMappings[i];
- var destMapping = new Mapping;
- destMapping.generatedLine = srcMapping.generatedLine;
- destMapping.generatedColumn = srcMapping.generatedColumn;
-
- if (srcMapping.source) {
- destMapping.source = sources.indexOf(srcMapping.source);
- destMapping.originalLine = srcMapping.originalLine;
- destMapping.originalColumn = srcMapping.originalColumn;
-
- if (srcMapping.name) {
- destMapping.name = names.indexOf(srcMapping.name);
- }
-
- destOriginalMappings.push(destMapping);
- }
-
- destGeneratedMappings.push(destMapping);
- }
-
- quickSort(smc.__originalMappings, util.compareByOriginalPositions);
-
- return smc;
- };
-
- /**
- * The version of the source mapping spec that we are consuming.
- */
- BasicSourceMapConsumer.prototype._version = 3;
-
- /**
- * The list of original sources.
- */
- Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', {
- get: function () {
- return this._sources.toArray().map(function (s) {
- return this.sourceRoot != null ? util.join(this.sourceRoot, s) : s;
- }, this);
- }
- });
-
- /**
- * Provide the JIT with a nice shape / hidden class.
- */
- function Mapping() {
- this.generatedLine = 0;
- this.generatedColumn = 0;
- this.source = null;
- this.originalLine = null;
- this.originalColumn = null;
- this.name = null;
- }
-
- /**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
- BasicSourceMapConsumer.prototype._parseMappings =
- function SourceMapConsumer_parseMappings(aStr, aSourceRoot) {
- var generatedLine = 1;
- var previousGeneratedColumn = 0;
- var previousOriginalLine = 0;
- var previousOriginalColumn = 0;
- var previousSource = 0;
- var previousName = 0;
- var length = aStr.length;
- var index = 0;
- var cachedSegments = {};
- var temp = {};
- var originalMappings = [];
- var generatedMappings = [];
- var mapping, str, segment, end, value;
-
- while (index < length) {
- if (aStr.charAt(index) === ';') {
- generatedLine++;
- index++;
- previousGeneratedColumn = 0;
- }
- else if (aStr.charAt(index) === ',') {
- index++;
- }
- else {
- mapping = new Mapping();
- mapping.generatedLine = generatedLine;
-
- // Because each offset is encoded relative to the previous one,
- // many segments often have the same encoding. We can exploit this
- // fact by caching the parsed variable length fields of each segment,
- // allowing us to avoid a second parse if we encounter the same
- // segment again.
- for (end = index; end < length; end++) {
- if (this._charIsMappingSeparator(aStr, end)) {
- break;
- }
- }
- str = aStr.slice(index, end);
-
- segment = cachedSegments[str];
- if (segment) {
- index += str.length;
- } else {
- segment = [];
- while (index < end) {
- base64VLQ.decode(aStr, index, temp);
- value = temp.value;
- index = temp.rest;
- segment.push(value);
- }
-
- if (segment.length === 2) {
- throw new Error('Found a source, but no line and column');
- }
-
- if (segment.length === 3) {
- throw new Error('Found a source and line, but no column');
- }
-
- cachedSegments[str] = segment;
- }
-
- // Generated column.
- mapping.generatedColumn = previousGeneratedColumn + segment[0];
- previousGeneratedColumn = mapping.generatedColumn;
-
- if (segment.length > 1) {
- // Original source.
- mapping.source = previousSource + segment[1];
- previousSource += segment[1];
-
- // Original line.
- mapping.originalLine = previousOriginalLine + segment[2];
- previousOriginalLine = mapping.originalLine;
- // Lines are stored 0-based
- mapping.originalLine += 1;
-
- // Original column.
- mapping.originalColumn = previousOriginalColumn + segment[3];
- previousOriginalColumn = mapping.originalColumn;
-
- if (segment.length > 4) {
- // Original name.
- mapping.name = previousName + segment[4];
- previousName += segment[4];
- }
- }
-
- generatedMappings.push(mapping);
- if (typeof mapping.originalLine === 'number') {
- originalMappings.push(mapping);
- }
- }
- }
-
- quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated);
- this.__generatedMappings = generatedMappings;
-
- quickSort(originalMappings, util.compareByOriginalPositions);
- this.__originalMappings = originalMappings;
- };
-
- /**
- * Find the mapping that best matches the hypothetical "needle" mapping that
- * we are searching for in the given "haystack" of mappings.
- */
- BasicSourceMapConsumer.prototype._findMapping =
- function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName,
- aColumnName, aComparator, aBias) {
- // To return the position we are searching for, we must first find the
- // mapping for the given position and then return the opposite position it
- // points to. Because the mappings are sorted, we can use binary search to
- // find the best mapping.
-
- if (aNeedle[aLineName] <= 0) {
- throw new TypeError('Line must be greater than or equal to 1, got '
- + aNeedle[aLineName]);
- }
- if (aNeedle[aColumnName] < 0) {
- throw new TypeError('Column must be greater than or equal to 0, got '
- + aNeedle[aColumnName]);
- }
-
- return binarySearch.search(aNeedle, aMappings, aComparator, aBias);
- };
-
- /**
- * Compute the last column for each generated mapping. The last column is
- * inclusive.
- */
- BasicSourceMapConsumer.prototype.computeColumnSpans =
- function SourceMapConsumer_computeColumnSpans() {
- for (var index = 0; index < this._generatedMappings.length; ++index) {
- var mapping = this._generatedMappings[index];
-
- // Mappings do not contain a field for the last generated columnt. We
- // can come up with an optimistic estimate, however, by assuming that
- // mappings are contiguous (i.e. given two consecutive mappings, the
- // first mapping ends where the second one starts).
- if (index + 1 < this._generatedMappings.length) {
- var nextMapping = this._generatedMappings[index + 1];
-
- if (mapping.generatedLine === nextMapping.generatedLine) {
- mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1;
- continue;
- }
- }
-
- // The last mapping for each line spans the entire line.
- mapping.lastGeneratedColumn = Infinity;
- }
- };
-
- /**
- * Returns the original source, line, and column information for the generated
- * source's line and column positions provided. The only argument is an object
- * with the following properties:
- *
- * - line: The line number in the generated source.
- * - column: The column number in the generated source.
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
- *
- * and an object is returned with the following properties:
- *
- * - source: The original source file, or null.
- * - line: The line number in the original source, or null.
- * - column: The column number in the original source, or null.
- * - name: The original identifier, or null.
- */
- BasicSourceMapConsumer.prototype.originalPositionFor =
- function SourceMapConsumer_originalPositionFor(aArgs) {
- var needle = {
- generatedLine: util.getArg(aArgs, 'line'),
- generatedColumn: util.getArg(aArgs, 'column')
- };
-
- var index = this._findMapping(
- needle,
- this._generatedMappings,
- "generatedLine",
- "generatedColumn",
- util.compareByGeneratedPositionsDeflated,
- util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
- );
-
- if (index >= 0) {
- var mapping = this._generatedMappings[index];
-
- if (mapping.generatedLine === needle.generatedLine) {
- var source = util.getArg(mapping, 'source', null);
- if (source !== null) {
- source = this._sources.at(source);
- if (this.sourceRoot != null) {
- source = util.join(this.sourceRoot, source);
- }
- }
- var name = util.getArg(mapping, 'name', null);
- if (name !== null) {
- name = this._names.at(name);
- }
- return {
- source: source,
- line: util.getArg(mapping, 'originalLine', null),
- column: util.getArg(mapping, 'originalColumn', null),
- name: name
- };
- }
- }
-
- return {
- source: null,
- line: null,
- column: null,
- name: null
- };
- };
-
- /**
- * Return true if we have the source content for every source in the source
- * map, false otherwise.
- */
- BasicSourceMapConsumer.prototype.hasContentsOfAllSources =
- function BasicSourceMapConsumer_hasContentsOfAllSources() {
- if (!this.sourcesContent) {
- return false;
- }
- return this.sourcesContent.length >= this._sources.size() &&
- !this.sourcesContent.some(function (sc) { return sc == null; });
- };
-
- /**
- * Returns the original source content. The only argument is the url of the
- * original source file. Returns null if no original source content is
- * availible.
- */
- BasicSourceMapConsumer.prototype.sourceContentFor =
- function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
- if (!this.sourcesContent) {
- return null;
- }
-
- if (this.sourceRoot != null) {
- aSource = util.relative(this.sourceRoot, aSource);
- }
-
- if (this._sources.has(aSource)) {
- return this.sourcesContent[this._sources.indexOf(aSource)];
- }
-
- var url;
- if (this.sourceRoot != null
- && (url = util.urlParse(this.sourceRoot))) {
- // XXX: file:// URIs and absolute paths lead to unexpected behavior for
- // many users. We can help them out when they expect file:// URIs to
- // behave like it would if they were running a local HTTP server. See
- // https://bugzilla.mozilla.org/show_bug.cgi?id=885597.
- var fileUriAbsPath = aSource.replace(/^file:\/\//, "");
- if (url.scheme == "file"
- && this._sources.has(fileUriAbsPath)) {
- return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]
- }
-
- if ((!url.path || url.path == "/")
- && this._sources.has("/" + aSource)) {
- return this.sourcesContent[this._sources.indexOf("/" + aSource)];
- }
- }
-
- // This function is used recursively from
- // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we
- // don't want to throw if we can't find the source - we just want to
- // return null, so we provide a flag to exit gracefully.
- if (nullOnMissing) {
- return null;
- }
- else {
- throw new Error('"' + aSource + '" is not in the SourceMap.');
- }
- };
-
- /**
- * Returns the generated line and column information for the original source,
- * line, and column positions provided. The only argument is an object with
- * the following properties:
- *
- * - source: The filename of the original source.
- * - line: The line number in the original source.
- * - column: The column number in the original source.
- * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or
- * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the
- * closest element that is smaller than or greater than the one we are
- * searching for, respectively, if the exact element cannot be found.
- * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.
- *
- * and an object is returned with the following properties:
- *
- * - line: The line number in the generated source, or null.
- * - column: The column number in the generated source, or null.
- */
- BasicSourceMapConsumer.prototype.generatedPositionFor =
- function SourceMapConsumer_generatedPositionFor(aArgs) {
- var source = util.getArg(aArgs, 'source');
- if (this.sourceRoot != null) {
- source = util.relative(this.sourceRoot, source);
- }
- if (!this._sources.has(source)) {
- return {
- line: null,
- column: null,
- lastColumn: null
- };
- }
- source = this._sources.indexOf(source);
-
- var needle = {
- source: source,
- originalLine: util.getArg(aArgs, 'line'),
- originalColumn: util.getArg(aArgs, 'column')
- };
-
- var index = this._findMapping(
- needle,
- this._originalMappings,
- "originalLine",
- "originalColumn",
- util.compareByOriginalPositions,
- util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND)
- );
-
- if (index >= 0) {
- var mapping = this._originalMappings[index];
-
- if (mapping.source === needle.source) {
- return {
- line: util.getArg(mapping, 'generatedLine', null),
- column: util.getArg(mapping, 'generatedColumn', null),
- lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null)
- };
- }
- }
-
- return {
- line: null,
- column: null,
- lastColumn: null
- };
- };
-
- exports.BasicSourceMapConsumer = BasicSourceMapConsumer;
-
- /**
- * An IndexedSourceMapConsumer instance represents a parsed source map which
- * we can query for information. It differs from BasicSourceMapConsumer in
- * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
- * input.
- *
- * The only parameter is a raw source map (either as a JSON string, or already
- * parsed to an object). According to the spec for indexed source maps, they
- * have the following attributes:
- *
- * - version: Which version of the source map spec this map is following.
- * - file: Optional. The generated file this source map is associated with.
- * - sections: A list of section definitions.
- *
- * Each value under the "sections" field has two fields:
- * - offset: The offset into the original specified at which this section
- * begins to apply, defined as an object with a "line" and "column"
- * field.
- * - map: A source map definition. This source map could also be indexed,
- * but doesn't have to be.
- *
- * Instead of the "map" field, it's also possible to have a "url" field
- * specifying a URL to retrieve a source map from, but that's currently
- * unsupported.
- *
- * Here's an example source map, taken from the source map spec[0], but
- * modified to omit a section which uses the "url" field.
- *
- * {
- * version : 3,
- * file: "app.js",
- * sections: [{
- * offset: {line:100, column:10},
- * map: {
- * version : 3,
- * file: "section.js",
- * sources: ["foo.js", "bar.js"],
- * names: ["src", "maps", "are", "fun"],
- * mappings: "AAAA,E;;ABCDE;"
- * }
- * }],
- * }
- *
- * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt
- */
- function IndexedSourceMapConsumer(aSourceMap) {
- var sourceMap = aSourceMap;
- if (typeof aSourceMap === 'string') {
- sourceMap = JSON.parse(aSourceMap.replace(/^\)\]\}'/, ''));
- }
-
- var version = util.getArg(sourceMap, 'version');
- var sections = util.getArg(sourceMap, 'sections');
-
- if (version != this._version) {
- throw new Error('Unsupported version: ' + version);
- }
-
- this._sources = new ArraySet();
- this._names = new ArraySet();
-
- var lastOffset = {
- line: -1,
- column: 0
- };
- this._sections = sections.map(function (s) {
- if (s.url) {
- // The url field will require support for asynchronicity.
- // See https://github.com/mozilla/source-map/issues/16
- throw new Error('Support for url field in sections not implemented.');
- }
- var offset = util.getArg(s, 'offset');
- var offsetLine = util.getArg(offset, 'line');
- var offsetColumn = util.getArg(offset, 'column');
-
- if (offsetLine < lastOffset.line ||
- (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)) {
- throw new Error('Section offsets must be ordered and non-overlapping.');
- }
- lastOffset = offset;
-
- return {
- generatedOffset: {
- // The offset fields are 0-based, but we use 1-based indices when
- // encoding/decoding from VLQ.
- generatedLine: offsetLine + 1,
- generatedColumn: offsetColumn + 1
- },
- consumer: new SourceMapConsumer(util.getArg(s, 'map'))
- }
- });
- }
-
- IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype);
- IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer;
-
- /**
- * The version of the source mapping spec that we are consuming.
- */
- IndexedSourceMapConsumer.prototype._version = 3;
-
- /**
- * The list of original sources.
- */
- Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', {
- get: function () {
- var sources = [];
- for (var i = 0; i < this._sections.length; i++) {
- for (var j = 0; j < this._sections[i].consumer.sources.length; j++) {
- sources.push(this._sections[i].consumer.sources[j]);
- }
- };
- return sources;
- }
- });
-
- /**
- * Returns the original source, line, and column information for the generated
- * source's line and column positions provided. The only argument is an object
- * with the following properties:
- *
- * - line: The line number in the generated source.
- * - column: The column number in the generated source.
- *
- * and an object is returned with the following properties:
- *
- * - source: The original source file, or null.
- * - line: The line number in the original source, or null.
- * - column: The column number in the original source, or null.
- * - name: The original identifier, or null.
- */
- IndexedSourceMapConsumer.prototype.originalPositionFor =
- function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
- var needle = {
- generatedLine: util.getArg(aArgs, 'line'),
- generatedColumn: util.getArg(aArgs, 'column')
- };
-
- // Find the section containing the generated position we're trying to map
- // to an original position.
- var sectionIndex = binarySearch.search(needle, this._sections,
- function(needle, section) {
- var cmp = needle.generatedLine - section.generatedOffset.generatedLine;
- if (cmp) {
- return cmp;
- }
-
- return (needle.generatedColumn -
- section.generatedOffset.generatedColumn);
- });
- var section = this._sections[sectionIndex];
-
- if (!section) {
- return {
- source: null,
- line: null,
- column: null,
- name: null
- };
- }
-
- return section.consumer.originalPositionFor({
- line: needle.generatedLine -
- (section.generatedOffset.generatedLine - 1),
- column: needle.generatedColumn -
- (section.generatedOffset.generatedLine === needle.generatedLine
- ? section.generatedOffset.generatedColumn - 1
- : 0),
- bias: aArgs.bias
- });
- };
-
- /**
- * Return true if we have the source content for every source in the source
- * map, false otherwise.
- */
- IndexedSourceMapConsumer.prototype.hasContentsOfAllSources =
- function IndexedSourceMapConsumer_hasContentsOfAllSources() {
- return this._sections.every(function (s) {
- return s.consumer.hasContentsOfAllSources();
- });
- };
-
- /**
- * Returns the original source content. The only argument is the url of the
- * original source file. Returns null if no original source content is
- * available.
- */
- IndexedSourceMapConsumer.prototype.sourceContentFor =
- function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) {
- for (var i = 0; i < this._sections.length; i++) {
- var section = this._sections[i];
-
- var content = section.consumer.sourceContentFor(aSource, true);
- if (content) {
- return content;
- }
- }
- if (nullOnMissing) {
- return null;
- }
- else {
- throw new Error('"' + aSource + '" is not in the SourceMap.');
- }
- };
-
- /**
- * Returns the generated line and column information for the original source,
- * line, and column positions provided. The only argument is an object with
- * the following properties:
- *
- * - source: The filename of the original source.
- * - line: The line number in the original source.
- * - column: The column number in the original source.
- *
- * and an object is returned with the following properties:
- *
- * - line: The line number in the generated source, or null.
- * - column: The column number in the generated source, or null.
- */
- IndexedSourceMapConsumer.prototype.generatedPositionFor =
- function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
- for (var i = 0; i < this._sections.length; i++) {
- var section = this._sections[i];
-
- // Only consider this section if the requested source is in the list of
- // sources of the consumer.
- if (section.consumer.sources.indexOf(util.getArg(aArgs, 'source')) === -1) {
- continue;
- }
- var generatedPosition = section.consumer.generatedPositionFor(aArgs);
- if (generatedPosition) {
- var ret = {
- line: generatedPosition.line +
- (section.generatedOffset.generatedLine - 1),
- column: generatedPosition.column +
- (section.generatedOffset.generatedLine === generatedPosition.line
- ? section.generatedOffset.generatedColumn - 1
- : 0)
- };
- return ret;
- }
- }
-
- return {
- line: null,
- column: null
- };
- };
-
- /**
- * Parse the mappings in a string in to a data structure which we can easily
- * query (the ordered arrays in the `this.__generatedMappings` and
- * `this.__originalMappings` properties).
- */
- IndexedSourceMapConsumer.prototype._parseMappings =
- function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) {
- this.__generatedMappings = [];
- this.__originalMappings = [];
- for (var i = 0; i < this._sections.length; i++) {
- var section = this._sections[i];
- var sectionMappings = section.consumer._generatedMappings;
- for (var j = 0; j < sectionMappings.length; j++) {
- var mapping = sectionMappings[i];
-
- var source = section.consumer._sources.at(mapping.source);
- if (section.consumer.sourceRoot !== null) {
- source = util.join(section.consumer.sourceRoot, source);
- }
- this._sources.add(source);
- source = this._sources.indexOf(source);
-
- var name = section.consumer._names.at(mapping.name);
- this._names.add(name);
- name = this._names.indexOf(name);
-
- // The mappings coming from the consumer for the section have
- // generated positions relative to the start of the section, so we
- // need to offset them to be relative to the start of the concatenated
- // generated file.
- var adjustedMapping = {
- source: source,
- generatedLine: mapping.generatedLine +
- (section.generatedOffset.generatedLine - 1),
- generatedColumn: mapping.column +
- (section.generatedOffset.generatedLine === mapping.generatedLine)
- ? section.generatedOffset.generatedColumn - 1
- : 0,
- originalLine: mapping.originalLine,
- originalColumn: mapping.originalColumn,
- name: name
- };
-
- this.__generatedMappings.push(adjustedMapping);
- if (typeof adjustedMapping.originalLine === 'number') {
- this.__originalMappings.push(adjustedMapping);
- }
- };
- };
-
- quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated);
- quickSort(this.__originalMappings, util.compareByOriginalPositions);
- };
-
- exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
-
-});
diff --git a/node_modules/source-map/lib/source-map/source-map-generator.js b/node_modules/source-map/lib/source-map/source-map-generator.js
deleted file mode 100644
index d8a9025..0000000
--- a/node_modules/source-map/lib/source-map/source-map-generator.js
+++ /dev/null
@@ -1,399 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- var base64VLQ = require('./base64-vlq');
- var util = require('./util');
- var ArraySet = require('./array-set').ArraySet;
- var MappingList = require('./mapping-list').MappingList;
-
- /**
- * An instance of the SourceMapGenerator represents a source map which is
- * being built incrementally. You may pass an object with the following
- * properties:
- *
- * - file: The filename of the generated source.
- * - sourceRoot: A root for all relative URLs in this source map.
- */
- function SourceMapGenerator(aArgs) {
- if (!aArgs) {
- aArgs = {};
- }
- this._file = util.getArg(aArgs, 'file', null);
- this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null);
- this._skipValidation = util.getArg(aArgs, 'skipValidation', false);
- this._sources = new ArraySet();
- this._names = new ArraySet();
- this._mappings = new MappingList();
- this._sourcesContents = null;
- }
-
- SourceMapGenerator.prototype._version = 3;
-
- /**
- * Creates a new SourceMapGenerator based on a SourceMapConsumer
- *
- * @param aSourceMapConsumer The SourceMap.
- */
- SourceMapGenerator.fromSourceMap =
- function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
- var sourceRoot = aSourceMapConsumer.sourceRoot;
- var generator = new SourceMapGenerator({
- file: aSourceMapConsumer.file,
- sourceRoot: sourceRoot
- });
- aSourceMapConsumer.eachMapping(function (mapping) {
- var newMapping = {
- generated: {
- line: mapping.generatedLine,
- column: mapping.generatedColumn
- }
- };
-
- if (mapping.source != null) {
- newMapping.source = mapping.source;
- if (sourceRoot != null) {
- newMapping.source = util.relative(sourceRoot, newMapping.source);
- }
-
- newMapping.original = {
- line: mapping.originalLine,
- column: mapping.originalColumn
- };
-
- if (mapping.name != null) {
- newMapping.name = mapping.name;
- }
- }
-
- generator.addMapping(newMapping);
- });
- aSourceMapConsumer.sources.forEach(function (sourceFile) {
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
- if (content != null) {
- generator.setSourceContent(sourceFile, content);
- }
- });
- return generator;
- };
-
- /**
- * Add a single mapping from original source line and column to the generated
- * source's line and column for this source map being created. The mapping
- * object should have the following properties:
- *
- * - generated: An object with the generated line and column positions.
- * - original: An object with the original line and column positions.
- * - source: The original source file (relative to the sourceRoot).
- * - name: An optional original token name for this mapping.
- */
- SourceMapGenerator.prototype.addMapping =
- function SourceMapGenerator_addMapping(aArgs) {
- var generated = util.getArg(aArgs, 'generated');
- var original = util.getArg(aArgs, 'original', null);
- var source = util.getArg(aArgs, 'source', null);
- var name = util.getArg(aArgs, 'name', null);
-
- if (!this._skipValidation) {
- this._validateMapping(generated, original, source, name);
- }
-
- if (source != null && !this._sources.has(source)) {
- this._sources.add(source);
- }
-
- if (name != null && !this._names.has(name)) {
- this._names.add(name);
- }
-
- this._mappings.add({
- generatedLine: generated.line,
- generatedColumn: generated.column,
- originalLine: original != null && original.line,
- originalColumn: original != null && original.column,
- source: source,
- name: name
- });
- };
-
- /**
- * Set the source content for a source file.
- */
- SourceMapGenerator.prototype.setSourceContent =
- function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
- var source = aSourceFile;
- if (this._sourceRoot != null) {
- source = util.relative(this._sourceRoot, source);
- }
-
- if (aSourceContent != null) {
- // Add the source content to the _sourcesContents map.
- // Create a new _sourcesContents map if the property is null.
- if (!this._sourcesContents) {
- this._sourcesContents = {};
- }
- this._sourcesContents[util.toSetString(source)] = aSourceContent;
- } else if (this._sourcesContents) {
- // Remove the source file from the _sourcesContents map.
- // If the _sourcesContents map is empty, set the property to null.
- delete this._sourcesContents[util.toSetString(source)];
- if (Object.keys(this._sourcesContents).length === 0) {
- this._sourcesContents = null;
- }
- }
- };
-
- /**
- * Applies the mappings of a sub-source-map for a specific source file to the
- * source map being generated. Each mapping to the supplied source file is
- * rewritten using the supplied source map. Note: The resolution for the
- * resulting mappings is the minimium of this map and the supplied map.
- *
- * @param aSourceMapConsumer The source map to be applied.
- * @param aSourceFile Optional. The filename of the source file.
- * If omitted, SourceMapConsumer's file property will be used.
- * @param aSourceMapPath Optional. The dirname of the path to the source map
- * to be applied. If relative, it is relative to the SourceMapConsumer.
- * This parameter is needed when the two source maps aren't in the same
- * directory, and the source map to be applied contains relative source
- * paths. If so, those relative source paths need to be rewritten
- * relative to the SourceMapGenerator.
- */
- SourceMapGenerator.prototype.applySourceMap =
- function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {
- var sourceFile = aSourceFile;
- // If aSourceFile is omitted, we will use the file property of the SourceMap
- if (aSourceFile == null) {
- if (aSourceMapConsumer.file == null) {
- throw new Error(
- 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' +
- 'or the source map\'s "file" property. Both were omitted.'
- );
- }
- sourceFile = aSourceMapConsumer.file;
- }
- var sourceRoot = this._sourceRoot;
- // Make "sourceFile" relative if an absolute Url is passed.
- if (sourceRoot != null) {
- sourceFile = util.relative(sourceRoot, sourceFile);
- }
- // Applying the SourceMap can add and remove items from the sources and
- // the names array.
- var newSources = new ArraySet();
- var newNames = new ArraySet();
-
- // Find mappings for the "sourceFile"
- this._mappings.unsortedForEach(function (mapping) {
- if (mapping.source === sourceFile && mapping.originalLine != null) {
- // Check if it can be mapped by the source map, then update the mapping.
- var original = aSourceMapConsumer.originalPositionFor({
- line: mapping.originalLine,
- column: mapping.originalColumn
- });
- if (original.source != null) {
- // Copy mapping
- mapping.source = original.source;
- if (aSourceMapPath != null) {
- mapping.source = util.join(aSourceMapPath, mapping.source)
- }
- if (sourceRoot != null) {
- mapping.source = util.relative(sourceRoot, mapping.source);
- }
- mapping.originalLine = original.line;
- mapping.originalColumn = original.column;
- if (original.name != null) {
- mapping.name = original.name;
- }
- }
- }
-
- var source = mapping.source;
- if (source != null && !newSources.has(source)) {
- newSources.add(source);
- }
-
- var name = mapping.name;
- if (name != null && !newNames.has(name)) {
- newNames.add(name);
- }
-
- }, this);
- this._sources = newSources;
- this._names = newNames;
-
- // Copy sourcesContents of applied map.
- aSourceMapConsumer.sources.forEach(function (sourceFile) {
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
- if (content != null) {
- if (aSourceMapPath != null) {
- sourceFile = util.join(aSourceMapPath, sourceFile);
- }
- if (sourceRoot != null) {
- sourceFile = util.relative(sourceRoot, sourceFile);
- }
- this.setSourceContent(sourceFile, content);
- }
- }, this);
- };
-
- /**
- * A mapping can have one of the three levels of data:
- *
- * 1. Just the generated position.
- * 2. The Generated position, original position, and original source.
- * 3. Generated and original position, original source, as well as a name
- * token.
- *
- * To maintain consistency, we validate that any new mapping being added falls
- * in to one of these categories.
- */
- SourceMapGenerator.prototype._validateMapping =
- function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource,
- aName) {
- if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
- && aGenerated.line > 0 && aGenerated.column >= 0
- && !aOriginal && !aSource && !aName) {
- // Case 1.
- return;
- }
- else if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
- && aOriginal && 'line' in aOriginal && 'column' in aOriginal
- && aGenerated.line > 0 && aGenerated.column >= 0
- && aOriginal.line > 0 && aOriginal.column >= 0
- && aSource) {
- // Cases 2 and 3.
- return;
- }
- else {
- throw new Error('Invalid mapping: ' + JSON.stringify({
- generated: aGenerated,
- source: aSource,
- original: aOriginal,
- name: aName
- }));
- }
- };
-
- /**
- * Serialize the accumulated mappings in to the stream of base 64 VLQs
- * specified by the source map format.
- */
- SourceMapGenerator.prototype._serializeMappings =
- function SourceMapGenerator_serializeMappings() {
- var previousGeneratedColumn = 0;
- var previousGeneratedLine = 1;
- var previousOriginalColumn = 0;
- var previousOriginalLine = 0;
- var previousName = 0;
- var previousSource = 0;
- var result = '';
- var mapping;
-
- var mappings = this._mappings.toArray();
- for (var i = 0, len = mappings.length; i < len; i++) {
- mapping = mappings[i];
-
- if (mapping.generatedLine !== previousGeneratedLine) {
- previousGeneratedColumn = 0;
- while (mapping.generatedLine !== previousGeneratedLine) {
- result += ';';
- previousGeneratedLine++;
- }
- }
- else {
- if (i > 0) {
- if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) {
- continue;
- }
- result += ',';
- }
- }
-
- result += base64VLQ.encode(mapping.generatedColumn
- - previousGeneratedColumn);
- previousGeneratedColumn = mapping.generatedColumn;
-
- if (mapping.source != null) {
- result += base64VLQ.encode(this._sources.indexOf(mapping.source)
- - previousSource);
- previousSource = this._sources.indexOf(mapping.source);
-
- // lines are stored 0-based in SourceMap spec version 3
- result += base64VLQ.encode(mapping.originalLine - 1
- - previousOriginalLine);
- previousOriginalLine = mapping.originalLine - 1;
-
- result += base64VLQ.encode(mapping.originalColumn
- - previousOriginalColumn);
- previousOriginalColumn = mapping.originalColumn;
-
- if (mapping.name != null) {
- result += base64VLQ.encode(this._names.indexOf(mapping.name)
- - previousName);
- previousName = this._names.indexOf(mapping.name);
- }
- }
- }
-
- return result;
- };
-
- SourceMapGenerator.prototype._generateSourcesContent =
- function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) {
- return aSources.map(function (source) {
- if (!this._sourcesContents) {
- return null;
- }
- if (aSourceRoot != null) {
- source = util.relative(aSourceRoot, source);
- }
- var key = util.toSetString(source);
- return Object.prototype.hasOwnProperty.call(this._sourcesContents,
- key)
- ? this._sourcesContents[key]
- : null;
- }, this);
- };
-
- /**
- * Externalize the source map.
- */
- SourceMapGenerator.prototype.toJSON =
- function SourceMapGenerator_toJSON() {
- var map = {
- version: this._version,
- sources: this._sources.toArray(),
- names: this._names.toArray(),
- mappings: this._serializeMappings()
- };
- if (this._file != null) {
- map.file = this._file;
- }
- if (this._sourceRoot != null) {
- map.sourceRoot = this._sourceRoot;
- }
- if (this._sourcesContents) {
- map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot);
- }
-
- return map;
- };
-
- /**
- * Render the source map being generated to a string.
- */
- SourceMapGenerator.prototype.toString =
- function SourceMapGenerator_toString() {
- return JSON.stringify(this.toJSON());
- };
-
- exports.SourceMapGenerator = SourceMapGenerator;
-
-});
diff --git a/node_modules/source-map/lib/source-map/source-node.js b/node_modules/source-map/lib/source-map/source-node.js
deleted file mode 100644
index 9ee90bd..0000000
--- a/node_modules/source-map/lib/source-map/source-node.js
+++ /dev/null
@@ -1,414 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- var SourceMapGenerator = require('./source-map-generator').SourceMapGenerator;
- var util = require('./util');
-
- // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other
- // operating systems these days (capturing the result).
- var REGEX_NEWLINE = /(\r?\n)/;
-
- // Newline character code for charCodeAt() comparisons
- var NEWLINE_CODE = 10;
-
- // Private symbol for identifying `SourceNode`s when multiple versions of
- // the source-map library are loaded. This MUST NOT CHANGE across
- // versions!
- var isSourceNode = "$$$isSourceNode$$$";
-
- /**
- * SourceNodes provide a way to abstract over interpolating/concatenating
- * snippets of generated JavaScript source code while maintaining the line and
- * column information associated with the original source code.
- *
- * @param aLine The original line number.
- * @param aColumn The original column number.
- * @param aSource The original source's filename.
- * @param aChunks Optional. An array of strings which are snippets of
- * generated JS, or other SourceNodes.
- * @param aName The original identifier.
- */
- function SourceNode(aLine, aColumn, aSource, aChunks, aName) {
- this.children = [];
- this.sourceContents = {};
- this.line = aLine == null ? null : aLine;
- this.column = aColumn == null ? null : aColumn;
- this.source = aSource == null ? null : aSource;
- this.name = aName == null ? null : aName;
- this[isSourceNode] = true;
- if (aChunks != null) this.add(aChunks);
- }
-
- /**
- * Creates a SourceNode from generated code and a SourceMapConsumer.
- *
- * @param aGeneratedCode The generated code
- * @param aSourceMapConsumer The SourceMap for the generated code
- * @param aRelativePath Optional. The path that relative sources in the
- * SourceMapConsumer should be relative to.
- */
- SourceNode.fromStringWithSourceMap =
- function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) {
- // The SourceNode we want to fill with the generated code
- // and the SourceMap
- var node = new SourceNode();
-
- // All even indices of this array are one line of the generated code,
- // while all odd indices are the newlines between two adjacent lines
- // (since `REGEX_NEWLINE` captures its match).
- // Processed fragments are removed from this array, by calling `shiftNextLine`.
- var remainingLines = aGeneratedCode.split(REGEX_NEWLINE);
- var shiftNextLine = function() {
- var lineContents = remainingLines.shift();
- // The last line of a file might not have a newline.
- var newLine = remainingLines.shift() || "";
- return lineContents + newLine;
- };
-
- // We need to remember the position of "remainingLines"
- var lastGeneratedLine = 1, lastGeneratedColumn = 0;
-
- // The generate SourceNodes we need a code range.
- // To extract it current and last mapping is used.
- // Here we store the last mapping.
- var lastMapping = null;
-
- aSourceMapConsumer.eachMapping(function (mapping) {
- if (lastMapping !== null) {
- // We add the code from "lastMapping" to "mapping":
- // First check if there is a new line in between.
- if (lastGeneratedLine < mapping.generatedLine) {
- var code = "";
- // Associate first line with "lastMapping"
- addMappingWithCode(lastMapping, shiftNextLine());
- lastGeneratedLine++;
- lastGeneratedColumn = 0;
- // The remaining code is added without mapping
- } else {
- // There is no new line in between.
- // Associate the code between "lastGeneratedColumn" and
- // "mapping.generatedColumn" with "lastMapping"
- var nextLine = remainingLines[0];
- var code = nextLine.substr(0, mapping.generatedColumn -
- lastGeneratedColumn);
- remainingLines[0] = nextLine.substr(mapping.generatedColumn -
- lastGeneratedColumn);
- lastGeneratedColumn = mapping.generatedColumn;
- addMappingWithCode(lastMapping, code);
- // No more remaining code, continue
- lastMapping = mapping;
- return;
- }
- }
- // We add the generated code until the first mapping
- // to the SourceNode without any mapping.
- // Each line is added as separate string.
- while (lastGeneratedLine < mapping.generatedLine) {
- node.add(shiftNextLine());
- lastGeneratedLine++;
- }
- if (lastGeneratedColumn < mapping.generatedColumn) {
- var nextLine = remainingLines[0];
- node.add(nextLine.substr(0, mapping.generatedColumn));
- remainingLines[0] = nextLine.substr(mapping.generatedColumn);
- lastGeneratedColumn = mapping.generatedColumn;
- }
- lastMapping = mapping;
- }, this);
- // We have processed all mappings.
- if (remainingLines.length > 0) {
- if (lastMapping) {
- // Associate the remaining code in the current line with "lastMapping"
- addMappingWithCode(lastMapping, shiftNextLine());
- }
- // and add the remaining lines without any mapping
- node.add(remainingLines.join(""));
- }
-
- // Copy sourcesContent into SourceNode
- aSourceMapConsumer.sources.forEach(function (sourceFile) {
- var content = aSourceMapConsumer.sourceContentFor(sourceFile);
- if (content != null) {
- if (aRelativePath != null) {
- sourceFile = util.join(aRelativePath, sourceFile);
- }
- node.setSourceContent(sourceFile, content);
- }
- });
-
- return node;
-
- function addMappingWithCode(mapping, code) {
- if (mapping === null || mapping.source === undefined) {
- node.add(code);
- } else {
- var source = aRelativePath
- ? util.join(aRelativePath, mapping.source)
- : mapping.source;
- node.add(new SourceNode(mapping.originalLine,
- mapping.originalColumn,
- source,
- code,
- mapping.name));
- }
- }
- };
-
- /**
- * Add a chunk of generated JS to this source node.
- *
- * @param aChunk A string snippet of generated JS code, another instance of
- * SourceNode, or an array where each member is one of those things.
- */
- SourceNode.prototype.add = function SourceNode_add(aChunk) {
- if (Array.isArray(aChunk)) {
- aChunk.forEach(function (chunk) {
- this.add(chunk);
- }, this);
- }
- else if (aChunk[isSourceNode] || typeof aChunk === "string") {
- if (aChunk) {
- this.children.push(aChunk);
- }
- }
- else {
- throw new TypeError(
- "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
- );
- }
- return this;
- };
-
- /**
- * Add a chunk of generated JS to the beginning of this source node.
- *
- * @param aChunk A string snippet of generated JS code, another instance of
- * SourceNode, or an array where each member is one of those things.
- */
- SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) {
- if (Array.isArray(aChunk)) {
- for (var i = aChunk.length-1; i >= 0; i--) {
- this.prepend(aChunk[i]);
- }
- }
- else if (aChunk[isSourceNode] || typeof aChunk === "string") {
- this.children.unshift(aChunk);
- }
- else {
- throw new TypeError(
- "Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
- );
- }
- return this;
- };
-
- /**
- * Walk over the tree of JS snippets in this node and its children. The
- * walking function is called once for each snippet of JS and is passed that
- * snippet and the its original associated source's line/column location.
- *
- * @param aFn The traversal function.
- */
- SourceNode.prototype.walk = function SourceNode_walk(aFn) {
- var chunk;
- for (var i = 0, len = this.children.length; i < len; i++) {
- chunk = this.children[i];
- if (chunk[isSourceNode]) {
- chunk.walk(aFn);
- }
- else {
- if (chunk !== '') {
- aFn(chunk, { source: this.source,
- line: this.line,
- column: this.column,
- name: this.name });
- }
- }
- }
- };
-
- /**
- * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between
- * each of `this.children`.
- *
- * @param aSep The separator.
- */
- SourceNode.prototype.join = function SourceNode_join(aSep) {
- var newChildren;
- var i;
- var len = this.children.length;
- if (len > 0) {
- newChildren = [];
- for (i = 0; i < len-1; i++) {
- newChildren.push(this.children[i]);
- newChildren.push(aSep);
- }
- newChildren.push(this.children[i]);
- this.children = newChildren;
- }
- return this;
- };
-
- /**
- * Call String.prototype.replace on the very right-most source snippet. Useful
- * for trimming whitespace from the end of a source node, etc.
- *
- * @param aPattern The pattern to replace.
- * @param aReplacement The thing to replace the pattern with.
- */
- SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) {
- var lastChild = this.children[this.children.length - 1];
- if (lastChild[isSourceNode]) {
- lastChild.replaceRight(aPattern, aReplacement);
- }
- else if (typeof lastChild === 'string') {
- this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement);
- }
- else {
- this.children.push(''.replace(aPattern, aReplacement));
- }
- return this;
- };
-
- /**
- * Set the source content for a source file. This will be added to the SourceMapGenerator
- * in the sourcesContent field.
- *
- * @param aSourceFile The filename of the source file
- * @param aSourceContent The content of the source file
- */
- SourceNode.prototype.setSourceContent =
- function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
- this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;
- };
-
- /**
- * Walk over the tree of SourceNodes. The walking function is called for each
- * source file content and is passed the filename and source content.
- *
- * @param aFn The traversal function.
- */
- SourceNode.prototype.walkSourceContents =
- function SourceNode_walkSourceContents(aFn) {
- for (var i = 0, len = this.children.length; i < len; i++) {
- if (this.children[i][isSourceNode]) {
- this.children[i].walkSourceContents(aFn);
- }
- }
-
- var sources = Object.keys(this.sourceContents);
- for (var i = 0, len = sources.length; i < len; i++) {
- aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);
- }
- };
-
- /**
- * Return the string representation of this source node. Walks over the tree
- * and concatenates all the various snippets together to one string.
- */
- SourceNode.prototype.toString = function SourceNode_toString() {
- var str = "";
- this.walk(function (chunk) {
- str += chunk;
- });
- return str;
- };
-
- /**
- * Returns the string representation of this source node along with a source
- * map.
- */
- SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) {
- var generated = {
- code: "",
- line: 1,
- column: 0
- };
- var map = new SourceMapGenerator(aArgs);
- var sourceMappingActive = false;
- var lastOriginalSource = null;
- var lastOriginalLine = null;
- var lastOriginalColumn = null;
- var lastOriginalName = null;
- this.walk(function (chunk, original) {
- generated.code += chunk;
- if (original.source !== null
- && original.line !== null
- && original.column !== null) {
- if(lastOriginalSource !== original.source
- || lastOriginalLine !== original.line
- || lastOriginalColumn !== original.column
- || lastOriginalName !== original.name) {
- map.addMapping({
- source: original.source,
- original: {
- line: original.line,
- column: original.column
- },
- generated: {
- line: generated.line,
- column: generated.column
- },
- name: original.name
- });
- }
- lastOriginalSource = original.source;
- lastOriginalLine = original.line;
- lastOriginalColumn = original.column;
- lastOriginalName = original.name;
- sourceMappingActive = true;
- } else if (sourceMappingActive) {
- map.addMapping({
- generated: {
- line: generated.line,
- column: generated.column
- }
- });
- lastOriginalSource = null;
- sourceMappingActive = false;
- }
- for (var idx = 0, length = chunk.length; idx < length; idx++) {
- if (chunk.charCodeAt(idx) === NEWLINE_CODE) {
- generated.line++;
- generated.column = 0;
- // Mappings end at eol
- if (idx + 1 === length) {
- lastOriginalSource = null;
- sourceMappingActive = false;
- } else if (sourceMappingActive) {
- map.addMapping({
- source: original.source,
- original: {
- line: original.line,
- column: original.column
- },
- generated: {
- line: generated.line,
- column: generated.column
- },
- name: original.name
- });
- }
- } else {
- generated.column++;
- }
- }
- });
- this.walkSourceContents(function (sourceFile, sourceContent) {
- map.setSourceContent(sourceFile, sourceContent);
- });
-
- return { code: generated.code, map: map };
- };
-
- exports.SourceNode = SourceNode;
-
-});
diff --git a/node_modules/source-map/lib/source-map/util.js b/node_modules/source-map/lib/source-map/util.js
deleted file mode 100644
index 0b9d75d..0000000
--- a/node_modules/source-map/lib/source-map/util.js
+++ /dev/null
@@ -1,370 +0,0 @@
-/* -*- Mode: js; js-indent-level: 2; -*- */
-/*
- * Copyright 2011 Mozilla Foundation and contributors
- * Licensed under the New BSD license. See LICENSE or:
- * http://opensource.org/licenses/BSD-3-Clause
- */
-if (typeof define !== 'function') {
- var define = require('amdefine')(module, require);
-}
-define(function (require, exports, module) {
-
- /**
- * This is a helper function for getting values from parameter/options
- * objects.
- *
- * @param args The object we are extracting values from
- * @param name The name of the property we are getting.
- * @param defaultValue An optional value to return if the property is missing
- * from the object. If this is not specified and the property is missing, an
- * error will be thrown.
- */
- function getArg(aArgs, aName, aDefaultValue) {
- if (aName in aArgs) {
- return aArgs[aName];
- } else if (arguments.length === 3) {
- return aDefaultValue;
- } else {
- throw new Error('"' + aName + '" is a required argument.');
- }
- }
- exports.getArg = getArg;
-
- var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;
- var dataUrlRegexp = /^data:.+\,.+$/;
-
- function urlParse(aUrl) {
- var match = aUrl.match(urlRegexp);
- if (!match) {
- return null;
- }
- return {
- scheme: match[1],
- auth: match[2],
- host: match[3],
- port: match[4],
- path: match[5]
- };
- }
- exports.urlParse = urlParse;
-
- function urlGenerate(aParsedUrl) {
- var url = '';
- if (aParsedUrl.scheme) {
- url += aParsedUrl.scheme + ':';
- }
- url += '//';
- if (aParsedUrl.auth) {
- url += aParsedUrl.auth + '@';
- }
- if (aParsedUrl.host) {
- url += aParsedUrl.host;
- }
- if (aParsedUrl.port) {
- url += ":" + aParsedUrl.port
- }
- if (aParsedUrl.path) {
- url += aParsedUrl.path;
- }
- return url;
- }
- exports.urlGenerate = urlGenerate;
-
- /**
- * Normalizes a path, or the path portion of a URL:
- *
- * - Replaces consequtive slashes with one slash.
- * - Removes unnecessary '.' parts.
- * - Removes unnecessary '<dir>/..' parts.
- *
- * Based on code in the Node.js 'path' core module.
- *
- * @param aPath The path or url to normalize.
- */
- function normalize(aPath) {
- var path = aPath;
- var url = urlParse(aPath);
- if (url) {
- if (!url.path) {
- return aPath;
- }
- path = url.path;
- }
- var isAbsolute = (path.charAt(0) === '/');
-
- var parts = path.split(/\/+/);
- for (var part, up = 0, i = parts.length - 1; i >= 0; i--) {
- part = parts[i];
- if (part === '.') {
- parts.splice(i, 1);
- } else if (part === '..') {
- up++;
- } else if (up > 0) {
- if (part === '') {
- // The first part is blank if the path is absolute. Trying to go
- // above the root is a no-op. Therefore we can remove all '..' parts
- // directly after the root.
- parts.splice(i + 1, up);
- up = 0;
- } else {
- parts.splice(i, 2);
- up--;
- }
- }
- }
- path = parts.join('/');
-
- if (path === '') {
- path = isAbsolute ? '/' : '.';
- }
-
- if (url) {
- url.path = path;
- return urlGenerate(url);
- }
- return path;
- }
- exports.normalize = normalize;
-
- /**
- * Joins two paths/URLs.
- *
- * @param aRoot The root path or URL.
- * @param aPath The path or URL to be joined with the root.
- *
- * - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
- * scheme-relative URL: Then the scheme of aRoot, if any, is prepended
- * first.
- * - Otherwise aPath is a path. If aRoot is a URL, then its path portion
- * is updated with the result and aRoot is returned. Otherwise the result
- * is returned.
- * - If aPath is absolute, the result is aPath.
- * - Otherwise the two paths are joined with a slash.
- * - Joining for example 'http://' and 'www.example.com' is also supported.
- */
- function join(aRoot, aPath) {
- if (aRoot === "") {
- aRoot = ".";
- }
- if (aPath === "") {
- aPath = ".";
- }
- var aPathUrl = urlParse(aPath);
- var aRootUrl = urlParse(aRoot);
- if (aRootUrl) {
- aRoot = aRootUrl.path || '/';
- }
-
- // `join(foo, '//www.example.org')`
- if (aPathUrl && !aPathUrl.scheme) {
- if (aRootUrl) {
- aPathUrl.scheme = aRootUrl.scheme;
- }
- return urlGenerate(aPathUrl);
- }
-
- if (aPathUrl || aPath.match(dataUrlRegexp)) {
- return aPath;
- }
-
- // `join('http://', 'www.example.com')`
- if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
- aRootUrl.host = aPath;
- return urlGenerate(aRootUrl);
- }
-
- var joined = aPath.charAt(0) === '/'
- ? aPath
- : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath);
-
- if (aRootUrl) {
- aRootUrl.path = joined;
- return urlGenerate(aRootUrl);
- }
- return joined;
- }
- exports.join = join;
-
- /**
- * Make a path relative to a URL or another path.
- *
- * @param aRoot The root path or URL.
- * @param aPath The path or URL to be made relative to aRoot.
- */
- function relative(aRoot, aPath) {
- if (aRoot === "") {
- aRoot = ".";
- }
-
- aRoot = aRoot.replace(/\/$/, '');
-
- // It is possible for the path to be above the root. In this case, simply
- // checking whether the root is a prefix of the path won't work. Instead, we
- // need to remove components from the root one by one, until either we find
- // a prefix that fits, or we run out of components to remove.
- var level = 0;
- while (aPath.indexOf(aRoot + '/') !== 0) {
- var index = aRoot.lastIndexOf("/");
- if (index < 0) {
- return aPath;
- }
-
- // If the only part of the root that is left is the scheme (i.e. http://,
- // file:///, etc.), one or more slashes (/), or simply nothing at all, we
- // have exhausted all components, so the path is not relative to the root.
- aRoot = aRoot.slice(0, index);
- if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
- return aPath;
- }
-
- ++level;
- }
-
- // Make sure we add a "../" for each component we removed from the root.
- return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
- }
- exports.relative = relative;
-
- /**
- * Because behavior goes wacky when you set `__proto__` on objects, we
- * have to prefix all the strings in our set with an arbitrary character.
- *
- * See https://github.com/mozilla/source-map/pull/31 and
- * https://github.com/mozilla/source-map/issues/30
- *
- * @param String aStr
- */
- function toSetString(aStr) {
- return '$' + aStr;
- }
- exports.toSetString = toSetString;
-
- function fromSetString(aStr) {
- return aStr.substr(1);
- }
- exports.fromSetString = fromSetString;
-
- /**
- * Comparator between two mappings where the original positions are compared.
- *
- * Optionally pass in `true` as `onlyCompareGenerated` to consider two
- * mappings with the same original source/line/column, but different generated
- * line and column the same. Useful when searching for a mapping with a
- * stubbed out mapping.
- */
- function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
- var cmp = mappingA.source - mappingB.source;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalLine - mappingB.originalLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalColumn - mappingB.originalColumn;
- if (cmp !== 0 || onlyCompareOriginal) {
- return cmp;
- }
-
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.generatedLine - mappingB.generatedLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- return mappingA.name - mappingB.name;
- };
- exports.compareByOriginalPositions = compareByOriginalPositions;
-
- /**
- * Comparator between two mappings with deflated source and name indices where
- * the generated positions are compared.
- *
- * Optionally pass in `true` as `onlyCompareGenerated` to consider two
- * mappings with the same generated line and column, but different
- * source/name/original line and column the same. Useful when searching for a
- * mapping with a stubbed out mapping.
- */
- function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
- var cmp = mappingA.generatedLine - mappingB.generatedLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
- if (cmp !== 0 || onlyCompareGenerated) {
- return cmp;
- }
-
- cmp = mappingA.source - mappingB.source;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalLine - mappingB.originalLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalColumn - mappingB.originalColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- return mappingA.name - mappingB.name;
- };
- exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
-
- function strcmp(aStr1, aStr2) {
- if (aStr1 === aStr2) {
- return 0;
- }
-
- if (aStr1 > aStr2) {
- return 1;
- }
-
- return -1;
- }
-
- /**
- * Comparator between two mappings with inflated source and name strings where
- * the generated positions are compared.
- */
- function compareByGeneratedPositionsInflated(mappingA, mappingB) {
- var cmp = mappingA.generatedLine - mappingB.generatedLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.generatedColumn - mappingB.generatedColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = strcmp(mappingA.source, mappingB.source);
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalLine - mappingB.originalLine;
- if (cmp !== 0) {
- return cmp;
- }
-
- cmp = mappingA.originalColumn - mappingB.originalColumn;
- if (cmp !== 0) {
- return cmp;
- }
-
- return strcmp(mappingA.name, mappingB.name);
- };
- exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
-
-});
diff --git a/node_modules/source-map/package.json b/node_modules/source-map/package.json
deleted file mode 100644
index dc74af1..0000000
--- a/node_modules/source-map/package.json
+++ /dev/null
@@ -1,198 +0,0 @@
-{
- "_from": "source-map@^0.4.2",
- "_id": "source-map@0.4.4",
- "_inBundle": false,
- "_integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=",
- "_location": "/source-map",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "source-map@^0.4.2",
- "name": "source-map",
- "escapedName": "source-map",
- "rawSpec": "^0.4.2",
- "saveSpec": null,
- "fetchSpec": "^0.4.2"
- },
- "_requiredBy": [
- "/scss-tokenizer"
- ],
- "_resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
- "_shasum": "eba4f5da9c0dc999de68032d8b4f76173652036b",
- "_spec": "source-map@^0.4.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/scss-tokenizer",
- "author": {
- "name": "Nick Fitzgerald",
- "email": "nfitzgerald@mozilla.com"
- },
- "bugs": {
- "url": "https://github.com/mozilla/source-map/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Tobias Koppers",
- "email": "tobias.koppers@googlemail.com"
- },
- {
- "name": "Duncan Beevers",
- "email": "duncan@dweebd.com"
- },
- {
- "name": "Stephen Crane",
- "email": "scrane@mozilla.com"
- },
- {
- "name": "Ryan Seddon",
- "email": "seddon.ryan@gmail.com"
- },
- {
- "name": "Miles Elam",
- "email": "miles.elam@deem.com"
- },
- {
- "name": "Mihai Bazon",
- "email": "mihai.bazon@gmail.com"
- },
- {
- "name": "Michael Ficarra",
- "email": "github.public.email@michael.ficarra.me"
- },
- {
- "name": "Todd Wolfson",
- "email": "todd@twolfson.com"
- },
- {
- "name": "Alexander Solovyov",
- "email": "alexander@solovyov.net"
- },
- {
- "name": "Felix Gnass",
- "email": "fgnass@gmail.com"
- },
- {
- "name": "Conrad Irwin",
- "email": "conrad.irwin@gmail.com"
- },
- {
- "name": "usrbincc",
- "email": "usrbincc@yahoo.com"
- },
- {
- "name": "David Glasser",
- "email": "glasser@davidglasser.net"
- },
- {
- "name": "Chase Douglas",
- "email": "chase@newrelic.com"
- },
- {
- "name": "Evan Wallace",
- "email": "evan.exe@gmail.com"
- },
- {
- "name": "Heather Arthur",
- "email": "fayearthur@gmail.com"
- },
- {
- "name": "Hugh Kennedy",
- "email": "hughskennedy@gmail.com"
- },
- {
- "name": "David Glasser",
- "email": "glasser@davidglasser.net"
- },
- {
- "name": "Simon Lydell",
- "email": "simon.lydell@gmail.com"
- },
- {
- "name": "Jmeas Smith",
- "email": "jellyes2@gmail.com"
- },
- {
- "name": "Michael Z Goddard",
- "email": "mzgoddard@gmail.com"
- },
- {
- "name": "azu",
- "email": "azu@users.noreply.github.com"
- },
- {
- "name": "John Gozde",
- "email": "john@gozde.ca"
- },
- {
- "name": "Adam Kirkton",
- "email": "akirkton@truefitinnovation.com"
- },
- {
- "name": "Chris Montgomery",
- "email": "christopher.montgomery@dowjones.com"
- },
- {
- "name": "J. Ryan Stinnett",
- "email": "jryans@gmail.com"
- },
- {
- "name": "Jack Herrington",
- "email": "jherrington@walmartlabs.com"
- },
- {
- "name": "Chris Truter",
- "email": "jeffpalentine@gmail.com"
- },
- {
- "name": "Daniel Espeset",
- "email": "daniel@danielespeset.com"
- },
- {
- "name": "Jamie Wong",
- "email": "jamie.lf.wong@gmail.com"
- },
- {
- "name": "Eddy Bruël",
- "email": "ejpbruel@mozilla.com"
- },
- {
- "name": "Hawken Rives",
- "email": "hawkrives@gmail.com"
- },
- {
- "name": "Gilad Peleg",
- "email": "giladp007@gmail.com"
- }
- ],
- "dependencies": {
- "amdefine": ">=0.0.4"
- },
- "deprecated": false,
- "description": "Generates and consumes source maps",
- "devDependencies": {
- "dryice": ">=0.4.8"
- },
- "directories": {
- "lib": "./lib"
- },
- "engines": {
- "node": ">=0.8.0"
- },
- "files": [
- "lib/",
- "build/"
- ],
- "homepage": "https://github.com/mozilla/source-map",
- "license": "BSD-3-Clause",
- "main": "./lib/source-map.js",
- "name": "source-map",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/mozilla/source-map.git"
- },
- "scripts": {
- "build": "node Makefile.dryice.js",
- "test": "node test/run-tests.js"
- },
- "version": "0.4.4"
-}
diff --git a/node_modules/spdx-correct/LICENSE b/node_modules/spdx-correct/LICENSE
deleted file mode 100644
index d645695..0000000
--- a/node_modules/spdx-correct/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/node_modules/spdx-correct/README.md b/node_modules/spdx-correct/README.md
deleted file mode 100644
index ab388cf..0000000
--- a/node_modules/spdx-correct/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-```javascript
-var correct = require('spdx-correct')
-var assert = require('assert')
-
-assert.equal(correct('mit'), 'MIT')
-
-assert.equal(correct('Apache 2'), 'Apache-2.0')
-
-assert(correct('No idea what license') === null)
-
-// disable upgrade option
-assert(correct('GPL-3.0'), 'GPL-3.0-or-later')
-assert(correct('GPL-3.0', { upgrade: false }), 'GPL-3.0')
-```
diff --git a/node_modules/spdx-correct/index.js b/node_modules/spdx-correct/index.js
deleted file mode 100644
index c51a79f..0000000
--- a/node_modules/spdx-correct/index.js
+++ /dev/null
@@ -1,364 +0,0 @@
-/*
-Copyright spdx-correct.js contributors
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-var parse = require('spdx-expression-parse')
-var spdxLicenseIds = require('spdx-license-ids')
-
-function valid (string) {
- try {
- parse(string)
- return true
- } catch (error) {
- return false
- }
-}
-
-// Common transpositions of license identifier acronyms
-var transpositions = [
- ['APGL', 'AGPL'],
- ['Gpl', 'GPL'],
- ['GLP', 'GPL'],
- ['APL', 'Apache'],
- ['ISD', 'ISC'],
- ['GLP', 'GPL'],
- ['IST', 'ISC'],
- ['Claude', 'Clause'],
- [' or later', '+'],
- [' International', ''],
- ['GNU', 'GPL'],
- ['GUN', 'GPL'],
- ['+', ''],
- ['GNU GPL', 'GPL'],
- ['GNU/GPL', 'GPL'],
- ['GNU GLP', 'GPL'],
- ['GNU General Public License', 'GPL'],
- ['Gnu public license', 'GPL'],
- ['GNU Public License', 'GPL'],
- ['GNU GENERAL PUBLIC LICENSE', 'GPL'],
- ['MTI', 'MIT'],
- ['Mozilla Public License', 'MPL'],
- ['Universal Permissive License', 'UPL'],
- ['WTH', 'WTF'],
- ['-License', '']
-]
-
-var TRANSPOSED = 0
-var CORRECT = 1
-
-// Simple corrections to nearly valid identifiers.
-var transforms = [
- // e.g. 'mit'
- function (argument) {
- return argument.toUpperCase()
- },
- // e.g. 'MIT '
- function (argument) {
- return argument.trim()
- },
- // e.g. 'M.I.T.'
- function (argument) {
- return argument.replace(/\./g, '')
- },
- // e.g. 'Apache- 2.0'
- function (argument) {
- return argument.replace(/\s+/g, '')
- },
- // e.g. 'CC BY 4.0''
- function (argument) {
- return argument.replace(/\s+/g, '-')
- },
- // e.g. 'LGPLv2.1'
- function (argument) {
- return argument.replace('v', '-')
- },
- // e.g. 'Apache 2.0'
- function (argument) {
- return argument.replace(/,?\s*(\d)/, '-$1')
- },
- // e.g. 'GPL 2'
- function (argument) {
- return argument.replace(/,?\s*(\d)/, '-$1.0')
- },
- // e.g. 'Apache Version 2.0'
- function (argument) {
- return argument
- .replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2')
- },
- // e.g. 'Apache Version 2'
- function (argument) {
- return argument
- .replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2.0')
- },
- // e.g. 'ZLIB'
- function (argument) {
- return argument[0].toUpperCase() + argument.slice(1)
- },
- // e.g. 'MPL/2.0'
- function (argument) {
- return argument.replace('/', '-')
- },
- // e.g. 'Apache 2'
- function (argument) {
- return argument
- .replace(/\s*V\s*(\d)/, '-$1')
- .replace(/(\d)$/, '$1.0')
- },
- // e.g. 'GPL-2.0', 'GPL-3.0'
- function (argument) {
- if (argument.indexOf('3.0') !== -1) {
- return argument + '-or-later'
- } else {
- return argument + '-only'
- }
- },
- // e.g. 'GPL-2.0-'
- function (argument) {
- return argument + 'only'
- },
- // e.g. 'GPL2'
- function (argument) {
- return argument.replace(/(\d)$/, '-$1.0')
- },
- // e.g. 'BSD 3'
- function (argument) {
- return argument.replace(/(-| )?(\d)$/, '-$2-Clause')
- },
- // e.g. 'BSD clause 3'
- function (argument) {
- return argument.replace(/(-| )clause(-| )(\d)/, '-$3-Clause')
- },
- // e.g. 'New BSD license'
- function (argument) {
- return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, 'BSD-3-Clause')
- },
- // e.g. 'Simplified BSD license'
- function (argument) {
- return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, 'BSD-2-Clause')
- },
- // e.g. 'Free BSD license'
- function (argument) {
- return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, 'BSD-2-Clause-$1BSD')
- },
- // e.g. 'Clear BSD license'
- function (argument) {
- return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, 'BSD-3-Clause-Clear')
- },
- // e.g. 'Old BSD License'
- function (argument) {
- return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, 'BSD-4-Clause')
- },
- // e.g. 'BY-NC-4.0'
- function (argument) {
- return 'CC-' + argument
- },
- // e.g. 'BY-NC'
- function (argument) {
- return 'CC-' + argument + '-4.0'
- },
- // e.g. 'Attribution-NonCommercial'
- function (argument) {
- return argument
- .replace('Attribution', 'BY')
- .replace('NonCommercial', 'NC')
- .replace('NoDerivatives', 'ND')
- .replace(/ (\d)/, '-$1')
- .replace(/ ?International/, '')
- },
- // e.g. 'Attribution-NonCommercial'
- function (argument) {
- return 'CC-' +
- argument
- .replace('Attribution', 'BY')
- .replace('NonCommercial', 'NC')
- .replace('NoDerivatives', 'ND')
- .replace(/ (\d)/, '-$1')
- .replace(/ ?International/, '') +
- '-4.0'
- }
-]
-
-var licensesWithVersions = spdxLicenseIds
- .map(function (id) {
- var match = /^(.*)-\d+\.\d+$/.exec(id)
- return match
- ? [match[0], match[1]]
- : [id, null]
- })
- .reduce(function (objectMap, item) {
- var key = item[1]
- objectMap[key] = objectMap[key] || []
- objectMap[key].push(item[0])
- return objectMap
- }, {})
-
-var licensesWithOneVersion = Object.keys(licensesWithVersions)
- .map(function makeEntries (key) {
- return [key, licensesWithVersions[key]]
- })
- .filter(function identifySoleVersions (item) {
- return (
- // Licenses has just one valid version suffix.
- item[1].length === 1 &&
- item[0] !== null &&
- // APL will be considered Apache, rather than APL-1.0
- item[0] !== 'APL'
- )
- })
- .map(function createLastResorts (item) {
- return [item[0], item[1][0]]
- })
-
-licensesWithVersions = undefined
-
-// If all else fails, guess that strings containing certain substrings
-// meant to identify certain licenses.
-var lastResorts = [
- ['UNLI', 'Unlicense'],
- ['WTF', 'WTFPL'],
- ['2 CLAUSE', 'BSD-2-Clause'],
- ['2-CLAUSE', 'BSD-2-Clause'],
- ['3 CLAUSE', 'BSD-3-Clause'],
- ['3-CLAUSE', 'BSD-3-Clause'],
- ['AFFERO', 'AGPL-3.0-or-later'],
- ['AGPL', 'AGPL-3.0-or-later'],
- ['APACHE', 'Apache-2.0'],
- ['ARTISTIC', 'Artistic-2.0'],
- ['Affero', 'AGPL-3.0-or-later'],
- ['BEER', 'Beerware'],
- ['BOOST', 'BSL-1.0'],
- ['BSD', 'BSD-2-Clause'],
- ['CDDL', 'CDDL-1.1'],
- ['ECLIPSE', 'EPL-1.0'],
- ['FUCK', 'WTFPL'],
- ['GNU', 'GPL-3.0-or-later'],
- ['LGPL', 'LGPL-3.0-or-later'],
- ['GPLV1', 'GPL-1.0-only'],
- ['GPL-1', 'GPL-1.0-only'],
- ['GPLV2', 'GPL-2.0-only'],
- ['GPL-2', 'GPL-2.0-only'],
- ['GPL', 'GPL-3.0-or-later'],
- ['MIT +NO-FALSE-ATTRIBS', 'MITNFA'],
- ['MIT', 'MIT'],
- ['MPL', 'MPL-2.0'],
- ['X11', 'X11'],
- ['ZLIB', 'Zlib']
-].concat(licensesWithOneVersion)
-
-var SUBSTRING = 0
-var IDENTIFIER = 1
-
-var validTransformation = function (identifier) {
- for (var i = 0; i < transforms.length; i++) {
- var transformed = transforms[i](identifier).trim()
- if (transformed !== identifier && valid(transformed)) {
- return transformed
- }
- }
- return null
-}
-
-var validLastResort = function (identifier) {
- var upperCased = identifier.toUpperCase()
- for (var i = 0; i < lastResorts.length; i++) {
- var lastResort = lastResorts[i]
- if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) {
- return lastResort[IDENTIFIER]
- }
- }
- return null
-}
-
-var anyCorrection = function (identifier, check) {
- for (var i = 0; i < transpositions.length; i++) {
- var transposition = transpositions[i]
- var transposed = transposition[TRANSPOSED]
- if (identifier.indexOf(transposed) > -1) {
- var corrected = identifier.replace(
- transposed,
- transposition[CORRECT]
- )
- var checked = check(corrected)
- if (checked !== null) {
- return checked
- }
- }
- }
- return null
-}
-
-module.exports = function (identifier, options) {
- options = options || {}
- var upgrade = options.upgrade === undefined ? true : !!options.upgrade
- function postprocess (value) {
- return upgrade ? upgradeGPLs(value) : value
- }
- var validArugment = (
- typeof identifier === 'string' &&
- identifier.trim().length !== 0
- )
- if (!validArugment) {
- throw Error('Invalid argument. Expected non-empty string.')
- }
- identifier = identifier.trim()
- if (valid(identifier)) {
- return postprocess(identifier)
- }
- var noPlus = identifier.replace(/\+$/, '').trim()
- if (valid(noPlus)) {
- return postprocess(noPlus)
- }
- var transformed = validTransformation(identifier)
- if (transformed !== null) {
- return postprocess(transformed)
- }
- transformed = anyCorrection(identifier, function (argument) {
- if (valid(argument)) {
- return argument
- }
- return validTransformation(argument)
- })
- if (transformed !== null) {
- return postprocess(transformed)
- }
- transformed = validLastResort(identifier)
- if (transformed !== null) {
- return postprocess(transformed)
- }
- transformed = anyCorrection(identifier, validLastResort)
- if (transformed !== null) {
- return postprocess(transformed)
- }
- return null
-}
-
-function upgradeGPLs (value) {
- if ([
- 'GPL-1.0', 'LGPL-1.0', 'AGPL-1.0',
- 'GPL-2.0', 'LGPL-2.0', 'AGPL-2.0',
- 'LGPL-2.1'
- ].indexOf(value) !== -1) {
- return value + '-only'
- } else if ([
- 'GPL-1.0+', 'GPL-2.0+', 'GPL-3.0+',
- 'LGPL-2.0+', 'LGPL-2.1+', 'LGPL-3.0+',
- 'AGPL-1.0+', 'AGPL-3.0+'
- ].indexOf(value) !== -1) {
- return value.replace(/\+$/, '-or-later')
- } else if (['GPL-3.0', 'LGPL-3.0', 'AGPL-3.0'].indexOf(value) !== -1) {
- return value + '-or-later'
- } else {
- return value
- }
-}
diff --git a/node_modules/spdx-correct/package.json b/node_modules/spdx-correct/package.json
deleted file mode 100644
index de6c059..0000000
--- a/node_modules/spdx-correct/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "spdx-correct@^3.0.0",
- "_id": "spdx-correct@3.1.1",
- "_inBundle": false,
- "_integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",
- "_location": "/spdx-correct",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "spdx-correct@^3.0.0",
- "name": "spdx-correct",
- "escapedName": "spdx-correct",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/validate-npm-package-license"
- ],
- "_resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",
- "_shasum": "dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9",
- "_spec": "spdx-correct@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/validate-npm-package-license",
- "author": {
- "name": "Kyle E. Mitchell",
- "email": "kyle@kemitchell.com",
- "url": "https://kemitchell.com"
- },
- "bugs": {
- "url": "https://github.com/jslicense/spdx-correct.js/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Kyle E. Mitchell",
- "email": "kyle@kemitchell.com",
- "url": "https://kemitchell.com"
- },
- {
- "name": "Christian Zommerfelds",
- "email": "aero_super@yahoo.com"
- },
- {
- "name": "Tal Einat",
- "email": "taleinat@gmail.com"
- },
- {
- "name": "Dan Butvinik",
- "email": "butvinik@outlook.com"
- }
- ],
- "dependencies": {
- "spdx-expression-parse": "^3.0.0",
- "spdx-license-ids": "^3.0.0"
- },
- "deprecated": false,
- "description": "correct invalid SPDX expressions",
- "devDependencies": {
- "defence-cli": "^2.0.1",
- "replace-require-self": "^1.0.0",
- "standard": "^11.0.0",
- "standard-markdown": "^4.0.2",
- "tape": "^4.9.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/jslicense/spdx-correct.js#readme",
- "keywords": [
- "SPDX",
- "law",
- "legal",
- "license",
- "metadata"
- ],
- "license": "Apache-2.0",
- "name": "spdx-correct",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jslicense/spdx-correct.js.git"
- },
- "scripts": {
- "lint": "standard && standard-markdown README.md",
- "test": "defence README.md | replace-require-self | node && node test.js"
- },
- "version": "3.1.1"
-}
diff --git a/node_modules/spdx-exceptions/README.md b/node_modules/spdx-exceptions/README.md
deleted file mode 100644
index 6c927ec..0000000
--- a/node_modules/spdx-exceptions/README.md
+++ /dev/null
@@ -1,36 +0,0 @@
-The package exports an array of strings. Each string is an identifier
-for a license exception under the [Software Package Data Exchange
-(SPDX)][SPDX] software license metadata standard.
-
-[SPDX]: https://spdx.org
-
-## Copyright and Licensing
-
-### SPDX
-
-"SPDX" is a federally registered United States trademark of The Linux
-Foundation Corporation.
-
-From version 2.0 of the [SPDX] specification:
-
-> Copyright © 2010-2015 Linux Foundation and its Contributors. Licensed
-> under the Creative Commons Attribution License 3.0 Unported. All other
-> rights are expressly reserved.
-
-The Linux Foundation and the SPDX working groups are good people. Only
-they decide what "SPDX" means, as a standard and otherwise. I respect
-their work and their rights. You should, too.
-
-### This Package
-
-> I created this package by copying exception identifiers out of the
-> SPDX specification. That work was mechanical, routine, and required no
-> creativity whatsoever. - Kyle Mitchell, package author
-
-United States users concerned about intellectual property may wish to
-discuss the following Supreme Court decisions with their attorneys:
-
-- _Baker v. Selden_, 101 U.S. 99 (1879)
-
-- _Feist Publications, Inc., v. Rural Telephone Service Co._,
- 499 U.S. 340 (1991)
diff --git a/node_modules/spdx-exceptions/index.json b/node_modules/spdx-exceptions/index.json
deleted file mode 100644
index f88f088..0000000
--- a/node_modules/spdx-exceptions/index.json
+++ /dev/null
@@ -1,40 +0,0 @@
-[
- "389-exception",
- "Autoconf-exception-2.0",
- "Autoconf-exception-3.0",
- "Bison-exception-2.2",
- "Bootloader-exception",
- "Classpath-exception-2.0",
- "CLISP-exception-2.0",
- "DigiRule-FOSS-exception",
- "eCos-exception-2.0",
- "Fawkes-Runtime-exception",
- "FLTK-exception",
- "Font-exception-2.0",
- "freertos-exception-2.0",
- "GCC-exception-2.0",
- "GCC-exception-3.1",
- "gnu-javamail-exception",
- "GPL-3.0-linking-exception",
- "GPL-3.0-linking-source-exception",
- "GPL-CC-1.0",
- "i2p-gpl-java-exception",
- "Libtool-exception",
- "Linux-syscall-note",
- "LLVM-exception",
- "LZMA-exception",
- "mif-exception",
- "Nokia-Qt-exception-1.1",
- "OCaml-LGPL-linking-exception",
- "OCCT-exception-1.0",
- "OpenJDK-assembly-exception-1.0",
- "openvpn-openssl-exception",
- "PS-or-PDF-font-exception-20170817",
- "Qt-GPL-exception-1.0",
- "Qt-LGPL-exception-1.1",
- "Qwt-exception-1.0",
- "Swift-exception",
- "u-boot-exception-2.0",
- "Universal-FOSS-exception-1.0",
- "WxWindows-exception-3.1"
-]
diff --git a/node_modules/spdx-exceptions/package.json b/node_modules/spdx-exceptions/package.json
deleted file mode 100644
index d60c6ab..0000000
--- a/node_modules/spdx-exceptions/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "_from": "spdx-exceptions@^2.1.0",
- "_id": "spdx-exceptions@2.3.0",
- "_inBundle": false,
- "_integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==",
- "_location": "/spdx-exceptions",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "spdx-exceptions@^2.1.0",
- "name": "spdx-exceptions",
- "escapedName": "spdx-exceptions",
- "rawSpec": "^2.1.0",
- "saveSpec": null,
- "fetchSpec": "^2.1.0"
- },
- "_requiredBy": [
- "/spdx-expression-parse"
- ],
- "_resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",
- "_shasum": "3f28ce1a77a00372683eade4a433183527a2163d",
- "_spec": "spdx-exceptions@^2.1.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/spdx-expression-parse",
- "author": {
- "name": "The Linux Foundation"
- },
- "bugs": {
- "url": "https://github.com/kemitchell/spdx-exceptions.json/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Kyle E. Mitchell",
- "email": "kyle@kemitchell.com",
- "url": "https://kemitchell.com/"
- }
- ],
- "deprecated": false,
- "description": "list of SPDX standard license exceptions",
- "files": [
- "index.json"
- ],
- "homepage": "https://github.com/kemitchell/spdx-exceptions.json#readme",
- "license": "CC-BY-3.0",
- "name": "spdx-exceptions",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/kemitchell/spdx-exceptions.json.git"
- },
- "scripts": {
- "build": "node build.js"
- },
- "version": "2.3.0"
-}
diff --git a/node_modules/spdx-expression-parse/AUTHORS b/node_modules/spdx-expression-parse/AUTHORS
deleted file mode 100644
index 257a76b..0000000
--- a/node_modules/spdx-expression-parse/AUTHORS
+++ /dev/null
@@ -1,4 +0,0 @@
-C. Scott Ananian <cscott@cscott.net> (http://cscott.net)
-Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)
-Shinnosuke Watanabe <snnskwtnb@gmail.com>
-Antoine Motet <antoine.motet@gmail.com>
diff --git a/node_modules/spdx-expression-parse/LICENSE b/node_modules/spdx-expression-parse/LICENSE
deleted file mode 100644
index 831618e..0000000
--- a/node_modules/spdx-expression-parse/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License
-
-Copyright (c) 2015 Kyle E. Mitchell & other authors listed in AUTHORS
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/spdx-expression-parse/README.md b/node_modules/spdx-expression-parse/README.md
deleted file mode 100644
index 9406462..0000000
--- a/node_modules/spdx-expression-parse/README.md
+++ /dev/null
@@ -1,91 +0,0 @@
-This package parses [SPDX license expression](https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60) strings describing license terms, like [package.json license strings](https://docs.npmjs.com/files/package.json#license), into consistently structured ECMAScript objects. The npm command-line interface depends on this package, as do many automatic license-audit tools.
-
-In a nutshell:
-
-```javascript
-var parse = require('spdx-expression-parse')
-var assert = require('assert')
-
-assert.deepEqual(
- // Licensed under the terms of the Two-Clause BSD License.
- parse('BSD-2-Clause'),
- {license: 'BSD-2-Clause'}
-)
-
-assert.throws(function () {
- // An invalid SPDX license expression.
- // Should be `Apache-2.0`.
- parse('Apache 2')
-})
-
-assert.deepEqual(
- // Dual licensed under either:
- // - LGPL 2.1
- // - a combination of Three-Clause BSD and MIT
- parse('(LGPL-2.1 OR BSD-3-Clause AND MIT)'),
- {
- left: {license: 'LGPL-2.1'},
- conjunction: 'or',
- right: {
- left: {license: 'BSD-3-Clause'},
- conjunction: 'and',
- right: {license: 'MIT'}
- }
- }
-)
-```
-
-The syntax comes from the [Software Package Data eXchange (SPDX)](https://spdx.org/), a standard from the [Linux Foundation](https://www.linuxfoundation.org) for shareable data about software package license terms. SPDX aims to make sharing and auditing license data easy, especially for users of open-source software.
-
-The bulk of the SPDX standard describes syntax and semantics of XML metadata files. This package implements two lightweight, plain-text components of that larger standard:
-
-1. The [license list](https://spdx.org/licenses), a mapping from specific string identifiers, like `Apache-2.0`, to standard form license texts and bolt-on license exceptions. The [spdx-license-ids](https://www.npmjs.com/package/spdx-license-ids) and [spdx-exceptions](https://www.npmjs.com/package/spdx-exceptions) packages implement the license list. `spdx-expression-parse` depends on and `require()`s them.
-
- Any license identifier from the license list is a valid license expression:
-
- ```javascript
- var identifiers = []
- .concat(require('spdx-license-ids'))
- .concat(require('spdx-license-ids/deprecated'))
-
- identifiers.forEach(function (id) {
- assert.deepEqual(parse(id), {license: id})
- })
- ```
-
- So is any license identifier `WITH` a standardized license exception:
-
- ```javascript
- identifiers.forEach(function (id) {
- require('spdx-exceptions').forEach(function (e) {
- assert.deepEqual(
- parse(id + ' WITH ' + e),
- {license: id, exception: e}
- )
- })
- })
- ```
-
-2. The license expression language, for describing simple and complex license terms, like `MIT` for MIT-licensed and `(GPL-2.0 OR Apache-2.0)` for dual-licensing under GPL 2.0 and Apache 2.0. `spdx-expression-parse` itself implements license expression language, exporting a parser.
-
- ```javascript
- assert.deepEqual(
- // Licensed under a combination of:
- // - the MIT License AND
- // - a combination of:
- // - LGPL 2.1 (or a later version) AND
- // - Three-Clause BSD
- parse('(MIT AND (LGPL-2.1+ AND BSD-3-Clause))'),
- {
- left: {license: 'MIT'},
- conjunction: 'and',
- right: {
- left: {license: 'LGPL-2.1', plus: true},
- conjunction: 'and',
- right: {license: 'BSD-3-Clause'}
- }
- }
- )
- ```
-
-The Linux Foundation and its contributors license the SPDX standard under the terms of [the Creative Commons Attribution License 3.0 Unported (SPDX: "CC-BY-3.0")](http://spdx.org/licenses/CC-BY-3.0). "SPDX" is a United States federally registered trademark of the Linux Foundation. The authors of this package license their work under the terms of the MIT License.
diff --git a/node_modules/spdx-expression-parse/index.js b/node_modules/spdx-expression-parse/index.js
deleted file mode 100644
index 52fab56..0000000
--- a/node_modules/spdx-expression-parse/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict'
-
-var scan = require('./scan')
-var parse = require('./parse')
-
-module.exports = function (source) {
- return parse(scan(source))
-}
diff --git a/node_modules/spdx-expression-parse/package.json b/node_modules/spdx-expression-parse/package.json
deleted file mode 100644
index a9edde2..0000000
--- a/node_modules/spdx-expression-parse/package.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "_from": "spdx-expression-parse@^3.0.0",
- "_id": "spdx-expression-parse@3.0.1",
- "_inBundle": false,
- "_integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
- "_location": "/spdx-expression-parse",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "spdx-expression-parse@^3.0.0",
- "name": "spdx-expression-parse",
- "escapedName": "spdx-expression-parse",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/spdx-correct",
- "/validate-npm-package-license"
- ],
- "_resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
- "_shasum": "cf70f50482eefdc98e3ce0a6833e4a53ceeba679",
- "_spec": "spdx-expression-parse@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/validate-npm-package-license",
- "author": {
- "name": "Kyle E. Mitchell",
- "email": "kyle@kemitchell.com",
- "url": "https://kemitchell.com"
- },
- "bugs": {
- "url": "https://github.com/jslicense/spdx-expression-parse.js/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "C. Scott Ananian",
- "email": "cscott@cscott.net",
- "url": "http://cscott.net"
- },
- {
- "name": "Kyle E. Mitchell",
- "email": "kyle@kemitchell.com",
- "url": "https://kemitchell.com"
- },
- {
- "name": "Shinnosuke Watanabe",
- "email": "snnskwtnb@gmail.com"
- },
- {
- "name": "Antoine Motet",
- "email": "antoine.motet@gmail.com"
- }
- ],
- "dependencies": {
- "spdx-exceptions": "^2.1.0",
- "spdx-license-ids": "^3.0.0"
- },
- "deprecated": false,
- "description": "parse SPDX license expressions",
- "devDependencies": {
- "defence-cli": "^3.0.1",
- "replace-require-self": "^1.0.0",
- "standard": "^14.1.0"
- },
- "files": [
- "AUTHORS",
- "index.js",
- "parse.js",
- "scan.js"
- ],
- "homepage": "https://github.com/jslicense/spdx-expression-parse.js#readme",
- "keywords": [
- "SPDX",
- "law",
- "legal",
- "license",
- "metadata",
- "package",
- "package.json",
- "standards"
- ],
- "license": "MIT",
- "name": "spdx-expression-parse",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jslicense/spdx-expression-parse.js.git"
- },
- "scripts": {
- "lint": "standard",
- "test": "npm run test:suite && npm run test:readme",
- "test:readme": "defence -i javascript README.md | replace-require-self | node",
- "test:suite": "node test.js"
- },
- "version": "3.0.1"
-}
diff --git a/node_modules/spdx-expression-parse/parse.js b/node_modules/spdx-expression-parse/parse.js
deleted file mode 100644
index 5a00b45..0000000
--- a/node_modules/spdx-expression-parse/parse.js
+++ /dev/null
@@ -1,138 +0,0 @@
-'use strict'
-
-// The ABNF grammar in the spec is totally ambiguous.
-//
-// This parser follows the operator precedence defined in the
-// `Order of Precedence and Parentheses` section.
-
-module.exports = function (tokens) {
- var index = 0
-
- function hasMore () {
- return index < tokens.length
- }
-
- function token () {
- return hasMore() ? tokens[index] : null
- }
-
- function next () {
- if (!hasMore()) {
- throw new Error()
- }
- index++
- }
-
- function parseOperator (operator) {
- var t = token()
- if (t && t.type === 'OPERATOR' && operator === t.string) {
- next()
- return t.string
- }
- }
-
- function parseWith () {
- if (parseOperator('WITH')) {
- var t = token()
- if (t && t.type === 'EXCEPTION') {
- next()
- return t.string
- }
- throw new Error('Expected exception after `WITH`')
- }
- }
-
- function parseLicenseRef () {
- // TODO: Actually, everything is concatenated into one string
- // for backward-compatibility but it could be better to return
- // a nice structure.
- var begin = index
- var string = ''
- var t = token()
- if (t.type === 'DOCUMENTREF') {
- next()
- string += 'DocumentRef-' + t.string + ':'
- if (!parseOperator(':')) {
- throw new Error('Expected `:` after `DocumentRef-...`')
- }
- }
- t = token()
- if (t.type === 'LICENSEREF') {
- next()
- string += 'LicenseRef-' + t.string
- return { license: string }
- }
- index = begin
- }
-
- function parseLicense () {
- var t = token()
- if (t && t.type === 'LICENSE') {
- next()
- var node = { license: t.string }
- if (parseOperator('+')) {
- node.plus = true
- }
- var exception = parseWith()
- if (exception) {
- node.exception = exception
- }
- return node
- }
- }
-
- function parseParenthesizedExpression () {
- var left = parseOperator('(')
- if (!left) {
- return
- }
-
- var expr = parseExpression()
-
- if (!parseOperator(')')) {
- throw new Error('Expected `)`')
- }
-
- return expr
- }
-
- function parseAtom () {
- return (
- parseParenthesizedExpression() ||
- parseLicenseRef() ||
- parseLicense()
- )
- }
-
- function makeBinaryOpParser (operator, nextParser) {
- return function parseBinaryOp () {
- var left = nextParser()
- if (!left) {
- return
- }
-
- if (!parseOperator(operator)) {
- return left
- }
-
- var right = parseBinaryOp()
- if (!right) {
- throw new Error('Expected expression')
- }
- return {
- left: left,
- conjunction: operator.toLowerCase(),
- right: right
- }
- }
- }
-
- var parseAnd = makeBinaryOpParser('AND', parseAtom)
- var parseExpression = makeBinaryOpParser('OR', parseAnd)
-
- var node = parseExpression()
- if (!node || hasMore()) {
- throw new Error('Syntax error')
- }
- return node
-}
diff --git a/node_modules/spdx-expression-parse/scan.js b/node_modules/spdx-expression-parse/scan.js
deleted file mode 100644
index b74fce2..0000000
--- a/node_modules/spdx-expression-parse/scan.js
+++ /dev/null
@@ -1,131 +0,0 @@
-'use strict'
-
-var licenses = []
- .concat(require('spdx-license-ids'))
- .concat(require('spdx-license-ids/deprecated'))
-var exceptions = require('spdx-exceptions')
-
-module.exports = function (source) {
- var index = 0
-
- function hasMore () {
- return index < source.length
- }
-
- // `value` can be a regexp or a string.
- // If it is recognized, the matching source string is returned and
- // the index is incremented. Otherwise `undefined` is returned.
- function read (value) {
- if (value instanceof RegExp) {
- var chars = source.slice(index)
- var match = chars.match(value)
- if (match) {
- index += match[0].length
- return match[0]
- }
- } else {
- if (source.indexOf(value, index) === index) {
- index += value.length
- return value
- }
- }
- }
-
- function skipWhitespace () {
- read(/[ ]*/)
- }
-
- function operator () {
- var string
- var possibilities = ['WITH', 'AND', 'OR', '(', ')', ':', '+']
- for (var i = 0; i < possibilities.length; i++) {
- string = read(possibilities[i])
- if (string) {
- break
- }
- }
-
- if (string === '+' && index > 1 && source[index - 2] === ' ') {
- throw new Error('Space before `+`')
- }
-
- return string && {
- type: 'OPERATOR',
- string: string
- }
- }
-
- function idstring () {
- return read(/[A-Za-z0-9-.]+/)
- }
-
- function expectIdstring () {
- var string = idstring()
- if (!string) {
- throw new Error('Expected idstring at offset ' + index)
- }
- return string
- }
-
- function documentRef () {
- if (read('DocumentRef-')) {
- var string = expectIdstring()
- return { type: 'DOCUMENTREF', string: string }
- }
- }
-
- function licenseRef () {
- if (read('LicenseRef-')) {
- var string = expectIdstring()
- return { type: 'LICENSEREF', string: string }
- }
- }
-
- function identifier () {
- var begin = index
- var string = idstring()
-
- if (licenses.indexOf(string) !== -1) {
- return {
- type: 'LICENSE',
- string: string
- }
- } else if (exceptions.indexOf(string) !== -1) {
- return {
- type: 'EXCEPTION',
- string: string
- }
- }
-
- index = begin
- }
-
- // Tries to read the next token. Returns `undefined` if no token is
- // recognized.
- function parseToken () {
- // Ordering matters
- return (
- operator() ||
- documentRef() ||
- licenseRef() ||
- identifier()
- )
- }
-
- var tokens = []
- while (hasMore()) {
- skipWhitespace()
- if (!hasMore()) {
- break
- }
-
- var token = parseToken()
- if (!token) {
- throw new Error('Unexpected `' + source[index] +
- '` at offset ' + index)
- }
-
- tokens.push(token)
- }
- return tokens
-}
diff --git a/node_modules/spdx-license-ids/README.md b/node_modules/spdx-license-ids/README.md
deleted file mode 100644
index 699514d..0000000
--- a/node_modules/spdx-license-ids/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# spdx-license-ids
-
-[![npm version](https://img.shields.io/npm/v/spdx-license-ids.svg)](https://www.npmjs.com/package/spdx-license-ids)
-[![Github Actions](https://action-badges.now.sh/shinnn/spdx-license-ids)](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/results/shinnn/spdx-license-ids)
-
-A list of [SPDX license](https://spdx.org/licenses/) identifiers
-
-## Installation
-
-[Download JSON directly](https://raw.githubusercontent.com/shinnn/spdx-license-ids/master/index.json), or [use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/):
-
-```
-npm install spdx-license-ids
-```
-
-## [Node.js](https://nodejs.org/) API
-
-### require('spdx-license-ids')
-
-Type: `string[]`
-
-All license IDs except for the currently deprecated ones.
-
-```javascript
-const ids = require('spdx-license-ids');
-//=> ['0BSD', 'AAL', 'ADSL', 'AFL-1.1', 'AFL-1.2', 'AFL-2.0', 'AFL-2.1', 'AFL-3.0', 'AGPL-1.0-only', ...]
-
-ids.includes('BSD-3-Clause'); //=> true
-ids.includes('CC-BY-1.0'); //=> true
-
-ids.includes('GPL-3.0'); //=> false
-```
-
-### require('spdx-license-ids/deprecated')
-
-Type: `string[]`
-
-Deprecated license IDs.
-
-```javascript
-const deprecatedIds = require('spdx-license-ids/deprecated');
-//=> ['AGPL-1.0', 'AGPL-3.0', 'GFDL-1.1', 'GFDL-1.2', 'GFDL-1.3', 'GPL-1.0', 'GPL-2.0', ...]
-
-deprecatedIds.includes('BSD-3-Clause'); //=> false
-deprecatedIds.includes('CC-BY-1.0'); //=> false
-
-deprecatedIds.includes('GPL-3.0'); //=> true
-```
-
-## License
-
-[Creative Commons Zero v1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/deed)
diff --git a/node_modules/spdx-license-ids/deprecated.json b/node_modules/spdx-license-ids/deprecated.json
deleted file mode 100644
index 1681f48..0000000
--- a/node_modules/spdx-license-ids/deprecated.json
+++ /dev/null
@@ -1,24 +0,0 @@
-[
- "AGPL-1.0",
- "AGPL-3.0",
- "GFDL-1.1",
- "GFDL-1.2",
- "GFDL-1.3",
- "GPL-1.0",
- "GPL-2.0",
- "GPL-2.0-with-GCC-exception",
- "GPL-2.0-with-autoconf-exception",
- "GPL-2.0-with-bison-exception",
- "GPL-2.0-with-classpath-exception",
- "GPL-2.0-with-font-exception",
- "GPL-3.0",
- "GPL-3.0-with-GCC-exception",
- "GPL-3.0-with-autoconf-exception",
- "LGPL-2.0",
- "LGPL-2.1",
- "LGPL-3.0",
- "Nunit",
- "StandardML-NJ",
- "eCos-2.0",
- "wxWindows"
-]
diff --git a/node_modules/spdx-license-ids/index.json b/node_modules/spdx-license-ids/index.json
deleted file mode 100644
index 5283c78..0000000
--- a/node_modules/spdx-license-ids/index.json
+++ /dev/null
@@ -1,370 +0,0 @@
-[
- "0BSD",
- "AAL",
- "ADSL",
- "AFL-1.1",
- "AFL-1.2",
- "AFL-2.0",
- "AFL-2.1",
- "AFL-3.0",
- "AGPL-1.0-only",
- "AGPL-1.0-or-later",
- "AGPL-3.0-only",
- "AGPL-3.0-or-later",
- "AMDPLPA",
- "AML",
- "AMPAS",
- "ANTLR-PD",
- "APAFML",
- "APL-1.0",
- "APSL-1.0",
- "APSL-1.1",
- "APSL-1.2",
- "APSL-2.0",
- "Abstyles",
- "Adobe-2006",
- "Adobe-Glyph",
- "Afmparse",
- "Aladdin",
- "Apache-1.0",
- "Apache-1.1",
- "Apache-2.0",
- "Artistic-1.0",
- "Artistic-1.0-Perl",
- "Artistic-1.0-cl8",
- "Artistic-2.0",
- "BSD-1-Clause",
- "BSD-2-Clause",
- "BSD-2-Clause-FreeBSD",
- "BSD-2-Clause-NetBSD",
- "BSD-2-Clause-Patent",
- "BSD-3-Clause",
- "BSD-3-Clause-Attribution",
- "BSD-3-Clause-Clear",
- "BSD-3-Clause-LBNL",
- "BSD-3-Clause-No-Nuclear-License",
- "BSD-3-Clause-No-Nuclear-License-2014",
- "BSD-3-Clause-No-Nuclear-Warranty",
- "BSD-3-Clause-Open-MPI",
- "BSD-4-Clause",
- "BSD-4-Clause-UC",
- "BSD-Protection",
- "BSD-Source-Code",
- "BSL-1.0",
- "Bahyph",
- "Barr",
- "Beerware",
- "BitTorrent-1.0",
- "BitTorrent-1.1",
- "BlueOak-1.0.0",
- "Borceux",
- "CATOSL-1.1",
- "CC-BY-1.0",
- "CC-BY-2.0",
- "CC-BY-2.5",
- "CC-BY-3.0",
- "CC-BY-4.0",
- "CC-BY-NC-1.0",
- "CC-BY-NC-2.0",
- "CC-BY-NC-2.5",
- "CC-BY-NC-3.0",
- "CC-BY-NC-4.0",
- "CC-BY-NC-ND-1.0",
- "CC-BY-NC-ND-2.0",
- "CC-BY-NC-ND-2.5",
- "CC-BY-NC-ND-3.0",
- "CC-BY-NC-ND-4.0",
- "CC-BY-NC-SA-1.0",
- "CC-BY-NC-SA-2.0",
- "CC-BY-NC-SA-2.5",
- "CC-BY-NC-SA-3.0",
- "CC-BY-NC-SA-4.0",
- "CC-BY-ND-1.0",
- "CC-BY-ND-2.0",
- "CC-BY-ND-2.5",
- "CC-BY-ND-3.0",
- "CC-BY-ND-4.0",
- "CC-BY-SA-1.0",
- "CC-BY-SA-2.0",
- "CC-BY-SA-2.5",
- "CC-BY-SA-3.0",
- "CC-BY-SA-4.0",
- "CC-PDDC",
- "CC0-1.0",
- "CDDL-1.0",
- "CDDL-1.1",
- "CDLA-Permissive-1.0",
- "CDLA-Sharing-1.0",
- "CECILL-1.0",
- "CECILL-1.1",
- "CECILL-2.0",
- "CECILL-2.1",
- "CECILL-B",
- "CECILL-C",
- "CERN-OHL-1.1",
- "CERN-OHL-1.2",
- "CNRI-Jython",
- "CNRI-Python",
- "CNRI-Python-GPL-Compatible",
- "CPAL-1.0",
- "CPL-1.0",
- "CPOL-1.02",
- "CUA-OPL-1.0",
- "Caldera",
- "ClArtistic",
- "Condor-1.1",
- "Crossword",
- "CrystalStacker",
- "Cube",
- "D-FSL-1.0",
- "DOC",
- "DSDP",
- "Dotseqn",
- "ECL-1.0",
- "ECL-2.0",
- "EFL-1.0",
- "EFL-2.0",
- "EPL-1.0",
- "EPL-2.0",
- "EUDatagrid",
- "EUPL-1.0",
- "EUPL-1.1",
- "EUPL-1.2",
- "Entessa",
- "ErlPL-1.1",
- "Eurosym",
- "FSFAP",
- "FSFUL",
- "FSFULLR",
- "FTL",
- "Fair",
- "Frameworx-1.0",
- "FreeImage",
- "GFDL-1.1-only",
- "GFDL-1.1-or-later",
- "GFDL-1.2-only",
- "GFDL-1.2-or-later",
- "GFDL-1.3-only",
- "GFDL-1.3-or-later",
- "GL2PS",
- "GPL-1.0-only",
- "GPL-1.0-or-later",
- "GPL-2.0-only",
- "GPL-2.0-or-later",
- "GPL-3.0-only",
- "GPL-3.0-or-later",
- "Giftware",
- "Glide",
- "Glulxe",
- "HPND",
- "HPND-sell-variant",
- "HaskellReport",
- "IBM-pibs",
- "ICU",
- "IJG",
- "IPA",
- "IPL-1.0",
- "ISC",
- "ImageMagick",
- "Imlib2",
- "Info-ZIP",
- "Intel",
- "Intel-ACPI",
- "Interbase-1.0",
- "JPNIC",
- "JSON",
- "JasPer-2.0",
- "LAL-1.2",
- "LAL-1.3",
- "LGPL-2.0-only",
- "LGPL-2.0-or-later",
- "LGPL-2.1-only",
- "LGPL-2.1-or-later",
- "LGPL-3.0-only",
- "LGPL-3.0-or-later",
- "LGPLLR",
- "LPL-1.0",
- "LPL-1.02",
- "LPPL-1.0",
- "LPPL-1.1",
- "LPPL-1.2",
- "LPPL-1.3a",
- "LPPL-1.3c",
- "Latex2e",
- "Leptonica",
- "LiLiQ-P-1.1",
- "LiLiQ-R-1.1",
- "LiLiQ-Rplus-1.1",
- "Libpng",
- "Linux-OpenIB",
- "MIT",
- "MIT-0",
- "MIT-CMU",
- "MIT-advertising",
- "MIT-enna",
- "MIT-feh",
- "MITNFA",
- "MPL-1.0",
- "MPL-1.1",
- "MPL-2.0",
- "MPL-2.0-no-copyleft-exception",
- "MS-PL",
- "MS-RL",
- "MTLL",
- "MakeIndex",
- "MirOS",
- "Motosoto",
- "Multics",
- "Mup",
- "NASA-1.3",
- "NBPL-1.0",
- "NCSA",
- "NGPL",
- "NLOD-1.0",
- "NLPL",
- "NOSL",
- "NPL-1.0",
- "NPL-1.1",
- "NPOSL-3.0",
- "NRL",
- "NTP",
- "Naumen",
- "Net-SNMP",
- "NetCDF",
- "Newsletr",
- "Nokia",
- "Noweb",
- "OCCT-PL",
- "OCLC-2.0",
- "ODC-By-1.0",
- "ODbL-1.0",
- "OFL-1.0",
- "OFL-1.1",
- "OGL-UK-1.0",
- "OGL-UK-2.0",
- "OGL-UK-3.0",
- "OGTSL",
- "OLDAP-1.1",
- "OLDAP-1.2",
- "OLDAP-1.3",
- "OLDAP-1.4",
- "OLDAP-2.0",
- "OLDAP-2.0.1",
- "OLDAP-2.1",
- "OLDAP-2.2",
- "OLDAP-2.2.1",
- "OLDAP-2.2.2",
- "OLDAP-2.3",
- "OLDAP-2.4",
- "OLDAP-2.5",
- "OLDAP-2.6",
- "OLDAP-2.7",
- "OLDAP-2.8",
- "OML",
- "OPL-1.0",
- "OSET-PL-2.1",
- "OSL-1.0",
- "OSL-1.1",
- "OSL-2.0",
- "OSL-2.1",
- "OSL-3.0",
- "OpenSSL",
- "PDDL-1.0",
- "PHP-3.0",
- "PHP-3.01",
- "Parity-6.0.0",
- "Plexus",
- "PostgreSQL",
- "Python-2.0",
- "QPL-1.0",
- "Qhull",
- "RHeCos-1.1",
- "RPL-1.1",
- "RPL-1.5",
- "RPSL-1.0",
- "RSA-MD",
- "RSCPL",
- "Rdisc",
- "Ruby",
- "SAX-PD",
- "SCEA",
- "SGI-B-1.0",
- "SGI-B-1.1",
- "SGI-B-2.0",
- "SHL-0.5",
- "SHL-0.51",
- "SISSL",
- "SISSL-1.2",
- "SMLNJ",
- "SMPPL",
- "SNIA",
- "SPL-1.0",
- "SSPL-1.0",
- "SWL",
- "Saxpath",
- "Sendmail",
- "Sendmail-8.23",
- "SimPL-2.0",
- "Sleepycat",
- "Spencer-86",
- "Spencer-94",
- "Spencer-99",
- "SugarCRM-1.1.3",
- "TAPR-OHL-1.0",
- "TCL",
- "TCP-wrappers",
- "TMate",
- "TORQUE-1.1",
- "TOSL",
- "TU-Berlin-1.0",
- "TU-Berlin-2.0",
- "UPL-1.0",
- "Unicode-DFS-2015",
- "Unicode-DFS-2016",
- "Unicode-TOU",
- "Unlicense",
- "VOSTROM",
- "VSL-1.0",
- "Vim",
- "W3C",
- "W3C-19980720",
- "W3C-20150513",
- "WTFPL",
- "Watcom-1.0",
- "Wsuipa",
- "X11",
- "XFree86-1.1",
- "XSkat",
- "Xerox",
- "Xnet",
- "YPL-1.0",
- "YPL-1.1",
- "ZPL-1.1",
- "ZPL-2.0",
- "ZPL-2.1",
- "Zed",
- "Zend-2.0",
- "Zimbra-1.3",
- "Zimbra-1.4",
- "Zlib",
- "blessing",
- "bzip2-1.0.5",
- "bzip2-1.0.6",
- "copyleft-next-0.3.0",
- "copyleft-next-0.3.1",
- "curl",
- "diffmark",
- "dvipdfm",
- "eGenix",
- "gSOAP-1.3b",
- "gnuplot",
- "iMatix",
- "libpng-2.0",
- "libtiff",
- "mpich2",
- "psfrag",
- "psutils",
- "xinetd",
- "xpp",
- "zlib-acknowledgement"
-]
diff --git a/node_modules/spdx-license-ids/package.json b/node_modules/spdx-license-ids/package.json
deleted file mode 100644
index 995b9f0..0000000
--- a/node_modules/spdx-license-ids/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "spdx-license-ids@^3.0.0",
- "_id": "spdx-license-ids@3.0.5",
- "_inBundle": false,
- "_integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==",
- "_location": "/spdx-license-ids",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "spdx-license-ids@^3.0.0",
- "name": "spdx-license-ids",
- "escapedName": "spdx-license-ids",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/spdx-correct",
- "/spdx-expression-parse"
- ],
- "_resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
- "_shasum": "3694b5804567a458d3c8045842a6358632f62654",
- "_spec": "spdx-license-ids@^3.0.0",
- "_where": "/Users/gebauer/Workspace/hugo-dev-theme/themes/ag/node_modules/spdx-correct",
- "author": {
- "name": "Shinnosuke Watanabe",
- "url": "https://github.com/shinnn"
- },
- "bugs": {
- "url": "https://github.com/shinnn/spdx-license-ids/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "A list of SPDX license identifiers",
- "devDependencies": {
- "@shinnn/eslint-config": "^6.8.7",
- "chalk": "^2.4.1",
- "eslint": "^5.10.0",
- "get-spdx-license-ids": "^2.1.0",
- "rmfr": "^2.0.0",
- "tape": "^4.9.1"
- },
- "eslintConfig": {
- "extends": "@shinnn"
- },
- "files": [
- "deprecated.json",
- "index.json"
- ],
- "homepage": "https://github.com/shinnn/spdx-license-ids#readme",
- "keywords": [
- "spdx",
- "license",
- "licenses",
- "id",
- "identifier",
- "identifiers",
- "json",
- "array",
- "oss"
- ],
- "license": "CC0-1.0",
- "name": "spdx-license-ids",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/shinnn/spdx-license-ids.git"
- },
- "scripts": {
- "build": "node build.js",
- "pretest": "eslint .",
- "test": "node test.js"
- },
- "version": "3.0.5"
-}
diff --git a/node_modules/sshpk/.npmignore b/node_modules/sshpk/.npmignore
deleted file mode 100644
index 8000b59..0000000
--- a/node_modules/sshpk/.npmignore
+++ /dev/null
@@ -1,9 +0,0 @@
-.gitmodules
-deps
-docs
-Makefile
-node_modules
-test
-tools
-coverage
-man/src
diff --git a/node_modules/sshpk/.travis.yml b/node_modules/sshpk/.travis.yml
deleted file mode 100644
index c3394c2..0000000
--- a/node_modules/sshpk/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-language: node_js
-node_js:
- - "5.10"
- - "4.4"
- - "4.1"
- - "0.12"
- - "0.10"
-before_install:
- - "make check"
-after_success:
- - '[ "${TRAVIS_NODE_VERSION}" = "4.4" ] && make codecovio'
diff --git a/node_modules/sshpk/LICENSE b/node_modules/sshpk/LICENSE
deleted file mode 100644
index f6d947d..0000000
--- a/node_modules/sshpk/LICENSE
+++ /dev/null
@@ -1,18 +0,0 @@
-Copyright Joyent, Inc. All rights reserved.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
diff --git a/node_modules/sshpk/README.md b/node_modules/sshpk/README.md
deleted file mode 100644
index 5740f74..0000000
--- a/node_modules/sshpk/README.md
+++ /dev/null
@@ -1,804 +0,0 @@
-sshpk
-=========
-
-Parse, convert, fingerprint and use SSH keys (both public and private) in pure
-node -- no `ssh-keygen` or other external dependencies.
-
-Supports RSA, DSA, ECDSA (nistp-\*) and ED25519 key types, in PEM (PKCS#1,
-PKCS#8) and OpenSSH formats.
-
-This library has been extracted from
-[`node-http-signature`](https://github.com/joyent/node-http-signature)
-(work by [Mark Cavage](https://github.com/mcavage) and
-[Dave Eddy](https://github.com/bahamas10)) and
-[`node-ssh-fingerprint`](https://github.com/bahamas10/node-ssh-fingerprint)
-(work by Dave Eddy), with additions (including ECDSA support) by
-[Alex Wilson](https://github.com/arekinath).
-
-Install
--------
-
-```
-npm install sshpk
-```
-
-Examples
---------
-
-```js
-var sshpk = require('sshpk');
-
-var fs = require('fs');
-
-/* Read in an OpenSSH-format public key */
-var keyPub = fs.readFileSync('id_rsa.pub');
-var key = sshpk.parseKey(keyPub, 'ssh');
-
-/* Get metadata about the key */
-console.log('type => %s', key.type);
-console.log('size => %d bits', key.size);
-console.log('comment => %s', key.comment);
-
-/* Compute key fingerprints, in new OpenSSH (>6.7) format, and old MD5 */
-console.log('fingerprint => %s', key.fingerprint().toString());
-console.log('old-style fingerprint => %s', key.fingerprint('md5').toString());
-```
-
-Example output:
-
-```
-type => rsa
-size => 2048 bits
-comment => foo@foo.com
-fingerprint => SHA256:PYC9kPVC6J873CSIbfp0LwYeczP/W4ffObNCuDJ1u5w
-old-style fingerprint => a0:c8:ad:6c:32:9a:32:fa:59:cc:a9:8c:0a:0d:6e:bd
-```
-
-More examples: converting between formats:
-
-```js
-/* Read in a PEM public key */
-var keyPem = fs.readFileSync('id_rsa.pem');
-var key = sshpk.parseKey(keyPem, 'pem');
-
-/* Convert to PEM PKCS#8 public key format */
-var pemBuf = key.toBuffer('pkcs8');
-
-/* Convert to SSH public key format (and return as a string) */
-var sshKey = key.toString('ssh');
-```
-
-Signing and verifying:
-
-```js
-/* Read in an OpenSSH/PEM *private* key */
-var keyPriv = fs.readFileSync('id_ecdsa');
-var key = sshpk.parsePrivateKey(keyPriv, 'pem');
-
-var data = 'some data';
-
-/* Sign some data with the key */
-var s = key.createSign('sha1');
-s.update(data);
-var signature = s.sign();
-
-/* Now load the public key (could also use just key.toPublic()) */
-var keyPub = fs.readFileSync('id_ecdsa.pub');
-key = sshpk.parseKey(keyPub, 'ssh');
-
-/* Make a crypto.Verifier with this key */
-var v = key.createVerify('sha1');
-v.update(data);
-var valid = v.verify(signature);
-/* => true! */
-```
-
-Matching fingerprints with keys:
-
-```js
-var fp = sshpk.parseFingerprint('SHA256:PYC9kPVC6J873CSIbfp0LwYeczP/W4ffObNCuDJ1u5w');
-
-var keys = [sshpk.parseKey(...), sshpk.parseKey(...), ...];
-
-keys.forEach(function (key) {
- if (fp.matches(key))
- console.log('found it!');
-});
-```
-
-Usage
------
-
-## Public keys
-
-### `parseKey(data[, format = 'auto'[, options]])`
-
-Parses a key from a given data format and returns a new `Key` object.
-
-Parameters
-
-- `data` -- Either a Buffer or String, containing the key
-- `format` -- String name of format to use, valid options are:
- - `auto`: choose automatically from all below
- - `pem`: supports both PKCS#1 and PKCS#8
- - `ssh`: standard OpenSSH format,
- - `pkcs1`, `pkcs8`: variants of `pem`
- - `rfc4253`: raw OpenSSH wire format
- - `openssh`: new post-OpenSSH 6.5 internal format, produced by
- `ssh-keygen -o`
- - `dnssec`: `.key` file format output by `dnssec-keygen` etc
- - `putty`: the PuTTY `.ppk` file format (supports truncated variant without
- all the lines from `Private-Lines:` onwards)
-- `options` -- Optional Object, extra options, with keys:
- - `filename` -- Optional String, name for the key being parsed
- (eg. the filename that was opened). Used to generate
- Error messages
- - `passphrase` -- Optional String, encryption passphrase used to decrypt an
- encrypted PEM file
-
-### `Key.isKey(obj)`
-
-Returns `true` if the given object is a valid `Key` object created by a version
-of `sshpk` compatible with this one.
-
-Parameters
-
-- `obj` -- Object to identify
-
-### `Key#type`
-
-String, the type of key. Valid options are `rsa`, `dsa`, `ecdsa`.
-
-### `Key#size`
-
-Integer, "size" of the key in bits. For RSA/DSA this is the size of the modulus;
-for ECDSA this is the bit size of the curve in use.
-
-### `Key#comment`
-
-Optional string, a key comment used by some formats (eg the `ssh` format).
-
-### `Key#curve`
-
-Only present if `this.type === 'ecdsa'`, string containing the name of the
-named curve used with this key. Possible values include `nistp256`, `nistp384`
-and `nistp521`.
-
-### `Key#toBuffer([format = 'ssh'])`
-
-Convert the key into a given data format and return the serialized key as
-a Buffer.
-
-Parameters
-
-- `format` -- String name of format to use, for valid options see `parseKey()`
-
-### `Key#toString([format = 'ssh])`
-
-Same as `this.toBuffer(format).toString()`.
-
-### `Key#fingerprint([algorithm = 'sha256'[, hashType = 'ssh']])`
-
-Creates a new `Fingerprint` object representing this Key's fingerprint.
-
-Parameters
-
-- `algorithm` -- String name of hash algorithm to use, valid options are `md5`,
- `sha1`, `sha256`, `sha384`, `sha512`
-- `hashType` -- String name of fingerprint hash type to use, valid options are
- `ssh` (the type of fingerprint used by OpenSSH, e.g. in
- `ssh-keygen`), `spki` (used by HPKP, some OpenSSL applications)
-
-### `Key#createVerify([hashAlgorithm])`
-
-Creates a `crypto.Verifier` specialized to use this Key (and the correct public
-key algorithm to match it). The returned Verifier has the same API as a regular
-one, except that the `verify()` function takes only the target signature as an
-argument.
-
-Parameters
-
-- `hashAlgorithm` -- optional String name of hash algorithm to use, any
- supported by OpenSSL are valid, usually including
- `sha1`, `sha256`.
-
-`v.verify(signature[, format])` Parameters
-
-- `signature` -- either a Signature object, or a Buffer or String
-- `format` -- optional String, name of format to interpret given String with.
- Not valid if `signature` is a Signature or Buffer.
-
-### `Key#createDiffieHellman()`
-### `Key#createDH()`
-
-Creates a Diffie-Hellman key exchange object initialized with this key and all
-necessary parameters. This has the same API as a `crypto.DiffieHellman`
-instance, except that functions take `Key` and `PrivateKey` objects as
-arguments, and return them where indicated for.
-
-This is only valid for keys belonging to a cryptosystem that supports DHE
-or a close analogue (i.e. `dsa`, `ecdsa` and `curve25519` keys). An attempt
-to call this function on other keys will yield an `Error`.
-
-## Private keys
-
-### `parsePrivateKey(data[, format = 'auto'[, options]])`
-
-Parses a private key from a given data format and returns a new
-`PrivateKey` object.
-
-Parameters
-
-- `data` -- Either a Buffer or String, containing the key
-- `format` -- String name of format to use, valid options are:
- - `auto`: choose automatically from all below
- - `pem`: supports both PKCS#1 and PKCS#8
- - `ssh`, `openssh`: new post-OpenSSH 6.5 internal format, produced by
- `ssh-keygen -o`
- - `pkcs1`, `pkcs8`: variants of `pem`
- - `rfc4253`: raw OpenSSH wire format
- - `dnssec`: `.private` format output by `dnssec-keygen` etc.
-- `options` -- Optional Object, extra options, with keys:
- - `filename` -- Optional String, name for the key being parsed
- (eg. the filename that was opened). Used to generate
- Error messages
- - `passphrase` -- Optional String, encryption passphrase used to decrypt an
- encrypted PEM file
-
-### `generatePrivateKey(type[, options])`
-
-Generates a new private key of a certain key type, from random data.
-
-Parameters
-
-- `type` -- String, type of key to generate. Currently supported are `'ecdsa'`
- and `'ed25519'`
-- `options` -- optional Object, with keys:
- - `curve` -- optional String, for `'ecdsa'` keys, specifies the curve to use.
- If ECDSA is specified and this option is not given, defaults to
- using `'nistp256'`.
-
-### `PrivateKey.isPrivateKey(obj)`
-
-Returns `true` if the given object is a valid `PrivateKey` object created by a
-version of `sshpk` compatible with this one.
-
-Parameters
-
-- `obj` -- Object to identify
-
-### `PrivateKey#type`
-
-String, the type of key. Valid options are `rsa`, `dsa`, `ecdsa`.
-
-### `PrivateKey#size`
-
-Integer, "size" of the key in bits. For RSA/DSA this is the size of the modulus;
-for ECDSA this is the bit size of the curve in use.
-
-### `PrivateKey#curve`
-
-Only present if `this.type === 'ecdsa'`, string containing the name of the
-named curve used with this key. Possible values include `nistp256`, `nistp384`
-and `nistp521`.
-
-### `PrivateKey#toBuffer([format = 'pkcs1'])`
-
-Convert the key into a given data format and return the serialized key as
-a Buffer.
-
-Parameters
-
-- `format` -- String name of format to use, valid options are listed under
- `parsePrivateKey`. Note that ED25519 keys default to `openssh`
- format instead (as they have no `pkcs1` representation).
-
-### `PrivateKey#toString([format = 'pkcs1'])`
-
-Same as `this.toBuffer(format).toString()`.
-
-### `PrivateKey#toPublic()`
-
-Extract just the public part of this private key, and return it as a `Key`
-object.
-
-### `PrivateKey#fingerprint([algorithm = 'sha256'])`
-
-Same as `this.toPublic().fingerprint()`.
-
-### `PrivateKey#createVerify([hashAlgorithm])`
-
-Same as `this.toPublic().createVerify()`.
-
-### `PrivateKey#createSign([hashAlgorithm])`
-
-Creates a `crypto.Sign` specialized to use this PrivateKey (and the correct
-key algorithm to match it). The returned Signer has the same API as a regular
-one, except that the `sign()` function takes no arguments, and returns a
-`Signature` object.
-
-Parameters
-
-- `hashAlgorithm` -- optional String name of hash algorithm to use, any
- supported by OpenSSL are valid, usually including
- `sha1`, `sha256`.
-
-`v.sign()` Parameters
-
-- none
-
-### `PrivateKey#derive(newType)`
-
-Derives a related key of type `newType` from this key. Currently this is
-only supported to change between `ed25519` and `curve25519` keys which are
-stored with the same private key (but usually distinct public keys in order
-to avoid degenerate keys that lead to a weak Diffie-Hellman exchange).
-
-Parameters
-
-- `newType` -- String, type of key to derive, either `ed25519` or `curve25519`
-
-## Fingerprints
-
-### `parseFingerprint(fingerprint[, options])`
-
-Pre-parses a fingerprint, creating a `Fingerprint` object that can be used to
-quickly locate a key by using the `Fingerprint#matches` function.
-
-Parameters
-
-- `fingerprint` -- String, the fingerprint value, in any supported format
-- `options` -- Optional Object, with properties:
- - `algorithms` -- Array of strings, names of hash algorithms to limit
- support to. If `fingerprint` uses a hash algorithm not on
- this list, throws `InvalidAlgorithmError`.
- - `hashType` -- String, the type of hash the fingerprint uses, either `ssh`
- or `spki` (normally auto-detected based on the format, but
- can be overridden)
- - `type` -- String, the entity this fingerprint identifies, either `key` or
- `certificate`
-
-### `Fingerprint.isFingerprint(obj)`
-
-Returns `true` if the given object is a valid `Fingerprint` object created by a
-version of `sshpk` compatible with this one.
-
-Parameters
-
-- `obj` -- Object to identify
-
-### `Fingerprint#toString([format])`
-
-Returns a fingerprint as a string, in the given format.
-
-Parameters
-
-- `format` -- Optional String, format to use, valid options are `hex` and
- `base64`. If this `Fingerprint` uses the `md5` algorithm, the
- default format is `hex`. Otherwise, the default is `base64`.
-
-### `Fingerprint#matches(keyOrCertificate)`
-
-Verifies whether or not this `Fingerprint` matches a given `Key` or
-`Certificate`. This function uses double-hashing to avoid leaking timing
-information. Returns a boolean.
-
-Note that a `Key`-type Fingerprint will always return `false` if asked to match
-a `Certificate` and vice versa.
-
-Parameters
-
-- `keyOrCertificate` -- a `Key` object or `Certificate` object, the entity to
- match this fingerprint against
-
-## Signatures
-
-### `parseSignature(signature, algorithm, format)`
-
-Parses a signature in a given format, creating a `Signature` object. Useful
-for converting between the SSH and ASN.1 (PKCS/OpenSSL) signature formats, and
-also returned as output from `PrivateKey#createSign().sign()`.
-
-A Signature object can also be passed to a verifier produced by
-`Key#createVerify()` and it will automatically be converted internally into the
-correct format for verification.
-
-Parameters
-
-- `signature` -- a Buffer (binary) or String (base64), data of the actual
- signature in the given format
-- `algorithm` -- a String, name of the algorithm to be used, possible values
- are `rsa`, `dsa`, `ecdsa`
-- `format` -- a String, either `asn1` or `ssh`
-
-### `Signature.isSignature(obj)`
-
-Returns `true` if the given object is a valid `Signature` object created by a
-version of `sshpk` compatible with this one.
-
-Parameters
-
-- `obj` -- Object to identify
-
-### `Signature#toBuffer([format = 'asn1'])`
-
-Converts a Signature to the given format and returns it as a Buffer.
-
-Parameters
-
-- `format` -- a String, either `asn1` or `ssh`
-
-### `Signature#toString([format = 'asn1'])`
-
-Same as `this.toBuffer(format).toString('base64')`.
-
-## Certificates
-
-`sshpk` includes basic support for parsing certificates in X.509 (PEM) format
-and the OpenSSH certificate format. This feature is intended to be used mainly
-to access basic metadata about certificates, extract public keys from them, and
-also to generate simple self-signed certificates from an existing key.
-
-Notably, there is no implementation of CA chain-of-trust verification, and only
-very minimal support for key usage restrictions. Please do the security world
-a favour, and DO NOT use this code for certificate verification in the
-traditional X.509 CA chain style.
-
-### `parseCertificate(data, format)`
-
-Parameters
-
- - `data` -- a Buffer or String
- - `format` -- a String, format to use, one of `'openssh'`, `'pem'` (X.509 in a
- PEM wrapper), or `'x509'` (raw DER encoded)
-
-### `createSelfSignedCertificate(subject, privateKey[, options])`
-
-Parameters
-
- - `subject` -- an Identity, the subject of the certificate
- - `privateKey` -- a PrivateKey, the key of the subject: will be used both to be
- placed in the certificate and also to sign it (since this is
- a self-signed certificate)
- - `options` -- optional Object, with keys:
- - `lifetime` -- optional Number, lifetime of the certificate from now in
- seconds
- - `validFrom`, `validUntil` -- optional Dates, beginning and end of
- certificate validity period. If given
- `lifetime` will be ignored
- - `serial` -- optional Buffer, the serial number of the certificate
- - `purposes` -- optional Array of String, X.509 key usage restrictions
-
-### `createCertificate(subject, key, issuer, issuerKey[, options])`
-
-Parameters
-
- - `subject` -- an Identity, the subject of the certificate
- - `key` -- a Key, the public key of the subject
- - `issuer` -- an Identity, the issuer of the certificate who will sign it
- - `issuerKey` -- a PrivateKey, the issuer's private key for signing
- - `options` -- optional Object, with keys:
- - `lifetime` -- optional Number, lifetime of the certificate from now in
- seconds
- - `validFrom`, `validUntil` -- optional Dates, beginning and end of
- certificate validity period. If given
- `lifetime` will be ignored
- - `serial` -- optional Buffer, the serial number of the certificate
- - `purposes` -- optional Array of String, X.509 key usage restrictions
-
-### `Certificate#subjects`
-
-Array of `Identity` instances describing the subject of this certificate.
-
-### `Certificate#issuer`
-
-The `Identity` of the Certificate's issuer (signer).
-
-### `Certificate#subjectKey`
-
-The public key of the subject of the certificate, as a `Key` instance.
-
-### `Certificate#issuerKey`
-
-The public key of the signing issuer of this certificate, as a `Key` instance.
-May be `undefined` if the issuer's key is unknown (e.g. on an X509 certificate).
-
-### `Certificate#serial`
-
-The serial number of the certificate. As this is normally a 64-bit or wider
-integer, it is returned as a Buffer.
-
-### `Certificate#purposes`
-
-Array of Strings indicating the X.509 key usage purposes that this certificate
-is valid for. The possible strings at the moment are:
-
- * `'signature'` -- key can be used for digital signatures
- * `'identity'` -- key can be used to attest about the identity of the signer
- (X.509 calls this `nonRepudiation`)
- * `'codeSigning'` -- key can be used to sign executable code
- * `'keyEncryption'` -- key can be used to encrypt other keys
- * `'encryption'` -- key can be used to encrypt data (only applies for RSA)
- * `'keyAgreement'` -- key can be used for key exchange protocols such as
- Diffie-Hellman
- * `'ca'` -- key can be used to sign other certificates (is a Certificate
- Authority)
- * `'crl'` -- key can be used to sign Certificate Revocation Lists (CRLs)
-
-### `Certificate#getExtension(nameOrOid)`
-
-Retrieves information about a certificate extension, if present, or returns
-`undefined` if not. The string argument `nameOrOid` should be either the OID
-(for X509 extensions) or the name (for OpenSSH extensions) of the extension
-to retrieve.
-
-The object returned will have the following properties:
-
- * `format` -- String, set to either `'x509'` or `'openssh'`
- * `name` or `oid` -- String, only one set based on value of `format`
- * `data` -- Buffer, the raw data inside the extension
-
-### `Certificate#getExtensions()`
-
-Returns an Array of all present certificate extensions, in the same manner and
-format as `getExtension()`.
-
-### `Certificate#isExpired([when])`
-
-Tests whether the Certificate is currently expired (i.e. the `validFrom` and
-`validUntil` dates specify a range of time that does not include the current
-time).
-
-Parameters
-
- - `when` -- optional Date, if specified, tests whether the Certificate was or
- will be expired at the specified time instead of now
-
-Returns a Boolean.
-
-### `Certificate#isSignedByKey(key)`
-
-Tests whether the Certificate was validly signed by the given (public) Key.
-
-Parameters
-
- - `key` -- a Key instance
-
-Returns a Boolean.
-
-### `Certificate#isSignedBy(certificate)`
-
-Tests whether this Certificate was validly signed by the subject of the given
-certificate. Also tests that the issuer Identity of this Certificate and the
-subject Identity of the other Certificate are equivalent.
-
-Parameters
-
- - `certificate` -- another Certificate instance
-
-Returns a Boolean.
-
-### `Certificate#fingerprint([hashAlgo])`
-
-Returns the X509-style fingerprint of the entire certificate (as a Fingerprint
-instance). This matches what a web-browser or similar would display as the
-certificate fingerprint and should not be confused with the fingerprint of the
-subject's public key.
-
-Parameters
-
- - `hashAlgo` -- an optional String, any hash function name
-
-### `Certificate#toBuffer([format])`
-
-Serializes the Certificate to a Buffer and returns it.
-
-Parameters
-
- - `format` -- an optional String, output format, one of `'openssh'`, `'pem'` or
- `'x509'`. Defaults to `'x509'`.
-
-Returns a Buffer.
-
-### `Certificate#toString([format])`
-
- - `format` -- an optional String, output format, one of `'openssh'`, `'pem'` or
- `'x509'`. Defaults to `'pem'`.
-
-Returns a String.
-
-## Certificate identities
-
-### `identityForHost(hostname)`
-
-Constructs a host-type Identity for a given hostname.
-
-Parameters
-
- - `hostname` -- the fully qualified DNS name of the host
-
-Returns an Identity instance.
-
-### `identityForUser(uid)`
-
-Constructs a user-type Identity for a given UID.
-
-Parameters
-
- - `uid` -- a String, user identifier (login name)
-
-Returns an Identity instance.
-
-### `identityForEmail(email)`
-
-Constructs an email-type Identity for a given email address.
-
-Parameters
-
- - `email` -- a String, email address
-
-Returns an Identity instance.
-
-### `identityFromDN(dn)`
-
-Parses an LDAP-style DN string (e.g. `'CN=foo, C=US'`) and turns it into an
-Identity instance.
-
-Parameters
-
- - `dn` -- a String
-
-Returns an Identity instance.
-
-### `identityFromArray(arr)`
-
-Constructs an Identity from an array of DN components (see `Identity#toArray()`
-for the format).
-
-Parameters
-
- - `arr` -- an Array of Objects, DN components with `name` and `value`
-
-Returns an Identity instance.
-
-
-Supported attributes in DNs:
-
-| Attribute name | OID |
-| -------------- | --- |
-| `cn` | `2.5.4.3` |
-| `o` | `2.5.4.10` |
-| `ou` | `2.5.4.11` |
-| `l` | `2.5.4.7` |
-| `s` | `2.5.4.8` |
-| `c` | `2.5.4.6` |
-| `sn` | `2.5.4.4` |
-| `postalCode` | `2.5.4.17` |
-| `serialNumber` | `2.5.4.5` |
-| `street` | `2.5.4.9` |
-| `x500UniqueIdentifier` | `2.5.4.45` |
-| `role` | `2.5.4.72` |
-| `telephoneNumber` | `2.5.4.20` |
-| `description` | `2.5.4.13` |
-| `dc` | `0.9.2342.19200300.100.1.25` |
-| `uid` | `0.9.2342.19200300.100.1.1` |
-| `mail` | `0.9.2342.19200300.100.1.3` |
-| `title` | `2.5.4.12` |
-| `gn` | `2.5.4.42` |
-| `initials` | `2.5.4.43` |
-| `pseudonym` | `2.5.4.65` |
-
-### `Identity#toString()`
-
-Returns the identity as an LDAP-style DN string.
-e.g. `'CN=foo, O=bar corp, C=us'`
-
-### `Identity#type`
-
-The type of identity. One of `'host'`, `'user'`, `'email'` or `'unknown'`
-
-### `Identity#hostname`
-### `Identity#uid`
-### `Identity#email`
-
-Set when `type` is `'host'`, `'user'`, or `'email'`, respectively. Strings.
-
-### `Identity#cn`
-
-The value of the first `CN=` in the DN, if any. It's probably better to use
-the `#get()` method instead of this property.
-
-### `Identity#get(name[, asArray])`
-
-Returns the value of a named attribute in the Identity DN. If there is no
-attribute of the given name, returns `undefined`. If multiple components
-of the DN contain an attribute of this name, an exception is thrown unless
-the `asArray` argument is given as `true` -- then they will be returned as
-an Array in the same order they appear in the DN.
-
-Parameters
-
- - `name` -- a String
- - `asArray` -- an optional Boolean
-
-### `Identity#toArray()`
-
-Returns the Identity as an Array of DN component objects. This looks like:
-
-```js
-[ {
- "name": "cn",
- "value": "Joe Bloggs"
-},
-{
- "name": "o",
- "value": "Organisation Ltd"
-} ]
-```
-
-Each object has a `name` and a `value` property. The returned objects may be
-safely modified.
-
-Errors
-------
-
-### `InvalidAlgorithmError`
-
-The specified algorithm is not valid, either because it is not supported, or
-because it was not included on a list of allowed algorithms.
-
-Thrown by `Fingerprint.parse`, `Key#fingerprint`.
-
-Properties
-
-- `algorithm` -- the algorithm that could not be validated
-
-### `FingerprintFormatError`
-
-The fingerprint string given could not be parsed as a supported fingerprint
-format, or the specified fingerprint format is invalid.
-
-Thrown by `Fingerprint.parse`, `Fingerprint#toString`.
-
-Properties
-
-- `fingerprint` -- if caused by a fingerprint, the string value given
-- `format` -- if caused by an invalid format specification, the string value given
-
-### `KeyParseError`
-
-The key data given could not be parsed as a valid key.
-
-Properties
-
-- `keyName` -- `filename` that was given to `parseKey`
-- `format` -- the `format` that was trying to parse the key (see `parseKey`)
-- `innerErr` -- the inner Error thrown by the format parser
-
-### `KeyEncryptedError`
-
-The key is encrypted with a symmetric key (ie, it is password protected). The
-parsing operation would succeed if it was given the `passphrase` option.
-
-Properties
-
-- `keyName` -- `filename` that was given to `parseKey`
-- `format` -- the `format` that was trying to parse the key (currently can only
- be `"pem"`)
-
-### `CertificateParseError`
-
-The certificate data given could not be parsed as a valid certificate.
-
-Properties
-
-- `certName` -- `filename` that was given to `parseCertificate`
-- `format` -- the `format` that was trying to parse the key
- (see `parseCertificate`)
-- `innerErr` -- the inner Error thrown by the format parser
-
-Friends of sshpk
-----------------
-
- * [`sshpk-agent`](https://github.com/arekinath/node-sshpk-agent) is a library
- for speaking the `ssh-agent` protocol from node.js, which uses `sshpk`
diff --git a/node_modules/sshpk/bin/sshpk-conv b/node_modules/sshpk/bin/sshpk-conv
deleted file mode 100755
index e839ede..0000000
--- a/node_modules/sshpk/bin/sshpk-conv
+++ /dev/null
@@ -1,243 +0,0 @@
-#!/usr/bin/env node
-// -*- mode: js -*-
-// vim: set filetype=javascript :
-// Copyright 2018 Joyent, Inc. All rights reserved.
-
-var dashdash = require('dashdash');
-var sshpk = require('../lib/index');
-var fs = require('fs');
-var path = require('path');
-var tty = require('tty');
-var readline = require('readline');
-var getPassword = require('getpass').getPass;
-
-var options = [
- {
- names: ['outformat', 't'],
- type: 'string',
- help: 'Output format'
- },
- {
- names: ['informat', 'T'],
- type: 'string',
- help: 'Input format'
- },
- {
- names: ['file', 'f'],
- type: 'string',
- help: 'Input file name (default stdin)'
- },
- {
- names: ['out', 'o'],
- type: 'string',
- help: 'Output file name (default stdout)'
- },
- {
- names: ['private', 'p'],
- type: 'bool',
- help: 'Produce a private key as output'
- },
- {
- names: ['derive', 'd'],
- type: 'string',
- help: 'Output a new key derived from this one, with given algo'
- },
- {
- names: ['identify', 'i'],
- type: 'bool',
- help: 'Print key metadata instead of converting'
- },
- {
- names: ['fingerprint', 'F'],
- type: 'bool',
- help: 'Output key fingerprint'
- },
- {
- names: ['hash', 'H'],
- type: 'string',
- help: 'Hash function to use for key fingeprint with -F'
- },
- {
- names: ['spki', 's'],
- type: 'bool',
- help: 'With -F, generates an SPKI fingerprint instead of SSH'
- },
- {
- names: ['comment', 'c'],
- type: 'string',
- help: 'Set key comment, if output format supports'
- },
- {
- names: ['help', 'h'],
- type: 'bool',
- help: 'Shows this help text'
- }
-];
-
-if (require.main === module) {
- var parser = dashdash.createParser({
- options: options
- });
-
- try {
- var opts = parser.parse(process.argv);
- } catch (e) {
- console.error('sshpk-conv: error: %s', e.message);
- process.exit(1);
- }
-
- if (opts.help || opts._args.length > 1) {
- var help = parser.help({}).trimRight();
- console.error('sshpk-conv: converts between SSH key formats\n');
- console.error(help);
- console.error('\navailable key formats:');
- console.error(' - pem, pkcs1 eg id_rsa');
- console.error(' - ssh eg id_rsa.pub');
- console.error(' - pkcs8 format you want for openssl');
- console.error(' - openssh like output of ssh-keygen -o');
- console.error(' - rfc4253 raw OpenSSH wire format');
- console.error(' - dnssec dnssec-keygen format');
- console.error(' - putty PuTTY ppk format');
- console.error('\navailable fingerprint formats:');
- console.error(' - hex colon-separated hex for SSH');
- console.error(' straight hex for SPKI');
- console.error(' - base64 SHA256:* format from OpenSSH');
- process.exit(1);
- }
-
- /*
- * Key derivation can only be done on private keys, so use of the -d
- * option necessarily implies -p.
- */
- if (opts.derive)
- opts.private = true;
-
- var inFile = process.stdin;
- var inFileName = 'stdin';
-
- var inFilePath;
- if (opts.file) {
- inFilePath = opts.file;
- } else if (opts._args.length === 1) {
- inFilePath = opts._args[0];
- }
-
- if (inFilePath)
- inFileName = path.basename(inFilePath);
-
- try {
- if (inFilePath) {
- fs.accessSync(inFilePath, fs.R_OK);
- inFile = fs.createReadStream(inFilePath);
- }
- } catch (e) {
- ifError(e, 'error opening input file');
- }
-
- var outFile = process.stdout;
-
- try {
- if (opts.out && !opts.identify) {
- fs.accessSync(path.dirname(opts.out), fs.W_OK);
- outFile = fs.createWriteStream(opts.out);
- }
- } catch (e) {
- ifError(e, 'error opening output file');
- }
-
- var bufs = [];
- inFile.on('readable', function () {
- var data;
- while ((data = inFile.read()))
- bufs.push(data);
- });
- var parseOpts = {};
- parseOpts.filename = inFileName;
- inFile.on('end', function processKey() {
- var buf = Buffer.concat(bufs);
- var fmt = 'auto';
- if (opts.informat)
- fmt = opts.informat;
- var f = sshpk.parseKey;
- if (opts.private)
- f = sshpk.parsePrivateKey;
- try {
- var key = f(buf, fmt, parseOpts);
- } catch (e) {
- if (e.name === 'KeyEncryptedError') {
- getPassword(function (err, pw) {
- if (err)
- ifError(err);
- parseOpts.passphrase = pw;
- processKey();
- });
- return;
- }
- ifError(e);
- }
-
- if (opts.derive)
- key = key.derive(opts.derive);
-
- if (opts.comment)
- key.comment = opts.comment;
-
- if (opts.identify) {
- var kind = 'public';
- if (sshpk.PrivateKey.isPrivateKey(key))
- kind = 'private';
- console.log('%s: a %d bit %s %s key', inFileName,
- key.size, key.type.toUpperCase(), kind);
- if (key.type === 'ecdsa')
- console.log('ECDSA curve: %s', key.curve);
- if (key.comment)
- console.log('Comment: %s', key.comment);
- console.log('SHA256 fingerprint: ' +
- key.fingerprint('sha256').toString());
- console.log('MD5 fingerprint: ' +
- key.fingerprint('md5').toString());
- console.log('SPKI-SHA256 fingerprint: ' +
- key.fingerprint('sha256', 'spki').toString());
- process.exit(0);
- return;
- }
-
- if (opts.fingerprint) {
- var hash = opts.hash;
- var type = opts.spki ? 'spki' : 'ssh';
- var format = opts.outformat;
- var fp = key.fingerprint(hash, type).toString(format);
- outFile.write(fp);
- outFile.write('\n');
- outFile.once('drain', function () {
- process.exit(0);
- });
- return;
- }
-
- fmt = undefined;
- if (opts.outformat)
- fmt = opts.outformat;
- outFile.write(key.toBuffer(fmt));
- if (fmt === 'ssh' ||
- (!opts.private && fmt === undefined))
- outFile.write('\n');
- outFile.once('drain', function () {
- process.exit(0);
- });
- });
-}
-
-function ifError(e, txt) {
- if (txt)
- txt = txt + ': ';
- else
- txt = '';
- console.error('sshpk-conv: ' + txt + e.name + ': ' + e.message);
- if (process.env['DEBUG'] || process.env['V']) {
- console.error(e.stack);
- if (e.innerErr)
- console.error(e.innerErr.stack);
- }
- process.exit(1);
-}
diff --git a/node_modules/sshpk/bin/sshpk-sign b/node_modules/sshpk/bin/sshpk-sign
deleted file mode 100755
index 673fc98..0000000
--- a/node_modules/sshpk/bin/sshpk-sign
+++ /dev/null
@@ -1,191 +0,0 @@
-#!/usr/bin/env node
-// -*- mode: js -*-
-// vim: set filetype=javascript :
-// Copyright 2015 Joyent, Inc. All rights reserved.
-
-var dashdash = require('dashdash');
-var sshpk = require('../lib/index');
-var fs = require('fs');
-var path = require('path');
-var getPassword = require('getpass').getPass;
-
-var options = [
- {
- names: ['hash', 'H'],
- type: 'string',
- help: 'Hash algorithm (sha1, sha256, sha384, sha512)'
- },
- {
- names: ['verbose', 'v'],
- type: 'bool',
- help: 'Display verbose info about key and hash used'
- },
- {
- names: ['identity', 'i'],
- type: 'string',
- help: 'Path to key to use'
- },
- {
- names: ['file', 'f'],
- type: 'string',
- help: 'Input filename'
- },
- {
- names: ['out', 'o'],
- type: 'string',
- help: 'Output filename'
- },
- {
- names: ['format', 't'],
- type: 'string',
- help: 'Signature format (asn1, ssh, raw)'
- },
- {
- names: ['binary', 'b'],
- type: 'bool',
- help: 'Output raw binary instead of base64'
- },
- {
- names: ['help', 'h'],
- type: 'bool',
- help: 'Shows this help text'
- }
-];
-
-var parseOpts = {};
-
-if (require.main === module) {
- var parser = dashdash.createParser({
- options: options
- });
-
- try {
- var opts = parser.parse(process.argv);
- } catch (e) {
- console.error('sshpk-sign: error: %s', e.message);
- process.exit(1);
- }
-
- if (opts.help || opts._args.length > 1) {
- var help = parser.help({}).trimRight();
- console.error('sshpk-sign: sign data using an SSH key\n');
- console.error(help);
- process.exit(1);
- }
-
- if (!opts.identity) {
- var help = parser.help({}).trimRight();
- console.error('sshpk-sign: the -i or --identity option ' +
- 'is required\n');
- console.error(help);
- process.exit(1);
- }
-
- var keyData = fs.readFileSync(opts.identity);
- parseOpts.filename = opts.identity;
-
- run();
-}
-
-function run() {
- var key;
- try {
- key = sshpk.parsePrivateKey(keyData, 'auto', parseOpts);
- } catch (e) {
- if (e.name === 'KeyEncryptedError') {
- getPassword(function (err, pw) {
- parseOpts.passphrase = pw;
- run();
- });
- return;
- }
- console.error('sshpk-sign: error loading private key "' +
- opts.identity + '": ' + e.name + ': ' + e.message);
- process.exit(1);
- }
-
- var hash = opts.hash || key.defaultHashAlgorithm();
-
- var signer;
- try {
- signer = key.createSign(hash);
- } catch (e) {
- console.error('sshpk-sign: error creating signer: ' +
- e.name + ': ' + e.message);
- process.exit(1);
- }
-
- if (opts.verbose) {
- console.error('sshpk-sign: using %s-%s with a %d bit key',
- key.type, hash, key.size);
- }
-
- var inFile = process.stdin;
- var inFileName = 'stdin';
-
- var inFilePath;
- if (opts.file) {
- inFilePath = opts.file;
- } else if (opts._args.length === 1) {
- inFilePath = opts._args[0];
- }
-
- if (inFilePath)
- inFileName = path.basename(inFilePath);
-
- try {
- if (inFilePath) {
- fs.accessSync(inFilePath, fs.R_OK);
- inFile = fs.createReadStream(inFilePath);
- }
- } catch (e) {
- console.error('sshpk-sign: error opening input file' +
- ': ' + e.name + ': ' + e.message);
- process.exit(1);
- }
-
- var outFile = process.stdout;
-
- try {
- if (opts.out && !opts.identify) {
- fs.accessSync(path.dirname(opts.out), fs.W_OK);
- outFile = fs.createWriteStream(opts.out);
- }
- } catch (e) {
- console.error('sshpk-sign: error opening output file' +
- ': ' + e.name + ': ' + e.message);
- process.exit(1);
- }
-
- inFile.pipe(signer);
- inFile.on('end', function () {
- var sig;
- try {
- sig = signer.sign();
- } catch (e) {
- console.error('sshpk-sign: error signing data: ' +
- e.name + ': ' + e.message);
- process.exit(1);
- }
-
- var fmt = opts.format || 'asn1';
- var output;
- try {
- output = sig.toBuffer(fmt);
- if (!opts.binary)
- output = output.toString('base64');
- } catch (e) {
- console.error('sshpk-sign: error converting signature' +
- ' to ' + fmt + ' format: ' + e.name + ': ' +
- e.message);
- process.exit(1);
- }
-
- outFile.write(output);
- if (!opts.binary)
- outFile.write('\n');
- outFile.once('drain', function () {
- process.exit(0);
- });
- });
-}
diff --git a/node_modules/sshpk/bin/sshpk-verify b/node_modules/sshpk/bin/sshpk-verify
deleted file mode 100755
index fc71a82..0000000
--- a/node_modules/sshpk/bin/sshpk-verify
+++ /dev/null
@@ -1,167 +0,0 @@
-#!/usr/bin/env node
-// -*- mode: js -*-
-// vim: set filetype=javascript :
-// Copyright 2015 Joyent, Inc. All rights reserved.
-
-var dashdash = require('dashdash');
-var sshpk = require('../lib/index');
-var fs = require('fs');
-var path = require('path');
-var Buffer = require('safer-buffer').Buffer;
-
-var options = [
- {
- names: ['hash', 'H'],
- type: 'string',
- help: 'Hash algorithm (sha1, sha256, sha384, sha512)'
- },
- {
- names: ['verbose', 'v'],
- type: 'bool',
- help: 'Display verbose info about key and hash used'
- },
- {
- names: ['identity', 'i'],
- type: 'string',
- help: 'Path to (public) key to use'
- },
- {
- names: ['file', 'f'],
- type: 'string',
- help: 'Input filename'
- },
- {
- names: ['format', 't'],
- type: 'string',
- help: 'Signature format (asn1, ssh, raw)'
- },
- {
- names: ['signature', 's'],
- type: 'string',
- help: 'base64-encoded signature data'
- },
- {
- names: ['help', 'h'],
- type: 'bool',
- help: 'Shows this help text'
- }
-];
-
-if (require.main === module) {
- var parser = dashdash.createParser({
- options: options
- });
-
- try {
- var opts = parser.parse(process.argv);
- } catch (e) {
- console.error('sshpk-verify: error: %s', e.message);
- process.exit(3);
- }
-
- if (opts.help || opts._args.length > 1) {
- var help = parser.help({}).trimRight();
- console.error('sshpk-verify: sign data using an SSH key\n');
- console.error(help);
- process.exit(3);
- }
-
- if (!opts.identity) {
- var help = parser.help({}).trimRight();
- console.error('sshpk-verify: the -i or --identity option ' +
- 'is required\n');
- console.error(help);
- process.exit(3);
- }
-
- if (!opts.signature) {
- var help = parser.help({}).trimRight();
- console.error('sshpk-verify: the -s or --signature option ' +
- 'is required\n');
- console.error(help);
- process.exit(3);
- }
-
- var keyData = fs.readFileSync(opts.identity);
-
- var key;
- try {
- key = sshpk.parseKey(keyData);
- } catch (e) {
- console.error('sshpk-verify: error loading key "' +
- opts.identity + '": ' + e.name + ': ' + e.message);
- process.exit(2);
- }
-
- var fmt = opts.format || 'asn1';
- var sigData = Buffer.from(opts.signature, 'base64');
-
- var sig;
- try {
- sig = sshpk.parseSignature(sigData, key.type, fmt);
- } catch (e) {
- console.error('sshpk-verify: error parsing signature: ' +
- e.name + ': ' + e.message);
- process.exit(2);
- }
-
- var hash = opts.hash || key.defaultHashAlgorithm();
-
- var verifier;
- try {
- verifier = key.createVerify(hash);
- } catch (e) {
- console.error('sshpk-verify: error creating verifier: ' +
- e.name + ': ' + e.message);
- process.exit(2);
- }
-
- if (opts.verbose) {
- console.error('sshpk-verify: using %s-%s with a %d bit key',
- key.type, hash, key.size);
- }
-
- var inFile = process.stdin;
- var inFileName = 'stdin';
-
- var inFilePath;
- if (opts.file) {
- inFilePath = opts.file;
- } else if (opts._args.length === 1) {
- inFilePath = opts._args[0];
- }
-
- if (inFilePath)
- inFileName = path.basename(inFilePath);
-
- try {
- if (inFilePath) {
- fs.accessSync(inFilePath, fs.R_OK);
- inFile = fs.createReadStream(inFilePath);
- }
- } catch (e) {
- console.error('sshpk-verify: error opening input file' +
- ': ' + e.name + ': ' + e.message);
- process.exit(2);
- }
-
- inFile.pipe(verifier);
- inFile.on('end', function () {
- var ret;
- try {
- ret = verifier.verify(sig);
- } catch (e) {
- console.error('sshpk-verify: error verifying data: ' +
- e.name + ': ' + e.message);
- process.exit(1);
- }
-
- if (ret) {
- console.error('OK');
- process.exit(0);
- }
-
- console.error('NOT OK');
- process.exit(1);
- });
-}
diff --git a/node_modules/sshpk/lib/algs.js b/node_modules/sshpk/lib/algs.js
deleted file mode 100644
index 3b01e7d..0000000
--- a/node_modules/sshpk/lib/algs.js
+++ /dev/null
@@ -1,168 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-var Buffer = require('safer-buffer').Buffer;
-
-var algInfo = {
- 'dsa': {
- parts: ['p', 'q', 'g', 'y'],
- sizePart: 'p'
- },
- 'rsa': {
- parts: ['e', 'n'],
- sizePart: 'n'
- },
- 'ecdsa': {
- parts: ['curve', 'Q'],
- sizePart: 'Q'
- },
- 'ed25519': {
- parts: ['A'],
- sizePart: 'A'
- }
-};
-algInfo['curve25519'] = algInfo['ed25519'];
-
-var algPrivInfo = {
- 'dsa': {
- parts: ['p', 'q', 'g', 'y', 'x']
- },
- 'rsa': {
- parts: ['n', 'e', 'd', 'iqmp', 'p', 'q']
- },
- 'ecdsa': {
- parts: ['curve', 'Q', 'd']
- },
- 'ed25519': {
- parts: ['A', 'k']
- }
-};
-algPrivInfo['curve25519'] = algPrivInfo['ed25519'];
-
-var hashAlgs = {
- 'md5': true,
- 'sha1': true,
- 'sha256': true,
- 'sha384': true,
- 'sha512': true
-};
-
-/*
- * Taken from
- * http://csrc.nist.gov/groups/ST/toolkit/documents/dss/NISTReCur.pdf
- */
-var curves = {
- 'nistp256': {
- size: 256,
- pkcs8oid: '1.2.840.10045.3.1.7',
- p: Buffer.from(('00' +
- 'ffffffff 00000001 00000000 00000000' +
- '00000000 ffffffff ffffffff ffffffff').
- replace(/ /g, ''), 'hex'),
- a: Buffer.from(('00' +
- 'FFFFFFFF 00000001 00000000 00000000' +
- '00000000 FFFFFFFF FFFFFFFF FFFFFFFC').
- replace(/ /g, ''), 'hex'),
- b: Buffer.from((
- '5ac635d8 aa3a93e7 b3ebbd55 769886bc' +
- '651d06b0 cc53b0f6 3bce3c3e 27d2604b').
- replace(/ /g, ''), 'hex'),
- s: Buffer.from(('00' +
- 'c49d3608 86e70493 6a6678e1 139d26b7' +
- '819f7e90').
- replace(/ /g, ''), 'hex'),
- n: Buffer.from(('00' +
- 'ffffffff 00000000 ffffffff ffffffff' +
- 'bce6faad a7179e84 f3b9cac2 fc632551').
- replace(/ /g, ''), 'hex'),
- G: Buffer.from(('04' +
- '6b17d1f2 e12c4247 f8bce6e5 63a440f2' +
- '77037d81 2deb33a0 f4a13945 d898c296' +
- '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16' +
- '2bce3357 6b315ece cbb64068 37bf51f5').
- replace(/ /g, ''), 'hex')
- },
- 'nistp384': {
- size: 384,
- pkcs8oid: '1.3.132.0.34',
- p: Buffer.from(('00' +
- 'ffffffff ffffffff ffffffff ffffffff' +
- 'ffffffff ffffffff ffffffff fffffffe' +
- 'ffffffff 00000000 00000000 ffffffff').
- replace(/ /g, ''), 'hex'),
- a: Buffer.from(('00' +
- 'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
- 'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE' +
- 'FFFFFFFF 00000000 00000000 FFFFFFFC').
- replace(/ /g, ''), 'hex'),
- b: Buffer.from((
- 'b3312fa7 e23ee7e4 988e056b e3f82d19' +
- '181d9c6e fe814112 0314088f 5013875a' +
- 'c656398d 8a2ed19d 2a85c8ed d3ec2aef').
- replace(/ /g, ''), 'hex'),
- s: Buffer.from(('00' +
- 'a335926a a319a27a 1d00896a 6773a482' +
- '7acdac73').
- replace(/ /g, ''), 'hex'),
- n: Buffer.from(('00' +
- 'ffffffff ffffffff ffffffff ffffffff' +
- 'ffffffff ffffffff c7634d81 f4372ddf' +
- '581a0db2 48b0a77a ecec196a ccc52973').
- replace(/ /g, ''), 'hex'),
- G: Buffer.from(('04' +
- 'aa87ca22 be8b0537 8eb1c71e f320ad74' +
- '6e1d3b62 8ba79b98 59f741e0 82542a38' +
- '5502f25d bf55296c 3a545e38 72760ab7' +
- '3617de4a 96262c6f 5d9e98bf 9292dc29' +
- 'f8f41dbd 289a147c e9da3113 b5f0b8c0' +
- '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f').
- replace(/ /g, ''), 'hex')
- },
- 'nistp521': {
- size: 521,
- pkcs8oid: '1.3.132.0.35',
- p: Buffer.from((
- '01ffffff ffffffff ffffffff ffffffff' +
- 'ffffffff ffffffff ffffffff ffffffff' +
- 'ffffffff ffffffff ffffffff ffffffff' +
- 'ffffffff ffffffff ffffffff ffffffff' +
- 'ffff').replace(/ /g, ''), 'hex'),
- a: Buffer.from(('01FF' +
- 'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
- 'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
- 'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF' +
- 'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC').
- replace(/ /g, ''), 'hex'),
- b: Buffer.from(('51' +
- '953eb961 8e1c9a1f 929a21a0 b68540ee' +
- 'a2da725b 99b315f3 b8b48991 8ef109e1' +
- '56193951 ec7e937b 1652c0bd 3bb1bf07' +
- '3573df88 3d2c34f1 ef451fd4 6b503f00').
- replace(/ /g, ''), 'hex'),
- s: Buffer.from(('00' +
- 'd09e8800 291cb853 96cc6717 393284aa' +
- 'a0da64ba').replace(/ /g, ''), 'hex'),
- n: Buffer.from(('01ff' +
- 'ffffffff ffffffff ffffffff ffffffff' +
- 'ffffffff ffffffff ffffffff fffffffa' +
- '51868783 bf2f966b 7fcc0148 f709a5d0' +
- '3bb5c9b8 899c47ae bb6fb71e 91386409').
- replace(/ /g, ''), 'hex'),
- G: Buffer.from(('04' +
- '00c6 858e06b7 0404e9cd 9e3ecb66 2395b442' +
- '9c648139 053fb521 f828af60 6b4d3dba' +
- 'a14b5e77 efe75928 fe1dc127 a2ffa8de' +
- '3348b3c1 856a429b f97e7e31 c2e5bd66' +
- '0118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9' +
- '98f54449 579b4468 17afbd17 273e662c' +
- '97ee7299 5ef42640 c550b901 3fad0761' +
- '353c7086 a272c240 88be9476 9fd16650').
- replace(/ /g, ''), 'hex')
- }
-};
-
-module.exports = {
- info: algInfo,
- privInfo: algPrivInfo,
- hashAlgs: hashAlgs,
- curves: curves
-};
diff --git a/node_modules/sshpk/lib/certificate.js b/node_modules/sshpk/lib/certificate.js
deleted file mode 100644
index 6932357..0000000
--- a/node_modules/sshpk/lib/certificate.js
+++ /dev/null
@@ -1,410 +0,0 @@
-// Copyright 2016 Joyent, Inc.
-
-module.exports = Certificate;
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('./algs');
-var crypto = require('crypto');
-var Fingerprint = require('./fingerprint');
-var Signature = require('./signature');
-var errs = require('./errors');
-var util = require('util');
-var utils = require('./utils');
-var Key = require('./key');
-var PrivateKey = require('./private-key');
-var Identity = require('./identity');
-
-var formats = {};
-formats['openssh'] = require('./formats/openssh-cert');
-formats['x509'] = require('./formats/x509');
-formats['pem'] = require('./formats/x509-pem');
-
-var CertificateParseError = errs.CertificateParseError;
-var InvalidAlgorithmError = errs.InvalidAlgorithmError;
-
-function Certificate(opts) {
- assert.object(opts, 'options');
- assert.arrayOfObject(opts.subjects, 'options.subjects');
- utils.assertCompatible(opts.subjects[0], Identity, [1, 0],
- 'options.subjects');
- utils.assertCompatible(opts.subjectKey, Key, [1, 0],
- 'options.subjectKey');
- utils.assertCompatible(opts.issuer, Identity, [1, 0], 'options.issuer');
- if (opts.issuerKey !== undefined) {
- utils.assertCompatible(opts.issuerKey, Key, [1, 0],
- 'options.issuerKey');
- }
- assert.object(opts.signatures, 'options.signatures');
- assert.buffer(opts.serial, 'options.serial');
- assert.date(opts.validFrom, 'options.validFrom');
- assert.date(opts.validUntil, 'optons.validUntil');
-
- assert.optionalArrayOfString(opts.purposes, 'options.purposes');
-
- this._hashCache = {};
-
- this.subjects = opts.subjects;
- this.issuer = opts.issuer;
- this.subjectKey = opts.subjectKey;
- this.issuerKey = opts.issuerKey;
- this.signatures = opts.signatures;
- this.serial = opts.serial;
- this.validFrom = opts.validFrom;
- this.validUntil = opts.validUntil;
- this.purposes = opts.purposes;
-}
-
-Certificate.formats = formats;
-
-Certificate.prototype.toBuffer = function (format, options) {
- if (format === undefined)
- format = 'x509';
- assert.string(format, 'format');
- assert.object(formats[format], 'formats[format]');
- assert.optionalObject(options, 'options');
-
- return (formats[format].write(this, options));
-};
-
-Certificate.prototype.toString = function (format, options) {
- if (format === undefined)
- format = 'pem';
- return (this.toBuffer(format, options).toString());
-};
-
-Certificate.prototype.fingerprint = function (algo) {
- if (algo === undefined)
- algo = 'sha256';
- assert.string(algo, 'algorithm');
- var opts = {
- type: 'certificate',
- hash: this.hash(algo),
- algorithm: algo
- };
- return (new Fingerprint(opts));
-};
-
-Certificate.prototype.hash = function (algo) {
- assert.string(algo, 'algorithm');
- algo = algo.toLowerCase();
- if (algs.hashAlgs[algo] === undefined)
- throw (new InvalidAlgorithmError(algo));
-
- if (this._hashCache[algo])
- return (this._hashCache[algo]);
-
- var hash = crypto.createHash(algo).
- update(this.toBuffer('x509')).digest();
- this._hashCache[algo] = hash;
- return (hash);
-};
-
-Certificate.prototype.isExpired = function (when) {
- if (when === undefined)
- when = new Date();
- return (!((when.getTime() >= this.validFrom.getTime()) &&
- (when.getTime() < this.validUntil.getTime())));
-};
-
-Certificate.prototype.isSignedBy = function (issuerCert) {
- utils.assertCompatible(issuerCert, Certificate, [1, 0], 'issuer');
-
- if (!this.issuer.equals(issuerCert.subjects[0]))
- return (false);
- if (this.issuer.purposes && this.issuer.purposes.length > 0 &&
- this.issuer.purposes.indexOf('ca') === -1) {
- return (false);
- }
-
- return (this.isSignedByKey(issuerCert.subjectKey));
-};
-
-Certificate.prototype.getExtension = function (keyOrOid) {
- assert.string(keyOrOid, 'keyOrOid');
- var ext = this.getExtensions().filter(function (maybeExt) {
- if (maybeExt.format === 'x509')
- return (maybeExt.oid === keyOrOid);
- if (maybeExt.format === 'openssh')
- return (maybeExt.name === keyOrOid);
- return (false);
- })[0];
- return (ext);
-};
-
-Certificate.prototype.getExtensions = function () {
- var exts = [];
- var x509 = this.signatures.x509;
- if (x509 && x509.extras && x509.extras.exts) {
- x509.extras.exts.forEach(function (ext) {
- ext.format = 'x509';
- exts.push(ext);
- });
- }
- var openssh = this.signatures.openssh;
- if (openssh && openssh.exts) {
- openssh.exts.forEach(function (ext) {
- ext.format = 'openssh';
- exts.push(ext);
- });
- }
- return (exts);
-};
-
-Certificate.prototype.isSignedByKey = function (issuerKey) {
- utils.assertCompatible(issuerKey, Key, [1, 2], 'issuerKey');
-
- if (this.issuerKey !== undefined) {
- return (this.issuerKey.
- fingerprint('sha512').matches(issuerKey));
- }
-
- var fmt = Object.keys(this.signatures)[0];
- var valid = formats[fmt].verify(this, issuerKey);
- if (valid)
- this.issuerKey = issuerKey;
- return (valid);
-};
-
-Certificate.prototype.signWith = function (key) {
- utils.assertCompatible(key, PrivateKey, [1, 2], 'key');
- var fmts = Object.keys(formats);
- var didOne = false;
- for (var i = 0; i < fmts.length; ++i) {
- if (fmts[i] !== 'pem') {
- var ret = formats[fmts[i]].sign(this, key);
- if (ret === true)
- didOne = true;
- }
- }
- if (!didOne) {
- throw (new Error('Failed to sign the certificate for any ' +
- 'available certificate formats'));
- }
-};
-
-Certificate.createSelfSigned = function (subjectOrSubjects, key, options) {
- var subjects;
- if (Array.isArray(subjectOrSubjects))
- subjects = subjectOrSubjects;
- else
- subjects = [subjectOrSubjects];
-
- assert.arrayOfObject(subjects);
- subjects.forEach(function (subject) {
- utils.assertCompatible(subject, Identity, [1, 0], 'subject');
- });
-
- utils.assertCompatible(key, PrivateKey, [1, 2], 'private key');
-
- assert.optionalObject(options, 'options');
- if (options === undefined)
- options = {};
- assert.optionalObject(options.validFrom, 'options.validFrom');
- assert.optionalObject(options.validUntil, 'options.validUntil');
- var validFrom = options.validFrom;
- var validUntil = options.validUntil;
- if (validFrom === undefined)
- validFrom = new Date();
- if (validUntil === undefined) {
- assert.optionalNumber(options.lifetime, 'options.lifetime');
- var lifetime = options.lifetime;
- if (lifetime === undefined)
- lifetime = 10*365*24*3600;
- validUntil = new Date();
- validUntil.setTime(validUntil.getTime() + lifetime*1000);
- }
- assert.optionalBuffer(options.serial, 'options.serial');
- var serial = options.serial;
- if (serial === undefined)
- serial = Buffer.from('0000000000000001', 'hex');
-
- var purposes = options.purposes;
- if (purposes === undefined)
- purposes = [];
-
- if (purposes.indexOf('signature') === -1)
- purposes.push('signature');
-
- /* Self-signed certs are always CAs. */
- if (purposes.indexOf('ca') === -1)
- purposes.push('ca');
- if (purposes.indexOf('crl') === -1)
- purposes.push('crl');
-
- /*
- * If we weren't explicitly given any other purposes, do the sensible
- * thing and add some basic ones depending on the subject type.
- */
- if (purposes.length <= 3) {
- var hostSubjects = subjects.filter(function (subject) {
- return (subject.type === 'host');
- });
- var userSubjects = subjects.filter(function (subject) {
- return (subject.type === 'user');
- });
- if (hostSubjects.length > 0) {
- if (purposes.indexOf('serverAuth') === -1)
- purposes.push('serverAuth');
- }
- if (userSubjects.length > 0) {
- if (purposes.indexOf('clientAuth') === -1)
- purposes.push('clientAuth');
- }
- if (userSubjects.length > 0 || hostSubjects.length > 0) {
- if (purposes.indexOf('keyAgreement') === -1)
- purposes.push('keyAgreement');
- if (key.type === 'rsa' &&
- purposes.indexOf('encryption') === -1)
- purposes.push('encryption');
- }
- }
-
- var cert = new Certificate({
- subjects: subjects,
- issuer: subjects[0],
- subjectKey: key.toPublic(),
- issuerKey: key.toPublic(),
- signatures: {},
- serial: serial,
- validFrom: validFrom,
- validUntil: validUntil,
- purposes: purposes
- });
- cert.signWith(key);
-
- return (cert);
-};
-
-Certificate.create =
- function (subjectOrSubjects, key, issuer, issuerKey, options) {
- var subjects;
- if (Array.isArray(subjectOrSubjects))
- subjects = subjectOrSubjects;
- else
- subjects = [subjectOrSubjects];
-
- assert.arrayOfObject(subjects);
- subjects.forEach(function (subject) {
- utils.assertCompatible(subject, Identity, [1, 0], 'subject');
- });
-
- utils.assertCompatible(key, Key, [1, 0], 'key');
- if (PrivateKey.isPrivateKey(key))
- key = key.toPublic();
- utils.assertCompatible(issuer, Identity, [1, 0], 'issuer');
- utils.assertCompatible(issuerKey, PrivateKey, [1, 2], 'issuer key');
-
- assert.optionalObject(options, 'options');
- if (options === undefined)
- options = {};
- assert.optionalObject(options.validFrom, 'options.validFrom');
- assert.optionalObject(options.validUntil, 'options.validUntil');
- var validFrom = options.validFrom;
- var validUntil = options.validUntil;
- if (validFrom === undefined)
- validFrom = new Date();
- if (validUntil === undefined) {
- assert.optionalNumber(options.lifetime, 'options.lifetime');
- var lifetime = options.lifetime;
- if (lifetime === undefined)
- lifetime = 10*365*24*3600;
- validUntil = new Date();
- validUntil.setTime(validUntil.getTime() + lifetime*1000);
- }
- assert.optionalBuffer(options.serial, 'options.serial');
- var serial = options.serial;
- if (serial === undefined)
- serial = Buffer.from('0000000000000001', 'hex');
-
- var purposes = options.purposes;
- if (purposes === undefined)
- purposes = [];
-
- if (purposes.indexOf('signature') === -1)
- purposes.push('signature');
-
- if (options.ca === true) {
- if (purposes.indexOf('ca') === -1)
- purposes.push('ca');
- if (purposes.indexOf('crl') === -1)
- purposes.push('crl');
- }
-
- var hostSubjects = subjects.filter(function (subject) {
- return (subject.type === 'host');
- });
- var userSubjects = subjects.filter(function (subject) {
- return (subject.type === 'user');
- });
- if (hostSubjects.length > 0) {
- if (purposes.indexOf('serverAuth') === -1)
- purposes.push('serverAuth');
- }
- if (userSubjects.length > 0) {
- if (purposes.indexOf('clientAuth') === -1)
- purposes.push('clientAuth');
- }
- if (userSubjects.length > 0 || hostSubjects.length > 0) {
- if (purposes.indexOf('keyAgreement') === -1)
- purposes.push('keyAgreement');
- if (key.type === 'rsa' &&
- purposes.indexOf('encryption') === -1)
- purposes.push('encryption');
- }
-
- var cert = new Certificate({
- subjects: subjects,
- issuer: issuer,
- subjectKey: key,
- issuerKey: issuerKey.toPublic(),
- signatures: {},
- serial: serial,
- validFrom: validFrom,
- validUntil: validUntil,
- purposes: purposes
- });
- cert.signWith(issuerKey);
-
- return (cert);
-};
-
-Certificate.parse = function (data, format, options) {
- if (typeof (data) !== 'string')
- assert.buffer(data, 'data');
- if (format === undefined)
- format = 'auto';
- assert.string(format, 'format');
- if (typeof (options) === 'string')
- options = { filename: options };
- assert.optionalObject(options, 'options');
- if (options === undefined)
- options = {};
- assert.optionalString(options.filename, 'options.filename');
- if (options.filename === undefined)
- options.filename = '(unnamed)';
-
- assert.object(formats[format], 'formats[format]');
-
- try {
- var k = formats[format].read(data, options);
- return (k);
- } catch (e) {
- throw (new CertificateParseError(options.filename, format, e));
- }
-};
-
-Certificate.isCertificate = function (obj, ver) {
- return (utils.isCompatible(obj, Certificate, ver));
-};
-
-/*
- * API versions for Certificate:
- * [1,0] -- initial ver
- * [1,1] -- openssh format now unpacks extensions
- */
-Certificate.prototype._sshpkApiVersion = [1, 1];
-
-Certificate._oldVersionDetect = function (obj) {
- return ([1, 0]);
-};
diff --git a/node_modules/sshpk/lib/dhe.js b/node_modules/sshpk/lib/dhe.js
deleted file mode 100644
index a3c8032..0000000
--- a/node_modules/sshpk/lib/dhe.js
+++ /dev/null
@@ -1,397 +0,0 @@
-// Copyright 2017 Joyent, Inc.
-
-module.exports = {
- DiffieHellman: DiffieHellman,
- generateECDSA: generateECDSA,
- generateED25519: generateED25519
-};
-
-var assert = require('assert-plus');
-var crypto = require('crypto');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('./algs');
-var utils = require('./utils');
-var nacl = require('tweetnacl');
-
-var Key = require('./key');
-var PrivateKey = require('./private-key');
-
-var CRYPTO_HAVE_ECDH = (crypto.createECDH !== undefined);
-
-var ecdh = require('ecc-jsbn');
-var ec = require('ecc-jsbn/lib/ec');
-var jsbn = require('jsbn').BigInteger;
-
-function DiffieHellman(key) {
- utils.assertCompatible(key, Key, [1, 4], 'key');
- this._isPriv = PrivateKey.isPrivateKey(key, [1, 3]);
- this._algo = key.type;
- this._curve = key.curve;
- this._key = key;
- if (key.type === 'dsa') {
- if (!CRYPTO_HAVE_ECDH) {
- throw (new Error('Due to bugs in the node 0.10 ' +
- 'crypto API, node 0.12.x or later is required ' +
- 'to use DH'));
- }
- this._dh = crypto.createDiffieHellman(
- key.part.p.data, undefined,
- key.part.g.data, undefined);
- this._p = key.part.p;
- this._g = key.part.g;
- if (this._isPriv)
- this._dh.setPrivateKey(key.part.x.data);
- this._dh.setPublicKey(key.part.y.data);
-
- } else if (key.type === 'ecdsa') {
- if (!CRYPTO_HAVE_ECDH) {
- this._ecParams = new X9ECParameters(this._curve);
-
- if (this._isPriv) {
- this._priv = new ECPrivate(
- this._ecParams, key.part.d.data);
- }
- return;
- }
-
- var curve = {
- 'nistp256': 'prime256v1',
- 'nistp384': 'secp384r1',
- 'nistp521': 'secp521r1'
- }[key.curve];
- this._dh = crypto.createECDH(curve);
- if (typeof (this._dh) !== 'object' ||
- typeof (this._dh.setPrivateKey) !== 'function') {
- CRYPTO_HAVE_ECDH = false;
- DiffieHellman.call(this, key);
- return;
- }
- if (this._isPriv)
- this._dh.setPrivateKey(key.part.d.data);
- this._dh.setPublicKey(key.part.Q.data);
-
- } else if (key.type === 'curve25519') {
- if (this._isPriv) {
- utils.assertCompatible(key, PrivateKey, [1, 5], 'key');
- this._priv = key.part.k.data;
- }
-
- } else {
- throw (new Error('DH not supported for ' + key.type + ' keys'));
- }
-}
-
-DiffieHellman.prototype.getPublicKey = function () {
- if (this._isPriv)
- return (this._key.toPublic());
- return (this._key);
-};
-
-DiffieHellman.prototype.getPrivateKey = function () {
- if (this._isPriv)
- return (this._key);
- else
- return (undefined);
-};
-DiffieHellman.prototype.getKey = DiffieHellman.prototype.getPrivateKey;
-
-DiffieHellman.prototype._keyCheck = function (pk, isPub) {
- assert.object(pk, 'key');
- if (!isPub)
- utils.assertCompatible(pk, PrivateKey, [1, 3], 'key');
- utils.assertCompatible(pk, Key, [1, 4], 'key');
-
- if (pk.type !== this._algo) {
- throw (new Error('A ' + pk.type + ' key cannot be used in ' +
- this._algo + ' Diffie-Hellman'));
- }
-
- if (pk.curve !== this._curve) {
- throw (new Error('A key from the ' + pk.curve + ' curve ' +
- 'cannot be used with a ' + this._curve +
- ' Diffie-Hellman'));
- }
-
- if (pk.type === 'dsa') {
- assert.deepEqual(pk.part.p, this._p,
- 'DSA key prime does not match');
- assert.deepEqual(pk.part.g, this._g,
- 'DSA key generator does not match');
- }
-};
-
-DiffieHellman.prototype.setKey = function (pk) {
- this._keyCheck(pk);
-
- if (pk.type === 'dsa') {
- this._dh.setPrivateKey(pk.part.x.data);
- this._dh.setPublicKey(pk.part.y.data);
-
- } else if (pk.type === 'ecdsa') {
- if (CRYPTO_HAVE_ECDH) {
- this._dh.setPrivateKey(pk.part.d.data);
- this._dh.setPublicKey(pk.part.Q.data);
- } else {
- this._priv = new ECPrivate(
- this._ecParams, pk.part.d.data);
- }
-
- } else if (pk.type === 'curve25519') {
- var k = pk.part.k;
- if (!pk.part.k)
- k = pk.part.r;
- this._priv = k.data;
- if (this._priv[0] === 0x00)
- this._priv = this._priv.slice(1);
- this._priv = this._priv.slice(0, 32);
- }
- this._key = pk;
- this._isPriv = true;
-};
-DiffieHellman.prototype.setPrivateKey = DiffieHellman.prototype.setKey;
-
-DiffieHellman.prototype.computeSecret = function (otherpk) {
- this._keyCheck(otherpk, true);
- if (!this._isPriv)
- throw (new Error('DH exchange has not been initialized with ' +
- 'a private key yet'));
-
- var pub;
- if (this._algo === 'dsa') {
- return (this._dh.computeSecret(
- otherpk.part.y.data));
-
- } else if (this._algo === 'ecdsa') {
- if (CRYPTO_HAVE_ECDH) {
- return (this._dh.computeSecret(
- otherpk.part.Q.data));
- } else {
- pub = new ECPublic(
- this._ecParams, otherpk.part.Q.data);
- return (this._priv.deriveSharedSecret(pub));
- }
-
- } else if (this._algo === 'curve25519') {
- pub = otherpk.part.A.data;
- while (pub[0] === 0x00 && pub.length > 32)
- pub = pub.slice(1);
- var priv = this._priv;
- assert.strictEqual(pub.length, 32);
- assert.strictEqual(priv.length, 32);
-
- var secret = nacl.box.before(new Uint8Array(pub),
- new Uint8Array(priv));
-
- return (Buffer.from(secret));
- }
-
- throw (new Error('Invalid algorithm: ' + this._algo));
-};
-
-DiffieHellman.prototype.generateKey = function () {
- var parts = [];
- var priv, pub;
- if (this._algo === 'dsa') {
- this._dh.generateKeys();
-
- parts.push({name: 'p', data: this._p.data});
- parts.push({name: 'q', data: this._key.part.q.data});
- parts.push({name: 'g', data: this._g.data});
- parts.push({name: 'y', data: this._dh.getPublicKey()});
- parts.push({name: 'x', data: this._dh.getPrivateKey()});
- this._key = new PrivateKey({
- type: 'dsa',
- parts: parts
- });
- this._isPriv = true;
- return (this._key);
-
- } else if (this._algo === 'ecdsa') {
- if (CRYPTO_HAVE_ECDH) {
- this._dh.generateKeys();
-
- parts.push({name: 'curve',
- data: Buffer.from(this._curve)});
- parts.push({name: 'Q', data: this._dh.getPublicKey()});
- parts.push({name: 'd', data: this._dh.getPrivateKey()});
- this._key = new PrivateKey({
- type: 'ecdsa',
- curve: this._curve,
- parts: parts
- });
- this._isPriv = true;
- return (this._key);
-
- } else {
- var n = this._ecParams.getN();
- var r = new jsbn(crypto.randomBytes(n.bitLength()));
- var n1 = n.subtract(jsbn.ONE);
- priv = r.mod(n1).add(jsbn.ONE);
- pub = this._ecParams.getG().multiply(priv);
-
- priv = Buffer.from(priv.toByteArray());
- pub = Buffer.from(this._ecParams.getCurve().
- encodePointHex(pub), 'hex');
-
- this._priv = new ECPrivate(this._ecParams, priv);
-
- parts.push({name: 'curve',
- data: Buffer.from(this._curve)});
- parts.push({name: 'Q', data: pub});
- parts.push({name: 'd', data: priv});
-
- this._key = new PrivateKey({
- type: 'ecdsa',
- curve: this._curve,
- parts: parts
- });
- this._isPriv = true;
- return (this._key);
- }
-
- } else if (this._algo === 'curve25519') {
- var pair = nacl.box.keyPair();
- priv = Buffer.from(pair.secretKey);
- pub = Buffer.from(pair.publicKey);
- priv = Buffer.concat([priv, pub]);
- assert.strictEqual(priv.length, 64);
- assert.strictEqual(pub.length, 32);
-
- parts.push({name: 'A', data: pub});
- parts.push({name: 'k', data: priv});
- this._key = new PrivateKey({
- type: 'curve25519',
- parts: parts
- });
- this._isPriv = true;
- return (this._key);
- }
-
- throw (new Error('Invalid algorithm: ' + this._algo));
-};
-DiffieHellman.prototype.generateKeys = DiffieHellman.prototype.generateKey;
-
-/* These are helpers for using ecc-jsbn (for node 0.10 compatibility). */
-
-function X9ECParameters(name) {
- var params = algs.curves[name];
- assert.object(params);
-
- var p = new jsbn(params.p);
- var a = new jsbn(params.a);
- var b = new jsbn(params.b);
- var n = new jsbn(params.n);
- var h = jsbn.ONE;
- var curve = new ec.ECCurveFp(p, a, b);
- var G = curve.decodePointHex(params.G.toString('hex'));
-
- this.curve = curve;
- this.g = G;
- this.n = n;
- this.h = h;
-}
-X9ECParameters.prototype.getCurve = function () { return (this.curve); };
-X9ECParameters.prototype.getG = function () { return (this.g); };
-X9ECParameters.prototype.getN = function () { return (this.n); };
-X9ECParameters.prototype.getH = function () { return (this.h); };
-
-function ECPublic(params, buffer) {
- this._params = params;
- if (buffer[0] === 0x00)
- buffer = buffer.slice(1);
- this._pub = params.getCurve().decodePointHex(buffer.toString('hex'));
-}
-
-function ECPrivate(params, buffer) {
- this._params = params;
- this._priv = new jsbn(utils.mpNormalize(buffer));
-}
-ECPrivate.prototype.deriveSharedSecret = function (pubKey) {
- assert.ok(pubKey instanceof ECPublic);
- var S = pubKey._pub.multiply(this._priv);
- return (Buffer.from(S.getX().toBigInteger().toByteArray()));
-};
-
-function generateED25519() {
- var pair = nacl.sign.keyPair();
- var priv = Buffer.from(pair.secretKey);
- var pub = Buffer.from(pair.publicKey);
- assert.strictEqual(priv.length, 64);
- assert.strictEqual(pub.length, 32);
-
- var parts = [];
- parts.push({name: 'A', data: pub});
- parts.push({name: 'k', data: priv.slice(0, 32)});
- var key = new PrivateKey({
- type: 'ed25519',
- parts: parts
- });
- return (key);
-}
-
-/* Generates a new ECDSA private key on a given curve. */
-function generateECDSA(curve) {
- var parts = [];
- var key;
-
- if (CRYPTO_HAVE_ECDH) {
- /*
- * Node crypto doesn't expose key generation directly, but the
- * ECDH instances can generate keys. It turns out this just
- * calls into the OpenSSL generic key generator, and we can
- * read its output happily without doing an actual DH. So we
- * use that here.
- */
- var osCurve = {
- 'nistp256': 'prime256v1',
- 'nistp384': 'secp384r1',
- 'nistp521': 'secp521r1'
- }[curve];
-
- var dh = crypto.createECDH(osCurve);
- dh.generateKeys();
-
- parts.push({name: 'curve',
- data: Buffer.from(curve)});
- parts.push({name: 'Q', data: dh.getPublicKey()});
- parts.push({name: 'd', data: dh.getPrivateKey()});
-
- key = new PrivateKey({
- type: 'ecdsa',
- curve: curve,
- parts: parts
- });
- return (key);
- } else {
-
- var ecParams = new X9ECParameters(curve);
-
- /* This algorithm taken from FIPS PUB 186-4 (section B.4.1) */
- var n = ecParams.getN();
- /*
- * The crypto.randomBytes() function can only give us whole
- * bytes, so taking a nod from X9.62, we round up.
- */
- var cByteLen = Math.ceil((n.bitLength() + 64) / 8);
- var c = new jsbn(crypto.randomBytes(cByteLen));
-
- var n1 = n.subtract(jsbn.ONE);
- var priv = c.mod(n1).add(jsbn.ONE);
- var pub = ecParams.getG().multiply(priv);
-
- priv = Buffer.from(priv.toByteArray());
- pub = Buffer.from(ecParams.getCurve().
- encodePointHex(pub), 'hex');
-
- parts.push({name: 'curve', data: Buffer.from(curve)});
- parts.push({name: 'Q', data: pub});
- parts.push({name: 'd', data: priv});
-
- key = new PrivateKey({
- type: 'ecdsa',
- curve: curve,
- parts: parts
- });
- return (key);
- }
-}
diff --git a/node_modules/sshpk/lib/ed-compat.js b/node_modules/sshpk/lib/ed-compat.js
deleted file mode 100644
index 70732e1..0000000
--- a/node_modules/sshpk/lib/ed-compat.js
+++ /dev/null
@@ -1,92 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = {
- Verifier: Verifier,
- Signer: Signer
-};
-
-var nacl = require('tweetnacl');
-var stream = require('stream');
-var util = require('util');
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var Signature = require('./signature');
-
-function Verifier(key, hashAlgo) {
- if (hashAlgo.toLowerCase() !== 'sha512')
- throw (new Error('ED25519 only supports the use of ' +
- 'SHA-512 hashes'));
-
- this.key = key;
- this.chunks = [];
-
- stream.Writable.call(this, {});
-}
-util.inherits(Verifier, stream.Writable);
-
-Verifier.prototype._write = function (chunk, enc, cb) {
- this.chunks.push(chunk);
- cb();
-};
-
-Verifier.prototype.update = function (chunk) {
- if (typeof (chunk) === 'string')
- chunk = Buffer.from(chunk, 'binary');
- this.chunks.push(chunk);
-};
-
-Verifier.prototype.verify = function (signature, fmt) {
- var sig;
- if (Signature.isSignature(signature, [2, 0])) {
- if (signature.type !== 'ed25519')
- return (false);
- sig = signature.toBuffer('raw');
-
- } else if (typeof (signature) === 'string') {
- sig = Buffer.from(signature, 'base64');
-
- } else if (Signature.isSignature(signature, [1, 0])) {
- throw (new Error('signature was created by too old ' +
- 'a version of sshpk and cannot be verified'));
- }
-
- assert.buffer(sig);
- return (nacl.sign.detached.verify(
- new Uint8Array(Buffer.concat(this.chunks)),
- new Uint8Array(sig),
- new Uint8Array(this.key.part.A.data)));
-};
-
-function Signer(key, hashAlgo) {
- if (hashAlgo.toLowerCase() !== 'sha512')
- throw (new Error('ED25519 only supports the use of ' +
- 'SHA-512 hashes'));
-
- this.key = key;
- this.chunks = [];
-
- stream.Writable.call(this, {});
-}
-util.inherits(Signer, stream.Writable);
-
-Signer.prototype._write = function (chunk, enc, cb) {
- this.chunks.push(chunk);
- cb();
-};
-
-Signer.prototype.update = function (chunk) {
- if (typeof (chunk) === 'string')
- chunk = Buffer.from(chunk, 'binary');
- this.chunks.push(chunk);
-};
-
-Signer.prototype.sign = function () {
- var sig = nacl.sign.detached(
- new Uint8Array(Buffer.concat(this.chunks)),
- new Uint8Array(Buffer.concat([
- this.key.part.k.data, this.key.part.A.data])));
- var sigBuf = Buffer.from(sig);
- var sigObj = Signature.parse(sigBuf, 'ed25519', 'raw');
- sigObj.hashAlgorithm = 'sha512';
- return (sigObj);
-};
diff --git a/node_modules/sshpk/lib/errors.js b/node_modules/sshpk/lib/errors.js
deleted file mode 100644
index 1cc09ec..0000000
--- a/node_modules/sshpk/lib/errors.js
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-var assert = require('assert-plus');
-var util = require('util');
-
-function FingerprintFormatError(fp, format) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, FingerprintFormatError);
- this.name = 'FingerprintFormatError';
- this.fingerprint = fp;
- this.format = format;
- this.message = 'Fingerprint format is not supported, or is invalid: ';
- if (fp !== undefined)
- this.message += ' fingerprint = ' + fp;
- if (format !== undefined)
- this.message += ' format = ' + format;
-}
-util.inherits(FingerprintFormatError, Error);
-
-function InvalidAlgorithmError(alg) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, InvalidAlgorithmError);
- this.name = 'InvalidAlgorithmError';
- this.algorithm = alg;
- this.message = 'Algorithm "' + alg + '" is not supported';
-}
-util.inherits(InvalidAlgorithmError, Error);
-
-function KeyParseError(name, format, innerErr) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, KeyParseError);
- this.name = 'KeyParseError';
- this.format = format;
- this.keyName = name;
- this.innerErr = innerErr;
- this.message = 'Failed to parse ' + name + ' as a valid ' + format +
- ' format key: ' + innerErr.message;
-}
-util.inherits(KeyParseError, Error);
-
-function SignatureParseError(type, format, innerErr) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, SignatureParseError);
- this.name = 'SignatureParseError';
- this.type = type;
- this.format = format;
- this.innerErr = innerErr;
- this.message = 'Failed to parse the given data as a ' + type +
- ' signature in ' + format + ' format: ' + innerErr.message;
-}
-util.inherits(SignatureParseError, Error);
-
-function CertificateParseError(name, format, innerErr) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, CertificateParseError);
- this.name = 'CertificateParseError';
- this.format = format;
- this.certName = name;
- this.innerErr = innerErr;
- this.message = 'Failed to parse ' + name + ' as a valid ' + format +
- ' format certificate: ' + innerErr.message;
-}
-util.inherits(CertificateParseError, Error);
-
-function KeyEncryptedError(name, format) {
- if (Error.captureStackTrace)
- Error.captureStackTrace(this, KeyEncryptedError);
- this.name = 'KeyEncryptedError';
- this.format = format;
- this.keyName = name;
- this.message = 'The ' + format + ' format key ' + name + ' is ' +
- 'encrypted (password-protected), and no passphrase was ' +
- 'provided in `options`';
-}
-util.inherits(KeyEncryptedError, Error);
-
-module.exports = {
- FingerprintFormatError: FingerprintFormatError,
- InvalidAlgorithmError: InvalidAlgorithmError,
- KeyParseError: KeyParseError,
- SignatureParseError: SignatureParseError,
- KeyEncryptedError: KeyEncryptedError,
- CertificateParseError: CertificateParseError
-};
diff --git a/node_modules/sshpk/lib/fingerprint.js b/node_modules/sshpk/lib/fingerprint.js
deleted file mode 100644
index 0004b37..0000000
--- a/node_modules/sshpk/lib/fingerprint.js
+++ /dev/null
@@ -1,220 +0,0 @@
-// Copyright 2018 Joyent, Inc.
-
-module.exports = Fingerprint;
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('./algs');
-var crypto = require('crypto');
-var errs = require('./errors');
-var Key = require('./key');
-var PrivateKey = require('./private-key');
-var Certificate = require('./certificate');
-var utils = require('./utils');
-
-var FingerprintFormatError = errs.FingerprintFormatError;
-var InvalidAlgorithmError = errs.InvalidAlgorithmError;
-
-function Fingerprint(opts) {
- assert.object(opts, 'options');
- assert.string(opts.type, 'options.type');
- assert.buffer(opts.hash, 'options.hash');
- assert.string(opts.algorithm, 'options.algorithm');
-
- this.algorithm = opts.algorithm.toLowerCase();
- if (algs.hashAlgs[this.algorithm] !== true)
- throw (new InvalidAlgorithmError(this.algorithm));
-
- this.hash = opts.hash;
- this.type = opts.type;
- this.hashType = opts.hashType;
-}
-
-Fingerprint.prototype.toString = function (format) {
- if (format === undefined) {
- if (this.algorithm === 'md5' || this.hashType === 'spki')
- format = 'hex';
- else
- format = 'base64';
- }
- assert.string(format);
-
- switch (format) {
- case 'hex':
- if (this.hashType === 'spki')
- return (this.hash.toString('hex'));
- return (addColons(this.hash.toString('hex')));
- case 'base64':
- if (this.hashType === 'spki')
- return (this.hash.toString('base64'));
- return (sshBase64Format(this.algorithm,
- this.hash.toString('base64')));
- default:
- throw (new FingerprintFormatError(undefined, format));
- }
-};
-
-Fingerprint.prototype.matches = function (other) {
- assert.object(other, 'key or certificate');
- if (this.type === 'key' && this.hashType !== 'ssh') {
- utils.assertCompatible(other, Key, [1, 7], 'key with spki');
- if (PrivateKey.isPrivateKey(other)) {
- utils.assertCompatible(other, PrivateKey, [1, 6],
- 'privatekey with spki support');
- }
- } else if (this.type === 'key') {
- utils.assertCompatible(other, Key, [1, 0], 'key');
- } else {
- utils.assertCompatible(other, Certificate, [1, 0],
- 'certificate');
- }
-
- var theirHash = other.hash(this.algorithm, this.hashType);
- var theirHash2 = crypto.createHash(this.algorithm).
- update(theirHash).digest('base64');
-
- if (this.hash2 === undefined)
- this.hash2 = crypto.createHash(this.algorithm).
- update(this.hash).digest('base64');
-
- return (this.hash2 === theirHash2);
-};
-
-/*JSSTYLED*/
-var base64RE = /^[A-Za-z0-9+\/=]+$/;
-/*JSSTYLED*/
-var hexRE = /^[a-fA-F0-9]+$/;
-
-Fingerprint.parse = function (fp, options) {
- assert.string(fp, 'fingerprint');
-
- var alg, hash, enAlgs;
- if (Array.isArray(options)) {
- enAlgs = options;
- options = {};
- }
- assert.optionalObject(options, 'options');
- if (options === undefined)
- options = {};
- if (options.enAlgs !== undefined)
- enAlgs = options.enAlgs;
- if (options.algorithms !== undefined)
- enAlgs = options.algorithms;
- assert.optionalArrayOfString(enAlgs, 'algorithms');
-
- var hashType = 'ssh';
- if (options.hashType !== undefined)
- hashType = options.hashType;
- assert.string(hashType, 'options.hashType');
-
- var parts = fp.split(':');
- if (parts.length == 2) {
- alg = parts[0].toLowerCase();
- if (!base64RE.test(parts[1]))
- throw (new FingerprintFormatError(fp));
- try {
- hash = Buffer.from(parts[1], 'base64');
- } catch (e) {
- throw (new FingerprintFormatError(fp));
- }
- } else if (parts.length > 2) {
- alg = 'md5';
- if (parts[0].toLowerCase() === 'md5')
- parts = parts.slice(1);
- parts = parts.map(function (p) {
- while (p.length < 2)
- p = '0' + p;
- if (p.length > 2)
- throw (new FingerprintFormatError(fp));
- return (p);
- });
- parts = parts.join('');
- if (!hexRE.test(parts) || parts.length % 2 !== 0)
- throw (new FingerprintFormatError(fp));
- try {
- hash = Buffer.from(parts, 'hex');
- } catch (e) {
- throw (new FingerprintFormatError(fp));
- }
- } else {
- if (hexRE.test(fp)) {
- hash = Buffer.from(fp, 'hex');
- } else if (base64RE.test(fp)) {
- hash = Buffer.from(fp, 'base64');
- } else {
- throw (new FingerprintFormatError(fp));
- }
-
- switch (hash.length) {
- case 32:
- alg = 'sha256';
- break;
- case 16:
- alg = 'md5';
- break;
- case 20:
- alg = 'sha1';
- break;
- case 64:
- alg = 'sha512';
- break;
- default:
- throw (new FingerprintFormatError(fp));
- }
-
- /* Plain hex/base64: guess it's probably SPKI unless told. */
- if (options.hashType === undefined)
- hashType = 'spki';
- }
-
- if (alg === undefined)
- throw (new FingerprintFormatError(fp));
-
- if (algs.hashAlgs[alg] === undefined)
- throw (new InvalidAlgorithmError(alg));
-
- if (enAlgs !== undefined) {
- enAlgs = enAlgs.map(function (a) { return a.toLowerCase(); });
- if (enAlgs.indexOf(alg) === -1)
- throw (new InvalidAlgorithmError(alg));
- }
-
- return (new Fingerprint({
- algorithm: alg,
- hash: hash,
- type: options.type || 'key',
- hashType: hashType
- }));
-};
-
-function addColons(s) {
- /*JSSTYLED*/
- return (s.replace(/(.{2})(?=.)/g, '$1:'));
-}
-
-function base64Strip(s) {
- /*JSSTYLED*/
- return (s.replace(/=*$/, ''));
-}
-
-function sshBase64Format(alg, h) {
- return (alg.toUpperCase() + ':' + base64Strip(h));
-}
-
-Fingerprint.isFingerprint = function (obj, ver) {
- return (utils.isCompatible(obj, Fingerprint, ver));
-};
-
-/*
- * API versions for Fingerprint:
- * [1,0] -- initial ver
- * [1,1] -- first tagged ver
- * [1,2] -- hashType and spki support
- */
-Fingerprint.prototype._sshpkApiVersion = [1, 2];
-
-Fingerprint._oldVersionDetect = function (obj) {
- assert.func(obj.toString);
- assert.func(obj.matches);
- return ([1, 0]);
-};
diff --git a/node_modules/sshpk/lib/formats/auto.js b/node_modules/sshpk/lib/formats/auto.js
deleted file mode 100644
index f32cd96..0000000
--- a/node_modules/sshpk/lib/formats/auto.js
+++ /dev/null
@@ -1,124 +0,0 @@
-// Copyright 2018 Joyent, Inc.
-
-module.exports = {
- read: read,
- write: write
-};
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var utils = require('../utils');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-
-var pem = require('./pem');
-var ssh = require('./ssh');
-var rfc4253 = require('./rfc4253');
-var dnssec = require('./dnssec');
-var putty = require('./putty');
-
-var DNSSEC_PRIVKEY_HEADER_PREFIX = 'Private-key-format: v1';
-
-function read(buf, options) {
- if (typeof (buf) === 'string') {
- if (buf.trim().match(/^[-]+[ ]*BEGIN/))
- return (pem.read(buf, options));
- if (buf.match(/^\s*ssh-[a-z]/))
- return (ssh.read(buf, options));
- if (buf.match(/^\s*ecdsa-/))
- return (ssh.read(buf, options));
- if (buf.match(/^putty-user-key-file-2:/i))
- return (putty.read(buf, options));
- if (findDNSSECHeader(buf))
- return (dnssec.read(buf, options));
- buf = Buffer.from(buf, 'binary');
- } else {
- assert.buffer(buf);
- if (findPEMHeader(buf))
- return (pem.read(buf, options));
- if (findSSHHeader(buf))
- return (ssh.read(buf, options));
- if (findPuTTYHeader(buf))
- return (putty.read(buf, options));
- if (findDNSSECHeader(buf))
- return (dnssec.read(buf, options));
- }
- if (buf.readUInt32BE(0) < buf.length)
- return (rfc4253.read(buf, options));
- throw (new Error('Failed to auto-detect format of key'));
-}
-
-function findPuTTYHeader(buf) {
- var offset = 0;
- while (offset < buf.length &&
- (buf[offset] === 32 || buf[offset] === 10 || buf[offset] === 9))
- ++offset;
- if (offset + 22 <= buf.length &&
- buf.slice(offset, offset + 22).toString('ascii').toLowerCase() ===
- 'putty-user-key-file-2:')
- return (true);
- return (false);
-}
-
-function findSSHHeader(buf) {
- var offset = 0;
- while (offset < buf.length &&
- (buf[offset] === 32 || buf[offset] === 10 || buf[offset] === 9))
- ++offset;
- if (offset + 4 <= buf.length &&
- buf.slice(offset, offset + 4).toString('ascii') === 'ssh-')
- return (true);
- if (offset + 6 <= buf.length &&
- buf.slice(offset, offset + 6).toString('ascii') === 'ecdsa-')
- return (true);
- return (false);
-}
-
-function findPEMHeader(buf) {
- var offset = 0;
- while (offset < buf.length &&
- (buf[offset] === 32 || buf[offset] === 10))
- ++offset;
- if (buf[offset] !== 45)
- return (false);
- while (offset < buf.length &&
- (buf[offset] === 45))
- ++offset;
- while (offset < buf.length &&
- (buf[offset] === 32))
- ++offset;
- if (offset + 5 > buf.length ||
- buf.slice(offset, offset + 5).toString('ascii') !== 'BEGIN')
- return (false);
- return (true);
-}
-
-function findDNSSECHeader(buf) {
- // private case first
- if (buf.length <= DNSSEC_PRIVKEY_HEADER_PREFIX.length)
- return (false);
- var headerCheck = buf.slice(0, DNSSEC_PRIVKEY_HEADER_PREFIX.length);
- if (headerCheck.toString('ascii') === DNSSEC_PRIVKEY_HEADER_PREFIX)
- return (true);
-
- // public-key RFC3110 ?
- // 'domain.com. IN KEY ...' or 'domain.com. IN DNSKEY ...'
- // skip any comment-lines
- if (typeof (buf) !== 'string') {
- buf = buf.toString('ascii');
- }
- var lines = buf.split('\n');
- var line = 0;
- /* JSSTYLED */
- while (lines[line].match(/^\;/))
- line++;
- if (lines[line].toString('ascii').match(/\. IN KEY /))
- return (true);
- if (lines[line].toString('ascii').match(/\. IN DNSKEY /))
- return (true);
- return (false);
-}
-
-function write(key, options) {
- throw (new Error('"auto" format cannot be used for writing'));
-}
diff --git a/node_modules/sshpk/lib/formats/dnssec.js b/node_modules/sshpk/lib/formats/dnssec.js
deleted file mode 100644
index a74ea9c..0000000
--- a/node_modules/sshpk/lib/formats/dnssec.js
+++ /dev/null
@@ -1,287 +0,0 @@
-// Copyright 2017 Joyent, Inc.
-
-module.exports = {
- read: read,
- write: write
-};
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var utils = require('../utils');
-var SSHBuffer = require('../ssh-buffer');
-var Dhe = require('../dhe');
-
-var supportedAlgos = {
- 'rsa-sha1' : 5,
- 'rsa-sha256' : 8,
- 'rsa-sha512' : 10,
- 'ecdsa-p256-sha256' : 13,
- 'ecdsa-p384-sha384' : 14
- /*
- * ed25519 is hypothetically supported with id 15
- * but the common tools available don't appear to be
- * capable of generating/using ed25519 keys
- */
-};
-
-var supportedAlgosById = {};
-Object.keys(supportedAlgos).forEach(function (k) {
- supportedAlgosById[supportedAlgos[k]] = k.toUpperCase();
-});
-
-function read(buf, options) {
- if (typeof (buf) !== 'string') {
- assert.buffer(buf, 'buf');
- buf = buf.toString('ascii');
- }
- var lines = buf.split('\n');
- if (lines[0].match(/^Private-key-format\: v1/)) {
- var algElems = lines[1].split(' ');
- var algoNum = parseInt(algElems[1], 10);
- var algoName = algElems[2];
- if (!supportedAlgosById[algoNum])
- throw (new Error('Unsupported algorithm: ' + algoName));
- return (readDNSSECPrivateKey(algoNum, lines.slice(2)));
- }
-
- // skip any comment-lines
- var line = 0;
- /* JSSTYLED */
- while (lines[line].match(/^\;/))
- line++;
- // we should now have *one single* line left with our KEY on it.
- if ((lines[line].match(/\. IN KEY /) ||
- lines[line].match(/\. IN DNSKEY /)) && lines[line+1].length === 0) {
- return (readRFC3110(lines[line]));
- }
- throw (new Error('Cannot parse dnssec key'));
-}
-
-function readRFC3110(keyString) {
- var elems = keyString.split(' ');
- //unused var flags = parseInt(elems[3], 10);
- //unused var protocol = parseInt(elems[4], 10);
- var algorithm = parseInt(elems[5], 10);
- if (!supportedAlgosById[algorithm])
- throw (new Error('Unsupported algorithm: ' + algorithm));
- var base64key = elems.slice(6, elems.length).join();
- var keyBuffer = Buffer.from(base64key, 'base64');
- if (supportedAlgosById[algorithm].match(/^RSA-/)) {
- // join the rest of the body into a single base64-blob
- var publicExponentLen = keyBuffer.readUInt8(0);
- if (publicExponentLen != 3 && publicExponentLen != 1)
- throw (new Error('Cannot parse dnssec key: ' +
- 'unsupported exponent length'));
-
- var publicExponent = keyBuffer.slice(1, publicExponentLen+1);
- publicExponent = utils.mpNormalize(publicExponent);
- var modulus = keyBuffer.slice(1+publicExponentLen);
- modulus = utils.mpNormalize(modulus);
- // now, make the key
- var rsaKey = {
- type: 'rsa',
- parts: []
- };
- rsaKey.parts.push({ name: 'e', data: publicExponent});
- rsaKey.parts.push({ name: 'n', data: modulus});
- return (new Key(rsaKey));
- }
- if (supportedAlgosById[algorithm] === 'ECDSA-P384-SHA384' ||
- supportedAlgosById[algorithm] === 'ECDSA-P256-SHA256') {
- var curve = 'nistp384';
- var size = 384;
- if (supportedAlgosById[algorithm].match(/^ECDSA-P256-SHA256/)) {
- curve = 'nistp256';
- size = 256;
- }
-
- var ecdsaKey = {
- type: 'ecdsa',
- curve: curve,
- size: size,
- parts: [
- {name: 'curve', data: Buffer.from(curve) },
- {name: 'Q', data: utils.ecNormalize(keyBuffer) }
- ]
- };
- return (new Key(ecdsaKey));
- }
- throw (new Error('Unsupported algorithm: ' +
- supportedAlgosById[algorithm]));
-}
-
-function elementToBuf(e) {
- return (Buffer.from(e.split(' ')[1], 'base64'));
-}
-
-function readDNSSECRSAPrivateKey(elements) {
- var rsaParams = {};
- elements.forEach(function (element) {
- if (element.split(' ')[0] === 'Modulus:')
- rsaParams['n'] = elementToBuf(element);
- else if (element.split(' ')[0] === 'PublicExponent:')
- rsaParams['e'] = elementToBuf(element);
- else if (element.split(' ')[0] === 'PrivateExponent:')
- rsaParams['d'] = elementToBuf(element);
- else if (element.split(' ')[0] === 'Prime1:')
- rsaParams['p'] = elementToBuf(element);
- else if (element.split(' ')[0] === 'Prime2:')
- rsaParams['q'] = elementToBuf(element);
- else if (element.split(' ')[0] === 'Exponent1:')
- rsaParams['dmodp'] = elementToBuf(element);
- else if (element.split(' ')[0] === 'Exponent2:')
- rsaParams['dmodq'] = elementToBuf(element);
- else if (element.split(' ')[0] === 'Coefficient:')
- rsaParams['iqmp'] = elementToBuf(element);
- });
- // now, make the key
- var key = {
- type: 'rsa',
- parts: [
- { name: 'e', data: utils.mpNormalize(rsaParams['e'])},
- { name: 'n', data: utils.mpNormalize(rsaParams['n'])},
- { name: 'd', data: utils.mpNormalize(rsaParams['d'])},
- { name: 'p', data: utils.mpNormalize(rsaParams['p'])},
- { name: 'q', data: utils.mpNormalize(rsaParams['q'])},
- { name: 'dmodp',
- data: utils.mpNormalize(rsaParams['dmodp'])},
- { name: 'dmodq',
- data: utils.mpNormalize(rsaParams['dmodq'])},
- { name: 'iqmp',
- data: utils.mpNormalize(rsaParams['iqmp'])}
- ]
- };
- return (new PrivateKey(key));
-}
-
-function readDNSSECPrivateKey(alg, elements) {
- if (supportedAlgosById[alg].match(/^RSA-/)) {
- return (readDNSSECRSAPrivateKey(elements));
- }
- if (supportedAlgosById[alg] === 'ECDSA-P384-SHA384' ||
- supportedAlgosById[alg] === 'ECDSA-P256-SHA256') {
- var d = Buffer.from(elements[0].split(' ')[1], 'base64');
- var curve = 'nistp384';
- var size = 384;
- if (supportedAlgosById[alg] === 'ECDSA-P256-SHA256') {
- curve = 'nistp256';
- size = 256;
- }
- // DNSSEC generates the public-key on the fly (go calculate it)
- var publicKey = utils.publicFromPrivateECDSA(curve, d);
- var Q = publicKey.part['Q'].data;
- var ecdsaKey = {
- type: 'ecdsa',
- curve: curve,
- size: size,
- parts: [
- {name: 'curve', data: Buffer.from(curve) },
- {name: 'd', data: d },
- {name: 'Q', data: Q }
- ]
- };
- return (new PrivateKey(ecdsaKey));
- }
- throw (new Error('Unsupported algorithm: ' + supportedAlgosById[alg]));
-}
-
-function dnssecTimestamp(date) {
- var year = date.getFullYear() + ''; //stringify
- var month = (date.getMonth() + 1);
- var timestampStr = year + month + date.getUTCDate();
- timestampStr += '' + date.getUTCHours() + date.getUTCMinutes();
- timestampStr += date.getUTCSeconds();
- return (timestampStr);
-}
-
-function rsaAlgFromOptions(opts) {
- if (!opts || !opts.hashAlgo || opts.hashAlgo === 'sha1')
- return ('5 (RSASHA1)');
- else if (opts.hashAlgo === 'sha256')
- return ('8 (RSASHA256)');
- else if (opts.hashAlgo === 'sha512')
- return ('10 (RSASHA512)');
- else
- throw (new Error('Unknown or unsupported hash: ' +
- opts.hashAlgo));
-}
-
-function writeRSA(key, options) {
- // if we're missing parts, add them.
- if (!key.part.dmodp || !key.part.dmodq) {
- utils.addRSAMissing(key);
- }
-
- var out = '';
- out += 'Private-key-format: v1.3\n';
- out += 'Algorithm: ' + rsaAlgFromOptions(options) + '\n';
- var n = utils.mpDenormalize(key.part['n'].data);
- out += 'Modulus: ' + n.toString('base64') + '\n';
- var e = utils.mpDenormalize(key.part['e'].data);
- out += 'PublicExponent: ' + e.toString('base64') + '\n';
- var d = utils.mpDenormalize(key.part['d'].data);
- out += 'PrivateExponent: ' + d.toString('base64') + '\n';
- var p = utils.mpDenormalize(key.part['p'].data);
- out += 'Prime1: ' + p.toString('base64') + '\n';
- var q = utils.mpDenormalize(key.part['q'].data);
- out += 'Prime2: ' + q.toString('base64') + '\n';
- var dmodp = utils.mpDenormalize(key.part['dmodp'].data);
- out += 'Exponent1: ' + dmodp.toString('base64') + '\n';
- var dmodq = utils.mpDenormalize(key.part['dmodq'].data);
- out += 'Exponent2: ' + dmodq.toString('base64') + '\n';
- var iqmp = utils.mpDenormalize(key.part['iqmp'].data);
- out += 'Coefficient: ' + iqmp.toString('base64') + '\n';
- // Assume that we're valid as-of now
- var timestamp = new Date();
- out += 'Created: ' + dnssecTimestamp(timestamp) + '\n';
- out += 'Publish: ' + dnssecTimestamp(timestamp) + '\n';
- out += 'Activate: ' + dnssecTimestamp(timestamp) + '\n';
- return (Buffer.from(out, 'ascii'));
-}
-
-function writeECDSA(key, options) {
- var out = '';
- out += 'Private-key-format: v1.3\n';
-
- if (key.curve === 'nistp256') {
- out += 'Algorithm: 13 (ECDSAP256SHA256)\n';
- } else if (key.curve === 'nistp384') {
- out += 'Algorithm: 14 (ECDSAP384SHA384)\n';
- } else {
- throw (new Error('Unsupported curve'));
- }
- var base64Key = key.part['d'].data.toString('base64');
- out += 'PrivateKey: ' + base64Key + '\n';
-
- // Assume that we're valid as-of now
- var timestamp = new Date();
- out += 'Created: ' + dnssecTimestamp(timestamp) + '\n';
- out += 'Publish: ' + dnssecTimestamp(timestamp) + '\n';
- out += 'Activate: ' + dnssecTimestamp(timestamp) + '\n';
-
- return (Buffer.from(out, 'ascii'));
-}
-
-function write(key, options) {
- if (PrivateKey.isPrivateKey(key)) {
- if (key.type === 'rsa') {
- return (writeRSA(key, options));
- } else if (key.type === 'ecdsa') {
- return (writeECDSA(key, options));
- } else {
- throw (new Error('Unsupported algorithm: ' + key.type));
- }
- } else if (Key.isKey(key)) {
- /*
- * RFC3110 requires a keyname, and a keytype, which we
- * don't really have a mechanism for specifying such
- * additional metadata.
- */
- throw (new Error('Format "dnssec" only supports ' +
- 'writing private keys'));
- } else {
- throw (new Error('key is not a Key or PrivateKey'));
- }
-}
diff --git a/node_modules/sshpk/lib/formats/openssh-cert.js b/node_modules/sshpk/lib/formats/openssh-cert.js
deleted file mode 100644
index 766f3d3..0000000
--- a/node_modules/sshpk/lib/formats/openssh-cert.js
+++ /dev/null
@@ -1,352 +0,0 @@
-// Copyright 2017 Joyent, Inc.
-
-module.exports = {
- read: read,
- verify: verify,
- sign: sign,
- signAsync: signAsync,
- write: write,
-
- /* Internal private API */
- fromBuffer: fromBuffer,
- toBuffer: toBuffer
-};
-
-var assert = require('assert-plus');
-var SSHBuffer = require('../ssh-buffer');
-var crypto = require('crypto');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var Identity = require('../identity');
-var rfc4253 = require('./rfc4253');
-var Signature = require('../signature');
-var utils = require('../utils');
-var Certificate = require('../certificate');
-
-function verify(cert, key) {
- /*
- * We always give an issuerKey, so if our verify() is being called then
- * there was no signature. Return false.
- */
- return (false);
-}
-
-var TYPES = {
- 'user': 1,
- 'host': 2
-};
-Object.keys(TYPES).forEach(function (k) { TYPES[TYPES[k]] = k; });
-
-var ECDSA_ALGO = /^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;
-
-function read(buf, options) {
- if (Buffer.isBuffer(buf))
- buf = buf.toString('ascii');
- var parts = buf.trim().split(/[ \t\n]+/g);
- if (parts.length < 2 || parts.length > 3)
- throw (new Error('Not a valid SSH certificate line'));
-
- var algo = parts[0];
- var data = parts[1];
-
- data = Buffer.from(data, 'base64');
- return (fromBuffer(data, algo));
-}
-
-function fromBuffer(data, algo, partial) {
- var sshbuf = new SSHBuffer({ buffer: data });
- var innerAlgo = sshbuf.readString();
- if (algo !== undefined && innerAlgo !== algo)
- throw (new Error('SSH certificate algorithm mismatch'));
- if (algo === undefined)
- algo = innerAlgo;
-
- var cert = {};
- cert.signatures = {};
- cert.signatures.openssh = {};
-
- cert.signatures.openssh.nonce = sshbuf.readBuffer();
-
- var key = {};
- var parts = (key.parts = []);
- key.type = getAlg(algo);
-
- var partCount = algs.info[key.type].parts.length;
- while (parts.length < partCount)
- parts.push(sshbuf.readPart());
- assert.ok(parts.length >= 1, 'key must have at least one part');
-
- var algInfo = algs.info[key.type];
- if (key.type === 'ecdsa') {
- var res = ECDSA_ALGO.exec(algo);
- assert.ok(res !== null);
- assert.strictEqual(res[1], parts[0].data.toString());
- }
-
- for (var i = 0; i < algInfo.parts.length; ++i) {
- parts[i].name = algInfo.parts[i];
- if (parts[i].name !== 'curve' &&
- algInfo.normalize !== false) {
- var p = parts[i];
- p.data = utils.mpNormalize(p.data);
- }
- }
-
- cert.subjectKey = new Key(key);
-
- cert.serial = sshbuf.readInt64();
-
- var type = TYPES[sshbuf.readInt()];
- assert.string(type, 'valid cert type');
-
- cert.signatures.openssh.keyId = sshbuf.readString();
-
- var principals = [];
- var pbuf = sshbuf.readBuffer();
- var psshbuf = new SSHBuffer({ buffer: pbuf });
- while (!psshbuf.atEnd())
- principals.push(psshbuf.readString());
- if (principals.length === 0)
- principals = ['*'];
-
- cert.subjects = principals.map(function (pr) {
- if (type === 'user')
- return (Identity.forUser(pr));
- else if (type === 'host')
- return (Identity.forHost(pr));
- throw (new Error('Unknown identity type ' + type));
- });
-
- cert.validFrom = int64ToDate(sshbuf.readInt64());
- cert.validUntil = int64ToDate(sshbuf.readInt64());
-
- var exts = [];
- var extbuf = new SSHBuffer({ buffer: sshbuf.readBuffer() });
- var ext;
- while (!extbuf.atEnd()) {
- ext = { critical: true };
- ext.name = extbuf.readString();
- ext.data = extbuf.readBuffer();
- exts.push(ext);
- }
- extbuf = new SSHBuffer({ buffer: sshbuf.readBuffer() });
- while (!extbuf.atEnd()) {
- ext = { critical: false };
- ext.name = extbuf.readString();
- ext.data = extbuf.readBuffer();
- exts.push(ext);
- }
- cert.signatures.openssh.exts = exts;
-
- /* reserved */
- sshbuf.readBuffer();
-
- var signingKeyBuf = sshbuf.readBuffer();
- cert.issuerKey = rfc4253.read(signingKeyBuf);
-
- /*
- * OpenSSH certs don't give the identity of the issuer, just their
- * public key. So, we use an Identity that matches anything. The
- * isSignedBy() function will later tell you if the key matches.
- */
- cert.issuer = Identity.forHost('**');
-
- var sigBuf = sshbuf.readBuffer();
- cert.signatures.openssh.signature =
- Signature.parse(sigBuf, cert.issuerKey.type, 'ssh');
-
- if (partial !== undefined) {
- partial.remainder = sshbuf.remainder();
- partial.consumed = sshbuf._offset;
- }
-
- return (new Certificate(cert));
-}
-
-function int64ToDate(buf) {
- var i = buf.readUInt32BE(0) * 4294967296;
- i += buf.readUInt32BE(4);
- var d = new Date();
- d.setTime(i * 1000);
- d.sourceInt64 = buf;
- return (d);
-}
-
-function dateToInt64(date) {
- if (date.sourceInt64 !== undefined)
- return (date.sourceInt64);
- var i = Math.round(date.getTime() / 1000);
- var upper = Math.floor(i / 4294967296);
- var lower = Math.floor(i % 4294967296);
- var buf = Buffer.alloc(8);
- buf.writeUInt32BE(upper, 0);
- buf.writeUInt32BE(lower, 4);
- return (buf);
-}
-
-function sign(cert, key) {
- if (cert.signatures.openssh === undefined)
- cert.signatures.openssh = {};
- try {
- var blob = toBuffer(cert, true);
- } catch (e) {
- delete (cert.signatures.openssh);
- return (false);
- }
- var sig = cert.signatures.openssh;
- var hashAlgo = undefined;
- if (key.type === 'rsa' || key.type === 'dsa')
- hashAlgo = 'sha1';
- var signer = key.createSign(hashAlgo);
- signer.write(blob);
- sig.signature = signer.sign();
- return (true);
-}
-
-function signAsync(cert, signer, done) {
- if (cert.signatures.openssh === undefined)
- cert.signatures.openssh = {};
- try {
- var blob = toBuffer(cert, true);
- } catch (e) {
- delete (cert.signatures.openssh);
- done(e);
- return;
- }
- var sig = cert.signatures.openssh;
-
- signer(blob, function (err, signature) {
- if (err) {
- done(err);
- return;
- }
- try {
- /*
- * This will throw if the signature isn't of a
- * type/algo that can be used for SSH.
- */
- signature.toBuffer('ssh');
- } catch (e) {
- done(e);
- return;
- }
- sig.signature = signature;
- done();
- });
-}
-
-function write(cert, options) {
- if (options === undefined)
- options = {};
-
- var blob = toBuffer(cert);
- var out = getCertType(cert.subjectKey) + ' ' + blob.toString('base64');
- if (options.comment)
- out = out + ' ' + options.comment;
- return (out);
-}
-
-
-function toBuffer(cert, noSig) {
- assert.object(cert.signatures.openssh, 'signature for openssh format');
- var sig = cert.signatures.openssh;
-
- if (sig.nonce === undefined)
- sig.nonce = crypto.randomBytes(16);
- var buf = new SSHBuffer({});
- buf.writeString(getCertType(cert.subjectKey));
- buf.writeBuffer(sig.nonce);
-
- var key = cert.subjectKey;
- var algInfo = algs.info[key.type];
- algInfo.parts.forEach(function (part) {
- buf.writePart(key.part[part]);
- });
-
- buf.writeInt64(cert.serial);
-
- var type = cert.subjects[0].type;
- assert.notStrictEqual(type, 'unknown');
- cert.subjects.forEach(function (id) {
- assert.strictEqual(id.type, type);
- });
- type = TYPES[type];
- buf.writeInt(type);
-
- if (sig.keyId === undefined) {
- sig.keyId = cert.subjects[0].type + '_' +
- (cert.subjects[0].uid || cert.subjects[0].hostname);
- }
- buf.writeString(sig.keyId);
-
- var sub = new SSHBuffer({});
- cert.subjects.forEach(function (id) {
- if (type === TYPES.host)
- sub.writeString(id.hostname);
- else if (type === TYPES.user)
- sub.writeString(id.uid);
- });
- buf.writeBuffer(sub.toBuffer());
-
- buf.writeInt64(dateToInt64(cert.validFrom));
- buf.writeInt64(dateToInt64(cert.validUntil));
-
- var exts = sig.exts;
- if (exts === undefined)
- exts = [];
-
- var extbuf = new SSHBuffer({});
- exts.forEach(function (ext) {
- if (ext.critical !== true)
- return;
- extbuf.writeString(ext.name);
- extbuf.writeBuffer(ext.data);
- });
- buf.writeBuffer(extbuf.toBuffer());
-
- extbuf = new SSHBuffer({});
- exts.forEach(function (ext) {
- if (ext.critical === true)
- return;
- extbuf.writeString(ext.name);
- extbuf.writeBuffer(ext.data);
- });
- buf.writeBuffer(extbuf.toBuffer());
-
- /* reserved */
- buf.writeBuffer(Buffer.alloc(0));
-
- sub = rfc4253.write(cert.issuerKey);
- buf.writeBuffer(sub);
-
- if (!noSig)
- buf.writeBuffer(sig.signature.toBuffer('ssh'));
-
- return (buf.toBuffer());
-}
-
-function getAlg(certType) {
- if (certType === 'ssh-rsa-cert-v01@openssh.com')
- return ('rsa');
- if (certType === 'ssh-dss-cert-v01@openssh.com')
- return ('dsa');
- if (certType.match(ECDSA_ALGO))
- return ('ecdsa');
- if (certType === 'ssh-ed25519-cert-v01@openssh.com')
- return ('ed25519');
- throw (new Error('Unsupported cert type ' + certType));
-}
-
-function getCertType(key) {
- if (key.type === 'rsa')
- return ('ssh-rsa-cert-v01@openssh.com');
- if (key.type === 'dsa')
- return ('ssh-dss-cert-v01@openssh.com');
- if (key.type === 'ecdsa')
- return ('ecdsa-sha2-' + key.curve + '-cert-v01@openssh.com');
- if (key.type === 'ed25519')
- return ('ssh-ed25519-cert-v01@openssh.com');
- throw (new Error('Unsupported key type ' + key.type));
-}
diff --git a/node_modules/sshpk/lib/formats/pem.js b/node_modules/sshpk/lib/formats/pem.js
deleted file mode 100644
index bbe78fc..0000000
--- a/node_modules/sshpk/lib/formats/pem.js
+++ /dev/null
@@ -1,290 +0,0 @@
-// Copyright 2018 Joyent, Inc.
-
-module.exports = {
- read: read,
- write: write
-};
-
-var assert = require('assert-plus');
-var asn1 = require('asn1');
-var crypto = require('crypto');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var utils = require('../utils');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-
-var pkcs1 = require('./pkcs1');
-var pkcs8 = require('./pkcs8');
-var sshpriv = require('./ssh-private');
-var rfc4253 = require('./rfc4253');
-
-var errors = require('../errors');
-
-var OID_PBES2 = '1.2.840.113549.1.5.13';
-var OID_PBKDF2 = '1.2.840.113549.1.5.12';
-
-var OID_TO_CIPHER = {
- '1.2.840.113549.3.7': '3des-cbc',
- '2.16.840.1.101.3.4.1.2': 'aes128-cbc',
- '2.16.840.1.101.3.4.1.42': 'aes256-cbc'
-};
-var CIPHER_TO_OID = {};
-Object.keys(OID_TO_CIPHER).forEach(function (k) {
- CIPHER_TO_OID[OID_TO_CIPHER[k]] = k;
-});
-
-var OID_TO_HASH = {
- '1.2.840.113549.2.7': 'sha1',
- '1.2.840.113549.2.9': 'sha256',
- '1.2.840.113549.2.11': 'sha512'
-};
-var HASH_TO_OID = {};
-Object.keys(OID_TO_HASH).forEach(function (k) {
- HASH_TO_OID[OID_TO_HASH[k]] = k;
-});
-
-/*
- * For reading we support both PKCS#1 and PKCS#8. If we find a private key,
- * we just take the public component of it and use that.
- */
-function read(buf, options, forceType) {
- var input = buf;
- if (typeof (buf) !== 'string') {
- assert.buffer(buf, 'buf');
- buf = buf.toString('ascii');
- }
-
- var lines = buf.trim().split(/[\r\n]+/g);
-
- var m;
- var si = -1;
- while (!m && si < lines.length) {
- m = lines[++si].match(/*JSSTYLED*/
- /[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);
- }
- assert.ok(m, 'invalid PEM header');
-
- var m2;
- var ei = lines.length;
- while (!m2 && ei > 0) {
- m2 = lines[--ei].match(/*JSSTYLED*/
- /[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);
- }
- assert.ok(m2, 'invalid PEM footer');
-
- /* Begin and end banners must match key type */
- assert.equal(m[2], m2[2]);
- var type = m[2].toLowerCase();
-
- var alg;
- if (m[1]) {
- /* They also must match algorithms, if given */
- assert.equal(m[1], m2[1], 'PEM header and footer mismatch');
- alg = m[1].trim();
- }
-
- lines = lines.slice(si, ei + 1);
-
- var headers = {};
- while (true) {
- lines = lines.slice(1);
- m = lines[0].match(/*JSSTYLED*/
- /^([A-Za-z0-9-]+): (.+)$/);
- if (!m)
- break;
- headers[m[1].toLowerCase()] = m[2];
- }
-
- /* Chop off the first and last lines */
- lines = lines.slice(0, -1).join('');
- buf = Buffer.from(lines, 'base64');
-
- var cipher, key, iv;
- if (headers['proc-type']) {
- var parts = headers['proc-type'].split(',');
- if (parts[0] === '4' && parts[1] === 'ENCRYPTED') {
- if (typeof (options.passphrase) === 'string') {
- options.passphrase = Buffer.from(
- options.passphrase, 'utf-8');
- }
- if (!Buffer.isBuffer(options.passphrase)) {
- throw (new errors.KeyEncryptedError(
- options.filename, 'PEM'));
- } else {
- parts = headers['dek-info'].split(',');
- assert.ok(parts.length === 2);
- cipher = parts[0].toLowerCase();
- iv = Buffer.from(parts[1], 'hex');
- key = utils.opensslKeyDeriv(cipher, iv,
- options.passphrase, 1).key;
- }
- }
- }
-
- if (alg && alg.toLowerCase() === 'encrypted') {
- var eder = new asn1.BerReader(buf);
- var pbesEnd;
- eder.readSequence();
-
- eder.readSequence();
- pbesEnd = eder.offset + eder.length;
-
- var method = eder.readOID();
- if (method !== OID_PBES2) {
- throw (new Error('Unsupported PEM/PKCS8 encryption ' +
- 'scheme: ' + method));
- }
-
- eder.readSequence(); /* PBES2-params */
-
- eder.readSequence(); /* keyDerivationFunc */
- var kdfEnd = eder.offset + eder.length;
- var kdfOid = eder.readOID();
- if (kdfOid !== OID_PBKDF2)
- throw (new Error('Unsupported PBES2 KDF: ' + kdfOid));
- eder.readSequence();
- var salt = eder.readString(asn1.Ber.OctetString, true);
- var iterations = eder.readInt();
- var hashAlg = 'sha1';
- if (eder.offset < kdfEnd) {
- eder.readSequence();
- var hashAlgOid = eder.readOID();
- hashAlg = OID_TO_HASH[hashAlgOid];
- if (hashAlg === undefined) {
- throw (new Error('Unsupported PBKDF2 hash: ' +
- hashAlgOid));
- }
- }
- eder._offset = kdfEnd;
-
- eder.readSequence(); /* encryptionScheme */
- var cipherOid = eder.readOID();
- cipher = OID_TO_CIPHER[cipherOid];
- if (cipher === undefined) {
- throw (new Error('Unsupported PBES2 cipher: ' +
- cipherOid));
- }
- iv = eder.readString(asn1.Ber.OctetString, true);
-
- eder._offset = pbesEnd;
- buf = eder.readString(asn1.Ber.OctetString, true);
-
- if (typeof (options.passphrase) === 'string') {
- options.passphrase = Buffer.from(
- options.passphrase, 'utf-8');
- }
- if (!Buffer.isBuffer(options.passphrase)) {
- throw (new errors.KeyEncryptedError(
- options.filename, 'PEM'));
- }
-
- var cinfo = utils.opensshCipherInfo(cipher);
-
- cipher = cinfo.opensslName;
- key = utils.pbkdf2(hashAlg, salt, iterations, cinfo.keySize,
- options.passphrase);
- alg = undefined;
- }
-
- if (cipher && key && iv) {
- var cipherStream = crypto.createDecipheriv(cipher, key, iv);
- var chunk, chunks = [];
- cipherStream.once('error', function (e) {
- if (e.toString().indexOf('bad decrypt') !== -1) {
- throw (new Error('Incorrect passphrase ' +
- 'supplied, could not decrypt key'));
- }
- throw (e);
- });
- cipherStream.write(buf);
- cipherStream.end();
- while ((chunk = cipherStream.read()) !== null)
- chunks.push(chunk);
- buf = Buffer.concat(chunks);
- }
-
- /* The new OpenSSH internal format abuses PEM headers */
- if (alg && alg.toLowerCase() === 'openssh')
- return (sshpriv.readSSHPrivate(type, buf, options));
- if (alg && alg.toLowerCase() === 'ssh2')
- return (rfc4253.readType(type, buf, options));
-
- var der = new asn1.BerReader(buf);
- der.originalInput = input;
-
- /*
- * All of the PEM file types start with a sequence tag, so chop it
- * off here
- */
- der.readSequence();
-
- /* PKCS#1 type keys name an algorithm in the banner explicitly */
- if (alg) {
- if (forceType)
- assert.strictEqual(forceType, 'pkcs1');
- return (pkcs1.readPkcs1(alg, type, der));
- } else {
- if (forceType)
- assert.strictEqual(forceType, 'pkcs8');
- return (pkcs8.readPkcs8(alg, type, der));
- }
-}
-
-function write(key, options, type) {
- assert.object(key);
-
- var alg = {
- 'ecdsa': 'EC',
- 'rsa': 'RSA',
- 'dsa': 'DSA',
- 'ed25519': 'EdDSA'
- }[key.type];
- var header;
-
- var der = new asn1.BerWriter();
-
- if (PrivateKey.isPrivateKey(key)) {
- if (type && type === 'pkcs8') {
- header = 'PRIVATE KEY';
- pkcs8.writePkcs8(der, key);
- } else {
- if (type)
- assert.strictEqual(type, 'pkcs1');
- header = alg + ' PRIVATE KEY';
- pkcs1.writePkcs1(der, key);
- }
-
- } else if (Key.isKey(key)) {
- if (type && type === 'pkcs1') {
- header = alg + ' PUBLIC KEY';
- pkcs1.writePkcs1(der, key);
- } else {
- if (type)
- assert.strictEqual(type, 'pkcs8');
- header = 'PUBLIC KEY';
- pkcs8.writePkcs8(der, key);
- }
-
- } else {
- throw (new Error('key is not a Key or PrivateKey'));
- }
-
- var tmp = der.buffer.toString('base64');
- var len = tmp.length + (tmp.length / 64) +
- 18 + 16 + header.length*2 + 10;
- var buf = Buffer.alloc(len);
- var o = 0;
- o += buf.write('-----BEGIN ' + header + '-----\n', o);
- for (var i = 0; i < tmp.length; ) {
- var limit = i + 64;
- if (limit > tmp.length)
- limit = tmp.length;
- o += buf.write(tmp.slice(i, limit), o);
- buf[o++] = 10;
- i = limit;
- }
- o += buf.write('-----END ' + header + '-----\n', o);
-
- return (buf.slice(0, o));
-}
diff --git a/node_modules/sshpk/lib/formats/pkcs1.js b/node_modules/sshpk/lib/formats/pkcs1.js
deleted file mode 100644
index bc48550..0000000
--- a/node_modules/sshpk/lib/formats/pkcs1.js
+++ /dev/null
@@ -1,373 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = {
- read: read,
- readPkcs1: readPkcs1,
- write: write,
- writePkcs1: writePkcs1
-};
-
-var assert = require('assert-plus');
-var asn1 = require('asn1');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var utils = require('../utils');
-
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var pem = require('./pem');
-
-var pkcs8 = require('./pkcs8');
-var readECDSACurve = pkcs8.readECDSACurve;
-
-function read(buf, options) {
- return (pem.read(buf, options, 'pkcs1'));
-}
-
-function write(key, options) {
- return (pem.write(key, options, 'pkcs1'));
-}
-
-/* Helper to read in a single mpint */
-function readMPInt(der, nm) {
- assert.strictEqual(der.peek(), asn1.Ber.Integer,
- nm + ' is not an Integer');
- return (utils.mpNormalize(der.readString(asn1.Ber.Integer, true)));
-}
-
-function readPkcs1(alg, type, der) {
- switch (alg) {
- case 'RSA':
- if (type === 'public')
- return (readPkcs1RSAPublic(der));
- else if (type === 'private')
- return (readPkcs1RSAPrivate(der));
- throw (new Error('Unknown key type: ' + type));
- case 'DSA':
- if (type === 'public')
- return (readPkcs1DSAPublic(der));
- else if (type === 'private')
- return (readPkcs1DSAPrivate(der));
- throw (new Error('Unknown key type: ' + type));
- case 'EC':
- case 'ECDSA':
- if (type === 'private')
- return (readPkcs1ECDSAPrivate(der));
- else if (type === 'public')
- return (readPkcs1ECDSAPublic(der));
- throw (new Error('Unknown key type: ' + type));
- case 'EDDSA':
- case 'EdDSA':
- if (type === 'private')
- return (readPkcs1EdDSAPrivate(der));
- throw (new Error(type + ' keys not supported with EdDSA'));
- default:
- throw (new Error('Unknown key algo: ' + alg));
- }
-}
-
-function readPkcs1RSAPublic(der) {
- // modulus and exponent
- var n = readMPInt(der, 'modulus');
- var e = readMPInt(der, 'exponent');
-
- // now, make the key
- var key = {
- type: 'rsa',
- parts: [
- { name: 'e', data: e },
- { name: 'n', data: n }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs1RSAPrivate(der) {
- var version = readMPInt(der, 'version');
- assert.strictEqual(version[0], 0);
-
- // modulus then public exponent
- var n = readMPInt(der, 'modulus');
- var e = readMPInt(der, 'public exponent');
- var d = readMPInt(der, 'private exponent');
- var p = readMPInt(der, 'prime1');
- var q = readMPInt(der, 'prime2');
- var dmodp = readMPInt(der, 'exponent1');
- var dmodq = readMPInt(der, 'exponent2');
- var iqmp = readMPInt(der, 'iqmp');
-
- // now, make the key
- var key = {
- type: 'rsa',
- parts: [
- { name: 'n', data: n },
- { name: 'e', data: e },
- { name: 'd', data: d },
- { name: 'iqmp', data: iqmp },
- { name: 'p', data: p },
- { name: 'q', data: q },
- { name: 'dmodp', data: dmodp },
- { name: 'dmodq', data: dmodq }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function readPkcs1DSAPrivate(der) {
- var version = readMPInt(der, 'version');
- assert.strictEqual(version.readUInt8(0), 0);
-
- var p = readMPInt(der, 'p');
- var q = readMPInt(der, 'q');
- var g = readMPInt(der, 'g');
- var y = readMPInt(der, 'y');
- var x = readMPInt(der, 'x');
-
- // now, make the key
- var key = {
- type: 'dsa',
- parts: [
- { name: 'p', data: p },
- { name: 'q', data: q },
- { name: 'g', data: g },
- { name: 'y', data: y },
- { name: 'x', data: x }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function readPkcs1EdDSAPrivate(der) {
- var version = readMPInt(der, 'version');
- assert.strictEqual(version.readUInt8(0), 1);
-
- // private key
- var k = der.readString(asn1.Ber.OctetString, true);
-
- der.readSequence(0xa0);
- var oid = der.readOID();
- assert.strictEqual(oid, '1.3.101.112', 'the ed25519 curve identifier');
-
- der.readSequence(0xa1);
- var A = utils.readBitString(der);
-
- var key = {
- type: 'ed25519',
- parts: [
- { name: 'A', data: utils.zeroPadToLength(A, 32) },
- { name: 'k', data: k }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function readPkcs1DSAPublic(der) {
- var y = readMPInt(der, 'y');
- var p = readMPInt(der, 'p');
- var q = readMPInt(der, 'q');
- var g = readMPInt(der, 'g');
-
- var key = {
- type: 'dsa',
- parts: [
- { name: 'y', data: y },
- { name: 'p', data: p },
- { name: 'q', data: q },
- { name: 'g', data: g }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs1ECDSAPublic(der) {
- der.readSequence();
-
- var oid = der.readOID();
- assert.strictEqual(oid, '1.2.840.10045.2.1', 'must be ecPublicKey');
-
- var curveOid = der.readOID();
-
- var curve;
- var curves = Object.keys(algs.curves);
- for (var j = 0; j < curves.length; ++j) {
- var c = curves[j];
- var cd = algs.curves[c];
- if (cd.pkcs8oid === curveOid) {
- curve = c;
- break;
- }
- }
- assert.string(curve, 'a known ECDSA named curve');
-
- var Q = der.readString(asn1.Ber.BitString, true);
- Q = utils.ecNormalize(Q);
-
- var key = {
- type: 'ecdsa',
- parts: [
- { name: 'curve', data: Buffer.from(curve) },
- { name: 'Q', data: Q }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs1ECDSAPrivate(der) {
- var version = readMPInt(der, 'version');
- assert.strictEqual(version.readUInt8(0), 1);
-
- // private key
- var d = der.readString(asn1.Ber.OctetString, true);
-
- der.readSequence(0xa0);
- var curve = readECDSACurve(der);
- assert.string(curve, 'a known elliptic curve');
-
- der.readSequence(0xa1);
- var Q = der.readString(asn1.Ber.BitString, true);
- Q = utils.ecNormalize(Q);
-
- var key = {
- type: 'ecdsa',
- parts: [
- { name: 'curve', data: Buffer.from(curve) },
- { name: 'Q', data: Q },
- { name: 'd', data: d }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function writePkcs1(der, key) {
- der.startSequence();
-
- switch (key.type) {
- case 'rsa':
- if (PrivateKey.isPrivateKey(key))
- writePkcs1RSAPrivate(der, key);
- else
- writePkcs1RSAPublic(der, key);
- break;
- case 'dsa':
- if (PrivateKey.isPrivateKey(key))
- writePkcs1DSAPrivate(der, key);
- else
- writePkcs1DSAPublic(der, key);
- break;
- case 'ecdsa':
- if (PrivateKey.isPrivateKey(key))
- writePkcs1ECDSAPrivate(der, key);
- else
- writePkcs1ECDSAPublic(der, key);
- break;
- case 'ed25519':
- if (PrivateKey.isPrivateKey(key))
- writePkcs1EdDSAPrivate(der, key);
- else
- writePkcs1EdDSAPublic(der, key);
- break;
- default:
- throw (new Error('Unknown key algo: ' + key.type));
- }
-
- der.endSequence();
-}
-
-function writePkcs1RSAPublic(der, key) {
- der.writeBuffer(key.part.n.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.e.data, asn1.Ber.Integer);
-}
-
-function writePkcs1RSAPrivate(der, key) {
- var ver = Buffer.from([0]);
- der.writeBuffer(ver, asn1.Ber.Integer);
-
- der.writeBuffer(key.part.n.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.e.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.d.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.p.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.q.data, asn1.Ber.Integer);
- if (!key.part.dmodp || !key.part.dmodq)
- utils.addRSAMissing(key);
- der.writeBuffer(key.part.dmodp.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.dmodq.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.iqmp.data, asn1.Ber.Integer);
-}
-
-function writePkcs1DSAPrivate(der, key) {
- var ver = Buffer.from([0]);
- der.writeBuffer(ver, asn1.Ber.Integer);
-
- der.writeBuffer(key.part.p.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.q.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.g.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.y.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.x.data, asn1.Ber.Integer);
-}
-
-function writePkcs1DSAPublic(der, key) {
- der.writeBuffer(key.part.y.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.p.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.q.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.g.data, asn1.Ber.Integer);
-}
-
-function writePkcs1ECDSAPublic(der, key) {
- der.startSequence();
-
- der.writeOID('1.2.840.10045.2.1'); /* ecPublicKey */
- var curve = key.part.curve.data.toString();
- var curveOid = algs.curves[curve].pkcs8oid;
- assert.string(curveOid, 'a known ECDSA named curve');
- der.writeOID(curveOid);
-
- der.endSequence();
-
- var Q = utils.ecNormalize(key.part.Q.data, true);
- der.writeBuffer(Q, asn1.Ber.BitString);
-}
-
-function writePkcs1ECDSAPrivate(der, key) {
- var ver = Buffer.from([1]);
- der.writeBuffer(ver, asn1.Ber.Integer);
-
- der.writeBuffer(key.part.d.data, asn1.Ber.OctetString);
-
- der.startSequence(0xa0);
- var curve = key.part.curve.data.toString();
- var curveOid = algs.curves[curve].pkcs8oid;
- assert.string(curveOid, 'a known ECDSA named curve');
- der.writeOID(curveOid);
- der.endSequence();
-
- der.startSequence(0xa1);
- var Q = utils.ecNormalize(key.part.Q.data, true);
- der.writeBuffer(Q, asn1.Ber.BitString);
- der.endSequence();
-}
-
-function writePkcs1EdDSAPrivate(der, key) {
- var ver = Buffer.from([1]);
- der.writeBuffer(ver, asn1.Ber.Integer);
-
- der.writeBuffer(key.part.k.data, asn1.Ber.OctetString);
-
- der.startSequence(0xa0);
- der.writeOID('1.3.101.112');
- der.endSequence();
-
- der.startSequence(0xa1);
- utils.writeBitString(der, key.part.A.data);
- der.endSequence();
-}
-
-function writePkcs1EdDSAPublic(der, key) {
- throw (new Error('Public keys are not supported for EdDSA PKCS#1'));
-}
diff --git a/node_modules/sshpk/lib/formats/pkcs8.js b/node_modules/sshpk/lib/formats/pkcs8.js
deleted file mode 100644
index 2ca3ca7..0000000
--- a/node_modules/sshpk/lib/formats/pkcs8.js
+++ /dev/null
@@ -1,631 +0,0 @@
-// Copyright 2018 Joyent, Inc.
-
-module.exports = {
- read: read,
- readPkcs8: readPkcs8,
- write: write,
- writePkcs8: writePkcs8,
- pkcs8ToBuffer: pkcs8ToBuffer,
-
- readECDSACurve: readECDSACurve,
- writeECDSACurve: writeECDSACurve
-};
-
-var assert = require('assert-plus');
-var asn1 = require('asn1');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var utils = require('../utils');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var pem = require('./pem');
-
-function read(buf, options) {
- return (pem.read(buf, options, 'pkcs8'));
-}
-
-function write(key, options) {
- return (pem.write(key, options, 'pkcs8'));
-}
-
-/* Helper to read in a single mpint */
-function readMPInt(der, nm) {
- assert.strictEqual(der.peek(), asn1.Ber.Integer,
- nm + ' is not an Integer');
- return (utils.mpNormalize(der.readString(asn1.Ber.Integer, true)));
-}
-
-function readPkcs8(alg, type, der) {
- /* Private keys in pkcs#8 format have a weird extra int */
- if (der.peek() === asn1.Ber.Integer) {
- assert.strictEqual(type, 'private',
- 'unexpected Integer at start of public key');
- der.readString(asn1.Ber.Integer, true);
- }
-
- der.readSequence();
- var next = der.offset + der.length;
-
- var oid = der.readOID();
- switch (oid) {
- case '1.2.840.113549.1.1.1':
- der._offset = next;
- if (type === 'public')
- return (readPkcs8RSAPublic(der));
- else
- return (readPkcs8RSAPrivate(der));
- case '1.2.840.10040.4.1':
- if (type === 'public')
- return (readPkcs8DSAPublic(der));
- else
- return (readPkcs8DSAPrivate(der));
- case '1.2.840.10045.2.1':
- if (type === 'public')
- return (readPkcs8ECDSAPublic(der));
- else
- return (readPkcs8ECDSAPrivate(der));
- case '1.3.101.112':
- if (type === 'public') {
- return (readPkcs8EdDSAPublic(der));
- } else {
- return (readPkcs8EdDSAPrivate(der));
- }
- case '1.3.101.110':
- if (type === 'public') {
- return (readPkcs8X25519Public(der));
- } else {
- return (readPkcs8X25519Private(der));
- }
- default:
- throw (new Error('Unknown key type OID ' + oid));
- }
-}
-
-function readPkcs8RSAPublic(der) {
- // bit string sequence
- der.readSequence(asn1.Ber.BitString);
- der.readByte();
- der.readSequence();
-
- // modulus
- var n = readMPInt(der, 'modulus');
- var e = readMPInt(der, 'exponent');
-
- // now, make the key
- var key = {
- type: 'rsa',
- source: der.originalInput,
- parts: [
- { name: 'e', data: e },
- { name: 'n', data: n }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs8RSAPrivate(der) {
- der.readSequence(asn1.Ber.OctetString);
- der.readSequence();
-
- var ver = readMPInt(der, 'version');
- assert.equal(ver[0], 0x0, 'unknown RSA private key version');
-
- // modulus then public exponent
- var n = readMPInt(der, 'modulus');
- var e = readMPInt(der, 'public exponent');
- var d = readMPInt(der, 'private exponent');
- var p = readMPInt(der, 'prime1');
- var q = readMPInt(der, 'prime2');
- var dmodp = readMPInt(der, 'exponent1');
- var dmodq = readMPInt(der, 'exponent2');
- var iqmp = readMPInt(der, 'iqmp');
-
- // now, make the key
- var key = {
- type: 'rsa',
- parts: [
- { name: 'n', data: n },
- { name: 'e', data: e },
- { name: 'd', data: d },
- { name: 'iqmp', data: iqmp },
- { name: 'p', data: p },
- { name: 'q', data: q },
- { name: 'dmodp', data: dmodp },
- { name: 'dmodq', data: dmodq }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function readPkcs8DSAPublic(der) {
- der.readSequence();
-
- var p = readMPInt(der, 'p');
- var q = readMPInt(der, 'q');
- var g = readMPInt(der, 'g');
-
- // bit string sequence
- der.readSequence(asn1.Ber.BitString);
- der.readByte();
-
- var y = readMPInt(der, 'y');
-
- // now, make the key
- var key = {
- type: 'dsa',
- parts: [
- { name: 'p', data: p },
- { name: 'q', data: q },
- { name: 'g', data: g },
- { name: 'y', data: y }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs8DSAPrivate(der) {
- der.readSequence();
-
- var p = readMPInt(der, 'p');
- var q = readMPInt(der, 'q');
- var g = readMPInt(der, 'g');
-
- der.readSequence(asn1.Ber.OctetString);
- var x = readMPInt(der, 'x');
-
- /* The pkcs#8 format does not include the public key */
- var y = utils.calculateDSAPublic(g, p, x);
-
- var key = {
- type: 'dsa',
- parts: [
- { name: 'p', data: p },
- { name: 'q', data: q },
- { name: 'g', data: g },
- { name: 'y', data: y },
- { name: 'x', data: x }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function readECDSACurve(der) {
- var curveName, curveNames;
- var j, c, cd;
-
- if (der.peek() === asn1.Ber.OID) {
- var oid = der.readOID();
-
- curveNames = Object.keys(algs.curves);
- for (j = 0; j < curveNames.length; ++j) {
- c = curveNames[j];
- cd = algs.curves[c];
- if (cd.pkcs8oid === oid) {
- curveName = c;
- break;
- }
- }
-
- } else {
- // ECParameters sequence
- der.readSequence();
- var version = der.readString(asn1.Ber.Integer, true);
- assert.strictEqual(version[0], 1, 'ECDSA key not version 1');
-
- var curve = {};
-
- // FieldID sequence
- der.readSequence();
- var fieldTypeOid = der.readOID();
- assert.strictEqual(fieldTypeOid, '1.2.840.10045.1.1',
- 'ECDSA key is not from a prime-field');
- var p = curve.p = utils.mpNormalize(
- der.readString(asn1.Ber.Integer, true));
- /*
- * p always starts with a 1 bit, so count the zeros to get its
- * real size.
- */
- curve.size = p.length * 8 - utils.countZeros(p);
-
- // Curve sequence
- der.readSequence();
- curve.a = utils.mpNormalize(
- der.readString(asn1.Ber.OctetString, true));
- curve.b = utils.mpNormalize(
- der.readString(asn1.Ber.OctetString, true));
- if (der.peek() === asn1.Ber.BitString)
- curve.s = der.readString(asn1.Ber.BitString, true);
-
- // Combined Gx and Gy
- curve.G = der.readString(asn1.Ber.OctetString, true);
- assert.strictEqual(curve.G[0], 0x4,
- 'uncompressed G is required');
-
- curve.n = utils.mpNormalize(
- der.readString(asn1.Ber.Integer, true));
- curve.h = utils.mpNormalize(
- der.readString(asn1.Ber.Integer, true));
- assert.strictEqual(curve.h[0], 0x1, 'a cofactor=1 curve is ' +
- 'required');
-
- curveNames = Object.keys(algs.curves);
- var ks = Object.keys(curve);
- for (j = 0; j < curveNames.length; ++j) {
- c = curveNames[j];
- cd = algs.curves[c];
- var equal = true;
- for (var i = 0; i < ks.length; ++i) {
- var k = ks[i];
- if (cd[k] === undefined)
- continue;
- if (typeof (cd[k]) === 'object' &&
- cd[k].equals !== undefined) {
- if (!cd[k].equals(curve[k])) {
- equal = false;
- break;
- }
- } else if (Buffer.isBuffer(cd[k])) {
- if (cd[k].toString('binary')
- !== curve[k].toString('binary')) {
- equal = false;
- break;
- }
- } else {
- if (cd[k] !== curve[k]) {
- equal = false;
- break;
- }
- }
- }
- if (equal) {
- curveName = c;
- break;
- }
- }
- }
- return (curveName);
-}
-
-function readPkcs8ECDSAPrivate(der) {
- var curveName = readECDSACurve(der);
- assert.string(curveName, 'a known elliptic curve');
-
- der.readSequence(asn1.Ber.OctetString);
- der.readSequence();
-
- var version = readMPInt(der, 'version');
- assert.equal(version[0], 1, 'unknown version of ECDSA key');
-
- var d = der.readString(asn1.Ber.OctetString, true);
- var Q;
-
- if (der.peek() == 0xa0) {
- der.readSequence(0xa0);
- der._offset += der.length;
- }
- if (der.peek() == 0xa1) {
- der.readSequence(0xa1);
- Q = der.readString(asn1.Ber.BitString, true);
- Q = utils.ecNormalize(Q);
- }
-
- if (Q === undefined) {
- var pub = utils.publicFromPrivateECDSA(curveName, d);
- Q = pub.part.Q.data;
- }
-
- var key = {
- type: 'ecdsa',
- parts: [
- { name: 'curve', data: Buffer.from(curveName) },
- { name: 'Q', data: Q },
- { name: 'd', data: d }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function readPkcs8ECDSAPublic(der) {
- var curveName = readECDSACurve(der);
- assert.string(curveName, 'a known elliptic curve');
-
- var Q = der.readString(asn1.Ber.BitString, true);
- Q = utils.ecNormalize(Q);
-
- var key = {
- type: 'ecdsa',
- parts: [
- { name: 'curve', data: Buffer.from(curveName) },
- { name: 'Q', data: Q }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs8EdDSAPublic(der) {
- if (der.peek() === 0x00)
- der.readByte();
-
- var A = utils.readBitString(der);
-
- var key = {
- type: 'ed25519',
- parts: [
- { name: 'A', data: utils.zeroPadToLength(A, 32) }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs8X25519Public(der) {
- var A = utils.readBitString(der);
-
- var key = {
- type: 'curve25519',
- parts: [
- { name: 'A', data: utils.zeroPadToLength(A, 32) }
- ]
- };
-
- return (new Key(key));
-}
-
-function readPkcs8EdDSAPrivate(der) {
- if (der.peek() === 0x00)
- der.readByte();
-
- der.readSequence(asn1.Ber.OctetString);
- var k = der.readString(asn1.Ber.OctetString, true);
- k = utils.zeroPadToLength(k, 32);
-
- var A;
- if (der.peek() === asn1.Ber.BitString) {
- A = utils.readBitString(der);
- A = utils.zeroPadToLength(A, 32);
- } else {
- A = utils.calculateED25519Public(k);
- }
-
- var key = {
- type: 'ed25519',
- parts: [
- { name: 'A', data: utils.zeroPadToLength(A, 32) },
- { name: 'k', data: utils.zeroPadToLength(k, 32) }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function readPkcs8X25519Private(der) {
- if (der.peek() === 0x00)
- der.readByte();
-
- der.readSequence(asn1.Ber.OctetString);
- var k = der.readString(asn1.Ber.OctetString, true);
- k = utils.zeroPadToLength(k, 32);
-
- var A = utils.calculateX25519Public(k);
-
- var key = {
- type: 'curve25519',
- parts: [
- { name: 'A', data: utils.zeroPadToLength(A, 32) },
- { name: 'k', data: utils.zeroPadToLength(k, 32) }
- ]
- };
-
- return (new PrivateKey(key));
-}
-
-function pkcs8ToBuffer(key) {
- var der = new asn1.BerWriter();
- writePkcs8(der, key);
- return (der.buffer);
-}
-
-function writePkcs8(der, key) {
- der.startSequence();
-
- if (PrivateKey.isPrivateKey(key)) {
- var sillyInt = Buffer.from([0]);
- der.writeBuffer(sillyInt, asn1.Ber.Integer);
- }
-
- der.startSequence();
- switch (key.type) {
- case 'rsa':
- der.writeOID('1.2.840.113549.1.1.1');
- if (PrivateKey.isPrivateKey(key))
- writePkcs8RSAPrivate(key, der);
- else
- writePkcs8RSAPublic(key, der);
- break;
- case 'dsa':
- der.writeOID('1.2.840.10040.4.1');
- if (PrivateKey.isPrivateKey(key))
- writePkcs8DSAPrivate(key, der);
- else
- writePkcs8DSAPublic(key, der);
- break;
- case 'ecdsa':
- der.writeOID('1.2.840.10045.2.1');
- if (PrivateKey.isPrivateKey(key))
- writePkcs8ECDSAPrivate(key, der);
- else
- writePkcs8ECDSAPublic(key, der);
- break;
- case 'ed25519':
- der.writeOID('1.3.101.112');
- if (PrivateKey.isPrivateKey(key))
- throw (new Error('Ed25519 private keys in pkcs8 ' +
- 'format are not supported'));
- writePkcs8EdDSAPublic(key, der);
- break;
- default:
- throw (new Error('Unsupported key type: ' + key.type));
- }
-
- der.endSequence();
-}
-
-function writePkcs8RSAPrivate(key, der) {
- der.writeNull();
- der.endSequence();
-
- der.startSequence(asn1.Ber.OctetString);
- der.startSequence();
-
- var version = Buffer.from([0]);
- der.writeBuffer(version, asn1.Ber.Integer);
-
- der.writeBuffer(key.part.n.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.e.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.d.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.p.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.q.data, asn1.Ber.Integer);
- if (!key.part.dmodp || !key.part.dmodq)
- utils.addRSAMissing(key);
- der.writeBuffer(key.part.dmodp.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.dmodq.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.iqmp.data, asn1.Ber.Integer);
-
- der.endSequence();
- der.endSequence();
-}
-
-function writePkcs8RSAPublic(key, der) {
- der.writeNull();
- der.endSequence();
-
- der.startSequence(asn1.Ber.BitString);
- der.writeByte(0x00);
-
- der.startSequence();
- der.writeBuffer(key.part.n.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.e.data, asn1.Ber.Integer);
- der.endSequence();
-
- der.endSequence();
-}
-
-function writePkcs8DSAPrivate(key, der) {
- der.startSequence();
- der.writeBuffer(key.part.p.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.q.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.g.data, asn1.Ber.Integer);
- der.endSequence();
-
- der.endSequence();
-
- der.startSequence(asn1.Ber.OctetString);
- der.writeBuffer(key.part.x.data, asn1.Ber.Integer);
- der.endSequence();
-}
-
-function writePkcs8DSAPublic(key, der) {
- der.startSequence();
- der.writeBuffer(key.part.p.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.q.data, asn1.Ber.Integer);
- der.writeBuffer(key.part.g.data, asn1.Ber.Integer);
- der.endSequence();
- der.endSequence();
-
- der.startSequence(asn1.Ber.BitString);
- der.writeByte(0x00);
- der.writeBuffer(key.part.y.data, asn1.Ber.Integer);
- der.endSequence();
-}
-
-function writeECDSACurve(key, der) {
- var curve = algs.curves[key.curve];
- if (curve.pkcs8oid) {
- /* This one has a name in pkcs#8, so just write the oid */
- der.writeOID(curve.pkcs8oid);
-
- } else {
- // ECParameters sequence
- der.startSequence();
-
- var version = Buffer.from([1]);
- der.writeBuffer(version, asn1.Ber.Integer);
-
- // FieldID sequence
- der.startSequence();
- der.writeOID('1.2.840.10045.1.1'); // prime-field
- der.writeBuffer(curve.p, asn1.Ber.Integer);
- der.endSequence();
-
- // Curve sequence
- der.startSequence();
- var a = curve.p;
- if (a[0] === 0x0)
- a = a.slice(1);
- der.writeBuffer(a, asn1.Ber.OctetString);
- der.writeBuffer(curve.b, asn1.Ber.OctetString);
- der.writeBuffer(curve.s, asn1.Ber.BitString);
- der.endSequence();
-
- der.writeBuffer(curve.G, asn1.Ber.OctetString);
- der.writeBuffer(curve.n, asn1.Ber.Integer);
- var h = curve.h;
- if (!h) {
- h = Buffer.from([1]);
- }
- der.writeBuffer(h, asn1.Ber.Integer);
-
- // ECParameters
- der.endSequence();
- }
-}
-
-function writePkcs8ECDSAPublic(key, der) {
- writeECDSACurve(key, der);
- der.endSequence();
-
- var Q = utils.ecNormalize(key.part.Q.data, true);
- der.writeBuffer(Q, asn1.Ber.BitString);
-}
-
-function writePkcs8ECDSAPrivate(key, der) {
- writeECDSACurve(key, der);
- der.endSequence();
-
- der.startSequence(asn1.Ber.OctetString);
- der.startSequence();
-
- var version = Buffer.from([1]);
- der.writeBuffer(version, asn1.Ber.Integer);
-
- der.writeBuffer(key.part.d.data, asn1.Ber.OctetString);
-
- der.startSequence(0xa1);
- var Q = utils.ecNormalize(key.part.Q.data, true);
- der.writeBuffer(Q, asn1.Ber.BitString);
- der.endSequence();
-
- der.endSequence();
- der.endSequence();
-}
-
-function writePkcs8EdDSAPublic(key, der) {
- der.endSequence();
-
- utils.writeBitString(der, key.part.A.data);
-}
-
-function writePkcs8EdDSAPrivate(key, der) {
- der.endSequence();
-
- var k = utils.mpNormalize(key.part.k.data, true);
- der.startSequence(asn1.Ber.OctetString);
- der.writeBuffer(k, asn1.Ber.OctetString);
- der.endSequence();
-}
diff --git a/node_modules/sshpk/lib/formats/putty.js b/node_modules/sshpk/lib/formats/putty.js
deleted file mode 100644
index 344419f..0000000
--- a/node_modules/sshpk/lib/formats/putty.js
+++ /dev/null
@@ -1,99 +0,0 @@
-// Copyright 2018 Joyent, Inc.
-
-module.exports = {
- read: read,
- write: write
-};
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var rfc4253 = require('./rfc4253');
-var Key = require('../key');
-
-var errors = require('../errors');
-
-function read(buf, options) {
- var lines = buf.toString('ascii').split(/[\r\n]+/);
- var found = false;
- var parts;
- var si = 0;
- while (si < lines.length) {
- parts = splitHeader(lines[si++]);
- if (parts &&
- parts[0].toLowerCase() === 'putty-user-key-file-2') {
- found = true;
- break;
- }
- }
- if (!found) {
- throw (new Error('No PuTTY format first line found'));
- }
- var alg = parts[1];
-
- parts = splitHeader(lines[si++]);
- assert.equal(parts[0].toLowerCase(), 'encryption');
-
- parts = splitHeader(lines[si++]);
- assert.equal(parts[0].toLowerCase(), 'comment');
- var comment = parts[1];
-
- parts = splitHeader(lines[si++]);
- assert.equal(parts[0].toLowerCase(), 'public-lines');
- var publicLines = parseInt(parts[1], 10);
- if (!isFinite(publicLines) || publicLines < 0 ||
- publicLines > lines.length) {
- throw (new Error('Invalid public-lines count'));
- }
-
- var publicBuf = Buffer.from(
- lines.slice(si, si + publicLines).join(''), 'base64');
- var keyType = rfc4253.algToKeyType(alg);
- var key = rfc4253.read(publicBuf);
- if (key.type !== keyType) {
- throw (new Error('Outer key algorithm mismatch'));
- }
- key.comment = comment;
- return (key);
-}
-
-function splitHeader(line) {
- var idx = line.indexOf(':');
- if (idx === -1)
- return (null);
- var header = line.slice(0, idx);
- ++idx;
- while (line[idx] === ' ')
- ++idx;
- var rest = line.slice(idx);
- return ([header, rest]);
-}
-
-function write(key, options) {
- assert.object(key);
- if (!Key.isKey(key))
- throw (new Error('Must be a public key'));
-
- var alg = rfc4253.keyTypeToAlg(key);
- var buf = rfc4253.write(key);
- var comment = key.comment || '';
-
- var b64 = buf.toString('base64');
- var lines = wrap(b64, 64);
-
- lines.unshift('Public-Lines: ' + lines.length);
- lines.unshift('Comment: ' + comment);
- lines.unshift('Encryption: none');
- lines.unshift('PuTTY-User-Key-File-2: ' + alg);
-
- return (Buffer.from(lines.join('\n') + '\n'));
-}
-
-function wrap(txt, len) {
- var lines = [];
- var pos = 0;
- while (pos < txt.length) {
- lines.push(txt.slice(pos, pos + 64));
- pos += 64;
- }
- return (lines);
-}
diff --git a/node_modules/sshpk/lib/formats/rfc4253.js b/node_modules/sshpk/lib/formats/rfc4253.js
deleted file mode 100644
index 52fddcb..0000000
--- a/node_modules/sshpk/lib/formats/rfc4253.js
+++ /dev/null
@@ -1,166 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = {
- read: read.bind(undefined, false, undefined),
- readType: read.bind(undefined, false),
- write: write,
- /* semi-private api, used by sshpk-agent */
- readPartial: read.bind(undefined, true),
-
- /* shared with ssh format */
- readInternal: read,
- keyTypeToAlg: keyTypeToAlg,
- algToKeyType: algToKeyType
-};
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var utils = require('../utils');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var SSHBuffer = require('../ssh-buffer');
-
-function algToKeyType(alg) {
- assert.string(alg);
- if (alg === 'ssh-dss')
- return ('dsa');
- else if (alg === 'ssh-rsa')
- return ('rsa');
- else if (alg === 'ssh-ed25519')
- return ('ed25519');
- else if (alg === 'ssh-curve25519')
- return ('curve25519');
- else if (alg.match(/^ecdsa-sha2-/))
- return ('ecdsa');
- else
- throw (new Error('Unknown algorithm ' + alg));
-}
-
-function keyTypeToAlg(key) {
- assert.object(key);
- if (key.type === 'dsa')
- return ('ssh-dss');
- else if (key.type === 'rsa')
- return ('ssh-rsa');
- else if (key.type === 'ed25519')
- return ('ssh-ed25519');
- else if (key.type === 'curve25519')
- return ('ssh-curve25519');
- else if (key.type === 'ecdsa')
- return ('ecdsa-sha2-' + key.part.curve.data.toString());
- else
- throw (new Error('Unknown key type ' + key.type));
-}
-
-function read(partial, type, buf, options) {
- if (typeof (buf) === 'string')
- buf = Buffer.from(buf);
- assert.buffer(buf, 'buf');
-
- var key = {};
-
- var parts = key.parts = [];
- var sshbuf = new SSHBuffer({buffer: buf});
-
- var alg = sshbuf.readString();
- assert.ok(!sshbuf.atEnd(), 'key must have at least one part');
-
- key.type = algToKeyType(alg);
-
- var partCount = algs.info[key.type].parts.length;
- if (type && type === 'private')
- partCount = algs.privInfo[key.type].parts.length;
-
- while (!sshbuf.atEnd() && parts.length < partCount)
- parts.push(sshbuf.readPart());
- while (!partial && !sshbuf.atEnd())
- parts.push(sshbuf.readPart());
-
- assert.ok(parts.length >= 1,
- 'key must have at least one part');
- assert.ok(partial || sshbuf.atEnd(),
- 'leftover bytes at end of key');
-
- var Constructor = Key;
- var algInfo = algs.info[key.type];
- if (type === 'private' || algInfo.parts.length !== parts.length) {
- algInfo = algs.privInfo[key.type];
- Constructor = PrivateKey;
- }
- assert.strictEqual(algInfo.parts.length, parts.length);
-
- if (key.type === 'ecdsa') {
- var res = /^ecdsa-sha2-(.+)$/.exec(alg);
- assert.ok(res !== null);
- assert.strictEqual(res[1], parts[0].data.toString());
- }
-
- var normalized = true;
- for (var i = 0; i < algInfo.parts.length; ++i) {
- var p = parts[i];
- p.name = algInfo.parts[i];
- /*
- * OpenSSH stores ed25519 "private" keys as seed + public key
- * concat'd together (k followed by A). We want to keep them
- * separate for other formats that don't do this.
- */
- if (key.type === 'ed25519' && p.name === 'k')
- p.data = p.data.slice(0, 32);
-
- if (p.name !== 'curve' && algInfo.normalize !== false) {
- var nd;
- if (key.type === 'ed25519') {
- nd = utils.zeroPadToLength(p.data, 32);
- } else {
- nd = utils.mpNormalize(p.data);
- }
- if (nd.toString('binary') !==
- p.data.toString('binary')) {
- p.data = nd;
- normalized = false;
- }
- }
- }
-
- if (normalized)
- key._rfc4253Cache = sshbuf.toBuffer();
-
- if (partial && typeof (partial) === 'object') {
- partial.remainder = sshbuf.remainder();
- partial.consumed = sshbuf._offset;
- }
-
- return (new Constructor(key));
-}
-
-function write(key, options) {
- assert.object(key);
-
- var alg = keyTypeToAlg(key);
- var i;
-
- var algInfo = algs.info[key.type];
- if (PrivateKey.isPrivateKey(key))
- algInfo = algs.privInfo[key.type];
- var parts = algInfo.parts;
-
- var buf = new SSHBuffer({});
-
- buf.writeString(alg);
-
- for (i = 0; i < parts.length; ++i) {
- var data = key.part[parts[i]].data;
- if (algInfo.normalize !== false) {
- if (key.type === 'ed25519')
- data = utils.zeroPadToLength(data, 32);
- else
- data = utils.mpNormalize(data);
- }
- if (key.type === 'ed25519' && parts[i] === 'k')
- data = Buffer.concat([data, key.part.A.data]);
- buf.writeBuffer(data);
- }
-
- return (buf.toBuffer());
-}
diff --git a/node_modules/sshpk/lib/formats/ssh-private.js b/node_modules/sshpk/lib/formats/ssh-private.js
deleted file mode 100644
index 5e7eed8..0000000
--- a/node_modules/sshpk/lib/formats/ssh-private.js
+++ /dev/null
@@ -1,262 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = {
- read: read,
- readSSHPrivate: readSSHPrivate,
- write: write
-};
-
-var assert = require('assert-plus');
-var asn1 = require('asn1');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var utils = require('../utils');
-var crypto = require('crypto');
-
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var pem = require('./pem');
-var rfc4253 = require('./rfc4253');
-var SSHBuffer = require('../ssh-buffer');
-var errors = require('../errors');
-
-var bcrypt;
-
-function read(buf, options) {
- return (pem.read(buf, options));
-}
-
-var MAGIC = 'openssh-key-v1';
-
-function readSSHPrivate(type, buf, options) {
- buf = new SSHBuffer({buffer: buf});
-
- var magic = buf.readCString();
- assert.strictEqual(magic, MAGIC, 'bad magic string');
-
- var cipher = buf.readString();
- var kdf = buf.readString();
- var kdfOpts = buf.readBuffer();
-
- var nkeys = buf.readInt();
- if (nkeys !== 1) {
- throw (new Error('OpenSSH-format key file contains ' +
- 'multiple keys: this is unsupported.'));
- }
-
- var pubKey = buf.readBuffer();
-
- if (type === 'public') {
- assert.ok(buf.atEnd(), 'excess bytes left after key');
- return (rfc4253.read(pubKey));
- }
-
- var privKeyBlob = buf.readBuffer();
- assert.ok(buf.atEnd(), 'excess bytes left after key');
-
- var kdfOptsBuf = new SSHBuffer({ buffer: kdfOpts });
- switch (kdf) {
- case 'none':
- if (cipher !== 'none') {
- throw (new Error('OpenSSH-format key uses KDF "none" ' +
- 'but specifies a cipher other than "none"'));
- }
- break;
- case 'bcrypt':
- var salt = kdfOptsBuf.readBuffer();
- var rounds = kdfOptsBuf.readInt();
- var cinf = utils.opensshCipherInfo(cipher);
- if (bcrypt === undefined) {
- bcrypt = require('bcrypt-pbkdf');
- }
-
- if (typeof (options.passphrase) === 'string') {
- options.passphrase = Buffer.from(options.passphrase,
- 'utf-8');
- }
- if (!Buffer.isBuffer(options.passphrase)) {
- throw (new errors.KeyEncryptedError(
- options.filename, 'OpenSSH'));
- }
-
- var pass = new Uint8Array(options.passphrase);
- var salti = new Uint8Array(salt);
- /* Use the pbkdf to derive both the key and the IV. */
- var out = new Uint8Array(cinf.keySize + cinf.blockSize);
- var res = bcrypt.pbkdf(pass, pass.length, salti, salti.length,
- out, out.length, rounds);
- if (res !== 0) {
- throw (new Error('bcrypt_pbkdf function returned ' +
- 'failure, parameters invalid'));
- }
- out = Buffer.from(out);
- var ckey = out.slice(0, cinf.keySize);
- var iv = out.slice(cinf.keySize, cinf.keySize + cinf.blockSize);
- var cipherStream = crypto.createDecipheriv(cinf.opensslName,
- ckey, iv);
- cipherStream.setAutoPadding(false);
- var chunk, chunks = [];
- cipherStream.once('error', function (e) {
- if (e.toString().indexOf('bad decrypt') !== -1) {
- throw (new Error('Incorrect passphrase ' +
- 'supplied, could not decrypt key'));
- }
- throw (e);
- });
- cipherStream.write(privKeyBlob);
- cipherStream.end();
- while ((chunk = cipherStream.read()) !== null)
- chunks.push(chunk);
- privKeyBlob = Buffer.concat(chunks);
- break;
- default:
- throw (new Error(
- 'OpenSSH-format key uses unknown KDF "' + kdf + '"'));
- }
-
- buf = new SSHBuffer({buffer: privKeyBlob});
-
- var checkInt1 = buf.readInt();
- var checkInt2 = buf.readInt();
- if (checkInt1 !== checkInt2) {
- throw (new Error('Incorrect passphrase supplied, could not ' +
- 'decrypt key'));
- }
-
- var ret = {};
- var key = rfc4253.readInternal(ret, 'private', buf.remainder());
-
- buf.skip(ret.consumed);
-
- var comment = buf.readString();
- key.comment = comment;
-
- return (key);
-}
-
-function write(key, options) {
- var pubKey;
- if (PrivateKey.isPrivateKey(key))
- pubKey = key.toPublic();
- else
- pubKey = key;
-
- var cipher = 'none';
- var kdf = 'none';
- var kdfopts = Buffer.alloc(0);
- var cinf = { blockSize: 8 };
- var passphrase;
- if (options !== undefined) {
- passphrase = options.passphrase;
- if (typeof (passphrase) === 'string')
- passphrase = Buffer.from(passphrase, 'utf-8');
- if (passphrase !== undefined) {
- assert.buffer(passphrase, 'options.passphrase');
- assert.optionalString(options.cipher, 'options.cipher');
- cipher = options.cipher;
- if (cipher === undefined)
- cipher = 'aes128-ctr';
- cinf = utils.opensshCipherInfo(cipher);
- kdf = 'bcrypt';
- }
- }
-
- var privBuf;
- if (PrivateKey.isPrivateKey(key)) {
- privBuf = new SSHBuffer({});
- var checkInt = crypto.randomBytes(4).readUInt32BE(0);
- privBuf.writeInt(checkInt);
- privBuf.writeInt(checkInt);
- privBuf.write(key.toBuffer('rfc4253'));
- privBuf.writeString(key.comment || '');
-
- var n = 1;
- while (privBuf._offset % cinf.blockSize !== 0)
- privBuf.writeChar(n++);
- privBuf = privBuf.toBuffer();
- }
-
- switch (kdf) {
- case 'none':
- break;
- case 'bcrypt':
- var salt = crypto.randomBytes(16);
- var rounds = 16;
- var kdfssh = new SSHBuffer({});
- kdfssh.writeBuffer(salt);
- kdfssh.writeInt(rounds);
- kdfopts = kdfssh.toBuffer();
-
- if (bcrypt === undefined) {
- bcrypt = require('bcrypt-pbkdf');
- }
- var pass = new Uint8Array(passphrase);
- var salti = new Uint8Array(salt);
- /* Use the pbkdf to derive both the key and the IV. */
- var out = new Uint8Array(cinf.keySize + cinf.blockSize);
- var res = bcrypt.pbkdf(pass, pass.length, salti, salti.length,
- out, out.length, rounds);
- if (res !== 0) {
- throw (new Error('bcrypt_pbkdf function returned ' +
- 'failure, parameters invalid'));
- }
- out = Buffer.from(out);
- var ckey = out.slice(0, cinf.keySize);
- var iv = out.slice(cinf.keySize, cinf.keySize + cinf.blockSize);
-
- var cipherStream = crypto.createCipheriv(cinf.opensslName,
- ckey, iv);
- cipherStream.setAutoPadding(false);
- var chunk, chunks = [];
- cipherStream.once('error', function (e) {
- throw (e);
- });
- cipherStream.write(privBuf);
- cipherStream.end();
- while ((chunk = cipherStream.read()) !== null)
- chunks.push(chunk);
- privBuf = Buffer.concat(chunks);
- break;
- default:
- throw (new Error('Unsupported kdf ' + kdf));
- }
-
- var buf = new SSHBuffer({});
-
- buf.writeCString(MAGIC);
- buf.writeString(cipher); /* cipher */
- buf.writeString(kdf); /* kdf */
- buf.writeBuffer(kdfopts); /* kdfoptions */
-
- buf.writeInt(1); /* nkeys */
- buf.writeBuffer(pubKey.toBuffer('rfc4253'));
-
- if (privBuf)
- buf.writeBuffer(privBuf);
-
- buf = buf.toBuffer();
-
- var header;
- if (PrivateKey.isPrivateKey(key))
- header = 'OPENSSH PRIVATE KEY';
- else
- header = 'OPENSSH PUBLIC KEY';
-
- var tmp = buf.toString('base64');
- var len = tmp.length + (tmp.length / 70) +
- 18 + 16 + header.length*2 + 10;
- buf = Buffer.alloc(len);
- var o = 0;
- o += buf.write('-----BEGIN ' + header + '-----\n', o);
- for (var i = 0; i < tmp.length; ) {
- var limit = i + 70;
- if (limit > tmp.length)
- limit = tmp.length;
- o += buf.write(tmp.slice(i, limit), o);
- buf[o++] = 10;
- i = limit;
- }
- o += buf.write('-----END ' + header + '-----\n', o);
-
- return (buf.slice(0, o));
-}
diff --git a/node_modules/sshpk/lib/formats/ssh.js b/node_modules/sshpk/lib/formats/ssh.js
deleted file mode 100644
index c8e9c93..0000000
--- a/node_modules/sshpk/lib/formats/ssh.js
+++ /dev/null
@@ -1,115 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = {
- read: read,
- write: write
-};
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var rfc4253 = require('./rfc4253');
-var utils = require('../utils');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-
-var sshpriv = require('./ssh-private');
-
-/*JSSTYLED*/
-var SSHKEY_RE = /^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/;
-/*JSSTYLED*/
-var SSHKEY_RE2 = /^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;
-
-function read(buf, options) {
- if (typeof (buf) !== 'string') {
- assert.buffer(buf, 'buf');
- buf = buf.toString('ascii');
- }
-
- var trimmed = buf.trim().replace(/[\\\r]/g, '');
- var m = trimmed.match(SSHKEY_RE);
- if (!m)
- m = trimmed.match(SSHKEY_RE2);
- assert.ok(m, 'key must match regex');
-
- var type = rfc4253.algToKeyType(m[1]);
- var kbuf = Buffer.from(m[2], 'base64');
-
- /*
- * This is a bit tricky. If we managed to parse the key and locate the
- * key comment with the regex, then do a non-partial read and assert
- * that we have consumed all bytes. If we couldn't locate the key
- * comment, though, there may be whitespace shenanigans going on that
- * have conjoined the comment to the rest of the key. We do a partial
- * read in this case to try to make the best out of a sorry situation.
- */
- var key;
- var ret = {};
- if (m[4]) {
- try {
- key = rfc4253.read(kbuf);
-
- } catch (e) {
- m = trimmed.match(SSHKEY_RE2);
- assert.ok(m, 'key must match regex');
- kbuf = Buffer.from(m[2], 'base64');
- key = rfc4253.readInternal(ret, 'public', kbuf);
- }
- } else {
- key = rfc4253.readInternal(ret, 'public', kbuf);
- }
-
- assert.strictEqual(type, key.type);
-
- if (m[4] && m[4].length > 0) {
- key.comment = m[4];
-
- } else if (ret.consumed) {
- /*
- * Now the magic: trying to recover the key comment when it's
- * gotten conjoined to the key or otherwise shenanigan'd.
- *
- * Work out how much base64 we used, then drop all non-base64
- * chars from the beginning up to this point in the the string.
- * Then offset in this and try to make up for missing = chars.
- */
- var data = m[2] + (m[3] ? m[3] : '');
- var realOffset = Math.ceil(ret.consumed / 3) * 4;
- data = data.slice(0, realOffset - 2). /*JSSTYLED*/
- replace(/[^a-zA-Z0-9+\/=]/g, '') +
- data.slice(realOffset - 2);
-
- var padding = ret.consumed % 3;
- if (padding > 0 &&
- data.slice(realOffset - 1, realOffset) !== '=')
- realOffset--;
- while (data.slice(realOffset, realOffset + 1) === '=')
- realOffset++;
-
- /* Finally, grab what we think is the comment & clean it up. */
- var trailer = data.slice(realOffset);
- trailer = trailer.replace(/[\r\n]/g, ' ').
- replace(/^\s+/, '');
- if (trailer.match(/^[a-zA-Z0-9]/))
- key.comment = trailer;
- }
-
- return (key);
-}
-
-function write(key, options) {
- assert.object(key);
- if (!Key.isKey(key))
- throw (new Error('Must be a public key'));
-
- var parts = [];
- var alg = rfc4253.keyTypeToAlg(key);
- parts.push(alg);
-
- var buf = rfc4253.write(key);
- parts.push(buf.toString('base64'));
-
- if (key.comment)
- parts.push(key.comment);
-
- return (Buffer.from(parts.join(' ')));
-}
diff --git a/node_modules/sshpk/lib/formats/x509-pem.js b/node_modules/sshpk/lib/formats/x509-pem.js
deleted file mode 100644
index 3155ef0..0000000
--- a/node_modules/sshpk/lib/formats/x509-pem.js
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright 2016 Joyent, Inc.
-
-var x509 = require('./x509');
-
-module.exports = {
- read: read,
- verify: x509.verify,
- sign: x509.sign,
- write: write
-};
-
-var assert = require('assert-plus');
-var asn1 = require('asn1');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var utils = require('../utils');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var pem = require('./pem');
-var Identity = require('../identity');
-var Signature = require('../signature');
-var Certificate = require('../certificate');
-
-function read(buf, options) {
- if (typeof (buf) !== 'string') {
- assert.buffer(buf, 'buf');
- buf = buf.toString('ascii');
- }
-
- var lines = buf.trim().split(/[\r\n]+/g);
-
- var m;
- var si = -1;
- while (!m && si < lines.length) {
- m = lines[++si].match(/*JSSTYLED*/
- /[-]+[ ]*BEGIN CERTIFICATE[ ]*[-]+/);
- }
- assert.ok(m, 'invalid PEM header');
-
- var m2;
- var ei = lines.length;
- while (!m2 && ei > 0) {
- m2 = lines[--ei].match(/*JSSTYLED*/
- /[-]+[ ]*END CERTIFICATE[ ]*[-]+/);
- }
- assert.ok(m2, 'invalid PEM footer');
-
- lines = lines.slice(si, ei + 1);
-
- var headers = {};
- while (true) {
- lines = lines.slice(1);
- m = lines[0].match(/*JSSTYLED*/
- /^([A-Za-z0-9-]+): (.+)$/);
- if (!m)
- break;
- headers[m[1].toLowerCase()] = m[2];
- }
-
- /* Chop off the first and last lines */
- lines = lines.slice(0, -1).join('');
- buf = Buffer.from(lines, 'base64');
-
- return (x509.read(buf, options));
-}
-
-function write(cert, options) {
- var dbuf = x509.write(cert, options);
-
- var header = 'CERTIFICATE';
- var tmp = dbuf.toString('base64');
- var len = tmp.length + (tmp.length / 64) +
- 18 + 16 + header.length*2 + 10;
- var buf = Buffer.alloc(len);
- var o = 0;
- o += buf.write('-----BEGIN ' + header + '-----\n', o);
- for (var i = 0; i < tmp.length; ) {
- var limit = i + 64;
- if (limit > tmp.length)
- limit = tmp.length;
- o += buf.write(tmp.slice(i, limit), o);
- buf[o++] = 10;
- i = limit;
- }
- o += buf.write('-----END ' + header + '-----\n', o);
-
- return (buf.slice(0, o));
-}
diff --git a/node_modules/sshpk/lib/formats/x509.js b/node_modules/sshpk/lib/formats/x509.js
deleted file mode 100644
index 0144c44..0000000
--- a/node_modules/sshpk/lib/formats/x509.js
+++ /dev/null
@@ -1,752 +0,0 @@
-// Copyright 2017 Joyent, Inc.
-
-module.exports = {
- read: read,
- verify: verify,
- sign: sign,
- signAsync: signAsync,
- write: write
-};
-
-var assert = require('assert-plus');
-var asn1 = require('asn1');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('../algs');
-var utils = require('../utils');
-var Key = require('../key');
-var PrivateKey = require('../private-key');
-var pem = require('./pem');
-var Identity = require('../identity');
-var Signature = require('../signature');
-var Certificate = require('../certificate');
-var pkcs8 = require('./pkcs8');
-
-/*
- * This file is based on RFC5280 (X.509).
- */
-
-/* Helper to read in a single mpint */
-function readMPInt(der, nm) {
- assert.strictEqual(der.peek(), asn1.Ber.Integer,
- nm + ' is not an Integer');
- return (utils.mpNormalize(der.readString(asn1.Ber.Integer, true)));
-}
-
-function verify(cert, key) {
- var sig = cert.signatures.x509;
- assert.object(sig, 'x509 signature');
-
- var algParts = sig.algo.split('-');
- if (algParts[0] !== key.type)
- return (false);
-
- var blob = sig.cache;
- if (blob === undefined) {
- var der = new asn1.BerWriter();
- writeTBSCert(cert, der);
- blob = der.buffer;
- }
-
- var verifier = key.createVerify(algParts[1]);
- verifier.write(blob);
- return (verifier.verify(sig.signature));
-}
-
-function Local(i) {
- return (asn1.Ber.Context | asn1.Ber.Constructor | i);
-}
-
-function Context(i) {
- return (asn1.Ber.Context | i);
-}
-
-var SIGN_ALGS = {
- 'rsa-md5': '1.2.840.113549.1.1.4',
- 'rsa-sha1': '1.2.840.113549.1.1.5',
- 'rsa-sha256': '1.2.840.113549.1.1.11',
- 'rsa-sha384': '1.2.840.113549.1.1.12',
- 'rsa-sha512': '1.2.840.113549.1.1.13',
- 'dsa-sha1': '1.2.840.10040.4.3',
- 'dsa-sha256': '2.16.840.1.101.3.4.3.2',
- 'ecdsa-sha1': '1.2.840.10045.4.1',
- 'ecdsa-sha256': '1.2.840.10045.4.3.2',
- 'ecdsa-sha384': '1.2.840.10045.4.3.3',
- 'ecdsa-sha512': '1.2.840.10045.4.3.4',
- 'ed25519-sha512': '1.3.101.112'
-};
-Object.keys(SIGN_ALGS).forEach(function (k) {
- SIGN_ALGS[SIGN_ALGS[k]] = k;
-});
-SIGN_ALGS['1.3.14.3.2.3'] = 'rsa-md5';
-SIGN_ALGS['1.3.14.3.2.29'] = 'rsa-sha1';
-
-var EXTS = {
- 'issuerKeyId': '2.5.29.35',
- 'altName': '2.5.29.17',
- 'basicConstraints': '2.5.29.19',
- 'keyUsage': '2.5.29.15',
- 'extKeyUsage': '2.5.29.37'
-};
-
-function read(buf, options) {
- if (typeof (buf) === 'string') {
- buf = Buffer.from(buf, 'binary');
- }
- assert.buffer(buf, 'buf');
-
- var der = new asn1.BerReader(buf);
-
- der.readSequence();
- if (Math.abs(der.length - der.remain) > 1) {
- throw (new Error('DER sequence does not contain whole byte ' +
- 'stream'));
- }
-
- var tbsStart = der.offset;
- der.readSequence();
- var sigOffset = der.offset + der.length;
- var tbsEnd = sigOffset;
-
- if (der.peek() === Local(0)) {
- der.readSequence(Local(0));
- var version = der.readInt();
- assert.ok(version <= 3,
- 'only x.509 versions up to v3 supported');
- }
-
- var cert = {};
- cert.signatures = {};
- var sig = (cert.signatures.x509 = {});
- sig.extras = {};
-
- cert.serial = readMPInt(der, 'serial');
-
- der.readSequence();
- var after = der.offset + der.length;
- var certAlgOid = der.readOID();
- var certAlg = SIGN_ALGS[certAlgOid];
- if (certAlg === undefined)
- throw (new Error('unknown signature algorithm ' + certAlgOid));
-
- der._offset = after;
- cert.issuer = Identity.parseAsn1(der);
-
- der.readSequence();
- cert.validFrom = readDate(der);
- cert.validUntil = readDate(der);
-
- cert.subjects = [Identity.parseAsn1(der)];
-
- der.readSequence();
- after = der.offset + der.length;
- cert.subjectKey = pkcs8.readPkcs8(undefined, 'public', der);
- der._offset = after;
-
- /* issuerUniqueID */
- if (der.peek() === Local(1)) {
- der.readSequence(Local(1));
- sig.extras.issuerUniqueID =
- buf.slice(der.offset, der.offset + der.length);
- der._offset += der.length;
- }
-
- /* subjectUniqueID */
- if (der.peek() === Local(2)) {
- der.readSequence(Local(2));
- sig.extras.subjectUniqueID =
- buf.slice(der.offset, der.offset + der.length);
- der._offset += der.length;
- }
-
- /* extensions */
- if (der.peek() === Local(3)) {
- der.readSequence(Local(3));
- var extEnd = der.offset + der.length;
- der.readSequence();
-
- while (der.offset < extEnd)
- readExtension(cert, buf, der);
-
- assert.strictEqual(der.offset, extEnd);
- }
-
- assert.strictEqual(der.offset, sigOffset);
-
- der.readSequence();
- after = der.offset + der.length;
- var sigAlgOid = der.readOID();
- var sigAlg = SIGN_ALGS[sigAlgOid];
- if (sigAlg === undefined)
- throw (new Error('unknown signature algorithm ' + sigAlgOid));
- der._offset = after;
-
- var sigData = der.readString(asn1.Ber.BitString, true);
- if (sigData[0] === 0)
- sigData = sigData.slice(1);
- var algParts = sigAlg.split('-');
-
- sig.signature = Signature.parse(sigData, algParts[0], 'asn1');
- sig.signature.hashAlgorithm = algParts[1];
- sig.algo = sigAlg;
- sig.cache = buf.slice(tbsStart, tbsEnd);
-
- return (new Certificate(cert));
-}
-
-function readDate(der) {
- if (der.peek() === asn1.Ber.UTCTime) {
- return (utcTimeToDate(der.readString(asn1.Ber.UTCTime)));
- } else if (der.peek() === asn1.Ber.GeneralizedTime) {
- return (gTimeToDate(der.readString(asn1.Ber.GeneralizedTime)));
- } else {
- throw (new Error('Unsupported date format'));
- }
-}
-
-function writeDate(der, date) {
- if (date.getUTCFullYear() >= 2050 || date.getUTCFullYear() < 1950) {
- der.writeString(dateToGTime(date), asn1.Ber.GeneralizedTime);
- } else {
- der.writeString(dateToUTCTime(date), asn1.Ber.UTCTime);
- }
-}
-
-/* RFC5280, section 4.2.1.6 (GeneralName type) */
-var ALTNAME = {
- OtherName: Local(0),
- RFC822Name: Context(1),
- DNSName: Context(2),
- X400Address: Local(3),
- DirectoryName: Local(4),
- EDIPartyName: Local(5),
- URI: Context(6),
- IPAddress: Context(7),
- OID: Context(8)
-};
-
-/* RFC5280, section 4.2.1.12 (KeyPurposeId) */
-var EXTPURPOSE = {
- 'serverAuth': '1.3.6.1.5.5.7.3.1',
- 'clientAuth': '1.3.6.1.5.5.7.3.2',
- 'codeSigning': '1.3.6.1.5.5.7.3.3',
-
- /* See https://github.com/joyent/oid-docs/blob/master/root.md */
- 'joyentDocker': '1.3.6.1.4.1.38678.1.4.1',
- 'joyentCmon': '1.3.6.1.4.1.38678.1.4.2'
-};
-var EXTPURPOSE_REV = {};
-Object.keys(EXTPURPOSE).forEach(function (k) {
- EXTPURPOSE_REV[EXTPURPOSE[k]] = k;
-});
-
-var KEYUSEBITS = [
- 'signature', 'identity', 'keyEncryption',
- 'encryption', 'keyAgreement', 'ca', 'crl'
-];
-
-function readExtension(cert, buf, der) {
- der.readSequence();
- var after = der.offset + der.length;
- var extId = der.readOID();
- var id;
- var sig = cert.signatures.x509;
- if (!sig.extras.exts)
- sig.extras.exts = [];
-
- var critical;
- if (der.peek() === asn1.Ber.Boolean)
- critical = der.readBoolean();
-
- switch (extId) {
- case (EXTS.basicConstraints):
- der.readSequence(asn1.Ber.OctetString);
- der.readSequence();
- var bcEnd = der.offset + der.length;
- var ca = false;
- if (der.peek() === asn1.Ber.Boolean)
- ca = der.readBoolean();
- if (cert.purposes === undefined)
- cert.purposes = [];
- if (ca === true)
- cert.purposes.push('ca');
- var bc = { oid: extId, critical: critical };
- if (der.offset < bcEnd && der.peek() === asn1.Ber.Integer)
- bc.pathLen = der.readInt();
- sig.extras.exts.push(bc);
- break;
- case (EXTS.extKeyUsage):
- der.readSequence(asn1.Ber.OctetString);
- der.readSequence();
- if (cert.purposes === undefined)
- cert.purposes = [];
- var ekEnd = der.offset + der.length;
- while (der.offset < ekEnd) {
- var oid = der.readOID();
- cert.purposes.push(EXTPURPOSE_REV[oid] || oid);
- }
- /*
- * This is a bit of a hack: in the case where we have a cert
- * that's only allowed to do serverAuth or clientAuth (and not
- * the other), we want to make sure all our Subjects are of
- * the right type. But we already parsed our Subjects and
- * decided if they were hosts or users earlier (since it appears
- * first in the cert).
- *
- * So we go through and mutate them into the right kind here if
- * it doesn't match. This might not be hugely beneficial, as it
- * seems that single-purpose certs are not often seen in the
- * wild.
- */
- if (cert.purposes.indexOf('serverAuth') !== -1 &&
- cert.purposes.indexOf('clientAuth') === -1) {
- cert.subjects.forEach(function (ide) {
- if (ide.type !== 'host') {
- ide.type = 'host';
- ide.hostname = ide.uid ||
- ide.email ||
- ide.components[0].value;
- }
- });
- } else if (cert.purposes.indexOf('clientAuth') !== -1 &&
- cert.purposes.indexOf('serverAuth') === -1) {
- cert.subjects.forEach(function (ide) {
- if (ide.type !== 'user') {
- ide.type = 'user';
- ide.uid = ide.hostname ||
- ide.email ||
- ide.components[0].value;
- }
- });
- }
- sig.extras.exts.push({ oid: extId, critical: critical });
- break;
- case (EXTS.keyUsage):
- der.readSequence(asn1.Ber.OctetString);
- var bits = der.readString(asn1.Ber.BitString, true);
- var setBits = readBitField(bits, KEYUSEBITS);
- setBits.forEach(function (bit) {
- if (cert.purposes === undefined)
- cert.purposes = [];
- if (cert.purposes.indexOf(bit) === -1)
- cert.purposes.push(bit);
- });
- sig.extras.exts.push({ oid: extId, critical: critical,
- bits: bits });
- break;
- case (EXTS.altName):
- der.readSequence(asn1.Ber.OctetString);
- der.readSequence();
- var aeEnd = der.offset + der.length;
- while (der.offset < aeEnd) {
- switch (der.peek()) {
- case ALTNAME.OtherName:
- case ALTNAME.EDIPartyName:
- der.readSequence();
- der._offset += der.length;
- break;
- case ALTNAME.OID:
- der.readOID(ALTNAME.OID);
- break;
- case ALTNAME.RFC822Name:
- /* RFC822 specifies email addresses */
- var email = der.readString(ALTNAME.RFC822Name);
- id = Identity.forEmail(email);
- if (!cert.subjects[0].equals(id))
- cert.subjects.push(id);
- break;
- case ALTNAME.DirectoryName:
- der.readSequence(ALTNAME.DirectoryName);
- id = Identity.parseAsn1(der);
- if (!cert.subjects[0].equals(id))
- cert.subjects.push(id);
- break;
- case ALTNAME.DNSName:
- var host = der.readString(
- ALTNAME.DNSName);
- id = Identity.forHost(host);
- if (!cert.subjects[0].equals(id))
- cert.subjects.push(id);
- break;
- default:
- der.readString(der.peek());
- break;
- }
- }
- sig.extras.exts.push({ oid: extId, critical: critical });
- break;
- default:
- sig.extras.exts.push({
- oid: extId,
- critical: critical,
- data: der.readString(asn1.Ber.OctetString, true)
- });
- break;
- }
-
- der._offset = after;
-}
-
-var UTCTIME_RE =
- /^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;
-function utcTimeToDate(t) {
- var m = t.match(UTCTIME_RE);
- assert.ok(m, 'timestamps must be in UTC');
- var d = new Date();
-
- var thisYear = d.getUTCFullYear();
- var century = Math.floor(thisYear / 100) * 100;
-
- var year = parseInt(m[1], 10);
- if (thisYear % 100 < 50 && year >= 60)
- year += (century - 1);
- else
- year += century;
- d.setUTCFullYear(year, parseInt(m[2], 10) - 1, parseInt(m[3], 10));
- d.setUTCHours(parseInt(m[4], 10), parseInt(m[5], 10));
- if (m[6] && m[6].length > 0)
- d.setUTCSeconds(parseInt(m[6], 10));
- return (d);
-}
-
-var GTIME_RE =
- /^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;
-function gTimeToDate(t) {
- var m = t.match(GTIME_RE);
- assert.ok(m);
- var d = new Date();
-
- d.setUTCFullYear(parseInt(m[1], 10), parseInt(m[2], 10) - 1,
- parseInt(m[3], 10));
- d.setUTCHours(parseInt(m[4], 10), parseInt(m[5], 10));
- if (m[6] && m[6].length > 0)
- d.setUTCSeconds(parseInt(m[6], 10));
- return (d);
-}
-
-function zeroPad(n, m) {
- if (m === undefined)
- m = 2;
- var s = '' + n;
- while (s.length < m)
- s = '0' + s;
- return (s);
-}
-
-function dateToUTCTime(d) {
- var s = '';
- s += zeroPad(d.getUTCFullYear() % 100);
- s += zeroPad(d.getUTCMonth() + 1);
- s += zeroPad(d.getUTCDate());
- s += zeroPad(d.getUTCHours());
- s += zeroPad(d.getUTCMinutes());
- s += zeroPad(d.getUTCSeconds());
- s += 'Z';
- return (s);
-}
-
-function dateToGTime(d) {
- var s = '';
- s += zeroPad(d.getUTCFullYear(), 4);
- s += zeroPad(d.getUTCMonth() + 1);
- s += zeroPad(d.getUTCDate());
- s += zeroPad(d.getUTCHours());
- s += zeroPad(d.getUTCMinutes());
- s += zeroPad(d.getUTCSeconds());
- s += 'Z';
- return (s);
-}
-
-function sign(cert, key) {
- if (cert.signatures.x509 === undefined)
- cert.signatures.x509 = {};
- var sig = cert.signatures.x509;
-
- sig.algo = key.type + '-' + key.defaultHashAlgorithm();
- if (SIGN_ALGS[sig.algo] === undefined)
- return (false);
-
- var der = new asn1.BerWriter();
- writeTBSCert(cert, der);
- var blob = der.buffer;
- sig.cache = blob;
-
- var signer = key.createSign();
- signer.write(blob);
- cert.signatures.x509.signature = signer.sign();
-
- return (true);
-}
-
-function signAsync(cert, signer, done) {
- if (cert.signatures.x509 === undefined)
- cert.signatures.x509 = {};
- var sig = cert.signatures.x509;
-
- var der = new asn1.BerWriter();
- writeTBSCert(cert, der);
- var blob = der.buffer;
- sig.cache = blob;
-
- signer(blob, function (err, signature) {
- if (err) {
- done(err);
- return;
- }
- sig.algo = signature.type + '-' + signature.hashAlgorithm;
- if (SIGN_ALGS[sig.algo] === undefined) {
- done(new Error('Invalid signing algorithm "' +
- sig.algo + '"'));
- return;
- }
- sig.signature = signature;
- done();
- });
-}
-
-function write(cert, options) {
- var sig = cert.signatures.x509;
- assert.object(sig, 'x509 signature');
-
- var der = new asn1.BerWriter();
- der.startSequence();
- if (sig.cache) {
- der._ensure(sig.cache.length);
- sig.cache.copy(der._buf, der._offset);
- der._offset += sig.cache.length;
- } else {
- writeTBSCert(cert, der);
- }
-
- der.startSequence();
- der.writeOID(SIGN_ALGS[sig.algo]);
- if (sig.algo.match(/^rsa-/))
- der.writeNull();
- der.endSequence();
-
- var sigData = sig.signature.toBuffer('asn1');
- var data = Buffer.alloc(sigData.length + 1);
- data[0] = 0;
- sigData.copy(data, 1);
- der.writeBuffer(data, asn1.Ber.BitString);
- der.endSequence();
-
- return (der.buffer);
-}
-
-function writeTBSCert(cert, der) {
- var sig = cert.signatures.x509;
- assert.object(sig, 'x509 signature');
-
- der.startSequence();
-
- der.startSequence(Local(0));
- der.writeInt(2);
- der.endSequence();
-
- der.writeBuffer(utils.mpNormalize(cert.serial), asn1.Ber.Integer);
-
- der.startSequence();
- der.writeOID(SIGN_ALGS[sig.algo]);
- if (sig.algo.match(/^rsa-/))
- der.writeNull();
- der.endSequence();
-
- cert.issuer.toAsn1(der);
-
- der.startSequence();
- writeDate(der, cert.validFrom);
- writeDate(der, cert.validUntil);
- der.endSequence();
-
- var subject = cert.subjects[0];
- var altNames = cert.subjects.slice(1);
- subject.toAsn1(der);
-
- pkcs8.writePkcs8(der, cert.subjectKey);
-
- if (sig.extras && sig.extras.issuerUniqueID) {
- der.writeBuffer(sig.extras.issuerUniqueID, Local(1));
- }
-
- if (sig.extras && sig.extras.subjectUniqueID) {
- der.writeBuffer(sig.extras.subjectUniqueID, Local(2));
- }
-
- if (altNames.length > 0 || subject.type === 'host' ||
- (cert.purposes !== undefined && cert.purposes.length > 0) ||
- (sig.extras && sig.extras.exts)) {
- der.startSequence(Local(3));
- der.startSequence();
-
- var exts = [];
- if (cert.purposes !== undefined && cert.purposes.length > 0) {
- exts.push({
- oid: EXTS.basicConstraints,
- critical: true
- });
- exts.push({
- oid: EXTS.keyUsage,
- critical: true
- });
- exts.push({
- oid: EXTS.extKeyUsage,
- critical: true
- });
- }
- exts.push({ oid: EXTS.altName });
- if (sig.extras && sig.extras.exts)
- exts = sig.extras.exts;
-
- for (var i = 0; i < exts.length; ++i) {
- der.startSequence();
- der.writeOID(exts[i].oid);
-
- if (exts[i].critical !== undefined)
- der.writeBoolean(exts[i].critical);
-
- if (exts[i].oid === EXTS.altName) {
- der.startSequence(asn1.Ber.OctetString);
- der.startSequence();
- if (subject.type === 'host') {
- der.writeString(subject.hostname,
- Context(2));
- }
- for (var j = 0; j < altNames.length; ++j) {
- if (altNames[j].type === 'host') {
- der.writeString(
- altNames[j].hostname,
- ALTNAME.DNSName);
- } else if (altNames[j].type ===
- 'email') {
- der.writeString(
- altNames[j].email,
- ALTNAME.RFC822Name);
- } else {
- /*
- * Encode anything else as a
- * DN style name for now.
- */
- der.startSequence(
- ALTNAME.DirectoryName);
- altNames[j].toAsn1(der);
- der.endSequence();
- }
- }
- der.endSequence();
- der.endSequence();
- } else if (exts[i].oid === EXTS.basicConstraints) {
- der.startSequence(asn1.Ber.OctetString);
- der.startSequence();
- var ca = (cert.purposes.indexOf('ca') !== -1);
- var pathLen = exts[i].pathLen;
- der.writeBoolean(ca);
- if (pathLen !== undefined)
- der.writeInt(pathLen);
- der.endSequence();
- der.endSequence();
- } else if (exts[i].oid === EXTS.extKeyUsage) {
- der.startSequence(asn1.Ber.OctetString);
- der.startSequence();
- cert.purposes.forEach(function (purpose) {
- if (purpose === 'ca')
- return;
- if (KEYUSEBITS.indexOf(purpose) !== -1)
- return;
- var oid = purpose;
- if (EXTPURPOSE[purpose] !== undefined)
- oid = EXTPURPOSE[purpose];
- der.writeOID(oid);
- });
- der.endSequence();
- der.endSequence();
- } else if (exts[i].oid === EXTS.keyUsage) {
- der.startSequence(asn1.Ber.OctetString);
- /*
- * If we parsed this certificate from a byte
- * stream (i.e. we didn't generate it in sshpk)
- * then we'll have a ".bits" property on the
- * ext with the original raw byte contents.
- *
- * If we have this, use it here instead of
- * regenerating it. This guarantees we output
- * the same data we parsed, so signatures still
- * validate.
- */
- if (exts[i].bits !== undefined) {
- der.writeBuffer(exts[i].bits,
- asn1.Ber.BitString);
- } else {
- var bits = writeBitField(cert.purposes,
- KEYUSEBITS);
- der.writeBuffer(bits,
- asn1.Ber.BitString);
- }
- der.endSequence();
- } else {
- der.writeBuffer(exts[i].data,
- asn1.Ber.OctetString);
- }
-
- der.endSequence();
- }
-
- der.endSequence();
- der.endSequence();
- }
-
- der.endSequence();
-}
-
-/*
- * Reads an ASN.1 BER bitfield out of the Buffer produced by doing
- * `BerReader#readString(asn1.Ber.BitString)`. That function gives us the raw
- * contents of the BitString tag, which is a count of unused bits followed by
- * the bits as a right-padded byte string.
- *
- * `bits` is the Buffer, `bitIndex` should contain an array of string names
- * for the bits in the string, ordered starting with bit #0 in the ASN.1 spec.
- *
- * Returns an array of Strings, the names of the bits that were set to 1.
- */
-function readBitField(bits, bitIndex) {
- var bitLen = 8 * (bits.length - 1) - bits[0];
- var setBits = {};
- for (var i = 0; i < bitLen; ++i) {
- var byteN = 1 + Math.floor(i / 8);
- var bit = 7 - (i % 8);
- var mask = 1 << bit;
- var bitVal = ((bits[byteN] & mask) !== 0);
- var name = bitIndex[i];
- if (bitVal && typeof (name) === 'string') {
- setBits[name] = true;
- }
- }
- return (Object.keys(setBits));
-}
-
-/*
- * `setBits` is an array of strings, containing the names for each bit that
- * sould be set to 1. `bitIndex` is same as in `readBitField()`.
- *
- * Returns a Buffer, ready to be written out with `BerWriter#writeString()`.
- */
-function writeBitField(setBits, bitIndex) {
- var bitLen = bitIndex.length;
- var blen = Math.ceil(bitLen / 8);
- var unused = blen * 8 - bitLen;
- var bits = Buffer.alloc(1 + blen); // zero-filled
- bits[0] = unused;
- for (var i = 0; i < bitLen; ++i) {
- var byteN = 1 + Math.floor(i / 8);
- var bit = 7 - (i % 8);
- var mask = 1 << bit;
- var name = bitIndex[i];
- if (name === undefined)
- continue;
- var bitVal = (setBits.indexOf(name) !== -1);
- if (bitVal) {
- bits[byteN] |= mask;
- }
- }
- return (bits);
-}
diff --git a/node_modules/sshpk/lib/identity.js b/node_modules/sshpk/lib/identity.js
deleted file mode 100644
index 7d75b66..0000000
--- a/node_modules/sshpk/lib/identity.js
+++ /dev/null
@@ -1,373 +0,0 @@
-// Copyright 2017 Joyent, Inc.
-
-module.exports = Identity;
-
-var assert = require('assert-plus');
-var algs = require('./algs');
-var crypto = require('crypto');
-var Fingerprint = require('./fingerprint');
-var Signature = require('./signature');
-var errs = require('./errors');
-var util = require('util');
-var utils = require('./utils');
-var asn1 = require('asn1');
-var Buffer = require('safer-buffer').Buffer;
-
-/*JSSTYLED*/
-var DNS_NAME_RE = /^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i;
-
-var oids = {};
-oids.cn = '2.5.4.3';
-oids.o = '2.5.4.10';
-oids.ou = '2.5.4.11';
-oids.l = '2.5.4.7';
-oids.s = '2.5.4.8';
-oids.c = '2.5.4.6';
-oids.sn = '2.5.4.4';
-oids.postalCode = '2.5.4.17';
-oids.serialNumber = '2.5.4.5';
-oids.street = '2.5.4.9';
-oids.x500UniqueIdentifier = '2.5.4.45';
-oids.role = '2.5.4.72';
-oids.telephoneNumber = '2.5.4.20';
-oids.description = '2.5.4.13';
-oids.dc = '0.9.2342.19200300.100.1.25';
-oids.uid = '0.9.2342.19200300.100.1.1';
-oids.mail = '0.9.2342.19200300.100.1.3';
-oids.title = '2.5.4.12';
-oids.gn = '2.5.4.42';
-oids.initials = '2.5.4.43';
-oids.pseudonym = '2.5.4.65';
-oids.emailAddress = '1.2.840.113549.1.9.1';
-
-var unoids = {};
-Object.keys(oids).forEach(function (k) {
- unoids[oids[k]] = k;
-});
-
-function Identity(opts) {
- var self = this;
- assert.object(opts, 'options');
- assert.arrayOfObject(opts.components, 'options.components');
- this.components = opts.components;
- this.componentLookup = {};
- this.components.forEach(function (c) {
- if (c.name && !c.oid)
- c.oid = oids[c.name];
- if (c.oid && !c.name)
- c.name = unoids[c.oid];
- if (self.componentLookup[c.name] === undefined)
- self.componentLookup[c.name] = [];
- self.componentLookup[c.name].push(c);
- });
- if (this.componentLookup.cn && this.componentLookup.cn.length > 0) {
- this.cn = this.componentLookup.cn[0].value;
- }
- assert.optionalString(opts.type, 'options.type');
- if (opts.type === undefined) {
- if (this.components.length === 1 &&
- this.componentLookup.cn &&
- this.componentLookup.cn.length === 1 &&
- this.componentLookup.cn[0].value.match(DNS_NAME_RE)) {
- this.type = 'host';
- this.hostname = this.componentLookup.cn[0].value;
-
- } else if (this.componentLookup.dc &&
- this.components.length === this.componentLookup.dc.length) {
- this.type = 'host';
- this.hostname = this.componentLookup.dc.map(
- function (c) {
- return (c.value);
- }).join('.');
-
- } else if (this.componentLookup.uid &&
- this.components.length ===
- this.componentLookup.uid.length) {
- this.type = 'user';
- this.uid = this.componentLookup.uid[0].value;
-
- } else if (this.componentLookup.cn &&
- this.componentLookup.cn.length === 1 &&
- this.componentLookup.cn[0].value.match(DNS_NAME_RE)) {
- this.type = 'host';
- this.hostname = this.componentLookup.cn[0].value;
-
- } else if (this.componentLookup.uid &&
- this.componentLookup.uid.length === 1) {
- this.type = 'user';
- this.uid = this.componentLookup.uid[0].value;
-
- } else if (this.componentLookup.mail &&
- this.componentLookup.mail.length === 1) {
- this.type = 'email';
- this.email = this.componentLookup.mail[0].value;
-
- } else if (this.componentLookup.cn &&
- this.componentLookup.cn.length === 1) {
- this.type = 'user';
- this.uid = this.componentLookup.cn[0].value;
-
- } else {
- this.type = 'unknown';
- }
- } else {
- this.type = opts.type;
- if (this.type === 'host')
- this.hostname = opts.hostname;
- else if (this.type === 'user')
- this.uid = opts.uid;
- else if (this.type === 'email')
- this.email = opts.email;
- else
- throw (new Error('Unknown type ' + this.type));
- }
-}
-
-Identity.prototype.toString = function () {
- return (this.components.map(function (c) {
- var n = c.name.toUpperCase();
- /*JSSTYLED*/
- n = n.replace(/=/g, '\\=');
- var v = c.value;
- /*JSSTYLED*/
- v = v.replace(/,/g, '\\,');
- return (n + '=' + v);
- }).join(', '));
-};
-
-Identity.prototype.get = function (name, asArray) {
- assert.string(name, 'name');
- var arr = this.componentLookup[name];
- if (arr === undefined || arr.length === 0)
- return (undefined);
- if (!asArray && arr.length > 1)
- throw (new Error('Multiple values for attribute ' + name));
- if (!asArray)
- return (arr[0].value);
- return (arr.map(function (c) {
- return (c.value);
- }));
-};
-
-Identity.prototype.toArray = function (idx) {
- return (this.components.map(function (c) {
- return ({
- name: c.name,
- value: c.value
- });
- }));
-};
-
-/*
- * These are from X.680 -- PrintableString allowed chars are in section 37.4
- * table 8. Spec for IA5Strings is "1,6 + SPACE + DEL" where 1 refers to
- * ISO IR #001 (standard ASCII control characters) and 6 refers to ISO IR #006
- * (the basic ASCII character set).
- */
-/* JSSTYLED */
-var NOT_PRINTABLE = /[^a-zA-Z0-9 '(),+.\/:=?-]/;
-/* JSSTYLED */
-var NOT_IA5 = /[^\x00-\x7f]/;
-
-Identity.prototype.toAsn1 = function (der, tag) {
- der.startSequence(tag);
- this.components.forEach(function (c) {
- der.startSequence(asn1.Ber.Constructor | asn1.Ber.Set);
- der.startSequence();
- der.writeOID(c.oid);
- /*
- * If we fit in a PrintableString, use that. Otherwise use an
- * IA5String or UTF8String.
- *
- * If this identity was parsed from a DN, use the ASN.1 types
- * from the original representation (otherwise this might not
- * be a full match for the original in some validators).
- */
- if (c.asn1type === asn1.Ber.Utf8String ||
- c.value.match(NOT_IA5)) {
- var v = Buffer.from(c.value, 'utf8');
- der.writeBuffer(v, asn1.Ber.Utf8String);
-
- } else if (c.asn1type === asn1.Ber.IA5String ||
- c.value.match(NOT_PRINTABLE)) {
- der.writeString(c.value, asn1.Ber.IA5String);
-
- } else {
- var type = asn1.Ber.PrintableString;
- if (c.asn1type !== undefined)
- type = c.asn1type;
- der.writeString(c.value, type);
- }
- der.endSequence();
- der.endSequence();
- });
- der.endSequence();
-};
-
-function globMatch(a, b) {
- if (a === '**' || b === '**')
- return (true);
- var aParts = a.split('.');
- var bParts = b.split('.');
- if (aParts.length !== bParts.length)
- return (false);
- for (var i = 0; i < aParts.length; ++i) {
- if (aParts[i] === '*' || bParts[i] === '*')
- continue;
- if (aParts[i] !== bParts[i])
- return (false);
- }
- return (true);
-}
-
-Identity.prototype.equals = function (other) {
- if (!Identity.isIdentity(other, [1, 0]))
- return (false);
- if (other.components.length !== this.components.length)
- return (false);
- for (var i = 0; i < this.components.length; ++i) {
- if (this.components[i].oid !== other.components[i].oid)
- return (false);
- if (!globMatch(this.components[i].value,
- other.components[i].value)) {
- return (false);
- }
- }
- return (true);
-};
-
-Identity.forHost = function (hostname) {
- assert.string(hostname, 'hostname');
- return (new Identity({
- type: 'host',
- hostname: hostname,
- components: [ { name: 'cn', value: hostname } ]
- }));
-};
-
-Identity.forUser = function (uid) {
- assert.string(uid, 'uid');
- return (new Identity({
- type: 'user',
- uid: uid,
- components: [ { name: 'uid', value: uid } ]
- }));
-};
-
-Identity.forEmail = function (email) {
- assert.string(email, 'email');
- return (new Identity({
- type: 'email',
- email: email,
- components: [ { name: 'mail', value: email } ]
- }));
-};
-
-Identity.parseDN = function (dn) {
- assert.string(dn, 'dn');
- var parts = [''];
- var idx = 0;
- var rem = dn;
- while (rem.length > 0) {
- var m;
- /*JSSTYLED*/
- if ((m = /^,/.exec(rem)) !== null) {
- parts[++idx] = '';
- rem = rem.slice(m[0].length);
- /*JSSTYLED*/
- } else if ((m = /^\\,/.exec(rem)) !== null) {
- parts[idx] += ',';
- rem = rem.slice(m[0].length);
- /*JSSTYLED*/
- } else if ((m = /^\\./.exec(rem)) !== null) {
- parts[idx] += m[0];
- rem = rem.slice(m[0].length);
- /*JSSTYLED*/
- } else if ((m = /^[^\\,]+/.exec(rem)) !== null) {
- parts[idx] += m[0];
- rem = rem.slice(m[0].length);
- } else {
- throw (new Error('Failed to parse DN'));
- }
- }
- var cmps = parts.map(function (c) {
- c = c.trim();
- var eqPos = c.indexOf('=');
- while (eqPos > 0 && c.charAt(eqPos - 1) === '\\')
- eqPos = c.indexOf('=', eqPos + 1);
- if (eqPos === -1) {
- throw (new Error('Failed to parse DN'));
- }
- /*JSSTYLED*/
- var name = c.slice(0, eqPos).toLowerCase().replace(/\\=/g, '=');
- var value = c.slice(eqPos + 1);
- return ({ name: name, value: value });
- });
- return (new Identity({ components: cmps }));
-};
-
-Identity.fromArray = function (components) {
- assert.arrayOfObject(components, 'components');
- components.forEach(function (cmp) {
- assert.object(cmp, 'component');
- assert.string(cmp.name, 'component.name');
- if (!Buffer.isBuffer(cmp.value) &&
- !(typeof (cmp.value) === 'string')) {
- throw (new Error('Invalid component value'));
- }
- });
- return (new Identity({ components: components }));
-};
-
-Identity.parseAsn1 = function (der, top) {
- var components = [];
- der.readSequence(top);
- var end = der.offset + der.length;
- while (der.offset < end) {
- der.readSequence(asn1.Ber.Constructor | asn1.Ber.Set);
- var after = der.offset + der.length;
- der.readSequence();
- var oid = der.readOID();
- var type = der.peek();
- var value;
- switch (type) {
- case asn1.Ber.PrintableString:
- case asn1.Ber.IA5String:
- case asn1.Ber.OctetString:
- case asn1.Ber.T61String:
- value = der.readString(type);
- break;
- case asn1.Ber.Utf8String:
- value = der.readString(type, true);
- value = value.toString('utf8');
- break;
- case asn1.Ber.CharacterString:
- case asn1.Ber.BMPString:
- value = der.readString(type, true);
- value = value.toString('utf16le');
- break;
- default:
- throw (new Error('Unknown asn1 type ' + type));
- }
- components.push({ oid: oid, asn1type: type, value: value });
- der._offset = after;
- }
- der._offset = end;
- return (new Identity({
- components: components
- }));
-};
-
-Identity.isIdentity = function (obj, ver) {
- return (utils.isCompatible(obj, Identity, ver));
-};
-
-/*
- * API versions for Identity:
- * [1,0] -- initial ver
- */
-Identity.prototype._sshpkApiVersion = [1, 0];
-
-Identity._oldVersionDetect = function (obj) {
- return ([1, 0]);
-};
diff --git a/node_modules/sshpk/lib/index.js b/node_modules/sshpk/lib/index.js
deleted file mode 100644
index f76db79..0000000
--- a/node_modules/sshpk/lib/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-var Key = require('./key');
-var Fingerprint = require('./fingerprint');
-var Signature = require('./signature');
-var PrivateKey = require('./private-key');
-var Certificate = require('./certificate');
-var Identity = require('./identity');
-var errs = require('./errors');
-
-module.exports = {
- /* top-level classes */
- Key: Key,
- parseKey: Key.parse,
- Fingerprint: Fingerprint,
- parseFingerprint: Fingerprint.parse,
- Signature: Signature,
- parseSignature: Signature.parse,
- PrivateKey: PrivateKey,
- parsePrivateKey: PrivateKey.parse,
- generatePrivateKey: PrivateKey.generate,
- Certificate: Certificate,
- parseCertificate: Certificate.parse,
- createSelfSignedCertificate: Certificate.createSelfSigned,
- createCertificate: Certificate.create,
- Identity: Identity,
- identityFromDN: Identity.parseDN,
- identityForHost: Identity.forHost,
- identityForUser: Identity.forUser,
- identityForEmail: Identity.forEmail,
- identityFromArray: Identity.fromArray,
-
- /* errors */
- FingerprintFormatError: errs.FingerprintFormatError,
- InvalidAlgorithmError: errs.InvalidAlgorithmError,
- KeyParseError: errs.KeyParseError,
- SignatureParseError: errs.SignatureParseError,
- KeyEncryptedError: errs.KeyEncryptedError,
- CertificateParseError: errs.CertificateParseError
-};
diff --git a/node_modules/sshpk/lib/key.js b/node_modules/sshpk/lib/key.js
deleted file mode 100644
index 706f834..0000000
--- a/node_modules/sshpk/lib/key.js
+++ /dev/null
@@ -1,294 +0,0 @@
-// Copyright 2018 Joyent, Inc.
-
-module.exports = Key;
-
-var assert = require('assert-plus');
-var algs = require('./algs');
-var crypto = require('crypto');
-var Fingerprint = require('./fingerprint');
-var Signature = require('./signature');
-var DiffieHellman = require('./dhe').DiffieHellman;
-var errs = require('./errors');
-var utils = require('./utils');
-var PrivateKey = require('./private-key');
-var edCompat;
-
-try {
- edCompat = require('./ed-compat');
-} catch (e) {
- /* Just continue through, and bail out if we try to use it. */
-}
-
-var InvalidAlgorithmError = errs.InvalidAlgorithmError;
-var KeyParseError = errs.KeyParseError;
-
-var formats = {};
-formats['auto'] = require('./formats/auto');
-formats['pem'] = require('./formats/pem');
-formats['pkcs1'] = require('./formats/pkcs1');
-formats['pkcs8'] = require('./formats/pkcs8');
-formats['rfc4253'] = require('./formats/rfc4253');
-formats['ssh'] = require('./formats/ssh');
-formats['ssh-private'] = require('./formats/ssh-private');
-formats['openssh'] = formats['ssh-private'];
-formats['dnssec'] = require('./formats/dnssec');
-formats['putty'] = require('./formats/putty');
-formats['ppk'] = formats['putty'];
-
-function Key(opts) {
- assert.object(opts, 'options');
- assert.arrayOfObject(opts.parts, 'options.parts');
- assert.string(opts.type, 'options.type');
- assert.optionalString(opts.comment, 'options.comment');
-
- var algInfo = algs.info[opts.type];
- if (typeof (algInfo) !== 'object')
- throw (new InvalidAlgorithmError(opts.type));
-
- var partLookup = {};
- for (var i = 0; i < opts.parts.length; ++i) {
- var part = opts.parts[i];
- partLookup[part.name] = part;
- }
-
- this.type = opts.type;
- this.parts = opts.parts;
- this.part = partLookup;
- this.comment = undefined;
- this.source = opts.source;
-
- /* for speeding up hashing/fingerprint operations */
- this._rfc4253Cache = opts._rfc4253Cache;
- this._hashCache = {};
-
- var sz;
- this.curve = undefined;
- if (this.type === 'ecdsa') {
- var curve = this.part.curve.data.toString();
- this.curve = curve;
- sz = algs.curves[curve].size;
- } else if (this.type === 'ed25519' || this.type === 'curve25519') {
- sz = 256;
- this.curve = 'curve25519';
- } else {
- var szPart = this.part[algInfo.sizePart];
- sz = szPart.data.length;
- sz = sz * 8 - utils.countZeros(szPart.data);
- }
- this.size = sz;
-}
-
-Key.formats = formats;
-
-Key.prototype.toBuffer = function (format, options) {
- if (format === undefined)
- format = 'ssh';
- assert.string(format, 'format');
- assert.object(formats[format], 'formats[format]');
- assert.optionalObject(options, 'options');
-
- if (format === 'rfc4253') {
- if (this._rfc4253Cache === undefined)
- this._rfc4253Cache = formats['rfc4253'].write(this);
- return (this._rfc4253Cache);
- }
-
- return (formats[format].write(this, options));
-};
-
-Key.prototype.toString = function (format, options) {
- return (this.toBuffer(format, options).toString());
-};
-
-Key.prototype.hash = function (algo, type) {
- assert.string(algo, 'algorithm');
- assert.optionalString(type, 'type');
- if (type === undefined)
- type = 'ssh';
- algo = algo.toLowerCase();
- if (algs.hashAlgs[algo] === undefined)
- throw (new InvalidAlgorithmError(algo));
-
- var cacheKey = algo + '||' + type;
- if (this._hashCache[cacheKey])
- return (this._hashCache[cacheKey]);
-
- var buf;
- if (type === 'ssh') {
- buf = this.toBuffer('rfc4253');
- } else if (type === 'spki') {
- buf = formats.pkcs8.pkcs8ToBuffer(this);
- } else {
- throw (new Error('Hash type ' + type + ' not supported'));
- }
- var hash = crypto.createHash(algo).update(buf).digest();
- this._hashCache[cacheKey] = hash;
- return (hash);
-};
-
-Key.prototype.fingerprint = function (algo, type) {
- if (algo === undefined)
- algo = 'sha256';
- if (type === undefined)
- type = 'ssh';
- assert.string(algo, 'algorithm');
- assert.string(type, 'type');
- var opts = {
- type: 'key',
- hash: this.hash(algo, type),
- algorithm: algo,
- hashType: type
- };
- return (new Fingerprint(opts));
-};
-
-Key.prototype.defaultHashAlgorithm = function () {
- var hashAlgo = 'sha1';
- if (this.type === 'rsa')
- hashAlgo = 'sha256';
- if (this.type === 'dsa' && this.size > 1024)
- hashAlgo = 'sha256';
- if (this.type === 'ed25519')
- hashAlgo = 'sha512';
- if (this.type === 'ecdsa') {
- if (this.size <= 256)
- hashAlgo = 'sha256';
- else if (this.size <= 384)
- hashAlgo = 'sha384';
- else
- hashAlgo = 'sha512';
- }
- return (hashAlgo);
-};
-
-Key.prototype.createVerify = function (hashAlgo) {
- if (hashAlgo === undefined)
- hashAlgo = this.defaultHashAlgorithm();
- assert.string(hashAlgo, 'hash algorithm');
-
- /* ED25519 is not supported by OpenSSL, use a javascript impl. */
- if (this.type === 'ed25519' && edCompat !== undefined)
- return (new edCompat.Verifier(this, hashAlgo));
- if (this.type === 'curve25519')
- throw (new Error('Curve25519 keys are not suitable for ' +
- 'signing or verification'));
-
- var v, nm, err;
- try {
- nm = hashAlgo.toUpperCase();
- v = crypto.createVerify(nm);
- } catch (e) {
- err = e;
- }
- if (v === undefined || (err instanceof Error &&
- err.message.match(/Unknown message digest/))) {
- nm = 'RSA-';
- nm += hashAlgo.toUpperCase();
- v = crypto.createVerify(nm);
- }
- assert.ok(v, 'failed to create verifier');
- var oldVerify = v.verify.bind(v);
- var key = this.toBuffer('pkcs8');
- var curve = this.curve;
- var self = this;
- v.verify = function (signature, fmt) {
- if (Signature.isSignature(signature, [2, 0])) {
- if (signature.type !== self.type)
- return (false);
- if (signature.hashAlgorithm &&
- signature.hashAlgorithm !== hashAlgo)
- return (false);
- if (signature.curve && self.type === 'ecdsa' &&
- signature.curve !== curve)
- return (false);
- return (oldVerify(key, signature.toBuffer('asn1')));
-
- } else if (typeof (signature) === 'string' ||
- Buffer.isBuffer(signature)) {
- return (oldVerify(key, signature, fmt));
-
- /*
- * Avoid doing this on valid arguments, walking the prototype
- * chain can be quite slow.
- */
- } else if (Signature.isSignature(signature, [1, 0])) {
- throw (new Error('signature was created by too old ' +
- 'a version of sshpk and cannot be verified'));
-
- } else {
- throw (new TypeError('signature must be a string, ' +
- 'Buffer, or Signature object'));
- }
- };
- return (v);
-};
-
-Key.prototype.createDiffieHellman = function () {
- if (this.type === 'rsa')
- throw (new Error('RSA keys do not support Diffie-Hellman'));
-
- return (new DiffieHellman(this));
-};
-Key.prototype.createDH = Key.prototype.createDiffieHellman;
-
-Key.parse = function (data, format, options) {
- if (typeof (data) !== 'string')
- assert.buffer(data, 'data');
- if (format === undefined)
- format = 'auto';
- assert.string(format, 'format');
- if (typeof (options) === 'string')
- options = { filename: options };
- assert.optionalObject(options, 'options');
- if (options === undefined)
- options = {};
- assert.optionalString(options.filename, 'options.filename');
- if (options.filename === undefined)
- options.filename = '(unnamed)';
-
- assert.object(formats[format], 'formats[format]');
-
- try {
- var k = formats[format].read(data, options);
- if (k instanceof PrivateKey)
- k = k.toPublic();
- if (!k.comment)
- k.comment = options.filename;
- return (k);
- } catch (e) {
- if (e.name === 'KeyEncryptedError')
- throw (e);
- throw (new KeyParseError(options.filename, format, e));
- }
-};
-
-Key.isKey = function (obj, ver) {
- return (utils.isCompatible(obj, Key, ver));
-};
-
-/*
- * API versions for Key:
- * [1,0] -- initial ver, may take Signature for createVerify or may not
- * [1,1] -- added pkcs1, pkcs8 formats
- * [1,2] -- added auto, ssh-private, openssh formats
- * [1,3] -- added defaultHashAlgorithm
- * [1,4] -- added ed support, createDH
- * [1,5] -- first explicitly tagged version
- * [1,6] -- changed ed25519 part names
- * [1,7] -- spki hash types
- */
-Key.prototype._sshpkApiVersion = [1, 7];
-
-Key._oldVersionDetect = function (obj) {
- assert.func(obj.toBuffer);
- assert.func(obj.fingerprint);
- if (obj.createDH)
- return ([1, 4]);
- if (obj.defaultHashAlgorithm)
- return ([1, 3]);
- if (obj.formats['auto'])
- return ([1, 2]);
- if (obj.formats['pkcs1'])
- return ([1, 1]);
- return ([1, 0]);
-};
diff --git a/node_modules/sshpk/lib/private-key.js b/node_modules/sshpk/lib/private-key.js
deleted file mode 100644
index 5600838..0000000
--- a/node_modules/sshpk/lib/private-key.js
+++ /dev/null
@@ -1,246 +0,0 @@
-// Copyright 2017 Joyent, Inc.
-
-module.exports = PrivateKey;
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('./algs');
-var crypto = require('crypto');
-var Fingerprint = require('./fingerprint');
-var Signature = require('./signature');
-var errs = require('./errors');
-var util = require('util');
-var utils = require('./utils');
-var dhe = require('./dhe');
-var generateECDSA = dhe.generateECDSA;
-var generateED25519 = dhe.generateED25519;
-var edCompat = require('./ed-compat');
-var nacl = require('tweetnacl');
-
-var Key = require('./key');
-
-var InvalidAlgorithmError = errs.InvalidAlgorithmError;
-var KeyParseError = errs.KeyParseError;
-var KeyEncryptedError = errs.KeyEncryptedError;
-
-var formats = {};
-formats['auto'] = require('./formats/auto');
-formats['pem'] = require('./formats/pem');
-formats['pkcs1'] = require('./formats/pkcs1');
-formats['pkcs8'] = require('./formats/pkcs8');
-formats['rfc4253'] = require('./formats/rfc4253');
-formats['ssh-private'] = require('./formats/ssh-private');
-formats['openssh'] = formats['ssh-private'];
-formats['ssh'] = formats['ssh-private'];
-formats['dnssec'] = require('./formats/dnssec');
-
-function PrivateKey(opts) {
- assert.object(opts, 'options');
- Key.call(this, opts);
-
- this._pubCache = undefined;
-}
-util.inherits(PrivateKey, Key);
-
-PrivateKey.formats = formats;
-
-PrivateKey.prototype.toBuffer = function (format, options) {
- if (format === undefined)
- format = 'pkcs1';
- assert.string(format, 'format');
- assert.object(formats[format], 'formats[format]');
- assert.optionalObject(options, 'options');
-
- return (formats[format].write(this, options));
-};
-
-PrivateKey.prototype.hash = function (algo, type) {
- return (this.toPublic().hash(algo, type));
-};
-
-PrivateKey.prototype.fingerprint = function (algo, type) {
- return (this.toPublic().fingerprint(algo, type));
-};
-
-PrivateKey.prototype.toPublic = function () {
- if (this._pubCache)
- return (this._pubCache);
-
- var algInfo = algs.info[this.type];
- var pubParts = [];
- for (var i = 0; i < algInfo.parts.length; ++i) {
- var p = algInfo.parts[i];
- pubParts.push(this.part[p]);
- }
-
- this._pubCache = new Key({
- type: this.type,
- source: this,
- parts: pubParts
- });
- if (this.comment)
- this._pubCache.comment = this.comment;
- return (this._pubCache);
-};
-
-PrivateKey.prototype.derive = function (newType) {
- assert.string(newType, 'type');
- var priv, pub, pair;
-
- if (this.type === 'ed25519' && newType === 'curve25519') {
- priv = this.part.k.data;
- if (priv[0] === 0x00)
- priv = priv.slice(1);
-
- pair = nacl.box.keyPair.fromSecretKey(new Uint8Array(priv));
- pub = Buffer.from(pair.publicKey);
-
- return (new PrivateKey({
- type: 'curve25519',
- parts: [
- { name: 'A', data: utils.mpNormalize(pub) },
- { name: 'k', data: utils.mpNormalize(priv) }
- ]
- }));
- } else if (this.type === 'curve25519' && newType === 'ed25519') {
- priv = this.part.k.data;
- if (priv[0] === 0x00)
- priv = priv.slice(1);
-
- pair = nacl.sign.keyPair.fromSeed(new Uint8Array(priv));
- pub = Buffer.from(pair.publicKey);
-
- return (new PrivateKey({
- type: 'ed25519',
- parts: [
- { name: 'A', data: utils.mpNormalize(pub) },
- { name: 'k', data: utils.mpNormalize(priv) }
- ]
- }));
- }
- throw (new Error('Key derivation not supported from ' + this.type +
- ' to ' + newType));
-};
-
-PrivateKey.prototype.createVerify = function (hashAlgo) {
- return (this.toPublic().createVerify(hashAlgo));
-};
-
-PrivateKey.prototype.createSign = function (hashAlgo) {
- if (hashAlgo === undefined)
- hashAlgo = this.defaultHashAlgorithm();
- assert.string(hashAlgo, 'hash algorithm');
-
- /* ED25519 is not supported by OpenSSL, use a javascript impl. */
- if (this.type === 'ed25519' && edCompat !== undefined)
- return (new edCompat.Signer(this, hashAlgo));
- if (this.type === 'curve25519')
- throw (new Error('Curve25519 keys are not suitable for ' +
- 'signing or verification'));
-
- var v, nm, err;
- try {
- nm = hashAlgo.toUpperCase();
- v = crypto.createSign(nm);
- } catch (e) {
- err = e;
- }
- if (v === undefined || (err instanceof Error &&
- err.message.match(/Unknown message digest/))) {
- nm = 'RSA-';
- nm += hashAlgo.toUpperCase();
- v = crypto.createSign(nm);
- }
- assert.ok(v, 'failed to create verifier');
- var oldSign = v.sign.bind(v);
- var key = this.toBuffer('pkcs1');
- var type = this.type;
- var curve = this.curve;
- v.sign = function () {
- var sig = oldSign(key);
- if (typeof (sig) === 'string')
- sig = Buffer.from(sig, 'binary');
- sig = Signature.parse(sig, type, 'asn1');
- sig.hashAlgorithm = hashAlgo;
- sig.curve = curve;
- return (sig);
- };
- return (v);
-};
-
-PrivateKey.parse = function (data, format, options) {
- if (typeof (data) !== 'string')
- assert.buffer(data, 'data');
- if (format === undefined)
- format = 'auto';
- assert.string(format, 'format');
- if (typeof (options) === 'string')
- options = { filename: options };
- assert.optionalObject(options, 'options');
- if (options === undefined)
- options = {};
- assert.optionalString(options.filename, 'options.filename');
- if (options.filename === undefined)
- options.filename = '(unnamed)';
-
- assert.object(formats[format], 'formats[format]');
-
- try {
- var k = formats[format].read(data, options);
- assert.ok(k instanceof PrivateKey, 'key is not a private key');
- if (!k.comment)
- k.comment = options.filename;
- return (k);
- } catch (e) {
- if (e.name === 'KeyEncryptedError')
- throw (e);
- throw (new KeyParseError(options.filename, format, e));
- }
-};
-
-PrivateKey.isPrivateKey = function (obj, ver) {
- return (utils.isCompatible(obj, PrivateKey, ver));
-};
-
-PrivateKey.generate = function (type, options) {
- if (options === undefined)
- options = {};
- assert.object(options, 'options');
-
- switch (type) {
- case 'ecdsa':
- if (options.curve === undefined)
- options.curve = 'nistp256';
- assert.string(options.curve, 'options.curve');
- return (generateECDSA(options.curve));
- case 'ed25519':
- return (generateED25519());
- default:
- throw (new Error('Key generation not supported with key ' +
- 'type "' + type + '"'));
- }
-};
-
-/*
- * API versions for PrivateKey:
- * [1,0] -- initial ver
- * [1,1] -- added auto, pkcs[18], openssh/ssh-private formats
- * [1,2] -- added defaultHashAlgorithm
- * [1,3] -- added derive, ed, createDH
- * [1,4] -- first tagged version
- * [1,5] -- changed ed25519 part names and format
- * [1,6] -- type arguments for hash() and fingerprint()
- */
-PrivateKey.prototype._sshpkApiVersion = [1, 6];
-
-PrivateKey._oldVersionDetect = function (obj) {
- assert.func(obj.toPublic);
- assert.func(obj.createSign);
- if (obj.derive)
- return ([1, 3]);
- if (obj.defaultHashAlgorithm)
- return ([1, 2]);
- if (obj.formats['auto'])
- return ([1, 1]);
- return ([1, 0]);
-};
diff --git a/node_modules/sshpk/lib/signature.js b/node_modules/sshpk/lib/signature.js
deleted file mode 100644
index aa8fdbb..0000000
--- a/node_modules/sshpk/lib/signature.js
+++ /dev/null
@@ -1,314 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = Signature;
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var algs = require('./algs');
-var crypto = require('crypto');
-var errs = require('./errors');
-var utils = require('./utils');
-var asn1 = require('asn1');
-var SSHBuffer = require('./ssh-buffer');
-
-var InvalidAlgorithmError = errs.InvalidAlgorithmError;
-var SignatureParseError = errs.SignatureParseError;
-
-function Signature(opts) {
- assert.object(opts, 'options');
- assert.arrayOfObject(opts.parts, 'options.parts');
- assert.string(opts.type, 'options.type');
-
- var partLookup = {};
- for (var i = 0; i < opts.parts.length; ++i) {
- var part = opts.parts[i];
- partLookup[part.name] = part;
- }
-
- this.type = opts.type;
- this.hashAlgorithm = opts.hashAlgo;
- this.curve = opts.curve;
- this.parts = opts.parts;
- this.part = partLookup;
-}
-
-Signature.prototype.toBuffer = function (format) {
- if (format === undefined)
- format = 'asn1';
- assert.string(format, 'format');
-
- var buf;
- var stype = 'ssh-' + this.type;
-
- switch (this.type) {
- case 'rsa':
- switch (this.hashAlgorithm) {
- case 'sha256':
- stype = 'rsa-sha2-256';
- break;
- case 'sha512':
- stype = 'rsa-sha2-512';
- break;
- case 'sha1':
- case undefined:
- break;
- default:
- throw (new Error('SSH signature ' +
- 'format does not support hash ' +
- 'algorithm ' + this.hashAlgorithm));
- }
- if (format === 'ssh') {
- buf = new SSHBuffer({});
- buf.writeString(stype);
- buf.writePart(this.part.sig);
- return (buf.toBuffer());
- } else {
- return (this.part.sig.data);
- }
- break;
-
- case 'ed25519':
- if (format === 'ssh') {
- buf = new SSHBuffer({});
- buf.writeString(stype);
- buf.writePart(this.part.sig);
- return (buf.toBuffer());
- } else {
- return (this.part.sig.data);
- }
- break;
-
- case 'dsa':
- case 'ecdsa':
- var r, s;
- if (format === 'asn1') {
- var der = new asn1.BerWriter();
- der.startSequence();
- r = utils.mpNormalize(this.part.r.data);
- s = utils.mpNormalize(this.part.s.data);
- der.writeBuffer(r, asn1.Ber.Integer);
- der.writeBuffer(s, asn1.Ber.Integer);
- der.endSequence();
- return (der.buffer);
- } else if (format === 'ssh' && this.type === 'dsa') {
- buf = new SSHBuffer({});
- buf.writeString('ssh-dss');
- r = this.part.r.data;
- if (r.length > 20 && r[0] === 0x00)
- r = r.slice(1);
- s = this.part.s.data;
- if (s.length > 20 && s[0] === 0x00)
- s = s.slice(1);
- if ((this.hashAlgorithm &&
- this.hashAlgorithm !== 'sha1') ||
- r.length + s.length !== 40) {
- throw (new Error('OpenSSH only supports ' +
- 'DSA signatures with SHA1 hash'));
- }
- buf.writeBuffer(Buffer.concat([r, s]));
- return (buf.toBuffer());
- } else if (format === 'ssh' && this.type === 'ecdsa') {
- var inner = new SSHBuffer({});
- r = this.part.r.data;
- inner.writeBuffer(r);
- inner.writePart(this.part.s);
-
- buf = new SSHBuffer({});
- /* XXX: find a more proper way to do this? */
- var curve;
- if (r[0] === 0x00)
- r = r.slice(1);
- var sz = r.length * 8;
- if (sz === 256)
- curve = 'nistp256';
- else if (sz === 384)
- curve = 'nistp384';
- else if (sz === 528)
- curve = 'nistp521';
- buf.writeString('ecdsa-sha2-' + curve);
- buf.writeBuffer(inner.toBuffer());
- return (buf.toBuffer());
- }
- throw (new Error('Invalid signature format'));
- default:
- throw (new Error('Invalid signature data'));
- }
-};
-
-Signature.prototype.toString = function (format) {
- assert.optionalString(format, 'format');
- return (this.toBuffer(format).toString('base64'));
-};
-
-Signature.parse = function (data, type, format) {
- if (typeof (data) === 'string')
- data = Buffer.from(data, 'base64');
- assert.buffer(data, 'data');
- assert.string(format, 'format');
- assert.string(type, 'type');
-
- var opts = {};
- opts.type = type.toLowerCase();
- opts.parts = [];
-
- try {
- assert.ok(data.length > 0, 'signature must not be empty');
- switch (opts.type) {
- case 'rsa':
- return (parseOneNum(data, type, format, opts));
- case 'ed25519':
- return (parseOneNum(data, type, format, opts));
-
- case 'dsa':
- case 'ecdsa':
- if (format === 'asn1')
- return (parseDSAasn1(data, type, format, opts));
- else if (opts.type === 'dsa')
- return (parseDSA(data, type, format, opts));
- else
- return (parseECDSA(data, type, format, opts));
-
- default:
- throw (new InvalidAlgorithmError(type));
- }
-
- } catch (e) {
- if (e instanceof InvalidAlgorithmError)
- throw (e);
- throw (new SignatureParseError(type, format, e));
- }
-};
-
-function parseOneNum(data, type, format, opts) {
- if (format === 'ssh') {
- try {
- var buf = new SSHBuffer({buffer: data});
- var head = buf.readString();
- } catch (e) {
- /* fall through */
- }
- if (buf !== undefined) {
- var msg = 'SSH signature does not match expected ' +
- 'type (expected ' + type + ', got ' + head + ')';
- switch (head) {
- case 'ssh-rsa':
- assert.strictEqual(type, 'rsa', msg);
- opts.hashAlgo = 'sha1';
- break;
- case 'rsa-sha2-256':
- assert.strictEqual(type, 'rsa', msg);
- opts.hashAlgo = 'sha256';
- break;
- case 'rsa-sha2-512':
- assert.strictEqual(type, 'rsa', msg);
- opts.hashAlgo = 'sha512';
- break;
- case 'ssh-ed25519':
- assert.strictEqual(type, 'ed25519', msg);
- opts.hashAlgo = 'sha512';
- break;
- default:
- throw (new Error('Unknown SSH signature ' +
- 'type: ' + head));
- }
- var sig = buf.readPart();
- assert.ok(buf.atEnd(), 'extra trailing bytes');
- sig.name = 'sig';
- opts.parts.push(sig);
- return (new Signature(opts));
- }
- }
- opts.parts.push({name: 'sig', data: data});
- return (new Signature(opts));
-}
-
-function parseDSAasn1(data, type, format, opts) {
- var der = new asn1.BerReader(data);
- der.readSequence();
- var r = der.readString(asn1.Ber.Integer, true);
- var s = der.readString(asn1.Ber.Integer, true);
-
- opts.parts.push({name: 'r', data: utils.mpNormalize(r)});
- opts.parts.push({name: 's', data: utils.mpNormalize(s)});
-
- return (new Signature(opts));
-}
-
-function parseDSA(data, type, format, opts) {
- if (data.length != 40) {
- var buf = new SSHBuffer({buffer: data});
- var d = buf.readBuffer();
- if (d.toString('ascii') === 'ssh-dss')
- d = buf.readBuffer();
- assert.ok(buf.atEnd(), 'extra trailing bytes');
- assert.strictEqual(d.length, 40, 'invalid inner length');
- data = d;
- }
- opts.parts.push({name: 'r', data: data.slice(0, 20)});
- opts.parts.push({name: 's', data: data.slice(20, 40)});
- return (new Signature(opts));
-}
-
-function parseECDSA(data, type, format, opts) {
- var buf = new SSHBuffer({buffer: data});
-
- var r, s;
- var inner = buf.readBuffer();
- var stype = inner.toString('ascii');
- if (stype.slice(0, 6) === 'ecdsa-') {
- var parts = stype.split('-');
- assert.strictEqual(parts[0], 'ecdsa');
- assert.strictEqual(parts[1], 'sha2');
- opts.curve = parts[2];
- switch (opts.curve) {
- case 'nistp256':
- opts.hashAlgo = 'sha256';
- break;
- case 'nistp384':
- opts.hashAlgo = 'sha384';
- break;
- case 'nistp521':
- opts.hashAlgo = 'sha512';
- break;
- default:
- throw (new Error('Unsupported ECDSA curve: ' +
- opts.curve));
- }
- inner = buf.readBuffer();
- assert.ok(buf.atEnd(), 'extra trailing bytes on outer');
- buf = new SSHBuffer({buffer: inner});
- r = buf.readPart();
- } else {
- r = {data: inner};
- }
-
- s = buf.readPart();
- assert.ok(buf.atEnd(), 'extra trailing bytes');
-
- r.name = 'r';
- s.name = 's';
-
- opts.parts.push(r);
- opts.parts.push(s);
- return (new Signature(opts));
-}
-
-Signature.isSignature = function (obj, ver) {
- return (utils.isCompatible(obj, Signature, ver));
-};
-
-/*
- * API versions for Signature:
- * [1,0] -- initial ver
- * [2,0] -- support for rsa in full ssh format, compat with sshpk-agent
- * hashAlgorithm property
- * [2,1] -- first tagged version
- */
-Signature.prototype._sshpkApiVersion = [2, 1];
-
-Signature._oldVersionDetect = function (obj) {
- assert.func(obj.toBuffer);
- if (obj.hasOwnProperty('hashAlgorithm'))
- return ([2, 0]);
- return ([1, 0]);
-};
diff --git a/node_modules/sshpk/lib/ssh-buffer.js b/node_modules/sshpk/lib/ssh-buffer.js
deleted file mode 100644
index 1dd286c..0000000
--- a/node_modules/sshpk/lib/ssh-buffer.js
+++ /dev/null
@@ -1,149 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = SSHBuffer;
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-
-function SSHBuffer(opts) {
- assert.object(opts, 'options');
- if (opts.buffer !== undefined)
- assert.buffer(opts.buffer, 'options.buffer');
-
- this._size = opts.buffer ? opts.buffer.length : 1024;
- this._buffer = opts.buffer || Buffer.alloc(this._size);
- this._offset = 0;
-}
-
-SSHBuffer.prototype.toBuffer = function () {
- return (this._buffer.slice(0, this._offset));
-};
-
-SSHBuffer.prototype.atEnd = function () {
- return (this._offset >= this._buffer.length);
-};
-
-SSHBuffer.prototype.remainder = function () {
- return (this._buffer.slice(this._offset));
-};
-
-SSHBuffer.prototype.skip = function (n) {
- this._offset += n;
-};
-
-SSHBuffer.prototype.expand = function () {
- this._size *= 2;
- var buf = Buffer.alloc(this._size);
- this._buffer.copy(buf, 0);
- this._buffer = buf;
-};
-
-SSHBuffer.prototype.readPart = function () {
- return ({data: this.readBuffer()});
-};
-
-SSHBuffer.prototype.readBuffer = function () {
- var len = this._buffer.readUInt32BE(this._offset);
- this._offset += 4;
- assert.ok(this._offset + len <= this._buffer.length,
- 'length out of bounds at +0x' + this._offset.toString(16) +
- ' (data truncated?)');
- var buf = this._buffer.slice(this._offset, this._offset + len);
- this._offset += len;
- return (buf);
-};
-
-SSHBuffer.prototype.readString = function () {
- return (this.readBuffer().toString());
-};
-
-SSHBuffer.prototype.readCString = function () {
- var offset = this._offset;
- while (offset < this._buffer.length &&
- this._buffer[offset] !== 0x00)
- offset++;
- assert.ok(offset < this._buffer.length, 'c string does not terminate');
- var str = this._buffer.slice(this._offset, offset).toString();
- this._offset = offset + 1;
- return (str);
-};
-
-SSHBuffer.prototype.readInt = function () {
- var v = this._buffer.readUInt32BE(this._offset);
- this._offset += 4;
- return (v);
-};
-
-SSHBuffer.prototype.readInt64 = function () {
- assert.ok(this._offset + 8 < this._buffer.length,
- 'buffer not long enough to read Int64');
- var v = this._buffer.slice(this._offset, this._offset + 8);
- this._offset += 8;
- return (v);
-};
-
-SSHBuffer.prototype.readChar = function () {
- var v = this._buffer[this._offset++];
- return (v);
-};
-
-SSHBuffer.prototype.writeBuffer = function (buf) {
- while (this._offset + 4 + buf.length > this._size)
- this.expand();
- this._buffer.writeUInt32BE(buf.length, this._offset);
- this._offset += 4;
- buf.copy(this._buffer, this._offset);
- this._offset += buf.length;
-};
-
-SSHBuffer.prototype.writeString = function (str) {
- this.writeBuffer(Buffer.from(str, 'utf8'));
-};
-
-SSHBuffer.prototype.writeCString = function (str) {
- while (this._offset + 1 + str.length > this._size)
- this.expand();
- this._buffer.write(str, this._offset);
- this._offset += str.length;
- this._buffer[this._offset++] = 0;
-};
-
-SSHBuffer.prototype.writeInt = function (v) {
- while (this._offset + 4 > this._size)
- this.expand();
- this._buffer.writeUInt32BE(v, this._offset);
- this._offset += 4;
-};
-
-SSHBuffer.prototype.writeInt64 = function (v) {
- assert.buffer(v, 'value');
- if (v.length > 8) {
- var lead = v.slice(0, v.length - 8);
- for (var i = 0; i < lead.length; ++i) {
- assert.strictEqual(lead[i], 0,
- 'must fit in 64 bits of precision');
- }
- v = v.slice(v.length - 8, v.length);
- }
- while (this._offset + 8 > this._size)
- this.expand();
- v.copy(this._buffer, this._offset);
- this._offset += 8;
-};
-
-SSHBuffer.prototype.writeChar = function (v) {
- while (this._offset + 1 > this._size)
- this.expand();
- this._buffer[this._offset++] = v;
-};
-
-SSHBuffer.prototype.writePart = function (p) {
- this.writeBuffer(p.data);
-};
-
-SSHBuffer.prototype.write = function (buf) {
- while (this._offset + buf.length > this._size)
- this.expand();
- buf.copy(this._buffer, this._offset);
- this._offset += buf.length;
-};
diff --git a/node_modules/sshpk/lib/utils.js b/node_modules/sshpk/lib/utils.js
deleted file mode 100644
index 6b83a32..0000000
--- a/node_modules/sshpk/lib/utils.js
+++ /dev/null
@@ -1,404 +0,0 @@
-// Copyright 2015 Joyent, Inc.
-
-module.exports = {
- bufferSplit: bufferSplit,
- addRSAMissing: addRSAMissing,
- calculateDSAPublic: calculateDSAPublic,
- calculateED25519Public: calculateED25519Public,
- calculateX25519Public: calculateX25519Public,
- mpNormalize: mpNormalize,
- mpDenormalize: mpDenormalize,
- ecNormalize: ecNormalize,
- countZeros: countZeros,
- assertCompatible: assertCompatible,
- isCompatible: isCompatible,
- opensslKeyDeriv: opensslKeyDeriv,
- opensshCipherInfo: opensshCipherInfo,
- publicFromPrivateECDSA: publicFromPrivateECDSA,
- zeroPadToLength: zeroPadToLength,
- writeBitString: writeBitString,
- readBitString: readBitString,
- pbkdf2: pbkdf2
-};
-
-var assert = require('assert-plus');
-var Buffer = require('safer-buffer').Buffer;
-var PrivateKey = require('./private-key');
-var Key = require('./key');
-var crypto = require('crypto');
-var algs = require('./algs');
-var asn1 = require('asn1');
-
-var ec = require('ecc-jsbn/lib/ec');
-var jsbn = require('jsbn').BigInteger;
-var nacl = require('tweetnacl');
-
-var MAX_CLASS_DEPTH = 3;
-
-function isCompatible(obj, klass, needVer) {
- if (obj === null || typeof (obj) !== 'object')
- return (false);
- if (needVer === undefined)
- needVer = klass.prototype._sshpkApiVersion;
- if (obj instanceof klass &&
- klass.prototype._sshpkApiVersion[0] == needVer[0])
- return (true);
- var proto = Object.getPrototypeOf(obj);
- var depth = 0;
- while (proto.constructor.name !== klass.name) {
- proto = Object.getPrototypeOf(proto);
- if (!proto || ++depth > MAX_CLASS_DEPTH)
- return (false);
- }
- if (proto.constructor.name !== klass.name)
- return (false);
- var ver = proto._sshpkApiVersion;
- if (ver === undefined)
- ver = klass._oldVersionDetect(obj);
- if (ver[0] != needVer[0] || ver[1] < needVer[1])
- return (false);
- return (true);
-}
-
-function assertCompatible(obj, klass, needVer, name) {
- if (name === undefined)
- name = 'object';
- assert.ok(obj, name + ' must not be null');
- assert.object(obj, name + ' must be an object');
- if (needVer === undefined)
- needVer = klass.prototype._sshpkApiVersion;
- if (obj instanceof klass &&
- klass.prototype._sshpkApiVersion[0] == needVer[0])
- return;
- var proto = Object.getPrototypeOf(obj);
- var depth = 0;
- while (proto.constructor.name !== klass.name) {
- proto = Object.getPrototypeOf(proto);
- assert.ok(proto && ++depth <= MAX_CLASS_DEPTH,
- name + ' must be a ' + klass.name + ' instance');
- }
- assert.strictEqual(proto.constructor.name, klass.name,
- name + ' must be a ' + klass.name + ' instance');
- var ver = proto._sshpkApiVersion;
- if (ver === undefined)
- ver = klass._oldVersionDetect(obj);
- assert.ok(ver[0] == needVer[0] && ver[1] >= needVer[1],
- name + ' must be compatible with ' + klass.name + ' klass ' +
- 'version ' + needVer[0] + '.' + needVer[1]);
-}
-
-var CIPHER_LEN = {
- 'des-ede3-cbc': { key: 24, iv: 8 },
- 'aes-128-cbc': { key: 16, iv: 16 },
- 'aes-256-cbc': { key: 32, iv: 16 }
-};
-var PKCS5_SALT_LEN = 8;
-
-function opensslKeyDeriv(cipher, salt, passphrase, count) {
- assert.buffer(salt, 'salt');
- assert.buffer(passphrase, 'passphrase');
- assert.number(count, 'iteration count');
-
- var clen = CIPHER_LEN[cipher];
- assert.object(clen, 'supported cipher');
-
- salt = salt.slice(0, PKCS5_SALT_LEN);
-
- var D, D_prev, bufs;
- var material = Buffer.alloc(0);
- while (material.length < clen.key + clen.iv) {
- bufs = [];
- if (D_prev)
- bufs.push(D_prev);
- bufs.push(passphrase);
- bufs.push(salt);
- D = Buffer.concat(bufs);
- for (var j = 0; j < count; ++j)
- D = crypto.createHash('md5').update(D).digest();
- material = Buffer.concat([material, D]);
- D_prev = D;
- }
-
- return ({
- key: material.slice(0, clen.key),
- iv: material.slice(clen.key, clen.key + clen.iv)
- });
-}
-
-/* See: RFC2898 */
-function pbkdf2(hashAlg, salt, iterations, size, passphrase) {
- var hkey = Buffer.alloc(salt.length + 4);
- salt.copy(hkey);
-
- var gen = 0, ts = [];
- var i = 1;
- while (gen < size) {
- var t = T(i++);
- gen += t.length;
- ts.push(t);
- }
- return (Buffer.concat(ts).slice(0, size));
-
- function T(I) {
- hkey.writeUInt32BE(I, hkey.length - 4);
-
- var hmac = crypto.createHmac(hashAlg, passphrase);
- hmac.update(hkey);
-
- var Ti = hmac.digest();
- var Uc = Ti;
- var c = 1;
- while (c++ < iterations) {
- hmac = crypto.createHmac(hashAlg, passphrase);
- hmac.update(Uc);
- Uc = hmac.digest();
- for (var x = 0; x < Ti.length; ++x)
- Ti[x] ^= Uc[x];
- }
- return (Ti);
- }
-}
-
-/* Count leading zero bits on a buffer */
-function countZeros(buf) {
- var o = 0, obit = 8;
- while (o < buf.length) {
- var mask = (1 << obit);
- if ((buf[o] & mask) === mask)
- break;
- obit--;
- if (obit < 0) {
- o++;
- obit = 8;
- }
- }
- return (o*8 + (8 - obit) - 1);
-}
-
-function bufferSplit(buf, chr) {
- assert.buffer(buf);
- assert.string(chr);
-
- var parts = [];
- var lastPart = 0;
- var matches = 0;
- for (var i = 0; i < buf.length; ++i) {
- if (buf[i] === chr.charCodeAt(matches))
- ++matches;
- else if (buf[i] === chr.charCodeAt(0))
- matches = 1;
- else
- matches = 0;
-
- if (matches >= chr.length) {
- var newPart = i + 1;
- parts.push(buf.slice(lastPart, newPart - matches));
- lastPart = newPart;
- matches = 0;
- }
- }
- if (lastPart <= buf.length)
- parts.push(buf.slice(lastPart, buf.length));
-
- return (parts);
-}
-
-function ecNormalize(buf, addZero) {
- assert.buffer(buf);
- if (buf[0] === 0x00 && buf[1] === 0x04) {
- if (addZero)
- return (buf);
- return (buf.slice(1));
- } else if (buf[0] === 0x04) {
- if (!addZero)
- return (buf);
- } else {
- while (buf[0] === 0x00)
- buf = buf.slice(1);
- if (buf[0] === 0x02 || buf[0] === 0x03)
- throw (new Error('Compressed elliptic curve points ' +
- 'are not supported'));
- if (buf[0] !== 0x04)
- throw (new Error('Not a valid elliptic curve point'));
- if (!addZero)
- return (buf);
- }
- var b = Buffer.alloc(buf.length + 1);
- b[0] = 0x0;
- buf.copy(b, 1);
- return (b);
-}
-
-function readBitString(der, tag) {
- if (tag === undefined)
- tag = asn1.Ber.BitString;
- var buf = der.readString(tag, true);
- assert.strictEqual(buf[0], 0x00, 'bit strings with unused bits are ' +
- 'not supported (0x' + buf[0].toString(16) + ')');
- return (buf.slice(1));
-}
-
-function writeBitString(der, buf, tag) {
- if (tag === undefined)
- tag = asn1.Ber.BitString;
- var b = Buffer.alloc(buf.length + 1);
- b[0] = 0x00;
- buf.copy(b, 1);
- der.writeBuffer(b, tag);
-}
-
-function mpNormalize(buf) {
- assert.buffer(buf);
- while (buf.length > 1 && buf[0] === 0x00 && (buf[1] & 0x80) === 0x00)
- buf = buf.slice(1);
- if ((buf[0] & 0x80) === 0x80) {
- var b = Buffer.alloc(buf.length + 1);
- b[0] = 0x00;
- buf.copy(b, 1);
- buf = b;
- }
- return (buf);
-}
-
-function mpDenormalize(buf) {
- assert.buffer(buf);
- while (buf.length > 1 && buf[0] === 0x00)
- buf = buf.slice(1);
- return (buf);
-}
-
-function zeroPadToLength(buf, len) {
- assert.buffer(buf);
- assert.number(len);
- while (buf.length > len) {
- assert.equal(buf[0], 0x00);
- buf = buf.slice(1);
- }
- while (buf.length < len) {
- var b = Buffer.alloc(buf.length + 1);
- b[0] = 0x00;
- buf.copy(b, 1);
- buf = b;
- }
- return (buf);
-}
-
-function bigintToMpBuf(bigint) {
- var buf = Buffer.from(bigint.toByteArray());
- buf = mpNormalize(buf);
- return (buf);
-}
-
-function calculateDSAPublic(g, p, x) {
- assert.buffer(g);
- assert.buffer(p);
- assert.buffer(x);
- g = new jsbn(g);
- p = new jsbn(p);
- x = new jsbn(x);
- var y = g.modPow(x, p);
- var ybuf = bigintToMpBuf(y);
- return (ybuf);
-}
-
-function calculateED25519Public(k) {
- assert.buffer(k);
-
- var kp = nacl.sign.keyPair.fromSeed(new Uint8Array(k));
- return (Buffer.from(kp.publicKey));
-}
-
-function calculateX25519Public(k) {
- assert.buffer(k);
-
- var kp = nacl.box.keyPair.fromSeed(new Uint8Array(k));
- return (Buffer.from(kp.publicKey));
-}
-
-function addRSAMissing(key) {
- assert.object(key);
- assertCompatible(key, PrivateKey, [1, 1]);
-
- var d = new jsbn(key.part.d.data);
- var buf;
-
- if (!key.part.dmodp) {
- var p = new jsbn(key.part.p.data);
- var dmodp = d.mod(p.subtract(1));
-
- buf = bigintToMpBuf(dmodp);
- key.part.dmodp = {name: 'dmodp', data: buf};
- key.parts.push(key.part.dmodp);
- }
- if (!key.part.dmodq) {
- var q = new jsbn(key.part.q.data);
- var dmodq = d.mod(q.subtract(1));
-
- buf = bigintToMpBuf(dmodq);
- key.part.dmodq = {name: 'dmodq', data: buf};
- key.parts.push(key.part.dmodq);
- }
-}
-
-function publicFromPrivateECDSA(curveName, priv) {
- assert.string(curveName, 'curveName');
- assert.buffer(priv);
- var params = algs.curves[curveName];
- var p = new jsbn(params.p);
- var a = new jsbn(params.a);
- var b = new jsbn(params.b);
- var curve = new ec.ECCurveFp(p, a, b);
- var G = curve.decodePointHex(params.G.toString('hex'));
-
- var d = new jsbn(mpNormalize(priv));
- var pub = G.multiply(d);
- pub = Buffer.from(curve.encodePointHex(pub), 'hex');
-
- var parts = [];
- parts.push({name: 'curve', data: Buffer.from(curveName)});
- parts.push({name: 'Q', data: pub});
-
- var key = new Key({type: 'ecdsa', curve: curve, parts: parts});
- return (key);
-}
-
-function opensshCipherInfo(cipher) {
- var inf = {};
- switch (cipher) {
- case '3des-cbc':
- inf.keySize = 24;
- inf.blockSize = 8;
- inf.opensslName = 'des-ede3-cbc';
- break;
- case 'blowfish-cbc':
- inf.keySize = 16;
- inf.blockSize = 8;
- inf.opensslName = 'bf-cbc';
- break;
- case 'aes128-cbc':
- case 'aes128-ctr':
- case 'aes128-gcm@openssh.com':
- inf.keySize = 16;
- inf.blockSize = 16;
- inf.opensslName = 'aes-128-' + cipher.slice(7, 10);
- break;
- case 'aes192-cbc':
- case 'aes192-ctr':
- case 'aes192-gcm@openssh.com':
- inf.keySize = 24;
- inf.blockSize = 16;
- inf.opensslName = 'aes-192-' + cipher.slice(7, 10);
- break;
- case 'aes256-cbc':
- case 'aes256-ctr':
- case 'aes256-gcm@openssh.com':
- inf.keySize = 32;
- inf.blockSize = 16;
- inf.opensslName = 'aes-256-' + cipher.slice(7, 10);
- break;
- default:
- throw (new Error(
- 'Unsupported openssl cipher "' + cipher + '"'));
- }
- return (inf);
-}
diff --git a/node_modules/sshpk/man/man1/sshpk-conv.1 b/node_modules/sshpk/man/man1/sshpk-conv.1
deleted file mode 100644
index 0887dce..0000000
--- a/node_modules/sshpk/man/man1/sshpk-conv.1
+++ /dev/null
@@ -1,135 +0,0 @@
-.TH sshpk\-conv 1 "Jan 2016" sshpk "sshpk Commands"
-.SH NAME
-.PP
-sshpk\-conv \- convert between key formats
-.SH SYNOPSYS
-.PP
-\fB\fCsshpk\-conv\fR \-t FORMAT [FILENAME] [OPTIONS...]
-.PP
-\fB\fCsshpk\-conv\fR \-i [FILENAME] [OPTIONS...]
-.SH DESCRIPTION
-.PP
-Reads in a public or private key and converts it between different formats,
-particularly formats used in the SSH protocol and the well\-known PEM PKCS#1/7
-formats.
-.PP
-In the second form, with the \fB\fC\-i\fR option given, identifies a key and prints to
-stderr information about its nature, size and fingerprint.
-.SH EXAMPLES
-.PP
-Assume the following SSH\-format public key in \fB\fCid_ecdsa.pub\fR:
-.PP
-.RS
-.nf
-ecdsa\-sha2\-nistp256 AAAAE2VjZHNhLXNoYTI...9M/4c4= user@host
-.fi
-.RE
-.PP
-Identify it with \fB\fC\-i\fR:
-.PP
-.RS
-.nf
-$ sshpk\-conv \-i id_ecdsa.pub
-id_ecdsa: a 256 bit ECDSA public key
-ECDSA curve: nistp256
-Comment: user@host
-Fingerprint:
- SHA256:vCNX7eUkdvqqW0m4PoxQAZRv+CM4P4fS8+CbliAvS4k
- 81:ad:d5:57:e5:6f:7d:a2:93:79:56:af:d7:c0:38:51
-.fi
-.RE
-.PP
-Convert it to \fB\fCpkcs8\fR format, for use with e.g. OpenSSL:
-.PP
-.RS
-.nf
-$ sshpk\-conv \-t pkcs8 id_ecdsa
-\-\-\-\-\-BEGIN PUBLIC KEY\-\-\-\-\-
-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAsA4R6N6AS3gzaPBeLjG2ObSgUsR
-zOt+kWJoijLnw3ZMYUKmAx+lD0I5XUxdrPcs1vH5f3cn9TvRvO9L0z/hzg==
-\-\-\-\-\-END PUBLIC KEY\-\-\-\-\-
-.fi
-.RE
-.PP
-Retrieve the public half of a private key:
-.PP
-.RS
-.nf
-$ openssl genrsa 2048 | sshpk\-conv \-t ssh \-c foo@bar
-ssh\-rsa AAAAB3NzaC1yc2EAAA...koK7 foo@bar
-.fi
-.RE
-.PP
-Convert a private key to PKCS#1 (OpenSSL) format from a new\-style OpenSSH key
-format (the \fB\fCssh\-keygen \-o\fR format):
-.PP
-.RS
-.nf
-$ ssh\-keygen \-o \-f foobar
-\&...
-$ sshpk\-conv \-p \-t pkcs1 foobar
-\-\-\-\-\-BEGIN RSA PRIVATE KEY\-\-\-\-\-
-MIIDpAIBAAKCAQEA6T/GYJndb1TRH3+NL....
-\-\-\-\-\-END RSA PRIVATE KEY\-\-\-\-\-
-.fi
-.RE
-.SH OPTIONS
-.TP
-\fB\fC\-i, \-\-identify\fR
-Instead of converting the key, output identifying information about it to
-stderr, including its type, size and fingerprints.
-.TP
-\fB\fC\-p, \-\-private\fR
-Treat the key as a private key instead of a public key (the default). If you
-supply \fB\fCsshpk\-conv\fR with a private key and do not give this option, it will
-extract only the public half of the key from it and work with that.
-.TP
-\fB\fC\-f PATH, \-\-file=PATH\fR
-Input file to take the key from instead of stdin. If a filename is supplied
-as a positional argument, it is equivalent to using this option.
-.TP
-\fB\fC\-o PATH, \-\-out=PATH\fR
-Output file name to use instead of stdout.
-.PP
-\fB\fC\-T FORMAT, \-\-informat=FORMAT\fR
-.TP
-\fB\fC\-t FORMAT, \-\-outformat=FORMAT\fR
-Selects the input and output formats to be used (see FORMATS, below).
-.TP
-\fB\fC\-c TEXT, \-\-comment=TEXT\fR
-Sets the key comment for the output file, if supported.
-.SH FORMATS
-.PP
-Currently supported formats:
-.TP
-\fB\fCpem, pkcs1\fR
-The standard PEM format used by older OpenSSH and most TLS libraries such as
-OpenSSL. The classic \fB\fCid_rsa\fR file is usually in this format. It is an ASN.1
-encoded structure, base64\-encoded and placed between PEM headers.
-.TP
-\fB\fCssh\fR
-The SSH public key text format (the format of an \fB\fCid_rsa.pub\fR file). A single
-line, containing 3 space separated parts: the key type, key body and optional
-key comment.
-.TP
-\fB\fCpkcs8\fR
-A newer PEM format, usually used only for public keys by TLS libraries such
-as OpenSSL. The ASN.1 structure is more generic than that of \fB\fCpkcs1\fR\&.
-.TP
-\fB\fCopenssh\fR
-The new \fB\fCssh\-keygen \-o\fR format from OpenSSH. This can be mistaken for a PEM
-encoding but is actually an OpenSSH internal format.
-.TP
-\fB\fCrfc4253\fR
-The internal binary format of keys when sent over the wire in the SSH
-protocol. This is also the format that the \fB\fCssh\-agent\fR uses in its protocol.
-.SH SEE ALSO
-.PP
-.BR ssh-keygen (1),
-.BR openssl (1)
-.SH BUGS
-.PP
-Encrypted (password\-protected) keys are not supported.
-.PP
-Report bugs at Github
-\[la]https://github.com/arekinath/node-sshpk/issues\[ra]
diff --git a/node_modules/sshpk/man/man1/sshpk-sign.1 b/node_modules/sshpk/man/man1/sshpk-sign.1
deleted file mode 100644
index 749916b..0000000
--- a/node_modules/sshpk/man/man1/sshpk-sign.1
+++ /dev/null
@@ -1,81 +0,0 @@
-.TH sshpk\-sign 1 "Jan 2016" sshpk "sshpk Commands"
-.SH NAME
-.PP
-sshpk\-sign \- sign data using an SSH key
-.SH SYNOPSYS
-.PP
-\fB\fCsshpk\-sign\fR \-i KEYPATH [OPTION...]
-.SH DESCRIPTION
-.PP
-Takes in arbitrary bytes, and signs them using an SSH private key. The key can
-be of any type or format supported by the \fB\fCsshpk\fR library, including the
-standard OpenSSH formats, as well as PEM PKCS#1 and PKCS#8.
-.PP
-The signature is printed out in Base64 encoding, unless the \fB\fC\-\-binary\fR or \fB\fC\-b\fR
-option is given.
-.SH EXAMPLES
-.PP
-Signing with default settings:
-.PP
-.RS
-.nf
-$ printf 'foo' | sshpk\-sign \-i ~/.ssh/id_ecdsa
-MEUCIAMdLS/vXrrtWFepwe...
-.fi
-.RE
-.PP
-Signing in SSH (RFC 4253) format (rather than the default ASN.1):
-.PP
-.RS
-.nf
-$ printf 'foo' | sshpk\-sign \-i ~/.ssh/id_ecdsa \-t ssh
-AAAAFGVjZHNhLXNoYTIt...
-.fi
-.RE
-.PP
-Saving the binary signature to a file:
-.PP
-.RS
-.nf
-$ printf 'foo' | sshpk\-sign \-i ~/.ssh/id_ecdsa \\
- \-o signature.bin \-b
-$ cat signature.bin | base64
-MEUCIAMdLS/vXrrtWFepwe...
-.fi
-.RE
-.SH OPTIONS
-.TP
-\fB\fC\-v, \-\-verbose\fR
-Print extra information about the key and signature to stderr when signing.
-.TP
-\fB\fC\-b, \-\-binary\fR
-Don't base64\-encode the signature before outputting it.
-.TP
-\fB\fC\-i KEY, \-\-identity=KEY\fR
-Select the key to be used for signing. \fB\fCKEY\fR must be a relative or absolute
-filesystem path to the key file. Any format supported by the \fB\fCsshpk\fR library
-is supported, including OpenSSH formats and standard PEM PKCS.
-.TP
-\fB\fC\-f PATH, \-\-file=PATH\fR
-Input file to sign instead of stdin.
-.TP
-\fB\fC\-o PATH, \-\-out=PATH\fR
-Output file to save signature in instead of stdout.
-.TP
-\fB\fC\-H HASH, \-\-hash=HASH\fR
-Set the hash algorithm to be used for signing. This should be one of \fB\fCsha1\fR,
-\fB\fCsha256\fR or \fB\fCsha512\fR\&. Some key types may place restrictions on which hash
-algorithms may be used (e.g. ED25519 keys can only use SHA\-512).
-.TP
-\fB\fC\-t FORMAT, \-\-format=FORMAT\fR
-Choose the signature format to use, from \fB\fCasn1\fR, \fB\fCssh\fR or \fB\fCraw\fR (only for
-ED25519 signatures). The \fB\fCasn1\fR format is the default, as it is the format
-used with TLS and typically the standard in most non\-SSH libraries (e.g.
-OpenSSL). The \fB\fCssh\fR format is used in the SSH protocol and by the ssh\-agent.
-.SH SEE ALSO
-.PP
-.BR sshpk-verify (1)
-.SH BUGS
-.PP
-Report bugs at Github
-\[la]https://github.com/arekinath/node-sshpk/issues\[ra]
diff --git a/node_modules/sshpk/man/man1/sshpk-verify.1 b/node_modules/sshpk/man/man1/sshpk-verify.1
deleted file mode 100644
index f79169d..0000000
--- a/node_modules/sshpk/man/man1/sshpk-verify.1
+++ /dev/null
@@ -1,68 +0,0 @@
-.TH sshpk\-verify 1 "Jan 2016" sshpk "sshpk Commands"
-.SH NAME
-.PP
-sshpk\-verify \- verify a signature on data using an SSH key
-.SH SYNOPSYS
-.PP
-\fB\fCsshpk\-verify\fR \-i KEYPATH \-s SIGNATURE [OPTION...]
-.SH DESCRIPTION
-.PP
-Takes in arbitrary bytes and a Base64\-encoded signature, and verifies that the
-signature was produced by the private half of the given SSH public key.
-.SH EXAMPLES
-.PP
-.RS
-.nf
-$ printf 'foo' | sshpk\-verify \-i ~/.ssh/id_ecdsa \-s MEUCIQCYp...
-OK
-$ printf 'foo' | sshpk\-verify \-i ~/.ssh/id_ecdsa \-s GARBAGE...
-NOT OK
-.fi
-.RE
-.SH EXIT STATUS
-.TP
-\fB\fC0\fR
-Signature validates and matches the key.
-.TP
-\fB\fC1\fR
-Signature is parseable and the correct length but does not match the key or
-otherwise is invalid.
-.TP
-\fB\fC2\fR
-The signature or key could not be parsed.
-.TP
-\fB\fC3\fR
-Invalid commandline options were supplied.
-.SH OPTIONS
-.TP
-\fB\fC\-v, \-\-verbose\fR
-Print extra information about the key and signature to stderr when verifying.
-.TP
-\fB\fC\-i KEY, \-\-identity=KEY\fR
-Select the key to be used for verification. \fB\fCKEY\fR must be a relative or
-absolute filesystem path to the key file. Any format supported by the \fB\fCsshpk\fR
-library is supported, including OpenSSH formats and standard PEM PKCS.
-.TP
-\fB\fC\-s BASE64, \-\-signature=BASE64\fR
-Supplies the base64\-encoded signature to be verified.
-.TP
-\fB\fC\-f PATH, \-\-file=PATH\fR
-Input file to verify instead of stdin.
-.TP
-\fB\fC\-H HASH, \-\-hash=HASH\fR
-Set the hash algorithm to be used for signing. This should be one of \fB\fCsha1\fR,
-\fB\fCsha256\fR or \fB\fCsha512\fR\&. Some key types may place restrictions on which hash
-algorithms may be used (e.g. ED25519 keys can only use SHA\-512).
-.TP
-\fB\fC\-t FORMAT, \-\-format=FORMAT\fR
-Choose the signature format to use, from \fB\fCasn1\fR, \fB\fCssh\fR or \fB\fCraw\fR (only for
-ED25519 signatures). The \fB\fCasn1\fR format is the default, as it is the format
-used with TLS and typically the standard in most non\-SSH libraries (e.g.
-OpenSSL). The \fB\fCssh\fR format is used in the SSH protocol and by the ssh\-agent.
-.SH SEE ALSO
-.PP
-.BR sshpk-sign (1)
-.SH BUGS
-.PP
-Report bugs at Github
-\[la]https://github.com/arekinath/node-sshpk/issues\[ra]
diff --git a/node_modules/sshpk/package.json b/node_modules/sshpk/package.json
deleted file mode 100644
index 3f6d671..0000000
--- a/node_modules/sshpk/package.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "_from": "sshpk@^1.7.0",
- "_id": "sshpk@1.16.1",
- "_inBundle": false,
- "_integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
- "_location": "/sshpk",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "sshpk@^1.7.0",
- "name": "sshpk",
- "escapedName": "sshpk",
- "rawSpec": "^1.7.0",
- "saveSpec": null,
- "fetchSpec": "^1.7.0"
- },
- "_requiredBy": [
- "/http-signature"
- ],
- "_resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
- "_shasum": "fb661c0bef29b39db40769ee39fa70093d6f6877",
- "_spec": "sshpk@^1.7.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/http-signature",
- "author": {
- "name": "Joyent, Inc"
- },
- "bin": {
- "sshpk-conv": "bin/sshpk-conv",
- "sshpk-sign": "bin/sshpk-sign",
- "sshpk-verify": "bin/sshpk-verify"
- },
- "bugs": {
- "url": "https://github.com/arekinath/node-sshpk/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Dave Eddy",
- "email": "dave@daveeddy.com"
- },
- {
- "name": "Mark Cavage",
- "email": "mcavage@gmail.com"
- },
- {
- "name": "Alex Wilson",
- "email": "alex@cooperi.net"
- }
- ],
- "dependencies": {
- "asn1": "~0.2.3",
- "assert-plus": "^1.0.0",
- "bcrypt-pbkdf": "^1.0.0",
- "dashdash": "^1.12.0",
- "ecc-jsbn": "~0.1.1",
- "getpass": "^0.1.1",
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.0.2",
- "tweetnacl": "~0.14.0"
- },
- "deprecated": false,
- "description": "A library for finding and using SSH public keys",
- "devDependencies": {
- "benchmark": "^1.0.0",
- "sinon": "^1.17.2",
- "tape": "^3.5.0",
- "temp": "^0.8.2"
- },
- "directories": {
- "bin": "./bin",
- "lib": "./lib",
- "man": "./man/man1"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "homepage": "https://github.com/arekinath/node-sshpk#readme",
- "license": "MIT",
- "main": "lib/index.js",
- "man": [
- "/Users/gebauer/ws/themes/ag/node_modules/sshpk/man/man1/sshpk-conv.1",
- "/Users/gebauer/ws/themes/ag/node_modules/sshpk/man/man1/sshpk-sign.1",
- "/Users/gebauer/ws/themes/ag/node_modules/sshpk/man/man1/sshpk-verify.1"
- ],
- "name": "sshpk",
- "optionalDependencies": {},
- "repository": {
- "type": "git",
- "url": "git+https://github.com/joyent/node-sshpk.git"
- },
- "scripts": {
- "test": "tape test/*.js"
- },
- "version": "1.16.1"
-}
diff --git a/node_modules/stdout-stream/.travis.yml b/node_modules/stdout-stream/.travis.yml
deleted file mode 100644
index 4ff8a05..0000000
--- a/node_modules/stdout-stream/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
- - "0.8"
- - "0.10"
-
-script: "npm test"
diff --git a/node_modules/stdout-stream/LICENSE b/node_modules/stdout-stream/LICENSE
deleted file mode 100644
index 4b30ed5..0000000
--- a/node_modules/stdout-stream/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright 2013 Mathias Buus
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/stdout-stream/README.md b/node_modules/stdout-stream/README.md
deleted file mode 100644
index ede4fcd..0000000
--- a/node_modules/stdout-stream/README.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# stdout-stream
-
-Non-blocking stdout stream
-
- npm install stdout-stream
-
-[![build status](http://img.shields.io/travis/mafintosh/level-filesystem.svg?style=flat)](http://travis-ci.org/mafintosh/stdout-stream)
-![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)
-
-
-## Rant
-
-Try saving this example as `example.js`
-
-``` js
-console.error('start');
-process.stdout.write(new Buffer(1024*1024));
-console.error('end');
-```
-
-And run the following program
-
-```
-node example.js | sleep 1000
-```
-
-The program will never print `end` since stdout in node currently is blocking - even when its being piped (!).
-
-stdout-stream tries to fix this by being a stream that writes to stdout but never blocks
-
-## Usage
-
-``` js
-var stdout = require('stdout-stream');
-
-stdout.write('hello\n'); // write should NEVER block
-stdout.write('non-blocking\n')
-stdout.write('world\n');
-```
-
-`stdout-stream` should behave in the same way as `process.stdout` (i.e. do not end on pipe etc)
-
-## License
-
-MIT
diff --git a/node_modules/stdout-stream/index.js b/node_modules/stdout-stream/index.js
deleted file mode 100644
index a8ab752..0000000
--- a/node_modules/stdout-stream/index.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var fs = require('fs');
-var Writable = require('readable-stream/writable');
-
-var exists = function(path) {
- try {
- return fs.existsSync(path);
- } catch (err) {
- return false;
- }
-};
-
-module.exports = function() {
- var s = new Writable({highWaterMark:0});
-
- var cb;
- var data;
- var tries = 0;
- var offset = 0;
-
- var write = function() {
- fs.write(1, data, offset, data.length - offset, null, onwrite);
- };
-
- var onwrite = function(err, written) {
- if (err && err.code === 'EPIPE') return cb()
- if (err && err.code === 'EAGAIN' && tries++ < 30) return setTimeout(write, 10);
- if (err) return cb(err);
-
- tries = 0;
- if (offset + written >= data.length) return cb();
-
- offset += written;
- write();
- };
-
- s._write = function(_data, enc, _cb) {
- offset = 0;
- cb = _cb;
- data = _data;
- write();
- };
-
- s._isStdio = true;
- s.isTTY = process.stdout.isTTY;
-
- s.on('finish', function() {
- fs.close(1, function(err) {
- if (err) s.emit('error', err);
- });
- });
-
- return s;
-}();
diff --git a/node_modules/stdout-stream/package.json b/node_modules/stdout-stream/package.json
deleted file mode 100644
index 87ba1b3..0000000
--- a/node_modules/stdout-stream/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_from": "stdout-stream@^1.4.0",
- "_id": "stdout-stream@1.4.1",
- "_inBundle": false,
- "_integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==",
- "_location": "/stdout-stream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "stdout-stream@^1.4.0",
- "name": "stdout-stream",
- "escapedName": "stdout-stream",
- "rawSpec": "^1.4.0",
- "saveSpec": null,
- "fetchSpec": "^1.4.0"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz",
- "_shasum": "5ac174cdd5cd726104aa0c0b2bd83815d8d535de",
- "_spec": "stdout-stream@^1.4.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "bugs": {
- "url": "https://github.com/mafintosh/stdout-stream/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "readable-stream": "^2.0.1"
- },
- "deprecated": false,
- "description": "Non-blocking stdout stream",
- "devDependencies": {
- "tape": "~2.12.3"
- },
- "homepage": "https://github.com/mafintosh/stdout-stream#readme",
- "license": "MIT",
- "name": "stdout-stream",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mafintosh/stdout-stream.git"
- },
- "scripts": {
- "test": "tape test/index.js"
- },
- "version": "1.4.1"
-}
diff --git a/node_modules/stdout-stream/test/fixtures/end.js b/node_modules/stdout-stream/test/fixtures/end.js
deleted file mode 100644
index cdfeba3..0000000
--- a/node_modules/stdout-stream/test/fixtures/end.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var stdout = require('../../');
-
-stdout.write('stdout');
-stdout.end(function() {
- setTimeout(function() {
- process.exit(0);
- }, 10);
-}); \ No newline at end of file
diff --git a/node_modules/stdout-stream/test/fixtures/hello-world.js b/node_modules/stdout-stream/test/fixtures/hello-world.js
deleted file mode 100644
index 096ee27..0000000
--- a/node_modules/stdout-stream/test/fixtures/hello-world.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var stdout = require('../../');
-
-stdout.write('hello\n');
-stdout.write('world\n'); \ No newline at end of file
diff --git a/node_modules/stdout-stream/test/index.js b/node_modules/stdout-stream/test/index.js
deleted file mode 100644
index d26d079..0000000
--- a/node_modules/stdout-stream/test/index.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var tape = require('tape');
-var proc = require('child_process');
-var path = require('path');
-
-tape('print to stdout', function(t) {
- proc.exec('"'+process.execPath+'" '+path.join(__dirname,'fixtures','hello-world.js'), function(err, stdout) {
- t.ok(!err);
- t.same(stdout,'hello\nworld\n');
- t.end();
- });
-});
-
-tape('end stdout', function(t) {
- var ch = proc.exec('"'+process.execPath+'" '+path.join(__dirname,'fixtures','end.js'));
- var buf = [];
- var processOnExit = false;
- var stdoutOnEnd = false;
-
- ch.stdout.on('data', function(data) {
- buf.push(data);
- });
- ch.stdout.on('end', function() {
- t.same(Buffer.concat(buf).toString(), 'stdout');
- t.ok(!processOnExit);
- stdoutOnEnd = true;
- });
- ch.on('exit', function(code) {
- processOnExit = true;
- t.ok(stdoutOnEnd);
- t.same(code, 0);
- t.end();
- });
-}); \ No newline at end of file
diff --git a/node_modules/string-width/index.js b/node_modules/string-width/index.js
deleted file mode 100644
index b9bec62..0000000
--- a/node_modules/string-width/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-var stripAnsi = require('strip-ansi');
-var codePointAt = require('code-point-at');
-var isFullwidthCodePoint = require('is-fullwidth-code-point');
-
-// https://github.com/nodejs/io.js/blob/cff7300a578be1b10001f2d967aaedc88aee6402/lib/readline.js#L1345
-module.exports = function (str) {
- if (typeof str !== 'string' || str.length === 0) {
- return 0;
- }
-
- var width = 0;
-
- str = stripAnsi(str);
-
- for (var i = 0; i < str.length; i++) {
- var code = codePointAt(str, i);
-
- // ignore control characters
- if (code <= 0x1f || (code >= 0x7f && code <= 0x9f)) {
- continue;
- }
-
- // surrogates
- if (code >= 0x10000) {
- i++;
- }
-
- if (isFullwidthCodePoint(code)) {
- width += 2;
- } else {
- width++;
- }
- }
-
- return width;
-};
diff --git a/node_modules/string-width/license b/node_modules/string-width/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/string-width/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/string-width/package.json b/node_modules/string-width/package.json
deleted file mode 100644
index 449a1b4..0000000
--- a/node_modules/string-width/package.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "_from": "string-width@^1.0.1",
- "_id": "string-width@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
- "_location": "/string-width",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "string-width@^1.0.1",
- "name": "string-width",
- "escapedName": "string-width",
- "rawSpec": "^1.0.1",
- "saveSpec": null,
- "fetchSpec": "^1.0.1"
- },
- "_requiredBy": [
- "/cliui",
- "/gauge",
- "/wide-align",
- "/wrap-ansi",
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
- "_shasum": "118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3",
- "_spec": "string-width@^1.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/gauge",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/string-width/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "code-point-at": "^1.0.0",
- "is-fullwidth-code-point": "^1.0.0",
- "strip-ansi": "^3.0.0"
- },
- "deprecated": false,
- "description": "Get the visual width of a string - the number of columns required to display it",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/string-width#readme",
- "keywords": [
- "string",
- "str",
- "character",
- "char",
- "unicode",
- "width",
- "visual",
- "column",
- "columns",
- "fullwidth",
- "full-width",
- "full",
- "ansi",
- "escape",
- "codes",
- "cli",
- "command-line",
- "terminal",
- "console",
- "cjk",
- "chinese",
- "japanese",
- "korean",
- "fixed-width"
- ],
- "license": "MIT",
- "name": "string-width",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/string-width.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/string-width/readme.md b/node_modules/string-width/readme.md
deleted file mode 100644
index 1ab42c9..0000000
--- a/node_modules/string-width/readme.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width)
-
-> Get the visual width of a string - the number of columns required to display it
-
-Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
-
-Useful to be able to measure the actual width of command-line output.
-
-
-## Install
-
-```
-$ npm install --save string-width
-```
-
-
-## Usage
-
-```js
-const stringWidth = require('string-width');
-
-stringWidth('古');
-//=> 2
-
-stringWidth('\u001b[1m古\u001b[22m');
-//=> 2
-
-stringWidth('a');
-//=> 1
-```
-
-
-## Related
-
-- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module
-- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string
-- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/string_decoder/.travis.yml b/node_modules/string_decoder/.travis.yml
deleted file mode 100644
index 3347a72..0000000
--- a/node_modules/string_decoder/.travis.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-sudo: false
-language: node_js
-before_install:
- - npm install -g npm@2
- - test $NPM_LEGACY && npm install -g npm@latest-3 || npm install npm -g
-notifications:
- email: false
-matrix:
- fast_finish: true
- include:
- - node_js: '0.8'
- env:
- - TASK=test
- - NPM_LEGACY=true
- - node_js: '0.10'
- env:
- - TASK=test
- - NPM_LEGACY=true
- - node_js: '0.11'
- env:
- - TASK=test
- - NPM_LEGACY=true
- - node_js: '0.12'
- env:
- - TASK=test
- - NPM_LEGACY=true
- - node_js: 1
- env:
- - TASK=test
- - NPM_LEGACY=true
- - node_js: 2
- env:
- - TASK=test
- - NPM_LEGACY=true
- - node_js: 3
- env:
- - TASK=test
- - NPM_LEGACY=true
- - node_js: 4
- env: TASK=test
- - node_js: 5
- env: TASK=test
- - node_js: 6
- env: TASK=test
- - node_js: 7
- env: TASK=test
- - node_js: 8
- env: TASK=test
- - node_js: 9
- env: TASK=test
diff --git a/node_modules/string_decoder/LICENSE b/node_modules/string_decoder/LICENSE
deleted file mode 100644
index 778edb2..0000000
--- a/node_modules/string_decoder/LICENSE
+++ /dev/null
@@ -1,48 +0,0 @@
-Node.js is licensed for use as follows:
-
-"""
-Copyright Node.js contributors. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
-"""
-
-This license applies to parts of Node.js originating from the
-https://github.com/joyent/node repository:
-
-"""
-Copyright Joyent, Inc. and other Node contributors. All rights reserved.
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to
-deal in the Software without restriction, including without limitation the
-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-sell copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
-"""
-
diff --git a/node_modules/string_decoder/README.md b/node_modules/string_decoder/README.md
deleted file mode 100644
index 5fd5831..0000000
--- a/node_modules/string_decoder/README.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# string_decoder
-
-***Node-core v8.9.4 string_decoder for userland***
-
-
-[![NPM](https://nodei.co/npm/string_decoder.png?downloads=true&downloadRank=true)](https://nodei.co/npm/string_decoder/)
-[![NPM](https://nodei.co/npm-dl/string_decoder.png?&months=6&height=3)](https://nodei.co/npm/string_decoder/)
-
-
-```bash
-npm install --save string_decoder
-```
-
-***Node-core string_decoder for userland***
-
-This package is a mirror of the string_decoder implementation in Node-core.
-
-Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v8.9.4/docs/api/).
-
-As of version 1.0.0 **string_decoder** uses semantic versioning.
-
-## Previous versions
-
-Previous version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10.
-
-## Update
-
-The *build/* directory contains a build script that will scrape the source from the [nodejs/node](https://github.com/nodejs/node) repo given a specific Node version.
-
-## Streams Working Group
-
-`string_decoder` is maintained by the Streams Working Group, which
-oversees the development and maintenance of the Streams API within
-Node.js. The responsibilities of the Streams Working Group include:
-
-* Addressing stream issues on the Node.js issue tracker.
-* Authoring and editing stream documentation within the Node.js project.
-* Reviewing changes to stream subclasses within the Node.js project.
-* Redirecting changes to streams from the Node.js project to this
- project.
-* Assisting in the implementation of stream providers within Node.js.
-* Recommending versions of `readable-stream` to be included in Node.js.
-* Messaging about the future of streams to give the community advance
- notice of changes.
-
-See [readable-stream](https://github.com/nodejs/readable-stream) for
-more details.
diff --git a/node_modules/string_decoder/lib/string_decoder.js b/node_modules/string_decoder/lib/string_decoder.js
deleted file mode 100644
index 2e89e63..0000000
--- a/node_modules/string_decoder/lib/string_decoder.js
+++ /dev/null
@@ -1,296 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-'use strict';
-
-/*<replacement>*/
-
-var Buffer = require('safe-buffer').Buffer;
-/*</replacement>*/
-
-var isEncoding = Buffer.isEncoding || function (encoding) {
- encoding = '' + encoding;
- switch (encoding && encoding.toLowerCase()) {
- case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
- return true;
- default:
- return false;
- }
-};
-
-function _normalizeEncoding(enc) {
- if (!enc) return 'utf8';
- var retried;
- while (true) {
- switch (enc) {
- case 'utf8':
- case 'utf-8':
- return 'utf8';
- case 'ucs2':
- case 'ucs-2':
- case 'utf16le':
- case 'utf-16le':
- return 'utf16le';
- case 'latin1':
- case 'binary':
- return 'latin1';
- case 'base64':
- case 'ascii':
- case 'hex':
- return enc;
- default:
- if (retried) return; // undefined
- enc = ('' + enc).toLowerCase();
- retried = true;
- }
- }
-};
-
-// Do not cache `Buffer.isEncoding` when checking encoding names as some
-// modules monkey-patch it to support additional encodings
-function normalizeEncoding(enc) {
- var nenc = _normalizeEncoding(enc);
- if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
- return nenc || enc;
-}
-
-// StringDecoder provides an interface for efficiently splitting a series of
-// buffers into a series of JS strings without breaking apart multi-byte
-// characters.
-exports.StringDecoder = StringDecoder;
-function StringDecoder(encoding) {
- this.encoding = normalizeEncoding(encoding);
- var nb;
- switch (this.encoding) {
- case 'utf16le':
- this.text = utf16Text;
- this.end = utf16End;
- nb = 4;
- break;
- case 'utf8':
- this.fillLast = utf8FillLast;
- nb = 4;
- break;
- case 'base64':
- this.text = base64Text;
- this.end = base64End;
- nb = 3;
- break;
- default:
- this.write = simpleWrite;
- this.end = simpleEnd;
- return;
- }
- this.lastNeed = 0;
- this.lastTotal = 0;
- this.lastChar = Buffer.allocUnsafe(nb);
-}
-
-StringDecoder.prototype.write = function (buf) {
- if (buf.length === 0) return '';
- var r;
- var i;
- if (this.lastNeed) {
- r = this.fillLast(buf);
- if (r === undefined) return '';
- i = this.lastNeed;
- this.lastNeed = 0;
- } else {
- i = 0;
- }
- if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
- return r || '';
-};
-
-StringDecoder.prototype.end = utf8End;
-
-// Returns only complete characters in a Buffer
-StringDecoder.prototype.text = utf8Text;
-
-// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
-StringDecoder.prototype.fillLast = function (buf) {
- if (this.lastNeed <= buf.length) {
- buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
- return this.lastChar.toString(this.encoding, 0, this.lastTotal);
- }
- buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
- this.lastNeed -= buf.length;
-};
-
-// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
-// continuation byte. If an invalid byte is detected, -2 is returned.
-function utf8CheckByte(byte) {
- if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
- return byte >> 6 === 0x02 ? -1 : -2;
-}
-
-// Checks at most 3 bytes at the end of a Buffer in order to detect an
-// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
-// needed to complete the UTF-8 character (if applicable) are returned.
-function utf8CheckIncomplete(self, buf, i) {
- var j = buf.length - 1;
- if (j < i) return 0;
- var nb = utf8CheckByte(buf[j]);
- if (nb >= 0) {
- if (nb > 0) self.lastNeed = nb - 1;
- return nb;
- }
- if (--j < i || nb === -2) return 0;
- nb = utf8CheckByte(buf[j]);
- if (nb >= 0) {
- if (nb > 0) self.lastNeed = nb - 2;
- return nb;
- }
- if (--j < i || nb === -2) return 0;
- nb = utf8CheckByte(buf[j]);
- if (nb >= 0) {
- if (nb > 0) {
- if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
- }
- return nb;
- }
- return 0;
-}
-
-// Validates as many continuation bytes for a multi-byte UTF-8 character as
-// needed or are available. If we see a non-continuation byte where we expect
-// one, we "replace" the validated continuation bytes we've seen so far with
-// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
-// behavior. The continuation byte check is included three times in the case
-// where all of the continuation bytes for a character exist in the same buffer.
-// It is also done this way as a slight performance increase instead of using a
-// loop.
-function utf8CheckExtraBytes(self, buf, p) {
- if ((buf[0] & 0xC0) !== 0x80) {
- self.lastNeed = 0;
- return '\ufffd';
- }
- if (self.lastNeed > 1 && buf.length > 1) {
- if ((buf[1] & 0xC0) !== 0x80) {
- self.lastNeed = 1;
- return '\ufffd';
- }
- if (self.lastNeed > 2 && buf.length > 2) {
- if ((buf[2] & 0xC0) !== 0x80) {
- self.lastNeed = 2;
- return '\ufffd';
- }
- }
- }
-}
-
-// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
-function utf8FillLast(buf) {
- var p = this.lastTotal - this.lastNeed;
- var r = utf8CheckExtraBytes(this, buf, p);
- if (r !== undefined) return r;
- if (this.lastNeed <= buf.length) {
- buf.copy(this.lastChar, p, 0, this.lastNeed);
- return this.lastChar.toString(this.encoding, 0, this.lastTotal);
- }
- buf.copy(this.lastChar, p, 0, buf.length);
- this.lastNeed -= buf.length;
-}
-
-// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
-// partial character, the character's bytes are buffered until the required
-// number of bytes are available.
-function utf8Text(buf, i) {
- var total = utf8CheckIncomplete(this, buf, i);
- if (!this.lastNeed) return buf.toString('utf8', i);
- this.lastTotal = total;
- var end = buf.length - (total - this.lastNeed);
- buf.copy(this.lastChar, 0, end);
- return buf.toString('utf8', i, end);
-}
-
-// For UTF-8, a replacement character is added when ending on a partial
-// character.
-function utf8End(buf) {
- var r = buf && buf.length ? this.write(buf) : '';
- if (this.lastNeed) return r + '\ufffd';
- return r;
-}
-
-// UTF-16LE typically needs two bytes per character, but even if we have an even
-// number of bytes available, we need to check if we end on a leading/high
-// surrogate. In that case, we need to wait for the next two bytes in order to
-// decode the last character properly.
-function utf16Text(buf, i) {
- if ((buf.length - i) % 2 === 0) {
- var r = buf.toString('utf16le', i);
- if (r) {
- var c = r.charCodeAt(r.length - 1);
- if (c >= 0xD800 && c <= 0xDBFF) {
- this.lastNeed = 2;
- this.lastTotal = 4;
- this.lastChar[0] = buf[buf.length - 2];
- this.lastChar[1] = buf[buf.length - 1];
- return r.slice(0, -1);
- }
- }
- return r;
- }
- this.lastNeed = 1;
- this.lastTotal = 2;
- this.lastChar[0] = buf[buf.length - 1];
- return buf.toString('utf16le', i, buf.length - 1);
-}
-
-// For UTF-16LE we do not explicitly append special replacement characters if we
-// end on a partial character, we simply let v8 handle that.
-function utf16End(buf) {
- var r = buf && buf.length ? this.write(buf) : '';
- if (this.lastNeed) {
- var end = this.lastTotal - this.lastNeed;
- return r + this.lastChar.toString('utf16le', 0, end);
- }
- return r;
-}
-
-function base64Text(buf, i) {
- var n = (buf.length - i) % 3;
- if (n === 0) return buf.toString('base64', i);
- this.lastNeed = 3 - n;
- this.lastTotal = 3;
- if (n === 1) {
- this.lastChar[0] = buf[buf.length - 1];
- } else {
- this.lastChar[0] = buf[buf.length - 2];
- this.lastChar[1] = buf[buf.length - 1];
- }
- return buf.toString('base64', i, buf.length - n);
-}
-
-function base64End(buf) {
- var r = buf && buf.length ? this.write(buf) : '';
- if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
- return r;
-}
-
-// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
-function simpleWrite(buf) {
- return buf.toString(this.encoding);
-}
-
-function simpleEnd(buf) {
- return buf && buf.length ? this.write(buf) : '';
-} \ No newline at end of file
diff --git a/node_modules/string_decoder/package.json b/node_modules/string_decoder/package.json
deleted file mode 100644
index 0c1ad96..0000000
--- a/node_modules/string_decoder/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_from": "string_decoder@~1.1.1",
- "_id": "string_decoder@1.1.1",
- "_inBundle": false,
- "_integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
- "_location": "/string_decoder",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "string_decoder@~1.1.1",
- "name": "string_decoder",
- "escapedName": "string_decoder",
- "rawSpec": "~1.1.1",
- "saveSpec": null,
- "fetchSpec": "~1.1.1"
- },
- "_requiredBy": [
- "/readable-stream"
- ],
- "_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
- "_shasum": "9cf1611ba62685d7030ae9e4ba34149c3af03fc8",
- "_spec": "string_decoder@~1.1.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/readable-stream",
- "bugs": {
- "url": "https://github.com/nodejs/string_decoder/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "safe-buffer": "~5.1.0"
- },
- "deprecated": false,
- "description": "The string_decoder module from Node core",
- "devDependencies": {
- "babel-polyfill": "^6.23.0",
- "core-util-is": "^1.0.2",
- "inherits": "^2.0.3",
- "tap": "~0.4.8"
- },
- "homepage": "https://github.com/nodejs/string_decoder",
- "keywords": [
- "string",
- "decoder",
- "browser",
- "browserify"
- ],
- "license": "MIT",
- "main": "lib/string_decoder.js",
- "name": "string_decoder",
- "repository": {
- "type": "git",
- "url": "git://github.com/nodejs/string_decoder.git"
- },
- "scripts": {
- "ci": "tap test/parallel/*.js test/ours/*.js --tap | tee test.tap && node test/verify-dependencies.js",
- "test": "tap test/parallel/*.js && node test/verify-dependencies"
- },
- "version": "1.1.1"
-}
diff --git a/node_modules/strip-ansi/index.js b/node_modules/strip-ansi/index.js
deleted file mode 100644
index 099480f..0000000
--- a/node_modules/strip-ansi/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-var ansiRegex = require('ansi-regex')();
-
-module.exports = function (str) {
- return typeof str === 'string' ? str.replace(ansiRegex, '') : str;
-};
diff --git a/node_modules/strip-ansi/license b/node_modules/strip-ansi/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/strip-ansi/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/strip-ansi/package.json b/node_modules/strip-ansi/package.json
deleted file mode 100644
index 63d7bcf..0000000
--- a/node_modules/strip-ansi/package.json
+++ /dev/null
@@ -1,105 +0,0 @@
-{
- "_from": "strip-ansi@^3.0.0",
- "_id": "strip-ansi@3.0.1",
- "_inBundle": false,
- "_integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
- "_location": "/strip-ansi",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "strip-ansi@^3.0.0",
- "name": "strip-ansi",
- "escapedName": "strip-ansi",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/chalk",
- "/cliui",
- "/gauge",
- "/string-width",
- "/wrap-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "_shasum": "6a385fb8853d952d5ff05d0e8aaf94278dc63dcf",
- "_spec": "strip-ansi@^3.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/chalk",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/strip-ansi/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ansi-regex": "^2.0.0"
- },
- "deprecated": false,
- "description": "Strip ANSI escape codes",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/strip-ansi#readme",
- "keywords": [
- "strip",
- "trim",
- "remove",
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Boy Nicolai Appelman",
- "email": "joshua@jbna.nl",
- "url": "jbna.nl"
- },
- {
- "name": "JD Ballard",
- "email": "i.am.qix@gmail.com",
- "url": "github.com/qix-"
- }
- ],
- "name": "strip-ansi",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/strip-ansi.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.0.1"
-}
diff --git a/node_modules/strip-ansi/readme.md b/node_modules/strip-ansi/readme.md
deleted file mode 100644
index cb7d9ff..0000000
--- a/node_modules/strip-ansi/readme.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
-
-> Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
-
-
-## Install
-
-```
-$ npm install --save strip-ansi
-```
-
-
-## Usage
-
-```js
-var stripAnsi = require('strip-ansi');
-
-stripAnsi('\u001b[4mcake\u001b[0m');
-//=> 'cake'
-```
-
-
-## Related
-
-- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
-- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
-- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
-- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/strip-bom/index.js b/node_modules/strip-bom/index.js
deleted file mode 100644
index 5695c5c..0000000
--- a/node_modules/strip-bom/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-var isUtf8 = require('is-utf8');
-
-module.exports = function (x) {
- // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
- // conversion translates it to FEFF (UTF-16 BOM)
- if (typeof x === 'string' && x.charCodeAt(0) === 0xFEFF) {
- return x.slice(1);
- }
-
- if (Buffer.isBuffer(x) && isUtf8(x) &&
- x[0] === 0xEF && x[1] === 0xBB && x[2] === 0xBF) {
- return x.slice(3);
- }
-
- return x;
-};
diff --git a/node_modules/strip-bom/license b/node_modules/strip-bom/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/strip-bom/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/strip-bom/package.json b/node_modules/strip-bom/package.json
deleted file mode 100644
index 2ff418d..0000000
--- a/node_modules/strip-bom/package.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "_from": "strip-bom@^2.0.0",
- "_id": "strip-bom@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
- "_location": "/strip-bom",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "strip-bom@^2.0.0",
- "name": "strip-bom",
- "escapedName": "strip-bom",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/load-json-file"
- ],
- "_resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
- "_shasum": "6219a85616520491f35788bdbf1447a99c7e6b0e",
- "_spec": "strip-bom@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/load-json-file",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/strip-bom/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "is-utf8": "^0.2.0"
- },
- "deprecated": false,
- "description": "Strip UTF-8 byte order mark (BOM) from a string/buffer",
- "devDependencies": {
- "mocha": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/strip-bom#readme",
- "keywords": [
- "bom",
- "strip",
- "byte",
- "mark",
- "unicode",
- "utf8",
- "utf-8",
- "remove",
- "delete",
- "trim",
- "text",
- "buffer",
- "string"
- ],
- "license": "MIT",
- "name": "strip-bom",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/strip-bom.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/strip-bom/readme.md b/node_modules/strip-bom/readme.md
deleted file mode 100644
index 8ecf258..0000000
--- a/node_modules/strip-bom/readme.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# strip-bom [![Build Status](https://travis-ci.org/sindresorhus/strip-bom.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-bom)
-
-> Strip UTF-8 [byte order mark](http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8) (BOM) from a string/buffer
-
-From Wikipedia:
-
-> The Unicode Standard permits the BOM in UTF-8, but does not require nor recommend its use. Byte order has no meaning in UTF-8.
-
-
-## Install
-
-```
-$ npm install --save strip-bom
-```
-
-
-## Usage
-
-```js
-var fs = require('fs');
-var stripBom = require('strip-bom');
-
-stripBom('\uFEFFunicorn');
-//=> 'unicorn'
-
-stripBom(fs.readFileSync('unicorn.txt'));
-//=> 'unicorn'
-```
-
-
-## Related
-
-- [strip-bom-cli](https://github.com/sindresorhus/strip-bom-cli) - CLI for this module
-- [strip-bom-stream](https://github.com/sindresorhus/strip-bom-stream) - Stream version of this module
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/strip-indent/cli.js b/node_modules/strip-indent/cli.js
deleted file mode 100755
index bcd5f8d..0000000
--- a/node_modules/strip-indent/cli.js
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-var fs = require('fs');
-var stdin = require('get-stdin');
-var pkg = require('./package.json');
-var stripIndent = require('./');
-var argv = process.argv.slice(2);
-var input = argv[0];
-
-function help() {
- console.log([
- '',
- ' ' + pkg.description,
- '',
- ' Usage',
- ' strip-indent <file>',
- ' echo <string> | strip-indent',
- '',
- ' Example',
- ' echo \'\\tunicorn\\n\\t\\tcake\' | strip-indent',
- ' unicorn',
- ' \tcake'
- ].join('\n'));
-}
-
-function init(data) {
- console.log(stripIndent(data));
-}
-
-if (argv.indexOf('--help') !== -1) {
- help();
- return;
-}
-
-if (argv.indexOf('--version') !== -1) {
- console.log(pkg.version);
- return;
-}
-
-if (process.stdin.isTTY) {
- if (!input) {
- help();
- return;
- }
-
- init(fs.readFileSync(input, 'utf8'));
-} else {
- stdin(init);
-}
diff --git a/node_modules/strip-indent/index.js b/node_modules/strip-indent/index.js
deleted file mode 100644
index 8f8f4f4..0000000
--- a/node_modules/strip-indent/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-module.exports = function (str) {
- var match = str.match(/^[ \t]*(?=\S)/gm);
-
- if (!match) {
- return str;
- }
-
- var indent = Math.min.apply(Math, match.map(function (el) {
- return el.length;
- }));
-
- var re = new RegExp('^[ \\t]{' + indent + '}', 'gm');
-
- return indent > 0 ? str.replace(re, '') : str;
-};
diff --git a/node_modules/strip-indent/license b/node_modules/strip-indent/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/strip-indent/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/strip-indent/package.json b/node_modules/strip-indent/package.json
deleted file mode 100644
index fa60572..0000000
--- a/node_modules/strip-indent/package.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "_from": "strip-indent@^1.0.1",
- "_id": "strip-indent@1.0.1",
- "_inBundle": false,
- "_integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=",
- "_location": "/strip-indent",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "strip-indent@^1.0.1",
- "name": "strip-indent",
- "escapedName": "strip-indent",
- "rawSpec": "^1.0.1",
- "saveSpec": null,
- "fetchSpec": "^1.0.1"
- },
- "_requiredBy": [
- "/redent"
- ],
- "_resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
- "_shasum": "0c7962a6adefa7bbd4ac366460a638552ae1a0a2",
- "_spec": "strip-indent@^1.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/redent",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "bin": {
- "strip-indent": "cli.js"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/strip-indent/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "get-stdin": "^4.0.1"
- },
- "deprecated": false,
- "description": "Strip leading whitespace from every line in a string",
- "devDependencies": {
- "mocha": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js",
- "cli.js"
- ],
- "homepage": "https://github.com/sindresorhus/strip-indent#readme",
- "keywords": [
- "cli",
- "bin",
- "browser",
- "strip",
- "normalize",
- "remove",
- "indent",
- "indentation",
- "whitespace",
- "space",
- "tab",
- "string",
- "str"
- ],
- "license": "MIT",
- "name": "strip-indent",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/strip-indent.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "1.0.1"
-}
diff --git a/node_modules/strip-indent/readme.md b/node_modules/strip-indent/readme.md
deleted file mode 100644
index d622f03..0000000
--- a/node_modules/strip-indent/readme.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# strip-indent [![Build Status](https://travis-ci.org/sindresorhus/strip-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-indent)
-
-> Strip leading whitespace from every line in a string
-
-The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
-
-Useful for removing redundant indentation.
-
-
-## Install
-
-```sh
-$ npm install --save strip-indent
-```
-
-
-## Usage
-
-```js
-var str = '\tunicorn\n\t\tcake';
-/*
- unicorn
- cake
-*/
-
-stripIndent('\tunicorn\n\t\tcake');
-/*
-unicorn
- cake
-*/
-```
-
-
-## CLI
-
-```sh
-$ npm install --global strip-indent
-```
-
-```sh
-$ strip-indent --help
-
- Usage
- strip-indent <file>
- echo <string> | strip-indent
-
- Example
- echo '\tunicorn\n\t\tcake' | strip-indent
- unicorn
- cake
-```
-
-
-## Related
-
-- [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/supports-color/index.js b/node_modules/supports-color/index.js
deleted file mode 100644
index 4346e27..0000000
--- a/node_modules/supports-color/index.js
+++ /dev/null
@@ -1,50 +0,0 @@
-'use strict';
-var argv = process.argv;
-
-var terminator = argv.indexOf('--');
-var hasFlag = function (flag) {
- flag = '--' + flag;
- var pos = argv.indexOf(flag);
- return pos !== -1 && (terminator !== -1 ? pos < terminator : true);
-};
-
-module.exports = (function () {
- if ('FORCE_COLOR' in process.env) {
- return true;
- }
-
- if (hasFlag('no-color') ||
- hasFlag('no-colors') ||
- hasFlag('color=false')) {
- return false;
- }
-
- if (hasFlag('color') ||
- hasFlag('colors') ||
- hasFlag('color=true') ||
- hasFlag('color=always')) {
- return true;
- }
-
- if (process.stdout && !process.stdout.isTTY) {
- return false;
- }
-
- if (process.platform === 'win32') {
- return true;
- }
-
- if ('COLORTERM' in process.env) {
- return true;
- }
-
- if (process.env.TERM === 'dumb') {
- return false;
- }
-
- if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) {
- return true;
- }
-
- return false;
-})();
diff --git a/node_modules/supports-color/license b/node_modules/supports-color/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/supports-color/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/supports-color/package.json b/node_modules/supports-color/package.json
deleted file mode 100644
index 438eb67..0000000
--- a/node_modules/supports-color/package.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "_from": "supports-color@^2.0.0",
- "_id": "supports-color@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
- "_location": "/supports-color",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "supports-color@^2.0.0",
- "name": "supports-color",
- "escapedName": "supports-color",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/chalk"
- ],
- "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
- "_shasum": "535d045ce6b6363fa40117084629995e9df324c7",
- "_spec": "supports-color@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/chalk",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/supports-color/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Detect whether a terminal supports color",
- "devDependencies": {
- "mocha": "*",
- "require-uncached": "^1.0.2"
- },
- "engines": {
- "node": ">=0.8.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/supports-color#readme",
- "keywords": [
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "ansi",
- "styles",
- "tty",
- "rgb",
- "256",
- "shell",
- "xterm",
- "command-line",
- "support",
- "supports",
- "capability",
- "detect"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Appelman",
- "email": "jappelman@xebia.com",
- "url": "jbnicolai.com"
- }
- ],
- "name": "supports-color",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/supports-color.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/supports-color/readme.md b/node_modules/supports-color/readme.md
deleted file mode 100644
index b4761f1..0000000
--- a/node_modules/supports-color/readme.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color)
-
-> Detect whether a terminal supports color
-
-
-## Install
-
-```
-$ npm install --save supports-color
-```
-
-
-## Usage
-
-```js
-var supportsColor = require('supports-color');
-
-if (supportsColor) {
- console.log('Terminal supports color');
-}
-```
-
-It obeys the `--color` and `--no-color` CLI flags.
-
-For situations where using `--color` is not possible, add an environment variable `FORCE_COLOR` with any value to force color. Trumps `--no-color`.
-
-
-## Related
-
-- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module
-- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/tar/.nyc_output/0471d9cf-687f-4ae8-84a5-ce7468becd03.json b/node_modules/tar/.nyc_output/0471d9cf-687f-4ae8-84a5-ce7468becd03.json
deleted file mode 100644
index 2a57d9f..0000000
--- a/node_modules/tar/.nyc_output/0471d9cf-687f-4ae8-84a5-ce7468becd03.json
+++ /dev/null
@@ -1 +0,0 @@
-{"/Users/isaacs/dev/js/tar/lib/pack.js":{"path":"/Users/isaacs/dev/js/tar/lib/pack.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"1":{"start":{"line":6,"column":18},"end":{"line":6,"column":46}},"2":{"start":{"line":7,"column":13},"end":{"line":7,"column":37}},"3":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"4":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"5":{"start":{"line":10,"column":25},"end":{"line":10,"column":61}},"6":{"start":{"line":11,"column":14},"end":{"line":11,"column":40}},"7":{"start":{"line":12,"column":10},"end":{"line":12,"column":25}},"8":{"start":{"line":14,"column":0},"end":{"line":14,"column":41}},"9":{"start":{"line":14,"column":13},"end":{"line":14,"column":14}},"10":{"start":{"line":14,"column":31},"end":{"line":14,"column":41}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":22}},"12":{"start":{"line":20,"column":11},"end":{"line":20,"column":15}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"14":{"start":{"line":21,"column":29},"end":{"line":21,"column":51}},"15":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"16":{"start":{"line":23,"column":13},"end":{"line":23,"column":52}},"17":{"start":{"line":24,"column":7},"end":{"line":24,"column":32}},"18":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"19":{"start":{"line":28,"column":2},"end":{"line":28,"column":20}},"20":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"21":{"start":{"line":30,"column":2},"end":{"line":30,"column":17}},"22":{"start":{"line":32,"column":2},"end":{"line":32,"column":25}},"23":{"start":{"line":33,"column":2},"end":{"line":33,"column":24}},"24":{"start":{"line":35,"column":2},"end":{"line":35,"column":21}},"25":{"start":{"line":36,"column":2},"end":{"line":43,"column":4}},"26":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"27":{"start":{"line":37,"column":35},"end":{"line":37,"column":41}},"28":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"29":{"start":{"line":39,"column":4},"end":{"line":41,"column":6}},"30":{"start":{"line":40,"column":6},"end":{"line":40,"column":25}},"31":{"start":{"line":42,"column":4},"end":{"line":42,"column":15}},"32":{"start":{"line":46,"column":0},"end":{"line":57,"column":1}},"33":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"34":{"start":{"line":48,"column":23},"end":{"line":48,"column":29}},"35":{"start":{"line":49,"column":2},"end":{"line":49,"column":24}},"36":{"start":{"line":51,"column":11},"end":{"line":51,"column":15}},"37":{"start":{"line":52,"column":2},"end":{"line":56,"column":10}},"38":{"start":{"line":54,"column":6},"end":{"line":54,"column":24}},"39":{"start":{"line":59,"column":0},"end":{"line":69,"column":1}},"40":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"41":{"start":{"line":60,"column":40},"end":{"line":60,"column":68}},"42":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"43":{"start":{"line":62,"column":19},"end":{"line":62,"column":72}},"44":{"start":{"line":64,"column":2},"end":{"line":64,"column":17}},"45":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"46":{"start":{"line":66,"column":2},"end":{"line":66,"column":17}},"47":{"start":{"line":67,"column":2},"end":{"line":67,"column":43}},"48":{"start":{"line":68,"column":2},"end":{"line":68,"column":25}},"49":{"start":{"line":71,"column":0},"end":{"line":75,"column":1}},"50":{"start":{"line":72,"column":2},"end":{"line":72,"column":21}},"51":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"52":{"start":{"line":73,"column":26},"end":{"line":73,"column":52}},"53":{"start":{"line":74,"column":2},"end":{"line":74,"column":20}},"54":{"start":{"line":77,"column":0},"end":{"line":82,"column":1}},"55":{"start":{"line":78,"column":2},"end":{"line":78,"column":22}},"56":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"57":{"start":{"line":79,"column":26},"end":{"line":79,"column":53}},"58":{"start":{"line":80,"column":2},"end":{"line":80,"column":21}},"59":{"start":{"line":81,"column":2},"end":{"line":81,"column":17}},"60":{"start":{"line":84,"column":0},"end":{"line":88,"column":1}},"61":{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},"62":{"start":{"line":86,"column":2},"end":{"line":86,"column":24}},"63":{"start":{"line":87,"column":2},"end":{"line":87,"column":17}},"64":{"start":{"line":90,"column":0},"end":{"line":233,"column":1}},"65":{"start":{"line":91,"column":11},"end":{"line":91,"column":15}},"66":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"67":{"start":{"line":93,"column":4},"end":{"line":93,"column":10}},"68":{"start":{"line":96,"column":14},"end":{"line":96,"column":32}},"69":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"70":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"71":{"start":{"line":100,"column":6},"end":{"line":100,"column":22}},"72":{"start":{"line":102,"column":4},"end":{"line":102,"column":10}},"73":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"74":{"start":{"line":107,"column":4},"end":{"line":107,"column":29}},"75":{"start":{"line":108,"column":4},"end":{"line":111,"column":6}},"76":{"start":{"line":110,"column":6},"end":{"line":110,"column":19}},"77":{"start":{"line":112,"column":4},"end":{"line":112,"column":10}},"78":{"start":{"line":115,"column":2},"end":{"line":115,"column":23}},"79":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"80":{"start":{"line":119,"column":4},"end":{"line":119,"column":24}},"81":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"82":{"start":{"line":121,"column":4},"end":{"line":121,"column":18}},"83":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"84":{"start":{"line":123,"column":4},"end":{"line":123,"column":10}},"85":{"start":{"line":134,"column":13},"end":{"line":134,"column":53}},"86":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"87":{"start":{"line":137,"column":4},"end":{"line":137,"column":27}},"88":{"start":{"line":140,"column":15},"end":{"line":140,"column":17}},"89":{"start":{"line":142,"column":2},"end":{"line":144,"column":4}},"90":{"start":{"line":143,"column":4},"end":{"line":143,"column":30}},"91":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"92":{"start":{"line":146,"column":25},"end":{"line":146,"column":52}},"93":{"start":{"line":148,"column":2},"end":{"line":148,"column":53}},"94":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"95":{"start":{"line":152,"column":4},"end":{"line":152,"column":49}},"96":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"97":{"start":{"line":156,"column":4},"end":{"line":156,"column":29}},"98":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"99":{"start":{"line":161,"column":6},"end":{"line":161,"column":12}},"100":{"start":{"line":164,"column":6},"end":{"line":164,"column":24}},"101":{"start":{"line":165,"column":6},"end":{"line":165,"column":21}},"102":{"start":{"line":166,"column":6},"end":{"line":166,"column":11}},"103":{"start":{"line":169,"column":15},"end":{"line":169,"column":69}},"104":{"start":{"line":170,"column":6},"end":{"line":170,"column":54}},"105":{"start":{"line":171,"column":6},"end":{"line":171,"column":21}},"106":{"start":{"line":172,"column":6},"end":{"line":172,"column":11}},"107":{"start":{"line":175,"column":15},"end":{"line":175,"column":69}},"108":{"start":{"line":176,"column":6},"end":{"line":176,"column":74}},"109":{"start":{"line":177,"column":6},"end":{"line":177,"column":21}},"110":{"start":{"line":178,"column":6},"end":{"line":178,"column":11}},"111":{"start":{"line":187,"column":15},"end":{"line":187,"column":53}},"112":{"start":{"line":189,"column":2},"end":{"line":189,"column":20}},"113":{"start":{"line":195,"column":2},"end":{"line":197,"column":4}},"114":{"start":{"line":196,"column":4},"end":{"line":196,"column":22}},"115":{"start":{"line":199,"column":2},"end":{"line":205,"column":4}},"116":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"117":{"start":{"line":201,"column":6},"end":{"line":201,"column":50}},"118":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"119":{"start":{"line":204,"column":33},"end":{"line":204,"column":44}},"120":{"start":{"line":206,"column":2},"end":{"line":206,"column":31}},"121":{"start":{"line":208,"column":14},"end":{"line":208,"column":19}},"122":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"123":{"start":{"line":210,"column":15},"end":{"line":210,"column":21}},"124":{"start":{"line":211,"column":4},"end":{"line":211,"column":16}},"125":{"start":{"line":215,"column":4},"end":{"line":215,"column":27}},"126":{"start":{"line":216,"column":4},"end":{"line":216,"column":26}},"127":{"start":{"line":217,"column":4},"end":{"line":217,"column":17}},"128":{"start":{"line":220,"column":2},"end":{"line":223,"column":4}},"129":{"start":{"line":222,"column":4},"end":{"line":222,"column":24}},"130":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"131":{"start":{"line":229,"column":4},"end":{"line":229,"column":21}},"132":{"start":{"line":232,"column":2},"end":{"line":232,"column":20}},"133":{"start":{"line":235,"column":0},"end":{"line":235,"column":39}},"134":{"start":{"line":236,"column":0},"end":{"line":236,"column":37}}},"fnMap":{"0":{"name":"Pack","decl":{"start":{"line":18,"column":9},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":22},"end":{"line":44,"column":1}},"line":18},"1":{"name":"(anonymous_1)","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":31},"end":{"line":43,"column":3}},"line":36},"2":{"name":"(anonymous_2)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":30},"end":{"line":41,"column":5}},"line":39},"3":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":28}},"loc":{"start":{"line":46,"column":44},"end":{"line":57,"column":1}},"line":46},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":29},"end":{"line":55,"column":5}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":39},"end":{"line":69,"column":1}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":23},"end":{"line":71,"column":24}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":77,"column":24},"end":{"line":77,"column":25}},"loc":{"start":{"line":77,"column":36},"end":{"line":82,"column":1}},"line":77},"8":{"name":"(anonymous_8)","decl":{"start":{"line":84,"column":21},"end":{"line":84,"column":22}},"loc":{"start":{"line":84,"column":33},"end":{"line":88,"column":1}},"line":84},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":26},"end":{"line":90,"column":27}},"loc":{"start":{"line":90,"column":38},"end":{"line":233,"column":1}},"line":90},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":22},"end":{"line":108,"column":23}},"loc":{"start":{"line":108,"column":34},"end":{"line":111,"column":5}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":142,"column":41},"end":{"line":142,"column":42}},"loc":{"start":{"line":142,"column":54},"end":{"line":144,"column":3}},"line":142},"12":{"name":"(anonymous_12)","decl":{"start":{"line":195,"column":20},"end":{"line":195,"column":21}},"loc":{"start":{"line":195,"column":33},"end":{"line":197,"column":3}},"line":195},"13":{"name":"(anonymous_13)","decl":{"start":{"line":199,"column":22},"end":{"line":199,"column":23}},"loc":{"start":{"line":199,"column":34},"end":{"line":205,"column":3}},"line":199},"14":{"name":"(anonymous_14)","decl":{"start":{"line":200,"column":30},"end":{"line":200,"column":31}},"loc":{"start":{"line":200,"column":42},"end":{"line":202,"column":5}},"line":200},"15":{"name":"nextEntry","decl":{"start":{"line":209,"column":11},"end":{"line":209,"column":20}},"loc":{"start":{"line":209,"column":24},"end":{"line":218,"column":3}},"line":209},"16":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":21},"end":{"line":220,"column":22}},"loc":{"start":{"line":220,"column":35},"end":{"line":223,"column":3}},"line":220},"17":{"name":"(anonymous_17)","decl":{"start":{"line":235,"column":25},"end":{"line":235,"column":26}},"loc":{"start":{"line":235,"column":37},"end":{"line":235,"column":39}},"line":235},"18":{"name":"(anonymous_18)","decl":{"start":{"line":236,"column":23},"end":{"line":236,"column":24}},"loc":{"start":{"line":236,"column":35},"end":{"line":236,"column":37}},"line":236}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},{"start":{"line":21,"column":2},"end":{"line":21,"column":51}}],"line":21},"1":{"loc":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},{"start":{"line":23,"column":2},"end":{"line":24,"column":32}}],"line":23},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},{"start":{"line":37,"column":4},"end":{"line":37,"column":41}}],"line":37},"3":{"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},{"start":{"line":48,"column":2},"end":{"line":48,"column":29}}],"line":48},"4":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},{"start":{"line":60,"column":2},"end":{"line":60,"column":68}}],"line":60},"5":{"loc":{"start":{"line":60,"column":6},"end":{"line":60,"column":38}},"type":"binary-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":18}},{"start":{"line":60,"column":22},"end":{"line":60,"column":38}}],"line":60},"6":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},{"start":{"line":62,"column":2},"end":{"line":62,"column":72}}],"line":62},"7":{"loc":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},{"start":{"line":73,"column":2},"end":{"line":73,"column":52}}],"line":73},"8":{"loc":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},{"start":{"line":79,"column":2},"end":{"line":79,"column":53}}],"line":79},"9":{"loc":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},{"start":{"line":92,"column":2},"end":{"line":94,"column":3}}],"line":92},"10":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":34}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":16}},{"start":{"line":92,"column":20},"end":{"line":92,"column":34}}],"line":92},"11":{"loc":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},{"start":{"line":98,"column":2},"end":{"line":103,"column":3}}],"line":98},"12":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{"line":99,"column":4},"end":{"line":101,"column":5}}],"line":99},"13":{"loc":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},{"start":{"line":105,"column":2},"end":{"line":113,"column":3}}],"line":105},"14":{"loc":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"type":"if","locations":[{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},{"start":{"line":117,"column":2},"end":{"line":124,"column":3}}],"line":117},"15":{"loc":{"start":{"line":134,"column":27},"end":{"line":134,"column":46}},"type":"binary-expr","locations":[{"start":{"line":134,"column":27},"end":{"line":134,"column":37}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}],"line":134},"16":{"loc":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},{"start":{"line":135,"column":2},"end":{"line":138,"column":3}}],"line":135},"17":{"loc":{"start":{"line":135,"column":6},"end":{"line":135,"column":72}},"type":"binary-expr","locations":[{"start":{"line":135,"column":6},"end":{"line":135,"column":16}},{"start":{"line":135,"column":20},"end":{"line":135,"column":39}},{"start":{"line":135,"column":43},"end":{"line":135,"column":53}},{"start":{"line":135,"column":57},"end":{"line":135,"column":72}}],"line":135},"18":{"loc":{"start":{"line":142,"column":14},"end":{"line":142,"column":31}},"type":"binary-expr","locations":[{"start":{"line":142,"column":14},"end":{"line":142,"column":25}},{"start":{"line":142,"column":29},"end":{"line":142,"column":31}}],"line":142},"19":{"loc":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"type":"if","locations":[{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},{"start":{"line":146,"column":2},"end":{"line":146,"column":52}}],"line":146},"20":{"loc":{"start":{"line":148,"column":36},"end":{"line":148,"column":52}},"type":"binary-expr","locations":[{"start":{"line":148,"column":36},"end":{"line":148,"column":46}},{"start":{"line":148,"column":50},"end":{"line":148,"column":52}}],"line":148},"21":{"loc":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"type":"if","locations":[{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},{"start":{"line":151,"column":2},"end":{"line":153,"column":3}}],"line":151},"22":{"loc":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"type":"if","locations":[{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},{"start":{"line":155,"column":2},"end":{"line":156,"column":29}}],"line":155},"23":{"loc":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"type":"switch","locations":[{"start":{"line":160,"column":4},"end":{"line":161,"column":12}},{"start":{"line":163,"column":4},"end":{"line":166,"column":11}},{"start":{"line":168,"column":4},"end":{"line":172,"column":11}},{"start":{"line":174,"column":4},"end":{"line":178,"column":11}}],"line":158},"24":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":54}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},{"start":{"line":170,"column":51},"end":{"line":170,"column":54}}],"line":170},"25":{"loc":{"start":{"line":176,"column":24},"end":{"line":176,"column":74}},"type":"binary-expr","locations":[{"start":{"line":176,"column":24},"end":{"line":176,"column":67}},{"start":{"line":176,"column":71},"end":{"line":176,"column":74}}],"line":176},"26":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},{"start":{"line":204,"column":4},"end":{"line":204,"column":44}}],"line":204},"27":{"loc":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},{"start":{"line":210,"column":4},"end":{"line":210,"column":21}}],"line":210},"28":{"loc":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},{"start":{"line":227,"column":2},"end":{"line":230,"column":3}}],"line":227}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":512,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":1,"50":0,"51":0,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0,0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"8beb16ccde52e484aa1dd87f5ece33d696c808ab","contentHash":"7bb2b7ebe1111c0deefbf9a61d17bf9d2dbe951adb585db96f9d89663ce5909d"},"/Users/isaacs/dev/js/tar/lib/entry-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":16},"end":{"line":4,"column":38}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":34}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":37}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":29}},"9":{"start":{"line":15,"column":11},"end":{"line":15,"column":15}},"10":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":33}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":20}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":35}},"16":{"start":{"line":28,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"18":{"start":{"line":32,"column":2},"end":{"line":34,"column":4}},"19":{"start":{"line":33,"column":4},"end":{"line":33,"column":20}},"20":{"start":{"line":36,"column":2},"end":{"line":39,"column":4}},"21":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"22":{"start":{"line":38,"column":4},"end":{"line":38,"column":20}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":18}},"24":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":18}},"26":{"start":{"line":45,"column":2},"end":{"line":45,"column":25}},"27":{"start":{"line":46,"column":2},"end":{"line":46,"column":23}},"28":{"start":{"line":47,"column":2},"end":{"line":47,"column":22}},"29":{"start":{"line":49,"column":2},"end":{"line":49,"column":17}},"30":{"start":{"line":50,"column":2},"end":{"line":50,"column":23}},"31":{"start":{"line":51,"column":2},"end":{"line":51,"column":18}},"32":{"start":{"line":53,"column":2},"end":{"line":55,"column":4}},"33":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"34":{"start":{"line":58,"column":0},"end":{"line":65,"column":1}},"35":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"36":{"start":{"line":60,"column":19},"end":{"line":60,"column":74}},"37":{"start":{"line":61,"column":2},"end":{"line":61,"column":22}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":17}},"39":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"40":{"start":{"line":64,"column":2},"end":{"line":64,"column":25}},"41":{"start":{"line":67,"column":0},"end":{"line":74,"column":1}},"42":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"43":{"start":{"line":69,"column":9},"end":{"line":69,"column":29}},"44":{"start":{"line":70,"column":2},"end":{"line":70,"column":24}},"45":{"start":{"line":71,"column":2},"end":{"line":71,"column":20}},"46":{"start":{"line":72,"column":2},"end":{"line":72,"column":17}},"47":{"start":{"line":73,"column":2},"end":{"line":73,"column":43}},"48":{"start":{"line":76,"column":0},"end":{"line":80,"column":1}},"49":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"50":{"start":{"line":79,"column":2},"end":{"line":79,"column":20}},"51":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"52":{"start":{"line":84,"column":2},"end":{"line":84,"column":22}},"53":{"start":{"line":85,"column":2},"end":{"line":85,"column":21}},"54":{"start":{"line":86,"column":2},"end":{"line":86,"column":17}},"55":{"start":{"line":89,"column":0},"end":{"line":98,"column":1}},"56":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"57":{"start":{"line":91,"column":20},"end":{"line":91,"column":69}},"58":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"59":{"start":{"line":95,"column":20},"end":{"line":95,"column":30}},"60":{"start":{"line":97,"column":2},"end":{"line":97,"column":31}},"61":{"start":{"line":100,"column":0},"end":{"line":126,"column":1}},"62":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"63":{"start":{"line":102,"column":23},"end":{"line":102,"column":29}},"64":{"start":{"line":103,"column":2},"end":{"line":103,"column":24}},"65":{"start":{"line":105,"column":20},"end":{"line":105,"column":48}},"66":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"67":{"start":{"line":108,"column":13},"end":{"line":108,"column":17}},"68":{"start":{"line":110,"column":4},"end":{"line":111,"column":44}},"69":{"start":{"line":113,"column":4},"end":{"line":120,"column":12}},"70":{"start":{"line":115,"column":8},"end":{"line":115,"column":26}},"71":{"start":{"line":118,"column":8},"end":{"line":118,"column":28}},"72":{"start":{"line":124,"column":2},"end":{"line":124,"column":32}},"73":{"start":{"line":125,"column":2},"end":{"line":125,"column":21}},"74":{"start":{"line":128,"column":0},"end":{"line":167,"column":1}},"75":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"76":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"77":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"78":{"start":{"line":136,"column":4},"end":{"line":136,"column":10}},"79":{"start":{"line":139,"column":2},"end":{"line":139,"column":25}},"80":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"81":{"start":{"line":142,"column":2},"end":{"line":159,"column":3}},"82":{"start":{"line":142,"column":15},"end":{"line":142,"column":16}},"83":{"start":{"line":145,"column":12},"end":{"line":145,"column":18}},"84":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"85":{"start":{"line":147,"column":19},"end":{"line":147,"column":37}},"86":{"start":{"line":148,"column":9},"end":{"line":148,"column":30}},"87":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"88":{"start":{"line":152,"column":6},"end":{"line":152,"column":30}},"89":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"90":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"91":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"92":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"93":{"start":{"line":162,"column":2},"end":{"line":162,"column":25}},"94":{"start":{"line":163,"column":2},"end":{"line":163,"column":26}},"95":{"start":{"line":166,"column":2},"end":{"line":166,"column":20}},"96":{"start":{"line":169,"column":0},"end":{"line":169,"column":46}}},"fnMap":{"0":{"name":"EntryWriter","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":20}},"loc":{"start":{"line":14,"column":29},"end":{"line":56,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":37},"end":{"line":30,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":25},"end":{"line":32,"column":26}},"loc":{"start":{"line":32,"column":37},"end":{"line":34,"column":3}},"line":32},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":23},"end":{"line":36,"column":24}},"loc":{"start":{"line":36,"column":35},"end":{"line":39,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":28},"end":{"line":55,"column":3}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":30},"end":{"line":58,"column":31}},"loc":{"start":{"line":58,"column":43},"end":{"line":65,"column":1}},"line":58},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":28},"end":{"line":67,"column":29}},"loc":{"start":{"line":67,"column":41},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":30},"end":{"line":76,"column":31}},"loc":{"start":{"line":76,"column":42},"end":{"line":80,"column":1}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":31},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":43},"end":{"line":87,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":89,"column":28},"end":{"line":89,"column":29}},"loc":{"start":{"line":89,"column":45},"end":{"line":98,"column":1}},"line":89},"10":{"name":"(anonymous_10)","decl":{"start":{"line":100,"column":32},"end":{"line":100,"column":33}},"loc":{"start":{"line":100,"column":44},"end":{"line":126,"column":1}},"line":100},"11":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":18},"end":{"line":114,"column":19}},"loc":{"start":{"line":114,"column":31},"end":{"line":116,"column":7}},"line":114},"12":{"name":"(anonymous_12)","decl":{"start":{"line":117,"column":19},"end":{"line":117,"column":20}},"loc":{"start":{"line":117,"column":33},"end":{"line":119,"column":7}},"line":117},"13":{"name":"(anonymous_13)","decl":{"start":{"line":128,"column":33},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":45},"end":{"line":167,"column":1}},"line":128},"14":{"name":"(anonymous_14)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":44},"end":{"line":169,"column":46}},"line":169}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"1":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"2":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},{"start":{"line":60,"column":2},"end":{"line":60,"column":74}}],"line":60},"3":{"loc":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},{"start":{"line":69,"column":2},"end":{"line":69,"column":29}}],"line":69},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},{"start":{"line":91,"column":2},"end":{"line":91,"column":69}}],"line":91},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},{"start":{"line":95,"column":2},"end":{"line":95,"column":30}}],"line":95},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},{"start":{"line":102,"column":2},"end":{"line":102,"column":29}}],"line":102},"7":{"loc":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},{"start":{"line":107,"column":2},"end":{"line":121,"column":3}}],"line":107},"8":{"loc":{"start":{"line":107,"column":6},"end":{"line":107,"column":44}},"type":"binary-expr","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":44}}],"line":107},"9":{"loc":{"start":{"line":110,"column":27},"end":{"line":111,"column":44}},"type":"binary-expr","locations":[{"start":{"line":110,"column":27},"end":{"line":110,"column":47}},{"start":{"line":111,"column":6},"end":{"line":111,"column":44}}],"line":110},"10":{"loc":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"type":"if","locations":[{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},{"start":{"line":130,"column":2},"end":{"line":132,"column":3}}],"line":130},"11":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":37}},"type":"binary-expr","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":22}},{"start":{"line":130,"column":26},"end":{"line":130,"column":37}}],"line":130},"12":{"loc":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"type":"if","locations":[{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},{"start":{"line":134,"column":2},"end":{"line":137,"column":3}}],"line":134},"13":{"loc":{"start":{"line":134,"column":6},"end":{"line":134,"column":38}},"type":"binary-expr","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":18}},{"start":{"line":134,"column":22},"end":{"line":134,"column":38}}],"line":134},"14":{"loc":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},{"start":{"line":147,"column":4},"end":{"line":148,"column":30}}],"line":147},"15":{"loc":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},{"start":{"line":150,"column":4},"end":{"line":158,"column":5}}],"line":150},"16":{"loc":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},{"start":{"line":153,"column":6},"end":{"line":156,"column":7}}],"line":153}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":0,"50":0,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":1,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3e169418508e031df78186ff63b5fa5aa2484ab8","contentHash":"84191ed4732b6763ae8701256051735aebbe5e95c932c15bef34da01b33ba1a0"},"/Users/isaacs/dev/js/tar/lib/entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry.js","statementMap":{"0":{"start":{"line":7,"column":0},"end":{"line":7,"column":22}},"1":{"start":{"line":9,"column":16},"end":{"line":9,"column":38}},"2":{"start":{"line":10,"column":10},"end":{"line":10,"column":27}},"3":{"start":{"line":11,"column":13},"end":{"line":11,"column":33}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":37}},"5":{"start":{"line":13,"column":15},"end":{"line":13,"column":34}},"6":{"start":{"line":14,"column":14},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":22}},"9":{"start":{"line":19,"column":2},"end":{"line":19,"column":22}},"10":{"start":{"line":21,"column":2},"end":{"line":21,"column":25}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":22}},"12":{"start":{"line":23,"column":2},"end":{"line":23,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":21}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"17":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"18":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"19":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"20":{"start":{"line":32,"column":2},"end":{"line":32,"column":36}},"21":{"start":{"line":34,"column":2},"end":{"line":34,"column":17}},"22":{"start":{"line":35,"column":2},"end":{"line":35,"column":23}},"23":{"start":{"line":36,"column":2},"end":{"line":36,"column":33}},"24":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"25":{"start":{"line":41,"column":11},"end":{"line":41,"column":15}},"26":{"start":{"line":42,"column":2},"end":{"line":44,"column":4}},"27":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"28":{"start":{"line":46,"column":2},"end":{"line":46,"column":18}},"29":{"start":{"line":49,"column":0},"end":{"line":49,"column":23}},"30":{"start":{"line":51,"column":0},"end":{"line":78,"column":1}},"31":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"32":{"start":{"line":52,"column":20},"end":{"line":52,"column":65}},"33":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"34":{"start":{"line":54,"column":4},"end":{"line":54,"column":40}},"35":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"36":{"start":{"line":60,"column":4},"end":{"line":60,"column":35}},"37":{"start":{"line":62,"column":2},"end":{"line":62,"column":29}},"38":{"start":{"line":65,"column":11},"end":{"line":65,"column":25}},"39":{"start":{"line":66,"column":2},"end":{"line":66,"column":21}},"40":{"start":{"line":67,"column":2},"end":{"line":67,"column":19}},"41":{"start":{"line":69,"column":2},"end":{"line":69,"column":14}},"42":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"43":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"44":{"start":{"line":74,"column":4},"end":{"line":74,"column":16}},"45":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}},"46":{"start":{"line":80,"column":0},"end":{"line":84,"column":1}},"47":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"48":{"start":{"line":81,"column":9},"end":{"line":81,"column":22}},"49":{"start":{"line":82,"column":2},"end":{"line":82,"column":21}},"50":{"start":{"line":83,"column":2},"end":{"line":83,"column":14}},"51":{"start":{"line":86,"column":0},"end":{"line":89,"column":1}},"52":{"start":{"line":87,"column":2},"end":{"line":87,"column":21}},"53":{"start":{"line":88,"column":2},"end":{"line":88,"column":20}},"54":{"start":{"line":91,"column":0},"end":{"line":97,"column":1}},"55":{"start":{"line":93,"column":2},"end":{"line":93,"column":21}},"56":{"start":{"line":94,"column":2},"end":{"line":94,"column":22}},"57":{"start":{"line":95,"column":2},"end":{"line":95,"column":14}},"58":{"start":{"line":96,"column":2},"end":{"line":96,"column":41}},"59":{"start":{"line":100,"column":0},"end":{"line":139,"column":1}},"60":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"61":{"start":{"line":103,"column":52},"end":{"line":103,"column":58}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":22}},"63":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"64":{"start":{"line":111,"column":16},"end":{"line":111,"column":43}},"65":{"start":{"line":112,"column":4},"end":{"line":112,"column":28}},"66":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"67":{"start":{"line":117,"column":4},"end":{"line":117,"column":57}},"68":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"69":{"start":{"line":119,"column":6},"end":{"line":119,"column":29}},"70":{"start":{"line":120,"column":6},"end":{"line":120,"column":24}},"71":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"72":{"start":{"line":123,"column":6},"end":{"line":123,"column":24}},"73":{"start":{"line":124,"column":6},"end":{"line":124,"column":22}},"74":{"start":{"line":130,"column":12},"end":{"line":130,"column":29}},"75":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"76":{"start":{"line":132,"column":4},"end":{"line":132,"column":36}},"77":{"start":{"line":133,"column":4},"end":{"line":133,"column":22}},"78":{"start":{"line":134,"column":4},"end":{"line":134,"column":25}},"79":{"start":{"line":135,"column":4},"end":{"line":135,"column":40}},"80":{"start":{"line":138,"column":2},"end":{"line":138,"column":23}},"81":{"start":{"line":141,"column":0},"end":{"line":211,"column":1}},"82":{"start":{"line":143,"column":15},"end":{"line":143,"column":27}},"83":{"start":{"line":144,"column":17},"end":{"line":144,"column":31}},"84":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}},"85":{"start":{"line":146,"column":14},"end":{"line":146,"column":24}},"86":{"start":{"line":149,"column":15},"end":{"line":149,"column":25}},"87":{"start":{"line":150,"column":2},"end":{"line":154,"column":3}},"88":{"start":{"line":150,"column":15},"end":{"line":150,"column":16}},"89":{"start":{"line":151,"column":16},"end":{"line":151,"column":25}},"90":{"start":{"line":152,"column":14},"end":{"line":152,"column":27}},"91":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"92":{"start":{"line":153,"column":36},"end":{"line":153,"column":54}},"93":{"start":{"line":158,"column":3},"end":{"line":165,"column":3}},"94":{"start":{"line":159,"column":4},"end":{"line":161,"column":6}},"95":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"96":{"start":{"line":160,"column":39},"end":{"line":160,"column":54}},"97":{"start":{"line":165,"column":3},"end":{"line":173,"column":3}},"98":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"99":{"start":{"line":167,"column":6},"end":{"line":167,"column":40}},"100":{"start":{"line":173,"column":3},"end":{"line":177,"column":4}},"101":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"102":{"start":{"line":175,"column":6},"end":{"line":175,"column":42}},"103":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"104":{"start":{"line":184,"column":6},"end":{"line":184,"column":19}},"105":{"start":{"line":185,"column":6},"end":{"line":185,"column":11}},"106":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"107":{"start":{"line":189,"column":6},"end":{"line":189,"column":11}},"108":{"start":{"line":192,"column":6},"end":{"line":192,"column":22}},"109":{"start":{"line":193,"column":6},"end":{"line":193,"column":11}},"110":{"start":{"line":202,"column":6},"end":{"line":202,"column":34}},"111":{"start":{"line":205,"column":2},"end":{"line":205,"column":18}},"112":{"start":{"line":206,"column":2},"end":{"line":206,"column":24}},"113":{"start":{"line":207,"column":2},"end":{"line":207,"column":24}},"114":{"start":{"line":210,"column":2},"end":{"line":210,"column":30}},"115":{"start":{"line":215,"column":0},"end":{"line":217,"column":1}},"116":{"start":{"line":216,"column":2},"end":{"line":216,"column":20}},"117":{"start":{"line":219,"column":0},"end":{"line":219,"column":35}},"118":{"start":{"line":220,"column":0},"end":{"line":220,"column":37}}},"fnMap":{"0":{"name":"Entry","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":14}},"loc":{"start":{"line":16,"column":42},"end":{"line":47,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":36},"end":{"line":42,"column":37}},"loc":{"start":{"line":42,"column":49},"end":{"line":44,"column":3}},"line":42},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":24},"end":{"line":51,"column":25}},"loc":{"start":{"line":51,"column":37},"end":{"line":78,"column":1}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":80,"column":22},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":84,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":86,"column":24},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":36},"end":{"line":89,"column":1}},"line":86},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":25},"end":{"line":91,"column":26}},"loc":{"start":{"line":91,"column":37},"end":{"line":97,"column":1}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":24},"end":{"line":100,"column":25}},"loc":{"start":{"line":100,"column":36},"end":{"line":139,"column":1}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":28},"end":{"line":141,"column":29}},"loc":{"start":{"line":141,"column":40},"end":{"line":211,"column":1}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":158,"column":30},"end":{"line":158,"column":31}},"loc":{"start":{"line":158,"column":43},"end":{"line":162,"column":3}},"line":158},"9":{"name":"(anonymous_9)","decl":{"start":{"line":159,"column":27},"end":{"line":159,"column":28}},"loc":{"start":{"line":159,"column":40},"end":{"line":161,"column":5}},"line":159},"10":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":32},"end":{"line":165,"column":33}},"loc":{"start":{"line":165,"column":45},"end":{"line":169,"column":3}},"line":165},"11":{"name":"(anonymous_11)","decl":{"start":{"line":173,"column":39},"end":{"line":173,"column":40}},"loc":{"start":{"line":173,"column":52},"end":{"line":177,"column":3}},"line":173},"12":{"name":"(anonymous_12)","decl":{"start":{"line":215,"column":24},"end":{"line":215,"column":25}},"loc":{"start":{"line":215,"column":34},"end":{"line":217,"column":1}},"line":215}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":19},"end":{"line":36,"column":33}},"type":"binary-expr","locations":[{"start":{"line":36,"column":19},"end":{"line":36,"column":27}},{"start":{"line":36,"column":31},"end":{"line":36,"column":33}}],"line":36},"1":{"loc":{"start":{"line":42,"column":14},"end":{"line":42,"column":26}},"type":"binary-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":20}},{"start":{"line":42,"column":24},"end":{"line":42,"column":26}}],"line":42},"2":{"loc":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},{"start":{"line":52,"column":2},"end":{"line":52,"column":65}}],"line":52},"3":{"loc":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},{"start":{"line":53,"column":2},"end":{"line":55,"column":3}}],"line":53},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"6":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":28}}],"line":72},"7":{"loc":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},{"start":{"line":81,"column":2},"end":{"line":81,"column":22}}],"line":81},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},{"start":{"line":103,"column":2},"end":{"line":103,"column":58}}],"line":103},"9":{"loc":{"start":{"line":103,"column":6},"end":{"line":103,"column":50}},"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":18}},{"start":{"line":103,"column":22},"end":{"line":103,"column":35}},{"start":{"line":103,"column":39},"end":{"line":103,"column":50}}],"line":103},"10":{"loc":{"start":{"line":110,"column":9},"end":{"line":110,"column":54}},"type":"binary-expr","locations":[{"start":{"line":110,"column":9},"end":{"line":110,"column":37}},{"start":{"line":110,"column":41},"end":{"line":110,"column":54}}],"line":110},"11":{"loc":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},{"start":{"line":116,"column":2},"end":{"line":126,"column":3}}],"line":116},"12":{"loc":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},{"start":{"line":118,"column":4},"end":{"line":121,"column":5}}],"line":118},"13":{"loc":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},{"start":{"line":122,"column":4},"end":{"line":125,"column":5}}],"line":122},"14":{"loc":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},{"start":{"line":131,"column":2},"end":{"line":136,"column":3}}],"line":131},"15":{"loc":{"start":{"line":131,"column":6},"end":{"line":131,"column":45}},"type":"binary-expr","locations":[{"start":{"line":131,"column":6},"end":{"line":131,"column":26}},{"start":{"line":131,"column":30},"end":{"line":131,"column":45}}],"line":131},"16":{"loc":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},{"start":{"line":153,"column":4},"end":{"line":153,"column":54}}],"line":153},"17":{"loc":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"type":"if","locations":[{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},{"start":{"line":160,"column":6},"end":{"line":160,"column":54}}],"line":160},"18":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}],"line":166},"19":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{"line":174,"column":4},"end":{"line":176,"column":5}}],"line":174},"20":{"loc":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"type":"switch","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":19}},{"start":{"line":183,"column":4},"end":{"line":185,"column":11}},{"start":{"line":187,"column":4},"end":{"line":189,"column":11}},{"start":{"line":191,"column":4},"end":{"line":193,"column":11}},{"start":{"line":195,"column":4},"end":{"line":195,"column":16}},{"start":{"line":196,"column":4},"end":{"line":196,"column":24}},{"start":{"line":197,"column":4},"end":{"line":197,"column":27}},{"start":{"line":198,"column":4},"end":{"line":198,"column":23}},{"start":{"line":199,"column":4},"end":{"line":199,"column":21}},{"start":{"line":200,"column":4},"end":{"line":200,"column":16}},{"start":{"line":201,"column":4},"end":{"line":202,"column":34}}],"line":181}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":17,"8":17,"9":17,"10":17,"11":17,"12":17,"13":17,"14":17,"15":17,"16":17,"17":17,"18":17,"19":17,"20":17,"21":17,"22":17,"23":17,"24":17,"25":17,"26":17,"27":0,"28":17,"29":1,"30":1,"31":15,"32":0,"33":15,"34":0,"35":15,"36":14,"37":15,"38":15,"39":15,"40":15,"41":15,"42":15,"43":0,"44":0,"45":15,"46":1,"47":17,"48":0,"49":17,"50":17,"51":1,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":1,"60":32,"61":0,"62":32,"63":32,"64":15,"65":15,"66":32,"67":32,"68":32,"69":0,"70":0,"71":32,"72":17,"73":17,"74":32,"75":32,"76":0,"77":0,"78":0,"79":0,"80":32,"81":1,"82":17,"83":17,"84":17,"85":17,"86":17,"87":17,"88":17,"89":289,"90":289,"91":289,"92":242,"93":17,"94":34,"95":29,"96":29,"97":17,"98":34,"99":34,"100":17,"101":51,"102":25,"103":17,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":17,"111":17,"112":17,"113":17,"114":17,"115":1,"116":1,"117":1,"118":1},"f":{"0":17,"1":0,"2":15,"3":17,"4":0,"5":0,"6":32,"7":17,"8":34,"9":29,"10":34,"11":51,"12":1},"b":{"0":[17,11],"1":[17,17],"2":[0,15],"3":[0,15],"4":[14,1],"5":[0,15],"6":[15,15],"7":[0,17],"8":[0,32],"9":[32,32,32],"10":[47,15],"11":[32,0],"12":[0,32],"13":[17,15],"14":[0,32],"15":[32,0],"16":[242,47],"17":[29,0],"18":[34,0],"19":[25,26],"20":[0,0,0,0,1,2,2,2,2,2,17]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"2cc4f925db2a60e89bf0743124faec4e8996dfdb","contentHash":"245d5cb2b23d975dc5b9a0ed2553c93c587727d50a7961242f50cec333c04ba9"},"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/global-header-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":65}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":34}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"4":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":40}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}}},"fnMap":{"0":{"name":"GlobalHeaderWriter","decl":{"start":{"line":8,"column":9},"end":{"line":8,"column":27}},"loc":{"start":{"line":8,"column":36},"end":{"line":14,"column":1}},"line":8}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0},"f":{"0":0},"b":{"0":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3d0c8589f62a5c8ccec606d52d3abd98e5627d57","contentHash":"a2570ca840cf3e44d77e15af0aee52f7c145da39b76366006f3672b9708def3e"},"/Users/isaacs/dev/js/tar/lib/parse.js":{"path":"/Users/isaacs/dev/js/tar/lib/parse.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"1":{"start":{"line":8,"column":13},"end":{"line":8,"column":30}},"2":{"start":{"line":9,"column":13},"end":{"line":9,"column":26}},"3":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":30}},"5":{"start":{"line":12,"column":16},"end":{"line":12,"column":38}},"6":{"start":{"line":13,"column":12},"end":{"line":13,"column":33}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":46}},"8":{"start":{"line":15,"column":21},"end":{"line":15,"column":52}},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":33}},"10":{"start":{"line":17,"column":15},"end":{"line":17,"column":34}},"11":{"start":{"line":18,"column":14},"end":{"line":18,"column":32}},"12":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}},"13":{"start":{"line":28,"column":11},"end":{"line":28,"column":15}},"14":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"15":{"start":{"line":29,"column":30},"end":{"line":29,"column":48}},"16":{"start":{"line":34,"column":2},"end":{"line":34,"column":18}},"17":{"start":{"line":36,"column":2},"end":{"line":36,"column":20}},"18":{"start":{"line":37,"column":2},"end":{"line":37,"column":20}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":35}},"20":{"start":{"line":39,"column":2},"end":{"line":39,"column":17}},"21":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"22":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"23":{"start":{"line":43,"column":2},"end":{"line":45,"column":4}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":20}},"31":{"start":{"line":63,"column":0},"end":{"line":67,"column":1}},"32":{"start":{"line":64,"column":11},"end":{"line":64,"column":15}},"33":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"34":{"start":{"line":65,"column":31},"end":{"line":65,"column":57}},"35":{"start":{"line":66,"column":2},"end":{"line":66,"column":16}},"36":{"start":{"line":72,"column":0},"end":{"line":83,"column":1}},"37":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"38":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"39":{"start":{"line":77,"column":17},"end":{"line":77,"column":18}},"40":{"start":{"line":77,"column":24},"end":{"line":77,"column":32}},"41":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":62}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":10}},"44":{"start":{"line":82,"column":2},"end":{"line":82,"column":30}},"45":{"start":{"line":85,"column":0},"end":{"line":88,"column":1}},"46":{"start":{"line":86,"column":2},"end":{"line":86,"column":20}},"47":{"start":{"line":87,"column":2},"end":{"line":87,"column":28}},"48":{"start":{"line":94,"column":0},"end":{"line":94,"column":38}},"49":{"start":{"line":96,"column":0},"end":{"line":137,"column":1}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":59}},"51":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":27}},"53":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"54":{"start":{"line":106,"column":22},"end":{"line":106,"column":36}},"55":{"start":{"line":108,"column":6},"end":{"line":108,"column":34}},"56":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"57":{"start":{"line":109,"column":31},"end":{"line":109,"column":51}},"58":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"59":{"start":{"line":112,"column":6},"end":{"line":112,"column":17}},"60":{"start":{"line":113,"column":6},"end":{"line":113,"column":24}},"61":{"start":{"line":117,"column":15},"end":{"line":117,"column":19}},"62":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"63":{"start":{"line":118,"column":17},"end":{"line":118,"column":18}},"64":{"start":{"line":119,"column":6},"end":{"line":119,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"67":{"start":{"line":128,"column":8},"end":{"line":128,"column":26}},"68":{"start":{"line":129,"column":6},"end":{"line":129,"column":29}},"69":{"start":{"line":131,"column":6},"end":{"line":131,"column":30}},"70":{"start":{"line":132,"column":6},"end":{"line":132,"column":25}},"71":{"start":{"line":136,"column":2},"end":{"line":136,"column":22}},"72":{"start":{"line":140,"column":0},"end":{"line":285,"column":1}},"73":{"start":{"line":141,"column":15},"end":{"line":141,"column":31}},"74":{"start":{"line":142,"column":13},"end":{"line":142,"column":17}},"75":{"start":{"line":147,"column":13},"end":{"line":147,"column":18}},"76":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"77":{"start":{"line":150,"column":12},"end":{"line":150,"column":41}},"78":{"start":{"line":151,"column":4},"end":{"line":151,"column":21}},"79":{"start":{"line":152,"column":4},"end":{"line":152,"column":37}},"80":{"start":{"line":153,"column":4},"end":{"line":153,"column":37}},"81":{"start":{"line":154,"column":4},"end":{"line":154,"column":32}},"82":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"83":{"start":{"line":171,"column":6},"end":{"line":171,"column":23}},"84":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"85":{"start":{"line":173,"column":6},"end":{"line":173,"column":11}},"86":{"start":{"line":177,"column":6},"end":{"line":177,"column":32}},"87":{"start":{"line":178,"column":6},"end":{"line":183,"column":7}},"88":{"start":{"line":179,"column":8},"end":{"line":179,"column":41}},"89":{"start":{"line":180,"column":8},"end":{"line":182,"column":10}},"90":{"start":{"line":181,"column":10},"end":{"line":181,"column":43}},"91":{"start":{"line":184,"column":6},"end":{"line":184,"column":33}},"92":{"start":{"line":185,"column":6},"end":{"line":185,"column":17}},"93":{"start":{"line":186,"column":6},"end":{"line":186,"column":11}},"94":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"95":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"96":{"start":{"line":193,"column":8},"end":{"line":193,"column":37}},"97":{"start":{"line":195,"column":6},"end":{"line":195,"column":27}},"98":{"start":{"line":196,"column":6},"end":{"line":196,"column":17}},"99":{"start":{"line":197,"column":6},"end":{"line":197,"column":11}},"100":{"start":{"line":201,"column":6},"end":{"line":201,"column":29}},"101":{"start":{"line":202,"column":6},"end":{"line":205,"column":7}},"102":{"start":{"line":203,"column":8},"end":{"line":203,"column":45}},"103":{"start":{"line":204,"column":8},"end":{"line":204,"column":44}},"104":{"start":{"line":206,"column":6},"end":{"line":206,"column":25}},"105":{"start":{"line":207,"column":6},"end":{"line":207,"column":17}},"106":{"start":{"line":208,"column":6},"end":{"line":208,"column":11}},"107":{"start":{"line":213,"column":6},"end":{"line":213,"column":29}},"108":{"start":{"line":214,"column":6},"end":{"line":217,"column":7}},"109":{"start":{"line":215,"column":8},"end":{"line":215,"column":45}},"110":{"start":{"line":216,"column":8},"end":{"line":216,"column":40}},"111":{"start":{"line":218,"column":6},"end":{"line":218,"column":21}},"112":{"start":{"line":219,"column":6},"end":{"line":219,"column":17}},"113":{"start":{"line":220,"column":6},"end":{"line":220,"column":11}},"114":{"start":{"line":226,"column":6},"end":{"line":226,"column":23}},"115":{"start":{"line":227,"column":6},"end":{"line":227,"column":25}},"116":{"start":{"line":228,"column":6},"end":{"line":228,"column":11}},"117":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"118":{"start":{"line":233,"column":4},"end":{"line":233,"column":28}},"119":{"start":{"line":235,"column":17},"end":{"line":235,"column":29}},"120":{"start":{"line":236,"column":19},"end":{"line":236,"column":33}},"121":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"122":{"start":{"line":242,"column":2},"end":{"line":242,"column":49}},"123":{"start":{"line":243,"column":2},"end":{"line":243,"column":19}},"124":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"125":{"start":{"line":247,"column":4},"end":{"line":249,"column":6}},"126":{"start":{"line":248,"column":6},"end":{"line":248,"column":24}},"127":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"128":{"start":{"line":252,"column":13},"end":{"line":252,"column":35}},"129":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"130":{"start":{"line":255,"column":4},"end":{"line":255,"column":23}},"131":{"start":{"line":258,"column":2},"end":{"line":258,"column":21}},"132":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"133":{"start":{"line":261,"column":4},"end":{"line":261,"column":39}},"134":{"start":{"line":264,"column":11},"end":{"line":264,"column":15}},"135":{"start":{"line":266,"column":2},"end":{"line":268,"column":4}},"136":{"start":{"line":267,"column":4},"end":{"line":267,"column":14}},"137":{"start":{"line":270,"column":2},"end":{"line":272,"column":4}},"138":{"start":{"line":271,"column":4},"end":{"line":271,"column":15}},"139":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"140":{"start":{"line":275,"column":4},"end":{"line":275,"column":29}},"141":{"start":{"line":278,"column":2},"end":{"line":278,"column":22}},"142":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"143":{"start":{"line":282,"column":4},"end":{"line":282,"column":15}},"144":{"start":{"line":283,"column":4},"end":{"line":283,"column":22}}},"fnMap":{"0":{"name":"Parse","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":14}},"loc":{"start":{"line":27,"column":18},"end":{"line":58,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":25},"end":{"line":43,"column":26}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":24},"end":{"line":47,"column":25}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":51,"column":23},"end":{"line":51,"column":24}},"loc":{"start":{"line":51,"column":35},"end":{"line":53,"column":3}},"line":51},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":25},"end":{"line":55,"column":26}},"loc":{"start":{"line":55,"column":37},"end":{"line":57,"column":3}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":29},"end":{"line":63,"column":30}},"loc":{"start":{"line":63,"column":41},"end":{"line":67,"column":1}},"line":63},"6":{"name":"(anonymous_6)","decl":{"start":{"line":72,"column":24},"end":{"line":72,"column":25}},"loc":{"start":{"line":72,"column":37},"end":{"line":83,"column":1}},"line":72},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":22},"end":{"line":85,"column":23}},"loc":{"start":{"line":85,"column":35},"end":{"line":88,"column":1}},"line":85},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},"loc":{"start":{"line":94,"column":36},"end":{"line":94,"column":38}},"line":94},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":27},"end":{"line":96,"column":28}},"loc":{"start":{"line":96,"column":40},"end":{"line":137,"column":1}},"line":96},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":30},"end":{"line":140,"column":31}},"loc":{"start":{"line":140,"column":43},"end":{"line":285,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":178,"column":14},"end":{"line":178,"column":15}},"loc":{"start":{"line":178,"column":26},"end":{"line":183,"column":7}},"line":178},"12":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":42},"end":{"line":180,"column":43}},"loc":{"start":{"line":180,"column":55},"end":{"line":182,"column":9}},"line":180},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":14},"end":{"line":192,"column":15}},"loc":{"start":{"line":192,"column":26},"end":{"line":194,"column":7}},"line":192},"14":{"name":"(anonymous_14)","decl":{"start":{"line":202,"column":14},"end":{"line":202,"column":15}},"loc":{"start":{"line":202,"column":26},"end":{"line":205,"column":7}},"line":202},"15":{"name":"(anonymous_15)","decl":{"start":{"line":214,"column":14},"end":{"line":214,"column":15}},"loc":{"start":{"line":214,"column":26},"end":{"line":217,"column":7}},"line":214},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":21},"end":{"line":247,"column":22}},"loc":{"start":{"line":247,"column":34},"end":{"line":249,"column":5}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":266,"column":20},"end":{"line":266,"column":21}},"loc":{"start":{"line":266,"column":32},"end":{"line":268,"column":3}},"line":266},"18":{"name":"(anonymous_18)","decl":{"start":{"line":270,"column":21},"end":{"line":270,"column":22}},"loc":{"start":{"line":270,"column":33},"end":{"line":272,"column":3}},"line":270}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},{"start":{"line":29,"column":2},"end":{"line":29,"column":48}}],"line":29},"1":{"loc":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"type":"if","locations":[{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},{"start":{"line":65,"column":2},"end":{"line":65,"column":57}}],"line":65},"2":{"loc":{"start":{"line":65,"column":6},"end":{"line":65,"column":29}},"type":"binary-expr","locations":[{"start":{"line":65,"column":6},"end":{"line":65,"column":16}},{"start":{"line":65,"column":20},"end":{"line":65,"column":29}}],"line":65},"3":{"loc":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},{"start":{"line":73,"column":2},"end":{"line":81,"column":3}}],"line":73},"4":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},{"start":{"line":78,"column":6},"end":{"line":78,"column":62}}],"line":78},"5":{"loc":{"start":{"line":97,"column":9},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":9},"end":{"line":97,"column":10}},{"start":{"line":97,"column":14},"end":{"line":97,"column":30}}],"line":97},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},{"start":{"line":104,"column":2},"end":{"line":134,"column":3}}],"line":104},"7":{"loc":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},{"start":{"line":106,"column":4},"end":{"line":110,"column":5}}],"line":106},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},{"start":{"line":109,"column":6},"end":{"line":109,"column":51}}],"line":109},"9":{"loc":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},{"start":{"line":111,"column":4},"end":{"line":114,"column":5}}],"line":111},"10":{"loc":{"start":{"line":118,"column":20},"end":{"line":118,"column":35}},"type":"binary-expr","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":27}},{"start":{"line":118,"column":31},"end":{"line":118,"column":35}}],"line":118},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},{"start":{"line":126,"column":4},"end":{"line":133,"column":5}}],"line":126},"12":{"loc":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"type":"if","locations":[{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},{"start":{"line":127,"column":6},"end":{"line":128,"column":26}}],"line":127},"13":{"loc":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"type":"if","locations":[{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},{"start":{"line":149,"column":2},"end":{"line":155,"column":3}}],"line":149},"14":{"loc":{"start":{"line":149,"column":6},"end":{"line":149,"column":48}},"type":"binary-expr","locations":[{"start":{"line":149,"column":6},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":48}}],"line":149},"15":{"loc":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"type":"switch","locations":[{"start":{"line":158,"column":4},"end":{"line":158,"column":16}},{"start":{"line":159,"column":4},"end":{"line":159,"column":19}},{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},{"start":{"line":161,"column":4},"end":{"line":161,"column":24}},{"start":{"line":162,"column":4},"end":{"line":162,"column":27}},{"start":{"line":163,"column":4},"end":{"line":163,"column":23}},{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},{"start":{"line":166,"column":4},"end":{"line":166,"column":26}},{"start":{"line":167,"column":4},"end":{"line":173,"column":11}},{"start":{"line":175,"column":4},"end":{"line":186,"column":11}},{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},{"start":{"line":189,"column":4},"end":{"line":197,"column":11}},{"start":{"line":199,"column":4},"end":{"line":208,"column":11}},{"start":{"line":210,"column":4},"end":{"line":210,"column":31}},{"start":{"line":211,"column":4},"end":{"line":220,"column":11}},{"start":{"line":222,"column":4},"end":{"line":228,"column":11}}],"line":157},"16":{"loc":{"start":{"line":179,"column":23},"end":{"line":179,"column":41}},"type":"binary-expr","locations":[{"start":{"line":179,"column":23},"end":{"line":179,"column":35}},{"start":{"line":179,"column":39},"end":{"line":179,"column":41}}],"line":179},"17":{"loc":{"start":{"line":203,"column":25},"end":{"line":203,"column":45}},"type":"binary-expr","locations":[{"start":{"line":203,"column":25},"end":{"line":203,"column":39}},{"start":{"line":203,"column":43},"end":{"line":203,"column":45}}],"line":203},"18":{"loc":{"start":{"line":215,"column":25},"end":{"line":215,"column":45}},"type":"binary-expr","locations":[{"start":{"line":215,"column":25},"end":{"line":215,"column":39}},{"start":{"line":215,"column":43},"end":{"line":215,"column":45}}],"line":215},"19":{"loc":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"type":"if","locations":[{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},{"start":{"line":232,"column":2},"end":{"line":241,"column":3}}],"line":232},"20":{"loc":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"type":"if","locations":[{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},{"start":{"line":246,"column":2},"end":{"line":250,"column":3}}],"line":246},"21":{"loc":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},{"start":{"line":252,"column":2},"end":{"line":252,"column":35}}],"line":252},"22":{"loc":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"type":"if","locations":[{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},{"start":{"line":254,"column":2},"end":{"line":256,"column":3}}],"line":254},"23":{"loc":{"start":{"line":254,"column":6},"end":{"line":254,"column":58}},"type":"binary-expr","locations":[{"start":{"line":254,"column":6},"end":{"line":254,"column":27}},{"start":{"line":254,"column":31},"end":{"line":254,"column":58}}],"line":254},"24":{"loc":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"type":"if","locations":[{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},{"start":{"line":260,"column":2},"end":{"line":262,"column":3}}],"line":260},"25":{"loc":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"type":"if","locations":[{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},{"start":{"line":274,"column":2},"end":{"line":276,"column":3}}],"line":274},"26":{"loc":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"type":"if","locations":[{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},{"start":{"line":281,"column":2},"end":{"line":284,"column":3}}],"line":281}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":2,"14":2,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":0,"25":1,"26":36,"27":1,"28":1,"29":1,"30":0,"31":1,"32":1,"33":1,"34":0,"35":1,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":36,"51":36,"52":17,"53":17,"54":15,"55":2,"56":2,"57":1,"58":17,"59":15,"60":15,"61":19,"62":19,"63":19,"64":1041,"65":19,"66":2,"67":1,"68":2,"69":17,"70":17,"71":36,"72":1,"73":17,"74":17,"75":17,"76":17,"77":0,"78":0,"79":0,"80":0,"81":0,"82":17,"83":10,"84":10,"85":10,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":4,"95":4,"96":4,"97":4,"98":4,"99":4,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":2,"108":2,"109":2,"110":2,"111":2,"112":2,"113":2,"114":0,"115":0,"116":0,"117":17,"118":7,"119":10,"120":10,"121":10,"122":17,"123":17,"124":17,"125":10,"126":8,"127":17,"128":7,"129":17,"130":0,"131":17,"132":17,"133":1,"134":17,"135":17,"136":0,"137":17,"138":0,"139":17,"140":0,"141":17,"142":17,"143":2,"144":2},"f":{"0":2,"1":0,"2":36,"3":1,"4":0,"5":1,"6":1,"7":1,"8":0,"9":36,"10":17,"11":0,"12":0,"13":4,"14":1,"15":2,"16":8,"17":0,"18":0},"b":{"0":[1,1],"1":[0,1],"2":[1,1],"3":[0,1],"4":[0,0],"5":[36,36],"6":[17,19],"7":[15,2],"8":[1,1],"9":[15,2],"10":[1060,1058],"11":[2,17],"12":[1,1],"13":[0,17],"14":[17,17],"15":[8,8,9,10,10,10,10,10,10,10,0,4,4,1,2,2,0],"16":[0,0],"17":[1,1],"18":[2,1],"19":[7,10],"20":[10,7],"21":[7,10],"22":[0,17],"23":[17,8],"24":[1,16],"25":[0,17],"26":[2,15]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4a8f51a3a12b59eb69694618530032a813fbf8cb","contentHash":"d347e73abcd3109143efee20401d9f0bfc6d68a4a6323bd4559ada44c741786a"},"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/buffer-entry.js","statementMap":{"0":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}},"1":{"start":{"line":10,"column":15},"end":{"line":10,"column":34}},"2":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":30}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":44}},"5":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"6":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"7":{"start":{"line":18,"column":2},"end":{"line":20,"column":4}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"9":{"start":{"line":23,"column":0},"end":{"line":23,"column":28}},"10":{"start":{"line":26,"column":0},"end":{"line":30,"column":1}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":36}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":26}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":37}}},"fnMap":{"0":{"name":"BufferEntry","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":20}},"loc":{"start":{"line":13,"column":24},"end":{"line":21,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":29},"end":{"line":20,"column":3}},"line":18},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":30},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":43},"end":{"line":30,"column":1}},"line":26}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":3,"4":3,"5":3,"6":3,"7":3,"8":3,"9":1,"10":1,"11":3,"12":3,"13":3},"f":{"0":3,"1":3,"2":3},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"d8ad66df900443c9c9d8aefe5fc126a55ba268ec","contentHash":"25e5b3c51e476fcffac7affa191a0ed0f54d64d3d3b760e887bd45ba08fffa65"},"/Users/isaacs/dev/js/tar/lib/extended-header.js":{"path":"/Users/isaacs/dev/js/tar/lib/extended-header.js","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"1":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"2":{"start":{"line":12,"column":15},"end":{"line":12,"column":34}},"3":{"start":{"line":13,"column":10},"end":{"line":13,"column":30}},"4":{"start":{"line":14,"column":14},"end":{"line":14,"column":25}},"5":{"start":{"line":15,"column":15},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":30}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":18}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":20}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"13":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"14":{"start":{"line":28,"column":2},"end":{"line":28,"column":19}},"15":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":16}},"17":{"start":{"line":33,"column":0},"end":{"line":33,"column":31}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":39}},"19":{"start":{"line":36,"column":8},"end":{"line":36,"column":9}},"20":{"start":{"line":37,"column":13},"end":{"line":37,"column":39}},"21":{"start":{"line":38,"column":11},"end":{"line":38,"column":28}},"22":{"start":{"line":39,"column":11},"end":{"line":39,"column":28}},"23":{"start":{"line":40,"column":11},"end":{"line":40,"column":28}},"24":{"start":{"line":41,"column":11},"end":{"line":41,"column":28}},"25":{"start":{"line":43,"column":0},"end":{"line":45,"column":2}},"26":{"start":{"line":44,"column":2},"end":{"line":44,"column":31}},"27":{"start":{"line":47,"column":0},"end":{"line":47,"column":16}},"28":{"start":{"line":50,"column":9},"end":{"line":50,"column":26}},"29":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"31":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"32":{"start":{"line":54,"column":8},"end":{"line":54,"column":25}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":25}},"34":{"start":{"line":56,"column":8},"end":{"line":56,"column":25}},"35":{"start":{"line":57,"column":12},"end":{"line":57,"column":29}},"36":{"start":{"line":58,"column":9},"end":{"line":58,"column":26}},"37":{"start":{"line":59,"column":9},"end":{"line":59,"column":27}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"39":{"start":{"line":62,"column":27},"end":{"line":62,"column":33}},"40":{"start":{"line":64,"column":2},"end":{"line":130,"column":3}},"41":{"start":{"line":64,"column":16},"end":{"line":64,"column":17}},"42":{"start":{"line":64,"column":23},"end":{"line":64,"column":31}},"43":{"start":{"line":69,"column":12},"end":{"line":69,"column":16}},"44":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"45":{"start":{"line":72,"column":6},"end":{"line":72,"column":53}},"46":{"start":{"line":73,"column":6},"end":{"line":73,"column":12}},"47":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"48":{"start":{"line":77,"column":16},"end":{"line":77,"column":22}},"49":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"50":{"start":{"line":82,"column":10},"end":{"line":82,"column":27}},"51":{"start":{"line":84,"column":10},"end":{"line":84,"column":73}},"52":{"start":{"line":85,"column":10},"end":{"line":85,"column":34}},"53":{"start":{"line":86,"column":10},"end":{"line":86,"column":18}},"54":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"55":{"start":{"line":89,"column":10},"end":{"line":89,"column":68}},"56":{"start":{"line":90,"column":10},"end":{"line":90,"column":16}},"57":{"start":{"line":92,"column":8},"end":{"line":92,"column":29}},"58":{"start":{"line":93,"column":8},"end":{"line":93,"column":16}},"59":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"60":{"start":{"line":98,"column":10},"end":{"line":98,"column":27}},"61":{"start":{"line":99,"column":10},"end":{"line":99,"column":57}},"62":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"63":{"start":{"line":100,"column":35},"end":{"line":100,"column":66}},"64":{"start":{"line":101,"column":10},"end":{"line":101,"column":33}},"65":{"start":{"line":102,"column":10},"end":{"line":102,"column":18}},"66":{"start":{"line":104,"column":8},"end":{"line":104,"column":28}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":16}},"68":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"69":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"70":{"start":{"line":112,"column":12},"end":{"line":112,"column":55}},"71":{"start":{"line":113,"column":12},"end":{"line":113,"column":18}},"72":{"start":{"line":115,"column":20},"end":{"line":115,"column":55}},"73":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"74":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"75":{"start":{"line":119,"column":10},"end":{"line":119,"column":38}},"76":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"77":{"start":{"line":122,"column":10},"end":{"line":122,"column":28}},"78":{"start":{"line":123,"column":10},"end":{"line":123,"column":25}},"79":{"start":{"line":124,"column":10},"end":{"line":124,"column":29}},"80":{"start":{"line":125,"column":10},"end":{"line":125,"column":18}},"81":{"start":{"line":127,"column":8},"end":{"line":127,"column":28}},"82":{"start":{"line":128,"column":8},"end":{"line":128,"column":16}},"83":{"start":{"line":134,"column":2},"end":{"line":136,"column":42}},"84":{"start":{"line":138,"column":2},"end":{"line":138,"column":15}},"85":{"start":{"line":139,"column":2},"end":{"line":139,"column":16}}},"fnMap":{"0":{"name":"ExtendedHeader","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":23}},"loc":{"start":{"line":19,"column":27},"end":{"line":31,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":28},"end":{"line":43,"column":29}},"loc":{"start":{"line":43,"column":41},"end":{"line":45,"column":1}},"line":43},"2":{"name":"parse","decl":{"start":{"line":61,"column":9},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":19},"end":{"line":131,"column":1}},"line":61},"3":{"name":"error","decl":{"start":{"line":133,"column":9},"end":{"line":133,"column":14}},"loc":{"start":{"line":133,"column":25},"end":{"line":140,"column":1}},"line":133}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},{"start":{"line":62,"column":2},"end":{"line":62,"column":33}}],"line":62},"1":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":54}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":23}},{"start":{"line":71,"column":27},"end":{"line":71,"column":54}}],"line":71},"3":{"loc":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"type":"switch","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":22}},{"start":{"line":79,"column":6},"end":{"line":93,"column":16}},{"start":{"line":95,"column":6},"end":{"line":105,"column":16}},{"start":{"line":107,"column":6},"end":{"line":128,"column":16}}],"line":76},"4":{"loc":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},{"start":{"line":81,"column":8},"end":{"line":87,"column":9}}],"line":81},"5":{"loc":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"type":"if","locations":[{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},{"start":{"line":88,"column":8},"end":{"line":91,"column":9}}],"line":88},"6":{"loc":{"start":{"line":88,"column":12},"end":{"line":88,"column":28}},"type":"binary-expr","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":18}},{"start":{"line":88,"column":22},"end":{"line":88,"column":28}}],"line":88},"7":{"loc":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},{"start":{"line":97,"column":8},"end":{"line":103,"column":9}}],"line":97},"8":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},{"start":{"line":100,"column":10},"end":{"line":100,"column":66}}],"line":100},"9":{"loc":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},{"start":{"line":109,"column":8},"end":{"line":126,"column":9}}],"line":109},"10":{"loc":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"type":"if","locations":[{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},{"start":{"line":111,"column":10},"end":{"line":114,"column":11}}],"line":111},"11":{"loc":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"type":"if","locations":[{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},{"start":{"line":116,"column":10},"end":{"line":118,"column":11}}],"line":116}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":4,"7":4,"8":4,"9":4,"10":4,"11":4,"12":4,"13":4,"14":4,"15":4,"16":4,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":4,"39":0,"40":4,"41":4,"42":4,"43":969,"44":969,"45":0,"46":0,"47":969,"48":0,"49":80,"50":26,"51":26,"52":26,"53":26,"54":54,"55":0,"56":0,"57":54,"58":54,"59":275,"60":26,"61":26,"62":26,"63":12,"64":26,"65":26,"66":249,"67":249,"68":614,"69":26,"70":0,"71":0,"72":26,"73":26,"74":20,"75":26,"76":26,"77":26,"78":26,"79":26,"80":26,"81":588,"82":588,"83":0,"84":0,"85":0},"f":{"0":4,"1":4,"2":4,"3":0},"b":{"0":[0,4],"1":[0,969],"2":[969,889],"3":[0,80,275,614],"4":[26,54],"5":[0,54],"6":[54,54],"7":[26,249],"8":[12,14],"9":[26,588],"10":[0,26],"11":[20,6]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"77cb382c69a46833a08275dbc55bf34db0dcd796","contentHash":"78a790af1726a774425fb478f1423068fe64414b747d89b597baf45139e7ae3d"},"/Users/isaacs/dev/js/tar/lib/extract.js":{"path":"/Users/isaacs/dev/js/tar/lib/extract.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":24}},"1":{"start":{"line":5,"column":10},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":14},"end":{"line":6,"column":32}},"3":{"start":{"line":7,"column":15},"end":{"line":7,"column":34}},"4":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":58}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"8":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"9":{"start":{"line":15,"column":4},"end":{"line":15,"column":25}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":25}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"15":{"start":{"line":25,"column":38},"end":{"line":25,"column":52}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"17":{"start":{"line":29,"column":2},"end":{"line":29,"column":14}},"18":{"start":{"line":30,"column":11},"end":{"line":30,"column":15}},"19":{"start":{"line":35,"column":2},"end":{"line":60,"column":4}},"20":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"21":{"start":{"line":39,"column":14},"end":{"line":39,"column":63}},"22":{"start":{"line":40,"column":6},"end":{"line":40,"column":39}},"23":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"24":{"start":{"line":42,"column":17},"end":{"line":42,"column":70}},"25":{"start":{"line":43,"column":8},"end":{"line":43,"column":50}},"26":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"27":{"start":{"line":47,"column":6},"end":{"line":48,"column":66}},"28":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"29":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"30":{"start":{"line":53,"column":21},"end":{"line":53,"column":41}},"31":{"start":{"line":54,"column":19},"end":{"line":54,"column":56}},"32":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"33":{"start":{"line":56,"column":8},"end":{"line":56,"column":65}},"34":{"start":{"line":58,"column":6},"end":{"line":58,"column":54}},"35":{"start":{"line":62,"column":2},"end":{"line":65,"column":4}},"36":{"start":{"line":63,"column":4},"end":{"line":63,"column":36}},"37":{"start":{"line":64,"column":4},"end":{"line":64,"column":15}},"38":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":25}},"40":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"41":{"start":{"line":72,"column":4},"end":{"line":72,"column":20}},"42":{"start":{"line":79,"column":2},"end":{"line":84,"column":4}},"43":{"start":{"line":81,"column":4},"end":{"line":81,"column":21}},"44":{"start":{"line":82,"column":4},"end":{"line":82,"column":18}},"45":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"46":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}},"47":{"start":{"line":89,"column":0},"end":{"line":94,"column":1}},"48":{"start":{"line":90,"column":11},"end":{"line":90,"column":15}},"49":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"50":{"start":{"line":91,"column":31},"end":{"line":91,"column":57}},"51":{"start":{"line":92,"column":2},"end":{"line":92,"column":15}}},"fnMap":{"0":{"name":"Extract","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":85,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":34},"end":{"line":60,"column":3}},"line":35},"2":{"name":"(anonymous_2)","decl":{"start":{"line":62,"column":24},"end":{"line":62,"column":25}},"loc":{"start":{"line":62,"column":36},"end":{"line":65,"column":3}},"line":62},"3":{"name":"(anonymous_3)","decl":{"start":{"line":67,"column":24},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":38},"end":{"line":69,"column":3}},"line":67},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":35},"end":{"line":73,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":24},"end":{"line":79,"column":25}},"loc":{"start":{"line":79,"column":36},"end":{"line":84,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":31},"end":{"line":89,"column":32}},"loc":{"start":{"line":89,"column":43},"end":{"line":94,"column":1}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},{"start":{"line":11,"column":2},"end":{"line":11,"column":58}}],"line":11},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"type":"binary-expr","locations":[{"start":{"line":19,"column":14},"end":{"line":19,"column":23}},{"start":{"line":19,"column":27},"end":{"line":19,"column":59}}],"line":19},"3":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},{"start":{"line":25,"column":2},"end":{"line":25,"column":52}}],"line":25},"4":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":36}},"type":"binary-expr","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":17}},{"start":{"line":25,"column":21},"end":{"line":25,"column":36}}],"line":25},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"6":{"loc":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},{"start":{"line":41,"column":6},"end":{"line":44,"column":7}}],"line":41},"7":{"loc":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}}],"line":46},"8":{"loc":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},{"start":{"line":51,"column":4},"end":{"line":59,"column":5}}],"line":51},"9":{"loc":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"type":"binary-expr","locations":[{"start":{"line":52,"column":15},"end":{"line":52,"column":39}},{"start":{"line":52,"column":43},"end":{"line":52,"column":45}}],"line":52},"10":{"loc":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},{"start":{"line":55,"column":6},"end":{"line":57,"column":7}}],"line":55},"11":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},{"start":{"line":91,"column":2},"end":{"line":91,"column":57}}],"line":91},"12":{"loc":{"start":{"line":91,"column":6},"end":{"line":91,"column":29}},"type":"binary-expr","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":16}},{"start":{"line":91,"column":20},"end":{"line":91,"column":29}}],"line":91}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1,"47":1,"48":0,"49":0,"50":0,"51":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3fb9f60facc409fe944dc36bd2e14fc6153e403d","contentHash":"3d9485ca58c6c768b022a39d276296b53647ccf39986885459406e933921c962"}} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/12bca2bc-6a2b-4f45-abc7-8483922a524d.json b/node_modules/tar/.nyc_output/12bca2bc-6a2b-4f45-abc7-8483922a524d.json
deleted file mode 100644
index 099d5b1..0000000
--- a/node_modules/tar/.nyc_output/12bca2bc-6a2b-4f45-abc7-8483922a524d.json
+++ /dev/null
@@ -1 +0,0 @@
-{"/Users/isaacs/dev/js/tar/lib/pack.js":{"path":"/Users/isaacs/dev/js/tar/lib/pack.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"1":{"start":{"line":6,"column":18},"end":{"line":6,"column":46}},"2":{"start":{"line":7,"column":13},"end":{"line":7,"column":37}},"3":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"4":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"5":{"start":{"line":10,"column":25},"end":{"line":10,"column":61}},"6":{"start":{"line":11,"column":14},"end":{"line":11,"column":40}},"7":{"start":{"line":12,"column":10},"end":{"line":12,"column":25}},"8":{"start":{"line":14,"column":0},"end":{"line":14,"column":41}},"9":{"start":{"line":14,"column":13},"end":{"line":14,"column":14}},"10":{"start":{"line":14,"column":31},"end":{"line":14,"column":41}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":22}},"12":{"start":{"line":20,"column":11},"end":{"line":20,"column":15}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"14":{"start":{"line":21,"column":29},"end":{"line":21,"column":51}},"15":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"16":{"start":{"line":23,"column":13},"end":{"line":23,"column":52}},"17":{"start":{"line":24,"column":7},"end":{"line":24,"column":32}},"18":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"19":{"start":{"line":28,"column":2},"end":{"line":28,"column":20}},"20":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"21":{"start":{"line":30,"column":2},"end":{"line":30,"column":17}},"22":{"start":{"line":32,"column":2},"end":{"line":32,"column":25}},"23":{"start":{"line":33,"column":2},"end":{"line":33,"column":24}},"24":{"start":{"line":35,"column":2},"end":{"line":35,"column":21}},"25":{"start":{"line":36,"column":2},"end":{"line":43,"column":4}},"26":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"27":{"start":{"line":37,"column":35},"end":{"line":37,"column":41}},"28":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"29":{"start":{"line":39,"column":4},"end":{"line":41,"column":6}},"30":{"start":{"line":40,"column":6},"end":{"line":40,"column":25}},"31":{"start":{"line":42,"column":4},"end":{"line":42,"column":15}},"32":{"start":{"line":46,"column":0},"end":{"line":57,"column":1}},"33":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"34":{"start":{"line":48,"column":23},"end":{"line":48,"column":29}},"35":{"start":{"line":49,"column":2},"end":{"line":49,"column":24}},"36":{"start":{"line":51,"column":11},"end":{"line":51,"column":15}},"37":{"start":{"line":52,"column":2},"end":{"line":56,"column":10}},"38":{"start":{"line":54,"column":6},"end":{"line":54,"column":24}},"39":{"start":{"line":59,"column":0},"end":{"line":69,"column":1}},"40":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"41":{"start":{"line":60,"column":40},"end":{"line":60,"column":68}},"42":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"43":{"start":{"line":62,"column":19},"end":{"line":62,"column":72}},"44":{"start":{"line":64,"column":2},"end":{"line":64,"column":17}},"45":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"46":{"start":{"line":66,"column":2},"end":{"line":66,"column":17}},"47":{"start":{"line":67,"column":2},"end":{"line":67,"column":43}},"48":{"start":{"line":68,"column":2},"end":{"line":68,"column":25}},"49":{"start":{"line":71,"column":0},"end":{"line":75,"column":1}},"50":{"start":{"line":72,"column":2},"end":{"line":72,"column":21}},"51":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"52":{"start":{"line":73,"column":26},"end":{"line":73,"column":52}},"53":{"start":{"line":74,"column":2},"end":{"line":74,"column":20}},"54":{"start":{"line":77,"column":0},"end":{"line":82,"column":1}},"55":{"start":{"line":78,"column":2},"end":{"line":78,"column":22}},"56":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"57":{"start":{"line":79,"column":26},"end":{"line":79,"column":53}},"58":{"start":{"line":80,"column":2},"end":{"line":80,"column":21}},"59":{"start":{"line":81,"column":2},"end":{"line":81,"column":17}},"60":{"start":{"line":84,"column":0},"end":{"line":88,"column":1}},"61":{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},"62":{"start":{"line":86,"column":2},"end":{"line":86,"column":24}},"63":{"start":{"line":87,"column":2},"end":{"line":87,"column":17}},"64":{"start":{"line":90,"column":0},"end":{"line":233,"column":1}},"65":{"start":{"line":91,"column":11},"end":{"line":91,"column":15}},"66":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"67":{"start":{"line":93,"column":4},"end":{"line":93,"column":10}},"68":{"start":{"line":96,"column":14},"end":{"line":96,"column":32}},"69":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"70":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"71":{"start":{"line":100,"column":6},"end":{"line":100,"column":22}},"72":{"start":{"line":102,"column":4},"end":{"line":102,"column":10}},"73":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"74":{"start":{"line":107,"column":4},"end":{"line":107,"column":29}},"75":{"start":{"line":108,"column":4},"end":{"line":111,"column":6}},"76":{"start":{"line":110,"column":6},"end":{"line":110,"column":19}},"77":{"start":{"line":112,"column":4},"end":{"line":112,"column":10}},"78":{"start":{"line":115,"column":2},"end":{"line":115,"column":23}},"79":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"80":{"start":{"line":119,"column":4},"end":{"line":119,"column":24}},"81":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"82":{"start":{"line":121,"column":4},"end":{"line":121,"column":18}},"83":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"84":{"start":{"line":123,"column":4},"end":{"line":123,"column":10}},"85":{"start":{"line":134,"column":13},"end":{"line":134,"column":53}},"86":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"87":{"start":{"line":137,"column":4},"end":{"line":137,"column":27}},"88":{"start":{"line":140,"column":15},"end":{"line":140,"column":17}},"89":{"start":{"line":142,"column":2},"end":{"line":144,"column":4}},"90":{"start":{"line":143,"column":4},"end":{"line":143,"column":30}},"91":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"92":{"start":{"line":146,"column":25},"end":{"line":146,"column":52}},"93":{"start":{"line":148,"column":2},"end":{"line":148,"column":53}},"94":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"95":{"start":{"line":152,"column":4},"end":{"line":152,"column":49}},"96":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"97":{"start":{"line":156,"column":4},"end":{"line":156,"column":29}},"98":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"99":{"start":{"line":161,"column":6},"end":{"line":161,"column":12}},"100":{"start":{"line":164,"column":6},"end":{"line":164,"column":24}},"101":{"start":{"line":165,"column":6},"end":{"line":165,"column":21}},"102":{"start":{"line":166,"column":6},"end":{"line":166,"column":11}},"103":{"start":{"line":169,"column":15},"end":{"line":169,"column":69}},"104":{"start":{"line":170,"column":6},"end":{"line":170,"column":54}},"105":{"start":{"line":171,"column":6},"end":{"line":171,"column":21}},"106":{"start":{"line":172,"column":6},"end":{"line":172,"column":11}},"107":{"start":{"line":175,"column":15},"end":{"line":175,"column":69}},"108":{"start":{"line":176,"column":6},"end":{"line":176,"column":74}},"109":{"start":{"line":177,"column":6},"end":{"line":177,"column":21}},"110":{"start":{"line":178,"column":6},"end":{"line":178,"column":11}},"111":{"start":{"line":187,"column":15},"end":{"line":187,"column":53}},"112":{"start":{"line":189,"column":2},"end":{"line":189,"column":20}},"113":{"start":{"line":195,"column":2},"end":{"line":197,"column":4}},"114":{"start":{"line":196,"column":4},"end":{"line":196,"column":22}},"115":{"start":{"line":199,"column":2},"end":{"line":205,"column":4}},"116":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"117":{"start":{"line":201,"column":6},"end":{"line":201,"column":50}},"118":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"119":{"start":{"line":204,"column":33},"end":{"line":204,"column":44}},"120":{"start":{"line":206,"column":2},"end":{"line":206,"column":31}},"121":{"start":{"line":208,"column":14},"end":{"line":208,"column":19}},"122":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"123":{"start":{"line":210,"column":15},"end":{"line":210,"column":21}},"124":{"start":{"line":211,"column":4},"end":{"line":211,"column":16}},"125":{"start":{"line":215,"column":4},"end":{"line":215,"column":27}},"126":{"start":{"line":216,"column":4},"end":{"line":216,"column":26}},"127":{"start":{"line":217,"column":4},"end":{"line":217,"column":17}},"128":{"start":{"line":220,"column":2},"end":{"line":223,"column":4}},"129":{"start":{"line":222,"column":4},"end":{"line":222,"column":24}},"130":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"131":{"start":{"line":229,"column":4},"end":{"line":229,"column":21}},"132":{"start":{"line":232,"column":2},"end":{"line":232,"column":20}},"133":{"start":{"line":235,"column":0},"end":{"line":235,"column":39}},"134":{"start":{"line":236,"column":0},"end":{"line":236,"column":37}}},"fnMap":{"0":{"name":"Pack","decl":{"start":{"line":18,"column":9},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":22},"end":{"line":44,"column":1}},"line":18},"1":{"name":"(anonymous_1)","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":31},"end":{"line":43,"column":3}},"line":36},"2":{"name":"(anonymous_2)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":30},"end":{"line":41,"column":5}},"line":39},"3":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":28}},"loc":{"start":{"line":46,"column":44},"end":{"line":57,"column":1}},"line":46},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":29},"end":{"line":55,"column":5}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":39},"end":{"line":69,"column":1}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":23},"end":{"line":71,"column":24}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":77,"column":24},"end":{"line":77,"column":25}},"loc":{"start":{"line":77,"column":36},"end":{"line":82,"column":1}},"line":77},"8":{"name":"(anonymous_8)","decl":{"start":{"line":84,"column":21},"end":{"line":84,"column":22}},"loc":{"start":{"line":84,"column":33},"end":{"line":88,"column":1}},"line":84},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":26},"end":{"line":90,"column":27}},"loc":{"start":{"line":90,"column":38},"end":{"line":233,"column":1}},"line":90},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":22},"end":{"line":108,"column":23}},"loc":{"start":{"line":108,"column":34},"end":{"line":111,"column":5}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":142,"column":41},"end":{"line":142,"column":42}},"loc":{"start":{"line":142,"column":54},"end":{"line":144,"column":3}},"line":142},"12":{"name":"(anonymous_12)","decl":{"start":{"line":195,"column":20},"end":{"line":195,"column":21}},"loc":{"start":{"line":195,"column":33},"end":{"line":197,"column":3}},"line":195},"13":{"name":"(anonymous_13)","decl":{"start":{"line":199,"column":22},"end":{"line":199,"column":23}},"loc":{"start":{"line":199,"column":34},"end":{"line":205,"column":3}},"line":199},"14":{"name":"(anonymous_14)","decl":{"start":{"line":200,"column":30},"end":{"line":200,"column":31}},"loc":{"start":{"line":200,"column":42},"end":{"line":202,"column":5}},"line":200},"15":{"name":"nextEntry","decl":{"start":{"line":209,"column":11},"end":{"line":209,"column":20}},"loc":{"start":{"line":209,"column":24},"end":{"line":218,"column":3}},"line":209},"16":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":21},"end":{"line":220,"column":22}},"loc":{"start":{"line":220,"column":35},"end":{"line":223,"column":3}},"line":220},"17":{"name":"(anonymous_17)","decl":{"start":{"line":235,"column":25},"end":{"line":235,"column":26}},"loc":{"start":{"line":235,"column":37},"end":{"line":235,"column":39}},"line":235},"18":{"name":"(anonymous_18)","decl":{"start":{"line":236,"column":23},"end":{"line":236,"column":24}},"loc":{"start":{"line":236,"column":35},"end":{"line":236,"column":37}},"line":236}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},{"start":{"line":21,"column":2},"end":{"line":21,"column":51}}],"line":21},"1":{"loc":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},{"start":{"line":23,"column":2},"end":{"line":24,"column":32}}],"line":23},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},{"start":{"line":37,"column":4},"end":{"line":37,"column":41}}],"line":37},"3":{"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},{"start":{"line":48,"column":2},"end":{"line":48,"column":29}}],"line":48},"4":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},{"start":{"line":60,"column":2},"end":{"line":60,"column":68}}],"line":60},"5":{"loc":{"start":{"line":60,"column":6},"end":{"line":60,"column":38}},"type":"binary-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":18}},{"start":{"line":60,"column":22},"end":{"line":60,"column":38}}],"line":60},"6":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},{"start":{"line":62,"column":2},"end":{"line":62,"column":72}}],"line":62},"7":{"loc":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},{"start":{"line":73,"column":2},"end":{"line":73,"column":52}}],"line":73},"8":{"loc":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},{"start":{"line":79,"column":2},"end":{"line":79,"column":53}}],"line":79},"9":{"loc":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},{"start":{"line":92,"column":2},"end":{"line":94,"column":3}}],"line":92},"10":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":34}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":16}},{"start":{"line":92,"column":20},"end":{"line":92,"column":34}}],"line":92},"11":{"loc":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},{"start":{"line":98,"column":2},"end":{"line":103,"column":3}}],"line":98},"12":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{"line":99,"column":4},"end":{"line":101,"column":5}}],"line":99},"13":{"loc":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},{"start":{"line":105,"column":2},"end":{"line":113,"column":3}}],"line":105},"14":{"loc":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"type":"if","locations":[{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},{"start":{"line":117,"column":2},"end":{"line":124,"column":3}}],"line":117},"15":{"loc":{"start":{"line":134,"column":27},"end":{"line":134,"column":46}},"type":"binary-expr","locations":[{"start":{"line":134,"column":27},"end":{"line":134,"column":37}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}],"line":134},"16":{"loc":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},{"start":{"line":135,"column":2},"end":{"line":138,"column":3}}],"line":135},"17":{"loc":{"start":{"line":135,"column":6},"end":{"line":135,"column":72}},"type":"binary-expr","locations":[{"start":{"line":135,"column":6},"end":{"line":135,"column":16}},{"start":{"line":135,"column":20},"end":{"line":135,"column":39}},{"start":{"line":135,"column":43},"end":{"line":135,"column":53}},{"start":{"line":135,"column":57},"end":{"line":135,"column":72}}],"line":135},"18":{"loc":{"start":{"line":142,"column":14},"end":{"line":142,"column":31}},"type":"binary-expr","locations":[{"start":{"line":142,"column":14},"end":{"line":142,"column":25}},{"start":{"line":142,"column":29},"end":{"line":142,"column":31}}],"line":142},"19":{"loc":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"type":"if","locations":[{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},{"start":{"line":146,"column":2},"end":{"line":146,"column":52}}],"line":146},"20":{"loc":{"start":{"line":148,"column":36},"end":{"line":148,"column":52}},"type":"binary-expr","locations":[{"start":{"line":148,"column":36},"end":{"line":148,"column":46}},{"start":{"line":148,"column":50},"end":{"line":148,"column":52}}],"line":148},"21":{"loc":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"type":"if","locations":[{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},{"start":{"line":151,"column":2},"end":{"line":153,"column":3}}],"line":151},"22":{"loc":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"type":"if","locations":[{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},{"start":{"line":155,"column":2},"end":{"line":156,"column":29}}],"line":155},"23":{"loc":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"type":"switch","locations":[{"start":{"line":160,"column":4},"end":{"line":161,"column":12}},{"start":{"line":163,"column":4},"end":{"line":166,"column":11}},{"start":{"line":168,"column":4},"end":{"line":172,"column":11}},{"start":{"line":174,"column":4},"end":{"line":178,"column":11}}],"line":158},"24":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":54}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},{"start":{"line":170,"column":51},"end":{"line":170,"column":54}}],"line":170},"25":{"loc":{"start":{"line":176,"column":24},"end":{"line":176,"column":74}},"type":"binary-expr","locations":[{"start":{"line":176,"column":24},"end":{"line":176,"column":67}},{"start":{"line":176,"column":71},"end":{"line":176,"column":74}}],"line":176},"26":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},{"start":{"line":204,"column":4},"end":{"line":204,"column":44}}],"line":204},"27":{"loc":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},{"start":{"line":210,"column":4},"end":{"line":210,"column":21}}],"line":210},"28":{"loc":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},{"start":{"line":227,"column":2},"end":{"line":230,"column":3}}],"line":227}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":512,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":1,"50":0,"51":0,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0,0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"8beb16ccde52e484aa1dd87f5ece33d696c808ab","contentHash":"7bb2b7ebe1111c0deefbf9a61d17bf9d2dbe951adb585db96f9d89663ce5909d"},"/Users/isaacs/dev/js/tar/lib/entry-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":16},"end":{"line":4,"column":38}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":34}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":37}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":29}},"9":{"start":{"line":15,"column":11},"end":{"line":15,"column":15}},"10":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":33}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":20}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":35}},"16":{"start":{"line":28,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"18":{"start":{"line":32,"column":2},"end":{"line":34,"column":4}},"19":{"start":{"line":33,"column":4},"end":{"line":33,"column":20}},"20":{"start":{"line":36,"column":2},"end":{"line":39,"column":4}},"21":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"22":{"start":{"line":38,"column":4},"end":{"line":38,"column":20}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":18}},"24":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":18}},"26":{"start":{"line":45,"column":2},"end":{"line":45,"column":25}},"27":{"start":{"line":46,"column":2},"end":{"line":46,"column":23}},"28":{"start":{"line":47,"column":2},"end":{"line":47,"column":22}},"29":{"start":{"line":49,"column":2},"end":{"line":49,"column":17}},"30":{"start":{"line":50,"column":2},"end":{"line":50,"column":23}},"31":{"start":{"line":51,"column":2},"end":{"line":51,"column":18}},"32":{"start":{"line":53,"column":2},"end":{"line":55,"column":4}},"33":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"34":{"start":{"line":58,"column":0},"end":{"line":65,"column":1}},"35":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"36":{"start":{"line":60,"column":19},"end":{"line":60,"column":74}},"37":{"start":{"line":61,"column":2},"end":{"line":61,"column":22}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":17}},"39":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"40":{"start":{"line":64,"column":2},"end":{"line":64,"column":25}},"41":{"start":{"line":67,"column":0},"end":{"line":74,"column":1}},"42":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"43":{"start":{"line":69,"column":9},"end":{"line":69,"column":29}},"44":{"start":{"line":70,"column":2},"end":{"line":70,"column":24}},"45":{"start":{"line":71,"column":2},"end":{"line":71,"column":20}},"46":{"start":{"line":72,"column":2},"end":{"line":72,"column":17}},"47":{"start":{"line":73,"column":2},"end":{"line":73,"column":43}},"48":{"start":{"line":76,"column":0},"end":{"line":80,"column":1}},"49":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"50":{"start":{"line":79,"column":2},"end":{"line":79,"column":20}},"51":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"52":{"start":{"line":84,"column":2},"end":{"line":84,"column":22}},"53":{"start":{"line":85,"column":2},"end":{"line":85,"column":21}},"54":{"start":{"line":86,"column":2},"end":{"line":86,"column":17}},"55":{"start":{"line":89,"column":0},"end":{"line":98,"column":1}},"56":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"57":{"start":{"line":91,"column":20},"end":{"line":91,"column":69}},"58":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"59":{"start":{"line":95,"column":20},"end":{"line":95,"column":30}},"60":{"start":{"line":97,"column":2},"end":{"line":97,"column":31}},"61":{"start":{"line":100,"column":0},"end":{"line":126,"column":1}},"62":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"63":{"start":{"line":102,"column":23},"end":{"line":102,"column":29}},"64":{"start":{"line":103,"column":2},"end":{"line":103,"column":24}},"65":{"start":{"line":105,"column":20},"end":{"line":105,"column":48}},"66":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"67":{"start":{"line":108,"column":13},"end":{"line":108,"column":17}},"68":{"start":{"line":110,"column":4},"end":{"line":111,"column":44}},"69":{"start":{"line":113,"column":4},"end":{"line":120,"column":12}},"70":{"start":{"line":115,"column":8},"end":{"line":115,"column":26}},"71":{"start":{"line":118,"column":8},"end":{"line":118,"column":28}},"72":{"start":{"line":124,"column":2},"end":{"line":124,"column":32}},"73":{"start":{"line":125,"column":2},"end":{"line":125,"column":21}},"74":{"start":{"line":128,"column":0},"end":{"line":167,"column":1}},"75":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"76":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"77":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"78":{"start":{"line":136,"column":4},"end":{"line":136,"column":10}},"79":{"start":{"line":139,"column":2},"end":{"line":139,"column":25}},"80":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"81":{"start":{"line":142,"column":2},"end":{"line":159,"column":3}},"82":{"start":{"line":142,"column":15},"end":{"line":142,"column":16}},"83":{"start":{"line":145,"column":12},"end":{"line":145,"column":18}},"84":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"85":{"start":{"line":147,"column":19},"end":{"line":147,"column":37}},"86":{"start":{"line":148,"column":9},"end":{"line":148,"column":30}},"87":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"88":{"start":{"line":152,"column":6},"end":{"line":152,"column":30}},"89":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"90":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"91":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"92":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"93":{"start":{"line":162,"column":2},"end":{"line":162,"column":25}},"94":{"start":{"line":163,"column":2},"end":{"line":163,"column":26}},"95":{"start":{"line":166,"column":2},"end":{"line":166,"column":20}},"96":{"start":{"line":169,"column":0},"end":{"line":169,"column":46}}},"fnMap":{"0":{"name":"EntryWriter","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":20}},"loc":{"start":{"line":14,"column":29},"end":{"line":56,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":37},"end":{"line":30,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":25},"end":{"line":32,"column":26}},"loc":{"start":{"line":32,"column":37},"end":{"line":34,"column":3}},"line":32},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":23},"end":{"line":36,"column":24}},"loc":{"start":{"line":36,"column":35},"end":{"line":39,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":28},"end":{"line":55,"column":3}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":30},"end":{"line":58,"column":31}},"loc":{"start":{"line":58,"column":43},"end":{"line":65,"column":1}},"line":58},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":28},"end":{"line":67,"column":29}},"loc":{"start":{"line":67,"column":41},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":30},"end":{"line":76,"column":31}},"loc":{"start":{"line":76,"column":42},"end":{"line":80,"column":1}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":31},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":43},"end":{"line":87,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":89,"column":28},"end":{"line":89,"column":29}},"loc":{"start":{"line":89,"column":45},"end":{"line":98,"column":1}},"line":89},"10":{"name":"(anonymous_10)","decl":{"start":{"line":100,"column":32},"end":{"line":100,"column":33}},"loc":{"start":{"line":100,"column":44},"end":{"line":126,"column":1}},"line":100},"11":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":18},"end":{"line":114,"column":19}},"loc":{"start":{"line":114,"column":31},"end":{"line":116,"column":7}},"line":114},"12":{"name":"(anonymous_12)","decl":{"start":{"line":117,"column":19},"end":{"line":117,"column":20}},"loc":{"start":{"line":117,"column":33},"end":{"line":119,"column":7}},"line":117},"13":{"name":"(anonymous_13)","decl":{"start":{"line":128,"column":33},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":45},"end":{"line":167,"column":1}},"line":128},"14":{"name":"(anonymous_14)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":44},"end":{"line":169,"column":46}},"line":169}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"1":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"2":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},{"start":{"line":60,"column":2},"end":{"line":60,"column":74}}],"line":60},"3":{"loc":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},{"start":{"line":69,"column":2},"end":{"line":69,"column":29}}],"line":69},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},{"start":{"line":91,"column":2},"end":{"line":91,"column":69}}],"line":91},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},{"start":{"line":95,"column":2},"end":{"line":95,"column":30}}],"line":95},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},{"start":{"line":102,"column":2},"end":{"line":102,"column":29}}],"line":102},"7":{"loc":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},{"start":{"line":107,"column":2},"end":{"line":121,"column":3}}],"line":107},"8":{"loc":{"start":{"line":107,"column":6},"end":{"line":107,"column":44}},"type":"binary-expr","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":44}}],"line":107},"9":{"loc":{"start":{"line":110,"column":27},"end":{"line":111,"column":44}},"type":"binary-expr","locations":[{"start":{"line":110,"column":27},"end":{"line":110,"column":47}},{"start":{"line":111,"column":6},"end":{"line":111,"column":44}}],"line":110},"10":{"loc":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"type":"if","locations":[{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},{"start":{"line":130,"column":2},"end":{"line":132,"column":3}}],"line":130},"11":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":37}},"type":"binary-expr","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":22}},{"start":{"line":130,"column":26},"end":{"line":130,"column":37}}],"line":130},"12":{"loc":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"type":"if","locations":[{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},{"start":{"line":134,"column":2},"end":{"line":137,"column":3}}],"line":134},"13":{"loc":{"start":{"line":134,"column":6},"end":{"line":134,"column":38}},"type":"binary-expr","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":18}},{"start":{"line":134,"column":22},"end":{"line":134,"column":38}}],"line":134},"14":{"loc":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},{"start":{"line":147,"column":4},"end":{"line":148,"column":30}}],"line":147},"15":{"loc":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},{"start":{"line":150,"column":4},"end":{"line":158,"column":5}}],"line":150},"16":{"loc":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},{"start":{"line":153,"column":6},"end":{"line":156,"column":7}}],"line":153}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":0,"50":0,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":1,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3e169418508e031df78186ff63b5fa5aa2484ab8","contentHash":"84191ed4732b6763ae8701256051735aebbe5e95c932c15bef34da01b33ba1a0"},"/Users/isaacs/dev/js/tar/lib/entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry.js","statementMap":{"0":{"start":{"line":7,"column":0},"end":{"line":7,"column":22}},"1":{"start":{"line":9,"column":16},"end":{"line":9,"column":38}},"2":{"start":{"line":10,"column":10},"end":{"line":10,"column":27}},"3":{"start":{"line":11,"column":13},"end":{"line":11,"column":33}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":37}},"5":{"start":{"line":13,"column":15},"end":{"line":13,"column":34}},"6":{"start":{"line":14,"column":14},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":22}},"9":{"start":{"line":19,"column":2},"end":{"line":19,"column":22}},"10":{"start":{"line":21,"column":2},"end":{"line":21,"column":25}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":22}},"12":{"start":{"line":23,"column":2},"end":{"line":23,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":21}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"17":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"18":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"19":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"20":{"start":{"line":32,"column":2},"end":{"line":32,"column":36}},"21":{"start":{"line":34,"column":2},"end":{"line":34,"column":17}},"22":{"start":{"line":35,"column":2},"end":{"line":35,"column":23}},"23":{"start":{"line":36,"column":2},"end":{"line":36,"column":33}},"24":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"25":{"start":{"line":41,"column":11},"end":{"line":41,"column":15}},"26":{"start":{"line":42,"column":2},"end":{"line":44,"column":4}},"27":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"28":{"start":{"line":46,"column":2},"end":{"line":46,"column":18}},"29":{"start":{"line":49,"column":0},"end":{"line":49,"column":23}},"30":{"start":{"line":51,"column":0},"end":{"line":78,"column":1}},"31":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"32":{"start":{"line":52,"column":20},"end":{"line":52,"column":65}},"33":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"34":{"start":{"line":54,"column":4},"end":{"line":54,"column":40}},"35":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"36":{"start":{"line":60,"column":4},"end":{"line":60,"column":35}},"37":{"start":{"line":62,"column":2},"end":{"line":62,"column":29}},"38":{"start":{"line":65,"column":11},"end":{"line":65,"column":25}},"39":{"start":{"line":66,"column":2},"end":{"line":66,"column":21}},"40":{"start":{"line":67,"column":2},"end":{"line":67,"column":19}},"41":{"start":{"line":69,"column":2},"end":{"line":69,"column":14}},"42":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"43":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"44":{"start":{"line":74,"column":4},"end":{"line":74,"column":16}},"45":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}},"46":{"start":{"line":80,"column":0},"end":{"line":84,"column":1}},"47":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"48":{"start":{"line":81,"column":9},"end":{"line":81,"column":22}},"49":{"start":{"line":82,"column":2},"end":{"line":82,"column":21}},"50":{"start":{"line":83,"column":2},"end":{"line":83,"column":14}},"51":{"start":{"line":86,"column":0},"end":{"line":89,"column":1}},"52":{"start":{"line":87,"column":2},"end":{"line":87,"column":21}},"53":{"start":{"line":88,"column":2},"end":{"line":88,"column":20}},"54":{"start":{"line":91,"column":0},"end":{"line":97,"column":1}},"55":{"start":{"line":93,"column":2},"end":{"line":93,"column":21}},"56":{"start":{"line":94,"column":2},"end":{"line":94,"column":22}},"57":{"start":{"line":95,"column":2},"end":{"line":95,"column":14}},"58":{"start":{"line":96,"column":2},"end":{"line":96,"column":41}},"59":{"start":{"line":100,"column":0},"end":{"line":139,"column":1}},"60":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"61":{"start":{"line":103,"column":52},"end":{"line":103,"column":58}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":22}},"63":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"64":{"start":{"line":111,"column":16},"end":{"line":111,"column":43}},"65":{"start":{"line":112,"column":4},"end":{"line":112,"column":28}},"66":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"67":{"start":{"line":117,"column":4},"end":{"line":117,"column":57}},"68":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"69":{"start":{"line":119,"column":6},"end":{"line":119,"column":29}},"70":{"start":{"line":120,"column":6},"end":{"line":120,"column":24}},"71":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"72":{"start":{"line":123,"column":6},"end":{"line":123,"column":24}},"73":{"start":{"line":124,"column":6},"end":{"line":124,"column":22}},"74":{"start":{"line":130,"column":12},"end":{"line":130,"column":29}},"75":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"76":{"start":{"line":132,"column":4},"end":{"line":132,"column":36}},"77":{"start":{"line":133,"column":4},"end":{"line":133,"column":22}},"78":{"start":{"line":134,"column":4},"end":{"line":134,"column":25}},"79":{"start":{"line":135,"column":4},"end":{"line":135,"column":40}},"80":{"start":{"line":138,"column":2},"end":{"line":138,"column":23}},"81":{"start":{"line":141,"column":0},"end":{"line":211,"column":1}},"82":{"start":{"line":143,"column":15},"end":{"line":143,"column":27}},"83":{"start":{"line":144,"column":17},"end":{"line":144,"column":31}},"84":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}},"85":{"start":{"line":146,"column":14},"end":{"line":146,"column":24}},"86":{"start":{"line":149,"column":15},"end":{"line":149,"column":25}},"87":{"start":{"line":150,"column":2},"end":{"line":154,"column":3}},"88":{"start":{"line":150,"column":15},"end":{"line":150,"column":16}},"89":{"start":{"line":151,"column":16},"end":{"line":151,"column":25}},"90":{"start":{"line":152,"column":14},"end":{"line":152,"column":27}},"91":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"92":{"start":{"line":153,"column":36},"end":{"line":153,"column":54}},"93":{"start":{"line":158,"column":3},"end":{"line":165,"column":3}},"94":{"start":{"line":159,"column":4},"end":{"line":161,"column":6}},"95":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"96":{"start":{"line":160,"column":39},"end":{"line":160,"column":54}},"97":{"start":{"line":165,"column":3},"end":{"line":173,"column":3}},"98":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"99":{"start":{"line":167,"column":6},"end":{"line":167,"column":40}},"100":{"start":{"line":173,"column":3},"end":{"line":177,"column":4}},"101":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"102":{"start":{"line":175,"column":6},"end":{"line":175,"column":42}},"103":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"104":{"start":{"line":184,"column":6},"end":{"line":184,"column":19}},"105":{"start":{"line":185,"column":6},"end":{"line":185,"column":11}},"106":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"107":{"start":{"line":189,"column":6},"end":{"line":189,"column":11}},"108":{"start":{"line":192,"column":6},"end":{"line":192,"column":22}},"109":{"start":{"line":193,"column":6},"end":{"line":193,"column":11}},"110":{"start":{"line":202,"column":6},"end":{"line":202,"column":34}},"111":{"start":{"line":205,"column":2},"end":{"line":205,"column":18}},"112":{"start":{"line":206,"column":2},"end":{"line":206,"column":24}},"113":{"start":{"line":207,"column":2},"end":{"line":207,"column":24}},"114":{"start":{"line":210,"column":2},"end":{"line":210,"column":30}},"115":{"start":{"line":215,"column":0},"end":{"line":217,"column":1}},"116":{"start":{"line":216,"column":2},"end":{"line":216,"column":20}},"117":{"start":{"line":219,"column":0},"end":{"line":219,"column":35}},"118":{"start":{"line":220,"column":0},"end":{"line":220,"column":37}}},"fnMap":{"0":{"name":"Entry","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":14}},"loc":{"start":{"line":16,"column":42},"end":{"line":47,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":36},"end":{"line":42,"column":37}},"loc":{"start":{"line":42,"column":49},"end":{"line":44,"column":3}},"line":42},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":24},"end":{"line":51,"column":25}},"loc":{"start":{"line":51,"column":37},"end":{"line":78,"column":1}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":80,"column":22},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":84,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":86,"column":24},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":36},"end":{"line":89,"column":1}},"line":86},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":25},"end":{"line":91,"column":26}},"loc":{"start":{"line":91,"column":37},"end":{"line":97,"column":1}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":24},"end":{"line":100,"column":25}},"loc":{"start":{"line":100,"column":36},"end":{"line":139,"column":1}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":28},"end":{"line":141,"column":29}},"loc":{"start":{"line":141,"column":40},"end":{"line":211,"column":1}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":158,"column":30},"end":{"line":158,"column":31}},"loc":{"start":{"line":158,"column":43},"end":{"line":162,"column":3}},"line":158},"9":{"name":"(anonymous_9)","decl":{"start":{"line":159,"column":27},"end":{"line":159,"column":28}},"loc":{"start":{"line":159,"column":40},"end":{"line":161,"column":5}},"line":159},"10":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":32},"end":{"line":165,"column":33}},"loc":{"start":{"line":165,"column":45},"end":{"line":169,"column":3}},"line":165},"11":{"name":"(anonymous_11)","decl":{"start":{"line":173,"column":39},"end":{"line":173,"column":40}},"loc":{"start":{"line":173,"column":52},"end":{"line":177,"column":3}},"line":173},"12":{"name":"(anonymous_12)","decl":{"start":{"line":215,"column":24},"end":{"line":215,"column":25}},"loc":{"start":{"line":215,"column":34},"end":{"line":217,"column":1}},"line":215}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":19},"end":{"line":36,"column":33}},"type":"binary-expr","locations":[{"start":{"line":36,"column":19},"end":{"line":36,"column":27}},{"start":{"line":36,"column":31},"end":{"line":36,"column":33}}],"line":36},"1":{"loc":{"start":{"line":42,"column":14},"end":{"line":42,"column":26}},"type":"binary-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":20}},{"start":{"line":42,"column":24},"end":{"line":42,"column":26}}],"line":42},"2":{"loc":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},{"start":{"line":52,"column":2},"end":{"line":52,"column":65}}],"line":52},"3":{"loc":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},{"start":{"line":53,"column":2},"end":{"line":55,"column":3}}],"line":53},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"6":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":28}}],"line":72},"7":{"loc":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},{"start":{"line":81,"column":2},"end":{"line":81,"column":22}}],"line":81},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},{"start":{"line":103,"column":2},"end":{"line":103,"column":58}}],"line":103},"9":{"loc":{"start":{"line":103,"column":6},"end":{"line":103,"column":50}},"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":18}},{"start":{"line":103,"column":22},"end":{"line":103,"column":35}},{"start":{"line":103,"column":39},"end":{"line":103,"column":50}}],"line":103},"10":{"loc":{"start":{"line":110,"column":9},"end":{"line":110,"column":54}},"type":"binary-expr","locations":[{"start":{"line":110,"column":9},"end":{"line":110,"column":37}},{"start":{"line":110,"column":41},"end":{"line":110,"column":54}}],"line":110},"11":{"loc":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},{"start":{"line":116,"column":2},"end":{"line":126,"column":3}}],"line":116},"12":{"loc":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},{"start":{"line":118,"column":4},"end":{"line":121,"column":5}}],"line":118},"13":{"loc":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},{"start":{"line":122,"column":4},"end":{"line":125,"column":5}}],"line":122},"14":{"loc":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},{"start":{"line":131,"column":2},"end":{"line":136,"column":3}}],"line":131},"15":{"loc":{"start":{"line":131,"column":6},"end":{"line":131,"column":45}},"type":"binary-expr","locations":[{"start":{"line":131,"column":6},"end":{"line":131,"column":26}},{"start":{"line":131,"column":30},"end":{"line":131,"column":45}}],"line":131},"16":{"loc":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},{"start":{"line":153,"column":4},"end":{"line":153,"column":54}}],"line":153},"17":{"loc":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"type":"if","locations":[{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},{"start":{"line":160,"column":6},"end":{"line":160,"column":54}}],"line":160},"18":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}],"line":166},"19":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{"line":174,"column":4},"end":{"line":176,"column":5}}],"line":174},"20":{"loc":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"type":"switch","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":19}},{"start":{"line":183,"column":4},"end":{"line":185,"column":11}},{"start":{"line":187,"column":4},"end":{"line":189,"column":11}},{"start":{"line":191,"column":4},"end":{"line":193,"column":11}},{"start":{"line":195,"column":4},"end":{"line":195,"column":16}},{"start":{"line":196,"column":4},"end":{"line":196,"column":24}},{"start":{"line":197,"column":4},"end":{"line":197,"column":27}},{"start":{"line":198,"column":4},"end":{"line":198,"column":23}},{"start":{"line":199,"column":4},"end":{"line":199,"column":21}},{"start":{"line":200,"column":4},"end":{"line":200,"column":16}},{"start":{"line":201,"column":4},"end":{"line":202,"column":34}}],"line":181}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":7,"8":7,"9":7,"10":7,"11":7,"12":7,"13":7,"14":7,"15":7,"16":7,"17":7,"18":7,"19":7,"20":7,"21":7,"22":7,"23":7,"24":7,"25":7,"26":7,"27":0,"28":7,"29":1,"30":1,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1,"47":7,"48":0,"49":7,"50":7,"51":1,"52":7,"53":7,"54":1,"55":18,"56":18,"57":18,"58":18,"59":1,"60":25,"61":18,"62":7,"63":7,"64":0,"65":0,"66":7,"67":7,"68":7,"69":0,"70":0,"71":7,"72":7,"73":7,"74":7,"75":7,"76":0,"77":0,"78":0,"79":0,"80":7,"81":1,"82":7,"83":7,"84":7,"85":7,"86":7,"87":7,"88":7,"89":119,"90":119,"91":119,"92":112,"93":7,"94":14,"95":0,"96":0,"97":7,"98":14,"99":14,"100":7,"101":21,"102":7,"103":7,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":7,"111":7,"112":7,"113":7,"114":7,"115":1,"116":0,"117":1,"118":1},"f":{"0":7,"1":0,"2":0,"3":7,"4":7,"5":18,"6":25,"7":7,"8":14,"9":0,"10":14,"11":21,"12":0},"b":{"0":[7,7],"1":[7,7],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,7],"8":[18,7],"9":[25,18,14],"10":[7,0],"11":[7,0],"12":[0,7],"13":[7,0],"14":[0,7],"15":[7,0],"16":[112,7],"17":[0,0],"18":[14,0],"19":[7,14],"20":[0,0,0,0,0,2,2,2,6,6,7]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"2cc4f925db2a60e89bf0743124faec4e8996dfdb","contentHash":"245d5cb2b23d975dc5b9a0ed2553c93c587727d50a7961242f50cec333c04ba9"},"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/global-header-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":65}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":34}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"4":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":40}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}}},"fnMap":{"0":{"name":"GlobalHeaderWriter","decl":{"start":{"line":8,"column":9},"end":{"line":8,"column":27}},"loc":{"start":{"line":8,"column":36},"end":{"line":14,"column":1}},"line":8}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0},"f":{"0":0},"b":{"0":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3d0c8589f62a5c8ccec606d52d3abd98e5627d57","contentHash":"a2570ca840cf3e44d77e15af0aee52f7c145da39b76366006f3672b9708def3e"},"/Users/isaacs/dev/js/tar/lib/parse.js":{"path":"/Users/isaacs/dev/js/tar/lib/parse.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"1":{"start":{"line":8,"column":13},"end":{"line":8,"column":30}},"2":{"start":{"line":9,"column":13},"end":{"line":9,"column":26}},"3":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":30}},"5":{"start":{"line":12,"column":16},"end":{"line":12,"column":38}},"6":{"start":{"line":13,"column":12},"end":{"line":13,"column":33}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":46}},"8":{"start":{"line":15,"column":21},"end":{"line":15,"column":52}},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":33}},"10":{"start":{"line":17,"column":15},"end":{"line":17,"column":34}},"11":{"start":{"line":18,"column":14},"end":{"line":18,"column":32}},"12":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}},"13":{"start":{"line":28,"column":11},"end":{"line":28,"column":15}},"14":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"15":{"start":{"line":29,"column":30},"end":{"line":29,"column":48}},"16":{"start":{"line":34,"column":2},"end":{"line":34,"column":18}},"17":{"start":{"line":36,"column":2},"end":{"line":36,"column":20}},"18":{"start":{"line":37,"column":2},"end":{"line":37,"column":20}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":35}},"20":{"start":{"line":39,"column":2},"end":{"line":39,"column":17}},"21":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"22":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"23":{"start":{"line":43,"column":2},"end":{"line":45,"column":4}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":20}},"31":{"start":{"line":63,"column":0},"end":{"line":67,"column":1}},"32":{"start":{"line":64,"column":11},"end":{"line":64,"column":15}},"33":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"34":{"start":{"line":65,"column":31},"end":{"line":65,"column":57}},"35":{"start":{"line":66,"column":2},"end":{"line":66,"column":16}},"36":{"start":{"line":72,"column":0},"end":{"line":83,"column":1}},"37":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"38":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"39":{"start":{"line":77,"column":17},"end":{"line":77,"column":18}},"40":{"start":{"line":77,"column":24},"end":{"line":77,"column":32}},"41":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":62}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":10}},"44":{"start":{"line":82,"column":2},"end":{"line":82,"column":30}},"45":{"start":{"line":85,"column":0},"end":{"line":88,"column":1}},"46":{"start":{"line":86,"column":2},"end":{"line":86,"column":20}},"47":{"start":{"line":87,"column":2},"end":{"line":87,"column":28}},"48":{"start":{"line":94,"column":0},"end":{"line":94,"column":38}},"49":{"start":{"line":96,"column":0},"end":{"line":137,"column":1}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":59}},"51":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":27}},"53":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"54":{"start":{"line":106,"column":22},"end":{"line":106,"column":36}},"55":{"start":{"line":108,"column":6},"end":{"line":108,"column":34}},"56":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"57":{"start":{"line":109,"column":31},"end":{"line":109,"column":51}},"58":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"59":{"start":{"line":112,"column":6},"end":{"line":112,"column":17}},"60":{"start":{"line":113,"column":6},"end":{"line":113,"column":24}},"61":{"start":{"line":117,"column":15},"end":{"line":117,"column":19}},"62":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"63":{"start":{"line":118,"column":17},"end":{"line":118,"column":18}},"64":{"start":{"line":119,"column":6},"end":{"line":119,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"67":{"start":{"line":128,"column":8},"end":{"line":128,"column":26}},"68":{"start":{"line":129,"column":6},"end":{"line":129,"column":29}},"69":{"start":{"line":131,"column":6},"end":{"line":131,"column":30}},"70":{"start":{"line":132,"column":6},"end":{"line":132,"column":25}},"71":{"start":{"line":136,"column":2},"end":{"line":136,"column":22}},"72":{"start":{"line":140,"column":0},"end":{"line":285,"column":1}},"73":{"start":{"line":141,"column":15},"end":{"line":141,"column":31}},"74":{"start":{"line":142,"column":13},"end":{"line":142,"column":17}},"75":{"start":{"line":147,"column":13},"end":{"line":147,"column":18}},"76":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"77":{"start":{"line":150,"column":12},"end":{"line":150,"column":41}},"78":{"start":{"line":151,"column":4},"end":{"line":151,"column":21}},"79":{"start":{"line":152,"column":4},"end":{"line":152,"column":37}},"80":{"start":{"line":153,"column":4},"end":{"line":153,"column":37}},"81":{"start":{"line":154,"column":4},"end":{"line":154,"column":32}},"82":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"83":{"start":{"line":171,"column":6},"end":{"line":171,"column":23}},"84":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"85":{"start":{"line":173,"column":6},"end":{"line":173,"column":11}},"86":{"start":{"line":177,"column":6},"end":{"line":177,"column":32}},"87":{"start":{"line":178,"column":6},"end":{"line":183,"column":7}},"88":{"start":{"line":179,"column":8},"end":{"line":179,"column":41}},"89":{"start":{"line":180,"column":8},"end":{"line":182,"column":10}},"90":{"start":{"line":181,"column":10},"end":{"line":181,"column":43}},"91":{"start":{"line":184,"column":6},"end":{"line":184,"column":33}},"92":{"start":{"line":185,"column":6},"end":{"line":185,"column":17}},"93":{"start":{"line":186,"column":6},"end":{"line":186,"column":11}},"94":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"95":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"96":{"start":{"line":193,"column":8},"end":{"line":193,"column":37}},"97":{"start":{"line":195,"column":6},"end":{"line":195,"column":27}},"98":{"start":{"line":196,"column":6},"end":{"line":196,"column":17}},"99":{"start":{"line":197,"column":6},"end":{"line":197,"column":11}},"100":{"start":{"line":201,"column":6},"end":{"line":201,"column":29}},"101":{"start":{"line":202,"column":6},"end":{"line":205,"column":7}},"102":{"start":{"line":203,"column":8},"end":{"line":203,"column":45}},"103":{"start":{"line":204,"column":8},"end":{"line":204,"column":44}},"104":{"start":{"line":206,"column":6},"end":{"line":206,"column":25}},"105":{"start":{"line":207,"column":6},"end":{"line":207,"column":17}},"106":{"start":{"line":208,"column":6},"end":{"line":208,"column":11}},"107":{"start":{"line":213,"column":6},"end":{"line":213,"column":29}},"108":{"start":{"line":214,"column":6},"end":{"line":217,"column":7}},"109":{"start":{"line":215,"column":8},"end":{"line":215,"column":45}},"110":{"start":{"line":216,"column":8},"end":{"line":216,"column":40}},"111":{"start":{"line":218,"column":6},"end":{"line":218,"column":21}},"112":{"start":{"line":219,"column":6},"end":{"line":219,"column":17}},"113":{"start":{"line":220,"column":6},"end":{"line":220,"column":11}},"114":{"start":{"line":226,"column":6},"end":{"line":226,"column":23}},"115":{"start":{"line":227,"column":6},"end":{"line":227,"column":25}},"116":{"start":{"line":228,"column":6},"end":{"line":228,"column":11}},"117":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"118":{"start":{"line":233,"column":4},"end":{"line":233,"column":28}},"119":{"start":{"line":235,"column":17},"end":{"line":235,"column":29}},"120":{"start":{"line":236,"column":19},"end":{"line":236,"column":33}},"121":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"122":{"start":{"line":242,"column":2},"end":{"line":242,"column":49}},"123":{"start":{"line":243,"column":2},"end":{"line":243,"column":19}},"124":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"125":{"start":{"line":247,"column":4},"end":{"line":249,"column":6}},"126":{"start":{"line":248,"column":6},"end":{"line":248,"column":24}},"127":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"128":{"start":{"line":252,"column":13},"end":{"line":252,"column":35}},"129":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"130":{"start":{"line":255,"column":4},"end":{"line":255,"column":23}},"131":{"start":{"line":258,"column":2},"end":{"line":258,"column":21}},"132":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"133":{"start":{"line":261,"column":4},"end":{"line":261,"column":39}},"134":{"start":{"line":264,"column":11},"end":{"line":264,"column":15}},"135":{"start":{"line":266,"column":2},"end":{"line":268,"column":4}},"136":{"start":{"line":267,"column":4},"end":{"line":267,"column":14}},"137":{"start":{"line":270,"column":2},"end":{"line":272,"column":4}},"138":{"start":{"line":271,"column":4},"end":{"line":271,"column":15}},"139":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"140":{"start":{"line":275,"column":4},"end":{"line":275,"column":29}},"141":{"start":{"line":278,"column":2},"end":{"line":278,"column":22}},"142":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"143":{"start":{"line":282,"column":4},"end":{"line":282,"column":15}},"144":{"start":{"line":283,"column":4},"end":{"line":283,"column":22}}},"fnMap":{"0":{"name":"Parse","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":14}},"loc":{"start":{"line":27,"column":18},"end":{"line":58,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":25},"end":{"line":43,"column":26}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":24},"end":{"line":47,"column":25}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":51,"column":23},"end":{"line":51,"column":24}},"loc":{"start":{"line":51,"column":35},"end":{"line":53,"column":3}},"line":51},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":25},"end":{"line":55,"column":26}},"loc":{"start":{"line":55,"column":37},"end":{"line":57,"column":3}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":29},"end":{"line":63,"column":30}},"loc":{"start":{"line":63,"column":41},"end":{"line":67,"column":1}},"line":63},"6":{"name":"(anonymous_6)","decl":{"start":{"line":72,"column":24},"end":{"line":72,"column":25}},"loc":{"start":{"line":72,"column":37},"end":{"line":83,"column":1}},"line":72},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":22},"end":{"line":85,"column":23}},"loc":{"start":{"line":85,"column":35},"end":{"line":88,"column":1}},"line":85},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},"loc":{"start":{"line":94,"column":36},"end":{"line":94,"column":38}},"line":94},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":27},"end":{"line":96,"column":28}},"loc":{"start":{"line":96,"column":40},"end":{"line":137,"column":1}},"line":96},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":30},"end":{"line":140,"column":31}},"loc":{"start":{"line":140,"column":43},"end":{"line":285,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":178,"column":14},"end":{"line":178,"column":15}},"loc":{"start":{"line":178,"column":26},"end":{"line":183,"column":7}},"line":178},"12":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":42},"end":{"line":180,"column":43}},"loc":{"start":{"line":180,"column":55},"end":{"line":182,"column":9}},"line":180},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":14},"end":{"line":192,"column":15}},"loc":{"start":{"line":192,"column":26},"end":{"line":194,"column":7}},"line":192},"14":{"name":"(anonymous_14)","decl":{"start":{"line":202,"column":14},"end":{"line":202,"column":15}},"loc":{"start":{"line":202,"column":26},"end":{"line":205,"column":7}},"line":202},"15":{"name":"(anonymous_15)","decl":{"start":{"line":214,"column":14},"end":{"line":214,"column":15}},"loc":{"start":{"line":214,"column":26},"end":{"line":217,"column":7}},"line":214},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":21},"end":{"line":247,"column":22}},"loc":{"start":{"line":247,"column":34},"end":{"line":249,"column":5}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":266,"column":20},"end":{"line":266,"column":21}},"loc":{"start":{"line":266,"column":32},"end":{"line":268,"column":3}},"line":266},"18":{"name":"(anonymous_18)","decl":{"start":{"line":270,"column":21},"end":{"line":270,"column":22}},"loc":{"start":{"line":270,"column":33},"end":{"line":272,"column":3}},"line":270}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},{"start":{"line":29,"column":2},"end":{"line":29,"column":48}}],"line":29},"1":{"loc":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"type":"if","locations":[{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},{"start":{"line":65,"column":2},"end":{"line":65,"column":57}}],"line":65},"2":{"loc":{"start":{"line":65,"column":6},"end":{"line":65,"column":29}},"type":"binary-expr","locations":[{"start":{"line":65,"column":6},"end":{"line":65,"column":16}},{"start":{"line":65,"column":20},"end":{"line":65,"column":29}}],"line":65},"3":{"loc":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},{"start":{"line":73,"column":2},"end":{"line":81,"column":3}}],"line":73},"4":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},{"start":{"line":78,"column":6},"end":{"line":78,"column":62}}],"line":78},"5":{"loc":{"start":{"line":97,"column":9},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":9},"end":{"line":97,"column":10}},{"start":{"line":97,"column":14},"end":{"line":97,"column":30}}],"line":97},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},{"start":{"line":104,"column":2},"end":{"line":134,"column":3}}],"line":104},"7":{"loc":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},{"start":{"line":106,"column":4},"end":{"line":110,"column":5}}],"line":106},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},{"start":{"line":109,"column":6},"end":{"line":109,"column":51}}],"line":109},"9":{"loc":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},{"start":{"line":111,"column":4},"end":{"line":114,"column":5}}],"line":111},"10":{"loc":{"start":{"line":118,"column":20},"end":{"line":118,"column":35}},"type":"binary-expr","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":27}},{"start":{"line":118,"column":31},"end":{"line":118,"column":35}}],"line":118},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},{"start":{"line":126,"column":4},"end":{"line":133,"column":5}}],"line":126},"12":{"loc":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"type":"if","locations":[{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},{"start":{"line":127,"column":6},"end":{"line":128,"column":26}}],"line":127},"13":{"loc":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"type":"if","locations":[{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},{"start":{"line":149,"column":2},"end":{"line":155,"column":3}}],"line":149},"14":{"loc":{"start":{"line":149,"column":6},"end":{"line":149,"column":48}},"type":"binary-expr","locations":[{"start":{"line":149,"column":6},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":48}}],"line":149},"15":{"loc":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"type":"switch","locations":[{"start":{"line":158,"column":4},"end":{"line":158,"column":16}},{"start":{"line":159,"column":4},"end":{"line":159,"column":19}},{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},{"start":{"line":161,"column":4},"end":{"line":161,"column":24}},{"start":{"line":162,"column":4},"end":{"line":162,"column":27}},{"start":{"line":163,"column":4},"end":{"line":163,"column":23}},{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},{"start":{"line":166,"column":4},"end":{"line":166,"column":26}},{"start":{"line":167,"column":4},"end":{"line":173,"column":11}},{"start":{"line":175,"column":4},"end":{"line":186,"column":11}},{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},{"start":{"line":189,"column":4},"end":{"line":197,"column":11}},{"start":{"line":199,"column":4},"end":{"line":208,"column":11}},{"start":{"line":210,"column":4},"end":{"line":210,"column":31}},{"start":{"line":211,"column":4},"end":{"line":220,"column":11}},{"start":{"line":222,"column":4},"end":{"line":228,"column":11}}],"line":157},"16":{"loc":{"start":{"line":179,"column":23},"end":{"line":179,"column":41}},"type":"binary-expr","locations":[{"start":{"line":179,"column":23},"end":{"line":179,"column":35}},{"start":{"line":179,"column":39},"end":{"line":179,"column":41}}],"line":179},"17":{"loc":{"start":{"line":203,"column":25},"end":{"line":203,"column":45}},"type":"binary-expr","locations":[{"start":{"line":203,"column":25},"end":{"line":203,"column":39}},{"start":{"line":203,"column":43},"end":{"line":203,"column":45}}],"line":203},"18":{"loc":{"start":{"line":215,"column":25},"end":{"line":215,"column":45}},"type":"binary-expr","locations":[{"start":{"line":215,"column":25},"end":{"line":215,"column":39}},{"start":{"line":215,"column":43},"end":{"line":215,"column":45}}],"line":215},"19":{"loc":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"type":"if","locations":[{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},{"start":{"line":232,"column":2},"end":{"line":241,"column":3}}],"line":232},"20":{"loc":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"type":"if","locations":[{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},{"start":{"line":246,"column":2},"end":{"line":250,"column":3}}],"line":246},"21":{"loc":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},{"start":{"line":252,"column":2},"end":{"line":252,"column":35}}],"line":252},"22":{"loc":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"type":"if","locations":[{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},{"start":{"line":254,"column":2},"end":{"line":256,"column":3}}],"line":254},"23":{"loc":{"start":{"line":254,"column":6},"end":{"line":254,"column":58}},"type":"binary-expr","locations":[{"start":{"line":254,"column":6},"end":{"line":254,"column":27}},{"start":{"line":254,"column":31},"end":{"line":254,"column":58}}],"line":254},"24":{"loc":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"type":"if","locations":[{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},{"start":{"line":260,"column":2},"end":{"line":262,"column":3}}],"line":260},"25":{"loc":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"type":"if","locations":[{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},{"start":{"line":274,"column":2},"end":{"line":276,"column":3}}],"line":274},"26":{"loc":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"type":"if","locations":[{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},{"start":{"line":281,"column":2},"end":{"line":284,"column":3}}],"line":281}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":0,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":0,"25":1,"26":9,"27":1,"28":1,"29":1,"30":1,"31":1,"32":0,"33":0,"34":0,"35":0,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":9,"51":9,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":9,"62":9,"63":9,"64":1031,"65":9,"66":2,"67":1,"68":2,"69":7,"70":7,"71":9,"72":1,"73":7,"74":7,"75":7,"76":7,"77":0,"78":0,"79":0,"80":0,"81":0,"82":7,"83":7,"84":7,"85":7,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":7,"118":0,"119":7,"120":7,"121":7,"122":7,"123":7,"124":7,"125":7,"126":0,"127":7,"128":0,"129":7,"130":0,"131":7,"132":7,"133":0,"134":7,"135":7,"136":7,"137":7,"138":18,"139":7,"140":0,"141":7,"142":7,"143":7,"144":7},"f":{"0":1,"1":0,"2":9,"3":1,"4":1,"5":0,"6":1,"7":1,"8":20,"9":9,"10":7,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":7,"18":18},"b":{"0":[0,1],"1":[0,0],"2":[0,0],"3":[0,1],"4":[0,0],"5":[9,9],"6":[0,9],"7":[0,0],"8":[0,0],"9":[0,0],"10":[1040,1038],"11":[2,7],"12":[1,1],"13":[0,7],"14":[7,7],"15":[1,1,1,3,3,3,7,7,7,7,0,0,0,0,0,0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,7],"20":[7,0],"21":[0,7],"22":[0,7],"23":[7,1],"24":[0,7],"25":[0,7],"26":[7,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4a8f51a3a12b59eb69694618530032a813fbf8cb","contentHash":"d347e73abcd3109143efee20401d9f0bfc6d68a4a6323bd4559ada44c741786a"},"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/buffer-entry.js","statementMap":{"0":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}},"1":{"start":{"line":10,"column":15},"end":{"line":10,"column":34}},"2":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":30}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":44}},"5":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"6":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"7":{"start":{"line":18,"column":2},"end":{"line":20,"column":4}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"9":{"start":{"line":23,"column":0},"end":{"line":23,"column":28}},"10":{"start":{"line":26,"column":0},"end":{"line":30,"column":1}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":36}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":26}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":37}}},"fnMap":{"0":{"name":"BufferEntry","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":20}},"loc":{"start":{"line":13,"column":24},"end":{"line":21,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":29},"end":{"line":20,"column":3}},"line":18},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":30},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":43},"end":{"line":30,"column":1}},"line":26}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":1,"11":0,"12":0,"13":0},"f":{"0":0,"1":0,"2":0},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"d8ad66df900443c9c9d8aefe5fc126a55ba268ec","contentHash":"25e5b3c51e476fcffac7affa191a0ed0f54d64d3d3b760e887bd45ba08fffa65"},"/Users/isaacs/dev/js/tar/lib/extended-header.js":{"path":"/Users/isaacs/dev/js/tar/lib/extended-header.js","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"1":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"2":{"start":{"line":12,"column":15},"end":{"line":12,"column":34}},"3":{"start":{"line":13,"column":10},"end":{"line":13,"column":30}},"4":{"start":{"line":14,"column":14},"end":{"line":14,"column":25}},"5":{"start":{"line":15,"column":15},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":30}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":18}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":20}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"13":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"14":{"start":{"line":28,"column":2},"end":{"line":28,"column":19}},"15":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":16}},"17":{"start":{"line":33,"column":0},"end":{"line":33,"column":31}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":39}},"19":{"start":{"line":36,"column":8},"end":{"line":36,"column":9}},"20":{"start":{"line":37,"column":13},"end":{"line":37,"column":39}},"21":{"start":{"line":38,"column":11},"end":{"line":38,"column":28}},"22":{"start":{"line":39,"column":11},"end":{"line":39,"column":28}},"23":{"start":{"line":40,"column":11},"end":{"line":40,"column":28}},"24":{"start":{"line":41,"column":11},"end":{"line":41,"column":28}},"25":{"start":{"line":43,"column":0},"end":{"line":45,"column":2}},"26":{"start":{"line":44,"column":2},"end":{"line":44,"column":31}},"27":{"start":{"line":47,"column":0},"end":{"line":47,"column":16}},"28":{"start":{"line":50,"column":9},"end":{"line":50,"column":26}},"29":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"31":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"32":{"start":{"line":54,"column":8},"end":{"line":54,"column":25}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":25}},"34":{"start":{"line":56,"column":8},"end":{"line":56,"column":25}},"35":{"start":{"line":57,"column":12},"end":{"line":57,"column":29}},"36":{"start":{"line":58,"column":9},"end":{"line":58,"column":26}},"37":{"start":{"line":59,"column":9},"end":{"line":59,"column":27}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"39":{"start":{"line":62,"column":27},"end":{"line":62,"column":33}},"40":{"start":{"line":64,"column":2},"end":{"line":130,"column":3}},"41":{"start":{"line":64,"column":16},"end":{"line":64,"column":17}},"42":{"start":{"line":64,"column":23},"end":{"line":64,"column":31}},"43":{"start":{"line":69,"column":12},"end":{"line":69,"column":16}},"44":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"45":{"start":{"line":72,"column":6},"end":{"line":72,"column":53}},"46":{"start":{"line":73,"column":6},"end":{"line":73,"column":12}},"47":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"48":{"start":{"line":77,"column":16},"end":{"line":77,"column":22}},"49":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"50":{"start":{"line":82,"column":10},"end":{"line":82,"column":27}},"51":{"start":{"line":84,"column":10},"end":{"line":84,"column":73}},"52":{"start":{"line":85,"column":10},"end":{"line":85,"column":34}},"53":{"start":{"line":86,"column":10},"end":{"line":86,"column":18}},"54":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"55":{"start":{"line":89,"column":10},"end":{"line":89,"column":68}},"56":{"start":{"line":90,"column":10},"end":{"line":90,"column":16}},"57":{"start":{"line":92,"column":8},"end":{"line":92,"column":29}},"58":{"start":{"line":93,"column":8},"end":{"line":93,"column":16}},"59":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"60":{"start":{"line":98,"column":10},"end":{"line":98,"column":27}},"61":{"start":{"line":99,"column":10},"end":{"line":99,"column":57}},"62":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"63":{"start":{"line":100,"column":35},"end":{"line":100,"column":66}},"64":{"start":{"line":101,"column":10},"end":{"line":101,"column":33}},"65":{"start":{"line":102,"column":10},"end":{"line":102,"column":18}},"66":{"start":{"line":104,"column":8},"end":{"line":104,"column":28}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":16}},"68":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"69":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"70":{"start":{"line":112,"column":12},"end":{"line":112,"column":55}},"71":{"start":{"line":113,"column":12},"end":{"line":113,"column":18}},"72":{"start":{"line":115,"column":20},"end":{"line":115,"column":55}},"73":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"74":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"75":{"start":{"line":119,"column":10},"end":{"line":119,"column":38}},"76":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"77":{"start":{"line":122,"column":10},"end":{"line":122,"column":28}},"78":{"start":{"line":123,"column":10},"end":{"line":123,"column":25}},"79":{"start":{"line":124,"column":10},"end":{"line":124,"column":29}},"80":{"start":{"line":125,"column":10},"end":{"line":125,"column":18}},"81":{"start":{"line":127,"column":8},"end":{"line":127,"column":28}},"82":{"start":{"line":128,"column":8},"end":{"line":128,"column":16}},"83":{"start":{"line":134,"column":2},"end":{"line":136,"column":42}},"84":{"start":{"line":138,"column":2},"end":{"line":138,"column":15}},"85":{"start":{"line":139,"column":2},"end":{"line":139,"column":16}}},"fnMap":{"0":{"name":"ExtendedHeader","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":23}},"loc":{"start":{"line":19,"column":27},"end":{"line":31,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":28},"end":{"line":43,"column":29}},"loc":{"start":{"line":43,"column":41},"end":{"line":45,"column":1}},"line":43},"2":{"name":"parse","decl":{"start":{"line":61,"column":9},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":19},"end":{"line":131,"column":1}},"line":61},"3":{"name":"error","decl":{"start":{"line":133,"column":9},"end":{"line":133,"column":14}},"loc":{"start":{"line":133,"column":25},"end":{"line":140,"column":1}},"line":133}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},{"start":{"line":62,"column":2},"end":{"line":62,"column":33}}],"line":62},"1":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":54}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":23}},{"start":{"line":71,"column":27},"end":{"line":71,"column":54}}],"line":71},"3":{"loc":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"type":"switch","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":22}},{"start":{"line":79,"column":6},"end":{"line":93,"column":16}},{"start":{"line":95,"column":6},"end":{"line":105,"column":16}},{"start":{"line":107,"column":6},"end":{"line":128,"column":16}}],"line":76},"4":{"loc":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},{"start":{"line":81,"column":8},"end":{"line":87,"column":9}}],"line":81},"5":{"loc":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"type":"if","locations":[{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},{"start":{"line":88,"column":8},"end":{"line":91,"column":9}}],"line":88},"6":{"loc":{"start":{"line":88,"column":12},"end":{"line":88,"column":28}},"type":"binary-expr","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":18}},{"start":{"line":88,"column":22},"end":{"line":88,"column":28}}],"line":88},"7":{"loc":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},{"start":{"line":97,"column":8},"end":{"line":103,"column":9}}],"line":97},"8":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},{"start":{"line":100,"column":10},"end":{"line":100,"column":66}}],"line":100},"9":{"loc":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},{"start":{"line":109,"column":8},"end":{"line":126,"column":9}}],"line":109},"10":{"loc":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"type":"if","locations":[{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},{"start":{"line":111,"column":10},"end":{"line":114,"column":11}}],"line":111},"11":{"loc":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"type":"if","locations":[{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},{"start":{"line":116,"column":10},"end":{"line":118,"column":11}}],"line":116}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0},"f":{"0":0,"1":4,"2":0,"3":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0,0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"77cb382c69a46833a08275dbc55bf34db0dcd796","contentHash":"78a790af1726a774425fb478f1423068fe64414b747d89b597baf45139e7ae3d"},"/Users/isaacs/dev/js/tar/lib/extract.js":{"path":"/Users/isaacs/dev/js/tar/lib/extract.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":24}},"1":{"start":{"line":5,"column":10},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":14},"end":{"line":6,"column":32}},"3":{"start":{"line":7,"column":15},"end":{"line":7,"column":34}},"4":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":58}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"8":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"9":{"start":{"line":15,"column":4},"end":{"line":15,"column":25}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":25}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"15":{"start":{"line":25,"column":38},"end":{"line":25,"column":52}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"17":{"start":{"line":29,"column":2},"end":{"line":29,"column":14}},"18":{"start":{"line":30,"column":11},"end":{"line":30,"column":15}},"19":{"start":{"line":35,"column":2},"end":{"line":60,"column":4}},"20":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"21":{"start":{"line":39,"column":14},"end":{"line":39,"column":63}},"22":{"start":{"line":40,"column":6},"end":{"line":40,"column":39}},"23":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"24":{"start":{"line":42,"column":17},"end":{"line":42,"column":70}},"25":{"start":{"line":43,"column":8},"end":{"line":43,"column":50}},"26":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"27":{"start":{"line":47,"column":6},"end":{"line":48,"column":66}},"28":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"29":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"30":{"start":{"line":53,"column":21},"end":{"line":53,"column":41}},"31":{"start":{"line":54,"column":19},"end":{"line":54,"column":56}},"32":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"33":{"start":{"line":56,"column":8},"end":{"line":56,"column":65}},"34":{"start":{"line":58,"column":6},"end":{"line":58,"column":54}},"35":{"start":{"line":62,"column":2},"end":{"line":65,"column":4}},"36":{"start":{"line":63,"column":4},"end":{"line":63,"column":36}},"37":{"start":{"line":64,"column":4},"end":{"line":64,"column":15}},"38":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":25}},"40":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"41":{"start":{"line":72,"column":4},"end":{"line":72,"column":20}},"42":{"start":{"line":79,"column":2},"end":{"line":84,"column":4}},"43":{"start":{"line":81,"column":4},"end":{"line":81,"column":21}},"44":{"start":{"line":82,"column":4},"end":{"line":82,"column":18}},"45":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"46":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}},"47":{"start":{"line":89,"column":0},"end":{"line":94,"column":1}},"48":{"start":{"line":90,"column":11},"end":{"line":90,"column":15}},"49":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"50":{"start":{"line":91,"column":31},"end":{"line":91,"column":57}},"51":{"start":{"line":92,"column":2},"end":{"line":92,"column":15}}},"fnMap":{"0":{"name":"Extract","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":85,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":34},"end":{"line":60,"column":3}},"line":35},"2":{"name":"(anonymous_2)","decl":{"start":{"line":62,"column":24},"end":{"line":62,"column":25}},"loc":{"start":{"line":62,"column":36},"end":{"line":65,"column":3}},"line":62},"3":{"name":"(anonymous_3)","decl":{"start":{"line":67,"column":24},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":38},"end":{"line":69,"column":3}},"line":67},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":35},"end":{"line":73,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":24},"end":{"line":79,"column":25}},"loc":{"start":{"line":79,"column":36},"end":{"line":84,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":31},"end":{"line":89,"column":32}},"loc":{"start":{"line":89,"column":43},"end":{"line":94,"column":1}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},{"start":{"line":11,"column":2},"end":{"line":11,"column":58}}],"line":11},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"type":"binary-expr","locations":[{"start":{"line":19,"column":14},"end":{"line":19,"column":23}},{"start":{"line":19,"column":27},"end":{"line":19,"column":59}}],"line":19},"3":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},{"start":{"line":25,"column":2},"end":{"line":25,"column":52}}],"line":25},"4":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":36}},"type":"binary-expr","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":17}},{"start":{"line":25,"column":21},"end":{"line":25,"column":36}}],"line":25},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"6":{"loc":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},{"start":{"line":41,"column":6},"end":{"line":44,"column":7}}],"line":41},"7":{"loc":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}}],"line":46},"8":{"loc":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},{"start":{"line":51,"column":4},"end":{"line":59,"column":5}}],"line":51},"9":{"loc":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"type":"binary-expr","locations":[{"start":{"line":52,"column":15},"end":{"line":52,"column":39}},{"start":{"line":52,"column":43},"end":{"line":52,"column":45}}],"line":52},"10":{"loc":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},{"start":{"line":55,"column":6},"end":{"line":57,"column":7}}],"line":55},"11":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},{"start":{"line":91,"column":2},"end":{"line":91,"column":57}}],"line":91},"12":{"loc":{"start":{"line":91,"column":6},"end":{"line":91,"column":29}},"type":"binary-expr","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":16}},{"start":{"line":91,"column":20},"end":{"line":91,"column":29}}],"line":91}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":2,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":7,"21":0,"22":0,"23":0,"24":0,"25":0,"26":7,"27":0,"28":7,"29":2,"30":2,"31":2,"32":2,"33":1,"34":2,"35":1,"36":1,"37":1,"38":1,"39":0,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":0,"51":1},"f":{"0":2,"1":7,"2":1,"3":0,"4":1,"5":1,"6":1},"b":{"0":[1,1],"1":[1,0],"2":[1,0],"3":[1,0],"4":[1,0],"5":[0,7],"6":[0,0],"7":[0,7],"8":[2,5],"9":[2,0],"10":[1,1],"11":[0,1],"12":[1,1]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3fb9f60facc409fe944dc36bd2e14fc6153e403d","contentHash":"3d9485ca58c6c768b022a39d276296b53647ccf39986885459406e933921c962"}} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/37d58de4-deea-4808-bb77-d27685bd1501.json b/node_modules/tar/.nyc_output/37d58de4-deea-4808-bb77-d27685bd1501.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/node_modules/tar/.nyc_output/37d58de4-deea-4808-bb77-d27685bd1501.json
+++ /dev/null
@@ -1 +0,0 @@
-{} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json b/node_modules/tar/.nyc_output/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/node_modules/tar/.nyc_output/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json
+++ /dev/null
@@ -1 +0,0 @@
-{} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json b/node_modules/tar/.nyc_output/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json
deleted file mode 100644
index 268ab6e..0000000
--- a/node_modules/tar/.nyc_output/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json
+++ /dev/null
@@ -1 +0,0 @@
-{"/Users/isaacs/dev/js/tar/lib/pack.js":{"path":"/Users/isaacs/dev/js/tar/lib/pack.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"1":{"start":{"line":6,"column":18},"end":{"line":6,"column":46}},"2":{"start":{"line":7,"column":13},"end":{"line":7,"column":37}},"3":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"4":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"5":{"start":{"line":10,"column":25},"end":{"line":10,"column":61}},"6":{"start":{"line":11,"column":14},"end":{"line":11,"column":40}},"7":{"start":{"line":12,"column":10},"end":{"line":12,"column":25}},"8":{"start":{"line":14,"column":0},"end":{"line":14,"column":41}},"9":{"start":{"line":14,"column":13},"end":{"line":14,"column":14}},"10":{"start":{"line":14,"column":31},"end":{"line":14,"column":41}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":22}},"12":{"start":{"line":20,"column":11},"end":{"line":20,"column":15}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"14":{"start":{"line":21,"column":29},"end":{"line":21,"column":51}},"15":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"16":{"start":{"line":23,"column":13},"end":{"line":23,"column":52}},"17":{"start":{"line":24,"column":7},"end":{"line":24,"column":32}},"18":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"19":{"start":{"line":28,"column":2},"end":{"line":28,"column":20}},"20":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"21":{"start":{"line":30,"column":2},"end":{"line":30,"column":17}},"22":{"start":{"line":32,"column":2},"end":{"line":32,"column":25}},"23":{"start":{"line":33,"column":2},"end":{"line":33,"column":24}},"24":{"start":{"line":35,"column":2},"end":{"line":35,"column":21}},"25":{"start":{"line":36,"column":2},"end":{"line":43,"column":4}},"26":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"27":{"start":{"line":37,"column":35},"end":{"line":37,"column":41}},"28":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"29":{"start":{"line":39,"column":4},"end":{"line":41,"column":6}},"30":{"start":{"line":40,"column":6},"end":{"line":40,"column":25}},"31":{"start":{"line":42,"column":4},"end":{"line":42,"column":15}},"32":{"start":{"line":46,"column":0},"end":{"line":57,"column":1}},"33":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"34":{"start":{"line":48,"column":23},"end":{"line":48,"column":29}},"35":{"start":{"line":49,"column":2},"end":{"line":49,"column":24}},"36":{"start":{"line":51,"column":11},"end":{"line":51,"column":15}},"37":{"start":{"line":52,"column":2},"end":{"line":56,"column":10}},"38":{"start":{"line":54,"column":6},"end":{"line":54,"column":24}},"39":{"start":{"line":59,"column":0},"end":{"line":69,"column":1}},"40":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"41":{"start":{"line":60,"column":40},"end":{"line":60,"column":68}},"42":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"43":{"start":{"line":62,"column":19},"end":{"line":62,"column":72}},"44":{"start":{"line":64,"column":2},"end":{"line":64,"column":17}},"45":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"46":{"start":{"line":66,"column":2},"end":{"line":66,"column":17}},"47":{"start":{"line":67,"column":2},"end":{"line":67,"column":43}},"48":{"start":{"line":68,"column":2},"end":{"line":68,"column":25}},"49":{"start":{"line":71,"column":0},"end":{"line":75,"column":1}},"50":{"start":{"line":72,"column":2},"end":{"line":72,"column":21}},"51":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"52":{"start":{"line":73,"column":26},"end":{"line":73,"column":52}},"53":{"start":{"line":74,"column":2},"end":{"line":74,"column":20}},"54":{"start":{"line":77,"column":0},"end":{"line":82,"column":1}},"55":{"start":{"line":78,"column":2},"end":{"line":78,"column":22}},"56":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"57":{"start":{"line":79,"column":26},"end":{"line":79,"column":53}},"58":{"start":{"line":80,"column":2},"end":{"line":80,"column":21}},"59":{"start":{"line":81,"column":2},"end":{"line":81,"column":17}},"60":{"start":{"line":84,"column":0},"end":{"line":88,"column":1}},"61":{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},"62":{"start":{"line":86,"column":2},"end":{"line":86,"column":24}},"63":{"start":{"line":87,"column":2},"end":{"line":87,"column":17}},"64":{"start":{"line":90,"column":0},"end":{"line":233,"column":1}},"65":{"start":{"line":91,"column":11},"end":{"line":91,"column":15}},"66":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"67":{"start":{"line":93,"column":4},"end":{"line":93,"column":10}},"68":{"start":{"line":96,"column":14},"end":{"line":96,"column":32}},"69":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"70":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"71":{"start":{"line":100,"column":6},"end":{"line":100,"column":22}},"72":{"start":{"line":102,"column":4},"end":{"line":102,"column":10}},"73":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"74":{"start":{"line":107,"column":4},"end":{"line":107,"column":29}},"75":{"start":{"line":108,"column":4},"end":{"line":111,"column":6}},"76":{"start":{"line":110,"column":6},"end":{"line":110,"column":19}},"77":{"start":{"line":112,"column":4},"end":{"line":112,"column":10}},"78":{"start":{"line":115,"column":2},"end":{"line":115,"column":23}},"79":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"80":{"start":{"line":119,"column":4},"end":{"line":119,"column":24}},"81":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"82":{"start":{"line":121,"column":4},"end":{"line":121,"column":18}},"83":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"84":{"start":{"line":123,"column":4},"end":{"line":123,"column":10}},"85":{"start":{"line":134,"column":13},"end":{"line":134,"column":53}},"86":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"87":{"start":{"line":137,"column":4},"end":{"line":137,"column":27}},"88":{"start":{"line":140,"column":15},"end":{"line":140,"column":17}},"89":{"start":{"line":142,"column":2},"end":{"line":144,"column":4}},"90":{"start":{"line":143,"column":4},"end":{"line":143,"column":30}},"91":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"92":{"start":{"line":146,"column":25},"end":{"line":146,"column":52}},"93":{"start":{"line":148,"column":2},"end":{"line":148,"column":53}},"94":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"95":{"start":{"line":152,"column":4},"end":{"line":152,"column":49}},"96":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"97":{"start":{"line":156,"column":4},"end":{"line":156,"column":29}},"98":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"99":{"start":{"line":161,"column":6},"end":{"line":161,"column":12}},"100":{"start":{"line":164,"column":6},"end":{"line":164,"column":24}},"101":{"start":{"line":165,"column":6},"end":{"line":165,"column":21}},"102":{"start":{"line":166,"column":6},"end":{"line":166,"column":11}},"103":{"start":{"line":169,"column":15},"end":{"line":169,"column":69}},"104":{"start":{"line":170,"column":6},"end":{"line":170,"column":54}},"105":{"start":{"line":171,"column":6},"end":{"line":171,"column":21}},"106":{"start":{"line":172,"column":6},"end":{"line":172,"column":11}},"107":{"start":{"line":175,"column":15},"end":{"line":175,"column":69}},"108":{"start":{"line":176,"column":6},"end":{"line":176,"column":74}},"109":{"start":{"line":177,"column":6},"end":{"line":177,"column":21}},"110":{"start":{"line":178,"column":6},"end":{"line":178,"column":11}},"111":{"start":{"line":187,"column":15},"end":{"line":187,"column":53}},"112":{"start":{"line":189,"column":2},"end":{"line":189,"column":20}},"113":{"start":{"line":195,"column":2},"end":{"line":197,"column":4}},"114":{"start":{"line":196,"column":4},"end":{"line":196,"column":22}},"115":{"start":{"line":199,"column":2},"end":{"line":205,"column":4}},"116":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"117":{"start":{"line":201,"column":6},"end":{"line":201,"column":50}},"118":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"119":{"start":{"line":204,"column":33},"end":{"line":204,"column":44}},"120":{"start":{"line":206,"column":2},"end":{"line":206,"column":31}},"121":{"start":{"line":208,"column":14},"end":{"line":208,"column":19}},"122":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"123":{"start":{"line":210,"column":15},"end":{"line":210,"column":21}},"124":{"start":{"line":211,"column":4},"end":{"line":211,"column":16}},"125":{"start":{"line":215,"column":4},"end":{"line":215,"column":27}},"126":{"start":{"line":216,"column":4},"end":{"line":216,"column":26}},"127":{"start":{"line":217,"column":4},"end":{"line":217,"column":17}},"128":{"start":{"line":220,"column":2},"end":{"line":223,"column":4}},"129":{"start":{"line":222,"column":4},"end":{"line":222,"column":24}},"130":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"131":{"start":{"line":229,"column":4},"end":{"line":229,"column":21}},"132":{"start":{"line":232,"column":2},"end":{"line":232,"column":20}},"133":{"start":{"line":235,"column":0},"end":{"line":235,"column":39}},"134":{"start":{"line":236,"column":0},"end":{"line":236,"column":37}}},"fnMap":{"0":{"name":"Pack","decl":{"start":{"line":18,"column":9},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":22},"end":{"line":44,"column":1}},"line":18},"1":{"name":"(anonymous_1)","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":31},"end":{"line":43,"column":3}},"line":36},"2":{"name":"(anonymous_2)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":30},"end":{"line":41,"column":5}},"line":39},"3":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":28}},"loc":{"start":{"line":46,"column":44},"end":{"line":57,"column":1}},"line":46},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":29},"end":{"line":55,"column":5}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":39},"end":{"line":69,"column":1}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":23},"end":{"line":71,"column":24}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":77,"column":24},"end":{"line":77,"column":25}},"loc":{"start":{"line":77,"column":36},"end":{"line":82,"column":1}},"line":77},"8":{"name":"(anonymous_8)","decl":{"start":{"line":84,"column":21},"end":{"line":84,"column":22}},"loc":{"start":{"line":84,"column":33},"end":{"line":88,"column":1}},"line":84},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":26},"end":{"line":90,"column":27}},"loc":{"start":{"line":90,"column":38},"end":{"line":233,"column":1}},"line":90},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":22},"end":{"line":108,"column":23}},"loc":{"start":{"line":108,"column":34},"end":{"line":111,"column":5}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":142,"column":41},"end":{"line":142,"column":42}},"loc":{"start":{"line":142,"column":54},"end":{"line":144,"column":3}},"line":142},"12":{"name":"(anonymous_12)","decl":{"start":{"line":195,"column":20},"end":{"line":195,"column":21}},"loc":{"start":{"line":195,"column":33},"end":{"line":197,"column":3}},"line":195},"13":{"name":"(anonymous_13)","decl":{"start":{"line":199,"column":22},"end":{"line":199,"column":23}},"loc":{"start":{"line":199,"column":34},"end":{"line":205,"column":3}},"line":199},"14":{"name":"(anonymous_14)","decl":{"start":{"line":200,"column":30},"end":{"line":200,"column":31}},"loc":{"start":{"line":200,"column":42},"end":{"line":202,"column":5}},"line":200},"15":{"name":"nextEntry","decl":{"start":{"line":209,"column":11},"end":{"line":209,"column":20}},"loc":{"start":{"line":209,"column":24},"end":{"line":218,"column":3}},"line":209},"16":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":21},"end":{"line":220,"column":22}},"loc":{"start":{"line":220,"column":35},"end":{"line":223,"column":3}},"line":220},"17":{"name":"(anonymous_17)","decl":{"start":{"line":235,"column":25},"end":{"line":235,"column":26}},"loc":{"start":{"line":235,"column":37},"end":{"line":235,"column":39}},"line":235},"18":{"name":"(anonymous_18)","decl":{"start":{"line":236,"column":23},"end":{"line":236,"column":24}},"loc":{"start":{"line":236,"column":35},"end":{"line":236,"column":37}},"line":236}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},{"start":{"line":21,"column":2},"end":{"line":21,"column":51}}],"line":21},"1":{"loc":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},{"start":{"line":23,"column":2},"end":{"line":24,"column":32}}],"line":23},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},{"start":{"line":37,"column":4},"end":{"line":37,"column":41}}],"line":37},"3":{"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},{"start":{"line":48,"column":2},"end":{"line":48,"column":29}}],"line":48},"4":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},{"start":{"line":60,"column":2},"end":{"line":60,"column":68}}],"line":60},"5":{"loc":{"start":{"line":60,"column":6},"end":{"line":60,"column":38}},"type":"binary-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":18}},{"start":{"line":60,"column":22},"end":{"line":60,"column":38}}],"line":60},"6":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},{"start":{"line":62,"column":2},"end":{"line":62,"column":72}}],"line":62},"7":{"loc":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},{"start":{"line":73,"column":2},"end":{"line":73,"column":52}}],"line":73},"8":{"loc":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},{"start":{"line":79,"column":2},"end":{"line":79,"column":53}}],"line":79},"9":{"loc":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},{"start":{"line":92,"column":2},"end":{"line":94,"column":3}}],"line":92},"10":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":34}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":16}},{"start":{"line":92,"column":20},"end":{"line":92,"column":34}}],"line":92},"11":{"loc":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},{"start":{"line":98,"column":2},"end":{"line":103,"column":3}}],"line":98},"12":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{"line":99,"column":4},"end":{"line":101,"column":5}}],"line":99},"13":{"loc":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},{"start":{"line":105,"column":2},"end":{"line":113,"column":3}}],"line":105},"14":{"loc":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"type":"if","locations":[{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},{"start":{"line":117,"column":2},"end":{"line":124,"column":3}}],"line":117},"15":{"loc":{"start":{"line":134,"column":27},"end":{"line":134,"column":46}},"type":"binary-expr","locations":[{"start":{"line":134,"column":27},"end":{"line":134,"column":37}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}],"line":134},"16":{"loc":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},{"start":{"line":135,"column":2},"end":{"line":138,"column":3}}],"line":135},"17":{"loc":{"start":{"line":135,"column":6},"end":{"line":135,"column":72}},"type":"binary-expr","locations":[{"start":{"line":135,"column":6},"end":{"line":135,"column":16}},{"start":{"line":135,"column":20},"end":{"line":135,"column":39}},{"start":{"line":135,"column":43},"end":{"line":135,"column":53}},{"start":{"line":135,"column":57},"end":{"line":135,"column":72}}],"line":135},"18":{"loc":{"start":{"line":142,"column":14},"end":{"line":142,"column":31}},"type":"binary-expr","locations":[{"start":{"line":142,"column":14},"end":{"line":142,"column":25}},{"start":{"line":142,"column":29},"end":{"line":142,"column":31}}],"line":142},"19":{"loc":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"type":"if","locations":[{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},{"start":{"line":146,"column":2},"end":{"line":146,"column":52}}],"line":146},"20":{"loc":{"start":{"line":148,"column":36},"end":{"line":148,"column":52}},"type":"binary-expr","locations":[{"start":{"line":148,"column":36},"end":{"line":148,"column":46}},{"start":{"line":148,"column":50},"end":{"line":148,"column":52}}],"line":148},"21":{"loc":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"type":"if","locations":[{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},{"start":{"line":151,"column":2},"end":{"line":153,"column":3}}],"line":151},"22":{"loc":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"type":"if","locations":[{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},{"start":{"line":155,"column":2},"end":{"line":156,"column":29}}],"line":155},"23":{"loc":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"type":"switch","locations":[{"start":{"line":160,"column":4},"end":{"line":161,"column":12}},{"start":{"line":163,"column":4},"end":{"line":166,"column":11}},{"start":{"line":168,"column":4},"end":{"line":172,"column":11}},{"start":{"line":174,"column":4},"end":{"line":178,"column":11}}],"line":158},"24":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":54}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},{"start":{"line":170,"column":51},"end":{"line":170,"column":54}}],"line":170},"25":{"loc":{"start":{"line":176,"column":24},"end":{"line":176,"column":74}},"type":"binary-expr","locations":[{"start":{"line":176,"column":24},"end":{"line":176,"column":67}},{"start":{"line":176,"column":71},"end":{"line":176,"column":74}}],"line":176},"26":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},{"start":{"line":204,"column":4},"end":{"line":204,"column":44}}],"line":204},"27":{"loc":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},{"start":{"line":210,"column":4},"end":{"line":210,"column":21}}],"line":210},"28":{"loc":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},{"start":{"line":227,"column":2},"end":{"line":230,"column":3}}],"line":227}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":512,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":1,"50":0,"51":0,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0,0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"8beb16ccde52e484aa1dd87f5ece33d696c808ab","contentHash":"7bb2b7ebe1111c0deefbf9a61d17bf9d2dbe951adb585db96f9d89663ce5909d"},"/Users/isaacs/dev/js/tar/lib/entry-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":16},"end":{"line":4,"column":38}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":34}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":37}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":29}},"9":{"start":{"line":15,"column":11},"end":{"line":15,"column":15}},"10":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":33}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":20}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":35}},"16":{"start":{"line":28,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"18":{"start":{"line":32,"column":2},"end":{"line":34,"column":4}},"19":{"start":{"line":33,"column":4},"end":{"line":33,"column":20}},"20":{"start":{"line":36,"column":2},"end":{"line":39,"column":4}},"21":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"22":{"start":{"line":38,"column":4},"end":{"line":38,"column":20}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":18}},"24":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":18}},"26":{"start":{"line":45,"column":2},"end":{"line":45,"column":25}},"27":{"start":{"line":46,"column":2},"end":{"line":46,"column":23}},"28":{"start":{"line":47,"column":2},"end":{"line":47,"column":22}},"29":{"start":{"line":49,"column":2},"end":{"line":49,"column":17}},"30":{"start":{"line":50,"column":2},"end":{"line":50,"column":23}},"31":{"start":{"line":51,"column":2},"end":{"line":51,"column":18}},"32":{"start":{"line":53,"column":2},"end":{"line":55,"column":4}},"33":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"34":{"start":{"line":58,"column":0},"end":{"line":65,"column":1}},"35":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"36":{"start":{"line":60,"column":19},"end":{"line":60,"column":74}},"37":{"start":{"line":61,"column":2},"end":{"line":61,"column":22}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":17}},"39":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"40":{"start":{"line":64,"column":2},"end":{"line":64,"column":25}},"41":{"start":{"line":67,"column":0},"end":{"line":74,"column":1}},"42":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"43":{"start":{"line":69,"column":9},"end":{"line":69,"column":29}},"44":{"start":{"line":70,"column":2},"end":{"line":70,"column":24}},"45":{"start":{"line":71,"column":2},"end":{"line":71,"column":20}},"46":{"start":{"line":72,"column":2},"end":{"line":72,"column":17}},"47":{"start":{"line":73,"column":2},"end":{"line":73,"column":43}},"48":{"start":{"line":76,"column":0},"end":{"line":80,"column":1}},"49":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"50":{"start":{"line":79,"column":2},"end":{"line":79,"column":20}},"51":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"52":{"start":{"line":84,"column":2},"end":{"line":84,"column":22}},"53":{"start":{"line":85,"column":2},"end":{"line":85,"column":21}},"54":{"start":{"line":86,"column":2},"end":{"line":86,"column":17}},"55":{"start":{"line":89,"column":0},"end":{"line":98,"column":1}},"56":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"57":{"start":{"line":91,"column":20},"end":{"line":91,"column":69}},"58":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"59":{"start":{"line":95,"column":20},"end":{"line":95,"column":30}},"60":{"start":{"line":97,"column":2},"end":{"line":97,"column":31}},"61":{"start":{"line":100,"column":0},"end":{"line":126,"column":1}},"62":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"63":{"start":{"line":102,"column":23},"end":{"line":102,"column":29}},"64":{"start":{"line":103,"column":2},"end":{"line":103,"column":24}},"65":{"start":{"line":105,"column":20},"end":{"line":105,"column":48}},"66":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"67":{"start":{"line":108,"column":13},"end":{"line":108,"column":17}},"68":{"start":{"line":110,"column":4},"end":{"line":111,"column":44}},"69":{"start":{"line":113,"column":4},"end":{"line":120,"column":12}},"70":{"start":{"line":115,"column":8},"end":{"line":115,"column":26}},"71":{"start":{"line":118,"column":8},"end":{"line":118,"column":28}},"72":{"start":{"line":124,"column":2},"end":{"line":124,"column":32}},"73":{"start":{"line":125,"column":2},"end":{"line":125,"column":21}},"74":{"start":{"line":128,"column":0},"end":{"line":167,"column":1}},"75":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"76":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"77":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"78":{"start":{"line":136,"column":4},"end":{"line":136,"column":10}},"79":{"start":{"line":139,"column":2},"end":{"line":139,"column":25}},"80":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"81":{"start":{"line":142,"column":2},"end":{"line":159,"column":3}},"82":{"start":{"line":142,"column":15},"end":{"line":142,"column":16}},"83":{"start":{"line":145,"column":12},"end":{"line":145,"column":18}},"84":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"85":{"start":{"line":147,"column":19},"end":{"line":147,"column":37}},"86":{"start":{"line":148,"column":9},"end":{"line":148,"column":30}},"87":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"88":{"start":{"line":152,"column":6},"end":{"line":152,"column":30}},"89":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"90":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"91":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"92":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"93":{"start":{"line":162,"column":2},"end":{"line":162,"column":25}},"94":{"start":{"line":163,"column":2},"end":{"line":163,"column":26}},"95":{"start":{"line":166,"column":2},"end":{"line":166,"column":20}},"96":{"start":{"line":169,"column":0},"end":{"line":169,"column":46}}},"fnMap":{"0":{"name":"EntryWriter","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":20}},"loc":{"start":{"line":14,"column":29},"end":{"line":56,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":37},"end":{"line":30,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":25},"end":{"line":32,"column":26}},"loc":{"start":{"line":32,"column":37},"end":{"line":34,"column":3}},"line":32},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":23},"end":{"line":36,"column":24}},"loc":{"start":{"line":36,"column":35},"end":{"line":39,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":28},"end":{"line":55,"column":3}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":30},"end":{"line":58,"column":31}},"loc":{"start":{"line":58,"column":43},"end":{"line":65,"column":1}},"line":58},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":28},"end":{"line":67,"column":29}},"loc":{"start":{"line":67,"column":41},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":30},"end":{"line":76,"column":31}},"loc":{"start":{"line":76,"column":42},"end":{"line":80,"column":1}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":31},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":43},"end":{"line":87,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":89,"column":28},"end":{"line":89,"column":29}},"loc":{"start":{"line":89,"column":45},"end":{"line":98,"column":1}},"line":89},"10":{"name":"(anonymous_10)","decl":{"start":{"line":100,"column":32},"end":{"line":100,"column":33}},"loc":{"start":{"line":100,"column":44},"end":{"line":126,"column":1}},"line":100},"11":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":18},"end":{"line":114,"column":19}},"loc":{"start":{"line":114,"column":31},"end":{"line":116,"column":7}},"line":114},"12":{"name":"(anonymous_12)","decl":{"start":{"line":117,"column":19},"end":{"line":117,"column":20}},"loc":{"start":{"line":117,"column":33},"end":{"line":119,"column":7}},"line":117},"13":{"name":"(anonymous_13)","decl":{"start":{"line":128,"column":33},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":45},"end":{"line":167,"column":1}},"line":128},"14":{"name":"(anonymous_14)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":44},"end":{"line":169,"column":46}},"line":169}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"1":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"2":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},{"start":{"line":60,"column":2},"end":{"line":60,"column":74}}],"line":60},"3":{"loc":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},{"start":{"line":69,"column":2},"end":{"line":69,"column":29}}],"line":69},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},{"start":{"line":91,"column":2},"end":{"line":91,"column":69}}],"line":91},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},{"start":{"line":95,"column":2},"end":{"line":95,"column":30}}],"line":95},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},{"start":{"line":102,"column":2},"end":{"line":102,"column":29}}],"line":102},"7":{"loc":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},{"start":{"line":107,"column":2},"end":{"line":121,"column":3}}],"line":107},"8":{"loc":{"start":{"line":107,"column":6},"end":{"line":107,"column":44}},"type":"binary-expr","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":44}}],"line":107},"9":{"loc":{"start":{"line":110,"column":27},"end":{"line":111,"column":44}},"type":"binary-expr","locations":[{"start":{"line":110,"column":27},"end":{"line":110,"column":47}},{"start":{"line":111,"column":6},"end":{"line":111,"column":44}}],"line":110},"10":{"loc":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"type":"if","locations":[{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},{"start":{"line":130,"column":2},"end":{"line":132,"column":3}}],"line":130},"11":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":37}},"type":"binary-expr","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":22}},{"start":{"line":130,"column":26},"end":{"line":130,"column":37}}],"line":130},"12":{"loc":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"type":"if","locations":[{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},{"start":{"line":134,"column":2},"end":{"line":137,"column":3}}],"line":134},"13":{"loc":{"start":{"line":134,"column":6},"end":{"line":134,"column":38}},"type":"binary-expr","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":18}},{"start":{"line":134,"column":22},"end":{"line":134,"column":38}}],"line":134},"14":{"loc":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},{"start":{"line":147,"column":4},"end":{"line":148,"column":30}}],"line":147},"15":{"loc":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},{"start":{"line":150,"column":4},"end":{"line":158,"column":5}}],"line":150},"16":{"loc":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},{"start":{"line":153,"column":6},"end":{"line":156,"column":7}}],"line":153}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":0,"50":0,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":1,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3e169418508e031df78186ff63b5fa5aa2484ab8","contentHash":"84191ed4732b6763ae8701256051735aebbe5e95c932c15bef34da01b33ba1a0"},"/Users/isaacs/dev/js/tar/lib/entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry.js","statementMap":{"0":{"start":{"line":7,"column":0},"end":{"line":7,"column":22}},"1":{"start":{"line":9,"column":16},"end":{"line":9,"column":38}},"2":{"start":{"line":10,"column":10},"end":{"line":10,"column":27}},"3":{"start":{"line":11,"column":13},"end":{"line":11,"column":33}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":37}},"5":{"start":{"line":13,"column":15},"end":{"line":13,"column":34}},"6":{"start":{"line":14,"column":14},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":22}},"9":{"start":{"line":19,"column":2},"end":{"line":19,"column":22}},"10":{"start":{"line":21,"column":2},"end":{"line":21,"column":25}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":22}},"12":{"start":{"line":23,"column":2},"end":{"line":23,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":21}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"17":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"18":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"19":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"20":{"start":{"line":32,"column":2},"end":{"line":32,"column":36}},"21":{"start":{"line":34,"column":2},"end":{"line":34,"column":17}},"22":{"start":{"line":35,"column":2},"end":{"line":35,"column":23}},"23":{"start":{"line":36,"column":2},"end":{"line":36,"column":33}},"24":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"25":{"start":{"line":41,"column":11},"end":{"line":41,"column":15}},"26":{"start":{"line":42,"column":2},"end":{"line":44,"column":4}},"27":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"28":{"start":{"line":46,"column":2},"end":{"line":46,"column":18}},"29":{"start":{"line":49,"column":0},"end":{"line":49,"column":23}},"30":{"start":{"line":51,"column":0},"end":{"line":78,"column":1}},"31":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"32":{"start":{"line":52,"column":20},"end":{"line":52,"column":65}},"33":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"34":{"start":{"line":54,"column":4},"end":{"line":54,"column":40}},"35":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"36":{"start":{"line":60,"column":4},"end":{"line":60,"column":35}},"37":{"start":{"line":62,"column":2},"end":{"line":62,"column":29}},"38":{"start":{"line":65,"column":11},"end":{"line":65,"column":25}},"39":{"start":{"line":66,"column":2},"end":{"line":66,"column":21}},"40":{"start":{"line":67,"column":2},"end":{"line":67,"column":19}},"41":{"start":{"line":69,"column":2},"end":{"line":69,"column":14}},"42":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"43":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"44":{"start":{"line":74,"column":4},"end":{"line":74,"column":16}},"45":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}},"46":{"start":{"line":80,"column":0},"end":{"line":84,"column":1}},"47":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"48":{"start":{"line":81,"column":9},"end":{"line":81,"column":22}},"49":{"start":{"line":82,"column":2},"end":{"line":82,"column":21}},"50":{"start":{"line":83,"column":2},"end":{"line":83,"column":14}},"51":{"start":{"line":86,"column":0},"end":{"line":89,"column":1}},"52":{"start":{"line":87,"column":2},"end":{"line":87,"column":21}},"53":{"start":{"line":88,"column":2},"end":{"line":88,"column":20}},"54":{"start":{"line":91,"column":0},"end":{"line":97,"column":1}},"55":{"start":{"line":93,"column":2},"end":{"line":93,"column":21}},"56":{"start":{"line":94,"column":2},"end":{"line":94,"column":22}},"57":{"start":{"line":95,"column":2},"end":{"line":95,"column":14}},"58":{"start":{"line":96,"column":2},"end":{"line":96,"column":41}},"59":{"start":{"line":100,"column":0},"end":{"line":139,"column":1}},"60":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"61":{"start":{"line":103,"column":52},"end":{"line":103,"column":58}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":22}},"63":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"64":{"start":{"line":111,"column":16},"end":{"line":111,"column":43}},"65":{"start":{"line":112,"column":4},"end":{"line":112,"column":28}},"66":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"67":{"start":{"line":117,"column":4},"end":{"line":117,"column":57}},"68":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"69":{"start":{"line":119,"column":6},"end":{"line":119,"column":29}},"70":{"start":{"line":120,"column":6},"end":{"line":120,"column":24}},"71":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"72":{"start":{"line":123,"column":6},"end":{"line":123,"column":24}},"73":{"start":{"line":124,"column":6},"end":{"line":124,"column":22}},"74":{"start":{"line":130,"column":12},"end":{"line":130,"column":29}},"75":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"76":{"start":{"line":132,"column":4},"end":{"line":132,"column":36}},"77":{"start":{"line":133,"column":4},"end":{"line":133,"column":22}},"78":{"start":{"line":134,"column":4},"end":{"line":134,"column":25}},"79":{"start":{"line":135,"column":4},"end":{"line":135,"column":40}},"80":{"start":{"line":138,"column":2},"end":{"line":138,"column":23}},"81":{"start":{"line":141,"column":0},"end":{"line":211,"column":1}},"82":{"start":{"line":143,"column":15},"end":{"line":143,"column":27}},"83":{"start":{"line":144,"column":17},"end":{"line":144,"column":31}},"84":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}},"85":{"start":{"line":146,"column":14},"end":{"line":146,"column":24}},"86":{"start":{"line":149,"column":15},"end":{"line":149,"column":25}},"87":{"start":{"line":150,"column":2},"end":{"line":154,"column":3}},"88":{"start":{"line":150,"column":15},"end":{"line":150,"column":16}},"89":{"start":{"line":151,"column":16},"end":{"line":151,"column":25}},"90":{"start":{"line":152,"column":14},"end":{"line":152,"column":27}},"91":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"92":{"start":{"line":153,"column":36},"end":{"line":153,"column":54}},"93":{"start":{"line":158,"column":3},"end":{"line":165,"column":3}},"94":{"start":{"line":159,"column":4},"end":{"line":161,"column":6}},"95":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"96":{"start":{"line":160,"column":39},"end":{"line":160,"column":54}},"97":{"start":{"line":165,"column":3},"end":{"line":173,"column":3}},"98":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"99":{"start":{"line":167,"column":6},"end":{"line":167,"column":40}},"100":{"start":{"line":173,"column":3},"end":{"line":177,"column":4}},"101":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"102":{"start":{"line":175,"column":6},"end":{"line":175,"column":42}},"103":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"104":{"start":{"line":184,"column":6},"end":{"line":184,"column":19}},"105":{"start":{"line":185,"column":6},"end":{"line":185,"column":11}},"106":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"107":{"start":{"line":189,"column":6},"end":{"line":189,"column":11}},"108":{"start":{"line":192,"column":6},"end":{"line":192,"column":22}},"109":{"start":{"line":193,"column":6},"end":{"line":193,"column":11}},"110":{"start":{"line":202,"column":6},"end":{"line":202,"column":34}},"111":{"start":{"line":205,"column":2},"end":{"line":205,"column":18}},"112":{"start":{"line":206,"column":2},"end":{"line":206,"column":24}},"113":{"start":{"line":207,"column":2},"end":{"line":207,"column":24}},"114":{"start":{"line":210,"column":2},"end":{"line":210,"column":30}},"115":{"start":{"line":215,"column":0},"end":{"line":217,"column":1}},"116":{"start":{"line":216,"column":2},"end":{"line":216,"column":20}},"117":{"start":{"line":219,"column":0},"end":{"line":219,"column":35}},"118":{"start":{"line":220,"column":0},"end":{"line":220,"column":37}}},"fnMap":{"0":{"name":"Entry","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":14}},"loc":{"start":{"line":16,"column":42},"end":{"line":47,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":36},"end":{"line":42,"column":37}},"loc":{"start":{"line":42,"column":49},"end":{"line":44,"column":3}},"line":42},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":24},"end":{"line":51,"column":25}},"loc":{"start":{"line":51,"column":37},"end":{"line":78,"column":1}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":80,"column":22},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":84,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":86,"column":24},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":36},"end":{"line":89,"column":1}},"line":86},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":25},"end":{"line":91,"column":26}},"loc":{"start":{"line":91,"column":37},"end":{"line":97,"column":1}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":24},"end":{"line":100,"column":25}},"loc":{"start":{"line":100,"column":36},"end":{"line":139,"column":1}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":28},"end":{"line":141,"column":29}},"loc":{"start":{"line":141,"column":40},"end":{"line":211,"column":1}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":158,"column":30},"end":{"line":158,"column":31}},"loc":{"start":{"line":158,"column":43},"end":{"line":162,"column":3}},"line":158},"9":{"name":"(anonymous_9)","decl":{"start":{"line":159,"column":27},"end":{"line":159,"column":28}},"loc":{"start":{"line":159,"column":40},"end":{"line":161,"column":5}},"line":159},"10":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":32},"end":{"line":165,"column":33}},"loc":{"start":{"line":165,"column":45},"end":{"line":169,"column":3}},"line":165},"11":{"name":"(anonymous_11)","decl":{"start":{"line":173,"column":39},"end":{"line":173,"column":40}},"loc":{"start":{"line":173,"column":52},"end":{"line":177,"column":3}},"line":173},"12":{"name":"(anonymous_12)","decl":{"start":{"line":215,"column":24},"end":{"line":215,"column":25}},"loc":{"start":{"line":215,"column":34},"end":{"line":217,"column":1}},"line":215}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":19},"end":{"line":36,"column":33}},"type":"binary-expr","locations":[{"start":{"line":36,"column":19},"end":{"line":36,"column":27}},{"start":{"line":36,"column":31},"end":{"line":36,"column":33}}],"line":36},"1":{"loc":{"start":{"line":42,"column":14},"end":{"line":42,"column":26}},"type":"binary-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":20}},{"start":{"line":42,"column":24},"end":{"line":42,"column":26}}],"line":42},"2":{"loc":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},{"start":{"line":52,"column":2},"end":{"line":52,"column":65}}],"line":52},"3":{"loc":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},{"start":{"line":53,"column":2},"end":{"line":55,"column":3}}],"line":53},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"6":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":28}}],"line":72},"7":{"loc":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},{"start":{"line":81,"column":2},"end":{"line":81,"column":22}}],"line":81},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},{"start":{"line":103,"column":2},"end":{"line":103,"column":58}}],"line":103},"9":{"loc":{"start":{"line":103,"column":6},"end":{"line":103,"column":50}},"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":18}},{"start":{"line":103,"column":22},"end":{"line":103,"column":35}},{"start":{"line":103,"column":39},"end":{"line":103,"column":50}}],"line":103},"10":{"loc":{"start":{"line":110,"column":9},"end":{"line":110,"column":54}},"type":"binary-expr","locations":[{"start":{"line":110,"column":9},"end":{"line":110,"column":37}},{"start":{"line":110,"column":41},"end":{"line":110,"column":54}}],"line":110},"11":{"loc":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},{"start":{"line":116,"column":2},"end":{"line":126,"column":3}}],"line":116},"12":{"loc":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},{"start":{"line":118,"column":4},"end":{"line":121,"column":5}}],"line":118},"13":{"loc":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},{"start":{"line":122,"column":4},"end":{"line":125,"column":5}}],"line":122},"14":{"loc":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},{"start":{"line":131,"column":2},"end":{"line":136,"column":3}}],"line":131},"15":{"loc":{"start":{"line":131,"column":6},"end":{"line":131,"column":45}},"type":"binary-expr","locations":[{"start":{"line":131,"column":6},"end":{"line":131,"column":26}},{"start":{"line":131,"column":30},"end":{"line":131,"column":45}}],"line":131},"16":{"loc":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},{"start":{"line":153,"column":4},"end":{"line":153,"column":54}}],"line":153},"17":{"loc":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"type":"if","locations":[{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},{"start":{"line":160,"column":6},"end":{"line":160,"column":54}}],"line":160},"18":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}],"line":166},"19":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{"line":174,"column":4},"end":{"line":176,"column":5}}],"line":174},"20":{"loc":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"type":"switch","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":19}},{"start":{"line":183,"column":4},"end":{"line":185,"column":11}},{"start":{"line":187,"column":4},"end":{"line":189,"column":11}},{"start":{"line":191,"column":4},"end":{"line":193,"column":11}},{"start":{"line":195,"column":4},"end":{"line":195,"column":16}},{"start":{"line":196,"column":4},"end":{"line":196,"column":24}},{"start":{"line":197,"column":4},"end":{"line":197,"column":27}},{"start":{"line":198,"column":4},"end":{"line":198,"column":23}},{"start":{"line":199,"column":4},"end":{"line":199,"column":21}},{"start":{"line":200,"column":4},"end":{"line":200,"column":16}},{"start":{"line":201,"column":4},"end":{"line":202,"column":34}}],"line":181}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":3,"8":3,"9":3,"10":3,"11":3,"12":3,"13":3,"14":3,"15":3,"16":3,"17":3,"18":3,"19":3,"20":3,"21":3,"22":3,"23":3,"24":3,"25":3,"26":3,"27":0,"28":3,"29":1,"30":1,"31":8,"32":0,"33":8,"34":0,"35":8,"36":2,"37":8,"38":8,"39":8,"40":8,"41":8,"42":8,"43":8,"44":8,"45":0,"46":1,"47":2,"48":0,"49":2,"50":2,"51":1,"52":3,"53":3,"54":1,"55":7,"56":7,"57":7,"58":7,"59":1,"60":17,"61":12,"62":5,"63":5,"64":8,"65":8,"66":5,"67":5,"68":5,"69":3,"70":3,"71":5,"72":2,"73":2,"74":5,"75":5,"76":0,"77":0,"78":0,"79":0,"80":5,"81":1,"82":3,"83":3,"84":3,"85":3,"86":3,"87":3,"88":3,"89":51,"90":51,"91":51,"92":48,"93":3,"94":6,"95":0,"96":0,"97":3,"98":6,"99":6,"100":3,"101":9,"102":3,"103":3,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":3,"111":3,"112":3,"113":3,"114":3,"115":1,"116":0,"117":1,"118":1},"f":{"0":3,"1":0,"2":8,"3":2,"4":3,"5":7,"6":17,"7":3,"8":6,"9":0,"10":6,"11":9,"12":0},"b":{"0":[3,3],"1":[3,3],"2":[0,8],"3":[0,8],"4":[2,6],"5":[8,0],"6":[8,0],"7":[0,2],"8":[12,5],"9":[17,7,7],"10":[13,8],"11":[5,0],"12":[3,2],"13":[2,3],"14":[0,5],"15":[5,0],"16":[48,3],"17":[0,0],"18":[6,0],"19":[3,6],"20":[0,0,0,0,0,0,0,0,0,0,3]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"2cc4f925db2a60e89bf0743124faec4e8996dfdb","contentHash":"245d5cb2b23d975dc5b9a0ed2553c93c587727d50a7961242f50cec333c04ba9"},"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/global-header-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":65}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":34}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"4":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":40}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}}},"fnMap":{"0":{"name":"GlobalHeaderWriter","decl":{"start":{"line":8,"column":9},"end":{"line":8,"column":27}},"loc":{"start":{"line":8,"column":36},"end":{"line":14,"column":1}},"line":8}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0},"f":{"0":0},"b":{"0":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3d0c8589f62a5c8ccec606d52d3abd98e5627d57","contentHash":"a2570ca840cf3e44d77e15af0aee52f7c145da39b76366006f3672b9708def3e"},"/Users/isaacs/dev/js/tar/lib/parse.js":{"path":"/Users/isaacs/dev/js/tar/lib/parse.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"1":{"start":{"line":8,"column":13},"end":{"line":8,"column":30}},"2":{"start":{"line":9,"column":13},"end":{"line":9,"column":26}},"3":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":30}},"5":{"start":{"line":12,"column":16},"end":{"line":12,"column":38}},"6":{"start":{"line":13,"column":12},"end":{"line":13,"column":33}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":46}},"8":{"start":{"line":15,"column":21},"end":{"line":15,"column":52}},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":33}},"10":{"start":{"line":17,"column":15},"end":{"line":17,"column":34}},"11":{"start":{"line":18,"column":14},"end":{"line":18,"column":32}},"12":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}},"13":{"start":{"line":28,"column":11},"end":{"line":28,"column":15}},"14":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"15":{"start":{"line":29,"column":30},"end":{"line":29,"column":48}},"16":{"start":{"line":34,"column":2},"end":{"line":34,"column":18}},"17":{"start":{"line":36,"column":2},"end":{"line":36,"column":20}},"18":{"start":{"line":37,"column":2},"end":{"line":37,"column":20}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":35}},"20":{"start":{"line":39,"column":2},"end":{"line":39,"column":17}},"21":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"22":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"23":{"start":{"line":43,"column":2},"end":{"line":45,"column":4}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":20}},"31":{"start":{"line":63,"column":0},"end":{"line":67,"column":1}},"32":{"start":{"line":64,"column":11},"end":{"line":64,"column":15}},"33":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"34":{"start":{"line":65,"column":31},"end":{"line":65,"column":57}},"35":{"start":{"line":66,"column":2},"end":{"line":66,"column":16}},"36":{"start":{"line":72,"column":0},"end":{"line":83,"column":1}},"37":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"38":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"39":{"start":{"line":77,"column":17},"end":{"line":77,"column":18}},"40":{"start":{"line":77,"column":24},"end":{"line":77,"column":32}},"41":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":62}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":10}},"44":{"start":{"line":82,"column":2},"end":{"line":82,"column":30}},"45":{"start":{"line":85,"column":0},"end":{"line":88,"column":1}},"46":{"start":{"line":86,"column":2},"end":{"line":86,"column":20}},"47":{"start":{"line":87,"column":2},"end":{"line":87,"column":28}},"48":{"start":{"line":94,"column":0},"end":{"line":94,"column":38}},"49":{"start":{"line":96,"column":0},"end":{"line":137,"column":1}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":59}},"51":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":27}},"53":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"54":{"start":{"line":106,"column":22},"end":{"line":106,"column":36}},"55":{"start":{"line":108,"column":6},"end":{"line":108,"column":34}},"56":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"57":{"start":{"line":109,"column":31},"end":{"line":109,"column":51}},"58":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"59":{"start":{"line":112,"column":6},"end":{"line":112,"column":17}},"60":{"start":{"line":113,"column":6},"end":{"line":113,"column":24}},"61":{"start":{"line":117,"column":15},"end":{"line":117,"column":19}},"62":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"63":{"start":{"line":118,"column":17},"end":{"line":118,"column":18}},"64":{"start":{"line":119,"column":6},"end":{"line":119,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"67":{"start":{"line":128,"column":8},"end":{"line":128,"column":26}},"68":{"start":{"line":129,"column":6},"end":{"line":129,"column":29}},"69":{"start":{"line":131,"column":6},"end":{"line":131,"column":30}},"70":{"start":{"line":132,"column":6},"end":{"line":132,"column":25}},"71":{"start":{"line":136,"column":2},"end":{"line":136,"column":22}},"72":{"start":{"line":140,"column":0},"end":{"line":285,"column":1}},"73":{"start":{"line":141,"column":15},"end":{"line":141,"column":31}},"74":{"start":{"line":142,"column":13},"end":{"line":142,"column":17}},"75":{"start":{"line":147,"column":13},"end":{"line":147,"column":18}},"76":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"77":{"start":{"line":150,"column":12},"end":{"line":150,"column":41}},"78":{"start":{"line":151,"column":4},"end":{"line":151,"column":21}},"79":{"start":{"line":152,"column":4},"end":{"line":152,"column":37}},"80":{"start":{"line":153,"column":4},"end":{"line":153,"column":37}},"81":{"start":{"line":154,"column":4},"end":{"line":154,"column":32}},"82":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"83":{"start":{"line":171,"column":6},"end":{"line":171,"column":23}},"84":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"85":{"start":{"line":173,"column":6},"end":{"line":173,"column":11}},"86":{"start":{"line":177,"column":6},"end":{"line":177,"column":32}},"87":{"start":{"line":178,"column":6},"end":{"line":183,"column":7}},"88":{"start":{"line":179,"column":8},"end":{"line":179,"column":41}},"89":{"start":{"line":180,"column":8},"end":{"line":182,"column":10}},"90":{"start":{"line":181,"column":10},"end":{"line":181,"column":43}},"91":{"start":{"line":184,"column":6},"end":{"line":184,"column":33}},"92":{"start":{"line":185,"column":6},"end":{"line":185,"column":17}},"93":{"start":{"line":186,"column":6},"end":{"line":186,"column":11}},"94":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"95":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"96":{"start":{"line":193,"column":8},"end":{"line":193,"column":37}},"97":{"start":{"line":195,"column":6},"end":{"line":195,"column":27}},"98":{"start":{"line":196,"column":6},"end":{"line":196,"column":17}},"99":{"start":{"line":197,"column":6},"end":{"line":197,"column":11}},"100":{"start":{"line":201,"column":6},"end":{"line":201,"column":29}},"101":{"start":{"line":202,"column":6},"end":{"line":205,"column":7}},"102":{"start":{"line":203,"column":8},"end":{"line":203,"column":45}},"103":{"start":{"line":204,"column":8},"end":{"line":204,"column":44}},"104":{"start":{"line":206,"column":6},"end":{"line":206,"column":25}},"105":{"start":{"line":207,"column":6},"end":{"line":207,"column":17}},"106":{"start":{"line":208,"column":6},"end":{"line":208,"column":11}},"107":{"start":{"line":213,"column":6},"end":{"line":213,"column":29}},"108":{"start":{"line":214,"column":6},"end":{"line":217,"column":7}},"109":{"start":{"line":215,"column":8},"end":{"line":215,"column":45}},"110":{"start":{"line":216,"column":8},"end":{"line":216,"column":40}},"111":{"start":{"line":218,"column":6},"end":{"line":218,"column":21}},"112":{"start":{"line":219,"column":6},"end":{"line":219,"column":17}},"113":{"start":{"line":220,"column":6},"end":{"line":220,"column":11}},"114":{"start":{"line":226,"column":6},"end":{"line":226,"column":23}},"115":{"start":{"line":227,"column":6},"end":{"line":227,"column":25}},"116":{"start":{"line":228,"column":6},"end":{"line":228,"column":11}},"117":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"118":{"start":{"line":233,"column":4},"end":{"line":233,"column":28}},"119":{"start":{"line":235,"column":17},"end":{"line":235,"column":29}},"120":{"start":{"line":236,"column":19},"end":{"line":236,"column":33}},"121":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"122":{"start":{"line":242,"column":2},"end":{"line":242,"column":49}},"123":{"start":{"line":243,"column":2},"end":{"line":243,"column":19}},"124":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"125":{"start":{"line":247,"column":4},"end":{"line":249,"column":6}},"126":{"start":{"line":248,"column":6},"end":{"line":248,"column":24}},"127":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"128":{"start":{"line":252,"column":13},"end":{"line":252,"column":35}},"129":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"130":{"start":{"line":255,"column":4},"end":{"line":255,"column":23}},"131":{"start":{"line":258,"column":2},"end":{"line":258,"column":21}},"132":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"133":{"start":{"line":261,"column":4},"end":{"line":261,"column":39}},"134":{"start":{"line":264,"column":11},"end":{"line":264,"column":15}},"135":{"start":{"line":266,"column":2},"end":{"line":268,"column":4}},"136":{"start":{"line":267,"column":4},"end":{"line":267,"column":14}},"137":{"start":{"line":270,"column":2},"end":{"line":272,"column":4}},"138":{"start":{"line":271,"column":4},"end":{"line":271,"column":15}},"139":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"140":{"start":{"line":275,"column":4},"end":{"line":275,"column":29}},"141":{"start":{"line":278,"column":2},"end":{"line":278,"column":22}},"142":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"143":{"start":{"line":282,"column":4},"end":{"line":282,"column":15}},"144":{"start":{"line":283,"column":4},"end":{"line":283,"column":22}}},"fnMap":{"0":{"name":"Parse","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":14}},"loc":{"start":{"line":27,"column":18},"end":{"line":58,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":25},"end":{"line":43,"column":26}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":24},"end":{"line":47,"column":25}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":51,"column":23},"end":{"line":51,"column":24}},"loc":{"start":{"line":51,"column":35},"end":{"line":53,"column":3}},"line":51},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":25},"end":{"line":55,"column":26}},"loc":{"start":{"line":55,"column":37},"end":{"line":57,"column":3}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":29},"end":{"line":63,"column":30}},"loc":{"start":{"line":63,"column":41},"end":{"line":67,"column":1}},"line":63},"6":{"name":"(anonymous_6)","decl":{"start":{"line":72,"column":24},"end":{"line":72,"column":25}},"loc":{"start":{"line":72,"column":37},"end":{"line":83,"column":1}},"line":72},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":22},"end":{"line":85,"column":23}},"loc":{"start":{"line":85,"column":35},"end":{"line":88,"column":1}},"line":85},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},"loc":{"start":{"line":94,"column":36},"end":{"line":94,"column":38}},"line":94},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":27},"end":{"line":96,"column":28}},"loc":{"start":{"line":96,"column":40},"end":{"line":137,"column":1}},"line":96},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":30},"end":{"line":140,"column":31}},"loc":{"start":{"line":140,"column":43},"end":{"line":285,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":178,"column":14},"end":{"line":178,"column":15}},"loc":{"start":{"line":178,"column":26},"end":{"line":183,"column":7}},"line":178},"12":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":42},"end":{"line":180,"column":43}},"loc":{"start":{"line":180,"column":55},"end":{"line":182,"column":9}},"line":180},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":14},"end":{"line":192,"column":15}},"loc":{"start":{"line":192,"column":26},"end":{"line":194,"column":7}},"line":192},"14":{"name":"(anonymous_14)","decl":{"start":{"line":202,"column":14},"end":{"line":202,"column":15}},"loc":{"start":{"line":202,"column":26},"end":{"line":205,"column":7}},"line":202},"15":{"name":"(anonymous_15)","decl":{"start":{"line":214,"column":14},"end":{"line":214,"column":15}},"loc":{"start":{"line":214,"column":26},"end":{"line":217,"column":7}},"line":214},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":21},"end":{"line":247,"column":22}},"loc":{"start":{"line":247,"column":34},"end":{"line":249,"column":5}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":266,"column":20},"end":{"line":266,"column":21}},"loc":{"start":{"line":266,"column":32},"end":{"line":268,"column":3}},"line":266},"18":{"name":"(anonymous_18)","decl":{"start":{"line":270,"column":21},"end":{"line":270,"column":22}},"loc":{"start":{"line":270,"column":33},"end":{"line":272,"column":3}},"line":270}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},{"start":{"line":29,"column":2},"end":{"line":29,"column":48}}],"line":29},"1":{"loc":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"type":"if","locations":[{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},{"start":{"line":65,"column":2},"end":{"line":65,"column":57}}],"line":65},"2":{"loc":{"start":{"line":65,"column":6},"end":{"line":65,"column":29}},"type":"binary-expr","locations":[{"start":{"line":65,"column":6},"end":{"line":65,"column":16}},{"start":{"line":65,"column":20},"end":{"line":65,"column":29}}],"line":65},"3":{"loc":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},{"start":{"line":73,"column":2},"end":{"line":81,"column":3}}],"line":73},"4":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},{"start":{"line":78,"column":6},"end":{"line":78,"column":62}}],"line":78},"5":{"loc":{"start":{"line":97,"column":9},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":9},"end":{"line":97,"column":10}},{"start":{"line":97,"column":14},"end":{"line":97,"column":30}}],"line":97},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},{"start":{"line":104,"column":2},"end":{"line":134,"column":3}}],"line":104},"7":{"loc":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},{"start":{"line":106,"column":4},"end":{"line":110,"column":5}}],"line":106},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},{"start":{"line":109,"column":6},"end":{"line":109,"column":51}}],"line":109},"9":{"loc":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},{"start":{"line":111,"column":4},"end":{"line":114,"column":5}}],"line":111},"10":{"loc":{"start":{"line":118,"column":20},"end":{"line":118,"column":35}},"type":"binary-expr","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":27}},{"start":{"line":118,"column":31},"end":{"line":118,"column":35}}],"line":118},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},{"start":{"line":126,"column":4},"end":{"line":133,"column":5}}],"line":126},"12":{"loc":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"type":"if","locations":[{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},{"start":{"line":127,"column":6},"end":{"line":128,"column":26}}],"line":127},"13":{"loc":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"type":"if","locations":[{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},{"start":{"line":149,"column":2},"end":{"line":155,"column":3}}],"line":149},"14":{"loc":{"start":{"line":149,"column":6},"end":{"line":149,"column":48}},"type":"binary-expr","locations":[{"start":{"line":149,"column":6},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":48}}],"line":149},"15":{"loc":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"type":"switch","locations":[{"start":{"line":158,"column":4},"end":{"line":158,"column":16}},{"start":{"line":159,"column":4},"end":{"line":159,"column":19}},{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},{"start":{"line":161,"column":4},"end":{"line":161,"column":24}},{"start":{"line":162,"column":4},"end":{"line":162,"column":27}},{"start":{"line":163,"column":4},"end":{"line":163,"column":23}},{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},{"start":{"line":166,"column":4},"end":{"line":166,"column":26}},{"start":{"line":167,"column":4},"end":{"line":173,"column":11}},{"start":{"line":175,"column":4},"end":{"line":186,"column":11}},{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},{"start":{"line":189,"column":4},"end":{"line":197,"column":11}},{"start":{"line":199,"column":4},"end":{"line":208,"column":11}},{"start":{"line":210,"column":4},"end":{"line":210,"column":31}},{"start":{"line":211,"column":4},"end":{"line":220,"column":11}},{"start":{"line":222,"column":4},"end":{"line":228,"column":11}}],"line":157},"16":{"loc":{"start":{"line":179,"column":23},"end":{"line":179,"column":41}},"type":"binary-expr","locations":[{"start":{"line":179,"column":23},"end":{"line":179,"column":35}},{"start":{"line":179,"column":39},"end":{"line":179,"column":41}}],"line":179},"17":{"loc":{"start":{"line":203,"column":25},"end":{"line":203,"column":45}},"type":"binary-expr","locations":[{"start":{"line":203,"column":25},"end":{"line":203,"column":39}},{"start":{"line":203,"column":43},"end":{"line":203,"column":45}}],"line":203},"18":{"loc":{"start":{"line":215,"column":25},"end":{"line":215,"column":45}},"type":"binary-expr","locations":[{"start":{"line":215,"column":25},"end":{"line":215,"column":39}},{"start":{"line":215,"column":43},"end":{"line":215,"column":45}}],"line":215},"19":{"loc":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"type":"if","locations":[{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},{"start":{"line":232,"column":2},"end":{"line":241,"column":3}}],"line":232},"20":{"loc":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"type":"if","locations":[{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},{"start":{"line":246,"column":2},"end":{"line":250,"column":3}}],"line":246},"21":{"loc":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},{"start":{"line":252,"column":2},"end":{"line":252,"column":35}}],"line":252},"22":{"loc":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"type":"if","locations":[{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},{"start":{"line":254,"column":2},"end":{"line":256,"column":3}}],"line":254},"23":{"loc":{"start":{"line":254,"column":6},"end":{"line":254,"column":58}},"type":"binary-expr","locations":[{"start":{"line":254,"column":6},"end":{"line":254,"column":27}},{"start":{"line":254,"column":31},"end":{"line":254,"column":58}}],"line":254},"24":{"loc":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"type":"if","locations":[{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},{"start":{"line":260,"column":2},"end":{"line":262,"column":3}}],"line":260},"25":{"loc":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"type":"if","locations":[{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},{"start":{"line":274,"column":2},"end":{"line":276,"column":3}}],"line":274},"26":{"loc":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"type":"if","locations":[{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},{"start":{"line":281,"column":2},"end":{"line":284,"column":3}}],"line":281}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":0,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":0,"25":1,"26":11,"27":1,"28":0,"29":1,"30":1,"31":1,"32":0,"33":0,"34":0,"35":0,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":1,"46":0,"47":0,"48":1,"49":1,"50":11,"51":11,"52":8,"53":8,"54":8,"55":0,"56":0,"57":0,"58":8,"59":2,"60":2,"61":3,"62":3,"63":3,"64":3,"65":3,"66":0,"67":0,"68":0,"69":3,"70":3,"71":11,"72":1,"73":3,"74":3,"75":3,"76":3,"77":0,"78":0,"79":0,"80":0,"81":0,"82":3,"83":3,"84":3,"85":3,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":3,"118":0,"119":3,"120":3,"121":3,"122":3,"123":3,"124":3,"125":3,"126":8,"127":3,"128":0,"129":3,"130":0,"131":3,"132":3,"133":0,"134":3,"135":3,"136":3,"137":3,"138":7,"139":3,"140":0,"141":3,"142":3,"143":0,"144":0},"f":{"0":1,"1":0,"2":11,"3":0,"4":1,"5":0,"6":1,"7":0,"8":8,"9":11,"10":3,"11":0,"12":0,"13":0,"14":0,"15":0,"16":8,"17":3,"18":7},"b":{"0":[0,1],"1":[0,0],"2":[0,0],"3":[0,1],"4":[0,0],"5":[11,11],"6":[8,3],"7":[8,0],"8":[0,0],"9":[2,6],"10":[6,6],"11":[0,3],"12":[0,0],"13":[0,3],"14":[3,3],"15":[3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,3],"20":[3,0],"21":[0,3],"22":[0,3],"23":[3,3],"24":[0,3],"25":[0,3],"26":[0,3]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4a8f51a3a12b59eb69694618530032a813fbf8cb","contentHash":"d347e73abcd3109143efee20401d9f0bfc6d68a4a6323bd4559ada44c741786a"},"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/buffer-entry.js","statementMap":{"0":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}},"1":{"start":{"line":10,"column":15},"end":{"line":10,"column":34}},"2":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":30}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":44}},"5":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"6":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"7":{"start":{"line":18,"column":2},"end":{"line":20,"column":4}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"9":{"start":{"line":23,"column":0},"end":{"line":23,"column":28}},"10":{"start":{"line":26,"column":0},"end":{"line":30,"column":1}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":36}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":26}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":37}}},"fnMap":{"0":{"name":"BufferEntry","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":20}},"loc":{"start":{"line":13,"column":24},"end":{"line":21,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":29},"end":{"line":20,"column":3}},"line":18},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":30},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":43},"end":{"line":30,"column":1}},"line":26}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":1,"11":0,"12":0,"13":0},"f":{"0":0,"1":0,"2":0},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"d8ad66df900443c9c9d8aefe5fc126a55ba268ec","contentHash":"25e5b3c51e476fcffac7affa191a0ed0f54d64d3d3b760e887bd45ba08fffa65"},"/Users/isaacs/dev/js/tar/lib/extended-header.js":{"path":"/Users/isaacs/dev/js/tar/lib/extended-header.js","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"1":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"2":{"start":{"line":12,"column":15},"end":{"line":12,"column":34}},"3":{"start":{"line":13,"column":10},"end":{"line":13,"column":30}},"4":{"start":{"line":14,"column":14},"end":{"line":14,"column":25}},"5":{"start":{"line":15,"column":15},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":30}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":18}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":20}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"13":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"14":{"start":{"line":28,"column":2},"end":{"line":28,"column":19}},"15":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":16}},"17":{"start":{"line":33,"column":0},"end":{"line":33,"column":31}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":39}},"19":{"start":{"line":36,"column":8},"end":{"line":36,"column":9}},"20":{"start":{"line":37,"column":13},"end":{"line":37,"column":39}},"21":{"start":{"line":38,"column":11},"end":{"line":38,"column":28}},"22":{"start":{"line":39,"column":11},"end":{"line":39,"column":28}},"23":{"start":{"line":40,"column":11},"end":{"line":40,"column":28}},"24":{"start":{"line":41,"column":11},"end":{"line":41,"column":28}},"25":{"start":{"line":43,"column":0},"end":{"line":45,"column":2}},"26":{"start":{"line":44,"column":2},"end":{"line":44,"column":31}},"27":{"start":{"line":47,"column":0},"end":{"line":47,"column":16}},"28":{"start":{"line":50,"column":9},"end":{"line":50,"column":26}},"29":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"31":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"32":{"start":{"line":54,"column":8},"end":{"line":54,"column":25}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":25}},"34":{"start":{"line":56,"column":8},"end":{"line":56,"column":25}},"35":{"start":{"line":57,"column":12},"end":{"line":57,"column":29}},"36":{"start":{"line":58,"column":9},"end":{"line":58,"column":26}},"37":{"start":{"line":59,"column":9},"end":{"line":59,"column":27}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"39":{"start":{"line":62,"column":27},"end":{"line":62,"column":33}},"40":{"start":{"line":64,"column":2},"end":{"line":130,"column":3}},"41":{"start":{"line":64,"column":16},"end":{"line":64,"column":17}},"42":{"start":{"line":64,"column":23},"end":{"line":64,"column":31}},"43":{"start":{"line":69,"column":12},"end":{"line":69,"column":16}},"44":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"45":{"start":{"line":72,"column":6},"end":{"line":72,"column":53}},"46":{"start":{"line":73,"column":6},"end":{"line":73,"column":12}},"47":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"48":{"start":{"line":77,"column":16},"end":{"line":77,"column":22}},"49":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"50":{"start":{"line":82,"column":10},"end":{"line":82,"column":27}},"51":{"start":{"line":84,"column":10},"end":{"line":84,"column":73}},"52":{"start":{"line":85,"column":10},"end":{"line":85,"column":34}},"53":{"start":{"line":86,"column":10},"end":{"line":86,"column":18}},"54":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"55":{"start":{"line":89,"column":10},"end":{"line":89,"column":68}},"56":{"start":{"line":90,"column":10},"end":{"line":90,"column":16}},"57":{"start":{"line":92,"column":8},"end":{"line":92,"column":29}},"58":{"start":{"line":93,"column":8},"end":{"line":93,"column":16}},"59":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"60":{"start":{"line":98,"column":10},"end":{"line":98,"column":27}},"61":{"start":{"line":99,"column":10},"end":{"line":99,"column":57}},"62":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"63":{"start":{"line":100,"column":35},"end":{"line":100,"column":66}},"64":{"start":{"line":101,"column":10},"end":{"line":101,"column":33}},"65":{"start":{"line":102,"column":10},"end":{"line":102,"column":18}},"66":{"start":{"line":104,"column":8},"end":{"line":104,"column":28}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":16}},"68":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"69":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"70":{"start":{"line":112,"column":12},"end":{"line":112,"column":55}},"71":{"start":{"line":113,"column":12},"end":{"line":113,"column":18}},"72":{"start":{"line":115,"column":20},"end":{"line":115,"column":55}},"73":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"74":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"75":{"start":{"line":119,"column":10},"end":{"line":119,"column":38}},"76":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"77":{"start":{"line":122,"column":10},"end":{"line":122,"column":28}},"78":{"start":{"line":123,"column":10},"end":{"line":123,"column":25}},"79":{"start":{"line":124,"column":10},"end":{"line":124,"column":29}},"80":{"start":{"line":125,"column":10},"end":{"line":125,"column":18}},"81":{"start":{"line":127,"column":8},"end":{"line":127,"column":28}},"82":{"start":{"line":128,"column":8},"end":{"line":128,"column":16}},"83":{"start":{"line":134,"column":2},"end":{"line":136,"column":42}},"84":{"start":{"line":138,"column":2},"end":{"line":138,"column":15}},"85":{"start":{"line":139,"column":2},"end":{"line":139,"column":16}}},"fnMap":{"0":{"name":"ExtendedHeader","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":23}},"loc":{"start":{"line":19,"column":27},"end":{"line":31,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":28},"end":{"line":43,"column":29}},"loc":{"start":{"line":43,"column":41},"end":{"line":45,"column":1}},"line":43},"2":{"name":"parse","decl":{"start":{"line":61,"column":9},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":19},"end":{"line":131,"column":1}},"line":61},"3":{"name":"error","decl":{"start":{"line":133,"column":9},"end":{"line":133,"column":14}},"loc":{"start":{"line":133,"column":25},"end":{"line":140,"column":1}},"line":133}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},{"start":{"line":62,"column":2},"end":{"line":62,"column":33}}],"line":62},"1":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":54}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":23}},{"start":{"line":71,"column":27},"end":{"line":71,"column":54}}],"line":71},"3":{"loc":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"type":"switch","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":22}},{"start":{"line":79,"column":6},"end":{"line":93,"column":16}},{"start":{"line":95,"column":6},"end":{"line":105,"column":16}},{"start":{"line":107,"column":6},"end":{"line":128,"column":16}}],"line":76},"4":{"loc":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},{"start":{"line":81,"column":8},"end":{"line":87,"column":9}}],"line":81},"5":{"loc":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"type":"if","locations":[{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},{"start":{"line":88,"column":8},"end":{"line":91,"column":9}}],"line":88},"6":{"loc":{"start":{"line":88,"column":12},"end":{"line":88,"column":28}},"type":"binary-expr","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":18}},{"start":{"line":88,"column":22},"end":{"line":88,"column":28}}],"line":88},"7":{"loc":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},{"start":{"line":97,"column":8},"end":{"line":103,"column":9}}],"line":97},"8":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},{"start":{"line":100,"column":10},"end":{"line":100,"column":66}}],"line":100},"9":{"loc":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},{"start":{"line":109,"column":8},"end":{"line":126,"column":9}}],"line":109},"10":{"loc":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"type":"if","locations":[{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},{"start":{"line":111,"column":10},"end":{"line":114,"column":11}}],"line":111},"11":{"loc":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"type":"if","locations":[{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},{"start":{"line":116,"column":10},"end":{"line":118,"column":11}}],"line":116}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0},"f":{"0":0,"1":4,"2":0,"3":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0,0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"77cb382c69a46833a08275dbc55bf34db0dcd796","contentHash":"78a790af1726a774425fb478f1423068fe64414b747d89b597baf45139e7ae3d"},"/Users/isaacs/dev/js/tar/lib/extract.js":{"path":"/Users/isaacs/dev/js/tar/lib/extract.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":24}},"1":{"start":{"line":5,"column":10},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":14},"end":{"line":6,"column":32}},"3":{"start":{"line":7,"column":15},"end":{"line":7,"column":34}},"4":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":58}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"8":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"9":{"start":{"line":15,"column":4},"end":{"line":15,"column":25}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":25}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"15":{"start":{"line":25,"column":38},"end":{"line":25,"column":52}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"17":{"start":{"line":29,"column":2},"end":{"line":29,"column":14}},"18":{"start":{"line":30,"column":11},"end":{"line":30,"column":15}},"19":{"start":{"line":35,"column":2},"end":{"line":60,"column":4}},"20":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"21":{"start":{"line":39,"column":14},"end":{"line":39,"column":63}},"22":{"start":{"line":40,"column":6},"end":{"line":40,"column":39}},"23":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"24":{"start":{"line":42,"column":17},"end":{"line":42,"column":70}},"25":{"start":{"line":43,"column":8},"end":{"line":43,"column":50}},"26":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"27":{"start":{"line":47,"column":6},"end":{"line":48,"column":66}},"28":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"29":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"30":{"start":{"line":53,"column":21},"end":{"line":53,"column":41}},"31":{"start":{"line":54,"column":19},"end":{"line":54,"column":56}},"32":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"33":{"start":{"line":56,"column":8},"end":{"line":56,"column":65}},"34":{"start":{"line":58,"column":6},"end":{"line":58,"column":54}},"35":{"start":{"line":62,"column":2},"end":{"line":65,"column":4}},"36":{"start":{"line":63,"column":4},"end":{"line":63,"column":36}},"37":{"start":{"line":64,"column":4},"end":{"line":64,"column":15}},"38":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":25}},"40":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"41":{"start":{"line":72,"column":4},"end":{"line":72,"column":20}},"42":{"start":{"line":79,"column":2},"end":{"line":84,"column":4}},"43":{"start":{"line":81,"column":4},"end":{"line":81,"column":21}},"44":{"start":{"line":82,"column":4},"end":{"line":82,"column":18}},"45":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"46":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}},"47":{"start":{"line":89,"column":0},"end":{"line":94,"column":1}},"48":{"start":{"line":90,"column":11},"end":{"line":90,"column":15}},"49":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"50":{"start":{"line":91,"column":31},"end":{"line":91,"column":57}},"51":{"start":{"line":92,"column":2},"end":{"line":92,"column":15}}},"fnMap":{"0":{"name":"Extract","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":85,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":34},"end":{"line":60,"column":3}},"line":35},"2":{"name":"(anonymous_2)","decl":{"start":{"line":62,"column":24},"end":{"line":62,"column":25}},"loc":{"start":{"line":62,"column":36},"end":{"line":65,"column":3}},"line":62},"3":{"name":"(anonymous_3)","decl":{"start":{"line":67,"column":24},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":38},"end":{"line":69,"column":3}},"line":67},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":35},"end":{"line":73,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":24},"end":{"line":79,"column":25}},"loc":{"start":{"line":79,"column":36},"end":{"line":84,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":31},"end":{"line":89,"column":32}},"loc":{"start":{"line":89,"column":43},"end":{"line":94,"column":1}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},{"start":{"line":11,"column":2},"end":{"line":11,"column":58}}],"line":11},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"type":"binary-expr","locations":[{"start":{"line":19,"column":14},"end":{"line":19,"column":23}},{"start":{"line":19,"column":27},"end":{"line":19,"column":59}}],"line":19},"3":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},{"start":{"line":25,"column":2},"end":{"line":25,"column":52}}],"line":25},"4":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":36}},"type":"binary-expr","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":17}},{"start":{"line":25,"column":21},"end":{"line":25,"column":36}}],"line":25},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"6":{"loc":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},{"start":{"line":41,"column":6},"end":{"line":44,"column":7}}],"line":41},"7":{"loc":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}}],"line":46},"8":{"loc":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},{"start":{"line":51,"column":4},"end":{"line":59,"column":5}}],"line":51},"9":{"loc":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"type":"binary-expr","locations":[{"start":{"line":52,"column":15},"end":{"line":52,"column":39}},{"start":{"line":52,"column":43},"end":{"line":52,"column":45}}],"line":52},"10":{"loc":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},{"start":{"line":55,"column":6},"end":{"line":57,"column":7}}],"line":55},"11":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},{"start":{"line":91,"column":2},"end":{"line":91,"column":57}}],"line":91},"12":{"loc":{"start":{"line":91,"column":6},"end":{"line":91,"column":29}},"type":"binary-expr","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":16}},{"start":{"line":91,"column":20},"end":{"line":91,"column":29}}],"line":91}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":2,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":3,"21":0,"22":0,"23":0,"24":0,"25":0,"26":3,"27":0,"28":3,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":1,"36":1,"37":1,"38":1,"39":0,"40":1,"41":0,"42":1,"43":0,"44":0,"45":0,"46":1,"47":1,"48":0,"49":0,"50":0,"51":0},"f":{"0":2,"1":3,"2":1,"3":0,"4":0,"5":0,"6":0},"b":{"0":[1,1],"1":[1,0],"2":[1,0],"3":[1,0],"4":[1,0],"5":[0,3],"6":[0,0],"7":[0,3],"8":[0,3],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3fb9f60facc409fe944dc36bd2e14fc6153e403d","contentHash":"3d9485ca58c6c768b022a39d276296b53647ccf39986885459406e933921c962"}} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json b/node_modules/tar/.nyc_output/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/node_modules/tar/.nyc_output/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json
+++ /dev/null
@@ -1 +0,0 @@
-{} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json b/node_modules/tar/.nyc_output/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/node_modules/tar/.nyc_output/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json
+++ /dev/null
@@ -1 +0,0 @@
-{} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json b/node_modules/tar/.nyc_output/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json
deleted file mode 100644
index 7f34c45..0000000
--- a/node_modules/tar/.nyc_output/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json
+++ /dev/null
@@ -1 +0,0 @@
-{"/Users/isaacs/dev/js/tar/lib/pack.js":{"path":"/Users/isaacs/dev/js/tar/lib/pack.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"1":{"start":{"line":6,"column":18},"end":{"line":6,"column":46}},"2":{"start":{"line":7,"column":13},"end":{"line":7,"column":37}},"3":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"4":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"5":{"start":{"line":10,"column":25},"end":{"line":10,"column":61}},"6":{"start":{"line":11,"column":14},"end":{"line":11,"column":40}},"7":{"start":{"line":12,"column":10},"end":{"line":12,"column":25}},"8":{"start":{"line":14,"column":0},"end":{"line":14,"column":41}},"9":{"start":{"line":14,"column":13},"end":{"line":14,"column":14}},"10":{"start":{"line":14,"column":31},"end":{"line":14,"column":41}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":22}},"12":{"start":{"line":20,"column":11},"end":{"line":20,"column":15}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"14":{"start":{"line":21,"column":29},"end":{"line":21,"column":51}},"15":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"16":{"start":{"line":23,"column":13},"end":{"line":23,"column":52}},"17":{"start":{"line":24,"column":7},"end":{"line":24,"column":32}},"18":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"19":{"start":{"line":28,"column":2},"end":{"line":28,"column":20}},"20":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"21":{"start":{"line":30,"column":2},"end":{"line":30,"column":17}},"22":{"start":{"line":32,"column":2},"end":{"line":32,"column":25}},"23":{"start":{"line":33,"column":2},"end":{"line":33,"column":24}},"24":{"start":{"line":35,"column":2},"end":{"line":35,"column":21}},"25":{"start":{"line":36,"column":2},"end":{"line":43,"column":4}},"26":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"27":{"start":{"line":37,"column":35},"end":{"line":37,"column":41}},"28":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"29":{"start":{"line":39,"column":4},"end":{"line":41,"column":6}},"30":{"start":{"line":40,"column":6},"end":{"line":40,"column":25}},"31":{"start":{"line":42,"column":4},"end":{"line":42,"column":15}},"32":{"start":{"line":46,"column":0},"end":{"line":57,"column":1}},"33":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"34":{"start":{"line":48,"column":23},"end":{"line":48,"column":29}},"35":{"start":{"line":49,"column":2},"end":{"line":49,"column":24}},"36":{"start":{"line":51,"column":11},"end":{"line":51,"column":15}},"37":{"start":{"line":52,"column":2},"end":{"line":56,"column":10}},"38":{"start":{"line":54,"column":6},"end":{"line":54,"column":24}},"39":{"start":{"line":59,"column":0},"end":{"line":69,"column":1}},"40":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"41":{"start":{"line":60,"column":40},"end":{"line":60,"column":68}},"42":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"43":{"start":{"line":62,"column":19},"end":{"line":62,"column":72}},"44":{"start":{"line":64,"column":2},"end":{"line":64,"column":17}},"45":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"46":{"start":{"line":66,"column":2},"end":{"line":66,"column":17}},"47":{"start":{"line":67,"column":2},"end":{"line":67,"column":43}},"48":{"start":{"line":68,"column":2},"end":{"line":68,"column":25}},"49":{"start":{"line":71,"column":0},"end":{"line":75,"column":1}},"50":{"start":{"line":72,"column":2},"end":{"line":72,"column":21}},"51":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"52":{"start":{"line":73,"column":26},"end":{"line":73,"column":52}},"53":{"start":{"line":74,"column":2},"end":{"line":74,"column":20}},"54":{"start":{"line":77,"column":0},"end":{"line":82,"column":1}},"55":{"start":{"line":78,"column":2},"end":{"line":78,"column":22}},"56":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"57":{"start":{"line":79,"column":26},"end":{"line":79,"column":53}},"58":{"start":{"line":80,"column":2},"end":{"line":80,"column":21}},"59":{"start":{"line":81,"column":2},"end":{"line":81,"column":17}},"60":{"start":{"line":84,"column":0},"end":{"line":88,"column":1}},"61":{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},"62":{"start":{"line":86,"column":2},"end":{"line":86,"column":24}},"63":{"start":{"line":87,"column":2},"end":{"line":87,"column":17}},"64":{"start":{"line":90,"column":0},"end":{"line":233,"column":1}},"65":{"start":{"line":91,"column":11},"end":{"line":91,"column":15}},"66":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"67":{"start":{"line":93,"column":4},"end":{"line":93,"column":10}},"68":{"start":{"line":96,"column":14},"end":{"line":96,"column":32}},"69":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"70":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"71":{"start":{"line":100,"column":6},"end":{"line":100,"column":22}},"72":{"start":{"line":102,"column":4},"end":{"line":102,"column":10}},"73":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"74":{"start":{"line":107,"column":4},"end":{"line":107,"column":29}},"75":{"start":{"line":108,"column":4},"end":{"line":111,"column":6}},"76":{"start":{"line":110,"column":6},"end":{"line":110,"column":19}},"77":{"start":{"line":112,"column":4},"end":{"line":112,"column":10}},"78":{"start":{"line":115,"column":2},"end":{"line":115,"column":23}},"79":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"80":{"start":{"line":119,"column":4},"end":{"line":119,"column":24}},"81":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"82":{"start":{"line":121,"column":4},"end":{"line":121,"column":18}},"83":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"84":{"start":{"line":123,"column":4},"end":{"line":123,"column":10}},"85":{"start":{"line":134,"column":13},"end":{"line":134,"column":53}},"86":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"87":{"start":{"line":137,"column":4},"end":{"line":137,"column":27}},"88":{"start":{"line":140,"column":15},"end":{"line":140,"column":17}},"89":{"start":{"line":142,"column":2},"end":{"line":144,"column":4}},"90":{"start":{"line":143,"column":4},"end":{"line":143,"column":30}},"91":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"92":{"start":{"line":146,"column":25},"end":{"line":146,"column":52}},"93":{"start":{"line":148,"column":2},"end":{"line":148,"column":53}},"94":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"95":{"start":{"line":152,"column":4},"end":{"line":152,"column":49}},"96":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"97":{"start":{"line":156,"column":4},"end":{"line":156,"column":29}},"98":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"99":{"start":{"line":161,"column":6},"end":{"line":161,"column":12}},"100":{"start":{"line":164,"column":6},"end":{"line":164,"column":24}},"101":{"start":{"line":165,"column":6},"end":{"line":165,"column":21}},"102":{"start":{"line":166,"column":6},"end":{"line":166,"column":11}},"103":{"start":{"line":169,"column":15},"end":{"line":169,"column":69}},"104":{"start":{"line":170,"column":6},"end":{"line":170,"column":54}},"105":{"start":{"line":171,"column":6},"end":{"line":171,"column":21}},"106":{"start":{"line":172,"column":6},"end":{"line":172,"column":11}},"107":{"start":{"line":175,"column":15},"end":{"line":175,"column":69}},"108":{"start":{"line":176,"column":6},"end":{"line":176,"column":74}},"109":{"start":{"line":177,"column":6},"end":{"line":177,"column":21}},"110":{"start":{"line":178,"column":6},"end":{"line":178,"column":11}},"111":{"start":{"line":187,"column":15},"end":{"line":187,"column":53}},"112":{"start":{"line":189,"column":2},"end":{"line":189,"column":20}},"113":{"start":{"line":195,"column":2},"end":{"line":197,"column":4}},"114":{"start":{"line":196,"column":4},"end":{"line":196,"column":22}},"115":{"start":{"line":199,"column":2},"end":{"line":205,"column":4}},"116":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"117":{"start":{"line":201,"column":6},"end":{"line":201,"column":50}},"118":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"119":{"start":{"line":204,"column":33},"end":{"line":204,"column":44}},"120":{"start":{"line":206,"column":2},"end":{"line":206,"column":31}},"121":{"start":{"line":208,"column":14},"end":{"line":208,"column":19}},"122":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"123":{"start":{"line":210,"column":15},"end":{"line":210,"column":21}},"124":{"start":{"line":211,"column":4},"end":{"line":211,"column":16}},"125":{"start":{"line":215,"column":4},"end":{"line":215,"column":27}},"126":{"start":{"line":216,"column":4},"end":{"line":216,"column":26}},"127":{"start":{"line":217,"column":4},"end":{"line":217,"column":17}},"128":{"start":{"line":220,"column":2},"end":{"line":223,"column":4}},"129":{"start":{"line":222,"column":4},"end":{"line":222,"column":24}},"130":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"131":{"start":{"line":229,"column":4},"end":{"line":229,"column":21}},"132":{"start":{"line":232,"column":2},"end":{"line":232,"column":20}},"133":{"start":{"line":235,"column":0},"end":{"line":235,"column":39}},"134":{"start":{"line":236,"column":0},"end":{"line":236,"column":37}}},"fnMap":{"0":{"name":"Pack","decl":{"start":{"line":18,"column":9},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":22},"end":{"line":44,"column":1}},"line":18},"1":{"name":"(anonymous_1)","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":31},"end":{"line":43,"column":3}},"line":36},"2":{"name":"(anonymous_2)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":30},"end":{"line":41,"column":5}},"line":39},"3":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":28}},"loc":{"start":{"line":46,"column":44},"end":{"line":57,"column":1}},"line":46},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":29},"end":{"line":55,"column":5}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":39},"end":{"line":69,"column":1}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":23},"end":{"line":71,"column":24}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":77,"column":24},"end":{"line":77,"column":25}},"loc":{"start":{"line":77,"column":36},"end":{"line":82,"column":1}},"line":77},"8":{"name":"(anonymous_8)","decl":{"start":{"line":84,"column":21},"end":{"line":84,"column":22}},"loc":{"start":{"line":84,"column":33},"end":{"line":88,"column":1}},"line":84},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":26},"end":{"line":90,"column":27}},"loc":{"start":{"line":90,"column":38},"end":{"line":233,"column":1}},"line":90},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":22},"end":{"line":108,"column":23}},"loc":{"start":{"line":108,"column":34},"end":{"line":111,"column":5}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":142,"column":41},"end":{"line":142,"column":42}},"loc":{"start":{"line":142,"column":54},"end":{"line":144,"column":3}},"line":142},"12":{"name":"(anonymous_12)","decl":{"start":{"line":195,"column":20},"end":{"line":195,"column":21}},"loc":{"start":{"line":195,"column":33},"end":{"line":197,"column":3}},"line":195},"13":{"name":"(anonymous_13)","decl":{"start":{"line":199,"column":22},"end":{"line":199,"column":23}},"loc":{"start":{"line":199,"column":34},"end":{"line":205,"column":3}},"line":199},"14":{"name":"(anonymous_14)","decl":{"start":{"line":200,"column":30},"end":{"line":200,"column":31}},"loc":{"start":{"line":200,"column":42},"end":{"line":202,"column":5}},"line":200},"15":{"name":"nextEntry","decl":{"start":{"line":209,"column":11},"end":{"line":209,"column":20}},"loc":{"start":{"line":209,"column":24},"end":{"line":218,"column":3}},"line":209},"16":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":21},"end":{"line":220,"column":22}},"loc":{"start":{"line":220,"column":35},"end":{"line":223,"column":3}},"line":220},"17":{"name":"(anonymous_17)","decl":{"start":{"line":235,"column":25},"end":{"line":235,"column":26}},"loc":{"start":{"line":235,"column":37},"end":{"line":235,"column":39}},"line":235},"18":{"name":"(anonymous_18)","decl":{"start":{"line":236,"column":23},"end":{"line":236,"column":24}},"loc":{"start":{"line":236,"column":35},"end":{"line":236,"column":37}},"line":236}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},{"start":{"line":21,"column":2},"end":{"line":21,"column":51}}],"line":21},"1":{"loc":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},{"start":{"line":23,"column":2},"end":{"line":24,"column":32}}],"line":23},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},{"start":{"line":37,"column":4},"end":{"line":37,"column":41}}],"line":37},"3":{"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},{"start":{"line":48,"column":2},"end":{"line":48,"column":29}}],"line":48},"4":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},{"start":{"line":60,"column":2},"end":{"line":60,"column":68}}],"line":60},"5":{"loc":{"start":{"line":60,"column":6},"end":{"line":60,"column":38}},"type":"binary-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":18}},{"start":{"line":60,"column":22},"end":{"line":60,"column":38}}],"line":60},"6":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},{"start":{"line":62,"column":2},"end":{"line":62,"column":72}}],"line":62},"7":{"loc":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},{"start":{"line":73,"column":2},"end":{"line":73,"column":52}}],"line":73},"8":{"loc":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},{"start":{"line":79,"column":2},"end":{"line":79,"column":53}}],"line":79},"9":{"loc":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},{"start":{"line":92,"column":2},"end":{"line":94,"column":3}}],"line":92},"10":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":34}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":16}},{"start":{"line":92,"column":20},"end":{"line":92,"column":34}}],"line":92},"11":{"loc":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},{"start":{"line":98,"column":2},"end":{"line":103,"column":3}}],"line":98},"12":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{"line":99,"column":4},"end":{"line":101,"column":5}}],"line":99},"13":{"loc":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},{"start":{"line":105,"column":2},"end":{"line":113,"column":3}}],"line":105},"14":{"loc":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"type":"if","locations":[{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},{"start":{"line":117,"column":2},"end":{"line":124,"column":3}}],"line":117},"15":{"loc":{"start":{"line":134,"column":27},"end":{"line":134,"column":46}},"type":"binary-expr","locations":[{"start":{"line":134,"column":27},"end":{"line":134,"column":37}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}],"line":134},"16":{"loc":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},{"start":{"line":135,"column":2},"end":{"line":138,"column":3}}],"line":135},"17":{"loc":{"start":{"line":135,"column":6},"end":{"line":135,"column":72}},"type":"binary-expr","locations":[{"start":{"line":135,"column":6},"end":{"line":135,"column":16}},{"start":{"line":135,"column":20},"end":{"line":135,"column":39}},{"start":{"line":135,"column":43},"end":{"line":135,"column":53}},{"start":{"line":135,"column":57},"end":{"line":135,"column":72}}],"line":135},"18":{"loc":{"start":{"line":142,"column":14},"end":{"line":142,"column":31}},"type":"binary-expr","locations":[{"start":{"line":142,"column":14},"end":{"line":142,"column":25}},{"start":{"line":142,"column":29},"end":{"line":142,"column":31}}],"line":142},"19":{"loc":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"type":"if","locations":[{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},{"start":{"line":146,"column":2},"end":{"line":146,"column":52}}],"line":146},"20":{"loc":{"start":{"line":148,"column":36},"end":{"line":148,"column":52}},"type":"binary-expr","locations":[{"start":{"line":148,"column":36},"end":{"line":148,"column":46}},{"start":{"line":148,"column":50},"end":{"line":148,"column":52}}],"line":148},"21":{"loc":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"type":"if","locations":[{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},{"start":{"line":151,"column":2},"end":{"line":153,"column":3}}],"line":151},"22":{"loc":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"type":"if","locations":[{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},{"start":{"line":155,"column":2},"end":{"line":156,"column":29}}],"line":155},"23":{"loc":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"type":"switch","locations":[{"start":{"line":160,"column":4},"end":{"line":161,"column":12}},{"start":{"line":163,"column":4},"end":{"line":166,"column":11}},{"start":{"line":168,"column":4},"end":{"line":172,"column":11}},{"start":{"line":174,"column":4},"end":{"line":178,"column":11}}],"line":158},"24":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":54}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},{"start":{"line":170,"column":51},"end":{"line":170,"column":54}}],"line":170},"25":{"loc":{"start":{"line":176,"column":24},"end":{"line":176,"column":74}},"type":"binary-expr","locations":[{"start":{"line":176,"column":24},"end":{"line":176,"column":67}},{"start":{"line":176,"column":71},"end":{"line":176,"column":74}}],"line":176},"26":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},{"start":{"line":204,"column":4},"end":{"line":204,"column":44}}],"line":204},"27":{"loc":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},{"start":{"line":210,"column":4},"end":{"line":210,"column":21}}],"line":210},"28":{"loc":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},{"start":{"line":227,"column":2},"end":{"line":230,"column":3}}],"line":227}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":512,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":1,"50":0,"51":0,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0,0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"8beb16ccde52e484aa1dd87f5ece33d696c808ab","contentHash":"7bb2b7ebe1111c0deefbf9a61d17bf9d2dbe951adb585db96f9d89663ce5909d"},"/Users/isaacs/dev/js/tar/lib/entry-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":16},"end":{"line":4,"column":38}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":34}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":37}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":29}},"9":{"start":{"line":15,"column":11},"end":{"line":15,"column":15}},"10":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":33}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":20}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":35}},"16":{"start":{"line":28,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"18":{"start":{"line":32,"column":2},"end":{"line":34,"column":4}},"19":{"start":{"line":33,"column":4},"end":{"line":33,"column":20}},"20":{"start":{"line":36,"column":2},"end":{"line":39,"column":4}},"21":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"22":{"start":{"line":38,"column":4},"end":{"line":38,"column":20}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":18}},"24":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":18}},"26":{"start":{"line":45,"column":2},"end":{"line":45,"column":25}},"27":{"start":{"line":46,"column":2},"end":{"line":46,"column":23}},"28":{"start":{"line":47,"column":2},"end":{"line":47,"column":22}},"29":{"start":{"line":49,"column":2},"end":{"line":49,"column":17}},"30":{"start":{"line":50,"column":2},"end":{"line":50,"column":23}},"31":{"start":{"line":51,"column":2},"end":{"line":51,"column":18}},"32":{"start":{"line":53,"column":2},"end":{"line":55,"column":4}},"33":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"34":{"start":{"line":58,"column":0},"end":{"line":65,"column":1}},"35":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"36":{"start":{"line":60,"column":19},"end":{"line":60,"column":74}},"37":{"start":{"line":61,"column":2},"end":{"line":61,"column":22}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":17}},"39":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"40":{"start":{"line":64,"column":2},"end":{"line":64,"column":25}},"41":{"start":{"line":67,"column":0},"end":{"line":74,"column":1}},"42":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"43":{"start":{"line":69,"column":9},"end":{"line":69,"column":29}},"44":{"start":{"line":70,"column":2},"end":{"line":70,"column":24}},"45":{"start":{"line":71,"column":2},"end":{"line":71,"column":20}},"46":{"start":{"line":72,"column":2},"end":{"line":72,"column":17}},"47":{"start":{"line":73,"column":2},"end":{"line":73,"column":43}},"48":{"start":{"line":76,"column":0},"end":{"line":80,"column":1}},"49":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"50":{"start":{"line":79,"column":2},"end":{"line":79,"column":20}},"51":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"52":{"start":{"line":84,"column":2},"end":{"line":84,"column":22}},"53":{"start":{"line":85,"column":2},"end":{"line":85,"column":21}},"54":{"start":{"line":86,"column":2},"end":{"line":86,"column":17}},"55":{"start":{"line":89,"column":0},"end":{"line":98,"column":1}},"56":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"57":{"start":{"line":91,"column":20},"end":{"line":91,"column":69}},"58":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"59":{"start":{"line":95,"column":20},"end":{"line":95,"column":30}},"60":{"start":{"line":97,"column":2},"end":{"line":97,"column":31}},"61":{"start":{"line":100,"column":0},"end":{"line":126,"column":1}},"62":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"63":{"start":{"line":102,"column":23},"end":{"line":102,"column":29}},"64":{"start":{"line":103,"column":2},"end":{"line":103,"column":24}},"65":{"start":{"line":105,"column":20},"end":{"line":105,"column":48}},"66":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"67":{"start":{"line":108,"column":13},"end":{"line":108,"column":17}},"68":{"start":{"line":110,"column":4},"end":{"line":111,"column":44}},"69":{"start":{"line":113,"column":4},"end":{"line":120,"column":12}},"70":{"start":{"line":115,"column":8},"end":{"line":115,"column":26}},"71":{"start":{"line":118,"column":8},"end":{"line":118,"column":28}},"72":{"start":{"line":124,"column":2},"end":{"line":124,"column":32}},"73":{"start":{"line":125,"column":2},"end":{"line":125,"column":21}},"74":{"start":{"line":128,"column":0},"end":{"line":167,"column":1}},"75":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"76":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"77":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"78":{"start":{"line":136,"column":4},"end":{"line":136,"column":10}},"79":{"start":{"line":139,"column":2},"end":{"line":139,"column":25}},"80":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"81":{"start":{"line":142,"column":2},"end":{"line":159,"column":3}},"82":{"start":{"line":142,"column":15},"end":{"line":142,"column":16}},"83":{"start":{"line":145,"column":12},"end":{"line":145,"column":18}},"84":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"85":{"start":{"line":147,"column":19},"end":{"line":147,"column":37}},"86":{"start":{"line":148,"column":9},"end":{"line":148,"column":30}},"87":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"88":{"start":{"line":152,"column":6},"end":{"line":152,"column":30}},"89":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"90":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"91":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"92":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"93":{"start":{"line":162,"column":2},"end":{"line":162,"column":25}},"94":{"start":{"line":163,"column":2},"end":{"line":163,"column":26}},"95":{"start":{"line":166,"column":2},"end":{"line":166,"column":20}},"96":{"start":{"line":169,"column":0},"end":{"line":169,"column":46}}},"fnMap":{"0":{"name":"EntryWriter","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":20}},"loc":{"start":{"line":14,"column":29},"end":{"line":56,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":37},"end":{"line":30,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":25},"end":{"line":32,"column":26}},"loc":{"start":{"line":32,"column":37},"end":{"line":34,"column":3}},"line":32},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":23},"end":{"line":36,"column":24}},"loc":{"start":{"line":36,"column":35},"end":{"line":39,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":28},"end":{"line":55,"column":3}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":30},"end":{"line":58,"column":31}},"loc":{"start":{"line":58,"column":43},"end":{"line":65,"column":1}},"line":58},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":28},"end":{"line":67,"column":29}},"loc":{"start":{"line":67,"column":41},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":30},"end":{"line":76,"column":31}},"loc":{"start":{"line":76,"column":42},"end":{"line":80,"column":1}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":31},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":43},"end":{"line":87,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":89,"column":28},"end":{"line":89,"column":29}},"loc":{"start":{"line":89,"column":45},"end":{"line":98,"column":1}},"line":89},"10":{"name":"(anonymous_10)","decl":{"start":{"line":100,"column":32},"end":{"line":100,"column":33}},"loc":{"start":{"line":100,"column":44},"end":{"line":126,"column":1}},"line":100},"11":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":18},"end":{"line":114,"column":19}},"loc":{"start":{"line":114,"column":31},"end":{"line":116,"column":7}},"line":114},"12":{"name":"(anonymous_12)","decl":{"start":{"line":117,"column":19},"end":{"line":117,"column":20}},"loc":{"start":{"line":117,"column":33},"end":{"line":119,"column":7}},"line":117},"13":{"name":"(anonymous_13)","decl":{"start":{"line":128,"column":33},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":45},"end":{"line":167,"column":1}},"line":128},"14":{"name":"(anonymous_14)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":44},"end":{"line":169,"column":46}},"line":169}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"1":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"2":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},{"start":{"line":60,"column":2},"end":{"line":60,"column":74}}],"line":60},"3":{"loc":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},{"start":{"line":69,"column":2},"end":{"line":69,"column":29}}],"line":69},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},{"start":{"line":91,"column":2},"end":{"line":91,"column":69}}],"line":91},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},{"start":{"line":95,"column":2},"end":{"line":95,"column":30}}],"line":95},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},{"start":{"line":102,"column":2},"end":{"line":102,"column":29}}],"line":102},"7":{"loc":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},{"start":{"line":107,"column":2},"end":{"line":121,"column":3}}],"line":107},"8":{"loc":{"start":{"line":107,"column":6},"end":{"line":107,"column":44}},"type":"binary-expr","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":44}}],"line":107},"9":{"loc":{"start":{"line":110,"column":27},"end":{"line":111,"column":44}},"type":"binary-expr","locations":[{"start":{"line":110,"column":27},"end":{"line":110,"column":47}},{"start":{"line":111,"column":6},"end":{"line":111,"column":44}}],"line":110},"10":{"loc":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"type":"if","locations":[{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},{"start":{"line":130,"column":2},"end":{"line":132,"column":3}}],"line":130},"11":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":37}},"type":"binary-expr","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":22}},{"start":{"line":130,"column":26},"end":{"line":130,"column":37}}],"line":130},"12":{"loc":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"type":"if","locations":[{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},{"start":{"line":134,"column":2},"end":{"line":137,"column":3}}],"line":134},"13":{"loc":{"start":{"line":134,"column":6},"end":{"line":134,"column":38}},"type":"binary-expr","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":18}},{"start":{"line":134,"column":22},"end":{"line":134,"column":38}}],"line":134},"14":{"loc":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},{"start":{"line":147,"column":4},"end":{"line":148,"column":30}}],"line":147},"15":{"loc":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},{"start":{"line":150,"column":4},"end":{"line":158,"column":5}}],"line":150},"16":{"loc":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},{"start":{"line":153,"column":6},"end":{"line":156,"column":7}}],"line":153}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":0,"50":0,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":1,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3e169418508e031df78186ff63b5fa5aa2484ab8","contentHash":"84191ed4732b6763ae8701256051735aebbe5e95c932c15bef34da01b33ba1a0"},"/Users/isaacs/dev/js/tar/lib/entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry.js","statementMap":{"0":{"start":{"line":7,"column":0},"end":{"line":7,"column":22}},"1":{"start":{"line":9,"column":16},"end":{"line":9,"column":38}},"2":{"start":{"line":10,"column":10},"end":{"line":10,"column":27}},"3":{"start":{"line":11,"column":13},"end":{"line":11,"column":33}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":37}},"5":{"start":{"line":13,"column":15},"end":{"line":13,"column":34}},"6":{"start":{"line":14,"column":14},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":22}},"9":{"start":{"line":19,"column":2},"end":{"line":19,"column":22}},"10":{"start":{"line":21,"column":2},"end":{"line":21,"column":25}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":22}},"12":{"start":{"line":23,"column":2},"end":{"line":23,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":21}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"17":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"18":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"19":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"20":{"start":{"line":32,"column":2},"end":{"line":32,"column":36}},"21":{"start":{"line":34,"column":2},"end":{"line":34,"column":17}},"22":{"start":{"line":35,"column":2},"end":{"line":35,"column":23}},"23":{"start":{"line":36,"column":2},"end":{"line":36,"column":33}},"24":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"25":{"start":{"line":41,"column":11},"end":{"line":41,"column":15}},"26":{"start":{"line":42,"column":2},"end":{"line":44,"column":4}},"27":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"28":{"start":{"line":46,"column":2},"end":{"line":46,"column":18}},"29":{"start":{"line":49,"column":0},"end":{"line":49,"column":23}},"30":{"start":{"line":51,"column":0},"end":{"line":78,"column":1}},"31":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"32":{"start":{"line":52,"column":20},"end":{"line":52,"column":65}},"33":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"34":{"start":{"line":54,"column":4},"end":{"line":54,"column":40}},"35":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"36":{"start":{"line":60,"column":4},"end":{"line":60,"column":35}},"37":{"start":{"line":62,"column":2},"end":{"line":62,"column":29}},"38":{"start":{"line":65,"column":11},"end":{"line":65,"column":25}},"39":{"start":{"line":66,"column":2},"end":{"line":66,"column":21}},"40":{"start":{"line":67,"column":2},"end":{"line":67,"column":19}},"41":{"start":{"line":69,"column":2},"end":{"line":69,"column":14}},"42":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"43":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"44":{"start":{"line":74,"column":4},"end":{"line":74,"column":16}},"45":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}},"46":{"start":{"line":80,"column":0},"end":{"line":84,"column":1}},"47":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"48":{"start":{"line":81,"column":9},"end":{"line":81,"column":22}},"49":{"start":{"line":82,"column":2},"end":{"line":82,"column":21}},"50":{"start":{"line":83,"column":2},"end":{"line":83,"column":14}},"51":{"start":{"line":86,"column":0},"end":{"line":89,"column":1}},"52":{"start":{"line":87,"column":2},"end":{"line":87,"column":21}},"53":{"start":{"line":88,"column":2},"end":{"line":88,"column":20}},"54":{"start":{"line":91,"column":0},"end":{"line":97,"column":1}},"55":{"start":{"line":93,"column":2},"end":{"line":93,"column":21}},"56":{"start":{"line":94,"column":2},"end":{"line":94,"column":22}},"57":{"start":{"line":95,"column":2},"end":{"line":95,"column":14}},"58":{"start":{"line":96,"column":2},"end":{"line":96,"column":41}},"59":{"start":{"line":100,"column":0},"end":{"line":139,"column":1}},"60":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"61":{"start":{"line":103,"column":52},"end":{"line":103,"column":58}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":22}},"63":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"64":{"start":{"line":111,"column":16},"end":{"line":111,"column":43}},"65":{"start":{"line":112,"column":4},"end":{"line":112,"column":28}},"66":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"67":{"start":{"line":117,"column":4},"end":{"line":117,"column":57}},"68":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"69":{"start":{"line":119,"column":6},"end":{"line":119,"column":29}},"70":{"start":{"line":120,"column":6},"end":{"line":120,"column":24}},"71":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"72":{"start":{"line":123,"column":6},"end":{"line":123,"column":24}},"73":{"start":{"line":124,"column":6},"end":{"line":124,"column":22}},"74":{"start":{"line":130,"column":12},"end":{"line":130,"column":29}},"75":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"76":{"start":{"line":132,"column":4},"end":{"line":132,"column":36}},"77":{"start":{"line":133,"column":4},"end":{"line":133,"column":22}},"78":{"start":{"line":134,"column":4},"end":{"line":134,"column":25}},"79":{"start":{"line":135,"column":4},"end":{"line":135,"column":40}},"80":{"start":{"line":138,"column":2},"end":{"line":138,"column":23}},"81":{"start":{"line":141,"column":0},"end":{"line":211,"column":1}},"82":{"start":{"line":143,"column":15},"end":{"line":143,"column":27}},"83":{"start":{"line":144,"column":17},"end":{"line":144,"column":31}},"84":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}},"85":{"start":{"line":146,"column":14},"end":{"line":146,"column":24}},"86":{"start":{"line":149,"column":15},"end":{"line":149,"column":25}},"87":{"start":{"line":150,"column":2},"end":{"line":154,"column":3}},"88":{"start":{"line":150,"column":15},"end":{"line":150,"column":16}},"89":{"start":{"line":151,"column":16},"end":{"line":151,"column":25}},"90":{"start":{"line":152,"column":14},"end":{"line":152,"column":27}},"91":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"92":{"start":{"line":153,"column":36},"end":{"line":153,"column":54}},"93":{"start":{"line":158,"column":3},"end":{"line":165,"column":3}},"94":{"start":{"line":159,"column":4},"end":{"line":161,"column":6}},"95":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"96":{"start":{"line":160,"column":39},"end":{"line":160,"column":54}},"97":{"start":{"line":165,"column":3},"end":{"line":173,"column":3}},"98":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"99":{"start":{"line":167,"column":6},"end":{"line":167,"column":40}},"100":{"start":{"line":173,"column":3},"end":{"line":177,"column":4}},"101":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"102":{"start":{"line":175,"column":6},"end":{"line":175,"column":42}},"103":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"104":{"start":{"line":184,"column":6},"end":{"line":184,"column":19}},"105":{"start":{"line":185,"column":6},"end":{"line":185,"column":11}},"106":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"107":{"start":{"line":189,"column":6},"end":{"line":189,"column":11}},"108":{"start":{"line":192,"column":6},"end":{"line":192,"column":22}},"109":{"start":{"line":193,"column":6},"end":{"line":193,"column":11}},"110":{"start":{"line":202,"column":6},"end":{"line":202,"column":34}},"111":{"start":{"line":205,"column":2},"end":{"line":205,"column":18}},"112":{"start":{"line":206,"column":2},"end":{"line":206,"column":24}},"113":{"start":{"line":207,"column":2},"end":{"line":207,"column":24}},"114":{"start":{"line":210,"column":2},"end":{"line":210,"column":30}},"115":{"start":{"line":215,"column":0},"end":{"line":217,"column":1}},"116":{"start":{"line":216,"column":2},"end":{"line":216,"column":20}},"117":{"start":{"line":219,"column":0},"end":{"line":219,"column":35}},"118":{"start":{"line":220,"column":0},"end":{"line":220,"column":37}}},"fnMap":{"0":{"name":"Entry","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":14}},"loc":{"start":{"line":16,"column":42},"end":{"line":47,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":36},"end":{"line":42,"column":37}},"loc":{"start":{"line":42,"column":49},"end":{"line":44,"column":3}},"line":42},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":24},"end":{"line":51,"column":25}},"loc":{"start":{"line":51,"column":37},"end":{"line":78,"column":1}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":80,"column":22},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":84,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":86,"column":24},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":36},"end":{"line":89,"column":1}},"line":86},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":25},"end":{"line":91,"column":26}},"loc":{"start":{"line":91,"column":37},"end":{"line":97,"column":1}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":24},"end":{"line":100,"column":25}},"loc":{"start":{"line":100,"column":36},"end":{"line":139,"column":1}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":28},"end":{"line":141,"column":29}},"loc":{"start":{"line":141,"column":40},"end":{"line":211,"column":1}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":158,"column":30},"end":{"line":158,"column":31}},"loc":{"start":{"line":158,"column":43},"end":{"line":162,"column":3}},"line":158},"9":{"name":"(anonymous_9)","decl":{"start":{"line":159,"column":27},"end":{"line":159,"column":28}},"loc":{"start":{"line":159,"column":40},"end":{"line":161,"column":5}},"line":159},"10":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":32},"end":{"line":165,"column":33}},"loc":{"start":{"line":165,"column":45},"end":{"line":169,"column":3}},"line":165},"11":{"name":"(anonymous_11)","decl":{"start":{"line":173,"column":39},"end":{"line":173,"column":40}},"loc":{"start":{"line":173,"column":52},"end":{"line":177,"column":3}},"line":173},"12":{"name":"(anonymous_12)","decl":{"start":{"line":215,"column":24},"end":{"line":215,"column":25}},"loc":{"start":{"line":215,"column":34},"end":{"line":217,"column":1}},"line":215}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":19},"end":{"line":36,"column":33}},"type":"binary-expr","locations":[{"start":{"line":36,"column":19},"end":{"line":36,"column":27}},{"start":{"line":36,"column":31},"end":{"line":36,"column":33}}],"line":36},"1":{"loc":{"start":{"line":42,"column":14},"end":{"line":42,"column":26}},"type":"binary-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":20}},{"start":{"line":42,"column":24},"end":{"line":42,"column":26}}],"line":42},"2":{"loc":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},{"start":{"line":52,"column":2},"end":{"line":52,"column":65}}],"line":52},"3":{"loc":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},{"start":{"line":53,"column":2},"end":{"line":55,"column":3}}],"line":53},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"6":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":28}}],"line":72},"7":{"loc":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},{"start":{"line":81,"column":2},"end":{"line":81,"column":22}}],"line":81},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},{"start":{"line":103,"column":2},"end":{"line":103,"column":58}}],"line":103},"9":{"loc":{"start":{"line":103,"column":6},"end":{"line":103,"column":50}},"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":18}},{"start":{"line":103,"column":22},"end":{"line":103,"column":35}},{"start":{"line":103,"column":39},"end":{"line":103,"column":50}}],"line":103},"10":{"loc":{"start":{"line":110,"column":9},"end":{"line":110,"column":54}},"type":"binary-expr","locations":[{"start":{"line":110,"column":9},"end":{"line":110,"column":37}},{"start":{"line":110,"column":41},"end":{"line":110,"column":54}}],"line":110},"11":{"loc":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},{"start":{"line":116,"column":2},"end":{"line":126,"column":3}}],"line":116},"12":{"loc":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},{"start":{"line":118,"column":4},"end":{"line":121,"column":5}}],"line":118},"13":{"loc":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},{"start":{"line":122,"column":4},"end":{"line":125,"column":5}}],"line":122},"14":{"loc":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},{"start":{"line":131,"column":2},"end":{"line":136,"column":3}}],"line":131},"15":{"loc":{"start":{"line":131,"column":6},"end":{"line":131,"column":45}},"type":"binary-expr","locations":[{"start":{"line":131,"column":6},"end":{"line":131,"column":26}},{"start":{"line":131,"column":30},"end":{"line":131,"column":45}}],"line":131},"16":{"loc":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},{"start":{"line":153,"column":4},"end":{"line":153,"column":54}}],"line":153},"17":{"loc":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"type":"if","locations":[{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},{"start":{"line":160,"column":6},"end":{"line":160,"column":54}}],"line":160},"18":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}],"line":166},"19":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{"line":174,"column":4},"end":{"line":176,"column":5}}],"line":174},"20":{"loc":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"type":"switch","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":19}},{"start":{"line":183,"column":4},"end":{"line":185,"column":11}},{"start":{"line":187,"column":4},"end":{"line":189,"column":11}},{"start":{"line":191,"column":4},"end":{"line":193,"column":11}},{"start":{"line":195,"column":4},"end":{"line":195,"column":16}},{"start":{"line":196,"column":4},"end":{"line":196,"column":24}},{"start":{"line":197,"column":4},"end":{"line":197,"column":27}},{"start":{"line":198,"column":4},"end":{"line":198,"column":23}},{"start":{"line":199,"column":4},"end":{"line":199,"column":21}},{"start":{"line":200,"column":4},"end":{"line":200,"column":16}},{"start":{"line":201,"column":4},"end":{"line":202,"column":34}}],"line":181}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":17,"8":17,"9":17,"10":17,"11":17,"12":17,"13":17,"14":17,"15":17,"16":17,"17":17,"18":17,"19":17,"20":17,"21":17,"22":17,"23":17,"24":17,"25":17,"26":17,"27":0,"28":17,"29":1,"30":1,"31":17,"32":0,"33":17,"34":0,"35":17,"36":15,"37":17,"38":17,"39":17,"40":17,"41":17,"42":17,"43":10,"44":10,"45":7,"46":1,"47":17,"48":0,"49":17,"50":17,"51":1,"52":10,"53":10,"54":1,"55":20,"56":20,"57":20,"58":20,"59":1,"60":54,"61":30,"62":24,"63":24,"64":17,"65":17,"66":24,"67":24,"68":24,"69":8,"70":8,"71":24,"72":17,"73":17,"74":24,"75":24,"76":0,"77":0,"78":0,"79":0,"80":24,"81":1,"82":17,"83":17,"84":17,"85":17,"86":17,"87":17,"88":17,"89":289,"90":289,"91":289,"92":242,"93":17,"94":34,"95":29,"96":29,"97":17,"98":34,"99":34,"100":17,"101":51,"102":25,"103":17,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":17,"111":17,"112":17,"113":17,"114":17,"115":1,"116":0,"117":1,"118":1},"f":{"0":17,"1":0,"2":17,"3":17,"4":10,"5":20,"6":54,"7":17,"8":34,"9":29,"10":34,"11":51,"12":0},"b":{"0":[17,11],"1":[17,17],"2":[0,17],"3":[0,17],"4":[15,2],"5":[10,7],"6":[17,7],"7":[0,17],"8":[30,24],"9":[54,34,34],"10":[41,17],"11":[24,0],"12":[8,16],"13":[17,7],"14":[0,24],"15":[24,0],"16":[242,47],"17":[29,0],"18":[34,0],"19":[25,26],"20":[0,0,0,0,1,2,2,2,2,2,17]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"2cc4f925db2a60e89bf0743124faec4e8996dfdb","contentHash":"245d5cb2b23d975dc5b9a0ed2553c93c587727d50a7961242f50cec333c04ba9"},"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/global-header-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":65}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":34}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"4":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":40}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}}},"fnMap":{"0":{"name":"GlobalHeaderWriter","decl":{"start":{"line":8,"column":9},"end":{"line":8,"column":27}},"loc":{"start":{"line":8,"column":36},"end":{"line":14,"column":1}},"line":8}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0},"f":{"0":0},"b":{"0":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3d0c8589f62a5c8ccec606d52d3abd98e5627d57","contentHash":"a2570ca840cf3e44d77e15af0aee52f7c145da39b76366006f3672b9708def3e"},"/Users/isaacs/dev/js/tar/lib/parse.js":{"path":"/Users/isaacs/dev/js/tar/lib/parse.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"1":{"start":{"line":8,"column":13},"end":{"line":8,"column":30}},"2":{"start":{"line":9,"column":13},"end":{"line":9,"column":26}},"3":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":30}},"5":{"start":{"line":12,"column":16},"end":{"line":12,"column":38}},"6":{"start":{"line":13,"column":12},"end":{"line":13,"column":33}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":46}},"8":{"start":{"line":15,"column":21},"end":{"line":15,"column":52}},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":33}},"10":{"start":{"line":17,"column":15},"end":{"line":17,"column":34}},"11":{"start":{"line":18,"column":14},"end":{"line":18,"column":32}},"12":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}},"13":{"start":{"line":28,"column":11},"end":{"line":28,"column":15}},"14":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"15":{"start":{"line":29,"column":30},"end":{"line":29,"column":48}},"16":{"start":{"line":34,"column":2},"end":{"line":34,"column":18}},"17":{"start":{"line":36,"column":2},"end":{"line":36,"column":20}},"18":{"start":{"line":37,"column":2},"end":{"line":37,"column":20}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":35}},"20":{"start":{"line":39,"column":2},"end":{"line":39,"column":17}},"21":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"22":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"23":{"start":{"line":43,"column":2},"end":{"line":45,"column":4}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":20}},"31":{"start":{"line":63,"column":0},"end":{"line":67,"column":1}},"32":{"start":{"line":64,"column":11},"end":{"line":64,"column":15}},"33":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"34":{"start":{"line":65,"column":31},"end":{"line":65,"column":57}},"35":{"start":{"line":66,"column":2},"end":{"line":66,"column":16}},"36":{"start":{"line":72,"column":0},"end":{"line":83,"column":1}},"37":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"38":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"39":{"start":{"line":77,"column":17},"end":{"line":77,"column":18}},"40":{"start":{"line":77,"column":24},"end":{"line":77,"column":32}},"41":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":62}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":10}},"44":{"start":{"line":82,"column":2},"end":{"line":82,"column":30}},"45":{"start":{"line":85,"column":0},"end":{"line":88,"column":1}},"46":{"start":{"line":86,"column":2},"end":{"line":86,"column":20}},"47":{"start":{"line":87,"column":2},"end":{"line":87,"column":28}},"48":{"start":{"line":94,"column":0},"end":{"line":94,"column":38}},"49":{"start":{"line":96,"column":0},"end":{"line":137,"column":1}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":59}},"51":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":27}},"53":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"54":{"start":{"line":106,"column":22},"end":{"line":106,"column":36}},"55":{"start":{"line":108,"column":6},"end":{"line":108,"column":34}},"56":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"57":{"start":{"line":109,"column":31},"end":{"line":109,"column":51}},"58":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"59":{"start":{"line":112,"column":6},"end":{"line":112,"column":17}},"60":{"start":{"line":113,"column":6},"end":{"line":113,"column":24}},"61":{"start":{"line":117,"column":15},"end":{"line":117,"column":19}},"62":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"63":{"start":{"line":118,"column":17},"end":{"line":118,"column":18}},"64":{"start":{"line":119,"column":6},"end":{"line":119,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"67":{"start":{"line":128,"column":8},"end":{"line":128,"column":26}},"68":{"start":{"line":129,"column":6},"end":{"line":129,"column":29}},"69":{"start":{"line":131,"column":6},"end":{"line":131,"column":30}},"70":{"start":{"line":132,"column":6},"end":{"line":132,"column":25}},"71":{"start":{"line":136,"column":2},"end":{"line":136,"column":22}},"72":{"start":{"line":140,"column":0},"end":{"line":285,"column":1}},"73":{"start":{"line":141,"column":15},"end":{"line":141,"column":31}},"74":{"start":{"line":142,"column":13},"end":{"line":142,"column":17}},"75":{"start":{"line":147,"column":13},"end":{"line":147,"column":18}},"76":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"77":{"start":{"line":150,"column":12},"end":{"line":150,"column":41}},"78":{"start":{"line":151,"column":4},"end":{"line":151,"column":21}},"79":{"start":{"line":152,"column":4},"end":{"line":152,"column":37}},"80":{"start":{"line":153,"column":4},"end":{"line":153,"column":37}},"81":{"start":{"line":154,"column":4},"end":{"line":154,"column":32}},"82":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"83":{"start":{"line":171,"column":6},"end":{"line":171,"column":23}},"84":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"85":{"start":{"line":173,"column":6},"end":{"line":173,"column":11}},"86":{"start":{"line":177,"column":6},"end":{"line":177,"column":32}},"87":{"start":{"line":178,"column":6},"end":{"line":183,"column":7}},"88":{"start":{"line":179,"column":8},"end":{"line":179,"column":41}},"89":{"start":{"line":180,"column":8},"end":{"line":182,"column":10}},"90":{"start":{"line":181,"column":10},"end":{"line":181,"column":43}},"91":{"start":{"line":184,"column":6},"end":{"line":184,"column":33}},"92":{"start":{"line":185,"column":6},"end":{"line":185,"column":17}},"93":{"start":{"line":186,"column":6},"end":{"line":186,"column":11}},"94":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"95":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"96":{"start":{"line":193,"column":8},"end":{"line":193,"column":37}},"97":{"start":{"line":195,"column":6},"end":{"line":195,"column":27}},"98":{"start":{"line":196,"column":6},"end":{"line":196,"column":17}},"99":{"start":{"line":197,"column":6},"end":{"line":197,"column":11}},"100":{"start":{"line":201,"column":6},"end":{"line":201,"column":29}},"101":{"start":{"line":202,"column":6},"end":{"line":205,"column":7}},"102":{"start":{"line":203,"column":8},"end":{"line":203,"column":45}},"103":{"start":{"line":204,"column":8},"end":{"line":204,"column":44}},"104":{"start":{"line":206,"column":6},"end":{"line":206,"column":25}},"105":{"start":{"line":207,"column":6},"end":{"line":207,"column":17}},"106":{"start":{"line":208,"column":6},"end":{"line":208,"column":11}},"107":{"start":{"line":213,"column":6},"end":{"line":213,"column":29}},"108":{"start":{"line":214,"column":6},"end":{"line":217,"column":7}},"109":{"start":{"line":215,"column":8},"end":{"line":215,"column":45}},"110":{"start":{"line":216,"column":8},"end":{"line":216,"column":40}},"111":{"start":{"line":218,"column":6},"end":{"line":218,"column":21}},"112":{"start":{"line":219,"column":6},"end":{"line":219,"column":17}},"113":{"start":{"line":220,"column":6},"end":{"line":220,"column":11}},"114":{"start":{"line":226,"column":6},"end":{"line":226,"column":23}},"115":{"start":{"line":227,"column":6},"end":{"line":227,"column":25}},"116":{"start":{"line":228,"column":6},"end":{"line":228,"column":11}},"117":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"118":{"start":{"line":233,"column":4},"end":{"line":233,"column":28}},"119":{"start":{"line":235,"column":17},"end":{"line":235,"column":29}},"120":{"start":{"line":236,"column":19},"end":{"line":236,"column":33}},"121":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"122":{"start":{"line":242,"column":2},"end":{"line":242,"column":49}},"123":{"start":{"line":243,"column":2},"end":{"line":243,"column":19}},"124":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"125":{"start":{"line":247,"column":4},"end":{"line":249,"column":6}},"126":{"start":{"line":248,"column":6},"end":{"line":248,"column":24}},"127":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"128":{"start":{"line":252,"column":13},"end":{"line":252,"column":35}},"129":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"130":{"start":{"line":255,"column":4},"end":{"line":255,"column":23}},"131":{"start":{"line":258,"column":2},"end":{"line":258,"column":21}},"132":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"133":{"start":{"line":261,"column":4},"end":{"line":261,"column":39}},"134":{"start":{"line":264,"column":11},"end":{"line":264,"column":15}},"135":{"start":{"line":266,"column":2},"end":{"line":268,"column":4}},"136":{"start":{"line":267,"column":4},"end":{"line":267,"column":14}},"137":{"start":{"line":270,"column":2},"end":{"line":272,"column":4}},"138":{"start":{"line":271,"column":4},"end":{"line":271,"column":15}},"139":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"140":{"start":{"line":275,"column":4},"end":{"line":275,"column":29}},"141":{"start":{"line":278,"column":2},"end":{"line":278,"column":22}},"142":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"143":{"start":{"line":282,"column":4},"end":{"line":282,"column":15}},"144":{"start":{"line":283,"column":4},"end":{"line":283,"column":22}}},"fnMap":{"0":{"name":"Parse","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":14}},"loc":{"start":{"line":27,"column":18},"end":{"line":58,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":25},"end":{"line":43,"column":26}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":24},"end":{"line":47,"column":25}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":51,"column":23},"end":{"line":51,"column":24}},"loc":{"start":{"line":51,"column":35},"end":{"line":53,"column":3}},"line":51},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":25},"end":{"line":55,"column":26}},"loc":{"start":{"line":55,"column":37},"end":{"line":57,"column":3}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":29},"end":{"line":63,"column":30}},"loc":{"start":{"line":63,"column":41},"end":{"line":67,"column":1}},"line":63},"6":{"name":"(anonymous_6)","decl":{"start":{"line":72,"column":24},"end":{"line":72,"column":25}},"loc":{"start":{"line":72,"column":37},"end":{"line":83,"column":1}},"line":72},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":22},"end":{"line":85,"column":23}},"loc":{"start":{"line":85,"column":35},"end":{"line":88,"column":1}},"line":85},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},"loc":{"start":{"line":94,"column":36},"end":{"line":94,"column":38}},"line":94},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":27},"end":{"line":96,"column":28}},"loc":{"start":{"line":96,"column":40},"end":{"line":137,"column":1}},"line":96},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":30},"end":{"line":140,"column":31}},"loc":{"start":{"line":140,"column":43},"end":{"line":285,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":178,"column":14},"end":{"line":178,"column":15}},"loc":{"start":{"line":178,"column":26},"end":{"line":183,"column":7}},"line":178},"12":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":42},"end":{"line":180,"column":43}},"loc":{"start":{"line":180,"column":55},"end":{"line":182,"column":9}},"line":180},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":14},"end":{"line":192,"column":15}},"loc":{"start":{"line":192,"column":26},"end":{"line":194,"column":7}},"line":192},"14":{"name":"(anonymous_14)","decl":{"start":{"line":202,"column":14},"end":{"line":202,"column":15}},"loc":{"start":{"line":202,"column":26},"end":{"line":205,"column":7}},"line":202},"15":{"name":"(anonymous_15)","decl":{"start":{"line":214,"column":14},"end":{"line":214,"column":15}},"loc":{"start":{"line":214,"column":26},"end":{"line":217,"column":7}},"line":214},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":21},"end":{"line":247,"column":22}},"loc":{"start":{"line":247,"column":34},"end":{"line":249,"column":5}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":266,"column":20},"end":{"line":266,"column":21}},"loc":{"start":{"line":266,"column":32},"end":{"line":268,"column":3}},"line":266},"18":{"name":"(anonymous_18)","decl":{"start":{"line":270,"column":21},"end":{"line":270,"column":22}},"loc":{"start":{"line":270,"column":33},"end":{"line":272,"column":3}},"line":270}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},{"start":{"line":29,"column":2},"end":{"line":29,"column":48}}],"line":29},"1":{"loc":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"type":"if","locations":[{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},{"start":{"line":65,"column":2},"end":{"line":65,"column":57}}],"line":65},"2":{"loc":{"start":{"line":65,"column":6},"end":{"line":65,"column":29}},"type":"binary-expr","locations":[{"start":{"line":65,"column":6},"end":{"line":65,"column":16}},{"start":{"line":65,"column":20},"end":{"line":65,"column":29}}],"line":65},"3":{"loc":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},{"start":{"line":73,"column":2},"end":{"line":81,"column":3}}],"line":73},"4":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},{"start":{"line":78,"column":6},"end":{"line":78,"column":62}}],"line":78},"5":{"loc":{"start":{"line":97,"column":9},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":9},"end":{"line":97,"column":10}},{"start":{"line":97,"column":14},"end":{"line":97,"column":30}}],"line":97},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},{"start":{"line":104,"column":2},"end":{"line":134,"column":3}}],"line":104},"7":{"loc":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},{"start":{"line":106,"column":4},"end":{"line":110,"column":5}}],"line":106},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},{"start":{"line":109,"column":6},"end":{"line":109,"column":51}}],"line":109},"9":{"loc":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},{"start":{"line":111,"column":4},"end":{"line":114,"column":5}}],"line":111},"10":{"loc":{"start":{"line":118,"column":20},"end":{"line":118,"column":35}},"type":"binary-expr","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":27}},{"start":{"line":118,"column":31},"end":{"line":118,"column":35}}],"line":118},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},{"start":{"line":126,"column":4},"end":{"line":133,"column":5}}],"line":126},"12":{"loc":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"type":"if","locations":[{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},{"start":{"line":127,"column":6},"end":{"line":128,"column":26}}],"line":127},"13":{"loc":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"type":"if","locations":[{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},{"start":{"line":149,"column":2},"end":{"line":155,"column":3}}],"line":149},"14":{"loc":{"start":{"line":149,"column":6},"end":{"line":149,"column":48}},"type":"binary-expr","locations":[{"start":{"line":149,"column":6},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":48}}],"line":149},"15":{"loc":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"type":"switch","locations":[{"start":{"line":158,"column":4},"end":{"line":158,"column":16}},{"start":{"line":159,"column":4},"end":{"line":159,"column":19}},{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},{"start":{"line":161,"column":4},"end":{"line":161,"column":24}},{"start":{"line":162,"column":4},"end":{"line":162,"column":27}},{"start":{"line":163,"column":4},"end":{"line":163,"column":23}},{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},{"start":{"line":166,"column":4},"end":{"line":166,"column":26}},{"start":{"line":167,"column":4},"end":{"line":173,"column":11}},{"start":{"line":175,"column":4},"end":{"line":186,"column":11}},{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},{"start":{"line":189,"column":4},"end":{"line":197,"column":11}},{"start":{"line":199,"column":4},"end":{"line":208,"column":11}},{"start":{"line":210,"column":4},"end":{"line":210,"column":31}},{"start":{"line":211,"column":4},"end":{"line":220,"column":11}},{"start":{"line":222,"column":4},"end":{"line":228,"column":11}}],"line":157},"16":{"loc":{"start":{"line":179,"column":23},"end":{"line":179,"column":41}},"type":"binary-expr","locations":[{"start":{"line":179,"column":23},"end":{"line":179,"column":35}},{"start":{"line":179,"column":39},"end":{"line":179,"column":41}}],"line":179},"17":{"loc":{"start":{"line":203,"column":25},"end":{"line":203,"column":45}},"type":"binary-expr","locations":[{"start":{"line":203,"column":25},"end":{"line":203,"column":39}},{"start":{"line":203,"column":43},"end":{"line":203,"column":45}}],"line":203},"18":{"loc":{"start":{"line":215,"column":25},"end":{"line":215,"column":45}},"type":"binary-expr","locations":[{"start":{"line":215,"column":25},"end":{"line":215,"column":39}},{"start":{"line":215,"column":43},"end":{"line":215,"column":45}}],"line":215},"19":{"loc":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"type":"if","locations":[{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},{"start":{"line":232,"column":2},"end":{"line":241,"column":3}}],"line":232},"20":{"loc":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"type":"if","locations":[{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},{"start":{"line":246,"column":2},"end":{"line":250,"column":3}}],"line":246},"21":{"loc":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},{"start":{"line":252,"column":2},"end":{"line":252,"column":35}}],"line":252},"22":{"loc":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"type":"if","locations":[{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},{"start":{"line":254,"column":2},"end":{"line":256,"column":3}}],"line":254},"23":{"loc":{"start":{"line":254,"column":6},"end":{"line":254,"column":58}},"type":"binary-expr","locations":[{"start":{"line":254,"column":6},"end":{"line":254,"column":27}},{"start":{"line":254,"column":31},"end":{"line":254,"column":58}}],"line":254},"24":{"loc":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"type":"if","locations":[{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},{"start":{"line":260,"column":2},"end":{"line":262,"column":3}}],"line":260},"25":{"loc":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"type":"if","locations":[{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},{"start":{"line":274,"column":2},"end":{"line":276,"column":3}}],"line":274},"26":{"loc":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"type":"if","locations":[{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},{"start":{"line":281,"column":2},"end":{"line":284,"column":3}}],"line":281}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":0,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":0,"25":1,"26":36,"27":1,"28":1,"29":1,"30":1,"31":1,"32":0,"33":0,"34":0,"35":0,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":36,"51":36,"52":17,"53":17,"54":17,"55":0,"56":0,"57":0,"58":17,"59":15,"60":15,"61":19,"62":19,"63":19,"64":1041,"65":19,"66":2,"67":1,"68":2,"69":17,"70":17,"71":36,"72":1,"73":17,"74":17,"75":17,"76":17,"77":0,"78":0,"79":0,"80":0,"81":0,"82":17,"83":10,"84":10,"85":10,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":4,"95":4,"96":4,"97":4,"98":4,"99":4,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":2,"108":2,"109":2,"110":2,"111":2,"112":2,"113":2,"114":0,"115":0,"116":0,"117":17,"118":7,"119":10,"120":10,"121":10,"122":17,"123":17,"124":17,"125":10,"126":10,"127":17,"128":7,"129":17,"130":0,"131":17,"132":17,"133":1,"134":17,"135":17,"136":10,"137":17,"138":20,"139":17,"140":0,"141":17,"142":17,"143":2,"144":2},"f":{"0":1,"1":0,"2":36,"3":1,"4":1,"5":0,"6":1,"7":1,"8":22,"9":36,"10":17,"11":0,"12":0,"13":4,"14":1,"15":2,"16":10,"17":10,"18":20},"b":{"0":[0,1],"1":[0,0],"2":[0,0],"3":[0,1],"4":[0,0],"5":[36,36],"6":[17,19],"7":[17,0],"8":[0,0],"9":[15,2],"10":[1060,1058],"11":[2,17],"12":[1,1],"13":[0,17],"14":[17,17],"15":[8,8,9,10,10,10,10,10,10,10,0,4,4,1,2,2,0],"16":[0,0],"17":[1,1],"18":[2,1],"19":[7,10],"20":[10,7],"21":[7,10],"22":[0,17],"23":[17,8],"24":[1,16],"25":[0,17],"26":[2,15]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4a8f51a3a12b59eb69694618530032a813fbf8cb","contentHash":"d347e73abcd3109143efee20401d9f0bfc6d68a4a6323bd4559ada44c741786a"},"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/buffer-entry.js","statementMap":{"0":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}},"1":{"start":{"line":10,"column":15},"end":{"line":10,"column":34}},"2":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":30}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":44}},"5":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"6":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"7":{"start":{"line":18,"column":2},"end":{"line":20,"column":4}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"9":{"start":{"line":23,"column":0},"end":{"line":23,"column":28}},"10":{"start":{"line":26,"column":0},"end":{"line":30,"column":1}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":36}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":26}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":37}}},"fnMap":{"0":{"name":"BufferEntry","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":20}},"loc":{"start":{"line":13,"column":24},"end":{"line":21,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":29},"end":{"line":20,"column":3}},"line":18},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":30},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":43},"end":{"line":30,"column":1}},"line":26}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":3,"4":3,"5":3,"6":3,"7":3,"8":3,"9":1,"10":1,"11":3,"12":3,"13":3},"f":{"0":3,"1":3,"2":3},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"d8ad66df900443c9c9d8aefe5fc126a55ba268ec","contentHash":"25e5b3c51e476fcffac7affa191a0ed0f54d64d3d3b760e887bd45ba08fffa65"},"/Users/isaacs/dev/js/tar/lib/extended-header.js":{"path":"/Users/isaacs/dev/js/tar/lib/extended-header.js","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"1":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"2":{"start":{"line":12,"column":15},"end":{"line":12,"column":34}},"3":{"start":{"line":13,"column":10},"end":{"line":13,"column":30}},"4":{"start":{"line":14,"column":14},"end":{"line":14,"column":25}},"5":{"start":{"line":15,"column":15},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":30}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":18}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":20}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"13":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"14":{"start":{"line":28,"column":2},"end":{"line":28,"column":19}},"15":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":16}},"17":{"start":{"line":33,"column":0},"end":{"line":33,"column":31}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":39}},"19":{"start":{"line":36,"column":8},"end":{"line":36,"column":9}},"20":{"start":{"line":37,"column":13},"end":{"line":37,"column":39}},"21":{"start":{"line":38,"column":11},"end":{"line":38,"column":28}},"22":{"start":{"line":39,"column":11},"end":{"line":39,"column":28}},"23":{"start":{"line":40,"column":11},"end":{"line":40,"column":28}},"24":{"start":{"line":41,"column":11},"end":{"line":41,"column":28}},"25":{"start":{"line":43,"column":0},"end":{"line":45,"column":2}},"26":{"start":{"line":44,"column":2},"end":{"line":44,"column":31}},"27":{"start":{"line":47,"column":0},"end":{"line":47,"column":16}},"28":{"start":{"line":50,"column":9},"end":{"line":50,"column":26}},"29":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"31":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"32":{"start":{"line":54,"column":8},"end":{"line":54,"column":25}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":25}},"34":{"start":{"line":56,"column":8},"end":{"line":56,"column":25}},"35":{"start":{"line":57,"column":12},"end":{"line":57,"column":29}},"36":{"start":{"line":58,"column":9},"end":{"line":58,"column":26}},"37":{"start":{"line":59,"column":9},"end":{"line":59,"column":27}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"39":{"start":{"line":62,"column":27},"end":{"line":62,"column":33}},"40":{"start":{"line":64,"column":2},"end":{"line":130,"column":3}},"41":{"start":{"line":64,"column":16},"end":{"line":64,"column":17}},"42":{"start":{"line":64,"column":23},"end":{"line":64,"column":31}},"43":{"start":{"line":69,"column":12},"end":{"line":69,"column":16}},"44":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"45":{"start":{"line":72,"column":6},"end":{"line":72,"column":53}},"46":{"start":{"line":73,"column":6},"end":{"line":73,"column":12}},"47":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"48":{"start":{"line":77,"column":16},"end":{"line":77,"column":22}},"49":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"50":{"start":{"line":82,"column":10},"end":{"line":82,"column":27}},"51":{"start":{"line":84,"column":10},"end":{"line":84,"column":73}},"52":{"start":{"line":85,"column":10},"end":{"line":85,"column":34}},"53":{"start":{"line":86,"column":10},"end":{"line":86,"column":18}},"54":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"55":{"start":{"line":89,"column":10},"end":{"line":89,"column":68}},"56":{"start":{"line":90,"column":10},"end":{"line":90,"column":16}},"57":{"start":{"line":92,"column":8},"end":{"line":92,"column":29}},"58":{"start":{"line":93,"column":8},"end":{"line":93,"column":16}},"59":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"60":{"start":{"line":98,"column":10},"end":{"line":98,"column":27}},"61":{"start":{"line":99,"column":10},"end":{"line":99,"column":57}},"62":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"63":{"start":{"line":100,"column":35},"end":{"line":100,"column":66}},"64":{"start":{"line":101,"column":10},"end":{"line":101,"column":33}},"65":{"start":{"line":102,"column":10},"end":{"line":102,"column":18}},"66":{"start":{"line":104,"column":8},"end":{"line":104,"column":28}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":16}},"68":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"69":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"70":{"start":{"line":112,"column":12},"end":{"line":112,"column":55}},"71":{"start":{"line":113,"column":12},"end":{"line":113,"column":18}},"72":{"start":{"line":115,"column":20},"end":{"line":115,"column":55}},"73":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"74":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"75":{"start":{"line":119,"column":10},"end":{"line":119,"column":38}},"76":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"77":{"start":{"line":122,"column":10},"end":{"line":122,"column":28}},"78":{"start":{"line":123,"column":10},"end":{"line":123,"column":25}},"79":{"start":{"line":124,"column":10},"end":{"line":124,"column":29}},"80":{"start":{"line":125,"column":10},"end":{"line":125,"column":18}},"81":{"start":{"line":127,"column":8},"end":{"line":127,"column":28}},"82":{"start":{"line":128,"column":8},"end":{"line":128,"column":16}},"83":{"start":{"line":134,"column":2},"end":{"line":136,"column":42}},"84":{"start":{"line":138,"column":2},"end":{"line":138,"column":15}},"85":{"start":{"line":139,"column":2},"end":{"line":139,"column":16}}},"fnMap":{"0":{"name":"ExtendedHeader","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":23}},"loc":{"start":{"line":19,"column":27},"end":{"line":31,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":28},"end":{"line":43,"column":29}},"loc":{"start":{"line":43,"column":41},"end":{"line":45,"column":1}},"line":43},"2":{"name":"parse","decl":{"start":{"line":61,"column":9},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":19},"end":{"line":131,"column":1}},"line":61},"3":{"name":"error","decl":{"start":{"line":133,"column":9},"end":{"line":133,"column":14}},"loc":{"start":{"line":133,"column":25},"end":{"line":140,"column":1}},"line":133}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},{"start":{"line":62,"column":2},"end":{"line":62,"column":33}}],"line":62},"1":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":54}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":23}},{"start":{"line":71,"column":27},"end":{"line":71,"column":54}}],"line":71},"3":{"loc":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"type":"switch","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":22}},{"start":{"line":79,"column":6},"end":{"line":93,"column":16}},{"start":{"line":95,"column":6},"end":{"line":105,"column":16}},{"start":{"line":107,"column":6},"end":{"line":128,"column":16}}],"line":76},"4":{"loc":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},{"start":{"line":81,"column":8},"end":{"line":87,"column":9}}],"line":81},"5":{"loc":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"type":"if","locations":[{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},{"start":{"line":88,"column":8},"end":{"line":91,"column":9}}],"line":88},"6":{"loc":{"start":{"line":88,"column":12},"end":{"line":88,"column":28}},"type":"binary-expr","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":18}},{"start":{"line":88,"column":22},"end":{"line":88,"column":28}}],"line":88},"7":{"loc":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},{"start":{"line":97,"column":8},"end":{"line":103,"column":9}}],"line":97},"8":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},{"start":{"line":100,"column":10},"end":{"line":100,"column":66}}],"line":100},"9":{"loc":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},{"start":{"line":109,"column":8},"end":{"line":126,"column":9}}],"line":109},"10":{"loc":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"type":"if","locations":[{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},{"start":{"line":111,"column":10},"end":{"line":114,"column":11}}],"line":111},"11":{"loc":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"type":"if","locations":[{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},{"start":{"line":116,"column":10},"end":{"line":118,"column":11}}],"line":116}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":4,"7":4,"8":4,"9":4,"10":4,"11":4,"12":4,"13":4,"14":4,"15":4,"16":4,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":4,"39":0,"40":4,"41":4,"42":4,"43":969,"44":969,"45":0,"46":0,"47":969,"48":0,"49":80,"50":26,"51":26,"52":26,"53":26,"54":54,"55":0,"56":0,"57":54,"58":54,"59":275,"60":26,"61":26,"62":26,"63":12,"64":26,"65":26,"66":249,"67":249,"68":614,"69":26,"70":0,"71":0,"72":26,"73":26,"74":20,"75":26,"76":26,"77":26,"78":26,"79":26,"80":26,"81":588,"82":588,"83":0,"84":0,"85":0},"f":{"0":4,"1":4,"2":4,"3":0},"b":{"0":[0,4],"1":[0,969],"2":[969,889],"3":[0,80,275,614],"4":[26,54],"5":[0,54],"6":[54,54],"7":[26,249],"8":[12,14],"9":[26,588],"10":[0,26],"11":[20,6]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"77cb382c69a46833a08275dbc55bf34db0dcd796","contentHash":"78a790af1726a774425fb478f1423068fe64414b747d89b597baf45139e7ae3d"},"/Users/isaacs/dev/js/tar/lib/extract.js":{"path":"/Users/isaacs/dev/js/tar/lib/extract.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":24}},"1":{"start":{"line":5,"column":10},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":14},"end":{"line":6,"column":32}},"3":{"start":{"line":7,"column":15},"end":{"line":7,"column":34}},"4":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":58}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"8":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"9":{"start":{"line":15,"column":4},"end":{"line":15,"column":25}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":25}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"15":{"start":{"line":25,"column":38},"end":{"line":25,"column":52}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"17":{"start":{"line":29,"column":2},"end":{"line":29,"column":14}},"18":{"start":{"line":30,"column":11},"end":{"line":30,"column":15}},"19":{"start":{"line":35,"column":2},"end":{"line":60,"column":4}},"20":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"21":{"start":{"line":39,"column":14},"end":{"line":39,"column":63}},"22":{"start":{"line":40,"column":6},"end":{"line":40,"column":39}},"23":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"24":{"start":{"line":42,"column":17},"end":{"line":42,"column":70}},"25":{"start":{"line":43,"column":8},"end":{"line":43,"column":50}},"26":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"27":{"start":{"line":47,"column":6},"end":{"line":48,"column":66}},"28":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"29":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"30":{"start":{"line":53,"column":21},"end":{"line":53,"column":41}},"31":{"start":{"line":54,"column":19},"end":{"line":54,"column":56}},"32":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"33":{"start":{"line":56,"column":8},"end":{"line":56,"column":65}},"34":{"start":{"line":58,"column":6},"end":{"line":58,"column":54}},"35":{"start":{"line":62,"column":2},"end":{"line":65,"column":4}},"36":{"start":{"line":63,"column":4},"end":{"line":63,"column":36}},"37":{"start":{"line":64,"column":4},"end":{"line":64,"column":15}},"38":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":25}},"40":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"41":{"start":{"line":72,"column":4},"end":{"line":72,"column":20}},"42":{"start":{"line":79,"column":2},"end":{"line":84,"column":4}},"43":{"start":{"line":81,"column":4},"end":{"line":81,"column":21}},"44":{"start":{"line":82,"column":4},"end":{"line":82,"column":18}},"45":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"46":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}},"47":{"start":{"line":89,"column":0},"end":{"line":94,"column":1}},"48":{"start":{"line":90,"column":11},"end":{"line":90,"column":15}},"49":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"50":{"start":{"line":91,"column":31},"end":{"line":91,"column":57}},"51":{"start":{"line":92,"column":2},"end":{"line":92,"column":15}}},"fnMap":{"0":{"name":"Extract","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":85,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":34},"end":{"line":60,"column":3}},"line":35},"2":{"name":"(anonymous_2)","decl":{"start":{"line":62,"column":24},"end":{"line":62,"column":25}},"loc":{"start":{"line":62,"column":36},"end":{"line":65,"column":3}},"line":62},"3":{"name":"(anonymous_3)","decl":{"start":{"line":67,"column":24},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":38},"end":{"line":69,"column":3}},"line":67},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":35},"end":{"line":73,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":24},"end":{"line":79,"column":25}},"loc":{"start":{"line":79,"column":36},"end":{"line":84,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":31},"end":{"line":89,"column":32}},"loc":{"start":{"line":89,"column":43},"end":{"line":94,"column":1}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},{"start":{"line":11,"column":2},"end":{"line":11,"column":58}}],"line":11},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"type":"binary-expr","locations":[{"start":{"line":19,"column":14},"end":{"line":19,"column":23}},{"start":{"line":19,"column":27},"end":{"line":19,"column":59}}],"line":19},"3":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},{"start":{"line":25,"column":2},"end":{"line":25,"column":52}}],"line":25},"4":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":36}},"type":"binary-expr","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":17}},{"start":{"line":25,"column":21},"end":{"line":25,"column":36}}],"line":25},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"6":{"loc":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},{"start":{"line":41,"column":6},"end":{"line":44,"column":7}}],"line":41},"7":{"loc":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}}],"line":46},"8":{"loc":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},{"start":{"line":51,"column":4},"end":{"line":59,"column":5}}],"line":51},"9":{"loc":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"type":"binary-expr","locations":[{"start":{"line":52,"column":15},"end":{"line":52,"column":39}},{"start":{"line":52,"column":43},"end":{"line":52,"column":45}}],"line":52},"10":{"loc":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},{"start":{"line":55,"column":6},"end":{"line":57,"column":7}}],"line":55},"11":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},{"start":{"line":91,"column":2},"end":{"line":91,"column":57}}],"line":91},"12":{"loc":{"start":{"line":91,"column":6},"end":{"line":91,"column":29}},"type":"binary-expr","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":16}},{"start":{"line":91,"column":20},"end":{"line":91,"column":29}}],"line":91}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":2,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":10,"21":0,"22":0,"23":0,"24":0,"25":0,"26":10,"27":1,"28":10,"29":1,"30":1,"31":1,"32":1,"33":0,"34":1,"35":1,"36":1,"37":1,"38":1,"39":0,"40":1,"41":1,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":0,"51":1},"f":{"0":2,"1":10,"2":1,"3":0,"4":1,"5":1,"6":1},"b":{"0":[1,1],"1":[1,0],"2":[1,0],"3":[1,0],"4":[1,0],"5":[0,10],"6":[0,0],"7":[1,9],"8":[1,9],"9":[1,0],"10":[0,1],"11":[0,1],"12":[1,1]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3fb9f60facc409fe944dc36bd2e14fc6153e403d","contentHash":"3d9485ca58c6c768b022a39d276296b53647ccf39986885459406e933921c962"}} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/ea0194cb-f599-402f-8876-84fb8251e8db.json b/node_modules/tar/.nyc_output/ea0194cb-f599-402f-8876-84fb8251e8db.json
deleted file mode 100644
index 9e26dfe..0000000
--- a/node_modules/tar/.nyc_output/ea0194cb-f599-402f-8876-84fb8251e8db.json
+++ /dev/null
@@ -1 +0,0 @@
-{} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/eda6b7a3-5e15-440f-8619-e11a15a07f77.json b/node_modules/tar/.nyc_output/eda6b7a3-5e15-440f-8619-e11a15a07f77.json
deleted file mode 100644
index 750861f..0000000
--- a/node_modules/tar/.nyc_output/eda6b7a3-5e15-440f-8619-e11a15a07f77.json
+++ /dev/null
@@ -1 +0,0 @@
-{"/Users/isaacs/dev/js/tar/lib/pack.js":{"path":"/Users/isaacs/dev/js/tar/lib/pack.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"1":{"start":{"line":6,"column":18},"end":{"line":6,"column":46}},"2":{"start":{"line":7,"column":13},"end":{"line":7,"column":37}},"3":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"4":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"5":{"start":{"line":10,"column":25},"end":{"line":10,"column":61}},"6":{"start":{"line":11,"column":14},"end":{"line":11,"column":40}},"7":{"start":{"line":12,"column":10},"end":{"line":12,"column":25}},"8":{"start":{"line":14,"column":0},"end":{"line":14,"column":41}},"9":{"start":{"line":14,"column":13},"end":{"line":14,"column":14}},"10":{"start":{"line":14,"column":31},"end":{"line":14,"column":41}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":22}},"12":{"start":{"line":20,"column":11},"end":{"line":20,"column":15}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"14":{"start":{"line":21,"column":29},"end":{"line":21,"column":51}},"15":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"16":{"start":{"line":23,"column":13},"end":{"line":23,"column":52}},"17":{"start":{"line":24,"column":7},"end":{"line":24,"column":32}},"18":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"19":{"start":{"line":28,"column":2},"end":{"line":28,"column":20}},"20":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"21":{"start":{"line":30,"column":2},"end":{"line":30,"column":17}},"22":{"start":{"line":32,"column":2},"end":{"line":32,"column":25}},"23":{"start":{"line":33,"column":2},"end":{"line":33,"column":24}},"24":{"start":{"line":35,"column":2},"end":{"line":35,"column":21}},"25":{"start":{"line":36,"column":2},"end":{"line":43,"column":4}},"26":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"27":{"start":{"line":37,"column":35},"end":{"line":37,"column":41}},"28":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"29":{"start":{"line":39,"column":4},"end":{"line":41,"column":6}},"30":{"start":{"line":40,"column":6},"end":{"line":40,"column":25}},"31":{"start":{"line":42,"column":4},"end":{"line":42,"column":15}},"32":{"start":{"line":46,"column":0},"end":{"line":57,"column":1}},"33":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"34":{"start":{"line":48,"column":23},"end":{"line":48,"column":29}},"35":{"start":{"line":49,"column":2},"end":{"line":49,"column":24}},"36":{"start":{"line":51,"column":11},"end":{"line":51,"column":15}},"37":{"start":{"line":52,"column":2},"end":{"line":56,"column":10}},"38":{"start":{"line":54,"column":6},"end":{"line":54,"column":24}},"39":{"start":{"line":59,"column":0},"end":{"line":69,"column":1}},"40":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"41":{"start":{"line":60,"column":40},"end":{"line":60,"column":68}},"42":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"43":{"start":{"line":62,"column":19},"end":{"line":62,"column":72}},"44":{"start":{"line":64,"column":2},"end":{"line":64,"column":17}},"45":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"46":{"start":{"line":66,"column":2},"end":{"line":66,"column":17}},"47":{"start":{"line":67,"column":2},"end":{"line":67,"column":43}},"48":{"start":{"line":68,"column":2},"end":{"line":68,"column":25}},"49":{"start":{"line":71,"column":0},"end":{"line":75,"column":1}},"50":{"start":{"line":72,"column":2},"end":{"line":72,"column":21}},"51":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"52":{"start":{"line":73,"column":26},"end":{"line":73,"column":52}},"53":{"start":{"line":74,"column":2},"end":{"line":74,"column":20}},"54":{"start":{"line":77,"column":0},"end":{"line":82,"column":1}},"55":{"start":{"line":78,"column":2},"end":{"line":78,"column":22}},"56":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"57":{"start":{"line":79,"column":26},"end":{"line":79,"column":53}},"58":{"start":{"line":80,"column":2},"end":{"line":80,"column":21}},"59":{"start":{"line":81,"column":2},"end":{"line":81,"column":17}},"60":{"start":{"line":84,"column":0},"end":{"line":88,"column":1}},"61":{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},"62":{"start":{"line":86,"column":2},"end":{"line":86,"column":24}},"63":{"start":{"line":87,"column":2},"end":{"line":87,"column":17}},"64":{"start":{"line":90,"column":0},"end":{"line":233,"column":1}},"65":{"start":{"line":91,"column":11},"end":{"line":91,"column":15}},"66":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"67":{"start":{"line":93,"column":4},"end":{"line":93,"column":10}},"68":{"start":{"line":96,"column":14},"end":{"line":96,"column":32}},"69":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"70":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"71":{"start":{"line":100,"column":6},"end":{"line":100,"column":22}},"72":{"start":{"line":102,"column":4},"end":{"line":102,"column":10}},"73":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"74":{"start":{"line":107,"column":4},"end":{"line":107,"column":29}},"75":{"start":{"line":108,"column":4},"end":{"line":111,"column":6}},"76":{"start":{"line":110,"column":6},"end":{"line":110,"column":19}},"77":{"start":{"line":112,"column":4},"end":{"line":112,"column":10}},"78":{"start":{"line":115,"column":2},"end":{"line":115,"column":23}},"79":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"80":{"start":{"line":119,"column":4},"end":{"line":119,"column":24}},"81":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"82":{"start":{"line":121,"column":4},"end":{"line":121,"column":18}},"83":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"84":{"start":{"line":123,"column":4},"end":{"line":123,"column":10}},"85":{"start":{"line":134,"column":13},"end":{"line":134,"column":53}},"86":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"87":{"start":{"line":137,"column":4},"end":{"line":137,"column":27}},"88":{"start":{"line":140,"column":15},"end":{"line":140,"column":17}},"89":{"start":{"line":142,"column":2},"end":{"line":144,"column":4}},"90":{"start":{"line":143,"column":4},"end":{"line":143,"column":30}},"91":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"92":{"start":{"line":146,"column":25},"end":{"line":146,"column":52}},"93":{"start":{"line":148,"column":2},"end":{"line":148,"column":53}},"94":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"95":{"start":{"line":152,"column":4},"end":{"line":152,"column":49}},"96":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"97":{"start":{"line":156,"column":4},"end":{"line":156,"column":29}},"98":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"99":{"start":{"line":161,"column":6},"end":{"line":161,"column":12}},"100":{"start":{"line":164,"column":6},"end":{"line":164,"column":24}},"101":{"start":{"line":165,"column":6},"end":{"line":165,"column":21}},"102":{"start":{"line":166,"column":6},"end":{"line":166,"column":11}},"103":{"start":{"line":169,"column":15},"end":{"line":169,"column":69}},"104":{"start":{"line":170,"column":6},"end":{"line":170,"column":54}},"105":{"start":{"line":171,"column":6},"end":{"line":171,"column":21}},"106":{"start":{"line":172,"column":6},"end":{"line":172,"column":11}},"107":{"start":{"line":175,"column":15},"end":{"line":175,"column":69}},"108":{"start":{"line":176,"column":6},"end":{"line":176,"column":74}},"109":{"start":{"line":177,"column":6},"end":{"line":177,"column":21}},"110":{"start":{"line":178,"column":6},"end":{"line":178,"column":11}},"111":{"start":{"line":187,"column":15},"end":{"line":187,"column":53}},"112":{"start":{"line":189,"column":2},"end":{"line":189,"column":20}},"113":{"start":{"line":195,"column":2},"end":{"line":197,"column":4}},"114":{"start":{"line":196,"column":4},"end":{"line":196,"column":22}},"115":{"start":{"line":199,"column":2},"end":{"line":205,"column":4}},"116":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"117":{"start":{"line":201,"column":6},"end":{"line":201,"column":50}},"118":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"119":{"start":{"line":204,"column":33},"end":{"line":204,"column":44}},"120":{"start":{"line":206,"column":2},"end":{"line":206,"column":31}},"121":{"start":{"line":208,"column":14},"end":{"line":208,"column":19}},"122":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"123":{"start":{"line":210,"column":15},"end":{"line":210,"column":21}},"124":{"start":{"line":211,"column":4},"end":{"line":211,"column":16}},"125":{"start":{"line":215,"column":4},"end":{"line":215,"column":27}},"126":{"start":{"line":216,"column":4},"end":{"line":216,"column":26}},"127":{"start":{"line":217,"column":4},"end":{"line":217,"column":17}},"128":{"start":{"line":220,"column":2},"end":{"line":223,"column":4}},"129":{"start":{"line":222,"column":4},"end":{"line":222,"column":24}},"130":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"131":{"start":{"line":229,"column":4},"end":{"line":229,"column":21}},"132":{"start":{"line":232,"column":2},"end":{"line":232,"column":20}},"133":{"start":{"line":235,"column":0},"end":{"line":235,"column":39}},"134":{"start":{"line":236,"column":0},"end":{"line":236,"column":37}}},"fnMap":{"0":{"name":"Pack","decl":{"start":{"line":18,"column":9},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":22},"end":{"line":44,"column":1}},"line":18},"1":{"name":"(anonymous_1)","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":31},"end":{"line":43,"column":3}},"line":36},"2":{"name":"(anonymous_2)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":30},"end":{"line":41,"column":5}},"line":39},"3":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":28}},"loc":{"start":{"line":46,"column":44},"end":{"line":57,"column":1}},"line":46},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":29},"end":{"line":55,"column":5}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":39},"end":{"line":69,"column":1}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":23},"end":{"line":71,"column":24}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":77,"column":24},"end":{"line":77,"column":25}},"loc":{"start":{"line":77,"column":36},"end":{"line":82,"column":1}},"line":77},"8":{"name":"(anonymous_8)","decl":{"start":{"line":84,"column":21},"end":{"line":84,"column":22}},"loc":{"start":{"line":84,"column":33},"end":{"line":88,"column":1}},"line":84},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":26},"end":{"line":90,"column":27}},"loc":{"start":{"line":90,"column":38},"end":{"line":233,"column":1}},"line":90},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":22},"end":{"line":108,"column":23}},"loc":{"start":{"line":108,"column":34},"end":{"line":111,"column":5}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":142,"column":41},"end":{"line":142,"column":42}},"loc":{"start":{"line":142,"column":54},"end":{"line":144,"column":3}},"line":142},"12":{"name":"(anonymous_12)","decl":{"start":{"line":195,"column":20},"end":{"line":195,"column":21}},"loc":{"start":{"line":195,"column":33},"end":{"line":197,"column":3}},"line":195},"13":{"name":"(anonymous_13)","decl":{"start":{"line":199,"column":22},"end":{"line":199,"column":23}},"loc":{"start":{"line":199,"column":34},"end":{"line":205,"column":3}},"line":199},"14":{"name":"(anonymous_14)","decl":{"start":{"line":200,"column":30},"end":{"line":200,"column":31}},"loc":{"start":{"line":200,"column":42},"end":{"line":202,"column":5}},"line":200},"15":{"name":"nextEntry","decl":{"start":{"line":209,"column":11},"end":{"line":209,"column":20}},"loc":{"start":{"line":209,"column":24},"end":{"line":218,"column":3}},"line":209},"16":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":21},"end":{"line":220,"column":22}},"loc":{"start":{"line":220,"column":35},"end":{"line":223,"column":3}},"line":220},"17":{"name":"(anonymous_17)","decl":{"start":{"line":235,"column":25},"end":{"line":235,"column":26}},"loc":{"start":{"line":235,"column":37},"end":{"line":235,"column":39}},"line":235},"18":{"name":"(anonymous_18)","decl":{"start":{"line":236,"column":23},"end":{"line":236,"column":24}},"loc":{"start":{"line":236,"column":35},"end":{"line":236,"column":37}},"line":236}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},{"start":{"line":21,"column":2},"end":{"line":21,"column":51}}],"line":21},"1":{"loc":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},{"start":{"line":23,"column":2},"end":{"line":24,"column":32}}],"line":23},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},{"start":{"line":37,"column":4},"end":{"line":37,"column":41}}],"line":37},"3":{"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},{"start":{"line":48,"column":2},"end":{"line":48,"column":29}}],"line":48},"4":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},{"start":{"line":60,"column":2},"end":{"line":60,"column":68}}],"line":60},"5":{"loc":{"start":{"line":60,"column":6},"end":{"line":60,"column":38}},"type":"binary-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":18}},{"start":{"line":60,"column":22},"end":{"line":60,"column":38}}],"line":60},"6":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},{"start":{"line":62,"column":2},"end":{"line":62,"column":72}}],"line":62},"7":{"loc":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},{"start":{"line":73,"column":2},"end":{"line":73,"column":52}}],"line":73},"8":{"loc":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},{"start":{"line":79,"column":2},"end":{"line":79,"column":53}}],"line":79},"9":{"loc":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},{"start":{"line":92,"column":2},"end":{"line":94,"column":3}}],"line":92},"10":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":34}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":16}},{"start":{"line":92,"column":20},"end":{"line":92,"column":34}}],"line":92},"11":{"loc":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},{"start":{"line":98,"column":2},"end":{"line":103,"column":3}}],"line":98},"12":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{"line":99,"column":4},"end":{"line":101,"column":5}}],"line":99},"13":{"loc":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},{"start":{"line":105,"column":2},"end":{"line":113,"column":3}}],"line":105},"14":{"loc":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"type":"if","locations":[{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},{"start":{"line":117,"column":2},"end":{"line":124,"column":3}}],"line":117},"15":{"loc":{"start":{"line":134,"column":27},"end":{"line":134,"column":46}},"type":"binary-expr","locations":[{"start":{"line":134,"column":27},"end":{"line":134,"column":37}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}],"line":134},"16":{"loc":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},{"start":{"line":135,"column":2},"end":{"line":138,"column":3}}],"line":135},"17":{"loc":{"start":{"line":135,"column":6},"end":{"line":135,"column":72}},"type":"binary-expr","locations":[{"start":{"line":135,"column":6},"end":{"line":135,"column":16}},{"start":{"line":135,"column":20},"end":{"line":135,"column":39}},{"start":{"line":135,"column":43},"end":{"line":135,"column":53}},{"start":{"line":135,"column":57},"end":{"line":135,"column":72}}],"line":135},"18":{"loc":{"start":{"line":142,"column":14},"end":{"line":142,"column":31}},"type":"binary-expr","locations":[{"start":{"line":142,"column":14},"end":{"line":142,"column":25}},{"start":{"line":142,"column":29},"end":{"line":142,"column":31}}],"line":142},"19":{"loc":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"type":"if","locations":[{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},{"start":{"line":146,"column":2},"end":{"line":146,"column":52}}],"line":146},"20":{"loc":{"start":{"line":148,"column":36},"end":{"line":148,"column":52}},"type":"binary-expr","locations":[{"start":{"line":148,"column":36},"end":{"line":148,"column":46}},{"start":{"line":148,"column":50},"end":{"line":148,"column":52}}],"line":148},"21":{"loc":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"type":"if","locations":[{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},{"start":{"line":151,"column":2},"end":{"line":153,"column":3}}],"line":151},"22":{"loc":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"type":"if","locations":[{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},{"start":{"line":155,"column":2},"end":{"line":156,"column":29}}],"line":155},"23":{"loc":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"type":"switch","locations":[{"start":{"line":160,"column":4},"end":{"line":161,"column":12}},{"start":{"line":163,"column":4},"end":{"line":166,"column":11}},{"start":{"line":168,"column":4},"end":{"line":172,"column":11}},{"start":{"line":174,"column":4},"end":{"line":178,"column":11}}],"line":158},"24":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":54}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},{"start":{"line":170,"column":51},"end":{"line":170,"column":54}}],"line":170},"25":{"loc":{"start":{"line":176,"column":24},"end":{"line":176,"column":74}},"type":"binary-expr","locations":[{"start":{"line":176,"column":24},"end":{"line":176,"column":67}},{"start":{"line":176,"column":71},"end":{"line":176,"column":74}}],"line":176},"26":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},{"start":{"line":204,"column":4},"end":{"line":204,"column":44}}],"line":204},"27":{"loc":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},{"start":{"line":210,"column":4},"end":{"line":210,"column":21}}],"line":210},"28":{"loc":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},{"start":{"line":227,"column":2},"end":{"line":230,"column":3}}],"line":227}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":512,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":1,"50":0,"51":0,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0,0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"8beb16ccde52e484aa1dd87f5ece33d696c808ab","contentHash":"7bb2b7ebe1111c0deefbf9a61d17bf9d2dbe951adb585db96f9d89663ce5909d"},"/Users/isaacs/dev/js/tar/lib/entry-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":16},"end":{"line":4,"column":38}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":34}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":37}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":29}},"9":{"start":{"line":15,"column":11},"end":{"line":15,"column":15}},"10":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":33}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":20}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":35}},"16":{"start":{"line":28,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"18":{"start":{"line":32,"column":2},"end":{"line":34,"column":4}},"19":{"start":{"line":33,"column":4},"end":{"line":33,"column":20}},"20":{"start":{"line":36,"column":2},"end":{"line":39,"column":4}},"21":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"22":{"start":{"line":38,"column":4},"end":{"line":38,"column":20}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":18}},"24":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":18}},"26":{"start":{"line":45,"column":2},"end":{"line":45,"column":25}},"27":{"start":{"line":46,"column":2},"end":{"line":46,"column":23}},"28":{"start":{"line":47,"column":2},"end":{"line":47,"column":22}},"29":{"start":{"line":49,"column":2},"end":{"line":49,"column":17}},"30":{"start":{"line":50,"column":2},"end":{"line":50,"column":23}},"31":{"start":{"line":51,"column":2},"end":{"line":51,"column":18}},"32":{"start":{"line":53,"column":2},"end":{"line":55,"column":4}},"33":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"34":{"start":{"line":58,"column":0},"end":{"line":65,"column":1}},"35":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"36":{"start":{"line":60,"column":19},"end":{"line":60,"column":74}},"37":{"start":{"line":61,"column":2},"end":{"line":61,"column":22}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":17}},"39":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"40":{"start":{"line":64,"column":2},"end":{"line":64,"column":25}},"41":{"start":{"line":67,"column":0},"end":{"line":74,"column":1}},"42":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"43":{"start":{"line":69,"column":9},"end":{"line":69,"column":29}},"44":{"start":{"line":70,"column":2},"end":{"line":70,"column":24}},"45":{"start":{"line":71,"column":2},"end":{"line":71,"column":20}},"46":{"start":{"line":72,"column":2},"end":{"line":72,"column":17}},"47":{"start":{"line":73,"column":2},"end":{"line":73,"column":43}},"48":{"start":{"line":76,"column":0},"end":{"line":80,"column":1}},"49":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"50":{"start":{"line":79,"column":2},"end":{"line":79,"column":20}},"51":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"52":{"start":{"line":84,"column":2},"end":{"line":84,"column":22}},"53":{"start":{"line":85,"column":2},"end":{"line":85,"column":21}},"54":{"start":{"line":86,"column":2},"end":{"line":86,"column":17}},"55":{"start":{"line":89,"column":0},"end":{"line":98,"column":1}},"56":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"57":{"start":{"line":91,"column":20},"end":{"line":91,"column":69}},"58":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"59":{"start":{"line":95,"column":20},"end":{"line":95,"column":30}},"60":{"start":{"line":97,"column":2},"end":{"line":97,"column":31}},"61":{"start":{"line":100,"column":0},"end":{"line":126,"column":1}},"62":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"63":{"start":{"line":102,"column":23},"end":{"line":102,"column":29}},"64":{"start":{"line":103,"column":2},"end":{"line":103,"column":24}},"65":{"start":{"line":105,"column":20},"end":{"line":105,"column":48}},"66":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"67":{"start":{"line":108,"column":13},"end":{"line":108,"column":17}},"68":{"start":{"line":110,"column":4},"end":{"line":111,"column":44}},"69":{"start":{"line":113,"column":4},"end":{"line":120,"column":12}},"70":{"start":{"line":115,"column":8},"end":{"line":115,"column":26}},"71":{"start":{"line":118,"column":8},"end":{"line":118,"column":28}},"72":{"start":{"line":124,"column":2},"end":{"line":124,"column":32}},"73":{"start":{"line":125,"column":2},"end":{"line":125,"column":21}},"74":{"start":{"line":128,"column":0},"end":{"line":167,"column":1}},"75":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"76":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"77":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"78":{"start":{"line":136,"column":4},"end":{"line":136,"column":10}},"79":{"start":{"line":139,"column":2},"end":{"line":139,"column":25}},"80":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"81":{"start":{"line":142,"column":2},"end":{"line":159,"column":3}},"82":{"start":{"line":142,"column":15},"end":{"line":142,"column":16}},"83":{"start":{"line":145,"column":12},"end":{"line":145,"column":18}},"84":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"85":{"start":{"line":147,"column":19},"end":{"line":147,"column":37}},"86":{"start":{"line":148,"column":9},"end":{"line":148,"column":30}},"87":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"88":{"start":{"line":152,"column":6},"end":{"line":152,"column":30}},"89":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"90":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"91":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"92":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"93":{"start":{"line":162,"column":2},"end":{"line":162,"column":25}},"94":{"start":{"line":163,"column":2},"end":{"line":163,"column":26}},"95":{"start":{"line":166,"column":2},"end":{"line":166,"column":20}},"96":{"start":{"line":169,"column":0},"end":{"line":169,"column":46}}},"fnMap":{"0":{"name":"EntryWriter","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":20}},"loc":{"start":{"line":14,"column":29},"end":{"line":56,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":37},"end":{"line":30,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":25},"end":{"line":32,"column":26}},"loc":{"start":{"line":32,"column":37},"end":{"line":34,"column":3}},"line":32},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":23},"end":{"line":36,"column":24}},"loc":{"start":{"line":36,"column":35},"end":{"line":39,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":28},"end":{"line":55,"column":3}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":30},"end":{"line":58,"column":31}},"loc":{"start":{"line":58,"column":43},"end":{"line":65,"column":1}},"line":58},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":28},"end":{"line":67,"column":29}},"loc":{"start":{"line":67,"column":41},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":30},"end":{"line":76,"column":31}},"loc":{"start":{"line":76,"column":42},"end":{"line":80,"column":1}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":31},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":43},"end":{"line":87,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":89,"column":28},"end":{"line":89,"column":29}},"loc":{"start":{"line":89,"column":45},"end":{"line":98,"column":1}},"line":89},"10":{"name":"(anonymous_10)","decl":{"start":{"line":100,"column":32},"end":{"line":100,"column":33}},"loc":{"start":{"line":100,"column":44},"end":{"line":126,"column":1}},"line":100},"11":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":18},"end":{"line":114,"column":19}},"loc":{"start":{"line":114,"column":31},"end":{"line":116,"column":7}},"line":114},"12":{"name":"(anonymous_12)","decl":{"start":{"line":117,"column":19},"end":{"line":117,"column":20}},"loc":{"start":{"line":117,"column":33},"end":{"line":119,"column":7}},"line":117},"13":{"name":"(anonymous_13)","decl":{"start":{"line":128,"column":33},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":45},"end":{"line":167,"column":1}},"line":128},"14":{"name":"(anonymous_14)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":44},"end":{"line":169,"column":46}},"line":169}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"1":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"2":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},{"start":{"line":60,"column":2},"end":{"line":60,"column":74}}],"line":60},"3":{"loc":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},{"start":{"line":69,"column":2},"end":{"line":69,"column":29}}],"line":69},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},{"start":{"line":91,"column":2},"end":{"line":91,"column":69}}],"line":91},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},{"start":{"line":95,"column":2},"end":{"line":95,"column":30}}],"line":95},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},{"start":{"line":102,"column":2},"end":{"line":102,"column":29}}],"line":102},"7":{"loc":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},{"start":{"line":107,"column":2},"end":{"line":121,"column":3}}],"line":107},"8":{"loc":{"start":{"line":107,"column":6},"end":{"line":107,"column":44}},"type":"binary-expr","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":44}}],"line":107},"9":{"loc":{"start":{"line":110,"column":27},"end":{"line":111,"column":44}},"type":"binary-expr","locations":[{"start":{"line":110,"column":27},"end":{"line":110,"column":47}},{"start":{"line":111,"column":6},"end":{"line":111,"column":44}}],"line":110},"10":{"loc":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"type":"if","locations":[{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},{"start":{"line":130,"column":2},"end":{"line":132,"column":3}}],"line":130},"11":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":37}},"type":"binary-expr","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":22}},{"start":{"line":130,"column":26},"end":{"line":130,"column":37}}],"line":130},"12":{"loc":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"type":"if","locations":[{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},{"start":{"line":134,"column":2},"end":{"line":137,"column":3}}],"line":134},"13":{"loc":{"start":{"line":134,"column":6},"end":{"line":134,"column":38}},"type":"binary-expr","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":18}},{"start":{"line":134,"column":22},"end":{"line":134,"column":38}}],"line":134},"14":{"loc":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},{"start":{"line":147,"column":4},"end":{"line":148,"column":30}}],"line":147},"15":{"loc":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},{"start":{"line":150,"column":4},"end":{"line":158,"column":5}}],"line":150},"16":{"loc":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},{"start":{"line":153,"column":6},"end":{"line":156,"column":7}}],"line":153}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":0,"50":0,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":1,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3e169418508e031df78186ff63b5fa5aa2484ab8","contentHash":"84191ed4732b6763ae8701256051735aebbe5e95c932c15bef34da01b33ba1a0"},"/Users/isaacs/dev/js/tar/lib/entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry.js","statementMap":{"0":{"start":{"line":7,"column":0},"end":{"line":7,"column":22}},"1":{"start":{"line":9,"column":16},"end":{"line":9,"column":38}},"2":{"start":{"line":10,"column":10},"end":{"line":10,"column":27}},"3":{"start":{"line":11,"column":13},"end":{"line":11,"column":33}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":37}},"5":{"start":{"line":13,"column":15},"end":{"line":13,"column":34}},"6":{"start":{"line":14,"column":14},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":22}},"9":{"start":{"line":19,"column":2},"end":{"line":19,"column":22}},"10":{"start":{"line":21,"column":2},"end":{"line":21,"column":25}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":22}},"12":{"start":{"line":23,"column":2},"end":{"line":23,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":21}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"17":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"18":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"19":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"20":{"start":{"line":32,"column":2},"end":{"line":32,"column":36}},"21":{"start":{"line":34,"column":2},"end":{"line":34,"column":17}},"22":{"start":{"line":35,"column":2},"end":{"line":35,"column":23}},"23":{"start":{"line":36,"column":2},"end":{"line":36,"column":33}},"24":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"25":{"start":{"line":41,"column":11},"end":{"line":41,"column":15}},"26":{"start":{"line":42,"column":2},"end":{"line":44,"column":4}},"27":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"28":{"start":{"line":46,"column":2},"end":{"line":46,"column":18}},"29":{"start":{"line":49,"column":0},"end":{"line":49,"column":23}},"30":{"start":{"line":51,"column":0},"end":{"line":78,"column":1}},"31":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"32":{"start":{"line":52,"column":20},"end":{"line":52,"column":65}},"33":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"34":{"start":{"line":54,"column":4},"end":{"line":54,"column":40}},"35":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"36":{"start":{"line":60,"column":4},"end":{"line":60,"column":35}},"37":{"start":{"line":62,"column":2},"end":{"line":62,"column":29}},"38":{"start":{"line":65,"column":11},"end":{"line":65,"column":25}},"39":{"start":{"line":66,"column":2},"end":{"line":66,"column":21}},"40":{"start":{"line":67,"column":2},"end":{"line":67,"column":19}},"41":{"start":{"line":69,"column":2},"end":{"line":69,"column":14}},"42":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"43":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"44":{"start":{"line":74,"column":4},"end":{"line":74,"column":16}},"45":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}},"46":{"start":{"line":80,"column":0},"end":{"line":84,"column":1}},"47":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"48":{"start":{"line":81,"column":9},"end":{"line":81,"column":22}},"49":{"start":{"line":82,"column":2},"end":{"line":82,"column":21}},"50":{"start":{"line":83,"column":2},"end":{"line":83,"column":14}},"51":{"start":{"line":86,"column":0},"end":{"line":89,"column":1}},"52":{"start":{"line":87,"column":2},"end":{"line":87,"column":21}},"53":{"start":{"line":88,"column":2},"end":{"line":88,"column":20}},"54":{"start":{"line":91,"column":0},"end":{"line":97,"column":1}},"55":{"start":{"line":93,"column":2},"end":{"line":93,"column":21}},"56":{"start":{"line":94,"column":2},"end":{"line":94,"column":22}},"57":{"start":{"line":95,"column":2},"end":{"line":95,"column":14}},"58":{"start":{"line":96,"column":2},"end":{"line":96,"column":41}},"59":{"start":{"line":100,"column":0},"end":{"line":139,"column":1}},"60":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"61":{"start":{"line":103,"column":52},"end":{"line":103,"column":58}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":22}},"63":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"64":{"start":{"line":111,"column":16},"end":{"line":111,"column":43}},"65":{"start":{"line":112,"column":4},"end":{"line":112,"column":28}},"66":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"67":{"start":{"line":117,"column":4},"end":{"line":117,"column":57}},"68":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"69":{"start":{"line":119,"column":6},"end":{"line":119,"column":29}},"70":{"start":{"line":120,"column":6},"end":{"line":120,"column":24}},"71":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"72":{"start":{"line":123,"column":6},"end":{"line":123,"column":24}},"73":{"start":{"line":124,"column":6},"end":{"line":124,"column":22}},"74":{"start":{"line":130,"column":12},"end":{"line":130,"column":29}},"75":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"76":{"start":{"line":132,"column":4},"end":{"line":132,"column":36}},"77":{"start":{"line":133,"column":4},"end":{"line":133,"column":22}},"78":{"start":{"line":134,"column":4},"end":{"line":134,"column":25}},"79":{"start":{"line":135,"column":4},"end":{"line":135,"column":40}},"80":{"start":{"line":138,"column":2},"end":{"line":138,"column":23}},"81":{"start":{"line":141,"column":0},"end":{"line":211,"column":1}},"82":{"start":{"line":143,"column":15},"end":{"line":143,"column":27}},"83":{"start":{"line":144,"column":17},"end":{"line":144,"column":31}},"84":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}},"85":{"start":{"line":146,"column":14},"end":{"line":146,"column":24}},"86":{"start":{"line":149,"column":15},"end":{"line":149,"column":25}},"87":{"start":{"line":150,"column":2},"end":{"line":154,"column":3}},"88":{"start":{"line":150,"column":15},"end":{"line":150,"column":16}},"89":{"start":{"line":151,"column":16},"end":{"line":151,"column":25}},"90":{"start":{"line":152,"column":14},"end":{"line":152,"column":27}},"91":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"92":{"start":{"line":153,"column":36},"end":{"line":153,"column":54}},"93":{"start":{"line":158,"column":3},"end":{"line":165,"column":3}},"94":{"start":{"line":159,"column":4},"end":{"line":161,"column":6}},"95":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"96":{"start":{"line":160,"column":39},"end":{"line":160,"column":54}},"97":{"start":{"line":165,"column":3},"end":{"line":173,"column":3}},"98":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"99":{"start":{"line":167,"column":6},"end":{"line":167,"column":40}},"100":{"start":{"line":173,"column":3},"end":{"line":177,"column":4}},"101":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"102":{"start":{"line":175,"column":6},"end":{"line":175,"column":42}},"103":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"104":{"start":{"line":184,"column":6},"end":{"line":184,"column":19}},"105":{"start":{"line":185,"column":6},"end":{"line":185,"column":11}},"106":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"107":{"start":{"line":189,"column":6},"end":{"line":189,"column":11}},"108":{"start":{"line":192,"column":6},"end":{"line":192,"column":22}},"109":{"start":{"line":193,"column":6},"end":{"line":193,"column":11}},"110":{"start":{"line":202,"column":6},"end":{"line":202,"column":34}},"111":{"start":{"line":205,"column":2},"end":{"line":205,"column":18}},"112":{"start":{"line":206,"column":2},"end":{"line":206,"column":24}},"113":{"start":{"line":207,"column":2},"end":{"line":207,"column":24}},"114":{"start":{"line":210,"column":2},"end":{"line":210,"column":30}},"115":{"start":{"line":215,"column":0},"end":{"line":217,"column":1}},"116":{"start":{"line":216,"column":2},"end":{"line":216,"column":20}},"117":{"start":{"line":219,"column":0},"end":{"line":219,"column":35}},"118":{"start":{"line":220,"column":0},"end":{"line":220,"column":37}}},"fnMap":{"0":{"name":"Entry","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":14}},"loc":{"start":{"line":16,"column":42},"end":{"line":47,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":36},"end":{"line":42,"column":37}},"loc":{"start":{"line":42,"column":49},"end":{"line":44,"column":3}},"line":42},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":24},"end":{"line":51,"column":25}},"loc":{"start":{"line":51,"column":37},"end":{"line":78,"column":1}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":80,"column":22},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":84,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":86,"column":24},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":36},"end":{"line":89,"column":1}},"line":86},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":25},"end":{"line":91,"column":26}},"loc":{"start":{"line":91,"column":37},"end":{"line":97,"column":1}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":24},"end":{"line":100,"column":25}},"loc":{"start":{"line":100,"column":36},"end":{"line":139,"column":1}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":28},"end":{"line":141,"column":29}},"loc":{"start":{"line":141,"column":40},"end":{"line":211,"column":1}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":158,"column":30},"end":{"line":158,"column":31}},"loc":{"start":{"line":158,"column":43},"end":{"line":162,"column":3}},"line":158},"9":{"name":"(anonymous_9)","decl":{"start":{"line":159,"column":27},"end":{"line":159,"column":28}},"loc":{"start":{"line":159,"column":40},"end":{"line":161,"column":5}},"line":159},"10":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":32},"end":{"line":165,"column":33}},"loc":{"start":{"line":165,"column":45},"end":{"line":169,"column":3}},"line":165},"11":{"name":"(anonymous_11)","decl":{"start":{"line":173,"column":39},"end":{"line":173,"column":40}},"loc":{"start":{"line":173,"column":52},"end":{"line":177,"column":3}},"line":173},"12":{"name":"(anonymous_12)","decl":{"start":{"line":215,"column":24},"end":{"line":215,"column":25}},"loc":{"start":{"line":215,"column":34},"end":{"line":217,"column":1}},"line":215}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":19},"end":{"line":36,"column":33}},"type":"binary-expr","locations":[{"start":{"line":36,"column":19},"end":{"line":36,"column":27}},{"start":{"line":36,"column":31},"end":{"line":36,"column":33}}],"line":36},"1":{"loc":{"start":{"line":42,"column":14},"end":{"line":42,"column":26}},"type":"binary-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":20}},{"start":{"line":42,"column":24},"end":{"line":42,"column":26}}],"line":42},"2":{"loc":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},{"start":{"line":52,"column":2},"end":{"line":52,"column":65}}],"line":52},"3":{"loc":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},{"start":{"line":53,"column":2},"end":{"line":55,"column":3}}],"line":53},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"6":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":28}}],"line":72},"7":{"loc":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},{"start":{"line":81,"column":2},"end":{"line":81,"column":22}}],"line":81},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},{"start":{"line":103,"column":2},"end":{"line":103,"column":58}}],"line":103},"9":{"loc":{"start":{"line":103,"column":6},"end":{"line":103,"column":50}},"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":18}},{"start":{"line":103,"column":22},"end":{"line":103,"column":35}},{"start":{"line":103,"column":39},"end":{"line":103,"column":50}}],"line":103},"10":{"loc":{"start":{"line":110,"column":9},"end":{"line":110,"column":54}},"type":"binary-expr","locations":[{"start":{"line":110,"column":9},"end":{"line":110,"column":37}},{"start":{"line":110,"column":41},"end":{"line":110,"column":54}}],"line":110},"11":{"loc":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},{"start":{"line":116,"column":2},"end":{"line":126,"column":3}}],"line":116},"12":{"loc":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},{"start":{"line":118,"column":4},"end":{"line":121,"column":5}}],"line":118},"13":{"loc":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},{"start":{"line":122,"column":4},"end":{"line":125,"column":5}}],"line":122},"14":{"loc":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},{"start":{"line":131,"column":2},"end":{"line":136,"column":3}}],"line":131},"15":{"loc":{"start":{"line":131,"column":6},"end":{"line":131,"column":45}},"type":"binary-expr","locations":[{"start":{"line":131,"column":6},"end":{"line":131,"column":26}},{"start":{"line":131,"column":30},"end":{"line":131,"column":45}}],"line":131},"16":{"loc":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},{"start":{"line":153,"column":4},"end":{"line":153,"column":54}}],"line":153},"17":{"loc":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"type":"if","locations":[{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},{"start":{"line":160,"column":6},"end":{"line":160,"column":54}}],"line":160},"18":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}],"line":166},"19":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{"line":174,"column":4},"end":{"line":176,"column":5}}],"line":174},"20":{"loc":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"type":"switch","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":19}},{"start":{"line":183,"column":4},"end":{"line":185,"column":11}},{"start":{"line":187,"column":4},"end":{"line":189,"column":11}},{"start":{"line":191,"column":4},"end":{"line":193,"column":11}},{"start":{"line":195,"column":4},"end":{"line":195,"column":16}},{"start":{"line":196,"column":4},"end":{"line":196,"column":24}},{"start":{"line":197,"column":4},"end":{"line":197,"column":27}},{"start":{"line":198,"column":4},"end":{"line":198,"column":23}},{"start":{"line":199,"column":4},"end":{"line":199,"column":21}},{"start":{"line":200,"column":4},"end":{"line":200,"column":16}},{"start":{"line":201,"column":4},"end":{"line":202,"column":34}}],"line":181}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":2,"8":2,"9":2,"10":2,"11":2,"12":2,"13":2,"14":2,"15":2,"16":2,"17":2,"18":2,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":2,"27":0,"28":2,"29":1,"30":1,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1,"47":2,"48":0,"49":2,"50":2,"51":1,"52":2,"53":2,"54":1,"55":3,"56":3,"57":3,"58":3,"59":1,"60":5,"61":4,"62":1,"63":1,"64":0,"65":0,"66":1,"67":1,"68":1,"69":0,"70":0,"71":1,"72":1,"73":1,"74":1,"75":1,"76":0,"77":0,"78":0,"79":0,"80":1,"81":1,"82":2,"83":2,"84":2,"85":2,"86":2,"87":2,"88":2,"89":34,"90":34,"91":34,"92":32,"93":2,"94":4,"95":0,"96":0,"97":2,"98":4,"99":4,"100":2,"101":6,"102":2,"103":2,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":2,"111":2,"112":2,"113":2,"114":2,"115":1,"116":0,"117":1,"118":1},"f":{"0":2,"1":0,"2":0,"3":2,"4":2,"5":3,"6":5,"7":2,"8":4,"9":0,"10":4,"11":6,"12":0},"b":{"0":[2,2],"1":[2,2],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,2],"8":[4,1],"9":[5,3,2],"10":[1,0],"11":[1,0],"12":[0,1],"13":[1,0],"14":[0,1],"15":[1,0],"16":[32,2],"17":[0,0],"18":[4,0],"19":[2,4],"20":[0,0,0,0,0,0,0,0,2,2,2]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"2cc4f925db2a60e89bf0743124faec4e8996dfdb","contentHash":"245d5cb2b23d975dc5b9a0ed2553c93c587727d50a7961242f50cec333c04ba9"},"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/global-header-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":65}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":34}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"4":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":40}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}}},"fnMap":{"0":{"name":"GlobalHeaderWriter","decl":{"start":{"line":8,"column":9},"end":{"line":8,"column":27}},"loc":{"start":{"line":8,"column":36},"end":{"line":14,"column":1}},"line":8}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0},"f":{"0":0},"b":{"0":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3d0c8589f62a5c8ccec606d52d3abd98e5627d57","contentHash":"a2570ca840cf3e44d77e15af0aee52f7c145da39b76366006f3672b9708def3e"},"/Users/isaacs/dev/js/tar/lib/parse.js":{"path":"/Users/isaacs/dev/js/tar/lib/parse.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"1":{"start":{"line":8,"column":13},"end":{"line":8,"column":30}},"2":{"start":{"line":9,"column":13},"end":{"line":9,"column":26}},"3":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":30}},"5":{"start":{"line":12,"column":16},"end":{"line":12,"column":38}},"6":{"start":{"line":13,"column":12},"end":{"line":13,"column":33}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":46}},"8":{"start":{"line":15,"column":21},"end":{"line":15,"column":52}},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":33}},"10":{"start":{"line":17,"column":15},"end":{"line":17,"column":34}},"11":{"start":{"line":18,"column":14},"end":{"line":18,"column":32}},"12":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}},"13":{"start":{"line":28,"column":11},"end":{"line":28,"column":15}},"14":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"15":{"start":{"line":29,"column":30},"end":{"line":29,"column":48}},"16":{"start":{"line":34,"column":2},"end":{"line":34,"column":18}},"17":{"start":{"line":36,"column":2},"end":{"line":36,"column":20}},"18":{"start":{"line":37,"column":2},"end":{"line":37,"column":20}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":35}},"20":{"start":{"line":39,"column":2},"end":{"line":39,"column":17}},"21":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"22":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"23":{"start":{"line":43,"column":2},"end":{"line":45,"column":4}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":20}},"31":{"start":{"line":63,"column":0},"end":{"line":67,"column":1}},"32":{"start":{"line":64,"column":11},"end":{"line":64,"column":15}},"33":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"34":{"start":{"line":65,"column":31},"end":{"line":65,"column":57}},"35":{"start":{"line":66,"column":2},"end":{"line":66,"column":16}},"36":{"start":{"line":72,"column":0},"end":{"line":83,"column":1}},"37":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"38":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"39":{"start":{"line":77,"column":17},"end":{"line":77,"column":18}},"40":{"start":{"line":77,"column":24},"end":{"line":77,"column":32}},"41":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":62}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":10}},"44":{"start":{"line":82,"column":2},"end":{"line":82,"column":30}},"45":{"start":{"line":85,"column":0},"end":{"line":88,"column":1}},"46":{"start":{"line":86,"column":2},"end":{"line":86,"column":20}},"47":{"start":{"line":87,"column":2},"end":{"line":87,"column":28}},"48":{"start":{"line":94,"column":0},"end":{"line":94,"column":38}},"49":{"start":{"line":96,"column":0},"end":{"line":137,"column":1}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":59}},"51":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":27}},"53":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"54":{"start":{"line":106,"column":22},"end":{"line":106,"column":36}},"55":{"start":{"line":108,"column":6},"end":{"line":108,"column":34}},"56":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"57":{"start":{"line":109,"column":31},"end":{"line":109,"column":51}},"58":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"59":{"start":{"line":112,"column":6},"end":{"line":112,"column":17}},"60":{"start":{"line":113,"column":6},"end":{"line":113,"column":24}},"61":{"start":{"line":117,"column":15},"end":{"line":117,"column":19}},"62":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"63":{"start":{"line":118,"column":17},"end":{"line":118,"column":18}},"64":{"start":{"line":119,"column":6},"end":{"line":119,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"67":{"start":{"line":128,"column":8},"end":{"line":128,"column":26}},"68":{"start":{"line":129,"column":6},"end":{"line":129,"column":29}},"69":{"start":{"line":131,"column":6},"end":{"line":131,"column":30}},"70":{"start":{"line":132,"column":6},"end":{"line":132,"column":25}},"71":{"start":{"line":136,"column":2},"end":{"line":136,"column":22}},"72":{"start":{"line":140,"column":0},"end":{"line":285,"column":1}},"73":{"start":{"line":141,"column":15},"end":{"line":141,"column":31}},"74":{"start":{"line":142,"column":13},"end":{"line":142,"column":17}},"75":{"start":{"line":147,"column":13},"end":{"line":147,"column":18}},"76":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"77":{"start":{"line":150,"column":12},"end":{"line":150,"column":41}},"78":{"start":{"line":151,"column":4},"end":{"line":151,"column":21}},"79":{"start":{"line":152,"column":4},"end":{"line":152,"column":37}},"80":{"start":{"line":153,"column":4},"end":{"line":153,"column":37}},"81":{"start":{"line":154,"column":4},"end":{"line":154,"column":32}},"82":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"83":{"start":{"line":171,"column":6},"end":{"line":171,"column":23}},"84":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"85":{"start":{"line":173,"column":6},"end":{"line":173,"column":11}},"86":{"start":{"line":177,"column":6},"end":{"line":177,"column":32}},"87":{"start":{"line":178,"column":6},"end":{"line":183,"column":7}},"88":{"start":{"line":179,"column":8},"end":{"line":179,"column":41}},"89":{"start":{"line":180,"column":8},"end":{"line":182,"column":10}},"90":{"start":{"line":181,"column":10},"end":{"line":181,"column":43}},"91":{"start":{"line":184,"column":6},"end":{"line":184,"column":33}},"92":{"start":{"line":185,"column":6},"end":{"line":185,"column":17}},"93":{"start":{"line":186,"column":6},"end":{"line":186,"column":11}},"94":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"95":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"96":{"start":{"line":193,"column":8},"end":{"line":193,"column":37}},"97":{"start":{"line":195,"column":6},"end":{"line":195,"column":27}},"98":{"start":{"line":196,"column":6},"end":{"line":196,"column":17}},"99":{"start":{"line":197,"column":6},"end":{"line":197,"column":11}},"100":{"start":{"line":201,"column":6},"end":{"line":201,"column":29}},"101":{"start":{"line":202,"column":6},"end":{"line":205,"column":7}},"102":{"start":{"line":203,"column":8},"end":{"line":203,"column":45}},"103":{"start":{"line":204,"column":8},"end":{"line":204,"column":44}},"104":{"start":{"line":206,"column":6},"end":{"line":206,"column":25}},"105":{"start":{"line":207,"column":6},"end":{"line":207,"column":17}},"106":{"start":{"line":208,"column":6},"end":{"line":208,"column":11}},"107":{"start":{"line":213,"column":6},"end":{"line":213,"column":29}},"108":{"start":{"line":214,"column":6},"end":{"line":217,"column":7}},"109":{"start":{"line":215,"column":8},"end":{"line":215,"column":45}},"110":{"start":{"line":216,"column":8},"end":{"line":216,"column":40}},"111":{"start":{"line":218,"column":6},"end":{"line":218,"column":21}},"112":{"start":{"line":219,"column":6},"end":{"line":219,"column":17}},"113":{"start":{"line":220,"column":6},"end":{"line":220,"column":11}},"114":{"start":{"line":226,"column":6},"end":{"line":226,"column":23}},"115":{"start":{"line":227,"column":6},"end":{"line":227,"column":25}},"116":{"start":{"line":228,"column":6},"end":{"line":228,"column":11}},"117":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"118":{"start":{"line":233,"column":4},"end":{"line":233,"column":28}},"119":{"start":{"line":235,"column":17},"end":{"line":235,"column":29}},"120":{"start":{"line":236,"column":19},"end":{"line":236,"column":33}},"121":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"122":{"start":{"line":242,"column":2},"end":{"line":242,"column":49}},"123":{"start":{"line":243,"column":2},"end":{"line":243,"column":19}},"124":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"125":{"start":{"line":247,"column":4},"end":{"line":249,"column":6}},"126":{"start":{"line":248,"column":6},"end":{"line":248,"column":24}},"127":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"128":{"start":{"line":252,"column":13},"end":{"line":252,"column":35}},"129":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"130":{"start":{"line":255,"column":4},"end":{"line":255,"column":23}},"131":{"start":{"line":258,"column":2},"end":{"line":258,"column":21}},"132":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"133":{"start":{"line":261,"column":4},"end":{"line":261,"column":39}},"134":{"start":{"line":264,"column":11},"end":{"line":264,"column":15}},"135":{"start":{"line":266,"column":2},"end":{"line":268,"column":4}},"136":{"start":{"line":267,"column":4},"end":{"line":267,"column":14}},"137":{"start":{"line":270,"column":2},"end":{"line":272,"column":4}},"138":{"start":{"line":271,"column":4},"end":{"line":271,"column":15}},"139":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"140":{"start":{"line":275,"column":4},"end":{"line":275,"column":29}},"141":{"start":{"line":278,"column":2},"end":{"line":278,"column":22}},"142":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"143":{"start":{"line":282,"column":4},"end":{"line":282,"column":15}},"144":{"start":{"line":283,"column":4},"end":{"line":283,"column":22}}},"fnMap":{"0":{"name":"Parse","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":14}},"loc":{"start":{"line":27,"column":18},"end":{"line":58,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":25},"end":{"line":43,"column":26}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":24},"end":{"line":47,"column":25}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":51,"column":23},"end":{"line":51,"column":24}},"loc":{"start":{"line":51,"column":35},"end":{"line":53,"column":3}},"line":51},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":25},"end":{"line":55,"column":26}},"loc":{"start":{"line":55,"column":37},"end":{"line":57,"column":3}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":29},"end":{"line":63,"column":30}},"loc":{"start":{"line":63,"column":41},"end":{"line":67,"column":1}},"line":63},"6":{"name":"(anonymous_6)","decl":{"start":{"line":72,"column":24},"end":{"line":72,"column":25}},"loc":{"start":{"line":72,"column":37},"end":{"line":83,"column":1}},"line":72},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":22},"end":{"line":85,"column":23}},"loc":{"start":{"line":85,"column":35},"end":{"line":88,"column":1}},"line":85},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},"loc":{"start":{"line":94,"column":36},"end":{"line":94,"column":38}},"line":94},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":27},"end":{"line":96,"column":28}},"loc":{"start":{"line":96,"column":40},"end":{"line":137,"column":1}},"line":96},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":30},"end":{"line":140,"column":31}},"loc":{"start":{"line":140,"column":43},"end":{"line":285,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":178,"column":14},"end":{"line":178,"column":15}},"loc":{"start":{"line":178,"column":26},"end":{"line":183,"column":7}},"line":178},"12":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":42},"end":{"line":180,"column":43}},"loc":{"start":{"line":180,"column":55},"end":{"line":182,"column":9}},"line":180},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":14},"end":{"line":192,"column":15}},"loc":{"start":{"line":192,"column":26},"end":{"line":194,"column":7}},"line":192},"14":{"name":"(anonymous_14)","decl":{"start":{"line":202,"column":14},"end":{"line":202,"column":15}},"loc":{"start":{"line":202,"column":26},"end":{"line":205,"column":7}},"line":202},"15":{"name":"(anonymous_15)","decl":{"start":{"line":214,"column":14},"end":{"line":214,"column":15}},"loc":{"start":{"line":214,"column":26},"end":{"line":217,"column":7}},"line":214},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":21},"end":{"line":247,"column":22}},"loc":{"start":{"line":247,"column":34},"end":{"line":249,"column":5}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":266,"column":20},"end":{"line":266,"column":21}},"loc":{"start":{"line":266,"column":32},"end":{"line":268,"column":3}},"line":266},"18":{"name":"(anonymous_18)","decl":{"start":{"line":270,"column":21},"end":{"line":270,"column":22}},"loc":{"start":{"line":270,"column":33},"end":{"line":272,"column":3}},"line":270}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},{"start":{"line":29,"column":2},"end":{"line":29,"column":48}}],"line":29},"1":{"loc":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"type":"if","locations":[{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},{"start":{"line":65,"column":2},"end":{"line":65,"column":57}}],"line":65},"2":{"loc":{"start":{"line":65,"column":6},"end":{"line":65,"column":29}},"type":"binary-expr","locations":[{"start":{"line":65,"column":6},"end":{"line":65,"column":16}},{"start":{"line":65,"column":20},"end":{"line":65,"column":29}}],"line":65},"3":{"loc":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},{"start":{"line":73,"column":2},"end":{"line":81,"column":3}}],"line":73},"4":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},{"start":{"line":78,"column":6},"end":{"line":78,"column":62}}],"line":78},"5":{"loc":{"start":{"line":97,"column":9},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":9},"end":{"line":97,"column":10}},{"start":{"line":97,"column":14},"end":{"line":97,"column":30}}],"line":97},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},{"start":{"line":104,"column":2},"end":{"line":134,"column":3}}],"line":104},"7":{"loc":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},{"start":{"line":106,"column":4},"end":{"line":110,"column":5}}],"line":106},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},{"start":{"line":109,"column":6},"end":{"line":109,"column":51}}],"line":109},"9":{"loc":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},{"start":{"line":111,"column":4},"end":{"line":114,"column":5}}],"line":111},"10":{"loc":{"start":{"line":118,"column":20},"end":{"line":118,"column":35}},"type":"binary-expr","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":27}},{"start":{"line":118,"column":31},"end":{"line":118,"column":35}}],"line":118},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},{"start":{"line":126,"column":4},"end":{"line":133,"column":5}}],"line":126},"12":{"loc":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"type":"if","locations":[{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},{"start":{"line":127,"column":6},"end":{"line":128,"column":26}}],"line":127},"13":{"loc":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"type":"if","locations":[{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},{"start":{"line":149,"column":2},"end":{"line":155,"column":3}}],"line":149},"14":{"loc":{"start":{"line":149,"column":6},"end":{"line":149,"column":48}},"type":"binary-expr","locations":[{"start":{"line":149,"column":6},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":48}}],"line":149},"15":{"loc":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"type":"switch","locations":[{"start":{"line":158,"column":4},"end":{"line":158,"column":16}},{"start":{"line":159,"column":4},"end":{"line":159,"column":19}},{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},{"start":{"line":161,"column":4},"end":{"line":161,"column":24}},{"start":{"line":162,"column":4},"end":{"line":162,"column":27}},{"start":{"line":163,"column":4},"end":{"line":163,"column":23}},{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},{"start":{"line":166,"column":4},"end":{"line":166,"column":26}},{"start":{"line":167,"column":4},"end":{"line":173,"column":11}},{"start":{"line":175,"column":4},"end":{"line":186,"column":11}},{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},{"start":{"line":189,"column":4},"end":{"line":197,"column":11}},{"start":{"line":199,"column":4},"end":{"line":208,"column":11}},{"start":{"line":210,"column":4},"end":{"line":210,"column":31}},{"start":{"line":211,"column":4},"end":{"line":220,"column":11}},{"start":{"line":222,"column":4},"end":{"line":228,"column":11}}],"line":157},"16":{"loc":{"start":{"line":179,"column":23},"end":{"line":179,"column":41}},"type":"binary-expr","locations":[{"start":{"line":179,"column":23},"end":{"line":179,"column":35}},{"start":{"line":179,"column":39},"end":{"line":179,"column":41}}],"line":179},"17":{"loc":{"start":{"line":203,"column":25},"end":{"line":203,"column":45}},"type":"binary-expr","locations":[{"start":{"line":203,"column":25},"end":{"line":203,"column":39}},{"start":{"line":203,"column":43},"end":{"line":203,"column":45}}],"line":203},"18":{"loc":{"start":{"line":215,"column":25},"end":{"line":215,"column":45}},"type":"binary-expr","locations":[{"start":{"line":215,"column":25},"end":{"line":215,"column":39}},{"start":{"line":215,"column":43},"end":{"line":215,"column":45}}],"line":215},"19":{"loc":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"type":"if","locations":[{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},{"start":{"line":232,"column":2},"end":{"line":241,"column":3}}],"line":232},"20":{"loc":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"type":"if","locations":[{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},{"start":{"line":246,"column":2},"end":{"line":250,"column":3}}],"line":246},"21":{"loc":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},{"start":{"line":252,"column":2},"end":{"line":252,"column":35}}],"line":252},"22":{"loc":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"type":"if","locations":[{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},{"start":{"line":254,"column":2},"end":{"line":256,"column":3}}],"line":254},"23":{"loc":{"start":{"line":254,"column":6},"end":{"line":254,"column":58}},"type":"binary-expr","locations":[{"start":{"line":254,"column":6},"end":{"line":254,"column":27}},{"start":{"line":254,"column":31},"end":{"line":254,"column":58}}],"line":254},"24":{"loc":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"type":"if","locations":[{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},{"start":{"line":260,"column":2},"end":{"line":262,"column":3}}],"line":260},"25":{"loc":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"type":"if","locations":[{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},{"start":{"line":274,"column":2},"end":{"line":276,"column":3}}],"line":274},"26":{"loc":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"type":"if","locations":[{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},{"start":{"line":281,"column":2},"end":{"line":284,"column":3}}],"line":281}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":0,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":0,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":0,"33":0,"34":0,"35":0,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":4,"51":4,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":4,"62":4,"63":4,"64":1026,"65":4,"66":2,"67":1,"68":2,"69":2,"70":2,"71":4,"72":1,"73":2,"74":2,"75":2,"76":2,"77":0,"78":0,"79":0,"80":0,"81":0,"82":2,"83":2,"84":2,"85":2,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":2,"118":0,"119":2,"120":2,"121":2,"122":2,"123":2,"124":2,"125":2,"126":0,"127":2,"128":0,"129":2,"130":0,"131":2,"132":2,"133":0,"134":2,"135":2,"136":2,"137":2,"138":3,"139":2,"140":0,"141":2,"142":2,"143":2,"144":2},"f":{"0":1,"1":0,"2":4,"3":1,"4":1,"5":0,"6":1,"7":1,"8":4,"9":4,"10":2,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":2,"18":3},"b":{"0":[0,1],"1":[0,0],"2":[0,0],"3":[0,1],"4":[0,0],"5":[4,4],"6":[0,4],"7":[0,0],"8":[0,0],"9":[0,0],"10":[1030,1028],"11":[2,2],"12":[1,1],"13":[0,2],"14":[2,2],"15":[0,0,0,0,0,0,2,2,2,2,0,0,0,0,0,0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,2],"20":[2,0],"21":[0,2],"22":[0,2],"23":[2,0],"24":[0,2],"25":[0,2],"26":[2,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4a8f51a3a12b59eb69694618530032a813fbf8cb","contentHash":"d347e73abcd3109143efee20401d9f0bfc6d68a4a6323bd4559ada44c741786a"},"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/buffer-entry.js","statementMap":{"0":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}},"1":{"start":{"line":10,"column":15},"end":{"line":10,"column":34}},"2":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":30}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":44}},"5":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"6":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"7":{"start":{"line":18,"column":2},"end":{"line":20,"column":4}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"9":{"start":{"line":23,"column":0},"end":{"line":23,"column":28}},"10":{"start":{"line":26,"column":0},"end":{"line":30,"column":1}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":36}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":26}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":37}}},"fnMap":{"0":{"name":"BufferEntry","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":20}},"loc":{"start":{"line":13,"column":24},"end":{"line":21,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":29},"end":{"line":20,"column":3}},"line":18},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":30},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":43},"end":{"line":30,"column":1}},"line":26}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":1,"11":0,"12":0,"13":0},"f":{"0":0,"1":0,"2":0},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"d8ad66df900443c9c9d8aefe5fc126a55ba268ec","contentHash":"25e5b3c51e476fcffac7affa191a0ed0f54d64d3d3b760e887bd45ba08fffa65"},"/Users/isaacs/dev/js/tar/lib/extended-header.js":{"path":"/Users/isaacs/dev/js/tar/lib/extended-header.js","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"1":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"2":{"start":{"line":12,"column":15},"end":{"line":12,"column":34}},"3":{"start":{"line":13,"column":10},"end":{"line":13,"column":30}},"4":{"start":{"line":14,"column":14},"end":{"line":14,"column":25}},"5":{"start":{"line":15,"column":15},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":30}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":18}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":20}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"13":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"14":{"start":{"line":28,"column":2},"end":{"line":28,"column":19}},"15":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":16}},"17":{"start":{"line":33,"column":0},"end":{"line":33,"column":31}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":39}},"19":{"start":{"line":36,"column":8},"end":{"line":36,"column":9}},"20":{"start":{"line":37,"column":13},"end":{"line":37,"column":39}},"21":{"start":{"line":38,"column":11},"end":{"line":38,"column":28}},"22":{"start":{"line":39,"column":11},"end":{"line":39,"column":28}},"23":{"start":{"line":40,"column":11},"end":{"line":40,"column":28}},"24":{"start":{"line":41,"column":11},"end":{"line":41,"column":28}},"25":{"start":{"line":43,"column":0},"end":{"line":45,"column":2}},"26":{"start":{"line":44,"column":2},"end":{"line":44,"column":31}},"27":{"start":{"line":47,"column":0},"end":{"line":47,"column":16}},"28":{"start":{"line":50,"column":9},"end":{"line":50,"column":26}},"29":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"31":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"32":{"start":{"line":54,"column":8},"end":{"line":54,"column":25}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":25}},"34":{"start":{"line":56,"column":8},"end":{"line":56,"column":25}},"35":{"start":{"line":57,"column":12},"end":{"line":57,"column":29}},"36":{"start":{"line":58,"column":9},"end":{"line":58,"column":26}},"37":{"start":{"line":59,"column":9},"end":{"line":59,"column":27}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"39":{"start":{"line":62,"column":27},"end":{"line":62,"column":33}},"40":{"start":{"line":64,"column":2},"end":{"line":130,"column":3}},"41":{"start":{"line":64,"column":16},"end":{"line":64,"column":17}},"42":{"start":{"line":64,"column":23},"end":{"line":64,"column":31}},"43":{"start":{"line":69,"column":12},"end":{"line":69,"column":16}},"44":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"45":{"start":{"line":72,"column":6},"end":{"line":72,"column":53}},"46":{"start":{"line":73,"column":6},"end":{"line":73,"column":12}},"47":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"48":{"start":{"line":77,"column":16},"end":{"line":77,"column":22}},"49":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"50":{"start":{"line":82,"column":10},"end":{"line":82,"column":27}},"51":{"start":{"line":84,"column":10},"end":{"line":84,"column":73}},"52":{"start":{"line":85,"column":10},"end":{"line":85,"column":34}},"53":{"start":{"line":86,"column":10},"end":{"line":86,"column":18}},"54":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"55":{"start":{"line":89,"column":10},"end":{"line":89,"column":68}},"56":{"start":{"line":90,"column":10},"end":{"line":90,"column":16}},"57":{"start":{"line":92,"column":8},"end":{"line":92,"column":29}},"58":{"start":{"line":93,"column":8},"end":{"line":93,"column":16}},"59":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"60":{"start":{"line":98,"column":10},"end":{"line":98,"column":27}},"61":{"start":{"line":99,"column":10},"end":{"line":99,"column":57}},"62":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"63":{"start":{"line":100,"column":35},"end":{"line":100,"column":66}},"64":{"start":{"line":101,"column":10},"end":{"line":101,"column":33}},"65":{"start":{"line":102,"column":10},"end":{"line":102,"column":18}},"66":{"start":{"line":104,"column":8},"end":{"line":104,"column":28}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":16}},"68":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"69":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"70":{"start":{"line":112,"column":12},"end":{"line":112,"column":55}},"71":{"start":{"line":113,"column":12},"end":{"line":113,"column":18}},"72":{"start":{"line":115,"column":20},"end":{"line":115,"column":55}},"73":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"74":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"75":{"start":{"line":119,"column":10},"end":{"line":119,"column":38}},"76":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"77":{"start":{"line":122,"column":10},"end":{"line":122,"column":28}},"78":{"start":{"line":123,"column":10},"end":{"line":123,"column":25}},"79":{"start":{"line":124,"column":10},"end":{"line":124,"column":29}},"80":{"start":{"line":125,"column":10},"end":{"line":125,"column":18}},"81":{"start":{"line":127,"column":8},"end":{"line":127,"column":28}},"82":{"start":{"line":128,"column":8},"end":{"line":128,"column":16}},"83":{"start":{"line":134,"column":2},"end":{"line":136,"column":42}},"84":{"start":{"line":138,"column":2},"end":{"line":138,"column":15}},"85":{"start":{"line":139,"column":2},"end":{"line":139,"column":16}}},"fnMap":{"0":{"name":"ExtendedHeader","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":23}},"loc":{"start":{"line":19,"column":27},"end":{"line":31,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":28},"end":{"line":43,"column":29}},"loc":{"start":{"line":43,"column":41},"end":{"line":45,"column":1}},"line":43},"2":{"name":"parse","decl":{"start":{"line":61,"column":9},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":19},"end":{"line":131,"column":1}},"line":61},"3":{"name":"error","decl":{"start":{"line":133,"column":9},"end":{"line":133,"column":14}},"loc":{"start":{"line":133,"column":25},"end":{"line":140,"column":1}},"line":133}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},{"start":{"line":62,"column":2},"end":{"line":62,"column":33}}],"line":62},"1":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":54}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":23}},{"start":{"line":71,"column":27},"end":{"line":71,"column":54}}],"line":71},"3":{"loc":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"type":"switch","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":22}},{"start":{"line":79,"column":6},"end":{"line":93,"column":16}},{"start":{"line":95,"column":6},"end":{"line":105,"column":16}},{"start":{"line":107,"column":6},"end":{"line":128,"column":16}}],"line":76},"4":{"loc":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},{"start":{"line":81,"column":8},"end":{"line":87,"column":9}}],"line":81},"5":{"loc":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"type":"if","locations":[{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},{"start":{"line":88,"column":8},"end":{"line":91,"column":9}}],"line":88},"6":{"loc":{"start":{"line":88,"column":12},"end":{"line":88,"column":28}},"type":"binary-expr","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":18}},{"start":{"line":88,"column":22},"end":{"line":88,"column":28}}],"line":88},"7":{"loc":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},{"start":{"line":97,"column":8},"end":{"line":103,"column":9}}],"line":97},"8":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},{"start":{"line":100,"column":10},"end":{"line":100,"column":66}}],"line":100},"9":{"loc":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},{"start":{"line":109,"column":8},"end":{"line":126,"column":9}}],"line":109},"10":{"loc":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"type":"if","locations":[{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},{"start":{"line":111,"column":10},"end":{"line":114,"column":11}}],"line":111},"11":{"loc":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"type":"if","locations":[{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},{"start":{"line":116,"column":10},"end":{"line":118,"column":11}}],"line":116}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0},"f":{"0":0,"1":4,"2":0,"3":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0,0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"77cb382c69a46833a08275dbc55bf34db0dcd796","contentHash":"78a790af1726a774425fb478f1423068fe64414b747d89b597baf45139e7ae3d"},"/Users/isaacs/dev/js/tar/lib/extract.js":{"path":"/Users/isaacs/dev/js/tar/lib/extract.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":24}},"1":{"start":{"line":5,"column":10},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":14},"end":{"line":6,"column":32}},"3":{"start":{"line":7,"column":15},"end":{"line":7,"column":34}},"4":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":58}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"8":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"9":{"start":{"line":15,"column":4},"end":{"line":15,"column":25}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":25}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"15":{"start":{"line":25,"column":38},"end":{"line":25,"column":52}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"17":{"start":{"line":29,"column":2},"end":{"line":29,"column":14}},"18":{"start":{"line":30,"column":11},"end":{"line":30,"column":15}},"19":{"start":{"line":35,"column":2},"end":{"line":60,"column":4}},"20":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"21":{"start":{"line":39,"column":14},"end":{"line":39,"column":63}},"22":{"start":{"line":40,"column":6},"end":{"line":40,"column":39}},"23":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"24":{"start":{"line":42,"column":17},"end":{"line":42,"column":70}},"25":{"start":{"line":43,"column":8},"end":{"line":43,"column":50}},"26":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"27":{"start":{"line":47,"column":6},"end":{"line":48,"column":66}},"28":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"29":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"30":{"start":{"line":53,"column":21},"end":{"line":53,"column":41}},"31":{"start":{"line":54,"column":19},"end":{"line":54,"column":56}},"32":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"33":{"start":{"line":56,"column":8},"end":{"line":56,"column":65}},"34":{"start":{"line":58,"column":6},"end":{"line":58,"column":54}},"35":{"start":{"line":62,"column":2},"end":{"line":65,"column":4}},"36":{"start":{"line":63,"column":4},"end":{"line":63,"column":36}},"37":{"start":{"line":64,"column":4},"end":{"line":64,"column":15}},"38":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":25}},"40":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"41":{"start":{"line":72,"column":4},"end":{"line":72,"column":20}},"42":{"start":{"line":79,"column":2},"end":{"line":84,"column":4}},"43":{"start":{"line":81,"column":4},"end":{"line":81,"column":21}},"44":{"start":{"line":82,"column":4},"end":{"line":82,"column":18}},"45":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"46":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}},"47":{"start":{"line":89,"column":0},"end":{"line":94,"column":1}},"48":{"start":{"line":90,"column":11},"end":{"line":90,"column":15}},"49":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"50":{"start":{"line":91,"column":31},"end":{"line":91,"column":57}},"51":{"start":{"line":92,"column":2},"end":{"line":92,"column":15}}},"fnMap":{"0":{"name":"Extract","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":85,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":34},"end":{"line":60,"column":3}},"line":35},"2":{"name":"(anonymous_2)","decl":{"start":{"line":62,"column":24},"end":{"line":62,"column":25}},"loc":{"start":{"line":62,"column":36},"end":{"line":65,"column":3}},"line":62},"3":{"name":"(anonymous_3)","decl":{"start":{"line":67,"column":24},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":38},"end":{"line":69,"column":3}},"line":67},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":35},"end":{"line":73,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":24},"end":{"line":79,"column":25}},"loc":{"start":{"line":79,"column":36},"end":{"line":84,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":31},"end":{"line":89,"column":32}},"loc":{"start":{"line":89,"column":43},"end":{"line":94,"column":1}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},{"start":{"line":11,"column":2},"end":{"line":11,"column":58}}],"line":11},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"type":"binary-expr","locations":[{"start":{"line":19,"column":14},"end":{"line":19,"column":23}},{"start":{"line":19,"column":27},"end":{"line":19,"column":59}}],"line":19},"3":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},{"start":{"line":25,"column":2},"end":{"line":25,"column":52}}],"line":25},"4":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":36}},"type":"binary-expr","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":17}},{"start":{"line":25,"column":21},"end":{"line":25,"column":36}}],"line":25},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"6":{"loc":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},{"start":{"line":41,"column":6},"end":{"line":44,"column":7}}],"line":41},"7":{"loc":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}}],"line":46},"8":{"loc":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},{"start":{"line":51,"column":4},"end":{"line":59,"column":5}}],"line":51},"9":{"loc":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"type":"binary-expr","locations":[{"start":{"line":52,"column":15},"end":{"line":52,"column":39}},{"start":{"line":52,"column":43},"end":{"line":52,"column":45}}],"line":52},"10":{"loc":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},{"start":{"line":55,"column":6},"end":{"line":57,"column":7}}],"line":55},"11":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},{"start":{"line":91,"column":2},"end":{"line":91,"column":57}}],"line":91},"12":{"loc":{"start":{"line":91,"column":6},"end":{"line":91,"column":29}},"type":"binary-expr","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":16}},{"start":{"line":91,"column":20},"end":{"line":91,"column":29}}],"line":91}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":2,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":2,"21":0,"22":0,"23":0,"24":0,"25":0,"26":2,"27":0,"28":2,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":0,"42":1,"43":0,"44":0,"45":0,"46":1,"47":1,"48":1,"49":1,"50":0,"51":1},"f":{"0":2,"1":2,"2":1,"3":1,"4":0,"5":0,"6":1},"b":{"0":[1,1],"1":[1,0],"2":[1,0],"3":[1,0],"4":[1,0],"5":[0,2],"6":[0,0],"7":[0,2],"8":[0,2],"9":[0,0],"10":[0,0],"11":[0,1],"12":[1,1]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3fb9f60facc409fe944dc36bd2e14fc6153e403d","contentHash":"3d9485ca58c6c768b022a39d276296b53647ccf39986885459406e933921c962"}} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/fb518800-240c-42ff-811f-79e92708d9db.json b/node_modules/tar/.nyc_output/fb518800-240c-42ff-811f-79e92708d9db.json
deleted file mode 100644
index 646757b..0000000
--- a/node_modules/tar/.nyc_output/fb518800-240c-42ff-811f-79e92708d9db.json
+++ /dev/null
@@ -1 +0,0 @@
-{"/Users/isaacs/dev/js/tar/lib/pack.js":{"path":"/Users/isaacs/dev/js/tar/lib/pack.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"1":{"start":{"line":6,"column":18},"end":{"line":6,"column":46}},"2":{"start":{"line":7,"column":13},"end":{"line":7,"column":37}},"3":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"4":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"5":{"start":{"line":10,"column":25},"end":{"line":10,"column":61}},"6":{"start":{"line":11,"column":14},"end":{"line":11,"column":40}},"7":{"start":{"line":12,"column":10},"end":{"line":12,"column":25}},"8":{"start":{"line":14,"column":0},"end":{"line":14,"column":41}},"9":{"start":{"line":14,"column":13},"end":{"line":14,"column":14}},"10":{"start":{"line":14,"column":31},"end":{"line":14,"column":41}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":22}},"12":{"start":{"line":20,"column":11},"end":{"line":20,"column":15}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"14":{"start":{"line":21,"column":29},"end":{"line":21,"column":51}},"15":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"16":{"start":{"line":23,"column":13},"end":{"line":23,"column":52}},"17":{"start":{"line":24,"column":7},"end":{"line":24,"column":32}},"18":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"19":{"start":{"line":28,"column":2},"end":{"line":28,"column":20}},"20":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"21":{"start":{"line":30,"column":2},"end":{"line":30,"column":17}},"22":{"start":{"line":32,"column":2},"end":{"line":32,"column":25}},"23":{"start":{"line":33,"column":2},"end":{"line":33,"column":24}},"24":{"start":{"line":35,"column":2},"end":{"line":35,"column":21}},"25":{"start":{"line":36,"column":2},"end":{"line":43,"column":4}},"26":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"27":{"start":{"line":37,"column":35},"end":{"line":37,"column":41}},"28":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"29":{"start":{"line":39,"column":4},"end":{"line":41,"column":6}},"30":{"start":{"line":40,"column":6},"end":{"line":40,"column":25}},"31":{"start":{"line":42,"column":4},"end":{"line":42,"column":15}},"32":{"start":{"line":46,"column":0},"end":{"line":57,"column":1}},"33":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"34":{"start":{"line":48,"column":23},"end":{"line":48,"column":29}},"35":{"start":{"line":49,"column":2},"end":{"line":49,"column":24}},"36":{"start":{"line":51,"column":11},"end":{"line":51,"column":15}},"37":{"start":{"line":52,"column":2},"end":{"line":56,"column":10}},"38":{"start":{"line":54,"column":6},"end":{"line":54,"column":24}},"39":{"start":{"line":59,"column":0},"end":{"line":69,"column":1}},"40":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"41":{"start":{"line":60,"column":40},"end":{"line":60,"column":68}},"42":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"43":{"start":{"line":62,"column":19},"end":{"line":62,"column":72}},"44":{"start":{"line":64,"column":2},"end":{"line":64,"column":17}},"45":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"46":{"start":{"line":66,"column":2},"end":{"line":66,"column":17}},"47":{"start":{"line":67,"column":2},"end":{"line":67,"column":43}},"48":{"start":{"line":68,"column":2},"end":{"line":68,"column":25}},"49":{"start":{"line":71,"column":0},"end":{"line":75,"column":1}},"50":{"start":{"line":72,"column":2},"end":{"line":72,"column":21}},"51":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"52":{"start":{"line":73,"column":26},"end":{"line":73,"column":52}},"53":{"start":{"line":74,"column":2},"end":{"line":74,"column":20}},"54":{"start":{"line":77,"column":0},"end":{"line":82,"column":1}},"55":{"start":{"line":78,"column":2},"end":{"line":78,"column":22}},"56":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"57":{"start":{"line":79,"column":26},"end":{"line":79,"column":53}},"58":{"start":{"line":80,"column":2},"end":{"line":80,"column":21}},"59":{"start":{"line":81,"column":2},"end":{"line":81,"column":17}},"60":{"start":{"line":84,"column":0},"end":{"line":88,"column":1}},"61":{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},"62":{"start":{"line":86,"column":2},"end":{"line":86,"column":24}},"63":{"start":{"line":87,"column":2},"end":{"line":87,"column":17}},"64":{"start":{"line":90,"column":0},"end":{"line":233,"column":1}},"65":{"start":{"line":91,"column":11},"end":{"line":91,"column":15}},"66":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"67":{"start":{"line":93,"column":4},"end":{"line":93,"column":10}},"68":{"start":{"line":96,"column":14},"end":{"line":96,"column":32}},"69":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"70":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"71":{"start":{"line":100,"column":6},"end":{"line":100,"column":22}},"72":{"start":{"line":102,"column":4},"end":{"line":102,"column":10}},"73":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"74":{"start":{"line":107,"column":4},"end":{"line":107,"column":29}},"75":{"start":{"line":108,"column":4},"end":{"line":111,"column":6}},"76":{"start":{"line":110,"column":6},"end":{"line":110,"column":19}},"77":{"start":{"line":112,"column":4},"end":{"line":112,"column":10}},"78":{"start":{"line":115,"column":2},"end":{"line":115,"column":23}},"79":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"80":{"start":{"line":119,"column":4},"end":{"line":119,"column":24}},"81":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"82":{"start":{"line":121,"column":4},"end":{"line":121,"column":18}},"83":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"84":{"start":{"line":123,"column":4},"end":{"line":123,"column":10}},"85":{"start":{"line":134,"column":13},"end":{"line":134,"column":53}},"86":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"87":{"start":{"line":137,"column":4},"end":{"line":137,"column":27}},"88":{"start":{"line":140,"column":15},"end":{"line":140,"column":17}},"89":{"start":{"line":142,"column":2},"end":{"line":144,"column":4}},"90":{"start":{"line":143,"column":4},"end":{"line":143,"column":30}},"91":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"92":{"start":{"line":146,"column":25},"end":{"line":146,"column":52}},"93":{"start":{"line":148,"column":2},"end":{"line":148,"column":53}},"94":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"95":{"start":{"line":152,"column":4},"end":{"line":152,"column":49}},"96":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"97":{"start":{"line":156,"column":4},"end":{"line":156,"column":29}},"98":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"99":{"start":{"line":161,"column":6},"end":{"line":161,"column":12}},"100":{"start":{"line":164,"column":6},"end":{"line":164,"column":24}},"101":{"start":{"line":165,"column":6},"end":{"line":165,"column":21}},"102":{"start":{"line":166,"column":6},"end":{"line":166,"column":11}},"103":{"start":{"line":169,"column":15},"end":{"line":169,"column":69}},"104":{"start":{"line":170,"column":6},"end":{"line":170,"column":54}},"105":{"start":{"line":171,"column":6},"end":{"line":171,"column":21}},"106":{"start":{"line":172,"column":6},"end":{"line":172,"column":11}},"107":{"start":{"line":175,"column":15},"end":{"line":175,"column":69}},"108":{"start":{"line":176,"column":6},"end":{"line":176,"column":74}},"109":{"start":{"line":177,"column":6},"end":{"line":177,"column":21}},"110":{"start":{"line":178,"column":6},"end":{"line":178,"column":11}},"111":{"start":{"line":187,"column":15},"end":{"line":187,"column":53}},"112":{"start":{"line":189,"column":2},"end":{"line":189,"column":20}},"113":{"start":{"line":195,"column":2},"end":{"line":197,"column":4}},"114":{"start":{"line":196,"column":4},"end":{"line":196,"column":22}},"115":{"start":{"line":199,"column":2},"end":{"line":205,"column":4}},"116":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"117":{"start":{"line":201,"column":6},"end":{"line":201,"column":50}},"118":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"119":{"start":{"line":204,"column":33},"end":{"line":204,"column":44}},"120":{"start":{"line":206,"column":2},"end":{"line":206,"column":31}},"121":{"start":{"line":208,"column":14},"end":{"line":208,"column":19}},"122":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"123":{"start":{"line":210,"column":15},"end":{"line":210,"column":21}},"124":{"start":{"line":211,"column":4},"end":{"line":211,"column":16}},"125":{"start":{"line":215,"column":4},"end":{"line":215,"column":27}},"126":{"start":{"line":216,"column":4},"end":{"line":216,"column":26}},"127":{"start":{"line":217,"column":4},"end":{"line":217,"column":17}},"128":{"start":{"line":220,"column":2},"end":{"line":223,"column":4}},"129":{"start":{"line":222,"column":4},"end":{"line":222,"column":24}},"130":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"131":{"start":{"line":229,"column":4},"end":{"line":229,"column":21}},"132":{"start":{"line":232,"column":2},"end":{"line":232,"column":20}},"133":{"start":{"line":235,"column":0},"end":{"line":235,"column":39}},"134":{"start":{"line":236,"column":0},"end":{"line":236,"column":37}}},"fnMap":{"0":{"name":"Pack","decl":{"start":{"line":18,"column":9},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":22},"end":{"line":44,"column":1}},"line":18},"1":{"name":"(anonymous_1)","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":31},"end":{"line":43,"column":3}},"line":36},"2":{"name":"(anonymous_2)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":30},"end":{"line":41,"column":5}},"line":39},"3":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":28}},"loc":{"start":{"line":46,"column":44},"end":{"line":57,"column":1}},"line":46},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":29},"end":{"line":55,"column":5}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":39},"end":{"line":69,"column":1}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":23},"end":{"line":71,"column":24}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":77,"column":24},"end":{"line":77,"column":25}},"loc":{"start":{"line":77,"column":36},"end":{"line":82,"column":1}},"line":77},"8":{"name":"(anonymous_8)","decl":{"start":{"line":84,"column":21},"end":{"line":84,"column":22}},"loc":{"start":{"line":84,"column":33},"end":{"line":88,"column":1}},"line":84},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":26},"end":{"line":90,"column":27}},"loc":{"start":{"line":90,"column":38},"end":{"line":233,"column":1}},"line":90},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":22},"end":{"line":108,"column":23}},"loc":{"start":{"line":108,"column":34},"end":{"line":111,"column":5}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":142,"column":41},"end":{"line":142,"column":42}},"loc":{"start":{"line":142,"column":54},"end":{"line":144,"column":3}},"line":142},"12":{"name":"(anonymous_12)","decl":{"start":{"line":195,"column":20},"end":{"line":195,"column":21}},"loc":{"start":{"line":195,"column":33},"end":{"line":197,"column":3}},"line":195},"13":{"name":"(anonymous_13)","decl":{"start":{"line":199,"column":22},"end":{"line":199,"column":23}},"loc":{"start":{"line":199,"column":34},"end":{"line":205,"column":3}},"line":199},"14":{"name":"(anonymous_14)","decl":{"start":{"line":200,"column":30},"end":{"line":200,"column":31}},"loc":{"start":{"line":200,"column":42},"end":{"line":202,"column":5}},"line":200},"15":{"name":"nextEntry","decl":{"start":{"line":209,"column":11},"end":{"line":209,"column":20}},"loc":{"start":{"line":209,"column":24},"end":{"line":218,"column":3}},"line":209},"16":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":21},"end":{"line":220,"column":22}},"loc":{"start":{"line":220,"column":35},"end":{"line":223,"column":3}},"line":220},"17":{"name":"(anonymous_17)","decl":{"start":{"line":235,"column":25},"end":{"line":235,"column":26}},"loc":{"start":{"line":235,"column":37},"end":{"line":235,"column":39}},"line":235},"18":{"name":"(anonymous_18)","decl":{"start":{"line":236,"column":23},"end":{"line":236,"column":24}},"loc":{"start":{"line":236,"column":35},"end":{"line":236,"column":37}},"line":236}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},{"start":{"line":21,"column":2},"end":{"line":21,"column":51}}],"line":21},"1":{"loc":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},{"start":{"line":23,"column":2},"end":{"line":24,"column":32}}],"line":23},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},{"start":{"line":37,"column":4},"end":{"line":37,"column":41}}],"line":37},"3":{"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},{"start":{"line":48,"column":2},"end":{"line":48,"column":29}}],"line":48},"4":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},{"start":{"line":60,"column":2},"end":{"line":60,"column":68}}],"line":60},"5":{"loc":{"start":{"line":60,"column":6},"end":{"line":60,"column":38}},"type":"binary-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":18}},{"start":{"line":60,"column":22},"end":{"line":60,"column":38}}],"line":60},"6":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},{"start":{"line":62,"column":2},"end":{"line":62,"column":72}}],"line":62},"7":{"loc":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},{"start":{"line":73,"column":2},"end":{"line":73,"column":52}}],"line":73},"8":{"loc":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},{"start":{"line":79,"column":2},"end":{"line":79,"column":53}}],"line":79},"9":{"loc":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},{"start":{"line":92,"column":2},"end":{"line":94,"column":3}}],"line":92},"10":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":34}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":16}},{"start":{"line":92,"column":20},"end":{"line":92,"column":34}}],"line":92},"11":{"loc":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},{"start":{"line":98,"column":2},"end":{"line":103,"column":3}}],"line":98},"12":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{"line":99,"column":4},"end":{"line":101,"column":5}}],"line":99},"13":{"loc":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},{"start":{"line":105,"column":2},"end":{"line":113,"column":3}}],"line":105},"14":{"loc":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"type":"if","locations":[{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},{"start":{"line":117,"column":2},"end":{"line":124,"column":3}}],"line":117},"15":{"loc":{"start":{"line":134,"column":27},"end":{"line":134,"column":46}},"type":"binary-expr","locations":[{"start":{"line":134,"column":27},"end":{"line":134,"column":37}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}],"line":134},"16":{"loc":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},{"start":{"line":135,"column":2},"end":{"line":138,"column":3}}],"line":135},"17":{"loc":{"start":{"line":135,"column":6},"end":{"line":135,"column":72}},"type":"binary-expr","locations":[{"start":{"line":135,"column":6},"end":{"line":135,"column":16}},{"start":{"line":135,"column":20},"end":{"line":135,"column":39}},{"start":{"line":135,"column":43},"end":{"line":135,"column":53}},{"start":{"line":135,"column":57},"end":{"line":135,"column":72}}],"line":135},"18":{"loc":{"start":{"line":142,"column":14},"end":{"line":142,"column":31}},"type":"binary-expr","locations":[{"start":{"line":142,"column":14},"end":{"line":142,"column":25}},{"start":{"line":142,"column":29},"end":{"line":142,"column":31}}],"line":142},"19":{"loc":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"type":"if","locations":[{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},{"start":{"line":146,"column":2},"end":{"line":146,"column":52}}],"line":146},"20":{"loc":{"start":{"line":148,"column":36},"end":{"line":148,"column":52}},"type":"binary-expr","locations":[{"start":{"line":148,"column":36},"end":{"line":148,"column":46}},{"start":{"line":148,"column":50},"end":{"line":148,"column":52}}],"line":148},"21":{"loc":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"type":"if","locations":[{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},{"start":{"line":151,"column":2},"end":{"line":153,"column":3}}],"line":151},"22":{"loc":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"type":"if","locations":[{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},{"start":{"line":155,"column":2},"end":{"line":156,"column":29}}],"line":155},"23":{"loc":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"type":"switch","locations":[{"start":{"line":160,"column":4},"end":{"line":161,"column":12}},{"start":{"line":163,"column":4},"end":{"line":166,"column":11}},{"start":{"line":168,"column":4},"end":{"line":172,"column":11}},{"start":{"line":174,"column":4},"end":{"line":178,"column":11}}],"line":158},"24":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":54}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},{"start":{"line":170,"column":51},"end":{"line":170,"column":54}}],"line":170},"25":{"loc":{"start":{"line":176,"column":24},"end":{"line":176,"column":74}},"type":"binary-expr","locations":[{"start":{"line":176,"column":24},"end":{"line":176,"column":67}},{"start":{"line":176,"column":71},"end":{"line":176,"column":74}}],"line":176},"26":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},{"start":{"line":204,"column":4},"end":{"line":204,"column":44}}],"line":204},"27":{"loc":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},{"start":{"line":210,"column":4},"end":{"line":210,"column":21}}],"line":210},"28":{"loc":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},{"start":{"line":227,"column":2},"end":{"line":230,"column":3}}],"line":227}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":512,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":1,"50":0,"51":0,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0,0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"8beb16ccde52e484aa1dd87f5ece33d696c808ab","contentHash":"7bb2b7ebe1111c0deefbf9a61d17bf9d2dbe951adb585db96f9d89663ce5909d"},"/Users/isaacs/dev/js/tar/lib/entry-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":16},"end":{"line":4,"column":38}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":34}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":37}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":29}},"9":{"start":{"line":15,"column":11},"end":{"line":15,"column":15}},"10":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":33}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":20}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":35}},"16":{"start":{"line":28,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"18":{"start":{"line":32,"column":2},"end":{"line":34,"column":4}},"19":{"start":{"line":33,"column":4},"end":{"line":33,"column":20}},"20":{"start":{"line":36,"column":2},"end":{"line":39,"column":4}},"21":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"22":{"start":{"line":38,"column":4},"end":{"line":38,"column":20}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":18}},"24":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":18}},"26":{"start":{"line":45,"column":2},"end":{"line":45,"column":25}},"27":{"start":{"line":46,"column":2},"end":{"line":46,"column":23}},"28":{"start":{"line":47,"column":2},"end":{"line":47,"column":22}},"29":{"start":{"line":49,"column":2},"end":{"line":49,"column":17}},"30":{"start":{"line":50,"column":2},"end":{"line":50,"column":23}},"31":{"start":{"line":51,"column":2},"end":{"line":51,"column":18}},"32":{"start":{"line":53,"column":2},"end":{"line":55,"column":4}},"33":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"34":{"start":{"line":58,"column":0},"end":{"line":65,"column":1}},"35":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"36":{"start":{"line":60,"column":19},"end":{"line":60,"column":74}},"37":{"start":{"line":61,"column":2},"end":{"line":61,"column":22}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":17}},"39":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"40":{"start":{"line":64,"column":2},"end":{"line":64,"column":25}},"41":{"start":{"line":67,"column":0},"end":{"line":74,"column":1}},"42":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"43":{"start":{"line":69,"column":9},"end":{"line":69,"column":29}},"44":{"start":{"line":70,"column":2},"end":{"line":70,"column":24}},"45":{"start":{"line":71,"column":2},"end":{"line":71,"column":20}},"46":{"start":{"line":72,"column":2},"end":{"line":72,"column":17}},"47":{"start":{"line":73,"column":2},"end":{"line":73,"column":43}},"48":{"start":{"line":76,"column":0},"end":{"line":80,"column":1}},"49":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"50":{"start":{"line":79,"column":2},"end":{"line":79,"column":20}},"51":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"52":{"start":{"line":84,"column":2},"end":{"line":84,"column":22}},"53":{"start":{"line":85,"column":2},"end":{"line":85,"column":21}},"54":{"start":{"line":86,"column":2},"end":{"line":86,"column":17}},"55":{"start":{"line":89,"column":0},"end":{"line":98,"column":1}},"56":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"57":{"start":{"line":91,"column":20},"end":{"line":91,"column":69}},"58":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"59":{"start":{"line":95,"column":20},"end":{"line":95,"column":30}},"60":{"start":{"line":97,"column":2},"end":{"line":97,"column":31}},"61":{"start":{"line":100,"column":0},"end":{"line":126,"column":1}},"62":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"63":{"start":{"line":102,"column":23},"end":{"line":102,"column":29}},"64":{"start":{"line":103,"column":2},"end":{"line":103,"column":24}},"65":{"start":{"line":105,"column":20},"end":{"line":105,"column":48}},"66":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"67":{"start":{"line":108,"column":13},"end":{"line":108,"column":17}},"68":{"start":{"line":110,"column":4},"end":{"line":111,"column":44}},"69":{"start":{"line":113,"column":4},"end":{"line":120,"column":12}},"70":{"start":{"line":115,"column":8},"end":{"line":115,"column":26}},"71":{"start":{"line":118,"column":8},"end":{"line":118,"column":28}},"72":{"start":{"line":124,"column":2},"end":{"line":124,"column":32}},"73":{"start":{"line":125,"column":2},"end":{"line":125,"column":21}},"74":{"start":{"line":128,"column":0},"end":{"line":167,"column":1}},"75":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"76":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"77":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"78":{"start":{"line":136,"column":4},"end":{"line":136,"column":10}},"79":{"start":{"line":139,"column":2},"end":{"line":139,"column":25}},"80":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"81":{"start":{"line":142,"column":2},"end":{"line":159,"column":3}},"82":{"start":{"line":142,"column":15},"end":{"line":142,"column":16}},"83":{"start":{"line":145,"column":12},"end":{"line":145,"column":18}},"84":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"85":{"start":{"line":147,"column":19},"end":{"line":147,"column":37}},"86":{"start":{"line":148,"column":9},"end":{"line":148,"column":30}},"87":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"88":{"start":{"line":152,"column":6},"end":{"line":152,"column":30}},"89":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"90":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"91":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"92":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"93":{"start":{"line":162,"column":2},"end":{"line":162,"column":25}},"94":{"start":{"line":163,"column":2},"end":{"line":163,"column":26}},"95":{"start":{"line":166,"column":2},"end":{"line":166,"column":20}},"96":{"start":{"line":169,"column":0},"end":{"line":169,"column":46}}},"fnMap":{"0":{"name":"EntryWriter","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":20}},"loc":{"start":{"line":14,"column":29},"end":{"line":56,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":37},"end":{"line":30,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":25},"end":{"line":32,"column":26}},"loc":{"start":{"line":32,"column":37},"end":{"line":34,"column":3}},"line":32},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":23},"end":{"line":36,"column":24}},"loc":{"start":{"line":36,"column":35},"end":{"line":39,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":28},"end":{"line":55,"column":3}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":30},"end":{"line":58,"column":31}},"loc":{"start":{"line":58,"column":43},"end":{"line":65,"column":1}},"line":58},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":28},"end":{"line":67,"column":29}},"loc":{"start":{"line":67,"column":41},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":30},"end":{"line":76,"column":31}},"loc":{"start":{"line":76,"column":42},"end":{"line":80,"column":1}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":31},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":43},"end":{"line":87,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":89,"column":28},"end":{"line":89,"column":29}},"loc":{"start":{"line":89,"column":45},"end":{"line":98,"column":1}},"line":89},"10":{"name":"(anonymous_10)","decl":{"start":{"line":100,"column":32},"end":{"line":100,"column":33}},"loc":{"start":{"line":100,"column":44},"end":{"line":126,"column":1}},"line":100},"11":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":18},"end":{"line":114,"column":19}},"loc":{"start":{"line":114,"column":31},"end":{"line":116,"column":7}},"line":114},"12":{"name":"(anonymous_12)","decl":{"start":{"line":117,"column":19},"end":{"line":117,"column":20}},"loc":{"start":{"line":117,"column":33},"end":{"line":119,"column":7}},"line":117},"13":{"name":"(anonymous_13)","decl":{"start":{"line":128,"column":33},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":45},"end":{"line":167,"column":1}},"line":128},"14":{"name":"(anonymous_14)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":44},"end":{"line":169,"column":46}},"line":169}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"1":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"2":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},{"start":{"line":60,"column":2},"end":{"line":60,"column":74}}],"line":60},"3":{"loc":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},{"start":{"line":69,"column":2},"end":{"line":69,"column":29}}],"line":69},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},{"start":{"line":91,"column":2},"end":{"line":91,"column":69}}],"line":91},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},{"start":{"line":95,"column":2},"end":{"line":95,"column":30}}],"line":95},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},{"start":{"line":102,"column":2},"end":{"line":102,"column":29}}],"line":102},"7":{"loc":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},{"start":{"line":107,"column":2},"end":{"line":121,"column":3}}],"line":107},"8":{"loc":{"start":{"line":107,"column":6},"end":{"line":107,"column":44}},"type":"binary-expr","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":44}}],"line":107},"9":{"loc":{"start":{"line":110,"column":27},"end":{"line":111,"column":44}},"type":"binary-expr","locations":[{"start":{"line":110,"column":27},"end":{"line":110,"column":47}},{"start":{"line":111,"column":6},"end":{"line":111,"column":44}}],"line":110},"10":{"loc":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"type":"if","locations":[{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},{"start":{"line":130,"column":2},"end":{"line":132,"column":3}}],"line":130},"11":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":37}},"type":"binary-expr","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":22}},{"start":{"line":130,"column":26},"end":{"line":130,"column":37}}],"line":130},"12":{"loc":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"type":"if","locations":[{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},{"start":{"line":134,"column":2},"end":{"line":137,"column":3}}],"line":134},"13":{"loc":{"start":{"line":134,"column":6},"end":{"line":134,"column":38}},"type":"binary-expr","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":18}},{"start":{"line":134,"column":22},"end":{"line":134,"column":38}}],"line":134},"14":{"loc":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},{"start":{"line":147,"column":4},"end":{"line":148,"column":30}}],"line":147},"15":{"loc":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},{"start":{"line":150,"column":4},"end":{"line":158,"column":5}}],"line":150},"16":{"loc":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},{"start":{"line":153,"column":6},"end":{"line":156,"column":7}}],"line":153}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":0,"50":0,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":1,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3e169418508e031df78186ff63b5fa5aa2484ab8","contentHash":"84191ed4732b6763ae8701256051735aebbe5e95c932c15bef34da01b33ba1a0"},"/Users/isaacs/dev/js/tar/lib/entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry.js","statementMap":{"0":{"start":{"line":7,"column":0},"end":{"line":7,"column":22}},"1":{"start":{"line":9,"column":16},"end":{"line":9,"column":38}},"2":{"start":{"line":10,"column":10},"end":{"line":10,"column":27}},"3":{"start":{"line":11,"column":13},"end":{"line":11,"column":33}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":37}},"5":{"start":{"line":13,"column":15},"end":{"line":13,"column":34}},"6":{"start":{"line":14,"column":14},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":22}},"9":{"start":{"line":19,"column":2},"end":{"line":19,"column":22}},"10":{"start":{"line":21,"column":2},"end":{"line":21,"column":25}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":22}},"12":{"start":{"line":23,"column":2},"end":{"line":23,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":21}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"17":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"18":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"19":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"20":{"start":{"line":32,"column":2},"end":{"line":32,"column":36}},"21":{"start":{"line":34,"column":2},"end":{"line":34,"column":17}},"22":{"start":{"line":35,"column":2},"end":{"line":35,"column":23}},"23":{"start":{"line":36,"column":2},"end":{"line":36,"column":33}},"24":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"25":{"start":{"line":41,"column":11},"end":{"line":41,"column":15}},"26":{"start":{"line":42,"column":2},"end":{"line":44,"column":4}},"27":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"28":{"start":{"line":46,"column":2},"end":{"line":46,"column":18}},"29":{"start":{"line":49,"column":0},"end":{"line":49,"column":23}},"30":{"start":{"line":51,"column":0},"end":{"line":78,"column":1}},"31":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"32":{"start":{"line":52,"column":20},"end":{"line":52,"column":65}},"33":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"34":{"start":{"line":54,"column":4},"end":{"line":54,"column":40}},"35":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"36":{"start":{"line":60,"column":4},"end":{"line":60,"column":35}},"37":{"start":{"line":62,"column":2},"end":{"line":62,"column":29}},"38":{"start":{"line":65,"column":11},"end":{"line":65,"column":25}},"39":{"start":{"line":66,"column":2},"end":{"line":66,"column":21}},"40":{"start":{"line":67,"column":2},"end":{"line":67,"column":19}},"41":{"start":{"line":69,"column":2},"end":{"line":69,"column":14}},"42":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"43":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"44":{"start":{"line":74,"column":4},"end":{"line":74,"column":16}},"45":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}},"46":{"start":{"line":80,"column":0},"end":{"line":84,"column":1}},"47":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"48":{"start":{"line":81,"column":9},"end":{"line":81,"column":22}},"49":{"start":{"line":82,"column":2},"end":{"line":82,"column":21}},"50":{"start":{"line":83,"column":2},"end":{"line":83,"column":14}},"51":{"start":{"line":86,"column":0},"end":{"line":89,"column":1}},"52":{"start":{"line":87,"column":2},"end":{"line":87,"column":21}},"53":{"start":{"line":88,"column":2},"end":{"line":88,"column":20}},"54":{"start":{"line":91,"column":0},"end":{"line":97,"column":1}},"55":{"start":{"line":93,"column":2},"end":{"line":93,"column":21}},"56":{"start":{"line":94,"column":2},"end":{"line":94,"column":22}},"57":{"start":{"line":95,"column":2},"end":{"line":95,"column":14}},"58":{"start":{"line":96,"column":2},"end":{"line":96,"column":41}},"59":{"start":{"line":100,"column":0},"end":{"line":139,"column":1}},"60":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"61":{"start":{"line":103,"column":52},"end":{"line":103,"column":58}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":22}},"63":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"64":{"start":{"line":111,"column":16},"end":{"line":111,"column":43}},"65":{"start":{"line":112,"column":4},"end":{"line":112,"column":28}},"66":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"67":{"start":{"line":117,"column":4},"end":{"line":117,"column":57}},"68":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"69":{"start":{"line":119,"column":6},"end":{"line":119,"column":29}},"70":{"start":{"line":120,"column":6},"end":{"line":120,"column":24}},"71":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"72":{"start":{"line":123,"column":6},"end":{"line":123,"column":24}},"73":{"start":{"line":124,"column":6},"end":{"line":124,"column":22}},"74":{"start":{"line":130,"column":12},"end":{"line":130,"column":29}},"75":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"76":{"start":{"line":132,"column":4},"end":{"line":132,"column":36}},"77":{"start":{"line":133,"column":4},"end":{"line":133,"column":22}},"78":{"start":{"line":134,"column":4},"end":{"line":134,"column":25}},"79":{"start":{"line":135,"column":4},"end":{"line":135,"column":40}},"80":{"start":{"line":138,"column":2},"end":{"line":138,"column":23}},"81":{"start":{"line":141,"column":0},"end":{"line":211,"column":1}},"82":{"start":{"line":143,"column":15},"end":{"line":143,"column":27}},"83":{"start":{"line":144,"column":17},"end":{"line":144,"column":31}},"84":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}},"85":{"start":{"line":146,"column":14},"end":{"line":146,"column":24}},"86":{"start":{"line":149,"column":15},"end":{"line":149,"column":25}},"87":{"start":{"line":150,"column":2},"end":{"line":154,"column":3}},"88":{"start":{"line":150,"column":15},"end":{"line":150,"column":16}},"89":{"start":{"line":151,"column":16},"end":{"line":151,"column":25}},"90":{"start":{"line":152,"column":14},"end":{"line":152,"column":27}},"91":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"92":{"start":{"line":153,"column":36},"end":{"line":153,"column":54}},"93":{"start":{"line":158,"column":3},"end":{"line":165,"column":3}},"94":{"start":{"line":159,"column":4},"end":{"line":161,"column":6}},"95":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"96":{"start":{"line":160,"column":39},"end":{"line":160,"column":54}},"97":{"start":{"line":165,"column":3},"end":{"line":173,"column":3}},"98":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"99":{"start":{"line":167,"column":6},"end":{"line":167,"column":40}},"100":{"start":{"line":173,"column":3},"end":{"line":177,"column":4}},"101":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"102":{"start":{"line":175,"column":6},"end":{"line":175,"column":42}},"103":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"104":{"start":{"line":184,"column":6},"end":{"line":184,"column":19}},"105":{"start":{"line":185,"column":6},"end":{"line":185,"column":11}},"106":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"107":{"start":{"line":189,"column":6},"end":{"line":189,"column":11}},"108":{"start":{"line":192,"column":6},"end":{"line":192,"column":22}},"109":{"start":{"line":193,"column":6},"end":{"line":193,"column":11}},"110":{"start":{"line":202,"column":6},"end":{"line":202,"column":34}},"111":{"start":{"line":205,"column":2},"end":{"line":205,"column":18}},"112":{"start":{"line":206,"column":2},"end":{"line":206,"column":24}},"113":{"start":{"line":207,"column":2},"end":{"line":207,"column":24}},"114":{"start":{"line":210,"column":2},"end":{"line":210,"column":30}},"115":{"start":{"line":215,"column":0},"end":{"line":217,"column":1}},"116":{"start":{"line":216,"column":2},"end":{"line":216,"column":20}},"117":{"start":{"line":219,"column":0},"end":{"line":219,"column":35}},"118":{"start":{"line":220,"column":0},"end":{"line":220,"column":37}}},"fnMap":{"0":{"name":"Entry","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":14}},"loc":{"start":{"line":16,"column":42},"end":{"line":47,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":36},"end":{"line":42,"column":37}},"loc":{"start":{"line":42,"column":49},"end":{"line":44,"column":3}},"line":42},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":24},"end":{"line":51,"column":25}},"loc":{"start":{"line":51,"column":37},"end":{"line":78,"column":1}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":80,"column":22},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":84,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":86,"column":24},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":36},"end":{"line":89,"column":1}},"line":86},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":25},"end":{"line":91,"column":26}},"loc":{"start":{"line":91,"column":37},"end":{"line":97,"column":1}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":24},"end":{"line":100,"column":25}},"loc":{"start":{"line":100,"column":36},"end":{"line":139,"column":1}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":28},"end":{"line":141,"column":29}},"loc":{"start":{"line":141,"column":40},"end":{"line":211,"column":1}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":158,"column":30},"end":{"line":158,"column":31}},"loc":{"start":{"line":158,"column":43},"end":{"line":162,"column":3}},"line":158},"9":{"name":"(anonymous_9)","decl":{"start":{"line":159,"column":27},"end":{"line":159,"column":28}},"loc":{"start":{"line":159,"column":40},"end":{"line":161,"column":5}},"line":159},"10":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":32},"end":{"line":165,"column":33}},"loc":{"start":{"line":165,"column":45},"end":{"line":169,"column":3}},"line":165},"11":{"name":"(anonymous_11)","decl":{"start":{"line":173,"column":39},"end":{"line":173,"column":40}},"loc":{"start":{"line":173,"column":52},"end":{"line":177,"column":3}},"line":173},"12":{"name":"(anonymous_12)","decl":{"start":{"line":215,"column":24},"end":{"line":215,"column":25}},"loc":{"start":{"line":215,"column":34},"end":{"line":217,"column":1}},"line":215}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":19},"end":{"line":36,"column":33}},"type":"binary-expr","locations":[{"start":{"line":36,"column":19},"end":{"line":36,"column":27}},{"start":{"line":36,"column":31},"end":{"line":36,"column":33}}],"line":36},"1":{"loc":{"start":{"line":42,"column":14},"end":{"line":42,"column":26}},"type":"binary-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":20}},{"start":{"line":42,"column":24},"end":{"line":42,"column":26}}],"line":42},"2":{"loc":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},{"start":{"line":52,"column":2},"end":{"line":52,"column":65}}],"line":52},"3":{"loc":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},{"start":{"line":53,"column":2},"end":{"line":55,"column":3}}],"line":53},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"6":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":28}}],"line":72},"7":{"loc":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},{"start":{"line":81,"column":2},"end":{"line":81,"column":22}}],"line":81},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},{"start":{"line":103,"column":2},"end":{"line":103,"column":58}}],"line":103},"9":{"loc":{"start":{"line":103,"column":6},"end":{"line":103,"column":50}},"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":18}},{"start":{"line":103,"column":22},"end":{"line":103,"column":35}},{"start":{"line":103,"column":39},"end":{"line":103,"column":50}}],"line":103},"10":{"loc":{"start":{"line":110,"column":9},"end":{"line":110,"column":54}},"type":"binary-expr","locations":[{"start":{"line":110,"column":9},"end":{"line":110,"column":37}},{"start":{"line":110,"column":41},"end":{"line":110,"column":54}}],"line":110},"11":{"loc":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},{"start":{"line":116,"column":2},"end":{"line":126,"column":3}}],"line":116},"12":{"loc":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},{"start":{"line":118,"column":4},"end":{"line":121,"column":5}}],"line":118},"13":{"loc":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},{"start":{"line":122,"column":4},"end":{"line":125,"column":5}}],"line":122},"14":{"loc":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},{"start":{"line":131,"column":2},"end":{"line":136,"column":3}}],"line":131},"15":{"loc":{"start":{"line":131,"column":6},"end":{"line":131,"column":45}},"type":"binary-expr","locations":[{"start":{"line":131,"column":6},"end":{"line":131,"column":26}},{"start":{"line":131,"column":30},"end":{"line":131,"column":45}}],"line":131},"16":{"loc":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},{"start":{"line":153,"column":4},"end":{"line":153,"column":54}}],"line":153},"17":{"loc":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"type":"if","locations":[{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},{"start":{"line":160,"column":6},"end":{"line":160,"column":54}}],"line":160},"18":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}],"line":166},"19":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{"line":174,"column":4},"end":{"line":176,"column":5}}],"line":174},"20":{"loc":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"type":"switch","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":19}},{"start":{"line":183,"column":4},"end":{"line":185,"column":11}},{"start":{"line":187,"column":4},"end":{"line":189,"column":11}},{"start":{"line":191,"column":4},"end":{"line":193,"column":11}},{"start":{"line":195,"column":4},"end":{"line":195,"column":16}},{"start":{"line":196,"column":4},"end":{"line":196,"column":24}},{"start":{"line":197,"column":4},"end":{"line":197,"column":27}},{"start":{"line":198,"column":4},"end":{"line":198,"column":23}},{"start":{"line":199,"column":4},"end":{"line":199,"column":21}},{"start":{"line":200,"column":4},"end":{"line":200,"column":16}},{"start":{"line":201,"column":4},"end":{"line":202,"column":34}}],"line":181}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":1,"30":1,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1,"47":0,"48":0,"49":0,"50":0,"51":1,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":1,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":1,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":1,"116":0,"117":1,"118":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0,0,0,0,0,0,0,0,0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"2cc4f925db2a60e89bf0743124faec4e8996dfdb","contentHash":"245d5cb2b23d975dc5b9a0ed2553c93c587727d50a7961242f50cec333c04ba9"},"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/global-header-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":65}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":34}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"4":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":40}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}}},"fnMap":{"0":{"name":"GlobalHeaderWriter","decl":{"start":{"line":8,"column":9},"end":{"line":8,"column":27}},"loc":{"start":{"line":8,"column":36},"end":{"line":14,"column":1}},"line":8}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0},"f":{"0":0},"b":{"0":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3d0c8589f62a5c8ccec606d52d3abd98e5627d57","contentHash":"a2570ca840cf3e44d77e15af0aee52f7c145da39b76366006f3672b9708def3e"},"/Users/isaacs/dev/js/tar/lib/parse.js":{"path":"/Users/isaacs/dev/js/tar/lib/parse.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"1":{"start":{"line":8,"column":13},"end":{"line":8,"column":30}},"2":{"start":{"line":9,"column":13},"end":{"line":9,"column":26}},"3":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":30}},"5":{"start":{"line":12,"column":16},"end":{"line":12,"column":38}},"6":{"start":{"line":13,"column":12},"end":{"line":13,"column":33}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":46}},"8":{"start":{"line":15,"column":21},"end":{"line":15,"column":52}},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":33}},"10":{"start":{"line":17,"column":15},"end":{"line":17,"column":34}},"11":{"start":{"line":18,"column":14},"end":{"line":18,"column":32}},"12":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}},"13":{"start":{"line":28,"column":11},"end":{"line":28,"column":15}},"14":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"15":{"start":{"line":29,"column":30},"end":{"line":29,"column":48}},"16":{"start":{"line":34,"column":2},"end":{"line":34,"column":18}},"17":{"start":{"line":36,"column":2},"end":{"line":36,"column":20}},"18":{"start":{"line":37,"column":2},"end":{"line":37,"column":20}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":35}},"20":{"start":{"line":39,"column":2},"end":{"line":39,"column":17}},"21":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"22":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"23":{"start":{"line":43,"column":2},"end":{"line":45,"column":4}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":20}},"31":{"start":{"line":63,"column":0},"end":{"line":67,"column":1}},"32":{"start":{"line":64,"column":11},"end":{"line":64,"column":15}},"33":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"34":{"start":{"line":65,"column":31},"end":{"line":65,"column":57}},"35":{"start":{"line":66,"column":2},"end":{"line":66,"column":16}},"36":{"start":{"line":72,"column":0},"end":{"line":83,"column":1}},"37":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"38":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"39":{"start":{"line":77,"column":17},"end":{"line":77,"column":18}},"40":{"start":{"line":77,"column":24},"end":{"line":77,"column":32}},"41":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":62}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":10}},"44":{"start":{"line":82,"column":2},"end":{"line":82,"column":30}},"45":{"start":{"line":85,"column":0},"end":{"line":88,"column":1}},"46":{"start":{"line":86,"column":2},"end":{"line":86,"column":20}},"47":{"start":{"line":87,"column":2},"end":{"line":87,"column":28}},"48":{"start":{"line":94,"column":0},"end":{"line":94,"column":38}},"49":{"start":{"line":96,"column":0},"end":{"line":137,"column":1}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":59}},"51":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":27}},"53":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"54":{"start":{"line":106,"column":22},"end":{"line":106,"column":36}},"55":{"start":{"line":108,"column":6},"end":{"line":108,"column":34}},"56":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"57":{"start":{"line":109,"column":31},"end":{"line":109,"column":51}},"58":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"59":{"start":{"line":112,"column":6},"end":{"line":112,"column":17}},"60":{"start":{"line":113,"column":6},"end":{"line":113,"column":24}},"61":{"start":{"line":117,"column":15},"end":{"line":117,"column":19}},"62":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"63":{"start":{"line":118,"column":17},"end":{"line":118,"column":18}},"64":{"start":{"line":119,"column":6},"end":{"line":119,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"67":{"start":{"line":128,"column":8},"end":{"line":128,"column":26}},"68":{"start":{"line":129,"column":6},"end":{"line":129,"column":29}},"69":{"start":{"line":131,"column":6},"end":{"line":131,"column":30}},"70":{"start":{"line":132,"column":6},"end":{"line":132,"column":25}},"71":{"start":{"line":136,"column":2},"end":{"line":136,"column":22}},"72":{"start":{"line":140,"column":0},"end":{"line":285,"column":1}},"73":{"start":{"line":141,"column":15},"end":{"line":141,"column":31}},"74":{"start":{"line":142,"column":13},"end":{"line":142,"column":17}},"75":{"start":{"line":147,"column":13},"end":{"line":147,"column":18}},"76":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"77":{"start":{"line":150,"column":12},"end":{"line":150,"column":41}},"78":{"start":{"line":151,"column":4},"end":{"line":151,"column":21}},"79":{"start":{"line":152,"column":4},"end":{"line":152,"column":37}},"80":{"start":{"line":153,"column":4},"end":{"line":153,"column":37}},"81":{"start":{"line":154,"column":4},"end":{"line":154,"column":32}},"82":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"83":{"start":{"line":171,"column":6},"end":{"line":171,"column":23}},"84":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"85":{"start":{"line":173,"column":6},"end":{"line":173,"column":11}},"86":{"start":{"line":177,"column":6},"end":{"line":177,"column":32}},"87":{"start":{"line":178,"column":6},"end":{"line":183,"column":7}},"88":{"start":{"line":179,"column":8},"end":{"line":179,"column":41}},"89":{"start":{"line":180,"column":8},"end":{"line":182,"column":10}},"90":{"start":{"line":181,"column":10},"end":{"line":181,"column":43}},"91":{"start":{"line":184,"column":6},"end":{"line":184,"column":33}},"92":{"start":{"line":185,"column":6},"end":{"line":185,"column":17}},"93":{"start":{"line":186,"column":6},"end":{"line":186,"column":11}},"94":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"95":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"96":{"start":{"line":193,"column":8},"end":{"line":193,"column":37}},"97":{"start":{"line":195,"column":6},"end":{"line":195,"column":27}},"98":{"start":{"line":196,"column":6},"end":{"line":196,"column":17}},"99":{"start":{"line":197,"column":6},"end":{"line":197,"column":11}},"100":{"start":{"line":201,"column":6},"end":{"line":201,"column":29}},"101":{"start":{"line":202,"column":6},"end":{"line":205,"column":7}},"102":{"start":{"line":203,"column":8},"end":{"line":203,"column":45}},"103":{"start":{"line":204,"column":8},"end":{"line":204,"column":44}},"104":{"start":{"line":206,"column":6},"end":{"line":206,"column":25}},"105":{"start":{"line":207,"column":6},"end":{"line":207,"column":17}},"106":{"start":{"line":208,"column":6},"end":{"line":208,"column":11}},"107":{"start":{"line":213,"column":6},"end":{"line":213,"column":29}},"108":{"start":{"line":214,"column":6},"end":{"line":217,"column":7}},"109":{"start":{"line":215,"column":8},"end":{"line":215,"column":45}},"110":{"start":{"line":216,"column":8},"end":{"line":216,"column":40}},"111":{"start":{"line":218,"column":6},"end":{"line":218,"column":21}},"112":{"start":{"line":219,"column":6},"end":{"line":219,"column":17}},"113":{"start":{"line":220,"column":6},"end":{"line":220,"column":11}},"114":{"start":{"line":226,"column":6},"end":{"line":226,"column":23}},"115":{"start":{"line":227,"column":6},"end":{"line":227,"column":25}},"116":{"start":{"line":228,"column":6},"end":{"line":228,"column":11}},"117":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"118":{"start":{"line":233,"column":4},"end":{"line":233,"column":28}},"119":{"start":{"line":235,"column":17},"end":{"line":235,"column":29}},"120":{"start":{"line":236,"column":19},"end":{"line":236,"column":33}},"121":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"122":{"start":{"line":242,"column":2},"end":{"line":242,"column":49}},"123":{"start":{"line":243,"column":2},"end":{"line":243,"column":19}},"124":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"125":{"start":{"line":247,"column":4},"end":{"line":249,"column":6}},"126":{"start":{"line":248,"column":6},"end":{"line":248,"column":24}},"127":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"128":{"start":{"line":252,"column":13},"end":{"line":252,"column":35}},"129":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"130":{"start":{"line":255,"column":4},"end":{"line":255,"column":23}},"131":{"start":{"line":258,"column":2},"end":{"line":258,"column":21}},"132":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"133":{"start":{"line":261,"column":4},"end":{"line":261,"column":39}},"134":{"start":{"line":264,"column":11},"end":{"line":264,"column":15}},"135":{"start":{"line":266,"column":2},"end":{"line":268,"column":4}},"136":{"start":{"line":267,"column":4},"end":{"line":267,"column":14}},"137":{"start":{"line":270,"column":2},"end":{"line":272,"column":4}},"138":{"start":{"line":271,"column":4},"end":{"line":271,"column":15}},"139":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"140":{"start":{"line":275,"column":4},"end":{"line":275,"column":29}},"141":{"start":{"line":278,"column":2},"end":{"line":278,"column":22}},"142":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"143":{"start":{"line":282,"column":4},"end":{"line":282,"column":15}},"144":{"start":{"line":283,"column":4},"end":{"line":283,"column":22}}},"fnMap":{"0":{"name":"Parse","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":14}},"loc":{"start":{"line":27,"column":18},"end":{"line":58,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":25},"end":{"line":43,"column":26}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":24},"end":{"line":47,"column":25}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":51,"column":23},"end":{"line":51,"column":24}},"loc":{"start":{"line":51,"column":35},"end":{"line":53,"column":3}},"line":51},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":25},"end":{"line":55,"column":26}},"loc":{"start":{"line":55,"column":37},"end":{"line":57,"column":3}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":29},"end":{"line":63,"column":30}},"loc":{"start":{"line":63,"column":41},"end":{"line":67,"column":1}},"line":63},"6":{"name":"(anonymous_6)","decl":{"start":{"line":72,"column":24},"end":{"line":72,"column":25}},"loc":{"start":{"line":72,"column":37},"end":{"line":83,"column":1}},"line":72},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":22},"end":{"line":85,"column":23}},"loc":{"start":{"line":85,"column":35},"end":{"line":88,"column":1}},"line":85},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},"loc":{"start":{"line":94,"column":36},"end":{"line":94,"column":38}},"line":94},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":27},"end":{"line":96,"column":28}},"loc":{"start":{"line":96,"column":40},"end":{"line":137,"column":1}},"line":96},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":30},"end":{"line":140,"column":31}},"loc":{"start":{"line":140,"column":43},"end":{"line":285,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":178,"column":14},"end":{"line":178,"column":15}},"loc":{"start":{"line":178,"column":26},"end":{"line":183,"column":7}},"line":178},"12":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":42},"end":{"line":180,"column":43}},"loc":{"start":{"line":180,"column":55},"end":{"line":182,"column":9}},"line":180},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":14},"end":{"line":192,"column":15}},"loc":{"start":{"line":192,"column":26},"end":{"line":194,"column":7}},"line":192},"14":{"name":"(anonymous_14)","decl":{"start":{"line":202,"column":14},"end":{"line":202,"column":15}},"loc":{"start":{"line":202,"column":26},"end":{"line":205,"column":7}},"line":202},"15":{"name":"(anonymous_15)","decl":{"start":{"line":214,"column":14},"end":{"line":214,"column":15}},"loc":{"start":{"line":214,"column":26},"end":{"line":217,"column":7}},"line":214},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":21},"end":{"line":247,"column":22}},"loc":{"start":{"line":247,"column":34},"end":{"line":249,"column":5}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":266,"column":20},"end":{"line":266,"column":21}},"loc":{"start":{"line":266,"column":32},"end":{"line":268,"column":3}},"line":266},"18":{"name":"(anonymous_18)","decl":{"start":{"line":270,"column":21},"end":{"line":270,"column":22}},"loc":{"start":{"line":270,"column":33},"end":{"line":272,"column":3}},"line":270}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},{"start":{"line":29,"column":2},"end":{"line":29,"column":48}}],"line":29},"1":{"loc":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"type":"if","locations":[{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},{"start":{"line":65,"column":2},"end":{"line":65,"column":57}}],"line":65},"2":{"loc":{"start":{"line":65,"column":6},"end":{"line":65,"column":29}},"type":"binary-expr","locations":[{"start":{"line":65,"column":6},"end":{"line":65,"column":16}},{"start":{"line":65,"column":20},"end":{"line":65,"column":29}}],"line":65},"3":{"loc":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},{"start":{"line":73,"column":2},"end":{"line":81,"column":3}}],"line":73},"4":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},{"start":{"line":78,"column":6},"end":{"line":78,"column":62}}],"line":78},"5":{"loc":{"start":{"line":97,"column":9},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":9},"end":{"line":97,"column":10}},{"start":{"line":97,"column":14},"end":{"line":97,"column":30}}],"line":97},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},{"start":{"line":104,"column":2},"end":{"line":134,"column":3}}],"line":104},"7":{"loc":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},{"start":{"line":106,"column":4},"end":{"line":110,"column":5}}],"line":106},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},{"start":{"line":109,"column":6},"end":{"line":109,"column":51}}],"line":109},"9":{"loc":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},{"start":{"line":111,"column":4},"end":{"line":114,"column":5}}],"line":111},"10":{"loc":{"start":{"line":118,"column":20},"end":{"line":118,"column":35}},"type":"binary-expr","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":27}},{"start":{"line":118,"column":31},"end":{"line":118,"column":35}}],"line":118},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},{"start":{"line":126,"column":4},"end":{"line":133,"column":5}}],"line":126},"12":{"loc":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"type":"if","locations":[{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},{"start":{"line":127,"column":6},"end":{"line":128,"column":26}}],"line":127},"13":{"loc":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"type":"if","locations":[{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},{"start":{"line":149,"column":2},"end":{"line":155,"column":3}}],"line":149},"14":{"loc":{"start":{"line":149,"column":6},"end":{"line":149,"column":48}},"type":"binary-expr","locations":[{"start":{"line":149,"column":6},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":48}}],"line":149},"15":{"loc":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"type":"switch","locations":[{"start":{"line":158,"column":4},"end":{"line":158,"column":16}},{"start":{"line":159,"column":4},"end":{"line":159,"column":19}},{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},{"start":{"line":161,"column":4},"end":{"line":161,"column":24}},{"start":{"line":162,"column":4},"end":{"line":162,"column":27}},{"start":{"line":163,"column":4},"end":{"line":163,"column":23}},{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},{"start":{"line":166,"column":4},"end":{"line":166,"column":26}},{"start":{"line":167,"column":4},"end":{"line":173,"column":11}},{"start":{"line":175,"column":4},"end":{"line":186,"column":11}},{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},{"start":{"line":189,"column":4},"end":{"line":197,"column":11}},{"start":{"line":199,"column":4},"end":{"line":208,"column":11}},{"start":{"line":210,"column":4},"end":{"line":210,"column":31}},{"start":{"line":211,"column":4},"end":{"line":220,"column":11}},{"start":{"line":222,"column":4},"end":{"line":228,"column":11}}],"line":157},"16":{"loc":{"start":{"line":179,"column":23},"end":{"line":179,"column":41}},"type":"binary-expr","locations":[{"start":{"line":179,"column":23},"end":{"line":179,"column":35}},{"start":{"line":179,"column":39},"end":{"line":179,"column":41}}],"line":179},"17":{"loc":{"start":{"line":203,"column":25},"end":{"line":203,"column":45}},"type":"binary-expr","locations":[{"start":{"line":203,"column":25},"end":{"line":203,"column":39}},{"start":{"line":203,"column":43},"end":{"line":203,"column":45}}],"line":203},"18":{"loc":{"start":{"line":215,"column":25},"end":{"line":215,"column":45}},"type":"binary-expr","locations":[{"start":{"line":215,"column":25},"end":{"line":215,"column":39}},{"start":{"line":215,"column":43},"end":{"line":215,"column":45}}],"line":215},"19":{"loc":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"type":"if","locations":[{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},{"start":{"line":232,"column":2},"end":{"line":241,"column":3}}],"line":232},"20":{"loc":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"type":"if","locations":[{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},{"start":{"line":246,"column":2},"end":{"line":250,"column":3}}],"line":246},"21":{"loc":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},{"start":{"line":252,"column":2},"end":{"line":252,"column":35}}],"line":252},"22":{"loc":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"type":"if","locations":[{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},{"start":{"line":254,"column":2},"end":{"line":256,"column":3}}],"line":254},"23":{"loc":{"start":{"line":254,"column":6},"end":{"line":254,"column":58}},"type":"binary-expr","locations":[{"start":{"line":254,"column":6},"end":{"line":254,"column":27}},{"start":{"line":254,"column":31},"end":{"line":254,"column":58}}],"line":254},"24":{"loc":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"type":"if","locations":[{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},{"start":{"line":260,"column":2},"end":{"line":262,"column":3}}],"line":260},"25":{"loc":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"type":"if","locations":[{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},{"start":{"line":274,"column":2},"end":{"line":276,"column":3}}],"line":274},"26":{"loc":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"type":"if","locations":[{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},{"start":{"line":281,"column":2},"end":{"line":284,"column":3}}],"line":281}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":1,"32":0,"33":0,"34":0,"35":0,"36":1,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":1,"46":0,"47":0,"48":1,"49":1,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":1,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4a8f51a3a12b59eb69694618530032a813fbf8cb","contentHash":"d347e73abcd3109143efee20401d9f0bfc6d68a4a6323bd4559ada44c741786a"},"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/buffer-entry.js","statementMap":{"0":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}},"1":{"start":{"line":10,"column":15},"end":{"line":10,"column":34}},"2":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":30}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":44}},"5":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"6":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"7":{"start":{"line":18,"column":2},"end":{"line":20,"column":4}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"9":{"start":{"line":23,"column":0},"end":{"line":23,"column":28}},"10":{"start":{"line":26,"column":0},"end":{"line":30,"column":1}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":36}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":26}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":37}}},"fnMap":{"0":{"name":"BufferEntry","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":20}},"loc":{"start":{"line":13,"column":24},"end":{"line":21,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":29},"end":{"line":20,"column":3}},"line":18},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":30},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":43},"end":{"line":30,"column":1}},"line":26}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":1,"11":0,"12":0,"13":0},"f":{"0":0,"1":0,"2":0},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"d8ad66df900443c9c9d8aefe5fc126a55ba268ec","contentHash":"25e5b3c51e476fcffac7affa191a0ed0f54d64d3d3b760e887bd45ba08fffa65"},"/Users/isaacs/dev/js/tar/lib/extended-header.js":{"path":"/Users/isaacs/dev/js/tar/lib/extended-header.js","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"1":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"2":{"start":{"line":12,"column":15},"end":{"line":12,"column":34}},"3":{"start":{"line":13,"column":10},"end":{"line":13,"column":30}},"4":{"start":{"line":14,"column":14},"end":{"line":14,"column":25}},"5":{"start":{"line":15,"column":15},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":30}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":18}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":20}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"13":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"14":{"start":{"line":28,"column":2},"end":{"line":28,"column":19}},"15":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":16}},"17":{"start":{"line":33,"column":0},"end":{"line":33,"column":31}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":39}},"19":{"start":{"line":36,"column":8},"end":{"line":36,"column":9}},"20":{"start":{"line":37,"column":13},"end":{"line":37,"column":39}},"21":{"start":{"line":38,"column":11},"end":{"line":38,"column":28}},"22":{"start":{"line":39,"column":11},"end":{"line":39,"column":28}},"23":{"start":{"line":40,"column":11},"end":{"line":40,"column":28}},"24":{"start":{"line":41,"column":11},"end":{"line":41,"column":28}},"25":{"start":{"line":43,"column":0},"end":{"line":45,"column":2}},"26":{"start":{"line":44,"column":2},"end":{"line":44,"column":31}},"27":{"start":{"line":47,"column":0},"end":{"line":47,"column":16}},"28":{"start":{"line":50,"column":9},"end":{"line":50,"column":26}},"29":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"31":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"32":{"start":{"line":54,"column":8},"end":{"line":54,"column":25}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":25}},"34":{"start":{"line":56,"column":8},"end":{"line":56,"column":25}},"35":{"start":{"line":57,"column":12},"end":{"line":57,"column":29}},"36":{"start":{"line":58,"column":9},"end":{"line":58,"column":26}},"37":{"start":{"line":59,"column":9},"end":{"line":59,"column":27}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"39":{"start":{"line":62,"column":27},"end":{"line":62,"column":33}},"40":{"start":{"line":64,"column":2},"end":{"line":130,"column":3}},"41":{"start":{"line":64,"column":16},"end":{"line":64,"column":17}},"42":{"start":{"line":64,"column":23},"end":{"line":64,"column":31}},"43":{"start":{"line":69,"column":12},"end":{"line":69,"column":16}},"44":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"45":{"start":{"line":72,"column":6},"end":{"line":72,"column":53}},"46":{"start":{"line":73,"column":6},"end":{"line":73,"column":12}},"47":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"48":{"start":{"line":77,"column":16},"end":{"line":77,"column":22}},"49":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"50":{"start":{"line":82,"column":10},"end":{"line":82,"column":27}},"51":{"start":{"line":84,"column":10},"end":{"line":84,"column":73}},"52":{"start":{"line":85,"column":10},"end":{"line":85,"column":34}},"53":{"start":{"line":86,"column":10},"end":{"line":86,"column":18}},"54":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"55":{"start":{"line":89,"column":10},"end":{"line":89,"column":68}},"56":{"start":{"line":90,"column":10},"end":{"line":90,"column":16}},"57":{"start":{"line":92,"column":8},"end":{"line":92,"column":29}},"58":{"start":{"line":93,"column":8},"end":{"line":93,"column":16}},"59":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"60":{"start":{"line":98,"column":10},"end":{"line":98,"column":27}},"61":{"start":{"line":99,"column":10},"end":{"line":99,"column":57}},"62":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"63":{"start":{"line":100,"column":35},"end":{"line":100,"column":66}},"64":{"start":{"line":101,"column":10},"end":{"line":101,"column":33}},"65":{"start":{"line":102,"column":10},"end":{"line":102,"column":18}},"66":{"start":{"line":104,"column":8},"end":{"line":104,"column":28}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":16}},"68":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"69":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"70":{"start":{"line":112,"column":12},"end":{"line":112,"column":55}},"71":{"start":{"line":113,"column":12},"end":{"line":113,"column":18}},"72":{"start":{"line":115,"column":20},"end":{"line":115,"column":55}},"73":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"74":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"75":{"start":{"line":119,"column":10},"end":{"line":119,"column":38}},"76":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"77":{"start":{"line":122,"column":10},"end":{"line":122,"column":28}},"78":{"start":{"line":123,"column":10},"end":{"line":123,"column":25}},"79":{"start":{"line":124,"column":10},"end":{"line":124,"column":29}},"80":{"start":{"line":125,"column":10},"end":{"line":125,"column":18}},"81":{"start":{"line":127,"column":8},"end":{"line":127,"column":28}},"82":{"start":{"line":128,"column":8},"end":{"line":128,"column":16}},"83":{"start":{"line":134,"column":2},"end":{"line":136,"column":42}},"84":{"start":{"line":138,"column":2},"end":{"line":138,"column":15}},"85":{"start":{"line":139,"column":2},"end":{"line":139,"column":16}}},"fnMap":{"0":{"name":"ExtendedHeader","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":23}},"loc":{"start":{"line":19,"column":27},"end":{"line":31,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":28},"end":{"line":43,"column":29}},"loc":{"start":{"line":43,"column":41},"end":{"line":45,"column":1}},"line":43},"2":{"name":"parse","decl":{"start":{"line":61,"column":9},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":19},"end":{"line":131,"column":1}},"line":61},"3":{"name":"error","decl":{"start":{"line":133,"column":9},"end":{"line":133,"column":14}},"loc":{"start":{"line":133,"column":25},"end":{"line":140,"column":1}},"line":133}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},{"start":{"line":62,"column":2},"end":{"line":62,"column":33}}],"line":62},"1":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":54}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":23}},{"start":{"line":71,"column":27},"end":{"line":71,"column":54}}],"line":71},"3":{"loc":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"type":"switch","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":22}},{"start":{"line":79,"column":6},"end":{"line":93,"column":16}},{"start":{"line":95,"column":6},"end":{"line":105,"column":16}},{"start":{"line":107,"column":6},"end":{"line":128,"column":16}}],"line":76},"4":{"loc":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},{"start":{"line":81,"column":8},"end":{"line":87,"column":9}}],"line":81},"5":{"loc":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"type":"if","locations":[{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},{"start":{"line":88,"column":8},"end":{"line":91,"column":9}}],"line":88},"6":{"loc":{"start":{"line":88,"column":12},"end":{"line":88,"column":28}},"type":"binary-expr","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":18}},{"start":{"line":88,"column":22},"end":{"line":88,"column":28}}],"line":88},"7":{"loc":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},{"start":{"line":97,"column":8},"end":{"line":103,"column":9}}],"line":97},"8":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},{"start":{"line":100,"column":10},"end":{"line":100,"column":66}}],"line":100},"9":{"loc":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},{"start":{"line":109,"column":8},"end":{"line":126,"column":9}}],"line":109},"10":{"loc":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"type":"if","locations":[{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},{"start":{"line":111,"column":10},"end":{"line":114,"column":11}}],"line":111},"11":{"loc":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"type":"if","locations":[{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},{"start":{"line":116,"column":10},"end":{"line":118,"column":11}}],"line":116}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0},"f":{"0":0,"1":4,"2":0,"3":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0,0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"77cb382c69a46833a08275dbc55bf34db0dcd796","contentHash":"78a790af1726a774425fb478f1423068fe64414b747d89b597baf45139e7ae3d"},"/Users/isaacs/dev/js/tar/lib/extract.js":{"path":"/Users/isaacs/dev/js/tar/lib/extract.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":24}},"1":{"start":{"line":5,"column":10},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":14},"end":{"line":6,"column":32}},"3":{"start":{"line":7,"column":15},"end":{"line":7,"column":34}},"4":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":58}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"8":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"9":{"start":{"line":15,"column":4},"end":{"line":15,"column":25}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":25}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"15":{"start":{"line":25,"column":38},"end":{"line":25,"column":52}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"17":{"start":{"line":29,"column":2},"end":{"line":29,"column":14}},"18":{"start":{"line":30,"column":11},"end":{"line":30,"column":15}},"19":{"start":{"line":35,"column":2},"end":{"line":60,"column":4}},"20":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"21":{"start":{"line":39,"column":14},"end":{"line":39,"column":63}},"22":{"start":{"line":40,"column":6},"end":{"line":40,"column":39}},"23":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"24":{"start":{"line":42,"column":17},"end":{"line":42,"column":70}},"25":{"start":{"line":43,"column":8},"end":{"line":43,"column":50}},"26":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"27":{"start":{"line":47,"column":6},"end":{"line":48,"column":66}},"28":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"29":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"30":{"start":{"line":53,"column":21},"end":{"line":53,"column":41}},"31":{"start":{"line":54,"column":19},"end":{"line":54,"column":56}},"32":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"33":{"start":{"line":56,"column":8},"end":{"line":56,"column":65}},"34":{"start":{"line":58,"column":6},"end":{"line":58,"column":54}},"35":{"start":{"line":62,"column":2},"end":{"line":65,"column":4}},"36":{"start":{"line":63,"column":4},"end":{"line":63,"column":36}},"37":{"start":{"line":64,"column":4},"end":{"line":64,"column":15}},"38":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":25}},"40":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"41":{"start":{"line":72,"column":4},"end":{"line":72,"column":20}},"42":{"start":{"line":79,"column":2},"end":{"line":84,"column":4}},"43":{"start":{"line":81,"column":4},"end":{"line":81,"column":21}},"44":{"start":{"line":82,"column":4},"end":{"line":82,"column":18}},"45":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"46":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}},"47":{"start":{"line":89,"column":0},"end":{"line":94,"column":1}},"48":{"start":{"line":90,"column":11},"end":{"line":90,"column":15}},"49":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"50":{"start":{"line":91,"column":31},"end":{"line":91,"column":57}},"51":{"start":{"line":92,"column":2},"end":{"line":92,"column":15}}},"fnMap":{"0":{"name":"Extract","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":85,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":34},"end":{"line":60,"column":3}},"line":35},"2":{"name":"(anonymous_2)","decl":{"start":{"line":62,"column":24},"end":{"line":62,"column":25}},"loc":{"start":{"line":62,"column":36},"end":{"line":65,"column":3}},"line":62},"3":{"name":"(anonymous_3)","decl":{"start":{"line":67,"column":24},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":38},"end":{"line":69,"column":3}},"line":67},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":35},"end":{"line":73,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":24},"end":{"line":79,"column":25}},"loc":{"start":{"line":79,"column":36},"end":{"line":84,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":31},"end":{"line":89,"column":32}},"loc":{"start":{"line":89,"column":43},"end":{"line":94,"column":1}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},{"start":{"line":11,"column":2},"end":{"line":11,"column":58}}],"line":11},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"type":"binary-expr","locations":[{"start":{"line":19,"column":14},"end":{"line":19,"column":23}},{"start":{"line":19,"column":27},"end":{"line":19,"column":59}}],"line":19},"3":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},{"start":{"line":25,"column":2},"end":{"line":25,"column":52}}],"line":25},"4":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":36}},"type":"binary-expr","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":17}},{"start":{"line":25,"column":21},"end":{"line":25,"column":36}}],"line":25},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"6":{"loc":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},{"start":{"line":41,"column":6},"end":{"line":44,"column":7}}],"line":41},"7":{"loc":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}}],"line":46},"8":{"loc":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},{"start":{"line":51,"column":4},"end":{"line":59,"column":5}}],"line":51},"9":{"loc":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"type":"binary-expr","locations":[{"start":{"line":52,"column":15},"end":{"line":52,"column":39}},{"start":{"line":52,"column":43},"end":{"line":52,"column":45}}],"line":52},"10":{"loc":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},{"start":{"line":55,"column":6},"end":{"line":57,"column":7}}],"line":55},"11":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},{"start":{"line":91,"column":2},"end":{"line":91,"column":57}}],"line":91},"12":{"loc":{"start":{"line":91,"column":6},"end":{"line":91,"column":29}},"type":"binary-expr","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":16}},{"start":{"line":91,"column":20},"end":{"line":91,"column":29}}],"line":91}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1,"47":1,"48":0,"49":0,"50":0,"51":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3fb9f60facc409fe944dc36bd2e14fc6153e403d","contentHash":"3d9485ca58c6c768b022a39d276296b53647ccf39986885459406e933921c962"}} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/fdecfc06-a944-4897-9530-e08f62883fc1.json b/node_modules/tar/.nyc_output/fdecfc06-a944-4897-9530-e08f62883fc1.json
deleted file mode 100644
index 18f79cb..0000000
--- a/node_modules/tar/.nyc_output/fdecfc06-a944-4897-9530-e08f62883fc1.json
+++ /dev/null
@@ -1 +0,0 @@
-{"/Users/isaacs/dev/js/tar/lib/pack.js":{"path":"/Users/isaacs/dev/js/tar/lib/pack.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":4,"column":21}},"1":{"start":{"line":6,"column":18},"end":{"line":6,"column":46}},"2":{"start":{"line":7,"column":13},"end":{"line":7,"column":37}},"3":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"4":{"start":{"line":9,"column":15},"end":{"line":9,"column":34}},"5":{"start":{"line":10,"column":25},"end":{"line":10,"column":61}},"6":{"start":{"line":11,"column":14},"end":{"line":11,"column":40}},"7":{"start":{"line":12,"column":10},"end":{"line":12,"column":25}},"8":{"start":{"line":14,"column":0},"end":{"line":14,"column":41}},"9":{"start":{"line":14,"column":13},"end":{"line":14,"column":14}},"10":{"start":{"line":14,"column":31},"end":{"line":14,"column":41}},"11":{"start":{"line":16,"column":0},"end":{"line":16,"column":22}},"12":{"start":{"line":20,"column":11},"end":{"line":20,"column":15}},"13":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"14":{"start":{"line":21,"column":29},"end":{"line":21,"column":51}},"15":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"16":{"start":{"line":23,"column":13},"end":{"line":23,"column":52}},"17":{"start":{"line":24,"column":7},"end":{"line":24,"column":32}},"18":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"19":{"start":{"line":28,"column":2},"end":{"line":28,"column":20}},"20":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"21":{"start":{"line":30,"column":2},"end":{"line":30,"column":17}},"22":{"start":{"line":32,"column":2},"end":{"line":32,"column":25}},"23":{"start":{"line":33,"column":2},"end":{"line":33,"column":24}},"24":{"start":{"line":35,"column":2},"end":{"line":35,"column":21}},"25":{"start":{"line":36,"column":2},"end":{"line":43,"column":4}},"26":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"27":{"start":{"line":37,"column":35},"end":{"line":37,"column":41}},"28":{"start":{"line":38,"column":4},"end":{"line":38,"column":22}},"29":{"start":{"line":39,"column":4},"end":{"line":41,"column":6}},"30":{"start":{"line":40,"column":6},"end":{"line":40,"column":25}},"31":{"start":{"line":42,"column":4},"end":{"line":42,"column":15}},"32":{"start":{"line":46,"column":0},"end":{"line":57,"column":1}},"33":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"34":{"start":{"line":48,"column":23},"end":{"line":48,"column":29}},"35":{"start":{"line":49,"column":2},"end":{"line":49,"column":24}},"36":{"start":{"line":51,"column":11},"end":{"line":51,"column":15}},"37":{"start":{"line":52,"column":2},"end":{"line":56,"column":10}},"38":{"start":{"line":54,"column":6},"end":{"line":54,"column":24}},"39":{"start":{"line":59,"column":0},"end":{"line":69,"column":1}},"40":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"41":{"start":{"line":60,"column":40},"end":{"line":60,"column":68}},"42":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"43":{"start":{"line":62,"column":19},"end":{"line":62,"column":72}},"44":{"start":{"line":64,"column":2},"end":{"line":64,"column":17}},"45":{"start":{"line":65,"column":2},"end":{"line":65,"column":27}},"46":{"start":{"line":66,"column":2},"end":{"line":66,"column":17}},"47":{"start":{"line":67,"column":2},"end":{"line":67,"column":43}},"48":{"start":{"line":68,"column":2},"end":{"line":68,"column":25}},"49":{"start":{"line":71,"column":0},"end":{"line":75,"column":1}},"50":{"start":{"line":72,"column":2},"end":{"line":72,"column":21}},"51":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"52":{"start":{"line":73,"column":26},"end":{"line":73,"column":52}},"53":{"start":{"line":74,"column":2},"end":{"line":74,"column":20}},"54":{"start":{"line":77,"column":0},"end":{"line":82,"column":1}},"55":{"start":{"line":78,"column":2},"end":{"line":78,"column":22}},"56":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"57":{"start":{"line":79,"column":26},"end":{"line":79,"column":53}},"58":{"start":{"line":80,"column":2},"end":{"line":80,"column":21}},"59":{"start":{"line":81,"column":2},"end":{"line":81,"column":17}},"60":{"start":{"line":84,"column":0},"end":{"line":88,"column":1}},"61":{"start":{"line":85,"column":2},"end":{"line":85,"column":20}},"62":{"start":{"line":86,"column":2},"end":{"line":86,"column":24}},"63":{"start":{"line":87,"column":2},"end":{"line":87,"column":17}},"64":{"start":{"line":90,"column":0},"end":{"line":233,"column":1}},"65":{"start":{"line":91,"column":11},"end":{"line":91,"column":15}},"66":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"67":{"start":{"line":93,"column":4},"end":{"line":93,"column":10}},"68":{"start":{"line":96,"column":14},"end":{"line":96,"column":32}},"69":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"70":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"71":{"start":{"line":100,"column":6},"end":{"line":100,"column":22}},"72":{"start":{"line":102,"column":4},"end":{"line":102,"column":10}},"73":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"74":{"start":{"line":107,"column":4},"end":{"line":107,"column":29}},"75":{"start":{"line":108,"column":4},"end":{"line":111,"column":6}},"76":{"start":{"line":110,"column":6},"end":{"line":110,"column":19}},"77":{"start":{"line":112,"column":4},"end":{"line":112,"column":10}},"78":{"start":{"line":115,"column":2},"end":{"line":115,"column":23}},"79":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"80":{"start":{"line":119,"column":4},"end":{"line":119,"column":24}},"81":{"start":{"line":120,"column":4},"end":{"line":120,"column":24}},"82":{"start":{"line":121,"column":4},"end":{"line":121,"column":18}},"83":{"start":{"line":122,"column":4},"end":{"line":122,"column":20}},"84":{"start":{"line":123,"column":4},"end":{"line":123,"column":10}},"85":{"start":{"line":134,"column":13},"end":{"line":134,"column":53}},"86":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"87":{"start":{"line":137,"column":4},"end":{"line":137,"column":27}},"88":{"start":{"line":140,"column":15},"end":{"line":140,"column":17}},"89":{"start":{"line":142,"column":2},"end":{"line":144,"column":4}},"90":{"start":{"line":143,"column":4},"end":{"line":143,"column":30}},"91":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"92":{"start":{"line":146,"column":25},"end":{"line":146,"column":52}},"93":{"start":{"line":148,"column":2},"end":{"line":148,"column":53}},"94":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"95":{"start":{"line":152,"column":4},"end":{"line":152,"column":49}},"96":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"97":{"start":{"line":156,"column":4},"end":{"line":156,"column":29}},"98":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"99":{"start":{"line":161,"column":6},"end":{"line":161,"column":12}},"100":{"start":{"line":164,"column":6},"end":{"line":164,"column":24}},"101":{"start":{"line":165,"column":6},"end":{"line":165,"column":21}},"102":{"start":{"line":166,"column":6},"end":{"line":166,"column":11}},"103":{"start":{"line":169,"column":15},"end":{"line":169,"column":69}},"104":{"start":{"line":170,"column":6},"end":{"line":170,"column":54}},"105":{"start":{"line":171,"column":6},"end":{"line":171,"column":21}},"106":{"start":{"line":172,"column":6},"end":{"line":172,"column":11}},"107":{"start":{"line":175,"column":15},"end":{"line":175,"column":69}},"108":{"start":{"line":176,"column":6},"end":{"line":176,"column":74}},"109":{"start":{"line":177,"column":6},"end":{"line":177,"column":21}},"110":{"start":{"line":178,"column":6},"end":{"line":178,"column":11}},"111":{"start":{"line":187,"column":15},"end":{"line":187,"column":53}},"112":{"start":{"line":189,"column":2},"end":{"line":189,"column":20}},"113":{"start":{"line":195,"column":2},"end":{"line":197,"column":4}},"114":{"start":{"line":196,"column":4},"end":{"line":196,"column":22}},"115":{"start":{"line":199,"column":2},"end":{"line":205,"column":4}},"116":{"start":{"line":200,"column":4},"end":{"line":202,"column":5}},"117":{"start":{"line":201,"column":6},"end":{"line":201,"column":50}},"118":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"119":{"start":{"line":204,"column":33},"end":{"line":204,"column":44}},"120":{"start":{"line":206,"column":2},"end":{"line":206,"column":31}},"121":{"start":{"line":208,"column":14},"end":{"line":208,"column":19}},"122":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"123":{"start":{"line":210,"column":15},"end":{"line":210,"column":21}},"124":{"start":{"line":211,"column":4},"end":{"line":211,"column":16}},"125":{"start":{"line":215,"column":4},"end":{"line":215,"column":27}},"126":{"start":{"line":216,"column":4},"end":{"line":216,"column":26}},"127":{"start":{"line":217,"column":4},"end":{"line":217,"column":17}},"128":{"start":{"line":220,"column":2},"end":{"line":223,"column":4}},"129":{"start":{"line":222,"column":4},"end":{"line":222,"column":24}},"130":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"131":{"start":{"line":229,"column":4},"end":{"line":229,"column":21}},"132":{"start":{"line":232,"column":2},"end":{"line":232,"column":20}},"133":{"start":{"line":235,"column":0},"end":{"line":235,"column":39}},"134":{"start":{"line":236,"column":0},"end":{"line":236,"column":37}}},"fnMap":{"0":{"name":"Pack","decl":{"start":{"line":18,"column":9},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":22},"end":{"line":44,"column":1}},"line":18},"1":{"name":"(anonymous_1)","decl":{"start":{"line":36,"column":16},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":31},"end":{"line":43,"column":3}},"line":36},"2":{"name":"(anonymous_2)","decl":{"start":{"line":39,"column":18},"end":{"line":39,"column":19}},"loc":{"start":{"line":39,"column":30},"end":{"line":41,"column":5}},"line":39},"3":{"name":"(anonymous_3)","decl":{"start":{"line":46,"column":27},"end":{"line":46,"column":28}},"loc":{"start":{"line":46,"column":44},"end":{"line":57,"column":1}},"line":46},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":29},"end":{"line":55,"column":5}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":21},"end":{"line":59,"column":22}},"loc":{"start":{"line":59,"column":39},"end":{"line":69,"column":1}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":71,"column":23},"end":{"line":71,"column":24}},"loc":{"start":{"line":71,"column":35},"end":{"line":75,"column":1}},"line":71},"7":{"name":"(anonymous_7)","decl":{"start":{"line":77,"column":24},"end":{"line":77,"column":25}},"loc":{"start":{"line":77,"column":36},"end":{"line":82,"column":1}},"line":77},"8":{"name":"(anonymous_8)","decl":{"start":{"line":84,"column":21},"end":{"line":84,"column":22}},"loc":{"start":{"line":84,"column":33},"end":{"line":88,"column":1}},"line":84},"9":{"name":"(anonymous_9)","decl":{"start":{"line":90,"column":26},"end":{"line":90,"column":27}},"loc":{"start":{"line":90,"column":38},"end":{"line":233,"column":1}},"line":90},"10":{"name":"(anonymous_10)","decl":{"start":{"line":108,"column":22},"end":{"line":108,"column":23}},"loc":{"start":{"line":108,"column":34},"end":{"line":111,"column":5}},"line":108},"11":{"name":"(anonymous_11)","decl":{"start":{"line":142,"column":41},"end":{"line":142,"column":42}},"loc":{"start":{"line":142,"column":54},"end":{"line":144,"column":3}},"line":142},"12":{"name":"(anonymous_12)","decl":{"start":{"line":195,"column":20},"end":{"line":195,"column":21}},"loc":{"start":{"line":195,"column":33},"end":{"line":197,"column":3}},"line":195},"13":{"name":"(anonymous_13)","decl":{"start":{"line":199,"column":22},"end":{"line":199,"column":23}},"loc":{"start":{"line":199,"column":34},"end":{"line":205,"column":3}},"line":199},"14":{"name":"(anonymous_14)","decl":{"start":{"line":200,"column":30},"end":{"line":200,"column":31}},"loc":{"start":{"line":200,"column":42},"end":{"line":202,"column":5}},"line":200},"15":{"name":"nextEntry","decl":{"start":{"line":209,"column":11},"end":{"line":209,"column":20}},"loc":{"start":{"line":209,"column":24},"end":{"line":218,"column":3}},"line":209},"16":{"name":"(anonymous_16)","decl":{"start":{"line":220,"column":21},"end":{"line":220,"column":22}},"loc":{"start":{"line":220,"column":35},"end":{"line":223,"column":3}},"line":220},"17":{"name":"(anonymous_17)","decl":{"start":{"line":235,"column":25},"end":{"line":235,"column":26}},"loc":{"start":{"line":235,"column":37},"end":{"line":235,"column":39}},"line":235},"18":{"name":"(anonymous_18)","decl":{"start":{"line":236,"column":23},"end":{"line":236,"column":24}},"loc":{"start":{"line":236,"column":35},"end":{"line":236,"column":37}},"line":236}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},"type":"if","locations":[{"start":{"line":21,"column":2},"end":{"line":21,"column":51}},{"start":{"line":21,"column":2},"end":{"line":21,"column":51}}],"line":21},"1":{"loc":{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":24,"column":32}},{"start":{"line":23,"column":2},"end":{"line":24,"column":32}}],"line":23},"2":{"loc":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},{"start":{"line":37,"column":4},"end":{"line":37,"column":41}}],"line":37},"3":{"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":48,"column":29}},{"start":{"line":48,"column":2},"end":{"line":48,"column":29}}],"line":48},"4":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":68}},{"start":{"line":60,"column":2},"end":{"line":60,"column":68}}],"line":60},"5":{"loc":{"start":{"line":60,"column":6},"end":{"line":60,"column":38}},"type":"binary-expr","locations":[{"start":{"line":60,"column":6},"end":{"line":60,"column":18}},{"start":{"line":60,"column":22},"end":{"line":60,"column":38}}],"line":60},"6":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":72}},{"start":{"line":62,"column":2},"end":{"line":62,"column":72}}],"line":62},"7":{"loc":{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":73,"column":52}},{"start":{"line":73,"column":2},"end":{"line":73,"column":52}}],"line":73},"8":{"loc":{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":79,"column":53}},{"start":{"line":79,"column":2},"end":{"line":79,"column":53}}],"line":79},"9":{"loc":{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":94,"column":3}},{"start":{"line":92,"column":2},"end":{"line":94,"column":3}}],"line":92},"10":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":34}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":16}},{"start":{"line":92,"column":20},"end":{"line":92,"column":34}}],"line":92},"11":{"loc":{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},"type":"if","locations":[{"start":{"line":98,"column":2},"end":{"line":103,"column":3}},{"start":{"line":98,"column":2},"end":{"line":103,"column":3}}],"line":98},"12":{"loc":{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},"type":"if","locations":[{"start":{"line":99,"column":4},"end":{"line":101,"column":5}},{"start":{"line":99,"column":4},"end":{"line":101,"column":5}}],"line":99},"13":{"loc":{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},"type":"if","locations":[{"start":{"line":105,"column":2},"end":{"line":113,"column":3}},{"start":{"line":105,"column":2},"end":{"line":113,"column":3}}],"line":105},"14":{"loc":{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},"type":"if","locations":[{"start":{"line":117,"column":2},"end":{"line":124,"column":3}},{"start":{"line":117,"column":2},"end":{"line":124,"column":3}}],"line":117},"15":{"loc":{"start":{"line":134,"column":27},"end":{"line":134,"column":46}},"type":"binary-expr","locations":[{"start":{"line":134,"column":27},"end":{"line":134,"column":37}},{"start":{"line":134,"column":41},"end":{"line":134,"column":46}}],"line":134},"16":{"loc":{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},"type":"if","locations":[{"start":{"line":135,"column":2},"end":{"line":138,"column":3}},{"start":{"line":135,"column":2},"end":{"line":138,"column":3}}],"line":135},"17":{"loc":{"start":{"line":135,"column":6},"end":{"line":135,"column":72}},"type":"binary-expr","locations":[{"start":{"line":135,"column":6},"end":{"line":135,"column":16}},{"start":{"line":135,"column":20},"end":{"line":135,"column":39}},{"start":{"line":135,"column":43},"end":{"line":135,"column":53}},{"start":{"line":135,"column":57},"end":{"line":135,"column":72}}],"line":135},"18":{"loc":{"start":{"line":142,"column":14},"end":{"line":142,"column":31}},"type":"binary-expr","locations":[{"start":{"line":142,"column":14},"end":{"line":142,"column":25}},{"start":{"line":142,"column":29},"end":{"line":142,"column":31}}],"line":142},"19":{"loc":{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},"type":"if","locations":[{"start":{"line":146,"column":2},"end":{"line":146,"column":52}},{"start":{"line":146,"column":2},"end":{"line":146,"column":52}}],"line":146},"20":{"loc":{"start":{"line":148,"column":36},"end":{"line":148,"column":52}},"type":"binary-expr","locations":[{"start":{"line":148,"column":36},"end":{"line":148,"column":46}},{"start":{"line":148,"column":50},"end":{"line":148,"column":52}}],"line":148},"21":{"loc":{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},"type":"if","locations":[{"start":{"line":151,"column":2},"end":{"line":153,"column":3}},{"start":{"line":151,"column":2},"end":{"line":153,"column":3}}],"line":151},"22":{"loc":{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},"type":"if","locations":[{"start":{"line":155,"column":2},"end":{"line":156,"column":29}},{"start":{"line":155,"column":2},"end":{"line":156,"column":29}}],"line":155},"23":{"loc":{"start":{"line":158,"column":2},"end":{"line":179,"column":3}},"type":"switch","locations":[{"start":{"line":160,"column":4},"end":{"line":161,"column":12}},{"start":{"line":163,"column":4},"end":{"line":166,"column":11}},{"start":{"line":168,"column":4},"end":{"line":172,"column":11}},{"start":{"line":174,"column":4},"end":{"line":178,"column":11}}],"line":158},"24":{"loc":{"start":{"line":170,"column":24},"end":{"line":170,"column":54}},"type":"binary-expr","locations":[{"start":{"line":170,"column":24},"end":{"line":170,"column":47}},{"start":{"line":170,"column":51},"end":{"line":170,"column":54}}],"line":170},"25":{"loc":{"start":{"line":176,"column":24},"end":{"line":176,"column":74}},"type":"binary-expr","locations":[{"start":{"line":176,"column":24},"end":{"line":176,"column":67}},{"start":{"line":176,"column":71},"end":{"line":176,"column":74}}],"line":176},"26":{"loc":{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},"type":"if","locations":[{"start":{"line":204,"column":4},"end":{"line":204,"column":44}},{"start":{"line":204,"column":4},"end":{"line":204,"column":44}}],"line":204},"27":{"loc":{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},"type":"if","locations":[{"start":{"line":210,"column":4},"end":{"line":210,"column":21}},{"start":{"line":210,"column":4},"end":{"line":210,"column":21}}],"line":210},"28":{"loc":{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},"type":"if","locations":[{"start":{"line":227,"column":2},"end":{"line":230,"column":3}},{"start":{"line":227,"column":2},"end":{"line":230,"column":3}}],"line":227}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":512,"11":1,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":1,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":1,"50":0,"51":0,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":1,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":1,"134":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0,0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"8beb16ccde52e484aa1dd87f5ece33d696c808ab","contentHash":"7bb2b7ebe1111c0deefbf9a61d17bf9d2dbe951adb585db96f9d89663ce5909d"},"/Users/isaacs/dev/js/tar/lib/entry-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":16},"end":{"line":4,"column":38}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":33}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":34}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":41}},"6":{"start":{"line":9,"column":13},"end":{"line":9,"column":37}},"7":{"start":{"line":10,"column":10},"end":{"line":10,"column":12}},"8":{"start":{"line":12,"column":0},"end":{"line":12,"column":29}},"9":{"start":{"line":15,"column":11},"end":{"line":15,"column":15}},"10":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":33}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":20}},"13":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"14":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":35}},"16":{"start":{"line":28,"column":2},"end":{"line":30,"column":4}},"17":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"18":{"start":{"line":32,"column":2},"end":{"line":34,"column":4}},"19":{"start":{"line":33,"column":4},"end":{"line":33,"column":20}},"20":{"start":{"line":36,"column":2},"end":{"line":39,"column":4}},"21":{"start":{"line":37,"column":4},"end":{"line":37,"column":18}},"22":{"start":{"line":38,"column":4},"end":{"line":38,"column":20}},"23":{"start":{"line":41,"column":2},"end":{"line":41,"column":18}},"24":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"25":{"start":{"line":43,"column":4},"end":{"line":43,"column":18}},"26":{"start":{"line":45,"column":2},"end":{"line":45,"column":25}},"27":{"start":{"line":46,"column":2},"end":{"line":46,"column":23}},"28":{"start":{"line":47,"column":2},"end":{"line":47,"column":22}},"29":{"start":{"line":49,"column":2},"end":{"line":49,"column":17}},"30":{"start":{"line":50,"column":2},"end":{"line":50,"column":23}},"31":{"start":{"line":51,"column":2},"end":{"line":51,"column":18}},"32":{"start":{"line":53,"column":2},"end":{"line":55,"column":4}},"33":{"start":{"line":54,"column":4},"end":{"line":54,"column":17}},"34":{"start":{"line":58,"column":0},"end":{"line":65,"column":1}},"35":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"36":{"start":{"line":60,"column":19},"end":{"line":60,"column":74}},"37":{"start":{"line":61,"column":2},"end":{"line":61,"column":22}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":17}},"39":{"start":{"line":63,"column":2},"end":{"line":63,"column":43}},"40":{"start":{"line":64,"column":2},"end":{"line":64,"column":25}},"41":{"start":{"line":67,"column":0},"end":{"line":74,"column":1}},"42":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"43":{"start":{"line":69,"column":9},"end":{"line":69,"column":29}},"44":{"start":{"line":70,"column":2},"end":{"line":70,"column":24}},"45":{"start":{"line":71,"column":2},"end":{"line":71,"column":20}},"46":{"start":{"line":72,"column":2},"end":{"line":72,"column":17}},"47":{"start":{"line":73,"column":2},"end":{"line":73,"column":43}},"48":{"start":{"line":76,"column":0},"end":{"line":80,"column":1}},"49":{"start":{"line":78,"column":2},"end":{"line":78,"column":21}},"50":{"start":{"line":79,"column":2},"end":{"line":79,"column":20}},"51":{"start":{"line":82,"column":0},"end":{"line":87,"column":1}},"52":{"start":{"line":84,"column":2},"end":{"line":84,"column":22}},"53":{"start":{"line":85,"column":2},"end":{"line":85,"column":21}},"54":{"start":{"line":86,"column":2},"end":{"line":86,"column":17}},"55":{"start":{"line":89,"column":0},"end":{"line":98,"column":1}},"56":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"57":{"start":{"line":91,"column":20},"end":{"line":91,"column":69}},"58":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"59":{"start":{"line":95,"column":20},"end":{"line":95,"column":30}},"60":{"start":{"line":97,"column":2},"end":{"line":97,"column":31}},"61":{"start":{"line":100,"column":0},"end":{"line":126,"column":1}},"62":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"63":{"start":{"line":102,"column":23},"end":{"line":102,"column":29}},"64":{"start":{"line":103,"column":2},"end":{"line":103,"column":24}},"65":{"start":{"line":105,"column":20},"end":{"line":105,"column":48}},"66":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"67":{"start":{"line":108,"column":13},"end":{"line":108,"column":17}},"68":{"start":{"line":110,"column":4},"end":{"line":111,"column":44}},"69":{"start":{"line":113,"column":4},"end":{"line":120,"column":12}},"70":{"start":{"line":115,"column":8},"end":{"line":115,"column":26}},"71":{"start":{"line":118,"column":8},"end":{"line":118,"column":28}},"72":{"start":{"line":124,"column":2},"end":{"line":124,"column":32}},"73":{"start":{"line":125,"column":2},"end":{"line":125,"column":21}},"74":{"start":{"line":128,"column":0},"end":{"line":167,"column":1}},"75":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"76":{"start":{"line":131,"column":4},"end":{"line":131,"column":18}},"77":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"78":{"start":{"line":136,"column":4},"end":{"line":136,"column":10}},"79":{"start":{"line":139,"column":2},"end":{"line":139,"column":25}},"80":{"start":{"line":141,"column":12},"end":{"line":141,"column":24}},"81":{"start":{"line":142,"column":2},"end":{"line":159,"column":3}},"82":{"start":{"line":142,"column":15},"end":{"line":142,"column":16}},"83":{"start":{"line":145,"column":12},"end":{"line":145,"column":18}},"84":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"85":{"start":{"line":147,"column":19},"end":{"line":147,"column":37}},"86":{"start":{"line":148,"column":9},"end":{"line":148,"column":30}},"87":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"88":{"start":{"line":152,"column":6},"end":{"line":152,"column":30}},"89":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"90":{"start":{"line":154,"column":8},"end":{"line":154,"column":30}},"91":{"start":{"line":155,"column":8},"end":{"line":155,"column":39}},"92":{"start":{"line":157,"column":6},"end":{"line":157,"column":12}},"93":{"start":{"line":162,"column":2},"end":{"line":162,"column":25}},"94":{"start":{"line":163,"column":2},"end":{"line":163,"column":26}},"95":{"start":{"line":166,"column":2},"end":{"line":166,"column":20}},"96":{"start":{"line":169,"column":0},"end":{"line":169,"column":46}}},"fnMap":{"0":{"name":"EntryWriter","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":20}},"loc":{"start":{"line":14,"column":29},"end":{"line":56,"column":1}},"line":14},"1":{"name":"(anonymous_1)","decl":{"start":{"line":28,"column":24},"end":{"line":28,"column":25}},"loc":{"start":{"line":28,"column":37},"end":{"line":30,"column":3}},"line":28},"2":{"name":"(anonymous_2)","decl":{"start":{"line":32,"column":25},"end":{"line":32,"column":26}},"loc":{"start":{"line":32,"column":37},"end":{"line":34,"column":3}},"line":32},"3":{"name":"(anonymous_3)","decl":{"start":{"line":36,"column":23},"end":{"line":36,"column":24}},"loc":{"start":{"line":36,"column":35},"end":{"line":39,"column":3}},"line":36},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":16},"end":{"line":53,"column":17}},"loc":{"start":{"line":53,"column":28},"end":{"line":55,"column":3}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":58,"column":30},"end":{"line":58,"column":31}},"loc":{"start":{"line":58,"column":43},"end":{"line":65,"column":1}},"line":58},"6":{"name":"(anonymous_6)","decl":{"start":{"line":67,"column":28},"end":{"line":67,"column":29}},"loc":{"start":{"line":67,"column":41},"end":{"line":74,"column":1}},"line":67},"7":{"name":"(anonymous_7)","decl":{"start":{"line":76,"column":30},"end":{"line":76,"column":31}},"loc":{"start":{"line":76,"column":42},"end":{"line":80,"column":1}},"line":76},"8":{"name":"(anonymous_8)","decl":{"start":{"line":82,"column":31},"end":{"line":82,"column":32}},"loc":{"start":{"line":82,"column":43},"end":{"line":87,"column":1}},"line":82},"9":{"name":"(anonymous_9)","decl":{"start":{"line":89,"column":28},"end":{"line":89,"column":29}},"loc":{"start":{"line":89,"column":45},"end":{"line":98,"column":1}},"line":89},"10":{"name":"(anonymous_10)","decl":{"start":{"line":100,"column":32},"end":{"line":100,"column":33}},"loc":{"start":{"line":100,"column":44},"end":{"line":126,"column":1}},"line":100},"11":{"name":"(anonymous_11)","decl":{"start":{"line":114,"column":18},"end":{"line":114,"column":19}},"loc":{"start":{"line":114,"column":31},"end":{"line":116,"column":7}},"line":114},"12":{"name":"(anonymous_12)","decl":{"start":{"line":117,"column":19},"end":{"line":117,"column":20}},"loc":{"start":{"line":117,"column":33},"end":{"line":119,"column":7}},"line":117},"13":{"name":"(anonymous_13)","decl":{"start":{"line":128,"column":33},"end":{"line":128,"column":34}},"loc":{"start":{"line":128,"column":45},"end":{"line":167,"column":1}},"line":128},"14":{"name":"(anonymous_14)","decl":{"start":{"line":169,"column":32},"end":{"line":169,"column":33}},"loc":{"start":{"line":169,"column":44},"end":{"line":169,"column":46}},"line":169}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":17,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":2},"end":{"line":19,"column":3}}],"line":17},"1":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"2":{"loc":{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},"type":"if","locations":[{"start":{"line":60,"column":2},"end":{"line":60,"column":74}},{"start":{"line":60,"column":2},"end":{"line":60,"column":74}}],"line":60},"3":{"loc":{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},"type":"if","locations":[{"start":{"line":69,"column":2},"end":{"line":69,"column":29}},{"start":{"line":69,"column":2},"end":{"line":69,"column":29}}],"line":69},"4":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":69}},{"start":{"line":91,"column":2},"end":{"line":91,"column":69}}],"line":91},"5":{"loc":{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},"type":"if","locations":[{"start":{"line":95,"column":2},"end":{"line":95,"column":30}},{"start":{"line":95,"column":2},"end":{"line":95,"column":30}}],"line":95},"6":{"loc":{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},"type":"if","locations":[{"start":{"line":102,"column":2},"end":{"line":102,"column":29}},{"start":{"line":102,"column":2},"end":{"line":102,"column":29}}],"line":102},"7":{"loc":{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},"type":"if","locations":[{"start":{"line":107,"column":2},"end":{"line":121,"column":3}},{"start":{"line":107,"column":2},"end":{"line":121,"column":3}}],"line":107},"8":{"loc":{"start":{"line":107,"column":6},"end":{"line":107,"column":44}},"type":"binary-expr","locations":[{"start":{"line":107,"column":6},"end":{"line":107,"column":29}},{"start":{"line":107,"column":33},"end":{"line":107,"column":44}}],"line":107},"9":{"loc":{"start":{"line":110,"column":27},"end":{"line":111,"column":44}},"type":"binary-expr","locations":[{"start":{"line":110,"column":27},"end":{"line":110,"column":47}},{"start":{"line":111,"column":6},"end":{"line":111,"column":44}}],"line":110},"10":{"loc":{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},"type":"if","locations":[{"start":{"line":130,"column":2},"end":{"line":132,"column":3}},{"start":{"line":130,"column":2},"end":{"line":132,"column":3}}],"line":130},"11":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":37}},"type":"binary-expr","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":22}},{"start":{"line":130,"column":26},"end":{"line":130,"column":37}}],"line":130},"12":{"loc":{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},"type":"if","locations":[{"start":{"line":134,"column":2},"end":{"line":137,"column":3}},{"start":{"line":134,"column":2},"end":{"line":137,"column":3}}],"line":134},"13":{"loc":{"start":{"line":134,"column":6},"end":{"line":134,"column":38}},"type":"binary-expr","locations":[{"start":{"line":134,"column":6},"end":{"line":134,"column":18}},{"start":{"line":134,"column":22},"end":{"line":134,"column":38}}],"line":134},"14":{"loc":{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},"type":"if","locations":[{"start":{"line":147,"column":4},"end":{"line":148,"column":30}},{"start":{"line":147,"column":4},"end":{"line":148,"column":30}}],"line":147},"15":{"loc":{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":158,"column":5}},{"start":{"line":150,"column":4},"end":{"line":158,"column":5}}],"line":150},"16":{"loc":{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},"type":"if","locations":[{"start":{"line":153,"column":6},"end":{"line":156,"column":7}},{"start":{"line":153,"column":6},"end":{"line":156,"column":7}}],"line":153}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":1,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":1,"49":0,"50":0,"51":1,"52":0,"53":0,"54":0,"55":1,"56":0,"57":0,"58":0,"59":0,"60":0,"61":1,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":1},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3e169418508e031df78186ff63b5fa5aa2484ab8","contentHash":"84191ed4732b6763ae8701256051735aebbe5e95c932c15bef34da01b33ba1a0"},"/Users/isaacs/dev/js/tar/lib/entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/entry.js","statementMap":{"0":{"start":{"line":7,"column":0},"end":{"line":7,"column":22}},"1":{"start":{"line":9,"column":16},"end":{"line":9,"column":38}},"2":{"start":{"line":10,"column":10},"end":{"line":10,"column":27}},"3":{"start":{"line":11,"column":13},"end":{"line":11,"column":33}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":37}},"5":{"start":{"line":13,"column":15},"end":{"line":13,"column":34}},"6":{"start":{"line":14,"column":14},"end":{"line":14,"column":41}},"7":{"start":{"line":17,"column":2},"end":{"line":17,"column":19}},"8":{"start":{"line":18,"column":2},"end":{"line":18,"column":22}},"9":{"start":{"line":19,"column":2},"end":{"line":19,"column":22}},"10":{"start":{"line":21,"column":2},"end":{"line":21,"column":25}},"11":{"start":{"line":22,"column":2},"end":{"line":22,"column":22}},"12":{"start":{"line":23,"column":2},"end":{"line":23,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":22}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":21}},"15":{"start":{"line":26,"column":2},"end":{"line":26,"column":21}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":21}},"17":{"start":{"line":28,"column":2},"end":{"line":28,"column":18}},"18":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"19":{"start":{"line":30,"column":2},"end":{"line":30,"column":20}},"20":{"start":{"line":32,"column":2},"end":{"line":32,"column":36}},"21":{"start":{"line":34,"column":2},"end":{"line":34,"column":17}},"22":{"start":{"line":35,"column":2},"end":{"line":35,"column":23}},"23":{"start":{"line":36,"column":2},"end":{"line":36,"column":33}},"24":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"25":{"start":{"line":41,"column":11},"end":{"line":41,"column":15}},"26":{"start":{"line":42,"column":2},"end":{"line":44,"column":4}},"27":{"start":{"line":43,"column":4},"end":{"line":43,"column":29}},"28":{"start":{"line":46,"column":2},"end":{"line":46,"column":18}},"29":{"start":{"line":49,"column":0},"end":{"line":49,"column":23}},"30":{"start":{"line":51,"column":0},"end":{"line":78,"column":1}},"31":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"32":{"start":{"line":52,"column":20},"end":{"line":52,"column":65}},"33":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"34":{"start":{"line":54,"column":4},"end":{"line":54,"column":40}},"35":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"36":{"start":{"line":60,"column":4},"end":{"line":60,"column":35}},"37":{"start":{"line":62,"column":2},"end":{"line":62,"column":29}},"38":{"start":{"line":65,"column":11},"end":{"line":65,"column":25}},"39":{"start":{"line":66,"column":2},"end":{"line":66,"column":21}},"40":{"start":{"line":67,"column":2},"end":{"line":67,"column":19}},"41":{"start":{"line":69,"column":2},"end":{"line":69,"column":14}},"42":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"43":{"start":{"line":73,"column":4},"end":{"line":73,"column":26}},"44":{"start":{"line":74,"column":4},"end":{"line":74,"column":16}},"45":{"start":{"line":77,"column":2},"end":{"line":77,"column":13}},"46":{"start":{"line":80,"column":0},"end":{"line":84,"column":1}},"47":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"48":{"start":{"line":81,"column":9},"end":{"line":81,"column":22}},"49":{"start":{"line":82,"column":2},"end":{"line":82,"column":21}},"50":{"start":{"line":83,"column":2},"end":{"line":83,"column":14}},"51":{"start":{"line":86,"column":0},"end":{"line":89,"column":1}},"52":{"start":{"line":87,"column":2},"end":{"line":87,"column":21}},"53":{"start":{"line":88,"column":2},"end":{"line":88,"column":20}},"54":{"start":{"line":91,"column":0},"end":{"line":97,"column":1}},"55":{"start":{"line":93,"column":2},"end":{"line":93,"column":21}},"56":{"start":{"line":94,"column":2},"end":{"line":94,"column":22}},"57":{"start":{"line":95,"column":2},"end":{"line":95,"column":14}},"58":{"start":{"line":96,"column":2},"end":{"line":96,"column":41}},"59":{"start":{"line":100,"column":0},"end":{"line":139,"column":1}},"60":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"61":{"start":{"line":103,"column":52},"end":{"line":103,"column":58}},"62":{"start":{"line":107,"column":2},"end":{"line":107,"column":22}},"63":{"start":{"line":110,"column":2},"end":{"line":113,"column":3}},"64":{"start":{"line":111,"column":16},"end":{"line":111,"column":43}},"65":{"start":{"line":112,"column":4},"end":{"line":112,"column":28}},"66":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"67":{"start":{"line":117,"column":4},"end":{"line":117,"column":57}},"68":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"69":{"start":{"line":119,"column":6},"end":{"line":119,"column":29}},"70":{"start":{"line":120,"column":6},"end":{"line":120,"column":24}},"71":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"72":{"start":{"line":123,"column":6},"end":{"line":123,"column":24}},"73":{"start":{"line":124,"column":6},"end":{"line":124,"column":22}},"74":{"start":{"line":130,"column":12},"end":{"line":130,"column":29}},"75":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"76":{"start":{"line":132,"column":4},"end":{"line":132,"column":36}},"77":{"start":{"line":133,"column":4},"end":{"line":133,"column":22}},"78":{"start":{"line":134,"column":4},"end":{"line":134,"column":25}},"79":{"start":{"line":135,"column":4},"end":{"line":135,"column":40}},"80":{"start":{"line":138,"column":2},"end":{"line":138,"column":23}},"81":{"start":{"line":141,"column":0},"end":{"line":211,"column":1}},"82":{"start":{"line":143,"column":15},"end":{"line":143,"column":27}},"83":{"start":{"line":144,"column":17},"end":{"line":144,"column":31}},"84":{"start":{"line":145,"column":15},"end":{"line":145,"column":27}},"85":{"start":{"line":146,"column":14},"end":{"line":146,"column":24}},"86":{"start":{"line":149,"column":15},"end":{"line":149,"column":25}},"87":{"start":{"line":150,"column":2},"end":{"line":154,"column":3}},"88":{"start":{"line":150,"column":15},"end":{"line":150,"column":16}},"89":{"start":{"line":151,"column":16},"end":{"line":151,"column":25}},"90":{"start":{"line":152,"column":14},"end":{"line":152,"column":27}},"91":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"92":{"start":{"line":153,"column":36},"end":{"line":153,"column":54}},"93":{"start":{"line":158,"column":3},"end":{"line":165,"column":3}},"94":{"start":{"line":159,"column":4},"end":{"line":161,"column":6}},"95":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"96":{"start":{"line":160,"column":39},"end":{"line":160,"column":54}},"97":{"start":{"line":165,"column":3},"end":{"line":173,"column":3}},"98":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"99":{"start":{"line":167,"column":6},"end":{"line":167,"column":40}},"100":{"start":{"line":173,"column":3},"end":{"line":177,"column":4}},"101":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"102":{"start":{"line":175,"column":6},"end":{"line":175,"column":42}},"103":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"104":{"start":{"line":184,"column":6},"end":{"line":184,"column":19}},"105":{"start":{"line":185,"column":6},"end":{"line":185,"column":11}},"106":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"107":{"start":{"line":189,"column":6},"end":{"line":189,"column":11}},"108":{"start":{"line":192,"column":6},"end":{"line":192,"column":22}},"109":{"start":{"line":193,"column":6},"end":{"line":193,"column":11}},"110":{"start":{"line":202,"column":6},"end":{"line":202,"column":34}},"111":{"start":{"line":205,"column":2},"end":{"line":205,"column":18}},"112":{"start":{"line":206,"column":2},"end":{"line":206,"column":24}},"113":{"start":{"line":207,"column":2},"end":{"line":207,"column":24}},"114":{"start":{"line":210,"column":2},"end":{"line":210,"column":30}},"115":{"start":{"line":215,"column":0},"end":{"line":217,"column":1}},"116":{"start":{"line":216,"column":2},"end":{"line":216,"column":20}},"117":{"start":{"line":219,"column":0},"end":{"line":219,"column":35}},"118":{"start":{"line":220,"column":0},"end":{"line":220,"column":37}}},"fnMap":{"0":{"name":"Entry","decl":{"start":{"line":16,"column":9},"end":{"line":16,"column":14}},"loc":{"start":{"line":16,"column":42},"end":{"line":47,"column":1}},"line":16},"1":{"name":"(anonymous_1)","decl":{"start":{"line":42,"column":36},"end":{"line":42,"column":37}},"loc":{"start":{"line":42,"column":49},"end":{"line":44,"column":3}},"line":42},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":24},"end":{"line":51,"column":25}},"loc":{"start":{"line":51,"column":37},"end":{"line":78,"column":1}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":80,"column":22},"end":{"line":80,"column":23}},"loc":{"start":{"line":80,"column":35},"end":{"line":84,"column":1}},"line":80},"4":{"name":"(anonymous_4)","decl":{"start":{"line":86,"column":24},"end":{"line":86,"column":25}},"loc":{"start":{"line":86,"column":36},"end":{"line":89,"column":1}},"line":86},"5":{"name":"(anonymous_5)","decl":{"start":{"line":91,"column":25},"end":{"line":91,"column":26}},"loc":{"start":{"line":91,"column":37},"end":{"line":97,"column":1}},"line":91},"6":{"name":"(anonymous_6)","decl":{"start":{"line":100,"column":24},"end":{"line":100,"column":25}},"loc":{"start":{"line":100,"column":36},"end":{"line":139,"column":1}},"line":100},"7":{"name":"(anonymous_7)","decl":{"start":{"line":141,"column":28},"end":{"line":141,"column":29}},"loc":{"start":{"line":141,"column":40},"end":{"line":211,"column":1}},"line":141},"8":{"name":"(anonymous_8)","decl":{"start":{"line":158,"column":30},"end":{"line":158,"column":31}},"loc":{"start":{"line":158,"column":43},"end":{"line":162,"column":3}},"line":158},"9":{"name":"(anonymous_9)","decl":{"start":{"line":159,"column":27},"end":{"line":159,"column":28}},"loc":{"start":{"line":159,"column":40},"end":{"line":161,"column":5}},"line":159},"10":{"name":"(anonymous_10)","decl":{"start":{"line":165,"column":32},"end":{"line":165,"column":33}},"loc":{"start":{"line":165,"column":45},"end":{"line":169,"column":3}},"line":165},"11":{"name":"(anonymous_11)","decl":{"start":{"line":173,"column":39},"end":{"line":173,"column":40}},"loc":{"start":{"line":173,"column":52},"end":{"line":177,"column":3}},"line":173},"12":{"name":"(anonymous_12)","decl":{"start":{"line":215,"column":24},"end":{"line":215,"column":25}},"loc":{"start":{"line":215,"column":34},"end":{"line":217,"column":1}},"line":215}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":19},"end":{"line":36,"column":33}},"type":"binary-expr","locations":[{"start":{"line":36,"column":19},"end":{"line":36,"column":27}},{"start":{"line":36,"column":31},"end":{"line":36,"column":33}}],"line":36},"1":{"loc":{"start":{"line":42,"column":14},"end":{"line":42,"column":26}},"type":"binary-expr","locations":[{"start":{"line":42,"column":14},"end":{"line":42,"column":20}},{"start":{"line":42,"column":24},"end":{"line":42,"column":26}}],"line":42},"2":{"loc":{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},"type":"if","locations":[{"start":{"line":52,"column":2},"end":{"line":52,"column":65}},{"start":{"line":52,"column":2},"end":{"line":52,"column":65}}],"line":52},"3":{"loc":{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},"type":"if","locations":[{"start":{"line":53,"column":2},"end":{"line":55,"column":3}},{"start":{"line":53,"column":2},"end":{"line":55,"column":3}}],"line":53},"4":{"loc":{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},"type":"if","locations":[{"start":{"line":59,"column":2},"end":{"line":61,"column":3}},{"start":{"line":59,"column":2},"end":{"line":61,"column":3}}],"line":59},"5":{"loc":{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},"type":"if","locations":[{"start":{"line":72,"column":2},"end":{"line":75,"column":3}},{"start":{"line":72,"column":2},"end":{"line":75,"column":3}}],"line":72},"6":{"loc":{"start":{"line":72,"column":6},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":6},"end":{"line":72,"column":18}},{"start":{"line":72,"column":22},"end":{"line":72,"column":28}}],"line":72},"7":{"loc":{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":81,"column":22}},{"start":{"line":81,"column":2},"end":{"line":81,"column":22}}],"line":81},"8":{"loc":{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":58}},{"start":{"line":103,"column":2},"end":{"line":103,"column":58}}],"line":103},"9":{"loc":{"start":{"line":103,"column":6},"end":{"line":103,"column":50}},"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":18}},{"start":{"line":103,"column":22},"end":{"line":103,"column":35}},{"start":{"line":103,"column":39},"end":{"line":103,"column":50}}],"line":103},"10":{"loc":{"start":{"line":110,"column":9},"end":{"line":110,"column":54}},"type":"binary-expr","locations":[{"start":{"line":110,"column":9},"end":{"line":110,"column":37}},{"start":{"line":110,"column":41},"end":{"line":110,"column":54}}],"line":110},"11":{"loc":{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},"type":"if","locations":[{"start":{"line":116,"column":2},"end":{"line":126,"column":3}},{"start":{"line":116,"column":2},"end":{"line":126,"column":3}}],"line":116},"12":{"loc":{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},"type":"if","locations":[{"start":{"line":118,"column":4},"end":{"line":121,"column":5}},{"start":{"line":118,"column":4},"end":{"line":121,"column":5}}],"line":118},"13":{"loc":{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":125,"column":5}},{"start":{"line":122,"column":4},"end":{"line":125,"column":5}}],"line":122},"14":{"loc":{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},"type":"if","locations":[{"start":{"line":131,"column":2},"end":{"line":136,"column":3}},{"start":{"line":131,"column":2},"end":{"line":136,"column":3}}],"line":131},"15":{"loc":{"start":{"line":131,"column":6},"end":{"line":131,"column":45}},"type":"binary-expr","locations":[{"start":{"line":131,"column":6},"end":{"line":131,"column":26}},{"start":{"line":131,"column":30},"end":{"line":131,"column":45}}],"line":131},"16":{"loc":{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},"type":"if","locations":[{"start":{"line":153,"column":4},"end":{"line":153,"column":54}},{"start":{"line":153,"column":4},"end":{"line":153,"column":54}}],"line":153},"17":{"loc":{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},"type":"if","locations":[{"start":{"line":160,"column":6},"end":{"line":160,"column":54}},{"start":{"line":160,"column":6},"end":{"line":160,"column":54}}],"line":160},"18":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}],"line":166},"19":{"loc":{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},"type":"if","locations":[{"start":{"line":174,"column":4},"end":{"line":176,"column":5}},{"start":{"line":174,"column":4},"end":{"line":176,"column":5}}],"line":174},"20":{"loc":{"start":{"line":181,"column":2},"end":{"line":203,"column":3}},"type":"switch","locations":[{"start":{"line":182,"column":4},"end":{"line":182,"column":19}},{"start":{"line":183,"column":4},"end":{"line":185,"column":11}},{"start":{"line":187,"column":4},"end":{"line":189,"column":11}},{"start":{"line":191,"column":4},"end":{"line":193,"column":11}},{"start":{"line":195,"column":4},"end":{"line":195,"column":16}},{"start":{"line":196,"column":4},"end":{"line":196,"column":24}},{"start":{"line":197,"column":4},"end":{"line":197,"column":27}},{"start":{"line":198,"column":4},"end":{"line":198,"column":23}},{"start":{"line":199,"column":4},"end":{"line":199,"column":21}},{"start":{"line":200,"column":4},"end":{"line":200,"column":16}},{"start":{"line":201,"column":4},"end":{"line":202,"column":34}}],"line":181}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":17,"8":17,"9":17,"10":17,"11":17,"12":17,"13":17,"14":17,"15":17,"16":17,"17":17,"18":17,"19":17,"20":17,"21":17,"22":17,"23":17,"24":17,"25":17,"26":17,"27":0,"28":17,"29":1,"30":1,"31":17,"32":0,"33":17,"34":0,"35":17,"36":15,"37":17,"38":17,"39":17,"40":17,"41":17,"42":17,"43":0,"44":0,"45":17,"46":1,"47":17,"48":0,"49":17,"50":17,"51":1,"52":0,"53":0,"54":1,"55":0,"56":0,"57":0,"58":0,"59":1,"60":34,"61":0,"62":34,"63":34,"64":17,"65":17,"66":34,"67":34,"68":34,"69":0,"70":0,"71":34,"72":17,"73":17,"74":34,"75":34,"76":0,"77":0,"78":0,"79":0,"80":34,"81":1,"82":17,"83":17,"84":17,"85":17,"86":17,"87":17,"88":17,"89":289,"90":289,"91":289,"92":242,"93":17,"94":34,"95":29,"96":29,"97":17,"98":34,"99":34,"100":17,"101":51,"102":25,"103":17,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":17,"111":17,"112":17,"113":17,"114":17,"115":1,"116":0,"117":1,"118":1},"f":{"0":17,"1":0,"2":17,"3":17,"4":0,"5":0,"6":34,"7":17,"8":34,"9":29,"10":34,"11":51,"12":0},"b":{"0":[17,11],"1":[17,17],"2":[0,17],"3":[0,17],"4":[15,2],"5":[0,17],"6":[17,17],"7":[0,17],"8":[0,34],"9":[34,34,34],"10":[51,17],"11":[34,0],"12":[0,34],"13":[17,17],"14":[0,34],"15":[34,0],"16":[242,47],"17":[29,0],"18":[34,0],"19":[25,26],"20":[0,0,0,0,1,2,2,2,2,2,17]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"2cc4f925db2a60e89bf0743124faec4e8996dfdb","contentHash":"245d5cb2b23d975dc5b9a0ed2553c93c587727d50a7961242f50cec333c04ba9"},"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":{"path":"/Users/isaacs/dev/js/tar/lib/global-header-writer.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":3,"column":27},"end":{"line":3,"column":65}},"2":{"start":{"line":4,"column":15},"end":{"line":4,"column":34}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"4":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":40}},"6":{"start":{"line":12,"column":2},"end":{"line":12,"column":40}},"7":{"start":{"line":13,"column":2},"end":{"line":13,"column":23}}},"fnMap":{"0":{"name":"GlobalHeaderWriter","decl":{"start":{"line":8,"column":9},"end":{"line":8,"column":27}},"loc":{"start":{"line":8,"column":36},"end":{"line":14,"column":1}},"line":8}},"branchMap":{"0":{"loc":{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},"type":"if","locations":[{"start":{"line":9,"column":2},"end":{"line":11,"column":3}},{"start":{"line":9,"column":2},"end":{"line":11,"column":3}}],"line":9}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0},"f":{"0":0},"b":{"0":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3d0c8589f62a5c8ccec606d52d3abd98e5627d57","contentHash":"a2570ca840cf3e44d77e15af0aee52f7c145da39b76366006f3672b9708def3e"},"/Users/isaacs/dev/js/tar/lib/parse.js":{"path":"/Users/isaacs/dev/js/tar/lib/parse.js","statementMap":{"0":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}},"1":{"start":{"line":8,"column":13},"end":{"line":8,"column":30}},"2":{"start":{"line":9,"column":13},"end":{"line":9,"column":26}},"3":{"start":{"line":10,"column":18},"end":{"line":10,"column":41}},"4":{"start":{"line":11,"column":10},"end":{"line":11,"column":30}},"5":{"start":{"line":12,"column":16},"end":{"line":12,"column":38}},"6":{"start":{"line":13,"column":12},"end":{"line":13,"column":33}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":46}},"8":{"start":{"line":15,"column":21},"end":{"line":15,"column":52}},"9":{"start":{"line":16,"column":13},"end":{"line":16,"column":33}},"10":{"start":{"line":17,"column":15},"end":{"line":17,"column":34}},"11":{"start":{"line":18,"column":14},"end":{"line":18,"column":32}},"12":{"start":{"line":25,"column":0},"end":{"line":25,"column":31}},"13":{"start":{"line":28,"column":11},"end":{"line":28,"column":15}},"14":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"15":{"start":{"line":29,"column":30},"end":{"line":29,"column":48}},"16":{"start":{"line":34,"column":2},"end":{"line":34,"column":18}},"17":{"start":{"line":36,"column":2},"end":{"line":36,"column":20}},"18":{"start":{"line":37,"column":2},"end":{"line":37,"column":20}},"19":{"start":{"line":38,"column":2},"end":{"line":38,"column":35}},"20":{"start":{"line":39,"column":2},"end":{"line":39,"column":17}},"21":{"start":{"line":40,"column":2},"end":{"line":40,"column":19}},"22":{"start":{"line":41,"column":2},"end":{"line":41,"column":20}},"23":{"start":{"line":43,"column":2},"end":{"line":45,"column":4}},"24":{"start":{"line":44,"column":4},"end":{"line":44,"column":23}},"25":{"start":{"line":47,"column":2},"end":{"line":49,"column":4}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":18}},"27":{"start":{"line":51,"column":2},"end":{"line":53,"column":4}},"28":{"start":{"line":52,"column":4},"end":{"line":52,"column":19}},"29":{"start":{"line":55,"column":2},"end":{"line":57,"column":4}},"30":{"start":{"line":56,"column":4},"end":{"line":56,"column":20}},"31":{"start":{"line":63,"column":0},"end":{"line":67,"column":1}},"32":{"start":{"line":64,"column":11},"end":{"line":64,"column":15}},"33":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"34":{"start":{"line":65,"column":31},"end":{"line":65,"column":57}},"35":{"start":{"line":66,"column":2},"end":{"line":66,"column":16}},"36":{"start":{"line":72,"column":0},"end":{"line":83,"column":1}},"37":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"38":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"39":{"start":{"line":77,"column":17},"end":{"line":77,"column":18}},"40":{"start":{"line":77,"column":24},"end":{"line":77,"column":32}},"41":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"42":{"start":{"line":78,"column":22},"end":{"line":78,"column":62}},"43":{"start":{"line":80,"column":4},"end":{"line":80,"column":10}},"44":{"start":{"line":82,"column":2},"end":{"line":82,"column":30}},"45":{"start":{"line":85,"column":0},"end":{"line":88,"column":1}},"46":{"start":{"line":86,"column":2},"end":{"line":86,"column":20}},"47":{"start":{"line":87,"column":2},"end":{"line":87,"column":28}},"48":{"start":{"line":94,"column":0},"end":{"line":94,"column":38}},"49":{"start":{"line":96,"column":0},"end":{"line":137,"column":1}},"50":{"start":{"line":97,"column":2},"end":{"line":97,"column":59}},"51":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"52":{"start":{"line":105,"column":16},"end":{"line":105,"column":27}},"53":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"54":{"start":{"line":106,"column":22},"end":{"line":106,"column":36}},"55":{"start":{"line":108,"column":6},"end":{"line":108,"column":34}},"56":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"57":{"start":{"line":109,"column":31},"end":{"line":109,"column":51}},"58":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"59":{"start":{"line":112,"column":6},"end":{"line":112,"column":17}},"60":{"start":{"line":113,"column":6},"end":{"line":113,"column":24}},"61":{"start":{"line":117,"column":15},"end":{"line":117,"column":19}},"62":{"start":{"line":118,"column":4},"end":{"line":120,"column":5}},"63":{"start":{"line":118,"column":17},"end":{"line":118,"column":18}},"64":{"start":{"line":119,"column":6},"end":{"line":119,"column":23}},"65":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"66":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"67":{"start":{"line":128,"column":8},"end":{"line":128,"column":26}},"68":{"start":{"line":129,"column":6},"end":{"line":129,"column":29}},"69":{"start":{"line":131,"column":6},"end":{"line":131,"column":30}},"70":{"start":{"line":132,"column":6},"end":{"line":132,"column":25}},"71":{"start":{"line":136,"column":2},"end":{"line":136,"column":22}},"72":{"start":{"line":140,"column":0},"end":{"line":285,"column":1}},"73":{"start":{"line":141,"column":15},"end":{"line":141,"column":31}},"74":{"start":{"line":142,"column":13},"end":{"line":142,"column":17}},"75":{"start":{"line":147,"column":13},"end":{"line":147,"column":18}},"76":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"77":{"start":{"line":150,"column":12},"end":{"line":150,"column":41}},"78":{"start":{"line":151,"column":4},"end":{"line":151,"column":21}},"79":{"start":{"line":152,"column":4},"end":{"line":152,"column":37}},"80":{"start":{"line":153,"column":4},"end":{"line":153,"column":37}},"81":{"start":{"line":154,"column":4},"end":{"line":154,"column":32}},"82":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"83":{"start":{"line":171,"column":6},"end":{"line":171,"column":23}},"84":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"85":{"start":{"line":173,"column":6},"end":{"line":173,"column":11}},"86":{"start":{"line":177,"column":6},"end":{"line":177,"column":32}},"87":{"start":{"line":178,"column":6},"end":{"line":183,"column":7}},"88":{"start":{"line":179,"column":8},"end":{"line":179,"column":41}},"89":{"start":{"line":180,"column":8},"end":{"line":182,"column":10}},"90":{"start":{"line":181,"column":10},"end":{"line":181,"column":43}},"91":{"start":{"line":184,"column":6},"end":{"line":184,"column":33}},"92":{"start":{"line":185,"column":6},"end":{"line":185,"column":17}},"93":{"start":{"line":186,"column":6},"end":{"line":186,"column":11}},"94":{"start":{"line":191,"column":6},"end":{"line":191,"column":32}},"95":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"96":{"start":{"line":193,"column":8},"end":{"line":193,"column":37}},"97":{"start":{"line":195,"column":6},"end":{"line":195,"column":27}},"98":{"start":{"line":196,"column":6},"end":{"line":196,"column":17}},"99":{"start":{"line":197,"column":6},"end":{"line":197,"column":11}},"100":{"start":{"line":201,"column":6},"end":{"line":201,"column":29}},"101":{"start":{"line":202,"column":6},"end":{"line":205,"column":7}},"102":{"start":{"line":203,"column":8},"end":{"line":203,"column":45}},"103":{"start":{"line":204,"column":8},"end":{"line":204,"column":44}},"104":{"start":{"line":206,"column":6},"end":{"line":206,"column":25}},"105":{"start":{"line":207,"column":6},"end":{"line":207,"column":17}},"106":{"start":{"line":208,"column":6},"end":{"line":208,"column":11}},"107":{"start":{"line":213,"column":6},"end":{"line":213,"column":29}},"108":{"start":{"line":214,"column":6},"end":{"line":217,"column":7}},"109":{"start":{"line":215,"column":8},"end":{"line":215,"column":45}},"110":{"start":{"line":216,"column":8},"end":{"line":216,"column":40}},"111":{"start":{"line":218,"column":6},"end":{"line":218,"column":21}},"112":{"start":{"line":219,"column":6},"end":{"line":219,"column":17}},"113":{"start":{"line":220,"column":6},"end":{"line":220,"column":11}},"114":{"start":{"line":226,"column":6},"end":{"line":226,"column":23}},"115":{"start":{"line":227,"column":6},"end":{"line":227,"column":25}},"116":{"start":{"line":228,"column":6},"end":{"line":228,"column":11}},"117":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"118":{"start":{"line":233,"column":4},"end":{"line":233,"column":28}},"119":{"start":{"line":235,"column":17},"end":{"line":235,"column":29}},"120":{"start":{"line":236,"column":19},"end":{"line":236,"column":33}},"121":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"122":{"start":{"line":242,"column":2},"end":{"line":242,"column":49}},"123":{"start":{"line":243,"column":2},"end":{"line":243,"column":19}},"124":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"125":{"start":{"line":247,"column":4},"end":{"line":249,"column":6}},"126":{"start":{"line":248,"column":6},"end":{"line":248,"column":24}},"127":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"128":{"start":{"line":252,"column":13},"end":{"line":252,"column":35}},"129":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"130":{"start":{"line":255,"column":4},"end":{"line":255,"column":23}},"131":{"start":{"line":258,"column":2},"end":{"line":258,"column":21}},"132":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"133":{"start":{"line":261,"column":4},"end":{"line":261,"column":39}},"134":{"start":{"line":264,"column":11},"end":{"line":264,"column":15}},"135":{"start":{"line":266,"column":2},"end":{"line":268,"column":4}},"136":{"start":{"line":267,"column":4},"end":{"line":267,"column":14}},"137":{"start":{"line":270,"column":2},"end":{"line":272,"column":4}},"138":{"start":{"line":271,"column":4},"end":{"line":271,"column":15}},"139":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"140":{"start":{"line":275,"column":4},"end":{"line":275,"column":29}},"141":{"start":{"line":278,"column":2},"end":{"line":278,"column":22}},"142":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"143":{"start":{"line":282,"column":4},"end":{"line":282,"column":15}},"144":{"start":{"line":283,"column":4},"end":{"line":283,"column":22}}},"fnMap":{"0":{"name":"Parse","decl":{"start":{"line":27,"column":9},"end":{"line":27,"column":14}},"loc":{"start":{"line":27,"column":18},"end":{"line":58,"column":1}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":25},"end":{"line":43,"column":26}},"loc":{"start":{"line":43,"column":38},"end":{"line":45,"column":3}},"line":43},"2":{"name":"(anonymous_2)","decl":{"start":{"line":47,"column":24},"end":{"line":47,"column":25}},"loc":{"start":{"line":47,"column":37},"end":{"line":49,"column":3}},"line":47},"3":{"name":"(anonymous_3)","decl":{"start":{"line":51,"column":23},"end":{"line":51,"column":24}},"loc":{"start":{"line":51,"column":35},"end":{"line":53,"column":3}},"line":51},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":25},"end":{"line":55,"column":26}},"loc":{"start":{"line":55,"column":37},"end":{"line":57,"column":3}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":63,"column":29},"end":{"line":63,"column":30}},"loc":{"start":{"line":63,"column":41},"end":{"line":67,"column":1}},"line":63},"6":{"name":"(anonymous_6)","decl":{"start":{"line":72,"column":24},"end":{"line":72,"column":25}},"loc":{"start":{"line":72,"column":37},"end":{"line":83,"column":1}},"line":72},"7":{"name":"(anonymous_7)","decl":{"start":{"line":85,"column":22},"end":{"line":85,"column":23}},"loc":{"start":{"line":85,"column":35},"end":{"line":88,"column":1}},"line":85},"8":{"name":"(anonymous_8)","decl":{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},"loc":{"start":{"line":94,"column":36},"end":{"line":94,"column":38}},"line":94},"9":{"name":"(anonymous_9)","decl":{"start":{"line":96,"column":27},"end":{"line":96,"column":28}},"loc":{"start":{"line":96,"column":40},"end":{"line":137,"column":1}},"line":96},"10":{"name":"(anonymous_10)","decl":{"start":{"line":140,"column":30},"end":{"line":140,"column":31}},"loc":{"start":{"line":140,"column":43},"end":{"line":285,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":178,"column":14},"end":{"line":178,"column":15}},"loc":{"start":{"line":178,"column":26},"end":{"line":183,"column":7}},"line":178},"12":{"name":"(anonymous_12)","decl":{"start":{"line":180,"column":42},"end":{"line":180,"column":43}},"loc":{"start":{"line":180,"column":55},"end":{"line":182,"column":9}},"line":180},"13":{"name":"(anonymous_13)","decl":{"start":{"line":192,"column":14},"end":{"line":192,"column":15}},"loc":{"start":{"line":192,"column":26},"end":{"line":194,"column":7}},"line":192},"14":{"name":"(anonymous_14)","decl":{"start":{"line":202,"column":14},"end":{"line":202,"column":15}},"loc":{"start":{"line":202,"column":26},"end":{"line":205,"column":7}},"line":202},"15":{"name":"(anonymous_15)","decl":{"start":{"line":214,"column":14},"end":{"line":214,"column":15}},"loc":{"start":{"line":214,"column":26},"end":{"line":217,"column":7}},"line":214},"16":{"name":"(anonymous_16)","decl":{"start":{"line":247,"column":21},"end":{"line":247,"column":22}},"loc":{"start":{"line":247,"column":34},"end":{"line":249,"column":5}},"line":247},"17":{"name":"(anonymous_17)","decl":{"start":{"line":266,"column":20},"end":{"line":266,"column":21}},"loc":{"start":{"line":266,"column":32},"end":{"line":268,"column":3}},"line":266},"18":{"name":"(anonymous_18)","decl":{"start":{"line":270,"column":21},"end":{"line":270,"column":22}},"loc":{"start":{"line":270,"column":33},"end":{"line":272,"column":3}},"line":270}},"branchMap":{"0":{"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},"type":"if","locations":[{"start":{"line":29,"column":2},"end":{"line":29,"column":48}},{"start":{"line":29,"column":2},"end":{"line":29,"column":48}}],"line":29},"1":{"loc":{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},"type":"if","locations":[{"start":{"line":65,"column":2},"end":{"line":65,"column":57}},{"start":{"line":65,"column":2},"end":{"line":65,"column":57}}],"line":65},"2":{"loc":{"start":{"line":65,"column":6},"end":{"line":65,"column":29}},"type":"binary-expr","locations":[{"start":{"line":65,"column":6},"end":{"line":65,"column":16}},{"start":{"line":65,"column":20},"end":{"line":65,"column":29}}],"line":65},"3":{"loc":{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":73,"column":2},"end":{"line":81,"column":3}},{"start":{"line":73,"column":2},"end":{"line":81,"column":3}}],"line":73},"4":{"loc":{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},"type":"if","locations":[{"start":{"line":78,"column":6},"end":{"line":78,"column":62}},{"start":{"line":78,"column":6},"end":{"line":78,"column":62}}],"line":78},"5":{"loc":{"start":{"line":97,"column":9},"end":{"line":97,"column":30}},"type":"binary-expr","locations":[{"start":{"line":97,"column":9},"end":{"line":97,"column":10}},{"start":{"line":97,"column":14},"end":{"line":97,"column":30}}],"line":97},"6":{"loc":{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},"type":"if","locations":[{"start":{"line":104,"column":2},"end":{"line":134,"column":3}},{"start":{"line":104,"column":2},"end":{"line":134,"column":3}}],"line":104},"7":{"loc":{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},"type":"if","locations":[{"start":{"line":106,"column":4},"end":{"line":110,"column":5}},{"start":{"line":106,"column":4},"end":{"line":110,"column":5}}],"line":106},"8":{"loc":{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},"type":"if","locations":[{"start":{"line":109,"column":6},"end":{"line":109,"column":51}},{"start":{"line":109,"column":6},"end":{"line":109,"column":51}}],"line":109},"9":{"loc":{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},"type":"if","locations":[{"start":{"line":111,"column":4},"end":{"line":114,"column":5}},{"start":{"line":111,"column":4},"end":{"line":114,"column":5}}],"line":111},"10":{"loc":{"start":{"line":118,"column":20},"end":{"line":118,"column":35}},"type":"binary-expr","locations":[{"start":{"line":118,"column":20},"end":{"line":118,"column":27}},{"start":{"line":118,"column":31},"end":{"line":118,"column":35}}],"line":118},"11":{"loc":{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},"type":"if","locations":[{"start":{"line":126,"column":4},"end":{"line":133,"column":5}},{"start":{"line":126,"column":4},"end":{"line":133,"column":5}}],"line":126},"12":{"loc":{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},"type":"if","locations":[{"start":{"line":127,"column":6},"end":{"line":128,"column":26}},{"start":{"line":127,"column":6},"end":{"line":128,"column":26}}],"line":127},"13":{"loc":{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},"type":"if","locations":[{"start":{"line":149,"column":2},"end":{"line":155,"column":3}},{"start":{"line":149,"column":2},"end":{"line":155,"column":3}}],"line":149},"14":{"loc":{"start":{"line":149,"column":6},"end":{"line":149,"column":48}},"type":"binary-expr","locations":[{"start":{"line":149,"column":6},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":48}}],"line":149},"15":{"loc":{"start":{"line":157,"column":2},"end":{"line":229,"column":3}},"type":"switch","locations":[{"start":{"line":158,"column":4},"end":{"line":158,"column":16}},{"start":{"line":159,"column":4},"end":{"line":159,"column":19}},{"start":{"line":160,"column":4},"end":{"line":160,"column":16}},{"start":{"line":161,"column":4},"end":{"line":161,"column":24}},{"start":{"line":162,"column":4},"end":{"line":162,"column":27}},{"start":{"line":163,"column":4},"end":{"line":163,"column":23}},{"start":{"line":164,"column":4},"end":{"line":164,"column":21}},{"start":{"line":165,"column":4},"end":{"line":165,"column":16}},{"start":{"line":166,"column":4},"end":{"line":166,"column":26}},{"start":{"line":167,"column":4},"end":{"line":173,"column":11}},{"start":{"line":175,"column":4},"end":{"line":186,"column":11}},{"start":{"line":188,"column":4},"end":{"line":188,"column":26}},{"start":{"line":189,"column":4},"end":{"line":197,"column":11}},{"start":{"line":199,"column":4},"end":{"line":208,"column":11}},{"start":{"line":210,"column":4},"end":{"line":210,"column":31}},{"start":{"line":211,"column":4},"end":{"line":220,"column":11}},{"start":{"line":222,"column":4},"end":{"line":228,"column":11}}],"line":157},"16":{"loc":{"start":{"line":179,"column":23},"end":{"line":179,"column":41}},"type":"binary-expr","locations":[{"start":{"line":179,"column":23},"end":{"line":179,"column":35}},{"start":{"line":179,"column":39},"end":{"line":179,"column":41}}],"line":179},"17":{"loc":{"start":{"line":203,"column":25},"end":{"line":203,"column":45}},"type":"binary-expr","locations":[{"start":{"line":203,"column":25},"end":{"line":203,"column":39}},{"start":{"line":203,"column":43},"end":{"line":203,"column":45}}],"line":203},"18":{"loc":{"start":{"line":215,"column":25},"end":{"line":215,"column":45}},"type":"binary-expr","locations":[{"start":{"line":215,"column":25},"end":{"line":215,"column":39}},{"start":{"line":215,"column":43},"end":{"line":215,"column":45}}],"line":215},"19":{"loc":{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},"type":"if","locations":[{"start":{"line":232,"column":2},"end":{"line":241,"column":3}},{"start":{"line":232,"column":2},"end":{"line":241,"column":3}}],"line":232},"20":{"loc":{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},"type":"if","locations":[{"start":{"line":246,"column":2},"end":{"line":250,"column":3}},{"start":{"line":246,"column":2},"end":{"line":250,"column":3}}],"line":246},"21":{"loc":{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},"type":"if","locations":[{"start":{"line":252,"column":2},"end":{"line":252,"column":35}},{"start":{"line":252,"column":2},"end":{"line":252,"column":35}}],"line":252},"22":{"loc":{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},"type":"if","locations":[{"start":{"line":254,"column":2},"end":{"line":256,"column":3}},{"start":{"line":254,"column":2},"end":{"line":256,"column":3}}],"line":254},"23":{"loc":{"start":{"line":254,"column":6},"end":{"line":254,"column":58}},"type":"binary-expr","locations":[{"start":{"line":254,"column":6},"end":{"line":254,"column":27}},{"start":{"line":254,"column":31},"end":{"line":254,"column":58}}],"line":254},"24":{"loc":{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},"type":"if","locations":[{"start":{"line":260,"column":2},"end":{"line":262,"column":3}},{"start":{"line":260,"column":2},"end":{"line":262,"column":3}}],"line":260},"25":{"loc":{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},"type":"if","locations":[{"start":{"line":274,"column":2},"end":{"line":276,"column":3}},{"start":{"line":274,"column":2},"end":{"line":276,"column":3}}],"line":274},"26":{"loc":{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},"type":"if","locations":[{"start":{"line":281,"column":2},"end":{"line":284,"column":3}},{"start":{"line":281,"column":2},"end":{"line":284,"column":3}}],"line":281}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":2,"14":2,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":0,"25":1,"26":36,"27":1,"28":1,"29":1,"30":0,"31":1,"32":1,"33":1,"34":0,"35":1,"36":1,"37":1,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":36,"51":36,"52":17,"53":17,"54":17,"55":0,"56":0,"57":0,"58":17,"59":15,"60":15,"61":19,"62":19,"63":19,"64":1041,"65":19,"66":2,"67":1,"68":2,"69":17,"70":17,"71":36,"72":1,"73":17,"74":17,"75":17,"76":17,"77":0,"78":0,"79":0,"80":0,"81":0,"82":17,"83":10,"84":10,"85":10,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":4,"95":4,"96":4,"97":4,"98":4,"99":4,"100":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":2,"108":2,"109":2,"110":2,"111":2,"112":2,"113":2,"114":0,"115":0,"116":0,"117":17,"118":7,"119":10,"120":10,"121":10,"122":17,"123":17,"124":17,"125":10,"126":10,"127":17,"128":7,"129":17,"130":0,"131":17,"132":17,"133":1,"134":17,"135":17,"136":0,"137":17,"138":0,"139":17,"140":17,"141":17,"142":17,"143":2,"144":2},"f":{"0":2,"1":0,"2":36,"3":1,"4":0,"5":1,"6":1,"7":1,"8":0,"9":36,"10":17,"11":0,"12":0,"13":4,"14":1,"15":2,"16":10,"17":0,"18":0},"b":{"0":[1,1],"1":[0,1],"2":[1,1],"3":[0,1],"4":[0,0],"5":[36,36],"6":[17,19],"7":[17,0],"8":[0,0],"9":[15,2],"10":[1060,1058],"11":[2,17],"12":[1,1],"13":[0,17],"14":[17,17],"15":[8,8,9,10,10,10,10,10,10,10,0,4,4,1,2,2,0],"16":[0,0],"17":[1,1],"18":[2,1],"19":[7,10],"20":[10,7],"21":[7,10],"22":[0,17],"23":[17,8],"24":[1,16],"25":[17,0],"26":[2,15]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"4a8f51a3a12b59eb69694618530032a813fbf8cb","contentHash":"d347e73abcd3109143efee20401d9f0bfc6d68a4a6323bd4559ada44c741786a"},"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":{"path":"/Users/isaacs/dev/js/tar/lib/buffer-entry.js","statementMap":{"0":{"start":{"line":8,"column":0},"end":{"line":8,"column":28}},"1":{"start":{"line":10,"column":15},"end":{"line":10,"column":34}},"2":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":30}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":44}},"5":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"6":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"7":{"start":{"line":18,"column":2},"end":{"line":20,"column":4}},"8":{"start":{"line":19,"column":4},"end":{"line":19,"column":52}},"9":{"start":{"line":23,"column":0},"end":{"line":23,"column":28}},"10":{"start":{"line":26,"column":0},"end":{"line":30,"column":1}},"11":{"start":{"line":27,"column":2},"end":{"line":27,"column":36}},"12":{"start":{"line":28,"column":2},"end":{"line":28,"column":26}},"13":{"start":{"line":29,"column":2},"end":{"line":29,"column":37}}},"fnMap":{"0":{"name":"BufferEntry","decl":{"start":{"line":13,"column":9},"end":{"line":13,"column":20}},"loc":{"start":{"line":13,"column":24},"end":{"line":21,"column":1}},"line":13},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":17},"end":{"line":18,"column":18}},"loc":{"start":{"line":18,"column":29},"end":{"line":20,"column":3}},"line":18},"2":{"name":"(anonymous_2)","decl":{"start":{"line":26,"column":30},"end":{"line":26,"column":31}},"loc":{"start":{"line":26,"column":43},"end":{"line":30,"column":1}},"line":26}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":3,"4":3,"5":3,"6":3,"7":3,"8":3,"9":1,"10":1,"11":3,"12":3,"13":3},"f":{"0":3,"1":3,"2":3},"b":{},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"d8ad66df900443c9c9d8aefe5fc126a55ba268ec","contentHash":"25e5b3c51e476fcffac7affa191a0ed0f54d64d3d3b760e887bd45ba08fffa65"},"/Users/isaacs/dev/js/tar/lib/extended-header.js":{"path":"/Users/isaacs/dev/js/tar/lib/extended-header.js","statementMap":{"0":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"1":{"start":{"line":11,"column":12},"end":{"line":11,"column":33}},"2":{"start":{"line":12,"column":15},"end":{"line":12,"column":34}},"3":{"start":{"line":13,"column":10},"end":{"line":13,"column":30}},"4":{"start":{"line":14,"column":14},"end":{"line":14,"column":25}},"5":{"start":{"line":15,"column":15},"end":{"line":17,"column":42}},"6":{"start":{"line":20,"column":2},"end":{"line":20,"column":30}},"7":{"start":{"line":21,"column":2},"end":{"line":21,"column":30}},"8":{"start":{"line":22,"column":2},"end":{"line":22,"column":18}},"9":{"start":{"line":23,"column":2},"end":{"line":23,"column":20}},"10":{"start":{"line":24,"column":2},"end":{"line":24,"column":20}},"11":{"start":{"line":25,"column":2},"end":{"line":25,"column":20}},"12":{"start":{"line":26,"column":2},"end":{"line":26,"column":20}},"13":{"start":{"line":27,"column":2},"end":{"line":27,"column":19}},"14":{"start":{"line":28,"column":2},"end":{"line":28,"column":19}},"15":{"start":{"line":29,"column":2},"end":{"line":29,"column":17}},"16":{"start":{"line":30,"column":2},"end":{"line":30,"column":16}},"17":{"start":{"line":33,"column":0},"end":{"line":33,"column":31}},"18":{"start":{"line":34,"column":0},"end":{"line":34,"column":39}},"19":{"start":{"line":36,"column":8},"end":{"line":36,"column":9}},"20":{"start":{"line":37,"column":13},"end":{"line":37,"column":39}},"21":{"start":{"line":38,"column":11},"end":{"line":38,"column":28}},"22":{"start":{"line":39,"column":11},"end":{"line":39,"column":28}},"23":{"start":{"line":40,"column":11},"end":{"line":40,"column":28}},"24":{"start":{"line":41,"column":11},"end":{"line":41,"column":28}},"25":{"start":{"line":43,"column":0},"end":{"line":45,"column":2}},"26":{"start":{"line":44,"column":2},"end":{"line":44,"column":31}},"27":{"start":{"line":47,"column":0},"end":{"line":47,"column":16}},"28":{"start":{"line":50,"column":9},"end":{"line":50,"column":26}},"29":{"start":{"line":51,"column":9},"end":{"line":51,"column":26}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":29}},"31":{"start":{"line":53,"column":8},"end":{"line":53,"column":25}},"32":{"start":{"line":54,"column":8},"end":{"line":54,"column":25}},"33":{"start":{"line":55,"column":8},"end":{"line":55,"column":25}},"34":{"start":{"line":56,"column":8},"end":{"line":56,"column":25}},"35":{"start":{"line":57,"column":12},"end":{"line":57,"column":29}},"36":{"start":{"line":58,"column":9},"end":{"line":58,"column":26}},"37":{"start":{"line":59,"column":9},"end":{"line":59,"column":27}},"38":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"39":{"start":{"line":62,"column":27},"end":{"line":62,"column":33}},"40":{"start":{"line":64,"column":2},"end":{"line":130,"column":3}},"41":{"start":{"line":64,"column":16},"end":{"line":64,"column":17}},"42":{"start":{"line":64,"column":23},"end":{"line":64,"column":31}},"43":{"start":{"line":69,"column":12},"end":{"line":69,"column":16}},"44":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"45":{"start":{"line":72,"column":6},"end":{"line":72,"column":53}},"46":{"start":{"line":73,"column":6},"end":{"line":73,"column":12}},"47":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"48":{"start":{"line":77,"column":16},"end":{"line":77,"column":22}},"49":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"50":{"start":{"line":82,"column":10},"end":{"line":82,"column":27}},"51":{"start":{"line":84,"column":10},"end":{"line":84,"column":73}},"52":{"start":{"line":85,"column":10},"end":{"line":85,"column":34}},"53":{"start":{"line":86,"column":10},"end":{"line":86,"column":18}},"54":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"55":{"start":{"line":89,"column":10},"end":{"line":89,"column":68}},"56":{"start":{"line":90,"column":10},"end":{"line":90,"column":16}},"57":{"start":{"line":92,"column":8},"end":{"line":92,"column":29}},"58":{"start":{"line":93,"column":8},"end":{"line":93,"column":16}},"59":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"60":{"start":{"line":98,"column":10},"end":{"line":98,"column":27}},"61":{"start":{"line":99,"column":10},"end":{"line":99,"column":57}},"62":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"63":{"start":{"line":100,"column":35},"end":{"line":100,"column":66}},"64":{"start":{"line":101,"column":10},"end":{"line":101,"column":33}},"65":{"start":{"line":102,"column":10},"end":{"line":102,"column":18}},"66":{"start":{"line":104,"column":8},"end":{"line":104,"column":28}},"67":{"start":{"line":105,"column":8},"end":{"line":105,"column":16}},"68":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"69":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"70":{"start":{"line":112,"column":12},"end":{"line":112,"column":55}},"71":{"start":{"line":113,"column":12},"end":{"line":113,"column":18}},"72":{"start":{"line":115,"column":20},"end":{"line":115,"column":55}},"73":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"74":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"75":{"start":{"line":119,"column":10},"end":{"line":119,"column":38}},"76":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"77":{"start":{"line":122,"column":10},"end":{"line":122,"column":28}},"78":{"start":{"line":123,"column":10},"end":{"line":123,"column":25}},"79":{"start":{"line":124,"column":10},"end":{"line":124,"column":29}},"80":{"start":{"line":125,"column":10},"end":{"line":125,"column":18}},"81":{"start":{"line":127,"column":8},"end":{"line":127,"column":28}},"82":{"start":{"line":128,"column":8},"end":{"line":128,"column":16}},"83":{"start":{"line":134,"column":2},"end":{"line":136,"column":42}},"84":{"start":{"line":138,"column":2},"end":{"line":138,"column":15}},"85":{"start":{"line":139,"column":2},"end":{"line":139,"column":16}}},"fnMap":{"0":{"name":"ExtendedHeader","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":23}},"loc":{"start":{"line":19,"column":27},"end":{"line":31,"column":1}},"line":19},"1":{"name":"(anonymous_1)","decl":{"start":{"line":43,"column":28},"end":{"line":43,"column":29}},"loc":{"start":{"line":43,"column":41},"end":{"line":45,"column":1}},"line":43},"2":{"name":"parse","decl":{"start":{"line":61,"column":9},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":19},"end":{"line":131,"column":1}},"line":61},"3":{"name":"error","decl":{"start":{"line":133,"column":9},"end":{"line":133,"column":14}},"loc":{"start":{"line":133,"column":25},"end":{"line":140,"column":1}},"line":133}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},"type":"if","locations":[{"start":{"line":62,"column":2},"end":{"line":62,"column":33}},{"start":{"line":62,"column":2},"end":{"line":62,"column":33}}],"line":62},"1":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"2":{"loc":{"start":{"line":71,"column":8},"end":{"line":71,"column":54}},"type":"binary-expr","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":23}},{"start":{"line":71,"column":27},"end":{"line":71,"column":54}}],"line":71},"3":{"loc":{"start":{"line":76,"column":4},"end":{"line":129,"column":5}},"type":"switch","locations":[{"start":{"line":77,"column":6},"end":{"line":77,"column":22}},{"start":{"line":79,"column":6},"end":{"line":93,"column":16}},{"start":{"line":95,"column":6},"end":{"line":105,"column":16}},{"start":{"line":107,"column":6},"end":{"line":128,"column":16}}],"line":76},"4":{"loc":{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},"type":"if","locations":[{"start":{"line":81,"column":8},"end":{"line":87,"column":9}},{"start":{"line":81,"column":8},"end":{"line":87,"column":9}}],"line":81},"5":{"loc":{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},"type":"if","locations":[{"start":{"line":88,"column":8},"end":{"line":91,"column":9}},{"start":{"line":88,"column":8},"end":{"line":91,"column":9}}],"line":88},"6":{"loc":{"start":{"line":88,"column":12},"end":{"line":88,"column":28}},"type":"binary-expr","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":18}},{"start":{"line":88,"column":22},"end":{"line":88,"column":28}}],"line":88},"7":{"loc":{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},"type":"if","locations":[{"start":{"line":97,"column":8},"end":{"line":103,"column":9}},{"start":{"line":97,"column":8},"end":{"line":103,"column":9}}],"line":97},"8":{"loc":{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},"type":"if","locations":[{"start":{"line":100,"column":10},"end":{"line":100,"column":66}},{"start":{"line":100,"column":10},"end":{"line":100,"column":66}}],"line":100},"9":{"loc":{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},"type":"if","locations":[{"start":{"line":109,"column":8},"end":{"line":126,"column":9}},{"start":{"line":109,"column":8},"end":{"line":126,"column":9}}],"line":109},"10":{"loc":{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},"type":"if","locations":[{"start":{"line":111,"column":10},"end":{"line":114,"column":11}},{"start":{"line":111,"column":10},"end":{"line":114,"column":11}}],"line":111},"11":{"loc":{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},"type":"if","locations":[{"start":{"line":116,"column":10},"end":{"line":118,"column":11}},{"start":{"line":116,"column":10},"end":{"line":118,"column":11}}],"line":116}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":4,"7":4,"8":4,"9":4,"10":4,"11":4,"12":4,"13":4,"14":4,"15":4,"16":4,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":4,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":4,"39":0,"40":4,"41":4,"42":4,"43":969,"44":969,"45":0,"46":0,"47":969,"48":0,"49":80,"50":26,"51":26,"52":26,"53":26,"54":54,"55":0,"56":0,"57":54,"58":54,"59":275,"60":26,"61":26,"62":26,"63":12,"64":26,"65":26,"66":249,"67":249,"68":614,"69":26,"70":0,"71":0,"72":26,"73":26,"74":20,"75":26,"76":26,"77":26,"78":26,"79":26,"80":26,"81":588,"82":588,"83":0,"84":0,"85":0},"f":{"0":4,"1":4,"2":4,"3":0},"b":{"0":[0,4],"1":[0,969],"2":[969,889],"3":[0,80,275,614],"4":[26,54],"5":[0,54],"6":[54,54],"7":[26,249],"8":[12,14],"9":[26,588],"10":[0,26],"11":[20,6]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"77cb382c69a46833a08275dbc55bf34db0dcd796","contentHash":"78a790af1726a774425fb478f1423068fe64414b747d89b597baf45139e7ae3d"},"/Users/isaacs/dev/js/tar/lib/extract.js":{"path":"/Users/isaacs/dev/js/tar/lib/extract.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":24}},"1":{"start":{"line":5,"column":10},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":14},"end":{"line":6,"column":32}},"3":{"start":{"line":7,"column":15},"end":{"line":7,"column":34}},"4":{"start":{"line":8,"column":11},"end":{"line":8,"column":26}},"5":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":58}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":23}},"8":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"9":{"start":{"line":15,"column":4},"end":{"line":15,"column":25}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":25}},"12":{"start":{"line":21,"column":2},"end":{"line":21,"column":23}},"13":{"start":{"line":24,"column":2},"end":{"line":24,"column":26}},"14":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"15":{"start":{"line":25,"column":38},"end":{"line":25,"column":52}},"16":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"17":{"start":{"line":29,"column":2},"end":{"line":29,"column":14}},"18":{"start":{"line":30,"column":11},"end":{"line":30,"column":15}},"19":{"start":{"line":35,"column":2},"end":{"line":60,"column":4}},"20":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"21":{"start":{"line":39,"column":14},"end":{"line":39,"column":63}},"22":{"start":{"line":40,"column":6},"end":{"line":40,"column":39}},"23":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"24":{"start":{"line":42,"column":17},"end":{"line":42,"column":70}},"25":{"start":{"line":43,"column":8},"end":{"line":43,"column":50}},"26":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"27":{"start":{"line":47,"column":6},"end":{"line":48,"column":66}},"28":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"29":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"30":{"start":{"line":53,"column":21},"end":{"line":53,"column":41}},"31":{"start":{"line":54,"column":19},"end":{"line":54,"column":56}},"32":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"33":{"start":{"line":56,"column":8},"end":{"line":56,"column":65}},"34":{"start":{"line":58,"column":6},"end":{"line":58,"column":54}},"35":{"start":{"line":62,"column":2},"end":{"line":65,"column":4}},"36":{"start":{"line":63,"column":4},"end":{"line":63,"column":36}},"37":{"start":{"line":64,"column":4},"end":{"line":64,"column":15}},"38":{"start":{"line":67,"column":2},"end":{"line":69,"column":4}},"39":{"start":{"line":68,"column":4},"end":{"line":68,"column":25}},"40":{"start":{"line":71,"column":2},"end":{"line":73,"column":4}},"41":{"start":{"line":72,"column":4},"end":{"line":72,"column":20}},"42":{"start":{"line":79,"column":2},"end":{"line":84,"column":4}},"43":{"start":{"line":81,"column":4},"end":{"line":81,"column":21}},"44":{"start":{"line":82,"column":4},"end":{"line":82,"column":18}},"45":{"start":{"line":83,"column":4},"end":{"line":83,"column":20}},"46":{"start":{"line":87,"column":0},"end":{"line":87,"column":28}},"47":{"start":{"line":89,"column":0},"end":{"line":94,"column":1}},"48":{"start":{"line":90,"column":11},"end":{"line":90,"column":15}},"49":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"50":{"start":{"line":91,"column":31},"end":{"line":91,"column":57}},"51":{"start":{"line":92,"column":2},"end":{"line":92,"column":15}}},"fnMap":{"0":{"name":"Extract","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":16}},"loc":{"start":{"line":10,"column":24},"end":{"line":85,"column":1}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":35,"column":17},"end":{"line":35,"column":18}},"loc":{"start":{"line":35,"column":34},"end":{"line":60,"column":3}},"line":35},"2":{"name":"(anonymous_2)","decl":{"start":{"line":62,"column":24},"end":{"line":62,"column":25}},"loc":{"start":{"line":62,"column":36},"end":{"line":65,"column":3}},"line":62},"3":{"name":"(anonymous_3)","decl":{"start":{"line":67,"column":24},"end":{"line":67,"column":25}},"loc":{"start":{"line":67,"column":38},"end":{"line":69,"column":3}},"line":67},"4":{"name":"(anonymous_4)","decl":{"start":{"line":71,"column":24},"end":{"line":71,"column":25}},"loc":{"start":{"line":71,"column":35},"end":{"line":73,"column":3}},"line":71},"5":{"name":"(anonymous_5)","decl":{"start":{"line":79,"column":24},"end":{"line":79,"column":25}},"loc":{"start":{"line":79,"column":36},"end":{"line":84,"column":3}},"line":79},"6":{"name":"(anonymous_6)","decl":{"start":{"line":89,"column":31},"end":{"line":89,"column":32}},"loc":{"start":{"line":89,"column":43},"end":{"line":94,"column":1}},"line":89}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},"type":"if","locations":[{"start":{"line":11,"column":2},"end":{"line":11,"column":58}},{"start":{"line":11,"column":2},"end":{"line":11,"column":58}}],"line":11},"1":{"loc":{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":14,"column":2},"end":{"line":16,"column":3}},{"start":{"line":14,"column":2},"end":{"line":16,"column":3}}],"line":14},"2":{"loc":{"start":{"line":19,"column":14},"end":{"line":19,"column":59}},"type":"binary-expr","locations":[{"start":{"line":19,"column":14},"end":{"line":19,"column":23}},{"start":{"line":19,"column":27},"end":{"line":19,"column":59}}],"line":19},"3":{"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},"type":"if","locations":[{"start":{"line":25,"column":2},"end":{"line":25,"column":52}},{"start":{"line":25,"column":2},"end":{"line":25,"column":52}}],"line":25},"4":{"loc":{"start":{"line":25,"column":6},"end":{"line":25,"column":36}},"type":"binary-expr","locations":[{"start":{"line":25,"column":6},"end":{"line":25,"column":17}},{"start":{"line":25,"column":21},"end":{"line":25,"column":36}}],"line":25},"5":{"loc":{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},"type":"if","locations":[{"start":{"line":38,"column":4},"end":{"line":45,"column":5}},{"start":{"line":38,"column":4},"end":{"line":45,"column":5}}],"line":38},"6":{"loc":{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},"type":"if","locations":[{"start":{"line":41,"column":6},"end":{"line":44,"column":7}},{"start":{"line":41,"column":6},"end":{"line":44,"column":7}}],"line":41},"7":{"loc":{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":49,"column":5}},{"start":{"line":46,"column":4},"end":{"line":49,"column":5}}],"line":46},"8":{"loc":{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},"type":"if","locations":[{"start":{"line":51,"column":4},"end":{"line":59,"column":5}},{"start":{"line":51,"column":4},"end":{"line":59,"column":5}}],"line":51},"9":{"loc":{"start":{"line":52,"column":15},"end":{"line":52,"column":45}},"type":"binary-expr","locations":[{"start":{"line":52,"column":15},"end":{"line":52,"column":39}},{"start":{"line":52,"column":43},"end":{"line":52,"column":45}}],"line":52},"10":{"loc":{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},"type":"if","locations":[{"start":{"line":55,"column":6},"end":{"line":57,"column":7}},{"start":{"line":55,"column":6},"end":{"line":57,"column":7}}],"line":55},"11":{"loc":{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},"type":"if","locations":[{"start":{"line":91,"column":2},"end":{"line":91,"column":57}},{"start":{"line":91,"column":2},"end":{"line":91,"column":57}}],"line":91},"12":{"loc":{"start":{"line":91,"column":6},"end":{"line":91,"column":29}},"type":"binary-expr","locations":[{"start":{"line":91,"column":6},"end":{"line":91,"column":16}},{"start":{"line":91,"column":20},"end":{"line":91,"column":29}}],"line":91}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":1,"47":1,"48":0,"49":0,"50":0,"51":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0]},"_coverageSchema":"43e27e138ebf9cfc5966b082cf9a028302ed4184","hash":"3fb9f60facc409fe944dc36bd2e14fc6153e403d","contentHash":"3d9485ca58c6c768b022a39d276296b53647ccf39986885459406e933921c962"}} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/0471d9cf-687f-4ae8-84a5-ce7468becd03.json b/node_modules/tar/.nyc_output/processinfo/0471d9cf-687f-4ae8-84a5-ce7468becd03.json
deleted file mode 100644
index b45408c..0000000
--- a/node_modules/tar/.nyc_output/processinfo/0471d9cf-687f-4ae8-84a5-ce7468becd03.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"0471d9cf-687f-4ae8-84a5-ce7468becd03","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93247,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/parse-discard.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878802822,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/0471d9cf-687f-4ae8-84a5-ce7468becd03.json","externalId":"test/parse-discard.js","files":["/Users/isaacs/dev/js/tar/lib/pack.js","/Users/isaacs/dev/js/tar/lib/entry-writer.js","/Users/isaacs/dev/js/tar/lib/entry.js","/Users/isaacs/dev/js/tar/lib/global-header-writer.js","/Users/isaacs/dev/js/tar/lib/parse.js","/Users/isaacs/dev/js/tar/lib/buffer-entry.js","/Users/isaacs/dev/js/tar/lib/extended-header.js","/Users/isaacs/dev/js/tar/lib/extract.js"]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/12bca2bc-6a2b-4f45-abc7-8483922a524d.json b/node_modules/tar/.nyc_output/processinfo/12bca2bc-6a2b-4f45-abc7-8483922a524d.json
deleted file mode 100644
index a527876..0000000
--- a/node_modules/tar/.nyc_output/processinfo/12bca2bc-6a2b-4f45-abc7-8483922a524d.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"12bca2bc-6a2b-4f45-abc7-8483922a524d","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93240,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/dir-normalization.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801286,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/12bca2bc-6a2b-4f45-abc7-8483922a524d.json","externalId":"test/dir-normalization.js","files":["/Users/isaacs/dev/js/tar/lib/pack.js","/Users/isaacs/dev/js/tar/lib/entry-writer.js","/Users/isaacs/dev/js/tar/lib/entry.js","/Users/isaacs/dev/js/tar/lib/global-header-writer.js","/Users/isaacs/dev/js/tar/lib/parse.js","/Users/isaacs/dev/js/tar/lib/buffer-entry.js","/Users/isaacs/dev/js/tar/lib/extended-header.js","/Users/isaacs/dev/js/tar/lib/extract.js"]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/37d58de4-deea-4808-bb77-d27685bd1501.json b/node_modules/tar/.nyc_output/processinfo/37d58de4-deea-4808-bb77-d27685bd1501.json
deleted file mode 100644
index 8bb0420..0000000
--- a/node_modules/tar/.nyc_output/processinfo/37d58de4-deea-4808-bb77-d27685bd1501.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"37d58de4-deea-4808-bb77-d27685bd1501","parent":null,"pid":93238,"argv":["/usr/local/bin/node","/usr/local/bin/tap","test/00-setup-fixtures.js","test/dir-normalization.js","test/error-on-broken.js","test/extract-move.js","test/extract.js","test/header.js","test/pack-no-proprietary.js","test/pack.js","test/parse-discard.js","test/parse.js","test/zz-cleanup.js"],"execArgv":[],"cwd":"/Users/isaacs/dev/js/tar","time":1557878798122,"ppid":93237,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/37d58de4-deea-4808-bb77-d27685bd1501.json","files":[]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json b/node_modules/tar/.nyc_output/processinfo/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json
deleted file mode 100644
index b8f9b3e..0000000
--- a/node_modules/tar/.nyc_output/processinfo/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"5ad8066b-6b8c-4bc8-b807-c40bf80898b7","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93246,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/pack.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801645,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json","externalId":"test/pack.js","files":[]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json b/node_modules/tar/.nyc_output/processinfo/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json
deleted file mode 100644
index 04bc15a..0000000
--- a/node_modules/tar/.nyc_output/processinfo/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"5cbf674c-7089-4b7d-b9de-2119be4dbb0b","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93241,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/error-on-broken.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801335,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json","externalId":"test/error-on-broken.js","files":["/Users/isaacs/dev/js/tar/lib/pack.js","/Users/isaacs/dev/js/tar/lib/entry-writer.js","/Users/isaacs/dev/js/tar/lib/entry.js","/Users/isaacs/dev/js/tar/lib/global-header-writer.js","/Users/isaacs/dev/js/tar/lib/parse.js","/Users/isaacs/dev/js/tar/lib/buffer-entry.js","/Users/isaacs/dev/js/tar/lib/extended-header.js","/Users/isaacs/dev/js/tar/lib/extract.js"]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json b/node_modules/tar/.nyc_output/processinfo/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json
deleted file mode 100644
index b8e852c..0000000
--- a/node_modules/tar/.nyc_output/processinfo/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"7853e29b-78ef-4ab4-b8fb-e1e176c0787b","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93245,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/pack-no-proprietary.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801610,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json","externalId":"test/pack-no-proprietary.js","files":[]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json b/node_modules/tar/.nyc_output/processinfo/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json
deleted file mode 100644
index f85d7b5..0000000
--- a/node_modules/tar/.nyc_output/processinfo/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"9d414044-b18d-4f6d-b2e0-531a89bf6f4f","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93250,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/zz-cleanup.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878803490,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json","externalId":"test/zz-cleanup.js","files":[]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json b/node_modules/tar/.nyc_output/processinfo/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json
deleted file mode 100644
index ad2a869..0000000
--- a/node_modules/tar/.nyc_output/processinfo/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93243,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/extract.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801464,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json","externalId":"test/extract.js","files":["/Users/isaacs/dev/js/tar/lib/pack.js","/Users/isaacs/dev/js/tar/lib/entry-writer.js","/Users/isaacs/dev/js/tar/lib/entry.js","/Users/isaacs/dev/js/tar/lib/global-header-writer.js","/Users/isaacs/dev/js/tar/lib/parse.js","/Users/isaacs/dev/js/tar/lib/buffer-entry.js","/Users/isaacs/dev/js/tar/lib/extended-header.js","/Users/isaacs/dev/js/tar/lib/extract.js"]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/ea0194cb-f599-402f-8876-84fb8251e8db.json b/node_modules/tar/.nyc_output/processinfo/ea0194cb-f599-402f-8876-84fb8251e8db.json
deleted file mode 100644
index 18f129b..0000000
--- a/node_modules/tar/.nyc_output/processinfo/ea0194cb-f599-402f-8876-84fb8251e8db.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"ea0194cb-f599-402f-8876-84fb8251e8db","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93239,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/00-setup-fixtures.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801284,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/ea0194cb-f599-402f-8876-84fb8251e8db.json","externalId":"test/00-setup-fixtures.js","files":[]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/eda6b7a3-5e15-440f-8619-e11a15a07f77.json b/node_modules/tar/.nyc_output/processinfo/eda6b7a3-5e15-440f-8619-e11a15a07f77.json
deleted file mode 100644
index bf261bf..0000000
--- a/node_modules/tar/.nyc_output/processinfo/eda6b7a3-5e15-440f-8619-e11a15a07f77.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"eda6b7a3-5e15-440f-8619-e11a15a07f77","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93242,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/extract-move.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801409,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/eda6b7a3-5e15-440f-8619-e11a15a07f77.json","externalId":"test/extract-move.js","files":["/Users/isaacs/dev/js/tar/lib/pack.js","/Users/isaacs/dev/js/tar/lib/entry-writer.js","/Users/isaacs/dev/js/tar/lib/entry.js","/Users/isaacs/dev/js/tar/lib/global-header-writer.js","/Users/isaacs/dev/js/tar/lib/parse.js","/Users/isaacs/dev/js/tar/lib/buffer-entry.js","/Users/isaacs/dev/js/tar/lib/extended-header.js","/Users/isaacs/dev/js/tar/lib/extract.js"]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/fb518800-240c-42ff-811f-79e92708d9db.json b/node_modules/tar/.nyc_output/processinfo/fb518800-240c-42ff-811f-79e92708d9db.json
deleted file mode 100644
index dcf5d5b..0000000
--- a/node_modules/tar/.nyc_output/processinfo/fb518800-240c-42ff-811f-79e92708d9db.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"fb518800-240c-42ff-811f-79e92708d9db","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93244,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/header.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878801608,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/fb518800-240c-42ff-811f-79e92708d9db.json","externalId":"test/header.js","files":["/Users/isaacs/dev/js/tar/lib/pack.js","/Users/isaacs/dev/js/tar/lib/entry-writer.js","/Users/isaacs/dev/js/tar/lib/entry.js","/Users/isaacs/dev/js/tar/lib/global-header-writer.js","/Users/isaacs/dev/js/tar/lib/parse.js","/Users/isaacs/dev/js/tar/lib/buffer-entry.js","/Users/isaacs/dev/js/tar/lib/extended-header.js","/Users/isaacs/dev/js/tar/lib/extract.js"]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/fdecfc06-a944-4897-9530-e08f62883fc1.json b/node_modules/tar/.nyc_output/processinfo/fdecfc06-a944-4897-9530-e08f62883fc1.json
deleted file mode 100644
index dad6627..0000000
--- a/node_modules/tar/.nyc_output/processinfo/fdecfc06-a944-4897-9530-e08f62883fc1.json
+++ /dev/null
@@ -1 +0,0 @@
-{"uuid":"fdecfc06-a944-4897-9530-e08f62883fc1","parent":"37d58de4-deea-4808-bb77-d27685bd1501","pid":93248,"argv":["/usr/local/bin/node","/Users/isaacs/dev/js/tar/test/parse.js"],"execArgv":["-r","/usr/local/lib/node_modules/tap/node_modules/esm/esm.js"],"cwd":"/Users/isaacs/dev/js/tar","time":1557878802931,"ppid":93238,"root":"e52f8603-1293-44df-8bfa-ed740bdd2b77","coverageFilename":"/Users/isaacs/dev/js/tar/.nyc_output/fdecfc06-a944-4897-9530-e08f62883fc1.json","externalId":"test/parse.js","files":["/Users/isaacs/dev/js/tar/lib/pack.js","/Users/isaacs/dev/js/tar/lib/entry-writer.js","/Users/isaacs/dev/js/tar/lib/entry.js","/Users/isaacs/dev/js/tar/lib/global-header-writer.js","/Users/isaacs/dev/js/tar/lib/parse.js","/Users/isaacs/dev/js/tar/lib/buffer-entry.js","/Users/isaacs/dev/js/tar/lib/extended-header.js","/Users/isaacs/dev/js/tar/lib/extract.js"]} \ No newline at end of file
diff --git a/node_modules/tar/.nyc_output/processinfo/index.json b/node_modules/tar/.nyc_output/processinfo/index.json
deleted file mode 100644
index 9550e8e..0000000
--- a/node_modules/tar/.nyc_output/processinfo/index.json
+++ /dev/null
@@ -1 +0,0 @@
-{"processes":{"0471d9cf-687f-4ae8-84a5-ce7468becd03":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/parse-discard.js","children":[]},"12bca2bc-6a2b-4f45-abc7-8483922a524d":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/dir-normalization.js","children":[]},"37d58de4-deea-4808-bb77-d27685bd1501":{"parent":null,"children":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5ad8066b-6b8c-4bc8-b807-c40bf80898b7","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","7853e29b-78ef-4ab4-b8fb-e1e176c0787b","9d414044-b18d-4f6d-b2e0-531a89bf6f4f","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","ea0194cb-f599-402f-8876-84fb8251e8db","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"]},"5ad8066b-6b8c-4bc8-b807-c40bf80898b7":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/pack.js","children":[]},"5cbf674c-7089-4b7d-b9de-2119be4dbb0b":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/error-on-broken.js","children":[]},"7853e29b-78ef-4ab4-b8fb-e1e176c0787b":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/pack-no-proprietary.js","children":[]},"9d414044-b18d-4f6d-b2e0-531a89bf6f4f":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/zz-cleanup.js","children":[]},"c3ffeb8c-8e79-4a2c-b678-e5a917fe721e":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/extract.js","children":[]},"ea0194cb-f599-402f-8876-84fb8251e8db":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/00-setup-fixtures.js","children":[]},"eda6b7a3-5e15-440f-8619-e11a15a07f77":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/extract-move.js","children":[]},"fb518800-240c-42ff-811f-79e92708d9db":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/header.js","children":[]},"fdecfc06-a944-4897-9530-e08f62883fc1":{"parent":"37d58de4-deea-4808-bb77-d27685bd1501","externalId":"test/parse.js","children":[]}},"files":{"/Users/isaacs/dev/js/tar/lib/pack.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"],"/Users/isaacs/dev/js/tar/lib/entry-writer.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"],"/Users/isaacs/dev/js/tar/lib/entry.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"],"/Users/isaacs/dev/js/tar/lib/global-header-writer.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"],"/Users/isaacs/dev/js/tar/lib/parse.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"],"/Users/isaacs/dev/js/tar/lib/buffer-entry.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"],"/Users/isaacs/dev/js/tar/lib/extended-header.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"],"/Users/isaacs/dev/js/tar/lib/extract.js":["0471d9cf-687f-4ae8-84a5-ce7468becd03","12bca2bc-6a2b-4f45-abc7-8483922a524d","5cbf674c-7089-4b7d-b9de-2119be4dbb0b","c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","eda6b7a3-5e15-440f-8619-e11a15a07f77","fb518800-240c-42ff-811f-79e92708d9db","fdecfc06-a944-4897-9530-e08f62883fc1"]},"externalIds":{"test/parse-discard.js":{"root":"0471d9cf-687f-4ae8-84a5-ce7468becd03","children":[]},"test/dir-normalization.js":{"root":"12bca2bc-6a2b-4f45-abc7-8483922a524d","children":[]},"test/pack.js":{"root":"5ad8066b-6b8c-4bc8-b807-c40bf80898b7","children":[]},"test/error-on-broken.js":{"root":"5cbf674c-7089-4b7d-b9de-2119be4dbb0b","children":[]},"test/pack-no-proprietary.js":{"root":"7853e29b-78ef-4ab4-b8fb-e1e176c0787b","children":[]},"test/zz-cleanup.js":{"root":"9d414044-b18d-4f6d-b2e0-531a89bf6f4f","children":[]},"test/extract.js":{"root":"c3ffeb8c-8e79-4a2c-b678-e5a917fe721e","children":[]},"test/00-setup-fixtures.js":{"root":"ea0194cb-f599-402f-8876-84fb8251e8db","children":[]},"test/extract-move.js":{"root":"eda6b7a3-5e15-440f-8619-e11a15a07f77","children":[]},"test/header.js":{"root":"fb518800-240c-42ff-811f-79e92708d9db","children":[]},"test/parse.js":{"root":"fdecfc06-a944-4897-9530-e08f62883fc1","children":[]}}} \ No newline at end of file
diff --git a/node_modules/tar/.travis.yml b/node_modules/tar/.travis.yml
deleted file mode 100644
index fca8ef0..0000000
--- a/node_modules/tar/.travis.yml
+++ /dev/null
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.10
- - 0.11
diff --git a/node_modules/tar/LICENSE b/node_modules/tar/LICENSE
deleted file mode 100644
index 019b7e4..0000000
--- a/node_modules/tar/LICENSE
+++ /dev/null
@@ -1,12 +0,0 @@
-The ISC License
-Copyright (c) Isaac Z. Schlueter and Contributors
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/tar/README.md b/node_modules/tar/README.md
deleted file mode 100644
index cfda2ac..0000000
--- a/node_modules/tar/README.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# node-tar
-
-Tar for Node.js.
-
-[![NPM](https://nodei.co/npm/tar.png)](https://nodei.co/npm/tar/)
-
-## API
-
-See `examples/` for usage examples.
-
-### var tar = require('tar')
-
-Returns an object with `.Pack`, `.Extract` and `.Parse` methods.
-
-### tar.Pack([properties])
-
-Returns a through stream. Use
-[fstream](https://npmjs.org/package/fstream) to write files into the
-pack stream and you will receive tar archive data from the pack
-stream.
-
-This only works with directories, it does not work with individual files.
-
-The optional `properties` object are used to set properties in the tar
-'Global Extended Header'. If the `fromBase` property is set to true,
-the tar will contain files relative to the path passed, and not with
-the path included.
-
-### tar.Extract([options])
-
-Returns a through stream. Write tar data to the stream and the files
-in the tarball will be extracted onto the filesystem.
-
-`options` can be:
-
-```js
-{
- path: '/path/to/extract/tar/into',
- strip: 0, // how many path segments to strip from the root when extracting
-}
-```
-
-`options` also get passed to the `fstream.Writer` instance that `tar`
-uses internally.
-
-### tar.Parse()
-
-Returns a writable stream. Write tar data to it and it will emit
-`entry` events for each entry parsed from the tarball. This is used by
-`tar.Extract`.
diff --git a/node_modules/tar/coverage/lcov-report/base.css b/node_modules/tar/coverage/lcov-report/base.css
deleted file mode 100644
index 417c7ad..0000000
--- a/node_modules/tar/coverage/lcov-report/base.css
+++ /dev/null
@@ -1,212 +0,0 @@
-body, html {
- margin:0; padding: 0;
- height: 100%;
-}
-body {
- font-family: Helvetica Neue, Helvetica, Arial;
- font-size: 14px;
- color:#333;
-}
-.small { font-size: 12px; }
-*, *:after, *:before {
- -webkit-box-sizing:border-box;
- -moz-box-sizing:border-box;
- box-sizing:border-box;
- }
-h1 { font-size: 20px; margin: 0;}
-h2 { font-size: 14px; }
-pre {
- font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
- margin: 0;
- padding: 0;
- -moz-tab-size: 2;
- -o-tab-size: 2;
- tab-size: 2;
-}
-a { color:#0074D9; text-decoration:none; }
-a:hover { text-decoration:underline; }
-.strong { font-weight: bold; }
-.space-top1 { padding: 10px 0 0 0; }
-.pad2y { padding: 20px 0; }
-.pad1y { padding: 10px 0; }
-.pad2x { padding: 0 20px; }
-.pad2 { padding: 20px; }
-.pad1 { padding: 10px; }
-.space-left2 { padding-left:55px; }
-.space-right2 { padding-right:20px; }
-.center { text-align:center; }
-.clearfix { display:block; }
-.clearfix:after {
- content:'';
- display:block;
- height:0;
- clear:both;
- visibility:hidden;
- }
-.fl { float: left; }
-@media only screen and (max-width:640px) {
- .col3 { width:100%; max-width:100%; }
- .hide-mobile { display:none!important; }
-}
-
-.quiet {
- color: #7f7f7f;
- color: rgba(0,0,0,0.5);
-}
-.quiet a { opacity: 0.7; }
-
-.fraction {
- font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
- font-size: 10px;
- color: #555;
- background: #E8E8E8;
- padding: 4px 5px;
- border-radius: 3px;
- vertical-align: middle;
-}
-
-div.path a:link, div.path a:visited { color: #333; }
-table.coverage {
- border-collapse: collapse;
- margin: 10px 0 0 0;
- padding: 0;
-}
-
-table.coverage td {
- margin: 0;
- padding: 0;
- vertical-align: top;
-}
-table.coverage td.line-count {
- text-align: right;
- padding: 0 5px 0 20px;
-}
-table.coverage td.line-coverage {
- text-align: right;
- padding-right: 10px;
- min-width:20px;
-}
-
-table.coverage td span.cline-any {
- display: inline-block;
- padding: 0 5px;
- width: 100%;
-}
-.missing-if-branch {
- display: inline-block;
- margin-right: 5px;
- border-radius: 3px;
- position: relative;
- padding: 0 4px;
- background: #333;
- color: yellow;
-}
-
-.skip-if-branch {
- display: none;
- margin-right: 10px;
- position: relative;
- padding: 0 4px;
- background: #ccc;
- color: white;
-}
-.missing-if-branch .typ, .skip-if-branch .typ {
- color: inherit !important;
-}
-.coverage-summary {
- border-collapse: collapse;
- width: 100%;
-}
-.coverage-summary tr { border-bottom: 1px solid #bbb; }
-.keyline-all { border: 1px solid #ddd; }
-.coverage-summary td, .coverage-summary th { padding: 10px; }
-.coverage-summary tbody { border: 1px solid #bbb; }
-.coverage-summary td { border-right: 1px solid #bbb; }
-.coverage-summary td:last-child { border-right: none; }
-.coverage-summary th {
- text-align: left;
- font-weight: normal;
- white-space: nowrap;
-}
-.coverage-summary th.file { border-right: none !important; }
-.coverage-summary th.pct { }
-.coverage-summary th.pic,
-.coverage-summary th.abs,
-.coverage-summary td.pct,
-.coverage-summary td.abs { text-align: right; }
-.coverage-summary td.file { white-space: nowrap; }
-.coverage-summary td.pic { min-width: 120px !important; }
-.coverage-summary tfoot td { }
-
-.coverage-summary .sorter {
- height: 10px;
- width: 7px;
- display: inline-block;
- margin-left: 0.5em;
- background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
-}
-.coverage-summary .sorted .sorter {
- background-position: 0 -20px;
-}
-.coverage-summary .sorted-desc .sorter {
- background-position: 0 -10px;
-}
-.status-line { height: 10px; }
-/* dark red */
-.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
-.low .chart { border:1px solid #C21F39 }
-/* medium red */
-.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
-/* light red */
-.low, .cline-no { background:#FCE1E5 }
-/* light green */
-.high, .cline-yes { background:rgb(230,245,208) }
-/* medium green */
-.cstat-yes { background:rgb(161,215,106) }
-/* dark green */
-.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
-.high .chart { border:1px solid rgb(77,146,33) }
-
-
-.medium .chart { border:1px solid #666; }
-.medium .cover-fill { background: #666; }
-
-.cbranch-no { background: yellow !important; color: #111; }
-
-.cstat-skip { background: #ddd; color: #111; }
-.fstat-skip { background: #ddd; color: #111 !important; }
-.cbranch-skip { background: #ddd !important; color: #111; }
-
-span.cline-neutral { background: #eaeaea; }
-.medium { background: #eaeaea; }
-
-.cover-fill, .cover-empty {
- display:inline-block;
- height: 12px;
-}
-.chart {
- line-height: 0;
-}
-.cover-empty {
- background: white;
-}
-.cover-full {
- border-right: none !important;
-}
-pre.prettyprint {
- border: none !important;
- padding: 0 !important;
- margin: 0 !important;
-}
-.com { color: #999 !important; }
-.ignore-none { color: #999; font-weight: normal; }
-
-.wrapper {
- min-height: 100%;
- height: auto !important;
- height: 100%;
- margin: 0 auto -48px;
-}
-.footer, .push {
- height: 48px;
-}
diff --git a/node_modules/tar/coverage/lcov-report/index.html b/node_modules/tar/coverage/lcov-report/index.html
deleted file mode 100644
index 2722480..0000000
--- a/node_modules/tar/coverage/lcov-report/index.html
+++ /dev/null
@@ -1,106 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for All files</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="prettify.css" />
- <link rel="stylesheet" href="base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- All files
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.94% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>1795/1796</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.67% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>1224/1228</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>271/271</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.94% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>1748/1749</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<div class="pad1">
-<table class="coverage-summary">
-<thead>
-<tr>
- <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
- <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
- <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
- <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
- <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
- <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
- <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
-</tr>
-</thead>
-<tbody><tr>
- <td class="file high" data-value="tar"><a href="tar/index.html">tar</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="13" class="abs high">13/13</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="0" class="abs high">0/0</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="0" class="abs high">0/0</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="13" class="abs high">13/13</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="tar/lib"><a href="tar/lib/index.html">tar/lib</a></td>
- <td data-value="99.94" class="pic high"><div class="chart"><div class="cover-fill" style="width: 99%;"></div><div class="cover-empty" style="width:1%;"></div></div></td>
- <td data-value="99.94" class="pct high">99.94%</td>
- <td data-value="1783" class="abs high">1782/1783</td>
- <td data-value="99.67" class="pct high">99.67%</td>
- <td data-value="1228" class="abs high">1224/1228</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="271" class="abs high">271/271</td>
- <td data-value="99.94" class="pct high">99.94%</td>
- <td data-value="1736" class="abs high">1735/1736</td>
- </tr>
-
-</tbody>
-</table>
-</div><div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/prettify.css b/node_modules/tar/coverage/lcov-report/prettify.css
deleted file mode 100644
index b317a7c..0000000
--- a/node_modules/tar/coverage/lcov-report/prettify.css
+++ /dev/null
@@ -1 +0,0 @@
-.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
diff --git a/node_modules/tar/coverage/lcov-report/prettify.js b/node_modules/tar/coverage/lcov-report/prettify.js
deleted file mode 100644
index ef51e03..0000000
--- a/node_modules/tar/coverage/lcov-report/prettify.js
+++ /dev/null
@@ -1 +0,0 @@
-window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.ignoreCase){ac=true}else{if(/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){S=true;ac=false;break}}}var Y={b:8,t:9,n:10,v:11,f:12,r:13};function ab(ah){var ag=ah.charCodeAt(0);if(ag!==92){return ag}var af=ah.charAt(1);ag=Y[af];if(ag){return ag}else{if("0"<=af&&af<="7"){return parseInt(ah.substring(1),8)}else{if(af==="u"||af==="x"){return parseInt(ah.substring(2),16)}else{return ah.charCodeAt(1)}}}}function T(af){if(af<32){return(af<16?"\\x0":"\\x")+af.toString(16)}var ag=String.fromCharCode(af);if(ag==="\\"||ag==="-"||ag==="["||ag==="]"){ag="\\"+ag}return ag}function X(am){var aq=am.substring(1,am.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));var ak=[];var af=[];var ao=aq[0]==="^";for(var ar=ao?1:0,aj=aq.length;ar<aj;++ar){var ah=aq[ar];if(/\\[bdsw]/i.test(ah)){ak.push(ah)}else{var ag=ab(ah);var al;if(ar+2<aj&&"-"===aq[ar+1]){al=ab(aq[ar+2]);ar+=2}else{al=ag}af.push([ag,al]);if(!(al<65||ag>122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;ar<af.length;++ar){var at=af[ar];if(at[0]<=ap[1]+1){ap[1]=Math.max(ap[1],at[1])}else{ai.push(ap=at)}}var an=["["];if(ao){an.push("^")}an.push.apply(an,ak);for(var ar=0;ar<ai.length;++ar){var at=ai[ar];an.push(T(at[0]));if(at[1]>at[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){an[af]=-1}}}}for(var ak=1;ak<an.length;++ak){if(-1===an[ak]){an[ak]=++ad}}for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am;if(an[am]===undefined){aj[ak]="(?:"}}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){aj[ak]="\\"+an[am]}}}}for(var ak=0,am=0;ak<ah;++ak){if("^"===aj[ak]&&"^"!==aj[ak+1]){aj[ak]=""}}if(al.ignoreCase&&S){for(var ak=0;ak<ah;++ak){var ag=aj[ak];var ai=ag.charAt(0);if(ag.length>=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.global||ae.multiline){throw new Error(""+ae)}aa.push("(?:"+W(ae)+")")}return new RegExp(aa.join("|"),ac?"gi":"g")}function a(V){var U=/(?:^|\s)nocode(?:\s|$)/;var X=[];var T=0;var Z=[];var W=0;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=document.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Y=S&&"pre"===S.substring(0,3);function aa(ab){switch(ab.nodeType){case 1:if(U.test(ab.className)){return}for(var ae=ab.firstChild;ae;ae=ae.nextSibling){aa(ae)}var ad=ab.nodeName;if("BR"===ad||"LI"===ad){X[W]="\n";Z[W<<1]=T++;Z[(W++<<1)|1]=ab}break;case 3:case 4:var ac=ab.nodeValue;if(ac.length){if(!Y){ac=ac.replace(/[ \t\r\n]+/g," ")}else{ac=ac.replace(/\r\n?/g,"\n")}X[W]=ac;Z[W<<1]=T;T+=ac.length;Z[(W++<<1)|1]=ab}break}}aa(V);return{sourceCode:X.join("").replace(/\n$/,""),spans:Z}}function B(S,U,W,T){if(!U){return}var V={sourceCode:U,basePos:S};W(V);T.push.apply(T,V.decorations)}var v=/\S/;function o(S){var V=undefined;for(var U=S.firstChild;U;U=U.nextSibling){var T=U.nodeType;V=(T===1)?(V?S:U):(T===3)?(v.test(U.nodeValue)?S:V):V}return V===S?undefined:V}function g(U,T){var S={};var V;(function(){var ad=U.concat(T);var ah=[];var ag={};for(var ab=0,Z=ad.length;ab<Z;++ab){var Y=ad[ab];var ac=Y[3];if(ac){for(var ae=ac.length;--ae>=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae<aq;++ae){var ag=an[ae];var ap=aj[ag];var ai=void 0;var am;if(typeof ap==="string"){am=false}else{var aa=S[ag.charAt(0)];if(aa){ai=ag.match(aa[1]);ap=aa[0]}else{for(var ao=0;ao<X;++ao){aa=T[ao];ai=ag.match(aa[1]);if(ai){ap=aa[0];break}}if(!ai){ap=F}}am=ap.length>=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y<W.length;++Y){ae(W[Y])}if(ag===(ag|0)){W[0].setAttribute("value",ag)}var aa=ac.createElement("OL");aa.className="linenums";var X=Math.max(0,((ag-1))|0)||0;for(var Y=0,T=W.length;Y<T;++Y){af=W[Y];af.className="L"+((Y+X)%10);if(!af.firstChild){af.appendChild(ac.createTextNode("\xA0"))}aa.appendChild(af)}V.appendChild(aa)}function D(ac){var aj=/\bMSIE\b/.test(navigator.userAgent);var am=/\n/g;var al=ac.sourceCode;var an=al.length;var V=0;var aa=ac.spans;var T=aa.length;var ah=0;var X=ac.decorations;var Y=X.length;var Z=0;X[Y]=an;var ar,aq;for(aq=ar=0;aq<Y;){if(X[aq]!==X[aq+2]){X[ar++]=X[aq++];X[ar++]=X[aq++]}else{aq+=2}}Y=ar;for(aq=ar=0;aq<Y;){var at=X[aq];var ab=X[aq+1];var W=aq+2;while(W+2<=Y&&X[W+1]===ab){W+=2}X[ar++]=at;X[ar++]=ab;aq=W}Y=X.length=ar;var ae=null;while(ah<T){var af=aa[ah];var S=aa[ah+2]||an;var ag=X[Z];var ap=X[Z+2]||an;var W=Math.min(S,ap);var ak=aa[ah+1];var U;if(ak.nodeType!==1&&(U=al.substring(V,W))){if(aj){U=U.replace(am,"\r")}ak.nodeValue=U;var ai=ak.ownerDocument;var ao=ai.createElement("SPAN");ao.className=X[Z+1];var ad=ak.parentNode;ad.replaceChild(ao,ak);ao.appendChild(ak);if(V<S){aa[ah+1]=ak=ai.createTextNode(al.substring(W,S));ad.insertBefore(ak,ao.nextSibling)}}V=W;if(V>=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*</.test(S)?"default-markup":"default-code"}return t[T]}c(K,["default-code"]);c(g([],[[F,/^[^<?]+/],[E,/^<!\w[^>]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa<ac.length;++aa){for(var Z=0,V=ac[aa].length;Z<V;++Z){T.push(ac[aa][Z])}}ac=null;var W=Date;if(!W.now){W={now:function(){return +(new Date)}}}var X=0;var S;var ab=/\blang(?:uage)?-([\w.]+)(?!\S)/;var ae=/\bprettyprint\b/;function U(){var ag=(window.PR_SHOULD_USE_CONTINUATION?W.now()+250:Infinity);for(;X<T.length&&W.now()<ag;X++){var aj=T[X];var ai=aj.className;if(ai.indexOf("prettyprint")>=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X<T.length){setTimeout(U,250)}else{if(ad){ad()}}}U()}window.prettyPrintOne=y;window.prettyPrint=b;window.PR={createSimpleLexer:g,registerLangHandler:c,sourceDecorator:i,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:n,PR_COMMENT:j,PR_DECLARATION:E,PR_KEYWORD:z,PR_LITERAL:G,PR_NOCODE:N,PR_PLAIN:F,PR_PUNCTUATION:L,PR_SOURCE:J,PR_STRING:C,PR_TAG:m,PR_TYPE:O}})();PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_DECLARATION,/^<!\w[^>]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:<!--|-->)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]);
diff --git a/node_modules/tar/coverage/lcov-report/sort-arrow-sprite.png b/node_modules/tar/coverage/lcov-report/sort-arrow-sprite.png
deleted file mode 100644
index 03f704a..0000000
--- a/node_modules/tar/coverage/lcov-report/sort-arrow-sprite.png
+++ /dev/null
Binary files differ
diff --git a/node_modules/tar/coverage/lcov-report/sorter.js b/node_modules/tar/coverage/lcov-report/sorter.js
deleted file mode 100644
index 6c5034e..0000000
--- a/node_modules/tar/coverage/lcov-report/sorter.js
+++ /dev/null
@@ -1,158 +0,0 @@
-var addSorting = (function () {
- "use strict";
- var cols,
- currentSort = {
- index: 0,
- desc: false
- };
-
- // returns the summary table element
- function getTable() { return document.querySelector('.coverage-summary'); }
- // returns the thead element of the summary table
- function getTableHeader() { return getTable().querySelector('thead tr'); }
- // returns the tbody element of the summary table
- function getTableBody() { return getTable().querySelector('tbody'); }
- // returns the th element for nth column
- function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
-
- // loads all columns
- function loadColumns() {
- var colNodes = getTableHeader().querySelectorAll('th'),
- colNode,
- cols = [],
- col,
- i;
-
- for (i = 0; i < colNodes.length; i += 1) {
- colNode = colNodes[i];
- col = {
- key: colNode.getAttribute('data-col'),
- sortable: !colNode.getAttribute('data-nosort'),
- type: colNode.getAttribute('data-type') || 'string'
- };
- cols.push(col);
- if (col.sortable) {
- col.defaultDescSort = col.type === 'number';
- colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
- }
- }
- return cols;
- }
- // attaches a data attribute to every tr element with an object
- // of data values keyed by column name
- function loadRowData(tableRow) {
- var tableCols = tableRow.querySelectorAll('td'),
- colNode,
- col,
- data = {},
- i,
- val;
- for (i = 0; i < tableCols.length; i += 1) {
- colNode = tableCols[i];
- col = cols[i];
- val = colNode.getAttribute('data-value');
- if (col.type === 'number') {
- val = Number(val);
- }
- data[col.key] = val;
- }
- return data;
- }
- // loads all row data
- function loadData() {
- var rows = getTableBody().querySelectorAll('tr'),
- i;
-
- for (i = 0; i < rows.length; i += 1) {
- rows[i].data = loadRowData(rows[i]);
- }
- }
- // sorts the table using the data for the ith column
- function sortByIndex(index, desc) {
- var key = cols[index].key,
- sorter = function (a, b) {
- a = a.data[key];
- b = b.data[key];
- return a < b ? -1 : a > b ? 1 : 0;
- },
- finalSorter = sorter,
- tableBody = document.querySelector('.coverage-summary tbody'),
- rowNodes = tableBody.querySelectorAll('tr'),
- rows = [],
- i;
-
- if (desc) {
- finalSorter = function (a, b) {
- return -1 * sorter(a, b);
- };
- }
-
- for (i = 0; i < rowNodes.length; i += 1) {
- rows.push(rowNodes[i]);
- tableBody.removeChild(rowNodes[i]);
- }
-
- rows.sort(finalSorter);
-
- for (i = 0; i < rows.length; i += 1) {
- tableBody.appendChild(rows[i]);
- }
- }
- // removes sort indicators for current column being sorted
- function removeSortIndicators() {
- var col = getNthColumn(currentSort.index),
- cls = col.className;
-
- cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
- col.className = cls;
- }
- // adds sort indicators for current column being sorted
- function addSortIndicators() {
- getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
- }
- // adds event listeners for all sorter widgets
- function enableUI() {
- var i,
- el,
- ithSorter = function ithSorter(i) {
- var col = cols[i];
-
- return function () {
- var desc = col.defaultDescSort;
-
- if (currentSort.index === i) {
- desc = !currentSort.desc;
- }
- sortByIndex(i, desc);
- removeSortIndicators();
- currentSort.index = i;
- currentSort.desc = desc;
- addSortIndicators();
- };
- };
- for (i =0 ; i < cols.length; i += 1) {
- if (cols[i].sortable) {
- // add the click event handler on the th so users
- // dont have to click on those tiny arrows
- el = getNthColumn(i).querySelector('.sorter').parentElement;
- if (el.addEventListener) {
- el.addEventListener('click', ithSorter(i));
- } else {
- el.attachEvent('onclick', ithSorter(i));
- }
- }
- }
- }
- // adds sorting functionality to the UI
- return function () {
- if (!getTable()) {
- return;
- }
- cols = loadColumns();
- loadData(cols);
- addSortIndicators();
- enableUI();
- };
-})();
-
-window.addEventListener('load', addSorting);
diff --git a/node_modules/tar/coverage/lcov-report/tar/index.html b/node_modules/tar/coverage/lcov-report/tar/index.html
deleted file mode 100644
index 9c917bd..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/index.html
+++ /dev/null
@@ -1,93 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../prettify.css" />
- <link rel="stylesheet" href="../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../index.html">All files</a> tar
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>13/13</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>0/0</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>0/0</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>13/13</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<div class="pad1">
-<table class="coverage-summary">
-<thead>
-<tr>
- <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
- <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
- <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
- <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
- <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
- <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
- <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
-</tr>
-</thead>
-<tbody><tr>
- <td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="13" class="abs high">13/13</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="0" class="abs high">0/0</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="0" class="abs high">0/0</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="13" class="abs high">13/13</td>
- </tr>
-
-</tbody>
-</table>
-</div><div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/index.js.html b/node_modules/tar/coverage/lcov-report/tar/index.js.html
deleted file mode 100644
index f04c992..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/index.js.html
+++ /dev/null
@@ -1,119 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/index.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../prettify.css" />
- <link rel="stylesheet" href="../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../index.html">All files</a> / <a href="index.html">tar</a> index.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>13/13</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>0/0</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>0/0</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>13/13</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// high-level commands
-exports.c = exports.create = require('./lib/create.js')
-exports.r = exports.replace = require('./lib/replace.js')
-exports.t = exports.list = require('./lib/list.js')
-exports.u = exports.update = require('./lib/update.js')
-exports.x = exports.extract = require('./lib/extract.js')
-&nbsp;
-// classes
-exports.Pack = require('./lib/pack.js')
-exports.Unpack = require('./lib/unpack.js')
-exports.Parse = require('./lib/parse.js')
-exports.ReadEntry = require('./lib/read-entry.js')
-exports.WriteEntry = require('./lib/write-entry.js')
-exports.Header = require('./lib/header.js')
-exports.Pax = require('./lib/pax.js')
-exports.types = require('./lib/types.js')
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/create.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/create.js.html
deleted file mode 100644
index 2f01c7e..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/create.js.html
+++ /dev/null
@@ -1,380 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/create.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> create.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>59/59</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>35/35</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>12/12</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>59/59</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// tar -c
-const hlo = require('./high-level-opt.js')
-&nbsp;
-const Pack = require('./pack.js')
-const fs = require('fs')
-const fsm = require('fs-minipass')
-const t = require('./list.js')
-const path = require('path')
-&nbsp;
-const c = module.exports = (opt_, files, cb) =&gt; {
- if (typeof files === 'function')
- cb = files
-&nbsp;
- if (Array.isArray(opt_))
- files = opt_, opt_ = {}
-&nbsp;
- if (!files || !Array.isArray(files) || !files.length)
- throw new TypeError('no files or directories specified')
-&nbsp;
- files = Array.from(files)
-&nbsp;
- const opt = hlo(opt_)
-&nbsp;
- if (opt.sync &amp;&amp; typeof cb === 'function')
- throw new TypeError('callback not supported for sync tar functions')
-&nbsp;
- if (!opt.file &amp;&amp; typeof cb === 'function')
- throw new TypeError('callback only supported with file option')
-&nbsp;
- return opt.file &amp;&amp; opt.sync ? createFileSync(opt, files)
- : opt.file ? createFile(opt, files, cb)
- : opt.sync ? createSync(opt, files)
- : create(opt, files)
-}
-&nbsp;
-const createFileSync = (opt, files) =&gt; {
- const p = new Pack.Sync(opt)
- const stream = new fsm.WriteStreamSync(opt.file, {
- mode: opt.mode || 0o666
- })
- p.pipe(stream)
- addFilesSync(p, files)
-}
-&nbsp;
-const createFile = (opt, files, cb) =&gt; {
- const p = new Pack(opt)
- const stream = new fsm.WriteStream(opt.file, {
- mode: opt.mode || 0o666
- })
- p.pipe(stream)
-&nbsp;
- const promise = new Promise((res, rej) =&gt; {
- stream.on('error', rej)
- stream.on('close', res)
- p.on('error', rej)
- })
-&nbsp;
- addFilesAsync(p, files)
-&nbsp;
- return cb ? promise.then(cb, cb) : promise
-}
-&nbsp;
-const addFilesSync = (p, files) =&gt; {
- files.forEach(file =&gt; {
- if (file.charAt(0) === '@')
- t({
- file: path.resolve(p.cwd, file.substr(1)),
- sync: true,
- noResume: true,
- onentry: entry =&gt; p.add(entry)
- })
- else
- p.add(file)
- })
- p.end()
-}
-&nbsp;
-const addFilesAsync = (p, files) =&gt; {
- while (files.length) {
- const file = files.shift()
- if (file.charAt(0) === '@')
- return t({
- file: path.resolve(p.cwd, file.substr(1)),
- noResume: true,
- onentry: entry =&gt; p.add(entry)
- }).then(_ =&gt; addFilesAsync(p, files))
- else
- p.add(file)
- }
- p.end()
-}
-&nbsp;
-const createSync = (opt, files) =&gt; {
- const p = new Pack.Sync(opt)
- addFilesSync(p, files)
- return p
-}
-&nbsp;
-const create = (opt, files) =&gt; {
- const p = new Pack(opt)
- addFilesAsync(p, files)
- return p
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/extract.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/extract.js.html
deleted file mode 100644
index 96245c7..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/extract.js.html
+++ /dev/null
@@ -1,401 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/extract.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> extract.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>61/61</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>45/45</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>12/12</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>60/60</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">19x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// tar -x
-const hlo = require('./high-level-opt.js')
-const Unpack = require('./unpack.js')
-const fs = require('fs')
-const fsm = require('fs-minipass')
-const path = require('path')
-&nbsp;
-const x = module.exports = (opt_, files, cb) =&gt; {
- if (typeof opt_ === 'function')
- cb = opt_, files = null, opt_ = {}
- else if (Array.isArray(opt_))
- files = opt_, opt_ = {}
-&nbsp;
- if (typeof files === 'function')
- cb = files, files = null
-&nbsp;
- if (!files)
- files = []
- else
- files = Array.from(files)
-&nbsp;
- const opt = hlo(opt_)
-&nbsp;
- if (opt.sync &amp;&amp; typeof cb === 'function')
- throw new TypeError('callback not supported for sync tar functions')
-&nbsp;
- if (!opt.file &amp;&amp; typeof cb === 'function')
- throw new TypeError('callback only supported with file option')
-&nbsp;
- if (files.length)
- filesFilter(opt, files)
-&nbsp;
- return opt.file &amp;&amp; opt.sync ? extractFileSync(opt)
- : opt.file ? extractFile(opt, cb)
- : opt.sync ? extractSync(opt)
- : extract(opt)
-}
-&nbsp;
-// construct a filter that limits the file entries listed
-// include child entries if a dir is included
-const filesFilter = (opt, files) =&gt; {
- const map = new Map(files.map(f =&gt; [f.replace(/\/+$/, ''), true]))
- const filter = opt.filter
-&nbsp;
- const mapHas = (file, r) =&gt; {
- const root = r || path.parse(file).root || '.'
- const ret = file === root ? false
- : map.has(file) ? map.get(file)
- : mapHas(path.dirname(file), root)
-&nbsp;
- map.set(file, ret)
- return ret
- }
-&nbsp;
- opt.filter = filter
- ? (file, entry) =&gt; filter(file, entry) &amp;&amp; mapHas(file.replace(/\/+$/, ''))
- : file =&gt; mapHas(file.replace(/\/+$/, ''))
-}
-&nbsp;
-const extractFileSync = opt =&gt; {
- const u = new Unpack.Sync(opt)
-&nbsp;
- const file = opt.file
- let threw = true
- let fd
- const stat = fs.statSync(file)
- // This trades a zero-byte read() syscall for a stat
- // However, it will usually result in less memory allocation
- const readSize = opt.maxReadSize || 16*1024*1024
- const stream = new fsm.ReadStreamSync(file, {
- readSize: readSize,
- size: stat.size
- })
- stream.pipe(u)
-}
-&nbsp;
-const extractFile = (opt, cb) =&gt; {
- const u = new Unpack(opt)
- const readSize = opt.maxReadSize || 16*1024*1024
-&nbsp;
- const file = opt.file
- const p = new Promise((resolve, reject) =&gt; {
- u.on('error', reject)
- u.on('close', resolve)
-&nbsp;
- // This trades a zero-byte read() syscall for a stat
- // However, it will usually result in less memory allocation
- fs.stat(file, (er, stat) =&gt; {
- if (er)
- reject(er)
- else {
- const stream = new fsm.ReadStream(file, {
- readSize: readSize,
- size: stat.size
- })
- stream.on('error', reject)
- stream.pipe(u)
- }
- })
- })
- return cb ? p.then(cb, cb) : p
-}
-&nbsp;
-const extractSync = opt =&gt; {
- return new Unpack.Sync(opt)
-}
-&nbsp;
-const extract = opt =&gt; {
- return new Unpack(opt)
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/header.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/header.js.html
deleted file mode 100644
index 69770d0..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/header.js.html
+++ /dev/null
@@ -1,881 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/header.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> header.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>161/161</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>120/120</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>20/20</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>159/159</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
-173
-174
-175
-176
-177
-178
-179
-180
-181
-182
-183
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
-211
-212
-213
-214
-215
-216
-217
-218
-219
-220
-221
-222
-223
-224
-225
-226
-227
-228
-229
-230
-231
-232
-233
-234
-235
-236
-237
-238
-239
-240
-241
-242
-243
-244
-245
-246
-247
-248
-249
-250
-251
-252
-253
-254
-255
-256
-257
-258
-259
-260
-261
-262
-263
-264
-265
-266
-267
-268
-269
-270
-271
-272
-273</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13121x</span>
-<span class="cline-any cline-yes">6393x</span>
-<span class="cline-any cline-yes">6728x</span>
-<span class="cline-any cline-yes">6726x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6393x</span>
-<span class="cline-any cline-yes">2795x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6393x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">1990x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">1594x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">4275x</span>
-<span class="cline-any cline-yes">4275x</span>
-<span class="cline-any cline-yes">4275x</span>
-<span class="cline-any cline-yes">4275x</span>
-<span class="cline-any cline-yes">4275x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4273x</span>
-<span class="cline-any cline-yes">4273x</span>
-<span class="cline-any cline-yes">295x</span>
-<span class="cline-any cline-yes">4273x</span>
-<span class="cline-any cline-yes">4273x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">946016x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">2275552x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">6392x</span>
-<span class="cline-any cline-yes">1860x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6719x</span>
-<span class="cline-any cline-yes">6600x</span>
-<span class="cline-any cline-yes">6600x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6719x</span>
-<span class="cline-any cline-yes">6717x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6719x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6716x</span>
-<span class="cline-any cline-yes">6716x</span>
-<span class="cline-any cline-yes">6716x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">994264x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">2391608x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6728x</span>
-<span class="cline-any cline-yes">73451x</span>
-<span class="cline-any cline-yes">66740x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">8178x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6723x</span>
-<span class="cline-any cline-yes">6719x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-yes">6683x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">35x</span>
-<span class="cline-any cline-yes">35x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">35x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">49x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">28x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">35x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6718x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">32001x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">14938x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14938x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">55448x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">55411x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">55411x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">66910x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">66615x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">66615x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">66615x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">20150x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">40308x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-// parse a 512-byte header block to a data object, or vice-versa
-// encode returns `true` if a pax extended header is needed, because
-// the data could not be faithfully encoded in a simple header.
-// (Also, check header.needPax to see if it needs a pax header.)
-&nbsp;
-const types = require('./types.js')
-const pathModule = require('path')
-const large = require('./large-numbers.js')
-&nbsp;
-const TYPE = Symbol('type')
-&nbsp;
-class Header {
- constructor (data, off) {
- this.cksumValid = false
- this.needPax = false
- this.nullBlock = false
-&nbsp;
- this.block = null
- this.path = null
- this.mode = null
- this.uid = null
- this.gid = null
- this.size = null
- this.mtime = null
- this.cksum = null
- this[TYPE] = '0'
- this.linkpath = null
- this.uname = null
- this.gname = null
- this.devmaj = 0
- this.devmin = 0
- this.atime = null
- this.ctime = null
-&nbsp;
- if (Buffer.isBuffer(data)) {
- this.decode(data, off || 0)
- } else if (data)
- this.set(data)
- }
-&nbsp;
- decode (buf, off) {
- if (!off)
- off = 0
-&nbsp;
- if (!buf || !(buf.length &gt;= off + 512))
- throw new Error('need 512 bytes for header')
-&nbsp;
- this.path = decString(buf, off, 100)
- this.mode = decNumber(buf, off + 100, 8)
- this.uid = decNumber(buf, off + 108, 8)
- this.gid = decNumber(buf, off + 116, 8)
- this.size = decNumber(buf, off + 124, 12)
- this.mtime = decDate(buf, off + 136, 12)
- this.cksum = decNumber(buf, off + 148, 12)
-&nbsp;
- // old tar versions marked dirs as a file with a trailing /
- this[TYPE] = decString(buf, off + 156, 1)
- if (this[TYPE] === '')
- this[TYPE] = '0'
- if (this[TYPE] === '0' &amp;&amp; this.path.substr(-1) === '/')
- this[TYPE] = '5'
-&nbsp;
- // tar implementations sometimes incorrectly put the stat(dir).size
- // as the size in the tarball, even though Directory entries are
- // not able to have any body at all. In the very rare chance that
- // it actually DOES have a body, we weren't going to do anything with
- // it anyway, and it'll just be a warning about an invalid header.
- if (this[TYPE] === '5')
- this.size = 0
-&nbsp;
- this.linkpath = decString(buf, off + 157, 100)
- if (buf.slice(off + 257, off + 265).toString() === 'ustar\u000000') {
- this.uname = decString(buf, off + 265, 32)
- this.gname = decString(buf, off + 297, 32)
- this.devmaj = decNumber(buf, off + 329, 8)
- this.devmin = decNumber(buf, off + 337, 8)
- if (buf[off + 475] !== 0) {
- // definitely a prefix, definitely &gt;130 chars.
- const prefix = decString(buf, off + 345, 155)
- this.path = prefix + '/' + this.path
- } else {
- const prefix = decString(buf, off + 345, 130)
- if (prefix)
- this.path = prefix + '/' + this.path
- this.atime = decDate(buf, off + 476, 12)
- this.ctime = decDate(buf, off + 488, 12)
- }
- }
-&nbsp;
- let sum = 8 * 0x20
- for (let i = off; i &lt; off + 148; i++) {
- sum += buf[i]
- }
- for (let i = off + 156; i &lt; off + 512; i++) {
- sum += buf[i]
- }
- this.cksumValid = sum === this.cksum
- if (this.cksum === null &amp;&amp; sum === 8 * 0x20)
- this.nullBlock = true
- }
-&nbsp;
- encode (buf, off) {
- if (!buf) {
- buf = this.block = Buffer.alloc(512)
- off = 0
- }
-&nbsp;
- if (!off)
- off = 0
-&nbsp;
- if (!(buf.length &gt;= off + 512))
- throw new Error('need 512 bytes for header')
-&nbsp;
- const prefixSize = this.ctime || this.atime ? 130 : 155
- const split = splitPrefix(this.path || '', prefixSize)
- const path = split[0]
- const prefix = split[1]
- this.needPax = split[2]
-&nbsp;
- this.needPax = encString(buf, off, 100, path) || this.needPax
- this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax
- this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax
- this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax
- this.needPax = encNumber(buf, off + 124, 12, this.size) || this.needPax
- this.needPax = encDate(buf, off + 136, 12, this.mtime) || this.needPax
- buf[off + 156] = this[TYPE].charCodeAt(0)
- this.needPax = encString(buf, off + 157, 100, this.linkpath) || this.needPax
- buf.write('ustar\u000000', off + 257, 8)
- this.needPax = encString(buf, off + 265, 32, this.uname) || this.needPax
- this.needPax = encString(buf, off + 297, 32, this.gname) || this.needPax
- this.needPax = encNumber(buf, off + 329, 8, this.devmaj) || this.needPax
- this.needPax = encNumber(buf, off + 337, 8, this.devmin) || this.needPax
- this.needPax = encString(buf, off + 345, prefixSize, prefix) || this.needPax
- if (buf[off + 475] !== 0)
- this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax
- else {
- this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax
- this.needPax = encDate(buf, off + 476, 12, this.atime) || this.needPax
- this.needPax = encDate(buf, off + 488, 12, this.ctime) || this.needPax
- }
-&nbsp;
- let sum = 8 * 0x20
- for (let i = off; i &lt; off + 148; i++) {
- sum += buf[i]
- }
- for (let i = off + 156; i &lt; off + 512; i++) {
- sum += buf[i]
- }
- this.cksum = sum
- encNumber(buf, off + 148, 8, this.cksum)
- this.cksumValid = true
-&nbsp;
- return this.needPax
- }
-&nbsp;
- set (data) {
- for (let i in data) {
- if (data[i] !== null &amp;&amp; data[i] !== undefined)
- this[i] = data[i]
- }
- }
-&nbsp;
- get type () {
- return types.name.get(this[TYPE]) || this[TYPE]
- }
-&nbsp;
- get typeKey () {
- return this[TYPE]
- }
-&nbsp;
- set type (type) {
- if (types.code.has(type))
- this[TYPE] = types.code.get(type)
- else
- this[TYPE] = type
- }
-}
-&nbsp;
-const splitPrefix = (p, prefixSize) =&gt; {
- const pathSize = 100
- let pp = p
- let prefix = ''
- let ret
- const root = pathModule.parse(p).root || '.'
-&nbsp;
- if (Buffer.byteLength(pp) &lt; pathSize)
- ret = [pp, prefix, false]
- else {
- // first set prefix to the dir, and path to the base
- prefix = pathModule.dirname(pp)
- pp = pathModule.basename(pp)
-&nbsp;
- do {
- // both fit!
- if (Buffer.byteLength(pp) &lt;= pathSize &amp;&amp;
- Buffer.byteLength(prefix) &lt;= prefixSize)
- ret = [pp, prefix, false]
-&nbsp;
- // prefix fits in prefix, but path doesn't fit in path
- else if (Buffer.byteLength(pp) &gt; pathSize &amp;&amp;
- Buffer.byteLength(prefix) &lt;= prefixSize)
- ret = [pp.substr(0, pathSize - 1), prefix, true]
-&nbsp;
- else {
- // make path take a bit from prefix
- pp = pathModule.join(pathModule.basename(prefix), pp)
- prefix = pathModule.dirname(prefix)
- }
- } while (prefix !== root &amp;&amp; !ret)
-&nbsp;
- // at this point, found no resolution, just truncate
- if (!ret)
- ret = [p.substr(0, pathSize - 1), '', true]
- }
- return ret
-}
-&nbsp;
-const decString = (buf, off, size) =&gt;
- buf.slice(off, off + size).toString('utf8').replace(/\0.*/, '')
-&nbsp;
-const decDate = (buf, off, size) =&gt;
- numToDate(decNumber(buf, off, size))
-&nbsp;
-const numToDate = num =&gt; num === null ? null : new Date(num * 1000)
-&nbsp;
-const decNumber = (buf, off, size) =&gt;
- buf[off] &amp; 0x80 ? large.parse(buf.slice(off, off + size))
- : decSmallNumber(buf, off, size)
-&nbsp;
-const nanNull = value =&gt; isNaN(value) ? null : value
-&nbsp;
-const decSmallNumber = (buf, off, size) =&gt;
- nanNull(parseInt(
- buf.slice(off, off + size)
- .toString('utf8').replace(/\0.*$/, '').trim(), 8))
-&nbsp;
-// the maximum encodable as a null-terminated octal, by field size
-const MAXNUM = {
- 12: 0o77777777777,
- 8 : 0o7777777
-}
-&nbsp;
-const encNumber = (buf, off, size, number) =&gt;
- number === null ? false :
- number &gt; MAXNUM[size] || number &lt; 0
- ? (large.encode(number, buf.slice(off, off + size)), true)
- : (encSmallNumber(buf, off, size, number), false)
-&nbsp;
-const encSmallNumber = (buf, off, size, number) =&gt;
- buf.write(octalString(number, size), off, size, 'ascii')
-&nbsp;
-const octalString = (number, size) =&gt;
- padOctal(Math.floor(number).toString(8), size)
-&nbsp;
-const padOctal = (string, size) =&gt;
- (string.length === size - 1 ? string
- : new Array(size - string.length - 1).join('0') + string + ' ') + '\0'
-&nbsp;
-const encDate = (buf, off, size, date) =&gt;
- date === null ? false :
- encNumber(buf, off, size, date.getTime() / 1000)
-&nbsp;
-// enough to fill the longest string we've got
-const NULLS = new Array(156).join('\0')
-// pad with nulls, return true if it's longer or non-ascii
-const encString = (buf, off, size, string) =&gt;
- string === null ? false :
- (buf.write(string + NULLS, off, size, 'utf8'),
- string.length !== Buffer.byteLength(string) || string.length &gt; size)
-&nbsp;
-module.exports = Header
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/high-level-opt.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/high-level-opt.js.html
deleted file mode 100644
index 0a59596..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/high-level-opt.js.html
+++ /dev/null
@@ -1,152 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/high-level-opt.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> high-level-opt.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>5/5</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>4/4</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>3/3</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>3/3</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">469x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">469x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// turn tar(1) style args like `C` into the more verbose things like `cwd`
-&nbsp;
-const argmap = new Map([
- ['C', 'cwd'],
- ['f', 'file'],
- ['z', 'gzip'],
- ['P', 'preservePaths'],
- ['U', 'unlink'],
- ['strip-components', 'strip'],
- ['stripComponents', 'strip'],
- ['keep-newer', 'newer'],
- ['keepNewer', 'newer'],
- ['keep-newer-files', 'newer'],
- ['keepNewerFiles', 'newer'],
- ['k', 'keep'],
- ['keep-existing', 'keep'],
- ['keepExisting', 'keep'],
- ['m', 'noMtime'],
- ['no-mtime', 'noMtime'],
- ['p', 'preserveOwner'],
- ['L', 'follow'],
- ['h', 'follow']
-])
-&nbsp;
-const parse = module.exports = opt =&gt; opt ? Object.keys(opt).map(k =&gt; [
- argmap.has(k) ? argmap.get(k) : k, opt[k]
-]).reduce((set, kv) =&gt; (set[kv[0]] = kv[1], set), Object.create(null)) : {}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/index.html b/node_modules/tar/coverage/lcov-report/tar/lib/index.html
deleted file mode 100644
index 1f908d1..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/index.html
+++ /dev/null
@@ -1,314 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> tar/lib
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.94% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>1782/1783</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.67% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>1224/1228</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>271/271</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.94% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>1735/1736</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<div class="pad1">
-<table class="coverage-summary">
-<thead>
-<tr>
- <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
- <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
- <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
- <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
- <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
- <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
- <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
- <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
-</tr>
-</thead>
-<tbody><tr>
- <td class="file high" data-value="create.js"><a href="create.js.html">create.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="59" class="abs high">59/59</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="35" class="abs high">35/35</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="12" class="abs high">12/12</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="59" class="abs high">59/59</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="extract.js"><a href="extract.js.html">extract.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="61" class="abs high">61/61</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="45" class="abs high">45/45</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="12" class="abs high">12/12</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="60" class="abs high">60/60</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="header.js"><a href="header.js.html">header.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="161" class="abs high">161/161</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="120" class="abs high">120/120</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="20" class="abs high">20/20</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="159" class="abs high">159/159</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="high-level-opt.js"><a href="high-level-opt.js.html">high-level-opt.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="5" class="abs high">5/5</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="4" class="abs high">4/4</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="3" class="abs high">3/3</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="3" class="abs high">3/3</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="large-numbers.js"><a href="large-numbers.js.html">large-numbers.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="59" class="abs high">59/59</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="20" class="abs high">20/20</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="8" class="abs high">8/8</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="57" class="abs high">57/57</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="list.js"><a href="list.js.html">list.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="80" class="abs high">80/80</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="53" class="abs high">53/53</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="14" class="abs high">14/14</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="77" class="abs high">77/77</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="mkdir.js"><a href="mkdir.js.html">mkdir.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="130" class="abs high">130/130</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="91" class="abs high">91/91</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="15" class="abs high">15/15</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="128" class="abs high">128/128</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="pack.js"><a href="pack.js.html">pack.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="228" class="abs high">228/228</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="123" class="abs high">123/123</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="44" class="abs high">44/44</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="222" class="abs high">222/222</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="parse.js"><a href="parse.js.html">parse.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="242" class="abs high">242/242</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="155" class="abs high">155/155</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="24" class="abs high">24/24</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="236" class="abs high">236/236</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="pax.js"><a href="pax.js.html">pax.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="62" class="abs high">62/62</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="75" class="abs high">75/75</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="9" class="abs high">9/9</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="60" class="abs high">60/60</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="read-entry.js"><a href="read-entry.js.html">read-entry.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="53" class="abs high">53/53</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="36" class="abs high">36/36</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="3" class="abs high">3/3</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="51" class="abs high">51/51</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="replace.js"><a href="replace.js.html">replace.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="131" class="abs high">131/131</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="70" class="abs high">70/70</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="18" class="abs high">18/18</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="128" class="abs high">128/128</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="types.js"><a href="types.js.html">types.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="3" class="abs high">3/3</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="0" class="abs high">0/0</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="1" class="abs high">1/1</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="2" class="abs high">2/2</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="unpack.js"><a href="unpack.js.html">unpack.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="254" class="abs high">254/254</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="194" class="abs high">194/194</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="44" class="abs high">44/44</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="247" class="abs high">247/247</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="update.js"><a href="update.js.html">update.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="20" class="abs high">20/20</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="15" class="abs high">15/15</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="4" class="abs high">4/4</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="20" class="abs high">20/20</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="warn-mixin.js"><a href="warn-mixin.js.html">warn-mixin.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="9" class="abs high">9/9</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="4" class="abs high">4/4</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="2" class="abs high">2/2</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="8" class="abs high">8/8</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="winchars.js"><a href="winchars.js.html">winchars.js</a></td>
- <td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="12" class="abs high">12/12</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="0" class="abs high">0/0</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="7" class="abs high">7/7</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="8" class="abs high">8/8</td>
- </tr>
-
-<tr>
- <td class="file high" data-value="write-entry.js"><a href="write-entry.js.html">write-entry.js</a></td>
- <td data-value="99.53" class="pic high"><div class="chart"><div class="cover-fill" style="width: 99%;"></div><div class="cover-empty" style="width:1%;"></div></div></td>
- <td data-value="99.53" class="pct high">99.53%</td>
- <td data-value="214" class="abs high">213/214</td>
- <td data-value="97.87" class="pct high">97.87%</td>
- <td data-value="188" class="abs high">184/188</td>
- <td data-value="100" class="pct high">100%</td>
- <td data-value="31" class="abs high">31/31</td>
- <td data-value="99.53" class="pct high">99.53%</td>
- <td data-value="211" class="abs high">210/211</td>
- </tr>
-
-</tbody>
-</table>
-</div><div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/large-numbers.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/large-numbers.js.html
deleted file mode 100644
index 5b8610f..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/large-numbers.js.html
+++ /dev/null
@@ -1,341 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/large-numbers.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> large-numbers.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>59/59</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>20/20</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>8/8</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>57/57</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-yes">17x</span>
-<span class="cline-any cline-yes">17x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">17x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">86x</span>
-<span class="cline-any cline-yes">31x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">55x</span>
-<span class="cline-any cline-yes">55x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">60x</span>
-<span class="cline-any cline-yes">42x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">60x</span>
-<span class="cline-any cline-yes">48x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-yes">47x</span>
-<span class="cline-any cline-yes">47x</span>
-<span class="cline-any cline-yes">47x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">60x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">60x</span>
-<span class="cline-any cline-yes">48x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">60x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">266x</span>
-<span class="cline-any cline-yes">266x</span>
-<span class="cline-any cline-yes">161x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">96x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-// Tar can encode large and negative numbers using a leading byte of
-// 0xff for negative, and 0x80 for positive. The trailing byte in the
-// section will always be 0x20, or in some implementations 0x00.
-// this module encodes and decodes these things.
-&nbsp;
-const encode = exports.encode = (num, buf) =&gt; {
- buf[buf.length - 1] = 0x20
- if (num &lt; 0)
- encodeNegative(num, buf)
- else
- encodePositive(num, buf)
- return buf
-}
-&nbsp;
-const encodePositive = (num, buf) =&gt; {
- buf[0] = 0x80
- for (var i = buf.length - 2; i &gt; 0; i--) {
- if (num === 0)
- buf[i] = 0
- else {
- buf[i] = num % 0x100
- num = Math.floor(num / 0x100)
- }
- }
-}
-&nbsp;
-const encodeNegative = (num, buf) =&gt; {
- buf[0] = 0xff
- var flipped = false
- num = num * -1
- for (var i = buf.length - 2; i &gt; 0; i--) {
- var byte
- if (num === 0)
- byte = 0
- else {
- byte = num % 0x100
- num = Math.floor(num / 0x100)
- }
- if (flipped)
- buf[i] = onesComp(byte)
- else if (byte === 0)
- buf[i] = 0
- else {
- flipped = true
- buf[i] = twosComp(byte)
- }
- }
-}
-&nbsp;
-const parse = exports.parse = (buf) =&gt; {
- var post = buf[buf.length - 1]
- var pre = buf[0]
- return pre === 0x80 ? pos(buf.slice(1, buf.length - 1))
- : twos(buf.slice(1, buf.length - 1))
-}
-&nbsp;
-const twos = (buf) =&gt; {
- var len = buf.length
- var sum = 0
- var flipped = false
- for (var i = len - 1; i &gt; -1; i--) {
- var byte = buf[i]
- var f
- if (flipped)
- f = onesComp(byte)
- else if (byte === 0)
- f = byte
- else {
- flipped = true
- f = twosComp(byte)
- }
- if (f !== 0)
- sum += f * Math.pow(256, len - i - 1)
- }
- return sum * -1
-}
-&nbsp;
-const pos = (buf) =&gt; {
- var len = buf.length
- var sum = 0
- for (var i = len - 1; i &gt; -1; i--) {
- var byte = buf[i]
- if (byte !== 0)
- sum += byte * Math.pow(256, len - i - 1)
- }
- return sum
-}
-&nbsp;
-const onesComp = byte =&gt; (0xff ^ byte) &amp; 0xff
-&nbsp;
-const twosComp = byte =&gt; ((0xff ^ byte) + 1) &amp; 0xff
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/list.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/list.js.html
deleted file mode 100644
index 4e6e34e..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/list.js.html
+++ /dev/null
@@ -1,449 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/list.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> list.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>80/80</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>53/53</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>14/14</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>77/77</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">31x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-yes">255x</span>
-<span class="cline-any cline-yes">255x</span>
-<span class="cline-any cline-yes">72x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">125x</span>
-<span class="cline-any cline-yes">125x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">125x</span>
-<span class="cline-any cline-yes">125x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">64x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">10x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">28x</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// XXX: This shares a lot in common with extract.js
-// maybe some DRY opportunity here?
-&nbsp;
-// tar -t
-const hlo = require('./high-level-opt.js')
-const Parser = require('./parse.js')
-const fs = require('fs')
-const fsm = require('fs-minipass')
-const path = require('path')
-&nbsp;
-const t = module.exports = (opt_, files, cb) =&gt; {
- if (typeof opt_ === 'function')
- cb = opt_, files = null, opt_ = {}
- else if (Array.isArray(opt_))
- files = opt_, opt_ = {}
-&nbsp;
- if (typeof files === 'function')
- cb = files, files = null
-&nbsp;
- if (!files)
- files = []
- else
- files = Array.from(files)
-&nbsp;
- const opt = hlo(opt_)
-&nbsp;
- if (opt.sync &amp;&amp; typeof cb === 'function')
- throw new TypeError('callback not supported for sync tar functions')
-&nbsp;
- if (!opt.file &amp;&amp; typeof cb === 'function')
- throw new TypeError('callback only supported with file option')
-&nbsp;
- if (files.length)
- filesFilter(opt, files)
-&nbsp;
- if (!opt.noResume)
- onentryFunction(opt)
-&nbsp;
- return opt.file &amp;&amp; opt.sync ? listFileSync(opt)
- : opt.file ? listFile(opt, cb)
- : list(opt)
-}
-&nbsp;
-const onentryFunction = opt =&gt; {
- const onentry = opt.onentry
- opt.onentry = onentry ? e =&gt; {
- onentry(e)
- e.resume()
- } : e =&gt; e.resume()
-}
-&nbsp;
-// construct a filter that limits the file entries listed
-// include child entries if a dir is included
-const filesFilter = (opt, files) =&gt; {
- const map = new Map(files.map(f =&gt; [f.replace(/\/+$/, ''), true]))
- const filter = opt.filter
-&nbsp;
- const mapHas = (file, r) =&gt; {
- const root = r || path.parse(file).root || '.'
- const ret = file === root ? false
- : map.has(file) ? map.get(file)
- : mapHas(path.dirname(file), root)
-&nbsp;
- map.set(file, ret)
- return ret
- }
-&nbsp;
- opt.filter = filter
- ? (file, entry) =&gt; filter(file, entry) &amp;&amp; mapHas(file.replace(/\/+$/, ''))
- : file =&gt; mapHas(file.replace(/\/+$/, ''))
-}
-&nbsp;
-const listFileSync = opt =&gt; {
- const p = list(opt)
- const file = opt.file
- let threw = true
- let fd
- try {
- const stat = fs.statSync(file)
- const readSize = opt.maxReadSize || 16*1024*1024
- if (stat.size &lt; readSize) {
- p.end(fs.readFileSync(file))
- } else {
- let pos = 0
- const buf = Buffer.allocUnsafe(readSize)
- fd = fs.openSync(file, 'r')
- while (pos &lt; stat.size) {
- let bytesRead = fs.readSync(fd, buf, 0, readSize, pos)
- pos += bytesRead
- p.write(buf.slice(0, bytesRead))
- }
- p.end()
- }
- threw = false
- } finally {
- if (threw &amp;&amp; fd)
- try { fs.closeSync(fd) } catch (er) {}
- }
-}
-&nbsp;
-const listFile = (opt, cb) =&gt; {
- const parse = new Parser(opt)
- const readSize = opt.maxReadSize || 16*1024*1024
-&nbsp;
- const file = opt.file
- const p = new Promise((resolve, reject) =&gt; {
- parse.on('error', reject)
- parse.on('end', resolve)
-&nbsp;
- fs.stat(file, (er, stat) =&gt; {
- if (er)
- reject(er)
- else {
- const stream = new fsm.ReadStream(file, {
- readSize: readSize,
- size: stat.size
- })
- stream.on('error', reject)
- stream.pipe(parse)
- }
- })
- })
- return cb ? p.then(cb, cb) : p
-}
-&nbsp;
-const list = opt =&gt; new Parser(opt)
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/mkdir.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/mkdir.js.html
deleted file mode 100644
index afeb931..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/mkdir.js.html
+++ /dev/null
@@ -1,686 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/mkdir.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> mkdir.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>130/130</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>91/91</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>15/15</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>128/128</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
-173
-174
-175
-176
-177
-178
-179
-180
-181
-182
-183
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">36x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">457x</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">442x</span>
-<span class="cline-any cline-yes">442x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">436x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-yes">272x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">179x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">139x</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">1062x</span>
-<span class="cline-any cline-yes">119x</span>
-<span class="cline-any cline-yes">943x</span>
-<span class="cline-any cline-yes">943x</span>
-<span class="cline-any cline-yes">943x</span>
-<span class="cline-any cline-yes">723x</span>
-<span class="cline-any cline-yes">220x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">222x</span>
-<span class="cline-any cline-yes">222x</span>
-<span class="cline-any cline-yes">36x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">28x</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">186x</span>
-<span class="cline-any cline-yes">186x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">266x</span>
-<span class="cline-any cline-yes">266x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">266x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">266x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">128x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">148x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">114x</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">107x</span>
-<span class="cline-any cline-yes">107x</span>
-<span class="cline-any cline-yes">107x</span>
-<span class="cline-any cline-yes">107x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">792x</span>
-<span class="cline-any cline-yes">608x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">184x</span>
-<span class="cline-any cline-yes">184x</span>
-<span class="cline-any cline-yes">169x</span>
-<span class="cline-any cline-yes">169x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">99x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-// wrapper around mkdirp for tar's needs.
-&nbsp;
-// TODO: This should probably be a class, not functionally
-// passing around state in a gazillion args.
-&nbsp;
-const mkdirp = require('mkdirp')
-const fs = require('fs')
-const path = require('path')
-const chownr = require('chownr')
-&nbsp;
-class SymlinkError extends Error {
- constructor (symlink, path) {
- super('Cannot extract through symbolic link')
- this.path = path
- this.symlink = symlink
- }
-&nbsp;
- get name () {
- return 'SylinkError'
- }
-}
-&nbsp;
-class CwdError extends Error {
- constructor (path, code) {
- super(code + ': Cannot cd into \'' + path + '\'')
- this.path = path
- this.code = code
- }
-&nbsp;
- get name () {
- return 'CwdError'
- }
-}
-&nbsp;
-const mkdir = module.exports = (dir, opt, cb) =&gt; {
- // if there's any overlap between mask and mode,
- // then we'll need an explicit chmod
- const umask = opt.umask
- const mode = opt.mode | 0o0700
- const needChmod = (mode &amp; umask) !== 0
-&nbsp;
- const uid = opt.uid
- const gid = opt.gid
- const doChown = typeof uid === 'number' &amp;&amp;
- typeof gid === 'number' &amp;&amp;
- ( uid !== opt.processUid || gid !== opt.processGid )
-&nbsp;
- const preserve = opt.preserve
- const unlink = opt.unlink
- const cache = opt.cache
- const cwd = opt.cwd
-&nbsp;
- const done = (er, created) =&gt; {
- if (er)
- cb(er)
- else {
- cache.set(dir, true)
- if (created &amp;&amp; doChown)
- chownr(created, uid, gid, er =&gt; done(er))
- else if (needChmod)
- fs.chmod(dir, mode, cb)
- else
- cb()
- }
- }
-&nbsp;
- if (cache &amp;&amp; cache.get(dir) === true)
- return done()
-&nbsp;
- if (dir === cwd)
- return fs.lstat(dir, (er, st) =&gt; {
- if (er || !st.isDirectory())
- er = new CwdError(dir, er &amp;&amp; er.code || 'ENOTDIR')
- done(er)
- })
-&nbsp;
- if (preserve)
- return mkdirp(dir, mode, done)
-&nbsp;
- const sub = path.relative(cwd, dir)
- const parts = sub.split(/\/|\\/)
- mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done)
-}
-&nbsp;
-const mkdir_ = (base, parts, mode, cache, unlink, cwd, created, cb) =&gt; {
- if (!parts.length)
- return cb(null, created)
- const p = parts.shift()
- const part = base + '/' + p
- if (cache.get(part))
- return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb)
- fs.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb))
-}
-&nbsp;
-const onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) =&gt; er =&gt; {
- if (er) {
- if (er.path &amp;&amp; path.dirname(er.path) === cwd &amp;&amp;
- (er.code === 'ENOTDIR' || er.code === 'ENOENT'))
- return cb(new CwdError(cwd, er.code))
-&nbsp;
- fs.lstat(part, (statEr, st) =&gt; {
- if (statEr)
- cb(statEr)
- else if (st.isDirectory())
- mkdir_(part, parts, mode, cache, unlink, cwd, created, cb)
- else if (unlink)
- fs.unlink(part, er =&gt; {
- if (er)
- return cb(er)
- fs.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb))
- })
- else if (st.isSymbolicLink())
- return cb(new SymlinkError(part, part + '/' + parts.join('/')))
- else
- cb(er)
- })
- } else {
- created = created || part
- mkdir_(part, parts, mode, cache, unlink, cwd, created, cb)
- }
-}
-&nbsp;
-const mkdirSync = module.exports.sync = (dir, opt) =&gt; {
- // if there's any overlap between mask and mode,
- // then we'll need an explicit chmod
- const umask = opt.umask
- const mode = opt.mode | 0o0700
- const needChmod = (mode &amp; umask) !== 0
-&nbsp;
- const uid = opt.uid
- const gid = opt.gid
- const doChown = typeof uid === 'number' &amp;&amp;
- typeof gid === 'number' &amp;&amp;
- ( uid !== opt.processUid || gid !== opt.processGid )
-&nbsp;
- const preserve = opt.preserve
- const unlink = opt.unlink
- const cache = opt.cache
- const cwd = opt.cwd
-&nbsp;
- const done = (created) =&gt; {
- cache.set(dir, true)
- if (created &amp;&amp; doChown)
- chownr.sync(created, uid, gid)
- if (needChmod)
- fs.chmodSync(dir, mode)
- cache.set(dir, true)
- }
-&nbsp;
- if (cache &amp;&amp; cache.get(dir) === true)
- return done()
-&nbsp;
- if (dir === cwd) {
- let ok = false
- let code = 'ENOTDIR'
- try {
- ok = fs.lstatSync(dir).isDirectory()
- } catch (er) {
- code = er.code
- } finally {
- if (!ok)
- throw new CwdError(dir, code)
- }
- done()
- return
- }
-&nbsp;
- if (preserve)
- return done(mkdirp.sync(dir, mode))
-&nbsp;
- const sub = path.relative(cwd, dir)
- const parts = sub.split(/\/|\\/)
- let created = null
- for (let p = parts.shift(), part = cwd;
- p &amp;&amp; (part += '/' + p);
- p = parts.shift()) {
-&nbsp;
- if (cache.get(part))
- continue
-&nbsp;
- try {
- fs.mkdirSync(part, mode)
- created = created || part
- cache.set(part, true)
- } catch (er) {
- if (er.path &amp;&amp; path.dirname(er.path) === cwd &amp;&amp;
- (er.code === 'ENOTDIR' || er.code === 'ENOENT'))
- return new CwdError(cwd, er.code)
-&nbsp;
- const st = fs.lstatSync(part)
- if (st.isDirectory()) {
- cache.set(part, true)
- continue
- } else if (unlink) {
- fs.unlinkSync(part)
- fs.mkdirSync(part, mode)
- created = created || part
- cache.set(part, true)
- continue
- } else if (st.isSymbolicLink())
- return new SymlinkError(part, part + '/' + parts.join('/'))
- }
- }
-&nbsp;
- return done(created)
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/pack.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/pack.js.html
deleted file mode 100644
index d46f96d..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/pack.js.html
+++ /dev/null
@@ -1,1268 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/pack.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> pack.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>228/228</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>123/123</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>44/44</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>222/222</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
-173
-174
-175
-176
-177
-178
-179
-180
-181
-182
-183
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
-211
-212
-213
-214
-215
-216
-217
-218
-219
-220
-221
-222
-223
-224
-225
-226
-227
-228
-229
-230
-231
-232
-233
-234
-235
-236
-237
-238
-239
-240
-241
-242
-243
-244
-245
-246
-247
-248
-249
-250
-251
-252
-253
-254
-255
-256
-257
-258
-259
-260
-261
-262
-263
-264
-265
-266
-267
-268
-269
-270
-271
-272
-273
-274
-275
-276
-277
-278
-279
-280
-281
-282
-283
-284
-285
-286
-287
-288
-289
-290
-291
-292
-293
-294
-295
-296
-297
-298
-299
-300
-301
-302
-303
-304
-305
-306
-307
-308
-309
-310
-311
-312
-313
-314
-315
-316
-317
-318
-319
-320
-321
-322
-323
-324
-325
-326
-327
-328
-329
-330
-331
-332
-333
-334
-335
-336
-337
-338
-339
-340
-341
-342
-343
-344
-345
-346
-347
-348
-349
-350
-351
-352
-353
-354
-355
-356
-357
-358
-359
-360
-361
-362
-363
-364
-365
-366
-367
-368
-369
-370
-371
-372
-373
-374
-375
-376
-377
-378
-379
-380
-381
-382
-383
-384
-385
-386
-387
-388
-389
-390
-391
-392
-393
-394
-395
-396
-397
-398
-399
-400
-401
-402</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">503x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-yes">146x</span>
-<span class="cline-any cline-yes">219x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">117x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6507x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-yes">122x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">106x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">107x</span>
-<span class="cline-any cline-yes">103x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">100x</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-yes">99x</span>
-<span class="cline-any cline-yes">99x</span>
-<span class="cline-any cline-yes">99x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">128x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">127x</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">100x</span>
-<span class="cline-any cline-yes">123x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6541x</span>
-<span class="cline-any cline-yes">6541x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6541x</span>
-<span class="cline-any cline-yes">6541x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6452x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6538x</span>
-<span class="cline-any cline-yes">6538x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6538x</span>
-<span class="cline-any cline-yes">24x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6538x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">821x</span>
-<span class="cline-any cline-yes">821x</span>
-<span class="cline-any cline-yes">821x</span>
-<span class="cline-any cline-yes">821x</span>
-<span class="cline-any cline-yes">821x</span>
-<span class="cline-any cline-yes">821x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">820x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">858x</span>
-<span class="cline-any cline-yes">858x</span>
-<span class="cline-any cline-yes">858x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">20596x</span>
-<span class="cline-any cline-yes">9093x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11503x</span>
-<span class="cline-any cline-yes">11503x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">38739x</span>
-<span class="cline-any cline-yes">38735x</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-yes">25x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11499x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11499x</span>
-<span class="cline-any cline-yes">96x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">92x</span>
-<span class="cline-any cline-yes">92x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">25863x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6533x</span>
-<span class="cline-any cline-yes">6533x</span>
-<span class="cline-any cline-yes">6533x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">38739x</span>
-<span class="cline-any cline-yes">6156x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32583x</span>
-<span class="cline-any cline-yes">18770x</span>
-<span class="cline-any cline-yes">4954x</span>
-<span class="cline-any cline-yes">18770x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13813x</span>
-<span class="cline-any cline-yes">6541x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6537x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13811x</span>
-<span class="cline-any cline-yes">6453x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7358x</span>
-<span class="cline-any cline-yes">24x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7334x</span>
-<span class="cline-any cline-yes">860x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">858x</span>
-<span class="cline-any cline-yes">859x</span>
-<span class="cline-any cline-yes">821x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6512x</span>
-<span class="cline-any cline-yes">6511x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6510x</span>
-<span class="cline-any cline-yes">1581x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6537x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6512x</span>
-<span class="cline-any cline-yes">6512x</span>
-<span class="cline-any cline-yes">6512x</span>
-<span class="cline-any cline-yes">6508x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">248x</span>
-<span class="cline-any cline-yes">158x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6448x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6448x</span>
-<span class="cline-any cline-yes">820x</span>
-<span class="cline-any cline-yes">6393x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6393x</span>
-<span class="cline-any cline-yes">6393x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6448x</span>
-<span class="cline-any cline-yes">6448x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6448x</span>
-<span class="cline-any cline-yes">6336x</span>
-<span class="cline-any cline-yes">11830x</span>
-<span class="cline-any cline-yes">156x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">112x</span>
-<span class="cline-any cline-yes">199x</span>
-<span class="cline-any cline-yes">53x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">265x</span>
-<span class="cline-any cline-yes">214x</span>
-<span class="cline-any cline-yes">265x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">47x</span>
-<span class="cline-any cline-yes">47x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">84x</span>
-<span class="cline-any cline-yes">84x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">37x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-yes">38x</span>
-<span class="cline-any cline-yes">48x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">48x</span>
-<span class="cline-any cline-yes">48x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">87x</span>
-<span class="cline-any cline-yes">31x</span>
-<span class="cline-any cline-yes">39x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">56x</span>
-<span class="cline-any cline-yes">106x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// A readable tar stream creator
-// Technically, this is a transform stream that you write paths into,
-// and tar format comes out of.
-// The `add()` method is like `write()` but returns this,
-// and end() return `this` as well, so you can
-// do `new Pack(opt).add('files').add('dir').end().pipe(output)
-// You could also do something like:
-// streamOfPaths().pipe(new Pack()).pipe(new fs.WriteStream('out.tar'))
-&nbsp;
-class PackJob {
- constructor (path, absolute) {
- this.path = path || './'
- this.absolute = absolute
- this.entry = null
- this.stat = null
- this.readdir = null
- this.pending = false
- this.ignore = false
- this.piped = false
- }
-}
-&nbsp;
-const MiniPass = require('minipass')
-const zlib = require('minizlib')
-const ReadEntry = require('./read-entry.js')
-const WriteEntry = require('./write-entry.js')
-const WriteEntrySync = WriteEntry.Sync
-const WriteEntryTar = WriteEntry.Tar
-const Yallist = require('yallist')
-const EOF = Buffer.alloc(1024)
-const ONSTAT = Symbol('onStat')
-const ENDED = Symbol('ended')
-const QUEUE = Symbol('queue')
-const CURRENT = Symbol('current')
-const PROCESS = Symbol('process')
-const PROCESSING = Symbol('processing')
-const PROCESSJOB = Symbol('processJob')
-const JOBS = Symbol('jobs')
-const JOBDONE = Symbol('jobDone')
-const ADDFSENTRY = Symbol('addFSEntry')
-const ADDTARENTRY = Symbol('addTarEntry')
-const STAT = Symbol('stat')
-const READDIR = Symbol('readdir')
-const ONREADDIR = Symbol('onreaddir')
-const PIPE = Symbol('pipe')
-const ENTRY = Symbol('entry')
-const ENTRYOPT = Symbol('entryOpt')
-const WRITEENTRYCLASS = Symbol('writeEntryClass')
-const WRITE = Symbol('write')
-const ONDRAIN = Symbol('ondrain')
-&nbsp;
-const fs = require('fs')
-const path = require('path')
-const warner = require('./warn-mixin.js')
-&nbsp;
-const Pack = warner(class Pack extends MiniPass {
- constructor (opt) {
- super(opt)
- opt = opt || Object.create(null)
- this.opt = opt
- this.cwd = opt.cwd || process.cwd()
- this.maxReadSize = opt.maxReadSize
- this.preservePaths = !!opt.preservePaths
- this.strict = !!opt.strict
- this.noPax = !!opt.noPax
- this.prefix = (opt.prefix || '').replace(/(\\|\/)+$/, '')
- this.linkCache = opt.linkCache || new Map()
- this.statCache = opt.statCache || new Map()
- this.readdirCache = opt.readdirCache || new Map()
- this[WRITEENTRYCLASS] = WriteEntry
- if (typeof opt.onwarn === 'function')
- this.on('warn', opt.onwarn)
-&nbsp;
- this.zip = null
- if (opt.gzip) {
- if (typeof opt.gzip !== 'object')
- opt.gzip = {}
- this.zip = new zlib.Gzip(opt.gzip)
- this.zip.on('data', chunk =&gt; super.write(chunk))
- this.zip.on('end', _ =&gt; super.end())
- this.zip.on('drain', _ =&gt; this[ONDRAIN]())
- this.on('resume', _ =&gt; this.zip.resume())
- } else
- this.on('drain', this[ONDRAIN])
-&nbsp;
- this.portable = !!opt.portable
- this.noDirRecurse = !!opt.noDirRecurse
- this.follow = !!opt.follow
- this.noMtime = !!opt.noMtime
-&nbsp;
-&nbsp;
- this.filter = typeof opt.filter === 'function' ? opt.filter : _ =&gt; true
-&nbsp;
- this[QUEUE] = new Yallist
- this[JOBS] = 0
- this.jobs = +opt.jobs || 4
- this[PROCESSING] = false
- this[ENDED] = false
- }
-&nbsp;
- [WRITE] (chunk) {
- return super.write(chunk)
- }
-&nbsp;
- add (path) {
- this.write(path)
- return this
- }
-&nbsp;
- end (path) {
- if (path)
- this.write(path)
- this[ENDED] = true
- this[PROCESS]()
- return this
- }
-&nbsp;
- write (path) {
- if (this[ENDED])
- throw new Error('write after end')
-&nbsp;
- if (path instanceof ReadEntry)
- this[ADDTARENTRY](path)
- else
- this[ADDFSENTRY](path)
- return this.flowing
- }
-&nbsp;
- [ADDTARENTRY] (p) {
- const absolute = path.resolve(this.cwd, p.path)
- if (this.prefix)
- p.path = this.prefix + '/' + p.path.replace(/^\.(\/+|$)/, '')
-&nbsp;
- // in this case, we don't have to wait for the stat
- if (!this.filter(p.path, p))
- p.resume()
- else {
- const job = new PackJob(p.path, absolute, false)
- job.entry = new WriteEntryTar(p, this[ENTRYOPT](job))
- job.entry.on('end', _ =&gt; this[JOBDONE](job))
- this[JOBS] += 1
- this[QUEUE].push(job)
- }
-&nbsp;
- this[PROCESS]()
- }
-&nbsp;
- [ADDFSENTRY] (p) {
- const absolute = path.resolve(this.cwd, p)
- if (this.prefix)
- p = this.prefix + '/' + p.replace(/^\.(\/+|$)/, '')
-&nbsp;
- this[QUEUE].push(new PackJob(p, absolute))
- this[PROCESS]()
- }
-&nbsp;
- [STAT] (job) {
- job.pending = true
- this[JOBS] += 1
- const stat = this.follow ? 'stat' : 'lstat'
- fs[stat](job.absolute, (er, stat) =&gt; {
- job.pending = false
- this[JOBS] -= 1
- if (er)
- this.emit('error', er)
- else
- this[ONSTAT](job, stat)
- })
- }
-&nbsp;
- [ONSTAT] (job, stat) {
- this.statCache.set(job.absolute, stat)
- job.stat = stat
-&nbsp;
- // now we have the stat, we can filter it.
- if (!this.filter(job.path, stat))
- job.ignore = true
-&nbsp;
- this[PROCESS]()
- }
-&nbsp;
- [READDIR] (job) {
- job.pending = true
- this[JOBS] += 1
- fs.readdir(job.absolute, (er, entries) =&gt; {
- job.pending = false
- this[JOBS] -= 1
- if (er)
- return this.emit('error', er)
- this[ONREADDIR](job, entries)
- })
- }
-&nbsp;
- [ONREADDIR] (job, entries) {
- this.readdirCache.set(job.absolute, entries)
- job.readdir = entries
- this[PROCESS]()
- }
-&nbsp;
- [PROCESS] () {
- if (this[PROCESSING])
- return
-&nbsp;
- this[PROCESSING] = true
- for (let w = this[QUEUE].head;
- w !== null &amp;&amp; this[JOBS] &lt; this.jobs;
- w = w.next) {
- this[PROCESSJOB](w.value)
- if (w.value.ignore) {
- const p = w.next
- this[QUEUE].removeNode(w)
- w.next = p
- }
- }
-&nbsp;
- this[PROCESSING] = false
-&nbsp;
- if (this[ENDED] &amp;&amp; !this[QUEUE].length &amp;&amp; this[JOBS] === 0) {
- if (this.zip)
- this.zip.end(EOF)
- else {
- super.write(EOF)
- super.end()
- }
- }
- }
-&nbsp;
- get [CURRENT] () {
- return this[QUEUE] &amp;&amp; this[QUEUE].head &amp;&amp; this[QUEUE].head.value
- }
-&nbsp;
- [JOBDONE] (job) {
- this[QUEUE].shift()
- this[JOBS] -= 1
- this[PROCESS]()
- }
-&nbsp;
- [PROCESSJOB] (job) {
- if (job.pending)
- return
-&nbsp;
- if (job.entry) {
- if (job === this[CURRENT] &amp;&amp; !job.piped)
- this[PIPE](job)
- return
- }
-&nbsp;
- if (!job.stat) {
- if (this.statCache.has(job.absolute))
- this[ONSTAT](job, this.statCache.get(job.absolute))
- else
- this[STAT](job)
- }
- if (!job.stat)
- return
-&nbsp;
- // filtered out!
- if (job.ignore)
- return
-&nbsp;
- if (!this.noDirRecurse &amp;&amp; job.stat.isDirectory() &amp;&amp; !job.readdir) {
- if (this.readdirCache.has(job.absolute))
- this[ONREADDIR](job, this.readdirCache.get(job.absolute))
- else
- this[READDIR](job)
- if (!job.readdir)
- return
- }
-&nbsp;
- // we know it doesn't have an entry, because that got checked above
- job.entry = this[ENTRY](job)
- if (!job.entry) {
- job.ignore = true
- return
- }
-&nbsp;
- if (job === this[CURRENT] &amp;&amp; !job.piped)
- this[PIPE](job)
- }
-&nbsp;
- [ENTRYOPT] (job) {
- return {
- onwarn: (msg, data) =&gt; {
- this.warn(msg, data)
- },
- noPax: this.noPax,
- cwd: this.cwd,
- absolute: job.absolute,
- preservePaths: this.preservePaths,
- maxReadSize: this.maxReadSize,
- strict: this.strict,
- portable: this.portable,
- linkCache: this.linkCache,
- statCache: this.statCache,
- noMtime: this.noMtime
- }
- }
-&nbsp;
- [ENTRY] (job) {
- this[JOBS] += 1
- try {
- return new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job))
- .on('end', () =&gt; this[JOBDONE](job))
- .on('error', er =&gt; this.emit('error', er))
- } catch (er) {
- this.emit('error', er)
- }
- }
-&nbsp;
- [ONDRAIN] () {
- if (this[CURRENT] &amp;&amp; this[CURRENT].entry)
- this[CURRENT].entry.resume()
- }
-&nbsp;
- // like .pipe() but using super, because our write() is special
- [PIPE] (job) {
- job.piped = true
-&nbsp;
- if (job.readdir)
- job.readdir.forEach(entry =&gt; {
- const p = this.prefix ?
- job.path.slice(this.prefix.length + 1) || './'
- : job.path
-&nbsp;
- const base = p === './' ? '' : p.replace(/\/*$/, '/')
- this[ADDFSENTRY](base + entry)
- })
-&nbsp;
- const source = job.entry
- const zip = this.zip
-&nbsp;
- if (zip)
- source.on('data', chunk =&gt; {
- if (!zip.write(chunk))
- source.pause()
- })
- else
- source.on('data', chunk =&gt; {
- if (!super.write(chunk))
- source.pause()
- })
- }
-&nbsp;
- pause () {
- if (this.zip)
- this.zip.pause()
- return super.pause()
- }
-})
-&nbsp;
-class PackSync extends Pack {
- constructor (opt) {
- super(opt)
- this[WRITEENTRYCLASS] = WriteEntrySync
- }
-&nbsp;
- // pause/resume are no-ops in sync streams.
- pause () {}
- resume () {}
-&nbsp;
- [STAT] (job) {
- const stat = this.follow ? 'statSync' : 'lstatSync'
- this[ONSTAT](job, fs[stat](job.absolute))
- }
-&nbsp;
- [READDIR] (job, stat) {
- this[ONREADDIR](job, fs.readdirSync(job.absolute))
- }
-&nbsp;
- // gotta get it all in this tick
- [PIPE] (job) {
- const source = job.entry
- const zip = this.zip
-&nbsp;
- if (job.readdir)
- job.readdir.forEach(entry =&gt; {
- const p = this.prefix ?
- job.path.slice(this.prefix.length + 1) || './'
- : job.path
-&nbsp;
-&nbsp;
- const base = p === './' ? '' : p.replace(/\/*$/, '/')
- this[ADDFSENTRY](base + entry)
- })
-&nbsp;
- if (zip)
- source.on('data', chunk =&gt; {
- zip.write(chunk)
- })
- else
- source.on('data', chunk =&gt; {
- super[WRITE](chunk)
- })
- }
-}
-&nbsp;
-Pack.Sync = PackSync
-&nbsp;
-module.exports = Pack
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/parse.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/parse.js.html
deleted file mode 100644
index 1d505ab..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/parse.js.html
+++ /dev/null
@@ -1,1310 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/parse.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> parse.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>242/242</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>155/155</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>24/24</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>236/236</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
-173
-174
-175
-176
-177
-178
-179
-180
-181
-182
-183
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
-211
-212
-213
-214
-215
-216
-217
-218
-219
-220
-221
-222
-223
-224
-225
-226
-227
-228
-229
-230
-231
-232
-233
-234
-235
-236
-237
-238
-239
-240
-241
-242
-243
-244
-245
-246
-247
-248
-249
-250
-251
-252
-253
-254
-255
-256
-257
-258
-259
-260
-261
-262
-263
-264
-265
-266
-267
-268
-269
-270
-271
-272
-273
-274
-275
-276
-277
-278
-279
-280
-281
-282
-283
-284
-285
-286
-287
-288
-289
-290
-291
-292
-293
-294
-295
-296
-297
-298
-299
-300
-301
-302
-303
-304
-305
-306
-307
-308
-309
-310
-311
-312
-313
-314
-315
-316
-317
-318
-319
-320
-321
-322
-323
-324
-325
-326
-327
-328
-329
-330
-331
-332
-333
-334
-335
-336
-337
-338
-339
-340
-341
-342
-343
-344
-345
-346
-347
-348
-349
-350
-351
-352
-353
-354
-355
-356
-357
-358
-359
-360
-361
-362
-363
-364
-365
-366
-367
-368
-369
-370
-371
-372
-373
-374
-375
-376
-377
-378
-379
-380
-381
-382
-383
-384
-385
-386
-387
-388
-389
-390
-391
-392
-393
-394
-395
-396
-397
-398
-399
-400
-401
-402
-403
-404
-405
-406
-407
-408
-409
-410
-411
-412
-413
-414
-415
-416</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2032x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">608x</span>
-<span class="cline-any cline-yes">589x</span>
-<span class="cline-any cline-yes">589x</span>
-<span class="cline-any cline-yes">589x</span>
-<span class="cline-any cline-yes">589x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">36x</span>
-<span class="cline-any cline-yes">742x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6101x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6101x</span>
-<span class="cline-any cline-yes">1834x</span>
-<span class="cline-any cline-yes">4267x</span>
-<span class="cline-any cline-yes">160x</span>
-<span class="cline-any cline-yes">4107x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4067x</span>
-<span class="cline-any cline-yes">4067x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-yes">4027x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3987x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3987x</span>
-<span class="cline-any cline-yes">759x</span>
-<span class="cline-any cline-yes">260x</span>
-<span class="cline-any cline-yes">260x</span>
-<span class="cline-any cline-yes">260x</span>
-<span class="cline-any cline-yes">499x</span>
-<span class="cline-any cline-yes">455x</span>
-<span class="cline-any cline-yes">475x</span>
-<span class="cline-any cline-yes">455x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3228x</span>
-<span class="cline-any cline-yes">3228x</span>
-<span class="cline-any cline-yes">3228x</span>
-<span class="cline-any cline-yes">1070x</span>
-<span class="cline-any cline-yes">1070x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2158x</span>
-<span class="cline-any cline-yes">1028x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1130x</span>
-<span class="cline-any cline-yes">1130x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2158x</span>
-<span class="cline-any cline-yes">1675x</span>
-<span class="cline-any cline-yes">1675x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">483x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4299x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4299x</span>
-<span class="cline-any cline-yes">1653x</span>
-<span class="cline-any cline-yes">1653x</span>
-<span class="cline-any cline-yes">2646x</span>
-<span class="cline-any cline-yes">490x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2156x</span>
-<span class="cline-any cline-yes">2156x</span>
-<span class="cline-any cline-yes">2150x</span>
-<span class="cline-any cline-yes">1288x</span>
-<span class="cline-any cline-yes">1288x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4293x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2947x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2941x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2478x</span>
-<span class="cline-any cline-yes">2478x</span>
-<span class="cline-any cline-yes">2478x</span>
-<span class="cline-any cline-yes">2468x</span>
-<span class="cline-any cline-yes">516x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">10x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2194x</span>
-<span class="cline-any cline-yes">2194x</span>
-<span class="cline-any cline-yes">2194x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2194x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2194x</span>
-<span class="cline-any cline-yes">2121x</span>
-<span class="cline-any cline-yes">2121x</span>
-<span class="cline-any cline-yes">2121x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2194x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">475x</span>
-<span class="cline-any cline-yes">475x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">475x</span>
-<span class="cline-any cline-yes">455x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">475x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4328x</span>
-<span class="cline-any cline-yes">3815x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">513x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">455x</span>
-<span class="cline-any cline-yes">455x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">351x</span>
-<span class="cline-any cline-yes">351x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">44x</span>
-<span class="cline-any cline-yes">44x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-yes">40x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">669590x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">669589x</span>
-<span class="cline-any cline-yes">944x</span>
-<span class="cline-any cline-yes">224x</span>
-<span class="cline-any cline-yes">224x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">944x</span>
-<span class="cline-any cline-yes">224x</span>
-<span class="cline-any cline-yes">224x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">720x</span>
-<span class="cline-any cline-yes">947x</span>
-<span class="cline-any cline-yes">493x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">720x</span>
-<span class="cline-any cline-yes">227x</span>
-<span class="cline-any cline-yes">227x</span>
-<span class="cline-any cline-yes">227x</span>
-<span class="cline-any cline-yes">20164x</span>
-<span class="cline-any cline-yes">227x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">227x</span>
-<span class="cline-any cline-yes">226x</span>
-<span class="cline-any cline-yes">226x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">227x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">669138x</span>
-<span class="cline-any cline-yes">669138x</span>
-<span class="cline-any cline-yes">33586x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">635552x</span>
-<span class="cline-any cline-yes">669132x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">669132x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">669132x</span>
-<span class="cline-any cline-yes">63x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">669132x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">652869x</span>
-<span class="cline-any cline-yes">652866x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3449x</span>
-<span class="cline-any cline-yes">709x</span>
-<span class="cline-any cline-yes">709x</span>
-<span class="cline-any cline-yes">709x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">709x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">655942x</span>
-<span class="cline-any cline-yes">10x</span>
-<span class="cline-any cline-yes">655932x</span>
-<span class="cline-any cline-yes">381x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">655551x</span>
-<span class="cline-any cline-yes">655551x</span>
-<span class="cline-any cline-yes">652859x</span>
-<span class="cline-any cline-yes">652859x</span>
-<span class="cline-any cline-yes">652859x</span>
-<span class="cline-any cline-yes">652859x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2692x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">655545x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">655545x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">655936x</span>
-<span class="cline-any cline-yes">3068x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">655553x</span>
-<span class="cline-any cline-yes">655553x</span>
-<span class="cline-any cline-yes">655553x</span>
-<span class="cline-any cline-yes">8295x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6101x</span>
-<span class="cline-any cline-yes">6095x</span>
-<span class="cline-any cline-yes">6095x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1719x</span>
-<span class="cline-any cline-yes">1719x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">475x</span>
-<span class="cline-any cline-yes">475x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">655547x</span>
-<span class="cline-any cline-yes">652863x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">652862x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">718x</span>
-<span class="cline-any cline-yes">717x</span>
-<span class="cline-any cline-yes">113x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">604x</span>
-<span class="cline-any cline-yes">604x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// this[BUFFER] is the remainder of a chunk if we're waiting for
-// the full 512 bytes of a header to come in. We will Buffer.concat()
-// it to the next write(), which is a mem copy, but a small one.
-//
-// this[QUEUE] is a Yallist of entries that haven't been emitted
-// yet this can only get filled up if the user keeps write()ing after
-// a write() returns false, or does a write() with more than one entry
-//
-// We don't buffer chunks, we always parse them and either create an
-// entry, or push it into the active entry. The ReadEntry class knows
-// to throw data away if .ignore=true
-//
-// Shift entry off the buffer when it emits 'end', and emit 'entry' for
-// the next one in the list.
-//
-// At any time, we're pushing body chunks into the entry at WRITEENTRY,
-// and waiting for 'end' on the entry at READENTRY
-//
-// ignored entries get .resume() called on them straight away
-&nbsp;
-const warner = require('./warn-mixin.js')
-const path = require('path')
-const Header = require('./header.js')
-const EE = require('events')
-const Yallist = require('yallist')
-const maxMetaEntrySize = 1024 * 1024
-const Entry = require('./read-entry.js')
-const Pax = require('./pax.js')
-const zlib = require('minizlib')
-&nbsp;
-const gzipHeader = new Buffer([0x1f, 0x8b])
-const STATE = Symbol('state')
-const WRITEENTRY = Symbol('writeEntry')
-const READENTRY = Symbol('readEntry')
-const NEXTENTRY = Symbol('nextEntry')
-const PROCESSENTRY = Symbol('processEntry')
-const EX = Symbol('extendedHeader')
-const GEX = Symbol('globalExtendedHeader')
-const META = Symbol('meta')
-const EMITMETA = Symbol('emitMeta')
-const BUFFER = Symbol('buffer')
-const QUEUE = Symbol('queue')
-const ENDED = Symbol('ended')
-const EMITTEDEND = Symbol('emittedEnd')
-const EMIT = Symbol('emit')
-const UNZIP = Symbol('unzip')
-const CONSUMECHUNK = Symbol('consumeChunk')
-const CONSUMECHUNKSUB = Symbol('consumeChunkSub')
-const CONSUMEBODY = Symbol('consumeBody')
-const CONSUMEMETA = Symbol('consumeMeta')
-const CONSUMEHEADER = Symbol('consumeHeader')
-const CONSUMING = Symbol('consuming')
-const BUFFERCONCAT = Symbol('bufferConcat')
-const MAYBEEND = Symbol('maybeEnd')
-const WRITING = Symbol('writing')
-const ABORTED = Symbol('aborted')
-const DONE = Symbol('onDone')
-&nbsp;
-const noop = _ =&gt; true
-&nbsp;
-module.exports = warner(class Parser extends EE {
- constructor (opt) {
- opt = opt || {}
- super(opt)
-&nbsp;
- if (opt.ondone)
- this.on(DONE, opt.ondone)
- else
- this.on(DONE, _ =&gt; {
- this.emit('prefinish')
- this.emit('finish')
- this.emit('end')
- this.emit('close')
- })
-&nbsp;
- this.strict = !!opt.strict
- this.maxMetaEntrySize = opt.maxMetaEntrySize || maxMetaEntrySize
- this.filter = typeof opt.filter === 'function' ? opt.filter : noop
-&nbsp;
- // have to set this so that streams are ok piping into it
- this.writable = true
- this.readable = false
-&nbsp;
- this[QUEUE] = new Yallist()
- this[BUFFER] = null
- this[READENTRY] = null
- this[WRITEENTRY] = null
- this[STATE] = 'begin'
- this[META] = ''
- this[EX] = null
- this[GEX] = null
- this[ENDED] = false
- this[UNZIP] = null
- this[ABORTED] = false
- if (typeof opt.onwarn === 'function')
- this.on('warn', opt.onwarn)
- if (typeof opt.onentry === 'function')
- this.on('entry', opt.onentry)
- }
-&nbsp;
- [CONSUMEHEADER] (chunk, position) {
- const header = new Header(chunk, position)
-&nbsp;
- if (header.nullBlock)
- this[EMIT]('nullBlock')
- else if (!header.cksumValid)
- this.warn('invalid entry', header)
- else if (!header.path)
- this.warn('invalid: path is required', header)
- else {
- const type = header.type
- if (/^(Symbolic)?Link$/.test(type) &amp;&amp; !header.linkpath)
- this.warn('invalid: linkpath required', header)
- else if (!/^(Symbolic)?Link$/.test(type) &amp;&amp; header.linkpath)
- this.warn('invalid: linkpath forbidden', header)
- else {
- const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX])
-&nbsp;
- if (entry.meta) {
- if (entry.size &gt; this.maxMetaEntrySize) {
- entry.ignore = true
- this[EMIT]('ignoredEntry', entry)
- this[STATE] = 'ignore'
- } else if (entry.size &gt; 0) {
- this[META] = ''
- entry.on('data', c =&gt; this[META] += c)
- this[STATE] = 'meta'
- }
- } else {
-&nbsp;
- this[EX] = null
- entry.ignore = entry.ignore || !this.filter(entry.path, entry)
- if (entry.ignore) {
- this[EMIT]('ignoredEntry', entry)
- this[STATE] = entry.remain ? 'ignore' : 'begin'
- } else {
- if (entry.remain)
- this[STATE] = 'body'
- else {
- this[STATE] = 'begin'
- entry.end()
- }
-&nbsp;
- if (!this[READENTRY]) {
- this[QUEUE].push(entry)
- this[NEXTENTRY]()
- } else
- this[QUEUE].push(entry)
- }
- }
- }
- }
- }
-&nbsp;
- [PROCESSENTRY] (entry) {
- let go = true
-&nbsp;
- if (!entry) {
- this[READENTRY] = null
- go = false
- } else if (Array.isArray(entry))
- this.emit.apply(this, entry)
- else {
- this[READENTRY] = entry
- this.emit('entry', entry)
- if (!entry.emittedEnd) {
- entry.on('end', _ =&gt; this[NEXTENTRY]())
- go = false
- }
- }
-&nbsp;
- return go
- }
-&nbsp;
- [NEXTENTRY] () {
- do {} while (this[PROCESSENTRY](this[QUEUE].shift()))
-&nbsp;
- if (!this[QUEUE].length) {
- // At this point, there's nothing in the queue, but we may have an
- // entry which is being consumed (readEntry).
- // If we don't, then we definitely can handle more data.
- // If we do, and either it's flowing, or it has never had any data
- // written to it, then it needs more.
- // The only other possibility is that it has returned false from a
- // write() call, so we wait for the next drain to continue.
- const re = this[READENTRY]
- const drainNow = !re || re.flowing || re.size === re.remain
- if (drainNow) {
- if (!this[WRITING])
- this.emit('drain')
- } else
- re.once('drain', _ =&gt; this.emit('drain'))
- }
- }
-&nbsp;
- [CONSUMEBODY] (chunk, position) {
- // write up to but no more than writeEntry.blockRemain
- const entry = this[WRITEENTRY]
- const br = entry.blockRemain
- const c = (br &gt;= chunk.length &amp;&amp; position === 0) ? chunk
- : chunk.slice(position, position + br)
-&nbsp;
- entry.write(c)
-&nbsp;
- if (!entry.blockRemain) {
- this[STATE] = 'begin'
- this[WRITEENTRY] = null
- entry.end()
- }
-&nbsp;
- return c.length
- }
-&nbsp;
- [CONSUMEMETA] (chunk, position) {
- const entry = this[WRITEENTRY]
- const ret = this[CONSUMEBODY](chunk, position)
-&nbsp;
- // if we finished, then the entry is reset
- if (!this[WRITEENTRY])
- this[EMITMETA](entry)
-&nbsp;
- return ret
- }
-&nbsp;
- [EMIT] (ev, data, extra) {
- if (!this[QUEUE].length &amp;&amp; !this[READENTRY])
- this.emit(ev, data, extra)
- else
- this[QUEUE].push([ev, data, extra])
- }
-&nbsp;
- [EMITMETA] (entry) {
- this[EMIT]('meta', this[META])
- switch (entry.type) {
- case 'ExtendedHeader':
- case 'OldExtendedHeader':
- this[EX] = Pax.parse(this[META], this[EX], false)
- break
-&nbsp;
- case 'GlobalExtendedHeader':
- this[GEX] = Pax.parse(this[META], this[GEX], true)
- break
-&nbsp;
- case 'NextFileHasLongPath':
- case 'OldGnuLongPath':
- this[EX] = this[EX] || Object.create(null)
- this[EX].path = this[META].replace(/\0.*/, '')
- break
-&nbsp;
- case 'NextFileHasLongLinkpath':
- this[EX] = this[EX] || Object.create(null)
- this[EX].linkpath = this[META].replace(/\0.*/, '')
- break
-&nbsp;
- /* istanbul ignore next */
- default: throw new Error('unknown meta: ' + entry.type)
- }
- }
-&nbsp;
- abort (msg, error) {
- this[ABORTED] = true
- this.warn(msg, error)
- this.emit('abort')
- }
-&nbsp;
- write (chunk) {
- if (this[ABORTED])
- return
-&nbsp;
- // first write, might be gzipped
- if (this[UNZIP] === null &amp;&amp; chunk) {
- if (this[BUFFER]) {
- chunk = Buffer.concat([this[BUFFER], chunk])
- this[BUFFER] = null
- }
- if (chunk.length &lt; gzipHeader.length) {
- this[BUFFER] = chunk
- return true
- }
- for (let i = 0; this[UNZIP] === null &amp;&amp; i &lt; gzipHeader.length; i++) {
- if (chunk[i] !== gzipHeader[i])
- this[UNZIP] = false
- }
- if (this[UNZIP] === null) {
- const ended = this[ENDED]
- this[ENDED] = false
- this[UNZIP] = new zlib.Unzip()
- this[UNZIP].on('data', chunk =&gt; this[CONSUMECHUNK](chunk))
- this[UNZIP].on('error', er =&gt;
- this.abort('zlib error: ' + er.message, er))
- this[UNZIP].on('end', _ =&gt; {
- this[ENDED] = true
- this[CONSUMECHUNK]()
- })
- return ended ? this[UNZIP].end(chunk) : this[UNZIP].write(chunk)
- }
- }
-&nbsp;
- this[WRITING] = true
- if (this[UNZIP])
- this[UNZIP].write(chunk)
- else
- this[CONSUMECHUNK](chunk)
- this[WRITING] = false
-&nbsp;
- // return false if there's a queue, or if the current entry isn't flowing
- const ret =
- this[QUEUE].length ? false :
- this[READENTRY] ? this[READENTRY].flowing :
- true
-&nbsp;
- // if we have no queue, then that means a clogged READENTRY
- if (!ret &amp;&amp; !this[QUEUE].length)
- this[READENTRY].once('drain', _ =&gt; this.emit('drain'))
-&nbsp;
- return ret
- }
-&nbsp;
- [BUFFERCONCAT] (c) {
- if (c &amp;&amp; !this[ABORTED])
- this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c
- }
-&nbsp;
- [MAYBEEND] () {
- if (this[ENDED] &amp;&amp; !this[EMITTEDEND] &amp;&amp; !this[ABORTED]) {
- this[EMITTEDEND] = true
- const entry = this[WRITEENTRY]
- if (entry &amp;&amp; entry.blockRemain) {
- const have = this[BUFFER] ? this[BUFFER].length : 0
- this.warn('Truncated input (needed ' + entry.blockRemain +
- ' more bytes, only ' + have + ' available)', entry)
- if (this[BUFFER])
- entry.write(this[BUFFER])
- entry.end()
- }
- this[EMIT](DONE)
- }
- }
-&nbsp;
- [CONSUMECHUNK] (chunk) {
- if (this[CONSUMING]) {
- this[BUFFERCONCAT](chunk)
- } else if (!chunk &amp;&amp; !this[BUFFER]) {
- this[MAYBEEND]()
- } else {
- this[CONSUMING] = true
- if (this[BUFFER]) {
- this[BUFFERCONCAT](chunk)
- const c = this[BUFFER]
- this[BUFFER] = null
- this[CONSUMECHUNKSUB](c)
- } else {
- this[CONSUMECHUNKSUB](chunk)
- }
-&nbsp;
- while (this[BUFFER] &amp;&amp; this[BUFFER].length &gt;= 512 &amp;&amp; !this[ABORTED]) {
- const c = this[BUFFER]
- this[BUFFER] = null
- this[CONSUMECHUNKSUB](c)
- }
- this[CONSUMING] = false
- }
-&nbsp;
- if (!this[BUFFER] || this[ENDED])
- this[MAYBEEND]()
- }
-&nbsp;
- [CONSUMECHUNKSUB] (chunk) {
- // we know that we are in CONSUMING mode, so anything written goes into
- // the buffer. Advance the position and put any remainder in the buffer.
- let position = 0
- let length = chunk.length
- while (position + 512 &lt;= length &amp;&amp; !this[ABORTED]) {
- switch (this[STATE]) {
- case 'begin':
- this[CONSUMEHEADER](chunk, position)
- position += 512
- break
-&nbsp;
- case 'ignore':
- case 'body':
- position += this[CONSUMEBODY](chunk, position)
- break
-&nbsp;
- case 'meta':
- position += this[CONSUMEMETA](chunk, position)
- break
-&nbsp;
- /* istanbul ignore next */
- default:
- throw new Error('invalid state: ' + this[STATE])
- }
- }
-&nbsp;
- if (position &lt; length) {
- if (this[BUFFER])
- this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]])
- else
- this[BUFFER] = chunk.slice(position)
- }
- }
-&nbsp;
- end (chunk) {
- if (!this[ABORTED]) {
- if (this[UNZIP])
- this[UNZIP].end(chunk)
- else {
- this[ENDED] = true
- this.write(chunk)
- }
- }
- }
-})
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/pax.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/pax.js.html
deleted file mode 100644
index ed0e937..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/pax.js.html
+++ /dev/null
@@ -1,500 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/pax.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> pax.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>62/62</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>75/75</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>9/9</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>60/60</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-yes">435x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">16896x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">8949x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">510x</span>
-<span class="cline-any cline-yes">204x</span>
-<span class="cline-any cline-yes">306x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">306x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">306x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">306x</span>
-<span class="cline-any cline-yes">306x</span>
-<span class="cline-any cline-yes">30x</span>
-<span class="cline-any cline-yes">306x</span>
-<span class="cline-any cline-yes">306x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">401x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">401x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">401x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">2259x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2259x</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2254x</span>
-<span class="cline-any cline-yes">2254x</span>
-<span class="cline-any cline-yes">2254x</span>
-<span class="cline-any cline-yes">2254x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2253x</span>
-<span class="cline-any cline-yes">2253x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2253x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-const Header = require('./header.js')
-const path = require('path')
-&nbsp;
-class Pax {
- constructor (obj, global) {
- this.atime = obj.atime || null
- this.charset = obj.charset || null
- this.comment = obj.comment || null
- this.ctime = obj.ctime || null
- this.gid = obj.gid || null
- this.gname = obj.gname || null
- this.linkpath = obj.linkpath || null
- this.mtime = obj.mtime || null
- this.path = obj.path || null
- this.size = obj.size || null
- this.uid = obj.uid || null
- this.uname = obj.uname || null
- this.dev = obj.dev || null
- this.ino = obj.ino || null
- this.nlink = obj.nlink || null
- this.global = global || false
- }
-&nbsp;
- encode () {
- const body = this.encodeBody()
- if (body === '')
- return null
-&nbsp;
- const bodyLen = Buffer.byteLength(body)
- // round up to 512 bytes
- // add 512 for header
- const bufLen = 512 * Math.ceil(1 + bodyLen / 512)
- const buf = Buffer.allocUnsafe(bufLen)
-&nbsp;
- // 0-fill the header section, it might not hit every field
- for (let i = 0; i &lt; 512; i++) {
- buf[i] = 0
- }
-&nbsp;
- new Header({
- // XXX split the path
- // then the path should be PaxHeader + basename, but less than 99,
- // prepend with the dirname
- path: ('PaxHeader/' + path.basename(this.path)).slice(0, 99),
- mode: this.mode || 0o644,
- uid: this.uid || null,
- gid: this.gid || null,
- size: bodyLen,
- mtime: this.mtime || null,
- type: this.global ? 'GlobalExtendedHeader' : 'ExtendedHeader',
- linkpath: '',
- uname: this.uname || '',
- gname: this.gname || '',
- devmaj: 0,
- devmin: 0,
- atime: this.atime || null,
- ctime: this.ctime || null
- }).encode(buf)
-&nbsp;
- buf.write(body, 512, bodyLen, 'utf8')
-&nbsp;
- // null pad after the body
- for (let i = bodyLen + 512; i &lt; buf.length; i++) {
- buf[i] = 0
- }
-&nbsp;
- return buf
- }
-&nbsp;
- encodeBody () {
- return (
- this.encodeField('path') +
- this.encodeField('ctime') +
- this.encodeField('atime') +
- this.encodeField('dev') +
- this.encodeField('ino') +
- this.encodeField('nlink') +
- this.encodeField('charset') +
- this.encodeField('comment') +
- this.encodeField('gid') +
- this.encodeField('gname') +
- this.encodeField('linkpath') +
- this.encodeField('mtime') +
- this.encodeField('size') +
- this.encodeField('uid') +
- this.encodeField('uname')
- )
- }
-&nbsp;
- encodeField (field) {
- if (this[field] === null || this[field] === undefined)
- return ''
- const v = this[field] instanceof Date ? this[field].getTime() / 1000
- : this[field]
- const s = ' ' +
- (field === 'dev' || field === 'ino' || field === 'nlink'
- ? 'SCHILY.' : '') +
- field + '=' + v + '\n'
- const byteLen = Buffer.byteLength(s)
- // the digits includes the length of the digits in ascii base-10
- // so if it's 9 characters, then adding 1 for the 9 makes it 10
- // which makes it 11 chars.
- let digits = Math.floor(Math.log(byteLen) / Math.log(10)) + 1
- if (byteLen + digits &gt;= Math.pow(10, digits))
- digits += 1
- const len = digits + byteLen
- return len + s
- }
-}
-&nbsp;
-Pax.parse = (string, ex, g) =&gt; new Pax(merge(parseKV(string), ex), g)
-&nbsp;
-const merge = (a, b) =&gt;
- b ? Object.keys(a).reduce((s, k) =&gt; (s[k] = a[k], s), b) : a
-&nbsp;
-const parseKV = string =&gt;
- string
- .replace(/\n$/, '')
- .split('\n')
- .reduce(parseKVLine, Object.create(null))
-&nbsp;
-const parseKVLine = (set, line) =&gt; {
- const n = parseInt(line, 10)
-&nbsp;
- // XXX Values with \n in them will fail this.
- // Refactor to not be a naive line-by-line parse.
- if (n !== Buffer.byteLength(line) + 1)
- return set
-&nbsp;
- line = line.substr((n + ' ').length)
- const kv = line.split('=')
- const k = kv.shift().replace(/^SCHILY\.(dev|ino|nlink)/, '$1')
- if (!k)
- return set
-&nbsp;
- const v = kv.join('=')
- set[k] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(k)
- ? new Date(v * 1000)
- : /^[0-9]+$/.test(v) ? +v
- : v
- return set
-}
-&nbsp;
-module.exports = Pax
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/read-entry.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/read-entry.js.html
deleted file mode 100644
index 9fca327..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/read-entry.js.html
+++ /dev/null
@@ -1,347 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/read-entry.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> read-entry.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>53/53</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>36/36</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>3/3</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>51/51</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3241x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">760x</span>
-<span class="cline-any cline-yes">760x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">3720x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-yes">4004x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2222x</span>
-<span class="cline-any cline-yes">2222x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2220x</span>
-<span class="cline-any cline-yes">2220x</span>
-<span class="cline-any cline-yes">2220x</span>
-<span class="cline-any cline-yes">2220x</span>
-<span class="cline-any cline-yes">2220x</span>
-<span class="cline-any cline-yes">673x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1547x</span>
-<span class="cline-any cline-yes">132x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1415x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">457x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6384x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2657x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-const types = require('./types.js')
-const MiniPass = require('minipass')
-&nbsp;
-const SLURP = Symbol('slurp')
-module.exports = class ReadEntry extends MiniPass {
- constructor (header, ex, gex) {
- super()
- this.extended = ex
- this.globalExtended = gex
- this.header = header
- this.startBlockSize = 512 * Math.ceil(header.size / 512)
- this.blockRemain = this.startBlockSize
- this.remain = header.size
- this.type = header.type
- this.meta = false
- this.ignore = false
- switch (this.type) {
- case 'File':
- case 'OldFile':
- case 'Link':
- case 'SymbolicLink':
- case 'CharacterDevice':
- case 'BlockDevice':
- case 'Directory':
- case 'FIFO':
- case 'ContiguousFile':
- case 'GNUDumpDir':
- break
-&nbsp;
- case 'NextFileHasLongLinkpath':
- case 'NextFileHasLongPath':
- case 'OldGnuLongPath':
- case 'GlobalExtendedHeader':
- case 'ExtendedHeader':
- case 'OldExtendedHeader':
- this.meta = true
- break
-&nbsp;
- // NOTE: gnutar and bsdtar treat unrecognized types as 'File'
- // it may be worth doing the same, but with a warning.
- default:
- this.ignore = true
- }
-&nbsp;
- this.path = header.path
- this.mode = header.mode
- if (this.mode)
- this.mode = this.mode &amp; 0o7777
- this.uid = header.uid
- this.gid = header.gid
- this.uname = header.uname
- this.gname = header.gname
- this.size = header.size
- this.mtime = header.mtime
- this.atime = header.atime
- this.ctime = header.ctime
- this.linkpath = header.linkpath
- this.uname = header.uname
- this.gname = header.gname
-&nbsp;
- if (ex) this[SLURP](ex)
- if (gex) this[SLURP](gex, true)
- }
-&nbsp;
- write (data) {
- const writeLen = data.length
- if (writeLen &gt; this.blockRemain)
- throw new Error('writing more to entry than is appropriate')
-&nbsp;
- const r = this.remain
- const br = this.blockRemain
- this.remain = Math.max(0, r - writeLen)
- this.blockRemain = Math.max(0, br - writeLen)
- if (this.ignore)
- return true
-&nbsp;
- if (r &gt;= writeLen)
- return super.write(data)
-&nbsp;
- // r &lt; writeLen
- return super.write(data.slice(0, r))
- }
-&nbsp;
- [SLURP] (ex, global) {
- for (let k in ex) {
- // we slurp in everything except for the path attribute in
- // a global extended header, because that's weird.
- if (ex[k] !== null &amp;&amp; ex[k] !== undefined &amp;&amp;
- !(global &amp;&amp; k === 'path'))
- this[k] = ex[k]
- }
- }
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/replace.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/replace.js.html
deleted file mode 100644
index e764c04..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/replace.js.html
+++ /dev/null
@@ -1,722 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/replace.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> replace.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>131/131</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>70/70</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>18/18</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>128/128</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
-173
-174
-175
-176
-177
-178
-179
-180
-181
-182
-183
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
-211
-212
-213
-214
-215
-216
-217
-218
-219
-220</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">70x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">70x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">69x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">68x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">67x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">67x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">26x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">26x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">26x</span>
-<span class="cline-any cline-yes">26x</span>
-<span class="cline-any cline-yes">26x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">24x</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-yes">61x</span>
-<span class="cline-any cline-yes">63x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">61x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">59x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">55x</span>
-<span class="cline-any cline-yes">55x</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-yes">47x</span>
-<span class="cline-any cline-yes">47x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">45x</span>
-<span class="cline-any cline-yes">45x</span>
-<span class="cline-any cline-yes">28x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">26x</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">37x</span>
-<span class="cline-any cline-yes">37x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">37x</span>
-<span class="cline-any cline-yes">37x</span>
-<span class="cline-any cline-yes">8x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">29x</span>
-<span class="cline-any cline-yes">29x</span>
-<span class="cline-any cline-yes">29x</span>
-<span class="cline-any cline-yes">112x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">110x</span>
-<span class="cline-any cline-yes">110x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">104x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">102x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">98x</span>
-<span class="cline-any cline-yes">98x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">85x</span>
-<span class="cline-any cline-yes">85x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">81x</span>
-<span class="cline-any cline-yes">81x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">77x</span>
-<span class="cline-any cline-yes">46x</span>
-<span class="cline-any cline-yes">77x</span>
-<span class="cline-any cline-yes">77x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">29x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">45x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">39x</span>
-<span class="cline-any cline-yes">39x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">37x</span>
-<span class="cline-any cline-yes">37x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">41x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-yes">19x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">18x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// tar -r
-const hlo = require('./high-level-opt.js')
-const Pack = require('./pack.js')
-const Parse = require('./parse.js')
-const fs = require('fs')
-const fsm = require('fs-minipass')
-const t = require('./list.js')
-const path = require('path')
-&nbsp;
-// starting at the head of the file, read a Header
-// If the checksum is invalid, that's our position to start writing
-// If it is, jump forward by the specified size (round up to 512)
-// and try again.
-// Write the new Pack stream starting there.
-&nbsp;
-const Header = require('./header.js')
-&nbsp;
-const r = module.exports = (opt_, files, cb) =&gt; {
- const opt = hlo(opt_)
-&nbsp;
- if (!opt.file)
- throw new TypeError('file is required')
-&nbsp;
- if (opt.gzip)
- throw new TypeError('cannot append to compressed archives')
-&nbsp;
- if (!files || !Array.isArray(files) || !files.length)
- throw new TypeError('no files or directories specified')
-&nbsp;
- files = Array.from(files)
-&nbsp;
- return opt.sync ? replaceSync(opt, files)
- : replace(opt, files, cb)
-}
-&nbsp;
-const replaceSync = (opt, files) =&gt; {
- const p = new Pack.Sync(opt)
-&nbsp;
- let threw = true
- let fd
- let position
-&nbsp;
- try {
- try {
- fd = fs.openSync(opt.file, 'r+')
- } catch (er) {
- if (er.code === 'ENOENT')
- fd = fs.openSync(opt.file, 'w+')
- else
- throw er
- }
-&nbsp;
- const st = fs.fstatSync(fd)
- const headBuf = Buffer.alloc(512)
-&nbsp;
- POSITION: for (position = 0; position &lt; st.size; position += 512) {
- for (let bufPos = 0, bytes = 0; bufPos &lt; 512; bufPos += bytes) {
- bytes = fs.readSync(
- fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos
- )
-&nbsp;
- if (position === 0 &amp;&amp; headBuf[0] === 0x1f &amp;&amp; headBuf[1] === 0x8b)
- throw new Error('cannot append to compressed archives')
-&nbsp;
- if (!bytes)
- break POSITION
- }
-&nbsp;
- let h = new Header(headBuf)
- if (!h.cksumValid)
- break
- let entryBlockSize = 512 * Math.ceil(h.size / 512)
- if (position + entryBlockSize + 512 &gt; st.size)
- break
- // the 512 for the header we just parsed will be added as well
- // also jump ahead all the blocks for the body
- position += entryBlockSize
- if (opt.mtimeCache)
- opt.mtimeCache.set(h.path, h.mtime)
- }
- threw = false
-&nbsp;
- streamSync(opt, p, position, fd, files)
- } finally {
- if (threw)
- try { fs.closeSync(fd) } catch (er) {}
- }
-}
-&nbsp;
-const streamSync = (opt, p, position, fd, files) =&gt; {
- const stream = new fsm.WriteStreamSync(opt.file, {
- fd: fd,
- start: position
- })
- p.pipe(stream)
- addFilesSync(p, files)
-}
-&nbsp;
-const replace = (opt, files, cb) =&gt; {
- files = Array.from(files)
- const p = new Pack(opt)
-&nbsp;
- const getPos = (fd, size, cb_) =&gt; {
- const cb = (er, pos) =&gt; {
- if (er)
- fs.close(fd, _ =&gt; cb_(er))
- else
- cb_(null, pos)
- }
-&nbsp;
- let position = 0
- if (size === 0)
- return cb(null, 0)
-&nbsp;
- let bufPos = 0
- const headBuf = Buffer.alloc(512)
- const onread = (er, bytes) =&gt; {
- if (er)
- return cb(er)
- bufPos += bytes
- if (bufPos &lt; 512 &amp;&amp; bytes)
- return fs.read(
- fd, headBuf, bufPos, headBuf.length - bufPos,
- position + bufPos, onread
- )
-&nbsp;
- if (position === 0 &amp;&amp; headBuf[0] === 0x1f &amp;&amp; headBuf[1] === 0x8b)
- return cb(new Error('cannot append to compressed archives'))
-&nbsp;
- // truncated header
- if (bufPos &lt; 512)
- return cb(null, position)
-&nbsp;
- const h = new Header(headBuf)
- if (!h.cksumValid)
- return cb(null, position)
-&nbsp;
- const entryBlockSize = 512 * Math.ceil(h.size / 512)
- if (position + entryBlockSize + 512 &gt; size)
- return cb(null, position)
-&nbsp;
- position += entryBlockSize + 512
- if (position &gt;= size)
- return cb(null, position)
-&nbsp;
- if (opt.mtimeCache)
- opt.mtimeCache.set(h.path, h.mtime)
- bufPos = 0
- fs.read(fd, headBuf, 0, 512, position, onread)
- }
- fs.read(fd, headBuf, 0, 512, position, onread)
- }
-&nbsp;
- const promise = new Promise((resolve, reject) =&gt; {
- p.on('error', reject)
- let flag = 'r+'
- const onopen = (er, fd) =&gt; {
- if (er &amp;&amp; er.code === 'ENOENT' &amp;&amp; flag === 'r+') {
- flag = 'w+'
- return fs.open(opt.file, flag, onopen)
- }
-&nbsp;
- if (er)
- return reject(er)
-&nbsp;
- fs.fstat(fd, (er, st) =&gt; {
- if (er)
- return reject(er)
- getPos(fd, st.size, (er, position) =&gt; {
- if (er)
- return reject(er)
- const stream = new fsm.WriteStream(opt.file, {
- fd: fd,
- start: position
- })
- p.pipe(stream)
- stream.on('error', reject)
- stream.on('close', resolve)
- addFilesAsync(p, files)
- })
- })
- }
- fs.open(opt.file, flag, onopen)
- })
-&nbsp;
- return cb ? promise.then(cb, cb) : promise
-}
-&nbsp;
-const addFilesSync = (p, files) =&gt; {
- files.forEach(file =&gt; {
- if (file.charAt(0) === '@')
- t({
- file: path.resolve(p.cwd, file.substr(1)),
- sync: true,
- noResume: true,
- onentry: entry =&gt; p.add(entry)
- })
- else
- p.add(file)
- })
- p.end()
-}
-&nbsp;
-const addFilesAsync = (p, files) =&gt; {
- while (files.length) {
- const file = files.shift()
- if (file.charAt(0) === '@')
- return t({
- file: path.resolve(p.cwd, file.substr(1)),
- noResume: true,
- onentry: entry =&gt; p.add(entry)
- }).then(_ =&gt; addFilesAsync(p, files))
- else
- p.add(file)
- }
- p.end()
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/types.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/types.js.html
deleted file mode 100644
index ad8de07..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/types.js.html
+++ /dev/null
@@ -1,197 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/types.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> types.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>3/3</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>0/0</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>1/1</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>2/2</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">294x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-// map types from key to human-friendly name
-exports.name = new Map([
- ['0', 'File'],
- // same as File
- ['', 'OldFile'],
- ['1', 'Link'],
- ['2', 'SymbolicLink'],
- // Devices and FIFOs aren't fully supported
- // they are parsed, but skipped when unpacking
- ['3', 'CharacterDevice'],
- ['4', 'BlockDevice'],
- ['5', 'Directory'],
- ['6', 'FIFO'],
- // same as File
- ['7', 'ContiguousFile'],
- // pax headers
- ['g', 'GlobalExtendedHeader'],
- ['x', 'ExtendedHeader'],
- // vendor-specific stuff
- // skip
- ['A', 'SolarisACL'],
- // like 5, but with data, which should be skipped
- ['D', 'GNUDumpDir'],
- // metadata only, skip
- ['I', 'Inode'],
- // data = link path of next file
- ['K', 'NextFileHasLongLinkpath'],
- // data = path of next file
- ['L', 'NextFileHasLongPath'],
- // skip
- ['M', 'ContinuationFile'],
- // like L
- ['N', 'OldGnuLongPath'],
- // skip
- ['S', 'SparseFile'],
- // skip
- ['V', 'TapeVolumeHeader'],
- // like x
- ['X', 'OldExtendedHeader']
-])
-&nbsp;
-// map the other direction
-exports.code = new Map(Array.from(exports.name).map(kv =&gt; [kv[1], kv[0]]))
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/unpack.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/unpack.js.html
deleted file mode 100644
index 240a6fa..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/unpack.js.html
+++ /dev/null
@@ -1,1604 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/unpack.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> unpack.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>254/254</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>194/194</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>44/44</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>247/247</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
-173
-174
-175
-176
-177
-178
-179
-180
-181
-182
-183
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
-211
-212
-213
-214
-215
-216
-217
-218
-219
-220
-221
-222
-223
-224
-225
-226
-227
-228
-229
-230
-231
-232
-233
-234
-235
-236
-237
-238
-239
-240
-241
-242
-243
-244
-245
-246
-247
-248
-249
-250
-251
-252
-253
-254
-255
-256
-257
-258
-259
-260
-261
-262
-263
-264
-265
-266
-267
-268
-269
-270
-271
-272
-273
-274
-275
-276
-277
-278
-279
-280
-281
-282
-283
-284
-285
-286
-287
-288
-289
-290
-291
-292
-293
-294
-295
-296
-297
-298
-299
-300
-301
-302
-303
-304
-305
-306
-307
-308
-309
-310
-311
-312
-313
-314
-315
-316
-317
-318
-319
-320
-321
-322
-323
-324
-325
-326
-327
-328
-329
-330
-331
-332
-333
-334
-335
-336
-337
-338
-339
-340
-341
-342
-343
-344
-345
-346
-347
-348
-349
-350
-351
-352
-353
-354
-355
-356
-357
-358
-359
-360
-361
-362
-363
-364
-365
-366
-367
-368
-369
-370
-371
-372
-373
-374
-375
-376
-377
-378
-379
-380
-381
-382
-383
-384
-385
-386
-387
-388
-389
-390
-391
-392
-393
-394
-395
-396
-397
-398
-399
-400
-401
-402
-403
-404
-405
-406
-407
-408
-409
-410
-411
-412
-413
-414
-415
-416
-417
-418
-419
-420
-421
-422
-423
-424
-425
-426
-427
-428
-429
-430
-431
-432
-433
-434
-435
-436
-437
-438
-439
-440
-441
-442
-443
-444
-445
-446
-447
-448
-449
-450
-451
-452
-453
-454
-455
-456
-457
-458
-459
-460
-461
-462
-463
-464
-465
-466
-467
-468
-469
-470
-471
-472
-473
-474
-475
-476
-477
-478
-479
-480
-481
-482
-483
-484
-485
-486
-487
-488
-489
-490
-491
-492
-493
-494
-495
-496
-497
-498
-499
-500
-501
-502
-503
-504
-505
-506
-507
-508
-509
-510
-511
-512
-513
-514</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">60x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-yes">109x</span>
-<span class="cline-any cline-yes">109x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">134x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">125x</span>
-<span class="cline-any cline-yes">125x</span>
-<span class="cline-any cline-yes">125x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">119x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">131x</span>
-<span class="cline-any cline-yes">571x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">473x</span>
-<span class="cline-any cline-yes">98x</span>
-<span class="cline-any cline-yes">98x</span>
-<span class="cline-any cline-yes">98x</span>
-<span class="cline-any cline-yes">98x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">571x</span>
-<span class="cline-any cline-yes">144x</span>
-<span class="cline-any cline-yes">144x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">135x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">562x</span>
-<span class="cline-any cline-yes">545x</span>
-<span class="cline-any cline-yes">545x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">543x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">560x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">560x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">558x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">560x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">571x</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">560x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">560x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">179x</span>
-<span class="cline-any cline-yes">140x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">554x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">39x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">451x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">473x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">30x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">30x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">221x</span>
-<span class="cline-any cline-yes">221x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">221x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">221x</span>
-<span class="cline-any cline-yes">221x</span>
-<span class="cline-any cline-yes">421x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">421x</span>
-<span class="cline-any cline-yes">219x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">221x</span>
-<span class="cline-any cline-yes">219x</span>
-<span class="cline-any cline-yes">192x</span>
-<span class="cline-any cline-yes">192x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">219x</span>
-<span class="cline-any cline-yes">10x</span>
-<span class="cline-any cline-yes">10x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">219x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">221x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">97x</span>
-<span class="cline-any cline-yes">97x</span>
-<span class="cline-any cline-yes">97x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">94x</span>
-<span class="cline-any cline-yes">94x</span>
-<span class="cline-any cline-yes">171x</span>
-<span class="cline-any cline-yes">94x</span>
-<span class="cline-any cline-yes">94x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">94x</span>
-<span class="cline-any cline-yes">73x</span>
-<span class="cline-any cline-yes">73x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">94x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">94x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">19x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">354x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">364x</span>
-<span class="cline-any cline-yes">364x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">354x</span>
-<span class="cline-any cline-yes">354x</span>
-<span class="cline-any cline-yes">354x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-yes">342x</span>
-<span class="cline-any cline-yes">342x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">340x</span>
-<span class="cline-any cline-yes">318x</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-yes">16x</span>
-<span class="cline-any cline-yes">11x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">528x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">527x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">314x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">19x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">173x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-yes">21x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">59x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">200x</span>
-<span class="cline-any cline-yes">200x</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">191x</span>
-<span class="cline-any cline-yes">191x</span>
-<span class="cline-any cline-yes">17x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">15x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">13x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">174x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">93x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">93x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">93x</span>
-<span class="cline-any cline-yes">93x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">92x</span>
-<span class="cline-any cline-yes">86x</span>
-<span class="cline-any cline-yes">86x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">92x</span>
-<span class="cline-any cline-yes">86x</span>
-<span class="cline-any cline-yes">86x</span>
-<span class="cline-any cline-yes">58x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">85x</span>
-<span class="cline-any cline-yes">12x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">82x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">76x</span>
-<span class="cline-any cline-yes">76x</span>
-<span class="cline-any cline-yes">76x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">75x</span>
-<span class="cline-any cline-yes">56x</span>
-<span class="cline-any cline-yes">56x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">75x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">75x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-yes">276x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">19x</span>
-<span class="cline-any cline-yes">19x</span>
-<span class="cline-any cline-yes">17x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-yes">3x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-const assert = require('assert')
-const EE = require('events').EventEmitter
-const Parser = require('./parse.js')
-const fs = require('fs')
-const fsm = require('fs-minipass')
-const path = require('path')
-const mkdir = require('./mkdir.js')
-const mkdirSync = mkdir.sync
-const wc = require('./winchars.js')
-&nbsp;
-const ONENTRY = Symbol('onEntry')
-const CHECKFS = Symbol('checkFs')
-const MAKEFS = Symbol('makeFs')
-const FILE = Symbol('file')
-const DIRECTORY = Symbol('directory')
-const LINK = Symbol('link')
-const SYMLINK = Symbol('symlink')
-const HARDLINK = Symbol('hardlink')
-const UNSUPPORTED = Symbol('unsupported')
-const UNKNOWN = Symbol('unknown')
-const CHECKPATH = Symbol('checkPath')
-const MKDIR = Symbol('mkdir')
-const ONERROR = Symbol('onError')
-const PENDING = Symbol('pending')
-const PEND = Symbol('pend')
-const UNPEND = Symbol('unpend')
-const ENDED = Symbol('ended')
-const MAYBECLOSE = Symbol('maybeClose')
-const SKIP = Symbol('skip')
-const DOCHOWN = Symbol('doChown')
-const UID = Symbol('uid')
-const GID = Symbol('gid')
-&nbsp;
-// this.gid, entry.gid, this.processUid
-const uint32 = (a, b, c) =&gt;
- a === a &gt;&gt;&gt; 0 ? a
- : b === b &gt;&gt;&gt; 0 ? b
- : c
-&nbsp;
-class Unpack extends Parser {
- constructor (opt) {
- if (!opt)
- opt = {}
-&nbsp;
- opt.ondone = _ =&gt; {
- this[ENDED] = true
- this[MAYBECLOSE]()
- }
-&nbsp;
- super(opt)
-&nbsp;
- this.writable = true
- this.readable = false
-&nbsp;
- this[PENDING] = 0
- this[ENDED] = false
-&nbsp;
- this.dirCache = opt.dirCache || new Map()
-&nbsp;
- if (typeof opt.uid === 'number' || typeof opt.gid === 'number') {
- // need both or neither
- if (typeof opt.uid !== 'number' || typeof opt.gid !== 'number')
- throw new TypeError('cannot set owner without number uid and gid')
- if (opt.preserveOwner)
- throw new TypeError(
- 'cannot preserve owner in archive and also set owner explicitly')
- this.uid = opt.uid
- this.gid = opt.gid
- this.setOwner = true
- } else {
- this.uid = null
- this.gid = null
- this.setOwner = false
- }
-&nbsp;
- // default true for root
- if (opt.preserveOwner === undefined &amp;&amp; typeof opt.uid !== 'number')
- this.preserveOwner = process.getuid &amp;&amp; process.getuid() === 0
- else
- this.preserveOwner = !!opt.preserveOwner
-&nbsp;
- this.processUid = (this.preserveOwner || this.setOwner) &amp;&amp; process.getuid ?
- process.getuid() : null
- this.processGid = (this.preserveOwner || this.setOwner) &amp;&amp; process.getgid ?
- process.getgid() : null
-&nbsp;
- // turn &gt;&lt;?| in filenames into 0xf000-higher encoded forms
- this.win32 = !!opt.win32 || process.platform === 'win32'
-&nbsp;
- // do not unpack over files that are newer than what's in the archive
- this.newer = !!opt.newer
-&nbsp;
- // do not unpack over ANY files
- this.keep = !!opt.keep
-&nbsp;
- // do not set mtime/atime of extracted entries
- this.noMtime = !!opt.noMtime
-&nbsp;
- // allow .., absolute path entries, and unpacking through symlinks
- // without this, warn and skip .., relativize absolutes, and error
- // on symlinks in extraction path
- this.preservePaths = !!opt.preservePaths
-&nbsp;
- // unlink files and links before writing. This breaks existing hard
- // links, and removes symlink directories rather than erroring
- this.unlink = !!opt.unlink
-&nbsp;
- this.cwd = path.resolve(opt.cwd || process.cwd())
- this.strip = +opt.strip || 0
- this.processUmask = process.umask()
- this.umask = typeof opt.umask === 'number' ? opt.umask : this.processUmask
- // default mode for dirs created as parents
- this.dmode = opt.dmode || (0o0777 &amp; (~this.umask))
- this.fmode = opt.fmode || (0o0666 &amp; (~this.umask))
- this.on('entry', entry =&gt; this[ONENTRY](entry))
- }
-&nbsp;
- [MAYBECLOSE] () {
- if (this[ENDED] &amp;&amp; this[PENDING] === 0) {
- this.emit('prefinish')
- this.emit('finish')
- this.emit('end')
- this.emit('close')
- }
- }
-&nbsp;
- [CHECKPATH] (entry) {
- if (this.strip) {
- const parts = entry.path.split(/\/|\\/)
- if (parts.length &lt; this.strip)
- return false
- entry.path = parts.slice(this.strip).join('/')
- }
-&nbsp;
- if (!this.preservePaths) {
- const p = entry.path
- if (p.match(/(^|\/|\\)\.\.(\\|\/|$)/)) {
- this.warn('path contains \'..\'', p)
- return false
- }
-&nbsp;
- // absolutes on posix are also absolutes on win32
- // so we only need to test this one to get both
- if (path.win32.isAbsolute(p)) {
- const parsed = path.win32.parse(p)
- this.warn('stripping ' + parsed.root + ' from absolute path', p)
- entry.path = p.substr(parsed.root.length)
- }
- }
-&nbsp;
- // only encode : chars that aren't drive letter indicators
- if (this.win32) {
- const parsed = path.win32.parse(entry.path)
- entry.path = parsed.root === '' ? wc.encode(entry.path)
- : parsed.root + wc.encode(entry.path.substr(parsed.root.length))
- }
-&nbsp;
- if (path.isAbsolute(entry.path))
- entry.absolute = entry.path
- else
- entry.absolute = path.resolve(this.cwd, entry.path)
-&nbsp;
- return true
- }
-&nbsp;
- [ONENTRY] (entry) {
- if (!this[CHECKPATH](entry))
- return entry.resume()
-&nbsp;
- assert.equal(typeof entry.absolute, 'string')
-&nbsp;
- switch (entry.type) {
- case 'Directory':
- case 'GNUDumpDir':
- if (entry.mode)
- entry.mode = entry.mode | 0o700
-&nbsp;
- case 'File':
- case 'OldFile':
- case 'ContiguousFile':
- case 'Link':
- case 'SymbolicLink':
- return this[CHECKFS](entry)
-&nbsp;
- case 'CharacterDevice':
- case 'BlockDevice':
- case 'FIFO':
- return this[UNSUPPORTED](entry)
- }
- }
-&nbsp;
- [ONERROR] (er, entry) {
- // Cwd has to exist, or else nothing works. That's serious.
- // Other errors are warnings, which raise the error in strict
- // mode, but otherwise continue on.
- if (er.name === 'CwdError')
- this.emit('error', er)
- else {
- this.warn(er.message, er)
- this[UNPEND]()
- entry.resume()
- }
- }
-&nbsp;
- [MKDIR] (dir, mode, cb) {
- mkdir(dir, {
- uid: this.uid,
- gid: this.gid,
- processUid: this.processUid,
- processGid: this.processGid,
- umask: this.processUmask,
- preserve: this.preservePaths,
- unlink: this.unlink,
- cache: this.dirCache,
- cwd: this.cwd,
- mode: mode
- }, cb)
- }
-&nbsp;
- [DOCHOWN] (entry) {
- // in preserve owner mode, chown if the entry doesn't match process
- // in set owner mode, chown if setting doesn't match process
- return this.preserveOwner &amp;&amp;
- ( typeof entry.uid === 'number' &amp;&amp; entry.uid !== this.processUid ||
- typeof entry.gid === 'number' &amp;&amp; entry.gid !== this.processGid )
- ||
- ( typeof this.uid === 'number' &amp;&amp; this.uid !== this.processUid ||
- typeof this.gid === 'number' &amp;&amp; this.gid !== this.processGid )
- }
-&nbsp;
- [UID] (entry) {
- return uint32(this.uid, entry.uid, this.processUid)
- }
-&nbsp;
- [GID] (entry) {
- return uint32(this.gid, entry.gid, this.processGid)
- }
-&nbsp;
- [FILE] (entry) {
- const mode = entry.mode &amp; 0o7777 || this.fmode
- const stream = new fsm.WriteStream(entry.absolute, {
- mode: mode,
- autoClose: false
- })
- stream.on('error', er =&gt; this[ONERROR](er, entry))
-&nbsp;
- let actions = 1
- const done = er =&gt; {
- if (er) {
- this[ONERROR](er, entry)
- actions = 1
- }
-&nbsp;
- if (--actions === 0)
- fs.close(stream.fd, _ =&gt; this[UNPEND]())
- }
-&nbsp;
- stream.on('finish', _ =&gt; {
- if (entry.mtime &amp;&amp; !this.noMtime) {
- actions++
- fs.futimes(stream.fd, entry.atime || new Date(), entry.mtime, done)
- }
-&nbsp;
- if (this[DOCHOWN](entry)) {
- actions++
- fs.fchown(stream.fd, this[UID](entry), this[GID](entry), done)
- }
-&nbsp;
- done()
- })
-&nbsp;
- entry.pipe(stream)
- }
-&nbsp;
- [DIRECTORY] (entry) {
- const mode = entry.mode &amp; 0o7777 || this.dmode
- this[MKDIR](entry.absolute, mode, er =&gt; {
- if (er)
- return this[ONERROR](er, entry)
-&nbsp;
- let actions = 1
- const done = _ =&gt; {
- if (--actions === 0) {
- this[UNPEND]()
- entry.resume()
- }
- }
-&nbsp;
- if (entry.mtime &amp;&amp; !this.noMtime) {
- actions++
- fs.utimes(entry.absolute, entry.atime || new Date(), entry.mtime, done)
- }
-&nbsp;
- if (this[DOCHOWN](entry)) {
- actions++
- fs.chown(entry.absolute, this[UID](entry), this[GID](entry), done)
- }
-&nbsp;
- done()
- })
- }
-&nbsp;
- [UNSUPPORTED] (entry) {
- this.warn('unsupported entry type: ' + entry.type, entry)
- entry.resume()
- }
-&nbsp;
- [SYMLINK] (entry) {
- this[LINK](entry, entry.linkpath, 'symlink')
- }
-&nbsp;
- [HARDLINK] (entry) {
- this[LINK](entry, path.resolve(this.cwd, entry.linkpath), 'link')
- }
-&nbsp;
- [PEND] () {
- this[PENDING]++
- }
-&nbsp;
- [UNPEND] () {
- this[PENDING]--
- this[MAYBECLOSE]()
- }
-&nbsp;
- [SKIP] (entry) {
- this[UNPEND]()
- entry.resume()
- }
-&nbsp;
- // check if a thing is there, and if so, try to clobber it
- [CHECKFS] (entry) {
- this[PEND]()
- this[MKDIR](path.dirname(entry.absolute), this.dmode, er =&gt; {
- if (er)
- return this[ONERROR](er, entry)
- fs.lstat(entry.absolute, (er, st) =&gt; {
- if (st &amp;&amp; (this.keep || this.newer &amp;&amp; st.mtime &gt; entry.mtime))
- this[SKIP](entry)
- else if (er || (entry.type === 'File' &amp;&amp; !this.unlink &amp;&amp; st.isFile()))
- this[MAKEFS](null, entry)
- else if (st.isDirectory()) {
- if (entry.type === 'Directory') {
- if (!entry.mode || (st.mode &amp; 0o7777) === entry.mode)
- this[MAKEFS](null, entry)
- else
- fs.chmod(entry.absolute, entry.mode, er =&gt; this[MAKEFS](er, entry))
- } else
- fs.rmdir(entry.absolute, er =&gt; this[MAKEFS](er, entry))
- } else
- fs.unlink(entry.absolute, er =&gt; this[MAKEFS](er, entry))
- })
- })
- }
-&nbsp;
- [MAKEFS] (er, entry) {
- if (er)
- return this[ONERROR](er, entry)
-&nbsp;
- switch (entry.type) {
- case 'File':
- case 'OldFile':
- case 'ContiguousFile':
- return this[FILE](entry)
-&nbsp;
- case 'Link':
- return this[HARDLINK](entry)
-&nbsp;
- case 'SymbolicLink':
- return this[SYMLINK](entry)
-&nbsp;
- case 'Directory':
- case 'GNUDumpDir':
- return this[DIRECTORY](entry)
- }
- }
-&nbsp;
- [LINK] (entry, linkpath, link) {
- // XXX: get the type ('file' or 'dir') for windows
- fs[link](linkpath, entry.absolute, er =&gt; {
- if (er)
- return this[ONERROR](er, entry)
- this[UNPEND]()
- entry.resume()
- })
- }
-}
-&nbsp;
-class UnpackSync extends Unpack {
- constructor (opt) {
- super(opt)
- }
-&nbsp;
- [CHECKFS] (entry) {
- const er = this[MKDIR](path.dirname(entry.absolute), this.dmode)
- if (er)
- return this[ONERROR](er, entry)
- try {
- const st = fs.lstatSync(entry.absolute)
- if (this.keep || this.newer &amp;&amp; st.mtime &gt; entry.mtime)
- return this[SKIP](entry)
- else if (entry.type === 'File' &amp;&amp; !this.unlink &amp;&amp; st.isFile())
- return this[MAKEFS](null, entry)
- else {
- try {
- if (st.isDirectory()) {
- if (entry.type === 'Directory') {
- if (entry.mode &amp;&amp; (st.mode &amp; 0o7777) !== entry.mode)
- fs.chmodSync(entry.absolute, entry.mode)
- } else
- fs.rmdirSync(entry.absolute)
- } else
- fs.unlinkSync(entry.absolute)
- return this[MAKEFS](null, entry)
- } catch (er) {
- return this[ONERROR](er, entry)
- }
- }
- } catch (er) {
- return this[MAKEFS](null, entry)
- }
- }
-&nbsp;
- [FILE] (entry) {
- const mode = entry.mode &amp; 0o7777 || this.fmode
-&nbsp;
- const oner = er =&gt; {
- try { fs.closeSync(fd) } catch (_) {}
- this[ONERROR](er, entry)
- }
-&nbsp;
- let stream
- let fd
- try {
- fd = fs.openSync(entry.absolute, 'w', mode)
- } catch (er) {
- return oner(er)
- }
-&nbsp;
- entry.on('data', chunk =&gt; {
- try {
- fs.writeSync(fd, chunk, 0, chunk.length)
- } catch (er) {
- oner(er)
- }
- })
-&nbsp;
- entry.on('end', _ =&gt; {
- try {
- if (entry.mtime &amp;&amp; !this.noMtime)
- fs.futimesSync(fd, entry.atime || new Date(), entry.mtime)
-&nbsp;
- if (this[DOCHOWN](entry))
- fs.fchownSync(fd, this[UID](entry), this[GID](entry))
-&nbsp;
- fs.closeSync(fd)
- } catch (er) {
- return oner(er)
- }
- })
-&nbsp;
- }
-&nbsp;
- [DIRECTORY] (entry) {
- const mode = entry.mode &amp; 0o7777 || this.dmode
- const er = this[MKDIR](entry.absolute, mode)
- if (er)
- return this[ONERROR](er, entry)
- if (entry.mtime &amp;&amp; !this.noMtime) {
- try {
- fs.utimesSync(entry.absolute, entry.atime || new Date(), entry.mtime)
- } catch (er) {}
- }
- if (this[DOCHOWN](entry)) {
- try {
- fs.chownSync(entry.absolute, this[UID](entry), this[GID](entry))
- } catch (er) {}
- }
- entry.resume()
- }
-&nbsp;
- [MKDIR] (dir, mode) {
- try {
- return mkdir.sync(dir, {
- uid: this.uid,
- gid: this.gid,
- processUid: this.processUid,
- processGid: this.processGid,
- umask: this.processUmask,
- preserve: this.preservePaths,
- unlink: this.unlink,
- cache: this.dirCache,
- cwd: this.cwd,
- mode: mode
- })
- } catch (er) {
- return er
- }
- }
-&nbsp;
- [LINK] (entry, linkpath, link) {
- try {
- fs[link + 'Sync'](linkpath, entry.absolute)
- entry.resume()
- } catch (er) {
- return this[ONERROR](er, entry)
- }
- }
-}
-&nbsp;
-Unpack.Sync = UnpackSync
-module.exports = Unpack
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/update.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/update.js.html
deleted file mode 100644
index 531cdde..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/update.js.html
+++ /dev/null
@@ -1,173 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/update.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> update.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>20/20</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>15/15</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>4/4</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>20/20</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">36x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">36x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">35x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">24x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// tar -u
-&nbsp;
-const hlo = require('./high-level-opt.js')
-const r = require('./replace.js')
-// just call tar.r with the filter and mtimeCache
-&nbsp;
-const u = module.exports = (opt_, files, cb) =&gt; {
- const opt = hlo(opt_)
-&nbsp;
- if (!opt.file)
- throw new TypeError('file is required')
-&nbsp;
- if (opt.gzip)
- throw new TypeError('cannot append to compressed archives')
-&nbsp;
- if (!files || !Array.isArray(files) || !files.length)
- throw new TypeError('no files or directories specified')
-&nbsp;
- files = Array.from(files)
-&nbsp;
- mtimeFilter(opt)
- return r(opt, files, cb)
-}
-&nbsp;
-const mtimeFilter = opt =&gt; {
- const filter = opt.filter
-&nbsp;
- if (!opt.mtimeCache)
- opt.mtimeCache = new Map()
-&nbsp;
- opt.filter = filter ? (path, stat) =&gt;
- filter(path, stat) &amp;&amp; !(opt.mtimeCache.get(path) &gt; stat.mtime)
- : (path, stat) =&gt; !(opt.mtimeCache.get(path) &gt; stat.mtime)
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/warn-mixin.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/warn-mixin.js.html
deleted file mode 100644
index 99aa9f3..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/warn-mixin.js.html
+++ /dev/null
@@ -1,107 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/warn-mixin.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> warn-mixin.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>9/9</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>4/4</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>2/2</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>8/8</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">333x</span>
-<span class="cline-any cline-yes">184x</span>
-<span class="cline-any cline-yes">149x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">147x</span>
-<span class="cline-any cline-yes">147x</span>
-<span class="cline-any cline-yes">147x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-module.exports = Base =&gt; class extends Base {
- warn (msg, data) {
- if (!this.strict)
- this.emit('warn', msg, data)
- else if (data instanceof Error)
- this.emit('error', data)
- else {
- const er = new Error(msg)
- er.data = data
- this.emit('error', er)
- }
- }
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/winchars.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/winchars.js.html
deleted file mode 100644
index 8e9fb65..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/winchars.js.html
+++ /dev/null
@@ -1,134 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/winchars.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> winchars.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>12/12</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>0/0</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>7/7</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>8/8</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">45x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">45x</span>
-<span class="cline-any cline-yes">45x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">9x</span>
-<span class="cline-any cline-yes">30x</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-&nbsp;
-// When writing files on Windows, translate the characters to their
-// 0xf000 higher-encoded versions.
-&nbsp;
-const raw = [
- '|',
- '&lt;',
- '&gt;',
- '?',
- ':'
-]
-&nbsp;
-const win = raw.map(char =&gt;
- String.fromCharCode(0xf000 + char.charCodeAt(0)))
-&nbsp;
-const toWin = new Map(raw.map((char, i) =&gt; [char, win[i]]))
-const toRaw = new Map(win.map((char, i) =&gt; [char, raw[i]]))
-&nbsp;
-module.exports = {
- encode: s =&gt; raw.reduce((s, c) =&gt; s.split(c).join(toWin.get(c)), s),
- decode: s =&gt; win.reduce((s, c) =&gt; s.split(c).join(toRaw.get(c)), s)
-}
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov-report/tar/lib/write-entry.js.html b/node_modules/tar/coverage/lcov-report/tar/lib/write-entry.js.html
deleted file mode 100644
index ba22b99..0000000
--- a/node_modules/tar/coverage/lcov-report/tar/lib/write-entry.js.html
+++ /dev/null
@@ -1,1268 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <title>Code coverage report for tar/lib/write-entry.js</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../../prettify.css" />
- <link rel="stylesheet" href="../../base.css" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style type='text/css'>
- .coverage-summary .sorter {
- background-image: url(../../sort-arrow-sprite.png);
- }
- </style>
-</head>
-<body>
-<div class='wrapper'>
- <div class='pad1'>
- <h1>
- <a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> write-entry.js
- </h1>
- <div class='clearfix'>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.53% </span>
- <span class="quiet">Statements</span>
- <span class='fraction'>213/214</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">97.87% </span>
- <span class="quiet">Branches</span>
- <span class='fraction'>184/188</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">100% </span>
- <span class="quiet">Functions</span>
- <span class='fraction'>31/31</span>
- </div>
- <div class='fl pad1y space-right2'>
- <span class="strong">99.53% </span>
- <span class="quiet">Lines</span>
- <span class='fraction'>210/211</span>
- </div>
- </div>
- </div>
- <div class='status-line high'></div>
-<pre><table class="coverage">
-<tr><td class="line-count quiet">1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
-68
-69
-70
-71
-72
-73
-74
-75
-76
-77
-78
-79
-80
-81
-82
-83
-84
-85
-86
-87
-88
-89
-90
-91
-92
-93
-94
-95
-96
-97
-98
-99
-100
-101
-102
-103
-104
-105
-106
-107
-108
-109
-110
-111
-112
-113
-114
-115
-116
-117
-118
-119
-120
-121
-122
-123
-124
-125
-126
-127
-128
-129
-130
-131
-132
-133
-134
-135
-136
-137
-138
-139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
-153
-154
-155
-156
-157
-158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
-173
-174
-175
-176
-177
-178
-179
-180
-181
-182
-183
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193
-194
-195
-196
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
-211
-212
-213
-214
-215
-216
-217
-218
-219
-220
-221
-222
-223
-224
-225
-226
-227
-228
-229
-230
-231
-232
-233
-234
-235
-236
-237
-238
-239
-240
-241
-242
-243
-244
-245
-246
-247
-248
-249
-250
-251
-252
-253
-254
-255
-256
-257
-258
-259
-260
-261
-262
-263
-264
-265
-266
-267
-268
-269
-270
-271
-272
-273
-274
-275
-276
-277
-278
-279
-280
-281
-282
-283
-284
-285
-286
-287
-288
-289
-290
-291
-292
-293
-294
-295
-296
-297
-298
-299
-300
-301
-302
-303
-304
-305
-306
-307
-308
-309
-310
-311
-312
-313
-314
-315
-316
-317
-318
-319
-320
-321
-322
-323
-324
-325
-326
-327
-328
-329
-330
-331
-332
-333
-334
-335
-336
-337
-338
-339
-340
-341
-342
-343
-344
-345
-346
-347
-348
-349
-350
-351
-352
-353
-354
-355
-356
-357
-358
-359
-360
-361
-362
-363
-364
-365
-366
-367
-368
-369
-370
-371
-372
-373
-374
-375
-376
-377
-378
-379
-380
-381
-382
-383
-384
-385
-386
-387
-388
-389
-390
-391
-392
-393
-394
-395
-396
-397
-398
-399
-400
-401
-402</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6570x</span>
-<span class="cline-any cline-yes">6570x</span>
-<span class="cline-any cline-yes">6570x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-yes">6515x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6569x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6567x</span>
-<span class="cline-any cline-yes">6567x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6567x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6567x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6567x</span>
-<span class="cline-any cline-yes">6513x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">54x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">902x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-yes">5664x</span>
-<span class="cline-any cline-yes">867x</span>
-<span class="cline-any cline-yes">34x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6563x</span>
-<span class="cline-any cline-yes">4x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6563x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6563x</span>
-<span class="cline-any cline-yes">17x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6563x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">867x</span>
-<span class="cline-any cline-yes">859x</span>
-<span class="cline-any cline-yes">867x</span>
-<span class="cline-any cline-yes">867x</span>
-<span class="cline-any cline-yes">867x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">31x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5664x</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">7x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5663x</span>
-<span class="cline-any cline-yes">5663x</span>
-<span class="cline-any cline-yes">42x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5621x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5568x</span>
-<span class="cline-any cline-yes">5568x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">5566x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5617x</span>
-<span class="cline-any cline-yes">5617x</span>
-<span class="cline-any cline-yes">5617x</span>
-<span class="cline-any cline-yes">5617x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7336x</span>
-<span class="cline-any cline-yes">7336x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">7335x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">5566x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7393x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-yes">5614x</span>
-<span class="cline-any cline-yes">1700449x</span>
-<span class="cline-any cline-yes">1700449x</span>
-<span class="cline-any cline-yes">1700449x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">7392x</span>
-<span class="cline-any cline-yes">5614x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">5614x</span>
-<span class="cline-any cline-yes">5614x</span>
-<span class="cline-any cline-yes">5614x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1778x</span>
-<span class="cline-any cline-yes">1754x</span>
-<span class="cline-any cline-yes">1754x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1778x</span>
-<span class="cline-any cline-yes">1778x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">99x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">20x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">53x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">59x</span>
-<span class="cline-any cline-yes">59x</span>
-<span class="cline-any cline-yes">59x</span>
-<span class="cline-any cline-yes">58x</span>
-<span class="cline-any cline-yes">57x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">59x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">51x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-no">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">26x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">27x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">33x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-yes">2x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">14x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-yes">32x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">52x</span>
-<span class="cline-any cline-yes">52x</span>
-<span class="cline-any cline-yes">1x</span>
-<span class="cline-any cline-yes">51x</span>
-<span class="cline-any cline-yes">51x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">29x</span>
-<span class="cline-any cline-yes">22x</span>
-<span class="cline-any cline-yes">29x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-yes">6566x</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">6x</span>
-<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
-const MiniPass = require('minipass')
-const Pax = require('./pax.js')
-const Header = require('./header.js')
-const ReadEntry = require('./read-entry.js')
-const fs = require('fs')
-const path = require('path')
-&nbsp;
-const types = require('./types.js')
-const maxReadSize = 16 * 1024 * 1024
-const PROCESS = Symbol('process')
-const FILE = Symbol('file')
-const DIRECTORY = Symbol('directory')
-const SYMLINK = Symbol('symlink')
-const HARDLINK = Symbol('hardlink')
-const HEADER = Symbol('header')
-const READ = Symbol('read')
-const LSTAT = Symbol('lstat')
-const ONLSTAT = Symbol('onlstat')
-const ONREAD = Symbol('onread')
-const ONREADLINK = Symbol('onreadlink')
-const OPENFILE = Symbol('openfile')
-const ONOPENFILE = Symbol('onopenfile')
-const CLOSE = Symbol('close')
-const warner = require('./warn-mixin.js')
-const winchars = require('./winchars.js')
-&nbsp;
-const WriteEntry = warner(class WriteEntry extends MiniPass {
- constructor (p, opt) {
- opt = opt || {}
- super(opt)
- if (typeof p !== 'string')
- throw new TypeError('path is required')
- this.path = p
- // suppress atime, ctime, uid, gid, uname, gname
- this.portable = !!opt.portable
- // until node has builtin pwnam functions, this'll have to do
- this.myuid = process.getuid &amp;&amp; process.getuid()
- this.myuser = process.env.USER || ''
- this.maxReadSize = opt.maxReadSize || maxReadSize
- this.linkCache = opt.linkCache || new Map()
- this.statCache = opt.statCache || new Map()
- this.preservePaths = !!opt.preservePaths
- this.cwd = opt.cwd || process.cwd()
- this.strict = !!opt.strict
- this.noPax = !!opt.noPax
- this.noMtime = !!opt.noMtime
-&nbsp;
- if (typeof opt.onwarn === 'function')
- this.on('warn', opt.onwarn)
-&nbsp;
- if (!this.preservePaths &amp;&amp; path.win32.isAbsolute(p)) {
- // absolutes on posix are also absolutes on win32
- // so we only need to test this one to get both
- const parsed = path.win32.parse(p)
- this.warn('stripping ' + parsed.root + ' from absolute path', p)
- this.path = p.substr(parsed.root.length)
- }
-&nbsp;
- this.win32 = !!opt.win32 || process.platform === 'win32'
- if (this.win32) {
- this.path = winchars.decode(this.path.replace(/\\/g, '/'))
- p = p.replace(/\\/g, '/')
- }
-&nbsp;
- this.absolute = opt.absolute || path.resolve(this.cwd, p)
-&nbsp;
- if (this.path === '')
- this.path = './'
-&nbsp;
- if (this.statCache.has(this.absolute))
- this[ONLSTAT](this.statCache.get(this.absolute))
- else
- this[LSTAT]()
- }
-&nbsp;
- [LSTAT] () {
- fs.lstat(this.absolute, (er, stat) =&gt; {
- if (er)
- return this.emit('error', er)
- this[ONLSTAT](stat)
- })
- }
-&nbsp;
- [ONLSTAT] (stat) {
- this.statCache.set(this.absolute, stat)
- this.stat = stat
- if (!stat.isFile())
- stat.size = 0
- this.type = getType(stat)
- this.emit('stat', stat)
- this[PROCESS]()
- }
-&nbsp;
- [PROCESS] () {
- switch (this.type) {
- case 'File': return this[FILE]()
- case 'Directory': return this[DIRECTORY]()
- case 'SymbolicLink': return this[SYMLINK]()
- // unsupported types are ignored.
- default: return this.end()
- }
- }
-&nbsp;
- [HEADER] () {
- if (this.type === 'Directory' &amp;&amp; this.portable)
- this.noMtime = true
-&nbsp;
- this.header = new Header({
- path: this.path,
- linkpath: this.linkpath,
- // only the permissions and setuid/setgid/sticky bitflags
- // not the higher-order bits that specify file type
- mode: this.stat.mode &amp; 0o7777,
- uid: this.portable ? null : this.stat.uid,
- gid: this.portable ? null : this.stat.gid,
- size: this.stat.size,
- mtime: this.noMtime ? null : this.stat.mtime,
- type: this.type,
- uname: this.portable ? null :
- this.stat.uid === this.myuid ? this.myuser : '',
- atime: this.portable ? null : this.stat.atime,
- ctime: this.portable ? null : this.stat.ctime
- })
-&nbsp;
- if (this.header.encode() &amp;&amp; !this.noPax)
- this.write(new Pax({
- atime: this.portable ? null : this.header.atime,
- ctime: this.portable ? null : this.header.ctime,
- gid: this.portable ? null : this.header.gid,
- mtime: this.noMtime ? null : this.header.mtime,
- path: this.path,
- linkpath: this.linkpath,
- size: this.header.size,
- uid: this.portable ? null : this.header.uid,
- uname: this.portable ? null : this.header.uname,
- dev: this.portable ? null : this.stat.dev,
- ino: this.portable ? null : this.stat.ino,
- nlink: this.portable ? null : this.stat.nlink
- }).encode())
- this.write(this.header.block)
- }
-&nbsp;
- [DIRECTORY] () {
- if (this.path.substr(-1) !== '/')
- this.path += '/'
- this.stat.size = 0
- this[HEADER]()
- this.end()
- }
-&nbsp;
- [SYMLINK] () {
- fs.readlink(this.absolute, (er, linkpath) =&gt; {
- if (er)
- return this.emit('error', er)
- this[ONREADLINK](linkpath)
- })
- }
-&nbsp;
- [ONREADLINK] (linkpath) {
- this.linkpath = linkpath
- this[HEADER]()
- this.end()
- }
-&nbsp;
- [HARDLINK] (linkpath) {
- this.type = 'Link'
- this.linkpath = path.relative(this.cwd, linkpath)
- this.stat.size = 0
- this[HEADER]()
- this.end()
- }
-&nbsp;
- [FILE] () {
- if (this.stat.nlink &gt; 1) {
- const linkKey = this.stat.dev + ':' + this.stat.ino
- if (this.linkCache.has(linkKey)) {
- const linkpath = this.linkCache.get(linkKey)
- if (linkpath.indexOf(this.cwd) === 0)
- return this[HARDLINK](linkpath)
- }
- this.linkCache.set(linkKey, this.absolute)
- }
-&nbsp;
- this[HEADER]()
- if (this.stat.size === 0)
- return this.end()
-&nbsp;
- this[OPENFILE]()
- }
-&nbsp;
- [OPENFILE] () {
- fs.open(this.absolute, 'r', (er, fd) =&gt; {
- if (er)
- return this.emit('error', er)
- this[ONOPENFILE](fd)
- })
- }
-&nbsp;
- [ONOPENFILE] (fd) {
- const blockLen = 512 * Math.ceil(this.stat.size / 512)
- const bufLen = Math.min(blockLen, this.maxReadSize)
- const buf = Buffer.allocUnsafe(bufLen)
- this[READ](fd, buf, 0, buf.length, 0, this.stat.size, blockLen)
- }
-&nbsp;
- [READ] (fd, buf, offset, length, pos, remain, blockRemain) {
- fs.read(fd, buf, offset, length, pos, (er, bytesRead) =&gt; {
- if (er)
- return this[CLOSE](fd, _ =&gt; this.emit('error', er))
- this[ONREAD](fd, buf, offset, length, pos, remain, blockRemain, bytesRead)
- })
- }
-&nbsp;
- [CLOSE] (fd, cb) {
- fs.close(fd, cb)
- }
-&nbsp;
- [ONREAD] (fd, buf, offset, length, pos, remain, blockRemain, bytesRead) {
- if (bytesRead &lt;= 0 &amp;&amp; remain &gt; 0) {
- const er = new Error('unexpected EOF')
- er.path = this.absolute
- er.syscall = 'read'
- er.code = 'EOF'
- this.emit('error', er)
- }
-&nbsp;
- // null out the rest of the buffer, if we could fit the block padding
- if (bytesRead === remain) {
- for (let i = bytesRead; i &lt; length &amp;&amp; bytesRead &lt; blockRemain; i++) {
- buf[i + offset] = 0
- bytesRead ++
- remain ++
- }
- }
-&nbsp;
- const writeBuf = offset === 0 &amp;&amp; bytesRead === buf.length ?
- buf : buf.slice(offset, offset + bytesRead)
- remain -= bytesRead
- blockRemain -= bytesRead
- pos += bytesRead
- offset += bytesRead
-&nbsp;
- this.write(writeBuf)
-&nbsp;
- if (!remain) {
- if (blockRemain)
- this.write(Buffer.alloc(blockRemain))
- this.end()
- this[CLOSE](fd, _ =&gt; _)
- return
- }
-&nbsp;
- if (offset &gt;= length) {
- buf = Buffer.allocUnsafe(length)
- offset = 0
- }
- length = buf.length - offset
- this[READ](fd, buf, offset, length, pos, remain, blockRemain)
- }
-})
-&nbsp;
-class WriteEntrySync extends WriteEntry {
- constructor (path, opt) {
- super(path, opt)
- }
-&nbsp;
- [LSTAT] () {
- this[ONLSTAT](fs.lstatSync(this.absolute))
- }
-&nbsp;
- [SYMLINK] () {
- this[ONREADLINK](fs.readlinkSync(this.absolute))
- }
-&nbsp;
- [OPENFILE] () {
- this[ONOPENFILE](fs.openSync(this.absolute, 'r'))
- }
-&nbsp;
- [READ] (fd, buf, offset, length, pos, remain, blockRemain) {
- let threw = true
- try {
- const bytesRead = fs.readSync(fd, buf, offset, length, pos)
- this[ONREAD](fd, buf, offset, length, pos, remain, blockRemain, bytesRead)
- threw = false
- } finally {
- if (threw)
- try { this[CLOSE](fd) } catch (er) {}
- }
- }
-&nbsp;
- [CLOSE] (fd) {
- fs.closeSync(fd)
- }
-}
-&nbsp;
-const WriteEntryTar = warner(class WriteEntryTar extends MiniPass {
- constructor (readEntry, opt) {
- opt = opt || {}
- super(opt)
- this.preservePaths = !!opt.preservePaths
- this.portable = !!opt.portable
- this.strict = !!opt.strict
- this.noPax = !!opt.noPax
- this.noMtime = !!opt.noMtime
-&nbsp;
- this.readEntry = readEntry
- this.type = readEntry.type
- <span class="missing-if-branch" title="if path not taken" >I</span>if (this.type === 'Directory' &amp;&amp; this.portable)
-<span class="cstat-no" title="statement not covered" > this.noMtime = true</span>
-&nbsp;
- this.path = readEntry.path
- this.mode = readEntry.mode
- if (this.mode)
- this.mode = this.mode &amp; 0o7777
- this.uid = this.portable ? null : readEntry.uid
- this.gid = this.portable ? null : readEntry.gid
- this.uname = this.portable ? null : readEntry.uname
- this.gname = this.portable ? null : readEntry.gname
- this.size = readEntry.size
- this.mtime = this.noMtime ? <span class="branch-0 cbranch-no" title="branch not covered" >null </span>: readEntry.mtime
- this.atime = this.portable ? null : readEntry.atime
- this.ctime = this.portable ? null : readEntry.ctime
- this.linkpath = readEntry.linkpath
-&nbsp;
- if (typeof opt.onwarn === 'function')
- this.on('warn', opt.onwarn)
-&nbsp;
- if (path.isAbsolute(this.path) &amp;&amp; !this.preservePaths) {
- const parsed = path.parse(this.path)
- this.warn(
- 'stripping ' + parsed.root + ' from absolute path',
- this.path
- )
- this.path = this.path.substr(parsed.root.length)
- }
-&nbsp;
- this.remain = readEntry.size
- this.blockRemain = readEntry.startBlockSize
-&nbsp;
- this.header = new Header({
- path: this.path,
- linkpath: this.linkpath,
- // only the permissions and setuid/setgid/sticky bitflags
- // not the higher-order bits that specify file type
- mode: this.mode,
- uid: this.portable ? null : this.uid,
- gid: this.portable ? null : this.gid,
- size: this.size,
- mtime: this.noMtime ? <span class="branch-0 cbranch-no" title="branch not covered" >null </span>: this.mtime,
- type: this.type,
- uname: this.portable ? null : this.uname,
- atime: this.portable ? null : this.atime,
- ctime: this.portable ? null : this.ctime
- })
-&nbsp;
- if (this.header.encode() &amp;&amp; !this.noPax)
- super.write(new Pax({
- atime: this.portable ? null : this.atime,
- ctime: this.portable ? null : this.ctime,
- gid: this.portable ? null : this.gid,
- mtime: this.noMtime ? <span class="branch-0 cbranch-no" title="branch not covered" >null </span>: this.mtime,
- path: this.path,
- linkpath: this.linkpath,
- size: this.size,
- uid: this.portable ? null : this.uid,
- uname: this.portable ? null : this.uname,
- dev: this.portable ? null : this.readEntry.dev,
- ino: this.portable ? null : this.readEntry.ino,
- nlink: this.portable ? null : this.readEntry.nlink
- }).encode())
-&nbsp;
- super.write(this.header.block)
- readEntry.pipe(this)
- }
-&nbsp;
- write (data) {
- const writeLen = data.length
- if (writeLen &gt; this.blockRemain)
- throw new Error('writing more to entry than is appropriate')
- this.blockRemain -= writeLen
- return super.write(data)
- }
-&nbsp;
- end () {
- if (this.blockRemain)
- this.write(Buffer.alloc(this.blockRemain))
- return super.end()
- }
-})
-&nbsp;
-WriteEntry.Sync = WriteEntrySync
-WriteEntry.Tar = WriteEntryTar
-&nbsp;
-const getType = stat =&gt;
- stat.isFile() ? 'File'
- : stat.isDirectory() ? 'Directory'
- : stat.isSymbolicLink() ? 'SymbolicLink'
- : 'Unsupported'
-&nbsp;
-module.exports = WriteEntry
-&nbsp;</pre></td></tr>
-</table></pre>
-<div class='push'></div><!-- for sticky footer -->
-</div><!-- /wrapper -->
-<div class='footer quiet pad2 space-top1 center small'>
- Code coverage
- generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
-</div>
-</div>
-<script src="../../prettify.js"></script>
-<script>
-window.onload = function () {
- if (typeof prettyPrint === 'function') {
- prettyPrint();
- }
-};
-</script>
-<script src="../../sorter.js"></script>
-</body>
-</html>
diff --git a/node_modules/tar/coverage/lcov.info b/node_modules/tar/coverage/lcov.info
deleted file mode 100644
index 19aa7c2..0000000
--- a/node_modules/tar/coverage/lcov.info
+++ /dev/null
@@ -1,3690 +0,0 @@
-TN:
-SF:/Users/isaacs/dev/js/tar/index.js
-FNF:0
-FNH:0
-DA:4,1
-DA:5,1
-DA:6,1
-DA:7,1
-DA:8,1
-DA:11,1
-DA:12,1
-DA:13,1
-DA:14,1
-DA:15,1
-DA:16,1
-DA:17,1
-DA:18,1
-LF:13
-LH:13
-BRF:0
-BRH:0
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/create.js
-FN:12,(anonymous_0)
-FN:38,(anonymous_1)
-FN:47,(anonymous_2)
-FN:54,(anonymous_3)
-FN:65,(anonymous_4)
-FN:66,(anonymous_5)
-FN:72,(anonymous_6)
-FN:80,(anonymous_7)
-FN:87,(anonymous_8)
-FN:88,(anonymous_9)
-FN:95,(anonymous_10)
-FN:101,(anonymous_11)
-FNF:12
-FNH:12
-FNDA:15,(anonymous_0)
-FNDA:4,(anonymous_1)
-FNDA:4,(anonymous_2)
-FNDA:4,(anonymous_3)
-FNDA:5,(anonymous_4)
-FNDA:7,(anonymous_5)
-FNDA:7,(anonymous_6)
-FNDA:9,(anonymous_7)
-FNDA:7,(anonymous_8)
-FNDA:3,(anonymous_9)
-FNDA:1,(anonymous_10)
-FNDA:2,(anonymous_11)
-DA:4,2
-DA:6,2
-DA:7,2
-DA:8,2
-DA:9,2
-DA:10,2
-DA:12,2
-DA:13,15
-DA:14,1
-DA:16,15
-DA:17,1
-DA:19,15
-DA:20,2
-DA:22,13
-DA:24,13
-DA:26,13
-DA:27,1
-DA:29,12
-DA:30,1
-DA:32,11
-DA:38,2
-DA:39,4
-DA:40,4
-DA:43,4
-DA:44,4
-DA:47,2
-DA:48,4
-DA:49,4
-DA:52,4
-DA:54,4
-DA:55,4
-DA:56,4
-DA:57,4
-DA:60,4
-DA:62,4
-DA:65,2
-DA:66,5
-DA:67,7
-DA:68,3
-DA:72,7
-DA:75,4
-DA:77,4
-DA:80,2
-DA:81,9
-DA:82,8
-DA:83,8
-DA:84,3
-DA:87,7
-DA:88,3
-DA:90,5
-DA:92,6
-DA:95,2
-DA:96,1
-DA:97,1
-DA:98,1
-DA:101,2
-DA:102,2
-DA:103,2
-DA:104,2
-LF:59
-LH:59
-BRDA:13,0,0,1
-BRDA:13,0,1,14
-BRDA:16,1,0,1
-BRDA:16,1,1,14
-BRDA:19,2,0,2
-BRDA:19,2,1,13
-BRDA:19,3,0,15
-BRDA:19,3,1,14
-BRDA:19,3,2,13
-BRDA:26,4,0,1
-BRDA:26,4,1,12
-BRDA:26,5,0,13
-BRDA:26,5,1,6
-BRDA:29,6,0,1
-BRDA:29,6,1,11
-BRDA:29,7,0,12
-BRDA:29,7,1,4
-BRDA:32,8,0,4
-BRDA:32,8,1,7
-BRDA:32,9,0,11
-BRDA:32,9,1,8
-BRDA:33,10,0,4
-BRDA:33,10,1,3
-BRDA:34,11,0,1
-BRDA:34,11,1,2
-BRDA:41,12,0,4
-BRDA:41,12,1,3
-BRDA:50,13,0,4
-BRDA:50,13,1,3
-BRDA:62,14,0,3
-BRDA:62,14,1,1
-BRDA:67,15,0,3
-BRDA:67,15,1,4
-BRDA:83,16,0,3
-BRDA:83,16,1,5
-BRF:35
-BRH:35
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/extract.js
-FN:10,(anonymous_0)
-FN:43,(anonymous_1)
-FN:44,(anonymous_2)
-FN:47,(anonymous_3)
-FN:58,(anonymous_4)
-FN:59,(anonymous_5)
-FN:62,(anonymous_6)
-FN:79,(anonymous_7)
-FN:84,(anonymous_8)
-FN:90,(anonymous_9)
-FN:106,(anonymous_10)
-FN:110,(anonymous_11)
-FNF:12
-FNH:12
-FNDA:21,(anonymous_0)
-FNDA:7,(anonymous_1)
-FNDA:13,(anonymous_2)
-FNDA:87,(anonymous_3)
-FNDA:9,(anonymous_4)
-FNDA:9,(anonymous_5)
-FNDA:6,(anonymous_6)
-FNDA:9,(anonymous_7)
-FNDA:9,(anonymous_8)
-FNDA:9,(anonymous_9)
-FNDA:1,(anonymous_10)
-FNDA:2,(anonymous_11)
-DA:4,2
-DA:5,2
-DA:6,2
-DA:7,2
-DA:8,2
-DA:10,2
-DA:11,21
-DA:12,1
-DA:13,20
-DA:14,1
-DA:16,21
-DA:17,3
-DA:19,21
-DA:20,13
-DA:22,8
-DA:24,21
-DA:26,21
-DA:27,2
-DA:29,19
-DA:30,1
-DA:32,18
-DA:33,7
-DA:35,18
-DA:43,2
-DA:44,13
-DA:45,7
-DA:47,7
-DA:48,87
-DA:49,87
-DA:53,87
-DA:54,87
-DA:57,7
-DA:58,9
-DA:59,9
-DA:62,2
-DA:63,6
-DA:65,6
-DA:66,6
-DA:68,6
-DA:71,5
-DA:72,5
-DA:76,4
-DA:79,2
-DA:80,9
-DA:81,9
-DA:83,9
-DA:84,9
-DA:85,9
-DA:86,9
-DA:90,9
-DA:91,9
-DA:92,1
-DA:94,8
-DA:98,8
-DA:99,8
-DA:103,9
-DA:106,2
-DA:107,1
-DA:110,2
-DA:111,2
-LF:60
-LH:60
-BRDA:11,0,0,1
-BRDA:11,0,1,20
-BRDA:13,1,0,1
-BRDA:13,1,1,19
-BRDA:16,2,0,3
-BRDA:16,2,1,18
-BRDA:19,3,0,13
-BRDA:19,3,1,8
-BRDA:26,4,0,2
-BRDA:26,4,1,19
-BRDA:26,5,0,21
-BRDA:26,5,1,9
-BRDA:29,6,0,1
-BRDA:29,6,1,18
-BRDA:29,7,0,19
-BRDA:29,7,1,4
-BRDA:32,8,0,7
-BRDA:32,8,1,11
-BRDA:35,9,0,6
-BRDA:35,9,1,12
-BRDA:35,10,0,18
-BRDA:35,10,1,15
-BRDA:36,11,0,9
-BRDA:36,11,1,3
-BRDA:37,12,0,1
-BRDA:37,12,1,2
-BRDA:48,13,0,87
-BRDA:48,13,1,12
-BRDA:48,13,2,12
-BRDA:49,14,0,3
-BRDA:49,14,1,84
-BRDA:50,15,0,9
-BRDA:50,15,1,75
-BRDA:57,16,0,3
-BRDA:57,16,1,4
-BRDA:58,17,0,9
-BRDA:58,17,1,3
-BRDA:71,18,0,5
-BRDA:71,18,1,3
-BRDA:81,19,0,9
-BRDA:81,19,1,7
-BRDA:91,20,0,1
-BRDA:91,20,1,8
-BRDA:103,21,0,4
-BRDA:103,21,1,5
-BRF:45
-BRH:45
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/header.js
-FN:14,(anonymous_0)
-FN:42,(anonymous_1)
-FN:103,(anonymous_2)
-FN:157,(anonymous_3)
-FN:164,(anonymous_4)
-FN:168,(anonymous_5)
-FN:172,(anonymous_6)
-FN:180,(anonymous_7)
-FN:219,(anonymous_8)
-FN:222,(anonymous_9)
-FN:225,(anonymous_10)
-FN:227,(anonymous_11)
-FN:231,(anonymous_12)
-FN:233,(anonymous_13)
-FN:244,(anonymous_14)
-FN:250,(anonymous_15)
-FN:253,(anonymous_16)
-FN:256,(anonymous_17)
-FN:260,(anonymous_18)
-FN:267,(anonymous_19)
-FNF:20
-FNH:20
-FNDA:13121,(anonymous_0)
-FNDA:6393,(anonymous_1)
-FNDA:6719,(anonymous_2)
-FNDA:6728,(anonymous_3)
-FNDA:8178,(anonymous_4)
-FNDA:4,(anonymous_5)
-FNDA:6723,(anonymous_6)
-FNDA:6718,(anonymous_7)
-FNDA:32001,(anonymous_8)
-FNDA:14938,(anonymous_9)
-FNDA:14938,(anonymous_10)
-FNDA:55448,(anonymous_11)
-FNDA:55411,(anonymous_12)
-FNDA:55411,(anonymous_13)
-FNDA:66910,(anonymous_14)
-FNDA:66615,(anonymous_15)
-FNDA:66615,(anonymous_16)
-FNDA:66615,(anonymous_17)
-FNDA:20150,(anonymous_18)
-FNDA:40308,(anonymous_19)
-DA:7,13
-DA:8,13
-DA:9,13
-DA:11,13
-DA:15,13121
-DA:16,13121
-DA:17,13121
-DA:19,13121
-DA:20,13121
-DA:21,13121
-DA:22,13121
-DA:23,13121
-DA:24,13121
-DA:25,13121
-DA:26,13121
-DA:27,13121
-DA:28,13121
-DA:29,13121
-DA:30,13121
-DA:31,13121
-DA:32,13121
-DA:33,13121
-DA:34,13121
-DA:36,13121
-DA:37,6393
-DA:38,6728
-DA:39,6726
-DA:43,6393
-DA:44,2795
-DA:46,6393
-DA:47,1
-DA:49,6392
-DA:50,6392
-DA:51,6392
-DA:52,6392
-DA:53,6392
-DA:54,6392
-DA:55,6392
-DA:58,6392
-DA:59,6392
-DA:60,1990
-DA:61,6392
-DA:62,2
-DA:69,6392
-DA:70,1594
-DA:72,6392
-DA:73,6392
-DA:74,4275
-DA:75,4275
-DA:76,4275
-DA:77,4275
-DA:78,4275
-DA:80,2
-DA:81,2
-DA:83,4273
-DA:84,4273
-DA:85,295
-DA:86,4273
-DA:87,4273
-DA:91,6392
-DA:92,6392
-DA:93,946016
-DA:95,6392
-DA:96,2275552
-DA:98,6392
-DA:99,6392
-DA:100,1860
-DA:104,6719
-DA:105,6600
-DA:106,6600
-DA:109,6719
-DA:110,6717
-DA:112,6719
-DA:113,1
-DA:115,6718
-DA:116,6718
-DA:117,6718
-DA:118,6718
-DA:119,6718
-DA:121,6718
-DA:122,6718
-DA:123,6718
-DA:124,6718
-DA:125,6718
-DA:126,6718
-DA:127,6718
-DA:128,6718
-DA:129,6718
-DA:130,6718
-DA:131,6718
-DA:132,6718
-DA:133,6718
-DA:134,6718
-DA:135,6718
-DA:136,2
-DA:138,6716
-DA:139,6716
-DA:140,6716
-DA:143,6718
-DA:144,6718
-DA:145,994264
-DA:147,6718
-DA:148,2391608
-DA:150,6718
-DA:151,6718
-DA:152,6718
-DA:154,6718
-DA:158,6728
-DA:159,73451
-DA:160,66740
-DA:165,8178
-DA:169,4
-DA:173,6723
-DA:174,6719
-DA:176,4
-DA:180,13
-DA:181,6718
-DA:182,6718
-DA:183,6718
-DA:185,6718
-DA:187,6718
-DA:188,6683
-DA:191,35
-DA:192,35
-DA:194,35
-DA:196,49
-DA:198,21
-DA:201,28
-DA:203,13
-DA:207,15
-DA:208,15
-DA:213,35
-DA:214,1
-DA:216,6718
-DA:219,13
-DA:220,32001
-DA:222,13
-DA:223,14938
-DA:225,14938
-DA:227,13
-DA:228,55448
-DA:231,55411
-DA:233,13
-DA:234,55411
-DA:239,13
-DA:244,13
-DA:245,66910
-DA:250,13
-DA:251,66615
-DA:253,13
-DA:254,66615
-DA:256,13
-DA:257,66615
-DA:260,13
-DA:261,20150
-DA:265,13
-DA:267,13
-DA:268,40308
-DA:272,13
-LF:159
-LH:159
-BRDA:36,0,0,6393
-BRDA:36,0,1,6728
-BRDA:37,1,0,6393
-BRDA:37,1,1,2795
-BRDA:38,2,0,6726
-BRDA:38,2,1,2
-BRDA:43,3,0,2795
-BRDA:43,3,1,3598
-BRDA:46,4,0,1
-BRDA:46,4,1,6392
-BRDA:46,5,0,6393
-BRDA:46,5,1,6393
-BRDA:59,6,0,1990
-BRDA:59,6,1,4402
-BRDA:61,7,0,2
-BRDA:61,7,1,6390
-BRDA:61,8,0,6392
-BRDA:61,8,1,3769
-BRDA:69,9,0,1594
-BRDA:69,9,1,4798
-BRDA:73,10,0,4275
-BRDA:73,10,1,2117
-BRDA:78,11,0,2
-BRDA:78,11,1,4273
-BRDA:84,12,0,295
-BRDA:84,12,1,3978
-BRDA:99,13,0,1860
-BRDA:99,13,1,4532
-BRDA:99,14,0,6392
-BRDA:99,14,1,1994
-BRDA:104,15,0,6600
-BRDA:104,15,1,119
-BRDA:109,16,0,6717
-BRDA:109,16,1,2
-BRDA:112,17,0,1
-BRDA:112,17,1,6718
-BRDA:115,18,0,6623
-BRDA:115,18,1,95
-BRDA:115,19,0,6718
-BRDA:115,19,1,95
-BRDA:116,20,0,6718
-BRDA:116,20,1,1
-BRDA:121,21,0,6718
-BRDA:121,21,1,6678
-BRDA:122,22,0,6718
-BRDA:122,22,1,6718
-BRDA:123,23,0,6718
-BRDA:123,23,1,6715
-BRDA:124,24,0,6718
-BRDA:124,24,1,6715
-BRDA:125,25,0,6718
-BRDA:125,25,1,6717
-BRDA:126,26,0,6718
-BRDA:126,26,1,6718
-BRDA:128,27,0,6718
-BRDA:128,27,1,6718
-BRDA:130,28,0,6718
-BRDA:130,28,1,6718
-BRDA:131,29,0,6718
-BRDA:131,29,1,6718
-BRDA:132,30,0,6718
-BRDA:132,30,1,6718
-BRDA:133,31,0,6718
-BRDA:133,31,1,6718
-BRDA:134,32,0,6718
-BRDA:134,32,1,6718
-BRDA:135,33,0,2
-BRDA:135,33,1,6716
-BRDA:136,34,0,2
-BRDA:136,34,1,2
-BRDA:138,35,0,6716
-BRDA:138,35,1,6716
-BRDA:139,36,0,6716
-BRDA:139,36,1,6716
-BRDA:140,37,0,6716
-BRDA:140,37,1,6716
-BRDA:159,38,0,66740
-BRDA:159,38,1,6711
-BRDA:159,39,0,73451
-BRDA:159,39,1,73273
-BRDA:165,40,0,8178
-BRDA:165,40,1,6
-BRDA:173,41,0,6719
-BRDA:173,41,1,4
-BRDA:185,42,0,6718
-BRDA:185,42,1,6712
-BRDA:187,43,0,6683
-BRDA:187,43,1,35
-BRDA:210,44,0,49
-BRDA:210,44,1,34
-BRDA:196,45,0,21
-BRDA:196,45,1,28
-BRDA:196,46,0,49
-BRDA:196,46,1,35
-BRDA:201,47,0,13
-BRDA:201,47,1,15
-BRDA:201,48,0,28
-BRDA:201,48,1,14
-BRDA:213,49,0,1
-BRDA:213,49,1,34
-BRDA:225,50,0,10449
-BRDA:225,50,1,4489
-BRDA:228,51,0,37
-BRDA:228,51,1,55411
-BRDA:231,52,0,21489
-BRDA:231,52,1,33922
-BRDA:245,53,0,288
-BRDA:245,53,1,66622
-BRDA:246,54,0,7
-BRDA:246,54,1,66615
-BRDA:246,55,0,66622
-BRDA:246,55,1,66615
-BRDA:257,56,0,19852
-BRDA:257,56,1,46763
-BRDA:261,57,0,266
-BRDA:261,57,1,19884
-BRDA:268,58,0,13394
-BRDA:268,58,1,26914
-BRDA:270,59,0,26914
-BRDA:270,59,1,26874
-BRF:120
-BRH:120
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/high-level-opt.js
-FN:27,(anonymous_0)
-FN:27,(anonymous_1)
-FN:29,(anonymous_2)
-FNF:3
-FNH:3
-FNDA:177,(anonymous_0)
-FNDA:469,(anonymous_1)
-FNDA:469,(anonymous_2)
-DA:5,7
-DA:27,469
-DA:29,469
-LF:3
-LH:3
-BRDA:27,0,0,174
-BRDA:27,0,1,3
-BRDA:28,1,0,26
-BRDA:28,1,1,443
-BRF:4
-BRH:4
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/large-numbers.js
-FN:7,(anonymous_0)
-FN:16,(anonymous_1)
-FN:28,(anonymous_2)
-FN:51,(anonymous_3)
-FN:58,(anonymous_4)
-FN:79,(anonymous_5)
-FN:90,(anonymous_6)
-FN:92,(anonymous_7)
-FNF:8
-FNH:8
-FNDA:17,(anonymous_0)
-FNDA:11,(anonymous_1)
-FNDA:6,(anonymous_2)
-FNDA:47,(anonymous_3)
-FNDA:6,(anonymous_4)
-FNDA:41,(anonymous_5)
-FNDA:96,(anonymous_6)
-FNDA:12,(anonymous_7)
-DA:7,14
-DA:8,17
-DA:9,17
-DA:10,6
-DA:12,11
-DA:13,17
-DA:16,14
-DA:17,11
-DA:18,11
-DA:19,86
-DA:20,31
-DA:22,55
-DA:23,55
-DA:28,14
-DA:29,6
-DA:30,6
-DA:31,6
-DA:32,6
-DA:34,60
-DA:35,42
-DA:37,18
-DA:38,18
-DA:40,60
-DA:41,48
-DA:42,12
-DA:43,6
-DA:45,6
-DA:46,6
-DA:51,14
-DA:52,47
-DA:53,47
-DA:54,47
-DA:58,14
-DA:59,6
-DA:60,6
-DA:61,6
-DA:62,6
-DA:63,60
-DA:65,60
-DA:66,48
-DA:67,12
-DA:68,6
-DA:70,6
-DA:71,6
-DA:73,60
-DA:74,12
-DA:76,6
-DA:79,14
-DA:80,41
-DA:81,41
-DA:82,41
-DA:83,266
-DA:84,266
-DA:85,161
-DA:87,41
-DA:90,96
-DA:92,14
-LF:57
-LH:57
-BRDA:9,0,0,6
-BRDA:9,0,1,11
-BRDA:19,1,0,31
-BRDA:19,1,1,55
-BRDA:34,2,0,42
-BRDA:34,2,1,18
-BRDA:40,3,0,48
-BRDA:40,3,1,12
-BRDA:42,4,0,6
-BRDA:42,4,1,6
-BRDA:54,5,0,41
-BRDA:54,5,1,6
-BRDA:65,6,0,48
-BRDA:65,6,1,12
-BRDA:67,7,0,6
-BRDA:67,7,1,6
-BRDA:73,8,0,12
-BRDA:73,8,1,48
-BRDA:84,9,0,161
-BRDA:84,9,1,105
-BRF:20
-BRH:20
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/list.js
-FN:13,(anonymous_0)
-FN:46,(anonymous_1)
-FN:48,(anonymous_2)
-FN:51,(anonymous_3)
-FN:56,(anonymous_4)
-FN:57,(anonymous_5)
-FN:60,(anonymous_6)
-FN:71,(anonymous_7)
-FN:72,(anonymous_8)
-FN:75,(anonymous_9)
-FN:103,(anonymous_10)
-FN:108,(anonymous_11)
-FN:112,(anonymous_12)
-FN:128,(anonymous_13)
-FNF:14
-FNH:14
-FNDA:34,(anonymous_0)
-FNDA:22,(anonymous_1)
-FNDA:255,(anonymous_2)
-FNDA:72,(anonymous_3)
-FNDA:3,(anonymous_4)
-FNDA:6,(anonymous_5)
-FNDA:125,(anonymous_6)
-FNDA:32,(anonymous_7)
-FNDA:64,(anonymous_8)
-FNDA:13,(anonymous_9)
-FNDA:16,(anonymous_10)
-FNDA:16,(anonymous_11)
-FNDA:16,(anonymous_12)
-FNDA:16,(anonymous_13)
-DA:7,5
-DA:8,5
-DA:9,5
-DA:10,5
-DA:11,5
-DA:13,5
-DA:14,34
-DA:15,1
-DA:16,33
-DA:17,1
-DA:19,34
-DA:20,5
-DA:22,34
-DA:23,31
-DA:25,3
-DA:27,34
-DA:29,34
-DA:30,1
-DA:32,33
-DA:33,1
-DA:35,32
-DA:36,3
-DA:38,32
-DA:39,22
-DA:41,32
-DA:46,5
-DA:47,22
-DA:48,22
-DA:49,255
-DA:50,255
-DA:51,72
-DA:56,5
-DA:57,6
-DA:58,3
-DA:60,3
-DA:61,125
-DA:62,125
-DA:66,125
-DA:67,125
-DA:70,3
-DA:71,32
-DA:72,64
-DA:75,5
-DA:76,13
-DA:77,13
-DA:78,13
-DA:80,13
-DA:81,13
-DA:82,12
-DA:83,12
-DA:84,10
-DA:86,2
-DA:87,2
-DA:88,2
-DA:89,2
-DA:90,28
-DA:91,27
-DA:92,27
-DA:94,1
-DA:96,11
-DA:98,13
-DA:99,1
-DA:103,5
-DA:104,16
-DA:105,16
-DA:107,16
-DA:108,16
-DA:109,16
-DA:110,16
-DA:112,16
-DA:113,16
-DA:114,2
-DA:116,14
-DA:120,14
-DA:121,14
-DA:125,16
-DA:128,16
-LF:77
-LH:77
-BRDA:14,0,0,1
-BRDA:14,0,1,33
-BRDA:16,1,0,1
-BRDA:16,1,1,32
-BRDA:19,2,0,5
-BRDA:19,2,1,29
-BRDA:22,3,0,31
-BRDA:22,3,1,3
-BRDA:29,4,0,1
-BRDA:29,4,1,33
-BRDA:29,5,0,34
-BRDA:29,5,1,15
-BRDA:32,6,0,1
-BRDA:32,6,1,32
-BRDA:32,7,0,33
-BRDA:32,7,1,4
-BRDA:35,8,0,3
-BRDA:35,8,1,29
-BRDA:38,9,0,22
-BRDA:38,9,1,10
-BRDA:41,10,0,13
-BRDA:41,10,1,19
-BRDA:41,11,0,32
-BRDA:41,11,1,29
-BRDA:42,12,0,16
-BRDA:42,12,1,3
-BRDA:48,13,0,13
-BRDA:48,13,1,9
-BRDA:61,14,0,125
-BRDA:61,14,1,65
-BRDA:61,14,2,65
-BRDA:62,15,0,6
-BRDA:62,15,1,119
-BRDA:63,16,0,59
-BRDA:63,16,1,60
-BRDA:70,17,0,1
-BRDA:70,17,1,2
-BRDA:71,18,0,32
-BRDA:71,18,1,1
-BRDA:82,19,0,12
-BRDA:82,19,1,10
-BRDA:83,20,0,10
-BRDA:83,20,1,2
-BRDA:98,21,0,1
-BRDA:98,21,1,12
-BRDA:98,22,0,13
-BRDA:98,22,1,2
-BRDA:105,23,0,16
-BRDA:105,23,1,14
-BRDA:113,24,0,2
-BRDA:113,24,1,14
-BRDA:125,25,0,4
-BRDA:125,25,1,12
-BRF:53
-BRH:53
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/mkdir.js
-FN:13,(anonymous_0)
-FN:19,(anonymous_1)
-FN:25,(anonymous_2)
-FN:31,(anonymous_3)
-FN:36,(anonymous_4)
-FN:54,(anonymous_5)
-FN:60,(anonymous_6)
-FN:72,(anonymous_7)
-FN:86,(anonymous_8)
-FN:96,(anonymous_9)
-FN:96,(anonymous_10)
-FN:102,(anonymous_11)
-FN:108,(anonymous_12)
-FN:124,(anonymous_13)
-FN:142,(anonymous_14)
-FNF:15
-FNH:15
-FNDA:4,(anonymous_0)
-FNDA:8,(anonymous_1)
-FNDA:12,(anonymous_2)
-FNDA:36,(anonymous_3)
-FNDA:451,(anonymous_4)
-FNDA:457,(anonymous_5)
-FNDA:6,(anonymous_6)
-FNDA:40,(anonymous_7)
-FNDA:1062,(anonymous_8)
-FNDA:222,(anonymous_9)
-FNDA:222,(anonymous_10)
-FNDA:32,(anonymous_11)
-FNDA:3,(anonymous_12)
-FNDA:276,(anonymous_13)
-FNDA:266,(anonymous_14)
-DA:7,3
-DA:8,3
-DA:9,3
-DA:10,3
-DA:14,4
-DA:15,4
-DA:16,4
-DA:20,8
-DA:26,12
-DA:27,12
-DA:28,12
-DA:32,36
-DA:36,3
-DA:39,451
-DA:40,451
-DA:41,451
-DA:43,451
-DA:44,451
-DA:45,451
-DA:49,451
-DA:50,451
-DA:51,451
-DA:52,451
-DA:54,451
-DA:55,457
-DA:56,15
-DA:58,442
-DA:59,442
-DA:60,6
-DA:61,436
-DA:62,1
-DA:64,435
-DA:68,451
-DA:69,272
-DA:71,179
-DA:72,40
-DA:73,40
-DA:74,2
-DA:75,40
-DA:78,139
-DA:79,8
-DA:81,131
-DA:82,131
-DA:83,131
-DA:86,3
-DA:87,1062
-DA:88,119
-DA:89,943
-DA:90,943
-DA:91,943
-DA:92,723
-DA:93,220
-DA:96,222
-DA:97,222
-DA:98,36
-DA:100,4
-DA:102,32
-DA:103,32
-DA:104,4
-DA:105,28
-DA:106,22
-DA:107,6
-DA:108,3
-DA:109,3
-DA:110,1
-DA:111,2
-DA:113,3
-DA:114,2
-DA:116,1
-DA:119,186
-DA:120,186
-DA:124,3
-DA:127,276
-DA:128,276
-DA:129,276
-DA:131,276
-DA:132,276
-DA:133,276
-DA:137,276
-DA:138,276
-DA:139,276
-DA:140,276
-DA:142,276
-DA:143,266
-DA:144,266
-DA:145,6
-DA:146,266
-DA:147,1
-DA:148,266
-DA:151,276
-DA:152,128
-DA:154,148
-DA:155,34
-DA:156,34
-DA:157,34
-DA:158,34
-DA:160,1
-DA:162,34
-DA:163,2
-DA:165,32
-DA:166,32
-DA:169,114
-DA:170,7
-DA:172,107
-DA:173,107
-DA:174,107
-DA:175,107
-DA:179,792
-DA:180,608
-DA:182,184
-DA:183,184
-DA:184,169
-DA:185,169
-DA:187,15
-DA:189,4
-DA:191,11
-DA:192,9
-DA:193,4
-DA:194,4
-DA:195,5
-DA:196,2
-DA:197,2
-DA:198,2
-DA:199,2
-DA:200,2
-DA:201,3
-DA:202,2
-DA:206,99
-LF:128
-LH:128
-BRDA:45,0,0,451
-BRDA:45,0,1,6
-BRDA:45,0,2,6
-BRDA:45,0,3,2
-BRDA:55,1,0,15
-BRDA:55,1,1,442
-BRDA:59,2,0,6
-BRDA:59,2,1,436
-BRDA:59,3,0,442
-BRDA:59,3,1,114
-BRDA:61,4,0,1
-BRDA:61,4,1,435
-BRDA:68,5,0,272
-BRDA:68,5,1,179
-BRDA:68,6,0,451
-BRDA:68,6,1,451
-BRDA:71,7,0,40
-BRDA:71,7,1,139
-BRDA:73,8,0,2
-BRDA:73,8,1,38
-BRDA:73,9,0,40
-BRDA:73,9,1,39
-BRDA:74,10,0,2
-BRDA:74,10,1,1
-BRDA:74,10,2,1
-BRDA:78,11,0,8
-BRDA:78,11,1,131
-BRDA:87,12,0,119
-BRDA:87,12,1,943
-BRDA:91,13,0,723
-BRDA:91,13,1,220
-BRDA:97,14,0,36
-BRDA:97,14,1,186
-BRDA:98,15,0,4
-BRDA:98,15,1,32
-BRDA:98,16,0,36
-BRDA:98,16,1,35
-BRDA:98,16,2,16
-BRDA:98,16,3,14
-BRDA:103,17,0,4
-BRDA:103,17,1,28
-BRDA:105,18,0,22
-BRDA:105,18,1,6
-BRDA:107,19,0,3
-BRDA:107,19,1,3
-BRDA:109,20,0,1
-BRDA:109,20,1,2
-BRDA:113,21,0,2
-BRDA:113,21,1,1
-BRDA:119,22,0,186
-BRDA:119,22,1,108
-BRDA:133,23,0,276
-BRDA:133,23,1,6
-BRDA:133,23,2,6
-BRDA:133,23,3,2
-BRDA:144,24,0,6
-BRDA:144,24,1,260
-BRDA:144,25,0,266
-BRDA:144,25,1,101
-BRDA:146,26,0,1
-BRDA:146,26,1,265
-BRDA:151,27,0,128
-BRDA:151,27,1,148
-BRDA:151,28,0,276
-BRDA:151,28,1,276
-BRDA:154,29,0,34
-BRDA:154,29,1,114
-BRDA:162,30,0,2
-BRDA:162,30,1,32
-BRDA:169,31,0,7
-BRDA:169,31,1,107
-BRDA:176,32,0,891
-BRDA:176,32,1,792
-BRDA:179,33,0,608
-BRDA:179,33,1,184
-BRDA:184,34,0,169
-BRDA:184,34,1,93
-BRDA:187,35,0,4
-BRDA:187,35,1,11
-BRDA:187,36,0,15
-BRDA:187,36,1,14
-BRDA:187,36,2,5
-BRDA:187,36,3,3
-BRDA:192,37,0,4
-BRDA:192,37,1,5
-BRDA:195,38,0,2
-BRDA:195,38,1,3
-BRDA:198,39,0,2
-BRDA:198,39,1,2
-BRDA:201,40,0,2
-BRDA:201,40,1,1
-BRF:91
-BRH:91
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/pack.js
-FN:13,(anonymous_0)
-FN:59,(anonymous_1)
-FN:81,(anonymous_2)
-FN:82,(anonymous_3)
-FN:83,(anonymous_4)
-FN:84,(anonymous_5)
-FN:94,(anonymous_6)
-FN:103,(anonymous_7)
-FN:107,(anonymous_8)
-FN:112,(anonymous_9)
-FN:120,(anonymous_10)
-FN:131,(anonymous_11)
-FN:142,(anonymous_12)
-FN:150,(anonymous_13)
-FN:159,(anonymous_14)
-FN:163,(anonymous_15)
-FN:173,(anonymous_16)
-FN:184,(anonymous_17)
-FN:187,(anonymous_18)
-FN:196,(anonymous_19)
-FN:202,(anonymous_20)
-FN:230,(anonymous_21)
-FN:234,(anonymous_22)
-FN:240,(anonymous_23)
-FN:283,(anonymous_24)
-FN:285,(anonymous_25)
-FN:301,(anonymous_26)
-FN:305,(anonymous_27)
-FN:306,(anonymous_28)
-FN:312,(anonymous_29)
-FN:318,(anonymous_30)
-FN:322,(anonymous_31)
-FN:335,(anonymous_32)
-FN:340,(anonymous_33)
-FN:346,(anonymous_34)
-FN:354,(anonymous_35)
-FN:360,(anonymous_36)
-FN:361,(anonymous_37)
-FN:363,(anonymous_38)
-FN:368,(anonymous_39)
-FN:373,(anonymous_40)
-FN:378,(anonymous_41)
-FN:389,(anonymous_42)
-FN:393,(anonymous_43)
-FNF:44
-FNH:44
-FNDA:6566,(anonymous_0)
-FNDA:122,(anonymous_1)
-FNDA:503,(anonymous_2)
-FNDA:4,(anonymous_3)
-FNDA:146,(anonymous_4)
-FNDA:219,(anonymous_5)
-FNDA:6507,(anonymous_6)
-FNDA:106,(anonymous_7)
-FNDA:107,(anonymous_8)
-FNDA:100,(anonymous_9)
-FNDA:128,(anonymous_10)
-FNDA:27,(anonymous_11)
-FNDA:25,(anonymous_12)
-FNDA:6541,(anonymous_13)
-FNDA:6453,(anonymous_14)
-FNDA:6453,(anonymous_15)
-FNDA:6538,(anonymous_16)
-FNDA:821,(anonymous_17)
-FNDA:821,(anonymous_18)
-FNDA:858,(anonymous_19)
-FNDA:20596,(anonymous_20)
-FNDA:25863,(anonymous_21)
-FNDA:6533,(anonymous_22)
-FNDA:38739,(anonymous_23)
-FNDA:6537,(anonymous_24)
-FNDA:1,(anonymous_25)
-FNDA:6512,(anonymous_26)
-FNDA:6508,(anonymous_27)
-FNDA:1,(anonymous_28)
-FNDA:248,(anonymous_29)
-FNDA:6448,(anonymous_30)
-FNDA:6393,(anonymous_31)
-FNDA:11830,(anonymous_32)
-FNDA:199,(anonymous_33)
-FNDA:265,(anonymous_34)
-FNDA:47,(anonymous_35)
-FNDA:1,(anonymous_36)
-FNDA:1,(anonymous_37)
-FNDA:84,(anonymous_38)
-FNDA:37,(anonymous_39)
-FNDA:87,(anonymous_40)
-FNDA:48,(anonymous_41)
-FNDA:39,(anonymous_42)
-FNDA:106,(anonymous_43)
-DA:14,6566
-DA:15,6566
-DA:16,6566
-DA:17,6566
-DA:18,6566
-DA:19,6566
-DA:20,6566
-DA:21,6566
-DA:25,5
-DA:26,5
-DA:27,5
-DA:28,5
-DA:29,5
-DA:30,5
-DA:31,5
-DA:32,5
-DA:33,5
-DA:34,5
-DA:35,5
-DA:36,5
-DA:37,5
-DA:38,5
-DA:39,5
-DA:40,5
-DA:41,5
-DA:42,5
-DA:43,5
-DA:44,5
-DA:45,5
-DA:46,5
-DA:47,5
-DA:48,5
-DA:49,5
-DA:50,5
-DA:51,5
-DA:52,5
-DA:54,5
-DA:55,5
-DA:56,5
-DA:58,5
-DA:60,122
-DA:61,122
-DA:62,122
-DA:63,122
-DA:64,122
-DA:65,122
-DA:66,122
-DA:67,122
-DA:68,122
-DA:69,122
-DA:70,122
-DA:71,122
-DA:72,122
-DA:73,122
-DA:74,3
-DA:76,122
-DA:77,122
-DA:78,5
-DA:79,4
-DA:80,5
-DA:81,503
-DA:82,5
-DA:83,146
-DA:84,219
-DA:86,117
-DA:88,122
-DA:89,122
-DA:90,122
-DA:91,122
-DA:94,6507
-DA:96,122
-DA:97,122
-DA:98,122
-DA:99,122
-DA:100,122
-DA:104,106
-DA:108,107
-DA:109,103
-DA:113,100
-DA:114,21
-DA:115,99
-DA:116,99
-DA:117,99
-DA:121,128
-DA:122,1
-DA:124,127
-DA:125,27
-DA:127,100
-DA:128,123
-DA:132,27
-DA:133,27
-DA:134,1
-DA:137,27
-DA:138,2
-DA:140,25
-DA:141,25
-DA:142,25
-DA:143,25
-DA:144,25
-DA:147,27
-DA:151,6541
-DA:152,6541
-DA:153,34
-DA:155,6541
-DA:156,6541
-DA:160,6453
-DA:161,6453
-DA:162,6453
-DA:163,6453
-DA:164,6453
-DA:165,6453
-DA:166,6453
-DA:167,1
-DA:169,6452
-DA:174,6538
-DA:175,6538
-DA:178,6538
-DA:179,24
-DA:181,6538
-DA:185,821
-DA:186,821
-DA:187,821
-DA:188,821
-DA:189,821
-DA:190,821
-DA:191,1
-DA:192,820
-DA:197,858
-DA:198,858
-DA:199,858
-DA:203,20596
-DA:204,9093
-DA:206,11503
-DA:207,11503
-DA:210,38739
-DA:211,38735
-DA:212,25
-DA:213,25
-DA:214,25
-DA:218,11499
-DA:220,11499
-DA:221,96
-DA:222,4
-DA:224,92
-DA:225,92
-DA:231,25863
-DA:235,6533
-DA:236,6533
-DA:237,6533
-DA:241,38739
-DA:242,6156
-DA:244,32583
-DA:245,18770
-DA:246,4954
-DA:247,18770
-DA:250,13813
-DA:251,6541
-DA:252,4
-DA:254,6537
-DA:256,13811
-DA:257,6453
-DA:260,7358
-DA:261,24
-DA:263,7334
-DA:264,860
-DA:265,2
-DA:267,858
-DA:268,859
-DA:269,821
-DA:273,6512
-DA:274,6511
-DA:275,1
-DA:276,1
-DA:279,6510
-DA:280,1581
-DA:284,6537
-DA:286,1
-DA:302,6512
-DA:303,6512
-DA:304,6512
-DA:305,6508
-DA:306,1
-DA:308,2
-DA:313,248
-DA:314,158
-DA:319,6448
-DA:321,6448
-DA:322,820
-DA:323,6393
-DA:327,6393
-DA:328,6393
-DA:331,6448
-DA:332,6448
-DA:334,6448
-DA:335,6336
-DA:336,11830
-DA:337,156
-DA:340,112
-DA:341,199
-DA:342,53
-DA:347,265
-DA:348,214
-DA:349,265
-DA:355,47
-DA:356,47
-DA:364,84
-DA:365,84
-DA:369,37
-DA:374,87
-DA:375,87
-DA:377,87
-DA:378,38
-DA:379,48
-DA:384,48
-DA:385,48
-DA:388,87
-DA:389,31
-DA:390,39
-DA:393,56
-DA:394,106
-DA:399,5
-DA:401,5
-LF:222
-LH:222
-BRDA:14,0,0,6566
-BRDA:14,0,1,1
-BRDA:61,1,0,122
-BRDA:61,1,1,5
-BRDA:63,2,0,122
-BRDA:63,2,1,22
-BRDA:68,3,0,122
-BRDA:68,3,1,115
-BRDA:69,4,0,122
-BRDA:69,4,1,121
-BRDA:70,5,0,122
-BRDA:70,5,1,121
-BRDA:71,6,0,122
-BRDA:71,6,1,121
-BRDA:73,7,0,3
-BRDA:73,7,1,119
-BRDA:77,8,0,5
-BRDA:77,8,1,117
-BRDA:78,9,0,4
-BRDA:78,9,1,1
-BRDA:94,10,0,41
-BRDA:94,10,1,81
-BRDA:98,11,0,122
-BRDA:98,11,1,122
-BRDA:113,12,0,21
-BRDA:113,12,1,79
-BRDA:121,13,0,1
-BRDA:121,13,1,127
-BRDA:124,14,0,27
-BRDA:124,14,1,100
-BRDA:133,15,0,1
-BRDA:133,15,1,26
-BRDA:137,16,0,2
-BRDA:137,16,1,25
-BRDA:152,17,0,34
-BRDA:152,17,1,6507
-BRDA:162,18,0,1
-BRDA:162,18,1,6452
-BRDA:166,19,0,1
-BRDA:166,19,1,6452
-BRDA:178,20,0,24
-BRDA:178,20,1,6514
-BRDA:190,21,0,1
-BRDA:190,21,1,820
-BRDA:203,22,0,9093
-BRDA:203,22,1,11503
-BRDA:208,23,0,50238
-BRDA:208,23,1,49694
-BRDA:211,24,0,25
-BRDA:211,24,1,38710
-BRDA:220,25,0,96
-BRDA:220,25,1,11403
-BRDA:220,26,0,11499
-BRDA:220,26,1,11363
-BRDA:220,26,2,97
-BRDA:221,27,0,4
-BRDA:221,27,1,92
-BRDA:231,28,0,25863
-BRDA:231,28,1,25863
-BRDA:231,28,2,25792
-BRDA:241,29,0,6156
-BRDA:241,29,1,32583
-BRDA:244,30,0,18770
-BRDA:244,30,1,13813
-BRDA:245,31,0,4954
-BRDA:245,31,1,13816
-BRDA:245,32,0,18770
-BRDA:245,32,1,9951
-BRDA:250,33,0,6541
-BRDA:250,33,1,7272
-BRDA:251,34,0,4
-BRDA:251,34,1,6537
-BRDA:256,35,0,6453
-BRDA:256,35,1,7358
-BRDA:260,36,0,24
-BRDA:260,36,1,7334
-BRDA:263,37,0,860
-BRDA:263,37,1,6474
-BRDA:263,38,0,7334
-BRDA:263,38,1,7332
-BRDA:263,38,2,1680
-BRDA:264,39,0,2
-BRDA:264,39,1,858
-BRDA:268,40,0,821
-BRDA:268,40,1,38
-BRDA:274,41,0,1
-BRDA:274,41,1,6510
-BRDA:279,42,0,1581
-BRDA:279,42,1,4929
-BRDA:279,43,0,6510
-BRDA:279,43,1,1581
-BRDA:313,44,0,158
-BRDA:313,44,1,90
-BRDA:313,45,0,248
-BRDA:313,45,1,177
-BRDA:321,46,0,820
-BRDA:321,46,1,5628
-BRDA:323,47,0,14
-BRDA:323,47,1,6379
-BRDA:324,48,0,14
-BRDA:324,48,1,4
-BRDA:327,49,0,18
-BRDA:327,49,1,6375
-BRDA:334,50,0,6336
-BRDA:334,50,1,112
-BRDA:336,51,0,156
-BRDA:336,51,1,11674
-BRDA:341,52,0,53
-BRDA:341,52,1,146
-BRDA:347,53,0,214
-BRDA:347,53,1,51
-BRDA:364,54,0,1
-BRDA:364,54,1,83
-BRDA:377,55,0,38
-BRDA:377,55,1,49
-BRDA:379,56,0,14
-BRDA:379,56,1,34
-BRDA:380,57,0,14
-BRDA:380,57,1,4
-BRDA:384,58,0,4
-BRDA:384,58,1,44
-BRDA:388,59,0,31
-BRDA:388,59,1,56
-BRF:123
-BRH:123
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/parse.js
-FN:61,(anonymous_0)
-FN:64,(anonymous_1)
-FN:71,(anonymous_2)
-FN:103,(anonymous_3)
-FN:128,(anonymous_4)
-FN:157,(anonymous_5)
-FN:169,(anonymous_6)
-FN:177,(anonymous_7)
-FN:194,(anonymous_8)
-FN:198,(anonymous_9)
-FN:216,(anonymous_10)
-FN:227,(anonymous_11)
-FN:234,(anonymous_12)
-FN:262,(anonymous_13)
-FN:268,(anonymous_14)
-FN:290,(anonymous_15)
-FN:291,(anonymous_16)
-FN:293,(anonymous_17)
-FN:316,(anonymous_18)
-FN:321,(anonymous_19)
-FN:326,(anonymous_20)
-FN:342,(anonymous_21)
-FN:370,(anonymous_22)
-FN:405,(anonymous_23)
-FNF:24
-FNH:24
-FNDA:2032,(anonymous_0)
-FNDA:742,(anonymous_1)
-FNDA:589,(anonymous_2)
-FNDA:6101,(anonymous_3)
-FNDA:475,(anonymous_4)
-FNDA:4299,(anonymous_5)
-FNDA:1272,(anonymous_6)
-FNDA:2947,(anonymous_7)
-FNDA:9,(anonymous_8)
-FNDA:2194,(anonymous_9)
-FNDA:475,(anonymous_10)
-FNDA:4328,(anonymous_11)
-FNDA:455,(anonymous_12)
-FNDA:2,(anonymous_13)
-FNDA:669590,(anonymous_14)
-FNDA:20164,(anonymous_15)
-FNDA:2,(anonymous_16)
-FNDA:226,(anonymous_17)
-FNDA:6,(anonymous_18)
-FNDA:652869,(anonymous_19)
-FNDA:3449,(anonymous_20)
-FNDA:655942,(anonymous_21)
-FNDA:655553,(anonymous_22)
-FNDA:718,(anonymous_23)
-DA:23,9
-DA:24,9
-DA:25,9
-DA:26,9
-DA:27,9
-DA:28,9
-DA:29,9
-DA:30,9
-DA:31,9
-DA:33,9
-DA:34,9
-DA:35,9
-DA:36,9
-DA:37,9
-DA:38,9
-DA:39,9
-DA:40,9
-DA:41,9
-DA:42,9
-DA:43,9
-DA:44,9
-DA:45,9
-DA:46,9
-DA:47,9
-DA:48,9
-DA:49,9
-DA:50,9
-DA:51,9
-DA:52,9
-DA:53,9
-DA:54,9
-DA:55,9
-DA:56,9
-DA:57,9
-DA:58,9
-DA:59,9
-DA:61,2032
-DA:63,9
-DA:65,742
-DA:66,742
-DA:68,742
-DA:69,134
-DA:71,608
-DA:72,589
-DA:73,589
-DA:74,589
-DA:75,589
-DA:78,742
-DA:79,742
-DA:80,742
-DA:83,742
-DA:84,742
-DA:86,742
-DA:87,742
-DA:88,742
-DA:89,742
-DA:90,742
-DA:91,742
-DA:92,742
-DA:93,742
-DA:94,742
-DA:95,742
-DA:96,742
-DA:97,742
-DA:98,36
-DA:99,742
-DA:100,34
-DA:104,6101
-DA:106,6101
-DA:107,1834
-DA:108,4267
-DA:109,160
-DA:110,4107
-DA:111,40
-DA:113,4067
-DA:114,4067
-DA:115,40
-DA:116,4027
-DA:117,40
-DA:119,3987
-DA:121,3987
-DA:122,759
-DA:123,260
-DA:124,260
-DA:125,260
-DA:126,499
-DA:127,455
-DA:128,475
-DA:129,455
-DA:133,3228
-DA:134,3228
-DA:135,3228
-DA:136,1070
-DA:137,1070
-DA:139,2158
-DA:140,1028
-DA:142,1130
-DA:143,1130
-DA:146,2158
-DA:147,1675
-DA:148,1675
-DA:150,483
-DA:158,4299
-DA:160,4299
-DA:161,1653
-DA:162,1653
-DA:163,2646
-DA:164,490
-DA:166,2156
-DA:167,2156
-DA:168,2150
-DA:169,1288
-DA:170,1288
-DA:174,4293
-DA:178,2947
-DA:180,2941
-DA:188,2478
-DA:189,2478
-DA:190,2478
-DA:191,2468
-DA:192,516
-DA:194,10
-DA:200,2194
-DA:201,2194
-DA:202,2194
-DA:205,2194
-DA:207,2194
-DA:208,2121
-DA:209,2121
-DA:210,2121
-DA:213,2194
-DA:217,475
-DA:218,475
-DA:221,475
-DA:222,455
-DA:224,475
-DA:228,4328
-DA:229,3815
-DA:231,513
-DA:235,455
-DA:236,455
-DA:239,351
-DA:240,351
-DA:243,44
-DA:244,44
-DA:248,40
-DA:249,40
-DA:250,40
-DA:253,20
-DA:254,20
-DA:255,20
-DA:263,2
-DA:264,2
-DA:265,2
-DA:269,669590
-DA:270,1
-DA:273,669589
-DA:274,944
-DA:275,224
-DA:276,224
-DA:278,944
-DA:279,224
-DA:280,224
-DA:282,720
-DA:283,947
-DA:284,493
-DA:286,720
-DA:287,227
-DA:288,227
-DA:289,227
-DA:290,20164
-DA:291,227
-DA:292,2
-DA:293,227
-DA:294,226
-DA:295,226
-DA:297,227
-DA:301,669138
-DA:302,669138
-DA:303,33586
-DA:305,635552
-DA:306,669132
-DA:310,669132
-DA:315,669132
-DA:316,63
-DA:318,669132
-DA:322,652869
-DA:323,652866
-DA:327,3449
-DA:328,709
-DA:329,709
-DA:330,709
-DA:331,2
-DA:332,2
-DA:334,2
-DA:335,1
-DA:336,2
-DA:338,709
-DA:343,655942
-DA:344,10
-DA:345,655932
-DA:346,381
-DA:348,655551
-DA:349,655551
-DA:350,652859
-DA:351,652859
-DA:352,652859
-DA:353,652859
-DA:355,2692
-DA:358,655545
-DA:359,2
-DA:360,2
-DA:361,2
-DA:363,655545
-DA:366,655936
-DA:367,3068
-DA:373,655553
-DA:374,655553
-DA:375,655553
-DA:376,8295
-DA:378,6101
-DA:379,6095
-DA:380,6095
-DA:384,1719
-DA:385,1719
-DA:388,475
-DA:389,475
-DA:397,655547
-DA:398,652863
-DA:399,1
-DA:401,652862
-DA:406,718
-DA:407,717
-DA:408,113
-DA:410,604
-DA:411,604
-LF:236
-LH:236
-BRDA:65,0,0,742
-BRDA:65,0,1,22
-BRDA:68,1,0,134
-BRDA:68,1,1,608
-BRDA:79,2,0,742
-BRDA:79,2,1,462
-BRDA:80,3,0,290
-BRDA:80,3,1,452
-BRDA:97,4,0,36
-BRDA:97,4,1,706
-BRDA:99,5,0,34
-BRDA:99,5,1,708
-BRDA:106,6,0,1834
-BRDA:106,6,1,4267
-BRDA:108,7,0,160
-BRDA:108,7,1,4107
-BRDA:110,8,0,40
-BRDA:110,8,1,4067
-BRDA:114,9,0,40
-BRDA:114,9,1,4027
-BRDA:114,10,0,4067
-BRDA:114,10,1,248
-BRDA:116,11,0,40
-BRDA:116,11,1,3987
-BRDA:116,12,0,4027
-BRDA:116,12,1,3819
-BRDA:121,13,0,759
-BRDA:121,13,1,3228
-BRDA:122,14,0,260
-BRDA:122,14,1,499
-BRDA:126,15,0,455
-BRDA:126,15,1,44
-BRDA:134,16,0,3228
-BRDA:134,16,1,3226
-BRDA:135,17,0,1070
-BRDA:135,17,1,2158
-BRDA:137,18,0,382
-BRDA:137,18,1,688
-BRDA:139,19,0,1028
-BRDA:139,19,1,1130
-BRDA:146,20,0,1675
-BRDA:146,20,1,483
-BRDA:160,21,0,1653
-BRDA:160,21,1,2646
-BRDA:163,22,0,490
-BRDA:163,22,1,2156
-BRDA:168,23,0,1288
-BRDA:168,23,1,862
-BRDA:180,24,0,2478
-BRDA:180,24,1,463
-BRDA:189,25,0,2478
-BRDA:189,25,1,825
-BRDA:189,25,2,167
-BRDA:190,26,0,2468
-BRDA:190,26,1,10
-BRDA:191,27,0,516
-BRDA:191,27,1,1952
-BRDA:202,28,0,583
-BRDA:202,28,1,1611
-BRDA:202,29,0,2194
-BRDA:202,29,1,593
-BRDA:207,30,0,2121
-BRDA:207,30,1,73
-BRDA:221,31,0,455
-BRDA:221,31,1,20
-BRDA:228,32,0,3815
-BRDA:228,32,1,513
-BRDA:228,33,0,4328
-BRDA:228,33,1,3916
-BRDA:236,34,0,351
-BRDA:236,34,1,351
-BRDA:236,34,2,44
-BRDA:236,34,3,40
-BRDA:236,34,4,40
-BRDA:236,34,5,20
-BRDA:248,35,0,40
-BRDA:248,35,1,40
-BRDA:253,36,0,20
-BRDA:253,36,1,20
-BRDA:269,37,0,1
-BRDA:269,37,1,669589
-BRDA:273,38,0,944
-BRDA:273,38,1,668645
-BRDA:273,39,0,669589
-BRDA:273,39,1,944
-BRDA:274,40,0,224
-BRDA:274,40,1,720
-BRDA:278,41,0,224
-BRDA:278,41,1,720
-BRDA:282,42,0,1667
-BRDA:282,42,1,1174
-BRDA:283,43,0,493
-BRDA:283,43,1,454
-BRDA:286,44,0,227
-BRDA:286,44,1,493
-BRDA:297,45,0,113
-BRDA:297,45,1,114
-BRDA:302,46,0,33586
-BRDA:302,46,1,635552
-BRDA:310,47,0,190
-BRDA:310,47,1,668942
-BRDA:311,48,0,61606
-BRDA:311,48,1,607336
-BRDA:315,49,0,63
-BRDA:315,49,1,669069
-BRDA:315,50,0,669132
-BRDA:315,50,1,253
-BRDA:322,51,0,652866
-BRDA:322,51,1,3
-BRDA:322,52,0,652869
-BRDA:322,52,1,652866
-BRDA:323,53,0,652864
-BRDA:323,53,1,2
-BRDA:327,54,0,709
-BRDA:327,54,1,2740
-BRDA:327,55,0,3449
-BRDA:327,55,1,1094
-BRDA:327,55,2,710
-BRDA:330,56,0,2
-BRDA:330,56,1,707
-BRDA:330,57,0,709
-BRDA:330,57,1,255
-BRDA:331,58,0,1
-BRDA:331,58,1,1
-BRDA:334,59,0,1
-BRDA:334,59,1,1
-BRDA:343,60,0,10
-BRDA:343,60,1,655932
-BRDA:345,61,0,381
-BRDA:345,61,1,655551
-BRDA:345,62,0,655932
-BRDA:345,62,1,382
-BRDA:349,63,0,652859
-BRDA:349,63,1,2692
-BRDA:358,64,0,655547
-BRDA:358,64,1,652864
-BRDA:358,64,2,2
-BRDA:366,65,0,3068
-BRDA:366,65,1,652868
-BRDA:366,66,0,655936
-BRDA:366,66,1,652872
-BRDA:375,67,0,663842
-BRDA:375,67,1,8295
-BRDA:376,68,0,6101
-BRDA:376,68,1,670
-BRDA:376,68,2,1719
-BRDA:376,68,3,475
-BRDA:397,69,0,652863
-BRDA:397,69,1,2684
-BRDA:398,70,0,1
-BRDA:398,70,1,652862
-BRDA:406,71,0,717
-BRDA:406,71,1,1
-BRDA:407,72,0,113
-BRDA:407,72,1,604
-BRF:155
-BRH:155
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/pax.js
-FN:6,(anonymous_0)
-FN:25,(anonymous_1)
-FN:71,(anonymous_2)
-FN:91,(anonymous_3)
-FN:112,(anonymous_4)
-FN:114,(anonymous_5)
-FN:115,(anonymous_6)
-FN:117,(anonymous_7)
-FN:123,(anonymous_8)
-FNF:9
-FNH:9
-FNDA:435,(anonymous_0)
-FNDA:34,(anonymous_1)
-FNDA:34,(anonymous_2)
-FNDA:510,(anonymous_3)
-FNDA:401,(anonymous_4)
-FNDA:401,(anonymous_5)
-FNDA:1,(anonymous_6)
-FNDA:401,(anonymous_7)
-FNDA:2259,(anonymous_8)
-DA:2,11
-DA:3,11
-DA:7,435
-DA:8,435
-DA:9,435
-DA:10,435
-DA:11,435
-DA:12,435
-DA:13,435
-DA:14,435
-DA:15,435
-DA:16,435
-DA:17,435
-DA:18,435
-DA:19,435
-DA:20,435
-DA:21,435
-DA:22,435
-DA:26,34
-DA:27,34
-DA:28,1
-DA:30,33
-DA:33,33
-DA:34,33
-DA:37,33
-DA:38,16896
-DA:41,33
-DA:61,33
-DA:64,33
-DA:65,8949
-DA:68,33
-DA:72,34
-DA:92,510
-DA:93,204
-DA:94,306
-DA:96,306
-DA:100,306
-DA:104,306
-DA:105,306
-DA:106,30
-DA:107,306
-DA:108,306
-DA:112,401
-DA:114,11
-DA:115,401
-DA:117,11
-DA:118,401
-DA:123,11
-DA:124,2259
-DA:128,2259
-DA:129,5
-DA:131,2254
-DA:132,2254
-DA:133,2254
-DA:134,2254
-DA:135,1
-DA:137,2253
-DA:138,2253
-DA:142,2253
-DA:145,11
-LF:60
-LH:60
-BRDA:7,0,0,435
-BRDA:7,0,1,85
-BRDA:8,1,0,435
-BRDA:8,1,1,435
-BRDA:9,2,0,435
-BRDA:9,2,1,411
-BRDA:10,3,0,435
-BRDA:10,3,1,85
-BRDA:11,4,0,435
-BRDA:11,4,1,369
-BRDA:12,5,0,435
-BRDA:12,5,1,410
-BRDA:13,6,0,435
-BRDA:13,6,1,435
-BRDA:14,7,0,435
-BRDA:14,7,1,368
-BRDA:15,8,0,435
-BRDA:15,8,1,2
-BRDA:16,9,0,435
-BRDA:16,9,1,363
-BRDA:17,10,0,435
-BRDA:17,10,1,371
-BRDA:18,11,0,435
-BRDA:18,11,1,373
-BRDA:19,12,0,435
-BRDA:19,12,1,86
-BRDA:20,13,0,435
-BRDA:20,13,1,86
-BRDA:21,14,0,435
-BRDA:21,14,1,86
-BRDA:22,15,0,435
-BRDA:22,15,1,389
-BRDA:27,16,0,1
-BRDA:27,16,1,33
-BRDA:46,17,0,33
-BRDA:46,17,1,33
-BRDA:47,18,0,33
-BRDA:47,18,1,6
-BRDA:48,19,0,33
-BRDA:48,19,1,6
-BRDA:50,20,0,33
-BRDA:50,20,1,5
-BRDA:51,21,0,1
-BRDA:51,21,1,32
-BRDA:53,22,0,33
-BRDA:53,22,1,7
-BRDA:54,23,0,33
-BRDA:54,23,1,32
-BRDA:57,24,0,33
-BRDA:57,24,1,6
-BRDA:58,25,0,33
-BRDA:58,25,1,6
-BRDA:92,26,0,204
-BRDA:92,26,1,306
-BRDA:92,27,0,510
-BRDA:92,27,1,306
-BRDA:94,28,0,82
-BRDA:94,28,1,224
-BRDA:97,29,0,78
-BRDA:97,29,1,228
-BRDA:97,30,0,306
-BRDA:97,30,1,280
-BRDA:97,30,2,254
-BRDA:105,31,0,30
-BRDA:105,31,1,276
-BRDA:115,32,0,1
-BRDA:115,32,1,400
-BRDA:128,33,0,5
-BRDA:128,33,1,2254
-BRDA:134,34,0,1
-BRDA:134,34,1,2253
-BRDA:138,35,0,685
-BRDA:138,35,1,1568
-BRDA:140,36,0,1084
-BRDA:140,36,1,484
-BRF:75
-BRH:75
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/read-entry.js
-FN:7,(anonymous_0)
-FN:66,(anonymous_1)
-FN:85,(anonymous_2)
-FNF:3
-FNH:3
-FNDA:4004,(anonymous_0)
-FNDA:2222,(anonymous_1)
-FNDA:457,(anonymous_2)
-DA:2,11
-DA:3,11
-DA:5,11
-DA:6,11
-DA:8,4004
-DA:9,4004
-DA:10,4004
-DA:11,4004
-DA:12,4004
-DA:13,4004
-DA:14,4004
-DA:15,4004
-DA:16,4004
-DA:17,4004
-DA:18,4004
-DA:29,3241
-DA:37,760
-DA:38,760
-DA:43,3
-DA:46,4004
-DA:47,4004
-DA:48,4004
-DA:49,3720
-DA:50,4004
-DA:51,4004
-DA:52,4004
-DA:53,4004
-DA:54,4004
-DA:55,4004
-DA:56,4004
-DA:57,4004
-DA:58,4004
-DA:59,4004
-DA:60,4004
-DA:62,4004
-DA:63,4004
-DA:67,2222
-DA:68,2222
-DA:69,2
-DA:71,2220
-DA:72,2220
-DA:73,2220
-DA:74,2220
-DA:75,2220
-DA:76,673
-DA:78,1547
-DA:79,132
-DA:82,1415
-DA:86,457
-DA:89,6384
-DA:91,2657
-LF:51
-LH:51
-BRDA:18,0,0,1502
-BRDA:18,0,1,1502
-BRDA:18,0,2,1565
-BRDA:18,0,3,1710
-BRDA:18,0,4,1712
-BRDA:18,0,5,1714
-BRDA:18,0,6,3239
-BRDA:18,0,7,3241
-BRDA:18,0,8,3241
-BRDA:18,0,9,3241
-BRDA:18,0,10,41
-BRDA:18,0,11,121
-BRDA:18,0,12,121
-BRDA:18,0,13,165
-BRDA:18,0,14,760
-BRDA:18,0,15,760
-BRDA:18,0,16,3
-BRDA:48,1,0,3720
-BRDA:48,1,1,284
-BRDA:62,2,0,412
-BRDA:62,2,1,3592
-BRDA:63,3,0,45
-BRDA:63,3,1,3959
-BRDA:68,4,0,2
-BRDA:68,4,1,2220
-BRDA:75,5,0,673
-BRDA:75,5,1,1547
-BRDA:78,6,0,132
-BRDA:78,6,1,1415
-BRDA:89,7,0,2657
-BRDA:89,7,1,3727
-BRDA:89,8,0,6384
-BRDA:89,8,1,2702
-BRDA:89,8,2,2701
-BRDA:90,9,0,2701
-BRDA:90,9,1,89
-BRF:36
-BRH:36
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/replace.js
-FN:20,(anonymous_0)
-FN:38,(anonymous_1)
-FN:92,(anonymous_2)
-FN:101,(anonymous_3)
-FN:105,(anonymous_4)
-FN:106,(anonymous_5)
-FN:108,(anonymous_6)
-FN:119,(anonymous_7)
-FN:156,(anonymous_8)
-FN:159,(anonymous_9)
-FN:168,(anonymous_10)
-FN:171,(anonymous_11)
-FN:191,(anonymous_12)
-FN:192,(anonymous_13)
-FN:198,(anonymous_14)
-FN:206,(anonymous_15)
-FN:213,(anonymous_16)
-FN:214,(anonymous_17)
-FNF:18
-FNH:18
-FNDA:70,(anonymous_0)
-FNDA:26,(anonymous_1)
-FNDA:18,(anonymous_2)
-FNDA:41,(anonymous_3)
-FNDA:37,(anonymous_4)
-FNDA:37,(anonymous_5)
-FNDA:4,(anonymous_6)
-FNDA:112,(anonymous_7)
-FNDA:41,(anonymous_8)
-FNDA:45,(anonymous_9)
-FNDA:39,(anonymous_10)
-FNDA:37,(anonymous_11)
-FNDA:18,(anonymous_12)
-FNDA:19,(anonymous_13)
-FNDA:3,(anonymous_14)
-FNDA:34,(anonymous_15)
-FNDA:3,(anonymous_16)
-FNDA:1,(anonymous_17)
-DA:4,3
-DA:5,3
-DA:6,3
-DA:7,3
-DA:8,3
-DA:9,3
-DA:10,3
-DA:18,3
-DA:20,3
-DA:21,70
-DA:23,70
-DA:24,1
-DA:26,69
-DA:27,1
-DA:29,68
-DA:30,1
-DA:32,67
-DA:34,67
-DA:38,3
-DA:39,26
-DA:41,26
-DA:45,26
-DA:46,26
-DA:47,26
-DA:49,4
-DA:50,2
-DA:52,2
-DA:55,24
-DA:56,22
-DA:58,22
-DA:59,61
-DA:60,63
-DA:64,61
-DA:65,2
-DA:67,59
-DA:68,2
-DA:71,55
-DA:72,55
-DA:73,8
-DA:74,47
-DA:75,47
-DA:76,2
-DA:79,45
-DA:80,45
-DA:81,28
-DA:83,18
-DA:85,18
-DA:87,26
-DA:88,8
-DA:92,3
-DA:93,18
-DA:97,18
-DA:98,18
-DA:101,3
-DA:102,41
-DA:103,41
-DA:105,41
-DA:106,37
-DA:107,37
-DA:108,4
-DA:110,33
-DA:113,37
-DA:114,37
-DA:115,8
-DA:117,29
-DA:118,29
-DA:119,29
-DA:120,112
-DA:121,2
-DA:122,110
-DA:123,110
-DA:124,6
-DA:129,104
-DA:130,2
-DA:133,102
-DA:134,4
-DA:136,98
-DA:137,98
-DA:138,13
-DA:140,85
-DA:141,85
-DA:142,4
-DA:144,81
-DA:145,81
-DA:146,4
-DA:148,77
-DA:149,46
-DA:150,77
-DA:151,77
-DA:153,29
-DA:156,41
-DA:157,41
-DA:158,41
-DA:159,41
-DA:160,45
-DA:161,4
-DA:162,4
-DA:165,41
-DA:166,2
-DA:168,39
-DA:169,39
-DA:170,2
-DA:171,37
-DA:172,37
-DA:173,4
-DA:174,33
-DA:178,33
-DA:179,33
-DA:180,33
-DA:181,33
-DA:185,41
-DA:188,41
-DA:191,3
-DA:192,18
-DA:193,19
-DA:194,1
-DA:198,3
-DA:201,18
-DA:203,18
-DA:206,3
-DA:207,34
-DA:208,33
-DA:209,33
-DA:210,1
-DA:213,3
-DA:214,1
-DA:216,32
-DA:218,33
-LF:128
-LH:128
-BRDA:23,0,0,1
-BRDA:23,0,1,69
-BRDA:26,1,0,1
-BRDA:26,1,1,68
-BRDA:29,2,0,1
-BRDA:29,2,1,67
-BRDA:29,3,0,68
-BRDA:29,3,1,68
-BRDA:29,3,2,68
-BRDA:34,4,0,26
-BRDA:34,4,1,41
-BRDA:49,5,0,2
-BRDA:49,5,1,2
-BRDA:64,6,0,2
-BRDA:64,6,1,59
-BRDA:64,7,0,61
-BRDA:64,7,1,16
-BRDA:64,7,2,2
-BRDA:67,8,0,2
-BRDA:67,8,1,57
-BRDA:72,9,0,8
-BRDA:72,9,1,47
-BRDA:75,10,0,2
-BRDA:75,10,1,45
-BRDA:80,11,0,28
-BRDA:80,11,1,17
-BRDA:87,12,0,8
-BRDA:87,12,1,18
-BRDA:107,13,0,4
-BRDA:107,13,1,33
-BRDA:114,14,0,8
-BRDA:114,14,1,29
-BRDA:120,15,0,2
-BRDA:120,15,1,110
-BRDA:123,16,0,6
-BRDA:123,16,1,104
-BRDA:123,17,0,110
-BRDA:123,17,1,12
-BRDA:129,18,0,2
-BRDA:129,18,1,102
-BRDA:129,19,0,104
-BRDA:129,19,1,27
-BRDA:129,19,2,2
-BRDA:133,20,0,4
-BRDA:133,20,1,98
-BRDA:137,21,0,13
-BRDA:137,21,1,85
-BRDA:141,22,0,4
-BRDA:141,22,1,81
-BRDA:145,23,0,4
-BRDA:145,23,1,77
-BRDA:148,24,0,46
-BRDA:148,24,1,31
-BRDA:160,25,0,4
-BRDA:160,25,1,41
-BRDA:160,26,0,45
-BRDA:160,26,1,6
-BRDA:160,26,2,4
-BRDA:165,27,0,2
-BRDA:165,27,1,39
-BRDA:169,28,0,2
-BRDA:169,28,1,37
-BRDA:172,29,0,4
-BRDA:172,29,1,33
-BRDA:188,30,0,24
-BRDA:188,30,1,17
-BRDA:193,31,0,1
-BRDA:193,31,1,18
-BRDA:209,32,0,1
-BRDA:209,32,1,32
-BRF:70
-BRH:70
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/types.js
-FN:44,(anonymous_0)
-FNF:1
-FNH:1
-FNDA:294,(anonymous_0)
-DA:3,14
-DA:44,294
-LF:2
-LH:2
-BRF:0
-BRH:0
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/unpack.js
-FN:37,(anonymous_0)
-FN:43,(anonymous_1)
-FN:47,(anonymous_2)
-FN:117,(anonymous_3)
-FN:120,(anonymous_4)
-FN:129,(anonymous_5)
-FN:168,(anonymous_6)
-FN:194,(anonymous_7)
-FN:207,(anonymous_8)
-FN:222,(anonymous_9)
-FN:233,(anonymous_10)
-FN:237,(anonymous_11)
-FN:241,(anonymous_12)
-FN:247,(anonymous_13)
-FN:250,(anonymous_14)
-FN:257,(anonymous_15)
-FN:260,(anonymous_16)
-FN:277,(anonymous_17)
-FN:279,(anonymous_18)
-FN:284,(anonymous_19)
-FN:305,(anonymous_20)
-FN:310,(anonymous_21)
-FN:314,(anonymous_22)
-FN:318,(anonymous_23)
-FN:322,(anonymous_24)
-FN:327,(anonymous_25)
-FN:333,(anonymous_26)
-FN:335,(anonymous_27)
-FN:338,(anonymous_28)
-FN:348,(anonymous_29)
-FN:350,(anonymous_30)
-FN:352,(anonymous_31)
-FN:357,(anonymous_32)
-FN:379,(anonymous_33)
-FN:381,(anonymous_34)
-FN:391,(anonymous_35)
-FN:395,(anonymous_36)
-FN:425,(anonymous_37)
-FN:428,(anonymous_38)
-FN:441,(anonymous_39)
-FN:449,(anonymous_40)
-FN:465,(anonymous_41)
-FN:483,(anonymous_42)
-FN:502,(anonymous_43)
-FNF:44
-FNH:44
-FNDA:60,(anonymous_0)
-FNDA:134,(anonymous_1)
-FNDA:109,(anonymous_2)
-FNDA:571,(anonymous_3)
-FNDA:473,(anonymous_4)
-FNDA:571,(anonymous_5)
-FNDA:571,(anonymous_6)
-FNDA:39,(anonymous_7)
-FNDA:451,(anonymous_8)
-FNDA:473,(anonymous_9)
-FNDA:30,(anonymous_10)
-FNDA:30,(anonymous_11)
-FNDA:221,(anonymous_12)
-FNDA:2,(anonymous_13)
-FNDA:421,(anonymous_14)
-FNDA:219,(anonymous_15)
-FNDA:219,(anonymous_16)
-FNDA:97,(anonymous_17)
-FNDA:97,(anonymous_18)
-FNDA:171,(anonymous_19)
-FNDA:6,(anonymous_20)
-FNDA:21,(anonymous_21)
-FNDA:19,(anonymous_22)
-FNDA:354,(anonymous_23)
-FNDA:364,(anonymous_24)
-FNDA:4,(anonymous_25)
-FNDA:354,(anonymous_26)
-FNDA:354,(anonymous_27)
-FNDA:342,(anonymous_28)
-FNDA:2,(anonymous_29)
-FNDA:5,(anonymous_30)
-FNDA:6,(anonymous_31)
-FNDA:528,(anonymous_32)
-FNDA:21,(anonymous_33)
-FNDA:21,(anonymous_34)
-FNDA:59,(anonymous_35)
-FNDA:200,(anonymous_36)
-FNDA:93,(anonymous_37)
-FNDA:6,(anonymous_38)
-FNDA:86,(anonymous_39)
-FNDA:86,(anonymous_40)
-FNDA:76,(anonymous_41)
-FNDA:276,(anonymous_42)
-FNDA:19,(anonymous_43)
-DA:3,3
-DA:4,3
-DA:5,3
-DA:6,3
-DA:7,3
-DA:8,3
-DA:9,3
-DA:10,3
-DA:11,3
-DA:13,3
-DA:14,3
-DA:15,3
-DA:16,3
-DA:17,3
-DA:18,3
-DA:19,3
-DA:20,3
-DA:21,3
-DA:22,3
-DA:23,3
-DA:24,3
-DA:25,3
-DA:26,3
-DA:27,3
-DA:28,3
-DA:29,3
-DA:30,3
-DA:31,3
-DA:32,3
-DA:33,3
-DA:34,3
-DA:37,3
-DA:38,60
-DA:44,134
-DA:45,4
-DA:47,134
-DA:48,109
-DA:49,109
-DA:52,134
-DA:54,134
-DA:55,134
-DA:57,134
-DA:58,134
-DA:60,134
-DA:62,134
-DA:64,9
-DA:65,2
-DA:66,7
-DA:67,1
-DA:69,6
-DA:70,6
-DA:71,6
-DA:73,125
-DA:74,125
-DA:75,125
-DA:79,131
-DA:80,119
-DA:82,12
-DA:84,131
-DA:86,131
-DA:90,131
-DA:93,131
-DA:96,131
-DA:99,131
-DA:104,131
-DA:108,131
-DA:110,131
-DA:111,131
-DA:112,131
-DA:113,131
-DA:115,131
-DA:116,131
-DA:117,571
-DA:121,473
-DA:122,98
-DA:123,98
-DA:124,98
-DA:125,98
-DA:130,571
-DA:131,144
-DA:132,144
-DA:133,9
-DA:134,135
-DA:137,562
-DA:138,545
-DA:139,545
-DA:140,2
-DA:141,2
-DA:146,543
-DA:147,2
-DA:148,2
-DA:149,2
-DA:154,560
-DA:155,3
-DA:156,3
-DA:160,560
-DA:161,2
-DA:163,558
-DA:165,560
-DA:169,571
-DA:170,11
-DA:172,560
-DA:174,560
-DA:177,179
-DA:178,140
-DA:185,554
-DA:190,6
-DA:198,39
-DA:199,12
-DA:201,27
-DA:202,27
-DA:203,27
-DA:208,451
-DA:225,473
-DA:234,30
-DA:238,30
-DA:242,221
-DA:243,221
-DA:247,221
-DA:249,221
-DA:250,221
-DA:251,421
-DA:252,1
-DA:253,1
-DA:256,421
-DA:257,219
-DA:260,221
-DA:261,219
-DA:262,192
-DA:263,192
-DA:266,219
-DA:267,10
-DA:268,10
-DA:271,219
-DA:274,221
-DA:278,97
-DA:279,97
-DA:280,97
-DA:281,3
-DA:283,94
-DA:284,94
-DA:285,171
-DA:286,94
-DA:287,94
-DA:291,94
-DA:292,73
-DA:293,73
-DA:296,94
-DA:297,4
-DA:298,4
-DA:301,94
-DA:306,6
-DA:307,6
-DA:311,21
-DA:315,19
-DA:319,354
-DA:323,364
-DA:324,364
-DA:328,4
-DA:329,4
-DA:334,354
-DA:335,354
-DA:336,354
-DA:337,12
-DA:338,342
-DA:339,342
-DA:340,2
-DA:341,340
-DA:342,318
-DA:343,22
-DA:344,16
-DA:345,11
-DA:346,9
-DA:348,2
-DA:350,5
-DA:352,6
-DA:358,528
-DA:359,1
-DA:361,527
-DA:365,314
-DA:368,19
-DA:371,21
-DA:375,173
-DA:381,21
-DA:382,21
-DA:383,1
-DA:384,20
-DA:385,20
-DA:392,59
-DA:396,200
-DA:397,200
-DA:398,9
-DA:399,191
-DA:400,191
-DA:401,17
-DA:402,2
-DA:403,15
-DA:404,2
-DA:406,13
-DA:407,13
-DA:408,6
-DA:409,3
-DA:410,2
-DA:412,3
-DA:414,7
-DA:415,12
-DA:417,1
-DA:421,174
-DA:426,93
-DA:428,93
-DA:429,6
-DA:430,6
-DA:435,93
-DA:436,93
-DA:438,1
-DA:441,92
-DA:442,86
-DA:443,86
-DA:445,1
-DA:449,92
-DA:450,86
-DA:451,86
-DA:452,58
-DA:454,85
-DA:455,12
-DA:457,82
-DA:459,4
-DA:466,76
-DA:467,76
-DA:468,76
-DA:469,1
-DA:470,75
-DA:471,56
-DA:472,56
-DA:475,75
-DA:476,4
-DA:477,4
-DA:480,75
-DA:484,276
-DA:485,276
-DA:498,4
-DA:503,19
-DA:504,19
-DA:505,17
-DA:507,2
-DA:512,3
-DA:513,3
-LF:247
-LH:247
-BRDA:38,0,0,24
-BRDA:38,0,1,36
-BRDA:39,1,0,26
-BRDA:39,1,1,10
-BRDA:44,2,0,4
-BRDA:44,2,1,130
-BRDA:60,3,0,134
-BRDA:60,3,1,134
-BRDA:62,4,0,9
-BRDA:62,4,1,125
-BRDA:62,5,0,134
-BRDA:62,5,1,126
-BRDA:64,6,0,2
-BRDA:64,6,1,7
-BRDA:64,7,0,9
-BRDA:64,7,1,8
-BRDA:66,8,0,1
-BRDA:66,8,1,6
-BRDA:79,9,0,119
-BRDA:79,9,1,12
-BRDA:79,10,0,131
-BRDA:79,10,1,125
-BRDA:80,11,0,119
-BRDA:80,11,1,119
-BRDA:84,12,0,11
-BRDA:84,12,1,120
-BRDA:84,13,0,131
-BRDA:84,13,1,126
-BRDA:84,13,2,11
-BRDA:86,14,0,11
-BRDA:86,14,1,120
-BRDA:86,15,0,131
-BRDA:86,15,1,126
-BRDA:86,15,2,11
-BRDA:90,16,0,131
-BRDA:90,16,1,128
-BRDA:110,17,0,131
-BRDA:110,17,1,11
-BRDA:111,18,0,131
-BRDA:111,18,1,129
-BRDA:113,19,0,1
-BRDA:113,19,1,130
-BRDA:115,20,0,131
-BRDA:115,20,1,131
-BRDA:116,21,0,131
-BRDA:116,21,1,127
-BRDA:121,22,0,98
-BRDA:121,22,1,375
-BRDA:121,23,0,473
-BRDA:121,23,1,178
-BRDA:130,24,0,144
-BRDA:130,24,1,427
-BRDA:132,25,0,9
-BRDA:132,25,1,135
-BRDA:137,26,0,545
-BRDA:137,26,1,17
-BRDA:139,27,0,2
-BRDA:139,27,1,543
-BRDA:146,28,0,2
-BRDA:146,28,1,541
-BRDA:154,29,0,3
-BRDA:154,29,1,557
-BRDA:156,30,0,2
-BRDA:156,30,1,1
-BRDA:160,31,0,2
-BRDA:160,31,1,558
-BRDA:169,32,0,11
-BRDA:169,32,1,560
-BRDA:174,33,0,179
-BRDA:174,33,1,179
-BRDA:174,33,2,514
-BRDA:174,33,3,514
-BRDA:174,33,4,514
-BRDA:174,33,5,533
-BRDA:174,33,6,554
-BRDA:174,33,7,2
-BRDA:174,33,8,4
-BRDA:174,33,9,6
-BRDA:177,34,0,140
-BRDA:177,34,1,39
-BRDA:198,35,0,12
-BRDA:198,35,1,27
-BRDA:225,36,0,473
-BRDA:225,36,1,34
-BRDA:225,36,2,31
-BRDA:225,36,3,23
-BRDA:225,36,4,15
-BRDA:225,36,5,455
-BRDA:225,36,6,12
-BRDA:225,36,7,447
-BRDA:225,36,8,4
-BRDA:242,37,0,221
-BRDA:242,37,1,30
-BRDA:251,38,0,1
-BRDA:251,38,1,420
-BRDA:256,39,0,219
-BRDA:256,39,1,202
-BRDA:261,40,0,192
-BRDA:261,40,1,27
-BRDA:261,41,0,219
-BRDA:261,41,1,193
-BRDA:263,42,0,192
-BRDA:263,42,1,156
-BRDA:266,43,0,10
-BRDA:266,43,1,209
-BRDA:278,44,0,97
-BRDA:278,44,1,20
-BRDA:280,45,0,3
-BRDA:280,45,1,94
-BRDA:285,46,0,94
-BRDA:285,46,1,77
-BRDA:291,47,0,73
-BRDA:291,47,1,21
-BRDA:291,48,0,94
-BRDA:291,48,1,74
-BRDA:293,49,0,73
-BRDA:293,49,1,71
-BRDA:296,50,0,4
-BRDA:296,50,1,90
-BRDA:336,51,0,12
-BRDA:336,51,1,342
-BRDA:339,52,0,2
-BRDA:339,52,1,340
-BRDA:339,53,0,342
-BRDA:339,53,1,27
-BRDA:339,53,2,26
-BRDA:339,53,3,1
-BRDA:341,54,0,318
-BRDA:341,54,1,22
-BRDA:341,55,0,340
-BRDA:341,55,1,25
-BRDA:341,55,2,6
-BRDA:341,55,3,5
-BRDA:343,56,0,16
-BRDA:343,56,1,6
-BRDA:344,57,0,11
-BRDA:344,57,1,5
-BRDA:345,58,0,9
-BRDA:345,58,1,2
-BRDA:345,59,0,11
-BRDA:345,59,1,8
-BRDA:358,60,0,1
-BRDA:358,60,1,527
-BRDA:361,61,0,314
-BRDA:361,61,1,314
-BRDA:361,61,2,314
-BRDA:361,61,3,19
-BRDA:361,61,4,21
-BRDA:361,61,5,173
-BRDA:361,61,6,173
-BRDA:382,62,0,1
-BRDA:382,62,1,20
-BRDA:397,63,0,9
-BRDA:397,63,1,191
-BRDA:401,64,0,2
-BRDA:401,64,1,15
-BRDA:401,65,0,17
-BRDA:401,65,1,16
-BRDA:401,65,2,1
-BRDA:403,66,0,2
-BRDA:403,66,1,13
-BRDA:403,67,0,15
-BRDA:403,67,1,4
-BRDA:403,67,2,3
-BRDA:407,68,0,6
-BRDA:407,68,1,7
-BRDA:408,69,0,3
-BRDA:408,69,1,3
-BRDA:409,70,0,2
-BRDA:409,70,1,1
-BRDA:409,71,0,3
-BRDA:409,71,1,2
-BRDA:426,72,0,93
-BRDA:426,72,1,30
-BRDA:451,73,0,58
-BRDA:451,73,1,28
-BRDA:451,74,0,86
-BRDA:451,74,1,59
-BRDA:452,75,0,58
-BRDA:452,75,1,31
-BRDA:454,76,0,12
-BRDA:454,76,1,73
-BRDA:466,77,0,76
-BRDA:466,77,1,19
-BRDA:468,78,0,1
-BRDA:468,78,1,75
-BRDA:470,79,0,56
-BRDA:470,79,1,19
-BRDA:470,80,0,75
-BRDA:470,80,1,57
-BRDA:472,81,0,56
-BRDA:472,81,1,52
-BRDA:475,82,0,4
-BRDA:475,82,1,71
-BRF:194
-BRH:194
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/update.js
-FN:9,(anonymous_0)
-FN:27,(anonymous_1)
-FN:33,(anonymous_2)
-FN:35,(anonymous_3)
-FNF:4
-FNH:4
-FNDA:36,(anonymous_0)
-FNDA:33,(anonymous_1)
-FNDA:2,(anonymous_2)
-FNDA:24,(anonymous_3)
-DA:5,2
-DA:6,2
-DA:9,2
-DA:10,36
-DA:12,36
-DA:13,1
-DA:15,35
-DA:16,1
-DA:18,34
-DA:19,1
-DA:21,33
-DA:23,33
-DA:24,33
-DA:27,2
-DA:28,33
-DA:30,33
-DA:31,32
-DA:33,33
-DA:34,2
-DA:35,24
-LF:20
-LH:20
-BRDA:12,0,0,1
-BRDA:12,0,1,35
-BRDA:15,1,0,1
-BRDA:15,1,1,34
-BRDA:18,2,0,1
-BRDA:18,2,1,33
-BRDA:18,3,0,34
-BRDA:18,3,1,34
-BRDA:18,3,2,34
-BRDA:30,4,0,32
-BRDA:30,4,1,1
-BRDA:33,5,0,1
-BRDA:33,5,1,32
-BRDA:34,6,0,2
-BRDA:34,6,1,1
-BRF:15
-BRH:15
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/warn-mixin.js
-FN:2,(anonymous_0)
-FN:3,(anonymous_1)
-FNF:2
-FNH:2
-FNDA:27,(anonymous_0)
-FNDA:333,(anonymous_1)
-DA:2,27
-DA:4,333
-DA:5,184
-DA:6,149
-DA:7,2
-DA:9,147
-DA:10,147
-DA:11,147
-LF:8
-LH:8
-BRDA:4,0,0,184
-BRDA:4,0,1,149
-BRDA:6,1,0,2
-BRDA:6,1,1,147
-BRF:4
-BRH:4
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/winchars.js
-FN:14,(anonymous_0)
-FN:17,(anonymous_1)
-FN:18,(anonymous_2)
-FN:21,(anonymous_3)
-FN:21,(anonymous_4)
-FN:22,(anonymous_5)
-FN:22,(anonymous_6)
-FNF:7
-FNH:7
-FNDA:45,(anonymous_0)
-FNDA:45,(anonymous_1)
-FNDA:45,(anonymous_2)
-FNDA:6,(anonymous_3)
-FNDA:30,(anonymous_4)
-FNDA:4,(anonymous_5)
-FNDA:20,(anonymous_6)
-DA:6,9
-DA:14,9
-DA:15,45
-DA:17,45
-DA:18,45
-DA:20,9
-DA:21,30
-DA:22,20
-LF:8
-LH:8
-BRF:0
-BRH:0
-end_of_record
-TN:
-SF:/Users/isaacs/dev/js/tar/lib/write-entry.js
-FN:29,(anonymous_0)
-FN:77,(anonymous_1)
-FN:78,(anonymous_2)
-FN:85,(anonymous_3)
-FN:95,(anonymous_4)
-FN:105,(anonymous_5)
-FN:144,(anonymous_6)
-FN:152,(anonymous_7)
-FN:153,(anonymous_8)
-FN:160,(anonymous_9)
-FN:166,(anonymous_10)
-FN:174,(anonymous_11)
-FN:192,(anonymous_12)
-FN:193,(anonymous_13)
-FN:200,(anonymous_14)
-FN:207,(anonymous_15)
-FN:208,(anonymous_16)
-FN:210,(anonymous_17)
-FN:215,(anonymous_18)
-FN:219,(anonymous_19)
-FN:250,(anonymous_20)
-FN:264,(anonymous_21)
-FN:268,(anonymous_22)
-FN:272,(anonymous_23)
-FN:276,(anonymous_24)
-FN:280,(anonymous_25)
-FN:292,(anonymous_26)
-FN:298,(anonymous_27)
-FN:377,(anonymous_28)
-FN:385,(anonymous_29)
-FN:395,(anonymous_30)
-FNF:31
-FNH:31
-FNDA:6570,(anonymous_0)
-FNDA:34,(anonymous_1)
-FNDA:34,(anonymous_2)
-FNDA:6566,(anonymous_3)
-FNDA:6566,(anonymous_4)
-FNDA:6563,(anonymous_5)
-FNDA:867,(anonymous_6)
-FNDA:32,(anonymous_7)
-FNDA:32,(anonymous_8)
-FNDA:32,(anonymous_9)
-FNDA:1,(anonymous_10)
-FNDA:5664,(anonymous_11)
-FNDA:5568,(anonymous_12)
-FNDA:5568,(anonymous_13)
-FNDA:5617,(anonymous_14)
-FNDA:7336,(anonymous_15)
-FNDA:7336,(anonymous_16)
-FNDA:1,(anonymous_17)
-FNDA:5566,(anonymous_18)
-FNDA:7393,(anonymous_19)
-FNDA:5565,(anonymous_20)
-FNDA:99,(anonymous_21)
-FNDA:20,(anonymous_22)
-FNDA:2,(anonymous_23)
-FNDA:53,(anonymous_24)
-FNDA:59,(anonymous_25)
-FNDA:51,(anonymous_26)
-FNDA:33,(anonymous_27)
-FNDA:52,(anonymous_28)
-FNDA:29,(anonymous_29)
-FNDA:6566,(anonymous_30)
-DA:2,6
-DA:3,6
-DA:4,6
-DA:5,6
-DA:6,6
-DA:7,6
-DA:9,6
-DA:10,6
-DA:11,6
-DA:12,6
-DA:13,6
-DA:14,6
-DA:15,6
-DA:16,6
-DA:17,6
-DA:18,6
-DA:19,6
-DA:20,6
-DA:21,6
-DA:22,6
-DA:23,6
-DA:24,6
-DA:25,6
-DA:26,6
-DA:28,6
-DA:30,6570
-DA:31,6570
-DA:32,6570
-DA:33,1
-DA:34,6569
-DA:36,6569
-DA:38,6569
-DA:39,6569
-DA:40,6569
-DA:41,6569
-DA:42,6569
-DA:43,6569
-DA:44,6569
-DA:45,6569
-DA:46,6569
-DA:47,6569
-DA:49,6569
-DA:50,6515
-DA:52,6569
-DA:55,4
-DA:56,4
-DA:57,2
-DA:60,6567
-DA:61,6567
-DA:62,2
-DA:63,2
-DA:66,6567
-DA:68,6567
-DA:69,1
-DA:71,6567
-DA:72,6513
-DA:74,54
-DA:78,34
-DA:79,34
-DA:80,1
-DA:81,33
-DA:86,6566
-DA:87,6566
-DA:88,6566
-DA:89,902
-DA:90,6566
-DA:91,6566
-DA:92,6566
-DA:96,6566
-DA:97,5664
-DA:98,867
-DA:99,34
-DA:101,1
-DA:106,6563
-DA:107,4
-DA:109,6563
-DA:126,6563
-DA:127,17
-DA:141,6563
-DA:145,867
-DA:146,859
-DA:147,867
-DA:148,867
-DA:149,867
-DA:153,32
-DA:154,32
-DA:155,1
-DA:156,31
-DA:161,32
-DA:162,32
-DA:163,32
-DA:167,1
-DA:168,1
-DA:169,1
-DA:170,1
-DA:171,1
-DA:175,5664
-DA:176,7
-DA:177,7
-DA:178,2
-DA:179,2
-DA:180,1
-DA:182,6
-DA:185,5663
-DA:186,5663
-DA:187,42
-DA:189,5621
-DA:193,5568
-DA:194,5568
-DA:195,2
-DA:196,5566
-DA:201,5617
-DA:202,5617
-DA:203,5617
-DA:204,5617
-DA:208,7336
-DA:209,7336
-DA:210,1
-DA:211,7335
-DA:216,5566
-DA:220,7393
-DA:221,2
-DA:222,2
-DA:223,2
-DA:224,2
-DA:225,2
-DA:229,7392
-DA:230,5614
-DA:231,1700449
-DA:232,1700449
-DA:233,1700449
-DA:237,7392
-DA:239,7392
-DA:240,7392
-DA:241,7392
-DA:242,7392
-DA:244,7392
-DA:246,7392
-DA:247,5614
-DA:248,2
-DA:249,5614
-DA:250,5614
-DA:251,5614
-DA:254,1778
-DA:255,1754
-DA:256,1754
-DA:258,1778
-DA:259,1778
-DA:265,99
-DA:269,20
-DA:273,2
-DA:277,53
-DA:281,59
-DA:282,59
-DA:283,59
-DA:284,58
-DA:285,57
-DA:287,59
-DA:288,2
-DA:293,51
-DA:297,6
-DA:299,33
-DA:300,33
-DA:301,33
-DA:302,33
-DA:303,33
-DA:304,33
-DA:305,33
-DA:307,33
-DA:308,33
-DA:309,33
-DA:310,0
-DA:312,33
-DA:313,33
-DA:314,33
-DA:315,26
-DA:316,33
-DA:317,33
-DA:318,33
-DA:319,33
-DA:320,33
-DA:321,33
-DA:322,33
-DA:323,33
-DA:324,33
-DA:326,33
-DA:327,27
-DA:329,33
-DA:330,2
-DA:331,2
-DA:335,1
-DA:338,32
-DA:339,32
-DA:341,32
-DA:357,32
-DA:358,14
-DA:373,32
-DA:374,32
-DA:378,52
-DA:379,52
-DA:380,1
-DA:381,51
-DA:382,51
-DA:386,29
-DA:387,22
-DA:388,29
-DA:392,6
-DA:393,6
-DA:395,6
-DA:396,6566
-DA:401,6
-LF:211
-LH:210
-BRDA:30,0,0,6570
-BRDA:30,0,1,2
-BRDA:32,1,0,1
-BRDA:32,1,1,6569
-BRDA:38,2,0,6569
-BRDA:38,2,1,6569
-BRDA:39,3,0,6569
-BRDA:39,3,1,37
-BRDA:40,4,0,6569
-BRDA:40,4,1,6563
-BRDA:41,5,0,6569
-BRDA:41,5,1,53
-BRDA:42,6,0,6569
-BRDA:42,6,1,55
-BRDA:44,7,0,6569
-BRDA:44,7,1,4
-BRDA:49,8,0,6515
-BRDA:49,8,1,54
-BRDA:52,9,0,4
-BRDA:52,9,1,6565
-BRDA:52,10,0,6569
-BRDA:52,10,1,6564
-BRDA:60,11,0,6567
-BRDA:60,11,1,6565
-BRDA:61,12,0,2
-BRDA:61,12,1,6565
-BRDA:66,13,0,6567
-BRDA:66,13,1,54
-BRDA:68,14,0,1
-BRDA:68,14,1,6566
-BRDA:71,15,0,6513
-BRDA:71,15,1,54
-BRDA:79,16,0,1
-BRDA:79,16,1,33
-BRDA:88,17,0,902
-BRDA:88,17,1,5664
-BRDA:96,18,0,5664
-BRDA:96,18,1,867
-BRDA:96,18,2,34
-BRDA:96,18,3,1
-BRDA:106,19,0,4
-BRDA:106,19,1,6559
-BRDA:106,20,0,6563
-BRDA:106,20,1,867
-BRDA:115,21,0,10
-BRDA:115,21,1,6553
-BRDA:116,22,0,10
-BRDA:116,22,1,6553
-BRDA:118,23,0,6
-BRDA:118,23,1,6557
-BRDA:120,24,0,10
-BRDA:120,24,1,6553
-BRDA:121,25,0,6552
-BRDA:121,25,1,1
-BRDA:122,26,0,10
-BRDA:122,26,1,6553
-BRDA:123,27,0,10
-BRDA:123,27,1,6553
-BRDA:126,28,0,17
-BRDA:126,28,1,6546
-BRDA:126,29,0,6563
-BRDA:126,29,1,18
-BRDA:128,30,0,4
-BRDA:128,30,1,13
-BRDA:129,31,0,4
-BRDA:129,31,1,13
-BRDA:130,32,0,4
-BRDA:130,32,1,13
-BRDA:131,33,0,2
-BRDA:131,33,1,15
-BRDA:135,34,0,4
-BRDA:135,34,1,13
-BRDA:136,35,0,4
-BRDA:136,35,1,13
-BRDA:137,36,0,4
-BRDA:137,36,1,13
-BRDA:138,37,0,4
-BRDA:138,37,1,13
-BRDA:139,38,0,4
-BRDA:139,38,1,13
-BRDA:145,39,0,859
-BRDA:145,39,1,8
-BRDA:154,40,0,1
-BRDA:154,40,1,31
-BRDA:175,41,0,7
-BRDA:175,41,1,5657
-BRDA:177,42,0,2
-BRDA:177,42,1,5
-BRDA:179,43,0,1
-BRDA:179,43,1,1
-BRDA:186,44,0,42
-BRDA:186,44,1,5621
-BRDA:194,45,0,2
-BRDA:194,45,1,5566
-BRDA:209,46,0,1
-BRDA:209,46,1,7335
-BRDA:220,47,0,2
-BRDA:220,47,1,7391
-BRDA:220,48,0,7393
-BRDA:220,48,1,2
-BRDA:229,49,0,5614
-BRDA:229,49,1,1778
-BRDA:230,50,0,1706063
-BRDA:230,50,1,1700456
-BRDA:237,51,0,7338
-BRDA:237,51,1,54
-BRDA:237,52,0,7392
-BRDA:237,52,1,7369
-BRDA:246,53,0,5614
-BRDA:246,53,1,1778
-BRDA:247,54,0,2
-BRDA:247,54,1,5612
-BRDA:254,55,0,1754
-BRDA:254,55,1,24
-BRDA:287,56,0,2
-BRDA:287,56,1,57
-BRDA:299,57,0,33
-BRDA:299,57,1,4
-BRDA:309,58,0,0
-BRDA:309,58,1,33
-BRDA:309,59,0,33
-BRDA:309,59,1,2
-BRDA:314,60,0,26
-BRDA:314,60,1,7
-BRDA:316,61,0,1
-BRDA:316,61,1,32
-BRDA:317,62,0,1
-BRDA:317,62,1,32
-BRDA:318,63,0,1
-BRDA:318,63,1,32
-BRDA:319,64,0,1
-BRDA:319,64,1,32
-BRDA:321,65,0,0
-BRDA:321,65,1,33
-BRDA:322,66,0,1
-BRDA:322,66,1,32
-BRDA:323,67,0,1
-BRDA:323,67,1,32
-BRDA:326,68,0,27
-BRDA:326,68,1,6
-BRDA:329,69,0,2
-BRDA:329,69,1,31
-BRDA:329,70,0,33
-BRDA:329,70,1,3
-BRDA:347,71,0,1
-BRDA:347,71,1,31
-BRDA:348,72,0,1
-BRDA:348,72,1,31
-BRDA:350,73,0,0
-BRDA:350,73,1,32
-BRDA:352,74,0,1
-BRDA:352,74,1,31
-BRDA:353,75,0,1
-BRDA:353,75,1,31
-BRDA:354,76,0,1
-BRDA:354,76,1,31
-BRDA:357,77,0,14
-BRDA:357,77,1,18
-BRDA:357,78,0,32
-BRDA:357,78,1,14
-BRDA:359,79,0,1
-BRDA:359,79,1,13
-BRDA:360,80,0,1
-BRDA:360,80,1,13
-BRDA:361,81,0,1
-BRDA:361,81,1,13
-BRDA:362,82,0,0
-BRDA:362,82,1,14
-BRDA:366,83,0,1
-BRDA:366,83,1,13
-BRDA:367,84,0,1
-BRDA:367,84,1,13
-BRDA:368,85,0,1
-BRDA:368,85,1,13
-BRDA:369,86,0,1
-BRDA:369,86,1,13
-BRDA:370,87,0,1
-BRDA:370,87,1,13
-BRDA:379,88,0,1
-BRDA:379,88,1,51
-BRDA:386,89,0,22
-BRDA:386,89,1,7
-BRDA:396,90,0,5664
-BRDA:396,90,1,902
-BRDA:397,91,0,867
-BRDA:397,91,1,35
-BRDA:398,92,0,34
-BRDA:398,92,1,1
-BRF:188
-BRH:184
-end_of_record
diff --git a/node_modules/tar/examples/extracter.js b/node_modules/tar/examples/extracter.js
deleted file mode 100644
index f6253a7..0000000
--- a/node_modules/tar/examples/extracter.js
+++ /dev/null
@@ -1,19 +0,0 @@
-var tar = require("../tar.js")
- , fs = require("fs")
-
-
-function onError(err) {
- console.error('An error occurred:', err)
-}
-
-function onEnd() {
- console.log('Extracted!')
-}
-
-var extractor = tar.Extract({path: __dirname + "/extract"})
- .on('error', onError)
- .on('end', onEnd);
-
-fs.createReadStream(__dirname + "/../test/fixtures/c.tar")
- .on('error', onError)
- .pipe(extractor);
diff --git a/node_modules/tar/examples/packer.js b/node_modules/tar/examples/packer.js
deleted file mode 100644
index 039969c..0000000
--- a/node_modules/tar/examples/packer.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var tar = require("../tar.js")
- , fstream = require("fstream")
- , fs = require("fs")
-
-var dirDest = fs.createWriteStream('dir.tar')
-
-
-function onError(err) {
- console.error('An error occurred:', err)
-}
-
-function onEnd() {
- console.log('Packed!')
-}
-
-var packer = tar.Pack({ noProprietary: true })
- .on('error', onError)
- .on('end', onEnd);
-
-// This must be a "directory"
-fstream.Reader({ path: __dirname, type: "Directory" })
- .on('error', onError)
- .pipe(packer)
- .pipe(dirDest)
diff --git a/node_modules/tar/examples/reader.js b/node_modules/tar/examples/reader.js
deleted file mode 100644
index 39f3f08..0000000
--- a/node_modules/tar/examples/reader.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var tar = require("../tar.js")
- , fs = require("fs")
-
-fs.createReadStream(__dirname + "/../test/fixtures/c.tar")
- .pipe(tar.Parse())
- .on("extendedHeader", function (e) {
- console.error("extended pax header", e.props)
- e.on("end", function () {
- console.error("extended pax fields:", e.fields)
- })
- })
- .on("ignoredEntry", function (e) {
- console.error("ignoredEntry?!?", e.props)
- })
- .on("longLinkpath", function (e) {
- console.error("longLinkpath entry", e.props)
- e.on("end", function () {
- console.error("value=%j", e.body.toString())
- })
- })
- .on("longPath", function (e) {
- console.error("longPath entry", e.props)
- e.on("end", function () {
- console.error("value=%j", e.body.toString())
- })
- })
- .on("entry", function (e) {
- console.error("entry", e.props)
- e.on("data", function (c) {
- console.error(" >>>" + c.toString().replace(/\n/g, "\\n"))
- })
- e.on("end", function () {
- console.error(" <<<EOF")
- })
- })
-
diff --git a/node_modules/tar/lib/buffer-entry.js b/node_modules/tar/lib/buffer-entry.js
deleted file mode 100644
index 6c1da23..0000000
--- a/node_modules/tar/lib/buffer-entry.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// just like the Entry class, but it buffers the contents
-//
-// XXX It would be good to set a maximum BufferEntry filesize,
-// since it eats up memory. In normal operation,
-// these are only for long filenames or link names, which are
-// rarely very big.
-
-module.exports = BufferEntry
-
-var inherits = require("inherits")
- , Entry = require("./entry.js")
-
-function BufferEntry () {
- Entry.apply(this, arguments)
- this._buffer = new Buffer(this.props.size)
- this._offset = 0
- this.body = ""
- this.on("end", function () {
- this.body = this._buffer.toString().slice(0, -1)
- })
-}
-
-inherits(BufferEntry, Entry)
-
-// collect the bytes as they come in.
-BufferEntry.prototype.write = function (c) {
- c.copy(this._buffer, this._offset)
- this._offset += c.length
- Entry.prototype.write.call(this, c)
-}
diff --git a/node_modules/tar/lib/entry-writer.js b/node_modules/tar/lib/entry-writer.js
deleted file mode 100644
index 8e09042..0000000
--- a/node_modules/tar/lib/entry-writer.js
+++ /dev/null
@@ -1,169 +0,0 @@
-module.exports = EntryWriter
-
-var tar = require("../tar.js")
- , TarHeader = require("./header.js")
- , Entry = require("./entry.js")
- , inherits = require("inherits")
- , BlockStream = require("block-stream")
- , ExtendedHeaderWriter
- , Stream = require("stream").Stream
- , EOF = {}
-
-inherits(EntryWriter, Stream)
-
-function EntryWriter (props) {
- var me = this
-
- if (!(me instanceof EntryWriter)) {
- return new EntryWriter(props)
- }
-
- Stream.apply(this)
-
- me.writable = true
- me.readable = true
-
- me._stream = new BlockStream(512)
-
- me._stream.on("data", function (c) {
- me.emit("data", c)
- })
-
- me._stream.on("drain", function () {
- me.emit("drain")
- })
-
- me._stream.on("end", function () {
- me.emit("end")
- me.emit("close")
- })
-
- me.props = props
- if (props.type === "Directory") {
- props.size = 0
- }
- props.ustar = "ustar\0"
- props.ustarver = "00"
- me.path = props.path
-
- me._buffer = []
- me._didHeader = false
- me._meta = false
-
- me.on("pipe", function () {
- me._process()
- })
-}
-
-EntryWriter.prototype.write = function (c) {
- // console.error(".. ew write")
- if (this._ended) return this.emit("error", new Error("write after end"))
- this._buffer.push(c)
- this._process()
- this._needDrain = this._buffer.length > 0
- return !this._needDrain
-}
-
-EntryWriter.prototype.end = function (c) {
- // console.error(".. ew end")
- if (c) this._buffer.push(c)
- this._buffer.push(EOF)
- this._ended = true
- this._process()
- this._needDrain = this._buffer.length > 0
-}
-
-EntryWriter.prototype.pause = function () {
- // console.error(".. ew pause")
- this._paused = true
- this.emit("pause")
-}
-
-EntryWriter.prototype.resume = function () {
- // console.error(".. ew resume")
- this._paused = false
- this.emit("resume")
- this._process()
-}
-
-EntryWriter.prototype.add = function (entry) {
- // console.error(".. ew add")
- if (!this.parent) return this.emit("error", new Error("no parent"))
-
- // make sure that the _header and such is emitted, and clear out
- // the _currentEntry link on the parent.
- if (!this._ended) this.end()
-
- return this.parent.add(entry)
-}
-
-EntryWriter.prototype._header = function () {
- // console.error(".. ew header")
- if (this._didHeader) return
- this._didHeader = true
-
- var headerBlock = TarHeader.encode(this.props)
-
- if (this.props.needExtended && !this._meta) {
- var me = this
-
- ExtendedHeaderWriter = ExtendedHeaderWriter ||
- require("./extended-header-writer.js")
-
- ExtendedHeaderWriter(this.props)
- .on("data", function (c) {
- me.emit("data", c)
- })
- .on("error", function (er) {
- me.emit("error", er)
- })
- .end()
- }
-
- // console.error(".. .. ew headerBlock emitting")
- this.emit("data", headerBlock)
- this.emit("header")
-}
-
-EntryWriter.prototype._process = function () {
- // console.error(".. .. ew process")
- if (!this._didHeader && !this._meta) {
- this._header()
- }
-
- if (this._paused || this._processing) {
- // console.error(".. .. .. paused=%j, processing=%j", this._paused, this._processing)
- return
- }
-
- this._processing = true
-
- var buf = this._buffer
- for (var i = 0; i < buf.length; i ++) {
- // console.error(".. .. .. i=%d", i)
-
- var c = buf[i]
-
- if (c === EOF) this._stream.end()
- else this._stream.write(c)
-
- if (this._paused) {
- // console.error(".. .. .. paused mid-emission")
- this._processing = false
- if (i < buf.length) {
- this._needDrain = true
- this._buffer = buf.slice(i + 1)
- }
- return
- }
- }
-
- // console.error(".. .. .. emitted")
- this._buffer.length = 0
- this._processing = false
-
- // console.error(".. .. .. emitting drain")
- this.emit("drain")
-}
-
-EntryWriter.prototype.destroy = function () {}
diff --git a/node_modules/tar/lib/entry.js b/node_modules/tar/lib/entry.js
deleted file mode 100644
index 591202b..0000000
--- a/node_modules/tar/lib/entry.js
+++ /dev/null
@@ -1,220 +0,0 @@
-// A passthrough read/write stream that sets its properties
-// based on a header, extendedHeader, and globalHeader
-//
-// Can be either a file system object of some sort, or
-// a pax/ustar metadata entry.
-
-module.exports = Entry
-
-var TarHeader = require("./header.js")
- , tar = require("../tar")
- , assert = require("assert").ok
- , Stream = require("stream").Stream
- , inherits = require("inherits")
- , fstream = require("fstream").Abstract
-
-function Entry (header, extended, global) {
- Stream.call(this)
- this.readable = true
- this.writable = true
-
- this._needDrain = false
- this._paused = false
- this._reading = false
- this._ending = false
- this._ended = false
- this._remaining = 0
- this._abort = false
- this._queue = []
- this._index = 0
- this._queueLen = 0
-
- this._read = this._read.bind(this)
-
- this.props = {}
- this._header = header
- this._extended = extended || {}
-
- // globals can change throughout the course of
- // a file parse operation. Freeze it at its current state.
- this._global = {}
- var me = this
- Object.keys(global || {}).forEach(function (g) {
- me._global[g] = global[g]
- })
-
- this._setProps()
-}
-
-inherits(Entry, Stream)
-
-Entry.prototype.write = function (c) {
- if (this._ending) this.error("write() after end()", null, true)
- if (this._remaining === 0) {
- this.error("invalid bytes past eof")
- }
-
- // often we'll get a bunch of \0 at the end of the last write,
- // since chunks will always be 512 bytes when reading a tarball.
- if (c.length > this._remaining) {
- c = c.slice(0, this._remaining)
- }
- this._remaining -= c.length
-
- // put it on the stack.
- var ql = this._queueLen
- this._queue.push(c)
- this._queueLen ++
-
- this._read()
-
- // either paused, or buffered
- if (this._paused || ql > 0) {
- this._needDrain = true
- return false
- }
-
- return true
-}
-
-Entry.prototype.end = function (c) {
- if (c) this.write(c)
- this._ending = true
- this._read()
-}
-
-Entry.prototype.pause = function () {
- this._paused = true
- this.emit("pause")
-}
-
-Entry.prototype.resume = function () {
- // console.error(" Tar Entry resume", this.path)
- this.emit("resume")
- this._paused = false
- this._read()
- return this._queueLen - this._index > 1
-}
-
- // This is bound to the instance
-Entry.prototype._read = function () {
- // console.error(" Tar Entry _read", this.path)
-
- if (this._paused || this._reading || this._ended) return
-
- // set this flag so that event handlers don't inadvertently
- // get multiple _read() calls running.
- this._reading = true
-
- // have any data to emit?
- while (this._index < this._queueLen && !this._paused) {
- var chunk = this._queue[this._index ++]
- this.emit("data", chunk)
- }
-
- // check if we're drained
- if (this._index >= this._queueLen) {
- this._queue.length = this._queueLen = this._index = 0
- if (this._needDrain) {
- this._needDrain = false
- this.emit("drain")
- }
- if (this._ending) {
- this._ended = true
- this.emit("end")
- }
- }
-
- // if the queue gets too big, then pluck off whatever we can.
- // this should be fairly rare.
- var mql = this._maxQueueLen
- if (this._queueLen > mql && this._index > 0) {
- mql = Math.min(this._index, mql)
- this._index -= mql
- this._queueLen -= mql
- this._queue = this._queue.slice(mql)
- }
-
- this._reading = false
-}
-
-Entry.prototype._setProps = function () {
- // props = extended->global->header->{}
- var header = this._header
- , extended = this._extended
- , global = this._global
- , props = this.props
-
- // first get the values from the normal header.
- var fields = tar.fields
- for (var f = 0; fields[f] !== null; f ++) {
- var field = fields[f]
- , val = header[field]
- if (typeof val !== "undefined") props[field] = val
- }
-
- // next, the global header for this file.
- // numeric values, etc, will have already been parsed.
- ;[global, extended].forEach(function (p) {
- Object.keys(p).forEach(function (f) {
- if (typeof p[f] !== "undefined") props[f] = p[f]
- })
- })
-
- // no nulls allowed in path or linkpath
- ;["path", "linkpath"].forEach(function (p) {
- if (props.hasOwnProperty(p)) {
- props[p] = props[p].split("\0")[0]
- }
- })
-
-
- // set date fields to be a proper date
- ;["mtime", "ctime", "atime"].forEach(function (p) {
- if (props.hasOwnProperty(p)) {
- props[p] = new Date(props[p] * 1000)
- }
- })
-
- // set the type so that we know what kind of file to create
- var type
- switch (tar.types[props.type]) {
- case "OldFile":
- case "ContiguousFile":
- type = "File"
- break
-
- case "GNUDumpDir":
- type = "Directory"
- break
-
- case undefined:
- type = "Unknown"
- break
-
- case "Link":
- case "SymbolicLink":
- case "CharacterDevice":
- case "BlockDevice":
- case "Directory":
- case "FIFO":
- default:
- type = tar.types[props.type]
- }
-
- this.type = type
- this.path = props.path
- this.size = props.size
-
- // size is special, since it signals when the file needs to end.
- this._remaining = props.size
-}
-
-// the parser may not call write if _abort is true.
-// useful for skipping data from some files quickly.
-Entry.prototype.abort = function(){
- this._abort = true
-}
-
-Entry.prototype.warn = fstream.warn
-Entry.prototype.error = fstream.error
diff --git a/node_modules/tar/lib/extended-header-writer.js b/node_modules/tar/lib/extended-header-writer.js
deleted file mode 100644
index 1728c45..0000000
--- a/node_modules/tar/lib/extended-header-writer.js
+++ /dev/null
@@ -1,191 +0,0 @@
-
-module.exports = ExtendedHeaderWriter
-
-var inherits = require("inherits")
- , EntryWriter = require("./entry-writer.js")
-
-inherits(ExtendedHeaderWriter, EntryWriter)
-
-var tar = require("../tar.js")
- , path = require("path")
- , TarHeader = require("./header.js")
-
-// props is the props of the thing we need to write an
-// extended header for.
-// Don't be shy with it. Just encode everything.
-function ExtendedHeaderWriter (props) {
- // console.error(">> ehw ctor")
- var me = this
-
- if (!(me instanceof ExtendedHeaderWriter)) {
- return new ExtendedHeaderWriter(props)
- }
-
- me.fields = props
-
- var p =
- { path : ("PaxHeader" + path.join("/", props.path || ""))
- .replace(/\\/g, "/").substr(0, 100)
- , mode : props.mode || 0666
- , uid : props.uid || 0
- , gid : props.gid || 0
- , size : 0 // will be set later
- , mtime : props.mtime || Date.now() / 1000
- , type : "x"
- , linkpath : ""
- , ustar : "ustar\0"
- , ustarver : "00"
- , uname : props.uname || ""
- , gname : props.gname || ""
- , devmaj : props.devmaj || 0
- , devmin : props.devmin || 0
- }
-
-
- EntryWriter.call(me, p)
- // console.error(">> ehw props", me.props)
- me.props = p
-
- me._meta = true
-}
-
-ExtendedHeaderWriter.prototype.end = function () {
- // console.error(">> ehw end")
- var me = this
-
- if (me._ended) return
- me._ended = true
-
- me._encodeFields()
-
- if (me.props.size === 0) {
- // nothing to write!
- me._ready = true
- me._stream.end()
- return
- }
-
- me._stream.write(TarHeader.encode(me.props))
- me.body.forEach(function (l) {
- me._stream.write(l)
- })
- me._ready = true
-
- // console.error(">> ehw _process calling end()", me.props)
- this._stream.end()
-}
-
-ExtendedHeaderWriter.prototype._encodeFields = function () {
- // console.error(">> ehw _encodeFields")
- this.body = []
- if (this.fields.prefix) {
- this.fields.path = this.fields.prefix + "/" + this.fields.path
- this.fields.prefix = ""
- }
- encodeFields(this.fields, "", this.body, this.fields.noProprietary)
- var me = this
- this.body.forEach(function (l) {
- me.props.size += l.length
- })
-}
-
-function encodeFields (fields, prefix, body, nop) {
- // console.error(">> >> ehw encodeFields")
- // "%d %s=%s\n", <length>, <keyword>, <value>
- // The length is a decimal number, and includes itself and the \n
- // Numeric values are decimal strings.
-
- Object.keys(fields).forEach(function (k) {
- var val = fields[k]
- , numeric = tar.numeric[k]
-
- if (prefix) k = prefix + "." + k
-
- // already including NODETAR.type, don't need File=true also
- if (k === fields.type && val === true) return
-
- switch (k) {
- // don't include anything that's always handled just fine
- // in the normal header, or only meaningful in the context
- // of nodetar
- case "mode":
- case "cksum":
- case "ustar":
- case "ustarver":
- case "prefix":
- case "basename":
- case "dirname":
- case "needExtended":
- case "block":
- case "filter":
- return
-
- case "rdev":
- if (val === 0) return
- break
-
- case "nlink":
- case "dev": // Truly a hero among men, Creator of Star!
- case "ino": // Speak his name with reverent awe! It is:
- k = "SCHILY." + k
- break
-
- default: break
- }
-
- if (val && typeof val === "object" &&
- !Buffer.isBuffer(val)) encodeFields(val, k, body, nop)
- else if (val === null || val === undefined) return
- else body.push.apply(body, encodeField(k, val, nop))
- })
-
- return body
-}
-
-function encodeField (k, v, nop) {
- // lowercase keys must be valid, otherwise prefix with
- // "NODETAR."
- if (k.charAt(0) === k.charAt(0).toLowerCase()) {
- var m = k.split(".")[0]
- if (!tar.knownExtended[m]) k = "NODETAR." + k
- }
-
- // no proprietary
- if (nop && k.charAt(0) !== k.charAt(0).toLowerCase()) {
- return []
- }
-
- if (typeof val === "number") val = val.toString(10)
-
- var s = new Buffer(" " + k + "=" + v + "\n")
- , digits = Math.floor(Math.log(s.length) / Math.log(10)) + 1
-
- // console.error("1 s=%j digits=%j s.length=%d", s.toString(), digits, s.length)
-
- // if adding that many digits will make it go over that length,
- // then add one to it. For example, if the string is:
- // " foo=bar\n"
- // then that's 9 characters. With the "9", that bumps the length
- // up to 10. However, this is invalid:
- // "10 foo=bar\n"
- // but, since that's actually 11 characters, since 10 adds another
- // character to the length, and the length includes the number
- // itself. In that case, just bump it up again.
- if (s.length + digits >= Math.pow(10, digits)) digits += 1
- // console.error("2 s=%j digits=%j s.length=%d", s.toString(), digits, s.length)
-
- var len = digits + s.length
- // console.error("3 s=%j digits=%j s.length=%d len=%d", s.toString(), digits, s.length, len)
- var lenBuf = new Buffer("" + len)
- if (lenBuf.length + s.length !== len) {
- throw new Error("Bad length calculation\n"+
- "len="+len+"\n"+
- "lenBuf="+JSON.stringify(lenBuf.toString())+"\n"+
- "lenBuf.length="+lenBuf.length+"\n"+
- "digits="+digits+"\n"+
- "s="+JSON.stringify(s.toString())+"\n"+
- "s.length="+s.length)
- }
-
- return [lenBuf, s]
-}
diff --git a/node_modules/tar/lib/extended-header.js b/node_modules/tar/lib/extended-header.js
deleted file mode 100644
index 74f432c..0000000
--- a/node_modules/tar/lib/extended-header.js
+++ /dev/null
@@ -1,140 +0,0 @@
-// An Entry consisting of:
-//
-// "%d %s=%s\n", <length>, <keyword>, <value>
-//
-// The length is a decimal number, and includes itself and the \n
-// \0 does not terminate anything. Only the length terminates the string.
-// Numeric values are decimal strings.
-
-module.exports = ExtendedHeader
-
-var Entry = require("./entry.js")
- , inherits = require("inherits")
- , tar = require("../tar.js")
- , numeric = tar.numeric
- , keyTrans = { "SCHILY.dev": "dev"
- , "SCHILY.ino": "ino"
- , "SCHILY.nlink": "nlink" }
-
-function ExtendedHeader () {
- Entry.apply(this, arguments)
- this.on("data", this._parse)
- this.fields = {}
- this._position = 0
- this._fieldPos = 0
- this._state = SIZE
- this._sizeBuf = []
- this._keyBuf = []
- this._valBuf = []
- this._size = -1
- this._key = ""
-}
-
-inherits(ExtendedHeader, Entry)
-ExtendedHeader.prototype._parse = parse
-
-var s = 0
- , states = ExtendedHeader.states = {}
- , SIZE = states.SIZE = s++
- , KEY = states.KEY = s++
- , VAL = states.VAL = s++
- , ERR = states.ERR = s++
-
-Object.keys(states).forEach(function (s) {
- states[states[s]] = states[s]
-})
-
-states[s] = null
-
-// char code values for comparison
-var _0 = "0".charCodeAt(0)
- , _9 = "9".charCodeAt(0)
- , point = ".".charCodeAt(0)
- , a = "a".charCodeAt(0)
- , Z = "Z".charCodeAt(0)
- , a = "a".charCodeAt(0)
- , z = "z".charCodeAt(0)
- , space = " ".charCodeAt(0)
- , eq = "=".charCodeAt(0)
- , cr = "\n".charCodeAt(0)
-
-function parse (c) {
- if (this._state === ERR) return
-
- for ( var i = 0, l = c.length
- ; i < l
- ; this._position++, this._fieldPos++, i++) {
- // console.error("top of loop, size="+this._size)
-
- var b = c[i]
-
- if (this._size >= 0 && this._fieldPos > this._size) {
- error(this, "field exceeds length="+this._size)
- return
- }
-
- switch (this._state) {
- case ERR: return
-
- case SIZE:
- // console.error("parsing size, b=%d, rest=%j", b, c.slice(i).toString())
- if (b === space) {
- this._state = KEY
- // this._fieldPos = this._sizeBuf.length
- this._size = parseInt(new Buffer(this._sizeBuf).toString(), 10)
- this._sizeBuf.length = 0
- continue
- }
- if (b < _0 || b > _9) {
- error(this, "expected [" + _0 + ".." + _9 + "], got " + b)
- return
- }
- this._sizeBuf.push(b)
- continue
-
- case KEY:
- // can be any char except =, not > size.
- if (b === eq) {
- this._state = VAL
- this._key = new Buffer(this._keyBuf).toString()
- if (keyTrans[this._key]) this._key = keyTrans[this._key]
- this._keyBuf.length = 0
- continue
- }
- this._keyBuf.push(b)
- continue
-
- case VAL:
- // field must end with cr
- if (this._fieldPos === this._size - 1) {
- // console.error("finished with "+this._key)
- if (b !== cr) {
- error(this, "expected \\n at end of field")
- return
- }
- var val = new Buffer(this._valBuf).toString()
- if (numeric[this._key]) {
- val = parseFloat(val)
- }
- this.fields[this._key] = val
-
- this._valBuf.length = 0
- this._state = SIZE
- this._size = -1
- this._fieldPos = -1
- continue
- }
- this._valBuf.push(b)
- continue
- }
- }
-}
-
-function error (me, msg) {
- msg = "invalid header: " + msg
- + "\nposition=" + me._position
- + "\nfield position=" + me._fieldPos
-
- me.error(msg)
- me.state = ERR
-}
diff --git a/node_modules/tar/lib/extract.js b/node_modules/tar/lib/extract.js
deleted file mode 100644
index fe1bb97..0000000
--- a/node_modules/tar/lib/extract.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// give it a tarball and a path, and it'll dump the contents
-
-module.exports = Extract
-
-var tar = require("../tar.js")
- , fstream = require("fstream")
- , inherits = require("inherits")
- , path = require("path")
-
-function Extract (opts) {
- if (!(this instanceof Extract)) return new Extract(opts)
- tar.Parse.apply(this)
-
- if (typeof opts !== "object") {
- opts = { path: opts }
- }
-
- // better to drop in cwd? seems more standard.
- opts.path = opts.path || path.resolve("node-tar-extract")
- opts.type = "Directory"
- opts.Directory = true
-
- // similar to --strip or --strip-components
- opts.strip = +opts.strip
- if (!opts.strip || opts.strip <= 0) opts.strip = 0
-
- this._fst = fstream.Writer(opts)
-
- this.pause()
- var me = this
-
- // Hardlinks in tarballs are relative to the root
- // of the tarball. So, they need to be resolved against
- // the target directory in order to be created properly.
- me.on("entry", function (entry) {
- // if there's a "strip" argument, then strip off that many
- // path components.
- if (opts.strip) {
- var p = entry.path.split("/").slice(opts.strip).join("/")
- entry.path = entry.props.path = p
- if (entry.linkpath) {
- var lp = entry.linkpath.split("/").slice(opts.strip).join("/")
- entry.linkpath = entry.props.linkpath = lp
- }
- }
- if (entry.type === "Link") {
- entry.linkpath = entry.props.linkpath =
- path.join(opts.path, path.join("/", entry.props.linkpath))
- }
-
- if (entry.type === "SymbolicLink") {
- var dn = path.dirname(entry.path) || ""
- var linkpath = entry.props.linkpath
- var target = path.resolve(opts.path, dn, linkpath)
- if (target.indexOf(opts.path) !== 0) {
- linkpath = path.join(opts.path, path.join("/", linkpath))
- }
- entry.linkpath = entry.props.linkpath = linkpath
- }
- })
-
- this._fst.on("ready", function () {
- me.pipe(me._fst, { end: false })
- me.resume()
- })
-
- this._fst.on('error', function(err) {
- me.emit('error', err)
- })
-
- this._fst.on('drain', function() {
- me.emit('drain')
- })
-
- // this._fst.on("end", function () {
- // console.error("\nEEEE Extract End", me._fst.path)
- // })
-
- this._fst.on("close", function () {
- // console.error("\nEEEE Extract End", me._fst.path)
- me.emit("finish")
- me.emit("end")
- me.emit("close")
- })
-}
-
-inherits(Extract, tar.Parse)
-
-Extract.prototype._streamEnd = function () {
- var me = this
- if (!me._ended || me._entry) me.error("unexpected eof")
- me._fst.end()
- // my .end() is coming later.
-}
diff --git a/node_modules/tar/lib/global-header-writer.js b/node_modules/tar/lib/global-header-writer.js
deleted file mode 100644
index 0bfc7b8..0000000
--- a/node_modules/tar/lib/global-header-writer.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = GlobalHeaderWriter
-
-var ExtendedHeaderWriter = require("./extended-header-writer.js")
- , inherits = require("inherits")
-
-inherits(GlobalHeaderWriter, ExtendedHeaderWriter)
-
-function GlobalHeaderWriter (props) {
- if (!(this instanceof GlobalHeaderWriter)) {
- return new GlobalHeaderWriter(props)
- }
- ExtendedHeaderWriter.call(this, props)
- this.props.type = "g"
-}
diff --git a/node_modules/tar/lib/header.js b/node_modules/tar/lib/header.js
deleted file mode 100644
index 05b237c..0000000
--- a/node_modules/tar/lib/header.js
+++ /dev/null
@@ -1,385 +0,0 @@
-// parse a 512-byte header block to a data object, or vice-versa
-// If the data won't fit nicely in a simple header, then generate
-// the appropriate extended header file, and return that.
-
-module.exports = TarHeader
-
-var tar = require("../tar.js")
- , fields = tar.fields
- , fieldOffs = tar.fieldOffs
- , fieldEnds = tar.fieldEnds
- , fieldSize = tar.fieldSize
- , numeric = tar.numeric
- , assert = require("assert").ok
- , space = " ".charCodeAt(0)
- , slash = "/".charCodeAt(0)
- , bslash = process.platform === "win32" ? "\\".charCodeAt(0) : null
-
-function TarHeader (block) {
- if (!(this instanceof TarHeader)) return new TarHeader(block)
- if (block) this.decode(block)
-}
-
-TarHeader.prototype =
- { decode : decode
- , encode: encode
- , calcSum: calcSum
- , checkSum: checkSum
- }
-
-TarHeader.parseNumeric = parseNumeric
-TarHeader.encode = encode
-TarHeader.decode = decode
-
-// note that this will only do the normal ustar header, not any kind
-// of extended posix header file. If something doesn't fit comfortably,
-// then it will set obj.needExtended = true, and set the block to
-// the closest approximation.
-function encode (obj) {
- if (!obj && !(this instanceof TarHeader)) throw new Error(
- "encode must be called on a TarHeader, or supplied an object")
-
- obj = obj || this
- var block = obj.block = new Buffer(512)
-
- // if the object has a "prefix", then that's actually an extension of
- // the path field.
- if (obj.prefix) {
- // console.error("%% header encoding, got a prefix", obj.prefix)
- obj.path = obj.prefix + "/" + obj.path
- // console.error("%% header encoding, prefixed path", obj.path)
- obj.prefix = ""
- }
-
- obj.needExtended = false
-
- if (obj.mode) {
- if (typeof obj.mode === "string") obj.mode = parseInt(obj.mode, 8)
- obj.mode = obj.mode & 0777
- }
-
- for (var f = 0; fields[f] !== null; f ++) {
- var field = fields[f]
- , off = fieldOffs[f]
- , end = fieldEnds[f]
- , ret
-
- switch (field) {
- case "cksum":
- // special, done below, after all the others
- break
-
- case "prefix":
- // special, this is an extension of the "path" field.
- // console.error("%% header encoding, skip prefix later")
- break
-
- case "type":
- // convert from long name to a single char.
- var type = obj.type || "0"
- if (type.length > 1) {
- type = tar.types[obj.type]
- if (!type) type = "0"
- }
- writeText(block, off, end, type)
- break
-
- case "path":
- // uses the "prefix" field if > 100 bytes, but <= 255
- var pathLen = Buffer.byteLength(obj.path)
- , pathFSize = fieldSize[fields.path]
- , prefFSize = fieldSize[fields.prefix]
-
- // paths between 100 and 255 should use the prefix field.
- // longer than 255
- if (pathLen > pathFSize &&
- pathLen <= pathFSize + prefFSize) {
- // need to find a slash somewhere in the middle so that
- // path and prefix both fit in their respective fields
- var searchStart = pathLen - 1 - pathFSize
- , searchEnd = prefFSize
- , found = false
- , pathBuf = new Buffer(obj.path)
-
- for ( var s = searchStart
- ; (s <= searchEnd)
- ; s ++ ) {
- if (pathBuf[s] === slash || pathBuf[s] === bslash) {
- found = s
- break
- }
- }
-
- if (found !== false) {
- prefix = pathBuf.slice(0, found).toString("utf8")
- path = pathBuf.slice(found + 1).toString("utf8")
-
- ret = writeText(block, off, end, path)
- off = fieldOffs[fields.prefix]
- end = fieldEnds[fields.prefix]
- // console.error("%% header writing prefix", off, end, prefix)
- ret = writeText(block, off, end, prefix) || ret
- break
- }
- }
-
- // paths less than 100 chars don't need a prefix
- // and paths longer than 255 need an extended header and will fail
- // on old implementations no matter what we do here.
- // Null out the prefix, and fallthrough to default.
- // console.error("%% header writing no prefix")
- var poff = fieldOffs[fields.prefix]
- , pend = fieldEnds[fields.prefix]
- writeText(block, poff, pend, "")
- // fallthrough
-
- // all other fields are numeric or text
- default:
- ret = numeric[field]
- ? writeNumeric(block, off, end, obj[field])
- : writeText(block, off, end, obj[field] || "")
- break
- }
- obj.needExtended = obj.needExtended || ret
- }
-
- var off = fieldOffs[fields.cksum]
- , end = fieldEnds[fields.cksum]
-
- writeNumeric(block, off, end, calcSum.call(this, block))
-
- return block
-}
-
-// if it's a negative number, or greater than will fit,
-// then use write256.
-var MAXNUM = { 12: 077777777777
- , 11: 07777777777
- , 8 : 07777777
- , 7 : 0777777 }
-function writeNumeric (block, off, end, num) {
- var writeLen = end - off
- , maxNum = MAXNUM[writeLen] || 0
-
- num = num || 0
- // console.error(" numeric", num)
-
- if (num instanceof Date ||
- Object.prototype.toString.call(num) === "[object Date]") {
- num = num.getTime() / 1000
- }
-
- if (num > maxNum || num < 0) {
- write256(block, off, end, num)
- // need an extended header if negative or too big.
- return true
- }
-
- // god, tar is so annoying
- // if the string is small enough, you should put a space
- // between the octal string and the \0, but if it doesn't
- // fit, then don't.
- var numStr = Math.floor(num).toString(8)
- if (num < MAXNUM[writeLen - 1]) numStr += " "
-
- // pad with "0" chars
- if (numStr.length < writeLen) {
- numStr = (new Array(writeLen - numStr.length).join("0")) + numStr
- }
-
- if (numStr.length !== writeLen - 1) {
- throw new Error("invalid length: " + JSON.stringify(numStr) + "\n" +
- "expected: "+writeLen)
- }
- block.write(numStr, off, writeLen, "utf8")
- block[end - 1] = 0
-}
-
-function write256 (block, off, end, num) {
- var buf = block.slice(off, end)
- var positive = num >= 0
- buf[0] = positive ? 0x80 : 0xFF
-
- // get the number as a base-256 tuple
- if (!positive) num *= -1
- var tuple = []
- do {
- var n = num % 256
- tuple.push(n)
- num = (num - n) / 256
- } while (num)
-
- var bytes = tuple.length
-
- var fill = buf.length - bytes
- for (var i = 1; i < fill; i ++) {
- buf[i] = positive ? 0 : 0xFF
- }
-
- // tuple is a base256 number, with [0] as the *least* significant byte
- // if it's negative, then we need to flip all the bits once we hit the
- // first non-zero bit. The 2's-complement is (0x100 - n), and the 1's-
- // complement is (0xFF - n).
- var zero = true
- for (i = bytes; i > 0; i --) {
- var byte = tuple[bytes - i]
- if (positive) buf[fill + i] = byte
- else if (zero && byte === 0) buf[fill + i] = 0
- else if (zero) {
- zero = false
- buf[fill + i] = 0x100 - byte
- } else buf[fill + i] = 0xFF - byte
- }
-}
-
-function writeText (block, off, end, str) {
- // strings are written as utf8, then padded with \0
- var strLen = Buffer.byteLength(str)
- , writeLen = Math.min(strLen, end - off)
- // non-ascii fields need extended headers
- // long fields get truncated
- , needExtended = strLen !== str.length || strLen > writeLen
-
- // write the string, and null-pad
- if (writeLen > 0) block.write(str, off, writeLen, "utf8")
- for (var i = off + writeLen; i < end; i ++) block[i] = 0
-
- return needExtended
-}
-
-function calcSum (block) {
- block = block || this.block
- assert(Buffer.isBuffer(block) && block.length === 512)
-
- if (!block) throw new Error("Need block to checksum")
-
- // now figure out what it would be if the cksum was " "
- var sum = 0
- , start = fieldOffs[fields.cksum]
- , end = fieldEnds[fields.cksum]
-
- for (var i = 0; i < fieldOffs[fields.cksum]; i ++) {
- sum += block[i]
- }
-
- for (var i = start; i < end; i ++) {
- sum += space
- }
-
- for (var i = end; i < 512; i ++) {
- sum += block[i]
- }
-
- return sum
-}
-
-
-function checkSum (block) {
- var sum = calcSum.call(this, block)
- block = block || this.block
-
- var cksum = block.slice(fieldOffs[fields.cksum], fieldEnds[fields.cksum])
- cksum = parseNumeric(cksum)
-
- return cksum === sum
-}
-
-function decode (block) {
- block = block || this.block
- assert(Buffer.isBuffer(block) && block.length === 512)
-
- this.block = block
- this.cksumValid = this.checkSum()
-
- var prefix = null
-
- // slice off each field.
- for (var f = 0; fields[f] !== null; f ++) {
- var field = fields[f]
- , val = block.slice(fieldOffs[f], fieldEnds[f])
-
- switch (field) {
- case "ustar":
- // if not ustar, then everything after that is just padding.
- if (val.toString() !== "ustar\0") {
- this.ustar = false
- return
- } else {
- // console.error("ustar:", val, val.toString())
- this.ustar = val.toString()
- }
- break
-
- // prefix is special, since it might signal the xstar header
- case "prefix":
- var atime = parseNumeric(val.slice(131, 131 + 12))
- , ctime = parseNumeric(val.slice(131 + 12, 131 + 12 + 12))
- if ((val[130] === 0 || val[130] === space) &&
- typeof atime === "number" &&
- typeof ctime === "number" &&
- val[131 + 12] === space &&
- val[131 + 12 + 12] === space) {
- this.atime = atime
- this.ctime = ctime
- val = val.slice(0, 130)
- }
- prefix = val.toString("utf8").replace(/\0+$/, "")
- // console.error("%% header reading prefix", prefix)
- break
-
- // all other fields are null-padding text
- // or a number.
- default:
- if (numeric[field]) {
- this[field] = parseNumeric(val)
- } else {
- this[field] = val.toString("utf8").replace(/\0+$/, "")
- }
- break
- }
- }
-
- // if we got a prefix, then prepend it to the path.
- if (prefix) {
- this.path = prefix + "/" + this.path
- // console.error("%% header got a prefix", this.path)
- }
-}
-
-function parse256 (buf) {
- // first byte MUST be either 80 or FF
- // 80 for positive, FF for 2's comp
- var positive
- if (buf[0] === 0x80) positive = true
- else if (buf[0] === 0xFF) positive = false
- else return null
-
- // build up a base-256 tuple from the least sig to the highest
- var zero = false
- , tuple = []
- for (var i = buf.length - 1; i > 0; i --) {
- var byte = buf[i]
- if (positive) tuple.push(byte)
- else if (zero && byte === 0) tuple.push(0)
- else if (zero) {
- zero = false
- tuple.push(0x100 - byte)
- } else tuple.push(0xFF - byte)
- }
-
- for (var sum = 0, i = 0, l = tuple.length; i < l; i ++) {
- sum += tuple[i] * Math.pow(256, i)
- }
-
- return positive ? sum : -1 * sum
-}
-
-function parseNumeric (f) {
- if (f[0] & 0x80) return parse256(f)
-
- var str = f.toString("utf8").split("\0")[0].trim()
- , res = parseInt(str, 8)
-
- return isNaN(res) ? null : res
-}
-
diff --git a/node_modules/tar/lib/pack.js b/node_modules/tar/lib/pack.js
deleted file mode 100644
index 5a3bb95..0000000
--- a/node_modules/tar/lib/pack.js
+++ /dev/null
@@ -1,236 +0,0 @@
-// pipe in an fstream, and it'll make a tarball.
-// key-value pair argument is global extended header props.
-
-module.exports = Pack
-
-var EntryWriter = require("./entry-writer.js")
- , Stream = require("stream").Stream
- , path = require("path")
- , inherits = require("inherits")
- , GlobalHeaderWriter = require("./global-header-writer.js")
- , collect = require("fstream").collect
- , eof = new Buffer(512)
-
-for (var i = 0; i < 512; i ++) eof[i] = 0
-
-inherits(Pack, Stream)
-
-function Pack (props) {
- // console.error("-- p ctor")
- var me = this
- if (!(me instanceof Pack)) return new Pack(props)
-
- if (props) me._noProprietary = props.noProprietary
- else me._noProprietary = false
-
- me._global = props
-
- me.readable = true
- me.writable = true
- me._buffer = []
- // console.error("-- -- set current to null in ctor")
- me._currentEntry = null
- me._processing = false
-
- me._pipeRoot = null
- me.on("pipe", function (src) {
- if (src.root === me._pipeRoot) return
- me._pipeRoot = src
- src.on("end", function () {
- me._pipeRoot = null
- })
- me.add(src)
- })
-}
-
-Pack.prototype.addGlobal = function (props) {
- // console.error("-- p addGlobal")
- if (this._didGlobal) return
- this._didGlobal = true
-
- var me = this
- GlobalHeaderWriter(props)
- .on("data", function (c) {
- me.emit("data", c)
- })
- .end()
-}
-
-Pack.prototype.add = function (stream) {
- if (this._global && !this._didGlobal) this.addGlobal(this._global)
-
- if (this._ended) return this.emit("error", new Error("add after end"))
-
- collect(stream)
- this._buffer.push(stream)
- this._process()
- this._needDrain = this._buffer.length > 0
- return !this._needDrain
-}
-
-Pack.prototype.pause = function () {
- this._paused = true
- if (this._currentEntry) this._currentEntry.pause()
- this.emit("pause")
-}
-
-Pack.prototype.resume = function () {
- this._paused = false
- if (this._currentEntry) this._currentEntry.resume()
- this.emit("resume")
- this._process()
-}
-
-Pack.prototype.end = function () {
- this._ended = true
- this._buffer.push(eof)
- this._process()
-}
-
-Pack.prototype._process = function () {
- var me = this
- if (me._paused || me._processing) {
- return
- }
-
- var entry = me._buffer.shift()
-
- if (!entry) {
- if (me._needDrain) {
- me.emit("drain")
- }
- return
- }
-
- if (entry.ready === false) {
- // console.error("-- entry is not ready", entry)
- me._buffer.unshift(entry)
- entry.on("ready", function () {
- // console.error("-- -- ready!", entry)
- me._process()
- })
- return
- }
-
- me._processing = true
-
- if (entry === eof) {
- // need 2 ending null blocks.
- me.emit("data", eof)
- me.emit("data", eof)
- me.emit("end")
- me.emit("close")
- return
- }
-
- // Change the path to be relative to the root dir that was
- // added to the tarball.
- //
- // XXX This should be more like how -C works, so you can
- // explicitly set a root dir, and also explicitly set a pathname
- // in the tarball to use. That way we can skip a lot of extra
- // work when resolving symlinks for bundled dependencies in npm.
-
- var root = path.dirname((entry.root || entry).path);
- if (me._global && me._global.fromBase && entry.root && entry.root.path) {
- // user set 'fromBase: true' indicating tar root should be directory itself
- root = entry.root.path;
- }
-
- var wprops = {}
-
- Object.keys(entry.props || {}).forEach(function (k) {
- wprops[k] = entry.props[k]
- })
-
- if (me._noProprietary) wprops.noProprietary = true
-
- wprops.path = path.relative(root, entry.path || '')
-
- // actually not a matter of opinion or taste.
- if (process.platform === "win32") {
- wprops.path = wprops.path.replace(/\\/g, "/")
- }
-
- if (!wprops.type)
- wprops.type = 'Directory'
-
- switch (wprops.type) {
- // sockets not supported
- case "Socket":
- return
-
- case "Directory":
- wprops.path += "/"
- wprops.size = 0
- break
-
- case "Link":
- var lp = path.resolve(path.dirname(entry.path), entry.linkpath)
- wprops.linkpath = path.relative(root, lp) || "."
- wprops.size = 0
- break
-
- case "SymbolicLink":
- var lp = path.resolve(path.dirname(entry.path), entry.linkpath)
- wprops.linkpath = path.relative(path.dirname(entry.path), lp) || "."
- wprops.size = 0
- break
- }
-
- // console.error("-- new writer", wprops)
- // if (!wprops.type) {
- // // console.error("-- no type?", entry.constructor.name, entry)
- // }
-
- // console.error("-- -- set current to new writer", wprops.path)
- var writer = me._currentEntry = EntryWriter(wprops)
-
- writer.parent = me
-
- // writer.on("end", function () {
- // // console.error("-- -- writer end", writer.path)
- // })
-
- writer.on("data", function (c) {
- me.emit("data", c)
- })
-
- writer.on("header", function () {
- Buffer.prototype.toJSON = function () {
- return this.toString().split(/\0/).join(".")
- }
- // console.error("-- -- writer header %j", writer.props)
- if (writer.props.size === 0) nextEntry()
- })
- writer.on("close", nextEntry)
-
- var ended = false
- function nextEntry () {
- if (ended) return
- ended = true
-
- // console.error("-- -- writer close", writer.path)
- // console.error("-- -- set current to null", wprops.path)
- me._currentEntry = null
- me._processing = false
- me._process()
- }
-
- writer.on("error", function (er) {
- // console.error("-- -- writer error", writer.path)
- me.emit("error", er)
- })
-
- // if it's the root, then there's no need to add its entries,
- // or data, since they'll be added directly.
- if (entry === me._pipeRoot) {
- // console.error("-- is the root, don't auto-add")
- writer.add = null
- }
-
- entry.pipe(writer)
-}
-
-Pack.prototype.destroy = function () {}
-Pack.prototype.write = function () {}
diff --git a/node_modules/tar/lib/parse.js b/node_modules/tar/lib/parse.js
deleted file mode 100644
index 1c66ebd..0000000
--- a/node_modules/tar/lib/parse.js
+++ /dev/null
@@ -1,281 +0,0 @@
-
-// A writable stream.
-// It emits "entry" events, which provide a readable stream that has
-// header info attached.
-
-module.exports = Parse.create = Parse
-
-var stream = require("stream")
- , Stream = stream.Stream
- , BlockStream = require("block-stream")
- , tar = require("../tar.js")
- , TarHeader = require("./header.js")
- , Entry = require("./entry.js")
- , BufferEntry = require("./buffer-entry.js")
- , ExtendedHeader = require("./extended-header.js")
- , assert = require("assert").ok
- , inherits = require("inherits")
- , fstream = require("fstream")
-
-// reading a tar is a lot like reading a directory
-// However, we're actually not going to run the ctor,
-// since it does a stat and various other stuff.
-// This inheritance gives us the pause/resume/pipe
-// behavior that is desired.
-inherits(Parse, fstream.Reader)
-
-function Parse () {
- var me = this
- if (!(me instanceof Parse)) return new Parse()
-
- // doesn't apply fstream.Reader ctor?
- // no, becasue we don't want to stat/etc, we just
- // want to get the entry/add logic from .pipe()
- Stream.apply(me)
-
- me.writable = true
- me.readable = true
- me._stream = new BlockStream(512)
- me.position = 0
- me._ended = false
- me._hardLinks = {}
-
- me._stream.on("error", function (e) {
- me.emit("error", e)
- })
-
- me._stream.on("data", function (c) {
- me._process(c)
- })
-
- me._stream.on("end", function () {
- me._streamEnd()
- })
-
- me._stream.on("drain", function () {
- me.emit("drain")
- })
-}
-
-// overridden in Extract class, since it needs to
-// wait for its DirWriter part to finish before
-// emitting "end"
-Parse.prototype._streamEnd = function () {
- var me = this
- if (!me._ended || me._entry) me.error("unexpected eof")
- me.emit("end")
-}
-
-// a tar reader is actually a filter, not just a readable stream.
-// So, you should pipe a tarball stream into it, and it needs these
-// write/end methods to do that.
-Parse.prototype.write = function (c) {
- if (this._ended) {
- // gnutar puts a LOT of nulls at the end.
- // you can keep writing these things forever.
- // Just ignore them.
- for (var i = 0, l = c.length; i > l; i ++) {
- if (c[i] !== 0) return this.error("write() after end()")
- }
- return
- }
- return this._stream.write(c)
-}
-
-Parse.prototype.end = function (c) {
- this._ended = true
- return this._stream.end(c)
-}
-
-// don't need to do anything, since we're just
-// proxying the data up from the _stream.
-// Just need to override the parent's "Not Implemented"
-// error-thrower.
-Parse.prototype._read = function () {}
-
-Parse.prototype._process = function (c) {
- assert(c && c.length === 512, "block size should be 512")
-
- // one of three cases.
- // 1. A new header
- // 2. A part of a file/extended header
- // 3. One of two or more EOF null blocks
-
- if (this._entry) {
- var entry = this._entry
- if(!entry._abort) entry.write(c)
- else {
- entry._remaining -= c.length
- if(entry._remaining < 0) entry._remaining = 0
- }
- if (entry._remaining === 0) {
- entry.end()
- this._entry = null
- }
- } else {
- // either zeroes or a header
- var zero = true
- for (var i = 0; i < 512 && zero; i ++) {
- zero = c[i] === 0
- }
-
- // eof is *at least* 2 blocks of nulls, and then the end of the
- // file. you can put blocks of nulls between entries anywhere,
- // so appending one tarball to another is technically valid.
- // ending without the eof null blocks is not allowed, however.
- if (zero) {
- if (this._eofStarted)
- this._ended = true
- this._eofStarted = true
- } else {
- this._eofStarted = false
- this._startEntry(c)
- }
- }
-
- this.position += 512
-}
-
-// take a header chunk, start the right kind of entry.
-Parse.prototype._startEntry = function (c) {
- var header = new TarHeader(c)
- , self = this
- , entry
- , ev
- , EntryType
- , onend
- , meta = false
-
- if (null === header.size || !header.cksumValid) {
- var e = new Error("invalid tar file")
- e.header = header
- e.tar_file_offset = this.position
- e.tar_block = this.position / 512
- return this.emit("error", e)
- }
-
- switch (tar.types[header.type]) {
- case "File":
- case "OldFile":
- case "Link":
- case "SymbolicLink":
- case "CharacterDevice":
- case "BlockDevice":
- case "Directory":
- case "FIFO":
- case "ContiguousFile":
- case "GNUDumpDir":
- // start a file.
- // pass in any extended headers
- // These ones consumers are typically most interested in.
- EntryType = Entry
- ev = "entry"
- break
-
- case "GlobalExtendedHeader":
- // extended headers that apply to the rest of the tarball
- EntryType = ExtendedHeader
- onend = function () {
- self._global = self._global || {}
- Object.keys(entry.fields).forEach(function (k) {
- self._global[k] = entry.fields[k]
- })
- }
- ev = "globalExtendedHeader"
- meta = true
- break
-
- case "ExtendedHeader":
- case "OldExtendedHeader":
- // extended headers that apply to the next entry
- EntryType = ExtendedHeader
- onend = function () {
- self._extended = entry.fields
- }
- ev = "extendedHeader"
- meta = true
- break
-
- case "NextFileHasLongLinkpath":
- // set linkpath=<contents> in extended header
- EntryType = BufferEntry
- onend = function () {
- self._extended = self._extended || {}
- self._extended.linkpath = entry.body
- }
- ev = "longLinkpath"
- meta = true
- break
-
- case "NextFileHasLongPath":
- case "OldGnuLongPath":
- // set path=<contents> in file-extended header
- EntryType = BufferEntry
- onend = function () {
- self._extended = self._extended || {}
- self._extended.path = entry.body
- }
- ev = "longPath"
- meta = true
- break
-
- default:
- // all the rest we skip, but still set the _entry
- // member, so that we can skip over their data appropriately.
- // emit an event to say that this is an ignored entry type?
- EntryType = Entry
- ev = "ignoredEntry"
- break
- }
-
- var global, extended
- if (meta) {
- global = extended = null
- } else {
- var global = this._global
- var extended = this._extended
-
- // extendedHeader only applies to one entry, so once we start
- // an entry, it's over.
- this._extended = null
- }
- entry = new EntryType(header, extended, global)
- entry.meta = meta
-
- // only proxy data events of normal files.
- if (!meta) {
- entry.on("data", function (c) {
- me.emit("data", c)
- })
- }
-
- if (onend) entry.on("end", onend)
-
- this._entry = entry
-
- if (entry.type === "Link") {
- this._hardLinks[entry.path] = entry
- }
-
- var me = this
-
- entry.on("pause", function () {
- me.pause()
- })
-
- entry.on("resume", function () {
- me.resume()
- })
-
- if (this.listeners("*").length) {
- this.emit("*", ev, entry)
- }
-
- this.emit(ev, entry)
-
- // Zero-byte entry. End immediately.
- if (entry.props.size === 0) {
- entry.end()
- this._entry = null
- }
-}
diff --git a/node_modules/tar/package.json b/node_modules/tar/package.json
deleted file mode 100644
index ab5bede..0000000
--- a/node_modules/tar/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_from": "tar@^2.0.0",
- "_id": "tar@2.2.2",
- "_inBundle": false,
- "_integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",
- "_location": "/tar",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "tar@^2.0.0",
- "name": "tar",
- "escapedName": "tar",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/node-gyp"
- ],
- "_resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz",
- "_shasum": "0ca8848562c7299b8b446ff6a4d60cdbb23edc40",
- "_spec": "tar@^2.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-gyp",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/node-tar/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "block-stream": "*",
- "fstream": "^1.0.12",
- "inherits": "2"
- },
- "deprecated": false,
- "description": "tar for node",
- "devDependencies": {
- "graceful-fs": "^4.1.2",
- "mkdirp": "^0.5.0",
- "rimraf": "1.x",
- "tap": "0.x"
- },
- "homepage": "https://github.com/isaacs/node-tar#readme",
- "license": "ISC",
- "main": "tar.js",
- "name": "tar",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/node-tar.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "2.2.2"
-}
diff --git a/node_modules/tar/tar.js b/node_modules/tar/tar.js
deleted file mode 100644
index a81298b..0000000
--- a/node_modules/tar/tar.js
+++ /dev/null
@@ -1,173 +0,0 @@
-// field paths that every tar file must have.
-// header is padded to 512 bytes.
-var f = 0
- , fields = {}
- , path = fields.path = f++
- , mode = fields.mode = f++
- , uid = fields.uid = f++
- , gid = fields.gid = f++
- , size = fields.size = f++
- , mtime = fields.mtime = f++
- , cksum = fields.cksum = f++
- , type = fields.type = f++
- , linkpath = fields.linkpath = f++
- , headerSize = 512
- , blockSize = 512
- , fieldSize = []
-
-fieldSize[path] = 100
-fieldSize[mode] = 8
-fieldSize[uid] = 8
-fieldSize[gid] = 8
-fieldSize[size] = 12
-fieldSize[mtime] = 12
-fieldSize[cksum] = 8
-fieldSize[type] = 1
-fieldSize[linkpath] = 100
-
-// "ustar\0" may introduce another bunch of headers.
-// these are optional, and will be nulled out if not present.
-
-var ustar = fields.ustar = f++
- , ustarver = fields.ustarver = f++
- , uname = fields.uname = f++
- , gname = fields.gname = f++
- , devmaj = fields.devmaj = f++
- , devmin = fields.devmin = f++
- , prefix = fields.prefix = f++
- , fill = fields.fill = f++
-
-// terminate fields.
-fields[f] = null
-
-fieldSize[ustar] = 6
-fieldSize[ustarver] = 2
-fieldSize[uname] = 32
-fieldSize[gname] = 32
-fieldSize[devmaj] = 8
-fieldSize[devmin] = 8
-fieldSize[prefix] = 155
-fieldSize[fill] = 12
-
-// nb: prefix field may in fact be 130 bytes of prefix,
-// a null char, 12 bytes for atime, 12 bytes for ctime.
-//
-// To recognize this format:
-// 1. prefix[130] === ' ' or '\0'
-// 2. atime and ctime are octal numeric values
-// 3. atime and ctime have ' ' in their last byte
-
-var fieldEnds = {}
- , fieldOffs = {}
- , fe = 0
-for (var i = 0; i < f; i ++) {
- fieldOffs[i] = fe
- fieldEnds[i] = (fe += fieldSize[i])
-}
-
-// build a translation table of field paths.
-Object.keys(fields).forEach(function (f) {
- if (fields[f] !== null) fields[fields[f]] = f
-})
-
-// different values of the 'type' field
-// paths match the values of Stats.isX() functions, where appropriate
-var types =
- { 0: "File"
- , "\0": "OldFile" // like 0
- , "": "OldFile"
- , 1: "Link"
- , 2: "SymbolicLink"
- , 3: "CharacterDevice"
- , 4: "BlockDevice"
- , 5: "Directory"
- , 6: "FIFO"
- , 7: "ContiguousFile" // like 0
- // posix headers
- , g: "GlobalExtendedHeader" // k=v for the rest of the archive
- , x: "ExtendedHeader" // k=v for the next file
- // vendor-specific stuff
- , A: "SolarisACL" // skip
- , D: "GNUDumpDir" // like 5, but with data, which should be skipped
- , I: "Inode" // metadata only, skip
- , K: "NextFileHasLongLinkpath" // data = link path of next file
- , L: "NextFileHasLongPath" // data = path of next file
- , M: "ContinuationFile" // skip
- , N: "OldGnuLongPath" // like L
- , S: "SparseFile" // skip
- , V: "TapeVolumeHeader" // skip
- , X: "OldExtendedHeader" // like x
- }
-
-Object.keys(types).forEach(function (t) {
- types[types[t]] = types[types[t]] || t
-})
-
-// values for the mode field
-var modes =
- { suid: 04000 // set uid on extraction
- , sgid: 02000 // set gid on extraction
- , svtx: 01000 // set restricted deletion flag on dirs on extraction
- , uread: 0400
- , uwrite: 0200
- , uexec: 0100
- , gread: 040
- , gwrite: 020
- , gexec: 010
- , oread: 4
- , owrite: 2
- , oexec: 1
- , all: 07777
- }
-
-var numeric =
- { mode: true
- , uid: true
- , gid: true
- , size: true
- , mtime: true
- , devmaj: true
- , devmin: true
- , cksum: true
- , atime: true
- , ctime: true
- , dev: true
- , ino: true
- , nlink: true
- }
-
-Object.keys(modes).forEach(function (t) {
- modes[modes[t]] = modes[modes[t]] || t
-})
-
-var knownExtended =
- { atime: true
- , charset: true
- , comment: true
- , ctime: true
- , gid: true
- , gname: true
- , linkpath: true
- , mtime: true
- , path: true
- , realtime: true
- , security: true
- , size: true
- , uid: true
- , uname: true }
-
-
-exports.fields = fields
-exports.fieldSize = fieldSize
-exports.fieldOffs = fieldOffs
-exports.fieldEnds = fieldEnds
-exports.types = types
-exports.modes = modes
-exports.numeric = numeric
-exports.headerSize = headerSize
-exports.blockSize = blockSize
-exports.knownExtended = knownExtended
-
-exports.Pack = require("./lib/pack.js")
-exports.Parse = require("./lib/parse.js")
-exports.Extract = require("./lib/extract.js")
diff --git a/node_modules/tar/test/00-setup-fixtures.js b/node_modules/tar/test/00-setup-fixtures.js
deleted file mode 100644
index 1524ff7..0000000
--- a/node_modules/tar/test/00-setup-fixtures.js
+++ /dev/null
@@ -1,53 +0,0 @@
-// the fixtures have some weird stuff that is painful
-// to include directly in the repo for various reasons.
-//
-// So, unpack the fixtures with the system tar first.
-//
-// This means, of course, that it'll only work if you
-// already have a tar implementation, and some of them
-// will not properly unpack the fixtures anyway.
-//
-// But, since usually those tests will fail on Windows
-// and other systems with less capable filesystems anyway,
-// at least this way we don't cause inconveniences by
-// merely cloning the repo or installing the package.
-
-var tap = require("tap")
-, child_process = require("child_process")
-, rimraf = require("rimraf")
-, test = tap.test
-, path = require("path")
-
-test("clean fixtures", function (t) {
- rimraf(path.resolve(__dirname, "fixtures"), function (er) {
- t.ifError(er, "rimraf ./fixtures/")
- t.end()
- })
-})
-
-test("clean tmp", function (t) {
- rimraf(path.resolve(__dirname, "tmp"), function (er) {
- t.ifError(er, "rimraf ./tmp/")
- t.end()
- })
-})
-
-test("extract fixtures", function (t) {
- var c = child_process.spawn("tar"
- ,["xzvf", "fixtures.tgz"]
- ,{ cwd: __dirname })
-
- c.stdout.on("data", errwrite)
- c.stderr.on("data", errwrite)
- function errwrite (chunk) {
- process.stderr.write(chunk)
- }
-
- c.on("exit", function (code) {
- t.equal(code, 0, "extract fixtures should exit with 0")
- if (code) {
- t.comment("Note, all tests from here on out will fail because of this.")
- }
- t.end()
- })
-})
diff --git a/node_modules/tar/test/cb-never-called-1.0.1.tgz b/node_modules/tar/test/cb-never-called-1.0.1.tgz
deleted file mode 100644
index 9e7014d..0000000
--- a/node_modules/tar/test/cb-never-called-1.0.1.tgz
+++ /dev/null
Binary files differ
diff --git a/node_modules/tar/test/dir-normalization.js b/node_modules/tar/test/dir-normalization.js
deleted file mode 100644
index 9719c42..0000000
--- a/node_modules/tar/test/dir-normalization.js
+++ /dev/null
@@ -1,177 +0,0 @@
-// Set the umask, so that it works the same everywhere.
-process.umask(parseInt('22', 8))
-
-var fs = require('fs')
-var path = require('path')
-
-var fstream = require('fstream')
-var test = require('tap').test
-
-var tar = require('../tar.js')
-var file = path.resolve(__dirname, 'dir-normalization.tar')
-var target = path.resolve(__dirname, 'tmp/dir-normalization-test')
-var ee = 0
-
-var expectEntries = [
- { path: 'fixtures/',
- mode: '755',
- type: '5',
- linkpath: ''
- },
- { path: 'fixtures/a/',
- mode: '755',
- type: '5',
- linkpath: ''
- },
- { path: 'fixtures/the-chumbler',
- mode: '755',
- type: '2',
- linkpath: path.resolve(target, 'a/b/c/d/the-chumbler'),
- },
- { path: 'fixtures/a/b/',
- mode: '755',
- type: '5',
- linkpath: ''
- },
- { path: 'fixtures/a/x',
- mode: '644',
- type: '0',
- linkpath: ''
- },
- { path: 'fixtures/a/b/c/',
- mode: '755',
- type: '5',
- linkpath: ''
- },
- { path: 'fixtures/a/b/c/y',
- mode: '755',
- type: '2',
- linkpath: '../../x',
- }
-]
-
-var ef = 0
-var expectFiles = [
- { path: '',
- mode: '40755',
- type: 'Directory',
- depth: 0,
- linkpath: undefined
- },
- { path: '/fixtures',
- mode: '40755',
- type: 'Directory',
- depth: 1,
- linkpath: undefined
- },
- { path: '/fixtures/a',
- mode: '40755',
- type: 'Directory',
- depth: 2,
- linkpath: undefined
- },
- { path: '/fixtures/a/b',
- mode: '40755',
- type: 'Directory',
- depth: 3,
- linkpath: undefined
- },
- { path: '/fixtures/a/b/c',
- mode: '40755',
- type: 'Directory',
- depth: 4,
- linkpath: undefined
- },
- { path: '/fixtures/a/b/c/y',
- mode: '120755',
- type: 'SymbolicLink',
- depth: 5,
- linkpath: '../../x'
- },
- { path: '/fixtures/a/x',
- mode: '100644',
- type: 'File',
- depth: 3,
- linkpath: undefined
- },
- { path: '/fixtures/the-chumbler',
- mode: '120755',
- type: 'SymbolicLink',
- depth: 2,
- linkpath: path.resolve(target, 'a/b/c/d/the-chumbler')
- }
-]
-
-test('preclean', function (t) {
- require('rimraf').sync(path.join(__dirname, '/tmp/dir-normalization-test'))
- t.pass('cleaned!')
- t.end()
-})
-
-test('extract test', function (t) {
- var extract = tar.Extract(target)
- var inp = fs.createReadStream(file)
-
- inp.pipe(extract)
-
- extract.on('end', function () {
- t.equal(ee, expectEntries.length, 'should see ' + expectEntries.length + ' entries')
-
- // should get no more entries after end
- extract.removeAllListeners('entry')
- extract.on('entry', function (e) {
- t.fail('Should not get entries after end!')
- })
-
- next()
- })
-
- extract.on('entry', function (entry) {
- var mode = entry.props.mode & (~parseInt('22', 8))
- var found = {
- path: entry.path,
- mode: mode.toString(8),
- type: entry.props.type,
- linkpath: entry.props.linkpath,
- }
-
- var wanted = expectEntries[ee++]
- t.equivalent(found, wanted, 'tar entry ' + ee + ' ' + (wanted && wanted.path))
- })
-
- function next () {
- var r = fstream.Reader({
- path: target,
- type: 'Directory',
- sort: 'alpha'
- })
-
- r.on('ready', function () {
- foundEntry(r)
- })
-
- r.on('end', finish)
-
- function foundEntry (entry) {
- var p = entry.path.substr(target.length)
- var mode = entry.props.mode & (~parseInt('22', 8))
- var found = {
- path: p,
- mode: mode.toString(8),
- type: entry.props.type,
- depth: entry.props.depth,
- linkpath: entry.props.linkpath
- }
-
- var wanted = expectFiles[ef++]
- t.equivalent(found, wanted, 'unpacked file ' + ef + ' ' + (wanted && wanted.path))
-
- entry.on('entry', foundEntry)
- }
-
- function finish () {
- t.equal(ef, expectFiles.length, 'should have ' + ef + ' items')
- t.end()
- }
- }
-})
diff --git a/node_modules/tar/test/error-on-broken.js b/node_modules/tar/test/error-on-broken.js
deleted file mode 100644
index e484920..0000000
--- a/node_modules/tar/test/error-on-broken.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var fs = require('fs')
-var path = require('path')
-var zlib = require('zlib')
-
-var tap = require('tap')
-
-var tar = require('../tar.js')
-
-var file = path.join(__dirname, 'cb-never-called-1.0.1.tgz')
-var target = path.join(__dirname, 'tmp/extract-test')
-
-tap.test('preclean', function (t) {
- require('rimraf').sync(__dirname + '/tmp/extract-test')
- t.pass('cleaned!')
- t.end()
-})
-
-tap.test('extract test', function (t) {
- var extract = tar.Extract(target)
- var inp = fs.createReadStream(file)
-
- inp.pipe(zlib.createGunzip()).pipe(extract)
-
- extract.on('error', function (er) {
- t.equal(er.message, 'unexpected eof', 'error noticed')
- t.end()
- })
-
- extract.on('end', function () {
- t.fail('shouldn\'t reach this point due to errors')
- t.end()
- })
-})
diff --git a/node_modules/tar/test/extract-move.js b/node_modules/tar/test/extract-move.js
deleted file mode 100644
index 45400cd..0000000
--- a/node_modules/tar/test/extract-move.js
+++ /dev/null
@@ -1,132 +0,0 @@
-// Set the umask, so that it works the same everywhere.
-process.umask(parseInt('22', 8))
-
-var tap = require("tap")
- , tar = require("../tar.js")
- , fs = require("fs")
- , gfs = require("graceful-fs")
- , path = require("path")
- , file = path.resolve(__dirname, "fixtures/dir.tar")
- , target = path.resolve(__dirname, "tmp/extract-test")
- , index = 0
- , fstream = require("fstream")
- , rimraf = require("rimraf")
- , mkdirp = require("mkdirp")
-
- , ee = 0
- , expectEntries = [
- {
- "path" : "dir/",
- "mode" : "750",
- "type" : "5",
- "depth" : undefined,
- "size" : 0,
- "linkpath" : "",
- "nlink" : undefined,
- "dev" : undefined,
- "ino" : undefined
- },
- {
- "path" : "dir/sub/",
- "mode" : "750",
- "type" : "5",
- "depth" : undefined,
- "size" : 0,
- "linkpath" : "",
- "nlink" : undefined,
- "dev" : undefined,
- "ino" : undefined
- } ]
-
-function slow (fs, method, t1, t2) {
- var orig = fs[method]
- if (!orig) return null
- fs[method] = function () {
- var args = [].slice.call(arguments)
- console.error("slow", method, args[0])
- var cb = args.pop()
-
- setTimeout(function () {
- orig.apply(fs, args.concat(function(er, data) {
- setTimeout(function() {
- cb(er, data)
- }, t2)
- }))
- }, t1)
- }
-}
-
-// Make sure we get the graceful-fs that fstream is using.
-var gfs2
-try {
- gfs2 = require("fstream/node_modules/graceful-fs")
-} catch (er) {}
-
-var slowMethods = ["chown", "chmod", "utimes", "lutimes"]
-slowMethods.forEach(function (method) {
- var t1 = 500
- var t2 = 0
- slow(fs, method, t1, t2)
- slow(gfs, method, t1, t2)
- if (gfs2) {
- slow(gfs2, method, t1, t2)
- }
-})
-
-
-
-// The extract class basically just pipes the input
-// to a Reader, and then to a fstream.DirWriter
-
-// So, this is as much a test of fstream.Reader and fstream.Writer
-// as it is of tar.Extract, but it sort of makes sense.
-
-tap.test("preclean", function (t) {
- rimraf.sync(target)
- /mkdirp.sync(target)
- t.pass("cleaned!")
- t.end()
-})
-
-tap.test("extract test", function (t) {
- var extract = tar.Extract(target)
- var inp = fs.createReadStream(file)
-
- // give it a weird buffer size to try to break in odd places
- inp.bufferSize = 1234
-
- inp.pipe(extract)
-
- extract.on("end", function () {
- rimraf.sync(target)
-
- t.equal(ee, expectEntries.length, "should see "+ee+" entries")
-
- // should get no more entries after end
- extract.removeAllListeners("entry")
- extract.on("entry", function (e) {
- t.fail("Should not get entries after end!")
- })
-
- t.end()
- })
-
-
- extract.on("entry", function (entry) {
- var found =
- { path: entry.path
- , mode: entry.props.mode.toString(8)
- , type: entry.props.type
- , depth: entry.props.depth
- , size: entry.props.size
- , linkpath: entry.props.linkpath
- , nlink: entry.props.nlink
- , dev: entry.props.dev
- , ino: entry.props.ino
- }
-
- var wanted = expectEntries[ee ++]
-
- t.equivalent(found, wanted, "tar entry " + ee + " " + wanted.path)
- })
-})
diff --git a/node_modules/tar/test/extract.js b/node_modules/tar/test/extract.js
deleted file mode 100644
index eca4e7c..0000000
--- a/node_modules/tar/test/extract.js
+++ /dev/null
@@ -1,367 +0,0 @@
-// Set the umask, so that it works the same everywhere.
-process.umask(parseInt('22', 8))
-
-var tap = require("tap")
- , tar = require("../tar.js")
- , fs = require("fs")
- , path = require("path")
- , file = path.resolve(__dirname, "fixtures/c.tar")
- , target = path.resolve(__dirname, "tmp/extract-test")
- , index = 0
- , fstream = require("fstream")
-
- , ee = 0
- , expectEntries =
-[ { path: 'c.txt',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 513,
- linkpath: '',
- nlink: undefined,
- dev: undefined,
- ino: undefined },
- { path: 'cc.txt',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 513,
- linkpath: '',
- nlink: undefined,
- dev: undefined,
- ino: undefined },
- { path: 'r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 100,
- linkpath: '',
- nlink: undefined,
- dev: undefined,
- ino: undefined },
- { path: 'Ω.txt',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 2,
- linkpath: '',
- nlink: undefined,
- dev: undefined,
- ino: undefined },
- { path: 'Ω.txt',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 2,
- linkpath: '',
- nlink: 1,
- dev: 234881026,
- ino: 51693379 },
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 200,
- linkpath: '',
- nlink: 1,
- dev: 234881026,
- ino: 51681874 },
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 201,
- linkpath: '',
- nlink: undefined,
- dev: undefined,
- ino: undefined },
- { path: '200LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL',
- mode: '777',
- type: '2',
- depth: undefined,
- size: 0,
- linkpath: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- nlink: undefined,
- dev: undefined,
- ino: undefined },
- { path: '200-hard',
- mode: '644',
- type: '0',
- depth: undefined,
- size: 200,
- linkpath: '',
- nlink: 2,
- dev: 234881026,
- ino: 51681874 },
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: '644',
- type: '1',
- depth: undefined,
- size: 0,
- linkpath: path.resolve(target, '200-hard'),
- nlink: 2,
- dev: 234881026,
- ino: 51681874 } ]
-
- , ef = 0
- , expectFiles =
-[ { path: '',
- mode: '40755',
- type: 'Directory',
- depth: 0,
- linkpath: undefined },
- { path: '/200-hard',
- mode: '100644',
- type: 'File',
- depth: 1,
- size: 200,
- linkpath: undefined,
- nlink: 2 },
- { path: '/200LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL',
- mode: '120777',
- type: 'SymbolicLink',
- depth: 1,
- size: 200,
- linkpath: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- nlink: 1 },
- { path: '/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: '100644',
- type: 'Link',
- depth: 1,
- size: 200,
- linkpath: path.join(target, '200-hard'),
- nlink: 2 },
- { path: '/c.txt',
- mode: '100644',
- type: 'File',
- depth: 1,
- size: 513,
- linkpath: undefined,
- nlink: 1 },
- { path: '/cc.txt',
- mode: '100644',
- type: 'File',
- depth: 1,
- size: 513,
- linkpath: undefined,
- nlink: 1 },
- { path: '/r',
- mode: '40755',
- type: 'Directory',
- depth: 1,
- linkpath: undefined },
- { path: '/r/e',
- mode: '40755',
- type: 'Directory',
- depth: 2,
- linkpath: undefined },
- { path: '/r/e/a',
- mode: '40755',
- type: 'Directory',
- depth: 3,
- linkpath: undefined },
- { path: '/r/e/a/l',
- mode: '40755',
- type: 'Directory',
- depth: 4,
- linkpath: undefined },
- { path: '/r/e/a/l/l',
- mode: '40755',
- type: 'Directory',
- depth: 5,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y',
- mode: '40755',
- type: 'Directory',
- depth: 6,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-',
- mode: '40755',
- type: 'Directory',
- depth: 7,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d',
- mode: '40755',
- type: 'Directory',
- depth: 8,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e',
- mode: '40755',
- type: 'Directory',
- depth: 9,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e',
- mode: '40755',
- type: 'Directory',
- depth: 10,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p',
- mode: '40755',
- type: 'Directory',
- depth: 11,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-',
- mode: '40755',
- type: 'Directory',
- depth: 12,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f',
- mode: '40755',
- type: 'Directory',
- depth: 13,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o',
- mode: '40755',
- type: 'Directory',
- depth: 14,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l',
- mode: '40755',
- type: 'Directory',
- depth: 15,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d',
- mode: '40755',
- type: 'Directory',
- depth: 16,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e',
- mode: '40755',
- type: 'Directory',
- depth: 17,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r',
- mode: '40755',
- type: 'Directory',
- depth: 18,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-',
- mode: '40755',
- type: 'Directory',
- depth: 19,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p',
- mode: '40755',
- type: 'Directory',
- depth: 20,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a',
- mode: '40755',
- type: 'Directory',
- depth: 21,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t',
- mode: '40755',
- type: 'Directory',
- depth: 22,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h',
- mode: '40755',
- type: 'Directory',
- depth: 23,
- linkpath: undefined },
- { path: '/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: '100644',
- type: 'File',
- depth: 24,
- size: 100,
- linkpath: undefined,
- nlink: 1 },
- { path: '/Ω.txt',
- mode: '100644',
- type: 'File',
- depth: 1,
- size: 2,
- linkpath: undefined,
- nlink: 1 } ]
-
-
-
-// The extract class basically just pipes the input
-// to a Reader, and then to a fstream.DirWriter
-
-// So, this is as much a test of fstream.Reader and fstream.Writer
-// as it is of tar.Extract, but it sort of makes sense.
-
-tap.test("preclean", function (t) {
- require("rimraf").sync(__dirname + "/tmp/extract-test")
- t.pass("cleaned!")
- t.end()
-})
-
-tap.test("extract test", function (t) {
- var extract = tar.Extract(target)
- var inp = fs.createReadStream(file)
-
- // give it a weird buffer size to try to break in odd places
- inp.bufferSize = 1234
-
- inp.pipe(extract)
-
- extract.on("end", function () {
- t.equal(ee, expectEntries.length, "should see "+ee+" entries")
-
- // should get no more entries after end
- extract.removeAllListeners("entry")
- extract.on("entry", function (e) {
- t.fail("Should not get entries after end!")
- })
-
- next()
- })
-
- extract.on("entry", function (entry) {
- var found =
- { path: entry.path
- , mode: entry.props.mode.toString(8)
- , type: entry.props.type
- , depth: entry.props.depth
- , size: entry.props.size
- , linkpath: entry.props.linkpath
- , nlink: entry.props.nlink
- , dev: entry.props.dev
- , ino: entry.props.ino
- }
-
- var wanted = expectEntries[ee ++]
-
- t.equivalent(found, wanted, "tar entry " + ee + " " + wanted.path)
- })
-
- function next () {
- var r = fstream.Reader({ path: target
- , type: "Directory"
- // this is just to encourage consistency
- , sort: "alpha" })
-
- r.on("ready", function () {
- foundEntry(r)
- })
-
- r.on("end", finish)
-
- function foundEntry (entry) {
- var p = entry.path.substr(target.length)
- var found =
- { path: p
- , mode: entry.props.mode.toString(8)
- , type: entry.props.type
- , depth: entry.props.depth
- , size: entry.props.size
- , linkpath: entry.props.linkpath
- , nlink: entry.props.nlink
- }
-
- var wanted = expectFiles[ef ++]
-
- t.has(found, wanted, "unpacked file " + ef + " " + wanted.path)
-
- entry.on("entry", foundEntry)
- }
-
- function finish () {
- t.equal(ef, expectFiles.length, "should have "+ef+" items")
- t.end()
- }
- }
-})
diff --git a/node_modules/tar/test/fixtures.tgz b/node_modules/tar/test/fixtures.tgz
deleted file mode 100644
index f167602..0000000
--- a/node_modules/tar/test/fixtures.tgz
+++ /dev/null
Binary files differ
diff --git a/node_modules/tar/test/header.js b/node_modules/tar/test/header.js
deleted file mode 100644
index 8ea6f79..0000000
--- a/node_modules/tar/test/header.js
+++ /dev/null
@@ -1,183 +0,0 @@
-var tap = require("tap")
-var TarHeader = require("../lib/header.js")
-var tar = require("../tar.js")
-var fs = require("fs")
-
-
-var headers =
- { "a.txt file header":
- [ "612e747874000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030303036343420003035373736312000303030303234200030303030303030303430312031313635313336303333332030313234353100203000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- , { cksumValid: true
- , path: 'a.txt'
- , mode: 420
- , uid: 24561
- , gid: 20
- , size: 257
- , mtime: 1319493851
- , cksum: 5417
- , type: '0'
- , linkpath: ''
- , ustar: 'ustar\0'
- , ustarver: '00'
- , uname: 'isaacs'
- , gname: 'staff'
- , devmaj: 0
- , devmin: 0
- , fill: '' }
- ]
-
- , "omega pax": // the extended header from omega tar.
- [ "5061784865616465722fcea92e74787400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030303036343420003035373736312000303030303234200030303030303030303137302031313534333731303631312030313530353100207800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- , { cksumValid: true
- , path: 'PaxHeader/Ω.txt'
- , mode: 420
- , uid: 24561
- , gid: 20
- , size: 120
- , mtime: 1301254537
- , cksum: 6697
- , type: 'x'
- , linkpath: ''
- , ustar: 'ustar\0'
- , ustarver: '00'
- , uname: 'isaacs'
- , gname: 'staff'
- , devmaj: 0
- , devmin: 0
- , fill: '' } ]
-
- , "omega file header":
- [ "cea92e7478740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030303036343420003035373736312000303030303234200030303030303030303030322031313534333731303631312030313330373200203000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- , { cksumValid: true
- , path: 'Ω.txt'
- , mode: 420
- , uid: 24561
- , gid: 20
- , size: 2
- , mtime: 1301254537
- , cksum: 5690
- , type: '0'
- , linkpath: ''
- , ustar: 'ustar\0'
- , ustarver: '00'
- , uname: 'isaacs'
- , gname: 'staff'
- , devmaj: 0
- , devmin: 0
- , fill: '' } ]
-
- , "foo.js file header":
- [ "666f6f2e6a730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030303036343420003035373736312000303030303234200030303030303030303030342031313534333637303734312030313236313700203000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- , { cksumValid: true
- , path: 'foo.js'
- , mode: 420
- , uid: 24561
- , gid: 20
- , size: 4
- , mtime: 1301246433
- , cksum: 5519
- , type: '0'
- , linkpath: ''
- , ustar: 'ustar\0'
- , ustarver: '00'
- , uname: 'isaacs'
- , gname: 'staff'
- , devmaj: 0
- , devmin: 0
- , fill: '' }
- ]
-
- , "b.txt file header":
- [ "622e747874000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030303036343420003035373736312000303030303234200030303030303030313030302031313635313336303637372030313234363100203000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- , { cksumValid: true
- , path: 'b.txt'
- , mode: 420
- , uid: 24561
- , gid: 20
- , size: 512
- , mtime: 1319494079
- , cksum: 5425
- , type: '0'
- , linkpath: ''
- , ustar: 'ustar\0'
- , ustarver: '00'
- , uname: 'isaacs'
- , gname: 'staff'
- , devmaj: 0
- , devmin: 0
- , fill: '' }
- ]
-
- , "deep nested file":
- [ "636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363633030303634342000303537373631200030303030323420003030303030303030313434203131363532313531353333203034333331340020300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075737461720030306973616163730000000000000000000000000000000000000000000000000000737461666600000000000000000000000000000000000000000000000000000030303030303020003030303030302000722f652f612f6c2f6c2f792f2d2f642f652f652f702f2d2f662f6f2f6c2f642f652f722f2d2f702f612f742f680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
- , { cksumValid: true,
- path: 'r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc'
- , mode: 420
- , uid: 24561
- , gid: 20
- , size: 100
- , mtime: 1319687003
- , cksum: 18124
- , type: '0'
- , linkpath: ''
- , ustar: 'ustar\0'
- , ustarver: '00'
- , uname: 'isaacs'
- , gname: 'staff'
- , devmaj: 0
- , devmin: 0
- , fill: '' }
- ]
- }
-
-tap.test("parsing", function (t) {
- Object.keys(headers).forEach(function (name) {
- var h = headers[name]
- , header = new Buffer(h[0], "hex")
- , expect = h[1]
- , parsed = new TarHeader(header)
-
- // console.error(parsed)
- t.has(parsed, expect, "parse " + name)
- })
- t.end()
-})
-
-tap.test("encoding", function (t) {
- Object.keys(headers).forEach(function (name) {
- var h = headers[name]
- , expect = new Buffer(h[0], "hex")
- , encoded = TarHeader.encode(h[1])
-
- // might have slightly different bytes, since the standard
- // isn't very strict, but should have the same semantics
- // checkSum will be different, but cksumValid will be true
-
- var th = new TarHeader(encoded)
- delete h[1].block
- delete h[1].needExtended
- delete h[1].cksum
- t.has(th, h[1], "fields "+name)
- })
- t.end()
-})
-
-// test these manually. they're a bit rare to find in the wild
-tap.test("parseNumeric tests", function (t) {
- var parseNumeric = TarHeader.parseNumeric
- , numbers =
- { "303737373737373700": 2097151
- , "30373737373737373737373700": 8589934591
- , "303030303036343400": 420
- , "800000ffffffffffff": 281474976710655
- , "ffffff000000000001": -281474976710654
- , "ffffff000000000000": -281474976710655
- , "800000000000200000": 2097152
- , "8000000000001544c5": 1393861
- , "ffffffffffff1544c5": -15383354 }
- Object.keys(numbers).forEach(function (n) {
- var b = new Buffer(n, "hex")
- t.equal(parseNumeric(b), numbers[n], n + " === " + numbers[n])
- })
- t.end()
-})
diff --git a/node_modules/tar/test/link-file-entry-collision.js b/node_modules/tar/test/link-file-entry-collision.js
deleted file mode 100644
index cb3e2d5..0000000
--- a/node_modules/tar/test/link-file-entry-collision.js
+++ /dev/null
@@ -1,39 +0,0 @@
-// Set the umask, so that it works the same everywhere.
-process.umask(parseInt('22', 8))
-
-var tap = require("tap")
- , tar = require("../tar.js")
- , fs = require("fs")
- , path = require("path")
- , file = path.resolve(__dirname, "link-file-entry-collision/bad-link.tar")
- , target = path.resolve(__dirname, "tmp/link-file-entry-collision")
- , index = 0
- , fstream = require("fstream")
- , mkdirp = require("mkdirp")
- , rimraf = require("rimraf")
-
-tap.test("preclean", function (t) {
- rimraf.sync(target)
- t.pass("cleaned!")
- t.end()
-})
-
-tap.test("extract test", function (t) {
- var extract = tar.Extract(target)
- var inp = fs.createReadStream(file)
- inp.pipe(extract)
-
- extract.on("end", function () {
- t.equal(fs.readFileSync(target + "/bad-link-target", "utf8"),
- "this should remain the same\n")
- t.equal(fs.readFileSync(target + "/a.txt", "utf8"),
- "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
- t.end()
- })
-})
-
-tap.test("cleanup", function (t) {
- rimraf.sync(target)
- t.pass("cleaned!")
- t.end()
-})
diff --git a/node_modules/tar/test/link-file-entry-collision/bad-link.hex b/node_modules/tar/test/link-file-entry-collision/bad-link.hex
deleted file mode 100644
index 99f5db0..0000000
--- a/node_modules/tar/test/link-file-entry-collision/bad-link.hex
+++ /dev/null
@@ -1,25 +0,0 @@
--- header for the link target --
-6261642d6c696e6b2d74617267657400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030363434200030303037363520003030303032342000303030303030303030333420313334363636353530353620303134333731002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # bad-link-target.....................................................................................000644..000765..000024..00000000034.13466655056.014371..0...................................................................................................
-00757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # .ustar.00isaacs..........................staff...........................000000..000000.........................................................................................................................................................................
-
--- link target file contents (should not be overwritten) --
-746869732073686f756c642072656d61696e207468652073616d650a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # this.should.remain.the.same.....................................................................................................................................................................................................................................
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # ................................................................................................................................................................................................................................................................
-
--- header for the link named a.txt --
-612e74787400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003030303634342000303030373635200030303030323420003030303030303030303030203133343636363535303536203031353334320020316261642d6c696e6b2d746172676574000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # a.txt...............................................................................................000644..000765..000024..00000000000.13466655056.015342..1bad-link-target....................................................................................
-00757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # .ustar.00isaacs..........................staff...........................000000..000000.........................................................................................................................................................................
-
--- header for file entry which attempts to overwrite the link --
-612e7478740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030363434200030353737363120003030303032342000303030303030303034303120313136353133363033333320303132343531002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # a.txt...............................................................................................000644..057761..000024..00000000401.11651360333.012451..0...................................................................................................
-00757374617200303069736161637300000000000000000000000000000000000000000000000000007374616666000000000000000000000000000000000000000000000000000000303030303030200030303030303020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # .ustar.00isaacs..........................staff...........................000000..000000.........................................................................................................................................................................
-
--- contents that threaten to overwrite the link target --
-61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161 # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
-61000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # a...............................................................................................................................................................................................................................................................
-
--- tar eof --
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # ................................................................................................................................................................................................................................................................
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # ................................................................................................................................................................................................................................................................
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # ................................................................................................................................................................................................................................................................
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 # ................................................................................................................................................................................................................................................................
diff --git a/node_modules/tar/test/pack-no-proprietary.js b/node_modules/tar/test/pack-no-proprietary.js
deleted file mode 100644
index d4b03a1..0000000
--- a/node_modules/tar/test/pack-no-proprietary.js
+++ /dev/null
@@ -1,886 +0,0 @@
-// This is exactly like test/pack.js, except that it's excluding
-// any proprietary headers.
-//
-// This loses some information about the filesystem, but creates
-// tarballs that are supported by more versions of tar, especially
-// old non-spec-compliant copies of gnutar.
-
-// the symlink file is excluded from git, because it makes
-// windows freak the hell out.
-var fs = require("fs")
- , path = require("path")
- , symlink = path.resolve(__dirname, "fixtures/symlink")
-try { fs.unlinkSync(symlink) } catch (e) {}
-fs.symlinkSync("./hardlink-1", symlink)
-process.on("exit", function () {
- fs.unlinkSync(symlink)
-})
-
-var tap = require("tap")
- , tar = require("../tar.js")
- , pkg = require("../package.json")
- , Pack = tar.Pack
- , fstream = require("fstream")
- , Reader = fstream.Reader
- , Writer = fstream.Writer
- , input = path.resolve(__dirname, "fixtures/")
- , target = path.resolve(__dirname, "tmp/pack.tar")
- , uid = process.getuid ? process.getuid() : 0
- , gid = process.getgid ? process.getgid() : 0
-
- , entries =
-
- // the global header and root fixtures/ dir are going to get
- // a different date each time, so omit that bit.
- // Also, dev/ino values differ across machines, so that's not
- // included.
- [ [ 'entry',
- { path: 'fixtures/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'extendedHeader',
- { path: 'PaxHeader/fixtures/200cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: uid,
- gid: gid,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: 'fixtures/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- uid: uid,
- gid: gid,
- size: 200 } ]
-
- , [ 'entry',
- { path: 'fixtures/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 200,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/a.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 257,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/b.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 512,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/c.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 513,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/cc.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 513,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/dir/',
- mode: 488,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/dir/sub/',
- mode: 488,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/foo.js',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 4,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/hardlink-1',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 200,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/hardlink-2',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 0,
- type: '1',
- linkpath: 'fixtures/hardlink-1',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/omega.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/omega.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/star.4.html',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 54081,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'extendedHeader',
- { path: 'PaxHeader/fixtures/packtest/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: 'fixtures/packtest/Ω.txt',
- uid: uid,
- gid: gid,
- size: 2 } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 100,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/symlink',
- uid: uid,
- gid: gid,
- size: 0,
- type: '2',
- linkpath: 'hardlink-1',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'extendedHeader',
- { path: 'PaxHeader/fixtures/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: "fixtures/Ω.txt"
- , uid: uid
- , gid: gid
- , size: 2 } ]
-
- , [ 'entry',
- { path: 'fixtures/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
- ]
-
-
-// first, make sure that the hardlinks are actually hardlinks, or this
-// won't work. Git has a way of replacing them with a copy.
-var hard1 = path.resolve(__dirname, "fixtures/hardlink-1")
- , hard2 = path.resolve(__dirname, "fixtures/hardlink-2")
- , fs = require("fs")
-
-try { fs.unlinkSync(hard2) } catch (e) {}
-fs.linkSync(hard1, hard2)
-
-tap.test("with global header", { timeout: 10000 }, function (t) {
- runTest(t, true)
-})
-
-tap.test("without global header", { timeout: 10000 }, function (t) {
- runTest(t, false)
-})
-
-function alphasort (a, b) {
- return a === b ? 0
- : a.toLowerCase() > b.toLowerCase() ? 1
- : a.toLowerCase() < b.toLowerCase() ? -1
- : a > b ? 1
- : -1
-}
-
-
-function runTest (t, doGH) {
- var reader = Reader({ path: input
- , filter: function () {
- return !this.path.match(/\.(tar|hex)$/)
- }
- , sort: alphasort
- })
-
- var props = doGH ? pkg : {}
- props.noProprietary = true
- var pack = Pack(props)
- var writer = Writer(target)
-
- // global header should be skipped regardless, since it has no content.
- var entry = 0
-
- t.ok(reader, "reader ok")
- t.ok(pack, "pack ok")
- t.ok(writer, "writer ok")
-
- pack.pipe(writer)
-
- var parse = tar.Parse()
- t.ok(parse, "parser should be ok")
-
- pack.on("data", function (c) {
- // console.error("PACK DATA")
- if (c.length !== 512) {
- // this one is too noisy, only assert if it'll be relevant
- t.equal(c.length, 512, "parser should emit data in 512byte blocks")
- }
- parse.write(c)
- })
-
- pack.on("end", function () {
- // console.error("PACK END")
- t.pass("parser ends")
- parse.end()
- })
-
- pack.on("error", function (er) {
- t.fail("pack error", er)
- })
-
- parse.on("error", function (er) {
- t.fail("parse error", er)
- })
-
- writer.on("error", function (er) {
- t.fail("writer error", er)
- })
-
- reader.on("error", function (er) {
- t.fail("reader error", er)
- })
-
- parse.on("*", function (ev, e) {
- var wanted = entries[entry++]
- if (!wanted) {
- t.fail("unexpected event: "+ev)
- return
- }
- t.equal(ev, wanted[0], "event type should be "+wanted[0])
-
- if (ev !== wanted[0] || e.path !== wanted[1].path) {
- console.error("wanted", wanted)
- console.error([ev, e.props])
- e.on("end", function () {
- console.error(e.fields)
- throw "break"
- })
- }
-
- t.has(e.props, wanted[1], "properties "+wanted[1].path)
- if (wanted[2]) {
- e.on("end", function () {
- if (!e.fields) {
- t.ok(e.fields, "should get fields")
- } else {
- t.has(e.fields, wanted[2], "should get expected fields")
- }
- })
- }
- })
-
- reader.pipe(pack)
-
- writer.on("close", function () {
- t.equal(entry, entries.length, "should get all expected entries")
- t.pass("it finished")
- t.end()
- })
-
-}
diff --git a/node_modules/tar/test/pack.js b/node_modules/tar/test/pack.js
deleted file mode 100644
index 0f16c07..0000000
--- a/node_modules/tar/test/pack.js
+++ /dev/null
@@ -1,952 +0,0 @@
-
-// the symlink file is excluded from git, because it makes
-// windows freak the hell out.
-var fs = require("fs")
- , path = require("path")
- , symlink = path.resolve(__dirname, "fixtures/symlink")
-try { fs.unlinkSync(symlink) } catch (e) {}
-fs.symlinkSync("./hardlink-1", symlink)
-process.on("exit", function () {
- fs.unlinkSync(symlink)
-})
-
-
-var tap = require("tap")
- , tar = require("../tar.js")
- , pkg = require("../package.json")
- , Pack = tar.Pack
- , fstream = require("fstream")
- , Reader = fstream.Reader
- , Writer = fstream.Writer
- , input = path.resolve(__dirname, "fixtures/")
- , target = path.resolve(__dirname, "tmp/pack.tar")
- , uid = process.getuid ? process.getuid() : 0
- , gid = process.getgid ? process.getgid() : 0
-
- , entries =
-
- // the global header and root fixtures/ dir are going to get
- // a different date each time, so omit that bit.
- // Also, dev/ino values differ across machines, so that's not
- // included.
- [ [ 'globalExtendedHeader',
- { path: 'PaxHeader/',
- mode: 438,
- uid: 0,
- gid: 0,
- type: 'g',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { "NODETAR.author": pkg.author,
- "NODETAR.name": pkg.name,
- "NODETAR.description": pkg.description,
- "NODETAR.version": pkg.version,
- "NODETAR.repository.type": pkg.repository.type,
- "NODETAR.repository.url": pkg.repository.url,
- "NODETAR.main": pkg.main,
- "NODETAR.scripts.test": pkg.scripts.test } ]
-
- , [ 'entry',
- { path: 'fixtures/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'extendedHeader',
- { path: 'PaxHeader/fixtures/200cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: uid,
- gid: gid,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: 'fixtures/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- 'NODETAR.depth': '1',
- 'NODETAR.type': 'File',
- nlink: 1,
- uid: uid,
- gid: gid,
- size: 200,
- 'NODETAR.blksize': '4096',
- 'NODETAR.blocks': '8' } ]
-
- , [ 'entry',
- { path: 'fixtures/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 200,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '',
- 'NODETAR.depth': '1',
- 'NODETAR.type': 'File',
- nlink: 1,
- 'NODETAR.blksize': '4096',
- 'NODETAR.blocks': '8' } ]
-
- , [ 'entry',
- { path: 'fixtures/a.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 257,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/b.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 512,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/c.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 513,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/cc.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 513,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/dir/',
- mode: 488,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/dir/sub/',
- mode: 488,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
-
- , [ 'entry',
- { path: 'fixtures/foo.js',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 4,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/hardlink-1',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 200,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/hardlink-2',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 0,
- type: '1',
- linkpath: 'fixtures/hardlink-1',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/omega.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/omega.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/star.4.html',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 54081,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'extendedHeader',
- { path: 'PaxHeader/fixtures/packtest/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: 'fixtures/packtest/Ω.txt',
- 'NODETAR.depth': '2',
- 'NODETAR.type': 'File',
- nlink: 1,
- uid: uid,
- gid: gid,
- size: 2,
- 'NODETAR.blksize': '4096',
- 'NODETAR.blocks': '8' } ]
-
- , [ 'entry',
- { path: 'fixtures/packtest/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '',
- 'NODETAR.depth': '2',
- 'NODETAR.type': 'File',
- nlink: 1,
- 'NODETAR.blksize': '4096',
- 'NODETAR.blocks': '8' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/',
- mode: 493,
- uid: uid,
- gid: gid,
- size: 0,
- type: '5',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 100,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'entry',
- { path: 'fixtures/symlink',
- uid: uid,
- gid: gid,
- size: 0,
- type: '2',
- linkpath: 'hardlink-1',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' } ]
-
- , [ 'extendedHeader',
- { path: 'PaxHeader/fixtures/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: "fixtures/Ω.txt"
- , "NODETAR.depth": "1"
- , "NODETAR.type": "File"
- , nlink: 1
- , uid: uid
- , gid: gid
- , size: 2
- , "NODETAR.blksize": "4096"
- , "NODETAR.blocks": "8" } ]
-
- , [ 'entry',
- { path: 'fixtures/Ω.txt',
- mode: 420,
- uid: uid,
- gid: gid,
- size: 2,
- type: '0',
- linkpath: '',
- ustar: 'ustar\u0000',
- ustarver: '00',
- uname: '',
- gname: '',
- devmaj: 0,
- devmin: 0,
- fill: '',
- 'NODETAR.depth': '1',
- 'NODETAR.type': 'File',
- nlink: 1,
- 'NODETAR.blksize': '4096',
- 'NODETAR.blocks': '8' } ]
- ]
-
-
-// first, make sure that the hardlinks are actually hardlinks, or this
-// won't work. Git has a way of replacing them with a copy.
-var hard1 = path.resolve(__dirname, "fixtures/hardlink-1")
- , hard2 = path.resolve(__dirname, "fixtures/hardlink-2")
- , fs = require("fs")
-
-try { fs.unlinkSync(hard2) } catch (e) {}
-fs.linkSync(hard1, hard2)
-
-tap.test("with global header", { timeout: 10000 }, function (t) {
- runTest(t, true)
-})
-
-tap.test("without global header", { timeout: 10000 }, function (t) {
- runTest(t, false)
-})
-
-tap.test("with from base", { timeout: 10000 }, function (t) {
- runTest(t, true, true)
-})
-
-function alphasort (a, b) {
- return a === b ? 0
- : a.toLowerCase() > b.toLowerCase() ? 1
- : a.toLowerCase() < b.toLowerCase() ? -1
- : a > b ? 1
- : -1
-}
-
-
-function runTest (t, doGH, doFromBase) {
- var reader = Reader({ path: input
- , filter: function () {
- return !this.path.match(/\.(tar|hex)$/)
- }
- , sort: alphasort
- })
-
- var props = doGH ? pkg : {}
- if(doFromBase) props.fromBase = true;
-
- var pack = Pack(props)
- var writer = Writer(target)
-
- // skip the global header if we're not doing that.
- var entry = doGH ? 0 : 1
-
- t.ok(reader, "reader ok")
- t.ok(pack, "pack ok")
- t.ok(writer, "writer ok")
-
- pack.pipe(writer)
-
- var parse = tar.Parse()
- t.ok(parse, "parser should be ok")
-
- pack.on("data", function (c) {
- // console.error("PACK DATA")
- if (c.length !== 512) {
- // this one is too noisy, only assert if it'll be relevant
- t.equal(c.length, 512, "parser should emit data in 512byte blocks")
- }
- parse.write(c)
- })
-
- pack.on("end", function () {
- // console.error("PACK END")
- t.pass("parser ends")
- parse.end()
- })
-
- pack.on("error", function (er) {
- t.fail("pack error", er)
- })
-
- parse.on("error", function (er) {
- t.fail("parse error", er)
- })
-
- writer.on("error", function (er) {
- t.fail("writer error", er)
- })
-
- reader.on("error", function (er) {
- t.fail("reader error", er)
- })
-
- parse.on("*", function (ev, e) {
- var wanted = entries[entry++]
- if (!wanted) {
- t.fail("unexpected event: "+ev)
- return
- }
- t.equal(ev, wanted[0], "event type should be "+wanted[0])
-
- if(doFromBase) {
- if(wanted[1].path.indexOf('fixtures/') && wanted[1].path.length == 100)
- wanted[1].path = wanted[1].path.replace('fixtures/', '') + 'ccccccccc'
-
- if(wanted[1]) wanted[1].path = wanted[1].path.replace('fixtures/', '').replace('//', '/')
- if(wanted[1].path == '') wanted[1].path = '/'
- if(wanted[2] && wanted[2].path) wanted[2].path = wanted[2].path.replace('fixtures', '').replace(/^\//, '')
-
- wanted[1].linkpath = wanted[1].linkpath.replace('fixtures/', '')
- }
-
- if (ev !== wanted[0] || e.path !== wanted[1].path) {
- console.error("wanted", wanted)
- console.error([ev, e.props])
- e.on("end", function () {
- console.error(e.fields)
- throw "break"
- })
- }
-
-
- t.has(e.props, wanted[1], "properties "+wanted[1].path)
- if (wanted[2]) {
- e.on("end", function () {
- if (!e.fields) {
- t.ok(e.fields, "should get fields")
- } else {
- t.has(e.fields, wanted[2], "should get expected fields")
- }
- })
- }
- })
-
- reader.pipe(pack)
-
- writer.on("close", function () {
- t.equal(entry, entries.length, "should get all expected entries")
- t.pass("it finished")
- t.end()
- })
-
-}
diff --git a/node_modules/tar/test/parse-discard.js b/node_modules/tar/test/parse-discard.js
deleted file mode 100644
index da01a65..0000000
--- a/node_modules/tar/test/parse-discard.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var tap = require("tap")
- , tar = require("../tar.js")
- , fs = require("fs")
- , path = require("path")
- , file = path.resolve(__dirname, "fixtures/c.tar")
-
-tap.test("parser test", function (t) {
- var parser = tar.Parse()
- var total = 0
- var dataTotal = 0
-
- parser.on("end", function () {
-
- t.equals(total-513,dataTotal,'should have discarded only c.txt')
-
- t.end()
- })
-
- fs.createReadStream(file)
- .pipe(parser)
- .on('entry',function(entry){
- if(entry.path === 'c.txt') entry.abort()
-
- total += entry.size;
- entry.on('data',function(data){
- dataTotal += data.length
- })
- })
-})
diff --git a/node_modules/tar/test/parse.js b/node_modules/tar/test/parse.js
deleted file mode 100644
index f765a50..0000000
--- a/node_modules/tar/test/parse.js
+++ /dev/null
@@ -1,359 +0,0 @@
-var tap = require("tap")
- , tar = require("../tar.js")
- , fs = require("fs")
- , path = require("path")
- , file = path.resolve(__dirname, "fixtures/c.tar")
- , index = 0
-
- , expect =
-[ [ 'entry',
- { path: 'c.txt',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 513,
- mtime: new Date('Wed, 26 Oct 2011 01:10:58 GMT'),
- cksum: 5422,
- type: '0',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- undefined ],
- [ 'entry',
- { path: 'cc.txt',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 513,
- mtime: new Date('Wed, 26 Oct 2011 01:11:02 GMT'),
- cksum: 5525,
- type: '0',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- undefined ],
- [ 'entry',
- { path: 'r/e/a/l/l/y/-/d/e/e/p/-/f/o/l/d/e/r/-/p/a/t/h/cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 100,
- mtime: new Date('Thu, 27 Oct 2011 03:43:23 GMT'),
- cksum: 18124,
- type: '0',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- undefined ],
- [ 'entry',
- { path: 'Ω.txt',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 2,
- mtime: new Date('Thu, 27 Oct 2011 17:51:49 GMT'),
- cksum: 5695,
- type: '0',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- undefined ],
- [ 'extendedHeader',
- { path: 'PaxHeader/Ω.txt',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 120,
- mtime: new Date('Thu, 27 Oct 2011 17:51:49 GMT'),
- cksum: 6702,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: 'Ω.txt',
- ctime: 1319737909,
- atime: 1319739061,
- dev: 234881026,
- ino: 51693379,
- nlink: 1 } ],
- [ 'entry',
- { path: 'Ω.txt',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 2,
- mtime: new Date('Thu, 27 Oct 2011 17:51:49 GMT'),
- cksum: 5695,
- type: '0',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '',
- ctime: new Date('Thu, 27 Oct 2011 17:51:49 GMT'),
- atime: new Date('Thu, 27 Oct 2011 18:11:01 GMT'),
- dev: 234881026,
- ino: 51693379,
- nlink: 1 },
- undefined ],
- [ 'extendedHeader',
- { path: 'PaxHeader/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 353,
- mtime: new Date('Thu, 27 Oct 2011 03:41:08 GMT'),
- cksum: 14488,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- ctime: 1319686868,
- atime: 1319741254,
- 'LIBARCHIVE.creationtime': '1319686852',
- dev: 234881026,
- ino: 51681874,
- nlink: 1 } ],
- [ 'entry',
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 200,
- mtime: new Date('Thu, 27 Oct 2011 03:41:08 GMT'),
- cksum: 14570,
- type: '0',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '',
- ctime: new Date('Thu, 27 Oct 2011 03:41:08 GMT'),
- atime: new Date('Thu, 27 Oct 2011 18:47:34 GMT'),
- 'LIBARCHIVE.creationtime': '1319686852',
- dev: 234881026,
- ino: 51681874,
- nlink: 1 },
- undefined ],
- [ 'longPath',
- { path: '././@LongLink',
- mode: 0,
- uid: 0,
- gid: 0,
- size: 201,
- mtime: new Date('Thu, 01 Jan 1970 00:00:00 GMT'),
- cksum: 4976,
- type: 'L',
- linkpath: '',
- ustar: false },
- '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ],
- [ 'entry',
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: 1000,
- gid: 1000,
- size: 201,
- mtime: new Date('Thu, 27 Oct 2011 22:21:50 GMT'),
- cksum: 14086,
- type: '0',
- linkpath: '',
- ustar: false },
- undefined ],
- [ 'longLinkpath',
- { path: '././@LongLink',
- mode: 0,
- uid: 0,
- gid: 0,
- size: 201,
- mtime: new Date('Thu, 01 Jan 1970 00:00:00 GMT'),
- cksum: 4975,
- type: 'K',
- linkpath: '',
- ustar: false },
- '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ],
- [ 'longPath',
- { path: '././@LongLink',
- mode: 0,
- uid: 0,
- gid: 0,
- size: 201,
- mtime: new Date('Thu, 01 Jan 1970 00:00:00 GMT'),
- cksum: 4976,
- type: 'L',
- linkpath: '',
- ustar: false },
- '200LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL' ],
- [ 'entry',
- { path: '200LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL',
- mode: 511,
- uid: 1000,
- gid: 1000,
- size: 0,
- mtime: new Date('Fri, 28 Oct 2011 23:05:17 GMT'),
- cksum: 21603,
- type: '2',
- linkpath: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- ustar: false },
- undefined ],
- [ 'extendedHeader',
- { path: 'PaxHeader/200-hard',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 143,
- mtime: new Date('Thu, 27 Oct 2011 03:41:08 GMT'),
- cksum: 6533,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { ctime: 1320617144,
- atime: 1320617232,
- 'LIBARCHIVE.creationtime': '1319686852',
- dev: 234881026,
- ino: 51681874,
- nlink: 2 } ],
- [ 'entry',
- { path: '200-hard',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 200,
- mtime: new Date('Thu, 27 Oct 2011 03:41:08 GMT'),
- cksum: 5526,
- type: '0',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '',
- ctime: new Date('Sun, 06 Nov 2011 22:05:44 GMT'),
- atime: new Date('Sun, 06 Nov 2011 22:07:12 GMT'),
- 'LIBARCHIVE.creationtime': '1319686852',
- dev: 234881026,
- ino: 51681874,
- nlink: 2 },
- undefined ],
- [ 'extendedHeader',
- { path: 'PaxHeader/200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 353,
- mtime: new Date('Thu, 27 Oct 2011 03:41:08 GMT'),
- cksum: 14488,
- type: 'x',
- linkpath: '',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '' },
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- ctime: 1320617144,
- atime: 1320617406,
- 'LIBARCHIVE.creationtime': '1319686852',
- dev: 234881026,
- ino: 51681874,
- nlink: 2 } ],
- [ 'entry',
- { path: '200ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc',
- mode: 420,
- uid: 24561,
- gid: 20,
- size: 0,
- mtime: new Date('Thu, 27 Oct 2011 03:41:08 GMT'),
- cksum: 15173,
- type: '1',
- linkpath: '200-hard',
- ustar: 'ustar\0',
- ustarver: '00',
- uname: 'isaacs',
- gname: 'staff',
- devmaj: 0,
- devmin: 0,
- fill: '',
- ctime: new Date('Sun, 06 Nov 2011 22:05:44 GMT'),
- atime: new Date('Sun, 06 Nov 2011 22:10:06 GMT'),
- 'LIBARCHIVE.creationtime': '1319686852',
- dev: 234881026,
- ino: 51681874,
- nlink: 2 },
- undefined ] ]
-
-
-tap.test("parser test", function (t) {
- var parser = tar.Parse()
-
- parser.on("end", function () {
- t.equal(index, expect.length, "saw all expected events")
- t.end()
- })
-
- fs.createReadStream(file)
- .pipe(parser)
- .on("*", function (ev, entry) {
- var wanted = expect[index]
- if (!wanted) {
- return t.fail("Unexpected event: " + ev)
- }
- var result = [ev, entry.props]
- entry.on("end", function () {
- result.push(entry.fields || entry.body)
-
- t.equal(ev, wanted[0], index + " event type")
- t.equivalent(entry.props, wanted[1], wanted[1].path + " entry properties")
- if (wanted[2]) {
- t.equivalent(result[2], wanted[2], "metadata values")
- }
- index ++
- })
- })
-})
diff --git a/node_modules/tar/test/zz-cleanup.js b/node_modules/tar/test/zz-cleanup.js
deleted file mode 100644
index a00ff7f..0000000
--- a/node_modules/tar/test/zz-cleanup.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// clean up the fixtures
-
-var tap = require("tap")
-, rimraf = require("rimraf")
-, test = tap.test
-, path = require("path")
-
-test("clean fixtures", function (t) {
- rimraf(path.resolve(__dirname, "fixtures"), function (er) {
- t.ifError(er, "rimraf ./fixtures/")
- t.end()
- })
-})
-
-test("clean tmp", function (t) {
- rimraf(path.resolve(__dirname, "tmp"), function (er) {
- t.ifError(er, "rimraf ./tmp/")
- t.end()
- })
-})
diff --git a/node_modules/tough-cookie/LICENSE b/node_modules/tough-cookie/LICENSE
deleted file mode 100644
index 22204e8..0000000
--- a/node_modules/tough-cookie/LICENSE
+++ /dev/null
@@ -1,12 +0,0 @@
-Copyright (c) 2015, Salesforce.com, Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
-3. Neither the name of Salesforce.com nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/tough-cookie/README.md b/node_modules/tough-cookie/README.md
deleted file mode 100644
index 656a255..0000000
--- a/node_modules/tough-cookie/README.md
+++ /dev/null
@@ -1,527 +0,0 @@
-[RFC6265](https://tools.ietf.org/html/rfc6265) Cookies and CookieJar for Node.js
-
-[![npm package](https://nodei.co/npm/tough-cookie.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/tough-cookie/)
-
-[![Build Status](https://travis-ci.org/salesforce/tough-cookie.png?branch=master)](https://travis-ci.org/salesforce/tough-cookie)
-
-# Synopsis
-
-``` javascript
-var tough = require('tough-cookie');
-var Cookie = tough.Cookie;
-var cookie = Cookie.parse(header);
-cookie.value = 'somethingdifferent';
-header = cookie.toString();
-
-var cookiejar = new tough.CookieJar();
-cookiejar.setCookie(cookie, 'http://currentdomain.example.com/path', cb);
-// ...
-cookiejar.getCookies('http://example.com/otherpath',function(err,cookies) {
- res.headers['cookie'] = cookies.join('; ');
-});
-```
-
-# Installation
-
-It's _so_ easy!
-
-`npm install tough-cookie`
-
-Why the name? NPM modules `cookie`, `cookies` and `cookiejar` were already taken.
-
-## Version Support
-
-Support for versions of node.js will follow that of the [request](https://www.npmjs.com/package/request) module.
-
-# API
-
-## tough
-
-Functions on the module you get from `require('tough-cookie')`. All can be used as pure functions and don't need to be "bound".
-
-**Note**: prior to 1.0.x, several of these functions took a `strict` parameter. This has since been removed from the API as it was no longer necessary.
-
-### `parseDate(string)`
-
-Parse a cookie date string into a `Date`. Parses according to RFC6265 Section 5.1.1, not `Date.parse()`.
-
-### `formatDate(date)`
-
-Format a Date into a RFC1123 string (the RFC6265-recommended format).
-
-### `canonicalDomain(str)`
-
-Transforms a domain-name into a canonical domain-name. The canonical domain-name is a trimmed, lowercased, stripped-of-leading-dot and optionally punycode-encoded domain-name (Section 5.1.2 of RFC6265). For the most part, this function is idempotent (can be run again on its output without ill effects).
-
-### `domainMatch(str,domStr[,canonicalize=true])`
-
-Answers "does this real domain match the domain in a cookie?". The `str` is the "current" domain-name and the `domStr` is the "cookie" domain-name. Matches according to RFC6265 Section 5.1.3, but it helps to think of it as a "suffix match".
-
-The `canonicalize` parameter will run the other two parameters through `canonicalDomain` or not.
-
-### `defaultPath(path)`
-
-Given a current request/response path, gives the Path apropriate for storing in a cookie. This is basically the "directory" of a "file" in the path, but is specified by Section 5.1.4 of the RFC.
-
-The `path` parameter MUST be _only_ the pathname part of a URI (i.e. excludes the hostname, query, fragment, etc.). This is the `.pathname` property of node's `uri.parse()` output.
-
-### `pathMatch(reqPath,cookiePath)`
-
-Answers "does the request-path path-match a given cookie-path?" as per RFC6265 Section 5.1.4. Returns a boolean.
-
-This is essentially a prefix-match where `cookiePath` is a prefix of `reqPath`.
-
-### `parse(cookieString[, options])`
-
-alias for `Cookie.parse(cookieString[, options])`
-
-### `fromJSON(string)`
-
-alias for `Cookie.fromJSON(string)`
-
-### `getPublicSuffix(hostname)`
-
-Returns the public suffix of this hostname. The public suffix is the shortest domain-name upon which a cookie can be set. Returns `null` if the hostname cannot have cookies set for it.
-
-For example: `www.example.com` and `www.subdomain.example.com` both have public suffix `example.com`.
-
-For further information, see http://publicsuffix.org/. This module derives its list from that site. This call is currently a wrapper around [`psl`](https://www.npmjs.com/package/psl)'s [get() method](https://www.npmjs.com/package/psl#pslgetdomain).
-
-### `cookieCompare(a,b)`
-
-For use with `.sort()`, sorts a list of cookies into the recommended order given in the RFC (Section 5.4 step 2). The sort algorithm is, in order of precedence:
-
-* Longest `.path`
-* oldest `.creation` (which has a 1ms precision, same as `Date`)
-* lowest `.creationIndex` (to get beyond the 1ms precision)
-
-``` javascript
-var cookies = [ /* unsorted array of Cookie objects */ ];
-cookies = cookies.sort(cookieCompare);
-```
-
-**Note**: Since JavaScript's `Date` is limited to a 1ms precision, cookies within the same milisecond are entirely possible. This is especially true when using the `now` option to `.setCookie()`. The `.creationIndex` property is a per-process global counter, assigned during construction with `new Cookie()`. This preserves the spirit of the RFC sorting: older cookies go first. This works great for `MemoryCookieStore`, since `Set-Cookie` headers are parsed in order, but may not be so great for distributed systems. Sophisticated `Store`s may wish to set this to some other _logical clock_ such that if cookies A and B are created in the same millisecond, but cookie A is created before cookie B, then `A.creationIndex < B.creationIndex`. If you want to alter the global counter, which you probably _shouldn't_ do, it's stored in `Cookie.cookiesCreated`.
-
-### `permuteDomain(domain)`
-
-Generates a list of all possible domains that `domainMatch()` the parameter. May be handy for implementing cookie stores.
-
-### `permutePath(path)`
-
-Generates a list of all possible paths that `pathMatch()` the parameter. May be handy for implementing cookie stores.
-
-
-## Cookie
-
-Exported via `tough.Cookie`.
-
-### `Cookie.parse(cookieString[, options])`
-
-Parses a single Cookie or Set-Cookie HTTP header into a `Cookie` object. Returns `undefined` if the string can't be parsed.
-
-The options parameter is not required and currently has only one property:
-
- * _loose_ - boolean - if `true` enable parsing of key-less cookies like `=abc` and `=`, which are not RFC-compliant.
-
-If options is not an object, it is ignored, which means you can use `Array#map` with it.
-
-Here's how to process the Set-Cookie header(s) on a node HTTP/HTTPS response:
-
-``` javascript
-if (res.headers['set-cookie'] instanceof Array)
- cookies = res.headers['set-cookie'].map(Cookie.parse);
-else
- cookies = [Cookie.parse(res.headers['set-cookie'])];
-```
-
-_Note:_ in version 2.3.3, tough-cookie limited the number of spaces before the `=` to 256 characters. This limitation has since been removed.
-See [Issue 92](https://github.com/salesforce/tough-cookie/issues/92)
-
-### Properties
-
-Cookie object properties:
-
- * _key_ - string - the name or key of the cookie (default "")
- * _value_ - string - the value of the cookie (default "")
- * _expires_ - `Date` - if set, the `Expires=` attribute of the cookie (defaults to the string `"Infinity"`). See `setExpires()`
- * _maxAge_ - seconds - if set, the `Max-Age=` attribute _in seconds_ of the cookie. May also be set to strings `"Infinity"` and `"-Infinity"` for non-expiry and immediate-expiry, respectively. See `setMaxAge()`
- * _domain_ - string - the `Domain=` attribute of the cookie
- * _path_ - string - the `Path=` of the cookie
- * _secure_ - boolean - the `Secure` cookie flag
- * _httpOnly_ - boolean - the `HttpOnly` cookie flag
- * _extensions_ - `Array` - any unrecognized cookie attributes as strings (even if equal-signs inside)
- * _creation_ - `Date` - when this cookie was constructed
- * _creationIndex_ - number - set at construction, used to provide greater sort precision (please see `cookieCompare(a,b)` for a full explanation)
-
-After a cookie has been passed through `CookieJar.setCookie()` it will have the following additional attributes:
-
- * _hostOnly_ - boolean - is this a host-only cookie (i.e. no Domain field was set, but was instead implied)
- * _pathIsDefault_ - boolean - if true, there was no Path field on the cookie and `defaultPath()` was used to derive one.
- * _creation_ - `Date` - **modified** from construction to when the cookie was added to the jar
- * _lastAccessed_ - `Date` - last time the cookie got accessed. Will affect cookie cleaning once implemented. Using `cookiejar.getCookies(...)` will update this attribute.
-
-### `Cookie([{properties}])`
-
-Receives an options object that can contain any of the above Cookie properties, uses the default for unspecified properties.
-
-### `.toString()`
-
-encode to a Set-Cookie header value. The Expires cookie field is set using `formatDate()`, but is omitted entirely if `.expires` is `Infinity`.
-
-### `.cookieString()`
-
-encode to a Cookie header value (i.e. the `.key` and `.value` properties joined with '=').
-
-### `.setExpires(String)`
-
-sets the expiry based on a date-string passed through `parseDate()`. If parseDate returns `null` (i.e. can't parse this date string), `.expires` is set to `"Infinity"` (a string) is set.
-
-### `.setMaxAge(number)`
-
-sets the maxAge in seconds. Coerces `-Infinity` to `"-Infinity"` and `Infinity` to `"Infinity"` so it JSON serializes correctly.
-
-### `.expiryTime([now=Date.now()])`
-
-### `.expiryDate([now=Date.now()])`
-
-expiryTime() Computes the absolute unix-epoch milliseconds that this cookie expires. expiryDate() works similarly, except it returns a `Date` object. Note that in both cases the `now` parameter should be milliseconds.
-
-Max-Age takes precedence over Expires (as per the RFC). The `.creation` attribute -- or, by default, the `now` parameter -- is used to offset the `.maxAge` attribute.
-
-If Expires (`.expires`) is set, that's returned.
-
-Otherwise, `expiryTime()` returns `Infinity` and `expiryDate()` returns a `Date` object for "Tue, 19 Jan 2038 03:14:07 GMT" (latest date that can be expressed by a 32-bit `time_t`; the common limit for most user-agents).
-
-### `.TTL([now=Date.now()])`
-
-compute the TTL relative to `now` (milliseconds). The same precedence rules as for `expiryTime`/`expiryDate` apply.
-
-The "number" `Infinity` is returned for cookies without an explicit expiry and `0` is returned if the cookie is expired. Otherwise a time-to-live in milliseconds is returned.
-
-### `.canonicalizedDomain()`
-
-### `.cdomain()`
-
-return the canonicalized `.domain` field. This is lower-cased and punycode (RFC3490) encoded if the domain has any non-ASCII characters.
-
-### `.toJSON()`
-
-For convenience in using `JSON.serialize(cookie)`. Returns a plain-old `Object` that can be JSON-serialized.
-
-Any `Date` properties (i.e., `.expires`, `.creation`, and `.lastAccessed`) are exported in ISO format (`.toISOString()`).
-
-**NOTE**: Custom `Cookie` properties will be discarded. In tough-cookie 1.x, since there was no `.toJSON` method explicitly defined, all enumerable properties were captured. If you want a property to be serialized, add the property name to the `Cookie.serializableProperties` Array.
-
-### `Cookie.fromJSON(strOrObj)`
-
-Does the reverse of `cookie.toJSON()`. If passed a string, will `JSON.parse()` that first.
-
-Any `Date` properties (i.e., `.expires`, `.creation`, and `.lastAccessed`) are parsed via `Date.parse()`, not the tough-cookie `parseDate`, since it's JavaScript/JSON-y timestamps being handled at this layer.
-
-Returns `null` upon JSON parsing error.
-
-### `.clone()`
-
-Does a deep clone of this cookie, exactly implemented as `Cookie.fromJSON(cookie.toJSON())`.
-
-### `.validate()`
-
-Status: *IN PROGRESS*. Works for a few things, but is by no means comprehensive.
-
-validates cookie attributes for semantic correctness. Useful for "lint" checking any Set-Cookie headers you generate. For now, it returns a boolean, but eventually could return a reason string -- you can future-proof with this construct:
-
-``` javascript
-if (cookie.validate() === true) {
- // it's tasty
-} else {
- // yuck!
-}
-```
-
-
-## CookieJar
-
-Exported via `tough.CookieJar`.
-
-### `CookieJar([store],[options])`
-
-Simply use `new CookieJar()`. If you'd like to use a custom store, pass that to the constructor otherwise a `MemoryCookieStore` will be created and used.
-
-The `options` object can be omitted and can have the following properties:
-
- * _rejectPublicSuffixes_ - boolean - default `true` - reject cookies with domains like "com" and "co.uk"
- * _looseMode_ - boolean - default `false` - accept malformed cookies like `bar` and `=bar`, which have an implied empty name.
- This is not in the standard, but is used sometimes on the web and is accepted by (most) browsers.
-
-Since eventually this module would like to support database/remote/etc. CookieJars, continuation passing style is used for CookieJar methods.
-
-### `.setCookie(cookieOrString, currentUrl, [{options},] cb(err,cookie))`
-
-Attempt to set the cookie in the cookie jar. If the operation fails, an error will be given to the callback `cb`, otherwise the cookie is passed through. The cookie will have updated `.creation`, `.lastAccessed` and `.hostOnly` properties.
-
-The `options` object can be omitted and can have the following properties:
-
- * _http_ - boolean - default `true` - indicates if this is an HTTP or non-HTTP API. Affects HttpOnly cookies.
- * _secure_ - boolean - autodetect from url - indicates if this is a "Secure" API. If the currentUrl starts with `https:` or `wss:` then this is defaulted to `true`, otherwise `false`.
- * _now_ - Date - default `new Date()` - what to use for the creation/access time of cookies
- * _ignoreError_ - boolean - default `false` - silently ignore things like parse errors and invalid domains. `Store` errors aren't ignored by this option.
-
-As per the RFC, the `.hostOnly` property is set if there was no "Domain=" parameter in the cookie string (or `.domain` was null on the Cookie object). The `.domain` property is set to the fully-qualified hostname of `currentUrl` in this case. Matching this cookie requires an exact hostname match (not a `domainMatch` as per usual).
-
-### `.setCookieSync(cookieOrString, currentUrl, [{options}])`
-
-Synchronous version of `setCookie`; only works with synchronous stores (e.g. the default `MemoryCookieStore`).
-
-### `.getCookies(currentUrl, [{options},] cb(err,cookies))`
-
-Retrieve the list of cookies that can be sent in a Cookie header for the current url.
-
-If an error is encountered, that's passed as `err` to the callback, otherwise an `Array` of `Cookie` objects is passed. The array is sorted with `cookieCompare()` unless the `{sort:false}` option is given.
-
-The `options` object can be omitted and can have the following properties:
-
- * _http_ - boolean - default `true` - indicates if this is an HTTP or non-HTTP API. Affects HttpOnly cookies.
- * _secure_ - boolean - autodetect from url - indicates if this is a "Secure" API. If the currentUrl starts with `https:` or `wss:` then this is defaulted to `true`, otherwise `false`.
- * _now_ - Date - default `new Date()` - what to use for the creation/access time of cookies
- * _expire_ - boolean - default `true` - perform expiry-time checking of cookies and asynchronously remove expired cookies from the store. Using `false` will return expired cookies and **not** remove them from the store (which is useful for replaying Set-Cookie headers, potentially).
- * _allPaths_ - boolean - default `false` - if `true`, do not scope cookies by path. The default uses RFC-compliant path scoping. **Note**: may not be supported by the underlying store (the default `MemoryCookieStore` supports it).
-
-The `.lastAccessed` property of the returned cookies will have been updated.
-
-### `.getCookiesSync(currentUrl, [{options}])`
-
-Synchronous version of `getCookies`; only works with synchronous stores (e.g. the default `MemoryCookieStore`).
-
-### `.getCookieString(...)`
-
-Accepts the same options as `.getCookies()` but passes a string suitable for a Cookie header rather than an array to the callback. Simply maps the `Cookie` array via `.cookieString()`.
-
-### `.getCookieStringSync(...)`
-
-Synchronous version of `getCookieString`; only works with synchronous stores (e.g. the default `MemoryCookieStore`).
-
-### `.getSetCookieStrings(...)`
-
-Returns an array of strings suitable for **Set-Cookie** headers. Accepts the same options as `.getCookies()`. Simply maps the cookie array via `.toString()`.
-
-### `.getSetCookieStringsSync(...)`
-
-Synchronous version of `getSetCookieStrings`; only works with synchronous stores (e.g. the default `MemoryCookieStore`).
-
-### `.serialize(cb(err,serializedObject))`
-
-Serialize the Jar if the underlying store supports `.getAllCookies`.
-
-**NOTE**: Custom `Cookie` properties will be discarded. If you want a property to be serialized, add the property name to the `Cookie.serializableProperties` Array.
-
-See [Serialization Format].
-
-### `.serializeSync()`
-
-Sync version of .serialize
-
-### `.toJSON()`
-
-Alias of .serializeSync() for the convenience of `JSON.stringify(cookiejar)`.
-
-### `CookieJar.deserialize(serialized, [store], cb(err,object))`
-
-A new Jar is created and the serialized Cookies are added to the underlying store. Each `Cookie` is added via `store.putCookie` in the order in which they appear in the serialization.
-
-The `store` argument is optional, but should be an instance of `Store`. By default, a new instance of `MemoryCookieStore` is created.
-
-As a convenience, if `serialized` is a string, it is passed through `JSON.parse` first. If that throws an error, this is passed to the callback.
-
-### `CookieJar.deserializeSync(serialized, [store])`
-
-Sync version of `.deserialize`. _Note_ that the `store` must be synchronous for this to work.
-
-### `CookieJar.fromJSON(string)`
-
-Alias of `.deserializeSync` to provide consistency with `Cookie.fromJSON()`.
-
-### `.clone([store,]cb(err,newJar))`
-
-Produces a deep clone of this jar. Modifications to the original won't affect the clone, and vice versa.
-
-The `store` argument is optional, but should be an instance of `Store`. By default, a new instance of `MemoryCookieStore` is created. Transferring between store types is supported so long as the source implements `.getAllCookies()` and the destination implements `.putCookie()`.
-
-### `.cloneSync([store])`
-
-Synchronous version of `.clone`, returning a new `CookieJar` instance.
-
-The `store` argument is optional, but must be a _synchronous_ `Store` instance if specified. If not passed, a new instance of `MemoryCookieStore` is used.
-
-The _source_ and _destination_ must both be synchronous `Store`s. If one or both stores are asynchronous, use `.clone` instead. Recall that `MemoryCookieStore` supports both synchronous and asynchronous API calls.
-
-### `.removeAllCookies(cb(err))`
-
-Removes all cookies from the jar.
-
-This is a new backwards-compatible feature of `tough-cookie` version 2.5, so not all Stores will implement it efficiently. For Stores that do not implement `removeAllCookies`, the fallback is to call `removeCookie` after `getAllCookies`. If `getAllCookies` fails or isn't implemented in the Store, that error is returned. If one or more of the `removeCookie` calls fail, only the first error is returned.
-
-### `.removeAllCookiesSync()`
-
-Sync version of `.removeAllCookies()`
-
-## Store
-
-Base class for CookieJar stores. Available as `tough.Store`.
-
-## Store API
-
-The storage model for each `CookieJar` instance can be replaced with a custom implementation. The default is `MemoryCookieStore` which can be found in the `lib/memstore.js` file. The API uses continuation-passing-style to allow for asynchronous stores.
-
-Stores should inherit from the base `Store` class, which is available as `require('tough-cookie').Store`.
-
-Stores are asynchronous by default, but if `store.synchronous` is set to `true`, then the `*Sync` methods on the of the containing `CookieJar` can be used (however, the continuation-passing style
-
-All `domain` parameters will have been normalized before calling.
-
-The Cookie store must have all of the following methods.
-
-### `store.findCookie(domain, path, key, cb(err,cookie))`
-
-Retrieve a cookie with the given domain, path and key (a.k.a. name). The RFC maintains that exactly one of these cookies should exist in a store. If the store is using versioning, this means that the latest/newest such cookie should be returned.
-
-Callback takes an error and the resulting `Cookie` object. If no cookie is found then `null` MUST be passed instead (i.e. not an error).
-
-### `store.findCookies(domain, path, cb(err,cookies))`
-
-Locates cookies matching the given domain and path. This is most often called in the context of `cookiejar.getCookies()` above.
-
-If no cookies are found, the callback MUST be passed an empty array.
-
-The resulting list will be checked for applicability to the current request according to the RFC (domain-match, path-match, http-only-flag, secure-flag, expiry, etc.), so it's OK to use an optimistic search algorithm when implementing this method. However, the search algorithm used SHOULD try to find cookies that `domainMatch()` the domain and `pathMatch()` the path in order to limit the amount of checking that needs to be done.
-
-As of version 0.9.12, the `allPaths` option to `cookiejar.getCookies()` above will cause the path here to be `null`. If the path is `null`, path-matching MUST NOT be performed (i.e. domain-matching only).
-
-### `store.putCookie(cookie, cb(err))`
-
-Adds a new cookie to the store. The implementation SHOULD replace any existing cookie with the same `.domain`, `.path`, and `.key` properties -- depending on the nature of the implementation, it's possible that between the call to `fetchCookie` and `putCookie` that a duplicate `putCookie` can occur.
-
-The `cookie` object MUST NOT be modified; the caller will have already updated the `.creation` and `.lastAccessed` properties.
-
-Pass an error if the cookie cannot be stored.
-
-### `store.updateCookie(oldCookie, newCookie, cb(err))`
-
-Update an existing cookie. The implementation MUST update the `.value` for a cookie with the same `domain`, `.path` and `.key`. The implementation SHOULD check that the old value in the store is equivalent to `oldCookie` - how the conflict is resolved is up to the store.
-
-The `.lastAccessed` property will always be different between the two objects (to the precision possible via JavaScript's clock). Both `.creation` and `.creationIndex` are guaranteed to be the same. Stores MAY ignore or defer the `.lastAccessed` change at the cost of affecting how cookies are selected for automatic deletion (e.g., least-recently-used, which is up to the store to implement).
-
-Stores may wish to optimize changing the `.value` of the cookie in the store versus storing a new cookie. If the implementation doesn't define this method a stub that calls `putCookie(newCookie,cb)` will be added to the store object.
-
-The `newCookie` and `oldCookie` objects MUST NOT be modified.
-
-Pass an error if the newCookie cannot be stored.
-
-### `store.removeCookie(domain, path, key, cb(err))`
-
-Remove a cookie from the store (see notes on `findCookie` about the uniqueness constraint).
-
-The implementation MUST NOT pass an error if the cookie doesn't exist; only pass an error due to the failure to remove an existing cookie.
-
-### `store.removeCookies(domain, path, cb(err))`
-
-Removes matching cookies from the store. The `path` parameter is optional, and if missing means all paths in a domain should be removed.
-
-Pass an error ONLY if removing any existing cookies failed.
-
-### `store.removeAllCookies(cb(err))`
-
-_Optional_. Removes all cookies from the store.
-
-Pass an error if one or more cookies can't be removed.
-
-**Note**: New method as of `tough-cookie` version 2.5, so not all Stores will implement this, plus some stores may choose not to implement this.
-
-### `store.getAllCookies(cb(err, cookies))`
-
-_Optional_. Produces an `Array` of all cookies during `jar.serialize()`. The items in the array can be true `Cookie` objects or generic `Object`s with the [Serialization Format] data structure.
-
-Cookies SHOULD be returned in creation order to preserve sorting via `compareCookies()`. For reference, `MemoryCookieStore` will sort by `.creationIndex` since it uses true `Cookie` objects internally. If you don't return the cookies in creation order, they'll still be sorted by creation time, but this only has a precision of 1ms. See `compareCookies` for more detail.
-
-Pass an error if retrieval fails.
-
-**Note**: not all Stores can implement this due to technical limitations, so it is optional.
-
-## MemoryCookieStore
-
-Inherits from `Store`.
-
-A just-in-memory CookieJar synchronous store implementation, used by default. Despite being a synchronous implementation, it's usable with both the synchronous and asynchronous forms of the `CookieJar` API. Supports serialization, `getAllCookies`, and `removeAllCookies`.
-
-## Community Cookie Stores
-
-These are some Store implementations authored and maintained by the community. They aren't official and we don't vouch for them but you may be interested to have a look:
-
-- [`db-cookie-store`](https://github.com/JSBizon/db-cookie-store): SQL including SQLite-based databases
-- [`file-cookie-store`](https://github.com/JSBizon/file-cookie-store): Netscape cookie file format on disk
-- [`redis-cookie-store`](https://github.com/benkroeger/redis-cookie-store): Redis
-- [`tough-cookie-filestore`](https://github.com/mitsuru/tough-cookie-filestore): JSON on disk
-- [`tough-cookie-web-storage-store`](https://github.com/exponentjs/tough-cookie-web-storage-store): DOM localStorage and sessionStorage
-
-
-# Serialization Format
-
-**NOTE**: if you want to have custom `Cookie` properties serialized, add the property name to `Cookie.serializableProperties`.
-
-```js
- {
- // The version of tough-cookie that serialized this jar.
- version: 'tough-cookie@1.x.y',
-
- // add the store type, to make humans happy:
- storeType: 'MemoryCookieStore',
-
- // CookieJar configuration:
- rejectPublicSuffixes: true,
- // ... future items go here
-
- // Gets filled from jar.store.getAllCookies():
- cookies: [
- {
- key: 'string',
- value: 'string',
- // ...
- /* other Cookie.serializableProperties go here */
- }
- ]
- }
-```
-
-# Copyright and License
-
-BSD-3-Clause:
-
-```text
- Copyright (c) 2015, Salesforce.com, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. Neither the name of Salesforce.com nor the names of its contributors may
- be used to endorse or promote products derived from this software without
- specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-```
diff --git a/node_modules/tough-cookie/lib/cookie.js b/node_modules/tough-cookie/lib/cookie.js
deleted file mode 100644
index 32dc0f8..0000000
--- a/node_modules/tough-cookie/lib/cookie.js
+++ /dev/null
@@ -1,1482 +0,0 @@
-/*!
- * Copyright (c) 2015, Salesforce.com, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-'use strict';
-var net = require('net');
-var urlParse = require('url').parse;
-var util = require('util');
-var pubsuffix = require('./pubsuffix-psl');
-var Store = require('./store').Store;
-var MemoryCookieStore = require('./memstore').MemoryCookieStore;
-var pathMatch = require('./pathMatch').pathMatch;
-var VERSION = require('./version');
-
-var punycode;
-try {
- punycode = require('punycode');
-} catch(e) {
- console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization");
-}
-
-// From RFC6265 S4.1.1
-// note that it excludes \x3B ";"
-var COOKIE_OCTETS = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/;
-
-var CONTROL_CHARS = /[\x00-\x1F]/;
-
-// From Chromium // '\r', '\n' and '\0' should be treated as a terminator in
-// the "relaxed" mode, see:
-// https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/parsed_cookie.cc#L60
-var TERMINATORS = ['\n', '\r', '\0'];
-
-// RFC6265 S4.1.1 defines path value as 'any CHAR except CTLs or ";"'
-// Note ';' is \x3B
-var PATH_VALUE = /[\x20-\x3A\x3C-\x7E]+/;
-
-// date-time parsing constants (RFC6265 S5.1.1)
-
-var DATE_DELIM = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/;
-
-var MONTH_TO_NUM = {
- jan:0, feb:1, mar:2, apr:3, may:4, jun:5,
- jul:6, aug:7, sep:8, oct:9, nov:10, dec:11
-};
-var NUM_TO_MONTH = [
- 'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'
-];
-var NUM_TO_DAY = [
- 'Sun','Mon','Tue','Wed','Thu','Fri','Sat'
-];
-
-var MAX_TIME = 2147483647000; // 31-bit max
-var MIN_TIME = 0; // 31-bit min
-
-/*
- * Parses a Natural number (i.e., non-negative integer) with either the
- * <min>*<max>DIGIT ( non-digit *OCTET )
- * or
- * <min>*<max>DIGIT
- * grammar (RFC6265 S5.1.1).
- *
- * The "trailingOK" boolean controls if the grammar accepts a
- * "( non-digit *OCTET )" trailer.
- */
-function parseDigits(token, minDigits, maxDigits, trailingOK) {
- var count = 0;
- while (count < token.length) {
- var c = token.charCodeAt(count);
- // "non-digit = %x00-2F / %x3A-FF"
- if (c <= 0x2F || c >= 0x3A) {
- break;
- }
- count++;
- }
-
- // constrain to a minimum and maximum number of digits.
- if (count < minDigits || count > maxDigits) {
- return null;
- }
-
- if (!trailingOK && count != token.length) {
- return null;
- }
-
- return parseInt(token.substr(0,count), 10);
-}
-
-function parseTime(token) {
- var parts = token.split(':');
- var result = [0,0,0];
-
- /* RF6256 S5.1.1:
- * time = hms-time ( non-digit *OCTET )
- * hms-time = time-field ":" time-field ":" time-field
- * time-field = 1*2DIGIT
- */
-
- if (parts.length !== 3) {
- return null;
- }
-
- for (var i = 0; i < 3; i++) {
- // "time-field" must be strictly "1*2DIGIT", HOWEVER, "hms-time" can be
- // followed by "( non-digit *OCTET )" so therefore the last time-field can
- // have a trailer
- var trailingOK = (i == 2);
- var num = parseDigits(parts[i], 1, 2, trailingOK);
- if (num === null) {
- return null;
- }
- result[i] = num;
- }
-
- return result;
-}
-
-function parseMonth(token) {
- token = String(token).substr(0,3).toLowerCase();
- var num = MONTH_TO_NUM[token];
- return num >= 0 ? num : null;
-}
-
-/*
- * RFC6265 S5.1.1 date parser (see RFC for full grammar)
- */
-function parseDate(str) {
- if (!str) {
- return;
- }
-
- /* RFC6265 S5.1.1:
- * 2. Process each date-token sequentially in the order the date-tokens
- * appear in the cookie-date
- */
- var tokens = str.split(DATE_DELIM);
- if (!tokens) {
- return;
- }
-
- var hour = null;
- var minute = null;
- var second = null;
- var dayOfMonth = null;
- var month = null;
- var year = null;
-
- for (var i=0; i<tokens.length; i++) {
- var token = tokens[i].trim();
- if (!token.length) {
- continue;
- }
-
- var result;
-
- /* 2.1. If the found-time flag is not set and the token matches the time
- * production, set the found-time flag and set the hour- value,
- * minute-value, and second-value to the numbers denoted by the digits in
- * the date-token, respectively. Skip the remaining sub-steps and continue
- * to the next date-token.
- */
- if (second === null) {
- result = parseTime(token);
- if (result) {
- hour = result[0];
- minute = result[1];
- second = result[2];
- continue;
- }
- }
-
- /* 2.2. If the found-day-of-month flag is not set and the date-token matches
- * the day-of-month production, set the found-day-of- month flag and set
- * the day-of-month-value to the number denoted by the date-token. Skip
- * the remaining sub-steps and continue to the next date-token.
- */
- if (dayOfMonth === null) {
- // "day-of-month = 1*2DIGIT ( non-digit *OCTET )"
- result = parseDigits(token, 1, 2, true);
- if (result !== null) {
- dayOfMonth = result;
- continue;
- }
- }
-
- /* 2.3. If the found-month flag is not set and the date-token matches the
- * month production, set the found-month flag and set the month-value to
- * the month denoted by the date-token. Skip the remaining sub-steps and
- * continue to the next date-token.
- */
- if (month === null) {
- result = parseMonth(token);
- if (result !== null) {
- month = result;
- continue;
- }
- }
-
- /* 2.4. If the found-year flag is not set and the date-token matches the
- * year production, set the found-year flag and set the year-value to the
- * number denoted by the date-token. Skip the remaining sub-steps and
- * continue to the next date-token.
- */
- if (year === null) {
- // "year = 2*4DIGIT ( non-digit *OCTET )"
- result = parseDigits(token, 2, 4, true);
- if (result !== null) {
- year = result;
- /* From S5.1.1:
- * 3. If the year-value is greater than or equal to 70 and less
- * than or equal to 99, increment the year-value by 1900.
- * 4. If the year-value is greater than or equal to 0 and less
- * than or equal to 69, increment the year-value by 2000.
- */
- if (year >= 70 && year <= 99) {
- year += 1900;
- } else if (year >= 0 && year <= 69) {
- year += 2000;
- }
- }
- }
- }
-
- /* RFC 6265 S5.1.1
- * "5. Abort these steps and fail to parse the cookie-date if:
- * * at least one of the found-day-of-month, found-month, found-
- * year, or found-time flags is not set,
- * * the day-of-month-value is less than 1 or greater than 31,
- * * the year-value is less than 1601,
- * * the hour-value is greater than 23,
- * * the minute-value is greater than 59, or
- * * the second-value is greater than 59.
- * (Note that leap seconds cannot be represented in this syntax.)"
- *
- * So, in order as above:
- */
- if (
- dayOfMonth === null || month === null || year === null || second === null ||
- dayOfMonth < 1 || dayOfMonth > 31 ||
- year < 1601 ||
- hour > 23 ||
- minute > 59 ||
- second > 59
- ) {
- return;
- }
-
- return new Date(Date.UTC(year, month, dayOfMonth, hour, minute, second));
-}
-
-function formatDate(date) {
- var d = date.getUTCDate(); d = d >= 10 ? d : '0'+d;
- var h = date.getUTCHours(); h = h >= 10 ? h : '0'+h;
- var m = date.getUTCMinutes(); m = m >= 10 ? m : '0'+m;
- var s = date.getUTCSeconds(); s = s >= 10 ? s : '0'+s;
- return NUM_TO_DAY[date.getUTCDay()] + ', ' +
- d+' '+ NUM_TO_MONTH[date.getUTCMonth()] +' '+ date.getUTCFullYear() +' '+
- h+':'+m+':'+s+' GMT';
-}
-
-// S5.1.2 Canonicalized Host Names
-function canonicalDomain(str) {
- if (str == null) {
- return null;
- }
- str = str.trim().replace(/^\./,''); // S4.1.2.3 & S5.2.3: ignore leading .
-
- // convert to IDN if any non-ASCII characters
- if (punycode && /[^\u0001-\u007f]/.test(str)) {
- str = punycode.toASCII(str);
- }
-
- return str.toLowerCase();
-}
-
-// S5.1.3 Domain Matching
-function domainMatch(str, domStr, canonicalize) {
- if (str == null || domStr == null) {
- return null;
- }
- if (canonicalize !== false) {
- str = canonicalDomain(str);
- domStr = canonicalDomain(domStr);
- }
-
- /*
- * "The domain string and the string are identical. (Note that both the
- * domain string and the string will have been canonicalized to lower case at
- * this point)"
- */
- if (str == domStr) {
- return true;
- }
-
- /* "All of the following [three] conditions hold:" (order adjusted from the RFC) */
-
- /* "* The string is a host name (i.e., not an IP address)." */
- if (net.isIP(str)) {
- return false;
- }
-
- /* "* The domain string is a suffix of the string" */
- var idx = str.indexOf(domStr);
- if (idx <= 0) {
- return false; // it's a non-match (-1) or prefix (0)
- }
-
- // e.g "a.b.c".indexOf("b.c") === 2
- // 5 === 3+2
- if (str.length !== domStr.length + idx) { // it's not a suffix
- return false;
- }
-
- /* "* The last character of the string that is not included in the domain
- * string is a %x2E (".") character." */
- if (str.substr(idx-1,1) !== '.') {
- return false;
- }
-
- return true;
-}
-
-
-// RFC6265 S5.1.4 Paths and Path-Match
-
-/*
- * "The user agent MUST use an algorithm equivalent to the following algorithm
- * to compute the default-path of a cookie:"
- *
- * Assumption: the path (and not query part or absolute uri) is passed in.
- */
-function defaultPath(path) {
- // "2. If the uri-path is empty or if the first character of the uri-path is not
- // a %x2F ("/") character, output %x2F ("/") and skip the remaining steps.
- if (!path || path.substr(0,1) !== "/") {
- return "/";
- }
-
- // "3. If the uri-path contains no more than one %x2F ("/") character, output
- // %x2F ("/") and skip the remaining step."
- if (path === "/") {
- return path;
- }
-
- var rightSlash = path.lastIndexOf("/");
- if (rightSlash === 0) {
- return "/";
- }
-
- // "4. Output the characters of the uri-path from the first character up to,
- // but not including, the right-most %x2F ("/")."
- return path.slice(0, rightSlash);
-}
-
-function trimTerminator(str) {
- for (var t = 0; t < TERMINATORS.length; t++) {
- var terminatorIdx = str.indexOf(TERMINATORS[t]);
- if (terminatorIdx !== -1) {
- str = str.substr(0,terminatorIdx);
- }
- }
-
- return str;
-}
-
-function parseCookiePair(cookiePair, looseMode) {
- cookiePair = trimTerminator(cookiePair);
-
- var firstEq = cookiePair.indexOf('=');
- if (looseMode) {
- if (firstEq === 0) { // '=' is immediately at start
- cookiePair = cookiePair.substr(1);
- firstEq = cookiePair.indexOf('='); // might still need to split on '='
- }
- } else { // non-loose mode
- if (firstEq <= 0) { // no '=' or is at start
- return; // needs to have non-empty "cookie-name"
- }
- }
-
- var cookieName, cookieValue;
- if (firstEq <= 0) {
- cookieName = "";
- cookieValue = cookiePair.trim();
- } else {
- cookieName = cookiePair.substr(0, firstEq).trim();
- cookieValue = cookiePair.substr(firstEq+1).trim();
- }
-
- if (CONTROL_CHARS.test(cookieName) || CONTROL_CHARS.test(cookieValue)) {
- return;
- }
-
- var c = new Cookie();
- c.key = cookieName;
- c.value = cookieValue;
- return c;
-}
-
-function parse(str, options) {
- if (!options || typeof options !== 'object') {
- options = {};
- }
- str = str.trim();
-
- // We use a regex to parse the "name-value-pair" part of S5.2
- var firstSemi = str.indexOf(';'); // S5.2 step 1
- var cookiePair = (firstSemi === -1) ? str : str.substr(0, firstSemi);
- var c = parseCookiePair(cookiePair, !!options.loose);
- if (!c) {
- return;
- }
-
- if (firstSemi === -1) {
- return c;
- }
-
- // S5.2.3 "unparsed-attributes consist of the remainder of the set-cookie-string
- // (including the %x3B (";") in question)." plus later on in the same section
- // "discard the first ";" and trim".
- var unparsed = str.slice(firstSemi + 1).trim();
-
- // "If the unparsed-attributes string is empty, skip the rest of these
- // steps."
- if (unparsed.length === 0) {
- return c;
- }
-
- /*
- * S5.2 says that when looping over the items "[p]rocess the attribute-name
- * and attribute-value according to the requirements in the following
- * subsections" for every item. Plus, for many of the individual attributes
- * in S5.3 it says to use the "attribute-value of the last attribute in the
- * cookie-attribute-list". Therefore, in this implementation, we overwrite
- * the previous value.
- */
- var cookie_avs = unparsed.split(';');
- while (cookie_avs.length) {
- var av = cookie_avs.shift().trim();
- if (av.length === 0) { // happens if ";;" appears
- continue;
- }
- var av_sep = av.indexOf('=');
- var av_key, av_value;
-
- if (av_sep === -1) {
- av_key = av;
- av_value = null;
- } else {
- av_key = av.substr(0,av_sep);
- av_value = av.substr(av_sep+1);
- }
-
- av_key = av_key.trim().toLowerCase();
-
- if (av_value) {
- av_value = av_value.trim();
- }
-
- switch(av_key) {
- case 'expires': // S5.2.1
- if (av_value) {
- var exp = parseDate(av_value);
- // "If the attribute-value failed to parse as a cookie date, ignore the
- // cookie-av."
- if (exp) {
- // over and underflow not realistically a concern: V8's getTime() seems to
- // store something larger than a 32-bit time_t (even with 32-bit node)
- c.expires = exp;
- }
- }
- break;
-
- case 'max-age': // S5.2.2
- if (av_value) {
- // "If the first character of the attribute-value is not a DIGIT or a "-"
- // character ...[or]... If the remainder of attribute-value contains a
- // non-DIGIT character, ignore the cookie-av."
- if (/^-?[0-9]+$/.test(av_value)) {
- var delta = parseInt(av_value, 10);
- // "If delta-seconds is less than or equal to zero (0), let expiry-time
- // be the earliest representable date and time."
- c.setMaxAge(delta);
- }
- }
- break;
-
- case 'domain': // S5.2.3
- // "If the attribute-value is empty, the behavior is undefined. However,
- // the user agent SHOULD ignore the cookie-av entirely."
- if (av_value) {
- // S5.2.3 "Let cookie-domain be the attribute-value without the leading %x2E
- // (".") character."
- var domain = av_value.trim().replace(/^\./, '');
- if (domain) {
- // "Convert the cookie-domain to lower case."
- c.domain = domain.toLowerCase();
- }
- }
- break;
-
- case 'path': // S5.2.4
- /*
- * "If the attribute-value is empty or if the first character of the
- * attribute-value is not %x2F ("/"):
- * Let cookie-path be the default-path.
- * Otherwise:
- * Let cookie-path be the attribute-value."
- *
- * We'll represent the default-path as null since it depends on the
- * context of the parsing.
- */
- c.path = av_value && av_value[0] === "/" ? av_value : null;
- break;
-
- case 'secure': // S5.2.5
- /*
- * "If the attribute-name case-insensitively matches the string "Secure",
- * the user agent MUST append an attribute to the cookie-attribute-list
- * with an attribute-name of Secure and an empty attribute-value."
- */
- c.secure = true;
- break;
-
- case 'httponly': // S5.2.6 -- effectively the same as 'secure'
- c.httpOnly = true;
- break;
-
- default:
- c.extensions = c.extensions || [];
- c.extensions.push(av);
- break;
- }
- }
-
- return c;
-}
-
-// avoid the V8 deoptimization monster!
-function jsonParse(str) {
- var obj;
- try {
- obj = JSON.parse(str);
- } catch (e) {
- return e;
- }
- return obj;
-}
-
-function fromJSON(str) {
- if (!str) {
- return null;
- }
-
- var obj;
- if (typeof str === 'string') {
- obj = jsonParse(str);
- if (obj instanceof Error) {
- return null;
- }
- } else {
- // assume it's an Object
- obj = str;
- }
-
- var c = new Cookie();
- for (var i=0; i<Cookie.serializableProperties.length; i++) {
- var prop = Cookie.serializableProperties[i];
- if (obj[prop] === undefined ||
- obj[prop] === Cookie.prototype[prop])
- {
- continue; // leave as prototype default
- }
-
- if (prop === 'expires' ||
- prop === 'creation' ||
- prop === 'lastAccessed')
- {
- if (obj[prop] === null) {
- c[prop] = null;
- } else {
- c[prop] = obj[prop] == "Infinity" ?
- "Infinity" : new Date(obj[prop]);
- }
- } else {
- c[prop] = obj[prop];
- }
- }
-
- return c;
-}
-
-/* Section 5.4 part 2:
- * "* Cookies with longer paths are listed before cookies with
- * shorter paths.
- *
- * * Among cookies that have equal-length path fields, cookies with
- * earlier creation-times are listed before cookies with later
- * creation-times."
- */
-
-function cookieCompare(a,b) {
- var cmp = 0;
-
- // descending for length: b CMP a
- var aPathLen = a.path ? a.path.length : 0;
- var bPathLen = b.path ? b.path.length : 0;
- cmp = bPathLen - aPathLen;
- if (cmp !== 0) {
- return cmp;
- }
-
- // ascending for time: a CMP b
- var aTime = a.creation ? a.creation.getTime() : MAX_TIME;
- var bTime = b.creation ? b.creation.getTime() : MAX_TIME;
- cmp = aTime - bTime;
- if (cmp !== 0) {
- return cmp;
- }
-
- // break ties for the same millisecond (precision of JavaScript's clock)
- cmp = a.creationIndex - b.creationIndex;
-
- return cmp;
-}
-
-// Gives the permutation of all possible pathMatch()es of a given path. The
-// array is in longest-to-shortest order. Handy for indexing.
-function permutePath(path) {
- if (path === '/') {
- return ['/'];
- }
- if (path.lastIndexOf('/') === path.length-1) {
- path = path.substr(0,path.length-1);
- }
- var permutations = [path];
- while (path.length > 1) {
- var lindex = path.lastIndexOf('/');
- if (lindex === 0) {
- break;
- }
- path = path.substr(0,lindex);
- permutations.push(path);
- }
- permutations.push('/');
- return permutations;
-}
-
-function getCookieContext(url) {
- if (url instanceof Object) {
- return url;
- }
- // NOTE: decodeURI will throw on malformed URIs (see GH-32).
- // Therefore, we will just skip decoding for such URIs.
- try {
- url = decodeURI(url);
- }
- catch(err) {
- // Silently swallow error
- }
-
- return urlParse(url);
-}
-
-function Cookie(options) {
- options = options || {};
-
- Object.keys(options).forEach(function(prop) {
- if (Cookie.prototype.hasOwnProperty(prop) &&
- Cookie.prototype[prop] !== options[prop] &&
- prop.substr(0,1) !== '_')
- {
- this[prop] = options[prop];
- }
- }, this);
-
- this.creation = this.creation || new Date();
-
- // used to break creation ties in cookieCompare():
- Object.defineProperty(this, 'creationIndex', {
- configurable: false,
- enumerable: false, // important for assert.deepEqual checks
- writable: true,
- value: ++Cookie.cookiesCreated
- });
-}
-
-Cookie.cookiesCreated = 0; // incremented each time a cookie is created
-
-Cookie.parse = parse;
-Cookie.fromJSON = fromJSON;
-
-Cookie.prototype.key = "";
-Cookie.prototype.value = "";
-
-// the order in which the RFC has them:
-Cookie.prototype.expires = "Infinity"; // coerces to literal Infinity
-Cookie.prototype.maxAge = null; // takes precedence over expires for TTL
-Cookie.prototype.domain = null;
-Cookie.prototype.path = null;
-Cookie.prototype.secure = false;
-Cookie.prototype.httpOnly = false;
-Cookie.prototype.extensions = null;
-
-// set by the CookieJar:
-Cookie.prototype.hostOnly = null; // boolean when set
-Cookie.prototype.pathIsDefault = null; // boolean when set
-Cookie.prototype.creation = null; // Date when set; defaulted by Cookie.parse
-Cookie.prototype.lastAccessed = null; // Date when set
-Object.defineProperty(Cookie.prototype, 'creationIndex', {
- configurable: true,
- enumerable: false,
- writable: true,
- value: 0
-});
-
-Cookie.serializableProperties = Object.keys(Cookie.prototype)
- .filter(function(prop) {
- return !(
- Cookie.prototype[prop] instanceof Function ||
- prop === 'creationIndex' ||
- prop.substr(0,1) === '_'
- );
- });
-
-Cookie.prototype.inspect = function inspect() {
- var now = Date.now();
- return 'Cookie="'+this.toString() +
- '; hostOnly='+(this.hostOnly != null ? this.hostOnly : '?') +
- '; aAge='+(this.lastAccessed ? (now-this.lastAccessed.getTime())+'ms' : '?') +
- '; cAge='+(this.creation ? (now-this.creation.getTime())+'ms' : '?') +
- '"';
-};
-
-// Use the new custom inspection symbol to add the custom inspect function if
-// available.
-if (util.inspect.custom) {
- Cookie.prototype[util.inspect.custom] = Cookie.prototype.inspect;
-}
-
-Cookie.prototype.toJSON = function() {
- var obj = {};
-
- var props = Cookie.serializableProperties;
- for (var i=0; i<props.length; i++) {
- var prop = props[i];
- if (this[prop] === Cookie.prototype[prop]) {
- continue; // leave as prototype default
- }
-
- if (prop === 'expires' ||
- prop === 'creation' ||
- prop === 'lastAccessed')
- {
- if (this[prop] === null) {
- obj[prop] = null;
- } else {
- obj[prop] = this[prop] == "Infinity" ? // intentionally not ===
- "Infinity" : this[prop].toISOString();
- }
- } else if (prop === 'maxAge') {
- if (this[prop] !== null) {
- // again, intentionally not ===
- obj[prop] = (this[prop] == Infinity || this[prop] == -Infinity) ?
- this[prop].toString() : this[prop];
- }
- } else {
- if (this[prop] !== Cookie.prototype[prop]) {
- obj[prop] = this[prop];
- }
- }
- }
-
- return obj;
-};
-
-Cookie.prototype.clone = function() {
- return fromJSON(this.toJSON());
-};
-
-Cookie.prototype.validate = function validate() {
- if (!COOKIE_OCTETS.test(this.value)) {
- return false;
- }
- if (this.expires != Infinity && !(this.expires instanceof Date) && !parseDate(this.expires)) {
- return false;
- }
- if (this.maxAge != null && this.maxAge <= 0) {
- return false; // "Max-Age=" non-zero-digit *DIGIT
- }
- if (this.path != null && !PATH_VALUE.test(this.path)) {
- return false;
- }
-
- var cdomain = this.cdomain();
- if (cdomain) {
- if (cdomain.match(/\.$/)) {
- return false; // S4.1.2.3 suggests that this is bad. domainMatch() tests confirm this
- }
- var suffix = pubsuffix.getPublicSuffix(cdomain);
- if (suffix == null) { // it's a public suffix
- return false;
- }
- }
- return true;
-};
-
-Cookie.prototype.setExpires = function setExpires(exp) {
- if (exp instanceof Date) {
- this.expires = exp;
- } else {
- this.expires = parseDate(exp) || "Infinity";
- }
-};
-
-Cookie.prototype.setMaxAge = function setMaxAge(age) {
- if (age === Infinity || age === -Infinity) {
- this.maxAge = age.toString(); // so JSON.stringify() works
- } else {
- this.maxAge = age;
- }
-};
-
-// gives Cookie header format
-Cookie.prototype.cookieString = function cookieString() {
- var val = this.value;
- if (val == null) {
- val = '';
- }
- if (this.key === '') {
- return val;
- }
- return this.key+'='+val;
-};
-
-// gives Set-Cookie header format
-Cookie.prototype.toString = function toString() {
- var str = this.cookieString();
-
- if (this.expires != Infinity) {
- if (this.expires instanceof Date) {
- str += '; Expires='+formatDate(this.expires);
- } else {
- str += '; Expires='+this.expires;
- }
- }
-
- if (this.maxAge != null && this.maxAge != Infinity) {
- str += '; Max-Age='+this.maxAge;
- }
-
- if (this.domain && !this.hostOnly) {
- str += '; Domain='+this.domain;
- }
- if (this.path) {
- str += '; Path='+this.path;
- }
-
- if (this.secure) {
- str += '; Secure';
- }
- if (this.httpOnly) {
- str += '; HttpOnly';
- }
- if (this.extensions) {
- this.extensions.forEach(function(ext) {
- str += '; '+ext;
- });
- }
-
- return str;
-};
-
-// TTL() partially replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
-// elsewhere)
-// S5.3 says to give the "latest representable date" for which we use Infinity
-// For "expired" we use 0
-Cookie.prototype.TTL = function TTL(now) {
- /* RFC6265 S4.1.2.2 If a cookie has both the Max-Age and the Expires
- * attribute, the Max-Age attribute has precedence and controls the
- * expiration date of the cookie.
- * (Concurs with S5.3 step 3)
- */
- if (this.maxAge != null) {
- return this.maxAge<=0 ? 0 : this.maxAge*1000;
- }
-
- var expires = this.expires;
- if (expires != Infinity) {
- if (!(expires instanceof Date)) {
- expires = parseDate(expires) || Infinity;
- }
-
- if (expires == Infinity) {
- return Infinity;
- }
-
- return expires.getTime() - (now || Date.now());
- }
-
- return Infinity;
-};
-
-// expiryTime() replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
-// elsewhere)
-Cookie.prototype.expiryTime = function expiryTime(now) {
- if (this.maxAge != null) {
- var relativeTo = now || this.creation || new Date();
- var age = (this.maxAge <= 0) ? -Infinity : this.maxAge*1000;
- return relativeTo.getTime() + age;
- }
-
- if (this.expires == Infinity) {
- return Infinity;
- }
- return this.expires.getTime();
-};
-
-// expiryDate() replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
-// elsewhere), except it returns a Date
-Cookie.prototype.expiryDate = function expiryDate(now) {
- var millisec = this.expiryTime(now);
- if (millisec == Infinity) {
- return new Date(MAX_TIME);
- } else if (millisec == -Infinity) {
- return new Date(MIN_TIME);
- } else {
- return new Date(millisec);
- }
-};
-
-// This replaces the "persistent-flag" parts of S5.3 step 3
-Cookie.prototype.isPersistent = function isPersistent() {
- return (this.maxAge != null || this.expires != Infinity);
-};
-
-// Mostly S5.1.2 and S5.2.3:
-Cookie.prototype.cdomain =
-Cookie.prototype.canonicalizedDomain = function canonicalizedDomain() {
- if (this.domain == null) {
- return null;
- }
- return canonicalDomain(this.domain);
-};
-
-function CookieJar(store, options) {
- if (typeof options === "boolean") {
- options = {rejectPublicSuffixes: options};
- } else if (options == null) {
- options = {};
- }
- if (options.rejectPublicSuffixes != null) {
- this.rejectPublicSuffixes = options.rejectPublicSuffixes;
- }
- if (options.looseMode != null) {
- this.enableLooseMode = options.looseMode;
- }
-
- if (!store) {
- store = new MemoryCookieStore();
- }
- this.store = store;
-}
-CookieJar.prototype.store = null;
-CookieJar.prototype.rejectPublicSuffixes = true;
-CookieJar.prototype.enableLooseMode = false;
-var CAN_BE_SYNC = [];
-
-CAN_BE_SYNC.push('setCookie');
-CookieJar.prototype.setCookie = function(cookie, url, options, cb) {
- var err;
- var context = getCookieContext(url);
- if (options instanceof Function) {
- cb = options;
- options = {};
- }
-
- var host = canonicalDomain(context.hostname);
- var loose = this.enableLooseMode;
- if (options.loose != null) {
- loose = options.loose;
- }
-
- // S5.3 step 1
- if (!(cookie instanceof Cookie)) {
- cookie = Cookie.parse(cookie, { loose: loose });
- }
- if (!cookie) {
- err = new Error("Cookie failed to parse");
- return cb(options.ignoreError ? null : err);
- }
-
- // S5.3 step 2
- var now = options.now || new Date(); // will assign later to save effort in the face of errors
-
- // S5.3 step 3: NOOP; persistent-flag and expiry-time is handled by getCookie()
-
- // S5.3 step 4: NOOP; domain is null by default
-
- // S5.3 step 5: public suffixes
- if (this.rejectPublicSuffixes && cookie.domain) {
- var suffix = pubsuffix.getPublicSuffix(cookie.cdomain());
- if (suffix == null) { // e.g. "com"
- err = new Error("Cookie has domain set to a public suffix");
- return cb(options.ignoreError ? null : err);
- }
- }
-
- // S5.3 step 6:
- if (cookie.domain) {
- if (!domainMatch(host, cookie.cdomain(), false)) {
- err = new Error("Cookie not in this host's domain. Cookie:"+cookie.cdomain()+" Request:"+host);
- return cb(options.ignoreError ? null : err);
- }
-
- if (cookie.hostOnly == null) { // don't reset if already set
- cookie.hostOnly = false;
- }
-
- } else {
- cookie.hostOnly = true;
- cookie.domain = host;
- }
-
- //S5.2.4 If the attribute-value is empty or if the first character of the
- //attribute-value is not %x2F ("/"):
- //Let cookie-path be the default-path.
- if (!cookie.path || cookie.path[0] !== '/') {
- cookie.path = defaultPath(context.pathname);
- cookie.pathIsDefault = true;
- }
-
- // S5.3 step 8: NOOP; secure attribute
- // S5.3 step 9: NOOP; httpOnly attribute
-
- // S5.3 step 10
- if (options.http === false && cookie.httpOnly) {
- err = new Error("Cookie is HttpOnly and this isn't an HTTP API");
- return cb(options.ignoreError ? null : err);
- }
-
- var store = this.store;
-
- if (!store.updateCookie) {
- store.updateCookie = function(oldCookie, newCookie, cb) {
- this.putCookie(newCookie, cb);
- };
- }
-
- function withCookie(err, oldCookie) {
- if (err) {
- return cb(err);
- }
-
- var next = function(err) {
- if (err) {
- return cb(err);
- } else {
- cb(null, cookie);
- }
- };
-
- if (oldCookie) {
- // S5.3 step 11 - "If the cookie store contains a cookie with the same name,
- // domain, and path as the newly created cookie:"
- if (options.http === false && oldCookie.httpOnly) { // step 11.2
- err = new Error("old Cookie is HttpOnly and this isn't an HTTP API");
- return cb(options.ignoreError ? null : err);
- }
- cookie.creation = oldCookie.creation; // step 11.3
- cookie.creationIndex = oldCookie.creationIndex; // preserve tie-breaker
- cookie.lastAccessed = now;
- // Step 11.4 (delete cookie) is implied by just setting the new one:
- store.updateCookie(oldCookie, cookie, next); // step 12
-
- } else {
- cookie.creation = cookie.lastAccessed = now;
- store.putCookie(cookie, next); // step 12
- }
- }
-
- store.findCookie(cookie.domain, cookie.path, cookie.key, withCookie);
-};
-
-// RFC6365 S5.4
-CAN_BE_SYNC.push('getCookies');
-CookieJar.prototype.getCookies = function(url, options, cb) {
- var context = getCookieContext(url);
- if (options instanceof Function) {
- cb = options;
- options = {};
- }
-
- var host = canonicalDomain(context.hostname);
- var path = context.pathname || '/';
-
- var secure = options.secure;
- if (secure == null && context.protocol &&
- (context.protocol == 'https:' || context.protocol == 'wss:'))
- {
- secure = true;
- }
-
- var http = options.http;
- if (http == null) {
- http = true;
- }
-
- var now = options.now || Date.now();
- var expireCheck = options.expire !== false;
- var allPaths = !!options.allPaths;
- var store = this.store;
-
- function matchingCookie(c) {
- // "Either:
- // The cookie's host-only-flag is true and the canonicalized
- // request-host is identical to the cookie's domain.
- // Or:
- // The cookie's host-only-flag is false and the canonicalized
- // request-host domain-matches the cookie's domain."
- if (c.hostOnly) {
- if (c.domain != host) {
- return false;
- }
- } else {
- if (!domainMatch(host, c.domain, false)) {
- return false;
- }
- }
-
- // "The request-uri's path path-matches the cookie's path."
- if (!allPaths && !pathMatch(path, c.path)) {
- return false;
- }
-
- // "If the cookie's secure-only-flag is true, then the request-uri's
- // scheme must denote a "secure" protocol"
- if (c.secure && !secure) {
- return false;
- }
-
- // "If the cookie's http-only-flag is true, then exclude the cookie if the
- // cookie-string is being generated for a "non-HTTP" API"
- if (c.httpOnly && !http) {
- return false;
- }
-
- // deferred from S5.3
- // non-RFC: allow retention of expired cookies by choice
- if (expireCheck && c.expiryTime() <= now) {
- store.removeCookie(c.domain, c.path, c.key, function(){}); // result ignored
- return false;
- }
-
- return true;
- }
-
- store.findCookies(host, allPaths ? null : path, function(err,cookies) {
- if (err) {
- return cb(err);
- }
-
- cookies = cookies.filter(matchingCookie);
-
- // sorting of S5.4 part 2
- if (options.sort !== false) {
- cookies = cookies.sort(cookieCompare);
- }
-
- // S5.4 part 3
- var now = new Date();
- cookies.forEach(function(c) {
- c.lastAccessed = now;
- });
- // TODO persist lastAccessed
-
- cb(null,cookies);
- });
-};
-
-CAN_BE_SYNC.push('getCookieString');
-CookieJar.prototype.getCookieString = function(/*..., cb*/) {
- var args = Array.prototype.slice.call(arguments,0);
- var cb = args.pop();
- var next = function(err,cookies) {
- if (err) {
- cb(err);
- } else {
- cb(null, cookies
- .sort(cookieCompare)
- .map(function(c){
- return c.cookieString();
- })
- .join('; '));
- }
- };
- args.push(next);
- this.getCookies.apply(this,args);
-};
-
-CAN_BE_SYNC.push('getSetCookieStrings');
-CookieJar.prototype.getSetCookieStrings = function(/*..., cb*/) {
- var args = Array.prototype.slice.call(arguments,0);
- var cb = args.pop();
- var next = function(err,cookies) {
- if (err) {
- cb(err);
- } else {
- cb(null, cookies.map(function(c){
- return c.toString();
- }));
- }
- };
- args.push(next);
- this.getCookies.apply(this,args);
-};
-
-CAN_BE_SYNC.push('serialize');
-CookieJar.prototype.serialize = function(cb) {
- var type = this.store.constructor.name;
- if (type === 'Object') {
- type = null;
- }
-
- // update README.md "Serialization Format" if you change this, please!
- var serialized = {
- // The version of tough-cookie that serialized this jar. Generally a good
- // practice since future versions can make data import decisions based on
- // known past behavior. When/if this matters, use `semver`.
- version: 'tough-cookie@'+VERSION,
-
- // add the store type, to make humans happy:
- storeType: type,
-
- // CookieJar configuration:
- rejectPublicSuffixes: !!this.rejectPublicSuffixes,
-
- // this gets filled from getAllCookies:
- cookies: []
- };
-
- if (!(this.store.getAllCookies &&
- typeof this.store.getAllCookies === 'function'))
- {
- return cb(new Error('store does not support getAllCookies and cannot be serialized'));
- }
-
- this.store.getAllCookies(function(err,cookies) {
- if (err) {
- return cb(err);
- }
-
- serialized.cookies = cookies.map(function(cookie) {
- // convert to serialized 'raw' cookies
- cookie = (cookie instanceof Cookie) ? cookie.toJSON() : cookie;
-
- // Remove the index so new ones get assigned during deserialization
- delete cookie.creationIndex;
-
- return cookie;
- });
-
- return cb(null, serialized);
- });
-};
-
-// well-known name that JSON.stringify calls
-CookieJar.prototype.toJSON = function() {
- return this.serializeSync();
-};
-
-// use the class method CookieJar.deserialize instead of calling this directly
-CAN_BE_SYNC.push('_importCookies');
-CookieJar.prototype._importCookies = function(serialized, cb) {
- var jar = this;
- var cookies = serialized.cookies;
- if (!cookies || !Array.isArray(cookies)) {
- return cb(new Error('serialized jar has no cookies array'));
- }
- cookies = cookies.slice(); // do not modify the original
-
- function putNext(err) {
- if (err) {
- return cb(err);
- }
-
- if (!cookies.length) {
- return cb(err, jar);
- }
-
- var cookie;
- try {
- cookie = fromJSON(cookies.shift());
- } catch (e) {
- return cb(e);
- }
-
- if (cookie === null) {
- return putNext(null); // skip this cookie
- }
-
- jar.store.putCookie(cookie, putNext);
- }
-
- putNext();
-};
-
-CookieJar.deserialize = function(strOrObj, store, cb) {
- if (arguments.length !== 3) {
- // store is optional
- cb = store;
- store = null;
- }
-
- var serialized;
- if (typeof strOrObj === 'string') {
- serialized = jsonParse(strOrObj);
- if (serialized instanceof Error) {
- return cb(serialized);
- }
- } else {
- serialized = strOrObj;
- }
-
- var jar = new CookieJar(store, serialized.rejectPublicSuffixes);
- jar._importCookies(serialized, function(err) {
- if (err) {
- return cb(err);
- }
- cb(null, jar);
- });
-};
-
-CookieJar.deserializeSync = function(strOrObj, store) {
- var serialized = typeof strOrObj === 'string' ?
- JSON.parse(strOrObj) : strOrObj;
- var jar = new CookieJar(store, serialized.rejectPublicSuffixes);
-
- // catch this mistake early:
- if (!jar.store.synchronous) {
- throw new Error('CookieJar store is not synchronous; use async API instead.');
- }
-
- jar._importCookiesSync(serialized);
- return jar;
-};
-CookieJar.fromJSON = CookieJar.deserializeSync;
-
-CookieJar.prototype.clone = function(newStore, cb) {
- if (arguments.length === 1) {
- cb = newStore;
- newStore = null;
- }
-
- this.serialize(function(err,serialized) {
- if (err) {
- return cb(err);
- }
- CookieJar.deserialize(serialized, newStore, cb);
- });
-};
-
-CAN_BE_SYNC.push('removeAllCookies');
-CookieJar.prototype.removeAllCookies = function(cb) {
- var store = this.store;
-
- // Check that the store implements its own removeAllCookies(). The default
- // implementation in Store will immediately call the callback with a "not
- // implemented" Error.
- if (store.removeAllCookies instanceof Function &&
- store.removeAllCookies !== Store.prototype.removeAllCookies)
- {
- return store.removeAllCookies(cb);
- }
-
- store.getAllCookies(function(err, cookies) {
- if (err) {
- return cb(err);
- }
-
- if (cookies.length === 0) {
- return cb(null);
- }
-
- var completedCount = 0;
- var removeErrors = [];
-
- function removeCookieCb(removeErr) {
- if (removeErr) {
- removeErrors.push(removeErr);
- }
-
- completedCount++;
-
- if (completedCount === cookies.length) {
- return cb(removeErrors.length ? removeErrors[0] : null);
- }
- }
-
- cookies.forEach(function(cookie) {
- store.removeCookie(cookie.domain, cookie.path, cookie.key, removeCookieCb);
- });
- });
-};
-
-CookieJar.prototype._cloneSync = syncWrap('clone');
-CookieJar.prototype.cloneSync = function(newStore) {
- if (!newStore.synchronous) {
- throw new Error('CookieJar clone destination store is not synchronous; use async API instead.');
- }
- return this._cloneSync(newStore);
-};
-
-// Use a closure to provide a true imperative API for synchronous stores.
-function syncWrap(method) {
- return function() {
- if (!this.store.synchronous) {
- throw new Error('CookieJar store is not synchronous; use async API instead.');
- }
-
- var args = Array.prototype.slice.call(arguments);
- var syncErr, syncResult;
- args.push(function syncCb(err, result) {
- syncErr = err;
- syncResult = result;
- });
- this[method].apply(this, args);
-
- if (syncErr) {
- throw syncErr;
- }
- return syncResult;
- };
-}
-
-// wrap all declared CAN_BE_SYNC methods in the sync wrapper
-CAN_BE_SYNC.forEach(function(method) {
- CookieJar.prototype[method+'Sync'] = syncWrap(method);
-});
-
-exports.version = VERSION;
-exports.CookieJar = CookieJar;
-exports.Cookie = Cookie;
-exports.Store = Store;
-exports.MemoryCookieStore = MemoryCookieStore;
-exports.parseDate = parseDate;
-exports.formatDate = formatDate;
-exports.parse = parse;
-exports.fromJSON = fromJSON;
-exports.domainMatch = domainMatch;
-exports.defaultPath = defaultPath;
-exports.pathMatch = pathMatch;
-exports.getPublicSuffix = pubsuffix.getPublicSuffix;
-exports.cookieCompare = cookieCompare;
-exports.permuteDomain = require('./permuteDomain').permuteDomain;
-exports.permutePath = permutePath;
-exports.canonicalDomain = canonicalDomain;
diff --git a/node_modules/tough-cookie/lib/memstore.js b/node_modules/tough-cookie/lib/memstore.js
deleted file mode 100644
index d2b915c..0000000
--- a/node_modules/tough-cookie/lib/memstore.js
+++ /dev/null
@@ -1,181 +0,0 @@
-/*!
- * Copyright (c) 2015, Salesforce.com, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-'use strict';
-var Store = require('./store').Store;
-var permuteDomain = require('./permuteDomain').permuteDomain;
-var pathMatch = require('./pathMatch').pathMatch;
-var util = require('util');
-
-function MemoryCookieStore() {
- Store.call(this);
- this.idx = {};
-}
-util.inherits(MemoryCookieStore, Store);
-exports.MemoryCookieStore = MemoryCookieStore;
-MemoryCookieStore.prototype.idx = null;
-
-// Since it's just a struct in RAM, this Store is synchronous
-MemoryCookieStore.prototype.synchronous = true;
-
-// force a default depth:
-MemoryCookieStore.prototype.inspect = function() {
- return "{ idx: "+util.inspect(this.idx, false, 2)+' }';
-};
-
-// Use the new custom inspection symbol to add the custom inspect function if
-// available.
-if (util.inspect.custom) {
- MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
-}
-
-MemoryCookieStore.prototype.findCookie = function(domain, path, key, cb) {
- if (!this.idx[domain]) {
- return cb(null,undefined);
- }
- if (!this.idx[domain][path]) {
- return cb(null,undefined);
- }
- return cb(null,this.idx[domain][path][key]||null);
-};
-
-MemoryCookieStore.prototype.findCookies = function(domain, path, cb) {
- var results = [];
- if (!domain) {
- return cb(null,[]);
- }
-
- var pathMatcher;
- if (!path) {
- // null means "all paths"
- pathMatcher = function matchAll(domainIndex) {
- for (var curPath in domainIndex) {
- var pathIndex = domainIndex[curPath];
- for (var key in pathIndex) {
- results.push(pathIndex[key]);
- }
- }
- };
-
- } else {
- pathMatcher = function matchRFC(domainIndex) {
- //NOTE: we should use path-match algorithm from S5.1.4 here
- //(see : https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/canonical_cookie.cc#L299)
- Object.keys(domainIndex).forEach(function (cookiePath) {
- if (pathMatch(path, cookiePath)) {
- var pathIndex = domainIndex[cookiePath];
-
- for (var key in pathIndex) {
- results.push(pathIndex[key]);
- }
- }
- });
- };
- }
-
- var domains = permuteDomain(domain) || [domain];
- var idx = this.idx;
- domains.forEach(function(curDomain) {
- var domainIndex = idx[curDomain];
- if (!domainIndex) {
- return;
- }
- pathMatcher(domainIndex);
- });
-
- cb(null,results);
-};
-
-MemoryCookieStore.prototype.putCookie = function(cookie, cb) {
- if (!this.idx[cookie.domain]) {
- this.idx[cookie.domain] = {};
- }
- if (!this.idx[cookie.domain][cookie.path]) {
- this.idx[cookie.domain][cookie.path] = {};
- }
- this.idx[cookie.domain][cookie.path][cookie.key] = cookie;
- cb(null);
-};
-
-MemoryCookieStore.prototype.updateCookie = function(oldCookie, newCookie, cb) {
- // updateCookie() may avoid updating cookies that are identical. For example,
- // lastAccessed may not be important to some stores and an equality
- // comparison could exclude that field.
- this.putCookie(newCookie,cb);
-};
-
-MemoryCookieStore.prototype.removeCookie = function(domain, path, key, cb) {
- if (this.idx[domain] && this.idx[domain][path] && this.idx[domain][path][key]) {
- delete this.idx[domain][path][key];
- }
- cb(null);
-};
-
-MemoryCookieStore.prototype.removeCookies = function(domain, path, cb) {
- if (this.idx[domain]) {
- if (path) {
- delete this.idx[domain][path];
- } else {
- delete this.idx[domain];
- }
- }
- return cb(null);
-};
-
-MemoryCookieStore.prototype.removeAllCookies = function(cb) {
- this.idx = {};
- return cb(null);
-}
-
-MemoryCookieStore.prototype.getAllCookies = function(cb) {
- var cookies = [];
- var idx = this.idx;
-
- var domains = Object.keys(idx);
- domains.forEach(function(domain) {
- var paths = Object.keys(idx[domain]);
- paths.forEach(function(path) {
- var keys = Object.keys(idx[domain][path]);
- keys.forEach(function(key) {
- if (key !== null) {
- cookies.push(idx[domain][path][key]);
- }
- });
- });
- });
-
- // Sort by creationIndex so deserializing retains the creation order.
- // When implementing your own store, this SHOULD retain the order too
- cookies.sort(function(a,b) {
- return (a.creationIndex||0) - (b.creationIndex||0);
- });
-
- cb(null, cookies);
-};
diff --git a/node_modules/tough-cookie/lib/pathMatch.js b/node_modules/tough-cookie/lib/pathMatch.js
deleted file mode 100644
index 7c7a79f..0000000
--- a/node_modules/tough-cookie/lib/pathMatch.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/*!
- * Copyright (c) 2015, Salesforce.com, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-"use strict";
-/*
- * "A request-path path-matches a given cookie-path if at least one of the
- * following conditions holds:"
- */
-function pathMatch (reqPath, cookiePath) {
- // "o The cookie-path and the request-path are identical."
- if (cookiePath === reqPath) {
- return true;
- }
-
- var idx = reqPath.indexOf(cookiePath);
- if (idx === 0) {
- // "o The cookie-path is a prefix of the request-path, and the last
- // character of the cookie-path is %x2F ("/")."
- if (cookiePath.substr(-1) === "/") {
- return true;
- }
-
- // " o The cookie-path is a prefix of the request-path, and the first
- // character of the request-path that is not included in the cookie- path
- // is a %x2F ("/") character."
- if (reqPath.substr(cookiePath.length, 1) === "/") {
- return true;
- }
- }
-
- return false;
-}
-
-exports.pathMatch = pathMatch;
diff --git a/node_modules/tough-cookie/lib/permuteDomain.js b/node_modules/tough-cookie/lib/permuteDomain.js
deleted file mode 100644
index 91bf446..0000000
--- a/node_modules/tough-cookie/lib/permuteDomain.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/*!
- * Copyright (c) 2015, Salesforce.com, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-"use strict";
-var pubsuffix = require('./pubsuffix-psl');
-
-// Gives the permutation of all possible domainMatch()es of a given domain. The
-// array is in shortest-to-longest order. Handy for indexing.
-function permuteDomain (domain) {
- var pubSuf = pubsuffix.getPublicSuffix(domain);
- if (!pubSuf) {
- return null;
- }
- if (pubSuf == domain) {
- return [domain];
- }
-
- var prefix = domain.slice(0, -(pubSuf.length + 1)); // ".example.com"
- var parts = prefix.split('.').reverse();
- var cur = pubSuf;
- var permutations = [cur];
- while (parts.length) {
- cur = parts.shift() + '.' + cur;
- permutations.push(cur);
- }
- return permutations;
-}
-
-exports.permuteDomain = permuteDomain;
diff --git a/node_modules/tough-cookie/lib/pubsuffix-psl.js b/node_modules/tough-cookie/lib/pubsuffix-psl.js
deleted file mode 100644
index c88329f..0000000
--- a/node_modules/tough-cookie/lib/pubsuffix-psl.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*!
- * Copyright (c) 2018, Salesforce.com, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-'use strict';
-var psl = require('psl');
-
-function getPublicSuffix(domain) {
- return psl.get(domain);
-}
-
-exports.getPublicSuffix = getPublicSuffix;
diff --git a/node_modules/tough-cookie/lib/store.js b/node_modules/tough-cookie/lib/store.js
deleted file mode 100644
index 859208f..0000000
--- a/node_modules/tough-cookie/lib/store.js
+++ /dev/null
@@ -1,75 +0,0 @@
-/*!
- * Copyright (c) 2015, Salesforce.com, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * 3. Neither the name of Salesforce.com nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-'use strict';
-/*jshint unused:false */
-
-function Store() {
-}
-exports.Store = Store;
-
-// Stores may be synchronous, but are still required to use a
-// Continuation-Passing Style API. The CookieJar itself will expose a "*Sync"
-// API that converts from synchronous-callbacks to imperative style.
-Store.prototype.synchronous = false;
-
-Store.prototype.findCookie = function(domain, path, key, cb) {
- throw new Error('findCookie is not implemented');
-};
-
-Store.prototype.findCookies = function(domain, path, cb) {
- throw new Error('findCookies is not implemented');
-};
-
-Store.prototype.putCookie = function(cookie, cb) {
- throw new Error('putCookie is not implemented');
-};
-
-Store.prototype.updateCookie = function(oldCookie, newCookie, cb) {
- // recommended default implementation:
- // return this.putCookie(newCookie, cb);
- throw new Error('updateCookie is not implemented');
-};
-
-Store.prototype.removeCookie = function(domain, path, key, cb) {
- throw new Error('removeCookie is not implemented');
-};
-
-Store.prototype.removeCookies = function(domain, path, cb) {
- throw new Error('removeCookies is not implemented');
-};
-
-Store.prototype.removeAllCookies = function(cb) {
- throw new Error('removeAllCookies is not implemented');
-}
-
-Store.prototype.getAllCookies = function(cb) {
- throw new Error('getAllCookies is not implemented (therefore jar cannot be serialized)');
-};
diff --git a/node_modules/tough-cookie/lib/version.js b/node_modules/tough-cookie/lib/version.js
deleted file mode 100644
index b34c6ae..0000000
--- a/node_modules/tough-cookie/lib/version.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// generated by genversion
-module.exports = '2.5.0'
diff --git a/node_modules/tough-cookie/package.json b/node_modules/tough-cookie/package.json
deleted file mode 100644
index 7c954f6..0000000
--- a/node_modules/tough-cookie/package.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "_from": "tough-cookie@~2.5.0",
- "_id": "tough-cookie@2.5.0",
- "_inBundle": false,
- "_integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
- "_location": "/tough-cookie",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "tough-cookie@~2.5.0",
- "name": "tough-cookie",
- "escapedName": "tough-cookie",
- "rawSpec": "~2.5.0",
- "saveSpec": null,
- "fetchSpec": "~2.5.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
- "_shasum": "cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2",
- "_spec": "tough-cookie@~2.5.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/request",
- "author": {
- "name": "Jeremy Stashewsky",
- "email": "jstash@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/salesforce/tough-cookie/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Alexander Savin"
- },
- {
- "name": "Ian Livingstone"
- },
- {
- "name": "Ivan Nikulin"
- },
- {
- "name": "Lalit Kapoor"
- },
- {
- "name": "Sam Thompson"
- },
- {
- "name": "Sebastian Mayr"
- }
- ],
- "dependencies": {
- "psl": "^1.1.28",
- "punycode": "^2.1.1"
- },
- "deprecated": false,
- "description": "RFC6265 Cookies and Cookie Jar for node.js",
- "devDependencies": {
- "async": "^1.4.2",
- "genversion": "^2.1.0",
- "nyc": "^11.6.0",
- "string.prototype.repeat": "^0.2.0",
- "vows": "^0.8.2"
- },
- "engines": {
- "node": ">=0.8"
- },
- "files": [
- "lib"
- ],
- "homepage": "https://github.com/salesforce/tough-cookie",
- "keywords": [
- "HTTP",
- "cookie",
- "cookies",
- "set-cookie",
- "cookiejar",
- "jar",
- "RFC6265",
- "RFC2965"
- ],
- "license": "BSD-3-Clause",
- "main": "./lib/cookie",
- "name": "tough-cookie",
- "repository": {
- "type": "git",
- "url": "git://github.com/salesforce/tough-cookie.git"
- },
- "scripts": {
- "cover": "nyc --reporter=lcov --reporter=html vows test/*_test.js",
- "test": "vows test/*_test.js",
- "version": "genversion lib/version.js && git add lib/version.js"
- },
- "version": "2.5.0"
-}
diff --git a/node_modules/trim-newlines/index.js b/node_modules/trim-newlines/index.js
deleted file mode 100644
index da31efd..0000000
--- a/node_modules/trim-newlines/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var fn = module.exports = function (x) {
- return fn.end(fn.start(x));
-};
-
-fn.start = function (x) {
- return x.replace(/^[\r\n]+/, '');
-};
-
-fn.end = function (x) {
- return x.replace(/[\r\n]+$/, '');
-};
diff --git a/node_modules/trim-newlines/license b/node_modules/trim-newlines/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/trim-newlines/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/trim-newlines/package.json b/node_modules/trim-newlines/package.json
deleted file mode 100644
index 39d3486..0000000
--- a/node_modules/trim-newlines/package.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "_from": "trim-newlines@^1.0.0",
- "_id": "trim-newlines@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=",
- "_location": "/trim-newlines",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "trim-newlines@^1.0.0",
- "name": "trim-newlines",
- "escapedName": "trim-newlines",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/meow"
- ],
- "_resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
- "_shasum": "5887966bb582a4503a41eb524f7d35011815a613",
- "_spec": "trim-newlines@^1.0.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/meow",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/trim-newlines/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Trim newlines from the start and/or end of a string",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/trim-newlines#readme",
- "keywords": [
- "trim",
- "newline",
- "newlines",
- "linebreak",
- "lf",
- "crlf",
- "left",
- "right",
- "start",
- "end",
- "string",
- "str",
- "remove",
- "delete",
- "strip"
- ],
- "license": "MIT",
- "name": "trim-newlines",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/trim-newlines.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.0"
-}
diff --git a/node_modules/trim-newlines/readme.md b/node_modules/trim-newlines/readme.md
deleted file mode 100644
index fedb3ca..0000000
--- a/node_modules/trim-newlines/readme.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# trim-newlines [![Build Status](https://travis-ci.org/sindresorhus/trim-newlines.svg?branch=master)](https://travis-ci.org/sindresorhus/trim-newlines)
-
-> Trim [newlines](https://en.wikipedia.org/wiki/Newline) from the start and/or end of a string
-
-
-## Install
-
-```
-$ npm install --save trim-newlines
-```
-
-
-## Usage
-
-```js
-var trimNewlines = require('trim-newlines');
-
-trimNewlines('\nunicorn\r\n');
-//=> 'unicorn'
-```
-
-
-## API
-
-### trimNewlines(input)
-
-Trim from the start and end of a string.
-
-### trimNewlines.start(input)
-
-Trim from the start of a string.
-
-### trimNewlines.end(input)
-
-Trim from the end of a string.
-
-
-## Related
-
-- [trim-left](https://github.com/sindresorhus/trim-left) - Similar to `String#trim()` but removes only whitespace on the left
-- [trim-right](https://github.com/sindresorhus/trim-right) - Similar to `String#trim()` but removes only whitespace on the right.
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/node_modules/true-case-path/LICENSE b/node_modules/true-case-path/LICENSE
deleted file mode 100644
index c0ee812..0000000
--- a/node_modules/true-case-path/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright {yyyy} {name of copyright owner}
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/node_modules/true-case-path/README.md b/node_modules/true-case-path/README.md
deleted file mode 100644
index 4b4346b..0000000
--- a/node_modules/true-case-path/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# true-case-path
-
-## Usage
-
-`trueCasePathSync(<fileSystemPath>)`
-
-## Description
-
-Given a possibly case-variant version of an existing filesystem path, returns
-the case-exact, normalized version as stored in the filesystem.
-
-If the input path is a globbing *pattern* as defined by the 'glob' npm
-package, only the 1st match, if any, is returned.
-Only a literal input path guarantees an unambiguous result.
-
-If no matching path exists, undefined is returned.
-On case-SENSITIVE filesystems, a match will also be found, but if case
-variations of a given path exist, it is undefined which match is returned.
-
-## Platforms
-
-Windows, OSX, and Linux (though note the limitations with case-insensitive filesystems).
-
-## Limitations
-
-- Paths starting with `'./'` are acceptable, but paths starting with `'../'`
- are not - when in doubt, resolve with `fs.realPathSync()` first.
- An initial `'.'` and *interior* `'..'` instances are normalized, but a relative
- input path still results in a relative output path. If you want to ensure
- an absolute output path, apply `fs.realPathSync()` to the result.
-- On Windows, no attempt is made to case-correct the drive letter or UNC-share
- component of the path.
-- Unicode support:
- - Be sure to use UTF8 source-code files (with a BOM on Windows)
- - On OSX, the input path is automatically converted to NFD Unicode form
- to match how the filesystem stores names, but note that the result will
- invariably be NFD too (which makes no difference for ASCII-characters-only
- names).
-
-## Examples
-
-```
-const trueCasePathSync = require('true-case-path')
-
-trueCasePathSync('/users/guest') // OSX: -> '/Users/Guest'
-
-trueCasePathSync('c:\\users\\all users') // Windows: -> 'c:\Users\All Users'
-```
-
-## Attribution
-
-The code for this project was sourced from [http://stackoverflow.com/a/33139702/45375](http://stackoverflow.com/a/33139702/45375)
diff --git a/node_modules/true-case-path/index.js b/node_modules/true-case-path/index.js
deleted file mode 100644
index e550a87..0000000
--- a/node_modules/true-case-path/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict'
-
-var glob = require('glob')
-var path = require('path')
-
-function trueCasePathSync(fsPath) {
-
- // Normalize the path so as to resolve . and .. components.
- // !! As of Node v4.1.1, a path starting with ../ is NOT resolved relative
- // !! to the current dir, and glob.sync() below then fails.
- // !! When in doubt, resolve with fs.realPathSync() *beforehand*.
- var fsPathNormalized = path.normalize(fsPath)
-
- // OSX: HFS+ stores filenames in NFD (decomposed normal form) Unicode format,
- // so we must ensure that the input path is in that format first.
- if (process.platform === 'darwin') fsPathNormalized = fsPathNormalized.normalize('NFD')
-
- // !! Windows: Curiously, the drive component mustn't be part of a glob,
- // !! otherwise glob.sync() will invariably match nothing.
- // !! Thus, we remove the drive component and instead pass it in as the 'cwd'
- // !! (working dir.) property below.
- var pathRoot = path.parse(fsPathNormalized).root
- var noDrivePath = fsPathNormalized.slice(Math.max(pathRoot.length - 1, 0))
-
- // Perform case-insensitive globbing (on Windows, relative to the drive /
- // network share) and return the 1st match, if any.
- // Fortunately, glob() with nocase case-corrects the input even if it is
- // a *literal* path.
- return glob.sync(noDrivePath, { nocase: true, cwd: pathRoot })[0]
-}
-
-module.exports = trueCasePathSync
diff --git a/node_modules/true-case-path/package.json b/node_modules/true-case-path/package.json
deleted file mode 100644
index 579b8ec..0000000
--- a/node_modules/true-case-path/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_from": "true-case-path@^1.0.2",
- "_id": "true-case-path@1.0.3",
- "_inBundle": false,
- "_integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==",
- "_location": "/true-case-path",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "true-case-path@^1.0.2",
- "name": "true-case-path",
- "escapedName": "true-case-path",
- "rawSpec": "^1.0.2",
- "saveSpec": null,
- "fetchSpec": "^1.0.2"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz",
- "_shasum": "f813b5a8c86b40da59606722b144e3225799f47d",
- "_spec": "true-case-path@^1.0.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/node-sass",
- "author": {
- "name": "barsh"
- },
- "bugs": {
- "url": "https://github.com/barsh/true-case-path/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Michael Klement",
- "email": "mklement0@gmail.com",
- "url": "https://github.com/mklement0"
- }
- ],
- "dependencies": {
- "glob": "^7.1.2"
- },
- "deprecated": false,
- "description": "Given a possibly case-variant version of an existing filesystem path, returns the case-exact, normalized version as stored in the filesystem.",
- "homepage": "https://github.com/barsh/true-case-path#readme",
- "license": "Apache-2.0",
- "main": "index.js",
- "name": "true-case-path",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/barsh/true-case-path.git"
- },
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "version": "1.0.3"
-}
diff --git a/node_modules/tunnel-agent/LICENSE b/node_modules/tunnel-agent/LICENSE
deleted file mode 100644
index a4a9aee..0000000
--- a/node_modules/tunnel-agent/LICENSE
+++ /dev/null
@@ -1,55 +0,0 @@
-Apache License
-
-Version 2.0, January 2004
-
-http://www.apache.org/licenses/
-
-TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-1. Definitions.
-
-"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
-
-"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
-
-"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
-
-"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
-
-"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
-
-"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
-
-"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
-
-"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
-
-"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
-
-"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
-
-2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
-
-3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
-
-4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
-
-You must give any other recipients of the Work or Derivative Works a copy of this License; and
-
-You must cause any modified files to carry prominent notices stating that You changed the files; and
-
-You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
-
-If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
-
-5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
-
-6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
-
-7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
-
-8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
-
-9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
-
-END OF TERMS AND CONDITIONS \ No newline at end of file
diff --git a/node_modules/tunnel-agent/README.md b/node_modules/tunnel-agent/README.md
deleted file mode 100644
index bb533d5..0000000
--- a/node_modules/tunnel-agent/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-tunnel-agent
-============
-
-HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.
diff --git a/node_modules/tunnel-agent/index.js b/node_modules/tunnel-agent/index.js
deleted file mode 100644
index 3ee9abc..0000000
--- a/node_modules/tunnel-agent/index.js
+++ /dev/null
@@ -1,244 +0,0 @@
-'use strict'
-
-var net = require('net')
- , tls = require('tls')
- , http = require('http')
- , https = require('https')
- , events = require('events')
- , assert = require('assert')
- , util = require('util')
- , Buffer = require('safe-buffer').Buffer
- ;
-
-exports.httpOverHttp = httpOverHttp
-exports.httpsOverHttp = httpsOverHttp
-exports.httpOverHttps = httpOverHttps
-exports.httpsOverHttps = httpsOverHttps
-
-
-function httpOverHttp(options) {
- var agent = new TunnelingAgent(options)
- agent.request = http.request
- return agent
-}
-
-function httpsOverHttp(options) {
- var agent = new TunnelingAgent(options)
- agent.request = http.request
- agent.createSocket = createSecureSocket
- agent.defaultPort = 443
- return agent
-}
-
-function httpOverHttps(options) {
- var agent = new TunnelingAgent(options)
- agent.request = https.request
- return agent
-}
-
-function httpsOverHttps(options) {
- var agent = new TunnelingAgent(options)
- agent.request = https.request
- agent.createSocket = createSecureSocket
- agent.defaultPort = 443
- return agent
-}
-
-
-function TunnelingAgent(options) {
- var self = this
- self.options = options || {}
- self.proxyOptions = self.options.proxy || {}
- self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets
- self.requests = []
- self.sockets = []
-
- self.on('free', function onFree(socket, host, port) {
- for (var i = 0, len = self.requests.length; i < len; ++i) {
- var pending = self.requests[i]
- if (pending.host === host && pending.port === port) {
- // Detect the request to connect same origin server,
- // reuse the connection.
- self.requests.splice(i, 1)
- pending.request.onSocket(socket)
- return
- }
- }
- socket.destroy()
- self.removeSocket(socket)
- })
-}
-util.inherits(TunnelingAgent, events.EventEmitter)
-
-TunnelingAgent.prototype.addRequest = function addRequest(req, options) {
- var self = this
-
- // Legacy API: addRequest(req, host, port, path)
- if (typeof options === 'string') {
- options = {
- host: options,
- port: arguments[2],
- path: arguments[3]
- };
- }
-
- if (self.sockets.length >= this.maxSockets) {
- // We are over limit so we'll add it to the queue.
- self.requests.push({host: options.host, port: options.port, request: req})
- return
- }
-
- // If we are under maxSockets create a new one.
- self.createConnection({host: options.host, port: options.port, request: req})
-}
-
-TunnelingAgent.prototype.createConnection = function createConnection(pending) {
- var self = this
-
- self.createSocket(pending, function(socket) {
- socket.on('free', onFree)
- socket.on('close', onCloseOrRemove)
- socket.on('agentRemove', onCloseOrRemove)
- pending.request.onSocket(socket)
-
- function onFree() {
- self.emit('free', socket, pending.host, pending.port)
- }
-
- function onCloseOrRemove(err) {
- self.removeSocket(socket)
- socket.removeListener('free', onFree)
- socket.removeListener('close', onCloseOrRemove)
- socket.removeListener('agentRemove', onCloseOrRemove)
- }
- })
-}
-
-TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {
- var self = this
- var placeholder = {}
- self.sockets.push(placeholder)
-
- var connectOptions = mergeOptions({}, self.proxyOptions,
- { method: 'CONNECT'
- , path: options.host + ':' + options.port
- , agent: false
- }
- )
- if (connectOptions.proxyAuth) {
- connectOptions.headers = connectOptions.headers || {}
- connectOptions.headers['Proxy-Authorization'] = 'Basic ' +
- Buffer.from(connectOptions.proxyAuth).toString('base64')
- }
-
- debug('making CONNECT request')
- var connectReq = self.request(connectOptions)
- connectReq.useChunkedEncodingByDefault = false // for v0.6
- connectReq.once('response', onResponse) // for v0.6
- connectReq.once('upgrade', onUpgrade) // for v0.6
- connectReq.once('connect', onConnect) // for v0.7 or later
- connectReq.once('error', onError)
- connectReq.end()
-
- function onResponse(res) {
- // Very hacky. This is necessary to avoid http-parser leaks.
- res.upgrade = true
- }
-
- function onUpgrade(res, socket, head) {
- // Hacky.
- process.nextTick(function() {
- onConnect(res, socket, head)
- })
- }
-
- function onConnect(res, socket, head) {
- connectReq.removeAllListeners()
- socket.removeAllListeners()
-
- if (res.statusCode === 200) {
- assert.equal(head.length, 0)
- debug('tunneling connection has established')
- self.sockets[self.sockets.indexOf(placeholder)] = socket
- cb(socket)
- } else {
- debug('tunneling socket could not be established, statusCode=%d', res.statusCode)
- var error = new Error('tunneling socket could not be established, ' + 'statusCode=' + res.statusCode)
- error.code = 'ECONNRESET'
- options.request.emit('error', error)
- self.removeSocket(placeholder)
- }
- }
-
- function onError(cause) {
- connectReq.removeAllListeners()
-
- debug('tunneling socket could not be established, cause=%s\n', cause.message, cause.stack)
- var error = new Error('tunneling socket could not be established, ' + 'cause=' + cause.message)
- error.code = 'ECONNRESET'
- options.request.emit('error', error)
- self.removeSocket(placeholder)
- }
-}
-
-TunnelingAgent.prototype.removeSocket = function removeSocket(socket) {
- var pos = this.sockets.indexOf(socket)
- if (pos === -1) return
-
- this.sockets.splice(pos, 1)
-
- var pending = this.requests.shift()
- if (pending) {
- // If we have pending requests and a socket gets closed a new one
- // needs to be created to take over in the pool for the one that closed.
- this.createConnection(pending)
- }
-}
-
-function createSecureSocket(options, cb) {
- var self = this
- TunnelingAgent.prototype.createSocket.call(self, options, function(socket) {
- // 0 is dummy port for v0.6
- var secureSocket = tls.connect(0, mergeOptions({}, self.options,
- { servername: options.host
- , socket: socket
- }
- ))
- self.sockets[self.sockets.indexOf(socket)] = secureSocket
- cb(secureSocket)
- })
-}
-
-
-function mergeOptions(target) {
- for (var i = 1, len = arguments.length; i < len; ++i) {
- var overrides = arguments[i]
- if (typeof overrides === 'object') {
- var keys = Object.keys(overrides)
- for (var j = 0, keyLen = keys.length; j < keyLen; ++j) {
- var k = keys[j]
- if (overrides[k] !== undefined) {
- target[k] = overrides[k]
- }
- }
- }
- }
- return target
-}
-
-
-var debug
-if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) {
- debug = function() {
- var args = Array.prototype.slice.call(arguments)
- if (typeof args[0] === 'string') {
- args[0] = 'TUNNEL: ' + args[0]
- } else {
- args.unshift('TUNNEL:')
- }
- console.error.apply(console, args)
- }
-} else {
- debug = function() {}
-}
-exports.debug = debug // for test
diff --git a/node_modules/tunnel-agent/package.json b/node_modules/tunnel-agent/package.json
deleted file mode 100644
index a0e7deb..0000000
--- a/node_modules/tunnel-agent/package.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "_from": "tunnel-agent@^0.6.0",
- "_id": "tunnel-agent@0.6.0",
- "_inBundle": false,
- "_integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
- "_location": "/tunnel-agent",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "tunnel-agent@^0.6.0",
- "name": "tunnel-agent",
- "escapedName": "tunnel-agent",
- "rawSpec": "^0.6.0",
- "saveSpec": null,
- "fetchSpec": "^0.6.0"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "_shasum": "27a5dea06b36b04a0a9966774b290868f0fc40fd",
- "_spec": "tunnel-agent@^0.6.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/request",
- "author": {
- "name": "Mikeal Rogers",
- "email": "mikeal.rogers@gmail.com",
- "url": "http://www.futurealoof.com"
- },
- "bugs": {
- "url": "https://github.com/mikeal/tunnel-agent/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "safe-buffer": "^5.0.1"
- },
- "deprecated": false,
- "description": "HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.",
- "devDependencies": {},
- "engines": {
- "node": "*"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/mikeal/tunnel-agent#readme",
- "license": "Apache-2.0",
- "main": "index.js",
- "name": "tunnel-agent",
- "optionalDependencies": {},
- "repository": {
- "url": "git+https://github.com/mikeal/tunnel-agent.git"
- },
- "version": "0.6.0"
-}
diff --git a/node_modules/tweetnacl/.npmignore b/node_modules/tweetnacl/.npmignore
deleted file mode 100644
index 7d98dcb..0000000
--- a/node_modules/tweetnacl/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-.eslintrc
-.travis.yml
-bower.json
-test
diff --git a/node_modules/tweetnacl/AUTHORS.md b/node_modules/tweetnacl/AUTHORS.md
deleted file mode 100644
index 6d74d40..0000000
--- a/node_modules/tweetnacl/AUTHORS.md
+++ /dev/null
@@ -1,28 +0,0 @@
-List of TweetNaCl.js authors
-============================
-
- Alphabetical order by first name.
- Format: Name (GitHub username or URL)
-
-* AndSDev (@AndSDev)
-* Devi Mandiri (@devi)
-* Dmitry Chestnykh (@dchest)
-
-List of authors of third-party public domain code from which TweetNaCl.js code was derived
-==========================================================================================
-
-[TweetNaCl](http://tweetnacl.cr.yp.to/)
---------------------------------------
-
-* Bernard van Gastel
-* Daniel J. Bernstein <http://cr.yp.to/djb.html>
-* Peter Schwabe <http://www.cryptojedi.org/users/peter/>
-* Sjaak Smetsers <http://www.cs.ru.nl/~sjakie/>
-* Tanja Lange <http://hyperelliptic.org/tanja>
-* Wesley Janssen
-
-
-[Poly1305-donna](https://github.com/floodyberry/poly1305-donna)
---------------------------------------------------------------
-
-* Andrew Moon (@floodyberry)
diff --git a/node_modules/tweetnacl/CHANGELOG.md b/node_modules/tweetnacl/CHANGELOG.md
deleted file mode 100644
index 92a4fdc..0000000
--- a/node_modules/tweetnacl/CHANGELOG.md
+++ /dev/null
@@ -1,221 +0,0 @@
-TweetNaCl.js Changelog
-======================
-
-
-v0.14.5
--------
-
-* Fixed incomplete return types in TypeScript typings.
-* Replaced COPYING.txt with LICENSE file, which now has public domain dedication
- text from The Unlicense. License fields in package.json and bower.json have
- been set to "Unlicense". The project was and will be in the public domain --
- this change just makes it easier for automated tools to know about this fact by
- using the widely recognized and SPDX-compatible template for public domain
- dedication.
-
-
-v0.14.4
--------
-
-* Added TypeScript type definitions (contributed by @AndSDev).
-* Improved benchmarking code.
-
-
-v0.14.3
--------
-
-Fixed a bug in the fast version of Poly1305 and brought it back.
-
-Thanks to @floodyberry for promptly responding and fixing the original C code:
-
-> "The issue was not properly detecting if st->h was >= 2^130 - 5, coupled with
-> [testing mistake] not catching the failure. The chance of the bug affecting
-> anything in the real world is essentially zero luckily, but it's good to have
-> it fixed."
-
-https://github.com/floodyberry/poly1305-donna/issues/2#issuecomment-202698577
-
-
-v0.14.2
--------
-
-Switched Poly1305 fast version back to original (slow) version due to a bug.
-
-
-v0.14.1
--------
-
-No code changes, just tweaked packaging and added COPYING.txt.
-
-
-v0.14.0
--------
-
-* **Breaking change!** All functions from `nacl.util` have been removed. These
- functions are no longer available:
-
- nacl.util.decodeUTF8
- nacl.util.encodeUTF8
- nacl.util.decodeBase64
- nacl.util.encodeBase64
-
- If want to continue using them, you can include
- <https://github.com/dchest/tweetnacl-util-js> package:
-
- <script src="nacl.min.js"></script>
- <script src="nacl-util.min.js"></script>
-
- or
-
- var nacl = require('tweetnacl');
- nacl.util = require('tweetnacl-util');
-
- However it is recommended to use better packages that have wider
- compatibility and better performance. Functions from `nacl.util` were never
- intended to be robust solution for string conversion and were included for
- convenience: cryptography library is not the right place for them.
-
- Currently calling these functions will throw error pointing to
- `tweetnacl-util-js` (in the next version this error message will be removed).
-
-* Improved detection of available random number generators, making it possible
- to use `nacl.randomBytes` and related functions in Web Workers without
- changes.
-
-* Changes to testing (see README).
-
-
-v0.13.3
--------
-
-No code changes.
-
-* Reverted license field in package.json to "Public domain".
-
-* Fixed typo in README.
-
-
-v0.13.2
--------
-
-* Fixed undefined variable bug in fast version of Poly1305. No worries, this
- bug was *never* triggered.
-
-* Specified CC0 public domain dedication.
-
-* Updated development dependencies.
-
-
-v0.13.1
--------
-
-* Exclude `crypto` and `buffer` modules from browserify builds.
-
-
-v0.13.0
--------
-
-* Made `nacl-fast` the default version in NPM package. Now
- `require("tweetnacl")` will use fast version; to get the original version,
- use `require("tweetnacl/nacl.js")`.
-
-* Cleanup temporary array after generating random bytes.
-
-
-v0.12.2
--------
-
-* Improved performance of curve operations, making `nacl.scalarMult`, `nacl.box`,
- `nacl.sign` and related functions up to 3x faster in `nacl-fast` version.
-
-
-v0.12.1
--------
-
-* Significantly improved performance of Salsa20 (~1.5x faster) and
- Poly1305 (~3.5x faster) in `nacl-fast` version.
-
-
-v0.12.0
--------
-
-* Instead of using the given secret key directly, TweetNaCl.js now copies it to
- a new array in `nacl.box.keyPair.fromSecretKey` and
- `nacl.sign.keyPair.fromSecretKey`.
-
-
-v0.11.2
--------
-
-* Added new constant: `nacl.sign.seedLength`.
-
-
-v0.11.1
--------
-
-* Even faster hash for both short and long inputs (in `nacl-fast`).
-
-
-v0.11.0
--------
-
-* Implement `nacl.sign.keyPair.fromSeed` to enable creation of sign key pairs
- deterministically from a 32-byte seed. (It behaves like
- [libsodium's](http://doc.libsodium.org/public-key_cryptography/public-key_signatures.html)
- `crypto_sign_seed_keypair`: the seed becomes a secret part of the secret key.)
-
-* Fast version now has an improved hash implementation that is 2x-5x faster.
-
-* Fixed benchmarks, which may have produced incorrect measurements.
-
-
-v0.10.1
--------
-
-* Exported undocumented `nacl.lowlevel.crypto_core_hsalsa20`.
-
-
-v0.10.0
--------
-
-* **Signature API breaking change!** `nacl.sign` and `nacl.sign.open` now deal
- with signed messages, and new `nacl.sign.detached` and
- `nacl.sign.detached.verify` are available.
-
- Previously, `nacl.sign` returned a signature, and `nacl.sign.open` accepted a
- message and "detached" signature. This was unlike NaCl's API, which dealt with
- signed messages (concatenation of signature and message).
-
- The new API is:
-
- nacl.sign(message, secretKey) -> signedMessage
- nacl.sign.open(signedMessage, publicKey) -> message | null
-
- Since detached signatures are common, two new API functions were introduced:
-
- nacl.sign.detached(message, secretKey) -> signature
- nacl.sign.detached.verify(message, signature, publicKey) -> true | false
-
- (Note that it's `verify`, not `open`, and it returns a boolean value, unlike
- `open`, which returns an "unsigned" message.)
-
-* NPM package now comes without `test` directory to keep it small.
-
-
-v0.9.2
-------
-
-* Improved documentation.
-* Fast version: increased theoretical message size limit from 2^32-1 to 2^52
- bytes in Poly1305 (and thus, secretbox and box). However this has no impact
- in practice since JavaScript arrays or ArrayBuffers are limited to 32-bit
- indexes, and most implementations won't allocate more than a gigabyte or so.
- (Obviously, there are no tests for the correctness of implementation.) Also,
- it's not recommended to use messages that large without splitting them into
- smaller packets anyway.
-
-
-v0.9.1
-------
-
-* Initial release
diff --git a/node_modules/tweetnacl/LICENSE b/node_modules/tweetnacl/LICENSE
deleted file mode 100644
index cf1ab25..0000000
--- a/node_modules/tweetnacl/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-This is free and unencumbered software released into the public domain.
-
-Anyone is free to copy, modify, publish, use, compile, sell, or
-distribute this software, either in source code form or as a compiled
-binary, for any purpose, commercial or non-commercial, and by any
-means.
-
-In jurisdictions that recognize copyright laws, the author or authors
-of this software dedicate any and all copyright interest in the
-software to the public domain. We make this dedication for the benefit
-of the public at large and to the detriment of our heirs and
-successors. We intend this dedication to be an overt act of
-relinquishment in perpetuity of all present and future rights to this
-software under copyright law.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-For more information, please refer to <http://unlicense.org>
diff --git a/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md b/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index a8eb4a9..0000000
--- a/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Important!
-
-If your contribution is not trivial (not a typo fix, etc.), we can only accept
-it if you dedicate your copyright for the contribution to the public domain.
-Make sure you understand what it means (see http://unlicense.org/)! If you
-agree, please add yourself to AUTHORS.md file, and include the following text
-to your pull request description or a comment in it:
-
-------------------------------------------------------------------------------
-
- I dedicate any and all copyright interest in this software to the
- public domain. I make this dedication for the benefit of the public at
- large and to the detriment of my heirs and successors. I intend this
- dedication to be an overt act of relinquishment in perpetuity of all
- present and future rights to this software under copyright law.
-
- Anyone is free to copy, modify, publish, use, compile, sell, or
- distribute this software, either in source code form or as a compiled
- binary, for any purpose, commercial or non-commercial, and by any
- means.
diff --git a/node_modules/tweetnacl/README.md b/node_modules/tweetnacl/README.md
deleted file mode 100644
index ffb6871..0000000
--- a/node_modules/tweetnacl/README.md
+++ /dev/null
@@ -1,459 +0,0 @@
-TweetNaCl.js
-============
-
-Port of [TweetNaCl](http://tweetnacl.cr.yp.to) / [NaCl](http://nacl.cr.yp.to/)
-to JavaScript for modern browsers and Node.js. Public domain.
-
-[![Build Status](https://travis-ci.org/dchest/tweetnacl-js.svg?branch=master)
-](https://travis-ci.org/dchest/tweetnacl-js)
-
-Demo: <https://tweetnacl.js.org>
-
-**:warning: The library is stable and API is frozen, however it has not been
-independently reviewed. If you can help reviewing it, please [contact
-me](mailto:dmitry@codingrobots.com).**
-
-Documentation
-=============
-
-* [Overview](#overview)
-* [Installation](#installation)
-* [Usage](#usage)
- * [Public-key authenticated encryption (box)](#public-key-authenticated-encryption-box)
- * [Secret-key authenticated encryption (secretbox)](#secret-key-authenticated-encryption-secretbox)
- * [Scalar multiplication](#scalar-multiplication)
- * [Signatures](#signatures)
- * [Hashing](#hashing)
- * [Random bytes generation](#random-bytes-generation)
- * [Constant-time comparison](#constant-time-comparison)
-* [System requirements](#system-requirements)
-* [Development and testing](#development-and-testing)
-* [Benchmarks](#benchmarks)
-* [Contributors](#contributors)
-* [Who uses it](#who-uses-it)
-
-
-Overview
---------
-
-The primary goal of this project is to produce a translation of TweetNaCl to
-JavaScript which is as close as possible to the original C implementation, plus
-a thin layer of idiomatic high-level API on top of it.
-
-There are two versions, you can use either of them:
-
-* `nacl.js` is the port of TweetNaCl with minimum differences from the
- original + high-level API.
-
-* `nacl-fast.js` is like `nacl.js`, but with some functions replaced with
- faster versions.
-
-
-Installation
-------------
-
-You can install TweetNaCl.js via a package manager:
-
-[Bower](http://bower.io):
-
- $ bower install tweetnacl
-
-[NPM](https://www.npmjs.org/):
-
- $ npm install tweetnacl
-
-or [download source code](https://github.com/dchest/tweetnacl-js/releases).
-
-
-Usage
------
-
-All API functions accept and return bytes as `Uint8Array`s. If you need to
-encode or decode strings, use functions from
-<https://github.com/dchest/tweetnacl-util-js> or one of the more robust codec
-packages.
-
-In Node.js v4 and later `Buffer` objects are backed by `Uint8Array`s, so you
-can freely pass them to TweetNaCl.js functions as arguments. The returned
-objects are still `Uint8Array`s, so if you need `Buffer`s, you'll have to
-convert them manually; make sure to convert using copying: `new Buffer(array)`,
-instead of sharing: `new Buffer(array.buffer)`, because some functions return
-subarrays of their buffers.
-
-
-### Public-key authenticated encryption (box)
-
-Implements *curve25519-xsalsa20-poly1305*.
-
-#### nacl.box.keyPair()
-
-Generates a new random key pair for box and returns it as an object with
-`publicKey` and `secretKey` members:
-
- {
- publicKey: ..., // Uint8Array with 32-byte public key
- secretKey: ... // Uint8Array with 32-byte secret key
- }
-
-
-#### nacl.box.keyPair.fromSecretKey(secretKey)
-
-Returns a key pair for box with public key corresponding to the given secret
-key.
-
-#### nacl.box(message, nonce, theirPublicKey, mySecretKey)
-
-Encrypt and authenticates message using peer's public key, our secret key, and
-the given nonce, which must be unique for each distinct message for a key pair.
-
-Returns an encrypted and authenticated message, which is
-`nacl.box.overheadLength` longer than the original message.
-
-#### nacl.box.open(box, nonce, theirPublicKey, mySecretKey)
-
-Authenticates and decrypts the given box with peer's public key, our secret
-key, and the given nonce.
-
-Returns the original message, or `false` if authentication fails.
-
-#### nacl.box.before(theirPublicKey, mySecretKey)
-
-Returns a precomputed shared key which can be used in `nacl.box.after` and
-`nacl.box.open.after`.
-
-#### nacl.box.after(message, nonce, sharedKey)
-
-Same as `nacl.box`, but uses a shared key precomputed with `nacl.box.before`.
-
-#### nacl.box.open.after(box, nonce, sharedKey)
-
-Same as `nacl.box.open`, but uses a shared key precomputed with `nacl.box.before`.
-
-#### nacl.box.publicKeyLength = 32
-
-Length of public key in bytes.
-
-#### nacl.box.secretKeyLength = 32
-
-Length of secret key in bytes.
-
-#### nacl.box.sharedKeyLength = 32
-
-Length of precomputed shared key in bytes.
-
-#### nacl.box.nonceLength = 24
-
-Length of nonce in bytes.
-
-#### nacl.box.overheadLength = 16
-
-Length of overhead added to box compared to original message.
-
-
-### Secret-key authenticated encryption (secretbox)
-
-Implements *xsalsa20-poly1305*.
-
-#### nacl.secretbox(message, nonce, key)
-
-Encrypt and authenticates message using the key and the nonce. The nonce must
-be unique for each distinct message for this key.
-
-Returns an encrypted and authenticated message, which is
-`nacl.secretbox.overheadLength` longer than the original message.
-
-#### nacl.secretbox.open(box, nonce, key)
-
-Authenticates and decrypts the given secret box using the key and the nonce.
-
-Returns the original message, or `false` if authentication fails.
-
-#### nacl.secretbox.keyLength = 32
-
-Length of key in bytes.
-
-#### nacl.secretbox.nonceLength = 24
-
-Length of nonce in bytes.
-
-#### nacl.secretbox.overheadLength = 16
-
-Length of overhead added to secret box compared to original message.
-
-
-### Scalar multiplication
-
-Implements *curve25519*.
-
-#### nacl.scalarMult(n, p)
-
-Multiplies an integer `n` by a group element `p` and returns the resulting
-group element.
-
-#### nacl.scalarMult.base(n)
-
-Multiplies an integer `n` by a standard group element and returns the resulting
-group element.
-
-#### nacl.scalarMult.scalarLength = 32
-
-Length of scalar in bytes.
-
-#### nacl.scalarMult.groupElementLength = 32
-
-Length of group element in bytes.
-
-
-### Signatures
-
-Implements [ed25519](http://ed25519.cr.yp.to).
-
-#### nacl.sign.keyPair()
-
-Generates new random key pair for signing and returns it as an object with
-`publicKey` and `secretKey` members:
-
- {
- publicKey: ..., // Uint8Array with 32-byte public key
- secretKey: ... // Uint8Array with 64-byte secret key
- }
-
-#### nacl.sign.keyPair.fromSecretKey(secretKey)
-
-Returns a signing key pair with public key corresponding to the given
-64-byte secret key. The secret key must have been generated by
-`nacl.sign.keyPair` or `nacl.sign.keyPair.fromSeed`.
-
-#### nacl.sign.keyPair.fromSeed(seed)
-
-Returns a new signing key pair generated deterministically from a 32-byte seed.
-The seed must contain enough entropy to be secure. This method is not
-recommended for general use: instead, use `nacl.sign.keyPair` to generate a new
-key pair from a random seed.
-
-#### nacl.sign(message, secretKey)
-
-Signs the message using the secret key and returns a signed message.
-
-#### nacl.sign.open(signedMessage, publicKey)
-
-Verifies the signed message and returns the message without signature.
-
-Returns `null` if verification failed.
-
-#### nacl.sign.detached(message, secretKey)
-
-Signs the message using the secret key and returns a signature.
-
-#### nacl.sign.detached.verify(message, signature, publicKey)
-
-Verifies the signature for the message and returns `true` if verification
-succeeded or `false` if it failed.
-
-#### nacl.sign.publicKeyLength = 32
-
-Length of signing public key in bytes.
-
-#### nacl.sign.secretKeyLength = 64
-
-Length of signing secret key in bytes.
-
-#### nacl.sign.seedLength = 32
-
-Length of seed for `nacl.sign.keyPair.fromSeed` in bytes.
-
-#### nacl.sign.signatureLength = 64
-
-Length of signature in bytes.
-
-
-### Hashing
-
-Implements *SHA-512*.
-
-#### nacl.hash(message)
-
-Returns SHA-512 hash of the message.
-
-#### nacl.hash.hashLength = 64
-
-Length of hash in bytes.
-
-
-### Random bytes generation
-
-#### nacl.randomBytes(length)
-
-Returns a `Uint8Array` of the given length containing random bytes of
-cryptographic quality.
-
-**Implementation note**
-
-TweetNaCl.js uses the following methods to generate random bytes,
-depending on the platform it runs on:
-
-* `window.crypto.getRandomValues` (WebCrypto standard)
-* `window.msCrypto.getRandomValues` (Internet Explorer 11)
-* `crypto.randomBytes` (Node.js)
-
-If the platform doesn't provide a suitable PRNG, the following functions,
-which require random numbers, will throw exception:
-
-* `nacl.randomBytes`
-* `nacl.box.keyPair`
-* `nacl.sign.keyPair`
-
-Other functions are deterministic and will continue working.
-
-If a platform you are targeting doesn't implement secure random number
-generator, but you somehow have a cryptographically-strong source of entropy
-(not `Math.random`!), and you know what you are doing, you can plug it into
-TweetNaCl.js like this:
-
- nacl.setPRNG(function(x, n) {
- // ... copy n random bytes into x ...
- });
-
-Note that `nacl.setPRNG` *completely replaces* internal random byte generator
-with the one provided.
-
-
-### Constant-time comparison
-
-#### nacl.verify(x, y)
-
-Compares `x` and `y` in constant time and returns `true` if their lengths are
-non-zero and equal, and their contents are equal.
-
-Returns `false` if either of the arguments has zero length, or arguments have
-different lengths, or their contents differ.
-
-
-System requirements
--------------------
-
-TweetNaCl.js supports modern browsers that have a cryptographically secure
-pseudorandom number generator and typed arrays, including the latest versions
-of:
-
-* Chrome
-* Firefox
-* Safari (Mac, iOS)
-* Internet Explorer 11
-
-Other systems:
-
-* Node.js
-
-
-Development and testing
-------------------------
-
-Install NPM modules needed for development:
-
- $ npm install
-
-To build minified versions:
-
- $ npm run build
-
-Tests use minified version, so make sure to rebuild it every time you change
-`nacl.js` or `nacl-fast.js`.
-
-### Testing
-
-To run tests in Node.js:
-
- $ npm run test-node
-
-By default all tests described here work on `nacl.min.js`. To test other
-versions, set environment variable `NACL_SRC` to the file name you want to test.
-For example, the following command will test fast minified version:
-
- $ NACL_SRC=nacl-fast.min.js npm run test-node
-
-To run full suite of tests in Node.js, including comparing outputs of
-JavaScript port to outputs of the original C version:
-
- $ npm run test-node-all
-
-To prepare tests for browsers:
-
- $ npm run build-test-browser
-
-and then open `test/browser/test.html` (or `test/browser/test-fast.html`) to
-run them.
-
-To run headless browser tests with `tape-run` (powered by Electron):
-
- $ npm run test-browser
-
-(If you get `Error: spawn ENOENT`, install *xvfb*: `sudo apt-get install xvfb`.)
-
-To run tests in both Node and Electron:
-
- $ npm test
-
-### Benchmarking
-
-To run benchmarks in Node.js:
-
- $ npm run bench
- $ NACL_SRC=nacl-fast.min.js npm run bench
-
-To run benchmarks in a browser, open `test/benchmark/bench.html` (or
-`test/benchmark/bench-fast.html`).
-
-
-Benchmarks
-----------
-
-For reference, here are benchmarks from MacBook Pro (Retina, 13-inch, Mid 2014)
-laptop with 2.6 GHz Intel Core i5 CPU (Intel) in Chrome 53/OS X and Xiaomi Redmi
-Note 3 smartphone with 1.8 GHz Qualcomm Snapdragon 650 64-bit CPU (ARM) in
-Chrome 52/Android:
-
-| | nacl.js Intel | nacl-fast.js Intel | nacl.js ARM | nacl-fast.js ARM |
-| ------------- |:-------------:|:-------------------:|:-------------:|:-----------------:|
-| salsa20 | 1.3 MB/s | 128 MB/s | 0.4 MB/s | 43 MB/s |
-| poly1305 | 13 MB/s | 171 MB/s | 4 MB/s | 52 MB/s |
-| hash | 4 MB/s | 34 MB/s | 0.9 MB/s | 12 MB/s |
-| secretbox 1K | 1113 op/s | 57583 op/s | 334 op/s | 14227 op/s |
-| box 1K | 145 op/s | 718 op/s | 37 op/s | 368 op/s |
-| scalarMult | 171 op/s | 733 op/s | 56 op/s | 380 op/s |
-| sign | 77 op/s | 200 op/s | 20 op/s | 61 op/s |
-| sign.open | 39 op/s | 102 op/s | 11 op/s | 31 op/s |
-
-(You can run benchmarks on your devices by clicking on the links at the bottom
-of the [home page](https://tweetnacl.js.org)).
-
-In short, with *nacl-fast.js* and 1024-byte messages you can expect to encrypt and
-authenticate more than 57000 messages per second on a typical laptop or more than
-14000 messages per second on a $170 smartphone, sign about 200 and verify 100
-messages per second on a laptop or 60 and 30 messages per second on a smartphone,
-per CPU core (with Web Workers you can do these operations in parallel),
-which is good enough for most applications.
-
-
-Contributors
-------------
-
-See AUTHORS.md file.
-
-
-Third-party libraries based on TweetNaCl.js
--------------------------------------------
-
-* [forward-secrecy](https://github.com/alax/forward-secrecy) — Axolotl ratchet implementation
-* [nacl-stream](https://github.com/dchest/nacl-stream-js) - streaming encryption
-* [tweetnacl-auth-js](https://github.com/dchest/tweetnacl-auth-js) — implementation of [`crypto_auth`](http://nacl.cr.yp.to/auth.html)
-* [chloride](https://github.com/dominictarr/chloride) - unified API for various NaCl modules
-
-
-Who uses it
------------
-
-Some notable users of TweetNaCl.js:
-
-* [miniLock](http://minilock.io/)
-* [Stellar](https://www.stellar.org/)
diff --git a/node_modules/tweetnacl/nacl-fast.js b/node_modules/tweetnacl/nacl-fast.js
deleted file mode 100644
index 5e4562f..0000000
--- a/node_modules/tweetnacl/nacl-fast.js
+++ /dev/null
@@ -1,2388 +0,0 @@
-(function(nacl) {
-'use strict';
-
-// Ported in 2014 by Dmitry Chestnykh and Devi Mandiri.
-// Public domain.
-//
-// Implementation derived from TweetNaCl version 20140427.
-// See for details: http://tweetnacl.cr.yp.to/
-
-var gf = function(init) {
- var i, r = new Float64Array(16);
- if (init) for (i = 0; i < init.length; i++) r[i] = init[i];
- return r;
-};
-
-// Pluggable, initialized in high-level API below.
-var randombytes = function(/* x, n */) { throw new Error('no PRNG'); };
-
-var _0 = new Uint8Array(16);
-var _9 = new Uint8Array(32); _9[0] = 9;
-
-var gf0 = gf(),
- gf1 = gf([1]),
- _121665 = gf([0xdb41, 1]),
- D = gf([0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]),
- D2 = gf([0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]),
- X = gf([0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]),
- Y = gf([0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]),
- I = gf([0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]);
-
-function ts64(x, i, h, l) {
- x[i] = (h >> 24) & 0xff;
- x[i+1] = (h >> 16) & 0xff;
- x[i+2] = (h >> 8) & 0xff;
- x[i+3] = h & 0xff;
- x[i+4] = (l >> 24) & 0xff;
- x[i+5] = (l >> 16) & 0xff;
- x[i+6] = (l >> 8) & 0xff;
- x[i+7] = l & 0xff;
-}
-
-function vn(x, xi, y, yi, n) {
- var i,d = 0;
- for (i = 0; i < n; i++) d |= x[xi+i]^y[yi+i];
- return (1 & ((d - 1) >>> 8)) - 1;
-}
-
-function crypto_verify_16(x, xi, y, yi) {
- return vn(x,xi,y,yi,16);
-}
-
-function crypto_verify_32(x, xi, y, yi) {
- return vn(x,xi,y,yi,32);
-}
-
-function core_salsa20(o, p, k, c) {
- var j0 = c[ 0] & 0xff | (c[ 1] & 0xff)<<8 | (c[ 2] & 0xff)<<16 | (c[ 3] & 0xff)<<24,
- j1 = k[ 0] & 0xff | (k[ 1] & 0xff)<<8 | (k[ 2] & 0xff)<<16 | (k[ 3] & 0xff)<<24,
- j2 = k[ 4] & 0xff | (k[ 5] & 0xff)<<8 | (k[ 6] & 0xff)<<16 | (k[ 7] & 0xff)<<24,
- j3 = k[ 8] & 0xff | (k[ 9] & 0xff)<<8 | (k[10] & 0xff)<<16 | (k[11] & 0xff)<<24,
- j4 = k[12] & 0xff | (k[13] & 0xff)<<8 | (k[14] & 0xff)<<16 | (k[15] & 0xff)<<24,
- j5 = c[ 4] & 0xff | (c[ 5] & 0xff)<<8 | (c[ 6] & 0xff)<<16 | (c[ 7] & 0xff)<<24,
- j6 = p[ 0] & 0xff | (p[ 1] & 0xff)<<8 | (p[ 2] & 0xff)<<16 | (p[ 3] & 0xff)<<24,
- j7 = p[ 4] & 0xff | (p[ 5] & 0xff)<<8 | (p[ 6] & 0xff)<<16 | (p[ 7] & 0xff)<<24,
- j8 = p[ 8] & 0xff | (p[ 9] & 0xff)<<8 | (p[10] & 0xff)<<16 | (p[11] & 0xff)<<24,
- j9 = p[12] & 0xff | (p[13] & 0xff)<<8 | (p[14] & 0xff)<<16 | (p[15] & 0xff)<<24,
- j10 = c[ 8] & 0xff | (c[ 9] & 0xff)<<8 | (c[10] & 0xff)<<16 | (c[11] & 0xff)<<24,
- j11 = k[16] & 0xff | (k[17] & 0xff)<<8 | (k[18] & 0xff)<<16 | (k[19] & 0xff)<<24,
- j12 = k[20] & 0xff | (k[21] & 0xff)<<8 | (k[22] & 0xff)<<16 | (k[23] & 0xff)<<24,
- j13 = k[24] & 0xff | (k[25] & 0xff)<<8 | (k[26] & 0xff)<<16 | (k[27] & 0xff)<<24,
- j14 = k[28] & 0xff | (k[29] & 0xff)<<8 | (k[30] & 0xff)<<16 | (k[31] & 0xff)<<24,
- j15 = c[12] & 0xff | (c[13] & 0xff)<<8 | (c[14] & 0xff)<<16 | (c[15] & 0xff)<<24;
-
- var x0 = j0, x1 = j1, x2 = j2, x3 = j3, x4 = j4, x5 = j5, x6 = j6, x7 = j7,
- x8 = j8, x9 = j9, x10 = j10, x11 = j11, x12 = j12, x13 = j13, x14 = j14,
- x15 = j15, u;
-
- for (var i = 0; i < 20; i += 2) {
- u = x0 + x12 | 0;
- x4 ^= u<<7 | u>>>(32-7);
- u = x4 + x0 | 0;
- x8 ^= u<<9 | u>>>(32-9);
- u = x8 + x4 | 0;
- x12 ^= u<<13 | u>>>(32-13);
- u = x12 + x8 | 0;
- x0 ^= u<<18 | u>>>(32-18);
-
- u = x5 + x1 | 0;
- x9 ^= u<<7 | u>>>(32-7);
- u = x9 + x5 | 0;
- x13 ^= u<<9 | u>>>(32-9);
- u = x13 + x9 | 0;
- x1 ^= u<<13 | u>>>(32-13);
- u = x1 + x13 | 0;
- x5 ^= u<<18 | u>>>(32-18);
-
- u = x10 + x6 | 0;
- x14 ^= u<<7 | u>>>(32-7);
- u = x14 + x10 | 0;
- x2 ^= u<<9 | u>>>(32-9);
- u = x2 + x14 | 0;
- x6 ^= u<<13 | u>>>(32-13);
- u = x6 + x2 | 0;
- x10 ^= u<<18 | u>>>(32-18);
-
- u = x15 + x11 | 0;
- x3 ^= u<<7 | u>>>(32-7);
- u = x3 + x15 | 0;
- x7 ^= u<<9 | u>>>(32-9);
- u = x7 + x3 | 0;
- x11 ^= u<<13 | u>>>(32-13);
- u = x11 + x7 | 0;
- x15 ^= u<<18 | u>>>(32-18);
-
- u = x0 + x3 | 0;
- x1 ^= u<<7 | u>>>(32-7);
- u = x1 + x0 | 0;
- x2 ^= u<<9 | u>>>(32-9);
- u = x2 + x1 | 0;
- x3 ^= u<<13 | u>>>(32-13);
- u = x3 + x2 | 0;
- x0 ^= u<<18 | u>>>(32-18);
-
- u = x5 + x4 | 0;
- x6 ^= u<<7 | u>>>(32-7);
- u = x6 + x5 | 0;
- x7 ^= u<<9 | u>>>(32-9);
- u = x7 + x6 | 0;
- x4 ^= u<<13 | u>>>(32-13);
- u = x4 + x7 | 0;
- x5 ^= u<<18 | u>>>(32-18);
-
- u = x10 + x9 | 0;
- x11 ^= u<<7 | u>>>(32-7);
- u = x11 + x10 | 0;
- x8 ^= u<<9 | u>>>(32-9);
- u = x8 + x11 | 0;
- x9 ^= u<<13 | u>>>(32-13);
- u = x9 + x8 | 0;
- x10 ^= u<<18 | u>>>(32-18);
-
- u = x15 + x14 | 0;
- x12 ^= u<<7 | u>>>(32-7);
- u = x12 + x15 | 0;
- x13 ^= u<<9 | u>>>(32-9);
- u = x13 + x12 | 0;
- x14 ^= u<<13 | u>>>(32-13);
- u = x14 + x13 | 0;
- x15 ^= u<<18 | u>>>(32-18);
- }
- x0 = x0 + j0 | 0;
- x1 = x1 + j1 | 0;
- x2 = x2 + j2 | 0;
- x3 = x3 + j3 | 0;
- x4 = x4 + j4 | 0;
- x5 = x5 + j5 | 0;
- x6 = x6 + j6 | 0;
- x7 = x7 + j7 | 0;
- x8 = x8 + j8 | 0;
- x9 = x9 + j9 | 0;
- x10 = x10 + j10 | 0;
- x11 = x11 + j11 | 0;
- x12 = x12 + j12 | 0;
- x13 = x13 + j13 | 0;
- x14 = x14 + j14 | 0;
- x15 = x15 + j15 | 0;
-
- o[ 0] = x0 >>> 0 & 0xff;
- o[ 1] = x0 >>> 8 & 0xff;
- o[ 2] = x0 >>> 16 & 0xff;
- o[ 3] = x0 >>> 24 & 0xff;
-
- o[ 4] = x1 >>> 0 & 0xff;
- o[ 5] = x1 >>> 8 & 0xff;
- o[ 6] = x1 >>> 16 & 0xff;
- o[ 7] = x1 >>> 24 & 0xff;
-
- o[ 8] = x2 >>> 0 & 0xff;
- o[ 9] = x2 >>> 8 & 0xff;
- o[10] = x2 >>> 16 & 0xff;
- o[11] = x2 >>> 24 & 0xff;
-
- o[12] = x3 >>> 0 & 0xff;
- o[13] = x3 >>> 8 & 0xff;
- o[14] = x3 >>> 16 & 0xff;
- o[15] = x3 >>> 24 & 0xff;
-
- o[16] = x4 >>> 0 & 0xff;
- o[17] = x4 >>> 8 & 0xff;
- o[18] = x4 >>> 16 & 0xff;
- o[19] = x4 >>> 24 & 0xff;
-
- o[20] = x5 >>> 0 & 0xff;
- o[21] = x5 >>> 8 & 0xff;
- o[22] = x5 >>> 16 & 0xff;
- o[23] = x5 >>> 24 & 0xff;
-
- o[24] = x6 >>> 0 & 0xff;
- o[25] = x6 >>> 8 & 0xff;
- o[26] = x6 >>> 16 & 0xff;
- o[27] = x6 >>> 24 & 0xff;
-
- o[28] = x7 >>> 0 & 0xff;
- o[29] = x7 >>> 8 & 0xff;
- o[30] = x7 >>> 16 & 0xff;
- o[31] = x7 >>> 24 & 0xff;
-
- o[32] = x8 >>> 0 & 0xff;
- o[33] = x8 >>> 8 & 0xff;
- o[34] = x8 >>> 16 & 0xff;
- o[35] = x8 >>> 24 & 0xff;
-
- o[36] = x9 >>> 0 & 0xff;
- o[37] = x9 >>> 8 & 0xff;
- o[38] = x9 >>> 16 & 0xff;
- o[39] = x9 >>> 24 & 0xff;
-
- o[40] = x10 >>> 0 & 0xff;
- o[41] = x10 >>> 8 & 0xff;
- o[42] = x10 >>> 16 & 0xff;
- o[43] = x10 >>> 24 & 0xff;
-
- o[44] = x11 >>> 0 & 0xff;
- o[45] = x11 >>> 8 & 0xff;
- o[46] = x11 >>> 16 & 0xff;
- o[47] = x11 >>> 24 & 0xff;
-
- o[48] = x12 >>> 0 & 0xff;
- o[49] = x12 >>> 8 & 0xff;
- o[50] = x12 >>> 16 & 0xff;
- o[51] = x12 >>> 24 & 0xff;
-
- o[52] = x13 >>> 0 & 0xff;
- o[53] = x13 >>> 8 & 0xff;
- o[54] = x13 >>> 16 & 0xff;
- o[55] = x13 >>> 24 & 0xff;
-
- o[56] = x14 >>> 0 & 0xff;
- o[57] = x14 >>> 8 & 0xff;
- o[58] = x14 >>> 16 & 0xff;
- o[59] = x14 >>> 24 & 0xff;
-
- o[60] = x15 >>> 0 & 0xff;
- o[61] = x15 >>> 8 & 0xff;
- o[62] = x15 >>> 16 & 0xff;
- o[63] = x15 >>> 24 & 0xff;
-}
-
-function core_hsalsa20(o,p,k,c) {
- var j0 = c[ 0] & 0xff | (c[ 1] & 0xff)<<8 | (c[ 2] & 0xff)<<16 | (c[ 3] & 0xff)<<24,
- j1 = k[ 0] & 0xff | (k[ 1] & 0xff)<<8 | (k[ 2] & 0xff)<<16 | (k[ 3] & 0xff)<<24,
- j2 = k[ 4] & 0xff | (k[ 5] & 0xff)<<8 | (k[ 6] & 0xff)<<16 | (k[ 7] & 0xff)<<24,
- j3 = k[ 8] & 0xff | (k[ 9] & 0xff)<<8 | (k[10] & 0xff)<<16 | (k[11] & 0xff)<<24,
- j4 = k[12] & 0xff | (k[13] & 0xff)<<8 | (k[14] & 0xff)<<16 | (k[15] & 0xff)<<24,
- j5 = c[ 4] & 0xff | (c[ 5] & 0xff)<<8 | (c[ 6] & 0xff)<<16 | (c[ 7] & 0xff)<<24,
- j6 = p[ 0] & 0xff | (p[ 1] & 0xff)<<8 | (p[ 2] & 0xff)<<16 | (p[ 3] & 0xff)<<24,
- j7 = p[ 4] & 0xff | (p[ 5] & 0xff)<<8 | (p[ 6] & 0xff)<<16 | (p[ 7] & 0xff)<<24,
- j8 = p[ 8] & 0xff | (p[ 9] & 0xff)<<8 | (p[10] & 0xff)<<16 | (p[11] & 0xff)<<24,
- j9 = p[12] & 0xff | (p[13] & 0xff)<<8 | (p[14] & 0xff)<<16 | (p[15] & 0xff)<<24,
- j10 = c[ 8] & 0xff | (c[ 9] & 0xff)<<8 | (c[10] & 0xff)<<16 | (c[11] & 0xff)<<24,
- j11 = k[16] & 0xff | (k[17] & 0xff)<<8 | (k[18] & 0xff)<<16 | (k[19] & 0xff)<<24,
- j12 = k[20] & 0xff | (k[21] & 0xff)<<8 | (k[22] & 0xff)<<16 | (k[23] & 0xff)<<24,
- j13 = k[24] & 0xff | (k[25] & 0xff)<<8 | (k[26] & 0xff)<<16 | (k[27] & 0xff)<<24,
- j14 = k[28] & 0xff | (k[29] & 0xff)<<8 | (k[30] & 0xff)<<16 | (k[31] & 0xff)<<24,
- j15 = c[12] & 0xff | (c[13] & 0xff)<<8 | (c[14] & 0xff)<<16 | (c[15] & 0xff)<<24;
-
- var x0 = j0, x1 = j1, x2 = j2, x3 = j3, x4 = j4, x5 = j5, x6 = j6, x7 = j7,
- x8 = j8, x9 = j9, x10 = j10, x11 = j11, x12 = j12, x13 = j13, x14 = j14,
- x15 = j15, u;
-
- for (var i = 0; i < 20; i += 2) {
- u = x0 + x12 | 0;
- x4 ^= u<<7 | u>>>(32-7);
- u = x4 + x0 | 0;
- x8 ^= u<<9 | u>>>(32-9);
- u = x8 + x4 | 0;
- x12 ^= u<<13 | u>>>(32-13);
- u = x12 + x8 | 0;
- x0 ^= u<<18 | u>>>(32-18);
-
- u = x5 + x1 | 0;
- x9 ^= u<<7 | u>>>(32-7);
- u = x9 + x5 | 0;
- x13 ^= u<<9 | u>>>(32-9);
- u = x13 + x9 | 0;
- x1 ^= u<<13 | u>>>(32-13);
- u = x1 + x13 | 0;
- x5 ^= u<<18 | u>>>(32-18);
-
- u = x10 + x6 | 0;
- x14 ^= u<<7 | u>>>(32-7);
- u = x14 + x10 | 0;
- x2 ^= u<<9 | u>>>(32-9);
- u = x2 + x14 | 0;
- x6 ^= u<<13 | u>>>(32-13);
- u = x6 + x2 | 0;
- x10 ^= u<<18 | u>>>(32-18);
-
- u = x15 + x11 | 0;
- x3 ^= u<<7 | u>>>(32-7);
- u = x3 + x15 | 0;
- x7 ^= u<<9 | u>>>(32-9);
- u = x7 + x3 | 0;
- x11 ^= u<<13 | u>>>(32-13);
- u = x11 + x7 | 0;
- x15 ^= u<<18 | u>>>(32-18);
-
- u = x0 + x3 | 0;
- x1 ^= u<<7 | u>>>(32-7);
- u = x1 + x0 | 0;
- x2 ^= u<<9 | u>>>(32-9);
- u = x2 + x1 | 0;
- x3 ^= u<<13 | u>>>(32-13);
- u = x3 + x2 | 0;
- x0 ^= u<<18 | u>>>(32-18);
-
- u = x5 + x4 | 0;
- x6 ^= u<<7 | u>>>(32-7);
- u = x6 + x5 | 0;
- x7 ^= u<<9 | u>>>(32-9);
- u = x7 + x6 | 0;
- x4 ^= u<<13 | u>>>(32-13);
- u = x4 + x7 | 0;
- x5 ^= u<<18 | u>>>(32-18);
-
- u = x10 + x9 | 0;
- x11 ^= u<<7 | u>>>(32-7);
- u = x11 + x10 | 0;
- x8 ^= u<<9 | u>>>(32-9);
- u = x8 + x11 | 0;
- x9 ^= u<<13 | u>>>(32-13);
- u = x9 + x8 | 0;
- x10 ^= u<<18 | u>>>(32-18);
-
- u = x15 + x14 | 0;
- x12 ^= u<<7 | u>>>(32-7);
- u = x12 + x15 | 0;
- x13 ^= u<<9 | u>>>(32-9);
- u = x13 + x12 | 0;
- x14 ^= u<<13 | u>>>(32-13);
- u = x14 + x13 | 0;
- x15 ^= u<<18 | u>>>(32-18);
- }
-
- o[ 0] = x0 >>> 0 & 0xff;
- o[ 1] = x0 >>> 8 & 0xff;
- o[ 2] = x0 >>> 16 & 0xff;
- o[ 3] = x0 >>> 24 & 0xff;
-
- o[ 4] = x5 >>> 0 & 0xff;
- o[ 5] = x5 >>> 8 & 0xff;
- o[ 6] = x5 >>> 16 & 0xff;
- o[ 7] = x5 >>> 24 & 0xff;
-
- o[ 8] = x10 >>> 0 & 0xff;
- o[ 9] = x10 >>> 8 & 0xff;
- o[10] = x10 >>> 16 & 0xff;
- o[11] = x10 >>> 24 & 0xff;
-
- o[12] = x15 >>> 0 & 0xff;
- o[13] = x15 >>> 8 & 0xff;
- o[14] = x15 >>> 16 & 0xff;
- o[15] = x15 >>> 24 & 0xff;
-
- o[16] = x6 >>> 0 & 0xff;
- o[17] = x6 >>> 8 & 0xff;
- o[18] = x6 >>> 16 & 0xff;
- o[19] = x6 >>> 24 & 0xff;
-
- o[20] = x7 >>> 0 & 0xff;
- o[21] = x7 >>> 8 & 0xff;
- o[22] = x7 >>> 16 & 0xff;
- o[23] = x7 >>> 24 & 0xff;
-
- o[24] = x8 >>> 0 & 0xff;
- o[25] = x8 >>> 8 & 0xff;
- o[26] = x8 >>> 16 & 0xff;
- o[27] = x8 >>> 24 & 0xff;
-
- o[28] = x9 >>> 0 & 0xff;
- o[29] = x9 >>> 8 & 0xff;
- o[30] = x9 >>> 16 & 0xff;
- o[31] = x9 >>> 24 & 0xff;
-}
-
-function crypto_core_salsa20(out,inp,k,c) {
- core_salsa20(out,inp,k,c);
-}
-
-function crypto_core_hsalsa20(out,inp,k,c) {
- core_hsalsa20(out,inp,k,c);
-}
-
-var sigma = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
- // "expand 32-byte k"
-
-function crypto_stream_salsa20_xor(c,cpos,m,mpos,b,n,k) {
- var z = new Uint8Array(16), x = new Uint8Array(64);
- var u, i;
- for (i = 0; i < 16; i++) z[i] = 0;
- for (i = 0; i < 8; i++) z[i] = n[i];
- while (b >= 64) {
- crypto_core_salsa20(x,z,k,sigma);
- for (i = 0; i < 64; i++) c[cpos+i] = m[mpos+i] ^ x[i];
- u = 1;
- for (i = 8; i < 16; i++) {
- u = u + (z[i] & 0xff) | 0;
- z[i] = u & 0xff;
- u >>>= 8;
- }
- b -= 64;
- cpos += 64;
- mpos += 64;
- }
- if (b > 0) {
- crypto_core_salsa20(x,z,k,sigma);
- for (i = 0; i < b; i++) c[cpos+i] = m[mpos+i] ^ x[i];
- }
- return 0;
-}
-
-function crypto_stream_salsa20(c,cpos,b,n,k) {
- var z = new Uint8Array(16), x = new Uint8Array(64);
- var u, i;
- for (i = 0; i < 16; i++) z[i] = 0;
- for (i = 0; i < 8; i++) z[i] = n[i];
- while (b >= 64) {
- crypto_core_salsa20(x,z,k,sigma);
- for (i = 0; i < 64; i++) c[cpos+i] = x[i];
- u = 1;
- for (i = 8; i < 16; i++) {
- u = u + (z[i] & 0xff) | 0;
- z[i] = u & 0xff;
- u >>>= 8;
- }
- b -= 64;
- cpos += 64;
- }
- if (b > 0) {
- crypto_core_salsa20(x,z,k,sigma);
- for (i = 0; i < b; i++) c[cpos+i] = x[i];
- }
- return 0;
-}
-
-function crypto_stream(c,cpos,d,n,k) {
- var s = new Uint8Array(32);
- crypto_core_hsalsa20(s,n,k,sigma);
- var sn = new Uint8Array(8);
- for (var i = 0; i < 8; i++) sn[i] = n[i+16];
- return crypto_stream_salsa20(c,cpos,d,sn,s);
-}
-
-function crypto_stream_xor(c,cpos,m,mpos,d,n,k) {
- var s = new Uint8Array(32);
- crypto_core_hsalsa20(s,n,k,sigma);
- var sn = new Uint8Array(8);
- for (var i = 0; i < 8; i++) sn[i] = n[i+16];
- return crypto_stream_salsa20_xor(c,cpos,m,mpos,d,sn,s);
-}
-
-/*
-* Port of Andrew Moon's Poly1305-donna-16. Public domain.
-* https://github.com/floodyberry/poly1305-donna
-*/
-
-var poly1305 = function(key) {
- this.buffer = new Uint8Array(16);
- this.r = new Uint16Array(10);
- this.h = new Uint16Array(10);
- this.pad = new Uint16Array(8);
- this.leftover = 0;
- this.fin = 0;
-
- var t0, t1, t2, t3, t4, t5, t6, t7;
-
- t0 = key[ 0] & 0xff | (key[ 1] & 0xff) << 8; this.r[0] = ( t0 ) & 0x1fff;
- t1 = key[ 2] & 0xff | (key[ 3] & 0xff) << 8; this.r[1] = ((t0 >>> 13) | (t1 << 3)) & 0x1fff;
- t2 = key[ 4] & 0xff | (key[ 5] & 0xff) << 8; this.r[2] = ((t1 >>> 10) | (t2 << 6)) & 0x1f03;
- t3 = key[ 6] & 0xff | (key[ 7] & 0xff) << 8; this.r[3] = ((t2 >>> 7) | (t3 << 9)) & 0x1fff;
- t4 = key[ 8] & 0xff | (key[ 9] & 0xff) << 8; this.r[4] = ((t3 >>> 4) | (t4 << 12)) & 0x00ff;
- this.r[5] = ((t4 >>> 1)) & 0x1ffe;
- t5 = key[10] & 0xff | (key[11] & 0xff) << 8; this.r[6] = ((t4 >>> 14) | (t5 << 2)) & 0x1fff;
- t6 = key[12] & 0xff | (key[13] & 0xff) << 8; this.r[7] = ((t5 >>> 11) | (t6 << 5)) & 0x1f81;
- t7 = key[14] & 0xff | (key[15] & 0xff) << 8; this.r[8] = ((t6 >>> 8) | (t7 << 8)) & 0x1fff;
- this.r[9] = ((t7 >>> 5)) & 0x007f;
-
- this.pad[0] = key[16] & 0xff | (key[17] & 0xff) << 8;
- this.pad[1] = key[18] & 0xff | (key[19] & 0xff) << 8;
- this.pad[2] = key[20] & 0xff | (key[21] & 0xff) << 8;
- this.pad[3] = key[22] & 0xff | (key[23] & 0xff) << 8;
- this.pad[4] = key[24] & 0xff | (key[25] & 0xff) << 8;
- this.pad[5] = key[26] & 0xff | (key[27] & 0xff) << 8;
- this.pad[6] = key[28] & 0xff | (key[29] & 0xff) << 8;
- this.pad[7] = key[30] & 0xff | (key[31] & 0xff) << 8;
-};
-
-poly1305.prototype.blocks = function(m, mpos, bytes) {
- var hibit = this.fin ? 0 : (1 << 11);
- var t0, t1, t2, t3, t4, t5, t6, t7, c;
- var d0, d1, d2, d3, d4, d5, d6, d7, d8, d9;
-
- var h0 = this.h[0],
- h1 = this.h[1],
- h2 = this.h[2],
- h3 = this.h[3],
- h4 = this.h[4],
- h5 = this.h[5],
- h6 = this.h[6],
- h7 = this.h[7],
- h8 = this.h[8],
- h9 = this.h[9];
-
- var r0 = this.r[0],
- r1 = this.r[1],
- r2 = this.r[2],
- r3 = this.r[3],
- r4 = this.r[4],
- r5 = this.r[5],
- r6 = this.r[6],
- r7 = this.r[7],
- r8 = this.r[8],
- r9 = this.r[9];
-
- while (bytes >= 16) {
- t0 = m[mpos+ 0] & 0xff | (m[mpos+ 1] & 0xff) << 8; h0 += ( t0 ) & 0x1fff;
- t1 = m[mpos+ 2] & 0xff | (m[mpos+ 3] & 0xff) << 8; h1 += ((t0 >>> 13) | (t1 << 3)) & 0x1fff;
- t2 = m[mpos+ 4] & 0xff | (m[mpos+ 5] & 0xff) << 8; h2 += ((t1 >>> 10) | (t2 << 6)) & 0x1fff;
- t3 = m[mpos+ 6] & 0xff | (m[mpos+ 7] & 0xff) << 8; h3 += ((t2 >>> 7) | (t3 << 9)) & 0x1fff;
- t4 = m[mpos+ 8] & 0xff | (m[mpos+ 9] & 0xff) << 8; h4 += ((t3 >>> 4) | (t4 << 12)) & 0x1fff;
- h5 += ((t4 >>> 1)) & 0x1fff;
- t5 = m[mpos+10] & 0xff | (m[mpos+11] & 0xff) << 8; h6 += ((t4 >>> 14) | (t5 << 2)) & 0x1fff;
- t6 = m[mpos+12] & 0xff | (m[mpos+13] & 0xff) << 8; h7 += ((t5 >>> 11) | (t6 << 5)) & 0x1fff;
- t7 = m[mpos+14] & 0xff | (m[mpos+15] & 0xff) << 8; h8 += ((t6 >>> 8) | (t7 << 8)) & 0x1fff;
- h9 += ((t7 >>> 5)) | hibit;
-
- c = 0;
-
- d0 = c;
- d0 += h0 * r0;
- d0 += h1 * (5 * r9);
- d0 += h2 * (5 * r8);
- d0 += h3 * (5 * r7);
- d0 += h4 * (5 * r6);
- c = (d0 >>> 13); d0 &= 0x1fff;
- d0 += h5 * (5 * r5);
- d0 += h6 * (5 * r4);
- d0 += h7 * (5 * r3);
- d0 += h8 * (5 * r2);
- d0 += h9 * (5 * r1);
- c += (d0 >>> 13); d0 &= 0x1fff;
-
- d1 = c;
- d1 += h0 * r1;
- d1 += h1 * r0;
- d1 += h2 * (5 * r9);
- d1 += h3 * (5 * r8);
- d1 += h4 * (5 * r7);
- c = (d1 >>> 13); d1 &= 0x1fff;
- d1 += h5 * (5 * r6);
- d1 += h6 * (5 * r5);
- d1 += h7 * (5 * r4);
- d1 += h8 * (5 * r3);
- d1 += h9 * (5 * r2);
- c += (d1 >>> 13); d1 &= 0x1fff;
-
- d2 = c;
- d2 += h0 * r2;
- d2 += h1 * r1;
- d2 += h2 * r0;
- d2 += h3 * (5 * r9);
- d2 += h4 * (5 * r8);
- c = (d2 >>> 13); d2 &= 0x1fff;
- d2 += h5 * (5 * r7);
- d2 += h6 * (5 * r6);
- d2 += h7 * (5 * r5);
- d2 += h8 * (5 * r4);
- d2 += h9 * (5 * r3);
- c += (d2 >>> 13); d2 &= 0x1fff;
-
- d3 = c;
- d3 += h0 * r3;
- d3 += h1 * r2;
- d3 += h2 * r1;
- d3 += h3 * r0;
- d3 += h4 * (5 * r9);
- c = (d3 >>> 13); d3 &= 0x1fff;
- d3 += h5 * (5 * r8);
- d3 += h6 * (5 * r7);
- d3 += h7 * (5 * r6);
- d3 += h8 * (5 * r5);
- d3 += h9 * (5 * r4);
- c += (d3 >>> 13); d3 &= 0x1fff;
-
- d4 = c;
- d4 += h0 * r4;
- d4 += h1 * r3;
- d4 += h2 * r2;
- d4 += h3 * r1;
- d4 += h4 * r0;
- c = (d4 >>> 13); d4 &= 0x1fff;
- d4 += h5 * (5 * r9);
- d4 += h6 * (5 * r8);
- d4 += h7 * (5 * r7);
- d4 += h8 * (5 * r6);
- d4 += h9 * (5 * r5);
- c += (d4 >>> 13); d4 &= 0x1fff;
-
- d5 = c;
- d5 += h0 * r5;
- d5 += h1 * r4;
- d5 += h2 * r3;
- d5 += h3 * r2;
- d5 += h4 * r1;
- c = (d5 >>> 13); d5 &= 0x1fff;
- d5 += h5 * r0;
- d5 += h6 * (5 * r9);
- d5 += h7 * (5 * r8);
- d5 += h8 * (5 * r7);
- d5 += h9 * (5 * r6);
- c += (d5 >>> 13); d5 &= 0x1fff;
-
- d6 = c;
- d6 += h0 * r6;
- d6 += h1 * r5;
- d6 += h2 * r4;
- d6 += h3 * r3;
- d6 += h4 * r2;
- c = (d6 >>> 13); d6 &= 0x1fff;
- d6 += h5 * r1;
- d6 += h6 * r0;
- d6 += h7 * (5 * r9);
- d6 += h8 * (5 * r8);
- d6 += h9 * (5 * r7);
- c += (d6 >>> 13); d6 &= 0x1fff;
-
- d7 = c;
- d7 += h0 * r7;
- d7 += h1 * r6;
- d7 += h2 * r5;
- d7 += h3 * r4;
- d7 += h4 * r3;
- c = (d7 >>> 13); d7 &= 0x1fff;
- d7 += h5 * r2;
- d7 += h6 * r1;
- d7 += h7 * r0;
- d7 += h8 * (5 * r9);
- d7 += h9 * (5 * r8);
- c += (d7 >>> 13); d7 &= 0x1fff;
-
- d8 = c;
- d8 += h0 * r8;
- d8 += h1 * r7;
- d8 += h2 * r6;
- d8 += h3 * r5;
- d8 += h4 * r4;
- c = (d8 >>> 13); d8 &= 0x1fff;
- d8 += h5 * r3;
- d8 += h6 * r2;
- d8 += h7 * r1;
- d8 += h8 * r0;
- d8 += h9 * (5 * r9);
- c += (d8 >>> 13); d8 &= 0x1fff;
-
- d9 = c;
- d9 += h0 * r9;
- d9 += h1 * r8;
- d9 += h2 * r7;
- d9 += h3 * r6;
- d9 += h4 * r5;
- c = (d9 >>> 13); d9 &= 0x1fff;
- d9 += h5 * r4;
- d9 += h6 * r3;
- d9 += h7 * r2;
- d9 += h8 * r1;
- d9 += h9 * r0;
- c += (d9 >>> 13); d9 &= 0x1fff;
-
- c = (((c << 2) + c)) | 0;
- c = (c + d0) | 0;
- d0 = c & 0x1fff;
- c = (c >>> 13);
- d1 += c;
-
- h0 = d0;
- h1 = d1;
- h2 = d2;
- h3 = d3;
- h4 = d4;
- h5 = d5;
- h6 = d6;
- h7 = d7;
- h8 = d8;
- h9 = d9;
-
- mpos += 16;
- bytes -= 16;
- }
- this.h[0] = h0;
- this.h[1] = h1;
- this.h[2] = h2;
- this.h[3] = h3;
- this.h[4] = h4;
- this.h[5] = h5;
- this.h[6] = h6;
- this.h[7] = h7;
- this.h[8] = h8;
- this.h[9] = h9;
-};
-
-poly1305.prototype.finish = function(mac, macpos) {
- var g = new Uint16Array(10);
- var c, mask, f, i;
-
- if (this.leftover) {
- i = this.leftover;
- this.buffer[i++] = 1;
- for (; i < 16; i++) this.buffer[i] = 0;
- this.fin = 1;
- this.blocks(this.buffer, 0, 16);
- }
-
- c = this.h[1] >>> 13;
- this.h[1] &= 0x1fff;
- for (i = 2; i < 10; i++) {
- this.h[i] += c;
- c = this.h[i] >>> 13;
- this.h[i] &= 0x1fff;
- }
- this.h[0] += (c * 5);
- c = this.h[0] >>> 13;
- this.h[0] &= 0x1fff;
- this.h[1] += c;
- c = this.h[1] >>> 13;
- this.h[1] &= 0x1fff;
- this.h[2] += c;
-
- g[0] = this.h[0] + 5;
- c = g[0] >>> 13;
- g[0] &= 0x1fff;
- for (i = 1; i < 10; i++) {
- g[i] = this.h[i] + c;
- c = g[i] >>> 13;
- g[i] &= 0x1fff;
- }
- g[9] -= (1 << 13);
-
- mask = (c ^ 1) - 1;
- for (i = 0; i < 10; i++) g[i] &= mask;
- mask = ~mask;
- for (i = 0; i < 10; i++) this.h[i] = (this.h[i] & mask) | g[i];
-
- this.h[0] = ((this.h[0] ) | (this.h[1] << 13) ) & 0xffff;
- this.h[1] = ((this.h[1] >>> 3) | (this.h[2] << 10) ) & 0xffff;
- this.h[2] = ((this.h[2] >>> 6) | (this.h[3] << 7) ) & 0xffff;
- this.h[3] = ((this.h[3] >>> 9) | (this.h[4] << 4) ) & 0xffff;
- this.h[4] = ((this.h[4] >>> 12) | (this.h[5] << 1) | (this.h[6] << 14)) & 0xffff;
- this.h[5] = ((this.h[6] >>> 2) | (this.h[7] << 11) ) & 0xffff;
- this.h[6] = ((this.h[7] >>> 5) | (this.h[8] << 8) ) & 0xffff;
- this.h[7] = ((this.h[8] >>> 8) | (this.h[9] << 5) ) & 0xffff;
-
- f = this.h[0] + this.pad[0];
- this.h[0] = f & 0xffff;
- for (i = 1; i < 8; i++) {
- f = (((this.h[i] + this.pad[i]) | 0) + (f >>> 16)) | 0;
- this.h[i] = f & 0xffff;
- }
-
- mac[macpos+ 0] = (this.h[0] >>> 0) & 0xff;
- mac[macpos+ 1] = (this.h[0] >>> 8) & 0xff;
- mac[macpos+ 2] = (this.h[1] >>> 0) & 0xff;
- mac[macpos+ 3] = (this.h[1] >>> 8) & 0xff;
- mac[macpos+ 4] = (this.h[2] >>> 0) & 0xff;
- mac[macpos+ 5] = (this.h[2] >>> 8) & 0xff;
- mac[macpos+ 6] = (this.h[3] >>> 0) & 0xff;
- mac[macpos+ 7] = (this.h[3] >>> 8) & 0xff;
- mac[macpos+ 8] = (this.h[4] >>> 0) & 0xff;
- mac[macpos+ 9] = (this.h[4] >>> 8) & 0xff;
- mac[macpos+10] = (this.h[5] >>> 0) & 0xff;
- mac[macpos+11] = (this.h[5] >>> 8) & 0xff;
- mac[macpos+12] = (this.h[6] >>> 0) & 0xff;
- mac[macpos+13] = (this.h[6] >>> 8) & 0xff;
- mac[macpos+14] = (this.h[7] >>> 0) & 0xff;
- mac[macpos+15] = (this.h[7] >>> 8) & 0xff;
-};
-
-poly1305.prototype.update = function(m, mpos, bytes) {
- var i, want;
-
- if (this.leftover) {
- want = (16 - this.leftover);
- if (want > bytes)
- want = bytes;
- for (i = 0; i < want; i++)
- this.buffer[this.leftover + i] = m[mpos+i];
- bytes -= want;
- mpos += want;
- this.leftover += want;
- if (this.leftover < 16)
- return;
- this.blocks(this.buffer, 0, 16);
- this.leftover = 0;
- }
-
- if (bytes >= 16) {
- want = bytes - (bytes % 16);
- this.blocks(m, mpos, want);
- mpos += want;
- bytes -= want;
- }
-
- if (bytes) {
- for (i = 0; i < bytes; i++)
- this.buffer[this.leftover + i] = m[mpos+i];
- this.leftover += bytes;
- }
-};
-
-function crypto_onetimeauth(out, outpos, m, mpos, n, k) {
- var s = new poly1305(k);
- s.update(m, mpos, n);
- s.finish(out, outpos);
- return 0;
-}
-
-function crypto_onetimeauth_verify(h, hpos, m, mpos, n, k) {
- var x = new Uint8Array(16);
- crypto_onetimeauth(x,0,m,mpos,n,k);
- return crypto_verify_16(h,hpos,x,0);
-}
-
-function crypto_secretbox(c,m,d,n,k) {
- var i;
- if (d < 32) return -1;
- crypto_stream_xor(c,0,m,0,d,n,k);
- crypto_onetimeauth(c, 16, c, 32, d - 32, c);
- for (i = 0; i < 16; i++) c[i] = 0;
- return 0;
-}
-
-function crypto_secretbox_open(m,c,d,n,k) {
- var i;
- var x = new Uint8Array(32);
- if (d < 32) return -1;
- crypto_stream(x,0,32,n,k);
- if (crypto_onetimeauth_verify(c, 16,c, 32,d - 32,x) !== 0) return -1;
- crypto_stream_xor(m,0,c,0,d,n,k);
- for (i = 0; i < 32; i++) m[i] = 0;
- return 0;
-}
-
-function set25519(r, a) {
- var i;
- for (i = 0; i < 16; i++) r[i] = a[i]|0;
-}
-
-function car25519(o) {
- var i, v, c = 1;
- for (i = 0; i < 16; i++) {
- v = o[i] + c + 65535;
- c = Math.floor(v / 65536);
- o[i] = v - c * 65536;
- }
- o[0] += c-1 + 37 * (c-1);
-}
-
-function sel25519(p, q, b) {
- var t, c = ~(b-1);
- for (var i = 0; i < 16; i++) {
- t = c & (p[i] ^ q[i]);
- p[i] ^= t;
- q[i] ^= t;
- }
-}
-
-function pack25519(o, n) {
- var i, j, b;
- var m = gf(), t = gf();
- for (i = 0; i < 16; i++) t[i] = n[i];
- car25519(t);
- car25519(t);
- car25519(t);
- for (j = 0; j < 2; j++) {
- m[0] = t[0] - 0xffed;
- for (i = 1; i < 15; i++) {
- m[i] = t[i] - 0xffff - ((m[i-1]>>16) & 1);
- m[i-1] &= 0xffff;
- }
- m[15] = t[15] - 0x7fff - ((m[14]>>16) & 1);
- b = (m[15]>>16) & 1;
- m[14] &= 0xffff;
- sel25519(t, m, 1-b);
- }
- for (i = 0; i < 16; i++) {
- o[2*i] = t[i] & 0xff;
- o[2*i+1] = t[i]>>8;
- }
-}
-
-function neq25519(a, b) {
- var c = new Uint8Array(32), d = new Uint8Array(32);
- pack25519(c, a);
- pack25519(d, b);
- return crypto_verify_32(c, 0, d, 0);
-}
-
-function par25519(a) {
- var d = new Uint8Array(32);
- pack25519(d, a);
- return d[0] & 1;
-}
-
-function unpack25519(o, n) {
- var i;
- for (i = 0; i < 16; i++) o[i] = n[2*i] + (n[2*i+1] << 8);
- o[15] &= 0x7fff;
-}
-
-function A(o, a, b) {
- for (var i = 0; i < 16; i++) o[i] = a[i] + b[i];
-}
-
-function Z(o, a, b) {
- for (var i = 0; i < 16; i++) o[i] = a[i] - b[i];
-}
-
-function M(o, a, b) {
- var v, c,
- t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0,
- t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0,
- t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0,
- t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0,
- b0 = b[0],
- b1 = b[1],
- b2 = b[2],
- b3 = b[3],
- b4 = b[4],
- b5 = b[5],
- b6 = b[6],
- b7 = b[7],
- b8 = b[8],
- b9 = b[9],
- b10 = b[10],
- b11 = b[11],
- b12 = b[12],
- b13 = b[13],
- b14 = b[14],
- b15 = b[15];
-
- v = a[0];
- t0 += v * b0;
- t1 += v * b1;
- t2 += v * b2;
- t3 += v * b3;
- t4 += v * b4;
- t5 += v * b5;
- t6 += v * b6;
- t7 += v * b7;
- t8 += v * b8;
- t9 += v * b9;
- t10 += v * b10;
- t11 += v * b11;
- t12 += v * b12;
- t13 += v * b13;
- t14 += v * b14;
- t15 += v * b15;
- v = a[1];
- t1 += v * b0;
- t2 += v * b1;
- t3 += v * b2;
- t4 += v * b3;
- t5 += v * b4;
- t6 += v * b5;
- t7 += v * b6;
- t8 += v * b7;
- t9 += v * b8;
- t10 += v * b9;
- t11 += v * b10;
- t12 += v * b11;
- t13 += v * b12;
- t14 += v * b13;
- t15 += v * b14;
- t16 += v * b15;
- v = a[2];
- t2 += v * b0;
- t3 += v * b1;
- t4 += v * b2;
- t5 += v * b3;
- t6 += v * b4;
- t7 += v * b5;
- t8 += v * b6;
- t9 += v * b7;
- t10 += v * b8;
- t11 += v * b9;
- t12 += v * b10;
- t13 += v * b11;
- t14 += v * b12;
- t15 += v * b13;
- t16 += v * b14;
- t17 += v * b15;
- v = a[3];
- t3 += v * b0;
- t4 += v * b1;
- t5 += v * b2;
- t6 += v * b3;
- t7 += v * b4;
- t8 += v * b5;
- t9 += v * b6;
- t10 += v * b7;
- t11 += v * b8;
- t12 += v * b9;
- t13 += v * b10;
- t14 += v * b11;
- t15 += v * b12;
- t16 += v * b13;
- t17 += v * b14;
- t18 += v * b15;
- v = a[4];
- t4 += v * b0;
- t5 += v * b1;
- t6 += v * b2;
- t7 += v * b3;
- t8 += v * b4;
- t9 += v * b5;
- t10 += v * b6;
- t11 += v * b7;
- t12 += v * b8;
- t13 += v * b9;
- t14 += v * b10;
- t15 += v * b11;
- t16 += v * b12;
- t17 += v * b13;
- t18 += v * b14;
- t19 += v * b15;
- v = a[5];
- t5 += v * b0;
- t6 += v * b1;
- t7 += v * b2;
- t8 += v * b3;
- t9 += v * b4;
- t10 += v * b5;
- t11 += v * b6;
- t12 += v * b7;
- t13 += v * b8;
- t14 += v * b9;
- t15 += v * b10;
- t16 += v * b11;
- t17 += v * b12;
- t18 += v * b13;
- t19 += v * b14;
- t20 += v * b15;
- v = a[6];
- t6 += v * b0;
- t7 += v * b1;
- t8 += v * b2;
- t9 += v * b3;
- t10 += v * b4;
- t11 += v * b5;
- t12 += v * b6;
- t13 += v * b7;
- t14 += v * b8;
- t15 += v * b9;
- t16 += v * b10;
- t17 += v * b11;
- t18 += v * b12;
- t19 += v * b13;
- t20 += v * b14;
- t21 += v * b15;
- v = a[7];
- t7 += v * b0;
- t8 += v * b1;
- t9 += v * b2;
- t10 += v * b3;
- t11 += v * b4;
- t12 += v * b5;
- t13 += v * b6;
- t14 += v * b7;
- t15 += v * b8;
- t16 += v * b9;
- t17 += v * b10;
- t18 += v * b11;
- t19 += v * b12;
- t20 += v * b13;
- t21 += v * b14;
- t22 += v * b15;
- v = a[8];
- t8 += v * b0;
- t9 += v * b1;
- t10 += v * b2;
- t11 += v * b3;
- t12 += v * b4;
- t13 += v * b5;
- t14 += v * b6;
- t15 += v * b7;
- t16 += v * b8;
- t17 += v * b9;
- t18 += v * b10;
- t19 += v * b11;
- t20 += v * b12;
- t21 += v * b13;
- t22 += v * b14;
- t23 += v * b15;
- v = a[9];
- t9 += v * b0;
- t10 += v * b1;
- t11 += v * b2;
- t12 += v * b3;
- t13 += v * b4;
- t14 += v * b5;
- t15 += v * b6;
- t16 += v * b7;
- t17 += v * b8;
- t18 += v * b9;
- t19 += v * b10;
- t20 += v * b11;
- t21 += v * b12;
- t22 += v * b13;
- t23 += v * b14;
- t24 += v * b15;
- v = a[10];
- t10 += v * b0;
- t11 += v * b1;
- t12 += v * b2;
- t13 += v * b3;
- t14 += v * b4;
- t15 += v * b5;
- t16 += v * b6;
- t17 += v * b7;
- t18 += v * b8;
- t19 += v * b9;
- t20 += v * b10;
- t21 += v * b11;
- t22 += v * b12;
- t23 += v * b13;
- t24 += v * b14;
- t25 += v * b15;
- v = a[11];
- t11 += v * b0;
- t12 += v * b1;
- t13 += v * b2;
- t14 += v * b3;
- t15 += v * b4;
- t16 += v * b5;
- t17 += v * b6;
- t18 += v * b7;
- t19 += v * b8;
- t20 += v * b9;
- t21 += v * b10;
- t22 += v * b11;
- t23 += v * b12;
- t24 += v * b13;
- t25 += v * b14;
- t26 += v * b15;
- v = a[12];
- t12 += v * b0;
- t13 += v * b1;
- t14 += v * b2;
- t15 += v * b3;
- t16 += v * b4;
- t17 += v * b5;
- t18 += v * b6;
- t19 += v * b7;
- t20 += v * b8;
- t21 += v * b9;
- t22 += v * b10;
- t23 += v * b11;
- t24 += v * b12;
- t25 += v * b13;
- t26 += v * b14;
- t27 += v * b15;
- v = a[13];
- t13 += v * b0;
- t14 += v * b1;
- t15 += v * b2;
- t16 += v * b3;
- t17 += v * b4;
- t18 += v * b5;
- t19 += v * b6;
- t20 += v * b7;
- t21 += v * b8;
- t22 += v * b9;
- t23 += v * b10;
- t24 += v * b11;
- t25 += v * b12;
- t26 += v * b13;
- t27 += v * b14;
- t28 += v * b15;
- v = a[14];
- t14 += v * b0;
- t15 += v * b1;
- t16 += v * b2;
- t17 += v * b3;
- t18 += v * b4;
- t19 += v * b5;
- t20 += v * b6;
- t21 += v * b7;
- t22 += v * b8;
- t23 += v * b9;
- t24 += v * b10;
- t25 += v * b11;
- t26 += v * b12;
- t27 += v * b13;
- t28 += v * b14;
- t29 += v * b15;
- v = a[15];
- t15 += v * b0;
- t16 += v * b1;
- t17 += v * b2;
- t18 += v * b3;
- t19 += v * b4;
- t20 += v * b5;
- t21 += v * b6;
- t22 += v * b7;
- t23 += v * b8;
- t24 += v * b9;
- t25 += v * b10;
- t26 += v * b11;
- t27 += v * b12;
- t28 += v * b13;
- t29 += v * b14;
- t30 += v * b15;
-
- t0 += 38 * t16;
- t1 += 38 * t17;
- t2 += 38 * t18;
- t3 += 38 * t19;
- t4 += 38 * t20;
- t5 += 38 * t21;
- t6 += 38 * t22;
- t7 += 38 * t23;
- t8 += 38 * t24;
- t9 += 38 * t25;
- t10 += 38 * t26;
- t11 += 38 * t27;
- t12 += 38 * t28;
- t13 += 38 * t29;
- t14 += 38 * t30;
- // t15 left as is
-
- // first car
- c = 1;
- v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;
- v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;
- v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;
- v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;
- v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;
- v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;
- v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;
- v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;
- v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;
- v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;
- v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;
- v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;
- v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;
- v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;
- v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;
- v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;
- t0 += c-1 + 37 * (c-1);
-
- // second car
- c = 1;
- v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536;
- v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536;
- v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536;
- v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536;
- v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536;
- v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536;
- v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536;
- v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536;
- v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536;
- v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536;
- v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536;
- v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536;
- v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536;
- v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536;
- v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536;
- v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536;
- t0 += c-1 + 37 * (c-1);
-
- o[ 0] = t0;
- o[ 1] = t1;
- o[ 2] = t2;
- o[ 3] = t3;
- o[ 4] = t4;
- o[ 5] = t5;
- o[ 6] = t6;
- o[ 7] = t7;
- o[ 8] = t8;
- o[ 9] = t9;
- o[10] = t10;
- o[11] = t11;
- o[12] = t12;
- o[13] = t13;
- o[14] = t14;
- o[15] = t15;
-}
-
-function S(o, a) {
- M(o, a, a);
-}
-
-function inv25519(o, i) {
- var c = gf();
- var a;
- for (a = 0; a < 16; a++) c[a] = i[a];
- for (a = 253; a >= 0; a--) {
- S(c, c);
- if(a !== 2 && a !== 4) M(c, c, i);
- }
- for (a = 0; a < 16; a++) o[a] = c[a];
-}
-
-function pow2523(o, i) {
- var c = gf();
- var a;
- for (a = 0; a < 16; a++) c[a] = i[a];
- for (a = 250; a >= 0; a--) {
- S(c, c);
- if(a !== 1) M(c, c, i);
- }
- for (a = 0; a < 16; a++) o[a] = c[a];
-}
-
-function crypto_scalarmult(q, n, p) {
- var z = new Uint8Array(32);
- var x = new Float64Array(80), r, i;
- var a = gf(), b = gf(), c = gf(),
- d = gf(), e = gf(), f = gf();
- for (i = 0; i < 31; i++) z[i] = n[i];
- z[31]=(n[31]&127)|64;
- z[0]&=248;
- unpack25519(x,p);
- for (i = 0; i < 16; i++) {
- b[i]=x[i];
- d[i]=a[i]=c[i]=0;
- }
- a[0]=d[0]=1;
- for (i=254; i>=0; --i) {
- r=(z[i>>>3]>>>(i&7))&1;
- sel25519(a,b,r);
- sel25519(c,d,r);
- A(e,a,c);
- Z(a,a,c);
- A(c,b,d);
- Z(b,b,d);
- S(d,e);
- S(f,a);
- M(a,c,a);
- M(c,b,e);
- A(e,a,c);
- Z(a,a,c);
- S(b,a);
- Z(c,d,f);
- M(a,c,_121665);
- A(a,a,d);
- M(c,c,a);
- M(a,d,f);
- M(d,b,x);
- S(b,e);
- sel25519(a,b,r);
- sel25519(c,d,r);
- }
- for (i = 0; i < 16; i++) {
- x[i+16]=a[i];
- x[i+32]=c[i];
- x[i+48]=b[i];
- x[i+64]=d[i];
- }
- var x32 = x.subarray(32);
- var x16 = x.subarray(16);
- inv25519(x32,x32);
- M(x16,x16,x32);
- pack25519(q,x16);
- return 0;
-}
-
-function crypto_scalarmult_base(q, n) {
- return crypto_scalarmult(q, n, _9);
-}
-
-function crypto_box_keypair(y, x) {
- randombytes(x, 32);
- return crypto_scalarmult_base(y, x);
-}
-
-function crypto_box_beforenm(k, y, x) {
- var s = new Uint8Array(32);
- crypto_scalarmult(s, x, y);
- return crypto_core_hsalsa20(k, _0, s, sigma);
-}
-
-var crypto_box_afternm = crypto_secretbox;
-var crypto_box_open_afternm = crypto_secretbox_open;
-
-function crypto_box(c, m, d, n, y, x) {
- var k = new Uint8Array(32);
- crypto_box_beforenm(k, y, x);
- return crypto_box_afternm(c, m, d, n, k);
-}
-
-function crypto_box_open(m, c, d, n, y, x) {
- var k = new Uint8Array(32);
- crypto_box_beforenm(k, y, x);
- return crypto_box_open_afternm(m, c, d, n, k);
-}
-
-var K = [
- 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
- 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
- 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
- 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,
- 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,
- 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,
- 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,
- 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,
- 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,
- 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,
- 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,
- 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,
- 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,
- 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,
- 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,
- 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,
- 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,
- 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,
- 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,
- 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,
- 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,
- 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,
- 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,
- 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,
- 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,
- 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,
- 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,
- 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,
- 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,
- 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,
- 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,
- 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,
- 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,
- 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,
- 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,
- 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,
- 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,
- 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,
- 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,
- 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
-];
-
-function crypto_hashblocks_hl(hh, hl, m, n) {
- var wh = new Int32Array(16), wl = new Int32Array(16),
- bh0, bh1, bh2, bh3, bh4, bh5, bh6, bh7,
- bl0, bl1, bl2, bl3, bl4, bl5, bl6, bl7,
- th, tl, i, j, h, l, a, b, c, d;
-
- var ah0 = hh[0],
- ah1 = hh[1],
- ah2 = hh[2],
- ah3 = hh[3],
- ah4 = hh[4],
- ah5 = hh[5],
- ah6 = hh[6],
- ah7 = hh[7],
-
- al0 = hl[0],
- al1 = hl[1],
- al2 = hl[2],
- al3 = hl[3],
- al4 = hl[4],
- al5 = hl[5],
- al6 = hl[6],
- al7 = hl[7];
-
- var pos = 0;
- while (n >= 128) {
- for (i = 0; i < 16; i++) {
- j = 8 * i + pos;
- wh[i] = (m[j+0] << 24) | (m[j+1] << 16) | (m[j+2] << 8) | m[j+3];
- wl[i] = (m[j+4] << 24) | (m[j+5] << 16) | (m[j+6] << 8) | m[j+7];
- }
- for (i = 0; i < 80; i++) {
- bh0 = ah0;
- bh1 = ah1;
- bh2 = ah2;
- bh3 = ah3;
- bh4 = ah4;
- bh5 = ah5;
- bh6 = ah6;
- bh7 = ah7;
-
- bl0 = al0;
- bl1 = al1;
- bl2 = al2;
- bl3 = al3;
- bl4 = al4;
- bl5 = al5;
- bl6 = al6;
- bl7 = al7;
-
- // add
- h = ah7;
- l = al7;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- // Sigma1
- h = ((ah4 >>> 14) | (al4 << (32-14))) ^ ((ah4 >>> 18) | (al4 << (32-18))) ^ ((al4 >>> (41-32)) | (ah4 << (32-(41-32))));
- l = ((al4 >>> 14) | (ah4 << (32-14))) ^ ((al4 >>> 18) | (ah4 << (32-18))) ^ ((ah4 >>> (41-32)) | (al4 << (32-(41-32))));
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- // Ch
- h = (ah4 & ah5) ^ (~ah4 & ah6);
- l = (al4 & al5) ^ (~al4 & al6);
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- // K
- h = K[i*2];
- l = K[i*2+1];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- // w
- h = wh[i%16];
- l = wl[i%16];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- th = c & 0xffff | d << 16;
- tl = a & 0xffff | b << 16;
-
- // add
- h = th;
- l = tl;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- // Sigma0
- h = ((ah0 >>> 28) | (al0 << (32-28))) ^ ((al0 >>> (34-32)) | (ah0 << (32-(34-32)))) ^ ((al0 >>> (39-32)) | (ah0 << (32-(39-32))));
- l = ((al0 >>> 28) | (ah0 << (32-28))) ^ ((ah0 >>> (34-32)) | (al0 << (32-(34-32)))) ^ ((ah0 >>> (39-32)) | (al0 << (32-(39-32))));
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- // Maj
- h = (ah0 & ah1) ^ (ah0 & ah2) ^ (ah1 & ah2);
- l = (al0 & al1) ^ (al0 & al2) ^ (al1 & al2);
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- bh7 = (c & 0xffff) | (d << 16);
- bl7 = (a & 0xffff) | (b << 16);
-
- // add
- h = bh3;
- l = bl3;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = th;
- l = tl;
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- bh3 = (c & 0xffff) | (d << 16);
- bl3 = (a & 0xffff) | (b << 16);
-
- ah1 = bh0;
- ah2 = bh1;
- ah3 = bh2;
- ah4 = bh3;
- ah5 = bh4;
- ah6 = bh5;
- ah7 = bh6;
- ah0 = bh7;
-
- al1 = bl0;
- al2 = bl1;
- al3 = bl2;
- al4 = bl3;
- al5 = bl4;
- al6 = bl5;
- al7 = bl6;
- al0 = bl7;
-
- if (i%16 === 15) {
- for (j = 0; j < 16; j++) {
- // add
- h = wh[j];
- l = wl[j];
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = wh[(j+9)%16];
- l = wl[(j+9)%16];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- // sigma0
- th = wh[(j+1)%16];
- tl = wl[(j+1)%16];
- h = ((th >>> 1) | (tl << (32-1))) ^ ((th >>> 8) | (tl << (32-8))) ^ (th >>> 7);
- l = ((tl >>> 1) | (th << (32-1))) ^ ((tl >>> 8) | (th << (32-8))) ^ ((tl >>> 7) | (th << (32-7)));
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- // sigma1
- th = wh[(j+14)%16];
- tl = wl[(j+14)%16];
- h = ((th >>> 19) | (tl << (32-19))) ^ ((tl >>> (61-32)) | (th << (32-(61-32)))) ^ (th >>> 6);
- l = ((tl >>> 19) | (th << (32-19))) ^ ((th >>> (61-32)) | (tl << (32-(61-32)))) ^ ((tl >>> 6) | (th << (32-6)));
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- wh[j] = (c & 0xffff) | (d << 16);
- wl[j] = (a & 0xffff) | (b << 16);
- }
- }
- }
-
- // add
- h = ah0;
- l = al0;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[0];
- l = hl[0];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[0] = ah0 = (c & 0xffff) | (d << 16);
- hl[0] = al0 = (a & 0xffff) | (b << 16);
-
- h = ah1;
- l = al1;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[1];
- l = hl[1];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[1] = ah1 = (c & 0xffff) | (d << 16);
- hl[1] = al1 = (a & 0xffff) | (b << 16);
-
- h = ah2;
- l = al2;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[2];
- l = hl[2];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[2] = ah2 = (c & 0xffff) | (d << 16);
- hl[2] = al2 = (a & 0xffff) | (b << 16);
-
- h = ah3;
- l = al3;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[3];
- l = hl[3];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[3] = ah3 = (c & 0xffff) | (d << 16);
- hl[3] = al3 = (a & 0xffff) | (b << 16);
-
- h = ah4;
- l = al4;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[4];
- l = hl[4];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[4] = ah4 = (c & 0xffff) | (d << 16);
- hl[4] = al4 = (a & 0xffff) | (b << 16);
-
- h = ah5;
- l = al5;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[5];
- l = hl[5];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[5] = ah5 = (c & 0xffff) | (d << 16);
- hl[5] = al5 = (a & 0xffff) | (b << 16);
-
- h = ah6;
- l = al6;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[6];
- l = hl[6];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[6] = ah6 = (c & 0xffff) | (d << 16);
- hl[6] = al6 = (a & 0xffff) | (b << 16);
-
- h = ah7;
- l = al7;
-
- a = l & 0xffff; b = l >>> 16;
- c = h & 0xffff; d = h >>> 16;
-
- h = hh[7];
- l = hl[7];
-
- a += l & 0xffff; b += l >>> 16;
- c += h & 0xffff; d += h >>> 16;
-
- b += a >>> 16;
- c += b >>> 16;
- d += c >>> 16;
-
- hh[7] = ah7 = (c & 0xffff) | (d << 16);
- hl[7] = al7 = (a & 0xffff) | (b << 16);
-
- pos += 128;
- n -= 128;
- }
-
- return n;
-}
-
-function crypto_hash(out, m, n) {
- var hh = new Int32Array(8),
- hl = new Int32Array(8),
- x = new Uint8Array(256),
- i, b = n;
-
- hh[0] = 0x6a09e667;
- hh[1] = 0xbb67ae85;
- hh[2] = 0x3c6ef372;
- hh[3] = 0xa54ff53a;
- hh[4] = 0x510e527f;
- hh[5] = 0x9b05688c;
- hh[6] = 0x1f83d9ab;
- hh[7] = 0x5be0cd19;
-
- hl[0] = 0xf3bcc908;
- hl[1] = 0x84caa73b;
- hl[2] = 0xfe94f82b;
- hl[3] = 0x5f1d36f1;
- hl[4] = 0xade682d1;
- hl[5] = 0x2b3e6c1f;
- hl[6] = 0xfb41bd6b;
- hl[7] = 0x137e2179;
-
- crypto_hashblocks_hl(hh, hl, m, n);
- n %= 128;
-
- for (i = 0; i < n; i++) x[i] = m[b-n+i];
- x[n] = 128;
-
- n = 256-128*(n<112?1:0);
- x[n-9] = 0;
- ts64(x, n-8, (b / 0x20000000) | 0, b << 3);
- crypto_hashblocks_hl(hh, hl, x, n);
-
- for (i = 0; i < 8; i++) ts64(out, 8*i, hh[i], hl[i]);
-
- return 0;
-}
-
-function add(p, q) {
- var a = gf(), b = gf(), c = gf(),
- d = gf(), e = gf(), f = gf(),
- g = gf(), h = gf(), t = gf();
-
- Z(a, p[1], p[0]);
- Z(t, q[1], q[0]);
- M(a, a, t);
- A(b, p[0], p[1]);
- A(t, q[0], q[1]);
- M(b, b, t);
- M(c, p[3], q[3]);
- M(c, c, D2);
- M(d, p[2], q[2]);
- A(d, d, d);
- Z(e, b, a);
- Z(f, d, c);
- A(g, d, c);
- A(h, b, a);
-
- M(p[0], e, f);
- M(p[1], h, g);
- M(p[2], g, f);
- M(p[3], e, h);
-}
-
-function cswap(p, q, b) {
- var i;
- for (i = 0; i < 4; i++) {
- sel25519(p[i], q[i], b);
- }
-}
-
-function pack(r, p) {
- var tx = gf(), ty = gf(), zi = gf();
- inv25519(zi, p[2]);
- M(tx, p[0], zi);
- M(ty, p[1], zi);
- pack25519(r, ty);
- r[31] ^= par25519(tx) << 7;
-}
-
-function scalarmult(p, q, s) {
- var b, i;
- set25519(p[0], gf0);
- set25519(p[1], gf1);
- set25519(p[2], gf1);
- set25519(p[3], gf0);
- for (i = 255; i >= 0; --i) {
- b = (s[(i/8)|0] >> (i&7)) & 1;
- cswap(p, q, b);
- add(q, p);
- add(p, p);
- cswap(p, q, b);
- }
-}
-
-function scalarbase(p, s) {
- var q = [gf(), gf(), gf(), gf()];
- set25519(q[0], X);
- set25519(q[1], Y);
- set25519(q[2], gf1);
- M(q[3], X, Y);
- scalarmult(p, q, s);
-}
-
-function crypto_sign_keypair(pk, sk, seeded) {
- var d = new Uint8Array(64);
- var p = [gf(), gf(), gf(), gf()];
- var i;
-
- if (!seeded) randombytes(sk, 32);
- crypto_hash(d, sk, 32);
- d[0] &= 248;
- d[31] &= 127;
- d[31] |= 64;
-
- scalarbase(p, d);
- pack(pk, p);
-
- for (i = 0; i < 32; i++) sk[i+32] = pk[i];
- return 0;
-}
-
-var L = new Float64Array([0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]);
-
-function modL(r, x) {
- var carry, i, j, k;
- for (i = 63; i >= 32; --i) {
- carry = 0;
- for (j = i - 32, k = i - 12; j < k; ++j) {
- x[j] += carry - 16 * x[i] * L[j - (i - 32)];
- carry = (x[j] + 128) >> 8;
- x[j] -= carry * 256;
- }
- x[j] += carry;
- x[i] = 0;
- }
- carry = 0;
- for (j = 0; j < 32; j++) {
- x[j] += carry - (x[31] >> 4) * L[j];
- carry = x[j] >> 8;
- x[j] &= 255;
- }
- for (j = 0; j < 32; j++) x[j] -= carry * L[j];
- for (i = 0; i < 32; i++) {
- x[i+1] += x[i] >> 8;
- r[i] = x[i] & 255;
- }
-}
-
-function reduce(r) {
- var x = new Float64Array(64), i;
- for (i = 0; i < 64; i++) x[i] = r[i];
- for (i = 0; i < 64; i++) r[i] = 0;
- modL(r, x);
-}
-
-// Note: difference from C - smlen returned, not passed as argument.
-function crypto_sign(sm, m, n, sk) {
- var d = new Uint8Array(64), h = new Uint8Array(64), r = new Uint8Array(64);
- var i, j, x = new Float64Array(64);
- var p = [gf(), gf(), gf(), gf()];
-
- crypto_hash(d, sk, 32);
- d[0] &= 248;
- d[31] &= 127;
- d[31] |= 64;
-
- var smlen = n + 64;
- for (i = 0; i < n; i++) sm[64 + i] = m[i];
- for (i = 0; i < 32; i++) sm[32 + i] = d[32 + i];
-
- crypto_hash(r, sm.subarray(32), n+32);
- reduce(r);
- scalarbase(p, r);
- pack(sm, p);
-
- for (i = 32; i < 64; i++) sm[i] = sk[i];
- crypto_hash(h, sm, n + 64);
- reduce(h);
-
- for (i = 0; i < 64; i++) x[i] = 0;
- for (i = 0; i < 32; i++) x[i] = r[i];
- for (i = 0; i < 32; i++) {
- for (j = 0; j < 32; j++) {
- x[i+j] += h[i] * d[j];
- }
- }
-
- modL(sm.subarray(32), x);
- return smlen;
-}
-
-function unpackneg(r, p) {
- var t = gf(), chk = gf(), num = gf(),
- den = gf(), den2 = gf(), den4 = gf(),
- den6 = gf();
-
- set25519(r[2], gf1);
- unpack25519(r[1], p);
- S(num, r[1]);
- M(den, num, D);
- Z(num, num, r[2]);
- A(den, r[2], den);
-
- S(den2, den);
- S(den4, den2);
- M(den6, den4, den2);
- M(t, den6, num);
- M(t, t, den);
-
- pow2523(t, t);
- M(t, t, num);
- M(t, t, den);
- M(t, t, den);
- M(r[0], t, den);
-
- S(chk, r[0]);
- M(chk, chk, den);
- if (neq25519(chk, num)) M(r[0], r[0], I);
-
- S(chk, r[0]);
- M(chk, chk, den);
- if (neq25519(chk, num)) return -1;
-
- if (par25519(r[0]) === (p[31]>>7)) Z(r[0], gf0, r[0]);
-
- M(r[3], r[0], r[1]);
- return 0;
-}
-
-function crypto_sign_open(m, sm, n, pk) {
- var i, mlen;
- var t = new Uint8Array(32), h = new Uint8Array(64);
- var p = [gf(), gf(), gf(), gf()],
- q = [gf(), gf(), gf(), gf()];
-
- mlen = -1;
- if (n < 64) return -1;
-
- if (unpackneg(q, pk)) return -1;
-
- for (i = 0; i < n; i++) m[i] = sm[i];
- for (i = 0; i < 32; i++) m[i+32] = pk[i];
- crypto_hash(h, m, n);
- reduce(h);
- scalarmult(p, q, h);
-
- scalarbase(q, sm.subarray(32));
- add(p, q);
- pack(t, p);
-
- n -= 64;
- if (crypto_verify_32(sm, 0, t, 0)) {
- for (i = 0; i < n; i++) m[i] = 0;
- return -1;
- }
-
- for (i = 0; i < n; i++) m[i] = sm[i + 64];
- mlen = n;
- return mlen;
-}
-
-var crypto_secretbox_KEYBYTES = 32,
- crypto_secretbox_NONCEBYTES = 24,
- crypto_secretbox_ZEROBYTES = 32,
- crypto_secretbox_BOXZEROBYTES = 16,
- crypto_scalarmult_BYTES = 32,
- crypto_scalarmult_SCALARBYTES = 32,
- crypto_box_PUBLICKEYBYTES = 32,
- crypto_box_SECRETKEYBYTES = 32,
- crypto_box_BEFORENMBYTES = 32,
- crypto_box_NONCEBYTES = crypto_secretbox_NONCEBYTES,
- crypto_box_ZEROBYTES = crypto_secretbox_ZEROBYTES,
- crypto_box_BOXZEROBYTES = crypto_secretbox_BOXZEROBYTES,
- crypto_sign_BYTES = 64,
- crypto_sign_PUBLICKEYBYTES = 32,
- crypto_sign_SECRETKEYBYTES = 64,
- crypto_sign_SEEDBYTES = 32,
- crypto_hash_BYTES = 64;
-
-nacl.lowlevel = {
- crypto_core_hsalsa20: crypto_core_hsalsa20,
- crypto_stream_xor: crypto_stream_xor,
- crypto_stream: crypto_stream,
- crypto_stream_salsa20_xor: crypto_stream_salsa20_xor,
- crypto_stream_salsa20: crypto_stream_salsa20,
- crypto_onetimeauth: crypto_onetimeauth,
- crypto_onetimeauth_verify: crypto_onetimeauth_verify,
- crypto_verify_16: crypto_verify_16,
- crypto_verify_32: crypto_verify_32,
- crypto_secretbox: crypto_secretbox,
- crypto_secretbox_open: crypto_secretbox_open,
- crypto_scalarmult: crypto_scalarmult,
- crypto_scalarmult_base: crypto_scalarmult_base,
- crypto_box_beforenm: crypto_box_beforenm,
- crypto_box_afternm: crypto_box_afternm,
- crypto_box: crypto_box,
- crypto_box_open: crypto_box_open,
- crypto_box_keypair: crypto_box_keypair,
- crypto_hash: crypto_hash,
- crypto_sign: crypto_sign,
- crypto_sign_keypair: crypto_sign_keypair,
- crypto_sign_open: crypto_sign_open,
-
- crypto_secretbox_KEYBYTES: crypto_secretbox_KEYBYTES,
- crypto_secretbox_NONCEBYTES: crypto_secretbox_NONCEBYTES,
- crypto_secretbox_ZEROBYTES: crypto_secretbox_ZEROBYTES,
- crypto_secretbox_BOXZEROBYTES: crypto_secretbox_BOXZEROBYTES,
- crypto_scalarmult_BYTES: crypto_scalarmult_BYTES,
- crypto_scalarmult_SCALARBYTES: crypto_scalarmult_SCALARBYTES,
- crypto_box_PUBLICKEYBYTES: crypto_box_PUBLICKEYBYTES,
- crypto_box_SECRETKEYBYTES: crypto_box_SECRETKEYBYTES,
- crypto_box_BEFORENMBYTES: crypto_box_BEFORENMBYTES,
- crypto_box_NONCEBYTES: crypto_box_NONCEBYTES,
- crypto_box_ZEROBYTES: crypto_box_ZEROBYTES,
- crypto_box_BOXZEROBYTES: crypto_box_BOXZEROBYTES,
- crypto_sign_BYTES: crypto_sign_BYTES,
- crypto_sign_PUBLICKEYBYTES: crypto_sign_PUBLICKEYBYTES,
- crypto_sign_SECRETKEYBYTES: crypto_sign_SECRETKEYBYTES,
- crypto_sign_SEEDBYTES: crypto_sign_SEEDBYTES,
- crypto_hash_BYTES: crypto_hash_BYTES
-};
-
-/* High-level API */
-
-function checkLengths(k, n) {
- if (k.length !== crypto_secretbox_KEYBYTES) throw new Error('bad key size');
- if (n.length !== crypto_secretbox_NONCEBYTES) throw new Error('bad nonce size');
-}
-
-function checkBoxLengths(pk, sk) {
- if (pk.length !== crypto_box_PUBLICKEYBYTES) throw new Error('bad public key size');
- if (sk.length !== crypto_box_SECRETKEYBYTES) throw new Error('bad secret key size');
-}
-
-function checkArrayTypes() {
- var t, i;
- for (i = 0; i < arguments.length; i++) {
- if ((t = Object.prototype.toString.call(arguments[i])) !== '[object Uint8Array]')
- throw new TypeError('unexpected type ' + t + ', use Uint8Array');
- }
-}
-
-function cleanup(arr) {
- for (var i = 0; i < arr.length; i++) arr[i] = 0;
-}
-
-// TODO: Completely remove this in v0.15.
-if (!nacl.util) {
- nacl.util = {};
- nacl.util.decodeUTF8 = nacl.util.encodeUTF8 = nacl.util.encodeBase64 = nacl.util.decodeBase64 = function() {
- throw new Error('nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js');
- };
-}
-
-nacl.randomBytes = function(n) {
- var b = new Uint8Array(n);
- randombytes(b, n);
- return b;
-};
-
-nacl.secretbox = function(msg, nonce, key) {
- checkArrayTypes(msg, nonce, key);
- checkLengths(key, nonce);
- var m = new Uint8Array(crypto_secretbox_ZEROBYTES + msg.length);
- var c = new Uint8Array(m.length);
- for (var i = 0; i < msg.length; i++) m[i+crypto_secretbox_ZEROBYTES] = msg[i];
- crypto_secretbox(c, m, m.length, nonce, key);
- return c.subarray(crypto_secretbox_BOXZEROBYTES);
-};
-
-nacl.secretbox.open = function(box, nonce, key) {
- checkArrayTypes(box, nonce, key);
- checkLengths(key, nonce);
- var c = new Uint8Array(crypto_secretbox_BOXZEROBYTES + box.length);
- var m = new Uint8Array(c.length);
- for (var i = 0; i < box.length; i++) c[i+crypto_secretbox_BOXZEROBYTES] = box[i];
- if (c.length < 32) return false;
- if (crypto_secretbox_open(m, c, c.length, nonce, key) !== 0) return false;
- return m.subarray(crypto_secretbox_ZEROBYTES);
-};
-
-nacl.secretbox.keyLength = crypto_secretbox_KEYBYTES;
-nacl.secretbox.nonceLength = crypto_secretbox_NONCEBYTES;
-nacl.secretbox.overheadLength = crypto_secretbox_BOXZEROBYTES;
-
-nacl.scalarMult = function(n, p) {
- checkArrayTypes(n, p);
- if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size');
- if (p.length !== crypto_scalarmult_BYTES) throw new Error('bad p size');
- var q = new Uint8Array(crypto_scalarmult_BYTES);
- crypto_scalarmult(q, n, p);
- return q;
-};
-
-nacl.scalarMult.base = function(n) {
- checkArrayTypes(n);
- if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size');
- var q = new Uint8Array(crypto_scalarmult_BYTES);
- crypto_scalarmult_base(q, n);
- return q;
-};
-
-nacl.scalarMult.scalarLength = crypto_scalarmult_SCALARBYTES;
-nacl.scalarMult.groupElementLength = crypto_scalarmult_BYTES;
-
-nacl.box = function(msg, nonce, publicKey, secretKey) {
- var k = nacl.box.before(publicKey, secretKey);
- return nacl.secretbox(msg, nonce, k);
-};
-
-nacl.box.before = function(publicKey, secretKey) {
- checkArrayTypes(publicKey, secretKey);
- checkBoxLengths(publicKey, secretKey);
- var k = new Uint8Array(crypto_box_BEFORENMBYTES);
- crypto_box_beforenm(k, publicKey, secretKey);
- return k;
-};
-
-nacl.box.after = nacl.secretbox;
-
-nacl.box.open = function(msg, nonce, publicKey, secretKey) {
- var k = nacl.box.before(publicKey, secretKey);
- return nacl.secretbox.open(msg, nonce, k);
-};
-
-nacl.box.open.after = nacl.secretbox.open;
-
-nacl.box.keyPair = function() {
- var pk = new Uint8Array(crypto_box_PUBLICKEYBYTES);
- var sk = new Uint8Array(crypto_box_SECRETKEYBYTES);
- crypto_box_keypair(pk, sk);
- return {publicKey: pk, secretKey: sk};
-};
-
-nacl.box.keyPair.fromSecretKey = function(secretKey) {
- checkArrayTypes(secretKey);
- if (secretKey.length !== crypto_box_SECRETKEYBYTES)
- throw new Error('bad secret key size');
- var pk = new Uint8Array(crypto_box_PUBLICKEYBYTES);
- crypto_scalarmult_base(pk, secretKey);
- return {publicKey: pk, secretKey: new Uint8Array(secretKey)};
-};
-
-nacl.box.publicKeyLength = crypto_box_PUBLICKEYBYTES;
-nacl.box.secretKeyLength = crypto_box_SECRETKEYBYTES;
-nacl.box.sharedKeyLength = crypto_box_BEFORENMBYTES;
-nacl.box.nonceLength = crypto_box_NONCEBYTES;
-nacl.box.overheadLength = nacl.secretbox.overheadLength;
-
-nacl.sign = function(msg, secretKey) {
- checkArrayTypes(msg, secretKey);
- if (secretKey.length !== crypto_sign_SECRETKEYBYTES)
- throw new Error('bad secret key size');
- var signedMsg = new Uint8Array(crypto_sign_BYTES+msg.length);
- crypto_sign(signedMsg, msg, msg.length, secretKey);
- return signedMsg;
-};
-
-nacl.sign.open = function(signedMsg, publicKey) {
- if (arguments.length !== 2)
- throw new Error('nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?');
- checkArrayTypes(signedMsg, publicKey);
- if (publicKey.length !== crypto_sign_PUBLICKEYBYTES)
- throw new Error('bad public key size');
- var tmp = new Uint8Array(signedMsg.length);
- var mlen = crypto_sign_open(tmp, signedMsg, signedMsg.length, publicKey);
- if (mlen < 0) return null;
- var m = new Uint8Array(mlen);
- for (var i = 0; i < m.length; i++) m[i] = tmp[i];
- return m;
-};
-
-nacl.sign.detached = function(msg, secretKey) {
- var signedMsg = nacl.sign(msg, secretKey);
- var sig = new Uint8Array(crypto_sign_BYTES);
- for (var i = 0; i < sig.length; i++) sig[i] = signedMsg[i];
- return sig;
-};
-
-nacl.sign.detached.verify = function(msg, sig, publicKey) {
- checkArrayTypes(msg, sig, publicKey);
- if (sig.length !== crypto_sign_BYTES)
- throw new Error('bad signature size');
- if (publicKey.length !== crypto_sign_PUBLICKEYBYTES)
- throw new Error('bad public key size');
- var sm = new Uint8Array(crypto_sign_BYTES + msg.length);
- var m = new Uint8Array(crypto_sign_BYTES + msg.length);
- var i;
- for (i = 0; i < crypto_sign_BYTES; i++) sm[i] = sig[i];
- for (i = 0; i < msg.length; i++) sm[i+crypto_sign_BYTES] = msg[i];
- return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0);
-};
-
-nacl.sign.keyPair = function() {
- var pk = new Uint8Array(crypto_sign_PUBLICKEYBYTES);
- var sk = new Uint8Array(crypto_sign_SECRETKEYBYTES);
- crypto_sign_keypair(pk, sk);
- return {publicKey: pk, secretKey: sk};
-};
-
-nacl.sign.keyPair.fromSecretKey = function(secretKey) {
- checkArrayTypes(secretKey);
- if (secretKey.length !== crypto_sign_SECRETKEYBYTES)
- throw new Error('bad secret key size');
- var pk = new Uint8Array(crypto_sign_PUBLICKEYBYTES);
- for (var i = 0; i < pk.length; i++) pk[i] = secretKey[32+i];
- return {publicKey: pk, secretKey: new Uint8Array(secretKey)};
-};
-
-nacl.sign.keyPair.fromSeed = function(seed) {
- checkArrayTypes(seed);
- if (seed.length !== crypto_sign_SEEDBYTES)
- throw new Error('bad seed size');
- var pk = new Uint8Array(crypto_sign_PUBLICKEYBYTES);
- var sk = new Uint8Array(crypto_sign_SECRETKEYBYTES);
- for (var i = 0; i < 32; i++) sk[i] = seed[i];
- crypto_sign_keypair(pk, sk, true);
- return {publicKey: pk, secretKey: sk};
-};
-
-nacl.sign.publicKeyLength = crypto_sign_PUBLICKEYBYTES;
-nacl.sign.secretKeyLength = crypto_sign_SECRETKEYBYTES;
-nacl.sign.seedLength = crypto_sign_SEEDBYTES;
-nacl.sign.signatureLength = crypto_sign_BYTES;
-
-nacl.hash = function(msg) {
- checkArrayTypes(msg);
- var h = new Uint8Array(crypto_hash_BYTES);
- crypto_hash(h, msg, msg.length);
- return h;
-};
-
-nacl.hash.hashLength = crypto_hash_BYTES;
-
-nacl.verify = function(x, y) {
- checkArrayTypes(x, y);
- // Zero length arguments are considered not equal.
- if (x.length === 0 || y.length === 0) return false;
- if (x.length !== y.length) return false;
- return (vn(x, 0, y, 0, x.length) === 0) ? true : false;
-};
-
-nacl.setPRNG = function(fn) {
- randombytes = fn;
-};
-
-(function() {
- // Initialize PRNG if environment provides CSPRNG.
- // If not, methods calling randombytes will throw.
- var crypto = typeof self !== 'undefined' ? (self.crypto || self.msCrypto) : null;
- if (crypto && crypto.getRandomValues) {
- // Browsers.
- var QUOTA = 65536;
- nacl.setPRNG(function(x, n) {
- var i, v = new Uint8Array(n);
- for (i = 0; i < n; i += QUOTA) {
- crypto.getRandomValues(v.subarray(i, i + Math.min(n - i, QUOTA)));
- }
- for (i = 0; i < n; i++) x[i] = v[i];
- cleanup(v);
- });
- } else if (typeof require !== 'undefined') {
- // Node.js.
- crypto = require('crypto');
- if (crypto && crypto.randomBytes) {
- nacl.setPRNG(function(x, n) {
- var i, v = crypto.randomBytes(n);
- for (i = 0; i < n; i++) x[i] = v[i];
- cleanup(v);
- });
- }
- }
-})();
-
-})(typeof module !== 'undefined' && module.exports ? module.exports : (self.nacl = self.nacl || {}));
diff --git a/node_modules/tweetnacl/nacl-fast.min.js b/node_modules/tweetnacl/nacl-fast.min.js
deleted file mode 100644
index 8bc47da..0000000
--- a/node_modules/tweetnacl/nacl-fast.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-!function(r){"use strict";function t(r,t,n,e){r[t]=n>>24&255,r[t+1]=n>>16&255,r[t+2]=n>>8&255,r[t+3]=255&n,r[t+4]=e>>24&255,r[t+5]=e>>16&255,r[t+6]=e>>8&255,r[t+7]=255&e}function n(r,t,n,e,o){var i,h=0;for(i=0;i<o;i++)h|=r[t+i]^n[e+i];return(1&h-1>>>8)-1}function e(r,t,e,o){return n(r,t,e,o,16)}function o(r,t,e,o){return n(r,t,e,o,32)}function i(r,t,n,e){for(var o,i=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,s=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,y=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,w=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,b=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,g=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,_=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,A=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,d=i,U=h,E=a,x=f,M=s,m=c,B=u,S=y,K=l,T=w,Y=p,k=v,L=b,z=g,R=_,P=A,O=0;O<20;O+=2)o=d+L|0,M^=o<<7|o>>>25,o=M+d|0,K^=o<<9|o>>>23,o=K+M|0,L^=o<<13|o>>>19,o=L+K|0,d^=o<<18|o>>>14,o=m+U|0,T^=o<<7|o>>>25,o=T+m|0,z^=o<<9|o>>>23,o=z+T|0,U^=o<<13|o>>>19,o=U+z|0,m^=o<<18|o>>>14,o=Y+B|0,R^=o<<7|o>>>25,o=R+Y|0,E^=o<<9|o>>>23,o=E+R|0,B^=o<<13|o>>>19,o=B+E|0,Y^=o<<18|o>>>14,o=P+k|0,x^=o<<7|o>>>25,o=x+P|0,S^=o<<9|o>>>23,o=S+x|0,k^=o<<13|o>>>19,o=k+S|0,P^=o<<18|o>>>14,o=d+x|0,U^=o<<7|o>>>25,o=U+d|0,E^=o<<9|o>>>23,o=E+U|0,x^=o<<13|o>>>19,o=x+E|0,d^=o<<18|o>>>14,o=m+M|0,B^=o<<7|o>>>25,o=B+m|0,S^=o<<9|o>>>23,o=S+B|0,M^=o<<13|o>>>19,o=M+S|0,m^=o<<18|o>>>14,o=Y+T|0,k^=o<<7|o>>>25,o=k+Y|0,K^=o<<9|o>>>23,o=K+k|0,T^=o<<13|o>>>19,o=T+K|0,Y^=o<<18|o>>>14,o=P+R|0,L^=o<<7|o>>>25,o=L+P|0,z^=o<<9|o>>>23,o=z+L|0,R^=o<<13|o>>>19,o=R+z|0,P^=o<<18|o>>>14;d=d+i|0,U=U+h|0,E=E+a|0,x=x+f|0,M=M+s|0,m=m+c|0,B=B+u|0,S=S+y|0,K=K+l|0,T=T+w|0,Y=Y+p|0,k=k+v|0,L=L+b|0,z=z+g|0,R=R+_|0,P=P+A|0,r[0]=d>>>0&255,r[1]=d>>>8&255,r[2]=d>>>16&255,r[3]=d>>>24&255,r[4]=U>>>0&255,r[5]=U>>>8&255,r[6]=U>>>16&255,r[7]=U>>>24&255,r[8]=E>>>0&255,r[9]=E>>>8&255,r[10]=E>>>16&255,r[11]=E>>>24&255,r[12]=x>>>0&255,r[13]=x>>>8&255,r[14]=x>>>16&255,r[15]=x>>>24&255,r[16]=M>>>0&255,r[17]=M>>>8&255,r[18]=M>>>16&255,r[19]=M>>>24&255,r[20]=m>>>0&255,r[21]=m>>>8&255,r[22]=m>>>16&255,r[23]=m>>>24&255,r[24]=B>>>0&255,r[25]=B>>>8&255,r[26]=B>>>16&255,r[27]=B>>>24&255,r[28]=S>>>0&255,r[29]=S>>>8&255,r[30]=S>>>16&255,r[31]=S>>>24&255,r[32]=K>>>0&255,r[33]=K>>>8&255,r[34]=K>>>16&255,r[35]=K>>>24&255,r[36]=T>>>0&255,r[37]=T>>>8&255,r[38]=T>>>16&255,r[39]=T>>>24&255,r[40]=Y>>>0&255,r[41]=Y>>>8&255,r[42]=Y>>>16&255,r[43]=Y>>>24&255,r[44]=k>>>0&255,r[45]=k>>>8&255,r[46]=k>>>16&255,r[47]=k>>>24&255,r[48]=L>>>0&255,r[49]=L>>>8&255,r[50]=L>>>16&255,r[51]=L>>>24&255,r[52]=z>>>0&255,r[53]=z>>>8&255,r[54]=z>>>16&255,r[55]=z>>>24&255,r[56]=R>>>0&255,r[57]=R>>>8&255,r[58]=R>>>16&255,r[59]=R>>>24&255,r[60]=P>>>0&255,r[61]=P>>>8&255,r[62]=P>>>16&255,r[63]=P>>>24&255}function h(r,t,n,e){for(var o,i=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,s=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,u=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,y=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,w=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,b=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,g=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,_=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,A=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,d=i,U=h,E=a,x=f,M=s,m=c,B=u,S=y,K=l,T=w,Y=p,k=v,L=b,z=g,R=_,P=A,O=0;O<20;O+=2)o=d+L|0,M^=o<<7|o>>>25,o=M+d|0,K^=o<<9|o>>>23,o=K+M|0,L^=o<<13|o>>>19,o=L+K|0,d^=o<<18|o>>>14,o=m+U|0,T^=o<<7|o>>>25,o=T+m|0,z^=o<<9|o>>>23,o=z+T|0,U^=o<<13|o>>>19,o=U+z|0,m^=o<<18|o>>>14,o=Y+B|0,R^=o<<7|o>>>25,o=R+Y|0,E^=o<<9|o>>>23,o=E+R|0,B^=o<<13|o>>>19,o=B+E|0,Y^=o<<18|o>>>14,o=P+k|0,x^=o<<7|o>>>25,o=x+P|0,S^=o<<9|o>>>23,o=S+x|0,k^=o<<13|o>>>19,o=k+S|0,P^=o<<18|o>>>14,o=d+x|0,U^=o<<7|o>>>25,o=U+d|0,E^=o<<9|o>>>23,o=E+U|0,x^=o<<13|o>>>19,o=x+E|0,d^=o<<18|o>>>14,o=m+M|0,B^=o<<7|o>>>25,o=B+m|0,S^=o<<9|o>>>23,o=S+B|0,M^=o<<13|o>>>19,o=M+S|0,m^=o<<18|o>>>14,o=Y+T|0,k^=o<<7|o>>>25,o=k+Y|0,K^=o<<9|o>>>23,o=K+k|0,T^=o<<13|o>>>19,o=T+K|0,Y^=o<<18|o>>>14,o=P+R|0,L^=o<<7|o>>>25,o=L+P|0,z^=o<<9|o>>>23,o=z+L|0,R^=o<<13|o>>>19,o=R+z|0,P^=o<<18|o>>>14;r[0]=d>>>0&255,r[1]=d>>>8&255,r[2]=d>>>16&255,r[3]=d>>>24&255,r[4]=m>>>0&255,r[5]=m>>>8&255,r[6]=m>>>16&255,r[7]=m>>>24&255,r[8]=Y>>>0&255,r[9]=Y>>>8&255,r[10]=Y>>>16&255,r[11]=Y>>>24&255,r[12]=P>>>0&255,r[13]=P>>>8&255,r[14]=P>>>16&255,r[15]=P>>>24&255,r[16]=B>>>0&255,r[17]=B>>>8&255,r[18]=B>>>16&255,r[19]=B>>>24&255,r[20]=S>>>0&255,r[21]=S>>>8&255,r[22]=S>>>16&255,r[23]=S>>>24&255,r[24]=K>>>0&255,r[25]=K>>>8&255,r[26]=K>>>16&255,r[27]=K>>>24&255,r[28]=T>>>0&255,r[29]=T>>>8&255,r[30]=T>>>16&255,r[31]=T>>>24&255}function a(r,t,n,e){i(r,t,n,e)}function f(r,t,n,e){h(r,t,n,e)}function s(r,t,n,e,o,i,h){var f,s,c=new Uint8Array(16),u=new Uint8Array(64);for(s=0;s<16;s++)c[s]=0;for(s=0;s<8;s++)c[s]=i[s];for(;o>=64;){for(a(u,c,h,ur),s=0;s<64;s++)r[t+s]=n[e+s]^u[s];for(f=1,s=8;s<16;s++)f=f+(255&c[s])|0,c[s]=255&f,f>>>=8;o-=64,t+=64,e+=64}if(o>0)for(a(u,c,h,ur),s=0;s<o;s++)r[t+s]=n[e+s]^u[s];return 0}function c(r,t,n,e,o){var i,h,f=new Uint8Array(16),s=new Uint8Array(64);for(h=0;h<16;h++)f[h]=0;for(h=0;h<8;h++)f[h]=e[h];for(;n>=64;){for(a(s,f,o,ur),h=0;h<64;h++)r[t+h]=s[h];for(i=1,h=8;h<16;h++)i=i+(255&f[h])|0,f[h]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(a(s,f,o,ur),h=0;h<n;h++)r[t+h]=s[h];return 0}function u(r,t,n,e,o){var i=new Uint8Array(32);f(i,e,o,ur);for(var h=new Uint8Array(8),a=0;a<8;a++)h[a]=e[a+16];return c(r,t,n,h,i)}function y(r,t,n,e,o,i,h){var a=new Uint8Array(32);f(a,i,h,ur);for(var c=new Uint8Array(8),u=0;u<8;u++)c[u]=i[u+16];return s(r,t,n,e,o,c,a)}function l(r,t,n,e,o,i){var h=new yr(i);return h.update(n,e,o),h.finish(r,t),0}function w(r,t,n,o,i,h){var a=new Uint8Array(16);return l(a,0,n,o,i,h),e(r,t,a,0)}function p(r,t,n,e,o){var i;if(n<32)return-1;for(y(r,0,t,0,n,e,o),l(r,16,r,32,n-32,r),i=0;i<16;i++)r[i]=0;return 0}function v(r,t,n,e,o){var i,h=new Uint8Array(32);if(n<32)return-1;if(u(h,0,32,e,o),0!==w(t,16,t,32,n-32,h))return-1;for(y(r,0,t,0,n,e,o),i=0;i<32;i++)r[i]=0;return 0}function b(r,t){var n;for(n=0;n<16;n++)r[n]=0|t[n]}function g(r){var t,n,e=1;for(t=0;t<16;t++)n=r[t]+e+65535,e=Math.floor(n/65536),r[t]=n-65536*e;r[0]+=e-1+37*(e-1)}function _(r,t,n){for(var e,o=~(n-1),i=0;i<16;i++)e=o&(r[i]^t[i]),r[i]^=e,t[i]^=e}function A(r,t){var n,e,o,i=$(),h=$();for(n=0;n<16;n++)h[n]=t[n];for(g(h),g(h),g(h),e=0;e<2;e++){for(i[0]=h[0]-65517,n=1;n<15;n++)i[n]=h[n]-65535-(i[n-1]>>16&1),i[n-1]&=65535;i[15]=h[15]-32767-(i[14]>>16&1),o=i[15]>>16&1,i[14]&=65535,_(h,i,1-o)}for(n=0;n<16;n++)r[2*n]=255&h[n],r[2*n+1]=h[n]>>8}function d(r,t){var n=new Uint8Array(32),e=new Uint8Array(32);return A(n,r),A(e,t),o(n,0,e,0)}function U(r){var t=new Uint8Array(32);return A(t,r),1&t[0]}function E(r,t){var n;for(n=0;n<16;n++)r[n]=t[2*n]+(t[2*n+1]<<8);r[15]&=32767}function x(r,t,n){for(var e=0;e<16;e++)r[e]=t[e]+n[e]}function M(r,t,n){for(var e=0;e<16;e++)r[e]=t[e]-n[e]}function m(r,t,n){var e,o,i=0,h=0,a=0,f=0,s=0,c=0,u=0,y=0,l=0,w=0,p=0,v=0,b=0,g=0,_=0,A=0,d=0,U=0,E=0,x=0,M=0,m=0,B=0,S=0,K=0,T=0,Y=0,k=0,L=0,z=0,R=0,P=n[0],O=n[1],N=n[2],C=n[3],F=n[4],I=n[5],G=n[6],Z=n[7],j=n[8],q=n[9],V=n[10],X=n[11],D=n[12],H=n[13],J=n[14],Q=n[15];e=t[0],i+=e*P,h+=e*O,a+=e*N,f+=e*C,s+=e*F,c+=e*I,u+=e*G,y+=e*Z,l+=e*j,w+=e*q,p+=e*V,v+=e*X,b+=e*D,g+=e*H,_+=e*J,A+=e*Q,e=t[1],h+=e*P,a+=e*O,f+=e*N,s+=e*C,c+=e*F,u+=e*I,y+=e*G,l+=e*Z,w+=e*j,p+=e*q,v+=e*V,b+=e*X,g+=e*D,_+=e*H,A+=e*J,d+=e*Q,e=t[2],a+=e*P,f+=e*O,s+=e*N,c+=e*C,u+=e*F,y+=e*I,l+=e*G,w+=e*Z,p+=e*j,v+=e*q,b+=e*V,g+=e*X,_+=e*D,A+=e*H,d+=e*J,U+=e*Q,e=t[3],f+=e*P,s+=e*O,c+=e*N,u+=e*C,y+=e*F,l+=e*I,w+=e*G,p+=e*Z,v+=e*j,b+=e*q,g+=e*V,_+=e*X,A+=e*D,d+=e*H,U+=e*J,E+=e*Q,e=t[4],s+=e*P,c+=e*O,u+=e*N,y+=e*C,l+=e*F,w+=e*I,p+=e*G,v+=e*Z,b+=e*j,g+=e*q,_+=e*V,A+=e*X,d+=e*D,U+=e*H,E+=e*J,x+=e*Q,e=t[5],c+=e*P,u+=e*O,y+=e*N,l+=e*C,w+=e*F,p+=e*I,v+=e*G,b+=e*Z,g+=e*j,_+=e*q,A+=e*V,d+=e*X,U+=e*D,E+=e*H,x+=e*J,M+=e*Q,e=t[6],u+=e*P,y+=e*O,l+=e*N,w+=e*C,p+=e*F,v+=e*I,b+=e*G,g+=e*Z,_+=e*j,A+=e*q,d+=e*V,U+=e*X,E+=e*D,x+=e*H,M+=e*J,m+=e*Q,e=t[7],y+=e*P,l+=e*O,w+=e*N,p+=e*C,v+=e*F,b+=e*I,g+=e*G,_+=e*Z,A+=e*j,d+=e*q,U+=e*V,E+=e*X,x+=e*D,M+=e*H,m+=e*J,B+=e*Q,e=t[8],l+=e*P,w+=e*O,p+=e*N,v+=e*C,b+=e*F,g+=e*I,_+=e*G,A+=e*Z,d+=e*j,U+=e*q,E+=e*V,x+=e*X,M+=e*D,m+=e*H,B+=e*J,S+=e*Q,e=t[9],w+=e*P,p+=e*O,v+=e*N,b+=e*C,g+=e*F,_+=e*I,A+=e*G,d+=e*Z,U+=e*j,E+=e*q,x+=e*V,M+=e*X,m+=e*D,B+=e*H,S+=e*J,K+=e*Q,e=t[10],p+=e*P,v+=e*O,b+=e*N,g+=e*C,_+=e*F,A+=e*I,d+=e*G,U+=e*Z,E+=e*j,x+=e*q,M+=e*V,m+=e*X,B+=e*D,S+=e*H,K+=e*J,T+=e*Q,e=t[11],v+=e*P,b+=e*O,g+=e*N,_+=e*C,A+=e*F,d+=e*I,U+=e*G,E+=e*Z,x+=e*j,M+=e*q,m+=e*V,B+=e*X;S+=e*D;K+=e*H,T+=e*J,Y+=e*Q,e=t[12],b+=e*P,g+=e*O,_+=e*N,A+=e*C,d+=e*F,U+=e*I,E+=e*G,x+=e*Z,M+=e*j,m+=e*q,B+=e*V,S+=e*X,K+=e*D,T+=e*H,Y+=e*J,k+=e*Q,e=t[13],g+=e*P,_+=e*O,A+=e*N,d+=e*C,U+=e*F,E+=e*I,x+=e*G,M+=e*Z,m+=e*j,B+=e*q,S+=e*V,K+=e*X,T+=e*D,Y+=e*H,k+=e*J,L+=e*Q,e=t[14],_+=e*P,A+=e*O,d+=e*N,U+=e*C,E+=e*F,x+=e*I,M+=e*G,m+=e*Z,B+=e*j,S+=e*q,K+=e*V,T+=e*X,Y+=e*D,k+=e*H,L+=e*J,z+=e*Q,e=t[15],A+=e*P,d+=e*O,U+=e*N,E+=e*C,x+=e*F,M+=e*I,m+=e*G,B+=e*Z,S+=e*j,K+=e*q,T+=e*V,Y+=e*X,k+=e*D,L+=e*H,z+=e*J,R+=e*Q,i+=38*d,h+=38*U,a+=38*E,f+=38*x,s+=38*M,c+=38*m,u+=38*B,y+=38*S,l+=38*K,w+=38*T,p+=38*Y,v+=38*k,b+=38*L,g+=38*z,_+=38*R,o=1,e=i+o+65535,o=Math.floor(e/65536),i=e-65536*o,e=h+o+65535,o=Math.floor(e/65536),h=e-65536*o,e=a+o+65535,o=Math.floor(e/65536),a=e-65536*o,e=f+o+65535,o=Math.floor(e/65536),f=e-65536*o,e=s+o+65535,o=Math.floor(e/65536),s=e-65536*o,e=c+o+65535,o=Math.floor(e/65536),c=e-65536*o,e=u+o+65535,o=Math.floor(e/65536),u=e-65536*o,e=y+o+65535,o=Math.floor(e/65536),y=e-65536*o,e=l+o+65535,o=Math.floor(e/65536),l=e-65536*o,e=w+o+65535,o=Math.floor(e/65536),w=e-65536*o,e=p+o+65535,o=Math.floor(e/65536),p=e-65536*o,e=v+o+65535,o=Math.floor(e/65536),v=e-65536*o,e=b+o+65535,o=Math.floor(e/65536),b=e-65536*o,e=g+o+65535,o=Math.floor(e/65536),g=e-65536*o,e=_+o+65535,o=Math.floor(e/65536),_=e-65536*o,e=A+o+65535,o=Math.floor(e/65536),A=e-65536*o,i+=o-1+37*(o-1),o=1,e=i+o+65535,o=Math.floor(e/65536),i=e-65536*o,e=h+o+65535,o=Math.floor(e/65536),h=e-65536*o,e=a+o+65535,o=Math.floor(e/65536),a=e-65536*o,e=f+o+65535,o=Math.floor(e/65536),f=e-65536*o,e=s+o+65535,o=Math.floor(e/65536),s=e-65536*o,e=c+o+65535,o=Math.floor(e/65536),c=e-65536*o,e=u+o+65535,o=Math.floor(e/65536),u=e-65536*o,e=y+o+65535,o=Math.floor(e/65536),y=e-65536*o,e=l+o+65535,o=Math.floor(e/65536),l=e-65536*o,e=w+o+65535,o=Math.floor(e/65536),w=e-65536*o,e=p+o+65535,o=Math.floor(e/65536),p=e-65536*o,e=v+o+65535,o=Math.floor(e/65536),v=e-65536*o,e=b+o+65535,o=Math.floor(e/65536),b=e-65536*o,e=g+o+65535,o=Math.floor(e/65536),g=e-65536*o,e=_+o+65535,o=Math.floor(e/65536),_=e-65536*o,e=A+o+65535,o=Math.floor(e/65536),A=e-65536*o,i+=o-1+37*(o-1),r[0]=i,r[1]=h,r[2]=a,r[3]=f,r[4]=s,r[5]=c,r[6]=u,r[7]=y,r[8]=l,r[9]=w,r[10]=p,r[11]=v,r[12]=b,r[13]=g;r[14]=_;r[15]=A}function B(r,t){m(r,t,t)}function S(r,t){var n,e=$();for(n=0;n<16;n++)e[n]=t[n];for(n=253;n>=0;n--)B(e,e),2!==n&&4!==n&&m(e,e,t);for(n=0;n<16;n++)r[n]=e[n]}function K(r,t){var n,e=$();for(n=0;n<16;n++)e[n]=t[n];for(n=250;n>=0;n--)B(e,e),1!==n&&m(e,e,t);for(n=0;n<16;n++)r[n]=e[n]}function T(r,t,n){var e,o,i=new Uint8Array(32),h=new Float64Array(80),a=$(),f=$(),s=$(),c=$(),u=$(),y=$();for(o=0;o<31;o++)i[o]=t[o];for(i[31]=127&t[31]|64,i[0]&=248,E(h,n),o=0;o<16;o++)f[o]=h[o],c[o]=a[o]=s[o]=0;for(a[0]=c[0]=1,o=254;o>=0;--o)e=i[o>>>3]>>>(7&o)&1,_(a,f,e),_(s,c,e),x(u,a,s),M(a,a,s),x(s,f,c),M(f,f,c),B(c,u),B(y,a),m(a,s,a),m(s,f,u),x(u,a,s),M(a,a,s),B(f,a),M(s,c,y),m(a,s,ir),x(a,a,c),m(s,s,a),m(a,c,y),m(c,f,h),B(f,u),_(a,f,e),_(s,c,e);for(o=0;o<16;o++)h[o+16]=a[o],h[o+32]=s[o],h[o+48]=f[o],h[o+64]=c[o];var l=h.subarray(32),w=h.subarray(16);return S(l,l),m(w,w,l),A(r,w),0}function Y(r,t){return T(r,t,nr)}function k(r,t){return rr(t,32),Y(r,t)}function L(r,t,n){var e=new Uint8Array(32);return T(e,n,t),f(r,tr,e,ur)}function z(r,t,n,e,o,i){var h=new Uint8Array(32);return L(h,o,i),lr(r,t,n,e,h)}function R(r,t,n,e,o,i){var h=new Uint8Array(32);return L(h,o,i),wr(r,t,n,e,h)}function P(r,t,n,e){for(var o,i,h,a,f,s,c,u,y,l,w,p,v,b,g,_,A,d,U,E,x,M,m,B,S,K,T=new Int32Array(16),Y=new Int32Array(16),k=r[0],L=r[1],z=r[2],R=r[3],P=r[4],O=r[5],N=r[6],C=r[7],F=t[0],I=t[1],G=t[2],Z=t[3],j=t[4],q=t[5],V=t[6],X=t[7],D=0;e>=128;){for(U=0;U<16;U++)E=8*U+D,T[U]=n[E+0]<<24|n[E+1]<<16|n[E+2]<<8|n[E+3],Y[U]=n[E+4]<<24|n[E+5]<<16|n[E+6]<<8|n[E+7];for(U=0;U<80;U++)if(o=k,i=L,h=z,a=R,f=P,s=O,c=N,u=C,y=F,l=I,w=G,p=Z,v=j,b=q,g=V,_=X,x=C,M=X,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=(P>>>14|j<<18)^(P>>>18|j<<14)^(j>>>9|P<<23),M=(j>>>14|P<<18)^(j>>>18|P<<14)^(P>>>9|j<<23),m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,x=P&O^~P&N,M=j&q^~j&V,m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,x=pr[2*U],M=pr[2*U+1],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,x=T[U%16],M=Y[U%16],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,A=65535&S|K<<16,d=65535&m|B<<16,x=A,M=d,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=(k>>>28|F<<4)^(F>>>2|k<<30)^(F>>>7|k<<25),M=(F>>>28|k<<4)^(k>>>2|F<<30)^(k>>>7|F<<25),m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,x=k&L^k&z^L&z,M=F&I^F&G^I&G,m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,u=65535&S|K<<16,_=65535&m|B<<16,x=a,M=p,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=A,M=d,m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,a=65535&S|K<<16,p=65535&m|B<<16,L=o,z=i,R=h,P=a,O=f,N=s,C=c,k=u,I=y,G=l,Z=w,j=p,q=v,V=b,X=g,F=_,U%16===15)for(E=0;E<16;E++)x=T[E],M=Y[E],m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=T[(E+9)%16],M=Y[(E+9)%16],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,A=T[(E+1)%16],d=Y[(E+1)%16],x=(A>>>1|d<<31)^(A>>>8|d<<24)^A>>>7,M=(d>>>1|A<<31)^(d>>>8|A<<24)^(d>>>7|A<<25),m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,A=T[(E+14)%16],d=Y[(E+14)%16],x=(A>>>19|d<<13)^(d>>>29|A<<3)^A>>>6,M=(d>>>19|A<<13)^(A>>>29|d<<3)^(d>>>6|A<<26),m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,T[E]=65535&S|K<<16,Y[E]=65535&m|B<<16;x=k,M=F,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[0],M=t[0],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[0]=k=65535&S|K<<16,t[0]=F=65535&m|B<<16,x=L,M=I,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[1],M=t[1],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[1]=L=65535&S|K<<16,t[1]=I=65535&m|B<<16,x=z,M=G,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[2],M=t[2],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[2]=z=65535&S|K<<16,t[2]=G=65535&m|B<<16,x=R,M=Z,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[3],M=t[3],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[3]=R=65535&S|K<<16,t[3]=Z=65535&m|B<<16,x=P,M=j,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[4],M=t[4],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[4]=P=65535&S|K<<16,t[4]=j=65535&m|B<<16,x=O,M=q,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[5],M=t[5],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[5]=O=65535&S|K<<16,t[5]=q=65535&m|B<<16,x=N,M=V,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[6],M=t[6],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[6]=N=65535&S|K<<16,t[6]=V=65535&m|B<<16,x=C,M=X,m=65535&M,B=M>>>16,S=65535&x,K=x>>>16,x=r[7],M=t[7],m+=65535&M,B+=M>>>16,S+=65535&x,K+=x>>>16,B+=m>>>16,S+=B>>>16,K+=S>>>16,r[7]=C=65535&S|K<<16,t[7]=X=65535&m|B<<16,D+=128,e-=128}return e}function O(r,n,e){var o,i=new Int32Array(8),h=new Int32Array(8),a=new Uint8Array(256),f=e;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,h[0]=4089235720,h[1]=2227873595,h[2]=4271175723,h[3]=1595750129,h[4]=2917565137,h[5]=725511199,h[6]=4215389547,h[7]=327033209,P(i,h,n,e),e%=128,o=0;o<e;o++)a[o]=n[f-e+o];for(a[e]=128,e=256-128*(e<112?1:0),a[e-9]=0,t(a,e-8,f/536870912|0,f<<3),P(i,h,a,e),o=0;o<8;o++)t(r,8*o,i[o],h[o]);return 0}function N(r,t){var n=$(),e=$(),o=$(),i=$(),h=$(),a=$(),f=$(),s=$(),c=$();M(n,r[1],r[0]),M(c,t[1],t[0]),m(n,n,c),x(e,r[0],r[1]),x(c,t[0],t[1]),m(e,e,c),m(o,r[3],t[3]),m(o,o,ar),m(i,r[2],t[2]),x(i,i,i),M(h,e,n),M(a,i,o),x(f,i,o),x(s,e,n),m(r[0],h,a),m(r[1],s,f),m(r[2],f,a),m(r[3],h,s)}function C(r,t,n){var e;for(e=0;e<4;e++)_(r[e],t[e],n)}function F(r,t){var n=$(),e=$(),o=$();S(o,t[2]),m(n,t[0],o),m(e,t[1],o),A(r,e),r[31]^=U(n)<<7}function I(r,t,n){var e,o;for(b(r[0],er),b(r[1],or),b(r[2],or),b(r[3],er),o=255;o>=0;--o)e=n[o/8|0]>>(7&o)&1,C(r,t,e),N(t,r),N(r,r),C(r,t,e)}function G(r,t){var n=[$(),$(),$(),$()];b(n[0],fr),b(n[1],sr),b(n[2],or),m(n[3],fr,sr),I(r,n,t)}function Z(r,t,n){var e,o=new Uint8Array(64),i=[$(),$(),$(),$()];for(n||rr(t,32),O(o,t,32),o[0]&=248,o[31]&=127,o[31]|=64,G(i,o),F(r,i),e=0;e<32;e++)t[e+32]=r[e];return 0}function j(r,t){var n,e,o,i;for(e=63;e>=32;--e){for(n=0,o=e-32,i=e-12;o<i;++o)t[o]+=n-16*t[e]*vr[o-(e-32)],n=t[o]+128>>8,t[o]-=256*n;t[o]+=n,t[e]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*vr[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*vr[o];for(e=0;e<32;e++)t[e+1]+=t[e]>>8,r[e]=255&t[e]}function q(r){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=r[t];for(t=0;t<64;t++)r[t]=0;j(r,n)}function V(r,t,n,e){var o,i,h=new Uint8Array(64),a=new Uint8Array(64),f=new Uint8Array(64),s=new Float64Array(64),c=[$(),$(),$(),$()];O(h,e,32),h[0]&=248,h[31]&=127,h[31]|=64;var u=n+64;for(o=0;o<n;o++)r[64+o]=t[o];for(o=0;o<32;o++)r[32+o]=h[32+o];for(O(f,r.subarray(32),n+32),q(f),G(c,f),F(r,c),o=32;o<64;o++)r[o]=e[o];for(O(a,r,n+64),q(a),o=0;o<64;o++)s[o]=0;for(o=0;o<32;o++)s[o]=f[o];for(o=0;o<32;o++)for(i=0;i<32;i++)s[o+i]+=a[o]*h[i];return j(r.subarray(32),s),u}function X(r,t){var n=$(),e=$(),o=$(),i=$(),h=$(),a=$(),f=$();return b(r[2],or),E(r[1],t),B(o,r[1]),m(i,o,hr),M(o,o,r[2]),x(i,r[2],i),B(h,i),B(a,h),m(f,a,h),m(n,f,o),m(n,n,i),K(n,n),m(n,n,o),m(n,n,i),m(n,n,i),m(r[0],n,i),B(e,r[0]),m(e,e,i),d(e,o)&&m(r[0],r[0],cr),B(e,r[0]),m(e,e,i),d(e,o)?-1:(U(r[0])===t[31]>>7&&M(r[0],er,r[0]),m(r[3],r[0],r[1]),0)}function D(r,t,n,e){var i,h,a=new Uint8Array(32),f=new Uint8Array(64),s=[$(),$(),$(),$()],c=[$(),$(),$(),$()];if(h=-1,n<64)return-1;if(X(c,e))return-1;for(i=0;i<n;i++)r[i]=t[i];for(i=0;i<32;i++)r[i+32]=e[i];if(O(f,r,n),q(f),I(s,c,f),G(c,t.subarray(32)),N(s,c),F(a,s),n-=64,o(t,0,a,0)){for(i=0;i<n;i++)r[i]=0;return-1}for(i=0;i<n;i++)r[i]=t[i+64];return h=n}function H(r,t){if(r.length!==br)throw new Error("bad key size");if(t.length!==gr)throw new Error("bad nonce size")}function J(r,t){if(r.length!==Er)throw new Error("bad public key size");if(t.length!==xr)throw new Error("bad secret key size")}function Q(){var r,t;for(t=0;t<arguments.length;t++)if("[object Uint8Array]"!==(r=Object.prototype.toString.call(arguments[t])))throw new TypeError("unexpected type "+r+", use Uint8Array")}function W(r){for(var t=0;t<r.length;t++)r[t]=0}var $=function(r){var t,n=new Float64Array(16);if(r)for(t=0;t<r.length;t++)n[t]=r[t];return n},rr=function(){throw new Error("no PRNG")},tr=new Uint8Array(16),nr=new Uint8Array(32);nr[0]=9;var er=$(),or=$([1]),ir=$([56129,1]),hr=$([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),ar=$([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),fr=$([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),sr=$([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),cr=$([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),ur=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),yr=function(r){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var t,n,e,o,i,h,a,f;t=255&r[0]|(255&r[1])<<8,this.r[0]=8191&t,n=255&r[2]|(255&r[3])<<8,this.r[1]=8191&(t>>>13|n<<3),e=255&r[4]|(255&r[5])<<8,this.r[2]=7939&(n>>>10|e<<6),o=255&r[6]|(255&r[7])<<8,this.r[3]=8191&(e>>>7|o<<9),i=255&r[8]|(255&r[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,h=255&r[10]|(255&r[11])<<8,this.r[6]=8191&(i>>>14|h<<2),a=255&r[12]|(255&r[13])<<8,this.r[7]=8065&(h>>>11|a<<5),f=255&r[14]|(255&r[15])<<8,this.r[8]=8191&(a>>>8|f<<8),this.r[9]=f>>>5&127,this.pad[0]=255&r[16]|(255&r[17])<<8,this.pad[1]=255&r[18]|(255&r[19])<<8,this.pad[2]=255&r[20]|(255&r[21])<<8,this.pad[3]=255&r[22]|(255&r[23])<<8,this.pad[4]=255&r[24]|(255&r[25])<<8,this.pad[5]=255&r[26]|(255&r[27])<<8,this.pad[6]=255&r[28]|(255&r[29])<<8,this.pad[7]=255&r[30]|(255&r[31])<<8};yr.prototype.blocks=function(r,t,n){for(var e,o,i,h,a,f,s,c,u,y,l,w,p,v,b,g,_,A,d,U=this.fin?0:2048,E=this.h[0],x=this.h[1],M=this.h[2],m=this.h[3],B=this.h[4],S=this.h[5],K=this.h[6],T=this.h[7],Y=this.h[8],k=this.h[9],L=this.r[0],z=this.r[1],R=this.r[2],P=this.r[3],O=this.r[4],N=this.r[5],C=this.r[6],F=this.r[7],I=this.r[8],G=this.r[9];n>=16;)e=255&r[t+0]|(255&r[t+1])<<8,E+=8191&e,o=255&r[t+2]|(255&r[t+3])<<8,x+=8191&(e>>>13|o<<3),i=255&r[t+4]|(255&r[t+5])<<8,M+=8191&(o>>>10|i<<6),h=255&r[t+6]|(255&r[t+7])<<8,m+=8191&(i>>>7|h<<9),a=255&r[t+8]|(255&r[t+9])<<8,B+=8191&(h>>>4|a<<12),S+=a>>>1&8191,f=255&r[t+10]|(255&r[t+11])<<8,K+=8191&(a>>>14|f<<2),s=255&r[t+12]|(255&r[t+13])<<8,T+=8191&(f>>>11|s<<5),c=255&r[t+14]|(255&r[t+15])<<8,Y+=8191&(s>>>8|c<<8),k+=c>>>5|U,u=0,y=u,y+=E*L,y+=x*(5*G),y+=M*(5*I),y+=m*(5*F),y+=B*(5*C),u=y>>>13,y&=8191,y+=S*(5*N),y+=K*(5*O),y+=T*(5*P),y+=Y*(5*R),y+=k*(5*z),u+=y>>>13,y&=8191,l=u,l+=E*z,l+=x*L,l+=M*(5*G),l+=m*(5*I),l+=B*(5*F),u=l>>>13,l&=8191,l+=S*(5*C),l+=K*(5*N),l+=T*(5*O),l+=Y*(5*P),l+=k*(5*R),u+=l>>>13,l&=8191,w=u,w+=E*R,w+=x*z,w+=M*L,w+=m*(5*G),w+=B*(5*I),u=w>>>13,w&=8191,w+=S*(5*F),w+=K*(5*C),w+=T*(5*N),w+=Y*(5*O),w+=k*(5*P),u+=w>>>13,w&=8191,p=u,p+=E*P,p+=x*R,p+=M*z,p+=m*L,p+=B*(5*G),u=p>>>13,p&=8191,p+=S*(5*I),p+=K*(5*F),p+=T*(5*C),p+=Y*(5*N),p+=k*(5*O),u+=p>>>13,p&=8191,v=u,v+=E*O,v+=x*P,v+=M*R,v+=m*z,v+=B*L,u=v>>>13,v&=8191,v+=S*(5*G),v+=K*(5*I),v+=T*(5*F),v+=Y*(5*C),v+=k*(5*N),u+=v>>>13,v&=8191,b=u,b+=E*N,b+=x*O,b+=M*P,b+=m*R,b+=B*z,u=b>>>13,b&=8191,b+=S*L,b+=K*(5*G),b+=T*(5*I),b+=Y*(5*F),b+=k*(5*C),u+=b>>>13,b&=8191,g=u,g+=E*C,g+=x*N,g+=M*O,g+=m*P,g+=B*R,u=g>>>13,g&=8191,g+=S*z,g+=K*L,g+=T*(5*G),g+=Y*(5*I),g+=k*(5*F),u+=g>>>13,g&=8191,_=u,_+=E*F,_+=x*C,_+=M*N,_+=m*O,_+=B*P,u=_>>>13,_&=8191,_+=S*R,_+=K*z,_+=T*L,_+=Y*(5*G),_+=k*(5*I),u+=_>>>13,_&=8191,A=u,A+=E*I,A+=x*F,A+=M*C,A+=m*N,A+=B*O,u=A>>>13,A&=8191,A+=S*P,A+=K*R,A+=T*z,A+=Y*L,A+=k*(5*G),u+=A>>>13,A&=8191,d=u,d+=E*G,d+=x*I,d+=M*F,d+=m*C,d+=B*N,u=d>>>13,d&=8191,d+=S*O,d+=K*P,d+=T*R,d+=Y*z,d+=k*L,u+=d>>>13,d&=8191,u=(u<<2)+u|0,u=u+y|0,y=8191&u,u>>>=13,l+=u,E=y,x=l,M=w,m=p,B=v,S=b,K=g,T=_,Y=A,k=d,t+=16,n-=16;this.h[0]=E,this.h[1]=x,this.h[2]=M,this.h[3]=m,this.h[4]=B,this.h[5]=S,this.h[6]=K,this.h[7]=T,this.h[8]=Y,this.h[9]=k},yr.prototype.finish=function(r,t){var n,e,o,i,h=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,h[0]=this.h[0]+5,n=h[0]>>>13,h[0]&=8191,i=1;i<10;i++)h[i]=this.h[i]+n,n=h[i]>>>13,h[i]&=8191;for(h[9]-=8192,e=(1^n)-1,i=0;i<10;i++)h[i]&=e;for(e=~e,i=0;i<10;i++)this.h[i]=this.h[i]&e|h[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;r[t+0]=this.h[0]>>>0&255,r[t+1]=this.h[0]>>>8&255,r[t+2]=this.h[1]>>>0&255,r[t+3]=this.h[1]>>>8&255,r[t+4]=this.h[2]>>>0&255,r[t+5]=this.h[2]>>>8&255,r[t+6]=this.h[3]>>>0&255,r[t+7]=this.h[3]>>>8&255,r[t+8]=this.h[4]>>>0&255,r[t+9]=this.h[4]>>>8&255,r[t+10]=this.h[5]>>>0&255,r[t+11]=this.h[5]>>>8&255,r[t+12]=this.h[6]>>>0&255,r[t+13]=this.h[6]>>>8&255,r[t+14]=this.h[7]>>>0&255,r[t+15]=this.h[7]>>>8&255},yr.prototype.update=function(r,t,n){var e,o;if(this.leftover){for(o=16-this.leftover,o>n&&(o=n),e=0;e<o;e++)this.buffer[this.leftover+e]=r[t+e];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(r,t,o),t+=o,n-=o),n){for(e=0;e<n;e++)this.buffer[this.leftover+e]=r[t+e];this.leftover+=n}};var lr=p,wr=v,pr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],vr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),br=32,gr=24,_r=32,Ar=16,dr=32,Ur=32,Er=32,xr=32,Mr=32,mr=gr,Br=_r,Sr=Ar,Kr=64,Tr=32,Yr=64,kr=32,Lr=64;r.lowlevel={crypto_core_hsalsa20:f,crypto_stream_xor:y,crypto_stream:u,crypto_stream_salsa20_xor:s,crypto_stream_salsa20:c,crypto_onetimeauth:l,crypto_onetimeauth_verify:w,crypto_verify_16:e,crypto_verify_32:o,crypto_secretbox:p,crypto_secretbox_open:v,crypto_scalarmult:T,crypto_scalarmult_base:Y,crypto_box_beforenm:L,crypto_box_afternm:lr,crypto_box:z,crypto_box_open:R,crypto_box_keypair:k,crypto_hash:O,crypto_sign:V,crypto_sign_keypair:Z,crypto_sign_open:D,crypto_secretbox_KEYBYTES:br,crypto_secretbox_NONCEBYTES:gr,crypto_secretbox_ZEROBYTES:_r,crypto_secretbox_BOXZEROBYTES:Ar,crypto_scalarmult_BYTES:dr,crypto_scalarmult_SCALARBYTES:Ur,crypto_box_PUBLICKEYBYTES:Er,crypto_box_SECRETKEYBYTES:xr,crypto_box_BEFORENMBYTES:Mr,crypto_box_NONCEBYTES:mr,crypto_box_ZEROBYTES:Br,crypto_box_BOXZEROBYTES:Sr,crypto_sign_BYTES:Kr,crypto_sign_PUBLICKEYBYTES:Tr,crypto_sign_SECRETKEYBYTES:Yr,crypto_sign_SEEDBYTES:kr,crypto_hash_BYTES:Lr},r.util||(r.util={},r.util.decodeUTF8=r.util.encodeUTF8=r.util.encodeBase64=r.util.decodeBase64=function(){throw new Error("nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js")}),r.randomBytes=function(r){var t=new Uint8Array(r);return rr(t,r),t},r.secretbox=function(r,t,n){Q(r,t,n),H(n,t);for(var e=new Uint8Array(_r+r.length),o=new Uint8Array(e.length),i=0;i<r.length;i++)e[i+_r]=r[i];return p(o,e,e.length,t,n),o.subarray(Ar)},r.secretbox.open=function(r,t,n){Q(r,t,n),H(n,t);for(var e=new Uint8Array(Ar+r.length),o=new Uint8Array(e.length),i=0;i<r.length;i++)e[i+Ar]=r[i];return!(e.length<32)&&(0===v(o,e,e.length,t,n)&&o.subarray(_r))},r.secretbox.keyLength=br,r.secretbox.nonceLength=gr,r.secretbox.overheadLength=Ar,r.scalarMult=function(r,t){if(Q(r,t),r.length!==Ur)throw new Error("bad n size");if(t.length!==dr)throw new Error("bad p size");var n=new Uint8Array(dr);return T(n,r,t),n},r.scalarMult.base=function(r){if(Q(r),r.length!==Ur)throw new Error("bad n size");var t=new Uint8Array(dr);return Y(t,r),t},r.scalarMult.scalarLength=Ur,r.scalarMult.groupElementLength=dr,r.box=function(t,n,e,o){var i=r.box.before(e,o);return r.secretbox(t,n,i)},r.box.before=function(r,t){Q(r,t),J(r,t);var n=new Uint8Array(Mr);return L(n,r,t),n},r.box.after=r.secretbox,r.box.open=function(t,n,e,o){var i=r.box.before(e,o);return r.secretbox.open(t,n,i)},r.box.open.after=r.secretbox.open,r.box.keyPair=function(){var r=new Uint8Array(Er),t=new Uint8Array(xr);return k(r,t),{publicKey:r,secretKey:t}},r.box.keyPair.fromSecretKey=function(r){if(Q(r),r.length!==xr)throw new Error("bad secret key size");var t=new Uint8Array(Er);return Y(t,r),{publicKey:t,secretKey:new Uint8Array(r)}},r.box.publicKeyLength=Er,r.box.secretKeyLength=xr,r.box.sharedKeyLength=Mr,r.box.nonceLength=mr,r.box.overheadLength=r.secretbox.overheadLength,r.sign=function(r,t){if(Q(r,t),t.length!==Yr)throw new Error("bad secret key size");var n=new Uint8Array(Kr+r.length);return V(n,r,r.length,t),n},r.sign.open=function(r,t){if(2!==arguments.length)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(Q(r,t),t.length!==Tr)throw new Error("bad public key size");var n=new Uint8Array(r.length),e=D(n,r,r.length,t);if(e<0)return null;for(var o=new Uint8Array(e),i=0;i<o.length;i++)o[i]=n[i];return o},r.sign.detached=function(t,n){for(var e=r.sign(t,n),o=new Uint8Array(Kr),i=0;i<o.length;i++)o[i]=e[i];return o},r.sign.detached.verify=function(r,t,n){if(Q(r,t,n),t.length!==Kr)throw new Error("bad signature size");if(n.length!==Tr)throw new Error("bad public key size");var e,o=new Uint8Array(Kr+r.length),i=new Uint8Array(Kr+r.length);for(e=0;e<Kr;e++)o[e]=t[e];for(e=0;e<r.length;e++)o[e+Kr]=r[e];return D(i,o,o.length,n)>=0},r.sign.keyPair=function(){var r=new Uint8Array(Tr),t=new Uint8Array(Yr);return Z(r,t),{publicKey:r,secretKey:t}},r.sign.keyPair.fromSecretKey=function(r){if(Q(r),r.length!==Yr)throw new Error("bad secret key size");for(var t=new Uint8Array(Tr),n=0;n<t.length;n++)t[n]=r[32+n];return{publicKey:t,secretKey:new Uint8Array(r)}},r.sign.keyPair.fromSeed=function(r){if(Q(r),r.length!==kr)throw new Error("bad seed size");for(var t=new Uint8Array(Tr),n=new Uint8Array(Yr),e=0;e<32;e++)n[e]=r[e];return Z(t,n,!0),{publicKey:t,secretKey:n}},r.sign.publicKeyLength=Tr,r.sign.secretKeyLength=Yr,r.sign.seedLength=kr,r.sign.signatureLength=Kr,r.hash=function(r){Q(r);var t=new Uint8Array(Lr);return O(t,r,r.length),t},r.hash.hashLength=Lr,r.verify=function(r,t){return Q(r,t),
-0!==r.length&&0!==t.length&&(r.length===t.length&&0===n(r,0,t,0,r.length))},r.setPRNG=function(r){rr=r},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){var n=65536;r.setPRNG(function(r,e){var o,i=new Uint8Array(e);for(o=0;o<e;o+=n)t.getRandomValues(i.subarray(o,o+Math.min(e-o,n)));for(o=0;o<e;o++)r[o]=i[o];W(i)})}else"undefined"!=typeof require&&(t=require("crypto"),t&&t.randomBytes&&r.setPRNG(function(r,n){var e,o=t.randomBytes(n);for(e=0;e<n;e++)r[e]=o[e];W(o)}))}()}("undefined"!=typeof module&&module.exports?module.exports:self.nacl=self.nacl||{}); \ No newline at end of file
diff --git a/node_modules/tweetnacl/nacl.d.ts b/node_modules/tweetnacl/nacl.d.ts
deleted file mode 100644
index 964e7dc..0000000
--- a/node_modules/tweetnacl/nacl.d.ts
+++ /dev/null
@@ -1,98 +0,0 @@
-// Type definitions for TweetNaCl.js
-
-export as namespace nacl;
-
-declare var nacl: nacl;
-export = nacl;
-
-declare namespace nacl {
- export interface BoxKeyPair {
- publicKey: Uint8Array;
- secretKey: Uint8Array;
- }
-
- export interface SignKeyPair {
- publicKey: Uint8Array;
- secretKey: Uint8Array;
- }
-
- export interface secretbox {
- (msg: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
- open(box: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array | false;
- readonly keyLength: number;
- readonly nonceLength: number;
- readonly overheadLength: number;
- }
-
- export interface scalarMult {
- (n: Uint8Array, p: Uint8Array): Uint8Array;
- base(n: Uint8Array): Uint8Array;
- readonly scalarLength: number;
- readonly groupElementLength: number;
- }
-
- namespace box {
- export interface open {
- (msg: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, secretKey: Uint8Array): Uint8Array | false;
- after(box: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array | false;
- }
-
- export interface keyPair {
- (): BoxKeyPair;
- fromSecretKey(secretKey: Uint8Array): BoxKeyPair;
- }
- }
-
- export interface box {
- (msg: Uint8Array, nonce: Uint8Array, publicKey: Uint8Array, secretKey: Uint8Array): Uint8Array;
- before(publicKey: Uint8Array, secretKey: Uint8Array): Uint8Array;
- after(msg: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
- open: box.open;
- keyPair: box.keyPair;
- readonly publicKeyLength: number;
- readonly secretKeyLength: number;
- readonly sharedKeyLength: number;
- readonly nonceLength: number;
- readonly overheadLength: number;
- }
-
- namespace sign {
- export interface detached {
- (msg: Uint8Array, secretKey: Uint8Array): Uint8Array;
- verify(msg: Uint8Array, sig: Uint8Array, publicKey: Uint8Array): boolean;
- }
-
- export interface keyPair {
- (): SignKeyPair;
- fromSecretKey(secretKey: Uint8Array): SignKeyPair;
- fromSeed(secretKey: Uint8Array): SignKeyPair;
- }
- }
-
- export interface sign {
- (msg: Uint8Array, secretKey: Uint8Array): Uint8Array;
- open(signedMsg: Uint8Array, publicKey: Uint8Array): Uint8Array | null;
- detached: sign.detached;
- keyPair: sign.keyPair;
- readonly publicKeyLength: number;
- readonly secretKeyLength: number;
- readonly seedLength: number;
- readonly signatureLength: number;
- }
-
- export interface hash {
- (msg: Uint8Array): Uint8Array;
- readonly hashLength: number;
- }
-}
-
-declare interface nacl {
- randomBytes(n: number): Uint8Array;
- secretbox: nacl.secretbox;
- scalarMult: nacl.scalarMult;
- box: nacl.box;
- sign: nacl.sign;
- hash: nacl.hash;
- verify(x: Uint8Array, y: Uint8Array): boolean;
- setPRNG(fn: (x: Uint8Array, n: number) => void): void;
-}
diff --git a/node_modules/tweetnacl/nacl.js b/node_modules/tweetnacl/nacl.js
deleted file mode 100644
index f72dd78..0000000
--- a/node_modules/tweetnacl/nacl.js
+++ /dev/null
@@ -1,1175 +0,0 @@
-(function(nacl) {
-'use strict';
-
-// Ported in 2014 by Dmitry Chestnykh and Devi Mandiri.
-// Public domain.
-//
-// Implementation derived from TweetNaCl version 20140427.
-// See for details: http://tweetnacl.cr.yp.to/
-
-var u64 = function(h, l) { this.hi = h|0 >>> 0; this.lo = l|0 >>> 0; };
-var gf = function(init) {
- var i, r = new Float64Array(16);
- if (init) for (i = 0; i < init.length; i++) r[i] = init[i];
- return r;
-};
-
-// Pluggable, initialized in high-level API below.
-var randombytes = function(/* x, n */) { throw new Error('no PRNG'); };
-
-var _0 = new Uint8Array(16);
-var _9 = new Uint8Array(32); _9[0] = 9;
-
-var gf0 = gf(),
- gf1 = gf([1]),
- _121665 = gf([0xdb41, 1]),
- D = gf([0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]),
- D2 = gf([0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]),
- X = gf([0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]),
- Y = gf([0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]),
- I = gf([0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]);
-
-function L32(x, c) { return (x << c) | (x >>> (32 - c)); }
-
-function ld32(x, i) {
- var u = x[i+3] & 0xff;
- u = (u<<8)|(x[i+2] & 0xff);
- u = (u<<8)|(x[i+1] & 0xff);
- return (u<<8)|(x[i+0] & 0xff);
-}
-
-function dl64(x, i) {
- var h = (x[i] << 24) | (x[i+1] << 16) | (x[i+2] << 8) | x[i+3];
- var l = (x[i+4] << 24) | (x[i+5] << 16) | (x[i+6] << 8) | x[i+7];
- return new u64(h, l);
-}
-
-function st32(x, j, u) {
- var i;
- for (i = 0; i < 4; i++) { x[j+i] = u & 255; u >>>= 8; }
-}
-
-function ts64(x, i, u) {
- x[i] = (u.hi >> 24) & 0xff;
- x[i+1] = (u.hi >> 16) & 0xff;
- x[i+2] = (u.hi >> 8) & 0xff;
- x[i+3] = u.hi & 0xff;
- x[i+4] = (u.lo >> 24) & 0xff;
- x[i+5] = (u.lo >> 16) & 0xff;
- x[i+6] = (u.lo >> 8) & 0xff;
- x[i+7] = u.lo & 0xff;
-}
-
-function vn(x, xi, y, yi, n) {
- var i,d = 0;
- for (i = 0; i < n; i++) d |= x[xi+i]^y[yi+i];
- return (1 & ((d - 1) >>> 8)) - 1;
-}
-
-function crypto_verify_16(x, xi, y, yi) {
- return vn(x,xi,y,yi,16);
-}
-
-function crypto_verify_32(x, xi, y, yi) {
- return vn(x,xi,y,yi,32);
-}
-
-function core(out,inp,k,c,h) {
- var w = new Uint32Array(16), x = new Uint32Array(16),
- y = new Uint32Array(16), t = new Uint32Array(4);
- var i, j, m;
-
- for (i = 0; i < 4; i++) {
- x[5*i] = ld32(c, 4*i);
- x[1+i] = ld32(k, 4*i);
- x[6+i] = ld32(inp, 4*i);
- x[11+i] = ld32(k, 16+4*i);
- }
-
- for (i = 0; i < 16; i++) y[i] = x[i];
-
- for (i = 0; i < 20; i++) {
- for (j = 0; j < 4; j++) {
- for (m = 0; m < 4; m++) t[m] = x[(5*j+4*m)%16];
- t[1] ^= L32((t[0]+t[3])|0, 7);
- t[2] ^= L32((t[1]+t[0])|0, 9);
- t[3] ^= L32((t[2]+t[1])|0,13);
- t[0] ^= L32((t[3]+t[2])|0,18);
- for (m = 0; m < 4; m++) w[4*j+(j+m)%4] = t[m];
- }
- for (m = 0; m < 16; m++) x[m] = w[m];
- }
-
- if (h) {
- for (i = 0; i < 16; i++) x[i] = (x[i] + y[i]) | 0;
- for (i = 0; i < 4; i++) {
- x[5*i] = (x[5*i] - ld32(c, 4*i)) | 0;
- x[6+i] = (x[6+i] - ld32(inp, 4*i)) | 0;
- }
- for (i = 0; i < 4; i++) {
- st32(out,4*i,x[5*i]);
- st32(out,16+4*i,x[6+i]);
- }
- } else {
- for (i = 0; i < 16; i++) st32(out, 4 * i, (x[i] + y[i]) | 0);
- }
-}
-
-function crypto_core_salsa20(out,inp,k,c) {
- core(out,inp,k,c,false);
- return 0;
-}
-
-function crypto_core_hsalsa20(out,inp,k,c) {
- core(out,inp,k,c,true);
- return 0;
-}
-
-var sigma = new Uint8Array([101, 120, 112, 97, 110, 100, 32, 51, 50, 45, 98, 121, 116, 101, 32, 107]);
- // "expand 32-byte k"
-
-function crypto_stream_salsa20_xor(c,cpos,m,mpos,b,n,k) {
- var z = new Uint8Array(16), x = new Uint8Array(64);
- var u, i;
- if (!b) return 0;
- for (i = 0; i < 16; i++) z[i] = 0;
- for (i = 0; i < 8; i++) z[i] = n[i];
- while (b >= 64) {
- crypto_core_salsa20(x,z,k,sigma);
- for (i = 0; i < 64; i++) c[cpos+i] = (m?m[mpos+i]:0) ^ x[i];
- u = 1;
- for (i = 8; i < 16; i++) {
- u = u + (z[i] & 0xff) | 0;
- z[i] = u & 0xff;
- u >>>= 8;
- }
- b -= 64;
- cpos += 64;
- if (m) mpos += 64;
- }
- if (b > 0) {
- crypto_core_salsa20(x,z,k,sigma);
- for (i = 0; i < b; i++) c[cpos+i] = (m?m[mpos+i]:0) ^ x[i];
- }
- return 0;
-}
-
-function crypto_stream_salsa20(c,cpos,d,n,k) {
- return crypto_stream_salsa20_xor(c,cpos,null,0,d,n,k);
-}
-
-function crypto_stream(c,cpos,d,n,k) {
- var s = new Uint8Array(32);
- crypto_core_hsalsa20(s,n,k,sigma);
- return crypto_stream_salsa20(c,cpos,d,n.subarray(16),s);
-}
-
-function crypto_stream_xor(c,cpos,m,mpos,d,n,k) {
- var s = new Uint8Array(32);
- crypto_core_hsalsa20(s,n,k,sigma);
- return crypto_stream_salsa20_xor(c,cpos,m,mpos,d,n.subarray(16),s);
-}
-
-function add1305(h, c) {
- var j, u = 0;
- for (j = 0; j < 17; j++) {
- u = (u + ((h[j] + c[j]) | 0)) | 0;
- h[j] = u & 255;
- u >>>= 8;
- }
-}
-
-var minusp = new Uint32Array([
- 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252
-]);
-
-function crypto_onetimeauth(out, outpos, m, mpos, n, k) {
- var s, i, j, u;
- var x = new Uint32Array(17), r = new Uint32Array(17),
- h = new Uint32Array(17), c = new Uint32Array(17),
- g = new Uint32Array(17);
- for (j = 0; j < 17; j++) r[j]=h[j]=0;
- for (j = 0; j < 16; j++) r[j]=k[j];
- r[3]&=15;
- r[4]&=252;
- r[7]&=15;
- r[8]&=252;
- r[11]&=15;
- r[12]&=252;
- r[15]&=15;
-
- while (n > 0) {
- for (j = 0; j < 17; j++) c[j] = 0;
- for (j = 0; (j < 16) && (j < n); ++j) c[j] = m[mpos+j];
- c[j] = 1;
- mpos += j; n -= j;
- add1305(h,c);
- for (i = 0; i < 17; i++) {
- x[i] = 0;
- for (j = 0; j < 17; j++) x[i] = (x[i] + (h[j] * ((j <= i) ? r[i - j] : ((320 * r[i + 17 - j])|0))) | 0) | 0;
- }
- for (i = 0; i < 17; i++) h[i] = x[i];
- u = 0;
- for (j = 0; j < 16; j++) {
- u = (u + h[j]) | 0;
- h[j] = u & 255;
- u >>>= 8;
- }
- u = (u + h[16]) | 0; h[16] = u & 3;
- u = (5 * (u >>> 2)) | 0;
- for (j = 0; j < 16; j++) {
- u = (u + h[j]) | 0;
- h[j] = u & 255;
- u >>>= 8;
- }
- u = (u + h[16]) | 0; h[16] = u;
- }
-
- for (j = 0; j < 17; j++) g[j] = h[j];
- add1305(h,minusp);
- s = (-(h[16] >>> 7) | 0);
- for (j = 0; j < 17; j++) h[j] ^= s & (g[j] ^ h[j]);
-
- for (j = 0; j < 16; j++) c[j] = k[j + 16];
- c[16] = 0;
- add1305(h,c);
- for (j = 0; j < 16; j++) out[outpos+j] = h[j];
- return 0;
-}
-
-function crypto_onetimeauth_verify(h, hpos, m, mpos, n, k) {
- var x = new Uint8Array(16);
- crypto_onetimeauth(x,0,m,mpos,n,k);
- return crypto_verify_16(h,hpos,x,0);
-}
-
-function crypto_secretbox(c,m,d,n,k) {
- var i;
- if (d < 32) return -1;
- crypto_stream_xor(c,0,m,0,d,n,k);
- crypto_onetimeauth(c, 16, c, 32, d - 32, c);
- for (i = 0; i < 16; i++) c[i] = 0;
- return 0;
-}
-
-function crypto_secretbox_open(m,c,d,n,k) {
- var i;
- var x = new Uint8Array(32);
- if (d < 32) return -1;
- crypto_stream(x,0,32,n,k);
- if (crypto_onetimeauth_verify(c, 16,c, 32,d - 32,x) !== 0) return -1;
- crypto_stream_xor(m,0,c,0,d,n,k);
- for (i = 0; i < 32; i++) m[i] = 0;
- return 0;
-}
-
-function set25519(r, a) {
- var i;
- for (i = 0; i < 16; i++) r[i] = a[i]|0;
-}
-
-function car25519(o) {
- var c;
- var i;
- for (i = 0; i < 16; i++) {
- o[i] += 65536;
- c = Math.floor(o[i] / 65536);
- o[(i+1)*(i<15?1:0)] += c - 1 + 37 * (c-1) * (i===15?1:0);
- o[i] -= (c * 65536);
- }
-}
-
-function sel25519(p, q, b) {
- var t, c = ~(b-1);
- for (var i = 0; i < 16; i++) {
- t = c & (p[i] ^ q[i]);
- p[i] ^= t;
- q[i] ^= t;
- }
-}
-
-function pack25519(o, n) {
- var i, j, b;
- var m = gf(), t = gf();
- for (i = 0; i < 16; i++) t[i] = n[i];
- car25519(t);
- car25519(t);
- car25519(t);
- for (j = 0; j < 2; j++) {
- m[0] = t[0] - 0xffed;
- for (i = 1; i < 15; i++) {
- m[i] = t[i] - 0xffff - ((m[i-1]>>16) & 1);
- m[i-1] &= 0xffff;
- }
- m[15] = t[15] - 0x7fff - ((m[14]>>16) & 1);
- b = (m[15]>>16) & 1;
- m[14] &= 0xffff;
- sel25519(t, m, 1-b);
- }
- for (i = 0; i < 16; i++) {
- o[2*i] = t[i] & 0xff;
- o[2*i+1] = t[i]>>8;
- }
-}
-
-function neq25519(a, b) {
- var c = new Uint8Array(32), d = new Uint8Array(32);
- pack25519(c, a);
- pack25519(d, b);
- return crypto_verify_32(c, 0, d, 0);
-}
-
-function par25519(a) {
- var d = new Uint8Array(32);
- pack25519(d, a);
- return d[0] & 1;
-}
-
-function unpack25519(o, n) {
- var i;
- for (i = 0; i < 16; i++) o[i] = n[2*i] + (n[2*i+1] << 8);
- o[15] &= 0x7fff;
-}
-
-function A(o, a, b) {
- var i;
- for (i = 0; i < 16; i++) o[i] = (a[i] + b[i])|0;
-}
-
-function Z(o, a, b) {
- var i;
- for (i = 0; i < 16; i++) o[i] = (a[i] - b[i])|0;
-}
-
-function M(o, a, b) {
- var i, j, t = new Float64Array(31);
- for (i = 0; i < 31; i++) t[i] = 0;
- for (i = 0; i < 16; i++) {
- for (j = 0; j < 16; j++) {
- t[i+j] += a[i] * b[j];
- }
- }
- for (i = 0; i < 15; i++) {
- t[i] += 38 * t[i+16];
- }
- for (i = 0; i < 16; i++) o[i] = t[i];
- car25519(o);
- car25519(o);
-}
-
-function S(o, a) {
- M(o, a, a);
-}
-
-function inv25519(o, i) {
- var c = gf();
- var a;
- for (a = 0; a < 16; a++) c[a] = i[a];
- for (a = 253; a >= 0; a--) {
- S(c, c);
- if(a !== 2 && a !== 4) M(c, c, i);
- }
- for (a = 0; a < 16; a++) o[a] = c[a];
-}
-
-function pow2523(o, i) {
- var c = gf();
- var a;
- for (a = 0; a < 16; a++) c[a] = i[a];
- for (a = 250; a >= 0; a--) {
- S(c, c);
- if(a !== 1) M(c, c, i);
- }
- for (a = 0; a < 16; a++) o[a] = c[a];
-}
-
-function crypto_scalarmult(q, n, p) {
- var z = new Uint8Array(32);
- var x = new Float64Array(80), r, i;
- var a = gf(), b = gf(), c = gf(),
- d = gf(), e = gf(), f = gf();
- for (i = 0; i < 31; i++) z[i] = n[i];
- z[31]=(n[31]&127)|64;
- z[0]&=248;
- unpack25519(x,p);
- for (i = 0; i < 16; i++) {
- b[i]=x[i];
- d[i]=a[i]=c[i]=0;
- }
- a[0]=d[0]=1;
- for (i=254; i>=0; --i) {
- r=(z[i>>>3]>>>(i&7))&1;
- sel25519(a,b,r);
- sel25519(c,d,r);
- A(e,a,c);
- Z(a,a,c);
- A(c,b,d);
- Z(b,b,d);
- S(d,e);
- S(f,a);
- M(a,c,a);
- M(c,b,e);
- A(e,a,c);
- Z(a,a,c);
- S(b,a);
- Z(c,d,f);
- M(a,c,_121665);
- A(a,a,d);
- M(c,c,a);
- M(a,d,f);
- M(d,b,x);
- S(b,e);
- sel25519(a,b,r);
- sel25519(c,d,r);
- }
- for (i = 0; i < 16; i++) {
- x[i+16]=a[i];
- x[i+32]=c[i];
- x[i+48]=b[i];
- x[i+64]=d[i];
- }
- var x32 = x.subarray(32);
- var x16 = x.subarray(16);
- inv25519(x32,x32);
- M(x16,x16,x32);
- pack25519(q,x16);
- return 0;
-}
-
-function crypto_scalarmult_base(q, n) {
- return crypto_scalarmult(q, n, _9);
-}
-
-function crypto_box_keypair(y, x) {
- randombytes(x, 32);
- return crypto_scalarmult_base(y, x);
-}
-
-function crypto_box_beforenm(k, y, x) {
- var s = new Uint8Array(32);
- crypto_scalarmult(s, x, y);
- return crypto_core_hsalsa20(k, _0, s, sigma);
-}
-
-var crypto_box_afternm = crypto_secretbox;
-var crypto_box_open_afternm = crypto_secretbox_open;
-
-function crypto_box(c, m, d, n, y, x) {
- var k = new Uint8Array(32);
- crypto_box_beforenm(k, y, x);
- return crypto_box_afternm(c, m, d, n, k);
-}
-
-function crypto_box_open(m, c, d, n, y, x) {
- var k = new Uint8Array(32);
- crypto_box_beforenm(k, y, x);
- return crypto_box_open_afternm(m, c, d, n, k);
-}
-
-function add64() {
- var a = 0, b = 0, c = 0, d = 0, m16 = 65535, l, h, i;
- for (i = 0; i < arguments.length; i++) {
- l = arguments[i].lo;
- h = arguments[i].hi;
- a += (l & m16); b += (l >>> 16);
- c += (h & m16); d += (h >>> 16);
- }
-
- b += (a >>> 16);
- c += (b >>> 16);
- d += (c >>> 16);
-
- return new u64((c & m16) | (d << 16), (a & m16) | (b << 16));
-}
-
-function shr64(x, c) {
- return new u64((x.hi >>> c), (x.lo >>> c) | (x.hi << (32 - c)));
-}
-
-function xor64() {
- var l = 0, h = 0, i;
- for (i = 0; i < arguments.length; i++) {
- l ^= arguments[i].lo;
- h ^= arguments[i].hi;
- }
- return new u64(h, l);
-}
-
-function R(x, c) {
- var h, l, c1 = 32 - c;
- if (c < 32) {
- h = (x.hi >>> c) | (x.lo << c1);
- l = (x.lo >>> c) | (x.hi << c1);
- } else if (c < 64) {
- h = (x.lo >>> c) | (x.hi << c1);
- l = (x.hi >>> c) | (x.lo << c1);
- }
- return new u64(h, l);
-}
-
-function Ch(x, y, z) {
- var h = (x.hi & y.hi) ^ (~x.hi & z.hi),
- l = (x.lo & y.lo) ^ (~x.lo & z.lo);
- return new u64(h, l);
-}
-
-function Maj(x, y, z) {
- var h = (x.hi & y.hi) ^ (x.hi & z.hi) ^ (y.hi & z.hi),
- l = (x.lo & y.lo) ^ (x.lo & z.lo) ^ (y.lo & z.lo);
- return new u64(h, l);
-}
-
-function Sigma0(x) { return xor64(R(x,28), R(x,34), R(x,39)); }
-function Sigma1(x) { return xor64(R(x,14), R(x,18), R(x,41)); }
-function sigma0(x) { return xor64(R(x, 1), R(x, 8), shr64(x,7)); }
-function sigma1(x) { return xor64(R(x,19), R(x,61), shr64(x,6)); }
-
-var K = [
- new u64(0x428a2f98, 0xd728ae22), new u64(0x71374491, 0x23ef65cd),
- new u64(0xb5c0fbcf, 0xec4d3b2f), new u64(0xe9b5dba5, 0x8189dbbc),
- new u64(0x3956c25b, 0xf348b538), new u64(0x59f111f1, 0xb605d019),
- new u64(0x923f82a4, 0xaf194f9b), new u64(0xab1c5ed5, 0xda6d8118),
- new u64(0xd807aa98, 0xa3030242), new u64(0x12835b01, 0x45706fbe),
- new u64(0x243185be, 0x4ee4b28c), new u64(0x550c7dc3, 0xd5ffb4e2),
- new u64(0x72be5d74, 0xf27b896f), new u64(0x80deb1fe, 0x3b1696b1),
- new u64(0x9bdc06a7, 0x25c71235), new u64(0xc19bf174, 0xcf692694),
- new u64(0xe49b69c1, 0x9ef14ad2), new u64(0xefbe4786, 0x384f25e3),
- new u64(0x0fc19dc6, 0x8b8cd5b5), new u64(0x240ca1cc, 0x77ac9c65),
- new u64(0x2de92c6f, 0x592b0275), new u64(0x4a7484aa, 0x6ea6e483),
- new u64(0x5cb0a9dc, 0xbd41fbd4), new u64(0x76f988da, 0x831153b5),
- new u64(0x983e5152, 0xee66dfab), new u64(0xa831c66d, 0x2db43210),
- new u64(0xb00327c8, 0x98fb213f), new u64(0xbf597fc7, 0xbeef0ee4),
- new u64(0xc6e00bf3, 0x3da88fc2), new u64(0xd5a79147, 0x930aa725),
- new u64(0x06ca6351, 0xe003826f), new u64(0x14292967, 0x0a0e6e70),
- new u64(0x27b70a85, 0x46d22ffc), new u64(0x2e1b2138, 0x5c26c926),
- new u64(0x4d2c6dfc, 0x5ac42aed), new u64(0x53380d13, 0x9d95b3df),
- new u64(0x650a7354, 0x8baf63de), new u64(0x766a0abb, 0x3c77b2a8),
- new u64(0x81c2c92e, 0x47edaee6), new u64(0x92722c85, 0x1482353b),
- new u64(0xa2bfe8a1, 0x4cf10364), new u64(0xa81a664b, 0xbc423001),
- new u64(0xc24b8b70, 0xd0f89791), new u64(0xc76c51a3, 0x0654be30),
- new u64(0xd192e819, 0xd6ef5218), new u64(0xd6990624, 0x5565a910),
- new u64(0xf40e3585, 0x5771202a), new u64(0x106aa070, 0x32bbd1b8),
- new u64(0x19a4c116, 0xb8d2d0c8), new u64(0x1e376c08, 0x5141ab53),
- new u64(0x2748774c, 0xdf8eeb99), new u64(0x34b0bcb5, 0xe19b48a8),
- new u64(0x391c0cb3, 0xc5c95a63), new u64(0x4ed8aa4a, 0xe3418acb),
- new u64(0x5b9cca4f, 0x7763e373), new u64(0x682e6ff3, 0xd6b2b8a3),
- new u64(0x748f82ee, 0x5defb2fc), new u64(0x78a5636f, 0x43172f60),
- new u64(0x84c87814, 0xa1f0ab72), new u64(0x8cc70208, 0x1a6439ec),
- new u64(0x90befffa, 0x23631e28), new u64(0xa4506ceb, 0xde82bde9),
- new u64(0xbef9a3f7, 0xb2c67915), new u64(0xc67178f2, 0xe372532b),
- new u64(0xca273ece, 0xea26619c), new u64(0xd186b8c7, 0x21c0c207),
- new u64(0xeada7dd6, 0xcde0eb1e), new u64(0xf57d4f7f, 0xee6ed178),
- new u64(0x06f067aa, 0x72176fba), new u64(0x0a637dc5, 0xa2c898a6),
- new u64(0x113f9804, 0xbef90dae), new u64(0x1b710b35, 0x131c471b),
- new u64(0x28db77f5, 0x23047d84), new u64(0x32caab7b, 0x40c72493),
- new u64(0x3c9ebe0a, 0x15c9bebc), new u64(0x431d67c4, 0x9c100d4c),
- new u64(0x4cc5d4be, 0xcb3e42b6), new u64(0x597f299c, 0xfc657e2a),
- new u64(0x5fcb6fab, 0x3ad6faec), new u64(0x6c44198c, 0x4a475817)
-];
-
-function crypto_hashblocks(x, m, n) {
- var z = [], b = [], a = [], w = [], t, i, j;
-
- for (i = 0; i < 8; i++) z[i] = a[i] = dl64(x, 8*i);
-
- var pos = 0;
- while (n >= 128) {
- for (i = 0; i < 16; i++) w[i] = dl64(m, 8*i+pos);
- for (i = 0; i < 80; i++) {
- for (j = 0; j < 8; j++) b[j] = a[j];
- t = add64(a[7], Sigma1(a[4]), Ch(a[4], a[5], a[6]), K[i], w[i%16]);
- b[7] = add64(t, Sigma0(a[0]), Maj(a[0], a[1], a[2]));
- b[3] = add64(b[3], t);
- for (j = 0; j < 8; j++) a[(j+1)%8] = b[j];
- if (i%16 === 15) {
- for (j = 0; j < 16; j++) {
- w[j] = add64(w[j], w[(j+9)%16], sigma0(w[(j+1)%16]), sigma1(w[(j+14)%16]));
- }
- }
- }
-
- for (i = 0; i < 8; i++) {
- a[i] = add64(a[i], z[i]);
- z[i] = a[i];
- }
-
- pos += 128;
- n -= 128;
- }
-
- for (i = 0; i < 8; i++) ts64(x, 8*i, z[i]);
- return n;
-}
-
-var iv = new Uint8Array([
- 0x6a,0x09,0xe6,0x67,0xf3,0xbc,0xc9,0x08,
- 0xbb,0x67,0xae,0x85,0x84,0xca,0xa7,0x3b,
- 0x3c,0x6e,0xf3,0x72,0xfe,0x94,0xf8,0x2b,
- 0xa5,0x4f,0xf5,0x3a,0x5f,0x1d,0x36,0xf1,
- 0x51,0x0e,0x52,0x7f,0xad,0xe6,0x82,0xd1,
- 0x9b,0x05,0x68,0x8c,0x2b,0x3e,0x6c,0x1f,
- 0x1f,0x83,0xd9,0xab,0xfb,0x41,0xbd,0x6b,
- 0x5b,0xe0,0xcd,0x19,0x13,0x7e,0x21,0x79
-]);
-
-function crypto_hash(out, m, n) {
- var h = new Uint8Array(64), x = new Uint8Array(256);
- var i, b = n;
-
- for (i = 0; i < 64; i++) h[i] = iv[i];
-
- crypto_hashblocks(h, m, n);
- n %= 128;
-
- for (i = 0; i < 256; i++) x[i] = 0;
- for (i = 0; i < n; i++) x[i] = m[b-n+i];
- x[n] = 128;
-
- n = 256-128*(n<112?1:0);
- x[n-9] = 0;
- ts64(x, n-8, new u64((b / 0x20000000) | 0, b << 3));
- crypto_hashblocks(h, x, n);
-
- for (i = 0; i < 64; i++) out[i] = h[i];
-
- return 0;
-}
-
-function add(p, q) {
- var a = gf(), b = gf(), c = gf(),
- d = gf(), e = gf(), f = gf(),
- g = gf(), h = gf(), t = gf();
-
- Z(a, p[1], p[0]);
- Z(t, q[1], q[0]);
- M(a, a, t);
- A(b, p[0], p[1]);
- A(t, q[0], q[1]);
- M(b, b, t);
- M(c, p[3], q[3]);
- M(c, c, D2);
- M(d, p[2], q[2]);
- A(d, d, d);
- Z(e, b, a);
- Z(f, d, c);
- A(g, d, c);
- A(h, b, a);
-
- M(p[0], e, f);
- M(p[1], h, g);
- M(p[2], g, f);
- M(p[3], e, h);
-}
-
-function cswap(p, q, b) {
- var i;
- for (i = 0; i < 4; i++) {
- sel25519(p[i], q[i], b);
- }
-}
-
-function pack(r, p) {
- var tx = gf(), ty = gf(), zi = gf();
- inv25519(zi, p[2]);
- M(tx, p[0], zi);
- M(ty, p[1], zi);
- pack25519(r, ty);
- r[31] ^= par25519(tx) << 7;
-}
-
-function scalarmult(p, q, s) {
- var b, i;
- set25519(p[0], gf0);
- set25519(p[1], gf1);
- set25519(p[2], gf1);
- set25519(p[3], gf0);
- for (i = 255; i >= 0; --i) {
- b = (s[(i/8)|0] >> (i&7)) & 1;
- cswap(p, q, b);
- add(q, p);
- add(p, p);
- cswap(p, q, b);
- }
-}
-
-function scalarbase(p, s) {
- var q = [gf(), gf(), gf(), gf()];
- set25519(q[0], X);
- set25519(q[1], Y);
- set25519(q[2], gf1);
- M(q[3], X, Y);
- scalarmult(p, q, s);
-}
-
-function crypto_sign_keypair(pk, sk, seeded) {
- var d = new Uint8Array(64);
- var p = [gf(), gf(), gf(), gf()];
- var i;
-
- if (!seeded) randombytes(sk, 32);
- crypto_hash(d, sk, 32);
- d[0] &= 248;
- d[31] &= 127;
- d[31] |= 64;
-
- scalarbase(p, d);
- pack(pk, p);
-
- for (i = 0; i < 32; i++) sk[i+32] = pk[i];
- return 0;
-}
-
-var L = new Float64Array([0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]);
-
-function modL(r, x) {
- var carry, i, j, k;
- for (i = 63; i >= 32; --i) {
- carry = 0;
- for (j = i - 32, k = i - 12; j < k; ++j) {
- x[j] += carry - 16 * x[i] * L[j - (i - 32)];
- carry = (x[j] + 128) >> 8;
- x[j] -= carry * 256;
- }
- x[j] += carry;
- x[i] = 0;
- }
- carry = 0;
- for (j = 0; j < 32; j++) {
- x[j] += carry - (x[31] >> 4) * L[j];
- carry = x[j] >> 8;
- x[j] &= 255;
- }
- for (j = 0; j < 32; j++) x[j] -= carry * L[j];
- for (i = 0; i < 32; i++) {
- x[i+1] += x[i] >> 8;
- r[i] = x[i] & 255;
- }
-}
-
-function reduce(r) {
- var x = new Float64Array(64), i;
- for (i = 0; i < 64; i++) x[i] = r[i];
- for (i = 0; i < 64; i++) r[i] = 0;
- modL(r, x);
-}
-
-// Note: difference from C - smlen returned, not passed as argument.
-function crypto_sign(sm, m, n, sk) {
- var d = new Uint8Array(64), h = new Uint8Array(64), r = new Uint8Array(64);
- var i, j, x = new Float64Array(64);
- var p = [gf(), gf(), gf(), gf()];
-
- crypto_hash(d, sk, 32);
- d[0] &= 248;
- d[31] &= 127;
- d[31] |= 64;
-
- var smlen = n + 64;
- for (i = 0; i < n; i++) sm[64 + i] = m[i];
- for (i = 0; i < 32; i++) sm[32 + i] = d[32 + i];
-
- crypto_hash(r, sm.subarray(32), n+32);
- reduce(r);
- scalarbase(p, r);
- pack(sm, p);
-
- for (i = 32; i < 64; i++) sm[i] = sk[i];
- crypto_hash(h, sm, n + 64);
- reduce(h);
-
- for (i = 0; i < 64; i++) x[i] = 0;
- for (i = 0; i < 32; i++) x[i] = r[i];
- for (i = 0; i < 32; i++) {
- for (j = 0; j < 32; j++) {
- x[i+j] += h[i] * d[j];
- }
- }
-
- modL(sm.subarray(32), x);
- return smlen;
-}
-
-function unpackneg(r, p) {
- var t = gf(), chk = gf(), num = gf(),
- den = gf(), den2 = gf(), den4 = gf(),
- den6 = gf();
-
- set25519(r[2], gf1);
- unpack25519(r[1], p);
- S(num, r[1]);
- M(den, num, D);
- Z(num, num, r[2]);
- A(den, r[2], den);
-
- S(den2, den);
- S(den4, den2);
- M(den6, den4, den2);
- M(t, den6, num);
- M(t, t, den);
-
- pow2523(t, t);
- M(t, t, num);
- M(t, t, den);
- M(t, t, den);
- M(r[0], t, den);
-
- S(chk, r[0]);
- M(chk, chk, den);
- if (neq25519(chk, num)) M(r[0], r[0], I);
-
- S(chk, r[0]);
- M(chk, chk, den);
- if (neq25519(chk, num)) return -1;
-
- if (par25519(r[0]) === (p[31]>>7)) Z(r[0], gf0, r[0]);
-
- M(r[3], r[0], r[1]);
- return 0;
-}
-
-function crypto_sign_open(m, sm, n, pk) {
- var i, mlen;
- var t = new Uint8Array(32), h = new Uint8Array(64);
- var p = [gf(), gf(), gf(), gf()],
- q = [gf(), gf(), gf(), gf()];
-
- mlen = -1;
- if (n < 64) return -1;
-
- if (unpackneg(q, pk)) return -1;
-
- for (i = 0; i < n; i++) m[i] = sm[i];
- for (i = 0; i < 32; i++) m[i+32] = pk[i];
- crypto_hash(h, m, n);
- reduce(h);
- scalarmult(p, q, h);
-
- scalarbase(q, sm.subarray(32));
- add(p, q);
- pack(t, p);
-
- n -= 64;
- if (crypto_verify_32(sm, 0, t, 0)) {
- for (i = 0; i < n; i++) m[i] = 0;
- return -1;
- }
-
- for (i = 0; i < n; i++) m[i] = sm[i + 64];
- mlen = n;
- return mlen;
-}
-
-var crypto_secretbox_KEYBYTES = 32,
- crypto_secretbox_NONCEBYTES = 24,
- crypto_secretbox_ZEROBYTES = 32,
- crypto_secretbox_BOXZEROBYTES = 16,
- crypto_scalarmult_BYTES = 32,
- crypto_scalarmult_SCALARBYTES = 32,
- crypto_box_PUBLICKEYBYTES = 32,
- crypto_box_SECRETKEYBYTES = 32,
- crypto_box_BEFORENMBYTES = 32,
- crypto_box_NONCEBYTES = crypto_secretbox_NONCEBYTES,
- crypto_box_ZEROBYTES = crypto_secretbox_ZEROBYTES,
- crypto_box_BOXZEROBYTES = crypto_secretbox_BOXZEROBYTES,
- crypto_sign_BYTES = 64,
- crypto_sign_PUBLICKEYBYTES = 32,
- crypto_sign_SECRETKEYBYTES = 64,
- crypto_sign_SEEDBYTES = 32,
- crypto_hash_BYTES = 64;
-
-nacl.lowlevel = {
- crypto_core_hsalsa20: crypto_core_hsalsa20,
- crypto_stream_xor: crypto_stream_xor,
- crypto_stream: crypto_stream,
- crypto_stream_salsa20_xor: crypto_stream_salsa20_xor,
- crypto_stream_salsa20: crypto_stream_salsa20,
- crypto_onetimeauth: crypto_onetimeauth,
- crypto_onetimeauth_verify: crypto_onetimeauth_verify,
- crypto_verify_16: crypto_verify_16,
- crypto_verify_32: crypto_verify_32,
- crypto_secretbox: crypto_secretbox,
- crypto_secretbox_open: crypto_secretbox_open,
- crypto_scalarmult: crypto_scalarmult,
- crypto_scalarmult_base: crypto_scalarmult_base,
- crypto_box_beforenm: crypto_box_beforenm,
- crypto_box_afternm: crypto_box_afternm,
- crypto_box: crypto_box,
- crypto_box_open: crypto_box_open,
- crypto_box_keypair: crypto_box_keypair,
- crypto_hash: crypto_hash,
- crypto_sign: crypto_sign,
- crypto_sign_keypair: crypto_sign_keypair,
- crypto_sign_open: crypto_sign_open,
-
- crypto_secretbox_KEYBYTES: crypto_secretbox_KEYBYTES,
- crypto_secretbox_NONCEBYTES: crypto_secretbox_NONCEBYTES,
- crypto_secretbox_ZEROBYTES: crypto_secretbox_ZEROBYTES,
- crypto_secretbox_BOXZEROBYTES: crypto_secretbox_BOXZEROBYTES,
- crypto_scalarmult_BYTES: crypto_scalarmult_BYTES,
- crypto_scalarmult_SCALARBYTES: crypto_scalarmult_SCALARBYTES,
- crypto_box_PUBLICKEYBYTES: crypto_box_PUBLICKEYBYTES,
- crypto_box_SECRETKEYBYTES: crypto_box_SECRETKEYBYTES,
- crypto_box_BEFORENMBYTES: crypto_box_BEFORENMBYTES,
- crypto_box_NONCEBYTES: crypto_box_NONCEBYTES,
- crypto_box_ZEROBYTES: crypto_box_ZEROBYTES,
- crypto_box_BOXZEROBYTES: crypto_box_BOXZEROBYTES,
- crypto_sign_BYTES: crypto_sign_BYTES,
- crypto_sign_PUBLICKEYBYTES: crypto_sign_PUBLICKEYBYTES,
- crypto_sign_SECRETKEYBYTES: crypto_sign_SECRETKEYBYTES,
- crypto_sign_SEEDBYTES: crypto_sign_SEEDBYTES,
- crypto_hash_BYTES: crypto_hash_BYTES
-};
-
-/* High-level API */
-
-function checkLengths(k, n) {
- if (k.length !== crypto_secretbox_KEYBYTES) throw new Error('bad key size');
- if (n.length !== crypto_secretbox_NONCEBYTES) throw new Error('bad nonce size');
-}
-
-function checkBoxLengths(pk, sk) {
- if (pk.length !== crypto_box_PUBLICKEYBYTES) throw new Error('bad public key size');
- if (sk.length !== crypto_box_SECRETKEYBYTES) throw new Error('bad secret key size');
-}
-
-function checkArrayTypes() {
- var t, i;
- for (i = 0; i < arguments.length; i++) {
- if ((t = Object.prototype.toString.call(arguments[i])) !== '[object Uint8Array]')
- throw new TypeError('unexpected type ' + t + ', use Uint8Array');
- }
-}
-
-function cleanup(arr) {
- for (var i = 0; i < arr.length; i++) arr[i] = 0;
-}
-
-// TODO: Completely remove this in v0.15.
-if (!nacl.util) {
- nacl.util = {};
- nacl.util.decodeUTF8 = nacl.util.encodeUTF8 = nacl.util.encodeBase64 = nacl.util.decodeBase64 = function() {
- throw new Error('nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js');
- };
-}
-
-nacl.randomBytes = function(n) {
- var b = new Uint8Array(n);
- randombytes(b, n);
- return b;
-};
-
-nacl.secretbox = function(msg, nonce, key) {
- checkArrayTypes(msg, nonce, key);
- checkLengths(key, nonce);
- var m = new Uint8Array(crypto_secretbox_ZEROBYTES + msg.length);
- var c = new Uint8Array(m.length);
- for (var i = 0; i < msg.length; i++) m[i+crypto_secretbox_ZEROBYTES] = msg[i];
- crypto_secretbox(c, m, m.length, nonce, key);
- return c.subarray(crypto_secretbox_BOXZEROBYTES);
-};
-
-nacl.secretbox.open = function(box, nonce, key) {
- checkArrayTypes(box, nonce, key);
- checkLengths(key, nonce);
- var c = new Uint8Array(crypto_secretbox_BOXZEROBYTES + box.length);
- var m = new Uint8Array(c.length);
- for (var i = 0; i < box.length; i++) c[i+crypto_secretbox_BOXZEROBYTES] = box[i];
- if (c.length < 32) return false;
- if (crypto_secretbox_open(m, c, c.length, nonce, key) !== 0) return false;
- return m.subarray(crypto_secretbox_ZEROBYTES);
-};
-
-nacl.secretbox.keyLength = crypto_secretbox_KEYBYTES;
-nacl.secretbox.nonceLength = crypto_secretbox_NONCEBYTES;
-nacl.secretbox.overheadLength = crypto_secretbox_BOXZEROBYTES;
-
-nacl.scalarMult = function(n, p) {
- checkArrayTypes(n, p);
- if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size');
- if (p.length !== crypto_scalarmult_BYTES) throw new Error('bad p size');
- var q = new Uint8Array(crypto_scalarmult_BYTES);
- crypto_scalarmult(q, n, p);
- return q;
-};
-
-nacl.scalarMult.base = function(n) {
- checkArrayTypes(n);
- if (n.length !== crypto_scalarmult_SCALARBYTES) throw new Error('bad n size');
- var q = new Uint8Array(crypto_scalarmult_BYTES);
- crypto_scalarmult_base(q, n);
- return q;
-};
-
-nacl.scalarMult.scalarLength = crypto_scalarmult_SCALARBYTES;
-nacl.scalarMult.groupElementLength = crypto_scalarmult_BYTES;
-
-nacl.box = function(msg, nonce, publicKey, secretKey) {
- var k = nacl.box.before(publicKey, secretKey);
- return nacl.secretbox(msg, nonce, k);
-};
-
-nacl.box.before = function(publicKey, secretKey) {
- checkArrayTypes(publicKey, secretKey);
- checkBoxLengths(publicKey, secretKey);
- var k = new Uint8Array(crypto_box_BEFORENMBYTES);
- crypto_box_beforenm(k, publicKey, secretKey);
- return k;
-};
-
-nacl.box.after = nacl.secretbox;
-
-nacl.box.open = function(msg, nonce, publicKey, secretKey) {
- var k = nacl.box.before(publicKey, secretKey);
- return nacl.secretbox.open(msg, nonce, k);
-};
-
-nacl.box.open.after = nacl.secretbox.open;
-
-nacl.box.keyPair = function() {
- var pk = new Uint8Array(crypto_box_PUBLICKEYBYTES);
- var sk = new Uint8Array(crypto_box_SECRETKEYBYTES);
- crypto_box_keypair(pk, sk);
- return {publicKey: pk, secretKey: sk};
-};
-
-nacl.box.keyPair.fromSecretKey = function(secretKey) {
- checkArrayTypes(secretKey);
- if (secretKey.length !== crypto_box_SECRETKEYBYTES)
- throw new Error('bad secret key size');
- var pk = new Uint8Array(crypto_box_PUBLICKEYBYTES);
- crypto_scalarmult_base(pk, secretKey);
- return {publicKey: pk, secretKey: new Uint8Array(secretKey)};
-};
-
-nacl.box.publicKeyLength = crypto_box_PUBLICKEYBYTES;
-nacl.box.secretKeyLength = crypto_box_SECRETKEYBYTES;
-nacl.box.sharedKeyLength = crypto_box_BEFORENMBYTES;
-nacl.box.nonceLength = crypto_box_NONCEBYTES;
-nacl.box.overheadLength = nacl.secretbox.overheadLength;
-
-nacl.sign = function(msg, secretKey) {
- checkArrayTypes(msg, secretKey);
- if (secretKey.length !== crypto_sign_SECRETKEYBYTES)
- throw new Error('bad secret key size');
- var signedMsg = new Uint8Array(crypto_sign_BYTES+msg.length);
- crypto_sign(signedMsg, msg, msg.length, secretKey);
- return signedMsg;
-};
-
-nacl.sign.open = function(signedMsg, publicKey) {
- if (arguments.length !== 2)
- throw new Error('nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?');
- checkArrayTypes(signedMsg, publicKey);
- if (publicKey.length !== crypto_sign_PUBLICKEYBYTES)
- throw new Error('bad public key size');
- var tmp = new Uint8Array(signedMsg.length);
- var mlen = crypto_sign_open(tmp, signedMsg, signedMsg.length, publicKey);
- if (mlen < 0) return null;
- var m = new Uint8Array(mlen);
- for (var i = 0; i < m.length; i++) m[i] = tmp[i];
- return m;
-};
-
-nacl.sign.detached = function(msg, secretKey) {
- var signedMsg = nacl.sign(msg, secretKey);
- var sig = new Uint8Array(crypto_sign_BYTES);
- for (var i = 0; i < sig.length; i++) sig[i] = signedMsg[i];
- return sig;
-};
-
-nacl.sign.detached.verify = function(msg, sig, publicKey) {
- checkArrayTypes(msg, sig, publicKey);
- if (sig.length !== crypto_sign_BYTES)
- throw new Error('bad signature size');
- if (publicKey.length !== crypto_sign_PUBLICKEYBYTES)
- throw new Error('bad public key size');
- var sm = new Uint8Array(crypto_sign_BYTES + msg.length);
- var m = new Uint8Array(crypto_sign_BYTES + msg.length);
- var i;
- for (i = 0; i < crypto_sign_BYTES; i++) sm[i] = sig[i];
- for (i = 0; i < msg.length; i++) sm[i+crypto_sign_BYTES] = msg[i];
- return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0);
-};
-
-nacl.sign.keyPair = function() {
- var pk = new Uint8Array(crypto_sign_PUBLICKEYBYTES);
- var sk = new Uint8Array(crypto_sign_SECRETKEYBYTES);
- crypto_sign_keypair(pk, sk);
- return {publicKey: pk, secretKey: sk};
-};
-
-nacl.sign.keyPair.fromSecretKey = function(secretKey) {
- checkArrayTypes(secretKey);
- if (secretKey.length !== crypto_sign_SECRETKEYBYTES)
- throw new Error('bad secret key size');
- var pk = new Uint8Array(crypto_sign_PUBLICKEYBYTES);
- for (var i = 0; i < pk.length; i++) pk[i] = secretKey[32+i];
- return {publicKey: pk, secretKey: new Uint8Array(secretKey)};
-};
-
-nacl.sign.keyPair.fromSeed = function(seed) {
- checkArrayTypes(seed);
- if (seed.length !== crypto_sign_SEEDBYTES)
- throw new Error('bad seed size');
- var pk = new Uint8Array(crypto_sign_PUBLICKEYBYTES);
- var sk = new Uint8Array(crypto_sign_SECRETKEYBYTES);
- for (var i = 0; i < 32; i++) sk[i] = seed[i];
- crypto_sign_keypair(pk, sk, true);
- return {publicKey: pk, secretKey: sk};
-};
-
-nacl.sign.publicKeyLength = crypto_sign_PUBLICKEYBYTES;
-nacl.sign.secretKeyLength = crypto_sign_SECRETKEYBYTES;
-nacl.sign.seedLength = crypto_sign_SEEDBYTES;
-nacl.sign.signatureLength = crypto_sign_BYTES;
-
-nacl.hash = function(msg) {
- checkArrayTypes(msg);
- var h = new Uint8Array(crypto_hash_BYTES);
- crypto_hash(h, msg, msg.length);
- return h;
-};
-
-nacl.hash.hashLength = crypto_hash_BYTES;
-
-nacl.verify = function(x, y) {
- checkArrayTypes(x, y);
- // Zero length arguments are considered not equal.
- if (x.length === 0 || y.length === 0) return false;
- if (x.length !== y.length) return false;
- return (vn(x, 0, y, 0, x.length) === 0) ? true : false;
-};
-
-nacl.setPRNG = function(fn) {
- randombytes = fn;
-};
-
-(function() {
- // Initialize PRNG if environment provides CSPRNG.
- // If not, methods calling randombytes will throw.
- var crypto = typeof self !== 'undefined' ? (self.crypto || self.msCrypto) : null;
- if (crypto && crypto.getRandomValues) {
- // Browsers.
- var QUOTA = 65536;
- nacl.setPRNG(function(x, n) {
- var i, v = new Uint8Array(n);
- for (i = 0; i < n; i += QUOTA) {
- crypto.getRandomValues(v.subarray(i, i + Math.min(n - i, QUOTA)));
- }
- for (i = 0; i < n; i++) x[i] = v[i];
- cleanup(v);
- });
- } else if (typeof require !== 'undefined') {
- // Node.js.
- crypto = require('crypto');
- if (crypto && crypto.randomBytes) {
- nacl.setPRNG(function(x, n) {
- var i, v = crypto.randomBytes(n);
- for (i = 0; i < n; i++) x[i] = v[i];
- cleanup(v);
- });
- }
- }
-})();
-
-})(typeof module !== 'undefined' && module.exports ? module.exports : (self.nacl = self.nacl || {}));
diff --git a/node_modules/tweetnacl/nacl.min.js b/node_modules/tweetnacl/nacl.min.js
deleted file mode 100644
index 4484974..0000000
--- a/node_modules/tweetnacl/nacl.min.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(r){"use strict";function n(r,n){return r<<n|r>>>32-n}function e(r,n){var e=255&r[n+3];return e=e<<8|255&r[n+2],e=e<<8|255&r[n+1],e<<8|255&r[n+0]}function t(r,n){var e=r[n]<<24|r[n+1]<<16|r[n+2]<<8|r[n+3],t=r[n+4]<<24|r[n+5]<<16|r[n+6]<<8|r[n+7];return new sr(e,t)}function o(r,n,e){var t;for(t=0;t<4;t++)r[n+t]=255&e,e>>>=8}function i(r,n,e){r[n]=e.hi>>24&255,r[n+1]=e.hi>>16&255,r[n+2]=e.hi>>8&255,r[n+3]=255&e.hi,r[n+4]=e.lo>>24&255,r[n+5]=e.lo>>16&255,r[n+6]=e.lo>>8&255,r[n+7]=255&e.lo}function a(r,n,e,t,o){var i,a=0;for(i=0;i<o;i++)a|=r[n+i]^e[t+i];return(1&a-1>>>8)-1}function f(r,n,e,t){return a(r,n,e,t,16)}function u(r,n,e,t){return a(r,n,e,t,32)}function c(r,t,i,a,f){var u,c,w,y=new Uint32Array(16),l=new Uint32Array(16),s=new Uint32Array(16),h=new Uint32Array(4);for(u=0;u<4;u++)l[5*u]=e(a,4*u),l[1+u]=e(i,4*u),l[6+u]=e(t,4*u),l[11+u]=e(i,16+4*u);for(u=0;u<16;u++)s[u]=l[u];for(u=0;u<20;u++){for(c=0;c<4;c++){for(w=0;w<4;w++)h[w]=l[(5*c+4*w)%16];for(h[1]^=n(h[0]+h[3]|0,7),h[2]^=n(h[1]+h[0]|0,9),h[3]^=n(h[2]+h[1]|0,13),h[0]^=n(h[3]+h[2]|0,18),w=0;w<4;w++)y[4*c+(c+w)%4]=h[w]}for(w=0;w<16;w++)l[w]=y[w]}if(f){for(u=0;u<16;u++)l[u]=l[u]+s[u]|0;for(u=0;u<4;u++)l[5*u]=l[5*u]-e(a,4*u)|0,l[6+u]=l[6+u]-e(t,4*u)|0;for(u=0;u<4;u++)o(r,4*u,l[5*u]),o(r,16+4*u,l[6+u])}else for(u=0;u<16;u++)o(r,4*u,l[u]+s[u]|0)}function w(r,n,e,t){return c(r,n,e,t,!1),0}function y(r,n,e,t){return c(r,n,e,t,!0),0}function l(r,n,e,t,o,i,a){var f,u,c=new Uint8Array(16),y=new Uint8Array(64);if(!o)return 0;for(u=0;u<16;u++)c[u]=0;for(u=0;u<8;u++)c[u]=i[u];for(;o>=64;){for(w(y,c,a,Br),u=0;u<64;u++)r[n+u]=(e?e[t+u]:0)^y[u];for(f=1,u=8;u<16;u++)f=f+(255&c[u])|0,c[u]=255&f,f>>>=8;o-=64,n+=64,e&&(t+=64)}if(o>0)for(w(y,c,a,Br),u=0;u<o;u++)r[n+u]=(e?e[t+u]:0)^y[u];return 0}function s(r,n,e,t,o){return l(r,n,null,0,e,t,o)}function h(r,n,e,t,o){var i=new Uint8Array(32);return y(i,t,o,Br),s(r,n,e,t.subarray(16),i)}function g(r,n,e,t,o,i,a){var f=new Uint8Array(32);return y(f,i,a,Br),l(r,n,e,t,o,i.subarray(16),f)}function v(r,n){var e,t=0;for(e=0;e<17;e++)t=t+(r[e]+n[e]|0)|0,r[e]=255&t,t>>>=8}function b(r,n,e,t,o,i){var a,f,u,c,w=new Uint32Array(17),y=new Uint32Array(17),l=new Uint32Array(17),s=new Uint32Array(17),h=new Uint32Array(17);for(u=0;u<17;u++)y[u]=l[u]=0;for(u=0;u<16;u++)y[u]=i[u];for(y[3]&=15,y[4]&=252,y[7]&=15,y[8]&=252,y[11]&=15,y[12]&=252,y[15]&=15;o>0;){for(u=0;u<17;u++)s[u]=0;for(u=0;u<16&&u<o;++u)s[u]=e[t+u];for(s[u]=1,t+=u,o-=u,v(l,s),f=0;f<17;f++)for(w[f]=0,u=0;u<17;u++)w[f]=w[f]+l[u]*(u<=f?y[f-u]:320*y[f+17-u]|0)|0|0;for(f=0;f<17;f++)l[f]=w[f];for(c=0,u=0;u<16;u++)c=c+l[u]|0,l[u]=255&c,c>>>=8;for(c=c+l[16]|0,l[16]=3&c,c=5*(c>>>2)|0,u=0;u<16;u++)c=c+l[u]|0,l[u]=255&c,c>>>=8;c=c+l[16]|0,l[16]=c}for(u=0;u<17;u++)h[u]=l[u];for(v(l,Sr),a=0|-(l[16]>>>7),u=0;u<17;u++)l[u]^=a&(h[u]^l[u]);for(u=0;u<16;u++)s[u]=i[u+16];for(s[16]=0,v(l,s),u=0;u<16;u++)r[n+u]=l[u];return 0}function p(r,n,e,t,o,i){var a=new Uint8Array(16);return b(a,0,e,t,o,i),f(r,n,a,0)}function _(r,n,e,t,o){var i;if(e<32)return-1;for(g(r,0,n,0,e,t,o),b(r,16,r,32,e-32,r),i=0;i<16;i++)r[i]=0;return 0}function A(r,n,e,t,o){var i,a=new Uint8Array(32);if(e<32)return-1;if(h(a,0,32,t,o),0!==p(n,16,n,32,e-32,a))return-1;for(g(r,0,n,0,e,t,o),i=0;i<32;i++)r[i]=0;return 0}function U(r,n){var e;for(e=0;e<16;e++)r[e]=0|n[e]}function E(r){var n,e;for(e=0;e<16;e++)r[e]+=65536,n=Math.floor(r[e]/65536),r[(e+1)*(e<15?1:0)]+=n-1+37*(n-1)*(15===e?1:0),r[e]-=65536*n}function d(r,n,e){for(var t,o=~(e-1),i=0;i<16;i++)t=o&(r[i]^n[i]),r[i]^=t,n[i]^=t}function x(r,n){var e,t,o,i=hr(),a=hr();for(e=0;e<16;e++)a[e]=n[e];for(E(a),E(a),E(a),t=0;t<2;t++){for(i[0]=a[0]-65517,e=1;e<15;e++)i[e]=a[e]-65535-(i[e-1]>>16&1),i[e-1]&=65535;i[15]=a[15]-32767-(i[14]>>16&1),o=i[15]>>16&1,i[14]&=65535,d(a,i,1-o)}for(e=0;e<16;e++)r[2*e]=255&a[e],r[2*e+1]=a[e]>>8}function m(r,n){var e=new Uint8Array(32),t=new Uint8Array(32);return x(e,r),x(t,n),u(e,0,t,0)}function B(r){var n=new Uint8Array(32);return x(n,r),1&n[0]}function S(r,n){var e;for(e=0;e<16;e++)r[e]=n[2*e]+(n[2*e+1]<<8);r[15]&=32767}function K(r,n,e){var t;for(t=0;t<16;t++)r[t]=n[t]+e[t]|0}function T(r,n,e){var t;for(t=0;t<16;t++)r[t]=n[t]-e[t]|0}function Y(r,n,e){var t,o,i=new Float64Array(31);for(t=0;t<31;t++)i[t]=0;for(t=0;t<16;t++)for(o=0;o<16;o++)i[t+o]+=n[t]*e[o];for(t=0;t<15;t++)i[t]+=38*i[t+16];for(t=0;t<16;t++)r[t]=i[t];E(r),E(r)}function L(r,n){Y(r,n,n)}function k(r,n){var e,t=hr();for(e=0;e<16;e++)t[e]=n[e];for(e=253;e>=0;e--)L(t,t),2!==e&&4!==e&&Y(t,t,n);for(e=0;e<16;e++)r[e]=t[e]}function z(r,n){var e,t=hr();for(e=0;e<16;e++)t[e]=n[e];for(e=250;e>=0;e--)L(t,t),1!==e&&Y(t,t,n);for(e=0;e<16;e++)r[e]=t[e]}function R(r,n,e){var t,o,i=new Uint8Array(32),a=new Float64Array(80),f=hr(),u=hr(),c=hr(),w=hr(),y=hr(),l=hr();for(o=0;o<31;o++)i[o]=n[o];for(i[31]=127&n[31]|64,i[0]&=248,S(a,e),o=0;o<16;o++)u[o]=a[o],w[o]=f[o]=c[o]=0;for(f[0]=w[0]=1,o=254;o>=0;--o)t=i[o>>>3]>>>(7&o)&1,d(f,u,t),d(c,w,t),K(y,f,c),T(f,f,c),K(c,u,w),T(u,u,w),L(w,y),L(l,f),Y(f,c,f),Y(c,u,y),K(y,f,c),T(f,f,c),L(u,f),T(c,w,l),Y(f,c,Ar),K(f,f,w),Y(c,c,f),Y(f,w,l),Y(w,u,a),L(u,y),d(f,u,t),d(c,w,t);for(o=0;o<16;o++)a[o+16]=f[o],a[o+32]=c[o],a[o+48]=u[o],a[o+64]=w[o];var s=a.subarray(32),h=a.subarray(16);return k(s,s),Y(h,h,s),x(r,h),0}function P(r,n){return R(r,n,br)}function O(r,n){return gr(n,32),P(r,n)}function F(r,n,e){var t=new Uint8Array(32);return R(t,e,n),y(r,vr,t,Br)}function N(r,n,e,t,o,i){var a=new Uint8Array(32);return F(a,o,i),Kr(r,n,e,t,a)}function C(r,n,e,t,o,i){var a=new Uint8Array(32);return F(a,o,i),Tr(r,n,e,t,a)}function M(){var r,n,e,t=0,o=0,i=0,a=0,f=65535;for(e=0;e<arguments.length;e++)r=arguments[e].lo,n=arguments[e].hi,t+=r&f,o+=r>>>16,i+=n&f,a+=n>>>16;return o+=t>>>16,i+=o>>>16,a+=i>>>16,new sr(i&f|a<<16,t&f|o<<16)}function G(r,n){return new sr(r.hi>>>n,r.lo>>>n|r.hi<<32-n)}function Z(){var r,n=0,e=0;for(r=0;r<arguments.length;r++)n^=arguments[r].lo,e^=arguments[r].hi;return new sr(e,n)}function j(r,n){var e,t,o=32-n;return n<32?(e=r.hi>>>n|r.lo<<o,t=r.lo>>>n|r.hi<<o):n<64&&(e=r.lo>>>n|r.hi<<o,t=r.hi>>>n|r.lo<<o),new sr(e,t)}function q(r,n,e){var t=r.hi&n.hi^~r.hi&e.hi,o=r.lo&n.lo^~r.lo&e.lo;return new sr(t,o)}function I(r,n,e){var t=r.hi&n.hi^r.hi&e.hi^n.hi&e.hi,o=r.lo&n.lo^r.lo&e.lo^n.lo&e.lo;return new sr(t,o)}function V(r){return Z(j(r,28),j(r,34),j(r,39))}function X(r){return Z(j(r,14),j(r,18),j(r,41))}function D(r){return Z(j(r,1),j(r,8),G(r,7))}function H(r){return Z(j(r,19),j(r,61),G(r,6))}function J(r,n,e){var o,a,f,u=[],c=[],w=[],y=[];for(a=0;a<8;a++)u[a]=w[a]=t(r,8*a);for(var l=0;e>=128;){for(a=0;a<16;a++)y[a]=t(n,8*a+l);for(a=0;a<80;a++){for(f=0;f<8;f++)c[f]=w[f];for(o=M(w[7],X(w[4]),q(w[4],w[5],w[6]),Yr[a],y[a%16]),c[7]=M(o,V(w[0]),I(w[0],w[1],w[2])),c[3]=M(c[3],o),f=0;f<8;f++)w[(f+1)%8]=c[f];if(a%16===15)for(f=0;f<16;f++)y[f]=M(y[f],y[(f+9)%16],D(y[(f+1)%16]),H(y[(f+14)%16]))}for(a=0;a<8;a++)w[a]=M(w[a],u[a]),u[a]=w[a];l+=128,e-=128}for(a=0;a<8;a++)i(r,8*a,u[a]);return e}function Q(r,n,e){var t,o=new Uint8Array(64),a=new Uint8Array(256),f=e;for(t=0;t<64;t++)o[t]=Lr[t];for(J(o,n,e),e%=128,t=0;t<256;t++)a[t]=0;for(t=0;t<e;t++)a[t]=n[f-e+t];for(a[e]=128,e=256-128*(e<112?1:0),a[e-9]=0,i(a,e-8,new sr(f/536870912|0,f<<3)),J(o,a,e),t=0;t<64;t++)r[t]=o[t];return 0}function W(r,n){var e=hr(),t=hr(),o=hr(),i=hr(),a=hr(),f=hr(),u=hr(),c=hr(),w=hr();T(e,r[1],r[0]),T(w,n[1],n[0]),Y(e,e,w),K(t,r[0],r[1]),K(w,n[0],n[1]),Y(t,t,w),Y(o,r[3],n[3]),Y(o,o,Er),Y(i,r[2],n[2]),K(i,i,i),T(a,t,e),T(f,i,o),K(u,i,o),K(c,t,e),Y(r[0],a,f),Y(r[1],c,u),Y(r[2],u,f),Y(r[3],a,c)}function $(r,n,e){var t;for(t=0;t<4;t++)d(r[t],n[t],e)}function rr(r,n){var e=hr(),t=hr(),o=hr();k(o,n[2]),Y(e,n[0],o),Y(t,n[1],o),x(r,t),r[31]^=B(e)<<7}function nr(r,n,e){var t,o;for(U(r[0],pr),U(r[1],_r),U(r[2],_r),U(r[3],pr),o=255;o>=0;--o)t=e[o/8|0]>>(7&o)&1,$(r,n,t),W(n,r),W(r,r),$(r,n,t)}function er(r,n){var e=[hr(),hr(),hr(),hr()];U(e[0],dr),U(e[1],xr),U(e[2],_r),Y(e[3],dr,xr),nr(r,e,n)}function tr(r,n,e){var t,o=new Uint8Array(64),i=[hr(),hr(),hr(),hr()];for(e||gr(n,32),Q(o,n,32),o[0]&=248,o[31]&=127,o[31]|=64,er(i,o),rr(r,i),t=0;t<32;t++)n[t+32]=r[t];return 0}function or(r,n){var e,t,o,i;for(t=63;t>=32;--t){for(e=0,o=t-32,i=t-12;o<i;++o)n[o]+=e-16*n[t]*kr[o-(t-32)],e=n[o]+128>>8,n[o]-=256*e;n[o]+=e,n[t]=0}for(e=0,o=0;o<32;o++)n[o]+=e-(n[31]>>4)*kr[o],e=n[o]>>8,n[o]&=255;for(o=0;o<32;o++)n[o]-=e*kr[o];for(t=0;t<32;t++)n[t+1]+=n[t]>>8,r[t]=255&n[t]}function ir(r){var n,e=new Float64Array(64);for(n=0;n<64;n++)e[n]=r[n];for(n=0;n<64;n++)r[n]=0;or(r,e)}function ar(r,n,e,t){var o,i,a=new Uint8Array(64),f=new Uint8Array(64),u=new Uint8Array(64),c=new Float64Array(64),w=[hr(),hr(),hr(),hr()];Q(a,t,32),a[0]&=248,a[31]&=127,a[31]|=64;var y=e+64;for(o=0;o<e;o++)r[64+o]=n[o];for(o=0;o<32;o++)r[32+o]=a[32+o];for(Q(u,r.subarray(32),e+32),ir(u),er(w,u),rr(r,w),o=32;o<64;o++)r[o]=t[o];for(Q(f,r,e+64),ir(f),o=0;o<64;o++)c[o]=0;for(o=0;o<32;o++)c[o]=u[o];for(o=0;o<32;o++)for(i=0;i<32;i++)c[o+i]+=f[o]*a[i];return or(r.subarray(32),c),y}function fr(r,n){var e=hr(),t=hr(),o=hr(),i=hr(),a=hr(),f=hr(),u=hr();return U(r[2],_r),S(r[1],n),L(o,r[1]),Y(i,o,Ur),T(o,o,r[2]),K(i,r[2],i),L(a,i),L(f,a),Y(u,f,a),Y(e,u,o),Y(e,e,i),z(e,e),Y(e,e,o),Y(e,e,i),Y(e,e,i),Y(r[0],e,i),L(t,r[0]),Y(t,t,i),m(t,o)&&Y(r[0],r[0],mr),L(t,r[0]),Y(t,t,i),m(t,o)?-1:(B(r[0])===n[31]>>7&&T(r[0],pr,r[0]),Y(r[3],r[0],r[1]),0)}function ur(r,n,e,t){var o,i,a=new Uint8Array(32),f=new Uint8Array(64),c=[hr(),hr(),hr(),hr()],w=[hr(),hr(),hr(),hr()];if(i=-1,e<64)return-1;if(fr(w,t))return-1;for(o=0;o<e;o++)r[o]=n[o];for(o=0;o<32;o++)r[o+32]=t[o];if(Q(f,r,e),ir(f),nr(c,w,f),er(w,n.subarray(32)),W(c,w),rr(a,c),e-=64,u(n,0,a,0)){for(o=0;o<e;o++)r[o]=0;return-1}for(o=0;o<e;o++)r[o]=n[o+64];return i=e}function cr(r,n){if(r.length!==zr)throw new Error("bad key size");if(n.length!==Rr)throw new Error("bad nonce size")}function wr(r,n){if(r.length!==Cr)throw new Error("bad public key size");if(n.length!==Mr)throw new Error("bad secret key size")}function yr(){var r,n;for(n=0;n<arguments.length;n++)if("[object Uint8Array]"!==(r=Object.prototype.toString.call(arguments[n])))throw new TypeError("unexpected type "+r+", use Uint8Array")}function lr(r){for(var n=0;n<r.length;n++)r[n]=0}var sr=function(r,n){this.hi=0|r,this.lo=0|n},hr=function(r){var n,e=new Float64Array(16);if(r)for(n=0;n<r.length;n++)e[n]=r[n];return e},gr=function(){throw new Error("no PRNG")},vr=new Uint8Array(16),br=new Uint8Array(32);br[0]=9;var pr=hr(),_r=hr([1]),Ar=hr([56129,1]),Ur=hr([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),Er=hr([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),dr=hr([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),xr=hr([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),mr=hr([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),Br=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),Sr=new Uint32Array([5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,252]),Kr=_,Tr=A,Yr=[new sr(1116352408,3609767458),new sr(1899447441,602891725),new sr(3049323471,3964484399),new sr(3921009573,2173295548),new sr(961987163,4081628472),new sr(1508970993,3053834265),new sr(2453635748,2937671579),new sr(2870763221,3664609560),new sr(3624381080,2734883394),new sr(310598401,1164996542),new sr(607225278,1323610764),new sr(1426881987,3590304994),new sr(1925078388,4068182383),new sr(2162078206,991336113),new sr(2614888103,633803317),new sr(3248222580,3479774868),new sr(3835390401,2666613458),new sr(4022224774,944711139),new sr(264347078,2341262773),new sr(604807628,2007800933),new sr(770255983,1495990901),new sr(1249150122,1856431235),new sr(1555081692,3175218132),new sr(1996064986,2198950837),new sr(2554220882,3999719339),new sr(2821834349,766784016),new sr(2952996808,2566594879),new sr(3210313671,3203337956),new sr(3336571891,1034457026),new sr(3584528711,2466948901),new sr(113926993,3758326383),new sr(338241895,168717936),new sr(666307205,1188179964),new sr(773529912,1546045734),new sr(1294757372,1522805485),new sr(1396182291,2643833823),new sr(1695183700,2343527390),new sr(1986661051,1014477480),new sr(2177026350,1206759142),new sr(2456956037,344077627),new sr(2730485921,1290863460),new sr(2820302411,3158454273),new sr(3259730800,3505952657),new sr(3345764771,106217008),new sr(3516065817,3606008344),new sr(3600352804,1432725776),new sr(4094571909,1467031594),new sr(275423344,851169720),new sr(430227734,3100823752),new sr(506948616,1363258195),new sr(659060556,3750685593),new sr(883997877,3785050280),new sr(958139571,3318307427),new sr(1322822218,3812723403),new sr(1537002063,2003034995),new sr(1747873779,3602036899),new sr(1955562222,1575990012),new sr(2024104815,1125592928),new sr(2227730452,2716904306),new sr(2361852424,442776044),new sr(2428436474,593698344),new sr(2756734187,3733110249),new sr(3204031479,2999351573),new sr(3329325298,3815920427),new sr(3391569614,3928383900),new sr(3515267271,566280711),new sr(3940187606,3454069534),new sr(4118630271,4000239992),new sr(116418474,1914138554),new sr(174292421,2731055270),new sr(289380356,3203993006),new sr(460393269,320620315),new sr(685471733,587496836),new sr(852142971,1086792851),new sr(1017036298,365543100),new sr(1126000580,2618297676),new sr(1288033470,3409855158),new sr(1501505948,4234509866),new sr(1607167915,987167468),new sr(1816402316,1246189591)],Lr=new Uint8Array([106,9,230,103,243,188,201,8,187,103,174,133,132,202,167,59,60,110,243,114,254,148,248,43,165,79,245,58,95,29,54,241,81,14,82,127,173,230,130,209,155,5,104,140,43,62,108,31,31,131,217,171,251,65,189,107,91,224,205,25,19,126,33,121]),kr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),zr=32,Rr=24,Pr=32,Or=16,Fr=32,Nr=32,Cr=32,Mr=32,Gr=32,Zr=Rr,jr=Pr,qr=Or,Ir=64,Vr=32,Xr=64,Dr=32,Hr=64;r.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:g,crypto_stream:h,crypto_stream_salsa20_xor:l,crypto_stream_salsa20:s,crypto_onetimeauth:b,crypto_onetimeauth_verify:p,crypto_verify_16:f,crypto_verify_32:u,crypto_secretbox:_,crypto_secretbox_open:A,crypto_scalarmult:R,crypto_scalarmult_base:P,crypto_box_beforenm:F,crypto_box_afternm:Kr,crypto_box:N,crypto_box_open:C,crypto_box_keypair:O,crypto_hash:Q,crypto_sign:ar,crypto_sign_keypair:tr,crypto_sign_open:ur,crypto_secretbox_KEYBYTES:zr,crypto_secretbox_NONCEBYTES:Rr,crypto_secretbox_ZEROBYTES:Pr,crypto_secretbox_BOXZEROBYTES:Or,crypto_scalarmult_BYTES:Fr,crypto_scalarmult_SCALARBYTES:Nr,crypto_box_PUBLICKEYBYTES:Cr,crypto_box_SECRETKEYBYTES:Mr,crypto_box_BEFORENMBYTES:Gr,crypto_box_NONCEBYTES:Zr,crypto_box_ZEROBYTES:jr,crypto_box_BOXZEROBYTES:qr,crypto_sign_BYTES:Ir,crypto_sign_PUBLICKEYBYTES:Vr,crypto_sign_SECRETKEYBYTES:Xr,crypto_sign_SEEDBYTES:Dr,crypto_hash_BYTES:Hr},r.util||(r.util={},r.util.decodeUTF8=r.util.encodeUTF8=r.util.encodeBase64=r.util.decodeBase64=function(){throw new Error("nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js")}),r.randomBytes=function(r){var n=new Uint8Array(r);return gr(n,r),n},r.secretbox=function(r,n,e){yr(r,n,e),cr(e,n);for(var t=new Uint8Array(Pr+r.length),o=new Uint8Array(t.length),i=0;i<r.length;i++)t[i+Pr]=r[i];return _(o,t,t.length,n,e),o.subarray(Or)},r.secretbox.open=function(r,n,e){yr(r,n,e),cr(e,n);for(var t=new Uint8Array(Or+r.length),o=new Uint8Array(t.length),i=0;i<r.length;i++)t[i+Or]=r[i];return!(t.length<32)&&(0===A(o,t,t.length,n,e)&&o.subarray(Pr))},r.secretbox.keyLength=zr,r.secretbox.nonceLength=Rr,r.secretbox.overheadLength=Or,r.scalarMult=function(r,n){if(yr(r,n),r.length!==Nr)throw new Error("bad n size");if(n.length!==Fr)throw new Error("bad p size");var e=new Uint8Array(Fr);return R(e,r,n),e},r.scalarMult.base=function(r){if(yr(r),r.length!==Nr)throw new Error("bad n size");var n=new Uint8Array(Fr);return P(n,r),n},r.scalarMult.scalarLength=Nr,r.scalarMult.groupElementLength=Fr,r.box=function(n,e,t,o){var i=r.box.before(t,o);return r.secretbox(n,e,i)},r.box.before=function(r,n){yr(r,n),wr(r,n);var e=new Uint8Array(Gr);return F(e,r,n),e},r.box.after=r.secretbox,r.box.open=function(n,e,t,o){var i=r.box.before(t,o);return r.secretbox.open(n,e,i)},r.box.open.after=r.secretbox.open,r.box.keyPair=function(){var r=new Uint8Array(Cr),n=new Uint8Array(Mr);return O(r,n),{publicKey:r,secretKey:n}},r.box.keyPair.fromSecretKey=function(r){if(yr(r),r.length!==Mr)throw new Error("bad secret key size");var n=new Uint8Array(Cr);return P(n,r),{publicKey:n,secretKey:new Uint8Array(r)}},r.box.publicKeyLength=Cr,r.box.secretKeyLength=Mr,r.box.sharedKeyLength=Gr,r.box.nonceLength=Zr,r.box.overheadLength=r.secretbox.overheadLength,r.sign=function(r,n){if(yr(r,n),n.length!==Xr)throw new Error("bad secret key size");var e=new Uint8Array(Ir+r.length);return ar(e,r,r.length,n),e},r.sign.open=function(r,n){if(2!==arguments.length)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(yr(r,n),n.length!==Vr)throw new Error("bad public key size");var e=new Uint8Array(r.length),t=ur(e,r,r.length,n);if(t<0)return null;for(var o=new Uint8Array(t),i=0;i<o.length;i++)o[i]=e[i];return o},r.sign.detached=function(n,e){for(var t=r.sign(n,e),o=new Uint8Array(Ir),i=0;i<o.length;i++)o[i]=t[i];return o},r.sign.detached.verify=function(r,n,e){if(yr(r,n,e),n.length!==Ir)throw new Error("bad signature size");if(e.length!==Vr)throw new Error("bad public key size");var t,o=new Uint8Array(Ir+r.length),i=new Uint8Array(Ir+r.length);for(t=0;t<Ir;t++)o[t]=n[t];for(t=0;t<r.length;t++)o[t+Ir]=r[t];return ur(i,o,o.length,e)>=0},r.sign.keyPair=function(){var r=new Uint8Array(Vr),n=new Uint8Array(Xr);return tr(r,n),{publicKey:r,secretKey:n}},r.sign.keyPair.fromSecretKey=function(r){if(yr(r),r.length!==Xr)throw new Error("bad secret key size");for(var n=new Uint8Array(Vr),e=0;e<n.length;e++)n[e]=r[32+e];return{publicKey:n,secretKey:new Uint8Array(r)}},r.sign.keyPair.fromSeed=function(r){if(yr(r),r.length!==Dr)throw new Error("bad seed size");for(var n=new Uint8Array(Vr),e=new Uint8Array(Xr),t=0;t<32;t++)e[t]=r[t];return tr(n,e,!0),{publicKey:n,secretKey:e}},r.sign.publicKeyLength=Vr,r.sign.secretKeyLength=Xr,r.sign.seedLength=Dr,r.sign.signatureLength=Ir,r.hash=function(r){yr(r);var n=new Uint8Array(Hr);return Q(n,r,r.length),n},r.hash.hashLength=Hr,r.verify=function(r,n){return yr(r,n),0!==r.length&&0!==n.length&&(r.length===n.length&&0===a(r,0,n,0,r.length))},r.setPRNG=function(r){gr=r},function(){var n="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(n&&n.getRandomValues){var e=65536;r.setPRNG(function(r,t){var o,i=new Uint8Array(t);for(o=0;o<t;o+=e)n.getRandomValues(i.subarray(o,o+Math.min(t-o,e)));for(o=0;o<t;o++)r[o]=i[o];lr(i)})}else"undefined"!=typeof require&&(n=require("crypto"),n&&n.randomBytes&&r.setPRNG(function(r,e){var t,o=n.randomBytes(e);for(t=0;t<e;t++)r[t]=o[t];lr(o)}))}()}("undefined"!=typeof module&&module.exports?module.exports:self.nacl=self.nacl||{}); \ No newline at end of file
diff --git a/node_modules/tweetnacl/package.json b/node_modules/tweetnacl/package.json
deleted file mode 100644
index a5e3976..0000000
--- a/node_modules/tweetnacl/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_from": "tweetnacl@~0.14.0",
- "_id": "tweetnacl@0.14.5",
- "_inBundle": false,
- "_integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
- "_location": "/tweetnacl",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "tweetnacl@~0.14.0",
- "name": "tweetnacl",
- "escapedName": "tweetnacl",
- "rawSpec": "~0.14.0",
- "saveSpec": null,
- "fetchSpec": "~0.14.0"
- },
- "_requiredBy": [
- "/bcrypt-pbkdf",
- "/sshpk"
- ],
- "_resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "_shasum": "5ae68177f192d4456269d108afa93ff8743f4f64",
- "_spec": "tweetnacl@~0.14.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/sshpk",
- "author": {
- "name": "TweetNaCl-js contributors"
- },
- "browser": {
- "buffer": false,
- "crypto": false
- },
- "bugs": {
- "url": "https://github.com/dchest/tweetnacl-js/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Port of TweetNaCl cryptographic library to JavaScript",
- "devDependencies": {
- "browserify": "^13.0.0",
- "eslint": "^2.2.0",
- "faucet": "^0.0.1",
- "tap-browser-color": "^0.1.2",
- "tape": "^4.4.0",
- "tape-run": "^2.1.3",
- "tweetnacl-util": "^0.13.3",
- "uglify-js": "^2.6.1"
- },
- "directories": {
- "test": "test"
- },
- "homepage": "https://tweetnacl.js.org",
- "keywords": [
- "crypto",
- "cryptography",
- "curve25519",
- "ed25519",
- "encrypt",
- "hash",
- "key",
- "nacl",
- "poly1305",
- "public",
- "salsa20",
- "signatures"
- ],
- "license": "Unlicense",
- "main": "nacl-fast.js",
- "name": "tweetnacl",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/dchest/tweetnacl-js.git"
- },
- "scripts": {
- "bench": "node test/benchmark/bench.js",
- "build": "uglifyjs nacl.js -c -m -o nacl.min.js && uglifyjs nacl-fast.js -c -m -o nacl-fast.min.js",
- "build-test-browser": "browserify test/browser/init.js test/*.js | uglifyjs -c -m -o test/browser/_bundle.js 2>/dev/null && browserify test/browser/init.js test/*.quick.js | uglifyjs -c -m -o test/browser/_bundle-quick.js 2>/dev/null",
- "lint": "eslint nacl.js nacl-fast.js test/*.js test/benchmark/*.js",
- "test": "npm run test-node-all && npm run test-browser",
- "test-browser": "NACL_SRC=${NACL_SRC:='nacl.min.js'} && npm run build-test-browser && cat $NACL_SRC test/browser/_bundle.js | tape-run | faucet",
- "test-node": "tape test/*.js | faucet",
- "test-node-all": "make -C test/c && tape test/*.js test/c/*.js | faucet"
- },
- "types": "nacl.d.ts",
- "version": "0.14.5"
-}
diff --git a/node_modules/uri-js/README.md b/node_modules/uri-js/README.md
deleted file mode 100644
index 3f225e7..0000000
--- a/node_modules/uri-js/README.md
+++ /dev/null
@@ -1,199 +0,0 @@
-# URI.js
-
-URI.js is an [RFC 3986](http://www.ietf.org/rfc/rfc3986.txt) compliant, scheme extendable URI parsing/validating/resolving library for all JavaScript environments (browsers, Node.js, etc).
-It is also compliant with the IRI ([RFC 3987](http://www.ietf.org/rfc/rfc3987.txt)), IDNA ([RFC 5890](http://www.ietf.org/rfc/rfc5890.txt)), IPv6 Address ([RFC 5952](http://www.ietf.org/rfc/rfc5952.txt)), IPv6 Zone Identifier ([RFC 6874](http://www.ietf.org/rfc/rfc6874.txt)) specifications.
-
-URI.js has an extensive test suite, and works in all (Node.js, web) environments. It weighs in at 6.2kb (gzipped, 16kb deflated).
-
-## API
-
-### Parsing
-
- URI.parse("uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body");
- //returns:
- //{
- // scheme : "uri",
- // userinfo : "user:pass",
- // host : "example.com",
- // port : 123,
- // path : "/one/two.three",
- // query : "q1=a1&q2=a2",
- // fragment : "body"
- //}
-
-### Serializing
-
- URI.serialize({scheme : "http", host : "example.com", fragment : "footer"}) === "http://example.com/#footer"
-
-### Resolving
-
- URI.resolve("uri://a/b/c/d?q", "../../g") === "uri://a/g"
-
-### Normalizing
-
- URI.normalize("HTTP://ABC.com:80/%7Esmith/home.html") === "http://abc.com/~smith/home.html"
-
-### Comparison
-
- URI.equal("example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d") === true
-
-### IP Support
-
- //IPv4 normalization
- URI.normalize("//192.068.001.000") === "//192.68.1.0"
-
- //IPv6 normalization
- URI.normalize("//[2001:0:0DB8::0:0001]") === "//[2001:0:db8::1]"
-
- //IPv6 zone identifier support
- URI.parse("//[2001:db8::7%25en1]");
- //returns:
- //{
- // host : "2001:db8::7%en1"
- //}
-
-### IRI Support
-
- //convert IRI to URI
- URI.serialize(URI.parse("http://examplé.org/rosé")) === "http://xn--exampl-gva.org/ros%C3%A9"
- //convert URI to IRI
- URI.serialize(URI.parse("http://xn--exampl-gva.org/ros%C3%A9"), {iri:true}) === "http://examplé.org/rosé"
-
-### Options
-
-All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties:
-
-* `scheme` (string)
-
- Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior.
-
-* `reference` (string)
-
- If set to `"suffix"`, it indicates that the URI is in the suffix format, and the validator will use the option's `scheme` property to determine the URI's scheme.
-
-* `tolerant` (boolean, false)
-
- If set to `true`, the parser will relax URI resolving rules.
-
-* `absolutePath` (boolean, false)
-
- If set to `true`, the serializer will not resolve a relative `path` component.
-
-* `iri` (boolean, false)
-
- If set to `true`, the serializer will unescape non-ASCII characters as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt).
-
-* `unicodeSupport` (boolean, false)
-
- If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt).
-
-* `domainHost` (boolean, false)
-
- If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](http://www.ietf.org/rfc/rfc5891.txt).
-
-## Scheme Extendable
-
-URI.js supports inserting custom [scheme](http://en.wikipedia.org/wiki/URI_scheme) dependent processing rules. Currently, URI.js has built in support for the following schemes:
-
-* http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\]
-* https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\]
-* mailto \[[RFC 6068](http://www.ietf.org/rfc/rfc6068.txt)\]
-* urn \[[RFC 2141](http://www.ietf.org/rfc/rfc2141.txt)\]
-* urn:uuid \[[RFC 4122](http://www.ietf.org/rfc/rfc4122.txt)\]
-
-### HTTP Support
-
- URI.equal("HTTP://ABC.COM:80", "http://abc.com/") === true
-
-### Mailto Support
-
- URI.parse("mailto:alpha@example.com,bravo@example.com?subject=SUBSCRIBE&body=Sign%20me%20up!");
- //returns:
- //{
- // scheme : "mailto",
- // to : ["alpha@example.com", "bravo@example.com"],
- // subject : "SUBSCRIBE",
- // body : "Sign me up!"
- //}
-
- URI.serialize({
- scheme : "mailto",
- to : ["alpha@example.com"],
- subject : "REMOVE",
- body : "Please remove me",
- headers : {
- cc : "charlie@example.com"
- }
- }) === "mailto:alpha@example.com?cc=charlie@example.com&subject=REMOVE&body=Please%20remove%20me"
-
-### URN Support
-
- URI.parse("urn:example:foo");
- //returns:
- //{
- // scheme : "urn",
- // nid : "example",
- // nss : "foo",
- //}
-
-#### URN UUID Support
-
- URI.parse("urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6");
- //returns:
- //{
- // scheme : "urn",
- // nid : "example",
- // uuid : "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
- //}
-
-## Usage
-
-To load in a browser, use the following tag:
-
- <script type="text/javascript" src="uri-js/dist/es5/uri.all.min.js"></script>
-
-To load in a CommonJS (Node.js) environment, first install with npm by running on the command line:
-
- npm install uri-js
-
-Then, in your code, load it using:
-
- const URI = require("uri-js");
-
-If you are writing your code in ES6+ (ESNEXT) or TypeScript, you would load it using:
-
- import * as URI from "uri-js";
-
-Or you can load just what you need using named exports:
-
- import { parse, serialize, resolve, resolveComponents, normalize, equal, removeDotSegments, pctEncChar, pctDecChars, escapeComponent, unescapeComponent } from "uri-js";
-
-## Breaking changes
-
-### Breaking changes from 3.x
-
-URN parsing has been completely changed to better align with the specification. Scheme is now always `urn`, but has two new properties: `nid` which contains the Namspace Identifier, and `nss` which contains the Namespace Specific String. The `nss` property will be removed by higher order scheme handlers, such as the UUID URN scheme handler.
-
-The UUID of a URN can now be found in the `uuid` property.
-
-### Breaking changes from 2.x
-
-URI validation has been removed as it was slow, exposed a vulnerabilty, and was generally not useful.
-
-### Breaking changes from 1.x
-
-The `errors` array on parsed components is now an `error` string.
-
-## License ([Simplified BSD](http://en.wikipedia.org/wiki/BSD_licenses#2-clause))
-
-Copyright 2011 Gary Court. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY GARY COURT "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of Gary Court.
diff --git a/node_modules/uri-js/bower.json b/node_modules/uri-js/bower.json
deleted file mode 100644
index 7a40440..0000000
--- a/node_modules/uri-js/bower.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "name": "uri-js",
- "description": "An RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.",
- "main": "dist/es5/uri.all.js",
- "moduleType": [
- "globals",
- "amd",
- "node",
- "es6"
- ],
- "authors": [
- "Gary Court <gary.court@gmail.com>"
- ],
- "license": "BSD-2-Clause",
- "keywords": [
- "URI",
- "IRI",
- "IDN",
- "URN",
- "HTTP",
- "HTTPS",
- "MAILTO",
- "RFC3986",
- "RFC3987",
- "RFC5891",
- "RFC2616",
- "RFC2818",
- "RFC2141",
- "RFC4122",
- "RFC6068"
- ],
- "homepage": "https://github.com/garycourt/uri-js",
- "repository": {
- "type": "git",
- "url": "http://github.com/garycourt/uri-js"
- },
- "dependencies": {
- "punycode": "^2.1.0"
- },
- "ignore": [
- "**/.*",
- "node_modules",
- "bower_components",
- "test",
- "tests"
- ]
-}
diff --git a/node_modules/uri-js/dist/es5/uri.all.d.ts b/node_modules/uri-js/dist/es5/uri.all.d.ts
deleted file mode 100644
index 320f534..0000000
--- a/node_modules/uri-js/dist/es5/uri.all.d.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-export interface URIComponents {
- scheme?: string;
- userinfo?: string;
- host?: string;
- port?: number | string;
- path?: string;
- query?: string;
- fragment?: string;
- reference?: string;
- error?: string;
-}
-export interface URIOptions {
- scheme?: string;
- reference?: string;
- tolerant?: boolean;
- absolutePath?: boolean;
- iri?: boolean;
- unicodeSupport?: boolean;
- domainHost?: boolean;
-}
-export interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {
- scheme: string;
- parse(components: ParentComponents, options: Options): Components;
- serialize(components: Components, options: Options): ParentComponents;
- unicodeSupport?: boolean;
- domainHost?: boolean;
- absolutePath?: boolean;
-}
-export interface URIRegExps {
- NOT_SCHEME: RegExp;
- NOT_USERINFO: RegExp;
- NOT_HOST: RegExp;
- NOT_PATH: RegExp;
- NOT_PATH_NOSCHEME: RegExp;
- NOT_QUERY: RegExp;
- NOT_FRAGMENT: RegExp;
- ESCAPE: RegExp;
- UNRESERVED: RegExp;
- OTHER_CHARS: RegExp;
- PCT_ENCODED: RegExp;
- IPV4ADDRESS: RegExp;
- IPV6ADDRESS: RegExp;
-}
-export declare const SCHEMES: {
- [scheme: string]: URISchemeHandler;
-};
-export declare function pctEncChar(chr: string): string;
-export declare function pctDecChars(str: string): string;
-export declare function parse(uriString: string, options?: URIOptions): URIComponents;
-export declare function removeDotSegments(input: string): string;
-export declare function serialize(components: URIComponents, options?: URIOptions): string;
-export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents;
-export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string;
-export declare function normalize(uri: string, options?: URIOptions): string;
-export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents;
-export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean;
-export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean;
-export declare function escapeComponent(str: string, options?: URIOptions): string;
-export declare function unescapeComponent(str: string, options?: URIOptions): string;
diff --git a/node_modules/uri-js/dist/es5/uri.all.js b/node_modules/uri-js/dist/es5/uri.all.js
deleted file mode 100644
index 2df0609..0000000
--- a/node_modules/uri-js/dist/es5/uri.all.js
+++ /dev/null
@@ -1,1389 +0,0 @@
-/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
-(function (global, factory) {
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (factory((global.URI = global.URI || {})));
-}(this, (function (exports) { 'use strict';
-
-function merge() {
- for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
- sets[_key] = arguments[_key];
- }
-
- if (sets.length > 1) {
- sets[0] = sets[0].slice(0, -1);
- var xl = sets.length - 1;
- for (var x = 1; x < xl; ++x) {
- sets[x] = sets[x].slice(1, -1);
- }
- sets[xl] = sets[xl].slice(1);
- return sets.join('');
- } else {
- return sets[0];
- }
-}
-function subexp(str) {
- return "(?:" + str + ")";
-}
-function typeOf(o) {
- return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
-}
-function toUpperCase(str) {
- return str.toUpperCase();
-}
-function toArray(obj) {
- return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
-}
-function assign(target, source) {
- var obj = target;
- if (source) {
- for (var key in source) {
- obj[key] = source[key];
- }
- }
- return obj;
-}
-
-function buildExps(isIRI) {
- var ALPHA$$ = "[A-Za-z]",
- CR$ = "[\\x0D]",
- DIGIT$$ = "[0-9]",
- DQUOTE$$ = "[\\x22]",
- HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"),
- //case-insensitive
- LF$$ = "[\\x0A]",
- SP$$ = "[\\x20]",
- PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)),
- //expanded
- GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]",
- SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
- RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),
- UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]",
- //subset, excludes bidi control characters
- IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
- //subset
- UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
- SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
- USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
- DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$),
- DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
- //relaxed parsing rules
- IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
- H16$ = subexp(HEXDIG$$ + "{1,4}"),
- LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$),
- IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$),
- // 6( h16 ":" ) ls32
- IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$),
- // "::" 5( h16 ":" ) ls32
- IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$),
- //[ h16 ] "::" 4( h16 ":" ) ls32
- IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$),
- //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
- IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$),
- //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
- IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$),
- //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
- IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$),
- //[ *4( h16 ":" ) h16 ] "::" ls32
- IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$),
- //[ *5( h16 ":" ) h16 ] "::" h16
- IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
- //[ *6( h16 ":" ) h16 ] "::"
- IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
- ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
- //RFC 6874
- IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$),
- //RFC 6874
- IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$),
- //RFC 6874, with relaxed parsing rules
- IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
- IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"),
- //RFC 6874
- REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
- HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$),
- PORT$ = subexp(DIGIT$$ + "*"),
- AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"),
- PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
- SEGMENT$ = subexp(PCHAR$ + "*"),
- SEGMENT_NZ$ = subexp(PCHAR$ + "+"),
- SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
- PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"),
- PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"),
- //simplified
- PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$),
- //simplified
- PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$),
- //simplified
- PATH_EMPTY$ = "(?!" + PCHAR$ + ")",
- PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
- QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"),
- FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"),
- HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
- URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
- RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$),
- RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
- URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$),
- ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"),
- GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$",
- SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
- return {
- NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
- NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
- NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
- ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- UNRESERVED: new RegExp(UNRESERVED$$, "g"),
- OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
- PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
- IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
- IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules
- };
-}
-var URI_PROTOCOL = buildExps(false);
-
-var IRI_PROTOCOL = buildExps(true);
-
-var slicedToArray = function () {
- function sliceIterator(arr, i) {
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
-
- try {
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
-
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"]) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
-
- return _arr;
- }
-
- return function (arr, i) {
- if (Array.isArray(arr)) {
- return arr;
- } else if (Symbol.iterator in Object(arr)) {
- return sliceIterator(arr, i);
- } else {
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
- }
- };
-}();
-
-
-
-
-
-
-
-
-
-
-
-
-
-var toConsumableArray = function (arr) {
- if (Array.isArray(arr)) {
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
-
- return arr2;
- } else {
- return Array.from(arr);
- }
-};
-
-/** Highest positive signed 32-bit float value */
-
-var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
-
-/** Bootstring parameters */
-var base = 36;
-var tMin = 1;
-var tMax = 26;
-var skew = 38;
-var damp = 700;
-var initialBias = 72;
-var initialN = 128; // 0x80
-var delimiter = '-'; // '\x2D'
-
-/** Regular expressions */
-var regexPunycode = /^xn--/;
-var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
-var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
-
-/** Error messages */
-var errors = {
- 'overflow': 'Overflow: input needs wider integers to process',
- 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
- 'invalid-input': 'Invalid input'
-};
-
-/** Convenience shortcuts */
-var baseMinusTMin = base - tMin;
-var floor = Math.floor;
-var stringFromCharCode = String.fromCharCode;
-
-/*--------------------------------------------------------------------------*/
-
-/**
- * A generic error utility function.
- * @private
- * @param {String} type The error type.
- * @returns {Error} Throws a `RangeError` with the applicable error message.
- */
-function error$1(type) {
- throw new RangeError(errors[type]);
-}
-
-/**
- * A generic `Array#map` utility function.
- * @private
- * @param {Array} array The array to iterate over.
- * @param {Function} callback The function that gets called for every array
- * item.
- * @returns {Array} A new array of values returned by the callback function.
- */
-function map(array, fn) {
- var result = [];
- var length = array.length;
- while (length--) {
- result[length] = fn(array[length]);
- }
- return result;
-}
-
-/**
- * A simple `Array#map`-like wrapper to work with domain name strings or email
- * addresses.
- * @private
- * @param {String} domain The domain name or email address.
- * @param {Function} callback The function that gets called for every
- * character.
- * @returns {Array} A new string of characters returned by the callback
- * function.
- */
-function mapDomain(string, fn) {
- var parts = string.split('@');
- var result = '';
- if (parts.length > 1) {
- // In email addresses, only the domain name should be punycoded. Leave
- // the local part (i.e. everything up to `@`) intact.
- result = parts[0] + '@';
- string = parts[1];
- }
- // Avoid `split(regex)` for IE8 compatibility. See #17.
- string = string.replace(regexSeparators, '\x2E');
- var labels = string.split('.');
- var encoded = map(labels, fn).join('.');
- return result + encoded;
-}
-
-/**
- * Creates an array containing the numeric code points of each Unicode
- * character in the string. While JavaScript uses UCS-2 internally,
- * this function will convert a pair of surrogate halves (each of which
- * UCS-2 exposes as separate characters) into a single code point,
- * matching UTF-16.
- * @see `punycode.ucs2.encode`
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode.ucs2
- * @name decode
- * @param {String} string The Unicode input string (UCS-2).
- * @returns {Array} The new array of code points.
- */
-function ucs2decode(string) {
- var output = [];
- var counter = 0;
- var length = string.length;
- while (counter < length) {
- var value = string.charCodeAt(counter++);
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
- // It's a high surrogate, and there is a next character.
- var extra = string.charCodeAt(counter++);
- if ((extra & 0xFC00) == 0xDC00) {
- // Low surrogate.
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
- } else {
- // It's an unmatched surrogate; only append this code unit, in case the
- // next code unit is the high surrogate of a surrogate pair.
- output.push(value);
- counter--;
- }
- } else {
- output.push(value);
- }
- }
- return output;
-}
-
-/**
- * Creates a string based on an array of numeric code points.
- * @see `punycode.ucs2.decode`
- * @memberOf punycode.ucs2
- * @name encode
- * @param {Array} codePoints The array of numeric code points.
- * @returns {String} The new Unicode string (UCS-2).
- */
-var ucs2encode = function ucs2encode(array) {
- return String.fromCodePoint.apply(String, toConsumableArray(array));
-};
-
-/**
- * Converts a basic code point into a digit/integer.
- * @see `digitToBasic()`
- * @private
- * @param {Number} codePoint The basic numeric code point value.
- * @returns {Number} The numeric value of a basic code point (for use in
- * representing integers) in the range `0` to `base - 1`, or `base` if
- * the code point does not represent a value.
- */
-var basicToDigit = function basicToDigit(codePoint) {
- if (codePoint - 0x30 < 0x0A) {
- return codePoint - 0x16;
- }
- if (codePoint - 0x41 < 0x1A) {
- return codePoint - 0x41;
- }
- if (codePoint - 0x61 < 0x1A) {
- return codePoint - 0x61;
- }
- return base;
-};
-
-/**
- * Converts a digit/integer into a basic code point.
- * @see `basicToDigit()`
- * @private
- * @param {Number} digit The numeric value of a basic code point.
- * @returns {Number} The basic code point whose value (when used for
- * representing integers) is `digit`, which needs to be in the range
- * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
- * used; else, the lowercase form is used. The behavior is undefined
- * if `flag` is non-zero and `digit` has no uppercase form.
- */
-var digitToBasic = function digitToBasic(digit, flag) {
- // 0..25 map to ASCII a..z or A..Z
- // 26..35 map to ASCII 0..9
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
-};
-
-/**
- * Bias adaptation function as per section 3.4 of RFC 3492.
- * https://tools.ietf.org/html/rfc3492#section-3.4
- * @private
- */
-var adapt = function adapt(delta, numPoints, firstTime) {
- var k = 0;
- delta = firstTime ? floor(delta / damp) : delta >> 1;
- delta += floor(delta / numPoints);
- for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {
- delta = floor(delta / baseMinusTMin);
- }
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
-};
-
-/**
- * Converts a Punycode string of ASCII-only symbols to a string of Unicode
- * symbols.
- * @memberOf punycode
- * @param {String} input The Punycode string of ASCII-only symbols.
- * @returns {String} The resulting string of Unicode symbols.
- */
-var decode = function decode(input) {
- // Don't use UCS-2.
- var output = [];
- var inputLength = input.length;
- var i = 0;
- var n = initialN;
- var bias = initialBias;
-
- // Handle the basic code points: let `basic` be the number of input code
- // points before the last delimiter, or `0` if there is none, then copy
- // the first basic code points to the output.
-
- var basic = input.lastIndexOf(delimiter);
- if (basic < 0) {
- basic = 0;
- }
-
- for (var j = 0; j < basic; ++j) {
- // if it's not a basic code point
- if (input.charCodeAt(j) >= 0x80) {
- error$1('not-basic');
- }
- output.push(input.charCodeAt(j));
- }
-
- // Main decoding loop: start just after the last delimiter if any basic code
- // points were copied; start at the beginning otherwise.
-
- for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{
-
- // `index` is the index of the next character to be consumed.
- // Decode a generalized variable-length integer into `delta`,
- // which gets added to `i`. The overflow checking is easier
- // if we increase `i` as we go, then subtract off its starting
- // value at the end to obtain `delta`.
- var oldi = i;
- for (var w = 1, k = base;; /* no condition */k += base) {
-
- if (index >= inputLength) {
- error$1('invalid-input');
- }
-
- var digit = basicToDigit(input.charCodeAt(index++));
-
- if (digit >= base || digit > floor((maxInt - i) / w)) {
- error$1('overflow');
- }
-
- i += digit * w;
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
-
- if (digit < t) {
- break;
- }
-
- var baseMinusT = base - t;
- if (w > floor(maxInt / baseMinusT)) {
- error$1('overflow');
- }
-
- w *= baseMinusT;
- }
-
- var out = output.length + 1;
- bias = adapt(i - oldi, out, oldi == 0);
-
- // `i` was supposed to wrap around from `out` to `0`,
- // incrementing `n` each time, so we'll fix that now:
- if (floor(i / out) > maxInt - n) {
- error$1('overflow');
- }
-
- n += floor(i / out);
- i %= out;
-
- // Insert `n` at position `i` of the output.
- output.splice(i++, 0, n);
- }
-
- return String.fromCodePoint.apply(String, output);
-};
-
-/**
- * Converts a string of Unicode symbols (e.g. a domain name label) to a
- * Punycode string of ASCII-only symbols.
- * @memberOf punycode
- * @param {String} input The string of Unicode symbols.
- * @returns {String} The resulting Punycode string of ASCII-only symbols.
- */
-var encode = function encode(input) {
- var output = [];
-
- // Convert the input in UCS-2 to an array of Unicode code points.
- input = ucs2decode(input);
-
- // Cache the length.
- var inputLength = input.length;
-
- // Initialize the state.
- var n = initialN;
- var delta = 0;
- var bias = initialBias;
-
- // Handle the basic code points.
- var _iteratorNormalCompletion = true;
- var _didIteratorError = false;
- var _iteratorError = undefined;
-
- try {
- for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
- var _currentValue2 = _step.value;
-
- if (_currentValue2 < 0x80) {
- output.push(stringFromCharCode(_currentValue2));
- }
- }
- } catch (err) {
- _didIteratorError = true;
- _iteratorError = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion && _iterator.return) {
- _iterator.return();
- }
- } finally {
- if (_didIteratorError) {
- throw _iteratorError;
- }
- }
- }
-
- var basicLength = output.length;
- var handledCPCount = basicLength;
-
- // `handledCPCount` is the number of code points that have been handled;
- // `basicLength` is the number of basic code points.
-
- // Finish the basic string with a delimiter unless it's empty.
- if (basicLength) {
- output.push(delimiter);
- }
-
- // Main encoding loop:
- while (handledCPCount < inputLength) {
-
- // All non-basic code points < n have been handled already. Find the next
- // larger one:
- var m = maxInt;
- var _iteratorNormalCompletion2 = true;
- var _didIteratorError2 = false;
- var _iteratorError2 = undefined;
-
- try {
- for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
- var currentValue = _step2.value;
-
- if (currentValue >= n && currentValue < m) {
- m = currentValue;
- }
- }
-
- // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
- // but guard against overflow.
- } catch (err) {
- _didIteratorError2 = true;
- _iteratorError2 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion2 && _iterator2.return) {
- _iterator2.return();
- }
- } finally {
- if (_didIteratorError2) {
- throw _iteratorError2;
- }
- }
- }
-
- var handledCPCountPlusOne = handledCPCount + 1;
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
- error$1('overflow');
- }
-
- delta += (m - n) * handledCPCountPlusOne;
- n = m;
-
- var _iteratorNormalCompletion3 = true;
- var _didIteratorError3 = false;
- var _iteratorError3 = undefined;
-
- try {
- for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
- var _currentValue = _step3.value;
-
- if (_currentValue < n && ++delta > maxInt) {
- error$1('overflow');
- }
- if (_currentValue == n) {
- // Represent delta as a generalized variable-length integer.
- var q = delta;
- for (var k = base;; /* no condition */k += base) {
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
- if (q < t) {
- break;
- }
- var qMinusT = q - t;
- var baseMinusT = base - t;
- output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
- q = floor(qMinusT / baseMinusT);
- }
-
- output.push(stringFromCharCode(digitToBasic(q, 0)));
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
- delta = 0;
- ++handledCPCount;
- }
- }
- } catch (err) {
- _didIteratorError3 = true;
- _iteratorError3 = err;
- } finally {
- try {
- if (!_iteratorNormalCompletion3 && _iterator3.return) {
- _iterator3.return();
- }
- } finally {
- if (_didIteratorError3) {
- throw _iteratorError3;
- }
- }
- }
-
- ++delta;
- ++n;
- }
- return output.join('');
-};
-
-/**
- * Converts a Punycode string representing a domain name or an email address
- * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
- * it doesn't matter if you call it on a string that has already been
- * converted to Unicode.
- * @memberOf punycode
- * @param {String} input The Punycoded domain name or email address to
- * convert to Unicode.
- * @returns {String} The Unicode representation of the given Punycode
- * string.
- */
-var toUnicode = function toUnicode(input) {
- return mapDomain(input, function (string) {
- return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
- });
-};
-
-/**
- * Converts a Unicode string representing a domain name or an email address to
- * Punycode. Only the non-ASCII parts of the domain name will be converted,
- * i.e. it doesn't matter if you call it with a domain that's already in
- * ASCII.
- * @memberOf punycode
- * @param {String} input The domain name or email address to convert, as a
- * Unicode string.
- * @returns {String} The Punycode representation of the given domain name or
- * email address.
- */
-var toASCII = function toASCII(input) {
- return mapDomain(input, function (string) {
- return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;
- });
-};
-
-/*--------------------------------------------------------------------------*/
-
-/** Define the public API */
-var punycode = {
- /**
- * A string representing the current Punycode.js version number.
- * @memberOf punycode
- * @type String
- */
- 'version': '2.1.0',
- /**
- * An object of methods to convert from JavaScript's internal character
- * representation (UCS-2) to Unicode code points, and back.
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
- * @memberOf punycode
- * @type Object
- */
- 'ucs2': {
- 'decode': ucs2decode,
- 'encode': ucs2encode
- },
- 'decode': decode,
- 'encode': encode,
- 'toASCII': toASCII,
- 'toUnicode': toUnicode
-};
-
-/**
- * URI.js
- *
- * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
- * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
- * @see http://github.com/garycourt/uri-js
- */
-/**
- * Copyright 2011 Gary Court. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification, are
- * permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those of the
- * authors and should not be interpreted as representing official policies, either expressed
- * or implied, of Gary Court.
- */
-var SCHEMES = {};
-function pctEncChar(chr) {
- var c = chr.charCodeAt(0);
- var e = void 0;
- if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
- return e;
-}
-function pctDecChars(str) {
- var newStr = "";
- var i = 0;
- var il = str.length;
- while (i < il) {
- var c = parseInt(str.substr(i + 1, 2), 16);
- if (c < 128) {
- newStr += String.fromCharCode(c);
- i += 3;
- } else if (c >= 194 && c < 224) {
- if (il - i >= 6) {
- var c2 = parseInt(str.substr(i + 4, 2), 16);
- newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
- } else {
- newStr += str.substr(i, 6);
- }
- i += 6;
- } else if (c >= 224) {
- if (il - i >= 9) {
- var _c = parseInt(str.substr(i + 4, 2), 16);
- var c3 = parseInt(str.substr(i + 7, 2), 16);
- newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
- } else {
- newStr += str.substr(i, 9);
- }
- i += 9;
- } else {
- newStr += str.substr(i, 3);
- i += 3;
- }
- }
- return newStr;
-}
-function _normalizeComponentEncoding(components, protocol) {
- function decodeUnreserved(str) {
- var decStr = pctDecChars(str);
- return !decStr.match(protocol.UNRESERVED) ? str : decStr;
- }
- if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
- if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- return components;
-}
-
-function _stripLeadingZeros(str) {
- return str.replace(/^0*(.*)/, "$1") || "0";
-}
-function _normalizeIPv4(host, protocol) {
- var matches = host.match(protocol.IPV4ADDRESS) || [];
-
- var _matches = slicedToArray(matches, 2),
- address = _matches[1];
-
- if (address) {
- return address.split(".").map(_stripLeadingZeros).join(".");
- } else {
- return host;
- }
-}
-function _normalizeIPv6(host, protocol) {
- var matches = host.match(protocol.IPV6ADDRESS) || [];
-
- var _matches2 = slicedToArray(matches, 3),
- address = _matches2[1],
- zone = _matches2[2];
-
- if (address) {
- var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(),
- _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2),
- last = _address$toLowerCase$2[0],
- first = _address$toLowerCase$2[1];
-
- var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
- var lastFields = last.split(":").map(_stripLeadingZeros);
- var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
- var fieldCount = isLastFieldIPv4Address ? 7 : 8;
- var lastFieldsStart = lastFields.length - fieldCount;
- var fields = Array(fieldCount);
- for (var x = 0; x < fieldCount; ++x) {
- fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';
- }
- if (isLastFieldIPv4Address) {
- fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
- }
- var allZeroFields = fields.reduce(function (acc, field, index) {
- if (!field || field === "0") {
- var lastLongest = acc[acc.length - 1];
- if (lastLongest && lastLongest.index + lastLongest.length === index) {
- lastLongest.length++;
- } else {
- acc.push({ index: index, length: 1 });
- }
- }
- return acc;
- }, []);
- var longestZeroFields = allZeroFields.sort(function (a, b) {
- return b.length - a.length;
- })[0];
- var newHost = void 0;
- if (longestZeroFields && longestZeroFields.length > 1) {
- var newFirst = fields.slice(0, longestZeroFields.index);
- var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
- newHost = newFirst.join(":") + "::" + newLast.join(":");
- } else {
- newHost = fields.join(":");
- }
- if (zone) {
- newHost += "%" + zone;
- }
- return newHost;
- } else {
- return host;
- }
-}
-var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
-var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined;
-function parse(uriString) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- var components = {};
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
- if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
- var matches = uriString.match(URI_PARSE);
- if (matches) {
- if (NO_MATCH_IS_UNDEFINED) {
- //store each component
- components.scheme = matches[1];
- components.userinfo = matches[3];
- components.host = matches[4];
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = matches[7];
- components.fragment = matches[8];
- //fix port number
- if (isNaN(components.port)) {
- components.port = matches[5];
- }
- } else {
- //IE FIX for improper RegExp matching
- //store each component
- components.scheme = matches[1] || undefined;
- components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined;
- components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined;
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined;
- components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined;
- //fix port number
- if (isNaN(components.port)) {
- components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined;
- }
- }
- if (components.host) {
- //normalize IP hosts
- components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
- }
- //determine reference type
- if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
- components.reference = "same-document";
- } else if (components.scheme === undefined) {
- components.reference = "relative";
- } else if (components.fragment === undefined) {
- components.reference = "absolute";
- } else {
- components.reference = "uri";
- }
- //check for reference errors
- if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
- components.error = components.error || "URI is not a " + options.reference + " reference.";
- }
- //find scheme handler
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
- //check if scheme can't handle IRIs
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
- //if host component is a domain name
- if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
- //convert Unicode IDN -> ASCII IDN
- try {
- components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
- } catch (e) {
- components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
- }
- }
- //convert IRI -> URI
- _normalizeComponentEncoding(components, URI_PROTOCOL);
- } else {
- //normalize encodings
- _normalizeComponentEncoding(components, protocol);
- }
- //perform scheme specific parsing
- if (schemeHandler && schemeHandler.parse) {
- schemeHandler.parse(components, options);
- }
- } else {
- components.error = components.error || "URI can not be parsed.";
- }
- return components;
-}
-
-function _recomposeAuthority(components, options) {
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
- var uriTokens = [];
- if (components.userinfo !== undefined) {
- uriTokens.push(components.userinfo);
- uriTokens.push("@");
- }
- if (components.host !== undefined) {
- //normalize IP hosts, add brackets and escape zone separator for IPv6
- uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) {
- return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
- }));
- }
- if (typeof components.port === "number") {
- uriTokens.push(":");
- uriTokens.push(components.port.toString(10));
- }
- return uriTokens.length ? uriTokens.join("") : undefined;
-}
-
-var RDS1 = /^\.\.?\//;
-var RDS2 = /^\/\.(\/|$)/;
-var RDS3 = /^\/\.\.(\/|$)/;
-var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
-function removeDotSegments(input) {
- var output = [];
- while (input.length) {
- if (input.match(RDS1)) {
- input = input.replace(RDS1, "");
- } else if (input.match(RDS2)) {
- input = input.replace(RDS2, "/");
- } else if (input.match(RDS3)) {
- input = input.replace(RDS3, "/");
- output.pop();
- } else if (input === "." || input === "..") {
- input = "";
- } else {
- var im = input.match(RDS5);
- if (im) {
- var s = im[0];
- input = input.slice(s.length);
- output.push(s);
- } else {
- throw new Error("Unexpected dot segment condition");
- }
- }
- }
- return output.join("");
-}
-
-function serialize(components) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-
- var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
- var uriTokens = [];
- //find scheme handler
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
- //perform scheme specific serialization
- if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
- if (components.host) {
- //if host component is an IPv6 address
- if (protocol.IPV6ADDRESS.test(components.host)) {}
- //TODO: normalize IPv6 address as per RFC 5952
-
- //if host component is a domain name
- else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
- //convert IDN via punycode
- try {
- components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
- } catch (e) {
- components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
- }
- }
- //normalize encoding
- _normalizeComponentEncoding(components, protocol);
- if (options.reference !== "suffix" && components.scheme) {
- uriTokens.push(components.scheme);
- uriTokens.push(":");
- }
- var authority = _recomposeAuthority(components, options);
- if (authority !== undefined) {
- if (options.reference !== "suffix") {
- uriTokens.push("//");
- }
- uriTokens.push(authority);
- if (components.path && components.path.charAt(0) !== "/") {
- uriTokens.push("/");
- }
- }
- if (components.path !== undefined) {
- var s = components.path;
- if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
- s = removeDotSegments(s);
- }
- if (authority === undefined) {
- s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//"
- }
- uriTokens.push(s);
- }
- if (components.query !== undefined) {
- uriTokens.push("?");
- uriTokens.push(components.query);
- }
- if (components.fragment !== undefined) {
- uriTokens.push("#");
- uriTokens.push(components.fragment);
- }
- return uriTokens.join(""); //merge tokens into a string
-}
-
-function resolveComponents(base, relative) {
- var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
- var skipNormalization = arguments[3];
-
- var target = {};
- if (!skipNormalization) {
- base = parse(serialize(base, options), options); //normalize base components
- relative = parse(serialize(relative, options), options); //normalize relative components
- }
- options = options || {};
- if (!options.tolerant && relative.scheme) {
- target.scheme = relative.scheme;
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- } else {
- if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- } else {
- if (!relative.path) {
- target.path = base.path;
- if (relative.query !== undefined) {
- target.query = relative.query;
- } else {
- target.query = base.query;
- }
- } else {
- if (relative.path.charAt(0) === "/") {
- target.path = removeDotSegments(relative.path);
- } else {
- if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
- target.path = "/" + relative.path;
- } else if (!base.path) {
- target.path = relative.path;
- } else {
- target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
- }
- target.path = removeDotSegments(target.path);
- }
- target.query = relative.query;
- }
- //target.authority = base.authority;
- target.userinfo = base.userinfo;
- target.host = base.host;
- target.port = base.port;
- }
- target.scheme = base.scheme;
- }
- target.fragment = relative.fragment;
- return target;
-}
-
-function resolve(baseURI, relativeURI, options) {
- var schemelessOptions = assign({ scheme: 'null' }, options);
- return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
-}
-
-function normalize(uri, options) {
- if (typeof uri === "string") {
- uri = serialize(parse(uri, options), options);
- } else if (typeOf(uri) === "object") {
- uri = parse(serialize(uri, options), options);
- }
- return uri;
-}
-
-function equal(uriA, uriB, options) {
- if (typeof uriA === "string") {
- uriA = serialize(parse(uriA, options), options);
- } else if (typeOf(uriA) === "object") {
- uriA = serialize(uriA, options);
- }
- if (typeof uriB === "string") {
- uriB = serialize(parse(uriB, options), options);
- } else if (typeOf(uriB) === "object") {
- uriB = serialize(uriB, options);
- }
- return uriA === uriB;
-}
-
-function escapeComponent(str, options) {
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
-}
-
-function unescapeComponent(str, options) {
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
-}
-
-var handler = {
- scheme: "http",
- domainHost: true,
- parse: function parse(components, options) {
- //report missing host
- if (!components.host) {
- components.error = components.error || "HTTP URIs must have a host.";
- }
- return components;
- },
- serialize: function serialize(components, options) {
- //normalize the default port
- if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") {
- components.port = undefined;
- }
- //normalize the empty path
- if (!components.path) {
- components.path = "/";
- }
- //NOTE: We do not parse query strings for HTTP URIs
- //as WWW Form Url Encoded query strings are part of the HTML4+ spec,
- //and not the HTTP spec.
- return components;
- }
-};
-
-var handler$1 = {
- scheme: "https",
- domainHost: handler.domainHost,
- parse: handler.parse,
- serialize: handler.serialize
-};
-
-var O = {};
-var isIRI = true;
-//RFC 3986
-var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
-var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
-var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
-//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
-//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127)
-//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext
-//const VCHAR$$ = "[\\x21-\\x7E]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext
-//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+");
-//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$);
-//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"');
-var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
-var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
-var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
-var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
-var UNRESERVED = new RegExp(UNRESERVED$$, "g");
-var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
-var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
-var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
-var NOT_HFVALUE = NOT_HFNAME;
-function decodeUnreserved(str) {
- var decStr = pctDecChars(str);
- return !decStr.match(UNRESERVED) ? str : decStr;
-}
-var handler$2 = {
- scheme: "mailto",
- parse: function parse$$1(components, options) {
- var mailtoComponents = components;
- var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
- mailtoComponents.path = undefined;
- if (mailtoComponents.query) {
- var unknownHeaders = false;
- var headers = {};
- var hfields = mailtoComponents.query.split("&");
- for (var x = 0, xl = hfields.length; x < xl; ++x) {
- var hfield = hfields[x].split("=");
- switch (hfield[0]) {
- case "to":
- var toAddrs = hfield[1].split(",");
- for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
- to.push(toAddrs[_x]);
- }
- break;
- case "subject":
- mailtoComponents.subject = unescapeComponent(hfield[1], options);
- break;
- case "body":
- mailtoComponents.body = unescapeComponent(hfield[1], options);
- break;
- default:
- unknownHeaders = true;
- headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
- break;
- }
- }
- if (unknownHeaders) mailtoComponents.headers = headers;
- }
- mailtoComponents.query = undefined;
- for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
- var addr = to[_x2].split("@");
- addr[0] = unescapeComponent(addr[0]);
- if (!options.unicodeSupport) {
- //convert Unicode IDN -> ASCII IDN
- try {
- addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
- } catch (e) {
- mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
- }
- } else {
- addr[1] = unescapeComponent(addr[1], options).toLowerCase();
- }
- to[_x2] = addr.join("@");
- }
- return mailtoComponents;
- },
- serialize: function serialize$$1(mailtoComponents, options) {
- var components = mailtoComponents;
- var to = toArray(mailtoComponents.to);
- if (to) {
- for (var x = 0, xl = to.length; x < xl; ++x) {
- var toAddr = String(to[x]);
- var atIdx = toAddr.lastIndexOf("@");
- var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
- var domain = toAddr.slice(atIdx + 1);
- //convert IDN via punycode
- try {
- domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
- } catch (e) {
- components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
- to[x] = localPart + "@" + domain;
- }
- components.path = to.join(",");
- }
- var headers = mailtoComponents.headers = mailtoComponents.headers || {};
- if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
- if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
- var fields = [];
- for (var name in headers) {
- if (headers[name] !== O[name]) {
- fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
- }
- }
- if (fields.length) {
- components.query = fields.join("&");
- }
- return components;
- }
-};
-
-var URN_PARSE = /^([^\:]+)\:(.*)/;
-//RFC 2141
-var handler$3 = {
- scheme: "urn",
- parse: function parse$$1(components, options) {
- var matches = components.path && components.path.match(URN_PARSE);
- var urnComponents = components;
- if (matches) {
- var scheme = options.scheme || urnComponents.scheme || "urn";
- var nid = matches[1].toLowerCase();
- var nss = matches[2];
- var urnScheme = scheme + ":" + (options.nid || nid);
- var schemeHandler = SCHEMES[urnScheme];
- urnComponents.nid = nid;
- urnComponents.nss = nss;
- urnComponents.path = undefined;
- if (schemeHandler) {
- urnComponents = schemeHandler.parse(urnComponents, options);
- }
- } else {
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
- }
- return urnComponents;
- },
- serialize: function serialize$$1(urnComponents, options) {
- var scheme = options.scheme || urnComponents.scheme || "urn";
- var nid = urnComponents.nid;
- var urnScheme = scheme + ":" + (options.nid || nid);
- var schemeHandler = SCHEMES[urnScheme];
- if (schemeHandler) {
- urnComponents = schemeHandler.serialize(urnComponents, options);
- }
- var uriComponents = urnComponents;
- var nss = urnComponents.nss;
- uriComponents.path = (nid || options.nid) + ":" + nss;
- return uriComponents;
- }
-};
-
-var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
-//RFC 4122
-var handler$4 = {
- scheme: "urn:uuid",
- parse: function parse(urnComponents, options) {
- var uuidComponents = urnComponents;
- uuidComponents.uuid = uuidComponents.nss;
- uuidComponents.nss = undefined;
- if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
- }
- return uuidComponents;
- },
- serialize: function serialize(uuidComponents, options) {
- var urnComponents = uuidComponents;
- //normalize UUID
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
- return urnComponents;
- }
-};
-
-SCHEMES[handler.scheme] = handler;
-SCHEMES[handler$1.scheme] = handler$1;
-SCHEMES[handler$2.scheme] = handler$2;
-SCHEMES[handler$3.scheme] = handler$3;
-SCHEMES[handler$4.scheme] = handler$4;
-
-exports.SCHEMES = SCHEMES;
-exports.pctEncChar = pctEncChar;
-exports.pctDecChars = pctDecChars;
-exports.parse = parse;
-exports.removeDotSegments = removeDotSegments;
-exports.serialize = serialize;
-exports.resolveComponents = resolveComponents;
-exports.resolve = resolve;
-exports.normalize = normalize;
-exports.equal = equal;
-exports.escapeComponent = escapeComponent;
-exports.unescapeComponent = unescapeComponent;
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-})));
-//# sourceMappingURL=uri.all.js.map
diff --git a/node_modules/uri-js/dist/es5/uri.all.js.map b/node_modules/uri-js/dist/es5/uri.all.js.map
deleted file mode 100644
index 536ffa8..0000000
--- a/node_modules/uri-js/dist/es5/uri.all.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"uri.all.js","sources":["../../src/index.ts","../../src/schemes/urn-uuid.ts","../../src/schemes/urn.ts","../../src/schemes/mailto.ts","../../src/schemes/https.ts","../../src/schemes/http.ts","../../src/uri.ts","../../node_modules/punycode/punycode.es6.js","../../src/regexps-iri.ts","../../src/regexps-uri.ts","../../src/util.ts"],"sourcesContent":["import { SCHEMES } from \"./uri\";\n\nimport http from \"./schemes/http\";\nSCHEMES[http.scheme] = http;\n\nimport https from \"./schemes/https\";\nSCHEMES[https.scheme] = https;\n\nimport mailto from \"./schemes/mailto\";\nSCHEMES[mailto.scheme] = mailto;\n\nimport urn from \"./schemes/urn\";\nSCHEMES[urn.scheme] = urn;\n\nimport uuid from \"./schemes/urn-uuid\";\nSCHEMES[uuid.scheme] = uuid;\n\nexport * from \"./uri\";\n","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { URNComponents } from \"./urn\";\nimport { SCHEMES } from \"../uri\";\n\nexport interface UUIDComponents extends URNComponents {\n\tuuid?: string;\n}\n\nconst UUID = /^[0-9A-Fa-f]{8}(?:\\-[0-9A-Fa-f]{4}){3}\\-[0-9A-Fa-f]{12}$/;\nconst UUID_PARSE = /^[0-9A-Fa-f\\-]{36}/;\n\n//RFC 4122\nconst handler:URISchemeHandler<UUIDComponents, URIOptions, URNComponents> = {\n\tscheme : \"urn:uuid\",\n\n\tparse : function (urnComponents:URNComponents, options:URIOptions):UUIDComponents {\n\t\tconst uuidComponents = urnComponents as UUIDComponents;\n\t\tuuidComponents.uuid = uuidComponents.nss;\n\t\tuuidComponents.nss = undefined;\n\n\t\tif (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {\n\t\t\tuuidComponents.error = uuidComponents.error || \"UUID is not valid.\";\n\t\t}\n\n\t\treturn uuidComponents;\n\t},\n\n\tserialize : function (uuidComponents:UUIDComponents, options:URIOptions):URNComponents {\n\t\tconst urnComponents = uuidComponents as URNComponents;\n\t\t//normalize UUID\n\t\turnComponents.nss = (uuidComponents.uuid || \"\").toLowerCase();\n\t\treturn urnComponents;\n\t},\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, SCHEMES } from \"../uri\";\n\nexport interface URNComponents extends URIComponents {\n\tnid?:string;\n\tnss?:string;\n}\n\nexport interface URNOptions extends URIOptions {\n\tnid?:string;\n}\n\nconst NID$ = \"(?:[0-9A-Za-z][0-9A-Za-z\\\\-]{1,31})\";\nconst PCT_ENCODED$ = \"(?:\\\\%[0-9A-Fa-f]{2})\";\nconst TRANS$$ = \"[0-9A-Za-z\\\\(\\\\)\\\\+\\\\,\\\\-\\\\.\\\\:\\\\=\\\\@\\\\;\\\\$\\\\_\\\\!\\\\*\\\\'\\\\/\\\\?\\\\#]\";\nconst NSS$ = \"(?:(?:\" + PCT_ENCODED$ + \"|\" + TRANS$$ + \")+)\";\nconst URN_SCHEME = new RegExp(\"^urn\\\\:(\" + NID$ + \")$\");\nconst URN_PATH = new RegExp(\"^(\" + NID$ + \")\\\\:(\" + NSS$ + \")$\");\nconst URN_PARSE = /^([^\\:]+)\\:(.*)/;\nconst URN_EXCLUDED = /[\\x00-\\x20\\\\\\\"\\&\\<\\>\\[\\]\\^\\`\\{\\|\\}\\~\\x7F-\\xFF]/g;\n\n//RFC 2141\nconst handler:URISchemeHandler<URNComponents,URNOptions> = {\n\tscheme : \"urn\",\n\n\tparse : function (components:URIComponents, options:URNOptions):URNComponents {\n\t\tconst matches = components.path && components.path.match(URN_PARSE);\n\t\tlet urnComponents = components as URNComponents;\n\n\t\tif (matches) {\n\t\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\t\tconst nid = matches[1].toLowerCase();\n\t\t\tconst nss = matches[2];\n\t\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\t\turnComponents.nid = nid;\n\t\t\turnComponents.nss = nss;\n\t\t\turnComponents.path = undefined;\n\n\t\t\tif (schemeHandler) {\n\t\t\t\turnComponents = schemeHandler.parse(urnComponents, options) as URNComponents;\n\t\t\t}\n\t\t} else {\n\t\t\turnComponents.error = urnComponents.error || \"URN can not be parsed.\";\n\t\t}\n\n\t\treturn urnComponents;\n\t},\n\n\tserialize : function (urnComponents:URNComponents, options:URNOptions):URIComponents {\n\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\tconst nid = urnComponents.nid;\n\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\tif (schemeHandler) {\n\t\t\turnComponents = schemeHandler.serialize(urnComponents, options) as URNComponents;\n\t\t}\n\n\t\tconst uriComponents = urnComponents as URIComponents;\n\t\tconst nss = urnComponents.nss;\n\t\turiComponents.path = `${nid || options.nid}:${nss}`;\n\n\t\treturn uriComponents;\n\t},\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, pctDecChars, unescapeComponent } from \"../uri\";\nimport punycode from \"punycode\";\nimport { merge, subexp, toUpperCase, toArray } from \"../util\";\n\nexport interface MailtoHeaders {\n\t[hfname:string]:string\n}\n\nexport interface MailtoComponents extends URIComponents {\n\tto:Array<string>,\n\theaders?:MailtoHeaders,\n\tsubject?:string,\n\tbody?:string\n}\n\nconst O:MailtoHeaders = {};\nconst isIRI = true;\n\n//RFC 3986\nconst UNRESERVED$$ = \"[A-Za-z0-9\\\\-\\\\.\\\\_\\\\~\" + (isIRI ? \"\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF\" : \"\") + \"]\";\nconst HEXDIG$$ = \"[0-9A-Fa-f]\"; //case-insensitive\nconst PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)); //expanded\n\n//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =\n//const ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\/\\\\=\\\\?\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QTEXT$$ = \"[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F]\"; //(%d1-8 / %d11-12 / %d14-31 / %d127)\n//const QTEXT$$ = merge(\"[\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7E]\", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext\n//const VCHAR$$ = \"[\\\\x21-\\\\x7E]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QP$ = subexp(\"\\\\\\\\\" + merge(\"[\\\\x00\\\\x0D\\\\x0A]\", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext\n//const FWS$ = subexp(subexp(WSP$$ + \"*\" + \"\\\\x0D\\\\x0A\") + \"?\" + WSP$$ + \"+\");\n//const QUOTED_PAIR$ = subexp(subexp(\"\\\\\\\\\" + subexp(VCHAR$$ + \"|\" + WSP$$)) + \"|\" + OBS_QP$);\n//const QUOTED_STRING$ = subexp('\\\\\"' + subexp(FWS$ + \"?\" + QCONTENT$) + \"*\" + FWS$ + \"?\" + '\\\\\"');\nconst ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\$\\\\%\\\\'\\\\*\\\\+\\\\-\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\nconst QTEXT$$ = \"[\\\\!\\\\$\\\\%\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\-\\\\.0-9\\\\<\\\\>A-Z\\\\x5E-\\\\x7E]\";\nconst VCHAR$$ = merge(QTEXT$$, \"[\\\\\\\"\\\\\\\\]\");\nconst DOT_ATOM_TEXT$ = subexp(ATEXT$$ + \"+\" + subexp(\"\\\\.\" + ATEXT$$ + \"+\") + \"*\");\nconst QUOTED_PAIR$ = subexp(\"\\\\\\\\\" + VCHAR$$);\nconst QCONTENT$ = subexp(QTEXT$$ + \"|\" + QUOTED_PAIR$);\nconst QUOTED_STRING$ = subexp('\\\\\"' + QCONTENT$ + \"*\" + '\\\\\"');\n\n//RFC 6068\nconst DTEXT_NO_OBS$$ = \"[\\\\x21-\\\\x5A\\\\x5E-\\\\x7E]\"; //%d33-90 / %d94-126\nconst SOME_DELIMS$$ = \"[\\\\!\\\\$\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\:\\\\@]\";\nconst QCHAR$ = subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$ + \"|\" + SOME_DELIMS$$);\nconst DOMAIN$ = subexp(DOT_ATOM_TEXT$ + \"|\" + \"\\\\[\" + DTEXT_NO_OBS$$ + \"*\" + \"\\\\]\");\nconst LOCAL_PART$ = subexp(DOT_ATOM_TEXT$ + \"|\" + QUOTED_STRING$);\nconst ADDR_SPEC$ = subexp(LOCAL_PART$ + \"\\\\@\" + DOMAIN$);\nconst TO$ = subexp(ADDR_SPEC$ + subexp(\"\\\\,\" + ADDR_SPEC$) + \"*\");\nconst HFNAME$ = subexp(QCHAR$ + \"*\");\nconst HFVALUE$ = HFNAME$;\nconst HFIELD$ = subexp(HFNAME$ + \"\\\\=\" + HFVALUE$);\nconst HFIELDS2$ = subexp(HFIELD$ + subexp(\"\\\\&\" + HFIELD$) + \"*\");\nconst HFIELDS$ = subexp(\"\\\\?\" + HFIELDS2$);\nconst MAILTO_URI = new RegExp(\"^mailto\\\\:\" + TO$ + \"?\" + HFIELDS$ + \"?$\");\n\nconst UNRESERVED = new RegExp(UNRESERVED$$, \"g\");\nconst PCT_ENCODED = new RegExp(PCT_ENCODED$, \"g\");\nconst NOT_LOCAL_PART = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", '[\\\\\"]', VCHAR$$), \"g\");\nconst NOT_DOMAIN = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", \"[\\\\[]\", DTEXT_NO_OBS$$, \"[\\\\]]\"), \"g\");\nconst NOT_HFNAME = new RegExp(merge(\"[^]\", UNRESERVED$$, SOME_DELIMS$$), \"g\");\nconst NOT_HFVALUE = NOT_HFNAME;\nconst TO = new RegExp(\"^\" + TO$ + \"$\");\nconst HFIELDS = new RegExp(\"^\" + HFIELDS2$ + \"$\");\n\nfunction decodeUnreserved(str:string):string {\n\tconst decStr = pctDecChars(str);\n\treturn (!decStr.match(UNRESERVED) ? str : decStr);\n}\n\nconst handler:URISchemeHandler<MailtoComponents> = {\n\tscheme : \"mailto\",\n\n\tparse : function (components:URIComponents, options:URIOptions):MailtoComponents {\n\t\tconst mailtoComponents = components as MailtoComponents;\n\t\tconst to = mailtoComponents.to = (mailtoComponents.path ? mailtoComponents.path.split(\",\") : []);\n\t\tmailtoComponents.path = undefined;\n\n\t\tif (mailtoComponents.query) {\n\t\t\tlet unknownHeaders = false\n\t\t\tconst headers:MailtoHeaders = {};\n\t\t\tconst hfields = mailtoComponents.query.split(\"&\");\n\n\t\t\tfor (let x = 0, xl = hfields.length; x < xl; ++x) {\n\t\t\t\tconst hfield = hfields[x].split(\"=\");\n\n\t\t\t\tswitch (hfield[0]) {\n\t\t\t\t\tcase \"to\":\n\t\t\t\t\t\tconst toAddrs = hfield[1].split(\",\");\n\t\t\t\t\t\tfor (let x = 0, xl = toAddrs.length; x < xl; ++x) {\n\t\t\t\t\t\t\tto.push(toAddrs[x]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"subject\":\n\t\t\t\t\t\tmailtoComponents.subject = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"body\":\n\t\t\t\t\t\tmailtoComponents.body = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunknownHeaders = true;\n\t\t\t\t\t\theaders[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (unknownHeaders) mailtoComponents.headers = headers;\n\t\t}\n\n\t\tmailtoComponents.query = undefined;\n\n\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\tconst addr = to[x].split(\"@\");\n\n\t\t\taddr[0] = unescapeComponent(addr[0]);\n\n\t\t\tif (!options.unicodeSupport) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\taddr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tmailtoComponents.error = mailtoComponents.error || \"Email address's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\taddr[1] = unescapeComponent(addr[1], options).toLowerCase();\n\t\t\t}\n\n\t\t\tto[x] = addr.join(\"@\");\n\t\t}\n\n\t\treturn mailtoComponents;\n\t},\n\n\tserialize : function (mailtoComponents:MailtoComponents, options:URIOptions):URIComponents {\n\t\tconst components = mailtoComponents as URIComponents;\n\t\tconst to = toArray(mailtoComponents.to);\n\t\tif (to) {\n\t\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\t\tconst toAddr = String(to[x]);\n\t\t\t\tconst atIdx = toAddr.lastIndexOf(\"@\");\n\t\t\t\tconst localPart = (toAddr.slice(0, atIdx)).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);\n\t\t\t\tlet domain = toAddr.slice(atIdx + 1);\n\n\t\t\t\t//convert IDN via punycode\n\t\t\t\ttry {\n\t\t\t\t\tdomain = (!options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain));\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Email address's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t\t}\n\n\t\t\t\tto[x] = localPart + \"@\" + domain;\n\t\t\t}\n\n\t\t\tcomponents.path = to.join(\",\");\n\t\t}\n\n\t\tconst headers = mailtoComponents.headers = mailtoComponents.headers || {};\n\n\t\tif (mailtoComponents.subject) headers[\"subject\"] = mailtoComponents.subject;\n\t\tif (mailtoComponents.body) headers[\"body\"] = mailtoComponents.body;\n\n\t\tconst fields = [];\n\t\tfor (const name in headers) {\n\t\t\tif (headers[name] !== O[name]) {\n\t\t\t\tfields.push(\n\t\t\t\t\tname.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) +\n\t\t\t\t\t\"=\" +\n\t\t\t\t\theaders[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tif (fields.length) {\n\t\t\tcomponents.query = fields.join(\"&\");\n\t\t}\n\n\t\treturn components;\n\t}\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport http from \"./http\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"https\",\n\tdomainHost : http.domainHost,\n\tparse : http.parse,\n\tserialize : http.serialize\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"http\",\n\n\tdomainHost : true,\n\n\tparse : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\t//report missing host\n\t\tif (!components.host) {\n\t\t\tcomponents.error = components.error || \"HTTP URIs must have a host.\";\n\t\t}\n\n\t\treturn components;\n\t},\n\n\tserialize : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\t//normalize the default port\n\t\tif (components.port === (String(components.scheme).toLowerCase() !== \"https\" ? 80 : 443) || components.port === \"\") {\n\t\t\tcomponents.port = undefined;\n\t\t}\n\t\t\n\t\t//normalize the empty path\n\t\tif (!components.path) {\n\t\t\tcomponents.path = \"/\";\n\t\t}\n\n\t\t//NOTE: We do not parse query strings for HTTP URIs\n\t\t//as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n\t\t//and not the HTTP spec.\n\n\t\treturn components;\n\t}\n};\n\nexport default handler;","/**\n * URI.js\n *\n * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.\n * @author <a href=\"mailto:gary.court@gmail.com\">Gary Court</a>\n * @see http://github.com/garycourt/uri-js\n */\n\n/**\n * Copyright 2011 Gary Court. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation are those of the\n * authors and should not be interpreted as representing official policies, either expressed\n * or implied, of Gary Court.\n */\n\nimport URI_PROTOCOL from \"./regexps-uri\";\nimport IRI_PROTOCOL from \"./regexps-iri\";\nimport punycode from \"punycode\";\nimport { toUpperCase, typeOf, assign } from \"./util\";\n\nexport interface URIComponents {\n\tscheme?:string;\n\tuserinfo?:string;\n\thost?:string;\n\tport?:number|string;\n\tpath?:string;\n\tquery?:string;\n\tfragment?:string;\n\treference?:string;\n\terror?:string;\n}\n\nexport interface URIOptions {\n\tscheme?:string;\n\treference?:string;\n\ttolerant?:boolean;\n\tabsolutePath?:boolean;\n\tiri?:boolean;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n}\n\nexport interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {\n\tscheme:string;\n\tparse(components:ParentComponents, options:Options):Components;\n\tserialize(components:Components, options:Options):ParentComponents;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n\tabsolutePath?:boolean;\n}\n\nexport interface URIRegExps {\n\tNOT_SCHEME : RegExp,\n\tNOT_USERINFO : RegExp,\n\tNOT_HOST : RegExp,\n\tNOT_PATH : RegExp,\n\tNOT_PATH_NOSCHEME : RegExp,\n\tNOT_QUERY : RegExp,\n\tNOT_FRAGMENT : RegExp,\n\tESCAPE : RegExp,\n\tUNRESERVED : RegExp,\n\tOTHER_CHARS : RegExp,\n\tPCT_ENCODED : RegExp,\n\tIPV4ADDRESS : RegExp,\n\tIPV6ADDRESS : RegExp,\n}\n\nexport const SCHEMES:{[scheme:string]:URISchemeHandler} = {};\n\nexport function pctEncChar(chr:string):string {\n\tconst c = chr.charCodeAt(0);\n\tlet e:string;\n\n\tif (c < 16) e = \"%0\" + c.toString(16).toUpperCase();\n\telse if (c < 128) e = \"%\" + c.toString(16).toUpperCase();\n\telse if (c < 2048) e = \"%\" + ((c >> 6) | 192).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\telse e = \"%\" + ((c >> 12) | 224).toString(16).toUpperCase() + \"%\" + (((c >> 6) & 63) | 128).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\n\treturn e;\n}\n\nexport function pctDecChars(str:string):string {\n\tlet newStr = \"\";\n\tlet i = 0;\n\tconst il = str.length;\n\n\twhile (i < il) {\n\t\tconst c = parseInt(str.substr(i + 1, 2), 16);\n\n\t\tif (c < 128) {\n\t\t\tnewStr += String.fromCharCode(c);\n\t\t\ti += 3;\n\t\t}\n\t\telse if (c >= 194 && c < 224) {\n\t\t\tif ((il - i) >= 6) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 6);\n\t\t\t}\n\t\t\ti += 6;\n\t\t}\n\t\telse if (c >= 224) {\n\t\t\tif ((il - i) >= 9) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tconst c3 = parseInt(str.substr(i + 7, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 9);\n\t\t\t}\n\t\t\ti += 9;\n\t\t}\n\t\telse {\n\t\t\tnewStr += str.substr(i, 3);\n\t\t\ti += 3;\n\t\t}\n\t}\n\n\treturn newStr;\n}\n\nfunction _normalizeComponentEncoding(components:URIComponents, protocol:URIRegExps) {\n\tfunction decodeUnreserved(str:string):string {\n\t\tconst decStr = pctDecChars(str);\n\t\treturn (!decStr.match(protocol.UNRESERVED) ? str : decStr);\n\t}\n\n\tif (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, \"\");\n\tif (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace((components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME), pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\n\treturn components;\n};\n\nfunction _stripLeadingZeros(str:string):string {\n\treturn str.replace(/^0*(.*)/, \"$1\") || \"0\";\n}\n\nfunction _normalizeIPv4(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV4ADDRESS) || [];\n\tconst [, address] = matches;\n\t\n\tif (address) {\n\t\treturn address.split(\".\").map(_stripLeadingZeros).join(\".\");\n\t} else {\n\t\treturn host;\n\t}\n}\n\nfunction _normalizeIPv6(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV6ADDRESS) || [];\n\tconst [, address, zone] = matches;\n\n\tif (address) {\n\t\tconst [last, first] = address.toLowerCase().split('::').reverse();\n\t\tconst firstFields = first ? first.split(\":\").map(_stripLeadingZeros) : [];\n\t\tconst lastFields = last.split(\":\").map(_stripLeadingZeros);\n\t\tconst isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);\n\t\tconst fieldCount = isLastFieldIPv4Address ? 7 : 8;\n\t\tconst lastFieldsStart = lastFields.length - fieldCount;\n\t\tconst fields = Array<string>(fieldCount);\n\n\t\tfor (let x = 0; x < fieldCount; ++x) {\n\t\t\tfields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';\n\t\t}\n\n\t\tif (isLastFieldIPv4Address) {\n\t\t\tfields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);\n\t\t}\n\n\t\tconst allZeroFields = fields.reduce<Array<{index:number,length:number}>>((acc, field, index) => {\n\t\t\tif (!field || field === \"0\") {\n\t\t\t\tconst lastLongest = acc[acc.length - 1];\n\t\t\t\tif (lastLongest && lastLongest.index + lastLongest.length === index) {\n\t\t\t\t\tlastLongest.length++;\n\t\t\t\t} else {\n\t\t\t\t\tacc.push({ index, length : 1 });\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn acc;\n\t\t}, []);\n\n\t\tconst longestZeroFields = allZeroFields.sort((a, b) => b.length - a.length)[0];\n\n\t\tlet newHost:string;\n\t\tif (longestZeroFields && longestZeroFields.length > 1) {\n\t\t\tconst newFirst = fields.slice(0, longestZeroFields.index) ;\n\t\t\tconst newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);\n\t\t\tnewHost = newFirst.join(\":\") + \"::\" + newLast.join(\":\");\n\t\t} else {\n\t\t\tnewHost = fields.join(\":\");\n\t\t}\n\n\t\tif (zone) {\n\t\t\tnewHost += \"%\" + zone;\n\t\t}\n\n\t\treturn newHost;\n\t} else {\n\t\treturn host;\n\t}\n}\n\nconst URI_PARSE = /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:([^\\/?#@]*)@)?(\\[[^\\/?#\\]]+\\]|[^\\/?#:]*)(?:\\:(\\d*))?))?([^?#]*)(?:\\?([^#]*))?(?:#((?:.|\\n|\\r)*))?/i;\nconst NO_MATCH_IS_UNDEFINED = (<RegExpMatchArray>(\"\").match(/(){0}/))[1] === undefined;\n\nexport function parse(uriString:string, options:URIOptions = {}):URIComponents {\n\tconst components:URIComponents = {};\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\n\tif (options.reference === \"suffix\") uriString = (options.scheme ? options.scheme + \":\" : \"\") + \"//\" + uriString;\n\n\tconst matches = uriString.match(URI_PARSE);\n\n\tif (matches) {\n\t\tif (NO_MATCH_IS_UNDEFINED) {\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1];\n\t\t\tcomponents.userinfo = matches[3];\n\t\t\tcomponents.host = matches[4];\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = matches[7];\n\t\t\tcomponents.fragment = matches[8];\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = matches[5];\n\t\t\t}\n\t\t} else { //IE FIX for improper RegExp matching\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1] || undefined;\n\t\t\tcomponents.userinfo = (uriString.indexOf(\"@\") !== -1 ? matches[3] : undefined);\n\t\t\tcomponents.host = (uriString.indexOf(\"//\") !== -1 ? matches[4] : undefined);\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = (uriString.indexOf(\"?\") !== -1 ? matches[7] : undefined);\n\t\t\tcomponents.fragment = (uriString.indexOf(\"#\") !== -1 ? matches[8] : undefined);\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = (uriString.match(/\\/\\/(?:.|\\n)*\\:(?:\\/|\\?|\\#|$)/) ? matches[4] : undefined);\n\t\t\t}\n\t\t}\n\n\t\tif (components.host) {\n\t\t\t//normalize IP hosts\n\t\t\tcomponents.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);\n\t\t}\n\n\t\t//determine reference type\n\t\tif (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {\n\t\t\tcomponents.reference = \"same-document\";\n\t\t} else if (components.scheme === undefined) {\n\t\t\tcomponents.reference = \"relative\";\n\t\t} else if (components.fragment === undefined) {\n\t\t\tcomponents.reference = \"absolute\";\n\t\t} else {\n\t\t\tcomponents.reference = \"uri\";\n\t\t}\n\n\t\t//check for reference errors\n\t\tif (options.reference && options.reference !== \"suffix\" && options.reference !== components.reference) {\n\t\t\tcomponents.error = components.error || \"URI is not a \" + options.reference + \" reference.\";\n\t\t}\n\n\t\t//find scheme handler\n\t\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t\t//check if scheme can't handle IRIs\n\t\tif (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n\t\t\t//if host component is a domain name\n\t\t\tif (components.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost))) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\tcomponents.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert IRI -> URI\n\t\t\t_normalizeComponentEncoding(components, URI_PROTOCOL);\n\t\t} else {\n\t\t\t//normalize encodings\n\t\t\t_normalizeComponentEncoding(components, protocol);\n\t\t}\n\n\t\t//perform scheme specific parsing\n\t\tif (schemeHandler && schemeHandler.parse) {\n\t\t\tschemeHandler.parse(components, options);\n\t\t}\n\t} else {\n\t\tcomponents.error = components.error || \"URI can not be parsed.\";\n\t}\n\n\treturn components;\n};\n\nfunction _recomposeAuthority(components:URIComponents, options:URIOptions):string|undefined {\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array<string> = [];\n\n\tif (components.userinfo !== undefined) {\n\t\turiTokens.push(components.userinfo);\n\t\turiTokens.push(\"@\");\n\t}\n\n\tif (components.host !== undefined) {\n\t\t//normalize IP hosts, add brackets and escape zone separator for IPv6\n\t\turiTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => \"[\" + $1 + ($2 ? \"%25\" + $2 : \"\") + \"]\"));\n\t}\n\n\tif (typeof components.port === \"number\") {\n\t\turiTokens.push(\":\");\n\t\turiTokens.push(components.port.toString(10));\n\t}\n\n\treturn uriTokens.length ? uriTokens.join(\"\") : undefined;\n};\n\nconst RDS1 = /^\\.\\.?\\//;\nconst RDS2 = /^\\/\\.(\\/|$)/;\nconst RDS3 = /^\\/\\.\\.(\\/|$)/;\nconst RDS4 = /^\\.\\.?$/;\nconst RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/;\n\nexport function removeDotSegments(input:string):string {\n\tconst output:Array<string> = [];\n\n\twhile (input.length) {\n\t\tif (input.match(RDS1)) {\n\t\t\tinput = input.replace(RDS1, \"\");\n\t\t} else if (input.match(RDS2)) {\n\t\t\tinput = input.replace(RDS2, \"/\");\n\t\t} else if (input.match(RDS3)) {\n\t\t\tinput = input.replace(RDS3, \"/\");\n\t\t\toutput.pop();\n\t\t} else if (input === \".\" || input === \"..\") {\n\t\t\tinput = \"\";\n\t\t} else {\n\t\t\tconst im = input.match(RDS5);\n\t\t\tif (im) {\n\t\t\t\tconst s = im[0];\n\t\t\t\tinput = input.slice(s.length);\n\t\t\t\toutput.push(s);\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Unexpected dot segment condition\");\n\t\t\t}\n\t\t}\n\t}\n\n\treturn output.join(\"\");\n};\n\nexport function serialize(components:URIComponents, options:URIOptions = {}):string {\n\tconst protocol = (options.iri ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array<string> = [];\n\n\t//find scheme handler\n\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t//perform scheme specific serialization\n\tif (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);\n\n\tif (components.host) {\n\t\t//if host component is an IPv6 address\n\t\tif (protocol.IPV6ADDRESS.test(components.host)) {\n\t\t\t//TODO: normalize IPv6 address as per RFC 5952\n\t\t}\n\n\t\t//if host component is a domain name\n\t\telse if (options.domainHost || (schemeHandler && schemeHandler.domainHost)) {\n\t\t\t//convert IDN via punycode\n\t\t\ttry {\n\t\t\t\tcomponents.host = (!options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host));\n\t\t\t} catch (e) {\n\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t}\n\t\t}\n\t}\n\n\t//normalize encoding\n\t_normalizeComponentEncoding(components, protocol);\n\n\tif (options.reference !== \"suffix\" && components.scheme) {\n\t\turiTokens.push(components.scheme);\n\t\turiTokens.push(\":\");\n\t}\n\n\tconst authority = _recomposeAuthority(components, options);\n\tif (authority !== undefined) {\n\t\tif (options.reference !== \"suffix\") {\n\t\t\turiTokens.push(\"//\");\n\t\t}\n\n\t\turiTokens.push(authority);\n\n\t\tif (components.path && components.path.charAt(0) !== \"/\") {\n\t\t\turiTokens.push(\"/\");\n\t\t}\n\t}\n\n\tif (components.path !== undefined) {\n\t\tlet s = components.path;\n\n\t\tif (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n\t\t\ts = removeDotSegments(s);\n\t\t}\n\n\t\tif (authority === undefined) {\n\t\t\ts = s.replace(/^\\/\\//, \"/%2F\"); //don't allow the path to start with \"//\"\n\t\t}\n\n\t\turiTokens.push(s);\n\t}\n\n\tif (components.query !== undefined) {\n\t\turiTokens.push(\"?\");\n\t\turiTokens.push(components.query);\n\t}\n\n\tif (components.fragment !== undefined) {\n\t\turiTokens.push(\"#\");\n\t\turiTokens.push(components.fragment);\n\t}\n\n\treturn uriTokens.join(\"\"); //merge tokens into a string\n};\n\nexport function resolveComponents(base:URIComponents, relative:URIComponents, options:URIOptions = {}, skipNormalization?:boolean):URIComponents {\n\tconst target:URIComponents = {};\n\n\tif (!skipNormalization) {\n\t\tbase = parse(serialize(base, options), options); //normalize base components\n\t\trelative = parse(serialize(relative, options), options); //normalize relative components\n\t}\n\toptions = options || {};\n\n\tif (!options.tolerant && relative.scheme) {\n\t\ttarget.scheme = relative.scheme;\n\t\t//target.authority = relative.authority;\n\t\ttarget.userinfo = relative.userinfo;\n\t\ttarget.host = relative.host;\n\t\ttarget.port = relative.port;\n\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\ttarget.query = relative.query;\n\t} else {\n\t\tif (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n\t\t\t//target.authority = relative.authority;\n\t\t\ttarget.userinfo = relative.userinfo;\n\t\t\ttarget.host = relative.host;\n\t\t\ttarget.port = relative.port;\n\t\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\t\ttarget.query = relative.query;\n\t\t} else {\n\t\t\tif (!relative.path) {\n\t\t\t\ttarget.path = base.path;\n\t\t\t\tif (relative.query !== undefined) {\n\t\t\t\t\ttarget.query = relative.query;\n\t\t\t\t} else {\n\t\t\t\t\ttarget.query = base.query;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (relative.path.charAt(0) === \"/\") {\n\t\t\t\t\ttarget.path = removeDotSegments(relative.path);\n\t\t\t\t} else {\n\t\t\t\t\tif ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n\t\t\t\t\t\ttarget.path = \"/\" + relative.path;\n\t\t\t\t\t} else if (!base.path) {\n\t\t\t\t\t\ttarget.path = relative.path;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttarget.path = base.path.slice(0, base.path.lastIndexOf(\"/\") + 1) + relative.path;\n\t\t\t\t\t}\n\t\t\t\t\ttarget.path = removeDotSegments(target.path);\n\t\t\t\t}\n\t\t\t\ttarget.query = relative.query;\n\t\t\t}\n\t\t\t//target.authority = base.authority;\n\t\t\ttarget.userinfo = base.userinfo;\n\t\t\ttarget.host = base.host;\n\t\t\ttarget.port = base.port;\n\t\t}\n\t\ttarget.scheme = base.scheme;\n\t}\n\n\ttarget.fragment = relative.fragment;\n\n\treturn target;\n};\n\nexport function resolve(baseURI:string, relativeURI:string, options?:URIOptions):string {\n\tconst schemelessOptions = assign({ scheme : 'null' }, options);\n\treturn serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);\n};\n\nexport function normalize(uri:string, options?:URIOptions):string;\nexport function normalize(uri:URIComponents, options?:URIOptions):URIComponents;\nexport function normalize(uri:any, options?:URIOptions):any {\n\tif (typeof uri === \"string\") {\n\t\turi = serialize(parse(uri, options), options);\n\t} else if (typeOf(uri) === \"object\") {\n\t\turi = parse(serialize(<URIComponents>uri, options), options);\n\t}\n\n\treturn uri;\n};\n\nexport function equal(uriA:string, uriB:string, options?: URIOptions):boolean;\nexport function equal(uriA:URIComponents, uriB:URIComponents, options?:URIOptions):boolean;\nexport function equal(uriA:any, uriB:any, options?:URIOptions):boolean {\n\tif (typeof uriA === \"string\") {\n\t\turiA = serialize(parse(uriA, options), options);\n\t} else if (typeOf(uriA) === \"object\") {\n\t\turiA = serialize(<URIComponents>uriA, options);\n\t}\n\n\tif (typeof uriB === \"string\") {\n\t\turiB = serialize(parse(uriB, options), options);\n\t} else if (typeOf(uriB) === \"object\") {\n\t\turiB = serialize(<URIComponents>uriB, options);\n\t}\n\n\treturn uriA === uriB;\n};\n\nexport function escapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE), pctEncChar);\n};\n\nexport function unescapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED), pctDecChars);\n};\n","'use strict';\n\n/** Highest positive signed 32-bit float value */\nconst maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nconst base = 36;\nconst tMin = 1;\nconst tMax = 26;\nconst skew = 38;\nconst damp = 700;\nconst initialBias = 72;\nconst initialN = 128; // 0x80\nconst delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nconst regexPunycode = /^xn--/;\nconst regexNonASCII = /[^\\0-\\x7E]/; // non-ASCII chars\nconst regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nconst errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nconst baseMinusTMin = base - tMin;\nconst floor = Math.floor;\nconst stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, fn) {\n\tconst result = [];\n\tlet length = array.length;\n\twhile (length--) {\n\t\tresult[length] = fn(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(string, fn) {\n\tconst parts = string.split('@');\n\tlet result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tstring = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tstring = string.replace(regexSeparators, '\\x2E');\n\tconst labels = string.split('.');\n\tconst encoded = map(labels, fn).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see <https://mathiasbynens.be/notes/javascript-encoding>\n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tconst output = [];\n\tlet counter = 0;\n\tconst length = string.length;\n\twhile (counter < length) {\n\t\tconst value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tconst extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) { // Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nconst ucs2encode = array => String.fromCodePoint(...array);\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nconst basicToDigit = function(codePoint) {\n\tif (codePoint - 0x30 < 0x0A) {\n\t\treturn codePoint - 0x16;\n\t}\n\tif (codePoint - 0x41 < 0x1A) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint - 0x61 < 0x1A) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nconst digitToBasic = function(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nconst adapt = function(delta, numPoints, firstTime) {\n\tlet k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nconst decode = function(input) {\n\t// Don't use UCS-2.\n\tconst output = [];\n\tconst inputLength = input.length;\n\tlet i = 0;\n\tlet n = initialN;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tlet basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (let j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tlet oldi = i;\n\t\tfor (let w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\n\t\t\tconst digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\n\t\t}\n\n\t\tconst out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\n\t}\n\n\treturn String.fromCodePoint(...output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nconst encode = function(input) {\n\tconst output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tlet inputLength = input.length;\n\n\t// Initialize the state.\n\tlet n = initialN;\n\tlet delta = 0;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points.\n\tfor (const currentValue of input) {\n\t\tif (currentValue < 0x80) {\n\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t}\n\t}\n\n\tlet basicLength = output.length;\n\tlet handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tlet m = maxInt;\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\tm = currentValue;\n\t\t\t}\n\t\t}\n\n\t\t// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,\n\t\t// but guard against overflow.\n\t\tconst handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\t\t\tif (currentValue == n) {\n\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\tlet q = delta;\n\t\t\t\tfor (let k = base; /* no condition */; k += base) {\n\t\t\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tconst qMinusT = q - t;\n\t\t\t\t\tconst baseMinusT = base - t;\n\t\t\t\t\toutput.push(\n\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t);\n\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t}\n\n\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\tdelta = 0;\n\t\t\t\t++handledCPCount;\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nconst toUnicode = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexPunycode.test(string)\n\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t: string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nconst toASCII = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexNonASCII.test(string)\n\t\t\t? 'xn--' + encode(string)\n\t\t\t: string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nconst punycode = {\n\t/**\n\t * A string representing the current Punycode.js version number.\n\t * @memberOf punycode\n\t * @type String\n\t */\n\t'version': '2.1.0',\n\t/**\n\t * An object of methods to convert from JavaScript's internal character\n\t * representation (UCS-2) to Unicode code points, and back.\n\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t * @memberOf punycode\n\t * @type Object\n\t */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\nexport default punycode;\n","import { URIRegExps } from \"./uri\";\nimport { buildExps } from \"./regexps-uri\";\n\nexport default buildExps(true);\n","import { URIRegExps } from \"./uri\";\nimport { merge, subexp } from \"./util\";\n\nexport function buildExps(isIRI:boolean):URIRegExps {\n\tconst\n\t\tALPHA$$ = \"[A-Za-z]\",\n\t\tCR$ = \"[\\\\x0D]\",\n\t\tDIGIT$$ = \"[0-9]\",\n\t\tDQUOTE$$ = \"[\\\\x22]\",\n\t\tHEXDIG$$ = merge(DIGIT$$, \"[A-Fa-f]\"), //case-insensitive\n\t\tLF$$ = \"[\\\\x0A]\",\n\t\tSP$$ = \"[\\\\x20]\",\n\t\tPCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)), //expanded\n\t\tGEN_DELIMS$$ = \"[\\\\:\\\\/\\\\?\\\\#\\\\[\\\\]\\\\@]\",\n\t\tSUB_DELIMS$$ = \"[\\\\!\\\\$\\\\&\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\=]\",\n\t\tRESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),\n\t\tUCSCHAR$$ = isIRI ? \"[\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF]\" : \"[]\", //subset, excludes bidi control characters\n\t\tIPRIVATE$$ = isIRI ? \"[\\\\uE000-\\\\uF8FF]\" : \"[]\", //subset\n\t\tUNRESERVED$$ = merge(ALPHA$$, DIGIT$$, \"[\\\\-\\\\.\\\\_\\\\~]\", UCSCHAR$$),\n\t\tSCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\") + \"*\"),\n\t\tUSERINFO$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\")) + \"*\"),\n\t\tDEC_OCTET$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"[1-9]\" + DIGIT$$) + \"|\" + DIGIT$$),\n\t\tDEC_OCTET_RELAXED$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"0?[1-9]\" + DIGIT$$) + \"|0?0?\" + DIGIT$$), //relaxed parsing rules\n\t\tIPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$),\n\t\tH16$ = subexp(HEXDIG$$ + \"{1,4}\"),\n\t\tLS32$ = subexp(subexp(H16$ + \"\\\\:\" + H16$) + \"|\" + IPV4ADDRESS$),\n\t\tIPV6ADDRESS1$ = subexp( subexp(H16$ + \"\\\\:\") + \"{6}\" + LS32$), // 6( h16 \":\" ) ls32\n\t\tIPV6ADDRESS2$ = subexp( \"\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{5}\" + LS32$), // \"::\" 5( h16 \":\" ) ls32\n\t\tIPV6ADDRESS3$ = subexp(subexp( H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{4}\" + LS32$), //[ h16 ] \"::\" 4( h16 \":\" ) ls32\n\t\tIPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,1}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{3}\" + LS32$), //[ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n\t\tIPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,2}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{2}\" + LS32$), //[ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n\t\tIPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,3}\" + H16$) + \"?\\\\:\\\\:\" + H16$ + \"\\\\:\" + LS32$), //[ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n\t\tIPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,4}\" + H16$) + \"?\\\\:\\\\:\" + LS32$), //[ *4( h16 \":\" ) h16 ] \"::\" ls32\n\t\tIPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,5}\" + H16$) + \"?\\\\:\\\\:\" + H16$ ), //[ *5( h16 \":\" ) h16 ] \"::\" h16\n\t\tIPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,6}\" + H16$) + \"?\\\\:\\\\:\" ), //[ *6( h16 \":\" ) h16 ] \"::\"\n\t\tIPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join(\"|\")),\n\t\tZONEID$ = subexp(subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$) + \"+\"), //RFC 6874\n\t\tIPV6ADDRZ$ = subexp(IPV6ADDRESS$ + \"\\\\%25\" + ZONEID$), //RFC 6874\n\t\tIPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + ZONEID$), //RFC 6874, with relaxed parsing rules\n\t\tIPVFUTURE$ = subexp(\"[vV]\" + HEXDIG$$ + \"+\\\\.\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\") + \"+\"),\n\t\tIP_LITERAL$ = subexp(\"\\\\[\" + subexp(IPV6ADDRZ_RELAXED$ + \"|\" + IPV6ADDRESS$ + \"|\" + IPVFUTURE$) + \"\\\\]\"), //RFC 6874\n\t\tREG_NAME$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$)) + \"*\"),\n\t\tHOST$ = subexp(IP_LITERAL$ + \"|\" + IPV4ADDRESS$ + \"(?!\" + REG_NAME$ + \")\" + \"|\" + REG_NAME$),\n\t\tPORT$ = subexp(DIGIT$$ + \"*\"),\n\t\tAUTHORITY$ = subexp(subexp(USERINFO$ + \"@\") + \"?\" + HOST$ + subexp(\"\\\\:\" + PORT$) + \"?\"),\n\t\tPCHAR$ = subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@]\")),\n\t\tSEGMENT$ = subexp(PCHAR$ + \"*\"),\n\t\tSEGMENT_NZ$ = subexp(PCHAR$ + \"+\"),\n\t\tSEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\@]\")) + \"+\"),\n\t\tPATH_ABEMPTY$ = subexp(subexp(\"\\\\/\" + SEGMENT$) + \"*\"),\n\t\tPATH_ABSOLUTE$ = subexp(\"\\\\/\" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + \"?\"), //simplified\n\t\tPATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_EMPTY$ = \"(?!\" + PCHAR$ + \")\",\n\t\tPATH$ = subexp(PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tQUERY$ = subexp(subexp(PCHAR$ + \"|\" + merge(\"[\\\\/\\\\?]\", IPRIVATE$$)) + \"*\"),\n\t\tFRAGMENT$ = subexp(subexp(PCHAR$ + \"|[\\\\/\\\\?]\") + \"*\"),\n\t\tHIER_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tURI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tRELATIVE_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$),\n\t\tRELATIVE$ = subexp(RELATIVE_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tURI_REFERENCE$ = subexp(URI$ + \"|\" + RELATIVE$),\n\t\tABSOLUTE_URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\"),\n\n\t\tGENERIC_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tRELATIVE_REF$ = \"^(){0}\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tABSOLUTE_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?$\",\n\t\tSAMEDOC_REF$ = \"^\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tAUTHORITY_REF$ = \"^\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?$\"\n\t;\n\n\treturn {\n\t\tNOT_SCHEME : new RegExp(merge(\"[^]\", ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\"), \"g\"),\n\t\tNOT_USERINFO : new RegExp(merge(\"[^\\\\%\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_HOST : new RegExp(merge(\"[^\\\\%\\\\[\\\\]\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH : new RegExp(merge(\"[^\\\\%\\\\/\\\\:\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH_NOSCHEME : new RegExp(merge(\"[^\\\\%\\\\/\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_QUERY : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\", IPRIVATE$$), \"g\"),\n\t\tNOT_FRAGMENT : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\"), \"g\"),\n\t\tESCAPE : new RegExp(merge(\"[^]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tUNRESERVED : new RegExp(UNRESERVED$$, \"g\"),\n\t\tOTHER_CHARS : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, RESERVED$$), \"g\"),\n\t\tPCT_ENCODED : new RegExp(PCT_ENCODED$, \"g\"),\n\t\tIPV4ADDRESS : new RegExp(\"^(\" + IPV4ADDRESS$ + \")$\"),\n\t\tIPV6ADDRESS : new RegExp(\"^\\\\[?(\" + IPV6ADDRESS$ + \")\" + subexp(subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + \"(\" + ZONEID$ + \")\") + \"?\\\\]?$\") //RFC 6874, with relaxed parsing rules\n\t};\n}\n\nexport default buildExps(false);\n","export function merge(...sets:Array<string>):string {\n\tif (sets.length > 1) {\n\t\tsets[0] = sets[0].slice(0, -1);\n\t\tconst xl = sets.length - 1;\n\t\tfor (let x = 1; x < xl; ++x) {\n\t\t\tsets[x] = sets[x].slice(1, -1);\n\t\t}\n\t\tsets[xl] = sets[xl].slice(1);\n\t\treturn sets.join('');\n\t} else {\n\t\treturn sets[0];\n\t}\n}\n\nexport function subexp(str:string):string {\n\treturn \"(?:\" + str + \")\";\n}\n\nexport function typeOf(o:any):string {\n\treturn o === undefined ? \"undefined\" : (o === null ? \"null\" : Object.prototype.toString.call(o).split(\" \").pop().split(\"]\").shift().toLowerCase());\n}\n\nexport function toUpperCase(str:string):string {\n\treturn str.toUpperCase();\n}\n\nexport function toArray(obj:any):Array<any> {\n\treturn obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== \"number\" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];\n}\n\n\nexport function assign(target: object, source: any): any {\n\tconst obj = target as any;\n\tif (source) {\n\t\tfor (const key in source) {\n\t\t\tobj[key] = source[key];\n\t\t}\n\t}\n\treturn obj;\n}"],"names":["SCHEMES","uuid","scheme","urn","mailto","https","http","urnComponents","nss","uuidComponents","toLowerCase","options","error","tolerant","match","UUID","undefined","handler","uriComponents","path","nid","schemeHandler","serialize","urnScheme","parse","matches","components","URN_PARSE","query","fields","join","length","push","name","replace","PCT_ENCODED","decodeUnreserved","toUpperCase","NOT_HFNAME","pctEncChar","headers","NOT_HFVALUE","O","mailtoComponents","body","subject","to","x","localPart","domain","iri","e","punycode","toASCII","unescapeComponent","toUnicode","toAddr","slice","atIdx","NOT_LOCAL_PART","lastIndexOf","String","xl","toArray","addr","unicodeSupport","split","unknownHeaders","hfield","toAddrs","hfields","decStr","UNRESERVED","str","pctDecChars","RegExp","merge","UNRESERVED$$","SOME_DELIMS$$","ATEXT$$","VCHAR$$","PCT_ENCODED$","QTEXT$$","subexp","HEXDIG$$","isIRI","domainHost","port","host","toString","URI_PROTOCOL","IRI_PROTOCOL","ESCAPE","escapeComponent","uriA","uriB","typeOf","equal","uri","normalize","resolveComponents","baseURI","schemelessOptions","relativeURI","assign","resolve","target","fragment","relative","base","userinfo","removeDotSegments","charAt","skipNormalization","uriTokens","s","authority","absolutePath","reference","_recomposeAuthority","protocol","IPV6ADDRESS","test","output","Error","input","im","RDS5","pop","RDS3","RDS2","RDS1","$1","$2","_normalizeIPv6","_normalizeIPv4","_","uriString","isNaN","indexOf","parseInt","NO_MATCH_IS_UNDEFINED","URI_PARSE","newHost","zone","newFirst","newLast","longestZeroFields","index","b","a","allZeroFields","sort","acc","lastLongest","field","reduce","fieldCount","isLastFieldIPv4Address","firstFields","lastFields","lastFieldsStart","Array","IPV4ADDRESS","last","map","_stripLeadingZeros","first","address","reverse","NOT_FRAGMENT","NOT_QUERY","NOT_PATH","NOT_PATH_NOSCHEME","NOT_HOST","NOT_USERINFO","NOT_SCHEME","_normalizeComponentEncoding","newStr","substr","i","fromCharCode","c","c2","c3","il","chr","charCodeAt","encode","decode","ucs2encode","ucs2decode","regexNonASCII","string","mapDomain","regexPunycode","n","delta","handledCPCount","adapt","handledCPCountPlusOne","basicLength","stringFromCharCode","digitToBasic","q","floor","qMinusT","baseMinusT","t","k","bias","tMin","tMax","currentValue","maxInt","m","inputLength","delimiter","initialBias","initialN","fromCodePoint","splice","out","oldi","w","digit","basicToDigit","basic","j","baseMinusTMin","skew","numPoints","firstTime","damp","flag","codePoint","array","value","extra","counter","result","encoded","labels","fn","regexSeparators","parts","RangeError","errors","type","Math","buildExps","IPV6ADDRESS$","ZONEID$","IPV4ADDRESS$","RESERVED$$","SUB_DELIMS$$","IPRIVATE$$","ALPHA$$","DIGIT$$","AUTHORITY_REF$","USERINFO$","HOST$","PORT$","SAMEDOC_REF$","FRAGMENT$","ABSOLUTE_REF$","SCHEME$","PATH_ABEMPTY$","PATH_ABSOLUTE$","PATH_ROOTLESS$","PATH_EMPTY$","QUERY$","RELATIVE_REF$","PATH_NOSCHEME$","GENERIC_REF$","ABSOLUTE_URI$","HIER_PART$","URI_REFERENCE$","URI$","RELATIVE$","RELATIVE_PART$","AUTHORITY$","PCHAR$","PATH$","SEGMENT_NZ$","SEGMENT_NZ_NC$","SEGMENT$","IP_LITERAL$","REG_NAME$","IPV6ADDRZ_RELAXED$","IPVFUTURE$","IPV6ADDRESS1$","IPV6ADDRESS2$","IPV6ADDRESS3$","IPV6ADDRESS4$","IPV6ADDRESS5$","IPV6ADDRESS6$","IPV6ADDRESS7$","IPV6ADDRESS8$","IPV6ADDRESS9$","H16$","LS32$","DEC_OCTET_RELAXED$","DEC_OCTET$","UCSCHAR$$","GEN_DELIMS$$","SP$$","DQUOTE$$","CR$","obj","key","source","setInterval","call","prototype","o","Object","shift","sets"],"mappings":";;;;;;;AUAA,SAAA4E,KAAA,GAAA;sCAAyBkP,IAAzB;YAAA;;;QACKA,KAAK/R,MAAL,GAAc,CAAlB,EAAqB;aACf,CAAL,IAAU+R,KAAK,CAAL,EAAQrQ,KAAR,CAAc,CAAd,EAAiB,CAAC,CAAlB,CAAV;YACMK,KAAKgQ,KAAK/R,MAAL,GAAc,CAAzB;aACK,IAAIgB,IAAI,CAAb,EAAgBA,IAAIe,EAApB,EAAwB,EAAEf,CAA1B,EAA6B;iBACvBA,CAAL,IAAU+Q,KAAK/Q,CAAL,EAAQU,KAAR,CAAc,CAAd,EAAiB,CAAC,CAAlB,CAAV;;aAEIK,EAAL,IAAWgQ,KAAKhQ,EAAL,EAASL,KAAT,CAAe,CAAf,CAAX;eACOqQ,KAAKhS,IAAL,CAAU,EAAV,CAAP;KAPD,MAQO;eACCgS,KAAK,CAAL,CAAP;;;AAIF,AAAA,SAAA3O,MAAA,CAAuBV,GAAvB,EAAA;WACQ,QAAQA,GAAR,GAAc,GAArB;;AAGD,AAAA,SAAAuB,MAAA,CAAuB2N,CAAvB,EAAA;WACQA,MAAM3S,SAAN,GAAkB,WAAlB,GAAiC2S,MAAM,IAAN,GAAa,MAAb,GAAsBC,OAAOF,SAAP,CAAiBjO,QAAjB,CAA0BgO,IAA1B,CAA+BE,CAA/B,EAAkCzP,KAAlC,CAAwC,GAAxC,EAA6C8D,GAA7C,GAAmD9D,KAAnD,CAAyD,GAAzD,EAA8D2P,KAA9D,GAAsEnT,WAAtE,EAA9D;;AAGD,AAAA,SAAA2B,WAAA,CAA4BoC,GAA5B,EAAA;WACQA,IAAIpC,WAAJ,EAAP;;AAGD,AAAA,SAAA0B,OAAA,CAAwBsP,GAAxB,EAAA;WACQA,QAAQrS,SAAR,IAAqBqS,QAAQ,IAA7B,GAAqCA,eAAenJ,KAAf,GAAuBmJ,GAAvB,GAA8B,OAAOA,IAAItR,MAAX,KAAsB,QAAtB,IAAkCsR,IAAInP,KAAtC,IAA+CmP,IAAIG,WAAnD,IAAkEH,IAAII,IAAtE,GAA6E,CAACJ,GAAD,CAA7E,GAAqFnJ,MAAMwJ,SAAN,CAAgBjQ,KAAhB,CAAsBgQ,IAAtB,CAA2BJ,GAA3B,CAAxJ,GAA4L,EAAnM;;AAID,AAAA,SAAA7M,MAAA,CAAuBE,MAAvB,EAAuC6M,MAAvC,EAAA;QACOF,MAAM3M,MAAZ;QACI6M,MAAJ,EAAY;aACN,IAAMD,GAAX,IAAkBC,MAAlB,EAA0B;gBACrBD,GAAJ,IAAWC,OAAOD,GAAP,CAAX;;;WAGKD,GAAP;;;ADnCD,SAAA3D,SAAA,CAA0BrK,KAA1B,EAAA;QAEE4K,UAAU,UADX;QAECmD,MAAM,SAFP;QAGClD,UAAU,OAHX;QAICiD,WAAW,SAJZ;QAKC/N,WAAWR,MAAMsL,OAAN,EAAe,UAAf,CALZ;;WAMQ,SANR;QAOCgD,OAAO,SAPR;QAQCjO,eAAeE,OAAOA,OAAO,YAAYC,QAAZ,GAAuB,GAAvB,GAA6BA,QAA7B,GAAwCA,QAAxC,GAAmD,GAAnD,GAAyDA,QAAzD,GAAoEA,QAA3E,IAAuF,GAAvF,GAA6FD,OAAO,gBAAgBC,QAAhB,GAA2B,GAA3B,GAAiCA,QAAjC,GAA4CA,QAAnD,CAA7F,GAA4J,GAA5J,GAAkKD,OAAO,MAAMC,QAAN,GAAiBA,QAAxB,CAAzK,CARhB;;mBASgB,yBAThB;QAUC2K,eAAe,qCAVhB;QAWCD,aAAalL,MAAMqO,YAAN,EAAoBlD,YAApB,CAXd;QAYCiD,YAAY3N,QAAQ,6EAAR,GAAwF,IAZrG;;iBAacA,QAAQ,mBAAR,GAA8B,IAb5C;;mBAcgBT,MAAMqL,OAAN,EAAeC,OAAf,EAAwB,gBAAxB,EAA0C8C,SAA1C,CAdhB;QAeCtC,UAAUvL,OAAO8K,UAAUrL,MAAMqL,OAAN,EAAeC,OAAf,EAAwB,aAAxB,CAAV,GAAmD,GAA1D,CAfX;QAgBCE,YAAYjL,OAAOA,OAAOF,eAAe,GAAf,GAAqBL,MAAMC,YAAN,EAAoBkL,YAApB,EAAkC,OAAlC,CAA5B,IAA0E,GAAjF,CAhBb;QAiBCgD,aAAa5N,OAAOA,OAAO,SAAP,IAAoB,GAApB,GAA0BA,OAAO,WAAW+K,OAAlB,CAA1B,GAAuD,GAAvD,GAA6D/K,OAAO,MAAM+K,OAAN,GAAgBA,OAAvB,CAA7D,GAA+F,GAA/F,GAAqG/K,OAAO,UAAU+K,OAAjB,CAArG,GAAiI,GAAjI,GAAuIA,OAA9I,CAjBd;QAkBC4C,qBAAqB3N,OAAOA,OAAO,SAAP,IAAoB,GAApB,GAA0BA,OAAO,WAAW+K,OAAlB,CAA1B,GAAuD,GAAvD,GAA6D/K,OAAO,MAAM+K,OAAN,GAAgBA,OAAvB,CAA7D,GAA+F,GAA/F,GAAqG/K,OAAO,YAAY+K,OAAnB,CAArG,GAAmI,OAAnI,GAA6IA,OAApJ,CAlBtB;;mBAmBgB/K,OAAO2N,qBAAqB,KAArB,GAA6BA,kBAA7B,GAAkD,KAAlD,GAA0DA,kBAA1D,GAA+E,KAA/E,GAAuFA,kBAA9F,CAnBhB;QAoBCF,OAAOzN,OAAOC,WAAW,OAAlB,CApBR;QAqBCyN,QAAQ1N,OAAOA,OAAOyN,OAAO,KAAP,GAAeA,IAAtB,IAA8B,GAA9B,GAAoC/C,YAA3C,CArBT;QAsBCsC,gBAAgBhN,OAAmEA,OAAOyN,OAAO,KAAd,IAAuB,KAAvB,GAA+BC,KAAlG,CAtBjB;;oBAuBiB1N,OAAwD,WAAWA,OAAOyN,OAAO,KAAd,CAAX,GAAkC,KAAlC,GAA0CC,KAAlG,CAvBjB;;oBAwBiB1N,OAAOA,OAAwCyN,IAAxC,IAAgD,SAAhD,GAA4DzN,OAAOyN,OAAO,KAAd,CAA5D,GAAmF,KAAnF,GAA2FC,KAAlG,CAxBjB;;oBAyBiB1N,OAAOA,OAAOA,OAAOyN,OAAO,KAAd,IAAuB,OAAvB,GAAiCA,IAAxC,IAAgD,SAAhD,GAA4DzN,OAAOyN,OAAO,KAAd,CAA5D,GAAmF,KAAnF,GAA2FC,KAAlG,CAzBjB;;oBA0BiB1N,OAAOA,OAAOA,OAAOyN,OAAO,KAAd,IAAuB,OAAvB,GAAiCA,IAAxC,IAAgD,SAAhD,GAA4DzN,OAAOyN,OAAO,KAAd,CAA5D,GAAmF,KAAnF,GAA2FC,KAAlG,CA1BjB;;oBA2BiB1N,OAAOA,OAAOA,OAAOyN,OAAO,KAAd,IAAuB,OAAvB,GAAiCA,IAAxC,IAAgD,SAAhD,GAAmEA,IAAnE,GAA0E,KAA1E,GAA2FC,KAAlG,CA3BjB;;oBA4BiB1N,OAAOA,OAAOA,OAAOyN,OAAO,KAAd,IAAuB,OAAvB,GAAiCA,IAAxC,IAAgD,SAAhD,GAA2FC,KAAlG,CA5BjB;;oBA6BiB1N,OAAOA,OAAOA,OAAOyN,OAAO,KAAd,IAAuB,OAAvB,GAAiCA,IAAxC,IAAgD,SAAhD,GAA2FA,IAAlG,CA7BjB;;oBA8BiBzN,OAAOA,OAAOA,OAAOyN,OAAO,KAAd,IAAuB,OAAvB,GAAiCA,IAAxC,IAAgD,SAAvD,CA9BjB;;mBA+BgBzN,OAAO,CAACgN,aAAD,EAAgBC,aAAhB,EAA+BC,aAA/B,EAA8CC,aAA9C,EAA6DC,aAA7D,EAA4EC,aAA5E,EAA2FC,aAA3F,EAA0GC,aAA1G,EAAyHC,aAAzH,EAAwI7Q,IAAxI,CAA6I,GAA7I,CAAP,CA/BhB;QAgCC8N,UAAUzK,OAAOA,OAAON,eAAe,GAAf,GAAqBI,YAA5B,IAA4C,GAAnD,CAhCX;;iBAiCcE,OAAOwK,eAAe,OAAf,GAAyBC,OAAhC,CAjCd;;yBAkCsBzK,OAAOwK,eAAexK,OAAO,iBAAiBC,QAAjB,GAA4B,MAAnC,CAAf,GAA4DwK,OAAnE,CAlCtB;;iBAmCczK,OAAO,SAASC,QAAT,GAAoB,MAApB,GAA6BR,MAAMC,YAAN,EAAoBkL,YAApB,EAAkC,OAAlC,CAA7B,GAA0E,GAAjF,CAnCd;QAoCCgC,cAAc5M,OAAO,QAAQA,OAAO8M,qBAAqB,GAArB,GAA2BtC,YAA3B,GAA0C,GAA1C,GAAgDuC,UAAvD,CAAR,GAA6E,KAApF,CApCf;;gBAqCa/M,OAAOA,OAAOF,eAAe,GAAf,GAAqBL,MAAMC,YAAN,EAAoBkL,YAApB,CAA5B,IAAiE,GAAxE,CArCb;QAsCCM,QAAQlL,OAAO4M,cAAc,GAAd,GAAoBlC,YAApB,GAAmC,KAAnC,GAA2CmC,SAA3C,GAAuD,GAAvD,GAA6D,GAA7D,GAAmEA,SAA1E,CAtCT;QAuCC1B,QAAQnL,OAAO+K,UAAU,GAAjB,CAvCT;QAwCCuB,aAAatM,OAAOA,OAAOiL,YAAY,GAAnB,IAA0B,GAA1B,GAAgCC,KAAhC,GAAwClL,OAAO,QAAQmL,KAAf,CAAxC,GAAgE,GAAvE,CAxCd;QAyCCoB,SAASvM,OAAOF,eAAe,GAAf,GAAqBL,MAAMC,YAAN,EAAoBkL,YAApB,EAAkC,UAAlC,CAA5B,CAzCV;QA0CC+B,WAAW3M,OAAOuM,SAAS,GAAhB,CA1CZ;QA2CCE,cAAczM,OAAOuM,SAAS,GAAhB,CA3Cf;QA4CCG,iBAAiB1M,OAAOA,OAAOF,eAAe,GAAf,GAAqBL,MAAMC,YAAN,EAAoBkL,YAApB,EAAkC,OAAlC,CAA5B,IAA0E,GAAjF,CA5ClB;QA6CCY,gBAAgBxL,OAAOA,OAAO,QAAQ2M,QAAf,IAA2B,GAAlC,CA7CjB;QA8CClB,iBAAiBzL,OAAO,QAAQA,OAAOyM,cAAcjB,aAArB,CAAR,GAA8C,GAArD,CA9ClB;;qBA+CkBxL,OAAO0M,iBAAiBlB,aAAxB,CA/ClB;;qBAgDkBxL,OAAOyM,cAAcjB,aAArB,CAhDlB;;kBAiDe,QAAQe,MAAR,GAAiB,GAjDhC;QAkDCC,QAAQxM,OAAOwL,gBAAgB,GAAhB,GAAsBC,cAAtB,GAAuC,GAAvC,GAA6CK,cAA7C,GAA8D,GAA9D,GAAoEJ,cAApE,GAAqF,GAArF,GAA2FC,WAAlG,CAlDT;QAmDCC,SAAS5L,OAAOA,OAAOuM,SAAS,GAAT,GAAe9M,MAAM,UAAN,EAAkBoL,UAAlB,CAAtB,IAAuD,GAA9D,CAnDV;QAoDCQ,YAAYrL,OAAOA,OAAOuM,SAAS,WAAhB,IAA+B,GAAtC,CApDb;QAqDCN,aAAajM,OAAOA,OAAO,WAAWsM,UAAX,GAAwBd,aAA/B,IAAgD,GAAhD,GAAsDC,cAAtD,GAAuE,GAAvE,GAA6EC,cAA7E,GAA8F,GAA9F,GAAoGC,WAA3G,CArDd;QAsDCQ,OAAOnM,OAAOuL,UAAU,KAAV,GAAkBU,UAAlB,GAA+BjM,OAAO,QAAQ4L,MAAf,CAA/B,GAAwD,GAAxD,GAA8D5L,OAAO,QAAQqL,SAAf,CAA9D,GAA0F,GAAjG,CAtDR;QAuDCgB,iBAAiBrM,OAAOA,OAAO,WAAWsM,UAAX,GAAwBd,aAA/B,IAAgD,GAAhD,GAAsDC,cAAtD,GAAuE,GAAvE,GAA6EK,cAA7E,GAA8F,GAA9F,GAAoGH,WAA3G,CAvDlB;QAwDCS,YAAYpM,OAAOqM,iBAAiBrM,OAAO,QAAQ4L,MAAf,CAAjB,GAA0C,GAA1C,GAAgD5L,OAAO,QAAQqL,SAAf,CAAhD,GAA4E,GAAnF,CAxDb;QAyDCa,iBAAiBlM,OAAOmM,OAAO,GAAP,GAAaC,SAApB,CAzDlB;QA0DCJ,gBAAgBhM,OAAOuL,UAAU,KAAV,GAAkBU,UAAlB,GAA+BjM,OAAO,QAAQ4L,MAAf,CAA/B,GAAwD,GAA/D,CA1DjB;QA4DCG,eAAe,OAAOR,OAAP,GAAiB,MAAjB,GAA0BvL,OAAOA,OAAO,YAAYA,OAAO,MAAMiL,SAAN,GAAkB,IAAzB,CAAZ,GAA6C,IAA7C,GAAoDC,KAApD,GAA4D,GAA5D,GAAkElL,OAAO,SAASmL,KAAT,GAAiB,GAAxB,CAAlE,GAAiG,IAAxG,IAAgH,IAAhH,GAAuHK,aAAvH,GAAuI,GAAvI,GAA6IC,cAA7I,GAA8J,GAA9J,GAAoKC,cAApK,GAAqL,GAArL,GAA2LC,WAA3L,GAAyM,GAAhN,CAA1B,GAAiP3L,OAAO,SAAS4L,MAAT,GAAkB,GAAzB,CAAjP,GAAiR,GAAjR,GAAuR5L,OAAO,SAASqL,SAAT,GAAqB,GAA5B,CAAvR,GAA0T,IA5D1U;QA6DCQ,gBAAgB,WAAW7L,OAAOA,OAAO,YAAYA,OAAO,MAAMiL,SAAN,GAAkB,IAAzB,CAAZ,GAA6C,IAA7C,GAAoDC,KAApD,GAA4D,GAA5D,GAAkElL,OAAO,SAASmL,KAAT,GAAiB,GAAxB,CAAlE,GAAiG,IAAxG,IAAgH,IAAhH,GAAuHK,aAAvH,GAAuI,GAAvI,GAA6IC,cAA7I,GAA8J,GAA9J,GAAoKK,cAApK,GAAqL,GAArL,GAA2LH,WAA3L,GAAyM,GAAhN,CAAX,GAAkO3L,OAAO,SAAS4L,MAAT,GAAkB,GAAzB,CAAlO,GAAkQ,GAAlQ,GAAwQ5L,OAAO,SAASqL,SAAT,GAAqB,GAA5B,CAAxQ,GAA2S,IA7D5T;QA8DCC,gBAAgB,OAAOC,OAAP,GAAiB,MAAjB,GAA0BvL,OAAOA,OAAO,YAAYA,OAAO,MAAMiL,SAAN,GAAkB,IAAzB,CAAZ,GAA6C,IAA7C,GAAoDC,KAApD,GAA4D,GAA5D,GAAkElL,OAAO,SAASmL,KAAT,GAAiB,GAAxB,CAAlE,GAAiG,IAAxG,IAAgH,IAAhH,GAAuHK,aAAvH,GAAuI,GAAvI,GAA6IC,cAA7I,GAA8J,GAA9J,GAAoKC,cAApK,GAAqL,GAArL,GAA2LC,WAA3L,GAAyM,GAAhN,CAA1B,GAAiP3L,OAAO,SAAS4L,MAAT,GAAkB,GAAzB,CAAjP,GAAiR,IA9DlS;QA+DCR,eAAe,MAAMpL,OAAO,SAASqL,SAAT,GAAqB,GAA5B,CAAN,GAAyC,IA/DzD;QAgECL,iBAAiB,MAAMhL,OAAO,MAAMiL,SAAN,GAAkB,IAAzB,CAAN,GAAuC,IAAvC,GAA8CC,KAA9C,GAAsD,GAAtD,GAA4DlL,OAAO,SAASmL,KAAT,GAAiB,GAAxB,CAA5D,GAA2F,IAhE7G;WAmEO;oBACO,IAAI3L,MAAJ,CAAWC,MAAM,KAAN,EAAaqL,OAAb,EAAsBC,OAAtB,EAA+B,aAA/B,CAAX,EAA0D,GAA1D,CADP;sBAES,IAAIvL,MAAJ,CAAWC,MAAM,WAAN,EAAmBC,YAAnB,EAAiCkL,YAAjC,CAAX,EAA2D,GAA3D,CAFT;kBAGK,IAAIpL,MAAJ,CAAWC,MAAM,iBAAN,EAAyBC,YAAzB,EAAuCkL,YAAvC,CAAX,EAAiE,GAAjE,CAHL;kBAIK,IAAIpL,MAAJ,CAAWC,MAAM,iBAAN,EAAyBC,YAAzB,EAAuCkL,YAAvC,CAAX,EAAiE,GAAjE,CAJL;2BAKc,IAAIpL,MAAJ,CAAWC,MAAM,cAAN,EAAsBC,YAAtB,EAAoCkL,YAApC,CAAX,EAA8D,GAA9D,CALd;mBAMM,IAAIpL,MAAJ,CAAWC,MAAM,QAAN,EAAgBC,YAAhB,EAA8BkL,YAA9B,EAA4C,gBAA5C,EAA8DC,UAA9D,CAAX,EAAsF,GAAtF,CANN;sBAOS,IAAIrL,MAAJ,CAAWC,MAAM,QAAN,EAAgBC,YAAhB,EAA8BkL,YAA9B,EAA4C,gBAA5C,CAAX,EAA0E,GAA1E,CAPT;gBAQG,IAAIpL,MAAJ,CAAWC,MAAM,KAAN,EAAaC,YAAb,EAA2BkL,YAA3B,CAAX,EAAqD,GAArD,CARH;oBASO,IAAIpL,MAAJ,CAAWE,YAAX,EAAyB,GAAzB,CATP;qBAUQ,IAAIF,MAAJ,CAAWC,MAAM,QAAN,EAAgBC,YAAhB,EAA8BiL,UAA9B,CAAX,EAAsD,GAAtD,CAVR;qBAWQ,IAAInL,MAAJ,CAAWM,YAAX,EAAyB,GAAzB,CAXR;qBAYQ,IAAIN,MAAJ,CAAW,OAAOkL,YAAP,GAAsB,IAAjC,CAZR;qBAaQ,IAAIlL,MAAJ,CAAW,WAAWgL,YAAX,GAA0B,GAA1B,GAAgCxK,OAAOA,OAAO,iBAAiBC,QAAjB,GAA4B,MAAnC,IAA6C,GAA7C,GAAmDwK,OAAnD,GAA6D,GAApE,CAAhC,GAA2G,QAAtH,CAbR;KAAP;;AAiBD,mBAAeF,UAAU,KAAV,CAAf;;ADrFA,mBAAeA,UAAU,IAAV,CAAf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ADDA;;AACA,IAAMpC,SAAS,UAAf;;;AAGA,IAAMzG,OAAO,EAAb;AACA,IAAMsG,OAAO,CAAb;AACA,IAAMC,OAAO,EAAb;AACA,IAAMkB,OAAO,EAAb;AACA,IAAMG,OAAO,GAAb;AACA,IAAMf,cAAc,EAApB;AACA,IAAMC,WAAW,GAAjB;AACA,IAAMF,YAAY,GAAlB;;;AAGA,IAAMtB,gBAAgB,OAAtB;AACA,IAAMH,gBAAgB,YAAtB;AACA,IAAMoD,kBAAkB,2BAAxB;;;AAGA,IAAMG,SAAS;aACF,iDADE;cAED,gDAFC;kBAGG;CAHlB;;;AAOA,IAAMlB,gBAAgBxH,OAAOsG,IAA7B;AACA,IAAMN,QAAQ4C,KAAK5C,KAAnB;AACA,IAAMH,qBAAqB7I,OAAOwH,YAAlC;;;;;;;;;;AAUA,SAASzK,OAAT,CAAe4O,IAAf,EAAqB;OACd,IAAIF,UAAJ,CAAeC,OAAOC,IAAP,CAAf,CAAN;;;;;;;;;;;AAWD,SAASnF,GAAT,CAAauE,KAAb,EAAoBO,EAApB,EAAwB;KACjBH,SAAS,EAAf;KACIjN,SAAS6M,MAAM7M,MAAnB;QACOA,QAAP,EAAiB;SACTA,MAAP,IAAiBoN,GAAGP,MAAM7M,MAAN,CAAH,CAAjB;;QAEMiN,MAAP;;;;;;;;;;;;;AAaD,SAAS9C,SAAT,CAAmBD,MAAnB,EAA2BkD,EAA3B,EAA+B;KACxBE,QAAQpD,OAAO/H,KAAP,CAAa,GAAb,CAAd;KACI8K,SAAS,EAAb;KACIK,MAAMtN,MAAN,GAAe,CAAnB,EAAsB;;;WAGZsN,MAAM,CAAN,IAAW,GAApB;WACSA,MAAM,CAAN,CAAT;;;UAGQpD,OAAO/J,OAAP,CAAekN,eAAf,EAAgC,MAAhC,CAAT;KACMF,SAASjD,OAAO/H,KAAP,CAAa,GAAb,CAAf;KACM+K,UAAU5E,IAAI6E,MAAJ,EAAYC,EAAZ,EAAgBrN,IAAhB,CAAqB,GAArB,CAAhB;QACOkN,SAASC,OAAhB;;;;;;;;;;;;;;;;AAgBD,SAASlD,UAAT,CAAoBE,MAApB,EAA4B;KACrBtE,SAAS,EAAf;KACIoH,UAAU,CAAd;KACMhN,SAASkK,OAAOlK,MAAtB;QACOgN,UAAUhN,MAAjB,EAAyB;MAClB8M,QAAQ5C,OAAON,UAAP,CAAkBoD,SAAlB,CAAd;MACIF,SAAS,MAAT,IAAmBA,SAAS,MAA5B,IAAsCE,UAAUhN,MAApD,EAA4D;;OAErD+M,QAAQ7C,OAAON,UAAP,CAAkBoD,SAAlB,CAAd;OACI,CAACD,QAAQ,MAAT,KAAoB,MAAxB,EAAgC;;WACxB9M,IAAP,CAAY,CAAC,CAAC6M,QAAQ,KAAT,KAAmB,EAApB,KAA2BC,QAAQ,KAAnC,IAA4C,OAAxD;IADD,MAEO;;;WAGC9M,IAAP,CAAY6M,KAAZ;;;GARF,MAWO;UACC7M,IAAP,CAAY6M,KAAZ;;;QAGKlH,MAAP;;;;;;;;;;;AAWD,IAAMmE,aAAa,SAAbA,UAAa;QAASjI,OAAO+J,aAAP,iCAAwBgB,KAAxB,EAAT;CAAnB;;;;;;;;;;;AAWA,IAAMV,eAAe,SAAfA,YAAe,CAASS,SAAT,EAAoB;KACpCA,YAAY,IAAZ,GAAmB,IAAvB,EAA6B;SACrBA,YAAY,IAAnB;;KAEGA,YAAY,IAAZ,GAAmB,IAAvB,EAA6B;SACrBA,YAAY,IAAnB;;KAEGA,YAAY,IAAZ,GAAmB,IAAvB,EAA6B;SACrBA,YAAY,IAAnB;;QAEM9H,IAAP;CAVD;;;;;;;;;;;;;AAwBA,IAAM8F,eAAe,SAAfA,YAAe,CAASsB,KAAT,EAAgBS,IAAhB,EAAsB;;;QAGnCT,QAAQ,EAAR,GAAa,MAAMA,QAAQ,EAAd,CAAb,IAAkC,CAACS,QAAQ,CAAT,KAAe,CAAjD,CAAP;CAHD;;;;;;;AAWA,IAAMnC,QAAQ,SAARA,KAAQ,CAASF,KAAT,EAAgBkC,SAAhB,EAA2BC,SAA3B,EAAsC;KAC/CvB,IAAI,CAAR;SACQuB,YAAY3B,MAAMR,QAAQoC,IAAd,CAAZ,GAAkCpC,SAAS,CAAnD;UACSQ,MAAMR,QAAQkC,SAAd,CAAT;+BAC8BlC,QAAQgC,gBAAgBjB,IAAhB,IAAwB,CAA9D,EAAiEH,KAAKpG,IAAtE,EAA4E;UACnEgG,MAAMR,QAAQgC,aAAd,CAAR;;QAEMxB,MAAMI,IAAI,CAACoB,gBAAgB,CAAjB,IAAsBhC,KAAtB,IAA+BA,QAAQiC,IAAvC,CAAV,CAAP;CAPD;;;;;;;;;AAiBA,IAAMzC,SAAS,SAATA,MAAS,CAAShE,KAAT,EAAgB;;KAExBF,SAAS,EAAf;KACM6F,cAAc3F,MAAM9F,MAA1B;KACIqJ,IAAI,CAAR;KACIgB,IAAIuB,QAAR;KACIT,OAAOQ,WAAX;;;;;;KAMIS,QAAQtG,MAAMjE,WAAN,CAAkB6J,SAAlB,CAAZ;KACIU,QAAQ,CAAZ,EAAe;UACN,CAAR;;;MAGI,IAAIC,IAAI,CAAb,EAAgBA,IAAID,KAApB,EAA2B,EAAEC,CAA7B,EAAgC;;MAE3BvG,MAAM8D,UAAN,CAAiByC,CAAjB,KAAuB,IAA3B,EAAiC;WAC1B,WAAN;;SAEMpM,IAAP,CAAY6F,MAAM8D,UAAN,CAAiByC,CAAjB,CAAZ;;;;;;MAMI,IAAIhF,QAAQ+E,QAAQ,CAAR,GAAYA,QAAQ,CAApB,GAAwB,CAAzC,EAA4C/E,QAAQoE,WAApD,4BAA4F;;;;;;;MAOvFO,OAAO3C,CAAX;OACK,IAAI4C,IAAI,CAAR,EAAWf,IAAIpG,IAApB,qBAA8CoG,KAAKpG,IAAnD,EAAyD;;OAEpDuC,SAASoE,WAAb,EAA0B;YACnB,eAAN;;;OAGKS,QAAQC,aAAarG,MAAM8D,UAAN,CAAiBvC,OAAjB,CAAb,CAAd;;OAEI6E,SAASpH,IAAT,IAAiBoH,QAAQpB,MAAM,CAACS,SAASlC,CAAV,IAAe4C,CAArB,CAA7B,EAAsD;YAC/C,UAAN;;;QAGIC,QAAQD,CAAb;OACMhB,IAAIC,KAAKC,IAAL,GAAYC,IAAZ,GAAoBF,KAAKC,OAAOE,IAAZ,GAAmBA,IAAnB,GAA0BH,IAAIC,IAA5D;;OAEIe,QAAQjB,CAAZ,EAAe;;;;OAITD,aAAalG,OAAOmG,CAA1B;OACIgB,IAAInB,MAAMS,SAASP,UAAf,CAAR,EAAoC;YAC7B,UAAN;;;QAGIA,UAAL;;;MAIKe,MAAMnG,OAAO5F,MAAP,GAAgB,CAA5B;SACOwK,MAAMnB,IAAI2C,IAAV,EAAgBD,GAAhB,EAAqBC,QAAQ,CAA7B,CAAP;;;;MAIIlB,MAAMzB,IAAI0C,GAAV,IAAiBR,SAASlB,CAA9B,EAAiC;WAC1B,UAAN;;;OAGIS,MAAMzB,IAAI0C,GAAV,CAAL;OACKA,GAAL;;;SAGOD,MAAP,CAAczC,GAAd,EAAmB,CAAnB,EAAsBgB,CAAtB;;;QAIMvI,OAAO+J,aAAP,eAAwBjG,MAAxB,CAAP;CAjFD;;;;;;;;;AA2FA,IAAMiE,SAAS,SAATA,MAAS,CAAS/D,KAAT,EAAgB;KACxBF,SAAS,EAAf;;;SAGQoE,WAAWlE,KAAX,CAAR;;;KAGI2F,cAAc3F,MAAM9F,MAAxB;;;KAGIqK,IAAIuB,QAAR;KACItB,QAAQ,CAAZ;KACIa,OAAOQ,WAAX;;;;;;;;uBAG2B7F,KAA3B,8HAAkC;OAAvBwF,cAAuB;;OAC7BA,iBAAe,IAAnB,EAAyB;WACjBrL,IAAP,CAAY0K,mBAAmBW,cAAnB,CAAZ;;;;;;;;;;;;;;;;;;KAIEZ,cAAc9E,OAAO5F,MAAzB;KACIuK,iBAAiBG,WAArB;;;;;;KAMIA,WAAJ,EAAiB;SACTzK,IAAP,CAAYyL,SAAZ;;;;QAIMnB,iBAAiBkB,WAAxB,EAAqC;;;;MAIhCD,IAAID,MAAR;;;;;;yBAC2BzF,KAA3B,mIAAkC;QAAvBwF,YAAuB;;QAC7BA,gBAAgBjB,CAAhB,IAAqBiB,eAAeE,CAAxC,EAA2C;SACtCF,YAAJ;;;;;;;;;;;;;;;;;;;;;MAMIb,wBAAwBF,iBAAiB,CAA/C;MACIiB,IAAInB,CAAJ,GAAQS,MAAM,CAACS,SAASjB,KAAV,IAAmBG,qBAAzB,CAAZ,EAA6D;WACtD,UAAN;;;WAGQ,CAACe,IAAInB,CAAL,IAAUI,qBAAnB;MACIe,CAAJ;;;;;;;yBAE2B1F,KAA3B,mIAAkC;QAAvBwF,aAAuB;;QAC7BA,gBAAejB,CAAf,IAAoB,EAAEC,KAAF,GAAUiB,MAAlC,EAA0C;aACnC,UAAN;;QAEGD,iBAAgBjB,CAApB,EAAuB;;SAElBQ,IAAIP,KAAR;UACK,IAAIY,IAAIpG,IAAb,qBAAuCoG,KAAKpG,IAA5C,EAAkD;UAC3CmG,IAAIC,KAAKC,IAAL,GAAYC,IAAZ,GAAoBF,KAAKC,OAAOE,IAAZ,GAAmBA,IAAnB,GAA0BH,IAAIC,IAA5D;UACIN,IAAII,CAAR,EAAW;;;UAGLF,UAAUF,IAAII,CAApB;UACMD,aAAalG,OAAOmG,CAA1B;aACOhL,IAAP,CACC0K,mBAAmBC,aAAaK,IAAIF,UAAUC,UAA3B,EAAuC,CAAvC,CAAnB,CADD;UAGIF,MAAMC,UAAUC,UAAhB,CAAJ;;;YAGM/K,IAAP,CAAY0K,mBAAmBC,aAAaC,CAAb,EAAgB,CAAhB,CAAnB,CAAZ;YACOL,MAAMF,KAAN,EAAaG,qBAAb,EAAoCF,kBAAkBG,WAAtD,CAAP;aACQ,CAAR;OACEH,cAAF;;;;;;;;;;;;;;;;;;IAIAD,KAAF;IACED,CAAF;;QAGMzE,OAAO7F,IAAP,CAAY,EAAZ,CAAP;CArFD;;;;;;;;;;;;;AAmGA,IAAMyB,YAAY,SAAZA,SAAY,CAASsE,KAAT,EAAgB;QAC1BqE,UAAUrE,KAAV,EAAiB,UAASoE,MAAT,EAAiB;SACjCE,cAAczE,IAAd,CAAmBuE,MAAnB,IACJJ,OAAOI,OAAOxI,KAAP,CAAa,CAAb,EAAgB/C,WAAhB,EAAP,CADI,GAEJuL,MAFH;EADM,CAAP;CADD;;;;;;;;;;;;;AAmBA,IAAM5I,UAAU,SAAVA,OAAU,CAASwE,KAAT,EAAgB;QACxBqE,UAAUrE,KAAV,EAAiB,UAASoE,MAAT,EAAiB;SACjCD,cAActE,IAAd,CAAmBuE,MAAnB,IACJ,SAASL,OAAOK,MAAP,CADL,GAEJA,MAFH;EADM,CAAP;CADD;;;;;AAWA,IAAM7I,WAAW;;;;;;YAML,OANK;;;;;;;;SAcR;YACG2I,UADH;YAEGD;EAhBK;WAkBND,MAlBM;WAmBND,MAnBM;YAoBLvI,OApBK;cAqBHE;CArBd,CAwBA;;ADvbA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,AACA,AACA,AACA,AAiDA,AAAO,IAAMvD,UAA6C,EAAnD;AAEP,AAAA,SAAAuC,UAAA,CAA2BmJ,GAA3B,EAAA;QACOJ,IAAII,IAAIC,UAAJ,CAAe,CAAf,CAAV;QACIxI,UAAJ;QAEImI,IAAI,EAAR,EAAYnI,IAAI,OAAOmI,EAAE7F,QAAF,CAAW,EAAX,EAAepD,WAAf,EAAX,CAAZ,KACK,IAAIiJ,IAAI,GAAR,EAAanI,IAAI,MAAMmI,EAAE7F,QAAF,CAAW,EAAX,EAAepD,WAAf,EAAV,CAAb,KACA,IAAIiJ,IAAI,IAAR,EAAcnI,IAAI,MAAM,CAAEmI,KAAK,CAAN,GAAW,GAAZ,EAAiB7F,QAAjB,CAA0B,EAA1B,EAA8BpD,WAA9B,EAAN,GAAoD,GAApD,GAA0D,CAAEiJ,IAAI,EAAL,GAAW,GAAZ,EAAiB7F,QAAjB,CAA0B,EAA1B,EAA8BpD,WAA9B,EAA9D,CAAd,KACAc,IAAI,MAAM,CAAEmI,KAAK,EAAN,GAAY,GAAb,EAAkB7F,QAAlB,CAA2B,EAA3B,EAA+BpD,WAA/B,EAAN,GAAqD,GAArD,GAA2D,CAAGiJ,KAAK,CAAN,GAAW,EAAZ,GAAkB,GAAnB,EAAwB7F,QAAxB,CAAiC,EAAjC,EAAqCpD,WAArC,EAA3D,GAAgH,GAAhH,GAAsH,CAAEiJ,IAAI,EAAL,GAAW,GAAZ,EAAiB7F,QAAjB,CAA0B,EAA1B,EAA8BpD,WAA9B,EAA1H;WAEEc,CAAP;;AAGD,AAAA,SAAAuB,WAAA,CAA4BD,GAA5B,EAAA;QACKyG,SAAS,EAAb;QACIE,IAAI,CAAR;QACMK,KAAKhH,IAAI1C,MAAf;WAEOqJ,IAAIK,EAAX,EAAe;YACRH,IAAI1C,SAASnE,IAAI0G,MAAJ,CAAWC,IAAI,CAAf,EAAkB,CAAlB,CAAT,EAA+B,EAA/B,CAAV;YAEIE,IAAI,GAAR,EAAa;sBACFzH,OAAOwH,YAAP,CAAoBC,CAApB,CAAV;iBACK,CAAL;SAFD,MAIK,IAAIA,KAAK,GAAL,IAAYA,IAAI,GAApB,EAAyB;gBACxBG,KAAKL,CAAN,IAAY,CAAhB,EAAmB;oBACZG,KAAK3C,SAASnE,IAAI0G,MAAJ,CAAWC,IAAI,CAAf,EAAkB,CAAlB,CAAT,EAA+B,EAA/B,CAAX;0BACUvH,OAAOwH,YAAP,CAAqB,CAACC,IAAI,EAAL,KAAY,CAAb,GAAmBC,KAAK,EAA5C,CAAV;aAFD,MAGO;0BACI9G,IAAI0G,MAAJ,CAAWC,CAAX,EAAc,CAAd,CAAV;;iBAEI,CAAL;SAPI,MASA,IAAIE,KAAK,GAAT,EAAc;gBACbG,KAAKL,CAAN,IAAY,CAAhB,EAAmB;oBACZG,KAAK3C,SAASnE,IAAI0G,MAAJ,CAAWC,IAAI,CAAf,EAAkB,CAAlB,CAAT,EAA+B,EAA/B,CAAX;oBACMI,KAAK5C,SAASnE,IAAI0G,MAAJ,CAAWC,IAAI,CAAf,EAAkB,CAAlB,CAAT,EAA+B,EAA/B,CAAX;0BACUvH,OAAOwH,YAAP,CAAqB,CAACC,IAAI,EAAL,KAAY,EAAb,GAAoB,CAACC,KAAK,EAAN,KAAa,CAAjC,GAAuCC,KAAK,EAAhE,CAAV;aAHD,MAIO;0BACI/G,IAAI0G,MAAJ,CAAWC,CAAX,EAAc,CAAd,CAAV;;iBAEI,CAAL;SARI,MAUA;sBACM3G,IAAI0G,MAAJ,CAAWC,CAAX,EAAc,CAAd,CAAV;iBACK,CAAL;;;WAIKF,MAAP;;AAGD,SAAAD,2BAAA,CAAqCvJ,UAArC,EAA+D8F,QAA/D,EAAA;aACApF,gBAAC,CAA0BqC,GAA1B,EAAD;YACQF,SAASG,YAAYD,GAAZ,CAAf;eACQ,CAACF,OAAOzD,KAAP,CAAa0G,SAAShD,UAAtB,CAAD,GAAqCC,GAArC,GAA2CF,MAAnD;;QAGG7C,WAAWxB,MAAf,EAAuBwB,WAAWxB,MAAX,GAAoB2D,OAAOnC,WAAWxB,MAAlB,EAA0BgC,OAA1B,CAAkCsF,SAASrF,WAA3C,EAAwDC,gBAAxD,EAA0E1B,WAA1E,GAAwFwB,OAAxF,CAAgGsF,SAASwD,UAAzG,EAAqH,EAArH,CAApB;QACnBtJ,WAAWoF,QAAX,KAAwB9F,SAA5B,EAAuCU,WAAWoF,QAAX,GAAsBjD,OAAOnC,WAAWoF,QAAlB,EAA4B5E,OAA5B,CAAoCsF,SAASrF,WAA7C,EAA0DC,gBAA1D,EAA4EF,OAA5E,CAAoFsF,SAASuD,YAA7F,EAA2GxI,UAA3G,EAAuHL,OAAvH,CAA+HsF,SAASrF,WAAxI,EAAqJE,WAArJ,CAAtB;QACnCX,WAAW8D,IAAX,KAAoBxE,SAAxB,EAAmCU,WAAW8D,IAAX,GAAkB3B,OAAOnC,WAAW8D,IAAlB,EAAwBtD,OAAxB,CAAgCsF,SAASrF,WAAzC,EAAsDC,gBAAtD,EAAwE1B,WAAxE,GAAsFwB,OAAtF,CAA8FsF,SAASsD,QAAvG,EAAiHvI,UAAjH,EAA6HL,OAA7H,CAAqIsF,SAASrF,WAA9I,EAA2JE,WAA3J,CAAlB;QAC/BX,WAAWP,IAAX,KAAoBH,SAAxB,EAAmCU,WAAWP,IAAX,GAAkB0C,OAAOnC,WAAWP,IAAlB,EAAwBe,OAAxB,CAAgCsF,SAASrF,WAAzC,EAAsDC,gBAAtD,EAAwEF,OAAxE,CAAiFR,WAAWxB,MAAX,GAAoBsH,SAASoD,QAA7B,GAAwCpD,SAASqD,iBAAlI,EAAsJtI,UAAtJ,EAAkKL,OAAlK,CAA0KsF,SAASrF,WAAnL,EAAgME,WAAhM,CAAlB;QAC/BX,WAAWE,KAAX,KAAqBZ,SAAzB,EAAoCU,WAAWE,KAAX,GAAmBiC,OAAOnC,WAAWE,KAAlB,EAAyBM,OAAzB,CAAiCsF,SAASrF,WAA1C,EAAuDC,gBAAvD,EAAyEF,OAAzE,CAAiFsF,SAASmD,SAA1F,EAAqGpI,UAArG,EAAiHL,OAAjH,CAAyHsF,SAASrF,WAAlI,EAA+IE,WAA/I,CAAnB;QAChCX,WAAWiF,QAAX,KAAwB3F,SAA5B,EAAuCU,WAAWiF,QAAX,GAAsB9C,OAAOnC,WAAWiF,QAAlB,EAA4BzE,OAA5B,CAAoCsF,SAASrF,WAA7C,EAA0DC,gBAA1D,EAA4EF,OAA5E,CAAoFsF,SAASkD,YAA7F,EAA2GnI,UAA3G,EAAuHL,OAAvH,CAA+HsF,SAASrF,WAAxI,EAAqJE,WAArJ,CAAtB;WAEhCX,UAAP;;AACA;AAED,SAAA4I,kBAAA,CAA4B7F,GAA5B,EAAA;WACQA,IAAIvC,OAAJ,CAAY,SAAZ,EAAuB,IAAvB,KAAgC,GAAvC;;AAGD,SAAAqG,cAAA,CAAwB/C,IAAxB,EAAqCgC,QAArC,EAAA;QACO/F,UAAU+D,KAAK1E,KAAL,CAAW0G,SAAS2C,WAApB,KAAoC,EAApD;;iCACoB1I,OAFrB;QAEU+I,OAFV;;QAIKA,OAAJ,EAAa;eACLA,QAAQtG,KAAR,CAAc,GAAd,EAAmBmG,GAAnB,CAAuBC,kBAAvB,EAA2CxI,IAA3C,CAAgD,GAAhD,CAAP;KADD,MAEO;eACC0D,IAAP;;;AAIF,SAAA8C,cAAA,CAAwB9C,IAAxB,EAAqCgC,QAArC,EAAA;QACO/F,UAAU+D,KAAK1E,KAAL,CAAW0G,SAASC,WAApB,KAAoC,EAApD;;kCAC0BhG,OAF3B;QAEU+I,OAFV;QAEmBxB,IAFnB;;QAIKwB,OAAJ,EAAa;oCACUA,QAAQ9J,WAAR,GAAsBwD,KAAtB,CAA4B,IAA5B,EAAkCuG,OAAlC,EADV;;YACLL,IADK;YACCG,KADD;;YAENR,cAAcQ,QAAQA,MAAMrG,KAAN,CAAY,GAAZ,EAAiBmG,GAAjB,CAAqBC,kBAArB,CAAR,GAAmD,EAAvE;YACMN,aAAaI,KAAKlG,KAAL,CAAW,GAAX,EAAgBmG,GAAhB,CAAoBC,kBAApB,CAAnB;YACMR,yBAAyBtC,SAAS2C,WAAT,CAAqBzC,IAArB,CAA0BsC,WAAWA,WAAWjI,MAAX,GAAoB,CAA/B,CAA1B,CAA/B;YACM8H,aAAaC,yBAAyB,CAAzB,GAA6B,CAAhD;YACMG,kBAAkBD,WAAWjI,MAAX,GAAoB8H,UAA5C;YACMhI,SAASqI,MAAcL,UAAd,CAAf;aAEK,IAAI9G,IAAI,CAAb,EAAgBA,IAAI8G,UAApB,EAAgC,EAAE9G,CAAlC,EAAqC;mBAC7BA,CAAP,IAAYgH,YAAYhH,CAAZ,KAAkBiH,WAAWC,kBAAkBlH,CAA7B,CAAlB,IAAqD,EAAjE;;YAGG+G,sBAAJ,EAA4B;mBACpBD,aAAa,CAApB,IAAyBtB,eAAe1G,OAAOgI,aAAa,CAApB,CAAf,EAAuCrC,QAAvC,CAAzB;;YAGK+B,gBAAgB1H,OAAO+H,MAAP,CAAmD,UAACH,GAAD,EAAME,KAAN,EAAaP,KAAb,EAA3E;gBACO,CAACO,KAAD,IAAUA,UAAU,GAAxB,EAA6B;oBACtBD,cAAcD,IAAIA,IAAI1H,MAAJ,GAAa,CAAjB,CAApB;oBACI2H,eAAeA,YAAYN,KAAZ,GAAoBM,YAAY3H,MAAhC,KAA2CqH,KAA9D,EAAqE;gCACxDrH,MAAZ;iBADD,MAEO;wBACFC,IAAJ,CAAS,EAAEoH,YAAF,EAASrH,QAAS,CAAlB,EAAT;;;mBAGK0H,GAAP;SATqB,EAUnB,EAVmB,CAAtB;YAYMN,oBAAoBI,cAAcC,IAAd,CAAmB,UAACF,CAAD,EAAID,CAAJ;mBAAUA,EAAEtH,MAAF,GAAWuH,EAAEvH,MAAvB;SAAnB,EAAkD,CAAlD,CAA1B;YAEIgH,gBAAJ;YACII,qBAAqBA,kBAAkBpH,MAAlB,GAA2B,CAApD,EAAuD;gBAChDkH,WAAWpH,OAAO4B,KAAP,CAAa,CAAb,EAAgB0F,kBAAkBC,KAAlC,CAAjB;gBACMF,UAAUrH,OAAO4B,KAAP,CAAa0F,kBAAkBC,KAAlB,GAA0BD,kBAAkBpH,MAAzD,CAAhB;sBACUkH,SAASnH,IAAT,CAAc,GAAd,IAAqB,IAArB,GAA4BoH,QAAQpH,IAAR,CAAa,GAAb,CAAtC;SAHD,MAIO;sBACID,OAAOC,IAAP,CAAY,GAAZ,CAAV;;YAGGkH,IAAJ,EAAU;uBACE,MAAMA,IAAjB;;eAGMD,OAAP;KA5CD,MA6CO;eACCvD,IAAP;;;AAIF,IAAMsD,YAAY,iIAAlB;AACA,IAAMD,wBAA4C,EAAD,CAAK/H,KAAL,CAAW,OAAX,EAAqB,CAArB,MAA4BE,SAA7E;AAEA,AAAA,SAAAQ,KAAA,CAAsBiH,SAAtB,EAAA;QAAwC9H,OAAxC,uEAA6D,EAA7D;;QACOe,aAA2B,EAAjC;QACM8F,WAAY7G,QAAQuC,GAAR,KAAgB,KAAhB,GAAwByC,YAAxB,GAAuCD,YAAzD;QAEI/E,QAAQ2G,SAAR,KAAsB,QAA1B,EAAoCmB,YAAY,CAAC9H,QAAQT,MAAR,GAAiBS,QAAQT,MAAR,GAAiB,GAAlC,GAAwC,EAAzC,IAA+C,IAA/C,GAAsDuI,SAAlE;QAE9BhH,UAAUgH,UAAU3H,KAAV,CAAgBgI,SAAhB,CAAhB;QAEIrH,OAAJ,EAAa;YACRoH,qBAAJ,EAA2B;;uBAEf3I,MAAX,GAAoBuB,QAAQ,CAAR,CAApB;uBACWqF,QAAX,GAAsBrF,QAAQ,CAAR,CAAtB;uBACW+D,IAAX,GAAkB/D,QAAQ,CAAR,CAAlB;uBACW8D,IAAX,GAAkBqD,SAASnH,QAAQ,CAAR,CAAT,EAAqB,EAArB,CAAlB;uBACWN,IAAX,GAAkBM,QAAQ,CAAR,KAAc,EAAhC;uBACWG,KAAX,GAAmBH,QAAQ,CAAR,CAAnB;uBACWkF,QAAX,GAAsBlF,QAAQ,CAAR,CAAtB;;gBAGIiH,MAAMhH,WAAW6D,IAAjB,CAAJ,EAA4B;2BAChBA,IAAX,GAAkB9D,QAAQ,CAAR,CAAlB;;SAZF,MAcO;;;uBAEKvB,MAAX,GAAoBuB,QAAQ,CAAR,KAAcT,SAAlC;uBACW8F,QAAX,GAAuB2B,UAAUE,OAAV,CAAkB,GAAlB,MAA2B,CAAC,CAA5B,GAAgClH,QAAQ,CAAR,CAAhC,GAA6CT,SAApE;uBACWwE,IAAX,GAAmBiD,UAAUE,OAAV,CAAkB,IAAlB,MAA4B,CAAC,CAA7B,GAAiClH,QAAQ,CAAR,CAAjC,GAA8CT,SAAjE;uBACWuE,IAAX,GAAkBqD,SAASnH,QAAQ,CAAR,CAAT,EAAqB,EAArB,CAAlB;uBACWN,IAAX,GAAkBM,QAAQ,CAAR,KAAc,EAAhC;uBACWG,KAAX,GAAoB6G,UAAUE,OAAV,CAAkB,GAAlB,MAA2B,CAAC,CAA5B,GAAgClH,QAAQ,CAAR,CAAhC,GAA6CT,SAAjE;uBACW2F,QAAX,GAAuB8B,UAAUE,OAAV,CAAkB,GAAlB,MAA2B,CAAC,CAA5B,GAAgClH,QAAQ,CAAR,CAAhC,GAA6CT,SAApE;;gBAGI0H,MAAMhH,WAAW6D,IAAjB,CAAJ,EAA4B;2BAChBA,IAAX,GAAmBkD,UAAU3H,KAAV,CAAgB,+BAAhB,IAAmDW,QAAQ,CAAR,CAAnD,GAAgET,SAAnF;;;YAIEU,WAAW8D,IAAf,EAAqB;;uBAETA,IAAX,GAAkB8C,eAAeC,eAAe7G,WAAW8D,IAA1B,EAAgCgC,QAAhC,CAAf,EAA0DA,QAA1D,CAAlB;;;YAIG9F,WAAWxB,MAAX,KAAsBc,SAAtB,IAAmCU,WAAWoF,QAAX,KAAwB9F,SAA3D,IAAwEU,WAAW8D,IAAX,KAAoBxE,SAA5F,IAAyGU,WAAW6D,IAAX,KAAoBvE,SAA7H,IAA0I,CAACU,WAAWP,IAAtJ,IAA8JO,WAAWE,KAAX,KAAqBZ,SAAvL,EAAkM;uBACtLsG,SAAX,GAAuB,eAAvB;SADD,MAEO,IAAI5F,WAAWxB,MAAX,KAAsBc,SAA1B,EAAqC;uBAChCsG,SAAX,GAAuB,UAAvB;SADM,MAEA,IAAI5F,WAAWiF,QAAX,KAAwB3F,SAA5B,EAAuC;uBAClCsG,SAAX,GAAuB,UAAvB;SADM,MAEA;uBACKA,SAAX,GAAuB,KAAvB;;;YAIG3G,QAAQ2G,SAAR,IAAqB3G,QAAQ2G,SAAR,KAAsB,QAA3C,IAAuD3G,QAAQ2G,SAAR,KAAsB5F,WAAW4F,SAA5F,EAAuG;uBAC3F1G,KAAX,GAAmBc,WAAWd,KAAX,IAAoB,kBAAkBD,QAAQ2G,SAA1B,GAAsC,aAA7E;;;YAIKjG,gBAAgBrB,QAAQ,CAACW,QAAQT,MAAR,IAAkBwB,WAAWxB,MAA7B,IAAuC,EAAxC,EAA4CQ,WAA5C,EAAR,CAAtB;;YAGI,CAACC,QAAQsD,cAAT,KAA4B,CAAC5C,aAAD,IAAkB,CAACA,cAAc4C,cAA7D,CAAJ,EAAkF;;gBAE7EvC,WAAW8D,IAAX,KAAoB7E,QAAQ2E,UAAR,IAAuBjE,iBAAiBA,cAAciE,UAA1E,CAAJ,EAA4F;;oBAEvF;+BACQE,IAAX,GAAkBpC,SAASC,OAAT,CAAiB3B,WAAW8D,IAAX,CAAgBtD,OAAhB,CAAwBsF,SAASrF,WAAjC,EAA8CuC,WAA9C,EAA2DhE,WAA3D,EAAjB,CAAlB;iBADD,CAEE,OAAOyC,CAAP,EAAU;+BACAvC,KAAX,GAAmBc,WAAWd,KAAX,IAAoB,oEAAoEuC,CAA3G;;;;wCAI0BzB,UAA5B,EAAwCgE,YAAxC;SAXD,MAYO;;wCAEsBhE,UAA5B,EAAwC8F,QAAxC;;;YAIGnG,iBAAiBA,cAAcG,KAAnC,EAA0C;0BAC3BA,KAAd,CAAoBE,UAApB,EAAgCf,OAAhC;;KA3EF,MA6EO;mBACKC,KAAX,GAAmBc,WAAWd,KAAX,IAAoB,wBAAvC;;WAGMc,UAAP;;AACA;AAED,SAAA6F,mBAAA,CAA6B7F,UAA7B,EAAuDf,OAAvD,EAAA;QACO6G,WAAY7G,QAAQuC,GAAR,KAAgB,KAAhB,GAAwByC,YAAxB,GAAuCD,YAAzD;QACMwB,YAA0B,EAAhC;QAEIxF,WAAWoF,QAAX,KAAwB9F,SAA5B,EAAuC;kBAC5BgB,IAAV,CAAeN,WAAWoF,QAA1B;kBACU9E,IAAV,CAAe,GAAf;;QAGGN,WAAW8D,IAAX,KAAoBxE,SAAxB,EAAmC;;kBAExBgB,IAAV,CAAesG,eAAeC,eAAe1E,OAAOnC,WAAW8D,IAAlB,CAAf,EAAwCgC,QAAxC,CAAf,EAAkEA,QAAlE,EAA4EtF,OAA5E,CAAoFsF,SAASC,WAA7F,EAA0G,UAACe,CAAD,EAAIJ,EAAJ,EAAQC,EAAR;mBAAe,MAAMD,EAAN,IAAYC,KAAK,QAAQA,EAAb,GAAkB,EAA9B,IAAoC,GAAnD;SAA1G,CAAf;;QAGG,OAAO3G,WAAW6D,IAAlB,KAA2B,QAA/B,EAAyC;kBAC9BvD,IAAV,CAAe,GAAf;kBACUA,IAAV,CAAeN,WAAW6D,IAAX,CAAgBE,QAAhB,CAAyB,EAAzB,CAAf;;WAGMyB,UAAUnF,MAAV,GAAmBmF,UAAUpF,IAAV,CAAe,EAAf,CAAnB,GAAwCd,SAA/C;;AACA;AAED,IAAMmH,OAAO,UAAb;AACA,IAAMD,OAAO,aAAb;AACA,IAAMD,OAAO,eAAb;AACA,AACA,IAAMF,OAAO,wBAAb;AAEA,AAAA,SAAAhB,iBAAA,CAAkCc,KAAlC,EAAA;QACOF,SAAuB,EAA7B;WAEOE,MAAM9F,MAAb,EAAqB;YAChB8F,MAAM/G,KAAN,CAAYqH,IAAZ,CAAJ,EAAuB;oBACdN,MAAM3F,OAAN,CAAciG,IAAd,EAAoB,EAApB,CAAR;SADD,MAEO,IAAIN,MAAM/G,KAAN,CAAYoH,IAAZ,CAAJ,EAAuB;oBACrBL,MAAM3F,OAAN,CAAcgG,IAAd,EAAoB,GAApB,CAAR;SADM,MAEA,IAAIL,MAAM/G,KAAN,CAAYmH,IAAZ,CAAJ,EAAuB;oBACrBJ,MAAM3F,OAAN,CAAc+F,IAAd,EAAoB,GAApB,CAAR;mBACOD,GAAP;SAFM,MAGA,IAAIH,UAAU,GAAV,IAAiBA,UAAU,IAA/B,EAAqC;oBACnC,EAAR;SADM,MAEA;gBACAC,KAAKD,MAAM/G,KAAN,CAAYiH,IAAZ,CAAX;gBACID,EAAJ,EAAQ;oBACDX,IAAIW,GAAG,CAAH,CAAV;wBACQD,MAAMpE,KAAN,CAAY0D,EAAEpF,MAAd,CAAR;uBACOC,IAAP,CAAYmF,CAAZ;aAHD,MAIO;sBACA,IAAIS,KAAJ,CAAU,kCAAV,CAAN;;;;WAKID,OAAO7F,IAAP,CAAY,EAAZ,CAAP;;AACA;AAED,AAAA,SAAAR,SAAA,CAA0BI,UAA1B,EAAA;QAAoDf,OAApD,uEAAyE,EAAzE;;QACO6G,WAAY7G,QAAQuC,GAAR,GAAcyC,YAAd,GAA6BD,YAA/C;QACMwB,YAA0B,EAAhC;;QAGM7F,gBAAgBrB,QAAQ,CAACW,QAAQT,MAAR,IAAkBwB,WAAWxB,MAA7B,IAAuC,EAAxC,EAA4CQ,WAA5C,EAAR,CAAtB;;QAGIW,iBAAiBA,cAAcC,SAAnC,EAA8CD,cAAcC,SAAd,CAAwBI,UAAxB,EAAoCf,OAApC;QAE1Ce,WAAW8D,IAAf,EAAqB;;YAEhBgC,SAASC,WAAT,CAAqBC,IAArB,CAA0BhG,WAAW8D,IAArC,CAAJ,EAAgD;;;;aAK3C,IAAI7E,QAAQ2E,UAAR,IAAuBjE,iBAAiBA,cAAciE,UAA1D,EAAuE;;oBAEvE;+BACQE,IAAX,GAAmB,CAAC7E,QAAQuC,GAAT,GAAeE,SAASC,OAAT,CAAiB3B,WAAW8D,IAAX,CAAgBtD,OAAhB,CAAwBsF,SAASrF,WAAjC,EAA8CuC,WAA9C,EAA2DhE,WAA3D,EAAjB,CAAf,GAA4G0C,SAASG,SAAT,CAAmB7B,WAAW8D,IAA9B,CAA/H;iBADD,CAEE,OAAOrC,CAAP,EAAU;+BACAvC,KAAX,GAAmBc,WAAWd,KAAX,IAAoB,iDAAiD,CAACD,QAAQuC,GAAT,GAAe,OAAf,GAAyB,SAA1E,IAAuF,iBAAvF,GAA2GC,CAAlJ;;;;;gCAMyBzB,UAA5B,EAAwC8F,QAAxC;QAEI7G,QAAQ2G,SAAR,KAAsB,QAAtB,IAAkC5F,WAAWxB,MAAjD,EAAyD;kBAC9C8B,IAAV,CAAeN,WAAWxB,MAA1B;kBACU8B,IAAV,CAAe,GAAf;;QAGKoF,YAAYG,oBAAoB7F,UAApB,EAAgCf,OAAhC,CAAlB;QACIyG,cAAcpG,SAAlB,EAA6B;YACxBL,QAAQ2G,SAAR,KAAsB,QAA1B,EAAoC;sBACzBtF,IAAV,CAAe,IAAf;;kBAGSA,IAAV,CAAeoF,SAAf;YAEI1F,WAAWP,IAAX,IAAmBO,WAAWP,IAAX,CAAgB6F,MAAhB,CAAuB,CAAvB,MAA8B,GAArD,EAA0D;sBAC/ChF,IAAV,CAAe,GAAf;;;QAIEN,WAAWP,IAAX,KAAoBH,SAAxB,EAAmC;YAC9BmG,IAAIzF,WAAWP,IAAnB;YAEI,CAACR,QAAQ0G,YAAT,KAA0B,CAAChG,aAAD,IAAkB,CAACA,cAAcgG,YAA3D,CAAJ,EAA8E;gBACzEN,kBAAkBI,CAAlB,CAAJ;;YAGGC,cAAcpG,SAAlB,EAA6B;gBACxBmG,EAAEjF,OAAF,CAAU,OAAV,EAAmB,MAAnB,CAAJ,CAD4B;;kBAInBF,IAAV,CAAemF,CAAf;;QAGGzF,WAAWE,KAAX,KAAqBZ,SAAzB,EAAoC;kBACzBgB,IAAV,CAAe,GAAf;kBACUA,IAAV,CAAeN,WAAWE,KAA1B;;QAGGF,WAAWiF,QAAX,KAAwB3F,SAA5B,EAAuC;kBAC5BgB,IAAV,CAAe,GAAf;kBACUA,IAAV,CAAeN,WAAWiF,QAA1B;;WAGMO,UAAUpF,IAAV,CAAe,EAAf,CAAP,CAxED;;AAyEC;AAED,AAAA,SAAAsE,iBAAA,CAAkCS,IAAlC,EAAsDD,QAAtD,EAAA;QAA8EjG,OAA9E,uEAAmG,EAAnG;QAAuGsG,iBAAvG;;QACOP,SAAuB,EAA7B;QAEI,CAACO,iBAAL,EAAwB;eAChBzF,MAAMF,UAAUuF,IAAV,EAAgBlG,OAAhB,CAAN,EAAgCA,OAAhC,CAAP,CADuB;mBAEZa,MAAMF,UAAUsF,QAAV,EAAoBjG,OAApB,CAAN,EAAoCA,OAApC,CAAX,CAFuB;;cAIdA,WAAW,EAArB;QAEI,CAACA,QAAQE,QAAT,IAAqB+F,SAAS1G,MAAlC,EAA0C;eAClCA,MAAP,GAAgB0G,SAAS1G,MAAzB;;eAEO4G,QAAP,GAAkBF,SAASE,QAA3B;eACOtB,IAAP,GAAcoB,SAASpB,IAAvB;eACOD,IAAP,GAAcqB,SAASrB,IAAvB;eACOpE,IAAP,GAAc4F,kBAAkBH,SAASzF,IAAT,IAAiB,EAAnC,CAAd;eACOS,KAAP,GAAegF,SAAShF,KAAxB;KAPD,MAQO;YACFgF,SAASE,QAAT,KAAsB9F,SAAtB,IAAmC4F,SAASpB,IAAT,KAAkBxE,SAArD,IAAkE4F,SAASrB,IAAT,KAAkBvE,SAAxF,EAAmG;;mBAE3F8F,QAAP,GAAkBF,SAASE,QAA3B;mBACOtB,IAAP,GAAcoB,SAASpB,IAAvB;mBACOD,IAAP,GAAcqB,SAASrB,IAAvB;mBACOpE,IAAP,GAAc4F,kBAAkBH,SAASzF,IAAT,IAAiB,EAAnC,CAAd;mBACOS,KAAP,GAAegF,SAAShF,KAAxB;SAND,MAOO;gBACF,CAACgF,SAASzF,IAAd,EAAoB;uBACZA,IAAP,GAAc0F,KAAK1F,IAAnB;oBACIyF,SAAShF,KAAT,KAAmBZ,SAAvB,EAAkC;2BAC1BY,KAAP,GAAegF,SAAShF,KAAxB;iBADD,MAEO;2BACCA,KAAP,GAAeiF,KAAKjF,KAApB;;aALF,MAOO;oBACFgF,SAASzF,IAAT,CAAc6F,MAAd,CAAqB,CAArB,MAA4B,GAAhC,EAAqC;2BAC7B7F,IAAP,GAAc4F,kBAAkBH,SAASzF,IAA3B,CAAd;iBADD,MAEO;wBACF,CAAC0F,KAAKC,QAAL,KAAkB9F,SAAlB,IAA+B6F,KAAKrB,IAAL,KAAcxE,SAA7C,IAA0D6F,KAAKtB,IAAL,KAAcvE,SAAzE,KAAuF,CAAC6F,KAAK1F,IAAjG,EAAuG;+BAC/FA,IAAP,GAAc,MAAMyF,SAASzF,IAA7B;qBADD,MAEO,IAAI,CAAC0F,KAAK1F,IAAV,EAAgB;+BACfA,IAAP,GAAcyF,SAASzF,IAAvB;qBADM,MAEA;+BACCA,IAAP,GAAc0F,KAAK1F,IAAL,CAAUsC,KAAV,CAAgB,CAAhB,EAAmBoD,KAAK1F,IAAL,CAAUyC,WAAV,CAAsB,GAAtB,IAA6B,CAAhD,IAAqDgD,SAASzF,IAA5E;;2BAEMA,IAAP,GAAc4F,kBAAkBL,OAAOvF,IAAzB,CAAd;;uBAEMS,KAAP,GAAegF,SAAShF,KAAxB;;;mBAGMkF,QAAP,GAAkBD,KAAKC,QAAvB;mBACOtB,IAAP,GAAcqB,KAAKrB,IAAnB;mBACOD,IAAP,GAAcsB,KAAKtB,IAAnB;;eAEMrF,MAAP,GAAgB2G,KAAK3G,MAArB;;WAGMyG,QAAP,GAAkBC,SAASD,QAA3B;WAEOD,MAAP;;AACA;AAED,AAAA,SAAAD,OAAA,CAAwBJ,OAAxB,EAAwCE,WAAxC,EAA4D5F,OAA5D,EAAA;QACO2F,oBAAoBE,OAAO,EAAEtG,QAAS,MAAX,EAAP,EAA4BS,OAA5B,CAA1B;WACOW,UAAU8E,kBAAkB5E,MAAM6E,OAAN,EAAeC,iBAAf,CAAlB,EAAqD9E,MAAM+E,WAAN,EAAmBD,iBAAnB,CAArD,EAA4FA,iBAA5F,EAA+G,IAA/G,CAAV,EAAgIA,iBAAhI,CAAP;;AACA;AAID,AAAA,SAAAH,SAAA,CAA0BD,GAA1B,EAAmCvF,OAAnC,EAAA;QACK,OAAOuF,GAAP,KAAe,QAAnB,EAA6B;cACtB5E,UAAUE,MAAM0E,GAAN,EAAWvF,OAAX,CAAV,EAA+BA,OAA/B,CAAN;KADD,MAEO,IAAIqF,OAAOE,GAAP,MAAgB,QAApB,EAA8B;cAC9B1E,MAAMF,UAAyB4E,GAAzB,EAA8BvF,OAA9B,CAAN,EAA8CA,OAA9C,CAAN;;WAGMuF,GAAP;;AACA;AAID,AAAA,SAAAD,KAAA,CAAsBH,IAAtB,EAAgCC,IAAhC,EAA0CpF,OAA1C,EAAA;QACK,OAAOmF,IAAP,KAAgB,QAApB,EAA8B;eACtBxE,UAAUE,MAAMsE,IAAN,EAAYnF,OAAZ,CAAV,EAAgCA,OAAhC,CAAP;KADD,MAEO,IAAIqF,OAAOF,IAAP,MAAiB,QAArB,EAA+B;eAC9BxE,UAAyBwE,IAAzB,EAA+BnF,OAA/B,CAAP;;QAGG,OAAOoF,IAAP,KAAgB,QAApB,EAA8B;eACtBzE,UAAUE,MAAMuE,IAAN,EAAYpF,OAAZ,CAAV,EAAgCA,OAAhC,CAAP;KADD,MAEO,IAAIqF,OAAOD,IAAP,MAAiB,QAArB,EAA+B;eAC9BzE,UAAyByE,IAAzB,EAA+BpF,OAA/B,CAAP;;WAGMmF,SAASC,IAAhB;;AACA;AAED,AAAA,SAAAF,eAAA,CAAgCpB,GAAhC,EAA4C9D,OAA5C,EAAA;WACQ8D,OAAOA,IAAIgB,QAAJ,GAAevD,OAAf,CAAwB,CAACvB,OAAD,IAAY,CAACA,QAAQuC,GAArB,GAA2BwC,aAAaE,MAAxC,GAAiDD,aAAaC,MAAtF,EAA+FrD,UAA/F,CAAd;;AACA;AAED,AAAA,SAAAe,iBAAA,CAAkCmB,GAAlC,EAA8C9D,OAA9C,EAAA;WACQ8D,OAAOA,IAAIgB,QAAJ,GAAevD,OAAf,CAAwB,CAACvB,OAAD,IAAY,CAACA,QAAQuC,GAArB,GAA2BwC,aAAavD,WAAxC,GAAsDwD,aAAaxD,WAA3F,EAAyGuC,WAAzG,CAAd;CACA;;ADziBD,IAAMzD,UAA2B;YACvB,MADuB;gBAGnB,IAHmB;WAKxB,eAAUS,UAAV,EAAoCf,OAApC,EAAT;;YAEM,CAACe,WAAW8D,IAAhB,EAAsB;uBACV5E,KAAX,GAAmBc,WAAWd,KAAX,IAAoB,6BAAvC;;eAGMc,UAAP;KAX+B;eAcpB,mBAAUA,UAAV,EAAoCf,OAApC,EAAb;;YAEMe,WAAW6D,IAAX,MAAqB1B,OAAOnC,WAAWxB,MAAlB,EAA0BQ,WAA1B,OAA4C,OAA5C,GAAsD,EAAtD,GAA2D,GAAhF,KAAwFgB,WAAW6D,IAAX,KAAoB,EAAhH,EAAoH;uBACxGA,IAAX,GAAkBvE,SAAlB;;;YAIG,CAACU,WAAWP,IAAhB,EAAsB;uBACVA,IAAX,GAAkB,GAAlB;;;;;eAOMO,UAAP;;CA7BF,CAiCA;;ADhCA,IAAMT,YAA2B;YACvB,OADuB;gBAEnBX,QAAKgF,UAFc;WAGxBhF,QAAKkB,KAHmB;eAIpBlB,QAAKgB;CAJlB,CAOA;;ADMA,IAAMoB,IAAkB,EAAxB;AACA,IAAM2C,QAAQ,IAAd;;AAGA,IAAMR,eAAe,4BAA4BQ,QAAQ,2EAAR,GAAsF,EAAlH,IAAwH,GAA7I;AACA,IAAMD,WAAW,aAAjB;AACA,IAAMH,eAAeE,OAAOA,OAAO,YAAYC,QAAZ,GAAuB,GAAvB,GAA6BA,QAA7B,GAAwCA,QAAxC,GAAmD,GAAnD,GAAyDA,QAAzD,GAAoEA,QAA3E,IAAuF,GAAvF,GAA6FD,OAAO,gBAAgBC,QAAhB,GAA2B,GAA3B,GAAiCA,QAAjC,GAA4CA,QAAnD,CAA7F,GAA4J,GAA5J,GAAkKD,OAAO,MAAMC,QAAN,GAAiBA,QAAxB,CAAzK,CAArB;;;;;;;;;;;;AAaA,IAAML,UAAU,uDAAhB;AACA,IAAMG,UAAU,4DAAhB;AACA,IAAMF,UAAUJ,MAAMM,OAAN,EAAe,YAAf,CAAhB;AACA,AACA,AACA,AACA,AAEA,AAEA,IAAMJ,gBAAgB,qCAAtB;AACA,AACA,AACA,AACA,AACA,AACA,AACA,AACA,AACA,AACA,AACA,AAEA,IAAMN,aAAa,IAAIG,MAAJ,CAAWE,YAAX,EAAyB,GAAzB,CAAnB;AACA,IAAM1C,cAAc,IAAIwC,MAAJ,CAAWM,YAAX,EAAyB,GAAzB,CAApB;AACA,IAAMtB,iBAAiB,IAAIgB,MAAJ,CAAWC,MAAM,KAAN,EAAaG,OAAb,EAAsB,OAAtB,EAA+B,OAA/B,EAAwCC,OAAxC,CAAX,EAA6D,GAA7D,CAAvB;AACA,AACA,IAAM1C,aAAa,IAAIqC,MAAJ,CAAWC,MAAM,KAAN,EAAaC,YAAb,EAA2BC,aAA3B,CAAX,EAAsD,GAAtD,CAAnB;AACA,IAAMrC,cAAcH,UAApB;AACA,AACA,AAEA,SAAAF,gBAAA,CAA0BqC,GAA1B,EAAA;QACOF,SAASG,YAAYD,GAAZ,CAAf;WACQ,CAACF,OAAOzD,KAAP,CAAa0D,UAAb,CAAD,GAA4BC,GAA5B,GAAkCF,MAA1C;;AAGD,IAAMtD,YAA8C;YAC1C,QAD0C;WAG3C,kBAAUS,UAAV,EAAoCf,OAApC,EAAT;YACQgC,mBAAmBjB,UAAzB;YACMoB,KAAKH,iBAAiBG,EAAjB,GAAuBH,iBAAiBxB,IAAjB,GAAwBwB,iBAAiBxB,IAAjB,CAAsB+C,KAAtB,CAA4B,GAA5B,CAAxB,GAA2D,EAA7F;yBACiB/C,IAAjB,GAAwBH,SAAxB;YAEI2B,iBAAiBf,KAArB,EAA4B;gBACvBuC,iBAAiB,KAArB;gBACM3B,UAAwB,EAA9B;gBACM8B,UAAU3B,iBAAiBf,KAAjB,CAAuBsC,KAAvB,CAA6B,GAA7B,CAAhB;iBAEK,IAAInB,IAAI,CAAR,EAAWe,KAAKQ,QAAQvC,MAA7B,EAAqCgB,IAAIe,EAAzC,EAA6C,EAAEf,CAA/C,EAAkD;oBAC3CqB,SAASE,QAAQvB,CAAR,EAAWmB,KAAX,CAAiB,GAAjB,CAAf;wBAEQE,OAAO,CAAP,CAAR;yBACM,IAAL;4BACOC,UAAUD,OAAO,CAAP,EAAUF,KAAV,CAAgB,GAAhB,CAAhB;6BACK,IAAInB,KAAI,CAAR,EAAWe,MAAKO,QAAQtC,MAA7B,EAAqCgB,KAAIe,GAAzC,EAA6C,EAAEf,EAA/C,EAAkD;+BAC9Cf,IAAH,CAAQqC,QAAQtB,EAAR,CAAR;;;yBAGG,SAAL;yCACkBF,OAAjB,GAA2BS,kBAAkBc,OAAO,CAAP,CAAlB,EAA6BzD,OAA7B,CAA3B;;yBAEI,MAAL;yCACkBiC,IAAjB,GAAwBU,kBAAkBc,OAAO,CAAP,CAAlB,EAA6BzD,OAA7B,CAAxB;;;yCAGiB,IAAjB;gCACQ2C,kBAAkBc,OAAO,CAAP,CAAlB,EAA6BzD,OAA7B,CAAR,IAAiD2C,kBAAkBc,OAAO,CAAP,CAAlB,EAA6BzD,OAA7B,CAAjD;;;;gBAKCwD,cAAJ,EAAoBxB,iBAAiBH,OAAjB,GAA2BA,OAA3B;;yBAGJZ,KAAjB,GAAyBZ,SAAzB;aAEK,IAAI+B,MAAI,CAAR,EAAWe,OAAKhB,GAAGf,MAAxB,EAAgCgB,MAAIe,IAApC,EAAwC,EAAEf,GAA1C,EAA6C;gBACtCiB,OAAOlB,GAAGC,GAAH,EAAMmB,KAAN,CAAY,GAAZ,CAAb;iBAEK,CAAL,IAAUZ,kBAAkBU,KAAK,CAAL,CAAlB,CAAV;gBAEI,CAACrD,QAAQsD,cAAb,EAA6B;;oBAExB;yBACE,CAAL,IAAUb,SAASC,OAAT,CAAiBC,kBAAkBU,KAAK,CAAL,CAAlB,EAA2BrD,OAA3B,EAAoCD,WAApC,EAAjB,CAAV;iBADD,CAEE,OAAOyC,CAAP,EAAU;qCACMvC,KAAjB,GAAyB+B,iBAAiB/B,KAAjB,IAA0B,6EAA6EuC,CAAhI;;aALF,MAOO;qBACD,CAAL,IAAUG,kBAAkBU,KAAK,CAAL,CAAlB,EAA2BrD,OAA3B,EAAoCD,WAApC,EAAV;;eAGEqC,GAAH,IAAQiB,KAAKlC,IAAL,CAAU,GAAV,CAAR;;eAGMa,gBAAP;KA5DkD;eA+DvC,sBAAUA,gBAAV,EAA6ChC,OAA7C,EAAb;YACQe,aAAaiB,gBAAnB;YACMG,KAAKiB,QAAQpB,iBAAiBG,EAAzB,CAAX;YACIA,EAAJ,EAAQ;iBACF,IAAIC,IAAI,CAAR,EAAWe,KAAKhB,GAAGf,MAAxB,EAAgCgB,IAAIe,EAApC,EAAwC,EAAEf,CAA1C,EAA6C;oBACtCS,SAASK,OAAOf,GAAGC,CAAH,CAAP,CAAf;oBACMW,QAAQF,OAAOI,WAAP,CAAmB,GAAnB,CAAd;oBACMZ,YAAaQ,OAAOC,KAAP,CAAa,CAAb,EAAgBC,KAAhB,CAAD,CAAyBxB,OAAzB,CAAiCC,WAAjC,EAA8CC,gBAA9C,EAAgEF,OAAhE,CAAwEC,WAAxE,EAAqFE,WAArF,EAAkGH,OAAlG,CAA0GyB,cAA1G,EAA0HpB,UAA1H,CAAlB;oBACIU,SAASO,OAAOC,KAAP,CAAaC,QAAQ,CAArB,CAAb;;oBAGI;6BACO,CAAC/C,QAAQuC,GAAT,GAAeE,SAASC,OAAT,CAAiBC,kBAAkBL,MAAlB,EAA0BtC,OAA1B,EAAmCD,WAAnC,EAAjB,CAAf,GAAoF0C,SAASG,SAAT,CAAmBN,MAAnB,CAA9F;iBADD,CAEE,OAAOE,CAAP,EAAU;+BACAvC,KAAX,GAAmBc,WAAWd,KAAX,IAAoB,0DAA0D,CAACD,QAAQuC,GAAT,GAAe,OAAf,GAAyB,SAAnF,IAAgG,iBAAhG,GAAoHC,CAA3J;;mBAGEJ,CAAH,IAAQC,YAAY,GAAZ,GAAkBC,MAA1B;;uBAGU9B,IAAX,GAAkB2B,GAAGhB,IAAH,CAAQ,GAAR,CAAlB;;YAGKU,UAAUG,iBAAiBH,OAAjB,GAA2BG,iBAAiBH,OAAjB,IAA4B,EAAvE;YAEIG,iBAAiBE,OAArB,EAA8BL,QAAQ,SAAR,IAAqBG,iBAAiBE,OAAtC;YAC1BF,iBAAiBC,IAArB,EAA2BJ,QAAQ,MAAR,IAAkBG,iBAAiBC,IAAnC;YAErBf,SAAS,EAAf;aACK,IAAMI,IAAX,IAAmBO,OAAnB,EAA4B;gBACvBA,QAAQP,IAAR,MAAkBS,EAAET,IAAF,CAAtB,EAA+B;uBACvBD,IAAP,CACCC,KAAKC,OAAL,CAAaC,WAAb,EAA0BC,gBAA1B,EAA4CF,OAA5C,CAAoDC,WAApD,EAAiEE,WAAjE,EAA8EH,OAA9E,CAAsFI,UAAtF,EAAkGC,UAAlG,IACA,GADA,GAEAC,QAAQP,IAAR,EAAcC,OAAd,CAAsBC,WAAtB,EAAmCC,gBAAnC,EAAqDF,OAArD,CAA6DC,WAA7D,EAA0EE,WAA1E,EAAuFH,OAAvF,CAA+FO,WAA/F,EAA4GF,UAA5G,CAHD;;;YAOEV,OAAOE,MAAX,EAAmB;uBACPH,KAAX,GAAmBC,OAAOC,IAAP,CAAY,GAAZ,CAAnB;;eAGMJ,UAAP;;CAzGF,CA6GA;;ADnKA,IAAMC,YAAY,iBAAlB;AACA,AAEA;AACA,IAAMV,YAAqD;YACjD,KADiD;WAGlD,kBAAUS,UAAV,EAAoCf,OAApC,EAAT;YACQc,UAAUC,WAAWP,IAAX,IAAmBO,WAAWP,IAAX,CAAgBL,KAAhB,CAAsBa,SAAtB,CAAnC;YACIpB,gBAAgBmB,UAApB;YAEID,OAAJ,EAAa;gBACNvB,SAASS,QAAQT,MAAR,IAAkBK,cAAcL,MAAhC,IAA0C,KAAzD;gBACMkB,MAAMK,QAAQ,CAAR,EAAWf,WAAX,EAAZ;gBACMF,MAAMiB,QAAQ,CAAR,CAAZ;gBACMF,YAAerB,MAAf,UAAyBS,QAAQS,GAAR,IAAeA,GAAxC,CAAN;gBACMC,gBAAgBrB,QAAQuB,SAAR,CAAtB;0BAEcH,GAAd,GAAoBA,GAApB;0BACcZ,GAAd,GAAoBA,GAApB;0BACcW,IAAd,GAAqBH,SAArB;gBAEIK,aAAJ,EAAmB;gCACFA,cAAcG,KAAd,CAAoBjB,aAApB,EAAmCI,OAAnC,CAAhB;;SAZF,MAcO;0BACQC,KAAd,GAAsBL,cAAcK,KAAd,IAAuB,wBAA7C;;eAGML,aAAP;KAzByD;eA4B9C,sBAAUA,aAAV,EAAuCI,OAAvC,EAAb;YACQT,SAASS,QAAQT,MAAR,IAAkBK,cAAcL,MAAhC,IAA0C,KAAzD;YACMkB,MAAMb,cAAca,GAA1B;YACMG,YAAerB,MAAf,UAAyBS,QAAQS,GAAR,IAAeA,GAAxC,CAAN;YACMC,gBAAgBrB,QAAQuB,SAAR,CAAtB;YAEIF,aAAJ,EAAmB;4BACFA,cAAcC,SAAd,CAAwBf,aAAxB,EAAuCI,OAAvC,CAAhB;;YAGKO,gBAAgBX,aAAtB;YACMC,MAAMD,cAAcC,GAA1B;sBACcW,IAAd,IAAwBC,OAAOT,QAAQS,GAAvC,UAA8CZ,GAA9C;eAEOU,aAAP;;CA1CF,CA8CA;;AD5DA,IAAMH,OAAO,0DAAb;AACA,AAEA;AACA,IAAME,YAAsE;YAClE,UADkE;WAGnE,eAAUV,aAAV,EAAuCI,OAAvC,EAAT;YACQF,iBAAiBF,aAAvB;uBACeN,IAAf,GAAsBQ,eAAeD,GAArC;uBACeA,GAAf,GAAqBQ,SAArB;YAEI,CAACL,QAAQE,QAAT,KAAsB,CAACJ,eAAeR,IAAhB,IAAwB,CAACQ,eAAeR,IAAf,CAAoBa,KAApB,CAA0BC,IAA1B,CAA/C,CAAJ,EAAqF;2BACrEH,KAAf,GAAuBH,eAAeG,KAAf,IAAwB,oBAA/C;;eAGMH,cAAP;KAZ0E;eAe/D,mBAAUA,cAAV,EAAyCE,OAAzC,EAAb;YACQJ,gBAAgBE,cAAtB;;sBAEcD,GAAd,GAAoB,CAACC,eAAeR,IAAf,IAAuB,EAAxB,EAA4BS,WAA5B,EAApB;eACOH,aAAP;;CAnBF,CAuBA;;ADhCAP,QAAQM,QAAKJ,MAAb,IAAuBI,OAAvB;AAEA,AACAN,QAAQK,UAAMH,MAAd,IAAwBG,SAAxB;AAEA,AACAL,QAAQI,UAAOF,MAAf,IAAyBE,SAAzB;AAEA,AACAJ,QAAQG,UAAID,MAAZ,IAAsBC,SAAtB;AAEA,AACAH,QAAQC,UAAKC,MAAb,IAAuBD,SAAvB,CAEA;;;;;;;;;;;;;;;;;"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/es5/uri.all.min.d.ts b/node_modules/uri-js/dist/es5/uri.all.min.d.ts
deleted file mode 100644
index 320f534..0000000
--- a/node_modules/uri-js/dist/es5/uri.all.min.d.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-export interface URIComponents {
- scheme?: string;
- userinfo?: string;
- host?: string;
- port?: number | string;
- path?: string;
- query?: string;
- fragment?: string;
- reference?: string;
- error?: string;
-}
-export interface URIOptions {
- scheme?: string;
- reference?: string;
- tolerant?: boolean;
- absolutePath?: boolean;
- iri?: boolean;
- unicodeSupport?: boolean;
- domainHost?: boolean;
-}
-export interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {
- scheme: string;
- parse(components: ParentComponents, options: Options): Components;
- serialize(components: Components, options: Options): ParentComponents;
- unicodeSupport?: boolean;
- domainHost?: boolean;
- absolutePath?: boolean;
-}
-export interface URIRegExps {
- NOT_SCHEME: RegExp;
- NOT_USERINFO: RegExp;
- NOT_HOST: RegExp;
- NOT_PATH: RegExp;
- NOT_PATH_NOSCHEME: RegExp;
- NOT_QUERY: RegExp;
- NOT_FRAGMENT: RegExp;
- ESCAPE: RegExp;
- UNRESERVED: RegExp;
- OTHER_CHARS: RegExp;
- PCT_ENCODED: RegExp;
- IPV4ADDRESS: RegExp;
- IPV6ADDRESS: RegExp;
-}
-export declare const SCHEMES: {
- [scheme: string]: URISchemeHandler;
-};
-export declare function pctEncChar(chr: string): string;
-export declare function pctDecChars(str: string): string;
-export declare function parse(uriString: string, options?: URIOptions): URIComponents;
-export declare function removeDotSegments(input: string): string;
-export declare function serialize(components: URIComponents, options?: URIOptions): string;
-export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents;
-export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string;
-export declare function normalize(uri: string, options?: URIOptions): string;
-export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents;
-export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean;
-export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean;
-export declare function escapeComponent(str: string, options?: URIOptions): string;
-export declare function unescapeComponent(str: string, options?: URIOptions): string;
diff --git a/node_modules/uri-js/dist/es5/uri.all.min.js b/node_modules/uri-js/dist/es5/uri.all.min.js
deleted file mode 100644
index 1b791ef..0000000
--- a/node_modules/uri-js/dist/es5/uri.all.min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
-!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.URI=e.URI||{})}(this,function(e){"use strict";function r(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r.length>1){r[0]=r[0].slice(0,-1);for(var t=r.length-1,o=1;o<t;++o)r[o]=r[o].slice(1,-1);return r[t]=r[t].slice(1),r.join("")}return r[0]}function n(e){return"(?:"+e+")"}function t(e){return e===undefined?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return e!==undefined&&null!==e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,r){var n=e;if(r)for(var t in r)n[t]=r[t];return n}function u(e){var t=r("[0-9]","[A-Fa-f]"),o=n(n("%[EFef]"+t+"%"+t+t+"%"+t+t)+"|"+n("%[89A-Fa-f]"+t+"%"+t+t)+"|"+n("%"+t+t)),a="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",i=r("[\\:\\/\\?\\#\\[\\]\\@]",a),u=e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",s=e?"[\\uE000-\\uF8FF]":"[]",f=r("[A-Za-z]","[0-9]","[\\-\\.\\_\\~]",u),c=n(n("25[0-5]")+"|"+n("2[0-4][0-9]")+"|"+n("1[0-9][0-9]")+"|"+n("0?[1-9][0-9]")+"|0?0?[0-9]"),p=n(c+"\\."+c+"\\."+c+"\\."+c),h=n(t+"{1,4}"),d=n(n(h+"\\:"+h)+"|"+p),l=n(n(h+"\\:")+"{6}"+d),g=n("\\:\\:"+n(h+"\\:")+"{5}"+d),v=n(n(h)+"?\\:\\:"+n(h+"\\:")+"{4}"+d),m=n(n(n(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+n(h+"\\:")+"{3}"+d),E=n(n(n(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+n(h+"\\:")+"{2}"+d),C=n(n(n(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+d),y=n(n(n(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+d),S=n(n(n(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),A=n(n(n(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),D=n([l,g,v,m,E,C,y,S,A].join("|")),w=n(n(f+"|"+o)+"+");return{NOT_SCHEME:new RegExp(r("[^]","[A-Za-z]","[0-9]","[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",f,a),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",f,a),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",f,a),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",f,a),"g"),NOT_QUERY:new RegExp(r("[^\\%]",f,a,"[\\:\\@\\/\\?]",s),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",f,a,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",f,a),"g"),UNRESERVED:new RegExp(f,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",f,i),"g"),PCT_ENCODED:new RegExp(o,"g"),IPV4ADDRESS:new RegExp("^("+p+")$"),IPV6ADDRESS:new RegExp("^\\[?("+D+")"+n(n("\\%25|\\%(?!"+t+"{2})")+"("+w+")")+"?\\]?$")}}function s(e){throw new RangeError(q[e])}function f(e,r){for(var n=[],t=e.length;t--;)n[t]=r(e[t]);return n}function c(e,r){var n=e.split("@"),t="";return n.length>1&&(t=n[0]+"@",e=n[1]),e=e.replace(j,"."),t+f(e.split("."),r).join(".")}function p(e){for(var r=[],n=0,t=e.length;n<t;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<t){var a=e.charCodeAt(n++);56320==(64512&a)?r.push(((1023&o)<<10)+(1023&a)+65536):(r.push(o),n--)}else r.push(o)}return r}function h(e){var r=e.charCodeAt(0);return r<16?"%0"+r.toString(16).toUpperCase():r<128?"%"+r.toString(16).toUpperCase():r<2048?"%"+(r>>6|192).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase():"%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(63&r|128).toString(16).toUpperCase()}function d(e){for(var r="",n=0,t=e.length;n<t;){var o=parseInt(e.substr(n+1,2),16);if(o<128)r+=String.fromCharCode(o),n+=3;else if(o>=194&&o<224){if(t-n>=6){var a=parseInt(e.substr(n+4,2),16);r+=String.fromCharCode((31&o)<<6|63&a)}else r+=e.substr(n,6);n+=6}else if(o>=224){if(t-n>=9){var i=parseInt(e.substr(n+4,2),16),u=parseInt(e.substr(n+7,2),16);r+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&u)}else r+=e.substr(n,9);n+=9}else r+=e.substr(n,3),n+=3}return r}function l(e,r){function n(e){var n=d(e);return n.match(r.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(r.PCT_ENCODED,n).toLowerCase().replace(r.NOT_SCHEME,"")),e.userinfo!==undefined&&(e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,n).replace(r.NOT_USERINFO,h).replace(r.PCT_ENCODED,o)),e.host!==undefined&&(e.host=String(e.host).replace(r.PCT_ENCODED,n).toLowerCase().replace(r.NOT_HOST,h).replace(r.PCT_ENCODED,o)),e.path!==undefined&&(e.path=String(e.path).replace(r.PCT_ENCODED,n).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,h).replace(r.PCT_ENCODED,o)),e.query!==undefined&&(e.query=String(e.query).replace(r.PCT_ENCODED,n).replace(r.NOT_QUERY,h).replace(r.PCT_ENCODED,o)),e.fragment!==undefined&&(e.fragment=String(e.fragment).replace(r.PCT_ENCODED,n).replace(r.NOT_FRAGMENT,h).replace(r.PCT_ENCODED,o)),e}function g(e){return e.replace(/^0*(.*)/,"$1")||"0"}function v(e,r){var n=e.match(r.IPV4ADDRESS)||[],t=R(n,2),o=t[1];return o?o.split(".").map(g).join("."):e}function m(e,r){var n=e.match(r.IPV6ADDRESS)||[],t=R(n,3),o=t[1],a=t[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),u=R(i,2),s=u[0],f=u[1],c=f?f.split(":").map(g):[],p=s.split(":").map(g),h=r.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,l=p.length-d,m=Array(d),E=0;E<d;++E)m[E]=c[E]||p[l+E]||"";h&&(m[d-1]=v(m[d-1],r));var C=m.reduce(function(e,r,n){if(!r||"0"===r){var t=e[e.length-1];t&&t.index+t.length===n?t.length++:e.push({index:n,length:1})}return e},[]),y=C.sort(function(e,r){return r.length-e.length})[0],S=void 0;if(y&&y.length>1){var A=m.slice(0,y.index),D=m.slice(y.index+y.length);S=A.join(":")+"::"+D.join(":")}else S=m.join(":");return a&&(S+="%"+a),S}return e}function E(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n={},t=!1!==r.iri?N:F;"suffix"===r.reference&&(e=(r.scheme?r.scheme+":":"")+"//"+e);var o=e.match(J);if(o){K?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||undefined,n.userinfo=-1!==e.indexOf("@")?o[3]:undefined,n.host=-1!==e.indexOf("//")?o[4]:undefined,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:undefined,n.fragment=-1!==e.indexOf("#")?o[8]:undefined,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined)),n.host&&(n.host=m(v(n.host,t),t)),n.scheme!==undefined||n.userinfo!==undefined||n.host!==undefined||n.port!==undefined||n.path||n.query!==undefined?n.scheme===undefined?n.reference="relative":n.fragment===undefined?n.reference="absolute":n.reference="uri":n.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");var a=B[(r.scheme||n.scheme||"").toLowerCase()];if(r.unicodeSupport||a&&a.unicodeSupport)l(n,t);else{if(n.host&&(r.domainHost||a&&a.domainHost))try{n.host=Y.toASCII(n.host.replace(t.PCT_ENCODED,d).toLowerCase())}catch(i){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+i}l(n,F)}a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}function C(e,r){var n=!1!==r.iri?N:F,t=[];return e.userinfo!==undefined&&(t.push(e.userinfo),t.push("@")),e.host!==undefined&&t.push(m(v(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,r,n){return"["+r+(n?"%25"+n:"")+"]"})),"number"==typeof e.port&&(t.push(":"),t.push(e.port.toString(10))),t.length?t.join(""):undefined}function y(e){for(var r=[];e.length;)if(e.match(W))e=e.replace(W,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(ee))e=e.replace(ee,"/"),r.pop();else if("."===e||".."===e)e="";else{var n=e.match(re);if(!n)throw new Error("Unexpected dot segment condition");var t=n[0];e=e.slice(t.length),r.push(t)}return r.join("")}function S(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=r.iri?N:F,t=[],o=B[(r.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,r),e.host)if(n.IPV6ADDRESS.test(e.host));else if(r.domainHost||o&&o.domainHost)try{e.host=r.iri?Y.toUnicode(e.host):Y.toASCII(e.host.replace(n.PCT_ENCODED,d).toLowerCase())}catch(u){e.error=e.error||"Host's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+u}l(e,n),"suffix"!==r.reference&&e.scheme&&(t.push(e.scheme),t.push(":"));var a=C(e,r);if(a!==undefined&&("suffix"!==r.reference&&t.push("//"),t.push(a),e.path&&"/"!==e.path.charAt(0)&&t.push("/")),e.path!==undefined){var i=e.path;r.absolutePath||o&&o.absolutePath||(i=y(i)),a===undefined&&(i=i.replace(/^\/\//,"/%2F")),t.push(i)}return e.query!==undefined&&(t.push("?"),t.push(e.query)),e.fragment!==undefined&&(t.push("#"),t.push(e.fragment)),t.join("")}function A(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},t=arguments[3],o={};return t||(e=E(S(e,n),n),r=E(S(r,n),n)),n=n||{},!n.tolerant&&r.scheme?(o.scheme=r.scheme,o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=y(r.path||""),o.query=r.query):(r.userinfo!==undefined||r.host!==undefined||r.port!==undefined?(o.userinfo=r.userinfo,o.host=r.host,o.port=r.port,o.path=y(r.path||""),o.query=r.query):(r.path?("/"===r.path.charAt(0)?o.path=y(r.path):(e.userinfo===undefined&&e.host===undefined&&e.port===undefined||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path:o.path=r.path:o.path="/"+r.path,o.path=y(o.path)),o.query=r.query):(o.path=e.path,r.query!==undefined?o.query=r.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=r.fragment,o}function D(e,r,n){var t=i({scheme:"null"},n);return S(A(E(e,t),E(r,t),t,!0),t)}function w(e,r){return"string"==typeof e?e=S(E(e,r),r):"object"===t(e)&&(e=E(S(e,r),r)),e}function b(e,r,n){return"string"==typeof e?e=S(E(e,n),n):"object"===t(e)&&(e=S(e,n)),"string"==typeof r?r=S(E(r,n),n):"object"===t(r)&&(r=S(r,n)),e===r}function x(e,r){return e&&e.toString().replace(r&&r.iri?N.ESCAPE:F.ESCAPE,h)}function O(e,r){return e&&e.toString().replace(r&&r.iri?N.PCT_ENCODED:F.PCT_ENCODED,d)}function I(e){var r=d(e);return r.match(fe)?r:e}var F=u(!1),N=u(!0),R=function(){function e(e,r){var n=[],t=!0,o=!1,a=undefined;try{for(var i,u=e[Symbol.iterator]();!(t=(i=u.next()).done)&&(n.push(i.value),!r||n.length!==r);t=!0);}catch(s){o=!0,a=s}finally{try{!t&&u["return"]&&u["return"]()}finally{if(o)throw a}}return n}return function(r,n){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(e){if(Array.isArray(e)){for(var r=0,n=Array(e.length);r<e.length;r++)n[r]=e[r];return n}return Array.from(e)},_=2147483647,P=/^xn--/,U=/[^\0-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,q={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=Math.floor,z=String.fromCharCode,L=function(e){return String.fromCodePoint.apply(String,T(e))},$=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36},M=function(e,r){return e+22+75*(e<26)-((0!=r)<<5)},V=function(e,r,n){var t=0;for(e=n?H(e/700):e>>1,e+=H(e/r);e>455;t+=36)e=H(e/35);return H(t+36*e/(e+38))},k=function(e){var r=[],n=e.length,t=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(var u=0;u<i;++u)e.charCodeAt(u)>=128&&s("not-basic"),r.push(e.charCodeAt(u));for(var f=i>0?i+1:0;f<n;){for(var c=t,p=1,h=36;;h+=36){f>=n&&s("invalid-input");var d=$(e.charCodeAt(f++));(d>=36||d>H((_-t)/p))&&s("overflow"),t+=d*p;var l=h<=a?1:h>=a+26?26:h-a;if(d<l)break;var g=36-l;p>H(_/g)&&s("overflow"),p*=g}var v=r.length+1;a=V(t-c,v,0==c),H(t/v)>_-o&&s("overflow"),o+=H(t/v),t%=v,r.splice(t++,0,o)}return String.fromCodePoint.apply(String,r)},Z=function(e){var r=[];e=p(e);var n=e.length,t=128,o=0,a=72,i=!0,u=!1,f=undefined;try{for(var c,h=e[Symbol.iterator]();!(i=(c=h.next()).done);i=!0){var d=c.value;d<128&&r.push(z(d))}}catch(j){u=!0,f=j}finally{try{!i&&h["return"]&&h["return"]()}finally{if(u)throw f}}var l=r.length,g=l;for(l&&r.push("-");g<n;){var v=_,m=!0,E=!1,C=undefined;try{for(var y,S=e[Symbol.iterator]();!(m=(y=S.next()).done);m=!0){var A=y.value;A>=t&&A<v&&(v=A)}}catch(j){E=!0,C=j}finally{try{!m&&S["return"]&&S["return"]()}finally{if(E)throw C}}var D=g+1;v-t>H((_-o)/D)&&s("overflow"),o+=(v-t)*D,t=v;var w=!0,b=!1,x=undefined;try{for(var O,I=e[Symbol.iterator]();!(w=(O=I.next()).done);w=!0){var F=O.value;if(F<t&&++o>_&&s("overflow"),F==t){for(var N=o,R=36;;R+=36){var T=R<=a?1:R>=a+26?26:R-a;if(N<T)break;var P=N-T,U=36-T;r.push(z(M(T+P%U,0))),N=H(P/U)}r.push(z(M(N,0))),a=V(o,D,g==l),o=0,++g}}}catch(j){b=!0,x=j}finally{try{!w&&I["return"]&&I["return"]()}finally{if(b)throw x}}++o,++t}return r.join("")},G=function(e){return c(e,function(e){return P.test(e)?k(e.slice(4).toLowerCase()):e})},Q=function(e){return c(e,function(e){return U.test(e)?"xn--"+Z(e):e})},Y={version:"2.1.0",ucs2:{decode:p,encode:L},decode:k,encode:Z,toASCII:Q,toUnicode:G},B={},J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K="".match(/(){0}/)[1]===undefined,W=/^\.\.?\//,X=/^\/\.(\/|$)/,ee=/^\/\.\.(\/|$)/,re=/^\/?(?:.|\n)*?(?=\/|$)/,ne={scheme:"http",domainHost:!0,parse:function(e,r){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,r){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=undefined),e.path||(e.path="/"),e}},te={scheme:"https",domainHost:ne.domainHost,parse:ne.parse,serialize:ne.serialize},oe={},ae="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ie="[0-9A-Fa-f]",ue=n(n("%[EFef][0-9A-Fa-f]%"+ie+ie+"%"+ie+ie)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+ie+ie)+"|"+n("%"+ie+ie)),se=r("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),fe=new RegExp(ae,"g"),ce=new RegExp(ue,"g"),pe=new RegExp(r("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',se),"g"),he=new RegExp(r("[^]",ae,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),de=he,le={scheme:"mailto",parse:function(e,r){var n=e,t=n.to=n.path?n.path.split(","):[];if(n.path=undefined,n.query){for(var o=!1,a={},i=n.query.split("&"),u=0,s=i.length;u<s;++u){var f=i[u].split("=");switch(f[0]){case"to":for(var c=f[1].split(","),p=0,h=c.length;p<h;++p)t.push(c[p]);break;case"subject":n.subject=O(f[1],r);break;case"body":n.body=O(f[1],r);break;default:o=!0,a[O(f[0],r)]=O(f[1],r)}}o&&(n.headers=a)}n.query=undefined;for(var d=0,l=t.length;d<l;++d){var g=t[d].split("@");if(g[0]=O(g[0]),r.unicodeSupport)g[1]=O(g[1],r).toLowerCase();else try{g[1]=Y.toASCII(O(g[1],r).toLowerCase())}catch(v){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+v}t[d]=g.join("@")}return n},serialize:function(e,r){var n=e,t=a(e.to);if(t){for(var i=0,u=t.length;i<u;++i){var s=String(t[i]),f=s.lastIndexOf("@"),c=s.slice(0,f).replace(ce,I).replace(ce,o).replace(pe,h),p=s.slice(f+1);try{p=r.iri?Y.toUnicode(p):Y.toASCII(O(p,r).toLowerCase())}catch(v){n.error=n.error||"Email address's domain name can not be converted to "+(r.iri?"Unicode":"ASCII")+" via punycode: "+v}t[i]=c+"@"+p}n.path=t.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var l=[];for(var g in d)d[g]!==oe[g]&&l.push(g.replace(ce,I).replace(ce,o).replace(he,h)+"="+d[g].replace(ce,I).replace(ce,o).replace(de,h));return l.length&&(n.query=l.join("&")),n}},ge=/^([^\:]+)\:(.*)/,ve={scheme:"urn",parse:function(e,r){var n=e.path&&e.path.match(ge),t=e;if(n){var o=r.scheme||t.scheme||"urn",a=n[1].toLowerCase(),i=n[2],u=o+":"+(r.nid||a),s=B[u];t.nid=a,t.nss=i,t.path=undefined,s&&(t=s.parse(t,r))}else t.error=t.error||"URN can not be parsed.";return t},serialize:function(e,r){var n=r.scheme||e.scheme||"urn",t=e.nid,o=n+":"+(r.nid||t),a=B[o];a&&(e=a.serialize(e,r));var i=e,u=e.nss;return i.path=(t||r.nid)+":"+u,i}},me=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ee={scheme:"urn:uuid",parse:function(e,r){var n=e;return n.uuid=n.nss,n.nss=undefined,r.tolerant||n.uuid&&n.uuid.match(me)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,r){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};B[ne.scheme]=ne,B[te.scheme]=te,B[le.scheme]=le,B[ve.scheme]=ve,B[Ee.scheme]=Ee,e.SCHEMES=B,e.pctEncChar=h,e.pctDecChars=d,e.parse=E,e.removeDotSegments=y,e.serialize=S,e.resolveComponents=A,e.resolve=D,e.normalize=w,e.equal=b,e.escapeComponent=x,e.unescapeComponent=O,Object.defineProperty(e,"__esModule",{value:!0})});
-//# sourceMappingURL=uri.all.min.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/es5/uri.all.min.js.map b/node_modules/uri-js/dist/es5/uri.all.min.js.map
deleted file mode 100644
index 57c92d1..0000000
--- a/node_modules/uri-js/dist/es5/uri.all.min.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["../../src/util.ts","../../src/regexps-uri.ts","../../node_modules/punycode/punycode.es6.js","../../src/uri.ts","../../src/schemes/mailto.ts","../../src/regexps-iri.ts","../../src/schemes/http.ts","../../src/schemes/https.ts","../../src/schemes/urn.ts","../../src/schemes/urn-uuid.ts","../../src/index.ts"],"names":["merge","sets","Array","_len","_key","arguments","length","slice","xl","x","join","subexp","str","typeOf","o","undefined","Object","prototype","toString","call","split","pop","shift","toLowerCase","toUpperCase","toArray","obj","setInterval","assign","target","source","key","buildExps","isIRI","HEXDIG$$","PCT_ENCODED$","SUB_DELIMS$$","RESERVED$$","UCSCHAR$$","DEC_OCTET_RELAXED$","H16$","LS32$","IPV4ADDRESS$","IPV6ADDRESS1$","IPV6ADDRESS2$","IPV6ADDRESS3$","IPV6ADDRESS4$","IPV6ADDRESS5$","IPV6ADDRESS6$","IPV6ADDRESS7$","IPV6ADDRESS8$","IPV6ADDRESS9$","ZONEID$","UNRESERVED$$","RegExp","IPRIVATE$$","IPV6ADDRESS$","error","type","RangeError","errors","map","array","fn","result","mapDomain","string","parts","replace","regexSeparators","ucs2decode","output","counter","value","charCodeAt","extra","push","pctEncChar","chr","c","pctDecChars","newStr","i","il","parseInt","substr","String","fromCharCode","c2","c3","_normalizeComponentEncoding","components","protocol","decodeUnreserved","decStr","match","UNRESERVED","scheme","PCT_ENCODED","NOT_SCHEME","userinfo","NOT_USERINFO","host","NOT_HOST","path","NOT_PATH","NOT_PATH_NOSCHEME","query","NOT_QUERY","fragment","NOT_FRAGMENT","_stripLeadingZeros","_normalizeIPv4","matches","IPV4ADDRESS","address","_matches","_normalizeIPv6","IPV6ADDRESS","_matches2","zone","reverse","last","_address$toLowerCase$2","first","firstFields","lastFields","isLastFieldIPv4Address","test","fieldCount","lastFieldsStart","fields","allZeroFields","reduce","acc","field","index","lastLongest","longestZeroFields","sort","a","b","newHost","newFirst","newLast","parse","uriString","options","iri","IRI_PROTOCOL","URI_PROTOCOL","reference","URI_PARSE","NO_MATCH_IS_UNDEFINED","port","isNaN","indexOf","schemeHandler","SCHEMES","unicodeSupport","domainHost","punycode","toASCII","e","_recomposeAuthority","uriTokens","_","$1","$2","removeDotSegments","input","RDS1","RDS2","RDS3","im","RDS5","Error","s","serialize","toUnicode","authority","charAt","absolutePath","resolveComponents","base","relative","skipNormalization","tolerant","lastIndexOf","resolve","baseURI","relativeURI","schemelessOptions","normalize","uri","equal","uriA","uriB","escapeComponent","ESCAPE","unescapeComponent","maxInt","regexPunycode","regexNonASCII","floor","Math","stringFromCharCode","ucs2encode","fromCodePoint","apply","toConsumableArray","basicToDigit","codePoint","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","baseMinusTMin","decode","inputLength","n","bias","basic","j","oldi","w","t","baseMinusT","out","splice","encode","_step","Symbol","iterator","_iteratorNormalCompletion","_iterator","next","done","currentValue","basicLength","handledCPCount","m","_step2","_iteratorNormalCompletion2","_iterator2","handledCPCountPlusOne","_step3","_iteratorNormalCompletion3","_iterator3","q","qMinusT","handler","http","O","VCHAR$$","NOT_LOCAL_PART","NOT_HFNAME","NOT_HFVALUE","mailtoComponents","to","unknownHeaders","headers","hfields","hfield","toAddrs","subject","body","addr","toAddr","atIdx","localPart","domain","name","URN_PARSE","urnComponents","nid","nss","urnScheme","uriComponents","UUID","uuidComponents","uuid","https","mailto","urn"],"mappings":";4LAAA,SAAAA,gCAAyBC,EAAzBC,MAAAC,GAAAC,EAAA,EAAAA,EAAAD,EAAAC,MAAAA,GAAAC,UAAAD,MACKH,EAAKK,OAAS,EAAG,GACf,GAAKL,EAAK,GAAGM,MAAM,GAAI,OAEvB,GADCC,GAAKP,EAAKK,OAAS,EAChBG,EAAI,EAAGA,EAAID,IAAMC,IACpBA,GAAKR,EAAKQ,GAAGF,MAAM,GAAI,YAExBC,GAAMP,EAAKO,GAAID,MAAM,GACnBN,EAAKS,KAAK,UAEVT,GAAK,GAId,QAAAU,GAAuBC,SACf,MAAQA,EAAM,IAGtB,QAAAC,GAAuBC,SACfA,KAAMC,UAAY,YAAqB,OAAND,EAAa,OAASE,OAAOC,UAAUC,SAASC,KAAKL,GAAGM,MAAM,KAAKC,MAAMD,MAAM,KAAKE,QAAQC,cAGrI,QAAAC,GAA4BZ,SACpBA,GAAIY,cAGZ,QAAAC,GAAwBC,SAChBA,KAAQX,WAAqB,OAARW,EAAgBA,YAAexB,OAAQwB,EAA6B,gBAAfA,GAAIpB,QAAuBoB,EAAIN,OAASM,EAAIC,aAAeD,EAAIP,MAAQO,GAAOxB,MAAMe,UAAUV,MAAMY,KAAKO,MAI3L,QAAAE,GAAuBC,EAAgBC,MAChCJ,GAAMG,KACRC,MACE,GAAMC,KAAOD,KACbC,GAAOD,EAAOC,SAGbL,GCnCR,QAAAM,GAA0BC,MAMxBC,GAAWlC,EAFD,QAEgB,YAG1BmC,EAAexB,EAAOA,EAAO,UAAYuB,EAAW,IAAMA,EAAWA,EAAW,IAAMA,EAAWA,GAAY,IAAMvB,EAAO,cAAgBuB,EAAW,IAAMA,EAAWA,GAAY,IAAMvB,EAAO,IAAMuB,EAAWA,IAEhNE,EAAe,sCACfC,EAAarC,EAFE,0BAEkBoC,GACjCE,EAAYL,EAAQ,8EAAgF,OACvFA,EAAQ,oBAAsB,OAC5BjC,EAbL,WAEA,QAW6B,iBAAkBsC,GAIzDC,EAAqB5B,EAAOA,EAAO,WAAa,IAAMA,EAAO,eAAsB,IAAMA,EAAO,eAA2B,IAAMA,EAAO,gBAAuB,gBAChJA,EAAO4B,EAAqB,MAAQA,EAAqB,MAAQA,EAAqB,MAAQA,GAC7GC,EAAO7B,EAAOuB,EAAW,SACzBO,EAAQ9B,EAAOA,EAAO6B,EAAO,MAAQA,GAAQ,IAAME,GACnDC,EAAgBhC,EAAmEA,EAAO6B,EAAO,OAAS,MAAQC,KAClG9B,EAAwD,SAAWA,EAAO6B,EAAO,OAAS,MAAQC,KAClG9B,EAAOA,EAAwC6B,GAAQ,UAAY7B,EAAO6B,EAAO,OAAS,MAAQC,KAClG9B,EAAOA,EAAOA,EAAO6B,EAAO,OAAS,QAAUA,GAAQ,UAAY7B,EAAO6B,EAAO,OAAS,MAAQC,KAClG9B,EAAOA,EAAOA,EAAO6B,EAAO,OAAS,QAAUA,GAAQ,UAAY7B,EAAO6B,EAAO,OAAS,MAAQC,KAClG9B,EAAOA,EAAOA,EAAO6B,EAAO,OAAS,QAAUA,GAAQ,UAAmBA,EAAO,MAAiBC,KAClG9B,EAAOA,EAAOA,EAAO6B,EAAO,OAAS,QAAUA,GAAQ,UAA2CC,KAClG9B,EAAOA,EAAOA,EAAO6B,EAAO,OAAS,QAAUA,GAAQ,UAA2CA,KAClG7B,EAAOA,EAAOA,EAAO6B,EAAO,OAAS,QAAUA,GAAQ,aACxD7B,GAAQgC,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,EAAeC,GAAezC,KAAK,MACnK0C,EAAUzC,EAAOA,EAAO0C,EAAe,IAAMlB,GAAgB,uBAoChD,GAAImB,QAAOtD,EAAM,MAnEpB,WAEA,QAiE6C,eAAgB,kBACxD,GAAIsD,QAAOtD,EAAM,YAAaqD,EAAcjB,GAAe,cAC/D,GAAIkB,QAAOtD,EAAM,kBAAmBqD,EAAcjB,GAAe,cACjE,GAAIkB,QAAOtD,EAAM,kBAAmBqD,EAAcjB,GAAe,uBACxD,GAAIkB,QAAOtD,EAAM,eAAgBqD,EAAcjB,GAAe,eACtE,GAAIkB,QAAOtD,EAAM,SAAUqD,EAAcjB,EAAc,iBAAkBmB,GAAa,kBACnF,GAAID,QAAOtD,EAAM,SAAUqD,EAAcjB,EAAc,kBAAmB,YAChF,GAAIkB,QAAOtD,EAAM,MAAOqD,EAAcjB,GAAe,gBACjD,GAAIkB,QAAOD,EAAc,iBACxB,GAAIC,QAAOtD,EAAM,SAAUqD,EAAchB,GAAa,iBACtD,GAAIiB,QAAOnB,EAAc,iBACzB,GAAImB,QAAO,KAAOZ,EAAe,kBACjC,GAAIY,QAAO,SAAWE,EAAe,IAAM7C,EAAOA,EAAO,eAAiBuB,EAAW,QAAU,IAAMkB,EAAU,KAAO,WC5CtI,QAASK,GAAMC,QACR,IAAIC,YAAWC,EAAOF,IAW7B,QAASG,GAAIC,EAAOC,UACbC,MACF1D,EAASwD,EAAMxD,OACZA,OACCA,GAAUyD,EAAGD,EAAMxD,UAEpB0D,GAaR,QAASC,GAAUC,EAAQH,MACpBI,GAAQD,EAAO9C,MAAM,KACvB4C,EAAS,SACTG,GAAM7D,OAAS,MAGT6D,EAAM,GAAK,MACXA,EAAM,MAGPD,EAAOE,QAAQC,EAAiB,KAGlCL,EADSH,EADDK,EAAO9C,MAAM,KACA2C,GAAIrD,KAAK,KAiBtC,QAAS4D,GAAWJ,UACbK,MACFC,EAAU,EACRlE,EAAS4D,EAAO5D,OACfkE,EAAUlE,GAAQ,IAClBmE,GAAQP,EAAOQ,WAAWF,QAC5BC,GAAS,OAAUA,GAAS,OAAUD,EAAUlE,EAAQ,IAErDqE,GAAQT,EAAOQ,WAAWF,IACR,SAAX,MAARG,KACGC,OAAe,KAARH,IAAkB,KAAe,KAARE,GAAiB,UAIjDC,KAAKH,eAING,KAAKH,SAGPF,GC/BR,QAAAM,GAA2BC,MACpBC,GAAID,EAAIJ,WAAW,SAGrBK,GAAI,GAAQ,KAAOA,EAAE7D,SAAS,IAAIM,cAC7BuD,EAAI,IAAS,IAAMA,EAAE7D,SAAS,IAAIM,cAClCuD,EAAI,KAAU,KAAQA,GAAK,EAAK,KAAK7D,SAAS,IAAIM,cAAgB,KAAY,GAAJuD,EAAU,KAAK7D,SAAS,IAAIM,cACtG,KAAQuD,GAAK,GAAM,KAAK7D,SAAS,IAAIM,cAAgB,KAASuD,GAAK,EAAK,GAAM,KAAK7D,SAAS,IAAIM,cAAgB,KAAY,GAAJuD,EAAU,KAAK7D,SAAS,IAAIM,cAK9J,QAAAwD,GAA4BpE,UACvBqE,GAAS,GACTC,EAAI,EACFC,EAAKvE,EAAIN,OAER4E,EAAIC,GAAI,IACRJ,GAAIK,SAASxE,EAAIyE,OAAOH,EAAI,EAAG,GAAI,OAErCH,EAAI,OACGO,OAAOC,aAAaR,MACzB,MAED,IAAIA,GAAK,KAAOA,EAAI,IAAK,IACxBI,EAAKD,GAAM,EAAG,IACZM,GAAKJ,SAASxE,EAAIyE,OAAOH,EAAI,EAAG,GAAI,OAChCI,OAAOC,cAAmB,GAAJR,IAAW,EAAW,GAALS,WAEvC5E,EAAIyE,OAAOH,EAAG,MAEpB,MAED,IAAIH,GAAK,IAAK,IACbI,EAAKD,GAAM,EAAG,IACZM,GAAKJ,SAASxE,EAAIyE,OAAOH,EAAI,EAAG,GAAI,IACpCO,EAAKL,SAASxE,EAAIyE,OAAOH,EAAI,EAAG,GAAI,OAChCI,OAAOC,cAAmB,GAAJR,IAAW,IAAa,GAALS,IAAY,EAAW,GAALC,WAE3D7E,EAAIyE,OAAOH,EAAG,MAEpB,UAGKtE,EAAIyE,OAAOH,EAAG,MACnB,QAIAD,GAGR,QAAAS,GAAqCC,EAA0BC,WAC/DC,GAA2BjF,MACnBkF,GAASd,EAAYpE,SAClBkF,GAAOC,MAAMH,EAASI,YAAoBF,EAANlF,QAG1C+E,GAAWM,SAAQN,EAAWM,OAASX,OAAOK,EAAWM,QAAQ7B,QAAQwB,EAASM,YAAaL,GAAkBtE,cAAc6C,QAAQwB,EAASO,WAAY,KAC5JR,EAAWS,WAAarF,YAAW4E,EAAWS,SAAWd,OAAOK,EAAWS,UAAUhC,QAAQwB,EAASM,YAAaL,GAAkBzB,QAAQwB,EAASS,aAAcxB,GAAYT,QAAQwB,EAASM,YAAa1E,IAC9MmE,EAAWW,OAASvF,YAAW4E,EAAWW,KAAOhB,OAAOK,EAAWW,MAAMlC,QAAQwB,EAASM,YAAaL,GAAkBtE,cAAc6C,QAAQwB,EAASW,SAAU1B,GAAYT,QAAQwB,EAASM,YAAa1E,IAC5MmE,EAAWa,OAASzF,YAAW4E,EAAWa,KAAOlB,OAAOK,EAAWa,MAAMpC,QAAQwB,EAASM,YAAaL,GAAkBzB,QAASuB,EAAWM,OAASL,EAASa,SAAWb,EAASc,kBAAoB7B,GAAYT,QAAQwB,EAASM,YAAa1E,IACjPmE,EAAWgB,QAAU5F,YAAW4E,EAAWgB,MAAQrB,OAAOK,EAAWgB,OAAOvC,QAAQwB,EAASM,YAAaL,GAAkBzB,QAAQwB,EAASgB,UAAW/B,GAAYT,QAAQwB,EAASM,YAAa1E,IAClMmE,EAAWkB,WAAa9F,YAAW4E,EAAWkB,SAAWvB,OAAOK,EAAWkB,UAAUzC,QAAQwB,EAASM,YAAaL,GAAkBzB,QAAQwB,EAASkB,aAAcjC,GAAYT,QAAQwB,EAASM,YAAa1E,IAE3MmE,EAGR,QAAAoB,GAA4BnG,SACpBA,GAAIwD,QAAQ,UAAW,OAAS,IAGxC,QAAA4C,GAAwBV,EAAaV,MAC9BqB,GAAUX,EAAKP,MAAMH,EAASsB,qBAChBD,EAFrB,GAEUE,EAFVC,EAAA,SAIKD,GACIA,EAAQ/F,MAAM,KAAKyC,IAAIkD,GAAoBrG,KAAK,KAEhD4F,EAIT,QAAAe,GAAwBf,EAAaV,MAC9BqB,GAAUX,EAAKP,MAAMH,EAAS0B,qBACVL,EAF3B,GAEUE,EAFVI,EAAA,GAEmBC,EAFnBD,EAAA,MAIKJ,EAAS,KASP,MARiBA,EAAQ5F,cAAcH,MAAM,MAAMqG,mBAAjDC,EADKC,EAAA,GACCC,EADDD,EAAA,GAENE,EAAcD,EAAQA,EAAMxG,MAAM,KAAKyC,IAAIkD,MAC3Ce,EAAaJ,EAAKtG,MAAM,KAAKyC,IAAIkD,GACjCgB,EAAyBnC,EAASsB,YAAYc,KAAKF,EAAWA,EAAWxH,OAAS,IAClF2H,EAAaF,EAAyB,EAAI,EAC1CG,EAAkBJ,EAAWxH,OAAS2H,EACtCE,EAASjI,MAAc+H,GAEpBxH,EAAI,EAAGA,EAAIwH,IAAcxH,IAC1BA,GAAKoH,EAAYpH,IAAMqH,EAAWI,EAAkBzH,IAAM,EAG9DsH,OACIE,EAAa,GAAKjB,EAAemB,EAAOF,EAAa,GAAIrC,OAG3DwC,GAAgBD,EAAOE,OAA4C,SAACC,EAAKC,EAAOC,OAChFD,GAAmB,MAAVA,EAAe,IACtBE,GAAcH,EAAIA,EAAIhI,OAAS,EACjCmI,IAAeA,EAAYD,MAAQC,EAAYnI,SAAWkI,IACjDlI,WAERsE,MAAO4D,MAAAA,EAAOlI,OAAS,UAGtBgI,QAGFI,EAAoBN,EAAcO,KAAK,SAACC,EAAGC,SAAMA,GAAEvI,OAASsI,EAAEtI,SAAQ,GAExEwI,MAAAA,MACAJ,GAAqBA,EAAkBpI,OAAS,EAAG,IAChDyI,GAAWZ,EAAO5H,MAAM,EAAGmI,EAAkBF,OAC7CQ,EAAUb,EAAO5H,MAAMmI,EAAkBF,MAAQE,EAAkBpI,UAC/DyI,EAASrI,KAAK,KAAO,KAAOsI,EAAQtI,KAAK,YAEzCyH,EAAOzH,KAAK,WAGnB8G,QACQ,IAAMA,GAGXsB,QAEAxC,GAOT,QAAA2C,GAAsBC,MAAkBC,GAAxC9I,UAAAC,OAAA,GAAAD,UAAA,KAAAU,UAAAV,UAAA,MACOsF,KACAC,GAA4B,IAAhBuD,EAAQC,IAAgBC,EAAeC,CAE/B,YAAtBH,EAAQI,YAAwBL,GAAaC,EAAQlD,OAASkD,EAAQlD,OAAS,IAAM,IAAM,KAAOiD,MAEhGjC,GAAUiC,EAAUnD,MAAMyD,MAE5BvC,EAAS,CACRwC,KAEQxD,OAASgB,EAAQ,KACjBb,SAAWa,EAAQ,KACnBX,KAAOW,EAAQ,KACfyC,KAAOtE,SAAS6B,EAAQ,GAAI,MAC5BT,KAAOS,EAAQ,IAAM,KACrBN,MAAQM,EAAQ,KAChBJ,SAAWI,EAAQ,GAG1B0C,MAAMhE,EAAW+D,UACTA,KAAOzC,EAAQ,QAIhBhB,OAASgB,EAAQ,IAAMlG,YACvBqF,UAAwC,IAA5B8C,EAAUU,QAAQ,KAAc3C,EAAQ,GAAKlG,YACzDuF,MAAqC,IAA7B4C,EAAUU,QAAQ,MAAe3C,EAAQ,GAAKlG,YACtD2I,KAAOtE,SAAS6B,EAAQ,GAAI,MAC5BT,KAAOS,EAAQ,IAAM,KACrBN,OAAqC,IAA5BuC,EAAUU,QAAQ,KAAc3C,EAAQ,GAAKlG,YACtD8F,UAAwC,IAA5BqC,EAAUU,QAAQ,KAAc3C,EAAQ,GAAKlG,UAGhE4I,MAAMhE,EAAW+D,UACTA,KAAQR,EAAUnD,MAAM,iCAAmCkB,EAAQ,GAAKlG,YAIjF4E,EAAWW,SAEHA,KAAOe,EAAeL,EAAerB,EAAWW,KAAMV,GAAWA,IAIzED,EAAWM,SAAWlF,WAAa4E,EAAWS,WAAarF,WAAa4E,EAAWW,OAASvF,WAAa4E,EAAW+D,OAAS3I,WAAc4E,EAAWa,MAAQb,EAAWgB,QAAU5F,UAE5K4E,EAAWM,SAAWlF,YACrBwI,UAAY,WACb5D,EAAWkB,WAAa9F,YACvBwI,UAAY,aAEZA,UAAY,QANZA,UAAY,gBAUpBJ,EAAQI,WAAmC,WAAtBJ,EAAQI,WAA0BJ,EAAQI,YAAc5D,EAAW4D,cAChF9F,MAAQkC,EAAWlC,OAAS,gBAAkB0F,EAAQI,UAAY,kBAIxEM,GAAgBC,GAASX,EAAQlD,QAAUN,EAAWM,QAAU,IAAI1E,kBAGrE4H,EAAQY,gBAAoBF,GAAkBA,EAAcE,iBAcpCpE,EAAYC,OAdyC,IAE7ED,EAAWW,OAAS6C,EAAQa,YAAeH,GAAiBA,EAAcG,kBAGjE1D,KAAO2D,EAASC,QAAQvE,EAAWW,KAAKlC,QAAQwB,EAASM,YAAalB,GAAazD,eAC7F,MAAO4I,KACG1G,MAAQkC,EAAWlC,OAAS,kEAAoE0G,IAIjFxE,EAAY2D,GAOrCO,GAAiBA,EAAcZ,SACpBA,MAAMtD,EAAYwD,UAGtB1F,MAAQkC,EAAWlC,OAAS,+BAGjCkC,GAGR,QAAAyE,GAA6BzE,EAA0BwD,MAChDvD,IAA4B,IAAhBuD,EAAQC,IAAgBC,EAAeC,EACnDe,WAEF1E,GAAWS,WAAarF,cACjB6D,KAAKe,EAAWS,YAChBxB,KAAK,MAGZe,EAAWW,OAASvF,aAEb6D,KAAKyC,EAAeL,EAAe1B,OAAOK,EAAWW,MAAOV,GAAWA,GAAUxB,QAAQwB,EAAS0B,YAAa,SAACgD,EAAGC,EAAIC,SAAO,IAAMD,GAAMC,EAAK,MAAQA,EAAK,IAAM,OAG9I,gBAApB7E,GAAW+D,SACX9E,KAAK,OACLA,KAAKe,EAAW+D,KAAKxI,SAAS,MAGlCmJ,EAAU/J,OAAS+J,EAAU3J,KAAK,IAAMK,UAShD,QAAA0J,GAAkCC,UAC3BnG,MAECmG,EAAMpK,WACRoK,EAAM3E,MAAM4E,KACPD,EAAMtG,QAAQuG,EAAM,QACtB,IAAID,EAAM3E,MAAM6E,KACdF,EAAMtG,QAAQwG,EAAM,SACtB,IAAIF,EAAM3E,MAAM8E,MACdH,EAAMtG,QAAQyG,GAAM,OACrBxJ,UACD,IAAc,MAAVqJ,GAA2B,OAAVA,IACnB,OACF,IACAI,GAAKJ,EAAM3E,MAAMgF,QACnBD,OAKG,IAAIE,OAAM,uCAJVC,GAAIH,EAAG,KACLJ,EAAMnK,MAAM0K,EAAE3K,UACfsE,KAAKqG,SAOR1G,GAAO7D,KAAK,IAGpB,QAAAwK,GAA0BvF,MAA0BwD,GAApD9I,UAAAC,OAAA,GAAAD,UAAA,KAAAU,UAAAV,UAAA,MACOuF,EAAYuD,EAAQC,IAAMC,EAAeC,EACzCe,KAGAR,EAAgBC,GAASX,EAAQlD,QAAUN,EAAWM,QAAU,IAAI1E,kBAGtEsI,GAAiBA,EAAcqB,WAAWrB,EAAcqB,UAAUvF,EAAYwD,GAE9ExD,EAAWW,QAEVV,EAAS0B,YAAYU,KAAKrC,EAAWW,WAKpC,IAAI6C,EAAQa,YAAeH,GAAiBA,EAAcG,iBAGlD1D,KAAS6C,EAAQC,IAAmGa,EAASkB,UAAUxF,EAAWW,MAA3H2D,EAASC,QAAQvE,EAAWW,KAAKlC,QAAQwB,EAASM,YAAalB,GAAazD,eAC7G,MAAO4I,KACG1G,MAAQkC,EAAWlC,OAAS,+CAAkD0F,EAAQC,IAAgB,UAAV,SAAuB,kBAAoBe,IAMzHxE,EAAYC,GAEd,WAAtBuD,EAAQI,WAA0B5D,EAAWM,WACtCrB,KAAKe,EAAWM,UAChBrB,KAAK,SAGVwG,GAAYhB,EAAoBzE,EAAYwD,MAC9CiC,IAAcrK,YACS,WAAtBoI,EAAQI,aACD3E,KAAK,QAGNA,KAAKwG,GAEXzF,EAAWa,MAAsC,MAA9Bb,EAAWa,KAAK6E,OAAO,MACnCzG,KAAK,MAIbe,EAAWa,OAASzF,UAAW,IAC9BkK,GAAItF,EAAWa,IAEd2C,GAAQmC,cAAkBzB,GAAkBA,EAAcyB,iBAC1Db,EAAkBQ,IAGnBG,IAAcrK,cACbkK,EAAE7G,QAAQ,QAAS,WAGdQ,KAAKqG,SAGZtF,GAAWgB,QAAU5F,cACd6D,KAAK,OACLA,KAAKe,EAAWgB,QAGvBhB,EAAWkB,WAAa9F,cACjB6D,KAAK,OACLA,KAAKe,EAAWkB,WAGpBwD,EAAU3J,KAAK,IAGvB,QAAA6K,GAAkCC,EAAoBC,MAAwBtC,GAA9E9I,UAAAC,OAAA,GAAAD,UAAA,KAAAU,UAAAV,UAAA,MAAuGqL,EAAvGrL,UAAA,GACOwB,WAED6J,OACGzC,EAAMiC,EAAUM,EAAMrC,GAAUA,KAC5BF,EAAMiC,EAAUO,EAAUtC,GAAUA,MAEtCA,OAELA,EAAQwC,UAAYF,EAASxF,UAC1BA,OAASwF,EAASxF,SAElBG,SAAWqF,EAASrF,WACpBE,KAAOmF,EAASnF,OAChBoD,KAAO+B,EAAS/B,OAChBlD,KAAOiE,EAAkBgB,EAASjF,MAAQ,MAC1CG,MAAQ8E,EAAS9E,QAEpB8E,EAASrF,WAAarF,WAAa0K,EAASnF,OAASvF,WAAa0K,EAAS/B,OAAS3I,aAEhFqF,SAAWqF,EAASrF,WACpBE,KAAOmF,EAASnF,OAChBoD,KAAO+B,EAAS/B,OAChBlD,KAAOiE,EAAkBgB,EAASjF,MAAQ,MAC1CG,MAAQ8E,EAAS9E,QAEnB8E,EAASjF,MAQmB,MAA5BiF,EAASjF,KAAK6E,OAAO,KACjB7E,KAAOiE,EAAkBgB,EAASjF,OAEpCgF,EAAKpF,WAAarF,WAAayK,EAAKlF,OAASvF,WAAayK,EAAK9B,OAAS3I,WAAeyK,EAAKhF,KAErFgF,EAAKhF,OAGTA,KAAOgF,EAAKhF,KAAKjG,MAAM,EAAGiL,EAAKhF,KAAKoF,YAAY,KAAO,GAAKH,EAASjF,OAFrEA,KAAOiF,EAASjF,OAFhBA,KAAO,IAAMiF,EAASjF,OAMvBA,KAAOiE,EAAkB5I,EAAO2E,SAEjCG,MAAQ8E,EAAS9E,UAnBjBH,KAAOgF,EAAKhF,KACfiF,EAAS9E,QAAU5F,YACf4F,MAAQ8E,EAAS9E,QAEjBA,MAAQ6E,EAAK7E,SAkBfP,SAAWoF,EAAKpF,WAChBE,KAAOkF,EAAKlF,OACZoD,KAAO8B,EAAK9B,QAEbzD,OAASuF,EAAKvF,UAGfY,SAAW4E,EAAS5E,SAEpBhF,EAGR,QAAAgK,GAAwBC,EAAgBC,EAAoB5C,MACrD6C,GAAoBpK,GAASqE,OAAS,QAAUkD,SAC/C+B,GAAUK,EAAkBtC,EAAM6C,EAASE,GAAoB/C,EAAM8C,EAAaC,GAAoBA,GAAmB,GAAOA,GAKxI,QAAAC,GAA0BC,EAAS/C,SACf,gBAAR+C,KACJhB,EAAUjC,EAAMiD,EAAK/C,GAAUA,GACX,WAAhBtI,EAAOqL,OACXjD,EAAMiC,EAAyBgB,EAAK/C,GAAUA,IAG9C+C,EAKR,QAAAC,GAAsBC,EAAUC,EAAUlD,SACrB,gBAATiD,KACHlB,EAAUjC,EAAMmD,EAAMjD,GAAUA,GACZ,WAAjBtI,EAAOuL,OACVlB,EAAyBkB,EAAMjD,IAGnB,gBAATkD,KACHnB,EAAUjC,EAAMoD,EAAMlD,GAAUA,GACZ,WAAjBtI,EAAOwL,OACVnB,EAAyBmB,EAAMlD,IAGhCiD,IAASC,EAGjB,QAAAC,GAAgC1L,EAAYuI,SACpCvI,IAAOA,EAAIM,WAAWkD,QAAU+E,GAAYA,EAAQC,IAA4BC,EAAakD,OAAnCjD,EAAaiD,OAA+B1H,GAG9G,QAAA2H,GAAkC5L,EAAYuI,SACtCvI,IAAOA,EAAIM,WAAWkD,QAAU+E,GAAYA,EAAQC,IAAiCC,EAAanD,YAAxCoD,EAAapD,YAAyClB,GC1exH,QAGAa,GAA0BjF,MACnBkF,GAASd,EAAYpE,SAClBkF,GAAOC,MAAMC,IAAoBF,EAANlF,EHmBrC,GAAA0I,GAAetH,GAAU,GIrFzBqH,EAAerH,GAAU,2iBHAnByK,EAAS,WAaTC,EAAgB,QAChBC,EAAgB,aAChBtI,EAAkB,4BAGlBT,YACO,8DACC,iEACI,iBAKZgJ,EAAQC,KAAKD,MACbE,EAAqBxH,OAAOC,aAsG5BwH,EAAa,SAAAjJ,SAASwB,QAAO0H,cAAPC,MAAA3H,OAAA4H,EAAwBpJ,KAW9CqJ,EAAe,SAASC,SACzBA,GAAY,GAAO,GACfA,EAAY,GAEhBA,EAAY,GAAO,GACfA,EAAY,GAEhBA,EAAY,GAAO,GACfA,EAAY,GAjJR,IAiKPC,EAAe,SAASC,EAAOC,SAG7BD,GAAQ,GAAK,IAAMA,EAAQ,MAAgB,GAARC,IAAc,IAQnDC,EAAQ,SAASC,EAAOC,EAAWC,MACpCC,GAAI,QACAD,EAAYf,EAAMa,EA1Kd,KA0K8BA,GAAS,KAC1Cb,EAAMa,EAAQC,GACOD,EAAQI,IAA2BD,GAhLrD,KAiLHhB,EAAMa,EA3JMjC,UA6JdoB,GAAMgB,EAAI,GAAsBH,GAASA,EAhLpC,MA0LPK,EAAS,SAASpD,MAEjBnG,MACAwJ,EAAcrD,EAAMpK,OACtB4E,EAAI,EACJ8I,EA5LY,IA6LZC,EA9Le,GAoMfC,EAAQxD,EAAMkB,YAlMD,IAmMbsC,GAAQ,MACH,OAGJ,GAAIC,GAAI,EAAGA,EAAID,IAASC,EAExBzD,EAAMhG,WAAWyJ,IAAM,OACpB,eAEAvJ,KAAK8F,EAAMhG,WAAWyJ,QAMzB,GAAI3F,GAAQ0F,EAAQ,EAAIA,EAAQ,EAAI,EAAG1F,EAAQuF,GAAwC,KAQtF,GADDK,GAAOlJ,EACFmJ,EAAI,EAAGT,EAjOL,IAiOmCA,GAjOnC,GAiO8C,CAEpDpF,GAASuF,KACN,oBAGDT,GAAQH,EAAazC,EAAMhG,WAAW8D,OAExC8E,GAzOM,IAyOWA,EAAQV,GAAOH,EAASvH,GAAKmJ,OAC3C,eAGFf,EAAQe,KACPC,GAAIV,GAAKK,EA7OL,EA6OoBL,GAAKK,EA5OzB,GAAA,GA4O8CL,EAAIK,KAExDX,EAAQgB,WAINC,GApPI,GAoPgBD,CACtBD,GAAIzB,EAAMH,EAAS8B,MAChB,eAGFA,KAIAC,GAAMjK,EAAOjE,OAAS,IACrBkN,EAAMtI,EAAIkJ,EAAMI,EAAa,GAARJ,GAIxBxB,EAAM1H,EAAIsJ,GAAO/B,EAASuB,KACvB,eAGFpB,EAAM1H,EAAIsJ,MACVA,IAGEC,OAAOvJ,IAAK,EAAG8I,SAIhB1I,QAAO0H,cAAPC,MAAA3H,OAAwBf,IAU1BmK,EAAS,SAAShE,MACjBnG,QAGED,EAAWoG,MAGfqD,GAAcrD,EAAMpK,OAGpB0N,EA5RY,IA6RZP,EAAQ,EACRQ,EA/Re,oCAkSnBU,KAA2BjE,EAA3BkE,OAAAC,cAAAC,GAAAH,EAAAI,EAAAC,QAAAC,MAAAH,GAAA,EAAkC,IAAvBI,GAAuBP,EAAAlK,KAC7ByK,GAAe,OACXtK,KAAKkI,EAAmBoC,2FAI7BC,GAAc5K,EAAOjE,OACrB8O,EAAiBD,MAMjBA,KACIvK,KA9SS,KAkTVwK,EAAiBrB,GAAa,IAIhCsB,GAAI5C,mCACR6C,KAA2B5E,EAA3BkE,OAAAC,cAAAU,GAAAD,EAAAE,EAAAR,QAAAC,MAAAM,GAAA,EAAkC,IAAvBL,GAAuBI,EAAA7K,KAC7ByK,IAAgBlB,GAAKkB,EAAeG,MACnCH,0FAMAO,GAAwBL,EAAiB,CAC3CC,GAAIrB,EAAIpB,GAAOH,EAASgB,GAASgC,MAC9B,gBAGGJ,EAAIrB,GAAKyB,IACfJ,uCAEJK,KAA2BhF,EAA3BkE,OAAAC,cAAAc,GAAAD,EAAAE,EAAAZ,QAAAC,MAAAU,GAAA,EAAkC,IAAvBT,GAAuBQ,EAAAjL,SAC7ByK,EAAelB,KAAOP,EAAQhB,KAC3B,YAEHyC,GAAgBlB,EAAG,KAGjB,GADD6B,GAAIpC,EACCG,EArVA,IAqV8BA,GArV9B,GAqVyC,IAC3CU,GAAIV,GAAKK,EArVP,EAqVsBL,GAAKK,EApV3B,GAAA,GAoVgDL,EAAIK,KACxD4B,EAAIvB,WAGFwB,GAAUD,EAAIvB,EACdC,EA3VE,GA2VkBD,IACnB1J,KACNkI,EAAmBO,EAAaiB,EAAIwB,EAAUvB,EAAY,OAEvD3B,EAAMkD,EAAUvB,KAGd3J,KAAKkI,EAAmBO,EAAawC,EAAG,OACxCrC,EAAMC,EAAOgC,EAAuBL,GAAkBD,KACrD,IACNC,yFAIF3B,IACAO,QAGIzJ,GAAO7D,KAAK,KAcdyK,EAAY,SAAST,SACnBzG,GAAUyG,EAAO,SAASxG,SACzBwI,GAAc1E,KAAK9D,GACvB4J,EAAO5J,EAAO3D,MAAM,GAAGgB,eACvB2C,KAeCgG,EAAU,SAASQ,SACjBzG,GAAUyG,EAAO,SAASxG,SACzByI,GAAc3E,KAAK9D,GACvB,OAASwK,EAAOxK,GAChBA,KAOC+F,WAMM,qBASA3F,SACAyI,UAEDe,SACAY,UACCxE,YACEiB,GC5VDrB,KA2IPN,EAAY,kIACZC,EAA4C,GAAI1D,MAAM,SAAU,KAAOhF,UAoHvE4J,EAAO,WACPC,EAAO,cACPC,GAAO,gBAEPE,GAAO,yBG1VPgF,WACI,mBAEI,QAEL,SAAUpK,EAA0BwD,SAEtCxD,GAAWW,SACJ7C,MAAQkC,EAAWlC,OAAS,+BAGjCkC,aAGI,SAAUA,EAA0BwD,SAE3CxD,GAAW+D,QAAsD,UAA5CpE,OAAOK,EAAWM,QAAQ1E,cAA4B,GAAK,MAA4B,KAApBoE,EAAW+D,SAC3FA,KAAO3I,WAId4E,EAAWa,SACJA,KAAO,KAOZb,IC5BHoK,WACI,mBACIC,GAAKhG,iBACVgG,GAAK/G,gBACD+G,GAAK9E,WHSZ+E,MAIA5M,GAAe,mGACfnB,GAAW,cACXC,GAAexB,EAAOA,EAAO,sBAA6BuB,GAAWA,GAAW,IAAMA,GAAWA,IAAY,IAAMvB,EAAO,0BAAiCuB,GAAWA,IAAY,IAAMvB,EAAO,IAAMuB,GAAWA,KAehNgO,GAAUlQ,EADA,6DACe,aAqBzBgG,GAAa,GAAI1C,QAAOD,GAAc,KACtC6C,GAAc,GAAI5C,QAAOnB,GAAc,KACvCgO,GAAiB,GAAI7M,QAAOtD,EAAM,MAzBxB,wDAyBwC,QAAS,QAASkQ,IAAU,KAE9EE,GAAa,GAAI9M,QAAOtD,EAAM,MAAOqD,GAjBrB,uCAiBmD,KACnEgN,GAAcD,GASdL,WACI,eAED,SAAUpK,EAA0BwD,MACrCmH,GAAmB3K,EACnB4K,EAAKD,EAAiBC,GAAMD,EAAiB9J,KAAO8J,EAAiB9J,KAAKpF,MAAM,aACrEoF,KAAOzF,UAEpBuP,EAAiB3J,MAAO,KAKtB,GAJD6J,IAAiB,EACfC,KACAC,EAAUJ,EAAiB3J,MAAMvF,MAAM,KAEpCX,EAAI,EAAGD,EAAKkQ,EAAQpQ,OAAQG,EAAID,IAAMC,EAAG,IAC3CkQ,GAASD,EAAQjQ,GAAGW,MAAM,YAExBuP,EAAO,QACT,SAEC,GADCC,GAAUD,EAAO,GAAGvP,MAAM,KACvBX,EAAI,EAAGD,EAAKoQ,EAAQtQ,OAAQG,EAAID,IAAMC,IAC3CmE,KAAKgM,EAAQnQ,cAGb,YACaoQ,QAAUrE,EAAkBmE,EAAO,GAAIxH,aAEpD,SACa2H,KAAOtE,EAAkBmE,EAAO,GAAIxH,oBAGpC,IACTqD,EAAkBmE,EAAO,GAAIxH,IAAYqD,EAAkBmE,EAAO,GAAIxH,IAK7EqH,IAAgBF,EAAiBG,QAAUA,KAG/B9J,MAAQ5F,cAEpB,GAAIN,GAAI,EAAGD,EAAK+P,EAAGjQ,OAAQG,EAAID,IAAMC,EAAG,IACtCsQ,GAAOR,EAAG9P,GAAGW,MAAM,UAEpB,GAAKoL,EAAkBuE,EAAK,IAE5B5H,EAAQY,iBAQP,GAAKyC,EAAkBuE,EAAK,GAAI5H,GAAS5H,yBALxC,GAAK0I,EAASC,QAAQsC,EAAkBuE,EAAK,GAAI5H,GAAS5H,eAC9D,MAAO4I,KACS1G,MAAQ6M,EAAiB7M,OAAS,2EAA6E0G,IAM/H1J,GAAKsQ,EAAKrQ,KAAK,WAGZ4P,cAGI,SAAUA,EAAmCnH,MAClDxD,GAAa2K,EACbC,EAAK9O,EAAQ6O,EAAiBC,OAChCA,EAAI,KACF,GAAI9P,GAAI,EAAGD,EAAK+P,EAAGjQ,OAAQG,EAAID,IAAMC,EAAG,IACtCuQ,GAAS1L,OAAOiL,EAAG9P,IACnBwQ,EAAQD,EAAOpF,YAAY,KAC3BsF,EAAaF,EAAOzQ,MAAM,EAAG0Q,GAAQ7M,QAAQ8B,GAAaL,GAAkBzB,QAAQ8B,GAAa1E,GAAa4C,QAAQ+L,GAAgBtL,GACxIsM,EAASH,EAAOzQ,MAAM0Q,EAAQ,SAItB9H,EAAQC,IAA2Ea,EAASkB,UAAUgG,GAAxFlH,EAASC,QAAQsC,EAAkB2E,EAAQhI,GAAS5H,eAC5E,MAAO4I,KACG1G,MAAQkC,EAAWlC,OAAS,wDAA2D0F,EAAQC,IAAgB,UAAV,SAAuB,kBAAoBe,IAGzJ1J,GAAKyQ,EAAY,IAAMC,IAGhB3K,KAAO+J,EAAG7P,KAAK,QAGrB+P,GAAUH,EAAiBG,QAAUH,EAAiBG,WAExDH,GAAiBO,UAASJ,EAAA,QAAqBH,EAAiBO,SAChEP,EAAiBQ,OAAML,EAAA,KAAkBH,EAAiBQ,SAExD3I,UACD,GAAMiJ,KAAQX,GACdA,EAAQW,KAAUnB,GAAEmB,MAChBxM,KACNwM,EAAKhN,QAAQ8B,GAAaL,GAAkBzB,QAAQ8B,GAAa1E,GAAa4C,QAAQgM,GAAYvL,GAClG,IACA4L,EAAQW,GAAMhN,QAAQ8B,GAAaL,GAAkBzB,QAAQ8B,GAAa1E,GAAa4C,QAAQiM,GAAaxL,UAI3GsD,GAAO7H,WACCqG,MAAQwB,EAAOzH,KAAK,MAGzBiF,II/JH0L,GAAY,kBAIZtB,WACI,YAED,SAAUpK,EAA0BwD,MACrClC,GAAUtB,EAAWa,MAAQb,EAAWa,KAAKT,MAAMsL,IACrDC,EAAgB3L,KAEhBsB,EAAS,IACNhB,GAASkD,EAAQlD,QAAUqL,EAAcrL,QAAU,MACnDsL,EAAMtK,EAAQ,GAAG1F,cACjBiQ,EAAMvK,EAAQ,GACdwK,EAAexL,EAAf,KAAyBkD,EAAQoI,KAAOA,GACxC1H,EAAgBC,EAAQ2H,KAEhBF,IAAMA,IACNC,IAAMA,IACNhL,KAAOzF,UAEjB8I,MACaA,EAAcZ,MAAMqI,EAAenI,WAGtC1F,MAAQ6N,EAAc7N,OAAS,+BAGvC6N,cAGI,SAAUA,EAA6BnI,MAC5ClD,GAASkD,EAAQlD,QAAUqL,EAAcrL,QAAU,MACnDsL,EAAMD,EAAcC,IACpBE,EAAexL,EAAf,KAAyBkD,EAAQoI,KAAOA,GACxC1H,EAAgBC,EAAQ2H,EAE1B5H,OACaA,EAAcqB,UAAUoG,EAAenI,OAGlDuI,GAAgBJ,EAChBE,EAAMF,EAAcE,aACZhL,MAAU+K,GAAOpI,EAAQoI,KAAvC,IAA8CC,EAEvCE,ICxDHC,GAAO,2DAIP5B,WACI,iBAED,SAAUuB,EAA6BnI,MACxCyI,GAAiBN,WACRO,KAAOD,EAAeJ,MACtBA,IAAMzQ,UAEhBoI,EAAQwC,UAAciG,EAAeC,MAASD,EAAeC,KAAK9L,MAAM4L,QAC7DlO,MAAQmO,EAAenO,OAAS,sBAGzCmO,aAGI,SAAUA,EAA+BzI,MAC9CmI,GAAgBM,WAERJ,KAAOI,EAAeC,MAAQ,IAAItQ,cACzC+P,GC5BTxH,GAAQkG,GAAK/J,QAAU+J,GAEvBlG,EACQgI,GAAM7L,QAAU6L,GAExBhI,EACQiI,GAAO9L,QAAU8L,GAEzBjI,EACQkI,GAAI/L,QAAU+L,GAEtBlI,EACQ+H,GAAK5L,QAAU4L","file":"dist/es5/uri.all.min.js","sourcesContent":["export function merge(...sets:Array<string>):string {\n\tif (sets.length > 1) {\n\t\tsets[0] = sets[0].slice(0, -1);\n\t\tconst xl = sets.length - 1;\n\t\tfor (let x = 1; x < xl; ++x) {\n\t\t\tsets[x] = sets[x].slice(1, -1);\n\t\t}\n\t\tsets[xl] = sets[xl].slice(1);\n\t\treturn sets.join('');\n\t} else {\n\t\treturn sets[0];\n\t}\n}\n\nexport function subexp(str:string):string {\n\treturn \"(?:\" + str + \")\";\n}\n\nexport function typeOf(o:any):string {\n\treturn o === undefined ? \"undefined\" : (o === null ? \"null\" : Object.prototype.toString.call(o).split(\" \").pop().split(\"]\").shift().toLowerCase());\n}\n\nexport function toUpperCase(str:string):string {\n\treturn str.toUpperCase();\n}\n\nexport function toArray(obj:any):Array<any> {\n\treturn obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== \"number\" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];\n}\n\n\nexport function assign(target: object, source: any): any {\n\tconst obj = target as any;\n\tif (source) {\n\t\tfor (const key in source) {\n\t\t\tobj[key] = source[key];\n\t\t}\n\t}\n\treturn obj;\n}","import { URIRegExps } from \"./uri\";\nimport { merge, subexp } from \"./util\";\n\nexport function buildExps(isIRI:boolean):URIRegExps {\n\tconst\n\t\tALPHA$$ = \"[A-Za-z]\",\n\t\tCR$ = \"[\\\\x0D]\",\n\t\tDIGIT$$ = \"[0-9]\",\n\t\tDQUOTE$$ = \"[\\\\x22]\",\n\t\tHEXDIG$$ = merge(DIGIT$$, \"[A-Fa-f]\"), //case-insensitive\n\t\tLF$$ = \"[\\\\x0A]\",\n\t\tSP$$ = \"[\\\\x20]\",\n\t\tPCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)), //expanded\n\t\tGEN_DELIMS$$ = \"[\\\\:\\\\/\\\\?\\\\#\\\\[\\\\]\\\\@]\",\n\t\tSUB_DELIMS$$ = \"[\\\\!\\\\$\\\\&\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\=]\",\n\t\tRESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),\n\t\tUCSCHAR$$ = isIRI ? \"[\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF]\" : \"[]\", //subset, excludes bidi control characters\n\t\tIPRIVATE$$ = isIRI ? \"[\\\\uE000-\\\\uF8FF]\" : \"[]\", //subset\n\t\tUNRESERVED$$ = merge(ALPHA$$, DIGIT$$, \"[\\\\-\\\\.\\\\_\\\\~]\", UCSCHAR$$),\n\t\tSCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\") + \"*\"),\n\t\tUSERINFO$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\")) + \"*\"),\n\t\tDEC_OCTET$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"[1-9]\" + DIGIT$$) + \"|\" + DIGIT$$),\n\t\tDEC_OCTET_RELAXED$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"0?[1-9]\" + DIGIT$$) + \"|0?0?\" + DIGIT$$), //relaxed parsing rules\n\t\tIPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$),\n\t\tH16$ = subexp(HEXDIG$$ + \"{1,4}\"),\n\t\tLS32$ = subexp(subexp(H16$ + \"\\\\:\" + H16$) + \"|\" + IPV4ADDRESS$),\n\t\tIPV6ADDRESS1$ = subexp( subexp(H16$ + \"\\\\:\") + \"{6}\" + LS32$), // 6( h16 \":\" ) ls32\n\t\tIPV6ADDRESS2$ = subexp( \"\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{5}\" + LS32$), // \"::\" 5( h16 \":\" ) ls32\n\t\tIPV6ADDRESS3$ = subexp(subexp( H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{4}\" + LS32$), //[ h16 ] \"::\" 4( h16 \":\" ) ls32\n\t\tIPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,1}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{3}\" + LS32$), //[ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n\t\tIPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,2}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{2}\" + LS32$), //[ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n\t\tIPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,3}\" + H16$) + \"?\\\\:\\\\:\" + H16$ + \"\\\\:\" + LS32$), //[ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n\t\tIPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,4}\" + H16$) + \"?\\\\:\\\\:\" + LS32$), //[ *4( h16 \":\" ) h16 ] \"::\" ls32\n\t\tIPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,5}\" + H16$) + \"?\\\\:\\\\:\" + H16$ ), //[ *5( h16 \":\" ) h16 ] \"::\" h16\n\t\tIPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,6}\" + H16$) + \"?\\\\:\\\\:\" ), //[ *6( h16 \":\" ) h16 ] \"::\"\n\t\tIPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join(\"|\")),\n\t\tZONEID$ = subexp(subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$) + \"+\"), //RFC 6874\n\t\tIPV6ADDRZ$ = subexp(IPV6ADDRESS$ + \"\\\\%25\" + ZONEID$), //RFC 6874\n\t\tIPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + ZONEID$), //RFC 6874, with relaxed parsing rules\n\t\tIPVFUTURE$ = subexp(\"[vV]\" + HEXDIG$$ + \"+\\\\.\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\") + \"+\"),\n\t\tIP_LITERAL$ = subexp(\"\\\\[\" + subexp(IPV6ADDRZ_RELAXED$ + \"|\" + IPV6ADDRESS$ + \"|\" + IPVFUTURE$) + \"\\\\]\"), //RFC 6874\n\t\tREG_NAME$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$)) + \"*\"),\n\t\tHOST$ = subexp(IP_LITERAL$ + \"|\" + IPV4ADDRESS$ + \"(?!\" + REG_NAME$ + \")\" + \"|\" + REG_NAME$),\n\t\tPORT$ = subexp(DIGIT$$ + \"*\"),\n\t\tAUTHORITY$ = subexp(subexp(USERINFO$ + \"@\") + \"?\" + HOST$ + subexp(\"\\\\:\" + PORT$) + \"?\"),\n\t\tPCHAR$ = subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@]\")),\n\t\tSEGMENT$ = subexp(PCHAR$ + \"*\"),\n\t\tSEGMENT_NZ$ = subexp(PCHAR$ + \"+\"),\n\t\tSEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\@]\")) + \"+\"),\n\t\tPATH_ABEMPTY$ = subexp(subexp(\"\\\\/\" + SEGMENT$) + \"*\"),\n\t\tPATH_ABSOLUTE$ = subexp(\"\\\\/\" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + \"?\"), //simplified\n\t\tPATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), //simplified\n\t\tPATH_EMPTY$ = \"(?!\" + PCHAR$ + \")\",\n\t\tPATH$ = subexp(PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tQUERY$ = subexp(subexp(PCHAR$ + \"|\" + merge(\"[\\\\/\\\\?]\", IPRIVATE$$)) + \"*\"),\n\t\tFRAGMENT$ = subexp(subexp(PCHAR$ + \"|[\\\\/\\\\?]\") + \"*\"),\n\t\tHIER_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n\t\tURI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tRELATIVE_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$),\n\t\tRELATIVE$ = subexp(RELATIVE_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n\t\tURI_REFERENCE$ = subexp(URI$ + \"|\" + RELATIVE$),\n\t\tABSOLUTE_URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\"),\n\n\t\tGENERIC_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tRELATIVE_REF$ = \"^(){0}\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tABSOLUTE_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?$\",\n\t\tSAMEDOC_REF$ = \"^\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n\t\tAUTHORITY_REF$ = \"^\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?$\"\n\t;\n\n\treturn {\n\t\tNOT_SCHEME : new RegExp(merge(\"[^]\", ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\"), \"g\"),\n\t\tNOT_USERINFO : new RegExp(merge(\"[^\\\\%\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_HOST : new RegExp(merge(\"[^\\\\%\\\\[\\\\]\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH : new RegExp(merge(\"[^\\\\%\\\\/\\\\:\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_PATH_NOSCHEME : new RegExp(merge(\"[^\\\\%\\\\/\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tNOT_QUERY : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\", IPRIVATE$$), \"g\"),\n\t\tNOT_FRAGMENT : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\"), \"g\"),\n\t\tESCAPE : new RegExp(merge(\"[^]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n\t\tUNRESERVED : new RegExp(UNRESERVED$$, \"g\"),\n\t\tOTHER_CHARS : new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, RESERVED$$), \"g\"),\n\t\tPCT_ENCODED : new RegExp(PCT_ENCODED$, \"g\"),\n\t\tIPV4ADDRESS : new RegExp(\"^(\" + IPV4ADDRESS$ + \")$\"),\n\t\tIPV6ADDRESS : new RegExp(\"^\\\\[?(\" + IPV6ADDRESS$ + \")\" + subexp(subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + \"(\" + ZONEID$ + \")\") + \"?\\\\]?$\") //RFC 6874, with relaxed parsing rules\n\t};\n}\n\nexport default buildExps(false);\n","'use strict';\n\n/** Highest positive signed 32-bit float value */\nconst maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nconst base = 36;\nconst tMin = 1;\nconst tMax = 26;\nconst skew = 38;\nconst damp = 700;\nconst initialBias = 72;\nconst initialN = 128; // 0x80\nconst delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nconst regexPunycode = /^xn--/;\nconst regexNonASCII = /[^\\0-\\x7E]/; // non-ASCII chars\nconst regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nconst errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nconst baseMinusTMin = base - tMin;\nconst floor = Math.floor;\nconst stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, fn) {\n\tconst result = [];\n\tlet length = array.length;\n\twhile (length--) {\n\t\tresult[length] = fn(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(string, fn) {\n\tconst parts = string.split('@');\n\tlet result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tstring = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tstring = string.replace(regexSeparators, '\\x2E');\n\tconst labels = string.split('.');\n\tconst encoded = map(labels, fn).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see <https://mathiasbynens.be/notes/javascript-encoding>\n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tconst output = [];\n\tlet counter = 0;\n\tconst length = string.length;\n\twhile (counter < length) {\n\t\tconst value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tconst extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) { // Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nconst ucs2encode = array => String.fromCodePoint(...array);\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nconst basicToDigit = function(codePoint) {\n\tif (codePoint - 0x30 < 0x0A) {\n\t\treturn codePoint - 0x16;\n\t}\n\tif (codePoint - 0x41 < 0x1A) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint - 0x61 < 0x1A) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nconst digitToBasic = function(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nconst adapt = function(delta, numPoints, firstTime) {\n\tlet k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nconst decode = function(input) {\n\t// Don't use UCS-2.\n\tconst output = [];\n\tconst inputLength = input.length;\n\tlet i = 0;\n\tlet n = initialN;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tlet basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (let j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tlet oldi = i;\n\t\tfor (let w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\n\t\t\tconst digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\n\t\t}\n\n\t\tconst out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\n\t}\n\n\treturn String.fromCodePoint(...output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nconst encode = function(input) {\n\tconst output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tlet inputLength = input.length;\n\n\t// Initialize the state.\n\tlet n = initialN;\n\tlet delta = 0;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points.\n\tfor (const currentValue of input) {\n\t\tif (currentValue < 0x80) {\n\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t}\n\t}\n\n\tlet basicLength = output.length;\n\tlet handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tlet m = maxInt;\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\tm = currentValue;\n\t\t\t}\n\t\t}\n\n\t\t// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,\n\t\t// but guard against overflow.\n\t\tconst handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\t\t\tif (currentValue == n) {\n\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\tlet q = delta;\n\t\t\t\tfor (let k = base; /* no condition */; k += base) {\n\t\t\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tconst qMinusT = q - t;\n\t\t\t\t\tconst baseMinusT = base - t;\n\t\t\t\t\toutput.push(\n\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t);\n\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t}\n\n\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\tdelta = 0;\n\t\t\t\t++handledCPCount;\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nconst toUnicode = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexPunycode.test(string)\n\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t: string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nconst toASCII = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexNonASCII.test(string)\n\t\t\t? 'xn--' + encode(string)\n\t\t\t: string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nconst punycode = {\n\t/**\n\t * A string representing the current Punycode.js version number.\n\t * @memberOf punycode\n\t * @type String\n\t */\n\t'version': '2.1.0',\n\t/**\n\t * An object of methods to convert from JavaScript's internal character\n\t * representation (UCS-2) to Unicode code points, and back.\n\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t * @memberOf punycode\n\t * @type Object\n\t */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\nexport default punycode;\n","/**\n * URI.js\n *\n * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.\n * @author <a href=\"mailto:gary.court@gmail.com\">Gary Court</a>\n * @see http://github.com/garycourt/uri-js\n */\n\n/**\n * Copyright 2011 Gary Court. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation are those of the\n * authors and should not be interpreted as representing official policies, either expressed\n * or implied, of Gary Court.\n */\n\nimport URI_PROTOCOL from \"./regexps-uri\";\nimport IRI_PROTOCOL from \"./regexps-iri\";\nimport punycode from \"punycode\";\nimport { toUpperCase, typeOf, assign } from \"./util\";\n\nexport interface URIComponents {\n\tscheme?:string;\n\tuserinfo?:string;\n\thost?:string;\n\tport?:number|string;\n\tpath?:string;\n\tquery?:string;\n\tfragment?:string;\n\treference?:string;\n\terror?:string;\n}\n\nexport interface URIOptions {\n\tscheme?:string;\n\treference?:string;\n\ttolerant?:boolean;\n\tabsolutePath?:boolean;\n\tiri?:boolean;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n}\n\nexport interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {\n\tscheme:string;\n\tparse(components:ParentComponents, options:Options):Components;\n\tserialize(components:Components, options:Options):ParentComponents;\n\tunicodeSupport?:boolean;\n\tdomainHost?:boolean;\n\tabsolutePath?:boolean;\n}\n\nexport interface URIRegExps {\n\tNOT_SCHEME : RegExp,\n\tNOT_USERINFO : RegExp,\n\tNOT_HOST : RegExp,\n\tNOT_PATH : RegExp,\n\tNOT_PATH_NOSCHEME : RegExp,\n\tNOT_QUERY : RegExp,\n\tNOT_FRAGMENT : RegExp,\n\tESCAPE : RegExp,\n\tUNRESERVED : RegExp,\n\tOTHER_CHARS : RegExp,\n\tPCT_ENCODED : RegExp,\n\tIPV4ADDRESS : RegExp,\n\tIPV6ADDRESS : RegExp,\n}\n\nexport const SCHEMES:{[scheme:string]:URISchemeHandler} = {};\n\nexport function pctEncChar(chr:string):string {\n\tconst c = chr.charCodeAt(0);\n\tlet e:string;\n\n\tif (c < 16) e = \"%0\" + c.toString(16).toUpperCase();\n\telse if (c < 128) e = \"%\" + c.toString(16).toUpperCase();\n\telse if (c < 2048) e = \"%\" + ((c >> 6) | 192).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\telse e = \"%\" + ((c >> 12) | 224).toString(16).toUpperCase() + \"%\" + (((c >> 6) & 63) | 128).toString(16).toUpperCase() + \"%\" + ((c & 63) | 128).toString(16).toUpperCase();\n\n\treturn e;\n}\n\nexport function pctDecChars(str:string):string {\n\tlet newStr = \"\";\n\tlet i = 0;\n\tconst il = str.length;\n\n\twhile (i < il) {\n\t\tconst c = parseInt(str.substr(i + 1, 2), 16);\n\n\t\tif (c < 128) {\n\t\t\tnewStr += String.fromCharCode(c);\n\t\t\ti += 3;\n\t\t}\n\t\telse if (c >= 194 && c < 224) {\n\t\t\tif ((il - i) >= 6) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 6);\n\t\t\t}\n\t\t\ti += 6;\n\t\t}\n\t\telse if (c >= 224) {\n\t\t\tif ((il - i) >= 9) {\n\t\t\t\tconst c2 = parseInt(str.substr(i + 4, 2), 16);\n\t\t\t\tconst c3 = parseInt(str.substr(i + 7, 2), 16);\n\t\t\t\tnewStr += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\n\t\t\t} else {\n\t\t\t\tnewStr += str.substr(i, 9);\n\t\t\t}\n\t\t\ti += 9;\n\t\t}\n\t\telse {\n\t\t\tnewStr += str.substr(i, 3);\n\t\t\ti += 3;\n\t\t}\n\t}\n\n\treturn newStr;\n}\n\nfunction _normalizeComponentEncoding(components:URIComponents, protocol:URIRegExps) {\n\tfunction decodeUnreserved(str:string):string {\n\t\tconst decStr = pctDecChars(str);\n\t\treturn (!decStr.match(protocol.UNRESERVED) ? str : decStr);\n\t}\n\n\tif (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, \"\");\n\tif (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace((components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME), pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\tif (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n\n\treturn components;\n};\n\nfunction _stripLeadingZeros(str:string):string {\n\treturn str.replace(/^0*(.*)/, \"$1\") || \"0\";\n}\n\nfunction _normalizeIPv4(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV4ADDRESS) || [];\n\tconst [, address] = matches;\n\t\n\tif (address) {\n\t\treturn address.split(\".\").map(_stripLeadingZeros).join(\".\");\n\t} else {\n\t\treturn host;\n\t}\n}\n\nfunction _normalizeIPv6(host:string, protocol:URIRegExps):string {\n\tconst matches = host.match(protocol.IPV6ADDRESS) || [];\n\tconst [, address, zone] = matches;\n\n\tif (address) {\n\t\tconst [last, first] = address.toLowerCase().split('::').reverse();\n\t\tconst firstFields = first ? first.split(\":\").map(_stripLeadingZeros) : [];\n\t\tconst lastFields = last.split(\":\").map(_stripLeadingZeros);\n\t\tconst isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);\n\t\tconst fieldCount = isLastFieldIPv4Address ? 7 : 8;\n\t\tconst lastFieldsStart = lastFields.length - fieldCount;\n\t\tconst fields = Array<string>(fieldCount);\n\n\t\tfor (let x = 0; x < fieldCount; ++x) {\n\t\t\tfields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';\n\t\t}\n\n\t\tif (isLastFieldIPv4Address) {\n\t\t\tfields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);\n\t\t}\n\n\t\tconst allZeroFields = fields.reduce<Array<{index:number,length:number}>>((acc, field, index) => {\n\t\t\tif (!field || field === \"0\") {\n\t\t\t\tconst lastLongest = acc[acc.length - 1];\n\t\t\t\tif (lastLongest && lastLongest.index + lastLongest.length === index) {\n\t\t\t\t\tlastLongest.length++;\n\t\t\t\t} else {\n\t\t\t\t\tacc.push({ index, length : 1 });\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn acc;\n\t\t}, []);\n\n\t\tconst longestZeroFields = allZeroFields.sort((a, b) => b.length - a.length)[0];\n\n\t\tlet newHost:string;\n\t\tif (longestZeroFields && longestZeroFields.length > 1) {\n\t\t\tconst newFirst = fields.slice(0, longestZeroFields.index) ;\n\t\t\tconst newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);\n\t\t\tnewHost = newFirst.join(\":\") + \"::\" + newLast.join(\":\");\n\t\t} else {\n\t\t\tnewHost = fields.join(\":\");\n\t\t}\n\n\t\tif (zone) {\n\t\t\tnewHost += \"%\" + zone;\n\t\t}\n\n\t\treturn newHost;\n\t} else {\n\t\treturn host;\n\t}\n}\n\nconst URI_PARSE = /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:([^\\/?#@]*)@)?(\\[[^\\/?#\\]]+\\]|[^\\/?#:]*)(?:\\:(\\d*))?))?([^?#]*)(?:\\?([^#]*))?(?:#((?:.|\\n|\\r)*))?/i;\nconst NO_MATCH_IS_UNDEFINED = (<RegExpMatchArray>(\"\").match(/(){0}/))[1] === undefined;\n\nexport function parse(uriString:string, options:URIOptions = {}):URIComponents {\n\tconst components:URIComponents = {};\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\n\tif (options.reference === \"suffix\") uriString = (options.scheme ? options.scheme + \":\" : \"\") + \"//\" + uriString;\n\n\tconst matches = uriString.match(URI_PARSE);\n\n\tif (matches) {\n\t\tif (NO_MATCH_IS_UNDEFINED) {\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1];\n\t\t\tcomponents.userinfo = matches[3];\n\t\t\tcomponents.host = matches[4];\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = matches[7];\n\t\t\tcomponents.fragment = matches[8];\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = matches[5];\n\t\t\t}\n\t\t} else { //IE FIX for improper RegExp matching\n\t\t\t//store each component\n\t\t\tcomponents.scheme = matches[1] || undefined;\n\t\t\tcomponents.userinfo = (uriString.indexOf(\"@\") !== -1 ? matches[3] : undefined);\n\t\t\tcomponents.host = (uriString.indexOf(\"//\") !== -1 ? matches[4] : undefined);\n\t\t\tcomponents.port = parseInt(matches[5], 10);\n\t\t\tcomponents.path = matches[6] || \"\";\n\t\t\tcomponents.query = (uriString.indexOf(\"?\") !== -1 ? matches[7] : undefined);\n\t\t\tcomponents.fragment = (uriString.indexOf(\"#\") !== -1 ? matches[8] : undefined);\n\n\t\t\t//fix port number\n\t\t\tif (isNaN(components.port)) {\n\t\t\t\tcomponents.port = (uriString.match(/\\/\\/(?:.|\\n)*\\:(?:\\/|\\?|\\#|$)/) ? matches[4] : undefined);\n\t\t\t}\n\t\t}\n\n\t\tif (components.host) {\n\t\t\t//normalize IP hosts\n\t\t\tcomponents.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);\n\t\t}\n\n\t\t//determine reference type\n\t\tif (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {\n\t\t\tcomponents.reference = \"same-document\";\n\t\t} else if (components.scheme === undefined) {\n\t\t\tcomponents.reference = \"relative\";\n\t\t} else if (components.fragment === undefined) {\n\t\t\tcomponents.reference = \"absolute\";\n\t\t} else {\n\t\t\tcomponents.reference = \"uri\";\n\t\t}\n\n\t\t//check for reference errors\n\t\tif (options.reference && options.reference !== \"suffix\" && options.reference !== components.reference) {\n\t\t\tcomponents.error = components.error || \"URI is not a \" + options.reference + \" reference.\";\n\t\t}\n\n\t\t//find scheme handler\n\t\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t\t//check if scheme can't handle IRIs\n\t\tif (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n\t\t\t//if host component is a domain name\n\t\t\tif (components.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost))) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\tcomponents.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert IRI -> URI\n\t\t\t_normalizeComponentEncoding(components, URI_PROTOCOL);\n\t\t} else {\n\t\t\t//normalize encodings\n\t\t\t_normalizeComponentEncoding(components, protocol);\n\t\t}\n\n\t\t//perform scheme specific parsing\n\t\tif (schemeHandler && schemeHandler.parse) {\n\t\t\tschemeHandler.parse(components, options);\n\t\t}\n\t} else {\n\t\tcomponents.error = components.error || \"URI can not be parsed.\";\n\t}\n\n\treturn components;\n};\n\nfunction _recomposeAuthority(components:URIComponents, options:URIOptions):string|undefined {\n\tconst protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array<string> = [];\n\n\tif (components.userinfo !== undefined) {\n\t\turiTokens.push(components.userinfo);\n\t\turiTokens.push(\"@\");\n\t}\n\n\tif (components.host !== undefined) {\n\t\t//normalize IP hosts, add brackets and escape zone separator for IPv6\n\t\turiTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => \"[\" + $1 + ($2 ? \"%25\" + $2 : \"\") + \"]\"));\n\t}\n\n\tif (typeof components.port === \"number\") {\n\t\turiTokens.push(\":\");\n\t\turiTokens.push(components.port.toString(10));\n\t}\n\n\treturn uriTokens.length ? uriTokens.join(\"\") : undefined;\n};\n\nconst RDS1 = /^\\.\\.?\\//;\nconst RDS2 = /^\\/\\.(\\/|$)/;\nconst RDS3 = /^\\/\\.\\.(\\/|$)/;\nconst RDS4 = /^\\.\\.?$/;\nconst RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/;\n\nexport function removeDotSegments(input:string):string {\n\tconst output:Array<string> = [];\n\n\twhile (input.length) {\n\t\tif (input.match(RDS1)) {\n\t\t\tinput = input.replace(RDS1, \"\");\n\t\t} else if (input.match(RDS2)) {\n\t\t\tinput = input.replace(RDS2, \"/\");\n\t\t} else if (input.match(RDS3)) {\n\t\t\tinput = input.replace(RDS3, \"/\");\n\t\t\toutput.pop();\n\t\t} else if (input === \".\" || input === \"..\") {\n\t\t\tinput = \"\";\n\t\t} else {\n\t\t\tconst im = input.match(RDS5);\n\t\t\tif (im) {\n\t\t\t\tconst s = im[0];\n\t\t\t\tinput = input.slice(s.length);\n\t\t\t\toutput.push(s);\n\t\t\t} else {\n\t\t\t\tthrow new Error(\"Unexpected dot segment condition\");\n\t\t\t}\n\t\t}\n\t}\n\n\treturn output.join(\"\");\n};\n\nexport function serialize(components:URIComponents, options:URIOptions = {}):string {\n\tconst protocol = (options.iri ? IRI_PROTOCOL : URI_PROTOCOL);\n\tconst uriTokens:Array<string> = [];\n\n\t//find scheme handler\n\tconst schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n\n\t//perform scheme specific serialization\n\tif (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);\n\n\tif (components.host) {\n\t\t//if host component is an IPv6 address\n\t\tif (protocol.IPV6ADDRESS.test(components.host)) {\n\t\t\t//TODO: normalize IPv6 address as per RFC 5952\n\t\t}\n\n\t\t//if host component is a domain name\n\t\telse if (options.domainHost || (schemeHandler && schemeHandler.domainHost)) {\n\t\t\t//convert IDN via punycode\n\t\t\ttry {\n\t\t\t\tcomponents.host = (!options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host));\n\t\t\t} catch (e) {\n\t\t\t\tcomponents.error = components.error || \"Host's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t}\n\t\t}\n\t}\n\n\t//normalize encoding\n\t_normalizeComponentEncoding(components, protocol);\n\n\tif (options.reference !== \"suffix\" && components.scheme) {\n\t\turiTokens.push(components.scheme);\n\t\turiTokens.push(\":\");\n\t}\n\n\tconst authority = _recomposeAuthority(components, options);\n\tif (authority !== undefined) {\n\t\tif (options.reference !== \"suffix\") {\n\t\t\turiTokens.push(\"//\");\n\t\t}\n\n\t\turiTokens.push(authority);\n\n\t\tif (components.path && components.path.charAt(0) !== \"/\") {\n\t\t\turiTokens.push(\"/\");\n\t\t}\n\t}\n\n\tif (components.path !== undefined) {\n\t\tlet s = components.path;\n\n\t\tif (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n\t\t\ts = removeDotSegments(s);\n\t\t}\n\n\t\tif (authority === undefined) {\n\t\t\ts = s.replace(/^\\/\\//, \"/%2F\"); //don't allow the path to start with \"//\"\n\t\t}\n\n\t\turiTokens.push(s);\n\t}\n\n\tif (components.query !== undefined) {\n\t\turiTokens.push(\"?\");\n\t\turiTokens.push(components.query);\n\t}\n\n\tif (components.fragment !== undefined) {\n\t\turiTokens.push(\"#\");\n\t\turiTokens.push(components.fragment);\n\t}\n\n\treturn uriTokens.join(\"\"); //merge tokens into a string\n};\n\nexport function resolveComponents(base:URIComponents, relative:URIComponents, options:URIOptions = {}, skipNormalization?:boolean):URIComponents {\n\tconst target:URIComponents = {};\n\n\tif (!skipNormalization) {\n\t\tbase = parse(serialize(base, options), options); //normalize base components\n\t\trelative = parse(serialize(relative, options), options); //normalize relative components\n\t}\n\toptions = options || {};\n\n\tif (!options.tolerant && relative.scheme) {\n\t\ttarget.scheme = relative.scheme;\n\t\t//target.authority = relative.authority;\n\t\ttarget.userinfo = relative.userinfo;\n\t\ttarget.host = relative.host;\n\t\ttarget.port = relative.port;\n\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\ttarget.query = relative.query;\n\t} else {\n\t\tif (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n\t\t\t//target.authority = relative.authority;\n\t\t\ttarget.userinfo = relative.userinfo;\n\t\t\ttarget.host = relative.host;\n\t\t\ttarget.port = relative.port;\n\t\t\ttarget.path = removeDotSegments(relative.path || \"\");\n\t\t\ttarget.query = relative.query;\n\t\t} else {\n\t\t\tif (!relative.path) {\n\t\t\t\ttarget.path = base.path;\n\t\t\t\tif (relative.query !== undefined) {\n\t\t\t\t\ttarget.query = relative.query;\n\t\t\t\t} else {\n\t\t\t\t\ttarget.query = base.query;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (relative.path.charAt(0) === \"/\") {\n\t\t\t\t\ttarget.path = removeDotSegments(relative.path);\n\t\t\t\t} else {\n\t\t\t\t\tif ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n\t\t\t\t\t\ttarget.path = \"/\" + relative.path;\n\t\t\t\t\t} else if (!base.path) {\n\t\t\t\t\t\ttarget.path = relative.path;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttarget.path = base.path.slice(0, base.path.lastIndexOf(\"/\") + 1) + relative.path;\n\t\t\t\t\t}\n\t\t\t\t\ttarget.path = removeDotSegments(target.path);\n\t\t\t\t}\n\t\t\t\ttarget.query = relative.query;\n\t\t\t}\n\t\t\t//target.authority = base.authority;\n\t\t\ttarget.userinfo = base.userinfo;\n\t\t\ttarget.host = base.host;\n\t\t\ttarget.port = base.port;\n\t\t}\n\t\ttarget.scheme = base.scheme;\n\t}\n\n\ttarget.fragment = relative.fragment;\n\n\treturn target;\n};\n\nexport function resolve(baseURI:string, relativeURI:string, options?:URIOptions):string {\n\tconst schemelessOptions = assign({ scheme : 'null' }, options);\n\treturn serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);\n};\n\nexport function normalize(uri:string, options?:URIOptions):string;\nexport function normalize(uri:URIComponents, options?:URIOptions):URIComponents;\nexport function normalize(uri:any, options?:URIOptions):any {\n\tif (typeof uri === \"string\") {\n\t\turi = serialize(parse(uri, options), options);\n\t} else if (typeOf(uri) === \"object\") {\n\t\turi = parse(serialize(<URIComponents>uri, options), options);\n\t}\n\n\treturn uri;\n};\n\nexport function equal(uriA:string, uriB:string, options?: URIOptions):boolean;\nexport function equal(uriA:URIComponents, uriB:URIComponents, options?:URIOptions):boolean;\nexport function equal(uriA:any, uriB:any, options?:URIOptions):boolean {\n\tif (typeof uriA === \"string\") {\n\t\turiA = serialize(parse(uriA, options), options);\n\t} else if (typeOf(uriA) === \"object\") {\n\t\turiA = serialize(<URIComponents>uriA, options);\n\t}\n\n\tif (typeof uriB === \"string\") {\n\t\turiB = serialize(parse(uriB, options), options);\n\t} else if (typeOf(uriB) === \"object\") {\n\t\turiB = serialize(<URIComponents>uriB, options);\n\t}\n\n\treturn uriA === uriB;\n};\n\nexport function escapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE), pctEncChar);\n};\n\nexport function unescapeComponent(str:string, options?:URIOptions):string {\n\treturn str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED), pctDecChars);\n};\n","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, pctDecChars, unescapeComponent } from \"../uri\";\nimport punycode from \"punycode\";\nimport { merge, subexp, toUpperCase, toArray } from \"../util\";\n\nexport interface MailtoHeaders {\n\t[hfname:string]:string\n}\n\nexport interface MailtoComponents extends URIComponents {\n\tto:Array<string>,\n\theaders?:MailtoHeaders,\n\tsubject?:string,\n\tbody?:string\n}\n\nconst O:MailtoHeaders = {};\nconst isIRI = true;\n\n//RFC 3986\nconst UNRESERVED$$ = \"[A-Za-z0-9\\\\-\\\\.\\\\_\\\\~\" + (isIRI ? \"\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF\" : \"\") + \"]\";\nconst HEXDIG$$ = \"[0-9A-Fa-f]\"; //case-insensitive\nconst PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)); //expanded\n\n//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =\n//const ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\/\\\\=\\\\?\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QTEXT$$ = \"[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F]\"; //(%d1-8 / %d11-12 / %d14-31 / %d127)\n//const QTEXT$$ = merge(\"[\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7E]\", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext\n//const VCHAR$$ = \"[\\\\x21-\\\\x7E]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QP$ = subexp(\"\\\\\\\\\" + merge(\"[\\\\x00\\\\x0D\\\\x0A]\", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext\n//const FWS$ = subexp(subexp(WSP$$ + \"*\" + \"\\\\x0D\\\\x0A\") + \"?\" + WSP$$ + \"+\");\n//const QUOTED_PAIR$ = subexp(subexp(\"\\\\\\\\\" + subexp(VCHAR$$ + \"|\" + WSP$$)) + \"|\" + OBS_QP$);\n//const QUOTED_STRING$ = subexp('\\\\\"' + subexp(FWS$ + \"?\" + QCONTENT$) + \"*\" + FWS$ + \"?\" + '\\\\\"');\nconst ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\$\\\\%\\\\'\\\\*\\\\+\\\\-\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\nconst QTEXT$$ = \"[\\\\!\\\\$\\\\%\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\-\\\\.0-9\\\\<\\\\>A-Z\\\\x5E-\\\\x7E]\";\nconst VCHAR$$ = merge(QTEXT$$, \"[\\\\\\\"\\\\\\\\]\");\nconst DOT_ATOM_TEXT$ = subexp(ATEXT$$ + \"+\" + subexp(\"\\\\.\" + ATEXT$$ + \"+\") + \"*\");\nconst QUOTED_PAIR$ = subexp(\"\\\\\\\\\" + VCHAR$$);\nconst QCONTENT$ = subexp(QTEXT$$ + \"|\" + QUOTED_PAIR$);\nconst QUOTED_STRING$ = subexp('\\\\\"' + QCONTENT$ + \"*\" + '\\\\\"');\n\n//RFC 6068\nconst DTEXT_NO_OBS$$ = \"[\\\\x21-\\\\x5A\\\\x5E-\\\\x7E]\"; //%d33-90 / %d94-126\nconst SOME_DELIMS$$ = \"[\\\\!\\\\$\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\:\\\\@]\";\nconst QCHAR$ = subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$ + \"|\" + SOME_DELIMS$$);\nconst DOMAIN$ = subexp(DOT_ATOM_TEXT$ + \"|\" + \"\\\\[\" + DTEXT_NO_OBS$$ + \"*\" + \"\\\\]\");\nconst LOCAL_PART$ = subexp(DOT_ATOM_TEXT$ + \"|\" + QUOTED_STRING$);\nconst ADDR_SPEC$ = subexp(LOCAL_PART$ + \"\\\\@\" + DOMAIN$);\nconst TO$ = subexp(ADDR_SPEC$ + subexp(\"\\\\,\" + ADDR_SPEC$) + \"*\");\nconst HFNAME$ = subexp(QCHAR$ + \"*\");\nconst HFVALUE$ = HFNAME$;\nconst HFIELD$ = subexp(HFNAME$ + \"\\\\=\" + HFVALUE$);\nconst HFIELDS2$ = subexp(HFIELD$ + subexp(\"\\\\&\" + HFIELD$) + \"*\");\nconst HFIELDS$ = subexp(\"\\\\?\" + HFIELDS2$);\nconst MAILTO_URI = new RegExp(\"^mailto\\\\:\" + TO$ + \"?\" + HFIELDS$ + \"?$\");\n\nconst UNRESERVED = new RegExp(UNRESERVED$$, \"g\");\nconst PCT_ENCODED = new RegExp(PCT_ENCODED$, \"g\");\nconst NOT_LOCAL_PART = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", '[\\\\\"]', VCHAR$$), \"g\");\nconst NOT_DOMAIN = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", \"[\\\\[]\", DTEXT_NO_OBS$$, \"[\\\\]]\"), \"g\");\nconst NOT_HFNAME = new RegExp(merge(\"[^]\", UNRESERVED$$, SOME_DELIMS$$), \"g\");\nconst NOT_HFVALUE = NOT_HFNAME;\nconst TO = new RegExp(\"^\" + TO$ + \"$\");\nconst HFIELDS = new RegExp(\"^\" + HFIELDS2$ + \"$\");\n\nfunction decodeUnreserved(str:string):string {\n\tconst decStr = pctDecChars(str);\n\treturn (!decStr.match(UNRESERVED) ? str : decStr);\n}\n\nconst handler:URISchemeHandler<MailtoComponents> = {\n\tscheme : \"mailto\",\n\n\tparse : function (components:URIComponents, options:URIOptions):MailtoComponents {\n\t\tconst mailtoComponents = components as MailtoComponents;\n\t\tconst to = mailtoComponents.to = (mailtoComponents.path ? mailtoComponents.path.split(\",\") : []);\n\t\tmailtoComponents.path = undefined;\n\n\t\tif (mailtoComponents.query) {\n\t\t\tlet unknownHeaders = false\n\t\t\tconst headers:MailtoHeaders = {};\n\t\t\tconst hfields = mailtoComponents.query.split(\"&\");\n\n\t\t\tfor (let x = 0, xl = hfields.length; x < xl; ++x) {\n\t\t\t\tconst hfield = hfields[x].split(\"=\");\n\n\t\t\t\tswitch (hfield[0]) {\n\t\t\t\t\tcase \"to\":\n\t\t\t\t\t\tconst toAddrs = hfield[1].split(\",\");\n\t\t\t\t\t\tfor (let x = 0, xl = toAddrs.length; x < xl; ++x) {\n\t\t\t\t\t\t\tto.push(toAddrs[x]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"subject\":\n\t\t\t\t\t\tmailtoComponents.subject = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"body\":\n\t\t\t\t\t\tmailtoComponents.body = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tunknownHeaders = true;\n\t\t\t\t\t\theaders[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (unknownHeaders) mailtoComponents.headers = headers;\n\t\t}\n\n\t\tmailtoComponents.query = undefined;\n\n\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\tconst addr = to[x].split(\"@\");\n\n\t\t\taddr[0] = unescapeComponent(addr[0]);\n\n\t\t\tif (!options.unicodeSupport) {\n\t\t\t\t//convert Unicode IDN -> ASCII IDN\n\t\t\t\ttry {\n\t\t\t\t\taddr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());\n\t\t\t\t} catch (e) {\n\t\t\t\t\tmailtoComponents.error = mailtoComponents.error || \"Email address's domain name can not be converted to ASCII via punycode: \" + e;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\taddr[1] = unescapeComponent(addr[1], options).toLowerCase();\n\t\t\t}\n\n\t\t\tto[x] = addr.join(\"@\");\n\t\t}\n\n\t\treturn mailtoComponents;\n\t},\n\n\tserialize : function (mailtoComponents:MailtoComponents, options:URIOptions):URIComponents {\n\t\tconst components = mailtoComponents as URIComponents;\n\t\tconst to = toArray(mailtoComponents.to);\n\t\tif (to) {\n\t\t\tfor (let x = 0, xl = to.length; x < xl; ++x) {\n\t\t\t\tconst toAddr = String(to[x]);\n\t\t\t\tconst atIdx = toAddr.lastIndexOf(\"@\");\n\t\t\t\tconst localPart = (toAddr.slice(0, atIdx)).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);\n\t\t\t\tlet domain = toAddr.slice(atIdx + 1);\n\n\t\t\t\t//convert IDN via punycode\n\t\t\t\ttry {\n\t\t\t\t\tdomain = (!options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain));\n\t\t\t\t} catch (e) {\n\t\t\t\t\tcomponents.error = components.error || \"Email address's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n\t\t\t\t}\n\n\t\t\t\tto[x] = localPart + \"@\" + domain;\n\t\t\t}\n\n\t\t\tcomponents.path = to.join(\",\");\n\t\t}\n\n\t\tconst headers = mailtoComponents.headers = mailtoComponents.headers || {};\n\n\t\tif (mailtoComponents.subject) headers[\"subject\"] = mailtoComponents.subject;\n\t\tif (mailtoComponents.body) headers[\"body\"] = mailtoComponents.body;\n\n\t\tconst fields = [];\n\t\tfor (const name in headers) {\n\t\t\tif (headers[name] !== O[name]) {\n\t\t\t\tfields.push(\n\t\t\t\t\tname.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) +\n\t\t\t\t\t\"=\" +\n\t\t\t\t\theaders[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tif (fields.length) {\n\t\t\tcomponents.query = fields.join(\"&\");\n\t\t}\n\n\t\treturn components;\n\t}\n}\n\nexport default handler;","import { URIRegExps } from \"./uri\";\nimport { buildExps } from \"./regexps-uri\";\n\nexport default buildExps(true);\n","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"http\",\n\n\tdomainHost : true,\n\n\tparse : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\t//report missing host\n\t\tif (!components.host) {\n\t\t\tcomponents.error = components.error || \"HTTP URIs must have a host.\";\n\t\t}\n\n\t\treturn components;\n\t},\n\n\tserialize : function (components:URIComponents, options:URIOptions):URIComponents {\n\t\t//normalize the default port\n\t\tif (components.port === (String(components.scheme).toLowerCase() !== \"https\" ? 80 : 443) || components.port === \"\") {\n\t\t\tcomponents.port = undefined;\n\t\t}\n\t\t\n\t\t//normalize the empty path\n\t\tif (!components.path) {\n\t\t\tcomponents.path = \"/\";\n\t\t}\n\n\t\t//NOTE: We do not parse query strings for HTTP URIs\n\t\t//as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n\t\t//and not the HTTP spec.\n\n\t\treturn components;\n\t}\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport http from \"./http\";\n\nconst handler:URISchemeHandler = {\n\tscheme : \"https\",\n\tdomainHost : http.domainHost,\n\tparse : http.parse,\n\tserialize : http.serialize\n}\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { pctEncChar, SCHEMES } from \"../uri\";\n\nexport interface URNComponents extends URIComponents {\n\tnid?:string;\n\tnss?:string;\n}\n\nexport interface URNOptions extends URIOptions {\n\tnid?:string;\n}\n\nconst NID$ = \"(?:[0-9A-Za-z][0-9A-Za-z\\\\-]{1,31})\";\nconst PCT_ENCODED$ = \"(?:\\\\%[0-9A-Fa-f]{2})\";\nconst TRANS$$ = \"[0-9A-Za-z\\\\(\\\\)\\\\+\\\\,\\\\-\\\\.\\\\:\\\\=\\\\@\\\\;\\\\$\\\\_\\\\!\\\\*\\\\'\\\\/\\\\?\\\\#]\";\nconst NSS$ = \"(?:(?:\" + PCT_ENCODED$ + \"|\" + TRANS$$ + \")+)\";\nconst URN_SCHEME = new RegExp(\"^urn\\\\:(\" + NID$ + \")$\");\nconst URN_PATH = new RegExp(\"^(\" + NID$ + \")\\\\:(\" + NSS$ + \")$\");\nconst URN_PARSE = /^([^\\:]+)\\:(.*)/;\nconst URN_EXCLUDED = /[\\x00-\\x20\\\\\\\"\\&\\<\\>\\[\\]\\^\\`\\{\\|\\}\\~\\x7F-\\xFF]/g;\n\n//RFC 2141\nconst handler:URISchemeHandler<URNComponents,URNOptions> = {\n\tscheme : \"urn\",\n\n\tparse : function (components:URIComponents, options:URNOptions):URNComponents {\n\t\tconst matches = components.path && components.path.match(URN_PARSE);\n\t\tlet urnComponents = components as URNComponents;\n\n\t\tif (matches) {\n\t\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\t\tconst nid = matches[1].toLowerCase();\n\t\t\tconst nss = matches[2];\n\t\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\t\turnComponents.nid = nid;\n\t\t\turnComponents.nss = nss;\n\t\t\turnComponents.path = undefined;\n\n\t\t\tif (schemeHandler) {\n\t\t\t\turnComponents = schemeHandler.parse(urnComponents, options) as URNComponents;\n\t\t\t}\n\t\t} else {\n\t\t\turnComponents.error = urnComponents.error || \"URN can not be parsed.\";\n\t\t}\n\n\t\treturn urnComponents;\n\t},\n\n\tserialize : function (urnComponents:URNComponents, options:URNOptions):URIComponents {\n\t\tconst scheme = options.scheme || urnComponents.scheme || \"urn\";\n\t\tconst nid = urnComponents.nid;\n\t\tconst urnScheme = `${scheme}:${options.nid || nid}`;\n\t\tconst schemeHandler = SCHEMES[urnScheme];\n\n\t\tif (schemeHandler) {\n\t\t\turnComponents = schemeHandler.serialize(urnComponents, options) as URNComponents;\n\t\t}\n\n\t\tconst uriComponents = urnComponents as URIComponents;\n\t\tconst nss = urnComponents.nss;\n\t\turiComponents.path = `${nid || options.nid}:${nss}`;\n\n\t\treturn uriComponents;\n\t},\n};\n\nexport default handler;","import { URISchemeHandler, URIComponents, URIOptions } from \"../uri\";\nimport { URNComponents } from \"./urn\";\nimport { SCHEMES } from \"../uri\";\n\nexport interface UUIDComponents extends URNComponents {\n\tuuid?: string;\n}\n\nconst UUID = /^[0-9A-Fa-f]{8}(?:\\-[0-9A-Fa-f]{4}){3}\\-[0-9A-Fa-f]{12}$/;\nconst UUID_PARSE = /^[0-9A-Fa-f\\-]{36}/;\n\n//RFC 4122\nconst handler:URISchemeHandler<UUIDComponents, URIOptions, URNComponents> = {\n\tscheme : \"urn:uuid\",\n\n\tparse : function (urnComponents:URNComponents, options:URIOptions):UUIDComponents {\n\t\tconst uuidComponents = urnComponents as UUIDComponents;\n\t\tuuidComponents.uuid = uuidComponents.nss;\n\t\tuuidComponents.nss = undefined;\n\n\t\tif (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {\n\t\t\tuuidComponents.error = uuidComponents.error || \"UUID is not valid.\";\n\t\t}\n\n\t\treturn uuidComponents;\n\t},\n\n\tserialize : function (uuidComponents:UUIDComponents, options:URIOptions):URNComponents {\n\t\tconst urnComponents = uuidComponents as URNComponents;\n\t\t//normalize UUID\n\t\turnComponents.nss = (uuidComponents.uuid || \"\").toLowerCase();\n\t\treturn urnComponents;\n\t},\n};\n\nexport default handler;","import { SCHEMES } from \"./uri\";\n\nimport http from \"./schemes/http\";\nSCHEMES[http.scheme] = http;\n\nimport https from \"./schemes/https\";\nSCHEMES[https.scheme] = https;\n\nimport mailto from \"./schemes/mailto\";\nSCHEMES[mailto.scheme] = mailto;\n\nimport urn from \"./schemes/urn\";\nSCHEMES[urn.scheme] = urn;\n\nimport uuid from \"./schemes/urn-uuid\";\nSCHEMES[uuid.scheme] = uuid;\n\nexport * from \"./uri\";\n"]} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/index.d.ts b/node_modules/uri-js/dist/esnext/index.d.ts
deleted file mode 100644
index be95efb..0000000
--- a/node_modules/uri-js/dist/esnext/index.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./uri";
diff --git a/node_modules/uri-js/dist/esnext/index.js b/node_modules/uri-js/dist/esnext/index.js
deleted file mode 100644
index de8868f..0000000
--- a/node_modules/uri-js/dist/esnext/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import { SCHEMES } from "./uri";
-import http from "./schemes/http";
-SCHEMES[http.scheme] = http;
-import https from "./schemes/https";
-SCHEMES[https.scheme] = https;
-import mailto from "./schemes/mailto";
-SCHEMES[mailto.scheme] = mailto;
-import urn from "./schemes/urn";
-SCHEMES[urn.scheme] = urn;
-import uuid from "./schemes/urn-uuid";
-SCHEMES[uuid.scheme] = uuid;
-export * from "./uri";
-//# sourceMappingURL=index.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/index.js.map b/node_modules/uri-js/dist/esnext/index.js.map
deleted file mode 100644
index e9e4008..0000000
--- a/node_modules/uri-js/dist/esnext/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE5B,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;AAE9B,OAAO,MAAM,MAAM,kBAAkB,CAAC;AACtC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAEhC,OAAO,GAAG,MAAM,eAAe,CAAC;AAChC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AAE1B,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE5B,cAAc,OAAO,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.d.ts b/node_modules/uri-js/dist/esnext/regexps-iri.d.ts
deleted file mode 100644
index 6fc0f5d..0000000
--- a/node_modules/uri-js/dist/esnext/regexps-iri.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { URIRegExps } from "./uri";
-declare const _default: URIRegExps;
-export default _default;
diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.js b/node_modules/uri-js/dist/esnext/regexps-iri.js
deleted file mode 100644
index 86239cf..0000000
--- a/node_modules/uri-js/dist/esnext/regexps-iri.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import { buildExps } from "./regexps-uri";
-export default buildExps(true);
-//# sourceMappingURL=regexps-iri.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/regexps-iri.js.map b/node_modules/uri-js/dist/esnext/regexps-iri.js.map
deleted file mode 100644
index 2269c58..0000000
--- a/node_modules/uri-js/dist/esnext/regexps-iri.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"regexps-iri.js","sourceRoot":"","sources":["../../src/regexps-iri.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,eAAe,SAAS,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.d.ts b/node_modules/uri-js/dist/esnext/regexps-uri.d.ts
deleted file mode 100644
index 10ec87b..0000000
--- a/node_modules/uri-js/dist/esnext/regexps-uri.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { URIRegExps } from "./uri";
-export declare function buildExps(isIRI: boolean): URIRegExps;
-declare const _default: URIRegExps;
-export default _default;
diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.js b/node_modules/uri-js/dist/esnext/regexps-uri.js
deleted file mode 100644
index 6e7e9a0..0000000
--- a/node_modules/uri-js/dist/esnext/regexps-uri.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import { merge, subexp } from "./util";
-export function buildExps(isIRI) {
- const ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), //case-insensitive
- LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), //expanded
- GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", //subset, excludes bidi control characters
- IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", //subset
- UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), //relaxed parsing rules
- IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$ + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), // 6( h16 ":" ) ls32
- IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), // "::" 5( h16 ":" ) ls32
- IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), //[ h16 ] "::" 4( h16 ":" ) ls32
- IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
- IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
- IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
- IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), //[ *4( h16 ":" ) h16 ] "::" ls32
- IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), //[ *5( h16 ":" ) h16 ] "::" h16
- IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), //[ *6( h16 ":" ) h16 ] "::"
- IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), //RFC 6874
- IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), //RFC 6874
- IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), //RFC 6874, with relaxed parsing rules
- IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), //RFC 6874
- REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), //simplified
- PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), //simplified
- PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), //simplified
- PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
- return {
- NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
- NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
- NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
- ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- UNRESERVED: new RegExp(UNRESERVED$$, "g"),
- OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
- PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
- IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
- IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules
- };
-}
-export default buildExps(false);
-//# sourceMappingURL=regexps-uri.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/regexps-uri.js.map b/node_modules/uri-js/dist/esnext/regexps-uri.js.map
deleted file mode 100644
index cb028b8..0000000
--- a/node_modules/uri-js/dist/esnext/regexps-uri.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"regexps-uri.js","sourceRoot":"","sources":["../../src/regexps-uri.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,oBAAoB,KAAa;IACtC,MACC,OAAO,GAAG,UAAU,EACpB,GAAG,GAAG,SAAS,EACf,OAAO,GAAG,OAAO,EACjB,QAAQ,GAAG,SAAS,EACpB,QAAQ,GAAG,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,EAAG,kBAAkB;IAC1D,IAAI,GAAG,SAAS,EAChB,IAAI,GAAG,SAAS,EAChB,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,aAAa,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC,EAAG,UAAU;IACvO,YAAY,GAAG,yBAAyB,EACxC,YAAY,GAAG,qCAAqC,EACpD,UAAU,GAAG,KAAK,CAAC,YAAY,EAAE,YAAY,CAAC,EAC9C,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,6EAA6E,CAAC,CAAC,CAAC,IAAI,EAAG,0CAA0C;IACrJ,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,EAAG,QAAQ;IAC1D,YAAY,GAAG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,CAAC,EACnE,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,GAAG,GAAG,CAAC,EACxE,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,GAAG,GAAG,GAAG,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACjG,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,OAAO,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,OAAO,CAAC,EACnK,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,OAAO,GAAG,OAAO,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,OAAO,GAAG,OAAO,CAAC,EAAG,uBAAuB;IAC3M,YAAY,GAAG,MAAM,CAAC,kBAAkB,GAAG,KAAK,GAAG,kBAAkB,GAAG,KAAK,GAAG,kBAAkB,GAAG,KAAK,GAAG,kBAAkB,CAAC,EAChI,IAAI,GAAG,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC,EACjC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,GAAG,GAAG,YAAY,CAAC,EAChE,aAAa,GAAG,MAAM,CAA6D,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC,EAAE,8CAA8C;IACxK,aAAa,GAAG,MAAM,CAAkD,QAAQ,GAAG,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC,EAAE,8CAA8C;IACxK,aAAa,GAAG,MAAM,CAAC,MAAM,CAAkC,IAAI,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC,EAAE,8CAA8C;IACxK,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC,EAAE,8CAA8C;IACxK,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,GAAG,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC,EAAE,8CAA8C;IACxK,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,GAAU,IAAI,GAAG,KAAK,GAAY,KAAK,CAAC,EAAE,8CAA8C;IACxK,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,GAAkC,KAAK,CAAC,EAAE,8CAA8C;IACxK,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,GAAkC,IAAI,CAAE,EAAE,6CAA6C;IACvK,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC,GAAG,SAAS,CAAwC,EAAE,4BAA4B;IACtJ,YAAY,GAAG,MAAM,CAAC,CAAC,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EACxK,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,GAAG,GAAG,GAAG,YAAY,CAAC,GAAG,GAAG,CAAC,EAAG,UAAU;IAC9E,UAAU,GAAG,MAAM,CAAC,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC,EAAG,UAAU;IAClE,kBAAkB,GAAG,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG,OAAO,CAAC,EAAG,sCAAsC;IACzI,UAAU,GAAG,MAAM,CAAC,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,EAClG,WAAW,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,kBAAkB,GAAG,GAAG,GAAG,YAAY,GAAG,GAAG,GAAG,UAAU,CAAC,GAAG,KAAK,CAAC,EAAG,UAAU;IACrH,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,GAAG,GAAG,GAAG,KAAK,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,GAAG,GAAG,CAAC,EACxF,KAAK,GAAG,MAAM,CAAC,WAAW,GAAG,GAAG,GAAG,YAAY,GAAG,KAAK,GAAG,SAAS,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC,EAC5F,KAAK,GAAG,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC,EAC7B,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,KAAK,GAAG,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,EACxF,MAAM,GAAG,MAAM,CAAC,YAAY,GAAG,GAAG,GAAG,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,EACnF,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAC/B,WAAW,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,EAClC,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,GAAG,GAAG,GAAG,KAAK,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,EACtG,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,GAAG,GAAG,CAAC,EACtD,cAAc,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,WAAW,GAAG,aAAa,CAAC,GAAG,GAAG,CAAC,EAAG,YAAY;IACzF,cAAc,GAAG,MAAM,CAAC,cAAc,GAAG,aAAa,CAAC,EAAG,YAAY;IACtE,cAAc,GAAG,MAAM,CAAC,WAAW,GAAG,aAAa,CAAC,EAAG,YAAY;IACnE,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,GAAG,EAClC,KAAK,GAAG,MAAM,CAAC,aAAa,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,WAAW,CAAC,EACtH,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,GAAG,GAAG,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,GAAG,GAAG,CAAC,EAC3E,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,EACtD,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,WAAW,CAAC,EACpI,IAAI,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,GAAG,CAAC,EAC5G,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,WAAW,CAAC,EACxI,SAAS,GAAG,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,GAAG,CAAC,EACnG,cAAc,GAAG,MAAM,CAAC,IAAI,GAAG,GAAG,GAAG,SAAS,CAAC,EAC/C,aAAa,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,GAAG,CAAC,EAEnF,YAAY,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,aAAa,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,WAAW,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,SAAS,GAAG,GAAG,CAAC,GAAG,IAAI,EAC7U,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,aAAa,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,WAAW,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,SAAS,GAAG,GAAG,CAAC,GAAG,IAAI,EAC/T,aAAa,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,aAAa,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,GAAG,WAAW,GAAG,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,EACrS,YAAY,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,SAAS,GAAG,GAAG,CAAC,GAAG,IAAI,EAC5D,cAAc,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,CAChH;IAED,OAAO;QACN,UAAU,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC;QAC3E,YAAY,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,WAAW,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC;QAC9E,QAAQ,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC;QAChF,QAAQ,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,iBAAiB,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC;QAChF,iBAAiB,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,cAAc,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC;QACtF,SAAS,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC;QACtG,YAAY,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,CAAC,EAAE,GAAG,CAAC;QAC7F,MAAM,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE,GAAG,CAAC;QAClE,UAAU,EAAG,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;QAC1C,WAAW,EAAG,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,GAAG,CAAC;QACxE,WAAW,EAAG,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;QAC3C,WAAW,EAAG,IAAI,MAAM,CAAC,IAAI,GAAG,YAAY,GAAG,IAAI,CAAC;QACpD,WAAW,EAAG,IAAI,MAAM,CAAC,QAAQ,GAAG,YAAY,GAAG,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG,GAAG,GAAG,OAAO,GAAG,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAE,sCAAsC;KACrL,CAAC;AACH,CAAC;AAED,eAAe,SAAS,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/http.d.ts b/node_modules/uri-js/dist/esnext/schemes/http.d.ts
deleted file mode 100644
index 3899956..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/http.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { URISchemeHandler } from "../uri";
-declare const handler: URISchemeHandler;
-export default handler;
diff --git a/node_modules/uri-js/dist/esnext/schemes/http.js b/node_modules/uri-js/dist/esnext/schemes/http.js
deleted file mode 100644
index a280369..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/http.js
+++ /dev/null
@@ -1,27 +0,0 @@
-const handler = {
- scheme: "http",
- domainHost: true,
- parse: function (components, options) {
- //report missing host
- if (!components.host) {
- components.error = components.error || "HTTP URIs must have a host.";
- }
- return components;
- },
- serialize: function (components, options) {
- //normalize the default port
- if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") {
- components.port = undefined;
- }
- //normalize the empty path
- if (!components.path) {
- components.path = "/";
- }
- //NOTE: We do not parse query strings for HTTP URIs
- //as WWW Form Url Encoded query strings are part of the HTML4+ spec,
- //and not the HTTP spec.
- return components;
- }
-};
-export default handler;
-//# sourceMappingURL=http.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/http.js.map b/node_modules/uri-js/dist/esnext/schemes/http.js.map
deleted file mode 100644
index 83e2ad5..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/http.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/schemes/http.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAoB;IAChC,MAAM,EAAG,MAAM;IAEf,UAAU,EAAG,IAAI;IAEjB,KAAK,EAAG,UAAU,UAAwB,EAAE,OAAkB;QAC7D,qBAAqB;QACrB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YACrB,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,6BAA6B,CAAC;SACrE;QAED,OAAO,UAAU,CAAC;IACnB,CAAC;IAED,SAAS,EAAG,UAAU,UAAwB,EAAE,OAAkB;QACjE,4BAA4B;QAC5B,IAAI,UAAU,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,IAAI,KAAK,EAAE,EAAE;YACnH,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;SAC5B;QAED,0BAA0B;QAC1B,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;YACrB,UAAU,CAAC,IAAI,GAAG,GAAG,CAAC;SACtB;QAED,mDAAmD;QACnD,oEAAoE;QACpE,wBAAwB;QAExB,OAAO,UAAU,CAAC;IACnB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/https.d.ts b/node_modules/uri-js/dist/esnext/schemes/https.d.ts
deleted file mode 100644
index 3899956..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/https.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { URISchemeHandler } from "../uri";
-declare const handler: URISchemeHandler;
-export default handler;
diff --git a/node_modules/uri-js/dist/esnext/schemes/https.js b/node_modules/uri-js/dist/esnext/schemes/https.js
deleted file mode 100644
index fc3c71a..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/https.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import http from "./http";
-const handler = {
- scheme: "https",
- domainHost: http.domainHost,
- parse: http.parse,
- serialize: http.serialize
-};
-export default handler;
-//# sourceMappingURL=https.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/https.js.map b/node_modules/uri-js/dist/esnext/schemes/https.js.map
deleted file mode 100644
index 385b8ef..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/https.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"https.js","sourceRoot":"","sources":["../../../src/schemes/https.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,OAAO,GAAoB;IAChC,MAAM,EAAG,OAAO;IAChB,UAAU,EAAG,IAAI,CAAC,UAAU;IAC5B,KAAK,EAAG,IAAI,CAAC,KAAK;IAClB,SAAS,EAAG,IAAI,CAAC,SAAS;CAC1B,CAAA;AAED,eAAe,OAAO,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts b/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts
deleted file mode 100644
index b0db4bf..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { URISchemeHandler, URIComponents } from "../uri";
-export interface MailtoHeaders {
- [hfname: string]: string;
-}
-export interface MailtoComponents extends URIComponents {
- to: Array<string>;
- headers?: MailtoHeaders;
- subject?: string;
- body?: string;
-}
-declare const handler: URISchemeHandler<MailtoComponents>;
-export default handler;
diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.js b/node_modules/uri-js/dist/esnext/schemes/mailto.js
deleted file mode 100644
index 2553713..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/mailto.js
+++ /dev/null
@@ -1,148 +0,0 @@
-import { pctEncChar, pctDecChars, unescapeComponent } from "../uri";
-import punycode from "punycode";
-import { merge, subexp, toUpperCase, toArray } from "../util";
-const O = {};
-const isIRI = true;
-//RFC 3986
-const UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
-const HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
-const PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
-//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
-//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127)
-//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext
-//const VCHAR$$ = "[\\x21-\\x7E]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext
-//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+");
-//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$);
-//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"');
-const ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
-const QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
-const VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
-const DOT_ATOM_TEXT$ = subexp(ATEXT$$ + "+" + subexp("\\." + ATEXT$$ + "+") + "*");
-const QUOTED_PAIR$ = subexp("\\\\" + VCHAR$$);
-const QCONTENT$ = subexp(QTEXT$$ + "|" + QUOTED_PAIR$);
-const QUOTED_STRING$ = subexp('\\"' + QCONTENT$ + "*" + '\\"');
-//RFC 6068
-const DTEXT_NO_OBS$$ = "[\\x21-\\x5A\\x5E-\\x7E]"; //%d33-90 / %d94-126
-const SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
-const QCHAR$ = subexp(UNRESERVED$$ + "|" + PCT_ENCODED$ + "|" + SOME_DELIMS$$);
-const DOMAIN$ = subexp(DOT_ATOM_TEXT$ + "|" + "\\[" + DTEXT_NO_OBS$$ + "*" + "\\]");
-const LOCAL_PART$ = subexp(DOT_ATOM_TEXT$ + "|" + QUOTED_STRING$);
-const ADDR_SPEC$ = subexp(LOCAL_PART$ + "\\@" + DOMAIN$);
-const TO$ = subexp(ADDR_SPEC$ + subexp("\\," + ADDR_SPEC$) + "*");
-const HFNAME$ = subexp(QCHAR$ + "*");
-const HFVALUE$ = HFNAME$;
-const HFIELD$ = subexp(HFNAME$ + "\\=" + HFVALUE$);
-const HFIELDS2$ = subexp(HFIELD$ + subexp("\\&" + HFIELD$) + "*");
-const HFIELDS$ = subexp("\\?" + HFIELDS2$);
-const MAILTO_URI = new RegExp("^mailto\\:" + TO$ + "?" + HFIELDS$ + "?$");
-const UNRESERVED = new RegExp(UNRESERVED$$, "g");
-const PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
-const NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
-const NOT_DOMAIN = new RegExp(merge("[^]", ATEXT$$, "[\\.]", "[\\[]", DTEXT_NO_OBS$$, "[\\]]"), "g");
-const NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
-const NOT_HFVALUE = NOT_HFNAME;
-const TO = new RegExp("^" + TO$ + "$");
-const HFIELDS = new RegExp("^" + HFIELDS2$ + "$");
-function decodeUnreserved(str) {
- const decStr = pctDecChars(str);
- return (!decStr.match(UNRESERVED) ? str : decStr);
-}
-const handler = {
- scheme: "mailto",
- parse: function (components, options) {
- const mailtoComponents = components;
- const to = mailtoComponents.to = (mailtoComponents.path ? mailtoComponents.path.split(",") : []);
- mailtoComponents.path = undefined;
- if (mailtoComponents.query) {
- let unknownHeaders = false;
- const headers = {};
- const hfields = mailtoComponents.query.split("&");
- for (let x = 0, xl = hfields.length; x < xl; ++x) {
- const hfield = hfields[x].split("=");
- switch (hfield[0]) {
- case "to":
- const toAddrs = hfield[1].split(",");
- for (let x = 0, xl = toAddrs.length; x < xl; ++x) {
- to.push(toAddrs[x]);
- }
- break;
- case "subject":
- mailtoComponents.subject = unescapeComponent(hfield[1], options);
- break;
- case "body":
- mailtoComponents.body = unescapeComponent(hfield[1], options);
- break;
- default:
- unknownHeaders = true;
- headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
- break;
- }
- }
- if (unknownHeaders)
- mailtoComponents.headers = headers;
- }
- mailtoComponents.query = undefined;
- for (let x = 0, xl = to.length; x < xl; ++x) {
- const addr = to[x].split("@");
- addr[0] = unescapeComponent(addr[0]);
- if (!options.unicodeSupport) {
- //convert Unicode IDN -> ASCII IDN
- try {
- addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
- }
- catch (e) {
- mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
- }
- }
- else {
- addr[1] = unescapeComponent(addr[1], options).toLowerCase();
- }
- to[x] = addr.join("@");
- }
- return mailtoComponents;
- },
- serialize: function (mailtoComponents, options) {
- const components = mailtoComponents;
- const to = toArray(mailtoComponents.to);
- if (to) {
- for (let x = 0, xl = to.length; x < xl; ++x) {
- const toAddr = String(to[x]);
- const atIdx = toAddr.lastIndexOf("@");
- const localPart = (toAddr.slice(0, atIdx)).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
- let domain = toAddr.slice(atIdx + 1);
- //convert IDN via punycode
- try {
- domain = (!options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain));
- }
- catch (e) {
- components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
- to[x] = localPart + "@" + domain;
- }
- components.path = to.join(",");
- }
- const headers = mailtoComponents.headers = mailtoComponents.headers || {};
- if (mailtoComponents.subject)
- headers["subject"] = mailtoComponents.subject;
- if (mailtoComponents.body)
- headers["body"] = mailtoComponents.body;
- const fields = [];
- for (const name in headers) {
- if (headers[name] !== O[name]) {
- fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) +
- "=" +
- headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
- }
- }
- if (fields.length) {
- components.query = fields.join("&");
- }
- return components;
- }
-};
-export default handler;
-//# sourceMappingURL=mailto.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/mailto.js.map b/node_modules/uri-js/dist/esnext/schemes/mailto.js.map
deleted file mode 100644
index 82dba9a..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/mailto.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"mailto.js","sourceRoot":"","sources":["../../../src/schemes/mailto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAa9D,MAAM,CAAC,GAAiB,EAAE,CAAC;AAC3B,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,UAAU;AACV,MAAM,YAAY,GAAG,wBAAwB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,2EAA2E,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;AACjJ,MAAM,QAAQ,GAAG,aAAa,CAAC,CAAE,kBAAkB;AACnD,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,aAAa,GAAG,QAAQ,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAE,UAAU;AAE7O,qEAAqE;AACrE,yFAAyF;AACzF,+BAA+B;AAC/B,uGAAuG;AACvG,+GAA+G;AAC/G,kCAAkC;AAClC,+BAA+B;AAC/B,wGAAwG;AACxG,8EAA8E;AAC9E,8FAA8F;AAC9F,mGAAmG;AACnG,MAAM,OAAO,GAAG,uDAAuD,CAAC;AACxE,MAAM,OAAO,GAAG,4DAA4D,CAAC;AAC7E,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AAC7C,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,OAAO,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC;AACnF,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC;AAC9C,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,GAAG,GAAG,GAAG,YAAY,CAAC,CAAC;AACvD,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,GAAG,SAAS,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC;AAE/D,UAAU;AACV,MAAM,cAAc,GAAG,0BAA0B,CAAC,CAAE,oBAAoB;AACxE,MAAM,aAAa,GAAG,qCAAqC,CAAC;AAC5D,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,GAAG,GAAG,GAAG,YAAY,GAAG,GAAG,GAAG,aAAa,CAAC,CAAC;AAC/E,MAAM,OAAO,GAAG,MAAM,CAAC,cAAc,GAAG,GAAG,GAAG,KAAK,GAAG,cAAc,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC;AACpF,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,GAAG,GAAG,GAAG,cAAc,CAAC,CAAC;AAClE,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,GAAG,KAAK,GAAG,OAAO,CAAC,CAAC;AACzD,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,GAAG,CAAC,CAAC;AAClE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;AACrC,MAAM,QAAQ,GAAG,OAAO,CAAC;AACzB,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAC;AACnD,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC;AAClE,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;AAC3C,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,QAAQ,GAAG,IAAI,CAAC,CAAC;AAE1E,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;AACjD,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;AAClD,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC;AACzF,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC;AACrG,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC,CAAC;AAC9E,MAAM,WAAW,GAAG,UAAU,CAAC;AAC/B,MAAM,EAAE,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;AACvC,MAAM,OAAO,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,GAAG,CAAC,CAAC;AAElD,0BAA0B,GAAU;IACnC,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,OAAO,GAAuC;IACnD,MAAM,EAAG,QAAQ;IAEjB,KAAK,EAAG,UAAU,UAAwB,EAAE,OAAkB;QAC7D,MAAM,gBAAgB,GAAG,UAA8B,CAAC;QACxD,MAAM,EAAE,GAAG,gBAAgB,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACjG,gBAAgB,CAAC,IAAI,GAAG,SAAS,CAAC;QAElC,IAAI,gBAAgB,CAAC,KAAK,EAAE;YAC3B,IAAI,cAAc,GAAG,KAAK,CAAA;YAC1B,MAAM,OAAO,GAAiB,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAElD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE;gBACjD,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAErC,QAAQ,MAAM,CAAC,CAAC,CAAC,EAAE;oBAClB,KAAK,IAAI;wBACR,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;wBACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE;4BACjD,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;yBACpB;wBACD,MAAM;oBACP,KAAK,SAAS;wBACb,gBAAgB,CAAC,OAAO,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;wBACjE,MAAM;oBACP,KAAK,MAAM;wBACV,gBAAgB,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;wBAC9D,MAAM;oBACP;wBACC,cAAc,GAAG,IAAI,CAAC;wBACtB,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;wBACvF,MAAM;iBACP;aACD;YAED,IAAI,cAAc;gBAAE,gBAAgB,CAAC,OAAO,GAAG,OAAO,CAAC;SACvD;QAED,gBAAgB,CAAC,KAAK,GAAG,SAAS,CAAC;QAEnC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE;YAC5C,MAAM,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAE9B,IAAI,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAErC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;gBAC5B,kCAAkC;gBAClC,IAAI;oBACH,IAAI,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;iBAC9E;gBAAC,OAAO,CAAC,EAAE;oBACX,gBAAgB,CAAC,KAAK,GAAG,gBAAgB,CAAC,KAAK,IAAI,0EAA0E,GAAG,CAAC,CAAC;iBAClI;aACD;iBAAM;gBACN,IAAI,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;aAC5D;YAED,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACvB;QAED,OAAO,gBAAgB,CAAC;IACzB,CAAC;IAED,SAAS,EAAG,UAAU,gBAAiC,EAAE,OAAkB;QAC1E,MAAM,UAAU,GAAG,gBAAiC,CAAC;QACrD,MAAM,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;QACxC,IAAI,EAAE,EAAE;YACP,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE;gBAC5C,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;gBACtC,MAAM,SAAS,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;gBACxJ,IAAI,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAErC,0BAA0B;gBAC1B,IAAI;oBACH,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;iBAC1H;gBAAC,OAAO,CAAC,EAAE;oBACX,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,sDAAsD,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,iBAAiB,GAAG,CAAC,CAAC;iBAC7J;gBAED,EAAE,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,GAAG,GAAG,MAAM,CAAC;aACjC;YAED,UAAU,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC/B;QAED,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,GAAG,gBAAgB,CAAC,OAAO,IAAI,EAAE,CAAC;QAE1E,IAAI,gBAAgB,CAAC,OAAO;YAAE,OAAO,CAAC,SAAS,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC;QAC5E,IAAI,gBAAgB,CAAC,IAAI;YAAE,OAAO,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,IAAI,CAAC;QAEnE,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE;YAC3B,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE;gBAC9B,MAAM,CAAC,IAAI,CACV,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC;oBAC7G,GAAG;oBACH,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CACvH,CAAC;aACF;SACD;QACD,IAAI,MAAM,CAAC,MAAM,EAAE;YAClB,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACpC;QAED,OAAO,UAAU,CAAC;IACnB,CAAC;CACD,CAAA;AAED,eAAe,OAAO,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts
deleted file mode 100644
index 261ddce..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { URISchemeHandler, URIOptions } from "../uri";
-import { URNComponents } from "./urn";
-export interface UUIDComponents extends URNComponents {
- uuid?: string;
-}
-declare const handler: URISchemeHandler<UUIDComponents, URIOptions, URNComponents>;
-export default handler;
diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js
deleted file mode 100644
index 044c8a8..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js
+++ /dev/null
@@ -1,23 +0,0 @@
-const UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
-const UUID_PARSE = /^[0-9A-Fa-f\-]{36}/;
-//RFC 4122
-const handler = {
- scheme: "urn:uuid",
- parse: function (urnComponents, options) {
- const uuidComponents = urnComponents;
- uuidComponents.uuid = uuidComponents.nss;
- uuidComponents.nss = undefined;
- if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
- }
- return uuidComponents;
- },
- serialize: function (uuidComponents, options) {
- const urnComponents = uuidComponents;
- //normalize UUID
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
- return urnComponents;
- },
-};
-export default handler;
-//# sourceMappingURL=urn-uuid.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map b/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map
deleted file mode 100644
index 3b7a8b3..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"urn-uuid.js","sourceRoot":"","sources":["../../../src/schemes/urn-uuid.ts"],"names":[],"mappings":"AAQA,MAAM,IAAI,GAAG,0DAA0D,CAAC;AACxE,MAAM,UAAU,GAAG,oBAAoB,CAAC;AAExC,UAAU;AACV,MAAM,OAAO,GAA+D;IAC3E,MAAM,EAAG,UAAU;IAEnB,KAAK,EAAG,UAAU,aAA2B,EAAE,OAAkB;QAChE,MAAM,cAAc,GAAG,aAA+B,CAAC;QACvD,cAAc,CAAC,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC;QACzC,cAAc,CAAC,GAAG,GAAG,SAAS,CAAC;QAE/B,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE;YACpF,cAAc,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,IAAI,oBAAoB,CAAC;SACpE;QAED,OAAO,cAAc,CAAC;IACvB,CAAC;IAED,SAAS,EAAG,UAAU,cAA6B,EAAE,OAAkB;QACtE,MAAM,aAAa,GAAG,cAA+B,CAAC;QACtD,gBAAgB;QAChB,aAAa,CAAC,GAAG,GAAG,CAAC,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAC9D,OAAO,aAAa,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.d.ts b/node_modules/uri-js/dist/esnext/schemes/urn.d.ts
deleted file mode 100644
index 4948105..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/urn.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { URISchemeHandler, URIComponents, URIOptions } from "../uri";
-export interface URNComponents extends URIComponents {
- nid?: string;
- nss?: string;
-}
-export interface URNOptions extends URIOptions {
- nid?: string;
-}
-declare const handler: URISchemeHandler<URNComponents, URNOptions>;
-export default handler;
diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.js b/node_modules/uri-js/dist/esnext/schemes/urn.js
deleted file mode 100644
index b53161c..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/urn.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import { SCHEMES } from "../uri";
-const NID$ = "(?:[0-9A-Za-z][0-9A-Za-z\\-]{1,31})";
-const PCT_ENCODED$ = "(?:\\%[0-9A-Fa-f]{2})";
-const TRANS$$ = "[0-9A-Za-z\\(\\)\\+\\,\\-\\.\\:\\=\\@\\;\\$\\_\\!\\*\\'\\/\\?\\#]";
-const NSS$ = "(?:(?:" + PCT_ENCODED$ + "|" + TRANS$$ + ")+)";
-const URN_SCHEME = new RegExp("^urn\\:(" + NID$ + ")$");
-const URN_PATH = new RegExp("^(" + NID$ + ")\\:(" + NSS$ + ")$");
-const URN_PARSE = /^([^\:]+)\:(.*)/;
-const URN_EXCLUDED = /[\x00-\x20\\\"\&\<\>\[\]\^\`\{\|\}\~\x7F-\xFF]/g;
-//RFC 2141
-const handler = {
- scheme: "urn",
- parse: function (components, options) {
- const matches = components.path && components.path.match(URN_PARSE);
- let urnComponents = components;
- if (matches) {
- const scheme = options.scheme || urnComponents.scheme || "urn";
- const nid = matches[1].toLowerCase();
- const nss = matches[2];
- const urnScheme = `${scheme}:${options.nid || nid}`;
- const schemeHandler = SCHEMES[urnScheme];
- urnComponents.nid = nid;
- urnComponents.nss = nss;
- urnComponents.path = undefined;
- if (schemeHandler) {
- urnComponents = schemeHandler.parse(urnComponents, options);
- }
- }
- else {
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
- }
- return urnComponents;
- },
- serialize: function (urnComponents, options) {
- const scheme = options.scheme || urnComponents.scheme || "urn";
- const nid = urnComponents.nid;
- const urnScheme = `${scheme}:${options.nid || nid}`;
- const schemeHandler = SCHEMES[urnScheme];
- if (schemeHandler) {
- urnComponents = schemeHandler.serialize(urnComponents, options);
- }
- const uriComponents = urnComponents;
- const nss = urnComponents.nss;
- uriComponents.path = `${nid || options.nid}:${nss}`;
- return uriComponents;
- },
-};
-export default handler;
-//# sourceMappingURL=urn.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/schemes/urn.js.map b/node_modules/uri-js/dist/esnext/schemes/urn.js.map
deleted file mode 100644
index ea43b0b..0000000
--- a/node_modules/uri-js/dist/esnext/schemes/urn.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"urn.js","sourceRoot":"","sources":["../../../src/schemes/urn.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,OAAO,EAAE,MAAM,QAAQ,CAAC;AAW7C,MAAM,IAAI,GAAG,qCAAqC,CAAC;AACnD,MAAM,YAAY,GAAG,uBAAuB,CAAC;AAC7C,MAAM,OAAO,GAAG,mEAAmE,CAAC;AACpF,MAAM,IAAI,GAAG,QAAQ,GAAG,YAAY,GAAG,GAAG,GAAG,OAAO,GAAG,KAAK,CAAC;AAC7D,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;AACxD,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;AACjE,MAAM,SAAS,GAAG,iBAAiB,CAAC;AACpC,MAAM,YAAY,GAAG,iDAAiD,CAAC;AAEvE,UAAU;AACV,MAAM,OAAO,GAA8C;IAC1D,MAAM,EAAG,KAAK;IAEd,KAAK,EAAG,UAAU,UAAwB,EAAE,OAAkB;QAC7D,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACpE,IAAI,aAAa,GAAG,UAA2B,CAAC;QAEhD,IAAI,OAAO,EAAE;YACZ,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,IAAI,KAAK,CAAC;YAC/D,MAAM,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;YACrC,MAAM,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACvB,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,OAAO,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;YACpD,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;YAEzC,aAAa,CAAC,GAAG,GAAG,GAAG,CAAC;YACxB,aAAa,CAAC,GAAG,GAAG,GAAG,CAAC;YACxB,aAAa,CAAC,IAAI,GAAG,SAAS,CAAC;YAE/B,IAAI,aAAa,EAAE;gBAClB,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,CAAkB,CAAC;aAC7E;SACD;aAAM;YACN,aAAa,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,IAAI,wBAAwB,CAAC;SACtE;QAED,OAAO,aAAa,CAAC;IACtB,CAAC;IAED,SAAS,EAAG,UAAU,aAA2B,EAAE,OAAkB;QACpE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,aAAa,CAAC,MAAM,IAAI,KAAK,CAAC;QAC/D,MAAM,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC;QAC9B,MAAM,SAAS,GAAG,GAAG,MAAM,IAAI,OAAO,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;QACpD,MAAM,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;QAEzC,IAAI,aAAa,EAAE;YAClB,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,CAAkB,CAAC;SACjF;QAED,MAAM,aAAa,GAAG,aAA8B,CAAC;QACrD,MAAM,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC;QAC9B,aAAa,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,OAAO,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;QAEpD,OAAO,aAAa,CAAC;IACtB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/uri.d.ts b/node_modules/uri-js/dist/esnext/uri.d.ts
deleted file mode 100644
index 320f534..0000000
--- a/node_modules/uri-js/dist/esnext/uri.d.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-export interface URIComponents {
- scheme?: string;
- userinfo?: string;
- host?: string;
- port?: number | string;
- path?: string;
- query?: string;
- fragment?: string;
- reference?: string;
- error?: string;
-}
-export interface URIOptions {
- scheme?: string;
- reference?: string;
- tolerant?: boolean;
- absolutePath?: boolean;
- iri?: boolean;
- unicodeSupport?: boolean;
- domainHost?: boolean;
-}
-export interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {
- scheme: string;
- parse(components: ParentComponents, options: Options): Components;
- serialize(components: Components, options: Options): ParentComponents;
- unicodeSupport?: boolean;
- domainHost?: boolean;
- absolutePath?: boolean;
-}
-export interface URIRegExps {
- NOT_SCHEME: RegExp;
- NOT_USERINFO: RegExp;
- NOT_HOST: RegExp;
- NOT_PATH: RegExp;
- NOT_PATH_NOSCHEME: RegExp;
- NOT_QUERY: RegExp;
- NOT_FRAGMENT: RegExp;
- ESCAPE: RegExp;
- UNRESERVED: RegExp;
- OTHER_CHARS: RegExp;
- PCT_ENCODED: RegExp;
- IPV4ADDRESS: RegExp;
- IPV6ADDRESS: RegExp;
-}
-export declare const SCHEMES: {
- [scheme: string]: URISchemeHandler;
-};
-export declare function pctEncChar(chr: string): string;
-export declare function pctDecChars(str: string): string;
-export declare function parse(uriString: string, options?: URIOptions): URIComponents;
-export declare function removeDotSegments(input: string): string;
-export declare function serialize(components: URIComponents, options?: URIOptions): string;
-export declare function resolveComponents(base: URIComponents, relative: URIComponents, options?: URIOptions, skipNormalization?: boolean): URIComponents;
-export declare function resolve(baseURI: string, relativeURI: string, options?: URIOptions): string;
-export declare function normalize(uri: string, options?: URIOptions): string;
-export declare function normalize(uri: URIComponents, options?: URIOptions): URIComponents;
-export declare function equal(uriA: string, uriB: string, options?: URIOptions): boolean;
-export declare function equal(uriA: URIComponents, uriB: URIComponents, options?: URIOptions): boolean;
-export declare function escapeComponent(str: string, options?: URIOptions): string;
-export declare function unescapeComponent(str: string, options?: URIOptions): string;
diff --git a/node_modules/uri-js/dist/esnext/uri.js b/node_modules/uri-js/dist/esnext/uri.js
deleted file mode 100644
index 2fb6d71..0000000
--- a/node_modules/uri-js/dist/esnext/uri.js
+++ /dev/null
@@ -1,480 +0,0 @@
-/**
- * URI.js
- *
- * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
- * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
- * @see http://github.com/garycourt/uri-js
- */
-/**
- * Copyright 2011 Gary Court. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification, are
- * permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those of the
- * authors and should not be interpreted as representing official policies, either expressed
- * or implied, of Gary Court.
- */
-import URI_PROTOCOL from "./regexps-uri";
-import IRI_PROTOCOL from "./regexps-iri";
-import punycode from "punycode";
-import { toUpperCase, typeOf, assign } from "./util";
-export const SCHEMES = {};
-export function pctEncChar(chr) {
- const c = chr.charCodeAt(0);
- let e;
- if (c < 16)
- e = "%0" + c.toString(16).toUpperCase();
- else if (c < 128)
- e = "%" + c.toString(16).toUpperCase();
- else if (c < 2048)
- e = "%" + ((c >> 6) | 192).toString(16).toUpperCase() + "%" + ((c & 63) | 128).toString(16).toUpperCase();
- else
- e = "%" + ((c >> 12) | 224).toString(16).toUpperCase() + "%" + (((c >> 6) & 63) | 128).toString(16).toUpperCase() + "%" + ((c & 63) | 128).toString(16).toUpperCase();
- return e;
-}
-export function pctDecChars(str) {
- let newStr = "";
- let i = 0;
- const il = str.length;
- while (i < il) {
- const c = parseInt(str.substr(i + 1, 2), 16);
- if (c < 128) {
- newStr += String.fromCharCode(c);
- i += 3;
- }
- else if (c >= 194 && c < 224) {
- if ((il - i) >= 6) {
- const c2 = parseInt(str.substr(i + 4, 2), 16);
- newStr += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
- }
- else {
- newStr += str.substr(i, 6);
- }
- i += 6;
- }
- else if (c >= 224) {
- if ((il - i) >= 9) {
- const c2 = parseInt(str.substr(i + 4, 2), 16);
- const c3 = parseInt(str.substr(i + 7, 2), 16);
- newStr += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
- }
- else {
- newStr += str.substr(i, 9);
- }
- i += 9;
- }
- else {
- newStr += str.substr(i, 3);
- i += 3;
- }
- }
- return newStr;
-}
-function _normalizeComponentEncoding(components, protocol) {
- function decodeUnreserved(str) {
- const decStr = pctDecChars(str);
- return (!decStr.match(protocol.UNRESERVED) ? str : decStr);
- }
- if (components.scheme)
- components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
- if (components.userinfo !== undefined)
- components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.host !== undefined)
- components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.path !== undefined)
- components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace((components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME), pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.query !== undefined)
- components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.fragment !== undefined)
- components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- return components;
-}
-;
-function _stripLeadingZeros(str) {
- return str.replace(/^0*(.*)/, "$1") || "0";
-}
-function _normalizeIPv4(host, protocol) {
- const matches = host.match(protocol.IPV4ADDRESS) || [];
- const [, address] = matches;
- if (address) {
- return address.split(".").map(_stripLeadingZeros).join(".");
- }
- else {
- return host;
- }
-}
-function _normalizeIPv6(host, protocol) {
- const matches = host.match(protocol.IPV6ADDRESS) || [];
- const [, address, zone] = matches;
- if (address) {
- const [last, first] = address.toLowerCase().split('::').reverse();
- const firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
- const lastFields = last.split(":").map(_stripLeadingZeros);
- const isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
- const fieldCount = isLastFieldIPv4Address ? 7 : 8;
- const lastFieldsStart = lastFields.length - fieldCount;
- const fields = Array(fieldCount);
- for (let x = 0; x < fieldCount; ++x) {
- fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';
- }
- if (isLastFieldIPv4Address) {
- fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
- }
- const allZeroFields = fields.reduce((acc, field, index) => {
- if (!field || field === "0") {
- const lastLongest = acc[acc.length - 1];
- if (lastLongest && lastLongest.index + lastLongest.length === index) {
- lastLongest.length++;
- }
- else {
- acc.push({ index, length: 1 });
- }
- }
- return acc;
- }, []);
- const longestZeroFields = allZeroFields.sort((a, b) => b.length - a.length)[0];
- let newHost;
- if (longestZeroFields && longestZeroFields.length > 1) {
- const newFirst = fields.slice(0, longestZeroFields.index);
- const newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
- newHost = newFirst.join(":") + "::" + newLast.join(":");
- }
- else {
- newHost = fields.join(":");
- }
- if (zone) {
- newHost += "%" + zone;
- }
- return newHost;
- }
- else {
- return host;
- }
-}
-const URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
-const NO_MATCH_IS_UNDEFINED = ("").match(/(){0}/)[1] === undefined;
-export function parse(uriString, options = {}) {
- const components = {};
- const protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);
- if (options.reference === "suffix")
- uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
- const matches = uriString.match(URI_PARSE);
- if (matches) {
- if (NO_MATCH_IS_UNDEFINED) {
- //store each component
- components.scheme = matches[1];
- components.userinfo = matches[3];
- components.host = matches[4];
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = matches[7];
- components.fragment = matches[8];
- //fix port number
- if (isNaN(components.port)) {
- components.port = matches[5];
- }
- }
- else { //IE FIX for improper RegExp matching
- //store each component
- components.scheme = matches[1] || undefined;
- components.userinfo = (uriString.indexOf("@") !== -1 ? matches[3] : undefined);
- components.host = (uriString.indexOf("//") !== -1 ? matches[4] : undefined);
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = (uriString.indexOf("?") !== -1 ? matches[7] : undefined);
- components.fragment = (uriString.indexOf("#") !== -1 ? matches[8] : undefined);
- //fix port number
- if (isNaN(components.port)) {
- components.port = (uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined);
- }
- }
- if (components.host) {
- //normalize IP hosts
- components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
- }
- //determine reference type
- if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
- components.reference = "same-document";
- }
- else if (components.scheme === undefined) {
- components.reference = "relative";
- }
- else if (components.fragment === undefined) {
- components.reference = "absolute";
- }
- else {
- components.reference = "uri";
- }
- //check for reference errors
- if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
- components.error = components.error || "URI is not a " + options.reference + " reference.";
- }
- //find scheme handler
- const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
- //check if scheme can't handle IRIs
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
- //if host component is a domain name
- if (components.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost))) {
- //convert Unicode IDN -> ASCII IDN
- try {
- components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
- }
- catch (e) {
- components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
- }
- }
- //convert IRI -> URI
- _normalizeComponentEncoding(components, URI_PROTOCOL);
- }
- else {
- //normalize encodings
- _normalizeComponentEncoding(components, protocol);
- }
- //perform scheme specific parsing
- if (schemeHandler && schemeHandler.parse) {
- schemeHandler.parse(components, options);
- }
- }
- else {
- components.error = components.error || "URI can not be parsed.";
- }
- return components;
-}
-;
-function _recomposeAuthority(components, options) {
- const protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);
- const uriTokens = [];
- if (components.userinfo !== undefined) {
- uriTokens.push(components.userinfo);
- uriTokens.push("@");
- }
- if (components.host !== undefined) {
- //normalize IP hosts, add brackets and escape zone separator for IPv6
- uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => "[" + $1 + ($2 ? "%25" + $2 : "") + "]"));
- }
- if (typeof components.port === "number") {
- uriTokens.push(":");
- uriTokens.push(components.port.toString(10));
- }
- return uriTokens.length ? uriTokens.join("") : undefined;
-}
-;
-const RDS1 = /^\.\.?\//;
-const RDS2 = /^\/\.(\/|$)/;
-const RDS3 = /^\/\.\.(\/|$)/;
-const RDS4 = /^\.\.?$/;
-const RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
-export function removeDotSegments(input) {
- const output = [];
- while (input.length) {
- if (input.match(RDS1)) {
- input = input.replace(RDS1, "");
- }
- else if (input.match(RDS2)) {
- input = input.replace(RDS2, "/");
- }
- else if (input.match(RDS3)) {
- input = input.replace(RDS3, "/");
- output.pop();
- }
- else if (input === "." || input === "..") {
- input = "";
- }
- else {
- const im = input.match(RDS5);
- if (im) {
- const s = im[0];
- input = input.slice(s.length);
- output.push(s);
- }
- else {
- throw new Error("Unexpected dot segment condition");
- }
- }
- }
- return output.join("");
-}
-;
-export function serialize(components, options = {}) {
- const protocol = (options.iri ? IRI_PROTOCOL : URI_PROTOCOL);
- const uriTokens = [];
- //find scheme handler
- const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
- //perform scheme specific serialization
- if (schemeHandler && schemeHandler.serialize)
- schemeHandler.serialize(components, options);
- if (components.host) {
- //if host component is an IPv6 address
- if (protocol.IPV6ADDRESS.test(components.host)) {
- //TODO: normalize IPv6 address as per RFC 5952
- }
- //if host component is a domain name
- else if (options.domainHost || (schemeHandler && schemeHandler.domainHost)) {
- //convert IDN via punycode
- try {
- components.host = (!options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host));
- }
- catch (e) {
- components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
- }
- }
- //normalize encoding
- _normalizeComponentEncoding(components, protocol);
- if (options.reference !== "suffix" && components.scheme) {
- uriTokens.push(components.scheme);
- uriTokens.push(":");
- }
- const authority = _recomposeAuthority(components, options);
- if (authority !== undefined) {
- if (options.reference !== "suffix") {
- uriTokens.push("//");
- }
- uriTokens.push(authority);
- if (components.path && components.path.charAt(0) !== "/") {
- uriTokens.push("/");
- }
- }
- if (components.path !== undefined) {
- let s = components.path;
- if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
- s = removeDotSegments(s);
- }
- if (authority === undefined) {
- s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//"
- }
- uriTokens.push(s);
- }
- if (components.query !== undefined) {
- uriTokens.push("?");
- uriTokens.push(components.query);
- }
- if (components.fragment !== undefined) {
- uriTokens.push("#");
- uriTokens.push(components.fragment);
- }
- return uriTokens.join(""); //merge tokens into a string
-}
-;
-export function resolveComponents(base, relative, options = {}, skipNormalization) {
- const target = {};
- if (!skipNormalization) {
- base = parse(serialize(base, options), options); //normalize base components
- relative = parse(serialize(relative, options), options); //normalize relative components
- }
- options = options || {};
- if (!options.tolerant && relative.scheme) {
- target.scheme = relative.scheme;
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- }
- else {
- if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- }
- else {
- if (!relative.path) {
- target.path = base.path;
- if (relative.query !== undefined) {
- target.query = relative.query;
- }
- else {
- target.query = base.query;
- }
- }
- else {
- if (relative.path.charAt(0) === "/") {
- target.path = removeDotSegments(relative.path);
- }
- else {
- if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
- target.path = "/" + relative.path;
- }
- else if (!base.path) {
- target.path = relative.path;
- }
- else {
- target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
- }
- target.path = removeDotSegments(target.path);
- }
- target.query = relative.query;
- }
- //target.authority = base.authority;
- target.userinfo = base.userinfo;
- target.host = base.host;
- target.port = base.port;
- }
- target.scheme = base.scheme;
- }
- target.fragment = relative.fragment;
- return target;
-}
-;
-export function resolve(baseURI, relativeURI, options) {
- const schemelessOptions = assign({ scheme: 'null' }, options);
- return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
-}
-;
-export function normalize(uri, options) {
- if (typeof uri === "string") {
- uri = serialize(parse(uri, options), options);
- }
- else if (typeOf(uri) === "object") {
- uri = parse(serialize(uri, options), options);
- }
- return uri;
-}
-;
-export function equal(uriA, uriB, options) {
- if (typeof uriA === "string") {
- uriA = serialize(parse(uriA, options), options);
- }
- else if (typeOf(uriA) === "object") {
- uriA = serialize(uriA, options);
- }
- if (typeof uriB === "string") {
- uriB = serialize(parse(uriB, options), options);
- }
- else if (typeOf(uriB) === "object") {
- uriB = serialize(uriB, options);
- }
- return uriA === uriB;
-}
-;
-export function escapeComponent(str, options) {
- return str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE), pctEncChar);
-}
-;
-export function unescapeComponent(str, options) {
- return str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED), pctDecChars);
-}
-;
-//# sourceMappingURL=uri.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/uri.js.map b/node_modules/uri-js/dist/esnext/uri.js.map
deleted file mode 100644
index e1d831c..0000000
--- a/node_modules/uri-js/dist/esnext/uri.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"uri.js","sourceRoot":"","sources":["../../src/uri.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAiDrD,MAAM,CAAC,MAAM,OAAO,GAAsC,EAAE,CAAC;AAE7D,MAAM,qBAAqB,GAAU;IACpC,MAAM,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC5B,IAAI,CAAQ,CAAC;IAEb,IAAI,CAAC,GAAG,EAAE;QAAE,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;SAC/C,IAAI,CAAC,GAAG,GAAG;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;SACpD,IAAI,CAAC,GAAG,IAAI;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;;QACxH,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAE3K,OAAO,CAAC,CAAC;AACV,CAAC;AAED,MAAM,sBAAsB,GAAU;IACrC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAEtB,OAAO,CAAC,GAAG,EAAE,EAAE;QACd,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAE7C,IAAI,CAAC,GAAG,GAAG,EAAE;YACZ,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACjC,CAAC,IAAI,CAAC,CAAC;SACP;aACI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,GAAG,EAAE;YAC7B,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE;gBAClB,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC9C,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;aAC3D;iBAAM;gBACN,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aAC3B;YACD,CAAC,IAAI,CAAC,CAAC;SACP;aACI,IAAI,CAAC,IAAI,GAAG,EAAE;YAClB,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE;gBAClB,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC9C,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC9C,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;aAC/E;iBAAM;gBACN,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aAC3B;YACD,CAAC,IAAI,CAAC,CAAC;SACP;aACI;YACJ,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAC3B,CAAC,IAAI,CAAC,CAAC;SACP;KACD;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAED,qCAAqC,UAAwB,EAAE,QAAmB;IACjF,0BAA0B,GAAU;QACnC,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;QAChC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC5D,CAAC;IAED,IAAI,UAAU,CAAC,MAAM;QAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACpK,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS;QAAE,UAAU,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC/N,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS;QAAE,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC7N,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS;QAAE,UAAU,CAAC,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAClQ,IAAI,UAAU,CAAC,KAAK,KAAK,SAAS;QAAE,UAAU,CAAC,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACnN,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS;QAAE,UAAU,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAE/N,OAAO,UAAU,CAAC;AACnB,CAAC;AAAA,CAAC;AAEF,4BAA4B,GAAU;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,GAAG,CAAC;AAC5C,CAAC;AAED,wBAAwB,IAAW,EAAE,QAAmB;IACvD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;IAE5B,IAAI,OAAO,EAAE;QACZ,OAAO,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC5D;SAAM;QACN,OAAO,IAAI,CAAC;KACZ;AACF,CAAC;AAED,wBAAwB,IAAW,EAAE,QAAmB;IACvD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IACvD,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC;IAElC,IAAI,OAAO,EAAE;QACZ,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;QAClE,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1E,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAC3D,MAAM,sBAAsB,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QAC5F,MAAM,UAAU,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,eAAe,GAAG,UAAU,CAAC,MAAM,GAAG,UAAU,CAAC;QACvD,MAAM,MAAM,GAAG,KAAK,CAAS,UAAU,CAAC,CAAC;QAEzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,EAAE,CAAC,EAAE;YACpC,MAAM,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,eAAe,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;SACpE;QAED,IAAI,sBAAsB,EAAE;YAC3B,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;SAC1E;QAED,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAsC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;YAC9F,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,GAAG,EAAE;gBAC5B,MAAM,WAAW,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBACxC,IAAI,WAAW,IAAI,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,MAAM,KAAK,KAAK,EAAE;oBACpE,WAAW,CAAC,MAAM,EAAE,CAAC;iBACrB;qBAAM;oBACN,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAG,CAAC,EAAE,CAAC,CAAC;iBAChC;aACD;YACD,OAAO,GAAG,CAAC;QACZ,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,MAAM,iBAAiB,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAE/E,IAAI,OAAc,CAAC;QACnB,IAAI,iBAAiB,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;YACtD,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAE;YAC3D,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;YACjF,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACxD;aAAM;YACN,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC3B;QAED,IAAI,IAAI,EAAE;YACT,OAAO,IAAI,GAAG,GAAG,IAAI,CAAC;SACtB;QAED,OAAO,OAAO,CAAC;KACf;SAAM;QACN,OAAO,IAAI,CAAC;KACZ;AACF,CAAC;AAED,MAAM,SAAS,GAAG,iIAAiI,CAAC;AACpJ,MAAM,qBAAqB,GAAsB,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAE,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;AAEvF,MAAM,gBAAgB,SAAgB,EAAE,UAAqB,EAAE;IAC9D,MAAM,UAAU,GAAiB,EAAE,CAAC;IACpC,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAEvE,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ;QAAE,SAAS,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAEhH,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAE3C,IAAI,OAAO,EAAE;QACZ,IAAI,qBAAqB,EAAE;YAC1B,sBAAsB;YACtB,UAAU,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC/B,UAAU,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACjC,UAAU,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC7B,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC3C,UAAU,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YACnC,UAAU,CAAC,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC9B,UAAU,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAEjC,iBAAiB;YACjB,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;gBAC3B,UAAU,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;aAC7B;SACD;aAAM,EAAG,qCAAqC;YAC9C,sBAAsB;YACtB,UAAU,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC;YAC5C,UAAU,CAAC,QAAQ,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC/E,UAAU,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC5E,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC3C,UAAU,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YACnC,UAAU,CAAC,KAAK,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC5E,UAAU,CAAC,QAAQ,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAE/E,iBAAiB;YACjB,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;gBAC3B,UAAU,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;aAC9F;SACD;QAED,IAAI,UAAU,CAAC,IAAI,EAAE;YACpB,oBAAoB;YACpB,UAAU,CAAC,IAAI,GAAG,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;SACtF;QAED,0BAA0B;QAC1B,IAAI,UAAU,CAAC,MAAM,KAAK,SAAS,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,KAAK,KAAK,SAAS,EAAE;YACjM,UAAU,CAAC,SAAS,GAAG,eAAe,CAAC;SACvC;aAAM,IAAI,UAAU,CAAC,MAAM,KAAK,SAAS,EAAE;YAC3C,UAAU,CAAC,SAAS,GAAG,UAAU,CAAC;SAClC;aAAM,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS,EAAE;YAC7C,UAAU,CAAC,SAAS,GAAG,UAAU,CAAC;SAClC;aAAM;YACN,UAAU,CAAC,SAAS,GAAG,KAAK,CAAC;SAC7B;QAED,4BAA4B;QAC5B,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,OAAO,CAAC,SAAS,KAAK,UAAU,CAAC,SAAS,EAAE;YACtG,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,eAAe,GAAG,OAAO,CAAC,SAAS,GAAG,aAAa,CAAC;SAC3F;QAED,qBAAqB;QACrB,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAEzF,mCAAmC;QACnC,IAAI,CAAC,OAAO,CAAC,cAAc,IAAI,CAAC,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE;YACjF,oCAAoC;YACpC,IAAI,UAAU,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC,EAAE;gBAC3F,kCAAkC;gBAClC,IAAI;oBACH,UAAU,CAAC,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;iBAC7G;gBAAC,OAAO,CAAC,EAAE;oBACX,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,iEAAiE,GAAG,CAAC,CAAC;iBAC7G;aACD;YACD,oBAAoB;YACpB,2BAA2B,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;SACtD;aAAM;YACN,qBAAqB;YACrB,2BAA2B,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;SAClD;QAED,iCAAiC;QACjC,IAAI,aAAa,IAAI,aAAa,CAAC,KAAK,EAAE;YACzC,aAAa,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;SACzC;KACD;SAAM;QACN,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,wBAAwB,CAAC;KAChE;IAED,OAAO,UAAU,CAAC;AACnB,CAAC;AAAA,CAAC;AAEF,6BAA6B,UAAwB,EAAE,OAAkB;IACxE,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IACvE,MAAM,SAAS,GAAiB,EAAE,CAAC;IAEnC,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS,EAAE;QACtC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACpC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACpB;IAED,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE;QAClC,qEAAqE;QACrE,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;KAClL;IAED,IAAI,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,EAAE;QACxC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;KAC7C;IAED,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC;AAAA,CAAC;AAEF,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,IAAI,GAAG,aAAa,CAAC;AAC3B,MAAM,IAAI,GAAG,eAAe,CAAC;AAC7B,MAAM,IAAI,GAAG,SAAS,CAAC;AACvB,MAAM,IAAI,GAAG,wBAAwB,CAAC;AAEtC,MAAM,4BAA4B,KAAY;IAC7C,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,OAAO,KAAK,CAAC,MAAM,EAAE;QACpB,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;YACtB,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;SAChC;aAAM,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;YAC7B,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;SACjC;aAAM,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;YAC7B,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;YACjC,MAAM,CAAC,GAAG,EAAE,CAAC;SACb;aAAM,IAAI,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK,IAAI,EAAE;YAC3C,KAAK,GAAG,EAAE,CAAC;SACX;aAAM;YACN,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC7B,IAAI,EAAE,EAAE;gBACP,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;gBAChB,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;gBAC9B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;aACf;iBAAM;gBACN,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACpD;SACD;KACD;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxB,CAAC;AAAA,CAAC;AAEF,MAAM,oBAAoB,UAAwB,EAAE,UAAqB,EAAE;IAC1E,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;IAC7D,MAAM,SAAS,GAAiB,EAAE,CAAC;IAEnC,qBAAqB;IACrB,MAAM,aAAa,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IAEzF,uCAAuC;IACvC,IAAI,aAAa,IAAI,aAAa,CAAC,SAAS;QAAE,aAAa,CAAC,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAE3F,IAAI,UAAU,CAAC,IAAI,EAAE;QACpB,sCAAsC;QACtC,IAAI,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;YAC/C,8CAA8C;SAC9C;QAED,oCAAoC;aAC/B,IAAI,OAAO,CAAC,UAAU,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,UAAU,CAAC,EAAE;YAC3E,0BAA0B;YAC1B,IAAI;gBACH,UAAU,CAAC,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;aACpK;YAAC,OAAO,CAAC,EAAE;gBACX,UAAU,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,IAAI,6CAA6C,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,iBAAiB,GAAG,CAAC,CAAC;aACpJ;SACD;KACD;IAED,oBAAoB;IACpB,2BAA2B,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAElD,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,UAAU,CAAC,MAAM,EAAE;QACxD,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAClC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACpB;IAED,MAAM,SAAS,GAAG,mBAAmB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC3D,IAAI,SAAS,KAAK,SAAS,EAAE;QAC5B,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YACnC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrB;QAED,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAE1B,IAAI,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YACzD,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACpB;KACD;IAED,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE;QAClC,IAAI,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC;QAExB,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE;YAC7E,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;SACzB;QAED,IAAI,SAAS,KAAK,SAAS,EAAE;YAC5B,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAE,yCAAyC;SAC1E;QAED,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAClB;IAED,IAAI,UAAU,CAAC,KAAK,KAAK,SAAS,EAAE;QACnC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;KACjC;IAED,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS,EAAE;QACtC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;KACpC;IAED,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAE,4BAA4B;AACzD,CAAC;AAAA,CAAC;AAEF,MAAM,4BAA4B,IAAkB,EAAE,QAAsB,EAAE,UAAqB,EAAE,EAAE,iBAA0B;IAChI,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,IAAI,CAAC,iBAAiB,EAAE;QACvB,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAE,2BAA2B;QAC7E,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAE,+BAA+B;KACzF;IACD,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;IAExB,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,EAAE;QACzC,MAAM,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAChC,wCAAwC;QACxC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;QACpC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC5B,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC5B,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QACrD,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;KAC9B;SAAM;QACN,IAAI,QAAQ,CAAC,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,EAAE;YAClG,wCAAwC;YACxC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;YACpC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;YAC5B,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;YAC5B,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;YACrD,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;SAC9B;aAAM;YACN,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;gBACnB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;gBACxB,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;oBACjC,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;iBAC9B;qBAAM;oBACN,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;iBAC1B;aACD;iBAAM;gBACN,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;oBACpC,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;iBAC/C;qBAAM;oBACN,IAAI,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;wBACtG,MAAM,CAAC,IAAI,GAAG,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC;qBAClC;yBAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;wBACtB,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;qBAC5B;yBAAM;wBACN,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;qBACjF;oBACD,MAAM,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;iBAC7C;gBACD,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;aAC9B;YACD,oCAAoC;YACpC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAChC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YACxB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACxB;QACD,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;KAC5B;IAED,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;IAEpC,OAAO,MAAM,CAAC;AACf,CAAC;AAAA,CAAC;AAEF,MAAM,kBAAkB,OAAc,EAAE,WAAkB,EAAE,OAAmB;IAC9E,MAAM,iBAAiB,GAAG,MAAM,CAAC,EAAE,MAAM,EAAG,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,OAAO,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,KAAK,CAAC,WAAW,EAAE,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,iBAAiB,CAAC,CAAC;AAC3J,CAAC;AAAA,CAAC;AAIF,MAAM,oBAAoB,GAAO,EAAE,OAAmB;IACrD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC5B,GAAG,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;KAC9C;SAAM,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;QACpC,GAAG,GAAG,KAAK,CAAC,SAAS,CAAgB,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;KAC7D;IAED,OAAO,GAAG,CAAC;AACZ,CAAC;AAAA,CAAC;AAIF,MAAM,gBAAgB,IAAQ,EAAE,IAAQ,EAAE,OAAmB;IAC5D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC7B,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;KAChD;SAAM,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QACrC,IAAI,GAAG,SAAS,CAAgB,IAAI,EAAE,OAAO,CAAC,CAAC;KAC/C;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC7B,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;KAChD;SAAM,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QACrC,IAAI,GAAG,SAAS,CAAgB,IAAI,EAAE,OAAO,CAAC,CAAC;KAC/C;IAED,OAAO,IAAI,KAAK,IAAI,CAAC;AACtB,CAAC;AAAA,CAAC;AAEF,MAAM,0BAA0B,GAAU,EAAE,OAAmB;IAC9D,OAAO,GAAG,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC;AAC1H,CAAC;AAAA,CAAC;AAEF,MAAM,4BAA4B,GAAU,EAAE,OAAmB;IAChE,OAAO,GAAG,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;AACrI,CAAC;AAAA,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/util.d.ts b/node_modules/uri-js/dist/esnext/util.d.ts
deleted file mode 100644
index 8b484cd..0000000
--- a/node_modules/uri-js/dist/esnext/util.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export declare function merge(...sets: Array<string>): string;
-export declare function subexp(str: string): string;
-export declare function typeOf(o: any): string;
-export declare function toUpperCase(str: string): string;
-export declare function toArray(obj: any): Array<any>;
-export declare function assign(target: object, source: any): any;
diff --git a/node_modules/uri-js/dist/esnext/util.js b/node_modules/uri-js/dist/esnext/util.js
deleted file mode 100644
index 45af46f..0000000
--- a/node_modules/uri-js/dist/esnext/util.js
+++ /dev/null
@@ -1,36 +0,0 @@
-export function merge(...sets) {
- if (sets.length > 1) {
- sets[0] = sets[0].slice(0, -1);
- const xl = sets.length - 1;
- for (let x = 1; x < xl; ++x) {
- sets[x] = sets[x].slice(1, -1);
- }
- sets[xl] = sets[xl].slice(1);
- return sets.join('');
- }
- else {
- return sets[0];
- }
-}
-export function subexp(str) {
- return "(?:" + str + ")";
-}
-export function typeOf(o) {
- return o === undefined ? "undefined" : (o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase());
-}
-export function toUpperCase(str) {
- return str.toUpperCase();
-}
-export function toArray(obj) {
- return obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];
-}
-export function assign(target, source) {
- const obj = target;
- if (source) {
- for (const key in source) {
- obj[key] = source[key];
- }
- }
- return obj;
-}
-//# sourceMappingURL=util.js.map \ No newline at end of file
diff --git a/node_modules/uri-js/dist/esnext/util.js.map b/node_modules/uri-js/dist/esnext/util.js.map
deleted file mode 100644
index 05d9df0..0000000
--- a/node_modules/uri-js/dist/esnext/util.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,IAAkB;IAC1C,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;QACpB,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE;YAC5B,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;SAC/B;QACD,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACrB;SAAM;QACN,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;KACf;AACF,CAAC;AAED,MAAM,iBAAiB,GAAU;IAChC,OAAO,KAAK,GAAG,GAAG,GAAG,GAAG,CAAC;AAC1B,CAAC;AAED,MAAM,iBAAiB,CAAK;IAC3B,OAAO,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;AACpJ,CAAC;AAED,MAAM,sBAAsB,GAAU;IACrC,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;AAC1B,CAAC;AAED,MAAM,kBAAkB,GAAO;IAC9B,OAAO,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ,IAAI,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,WAAW,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACvM,CAAC;AAGD,MAAM,iBAAiB,MAAc,EAAE,MAAW;IACjD,MAAM,GAAG,GAAG,MAAa,CAAC;IAC1B,IAAI,MAAM,EAAE;QACX,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE;YACzB,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;SACvB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"} \ No newline at end of file
diff --git a/node_modules/uri-js/package.json b/node_modules/uri-js/package.json
deleted file mode 100644
index e8eaec4..0000000
--- a/node_modules/uri-js/package.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "_from": "uri-js@^4.2.2",
- "_id": "uri-js@4.2.2",
- "_inBundle": false,
- "_integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
- "_location": "/uri-js",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "uri-js@^4.2.2",
- "name": "uri-js",
- "escapedName": "uri-js",
- "rawSpec": "^4.2.2",
- "saveSpec": null,
- "fetchSpec": "^4.2.2"
- },
- "_requiredBy": [
- "/ajv"
- ],
- "_resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
- "_shasum": "94c540e1ff772956e2299507c010aea6c8838eb0",
- "_spec": "uri-js@^4.2.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/ajv",
- "author": {
- "name": "Gary Court",
- "email": "gary.court@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/garycourt/uri-js/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "punycode": "^2.1.0"
- },
- "deprecated": false,
- "description": "An RFC 3986/3987 compliant, scheme extendable URI/IRI parsing/validating/resolving library for JavaScript.",
- "devDependencies": {
- "babel-cli": "^6.26.0",
- "babel-plugin-external-helpers": "^6.22.0",
- "babel-preset-latest": "^6.24.1",
- "mocha": "^3.2.0",
- "mocha-qunit-ui": "^0.1.3",
- "rollup": "^0.41.6",
- "rollup-plugin-babel": "^2.7.1",
- "rollup-plugin-node-resolve": "^2.0.0",
- "sorcery": "^0.10.0",
- "typescript": "^2.8.1",
- "uglify-js": "^2.8.14"
- },
- "directories": {
- "test": "tests"
- },
- "homepage": "https://github.com/garycourt/uri-js",
- "keywords": [
- "URI",
- "IRI",
- "IDN",
- "URN",
- "UUID",
- "HTTP",
- "HTTPS",
- "MAILTO",
- "RFC3986",
- "RFC3987",
- "RFC5891",
- "RFC2616",
- "RFC2818",
- "RFC2141",
- "RFC4122",
- "RFC4291",
- "RFC5952",
- "RFC6068",
- "RFC6874"
- ],
- "license": "BSD-2-Clause",
- "main": "dist/es5/uri.all.js",
- "name": "uri-js",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/garycourt/uri-js.git"
- },
- "scripts": {
- "build": "npm run build:esnext && npm run build:es5 && npm run build:es5:min",
- "build:es5": "rollup -c && cp dist/esnext/uri.d.ts dist/es5/uri.all.d.ts && npm run build:es5:fix-sourcemap",
- "build:es5:fix-sourcemap": "sorcery -i dist/es5/uri.all.js",
- "build:es5:min": "uglifyjs dist/es5/uri.all.js --support-ie8 --output dist/es5/uri.all.min.js --in-source-map dist/es5/uri.all.js.map --source-map uri.all.min.js.map --comments --compress --mangle --pure-funcs merge subexp && mv uri.all.min.js.map dist/es5/ && cp dist/es5/uri.all.d.ts dist/es5/uri.all.min.d.ts",
- "build:esnext": "tsc",
- "test": "mocha -u mocha-qunit-ui dist/es5/uri.all.js tests/tests.js"
- },
- "types": "dist/es5/uri.all.d.ts",
- "version": "4.2.2"
-}
diff --git a/node_modules/uri-js/rollup.config.js b/node_modules/uri-js/rollup.config.js
deleted file mode 100644
index 5bb8b05..0000000
--- a/node_modules/uri-js/rollup.config.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import resolve from 'rollup-plugin-node-resolve';
-import babel from 'rollup-plugin-babel';
-const packageJson = require('./package.json');
-
-export default {
- entry : "dist/esnext/index.js",
- format : "umd",
- moduleName : "URI",
- plugins: [
- resolve({
- module: true,
- jsnext: true,
- preferBuiltins: false
- }),
-
- babel({
- "presets": [
- ["latest", {
- "es2015": {
- "modules": false
- }
- }]
- ],
- "plugins": ["external-helpers"],
- "externalHelpers": false
- }
-)
- ],
- dest : "dist/es5/uri.all.js",
- sourceMap: true,
- banner: "/** @license URI.js v" + packageJson.version + " (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */"
-}
diff --git a/node_modules/uri-js/src/index.ts b/node_modules/uri-js/src/index.ts
deleted file mode 100644
index 6532a1b..0000000
--- a/node_modules/uri-js/src/index.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { SCHEMES } from "./uri";
-
-import http from "./schemes/http";
-SCHEMES[http.scheme] = http;
-
-import https from "./schemes/https";
-SCHEMES[https.scheme] = https;
-
-import mailto from "./schemes/mailto";
-SCHEMES[mailto.scheme] = mailto;
-
-import urn from "./schemes/urn";
-SCHEMES[urn.scheme] = urn;
-
-import uuid from "./schemes/urn-uuid";
-SCHEMES[uuid.scheme] = uuid;
-
-export * from "./uri";
diff --git a/node_modules/uri-js/src/punycode.d.ts b/node_modules/uri-js/src/punycode.d.ts
deleted file mode 100644
index 4ecbd34..0000000
--- a/node_modules/uri-js/src/punycode.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-declare module 'punycode' {
- function ucs2decode(string:string):Array<number>;
- function ucs2encode(array:Array<number>):string;
- function decode(string:string):string;
- function encode(string:string):string;
- function toASCII(string:string):string;
- function toUnicode(string:string):string;
-
- interface Punycode {
- 'version': '2.2.0';
- 'ucs2': {
- 'decode': typeof ucs2decode;
- 'encode': typeof ucs2encode;
- },
- 'decode': typeof decode;
- 'encode': typeof encode;
- 'toASCII': typeof toASCII;
- 'toUnicode': typeof toUnicode;
- }
-
- const punycode:Punycode;
-
- export default punycode;
-}
diff --git a/node_modules/uri-js/src/regexps-iri.ts b/node_modules/uri-js/src/regexps-iri.ts
deleted file mode 100644
index 8bd605b..0000000
--- a/node_modules/uri-js/src/regexps-iri.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { URIRegExps } from "./uri";
-import { buildExps } from "./regexps-uri";
-
-export default buildExps(true);
diff --git a/node_modules/uri-js/src/regexps-uri.ts b/node_modules/uri-js/src/regexps-uri.ts
deleted file mode 100644
index 8d6b547..0000000
--- a/node_modules/uri-js/src/regexps-uri.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-import { URIRegExps } from "./uri";
-import { merge, subexp } from "./util";
-
-export function buildExps(isIRI:boolean):URIRegExps {
- const
- ALPHA$$ = "[A-Za-z]",
- CR$ = "[\\x0D]",
- DIGIT$$ = "[0-9]",
- DQUOTE$$ = "[\\x22]",
- HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), //case-insensitive
- LF$$ = "[\\x0A]",
- SP$$ = "[\\x20]",
- PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), //expanded
- GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]",
- SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
- RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),
- UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", //subset, excludes bidi control characters
- IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", //subset
- UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
- SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
- USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
- DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$),
- DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), //relaxed parsing rules
- IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
- H16$ = subexp(HEXDIG$$ + "{1,4}"),
- LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$),
- IPV6ADDRESS1$ = subexp( subexp(H16$ + "\\:") + "{6}" + LS32$), // 6( h16 ":" ) ls32
- IPV6ADDRESS2$ = subexp( "\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), // "::" 5( h16 ":" ) ls32
- IPV6ADDRESS3$ = subexp(subexp( H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), //[ h16 ] "::" 4( h16 ":" ) ls32
- IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), //[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
- IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), //[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
- IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), //[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
- IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), //[ *4( h16 ":" ) h16 ] "::" ls32
- IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$ ), //[ *5( h16 ":" ) h16 ] "::" h16
- IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:" ), //[ *6( h16 ":" ) h16 ] "::"
- IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
- ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), //RFC 6874
- IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), //RFC 6874
- IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), //RFC 6874, with relaxed parsing rules
- IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
- IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), //RFC 6874
- REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
- HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$),
- PORT$ = subexp(DIGIT$$ + "*"),
- AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"),
- PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
- SEGMENT$ = subexp(PCHAR$ + "*"),
- SEGMENT_NZ$ = subexp(PCHAR$ + "+"),
- SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
- PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"),
- PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), //simplified
- PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), //simplified
- PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), //simplified
- PATH_EMPTY$ = "(?!" + PCHAR$ + ")",
- PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
- QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"),
- FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"),
- HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
- URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
- RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$),
- RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
- URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$),
- ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"),
-
- GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$",
- SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
- AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$"
- ;
-
- return {
- NOT_SCHEME : new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
- NOT_USERINFO : new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_HOST : new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH : new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_PATH_NOSCHEME : new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- NOT_QUERY : new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
- NOT_FRAGMENT : new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
- ESCAPE : new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
- UNRESERVED : new RegExp(UNRESERVED$$, "g"),
- OTHER_CHARS : new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
- PCT_ENCODED : new RegExp(PCT_ENCODED$, "g"),
- IPV4ADDRESS : new RegExp("^(" + IPV4ADDRESS$ + ")$"),
- IPV6ADDRESS : new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules
- };
-}
-
-export default buildExps(false);
diff --git a/node_modules/uri-js/src/schemes/http.ts b/node_modules/uri-js/src/schemes/http.ts
deleted file mode 100644
index 3e53145..0000000
--- a/node_modules/uri-js/src/schemes/http.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { URISchemeHandler, URIComponents, URIOptions } from "../uri";
-
-const handler:URISchemeHandler = {
- scheme : "http",
-
- domainHost : true,
-
- parse : function (components:URIComponents, options:URIOptions):URIComponents {
- //report missing host
- if (!components.host) {
- components.error = components.error || "HTTP URIs must have a host.";
- }
-
- return components;
- },
-
- serialize : function (components:URIComponents, options:URIOptions):URIComponents {
- //normalize the default port
- if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") {
- components.port = undefined;
- }
-
- //normalize the empty path
- if (!components.path) {
- components.path = "/";
- }
-
- //NOTE: We do not parse query strings for HTTP URIs
- //as WWW Form Url Encoded query strings are part of the HTML4+ spec,
- //and not the HTTP spec.
-
- return components;
- }
-};
-
-export default handler; \ No newline at end of file
diff --git a/node_modules/uri-js/src/schemes/https.ts b/node_modules/uri-js/src/schemes/https.ts
deleted file mode 100644
index a19a494..0000000
--- a/node_modules/uri-js/src/schemes/https.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { URISchemeHandler, URIComponents, URIOptions } from "../uri";
-import http from "./http";
-
-const handler:URISchemeHandler = {
- scheme : "https",
- domainHost : http.domainHost,
- parse : http.parse,
- serialize : http.serialize
-}
-
-export default handler; \ No newline at end of file
diff --git a/node_modules/uri-js/src/schemes/mailto.ts b/node_modules/uri-js/src/schemes/mailto.ts
deleted file mode 100644
index 3faf320..0000000
--- a/node_modules/uri-js/src/schemes/mailto.ts
+++ /dev/null
@@ -1,182 +0,0 @@
-import { URISchemeHandler, URIComponents, URIOptions } from "../uri";
-import { pctEncChar, pctDecChars, unescapeComponent } from "../uri";
-import punycode from "punycode";
-import { merge, subexp, toUpperCase, toArray } from "../util";
-
-export interface MailtoHeaders {
- [hfname:string]:string
-}
-
-export interface MailtoComponents extends URIComponents {
- to:Array<string>,
- headers?:MailtoHeaders,
- subject?:string,
- body?:string
-}
-
-const O:MailtoHeaders = {};
-const isIRI = true;
-
-//RFC 3986
-const UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
-const HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
-const PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
-
-//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
-//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127)
-//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext
-//const VCHAR$$ = "[\\x21-\\x7E]";
-//const WSP$$ = "[\\x20\\x09]";
-//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext
-//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+");
-//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$);
-//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"');
-const ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
-const QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
-const VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
-const DOT_ATOM_TEXT$ = subexp(ATEXT$$ + "+" + subexp("\\." + ATEXT$$ + "+") + "*");
-const QUOTED_PAIR$ = subexp("\\\\" + VCHAR$$);
-const QCONTENT$ = subexp(QTEXT$$ + "|" + QUOTED_PAIR$);
-const QUOTED_STRING$ = subexp('\\"' + QCONTENT$ + "*" + '\\"');
-
-//RFC 6068
-const DTEXT_NO_OBS$$ = "[\\x21-\\x5A\\x5E-\\x7E]"; //%d33-90 / %d94-126
-const SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
-const QCHAR$ = subexp(UNRESERVED$$ + "|" + PCT_ENCODED$ + "|" + SOME_DELIMS$$);
-const DOMAIN$ = subexp(DOT_ATOM_TEXT$ + "|" + "\\[" + DTEXT_NO_OBS$$ + "*" + "\\]");
-const LOCAL_PART$ = subexp(DOT_ATOM_TEXT$ + "|" + QUOTED_STRING$);
-const ADDR_SPEC$ = subexp(LOCAL_PART$ + "\\@" + DOMAIN$);
-const TO$ = subexp(ADDR_SPEC$ + subexp("\\," + ADDR_SPEC$) + "*");
-const HFNAME$ = subexp(QCHAR$ + "*");
-const HFVALUE$ = HFNAME$;
-const HFIELD$ = subexp(HFNAME$ + "\\=" + HFVALUE$);
-const HFIELDS2$ = subexp(HFIELD$ + subexp("\\&" + HFIELD$) + "*");
-const HFIELDS$ = subexp("\\?" + HFIELDS2$);
-const MAILTO_URI = new RegExp("^mailto\\:" + TO$ + "?" + HFIELDS$ + "?$");
-
-const UNRESERVED = new RegExp(UNRESERVED$$, "g");
-const PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
-const NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
-const NOT_DOMAIN = new RegExp(merge("[^]", ATEXT$$, "[\\.]", "[\\[]", DTEXT_NO_OBS$$, "[\\]]"), "g");
-const NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
-const NOT_HFVALUE = NOT_HFNAME;
-const TO = new RegExp("^" + TO$ + "$");
-const HFIELDS = new RegExp("^" + HFIELDS2$ + "$");
-
-function decodeUnreserved(str:string):string {
- const decStr = pctDecChars(str);
- return (!decStr.match(UNRESERVED) ? str : decStr);
-}
-
-const handler:URISchemeHandler<MailtoComponents> = {
- scheme : "mailto",
-
- parse : function (components:URIComponents, options:URIOptions):MailtoComponents {
- const mailtoComponents = components as MailtoComponents;
- const to = mailtoComponents.to = (mailtoComponents.path ? mailtoComponents.path.split(",") : []);
- mailtoComponents.path = undefined;
-
- if (mailtoComponents.query) {
- let unknownHeaders = false
- const headers:MailtoHeaders = {};
- const hfields = mailtoComponents.query.split("&");
-
- for (let x = 0, xl = hfields.length; x < xl; ++x) {
- const hfield = hfields[x].split("=");
-
- switch (hfield[0]) {
- case "to":
- const toAddrs = hfield[1].split(",");
- for (let x = 0, xl = toAddrs.length; x < xl; ++x) {
- to.push(toAddrs[x]);
- }
- break;
- case "subject":
- mailtoComponents.subject = unescapeComponent(hfield[1], options);
- break;
- case "body":
- mailtoComponents.body = unescapeComponent(hfield[1], options);
- break;
- default:
- unknownHeaders = true;
- headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
- break;
- }
- }
-
- if (unknownHeaders) mailtoComponents.headers = headers;
- }
-
- mailtoComponents.query = undefined;
-
- for (let x = 0, xl = to.length; x < xl; ++x) {
- const addr = to[x].split("@");
-
- addr[0] = unescapeComponent(addr[0]);
-
- if (!options.unicodeSupport) {
- //convert Unicode IDN -> ASCII IDN
- try {
- addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
- } catch (e) {
- mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
- }
- } else {
- addr[1] = unescapeComponent(addr[1], options).toLowerCase();
- }
-
- to[x] = addr.join("@");
- }
-
- return mailtoComponents;
- },
-
- serialize : function (mailtoComponents:MailtoComponents, options:URIOptions):URIComponents {
- const components = mailtoComponents as URIComponents;
- const to = toArray(mailtoComponents.to);
- if (to) {
- for (let x = 0, xl = to.length; x < xl; ++x) {
- const toAddr = String(to[x]);
- const atIdx = toAddr.lastIndexOf("@");
- const localPart = (toAddr.slice(0, atIdx)).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
- let domain = toAddr.slice(atIdx + 1);
-
- //convert IDN via punycode
- try {
- domain = (!options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain));
- } catch (e) {
- components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
-
- to[x] = localPart + "@" + domain;
- }
-
- components.path = to.join(",");
- }
-
- const headers = mailtoComponents.headers = mailtoComponents.headers || {};
-
- if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
- if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
-
- const fields = [];
- for (const name in headers) {
- if (headers[name] !== O[name]) {
- fields.push(
- name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) +
- "=" +
- headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar)
- );
- }
- }
- if (fields.length) {
- components.query = fields.join("&");
- }
-
- return components;
- }
-}
-
-export default handler; \ No newline at end of file
diff --git a/node_modules/uri-js/src/schemes/urn-uuid.ts b/node_modules/uri-js/src/schemes/urn-uuid.ts
deleted file mode 100644
index 5665329..0000000
--- a/node_modules/uri-js/src/schemes/urn-uuid.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-import { URISchemeHandler, URIComponents, URIOptions } from "../uri";
-import { URNComponents } from "./urn";
-import { SCHEMES } from "../uri";
-
-export interface UUIDComponents extends URNComponents {
- uuid?: string;
-}
-
-const UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
-const UUID_PARSE = /^[0-9A-Fa-f\-]{36}/;
-
-//RFC 4122
-const handler:URISchemeHandler<UUIDComponents, URIOptions, URNComponents> = {
- scheme : "urn:uuid",
-
- parse : function (urnComponents:URNComponents, options:URIOptions):UUIDComponents {
- const uuidComponents = urnComponents as UUIDComponents;
- uuidComponents.uuid = uuidComponents.nss;
- uuidComponents.nss = undefined;
-
- if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
- }
-
- return uuidComponents;
- },
-
- serialize : function (uuidComponents:UUIDComponents, options:URIOptions):URNComponents {
- const urnComponents = uuidComponents as URNComponents;
- //normalize UUID
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
- return urnComponents;
- },
-};
-
-export default handler; \ No newline at end of file
diff --git a/node_modules/uri-js/src/schemes/urn.ts b/node_modules/uri-js/src/schemes/urn.ts
deleted file mode 100644
index 590f9cc..0000000
--- a/node_modules/uri-js/src/schemes/urn.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { URISchemeHandler, URIComponents, URIOptions } from "../uri";
-import { pctEncChar, SCHEMES } from "../uri";
-
-export interface URNComponents extends URIComponents {
- nid?:string;
- nss?:string;
-}
-
-export interface URNOptions extends URIOptions {
- nid?:string;
-}
-
-const NID$ = "(?:[0-9A-Za-z][0-9A-Za-z\\-]{1,31})";
-const PCT_ENCODED$ = "(?:\\%[0-9A-Fa-f]{2})";
-const TRANS$$ = "[0-9A-Za-z\\(\\)\\+\\,\\-\\.\\:\\=\\@\\;\\$\\_\\!\\*\\'\\/\\?\\#]";
-const NSS$ = "(?:(?:" + PCT_ENCODED$ + "|" + TRANS$$ + ")+)";
-const URN_SCHEME = new RegExp("^urn\\:(" + NID$ + ")$");
-const URN_PATH = new RegExp("^(" + NID$ + ")\\:(" + NSS$ + ")$");
-const URN_PARSE = /^([^\:]+)\:(.*)/;
-const URN_EXCLUDED = /[\x00-\x20\\\"\&\<\>\[\]\^\`\{\|\}\~\x7F-\xFF]/g;
-
-//RFC 2141
-const handler:URISchemeHandler<URNComponents,URNOptions> = {
- scheme : "urn",
-
- parse : function (components:URIComponents, options:URNOptions):URNComponents {
- const matches = components.path && components.path.match(URN_PARSE);
- let urnComponents = components as URNComponents;
-
- if (matches) {
- const scheme = options.scheme || urnComponents.scheme || "urn";
- const nid = matches[1].toLowerCase();
- const nss = matches[2];
- const urnScheme = `${scheme}:${options.nid || nid}`;
- const schemeHandler = SCHEMES[urnScheme];
-
- urnComponents.nid = nid;
- urnComponents.nss = nss;
- urnComponents.path = undefined;
-
- if (schemeHandler) {
- urnComponents = schemeHandler.parse(urnComponents, options) as URNComponents;
- }
- } else {
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
- }
-
- return urnComponents;
- },
-
- serialize : function (urnComponents:URNComponents, options:URNOptions):URIComponents {
- const scheme = options.scheme || urnComponents.scheme || "urn";
- const nid = urnComponents.nid;
- const urnScheme = `${scheme}:${options.nid || nid}`;
- const schemeHandler = SCHEMES[urnScheme];
-
- if (schemeHandler) {
- urnComponents = schemeHandler.serialize(urnComponents, options) as URNComponents;
- }
-
- const uriComponents = urnComponents as URIComponents;
- const nss = urnComponents.nss;
- uriComponents.path = `${nid || options.nid}:${nss}`;
-
- return uriComponents;
- },
-};
-
-export default handler; \ No newline at end of file
diff --git a/node_modules/uri-js/src/uri.ts b/node_modules/uri-js/src/uri.ts
deleted file mode 100644
index c282c37..0000000
--- a/node_modules/uri-js/src/uri.ts
+++ /dev/null
@@ -1,556 +0,0 @@
-/**
- * URI.js
- *
- * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
- * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
- * @see http://github.com/garycourt/uri-js
- */
-
-/**
- * Copyright 2011 Gary Court. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification, are
- * permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those of the
- * authors and should not be interpreted as representing official policies, either expressed
- * or implied, of Gary Court.
- */
-
-import URI_PROTOCOL from "./regexps-uri";
-import IRI_PROTOCOL from "./regexps-iri";
-import punycode from "punycode";
-import { toUpperCase, typeOf, assign } from "./util";
-
-export interface URIComponents {
- scheme?:string;
- userinfo?:string;
- host?:string;
- port?:number|string;
- path?:string;
- query?:string;
- fragment?:string;
- reference?:string;
- error?:string;
-}
-
-export interface URIOptions {
- scheme?:string;
- reference?:string;
- tolerant?:boolean;
- absolutePath?:boolean;
- iri?:boolean;
- unicodeSupport?:boolean;
- domainHost?:boolean;
-}
-
-export interface URISchemeHandler<Components extends URIComponents = URIComponents, Options extends URIOptions = URIOptions, ParentComponents extends URIComponents = URIComponents> {
- scheme:string;
- parse(components:ParentComponents, options:Options):Components;
- serialize(components:Components, options:Options):ParentComponents;
- unicodeSupport?:boolean;
- domainHost?:boolean;
- absolutePath?:boolean;
-}
-
-export interface URIRegExps {
- NOT_SCHEME : RegExp,
- NOT_USERINFO : RegExp,
- NOT_HOST : RegExp,
- NOT_PATH : RegExp,
- NOT_PATH_NOSCHEME : RegExp,
- NOT_QUERY : RegExp,
- NOT_FRAGMENT : RegExp,
- ESCAPE : RegExp,
- UNRESERVED : RegExp,
- OTHER_CHARS : RegExp,
- PCT_ENCODED : RegExp,
- IPV4ADDRESS : RegExp,
- IPV6ADDRESS : RegExp,
-}
-
-export const SCHEMES:{[scheme:string]:URISchemeHandler} = {};
-
-export function pctEncChar(chr:string):string {
- const c = chr.charCodeAt(0);
- let e:string;
-
- if (c < 16) e = "%0" + c.toString(16).toUpperCase();
- else if (c < 128) e = "%" + c.toString(16).toUpperCase();
- else if (c < 2048) e = "%" + ((c >> 6) | 192).toString(16).toUpperCase() + "%" + ((c & 63) | 128).toString(16).toUpperCase();
- else e = "%" + ((c >> 12) | 224).toString(16).toUpperCase() + "%" + (((c >> 6) & 63) | 128).toString(16).toUpperCase() + "%" + ((c & 63) | 128).toString(16).toUpperCase();
-
- return e;
-}
-
-export function pctDecChars(str:string):string {
- let newStr = "";
- let i = 0;
- const il = str.length;
-
- while (i < il) {
- const c = parseInt(str.substr(i + 1, 2), 16);
-
- if (c < 128) {
- newStr += String.fromCharCode(c);
- i += 3;
- }
- else if (c >= 194 && c < 224) {
- if ((il - i) >= 6) {
- const c2 = parseInt(str.substr(i + 4, 2), 16);
- newStr += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
- } else {
- newStr += str.substr(i, 6);
- }
- i += 6;
- }
- else if (c >= 224) {
- if ((il - i) >= 9) {
- const c2 = parseInt(str.substr(i + 4, 2), 16);
- const c3 = parseInt(str.substr(i + 7, 2), 16);
- newStr += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
- } else {
- newStr += str.substr(i, 9);
- }
- i += 9;
- }
- else {
- newStr += str.substr(i, 3);
- i += 3;
- }
- }
-
- return newStr;
-}
-
-function _normalizeComponentEncoding(components:URIComponents, protocol:URIRegExps) {
- function decodeUnreserved(str:string):string {
- const decStr = pctDecChars(str);
- return (!decStr.match(protocol.UNRESERVED) ? str : decStr);
- }
-
- if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
- if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace((components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME), pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
- if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
-
- return components;
-};
-
-function _stripLeadingZeros(str:string):string {
- return str.replace(/^0*(.*)/, "$1") || "0";
-}
-
-function _normalizeIPv4(host:string, protocol:URIRegExps):string {
- const matches = host.match(protocol.IPV4ADDRESS) || [];
- const [, address] = matches;
-
- if (address) {
- return address.split(".").map(_stripLeadingZeros).join(".");
- } else {
- return host;
- }
-}
-
-function _normalizeIPv6(host:string, protocol:URIRegExps):string {
- const matches = host.match(protocol.IPV6ADDRESS) || [];
- const [, address, zone] = matches;
-
- if (address) {
- const [last, first] = address.toLowerCase().split('::').reverse();
- const firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
- const lastFields = last.split(":").map(_stripLeadingZeros);
- const isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
- const fieldCount = isLastFieldIPv4Address ? 7 : 8;
- const lastFieldsStart = lastFields.length - fieldCount;
- const fields = Array<string>(fieldCount);
-
- for (let x = 0; x < fieldCount; ++x) {
- fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';
- }
-
- if (isLastFieldIPv4Address) {
- fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
- }
-
- const allZeroFields = fields.reduce<Array<{index:number,length:number}>>((acc, field, index) => {
- if (!field || field === "0") {
- const lastLongest = acc[acc.length - 1];
- if (lastLongest && lastLongest.index + lastLongest.length === index) {
- lastLongest.length++;
- } else {
- acc.push({ index, length : 1 });
- }
- }
- return acc;
- }, []);
-
- const longestZeroFields = allZeroFields.sort((a, b) => b.length - a.length)[0];
-
- let newHost:string;
- if (longestZeroFields && longestZeroFields.length > 1) {
- const newFirst = fields.slice(0, longestZeroFields.index) ;
- const newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
- newHost = newFirst.join(":") + "::" + newLast.join(":");
- } else {
- newHost = fields.join(":");
- }
-
- if (zone) {
- newHost += "%" + zone;
- }
-
- return newHost;
- } else {
- return host;
- }
-}
-
-const URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
-const NO_MATCH_IS_UNDEFINED = (<RegExpMatchArray>("").match(/(){0}/))[1] === undefined;
-
-export function parse(uriString:string, options:URIOptions = {}):URIComponents {
- const components:URIComponents = {};
- const protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);
-
- if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
-
- const matches = uriString.match(URI_PARSE);
-
- if (matches) {
- if (NO_MATCH_IS_UNDEFINED) {
- //store each component
- components.scheme = matches[1];
- components.userinfo = matches[3];
- components.host = matches[4];
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = matches[7];
- components.fragment = matches[8];
-
- //fix port number
- if (isNaN(components.port)) {
- components.port = matches[5];
- }
- } else { //IE FIX for improper RegExp matching
- //store each component
- components.scheme = matches[1] || undefined;
- components.userinfo = (uriString.indexOf("@") !== -1 ? matches[3] : undefined);
- components.host = (uriString.indexOf("//") !== -1 ? matches[4] : undefined);
- components.port = parseInt(matches[5], 10);
- components.path = matches[6] || "";
- components.query = (uriString.indexOf("?") !== -1 ? matches[7] : undefined);
- components.fragment = (uriString.indexOf("#") !== -1 ? matches[8] : undefined);
-
- //fix port number
- if (isNaN(components.port)) {
- components.port = (uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined);
- }
- }
-
- if (components.host) {
- //normalize IP hosts
- components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
- }
-
- //determine reference type
- if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
- components.reference = "same-document";
- } else if (components.scheme === undefined) {
- components.reference = "relative";
- } else if (components.fragment === undefined) {
- components.reference = "absolute";
- } else {
- components.reference = "uri";
- }
-
- //check for reference errors
- if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
- components.error = components.error || "URI is not a " + options.reference + " reference.";
- }
-
- //find scheme handler
- const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
-
- //check if scheme can't handle IRIs
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
- //if host component is a domain name
- if (components.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost))) {
- //convert Unicode IDN -> ASCII IDN
- try {
- components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
- } catch (e) {
- components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
- }
- }
- //convert IRI -> URI
- _normalizeComponentEncoding(components, URI_PROTOCOL);
- } else {
- //normalize encodings
- _normalizeComponentEncoding(components, protocol);
- }
-
- //perform scheme specific parsing
- if (schemeHandler && schemeHandler.parse) {
- schemeHandler.parse(components, options);
- }
- } else {
- components.error = components.error || "URI can not be parsed.";
- }
-
- return components;
-};
-
-function _recomposeAuthority(components:URIComponents, options:URIOptions):string|undefined {
- const protocol = (options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL);
- const uriTokens:Array<string> = [];
-
- if (components.userinfo !== undefined) {
- uriTokens.push(components.userinfo);
- uriTokens.push("@");
- }
-
- if (components.host !== undefined) {
- //normalize IP hosts, add brackets and escape zone separator for IPv6
- uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, (_, $1, $2) => "[" + $1 + ($2 ? "%25" + $2 : "") + "]"));
- }
-
- if (typeof components.port === "number") {
- uriTokens.push(":");
- uriTokens.push(components.port.toString(10));
- }
-
- return uriTokens.length ? uriTokens.join("") : undefined;
-};
-
-const RDS1 = /^\.\.?\//;
-const RDS2 = /^\/\.(\/|$)/;
-const RDS3 = /^\/\.\.(\/|$)/;
-const RDS4 = /^\.\.?$/;
-const RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
-
-export function removeDotSegments(input:string):string {
- const output:Array<string> = [];
-
- while (input.length) {
- if (input.match(RDS1)) {
- input = input.replace(RDS1, "");
- } else if (input.match(RDS2)) {
- input = input.replace(RDS2, "/");
- } else if (input.match(RDS3)) {
- input = input.replace(RDS3, "/");
- output.pop();
- } else if (input === "." || input === "..") {
- input = "";
- } else {
- const im = input.match(RDS5);
- if (im) {
- const s = im[0];
- input = input.slice(s.length);
- output.push(s);
- } else {
- throw new Error("Unexpected dot segment condition");
- }
- }
- }
-
- return output.join("");
-};
-
-export function serialize(components:URIComponents, options:URIOptions = {}):string {
- const protocol = (options.iri ? IRI_PROTOCOL : URI_PROTOCOL);
- const uriTokens:Array<string> = [];
-
- //find scheme handler
- const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
-
- //perform scheme specific serialization
- if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
-
- if (components.host) {
- //if host component is an IPv6 address
- if (protocol.IPV6ADDRESS.test(components.host)) {
- //TODO: normalize IPv6 address as per RFC 5952
- }
-
- //if host component is a domain name
- else if (options.domainHost || (schemeHandler && schemeHandler.domainHost)) {
- //convert IDN via punycode
- try {
- components.host = (!options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host));
- } catch (e) {
- components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
- }
- }
- }
-
- //normalize encoding
- _normalizeComponentEncoding(components, protocol);
-
- if (options.reference !== "suffix" && components.scheme) {
- uriTokens.push(components.scheme);
- uriTokens.push(":");
- }
-
- const authority = _recomposeAuthority(components, options);
- if (authority !== undefined) {
- if (options.reference !== "suffix") {
- uriTokens.push("//");
- }
-
- uriTokens.push(authority);
-
- if (components.path && components.path.charAt(0) !== "/") {
- uriTokens.push("/");
- }
- }
-
- if (components.path !== undefined) {
- let s = components.path;
-
- if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
- s = removeDotSegments(s);
- }
-
- if (authority === undefined) {
- s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//"
- }
-
- uriTokens.push(s);
- }
-
- if (components.query !== undefined) {
- uriTokens.push("?");
- uriTokens.push(components.query);
- }
-
- if (components.fragment !== undefined) {
- uriTokens.push("#");
- uriTokens.push(components.fragment);
- }
-
- return uriTokens.join(""); //merge tokens into a string
-};
-
-export function resolveComponents(base:URIComponents, relative:URIComponents, options:URIOptions = {}, skipNormalization?:boolean):URIComponents {
- const target:URIComponents = {};
-
- if (!skipNormalization) {
- base = parse(serialize(base, options), options); //normalize base components
- relative = parse(serialize(relative, options), options); //normalize relative components
- }
- options = options || {};
-
- if (!options.tolerant && relative.scheme) {
- target.scheme = relative.scheme;
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- } else {
- if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
- //target.authority = relative.authority;
- target.userinfo = relative.userinfo;
- target.host = relative.host;
- target.port = relative.port;
- target.path = removeDotSegments(relative.path || "");
- target.query = relative.query;
- } else {
- if (!relative.path) {
- target.path = base.path;
- if (relative.query !== undefined) {
- target.query = relative.query;
- } else {
- target.query = base.query;
- }
- } else {
- if (relative.path.charAt(0) === "/") {
- target.path = removeDotSegments(relative.path);
- } else {
- if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
- target.path = "/" + relative.path;
- } else if (!base.path) {
- target.path = relative.path;
- } else {
- target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
- }
- target.path = removeDotSegments(target.path);
- }
- target.query = relative.query;
- }
- //target.authority = base.authority;
- target.userinfo = base.userinfo;
- target.host = base.host;
- target.port = base.port;
- }
- target.scheme = base.scheme;
- }
-
- target.fragment = relative.fragment;
-
- return target;
-};
-
-export function resolve(baseURI:string, relativeURI:string, options?:URIOptions):string {
- const schemelessOptions = assign({ scheme : 'null' }, options);
- return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
-};
-
-export function normalize(uri:string, options?:URIOptions):string;
-export function normalize(uri:URIComponents, options?:URIOptions):URIComponents;
-export function normalize(uri:any, options?:URIOptions):any {
- if (typeof uri === "string") {
- uri = serialize(parse(uri, options), options);
- } else if (typeOf(uri) === "object") {
- uri = parse(serialize(<URIComponents>uri, options), options);
- }
-
- return uri;
-};
-
-export function equal(uriA:string, uriB:string, options?: URIOptions):boolean;
-export function equal(uriA:URIComponents, uriB:URIComponents, options?:URIOptions):boolean;
-export function equal(uriA:any, uriB:any, options?:URIOptions):boolean {
- if (typeof uriA === "string") {
- uriA = serialize(parse(uriA, options), options);
- } else if (typeOf(uriA) === "object") {
- uriA = serialize(<URIComponents>uriA, options);
- }
-
- if (typeof uriB === "string") {
- uriB = serialize(parse(uriB, options), options);
- } else if (typeOf(uriB) === "object") {
- uriB = serialize(<URIComponents>uriB, options);
- }
-
- return uriA === uriB;
-};
-
-export function escapeComponent(str:string, options?:URIOptions):string {
- return str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE), pctEncChar);
-};
-
-export function unescapeComponent(str:string, options?:URIOptions):string {
- return str && str.toString().replace((!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED), pctDecChars);
-};
diff --git a/node_modules/uri-js/src/util.ts b/node_modules/uri-js/src/util.ts
deleted file mode 100644
index 29c6d5d..0000000
--- a/node_modules/uri-js/src/util.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-export function merge(...sets:Array<string>):string {
- if (sets.length > 1) {
- sets[0] = sets[0].slice(0, -1);
- const xl = sets.length - 1;
- for (let x = 1; x < xl; ++x) {
- sets[x] = sets[x].slice(1, -1);
- }
- sets[xl] = sets[xl].slice(1);
- return sets.join('');
- } else {
- return sets[0];
- }
-}
-
-export function subexp(str:string):string {
- return "(?:" + str + ")";
-}
-
-export function typeOf(o:any):string {
- return o === undefined ? "undefined" : (o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase());
-}
-
-export function toUpperCase(str:string):string {
- return str.toUpperCase();
-}
-
-export function toArray(obj:any):Array<any> {
- return obj !== undefined && obj !== null ? (obj instanceof Array ? obj : (typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj))) : [];
-}
-
-
-export function assign(target: object, source: any): any {
- const obj = target as any;
- if (source) {
- for (const key in source) {
- obj[key] = source[key];
- }
- }
- return obj;
-} \ No newline at end of file
diff --git a/node_modules/uri-js/tests/qunit.css b/node_modules/uri-js/tests/qunit.css
deleted file mode 100644
index a2e183d..0000000
--- a/node_modules/uri-js/tests/qunit.css
+++ /dev/null
@@ -1,118 +0,0 @@
-ol#qunit-tests {
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- margin:0;
- padding:0;
- list-style-position:inside;
-
- font-size: smaller;
-}
-ol#qunit-tests li{
- padding:0.4em 0.5em 0.4em 2.5em;
- border-bottom:1px solid #fff;
- font-size:small;
- list-style-position:inside;
-}
-ol#qunit-tests li ol{
- box-shadow: inset 0px 2px 13px #999;
- -moz-box-shadow: inset 0px 2px 13px #999;
- -webkit-box-shadow: inset 0px 2px 13px #999;
- margin-top:0.5em;
- margin-left:0;
- padding:0.5em;
- background-color:#fff;
- border-radius:15px;
- -moz-border-radius: 15px;
- -webkit-border-radius: 15px;
-}
-ol#qunit-tests li li{
- border-bottom:none;
- margin:0.5em;
- background-color:#fff;
- list-style-position: inside;
- padding:0.4em 0.5em 0.4em 0.5em;
-}
-
-ol#qunit-tests li li.pass{
- border-left:26px solid #C6E746;
- background-color:#fff;
- color:#5E740B;
- }
-ol#qunit-tests li li.fail{
- border-left:26px solid #EE5757;
- background-color:#fff;
- color:#710909;
-}
-ol#qunit-tests li.pass{
- background-color:#D2E0E6;
- color:#528CE0;
-}
-ol#qunit-tests li.fail{
- background-color:#EE5757;
- color:#000;
-}
-ol#qunit-tests li strong {
- cursor:pointer;
-}
-h1#qunit-header{
- background-color:#0d3349;
- margin:0;
- padding:0.5em 0 0.5em 1em;
- color:#fff;
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- border-top-right-radius:15px;
- border-top-left-radius:15px;
- -moz-border-radius-topright:15px;
- -moz-border-radius-topleft:15px;
- -webkit-border-top-right-radius:15px;
- -webkit-border-top-left-radius:15px;
- text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
-}
-h2#qunit-banner{
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- height:5px;
- margin:0;
- padding:0;
-}
-h2#qunit-banner.qunit-pass{
- background-color:#C6E746;
-}
-h2#qunit-banner.qunit-fail, #qunit-testrunner-toolbar {
- background-color:#EE5757;
-}
-#qunit-testrunner-toolbar {
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- padding:0;
- /*width:80%;*/
- padding:0em 0 0.5em 2em;
- font-size: small;
-}
-h2#qunit-userAgent {
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- background-color:#2b81af;
- margin:0;
- padding:0;
- color:#fff;
- font-size: small;
- padding:0.5em 0 0.5em 2.5em;
- text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
-}
-p#qunit-testresult{
- font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
- margin:0;
- font-size: small;
- color:#2b81af;
- border-bottom-right-radius:15px;
- border-bottom-left-radius:15px;
- -moz-border-radius-bottomright:15px;
- -moz-border-radius-bottomleft:15px;
- -webkit-border-bottom-right-radius:15px;
- -webkit-border-bottom-left-radius:15px;
- background-color:#D2E0E6;
- padding:0.5em 0.5em 0.5em 2.5em;
-}
-strong b.fail{
- color:#710909;
- }
-strong b.pass{
- color:#5E740B;
- } \ No newline at end of file
diff --git a/node_modules/uri-js/tests/qunit.js b/node_modules/uri-js/tests/qunit.js
deleted file mode 100644
index e449fdf..0000000
--- a/node_modules/uri-js/tests/qunit.js
+++ /dev/null
@@ -1,1042 +0,0 @@
-/*
- * QUnit - A JavaScript Unit Testing Framework
- *
- * http://docs.jquery.com/QUnit
- *
- * Copyright (c) 2009 John Resig, Jörn Zaefferer
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- */
-
-(function(window) {
-
-var QUnit = {
-
- // Initialize the configuration options
- init: function() {
- config = {
- stats: { all: 0, bad: 0 },
- moduleStats: { all: 0, bad: 0 },
- started: +new Date,
- blocking: false,
- autorun: false,
- assertions: [],
- filters: [],
- queue: []
- };
-
- var tests = id("qunit-tests"),
- banner = id("qunit-banner"),
- result = id("qunit-testresult");
-
- if ( tests ) {
- tests.innerHTML = "";
- }
-
- if ( banner ) {
- banner.className = "";
- }
-
- if ( result ) {
- result.parentNode.removeChild( result );
- }
- },
-
- // call on start of module test to prepend name to all tests
- module: function(name, testEnvironment) {
- config.currentModule = name;
-
- synchronize(function() {
- if ( config.currentModule ) {
- QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all );
- }
-
- config.currentModule = name;
- config.moduleTestEnvironment = testEnvironment;
- config.moduleStats = { all: 0, bad: 0 };
-
- QUnit.moduleStart( name, testEnvironment );
- });
- },
-
- asyncTest: function(testName, expected, callback) {
- if ( arguments.length === 2 ) {
- callback = expected;
- expected = 0;
- }
-
- QUnit.test(testName, expected, callback, true);
- },
-
- test: function(testName, expected, callback, async) {
- var name = testName, testEnvironment, testEnvironmentArg;
-
- if ( arguments.length === 2 ) {
- callback = expected;
- expected = null;
- }
- // is 2nd argument a testEnvironment?
- if ( expected && typeof expected === 'object') {
- testEnvironmentArg = expected;
- expected = null;
- }
-
- if ( config.currentModule ) {
- name = config.currentModule + " module: " + name;
- }
-
- if ( !validTest(name) ) {
- return;
- }
-
- synchronize(function() {
- QUnit.testStart( testName );
-
- testEnvironment = extend({
- setup: function() {},
- teardown: function() {}
- }, config.moduleTestEnvironment);
- if (testEnvironmentArg) {
- extend(testEnvironment,testEnvironmentArg);
- }
-
- // allow utility functions to access the current test environment
- QUnit.current_testEnvironment = testEnvironment;
-
- config.assertions = [];
- config.expected = expected;
-
- try {
- if ( !config.pollution ) {
- saveGlobal();
- }
-
- testEnvironment.setup.call(testEnvironment);
- } catch(e) {
- QUnit.ok( false, "Setup failed on " + name + ": " + e.message );
- }
-
- if ( async ) {
- QUnit.stop();
- }
-
- try {
- callback.call(testEnvironment);
- } catch(e) {
- fail("Test " + name + " died, exception and test follows", e, callback);
- QUnit.ok( false, "Died on test #" + (config.assertions.length + 1) + ": " + e.message );
- // else next test will carry the responsibility
- saveGlobal();
-
- // Restart the tests if they're blocking
- if ( config.blocking ) {
- start();
- }
- }
- });
-
- synchronize(function() {
- try {
- checkPollution();
- testEnvironment.teardown.call(testEnvironment);
- } catch(e) {
- QUnit.ok( false, "Teardown failed on " + name + ": " + e.message );
- }
-
- try {
- QUnit.reset();
- } catch(e) {
- fail("reset() failed, following Test " + name + ", exception and reset fn follows", e, reset);
- }
-
- if ( config.expected && config.expected != config.assertions.length ) {
- QUnit.ok( false, "Expected " + config.expected + " assertions, but " + config.assertions.length + " were run" );
- }
-
- var good = 0, bad = 0,
- tests = id("qunit-tests");
-
- config.stats.all += config.assertions.length;
- config.moduleStats.all += config.assertions.length;
-
- if ( tests ) {
- var ol = document.createElement("ol");
- ol.style.display = "none";
-
- for ( var i = 0; i < config.assertions.length; i++ ) {
- var assertion = config.assertions[i];
-
- var li = document.createElement("li");
- li.className = assertion.result ? "pass" : "fail";
- li.appendChild(document.createTextNode(assertion.message || "(no message)"));
- ol.appendChild( li );
-
- if ( assertion.result ) {
- good++;
- } else {
- bad++;
- config.stats.bad++;
- config.moduleStats.bad++;
- }
- }
-
- var b = document.createElement("strong");
- b.innerHTML = name + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + config.assertions.length + ")</b>";
-
- addEvent(b, "click", function() {
- var next = b.nextSibling, display = next.style.display;
- next.style.display = display === "none" ? "block" : "none";
- });
-
- addEvent(b, "dblclick", function(e) {
- var target = e && e.target ? e.target : window.event.srcElement;
- if ( target.nodeName.toLowerCase() === "strong" ) {
- var text = "", node = target.firstChild;
-
- while ( node.nodeType === 3 ) {
- text += node.nodeValue;
- node = node.nextSibling;
- }
-
- text = text.replace(/(^\s*|\s*$)/g, "");
-
- if ( window.location ) {
- window.location.href = window.location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent(text);
- }
- }
- });
-
- var li = document.createElement("li");
- li.className = bad ? "fail" : "pass";
- li.appendChild( b );
- li.appendChild( ol );
- tests.appendChild( li );
-
- if ( bad ) {
- var toolbar = id("qunit-testrunner-toolbar");
- if ( toolbar ) {
- toolbar.style.display = "block";
- id("qunit-filter-pass").disabled = null;
- id("qunit-filter-missing").disabled = null;
- }
- }
-
- } else {
- for ( var i = 0; i < config.assertions.length; i++ ) {
- if ( !config.assertions[i].result ) {
- bad++;
- config.stats.bad++;
- config.moduleStats.bad++;
- }
- }
- }
-
- QUnit.testDone( testName, bad, config.assertions.length );
-
- if ( !window.setTimeout && !config.queue.length ) {
- done();
- }
- });
-
- if ( window.setTimeout && !config.doneTimer ) {
- config.doneTimer = window.setTimeout(function(){
- if ( !config.queue.length ) {
- done();
- } else {
- synchronize( done );
- }
- }, 13);
- }
- },
-
- /**
- * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
- */
- expect: function(asserts) {
- config.expected = asserts;
- },
-
- /**
- * Asserts true.
- * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" );
- */
- ok: function(a, msg) {
- QUnit.log(a, msg);
-
- config.assertions.push({
- result: !!a,
- message: msg
- });
- },
-
- /**
- * Checks that the first two arguments are equal, with an optional message.
- * Prints out both actual and expected values.
- *
- * Prefered to ok( actual == expected, message )
- *
- * @example equal( format("Received {0} bytes.", 2), "Received 2 bytes." );
- *
- * @param Object actual
- * @param Object expected
- * @param String message (optional)
- */
- equal: function(actual, expected, message) {
- push(expected == actual, actual, expected, message);
- },
-
- notEqual: function(actual, expected, message) {
- push(expected != actual, actual, expected, message);
- },
-
- deepEqual: function(a, b, message) {
- push(QUnit.equiv(a, b), a, b, message);
- },
-
- notDeepEqual: function(a, b, message) {
- push(!QUnit.equiv(a, b), a, b, message);
- },
-
- strictEqual: function(actual, expected, message) {
- push(expected === actual, actual, expected, message);
- },
-
- notStrictEqual: function(actual, expected, message) {
- push(expected !== actual, actual, expected, message);
- },
-
- start: function() {
- // A slight delay, to avoid any current callbacks
- if ( window.setTimeout ) {
- window.setTimeout(function() {
- if ( config.timeout ) {
- clearTimeout(config.timeout);
- }
-
- config.blocking = false;
- process();
- }, 13);
- } else {
- config.blocking = false;
- process();
- }
- },
-
- stop: function(timeout) {
- config.blocking = true;
-
- if ( timeout && window.setTimeout ) {
- config.timeout = window.setTimeout(function() {
- QUnit.ok( false, "Test timed out" );
- QUnit.start();
- }, timeout);
- }
- },
-
- /**
- * Resets the test setup. Useful for tests that modify the DOM.
- */
- reset: function() {
- if ( window.jQuery ) {
- jQuery("#main").html( config.fixture );
- jQuery.event.global = {};
- jQuery.ajaxSettings = extend({}, config.ajaxSettings);
- }
- },
-
- /**
- * Trigger an event on an element.
- *
- * @example triggerEvent( document.body, "click" );
- *
- * @param DOMElement elem
- * @param String type
- */
- triggerEvent: function( elem, type, event ) {
- if ( document.createEvent ) {
- event = document.createEvent("MouseEvents");
- event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
- 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- elem.dispatchEvent( event );
-
- } else if ( elem.fireEvent ) {
- elem.fireEvent("on"+type);
- }
- },
-
- // Safe object type checking
- is: function( type, obj ) {
- return Object.prototype.toString.call( obj ) === "[object "+ type +"]";
- },
-
- // Logging callbacks
- done: function(failures, total) {},
- log: function(result, message) {},
- testStart: function(name) {},
- testDone: function(name, failures, total) {},
- moduleStart: function(name, testEnvironment) {},
- moduleDone: function(name, failures, total) {}
-};
-
-// Backwards compatibility, deprecated
-QUnit.equals = QUnit.equal;
-QUnit.same = QUnit.deepEqual;
-
-// Maintain internal state
-var config = {
- // The queue of tests to run
- queue: [],
-
- // block until document ready
- blocking: true
-};
-
-// Load paramaters
-(function() {
- var location = window.location || { search: "", protocol: "file:" },
- GETParams = location.search.slice(1).split('&');
-
- for ( var i = 0; i < GETParams.length; i++ ) {
- GETParams[i] = decodeURIComponent( GETParams[i] );
- if ( GETParams[i] === "noglobals" ) {
- GETParams.splice( i, 1 );
- i--;
- config.noglobals = true;
- } else if ( GETParams[i].search('=') > -1 ) {
- GETParams.splice( i, 1 );
- i--;
- }
- }
-
- // restrict modules/tests by get parameters
- config.filters = GETParams;
-
- // Figure out if we're running the tests from a server or not
- QUnit.isLocal = !!(location.protocol === 'file:');
-})();
-
-// Expose the API as global variables, unless an 'exports'
-// object exists, in that case we assume we're in CommonJS
-if ( typeof exports === "undefined" || typeof require === "undefined" ) {
- extend(window, QUnit);
- window.QUnit = QUnit;
-} else {
- extend(exports, QUnit);
- exports.QUnit = QUnit;
-}
-
-if ( typeof document === "undefined" || document.readyState === "complete" ) {
- config.autorun = true;
-}
-
-addEvent(window, "load", function() {
- // Initialize the config, saving the execution queue
- var oldconfig = extend({}, config);
- QUnit.init();
- extend(config, oldconfig);
-
- config.blocking = false;
-
- var userAgent = id("qunit-userAgent");
- if ( userAgent ) {
- userAgent.innerHTML = navigator.userAgent;
- }
-
- var toolbar = id("qunit-testrunner-toolbar");
- if ( toolbar ) {
- toolbar.style.display = "none";
-
- var filter = document.createElement("input");
- filter.type = "checkbox";
- filter.id = "qunit-filter-pass";
- filter.disabled = true;
- addEvent( filter, "click", function() {
- var li = document.getElementsByTagName("li");
- for ( var i = 0; i < li.length; i++ ) {
- if ( li[i].className.indexOf("pass") > -1 ) {
- li[i].style.display = filter.checked ? "none" : "";
- }
- }
- });
- toolbar.appendChild( filter );
-
- var label = document.createElement("label");
- label.setAttribute("for", "qunit-filter-pass");
- label.innerHTML = "Hide passed tests";
- toolbar.appendChild( label );
-
- var missing = document.createElement("input");
- missing.type = "checkbox";
- missing.id = "qunit-filter-missing";
- missing.disabled = true;
- addEvent( missing, "click", function() {
- var li = document.getElementsByTagName("li");
- for ( var i = 0; i < li.length; i++ ) {
- if ( li[i].className.indexOf("fail") > -1 && li[i].innerHTML.indexOf('missing test - untested code is broken code') > - 1 ) {
- li[i].parentNode.parentNode.style.display = missing.checked ? "none" : "block";
- }
- }
- });
- toolbar.appendChild( missing );
-
- label = document.createElement("label");
- label.setAttribute("for", "qunit-filter-missing");
- label.innerHTML = "Hide missing tests (untested code is broken code)";
- toolbar.appendChild( label );
- }
-
- var main = id('main');
- if ( main ) {
- config.fixture = main.innerHTML;
- }
-
- if ( window.jQuery ) {
- config.ajaxSettings = window.jQuery.ajaxSettings;
- }
-
- QUnit.start();
-});
-
-function done() {
- if ( config.doneTimer && window.clearTimeout ) {
- window.clearTimeout( config.doneTimer );
- config.doneTimer = null;
- }
-
- if ( config.queue.length ) {
- config.doneTimer = window.setTimeout(function(){
- if ( !config.queue.length ) {
- done();
- } else {
- synchronize( done );
- }
- }, 13);
-
- return;
- }
-
- config.autorun = true;
-
- // Log the last module results
- if ( config.currentModule ) {
- QUnit.moduleDone( config.currentModule, config.moduleStats.bad, config.moduleStats.all );
- }
-
- var banner = id("qunit-banner"),
- tests = id("qunit-tests"),
- html = ['Tests completed in ',
- +new Date - config.started, ' milliseconds.<br/>',
- '<span class="passed">', config.stats.all - config.stats.bad, '</span> tests of <span class="total">', config.stats.all, '</span> passed, <span class="failed">', config.stats.bad,'</span> failed.'].join('');
-
- if ( banner ) {
- banner.className = (config.stats.bad ? "qunit-fail" : "qunit-pass");
- }
-
- if ( tests ) {
- var result = id("qunit-testresult");
-
- if ( !result ) {
- result = document.createElement("p");
- result.id = "qunit-testresult";
- result.className = "result";
- tests.parentNode.insertBefore( result, tests.nextSibling );
- }
-
- result.innerHTML = html;
- }
-
- QUnit.done( config.stats.bad, config.stats.all );
-}
-
-function validTest( name ) {
- var i = config.filters.length,
- run = false;
-
- if ( !i ) {
- return true;
- }
-
- while ( i-- ) {
- var filter = config.filters[i],
- not = filter.charAt(0) == '!';
-
- if ( not ) {
- filter = filter.slice(1);
- }
-
- if ( name.indexOf(filter) !== -1 ) {
- return !not;
- }
-
- if ( not ) {
- run = true;
- }
- }
-
- return run;
-}
-
-function push(result, actual, expected, message) {
- message = message || (result ? "okay" : "failed");
- QUnit.ok( result, result ? message + ": " + expected : message + ", expected: " + QUnit.jsDump.parse(expected) + " result: " + QUnit.jsDump.parse(actual) );
-}
-
-function synchronize( callback ) {
- config.queue.push( callback );
-
- if ( config.autorun && !config.blocking ) {
- process();
- }
-}
-
-function process() {
- while ( config.queue.length && !config.blocking ) {
- config.queue.shift()();
- }
-}
-
-function saveGlobal() {
- config.pollution = [];
-
- if ( config.noglobals ) {
- for ( var key in window ) {
- config.pollution.push( key );
- }
- }
-}
-
-function checkPollution( name ) {
- var old = config.pollution;
- saveGlobal();
-
- var newGlobals = diff( old, config.pollution );
- if ( newGlobals.length > 0 ) {
- ok( false, "Introduced global variable(s): " + newGlobals.join(", ") );
- config.expected++;
- }
-
- var deletedGlobals = diff( config.pollution, old );
- if ( deletedGlobals.length > 0 ) {
- ok( false, "Deleted global variable(s): " + deletedGlobals.join(", ") );
- config.expected++;
- }
-}
-
-// returns a new Array with the elements that are in a but not in b
-function diff( a, b ) {
- var result = a.slice();
- for ( var i = 0; i < result.length; i++ ) {
- for ( var j = 0; j < b.length; j++ ) {
- if ( result[i] === b[j] ) {
- result.splice(i, 1);
- i--;
- break;
- }
- }
- }
- return result;
-}
-
-function fail(message, exception, callback) {
- if ( typeof console !== "undefined" && console.error && console.warn ) {
- console.error(message);
- console.error(exception);
- console.warn(callback.toString());
-
- } else if ( window.opera && opera.postError ) {
- opera.postError(message, exception, callback.toString);
- }
-}
-
-function extend(a, b) {
- for ( var prop in b ) {
- a[prop] = b[prop];
- }
-
- return a;
-}
-
-function addEvent(elem, type, fn) {
- if ( elem.addEventListener ) {
- elem.addEventListener( type, fn, false );
- } else if ( elem.attachEvent ) {
- elem.attachEvent( "on" + type, fn );
- } else {
- fn();
- }
-}
-
-function id(name) {
- return !!(typeof document !== "undefined" && document && document.getElementById) &&
- document.getElementById( name );
-}
-
-// Test for equality any JavaScript type.
-// Discussions and reference: http://philrathe.com/articles/equiv
-// Test suites: http://philrathe.com/tests/equiv
-// Author: Philippe Rathé <prathe@gmail.com>
-QUnit.equiv = function () {
-
- var innerEquiv; // the real equiv function
- var callers = []; // stack to decide between skip/abort functions
-
-
- // Determine what is o.
- function hoozit(o) {
- if (QUnit.is("String", o)) {
- return "string";
-
- } else if (QUnit.is("Boolean", o)) {
- return "boolean";
-
- } else if (QUnit.is("Number", o)) {
-
- if (isNaN(o)) {
- return "nan";
- } else {
- return "number";
- }
-
- } else if (typeof o === "undefined") {
- return "undefined";
-
- // consider: typeof null === object
- } else if (o === null) {
- return "null";
-
- // consider: typeof [] === object
- } else if (QUnit.is( "Array", o)) {
- return "array";
-
- // consider: typeof new Date() === object
- } else if (QUnit.is( "Date", o)) {
- return "date";
-
- // consider: /./ instanceof Object;
- // /./ instanceof RegExp;
- // typeof /./ === "function"; // => false in IE and Opera,
- // true in FF and Safari
- } else if (QUnit.is( "RegExp", o)) {
- return "regexp";
-
- } else if (typeof o === "object") {
- return "object";
-
- } else if (QUnit.is( "Function", o)) {
- return "function";
- } else {
- return undefined;
- }
- }
-
- // Call the o related callback with the given arguments.
- function bindCallbacks(o, callbacks, args) {
- var prop = hoozit(o);
- if (prop) {
- if (hoozit(callbacks[prop]) === "function") {
- return callbacks[prop].apply(callbacks, args);
- } else {
- return callbacks[prop]; // or undefined
- }
- }
- }
-
- var callbacks = function () {
-
- // for string, boolean, number and null
- function useStrictEquality(b, a) {
- if (b instanceof a.constructor || a instanceof b.constructor) {
- // to catch short annotaion VS 'new' annotation of a declaration
- // e.g. var i = 1;
- // var j = new Number(1);
- return a == b;
- } else {
- return a === b;
- }
- }
-
- return {
- "string": useStrictEquality,
- "boolean": useStrictEquality,
- "number": useStrictEquality,
- "null": useStrictEquality,
- "undefined": useStrictEquality,
-
- "nan": function (b) {
- return isNaN(b);
- },
-
- "date": function (b, a) {
- return hoozit(b) === "date" && a.valueOf() === b.valueOf();
- },
-
- "regexp": function (b, a) {
- return hoozit(b) === "regexp" &&
- a.source === b.source && // the regex itself
- a.global === b.global && // and its modifers (gmi) ...
- a.ignoreCase === b.ignoreCase &&
- a.multiline === b.multiline;
- },
-
- // - skip when the property is a method of an instance (OOP)
- // - abort otherwise,
- // initial === would have catch identical references anyway
- "function": function () {
- var caller = callers[callers.length - 1];
- return caller !== Object &&
- typeof caller !== "undefined";
- },
-
- "array": function (b, a) {
- var i;
- var len;
-
- // b could be an object literal here
- if ( ! (hoozit(b) === "array")) {
- return false;
- }
-
- len = a.length;
- if (len !== b.length) { // safe and faster
- return false;
- }
- for (i = 0; i < len; i++) {
- if ( ! innerEquiv(a[i], b[i])) {
- return false;
- }
- }
- return true;
- },
-
- "object": function (b, a) {
- var i;
- var eq = true; // unless we can proove it
- var aProperties = [], bProperties = []; // collection of strings
-
- // comparing constructors is more strict than using instanceof
- if ( a.constructor !== b.constructor) {
- return false;
- }
-
- // stack constructor before traversing properties
- callers.push(a.constructor);
-
- for (i in a) { // be strict: don't ensures hasOwnProperty and go deep
-
- aProperties.push(i); // collect a's properties
-
- if ( ! innerEquiv(a[i], b[i])) {
- eq = false;
- }
- }
-
- callers.pop(); // unstack, we are done
-
- for (i in b) {
- bProperties.push(i); // collect b's properties
- }
-
- // Ensures identical properties name
- return eq && innerEquiv(aProperties.sort(), bProperties.sort());
- }
- };
- }();
-
- innerEquiv = function () { // can take multiple arguments
- var args = Array.prototype.slice.apply(arguments);
- if (args.length < 2) {
- return true; // end transition
- }
-
- return (function (a, b) {
- if (a === b) {
- return true; // catch the most you can
- } else if (a === null || b === null || typeof a === "undefined" || typeof b === "undefined" || hoozit(a) !== hoozit(b)) {
- return false; // don't lose time with error prone cases
- } else {
- return bindCallbacks(a, callbacks, [b, a]);
- }
-
- // apply transition with (1..n) arguments
- })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length -1));
- };
-
- return innerEquiv;
-
-}();
-
-/**
- * jsDump
- * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
- * Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php)
- * Date: 5/15/2008
- * @projectDescription Advanced and extensible data dumping for Javascript.
- * @version 1.0.0
- * @author Ariel Flesler
- * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
- */
-QUnit.jsDump = (function() {
- function quote( str ) {
- return '"' + str.toString().replace(/"/g, '\\"') + '"';
- };
- function literal( o ) {
- return o + '';
- };
- function join( pre, arr, post ) {
- var s = jsDump.separator(),
- base = jsDump.indent(),
- inner = jsDump.indent(1);
- if ( arr.join )
- arr = arr.join( ',' + s + inner );
- if ( !arr )
- return pre + post;
- return [ pre, inner + arr, base + post ].join(s);
- };
- function array( arr ) {
- var i = arr.length, ret = Array(i);
- this.up();
- while ( i-- )
- ret[i] = this.parse( arr[i] );
- this.down();
- return join( '[', ret, ']' );
- };
-
- var reName = /^function (\w+)/;
-
- var jsDump = {
- parse:function( obj, type ) { //type is used mostly internally, you can fix a (custom)type in advance
- var parser = this.parsers[ type || this.typeOf(obj) ];
- type = typeof parser;
-
- return type == 'function' ? parser.call( this, obj ) :
- type == 'string' ? parser :
- this.parsers.error;
- },
- typeOf:function( obj ) {
- var type;
- if ( obj === null ) {
- type = "null";
- } else if (typeof obj === "undefined") {
- type = "undefined";
- } else if (QUnit.is("RegExp", obj)) {
- type = "regexp";
- } else if (QUnit.is("Date", obj)) {
- type = "date";
- } else if (QUnit.is("Function", obj)) {
- type = "function";
- } else if (QUnit.is("Array", obj)) {
- type = "array";
- } else if (QUnit.is("Window", obj) || QUnit.is("global", obj)) {
- type = "window";
- } else if (QUnit.is("HTMLDocument", obj)) {
- type = "document";
- } else if (QUnit.is("HTMLCollection", obj) || QUnit.is("NodeList", obj)) {
- type = "nodelist";
- } else if (/^\[object HTML/.test(Object.prototype.toString.call( obj ))) {
- type = "node";
- } else {
- type = typeof obj;
- }
- return type;
- },
- separator:function() {
- return this.multiline ? this.HTML ? '<br />' : '\n' : this.HTML ? '&nbsp;' : ' ';
- },
- indent:function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing
- if ( !this.multiline )
- return '';
- var chr = this.indentChar;
- if ( this.HTML )
- chr = chr.replace(/\t/g,' ').replace(/ /g,'&nbsp;');
- return Array( this._depth_ + (extra||0) ).join(chr);
- },
- up:function( a ) {
- this._depth_ += a || 1;
- },
- down:function( a ) {
- this._depth_ -= a || 1;
- },
- setParser:function( name, parser ) {
- this.parsers[name] = parser;
- },
- // The next 3 are exposed so you can use them
- quote:quote,
- literal:literal,
- join:join,
- //
- _depth_: 1,
- // This is the list of parsers, to modify them, use jsDump.setParser
- parsers:{
- window: '[Window]',
- document: '[Document]',
- error:'[ERROR]', //when no parser is found, shouldn't happen
- unknown: '[Unknown]',
- 'null':'null',
- undefined:'undefined',
- 'function':function( fn ) {
- var ret = 'function',
- name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE
- if ( name )
- ret += ' ' + name;
- ret += '(';
-
- ret = [ ret, this.parse( fn, 'functionArgs' ), '){'].join('');
- return join( ret, this.parse(fn,'functionCode'), '}' );
- },
- array: array,
- nodelist: array,
- arguments: array,
- object:function( map ) {
- var ret = [ ];
- this.up();
- for ( var key in map )
- ret.push( this.parse(key,'key') + ': ' + this.parse(map[key]) );
- this.down();
- return join( '{', ret, '}' );
- },
- node:function( node ) {
- var open = this.HTML ? '&lt;' : '<',
- close = this.HTML ? '&gt;' : '>';
-
- var tag = node.nodeName.toLowerCase(),
- ret = open + tag;
-
- for ( var a in this.DOMAttrs ) {
- var val = node[this.DOMAttrs[a]];
- if ( val )
- ret += ' ' + a + '=' + this.parse( val, 'attribute' );
- }
- return ret + close + open + '/' + tag + close;
- },
- functionArgs:function( fn ) {//function calls it internally, it's the arguments part of the function
- var l = fn.length;
- if ( !l ) return '';
-
- var args = Array(l);
- while ( l-- )
- args[l] = String.fromCharCode(97+l);//97 is 'a'
- return ' ' + args.join(', ') + ' ';
- },
- key:quote, //object calls it internally, the key part of an item in a map
- functionCode:'[code]', //function calls it internally, it's the content of the function
- attribute:quote, //node calls it internally, it's an html attribute value
- string:quote,
- date:quote,
- regexp:literal, //regex
- number:literal,
- 'boolean':literal
- },
- DOMAttrs:{//attributes to dump from nodes, name=>realName
- id:'id',
- name:'name',
- 'class':'className'
- },
- HTML:true,//if true, entities are escaped ( <, >, \t, space and \n )
- indentChar:' ',//indentation unit
- multiline:true //if true, items in a collection, are separated by a \n, else just a space.
- };
-
- return jsDump;
-})();
-
-})(this);
diff --git a/node_modules/uri-js/tests/test-es5-min.html b/node_modules/uri-js/tests/test-es5-min.html
deleted file mode 100644
index b841c75..0000000
--- a/node_modules/uri-js/tests/test-es5-min.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
- <head>
- <link rel="stylesheet" href="qunit.css" type="text/css"/>
- <script type="text/javascript" src="qunit.js"></script>
- <script type="text/javascript" src="../dist/es5/uri.all.min.js"></script>
- <script type="text/javascript" src="tests.js"></script>
- </head>
- <body>
- <h1 id="qunit-header">URI.js Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- </body>
-</html>
diff --git a/node_modules/uri-js/tests/test-es5.html b/node_modules/uri-js/tests/test-es5.html
deleted file mode 100644
index 2d89c66..0000000
--- a/node_modules/uri-js/tests/test-es5.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
-<html>
- <head>
- <link rel="stylesheet" href="qunit.css" type="text/css"/>
- <script type="text/javascript" src="qunit.js"></script>
- <script type="text/javascript" src="../dist/es5/uri.all.js"></script>
- <script type="text/javascript" src="tests.js"></script>
- </head>
- <body>
- <h1 id="qunit-header">URI.js Test Suite</h1>
- <h2 id="qunit-banner"></h2>
- <div id="qunit-testrunner-toolbar"></div>
- <h2 id="qunit-userAgent"></h2>
- <ol id="qunit-tests"></ol>
- </body>
-</html>
diff --git a/node_modules/uri-js/tests/tests.js b/node_modules/uri-js/tests/tests.js
deleted file mode 100644
index 624191c..0000000
--- a/node_modules/uri-js/tests/tests.js
+++ /dev/null
@@ -1,774 +0,0 @@
-//
-//
-// Tests
-//
-//
-
-if (typeof URI === "undefined") {
- var URI = require("../dist/es5/uri.all");
-}
-
-test("Acquire URI", function () {
- //URI = require("./uri").URI;
- ok(URI);
-});
-
-test("URI Parsing", function () {
- var components;
-
- //scheme
- components = URI.parse("uri:");
- strictEqual(components.error, undefined, "scheme errors");
- strictEqual(components.scheme, "uri", "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //userinfo
- components = URI.parse("//@");
- strictEqual(components.error, undefined, "userinfo errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, "@", "authority");
- strictEqual(components.userinfo, "", "userinfo");
- strictEqual(components.host, "", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //host
- components = URI.parse("//");
- strictEqual(components.error, undefined, "host errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, "", "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //port
- components = URI.parse("//:");
- strictEqual(components.error, undefined, "port errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, ":", "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "", "host");
- strictEqual(components.port, "", "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //path
- components = URI.parse("");
- strictEqual(components.error, undefined, "path errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //query
- components = URI.parse("?");
- strictEqual(components.error, undefined, "query errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, "", "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //fragment
- components = URI.parse("#");
- strictEqual(components.error, undefined, "fragment errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, "", "fragment");
-
- //fragment with character tabulation
- components = URI.parse("#\t");
- strictEqual(components.error, undefined, "path errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, "%09", "fragment");
-
- //fragment with line feed
- components = URI.parse("#\n");
- strictEqual(components.error, undefined, "path errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, "%0A", "fragment");
-
- //fragment with line tabulation
- components = URI.parse("#\v");
- strictEqual(components.error, undefined, "path errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, "%0B", "fragment");
-
- //fragment with form feed
- components = URI.parse("#\f");
- strictEqual(components.error, undefined, "path errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, "%0C", "fragment");
-
- //fragment with carriage return
- components = URI.parse("#\r");
- strictEqual(components.error, undefined, "path errors");
- strictEqual(components.scheme, undefined, "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, "%0D", "fragment");
-
- //all
- components = URI.parse("uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body");
- strictEqual(components.error, undefined, "all errors");
- strictEqual(components.scheme, "uri", "scheme");
- //strictEqual(components.authority, "user:pass@example.com:123", "authority");
- strictEqual(components.userinfo, "user:pass", "userinfo");
- strictEqual(components.host, "example.com", "host");
- strictEqual(components.port, 123, "port");
- strictEqual(components.path, "/one/two.three", "path");
- strictEqual(components.query, "q1=a1&q2=a2", "query");
- strictEqual(components.fragment, "body", "fragment");
-
- //IPv4address
- components = URI.parse("//10.10.10.10");
- strictEqual(components.error, undefined, "IPv4address errors");
- strictEqual(components.scheme, undefined, "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "10.10.10.10", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //IPv6address
- components = URI.parse("//[2001:db8::7]");
- strictEqual(components.error, undefined, "IPv4address errors");
- strictEqual(components.scheme, undefined, "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "2001:db8::7", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //mixed IPv4address & IPv6address
- components = URI.parse("//[::ffff:129.144.52.38]");
- strictEqual(components.error, undefined, "IPv4address errors");
- strictEqual(components.scheme, undefined, "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "::ffff:129.144.52.38", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //mixed IPv4address & reg-name, example from terion-name (https://github.com/garycourt/uri-js/issues/4)
- components = URI.parse("uri://10.10.10.10.example.com/en/process");
- strictEqual(components.error, undefined, "mixed errors");
- strictEqual(components.scheme, "uri", "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "10.10.10.10.example.com", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "/en/process", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //IPv6address, example from bkw (https://github.com/garycourt/uri-js/pull/16)
- components = URI.parse("//[2606:2800:220:1:248:1893:25c8:1946]/test");
- strictEqual(components.error, undefined, "IPv6address errors");
- strictEqual(components.scheme, undefined, "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "2606:2800:220:1:248:1893:25c8:1946", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "/test", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //IPv6address, example from RFC 5952
- components = URI.parse("//[2001:db8::1]:80");
- strictEqual(components.error, undefined, "IPv6address errors");
- strictEqual(components.scheme, undefined, "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "2001:db8::1", "host");
- strictEqual(components.port, 80, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //IPv6address with zone identifier, RFC 6874
- components = URI.parse("//[fe80::a%25en1]");
- strictEqual(components.error, undefined, "IPv4address errors");
- strictEqual(components.scheme, undefined, "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "fe80::a%en1", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-
- //IPv6address with an unescaped interface specifier, example from pekkanikander (https://github.com/garycourt/uri-js/pull/22)
- components = URI.parse("//[2001:db8::7%en0]");
- strictEqual(components.error, undefined, "IPv6address interface errors");
- strictEqual(components.scheme, undefined, "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, "2001:db8::7%en0", "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, "", "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
-});
-
-test("URI Serialization", function () {
- var components = {
- scheme : undefined,
- userinfo : undefined,
- host : undefined,
- port : undefined,
- path : undefined,
- query : undefined,
- fragment : undefined
- };
- strictEqual(URI.serialize(components), "", "Undefined Components");
-
- components = {
- scheme : "",
- userinfo : "",
- host : "",
- port : 0,
- path : "",
- query : "",
- fragment : ""
- };
- strictEqual(URI.serialize(components), "//@:0?#", "Empty Components");
-
- components = {
- scheme : "uri",
- userinfo : "foo:bar",
- host : "example.com",
- port : 1,
- path : "path",
- query : "query",
- fragment : "fragment"
- };
- strictEqual(URI.serialize(components), "uri://foo:bar@example.com:1/path?query#fragment", "All Components");
-
- strictEqual(URI.serialize({path:"//path"}), "/%2Fpath", "Double slash path");
- strictEqual(URI.serialize({path:"foo:bar"}), "foo%3Abar", "Colon path");
- strictEqual(URI.serialize({path:"?query"}), "%3Fquery", "Query path");
-
- //mixed IPv4address & reg-name, example from terion-name (https://github.com/garycourt/uri-js/issues/4)
- strictEqual(URI.serialize({host:"10.10.10.10.example.com"}), "//10.10.10.10.example.com", "Mixed IPv4address & reg-name");
-
- //IPv6address
- strictEqual(URI.serialize({host:"2001:db8::7"}), "//[2001:db8::7]", "IPv6 Host");
- strictEqual(URI.serialize({host:"::ffff:129.144.52.38"}), "//[::ffff:129.144.52.38]", "IPv6 Mixed Host");
- strictEqual(URI.serialize({host:"2606:2800:220:1:248:1893:25c8:1946"}), "//[2606:2800:220:1:248:1893:25c8:1946]", "IPv6 Full Host");
-
- //IPv6address with zone identifier, RFC 6874
- strictEqual(URI.serialize({host:"fe80::a%en1"}), "//[fe80::a%25en1]", "IPv6 Zone Unescaped Host");
- strictEqual(URI.serialize({host:"fe80::a%25en1"}), "//[fe80::a%25en1]", "IPv6 Zone Escaped Host");
-});
-
-test("URI Resolving", function () {
- //normal examples from RFC 3986
- var base = "uri://a/b/c/d;p?q";
- strictEqual(URI.resolve(base, "g:h"), "g:h", "g:h");
- strictEqual(URI.resolve(base, "g:h"), "g:h", "g:h");
- strictEqual(URI.resolve(base, "g"), "uri://a/b/c/g", "g");
- strictEqual(URI.resolve(base, "./g"), "uri://a/b/c/g", "./g");
- strictEqual(URI.resolve(base, "g/"), "uri://a/b/c/g/", "g/");
- strictEqual(URI.resolve(base, "/g"), "uri://a/g", "/g");
- strictEqual(URI.resolve(base, "//g"), "uri://g", "//g");
- strictEqual(URI.resolve(base, "?y"), "uri://a/b/c/d;p?y", "?y");
- strictEqual(URI.resolve(base, "g?y"), "uri://a/b/c/g?y", "g?y");
- strictEqual(URI.resolve(base, "#s"), "uri://a/b/c/d;p?q#s", "#s");
- strictEqual(URI.resolve(base, "g#s"), "uri://a/b/c/g#s", "g#s");
- strictEqual(URI.resolve(base, "g?y#s"), "uri://a/b/c/g?y#s", "g?y#s");
- strictEqual(URI.resolve(base, ";x"), "uri://a/b/c/;x", ";x");
- strictEqual(URI.resolve(base, "g;x"), "uri://a/b/c/g;x", "g;x");
- strictEqual(URI.resolve(base, "g;x?y#s"), "uri://a/b/c/g;x?y#s", "g;x?y#s");
- strictEqual(URI.resolve(base, ""), "uri://a/b/c/d;p?q", "");
- strictEqual(URI.resolve(base, "."), "uri://a/b/c/", ".");
- strictEqual(URI.resolve(base, "./"), "uri://a/b/c/", "./");
- strictEqual(URI.resolve(base, ".."), "uri://a/b/", "..");
- strictEqual(URI.resolve(base, "../"), "uri://a/b/", "../");
- strictEqual(URI.resolve(base, "../g"), "uri://a/b/g", "../g");
- strictEqual(URI.resolve(base, "../.."), "uri://a/", "../..");
- strictEqual(URI.resolve(base, "../../"), "uri://a/", "../../");
- strictEqual(URI.resolve(base, "../../g"), "uri://a/g", "../../g");
-
- //abnormal examples from RFC 3986
- strictEqual(URI.resolve(base, "../../../g"), "uri://a/g", "../../../g");
- strictEqual(URI.resolve(base, "../../../../g"), "uri://a/g", "../../../../g");
-
- strictEqual(URI.resolve(base, "/./g"), "uri://a/g", "/./g");
- strictEqual(URI.resolve(base, "/../g"), "uri://a/g", "/../g");
- strictEqual(URI.resolve(base, "g."), "uri://a/b/c/g.", "g.");
- strictEqual(URI.resolve(base, ".g"), "uri://a/b/c/.g", ".g");
- strictEqual(URI.resolve(base, "g.."), "uri://a/b/c/g..", "g..");
- strictEqual(URI.resolve(base, "..g"), "uri://a/b/c/..g", "..g");
-
- strictEqual(URI.resolve(base, "./../g"), "uri://a/b/g", "./../g");
- strictEqual(URI.resolve(base, "./g/."), "uri://a/b/c/g/", "./g/.");
- strictEqual(URI.resolve(base, "g/./h"), "uri://a/b/c/g/h", "g/./h");
- strictEqual(URI.resolve(base, "g/../h"), "uri://a/b/c/h", "g/../h");
- strictEqual(URI.resolve(base, "g;x=1/./y"), "uri://a/b/c/g;x=1/y", "g;x=1/./y");
- strictEqual(URI.resolve(base, "g;x=1/../y"), "uri://a/b/c/y", "g;x=1/../y");
-
- strictEqual(URI.resolve(base, "g?y/./x"), "uri://a/b/c/g?y/./x", "g?y/./x");
- strictEqual(URI.resolve(base, "g?y/../x"), "uri://a/b/c/g?y/../x", "g?y/../x");
- strictEqual(URI.resolve(base, "g#s/./x"), "uri://a/b/c/g#s/./x", "g#s/./x");
- strictEqual(URI.resolve(base, "g#s/../x"), "uri://a/b/c/g#s/../x", "g#s/../x");
-
- strictEqual(URI.resolve(base, "uri:g"), "uri:g", "uri:g");
- strictEqual(URI.resolve(base, "uri:g", {tolerant:true}), "uri://a/b/c/g", "uri:g");
-
- //examples by PAEz
- strictEqual(URI.resolve("//www.g.com/","/adf\ngf"), "//www.g.com/adf%0Agf", "/adf\\ngf");
- strictEqual(URI.resolve("//www.g.com/error\n/bleh/bleh",".."), "//www.g.com/error%0A/", "//www.g.com/error\\n/bleh/bleh");
-});
-
-test("URI Normalizing", function () {
- //test from RFC 3987
- strictEqual(URI.normalize("uri://www.example.org/red%09ros\xE9#red"), "uri://www.example.org/red%09ros%C3%A9#red");
-
- //IPv4address
- strictEqual(URI.normalize("//192.068.001.000"), "//192.68.1.0");
-
- //IPv6address, example from RFC 3513
- strictEqual(URI.normalize("http://[1080::8:800:200C:417A]/"), "http://[1080::8:800:200c:417a]/");
-
- //IPv6address, examples from RFC 5952
- strictEqual(URI.normalize("//[2001:0db8::0001]/"), "//[2001:db8::1]/");
- strictEqual(URI.normalize("//[2001:db8::1:0000:1]/"), "//[2001:db8::1:0:1]/");
- strictEqual(URI.normalize("//[2001:db8:0:0:0:0:2:1]/"), "//[2001:db8::2:1]/");
- strictEqual(URI.normalize("//[2001:db8:0:1:1:1:1:1]/"), "//[2001:db8:0:1:1:1:1:1]/");
- strictEqual(URI.normalize("//[2001:0:0:1:0:0:0:1]/"), "//[2001:0:0:1::1]/");
- strictEqual(URI.normalize("//[2001:db8:0:0:1:0:0:1]/"), "//[2001:db8::1:0:0:1]/");
- strictEqual(URI.normalize("//[2001:DB8::1]/"), "//[2001:db8::1]/");
- strictEqual(URI.normalize("//[0:0:0:0:0:ffff:192.0.2.1]/"), "//[::ffff:192.0.2.1]/");
-
- //Mixed IPv4 and IPv6 address
- strictEqual(URI.normalize("//[1:2:3:4:5:6:192.0.2.1]/"), "//[1:2:3:4:5:6:192.0.2.1]/");
- strictEqual(URI.normalize("//[1:2:3:4:5:6:192.068.001.000]/"), "//[1:2:3:4:5:6:192.68.1.0]/");
-});
-
-test("URI Equals", function () {
- //test from RFC 3986
- strictEqual(URI.equal("example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d"), true);
-
- //test from RFC 3987
- strictEqual(URI.equal("http://example.org/~user", "http://example.org/%7euser"), true);
-});
-
-test("Escape Component", function () {
- var chr;
- for (var d = 0; d <= 129; ++d) {
- chr = String.fromCharCode(d);
- if (!chr.match(/[\$\&\+\,\;\=]/)) {
- strictEqual(URI.escapeComponent(chr), encodeURIComponent(chr));
- } else {
- strictEqual(URI.escapeComponent(chr), chr);
- }
- }
- strictEqual(URI.escapeComponent("\u00c0"), encodeURIComponent("\u00c0"));
- strictEqual(URI.escapeComponent("\u07ff"), encodeURIComponent("\u07ff"));
- strictEqual(URI.escapeComponent("\u0800"), encodeURIComponent("\u0800"));
- strictEqual(URI.escapeComponent("\u30a2"), encodeURIComponent("\u30a2"));
-});
-
-test("Unescape Component", function () {
- var chr;
- for (var d = 0; d <= 129; ++d) {
- chr = String.fromCharCode(d);
- strictEqual(URI.unescapeComponent(encodeURIComponent(chr)), chr);
- }
- strictEqual(URI.unescapeComponent(encodeURIComponent("\u00c0")), "\u00c0");
- strictEqual(URI.unescapeComponent(encodeURIComponent("\u07ff")), "\u07ff");
- strictEqual(URI.unescapeComponent(encodeURIComponent("\u0800")), "\u0800");
- strictEqual(URI.unescapeComponent(encodeURIComponent("\u30a2")), "\u30a2");
-});
-
-//
-// IRI
-//
-
-
-
-var IRI_OPTION = { iri : true, unicodeSupport : true };
-
-test("IRI Parsing", function () {
- var components = URI.parse("uri://us\xA0er:pa\uD7FFss@example.com:123/o\uF900ne/t\uFDCFwo.t\uFDF0hree?q1=a1\uF8FF\uE000&q2=a2#bo\uFFEFdy", IRI_OPTION);
- strictEqual(components.error, undefined, "all errors");
- strictEqual(components.scheme, "uri", "scheme");
- //strictEqual(components.authority, "us\xA0er:pa\uD7FFss@example.com:123", "authority");
- strictEqual(components.userinfo, "us\xA0er:pa\uD7FFss", "userinfo");
- strictEqual(components.host, "example.com", "host");
- strictEqual(components.port, 123, "port");
- strictEqual(components.path, "/o\uF900ne/t\uFDCFwo.t\uFDF0hree", "path");
- strictEqual(components.query, "q1=a1\uF8FF\uE000&q2=a2", "query");
- strictEqual(components.fragment, "bo\uFFEFdy", "fragment");
-});
-
-test("IRI Serialization", function () {
- var components = {
- scheme : "uri",
- userinfo : "us\xA0er:pa\uD7FFss",
- host : "example.com",
- port : 123,
- path : "/o\uF900ne/t\uFDCFwo.t\uFDF0hree",
- query : "q1=a1\uF8FF\uE000&q2=a2",
- fragment : "bo\uFFEFdy\uE001"
- };
- strictEqual(URI.serialize(components, IRI_OPTION), "uri://us\xA0er:pa\uD7FFss@example.com:123/o\uF900ne/t\uFDCFwo.t\uFDF0hree?q1=a1\uF8FF\uE000&q2=a2#bo\uFFEFdy%EE%80%81");
-});
-
-test("IRI Normalizing", function () {
- strictEqual(URI.normalize("uri://www.example.org/red%09ros\xE9#red", IRI_OPTION), "uri://www.example.org/red%09ros\xE9#red");
-});
-
-test("IRI Equals", function () {
- //example from RFC 3987
- strictEqual(URI.equal("example://a/b/c/%7Bfoo%7D/ros\xE9", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d/ros%C3%A9", IRI_OPTION), true);
-});
-
-test("Convert IRI to URI", function () {
- //example from RFC 3987
- strictEqual(URI.serialize(URI.parse("uri://www.example.org/red%09ros\xE9#red", IRI_OPTION)), "uri://www.example.org/red%09ros%C3%A9#red");
-
- //Internationalized Domain Name conversion via punycode example from RFC 3987
- strictEqual(URI.serialize(URI.parse("uri://r\xE9sum\xE9.example.org", {iri:true, domainHost:true}), {domainHost:true}), "uri://xn--rsum-bpad.example.org");
-});
-
-test("Convert URI to IRI", function () {
- //examples from RFC 3987
- strictEqual(URI.serialize(URI.parse("uri://www.example.org/D%C3%BCrst"), IRI_OPTION), "uri://www.example.org/D\xFCrst");
- strictEqual(URI.serialize(URI.parse("uri://www.example.org/D%FCrst"), IRI_OPTION), "uri://www.example.org/D%FCrst");
- strictEqual(URI.serialize(URI.parse("uri://xn--99zt52a.example.org/%e2%80%ae"), IRI_OPTION), "uri://xn--99zt52a.example.org/%E2%80%AE"); //or uri://\u7D0D\u8C46.example.org/%E2%80%AE
-
- //Internationalized Domain Name conversion via punycode example from RFC 3987
- strictEqual(URI.serialize(URI.parse("uri://xn--rsum-bpad.example.org", {domainHost:true}), {iri:true, domainHost:true}), "uri://r\xE9sum\xE9.example.org");
-});
-
-//
-// HTTP
-//
-
-if (URI.SCHEMES["http"]) {
-
- //module("HTTP");
-
- test("HTTP Equals", function () {
- //test from RFC 2616
- strictEqual(URI.equal("http://abc.com:80/~smith/home.html", "http://abc.com/~smith/home.html"), true);
- strictEqual(URI.equal("http://ABC.com/%7Esmith/home.html", "http://abc.com/~smith/home.html"), true);
- strictEqual(URI.equal("http://ABC.com:/%7esmith/home.html", "http://abc.com/~smith/home.html"), true);
- strictEqual(URI.equal("HTTP://ABC.COM", "http://abc.com/"), true);
- //test from RFC 3986
- strictEqual(URI.equal("http://example.com:/", "http://example.com:80/"), true);
- });
-
-}
-
-if (URI.SCHEMES["https"]) {
-
- //module("HTTPS");
-
- test("HTTPS Equals", function () {
- strictEqual(URI.equal("https://example.com", "https://example.com:443/"), true);
- strictEqual(URI.equal("https://example.com:/", "https://example.com:443/"), true);
- });
-
-}
-
-//
-// URN
-//
-
-if (URI.SCHEMES["urn"]) {
-
- //module("URN");
-
- test("URN Parsing", function () {
- //example from RFC 2141
- var components = URI.parse("urn:foo:a123,456");
- strictEqual(components.error, undefined, "errors");
- strictEqual(components.scheme, "urn", "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, undefined, "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
- strictEqual(components.nid, "foo", "nid");
- strictEqual(components.nss, "a123,456", "nss");
- });
-
- test("URN Serialization", function () {
- //example from RFC 2141
- var components = {
- scheme : "urn",
- nid : "foo",
- nss : "a123,456"
- };
- strictEqual(URI.serialize(components), "urn:foo:a123,456");
- });
-
- test("URN Equals", function () {
- //test from RFC 2141
- strictEqual(URI.equal("urn:foo:a123,456", "urn:foo:a123,456"), true);
- strictEqual(URI.equal("urn:foo:a123,456", "URN:foo:a123,456"), true);
- strictEqual(URI.equal("urn:foo:a123,456", "urn:FOO:a123,456"), true);
- strictEqual(URI.equal("urn:foo:a123,456", "urn:foo:A123,456"), false);
- strictEqual(URI.equal("urn:foo:a123%2C456", "URN:FOO:a123%2c456"), true);
- });
-
- test("URN Resolving", function () {
- //example from epoberezkin
- strictEqual(URI.resolve('', 'urn:some:ip:prop'), 'urn:some:ip:prop');
- strictEqual(URI.resolve('#', 'urn:some:ip:prop'), 'urn:some:ip:prop');
- strictEqual(URI.resolve('urn:some:ip:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop');
- strictEqual(URI.resolve('urn:some:other:prop', 'urn:some:ip:prop'), 'urn:some:ip:prop');
- });
-
- //
- // URN UUID
- //
-
- test("UUID Parsing", function () {
- //example from RFC 4122
- var components = URI.parse("urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6");
- strictEqual(components.error, undefined, "errors");
- strictEqual(components.scheme, "urn", "scheme");
- //strictEqual(components.authority, undefined, "authority");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, undefined, "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
- strictEqual(components.nid, "uuid", "nid");
- strictEqual(components.nss, undefined, "nss");
- strictEqual(components.uuid, "f81d4fae-7dec-11d0-a765-00a0c91e6bf6", "uuid");
-
- components = URI.parse("urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6");
- notStrictEqual(components.error, undefined, "errors");
- });
-
- test("UUID Serialization", function () {
- //example from RFC 4122
- var components = {
- scheme : "urn",
- nid : "uuid",
- uuid : "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
- };
- strictEqual(URI.serialize(components), "urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6");
-
- components = {
- scheme : "urn",
- nid : "uuid",
- uuid : "notauuid-7dec-11d0-a765-00a0c91e6bf6"
- };
- strictEqual(URI.serialize(components), "urn:uuid:notauuid-7dec-11d0-a765-00a0c91e6bf6");
- });
-
- test("UUID Equals", function () {
- strictEqual(URI.equal("URN:UUID:F81D4FAE-7DEC-11D0-A765-00A0C91E6BF6", "urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6"), true);
- });
-
- test("URN NID Override", function () {
- var components = URI.parse("urn:foo:f81d4fae-7dec-11d0-a765-00a0c91e6bf6", {nid:"uuid"});
- strictEqual(components.error, undefined, "errors");
- strictEqual(components.scheme, "urn", "scheme");
- strictEqual(components.path, undefined, "path");
- strictEqual(components.nid, "foo", "nid");
- strictEqual(components.nss, undefined, "nss");
- strictEqual(components.uuid, "f81d4fae-7dec-11d0-a765-00a0c91e6bf6", "uuid");
-
- var components = {
- scheme : "urn",
- nid : "foo",
- uuid : "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
- };
- strictEqual(URI.serialize(components, {nid:"uuid"}), "urn:foo:f81d4fae-7dec-11d0-a765-00a0c91e6bf6");
- });
-}
-
-//
-// Mailto
-//
-
-if (URI.SCHEMES["mailto"]) {
-
- //module("Mailto");
-
- test("Mailto Parse", function () {
- var components;
-
- //tests from RFC 6068
-
- components = URI.parse("mailto:chris@example.com");
- strictEqual(components.error, undefined, "error");
- strictEqual(components.scheme, "mailto", "scheme");
- strictEqual(components.userinfo, undefined, "userinfo");
- strictEqual(components.host, undefined, "host");
- strictEqual(components.port, undefined, "port");
- strictEqual(components.path, undefined, "path");
- strictEqual(components.query, undefined, "query");
- strictEqual(components.fragment, undefined, "fragment");
- deepEqual(components.to, ["chris@example.com"], "to");
- strictEqual(components.subject, undefined, "subject");
- strictEqual(components.body, undefined, "body");
- strictEqual(components.headers, undefined, "headers");
-
- components = URI.parse("mailto:infobot@example.com?subject=current-issue");
- deepEqual(components.to, ["infobot@example.com"], "to");
- strictEqual(components.subject, "current-issue", "subject");
-
- components = URI.parse("mailto:infobot@example.com?body=send%20current-issue");
- deepEqual(components.to, ["infobot@example.com"], "to");
- strictEqual(components.body, "send current-issue", "body");
-
- components = URI.parse("mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index");
- deepEqual(components.to, ["infobot@example.com"], "to");
- strictEqual(components.body, "send current-issue\x0D\x0Asend index", "body");
-
- components = URI.parse("mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E");
- deepEqual(components.to, ["list@example.org"], "to");
- deepEqual(components.headers, {"In-Reply-To":"<3469A91.D10AF4C@example.com>"}, "headers");
-
- components = URI.parse("mailto:majordomo@example.com?body=subscribe%20bamboo-l");
- deepEqual(components.to, ["majordomo@example.com"], "to");
- strictEqual(components.body, "subscribe bamboo-l", "body");
-
- components = URI.parse("mailto:joe@example.com?cc=bob@example.com&body=hello");
- deepEqual(components.to, ["joe@example.com"], "to");
- strictEqual(components.body, "hello", "body");
- deepEqual(components.headers, {"cc":"bob@example.com"}, "headers");
-
- components = URI.parse("mailto:joe@example.com?cc=bob@example.com?body=hello");
- if (URI.VALIDATE_SUPPORT) ok(components.error, "invalid header fields");
-
- components = URI.parse("mailto:gorby%25kremvax@example.com");
- deepEqual(components.to, ["gorby%kremvax@example.com"], "to gorby%kremvax@example.com");
-
- components = URI.parse("mailto:unlikely%3Faddress@example.com?blat=foop");
- deepEqual(components.to, ["unlikely?address@example.com"], "to unlikely?address@example.com");
- deepEqual(components.headers, {"blat":"foop"}, "headers");
-
- components = URI.parse("mailto:Mike%26family@example.org");
- deepEqual(components.to, ["Mike&family@example.org"], "to Mike&family@example.org");
-
- components = URI.parse("mailto:%22not%40me%22@example.org");
- deepEqual(components.to, ['"not@me"@example.org'], "to " + '"not@me"@example.org');
-
- components = URI.parse("mailto:%22oh%5C%5Cno%22@example.org");
- deepEqual(components.to, ['"oh\\\\no"@example.org'], "to " + '"oh\\\\no"@example.org');
-
- components = URI.parse("mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org");
- deepEqual(components.to, ['"\\\\\\"it\'s\\ ugly\\\\\\""@example.org'], "to " + '"\\\\\\"it\'s\\ ugly\\\\\\""@example.org');
-
- components = URI.parse("mailto:user@example.org?subject=caf%C3%A9");
- deepEqual(components.to, ["user@example.org"], "to");
- strictEqual(components.subject, "caf\xE9", "subject");
-
- components = URI.parse("mailto:user@example.org?subject=%3D%3Futf-8%3FQ%3Fcaf%3DC3%3DA9%3F%3D");
- deepEqual(components.to, ["user@example.org"], "to");
- strictEqual(components.subject, "=?utf-8?Q?caf=C3=A9?=", "subject"); //TODO: Verify this
-
- components = URI.parse("mailto:user@example.org?subject=%3D%3Fiso-8859-1%3FQ%3Fcaf%3DE9%3F%3D");
- deepEqual(components.to, ["user@example.org"], "to");
- strictEqual(components.subject, "=?iso-8859-1?Q?caf=E9?=", "subject"); //TODO: Verify this
-
- components = URI.parse("mailto:user@example.org?subject=caf%C3%A9&body=caf%C3%A9");
- deepEqual(components.to, ["user@example.org"], "to");
- strictEqual(components.subject, "caf\xE9", "subject");
- strictEqual(components.body, "caf\xE9", "body");
-
- if (URI.IRI_SUPPORT) {
- components = URI.parse("mailto:user@%E7%B4%8D%E8%B1%86.example.org?subject=Test&body=NATTO");
- deepEqual(components.to, ["user@xn--99zt52a.example.org"], "to");
- strictEqual(components.subject, "Test", "subject");
- strictEqual(components.body, "NATTO", "body");
- }
-
- });
-
- test("Mailto Serialize", function () {
- var components;
-
- //tests from RFC 6068
- strictEqual(URI.serialize({scheme : "mailto", to : ["chris@example.com"]}), "mailto:chris@example.com");
- strictEqual(URI.serialize({scheme : "mailto", to : ["infobot@example.com"], body : "current-issue"}), "mailto:infobot@example.com?body=current-issue");
- strictEqual(URI.serialize({scheme : "mailto", to : ["infobot@example.com"], body : "send current-issue"}), "mailto:infobot@example.com?body=send%20current-issue");
- strictEqual(URI.serialize({scheme : "mailto", to : ["infobot@example.com"], body : "send current-issue\x0D\x0Asend index"}), "mailto:infobot@example.com?body=send%20current-issue%0D%0Asend%20index");
- strictEqual(URI.serialize({scheme : "mailto", to : ["list@example.org"], headers : {"In-Reply-To" : "<3469A91.D10AF4C@example.com>"}}), "mailto:list@example.org?In-Reply-To=%3C3469A91.D10AF4C@example.com%3E");
- strictEqual(URI.serialize({scheme : "mailto", to : ["majordomo@example.com"], body : "subscribe bamboo-l"}), "mailto:majordomo@example.com?body=subscribe%20bamboo-l");
- strictEqual(URI.serialize({scheme : "mailto", to : ["joe@example.com"], headers : {"cc" : "bob@example.com", "body" : "hello"}}), "mailto:joe@example.com?cc=bob@example.com&body=hello");
- strictEqual(URI.serialize({scheme : "mailto", to : ["gorby%25kremvax@example.com"]}), "mailto:gorby%25kremvax@example.com");
- strictEqual(URI.serialize({scheme : "mailto", to : ["unlikely%3Faddress@example.com"], headers : {"blat" : "foop"}}), "mailto:unlikely%3Faddress@example.com?blat=foop");
- strictEqual(URI.serialize({scheme : "mailto", to : ["Mike&family@example.org"]}), "mailto:Mike%26family@example.org");
- strictEqual(URI.serialize({scheme : "mailto", to : ['"not@me"@example.org']}), "mailto:%22not%40me%22@example.org");
- strictEqual(URI.serialize({scheme : "mailto", to : ['"oh\\\\no"@example.org']}), "mailto:%22oh%5C%5Cno%22@example.org");
- strictEqual(URI.serialize({scheme : "mailto", to : ['"\\\\\\"it\'s\\ ugly\\\\\\""@example.org']}), "mailto:%22%5C%5C%5C%22it's%5C%20ugly%5C%5C%5C%22%22@example.org");
- strictEqual(URI.serialize({scheme : "mailto", to : ["user@example.org"], subject : "caf\xE9"}), "mailto:user@example.org?subject=caf%C3%A9");
- strictEqual(URI.serialize({scheme : "mailto", to : ["user@example.org"], subject : "=?utf-8?Q?caf=C3=A9?="}), "mailto:user@example.org?subject=%3D%3Futf-8%3FQ%3Fcaf%3DC3%3DA9%3F%3D");
- strictEqual(URI.serialize({scheme : "mailto", to : ["user@example.org"], subject : "=?iso-8859-1?Q?caf=E9?="}), "mailto:user@example.org?subject=%3D%3Fiso-8859-1%3FQ%3Fcaf%3DE9%3F%3D");
- strictEqual(URI.serialize({scheme : "mailto", to : ["user@example.org"], subject : "caf\xE9", body : "caf\xE9"}), "mailto:user@example.org?subject=caf%C3%A9&body=caf%C3%A9");
- if (URI.IRI_SUPPORT) {
- strictEqual(URI.serialize({scheme : "mailto", to : ["us\xE9r@\u7d0d\u8c46.example.org"], subject : "Test", body : "NATTO"}), "mailto:us%C3%A9r@xn--99zt52a.example.org?subject=Test&body=NATTO");
- }
-
- });
-
- test("Mailto Equals", function () {
- //tests from RFC 6068
- strictEqual(URI.equal("mailto:addr1@an.example,addr2@an.example", "mailto:?to=addr1@an.example,addr2@an.example"), true);
- strictEqual(URI.equal("mailto:?to=addr1@an.example,addr2@an.example", "mailto:addr1@an.example?to=addr2@an.example"), true);
- });
-
-}
diff --git a/node_modules/uri-js/tsconfig.json b/node_modules/uri-js/tsconfig.json
deleted file mode 100644
index e289985..0000000
--- a/node_modules/uri-js/tsconfig.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "compilerOptions": {
- "module": "es2015",
- "target": "esnext",
- "noImplicitAny": true,
- "sourceMap": true,
- "alwaysStrict": true,
- "declaration": true,
- "experimentalDecorators": true,
- "forceConsistentCasingInFileNames": true,
- "importHelpers": true,
- "noImplicitReturns": true,
- "noImplicitThis": true,
- "outDir": "dist/esnext",
- "strictNullChecks": true
- },
- "include": [
- "src/**/*"
- ]
-}
diff --git a/node_modules/uri-js/yarn.lock b/node_modules/uri-js/yarn.lock
deleted file mode 100644
index 569687d..0000000
--- a/node_modules/uri-js/yarn.lock
+++ /dev/null
@@ -1,1902 +0,0 @@
-# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
-# yarn lockfile v1
-
-
-abbrev@1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"
-
-ajv@^4.9.1:
- version "4.11.8"
- resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536"
- dependencies:
- co "^4.6.0"
- json-stable-stringify "^1.0.1"
-
-align-text@^0.1.1, align-text@^0.1.3:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
- dependencies:
- kind-of "^3.0.2"
- longest "^1.0.1"
- repeat-string "^1.5.2"
-
-ansi-regex@^2.0.0:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
-
-ansi-styles@^2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
-
-anymatch@^1.3.0:
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a"
- dependencies:
- micromatch "^2.1.5"
- normalize-path "^2.0.0"
-
-aproba@^1.0.3:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a"
-
-are-we-there-yet@~1.1.2:
- version "1.1.4"
- resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d"
- dependencies:
- delegates "^1.0.0"
- readable-stream "^2.0.6"
-
-arr-diff@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
- dependencies:
- arr-flatten "^1.0.1"
-
-arr-flatten@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1"
-
-array-unique@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
-
-asn1@~0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
-
-assert-plus@1.0.0, assert-plus@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"
-
-assert-plus@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234"
-
-async-each@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
-
-asynckit@^0.4.0:
- version "0.4.0"
- resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
-
-aws-sign2@~0.6.0:
- version "0.6.0"
- resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f"
-
-aws4@^1.2.1:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"
-
-babel-cli@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1"
- dependencies:
- babel-core "^6.26.0"
- babel-polyfill "^6.26.0"
- babel-register "^6.26.0"
- babel-runtime "^6.26.0"
- commander "^2.11.0"
- convert-source-map "^1.5.0"
- fs-readdir-recursive "^1.0.0"
- glob "^7.1.2"
- lodash "^4.17.4"
- output-file-sync "^1.1.2"
- path-is-absolute "^1.0.1"
- slash "^1.0.0"
- source-map "^0.5.6"
- v8flags "^2.1.1"
- optionalDependencies:
- chokidar "^1.6.1"
-
-babel-code-frame@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
- dependencies:
- chalk "^1.1.3"
- esutils "^2.0.2"
- js-tokens "^3.0.2"
-
-babel-core@6, babel-core@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8"
- dependencies:
- babel-code-frame "^6.26.0"
- babel-generator "^6.26.0"
- babel-helpers "^6.24.1"
- babel-messages "^6.23.0"
- babel-register "^6.26.0"
- babel-runtime "^6.26.0"
- babel-template "^6.26.0"
- babel-traverse "^6.26.0"
- babel-types "^6.26.0"
- babylon "^6.18.0"
- convert-source-map "^1.5.0"
- debug "^2.6.8"
- json5 "^0.5.1"
- lodash "^4.17.4"
- minimatch "^3.0.4"
- path-is-absolute "^1.0.1"
- private "^0.1.7"
- slash "^1.0.0"
- source-map "^0.5.6"
-
-babel-generator@^6.26.0:
- version "6.26.1"
- resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90"
- dependencies:
- babel-messages "^6.23.0"
- babel-runtime "^6.26.0"
- babel-types "^6.26.0"
- detect-indent "^4.0.0"
- jsesc "^1.3.0"
- lodash "^4.17.4"
- source-map "^0.5.7"
- trim-right "^1.0.1"
-
-babel-helper-builder-binary-assignment-operator-visitor@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664"
- dependencies:
- babel-helper-explode-assignable-expression "^6.24.1"
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-helper-call-delegate@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d"
- dependencies:
- babel-helper-hoist-variables "^6.24.1"
- babel-runtime "^6.22.0"
- babel-traverse "^6.24.1"
- babel-types "^6.24.1"
-
-babel-helper-define-map@^6.24.1:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f"
- dependencies:
- babel-helper-function-name "^6.24.1"
- babel-runtime "^6.26.0"
- babel-types "^6.26.0"
- lodash "^4.17.4"
-
-babel-helper-explode-assignable-expression@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa"
- dependencies:
- babel-runtime "^6.22.0"
- babel-traverse "^6.24.1"
- babel-types "^6.24.1"
-
-babel-helper-function-name@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9"
- dependencies:
- babel-helper-get-function-arity "^6.24.1"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
- babel-traverse "^6.24.1"
- babel-types "^6.24.1"
-
-babel-helper-get-function-arity@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d"
- dependencies:
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-helper-hoist-variables@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76"
- dependencies:
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-helper-optimise-call-expression@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257"
- dependencies:
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-helper-regex@^6.24.1:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72"
- dependencies:
- babel-runtime "^6.26.0"
- babel-types "^6.26.0"
- lodash "^4.17.4"
-
-babel-helper-remap-async-to-generator@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b"
- dependencies:
- babel-helper-function-name "^6.24.1"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
- babel-traverse "^6.24.1"
- babel-types "^6.24.1"
-
-babel-helper-replace-supers@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a"
- dependencies:
- babel-helper-optimise-call-expression "^6.24.1"
- babel-messages "^6.23.0"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
- babel-traverse "^6.24.1"
- babel-types "^6.24.1"
-
-babel-helpers@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2"
- dependencies:
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
-
-babel-messages@^6.23.0:
- version "6.23.0"
- resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-check-es2015-constants@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-external-helpers@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-external-helpers/-/babel-plugin-external-helpers-6.22.0.tgz#2285f48b02bd5dede85175caf8c62e86adccefa1"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-syntax-async-functions@^6.8.0:
- version "6.13.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
-
-babel-plugin-syntax-exponentiation-operator@^6.8.0:
- version "6.13.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de"
-
-babel-plugin-syntax-trailing-function-commas@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3"
-
-babel-plugin-transform-async-to-generator@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
- dependencies:
- babel-helper-remap-async-to-generator "^6.24.1"
- babel-plugin-syntax-async-functions "^6.8.0"
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-arrow-functions@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-block-scoped-functions@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-block-scoping@^6.24.1:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f"
- dependencies:
- babel-runtime "^6.26.0"
- babel-template "^6.26.0"
- babel-traverse "^6.26.0"
- babel-types "^6.26.0"
- lodash "^4.17.4"
-
-babel-plugin-transform-es2015-classes@^6.24.1, babel-plugin-transform-es2015-classes@^6.9.0:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db"
- dependencies:
- babel-helper-define-map "^6.24.1"
- babel-helper-function-name "^6.24.1"
- babel-helper-optimise-call-expression "^6.24.1"
- babel-helper-replace-supers "^6.24.1"
- babel-messages "^6.23.0"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
- babel-traverse "^6.24.1"
- babel-types "^6.24.1"
-
-babel-plugin-transform-es2015-computed-properties@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3"
- dependencies:
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
-
-babel-plugin-transform-es2015-destructuring@^6.22.0:
- version "6.23.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-duplicate-keys@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e"
- dependencies:
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-plugin-transform-es2015-for-of@^6.22.0:
- version "6.23.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-function-name@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b"
- dependencies:
- babel-helper-function-name "^6.24.1"
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-plugin-transform-es2015-literals@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-modules-amd@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154"
- dependencies:
- babel-plugin-transform-es2015-modules-commonjs "^6.24.1"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
-
-babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a"
- dependencies:
- babel-plugin-transform-strict-mode "^6.24.1"
- babel-runtime "^6.26.0"
- babel-template "^6.26.0"
- babel-types "^6.26.0"
-
-babel-plugin-transform-es2015-modules-systemjs@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23"
- dependencies:
- babel-helper-hoist-variables "^6.24.1"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
-
-babel-plugin-transform-es2015-modules-umd@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468"
- dependencies:
- babel-plugin-transform-es2015-modules-amd "^6.24.1"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
-
-babel-plugin-transform-es2015-object-super@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d"
- dependencies:
- babel-helper-replace-supers "^6.24.1"
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-parameters@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b"
- dependencies:
- babel-helper-call-delegate "^6.24.1"
- babel-helper-get-function-arity "^6.24.1"
- babel-runtime "^6.22.0"
- babel-template "^6.24.1"
- babel-traverse "^6.24.1"
- babel-types "^6.24.1"
-
-babel-plugin-transform-es2015-shorthand-properties@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0"
- dependencies:
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-plugin-transform-es2015-spread@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-sticky-regex@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc"
- dependencies:
- babel-helper-regex "^6.24.1"
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-plugin-transform-es2015-template-literals@^6.22.0:
- version "6.22.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-typeof-symbol@^6.22.0:
- version "6.23.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372"
- dependencies:
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-es2015-unicode-regex@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9"
- dependencies:
- babel-helper-regex "^6.24.1"
- babel-runtime "^6.22.0"
- regexpu-core "^2.0.0"
-
-babel-plugin-transform-exponentiation-operator@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
- dependencies:
- babel-helper-builder-binary-assignment-operator-visitor "^6.24.1"
- babel-plugin-syntax-exponentiation-operator "^6.8.0"
- babel-runtime "^6.22.0"
-
-babel-plugin-transform-regenerator@^6.24.1:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f"
- dependencies:
- regenerator-transform "^0.10.0"
-
-babel-plugin-transform-strict-mode@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758"
- dependencies:
- babel-runtime "^6.22.0"
- babel-types "^6.24.1"
-
-babel-polyfill@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
- dependencies:
- babel-runtime "^6.26.0"
- core-js "^2.5.0"
- regenerator-runtime "^0.10.5"
-
-babel-preset-es2015@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939"
- dependencies:
- babel-plugin-check-es2015-constants "^6.22.0"
- babel-plugin-transform-es2015-arrow-functions "^6.22.0"
- babel-plugin-transform-es2015-block-scoped-functions "^6.22.0"
- babel-plugin-transform-es2015-block-scoping "^6.24.1"
- babel-plugin-transform-es2015-classes "^6.24.1"
- babel-plugin-transform-es2015-computed-properties "^6.24.1"
- babel-plugin-transform-es2015-destructuring "^6.22.0"
- babel-plugin-transform-es2015-duplicate-keys "^6.24.1"
- babel-plugin-transform-es2015-for-of "^6.22.0"
- babel-plugin-transform-es2015-function-name "^6.24.1"
- babel-plugin-transform-es2015-literals "^6.22.0"
- babel-plugin-transform-es2015-modules-amd "^6.24.1"
- babel-plugin-transform-es2015-modules-commonjs "^6.24.1"
- babel-plugin-transform-es2015-modules-systemjs "^6.24.1"
- babel-plugin-transform-es2015-modules-umd "^6.24.1"
- babel-plugin-transform-es2015-object-super "^6.24.1"
- babel-plugin-transform-es2015-parameters "^6.24.1"
- babel-plugin-transform-es2015-shorthand-properties "^6.24.1"
- babel-plugin-transform-es2015-spread "^6.22.0"
- babel-plugin-transform-es2015-sticky-regex "^6.24.1"
- babel-plugin-transform-es2015-template-literals "^6.22.0"
- babel-plugin-transform-es2015-typeof-symbol "^6.22.0"
- babel-plugin-transform-es2015-unicode-regex "^6.24.1"
- babel-plugin-transform-regenerator "^6.24.1"
-
-babel-preset-es2016@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-preset-es2016/-/babel-preset-es2016-6.24.1.tgz#f900bf93e2ebc0d276df9b8ab59724ebfd959f8b"
- dependencies:
- babel-plugin-transform-exponentiation-operator "^6.24.1"
-
-babel-preset-es2017@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-preset-es2017/-/babel-preset-es2017-6.24.1.tgz#597beadfb9f7f208bcfd8a12e9b2b29b8b2f14d1"
- dependencies:
- babel-plugin-syntax-trailing-function-commas "^6.22.0"
- babel-plugin-transform-async-to-generator "^6.24.1"
-
-babel-preset-latest@^6.24.1:
- version "6.24.1"
- resolved "https://registry.yarnpkg.com/babel-preset-latest/-/babel-preset-latest-6.24.1.tgz#677de069154a7485c2d25c577c02f624b85b85e8"
- dependencies:
- babel-preset-es2015 "^6.24.1"
- babel-preset-es2016 "^6.24.1"
- babel-preset-es2017 "^6.24.1"
-
-babel-register@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071"
- dependencies:
- babel-core "^6.26.0"
- babel-runtime "^6.26.0"
- core-js "^2.5.0"
- home-or-tmp "^2.0.0"
- lodash "^4.17.4"
- mkdirp "^0.5.1"
- source-map-support "^0.4.15"
-
-babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
- dependencies:
- core-js "^2.4.0"
- regenerator-runtime "^0.11.0"
-
-babel-template@^6.24.1, babel-template@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02"
- dependencies:
- babel-runtime "^6.26.0"
- babel-traverse "^6.26.0"
- babel-types "^6.26.0"
- babylon "^6.18.0"
- lodash "^4.17.4"
-
-babel-traverse@^6.24.1, babel-traverse@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee"
- dependencies:
- babel-code-frame "^6.26.0"
- babel-messages "^6.23.0"
- babel-runtime "^6.26.0"
- babel-types "^6.26.0"
- babylon "^6.18.0"
- debug "^2.6.8"
- globals "^9.18.0"
- invariant "^2.2.2"
- lodash "^4.17.4"
-
-babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0:
- version "6.26.0"
- resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497"
- dependencies:
- babel-runtime "^6.26.0"
- esutils "^2.0.2"
- lodash "^4.17.4"
- to-fast-properties "^1.0.3"
-
-babylon@^6.18.0:
- version "6.18.0"
- resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
-
-balanced-match@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
-
-bcrypt-pbkdf@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d"
- dependencies:
- tweetnacl "^0.14.3"
-
-binary-extensions@^1.0.0:
- version "1.11.0"
- resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205"
-
-block-stream@*:
- version "0.0.9"
- resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a"
- dependencies:
- inherits "~2.0.0"
-
-boom@2.x.x:
- version "2.10.1"
- resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f"
- dependencies:
- hoek "2.x.x"
-
-brace-expansion@^1.1.7:
- version "1.1.11"
- resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
- dependencies:
- balanced-match "^1.0.0"
- concat-map "0.0.1"
-
-braces@^1.8.2:
- version "1.8.5"
- resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7"
- dependencies:
- expand-range "^1.8.1"
- preserve "^0.2.0"
- repeat-element "^1.1.2"
-
-browser-resolve@^1.11.0:
- version "1.11.2"
- resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce"
- dependencies:
- resolve "1.1.7"
-
-browser-stdout@1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f"
-
-buffer-crc32@^0.2.5:
- version "0.2.13"
- resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
-
-builtin-modules@^1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
-
-camelcase@^1.0.2:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39"
-
-caseless@~0.12.0:
- version "0.12.0"
- resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
-
-center-align@^0.1.1:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad"
- dependencies:
- align-text "^0.1.3"
- lazy-cache "^1.0.3"
-
-chalk@^1.1.3:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
- dependencies:
- ansi-styles "^2.2.1"
- escape-string-regexp "^1.0.2"
- has-ansi "^2.0.0"
- strip-ansi "^3.0.0"
- supports-color "^2.0.0"
-
-chokidar@^1.6.1:
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468"
- dependencies:
- anymatch "^1.3.0"
- async-each "^1.0.0"
- glob-parent "^2.0.0"
- inherits "^2.0.1"
- is-binary-path "^1.0.0"
- is-glob "^2.0.0"
- path-is-absolute "^1.0.0"
- readdirp "^2.0.0"
- optionalDependencies:
- fsevents "^1.0.0"
-
-cliui@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1"
- dependencies:
- center-align "^0.1.1"
- right-align "^0.1.1"
- wordwrap "0.0.2"
-
-co@^4.6.0:
- version "4.6.0"
- resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
-
-code-point-at@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
-
-combined-stream@^1.0.5, combined-stream@~1.0.5:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818"
- dependencies:
- delayed-stream "~1.0.0"
-
-commander@2.9.0:
- version "2.9.0"
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4"
- dependencies:
- graceful-readlink ">= 1.0.0"
-
-commander@^2.11.0:
- version "2.15.1"
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"
-
-concat-map@0.0.1:
- version "0.0.1"
- resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
-
-console-control-strings@^1.0.0, console-control-strings@~1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e"
-
-convert-source-map@^1.5.0:
- version "1.5.1"
- resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5"
-
-core-js@^2.4.0, core-js@^2.5.0:
- version "2.5.4"
- resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.4.tgz#f2c8bf181f2a80b92f360121429ce63a2f0aeae0"
-
-core-util-is@1.0.2, core-util-is@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
-
-cryptiles@2.x.x:
- version "2.0.5"
- resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
- dependencies:
- boom "2.x.x"
-
-dashdash@^1.12.0:
- version "1.14.1"
- resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
- dependencies:
- assert-plus "^1.0.0"
-
-debug@2.6.8:
- version "2.6.8"
- resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
- dependencies:
- ms "2.0.0"
-
-debug@^2.2.0, debug@^2.6.8:
- version "2.6.9"
- resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
- dependencies:
- ms "2.0.0"
-
-decamelize@^1.0.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
-
-deep-extend@~0.4.0:
- version "0.4.2"
- resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f"
-
-delayed-stream@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
-
-delegates@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
-
-detect-indent@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208"
- dependencies:
- repeating "^2.0.0"
-
-detect-libc@^1.0.2:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
-
-diff@3.2.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9"
-
-ecc-jsbn@~0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505"
- dependencies:
- jsbn "~0.1.0"
-
-es6-promise@^3.1.2:
- version "3.3.1"
- resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613"
-
-escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
-
-estree-walker@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.2.1.tgz#bdafe8095383d8414d5dc2ecf4c9173b6db9412e"
-
-esutils@^2.0.2:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
-
-expand-brackets@^0.1.4:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
- dependencies:
- is-posix-bracket "^0.1.0"
-
-expand-range@^1.8.1:
- version "1.8.2"
- resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337"
- dependencies:
- fill-range "^2.1.0"
-
-extend@~3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
-
-extglob@^0.3.1:
- version "0.3.2"
- resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
- dependencies:
- is-extglob "^1.0.0"
-
-extsprintf@1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
-
-extsprintf@^1.2.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"
-
-filename-regex@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26"
-
-fill-range@^2.1.0:
- version "2.2.3"
- resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723"
- dependencies:
- is-number "^2.1.0"
- isobject "^2.0.0"
- randomatic "^1.1.3"
- repeat-element "^1.1.2"
- repeat-string "^1.5.2"
-
-for-in@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
-
-for-own@^0.1.4:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce"
- dependencies:
- for-in "^1.0.1"
-
-forever-agent@~0.6.1:
- version "0.6.1"
- resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
-
-form-data@~2.1.1:
- version "2.1.4"
- resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1"
- dependencies:
- asynckit "^0.4.0"
- combined-stream "^1.0.5"
- mime-types "^2.1.12"
-
-fs-readdir-recursive@^1.0.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27"
-
-fs.realpath@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
-
-fsevents@^1.0.0:
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8"
- dependencies:
- nan "^2.3.0"
- node-pre-gyp "^0.6.39"
-
-fstream-ignore@^1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105"
- dependencies:
- fstream "^1.0.0"
- inherits "2"
- minimatch "^3.0.0"
-
-fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2:
- version "1.0.11"
- resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171"
- dependencies:
- graceful-fs "^4.1.2"
- inherits "~2.0.0"
- mkdirp ">=0.5 0"
- rimraf "2"
-
-gauge@~2.7.3:
- version "2.7.4"
- resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
- dependencies:
- aproba "^1.0.3"
- console-control-strings "^1.0.0"
- has-unicode "^2.0.0"
- object-assign "^4.1.0"
- signal-exit "^3.0.0"
- string-width "^1.0.1"
- strip-ansi "^3.0.1"
- wide-align "^1.1.0"
-
-getpass@^0.1.1:
- version "0.1.7"
- resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
- dependencies:
- assert-plus "^1.0.0"
-
-glob-base@^0.3.0:
- version "0.3.0"
- resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
- dependencies:
- glob-parent "^2.0.0"
- is-glob "^2.0.0"
-
-glob-parent@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28"
- dependencies:
- is-glob "^2.0.0"
-
-glob@7.1.1:
- version "7.1.1"
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.2"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
-glob@^7.0.5, glob@^7.1.2:
- version "7.1.2"
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
- dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.4"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
-
-globals@^9.18.0:
- version "9.18.0"
- resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
-
-graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.4:
- version "4.1.11"
- resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
-
-"graceful-readlink@>= 1.0.0":
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
-
-growl@1.9.2:
- version "1.9.2"
- resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f"
-
-har-schema@^1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e"
-
-har-validator@~4.2.1:
- version "4.2.1"
- resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a"
- dependencies:
- ajv "^4.9.1"
- har-schema "^1.0.5"
-
-has-ansi@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
- dependencies:
- ansi-regex "^2.0.0"
-
-has-flag@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
-
-has-unicode@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
-
-hawk@3.1.3, hawk@~3.1.3:
- version "3.1.3"
- resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4"
- dependencies:
- boom "2.x.x"
- cryptiles "2.x.x"
- hoek "2.x.x"
- sntp "1.x.x"
-
-he@1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
-
-hoek@2.x.x:
- version "2.16.3"
- resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed"
-
-home-or-tmp@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8"
- dependencies:
- os-homedir "^1.0.0"
- os-tmpdir "^1.0.1"
-
-http-signature@~1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf"
- dependencies:
- assert-plus "^0.2.0"
- jsprim "^1.2.2"
- sshpk "^1.7.0"
-
-inflight@^1.0.4:
- version "1.0.6"
- resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
- dependencies:
- once "^1.3.0"
- wrappy "1"
-
-inherits@2, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.3:
- version "2.0.3"
- resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
-
-ini@~1.3.0:
- version "1.3.5"
- resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
-
-invariant@^2.2.2:
- version "2.2.4"
- resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
- dependencies:
- loose-envify "^1.0.0"
-
-is-binary-path@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
- dependencies:
- binary-extensions "^1.0.0"
-
-is-buffer@^1.1.5:
- version "1.1.6"
- resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
-
-is-dotfile@^1.0.0:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
-
-is-equal-shallow@^0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534"
- dependencies:
- is-primitive "^2.0.0"
-
-is-extendable@^0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
-
-is-extglob@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
-
-is-finite@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa"
- dependencies:
- number-is-nan "^1.0.0"
-
-is-fullwidth-code-point@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
- dependencies:
- number-is-nan "^1.0.0"
-
-is-glob@^2.0.0, is-glob@^2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863"
- dependencies:
- is-extglob "^1.0.0"
-
-is-number@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f"
- dependencies:
- kind-of "^3.0.2"
-
-is-number@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"
- dependencies:
- kind-of "^3.0.2"
-
-is-posix-bracket@^0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4"
-
-is-primitive@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
-
-is-typedarray@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
-
-isarray@1.0.0, isarray@~1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
-
-isobject@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
- dependencies:
- isarray "1.0.0"
-
-isstream@~0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
-
-js-tokens@^3.0.0, js-tokens@^3.0.2:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
-
-jsbn@~0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
-
-jsesc@^1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b"
-
-jsesc@~0.5.0:
- version "0.5.0"
- resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d"
-
-json-schema@0.2.3:
- version "0.2.3"
- resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
-
-json-stable-stringify@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af"
- dependencies:
- jsonify "~0.0.0"
-
-json-stringify-safe@~5.0.1:
- version "5.0.1"
- resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
-
-json3@3.3.2:
- version "3.3.2"
- resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1"
-
-json5@^0.5.1:
- version "0.5.1"
- resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
-
-jsonify@~0.0.0:
- version "0.0.0"
- resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
-
-jsprim@^1.2.2:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
- dependencies:
- assert-plus "1.0.0"
- extsprintf "1.3.0"
- json-schema "0.2.3"
- verror "1.10.0"
-
-kind-of@^3.0.2:
- version "3.2.2"
- resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
- dependencies:
- is-buffer "^1.1.5"
-
-kind-of@^4.0.0:
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57"
- dependencies:
- is-buffer "^1.1.5"
-
-lazy-cache@^1.0.3:
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
-
-lodash._baseassign@^3.0.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e"
- dependencies:
- lodash._basecopy "^3.0.0"
- lodash.keys "^3.0.0"
-
-lodash._basecopy@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36"
-
-lodash._basecreate@^3.0.0:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821"
-
-lodash._getnative@^3.0.0:
- version "3.9.1"
- resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
-
-lodash._isiterateecall@^3.0.0:
- version "3.0.9"
- resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c"
-
-lodash.create@3.1.1:
- version "3.1.1"
- resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7"
- dependencies:
- lodash._baseassign "^3.0.0"
- lodash._basecreate "^3.0.0"
- lodash._isiterateecall "^3.0.0"
-
-lodash.isarguments@^3.0.0:
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a"
-
-lodash.isarray@^3.0.0:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55"
-
-lodash.keys@^3.0.0:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a"
- dependencies:
- lodash._getnative "^3.0.0"
- lodash.isarguments "^3.0.0"
- lodash.isarray "^3.0.0"
-
-lodash@^4.17.4:
- version "4.17.5"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
-
-longest@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
-
-loose-envify@^1.0.0:
- version "1.3.1"
- resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
- dependencies:
- js-tokens "^3.0.0"
-
-micromatch@^2.1.5:
- version "2.3.11"
- resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565"
- dependencies:
- arr-diff "^2.0.0"
- array-unique "^0.2.1"
- braces "^1.8.2"
- expand-brackets "^0.1.4"
- extglob "^0.3.1"
- filename-regex "^2.0.0"
- is-extglob "^1.0.0"
- is-glob "^2.0.1"
- kind-of "^3.0.2"
- normalize-path "^2.0.1"
- object.omit "^2.0.0"
- parse-glob "^3.0.4"
- regex-cache "^0.4.2"
-
-mime-db@~1.33.0:
- version "1.33.0"
- resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db"
-
-mime-types@^2.1.12, mime-types@~2.1.7:
- version "2.1.18"
- resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8"
- dependencies:
- mime-db "~1.33.0"
-
-minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
- dependencies:
- brace-expansion "^1.1.7"
-
-minimist@0.0.8:
- version "0.0.8"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
-
-minimist@^1.2.0:
- version "1.2.0"
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
-
-mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.1:
- version "0.5.1"
- resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
- dependencies:
- minimist "0.0.8"
-
-mocha-qunit-ui@^0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/mocha-qunit-ui/-/mocha-qunit-ui-0.1.3.tgz#e3e1ff1dac33222b10cef681efd7f82664141ea9"
-
-mocha@^3.2.0:
- version "3.5.3"
- resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.5.3.tgz#1e0480fe36d2da5858d1eb6acc38418b26eaa20d"
- dependencies:
- browser-stdout "1.3.0"
- commander "2.9.0"
- debug "2.6.8"
- diff "3.2.0"
- escape-string-regexp "1.0.5"
- glob "7.1.1"
- growl "1.9.2"
- he "1.1.1"
- json3 "3.3.2"
- lodash.create "3.1.1"
- mkdirp "0.5.1"
- supports-color "3.1.2"
-
-ms@2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
-
-nan@^2.3.0:
- version "2.10.0"
- resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"
-
-node-pre-gyp@^0.6.39:
- version "0.6.39"
- resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649"
- dependencies:
- detect-libc "^1.0.2"
- hawk "3.1.3"
- mkdirp "^0.5.1"
- nopt "^4.0.1"
- npmlog "^4.0.2"
- rc "^1.1.7"
- request "2.81.0"
- rimraf "^2.6.1"
- semver "^5.3.0"
- tar "^2.2.1"
- tar-pack "^3.4.0"
-
-nopt@^4.0.1:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d"
- dependencies:
- abbrev "1"
- osenv "^0.1.4"
-
-normalize-path@^2.0.0, normalize-path@^2.0.1:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
- dependencies:
- remove-trailing-separator "^1.0.1"
-
-npmlog@^4.0.2:
- version "4.1.2"
- resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b"
- dependencies:
- are-we-there-yet "~1.1.2"
- console-control-strings "~1.1.0"
- gauge "~2.7.3"
- set-blocking "~2.0.0"
-
-number-is-nan@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
-
-oauth-sign@~0.8.1:
- version "0.8.2"
- resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43"
-
-object-assign@^4.1.0:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
-
-object.omit@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
- dependencies:
- for-own "^0.1.4"
- is-extendable "^0.1.1"
-
-once@^1.3.0, once@^1.3.3:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
- dependencies:
- wrappy "1"
-
-os-homedir@^1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
-
-os-tmpdir@^1.0.0, os-tmpdir@^1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
-
-osenv@^0.1.4:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410"
- dependencies:
- os-homedir "^1.0.0"
- os-tmpdir "^1.0.0"
-
-output-file-sync@^1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-1.1.2.tgz#d0a33eefe61a205facb90092e826598d5245ce76"
- dependencies:
- graceful-fs "^4.1.4"
- mkdirp "^0.5.1"
- object-assign "^4.1.0"
-
-parse-glob@^3.0.4:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
- dependencies:
- glob-base "^0.3.0"
- is-dotfile "^1.0.0"
- is-extglob "^1.0.0"
- is-glob "^2.0.0"
-
-path-is-absolute@^1.0.0, path-is-absolute@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
-
-path-parse@^1.0.5:
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
-
-performance-now@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5"
-
-preserve@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
-
-private@^0.1.6, private@^0.1.7:
- version "0.1.8"
- resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"
-
-process-nextick-args@~2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
-
-punycode@^1.4.1:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
-
-punycode@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.0.tgz#5f863edc89b96db09074bad7947bf09056ca4e7d"
-
-qs@~6.4.0:
- version "6.4.0"
- resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
-
-randomatic@^1.1.3:
- version "1.1.7"
- resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c"
- dependencies:
- is-number "^3.0.0"
- kind-of "^4.0.0"
-
-rc@^1.1.7:
- version "1.2.6"
- resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.6.tgz#eb18989c6d4f4f162c399f79ddd29f3835568092"
- dependencies:
- deep-extend "~0.4.0"
- ini "~1.3.0"
- minimist "^1.2.0"
- strip-json-comments "~2.0.1"
-
-readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.4:
- version "2.3.5"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.5.tgz#b4f85003a938cbb6ecbce2a124fb1012bd1a838d"
- dependencies:
- core-util-is "~1.0.0"
- inherits "~2.0.3"
- isarray "~1.0.0"
- process-nextick-args "~2.0.0"
- safe-buffer "~5.1.1"
- string_decoder "~1.0.3"
- util-deprecate "~1.0.1"
-
-readdirp@^2.0.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78"
- dependencies:
- graceful-fs "^4.1.2"
- minimatch "^3.0.2"
- readable-stream "^2.0.2"
- set-immediate-shim "^1.0.1"
-
-regenerate@^1.2.1:
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f"
-
-regenerator-runtime@^0.10.5:
- version "0.10.5"
- resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658"
-
-regenerator-runtime@^0.11.0:
- version "0.11.1"
- resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
-
-regenerator-transform@^0.10.0:
- version "0.10.1"
- resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd"
- dependencies:
- babel-runtime "^6.18.0"
- babel-types "^6.19.0"
- private "^0.1.6"
-
-regex-cache@^0.4.2:
- version "0.4.4"
- resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd"
- dependencies:
- is-equal-shallow "^0.1.3"
-
-regexpu-core@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240"
- dependencies:
- regenerate "^1.2.1"
- regjsgen "^0.2.0"
- regjsparser "^0.1.4"
-
-regjsgen@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7"
-
-regjsparser@^0.1.4:
- version "0.1.5"
- resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c"
- dependencies:
- jsesc "~0.5.0"
-
-remove-trailing-separator@^1.0.1:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
-
-repeat-element@^1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a"
-
-repeat-string@^1.5.2:
- version "1.6.1"
- resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
-
-repeating@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda"
- dependencies:
- is-finite "^1.0.0"
-
-request@2.81.0:
- version "2.81.0"
- resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0"
- dependencies:
- aws-sign2 "~0.6.0"
- aws4 "^1.2.1"
- caseless "~0.12.0"
- combined-stream "~1.0.5"
- extend "~3.0.0"
- forever-agent "~0.6.1"
- form-data "~2.1.1"
- har-validator "~4.2.1"
- hawk "~3.1.3"
- http-signature "~1.1.0"
- is-typedarray "~1.0.0"
- isstream "~0.1.2"
- json-stringify-safe "~5.0.1"
- mime-types "~2.1.7"
- oauth-sign "~0.8.1"
- performance-now "^0.2.0"
- qs "~6.4.0"
- safe-buffer "^5.0.1"
- stringstream "~0.0.4"
- tough-cookie "~2.3.0"
- tunnel-agent "^0.6.0"
- uuid "^3.0.0"
-
-resolve@1.1.7:
- version "1.1.7"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
-
-resolve@^1.1.6:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.6.0.tgz#0fbd21278b27b4004481c395349e7aba60a9ff5c"
- dependencies:
- path-parse "^1.0.5"
-
-right-align@^0.1.1:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef"
- dependencies:
- align-text "^0.1.1"
-
-rimraf@2, rimraf@^2.5.1, rimraf@^2.5.2, rimraf@^2.6.1:
- version "2.6.2"
- resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
- dependencies:
- glob "^7.0.5"
-
-rollup-plugin-babel@^2.7.1:
- version "2.7.1"
- resolved "https://registry.yarnpkg.com/rollup-plugin-babel/-/rollup-plugin-babel-2.7.1.tgz#16528197b0f938a1536f44683c7a93d573182f57"
- dependencies:
- babel-core "6"
- babel-plugin-transform-es2015-classes "^6.9.0"
- object-assign "^4.1.0"
- rollup-pluginutils "^1.5.0"
-
-rollup-plugin-node-resolve@^2.0.0:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-2.1.1.tgz#cbb783b0d15b02794d58915350b2f0d902b8ddc8"
- dependencies:
- browser-resolve "^1.11.0"
- builtin-modules "^1.1.0"
- resolve "^1.1.6"
-
-rollup-pluginutils@^1.5.0:
- version "1.5.2"
- resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz#1e156e778f94b7255bfa1b3d0178be8f5c552408"
- dependencies:
- estree-walker "^0.2.1"
- minimatch "^3.0.2"
-
-rollup@^0.41.6:
- version "0.41.6"
- resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.41.6.tgz#e0d05497877a398c104d816d2733a718a7a94e2a"
- dependencies:
- source-map-support "^0.4.0"
-
-safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
-
-sander@^0.5.0:
- version "0.5.1"
- resolved "https://registry.yarnpkg.com/sander/-/sander-0.5.1.tgz#741e245e231f07cafb6fdf0f133adfa216a502ad"
- dependencies:
- es6-promise "^3.1.2"
- graceful-fs "^4.1.3"
- mkdirp "^0.5.1"
- rimraf "^2.5.2"
-
-semver@^5.3.0:
- version "5.5.0"
- resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
-
-set-blocking@~2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
-
-set-immediate-shim@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61"
-
-signal-exit@^3.0.0:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
-
-slash@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"
-
-sntp@1.x.x:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198"
- dependencies:
- hoek "2.x.x"
-
-sorcery@^0.10.0:
- version "0.10.0"
- resolved "https://registry.yarnpkg.com/sorcery/-/sorcery-0.10.0.tgz#8ae90ad7d7cb05fc59f1ab0c637845d5c15a52b7"
- dependencies:
- buffer-crc32 "^0.2.5"
- minimist "^1.2.0"
- sander "^0.5.0"
- sourcemap-codec "^1.3.0"
-
-source-map-support@^0.4.0, source-map-support@^0.4.15:
- version "0.4.18"
- resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f"
- dependencies:
- source-map "^0.5.6"
-
-source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1:
- version "0.5.7"
- resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
-
-sourcemap-codec@^1.3.0:
- version "1.4.1"
- resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz#c8fd92d91889e902a07aee392bdd2c5863958ba2"
-
-sshpk@^1.7.0:
- version "1.14.1"
- resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.14.1.tgz#130f5975eddad963f1d56f92b9ac6c51fa9f83eb"
- dependencies:
- asn1 "~0.2.3"
- assert-plus "^1.0.0"
- dashdash "^1.12.0"
- getpass "^0.1.1"
- optionalDependencies:
- bcrypt-pbkdf "^1.0.0"
- ecc-jsbn "~0.1.1"
- jsbn "~0.1.0"
- tweetnacl "~0.14.0"
-
-string-width@^1.0.1, string-width@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
- dependencies:
- code-point-at "^1.0.0"
- is-fullwidth-code-point "^1.0.0"
- strip-ansi "^3.0.0"
-
-string_decoder@~1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab"
- dependencies:
- safe-buffer "~5.1.0"
-
-stringstream@~0.0.4:
- version "0.0.5"
- resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
-
-strip-ansi@^3.0.0, strip-ansi@^3.0.1:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
- dependencies:
- ansi-regex "^2.0.0"
-
-strip-json-comments@~2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
-
-supports-color@3.1.2:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5"
- dependencies:
- has-flag "^1.0.0"
-
-supports-color@^2.0.0:
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
-
-tar-pack@^3.4.0:
- version "3.4.1"
- resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f"
- dependencies:
- debug "^2.2.0"
- fstream "^1.0.10"
- fstream-ignore "^1.0.5"
- once "^1.3.3"
- readable-stream "^2.1.4"
- rimraf "^2.5.1"
- tar "^2.2.1"
- uid-number "^0.0.6"
-
-tar@^2.2.1:
- version "2.2.1"
- resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1"
- dependencies:
- block-stream "*"
- fstream "^1.0.2"
- inherits "2"
-
-to-fast-properties@^1.0.3:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47"
-
-tough-cookie@~2.3.0:
- version "2.3.4"
- resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.4.tgz#ec60cee38ac675063ffc97a5c18970578ee83655"
- dependencies:
- punycode "^1.4.1"
-
-trim-right@^1.0.1:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"
-
-tunnel-agent@^0.6.0:
- version "0.6.0"
- resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"
- dependencies:
- safe-buffer "^5.0.1"
-
-tweetnacl@^0.14.3, tweetnacl@~0.14.0:
- version "0.14.5"
- resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
-
-typescript@^2.8.1:
- version "2.8.1"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.1.tgz#6160e4f8f195d5ba81d4876f9c0cc1fbc0820624"
-
-uglify-js@^2.8.14:
- version "2.8.29"
- resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd"
- dependencies:
- source-map "~0.5.1"
- yargs "~3.10.0"
- optionalDependencies:
- uglify-to-browserify "~1.0.0"
-
-uglify-to-browserify@~1.0.0:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"
-
-uid-number@^0.0.6:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"
-
-user-home@^1.1.1:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190"
-
-util-deprecate@~1.0.1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
-
-uuid@^3.0.0:
- version "3.2.1"
- resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14"
-
-v8flags@^2.1.1:
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4"
- dependencies:
- user-home "^1.1.1"
-
-verror@1.10.0:
- version "1.10.0"
- resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400"
- dependencies:
- assert-plus "^1.0.0"
- core-util-is "1.0.2"
- extsprintf "^1.2.0"
-
-wide-align@^1.1.0:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710"
- dependencies:
- string-width "^1.0.2"
-
-window-size@0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
-
-wordwrap@0.0.2:
- version "0.0.2"
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
-
-wrappy@1:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
-
-yargs@~3.10.0:
- version "3.10.0"
- resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"
- dependencies:
- camelcase "^1.0.2"
- cliui "^2.1.0"
- decamelize "^1.0.0"
- window-size "0.1.0"
diff --git a/node_modules/util-deprecate/History.md b/node_modules/util-deprecate/History.md
deleted file mode 100644
index acc8675..0000000
--- a/node_modules/util-deprecate/History.md
+++ /dev/null
@@ -1,16 +0,0 @@
-
-1.0.2 / 2015-10-07
-==================
-
- * use try/catch when checking `localStorage` (#3, @kumavis)
-
-1.0.1 / 2014-11-25
-==================
-
- * browser: use `console.warn()` for deprecation calls
- * browser: more jsdocs
-
-1.0.0 / 2014-04-30
-==================
-
- * initial commit
diff --git a/node_modules/util-deprecate/LICENSE b/node_modules/util-deprecate/LICENSE
deleted file mode 100644
index 6a60e8c..0000000
--- a/node_modules/util-deprecate/LICENSE
+++ /dev/null
@@ -1,24 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/util-deprecate/README.md b/node_modules/util-deprecate/README.md
deleted file mode 100644
index 75622fa..0000000
--- a/node_modules/util-deprecate/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-util-deprecate
-==============
-### The Node.js `util.deprecate()` function with browser support
-
-In Node.js, this module simply re-exports the `util.deprecate()` function.
-
-In the web browser (i.e. via browserify), a browser-specific implementation
-of the `util.deprecate()` function is used.
-
-
-## API
-
-A `deprecate()` function is the only thing exposed by this module.
-
-``` javascript
-// setup:
-exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead');
-
-
-// users see:
-foo();
-// foo() is deprecated, use bar() instead
-foo();
-foo();
-```
-
-
-## License
-
-(The MIT License)
-
-Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>
-
-Permission is hereby granted, free of charge, to any person
-obtaining a copy of this software and associated documentation
-files (the "Software"), to deal in the Software without
-restriction, including without limitation the rights to use,
-copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the
-Software is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/util-deprecate/browser.js b/node_modules/util-deprecate/browser.js
deleted file mode 100644
index 549ae2f..0000000
--- a/node_modules/util-deprecate/browser.js
+++ /dev/null
@@ -1,67 +0,0 @@
-
-/**
- * Module exports.
- */
-
-module.exports = deprecate;
-
-/**
- * Mark that a method should not be used.
- * Returns a modified function which warns once by default.
- *
- * If `localStorage.noDeprecation = true` is set, then it is a no-op.
- *
- * If `localStorage.throwDeprecation = true` is set, then deprecated functions
- * will throw an Error when invoked.
- *
- * If `localStorage.traceDeprecation = true` is set, then deprecated functions
- * will invoke `console.trace()` instead of `console.error()`.
- *
- * @param {Function} fn - the function to deprecate
- * @param {String} msg - the string to print to the console when `fn` is invoked
- * @returns {Function} a new "deprecated" version of `fn`
- * @api public
- */
-
-function deprecate (fn, msg) {
- if (config('noDeprecation')) {
- return fn;
- }
-
- var warned = false;
- function deprecated() {
- if (!warned) {
- if (config('throwDeprecation')) {
- throw new Error(msg);
- } else if (config('traceDeprecation')) {
- console.trace(msg);
- } else {
- console.warn(msg);
- }
- warned = true;
- }
- return fn.apply(this, arguments);
- }
-
- return deprecated;
-}
-
-/**
- * Checks `localStorage` for boolean values for the given `name`.
- *
- * @param {String} name
- * @returns {Boolean}
- * @api private
- */
-
-function config (name) {
- // accessing global.localStorage can trigger a DOMException in sandboxed iframes
- try {
- if (!global.localStorage) return false;
- } catch (_) {
- return false;
- }
- var val = global.localStorage[name];
- if (null == val) return false;
- return String(val).toLowerCase() === 'true';
-}
diff --git a/node_modules/util-deprecate/node.js b/node_modules/util-deprecate/node.js
deleted file mode 100644
index 5e6fcff..0000000
--- a/node_modules/util-deprecate/node.js
+++ /dev/null
@@ -1,6 +0,0 @@
-
-/**
- * For Node.js, simply re-export the core `util.deprecate` function.
- */
-
-module.exports = require('util').deprecate;
diff --git a/node_modules/util-deprecate/package.json b/node_modules/util-deprecate/package.json
deleted file mode 100644
index 4a12af3..0000000
--- a/node_modules/util-deprecate/package.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "_from": "util-deprecate@~1.0.1",
- "_id": "util-deprecate@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
- "_location": "/util-deprecate",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "util-deprecate@~1.0.1",
- "name": "util-deprecate",
- "escapedName": "util-deprecate",
- "rawSpec": "~1.0.1",
- "saveSpec": null,
- "fetchSpec": "~1.0.1"
- },
- "_requiredBy": [
- "/readable-stream"
- ],
- "_resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "_shasum": "450d4dc9fa70de732762fbd2d4a28981419a0ccf",
- "_spec": "util-deprecate@~1.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/readable-stream",
- "author": {
- "name": "Nathan Rajlich",
- "email": "nathan@tootallnate.net",
- "url": "http://n8.io/"
- },
- "browser": "browser.js",
- "bugs": {
- "url": "https://github.com/TooTallNate/util-deprecate/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "The Node.js `util.deprecate()` function with browser support",
- "homepage": "https://github.com/TooTallNate/util-deprecate",
- "keywords": [
- "util",
- "deprecate",
- "browserify",
- "browser",
- "node"
- ],
- "license": "MIT",
- "main": "node.js",
- "name": "util-deprecate",
- "repository": {
- "type": "git",
- "url": "git://github.com/TooTallNate/util-deprecate.git"
- },
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/uuid/AUTHORS b/node_modules/uuid/AUTHORS
deleted file mode 100644
index 5a10523..0000000
--- a/node_modules/uuid/AUTHORS
+++ /dev/null
@@ -1,5 +0,0 @@
-Robert Kieffer <robert@broofa.com>
-Christoph Tavan <dev@tavan.de>
-AJ ONeal <coolaj86@gmail.com>
-Vincent Voyer <vincent@zeroload.net>
-Roman Shtylman <shtylman@gmail.com>
diff --git a/node_modules/uuid/CHANGELOG.md b/node_modules/uuid/CHANGELOG.md
deleted file mode 100644
index f811b8a..0000000
--- a/node_modules/uuid/CHANGELOG.md
+++ /dev/null
@@ -1,119 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16)
-
-
-### Features
-
-* rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d7314)), closes [#338](https://github.com/uuidjs/uuid/issues/338)
-
-### [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19)
-
-<a name="3.3.2"></a>
-## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28)
-
-
-### Bug Fixes
-
-* typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877))
-
-
-
-<a name="3.3.1"></a>
-## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28)
-
-
-### Bug Fixes
-
-* fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2))
-
-
-
-<a name="3.3.0"></a>
-# [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22)
-
-
-### Bug Fixes
-
-* assignment to readonly property to allow running in strict mode ([#270](https://github.com/uuidjs/uuid/issues/270)) ([d062fdc](https://github.com/uuidjs/uuid/commit/d062fdc))
-* fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4))
-* Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331))
-* mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c))
-
-### Features
-
-* enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182))
-
-
-<a name="3.2.1"></a>
-## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16)
-
-
-### Bug Fixes
-
-* use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
-
-
-
-<a name="3.2.0"></a>
-# [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16)
-
-
-### Bug Fixes
-
-* remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824))
-* use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b))
-
-
-### Features
-
-* Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726))
-
-
-# [3.1.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.0.1) (2017-06-17)
-
-### Bug Fixes
-
-* (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183)
-* Fix typo (#178)
-* Simple typo fix (#165)
-
-### Features
-* v5 support in CLI (#197)
-* V5 support (#188)
-
-
-# 3.0.1 (2016-11-28)
-
-* split uuid versions into separate files
-
-
-# 3.0.0 (2016-11-17)
-
-* remove .parse and .unparse
-
-
-# 2.0.0
-
-* Removed uuid.BufferClass
-
-
-# 1.4.0
-
-* Improved module context detection
-* Removed public RNG functions
-
-
-# 1.3.2
-
-* Improve tests and handling of v1() options (Issue #24)
-* Expose RNG option to allow for perf testing with different generators
-
-
-# 1.3.0
-
-* Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)!
-* Support for node.js crypto API
-* De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code
diff --git a/node_modules/uuid/LICENSE.md b/node_modules/uuid/LICENSE.md
deleted file mode 100644
index 8c84e39..0000000
--- a/node_modules/uuid/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2010-2016 Robert Kieffer and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/uuid/README.md b/node_modules/uuid/README.md
deleted file mode 100644
index 1752e47..0000000
--- a/node_modules/uuid/README.md
+++ /dev/null
@@ -1,276 +0,0 @@
-<!--
- -- This file is auto-generated from README_js.md. Changes should be made there.
- -->
-
-# uuid [![Build Status](https://secure.travis-ci.org/kelektiv/node-uuid.svg?branch=master)](http://travis-ci.org/kelektiv/node-uuid) #
-
-Simple, fast generation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDS.
-
-Features:
-
-* Support for version 1, 3, 4 and 5 UUIDs
-* Cross-platform
-* Uses cryptographically-strong random number APIs (when available)
-* Zero-dependency, small footprint (... but not [this small](https://gist.github.com/982883))
-
-[**Deprecation warning**: The use of `require('uuid')` is deprecated and will not be
-supported after version 3.x of this module. Instead, use `require('uuid/[v1|v3|v4|v5]')` as shown in the examples below.]
-
-## Quickstart - CommonJS (Recommended)
-
-```shell
-npm install uuid
-```
-
-Then generate your uuid version of choice ...
-
-Version 1 (timestamp):
-
-```javascript
-const uuidv1 = require('uuid/v1');
-uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d'
-
-```
-
-Version 3 (namespace):
-
-```javascript
-const uuidv3 = require('uuid/v3');
-
-// ... using predefined DNS namespace (for domain names)
-uuidv3('hello.example.com', uuidv3.DNS); // ⇨ '9125a8dc-52ee-365b-a5aa-81b0b3681cf6'
-
-// ... using predefined URL namespace (for, well, URLs)
-uuidv3('http://example.com/hello', uuidv3.URL); // ⇨ 'c6235813-3ba4-3801-ae84-e0a6ebb7d138'
-
-// ... using a custom namespace
-//
-// Note: Custom namespaces should be a UUID string specific to your application!
-// E.g. the one here was generated using this modules `uuid` CLI.
-const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';
-uuidv3('Hello, World!', MY_NAMESPACE); // ⇨ 'e8b5a51d-11c8-3310-a6ab-367563f20686'
-
-```
-
-Version 4 (random):
-
-```javascript
-const uuidv4 = require('uuid/v4');
-uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed'
-
-```
-
-Version 5 (namespace):
-
-```javascript
-const uuidv5 = require('uuid/v5');
-
-// ... using predefined DNS namespace (for domain names)
-uuidv5('hello.example.com', uuidv5.DNS); // ⇨ 'fdda765f-fc57-5604-a269-52a7df8164ec'
-
-// ... using predefined URL namespace (for, well, URLs)
-uuidv5('http://example.com/hello', uuidv5.URL); // ⇨ '3bbcee75-cecc-5b56-8031-b6641c1ed1f1'
-
-// ... using a custom namespace
-//
-// Note: Custom namespaces should be a UUID string specific to your application!
-// E.g. the one here was generated using this modules `uuid` CLI.
-const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';
-uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681'
-
-```
-
-## API
-
-### Version 1
-
-```javascript
-const uuidv1 = require('uuid/v1');
-
-// Incantations
-uuidv1();
-uuidv1(options);
-uuidv1(options, buffer, offset);
-```
-
-Generate and return a RFC4122 v1 (timestamp-based) UUID.
-
-* `options` - (Object) Optional uuid state to apply. Properties may include:
-
- * `node` - (Array) Node id as Array of 6 bytes (per 4.1.6). Default: Randomly generated ID. See note 1.
- * `clockseq` - (Number between 0 - 0x3fff) RFC clock sequence. Default: An internally maintained clockseq is used.
- * `msecs` - (Number) Time in milliseconds since unix Epoch. Default: The current time is used.
- * `nsecs` - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if `msecs` is unspecified. Default: internal uuid counter is used, as per 4.2.1.2.
-
-* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
-* `offset` - (Number) Starting index in `buffer` at which to begin writing.
-
-Returns `buffer`, if specified, otherwise the string form of the UUID
-
-Note: The default [node id](https://tools.ietf.org/html/rfc4122#section-4.1.6) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process.
-
-Example: Generate string UUID with fully-specified options
-
-```javascript
-const v1options = {
- node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab],
- clockseq: 0x1234,
- msecs: new Date('2011-11-01').getTime(),
- nsecs: 5678
-};
-uuidv1(v1options); // ⇨ '710b962e-041c-11e1-9234-0123456789ab'
-
-```
-
-Example: In-place generation of two binary IDs
-
-```javascript
-// Generate two ids in an array
-const arr = new Array();
-uuidv1(null, arr, 0); // ⇨
- // [
- // 44, 94, 164, 192, 64, 103,
- // 17, 233, 146, 52, 155, 29,
- // 235, 77, 59, 125
- // ]
-uuidv1(null, arr, 16); // ⇨
- // [
- // 44, 94, 164, 192, 64, 103, 17, 233,
- // 146, 52, 155, 29, 235, 77, 59, 125,
- // 44, 94, 164, 193, 64, 103, 17, 233,
- // 146, 52, 155, 29, 235, 77, 59, 125
- // ]
-
-```
-
-### Version 3
-
-```javascript
-const uuidv3 = require('uuid/v3');
-
-// Incantations
-uuidv3(name, namespace);
-uuidv3(name, namespace, buffer);
-uuidv3(name, namespace, buffer, offset);
-```
-
-Generate and return a RFC4122 v3 UUID.
-
-* `name` - (String | Array[]) "name" to create UUID with
-* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values
-* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
-* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0
-
-Returns `buffer`, if specified, otherwise the string form of the UUID
-
-Example:
-
-```javascript
-uuidv3('hello world', MY_NAMESPACE); // ⇨ '042ffd34-d989-321c-ad06-f60826172424'
-
-```
-
-### Version 4
-
-```javascript
-const uuidv4 = require('uuid/v4')
-
-// Incantations
-uuidv4();
-uuidv4(options);
-uuidv4(options, buffer, offset);
-```
-
-Generate and return a RFC4122 v4 UUID.
-
-* `options` - (Object) Optional uuid state to apply. Properties may include:
- * `random` - (Number[16]) Array of 16 numbers (0-255) to use in place of randomly generated values
- * `rng` - (Function) Random # generator function that returns an Array[16] of byte values (0-255)
-* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
-* `offset` - (Number) Starting index in `buffer` at which to begin writing.
-
-Returns `buffer`, if specified, otherwise the string form of the UUID
-
-Example: Generate string UUID with predefined `random` values
-
-```javascript
-const v4options = {
- random: [
- 0x10, 0x91, 0x56, 0xbe, 0xc4, 0xfb, 0xc1, 0xea,
- 0x71, 0xb4, 0xef, 0xe1, 0x67, 0x1c, 0x58, 0x36
- ]
-};
-uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836'
-
-```
-
-Example: Generate two IDs in a single buffer
-
-```javascript
-const buffer = new Array();
-uuidv4(null, buffer, 0); // ⇨
- // [
- // 155, 29, 235, 77, 59,
- // 125, 75, 173, 155, 221,
- // 43, 13, 123, 61, 203,
- // 109
- // ]
-uuidv4(null, buffer, 16); // ⇨
- // [
- // 155, 29, 235, 77, 59, 125, 75, 173,
- // 155, 221, 43, 13, 123, 61, 203, 109,
- // 27, 157, 107, 205, 187, 253, 75, 45,
- // 155, 93, 171, 141, 251, 189, 75, 237
- // ]
-
-```
-
-### Version 5
-
-```javascript
-const uuidv5 = require('uuid/v5');
-
-// Incantations
-uuidv5(name, namespace);
-uuidv5(name, namespace, buffer);
-uuidv5(name, namespace, buffer, offset);
-```
-
-Generate and return a RFC4122 v5 UUID.
-
-* `name` - (String | Array[]) "name" to create UUID with
-* `namespace` - (String | Array[]) "namespace" UUID either as a String or Array[16] of byte values
-* `buffer` - (Array | Buffer) Array or buffer where UUID bytes are to be written.
-* `offset` - (Number) Starting index in `buffer` at which to begin writing. Default = 0
-
-Returns `buffer`, if specified, otherwise the string form of the UUID
-
-Example:
-
-```javascript
-uuidv5('hello world', MY_NAMESPACE); // ⇨ '9f282611-e0fd-5650-8953-89c8e342da0b'
-
-```
-
-## Command Line
-
-UUIDs can be generated from the command line with the `uuid` command.
-
-```shell
-$ uuid
-ddeb27fb-d9a0-4624-be4d-4615062daed4
-
-$ uuid v1
-02d37060-d446-11e7-a9fa-7bdae751ebe1
-```
-
-Type `uuid --help` for usage details
-
-## Testing
-
-```shell
-npm test
-```
-
-----
-Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd) \ No newline at end of file
diff --git a/node_modules/uuid/bin/uuid b/node_modules/uuid/bin/uuid
deleted file mode 100755
index 502626e..0000000
--- a/node_modules/uuid/bin/uuid
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/env node
-var assert = require('assert');
-
-function usage() {
- console.log('Usage:');
- console.log(' uuid');
- console.log(' uuid v1');
- console.log(' uuid v3 <name> <namespace uuid>');
- console.log(' uuid v4');
- console.log(' uuid v5 <name> <namespace uuid>');
- console.log(' uuid --help');
- console.log('\nNote: <namespace uuid> may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC4122');
-}
-
-var args = process.argv.slice(2);
-
-if (args.indexOf('--help') >= 0) {
- usage();
- process.exit(0);
-}
-var version = args.shift() || 'v4';
-
-switch (version) {
- case 'v1':
- var uuidV1 = require('../v1');
- console.log(uuidV1());
- break;
-
- case 'v3':
- var uuidV3 = require('../v3');
-
- var name = args.shift();
- var namespace = args.shift();
- assert(name != null, 'v3 name not specified');
- assert(namespace != null, 'v3 namespace not specified');
-
- if (namespace == 'URL') namespace = uuidV3.URL;
- if (namespace == 'DNS') namespace = uuidV3.DNS;
-
- console.log(uuidV3(name, namespace));
- break;
-
- case 'v4':
- var uuidV4 = require('../v4');
- console.log(uuidV4());
- break;
-
- case 'v5':
- var uuidV5 = require('../v5');
-
- var name = args.shift();
- var namespace = args.shift();
- assert(name != null, 'v5 name not specified');
- assert(namespace != null, 'v5 namespace not specified');
-
- if (namespace == 'URL') namespace = uuidV5.URL;
- if (namespace == 'DNS') namespace = uuidV5.DNS;
-
- console.log(uuidV5(name, namespace));
- break;
-
- default:
- usage();
- process.exit(1);
-}
diff --git a/node_modules/uuid/index.js b/node_modules/uuid/index.js
deleted file mode 100644
index e96791a..0000000
--- a/node_modules/uuid/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var v1 = require('./v1');
-var v4 = require('./v4');
-
-var uuid = v4;
-uuid.v1 = v1;
-uuid.v4 = v4;
-
-module.exports = uuid;
diff --git a/node_modules/uuid/lib/bytesToUuid.js b/node_modules/uuid/lib/bytesToUuid.js
deleted file mode 100644
index 24b6041..0000000
--- a/node_modules/uuid/lib/bytesToUuid.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Convert array of 16 byte values to UUID string format of the form:
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
- */
-var byteToHex = [];
-for (var i = 0; i < 256; ++i) {
- byteToHex[i] = (i + 0x100).toString(16).substr(1);
-}
-
-function bytesToUuid(buf, offset) {
- var i = offset || 0;
- var bth = byteToHex;
- // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
- return ([
- bth[buf[i++]], bth[buf[i++]],
- bth[buf[i++]], bth[buf[i++]], '-',
- bth[buf[i++]], bth[buf[i++]], '-',
- bth[buf[i++]], bth[buf[i++]], '-',
- bth[buf[i++]], bth[buf[i++]], '-',
- bth[buf[i++]], bth[buf[i++]],
- bth[buf[i++]], bth[buf[i++]],
- bth[buf[i++]], bth[buf[i++]]
- ]).join('');
-}
-
-module.exports = bytesToUuid;
diff --git a/node_modules/uuid/lib/md5-browser.js b/node_modules/uuid/lib/md5-browser.js
deleted file mode 100644
index 9b3b6c7..0000000
--- a/node_modules/uuid/lib/md5-browser.js
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
- * Browser-compatible JavaScript MD5
- *
- * Modification of JavaScript MD5
- * https://github.com/blueimp/JavaScript-MD5
- *
- * Copyright 2011, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * https://opensource.org/licenses/MIT
- *
- * Based on
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
- * Digest Algorithm, as defined in RFC 1321.
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
- * Distributed under the BSD License
- * See http://pajhome.org.uk/crypt/md5 for more info.
- */
-
-'use strict';
-
-function md5(bytes) {
- if (typeof(bytes) == 'string') {
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
- bytes = new Array(msg.length);
- for (var i = 0; i < msg.length; i++) bytes[i] = msg.charCodeAt(i);
- }
-
- return md5ToHexEncodedArray(
- wordsToMd5(
- bytesToWords(bytes)
- , bytes.length * 8)
- );
-}
-
-
-/*
-* Convert an array of little-endian words to an array of bytes
-*/
-function md5ToHexEncodedArray(input) {
- var i;
- var x;
- var output = [];
- var length32 = input.length * 32;
- var hexTab = '0123456789abcdef';
- var hex;
-
- for (i = 0; i < length32; i += 8) {
- x = (input[i >> 5] >>> (i % 32)) & 0xFF;
-
- hex = parseInt(hexTab.charAt((x >>> 4) & 0x0F) + hexTab.charAt(x & 0x0F), 16);
-
- output.push(hex);
- }
- return output;
-}
-
-/*
-* Calculate the MD5 of an array of little-endian words, and a bit length.
-*/
-function wordsToMd5(x, len) {
- /* append padding */
- x[len >> 5] |= 0x80 << (len % 32);
- x[(((len + 64) >>> 9) << 4) + 14] = len;
-
- var i;
- var olda;
- var oldb;
- var oldc;
- var oldd;
- var a = 1732584193;
- var b = -271733879;
- var c = -1732584194;
-
- var d = 271733878;
-
- for (i = 0; i < x.length; i += 16) {
- olda = a;
- oldb = b;
- oldc = c;
- oldd = d;
-
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
-
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
-
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
-
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
-
- a = safeAdd(a, olda);
- b = safeAdd(b, oldb);
- c = safeAdd(c, oldc);
- d = safeAdd(d, oldd);
- }
- return [a, b, c, d];
-}
-
-/*
-* Convert an array bytes to an array of little-endian words
-* Characters >255 have their high-byte silently ignored.
-*/
-function bytesToWords(input) {
- var i;
- var output = [];
- output[(input.length >> 2) - 1] = undefined;
- for (i = 0; i < output.length; i += 1) {
- output[i] = 0;
- }
- var length8 = input.length * 8;
- for (i = 0; i < length8; i += 8) {
- output[i >> 5] |= (input[(i / 8)] & 0xFF) << (i % 32);
- }
-
- return output;
-}
-
-/*
-* Add integers, wrapping at 2^32. This uses 16-bit operations internally
-* to work around bugs in some JS interpreters.
-*/
-function safeAdd(x, y) {
- var lsw = (x & 0xFFFF) + (y & 0xFFFF);
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
- return (msw << 16) | (lsw & 0xFFFF);
-}
-
-/*
-* Bitwise rotate a 32-bit number to the left.
-*/
-function bitRotateLeft(num, cnt) {
- return (num << cnt) | (num >>> (32 - cnt));
-}
-
-/*
-* These functions implement the four basic operations the algorithm uses.
-*/
-function md5cmn(q, a, b, x, s, t) {
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
-}
-function md5ff(a, b, c, d, x, s, t) {
- return md5cmn((b & c) | ((~b) & d), a, b, x, s, t);
-}
-function md5gg(a, b, c, d, x, s, t) {
- return md5cmn((b & d) | (c & (~d)), a, b, x, s, t);
-}
-function md5hh(a, b, c, d, x, s, t) {
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
-}
-function md5ii(a, b, c, d, x, s, t) {
- return md5cmn(c ^ (b | (~d)), a, b, x, s, t);
-}
-
-module.exports = md5;
diff --git a/node_modules/uuid/lib/md5.js b/node_modules/uuid/lib/md5.js
deleted file mode 100644
index 7044b87..0000000
--- a/node_modules/uuid/lib/md5.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-var crypto = require('crypto');
-
-function md5(bytes) {
- if (typeof Buffer.from === 'function') {
- // Modern Buffer API
- if (Array.isArray(bytes)) {
- bytes = Buffer.from(bytes);
- } else if (typeof bytes === 'string') {
- bytes = Buffer.from(bytes, 'utf8');
- }
- } else {
- // Pre-v4 Buffer API
- if (Array.isArray(bytes)) {
- bytes = new Buffer(bytes);
- } else if (typeof bytes === 'string') {
- bytes = new Buffer(bytes, 'utf8');
- }
- }
-
- return crypto.createHash('md5').update(bytes).digest();
-}
-
-module.exports = md5;
diff --git a/node_modules/uuid/lib/rng-browser.js b/node_modules/uuid/lib/rng-browser.js
deleted file mode 100644
index 6361fb8..0000000
--- a/node_modules/uuid/lib/rng-browser.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Unique ID creation requires a high quality random # generator. In the
-// browser this is a little complicated due to unknown quality of Math.random()
-// and inconsistent support for the `crypto` API. We do the best we can via
-// feature-detection
-
-// getRandomValues needs to be invoked in a context where "this" is a Crypto
-// implementation. Also, find the complete implementation of crypto on IE11.
-var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
- (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
-
-if (getRandomValues) {
- // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
- var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
-
- module.exports = function whatwgRNG() {
- getRandomValues(rnds8);
- return rnds8;
- };
-} else {
- // Math.random()-based (RNG)
- //
- // If all else fails, use Math.random(). It's fast, but is of unspecified
- // quality.
- var rnds = new Array(16);
-
- module.exports = function mathRNG() {
- for (var i = 0, r; i < 16; i++) {
- if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
- rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
- }
-
- return rnds;
- };
-}
diff --git a/node_modules/uuid/lib/rng.js b/node_modules/uuid/lib/rng.js
deleted file mode 100644
index 58f0dc9..0000000
--- a/node_modules/uuid/lib/rng.js
+++ /dev/null
@@ -1,8 +0,0 @@
-// Unique ID creation requires a high quality random # generator. In node.js
-// this is pretty straight-forward - we use the crypto API.
-
-var crypto = require('crypto');
-
-module.exports = function nodeRNG() {
- return crypto.randomBytes(16);
-};
diff --git a/node_modules/uuid/lib/sha1-browser.js b/node_modules/uuid/lib/sha1-browser.js
deleted file mode 100644
index 5758ed7..0000000
--- a/node_modules/uuid/lib/sha1-browser.js
+++ /dev/null
@@ -1,89 +0,0 @@
-// Adapted from Chris Veness' SHA1 code at
-// http://www.movable-type.co.uk/scripts/sha1.html
-'use strict';
-
-function f(s, x, y, z) {
- switch (s) {
- case 0: return (x & y) ^ (~x & z);
- case 1: return x ^ y ^ z;
- case 2: return (x & y) ^ (x & z) ^ (y & z);
- case 3: return x ^ y ^ z;
- }
-}
-
-function ROTL(x, n) {
- return (x << n) | (x>>> (32 - n));
-}
-
-function sha1(bytes) {
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
-
- if (typeof(bytes) == 'string') {
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
- bytes = new Array(msg.length);
- for (var i = 0; i < msg.length; i++) bytes[i] = msg.charCodeAt(i);
- }
-
- bytes.push(0x80);
-
- var l = bytes.length/4 + 2;
- var N = Math.ceil(l/16);
- var M = new Array(N);
-
- for (var i=0; i<N; i++) {
- M[i] = new Array(16);
- for (var j=0; j<16; j++) {
- M[i][j] =
- bytes[i * 64 + j * 4] << 24 |
- bytes[i * 64 + j * 4 + 1] << 16 |
- bytes[i * 64 + j * 4 + 2] << 8 |
- bytes[i * 64 + j * 4 + 3];
- }
- }
-
- M[N - 1][14] = ((bytes.length - 1) * 8) /
- Math.pow(2, 32); M[N - 1][14] = Math.floor(M[N - 1][14]);
- M[N - 1][15] = ((bytes.length - 1) * 8) & 0xffffffff;
-
- for (var i=0; i<N; i++) {
- var W = new Array(80);
-
- for (var t=0; t<16; t++) W[t] = M[i][t];
- for (var t=16; t<80; t++) {
- W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
- }
-
- var a = H[0];
- var b = H[1];
- var c = H[2];
- var d = H[3];
- var e = H[4];
-
- for (var t=0; t<80; t++) {
- var s = Math.floor(t/20);
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
- e = d;
- d = c;
- c = ROTL(b, 30) >>> 0;
- b = a;
- a = T;
- }
-
- H[0] = (H[0] + a) >>> 0;
- H[1] = (H[1] + b) >>> 0;
- H[2] = (H[2] + c) >>> 0;
- H[3] = (H[3] + d) >>> 0;
- H[4] = (H[4] + e) >>> 0;
- }
-
- return [
- H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff,
- H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff,
- H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff,
- H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff,
- H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff
- ];
-}
-
-module.exports = sha1;
diff --git a/node_modules/uuid/lib/sha1.js b/node_modules/uuid/lib/sha1.js
deleted file mode 100644
index 0b54b25..0000000
--- a/node_modules/uuid/lib/sha1.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-var crypto = require('crypto');
-
-function sha1(bytes) {
- if (typeof Buffer.from === 'function') {
- // Modern Buffer API
- if (Array.isArray(bytes)) {
- bytes = Buffer.from(bytes);
- } else if (typeof bytes === 'string') {
- bytes = Buffer.from(bytes, 'utf8');
- }
- } else {
- // Pre-v4 Buffer API
- if (Array.isArray(bytes)) {
- bytes = new Buffer(bytes);
- } else if (typeof bytes === 'string') {
- bytes = new Buffer(bytes, 'utf8');
- }
- }
-
- return crypto.createHash('sha1').update(bytes).digest();
-}
-
-module.exports = sha1;
diff --git a/node_modules/uuid/lib/v35.js b/node_modules/uuid/lib/v35.js
deleted file mode 100644
index 8b066cc..0000000
--- a/node_modules/uuid/lib/v35.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var bytesToUuid = require('./bytesToUuid');
-
-function uuidToBytes(uuid) {
- // Note: We assume we're being passed a valid uuid string
- var bytes = [];
- uuid.replace(/[a-fA-F0-9]{2}/g, function(hex) {
- bytes.push(parseInt(hex, 16));
- });
-
- return bytes;
-}
-
-function stringToBytes(str) {
- str = unescape(encodeURIComponent(str)); // UTF8 escape
- var bytes = new Array(str.length);
- for (var i = 0; i < str.length; i++) {
- bytes[i] = str.charCodeAt(i);
- }
- return bytes;
-}
-
-module.exports = function(name, version, hashfunc) {
- var generateUUID = function(value, namespace, buf, offset) {
- var off = buf && offset || 0;
-
- if (typeof(value) == 'string') value = stringToBytes(value);
- if (typeof(namespace) == 'string') namespace = uuidToBytes(namespace);
-
- if (!Array.isArray(value)) throw TypeError('value must be an array of bytes');
- if (!Array.isArray(namespace) || namespace.length !== 16) throw TypeError('namespace must be uuid string or an Array of 16 byte values');
-
- // Per 4.3
- var bytes = hashfunc(namespace.concat(value));
- bytes[6] = (bytes[6] & 0x0f) | version;
- bytes[8] = (bytes[8] & 0x3f) | 0x80;
-
- if (buf) {
- for (var idx = 0; idx < 16; ++idx) {
- buf[off+idx] = bytes[idx];
- }
- }
-
- return buf || bytesToUuid(bytes);
- };
-
- // Function#name is not settable on some platforms (#270)
- try {
- generateUUID.name = name;
- } catch (err) {
- }
-
- // Pre-defined namespaces, per Appendix C
- generateUUID.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
- generateUUID.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
-
- return generateUUID;
-};
diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json
deleted file mode 100644
index e26d2c5..0000000
--- a/node_modules/uuid/package.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "_from": "uuid@^3.3.2",
- "_id": "uuid@3.4.0",
- "_inBundle": false,
- "_integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
- "_location": "/uuid",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "uuid@^3.3.2",
- "name": "uuid",
- "escapedName": "uuid",
- "rawSpec": "^3.3.2",
- "saveSpec": null,
- "fetchSpec": "^3.3.2"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
- "_shasum": "b23e4358afa8a202fe7a100af1f5f883f02007ee",
- "_spec": "uuid@^3.3.2",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/hugo-dev-theme/node_modules/request",
- "bin": {
- "uuid": "bin/uuid"
- },
- "browser": {
- "./lib/rng.js": "./lib/rng-browser.js",
- "./lib/sha1.js": "./lib/sha1-browser.js",
- "./lib/md5.js": "./lib/md5-browser.js"
- },
- "bugs": {
- "url": "https://github.com/uuidjs/uuid/issues"
- },
- "bundleDependencies": false,
- "commitlint": {
- "extends": [
- "@commitlint/config-conventional"
- ]
- },
- "contributors": [
- {
- "name": "Robert Kieffer",
- "email": "robert@broofa.com"
- },
- {
- "name": "Christoph Tavan",
- "email": "dev@tavan.de"
- },
- {
- "name": "AJ ONeal",
- "email": "coolaj86@gmail.com"
- },
- {
- "name": "Vincent Voyer",
- "email": "vincent@zeroload.net"
- },
- {
- "name": "Roman Shtylman",
- "email": "shtylman@gmail.com"
- }
- ],
- "deprecated": false,
- "description": "RFC4122 (v1, v4, and v5) UUIDs",
- "devDependencies": {
- "@commitlint/cli": "~8.2.0",
- "@commitlint/config-conventional": "~8.2.0",
- "eslint": "~6.4.0",
- "husky": "~3.0.5",
- "mocha": "6.2.0",
- "runmd": "1.2.1",
- "standard-version": "7.0.0"
- },
- "homepage": "https://github.com/uuidjs/uuid#readme",
- "husky": {
- "hooks": {
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
- }
- },
- "keywords": [
- "uuid",
- "guid",
- "rfc4122"
- ],
- "license": "MIT",
- "name": "uuid",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/uuidjs/uuid.git"
- },
- "scripts": {
- "lint": "eslint .",
- "md": "runmd --watch --output=README.md README_js.md",
- "prepare": "runmd --output=README.md README_js.md",
- "release": "standard-version",
- "test": "npm run lint && mocha test/test.js"
- },
- "version": "3.4.0"
-}
diff --git a/node_modules/uuid/v1.js b/node_modules/uuid/v1.js
deleted file mode 100644
index 8c245de..0000000
--- a/node_modules/uuid/v1.js
+++ /dev/null
@@ -1,109 +0,0 @@
-var rng = require('./lib/rng');
-var bytesToUuid = require('./lib/bytesToUuid');
-
-// **`v1()` - Generate time-based UUID**
-//
-// Inspired by https://github.com/LiosK/UUID.js
-// and http://docs.python.org/library/uuid.html
-
-var _nodeId;
-var _clockseq;
-
-// Previous uuid creation time
-var _lastMSecs = 0;
-var _lastNSecs = 0;
-
-// See https://github.com/uuidjs/uuid for API details
-function v1(options, buf, offset) {
- var i = buf && offset || 0;
- var b = buf || [];
-
- options = options || {};
- var node = options.node || _nodeId;
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
-
- // node and clockseq need to be initialized to random values if they're not
- // specified. We do this lazily to minimize issues related to insufficient
- // system entropy. See #189
- if (node == null || clockseq == null) {
- var seedBytes = rng();
- if (node == null) {
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
- node = _nodeId = [
- seedBytes[0] | 0x01,
- seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
- ];
- }
- if (clockseq == null) {
- // Per 4.2.2, randomize (14 bit) clockseq
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
- }
- }
-
- // UUID timestamps are 100 nano-second units since the Gregorian epoch,
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
- var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
-
- // Per 4.2.1.2, use count of uuid's generated during the current clock
- // cycle to simulate higher resolution clock
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
-
- // Time since last uuid creation (in msecs)
- var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
-
- // Per 4.2.1.2, Bump clockseq on clock regression
- if (dt < 0 && options.clockseq === undefined) {
- clockseq = clockseq + 1 & 0x3fff;
- }
-
- // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
- // time interval
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
- nsecs = 0;
- }
-
- // Per 4.2.1.2 Throw error if too many uuids are requested
- if (nsecs >= 10000) {
- throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
- }
-
- _lastMSecs = msecs;
- _lastNSecs = nsecs;
- _clockseq = clockseq;
-
- // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
- msecs += 12219292800000;
-
- // `time_low`
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
- b[i++] = tl >>> 24 & 0xff;
- b[i++] = tl >>> 16 & 0xff;
- b[i++] = tl >>> 8 & 0xff;
- b[i++] = tl & 0xff;
-
- // `time_mid`
- var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
- b[i++] = tmh >>> 8 & 0xff;
- b[i++] = tmh & 0xff;
-
- // `time_high_and_version`
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
- b[i++] = tmh >>> 16 & 0xff;
-
- // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
- b[i++] = clockseq >>> 8 | 0x80;
-
- // `clock_seq_low`
- b[i++] = clockseq & 0xff;
-
- // `node`
- for (var n = 0; n < 6; ++n) {
- b[i + n] = node[n];
- }
-
- return buf ? buf : bytesToUuid(b);
-}
-
-module.exports = v1;
diff --git a/node_modules/uuid/v3.js b/node_modules/uuid/v3.js
deleted file mode 100644
index ee7e14c..0000000
--- a/node_modules/uuid/v3.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var v35 = require('./lib/v35.js');
-var md5 = require('./lib/md5');
-
-module.exports = v35('v3', 0x30, md5); \ No newline at end of file
diff --git a/node_modules/uuid/v4.js b/node_modules/uuid/v4.js
deleted file mode 100644
index 1f07be1..0000000
--- a/node_modules/uuid/v4.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var rng = require('./lib/rng');
-var bytesToUuid = require('./lib/bytesToUuid');
-
-function v4(options, buf, offset) {
- var i = buf && offset || 0;
-
- if (typeof(options) == 'string') {
- buf = options === 'binary' ? new Array(16) : null;
- options = null;
- }
- options = options || {};
-
- var rnds = options.random || (options.rng || rng)();
-
- // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
- rnds[6] = (rnds[6] & 0x0f) | 0x40;
- rnds[8] = (rnds[8] & 0x3f) | 0x80;
-
- // Copy bytes to buffer, if provided
- if (buf) {
- for (var ii = 0; ii < 16; ++ii) {
- buf[i + ii] = rnds[ii];
- }
- }
-
- return buf || bytesToUuid(rnds);
-}
-
-module.exports = v4;
diff --git a/node_modules/uuid/v5.js b/node_modules/uuid/v5.js
deleted file mode 100644
index 4945baf..0000000
--- a/node_modules/uuid/v5.js
+++ /dev/null
@@ -1,3 +0,0 @@
-var v35 = require('./lib/v35.js');
-var sha1 = require('./lib/sha1');
-module.exports = v35('v5', 0x50, sha1);
diff --git a/node_modules/validate-npm-package-license/LICENSE b/node_modules/validate-npm-package-license/LICENSE
deleted file mode 100644
index d645695..0000000
--- a/node_modules/validate-npm-package-license/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/node_modules/validate-npm-package-license/README.md b/node_modules/validate-npm-package-license/README.md
deleted file mode 100644
index 702bc7b..0000000
--- a/node_modules/validate-npm-package-license/README.md
+++ /dev/null
@@ -1,113 +0,0 @@
-validate-npm-package-license
-============================
-
-Give me a string and I'll tell you if it's a valid npm package license string.
-
-```javascript
-var valid = require('validate-npm-package-license');
-```
-
-SPDX license identifiers are valid license strings:
-
-```javascript
-
-var assert = require('assert');
-var validSPDXExpression = {
- validForNewPackages: true,
- validForOldPackages: true,
- spdx: true
-};
-
-assert.deepEqual(valid('MIT'), validSPDXExpression);
-assert.deepEqual(valid('BSD-2-Clause'), validSPDXExpression);
-assert.deepEqual(valid('Apache-2.0'), validSPDXExpression);
-assert.deepEqual(valid('ISC'), validSPDXExpression);
-```
-The function will return a warning and suggestion for nearly-correct license identifiers:
-
-```javascript
-assert.deepEqual(
- valid('Apache 2.0'),
- {
- validForOldPackages: false,
- validForNewPackages: false,
- warnings: [
- 'license should be ' +
- 'a valid SPDX license expression (without "LicenseRef"), ' +
- '"UNLICENSED", or ' +
- '"SEE LICENSE IN <filename>"',
- 'license is similar to the valid expression "Apache-2.0"'
- ]
- }
-);
-```
-
-SPDX expressions are valid, too ...
-
-```javascript
-// Simple SPDX license expression for dual licensing
-assert.deepEqual(
- valid('(GPL-3.0-only OR BSD-2-Clause)'),
- validSPDXExpression
-);
-```
-
-... except if they contain `LicenseRef`:
-
-```javascript
-var warningAboutLicenseRef = {
- validForOldPackages: false,
- validForNewPackages: false,
- spdx: true,
- warnings: [
- 'license should be ' +
- 'a valid SPDX license expression (without "LicenseRef"), ' +
- '"UNLICENSED", or ' +
- '"SEE LICENSE IN <filename>"',
- ]
-};
-
-assert.deepEqual(
- valid('LicenseRef-Made-Up'),
- warningAboutLicenseRef
-);
-
-assert.deepEqual(
- valid('(MIT OR LicenseRef-Made-Up)'),
- warningAboutLicenseRef
-);
-```
-
-If you can't describe your licensing terms with standardized SPDX identifiers, put the terms in a file in the package and point users there:
-
-```javascript
-assert.deepEqual(
- valid('SEE LICENSE IN LICENSE.txt'),
- {
- validForNewPackages: true,
- validForOldPackages: true,
- inFile: 'LICENSE.txt'
- }
-);
-
-assert.deepEqual(
- valid('SEE LICENSE IN license.md'),
- {
- validForNewPackages: true,
- validForOldPackages: true,
- inFile: 'license.md'
- }
-);
-```
-
-If there aren't any licensing terms, use `UNLICENSED`:
-
-```javascript
-var unlicensed = {
- validForNewPackages: true,
- validForOldPackages: true,
- unlicensed: true
-};
-assert.deepEqual(valid('UNLICENSED'), unlicensed);
-assert.deepEqual(valid('UNLICENCED'), unlicensed);
-```
diff --git a/node_modules/validate-npm-package-license/index.js b/node_modules/validate-npm-package-license/index.js
deleted file mode 100644
index 35eaa73..0000000
--- a/node_modules/validate-npm-package-license/index.js
+++ /dev/null
@@ -1,86 +0,0 @@
-var parse = require('spdx-expression-parse');
-var correct = require('spdx-correct');
-
-var genericWarning = (
- 'license should be ' +
- 'a valid SPDX license expression (without "LicenseRef"), ' +
- '"UNLICENSED", or ' +
- '"SEE LICENSE IN <filename>"'
-);
-
-var fileReferenceRE = /^SEE LICEN[CS]E IN (.+)$/;
-
-function startsWith(prefix, string) {
- return string.slice(0, prefix.length) === prefix;
-}
-
-function usesLicenseRef(ast) {
- if (ast.hasOwnProperty('license')) {
- var license = ast.license;
- return (
- startsWith('LicenseRef', license) ||
- startsWith('DocumentRef', license)
- );
- } else {
- return (
- usesLicenseRef(ast.left) ||
- usesLicenseRef(ast.right)
- );
- }
-}
-
-module.exports = function(argument) {
- var ast;
-
- try {
- ast = parse(argument);
- } catch (e) {
- var match
- if (
- argument === 'UNLICENSED' ||
- argument === 'UNLICENCED'
- ) {
- return {
- validForOldPackages: true,
- validForNewPackages: true,
- unlicensed: true
- };
- } else if (match = fileReferenceRE.exec(argument)) {
- return {
- validForOldPackages: true,
- validForNewPackages: true,
- inFile: match[1]
- };
- } else {
- var result = {
- validForOldPackages: false,
- validForNewPackages: false,
- warnings: [genericWarning]
- };
- if (argument.trim().length !== 0) {
- var corrected = correct(argument);
- if (corrected) {
- result.warnings.push(
- 'license is similar to the valid expression "' + corrected + '"'
- );
- }
- }
- return result;
- }
- }
-
- if (usesLicenseRef(ast)) {
- return {
- validForNewPackages: false,
- validForOldPackages: false,
- spdx: true,
- warnings: [genericWarning]
- };
- } else {
- return {
- validForNewPackages: true,
- validForOldPackages: true,
- spdx: true
- };
- }
-};
diff --git a/node_modules/validate-npm-package-license/package.json b/node_modules/validate-npm-package-license/package.json
deleted file mode 100644
index 4cb19a0..0000000
--- a/node_modules/validate-npm-package-license/package.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "_from": "validate-npm-package-license@^3.0.1",
- "_id": "validate-npm-package-license@3.0.4",
- "_inBundle": false,
- "_integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
- "_location": "/validate-npm-package-license",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "validate-npm-package-license@^3.0.1",
- "name": "validate-npm-package-license",
- "escapedName": "validate-npm-package-license",
- "rawSpec": "^3.0.1",
- "saveSpec": null,
- "fetchSpec": "^3.0.1"
- },
- "_requiredBy": [
- "/normalize-package-data"
- ],
- "_resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
- "_shasum": "fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a",
- "_spec": "validate-npm-package-license@^3.0.1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/normalize-package-data",
- "author": {
- "name": "Kyle E. Mitchell",
- "email": "kyle@kemitchell.com",
- "url": "https://kemitchell.com"
- },
- "bugs": {
- "url": "https://github.com/kemitchell/validate-npm-package-license.js/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Mark Stacey",
- "email": "markjstacey@gmail.com"
- }
- ],
- "dependencies": {
- "spdx-correct": "^3.0.0",
- "spdx-expression-parse": "^3.0.0"
- },
- "deprecated": false,
- "description": "Give me a string and I'll tell you if it's a valid npm package license string",
- "devDependencies": {
- "defence-cli": "^2.0.1",
- "replace-require-self": "^1.0.0"
- },
- "homepage": "https://github.com/kemitchell/validate-npm-package-license.js#readme",
- "keywords": [
- "license",
- "npm",
- "package",
- "validation"
- ],
- "license": "Apache-2.0",
- "name": "validate-npm-package-license",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/kemitchell/validate-npm-package-license.js.git"
- },
- "scripts": {
- "test": "defence README.md | replace-require-self | node"
- },
- "version": "3.0.4"
-}
diff --git a/node_modules/verror/.npmignore b/node_modules/verror/.npmignore
deleted file mode 100644
index f14aec8..0000000
--- a/node_modules/verror/.npmignore
+++ /dev/null
@@ -1,9 +0,0 @@
-.gitignore
-.gitmodules
-deps
-examples
-experiments
-jsl.node.conf
-Makefile
-Makefile.targ
-test
diff --git a/node_modules/verror/CHANGES.md b/node_modules/verror/CHANGES.md
deleted file mode 100644
index bbb745a..0000000
--- a/node_modules/verror/CHANGES.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Changelog
-
-## Not yet released
-
-None yet.
-
-## v1.10.0
-
-* #49 want convenience functions for MultiErrors
-
-## v1.9.0
-
-* #47 could use VError.hasCauseWithName()
-
-## v1.8.1
-
-* #39 captureStackTrace lost when inheriting from WError
-
-## v1.8.0
-
-* #23 Preserve original stack trace(s)
-
-## v1.7.0
-
-* #10 better support for extra properties on Errors
-* #11 make it easy to find causes of a particular kind
-* #29 No documentation on how to Install this package
-* #36 elide development-only files from npm package
diff --git a/node_modules/verror/CONTRIBUTING.md b/node_modules/verror/CONTRIBUTING.md
deleted file mode 100644
index 750cef8..0000000
--- a/node_modules/verror/CONTRIBUTING.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Contributing
-
-This repository uses [cr.joyent.us](https://cr.joyent.us) (Gerrit) for new
-changes. Anyone can submit changes. To get started, see the [cr.joyent.us user
-guide](https://github.com/joyent/joyent-gerrit/blob/master/docs/user/README.md).
-This repo does not use GitHub pull requests.
-
-See the [Joyent Engineering
-Guidelines](https://github.com/joyent/eng/blob/master/docs/index.md) for general
-best practices expected in this repository.
-
-Contributions should be "make prepush" clean. The "prepush" target runs the
-"check" target, which requires these separate tools:
-
-* https://github.com/davepacheco/jsstyle
-* https://github.com/davepacheco/javascriptlint
-
-If you're changing something non-trivial or user-facing, you may want to submit
-an issue first.
diff --git a/node_modules/verror/LICENSE b/node_modules/verror/LICENSE
deleted file mode 100644
index 82a5cb8..0000000
--- a/node_modules/verror/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2016, Joyent, Inc. All rights reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE
diff --git a/node_modules/verror/README.md b/node_modules/verror/README.md
deleted file mode 100644
index c1f0635..0000000
--- a/node_modules/verror/README.md
+++ /dev/null
@@ -1,528 +0,0 @@
-# verror: rich JavaScript errors
-
-This module provides several classes in support of Joyent's [Best Practices for
-Error Handling in Node.js](http://www.joyent.com/developers/node/design/errors).
-If you find any of the behavior here confusing or surprising, check out that
-document first.
-
-The error classes here support:
-
-* printf-style arguments for the message
-* chains of causes
-* properties to provide extra information about the error
-* creating your own subclasses that support all of these
-
-The classes here are:
-
-* **VError**, for chaining errors while preserving each one's error message.
- This is useful in servers and command-line utilities when you want to
- propagate an error up a call stack, but allow various levels to add their own
- context. See examples below.
-* **WError**, for wrapping errors while hiding the lower-level messages from the
- top-level error. This is useful for API endpoints where you don't want to
- expose internal error messages, but you still want to preserve the error chain
- for logging and debugging.
-* **SError**, which is just like VError but interprets printf-style arguments
- more strictly.
-* **MultiError**, which is just an Error that encapsulates one or more other
- errors. (This is used for parallel operations that return several errors.)
-
-
-# Quick start
-
-First, install the package:
-
- npm install verror
-
-If nothing else, you can use VError as a drop-in replacement for the built-in
-JavaScript Error class, with the addition of printf-style messages:
-
-```javascript
-var err = new VError('missing file: "%s"', '/etc/passwd');
-console.log(err.message);
-```
-
-This prints:
-
- missing file: "/etc/passwd"
-
-You can also pass a `cause` argument, which is any other Error object:
-
-```javascript
-var fs = require('fs');
-var filename = '/nonexistent';
-fs.stat(filename, function (err1) {
- var err2 = new VError(err1, 'stat "%s"', filename);
- console.error(err2.message);
-});
-```
-
-This prints out:
-
- stat "/nonexistent": ENOENT, stat '/nonexistent'
-
-which resembles how Unix programs typically report errors:
-
- $ sort /nonexistent
- sort: open failed: /nonexistent: No such file or directory
-
-To match the Unixy feel, when you print out the error, just prepend the
-program's name to the VError's `message`. Or just call
-[node-cmdutil.fail(your_verror)](https://github.com/joyent/node-cmdutil), which
-does this for you.
-
-You can get the next-level Error using `err.cause()`:
-
-```javascript
-console.error(err2.cause().message);
-```
-
-prints:
-
- ENOENT, stat '/nonexistent'
-
-Of course, you can chain these as many times as you want, and it works with any
-kind of Error:
-
-```javascript
-var err1 = new Error('No such file or directory');
-var err2 = new VError(err1, 'failed to stat "%s"', '/junk');
-var err3 = new VError(err2, 'request failed');
-console.error(err3.message);
-```
-
-This prints:
-
- request failed: failed to stat "/junk": No such file or directory
-
-The idea is that each layer in the stack annotates the error with a description
-of what it was doing. The end result is a message that explains what happened
-at each level.
-
-You can also decorate Error objects with additional information so that callers
-can not only handle each kind of error differently, but also construct their own
-error messages (e.g., to localize them, format them, group them by type, and so
-on). See the example below.
-
-
-# Deeper dive
-
-The two main goals for VError are:
-
-* **Make it easy to construct clear, complete error messages intended for
- people.** Clear error messages greatly improve both user experience and
- debuggability, so we wanted to make it easy to build them. That's why the
- constructor takes printf-style arguments.
-* **Make it easy to construct objects with programmatically-accessible
- metadata** (which we call _informational properties_). Instead of just saying
- "connection refused while connecting to 192.168.1.2:80", you can add
- properties like `"ip": "192.168.1.2"` and `"tcpPort": 80`. This can be used
- for feeding into monitoring systems, analyzing large numbers of Errors (as
- from a log file), or localizing error messages.
-
-To really make this useful, it also needs to be easy to compose Errors:
-higher-level code should be able to augment the Errors reported by lower-level
-code to provide a more complete description of what happened. Instead of saying
-"connection refused", you can say "operation X failed: connection refused".
-That's why VError supports `causes`.
-
-In order for all this to work, programmers need to know that it's generally safe
-to wrap lower-level Errors with higher-level ones. If you have existing code
-that handles Errors produced by a library, you should be able to wrap those
-Errors with a VError to add information without breaking the error handling
-code. There are two obvious ways that this could break such consumers:
-
-* The error's name might change. People typically use `name` to determine what
- kind of Error they've got. To ensure compatibility, you can create VErrors
- with custom names, but this approach isn't great because it prevents you from
- representing complex failures. For this reason, VError provides
- `findCauseByName`, which essentially asks: does this Error _or any of its
- causes_ have this specific type? If error handling code uses
- `findCauseByName`, then subsystems can construct very specific causal chains
- for debuggability and still let people handle simple cases easily. There's an
- example below.
-* The error's properties might change. People often hang additional properties
- off of Error objects. If we wrap an existing Error in a new Error, those
- properties would be lost unless we copied them. But there are a variety of
- both standard and non-standard Error properties that should _not_ be copied in
- this way: most obviously `name`, `message`, and `stack`, but also `fileName`,
- `lineNumber`, and a few others. Plus, it's useful for some Error subclasses
- to have their own private properties -- and there'd be no way to know whether
- these should be copied. For these reasons, VError first-classes these
- information properties. You have to provide them in the constructor, you can
- only fetch them with the `info()` function, and VError takes care of making
- sure properties from causes wind up in the `info()` output.
-
-Let's put this all together with an example from the node-fast RPC library.
-node-fast implements a simple RPC protocol for Node programs. There's a server
-and client interface, and clients make RPC requests to servers. Let's say the
-server fails with an UnauthorizedError with message "user 'bob' is not
-authorized". The client wraps all server errors with a FastServerError. The
-client also wraps all request errors with a FastRequestError that includes the
-name of the RPC call being made. The result of this failed RPC might look like
-this:
-
- name: FastRequestError
- message: "request failed: server error: user 'bob' is not authorized"
- rpcMsgid: <unique identifier for this request>
- rpcMethod: GetObject
- cause:
- name: FastServerError
- message: "server error: user 'bob' is not authorized"
- cause:
- name: UnauthorizedError
- message: "user 'bob' is not authorized"
- rpcUser: "bob"
-
-When the caller uses `VError.info()`, the information properties are collapsed
-so that it looks like this:
-
- message: "request failed: server error: user 'bob' is not authorized"
- rpcMsgid: <unique identifier for this request>
- rpcMethod: GetObject
- rpcUser: "bob"
-
-Taking this apart:
-
-* The error's message is a complete description of the problem. The caller can
- report this directly to its caller, which can potentially make its way back to
- an end user (if appropriate). It can also be logged.
-* The caller can tell that the request failed on the server, rather than as a
- result of a client problem (e.g., failure to serialize the request), a
- transport problem (e.g., failure to connect to the server), or something else
- (e.g., a timeout). They do this using `findCauseByName('FastServerError')`
- rather than checking the `name` field directly.
-* If the caller logs this error, the logs can be analyzed to aggregate
- errors by cause, by RPC method name, by user, or whatever. Or the
- error can be correlated with other events for the same rpcMsgid.
-* It wasn't very hard for any part of the code to contribute to this Error.
- Each part of the stack has just a few lines to provide exactly what it knows,
- with very little boilerplate.
-
-It's not expected that you'd use these complex forms all the time. Despite
-supporting the complex case above, you can still just do:
-
- new VError("my service isn't working");
-
-for the simple cases.
-
-
-# Reference: VError, WError, SError
-
-VError, WError, and SError are convenient drop-in replacements for `Error` that
-support printf-style arguments, first-class causes, informational properties,
-and other useful features.
-
-
-## Constructors
-
-The VError constructor has several forms:
-
-```javascript
-/*
- * This is the most general form. You can specify any supported options
- * (including "cause" and "info") this way.
- */
-new VError(options, sprintf_args...)
-
-/*
- * This is a useful shorthand when the only option you need is "cause".
- */
-new VError(cause, sprintf_args...)
-
-/*
- * This is a useful shorthand when you don't need any options at all.
- */
-new VError(sprintf_args...)
-```
-
-All of these forms construct a new VError that behaves just like the built-in
-JavaScript `Error` class, with some additional methods described below.
-
-In the first form, `options` is a plain object with any of the following
-optional properties:
-
-Option name | Type | Meaning
----------------- | ---------------- | -------
-`name` | string | Describes what kind of error this is. This is intended for programmatic use to distinguish between different kinds of errors. Note that in modern versions of Node.js, this name is ignored in the `stack` property value, but callers can still use the `name` property to get at it.
-`cause` | any Error object | Indicates that the new error was caused by `cause`. See `cause()` below. If unspecified, the cause will be `null`.
-`strict` | boolean | If true, then `null` and `undefined` values in `sprintf_args` are passed through to `sprintf()`. Otherwise, these are replaced with the strings `'null'`, and '`undefined`', respectively.
-`constructorOpt` | function | If specified, then the stack trace for this error ends at function `constructorOpt`. Functions called by `constructorOpt` will not show up in the stack. This is useful when this class is subclassed.
-`info` | object | Specifies arbitrary informational properties that are available through the `VError.info(err)` static class method. See that method for details.
-
-The second form is equivalent to using the first form with the specified `cause`
-as the error's cause. This form is distinguished from the first form because
-the first argument is an Error.
-
-The third form is equivalent to using the first form with all default option
-values. This form is distinguished from the other forms because the first
-argument is not an object or an Error.
-
-The `WError` constructor is used exactly the same way as the `VError`
-constructor. The `SError` constructor is also used the same way as the
-`VError` constructor except that in all cases, the `strict` property is
-overriden to `true.
-
-
-## Public properties
-
-`VError`, `WError`, and `SError` all provide the same public properties as
-JavaScript's built-in Error objects.
-
-Property name | Type | Meaning
-------------- | ------ | -------
-`name` | string | Programmatically-usable name of the error.
-`message` | string | Human-readable summary of the failure. Programmatically-accessible details are provided through `VError.info(err)` class method.
-`stack` | string | Human-readable stack trace where the Error was constructed.
-
-For all of these classes, the printf-style arguments passed to the constructor
-are processed with `sprintf()` to form a message. For `WError`, this becomes
-the complete `message` property. For `SError` and `VError`, this message is
-prepended to the message of the cause, if any (with a suitable separator), and
-the result becomes the `message` property.
-
-The `stack` property is managed entirely by the underlying JavaScript
-implementation. It's generally implemented using a getter function because
-constructing the human-readable stack trace is somewhat expensive.
-
-## Class methods
-
-The following methods are defined on the `VError` class and as exported
-functions on the `verror` module. They're defined this way rather than using
-methods on VError instances so that they can be used on Errors not created with
-`VError`.
-
-### `VError.cause(err)`
-
-The `cause()` function returns the next Error in the cause chain for `err`, or
-`null` if there is no next error. See the `cause` argument to the constructor.
-Errors can have arbitrarily long cause chains. You can walk the `cause` chain
-by invoking `VError.cause(err)` on each subsequent return value. If `err` is
-not a `VError`, the cause is `null`.
-
-### `VError.info(err)`
-
-Returns an object with all of the extra error information that's been associated
-with this Error and all of its causes. These are the properties passed in using
-the `info` option to the constructor. Properties not specified in the
-constructor for this Error are implicitly inherited from this error's cause.
-
-These properties are intended to provide programmatically-accessible metadata
-about the error. For an error that indicates a failure to resolve a DNS name,
-informational properties might include the DNS name to be resolved, or even the
-list of resolvers used to resolve it. The values of these properties should
-generally be plain objects (i.e., consisting only of null, undefined, numbers,
-booleans, strings, and objects and arrays containing only other plain objects).
-
-### `VError.fullStack(err)`
-
-Returns a string containing the full stack trace, with all nested errors recursively
-reported as `'caused by:' + err.stack`.
-
-### `VError.findCauseByName(err, name)`
-
-The `findCauseByName()` function traverses the cause chain for `err`, looking
-for an error whose `name` property matches the passed in `name` value. If no
-match is found, `null` is returned.
-
-If all you want is to know _whether_ there's a cause (and you don't care what it
-is), you can use `VError.hasCauseWithName(err, name)`.
-
-If a vanilla error or a non-VError error is passed in, then there is no cause
-chain to traverse. In this scenario, the function will check the `name`
-property of only `err`.
-
-### `VError.hasCauseWithName(err, name)`
-
-Returns true if and only if `VError.findCauseByName(err, name)` would return
-a non-null value. This essentially determines whether `err` has any cause in
-its cause chain that has name `name`.
-
-### `VError.errorFromList(errors)`
-
-Given an array of Error objects (possibly empty), return a single error
-representing the whole collection of errors. If the list has:
-
-* 0 elements, returns `null`
-* 1 element, returns the sole error
-* more than 1 element, returns a MultiError referencing the whole list
-
-This is useful for cases where an operation may produce any number of errors,
-and you ultimately want to implement the usual `callback(err)` pattern. You can
-accumulate the errors in an array and then invoke
-`callback(VError.errorFromList(errors))` when the operation is complete.
-
-
-### `VError.errorForEach(err, func)`
-
-Convenience function for iterating an error that may itself be a MultiError.
-
-In all cases, `err` must be an Error. If `err` is a MultiError, then `func` is
-invoked as `func(errorN)` for each of the underlying errors of the MultiError.
-If `err` is any other kind of error, `func` is invoked once as `func(err)`. In
-all cases, `func` is invoked synchronously.
-
-This is useful for cases where an operation may produce any number of warnings
-that may be encapsulated with a MultiError -- but may not be.
-
-This function does not iterate an error's cause chain.
-
-
-## Examples
-
-The "Demo" section above covers several basic cases. Here's a more advanced
-case:
-
-```javascript
-var err1 = new VError('something bad happened');
-/* ... */
-var err2 = new VError({
- 'name': 'ConnectionError',
- 'cause': err1,
- 'info': {
- 'errno': 'ECONNREFUSED',
- 'remote_ip': '127.0.0.1',
- 'port': 215
- }
-}, 'failed to connect to "%s:%d"', '127.0.0.1', 215);
-
-console.log(err2.message);
-console.log(err2.name);
-console.log(VError.info(err2));
-console.log(err2.stack);
-```
-
-This outputs:
-
- failed to connect to "127.0.0.1:215": something bad happened
- ConnectionError
- { errno: 'ECONNREFUSED', remote_ip: '127.0.0.1', port: 215 }
- ConnectionError: failed to connect to "127.0.0.1:215": something bad happened
- at Object.<anonymous> (/home/dap/node-verror/examples/info.js:5:12)
- at Module._compile (module.js:456:26)
- at Object.Module._extensions..js (module.js:474:10)
- at Module.load (module.js:356:32)
- at Function.Module._load (module.js:312:12)
- at Function.Module.runMain (module.js:497:10)
- at startup (node.js:119:16)
- at node.js:935:3
-
-Information properties are inherited up the cause chain, with values at the top
-of the chain overriding same-named values lower in the chain. To continue that
-example:
-
-```javascript
-var err3 = new VError({
- 'name': 'RequestError',
- 'cause': err2,
- 'info': {
- 'errno': 'EBADREQUEST'
- }
-}, 'request failed');
-
-console.log(err3.message);
-console.log(err3.name);
-console.log(VError.info(err3));
-console.log(err3.stack);
-```
-
-This outputs:
-
- request failed: failed to connect to "127.0.0.1:215": something bad happened
- RequestError
- { errno: 'EBADREQUEST', remote_ip: '127.0.0.1', port: 215 }
- RequestError: request failed: failed to connect to "127.0.0.1:215": something bad happened
- at Object.<anonymous> (/home/dap/node-verror/examples/info.js:20:12)
- at Module._compile (module.js:456:26)
- at Object.Module._extensions..js (module.js:474:10)
- at Module.load (module.js:356:32)
- at Function.Module._load (module.js:312:12)
- at Function.Module.runMain (module.js:497:10)
- at startup (node.js:119:16)
- at node.js:935:3
-
-You can also print the complete stack trace of combined `Error`s by using
-`VError.fullStack(err).`
-
-```javascript
-var err1 = new VError('something bad happened');
-/* ... */
-var err2 = new VError(err1, 'something really bad happened here');
-
-console.log(VError.fullStack(err2));
-```
-
-This outputs:
-
- VError: something really bad happened here: something bad happened
- at Object.<anonymous> (/home/dap/node-verror/examples/fullStack.js:5:12)
- at Module._compile (module.js:409:26)
- at Object.Module._extensions..js (module.js:416:10)
- at Module.load (module.js:343:32)
- at Function.Module._load (module.js:300:12)
- at Function.Module.runMain (module.js:441:10)
- at startup (node.js:139:18)
- at node.js:968:3
- caused by: VError: something bad happened
- at Object.<anonymous> (/home/dap/node-verror/examples/fullStack.js:3:12)
- at Module._compile (module.js:409:26)
- at Object.Module._extensions..js (module.js:416:10)
- at Module.load (module.js:343:32)
- at Function.Module._load (module.js:300:12)
- at Function.Module.runMain (module.js:441:10)
- at startup (node.js:139:18)
- at node.js:968:3
-
-`VError.fullStack` is also safe to use on regular `Error`s, so feel free to use
-it whenever you need to extract the stack trace from an `Error`, regardless if
-it's a `VError` or not.
-
-# Reference: MultiError
-
-MultiError is an Error class that represents a group of Errors. This is used
-when you logically need to provide a single Error, but you want to preserve
-information about multiple underying Errors. A common case is when you execute
-several operations in parallel and some of them fail.
-
-MultiErrors are constructed as:
-
-```javascript
-new MultiError(error_list)
-```
-
-`error_list` is an array of at least one `Error` object.
-
-The cause of the MultiError is the first error provided. None of the other
-`VError` options are supported. The `message` for a MultiError consists the
-`message` from the first error, prepended with a message indicating that there
-were other errors.
-
-For example:
-
-```javascript
-err = new MultiError([
- new Error('failed to resolve DNS name "abc.example.com"'),
- new Error('failed to resolve DNS name "def.example.com"'),
-]);
-
-console.error(err.message);
-```
-
-outputs:
-
- first of 2 errors: failed to resolve DNS name "abc.example.com"
-
-See the convenience function `VError.errorFromList`, which is sometimes simpler
-to use than this constructor.
-
-## Public methods
-
-
-### `errors()`
-
-Returns an array of the errors used to construct this MultiError.
-
-
-# Contributing
-
-See separate [contribution guidelines](CONTRIBUTING.md).
diff --git a/node_modules/verror/lib/verror.js b/node_modules/verror/lib/verror.js
deleted file mode 100644
index 8663dde..0000000
--- a/node_modules/verror/lib/verror.js
+++ /dev/null
@@ -1,451 +0,0 @@
-/*
- * verror.js: richer JavaScript errors
- */
-
-var mod_assertplus = require('assert-plus');
-var mod_util = require('util');
-
-var mod_extsprintf = require('extsprintf');
-var mod_isError = require('core-util-is').isError;
-var sprintf = mod_extsprintf.sprintf;
-
-/*
- * Public interface
- */
-
-/* So you can 'var VError = require('verror')' */
-module.exports = VError;
-/* For compatibility */
-VError.VError = VError;
-/* Other exported classes */
-VError.SError = SError;
-VError.WError = WError;
-VError.MultiError = MultiError;
-
-/*
- * Common function used to parse constructor arguments for VError, WError, and
- * SError. Named arguments to this function:
- *
- * strict force strict interpretation of sprintf arguments, even
- * if the options in "argv" don't say so
- *
- * argv error's constructor arguments, which are to be
- * interpreted as described in README.md. For quick
- * reference, "argv" has one of the following forms:
- *
- * [ sprintf_args... ] (argv[0] is a string)
- * [ cause, sprintf_args... ] (argv[0] is an Error)
- * [ options, sprintf_args... ] (argv[0] is an object)
- *
- * This function normalizes these forms, producing an object with the following
- * properties:
- *
- * options equivalent to "options" in third form. This will never
- * be a direct reference to what the caller passed in
- * (i.e., it may be a shallow copy), so it can be freely
- * modified.
- *
- * shortmessage result of sprintf(sprintf_args), taking options.strict
- * into account as described in README.md.
- */
-function parseConstructorArguments(args)
-{
- var argv, options, sprintf_args, shortmessage, k;
-
- mod_assertplus.object(args, 'args');
- mod_assertplus.bool(args.strict, 'args.strict');
- mod_assertplus.array(args.argv, 'args.argv');
- argv = args.argv;
-
- /*
- * First, figure out which form of invocation we've been given.
- */
- if (argv.length === 0) {
- options = {};
- sprintf_args = [];
- } else if (mod_isError(argv[0])) {
- options = { 'cause': argv[0] };
- sprintf_args = argv.slice(1);
- } else if (typeof (argv[0]) === 'object') {
- options = {};
- for (k in argv[0]) {
- options[k] = argv[0][k];
- }
- sprintf_args = argv.slice(1);
- } else {
- mod_assertplus.string(argv[0],
- 'first argument to VError, SError, or WError ' +
- 'constructor must be a string, object, or Error');
- options = {};
- sprintf_args = argv;
- }
-
- /*
- * Now construct the error's message.
- *
- * extsprintf (which we invoke here with our caller's arguments in order
- * to construct this Error's message) is strict in its interpretation of
- * values to be processed by the "%s" specifier. The value passed to
- * extsprintf must actually be a string or something convertible to a
- * String using .toString(). Passing other values (notably "null" and
- * "undefined") is considered a programmer error. The assumption is
- * that if you actually want to print the string "null" or "undefined",
- * then that's easy to do that when you're calling extsprintf; on the
- * other hand, if you did NOT want that (i.e., there's actually a bug
- * where the program assumes some variable is non-null and tries to
- * print it, which might happen when constructing a packet or file in
- * some specific format), then it's better to stop immediately than
- * produce bogus output.
- *
- * However, sometimes the bug is only in the code calling VError, and a
- * programmer might prefer to have the error message contain "null" or
- * "undefined" rather than have the bug in the error path crash the
- * program (making the first bug harder to identify). For that reason,
- * by default VError converts "null" or "undefined" arguments to their
- * string representations and passes those to extsprintf. Programmers
- * desiring the strict behavior can use the SError class or pass the
- * "strict" option to the VError constructor.
- */
- mod_assertplus.object(options);
- if (!options.strict && !args.strict) {
- sprintf_args = sprintf_args.map(function (a) {
- return (a === null ? 'null' :
- a === undefined ? 'undefined' : a);
- });
- }
-
- if (sprintf_args.length === 0) {
- shortmessage = '';
- } else {
- shortmessage = sprintf.apply(null, sprintf_args);
- }
-
- return ({
- 'options': options,
- 'shortmessage': shortmessage
- });
-}
-
-/*
- * See README.md for reference documentation.
- */
-function VError()
-{
- var args, obj, parsed, cause, ctor, message, k;
-
- args = Array.prototype.slice.call(arguments, 0);
-
- /*
- * This is a regrettable pattern, but JavaScript's built-in Error class
- * is defined to work this way, so we allow the constructor to be called
- * without "new".
- */
- if (!(this instanceof VError)) {
- obj = Object.create(VError.prototype);
- VError.apply(obj, arguments);
- return (obj);
- }
-
- /*
- * For convenience and backwards compatibility, we support several
- * different calling forms. Normalize them here.
- */
- parsed = parseConstructorArguments({
- 'argv': args,
- 'strict': false
- });
-
- /*
- * If we've been given a name, apply it now.
- */
- if (parsed.options.name) {
- mod_assertplus.string(parsed.options.name,
- 'error\'s "name" must be a string');
- this.name = parsed.options.name;
- }
-
- /*
- * For debugging, we keep track of the original short message (attached
- * this Error particularly) separately from the complete message (which
- * includes the messages of our cause chain).
- */
- this.jse_shortmsg = parsed.shortmessage;
- message = parsed.shortmessage;
-
- /*
- * If we've been given a cause, record a reference to it and update our
- * message appropriately.
- */
- cause = parsed.options.cause;
- if (cause) {
- mod_assertplus.ok(mod_isError(cause), 'cause is not an Error');
- this.jse_cause = cause;
-
- if (!parsed.options.skipCauseMessage) {
- message += ': ' + cause.message;
- }
- }
-
- /*
- * If we've been given an object with properties, shallow-copy that
- * here. We don't want to use a deep copy in case there are non-plain
- * objects here, but we don't want to use the original object in case
- * the caller modifies it later.
- */
- this.jse_info = {};
- if (parsed.options.info) {
- for (k in parsed.options.info) {
- this.jse_info[k] = parsed.options.info[k];
- }
- }
-
- this.message = message;
- Error.call(this, message);
-
- if (Error.captureStackTrace) {
- ctor = parsed.options.constructorOpt || this.constructor;
- Error.captureStackTrace(this, ctor);
- }
-
- return (this);
-}
-
-mod_util.inherits(VError, Error);
-VError.prototype.name = 'VError';
-
-VError.prototype.toString = function ve_toString()
-{
- var str = (this.hasOwnProperty('name') && this.name ||
- this.constructor.name || this.constructor.prototype.name);
- if (this.message)
- str += ': ' + this.message;
-
- return (str);
-};
-
-/*
- * This method is provided for compatibility. New callers should use
- * VError.cause() instead. That method also uses the saner `null` return value
- * when there is no cause.
- */
-VError.prototype.cause = function ve_cause()
-{
- var cause = VError.cause(this);
- return (cause === null ? undefined : cause);
-};
-
-/*
- * Static methods
- *
- * These class-level methods are provided so that callers can use them on
- * instances of Errors that are not VErrors. New interfaces should be provided
- * only using static methods to eliminate the class of programming mistake where
- * people fail to check whether the Error object has the corresponding methods.
- */
-
-VError.cause = function (err)
-{
- mod_assertplus.ok(mod_isError(err), 'err must be an Error');
- return (mod_isError(err.jse_cause) ? err.jse_cause : null);
-};
-
-VError.info = function (err)
-{
- var rv, cause, k;
-
- mod_assertplus.ok(mod_isError(err), 'err must be an Error');
- cause = VError.cause(err);
- if (cause !== null) {
- rv = VError.info(cause);
- } else {
- rv = {};
- }
-
- if (typeof (err.jse_info) == 'object' && err.jse_info !== null) {
- for (k in err.jse_info) {
- rv[k] = err.jse_info[k];
- }
- }
-
- return (rv);
-};
-
-VError.findCauseByName = function (err, name)
-{
- var cause;
-
- mod_assertplus.ok(mod_isError(err), 'err must be an Error');
- mod_assertplus.string(name, 'name');
- mod_assertplus.ok(name.length > 0, 'name cannot be empty');
-
- for (cause = err; cause !== null; cause = VError.cause(cause)) {
- mod_assertplus.ok(mod_isError(cause));
- if (cause.name == name) {
- return (cause);
- }
- }
-
- return (null);
-};
-
-VError.hasCauseWithName = function (err, name)
-{
- return (VError.findCauseByName(err, name) !== null);
-};
-
-VError.fullStack = function (err)
-{
- mod_assertplus.ok(mod_isError(err), 'err must be an Error');
-
- var cause = VError.cause(err);
-
- if (cause) {
- return (err.stack + '\ncaused by: ' + VError.fullStack(cause));
- }
-
- return (err.stack);
-};
-
-VError.errorFromList = function (errors)
-{
- mod_assertplus.arrayOfObject(errors, 'errors');
-
- if (errors.length === 0) {
- return (null);
- }
-
- errors.forEach(function (e) {
- mod_assertplus.ok(mod_isError(e));
- });
-
- if (errors.length == 1) {
- return (errors[0]);
- }
-
- return (new MultiError(errors));
-};
-
-VError.errorForEach = function (err, func)
-{
- mod_assertplus.ok(mod_isError(err), 'err must be an Error');
- mod_assertplus.func(func, 'func');
-
- if (err instanceof MultiError) {
- err.errors().forEach(function iterError(e) { func(e); });
- } else {
- func(err);
- }
-};
-
-
-/*
- * SError is like VError, but stricter about types. You cannot pass "null" or
- * "undefined" as string arguments to the formatter.
- */
-function SError()
-{
- var args, obj, parsed, options;
-
- args = Array.prototype.slice.call(arguments, 0);
- if (!(this instanceof SError)) {
- obj = Object.create(SError.prototype);
- SError.apply(obj, arguments);
- return (obj);
- }
-
- parsed = parseConstructorArguments({
- 'argv': args,
- 'strict': true
- });
-
- options = parsed.options;
- VError.call(this, options, '%s', parsed.shortmessage);
-
- return (this);
-}
-
-/*
- * We don't bother setting SError.prototype.name because once constructed,
- * SErrors are just like VErrors.
- */
-mod_util.inherits(SError, VError);
-
-
-/*
- * Represents a collection of errors for the purpose of consumers that generally
- * only deal with one error. Callers can extract the individual errors
- * contained in this object, but may also just treat it as a normal single
- * error, in which case a summary message will be printed.
- */
-function MultiError(errors)
-{
- mod_assertplus.array(errors, 'list of errors');
- mod_assertplus.ok(errors.length > 0, 'must be at least one error');
- this.ase_errors = errors;
-
- VError.call(this, {
- 'cause': errors[0]
- }, 'first of %d error%s', errors.length, errors.length == 1 ? '' : 's');
-}
-
-mod_util.inherits(MultiError, VError);
-MultiError.prototype.name = 'MultiError';
-
-MultiError.prototype.errors = function me_errors()
-{
- return (this.ase_errors.slice(0));
-};
-
-
-/*
- * See README.md for reference details.
- */
-function WError()
-{
- var args, obj, parsed, options;
-
- args = Array.prototype.slice.call(arguments, 0);
- if (!(this instanceof WError)) {
- obj = Object.create(WError.prototype);
- WError.apply(obj, args);
- return (obj);
- }
-
- parsed = parseConstructorArguments({
- 'argv': args,
- 'strict': false
- });
-
- options = parsed.options;
- options['skipCauseMessage'] = true;
- VError.call(this, options, '%s', parsed.shortmessage);
-
- return (this);
-}
-
-mod_util.inherits(WError, VError);
-WError.prototype.name = 'WError';
-
-WError.prototype.toString = function we_toString()
-{
- var str = (this.hasOwnProperty('name') && this.name ||
- this.constructor.name || this.constructor.prototype.name);
- if (this.message)
- str += ': ' + this.message;
- if (this.jse_cause && this.jse_cause.message)
- str += '; caused by ' + this.jse_cause.toString();
-
- return (str);
-};
-
-/*
- * For purely historical reasons, WError's cause() function allows you to set
- * the cause.
- */
-WError.prototype.cause = function we_cause(c)
-{
- if (mod_isError(c))
- this.jse_cause = c;
-
- return (this.jse_cause);
-};
diff --git a/node_modules/verror/package.json b/node_modules/verror/package.json
deleted file mode 100644
index 4c82f0e..0000000
--- a/node_modules/verror/package.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "_from": "verror@1.10.0",
- "_id": "verror@1.10.0",
- "_inBundle": false,
- "_integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
- "_location": "/verror",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "verror@1.10.0",
- "name": "verror",
- "escapedName": "verror",
- "rawSpec": "1.10.0",
- "saveSpec": null,
- "fetchSpec": "1.10.0"
- },
- "_requiredBy": [
- "/jsprim"
- ],
- "_resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
- "_shasum": "3a105ca17053af55d6e270c1f8288682e18da400",
- "_spec": "verror@1.10.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/jsprim",
- "bugs": {
- "url": "https://github.com/davepacheco/node-verror/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "assert-plus": "^1.0.0",
- "core-util-is": "1.0.2",
- "extsprintf": "^1.2.0"
- },
- "deprecated": false,
- "description": "richer JavaScript errors",
- "engines": [
- "node >=0.6.0"
- ],
- "homepage": "https://github.com/davepacheco/node-verror#readme",
- "license": "MIT",
- "main": "./lib/verror.js",
- "name": "verror",
- "repository": {
- "type": "git",
- "url": "git://github.com/davepacheco/node-verror.git"
- },
- "scripts": {
- "test": "make test"
- },
- "version": "1.10.0"
-}
diff --git a/node_modules/which-module/CHANGELOG.md b/node_modules/which-module/CHANGELOG.md
deleted file mode 100644
index 863d469..0000000
--- a/node_modules/which-module/CHANGELOG.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="2.0.0"></a>
-# [2.0.0](https://github.com/nexdrew/which-module/compare/v1.0.0...v2.0.0) (2017-05-01)
-
-
-### Features
-
-* remove Node < 4 from official testing/support ([#22](https://github.com/nexdrew/which-module/issues/22)) ([ee7aff4](https://github.com/nexdrew/which-module/commit/ee7aff4))
-
-
-### BREAKING CHANGES
-
-* Node 0.10 or 0.12 no longer supported, please update to Node 4+ or use which-module@1.0.0
-
-
-
-<a name="1.0.0"></a>
-# 1.0.0 (2016-06-06)
-
-
-### Features
-
-* initial code ([08074cd](https://github.com/nexdrew/which-module/commit/08074cd))
diff --git a/node_modules/which-module/LICENSE b/node_modules/which-module/LICENSE
deleted file mode 100644
index ab601b6..0000000
--- a/node_modules/which-module/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2016, Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any purpose
-with or without fee is hereby granted, provided that the above copyright notice
-and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
-OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
-THIS SOFTWARE.
diff --git a/node_modules/which-module/README.md b/node_modules/which-module/README.md
deleted file mode 100644
index a8c4bf8..0000000
--- a/node_modules/which-module/README.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# which-module
-
-> Find the module object for something that was require()d
-
-[![Build Status](https://travis-ci.org/nexdrew/which-module.svg?branch=master)](https://travis-ci.org/nexdrew/which-module)
-[![Coverage Status](https://coveralls.io/repos/github/nexdrew/which-module/badge.svg?branch=master)](https://coveralls.io/github/nexdrew/which-module?branch=master)
-[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
-
-Find the `module` object in `require.cache` for something that was `require()`d
-or `import`ed - essentially a reverse `require()` lookup.
-
-Useful for libs that want to e.g. lookup a filename for a module or submodule
-that it did not `require()` itself.
-
-## Install and Usage
-
-```
-npm install --save which-module
-```
-
-```js
-const whichModule = require('which-module')
-
-console.log(whichModule(require('something')))
-// Module {
-// id: '/path/to/project/node_modules/something/index.js',
-// exports: [Function],
-// parent: ...,
-// filename: '/path/to/project/node_modules/something/index.js',
-// loaded: true,
-// children: [],
-// paths: [ '/path/to/project/node_modules/something/node_modules',
-// '/path/to/project/node_modules',
-// '/path/to/node_modules',
-// '/path/node_modules',
-// '/node_modules' ] }
-```
-
-## API
-
-### `whichModule(exported)`
-
-Return the [`module` object](https://nodejs.org/api/modules.html#modules_the_module_object),
-if any, that represents the given argument in the `require.cache`.
-
-`exported` can be anything that was previously `require()`d or `import`ed as a
-module, submodule, or dependency - which means `exported` is identical to the
-`module.exports` returned by this method.
-
-If `exported` did not come from the `exports` of a `module` in `require.cache`,
-then this method returns `null`.
-
-## License
-
-ISC © Contributors
diff --git a/node_modules/which-module/index.js b/node_modules/which-module/index.js
deleted file mode 100644
index 45559b7..0000000
--- a/node_modules/which-module/index.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict'
-
-module.exports = function whichModule (exported) {
- for (var i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) {
- mod = require.cache[files[i]]
- if (mod.exports === exported) return mod
- }
- return null
-}
diff --git a/node_modules/which-module/package.json b/node_modules/which-module/package.json
deleted file mode 100644
index 9ebe146..0000000
--- a/node_modules/which-module/package.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "_from": "which-module@^2.0.0",
- "_id": "which-module@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
- "_location": "/which-module",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "which-module@^2.0.0",
- "name": "which-module",
- "escapedName": "which-module",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
- "_shasum": "d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a",
- "_spec": "which-module@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "nexdrew"
- },
- "bugs": {
- "url": "https://github.com/nexdrew/which-module/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Find the module object for something that was require()d",
- "devDependencies": {
- "ava": "^0.19.1",
- "coveralls": "^2.13.1",
- "nyc": "^10.3.0",
- "standard": "^10.0.2",
- "standard-version": "^4.0.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/nexdrew/which-module#readme",
- "keywords": [
- "which",
- "module",
- "exports",
- "filename",
- "require",
- "reverse",
- "lookup"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "which-module",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/nexdrew/which-module.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "pretest": "standard",
- "release": "standard-version",
- "test": "nyc ava"
- },
- "version": "2.0.0"
-}
diff --git a/node_modules/which/CHANGELOG.md b/node_modules/which/CHANGELOG.md
deleted file mode 100644
index 3d83d26..0000000
--- a/node_modules/which/CHANGELOG.md
+++ /dev/null
@@ -1,152 +0,0 @@
-# Changes
-
-
-## 1.3.1
-
-* update deps
-* update travis
-
-## v1.3.0
-
-* Add nothrow option to which.sync
-* update tap
-
-## v1.2.14
-
-* appveyor: drop node 5 and 0.x
-* travis-ci: add node 6, drop 0.x
-
-## v1.2.13
-
-* test: Pass missing option to pass on windows
-* update tap
-* update isexe to 2.0.0
-* neveragain.tech pledge request
-
-## v1.2.12
-
-* Removed unused require
-
-## v1.2.11
-
-* Prevent changelog script from being included in package
-
-## v1.2.10
-
-* Use env.PATH only, not env.Path
-
-## v1.2.9
-
-* fix for paths starting with ../
-* Remove unused `is-absolute` module
-
-## v1.2.8
-
-* bullet items in changelog that contain (but don't start with) #
-
-## v1.2.7
-
-* strip 'update changelog' changelog entries out of changelog
-
-## v1.2.6
-
-* make the changelog bulleted
-
-## v1.2.5
-
-* make a changelog, and keep it up to date
-* don't include tests in package
-* Properly handle relative-path executables
-* appveyor
-* Attach error code to Not Found error
-* Make tests pass on Windows
-
-## v1.2.4
-
-* Fix typo
-
-## v1.2.3
-
-* update isexe, fix regression in pathExt handling
-
-## v1.2.2
-
-* update deps, use isexe module, test windows
-
-## v1.2.1
-
-* Sometimes windows PATH entries are quoted
-* Fixed a bug in the check for group and user mode bits. This bug was introduced during refactoring for supporting strict mode.
-* doc cli
-
-## v1.2.0
-
-* Add support for opt.all and -as cli flags
-* test the bin
-* update travis
-* Allow checking for multiple programs in bin/which
-* tap 2
-
-## v1.1.2
-
-* travis
-* Refactored and fixed undefined error on Windows
-* Support strict mode
-
-## v1.1.1
-
-* test +g exes against secondary groups, if available
-* Use windows exe semantics on cygwin & msys
-* cwd should be first in path on win32, not last
-* Handle lower-case 'env.Path' on Windows
-* Update docs
-* use single-quotes
-
-## v1.1.0
-
-* Add tests, depend on is-absolute
-
-## v1.0.9
-
-* which.js: root is allowed to execute files owned by anyone
-
-## v1.0.8
-
-* don't use graceful-fs
-
-## v1.0.7
-
-* add license to package.json
-
-## v1.0.6
-
-* isc license
-
-## 1.0.5
-
-* Awful typo
-
-## 1.0.4
-
-* Test for path absoluteness properly
-* win: Allow '' as a pathext if cmd has a . in it
-
-## 1.0.3
-
-* Remove references to execPath
-* Make `which.sync()` work on Windows by honoring the PATHEXT variable.
-* Make `isExe()` always return true on Windows.
-* MIT
-
-## 1.0.2
-
-* Only files can be exes
-
-## 1.0.1
-
-* Respect the PATHEXT env for win32 support
-* should 0755 the bin
-* binary
-* guts
-* package
-* 1st
diff --git a/node_modules/which/LICENSE b/node_modules/which/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/which/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/which/README.md b/node_modules/which/README.md
deleted file mode 100644
index 8c0b0cb..0000000
--- a/node_modules/which/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# which
-
-Like the unix `which` utility.
-
-Finds the first instance of a specified executable in the PATH
-environment variable. Does not cache the results, so `hash -r` is not
-needed when the PATH changes.
-
-## USAGE
-
-```javascript
-var which = require('which')
-
-// async usage
-which('node', function (er, resolvedPath) {
- // er is returned if no "node" is found on the PATH
- // if it is found, then the absolute path to the exec is returned
-})
-
-// sync usage
-// throws if not found
-var resolved = which.sync('node')
-
-// if nothrow option is used, returns null if not found
-resolved = which.sync('node', {nothrow: true})
-
-// Pass options to override the PATH and PATHEXT environment vars.
-which('node', { path: someOtherPath }, function (er, resolved) {
- if (er)
- throw er
- console.log('found at %j', resolved)
-})
-```
-
-## CLI USAGE
-
-Same as the BSD `which(1)` binary.
-
-```
-usage: which [-as] program ...
-```
-
-## OPTIONS
-
-You may pass an options object as the second argument.
-
-- `path`: Use instead of the `PATH` environment variable.
-- `pathExt`: Use instead of the `PATHEXT` environment variable.
-- `all`: Return all matches, instead of just the first one. Note that
- this means the function returns an array of strings instead of a
- single string.
diff --git a/node_modules/which/bin/which b/node_modules/which/bin/which
deleted file mode 100755
index 7cee372..0000000
--- a/node_modules/which/bin/which
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env node
-var which = require("../")
-if (process.argv.length < 3)
- usage()
-
-function usage () {
- console.error('usage: which [-as] program ...')
- process.exit(1)
-}
-
-var all = false
-var silent = false
-var dashdash = false
-var args = process.argv.slice(2).filter(function (arg) {
- if (dashdash || !/^-/.test(arg))
- return true
-
- if (arg === '--') {
- dashdash = true
- return false
- }
-
- var flags = arg.substr(1).split('')
- for (var f = 0; f < flags.length; f++) {
- var flag = flags[f]
- switch (flag) {
- case 's':
- silent = true
- break
- case 'a':
- all = true
- break
- default:
- console.error('which: illegal option -- ' + flag)
- usage()
- }
- }
- return false
-})
-
-process.exit(args.reduce(function (pv, current) {
- try {
- var f = which.sync(current, { all: all })
- if (all)
- f = f.join('\n')
- if (!silent)
- console.log(f)
- return pv;
- } catch (e) {
- return 1;
- }
-}, 0))
diff --git a/node_modules/which/package.json b/node_modules/which/package.json
deleted file mode 100644
index 930b191..0000000
--- a/node_modules/which/package.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "_from": "which@^1.2.9",
- "_id": "which@1.3.1",
- "_inBundle": false,
- "_integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
- "_location": "/which",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "which@^1.2.9",
- "name": "which",
- "escapedName": "which",
- "rawSpec": "^1.2.9",
- "saveSpec": null,
- "fetchSpec": "^1.2.9"
- },
- "_requiredBy": [
- "/cross-spawn",
- "/node-gyp"
- ],
- "_resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
- "_shasum": "a45043d54f5805316da8d62f9f50918d3da70b0a",
- "_spec": "which@^1.2.9",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/cross-spawn",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me"
- },
- "bin": {
- "which": "./bin/which"
- },
- "bugs": {
- "url": "https://github.com/isaacs/node-which/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "isexe": "^2.0.0"
- },
- "deprecated": false,
- "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
- "devDependencies": {
- "mkdirp": "^0.5.0",
- "rimraf": "^2.6.2",
- "tap": "^12.0.1"
- },
- "files": [
- "which.js",
- "bin/which"
- ],
- "homepage": "https://github.com/isaacs/node-which#readme",
- "license": "ISC",
- "main": "which.js",
- "name": "which",
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/node-which.git"
- },
- "scripts": {
- "changelog": "bash gen-changelog.sh",
- "postversion": "npm run changelog && git add CHANGELOG.md && git commit -m 'update changelog - '${npm_package_version}",
- "test": "tap test/*.js --cov"
- },
- "version": "1.3.1"
-}
diff --git a/node_modules/which/which.js b/node_modules/which/which.js
deleted file mode 100644
index 4347f91..0000000
--- a/node_modules/which/which.js
+++ /dev/null
@@ -1,135 +0,0 @@
-module.exports = which
-which.sync = whichSync
-
-var isWindows = process.platform === 'win32' ||
- process.env.OSTYPE === 'cygwin' ||
- process.env.OSTYPE === 'msys'
-
-var path = require('path')
-var COLON = isWindows ? ';' : ':'
-var isexe = require('isexe')
-
-function getNotFoundError (cmd) {
- var er = new Error('not found: ' + cmd)
- er.code = 'ENOENT'
-
- return er
-}
-
-function getPathInfo (cmd, opt) {
- var colon = opt.colon || COLON
- var pathEnv = opt.path || process.env.PATH || ''
- var pathExt = ['']
-
- pathEnv = pathEnv.split(colon)
-
- var pathExtExe = ''
- if (isWindows) {
- pathEnv.unshift(process.cwd())
- pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
- pathExt = pathExtExe.split(colon)
-
-
- // Always test the cmd itself first. isexe will check to make sure
- // it's found in the pathExt set.
- if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
- pathExt.unshift('')
- }
-
- // If it has a slash, then we don't bother searching the pathenv.
- // just check the file itself, and that's it.
- if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
- pathEnv = ['']
-
- return {
- env: pathEnv,
- ext: pathExt,
- extExe: pathExtExe
- }
-}
-
-function which (cmd, opt, cb) {
- if (typeof opt === 'function') {
- cb = opt
- opt = {}
- }
-
- var info = getPathInfo(cmd, opt)
- var pathEnv = info.env
- var pathExt = info.ext
- var pathExtExe = info.extExe
- var found = []
-
- ;(function F (i, l) {
- if (i === l) {
- if (opt.all && found.length)
- return cb(null, found)
- else
- return cb(getNotFoundError(cmd))
- }
-
- var pathPart = pathEnv[i]
- if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
- pathPart = pathPart.slice(1, -1)
-
- var p = path.join(pathPart, cmd)
- if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
- p = cmd.slice(0, 2) + p
- }
- ;(function E (ii, ll) {
- if (ii === ll) return F(i + 1, l)
- var ext = pathExt[ii]
- isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
- if (!er && is) {
- if (opt.all)
- found.push(p + ext)
- else
- return cb(null, p + ext)
- }
- return E(ii + 1, ll)
- })
- })(0, pathExt.length)
- })(0, pathEnv.length)
-}
-
-function whichSync (cmd, opt) {
- opt = opt || {}
-
- var info = getPathInfo(cmd, opt)
- var pathEnv = info.env
- var pathExt = info.ext
- var pathExtExe = info.extExe
- var found = []
-
- for (var i = 0, l = pathEnv.length; i < l; i ++) {
- var pathPart = pathEnv[i]
- if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
- pathPart = pathPart.slice(1, -1)
-
- var p = path.join(pathPart, cmd)
- if (!pathPart && /^\.[\\\/]/.test(cmd)) {
- p = cmd.slice(0, 2) + p
- }
- for (var j = 0, ll = pathExt.length; j < ll; j ++) {
- var cur = p + pathExt[j]
- var is
- try {
- is = isexe.sync(cur, { pathExt: pathExtExe })
- if (is) {
- if (opt.all)
- found.push(cur)
- else
- return cur
- }
- } catch (ex) {}
- }
- }
-
- if (opt.all && found.length)
- return found
-
- if (opt.nothrow)
- return null
-
- throw getNotFoundError(cmd)
-}
diff --git a/node_modules/wide-align/LICENSE b/node_modules/wide-align/LICENSE
deleted file mode 100644
index f4be44d..0000000
--- a/node_modules/wide-align/LICENSE
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2015, Rebecca Turner <me@re-becca.org>
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
diff --git a/node_modules/wide-align/README.md b/node_modules/wide-align/README.md
deleted file mode 100644
index 32f1be0..0000000
--- a/node_modules/wide-align/README.md
+++ /dev/null
@@ -1,47 +0,0 @@
-wide-align
-----------
-
-A wide-character aware text alignment function for use in terminals / on the
-console.
-
-### Usage
-
-```
-var align = require('wide-align')
-
-// Note that if you view this on a unicode console, all of the slashes are
-// aligned. This is because on a console, all narrow characters are
-// an en wide and all wide characters are an em. In browsers, this isn't
-// held to and wide characters like "古" can be less than two narrow
-// characters even with a fixed width font.
-
-console.log(align.center('abc', 10)) // ' abc '
-console.log(align.center('古古古', 10)) // ' 古古古 '
-console.log(align.left('abc', 10)) // 'abc '
-console.log(align.left('古古古', 10)) // '古古古 '
-console.log(align.right('abc', 10)) // ' abc'
-console.log(align.right('古古古', 10)) // ' 古古古'
-```
-
-### Functions
-
-#### `align.center(str, length)` → `str`
-
-Returns *str* with spaces added to both sides such that that it is *length*
-chars long and centered in the spaces.
-
-#### `align.left(str, length)` → `str`
-
-Returns *str* with spaces to the right such that it is *length* chars long.
-
-### `align.right(str, length)` → `str`
-
-Returns *str* with spaces to the left such that it is *length* chars long.
-
-### Origins
-
-These functions were originally taken from
-[cliui](https://npmjs.com/package/cliui). Changes include switching to the
-MUCH faster pad generation function from
-[lodash](https://npmjs.com/package/lodash), making center alignment pad
-both sides and adding left alignment.
diff --git a/node_modules/wide-align/align.js b/node_modules/wide-align/align.js
deleted file mode 100644
index 4f94ca4..0000000
--- a/node_modules/wide-align/align.js
+++ /dev/null
@@ -1,65 +0,0 @@
-'use strict'
-var stringWidth = require('string-width')
-
-exports.center = alignCenter
-exports.left = alignLeft
-exports.right = alignRight
-
-// lodash's way of generating pad characters.
-
-function createPadding (width) {
- var result = ''
- var string = ' '
- var n = width
- do {
- if (n % 2) {
- result += string;
- }
- n = Math.floor(n / 2);
- string += string;
- } while (n);
-
- return result;
-}
-
-function alignLeft (str, width) {
- var trimmed = str.trimRight()
- if (trimmed.length === 0 && str.length >= width) return str
- var padding = ''
- var strWidth = stringWidth(trimmed)
-
- if (strWidth < width) {
- padding = createPadding(width - strWidth)
- }
-
- return trimmed + padding
-}
-
-function alignRight (str, width) {
- var trimmed = str.trimLeft()
- if (trimmed.length === 0 && str.length >= width) return str
- var padding = ''
- var strWidth = stringWidth(trimmed)
-
- if (strWidth < width) {
- padding = createPadding(width - strWidth)
- }
-
- return padding + trimmed
-}
-
-function alignCenter (str, width) {
- var trimmed = str.trim()
- if (trimmed.length === 0 && str.length >= width) return str
- var padLeft = ''
- var padRight = ''
- var strWidth = stringWidth(trimmed)
-
- if (strWidth < width) {
- var padLeftBy = parseInt((width - strWidth) / 2, 10)
- padLeft = createPadding(padLeftBy)
- padRight = createPadding(width - (strWidth + padLeftBy))
- }
-
- return padLeft + trimmed + padRight
-}
diff --git a/node_modules/wide-align/package.json b/node_modules/wide-align/package.json
deleted file mode 100644
index 7cdd2ac..0000000
--- a/node_modules/wide-align/package.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "_from": "wide-align@^1.1.0",
- "_id": "wide-align@1.1.3",
- "_inBundle": false,
- "_integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
- "_location": "/wide-align",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "wide-align@^1.1.0",
- "name": "wide-align",
- "escapedName": "wide-align",
- "rawSpec": "^1.1.0",
- "saveSpec": null,
- "fetchSpec": "^1.1.0"
- },
- "_requiredBy": [
- "/gauge"
- ],
- "_resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
- "_shasum": "ae074e6bdc0c14a431e804e624549c633b000457",
- "_spec": "wide-align@^1.1.0",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/gauge",
- "author": {
- "name": "Rebecca Turner",
- "email": "me@re-becca.org",
- "url": "http://re-becca.org/"
- },
- "bugs": {
- "url": "https://github.com/iarna/wide-align/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "string-width": "^1.0.2 || 2"
- },
- "deprecated": false,
- "description": "A wide-character aware text alignment function for use on the console or with fixed width fonts.",
- "devDependencies": {
- "tap": "10 || 11 || 12"
- },
- "files": [
- "align.js"
- ],
- "homepage": "https://github.com/iarna/wide-align#readme",
- "keywords": [
- "wide",
- "double",
- "unicode",
- "cjkv",
- "pad",
- "align"
- ],
- "license": "ISC",
- "main": "align.js",
- "name": "wide-align",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/iarna/wide-align.git"
- },
- "scripts": {
- "test": "tap --coverage test/*.js",
- "version": "perl -pi -e 's/^( \"version\": $ENV{npm_config_node_version}\").*?\",/$1abc\",/' package-lock.json ; git add package-lock.json"
- },
- "version": "1.1.3"
-}
diff --git a/node_modules/wrap-ansi/index.js b/node_modules/wrap-ansi/index.js
deleted file mode 100755
index 5038bb0..0000000
--- a/node_modules/wrap-ansi/index.js
+++ /dev/null
@@ -1,188 +0,0 @@
-'use strict';
-const stringWidth = require('string-width');
-const stripAnsi = require('strip-ansi');
-const ansiStyles = require('ansi-styles');
-
-const ESCAPES = new Set([
- '\u001B',
- '\u009B'
-]);
-
-const END_CODE = 39;
-
-const wrapAnsi = code => `${ESCAPES.values().next().value}[${code}m`;
-
-// Calculate the length of words split on ' ', ignoring
-// the extra characters added by ansi escape codes
-const wordLengths = string => string.split(' ').map(character => stringWidth(character));
-
-// Wrap a long word across multiple rows
-// Ansi escape codes do not count towards length
-const wrapWord = (rows, word, columns) => {
- const characters = [...word];
-
- let insideEscape = false;
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
-
- for (const [index, character] of characters.entries()) {
- const characterLength = stringWidth(character);
-
- if (visible + characterLength <= columns) {
- rows[rows.length - 1] += character;
- } else {
- rows.push(character);
- visible = 0;
- }
-
- if (ESCAPES.has(character)) {
- insideEscape = true;
- } else if (insideEscape && character === 'm') {
- insideEscape = false;
- continue;
- }
-
- if (insideEscape) {
- continue;
- }
-
- visible += characterLength;
-
- if (visible === columns && index < characters.length - 1) {
- rows.push('');
- visible = 0;
- }
- }
-
- // It's possible that the last row we copy over is only
- // ansi escape characters, handle this edge-case
- if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
- rows[rows.length - 2] += rows.pop();
- }
-};
-
-// Trims spaces from a string ignoring invisible sequences
-const stringVisibleTrimSpacesRight = str => {
- const words = str.split(' ');
- let last = words.length;
-
- while (last > 0) {
- if (stringWidth(words[last - 1]) > 0) {
- break;
- }
-
- last--;
- }
-
- if (last === words.length) {
- return str;
- }
-
- return words.slice(0, last).join(' ') + words.slice(last).join('');
-};
-
-// The wrap-ansi module can be invoked
-// in either 'hard' or 'soft' wrap mode
-//
-// 'hard' will never allow a string to take up more
-// than columns characters
-//
-// 'soft' allows long words to expand past the column length
-const exec = (string, columns, options = {}) => {
- if (options.trim !== false && string.trim() === '') {
- return '';
- }
-
- let pre = '';
- let ret = '';
- let escapeCode;
-
- const lengths = wordLengths(string);
- let rows = [''];
-
- for (const [index, word] of string.split(' ').entries()) {
- if (options.trim !== false) {
- rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
- }
-
- let rowLength = stringWidth(rows[rows.length - 1]);
-
- if (index !== 0) {
- if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
- // If we start with a new word but the current row length equals the length of the columns, add a new row
- rows.push('');
- rowLength = 0;
- }
-
- if (rowLength > 0 || options.trim === false) {
- rows[rows.length - 1] += ' ';
- rowLength++;
- }
- }
-
- // In 'hard' wrap mode, the length of a line is
- // never allowed to extend past 'columns'
- if (options.hard && lengths[index] > columns) {
- const remainingColumns = (columns - rowLength);
- const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns);
- const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns);
- if (breaksStartingNextLine < breaksStartingThisLine) {
- rows.push('');
- }
-
- wrapWord(rows, word, columns);
- continue;
- }
-
- if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) {
- if (options.wordWrap === false && rowLength < columns) {
- wrapWord(rows, word, columns);
- continue;
- }
-
- rows.push('');
- }
-
- if (rowLength + lengths[index] > columns && options.wordWrap === false) {
- wrapWord(rows, word, columns);
- continue;
- }
-
- rows[rows.length - 1] += word;
- }
-
- if (options.trim !== false) {
- rows = rows.map(stringVisibleTrimSpacesRight);
- }
-
- pre = rows.join('\n');
-
- for (const [index, character] of [...pre].entries()) {
- ret += character;
-
- if (ESCAPES.has(character)) {
- const code = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
- escapeCode = code === END_CODE ? null : code;
- }
-
- const code = ansiStyles.codes.get(Number(escapeCode));
-
- if (escapeCode && code) {
- if (pre[index + 1] === '\n') {
- ret += wrapAnsi(code);
- } else if (character === '\n') {
- ret += wrapAnsi(escapeCode);
- }
- }
- }
-
- return ret;
-};
-
-// For each newline, invoke the method separately
-module.exports = (string, columns, options) => {
- return String(string)
- .normalize()
- .split('\n')
- .map(line => exec(line, columns, options))
- .join('\n');
-};
diff --git a/node_modules/wrap-ansi/license b/node_modules/wrap-ansi/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/wrap-ansi/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/wrap-ansi/node_modules/ansi-regex/index.js b/node_modules/wrap-ansi/node_modules/ansi-regex/index.js
deleted file mode 100644
index c254480..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-regex/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = options => {
- options = Object.assign({
- onlyFirst: false
- }, options);
-
- const pattern = [
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
- ].join('|');
-
- return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
-};
diff --git a/node_modules/wrap-ansi/node_modules/ansi-regex/license b/node_modules/wrap-ansi/node_modules/ansi-regex/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-regex/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/wrap-ansi/node_modules/ansi-regex/package.json b/node_modules/wrap-ansi/node_modules/ansi-regex/package.json
deleted file mode 100644
index edd03e8..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-regex/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "_from": "ansi-regex@^4.1.0",
- "_id": "ansi-regex@4.1.0",
- "_inBundle": false,
- "_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
- "_location": "/wrap-ansi/ansi-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ansi-regex@^4.1.0",
- "name": "ansi-regex",
- "escapedName": "ansi-regex",
- "rawSpec": "^4.1.0",
- "saveSpec": null,
- "fetchSpec": "^4.1.0"
- },
- "_requiredBy": [
- "/wrap-ansi/strip-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "_shasum": "8b9f8f08cf1acb843756a839ca8c7e3168c51997",
- "_spec": "ansi-regex@^4.1.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/wrap-ansi/node_modules/strip-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-regex/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Regular expression for matching ANSI escape codes",
- "devDependencies": {
- "ava": "^0.25.0",
- "xo": "^0.23.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/ansi-regex#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "command-line",
- "text",
- "regex",
- "regexp",
- "re",
- "match",
- "test",
- "find",
- "pattern"
- ],
- "license": "MIT",
- "name": "ansi-regex",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-regex.git"
- },
- "scripts": {
- "test": "xo && ava",
- "view-supported": "node fixtures/view-codes.js"
- },
- "version": "4.1.0"
-}
diff --git a/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md b/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md
deleted file mode 100644
index d19c446..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)
-
-> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-
-## Install
-
-```
-$ npm install ansi-regex
-```
-
-
-## Usage
-
-```js
-const ansiRegex = require('ansi-regex');
-
-ansiRegex().test('\u001B[4mcake\u001B[0m');
-//=> true
-
-ansiRegex().test('cake');
-//=> false
-
-'\u001B[4mcake\u001B[0m'.match(ansiRegex());
-//=> ['\u001B[4m', '\u001B[0m']
-
-'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
-//=> ['\u001B[4m']
-
-'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
-//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
-```
-
-
-## API
-
-### ansiRegex([options])
-
-Returns a regex for matching ANSI escape codes.
-
-#### options
-
-##### onlyFirst
-
-Type: `boolean`<br>
-Default: `false` *(Matches any ANSI escape codes in a string)*
-
-Match only the first ANSI escape.
-
-
-## FAQ
-
-### Why do you test for codes not in the ECMA 48 standard?
-
-Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
-
-On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-
-
-## License
-
-MIT
diff --git a/node_modules/wrap-ansi/node_modules/ansi-styles/index.js b/node_modules/wrap-ansi/node_modules/ansi-styles/index.js
deleted file mode 100644
index 90a871c..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-styles/index.js
+++ /dev/null
@@ -1,165 +0,0 @@
-'use strict';
-const colorConvert = require('color-convert');
-
-const wrapAnsi16 = (fn, offset) => function () {
- const code = fn.apply(colorConvert, arguments);
- return `\u001B[${code + offset}m`;
-};
-
-const wrapAnsi256 = (fn, offset) => function () {
- const code = fn.apply(colorConvert, arguments);
- return `\u001B[${38 + offset};5;${code}m`;
-};
-
-const wrapAnsi16m = (fn, offset) => function () {
- const rgb = fn.apply(colorConvert, arguments);
- return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
-};
-
-function assembleStyles() {
- const codes = new Map();
- const styles = {
- modifier: {
- reset: [0, 0],
- // 21 isn't widely supported and 22 does the same thing
- bold: [1, 22],
- dim: [2, 22],
- italic: [3, 23],
- underline: [4, 24],
- inverse: [7, 27],
- hidden: [8, 28],
- strikethrough: [9, 29]
- },
- color: {
- black: [30, 39],
- red: [31, 39],
- green: [32, 39],
- yellow: [33, 39],
- blue: [34, 39],
- magenta: [35, 39],
- cyan: [36, 39],
- white: [37, 39],
- gray: [90, 39],
-
- // Bright color
- redBright: [91, 39],
- greenBright: [92, 39],
- yellowBright: [93, 39],
- blueBright: [94, 39],
- magentaBright: [95, 39],
- cyanBright: [96, 39],
- whiteBright: [97, 39]
- },
- bgColor: {
- bgBlack: [40, 49],
- bgRed: [41, 49],
- bgGreen: [42, 49],
- bgYellow: [43, 49],
- bgBlue: [44, 49],
- bgMagenta: [45, 49],
- bgCyan: [46, 49],
- bgWhite: [47, 49],
-
- // Bright color
- bgBlackBright: [100, 49],
- bgRedBright: [101, 49],
- bgGreenBright: [102, 49],
- bgYellowBright: [103, 49],
- bgBlueBright: [104, 49],
- bgMagentaBright: [105, 49],
- bgCyanBright: [106, 49],
- bgWhiteBright: [107, 49]
- }
- };
-
- // Fix humans
- styles.color.grey = styles.color.gray;
-
- for (const groupName of Object.keys(styles)) {
- const group = styles[groupName];
-
- for (const styleName of Object.keys(group)) {
- const style = group[styleName];
-
- styles[styleName] = {
- open: `\u001B[${style[0]}m`,
- close: `\u001B[${style[1]}m`
- };
-
- group[styleName] = styles[styleName];
-
- codes.set(style[0], style[1]);
- }
-
- Object.defineProperty(styles, groupName, {
- value: group,
- enumerable: false
- });
-
- Object.defineProperty(styles, 'codes', {
- value: codes,
- enumerable: false
- });
- }
-
- const ansi2ansi = n => n;
- const rgb2rgb = (r, g, b) => [r, g, b];
-
- styles.color.close = '\u001B[39m';
- styles.bgColor.close = '\u001B[49m';
-
- styles.color.ansi = {
- ansi: wrapAnsi16(ansi2ansi, 0)
- };
- styles.color.ansi256 = {
- ansi256: wrapAnsi256(ansi2ansi, 0)
- };
- styles.color.ansi16m = {
- rgb: wrapAnsi16m(rgb2rgb, 0)
- };
-
- styles.bgColor.ansi = {
- ansi: wrapAnsi16(ansi2ansi, 10)
- };
- styles.bgColor.ansi256 = {
- ansi256: wrapAnsi256(ansi2ansi, 10)
- };
- styles.bgColor.ansi16m = {
- rgb: wrapAnsi16m(rgb2rgb, 10)
- };
-
- for (let key of Object.keys(colorConvert)) {
- if (typeof colorConvert[key] !== 'object') {
- continue;
- }
-
- const suite = colorConvert[key];
-
- if (key === 'ansi16') {
- key = 'ansi';
- }
-
- if ('ansi16' in suite) {
- styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
- styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
- }
-
- if ('ansi256' in suite) {
- styles.color.ansi256[key] = wrapAnsi256(suite.ansi256, 0);
- styles.bgColor.ansi256[key] = wrapAnsi256(suite.ansi256, 10);
- }
-
- if ('rgb' in suite) {
- styles.color.ansi16m[key] = wrapAnsi16m(suite.rgb, 0);
- styles.bgColor.ansi16m[key] = wrapAnsi16m(suite.rgb, 10);
- }
- }
-
- return styles;
-}
-
-// Make the export immutable
-Object.defineProperty(module, 'exports', {
- enumerable: true,
- get: assembleStyles
-});
diff --git a/node_modules/wrap-ansi/node_modules/ansi-styles/license b/node_modules/wrap-ansi/node_modules/ansi-styles/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-styles/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/wrap-ansi/node_modules/ansi-styles/package.json b/node_modules/wrap-ansi/node_modules/ansi-styles/package.json
deleted file mode 100644
index 22d3f09..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-styles/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "ansi-styles@^3.2.0",
- "_id": "ansi-styles@3.2.1",
- "_inBundle": false,
- "_integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
- "_location": "/wrap-ansi/ansi-styles",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ansi-styles@^3.2.0",
- "name": "ansi-styles",
- "escapedName": "ansi-styles",
- "rawSpec": "^3.2.0",
- "saveSpec": null,
- "fetchSpec": "^3.2.0"
- },
- "_requiredBy": [
- "/wrap-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "_shasum": "41fbb20243e50b12be0f04b8dedbf07520ce841d",
- "_spec": "ansi-styles@^3.2.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/wrap-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "ava": {
- "require": "babel-polyfill"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-styles/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "color-convert": "^1.9.0"
- },
- "deprecated": false,
- "description": "ANSI escape codes for styling strings in the terminal",
- "devDependencies": {
- "ava": "*",
- "babel-polyfill": "^6.23.0",
- "svg-term-cli": "^2.1.1",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/ansi-styles#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "name": "ansi-styles",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-styles.git"
- },
- "scripts": {
- "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor",
- "test": "xo && ava"
- },
- "version": "3.2.1"
-}
diff --git a/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md b/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md
deleted file mode 100644
index 3158e2d..0000000
--- a/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md
+++ /dev/null
@@ -1,147 +0,0 @@
-# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles)
-
-> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal
-
-You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
-
-<img src="https://cdn.rawgit.com/chalk/ansi-styles/8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900">
-
-
-## Install
-
-```
-$ npm install ansi-styles
-```
-
-
-## Usage
-
-```js
-const style = require('ansi-styles');
-
-console.log(`${style.green.open}Hello world!${style.green.close}`);
-
-
-// Color conversion between 16/256/truecolor
-// NOTE: If conversion goes to 16 colors or 256 colors, the original color
-// may be degraded to fit that color palette. This means terminals
-// that do not support 16 million colors will best-match the
-// original color.
-console.log(style.bgColor.ansi.hsl(120, 80, 72) + 'Hello world!' + style.bgColor.close);
-console.log(style.color.ansi256.rgb(199, 20, 250) + 'Hello world!' + style.color.close);
-console.log(style.color.ansi16m.hex('#ABCDEF') + 'Hello world!' + style.color.close);
-```
-
-## API
-
-Each style has an `open` and `close` property.
-
-
-## Styles
-
-### Modifiers
-
-- `reset`
-- `bold`
-- `dim`
-- `italic` *(Not widely supported)*
-- `underline`
-- `inverse`
-- `hidden`
-- `strikethrough` *(Not widely supported)*
-
-### Colors
-
-- `black`
-- `red`
-- `green`
-- `yellow`
-- `blue`
-- `magenta`
-- `cyan`
-- `white`
-- `gray` ("bright black")
-- `redBright`
-- `greenBright`
-- `yellowBright`
-- `blueBright`
-- `magentaBright`
-- `cyanBright`
-- `whiteBright`
-
-### Background colors
-
-- `bgBlack`
-- `bgRed`
-- `bgGreen`
-- `bgYellow`
-- `bgBlue`
-- `bgMagenta`
-- `bgCyan`
-- `bgWhite`
-- `bgBlackBright`
-- `bgRedBright`
-- `bgGreenBright`
-- `bgYellowBright`
-- `bgBlueBright`
-- `bgMagentaBright`
-- `bgCyanBright`
-- `bgWhiteBright`
-
-
-## Advanced usage
-
-By default, you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module.
-
-- `style.modifier`
-- `style.color`
-- `style.bgColor`
-
-###### Example
-
-```js
-console.log(style.color.green.open);
-```
-
-Raw escape codes (i.e. without the CSI escape prefix `\u001B[` and render mode postfix `m`) are available under `style.codes`, which returns a `Map` with the open codes as keys and close codes as values.
-
-###### Example
-
-```js
-console.log(style.codes.get(36));
-//=> 39
-```
-
-
-## [256 / 16 million (TrueColor) support](https://gist.github.com/XVilka/8346728)
-
-`ansi-styles` uses the [`color-convert`](https://github.com/Qix-/color-convert) package to allow for converting between various colors and ANSI escapes, with support for 256 and 16 million colors.
-
-To use these, call the associated conversion function with the intended output, for example:
-
-```js
-style.color.ansi.rgb(100, 200, 15); // RGB to 16 color ansi foreground code
-style.bgColor.ansi.rgb(100, 200, 15); // RGB to 16 color ansi background code
-
-style.color.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
-style.bgColor.ansi256.hsl(120, 100, 60); // HSL to 256 color ansi foreground code
-
-style.color.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color foreground code
-style.bgColor.ansi16m.hex('#C0FFEE'); // Hex (RGB) to 16 million color background code
-```
-
-
-## Related
-
-- [ansi-escapes](https://github.com/sindresorhus/ansi-escapes) - ANSI escape codes for manipulating the terminal
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-
-
-## License
-
-MIT
diff --git a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js b/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js
deleted file mode 100644
index d506327..0000000
--- a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-/* eslint-disable yoda */
-module.exports = x => {
- if (Number.isNaN(x)) {
- return false;
- }
-
- // code points are derived from:
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
- if (
- x >= 0x1100 && (
- x <= 0x115f || // Hangul Jamo
- x === 0x2329 || // LEFT-POINTING ANGLE BRACKET
- x === 0x232a || // RIGHT-POINTING ANGLE BRACKET
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
- (0x2e80 <= x && x <= 0x3247 && x !== 0x303f) ||
- // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
- (0x3250 <= x && x <= 0x4dbf) ||
- // CJK Unified Ideographs .. Yi Radicals
- (0x4e00 <= x && x <= 0xa4c6) ||
- // Hangul Jamo Extended-A
- (0xa960 <= x && x <= 0xa97c) ||
- // Hangul Syllables
- (0xac00 <= x && x <= 0xd7a3) ||
- // CJK Compatibility Ideographs
- (0xf900 <= x && x <= 0xfaff) ||
- // Vertical Forms
- (0xfe10 <= x && x <= 0xfe19) ||
- // CJK Compatibility Forms .. Small Form Variants
- (0xfe30 <= x && x <= 0xfe6b) ||
- // Halfwidth and Fullwidth Forms
- (0xff01 <= x && x <= 0xff60) ||
- (0xffe0 <= x && x <= 0xffe6) ||
- // Kana Supplement
- (0x1b000 <= x && x <= 0x1b001) ||
- // Enclosed Ideographic Supplement
- (0x1f200 <= x && x <= 0x1f251) ||
- // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
- (0x20000 <= x && x <= 0x3fffd)
- )
- ) {
- return true;
- }
-
- return false;
-};
diff --git a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license b/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json b/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json
deleted file mode 100644
index 97a3169..0000000
--- a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "is-fullwidth-code-point@^2.0.0",
- "_id": "is-fullwidth-code-point@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "_location": "/wrap-ansi/is-fullwidth-code-point",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-fullwidth-code-point@^2.0.0",
- "name": "is-fullwidth-code-point",
- "escapedName": "is-fullwidth-code-point",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/wrap-ansi/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "_shasum": "a3b30a5c4f199183167aaab93beefae3ddfb654f",
- "_spec": "is-fullwidth-code-point@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/wrap-ansi/node_modules/string-width",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/is-fullwidth-code-point/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/is-fullwidth-code-point#readme",
- "keywords": [
- "fullwidth",
- "full-width",
- "full",
- "width",
- "unicode",
- "character",
- "char",
- "string",
- "str",
- "codepoint",
- "code",
- "point",
- "is",
- "detect",
- "check"
- ],
- "license": "MIT",
- "name": "is-fullwidth-code-point",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/is-fullwidth-code-point.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "2.0.0",
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md b/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md
deleted file mode 100644
index 093b028..0000000
--- a/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
-
-> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
-
-
-## Install
-
-```
-$ npm install --save is-fullwidth-code-point
-```
-
-
-## Usage
-
-```js
-const isFullwidthCodePoint = require('is-fullwidth-code-point');
-
-isFullwidthCodePoint('谢'.codePointAt());
-//=> true
-
-isFullwidthCodePoint('a'.codePointAt());
-//=> false
-```
-
-
-## API
-
-### isFullwidthCodePoint(input)
-
-#### input
-
-Type: `number`
-
-[Code point](https://en.wikipedia.org/wiki/Code_point) of a character.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/wrap-ansi/node_modules/string-width/index.js b/node_modules/wrap-ansi/node_modules/string-width/index.js
deleted file mode 100644
index 33c9d6c..0000000
--- a/node_modules/wrap-ansi/node_modules/string-width/index.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-const stripAnsi = require('strip-ansi');
-const isFullwidthCodePoint = require('is-fullwidth-code-point');
-const emojiRegex = require('emoji-regex')();
-
-module.exports = input => {
- input = input.replace(emojiRegex, ' ');
-
- if (typeof input !== 'string' || input.length === 0) {
- return 0;
- }
-
- input = stripAnsi(input);
-
- let width = 0;
-
- for (let i = 0; i < input.length; i++) {
- const code = input.codePointAt(i);
-
- // Ignore control characters
- if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
- continue;
- }
-
- // Ignore combining characters
- if (code >= 0x300 && code <= 0x36F) {
- continue;
- }
-
- // Surrogates
- if (code > 0xFFFF) {
- i++;
- }
-
- width += isFullwidthCodePoint(code) ? 2 : 1;
- }
-
- return width;
-};
diff --git a/node_modules/wrap-ansi/node_modules/string-width/license b/node_modules/wrap-ansi/node_modules/string-width/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/wrap-ansi/node_modules/string-width/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/wrap-ansi/node_modules/string-width/package.json b/node_modules/wrap-ansi/node_modules/string-width/package.json
deleted file mode 100644
index 01ed86a..0000000
--- a/node_modules/wrap-ansi/node_modules/string-width/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "string-width@^3.0.0",
- "_id": "string-width@3.1.0",
- "_inBundle": false,
- "_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "_location": "/wrap-ansi/string-width",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "string-width@^3.0.0",
- "name": "string-width",
- "escapedName": "string-width",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/wrap-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "_shasum": "22767be21b62af1081574306f69ac51b62203961",
- "_spec": "string-width@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/wrap-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/string-width/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- },
- "deprecated": false,
- "description": "Get the visual width of a string - the number of columns required to display it",
- "devDependencies": {
- "ava": "^1.0.1",
- "xo": "^0.23.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/string-width#readme",
- "keywords": [
- "string",
- "str",
- "character",
- "char",
- "unicode",
- "width",
- "visual",
- "column",
- "columns",
- "fullwidth",
- "full-width",
- "full",
- "ansi",
- "escape",
- "codes",
- "cli",
- "command-line",
- "terminal",
- "console",
- "cjk",
- "chinese",
- "japanese",
- "korean",
- "fixed-width"
- ],
- "license": "MIT",
- "name": "string-width",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/string-width.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.1.0"
-}
diff --git a/node_modules/wrap-ansi/node_modules/string-width/readme.md b/node_modules/wrap-ansi/node_modules/string-width/readme.md
deleted file mode 100644
index d39d95f..0000000
--- a/node_modules/wrap-ansi/node_modules/string-width/readme.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width)
-
-> Get the visual width of a string - the number of columns required to display it
-
-Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
-
-Useful to be able to measure the actual width of command-line output.
-
-
-## Install
-
-```
-$ npm install string-width
-```
-
-
-## Usage
-
-```js
-const stringWidth = require('string-width');
-
-stringWidth('古');
-//=> 2
-
-stringWidth('\u001b[1m古\u001b[22m');
-//=> 2
-
-stringWidth('a');
-//=> 1
-
-stringWidth('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-// => 5
-```
-
-
-## Related
-
-- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module
-- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string
-- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts b/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts
deleted file mode 100644
index 44e954d..0000000
--- a/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
-Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
-
-@example
-```
-import stripAnsi from 'strip-ansi';
-
-stripAnsi('\u001B[4mUnicorn\u001B[0m');
-//=> 'Unicorn'
-
-stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-//=> 'Click'
-```
-*/
-export default function stripAnsi(string: string): string;
diff --git a/node_modules/wrap-ansi/node_modules/strip-ansi/index.js b/node_modules/wrap-ansi/node_modules/strip-ansi/index.js
deleted file mode 100644
index 9788c96..0000000
--- a/node_modules/wrap-ansi/node_modules/strip-ansi/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-const ansiRegex = require('ansi-regex');
-
-const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
-
-module.exports = stripAnsi;
-module.exports.default = stripAnsi;
diff --git a/node_modules/wrap-ansi/node_modules/strip-ansi/license b/node_modules/wrap-ansi/node_modules/strip-ansi/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/wrap-ansi/node_modules/strip-ansi/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/wrap-ansi/node_modules/strip-ansi/package.json b/node_modules/wrap-ansi/node_modules/strip-ansi/package.json
deleted file mode 100644
index d52386c..0000000
--- a/node_modules/wrap-ansi/node_modules/strip-ansi/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_from": "strip-ansi@^5.0.0",
- "_id": "strip-ansi@5.2.0",
- "_inBundle": false,
- "_integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "_location": "/wrap-ansi/strip-ansi",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "strip-ansi@^5.0.0",
- "name": "strip-ansi",
- "escapedName": "strip-ansi",
- "rawSpec": "^5.0.0",
- "saveSpec": null,
- "fetchSpec": "^5.0.0"
- },
- "_requiredBy": [
- "/wrap-ansi",
- "/wrap-ansi/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "_shasum": "8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae",
- "_spec": "strip-ansi@^5.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/wrap-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/strip-ansi/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ansi-regex": "^4.1.0"
- },
- "deprecated": false,
- "description": "Strip ANSI escape codes from a string",
- "devDependencies": {
- "ava": "^1.3.1",
- "tsd-check": "^0.5.0",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "homepage": "https://github.com/chalk/strip-ansi#readme",
- "keywords": [
- "strip",
- "trim",
- "remove",
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "name": "strip-ansi",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/strip-ansi.git"
- },
- "scripts": {
- "test": "xo && ava && tsd-check"
- },
- "version": "5.2.0"
-}
diff --git a/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md b/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md
deleted file mode 100644
index 8681fe8..0000000
--- a/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
-
-> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for 'strip-ansi' with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-## Install
-
-```
-$ npm install strip-ansi
-```
-
-
-## Usage
-
-```js
-const stripAnsi = require('strip-ansi');
-
-stripAnsi('\u001B[4mUnicorn\u001B[0m');
-//=> 'Unicorn'
-
-stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-//=> 'Click'
-```
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## Related
-
-- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
-- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
-- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
-- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
-- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-
-
-## License
-
-MIT
diff --git a/node_modules/wrap-ansi/package.json b/node_modules/wrap-ansi/package.json
deleted file mode 100644
index b7a5630..0000000
--- a/node_modules/wrap-ansi/package.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "_from": "wrap-ansi@^5.1.0",
- "_id": "wrap-ansi@5.1.0",
- "_inBundle": false,
- "_integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==",
- "_location": "/wrap-ansi",
- "_phantomChildren": {
- "color-convert": "1.9.3",
- "emoji-regex": "7.0.3"
- },
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "wrap-ansi@^5.1.0",
- "name": "wrap-ansi",
- "escapedName": "wrap-ansi",
- "rawSpec": "^5.1.0",
- "saveSpec": null,
- "fetchSpec": "^5.1.0"
- },
- "_requiredBy": [
- "/cliui"
- ],
- "_resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
- "_shasum": "1fd1f67235d5b6d0fee781056001bfb694c03b09",
- "_spec": "wrap-ansi@^5.1.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/cliui",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/wrap-ansi/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ansi-styles": "^3.2.0",
- "string-width": "^3.0.0",
- "strip-ansi": "^5.0.0"
- },
- "deprecated": false,
- "description": "Wordwrap a string with ANSI escape codes",
- "devDependencies": {
- "ava": "^1.2.1",
- "chalk": "^2.4.2",
- "coveralls": "^3.0.3",
- "has-ansi": "^3.0.0",
- "nyc": "^13.3.0",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/wrap-ansi#readme",
- "keywords": [
- "wrap",
- "break",
- "wordwrap",
- "wordbreak",
- "linewrap",
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "name": "wrap-ansi",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/wrap-ansi.git"
- },
- "scripts": {
- "test": "xo && nyc ava"
- },
- "version": "5.1.0"
-}
diff --git a/node_modules/wrap-ansi/readme.md b/node_modules/wrap-ansi/readme.md
deleted file mode 100644
index 73b87de..0000000
--- a/node_modules/wrap-ansi/readme.md
+++ /dev/null
@@ -1,108 +0,0 @@
-# wrap-ansi [![Build Status](https://travis-ci.org/chalk/wrap-ansi.svg?branch=master)](https://travis-ci.org/chalk/wrap-ansi) [![Coverage Status](https://coveralls.io/repos/github/chalk/wrap-ansi/badge.svg?branch=master)](https://coveralls.io/github/chalk/wrap-ansi?branch=master)
-
-> Wordwrap a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles)
-
-
-## Install
-
-```
-$ npm install wrap-ansi
-```
-
-
-## Usage
-
-```js
-const chalk = require('chalk');
-const wrapAnsi = require('wrap-ansi');
-
-const input = 'The quick brown ' + chalk.red('fox jumped over ') +
- 'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
-
-console.log(wrapAnsi(input, 20));
-```
-
-<img width="331" src="screenshot.png">
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-wrap_ansi?utm_source=npm-wrap-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-
-## API
-
-### wrapAnsi(input, columns, [options])
-
-Wrap words to the specified column width.
-
-#### input
-
-Type: `string`
-
-String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk).
-
-#### columns
-
-Type: `number`
-
-Number of columns to wrap the text to.
-
-#### options
-
-Type: `Object`
-
-##### hard
-
-Type: `boolean`<br>
-Default: `false`
-
-By default the wrap is soft, meaning long words may extend past the column width. Setting this to `true` will make it hard wrap at the column width.
-
-##### wordWrap
-
-Type: `boolean`<br>
-Default: `true`
-
-By default, an attempt is made to split words at spaces, ensuring that they don't extend past the configured columns. If wordWrap is `false`, each column will instead be completely filled splitting words as necessary.
-
-##### trim
-
-Type: `boolean`<br>
-Default: `true`
-
-Whitespace on all lines is removed by default. Set this option to `false` if you don't want to trim.
-
-
-## Related
-
-- [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes
-- [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal
-- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
-- [jsesc](https://github.com/mathiasbynens/jsesc) - Generate ASCII-only output from Unicode strings. Useful for creating test fixtures.
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-- [Benjamin Coe](https://github.com/bcoe)
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## License
-
-MIT
diff --git a/node_modules/wrappy/LICENSE b/node_modules/wrappy/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/wrappy/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/wrappy/README.md b/node_modules/wrappy/README.md
deleted file mode 100644
index 98eab25..0000000
--- a/node_modules/wrappy/README.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# wrappy
-
-Callback wrapping utility
-
-## USAGE
-
-```javascript
-var wrappy = require("wrappy")
-
-// var wrapper = wrappy(wrapperFunction)
-
-// make sure a cb is called only once
-// See also: http://npm.im/once for this specific use case
-var once = wrappy(function (cb) {
- var called = false
- return function () {
- if (called) return
- called = true
- return cb.apply(this, arguments)
- }
-})
-
-function printBoo () {
- console.log('boo')
-}
-// has some rando property
-printBoo.iAmBooPrinter = true
-
-var onlyPrintOnce = once(printBoo)
-
-onlyPrintOnce() // prints 'boo'
-onlyPrintOnce() // does nothing
-
-// random property is retained!
-assert.equal(onlyPrintOnce.iAmBooPrinter, true)
-```
diff --git a/node_modules/wrappy/package.json b/node_modules/wrappy/package.json
deleted file mode 100644
index a45df33..0000000
--- a/node_modules/wrappy/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_from": "wrappy@1",
- "_id": "wrappy@1.0.2",
- "_inBundle": false,
- "_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
- "_location": "/wrappy",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "wrappy@1",
- "name": "wrappy",
- "escapedName": "wrappy",
- "rawSpec": "1",
- "saveSpec": null,
- "fetchSpec": "1"
- },
- "_requiredBy": [
- "/inflight",
- "/once"
- ],
- "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f",
- "_spec": "wrappy@1",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/inflight",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/npm/wrappy/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Callback wrapping utility",
- "devDependencies": {
- "tap": "^2.3.1"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "wrappy.js"
- ],
- "homepage": "https://github.com/npm/wrappy",
- "license": "ISC",
- "main": "wrappy.js",
- "name": "wrappy",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/wrappy.git"
- },
- "scripts": {
- "test": "tap --coverage test/*.js"
- },
- "version": "1.0.2"
-}
diff --git a/node_modules/wrappy/wrappy.js b/node_modules/wrappy/wrappy.js
deleted file mode 100644
index bb7e7d6..0000000
--- a/node_modules/wrappy/wrappy.js
+++ /dev/null
@@ -1,33 +0,0 @@
-// Returns a wrapper function that returns a wrapped callback
-// The wrapper function should do some stuff, and return a
-// presumably different callback function.
-// This makes sure that own properties are retained, so that
-// decorations and such are not lost along the way.
-module.exports = wrappy
-function wrappy (fn, cb) {
- if (fn && cb) return wrappy(fn)(cb)
-
- if (typeof fn !== 'function')
- throw new TypeError('need wrapper function')
-
- Object.keys(fn).forEach(function (k) {
- wrapper[k] = fn[k]
- })
-
- return wrapper
-
- function wrapper() {
- var args = new Array(arguments.length)
- for (var i = 0; i < args.length; i++) {
- args[i] = arguments[i]
- }
- var ret = fn.apply(this, args)
- var cb = args[args.length-1]
- if (typeof ret === 'function' && ret !== cb) {
- Object.keys(cb).forEach(function (k) {
- ret[k] = cb[k]
- })
- }
- return ret
- }
-}
diff --git a/node_modules/y18n/CHANGELOG.md b/node_modules/y18n/CHANGELOG.md
deleted file mode 100644
index c259076..0000000
--- a/node_modules/y18n/CHANGELOG.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="4.0.0"></a>
-# [4.0.0](https://github.com/yargs/y18n/compare/v3.2.1...v4.0.0) (2017-10-10)
-
-
-### Bug Fixes
-
-* allow support for falsy values like 0 in tagged literal ([#45](https://github.com/yargs/y18n/issues/45)) ([c926123](https://github.com/yargs/y18n/commit/c926123))
-
-
-### Features
-
-* **__:** added tagged template literal support ([#44](https://github.com/yargs/y18n/issues/44)) ([0598daf](https://github.com/yargs/y18n/commit/0598daf))
-
-
-### BREAKING CHANGES
-
-* **__:** dropping Node 0.10/Node 0.12 support
diff --git a/node_modules/y18n/LICENSE b/node_modules/y18n/LICENSE
deleted file mode 100644
index 3c157f0..0000000
--- a/node_modules/y18n/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2015, Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any purpose
-with or without fee is hereby granted, provided that the above copyright notice
-and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
-OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
-TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
-THIS SOFTWARE.
diff --git a/node_modules/y18n/README.md b/node_modules/y18n/README.md
deleted file mode 100644
index 826474f..0000000
--- a/node_modules/y18n/README.md
+++ /dev/null
@@ -1,109 +0,0 @@
-# y18n
-
-[![Build Status][travis-image]][travis-url]
-[![Coverage Status][coveralls-image]][coveralls-url]
-[![NPM version][npm-image]][npm-url]
-[![js-standard-style][standard-image]][standard-url]
-[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
-
-The bare-bones internationalization library used by yargs.
-
-Inspired by [i18n](https://www.npmjs.com/package/i18n).
-
-## Examples
-
-_simple string translation:_
-
-```js
-var __ = require('y18n').__
-
-console.log(__('my awesome string %s', 'foo'))
-```
-
-output:
-
-`my awesome string foo`
-
-_using tagged template literals_
-
-```js
-var __ = require('y18n').__
-var str = 'foo'
-
-console.log(__`my awesome string ${str}`)
-```
-
-output:
-
-`my awesome string foo`
-
-_pluralization support:_
-
-```js
-var __n = require('y18n').__n
-
-console.log(__n('one fish %s', '%d fishes %s', 2, 'foo'))
-```
-
-output:
-
-`2 fishes foo`
-
-## JSON Language Files
-
-The JSON language files should be stored in a `./locales` folder.
-File names correspond to locales, e.g., `en.json`, `pirate.json`.
-
-When strings are observed for the first time they will be
-added to the JSON file corresponding to the current locale.
-
-## Methods
-
-### require('y18n')(config)
-
-Create an instance of y18n with the config provided, options include:
-
-* `directory`: the locale directory, default `./locales`.
-* `updateFiles`: should newly observed strings be updated in file, default `true`.
-* `locale`: what locale should be used.
-* `fallbackToLanguage`: should fallback to a language-only file (e.g. `en.json`)
- be allowed if a file matching the locale does not exist (e.g. `en_US.json`),
- default `true`.
-
-### y18n.\_\_(str, arg, arg, arg)
-
-Print a localized string, `%s` will be replaced with `arg`s.
-
-This function can also be used as a tag for a template literal. You can use it
-like this: <code>__&#96;hello ${'world'}&#96;</code>. This will be equivalent to
-`__('hello %s', 'world')`.
-
-### y18n.\_\_n(singularString, pluralString, count, arg, arg, arg)
-
-Print a localized string with appropriate pluralization. If `%d` is provided
-in the string, the `count` will replace this placeholder.
-
-### y18n.setLocale(str)
-
-Set the current locale being used.
-
-### y18n.getLocale()
-
-What locale is currently being used?
-
-### y18n.updateLocale(obj)
-
-Update the current locale with the key value pairs in `obj`.
-
-## License
-
-ISC
-
-[travis-url]: https://travis-ci.org/yargs/y18n
-[travis-image]: https://img.shields.io/travis/yargs/y18n.svg
-[coveralls-url]: https://coveralls.io/github/yargs/y18n
-[coveralls-image]: https://img.shields.io/coveralls/yargs/y18n.svg
-[npm-url]: https://npmjs.org/package/y18n
-[npm-image]: https://img.shields.io/npm/v/y18n.svg
-[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
-[standard-url]: https://github.com/feross/standard
diff --git a/node_modules/y18n/index.js b/node_modules/y18n/index.js
deleted file mode 100644
index d720681..0000000
--- a/node_modules/y18n/index.js
+++ /dev/null
@@ -1,188 +0,0 @@
-var fs = require('fs')
-var path = require('path')
-var util = require('util')
-
-function Y18N (opts) {
- // configurable options.
- opts = opts || {}
- this.directory = opts.directory || './locales'
- this.updateFiles = typeof opts.updateFiles === 'boolean' ? opts.updateFiles : true
- this.locale = opts.locale || 'en'
- this.fallbackToLanguage = typeof opts.fallbackToLanguage === 'boolean' ? opts.fallbackToLanguage : true
-
- // internal stuff.
- this.cache = {}
- this.writeQueue = []
-}
-
-Y18N.prototype.__ = function () {
- if (typeof arguments[0] !== 'string') {
- return this._taggedLiteral.apply(this, arguments)
- }
- var args = Array.prototype.slice.call(arguments)
- var str = args.shift()
- var cb = function () {} // start with noop.
-
- if (typeof args[args.length - 1] === 'function') cb = args.pop()
- cb = cb || function () {} // noop.
-
- if (!this.cache[this.locale]) this._readLocaleFile()
-
- // we've observed a new string, update the language file.
- if (!this.cache[this.locale][str] && this.updateFiles) {
- this.cache[this.locale][str] = str
-
- // include the current directory and locale,
- // since these values could change before the
- // write is performed.
- this._enqueueWrite([this.directory, this.locale, cb])
- } else {
- cb()
- }
-
- return util.format.apply(util, [this.cache[this.locale][str] || str].concat(args))
-}
-
-Y18N.prototype._taggedLiteral = function (parts) {
- var args = arguments
- var str = ''
- parts.forEach(function (part, i) {
- var arg = args[i + 1]
- str += part
- if (typeof arg !== 'undefined') {
- str += '%s'
- }
- })
- return this.__.apply(null, [str].concat([].slice.call(arguments, 1)))
-}
-
-Y18N.prototype._enqueueWrite = function (work) {
- this.writeQueue.push(work)
- if (this.writeQueue.length === 1) this._processWriteQueue()
-}
-
-Y18N.prototype._processWriteQueue = function () {
- var _this = this
- var work = this.writeQueue[0]
-
- // destructure the enqueued work.
- var directory = work[0]
- var locale = work[1]
- var cb = work[2]
-
- var languageFile = this._resolveLocaleFile(directory, locale)
- var serializedLocale = JSON.stringify(this.cache[locale], null, 2)
-
- fs.writeFile(languageFile, serializedLocale, 'utf-8', function (err) {
- _this.writeQueue.shift()
- if (_this.writeQueue.length > 0) _this._processWriteQueue()
- cb(err)
- })
-}
-
-Y18N.prototype._readLocaleFile = function () {
- var localeLookup = {}
- var languageFile = this._resolveLocaleFile(this.directory, this.locale)
-
- try {
- localeLookup = JSON.parse(fs.readFileSync(languageFile, 'utf-8'))
- } catch (err) {
- if (err instanceof SyntaxError) {
- err.message = 'syntax error in ' + languageFile
- }
-
- if (err.code === 'ENOENT') localeLookup = {}
- else throw err
- }
-
- this.cache[this.locale] = localeLookup
-}
-
-Y18N.prototype._resolveLocaleFile = function (directory, locale) {
- var file = path.resolve(directory, './', locale + '.json')
- if (this.fallbackToLanguage && !this._fileExistsSync(file) && ~locale.lastIndexOf('_')) {
- // attempt fallback to language only
- var languageFile = path.resolve(directory, './', locale.split('_')[0] + '.json')
- if (this._fileExistsSync(languageFile)) file = languageFile
- }
- return file
-}
-
-// this only exists because fs.existsSync() "will be deprecated"
-// see https://nodejs.org/api/fs.html#fs_fs_existssync_path
-Y18N.prototype._fileExistsSync = function (file) {
- try {
- return fs.statSync(file).isFile()
- } catch (err) {
- return false
- }
-}
-
-Y18N.prototype.__n = function () {
- var args = Array.prototype.slice.call(arguments)
- var singular = args.shift()
- var plural = args.shift()
- var quantity = args.shift()
-
- var cb = function () {} // start with noop.
- if (typeof args[args.length - 1] === 'function') cb = args.pop()
-
- if (!this.cache[this.locale]) this._readLocaleFile()
-
- var str = quantity === 1 ? singular : plural
- if (this.cache[this.locale][singular]) {
- str = this.cache[this.locale][singular][quantity === 1 ? 'one' : 'other']
- }
-
- // we've observed a new string, update the language file.
- if (!this.cache[this.locale][singular] && this.updateFiles) {
- this.cache[this.locale][singular] = {
- one: singular,
- other: plural
- }
-
- // include the current directory and locale,
- // since these values could change before the
- // write is performed.
- this._enqueueWrite([this.directory, this.locale, cb])
- } else {
- cb()
- }
-
- // if a %d placeholder is provided, add quantity
- // to the arguments expanded by util.format.
- var values = [str]
- if (~str.indexOf('%d')) values.push(quantity)
-
- return util.format.apply(util, values.concat(args))
-}
-
-Y18N.prototype.setLocale = function (locale) {
- this.locale = locale
-}
-
-Y18N.prototype.getLocale = function () {
- return this.locale
-}
-
-Y18N.prototype.updateLocale = function (obj) {
- if (!this.cache[this.locale]) this._readLocaleFile()
-
- for (var key in obj) {
- this.cache[this.locale][key] = obj[key]
- }
-}
-
-module.exports = function (opts) {
- var y18n = new Y18N(opts)
-
- // bind all functions to y18n, so that
- // they can be used in isolation.
- for (var key in y18n) {
- if (typeof y18n[key] === 'function') {
- y18n[key] = y18n[key].bind(y18n)
- }
- }
-
- return y18n
-}
diff --git a/node_modules/y18n/package.json b/node_modules/y18n/package.json
deleted file mode 100644
index c6c4814..0000000
--- a/node_modules/y18n/package.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "_from": "y18n@^4.0.0",
- "_id": "y18n@4.0.0",
- "_inBundle": false,
- "_integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
- "_location": "/y18n",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "y18n@^4.0.0",
- "name": "y18n",
- "escapedName": "y18n",
- "rawSpec": "^4.0.0",
- "saveSpec": null,
- "fetchSpec": "^4.0.0"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
- "_shasum": "95ef94f85ecc81d007c264e190a120f0a3c8566b",
- "_spec": "y18n@^4.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "Ben Coe",
- "email": "ben@npmjs.com"
- },
- "bugs": {
- "url": "https://github.com/yargs/y18n/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "the bare-bones internationalization library used by yargs",
- "devDependencies": {
- "chai": "^4.0.1",
- "coveralls": "^3.0.0",
- "mocha": "^4.0.1",
- "nyc": "^11.0.1",
- "rimraf": "^2.5.0",
- "standard": "^10.0.0-beta.0",
- "standard-version": "^4.2.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/yargs/y18n",
- "keywords": [
- "i18n",
- "internationalization",
- "yargs"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "y18n",
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/yargs/y18n.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "pretest": "standard",
- "release": "standard-version",
- "test": "nyc mocha"
- },
- "version": "4.0.0"
-}
diff --git a/node_modules/yallist/LICENSE b/node_modules/yallist/LICENSE
deleted file mode 100644
index 19129e3..0000000
--- a/node_modules/yallist/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/yallist/README.md b/node_modules/yallist/README.md
deleted file mode 100644
index f586101..0000000
--- a/node_modules/yallist/README.md
+++ /dev/null
@@ -1,204 +0,0 @@
-# yallist
-
-Yet Another Linked List
-
-There are many doubly-linked list implementations like it, but this
-one is mine.
-
-For when an array would be too big, and a Map can't be iterated in
-reverse order.
-
-
-[![Build Status](https://travis-ci.org/isaacs/yallist.svg?branch=master)](https://travis-ci.org/isaacs/yallist) [![Coverage Status](https://coveralls.io/repos/isaacs/yallist/badge.svg?service=github)](https://coveralls.io/github/isaacs/yallist)
-
-## basic usage
-
-```javascript
-var yallist = require('yallist')
-var myList = yallist.create([1, 2, 3])
-myList.push('foo')
-myList.unshift('bar')
-// of course pop() and shift() are there, too
-console.log(myList.toArray()) // ['bar', 1, 2, 3, 'foo']
-myList.forEach(function (k) {
- // walk the list head to tail
-})
-myList.forEachReverse(function (k, index, list) {
- // walk the list tail to head
-})
-var myDoubledList = myList.map(function (k) {
- return k + k
-})
-// now myDoubledList contains ['barbar', 2, 4, 6, 'foofoo']
-// mapReverse is also a thing
-var myDoubledListReverse = myList.mapReverse(function (k) {
- return k + k
-}) // ['foofoo', 6, 4, 2, 'barbar']
-
-var reduced = myList.reduce(function (set, entry) {
- set += entry
- return set
-}, 'start')
-console.log(reduced) // 'startfoo123bar'
-```
-
-## api
-
-The whole API is considered "public".
-
-Functions with the same name as an Array method work more or less the
-same way.
-
-There's reverse versions of most things because that's the point.
-
-### Yallist
-
-Default export, the class that holds and manages a list.
-
-Call it with either a forEach-able (like an array) or a set of
-arguments, to initialize the list.
-
-The Array-ish methods all act like you'd expect. No magic length,
-though, so if you change that it won't automatically prune or add
-empty spots.
-
-### Yallist.create(..)
-
-Alias for Yallist function. Some people like factories.
-
-#### yallist.head
-
-The first node in the list
-
-#### yallist.tail
-
-The last node in the list
-
-#### yallist.length
-
-The number of nodes in the list. (Change this at your peril. It is
-not magic like Array length.)
-
-#### yallist.toArray()
-
-Convert the list to an array.
-
-#### yallist.forEach(fn, [thisp])
-
-Call a function on each item in the list.
-
-#### yallist.forEachReverse(fn, [thisp])
-
-Call a function on each item in the list, in reverse order.
-
-#### yallist.get(n)
-
-Get the data at position `n` in the list. If you use this a lot,
-probably better off just using an Array.
-
-#### yallist.getReverse(n)
-
-Get the data at position `n`, counting from the tail.
-
-#### yallist.map(fn, thisp)
-
-Create a new Yallist with the result of calling the function on each
-item.
-
-#### yallist.mapReverse(fn, thisp)
-
-Same as `map`, but in reverse.
-
-#### yallist.pop()
-
-Get the data from the list tail, and remove the tail from the list.
-
-#### yallist.push(item, ...)
-
-Insert one or more items to the tail of the list.
-
-#### yallist.reduce(fn, initialValue)
-
-Like Array.reduce.
-
-#### yallist.reduceReverse
-
-Like Array.reduce, but in reverse.
-
-#### yallist.reverse
-
-Reverse the list in place.
-
-#### yallist.shift()
-
-Get the data from the list head, and remove the head from the list.
-
-#### yallist.slice([from], [to])
-
-Just like Array.slice, but returns a new Yallist.
-
-#### yallist.sliceReverse([from], [to])
-
-Just like yallist.slice, but the result is returned in reverse.
-
-#### yallist.toArray()
-
-Create an array representation of the list.
-
-#### yallist.toArrayReverse()
-
-Create a reversed array representation of the list.
-
-#### yallist.unshift(item, ...)
-
-Insert one or more items to the head of the list.
-
-#### yallist.unshiftNode(node)
-
-Move a Node object to the front of the list. (That is, pull it out of
-wherever it lives, and make it the new head.)
-
-If the node belongs to a different list, then that list will remove it
-first.
-
-#### yallist.pushNode(node)
-
-Move a Node object to the end of the list. (That is, pull it out of
-wherever it lives, and make it the new tail.)
-
-If the node belongs to a list already, then that list will remove it
-first.
-
-#### yallist.removeNode(node)
-
-Remove a node from the list, preserving referential integrity of head
-and tail and other nodes.
-
-Will throw an error if you try to have a list remove a node that
-doesn't belong to it.
-
-### Yallist.Node
-
-The class that holds the data and is actually the list.
-
-Call with `var n = new Node(value, previousNode, nextNode)`
-
-Note that if you do direct operations on Nodes themselves, it's very
-easy to get into weird states where the list is broken. Be careful :)
-
-#### node.next
-
-The next node in the list.
-
-#### node.prev
-
-The previous node in the list.
-
-#### node.value
-
-The data the node contains.
-
-#### node.list
-
-The list to which this node belongs. (Null if it does not belong to
-any list.)
diff --git a/node_modules/yallist/iterator.js b/node_modules/yallist/iterator.js
deleted file mode 100644
index 4a15bf2..0000000
--- a/node_modules/yallist/iterator.js
+++ /dev/null
@@ -1,7 +0,0 @@
-var Yallist = require('./yallist.js')
-
-Yallist.prototype[Symbol.iterator] = function* () {
- for (let walker = this.head; walker; walker = walker.next) {
- yield walker.value
- }
-}
diff --git a/node_modules/yallist/package.json b/node_modules/yallist/package.json
deleted file mode 100644
index 78216f5..0000000
--- a/node_modules/yallist/package.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "_from": "yallist@^2.1.2",
- "_id": "yallist@2.1.2",
- "_inBundle": false,
- "_integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
- "_location": "/yallist",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "yallist@^2.1.2",
- "name": "yallist",
- "escapedName": "yallist",
- "rawSpec": "^2.1.2",
- "saveSpec": null,
- "fetchSpec": "^2.1.2"
- },
- "_requiredBy": [
- "/lru-cache"
- ],
- "_resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
- "_shasum": "1c11f9218f076089a47dd512f93c6699a6a81d52",
- "_spec": "yallist@^2.1.2",
- "_where": "/Users/gebauer/ws/themes/ag/node_modules/lru-cache",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "bugs": {
- "url": "https://github.com/isaacs/yallist/issues"
- },
- "bundleDependencies": false,
- "dependencies": {},
- "deprecated": false,
- "description": "Yet Another Linked List",
- "devDependencies": {
- "tap": "^10.3.0"
- },
- "directories": {
- "test": "test"
- },
- "files": [
- "yallist.js",
- "iterator.js"
- ],
- "homepage": "https://github.com/isaacs/yallist#readme",
- "license": "ISC",
- "main": "yallist.js",
- "name": "yallist",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/isaacs/yallist.git"
- },
- "scripts": {
- "postpublish": "git push origin --all; git push origin --tags",
- "postversion": "npm publish",
- "preversion": "npm test",
- "test": "tap test/*.js --100"
- },
- "version": "2.1.2"
-}
diff --git a/node_modules/yallist/yallist.js b/node_modules/yallist/yallist.js
deleted file mode 100644
index 518d233..0000000
--- a/node_modules/yallist/yallist.js
+++ /dev/null
@@ -1,370 +0,0 @@
-module.exports = Yallist
-
-Yallist.Node = Node
-Yallist.create = Yallist
-
-function Yallist (list) {
- var self = this
- if (!(self instanceof Yallist)) {
- self = new Yallist()
- }
-
- self.tail = null
- self.head = null
- self.length = 0
-
- if (list && typeof list.forEach === 'function') {
- list.forEach(function (item) {
- self.push(item)
- })
- } else if (arguments.length > 0) {
- for (var i = 0, l = arguments.length; i < l; i++) {
- self.push(arguments[i])
- }
- }
-
- return self
-}
-
-Yallist.prototype.removeNode = function (node) {
- if (node.list !== this) {
- throw new Error('removing node which does not belong to this list')
- }
-
- var next = node.next
- var prev = node.prev
-
- if (next) {
- next.prev = prev
- }
-
- if (prev) {
- prev.next = next
- }
-
- if (node === this.head) {
- this.head = next
- }
- if (node === this.tail) {
- this.tail = prev
- }
-
- node.list.length--
- node.next = null
- node.prev = null
- node.list = null
-}
-
-Yallist.prototype.unshiftNode = function (node) {
- if (node === this.head) {
- return
- }
-
- if (node.list) {
- node.list.removeNode(node)
- }
-
- var head = this.head
- node.list = this
- node.next = head
- if (head) {
- head.prev = node
- }
-
- this.head = node
- if (!this.tail) {
- this.tail = node
- }
- this.length++
-}
-
-Yallist.prototype.pushNode = function (node) {
- if (node === this.tail) {
- return
- }
-
- if (node.list) {
- node.list.removeNode(node)
- }
-
- var tail = this.tail
- node.list = this
- node.prev = tail
- if (tail) {
- tail.next = node
- }
-
- this.tail = node
- if (!this.head) {
- this.head = node
- }
- this.length++
-}
-
-Yallist.prototype.push = function () {
- for (var i = 0, l = arguments.length; i < l; i++) {
- push(this, arguments[i])
- }
- return this.length
-}
-
-Yallist.prototype.unshift = function () {
- for (var i = 0, l = arguments.length; i < l; i++) {
- unshift(this, arguments[i])
- }
- return this.length
-}
-
-Yallist.prototype.pop = function () {
- if (!this.tail) {
- return undefined
- }
-
- var res = this.tail.value
- this.tail = this.tail.prev
- if (this.tail) {
- this.tail.next = null
- } else {
- this.head = null
- }
- this.length--
- return res
-}
-
-Yallist.prototype.shift = function () {
- if (!this.head) {
- return undefined
- }
-
- var res = this.head.value
- this.head = this.head.next
- if (this.head) {
- this.head.prev = null
- } else {
- this.tail = null
- }
- this.length--
- return res
-}
-
-Yallist.prototype.forEach = function (fn, thisp) {
- thisp = thisp || this
- for (var walker = this.head, i = 0; walker !== null; i++) {
- fn.call(thisp, walker.value, i, this)
- walker = walker.next
- }
-}
-
-Yallist.prototype.forEachReverse = function (fn, thisp) {
- thisp = thisp || this
- for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
- fn.call(thisp, walker.value, i, this)
- walker = walker.prev
- }
-}
-
-Yallist.prototype.get = function (n) {
- for (var i = 0, walker = this.head; walker !== null && i < n; i++) {
- // abort out of the list early if we hit a cycle
- walker = walker.next
- }
- if (i === n && walker !== null) {
- return walker.value
- }
-}
-
-Yallist.prototype.getReverse = function (n) {
- for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {
- // abort out of the list early if we hit a cycle
- walker = walker.prev
- }
- if (i === n && walker !== null) {
- return walker.value
- }
-}
-
-Yallist.prototype.map = function (fn, thisp) {
- thisp = thisp || this
- var res = new Yallist()
- for (var walker = this.head; walker !== null;) {
- res.push(fn.call(thisp, walker.value, this))
- walker = walker.next
- }
- return res
-}
-
-Yallist.prototype.mapReverse = function (fn, thisp) {
- thisp = thisp || this
- var res = new Yallist()
- for (var walker = this.tail; walker !== null;) {
- res.push(fn.call(thisp, walker.value, this))
- walker = walker.prev
- }
- return res
-}
-
-Yallist.prototype.reduce = function (fn, initial) {
- var acc
- var walker = this.head
- if (arguments.length > 1) {
- acc = initial
- } else if (this.head) {
- walker = this.head.next
- acc = this.head.value
- } else {
- throw new TypeError('Reduce of empty list with no initial value')
- }
-
- for (var i = 0; walker !== null; i++) {
- acc = fn(acc, walker.value, i)
- walker = walker.next
- }
-
- return acc
-}
-
-Yallist.prototype.reduceReverse = function (fn, initial) {
- var acc
- var walker = this.tail
- if (arguments.length > 1) {
- acc = initial
- } else if (this.tail) {
- walker = this.tail.prev
- acc = this.tail.value
- } else {
- throw new TypeError('Reduce of empty list with no initial value')
- }
-
- for (var i = this.length - 1; walker !== null; i--) {
- acc = fn(acc, walker.value, i)
- walker = walker.prev
- }
-
- return acc
-}
-
-Yallist.prototype.toArray = function () {
- var arr = new Array(this.length)
- for (var i = 0, walker = this.head; walker !== null; i++) {
- arr[i] = walker.value
- walker = walker.next
- }
- return arr
-}
-
-Yallist.prototype.toArrayReverse = function () {
- var arr = new Array(this.length)
- for (var i = 0, walker = this.tail; walker !== null; i++) {
- arr[i] = walker.value
- walker = walker.prev
- }
- return arr
-}
-
-Yallist.prototype.slice = function (from, to) {
- to = to || this.length
- if (to < 0) {
- to += this.length
- }
- from = from || 0
- if (from < 0) {
- from += this.length
- }
- var ret = new Yallist()
- if (to < from || to < 0) {
- return ret
- }
- if (from < 0) {
- from = 0
- }
- if (to > this.length) {
- to = this.length
- }
- for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
- walker = walker.next
- }
- for (; walker !== null && i < to; i++, walker = walker.next) {
- ret.push(walker.value)
- }
- return ret
-}
-
-Yallist.prototype.sliceReverse = function (from, to) {
- to = to || this.length
- if (to < 0) {
- to += this.length
- }
- from = from || 0
- if (from < 0) {
- from += this.length
- }
- var ret = new Yallist()
- if (to < from || to < 0) {
- return ret
- }
- if (from < 0) {
- from = 0
- }
- if (to > this.length) {
- to = this.length
- }
- for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
- walker = walker.prev
- }
- for (; walker !== null && i > from; i--, walker = walker.prev) {
- ret.push(walker.value)
- }
- return ret
-}
-
-Yallist.prototype.reverse = function () {
- var head = this.head
- var tail = this.tail
- for (var walker = head; walker !== null; walker = walker.prev) {
- var p = walker.prev
- walker.prev = walker.next
- walker.next = p
- }
- this.head = tail
- this.tail = head
- return this
-}
-
-function push (self, item) {
- self.tail = new Node(item, self.tail, null, self)
- if (!self.head) {
- self.head = self.tail
- }
- self.length++
-}
-
-function unshift (self, item) {
- self.head = new Node(item, null, self.head, self)
- if (!self.tail) {
- self.tail = self.head
- }
- self.length++
-}
-
-function Node (value, prev, next, list) {
- if (!(this instanceof Node)) {
- return new Node(value, prev, next, list)
- }
-
- this.list = list
- this.value = value
-
- if (prev) {
- prev.next = this
- this.prev = prev
- } else {
- this.prev = null
- }
-
- if (next) {
- next.prev = this
- this.next = next
- } else {
- this.next = null
- }
-}
diff --git a/node_modules/yargs-parser/CHANGELOG.md b/node_modules/yargs-parser/CHANGELOG.md
deleted file mode 100644
index df11c00..0000000
--- a/node_modules/yargs-parser/CHANGELOG.md
+++ /dev/null
@@ -1,467 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-### [13.1.1](https://www.github.com/yargs/yargs-parser/compare/v13.1.0...v13.1.1) (2019-06-10)
-
-
-### Bug Fixes
-
-* convert values to strings when tokenizing ([#167](https://www.github.com/yargs/yargs-parser/issues/167)) ([57b7883](https://www.github.com/yargs/yargs-parser/commit/57b7883))
-* nargs should allow duplicates when duplicate-arguments-array=false ([#164](https://www.github.com/yargs/yargs-parser/issues/164)) ([47ccb0b](https://www.github.com/yargs/yargs-parser/commit/47ccb0b))
-* should populate "_" when given config with "short-option-groups" false ([#179](https://www.github.com/yargs/yargs-parser/issues/179)) ([6055974](https://www.github.com/yargs/yargs-parser/commit/6055974))
-
-## [13.1.0](https://github.com/yargs/yargs-parser/compare/v13.0.0...v13.1.0) (2019-05-05)
-
-
-### Features
-
-* add `strip-aliased` and `strip-dashed` configuration options. ([#172](https://github.com/yargs/yargs-parser/issues/172)) ([a3936aa](https://github.com/yargs/yargs-parser/commit/a3936aa))
-* support boolean which do not consume next argument. ([#171](https://github.com/yargs/yargs-parser/issues/171)) ([0ae7fcb](https://github.com/yargs/yargs-parser/commit/0ae7fcb))
-
-
-
-<a name="13.0.0"></a>
-# [13.0.0](https://github.com/yargs/yargs-parser/compare/v12.0.0...v13.0.0) (2019-02-02)
-
-
-### Features
-
-* don't coerce number from string with leading '0' or '+' ([#158](https://github.com/yargs/yargs-parser/issues/158)) ([18d0fd5](https://github.com/yargs/yargs-parser/commit/18d0fd5))
-
-
-### BREAKING CHANGES
-
-* options with leading '+' or '0' now parse as strings
-
-
-
-<a name="12.0.0"></a>
-# [12.0.0](https://github.com/yargs/yargs-parser/compare/v11.1.1...v12.0.0) (2019-01-29)
-
-
-### Bug Fixes
-
-* better handling of quoted strings ([#153](https://github.com/yargs/yargs-parser/issues/153)) ([2fb71b2](https://github.com/yargs/yargs-parser/commit/2fb71b2))
-
-
-### Features
-
-* default value is now used if no right-hand value provided for numbers/strings ([#156](https://github.com/yargs/yargs-parser/issues/156)) ([5a7c46a](https://github.com/yargs/yargs-parser/commit/5a7c46a))
-
-
-### BREAKING CHANGES
-
-* a flag with no right-hand value no longer populates defaulted options with `undefined`.
-* quotes at beginning and endings of strings are not removed during parsing.
-
-
-
-<a name="11.1.1"></a>
-## [11.1.1](https://github.com/yargs/yargs-parser/compare/v11.1.0...v11.1.1) (2018-11-19)
-
-
-### Bug Fixes
-
-* ensure empty string is added into argv._ ([#140](https://github.com/yargs/yargs-parser/issues/140)) ([79cda98](https://github.com/yargs/yargs-parser/commit/79cda98))
-
-
-### Reverts
-
-* make requiresArg work in conjunction with arrays ([#136](https://github.com/yargs/yargs-parser/issues/136)) ([f4a3063](https://github.com/yargs/yargs-parser/commit/f4a3063))
-
-
-
-<a name="11.1.0"></a>
-# [11.1.0](https://github.com/yargs/yargs-parser/compare/v11.0.0...v11.1.0) (2018-11-10)
-
-
-### Bug Fixes
-
-* handling of one char alias ([#139](https://github.com/yargs/yargs-parser/issues/139)) ([ee56e31](https://github.com/yargs/yargs-parser/commit/ee56e31))
-
-
-### Features
-
-* add halt-at-non-option configuration option ([#130](https://github.com/yargs/yargs-parser/issues/130)) ([a849fce](https://github.com/yargs/yargs-parser/commit/a849fce))
-
-
-
-<a name="11.0.0"></a>
-# [11.0.0](https://github.com/yargs/yargs-parser/compare/v10.1.0...v11.0.0) (2018-10-06)
-
-
-### Bug Fixes
-
-* flatten-duplicate-arrays:false for more than 2 arrays ([#128](https://github.com/yargs/yargs-parser/issues/128)) ([2bc395f](https://github.com/yargs/yargs-parser/commit/2bc395f))
-* hyphenated flags combined with dot notation broke parsing ([#131](https://github.com/yargs/yargs-parser/issues/131)) ([dc788da](https://github.com/yargs/yargs-parser/commit/dc788da))
-* make requiresArg work in conjunction with arrays ([#136](https://github.com/yargs/yargs-parser/issues/136)) ([77ae1d4](https://github.com/yargs/yargs-parser/commit/77ae1d4))
-
-
-### Chores
-
-* update dependencies ([6dc42a1](https://github.com/yargs/yargs-parser/commit/6dc42a1))
-
-
-### Features
-
-* also add camelCase array options ([#125](https://github.com/yargs/yargs-parser/issues/125)) ([08c0117](https://github.com/yargs/yargs-parser/commit/08c0117))
-* array.type can now be provided, supporting coercion ([#132](https://github.com/yargs/yargs-parser/issues/132)) ([4b8cfce](https://github.com/yargs/yargs-parser/commit/4b8cfce))
-
-
-### BREAKING CHANGES
-
-* drops Node 4 support
-* the argv object is now populated differently (correctly) when hyphens and dot notation are used in conjunction.
-
-
-
-<a name="10.1.0"></a>
-# [10.1.0](https://github.com/yargs/yargs-parser/compare/v10.0.0...v10.1.0) (2018-06-29)
-
-
-### Features
-
-* add `set-placeholder-key` configuration ([#123](https://github.com/yargs/yargs-parser/issues/123)) ([19386ee](https://github.com/yargs/yargs-parser/commit/19386ee))
-
-
-
-<a name="10.0.0"></a>
-# [10.0.0](https://github.com/yargs/yargs-parser/compare/v9.0.2...v10.0.0) (2018-04-04)
-
-
-### Bug Fixes
-
-* do not set boolean flags if not defined in `argv` ([#119](https://github.com/yargs/yargs-parser/issues/119)) ([f6e6599](https://github.com/yargs/yargs-parser/commit/f6e6599))
-
-
-### BREAKING CHANGES
-
-* `boolean` flags defined without a `default` value will now behave like other option type and won't be set in the parsed results when the user doesn't set the corresponding CLI arg.
-
-Previous behavior:
-```js
-var parse = require('yargs-parser');
-
-parse('--flag', {boolean: ['flag']});
-// => { _: [], flag: true }
-
-parse('--no-flag', {boolean: ['flag']});
-// => { _: [], flag: false }
-
-parse('', {boolean: ['flag']});
-// => { _: [], flag: false }
-```
-
-New behavior:
-```js
-var parse = require('yargs-parser');
-
-parse('--flag', {boolean: ['flag']});
-// => { _: [], flag: true }
-
-parse('--no-flag', {boolean: ['flag']});
-// => { _: [], flag: false }
-
-parse('', {boolean: ['flag']});
-// => { _: [] } => flag not set similarly to other option type
-```
-
-
-
-<a name="9.0.2"></a>
-## [9.0.2](https://github.com/yargs/yargs-parser/compare/v9.0.1...v9.0.2) (2018-01-20)
-
-
-### Bug Fixes
-
-* nargs was still aggressively consuming too many arguments ([9b28aad](https://github.com/yargs/yargs-parser/commit/9b28aad))
-
-
-
-<a name="9.0.1"></a>
-## [9.0.1](https://github.com/yargs/yargs-parser/compare/v9.0.0...v9.0.1) (2018-01-20)
-
-
-### Bug Fixes
-
-* nargs was consuming too many arguments ([4fef206](https://github.com/yargs/yargs-parser/commit/4fef206))
-
-
-
-<a name="9.0.0"></a>
-# [9.0.0](https://github.com/yargs/yargs-parser/compare/v8.1.0...v9.0.0) (2018-01-20)
-
-
-### Features
-
-* narg arguments no longer consume flag arguments ([#114](https://github.com/yargs/yargs-parser/issues/114)) ([60bb9b3](https://github.com/yargs/yargs-parser/commit/60bb9b3))
-
-
-### BREAKING CHANGES
-
-* arguments of form --foo, -abc, will no longer be consumed by nargs
-
-
-
-<a name="8.1.0"></a>
-# [8.1.0](https://github.com/yargs/yargs-parser/compare/v8.0.0...v8.1.0) (2017-12-20)
-
-
-### Bug Fixes
-
-* allow null config values ([#108](https://github.com/yargs/yargs-parser/issues/108)) ([d8b14f9](https://github.com/yargs/yargs-parser/commit/d8b14f9))
-* ensure consistent parsing of dot-notation arguments ([#102](https://github.com/yargs/yargs-parser/issues/102)) ([c9bd79c](https://github.com/yargs/yargs-parser/commit/c9bd79c))
-* implement [@antoniom](https://github.com/antoniom)'s fix for camel-case expansion ([3087e1d](https://github.com/yargs/yargs-parser/commit/3087e1d))
-* only run coercion functions once, despite aliases. ([#76](https://github.com/yargs/yargs-parser/issues/76)) ([#103](https://github.com/yargs/yargs-parser/issues/103)) ([507aaef](https://github.com/yargs/yargs-parser/commit/507aaef))
-* scientific notation circumvented bounds check ([#110](https://github.com/yargs/yargs-parser/issues/110)) ([3571f57](https://github.com/yargs/yargs-parser/commit/3571f57))
-* tokenizer should ignore spaces at the beginning of the argString ([#106](https://github.com/yargs/yargs-parser/issues/106)) ([f34ead9](https://github.com/yargs/yargs-parser/commit/f34ead9))
-
-
-### Features
-
-* make combining arrays a configurable option ([#111](https://github.com/yargs/yargs-parser/issues/111)) ([c8bf536](https://github.com/yargs/yargs-parser/commit/c8bf536))
-* merge array from arguments with array from config ([#83](https://github.com/yargs/yargs-parser/issues/83)) ([806ddd6](https://github.com/yargs/yargs-parser/commit/806ddd6))
-
-
-
-<a name="8.0.0"></a>
-# [8.0.0](https://github.com/yargs/yargs-parser/compare/v7.0.0...v8.0.0) (2017-10-05)
-
-
-### Bug Fixes
-
-* Ignore multiple spaces between arguments. ([#100](https://github.com/yargs/yargs-parser/issues/100)) ([d137227](https://github.com/yargs/yargs-parser/commit/d137227))
-
-
-### Features
-
-* allow configuration of prefix for boolean negation ([#94](https://github.com/yargs/yargs-parser/issues/94)) ([00bde7d](https://github.com/yargs/yargs-parser/commit/00bde7d))
-* reworking how numbers are parsed ([#104](https://github.com/yargs/yargs-parser/issues/104)) ([fba00eb](https://github.com/yargs/yargs-parser/commit/fba00eb))
-
-
-### BREAKING CHANGES
-
-* strings that fail `Number.isSafeInteger()` are no longer coerced into numbers.
-
-
-
-<a name="7.0.0"></a>
-# [7.0.0](https://github.com/yargs/yargs-parser/compare/v6.0.1...v7.0.0) (2017-05-02)
-
-
-### Chores
-
-* revert populate-- logic ([#91](https://github.com/yargs/yargs-parser/issues/91)) ([6003e6d](https://github.com/yargs/yargs-parser/commit/6003e6d))
-
-
-### BREAKING CHANGES
-
-* populate-- now defaults to false.
-
-
-
-<a name="6.0.1"></a>
-## [6.0.1](https://github.com/yargs/yargs-parser/compare/v6.0.0...v6.0.1) (2017-05-01)
-
-
-### Bug Fixes
-
-* default '--' to undefined when not provided; this is closer to the array API ([#90](https://github.com/yargs/yargs-parser/issues/90)) ([4e739cc](https://github.com/yargs/yargs-parser/commit/4e739cc))
-
-
-
-<a name="6.0.0"></a>
-# [6.0.0](https://github.com/yargs/yargs-parser/compare/v4.2.1...v6.0.0) (2017-05-01)
-
-
-### Bug Fixes
-
-* environment variables should take precedence over config file ([#81](https://github.com/yargs/yargs-parser/issues/81)) ([76cee1f](https://github.com/yargs/yargs-parser/commit/76cee1f))
-* parsing hints should apply for dot notation keys ([#86](https://github.com/yargs/yargs-parser/issues/86)) ([3e47d62](https://github.com/yargs/yargs-parser/commit/3e47d62))
-
-
-### Chores
-
-* upgrade to newest version of camelcase ([#87](https://github.com/yargs/yargs-parser/issues/87)) ([f1903aa](https://github.com/yargs/yargs-parser/commit/f1903aa))
-
-
-### Features
-
-* add -- option which allows arguments after the -- flag to be returned separated from positional arguments ([#84](https://github.com/yargs/yargs-parser/issues/84)) ([2572ca8](https://github.com/yargs/yargs-parser/commit/2572ca8))
-* when parsing stops, we now populate "--" by default ([#88](https://github.com/yargs/yargs-parser/issues/88)) ([cd666db](https://github.com/yargs/yargs-parser/commit/cd666db))
-
-
-### BREAKING CHANGES
-
-* rather than placing arguments in "_", when parsing is stopped via "--"; we now populate an array called "--" by default.
-* camelcase now requires Node 4+.
-* environment variables will now override config files (args, env, config-file, config-object)
-
-
-
-<a name="5.0.0"></a>
-# [5.0.0](https://github.com/yargs/yargs-parser/compare/v4.2.1...v5.0.0) (2017-02-18)
-
-
-### Bug Fixes
-
-* environment variables should take precedence over config file ([#81](https://github.com/yargs/yargs-parser/issues/81)) ([76cee1f](https://github.com/yargs/yargs-parser/commit/76cee1f))
-
-
-### BREAKING CHANGES
-
-* environment variables will now override config files (args, env, config-file, config-object)
-
-
-
-<a name="4.2.1"></a>
-## [4.2.1](https://github.com/yargs/yargs-parser/compare/v4.2.0...v4.2.1) (2017-01-02)
-
-
-### Bug Fixes
-
-* flatten/duplicate regression ([#75](https://github.com/yargs/yargs-parser/issues/75)) ([68d68a0](https://github.com/yargs/yargs-parser/commit/68d68a0))
-
-
-
-<a name="4.2.0"></a>
-# [4.2.0](https://github.com/yargs/yargs-parser/compare/v4.1.0...v4.2.0) (2016-12-01)
-
-
-### Bug Fixes
-
-* inner objects in configs had their keys appended to top-level key when dot-notation was disabled ([#72](https://github.com/yargs/yargs-parser/issues/72)) ([0b1b5f9](https://github.com/yargs/yargs-parser/commit/0b1b5f9))
-
-
-### Features
-
-* allow multiple arrays to be provided, rather than always combining ([#71](https://github.com/yargs/yargs-parser/issues/71)) ([0f0fb2d](https://github.com/yargs/yargs-parser/commit/0f0fb2d))
-
-
-
-<a name="4.1.0"></a>
-# [4.1.0](https://github.com/yargs/yargs-parser/compare/v4.0.2...v4.1.0) (2016-11-07)
-
-
-### Features
-
-* apply coercions to default options ([#65](https://github.com/yargs/yargs-parser/issues/65)) ([c79052b](https://github.com/yargs/yargs-parser/commit/c79052b))
-* handle dot notation boolean options ([#63](https://github.com/yargs/yargs-parser/issues/63)) ([02c3545](https://github.com/yargs/yargs-parser/commit/02c3545))
-
-
-
-<a name="4.0.2"></a>
-## [4.0.2](https://github.com/yargs/yargs-parser/compare/v4.0.1...v4.0.2) (2016-09-30)
-
-
-### Bug Fixes
-
-* whoops, let's make the assign not change the Object key order ([29d069a](https://github.com/yargs/yargs-parser/commit/29d069a))
-
-
-
-<a name="4.0.1"></a>
-## [4.0.1](https://github.com/yargs/yargs-parser/compare/v4.0.0...v4.0.1) (2016-09-30)
-
-
-### Bug Fixes
-
-* lodash.assign was deprecated ([#59](https://github.com/yargs/yargs-parser/issues/59)) ([5e7eb11](https://github.com/yargs/yargs-parser/commit/5e7eb11))
-
-
-
-<a name="4.0.0"></a>
-# [4.0.0](https://github.com/yargs/yargs-parser/compare/v3.2.0...v4.0.0) (2016-09-26)
-
-
-### Bug Fixes
-
-* coerce should be applied to the final objects and arrays created ([#57](https://github.com/yargs/yargs-parser/issues/57)) ([4ca69da](https://github.com/yargs/yargs-parser/commit/4ca69da))
-
-
-### BREAKING CHANGES
-
-* coerce is no longer applied to individual arguments in an implicit array.
-
-
-
-<a name="3.2.0"></a>
-# [3.2.0](https://github.com/yargs/yargs-parser/compare/v3.1.0...v3.2.0) (2016-08-13)
-
-
-### Features
-
-* coerce full array instead of each element ([#51](https://github.com/yargs/yargs-parser/issues/51)) ([cc4dc56](https://github.com/yargs/yargs-parser/commit/cc4dc56))
-
-
-
-<a name="3.1.0"></a>
-# [3.1.0](https://github.com/yargs/yargs-parser/compare/v3.0.0...v3.1.0) (2016-08-09)
-
-
-### Bug Fixes
-
-* address pkgConf parsing bug outlined in [#37](https://github.com/yargs/yargs-parser/issues/37) ([#45](https://github.com/yargs/yargs-parser/issues/45)) ([be76ee6](https://github.com/yargs/yargs-parser/commit/be76ee6))
-* better parsing of negative values ([#44](https://github.com/yargs/yargs-parser/issues/44)) ([2e43692](https://github.com/yargs/yargs-parser/commit/2e43692))
-* check aliases when guessing defaults for arguments fixes [#41](https://github.com/yargs/yargs-parser/issues/41) ([#43](https://github.com/yargs/yargs-parser/issues/43)) ([f3e4616](https://github.com/yargs/yargs-parser/commit/f3e4616))
-
-
-### Features
-
-* added coerce option, for providing specialized argument parsing ([#42](https://github.com/yargs/yargs-parser/issues/42)) ([7b49cd2](https://github.com/yargs/yargs-parser/commit/7b49cd2))
-
-
-
-<a name="3.0.0"></a>
-# [3.0.0](https://github.com/yargs/yargs-parser/compare/v2.4.1...v3.0.0) (2016-08-07)
-
-
-### Bug Fixes
-
-* parsing issue with numeric character in group of options ([#19](https://github.com/yargs/yargs-parser/issues/19)) ([f743236](https://github.com/yargs/yargs-parser/commit/f743236))
-* upgraded lodash.assign ([5d7fdf4](https://github.com/yargs/yargs-parser/commit/5d7fdf4))
-
-### BREAKING CHANGES
-
-* subtle change to how values are parsed in a group of single-character arguments.
-* _first released in 3.1.0, better handling of negative values should be considered a breaking change._
-
-
-
-<a name="2.4.1"></a>
-## [2.4.1](https://github.com/yargs/yargs-parser/compare/v2.4.0...v2.4.1) (2016-07-16)
-
-
-### Bug Fixes
-
-* **count:** do not increment a default value ([#39](https://github.com/yargs/yargs-parser/issues/39)) ([b04a189](https://github.com/yargs/yargs-parser/commit/b04a189))
-
-
-
-<a name="2.4.0"></a>
-# [2.4.0](https://github.com/yargs/yargs-parser/compare/v2.3.0...v2.4.0) (2016-04-11)
-
-
-### Features
-
-* **environment:** Support nested options in environment variables ([#26](https://github.com/yargs/yargs-parser/issues/26)) thanks [@elas7](https://github.com/elas7) \o/ ([020778b](https://github.com/yargs/yargs-parser/commit/020778b))
-
-
-
-<a name="2.3.0"></a>
-# [2.3.0](https://github.com/yargs/yargs-parser/compare/v2.2.0...v2.3.0) (2016-04-09)
-
-
-### Bug Fixes
-
-* **boolean:** fix for boolean options with non boolean defaults (#20) ([2dbe86b](https://github.com/yargs/yargs-parser/commit/2dbe86b)), closes [(#20](https://github.com/(/issues/20)
-* **package:** remove tests from tarball ([0353c0d](https://github.com/yargs/yargs-parser/commit/0353c0d))
-* **parsing:** handle calling short option with an empty string as the next value. ([a867165](https://github.com/yargs/yargs-parser/commit/a867165))
-* boolean flag when next value contains the strings 'true' or 'false'. ([69941a6](https://github.com/yargs/yargs-parser/commit/69941a6))
-* update dependencies; add standard-version bin for next release (#24) ([822d9d5](https://github.com/yargs/yargs-parser/commit/822d9d5))
-
-### Features
-
-* **configuration:** Allow to pass configuration objects to yargs-parser ([0780900](https://github.com/yargs/yargs-parser/commit/0780900))
-* **normalize:** allow normalize to work with arrays ([e0eaa1a](https://github.com/yargs/yargs-parser/commit/e0eaa1a))
diff --git a/node_modules/yargs-parser/LICENSE.txt b/node_modules/yargs-parser/LICENSE.txt
deleted file mode 100644
index 836440b..0000000
--- a/node_modules/yargs-parser/LICENSE.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Copyright (c) 2016, Contributors
-
-Permission to use, copy, modify, and/or distribute this software
-for any purpose with or without fee is hereby granted, provided
-that the above copyright notice and this permission notice
-appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
-LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
-OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
-WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
-ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/yargs-parser/README.md b/node_modules/yargs-parser/README.md
deleted file mode 100644
index dde9f84..0000000
--- a/node_modules/yargs-parser/README.md
+++ /dev/null
@@ -1,396 +0,0 @@
-# yargs-parser
-
-[![Build Status](https://travis-ci.org/yargs/yargs-parser.svg)](https://travis-ci.org/yargs/yargs-parser)
-[![Coverage Status](https://coveralls.io/repos/yargs/yargs-parser/badge.svg?branch=)](https://coveralls.io/r/yargs/yargs-parser?branch=master)
-[![NPM version](https://img.shields.io/npm/v/yargs-parser.svg)](https://www.npmjs.com/package/yargs-parser)
-[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
-
-
-The mighty option parser used by [yargs](https://github.com/yargs/yargs).
-
-visit the [yargs website](http://yargs.js.org/) for more examples, and thorough usage instructions.
-
-<img width="250" src="https://raw.githubusercontent.com/yargs/yargs-parser/master/yargs-logo.png">
-
-## Example
-
-```sh
-npm i yargs-parser --save
-```
-
-```js
-var argv = require('yargs-parser')(process.argv.slice(2))
-console.log(argv)
-```
-
-```sh
-node example.js --foo=33 --bar hello
-{ _: [], foo: 33, bar: 'hello' }
-```
-
-_or parse a string!_
-
-```js
-var argv = require('./')('--foo=99 --bar=33')
-console.log(argv)
-```
-
-```sh
-{ _: [], foo: 99, bar: 33 }
-```
-
-Convert an array of mixed types before passing to `yargs-parser`:
-
-```js
-var parse = require('yargs-parser')
-parse(['-f', 11, '--zoom', 55].join(' ')) // <-- array to string
-parse(['-f', 11, '--zoom', 55].map(String)) // <-- array of strings
-```
-
-## API
-
-### require('yargs-parser')(args, opts={})
-
-Parses command line arguments returning a simple mapping of keys and values.
-
-**expects:**
-
-* `args`: a string or array of strings representing the options to parse.
-* `opts`: provide a set of hints indicating how `args` should be parsed:
- * `opts.alias`: an object representing the set of aliases for a key: `{alias: {foo: ['f']}}`.
- * `opts.array`: indicate that keys should be parsed as an array: `{array: ['foo', 'bar']}`.<br>
- Indicate that keys should be parsed as an array and coerced to booleans / numbers:<br>
- `{array: [{ key: 'foo', boolean: true }, {key: 'bar', number: true}]}`.
- * `opts.boolean`: arguments should be parsed as booleans: `{boolean: ['x', 'y']}`.
- * `opts.coerce`: provide a custom synchronous function that returns a coerced value from the argument provided
- (or throws an error). For arrays the function is called only once for the entire array:<br>
- `{coerce: {foo: function (arg) {return modifiedArg}}}`.
- * `opts.config`: indicate a key that represents a path to a configuration file (this file will be loaded and parsed).
- * `opts.configObjects`: configuration objects to parse, their properties will be set as arguments:<br>
- `{configObjects: [{'x': 5, 'y': 33}, {'z': 44}]}`.
- * `opts.configuration`: provide configuration options to the yargs-parser (see: [configuration](#configuration)).
- * `opts.count`: indicate a key that should be used as a counter, e.g., `-vvv` = `{v: 3}`.
- * `opts.default`: provide default values for keys: `{default: {x: 33, y: 'hello world!'}}`.
- * `opts.envPrefix`: environment variables (`process.env`) with the prefix provided should be parsed.
- * `opts.narg`: specify that a key requires `n` arguments: `{narg: {x: 2}}`.
- * `opts.normalize`: `path.normalize()` will be applied to values set to this key.
- * `opts.number`: keys should be treated as numbers.
- * `opts.string`: keys should be treated as strings (even if they resemble a number `-x 33`).
-
-**returns:**
-
-* `obj`: an object representing the parsed value of `args`
- * `key/value`: key value pairs for each argument and their aliases.
- * `_`: an array representing the positional arguments.
- * [optional] `--`: an array with arguments after the end-of-options flag `--`.
-
-### require('yargs-parser').detailed(args, opts={})
-
-Parses a command line string, returning detailed information required by the
-yargs engine.
-
-**expects:**
-
-* `args`: a string or array of strings representing options to parse.
-* `opts`: provide a set of hints indicating how `args`, inputs are identical to `require('yargs-parser')(args, opts={})`.
-
-**returns:**
-
-* `argv`: an object representing the parsed value of `args`
- * `key/value`: key value pairs for each argument and their aliases.
- * `_`: an array representing the positional arguments.
-* `error`: populated with an error object if an exception occurred during parsing.
-* `aliases`: the inferred list of aliases built by combining lists in `opts.alias`.
-* `newAliases`: any new aliases added via camel-case expansion.
-* `configuration`: the configuration loaded from the `yargs` stanza in package.json.
-
-<a name="configuration"></a>
-
-### Configuration
-
-The yargs-parser applies several automated transformations on the keys provided
-in `args`. These features can be turned on and off using the `configuration` field
-of `opts`.
-
-```js
-var parsed = parser(['--no-dice'], {
- configuration: {
- 'boolean-negation': false
- }
-})
-```
-
-### short option groups
-
-* default: `true`.
-* key: `short-option-groups`.
-
-Should a group of short-options be treated as boolean flags?
-
-```sh
-node example.js -abc
-{ _: [], a: true, b: true, c: true }
-```
-
-_if disabled:_
-
-```sh
-node example.js -abc
-{ _: [], abc: true }
-```
-
-### camel-case expansion
-
-* default: `true`.
-* key: `camel-case-expansion`.
-
-Should hyphenated arguments be expanded into camel-case aliases?
-
-```sh
-node example.js --foo-bar
-{ _: [], 'foo-bar': true, fooBar: true }
-```
-
-_if disabled:_
-
-```sh
-node example.js --foo-bar
-{ _: [], 'foo-bar': true }
-```
-
-### dot-notation
-
-* default: `true`
-* key: `dot-notation`
-
-Should keys that contain `.` be treated as objects?
-
-```sh
-node example.js --foo.bar
-{ _: [], foo: { bar: true } }
-```
-
-_if disabled:_
-
-```sh
-node example.js --foo.bar
-{ _: [], "foo.bar": true }
-```
-
-### parse numbers
-
-* default: `true`
-* key: `parse-numbers`
-
-Should keys that look like numbers be treated as such?
-
-```sh
-node example.js --foo=99.3
-{ _: [], foo: 99.3 }
-```
-
-_if disabled:_
-
-```sh
-node example.js --foo=99.3
-{ _: [], foo: "99.3" }
-```
-
-### boolean negation
-
-* default: `true`
-* key: `boolean-negation`
-
-Should variables prefixed with `--no` be treated as negations?
-
-```sh
-node example.js --no-foo
-{ _: [], foo: false }
-```
-
-_if disabled:_
-
-```sh
-node example.js --no-foo
-{ _: [], "no-foo": true }
-```
-
-### combine arrays
-
-* default: `false`
-* key: `combine-arrays`
-
-Should arrays be combined when provided by both command line arguments and
-a configuration file.
-
-### duplicate arguments array
-
-* default: `true`
-* key: `duplicate-arguments-array`
-
-Should arguments be coerced into an array when duplicated:
-
-```sh
-node example.js -x 1 -x 2
-{ _: [], x: [1, 2] }
-```
-
-_if disabled:_
-
-```sh
-node example.js -x 1 -x 2
-{ _: [], x: 2 }
-```
-
-### flatten duplicate arrays
-
-* default: `true`
-* key: `flatten-duplicate-arrays`
-
-Should array arguments be coerced into a single array when duplicated:
-
-```sh
-node example.js -x 1 2 -x 3 4
-{ _: [], x: [1, 2, 3, 4] }
-```
-
-_if disabled:_
-
-```sh
-node example.js -x 1 2 -x 3 4
-{ _: [], x: [[1, 2], [3, 4]] }
-```
-
-### negation prefix
-
-* default: `no-`
-* key: `negation-prefix`
-
-The prefix to use for negated boolean variables.
-
-```sh
-node example.js --no-foo
-{ _: [], foo: false }
-```
-
-_if set to `quux`:_
-
-```sh
-node example.js --quuxfoo
-{ _: [], foo: false }
-```
-
-### populate --
-
-* default: `false`.
-* key: `populate--`
-
-Should unparsed flags be stored in `--` or `_`.
-
-_If disabled:_
-
-```sh
-node example.js a -b -- x y
-{ _: [ 'a', 'x', 'y' ], b: true }
-```
-
-_If enabled:_
-
-```sh
-node example.js a -b -- x y
-{ _: [ 'a' ], '--': [ 'x', 'y' ], b: true }
-```
-
-### set placeholder key
-
-* default: `false`.
-* key: `set-placeholder-key`.
-
-Should a placeholder be added for keys not set via the corresponding CLI argument?
-
-_If disabled:_
-
-```sh
-node example.js -a 1 -c 2
-{ _: [], a: 1, c: 2 }
-```
-
-_If enabled:_
-
-```sh
-node example.js -a 1 -c 2
-{ _: [], a: 1, b: undefined, c: 2 }
-```
-
-### halt at non-option
-
-* default: `false`.
-* key: `halt-at-non-option`.
-
-Should parsing stop at the first positional argument? This is similar to how e.g. `ssh` parses its command line.
-
-_If disabled:_
-
-```sh
-node example.js -a run b -x y
-{ _: [ 'b' ], a: 'run', x: 'y' }
-```
-
-_If enabled:_
-
-```sh
-node example.js -a run b -x y
-{ _: [ 'b', '-x', 'y' ], a: 'run' }
-```
-
-### strip aliased
-
-* default: `false`
-* key: `strip-aliased`
-
-Should aliases be removed before returning results?
-
-_If disabled:_
-
-```sh
-node example.js --test-field 1
-{ _: [], 'test-field': 1, testField: 1, 'test-alias': 1, testAlias: 1 }
-```
-
-_If enabled:_
-
-```sh
-node example.js --test-field 1
-{ _: [], 'test-field': 1, testField: 1 }
-```
-
-### strip dashed
-
-* default: `false`
-* key: `strip-dashed`
-
-Should dashed keys be removed before returning results? This option has no effect if
-`camel-case-exansion` is disabled.
-
-_If disabled:_
-
-```sh
-node example.js --test-field 1
-{ _: [], 'test-field': 1, testField: 1 }
-```
-
-_If enabled:_
-
-```sh
-node example.js --test-field 1
-{ _: [], testField: 1 }
-```
-
-## Special Thanks
-
-The yargs project evolves from optimist and minimist. It owes its
-existence to a lot of James Halliday's hard work. Thanks [substack](https://github.com/substack) **beep** **boop** \o/
-
-## License
-
-ISC
diff --git a/node_modules/yargs-parser/index.js b/node_modules/yargs-parser/index.js
deleted file mode 100644
index f9ee824..0000000
--- a/node_modules/yargs-parser/index.js
+++ /dev/null
@@ -1,916 +0,0 @@
-var camelCase = require('camelcase')
-var decamelize = require('decamelize')
-var path = require('path')
-var tokenizeArgString = require('./lib/tokenize-arg-string')
-var util = require('util')
-
-function parse (args, opts) {
- if (!opts) opts = {}
- // allow a string argument to be passed in rather
- // than an argv array.
- args = tokenizeArgString(args)
-
- // aliases might have transitive relationships, normalize this.
- var aliases = combineAliases(opts.alias || {})
- var configuration = Object.assign({
- 'short-option-groups': true,
- 'camel-case-expansion': true,
- 'dot-notation': true,
- 'parse-numbers': true,
- 'boolean-negation': true,
- 'negation-prefix': 'no-',
- 'duplicate-arguments-array': true,
- 'flatten-duplicate-arrays': true,
- 'populate--': false,
- 'combine-arrays': false,
- 'set-placeholder-key': false,
- 'halt-at-non-option': false,
- 'strip-aliased': false,
- 'strip-dashed': false
- }, opts.configuration)
- var defaults = opts.default || {}
- var configObjects = opts.configObjects || []
- var envPrefix = opts.envPrefix
- var notFlagsOption = configuration['populate--']
- var notFlagsArgv = notFlagsOption ? '--' : '_'
- var newAliases = {}
- // allow a i18n handler to be passed in, default to a fake one (util.format).
- var __ = opts.__ || util.format
- var error = null
- var flags = {
- aliases: {},
- arrays: {},
- bools: {},
- strings: {},
- numbers: {},
- counts: {},
- normalize: {},
- configs: {},
- defaulted: {},
- nargs: {},
- coercions: {},
- keys: []
- }
- var negative = /^-[0-9]+(\.[0-9]+)?/
- var negatedBoolean = new RegExp('^--' + configuration['negation-prefix'] + '(.+)')
-
- ;[].concat(opts.array).filter(Boolean).forEach(function (opt) {
- var key = opt.key || opt
-
- // assign to flags[bools|strings|numbers]
- const assignment = Object.keys(opt).map(function (key) {
- return ({
- boolean: 'bools',
- string: 'strings',
- number: 'numbers'
- })[key]
- }).filter(Boolean).pop()
-
- // assign key to be coerced
- if (assignment) {
- flags[assignment][key] = true
- }
-
- flags.arrays[key] = true
- flags.keys.push(key)
- })
-
- ;[].concat(opts.boolean).filter(Boolean).forEach(function (key) {
- flags.bools[key] = true
- flags.keys.push(key)
- })
-
- ;[].concat(opts.string).filter(Boolean).forEach(function (key) {
- flags.strings[key] = true
- flags.keys.push(key)
- })
-
- ;[].concat(opts.number).filter(Boolean).forEach(function (key) {
- flags.numbers[key] = true
- flags.keys.push(key)
- })
-
- ;[].concat(opts.count).filter(Boolean).forEach(function (key) {
- flags.counts[key] = true
- flags.keys.push(key)
- })
-
- ;[].concat(opts.normalize).filter(Boolean).forEach(function (key) {
- flags.normalize[key] = true
- flags.keys.push(key)
- })
-
- Object.keys(opts.narg || {}).forEach(function (k) {
- flags.nargs[k] = opts.narg[k]
- flags.keys.push(k)
- })
-
- Object.keys(opts.coerce || {}).forEach(function (k) {
- flags.coercions[k] = opts.coerce[k]
- flags.keys.push(k)
- })
-
- if (Array.isArray(opts.config) || typeof opts.config === 'string') {
- ;[].concat(opts.config).filter(Boolean).forEach(function (key) {
- flags.configs[key] = true
- })
- } else {
- Object.keys(opts.config || {}).forEach(function (k) {
- flags.configs[k] = opts.config[k]
- })
- }
-
- // create a lookup table that takes into account all
- // combinations of aliases: {f: ['foo'], foo: ['f']}
- extendAliases(opts.key, aliases, opts.default, flags.arrays)
-
- // apply default values to all aliases.
- Object.keys(defaults).forEach(function (key) {
- (flags.aliases[key] || []).forEach(function (alias) {
- defaults[alias] = defaults[key]
- })
- })
-
- var argv = { _: [] }
-
- Object.keys(flags.bools).forEach(function (key) {
- if (Object.prototype.hasOwnProperty.call(defaults, key)) {
- setArg(key, defaults[key])
- setDefaulted(key)
- }
- })
-
- var notFlags = []
-
- for (var i = 0; i < args.length; i++) {
- var arg = args[i]
- var broken
- var key
- var letters
- var m
- var next
- var value
-
- // -- separated by =
- if (arg.match(/^--.+=/) || (
- !configuration['short-option-groups'] && arg.match(/^-.+=/)
- )) {
- // Using [\s\S] instead of . because js doesn't support the
- // 'dotall' regex modifier. See:
- // http://stackoverflow.com/a/1068308/13216
- m = arg.match(/^--?([^=]+)=([\s\S]*)$/)
-
- // nargs format = '--f=monkey washing cat'
- if (checkAllAliases(m[1], flags.nargs)) {
- args.splice(i + 1, 0, m[2])
- i = eatNargs(i, m[1], args)
- // arrays format = '--f=a b c'
- } else if (checkAllAliases(m[1], flags.arrays) && args.length > i + 1) {
- args.splice(i + 1, 0, m[2])
- i = eatArray(i, m[1], args)
- } else {
- setArg(m[1], m[2])
- }
- } else if (arg.match(negatedBoolean) && configuration['boolean-negation']) {
- key = arg.match(negatedBoolean)[1]
- setArg(key, false)
-
- // -- seperated by space.
- } else if (arg.match(/^--.+/) || (
- !configuration['short-option-groups'] && arg.match(/^-[^-]+/)
- )) {
- key = arg.match(/^--?(.+)/)[1]
-
- // nargs format = '--foo a b c'
- if (checkAllAliases(key, flags.nargs)) {
- i = eatNargs(i, key, args)
- // array format = '--foo a b c'
- } else if (checkAllAliases(key, flags.arrays) && args.length > i + 1) {
- i = eatArray(i, key, args)
- } else {
- next = flags.nargs[key] === 0 ? undefined : args[i + 1]
-
- if (next !== undefined && (!next.match(/^-/) ||
- next.match(negative)) &&
- !checkAllAliases(key, flags.bools) &&
- !checkAllAliases(key, flags.counts)) {
- setArg(key, next)
- i++
- } else if (/^(true|false)$/.test(next)) {
- setArg(key, next)
- i++
- } else {
- setArg(key, defaultValue(key))
- }
- }
-
- // dot-notation flag seperated by '='.
- } else if (arg.match(/^-.\..+=/)) {
- m = arg.match(/^-([^=]+)=([\s\S]*)$/)
- setArg(m[1], m[2])
-
- // dot-notation flag seperated by space.
- } else if (arg.match(/^-.\..+/)) {
- next = args[i + 1]
- key = arg.match(/^-(.\..+)/)[1]
-
- if (next !== undefined && !next.match(/^-/) &&
- !checkAllAliases(key, flags.bools) &&
- !checkAllAliases(key, flags.counts)) {
- setArg(key, next)
- i++
- } else {
- setArg(key, defaultValue(key))
- }
- } else if (arg.match(/^-[^-]+/) && !arg.match(negative)) {
- letters = arg.slice(1, -1).split('')
- broken = false
-
- for (var j = 0; j < letters.length; j++) {
- next = arg.slice(j + 2)
-
- if (letters[j + 1] && letters[j + 1] === '=') {
- value = arg.slice(j + 3)
- key = letters[j]
-
- // nargs format = '-f=monkey washing cat'
- if (checkAllAliases(key, flags.nargs)) {
- args.splice(i + 1, 0, value)
- i = eatNargs(i, key, args)
- // array format = '-f=a b c'
- } else if (checkAllAliases(key, flags.arrays) && args.length > i + 1) {
- args.splice(i + 1, 0, value)
- i = eatArray(i, key, args)
- } else {
- setArg(key, value)
- }
-
- broken = true
- break
- }
-
- if (next === '-') {
- setArg(letters[j], next)
- continue
- }
-
- // current letter is an alphabetic character and next value is a number
- if (/[A-Za-z]/.test(letters[j]) &&
- /^-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
- setArg(letters[j], next)
- broken = true
- break
- }
-
- if (letters[j + 1] && letters[j + 1].match(/\W/)) {
- setArg(letters[j], next)
- broken = true
- break
- } else {
- setArg(letters[j], defaultValue(letters[j]))
- }
- }
-
- key = arg.slice(-1)[0]
-
- if (!broken && key !== '-') {
- // nargs format = '-f a b c'
- if (checkAllAliases(key, flags.nargs)) {
- i = eatNargs(i, key, args)
- // array format = '-f a b c'
- } else if (checkAllAliases(key, flags.arrays) && args.length > i + 1) {
- i = eatArray(i, key, args)
- } else {
- next = args[i + 1]
-
- if (next !== undefined && (!/^(-|--)[^-]/.test(next) ||
- next.match(negative)) &&
- !checkAllAliases(key, flags.bools) &&
- !checkAllAliases(key, flags.counts)) {
- setArg(key, next)
- i++
- } else if (/^(true|false)$/.test(next)) {
- setArg(key, next)
- i++
- } else {
- setArg(key, defaultValue(key))
- }
- }
- }
- } else if (arg === '--') {
- notFlags = args.slice(i + 1)
- break
- } else if (configuration['halt-at-non-option']) {
- notFlags = args.slice(i)
- break
- } else {
- argv._.push(maybeCoerceNumber('_', arg))
- }
- }
-
- // order of precedence:
- // 1. command line arg
- // 2. value from env var
- // 3. value from config file
- // 4. value from config objects
- // 5. configured default value
- applyEnvVars(argv, true) // special case: check env vars that point to config file
- applyEnvVars(argv, false)
- setConfig(argv)
- setConfigObjects()
- applyDefaultsAndAliases(argv, flags.aliases, defaults)
- applyCoercions(argv)
- if (configuration['set-placeholder-key']) setPlaceholderKeys(argv)
-
- // for any counts either not in args or without an explicit default, set to 0
- Object.keys(flags.counts).forEach(function (key) {
- if (!hasKey(argv, key.split('.'))) setArg(key, 0)
- })
-
- // '--' defaults to undefined.
- if (notFlagsOption && notFlags.length) argv[notFlagsArgv] = []
- notFlags.forEach(function (key) {
- argv[notFlagsArgv].push(key)
- })
-
- if (configuration['camel-case-expansion'] && configuration['strip-dashed']) {
- Object.keys(argv).filter(key => key !== '--' && key.includes('-')).forEach(key => {
- delete argv[key]
- })
- }
-
- if (configuration['strip-aliased']) {
- // XXX Switch to [].concat(...Object.values(aliases)) once node.js 6 is dropped
- ;[].concat(...Object.keys(aliases).map(k => aliases[k])).forEach(alias => {
- if (configuration['camel-case-expansion']) {
- delete argv[alias.split('.').map(prop => camelCase(prop)).join('.')]
- }
-
- delete argv[alias]
- })
- }
-
- // how many arguments should we consume, based
- // on the nargs option?
- function eatNargs (i, key, args) {
- var ii
- const toEat = checkAllAliases(key, flags.nargs)
-
- // nargs will not consume flag arguments, e.g., -abc, --foo,
- // and terminates when one is observed.
- var available = 0
- for (ii = i + 1; ii < args.length; ii++) {
- if (!args[ii].match(/^-[^0-9]/)) available++
- else break
- }
-
- if (available < toEat) error = Error(__('Not enough arguments following: %s', key))
-
- const consumed = Math.min(available, toEat)
- for (ii = i + 1; ii < (consumed + i + 1); ii++) {
- setArg(key, args[ii])
- }
-
- return (i + consumed)
- }
-
- // if an option is an array, eat all non-hyphenated arguments
- // following it... YUM!
- // e.g., --foo apple banana cat becomes ["apple", "banana", "cat"]
- function eatArray (i, key, args) {
- var start = i + 1
- var argsToSet = []
- var multipleArrayFlag = i > 0
- for (var ii = i + 1; ii < args.length; ii++) {
- if (/^-/.test(args[ii]) && !negative.test(args[ii])) {
- if (ii === start) {
- setArg(key, defaultForType('array'))
- }
- multipleArrayFlag = true
- break
- }
- i = ii
- argsToSet.push(args[ii])
- }
- if (multipleArrayFlag) {
- setArg(key, argsToSet.map(function (arg) {
- return processValue(key, arg)
- }))
- } else {
- argsToSet.forEach(function (arg) {
- setArg(key, arg)
- })
- }
-
- return i
- }
-
- function setArg (key, val) {
- unsetDefaulted(key)
-
- if (/-/.test(key) && configuration['camel-case-expansion']) {
- var alias = key.split('.').map(function (prop) {
- return camelCase(prop)
- }).join('.')
- addNewAlias(key, alias)
- }
-
- var value = processValue(key, val)
-
- var splitKey = key.split('.')
- setKey(argv, splitKey, value)
-
- // handle populating aliases of the full key
- if (flags.aliases[key] && flags.aliases[key].forEach) {
- flags.aliases[key].forEach(function (x) {
- x = x.split('.')
- setKey(argv, x, value)
- })
- }
-
- // handle populating aliases of the first element of the dot-notation key
- if (splitKey.length > 1 && configuration['dot-notation']) {
- ;(flags.aliases[splitKey[0]] || []).forEach(function (x) {
- x = x.split('.')
-
- // expand alias with nested objects in key
- var a = [].concat(splitKey)
- a.shift() // nuke the old key.
- x = x.concat(a)
-
- setKey(argv, x, value)
- })
- }
-
- // Set normalize getter and setter when key is in 'normalize' but isn't an array
- if (checkAllAliases(key, flags.normalize) && !checkAllAliases(key, flags.arrays)) {
- var keys = [key].concat(flags.aliases[key] || [])
- keys.forEach(function (key) {
- argv.__defineSetter__(key, function (v) {
- val = path.normalize(v)
- })
-
- argv.__defineGetter__(key, function () {
- return typeof val === 'string' ? path.normalize(val) : val
- })
- })
- }
- }
-
- function addNewAlias (key, alias) {
- if (!(flags.aliases[key] && flags.aliases[key].length)) {
- flags.aliases[key] = [alias]
- newAliases[alias] = true
- }
- if (!(flags.aliases[alias] && flags.aliases[alias].length)) {
- addNewAlias(alias, key)
- }
- }
-
- function processValue (key, val) {
- // strings may be quoted, clean this up as we assign values.
- if (typeof val === 'string' &&
- (val[0] === "'" || val[0] === '"') &&
- val[val.length - 1] === val[0]
- ) {
- val = val.substring(1, val.length - 1)
- }
-
- // handle parsing boolean arguments --foo=true --bar false.
- if (checkAllAliases(key, flags.bools) || checkAllAliases(key, flags.counts)) {
- if (typeof val === 'string') val = val === 'true'
- }
-
- var value = maybeCoerceNumber(key, val)
-
- // increment a count given as arg (either no value or value parsed as boolean)
- if (checkAllAliases(key, flags.counts) && (isUndefined(value) || typeof value === 'boolean')) {
- value = increment
- }
-
- // Set normalized value when key is in 'normalize' and in 'arrays'
- if (checkAllAliases(key, flags.normalize) && checkAllAliases(key, flags.arrays)) {
- if (Array.isArray(val)) value = val.map(path.normalize)
- else value = path.normalize(val)
- }
- return value
- }
-
- function maybeCoerceNumber (key, value) {
- if (!checkAllAliases(key, flags.strings) && !checkAllAliases(key, flags.coercions)) {
- const shouldCoerceNumber = isNumber(value) && configuration['parse-numbers'] && (
- Number.isSafeInteger(Math.floor(value))
- )
- if (shouldCoerceNumber || (!isUndefined(value) && checkAllAliases(key, flags.numbers))) value = Number(value)
- }
- return value
- }
-
- // set args from config.json file, this should be
- // applied last so that defaults can be applied.
- function setConfig (argv) {
- var configLookup = {}
-
- // expand defaults/aliases, in-case any happen to reference
- // the config.json file.
- applyDefaultsAndAliases(configLookup, flags.aliases, defaults)
-
- Object.keys(flags.configs).forEach(function (configKey) {
- var configPath = argv[configKey] || configLookup[configKey]
- if (configPath) {
- try {
- var config = null
- var resolvedConfigPath = path.resolve(process.cwd(), configPath)
-
- if (typeof flags.configs[configKey] === 'function') {
- try {
- config = flags.configs[configKey](resolvedConfigPath)
- } catch (e) {
- config = e
- }
- if (config instanceof Error) {
- error = config
- return
- }
- } else {
- config = require(resolvedConfigPath)
- }
-
- setConfigObject(config)
- } catch (ex) {
- if (argv[configKey]) error = Error(__('Invalid JSON config file: %s', configPath))
- }
- }
- })
- }
-
- // set args from config object.
- // it recursively checks nested objects.
- function setConfigObject (config, prev) {
- Object.keys(config).forEach(function (key) {
- var value = config[key]
- var fullKey = prev ? prev + '.' + key : key
-
- // if the value is an inner object and we have dot-notation
- // enabled, treat inner objects in config the same as
- // heavily nested dot notations (foo.bar.apple).
- if (typeof value === 'object' && value !== null && !Array.isArray(value) && configuration['dot-notation']) {
- // if the value is an object but not an array, check nested object
- setConfigObject(value, fullKey)
- } else {
- // setting arguments via CLI takes precedence over
- // values within the config file.
- if (!hasKey(argv, fullKey.split('.')) || (flags.defaulted[fullKey]) || (flags.arrays[fullKey] && configuration['combine-arrays'])) {
- setArg(fullKey, value)
- }
- }
- })
- }
-
- // set all config objects passed in opts
- function setConfigObjects () {
- if (typeof configObjects === 'undefined') return
- configObjects.forEach(function (configObject) {
- setConfigObject(configObject)
- })
- }
-
- function applyEnvVars (argv, configOnly) {
- if (typeof envPrefix === 'undefined') return
-
- var prefix = typeof envPrefix === 'string' ? envPrefix : ''
- Object.keys(process.env).forEach(function (envVar) {
- if (prefix === '' || envVar.lastIndexOf(prefix, 0) === 0) {
- // get array of nested keys and convert them to camel case
- var keys = envVar.split('__').map(function (key, i) {
- if (i === 0) {
- key = key.substring(prefix.length)
- }
- return camelCase(key)
- })
-
- if (((configOnly && flags.configs[keys.join('.')]) || !configOnly) && (!hasKey(argv, keys) || flags.defaulted[keys.join('.')])) {
- setArg(keys.join('.'), process.env[envVar])
- }
- }
- })
- }
-
- function applyCoercions (argv) {
- var coerce
- var applied = {}
- Object.keys(argv).forEach(function (key) {
- if (!applied.hasOwnProperty(key)) { // If we haven't already coerced this option via one of its aliases
- coerce = checkAllAliases(key, flags.coercions)
- if (typeof coerce === 'function') {
- try {
- var value = coerce(argv[key])
- ;([].concat(flags.aliases[key] || [], key)).forEach(ali => {
- applied[ali] = argv[ali] = value
- })
- } catch (err) {
- error = err
- }
- }
- }
- })
- }
-
- function setPlaceholderKeys (argv) {
- flags.keys.forEach((key) => {
- // don't set placeholder keys for dot notation options 'foo.bar'.
- if (~key.indexOf('.')) return
- if (typeof argv[key] === 'undefined') argv[key] = undefined
- })
- return argv
- }
-
- function applyDefaultsAndAliases (obj, aliases, defaults) {
- Object.keys(defaults).forEach(function (key) {
- if (!hasKey(obj, key.split('.'))) {
- setKey(obj, key.split('.'), defaults[key])
-
- ;(aliases[key] || []).forEach(function (x) {
- if (hasKey(obj, x.split('.'))) return
- setKey(obj, x.split('.'), defaults[key])
- })
- }
- })
- }
-
- function hasKey (obj, keys) {
- var o = obj
-
- if (!configuration['dot-notation']) keys = [keys.join('.')]
-
- keys.slice(0, -1).forEach(function (key) {
- o = (o[key] || {})
- })
-
- var key = keys[keys.length - 1]
-
- if (typeof o !== 'object') return false
- else return key in o
- }
-
- function setKey (obj, keys, value) {
- var o = obj
-
- if (!configuration['dot-notation']) keys = [keys.join('.')]
-
- keys.slice(0, -1).forEach(function (key, index) {
- // TODO(bcoe): in the next major version of yargs, switch to
- // Object.create(null) for dot notation:
- key = sanitizeKey(key)
-
- if (typeof o === 'object' && o[key] === undefined) {
- o[key] = {}
- }
-
- if (typeof o[key] !== 'object' || Array.isArray(o[key])) {
- // ensure that o[key] is an array, and that the last item is an empty object.
- if (Array.isArray(o[key])) {
- o[key].push({})
- } else {
- o[key] = [o[key], {}]
- }
-
- // we want to update the empty object at the end of the o[key] array, so set o to that object
- o = o[key][o[key].length - 1]
- } else {
- o = o[key]
- }
- })
-
- // TODO(bcoe): in the next major version of yargs, switch to
- // Object.create(null) for dot notation:
- const key = sanitizeKey(keys[keys.length - 1])
-
- const isTypeArray = checkAllAliases(keys.join('.'), flags.arrays)
- const isValueArray = Array.isArray(value)
- let duplicate = configuration['duplicate-arguments-array']
-
- // nargs has higher priority than duplicate
- if (!duplicate && checkAllAliases(key, flags.nargs)) {
- duplicate = true
- if ((!isUndefined(o[key]) && flags.nargs[key] === 1) || (Array.isArray(o[key]) && o[key].length === flags.nargs[key])) {
- o[key] = undefined
- }
- }
-
- if (value === increment) {
- o[key] = increment(o[key])
- } else if (Array.isArray(o[key])) {
- if (duplicate && isTypeArray && isValueArray) {
- o[key] = configuration['flatten-duplicate-arrays'] ? o[key].concat(value) : (Array.isArray(o[key][0]) ? o[key] : [o[key]]).concat([value])
- } else if (!duplicate && Boolean(isTypeArray) === Boolean(isValueArray)) {
- o[key] = value
- } else {
- o[key] = o[key].concat([value])
- }
- } else if (o[key] === undefined && isTypeArray) {
- o[key] = isValueArray ? value : [value]
- } else if (duplicate && !(o[key] === undefined || checkAllAliases(key, flags.bools) || checkAllAliases(keys.join('.'), flags.bools) || checkAllAliases(key, flags.counts))) {
- o[key] = [ o[key], value ]
- } else {
- o[key] = value
- }
- }
-
- // extend the aliases list with inferred aliases.
- function extendAliases (...args) {
- args.forEach(function (obj) {
- Object.keys(obj || {}).forEach(function (key) {
- // short-circuit if we've already added a key
- // to the aliases array, for example it might
- // exist in both 'opts.default' and 'opts.key'.
- if (flags.aliases[key]) return
-
- flags.aliases[key] = [].concat(aliases[key] || [])
- // For "--option-name", also set argv.optionName
- flags.aliases[key].concat(key).forEach(function (x) {
- if (/-/.test(x) && configuration['camel-case-expansion']) {
- var c = camelCase(x)
- if (c !== key && flags.aliases[key].indexOf(c) === -1) {
- flags.aliases[key].push(c)
- newAliases[c] = true
- }
- }
- })
- // For "--optionName", also set argv['option-name']
- flags.aliases[key].concat(key).forEach(function (x) {
- if (x.length > 1 && /[A-Z]/.test(x) && configuration['camel-case-expansion']) {
- var c = decamelize(x, '-')
- if (c !== key && flags.aliases[key].indexOf(c) === -1) {
- flags.aliases[key].push(c)
- newAliases[c] = true
- }
- }
- })
- flags.aliases[key].forEach(function (x) {
- flags.aliases[x] = [key].concat(flags.aliases[key].filter(function (y) {
- return x !== y
- }))
- })
- })
- })
- }
-
- // check if a flag is set for any of a key's aliases.
- function checkAllAliases (key, flag) {
- var isSet = false
- var toCheck = [].concat(flags.aliases[key] || [], key)
-
- toCheck.forEach(function (key) {
- if (flag[key]) isSet = flag[key]
- })
-
- return isSet
- }
-
- function setDefaulted (key) {
- [].concat(flags.aliases[key] || [], key).forEach(function (k) {
- flags.defaulted[k] = true
- })
- }
-
- function unsetDefaulted (key) {
- [].concat(flags.aliases[key] || [], key).forEach(function (k) {
- delete flags.defaulted[k]
- })
- }
-
- // make a best effor to pick a default value
- // for an option based on name and type.
- function defaultValue (key) {
- if (!checkAllAliases(key, flags.bools) &&
- !checkAllAliases(key, flags.counts) &&
- `${key}` in defaults) {
- return defaults[key]
- } else {
- return defaultForType(guessType(key))
- }
- }
-
- // return a default value, given the type of a flag.,
- // e.g., key of type 'string' will default to '', rather than 'true'.
- function defaultForType (type) {
- var def = {
- boolean: true,
- string: '',
- number: undefined,
- array: []
- }
-
- return def[type]
- }
-
- // given a flag, enforce a default type.
- function guessType (key) {
- var type = 'boolean'
-
- if (checkAllAliases(key, flags.strings)) type = 'string'
- else if (checkAllAliases(key, flags.numbers)) type = 'number'
- else if (checkAllAliases(key, flags.arrays)) type = 'array'
-
- return type
- }
-
- function isNumber (x) {
- if (x === null || x === undefined) return false
- // if loaded from config, may already be a number.
- if (typeof x === 'number') return true
- // hexadecimal.
- if (/^0x[0-9a-f]+$/i.test(x)) return true
- // don't treat 0123 as a number; as it drops the leading '0'.
- if (x.length > 1 && x[0] === '0') return false
- return /^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x)
- }
-
- function isUndefined (num) {
- return num === undefined
- }
-
- return {
- argv: argv,
- error: error,
- aliases: flags.aliases,
- newAliases: newAliases,
- configuration: configuration
- }
-}
-
-// if any aliases reference each other, we should
-// merge them together.
-function combineAliases (aliases) {
- var aliasArrays = []
- var change = true
- var combined = {}
-
- // turn alias lookup hash {key: ['alias1', 'alias2']} into
- // a simple array ['key', 'alias1', 'alias2']
- Object.keys(aliases).forEach(function (key) {
- aliasArrays.push(
- [].concat(aliases[key], key)
- )
- })
-
- // combine arrays until zero changes are
- // made in an iteration.
- while (change) {
- change = false
- for (var i = 0; i < aliasArrays.length; i++) {
- for (var ii = i + 1; ii < aliasArrays.length; ii++) {
- var intersect = aliasArrays[i].filter(function (v) {
- return aliasArrays[ii].indexOf(v) !== -1
- })
-
- if (intersect.length) {
- aliasArrays[i] = aliasArrays[i].concat(aliasArrays[ii])
- aliasArrays.splice(ii, 1)
- change = true
- break
- }
- }
- }
- }
-
- // map arrays back to the hash-lookup (de-dupe while
- // we're at it).
- aliasArrays.forEach(function (aliasArray) {
- aliasArray = aliasArray.filter(function (v, i, self) {
- return self.indexOf(v) === i
- })
- combined[aliasArray.pop()] = aliasArray
- })
-
- return combined
-}
-
-// this function should only be called when a count is given as an arg
-// it is NOT called to set a default value
-// thus we can start the count at 1 instead of 0
-function increment (orig) {
- return orig !== undefined ? orig + 1 : 1
-}
-
-function Parser (args, opts) {
- var result = parse(args.slice(), opts)
-
- return result.argv
-}
-
-// parse arguments and return detailed
-// meta information, aliases, etc.
-Parser.detailed = function (args, opts) {
- return parse(args.slice(), opts)
-}
-
-// TODO(bcoe): in the next major version of yargs, switch to
-// Object.create(null) for dot notation:
-function sanitizeKey (key) {
- if (key === '__proto__') return '___proto___'
- return key
-}
-
-module.exports = Parser
diff --git a/node_modules/yargs-parser/lib/tokenize-arg-string.js b/node_modules/yargs-parser/lib/tokenize-arg-string.js
deleted file mode 100644
index fe05e27..0000000
--- a/node_modules/yargs-parser/lib/tokenize-arg-string.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// take an un-split argv string and tokenize it.
-module.exports = function (argString) {
- if (Array.isArray(argString)) {
- return argString.map(e => typeof e !== 'string' ? e + '' : e)
- }
-
- argString = argString.trim()
-
- var i = 0
- var prevC = null
- var c = null
- var opening = null
- var args = []
-
- for (var ii = 0; ii < argString.length; ii++) {
- prevC = c
- c = argString.charAt(ii)
-
- // split on spaces unless we're in quotes.
- if (c === ' ' && !opening) {
- if (!(prevC === ' ')) {
- i++
- }
- continue
- }
-
- // don't split the string if we're in matching
- // opening or closing single and double quotes.
- if (c === opening) {
- opening = null
- } else if ((c === "'" || c === '"') && !opening) {
- opening = c
- }
-
- if (!args[i]) args[i] = ''
- args[i] += c
- }
-
- return args
-}
diff --git a/node_modules/yargs-parser/node_modules/camelcase/index.d.ts b/node_modules/yargs-parser/node_modules/camelcase/index.d.ts
deleted file mode 100644
index 58f2069..0000000
--- a/node_modules/yargs-parser/node_modules/camelcase/index.d.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-declare namespace camelcase {
- interface Options {
- /**
- Uppercase the first character: `foo-bar` → `FooBar`.
-
- @default false
- */
- readonly pascalCase?: boolean;
- }
-}
-
-declare const camelcase: {
- /**
- Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`.
-
- @param input - String to convert to camel case.
-
- @example
- ```
- import camelCase = require('camelcase');
-
- camelCase('foo-bar');
- //=> 'fooBar'
-
- camelCase('foo_bar');
- //=> 'fooBar'
-
- camelCase('Foo-Bar');
- //=> 'fooBar'
-
- camelCase('Foo-Bar', {pascalCase: true});
- //=> 'FooBar'
-
- camelCase('--foo.bar', {pascalCase: false});
- //=> 'fooBar'
-
- camelCase('foo bar');
- //=> 'fooBar'
-
- console.log(process.argv[3]);
- //=> '--foo-bar'
- camelCase(process.argv[3]);
- //=> 'fooBar'
-
- camelCase(['foo', 'bar']);
- //=> 'fooBar'
-
- camelCase(['__foo__', '--bar'], {pascalCase: true});
- //=> 'FooBar'
- ```
- */
- (input: string | ReadonlyArray<string>, options?: camelcase.Options): string;
-
- // TODO: Remove this for the next major release, refactor the whole definition to:
- // declare function camelcase(
- // input: string | ReadonlyArray<string>,
- // options?: camelcase.Options
- // ): string;
- // export = camelcase;
- default: typeof camelcase;
-};
-
-export = camelcase;
diff --git a/node_modules/yargs-parser/node_modules/camelcase/index.js b/node_modules/yargs-parser/node_modules/camelcase/index.js
deleted file mode 100644
index 579f99b..0000000
--- a/node_modules/yargs-parser/node_modules/camelcase/index.js
+++ /dev/null
@@ -1,76 +0,0 @@
-'use strict';
-
-const preserveCamelCase = string => {
- let isLastCharLower = false;
- let isLastCharUpper = false;
- let isLastLastCharUpper = false;
-
- for (let i = 0; i < string.length; i++) {
- const character = string[i];
-
- if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) {
- string = string.slice(0, i) + '-' + string.slice(i);
- isLastCharLower = false;
- isLastLastCharUpper = isLastCharUpper;
- isLastCharUpper = true;
- i++;
- } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) {
- string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
- isLastLastCharUpper = isLastCharUpper;
- isLastCharUpper = false;
- isLastCharLower = true;
- } else {
- isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character;
- isLastLastCharUpper = isLastCharUpper;
- isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character;
- }
- }
-
- return string;
-};
-
-const camelCase = (input, options) => {
- if (!(typeof input === 'string' || Array.isArray(input))) {
- throw new TypeError('Expected the input to be `string | string[]`');
- }
-
- options = Object.assign({
- pascalCase: false
- }, options);
-
- const postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x;
-
- if (Array.isArray(input)) {
- input = input.map(x => x.trim())
- .filter(x => x.length)
- .join('-');
- } else {
- input = input.trim();
- }
-
- if (input.length === 0) {
- return '';
- }
-
- if (input.length === 1) {
- return options.pascalCase ? input.toUpperCase() : input.toLowerCase();
- }
-
- const hasUpperCase = input !== input.toLowerCase();
-
- if (hasUpperCase) {
- input = preserveCamelCase(input);
- }
-
- input = input
- .replace(/^[_.\- ]+/, '')
- .toLowerCase()
- .replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase())
- .replace(/\d+(\w|$)/g, m => m.toUpperCase());
-
- return postProcess(input);
-};
-
-module.exports = camelCase;
-// TODO: Remove this for the next major release
-module.exports.default = camelCase;
diff --git a/node_modules/yargs-parser/node_modules/camelcase/license b/node_modules/yargs-parser/node_modules/camelcase/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/yargs-parser/node_modules/camelcase/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/yargs-parser/node_modules/camelcase/package.json b/node_modules/yargs-parser/node_modules/camelcase/package.json
deleted file mode 100644
index 93de4c2..0000000
--- a/node_modules/yargs-parser/node_modules/camelcase/package.json
+++ /dev/null
@@ -1,75 +0,0 @@
-{
- "_from": "camelcase@^5.0.0",
- "_id": "camelcase@5.3.1",
- "_inBundle": false,
- "_integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
- "_location": "/yargs-parser/camelcase",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "camelcase@^5.0.0",
- "name": "camelcase",
- "escapedName": "camelcase",
- "rawSpec": "^5.0.0",
- "saveSpec": null,
- "fetchSpec": "^5.0.0"
- },
- "_requiredBy": [
- "/yargs-parser"
- ],
- "_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
- "_shasum": "e3c9b31569e106811df242f715725a1f4c494320",
- "_spec": "camelcase@^5.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs-parser",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/camelcase/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`",
- "devDependencies": {
- "ava": "^1.4.1",
- "tsd": "^0.7.1",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "homepage": "https://github.com/sindresorhus/camelcase#readme",
- "keywords": [
- "camelcase",
- "camel-case",
- "camel",
- "case",
- "dash",
- "hyphen",
- "dot",
- "underscore",
- "separator",
- "string",
- "text",
- "convert",
- "pascalcase",
- "pascal-case"
- ],
- "license": "MIT",
- "name": "camelcase",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/camelcase.git"
- },
- "scripts": {
- "test": "xo && ava && tsd"
- },
- "version": "5.3.1"
-}
diff --git a/node_modules/yargs-parser/node_modules/camelcase/readme.md b/node_modules/yargs-parser/node_modules/camelcase/readme.md
deleted file mode 100644
index fde2726..0000000
--- a/node_modules/yargs-parser/node_modules/camelcase/readme.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase)
-
-> Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=readme">Get professional support for 'camelcase' with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-## Install
-
-```
-$ npm install camelcase
-```
-
-
-## Usage
-
-```js
-const camelCase = require('camelcase');
-
-camelCase('foo-bar');
-//=> 'fooBar'
-
-camelCase('foo_bar');
-//=> 'fooBar'
-
-camelCase('Foo-Bar');
-//=> 'fooBar'
-
-camelCase('Foo-Bar', {pascalCase: true});
-//=> 'FooBar'
-
-camelCase('--foo.bar', {pascalCase: false});
-//=> 'fooBar'
-
-camelCase('foo bar');
-//=> 'fooBar'
-
-console.log(process.argv[3]);
-//=> '--foo-bar'
-camelCase(process.argv[3]);
-//=> 'fooBar'
-
-camelCase(['foo', 'bar']);
-//=> 'fooBar'
-
-camelCase(['__foo__', '--bar'], {pascalCase: true});
-//=> 'FooBar'
-```
-
-
-## API
-
-### camelCase(input, [options])
-
-#### input
-
-Type: `string` `string[]`
-
-String to convert to camel case.
-
-#### options
-
-Type: `Object`
-
-##### pascalCase
-
-Type: `boolean`<br>
-Default: `false`
-
-Uppercase the first character: `foo-bar` → `FooBar`
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## Related
-
-- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module
-- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase
-- [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string
-- [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/yargs-parser/package.json b/node_modules/yargs-parser/package.json
deleted file mode 100644
index 701334b..0000000
--- a/node_modules/yargs-parser/package.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_from": "yargs-parser@^13.1.2",
- "_id": "yargs-parser@13.1.2",
- "_inBundle": false,
- "_integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
- "_location": "/yargs-parser",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "yargs-parser@^13.1.2",
- "name": "yargs-parser",
- "escapedName": "yargs-parser",
- "rawSpec": "^13.1.2",
- "saveSpec": null,
- "fetchSpec": "^13.1.2"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
- "_shasum": "130f09702ebaeef2650d54ce6e3e5706f7a4fb38",
- "_spec": "yargs-parser@^13.1.2",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "Ben Coe",
- "email": "ben@npmjs.com"
- },
- "bugs": {
- "url": "https://github.com/yargs/yargs-parser/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- },
- "deprecated": false,
- "description": "the mighty option parser used by yargs",
- "devDependencies": {
- "chai": "^4.2.0",
- "coveralls": "^3.0.2",
- "mocha": "^5.2.0",
- "nyc": "^14.1.0",
- "standard": "^12.0.1",
- "standard-version": "^6.0.0"
- },
- "engine": {
- "node": ">=6"
- },
- "files": [
- "lib",
- "index.js"
- ],
- "homepage": "https://github.com/yargs/yargs-parser#readme",
- "keywords": [
- "argument",
- "parser",
- "yargs",
- "command",
- "cli",
- "parsing",
- "option",
- "args",
- "argument"
- ],
- "license": "ISC",
- "main": "index.js",
- "name": "yargs-parser",
- "repository": {
- "url": "git+ssh://git@github.com/yargs/yargs-parser.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "posttest": "standard",
- "release": "standard-version",
- "test": "nyc mocha test/*.js"
- },
- "version": "13.1.2"
-}
diff --git a/node_modules/yargs/CHANGELOG.md b/node_modules/yargs/CHANGELOG.md
deleted file mode 100644
index d789870..0000000
--- a/node_modules/yargs/CHANGELOG.md
+++ /dev/null
@@ -1,1335 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-## [13.3.0](https://www.github.com/yargs/yargs/compare/v13.2.4...v13.3.0) (2019-06-10)
-
-
-### Bug Fixes
-
-* **deps:** yargs-parser update addressing several parsing bugs ([#1357](https://www.github.com/yargs/yargs/issues/1357)) ([e230d5b](https://www.github.com/yargs/yargs/commit/e230d5b))
-
-
-### Features
-
-* **i18n:** swap out os-locale dependency for simple inline implementation ([#1356](https://www.github.com/yargs/yargs/issues/1356)) ([4dfa19b](https://www.github.com/yargs/yargs/commit/4dfa19b))
-* support defaultDescription for positional arguments ([812048c](https://www.github.com/yargs/yargs/commit/812048c))
-
-### [13.2.4](https://github.com/yargs/yargs/compare/v13.2.3...v13.2.4) (2019-05-13)
-
-
-### Bug Fixes
-
-* **i18n:** rename unclear 'implication failed' to 'missing dependent arguments' ([#1317](https://github.com/yargs/yargs/issues/1317)) ([bf46813](https://github.com/yargs/yargs/commit/bf46813))
-
-
-
-### [13.2.3](https://github.com/yargs/yargs/compare/v13.2.2...v13.2.3) (2019-05-05)
-
-
-### Bug Fixes
-
-* **deps:** upgrade cliui for compatibility with latest chalk. ([#1330](https://github.com/yargs/yargs/issues/1330)) ([b20db65](https://github.com/yargs/yargs/commit/b20db65))
-* address issues with dutch translation ([#1316](https://github.com/yargs/yargs/issues/1316)) ([0295132](https://github.com/yargs/yargs/commit/0295132))
-
-
-### Tests
-
-* accept differently formatted output ([#1327](https://github.com/yargs/yargs/issues/1327)) ([c294d1b](https://github.com/yargs/yargs/commit/c294d1b))
-
-
-
-## [13.2.2](https://github.com/yargs/yargs/compare/v13.2.1...v13.2.2) (2019-03-06)
-
-
-
-## [13.2.1](https://github.com/yargs/yargs/compare/v13.2.0...v13.2.1) (2019-02-18)
-
-
-### Bug Fixes
-
-* add zsh script to files array ([3180224](https://github.com/yargs/yargs/commit/3180224))
-* support options/sub-commands in zsh completion ([0a96394](https://github.com/yargs/yargs/commit/0a96394))
-
-
-# [13.2.0](https://github.com/yargs/yargs/compare/v13.1.0...v13.2.0) (2019-02-15)
-
-
-### Features
-
-* zsh auto completion ([#1292](https://github.com/yargs/yargs/issues/1292)) ([16c5d25](https://github.com/yargs/yargs/commit/16c5d25)), closes [#1156](https://github.com/yargs/yargs/issues/1156)
-
-
-<a name="13.1.0"></a>
-# [13.1.0](https://github.com/yargs/yargs/compare/v13.0.0...v13.1.0) (2019-02-12)
-
-
-### Features
-
-* add applyBeforeValidation, for applying sync middleware before validation ([5be206a](https://github.com/yargs/yargs/commit/5be206a))
-
-
-
-<a name="13.0.0"></a>
-# [13.0.0](https://github.com/yargs/yargs/compare/v12.0.5...v13.0.0) (2019-02-02)
-
-
-### Bug Fixes
-
-* **deps:** Update os-locale to avoid security vulnerability ([#1270](https://github.com/yargs/yargs/issues/1270)) ([27bf739](https://github.com/yargs/yargs/commit/27bf739))
-* **validation:** Use the error as a message when none exists otherwise ([#1268](https://github.com/yargs/yargs/issues/1268)) ([0510fe6](https://github.com/yargs/yargs/commit/0510fe6))
-* better bash path completion ([#1272](https://github.com/yargs/yargs/issues/1272)) ([da75ea2](https://github.com/yargs/yargs/commit/da75ea2))
-* middleware added multiple times due to reference bug ([#1282](https://github.com/yargs/yargs/issues/1282)) ([64af518](https://github.com/yargs/yargs/commit/64af518))
-
-
-### Chores
-
-* ~drop Node 6 from testing matrix ([#1287](https://github.com/yargs/yargs/issues/1287)) ([ef16792](https://github.com/yargs/yargs/commit/ef16792))~
- * _opting to not drop Node 6 support until April, [see](https://github.com/nodejs/Release)._
-* update dependencies ([#1284](https://github.com/yargs/yargs/issues/1284)) ([f25de4f](https://github.com/yargs/yargs/commit/f25de4f))
-
-
-### Features
-
-* Add `.parserConfiguration()` method, deprecating package.json config ([#1262](https://github.com/yargs/yargs/issues/1262)) ([3c6869a](https://github.com/yargs/yargs/commit/3c6869a))
-* adds config option for sorting command output ([#1256](https://github.com/yargs/yargs/issues/1256)) ([6916ce9](https://github.com/yargs/yargs/commit/6916ce9))
-* options/positionals with leading '+' and '0' no longer parse as numbers ([#1286](https://github.com/yargs/yargs/issues/1286)) ([e9dc3aa](https://github.com/yargs/yargs/commit/e9dc3aa))
-* support promises in middleware ([f3a4e4f](https://github.com/yargs/yargs/commit/f3a4e4f))
-
-
-### BREAKING CHANGES
-
-* options with leading '+' or '0' now parse as strings
-* dropping Node 6 which hits end of life in April 2019
-* see [yargs-parser@12.0.0 CHANGELOG](https://github.com/yargs/yargs-parser/blob/master/CHANGELOG.md#breaking-changes)
-* we now warn if the yargs stanza package.json is used.
-
-
-
-<a name="12.0.5"></a>
-## [12.0.5](https://github.com/yargs/yargs/compare/v12.0.4...v12.0.5) (2018-11-19)
-
-
-### Bug Fixes
-
-* allows camel-case, variadic arguments, and strict mode to be combined ([#1247](https://github.com/yargs/yargs/issues/1247)) ([eacc035](https://github.com/yargs/yargs/commit/eacc035))
-
-
-
-<a name="12.0.4"></a>
-## [12.0.4](https://github.com/yargs/yargs/compare/v12.0.3...v12.0.4) (2018-11-10)
-
-
-### Bug Fixes
-
-* don't load config when processing positionals ([5d0dc92](https://github.com/yargs/yargs/commit/5d0dc92))
-
-
-
-<a name="12.0.3"></a>
-## [12.0.3](https://github.com/yargs/yargs/compare/v12.0.2...v12.0.3) (2018-10-06)
-
-
-### Bug Fixes
-
-* $0 contains first arg in bundled electron apps ([#1206](https://github.com/yargs/yargs/issues/1206)) ([567820b](https://github.com/yargs/yargs/commit/567820b))
-* accept single function for middleware ([66fd6f7](https://github.com/yargs/yargs/commit/66fd6f7)), closes [#1214](https://github.com/yargs/yargs/issues/1214) [#1214](https://github.com/yargs/yargs/issues/1214)
-* hide `hidden` options from help output even if they are in a group ([#1221](https://github.com/yargs/yargs/issues/1221)) ([da54028](https://github.com/yargs/yargs/commit/da54028))
-* improve Norwegian Bokmål translations ([#1208](https://github.com/yargs/yargs/issues/1208)) ([a458fa4](https://github.com/yargs/yargs/commit/a458fa4))
-* improve Norwegian Nynorsk translations ([#1207](https://github.com/yargs/yargs/issues/1207)) ([d422eb5](https://github.com/yargs/yargs/commit/d422eb5))
-
-
-
-<a name="12.0.2"></a>
-## [12.0.2](https://github.com/yargs/yargs/compare/v12.0.1...v12.0.2) (2018-09-04)
-
-
-### Bug Fixes
-
-* middleware should work regardless of when method is called ([664b265](https://github.com/yargs/yargs/commit/664b265)), closes [#1178](https://github.com/yargs/yargs/issues/1178)
-* translation not working when using __ with a single parameter ([#1183](https://github.com/yargs/yargs/issues/1183)) ([f449aea](https://github.com/yargs/yargs/commit/f449aea))
-* upgrade os-locale to version that addresses license issue ([#1195](https://github.com/yargs/yargs/issues/1195)) ([efc0970](https://github.com/yargs/yargs/commit/efc0970))
-
-
-
-<a name="12.0.1"></a>
-## [12.0.1](https://github.com/yargs/yargs/compare/v12.0.0...v12.0.1) (2018-06-29)
-
-
-
-<a name="12.0.0"></a>
-# [12.0.0](https://github.com/yargs/yargs/compare/v11.1.0...v12.0.0) (2018-06-26)
-
-
-### Bug Fixes
-
-* .argv and .parse() now invoke identical code path ([#1126](https://github.com/yargs/yargs/issues/1126)) ([f13ebf4](https://github.com/yargs/yargs/commit/f13ebf4))
-* remove the trailing white spaces from the help output ([#1090](https://github.com/yargs/yargs/issues/1090)) ([3f0746c](https://github.com/yargs/yargs/commit/3f0746c))
-* **completion:** Avoid default command and recommendations during completion ([#1123](https://github.com/yargs/yargs/issues/1123)) ([036e7c5](https://github.com/yargs/yargs/commit/036e7c5))
-
-
-### Chores
-
-* test Node.js 6, 8 and 10 ([#1160](https://github.com/yargs/yargs/issues/1160)) ([84f9d2b](https://github.com/yargs/yargs/commit/84f9d2b))
-* upgrade to version of yargs-parser that does not populate value for unset boolean ([#1104](https://github.com/yargs/yargs/issues/1104)) ([d4705f4](https://github.com/yargs/yargs/commit/d4705f4))
-
-
-### Features
-
-* add support for global middleware, useful for shared tasks like metrics ([#1119](https://github.com/yargs/yargs/issues/1119)) ([9d71ac7](https://github.com/yargs/yargs/commit/9d71ac7))
-* allow setting scriptName $0 ([#1143](https://github.com/yargs/yargs/issues/1143)) ([a2f2eae](https://github.com/yargs/yargs/commit/a2f2eae))
-* remove `setPlaceholderKeys` ([#1105](https://github.com/yargs/yargs/issues/1105)) ([6ee2c82](https://github.com/yargs/yargs/commit/6ee2c82))
-
-
-### BREAKING CHANGES
-
-* Options absent from `argv` (not set via CLI argument) are now absent from the parsed result object rather than being set with `undefined`
-* drop Node 4 from testing matrix, such that we'll gradually start drifting away from supporting Node 4.
-* yargs-parser does not populate 'false' when boolean flag is not passed
-* tests that assert against help output will need to be updated
-
-
-
-<a name="11.1.0"></a>
-# [11.1.0](https://github.com/yargs/yargs/compare/v11.0.0...v11.1.0) (2018-03-04)
-
-
-### Bug Fixes
-
-* choose correct config directory when require.main does not exist ([#1056](https://github.com/yargs/yargs/issues/1056)) ([a04678c](https://github.com/yargs/yargs/commit/a04678c))
-
-
-### Features
-
-* allow hidden options to be displayed with --show-hidden ([#1061](https://github.com/yargs/yargs/issues/1061)) ([ea862ae](https://github.com/yargs/yargs/commit/ea862ae))
-* extend *.rc files in addition to json ([#1080](https://github.com/yargs/yargs/issues/1080)) ([11691a6](https://github.com/yargs/yargs/commit/11691a6))
-
-
-
-<a name="11.0.0"></a>
-# [11.0.0](https://github.com/yargs/yargs/compare/v10.1.2...v11.0.0) (2018-01-22)
-
-
-### Bug Fixes
-
-* Set implicit nargs=1 when type=number requiresArg=true ([#1050](https://github.com/yargs/yargs/issues/1050)) ([2b56812](https://github.com/yargs/yargs/commit/2b56812))
-
-
-### Features
-
-* requiresArg is now simply an alias for nargs(1) ([#1054](https://github.com/yargs/yargs/issues/1054)) ([a3ddacc](https://github.com/yargs/yargs/commit/a3ddacc))
-
-
-### BREAKING CHANGES
-
-* requiresArg now has significantly different error output, matching nargs.
-
-
-
-<a name="10.1.2"></a>
-## [10.1.2](https://github.com/yargs/yargs/compare/v10.1.1...v10.1.2) (2018-01-17)
-
-
-### Bug Fixes
-
-* requiresArg should only be enforced if argument exists ([#1043](https://github.com/yargs/yargs/issues/1043)) ([fbf41ae](https://github.com/yargs/yargs/commit/fbf41ae))
-
-
-
-<a name="10.1.1"></a>
-## [10.1.1](https://github.com/yargs/yargs/compare/v10.1.0...v10.1.1) (2018-01-09)
-
-
-### Bug Fixes
-
-* Add `dirname` sanity check on `findUp` ([#1036](https://github.com/yargs/yargs/issues/1036)) ([331d103](https://github.com/yargs/yargs/commit/331d103))
-
-
-
-<a name="10.1.0"></a>
-# [10.1.0](https://github.com/yargs/yargs/compare/v10.0.3...v10.1.0) (2018-01-01)
-
-
-### Bug Fixes
-
-* 'undefined' should be taken to mean no argument was provided ([#1015](https://github.com/yargs/yargs/issues/1015)) ([c679e90](https://github.com/yargs/yargs/commit/c679e90))
-
-
-### Features
-
-* add missing simple chinese locale strings ([#1004](https://github.com/yargs/yargs/issues/1004)) ([3cc24ec](https://github.com/yargs/yargs/commit/3cc24ec))
-* add Norwegian Nynorsk translations ([#1028](https://github.com/yargs/yargs/issues/1028)) ([a5ac213](https://github.com/yargs/yargs/commit/a5ac213))
-* async command handlers ([#1001](https://github.com/yargs/yargs/issues/1001)) ([241124b](https://github.com/yargs/yargs/commit/241124b))
-* middleware ([#881](https://github.com/yargs/yargs/issues/881)) ([77b8dbc](https://github.com/yargs/yargs/commit/77b8dbc))
-
-
-
-<a name="10.0.3"></a>
-## [10.0.3](https://github.com/yargs/yargs/compare/v10.0.2...v10.0.3) (2017-10-21)
-
-
-### Bug Fixes
-
-* parse array rather than string, so that quotes are safe ([#993](https://github.com/yargs/yargs/issues/993)) ([c351685](https://github.com/yargs/yargs/commit/c351685))
-
-
-
-<a name="10.0.2"></a>
-## [10.0.2](https://github.com/yargs/yargs/compare/v10.0.1...v10.0.2) (2017-10-21)
-
-
-### Bug Fixes
-
-* fix tiny spacing issue with usage ([#992](https://github.com/yargs/yargs/issues/992)) ([7871327](https://github.com/yargs/yargs/commit/7871327))
-
-
-
-<a name="10.0.1"></a>
-## [10.0.1](https://github.com/yargs/yargs/compare/v10.0.0...v10.0.1) (2017-10-19)
-
-
-### Bug Fixes
-
-* help strings for nested commands were missing parent commands ([#990](https://github.com/yargs/yargs/issues/990)) ([cd1ca15](https://github.com/yargs/yargs/commit/cd1ca15))
-* use correct completion command in generated completion script ([#988](https://github.com/yargs/yargs/issues/988)) ([3c8ac1d](https://github.com/yargs/yargs/commit/3c8ac1d))
-
-
-
-<a name="10.0.0"></a>
-# [10.0.0](https://github.com/yargs/yargs/compare/v9.1.0...v10.0.0) (2017-10-18)
-
-
-### Bug Fixes
-
-* config and normalize can be disabled with false ([#952](https://github.com/yargs/yargs/issues/952)) ([3bb8771](https://github.com/yargs/yargs/commit/3bb8771))
-* less eager help command execution ([#972](https://github.com/yargs/yargs/issues/972)) ([8c1d7bf](https://github.com/yargs/yargs/commit/8c1d7bf))
-* the positional argument parse was clobbering global flag arguments ([#984](https://github.com/yargs/yargs/issues/984)) ([7e58453](https://github.com/yargs/yargs/commit/7e58453))
-
-
-### Features
-
-* .usage() can now be used to configure a default command ([#975](https://github.com/yargs/yargs/issues/975)) ([7269531](https://github.com/yargs/yargs/commit/7269531))
-* hidden options are now explicitly indicated using "hidden" flag ([#962](https://github.com/yargs/yargs/issues/962)) ([280d0d6](https://github.com/yargs/yargs/commit/280d0d6))
-* introduce .positional() for configuring positional arguments ([#967](https://github.com/yargs/yargs/issues/967)) ([cb16460](https://github.com/yargs/yargs/commit/cb16460))
-* replace $0 with file basename ([#983](https://github.com/yargs/yargs/issues/983)) ([20bb99b](https://github.com/yargs/yargs/commit/20bb99b))
-
-
-### BREAKING CHANGES
-
-* .usage() no longer accepts an options object as the second argument. It can instead be used as an alias for configuring a default command.
-* previously hidden options were simply implied using a falsy description
-* help command now only executes if it's the last positional in argv._
-
-
-
-<a name="9.1.0"></a>
-# [9.1.0](https://github.com/yargs/yargs/compare/v9.0.1...v9.1.0) (2017-09-25)
-
-
-### Bug Fixes
-
-* **command:** Run default cmd even if the only cmd ([#950](https://github.com/yargs/yargs/issues/950)) ([7b22203](https://github.com/yargs/yargs/commit/7b22203))
-
-
-### Features
-
-* multiple usage calls are now collected, not replaced ([#958](https://github.com/yargs/yargs/issues/958)) ([74a38b2](https://github.com/yargs/yargs/commit/74a38b2))
-
-
-
-<a name="9.0.1"></a>
-## [9.0.1](https://github.com/yargs/yargs/compare/v9.0.0...v9.0.1) (2017-09-17)
-
-
-### Bug Fixes
-
-* implications fails only displayed once ([#954](https://github.com/yargs/yargs/issues/954)) ([ac8088b](https://github.com/yargs/yargs/commit/ac8088b))
-
-
-
-<a name="9.0.0"></a>
-# [9.0.0](https://github.com/yargs/yargs/compare/v8.0.2...v9.0.0) (2017-09-03)
-
-
-### Bug Fixes
-
-* 'undefined' default value for choices resulted in validation failing ([782b896](https://github.com/yargs/yargs/commit/782b896))
-* address bug with handling of arrays of implications ([c240661](https://github.com/yargs/yargs/commit/c240661))
-* defaulting keys to 'undefined' interfered with conflicting key logic ([a8e0cff](https://github.com/yargs/yargs/commit/a8e0cff))
-* don't bother calling JSON.stringify() on string default values ([#891](https://github.com/yargs/yargs/issues/891)) ([628be21](https://github.com/yargs/yargs/commit/628be21))
-* exclude positional arguments from completion output ([#927](https://github.com/yargs/yargs/issues/927)) ([71c7ec7](https://github.com/yargs/yargs/commit/71c7ec7))
-* strict mode should not fail for hidden options ([#949](https://github.com/yargs/yargs/issues/949)) ([0e0c58d](https://github.com/yargs/yargs/commit/0e0c58d))
-
-
-### Features
-
-* allow implies and conflicts to accept array values ([#922](https://github.com/yargs/yargs/issues/922)) ([abdc7da](https://github.com/yargs/yargs/commit/abdc7da))
-* allow parse with no arguments as alias for yargs.argv ([#944](https://github.com/yargs/yargs/issues/944)) ([a9f03e7](https://github.com/yargs/yargs/commit/a9f03e7))
-* enable .help() and .version() by default ([#912](https://github.com/yargs/yargs/issues/912)) ([1ef44e0](https://github.com/yargs/yargs/commit/1ef44e0))
-* to allow both undefined and nulls, for benefit of TypeScript ([#945](https://github.com/yargs/yargs/issues/945)) ([792564d](https://github.com/yargs/yargs/commit/792564d))
-
-
-### BREAKING CHANGES
-
-* version() and help() are now enabled by default, and show up in help output; the implicit help command can no longer be enabled/disabled independently from the help command itself (which can now be disabled).
-* parse() now behaves as an alias for .argv, unless a parseCallback is provided.
-
-
-
-<a name="8.0.2"></a>
-## [8.0.2](https://github.com/yargs/yargs/compare/v8.0.1...v8.0.2) (2017-06-12)
-
-
-
-<a name="8.0.1"></a>
-## [8.0.1](https://github.com/yargs/yargs/compare/v8.0.0...v8.0.1) (2017-05-02)
-
-
-
-<a name="8.0.0"></a>
-# [8.0.0](https://github.com/yargs/yargs/compare/v7.1.0...v8.0.0) (2017-05-01)
-
-
-### Bug Fixes
-
-* commands are now applied in order, from left to right ([#857](https://github.com/yargs/yargs/issues/857)) ([baba863](https://github.com/yargs/yargs/commit/baba863))
-* help now takes precedence over command recommendation ([#866](https://github.com/yargs/yargs/issues/866)) ([17e3567](https://github.com/yargs/yargs/commit/17e3567))
-* positional arguments now work if no handler is provided to inner command ([#864](https://github.com/yargs/yargs/issues/864)) ([e28ded3](https://github.com/yargs/yargs/commit/e28ded3))
-
-
-### Chores
-
-* upgrade yargs-parser ([#867](https://github.com/yargs/yargs/issues/867)) ([8f9c6c6](https://github.com/yargs/yargs/commit/8f9c6c6))
-
-
-### Features
-
-* allow extends to inherit from a module ([#865](https://github.com/yargs/yargs/issues/865)) ([89456d9](https://github.com/yargs/yargs/commit/89456d9))
-* allow strict mode to be disabled ([#840](https://github.com/yargs/yargs/issues/840)) ([6f78c05](https://github.com/yargs/yargs/commit/6f78c05))
-
-
-### BREAKING CHANGES
-
-* extends functionality now always loads the JSON provided, rather than reading from a specific key
-* Node 4+ is now required; this will allow us to start updating our dependencies.
-* the first argument to strict() is now used to enable/disable its functionality, rather than controlling whether or not it is global.
-
-
-
-<a name="7.1.0"></a>
-# [7.1.0](https://github.com/yargs/yargs/compare/v7.0.2...v7.1.0) (2017-04-13)
-
-
-### Bug Fixes
-
-* fix demandOption no longer treats 'false' as truthy ([#829](https://github.com/yargs/yargs/issues/829)) ([c748dd2](https://github.com/yargs/yargs/commit/c748dd2))
-* get terminalWidth in non interactive mode no longer causes a validation exception ([#837](https://github.com/yargs/yargs/issues/837)) ([360e301](https://github.com/yargs/yargs/commit/360e301))
-* we shouldn't output help if we've printed a prior help-like message ([#847](https://github.com/yargs/yargs/issues/847)) ([17e89bd](https://github.com/yargs/yargs/commit/17e89bd))
-
-
-### Features
-
-* add support for numeric commands ([#825](https://github.com/yargs/yargs/issues/825)) ([fde0564](https://github.com/yargs/yargs/commit/fde0564))
-
-
-
-<a name="7.0.2"></a>
-## [7.0.2](https://github.com/yargs/yargs/compare/v7.0.1...v7.0.2) (2017-03-10)
-
-
-### Bug Fixes
-
-* populating placeholder arguments broke validation ([b3eb2fe](https://github.com/yargs/yargs/commit/b3eb2fe))
-
-
-
-<a name="7.0.1"></a>
-## [7.0.1](https://github.com/yargs/yargs/compare/v7.0.0...v7.0.1) (2017-03-03)
-
-
-### Bug Fixes
-
-* --help with default command should print top-level help ([#810](https://github.com/yargs/yargs/issues/810)) ([9c03fa4](https://github.com/yargs/yargs/commit/9c03fa4))
-
-
-
-<a name="7.0.0"></a>
-# [7.0.0](https://github.com/yargs/yargs/compare/v6.6.0...v7.0.0) (2017-02-26)
-
-
-### Bug Fixes
-
-* address min/max validation message regression ([#750](https://github.com/yargs/yargs/issues/750)) ([2e5ce0f](https://github.com/yargs/yargs/commit/2e5ce0f))
-* address positional argument strict() bug introduced in [#766](https://github.com/yargs/yargs/issues/766) ([#784](https://github.com/yargs/yargs/issues/784)) ([a8528e6](https://github.com/yargs/yargs/commit/a8528e6))
-* console.warn() rather than throwing errors when api signatures are incorrect ([#804](https://github.com/yargs/yargs/issues/804)) ([a607061](https://github.com/yargs/yargs/commit/a607061))
-* context should override parsed argv ([#786](https://github.com/yargs/yargs/issues/786)) ([0997288](https://github.com/yargs/yargs/commit/0997288))
-* context variables are now recognized in strict() mode ([#796](https://github.com/yargs/yargs/issues/796)) ([48575cd](https://github.com/yargs/yargs/commit/48575cd))
-* errors were not bubbling appropriately from sub-commands to top-level ([#802](https://github.com/yargs/yargs/issues/802)) ([8a992f5](https://github.com/yargs/yargs/commit/8a992f5))
-* positional arguments of sub-commands threw strict() exception ([#805](https://github.com/yargs/yargs/issues/805)) ([f3f074b](https://github.com/yargs/yargs/commit/f3f074b))
-* pull in yargs-parser with modified env precedence ([#787](https://github.com/yargs/yargs/issues/787)) ([e0fbbe5](https://github.com/yargs/yargs/commit/e0fbbe5))
-* running parse() multiple times on the same yargs instance caused exception if help() enabled ([#790](https://github.com/yargs/yargs/issues/790)) ([07e39b7](https://github.com/yargs/yargs/commit/07e39b7))
-* use path.resolve() to support node 0.10 ([#797](https://github.com/yargs/yargs/issues/797)) ([49a93fc](https://github.com/yargs/yargs/commit/49a93fc))
-
-
-### Features
-
-* add conflicts and implies shorthands. ([#753](https://github.com/yargs/yargs/issues/753)) ([bd1472b](https://github.com/yargs/yargs/commit/bd1472b))
-* add traditional Chinese translation ([#780](https://github.com/yargs/yargs/issues/780)) ([6ab6a95](https://github.com/yargs/yargs/commit/6ab6a95))
-* allow provided config object to extend other configs ([#779](https://github.com/yargs/yargs/issues/779)) ([3280dd0](https://github.com/yargs/yargs/commit/3280dd0))
-* function argument validation ([#773](https://github.com/yargs/yargs/issues/773)) ([22ed9bb](https://github.com/yargs/yargs/commit/22ed9bb))
-* if only one column is provided for examples, allow it to take up the entire line ([#749](https://github.com/yargs/yargs/issues/749)) ([7931652](https://github.com/yargs/yargs/commit/7931652))
-* introduce custom yargs error object ([#765](https://github.com/yargs/yargs/issues/765)) ([8308efa](https://github.com/yargs/yargs/commit/8308efa))
-* introduces support for default commands, using the '*' identifier ([#785](https://github.com/yargs/yargs/issues/785)) ([d78a0f5](https://github.com/yargs/yargs/commit/d78a0f5))
-* rethink how options are inherited by commands ([#766](https://github.com/yargs/yargs/issues/766)) ([ab1fa4b](https://github.com/yargs/yargs/commit/ab1fa4b))
-
-
-### BREAKING CHANGES
-
-* `extends` key in config file is now used for extending other config files
-* environment variables now take precedence over config files.
-* context now takes precedence over argv and defaults
-* the arguments passed to functions are now validated, there's a good chance this will throw exceptions for a few folks who are using the API in an unexpected way.
-* by default options, and many of yargs' parsing helpers will now default to being applied globally; such that they are no-longer reset before being passed into commands.
-* yargs will no longer aggressively suppress errors, allowing errors that are not generated internally to bubble.
-
-
-
-<a name="6.6.0"></a>
-# [6.6.0](https://github.com/yargs/yargs/compare/v6.5.0...v6.6.0) (2016-12-29)
-
-
-### Bug Fixes
-
-* [object Object] was accidentally being populated on options object ([#736](https://github.com/yargs/yargs/issues/736)) ([f755e27](https://github.com/yargs/yargs/commit/f755e27))
-* do not use cwd when resolving package.json for yargs parsing config ([#726](https://github.com/yargs/yargs/issues/726)) ([9bdaab7](https://github.com/yargs/yargs/commit/9bdaab7))
-
-
-### Features
-
-* implement conflicts() for defining mutually exclusive arguments; thanks [@madcampos](https://github.com/madcampos)! ([#741](https://github.com/yargs/yargs/issues/741)) ([5883779](https://github.com/yargs/yargs/commit/5883779))
-* split demand() into demandCommand()/demandOption() ([#740](https://github.com/yargs/yargs/issues/740)) ([66573c8](https://github.com/yargs/yargs/commit/66573c8))
-* support for positional argument aliases ([#727](https://github.com/yargs/yargs/issues/727)) ([27e1a57](https://github.com/yargs/yargs/commit/27e1a57))
-
-
-
-<a name="6.5.0"></a>
-# [6.5.0](https://github.com/yargs/yargs/compare/v6.4.0...v6.5.0) (2016-12-01)
-
-
-### Bug Fixes
-
-* still freeze/unfreeze if parse() is called in isolation ([#717](https://github.com/yargs/yargs/issues/717)) ([30a9492](https://github.com/yargs/yargs/commit/30a9492))
-
-
-### Features
-
-* pull in yargs-parser introducing additional settings ([#688](https://github.com/yargs/yargs/issues/688)), and fixing [#716](https://github.com/yargs/yargs/issues/716) ([#722](https://github.com/yargs/yargs/issues/722)) ([702995a](https://github.com/yargs/yargs/commit/702995a))
-
-
-
-<a name="6.4.0"></a>
-# [6.4.0](https://github.com/yargs/yargs/compare/v6.3.0...v6.4.0) (2016-11-13)
-
-
-### Bug Fixes
-
-* **locales:** correct some Russian translations ([#691](https://github.com/yargs/yargs/issues/691)) ([a980671](https://github.com/yargs/yargs/commit/a980671))
-
-
-### Features
-
-* **locales:** Added Belarusian translation ([#690](https://github.com/yargs/yargs/issues/690)) ([68dac1f](https://github.com/yargs/yargs/commit/68dac1f))
-* **locales:** Create nl.json ([#687](https://github.com/yargs/yargs/issues/687)) ([46ce1bb](https://github.com/yargs/yargs/commit/46ce1bb))
-* update to yargs-parser that addresses [#598](https://github.com/yargs/yargs/issues/598), [#617](https://github.com/yargs/yargs/issues/617) ([#700](https://github.com/yargs/yargs/issues/700)) ([54cb31d](https://github.com/yargs/yargs/commit/54cb31d))
-* yargs is now passed as the third-argument to fail handler ([#613](https://github.com/yargs/yargs/issues/613)) ([21b74f9](https://github.com/yargs/yargs/commit/21b74f9))
-
-
-### Performance Improvements
-
-* normalizing package data is an expensive operation ([#705](https://github.com/yargs/yargs/issues/705)) ([49cf533](https://github.com/yargs/yargs/commit/49cf533))
-
-
-
-<a name="6.3.0"></a>
-# [6.3.0](https://github.com/yargs/yargs/compare/v6.2.0...v6.3.0) (2016-10-19)
-
-
-### Bug Fixes
-
-* **command:** subcommands via commandDir() now supported for parse(msg, cb) ([#678](https://github.com/yargs/yargs/issues/678)) ([6b85cc6](https://github.com/yargs/yargs/commit/6b85cc6))
-
-
-### Features
-
-* **locales:** Add Thai locale file ([#679](https://github.com/yargs/yargs/issues/679)) ([c05e36b](https://github.com/yargs/yargs/commit/c05e36b))
-
-
-
-<a name="6.2.0"></a>
-# [6.2.0](https://github.com/yargs/yargs/compare/v6.1.1...v6.2.0) (2016-10-16)
-
-
-### Bug Fixes
-
-* stop applying parser to context object ([#675](https://github.com/yargs/yargs/issues/675)) ([3fe9b8f](https://github.com/yargs/yargs/commit/3fe9b8f))
-
-
-### Features
-
-* add new pt_BR translations ([#674](https://github.com/yargs/yargs/issues/674)) ([5615a82](https://github.com/yargs/yargs/commit/5615a82))
-* Italian translations for 'did you mean' and 'aliases' ([#673](https://github.com/yargs/yargs/issues/673)) ([81984e6](https://github.com/yargs/yargs/commit/81984e6))
-
-
-
-<a name="6.1.1"></a>
-## [6.1.1](https://github.com/yargs/yargs/compare/v6.1.0...v6.1.1) (2016-10-15)
-
-
-### Bug Fixes
-
-* freeze was not resetting configObjects to initial state; addressed performance issue raised by [@nexdrew](https://github.com/nexdrew). ([#670](https://github.com/yargs/yargs/issues/670)) ([ae4bcd4](https://github.com/yargs/yargs/commit/ae4bcd4))
-
-
-
-<a name="6.1.0"></a>
-# [6.1.0](https://github.com/yargs/yargs/compare/v6.0.0...v6.1.0) (2016-10-15)
-
-
-### Bug Fixes
-
-* **locales:** change some translations ([#667](https://github.com/yargs/yargs/issues/667)) ([aa966c5](https://github.com/yargs/yargs/commit/aa966c5))
-* **locales:** conform hi locale to y18n.__n expectations ([#666](https://github.com/yargs/yargs/issues/666)) ([22adb18](https://github.com/yargs/yargs/commit/22adb18))
-
-
-### Features
-
-* initial support for command aliases ([#647](https://github.com/yargs/yargs/issues/647)) ([127a040](https://github.com/yargs/yargs/commit/127a040))
-* **command:** add camelcase commands to argv ([#658](https://github.com/yargs/yargs/issues/658)) ([b1cabae](https://github.com/yargs/yargs/commit/b1cabae))
-* **locales:** add Hindi translations ([9290912](https://github.com/yargs/yargs/commit/9290912))
-* **locales:** add Hungarian translations ([be92327](https://github.com/yargs/yargs/commit/be92327))
-* **locales:** Japanese translations for 'did you mean' and 'aliases' ([#651](https://github.com/yargs/yargs/issues/651)) ([5eb78fc](https://github.com/yargs/yargs/commit/5eb78fc))
-* **locales:** Polish translations for 'did you mean' and 'aliases' ([#650](https://github.com/yargs/yargs/issues/650)) ([c951c0e](https://github.com/yargs/yargs/commit/c951c0e))
-* reworking yargs API to make it easier to run in headless environments, e.g., Slack ([#646](https://github.com/yargs/yargs/issues/646)) ([f284c29](https://github.com/yargs/yargs/commit/f284c29))
-* Turkish translations for 'did you mean' and 'aliases' ([#660](https://github.com/yargs/yargs/issues/660)) ([072fd45](https://github.com/yargs/yargs/commit/072fd45))
-
-
-
-<a name="6.0.0"></a>
-# [6.0.0](https://github.com/yargs/yargs/compare/v5.0.0...v6.0.0) (2016-09-30)
-
-
-### Bug Fixes
-
-* changed parsing of the command string to ignore extra spaces ([#600](https://github.com/yargs/yargs/issues/600)) ([e8e5a72](https://github.com/yargs/yargs/commit/e8e5a72))
-* drop lodash.assign ([#641](https://github.com/yargs/yargs/issues/641)) ([ad3146f](https://github.com/yargs/yargs/commit/ad3146f))
-* for args that have skipValidation set to `true`, check if the parsed arg is `true` ([#619](https://github.com/yargs/yargs/issues/619)) ([658a34c](https://github.com/yargs/yargs/commit/658a34c))
-* upgrade standard, and fix appveyor config so that it works with newest standard ([#607](https://github.com/yargs/yargs/issues/607)) ([c301f42](https://github.com/yargs/yargs/commit/c301f42))
-
-
-### Chores
-
-* upgrade yargs-parser ([#633](https://github.com/yargs/yargs/issues/633)) ([cc1224e](https://github.com/yargs/yargs/commit/cc1224e))
-
-
-### Features
-
-* make opts object optional for .option() ([#624](https://github.com/yargs/yargs/issues/624)) ([4f29de6](https://github.com/yargs/yargs/commit/4f29de6))
-
-
-### Performance Improvements
-
-* defer windowWidth() to improve perf for non-help usage ([#610](https://github.com/yargs/yargs/issues/610)) ([cbc3636](https://github.com/yargs/yargs/commit/cbc3636))
-
-
-### BREAKING CHANGES
-
-* coerce is now applied as a final step after other parsing is complete
-
-
-
-<a name="5.0.0"></a>
-# [5.0.0](https://github.com/yargs/yargs/compare/v4.8.1...v5.0.0) (2016-08-14)
-
-
-### Bug Fixes
-
-* **default:** Remove undocumented alias of default() ([#469](https://github.com/yargs/yargs/issues/469)) ([b8591b2](https://github.com/yargs/yargs/commit/b8591b2))
-* remove deprecated zh.json ([#578](https://github.com/yargs/yargs/issues/578)) ([317c62c](https://github.com/yargs/yargs/commit/317c62c))
-
-
-### Features
-
-* .help() API can now enable implicit help command ([#574](https://github.com/yargs/yargs/issues/574)) ([7645019](https://github.com/yargs/yargs/commit/7645019))
-* **command:** builder function no longer needs to return the yargs instance ([#549](https://github.com/yargs/yargs/issues/549)) ([eaa2873](https://github.com/yargs/yargs/commit/eaa2873))
-* add coerce api ([#586](https://github.com/yargs/yargs/issues/586)) ([1d53ccb](https://github.com/yargs/yargs/commit/1d53ccb))
-* adds recommendCommands() for command suggestions ([#580](https://github.com/yargs/yargs/issues/580)) ([59474dc](https://github.com/yargs/yargs/commit/59474dc))
-* apply .env() globally ([#553](https://github.com/yargs/yargs/issues/553)) ([be65728](https://github.com/yargs/yargs/commit/be65728))
-* apply default builder to command() and apply fail() handlers globally ([#583](https://github.com/yargs/yargs/issues/583)) ([0aaa68b](https://github.com/yargs/yargs/commit/0aaa68b))
-* update yargs-parser to version 3.1.0 ([#581](https://github.com/yargs/yargs/issues/581)) ([882a127](https://github.com/yargs/yargs/commit/882a127))
-
-
-### Performance Improvements
-
-* defer requiring most external libs until needed ([#584](https://github.com/yargs/yargs/issues/584)) ([f9b0ed4](https://github.com/yargs/yargs/commit/f9b0ed4))
-
-
-### BREAKING CHANGES
-
-* fail is now applied globally.
-* we now default to an empty builder function when command is executed with no builder.
-* yargs-parser now better handles negative integer values, at the cost of handling numeric option names, e.g., -1 hello
-* default: removed undocumented `defaults` alias for `default`.
-* introduces a default `help` command which outputs help, as an alternative to a help flag.
-* interpret demand() numbers as relative to executing command ([#582](https://github.com/yargs/yargs/issues/582)) ([927810c](https://github.com/yargs/yargs/commit/927810c))
-
-
-
-<a name="4.8.1"></a>
-## [4.8.1](https://github.com/yargs/yargs/compare/v4.8.0...v4.8.1) (2016-07-16)
-
-
-### Bug Fixes
-
-* **commandDir:** make dir relative to caller instead of require.main.filename ([#548](https://github.com/yargs/yargs/issues/548)) ([3c2e479](https://github.com/yargs/yargs/commit/3c2e479))
-* add config lookup for .implies() ([#556](https://github.com/yargs/yargs/issues/556)) ([8d7585c](https://github.com/yargs/yargs/commit/8d7585c))
-* cache pkg lookups by path to avoid returning the wrong one ([#552](https://github.com/yargs/yargs/issues/552)) ([fea7e0b](https://github.com/yargs/yargs/commit/fea7e0b))
-* positional arguments were not being handled appropriately by parse() ([#559](https://github.com/yargs/yargs/issues/559)) ([063a866](https://github.com/yargs/yargs/commit/063a866))
-* pull in [@nexdrew](https://github.com/nexdrew)'s fixes to yargs-parser ([#560](https://github.com/yargs/yargs/issues/560)) ([c77c080](https://github.com/yargs/yargs/commit/c77c080)), closes [#560](https://github.com/yargs/yargs/issues/560)
-
-
-
-<a name="4.8.0"></a>
-# [4.8.0](https://github.com/yargs/yargs/compare/v4.7.1...v4.8.0) (2016-07-09)
-
-
-### Bug Fixes
-
-* drop unused camelcase dependency fixes [#516](https://github.com/yargs/yargs/issues/516) ([#525](https://github.com/yargs/yargs/issues/525)) ([365fb9a](https://github.com/yargs/yargs/commit/365fb9a)), closes [#516](https://github.com/yargs/yargs/issues/516) [#525](https://github.com/yargs/yargs/issues/525)
-* fake a tty in tests, so that we can use the new set-blocking ([#512](https://github.com/yargs/yargs/issues/512)) ([a54c742](https://github.com/yargs/yargs/commit/a54c742))
-* ignore invalid package.json during read-pkg-up ([#546](https://github.com/yargs/yargs/issues/546)) ([e058c87](https://github.com/yargs/yargs/commit/e058c87))
-* keep both zh and zh_CN until yargs[@5](https://github.com/5).x ([0f8faa7](https://github.com/yargs/yargs/commit/0f8faa7))
-* lazy-load package.json and cache. get rid of pkg-conf dependency. ([#544](https://github.com/yargs/yargs/issues/544)) ([2609b2e](https://github.com/yargs/yargs/commit/2609b2e))
-* we now respect the order of _ when applying commands ([#537](https://github.com/yargs/yargs/issues/537)) ([ed86b78](https://github.com/yargs/yargs/commit/ed86b78))
-
-
-### Features
-
-* add .commandDir(dir) to API to apply all command modules from a relative directory ([#494](https://github.com/yargs/yargs/issues/494)) ([b299dff](https://github.com/yargs/yargs/commit/b299dff))
-* **command:** derive missing command string from module filename ([#527](https://github.com/yargs/yargs/issues/527)) ([20d4b8a](https://github.com/yargs/yargs/commit/20d4b8a))
-* builder is now optional for a command module ([#545](https://github.com/yargs/yargs/issues/545)) ([8d6ad6e](https://github.com/yargs/yargs/commit/8d6ad6e))
-
-
-
-<a name="4.7.1"></a>
-## [4.7.1](https://github.com/yargs/yargs/compare/v4.7.0...v4.7.1) (2016-05-15)
-
-
-### Bug Fixes
-
-* switch to using `const` rather than `var` ([#499](https://github.com/yargs/yargs/pull/499))
-* make stdout flush on newer versions of Node.js ([#501](https://github.com/yargs/yargs/issues/501)) ([9f8c6f4](https://github.com/yargs/yargs/commit/9f8c6f4))
-
-
-
-<a name="4.7.0"></a>
-# [4.7.0](https://github.com/yargs/yargs/compare/v4.6.0...v4.7.0) (2016-05-02)
-
-
-### Bug Fixes
-
-* **pkgConf:** fix aliases issues in .pkgConf() ([#478](https://github.com/yargs/yargs/issues/478))([b900502](https://github.com/yargs/yargs/commit/b900502))
-
-
-### Features
-
-* **completion:** allow to get completions for any string, not just process.argv ([#470](https://github.com/yargs/yargs/issues/470))([74fcfbc](https://github.com/yargs/yargs/commit/74fcfbc))
-* **configuration:** Allow to directly pass a configuration object to .config() ([#480](https://github.com/yargs/yargs/issues/480))([e0a7e05](https://github.com/yargs/yargs/commit/e0a7e05))
-* **validation:** Add .skipValidation() method ([#471](https://github.com/yargs/yargs/issues/471))([d72badb](https://github.com/yargs/yargs/commit/d72badb))
-
-
-
-<a name="4.6.0"></a>
-# [4.6.0](https://github.com/yargs/yargs/compare/v4.5.0...v4.6.0) (2016-04-11)
-
-
-### Bug Fixes
-
-* **my brand!:** I agree with [@osher](https://github.com/osher) lightweight isn't a huge selling point of ours any longer, see [#468](https://github.com/yargs/yargs/issues/468) ([c46d7e1](https://github.com/yargs/yargs/commit/c46d7e1))
-
-### Features
-
-* switch to standard-version for release management ([f70f801](https://github.com/yargs/yargs/commit/f70f801))
-* upgrade to version of yargs-parser that introduces some slick new features, great work [@elas7](https://github.com/elas7). update cliui, replace win-spawn, replace badge. ([#475](https://github.com/yargs/yargs/issues/475)) ([f915dd4](https://github.com/yargs/yargs/commit/f915dd4))
-
-
-
-<a name="4.5.0"></a>
-# [4.5.0](https://github.com/yargs/yargs/compare/v4.4.0...v4.5.0) (2016-04-05)
-
-
-### Bug Fixes
-
-* **windows:** handle $0 better on Windows platforms ([eb6e03f](https://github.com/yargs/yargs/commit/eb6e03f))
-
-### Features
-
-* **commands:** implemented variadic positional arguments ([51d926e](https://github.com/yargs/yargs/commit/51d926e))
-* **completion:** completion now better handles aliases, and avoids duplicating keys. ([86416c8](https://github.com/yargs/yargs/commit/86416c8))
-* **config:** If invoking .config() without parameters, set a default option ([0413dd1](https://github.com/yargs/yargs/commit/0413dd1))
-* **conventional-changelog:** switching to using conventional-changelog for generating the changelog ([a2b5a2a](https://github.com/yargs/yargs/commit/a2b5a2a))
-
-
-
-### v4.4.0 (2016/04/03 21:10 +07:00)
-
-- [#454](https://github.com/yargs/yargs/pull/454) fix demand() when second argument is an array (@elas7)
-- [#452](https://github.com/yargs/yargs/pull/452) fix code example for `.help()` docs (@maxrimue)
-- [#450](https://github.com/yargs/yargs/pull/450) fix for bash completion trailing space edge-case (@elas7)
-- [#448](https://github.com/yargs/yargs/pull/448) allow a method to be passed to `showHelp`, rather than a log-level (@osher)
-- [#446](https://github.com/yargs/yargs/pull/446) update yargs-parser, y18n, nyc, cliui, pkg-conf (@bcoe)
-- [#436](https://github.com/yargs/yargs/pull/436) the rebase method is only used by tests, do not export it in two places (@elas7)
-- [#428](https://github.com/yargs/yargs/pull/428) initial support for subcommands (@nexdrew)
-
-### v4.3.2 (2016/3/20 15:07 +07:00)
-
-- [#445](https://github.com/yargs/yargs/pull/445) strict mode was failing if no commands were registered (@nexdrew)
-- [#443](https://github.com/yargs/yargs/pull/443) adds Italian translation \o/ (@madrisan)
-- [#441](https://github.com/yargs/yargs/pull/441) remove duplicate keys from array options configuration (@elas7)
-- [#437](https://github.com/yargs/yargs/pull/437) standardize tests for .command() (@lrlna)
-
-### v4.3.0 (2016/3/12 14:19 +07:00)
-
-- [#432](https://github.com/yargs/yargs/pull/432) non-singleton version of yargs (@bcoe)
-- [#422, #425, #420] translations for number (@zkat, @rilut, @maxrimue, @watilde)
-- [#414](https://github.com/yargs/yargs/pull/414) all command options can be defined in module now (@nexdrew)
-
-### v4.2.0 (2016/2/22 11:02 +07:00)
-
-- [#395](https://github.com/yargs/yargs/pull/395) do not reset groups if they contain
- global keys (@novemberborn)
-- [#393](https://github.com/yargs/yargs/pull/393) use sane default for usage strings (@nexdrew)
-- [#392](https://github.com/yargs/yargs/pull/392) resetting wrap() was causing layout issues
- with commands (@nexdrew)
-- [#391](https://github.com/yargs/yargs/pull/391) commands were being added multiple times (@nexdrew)
-
-### v4.0.0 (2016/2/14 1:27 +07:00)
-
-- [#384](https://github.com/bcoe/yargs/pull/384) add new number type to yargs (@lrlna, @maxrimue)
-- [#382](https://github.com/bcoe/yargs/pull/382) pass error as extra parameter to fail (@gajus)
-- [#378](https://github.com/bcoe/yargs/pull/378) introduces the pkgConf feature, which tells
- yargs to load default argument values from a key on a project's package.json (@bcoe)
-- [#376](https://github.com/bcoe/yargs/pull/376) **breaking change**, make help() method signature
- more consistent with other commands (@maxrimue)
-- [#368](https://github.com/bcoe/yargs/pull/368) **breaking change**, overhaul to command handling API:
- introducing named positional arguments, commands as modules, introduces the concept of global options (options that don't reset). (@nexdrew, @bcoe).
-- [#364](https://github.com/bcoe/yargs/pull/364) add the slick new yargs website to the package.json (@iarna).
-- [#357](https://github.com/bcoe/yargs/pull/357) .strict() now requires that a valid command is provided (@lrlna)
-- [#356](https://github.com/bcoe/yargs/pull/356) pull the parsing bits of yargs into the separate module yargs-parser. Various parsing options can now be turned on and off using configuration (@bcoe).
-- [#330](https://github.com/bcoe/yargs/pull/330) **breaking change**, fix inconsistencies with `.version()` API. (@maxrimue).
-
-### v3.32.0 (2016/1/14 10:13 +07:00)
-
-- [#344](https://github.com/bcoe/yargs/pull/344) yargs now has a code of conduct and contributor guidelines (@bcoe)
-- [#341](https://github.com/bcoe/yargs/issues/341) Fix edge-case with camel-case arguments (@davibe)
-- [#331](https://github.com/bcoe/yargs/pull/331) Handle parsing a raw argument string (@kellyselden)
-- [#325](https://github.com/bcoe/yargs/pull/325) Tweaks to make tests pass again on Windows (@isaacs)
-- [#321](https://github.com/bcoe/yargs/pull/321) Custom config parsing function (@bcoe)
-
-### v3.31.0 (2015/12/03 10:15 +07:00)
-
-- [#239](https://github.com/bcoe/yargs/pull/239) Pass argv to commands (@bcoe)
-- [#308](https://github.com/bcoe/yargs/pull/308) Yargs now handles environment variables (@nexdrew)
-- [#302](https://github.com/bcoe/yargs/pull/302) Add Indonesian translation (@rilut)
-- [#300](https://github.com/bcoe/yargs/pull/300) Add Turkish translation (@feyzo)
-- [#298](https://github.com/bcoe/yargs/pull/298) Add Norwegian Bokmål translation (@sindresorhus)
-- [#297](https://github.com/bcoe/yargs/pull/297) Fix for layout of cjk characters (@disjukr)
-- [#296](https://github.com/bcoe/yargs/pull/296) Add Korean translation (@disjukr)
-
-### v3.30.0 (2015/11/13 16:29 +07:00)
-
-- [#293](https://github.com/bcoe/yargs/pull/293) Polish language support (@kamilogorek)
-- [#291](https://github.com/bcoe/yargs/pull/291) fix edge-cases with `.alias()` (@bcoe)
-- [#289](https://github.com/bcoe/yargs/pull/289) group options in custom groups (@bcoe)
-
-### v3.29.0 (2015/10/16 21:51 +07:00)
-
-- [#282](https://github.com/bcoe/yargs/pull/282) completions now accept promises (@LinusU)
-- [#281](https://github.com/bcoe/yargs/pull/281) fix parsing issues with dot notation (@bcoe)
-
-### v3.28.0 (2015/10/16 1:55 +07:00)
-
-- [#277](https://github.com/bcoe/yargs/pull/277) adds support for ansi escape codes (@bcoe)
-
-### v3.27.0 (2015/10/08 1:55 +00:00)
-
-- [#271](https://github.com/bcoe/yargs/pull/273) skips validation for help or version flags with exitProcess(false) (@tepez)
-- [#273](https://github.com/bcoe/yargs/pull/273) implements single output for errors with exitProcess(false) (@nexdrew)
-- [#269](https://github.com/bcoe/yargs/pull/269) verifies single output for errors with exitProcess(false) (@tepez)
-- [#268](https://github.com/bcoe/yargs/pull/268) adds Chinese translation (@qiu8310)
-- [#266](https://github.com/bcoe/yargs/pull/266) adds case for -- after -- in parser test (@geophree)
-
-### v3.26.0 (2015/09/25 2:14 +00:00)
-
-- [#263](https://github.com/bcoe/yargs/pull/263) document count() and option() object keys (@nexdrew)
-- [#259](https://github.com/bcoe/yargs/pull/259) remove util in readme (@38elements)
-- [#258](https://github.com/bcoe/yargs/pull/258) node v4 builds, update deps (@nexdrew)
-- [#257](https://github.com/bcoe/yargs/pull/257) fix spelling errors (@dkoleary88)
-
-### v3.25.0 (2015/09/13 7:38 -07:00)
-
-- [#254](https://github.com/bcoe/yargs/pull/254) adds Japanese translation (@oti)
-- [#253](https://github.com/bcoe/yargs/pull/253) fixes for tests on Windows (@bcoe)
-
-### v3.24.0 (2015/09/04 12:02 +00:00)
-
-- [#248](https://github.com/bcoe/yargs/pull/248) reinstate os-locale, no spawning (@nexdrew)
-- [#249](https://github.com/bcoe/yargs/pull/249) use travis container-based infrastructure (@nexdrew)
-- [#247](https://github.com/bcoe/yargs/pull/247) upgrade standard (@nexdrew)
-
-### v3.23.0 (2015/08/30 23:00 +00:00)
-
-- [#246](https://github.com/bcoe/yargs/pull/246) detect locale based only on environment variables (@bcoe)
-- [#244](https://github.com/bcoe/yargs/pull/244) adds Windows CI testing (@bcoe)
-- [#245](https://github.com/bcoe/yargs/pull/245) adds OSX CI testing (@bcoe, @nexdrew)
-
-### v3.22.0 (2015/08/28 22:26 +00:00)
-- [#242](https://github.com/bcoe/yargs/pull/242) adds detectLocale config option (@bcoe)
-
-### v3.21.1 (2015/08/28 20:58 +00:00)
-- [#240](https://github.com/bcoe/yargs/pull/240) hot-fix for Atom on Windows (@bcoe)
-
-### v3.21.0 (2015/08/21 21:20 +00:00)
-- [#238](https://github.com/bcoe/yargs/pull/238) upgrade camelcase, window-size, chai, mocha (@nexdrew)
-- [#237](https://github.com/bcoe/yargs/pull/237) adds defaultDescription to option() (@nexdrew)
-
-### v3.20.0 (2015/08/20 01:29 +00:00)
-- [#231](https://github.com/bcoe/yargs/pull/231) Merge pull request #231 from bcoe/detect-locale (@sindresorhus)
-- [#235](https://github.com/bcoe/yargs/pull/235) adds german translation to yargs (@maxrimue)
-
-### v3.19.0 (2015/08/14 05:12 +00:00)
-- [#224](https://github.com/bcoe/yargs/pull/224) added Portuguese translation (@codemonkey3045)
-
-### v3.18.1 (2015/08/12 05:53 +00:00)
-
-- [#228](https://github.com/bcoe/yargs/pull/228) notes about embedding yargs in Electron (@etiktin)
-- [#223](https://github.com/bcoe/yargs/pull/223) make booleans work in config files (@sgentle)
-
-### v3.18.0 (2015/08/06 20:05 +00:00)
-- [#222](https://github.com/bcoe/yargs/pull/222) updates fr locale (@nexdrew)
-- [#221](https://github.com/bcoe/yargs/pull/221) adds missing locale strings (@nexdrew)
-- [#220](https://github.com/bcoe/yargs/pull/220) adds es locale (@zkat)
-
-### v3.17.1 (2015/08/02 19:35 +00:00)
-- [#218](https://github.com/bcoe/yargs/pull/218) upgrades nyc (@bcoe)
-
-### v3.17.0 (2015/08/02 18:39 +00:00)
-- [#217](https://github.com/bcoe/yargs/pull/217) sort methods in README.md (@nexdrew)
-- [#215](https://github.com/bcoe/yargs/pull/215) adds fr locale (@LoicMahieu)
-
-### v3.16.0 (2015/07/30 04:35 +00:00)
-- [#210](https://github.com/bcoe/yargs/pull/210) adds i18n support to yargs (@bcoe)
-- [#209](https://github.com/bcoe/yargs/pull/209) adds choices type to yargs (@nexdrew)
-- [#207](https://github.com/bcoe/yargs/pull/207) pretty new shields from shields.io (@SimenB)
-- [#208](https://github.com/bcoe/yargs/pull/208) improvements to README.md (@nexdrew)
-- [#205](https://github.com/bcoe/yargs/pull/205) faster build times on Travis (@ChristianMurphy)
-
-### v3.15.0 (2015/07/06 06:01 +00:00)
-- [#197](https://github.com/bcoe/yargs/pull/197) tweaks to how errors bubble up from parser.js (@bcoe)
-- [#193](https://github.com/bcoe/yargs/pull/193) upgraded nyc, reporting now happens by default (@bcoe)
-
-### v3.14.0 (2015/06/28 02:12 +00:00)
-
-- [#192](https://github.com/bcoe/yargs/pull/192) standard style nits (@bcoe)
-- [#190](https://github.com/bcoe/yargs/pull/190) allow for hidden commands, e.g.,
- .completion('completion', false) (@tschaub)
-
-### v3.13.0 (2015/06/24 04:12 +00:00)
-
-- [#187](https://github.com/bcoe/yargs/pull/187) completion now behaves differently
- if it is being run in the context of a command (@tschaub)
-- [#186](https://github.com/bcoe/yargs/pull/186) if no matches are found for a completion
- default to filename completion (@tschaub)
-
-### v3.12.0 (2015/06/19 03:23 +00:00)
-- [#183](https://github.com/bcoe/yargs/pull/183) don't complete commands if they've already been completed (@tschaub)
-- [#181](https://github.com/bcoe/yargs/pull/181) various fixes for completion. (@bcoe, @tschaub)
-- [#182](https://github.com/bcoe/yargs/pull/182) you can now set a maximum # of of required arguments (@bcoe)
-
-### v3.11.0 (2015/06/15 05:15 +00:00)
-
-- [#173](https://github.com/bcoe/yargs/pull/173) update standard, window-size, chai (@bcoe)
-- [#171](https://github.com/bcoe/yargs/pull/171) a description can now be set
- when providing a config option. (@5c077yP)
-
-### v3.10.0 (2015/05/29 04:25 +00:00)
-
-- [#165](https://github.com/bcoe/yargs/pull/165) expose yargs.terminalWidth() thanks @ensonic (@bcoe)
-- [#164](https://github.com/bcoe/yargs/pull/164) better array handling thanks @getify (@bcoe)
-
-### v3.9.1 (2015/05/20 05:14 +00:00)
-- [b6662b6](https://github.com/bcoe/yargs/commit/b6662b6774cfeab4876f41ec5e2f67b7698f4e2f) clarify .config() docs (@linclark)
-- [0291360](https://github.com/bcoe/yargs/commit/02913606285ce31ce81d7f12c48d8a3029776ec7) fixed tests, switched to nyc for coverage, fixed security issue, added Lin as collaborator (@bcoe)
-
-### v3.9.0 (2015/05/10 18:32 +00:00)
-- [#157](https://github.com/bcoe/yargs/pull/157) Merge pull request #157 from bcoe/command-yargs. allows handling of command specific arguments. Thanks for the suggestion @ohjames (@bcoe)
-- [#158](https://github.com/bcoe/yargs/pull/158) Merge pull request #158 from kemitchell/spdx-license. Update license format (@kemitchell)
-
-### v3.8.0 (2015/04/24 23:10 +00:00)
-- [#154](https://github.com/bcoe/yargs/pull/154) showHelp's method signature was misleading fixes #153 (@bcoe)
-- [#151](https://github.com/bcoe/yargs/pull/151) refactor yargs' table layout logic to use new helper library (@bcoe)
-- [#150](https://github.com/bcoe/yargs/pull/150) Fix README example in argument requirements (@annonymouse)
-
-### v3.7.2 (2015/04/13 11:52 -07:00)
-
-* [679fbbf](https://github.com/bcoe/yargs/commit/679fbbf55904030ccee8a2635e8e5f46551ab2f0) updated yargs to use the [standard](https://github.com/feross/standard) style guide (agokjr)
-* [22382ee](https://github.com/bcoe/yargs/commit/22382ee9f5b495bc2586c1758cd1091cec3647f9 various bug fixes for $0 (@nylen)
-
-### v3.7.1 (2015/04/10 11:06 -07:00)
-
-* [89e1992](https://github.com/bcoe/yargs/commit/89e1992a004ba73609b5f9ee6890c4060857aba4) detect iojs bin along with node bin. (@bcoe)
-* [755509e](https://github.com/bcoe/yargs/commit/755509ea90041e5f7833bba3b8c5deffe56f0aab) improvements to example documentation in README.md (@rstacruz)
-* [0d2dfc8](https://github.com/bcoe/yargs/commit/0d2dfc822a43418242908ad97ddd5291a1b35dc6) showHelp() no longer requires that .argv has been called (@bcoe)
-
-### v3.7.0 (2015/04/04 02:29 -07:00)
-
-* [56cbe2d](https://github.com/bcoe/yargs/commit/56cbe2ddd33dc176dcbf97ba40559864a9f114e4) make .requiresArg() work with type hints. (@bcoe).
-* [2f5d562](https://github.com/bcoe/yargs/commit/2f5d5624f736741deeedf6a664d57bc4d857bdd0) serialize arrays and objects in usage strings. (@bcoe).
-* [5126304](https://github.com/bcoe/yargs/commit/5126304dd18351fc28f10530616fdd9361e0af98) be more lenient about alias/primary key ordering in chaining API. (@bcoe)
-
-### v3.6.0 (2015/03/21 01:00 +00:00)
-- [4e24e22](https://github.com/bcoe/yargs/commit/4e24e22e6a195e55ab943ede704a0231ac33b99c) support for .js configuration files. (@pirxpilot)
-
-### v3.5.4 (2015/03/12 05:56 +00:00)
-- [c16cc08](https://github.com/bcoe/yargs/commit/c16cc085501155cf7fd853ccdf8584b05ab92b78) message for non-option arguments is now optional, thanks to (@raine)
-
-### v3.5.3 (2015/03/09 06:14 +00:00)
-- [870b428](https://github.com/bcoe/yargs/commit/870b428cf515d560926ca392555b7ad57dba9e3d) completion script was missing in package.json (@bcoe)
-
-### v3.5.2 (2015/03/09 06:11 +00:00)
-- [58a4b24](https://github.com/bcoe/yargs/commit/58a4b2473ebbb326713d522be53e32d3aabb08d2) parse was being called multiple times, resulting in strange behavior (@bcoe)
-
-### v3.5.1 (2015/03/09 04:55 +00:00)
-- [4e588e0](https://github.com/bcoe/yargs/commit/4e588e055afbeb9336533095f051496e3977f515) accidentally left testing logic in (@bcoe)
-
-### v3.5.0 (2015/03/09 04:49 +00:00)
-- [718bacd](https://github.com/bcoe/yargs/commit/718bacd81b9b44f786af76b2afe491fe06274f19) added support for bash completions see #4 (@bcoe)
-- [a192882](https://github.com/bcoe/yargs/commit/a19288270fc431396c42af01125eeb4443664528) downgrade to mocha 2.1.0 until https://github.com/mochajs/mocha/issues/1585 can be sorted out (@bcoe)
-
-### v3.4.7 (2015/03/09 04:09 +00:00)
-- [9845e5c](https://github.com/bcoe/yargs/commit/9845e5c1a9c684ba0be3f0bfb40e7b62ab49d9c8) the Argv singleton was not being updated when manually parsing arguments, fixes #114 (@bcoe)
-
-### v3.4.6 (2015/03/09 04:01 +00:00)
-- [45b4c80](https://github.com/bcoe/yargs/commit/45b4c80b890d02770b0a94f326695a8a566e8fe9) set placeholders for all keys fixes #115 (@bcoe)
-
-### v3.4.5 (2015/03/01 20:31 +00:00)
-- [a758e0b](https://github.com/bcoe/yargs/commit/a758e0b2556184f067cf3d9c4ef886d39817ebd2) fix for count consuming too many arguments (@bcoe)
-
-### v3.4.4 (2015/02/28 04:52 +00:00)
-- [0476af7](https://github.com/bcoe/yargs/commit/0476af757966acf980d998b45108221d4888cfcb) added nargs feature, allowing you to specify the number of arguments after an option (@bcoe)
-- [092477d](https://github.com/bcoe/yargs/commit/092477d7ab3efbf0ba11cede57f7d8cfc70b024f) updated README with full example of v3.0 API (@bcoe)
-
-### v3.3.3 (2015/02/28 04:23 +00:00)
-- [0c4b769](https://github.com/bcoe/yargs/commit/0c4b769516cd8d93a7c4e5e675628ae0049aa9a8) remove string dependency, which conflicted with other libraries see #106 (@bcoe)
-
-### v3.3.2 (2015/02/28 04:11 +00:00)
-- [2a98906](https://github.com/bcoe/yargs/commit/2a9890675821c0e7a12f146ce008b0562cb8ec9a) add $0 to epilog (@schnittstabil)
-
-### v3.3.1 (2015/02/24 03:28 +00:00)
-- [ad485ce](https://github.com/bcoe/yargs/commit/ad485ce748ebdfce25b88ef9d6e83d97a2f68987) fix for applying defaults to camel-case args (@bcoe)
-
-### v3.3.0 (2015/02/24 00:49 +00:00)
-- [8bfe36d](https://github.com/bcoe/yargs/commit/8bfe36d7fb0f93a799ea3f4c756a7467c320f8c0) fix and document restart() command, as a tool for building nested CLIs (@bcoe)
-
-### v3.2.1 (2015/02/22 05:45 +00:00)
-- [49a6d18](https://github.com/bcoe/yargs/commit/49a6d1822a4ef9b1ea6f90cc366be60912628885) you can now provide a function that generates a default value (@bcoe)
-
-### v3.2.0 (2015/02/22 05:24 +00:00)
-- [7a55886](https://github.com/bcoe/yargs/commit/7a55886c9343cf71a20744ca5cdd56d2ea7412d5) improvements to yargs two-column text layout (@bcoe)
-- [b6ab513](https://github.com/bcoe/yargs/commit/b6ab5136a4c3fa6aa496f6b6360382e403183989) Tweak NPM version badge (@nylen)
-
-### v3.1.0 (2015/02/19 19:37 +00:00)
-- [9bd2379](https://github.com/bcoe/yargs/commit/9bd237921cf1b61fd9f32c0e6d23f572fc225861) version now accepts a function, making it easy to load version #s from a package.json (@bcoe)
-
-### v3.0.4 (2015/02/14 01:40 +00:00)
-- [0b7c19b](https://github.com/bcoe/yargs/commit/0b7c19beaecb747267ca4cc10e5cb2a8550bc4b7) various fixes for dot-notation handling (@bcoe)
-
-### v3.0.3 (2015/02/14 00:59 +00:00)
-- [c3f35e9](https://github.com/bcoe/yargs/commit/c3f35e99bd5a0d278073fcadd95e2d778616cc17) make sure dot-notation is applied to aliases (@bcoe)
-
-### 3.0.2 (2015/02/13 16:50 +00:00)
-- [74c8967](https://github.com/bcoe/yargs/commit/74c8967c340c204a0a7edf8a702b6f46c2705435) document epilog shorthand of epilogue. (@bcoe)
-- [670110f](https://github.com/bcoe/yargs/commit/670110fc01bedc4831b6fec6afac54517d5a71bc) any non-truthy value now causes check to fail see #76 (@bcoe)
-- [0d8f791](https://github.com/bcoe/yargs/commit/0d8f791a33c11ced4cd431ea8d3d3a337d456b56) finished implementing my wish-list of fetures for yargs 3.0. see #88 (@bcoe)
-- [5768447](https://github.com/bcoe/yargs/commit/5768447447c4c8e8304f178846206ce86540f063) fix coverage. (@bcoe)
-- [82e793f](https://github.com/bcoe/yargs/commit/82e793f3f61c41259eaacb67f0796aea2cf2aaa0) detect console width and perform word-wrapping. (@bcoe)
-- [67476b3](https://github.com/bcoe/yargs/commit/67476b37eea07fee55f23f35b9e0c7d76682b86d) refactor two-column table layout so that we can use it for examples and usage (@bcoe)
-- [4724cdf](https://github.com/bcoe/yargs/commit/4724cdfcc8e37ae1ca3dcce9d762f476e9ef4bb4) major refactor of index.js, in prep for 3.x release. (@bcoe)
-
-### v2.3.0 (2015/02/08 20:41 +00:00)
-- [d824620](https://github.com/bcoe/yargs/commit/d824620493df4e63664af1fe320764dd1a9244e6) allow for undefined boolean defaults (@ashi009)
-
-### v2.2.0 (2015/02/08 20:07 +00:00)
-- [d6edd98](https://github.com/bcoe/yargs/commit/d6edd9848826e7389ed1393858c45d03961365fd) in-prep for further refactoring, and a 3.x release I've shuffled some things around and gotten test-coverage to 100%. (@bcoe)
-
-### v2.1.2 (2015/02/08 06:05 +00:00)
-- [d640745](https://github.com/bcoe/yargs/commit/d640745a7b9f8d476e0223879d056d18d9c265c4) switch to path.relative (@bcoe)
-- [3bfd41f](https://github.com/bcoe/yargs/commit/3bfd41ff262a041f29d828b88936a79c63cad594) remove mocha.opts. (@bcoe)
-- [47a2f35](https://github.com/bcoe/yargs/commit/47a2f357091db70903a402d6765501c1d63f15fe) document using .string('_') for string ids. see #56 (@bcoe)
-- [#57](https://github.com/bcoe/yargs/pull/57) Merge pull request #57 from eush77/option-readme (@eush77)
-
-### v2.1.1 (2015/02/06 08:08 +00:00)
-- [01c6c61](https://github.com/bcoe/yargs/commit/01c6c61d67b4ebf88f41f0b32a345ec67f0ac17d) fix for #71, 'newAliases' of undefined (@bcoe)
-
-### v2.1.0 (2015/02/06 07:59 +00:00)
-- [6a1a3fa](https://github.com/bcoe/yargs/commit/6a1a3fa731958e26ccd56885f183dd8985cc828f) try to guess argument types, and apply sensible defaults see #73 (@bcoe)
-
-### v2.0.1 (2015/02/06 07:54 +00:00)
-- [96a06b2](https://github.com/bcoe/yargs/commit/96a06b2650ff1d085a52b7328d8bba614c20cc12) Fix for strange behavior with --sort option, see #51 (@bcoe)
-
-### v2.0.0 (2015/02/06 07:45 +00:00)
-- [0250517](https://github.com/bcoe/yargs/commit/0250517c9643e53f431b824e8ccfa54937414011) - [108fb84](https://github.com/bcoe/yargs/commit/108fb8409a3a63dcaf99d917fe4dfcfaa1de236d) fixed bug with boolean parsing, when bools separated by = see #66 (@bcoe)
-- [a465a59](https://github.com/bcoe/yargs/commit/a465a5915f912715738de890982e4f8395958b10) Add `files` field to the package.json (@shinnn)
-- [31043de](https://github.com/bcoe/yargs/commit/31043de7a38a17c4c97711f1099f5fb164334db3) fix for yargs.argv having the same keys added multiple times see #63 (@bcoe)
-- [2d68c5b](https://github.com/bcoe/yargs/commit/2d68c5b91c976431001c4863ce47c9297850f1ad) Disable process.exit calls using .exitProcess(false) (@cianclarke)
-- [45da9ec](https://github.com/bcoe/yargs/commit/45da9ec4c55a7bd394721bc6a1db0dabad7bc52a) Mention .option in README (@eush77)
-
-### v1.3.2 (2014/10/06 21:56 +00:00)
-- [b8d3472](https://github.com/bcoe/yargs/commit/b8d34725482e5821a3cc809c0df71378f282f526) 1.3.2 (@chevex)
-
-### list (2014/08/30 18:41 +00:00)
-- [fbc777f](https://github.com/bcoe/yargs/commit/fbc777f416eeefd37c84e44d27d7dfc7c1925721) Now that yargs is the successor to optimist, I'm changing the README language to be more universal. Pirate speak isn't very accessible to non-native speakers. (@chevex)
-- [a54d068](https://github.com/bcoe/yargs/commit/a54d0682ae2efc2394d407ab171cc8a8bbd135ea) version output will not print extra newline (@boneskull)
-- [1cef5d6](https://github.com/bcoe/yargs/commit/1cef5d62a9d6d61a3948a49574892e01932cc6ae) Added contributors section to package.json (@chrisn)
-- [cc295c0](https://github.com/bcoe/yargs/commit/cc295c0a80a2de267e0155b60d315fc4b6f7c709) Added 'require' and 'required' as synonyms for 'demand' (@chrisn)
-- [d0bf951](https://github.com/bcoe/yargs/commit/d0bf951d949066b6280101ed606593d079ee15c8) Updating minimist. (@chevex)
-- [c15f8e7](https://github.com/bcoe/yargs/commit/c15f8e7f245b261e542cf205ce4f4313630cbdb4) Fix #31 (bad interaction between camelCase options and strict mode) (@nylen)
-- [d991b9b](https://github.com/bcoe/yargs/commit/d991b9be687a68812dee1e3b185ba64b7778b82d) Added .help() and .version() methods (@chrisn)
-- [e8c8aa4](https://github.com/bcoe/yargs/commit/e8c8aa46268379357cb11e9fc34b8c403037724b) Added .showHelpOnFail() method (@chrisn)
-- [e855af4](https://github.com/bcoe/yargs/commit/e855af4a933ea966b5bbdd3c4c6397a4bac1a053) Allow boolean flag with .demand() (@chrisn)
-- [14dbec2](https://github.com/bcoe/yargs/commit/14dbec24fb7380683198e2b20c4deb8423e64bea) Fixes issue #22. Arguments are no longer printed to the console when using .config. (@chevex)
-- [bef74fc](https://github.com/bcoe/yargs/commit/bef74fcddc1544598a804f80d0a3728459f196bf) Informing users that Yargs is the official optimist successor. (@chevex)
-- [#24](https://github.com/bcoe/yargs/pull/24) Merge pull request #24 from chrisn/strict (@chrisn)
-- [889a2b2](https://github.com/bcoe/yargs/commit/889a2b28eb9768801b05163360a470d0fd6c8b79) Added requiresArg option, for options that require values (@chrisn)
-- [eb16369](https://github.com/bcoe/yargs/commit/eb163692262be1fe80b992fd8803d5923c5a9b18) Added .strict() method, to report error if unknown arguments are given (@chrisn)
-- [0471c3f](https://github.com/bcoe/yargs/commit/0471c3fd999e1ad4e6cded88b8aa02013b66d14f) Changed optimist to yargs in usage-options.js example (@chrisn)
-- [5c88f74](https://github.com/bcoe/yargs/commit/5c88f74e3cf031b17c54b4b6606c83e485ff520e) Change optimist to yargs in examples (@chrisn)
-- [66f12c8](https://github.com/bcoe/yargs/commit/66f12c82ba3c943e4de8ca862980e835da8ecb3a) Fix a couple of bad interactions between aliases and defaults (@nylen)
-- [8fa1d80](https://github.com/bcoe/yargs/commit/8fa1d80f14b03eb1f2898863a61f1d1615bceb50) Document second argument of usage(message, opts) (@Gobie)
-- [56e6528](https://github.com/bcoe/yargs/commit/56e6528cf674ff70d63083fb044ff240f608448e) For "--some-option", also set argv.someOption (@nylen)
-- [ed5f6d3](https://github.com/bcoe/yargs/commit/ed5f6d33f57ad1086b11c91b51100f7c6c7fa8ee) Finished porting unit tests to Mocha. (@chevex)
-
-### v1.0.15 (2014/02/05 23:18 +00:00)
-- [e2b1fc0](https://github.com/bcoe/yargs/commit/e2b1fc0c4a59cf532ae9b01b275e1ef57eeb64d2) 1.0.15 update to badges (@chevex)
-
-### v1.0.14 (2014/02/05 23:17 +00:00)
-- [f33bbb0](https://github.com/bcoe/yargs/commit/f33bbb0f00fe18960f849cc8e15a7428a4cd59b8) Revert "Fixed issue which caused .demand function not to work correctly." (@chevex)
-
-### v1.0.13 (2014/02/05 22:13 +00:00)
-- [6509e5e](https://github.com/bcoe/yargs/commit/6509e5e7dee6ef1a1f60eea104be0faa1a045075) Fixed issue which caused .demand function not to work correctly. (@chevex)
-
-### v1.0.12 (2013/12/13 00:09 +00:00)
-- [05eb267](https://github.com/bcoe/yargs/commit/05eb26741c9ce446b33ff006e5d33221f53eaceb) 1.0.12 (@chevex)
-
-### v1.0.11 (2013/12/13 00:07 +00:00)
-- [c1bde46](https://github.com/bcoe/yargs/commit/c1bde46e37318a68b87d17a50c130c861d6ce4a9) 1.0.11 (@chevex)
-
-### v1.0.10 (2013/12/12 23:57 +00:00)
-- [dfebf81](https://github.com/bcoe/yargs/commit/dfebf8164c25c650701528ee581ca483a99dc21c) Fixed formatting in README (@chevex)
-
-### v1.0.9 (2013/12/12 23:47 +00:00)
-- [0b4e34a](https://github.com/bcoe/yargs/commit/0b4e34af5e6d84a9dbb3bb6d02cd87588031c182) Update README.md (@chevex)
-
-### v1.0.8 (2013/12/06 16:36 +00:00)
-- [#1](https://github.com/bcoe/yargs/pull/1) fix error caused by check() see #1 (@martinheidegger)
-
-### v1.0.7 (2013/11/24 18:01 +00:00)
-- [a247d88](https://github.com/bcoe/yargs/commit/a247d88d6e46644cbb7303c18b1bb678fc132d72) Modified Pirate Joe image. (@chevex)
-
-### v1.0.6 (2013/11/23 19:21 +00:00)
-- [d7f69e1](https://github.com/bcoe/yargs/commit/d7f69e1d34bc929736a8bdccdc724583e21b7eab) Updated Pirate Joe image. (@chevex)
-
-### v1.0.5 (2013/11/23 19:09 +00:00)
-- [ece809c](https://github.com/bcoe/yargs/commit/ece809cf317cc659175e1d66d87f3ca68c2760be) Updated readme notice again. (@chevex)
-
-### v1.0.4 (2013/11/23 19:05 +00:00)
-- [9e81e81](https://github.com/bcoe/yargs/commit/9e81e81654028f83ba86ffc3ac772a0476084e5e) Updated README with a notice about yargs being a fork of optimist and what that implies. (@chevex)
-
-### v1.0.3 (2013/11/23 17:43 +00:00)
-- [65e7a78](https://github.com/bcoe/yargs/commit/65e7a782c86764944d63d084416aba9ee6019c5f) Changed some small wording in README.md. (@chevex)
-- [459e20e](https://github.com/bcoe/yargs/commit/459e20e539b366b85128dd281ccd42221e96c7da) Fix a bug in the options function, when string and boolean options weren't applied to aliases. (@shockone)
-
-### v1.0.2 (2013/11/23 09:46 +00:00)
-- [3d80ebe](https://github.com/bcoe/yargs/commit/3d80ebed866d3799224b6f7d596247186a3898a9) 1.0.2 (@chevex)
-
-### v1.0.1 (2013/11/23 09:39 +00:00)
-- [f80ff36](https://github.com/bcoe/yargs/commit/f80ff3642d580d4b68bf9f5a94277481bd027142) Updated image. (@chevex)
-
-### v1.0.0 (2013/11/23 09:33 +00:00)
-- [54e31d5](https://github.com/bcoe/yargs/commit/54e31d505f820b80af13644e460894b320bf25a3) Rebranded from optimist to yargs in the spirit of the fork :D (@chevex)
-- [4ebb6c5](https://github.com/bcoe/yargs/commit/4ebb6c59f44787db7c24c5b8fe2680f01a23f498) Added documentation for demandCount(). (@chevex)
-- [4561ce6](https://github.com/bcoe/yargs/commit/4561ce66dcffa95f49e8b4449b25b94cd68acb25) Simplified the error messages returned by .check(). (@chevex)
-- [661c678](https://github.com/bcoe/yargs/commit/661c67886f479b16254a830b7e1db3be29e6b7a6) Fixed an issue with demand not accepting a zero value. (@chevex)
-- [731dd3c](https://github.com/bcoe/yargs/commit/731dd3c37624790490bd6df4d5f1da8f4348279e) Add .fail(fn) so death isn't the only option. Should fix issue #39. (@chevex)
-- [fa15417](https://github.com/bcoe/yargs/commit/fa15417ff9e70dace0d726627a5818654824c1d8) Added a few missing 'return self' (@chevex)
-- [e655e4d](https://github.com/bcoe/yargs/commit/e655e4d99d1ae1d3695ef755d51c2de08d669761) Fix showing help in certain JS environments. (@chevex)
-- [a746a31](https://github.com/bcoe/yargs/commit/a746a31cd47c87327028e6ea33762d6187ec5c87) Better string representation of default values. (@chevex)
-- [6134619](https://github.com/bcoe/yargs/commit/6134619a7e90b911d5443230b644c5d447c1a68c) Implies: conditional demands (@chevex)
-- [046b93b](https://github.com/bcoe/yargs/commit/046b93b5d40a27367af4cb29726e4d781d934639) Added support for JSON config files. (@chevex)
-- [a677ec0](https://github.com/bcoe/yargs/commit/a677ec0a0ecccd99c75e571d03323f950688da03) Add .example(cmd, desc) feature. (@chevex)
-- [1bd4375](https://github.com/bcoe/yargs/commit/1bd4375e11327ba1687d4bb6e5e9f3c30c1be2af) Added 'defaults' as alias to 'default' so as to avoid usage of a reserved keyword. (@chevex)
-- [6b753c1](https://github.com/bcoe/yargs/commit/6b753c16ca09e723060e70b773b430323b29c45c) add .normalize(args..) support for normalizing paths (@chevex)
-- [33d7d59](https://github.com/bcoe/yargs/commit/33d7d59341d364f03d3a25f0a55cb99004dbbe4b) Customize error messages with demand(key, msg) (@chevex)
-- [647d37f](https://github.com/bcoe/yargs/commit/647d37f164c20f4bafbf67dd9db6cd6e2cd3b49f) Merge branch 'rewrite-duplicate-test' of github.com:isbadawi/node-optimist (@chevex)
-- [9059d1a](https://github.com/bcoe/yargs/commit/9059d1ad5e8aea686c2a01c89a23efdf929fff2e) Pass aliases object to check functions for greater versatility. (@chevex)
-- [623dc26](https://github.com/bcoe/yargs/commit/623dc26c7331abff2465ef8532e3418996d42fe6) Added ability to count boolean options and rolled minimist library back into project. (@chevex)
-- [49f0dce](https://github.com/bcoe/yargs/commit/49f0dcef35de4db544c3966350d36eb5838703f6) Fixed small typo. (@chevex)
-- [79ec980](https://github.com/bcoe/yargs/commit/79ec9806d9ca6eb0014cfa4b6d1849f4f004baf2) Removed dependency on wordwrap module. (@chevex)
-- [ea14630](https://github.com/bcoe/yargs/commit/ea14630feddd69d1de99dd8c0e08948f4c91f00a) Merge branch 'master' of github.com:chbrown/node-optimist (@chevex)
-- [2b75da2](https://github.com/bcoe/yargs/commit/2b75da2624061e0f4f3107d20303c06ec9054906) Merge branch 'master' of github.com:seanzhou1023/node-optimist (@chevex)
-- [d9bda11](https://github.com/bcoe/yargs/commit/d9bda1116e26f3b40e833ca9ca19263afea53565) Merge branch 'patch-1' of github.com:thefourtheye/node-optimist (@chevex)
-- [d6cc606](https://github.com/bcoe/yargs/commit/d6cc6064a4f1bea38a16a4430b8a1334832fbeff) Renamed README. (@chevex)
-- [9498d3f](https://github.com/bcoe/yargs/commit/9498d3f59acfb5e102826503e681623c3a64b178) Renamed readme and added .gitignore. (@chevex)
-- [bbd1fe3](https://github.com/bcoe/yargs/commit/bbd1fe37fefa366dde0fb3dc44d91fe8b28f57f5) Included examples for ```help``` and ```showHelp``` functions and fixed few formatting issues (@thefourtheye)
-- [37fea04](https://github.com/bcoe/yargs/commit/37fea0470a5796a0294c1dcfff68d8041650e622) .alias({}) behaves differently based on mapping direction when generating descriptions (@chbrown)
-- [855b20d](https://github.com/bcoe/yargs/commit/855b20d0be567ca121d06b30bea64001b74f3d6d) Documented function signatures are useful for dynamically typed languages. (@chbrown)
-
-### 0.6.0 (2013/06/25 08:48 +00:00)
-- [d37bfe0](https://github.com/bcoe/yargs/commit/d37bfe05ae6d295a0ab481efe4881222412791f4) all tests passing using minimist (@substack)
-- [76f1352](https://github.com/bcoe/yargs/commit/76f135270399d01f2bbc621e524a5966e5c422fd) all parse tests now passing (@substack)
-- [a7b6754](https://github.com/bcoe/yargs/commit/a7b6754276c38d1565479a5685c3781aeb947816) using minimist, some tests passing (@substack)
-- [6655688](https://github.com/bcoe/yargs/commit/66556882aa731cbbbe16cc4d42c85740a2e98099) Give credit where its due (@DeadAlready)
-- [602a2a9](https://github.com/bcoe/yargs/commit/602a2a92a459f93704794ad51b115bbb08b535ce) v0.5.3 - Remove wordwrap as dependency (@DeadAlready)
-
-### 0.5.2 (2013/05/31 03:46 +00:00)
-- [4497ca5](https://github.com/bcoe/yargs/commit/4497ca55e332760a37b866ec119ded347ca27a87) fixed the whitespace bug without breaking anything else (@substack)
-- [5a3dd1a](https://github.com/bcoe/yargs/commit/5a3dd1a4e0211a38613c6e02f61328e1031953fa) failing test for whitespace arg (@substack)
-
-### 0.5.1 (2013/05/30 07:17 +00:00)
-- [a20228f](https://github.com/bcoe/yargs/commit/a20228f62a454755dd07f628a7c5759113918327) fix parse() to work with functions before it (@substack)
-- [b13bd4c](https://github.com/bcoe/yargs/commit/b13bd4cac856a9821d42fa173bdb58f089365a7d) failing test for parse() with modifiers (@substack)
-
-### 0.5.0 (2013/05/18 21:59 +00:00)
-- [c474a64](https://github.com/bcoe/yargs/commit/c474a649231527915c222156e3b40806d365a87c) fixes for dash (@substack)
-
-### 0.4.0 (2013/04/13 19:03 +00:00)
-- [dafe3e1](https://github.com/bcoe/yargs/commit/dafe3e18d7c6e7c2d68e06559df0e5cbea3adb14) failing short test (@substack)
-
-### 0.3.7 (2013/04/04 04:07 +00:00)
-- [6c7a0ec](https://github.com/bcoe/yargs/commit/6c7a0ec94ce4199a505f0518b4d6635d4e47cc81) Fix for windows. On windows there is no _ in environment. (@hdf)
-
-### 0.3.6 (2013/04/04 04:04 +00:00)
-- [e72346a](https://github.com/bcoe/yargs/commit/e72346a727b7267af5aa008b418db89970873f05) Add support for newlines in -a="" arguments (@danielbeardsley)
-- [71e1fb5](https://github.com/bcoe/yargs/commit/71e1fb55ea9987110a669ac6ec12338cfff3821c) drop 0.4, add 0.8 to travis (@substack)
-
-### 0.3.5 (2012/10/10 11:09 +00:00)
-- [ee692b3](https://github.com/bcoe/yargs/commit/ee692b37554c70a0bb16389a50a26b66745cbbea) Fix parsing booleans (@vojtajina)
-- [5045122](https://github.com/bcoe/yargs/commit/5045122664c3f5b4805addf1be2148d5856f7ce8) set $0 properly in the tests (@substack)
-
-### 0.3.4 (2012/04/30 06:54 +00:00)
-- [f28c0e6](https://github.com/bcoe/yargs/commit/f28c0e62ca94f6e0bb2e6d82fc3d91a55e69b903) bump for string "true" params (@substack)
-- [8f44aeb](https://github.com/bcoe/yargs/commit/8f44aeb74121ddd689580e2bf74ef86a605e9bf2) Fix failing test for aliased booleans. (@coderarity)
-- [b9f7b61](https://github.com/bcoe/yargs/commit/b9f7b613b1e68e11e6c23fbda9e555a517dcc976) Add failing test for short aliased booleans. (@coderarity)
-
-### 0.3.3 (2012/04/30 06:45 +00:00)
-- [541bac8](https://github.com/bcoe/yargs/commit/541bac8dd787a5f1a5d28f6d8deb1627871705e7) Fixes #37.
-
-### 0.3.2 (2012/04/12 20:28 +00:00)
-- [3a0f014](https://github.com/bcoe/yargs/commit/3a0f014c1451280ac1c9caa1f639d31675586eec) travis badge (@substack)
-- [4fb60bf](https://github.com/bcoe/yargs/commit/4fb60bf17845f4ce3293f8ca49c9a1a7c736cfce) Fix boolean aliases. (@coderarity)
-- [f14dda5](https://github.com/bcoe/yargs/commit/f14dda546efc4fe06ace04d36919bfbb7634f79b) Adjusted package.json to use tap (@jfhbrook)
-- [88e5d32](https://github.com/bcoe/yargs/commit/88e5d32295be6e544c8d355ff84e355af38a1c74) test/usage.js no longer hangs (@jfhbrook)
-- [e1e740c](https://github.com/bcoe/yargs/commit/e1e740c27082f3ce84deca2093d9db2ef735d0e5) two tests for combined boolean/alias opts parsing (@jfhbrook)
-
-### 0.3.1 (2011/12/31 08:44 +00:00)
-- [d09b719](https://github.com/bcoe/yargs/commit/d09b71980ef711b6cf3918cd19beec8257e40e82) If "default" is set to false it was not passed on, fixed. (@wolframkriesing)
-
-### 0.3.0 (2011/12/09 06:03 +00:00)
-- [6e74aa7](https://github.com/bcoe/yargs/commit/6e74aa7b46a65773e20c0cb68d2d336d4a0d553d) bump and documented dot notation (@substack)
-
-### 0.2.7 (2011/10/20 02:25 +00:00)
-- [94adee2](https://github.com/bcoe/yargs/commit/94adee20e17b58d0836f80e8b9cdbe9813800916) argv._ can be told 'Hey! argv._! Don't be messing with my args.', and it WILL obey (@colinta)
-- [c46fdd5](https://github.com/bcoe/yargs/commit/c46fdd56a05410ae4a1e724a4820c82e77ff5469) optimistic critter image (@substack)
-- [5c95c73](https://github.com/bcoe/yargs/commit/5c95c73aedf4c7482bd423e10c545e86d7c8a125) alias options() to option() (@substack)
-- [f7692ea](https://github.com/bcoe/yargs/commit/f7692ea8da342850af819367833abb685fde41d8) [fix] Fix for parsing boolean edge case (@indexzero)
-- [d1f92d1](https://github.com/bcoe/yargs/commit/d1f92d1425bd7f356055e78621b30cdf9741a3c2)
-- [b01bda8](https://github.com/bcoe/yargs/commit/b01bda8d86e455bbf74ce497864cb8ab5b9fb847) [fix test] Update to ensure optimist is aware of default booleans. Associated tests included (@indexzero)
-- [aa753e7](https://github.com/bcoe/yargs/commit/aa753e7c54fb3a12f513769a0ff6d54aa0f63943) [dist test] Update devDependencies in package.json. Update test pathing to be more npm and require.paths future-proof (@indexzero)
-- [7bfce2f](https://github.com/bcoe/yargs/commit/7bfce2f3b3c98e6539e7549d35fbabced7e9341e) s/sys/util/ (@substack)
-- [d420a7a](https://github.com/bcoe/yargs/commit/d420a7a9c890d2cdb11acfaf3ea3f43bc3e39f41) update usage output (@substack)
-- [cf86eed](https://github.com/bcoe/yargs/commit/cf86eede2e5fc7495b6ec15e6d137d9ac814f075) some sage readme protips about parsing rules (@substack)
-- [5da9f7a](https://github.com/bcoe/yargs/commit/5da9f7a5c0e1758ec7c5801fb3e94d3f6e970513) documented all the methods finally (@substack)
-- [8ca6879](https://github.com/bcoe/yargs/commit/8ca6879311224b25933642987300f6a29de5c21b) fenced syntax highlighting (@substack)
-- [b72bacf](https://github.com/bcoe/yargs/commit/b72bacf1d02594778c1935405bc8137eb61761dc) right-alignment of wrapped extra params (@substack)
-- [2b980bf](https://github.com/bcoe/yargs/commit/2b980bf2656b4ee8fc5134dc5f56a48855c35198) now with .wrap() (@substack)
-- [d614f63](https://github.com/bcoe/yargs/commit/d614f639654057d1b7e35e3f5a306e88ec2ad1e4) don't show 'Options:' when there aren't any (@substack)
-- [691eda3](https://github.com/bcoe/yargs/commit/691eda354df97b5a86168317abcbcaabdc08a0fb) failing test for multi-aliasing (@substack)
-- [0826c9f](https://github.com/bcoe/yargs/commit/0826c9f462109feab2bc7a99346d22e72bf774b7) "Options:" > "options:" (@substack)
-- [72f7490](https://github.com/bcoe/yargs/commit/72f749025d01b7f295738ed370a669d885fbada0) [minor] Update formatting for `.showHelp()` (@indexzero)
-- [75aecce](https://github.com/bcoe/yargs/commit/75aeccea74329094072f95800e02c275e7d999aa) options works again, too lazy to write a proper test right now (@substack)
-- [f742e54](https://github.com/bcoe/yargs/commit/f742e5439817c662dc3bd8734ddd6467e6018cfd) line_count_options example, which breaks (@substack)
-- [4ca06b8](https://github.com/bcoe/yargs/commit/4ca06b8b4ea99b5d5714b315a2a8576bee6e5537) line count example (@substack)
-- [eeb8423](https://github.com/bcoe/yargs/commit/eeb8423e0a5ecc9dc3eb1e6df9f3f8c1c88f920b) remove self.argv setting in boolean (@substack)
-- [6903412](https://github.com/bcoe/yargs/commit/69034126804660af9cc20ea7f4457b50338ee3d7) removed camel case for now (@substack)
-- [5a0d88b](https://github.com/bcoe/yargs/commit/5a0d88bf23e9fa79635dd034e2a1aa992acc83cd) remove dead longest checking code (@substack)
-- [d782170](https://github.com/bcoe/yargs/commit/d782170babf7284b1aa34f5350df0dd49c373fa8) .help() too (@substack)
-- [622ec17](https://github.com/bcoe/yargs/commit/622ec17379bb5374fdbb190404c82bc600975791) rm old help generator (@substack)
-- [7c8baac](https://github.com/bcoe/yargs/commit/7c8baac4d66195e9f5158503ea9ebfb61153dab7) nub keys (@substack)
-- [8197785](https://github.com/bcoe/yargs/commit/8197785ad4762465084485b041abd722f69bf344) generate help message based on the previous calls, todo: nub (@substack)
-- [3ffbdc3](https://github.com/bcoe/yargs/commit/3ffbdc33c8f5e83d4ea2ac60575ce119570c7ede) stub out new showHelp, better checks (@substack)
-- [d4e21f5](https://github.com/bcoe/yargs/commit/d4e21f56a4830f7de841900d3c79756fb9886184) let .options() take single options too (@substack)
-- [3c4cf29](https://github.com/bcoe/yargs/commit/3c4cf2901a29bac119cca8e983028d8669230ec6) .options() is now heaps simpler (@substack)
-- [89f0d04](https://github.com/bcoe/yargs/commit/89f0d043cbccd302f10ab30c2069e05d2bf817c9) defaults work again, all tests pass (@substack)
-- [dd87333](https://github.com/bcoe/yargs/commit/dd8733365423006a6e4156372ebb55f98323af58) update test error messages, down to 2 failing tests (@substack)
-- [53f7bc6](https://github.com/bcoe/yargs/commit/53f7bc626b9875f2abdfc5dd7a80bde7f14143a3) fix for bools doubling up, passes the parse test again, others fail (@substack)
-- [2213e2d](https://github.com/bcoe/yargs/commit/2213e2ddc7263226fba717fb041dc3fde9bc2ee4) refactored for an argv getter, failing several tests (@substack)
-- [d1e7379](https://github.com/bcoe/yargs/commit/d1e737970f15c6c006bebdd8917706827ff2f0f2) just rescan for now, alias test passes (@substack)
-- [b2f8c99](https://github.com/bcoe/yargs/commit/b2f8c99cc477a8eb0fdf4cf178e1785b63185cfd) failing alias test (@substack)
-- [d0c0174](https://github.com/bcoe/yargs/commit/d0c0174daa144bfb6dc7290fdc448c393c475e15) .alias() (@substack)
-- [d85f431](https://github.com/bcoe/yargs/commit/d85f431ad7d07b058af3f2a57daa51495576c164) [api] Remove `.describe()` in favor of building upon the existing `.usage()` API (@indexzero)
-- [edbd527](https://github.com/bcoe/yargs/commit/edbd5272a8e213e71acd802782135c7f9699913a) [doc api] Add `.describe()`, `.options()`, and `.showHelp()` methods along with example. (@indexzero)
-- [be4902f](https://github.com/bcoe/yargs/commit/be4902ff0961ae8feb9093f2c0a4066463ded2cf) updates for coffee since it now does argv the node way (@substack)
-- [e24cb23](https://github.com/bcoe/yargs/commit/e24cb23798ee64e53b60815e7fda78b87f42390c) more general coffeescript detection (@substack)
-- [78ac753](https://github.com/bcoe/yargs/commit/78ac753e5d0ec32a96d39d893272afe989e42a4d) Don't trigger the CoffeeScript hack when running under node_g. (@papandreou)
-- [bcfe973](https://github.com/bcoe/yargs/commit/bcfe9731d7f90d4632281b8a52e8d76eb0195ae6) .string() but failing test (@substack)
-- [1987aca](https://github.com/bcoe/yargs/commit/1987aca28c7ba4e8796c07bbc547cb984804c826) test hex strings (@substack)
-- [ef36db3](https://github.com/bcoe/yargs/commit/ef36db32259b0b0d62448dc907c760e5554fb7e7) more keywords (@substack)
-- [cc53c56](https://github.com/bcoe/yargs/commit/cc53c56329960bed6ab077a79798e991711ba01d) Added camelCase function that converts --multi-word-option to camel case (so it becomes argv.multiWordOption). (@papandreou)
-- [60b57da](https://github.com/bcoe/yargs/commit/60b57da36797716e5783a633c6d5c79099016d45) fixed boolean bug by rescanning (@substack)
-- [dff6d07](https://github.com/bcoe/yargs/commit/dff6d078d97f8ac503c7d18dcc7b7a8c364c2883) boolean examples (@substack)
-- [0e380b9](https://github.com/bcoe/yargs/commit/0e380b92c4ef4e3c8dac1da18b5c31d85b1d02c9) boolean() with passing test (@substack)
-- [62644d4](https://github.com/bcoe/yargs/commit/62644d4bffbb8d1bbf0c2baf58a1d14a6359ef07) coffee compatibility with node regex for versions too (@substack)
-- [430fafc](https://github.com/bcoe/yargs/commit/430fafcf1683d23774772826581acff84b456827) argv._ fixed by fixing the coffee detection (@substack)
-- [343b8af](https://github.com/bcoe/yargs/commit/343b8afefd98af274ebe21b5a16b3a949ec5429f) whichNodeArgs test fails too (@substack)
-- [63df2f3](https://github.com/bcoe/yargs/commit/63df2f371f31e63d7f1dec2cbf0022a5f08da9d2) replicated mnot's bug in whichNodeEmpty test (@substack)
-- [35473a4](https://github.com/bcoe/yargs/commit/35473a4d93a45e5e7e512af8bb54ebb532997ae1) test for ./bin usage (@substack)
-- [13df151](https://github.com/bcoe/yargs/commit/13df151e44228eed10e5441c7cd163e086c458a4) don't coerce booleans to numbers (@substack)
-- [85f8007](https://github.com/bcoe/yargs/commit/85f8007e93b8be7124feea64b1f1916d8ba1894a) package bump for automatic number conversion (@substack)
-- [8f17014](https://github.com/bcoe/yargs/commit/8f170141cded4ccc0c6d67a849c5bf996aa29643) updated readme and examples with new auto-numberification goodness (@substack)
-- [73dc901](https://github.com/bcoe/yargs/commit/73dc9011ac968e39b55e19e916084a839391b506) auto number conversion works yay (@substack)
-- [bcec56b](https://github.com/bcoe/yargs/commit/bcec56b3d031e018064cbb691539ccc4f28c14ad) failing test for not-implemented auto numification (@substack)
-- [ebd2844](https://github.com/bcoe/yargs/commit/ebd2844d683feeac583df79af0e5124a7a7db04e) odd that eql doesn't check types careflly (@substack)
-- [fd854b0](https://github.com/bcoe/yargs/commit/fd854b02e512ce854b76386d395672a7969c1bc4) package author + keywords (@substack)
-- [656a1d5](https://github.com/bcoe/yargs/commit/656a1d5a1b7c0e49d72e80cb13f20671d56f76c6) updated readme with .default() stuff (@substack)
-- [cd7f8c5](https://github.com/bcoe/yargs/commit/cd7f8c55f0b82b79b690d14c5f806851236998a1) passing tests for new .default() behavior (@substack)
-- [932725e](https://github.com/bcoe/yargs/commit/932725e39ce65bc91a0385a5fab659a5fa976ac2) new default() thing for setting default key/values (@substack)
-- [4e6c7ab](https://github.com/bcoe/yargs/commit/4e6c7aba6374ac9ebc6259ecf91f13af7bce40e3) test for coffee usage (@substack)
-- [d54ffcc](https://github.com/bcoe/yargs/commit/d54ffccf2a5a905f51ed5108f7c647f35d64ae23) new --key value style with passing tests. NOTE: changes existing behavior (@substack)
-- [ed2a2d5](https://github.com/bcoe/yargs/commit/ed2a2d5d828100ebeef6385c0fb88d146a5cfe9b) package bump for summatix's coffee script fix (@substack)
-- [75a975e](https://github.com/bcoe/yargs/commit/75a975eed8430d28e2a79dc9e6d819ad545f4587) Added support for CoffeeScript (@summatix)
-- [56b2b1d](https://github.com/bcoe/yargs/commit/56b2b1de8d11f8a2b91979d8ae2d6db02d8fe64d) test coverage for the falsy check() usage (@substack)
-- [a4843a9](https://github.com/bcoe/yargs/commit/a4843a9f0e69ffb4afdf6a671d89eb6f218be35d) check bug fixed plus a handy string (@substack)
-- [857bd2d](https://github.com/bcoe/yargs/commit/857bd2db933a5aaa9cfecba0ced2dc9b415f8111) tests for demandCount, back up to 100% coverage (@substack)
-- [073b776](https://github.com/bcoe/yargs/commit/073b7768ebd781668ef05c13f9003aceca2f5c35) call demandCount from demand (@substack)
-- [4bd4b7a](https://github.com/bcoe/yargs/commit/4bd4b7a085c8b6ce1d885a0f486cc9865cee2db1) add demandCount to check for the number of arguments in the _ list (@marshall)
-- [b8689ac](https://github.com/bcoe/yargs/commit/b8689ac68dacf248119d242bba39a41cb0adfa07) Rebase checks. That will be its own module eventually. (@substack)
-- [e688370](https://github.com/bcoe/yargs/commit/e688370b576f0aa733c3f46183df69e1b561668e) a $0 like in perl (@substack)
-- [2e5e196](https://github.com/bcoe/yargs/commit/2e5e1960fc19afb21fb3293752316eaa8bcd3609) usage test hacking around process and console (@substack)
-- [fcc3521](https://github.com/bcoe/yargs/commit/fcc352163fbec6a1dfe8caf47a0df39de24fe016) description pun (@substack)
-- [87a1fe2](https://github.com/bcoe/yargs/commit/87a1fe29037ca2ca5fefda85141aaeb13e8ce761) mit/x11 license (@substack)
-- [8d089d2](https://github.com/bcoe/yargs/commit/8d089d24cd687c0bde3640a96c09b78f884900dd) bool example is more consistent and also shows off short option grouping (@substack)
-- [448d747](https://github.com/bcoe/yargs/commit/448d7473ac68e8e03d8befc9457b0d9e21725be0) start of the readme and examples (@substack)
-- [da74dea](https://github.com/bcoe/yargs/commit/da74dea799a9b59dbf022cbb8001bfdb0d52eec9) more tests for long and short captures (@substack)
-- [ab6387e](https://github.com/bcoe/yargs/commit/ab6387e6769ca4af82ca94c4c67c7319f0d9fcfa) silly bug in the tests with s/not/no/, all tests pass now (@substack)
-- [102496a](https://github.com/bcoe/yargs/commit/102496a319e8e06f6550d828fc2f72992c7d9ecc) hack an instance for process.argv onto Argv so the export can be called to create an instance or used for argv, which is the most common case (@substack)
-- [a01caeb](https://github.com/bcoe/yargs/commit/a01caeb532546d19f68f2b2b87f7036cfe1aaedd) divide example (@substack)
-- [443da55](https://github.com/bcoe/yargs/commit/443da55736acbaf8ff8b04d1b9ce19ab016ddda2) start of the lib with a package.json (@substack)
diff --git a/node_modules/yargs/LICENSE b/node_modules/yargs/LICENSE
deleted file mode 100644
index 747ab11..0000000
--- a/node_modules/yargs/LICENSE
+++ /dev/null
@@ -1,22 +0,0 @@
-Copyright 2010 James Halliday (mail@substack.net)
-Modified work Copyright 2014 Contributors (ben@npmjs.com)
-
-This project is free software released under the MIT/X11 license:
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/yargs/README.md b/node_modules/yargs/README.md
deleted file mode 100644
index 6b7d096..0000000
--- a/node_modules/yargs/README.md
+++ /dev/null
@@ -1,122 +0,0 @@
-<p align="center">
- <img width="250" src="/yargs-logo.png">
-</p>
-<h1 align="center"> Yargs </h1>
-<p align="center">
- <b >Yargs be a node.js library fer hearties tryin' ter parse optstrings</b>
-</p>
-<br>
-
-[![Build Status][travis-image]][travis-url]
-[![Coverage Status][coveralls-image]][coveralls-url]
-[![NPM version][npm-image]][npm-url]
-[![js-standard-style][standard-image]][standard-url]
-[![Conventional Commits][conventional-commits-image]][conventional-commits-url]
-[![Slack][slack-image]][slack-url]
-
-## Description :
-Yargs helps you build interactive command line tools, by parsing arguments and generating an elegant user interface.
-
-It gives you:
-
-* commands and (grouped) options (`my-program.js serve --port=5000`).
-* a dynamically generated help menu based on your arguments.
-
-> <img width="400" src="/screen.png">
-
-* bash-completion shortcuts for commands and options.
-* and [tons more](/docs/api.md).
-
-## Installation
-
-Stable version:
-```bash
-npm i yargs
-```
-
-Bleeding edge version with the most recent features:
-```bash
-npm i yargs@next
-```
-
-## Usage :
-
-### Simple Example
-
-````javascript
-#!/usr/bin/env node
-const argv = require('yargs').argv
-
-if (argv.ships > 3 && argv.distance < 53.5) {
- console.log('Plunder more riffiwobbles!')
-} else {
- console.log('Retreat from the xupptumblers!')
-}
-````
-
-```bash
-$ ./plunder.js --ships=4 --distance=22
-Plunder more riffiwobbles!
-
-$ ./plunder.js --ships 12 --distance 98.7
-Retreat from the xupptumblers!
-```
-
-### Complex Example
-
-```javascript
-#!/usr/bin/env node
-require('yargs') // eslint-disable-line
- .command('serve [port]', 'start the server', (yargs) => {
- yargs
- .positional('port', {
- describe: 'port to bind on',
- default: 5000
- })
- }, (argv) => {
- if (argv.verbose) console.info(`start server on :${argv.port}`)
- serve(argv.port)
- })
- .option('verbose', {
- alias: 'v',
- default: false
- })
- .argv
-```
-
-Run the example above with `--help` to see the help for the application.
-
-## Community :
-
-Having problems? want to contribute? join our [community slack](http://devtoolscommunity.herokuapp.com).
-
-## Documentation :
-
-### Table of Contents
-
-* [Yargs' API](/docs/api.md)
-* [Examples](/docs/examples.md)
-* [Parsing Tricks](/docs/tricks.md)
- * [Stop the Parser](/docs/tricks.md#stop)
- * [Negating Boolean Arguments](/docs/tricks.md#negate)
- * [Numbers](/docs/tricks.md#numbers)
- * [Arrays](/docs/tricks.md#arrays)
- * [Objects](/docs/tricks.md#objects)
-* [Advanced Topics](/docs/advanced.md)
- * [Composing Your App Using Commands](/docs/advanced.md#commands)
- * [Building Configurable CLI Apps](/docs/advanced.md#configuration)
- * [Customizing Yargs' Parser](/docs/advanced.md#customizing)
-* [Contributing](/contributing.md)
-
-[travis-url]: https://travis-ci.org/yargs/yargs
-[travis-image]: https://img.shields.io/travis/yargs/yargs/master.svg
-[coveralls-url]: https://coveralls.io/github/yargs/yargs
-[coveralls-image]: https://img.shields.io/coveralls/yargs/yargs.svg
-[npm-url]: https://www.npmjs.com/package/yargs
-[npm-image]: https://img.shields.io/npm/v/yargs.svg
-[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
-[standard-url]: http://standardjs.com/
-[conventional-commits-image]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
-[conventional-commits-url]: https://conventionalcommits.org/
-[slack-image]: http://devtoolscommunity.herokuapp.com/badge.svg
-[slack-url]: http://devtoolscommunity.herokuapp.com
diff --git a/node_modules/yargs/index.js b/node_modules/yargs/index.js
deleted file mode 100644
index dfed54b..0000000
--- a/node_modules/yargs/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict'
-// classic singleton yargs API, to use yargs
-// without running as a singleton do:
-// require('yargs/yargs')(process.argv.slice(2))
-const yargs = require('./yargs')
-
-Argv(process.argv.slice(2))
-
-module.exports = Argv
-
-function Argv (processArgs, cwd) {
- const argv = yargs(processArgs, cwd, require)
- singletonify(argv)
- return argv
-}
-
-/* Hack an instance of Argv with process.argv into Argv
- so people can do
- require('yargs')(['--beeble=1','-z','zizzle']).argv
- to parse a list of args and
- require('yargs').argv
- to get a parsed version of process.argv.
-*/
-function singletonify (inst) {
- Object.keys(inst).forEach((key) => {
- if (key === 'argv') {
- Argv.__defineGetter__(key, inst.__lookupGetter__(key))
- } else {
- Argv[key] = typeof inst[key] === 'function' ? inst[key].bind(inst) : inst[key]
- }
- })
-}
diff --git a/node_modules/yargs/lib/apply-extends.js b/node_modules/yargs/lib/apply-extends.js
deleted file mode 100644
index 1436b65..0000000
--- a/node_modules/yargs/lib/apply-extends.js
+++ /dev/null
@@ -1,53 +0,0 @@
-
-'use strict'
-const fs = require('fs')
-const path = require('path')
-const YError = require('./yerror')
-
-let previouslyVisitedConfigs = []
-
-function checkForCircularExtends (cfgPath) {
- if (previouslyVisitedConfigs.indexOf(cfgPath) > -1) {
- throw new YError(`Circular extended configurations: '${cfgPath}'.`)
- }
-}
-
-function getPathToDefaultConfig (cwd, pathToExtend) {
- return path.resolve(cwd, pathToExtend)
-}
-
-function applyExtends (config, cwd) {
- let defaultConfig = {}
-
- if (config.hasOwnProperty('extends')) {
- if (typeof config.extends !== 'string') return defaultConfig
- const isPath = /\.json|\..*rc$/.test(config.extends)
- let pathToDefault = null
- if (!isPath) {
- try {
- pathToDefault = require.resolve(config.extends)
- } catch (err) {
- // most likely this simply isn't a module.
- }
- } else {
- pathToDefault = getPathToDefaultConfig(cwd, config.extends)
- }
- // maybe the module uses key for some other reason,
- // err on side of caution.
- if (!pathToDefault && !isPath) return config
-
- checkForCircularExtends(pathToDefault)
-
- previouslyVisitedConfigs.push(pathToDefault)
-
- defaultConfig = isPath ? JSON.parse(fs.readFileSync(pathToDefault, 'utf8')) : require(config.extends)
- delete config.extends
- defaultConfig = applyExtends(defaultConfig, path.dirname(pathToDefault))
- }
-
- previouslyVisitedConfigs = []
-
- return Object.assign({}, defaultConfig, config)
-}
-
-module.exports = applyExtends
diff --git a/node_modules/yargs/lib/argsert.js b/node_modules/yargs/lib/argsert.js
deleted file mode 100644
index f310b4e..0000000
--- a/node_modules/yargs/lib/argsert.js
+++ /dev/null
@@ -1,68 +0,0 @@
-'use strict'
-
-// hoisted due to circular dependency on command.
-module.exports = argsert
-const command = require('./command')()
-const YError = require('./yerror')
-
-const positionName = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']
-function argsert (expected, callerArguments, length) {
- // TODO: should this eventually raise an exception.
- try {
- // preface the argument description with "cmd", so
- // that we can run it through yargs' command parser.
- let position = 0
- let parsed = { demanded: [], optional: [] }
- if (typeof expected === 'object') {
- length = callerArguments
- callerArguments = expected
- } else {
- parsed = command.parseCommand(`cmd ${expected}`)
- }
- const args = [].slice.call(callerArguments)
-
- while (args.length && args[args.length - 1] === undefined) args.pop()
- length = length || args.length
-
- if (length < parsed.demanded.length) {
- throw new YError(`Not enough arguments provided. Expected ${parsed.demanded.length} but received ${args.length}.`)
- }
-
- const totalCommands = parsed.demanded.length + parsed.optional.length
- if (length > totalCommands) {
- throw new YError(`Too many arguments provided. Expected max ${totalCommands} but received ${length}.`)
- }
-
- parsed.demanded.forEach((demanded) => {
- const arg = args.shift()
- const observedType = guessType(arg)
- const matchingTypes = demanded.cmd.filter(type => type === observedType || type === '*')
- if (matchingTypes.length === 0) argumentTypeError(observedType, demanded.cmd, position, false)
- position += 1
- })
-
- parsed.optional.forEach((optional) => {
- if (args.length === 0) return
- const arg = args.shift()
- const observedType = guessType(arg)
- const matchingTypes = optional.cmd.filter(type => type === observedType || type === '*')
- if (matchingTypes.length === 0) argumentTypeError(observedType, optional.cmd, position, true)
- position += 1
- })
- } catch (err) {
- console.warn(err.stack)
- }
-}
-
-function guessType (arg) {
- if (Array.isArray(arg)) {
- return 'array'
- } else if (arg === null) {
- return 'null'
- }
- return typeof arg
-}
-
-function argumentTypeError (observedType, allowedTypes, position, optional) {
- throw new YError(`Invalid ${positionName[position] || 'manyith'} argument. Expected ${allowedTypes.join(' or ')} but received ${observedType}.`)
-}
diff --git a/node_modules/yargs/lib/command.js b/node_modules/yargs/lib/command.js
deleted file mode 100644
index 895423a..0000000
--- a/node_modules/yargs/lib/command.js
+++ /dev/null
@@ -1,437 +0,0 @@
-'use strict'
-
-const inspect = require('util').inspect
-const isPromise = require('./is-promise')
-const { applyMiddleware, commandMiddlewareFactory } = require('./middleware')
-const path = require('path')
-const Parser = require('yargs-parser')
-
-const DEFAULT_MARKER = /(^\*)|(^\$0)/
-
-// handles parsing positional arguments,
-// and populating argv with said positional
-// arguments.
-module.exports = function command (yargs, usage, validation, globalMiddleware) {
- const self = {}
- let handlers = {}
- let aliasMap = {}
- let defaultCommand
- globalMiddleware = globalMiddleware || []
-
- self.addHandler = function addHandler (cmd, description, builder, handler, commandMiddleware) {
- let aliases = []
- const middlewares = commandMiddlewareFactory(commandMiddleware)
- handler = handler || (() => {})
-
- if (Array.isArray(cmd)) {
- aliases = cmd.slice(1)
- cmd = cmd[0]
- } else if (typeof cmd === 'object') {
- let command = (Array.isArray(cmd.command) || typeof cmd.command === 'string') ? cmd.command : moduleName(cmd)
- if (cmd.aliases) command = [].concat(command).concat(cmd.aliases)
- self.addHandler(command, extractDesc(cmd), cmd.builder, cmd.handler, cmd.middlewares)
- return
- }
-
- // allow a module to be provided instead of separate builder and handler
- if (typeof builder === 'object' && builder.builder && typeof builder.handler === 'function') {
- self.addHandler([cmd].concat(aliases), description, builder.builder, builder.handler, builder.middlewares)
- return
- }
-
- // parse positionals out of cmd string
- const parsedCommand = self.parseCommand(cmd)
-
- // remove positional args from aliases only
- aliases = aliases.map(alias => self.parseCommand(alias).cmd)
-
- // check for default and filter out '*''
- let isDefault = false
- const parsedAliases = [parsedCommand.cmd].concat(aliases).filter((c) => {
- if (DEFAULT_MARKER.test(c)) {
- isDefault = true
- return false
- }
- return true
- })
-
- // standardize on $0 for default command.
- if (parsedAliases.length === 0 && isDefault) parsedAliases.push('$0')
-
- // shift cmd and aliases after filtering out '*'
- if (isDefault) {
- parsedCommand.cmd = parsedAliases[0]
- aliases = parsedAliases.slice(1)
- cmd = cmd.replace(DEFAULT_MARKER, parsedCommand.cmd)
- }
-
- // populate aliasMap
- aliases.forEach((alias) => {
- aliasMap[alias] = parsedCommand.cmd
- })
-
- if (description !== false) {
- usage.command(cmd, description, isDefault, aliases)
- }
-
- handlers[parsedCommand.cmd] = {
- original: cmd,
- description: description,
- handler,
- builder: builder || {},
- middlewares: middlewares || [],
- demanded: parsedCommand.demanded,
- optional: parsedCommand.optional
- }
-
- if (isDefault) defaultCommand = handlers[parsedCommand.cmd]
- }
-
- self.addDirectory = function addDirectory (dir, context, req, callerFile, opts) {
- opts = opts || {}
- // disable recursion to support nested directories of subcommands
- if (typeof opts.recurse !== 'boolean') opts.recurse = false
- // exclude 'json', 'coffee' from require-directory defaults
- if (!Array.isArray(opts.extensions)) opts.extensions = ['js']
- // allow consumer to define their own visitor function
- const parentVisit = typeof opts.visit === 'function' ? opts.visit : o => o
- // call addHandler via visitor function
- opts.visit = function visit (obj, joined, filename) {
- const visited = parentVisit(obj, joined, filename)
- // allow consumer to skip modules with their own visitor
- if (visited) {
- // check for cyclic reference
- // each command file path should only be seen once per execution
- if (~context.files.indexOf(joined)) return visited
- // keep track of visited files in context.files
- context.files.push(joined)
- self.addHandler(visited)
- }
- return visited
- }
- require('require-directory')({ require: req, filename: callerFile }, dir, opts)
- }
-
- // lookup module object from require()d command and derive name
- // if module was not require()d and no name given, throw error
- function moduleName (obj) {
- const mod = require('which-module')(obj)
- if (!mod) throw new Error(`No command name given for module: ${inspect(obj)}`)
- return commandFromFilename(mod.filename)
- }
-
- // derive command name from filename
- function commandFromFilename (filename) {
- return path.basename(filename, path.extname(filename))
- }
-
- function extractDesc (obj) {
- for (let keys = ['describe', 'description', 'desc'], i = 0, l = keys.length, test; i < l; i++) {
- test = obj[keys[i]]
- if (typeof test === 'string' || typeof test === 'boolean') return test
- }
- return false
- }
-
- self.parseCommand = function parseCommand (cmd) {
- const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, ' ')
- const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/)
- const bregex = /\.*[\][<>]/g
- const parsedCommand = {
- cmd: (splitCommand.shift()).replace(bregex, ''),
- demanded: [],
- optional: []
- }
- splitCommand.forEach((cmd, i) => {
- let variadic = false
- cmd = cmd.replace(/\s/g, '')
- if (/\.+[\]>]/.test(cmd) && i === splitCommand.length - 1) variadic = true
- if (/^\[/.test(cmd)) {
- parsedCommand.optional.push({
- cmd: cmd.replace(bregex, '').split('|'),
- variadic
- })
- } else {
- parsedCommand.demanded.push({
- cmd: cmd.replace(bregex, '').split('|'),
- variadic
- })
- }
- })
- return parsedCommand
- }
-
- self.getCommands = () => Object.keys(handlers).concat(Object.keys(aliasMap))
-
- self.getCommandHandlers = () => handlers
-
- self.hasDefaultCommand = () => !!defaultCommand
-
- self.runCommand = function runCommand (command, yargs, parsed, commandIndex) {
- let aliases = parsed.aliases
- const commandHandler = handlers[command] || handlers[aliasMap[command]] || defaultCommand
- const currentContext = yargs.getContext()
- let numFiles = currentContext.files.length
- const parentCommands = currentContext.commands.slice()
-
- // what does yargs look like after the buidler is run?
- let innerArgv = parsed.argv
- let innerYargs = null
- let positionalMap = {}
- if (command) {
- currentContext.commands.push(command)
- currentContext.fullCommands.push(commandHandler.original)
- }
- if (typeof commandHandler.builder === 'function') {
- // a function can be provided, which builds
- // up a yargs chain and possibly returns it.
- innerYargs = commandHandler.builder(yargs.reset(parsed.aliases))
- // if the builder function did not yet parse argv with reset yargs
- // and did not explicitly set a usage() string, then apply the
- // original command string as usage() for consistent behavior with
- // options object below.
- if (yargs.parsed === false) {
- if (shouldUpdateUsage(yargs)) {
- yargs.getUsageInstance().usage(
- usageFromParentCommandsCommandHandler(parentCommands, commandHandler),
- commandHandler.description
- )
- }
- innerArgv = innerYargs ? innerYargs._parseArgs(null, null, true, commandIndex) : yargs._parseArgs(null, null, true, commandIndex)
- } else {
- innerArgv = yargs.parsed.argv
- }
-
- if (innerYargs && yargs.parsed === false) aliases = innerYargs.parsed.aliases
- else aliases = yargs.parsed.aliases
- } else if (typeof commandHandler.builder === 'object') {
- // as a short hand, an object can instead be provided, specifying
- // the options that a command takes.
- innerYargs = yargs.reset(parsed.aliases)
- if (shouldUpdateUsage(innerYargs)) {
- innerYargs.getUsageInstance().usage(
- usageFromParentCommandsCommandHandler(parentCommands, commandHandler),
- commandHandler.description
- )
- }
- Object.keys(commandHandler.builder).forEach((key) => {
- innerYargs.option(key, commandHandler.builder[key])
- })
- innerArgv = innerYargs._parseArgs(null, null, true, commandIndex)
- aliases = innerYargs.parsed.aliases
- }
-
- if (!yargs._hasOutput()) {
- positionalMap = populatePositionals(commandHandler, innerArgv, currentContext, yargs)
- }
-
- const middlewares = globalMiddleware.slice(0).concat(commandHandler.middlewares || [])
- applyMiddleware(innerArgv, yargs, middlewares, true)
-
- // we apply validation post-hoc, so that custom
- // checks get passed populated positional arguments.
- if (!yargs._hasOutput()) yargs._runValidation(innerArgv, aliases, positionalMap, yargs.parsed.error)
-
- if (commandHandler.handler && !yargs._hasOutput()) {
- yargs._setHasOutput()
-
- innerArgv = applyMiddleware(innerArgv, yargs, middlewares, false)
-
- const handlerResult = isPromise(innerArgv)
- ? innerArgv.then(argv => commandHandler.handler(argv))
- : commandHandler.handler(innerArgv)
-
- if (isPromise(handlerResult)) {
- handlerResult.catch(error =>
- yargs.getUsageInstance().fail(null, error)
- )
- }
- }
-
- if (command) {
- currentContext.commands.pop()
- currentContext.fullCommands.pop()
- }
- numFiles = currentContext.files.length - numFiles
- if (numFiles > 0) currentContext.files.splice(numFiles * -1, numFiles)
-
- return innerArgv
- }
-
- function shouldUpdateUsage (yargs) {
- return !yargs.getUsageInstance().getUsageDisabled() &&
- yargs.getUsageInstance().getUsage().length === 0
- }
-
- function usageFromParentCommandsCommandHandler (parentCommands, commandHandler) {
- const c = DEFAULT_MARKER.test(commandHandler.original) ? commandHandler.original.replace(DEFAULT_MARKER, '').trim() : commandHandler.original
- const pc = parentCommands.filter((c) => { return !DEFAULT_MARKER.test(c) })
- pc.push(c)
- return `$0 ${pc.join(' ')}`
- }
-
- self.runDefaultBuilderOn = function (yargs) {
- if (shouldUpdateUsage(yargs)) {
- // build the root-level command string from the default string.
- const commandString = DEFAULT_MARKER.test(defaultCommand.original)
- ? defaultCommand.original : defaultCommand.original.replace(/^[^[\]<>]*/, '$0 ')
- yargs.getUsageInstance().usage(
- commandString,
- defaultCommand.description
- )
- }
- const builder = defaultCommand.builder
- if (typeof builder === 'function') {
- builder(yargs)
- } else {
- Object.keys(builder).forEach((key) => {
- yargs.option(key, builder[key])
- })
- }
- }
-
- // transcribe all positional arguments "command <foo> <bar> [apple]"
- // onto argv.
- function populatePositionals (commandHandler, argv, context, yargs) {
- argv._ = argv._.slice(context.commands.length) // nuke the current commands
- const demanded = commandHandler.demanded.slice(0)
- const optional = commandHandler.optional.slice(0)
- const positionalMap = {}
-
- validation.positionalCount(demanded.length, argv._.length)
-
- while (demanded.length) {
- const demand = demanded.shift()
- populatePositional(demand, argv, positionalMap)
- }
-
- while (optional.length) {
- const maybe = optional.shift()
- populatePositional(maybe, argv, positionalMap)
- }
-
- argv._ = context.commands.concat(argv._)
-
- postProcessPositionals(argv, positionalMap, self.cmdToParseOptions(commandHandler.original))
-
- return positionalMap
- }
-
- function populatePositional (positional, argv, positionalMap, parseOptions) {
- const cmd = positional.cmd[0]
- if (positional.variadic) {
- positionalMap[cmd] = argv._.splice(0).map(String)
- } else {
- if (argv._.length) positionalMap[cmd] = [String(argv._.shift())]
- }
- }
-
- // we run yargs-parser against the positional arguments
- // applying the same parsing logic used for flags.
- function postProcessPositionals (argv, positionalMap, parseOptions) {
- // combine the parsing hints we've inferred from the command
- // string with explicitly configured parsing hints.
- const options = Object.assign({}, yargs.getOptions())
- options.default = Object.assign(parseOptions.default, options.default)
- options.alias = Object.assign(parseOptions.alias, options.alias)
- options.array = options.array.concat(parseOptions.array)
- delete options.config // don't load config when processing positionals.
-
- const unparsed = []
- Object.keys(positionalMap).forEach((key) => {
- positionalMap[key].map((value) => {
- unparsed.push(`--${key}`)
- unparsed.push(value)
- })
- })
-
- // short-circuit parse.
- if (!unparsed.length) return
-
- const parsed = Parser.detailed(unparsed, options)
-
- if (parsed.error) {
- yargs.getUsageInstance().fail(parsed.error.message, parsed.error)
- } else {
- // only copy over positional keys (don't overwrite
- // flag arguments that were already parsed).
- const positionalKeys = Object.keys(positionalMap)
- Object.keys(positionalMap).forEach((key) => {
- [].push.apply(positionalKeys, parsed.aliases[key])
- })
-
- Object.keys(parsed.argv).forEach((key) => {
- if (positionalKeys.indexOf(key) !== -1) {
- // any new aliases need to be placed in positionalMap, which
- // is used for validation.
- if (!positionalMap[key]) positionalMap[key] = parsed.argv[key]
- argv[key] = parsed.argv[key]
- }
- })
- }
- }
-
- self.cmdToParseOptions = function (cmdString) {
- const parseOptions = {
- array: [],
- default: {},
- alias: {},
- demand: {}
- }
-
- const parsed = self.parseCommand(cmdString)
- parsed.demanded.forEach((d) => {
- const cmds = d.cmd.slice(0)
- const cmd = cmds.shift()
- if (d.variadic) {
- parseOptions.array.push(cmd)
- parseOptions.default[cmd] = []
- }
- cmds.forEach((c) => {
- parseOptions.alias[cmd] = c
- })
- parseOptions.demand[cmd] = true
- })
-
- parsed.optional.forEach((o) => {
- const cmds = o.cmd.slice(0)
- const cmd = cmds.shift()
- if (o.variadic) {
- parseOptions.array.push(cmd)
- parseOptions.default[cmd] = []
- }
- cmds.forEach((c) => {
- parseOptions.alias[cmd] = c
- })
- })
-
- return parseOptions
- }
-
- self.reset = () => {
- handlers = {}
- aliasMap = {}
- defaultCommand = undefined
- return self
- }
-
- // used by yargs.parse() to freeze
- // the state of commands such that
- // we can apply .parse() multiple times
- // with the same yargs instance.
- let frozen
- self.freeze = () => {
- frozen = {}
- frozen.handlers = handlers
- frozen.aliasMap = aliasMap
- frozen.defaultCommand = defaultCommand
- }
- self.unfreeze = () => {
- handlers = frozen.handlers
- aliasMap = frozen.aliasMap
- defaultCommand = frozen.defaultCommand
- frozen = undefined
- }
-
- return self
-}
diff --git a/node_modules/yargs/lib/completion-templates.js b/node_modules/yargs/lib/completion-templates.js
deleted file mode 100644
index 43714fb..0000000
--- a/node_modules/yargs/lib/completion-templates.js
+++ /dev/null
@@ -1,49 +0,0 @@
-exports.completionShTemplate =
-`###-begin-{{app_name}}-completions-###
-#
-# yargs command completion script
-#
-# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
-# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
-#
-_yargs_completions()
-{
- local cur_word args type_list
-
- cur_word="\${COMP_WORDS[COMP_CWORD]}"
- args=("\${COMP_WORDS[@]}")
-
- # ask yargs to generate completions.
- type_list=$({{app_path}} --get-yargs-completions "\${args[@]}")
-
- COMPREPLY=( $(compgen -W "\${type_list}" -- \${cur_word}) )
-
- # if no match was found, fall back to filename completion
- if [ \${#COMPREPLY[@]} -eq 0 ]; then
- COMPREPLY=()
- fi
-
- return 0
-}
-complete -o default -F _yargs_completions {{app_name}}
-###-end-{{app_name}}-completions-###
-`
-
-exports.completionZshTemplate = `###-begin-{{app_name}}-completions-###
-#
-# yargs command completion script
-#
-# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc
-# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.
-#
-_{{app_name}}_yargs_completions()
-{
- local reply
- local si=$IFS
- IFS=$'\n' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "\${words[@]}"))
- IFS=$si
- _describe 'values' reply
-}
-compdef _{{app_name}}_yargs_completions {{app_name}}
-###-end-{{app_name}}-completions-###
-`
diff --git a/node_modules/yargs/lib/completion.js b/node_modules/yargs/lib/completion.js
deleted file mode 100644
index e5cdd58..0000000
--- a/node_modules/yargs/lib/completion.js
+++ /dev/null
@@ -1,115 +0,0 @@
-'use strict'
-const path = require('path')
-
-// add bash completions to your
-// yargs-powered applications.
-module.exports = function completion (yargs, usage, command) {
- const self = {
- completionKey: 'get-yargs-completions'
- }
-
- const zshShell = process.env.SHELL && process.env.SHELL.indexOf('zsh') !== -1
- // get a list of completion commands.
- // 'args' is the array of strings from the line to be completed
- self.getCompletion = function getCompletion (args, done) {
- const completions = []
- const current = args.length ? args[args.length - 1] : ''
- const argv = yargs.parse(args, true)
- const aliases = yargs.parsed.aliases
- const parentCommands = yargs.getContext().commands
-
- // a custom completion function can be provided
- // to completion().
- if (completionFunction) {
- if (completionFunction.length < 3) {
- const result = completionFunction(current, argv)
-
- // promise based completion function.
- if (typeof result.then === 'function') {
- return result.then((list) => {
- process.nextTick(() => { done(list) })
- }).catch((err) => {
- process.nextTick(() => { throw err })
- })
- }
-
- // synchronous completion function.
- return done(result)
- } else {
- // asynchronous completion function
- return completionFunction(current, argv, (completions) => {
- done(completions)
- })
- }
- }
-
- const handlers = command.getCommandHandlers()
- for (let i = 0, ii = args.length; i < ii; ++i) {
- if (handlers[args[i]] && handlers[args[i]].builder) {
- const builder = handlers[args[i]].builder
- if (typeof builder === 'function') {
- const y = yargs.reset()
- builder(y)
- return y.argv
- }
- }
- }
-
- if (!current.match(/^-/) && parentCommands[parentCommands.length - 1] !== current) {
- usage.getCommands().forEach((usageCommand) => {
- const commandName = command.parseCommand(usageCommand[0]).cmd
- if (args.indexOf(commandName) === -1) {
- if (!zshShell) {
- completions.push(commandName)
- } else {
- const desc = usageCommand[1] || ''
- completions.push(commandName.replace(/:/g, '\\:') + ':' + desc)
- }
- }
- })
- }
-
- if (current.match(/^-/) || (current === '' && completions.length === 0)) {
- const descs = usage.getDescriptions()
- Object.keys(yargs.getOptions().key).forEach((key) => {
- // If the key and its aliases aren't in 'args', add the key to 'completions'
- const keyAndAliases = [key].concat(aliases[key] || [])
- const notInArgs = keyAndAliases.every(val => args.indexOf(`--${val}`) === -1)
- if (notInArgs) {
- if (!zshShell) {
- completions.push(`--${key}`)
- } else {
- const desc = descs[key] || ''
- completions.push(`--${key.replace(/:/g, '\\:')}:${desc.replace('__yargsString__:', '')}`)
- }
- }
- })
- }
-
- done(completions)
- }
-
- // generate the completion script to add to your .bashrc.
- self.generateCompletionScript = function generateCompletionScript ($0, cmd) {
- const templates = require('./completion-templates')
- let script = zshShell ? templates.completionZshTemplate : templates.completionShTemplate
- const name = path.basename($0)
-
- // add ./to applications not yet installed as bin.
- if ($0.match(/\.js$/)) $0 = `./${$0}`
-
- script = script.replace(/{{app_name}}/g, name)
- script = script.replace(/{{completion_command}}/g, cmd)
- return script.replace(/{{app_path}}/g, $0)
- }
-
- // register a function to perform your own custom
- // completions., this function can be either
- // synchrnous or asynchronous.
- let completionFunction = null
- self.registerFunction = (fn) => {
- completionFunction = fn
- }
-
- return self
-}
diff --git a/node_modules/yargs/lib/decamelize.js b/node_modules/yargs/lib/decamelize.js
deleted file mode 100644
index c3a4151..0000000
--- a/node_modules/yargs/lib/decamelize.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-'use strict'
-
-module.exports = (text, separator) => {
- separator = typeof separator === 'undefined' ? '_' : separator
-
- return text
- .replace(/([a-z\d])([A-Z])/g, `$1${separator}$2`)
- .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, `$1${separator}$2`)
- .toLowerCase()
-}
diff --git a/node_modules/yargs/lib/is-promise.js b/node_modules/yargs/lib/is-promise.js
deleted file mode 100644
index 0516def..0000000
--- a/node_modules/yargs/lib/is-promise.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = function isPromise (maybePromise) {
- return maybePromise instanceof Promise
-}
diff --git a/node_modules/yargs/lib/levenshtein.js b/node_modules/yargs/lib/levenshtein.js
deleted file mode 100644
index c66c1ba..0000000
--- a/node_modules/yargs/lib/levenshtein.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
-Copyright (c) 2011 Andrei Mackenzie
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-*/
-
-// levenshtein distance algorithm, pulled from Andrei Mackenzie's MIT licensed.
-// gist, which can be found here: https://gist.github.com/andrei-m/982927
-'use strict'
-// Compute the edit distance between the two given strings
-module.exports = function levenshtein (a, b) {
- if (a.length === 0) return b.length
- if (b.length === 0) return a.length
-
- const matrix = []
-
- // increment along the first column of each row
- let i
- for (i = 0; i <= b.length; i++) {
- matrix[i] = [i]
- }
-
- // increment each column in the first row
- let j
- for (j = 0; j <= a.length; j++) {
- matrix[0][j] = j
- }
-
- // Fill in the rest of the matrix
- for (i = 1; i <= b.length; i++) {
- for (j = 1; j <= a.length; j++) {
- if (b.charAt(i - 1) === a.charAt(j - 1)) {
- matrix[i][j] = matrix[i - 1][j - 1]
- } else {
- matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // substitution
- Math.min(matrix[i][j - 1] + 1, // insertion
- matrix[i - 1][j] + 1)) // deletion
- }
- }
- }
-
- return matrix[b.length][a.length]
-}
diff --git a/node_modules/yargs/lib/middleware.js b/node_modules/yargs/lib/middleware.js
deleted file mode 100644
index 9f9c196..0000000
--- a/node_modules/yargs/lib/middleware.js
+++ /dev/null
@@ -1,65 +0,0 @@
-'use strict'
-
-// hoisted due to circular dependency on command.
-module.exports = {
- applyMiddleware,
- commandMiddlewareFactory,
- globalMiddlewareFactory
-}
-const isPromise = require('./is-promise')
-const argsert = require('./argsert')
-
-function globalMiddlewareFactory (globalMiddleware, context) {
- return function (callback, applyBeforeValidation = false) {
- argsert('<array|function> [boolean]', [callback, applyBeforeValidation], arguments.length)
- if (Array.isArray(callback)) {
- for (let i = 0; i < callback.length; i++) {
- if (typeof callback[i] !== 'function') {
- throw Error('middleware must be a function')
- }
- callback[i].applyBeforeValidation = applyBeforeValidation
- }
- Array.prototype.push.apply(globalMiddleware, callback)
- } else if (typeof callback === 'function') {
- callback.applyBeforeValidation = applyBeforeValidation
- globalMiddleware.push(callback)
- }
- return context
- }
-}
-
-function commandMiddlewareFactory (commandMiddleware) {
- if (!commandMiddleware) return []
- return commandMiddleware.map(middleware => {
- middleware.applyBeforeValidation = false
- return middleware
- })
-}
-
-function applyMiddleware (argv, yargs, middlewares, beforeValidation) {
- const beforeValidationError = new Error('middleware cannot return a promise when applyBeforeValidation is true')
- return middlewares
- .reduce((accumulation, middleware) => {
- if (middleware.applyBeforeValidation !== beforeValidation &&
- !isPromise(accumulation)) {
- return accumulation
- }
-
- if (isPromise(accumulation)) {
- return accumulation
- .then(initialObj =>
- Promise.all([initialObj, middleware(initialObj, yargs)])
- )
- .then(([initialObj, middlewareObj]) =>
- Object.assign(initialObj, middlewareObj)
- )
- } else {
- const result = middleware(argv, yargs)
- if (beforeValidation && isPromise(result)) throw beforeValidationError
-
- return isPromise(result)
- ? result.then(middlewareObj => Object.assign(accumulation, middlewareObj))
- : Object.assign(accumulation, result)
- }
- }, argv)
-}
diff --git a/node_modules/yargs/lib/obj-filter.js b/node_modules/yargs/lib/obj-filter.js
deleted file mode 100644
index c344ac5..0000000
--- a/node_modules/yargs/lib/obj-filter.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict'
-module.exports = function objFilter (original, filter) {
- const obj = {}
- filter = filter || ((k, v) => true)
- Object.keys(original || {}).forEach((key) => {
- if (filter(key, original[key])) {
- obj[key] = original[key]
- }
- })
- return obj
-}
diff --git a/node_modules/yargs/lib/usage.js b/node_modules/yargs/lib/usage.js
deleted file mode 100644
index 8c3b068..0000000
--- a/node_modules/yargs/lib/usage.js
+++ /dev/null
@@ -1,540 +0,0 @@
-'use strict'
-// this file handles outputting usage instructions,
-// failures, etc. keeps logging in one place.
-const decamelize = require('./decamelize')
-const stringWidth = require('string-width')
-const objFilter = require('./obj-filter')
-const path = require('path')
-const setBlocking = require('set-blocking')
-const YError = require('./yerror')
-
-module.exports = function usage (yargs, y18n) {
- const __ = y18n.__
- const self = {}
-
- // methods for ouputting/building failure message.
- const fails = []
- self.failFn = function failFn (f) {
- fails.push(f)
- }
-
- let failMessage = null
- let showHelpOnFail = true
- self.showHelpOnFail = function showHelpOnFailFn (enabled, message) {
- if (typeof enabled === 'string') {
- message = enabled
- enabled = true
- } else if (typeof enabled === 'undefined') {
- enabled = true
- }
- failMessage = message
- showHelpOnFail = enabled
- return self
- }
-
- let failureOutput = false
- self.fail = function fail (msg, err) {
- const logger = yargs._getLoggerInstance()
-
- if (fails.length) {
- for (let i = fails.length - 1; i >= 0; --i) {
- fails[i](msg, err, self)
- }
- } else {
- if (yargs.getExitProcess()) setBlocking(true)
-
- // don't output failure message more than once
- if (!failureOutput) {
- failureOutput = true
- if (showHelpOnFail) {
- yargs.showHelp('error')
- logger.error()
- }
- if (msg || err) logger.error(msg || err)
- if (failMessage) {
- if (msg || err) logger.error('')
- logger.error(failMessage)
- }
- }
-
- err = err || new YError(msg)
- if (yargs.getExitProcess()) {
- return yargs.exit(1)
- } else if (yargs._hasParseCallback()) {
- return yargs.exit(1, err)
- } else {
- throw err
- }
- }
- }
-
- // methods for ouputting/building help (usage) message.
- let usages = []
- let usageDisabled = false
- self.usage = (msg, description) => {
- if (msg === null) {
- usageDisabled = true
- usages = []
- return
- }
- usageDisabled = false
- usages.push([msg, description || ''])
- return self
- }
- self.getUsage = () => {
- return usages
- }
- self.getUsageDisabled = () => {
- return usageDisabled
- }
-
- self.getPositionalGroupName = () => {
- return __('Positionals:')
- }
-
- let examples = []
- self.example = (cmd, description) => {
- examples.push([cmd, description || ''])
- }
-
- let commands = []
- self.command = function command (cmd, description, isDefault, aliases) {
- // the last default wins, so cancel out any previously set default
- if (isDefault) {
- commands = commands.map((cmdArray) => {
- cmdArray[2] = false
- return cmdArray
- })
- }
- commands.push([cmd, description || '', isDefault, aliases])
- }
- self.getCommands = () => commands
-
- let descriptions = {}
- self.describe = function describe (key, desc) {
- if (typeof key === 'object') {
- Object.keys(key).forEach((k) => {
- self.describe(k, key[k])
- })
- } else {
- descriptions[key] = desc
- }
- }
- self.getDescriptions = () => descriptions
-
- let epilog
- self.epilog = (msg) => {
- epilog = msg
- }
-
- let wrapSet = false
- let wrap
- self.wrap = (cols) => {
- wrapSet = true
- wrap = cols
- }
-
- function getWrap () {
- if (!wrapSet) {
- wrap = windowWidth()
- wrapSet = true
- }
-
- return wrap
- }
-
- const deferY18nLookupPrefix = '__yargsString__:'
- self.deferY18nLookup = str => deferY18nLookupPrefix + str
-
- const defaultGroup = 'Options:'
- self.help = function help () {
- normalizeAliases()
-
- // handle old demanded API
- const base$0 = path.basename(yargs.$0)
- const demandedOptions = yargs.getDemandedOptions()
- const demandedCommands = yargs.getDemandedCommands()
- const groups = yargs.getGroups()
- const options = yargs.getOptions()
-
- let keys = []
- keys = keys.concat(Object.keys(descriptions))
- keys = keys.concat(Object.keys(demandedOptions))
- keys = keys.concat(Object.keys(demandedCommands))
- keys = keys.concat(Object.keys(options.default))
- keys = keys.filter(filterHiddenOptions)
- keys = Object.keys(keys.reduce((acc, key) => {
- if (key !== '_') acc[key] = true
- return acc
- }, {}))
-
- const theWrap = getWrap()
- const ui = require('cliui')({
- width: theWrap,
- wrap: !!theWrap
- })
-
- // the usage string.
- if (!usageDisabled) {
- if (usages.length) {
- // user-defined usage.
- usages.forEach((usage) => {
- ui.div(`${usage[0].replace(/\$0/g, base$0)}`)
- if (usage[1]) {
- ui.div({ text: `${usage[1]}`, padding: [1, 0, 0, 0] })
- }
- })
- ui.div()
- } else if (commands.length) {
- let u = null
- // demonstrate how commands are used.
- if (demandedCommands._) {
- u = `${base$0} <${__('command')}>\n`
- } else {
- u = `${base$0} [${__('command')}]\n`
- }
- ui.div(`${u}`)
- }
- }
-
- // your application's commands, i.e., non-option
- // arguments populated in '_'.
- if (commands.length) {
- ui.div(__('Commands:'))
-
- const context = yargs.getContext()
- const parentCommands = context.commands.length ? `${context.commands.join(' ')} ` : ''
-
- if (yargs.getParserConfiguration()['sort-commands'] === true) {
- commands = commands.sort((a, b) => a[0].localeCompare(b[0]))
- }
-
- commands.forEach((command) => {
- const commandString = `${base$0} ${parentCommands}${command[0].replace(/^\$0 ?/, '')}` // drop $0 from default commands.
- ui.span(
- {
- text: commandString,
- padding: [0, 2, 0, 2],
- width: maxWidth(commands, theWrap, `${base$0}${parentCommands}`) + 4
- },
- { text: command[1] }
- )
- const hints = []
- if (command[2]) hints.push(`[${__('default:').slice(0, -1)}]`) // TODO hacking around i18n here
- if (command[3] && command[3].length) {
- hints.push(`[${__('aliases:')} ${command[3].join(', ')}]`)
- }
- if (hints.length) {
- ui.div({ text: hints.join(' '), padding: [0, 0, 0, 2], align: 'right' })
- } else {
- ui.div()
- }
- })
-
- ui.div()
- }
-
- // perform some cleanup on the keys array, making it
- // only include top-level keys not their aliases.
- const aliasKeys = (Object.keys(options.alias) || [])
- .concat(Object.keys(yargs.parsed.newAliases) || [])
-
- keys = keys.filter(key => !yargs.parsed.newAliases[key] && aliasKeys.every(alias => (options.alias[alias] || []).indexOf(key) === -1))
-
- // populate 'Options:' group with any keys that have not
- // explicitly had a group set.
- if (!groups[defaultGroup]) groups[defaultGroup] = []
- addUngroupedKeys(keys, options.alias, groups)
-
- // display 'Options:' table along with any custom tables:
- Object.keys(groups).forEach((groupName) => {
- if (!groups[groupName].length) return
-
- // if we've grouped the key 'f', but 'f' aliases 'foobar',
- // normalizedKeys should contain only 'foobar'.
- const normalizedKeys = groups[groupName].filter(filterHiddenOptions).map((key) => {
- if (~aliasKeys.indexOf(key)) return key
- for (let i = 0, aliasKey; (aliasKey = aliasKeys[i]) !== undefined; i++) {
- if (~(options.alias[aliasKey] || []).indexOf(key)) return aliasKey
- }
- return key
- })
-
- if (normalizedKeys.length < 1) return
-
- ui.div(__(groupName))
-
- // actually generate the switches string --foo, -f, --bar.
- const switches = normalizedKeys.reduce((acc, key) => {
- acc[key] = [ key ].concat(options.alias[key] || [])
- .map(sw => {
- // for the special positional group don't
- // add '--' or '-' prefix.
- if (groupName === self.getPositionalGroupName()) return sw
- else return (sw.length > 1 ? '--' : '-') + sw
- })
- .join(', ')
-
- return acc
- }, {})
-
- normalizedKeys.forEach((key) => {
- const kswitch = switches[key]
- let desc = descriptions[key] || ''
- let type = null
-
- if (~desc.lastIndexOf(deferY18nLookupPrefix)) desc = __(desc.substring(deferY18nLookupPrefix.length))
-
- if (~options.boolean.indexOf(key)) type = `[${__('boolean')}]`
- if (~options.count.indexOf(key)) type = `[${__('count')}]`
- if (~options.string.indexOf(key)) type = `[${__('string')}]`
- if (~options.normalize.indexOf(key)) type = `[${__('string')}]`
- if (~options.array.indexOf(key)) type = `[${__('array')}]`
- if (~options.number.indexOf(key)) type = `[${__('number')}]`
-
- const extra = [
- type,
- (key in demandedOptions) ? `[${__('required')}]` : null,
- options.choices && options.choices[key] ? `[${__('choices:')} ${
- self.stringifiedValues(options.choices[key])}]` : null,
- defaultString(options.default[key], options.defaultDescription[key])
- ].filter(Boolean).join(' ')
-
- ui.span(
- { text: kswitch, padding: [0, 2, 0, 2], width: maxWidth(switches, theWrap) + 4 },
- desc
- )
-
- if (extra) ui.div({ text: extra, padding: [0, 0, 0, 2], align: 'right' })
- else ui.div()
- })
-
- ui.div()
- })
-
- // describe some common use-cases for your application.
- if (examples.length) {
- ui.div(__('Examples:'))
-
- examples.forEach((example) => {
- example[0] = example[0].replace(/\$0/g, base$0)
- })
-
- examples.forEach((example) => {
- if (example[1] === '') {
- ui.div(
- {
- text: example[0],
- padding: [0, 2, 0, 2]
- }
- )
- } else {
- ui.div(
- {
- text: example[0],
- padding: [0, 2, 0, 2],
- width: maxWidth(examples, theWrap) + 4
- }, {
- text: example[1]
- }
- )
- }
- })
-
- ui.div()
- }
-
- // the usage string.
- if (epilog) {
- const e = epilog.replace(/\$0/g, base$0)
- ui.div(`${e}\n`)
- }
-
- // Remove the trailing white spaces
- return ui.toString().replace(/\s*$/, '')
- }
-
- // return the maximum width of a string
- // in the left-hand column of a table.
- function maxWidth (table, theWrap, modifier) {
- let width = 0
-
- // table might be of the form [leftColumn],
- // or {key: leftColumn}
- if (!Array.isArray(table)) {
- table = Object.keys(table).map(key => [table[key]])
- }
-
- table.forEach((v) => {
- width = Math.max(
- stringWidth(modifier ? `${modifier} ${v[0]}` : v[0]),
- width
- )
- })
-
- // if we've enabled 'wrap' we should limit
- // the max-width of the left-column.
- if (theWrap) width = Math.min(width, parseInt(theWrap * 0.5, 10))
-
- return width
- }
-
- // make sure any options set for aliases,
- // are copied to the keys being aliased.
- function normalizeAliases () {
- // handle old demanded API
- const demandedOptions = yargs.getDemandedOptions()
- const options = yargs.getOptions()
-
- ;(Object.keys(options.alias) || []).forEach((key) => {
- options.alias[key].forEach((alias) => {
- // copy descriptions.
- if (descriptions[alias]) self.describe(key, descriptions[alias])
- // copy demanded.
- if (alias in demandedOptions) yargs.demandOption(key, demandedOptions[alias])
- // type messages.
- if (~options.boolean.indexOf(alias)) yargs.boolean(key)
- if (~options.count.indexOf(alias)) yargs.count(key)
- if (~options.string.indexOf(alias)) yargs.string(key)
- if (~options.normalize.indexOf(alias)) yargs.normalize(key)
- if (~options.array.indexOf(alias)) yargs.array(key)
- if (~options.number.indexOf(alias)) yargs.number(key)
- })
- })
- }
-
- // given a set of keys, place any keys that are
- // ungrouped under the 'Options:' grouping.
- function addUngroupedKeys (keys, aliases, groups) {
- let groupedKeys = []
- let toCheck = null
- Object.keys(groups).forEach((group) => {
- groupedKeys = groupedKeys.concat(groups[group])
- })
-
- keys.forEach((key) => {
- toCheck = [key].concat(aliases[key])
- if (!toCheck.some(k => groupedKeys.indexOf(k) !== -1)) {
- groups[defaultGroup].push(key)
- }
- })
- return groupedKeys
- }
-
- function filterHiddenOptions (key) {
- return yargs.getOptions().hiddenOptions.indexOf(key) < 0 || yargs.parsed.argv[yargs.getOptions().showHiddenOpt]
- }
-
- self.showHelp = (level) => {
- const logger = yargs._getLoggerInstance()
- if (!level) level = 'error'
- const emit = typeof level === 'function' ? level : logger[level]
- emit(self.help())
- }
-
- self.functionDescription = (fn) => {
- const description = fn.name ? decamelize(fn.name, '-') : __('generated-value')
- return ['(', description, ')'].join('')
- }
-
- self.stringifiedValues = function stringifiedValues (values, separator) {
- let string = ''
- const sep = separator || ', '
- const array = [].concat(values)
-
- if (!values || !array.length) return string
-
- array.forEach((value) => {
- if (string.length) string += sep
- string += JSON.stringify(value)
- })
-
- return string
- }
-
- // format the default-value-string displayed in
- // the right-hand column.
- function defaultString (value, defaultDescription) {
- let string = `[${__('default:')} `
-
- if (value === undefined && !defaultDescription) return null
-
- if (defaultDescription) {
- string += defaultDescription
- } else {
- switch (typeof value) {
- case 'string':
- string += `"${value}"`
- break
- case 'object':
- string += JSON.stringify(value)
- break
- default:
- string += value
- }
- }
-
- return `${string}]`
- }
-
- // guess the width of the console window, max-width 80.
- function windowWidth () {
- const maxWidth = 80
- if (typeof process === 'object' && process.stdout && process.stdout.columns) {
- return Math.min(maxWidth, process.stdout.columns)
- } else {
- return maxWidth
- }
- }
-
- // logic for displaying application version.
- let version = null
- self.version = (ver) => {
- version = ver
- }
-
- self.showVersion = () => {
- const logger = yargs._getLoggerInstance()
- logger.log(version)
- }
-
- self.reset = function reset (localLookup) {
- // do not reset wrap here
- // do not reset fails here
- failMessage = null
- failureOutput = false
- usages = []
- usageDisabled = false
- epilog = undefined
- examples = []
- commands = []
- descriptions = objFilter(descriptions, (k, v) => !localLookup[k])
- return self
- }
-
- let frozen
- self.freeze = function freeze () {
- frozen = {}
- frozen.failMessage = failMessage
- frozen.failureOutput = failureOutput
- frozen.usages = usages
- frozen.usageDisabled = usageDisabled
- frozen.epilog = epilog
- frozen.examples = examples
- frozen.commands = commands
- frozen.descriptions = descriptions
- }
- self.unfreeze = function unfreeze () {
- failMessage = frozen.failMessage
- failureOutput = frozen.failureOutput
- usages = frozen.usages
- usageDisabled = frozen.usageDisabled
- epilog = frozen.epilog
- examples = frozen.examples
- commands = frozen.commands
- descriptions = frozen.descriptions
- frozen = undefined
- }
-
- return self
-}
diff --git a/node_modules/yargs/lib/validation.js b/node_modules/yargs/lib/validation.js
deleted file mode 100644
index e9bbb12..0000000
--- a/node_modules/yargs/lib/validation.js
+++ /dev/null
@@ -1,341 +0,0 @@
-'use strict'
-const argsert = require('./argsert')
-const objFilter = require('./obj-filter')
-const specialKeys = ['$0', '--', '_']
-
-// validation-type-stuff, missing params,
-// bad implications, custom checks.
-module.exports = function validation (yargs, usage, y18n) {
- const __ = y18n.__
- const __n = y18n.__n
- const self = {}
-
- // validate appropriate # of non-option
- // arguments were provided, i.e., '_'.
- self.nonOptionCount = function nonOptionCount (argv) {
- const demandedCommands = yargs.getDemandedCommands()
- // don't count currently executing commands
- const _s = argv._.length - yargs.getContext().commands.length
-
- if (demandedCommands._ && (_s < demandedCommands._.min || _s > demandedCommands._.max)) {
- if (_s < demandedCommands._.min) {
- if (demandedCommands._.minMsg !== undefined) {
- usage.fail(
- // replace $0 with observed, $1 with expected.
- demandedCommands._.minMsg ? demandedCommands._.minMsg.replace(/\$0/g, _s).replace(/\$1/, demandedCommands._.min) : null
- )
- } else {
- usage.fail(
- __('Not enough non-option arguments: got %s, need at least %s', _s, demandedCommands._.min)
- )
- }
- } else if (_s > demandedCommands._.max) {
- if (demandedCommands._.maxMsg !== undefined) {
- usage.fail(
- // replace $0 with observed, $1 with expected.
- demandedCommands._.maxMsg ? demandedCommands._.maxMsg.replace(/\$0/g, _s).replace(/\$1/, demandedCommands._.max) : null
- )
- } else {
- usage.fail(
- __('Too many non-option arguments: got %s, maximum of %s', _s, demandedCommands._.max)
- )
- }
- }
- }
- }
-
- // validate the appropriate # of <required>
- // positional arguments were provided:
- self.positionalCount = function positionalCount (required, observed) {
- if (observed < required) {
- usage.fail(
- __('Not enough non-option arguments: got %s, need at least %s', observed, required)
- )
- }
- }
-
- // make sure all the required arguments are present.
- self.requiredArguments = function requiredArguments (argv) {
- const demandedOptions = yargs.getDemandedOptions()
- let missing = null
-
- Object.keys(demandedOptions).forEach((key) => {
- if (!argv.hasOwnProperty(key) || typeof argv[key] === 'undefined') {
- missing = missing || {}
- missing[key] = demandedOptions[key]
- }
- })
-
- if (missing) {
- const customMsgs = []
- Object.keys(missing).forEach((key) => {
- const msg = missing[key]
- if (msg && customMsgs.indexOf(msg) < 0) {
- customMsgs.push(msg)
- }
- })
-
- const customMsg = customMsgs.length ? `\n${customMsgs.join('\n')}` : ''
-
- usage.fail(__n(
- 'Missing required argument: %s',
- 'Missing required arguments: %s',
- Object.keys(missing).length,
- Object.keys(missing).join(', ') + customMsg
- ))
- }
- }
-
- // check for unknown arguments (strict-mode).
- self.unknownArguments = function unknownArguments (argv, aliases, positionalMap) {
- const commandKeys = yargs.getCommandInstance().getCommands()
- const unknown = []
- const currentContext = yargs.getContext()
-
- Object.keys(argv).forEach((key) => {
- if (specialKeys.indexOf(key) === -1 &&
- !positionalMap.hasOwnProperty(key) &&
- !yargs._getParseContext().hasOwnProperty(key) &&
- !aliases.hasOwnProperty(key)
- ) {
- unknown.push(key)
- }
- })
-
- if (commandKeys.length > 0) {
- argv._.slice(currentContext.commands.length).forEach((key) => {
- if (commandKeys.indexOf(key) === -1) {
- unknown.push(key)
- }
- })
- }
-
- if (unknown.length > 0) {
- usage.fail(__n(
- 'Unknown argument: %s',
- 'Unknown arguments: %s',
- unknown.length,
- unknown.join(', ')
- ))
- }
- }
-
- // validate arguments limited to enumerated choices
- self.limitedChoices = function limitedChoices (argv) {
- const options = yargs.getOptions()
- const invalid = {}
-
- if (!Object.keys(options.choices).length) return
-
- Object.keys(argv).forEach((key) => {
- if (specialKeys.indexOf(key) === -1 &&
- options.choices.hasOwnProperty(key)) {
- [].concat(argv[key]).forEach((value) => {
- // TODO case-insensitive configurability
- if (options.choices[key].indexOf(value) === -1 &&
- value !== undefined) {
- invalid[key] = (invalid[key] || []).concat(value)
- }
- })
- }
- })
-
- const invalidKeys = Object.keys(invalid)
-
- if (!invalidKeys.length) return
-
- let msg = __('Invalid values:')
- invalidKeys.forEach((key) => {
- msg += `\n ${__(
- 'Argument: %s, Given: %s, Choices: %s',
- key,
- usage.stringifiedValues(invalid[key]),
- usage.stringifiedValues(options.choices[key])
- )}`
- })
- usage.fail(msg)
- }
-
- // custom checks, added using the `check` option on yargs.
- let checks = []
- self.check = function check (f, global) {
- checks.push({
- func: f,
- global
- })
- }
-
- self.customChecks = function customChecks (argv, aliases) {
- for (let i = 0, f; (f = checks[i]) !== undefined; i++) {
- const func = f.func
- let result = null
- try {
- result = func(argv, aliases)
- } catch (err) {
- usage.fail(err.message ? err.message : err, err)
- continue
- }
-
- if (!result) {
- usage.fail(__('Argument check failed: %s', func.toString()))
- } else if (typeof result === 'string' || result instanceof Error) {
- usage.fail(result.toString(), result)
- }
- }
- }
-
- // check implications, argument foo implies => argument bar.
- let implied = {}
- self.implies = function implies (key, value) {
- argsert('<string|object> [array|number|string]', [key, value], arguments.length)
-
- if (typeof key === 'object') {
- Object.keys(key).forEach((k) => {
- self.implies(k, key[k])
- })
- } else {
- yargs.global(key)
- if (!implied[key]) {
- implied[key] = []
- }
- if (Array.isArray(value)) {
- value.forEach((i) => self.implies(key, i))
- } else {
- implied[key].push(value)
- }
- }
- }
- self.getImplied = function getImplied () {
- return implied
- }
-
- self.implications = function implications (argv) {
- const implyFail = []
-
- Object.keys(implied).forEach((key) => {
- const origKey = key
- ;(implied[key] || []).forEach((value) => {
- let num
- let key = origKey
- const origValue = value
-
- // convert string '1' to number 1
- num = Number(key)
- key = isNaN(num) ? key : num
-
- if (typeof key === 'number') {
- // check length of argv._
- key = argv._.length >= key
- } else if (key.match(/^--no-.+/)) {
- // check if key doesn't exist
- key = key.match(/^--no-(.+)/)[1]
- key = !argv[key]
- } else {
- // check if key exists
- key = argv[key]
- }
-
- num = Number(value)
- value = isNaN(num) ? value : num
-
- if (typeof value === 'number') {
- value = argv._.length >= value
- } else if (value.match(/^--no-.+/)) {
- value = value.match(/^--no-(.+)/)[1]
- value = !argv[value]
- } else {
- value = argv[value]
- }
- if (key && !value) {
- implyFail.push(` ${origKey} -> ${origValue}`)
- }
- })
- })
-
- if (implyFail.length) {
- let msg = `${__('Implications failed:')}\n`
-
- implyFail.forEach((value) => {
- msg += (value)
- })
-
- usage.fail(msg)
- }
- }
-
- let conflicting = {}
- self.conflicts = function conflicts (key, value) {
- argsert('<string|object> [array|string]', [key, value], arguments.length)
-
- if (typeof key === 'object') {
- Object.keys(key).forEach((k) => {
- self.conflicts(k, key[k])
- })
- } else {
- yargs.global(key)
- if (!conflicting[key]) {
- conflicting[key] = []
- }
- if (Array.isArray(value)) {
- value.forEach((i) => self.conflicts(key, i))
- } else {
- conflicting[key].push(value)
- }
- }
- }
- self.getConflicting = () => conflicting
-
- self.conflicting = function conflictingFn (argv) {
- Object.keys(argv).forEach((key) => {
- if (conflicting[key]) {
- conflicting[key].forEach((value) => {
- // we default keys to 'undefined' that have been configured, we should not
- // apply conflicting check unless they are a value other than 'undefined'.
- if (value && argv[key] !== undefined && argv[value] !== undefined) {
- usage.fail(__('Arguments %s and %s are mutually exclusive', key, value))
- }
- })
- }
- })
- }
-
- self.recommendCommands = function recommendCommands (cmd, potentialCommands) {
- const distance = require('./levenshtein')
- const threshold = 3 // if it takes more than three edits, let's move on.
- potentialCommands = potentialCommands.sort((a, b) => b.length - a.length)
-
- let recommended = null
- let bestDistance = Infinity
- for (let i = 0, candidate; (candidate = potentialCommands[i]) !== undefined; i++) {
- const d = distance(cmd, candidate)
- if (d <= threshold && d < bestDistance) {
- bestDistance = d
- recommended = candidate
- }
- }
- if (recommended) usage.fail(__('Did you mean %s?', recommended))
- }
-
- self.reset = function reset (localLookup) {
- implied = objFilter(implied, (k, v) => !localLookup[k])
- conflicting = objFilter(conflicting, (k, v) => !localLookup[k])
- checks = checks.filter(c => c.global)
- return self
- }
-
- let frozen
- self.freeze = function freeze () {
- frozen = {}
- frozen.implied = implied
- frozen.checks = checks
- frozen.conflicting = conflicting
- }
- self.unfreeze = function unfreeze () {
- implied = frozen.implied
- checks = frozen.checks
- conflicting = frozen.conflicting
- frozen = undefined
- }
-
- return self
-}
diff --git a/node_modules/yargs/lib/yerror.js b/node_modules/yargs/lib/yerror.js
deleted file mode 100644
index 53375a0..0000000
--- a/node_modules/yargs/lib/yerror.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict'
-function YError (msg) {
- this.name = 'YError'
- this.message = msg || 'yargs error'
- Error.captureStackTrace(this, YError)
-}
-
-YError.prototype = Object.create(Error.prototype)
-YError.prototype.constructor = YError
-
-module.exports = YError
diff --git a/node_modules/yargs/locales/be.json b/node_modules/yargs/locales/be.json
deleted file mode 100644
index 141ebe1..0000000
--- a/node_modules/yargs/locales/be.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "Каманды:",
- "Options:": "Опцыі:",
- "Examples:": "Прыклады:",
- "boolean": "булевы тып",
- "count": "падлік",
- "string": "радковы тып",
- "number": "лік",
- "array": "масіў",
- "required": "неабходна",
- "default:": "па змаўчанні:",
- "choices:": "магчымасці:",
- "aliases:": "аліасы:",
- "generated-value": "згенераванае значэнне",
- "Not enough non-option arguments: got %s, need at least %s": "Недастаткова неапцыйных аргументаў: ёсць %s, трэба як мінімум %s",
- "Too many non-option arguments: got %s, maximum of %s": "Занадта шмат неапцыйных аргументаў: ёсць %s, максімум дапушчальна %s",
- "Missing argument value: %s": {
- "one": "Не хапае значэння аргументу: %s",
- "other": "Не хапае значэнняў аргументаў: %s"
- },
- "Missing required argument: %s": {
- "one": "Не хапае неабходнага аргументу: %s",
- "other": "Не хапае неабходных аргументаў: %s"
- },
- "Unknown argument: %s": {
- "one": "Невядомы аргумент: %s",
- "other": "Невядомыя аргументы: %s"
- },
- "Invalid values:": "Несапраўдныя значэння:",
- "Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Дадзенае значэнне: %s, Магчымасці: %s",
- "Argument check failed: %s": "Праверка аргументаў не ўдалася: %s",
- "Implications failed:": "Дадзены аргумент патрабуе наступны дадатковы аргумент:",
- "Not enough arguments following: %s": "Недастаткова наступных аргументаў: %s",
- "Invalid JSON config file: %s": "Несапраўдны файл канфігурацыі JSON: %s",
- "Path to JSON config file": "Шлях да файла канфігурацыі JSON",
- "Show help": "Паказаць дапамогу",
- "Show version number": "Паказаць нумар версіі",
- "Did you mean %s?": "Вы мелі на ўвазе %s?"
-}
diff --git a/node_modules/yargs/locales/de.json b/node_modules/yargs/locales/de.json
deleted file mode 100644
index 05d9837..0000000
--- a/node_modules/yargs/locales/de.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "Kommandos:",
- "Options:": "Optionen:",
- "Examples:": "Beispiele:",
- "boolean": "boolean",
- "count": "Zähler",
- "string": "string",
- "number": "Zahl",
- "array": "array",
- "required": "erforderlich",
- "default:": "Standard:",
- "choices:": "Möglichkeiten:",
- "aliases:": "Aliase:",
- "generated-value": "Generierter-Wert",
- "Not enough non-option arguments: got %s, need at least %s": "Nicht genügend Argumente ohne Optionen: %s vorhanden, mindestens %s benötigt",
- "Too many non-option arguments: got %s, maximum of %s": "Zu viele Argumente ohne Optionen: %s vorhanden, maximal %s erlaubt",
- "Missing argument value: %s": {
- "one": "Fehlender Argumentwert: %s",
- "other": "Fehlende Argumentwerte: %s"
- },
- "Missing required argument: %s": {
- "one": "Fehlendes Argument: %s",
- "other": "Fehlende Argumente: %s"
- },
- "Unknown argument: %s": {
- "one": "Unbekanntes Argument: %s",
- "other": "Unbekannte Argumente: %s"
- },
- "Invalid values:": "Unzulässige Werte:",
- "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gegeben: %s, Möglichkeiten: %s",
- "Argument check failed: %s": "Argumente-Check fehlgeschlagen: %s",
- "Implications failed:": "Fehlende abhängige Argumente:",
- "Not enough arguments following: %s": "Nicht genügend Argumente nach: %s",
- "Invalid JSON config file: %s": "Fehlerhafte JSON-Config Datei: %s",
- "Path to JSON config file": "Pfad zur JSON-Config Datei",
- "Show help": "Hilfe anzeigen",
- "Show version number": "Version anzeigen",
- "Did you mean %s?": "Meintest du %s?"
-}
diff --git a/node_modules/yargs/locales/en.json b/node_modules/yargs/locales/en.json
deleted file mode 100644
index b32a63f..0000000
--- a/node_modules/yargs/locales/en.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "Commands:": "Commands:",
- "Options:": "Options:",
- "Examples:": "Examples:",
- "boolean": "boolean",
- "count": "count",
- "string": "string",
- "number": "number",
- "array": "array",
- "required": "required",
- "default:": "default:",
- "choices:": "choices:",
- "aliases:": "aliases:",
- "generated-value": "generated-value",
- "Not enough non-option arguments: got %s, need at least %s": "Not enough non-option arguments: got %s, need at least %s",
- "Too many non-option arguments: got %s, maximum of %s": "Too many non-option arguments: got %s, maximum of %s",
- "Missing argument value: %s": {
- "one": "Missing argument value: %s",
- "other": "Missing argument values: %s"
- },
- "Missing required argument: %s": {
- "one": "Missing required argument: %s",
- "other": "Missing required arguments: %s"
- },
- "Unknown argument: %s": {
- "one": "Unknown argument: %s",
- "other": "Unknown arguments: %s"
- },
- "Invalid values:": "Invalid values:",
- "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Given: %s, Choices: %s",
- "Argument check failed: %s": "Argument check failed: %s",
- "Implications failed:": "Missing dependent arguments:",
- "Not enough arguments following: %s": "Not enough arguments following: %s",
- "Invalid JSON config file: %s": "Invalid JSON config file: %s",
- "Path to JSON config file": "Path to JSON config file",
- "Show help": "Show help",
- "Show version number": "Show version number",
- "Did you mean %s?": "Did you mean %s?",
- "Arguments %s and %s are mutually exclusive" : "Arguments %s and %s are mutually exclusive",
- "Positionals:": "Positionals:",
- "command": "command"
-}
diff --git a/node_modules/yargs/locales/es.json b/node_modules/yargs/locales/es.json
deleted file mode 100644
index d7c8af9..0000000
--- a/node_modules/yargs/locales/es.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "Comandos:",
- "Options:": "Opciones:",
- "Examples:": "Ejemplos:",
- "boolean": "booleano",
- "count": "cuenta",
- "string": "cadena de caracteres",
- "number": "número",
- "array": "tabla",
- "required": "requerido",
- "default:": "defecto:",
- "choices:": "selección:",
- "aliases:": "alias:",
- "generated-value": "valor-generado",
- "Not enough non-option arguments: got %s, need at least %s": "Hacen falta argumentos no-opcionales: Número recibido %s, necesita por lo menos %s",
- "Too many non-option arguments: got %s, maximum of %s": "Demasiados argumentos no-opcionales: Número recibido %s, máximo es %s",
- "Missing argument value: %s": {
- "one": "Falta argumento: %s",
- "other": "Faltan argumentos: %s"
- },
- "Missing required argument: %s": {
- "one": "Falta argumento requerido: %s",
- "other": "Faltan argumentos requeridos: %s"
- },
- "Unknown argument: %s": {
- "one": "Argumento desconocido: %s",
- "other": "Argumentos desconocidos: %s"
- },
- "Invalid values:": "Valores inválidos:",
- "Argument: %s, Given: %s, Choices: %s": "Argumento: %s, Recibido: %s, Seleccionados: %s",
- "Argument check failed: %s": "Verificación de argumento ha fallado: %s",
- "Implications failed:": "Implicaciones fallidas:",
- "Not enough arguments following: %s": "No hay suficientes argumentos después de: %s",
- "Invalid JSON config file: %s": "Archivo de configuración JSON inválido: %s",
- "Path to JSON config file": "Ruta al archivo de configuración JSON",
- "Show help": "Muestra ayuda",
- "Show version number": "Muestra número de versión",
- "Did you mean %s?": "Quisiste decir %s?"
-}
diff --git a/node_modules/yargs/locales/fr.json b/node_modules/yargs/locales/fr.json
deleted file mode 100644
index cf9c74b..0000000
--- a/node_modules/yargs/locales/fr.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "Commands:": "Commandes:",
- "Options:": "Options:",
- "Examples:": "Exemples:",
- "boolean": "booléen",
- "count": "comptage",
- "string": "chaine de caractère",
- "number": "nombre",
- "array": "tableau",
- "required": "requis",
- "default:": "défaut:",
- "choices:": "choix:",
- "generated-value": "valeur générée",
- "Not enough non-option arguments: got %s, need at least %s": "Pas assez d'arguments non-option: reçu %s, besoin d'au moins %s",
- "Too many non-option arguments: got %s, maximum of %s": "Trop d'arguments non-option: reçu %s, maximum %s",
- "Missing argument value: %s": {
- "one": "Argument manquant: %s",
- "other": "Arguments manquants: %s"
- },
- "Missing required argument: %s": {
- "one": "Argument requis manquant: %s",
- "other": "Arguments requis manquants: %s"
- },
- "Unknown argument: %s": {
- "one": "Argument inconnu: %s",
- "other": "Arguments inconnus: %s"
- },
- "Invalid values:": "Valeurs invalides:",
- "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Donné: %s, Choix: %s",
- "Argument check failed: %s": "Echec de la vérification de l'argument: %s",
- "Implications failed:": "Arguments dépendants manquants:",
- "Not enough arguments following: %s": "Pas assez d'arguments suivant: %s",
- "Invalid JSON config file: %s": "Fichier de configuration JSON invalide: %s",
- "Path to JSON config file": "Chemin du fichier de configuration JSON",
- "Show help": "Affiche de l'aide",
- "Show version number": "Affiche le numéro de version"
-}
diff --git a/node_modules/yargs/locales/hi.json b/node_modules/yargs/locales/hi.json
deleted file mode 100644
index 2cd677a..0000000
--- a/node_modules/yargs/locales/hi.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "Commands:": "आदेश:",
- "Options:": "विकल्प:",
- "Examples:": "उदाहरण:",
- "boolean": "सत्यता",
- "count": "संख्या",
- "string": "वर्णों का तार ",
- "number": "अंक",
- "array": "सरणी",
- "required": "आवश्यक",
- "default:": "डिफॉल्ट:",
- "choices:": "विकल्प:",
- "aliases:": "उपनाम:",
- "generated-value": "उत्पन्न-मूल्य",
- "Not enough non-option arguments: got %s, need at least %s": "पर्याप्त गैर-विकल्प तर्क प्राप्त नहीं: %s प्राप्त, कम से कम %s की आवश्यकता है",
- "Too many non-option arguments: got %s, maximum of %s": "बहुत सारे गैर-विकल्प तर्क: %s प्राप्त, अधिकतम %s मान्य",
- "Missing argument value: %s": {
- "one": "कुछ तर्को के मूल्य गुम हैं: %s",
- "other": "कुछ तर्को के मूल्य गुम हैं: %s"
- },
- "Missing required argument: %s": {
- "one": "आवश्यक तर्क गुम हैं: %s",
- "other": "आवश्यक तर्क गुम हैं: %s"
- },
- "Unknown argument: %s": {
- "one": "अज्ञात तर्क प्राप्त: %s",
- "other": "अज्ञात तर्क प्राप्त: %s"
- },
- "Invalid values:": "अमान्य मूल्य:",
- "Argument: %s, Given: %s, Choices: %s": "तर्क: %s, प्राप्त: %s, विकल्प: %s",
- "Argument check failed: %s": "तर्क जांच विफल: %s",
- "Implications failed:": "दिए गए तर्क के लिए अतिरिक्त तर्क की अपेक्षा है:",
- "Not enough arguments following: %s": "निम्नलिखित के बाद पर्याप्त तर्क नहीं प्राप्त: %s",
- "Invalid JSON config file: %s": "अमान्य JSON config फाइल: %s",
- "Path to JSON config file": "JSON config फाइल का पथ",
- "Show help": "सहायता दिखाएँ",
- "Show version number": "Version संख्या दिखाएँ",
- "Did you mean %s?": "क्या आपका मतलब है %s?",
- "Arguments %s and %s are mutually exclusive" : "तर्क %s और %s परस्पर अनन्य हैं",
- "Positionals:": "स्थानीय:",
- "command": "आदेश"
-}
diff --git a/node_modules/yargs/locales/hu.json b/node_modules/yargs/locales/hu.json
deleted file mode 100644
index 7b7d166..0000000
--- a/node_modules/yargs/locales/hu.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "Parancsok:",
- "Options:": "Opciók:",
- "Examples:": "Példák:",
- "boolean": "boolean",
- "count": "számláló",
- "string": "szöveg",
- "number": "szám",
- "array": "tömb",
- "required": "kötelező",
- "default:": "alapértelmezett:",
- "choices:": "lehetőségek:",
- "aliases:": "aliaszok:",
- "generated-value": "generált-érték",
- "Not enough non-option arguments: got %s, need at least %s": "Nincs elég nem opcionális argumentum: %s van, legalább %s kell",
- "Too many non-option arguments: got %s, maximum of %s": "Túl sok nem opciánlis argumentum van: %s van, maximum %s lehet",
- "Missing argument value: %s": {
- "one": "Hiányzó argumentum érték: %s",
- "other": "Hiányzó argumentum értékek: %s"
- },
- "Missing required argument: %s": {
- "one": "Hiányzó kötelező argumentum: %s",
- "other": "Hiányzó kötelező argumentumok: %s"
- },
- "Unknown argument: %s": {
- "one": "Ismeretlen argumentum: %s",
- "other": "Ismeretlen argumentumok: %s"
- },
- "Invalid values:": "Érvénytelen érték:",
- "Argument: %s, Given: %s, Choices: %s": "Argumentum: %s, Megadott: %s, Lehetőségek: %s",
- "Argument check failed: %s": "Argumentum ellenőrzés sikertelen: %s",
- "Implications failed:": "Implikációk sikertelenek:",
- "Not enough arguments following: %s": "Nem elég argumentum követi: %s",
- "Invalid JSON config file: %s": "Érvénytelen JSON konfigurációs file: %s",
- "Path to JSON config file": "JSON konfigurációs file helye",
- "Show help": "Súgo megjelenítése",
- "Show version number": "Verziószám megjelenítése",
- "Did you mean %s?": "Erre gondoltál %s?"
-}
diff --git a/node_modules/yargs/locales/id.json b/node_modules/yargs/locales/id.json
deleted file mode 100644
index 87e441c..0000000
--- a/node_modules/yargs/locales/id.json
+++ /dev/null
@@ -1,43 +0,0 @@
-
-{
- "Commands:": "Perintah:",
- "Options:": "Pilihan:",
- "Examples:": "Contoh:",
- "boolean": "boolean",
- "count": "jumlah",
- "number": "nomor",
- "string": "string",
- "array": "larik",
- "required": "diperlukan",
- "default:": "bawaan:",
- "aliases:": "istilah lain:",
- "choices:": "pilihan:",
- "generated-value": "nilai-yang-dihasilkan",
- "Not enough non-option arguments: got %s, need at least %s": "Argumen wajib kurang: hanya %s, minimal %s",
- "Too many non-option arguments: got %s, maximum of %s": "Terlalu banyak argumen wajib: ada %s, maksimal %s",
- "Missing argument value: %s": {
- "one": "Kurang argumen: %s",
- "other": "Kurang argumen: %s"
- },
- "Missing required argument: %s": {
- "one": "Kurang argumen wajib: %s",
- "other": "Kurang argumen wajib: %s"
- },
- "Unknown argument: %s": {
- "one": "Argumen tak diketahui: %s",
- "other": "Argumen tak diketahui: %s"
- },
- "Invalid values:": "Nilai-nilai tidak valid:",
- "Argument: %s, Given: %s, Choices: %s": "Argumen: %s, Diberikan: %s, Pilihan: %s",
- "Argument check failed: %s": "Pemeriksaan argument gagal: %s",
- "Implications failed:": "Implikasi gagal:",
- "Not enough arguments following: %s": "Kurang argumen untuk: %s",
- "Invalid JSON config file: %s": "Berkas konfigurasi JSON tidak valid: %s",
- "Path to JSON config file": "Alamat berkas konfigurasi JSON",
- "Show help": "Lihat bantuan",
- "Show version number": "Lihat nomor versi",
- "Did you mean %s?": "Maksud Anda: %s?",
- "Arguments %s and %s are mutually exclusive" : "Argumen %s dan %s saling eksklusif",
- "Positionals:": "Posisional-posisional:",
- "command": "perintah"
-}
diff --git a/node_modules/yargs/locales/it.json b/node_modules/yargs/locales/it.json
deleted file mode 100644
index 9ee900d..0000000
--- a/node_modules/yargs/locales/it.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "Comandi:",
- "Options:": "Opzioni:",
- "Examples:": "Esempi:",
- "boolean": "booleano",
- "count": "contatore",
- "string": "stringa",
- "number": "numero",
- "array": "vettore",
- "required": "richiesto",
- "default:": "predefinito:",
- "choices:": "scelte:",
- "aliases:": "alias:",
- "generated-value": "valore generato",
- "Not enough non-option arguments: got %s, need at least %s": "Numero insufficiente di argomenti non opzione: inseriti %s, richiesti almeno %s",
- "Too many non-option arguments: got %s, maximum of %s": "Troppi argomenti non opzione: inseriti %s, massimo possibile %s",
- "Missing argument value: %s": {
- "one": "Argomento mancante: %s",
- "other": "Argomenti mancanti: %s"
- },
- "Missing required argument: %s": {
- "one": "Argomento richiesto mancante: %s",
- "other": "Argomenti richiesti mancanti: %s"
- },
- "Unknown argument: %s": {
- "one": "Argomento sconosciuto: %s",
- "other": "Argomenti sconosciuti: %s"
- },
- "Invalid values:": "Valori non validi:",
- "Argument: %s, Given: %s, Choices: %s": "Argomento: %s, Richiesto: %s, Scelte: %s",
- "Argument check failed: %s": "Controllo dell'argomento fallito: %s",
- "Implications failed:": "Argomenti dipendenti mancanti:",
- "Not enough arguments following: %s": "Argomenti insufficienti dopo: %s",
- "Invalid JSON config file: %s": "File di configurazione JSON non valido: %s",
- "Path to JSON config file": "Percorso del file di configurazione JSON",
- "Show help": "Mostra la schermata di aiuto",
- "Show version number": "Mostra il numero di versione",
- "Did you mean %s?": "Intendi forse %s?"
-}
diff --git a/node_modules/yargs/locales/ja.json b/node_modules/yargs/locales/ja.json
deleted file mode 100644
index 64ee6d3..0000000
--- a/node_modules/yargs/locales/ja.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "Commands:": "コマンド:",
- "Options:": "オプション:",
- "Examples:": "例:",
- "boolean": "真偽",
- "count": "カウント",
- "string": "文字列",
- "number": "数値",
- "array": "配列",
- "required": "必須",
- "default:": "デフォルト:",
- "choices:": "選択してください:",
- "aliases:": "エイリアス:",
- "generated-value": "生成された値",
- "Not enough non-option arguments: got %s, need at least %s": "オプションではない引数が %s 個では不足しています。少なくとも %s 個の引数が必要です:",
- "Too many non-option arguments: got %s, maximum of %s": "オプションではない引数が %s 個では多すぎます。最大で %s 個までです:",
- "Missing argument value: %s": {
- "one": "引数が見つかりません: %s",
- "other": "引数が見つかりません: %s"
- },
- "Missing required argument: %s": {
- "one": "必須の引数が見つかりません: %s",
- "other": "必須の引数が見つかりません: %s"
- },
- "Unknown argument: %s": {
- "one": "未知の引数です: %s",
- "other": "未知の引数です: %s"
- },
- "Invalid values:": "不正な値です:",
- "Argument: %s, Given: %s, Choices: %s": "引数は %s です。指定できるのは %s つです。選択してください: %s",
- "Argument check failed: %s": "引数のチェックに失敗しました: %s",
- "Implications failed:": "オプションの組み合わせで不正が生じました:",
- "Not enough arguments following: %s": "次の引数が不足しています。: %s",
- "Invalid JSON config file: %s": "JSONの設定ファイルが不正です: %s",
- "Path to JSON config file": "JSONの設定ファイルまでのpath",
- "Show help": "ヘルプを表示",
- "Show version number": "バージョンを表示",
- "Did you mean %s?": "もしかして %s?",
- "Arguments %s and %s are mutually exclusive" : "引数 %s と %s は同時に指定できません",
- "Positionals:": "位置:",
- "command": "コマンド"
-}
diff --git a/node_modules/yargs/locales/ko.json b/node_modules/yargs/locales/ko.json
deleted file mode 100644
index 0eaeab2..0000000
--- a/node_modules/yargs/locales/ko.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "Commands:": "명령:",
- "Options:": "옵션:",
- "Examples:": "예시:",
- "boolean": "여부",
- "count": "개수",
- "string": "문자열",
- "number": "숫자",
- "array": "배열",
- "required": "필수",
- "default:": "기본:",
- "choices:": "선택:",
- "aliases:": "별칭:",
- "generated-value": "생성된 값",
- "Not enough non-option arguments: got %s, need at least %s": "옵션이 아닌 인자가 충분치 않습니다: %s개를 받았지만, 적어도 %s개는 필요합니다",
- "Too many non-option arguments: got %s, maximum of %s": "옵션이 아닌 인자가 너무 많습니다: %s개를 받았지만, %s개 이하여야 합니다",
- "Missing argument value: %s": {
- "one": "인자값을 받지 못했습니다: %s",
- "other": "인자값들을 받지 못했습니다: %s"
- },
- "Missing required argument: %s": {
- "one": "필수 인자를 받지 못했습니다: %s",
- "other": "필수 인자들을 받지 못했습니다: %s"
- },
- "Unknown argument: %s": {
- "one": "알 수 없는 인자입니다: %s",
- "other": "알 수 없는 인자들입니다: %s"
- },
- "Invalid values:": "잘못된 값입니다:",
- "Argument: %s, Given: %s, Choices: %s": "인자: %s, 입력받은 값: %s, 선택지: %s",
- "Argument check failed: %s": "유효하지 않은 인자입니다: %s",
- "Implications failed:": "옵션의 조합이 잘못되었습니다:",
- "Not enough arguments following: %s": "인자가 충분하게 주어지지 않았습니다: %s",
- "Invalid JSON config file: %s": "유효하지 않은 JSON 설정파일입니다: %s",
- "Path to JSON config file": "JSON 설정파일 경로",
- "Show help": "도움말을 보여줍니다",
- "Show version number": "버전 넘버를 보여줍니다",
- "Did you mean %s?": "찾고계신게 %s입니까?",
- "Arguments %s and %s are mutually exclusive" : "%s와 %s 인자는 같이 사용될 수 없습니다",
- "Positionals:": "위치:",
- "command": "명령"
-}
diff --git a/node_modules/yargs/locales/nb.json b/node_modules/yargs/locales/nb.json
deleted file mode 100644
index 55be1fb..0000000
--- a/node_modules/yargs/locales/nb.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "Commands:": "Kommandoer:",
- "Options:": "Alternativer:",
- "Examples:": "Eksempler:",
- "boolean": "boolsk",
- "count": "antall",
- "string": "streng",
- "number": "nummer",
- "array": "matrise",
- "required": "obligatorisk",
- "default:": "standard:",
- "choices:": "valg:",
- "generated-value": "generert-verdi",
- "Not enough non-option arguments: got %s, need at least %s": "Ikke nok ikke-alternativ argumenter: fikk %s, trenger minst %s",
- "Too many non-option arguments: got %s, maximum of %s": "For mange ikke-alternativ argumenter: fikk %s, maksimum %s",
- "Missing argument value: %s": {
- "one": "Mangler argument verdi: %s",
- "other": "Mangler argument verdier: %s"
- },
- "Missing required argument: %s": {
- "one": "Mangler obligatorisk argument: %s",
- "other": "Mangler obligatoriske argumenter: %s"
- },
- "Unknown argument: %s": {
- "one": "Ukjent argument: %s",
- "other": "Ukjente argumenter: %s"
- },
- "Invalid values:": "Ugyldige verdier:",
- "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gitt: %s, Valg: %s",
- "Argument check failed: %s": "Argumentsjekk mislyktes: %s",
- "Implications failed:": "Konsekvensene mislyktes:",
- "Not enough arguments following: %s": "Ikke nok følgende argumenter: %s",
- "Invalid JSON config file: %s": "Ugyldig JSON konfigurasjonsfil: %s",
- "Path to JSON config file": "Bane til JSON konfigurasjonsfil",
- "Show help": "Vis hjelp",
- "Show version number": "Vis versjonsnummer"
-}
diff --git a/node_modules/yargs/locales/nl.json b/node_modules/yargs/locales/nl.json
deleted file mode 100644
index 5d62e0f..0000000
--- a/node_modules/yargs/locales/nl.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "Commands:": "Commando's:",
- "Options:": "Opties:",
- "Examples:": "Voorbeelden:",
- "boolean": "booleaans",
- "count": "aantal",
- "string": "string",
- "number": "getal",
- "array": "lijst",
- "required": "verplicht",
- "default:": "standaard:",
- "choices:": "keuzes:",
- "aliases:": "aliassen:",
- "generated-value": "gegenereerde waarde",
- "Not enough non-option arguments: got %s, need at least %s": "Niet genoeg niet-optie-argumenten: %s gekregen, minstens %s nodig",
- "Too many non-option arguments: got %s, maximum of %s": "Te veel niet-optie-argumenten: %s gekregen, maximum is %s",
- "Missing argument value: %s": {
- "one": "Missende argumentwaarde: %s",
- "other": "Missende argumentwaarden: %s"
- },
- "Missing required argument: %s": {
- "one": "Missend verplicht argument: %s",
- "other": "Missende verplichte argumenten: %s"
- },
- "Unknown argument: %s": {
- "one": "Onbekend argument: %s",
- "other": "Onbekende argumenten: %s"
- },
- "Invalid values:": "Ongeldige waarden:",
- "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gegeven: %s, Keuzes: %s",
- "Argument check failed: %s": "Argumentcontrole mislukt: %s",
- "Implications failed:": "Ontbrekende afhankelijke argumenten:",
- "Not enough arguments following: %s": "Niet genoeg argumenten na: %s",
- "Invalid JSON config file: %s": "Ongeldig JSON-config-bestand: %s",
- "Path to JSON config file": "Pad naar JSON-config-bestand",
- "Show help": "Toon help",
- "Show version number": "Toon versienummer",
- "Did you mean %s?": "Bedoelde u misschien %s?",
- "Arguments %s and %s are mutually exclusive": "Argumenten %s en %s kunnen niet tegelijk gebruikt worden",
- "Positionals:": "Positie-afhankelijke argumenten",
- "command": "commando"
-}
diff --git a/node_modules/yargs/locales/nn.json b/node_modules/yargs/locales/nn.json
deleted file mode 100644
index 5a3c951..0000000
--- a/node_modules/yargs/locales/nn.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "Kommandoar:",
- "Options:": "Alternativ:",
- "Examples:": "Døme:",
- "boolean": "boolsk",
- "count": "mengd",
- "string": "streng",
- "number": "nummer",
- "array": "matrise",
- "required": "obligatorisk",
- "default:": "standard:",
- "choices:": "val:",
- "generated-value": "generert-verdi",
- "Not enough non-option arguments: got %s, need at least %s":
- "Ikkje nok ikkje-alternativ argument: fekk %s, treng minst %s",
- "Too many non-option arguments: got %s, maximum of %s":
- "For mange ikkje-alternativ argument: fekk %s, maksimum %s",
- "Missing argument value: %s": {
- "one": "Manglar argumentverdi: %s",
- "other": "Manglar argumentverdiar: %s"
- },
- "Missing required argument: %s": {
- "one": "Manglar obligatorisk argument: %s",
- "other": "Manglar obligatoriske argument: %s"
- },
- "Unknown argument: %s": {
- "one": "Ukjent argument: %s",
- "other": "Ukjende argument: %s"
- },
- "Invalid values:": "Ugyldige verdiar:",
- "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Gjeve: %s, Val: %s",
- "Argument check failed: %s": "Argumentsjekk mislukkast: %s",
- "Implications failed:": "Konsekvensane mislukkast:",
- "Not enough arguments following: %s": "Ikkje nok fylgjande argument: %s",
- "Invalid JSON config file: %s": "Ugyldig JSON konfigurasjonsfil: %s",
- "Path to JSON config file": "Bane til JSON konfigurasjonsfil",
- "Show help": "Vis hjelp",
- "Show version number": "Vis versjonsnummer"
-}
diff --git a/node_modules/yargs/locales/pirate.json b/node_modules/yargs/locales/pirate.json
deleted file mode 100644
index dcb5cb7..0000000
--- a/node_modules/yargs/locales/pirate.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "Commands:": "Choose yer command:",
- "Options:": "Options for me hearties!",
- "Examples:": "Ex. marks the spot:",
- "required": "requi-yar-ed",
- "Missing required argument: %s": {
- "one": "Ye be havin' to set the followin' argument land lubber: %s",
- "other": "Ye be havin' to set the followin' arguments land lubber: %s"
- },
- "Show help": "Parlay this here code of conduct",
- "Show version number": "'Tis the version ye be askin' fer",
- "Arguments %s and %s are mutually exclusive" : "Yon scurvy dogs %s and %s be as bad as rum and a prudish wench"
-}
diff --git a/node_modules/yargs/locales/pl.json b/node_modules/yargs/locales/pl.json
deleted file mode 100644
index 6926a45..0000000
--- a/node_modules/yargs/locales/pl.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "Commands:": "Polecenia:",
- "Options:": "Opcje:",
- "Examples:": "Przykłady:",
- "boolean": "boolean",
- "count": "ilość",
- "string": "ciąg znaków",
- "number": "liczba",
- "array": "tablica",
- "required": "wymagany",
- "default:": "domyślny:",
- "choices:": "dostępne:",
- "aliases:": "aliasy:",
- "generated-value": "wygenerowana-wartość",
- "Not enough non-option arguments: got %s, need at least %s": "Niewystarczająca ilość argumentów: otrzymano %s, wymagane co najmniej %s",
- "Too many non-option arguments: got %s, maximum of %s": "Zbyt duża ilość argumentów: otrzymano %s, wymagane co najwyżej %s",
- "Missing argument value: %s": {
- "one": "Brak wartości dla argumentu: %s",
- "other": "Brak wartości dla argumentów: %s"
- },
- "Missing required argument: %s": {
- "one": "Brak wymaganego argumentu: %s",
- "other": "Brak wymaganych argumentów: %s"
- },
- "Unknown argument: %s": {
- "one": "Nieznany argument: %s",
- "other": "Nieznane argumenty: %s"
- },
- "Invalid values:": "Nieprawidłowe wartości:",
- "Argument: %s, Given: %s, Choices: %s": "Argument: %s, Otrzymano: %s, Dostępne: %s",
- "Argument check failed: %s": "Weryfikacja argumentów nie powiodła się: %s",
- "Implications failed:": "Założenia nie zostały spełnione:",
- "Not enough arguments following: %s": "Niewystarczająca ilość argumentów następujących po: %s",
- "Invalid JSON config file: %s": "Nieprawidłowy plik konfiguracyjny JSON: %s",
- "Path to JSON config file": "Ścieżka do pliku konfiguracyjnego JSON",
- "Show help": "Pokaż pomoc",
- "Show version number": "Pokaż numer wersji",
- "Did you mean %s?": "Czy chodziło Ci o %s?",
- "Arguments %s and %s are mutually exclusive": "Argumenty %s i %s wzajemnie się wykluczają",
- "Positionals:": "Pozycyjne:",
- "command": "polecenie"
-}
diff --git a/node_modules/yargs/locales/pt.json b/node_modules/yargs/locales/pt.json
deleted file mode 100644
index 75c3921..0000000
--- a/node_modules/yargs/locales/pt.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "Commands:": "Comandos:",
- "Options:": "Opções:",
- "Examples:": "Exemplos:",
- "boolean": "boolean",
- "count": "contagem",
- "string": "cadeia de caracteres",
- "number": "número",
- "array": "arranjo",
- "required": "requerido",
- "default:": "padrão:",
- "choices:": "escolhas:",
- "generated-value": "valor-gerado",
- "Not enough non-option arguments: got %s, need at least %s": "Argumentos insuficientes não opcionais: Argumento %s, necessário pelo menos %s",
- "Too many non-option arguments: got %s, maximum of %s": "Excesso de argumentos não opcionais: recebido %s, máximo de %s",
- "Missing argument value: %s": {
- "one": "Falta valor de argumento: %s",
- "other": "Falta valores de argumento: %s"
- },
- "Missing required argument: %s": {
- "one": "Falta argumento obrigatório: %s",
- "other": "Faltando argumentos obrigatórios: %s"
- },
- "Unknown argument: %s": {
- "one": "Argumento desconhecido: %s",
- "other": "Argumentos desconhecidos: %s"
- },
- "Invalid values:": "Valores inválidos:",
- "Argument: %s, Given: %s, Choices: %s": "Argumento: %s, Dado: %s, Escolhas: %s",
- "Argument check failed: %s": "Verificação de argumento falhou: %s",
- "Implications failed:": "Implicações falharam:",
- "Not enough arguments following: %s": "Insuficientes argumentos a seguir: %s",
- "Invalid JSON config file: %s": "Arquivo de configuração em JSON esta inválido: %s",
- "Path to JSON config file": "Caminho para o arquivo de configuração em JSON",
- "Show help": "Mostra ajuda",
- "Show version number": "Mostra número de versão",
- "Arguments %s and %s are mutually exclusive" : "Argumentos %s e %s são mutualmente exclusivos"
-}
diff --git a/node_modules/yargs/locales/pt_BR.json b/node_modules/yargs/locales/pt_BR.json
deleted file mode 100644
index 904cb66..0000000
--- a/node_modules/yargs/locales/pt_BR.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "Commands:": "Comandos:",
- "Options:": "Opções:",
- "Examples:": "Exemplos:",
- "boolean": "booleano",
- "count": "contagem",
- "string": "string",
- "number": "número",
- "array": "array",
- "required": "obrigatório",
- "default:": "padrão:",
- "choices:": "opções:",
- "aliases:": "sinônimos:",
- "generated-value": "valor-gerado",
- "Not enough non-option arguments: got %s, need at least %s": "Argumentos insuficientes: Argumento %s, necessário pelo menos %s",
- "Too many non-option arguments: got %s, maximum of %s": "Excesso de argumentos: recebido %s, máximo de %s",
- "Missing argument value: %s": {
- "one": "Falta valor de argumento: %s",
- "other": "Falta valores de argumento: %s"
- },
- "Missing required argument: %s": {
- "one": "Falta argumento obrigatório: %s",
- "other": "Faltando argumentos obrigatórios: %s"
- },
- "Unknown argument: %s": {
- "one": "Argumento desconhecido: %s",
- "other": "Argumentos desconhecidos: %s"
- },
- "Invalid values:": "Valores inválidos:",
- "Argument: %s, Given: %s, Choices: %s": "Argumento: %s, Dado: %s, Opções: %s",
- "Argument check failed: %s": "Verificação de argumento falhou: %s",
- "Implications failed:": "Implicações falharam:",
- "Not enough arguments following: %s": "Argumentos insuficientes a seguir: %s",
- "Invalid JSON config file: %s": "Arquivo JSON de configuração inválido: %s",
- "Path to JSON config file": "Caminho para o arquivo JSON de configuração",
- "Show help": "Exibe ajuda",
- "Show version number": "Exibe a versão",
- "Did you mean %s?": "Você quis dizer %s?",
- "Arguments %s and %s are mutually exclusive" : "Argumentos %s e %s são mutualmente exclusivos",
- "Positionals:": "Posicionais:",
- "command": "comando"
-}
diff --git a/node_modules/yargs/locales/ru.json b/node_modules/yargs/locales/ru.json
deleted file mode 100644
index cb7b88b..0000000
--- a/node_modules/yargs/locales/ru.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "Команды:",
- "Options:": "Опции:",
- "Examples:": "Примеры:",
- "boolean": "булевый тип",
- "count": "подсчет",
- "string": "строковой тип",
- "number": "число",
- "array": "массив",
- "required": "необходимо",
- "default:": "по умолчанию:",
- "choices:": "возможности:",
- "aliases:": "алиасы:",
- "generated-value": "генерированное значение",
- "Not enough non-option arguments: got %s, need at least %s": "Недостаточно неопционных аргументов: есть %s, нужно как минимум %s",
- "Too many non-option arguments: got %s, maximum of %s": "Слишком много неопционных аргументов: есть %s, максимум допустимо %s",
- "Missing argument value: %s": {
- "one": "Не хватает значения аргумента: %s",
- "other": "Не хватает значений аргументов: %s"
- },
- "Missing required argument: %s": {
- "one": "Не хватает необходимого аргумента: %s",
- "other": "Не хватает необходимых аргументов: %s"
- },
- "Unknown argument: %s": {
- "one": "Неизвестный аргумент: %s",
- "other": "Неизвестные аргументы: %s"
- },
- "Invalid values:": "Недействительные значения:",
- "Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Данное значение: %s, Возможности: %s",
- "Argument check failed: %s": "Проверка аргументов не удалась: %s",
- "Implications failed:": "Данный аргумент требует следующий дополнительный аргумент:",
- "Not enough arguments following: %s": "Недостаточно следующих аргументов: %s",
- "Invalid JSON config file: %s": "Недействительный файл конфигурации JSON: %s",
- "Path to JSON config file": "Путь к файлу конфигурации JSON",
- "Show help": "Показать помощь",
- "Show version number": "Показать номер версии",
- "Did you mean %s?": "Вы имели в виду %s?"
-}
diff --git a/node_modules/yargs/locales/th.json b/node_modules/yargs/locales/th.json
deleted file mode 100644
index 3f08dcd..0000000
--- a/node_modules/yargs/locales/th.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "Commands:": "คอมมาน",
- "Options:": "ออฟชั่น",
- "Examples:": "ตัวอย่าง",
- "boolean": "บูลีน",
- "count": "นับ",
- "string": "สตริง",
- "number": "ตัวเลข",
- "array": "อาเรย์",
- "required": "จำเป็น",
- "default:": "ค่าเริ่มต้น",
- "choices:": "ตัวเลือก",
- "aliases:": "เอเลียส",
- "generated-value": "ค่าที่ถูกสร้างขึ้น",
- "Not enough non-option arguments: got %s, need at least %s": "ใส่อาร์กิวเมนต์ไม่ครบตามจำนวนที่กำหนด: ใส่ค่ามาจำนวน %s ค่า, แต่ต้องการอย่างน้อย %s ค่า",
- "Too many non-option arguments: got %s, maximum of %s": "ใส่อาร์กิวเมนต์เกินจำนวนที่กำหนด: ใส่ค่ามาจำนวน %s ค่า, แต่ต้องการมากที่สุด %s ค่า",
- "Missing argument value: %s": {
- "one": "ค่าอาร์กิวเมนต์ที่ขาดไป: %s",
- "other": "ค่าอาร์กิวเมนต์ที่ขาดไป: %s"
- },
- "Missing required argument: %s": {
- "one": "อาร์กิวเมนต์จำเป็นที่ขาดไป: %s",
- "other": "อาร์กิวเมนต์จำเป็นที่ขาดไป: %s"
- },
- "Unknown argument: %s": {
- "one": "อาร์กิวเมนต์ที่ไม่รู้จัก: %s",
- "other": "อาร์กิวเมนต์ที่ไม่รู้จัก: %s"
- },
- "Invalid values:": "ค่าไม่ถูกต้อง:",
- "Argument: %s, Given: %s, Choices: %s": "อาร์กิวเมนต์: %s, ได้รับ: %s, ตัวเลือก: %s",
- "Argument check failed: %s": "ตรวจสอบพบอาร์กิวเมนต์ที่ไม่ถูกต้อง: %s",
- "Implications failed:": "Implications ไม่สำเร็จ:",
- "Not enough arguments following: %s": "ใส่อาร์กิวเมนต์ไม่ครบ: %s",
- "Invalid JSON config file: %s": "ไฟล์คอนฟิค JSON ไม่ถูกต้อง: %s",
- "Path to JSON config file": "พาทไฟล์คอนฟิค JSON",
- "Show help": "ขอความช่วยเหลือ",
- "Show version number": "แสดงตัวเลขเวอร์ชั่น",
- "Did you mean %s?": "คุณหมายถึง %s?"
-}
diff --git a/node_modules/yargs/locales/tr.json b/node_modules/yargs/locales/tr.json
deleted file mode 100644
index 9b06c52..0000000
--- a/node_modules/yargs/locales/tr.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "Commands:": "Komutlar:",
- "Options:": "Seçenekler:",
- "Examples:": "Örnekler:",
- "boolean": "boolean",
- "count": "sayı",
- "string": "string",
- "number": "numara",
- "array": "array",
- "required": "zorunlu",
- "default:": "varsayılan:",
- "choices:": "seçimler:",
- "aliases:": "takma adlar:",
- "generated-value": "oluşturulan-değer",
- "Not enough non-option arguments: got %s, need at least %s": "Seçenek dışı argümanlar yetersiz: %s bulundu, %s gerekli",
- "Too many non-option arguments: got %s, maximum of %s": "Seçenek dışı argümanlar gereğinden fazla: %s bulundu, azami %s",
- "Missing argument value: %s": {
- "one": "Eksik argüman değeri: %s",
- "other": "Eksik argüman değerleri: %s"
- },
- "Missing required argument: %s": {
- "one": "Eksik zorunlu argüman: %s",
- "other": "Eksik zorunlu argümanlar: %s"
- },
- "Unknown argument: %s": {
- "one": "Bilinmeyen argüman: %s",
- "other": "Bilinmeyen argümanlar: %s"
- },
- "Invalid values:": "Geçersiz değerler:",
- "Argument: %s, Given: %s, Choices: %s": "Argüman: %s, Verilen: %s, Seçimler: %s",
- "Argument check failed: %s": "Argüman kontrolü başarısız oldu: %s",
- "Implications failed:": "Sonuçlar başarısız oldu:",
- "Not enough arguments following: %s": "%s için yeterli argüman bulunamadı",
- "Invalid JSON config file: %s": "Geçersiz JSON yapılandırma dosyası: %s",
- "Path to JSON config file": "JSON yapılandırma dosya konumu",
- "Show help": "Yardım detaylarını göster",
- "Show version number": "Versiyon detaylarını göster",
- "Did you mean %s?": "Bunu mu demek istediniz: %s?",
- "Positionals:": "Sıralılar:",
- "command": "komut"
-}
diff --git a/node_modules/yargs/locales/zh_CN.json b/node_modules/yargs/locales/zh_CN.json
deleted file mode 100644
index 03a3d94..0000000
--- a/node_modules/yargs/locales/zh_CN.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "Commands:": "命令:",
- "Options:": "选项:",
- "Examples:": "示例:",
- "boolean": "布尔",
- "count": "计数",
- "string": "字符串",
- "number": "数字",
- "array": "数组",
- "required": "必需",
- "default:": "默认值:",
- "choices:": "可选值:",
- "generated-value": "生成的值",
- "Not enough non-option arguments: got %s, need at least %s": "缺少 non-option 参数:传入了 %s 个, 至少需要 %s 个",
- "Too many non-option arguments: got %s, maximum of %s": "non-option 参数过多:传入了 %s 个, 最大允许 %s 个",
- "Missing argument value: %s": {
- "one": "没有给此选项指定值:%s",
- "other": "没有给这些选项指定值:%s"
- },
- "Missing required argument: %s": {
- "one": "缺少必须的选项:%s",
- "other": "缺少这些必须的选项:%s"
- },
- "Unknown argument: %s": {
- "one": "无法识别的选项:%s",
- "other": "无法识别这些选项:%s"
- },
- "Invalid values:": "无效的选项值:",
- "Argument: %s, Given: %s, Choices: %s": "选项名称: %s, 传入的值: %s, 可选的值:%s",
- "Argument check failed: %s": "选项值验证失败:%s",
- "Implications failed:": "缺少依赖的选项:",
- "Not enough arguments following: %s": "没有提供足够的值给此选项:%s",
- "Invalid JSON config file: %s": "无效的 JSON 配置文件:%s",
- "Path to JSON config file": "JSON 配置文件的路径",
- "Show help": "显示帮助信息",
- "Show version number": "显示版本号",
- "Did you mean %s?": "是指 %s?",
- "Arguments %s and %s are mutually exclusive" : "选项 %s 和 %s 是互斥的",
- "Positionals:": "位置:",
- "command": "命令"
-}
diff --git a/node_modules/yargs/locales/zh_TW.json b/node_modules/yargs/locales/zh_TW.json
deleted file mode 100644
index 1249888..0000000
--- a/node_modules/yargs/locales/zh_TW.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "Commands:": "命令:",
- "Options:": "選項:",
- "Examples:": "例:",
- "boolean": "布林",
- "count": "次數",
- "string": "字串",
- "number": "數字",
- "array": "陣列",
- "required": "必須",
- "default:": "預設值:",
- "choices:": "可選值:",
- "aliases:": "別名:",
- "generated-value": "生成的值",
- "Not enough non-option arguments: got %s, need at least %s": "non-option 引數不足:只傳入了 %s 個, 至少要 %s 個",
- "Too many non-option arguments: got %s, maximum of %s": "non-option 引數過多:傳入了 %s 個, 但最多 %s 個",
- "Missing argument value: %s": {
- "one": "此引數無指定值:%s",
- "other": "這些引數無指定值:%s"
- },
- "Missing required argument: %s": {
- "one": "缺少必須的引數:%s",
- "other": "缺少這些必須的引數:%s"
- },
- "Unknown argument: %s": {
- "one": "未知的引數:%s",
- "other": "未知的這些引數:%s"
- },
- "Invalid values:": "無效的選項值:",
- "Argument: %s, Given: %s, Choices: %s": "引數名稱: %s, 傳入的值: %s, 可選的值:%s",
- "Argument check failed: %s": "引數驗證失敗:%s",
- "Implications failed:": "缺少依賴的選項:",
- "Not enough arguments following: %s": "沒有提供足夠的值給此引數:%s",
- "Invalid JSON config file: %s": "無效的 JSON 設置文件:%s",
- "Path to JSON config file": "JSON 設置文件的路徑",
- "Show help": "顯示說明",
- "Show version number": "顯示版本",
- "Did you mean %s?": "是指 %s?",
- "Arguments %s and %s are mutually exclusive" : "引數 %s 和 %s 是互斥的"
-}
diff --git a/node_modules/yargs/node_modules/ansi-regex/index.js b/node_modules/yargs/node_modules/ansi-regex/index.js
deleted file mode 100644
index c254480..0000000
--- a/node_modules/yargs/node_modules/ansi-regex/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-module.exports = options => {
- options = Object.assign({
- onlyFirst: false
- }, options);
-
- const pattern = [
- '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)',
- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))'
- ].join('|');
-
- return new RegExp(pattern, options.onlyFirst ? undefined : 'g');
-};
diff --git a/node_modules/yargs/node_modules/ansi-regex/license b/node_modules/yargs/node_modules/ansi-regex/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/yargs/node_modules/ansi-regex/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/yargs/node_modules/ansi-regex/package.json b/node_modules/yargs/node_modules/ansi-regex/package.json
deleted file mode 100644
index 503ac41..0000000
--- a/node_modules/yargs/node_modules/ansi-regex/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "_from": "ansi-regex@^4.1.0",
- "_id": "ansi-regex@4.1.0",
- "_inBundle": false,
- "_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
- "_location": "/yargs/ansi-regex",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "ansi-regex@^4.1.0",
- "name": "ansi-regex",
- "escapedName": "ansi-regex",
- "rawSpec": "^4.1.0",
- "saveSpec": null,
- "fetchSpec": "^4.1.0"
- },
- "_requiredBy": [
- "/yargs/strip-ansi"
- ],
- "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "_shasum": "8b9f8f08cf1acb843756a839ca8c7e3168c51997",
- "_spec": "ansi-regex@^4.1.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs/node_modules/strip-ansi",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/ansi-regex/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Regular expression for matching ANSI escape codes",
- "devDependencies": {
- "ava": "^0.25.0",
- "xo": "^0.23.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/chalk/ansi-regex#readme",
- "keywords": [
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "cli",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "command-line",
- "text",
- "regex",
- "regexp",
- "re",
- "match",
- "test",
- "find",
- "pattern"
- ],
- "license": "MIT",
- "name": "ansi-regex",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/ansi-regex.git"
- },
- "scripts": {
- "test": "xo && ava",
- "view-supported": "node fixtures/view-codes.js"
- },
- "version": "4.1.0"
-}
diff --git a/node_modules/yargs/node_modules/ansi-regex/readme.md b/node_modules/yargs/node_modules/ansi-regex/readme.md
deleted file mode 100644
index d19c446..0000000
--- a/node_modules/yargs/node_modules/ansi-regex/readme.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)
-
-> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-ansi-regex?utm_source=npm-ansi-regex&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-
-## Install
-
-```
-$ npm install ansi-regex
-```
-
-
-## Usage
-
-```js
-const ansiRegex = require('ansi-regex');
-
-ansiRegex().test('\u001B[4mcake\u001B[0m');
-//=> true
-
-ansiRegex().test('cake');
-//=> false
-
-'\u001B[4mcake\u001B[0m'.match(ansiRegex());
-//=> ['\u001B[4m', '\u001B[0m']
-
-'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
-//=> ['\u001B[4m']
-
-'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
-//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
-```
-
-
-## API
-
-### ansiRegex([options])
-
-Returns a regex for matching ANSI escape codes.
-
-#### options
-
-##### onlyFirst
-
-Type: `boolean`<br>
-Default: `false` *(Matches any ANSI escape codes in a string)*
-
-Match only the first ANSI escape.
-
-
-## FAQ
-
-### Why do you test for codes not in the ECMA 48 standard?
-
-Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
-
-On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-
-
-## License
-
-MIT
diff --git a/node_modules/yargs/node_modules/find-up/index.js b/node_modules/yargs/node_modules/find-up/index.js
deleted file mode 100644
index 8e83819..0000000
--- a/node_modules/yargs/node_modules/find-up/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-const path = require('path');
-const locatePath = require('locate-path');
-
-module.exports = (filename, opts = {}) => {
- const startDir = path.resolve(opts.cwd || '');
- const {root} = path.parse(startDir);
-
- const filenames = [].concat(filename);
-
- return new Promise(resolve => {
- (function find(dir) {
- locatePath(filenames, {cwd: dir}).then(file => {
- if (file) {
- resolve(path.join(dir, file));
- } else if (dir === root) {
- resolve(null);
- } else {
- find(path.dirname(dir));
- }
- });
- })(startDir);
- });
-};
-
-module.exports.sync = (filename, opts = {}) => {
- let dir = path.resolve(opts.cwd || '');
- const {root} = path.parse(dir);
-
- const filenames = [].concat(filename);
-
- // eslint-disable-next-line no-constant-condition
- while (true) {
- const file = locatePath.sync(filenames, {cwd: dir});
-
- if (file) {
- return path.join(dir, file);
- }
-
- if (dir === root) {
- return null;
- }
-
- dir = path.dirname(dir);
- }
-};
diff --git a/node_modules/yargs/node_modules/find-up/license b/node_modules/yargs/node_modules/find-up/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/yargs/node_modules/find-up/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/yargs/node_modules/find-up/package.json b/node_modules/yargs/node_modules/find-up/package.json
deleted file mode 100644
index 92836ea..0000000
--- a/node_modules/yargs/node_modules/find-up/package.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "_from": "find-up@^3.0.0",
- "_id": "find-up@3.0.0",
- "_inBundle": false,
- "_integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
- "_location": "/yargs/find-up",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "find-up@^3.0.0",
- "name": "find-up",
- "escapedName": "find-up",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
- "_shasum": "49169f1d7993430646da61ecc5ae355c21c97b73",
- "_spec": "find-up@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/find-up/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "locate-path": "^3.0.0"
- },
- "deprecated": false,
- "description": "Find a file or directory by walking up parent directories",
- "devDependencies": {
- "ava": "*",
- "tempy": "^0.2.1",
- "xo": "*"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/find-up#readme",
- "keywords": [
- "find",
- "up",
- "find-up",
- "findup",
- "look-up",
- "look",
- "file",
- "search",
- "match",
- "package",
- "resolve",
- "parent",
- "parents",
- "folder",
- "directory",
- "dir",
- "walk",
- "walking",
- "path"
- ],
- "license": "MIT",
- "name": "find-up",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/find-up.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.0.0"
-}
diff --git a/node_modules/yargs/node_modules/find-up/readme.md b/node_modules/yargs/node_modules/find-up/readme.md
deleted file mode 100644
index 810ad7c..0000000
--- a/node_modules/yargs/node_modules/find-up/readme.md
+++ /dev/null
@@ -1,87 +0,0 @@
-# find-up [![Build Status: Linux and macOS](https://travis-ci.org/sindresorhus/find-up.svg?branch=master)](https://travis-ci.org/sindresorhus/find-up) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/l0cyjmvh5lq72vq2/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/find-up/branch/master)
-
-> Find a file or directory by walking up parent directories
-
-
-## Install
-
-```
-$ npm install find-up
-```
-
-
-## Usage
-
-```
-/
-└── Users
- └── sindresorhus
- ├── unicorn.png
- └── foo
- └── bar
- ├── baz
- └── example.js
-```
-
-`example.js`
-
-```js
-const findUp = require('find-up');
-
-(async () => {
- console.log(await findUp('unicorn.png'));
- //=> '/Users/sindresorhus/unicorn.png'
-
- console.log(await findUp(['rainbow.png', 'unicorn.png']));
- //=> '/Users/sindresorhus/unicorn.png'
-})();
-```
-
-
-## API
-
-### findUp(filename, [options])
-
-Returns a `Promise` for either the filepath or `null` if it couldn't be found.
-
-### findUp([filenameA, filenameB], [options])
-
-Returns a `Promise` for either the first filepath found (by respecting the order) or `null` if none could be found.
-
-### findUp.sync(filename, [options])
-
-Returns a filepath or `null`.
-
-### findUp.sync([filenameA, filenameB], [options])
-
-Returns the first filepath found (by respecting the order) or `null`.
-
-#### filename
-
-Type: `string`
-
-Filename of the file to find.
-
-#### options
-
-Type: `Object`
-
-##### cwd
-
-Type: `string`<br>
-Default: `process.cwd()`
-
-Directory to start from.
-
-
-## Related
-
-- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module
-- [pkg-up](https://github.com/sindresorhus/pkg-up) - Find the closest package.json file
-- [pkg-dir](https://github.com/sindresorhus/pkg-dir) - Find the root directory of an npm package
-- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module like `require.resolve()` but from a given path
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js b/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js
deleted file mode 100644
index d506327..0000000
--- a/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-'use strict';
-/* eslint-disable yoda */
-module.exports = x => {
- if (Number.isNaN(x)) {
- return false;
- }
-
- // code points are derived from:
- // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
- if (
- x >= 0x1100 && (
- x <= 0x115f || // Hangul Jamo
- x === 0x2329 || // LEFT-POINTING ANGLE BRACKET
- x === 0x232a || // RIGHT-POINTING ANGLE BRACKET
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
- (0x2e80 <= x && x <= 0x3247 && x !== 0x303f) ||
- // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
- (0x3250 <= x && x <= 0x4dbf) ||
- // CJK Unified Ideographs .. Yi Radicals
- (0x4e00 <= x && x <= 0xa4c6) ||
- // Hangul Jamo Extended-A
- (0xa960 <= x && x <= 0xa97c) ||
- // Hangul Syllables
- (0xac00 <= x && x <= 0xd7a3) ||
- // CJK Compatibility Ideographs
- (0xf900 <= x && x <= 0xfaff) ||
- // Vertical Forms
- (0xfe10 <= x && x <= 0xfe19) ||
- // CJK Compatibility Forms .. Small Form Variants
- (0xfe30 <= x && x <= 0xfe6b) ||
- // Halfwidth and Fullwidth Forms
- (0xff01 <= x && x <= 0xff60) ||
- (0xffe0 <= x && x <= 0xffe6) ||
- // Kana Supplement
- (0x1b000 <= x && x <= 0x1b001) ||
- // Enclosed Ideographic Supplement
- (0x1f200 <= x && x <= 0x1f251) ||
- // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
- (0x20000 <= x && x <= 0x3fffd)
- )
- ) {
- return true;
- }
-
- return false;
-};
diff --git a/node_modules/yargs/node_modules/is-fullwidth-code-point/license b/node_modules/yargs/node_modules/is-fullwidth-code-point/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/yargs/node_modules/is-fullwidth-code-point/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json b/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json
deleted file mode 100644
index c4b64f3..0000000
--- a/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json
+++ /dev/null
@@ -1,77 +0,0 @@
-{
- "_from": "is-fullwidth-code-point@^2.0.0",
- "_id": "is-fullwidth-code-point@2.0.0",
- "_inBundle": false,
- "_integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "_location": "/yargs/is-fullwidth-code-point",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "is-fullwidth-code-point@^2.0.0",
- "name": "is-fullwidth-code-point",
- "escapedName": "is-fullwidth-code-point",
- "rawSpec": "^2.0.0",
- "saveSpec": null,
- "fetchSpec": "^2.0.0"
- },
- "_requiredBy": [
- "/yargs/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "_shasum": "a3b30a5c4f199183167aaab93beefae3ddfb654f",
- "_spec": "is-fullwidth-code-point@^2.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs/node_modules/string-width",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/is-fullwidth-code-point/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Check if the character represented by a given Unicode code point is fullwidth",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/is-fullwidth-code-point#readme",
- "keywords": [
- "fullwidth",
- "full-width",
- "full",
- "width",
- "unicode",
- "character",
- "char",
- "string",
- "str",
- "codepoint",
- "code",
- "point",
- "is",
- "detect",
- "check"
- ],
- "license": "MIT",
- "name": "is-fullwidth-code-point",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/is-fullwidth-code-point.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "2.0.0",
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md b/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md
deleted file mode 100644
index 093b028..0000000
--- a/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point)
-
-> Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
-
-
-## Install
-
-```
-$ npm install --save is-fullwidth-code-point
-```
-
-
-## Usage
-
-```js
-const isFullwidthCodePoint = require('is-fullwidth-code-point');
-
-isFullwidthCodePoint('谢'.codePointAt());
-//=> true
-
-isFullwidthCodePoint('a'.codePointAt());
-//=> false
-```
-
-
-## API
-
-### isFullwidthCodePoint(input)
-
-#### input
-
-Type: `number`
-
-[Code point](https://en.wikipedia.org/wiki/Code_point) of a character.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/yargs/node_modules/string-width/index.js b/node_modules/yargs/node_modules/string-width/index.js
deleted file mode 100644
index 33c9d6c..0000000
--- a/node_modules/yargs/node_modules/string-width/index.js
+++ /dev/null
@@ -1,39 +0,0 @@
-'use strict';
-const stripAnsi = require('strip-ansi');
-const isFullwidthCodePoint = require('is-fullwidth-code-point');
-const emojiRegex = require('emoji-regex')();
-
-module.exports = input => {
- input = input.replace(emojiRegex, ' ');
-
- if (typeof input !== 'string' || input.length === 0) {
- return 0;
- }
-
- input = stripAnsi(input);
-
- let width = 0;
-
- for (let i = 0; i < input.length; i++) {
- const code = input.codePointAt(i);
-
- // Ignore control characters
- if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) {
- continue;
- }
-
- // Ignore combining characters
- if (code >= 0x300 && code <= 0x36F) {
- continue;
- }
-
- // Surrogates
- if (code > 0xFFFF) {
- i++;
- }
-
- width += isFullwidthCodePoint(code) ? 2 : 1;
- }
-
- return width;
-};
diff --git a/node_modules/yargs/node_modules/string-width/license b/node_modules/yargs/node_modules/string-width/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/yargs/node_modules/string-width/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/yargs/node_modules/string-width/package.json b/node_modules/yargs/node_modules/string-width/package.json
deleted file mode 100644
index d6b540e..0000000
--- a/node_modules/yargs/node_modules/string-width/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "_from": "string-width@^3.0.0",
- "_id": "string-width@3.1.0",
- "_inBundle": false,
- "_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "_location": "/yargs/string-width",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "string-width@^3.0.0",
- "name": "string-width",
- "escapedName": "string-width",
- "rawSpec": "^3.0.0",
- "saveSpec": null,
- "fetchSpec": "^3.0.0"
- },
- "_requiredBy": [
- "/yargs"
- ],
- "_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "_shasum": "22767be21b62af1081574306f69ac51b62203961",
- "_spec": "string-width@^3.0.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/string-width/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- },
- "deprecated": false,
- "description": "Get the visual width of a string - the number of columns required to display it",
- "devDependencies": {
- "ava": "^1.0.1",
- "xo": "^0.23.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/string-width#readme",
- "keywords": [
- "string",
- "str",
- "character",
- "char",
- "unicode",
- "width",
- "visual",
- "column",
- "columns",
- "fullwidth",
- "full-width",
- "full",
- "ansi",
- "escape",
- "codes",
- "cli",
- "command-line",
- "terminal",
- "console",
- "cjk",
- "chinese",
- "japanese",
- "korean",
- "fixed-width"
- ],
- "license": "MIT",
- "name": "string-width",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/string-width.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "3.1.0"
-}
diff --git a/node_modules/yargs/node_modules/string-width/readme.md b/node_modules/yargs/node_modules/string-width/readme.md
deleted file mode 100644
index d39d95f..0000000
--- a/node_modules/yargs/node_modules/string-width/readme.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width)
-
-> Get the visual width of a string - the number of columns required to display it
-
-Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
-
-Useful to be able to measure the actual width of command-line output.
-
-
-## Install
-
-```
-$ npm install string-width
-```
-
-
-## Usage
-
-```js
-const stringWidth = require('string-width');
-
-stringWidth('古');
-//=> 2
-
-stringWidth('\u001b[1m古\u001b[22m');
-//=> 2
-
-stringWidth('a');
-//=> 1
-
-stringWidth('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-// => 5
-```
-
-
-## Related
-
-- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module
-- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string
-- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/yargs/node_modules/strip-ansi/index.d.ts b/node_modules/yargs/node_modules/strip-ansi/index.d.ts
deleted file mode 100644
index 44e954d..0000000
--- a/node_modules/yargs/node_modules/strip-ansi/index.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
-Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string.
-
-@example
-```
-import stripAnsi from 'strip-ansi';
-
-stripAnsi('\u001B[4mUnicorn\u001B[0m');
-//=> 'Unicorn'
-
-stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-//=> 'Click'
-```
-*/
-export default function stripAnsi(string: string): string;
diff --git a/node_modules/yargs/node_modules/strip-ansi/index.js b/node_modules/yargs/node_modules/strip-ansi/index.js
deleted file mode 100644
index 9788c96..0000000
--- a/node_modules/yargs/node_modules/strip-ansi/index.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-const ansiRegex = require('ansi-regex');
-
-const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string;
-
-module.exports = stripAnsi;
-module.exports.default = stripAnsi;
diff --git a/node_modules/yargs/node_modules/strip-ansi/license b/node_modules/yargs/node_modules/strip-ansi/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/yargs/node_modules/strip-ansi/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/yargs/node_modules/strip-ansi/package.json b/node_modules/yargs/node_modules/strip-ansi/package.json
deleted file mode 100644
index edc5af4..0000000
--- a/node_modules/yargs/node_modules/strip-ansi/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_from": "strip-ansi@^5.1.0",
- "_id": "strip-ansi@5.2.0",
- "_inBundle": false,
- "_integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "_location": "/yargs/strip-ansi",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "strip-ansi@^5.1.0",
- "name": "strip-ansi",
- "escapedName": "strip-ansi",
- "rawSpec": "^5.1.0",
- "saveSpec": null,
- "fetchSpec": "^5.1.0"
- },
- "_requiredBy": [
- "/yargs/string-width"
- ],
- "_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "_shasum": "8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae",
- "_spec": "strip-ansi@^5.1.0",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/yargs/node_modules/string-width",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/chalk/strip-ansi/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "ansi-regex": "^4.1.0"
- },
- "deprecated": false,
- "description": "Strip ANSI escape codes from a string",
- "devDependencies": {
- "ava": "^1.3.1",
- "tsd-check": "^0.5.0",
- "xo": "^0.24.0"
- },
- "engines": {
- "node": ">=6"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "homepage": "https://github.com/chalk/strip-ansi#readme",
- "keywords": [
- "strip",
- "trim",
- "remove",
- "ansi",
- "styles",
- "color",
- "colour",
- "colors",
- "terminal",
- "console",
- "string",
- "tty",
- "escape",
- "formatting",
- "rgb",
- "256",
- "shell",
- "xterm",
- "log",
- "logging",
- "command-line",
- "text"
- ],
- "license": "MIT",
- "name": "strip-ansi",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/chalk/strip-ansi.git"
- },
- "scripts": {
- "test": "xo && ava && tsd-check"
- },
- "version": "5.2.0"
-}
diff --git a/node_modules/yargs/node_modules/strip-ansi/readme.md b/node_modules/yargs/node_modules/strip-ansi/readme.md
deleted file mode 100644
index 8681fe8..0000000
--- a/node_modules/yargs/node_modules/strip-ansi/readme.md
+++ /dev/null
@@ -1,61 +0,0 @@
-# strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi)
-
-> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string
-
----
-
-<div align="center">
- <b>
- <a href="https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=readme">Get professional support for 'strip-ansi' with a Tidelift subscription</a>
- </b>
- <br>
- <sub>
- Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
- </sub>
-</div>
-
----
-
-## Install
-
-```
-$ npm install strip-ansi
-```
-
-
-## Usage
-
-```js
-const stripAnsi = require('strip-ansi');
-
-stripAnsi('\u001B[4mUnicorn\u001B[0m');
-//=> 'Unicorn'
-
-stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007');
-//=> 'Click'
-```
-
-
-## Security
-
-To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
-
-
-## Related
-
-- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module
-- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module
-- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
-- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
-- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
-
-
-## Maintainers
-
-- [Sindre Sorhus](https://github.com/sindresorhus)
-- [Josh Junon](https://github.com/qix-)
-
-
-## License
-
-MIT
diff --git a/node_modules/yargs/package.json b/node_modules/yargs/package.json
deleted file mode 100644
index fd31752..0000000
--- a/node_modules/yargs/package.json
+++ /dev/null
@@ -1,109 +0,0 @@
-{
- "_from": "yargs@^13.3.2",
- "_id": "yargs@13.3.2",
- "_inBundle": false,
- "_integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==",
- "_location": "/yargs",
- "_phantomChildren": {
- "emoji-regex": "7.0.3",
- "locate-path": "3.0.0"
- },
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "yargs@^13.3.2",
- "name": "yargs",
- "escapedName": "yargs",
- "rawSpec": "^13.3.2",
- "saveSpec": null,
- "fetchSpec": "^13.3.2"
- },
- "_requiredBy": [
- "/sass-graph"
- ],
- "_resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz",
- "_shasum": "ad7ffefec1aa59565ac915f82dccb38a9c31a2dd",
- "_spec": "yargs@^13.3.2",
- "_where": "/Users/austingebauer/Workspace/personal-website/themes/devise/node_modules/sass-graph",
- "bugs": {
- "url": "https://github.com/yargs/yargs/issues"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Yargs Contributors",
- "url": "https://github.com/yargs/yargs/graphs/contributors"
- }
- ],
- "dependencies": {
- "cliui": "^5.0.0",
- "find-up": "^3.0.0",
- "get-caller-file": "^2.0.1",
- "require-directory": "^2.1.1",
- "require-main-filename": "^2.0.0",
- "set-blocking": "^2.0.0",
- "string-width": "^3.0.0",
- "which-module": "^2.0.0",
- "y18n": "^4.0.0",
- "yargs-parser": "^13.1.2"
- },
- "deprecated": false,
- "description": "yargs the modern, pirate-themed, successor to optimist.",
- "devDependencies": {
- "chai": "^4.2.0",
- "chalk": "^2.4.2",
- "coveralls": "^3.0.3",
- "cpr": "^3.0.1",
- "cross-spawn": "^6.0.4",
- "es6-promise": "^4.2.5",
- "hashish": "0.0.4",
- "mocha": "^5.2.0",
- "nyc": "^14.1.0",
- "rimraf": "^2.6.3",
- "standard": "^12.0.1",
- "standard-version": "^6.0.1",
- "which": "^1.3.1",
- "yargs-test-extends": "^1.0.1"
- },
- "engine": {
- "node": ">=6"
- },
- "files": [
- "index.js",
- "yargs.js",
- "lib",
- "locales",
- "completion.sh.hbs",
- "completion.zsh.hbs",
- "LICENSE"
- ],
- "homepage": "https://yargs.js.org/",
- "keywords": [
- "argument",
- "args",
- "option",
- "parser",
- "parsing",
- "cli",
- "command"
- ],
- "license": "MIT",
- "main": "./index.js",
- "name": "yargs",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/yargs/yargs.git"
- },
- "scripts": {
- "coverage": "nyc report --reporter=text-lcov | coveralls",
- "pretest": "standard",
- "release": "standard-version",
- "test": "nyc --cache mocha --require ./test/before.js --timeout=12000 --check-leaks"
- },
- "standard": {
- "ignore": [
- "**/example/**"
- ]
- },
- "version": "13.3.2"
-}
diff --git a/node_modules/yargs/yargs.js b/node_modules/yargs/yargs.js
deleted file mode 100644
index 81d2193..0000000
--- a/node_modules/yargs/yargs.js
+++ /dev/null
@@ -1,1215 +0,0 @@
-'use strict'
-const argsert = require('./lib/argsert')
-const fs = require('fs')
-const Command = require('./lib/command')
-const Completion = require('./lib/completion')
-const Parser = require('yargs-parser')
-const path = require('path')
-const Usage = require('./lib/usage')
-const Validation = require('./lib/validation')
-const Y18n = require('y18n')
-const objFilter = require('./lib/obj-filter')
-const setBlocking = require('set-blocking')
-const applyExtends = require('./lib/apply-extends')
-const { globalMiddlewareFactory } = require('./lib/middleware')
-const YError = require('./lib/yerror')
-
-exports = module.exports = Yargs
-function Yargs (processArgs, cwd, parentRequire) {
- processArgs = processArgs || [] // handle calling yargs().
-
- const self = {}
- let command = null
- let completion = null
- let groups = {}
- let globalMiddleware = []
- let output = ''
- let preservedGroups = {}
- let usage = null
- let validation = null
-
- const y18n = Y18n({
- directory: path.resolve(__dirname, './locales'),
- updateFiles: false
- })
-
- self.middleware = globalMiddlewareFactory(globalMiddleware, self)
-
- if (!cwd) cwd = process.cwd()
-
- self.scriptName = function scriptName (scriptName) {
- self.$0 = scriptName
- return self
- }
-
- // ignore the node bin, specify this in your
- // bin file with #!/usr/bin/env node
- if (/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])) {
- self.$0 = process.argv.slice(1, 2)
- } else {
- self.$0 = process.argv.slice(0, 1)
- }
-
- self.$0 = self.$0
- .map((x, i) => {
- const b = rebase(cwd, x)
- return x.match(/^(\/|([a-zA-Z]:)?\\)/) && b.length < x.length ? b : x
- })
- .join(' ').trim()
-
- if (process.env._ !== undefined && process.argv[1] === process.env._) {
- self.$0 = process.env._.replace(
- `${path.dirname(process.execPath)}/`, ''
- )
- }
-
- // use context object to keep track of resets, subcommand execution, etc
- // submodules should modify and check the state of context as necessary
- const context = { resets: -1, commands: [], fullCommands: [], files: [] }
- self.getContext = () => context
-
- // puts yargs back into an initial state. any keys
- // that have been set to "global" will not be reset
- // by this action.
- let options
- self.resetOptions = self.reset = function resetOptions (aliases) {
- context.resets++
- aliases = aliases || {}
- options = options || {}
- // put yargs back into an initial state, this
- // logic is used to build a nested command
- // hierarchy.
- const tmpOptions = {}
- tmpOptions.local = options.local ? options.local : []
- tmpOptions.configObjects = options.configObjects ? options.configObjects : []
-
- // if a key has been explicitly set as local,
- // we should reset it before passing options to command.
- const localLookup = {}
- tmpOptions.local.forEach((l) => {
- localLookup[l] = true
- ;(aliases[l] || []).forEach((a) => {
- localLookup[a] = true
- })
- })
-
- // preserve all groups not set to local.
- preservedGroups = Object.keys(groups).reduce((acc, groupName) => {
- const keys = groups[groupName].filter(key => !(key in localLookup))
- if (keys.length > 0) {
- acc[groupName] = keys
- }
- return acc
- }, {})
- // groups can now be reset
- groups = {}
-
- const arrayOptions = [
- 'array', 'boolean', 'string', 'skipValidation',
- 'count', 'normalize', 'number',
- 'hiddenOptions'
- ]
-
- const objectOptions = [
- 'narg', 'key', 'alias', 'default', 'defaultDescription',
- 'config', 'choices', 'demandedOptions', 'demandedCommands', 'coerce'
- ]
-
- arrayOptions.forEach((k) => {
- tmpOptions[k] = (options[k] || []).filter(k => !localLookup[k])
- })
-
- objectOptions.forEach((k) => {
- tmpOptions[k] = objFilter(options[k], (k, v) => !localLookup[k])
- })
-
- tmpOptions.envPrefix = options.envPrefix
- options = tmpOptions
-
- // if this is the first time being executed, create
- // instances of all our helpers -- otherwise just reset.
- usage = usage ? usage.reset(localLookup) : Usage(self, y18n)
- validation = validation ? validation.reset(localLookup) : Validation(self, usage, y18n)
- command = command ? command.reset() : Command(self, usage, validation, globalMiddleware)
- if (!completion) completion = Completion(self, usage, command)
-
- completionCommand = null
- output = ''
- exitError = null
- hasOutput = false
- self.parsed = false
-
- return self
- }
- self.resetOptions()
-
- // temporary hack: allow "freezing" of reset-able state for parse(msg, cb)
- let frozen
- function freeze () {
- frozen = {}
- frozen.options = options
- frozen.configObjects = options.configObjects.slice(0)
- frozen.exitProcess = exitProcess
- frozen.groups = groups
- usage.freeze()
- validation.freeze()
- command.freeze()
- frozen.strict = strict
- frozen.completionCommand = completionCommand
- frozen.output = output
- frozen.exitError = exitError
- frozen.hasOutput = hasOutput
- frozen.parsed = self.parsed
- }
- function unfreeze () {
- options = frozen.options
- options.configObjects = frozen.configObjects
- exitProcess = frozen.exitProcess
- groups = frozen.groups
- output = frozen.output
- exitError = frozen.exitError
- hasOutput = frozen.hasOutput
- self.parsed = frozen.parsed
- usage.unfreeze()
- validation.unfreeze()
- command.unfreeze()
- strict = frozen.strict
- completionCommand = frozen.completionCommand
- parseFn = null
- parseContext = null
- frozen = undefined
- }
-
- self.boolean = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintArray('boolean', keys)
- return self
- }
-
- self.array = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintArray('array', keys)
- return self
- }
-
- self.number = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintArray('number', keys)
- return self
- }
-
- self.normalize = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintArray('normalize', keys)
- return self
- }
-
- self.count = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintArray('count', keys)
- return self
- }
-
- self.string = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintArray('string', keys)
- return self
- }
-
- self.requiresArg = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintObject(self.nargs, false, 'narg', keys, 1)
- return self
- }
-
- self.skipValidation = function (keys) {
- argsert('<array|string>', [keys], arguments.length)
- populateParserHintArray('skipValidation', keys)
- return self
- }
-
- function populateParserHintArray (type, keys, value) {
- keys = [].concat(keys)
- keys.forEach((key) => {
- key = sanitizeKey(key)
- options[type].push(key)
- })
- }
-
- self.nargs = function (key, value) {
- argsert('<string|object|array> [number]', [key, value], arguments.length)
- populateParserHintObject(self.nargs, false, 'narg', key, value)
- return self
- }
-
- self.choices = function (key, value) {
- argsert('<object|string|array> [string|array]', [key, value], arguments.length)
- populateParserHintObject(self.choices, true, 'choices', key, value)
- return self
- }
-
- self.alias = function (key, value) {
- argsert('<object|string|array> [string|array]', [key, value], arguments.length)
- populateParserHintObject(self.alias, true, 'alias', key, value)
- return self
- }
-
- // TODO: actually deprecate self.defaults.
- self.default = self.defaults = function (key, value, defaultDescription) {
- argsert('<object|string|array> [*] [string]', [key, value, defaultDescription], arguments.length)
- if (defaultDescription) options.defaultDescription[key] = defaultDescription
- if (typeof value === 'function') {
- if (!options.defaultDescription[key]) options.defaultDescription[key] = usage.functionDescription(value)
- value = value.call()
- }
- populateParserHintObject(self.default, false, 'default', key, value)
- return self
- }
-
- self.describe = function (key, desc) {
- argsert('<object|string|array> [string]', [key, desc], arguments.length)
- populateParserHintObject(self.describe, false, 'key', key, true)
- usage.describe(key, desc)
- return self
- }
-
- self.demandOption = function (keys, msg) {
- argsert('<object|string|array> [string]', [keys, msg], arguments.length)
- populateParserHintObject(self.demandOption, false, 'demandedOptions', keys, msg)
- return self
- }
-
- self.coerce = function (keys, value) {
- argsert('<object|string|array> [function]', [keys, value], arguments.length)
- populateParserHintObject(self.coerce, false, 'coerce', keys, value)
- return self
- }
-
- function populateParserHintObject (builder, isArray, type, key, value) {
- if (Array.isArray(key)) {
- const temp = Object.create(null)
- // an array of keys with one value ['x', 'y', 'z'], function parse () {}
- key.forEach((k) => {
- temp[k] = value
- })
- builder(temp)
- } else if (typeof key === 'object') {
- // an object of key value pairs: {'x': parse () {}, 'y': parse() {}}
- Object.keys(key).forEach((k) => {
- builder(k, key[k])
- })
- } else {
- key = sanitizeKey(key)
- // a single key value pair 'x', parse() {}
- if (isArray) {
- options[type][key] = (options[type][key] || []).concat(value)
- } else {
- options[type][key] = value
- }
- }
- }
-
- // TODO(bcoe): in future major versions move more objects towards
- // Object.create(null):
- function sanitizeKey (key) {
- if (key === '__proto__') return '___proto___'
- return key
- }
-
- function deleteFromParserHintObject (optionKey) {
- // delete from all parsing hints:
- // boolean, array, key, alias, etc.
- Object.keys(options).forEach((hintKey) => {
- const hint = options[hintKey]
- if (Array.isArray(hint)) {
- if (~hint.indexOf(optionKey)) hint.splice(hint.indexOf(optionKey), 1)
- } else if (typeof hint === 'object') {
- delete hint[optionKey]
- }
- })
- // now delete the description from usage.js.
- delete usage.getDescriptions()[optionKey]
- }
-
- self.config = function config (key, msg, parseFn) {
- argsert('[object|string] [string|function] [function]', [key, msg, parseFn], arguments.length)
- // allow a config object to be provided directly.
- if (typeof key === 'object') {
- key = applyExtends(key, cwd)
- options.configObjects = (options.configObjects || []).concat(key)
- return self
- }
-
- // allow for a custom parsing function.
- if (typeof msg === 'function') {
- parseFn = msg
- msg = null
- }
-
- key = key || 'config'
- self.describe(key, msg || usage.deferY18nLookup('Path to JSON config file'))
- ;(Array.isArray(key) ? key : [key]).forEach((k) => {
- options.config[k] = parseFn || true
- })
-
- return self
- }
-
- self.example = function (cmd, description) {
- argsert('<string> [string]', [cmd, description], arguments.length)
- usage.example(cmd, description)
- return self
- }
-
- self.command = function (cmd, description, builder, handler, middlewares) {
- argsert('<string|array|object> [string|boolean] [function|object] [function] [array]', [cmd, description, builder, handler, middlewares], arguments.length)
- command.addHandler(cmd, description, builder, handler, middlewares)
- return self
- }
-
- self.commandDir = function (dir, opts) {
- argsert('<string> [object]', [dir, opts], arguments.length)
- const req = parentRequire || require
- command.addDirectory(dir, self.getContext(), req, require('get-caller-file')(), opts)
- return self
- }
-
- // TODO: deprecate self.demand in favor of
- // .demandCommand() .demandOption().
- self.demand = self.required = self.require = function demand (keys, max, msg) {
- // you can optionally provide a 'max' key,
- // which will raise an exception if too many '_'
- // options are provided.
- if (Array.isArray(max)) {
- max.forEach((key) => {
- self.demandOption(key, msg)
- })
- max = Infinity
- } else if (typeof max !== 'number') {
- msg = max
- max = Infinity
- }
-
- if (typeof keys === 'number') {
- self.demandCommand(keys, max, msg, msg)
- } else if (Array.isArray(keys)) {
- keys.forEach((key) => {
- self.demandOption(key, msg)
- })
- } else {
- if (typeof msg === 'string') {
- self.demandOption(keys, msg)
- } else if (msg === true || typeof msg === 'undefined') {
- self.demandOption(keys)
- }
- }
-
- return self
- }
-
- self.demandCommand = function demandCommand (min, max, minMsg, maxMsg) {
- argsert('[number] [number|string] [string|null|undefined] [string|null|undefined]', [min, max, minMsg, maxMsg], arguments.length)
-
- if (typeof min === 'undefined') min = 1
-
- if (typeof max !== 'number') {
- minMsg = max
- max = Infinity
- }
-
- self.global('_', false)
-
- options.demandedCommands._ = {
- min,
- max,
- minMsg,
- maxMsg
- }
-
- return self
- }
-
- self.getDemandedOptions = () => {
- argsert([], 0)
- return options.demandedOptions
- }
-
- self.getDemandedCommands = () => {
- argsert([], 0)
- return options.demandedCommands
- }
-
- self.implies = function (key, value) {
- argsert('<string|object> [number|string|array]', [key, value], arguments.length)
- validation.implies(key, value)
- return self
- }
-
- self.conflicts = function (key1, key2) {
- argsert('<string|object> [string|array]', [key1, key2], arguments.length)
- validation.conflicts(key1, key2)
- return self
- }
-
- self.usage = function (msg, description, builder, handler) {
- argsert('<string|null|undefined> [string|boolean] [function|object] [function]', [msg, description, builder, handler], arguments.length)
-
- if (description !== undefined) {
- // .usage() can be used as an alias for defining
- // a default command.
- if ((msg || '').match(/^\$0( |$)/)) {
- return self.command(msg, description, builder, handler)
- } else {
- throw new YError('.usage() description must start with $0 if being used as alias for .command()')
- }
- } else {
- usage.usage(msg)
- return self
- }
- }
-
- self.epilogue = self.epilog = function (msg) {
- argsert('<string>', [msg], arguments.length)
- usage.epilog(msg)
- return self
- }
-
- self.fail = function (f) {
- argsert('<function>', [f], arguments.length)
- usage.failFn(f)
- return self
- }
-
- self.check = function (f, _global) {
- argsert('<function> [boolean]', [f, _global], arguments.length)
- validation.check(f, _global !== false)
- return self
- }
-
- self.global = function global (globals, global) {
- argsert('<string|array> [boolean]', [globals, global], arguments.length)
- globals = [].concat(globals)
- if (global !== false) {
- options.local = options.local.filter(l => globals.indexOf(l) === -1)
- } else {
- globals.forEach((g) => {
- if (options.local.indexOf(g) === -1) options.local.push(g)
- })
- }
- return self
- }
-
- self.pkgConf = function pkgConf (key, rootPath) {
- argsert('<string> [string]', [key, rootPath], arguments.length)
- let conf = null
- // prefer cwd to require-main-filename in this method
- // since we're looking for e.g. "nyc" config in nyc consumer
- // rather than "yargs" config in nyc (where nyc is the main filename)
- const obj = pkgUp(rootPath || cwd)
-
- // If an object exists in the key, add it to options.configObjects
- if (obj[key] && typeof obj[key] === 'object') {
- conf = applyExtends(obj[key], rootPath || cwd)
- options.configObjects = (options.configObjects || []).concat(conf)
- }
-
- return self
- }
-
- const pkgs = {}
- function pkgUp (rootPath) {
- const npath = rootPath || '*'
- if (pkgs[npath]) return pkgs[npath]
- const findUp = require('find-up')
-
- let obj = {}
- try {
- let startDir = rootPath || require('require-main-filename')(parentRequire || require)
-
- // When called in an environment that lacks require.main.filename, such as a jest test runner,
- // startDir is already process.cwd(), and should not be shortened.
- // Whether or not it is _actually_ a directory (e.g., extensionless bin) is irrelevant, find-up handles it.
- if (!rootPath && path.extname(startDir)) {
- startDir = path.dirname(startDir)
- }
-
- const pkgJsonPath = findUp.sync('package.json', {
- cwd: startDir
- })
- obj = JSON.parse(fs.readFileSync(pkgJsonPath))
- } catch (noop) {}
-
- pkgs[npath] = obj || {}
- return pkgs[npath]
- }
-
- let parseFn = null
- let parseContext = null
- self.parse = function parse (args, shortCircuit, _parseFn) {
- argsert('[string|array] [function|boolean|object] [function]', [args, shortCircuit, _parseFn], arguments.length)
- if (typeof args === 'undefined') {
- return self._parseArgs(processArgs)
- }
-
- // a context object can optionally be provided, this allows
- // additional information to be passed to a command handler.
- if (typeof shortCircuit === 'object') {
- parseContext = shortCircuit
- shortCircuit = _parseFn
- }
-
- // by providing a function as a second argument to
- // parse you can capture output that would otherwise
- // default to printing to stdout/stderr.
- if (typeof shortCircuit === 'function') {
- parseFn = shortCircuit
- shortCircuit = null
- }
- // completion short-circuits the parsing process,
- // skipping validation, etc.
- if (!shortCircuit) processArgs = args
-
- freeze()
- if (parseFn) exitProcess = false
-
- const parsed = self._parseArgs(args, shortCircuit)
- if (parseFn) parseFn(exitError, parsed, output)
- unfreeze()
-
- return parsed
- }
-
- self._getParseContext = () => parseContext || {}
-
- self._hasParseCallback = () => !!parseFn
-
- self.option = self.options = function option (key, opt) {
- argsert('<string|object> [object]', [key, opt], arguments.length)
- if (typeof key === 'object') {
- Object.keys(key).forEach((k) => {
- self.options(k, key[k])
- })
- } else {
- if (typeof opt !== 'object') {
- opt = {}
- }
-
- options.key[key] = true // track manually set keys.
-
- if (opt.alias) self.alias(key, opt.alias)
-
- const demand = opt.demand || opt.required || opt.require
-
- // deprecated, use 'demandOption' instead
- if (demand) {
- self.demand(key, demand)
- }
-
- if (opt.demandOption) {
- self.demandOption(key, typeof opt.demandOption === 'string' ? opt.demandOption : undefined)
- }
-
- if ('conflicts' in opt) {
- self.conflicts(key, opt.conflicts)
- }
-
- if ('default' in opt) {
- self.default(key, opt.default)
- }
-
- if ('implies' in opt) {
- self.implies(key, opt.implies)
- }
-
- if ('nargs' in opt) {
- self.nargs(key, opt.nargs)
- }
-
- if (opt.config) {
- self.config(key, opt.configParser)
- }
-
- if (opt.normalize) {
- self.normalize(key)
- }
-
- if ('choices' in opt) {
- self.choices(key, opt.choices)
- }
-
- if ('coerce' in opt) {
- self.coerce(key, opt.coerce)
- }
-
- if ('group' in opt) {
- self.group(key, opt.group)
- }
-
- if (opt.boolean || opt.type === 'boolean') {
- self.boolean(key)
- if (opt.alias) self.boolean(opt.alias)
- }
-
- if (opt.array || opt.type === 'array') {
- self.array(key)
- if (opt.alias) self.array(opt.alias)
- }
-
- if (opt.number || opt.type === 'number') {
- self.number(key)
- if (opt.alias) self.number(opt.alias)
- }
-
- if (opt.string || opt.type === 'string') {
- self.string(key)
- if (opt.alias) self.string(opt.alias)
- }
-
- if (opt.count || opt.type === 'count') {
- self.count(key)
- }
-
- if (typeof opt.global === 'boolean') {
- self.global(key, opt.global)
- }
-
- if (opt.defaultDescription) {
- options.defaultDescription[key] = opt.defaultDescription
- }
-
- if (opt.skipValidation) {
- self.skipValidation(key)
- }
-
- const desc = opt.describe || opt.description || opt.desc
- self.describe(key, desc)
- if (opt.hidden) {
- self.hide(key)
- }
-
- if (opt.requiresArg) {
- self.requiresArg(key)
- }
- }
-
- return self
- }
- self.getOptions = () => options
-
- self.positional = function (key, opts) {
- argsert('<string> <object>', [key, opts], arguments.length)
- if (context.resets === 0) {
- throw new YError(".positional() can only be called in a command's builder function")
- }
-
- // .positional() only supports a subset of the configuration
- // options available to .option().
- const supportedOpts = ['default', 'defaultDescription', 'implies', 'normalize',
- 'choices', 'conflicts', 'coerce', 'type', 'describe',
- 'desc', 'description', 'alias']
- opts = objFilter(opts, (k, v) => {
- let accept = supportedOpts.indexOf(k) !== -1
- // type can be one of string|number|boolean.
- if (k === 'type' && ['string', 'number', 'boolean'].indexOf(v) === -1) accept = false
- return accept
- })
-
- // copy over any settings that can be inferred from the command string.
- const fullCommand = context.fullCommands[context.fullCommands.length - 1]
- const parseOptions = fullCommand ? command.cmdToParseOptions(fullCommand) : {
- array: [],
- alias: {},
- default: {},
- demand: {}
- }
- Object.keys(parseOptions).forEach((pk) => {
- if (Array.isArray(parseOptions[pk])) {
- if (parseOptions[pk].indexOf(key) !== -1) opts[pk] = true
- } else {
- if (parseOptions[pk][key] && !(pk in opts)) opts[pk] = parseOptions[pk][key]
- }
- })
- self.group(key, usage.getPositionalGroupName())
- return self.option(key, opts)
- }
-
- self.group = function group (opts, groupName) {
- argsert('<string|array> <string>', [opts, groupName], arguments.length)
- const existing = preservedGroups[groupName] || groups[groupName]
- if (preservedGroups[groupName]) {
- // we now only need to track this group name in groups.
- delete preservedGroups[groupName]
- }
-
- const seen = {}
- groups[groupName] = (existing || []).concat(opts).filter((key) => {
- if (seen[key]) return false
- return (seen[key] = true)
- })
- return self
- }
- // combine explicit and preserved groups. explicit groups should be first
- self.getGroups = () => Object.assign({}, groups, preservedGroups)
-
- // as long as options.envPrefix is not undefined,
- // parser will apply env vars matching prefix to argv
- self.env = function (prefix) {
- argsert('[string|boolean]', [prefix], arguments.length)
- if (prefix === false) options.envPrefix = undefined
- else options.envPrefix = prefix || ''
- return self
- }
-
- self.wrap = function (cols) {
- argsert('<number|null|undefined>', [cols], arguments.length)
- usage.wrap(cols)
- return self
- }
-
- let strict = false
- self.strict = function (enabled) {
- argsert('[boolean]', [enabled], arguments.length)
- strict = enabled !== false
- return self
- }
- self.getStrict = () => strict
-
- let parserConfig = {}
- self.parserConfiguration = function parserConfiguration (config) {
- argsert('<object>', [config], arguments.length)
- parserConfig = config
- return self
- }
- self.getParserConfiguration = () => parserConfig
-
- self.showHelp = function (level) {
- argsert('[string|function]', [level], arguments.length)
- if (!self.parsed) self._parseArgs(processArgs) // run parser, if it has not already been executed.
- if (command.hasDefaultCommand()) {
- context.resets++ // override the restriction on top-level positoinals.
- command.runDefaultBuilderOn(self, true)
- }
- usage.showHelp(level)
- return self
- }
-
- let versionOpt = null
- self.version = function version (opt, msg, ver) {
- const defaultVersionOpt = 'version'
- argsert('[boolean|string] [string] [string]', [opt, msg, ver], arguments.length)
-
- // nuke the key previously configured
- // to return version #.
- if (versionOpt) {
- deleteFromParserHintObject(versionOpt)
- usage.version(undefined)
- versionOpt = null
- }
-
- if (arguments.length === 0) {
- ver = guessVersion()
- opt = defaultVersionOpt
- } else if (arguments.length === 1) {
- if (opt === false) { // disable default 'version' key.
- return self
- }
- ver = opt
- opt = defaultVersionOpt
- } else if (arguments.length === 2) {
- ver = msg
- msg = null
- }
-
- versionOpt = typeof opt === 'string' ? opt : defaultVersionOpt
- msg = msg || usage.deferY18nLookup('Show version number')
-
- usage.version(ver || undefined)
- self.boolean(versionOpt)
- self.describe(versionOpt, msg)
- return self
- }
-
- function guessVersion () {
- const obj = pkgUp()
-
- return obj.version || 'unknown'
- }
-
- let helpOpt = null
- self.addHelpOpt = self.help = function addHelpOpt (opt, msg) {
- const defaultHelpOpt = 'help'
- argsert('[string|boolean] [string]', [opt, msg], arguments.length)
-
- // nuke the key previously configured
- // to return help.
- if (helpOpt) {
- deleteFromParserHintObject(helpOpt)
- helpOpt = null
- }
-
- if (arguments.length === 1) {
- if (opt === false) return self
- }
-
- // use arguments, fallback to defaults for opt and msg
- helpOpt = typeof opt === 'string' ? opt : defaultHelpOpt
- self.boolean(helpOpt)
- self.describe(helpOpt, msg || usage.deferY18nLookup('Show help'))
- return self
- }
-
- const defaultShowHiddenOpt = 'show-hidden'
- options.showHiddenOpt = defaultShowHiddenOpt
- self.addShowHiddenOpt = self.showHidden = function addShowHiddenOpt (opt, msg) {
- argsert('[string|boolean] [string]', [opt, msg], arguments.length)
-
- if (arguments.length === 1) {
- if (opt === false) return self
- }
-
- const showHiddenOpt = typeof opt === 'string' ? opt : defaultShowHiddenOpt
- self.boolean(showHiddenOpt)
- self.describe(showHiddenOpt, msg || usage.deferY18nLookup('Show hidden options'))
- options.showHiddenOpt = showHiddenOpt
- return self
- }
-
- self.hide = function hide (key) {
- argsert('<string|object>', [key], arguments.length)
- options.hiddenOptions.push(key)
- return self
- }
-
- self.showHelpOnFail = function showHelpOnFail (enabled, message) {
- argsert('[boolean|string] [string]', [enabled, message], arguments.length)
- usage.showHelpOnFail(enabled, message)
- return self
- }
-
- var exitProcess = true
- self.exitProcess = function (enabled) {
- argsert('[boolean]', [enabled], arguments.length)
- if (typeof enabled !== 'boolean') {
- enabled = true
- }
- exitProcess = enabled
- return self
- }
- self.getExitProcess = () => exitProcess
-
- var completionCommand = null
- self.completion = function (cmd, desc, fn) {
- argsert('[string] [string|boolean|function] [function]', [cmd, desc, fn], arguments.length)
-
- // a function to execute when generating
- // completions can be provided as the second
- // or third argument to completion.
- if (typeof desc === 'function') {
- fn = desc
- desc = null
- }
-
- // register the completion command.
- completionCommand = cmd || 'completion'
- if (!desc && desc !== false) {
- desc = 'generate completion script'
- }
- self.command(completionCommand, desc)
-
- // a function can be provided
- if (fn) completion.registerFunction(fn)
-
- return self
- }
-
- self.showCompletionScript = function ($0) {
- argsert('[string]', [$0], arguments.length)
- $0 = $0 || self.$0
- _logger.log(completion.generateCompletionScript($0, completionCommand))
- return self
- }
-
- self.getCompletion = function (args, done) {
- argsert('<array> <function>', [args, done], arguments.length)
- completion.getCompletion(args, done)
- }
-
- self.locale = function (locale) {
- argsert('[string]', [locale], arguments.length)
- if (arguments.length === 0) {
- guessLocale()
- return y18n.getLocale()
- }
- detectLocale = false
- y18n.setLocale(locale)
- return self
- }
-
- self.updateStrings = self.updateLocale = function (obj) {
- argsert('<object>', [obj], arguments.length)
- detectLocale = false
- y18n.updateLocale(obj)
- return self
- }
-
- let detectLocale = true
- self.detectLocale = function (detect) {
- argsert('<boolean>', [detect], arguments.length)
- detectLocale = detect
- return self
- }
- self.getDetectLocale = () => detectLocale
-
- var hasOutput = false
- var exitError = null
- // maybe exit, always capture
- // context about why we wanted to exit.
- self.exit = (code, err) => {
- hasOutput = true
- exitError = err
- if (exitProcess) process.exit(code)
- }
-
- // we use a custom logger that buffers output,
- // so that we can print to non-CLIs, e.g., chat-bots.
- const _logger = {
- log () {
- const args = []
- for (let i = 0; i < arguments.length; i++) args.push(arguments[i])
- if (!self._hasParseCallback()) console.log.apply(console, args)
- hasOutput = true
- if (output.length) output += '\n'
- output += args.join(' ')
- },
- error () {
- const args = []
- for (let i = 0; i < arguments.length; i++) args.push(arguments[i])
- if (!self._hasParseCallback()) console.error.apply(console, args)
- hasOutput = true
- if (output.length) output += '\n'
- output += args.join(' ')
- }
- }
- self._getLoggerInstance = () => _logger
- // has yargs output an error our help
- // message in the current execution context.
- self._hasOutput = () => hasOutput
-
- self._setHasOutput = () => {
- hasOutput = true
- }
-
- let recommendCommands
- self.recommendCommands = function (recommend) {
- argsert('[boolean]', [recommend], arguments.length)
- recommendCommands = typeof recommend === 'boolean' ? recommend : true
- return self
- }
-
- self.getUsageInstance = () => usage
-
- self.getValidationInstance = () => validation
-
- self.getCommandInstance = () => command
-
- self.terminalWidth = () => {
- argsert([], 0)
- return typeof process.stdout.columns !== 'undefined' ? process.stdout.columns : null
- }
-
- Object.defineProperty(self, 'argv', {
- get: () => self._parseArgs(processArgs),
- enumerable: true
- })
-
- self._parseArgs = function parseArgs (args, shortCircuit, _skipValidation, commandIndex) {
- let skipValidation = !!_skipValidation
- args = args || processArgs
-
- options.__ = y18n.__
- options.configuration = self.getParserConfiguration()
-
- // Deprecated
- let pkgConfig = pkgUp()['yargs']
- if (pkgConfig) {
- console.warn('Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.')
- options.configuration = Object.assign({}, pkgConfig, options.configuration)
- }
-
- const parsed = Parser.detailed(args, options)
- let argv = parsed.argv
- if (parseContext) argv = Object.assign({}, argv, parseContext)
- const aliases = parsed.aliases
-
- argv.$0 = self.$0
- self.parsed = parsed
-
- try {
- guessLocale() // guess locale lazily, so that it can be turned off in chain.
-
- // while building up the argv object, there
- // are two passes through the parser. If completion
- // is being performed short-circuit on the first pass.
- if (shortCircuit) {
- return argv
- }
-
- // if there's a handler associated with a
- // command defer processing to it.
- if (helpOpt) {
- // consider any multi-char helpOpt alias as a valid help command
- // unless all helpOpt aliases are single-char
- // note that parsed.aliases is a normalized bidirectional map :)
- const helpCmds = [helpOpt]
- .concat(aliases[helpOpt] || [])
- .filter(k => k.length > 1)
- // check if help should trigger and strip it from _.
- if (~helpCmds.indexOf(argv._[argv._.length - 1])) {
- argv._.pop()
- argv[helpOpt] = true
- }
- }
-
- const handlerKeys = command.getCommands()
- const requestCompletions = completion.completionKey in argv
- const skipRecommendation = argv[helpOpt] || requestCompletions
- const skipDefaultCommand = skipRecommendation && (handlerKeys.length > 1 || handlerKeys[0] !== '$0')
-
- if (argv._.length) {
- if (handlerKeys.length) {
- let firstUnknownCommand
- for (let i = (commandIndex || 0), cmd; argv._[i] !== undefined; i++) {
- cmd = String(argv._[i])
- if (~handlerKeys.indexOf(cmd) && cmd !== completionCommand) {
- // commands are executed using a recursive algorithm that executes
- // the deepest command first; we keep track of the position in the
- // argv._ array that is currently being executed.
- return command.runCommand(cmd, self, parsed, i + 1)
- } else if (!firstUnknownCommand && cmd !== completionCommand) {
- firstUnknownCommand = cmd
- break
- }
- }
-
- // run the default command, if defined
- if (command.hasDefaultCommand() && !skipDefaultCommand) {
- return command.runCommand(null, self, parsed)
- }
-
- // recommend a command if recommendCommands() has
- // been enabled, and no commands were found to execute
- if (recommendCommands && firstUnknownCommand && !skipRecommendation) {
- validation.recommendCommands(firstUnknownCommand, handlerKeys)
- }
- }
-
- // generate a completion script for adding to ~/.bashrc.
- if (completionCommand && ~argv._.indexOf(completionCommand) && !requestCompletions) {
- if (exitProcess) setBlocking(true)
- self.showCompletionScript()
- self.exit(0)
- }
- } else if (command.hasDefaultCommand() && !skipDefaultCommand) {
- return command.runCommand(null, self, parsed)
- }
-
- // we must run completions first, a user might
- // want to complete the --help or --version option.
- if (requestCompletions) {
- if (exitProcess) setBlocking(true)
-
- // we allow for asynchronous completions,
- // e.g., loading in a list of commands from an API.
- const completionArgs = args.slice(args.indexOf(`--${completion.completionKey}`) + 1)
- completion.getCompletion(completionArgs, (completions) => {
- ;(completions || []).forEach((completion) => {
- _logger.log(completion)
- })
-
- self.exit(0)
- })
- return argv
- }
-
- // Handle 'help' and 'version' options
- // if we haven't already output help!
- if (!hasOutput) {
- Object.keys(argv).forEach((key) => {
- if (key === helpOpt && argv[key]) {
- if (exitProcess) setBlocking(true)
-
- skipValidation = true
- self.showHelp('log')
- self.exit(0)
- } else if (key === versionOpt && argv[key]) {
- if (exitProcess) setBlocking(true)
-
- skipValidation = true
- usage.showVersion()
- self.exit(0)
- }
- })
- }
-
- // Check if any of the options to skip validation were provided
- if (!skipValidation && options.skipValidation.length > 0) {
- skipValidation = Object.keys(argv).some(key => options.skipValidation.indexOf(key) >= 0 && argv[key] === true)
- }
-
- // If the help or version options where used and exitProcess is false,
- // or if explicitly skipped, we won't run validations.
- if (!skipValidation) {
- if (parsed.error) throw new YError(parsed.error.message)
-
- // if we're executed via bash completion, don't
- // bother with validation.
- if (!requestCompletions) {
- self._runValidation(argv, aliases, {}, parsed.error)
- }
- }
- } catch (err) {
- if (err instanceof YError) usage.fail(err.message, err)
- else throw err
- }
-
- return argv
- }
-
- self._runValidation = function runValidation (argv, aliases, positionalMap, parseErrors) {
- if (parseErrors) throw new YError(parseErrors.message || parseErrors)
- validation.nonOptionCount(argv)
- validation.requiredArguments(argv)
- if (strict) validation.unknownArguments(argv, aliases, positionalMap)
- validation.customChecks(argv, aliases)
- validation.limitedChoices(argv)
- validation.implications(argv)
- validation.conflicting(argv)
- }
-
- function guessLocale () {
- if (!detectLocale) return
-
- try {
- const { env } = process
- const locale = env.LC_ALL || env.LC_MESSAGES || env.LANG || env.LANGUAGE || 'en_US'
- self.locale(locale.replace(/[.:].*/, ''))
- } catch (err) {
- // if we explode looking up locale just noop
- // we'll keep using the default language 'en'.
- }
- }
-
- // an app should almost always have --version and --help,
- // if you *really* want to disable this use .help(false)/.version(false).
- self.help()
- self.version()
-
- return self
-}
-
-// rebase an absolute path to a relative one with respect to a base directory
-// exported for tests
-exports.rebase = rebase
-function rebase (base, dir) {
- return path.relative(base, dir)
-}
diff --git a/package-lock.json b/package-lock.json
index 6e46c51..f1b08f4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,1410 +10,10 @@
"integrity": "sha512-E4fDUF4fbu9AxKpaQQqCN3XBnNzb/5e0Gvd9OaQsYkK574LVI57v/EqqPfIm/mC7jYbxaPNrhvT5AF+Yzwyizg==",
"dev": true
},
- "abbrev": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
- },
- "ajv": {
- "version": "6.12.2",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.2.tgz",
- "integrity": "sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==",
- "requires": {
- "fast-deep-equal": "^3.1.1",
- "fast-json-stable-stringify": "^2.0.0",
- "json-schema-traverse": "^0.4.1",
- "uri-js": "^4.2.2"
- }
- },
- "amdefine": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
- "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU="
- },
- "ansi-regex": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8="
- },
- "ansi-styles": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
- "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4="
- },
- "aproba": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
- "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw=="
- },
- "are-we-there-yet": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
- "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
- "requires": {
- "delegates": "^1.0.0",
- "readable-stream": "^2.0.6"
- }
- },
- "array-find-index": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
- "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E="
- },
- "asn1": {
- "version": "0.2.4",
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz",
- "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==",
- "requires": {
- "safer-buffer": "~2.1.0"
- }
- },
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
- },
- "async-foreach": {
- "version": "0.1.3",
- "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz",
- "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI="
- },
- "asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="
- },
- "aws-sign2": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
- "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg="
- },
- "aws4": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz",
- "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA=="
- },
- "balanced-match": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
- "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
- },
- "bcrypt-pbkdf": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz",
- "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=",
- "requires": {
- "tweetnacl": "^0.14.3"
- }
- },
- "block-stream": {
- "version": "0.0.9",
- "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
- "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
- "requires": {
- "inherits": "~2.0.0"
- }
- },
"bootstrap": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.3.1.tgz",
"integrity": "sha512-rXqOmH1VilAt2DyPzluTi2blhk17bO7ef+zLLPlWvG494pDxcM234pJ8wTc/6R40UWizAIIMgxjvxZg5kmsbag=="
- },
- "brace-expansion": {
- "version": "1.1.11",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
- "requires": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
- }
- },
- "camelcase": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
- "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8="
- },
- "camelcase-keys": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
- "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
- "requires": {
- "camelcase": "^2.0.0",
- "map-obj": "^1.0.0"
- }
- },
- "caseless": {
- "version": "0.12.0",
- "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
- "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw="
- },
- "chalk": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
- "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
- "requires": {
- "ansi-styles": "^2.2.1",
- "escape-string-regexp": "^1.0.2",
- "has-ansi": "^2.0.0",
- "strip-ansi": "^3.0.0",
- "supports-color": "^2.0.0"
- }
- },
- "cliui": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
- "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
- "requires": {
- "string-width": "^3.1.0",
- "strip-ansi": "^5.2.0",
- "wrap-ansi": "^5.1.0"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg=="
- },
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
- },
- "string-width": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "requires": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- }
- },
- "strip-ansi": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "requires": {
- "ansi-regex": "^4.1.0"
- }
- }
- }
- },
- "code-point-at": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
- "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
- },
- "color-convert": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
- "requires": {
- "color-name": "1.1.3"
- }
- },
- "color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
- },
- "combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "requires": {
- "delayed-stream": "~1.0.0"
- }
- },
- "concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
- },
- "console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
- },
- "core-util-is": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
- "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
- },
- "cross-spawn": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz",
- "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=",
- "requires": {
- "lru-cache": "^4.0.1",
- "which": "^1.2.9"
- }
- },
- "currently-unhandled": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
- "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=",
- "requires": {
- "array-find-index": "^1.0.1"
- }
- },
- "dashdash": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
- "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
- "requires": {
- "assert-plus": "^1.0.0"
- }
- },
- "decamelize": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
- "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
- },
- "delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
- },
- "delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o="
- },
- "ecc-jsbn": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
- "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=",
- "requires": {
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.1.0"
- }
- },
- "emoji-regex": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
- "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA=="
- },
- "error-ex": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
- "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
- "requires": {
- "is-arrayish": "^0.2.1"
- }
- },
- "escape-string-regexp": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
- },
- "extend": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
- "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
- },
- "extsprintf": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
- "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU="
- },
- "fast-deep-equal": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz",
- "integrity": "sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA=="
- },
- "fast-json-stable-stringify": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="
- },
- "find-up": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
- "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
- "requires": {
- "path-exists": "^2.0.0",
- "pinkie-promise": "^2.0.0"
- }
- },
- "forever-agent": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
- "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE="
- },
- "form-data": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
- "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
- "requires": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.6",
- "mime-types": "^2.1.12"
- }
- },
- "fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
- },
- "fstream": {
- "version": "1.0.12",
- "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz",
- "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",
- "requires": {
- "graceful-fs": "^4.1.2",
- "inherits": "~2.0.0",
- "mkdirp": ">=0.5 0",
- "rimraf": "2"
- }
- },
- "gauge": {
- "version": "2.7.4",
- "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
- "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
- "requires": {
- "aproba": "^1.0.3",
- "console-control-strings": "^1.0.0",
- "has-unicode": "^2.0.0",
- "object-assign": "^4.1.0",
- "signal-exit": "^3.0.0",
- "string-width": "^1.0.1",
- "strip-ansi": "^3.0.1",
- "wide-align": "^1.1.0"
- }
- },
- "gaze": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz",
- "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==",
- "requires": {
- "globule": "^1.0.0"
- }
- },
- "get-caller-file": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
- },
- "get-stdin": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
- "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4="
- },
- "getpass": {
- "version": "0.1.7",
- "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
- "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
- "requires": {
- "assert-plus": "^1.0.0"
- }
- },
- "glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "requires": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- }
- },
- "globule": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/globule/-/globule-1.3.1.tgz",
- "integrity": "sha512-OVyWOHgw29yosRHCHo7NncwR1hW5ew0W/UrvtwvjefVJeQ26q4/8r8FmPsSF1hJ93IgWkyv16pCTz6WblMzm/g==",
- "requires": {
- "glob": "~7.1.1",
- "lodash": "~4.17.12",
- "minimatch": "~3.0.2"
- }
- },
- "graceful-fs": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz",
- "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw=="
- },
- "har-schema": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
- "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI="
- },
- "har-validator": {
- "version": "5.1.3",
- "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz",
- "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==",
- "requires": {
- "ajv": "^6.5.5",
- "har-schema": "^2.0.0"
- }
- },
- "has-ansi": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
- "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
- "requires": {
- "ansi-regex": "^2.0.0"
- }
- },
- "has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
- },
- "hosted-git-info": {
- "version": "2.8.8",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
- "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg=="
- },
- "http-signature": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
- "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
- "requires": {
- "assert-plus": "^1.0.0",
- "jsprim": "^1.2.2",
- "sshpk": "^1.7.0"
- }
- },
- "in-publish": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.1.tgz",
- "integrity": "sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ=="
- },
- "indent-string": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
- "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=",
- "requires": {
- "repeating": "^2.0.0"
- }
- },
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "requires": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
- },
- "is-arrayish": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
- "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0="
- },
- "is-finite": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz",
- "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w=="
- },
- "is-fullwidth-code-point": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
- "requires": {
- "number-is-nan": "^1.0.0"
- }
- },
- "is-typedarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
- },
- "is-utf8": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
- "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI="
- },
- "isarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
- },
- "isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
- },
- "isstream": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
- "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
- },
- "js-base64": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.2.tgz",
- "integrity": "sha512-Vg8czh0Q7sFBSUMWWArX/miJeBWYBPpdU/3M/DKSaekLMqrqVPaedp+5mZhie/r0lgrcaYBfwXatEew6gwgiQQ=="
- },
- "jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
- "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
- },
- "json-schema": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
- "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
- },
- "json-schema-traverse": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="
- },
- "json-stringify-safe": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
- },
- "jsprim": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
- "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
- "requires": {
- "assert-plus": "1.0.0",
- "extsprintf": "1.3.0",
- "json-schema": "0.2.3",
- "verror": "1.10.0"
- }
- },
- "load-json-file": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
- "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
- "requires": {
- "graceful-fs": "^4.1.2",
- "parse-json": "^2.2.0",
- "pify": "^2.0.0",
- "pinkie-promise": "^2.0.0",
- "strip-bom": "^2.0.0"
- }
- },
- "locate-path": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
- "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
- "requires": {
- "p-locate": "^3.0.0",
- "path-exists": "^3.0.0"
- },
- "dependencies": {
- "path-exists": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
- "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU="
- }
- }
- },
- "lodash": {
- "version": "4.17.15",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
- "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
- },
- "loud-rejection": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
- "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=",
- "requires": {
- "currently-unhandled": "^0.4.1",
- "signal-exit": "^3.0.0"
- }
- },
- "lru-cache": {
- "version": "4.1.5",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
- "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
- "requires": {
- "pseudomap": "^1.0.2",
- "yallist": "^2.1.2"
- }
- },
- "map-obj": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
- "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0="
- },
- "meow": {
- "version": "3.7.0",
- "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
- "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
- "requires": {
- "camelcase-keys": "^2.0.0",
- "decamelize": "^1.1.2",
- "loud-rejection": "^1.0.0",
- "map-obj": "^1.0.1",
- "minimist": "^1.1.3",
- "normalize-package-data": "^2.3.4",
- "object-assign": "^4.0.1",
- "read-pkg-up": "^1.0.1",
- "redent": "^1.0.0",
- "trim-newlines": "^1.0.0"
- }
- },
- "mime-db": {
- "version": "1.44.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
- "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg=="
- },
- "mime-types": {
- "version": "2.1.27",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",
- "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",
- "requires": {
- "mime-db": "1.44.0"
- }
- },
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "requires": {
- "brace-expansion": "^1.1.7"
- }
- },
- "minimist": {
- "version": "1.2.5",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
- "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
- },
- "mkdirp": {
- "version": "0.5.5",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz",
- "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==",
- "requires": {
- "minimist": "^1.2.5"
- }
- },
- "nan": {
- "version": "2.14.1",
- "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz",
- "integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw=="
- },
- "node-gyp": {
- "version": "3.8.0",
- "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz",
- "integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==",
- "requires": {
- "fstream": "^1.0.0",
- "glob": "^7.0.3",
- "graceful-fs": "^4.1.2",
- "mkdirp": "^0.5.0",
- "nopt": "2 || 3",
- "npmlog": "0 || 1 || 2 || 3 || 4",
- "osenv": "0",
- "request": "^2.87.0",
- "rimraf": "2",
- "semver": "~5.3.0",
- "tar": "^2.0.0",
- "which": "1"
- },
- "dependencies": {
- "semver": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
- "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8="
- }
- }
- },
- "node-sass": {
- "version": "4.14.1",
- "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz",
- "integrity": "sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g==",
- "requires": {
- "async-foreach": "^0.1.3",
- "chalk": "^1.1.1",
- "cross-spawn": "^3.0.0",
- "gaze": "^1.0.0",
- "get-stdin": "^4.0.1",
- "glob": "^7.0.3",
- "in-publish": "^2.0.0",
- "lodash": "^4.17.15",
- "meow": "^3.7.0",
- "mkdirp": "^0.5.1",
- "nan": "^2.13.2",
- "node-gyp": "^3.8.0",
- "npmlog": "^4.0.0",
- "request": "^2.88.0",
- "sass-graph": "2.2.5",
- "stdout-stream": "^1.4.0",
- "true-case-path": "^1.0.2"
- }
- },
- "nopt": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
- "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
- "requires": {
- "abbrev": "1"
- }
- },
- "normalize-package-data": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
- "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
- "requires": {
- "hosted-git-info": "^2.1.4",
- "resolve": "^1.10.0",
- "semver": "2 || 3 || 4 || 5",
- "validate-npm-package-license": "^3.0.1"
- }
- },
- "npmlog": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
- "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
- "requires": {
- "are-we-there-yet": "~1.1.2",
- "console-control-strings": "~1.1.0",
- "gauge": "~2.7.3",
- "set-blocking": "~2.0.0"
- }
- },
- "number-is-nan": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
- "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0="
- },
- "oauth-sign": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz",
- "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
- },
- "object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "requires": {
- "wrappy": "1"
- }
- },
- "os-homedir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
- "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M="
- },
- "os-tmpdir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
- },
- "osenv": {
- "version": "0.1.5",
- "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
- "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==",
- "requires": {
- "os-homedir": "^1.0.0",
- "os-tmpdir": "^1.0.0"
- }
- },
- "p-limit": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
- "requires": {
- "p-try": "^2.0.0"
- }
- },
- "p-locate": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
- "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
- "requires": {
- "p-limit": "^2.0.0"
- }
- },
- "p-try": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="
- },
- "parse-json": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
- "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
- "requires": {
- "error-ex": "^1.2.0"
- }
- },
- "path-exists": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
- "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
- "requires": {
- "pinkie-promise": "^2.0.0"
- }
- },
- "path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
- },
- "path-parse": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
- "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw=="
- },
- "path-type": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
- "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
- "requires": {
- "graceful-fs": "^4.1.2",
- "pify": "^2.0.0",
- "pinkie-promise": "^2.0.0"
- }
- },
- "performance-now": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
- "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
- },
- "pify": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
- "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="
- },
- "pinkie": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
- "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA="
- },
- "pinkie-promise": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
- "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
- "requires": {
- "pinkie": "^2.0.0"
- }
- },
- "process-nextick-args": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
- "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
- },
- "pseudomap": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
- "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM="
- },
- "psl": {
- "version": "1.8.0",
- "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
- "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ=="
- },
- "punycode": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
- "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
- },
- "qs": {
- "version": "6.5.2",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
- "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
- },
- "read-pkg": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
- "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
- "requires": {
- "load-json-file": "^1.0.0",
- "normalize-package-data": "^2.3.2",
- "path-type": "^1.0.0"
- }
- },
- "read-pkg-up": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
- "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
- "requires": {
- "find-up": "^1.0.0",
- "read-pkg": "^1.0.0"
- }
- },
- "readable-stream": {
- "version": "2.3.7",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz",
- "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==",
- "requires": {
- "core-util-is": "~1.0.0",
- "inherits": "~2.0.3",
- "isarray": "~1.0.0",
- "process-nextick-args": "~2.0.0",
- "safe-buffer": "~5.1.1",
- "string_decoder": "~1.1.1",
- "util-deprecate": "~1.0.1"
- }
- },
- "redent": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
- "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=",
- "requires": {
- "indent-string": "^2.1.0",
- "strip-indent": "^1.0.1"
- }
- },
- "repeating": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
- "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=",
- "requires": {
- "is-finite": "^1.0.0"
- }
- },
- "request": {
- "version": "2.88.2",
- "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
- "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==",
- "requires": {
- "aws-sign2": "~0.7.0",
- "aws4": "^1.8.0",
- "caseless": "~0.12.0",
- "combined-stream": "~1.0.6",
- "extend": "~3.0.2",
- "forever-agent": "~0.6.1",
- "form-data": "~2.3.2",
- "har-validator": "~5.1.3",
- "http-signature": "~1.2.0",
- "is-typedarray": "~1.0.0",
- "isstream": "~0.1.2",
- "json-stringify-safe": "~5.0.1",
- "mime-types": "~2.1.19",
- "oauth-sign": "~0.9.0",
- "performance-now": "^2.1.0",
- "qs": "~6.5.2",
- "safe-buffer": "^5.1.2",
- "tough-cookie": "~2.5.0",
- "tunnel-agent": "^0.6.0",
- "uuid": "^3.3.2"
- }
- },
- "require-directory": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
- "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
- },
- "require-main-filename": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
- "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="
- },
- "resolve": {
- "version": "1.17.0",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz",
- "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==",
- "requires": {
- "path-parse": "^1.0.6"
- }
- },
- "rimraf": {
- "version": "2.7.1",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
- "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
- "requires": {
- "glob": "^7.1.3"
- }
- },
- "safe-buffer": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
- },
- "safer-buffer": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
- },
- "sass-graph": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.5.tgz",
- "integrity": "sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag==",
- "requires": {
- "glob": "^7.0.0",
- "lodash": "^4.0.0",
- "scss-tokenizer": "^0.2.3",
- "yargs": "^13.3.2"
- }
- },
- "scss-tokenizer": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz",
- "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=",
- "requires": {
- "js-base64": "^2.1.8",
- "source-map": "^0.4.2"
- }
- },
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
- },
- "set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
- },
- "signal-exit": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
- "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA=="
- },
- "source-map": {
- "version": "0.4.4",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz",
- "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=",
- "requires": {
- "amdefine": ">=0.0.4"
- }
- },
- "spdx-correct": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz",
- "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==",
- "requires": {
- "spdx-expression-parse": "^3.0.0",
- "spdx-license-ids": "^3.0.0"
- }
- },
- "spdx-exceptions": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz",
- "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A=="
- },
- "spdx-expression-parse": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
- "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
- "requires": {
- "spdx-exceptions": "^2.1.0",
- "spdx-license-ids": "^3.0.0"
- }
- },
- "spdx-license-ids": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
- "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q=="
- },
- "sshpk": {
- "version": "1.16.1",
- "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz",
- "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==",
- "requires": {
- "asn1": "~0.2.3",
- "assert-plus": "^1.0.0",
- "bcrypt-pbkdf": "^1.0.0",
- "dashdash": "^1.12.0",
- "ecc-jsbn": "~0.1.1",
- "getpass": "^0.1.1",
- "jsbn": "~0.1.0",
- "safer-buffer": "^2.0.2",
- "tweetnacl": "~0.14.0"
- }
- },
- "stdout-stream": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz",
- "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==",
- "requires": {
- "readable-stream": "^2.0.1"
- }
- },
- "string-width": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
- "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
- "requires": {
- "code-point-at": "^1.0.0",
- "is-fullwidth-code-point": "^1.0.0",
- "strip-ansi": "^3.0.0"
- }
- },
- "string_decoder": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
- "requires": {
- "safe-buffer": "~5.1.0"
- }
- },
- "strip-ansi": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
- "requires": {
- "ansi-regex": "^2.0.0"
- }
- },
- "strip-bom": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
- "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
- "requires": {
- "is-utf8": "^0.2.0"
- }
- },
- "strip-indent": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
- "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=",
- "requires": {
- "get-stdin": "^4.0.1"
- }
- },
- "supports-color": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
- "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc="
- },
- "tar": {
- "version": "2.2.2",
- "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz",
- "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",
- "requires": {
- "block-stream": "*",
- "fstream": "^1.0.12",
- "inherits": "2"
- }
- },
- "tough-cookie": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
- "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
- "requires": {
- "psl": "^1.1.28",
- "punycode": "^2.1.1"
- }
- },
- "trim-newlines": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
- "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM="
- },
- "true-case-path": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz",
- "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==",
- "requires": {
- "glob": "^7.1.2"
- }
- },
- "tunnel-agent": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
- "requires": {
- "safe-buffer": "^5.0.1"
- }
- },
- "tweetnacl": {
- "version": "0.14.5",
- "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q="
- },
- "uri-js": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz",
- "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==",
- "requires": {
- "punycode": "^2.1.0"
- }
- },
- "util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
- },
- "uuid": {
- "version": "3.4.0",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
- "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
- },
- "validate-npm-package-license": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
- "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
- "requires": {
- "spdx-correct": "^3.0.0",
- "spdx-expression-parse": "^3.0.0"
- }
- },
- "verror": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
- "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
- "requires": {
- "assert-plus": "^1.0.0",
- "core-util-is": "1.0.2",
- "extsprintf": "^1.2.0"
- }
- },
- "which": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
- "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
- "requires": {
- "isexe": "^2.0.0"
- }
- },
- "which-module": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
- "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
- },
- "wide-align": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
- "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
- "requires": {
- "string-width": "^1.0.2 || 2"
- }
- },
- "wrap-ansi": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
- "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==",
- "requires": {
- "ansi-styles": "^3.2.0",
- "string-width": "^3.0.0",
- "strip-ansi": "^5.0.0"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg=="
- },
- "ansi-styles": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
- "requires": {
- "color-convert": "^1.9.0"
- }
- },
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
- },
- "string-width": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "requires": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- }
- },
- "strip-ansi": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "requires": {
- "ansi-regex": "^4.1.0"
- }
- }
- }
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
- },
- "y18n": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
- "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w=="
- },
- "yallist": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
- "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI="
- },
- "yargs": {
- "version": "13.3.2",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz",
- "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==",
- "requires": {
- "cliui": "^5.0.0",
- "find-up": "^3.0.0",
- "get-caller-file": "^2.0.1",
- "require-directory": "^2.1.1",
- "require-main-filename": "^2.0.0",
- "set-blocking": "^2.0.0",
- "string-width": "^3.0.0",
- "which-module": "^2.0.0",
- "y18n": "^4.0.0",
- "yargs-parser": "^13.1.2"
- },
- "dependencies": {
- "ansi-regex": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
- "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg=="
- },
- "find-up": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
- "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
- "requires": {
- "locate-path": "^3.0.0"
- }
- },
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
- },
- "string-width": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
- "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
- "requires": {
- "emoji-regex": "^7.0.1",
- "is-fullwidth-code-point": "^2.0.0",
- "strip-ansi": "^5.1.0"
- }
- },
- "strip-ansi": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
- "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
- "requires": {
- "ansi-regex": "^4.1.0"
- }
- }
- }
- },
- "yargs-parser": {
- "version": "13.1.2",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz",
- "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==",
- "requires": {
- "camelcase": "^5.0.0",
- "decamelize": "^1.2.0"
- },
- "dependencies": {
- "camelcase": {
- "version": "5.3.1",
- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
- }
- }
}
}
}
diff --git a/package.json b/package.json
index ce8e7bd..e2d4442 100644
--- a/package.json
+++ b/package.json
@@ -4,13 +4,10 @@
"description": "devise hugo theme",
"main": "index.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
- "build": "node-sass --include-path node_modules static/css/custom.scss static/css/theme.css",
- "watch": "node-sass --watch --include-path node_modules static/css/custom.scss static/css/theme.css"
+ "test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
- "bootstrap": "^4.3.1",
- "node-sass": "^4.14.1"
+ "bootstrap": "^4.3.1"
},
"keywords": [
"hugo",
diff --git a/static/css/theme.css b/static/css/theme.css
deleted file mode 100644
index 14c4407..0000000
--- a/static/css/theme.css
+++ /dev/null
@@ -1,11398 +0,0 @@
-/*!
- * Bootstrap v4.3.1 (https://getbootstrap.com/)
- * Copyright 2011-2019 The Bootstrap Authors
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */
-:root {
- --blue: #007bff;
- --indigo: #6610f2;
- --purple: #6f42c1;
- --pink: #e83e8c;
- --red: #dc3545;
- --orange: #fd7e14;
- --yellow: #ffc107;
- --green: #28a745;
- --teal: #20c997;
- --cyan: #17a2b8;
- --white: #fff;
- --gray: #6c757d;
- --gray-dark: #343a40;
- --primary: #007bff;
- --secondary: #6c757d;
- --success: #28a745;
- --info: #17a2b8;
- --warning: #ffc107;
- --danger: #dc3545;
- --light: #f8f9fa;
- --dark: #343a40;
- --breakpoint-xs: 0;
- --breakpoint-sm: 576px;
- --breakpoint-md: 768px;
- --breakpoint-lg: 992px;
- --breakpoint-xl: 1200px;
- --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
- --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
-
-*,
-*::before,
-*::after {
- box-sizing: border-box; }
-
-html {
- font-family: sans-serif;
- line-height: 1.15;
- -webkit-text-size-adjust: 100%;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
-
-article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
- display: block; }
-
-body {
- margin: 0;
- font-family: "Helvetica Neue", Arial, sans-serif;
- font-size: 0.95rem;
- font-weight: 400;
- line-height: 1.5;
- color: #212529;
- text-align: left;
- background-color: #f8f9fa; }
-
-[tabindex="-1"]:focus {
- outline: 0 !important; }
-
-hr {
- box-sizing: content-box;
- height: 0;
- overflow: visible; }
-
-h1, h2, h3, h4, h5, h6 {
- margin-top: 0;
- margin-bottom: 0.5rem; }
-
-p {
- margin-top: 0;
- margin-bottom: 1rem; }
-
-abbr[title],
-abbr[data-original-title] {
- text-decoration: underline;
- text-decoration: underline dotted;
- cursor: help;
- border-bottom: 0;
- text-decoration-skip-ink: none; }
-
-address {
- margin-bottom: 1rem;
- font-style: normal;
- line-height: inherit; }
-
-ol,
-ul,
-dl {
- margin-top: 0;
- margin-bottom: 1rem; }
-
-ol ol,
-ul ul,
-ol ul,
-ul ol {
- margin-bottom: 0; }
-
-dt {
- font-weight: 700; }
-
-dd {
- margin-bottom: .5rem;
- margin-left: 0; }
-
-blockquote {
- margin: 0 0 1rem; }
-
-b,
-strong {
- font-weight: bolder; }
-
-small {
- font-size: 80%; }
-
-sub,
-sup {
- position: relative;
- font-size: 75%;
- line-height: 0;
- vertical-align: baseline; }
-
-sub {
- bottom: -.25em; }
-
-sup {
- top: -.5em; }
-
-a {
- color: #007bff;
- text-decoration: none;
- background-color: transparent; }
- a:hover {
- color: #0056b3;
- text-decoration: underline; }
-
-a:not([href]):not([tabindex]) {
- color: inherit;
- text-decoration: none; }
- a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
- color: inherit;
- text-decoration: none; }
- a:not([href]):not([tabindex]):focus {
- outline: 0; }
-
-pre,
-code,
-kbd,
-samp {
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
- font-size: 1em; }
-
-pre {
- margin-top: 0;
- margin-bottom: 1rem;
- overflow: auto; }
-
-figure {
- margin: 0 0 1rem; }
-
-img {
- vertical-align: middle;
- border-style: none; }
-
-svg {
- overflow: hidden;
- vertical-align: middle; }
-
-table {
- border-collapse: collapse; }
-
-caption {
- padding-top: 0.75rem;
- padding-bottom: 0.75rem;
- color: #6c757d;
- text-align: left;
- caption-side: bottom; }
-
-th {
- text-align: inherit; }
-
-label {
- display: inline-block;
- margin-bottom: 0.5rem; }
-
-button {
- border-radius: 0; }
-
-button:focus {
- outline: 1px dotted;
- outline: 5px auto -webkit-focus-ring-color; }
-
-input,
-button,
-select,
-optgroup,
-textarea {
- margin: 0;
- font-family: inherit;
- font-size: inherit;
- line-height: inherit; }
-
-button,
-input {
- overflow: visible; }
-
-button,
-select {
- text-transform: none; }
-
-select {
- word-wrap: normal; }
-
-button,
-[type="button"],
-[type="reset"],
-[type="submit"] {
- -webkit-appearance: button; }
-
-button:not(:disabled),
-[type="button"]:not(:disabled),
-[type="reset"]:not(:disabled),
-[type="submit"]:not(:disabled) {
- cursor: pointer; }
-
-button::-moz-focus-inner,
-[type="button"]::-moz-focus-inner,
-[type="reset"]::-moz-focus-inner,
-[type="submit"]::-moz-focus-inner {
- padding: 0;
- border-style: none; }
-
-input[type="radio"],
-input[type="checkbox"] {
- box-sizing: border-box;
- padding: 0; }
-
-input[type="date"],
-input[type="time"],
-input[type="datetime-local"],
-input[type="month"] {
- -webkit-appearance: listbox; }
-
-textarea {
- overflow: auto;
- resize: vertical; }
-
-fieldset {
- min-width: 0;
- padding: 0;
- margin: 0;
- border: 0; }
-
-legend {
- display: block;
- width: 100%;
- max-width: 100%;
- padding: 0;
- margin-bottom: .5rem;
- font-size: 1.5rem;
- line-height: inherit;
- color: inherit;
- white-space: normal; }
-
-progress {
- vertical-align: baseline; }
-
-[type="number"]::-webkit-inner-spin-button,
-[type="number"]::-webkit-outer-spin-button {
- height: auto; }
-
-[type="search"] {
- outline-offset: -2px;
- -webkit-appearance: none; }
-
-[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none; }
-
-::-webkit-file-upload-button {
- font: inherit;
- -webkit-appearance: button; }
-
-output {
- display: inline-block; }
-
-summary {
- display: list-item;
- cursor: pointer; }
-
-template {
- display: none; }
-
-[hidden] {
- display: none !important; }
-
-h1, h2, h3, h4, h5, h6,
-.h1, .h2, .h3, .h4, .h5, .h6 {
- margin-bottom: 0.5rem;
- font-weight: 500;
- line-height: 1.2; }
-
-h1, .h1 {
- font-size: 2.375rem; }
-
-h2, .h2 {
- font-size: 1.9rem; }
-
-h3, .h3 {
- font-size: 1.6625rem; }
-
-h4, .h4 {
- font-size: 1.425rem; }
-
-h5, .h5 {
- font-size: 1.1875rem; }
-
-h6, .h6 {
- font-size: 0.95rem; }
-
-.lead {
- font-size: 1.1875rem;
- font-weight: 300; }
-
-.display-1 {
- font-size: 6rem;
- font-weight: 300;
- line-height: 1.2; }
-
-.display-2 {
- font-size: 5.5rem;
- font-weight: 300;
- line-height: 1.2; }
-
-.display-3 {
- font-size: 4.5rem;
- font-weight: 300;
- line-height: 1.2; }
-
-.display-4 {
- font-size: 3.5rem;
- font-weight: 300;
- line-height: 1.2; }
-
-hr {
- margin-top: 1rem;
- margin-bottom: 1rem;
- border: 0;
- border-top: 1px solid rgba(0, 0, 0, 0.1); }
-
-small,
-.small {
- font-size: 80%;
- font-weight: 400; }
-
-mark,
-.mark {
- padding: 0.2em;
- background-color: #fcf8e3; }
-
-.list-unstyled {
- padding-left: 0;
- list-style: none; }
-
-.list-inline {
- padding-left: 0;
- list-style: none; }
-
-.list-inline-item {
- display: inline-block; }
- .list-inline-item:not(:last-child) {
- margin-right: 0.5rem; }
-
-.initialism {
- font-size: 90%;
- text-transform: uppercase; }
-
-.blockquote {
- margin-bottom: 1rem;
- font-size: 1.1875rem; }
-
-.blockquote-footer {
- display: block;
- font-size: 80%;
- color: #6c757d; }
- .blockquote-footer::before {
- content: "\2014\00A0"; }
-
-.img-fluid {
- max-width: 100%;
- height: auto; }
-
-.img-thumbnail {
- padding: 0.25rem;
- background-color: #f8f9fa;
- border: 1px solid #dee2e6;
- border-radius: 0.25rem;
- max-width: 100%;
- height: auto; }
-
-.figure {
- display: inline-block; }
-
-.figure-img {
- margin-bottom: 0.5rem;
- line-height: 1; }
-
-.figure-caption {
- font-size: 90%;
- color: #6c757d; }
-
-code {
- font-size: 87.5%;
- color: #e83e8c;
- word-break: break-word; }
- a > code {
- color: inherit; }
-
-kbd {
- padding: 0.2rem 0.4rem;
- font-size: 87.5%;
- color: #fff;
- background-color: #212529;
- border-radius: 0.2rem; }
- kbd kbd {
- padding: 0;
- font-size: 100%;
- font-weight: 700; }
-
-pre {
- display: block;
- font-size: 87.5%;
- color: #212529; }
- pre code {
- font-size: inherit;
- color: inherit;
- word-break: normal; }
-
-.pre-scrollable {
- max-height: 340px;
- overflow-y: scroll; }
-
-.container {
- width: 100%;
- padding-right: 15px;
- padding-left: 15px;
- margin-right: auto;
- margin-left: auto; }
- @media (min-width: 576px) {
- .container {
- max-width: 540px; } }
- @media (min-width: 768px) {
- .container {
- max-width: 720px; } }
- @media (min-width: 992px) {
- .container {
- max-width: 960px; } }
- @media (min-width: 1200px) {
- .container {
- max-width: 1140px; } }
-
-.container-fluid {
- width: 100%;
- padding-right: 15px;
- padding-left: 15px;
- margin-right: auto;
- margin-left: auto; }
-
-.row {
- display: flex;
- flex-wrap: wrap;
- margin-right: -15px;
- margin-left: -15px; }
-
-.no-gutters {
- margin-right: 0;
- margin-left: 0; }
- .no-gutters > .col,
- .no-gutters > [class*="col-"] {
- padding-right: 0;
- padding-left: 0; }
-
-.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,
-.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,
-.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,
-.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,
-.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,
-.col-xl-auto {
- position: relative;
- width: 100%;
- padding-right: 15px;
- padding-left: 15px; }
-
-.col {
- flex-basis: 0;
- flex-grow: 1;
- max-width: 100%; }
-
-.col-auto {
- flex: 0 0 auto;
- width: auto;
- max-width: 100%; }
-
-.col-1 {
- flex: 0 0 8.33333%;
- max-width: 8.33333%; }
-
-.col-2 {
- flex: 0 0 16.66667%;
- max-width: 16.66667%; }
-
-.col-3 {
- flex: 0 0 25%;
- max-width: 25%; }
-
-.col-4 {
- flex: 0 0 33.33333%;
- max-width: 33.33333%; }
-
-.col-5 {
- flex: 0 0 41.66667%;
- max-width: 41.66667%; }
-
-.col-6 {
- flex: 0 0 50%;
- max-width: 50%; }
-
-.col-7 {
- flex: 0 0 58.33333%;
- max-width: 58.33333%; }
-
-.col-8 {
- flex: 0 0 66.66667%;
- max-width: 66.66667%; }
-
-.col-9 {
- flex: 0 0 75%;
- max-width: 75%; }
-
-.col-10 {
- flex: 0 0 83.33333%;
- max-width: 83.33333%; }
-
-.col-11 {
- flex: 0 0 91.66667%;
- max-width: 91.66667%; }
-
-.col-12 {
- flex: 0 0 100%;
- max-width: 100%; }
-
-.order-first {
- order: -1; }
-
-.order-last {
- order: 13; }
-
-.order-0 {
- order: 0; }
-
-.order-1 {
- order: 1; }
-
-.order-2 {
- order: 2; }
-
-.order-3 {
- order: 3; }
-
-.order-4 {
- order: 4; }
-
-.order-5 {
- order: 5; }
-
-.order-6 {
- order: 6; }
-
-.order-7 {
- order: 7; }
-
-.order-8 {
- order: 8; }
-
-.order-9 {
- order: 9; }
-
-.order-10 {
- order: 10; }
-
-.order-11 {
- order: 11; }
-
-.order-12 {
- order: 12; }
-
-.offset-1 {
- margin-left: 8.33333%; }
-
-.offset-2 {
- margin-left: 16.66667%; }
-
-.offset-3 {
- margin-left: 25%; }
-
-.offset-4 {
- margin-left: 33.33333%; }
-
-.offset-5 {
- margin-left: 41.66667%; }
-
-.offset-6 {
- margin-left: 50%; }
-
-.offset-7 {
- margin-left: 58.33333%; }
-
-.offset-8 {
- margin-left: 66.66667%; }
-
-.offset-9 {
- margin-left: 75%; }
-
-.offset-10 {
- margin-left: 83.33333%; }
-
-.offset-11 {
- margin-left: 91.66667%; }
-
-@media (min-width: 576px) {
- .col-sm {
- flex-basis: 0;
- flex-grow: 1;
- max-width: 100%; }
- .col-sm-auto {
- flex: 0 0 auto;
- width: auto;
- max-width: 100%; }
- .col-sm-1 {
- flex: 0 0 8.33333%;
- max-width: 8.33333%; }
- .col-sm-2 {
- flex: 0 0 16.66667%;
- max-width: 16.66667%; }
- .col-sm-3 {
- flex: 0 0 25%;
- max-width: 25%; }
- .col-sm-4 {
- flex: 0 0 33.33333%;
- max-width: 33.33333%; }
- .col-sm-5 {
- flex: 0 0 41.66667%;
- max-width: 41.66667%; }
- .col-sm-6 {
- flex: 0 0 50%;
- max-width: 50%; }
- .col-sm-7 {
- flex: 0 0 58.33333%;
- max-width: 58.33333%; }
- .col-sm-8 {
- flex: 0 0 66.66667%;
- max-width: 66.66667%; }
- .col-sm-9 {
- flex: 0 0 75%;
- max-width: 75%; }
- .col-sm-10 {
- flex: 0 0 83.33333%;
- max-width: 83.33333%; }
- .col-sm-11 {
- flex: 0 0 91.66667%;
- max-width: 91.66667%; }
- .col-sm-12 {
- flex: 0 0 100%;
- max-width: 100%; }
- .order-sm-first {
- order: -1; }
- .order-sm-last {
- order: 13; }
- .order-sm-0 {
- order: 0; }
- .order-sm-1 {
- order: 1; }
- .order-sm-2 {
- order: 2; }
- .order-sm-3 {
- order: 3; }
- .order-sm-4 {
- order: 4; }
- .order-sm-5 {
- order: 5; }
- .order-sm-6 {
- order: 6; }
- .order-sm-7 {
- order: 7; }
- .order-sm-8 {
- order: 8; }
- .order-sm-9 {
- order: 9; }
- .order-sm-10 {
- order: 10; }
- .order-sm-11 {
- order: 11; }
- .order-sm-12 {
- order: 12; }
- .offset-sm-0 {
- margin-left: 0; }
- .offset-sm-1 {
- margin-left: 8.33333%; }
- .offset-sm-2 {
- margin-left: 16.66667%; }
- .offset-sm-3 {
- margin-left: 25%; }
- .offset-sm-4 {
- margin-left: 33.33333%; }
- .offset-sm-5 {
- margin-left: 41.66667%; }
- .offset-sm-6 {
- margin-left: 50%; }
- .offset-sm-7 {
- margin-left: 58.33333%; }
- .offset-sm-8 {
- margin-left: 66.66667%; }
- .offset-sm-9 {
- margin-left: 75%; }
- .offset-sm-10 {
- margin-left: 83.33333%; }
- .offset-sm-11 {
- margin-left: 91.66667%; } }
-
-@media (min-width: 768px) {
- .col-md {
- flex-basis: 0;
- flex-grow: 1;
- max-width: 100%; }
- .col-md-auto {
- flex: 0 0 auto;
- width: auto;
- max-width: 100%; }
- .col-md-1 {
- flex: 0 0 8.33333%;
- max-width: 8.33333%; }
- .col-md-2 {
- flex: 0 0 16.66667%;
- max-width: 16.66667%; }
- .col-md-3 {
- flex: 0 0 25%;
- max-width: 25%; }
- .col-md-4 {
- flex: 0 0 33.33333%;
- max-width: 33.33333%; }
- .col-md-5 {
- flex: 0 0 41.66667%;
- max-width: 41.66667%; }
- .col-md-6 {
- flex: 0 0 50%;
- max-width: 50%; }
- .col-md-7 {
- flex: 0 0 58.33333%;
- max-width: 58.33333%; }
- .col-md-8 {
- flex: 0 0 66.66667%;
- max-width: 66.66667%; }
- .col-md-9 {
- flex: 0 0 75%;
- max-width: 75%; }
- .col-md-10 {
- flex: 0 0 83.33333%;
- max-width: 83.33333%; }
- .col-md-11 {
- flex: 0 0 91.66667%;
- max-width: 91.66667%; }
- .col-md-12 {
- flex: 0 0 100%;
- max-width: 100%; }
- .order-md-first {
- order: -1; }
- .order-md-last {
- order: 13; }
- .order-md-0 {
- order: 0; }
- .order-md-1 {
- order: 1; }
- .order-md-2 {
- order: 2; }
- .order-md-3 {
- order: 3; }
- .order-md-4 {
- order: 4; }
- .order-md-5 {
- order: 5; }
- .order-md-6 {
- order: 6; }
- .order-md-7 {
- order: 7; }
- .order-md-8 {
- order: 8; }
- .order-md-9 {
- order: 9; }
- .order-md-10 {
- order: 10; }
- .order-md-11 {
- order: 11; }
- .order-md-12 {
- order: 12; }
- .offset-md-0 {
- margin-left: 0; }
- .offset-md-1 {
- margin-left: 8.33333%; }
- .offset-md-2 {
- margin-left: 16.66667%; }
- .offset-md-3 {
- margin-left: 25%; }
- .offset-md-4 {
- margin-left: 33.33333%; }
- .offset-md-5 {
- margin-left: 41.66667%; }
- .offset-md-6 {
- margin-left: 50%; }
- .offset-md-7 {
- margin-left: 58.33333%; }
- .offset-md-8 {
- margin-left: 66.66667%; }
- .offset-md-9 {
- margin-left: 75%; }
- .offset-md-10 {
- margin-left: 83.33333%; }
- .offset-md-11 {
- margin-left: 91.66667%; } }
-
-@media (min-width: 992px) {
- .col-lg {
- flex-basis: 0;
- flex-grow: 1;
- max-width: 100%; }
- .col-lg-auto {
- flex: 0 0 auto;
- width: auto;
- max-width: 100%; }
- .col-lg-1 {
- flex: 0 0 8.33333%;
- max-width: 8.33333%; }
- .col-lg-2 {
- flex: 0 0 16.66667%;
- max-width: 16.66667%; }
- .col-lg-3 {
- flex: 0 0 25%;
- max-width: 25%; }
- .col-lg-4 {
- flex: 0 0 33.33333%;
- max-width: 33.33333%; }
- .col-lg-5 {
- flex: 0 0 41.66667%;
- max-width: 41.66667%; }
- .col-lg-6 {
- flex: 0 0 50%;
- max-width: 50%; }
- .col-lg-7 {
- flex: 0 0 58.33333%;
- max-width: 58.33333%; }
- .col-lg-8 {
- flex: 0 0 66.66667%;
- max-width: 66.66667%; }
- .col-lg-9 {
- flex: 0 0 75%;
- max-width: 75%; }
- .col-lg-10 {
- flex: 0 0 83.33333%;
- max-width: 83.33333%; }
- .col-lg-11 {
- flex: 0 0 91.66667%;
- max-width: 91.66667%; }
- .col-lg-12 {
- flex: 0 0 100%;
- max-width: 100%; }
- .order-lg-first {
- order: -1; }
- .order-lg-last {
- order: 13; }
- .order-lg-0 {
- order: 0; }
- .order-lg-1 {
- order: 1; }
- .order-lg-2 {
- order: 2; }
- .order-lg-3 {
- order: 3; }
- .order-lg-4 {
- order: 4; }
- .order-lg-5 {
- order: 5; }
- .order-lg-6 {
- order: 6; }
- .order-lg-7 {
- order: 7; }
- .order-lg-8 {
- order: 8; }
- .order-lg-9 {
- order: 9; }
- .order-lg-10 {
- order: 10; }
- .order-lg-11 {
- order: 11; }
- .order-lg-12 {
- order: 12; }
- .offset-lg-0 {
- margin-left: 0; }
- .offset-lg-1 {
- margin-left: 8.33333%; }
- .offset-lg-2 {
- margin-left: 16.66667%; }
- .offset-lg-3 {
- margin-left: 25%; }
- .offset-lg-4 {
- margin-left: 33.33333%; }
- .offset-lg-5 {
- margin-left: 41.66667%; }
- .offset-lg-6 {
- margin-left: 50%; }
- .offset-lg-7 {
- margin-left: 58.33333%; }
- .offset-lg-8 {
- margin-left: 66.66667%; }
- .offset-lg-9 {
- margin-left: 75%; }
- .offset-lg-10 {
- margin-left: 83.33333%; }
- .offset-lg-11 {
- margin-left: 91.66667%; } }
-
-@media (min-width: 1200px) {
- .col-xl {
- flex-basis: 0;
- flex-grow: 1;
- max-width: 100%; }
- .col-xl-auto {
- flex: 0 0 auto;
- width: auto;
- max-width: 100%; }
- .col-xl-1 {
- flex: 0 0 8.33333%;
- max-width: 8.33333%; }
- .col-xl-2 {
- flex: 0 0 16.66667%;
- max-width: 16.66667%; }
- .col-xl-3 {
- flex: 0 0 25%;
- max-width: 25%; }
- .col-xl-4 {
- flex: 0 0 33.33333%;
- max-width: 33.33333%; }
- .col-xl-5 {
- flex: 0 0 41.66667%;
- max-width: 41.66667%; }
- .col-xl-6 {
- flex: 0 0 50%;
- max-width: 50%; }
- .col-xl-7 {
- flex: 0 0 58.33333%;
- max-width: 58.33333%; }
- .col-xl-8 {
- flex: 0 0 66.66667%;
- max-width: 66.66667%; }
- .col-xl-9 {
- flex: 0 0 75%;
- max-width: 75%; }
- .col-xl-10 {
- flex: 0 0 83.33333%;
- max-width: 83.33333%; }
- .col-xl-11 {
- flex: 0 0 91.66667%;
- max-width: 91.66667%; }
- .col-xl-12 {
- flex: 0 0 100%;
- max-width: 100%; }
- .order-xl-first {
- order: -1; }
- .order-xl-last {
- order: 13; }
- .order-xl-0 {
- order: 0; }
- .order-xl-1 {
- order: 1; }
- .order-xl-2 {
- order: 2; }
- .order-xl-3 {
- order: 3; }
- .order-xl-4 {
- order: 4; }
- .order-xl-5 {
- order: 5; }
- .order-xl-6 {
- order: 6; }
- .order-xl-7 {
- order: 7; }
- .order-xl-8 {
- order: 8; }
- .order-xl-9 {
- order: 9; }
- .order-xl-10 {
- order: 10; }
- .order-xl-11 {
- order: 11; }
- .order-xl-12 {
- order: 12; }
- .offset-xl-0 {
- margin-left: 0; }
- .offset-xl-1 {
- margin-left: 8.33333%; }
- .offset-xl-2 {
- margin-left: 16.66667%; }
- .offset-xl-3 {
- margin-left: 25%; }
- .offset-xl-4 {
- margin-left: 33.33333%; }
- .offset-xl-5 {
- margin-left: 41.66667%; }
- .offset-xl-6 {
- margin-left: 50%; }
- .offset-xl-7 {
- margin-left: 58.33333%; }
- .offset-xl-8 {
- margin-left: 66.66667%; }
- .offset-xl-9 {
- margin-left: 75%; }
- .offset-xl-10 {
- margin-left: 83.33333%; }
- .offset-xl-11 {
- margin-left: 91.66667%; } }
-
-.table {
- width: 100%;
- margin-bottom: 1rem;
- color: #212529; }
- .table th,
- .table td {
- padding: 0.75rem;
- vertical-align: top;
- border-top: 1px solid #dee2e6; }
- .table thead th {
- vertical-align: bottom;
- border-bottom: 2px solid #dee2e6; }
- .table tbody + tbody {
- border-top: 2px solid #dee2e6; }
-
-.table-sm th,
-.table-sm td {
- padding: 0.3rem; }
-
-.table-bordered {
- border: 1px solid #dee2e6; }
- .table-bordered th,
- .table-bordered td {
- border: 1px solid #dee2e6; }
- .table-bordered thead th,
- .table-bordered thead td {
- border-bottom-width: 2px; }
-
-.table-borderless th,
-.table-borderless td,
-.table-borderless thead th,
-.table-borderless tbody + tbody {
- border: 0; }
-
-.table-striped tbody tr:nth-of-type(odd) {
- background-color: rgba(0, 0, 0, 0.05); }
-
-.table-hover tbody tr:hover {
- color: #212529;
- background-color: rgba(0, 0, 0, 0.075); }
-
-.table-primary,
-.table-primary > th,
-.table-primary > td {
- background-color: #b8daff; }
-
-.table-primary th,
-.table-primary td,
-.table-primary thead th,
-.table-primary tbody + tbody {
- border-color: #7abaff; }
-
-.table-hover .table-primary:hover {
- background-color: #9fcdff; }
- .table-hover .table-primary:hover > td,
- .table-hover .table-primary:hover > th {
- background-color: #9fcdff; }
-
-.table-secondary,
-.table-secondary > th,
-.table-secondary > td {
- background-color: #d6d8db; }
-
-.table-secondary th,
-.table-secondary td,
-.table-secondary thead th,
-.table-secondary tbody + tbody {
- border-color: #b3b7bb; }
-
-.table-hover .table-secondary:hover {
- background-color: #c8cbcf; }
- .table-hover .table-secondary:hover > td,
- .table-hover .table-secondary:hover > th {
- background-color: #c8cbcf; }
-
-.table-success,
-.table-success > th,
-.table-success > td {
- background-color: #c3e6cb; }
-
-.table-success th,
-.table-success td,
-.table-success thead th,
-.table-success tbody + tbody {
- border-color: #8fd19e; }
-
-.table-hover .table-success:hover {
- background-color: #b1dfbb; }
- .table-hover .table-success:hover > td,
- .table-hover .table-success:hover > th {
- background-color: #b1dfbb; }
-
-.table-info,
-.table-info > th,
-.table-info > td {
- background-color: #bee5eb; }
-
-.table-info th,
-.table-info td,
-.table-info thead th,
-.table-info tbody + tbody {
- border-color: #86cfda; }
-
-.table-hover .table-info:hover {
- background-color: #abdde5; }
- .table-hover .table-info:hover > td,
- .table-hover .table-info:hover > th {
- background-color: #abdde5; }
-
-.table-warning,
-.table-warning > th,
-.table-warning > td {
- background-color: #ffeeba; }
-
-.table-warning th,
-.table-warning td,
-.table-warning thead th,
-.table-warning tbody + tbody {
- border-color: #ffdf7e; }
-
-.table-hover .table-warning:hover {
- background-color: #ffe8a1; }
- .table-hover .table-warning:hover > td,
- .table-hover .table-warning:hover > th {
- background-color: #ffe8a1; }
-
-.table-danger,
-.table-danger > th,
-.table-danger > td {
- background-color: #f5c6cb; }
-
-.table-danger th,
-.table-danger td,
-.table-danger thead th,
-.table-danger tbody + tbody {
- border-color: #ed969e; }
-
-.table-hover .table-danger:hover {
- background-color: #f1b0b7; }
- .table-hover .table-danger:hover > td,
- .table-hover .table-danger:hover > th {
- background-color: #f1b0b7; }
-
-.table-light,
-.table-light > th,
-.table-light > td {
- background-color: #fdfdfe; }
-
-.table-light th,
-.table-light td,
-.table-light thead th,
-.table-light tbody + tbody {
- border-color: #fbfcfc; }
-
-.table-hover .table-light:hover {
- background-color: #ececf6; }
- .table-hover .table-light:hover > td,
- .table-hover .table-light:hover > th {
- background-color: #ececf6; }
-
-.table-dark,
-.table-dark > th,
-.table-dark > td {
- background-color: #c6c8ca; }
-
-.table-dark th,
-.table-dark td,
-.table-dark thead th,
-.table-dark tbody + tbody {
- border-color: #95999c; }
-
-.table-hover .table-dark:hover {
- background-color: #b9bbbe; }
- .table-hover .table-dark:hover > td,
- .table-hover .table-dark:hover > th {
- background-color: #b9bbbe; }
-
-.table-active,
-.table-active > th,
-.table-active > td {
- background-color: rgba(0, 0, 0, 0.075); }
-
-.table-hover .table-active:hover {
- background-color: rgba(0, 0, 0, 0.075); }
- .table-hover .table-active:hover > td,
- .table-hover .table-active:hover > th {
- background-color: rgba(0, 0, 0, 0.075); }
-
-.table .thead-dark th {
- color: #fff;
- background-color: #343a40;
- border-color: #454d55; }
-
-.table .thead-light th {
- color: #495057;
- background-color: #e9ecef;
- border-color: #dee2e6; }
-
-.table-dark {
- color: #fff;
- background-color: #343a40; }
- .table-dark th,
- .table-dark td,
- .table-dark thead th {
- border-color: #454d55; }
- .table-dark.table-bordered {
- border: 0; }
- .table-dark.table-striped tbody tr:nth-of-type(odd) {
- background-color: rgba(255, 255, 255, 0.05); }
- .table-dark.table-hover tbody tr:hover {
- color: #fff;
- background-color: rgba(255, 255, 255, 0.075); }
-
-@media (max-width: 575.98px) {
- .table-responsive-sm {
- display: block;
- width: 100%;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch; }
- .table-responsive-sm > .table-bordered {
- border: 0; } }
-
-@media (max-width: 767.98px) {
- .table-responsive-md {
- display: block;
- width: 100%;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch; }
- .table-responsive-md > .table-bordered {
- border: 0; } }
-
-@media (max-width: 991.98px) {
- .table-responsive-lg {
- display: block;
- width: 100%;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch; }
- .table-responsive-lg > .table-bordered {
- border: 0; } }
-
-@media (max-width: 1199.98px) {
- .table-responsive-xl {
- display: block;
- width: 100%;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch; }
- .table-responsive-xl > .table-bordered {
- border: 0; } }
-
-.table-responsive {
- display: block;
- width: 100%;
- overflow-x: auto;
- -webkit-overflow-scrolling: touch; }
- .table-responsive > .table-bordered {
- border: 0; }
-
-.form-control {
- display: block;
- width: 100%;
- height: calc(1.5em + 0.75rem + 2px);
- padding: 0.375rem 0.75rem;
- font-size: 0.95rem;
- font-weight: 400;
- line-height: 1.5;
- color: #495057;
- background-color: #fff;
- background-clip: padding-box;
- border: 1px solid #ced4da;
- border-radius: 0.25rem;
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
- @media (prefers-reduced-motion: reduce) {
- .form-control {
- transition: none; } }
- .form-control::-ms-expand {
- background-color: transparent;
- border: 0; }
- .form-control:focus {
- color: #495057;
- background-color: #fff;
- border-color: #80bdff;
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .form-control::placeholder {
- color: #6c757d;
- opacity: 1; }
- .form-control:disabled, .form-control[readonly] {
- background-color: #e9ecef;
- opacity: 1; }
-
-select.form-control:focus::-ms-value {
- color: #495057;
- background-color: #fff; }
-
-.form-control-file,
-.form-control-range {
- display: block;
- width: 100%; }
-
-.col-form-label {
- padding-top: calc(0.375rem + 1px);
- padding-bottom: calc(0.375rem + 1px);
- margin-bottom: 0;
- font-size: inherit;
- line-height: 1.5; }
-
-.col-form-label-lg {
- padding-top: calc(0.5rem + 1px);
- padding-bottom: calc(0.5rem + 1px);
- font-size: 1.1875rem;
- line-height: 1.5; }
-
-.col-form-label-sm {
- padding-top: calc(0.25rem + 1px);
- padding-bottom: calc(0.25rem + 1px);
- font-size: 0.83125rem;
- line-height: 1.5; }
-
-.form-control-plaintext {
- display: block;
- width: 100%;
- padding-top: 0.375rem;
- padding-bottom: 0.375rem;
- margin-bottom: 0;
- line-height: 1.5;
- color: #212529;
- background-color: transparent;
- border: solid transparent;
- border-width: 1px 0; }
- .form-control-plaintext.form-control-sm, .form-control-plaintext.form-control-lg {
- padding-right: 0;
- padding-left: 0; }
-
-.form-control-sm {
- height: calc(1.5em + 0.5rem + 2px);
- padding: 0.25rem 0.5rem;
- font-size: 0.83125rem;
- line-height: 1.5;
- border-radius: 0.2rem; }
-
-.form-control-lg {
- height: calc(1.5em + 1rem + 2px);
- padding: 0.5rem 1rem;
- font-size: 1.1875rem;
- line-height: 1.5;
- border-radius: 0.3rem; }
-
-select.form-control[size], select.form-control[multiple] {
- height: auto; }
-
-textarea.form-control {
- height: auto; }
-
-.form-group {
- margin-bottom: 1rem; }
-
-.form-text {
- display: block;
- margin-top: 0.25rem; }
-
-.form-row {
- display: flex;
- flex-wrap: wrap;
- margin-right: -5px;
- margin-left: -5px; }
- .form-row > .col,
- .form-row > [class*="col-"] {
- padding-right: 5px;
- padding-left: 5px; }
-
-.form-check {
- position: relative;
- display: block;
- padding-left: 1.25rem; }
-
-.form-check-input {
- position: absolute;
- margin-top: 0.3rem;
- margin-left: -1.25rem; }
- .form-check-input:disabled ~ .form-check-label {
- color: #6c757d; }
-
-.form-check-label {
- margin-bottom: 0; }
-
-.form-check-inline {
- display: inline-flex;
- align-items: center;
- padding-left: 0;
- margin-right: 0.75rem; }
- .form-check-inline .form-check-input {
- position: static;
- margin-top: 0;
- margin-right: 0.3125rem;
- margin-left: 0; }
-
-.valid-feedback {
- display: none;
- width: 100%;
- margin-top: 0.25rem;
- font-size: 80%;
- color: #28a745; }
-
-.valid-tooltip {
- position: absolute;
- top: 100%;
- z-index: 5;
- display: none;
- max-width: 100%;
- padding: 0.25rem 0.5rem;
- margin-top: .1rem;
- font-size: 0.83125rem;
- line-height: 1.5;
- color: #fff;
- background-color: rgba(40, 167, 69, 0.9);
- border-radius: 0.25rem; }
-
-.was-validated .form-control:valid, .form-control.is-valid {
- border-color: #28a745;
- padding-right: calc(1.5em + 0.75rem);
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
- background-repeat: no-repeat;
- background-position: center right calc(0.375em + 0.1875rem);
- background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }
- .was-validated .form-control:valid:focus, .form-control.is-valid:focus {
- border-color: #28a745;
- box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }
- .was-validated .form-control:valid ~ .valid-feedback,
- .was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback,
- .form-control.is-valid ~ .valid-tooltip {
- display: block; }
-
-.was-validated textarea.form-control:valid, textarea.form-control.is-valid {
- padding-right: calc(1.5em + 0.75rem);
- background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem); }
-
-.was-validated .custom-select:valid, .custom-select.is-valid {
- border-color: #28a745;
- padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
- background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }
- .was-validated .custom-select:valid:focus, .custom-select.is-valid:focus {
- border-color: #28a745;
- box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }
- .was-validated .custom-select:valid ~ .valid-feedback,
- .was-validated .custom-select:valid ~ .valid-tooltip, .custom-select.is-valid ~ .valid-feedback,
- .custom-select.is-valid ~ .valid-tooltip {
- display: block; }
-
-.was-validated .form-control-file:valid ~ .valid-feedback,
-.was-validated .form-control-file:valid ~ .valid-tooltip, .form-control-file.is-valid ~ .valid-feedback,
-.form-control-file.is-valid ~ .valid-tooltip {
- display: block; }
-
-.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label {
- color: #28a745; }
-
-.was-validated .form-check-input:valid ~ .valid-feedback,
-.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback,
-.form-check-input.is-valid ~ .valid-tooltip {
- display: block; }
-
-.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label {
- color: #28a745; }
- .was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before {
- border-color: #28a745; }
-
-.was-validated .custom-control-input:valid ~ .valid-feedback,
-.was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback,
-.custom-control-input.is-valid ~ .valid-tooltip {
- display: block; }
-
-.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before {
- border-color: #34ce57;
- background-color: #34ce57; }
-
-.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before {
- box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }
-
-.was-validated .custom-control-input:valid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-valid:focus:not(:checked) ~ .custom-control-label::before {
- border-color: #28a745; }
-
-.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label {
- border-color: #28a745; }
-
-.was-validated .custom-file-input:valid ~ .valid-feedback,
-.was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback,
-.custom-file-input.is-valid ~ .valid-tooltip {
- display: block; }
-
-.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label {
- border-color: #28a745;
- box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); }
-
-.invalid-feedback {
- display: none;
- width: 100%;
- margin-top: 0.25rem;
- font-size: 80%;
- color: #dc3545; }
-
-.invalid-tooltip {
- position: absolute;
- top: 100%;
- z-index: 5;
- display: none;
- max-width: 100%;
- padding: 0.25rem 0.5rem;
- margin-top: .1rem;
- font-size: 0.83125rem;
- line-height: 1.5;
- color: #fff;
- background-color: rgba(220, 53, 69, 0.9);
- border-radius: 0.25rem; }
-
-.was-validated .form-control:invalid, .form-control.is-invalid {
- border-color: #dc3545;
- padding-right: calc(1.5em + 0.75rem);
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
- background-repeat: no-repeat;
- background-position: center right calc(0.375em + 0.1875rem);
- background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }
- .was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
- border-color: #dc3545;
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }
- .was-validated .form-control:invalid ~ .invalid-feedback,
- .was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback,
- .form-control.is-invalid ~ .invalid-tooltip {
- display: block; }
-
-.was-validated textarea.form-control:invalid, textarea.form-control.is-invalid {
- padding-right: calc(1.5em + 0.75rem);
- background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem); }
-
-.was-validated .custom-select:invalid, .custom-select.is-invalid {
- border-color: #dc3545;
- padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem);
- background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); }
- .was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus {
- border-color: #dc3545;
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }
- .was-validated .custom-select:invalid ~ .invalid-feedback,
- .was-validated .custom-select:invalid ~ .invalid-tooltip, .custom-select.is-invalid ~ .invalid-feedback,
- .custom-select.is-invalid ~ .invalid-tooltip {
- display: block; }
-
-.was-validated .form-control-file:invalid ~ .invalid-feedback,
-.was-validated .form-control-file:invalid ~ .invalid-tooltip, .form-control-file.is-invalid ~ .invalid-feedback,
-.form-control-file.is-invalid ~ .invalid-tooltip {
- display: block; }
-
-.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label {
- color: #dc3545; }
-
-.was-validated .form-check-input:invalid ~ .invalid-feedback,
-.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback,
-.form-check-input.is-invalid ~ .invalid-tooltip {
- display: block; }
-
-.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label {
- color: #dc3545; }
- .was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before {
- border-color: #dc3545; }
-
-.was-validated .custom-control-input:invalid ~ .invalid-feedback,
-.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback,
-.custom-control-input.is-invalid ~ .invalid-tooltip {
- display: block; }
-
-.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before {
- border-color: #e4606d;
- background-color: #e4606d; }
-
-.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before {
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }
-
-.was-validated .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-invalid:focus:not(:checked) ~ .custom-control-label::before {
- border-color: #dc3545; }
-
-.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label {
- border-color: #dc3545; }
-
-.was-validated .custom-file-input:invalid ~ .invalid-feedback,
-.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback,
-.custom-file-input.is-invalid ~ .invalid-tooltip {
- display: block; }
-
-.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label {
- border-color: #dc3545;
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); }
-
-.form-inline {
- display: flex;
- flex-flow: row wrap;
- align-items: center; }
- .form-inline .form-check {
- width: 100%; }
- @media (min-width: 576px) {
- .form-inline label {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-bottom: 0; }
- .form-inline .form-group {
- display: flex;
- flex: 0 0 auto;
- flex-flow: row wrap;
- align-items: center;
- margin-bottom: 0; }
- .form-inline .form-control {
- display: inline-block;
- width: auto;
- vertical-align: middle; }
- .form-inline .form-control-plaintext {
- display: inline-block; }
- .form-inline .input-group,
- .form-inline .custom-select {
- width: auto; }
- .form-inline .form-check {
- display: flex;
- align-items: center;
- justify-content: center;
- width: auto;
- padding-left: 0; }
- .form-inline .form-check-input {
- position: relative;
- flex-shrink: 0;
- margin-top: 0;
- margin-right: 0.25rem;
- margin-left: 0; }
- .form-inline .custom-control {
- align-items: center;
- justify-content: center; }
- .form-inline .custom-control-label {
- margin-bottom: 0; } }
-
-.btn {
- display: inline-block;
- font-weight: 400;
- color: #212529;
- text-align: center;
- vertical-align: middle;
- user-select: none;
- background-color: transparent;
- border: 1px solid transparent;
- padding: 0.375rem 0.75rem;
- font-size: 0.95rem;
- line-height: 1.5;
- border-radius: 0.25rem;
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
- @media (prefers-reduced-motion: reduce) {
- .btn {
- transition: none; } }
- .btn:hover {
- color: #212529;
- text-decoration: none; }
- .btn:focus, .btn.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .btn.disabled, .btn:disabled {
- opacity: 0.65; }
-
-a.btn.disabled,
-fieldset:disabled a.btn {
- pointer-events: none; }
-
-.btn-primary {
- color: #fff;
- background-color: #007bff;
- border-color: #007bff; }
- .btn-primary:hover {
- color: #fff;
- background-color: #0069d9;
- border-color: #0062cc; }
- .btn-primary:focus, .btn-primary.focus {
- box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); }
- .btn-primary.disabled, .btn-primary:disabled {
- color: #fff;
- background-color: #007bff;
- border-color: #007bff; }
- .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
- .show > .btn-primary.dropdown-toggle {
- color: #fff;
- background-color: #0062cc;
- border-color: #005cbf; }
- .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
- .show > .btn-primary.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); }
-
-.btn-secondary {
- color: #fff;
- background-color: #6c757d;
- border-color: #6c757d; }
- .btn-secondary:hover {
- color: #fff;
- background-color: #5a6268;
- border-color: #545b62; }
- .btn-secondary:focus, .btn-secondary.focus {
- box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5); }
- .btn-secondary.disabled, .btn-secondary:disabled {
- color: #fff;
- background-color: #6c757d;
- border-color: #6c757d; }
- .btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active,
- .show > .btn-secondary.dropdown-toggle {
- color: #fff;
- background-color: #545b62;
- border-color: #4e555b; }
- .btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus,
- .show > .btn-secondary.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5); }
-
-.btn-success {
- color: #fff;
- background-color: #28a745;
- border-color: #28a745; }
- .btn-success:hover {
- color: #fff;
- background-color: #218838;
- border-color: #1e7e34; }
- .btn-success:focus, .btn-success.focus {
- box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5); }
- .btn-success.disabled, .btn-success:disabled {
- color: #fff;
- background-color: #28a745;
- border-color: #28a745; }
- .btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active,
- .show > .btn-success.dropdown-toggle {
- color: #fff;
- background-color: #1e7e34;
- border-color: #1c7430; }
- .btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus,
- .show > .btn-success.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.5); }
-
-.btn-info {
- color: #fff;
- background-color: #17a2b8;
- border-color: #17a2b8; }
- .btn-info:hover {
- color: #fff;
- background-color: #138496;
- border-color: #117a8b; }
- .btn-info:focus, .btn-info.focus {
- box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5); }
- .btn-info.disabled, .btn-info:disabled {
- color: #fff;
- background-color: #17a2b8;
- border-color: #17a2b8; }
- .btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active,
- .show > .btn-info.dropdown-toggle {
- color: #fff;
- background-color: #117a8b;
- border-color: #10707f; }
- .btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus,
- .show > .btn-info.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(58, 176, 195, 0.5); }
-
-.btn-warning {
- color: #212529;
- background-color: #ffc107;
- border-color: #ffc107; }
- .btn-warning:hover {
- color: #212529;
- background-color: #e0a800;
- border-color: #d39e00; }
- .btn-warning:focus, .btn-warning.focus {
- box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); }
- .btn-warning.disabled, .btn-warning:disabled {
- color: #212529;
- background-color: #ffc107;
- border-color: #ffc107; }
- .btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active,
- .show > .btn-warning.dropdown-toggle {
- color: #212529;
- background-color: #d39e00;
- border-color: #c69500; }
- .btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus,
- .show > .btn-warning.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5); }
-
-.btn-danger {
- color: #fff;
- background-color: #dc3545;
- border-color: #dc3545; }
- .btn-danger:hover {
- color: #fff;
- background-color: #c82333;
- border-color: #bd2130; }
- .btn-danger:focus, .btn-danger.focus {
- box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5); }
- .btn-danger.disabled, .btn-danger:disabled {
- color: #fff;
- background-color: #dc3545;
- border-color: #dc3545; }
- .btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active,
- .show > .btn-danger.dropdown-toggle {
- color: #fff;
- background-color: #bd2130;
- border-color: #b21f2d; }
- .btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus,
- .show > .btn-danger.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(225, 83, 97, 0.5); }
-
-.btn-light {
- color: #212529;
- background-color: #f8f9fa;
- border-color: #f8f9fa; }
- .btn-light:hover {
- color: #212529;
- background-color: #e2e6ea;
- border-color: #dae0e5; }
- .btn-light:focus, .btn-light.focus {
- box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); }
- .btn-light.disabled, .btn-light:disabled {
- color: #212529;
- background-color: #f8f9fa;
- border-color: #f8f9fa; }
- .btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active,
- .show > .btn-light.dropdown-toggle {
- color: #212529;
- background-color: #dae0e5;
- border-color: #d3d9df; }
- .btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus,
- .show > .btn-light.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(216, 217, 219, 0.5); }
-
-.btn-dark {
- color: #fff;
- background-color: #343a40;
- border-color: #343a40; }
- .btn-dark:hover {
- color: #fff;
- background-color: #23272b;
- border-color: #1d2124; }
- .btn-dark:focus, .btn-dark.focus {
- box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); }
- .btn-dark.disabled, .btn-dark:disabled {
- color: #fff;
- background-color: #343a40;
- border-color: #343a40; }
- .btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active,
- .show > .btn-dark.dropdown-toggle {
- color: #fff;
- background-color: #1d2124;
- border-color: #171a1d; }
- .btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus,
- .show > .btn-dark.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5); }
-
-.btn-outline-primary {
- color: #007bff;
- border-color: #007bff; }
- .btn-outline-primary:hover {
- color: #fff;
- background-color: #007bff;
- border-color: #007bff; }
- .btn-outline-primary:focus, .btn-outline-primary.focus {
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); }
- .btn-outline-primary.disabled, .btn-outline-primary:disabled {
- color: #007bff;
- background-color: transparent; }
- .btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active,
- .show > .btn-outline-primary.dropdown-toggle {
- color: #fff;
- background-color: #007bff;
- border-color: #007bff; }
- .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-primary.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); }
-
-.btn-outline-secondary {
- color: #6c757d;
- border-color: #6c757d; }
- .btn-outline-secondary:hover {
- color: #fff;
- background-color: #6c757d;
- border-color: #6c757d; }
- .btn-outline-secondary:focus, .btn-outline-secondary.focus {
- box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); }
- .btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
- color: #6c757d;
- background-color: transparent; }
- .btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active,
- .show > .btn-outline-secondary.dropdown-toggle {
- color: #fff;
- background-color: #6c757d;
- border-color: #6c757d; }
- .btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-secondary.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); }
-
-.btn-outline-success {
- color: #28a745;
- border-color: #28a745; }
- .btn-outline-success:hover {
- color: #fff;
- background-color: #28a745;
- border-color: #28a745; }
- .btn-outline-success:focus, .btn-outline-success.focus {
- box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); }
- .btn-outline-success.disabled, .btn-outline-success:disabled {
- color: #28a745;
- background-color: transparent; }
- .btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active,
- .show > .btn-outline-success.dropdown-toggle {
- color: #fff;
- background-color: #28a745;
- border-color: #28a745; }
- .btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-success.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); }
-
-.btn-outline-info {
- color: #17a2b8;
- border-color: #17a2b8; }
- .btn-outline-info:hover {
- color: #fff;
- background-color: #17a2b8;
- border-color: #17a2b8; }
- .btn-outline-info:focus, .btn-outline-info.focus {
- box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); }
- .btn-outline-info.disabled, .btn-outline-info:disabled {
- color: #17a2b8;
- background-color: transparent; }
- .btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active,
- .show > .btn-outline-info.dropdown-toggle {
- color: #fff;
- background-color: #17a2b8;
- border-color: #17a2b8; }
- .btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-info.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); }
-
-.btn-outline-warning {
- color: #ffc107;
- border-color: #ffc107; }
- .btn-outline-warning:hover {
- color: #212529;
- background-color: #ffc107;
- border-color: #ffc107; }
- .btn-outline-warning:focus, .btn-outline-warning.focus {
- box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); }
- .btn-outline-warning.disabled, .btn-outline-warning:disabled {
- color: #ffc107;
- background-color: transparent; }
- .btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active,
- .show > .btn-outline-warning.dropdown-toggle {
- color: #212529;
- background-color: #ffc107;
- border-color: #ffc107; }
- .btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-warning.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); }
-
-.btn-outline-danger {
- color: #dc3545;
- border-color: #dc3545; }
- .btn-outline-danger:hover {
- color: #fff;
- background-color: #dc3545;
- border-color: #dc3545; }
- .btn-outline-danger:focus, .btn-outline-danger.focus {
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); }
- .btn-outline-danger.disabled, .btn-outline-danger:disabled {
- color: #dc3545;
- background-color: transparent; }
- .btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active,
- .show > .btn-outline-danger.dropdown-toggle {
- color: #fff;
- background-color: #dc3545;
- border-color: #dc3545; }
- .btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-danger.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); }
-
-.btn-outline-light {
- color: #f8f9fa;
- border-color: #f8f9fa; }
- .btn-outline-light:hover {
- color: #212529;
- background-color: #f8f9fa;
- border-color: #f8f9fa; }
- .btn-outline-light:focus, .btn-outline-light.focus {
- box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); }
- .btn-outline-light.disabled, .btn-outline-light:disabled {
- color: #f8f9fa;
- background-color: transparent; }
- .btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active,
- .show > .btn-outline-light.dropdown-toggle {
- color: #212529;
- background-color: #f8f9fa;
- border-color: #f8f9fa; }
- .btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-light.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); }
-
-.btn-outline-dark {
- color: #343a40;
- border-color: #343a40; }
- .btn-outline-dark:hover {
- color: #fff;
- background-color: #343a40;
- border-color: #343a40; }
- .btn-outline-dark:focus, .btn-outline-dark.focus {
- box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); }
- .btn-outline-dark.disabled, .btn-outline-dark:disabled {
- color: #343a40;
- background-color: transparent; }
- .btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active,
- .show > .btn-outline-dark.dropdown-toggle {
- color: #fff;
- background-color: #343a40;
- border-color: #343a40; }
- .btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus,
- .show > .btn-outline-dark.dropdown-toggle:focus {
- box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); }
-
-.btn-link {
- font-weight: 400;
- color: #007bff;
- text-decoration: none; }
- .btn-link:hover {
- color: #0056b3;
- text-decoration: underline; }
- .btn-link:focus, .btn-link.focus {
- text-decoration: underline;
- box-shadow: none; }
- .btn-link:disabled, .btn-link.disabled {
- color: #6c757d;
- pointer-events: none; }
-
-.btn-lg, .btn-group-lg > .btn {
- padding: 0.5rem 1rem;
- font-size: 1.1875rem;
- line-height: 1.5;
- border-radius: 0.3rem; }
-
-.btn-sm, .btn-group-sm > .btn {
- padding: 0.25rem 0.5rem;
- font-size: 0.83125rem;
- line-height: 1.5;
- border-radius: 0.2rem; }
-
-.btn-block {
- display: block;
- width: 100%; }
- .btn-block + .btn-block {
- margin-top: 0.5rem; }
-
-input[type="submit"].btn-block,
-input[type="reset"].btn-block,
-input[type="button"].btn-block {
- width: 100%; }
-
-.fade {
- transition: opacity 0.15s linear; }
- @media (prefers-reduced-motion: reduce) {
- .fade {
- transition: none; } }
- .fade:not(.show) {
- opacity: 0; }
-
-.collapse:not(.show) {
- display: none; }
-
-.collapsing {
- position: relative;
- height: 0;
- overflow: hidden;
- transition: height 0.35s ease; }
- @media (prefers-reduced-motion: reduce) {
- .collapsing {
- transition: none; } }
-
-.dropup,
-.dropright,
-.dropdown,
-.dropleft {
- position: relative; }
-
-.dropdown-toggle {
- white-space: nowrap; }
- .dropdown-toggle::after {
- display: inline-block;
- margin-left: 0.255em;
- vertical-align: 0.255em;
- content: "";
- border-top: 0.3em solid;
- border-right: 0.3em solid transparent;
- border-bottom: 0;
- border-left: 0.3em solid transparent; }
- .dropdown-toggle:empty::after {
- margin-left: 0; }
-
-.dropdown-menu {
- position: absolute;
- top: 100%;
- left: 0;
- z-index: 1000;
- display: none;
- float: left;
- min-width: 10rem;
- padding: 0.5rem 0;
- margin: 0.125rem 0 0;
- font-size: 0.95rem;
- color: #212529;
- text-align: left;
- list-style: none;
- background-color: #fff;
- background-clip: padding-box;
- border: 1px solid rgba(0, 0, 0, 0.15);
- border-radius: 0.25rem; }
-
-.dropdown-menu-left {
- right: auto;
- left: 0; }
-
-.dropdown-menu-right {
- right: 0;
- left: auto; }
-
-@media (min-width: 576px) {
- .dropdown-menu-sm-left {
- right: auto;
- left: 0; }
- .dropdown-menu-sm-right {
- right: 0;
- left: auto; } }
-
-@media (min-width: 768px) {
- .dropdown-menu-md-left {
- right: auto;
- left: 0; }
- .dropdown-menu-md-right {
- right: 0;
- left: auto; } }
-
-@media (min-width: 992px) {
- .dropdown-menu-lg-left {
- right: auto;
- left: 0; }
- .dropdown-menu-lg-right {
- right: 0;
- left: auto; } }
-
-@media (min-width: 1200px) {
- .dropdown-menu-xl-left {
- right: auto;
- left: 0; }
- .dropdown-menu-xl-right {
- right: 0;
- left: auto; } }
-
-.dropup .dropdown-menu {
- top: auto;
- bottom: 100%;
- margin-top: 0;
- margin-bottom: 0.125rem; }
-
-.dropup .dropdown-toggle::after {
- display: inline-block;
- margin-left: 0.255em;
- vertical-align: 0.255em;
- content: "";
- border-top: 0;
- border-right: 0.3em solid transparent;
- border-bottom: 0.3em solid;
- border-left: 0.3em solid transparent; }
-
-.dropup .dropdown-toggle:empty::after {
- margin-left: 0; }
-
-.dropright .dropdown-menu {
- top: 0;
- right: auto;
- left: 100%;
- margin-top: 0;
- margin-left: 0.125rem; }
-
-.dropright .dropdown-toggle::after {
- display: inline-block;
- margin-left: 0.255em;
- vertical-align: 0.255em;
- content: "";
- border-top: 0.3em solid transparent;
- border-right: 0;
- border-bottom: 0.3em solid transparent;
- border-left: 0.3em solid; }
-
-.dropright .dropdown-toggle:empty::after {
- margin-left: 0; }
-
-.dropright .dropdown-toggle::after {
- vertical-align: 0; }
-
-.dropleft .dropdown-menu {
- top: 0;
- right: 100%;
- left: auto;
- margin-top: 0;
- margin-right: 0.125rem; }
-
-.dropleft .dropdown-toggle::after {
- display: inline-block;
- margin-left: 0.255em;
- vertical-align: 0.255em;
- content: ""; }
-
-.dropleft .dropdown-toggle::after {
- display: none; }
-
-.dropleft .dropdown-toggle::before {
- display: inline-block;
- margin-right: 0.255em;
- vertical-align: 0.255em;
- content: "";
- border-top: 0.3em solid transparent;
- border-right: 0.3em solid;
- border-bottom: 0.3em solid transparent; }
-
-.dropleft .dropdown-toggle:empty::after {
- margin-left: 0; }
-
-.dropleft .dropdown-toggle::before {
- vertical-align: 0; }
-
-.dropdown-menu[x-placement^="top"], .dropdown-menu[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .dropdown-menu[x-placement^="left"] {
- right: auto;
- bottom: auto; }
-
-.dropdown-divider {
- height: 0;
- margin: 0.5rem 0;
- overflow: hidden;
- border-top: 1px solid #e9ecef; }
-
-.dropdown-item {
- display: block;
- width: 100%;
- padding: 0.25rem 1.5rem;
- clear: both;
- font-weight: 400;
- color: #212529;
- text-align: inherit;
- white-space: nowrap;
- background-color: transparent;
- border: 0; }
- .dropdown-item:hover, .dropdown-item:focus {
- color: #16181b;
- text-decoration: none;
- background-color: #f8f9fa; }
- .dropdown-item.active, .dropdown-item:active {
- color: #fff;
- text-decoration: none;
- background-color: #007bff; }
- .dropdown-item.disabled, .dropdown-item:disabled {
- color: #6c757d;
- pointer-events: none;
- background-color: transparent; }
-
-.dropdown-menu.show {
- display: block; }
-
-.dropdown-header {
- display: block;
- padding: 0.5rem 1.5rem;
- margin-bottom: 0;
- font-size: 0.83125rem;
- color: #6c757d;
- white-space: nowrap; }
-
-.dropdown-item-text {
- display: block;
- padding: 0.25rem 1.5rem;
- color: #212529; }
-
-.btn-group,
-.btn-group-vertical {
- position: relative;
- display: inline-flex;
- vertical-align: middle; }
- .btn-group > .btn,
- .btn-group-vertical > .btn {
- position: relative;
- flex: 1 1 auto; }
- .btn-group > .btn:hover,
- .btn-group-vertical > .btn:hover {
- z-index: 1; }
- .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,
- .btn-group-vertical > .btn:focus,
- .btn-group-vertical > .btn:active,
- .btn-group-vertical > .btn.active {
- z-index: 1; }
-
-.btn-toolbar {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-start; }
- .btn-toolbar .input-group {
- width: auto; }
-
-.btn-group > .btn:not(:first-child),
-.btn-group > .btn-group:not(:first-child) {
- margin-left: -1px; }
-
-.btn-group > .btn:not(:last-child):not(.dropdown-toggle),
-.btn-group > .btn-group:not(:last-child) > .btn {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0; }
-
-.btn-group > .btn:not(:first-child),
-.btn-group > .btn-group:not(:first-child) > .btn {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0; }
-
-.dropdown-toggle-split {
- padding-right: 0.5625rem;
- padding-left: 0.5625rem; }
- .dropdown-toggle-split::after,
- .dropup .dropdown-toggle-split::after,
- .dropright .dropdown-toggle-split::after {
- margin-left: 0; }
- .dropleft .dropdown-toggle-split::before {
- margin-right: 0; }
-
-.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split {
- padding-right: 0.375rem;
- padding-left: 0.375rem; }
-
-.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split {
- padding-right: 0.75rem;
- padding-left: 0.75rem; }
-
-.btn-group-vertical {
- flex-direction: column;
- align-items: flex-start;
- justify-content: center; }
- .btn-group-vertical > .btn,
- .btn-group-vertical > .btn-group {
- width: 100%; }
- .btn-group-vertical > .btn:not(:first-child),
- .btn-group-vertical > .btn-group:not(:first-child) {
- margin-top: -1px; }
- .btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle),
- .btn-group-vertical > .btn-group:not(:last-child) > .btn {
- border-bottom-right-radius: 0;
- border-bottom-left-radius: 0; }
- .btn-group-vertical > .btn:not(:first-child),
- .btn-group-vertical > .btn-group:not(:first-child) > .btn {
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.btn-group-toggle > .btn,
-.btn-group-toggle > .btn-group > .btn {
- margin-bottom: 0; }
- .btn-group-toggle > .btn input[type="radio"],
- .btn-group-toggle > .btn input[type="checkbox"],
- .btn-group-toggle > .btn-group > .btn input[type="radio"],
- .btn-group-toggle > .btn-group > .btn input[type="checkbox"] {
- position: absolute;
- clip: rect(0, 0, 0, 0);
- pointer-events: none; }
-
-.input-group {
- position: relative;
- display: flex;
- flex-wrap: wrap;
- align-items: stretch;
- width: 100%; }
- .input-group > .form-control,
- .input-group > .form-control-plaintext,
- .input-group > .custom-select,
- .input-group > .custom-file {
- position: relative;
- flex: 1 1 auto;
- width: 1%;
- margin-bottom: 0; }
- .input-group > .form-control + .form-control,
- .input-group > .form-control + .custom-select,
- .input-group > .form-control + .custom-file,
- .input-group > .form-control-plaintext + .form-control,
- .input-group > .form-control-plaintext + .custom-select,
- .input-group > .form-control-plaintext + .custom-file,
- .input-group > .custom-select + .form-control,
- .input-group > .custom-select + .custom-select,
- .input-group > .custom-select + .custom-file,
- .input-group > .custom-file + .form-control,
- .input-group > .custom-file + .custom-select,
- .input-group > .custom-file + .custom-file {
- margin-left: -1px; }
- .input-group > .form-control:focus,
- .input-group > .custom-select:focus,
- .input-group > .custom-file .custom-file-input:focus ~ .custom-file-label {
- z-index: 3; }
- .input-group > .custom-file .custom-file-input:focus {
- z-index: 4; }
- .input-group > .form-control:not(:last-child),
- .input-group > .custom-select:not(:last-child) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0; }
- .input-group > .form-control:not(:first-child),
- .input-group > .custom-select:not(:first-child) {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0; }
- .input-group > .custom-file {
- display: flex;
- align-items: center; }
- .input-group > .custom-file:not(:last-child) .custom-file-label,
- .input-group > .custom-file:not(:last-child) .custom-file-label::after {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0; }
- .input-group > .custom-file:not(:first-child) .custom-file-label {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0; }
-
-.input-group-prepend,
-.input-group-append {
- display: flex; }
- .input-group-prepend .btn,
- .input-group-append .btn {
- position: relative;
- z-index: 2; }
- .input-group-prepend .btn:focus,
- .input-group-append .btn:focus {
- z-index: 3; }
- .input-group-prepend .btn + .btn,
- .input-group-prepend .btn + .input-group-text,
- .input-group-prepend .input-group-text + .input-group-text,
- .input-group-prepend .input-group-text + .btn,
- .input-group-append .btn + .btn,
- .input-group-append .btn + .input-group-text,
- .input-group-append .input-group-text + .input-group-text,
- .input-group-append .input-group-text + .btn {
- margin-left: -1px; }
-
-.input-group-prepend {
- margin-right: -1px; }
-
-.input-group-append {
- margin-left: -1px; }
-
-.input-group-text {
- display: flex;
- align-items: center;
- padding: 0.375rem 0.75rem;
- margin-bottom: 0;
- font-size: 0.95rem;
- font-weight: 400;
- line-height: 1.5;
- color: #495057;
- text-align: center;
- white-space: nowrap;
- background-color: #e9ecef;
- border: 1px solid #ced4da;
- border-radius: 0.25rem; }
- .input-group-text input[type="radio"],
- .input-group-text input[type="checkbox"] {
- margin-top: 0; }
-
-.input-group-lg > .form-control:not(textarea),
-.input-group-lg > .custom-select {
- height: calc(1.5em + 1rem + 2px); }
-
-.input-group-lg > .form-control,
-.input-group-lg > .custom-select,
-.input-group-lg > .input-group-prepend > .input-group-text,
-.input-group-lg > .input-group-append > .input-group-text,
-.input-group-lg > .input-group-prepend > .btn,
-.input-group-lg > .input-group-append > .btn {
- padding: 0.5rem 1rem;
- font-size: 1.1875rem;
- line-height: 1.5;
- border-radius: 0.3rem; }
-
-.input-group-sm > .form-control:not(textarea),
-.input-group-sm > .custom-select {
- height: calc(1.5em + 0.5rem + 2px); }
-
-.input-group-sm > .form-control,
-.input-group-sm > .custom-select,
-.input-group-sm > .input-group-prepend > .input-group-text,
-.input-group-sm > .input-group-append > .input-group-text,
-.input-group-sm > .input-group-prepend > .btn,
-.input-group-sm > .input-group-append > .btn {
- padding: 0.25rem 0.5rem;
- font-size: 0.83125rem;
- line-height: 1.5;
- border-radius: 0.2rem; }
-
-.input-group-lg > .custom-select,
-.input-group-sm > .custom-select {
- padding-right: 1.75rem; }
-
-.input-group > .input-group-prepend > .btn,
-.input-group > .input-group-prepend > .input-group-text,
-.input-group > .input-group-append:not(:last-child) > .btn,
-.input-group > .input-group-append:not(:last-child) > .input-group-text,
-.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle),
-.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0; }
-
-.input-group > .input-group-append > .btn,
-.input-group > .input-group-append > .input-group-text,
-.input-group > .input-group-prepend:not(:first-child) > .btn,
-.input-group > .input-group-prepend:not(:first-child) > .input-group-text,
-.input-group > .input-group-prepend:first-child > .btn:not(:first-child),
-.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0; }
-
-.custom-control {
- position: relative;
- display: block;
- min-height: 1.425rem;
- padding-left: 1.5rem; }
-
-.custom-control-inline {
- display: inline-flex;
- margin-right: 1rem; }
-
-.custom-control-input {
- position: absolute;
- z-index: -1;
- opacity: 0; }
- .custom-control-input:checked ~ .custom-control-label::before {
- color: #fff;
- border-color: #007bff;
- background-color: #007bff; }
- .custom-control-input:focus ~ .custom-control-label::before {
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
- border-color: #80bdff; }
- .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
- color: #fff;
- background-color: #b3d7ff;
- border-color: #b3d7ff; }
- .custom-control-input:disabled ~ .custom-control-label {
- color: #6c757d; }
- .custom-control-input:disabled ~ .custom-control-label::before {
- background-color: #e9ecef; }
-
-.custom-control-label {
- position: relative;
- margin-bottom: 0;
- vertical-align: top; }
- .custom-control-label::before {
- position: absolute;
- top: 0.2125rem;
- left: -1.5rem;
- display: block;
- width: 1rem;
- height: 1rem;
- pointer-events: none;
- content: "";
- background-color: #fff;
- border: #adb5bd solid 1px; }
- .custom-control-label::after {
- position: absolute;
- top: 0.2125rem;
- left: -1.5rem;
- display: block;
- width: 1rem;
- height: 1rem;
- content: "";
- background: no-repeat 50% / 50% 50%; }
-
-.custom-checkbox .custom-control-label::before {
- border-radius: 0.25rem; }
-
-.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e"); }
-
-.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
- border-color: #007bff;
- background-color: #007bff; }
-
-.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after {
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e"); }
-
-.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
- background-color: rgba(0, 123, 255, 0.5); }
-
-.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before {
- background-color: rgba(0, 123, 255, 0.5); }
-
-.custom-radio .custom-control-label::before {
- border-radius: 50%; }
-
-.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }
-
-.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
- background-color: rgba(0, 123, 255, 0.5); }
-
-.custom-switch {
- padding-left: 2.25rem; }
- .custom-switch .custom-control-label::before {
- left: -2.25rem;
- width: 1.75rem;
- pointer-events: all;
- border-radius: 0.5rem; }
- .custom-switch .custom-control-label::after {
- top: calc(0.2125rem + 2px);
- left: calc(-2.25rem + 2px);
- width: calc(1rem - 4px);
- height: calc(1rem - 4px);
- background-color: #adb5bd;
- border-radius: 0.5rem;
- transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
- @media (prefers-reduced-motion: reduce) {
- .custom-switch .custom-control-label::after {
- transition: none; } }
- .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
- background-color: #fff;
- transform: translateX(0.75rem); }
- .custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before {
- background-color: rgba(0, 123, 255, 0.5); }
-
-.custom-select {
- display: inline-block;
- width: 100%;
- height: calc(1.5em + 0.75rem + 2px);
- padding: 0.375rem 1.75rem 0.375rem 0.75rem;
- font-size: 0.95rem;
- font-weight: 400;
- line-height: 1.5;
- color: #495057;
- vertical-align: middle;
- background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
- background-color: #fff;
- border: 1px solid #ced4da;
- border-radius: 0.25rem;
- appearance: none; }
- .custom-select:focus {
- border-color: #80bdff;
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .custom-select:focus::-ms-value {
- color: #495057;
- background-color: #fff; }
- .custom-select[multiple], .custom-select[size]:not([size="1"]) {
- height: auto;
- padding-right: 0.75rem;
- background-image: none; }
- .custom-select:disabled {
- color: #6c757d;
- background-color: #e9ecef; }
- .custom-select::-ms-expand {
- display: none; }
-
-.custom-select-sm {
- height: calc(1.5em + 0.5rem + 2px);
- padding-top: 0.25rem;
- padding-bottom: 0.25rem;
- padding-left: 0.5rem;
- font-size: 0.83125rem; }
-
-.custom-select-lg {
- height: calc(1.5em + 1rem + 2px);
- padding-top: 0.5rem;
- padding-bottom: 0.5rem;
- padding-left: 1rem;
- font-size: 1.1875rem; }
-
-.custom-file {
- position: relative;
- display: inline-block;
- width: 100%;
- height: calc(1.5em + 0.75rem + 2px);
- margin-bottom: 0; }
-
-.custom-file-input {
- position: relative;
- z-index: 2;
- width: 100%;
- height: calc(1.5em + 0.75rem + 2px);
- margin: 0;
- opacity: 0; }
- .custom-file-input:focus ~ .custom-file-label {
- border-color: #80bdff;
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .custom-file-input:disabled ~ .custom-file-label {
- background-color: #e9ecef; }
- .custom-file-input:lang(en) ~ .custom-file-label::after {
- content: "Browse"; }
- .custom-file-input ~ .custom-file-label[data-browse]::after {
- content: attr(data-browse); }
-
-.custom-file-label {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- z-index: 1;
- height: calc(1.5em + 0.75rem + 2px);
- padding: 0.375rem 0.75rem;
- font-weight: 400;
- line-height: 1.5;
- color: #495057;
- background-color: #fff;
- border: 1px solid #ced4da;
- border-radius: 0.25rem; }
- .custom-file-label::after {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- z-index: 3;
- display: block;
- height: calc(1.5em + 0.75rem);
- padding: 0.375rem 0.75rem;
- line-height: 1.5;
- color: #495057;
- content: "Browse";
- background-color: #e9ecef;
- border-left: inherit;
- border-radius: 0 0.25rem 0.25rem 0; }
-
-.custom-range {
- width: 100%;
- height: calc(1rem + 0.4rem);
- padding: 0;
- background-color: transparent;
- appearance: none; }
- .custom-range:focus {
- outline: none; }
- .custom-range:focus::-webkit-slider-thumb {
- box-shadow: 0 0 0 1px #f8f9fa, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .custom-range:focus::-moz-range-thumb {
- box-shadow: 0 0 0 1px #f8f9fa, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .custom-range:focus::-ms-thumb {
- box-shadow: 0 0 0 1px #f8f9fa, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
- .custom-range::-moz-focus-outer {
- border: 0; }
- .custom-range::-webkit-slider-thumb {
- width: 1rem;
- height: 1rem;
- margin-top: -0.25rem;
- background-color: #007bff;
- border: 0;
- border-radius: 1rem;
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
- appearance: none; }
- @media (prefers-reduced-motion: reduce) {
- .custom-range::-webkit-slider-thumb {
- transition: none; } }
- .custom-range::-webkit-slider-thumb:active {
- background-color: #b3d7ff; }
- .custom-range::-webkit-slider-runnable-track {
- width: 100%;
- height: 0.5rem;
- color: transparent;
- cursor: pointer;
- background-color: #dee2e6;
- border-color: transparent;
- border-radius: 1rem; }
- .custom-range::-moz-range-thumb {
- width: 1rem;
- height: 1rem;
- background-color: #007bff;
- border: 0;
- border-radius: 1rem;
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
- appearance: none; }
- @media (prefers-reduced-motion: reduce) {
- .custom-range::-moz-range-thumb {
- transition: none; } }
- .custom-range::-moz-range-thumb:active {
- background-color: #b3d7ff; }
- .custom-range::-moz-range-track {
- width: 100%;
- height: 0.5rem;
- color: transparent;
- cursor: pointer;
- background-color: #dee2e6;
- border-color: transparent;
- border-radius: 1rem; }
- .custom-range::-ms-thumb {
- width: 1rem;
- height: 1rem;
- margin-top: 0;
- margin-right: 0.2rem;
- margin-left: 0.2rem;
- background-color: #007bff;
- border: 0;
- border-radius: 1rem;
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
- appearance: none; }
- @media (prefers-reduced-motion: reduce) {
- .custom-range::-ms-thumb {
- transition: none; } }
- .custom-range::-ms-thumb:active {
- background-color: #b3d7ff; }
- .custom-range::-ms-track {
- width: 100%;
- height: 0.5rem;
- color: transparent;
- cursor: pointer;
- background-color: transparent;
- border-color: transparent;
- border-width: 0.5rem; }
- .custom-range::-ms-fill-lower {
- background-color: #dee2e6;
- border-radius: 1rem; }
- .custom-range::-ms-fill-upper {
- margin-right: 15px;
- background-color: #dee2e6;
- border-radius: 1rem; }
- .custom-range:disabled::-webkit-slider-thumb {
- background-color: #adb5bd; }
- .custom-range:disabled::-webkit-slider-runnable-track {
- cursor: default; }
- .custom-range:disabled::-moz-range-thumb {
- background-color: #adb5bd; }
- .custom-range:disabled::-moz-range-track {
- cursor: default; }
- .custom-range:disabled::-ms-thumb {
- background-color: #adb5bd; }
-
-.custom-control-label::before,
-.custom-file-label,
-.custom-select {
- transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
- @media (prefers-reduced-motion: reduce) {
- .custom-control-label::before,
- .custom-file-label,
- .custom-select {
- transition: none; } }
-
-.nav {
- display: flex;
- flex-wrap: wrap;
- padding-left: 0;
- margin-bottom: 0;
- list-style: none; }
-
-.nav-link {
- display: block;
- padding: 0.5rem 1rem; }
- .nav-link:hover, .nav-link:focus {
- text-decoration: none; }
- .nav-link.disabled {
- color: #6c757d;
- pointer-events: none;
- cursor: default; }
-
-.nav-tabs {
- border-bottom: 1px solid #dee2e6; }
- .nav-tabs .nav-item {
- margin-bottom: -1px; }
- .nav-tabs .nav-link {
- border: 1px solid transparent;
- border-top-left-radius: 0.25rem;
- border-top-right-radius: 0.25rem; }
- .nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
- border-color: #e9ecef #e9ecef #dee2e6; }
- .nav-tabs .nav-link.disabled {
- color: #6c757d;
- background-color: transparent;
- border-color: transparent; }
- .nav-tabs .nav-link.active,
- .nav-tabs .nav-item.show .nav-link {
- color: #495057;
- background-color: #f8f9fa;
- border-color: #dee2e6 #dee2e6 #f8f9fa; }
- .nav-tabs .dropdown-menu {
- margin-top: -1px;
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
-
-.nav-pills .nav-link {
- border-radius: 0.25rem; }
-
-.nav-pills .nav-link.active,
-.nav-pills .show > .nav-link {
- color: #fff;
- background-color: #007bff; }
-
-.nav-fill .nav-item {
- flex: 1 1 auto;
- text-align: center; }
-
-.nav-justified .nav-item {
- flex-basis: 0;
- flex-grow: 1;
- text-align: center; }
-
-.tab-content > .tab-pane {
- display: none; }
-
-.tab-content > .active {
- display: block; }
-
-.navbar {
- position: relative;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between;
- padding: 0.5rem 1rem; }
- .navbar > .container,
- .navbar > .container-fluid {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between; }
-
-.navbar-brand {
- display: inline-block;
- padding-top: 0.32187rem;
- padding-bottom: 0.32187rem;
- margin-right: 1rem;
- font-size: 1.1875rem;
- line-height: inherit;
- white-space: nowrap; }
- .navbar-brand:hover, .navbar-brand:focus {
- text-decoration: none; }
-
-.navbar-nav {
- display: flex;
- flex-direction: column;
- padding-left: 0;
- margin-bottom: 0;
- list-style: none; }
- .navbar-nav .nav-link {
- padding-right: 0;
- padding-left: 0; }
- .navbar-nav .dropdown-menu {
- position: static;
- float: none; }
-
-.navbar-text {
- display: inline-block;
- padding-top: 0.5rem;
- padding-bottom: 0.5rem; }
-
-.navbar-collapse {
- flex-basis: 100%;
- flex-grow: 1;
- align-items: center; }
-
-.navbar-toggler {
- padding: 0.25rem 0.75rem;
- font-size: 1.1875rem;
- line-height: 1;
- background-color: transparent;
- border: 1px solid transparent;
- border-radius: 0.25rem; }
- .navbar-toggler:hover, .navbar-toggler:focus {
- text-decoration: none; }
-
-.navbar-toggler-icon {
- display: inline-block;
- width: 1.5em;
- height: 1.5em;
- vertical-align: middle;
- content: "";
- background: no-repeat center center;
- background-size: 100% 100%; }
-
-@media (max-width: 575.98px) {
- .navbar-expand-sm > .container,
- .navbar-expand-sm > .container-fluid {
- padding-right: 0;
- padding-left: 0; } }
-
-@media (min-width: 576px) {
- .navbar-expand-sm {
- flex-flow: row nowrap;
- justify-content: flex-start; }
- .navbar-expand-sm .navbar-nav {
- flex-direction: row; }
- .navbar-expand-sm .navbar-nav .dropdown-menu {
- position: absolute; }
- .navbar-expand-sm .navbar-nav .nav-link {
- padding-right: 0.5rem;
- padding-left: 0.5rem; }
- .navbar-expand-sm > .container,
- .navbar-expand-sm > .container-fluid {
- flex-wrap: nowrap; }
- .navbar-expand-sm .navbar-collapse {
- display: flex !important;
- flex-basis: auto; }
- .navbar-expand-sm .navbar-toggler {
- display: none; } }
-
-@media (max-width: 767.98px) {
- .navbar-expand-md > .container,
- .navbar-expand-md > .container-fluid {
- padding-right: 0;
- padding-left: 0; } }
-
-@media (min-width: 768px) {
- .navbar-expand-md {
- flex-flow: row nowrap;
- justify-content: flex-start; }
- .navbar-expand-md .navbar-nav {
- flex-direction: row; }
- .navbar-expand-md .navbar-nav .dropdown-menu {
- position: absolute; }
- .navbar-expand-md .navbar-nav .nav-link {
- padding-right: 0.5rem;
- padding-left: 0.5rem; }
- .navbar-expand-md > .container,
- .navbar-expand-md > .container-fluid {
- flex-wrap: nowrap; }
- .navbar-expand-md .navbar-collapse {
- display: flex !important;
- flex-basis: auto; }
- .navbar-expand-md .navbar-toggler {
- display: none; } }
-
-@media (max-width: 991.98px) {
- .navbar-expand-lg > .container,
- .navbar-expand-lg > .container-fluid {
- padding-right: 0;
- padding-left: 0; } }
-
-@media (min-width: 992px) {
- .navbar-expand-lg {
- flex-flow: row nowrap;
- justify-content: flex-start; }
- .navbar-expand-lg .navbar-nav {
- flex-direction: row; }
- .navbar-expand-lg .navbar-nav .dropdown-menu {
- position: absolute; }
- .navbar-expand-lg .navbar-nav .nav-link {
- padding-right: 0.5rem;
- padding-left: 0.5rem; }
- .navbar-expand-lg > .container,
- .navbar-expand-lg > .container-fluid {
- flex-wrap: nowrap; }
- .navbar-expand-lg .navbar-collapse {
- display: flex !important;
- flex-basis: auto; }
- .navbar-expand-lg .navbar-toggler {
- display: none; } }
-
-@media (max-width: 1199.98px) {
- .navbar-expand-xl > .container,
- .navbar-expand-xl > .container-fluid {
- padding-right: 0;
- padding-left: 0; } }
-
-@media (min-width: 1200px) {
- .navbar-expand-xl {
- flex-flow: row nowrap;
- justify-content: flex-start; }
- .navbar-expand-xl .navbar-nav {
- flex-direction: row; }
- .navbar-expand-xl .navbar-nav .dropdown-menu {
- position: absolute; }
- .navbar-expand-xl .navbar-nav .nav-link {
- padding-right: 0.5rem;
- padding-left: 0.5rem; }
- .navbar-expand-xl > .container,
- .navbar-expand-xl > .container-fluid {
- flex-wrap: nowrap; }
- .navbar-expand-xl .navbar-collapse {
- display: flex !important;
- flex-basis: auto; }
- .navbar-expand-xl .navbar-toggler {
- display: none; } }
-
-.navbar-expand {
- flex-flow: row nowrap;
- justify-content: flex-start; }
- .navbar-expand > .container,
- .navbar-expand > .container-fluid {
- padding-right: 0;
- padding-left: 0; }
- .navbar-expand .navbar-nav {
- flex-direction: row; }
- .navbar-expand .navbar-nav .dropdown-menu {
- position: absolute; }
- .navbar-expand .navbar-nav .nav-link {
- padding-right: 0.5rem;
- padding-left: 0.5rem; }
- .navbar-expand > .container,
- .navbar-expand > .container-fluid {
- flex-wrap: nowrap; }
- .navbar-expand .navbar-collapse {
- display: flex !important;
- flex-basis: auto; }
- .navbar-expand .navbar-toggler {
- display: none; }
-
-.navbar-light .navbar-brand {
- color: rgba(0, 0, 0, 0.9); }
- .navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus {
- color: rgba(0, 0, 0, 0.9); }
-
-.navbar-light .navbar-nav .nav-link {
- color: rgba(0, 0, 0, 0.5); }
- .navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
- color: rgba(0, 0, 0, 0.7); }
- .navbar-light .navbar-nav .nav-link.disabled {
- color: rgba(0, 0, 0, 0.3); }
-
-.navbar-light .navbar-nav .show > .nav-link,
-.navbar-light .navbar-nav .active > .nav-link,
-.navbar-light .navbar-nav .nav-link.show,
-.navbar-light .navbar-nav .nav-link.active {
- color: rgba(0, 0, 0, 0.9); }
-
-.navbar-light .navbar-toggler {
- color: rgba(0, 0, 0, 0.5);
- border-color: rgba(0, 0, 0, 0.1); }
-
-.navbar-light .navbar-toggler-icon {
- background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
-
-.navbar-light .navbar-text {
- color: rgba(0, 0, 0, 0.5); }
- .navbar-light .navbar-text a {
- color: rgba(0, 0, 0, 0.9); }
- .navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus {
- color: rgba(0, 0, 0, 0.9); }
-
-.navbar-dark .navbar-brand {
- color: #fff; }
- .navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus {
- color: #fff; }
-
-.navbar-dark .navbar-nav .nav-link {
- color: rgba(255, 255, 255, 0.5); }
- .navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus {
- color: rgba(255, 255, 255, 0.75); }
- .navbar-dark .navbar-nav .nav-link.disabled {
- color: rgba(255, 255, 255, 0.25); }
-
-.navbar-dark .navbar-nav .show > .nav-link,
-.navbar-dark .navbar-nav .active > .nav-link,
-.navbar-dark .navbar-nav .nav-link.show,
-.navbar-dark .navbar-nav .nav-link.active {
- color: #fff; }
-
-.navbar-dark .navbar-toggler {
- color: rgba(255, 255, 255, 0.5);
- border-color: rgba(255, 255, 255, 0.1); }
-
-.navbar-dark .navbar-toggler-icon {
- background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
-
-.navbar-dark .navbar-text {
- color: rgba(255, 255, 255, 0.5); }
- .navbar-dark .navbar-text a {
- color: #fff; }
- .navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus {
- color: #fff; }
-
-.card {
- position: relative;
- display: flex;
- flex-direction: column;
- min-width: 0;
- word-wrap: break-word;
- background-color: #fff;
- background-clip: border-box;
- border: 1px solid rgba(0, 0, 0, 0.125);
- border-radius: 0.25rem; }
- .card > hr {
- margin-right: 0;
- margin-left: 0; }
- .card > .list-group:first-child .list-group-item:first-child {
- border-top-left-radius: 0.25rem;
- border-top-right-radius: 0.25rem; }
- .card > .list-group:last-child .list-group-item:last-child {
- border-bottom-right-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem; }
-
-.card-body {
- flex: 1 1 auto;
- padding: 1.25rem; }
-
-.card-title {
- margin-bottom: 0.75rem; }
-
-.card-subtitle {
- margin-top: -0.375rem;
- margin-bottom: 0; }
-
-.card-text:last-child {
- margin-bottom: 0; }
-
-.card-link:hover {
- text-decoration: none; }
-
-.card-link + .card-link {
- margin-left: 1.25rem; }
-
-.card-header {
- padding: 0.75rem 1.25rem;
- margin-bottom: 0;
- background-color: rgba(0, 0, 0, 0.03);
- border-bottom: 1px solid rgba(0, 0, 0, 0.125); }
- .card-header:first-child {
- border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0; }
- .card-header + .list-group .list-group-item:first-child {
- border-top: 0; }
-
-.card-footer {
- padding: 0.75rem 1.25rem;
- background-color: rgba(0, 0, 0, 0.03);
- border-top: 1px solid rgba(0, 0, 0, 0.125); }
- .card-footer:last-child {
- border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); }
-
-.card-header-tabs {
- margin-right: -0.625rem;
- margin-bottom: -0.75rem;
- margin-left: -0.625rem;
- border-bottom: 0; }
-
-.card-header-pills {
- margin-right: -0.625rem;
- margin-left: -0.625rem; }
-
-.card-img-overlay {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: 1.25rem; }
-
-.card-img {
- width: 100%;
- border-radius: calc(0.25rem - 1px); }
-
-.card-img-top {
- width: 100%;
- border-top-left-radius: calc(0.25rem - 1px);
- border-top-right-radius: calc(0.25rem - 1px); }
-
-.card-img-bottom {
- width: 100%;
- border-bottom-right-radius: calc(0.25rem - 1px);
- border-bottom-left-radius: calc(0.25rem - 1px); }
-
-.card-deck {
- display: flex;
- flex-direction: column; }
- .card-deck .card {
- margin-bottom: 15px; }
- @media (min-width: 576px) {
- .card-deck {
- flex-flow: row wrap;
- margin-right: -15px;
- margin-left: -15px; }
- .card-deck .card {
- display: flex;
- flex: 1 0 0%;
- flex-direction: column;
- margin-right: 15px;
- margin-bottom: 0;
- margin-left: 15px; } }
-
-.card-group {
- display: flex;
- flex-direction: column; }
- .card-group > .card {
- margin-bottom: 15px; }
- @media (min-width: 576px) {
- .card-group {
- flex-flow: row wrap; }
- .card-group > .card {
- flex: 1 0 0%;
- margin-bottom: 0; }
- .card-group > .card + .card {
- margin-left: 0;
- border-left: 0; }
- .card-group > .card:not(:last-child) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0; }
- .card-group > .card:not(:last-child) .card-img-top,
- .card-group > .card:not(:last-child) .card-header {
- border-top-right-radius: 0; }
- .card-group > .card:not(:last-child) .card-img-bottom,
- .card-group > .card:not(:last-child) .card-footer {
- border-bottom-right-radius: 0; }
- .card-group > .card:not(:first-child) {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0; }
- .card-group > .card:not(:first-child) .card-img-top,
- .card-group > .card:not(:first-child) .card-header {
- border-top-left-radius: 0; }
- .card-group > .card:not(:first-child) .card-img-bottom,
- .card-group > .card:not(:first-child) .card-footer {
- border-bottom-left-radius: 0; } }
-
-.card-columns .card {
- margin-bottom: 0.75rem; }
-
-@media (min-width: 576px) {
- .card-columns {
- column-count: 3;
- column-gap: 1.25rem;
- orphans: 1;
- widows: 1; }
- .card-columns .card {
- display: inline-block;
- width: 100%; } }
-
-.accordion > .card {
- overflow: hidden; }
- .accordion > .card:not(:first-of-type) .card-header:first-child {
- border-radius: 0; }
- .accordion > .card:not(:first-of-type):not(:last-of-type) {
- border-bottom: 0;
- border-radius: 0; }
- .accordion > .card:first-of-type {
- border-bottom: 0;
- border-bottom-right-radius: 0;
- border-bottom-left-radius: 0; }
- .accordion > .card:last-of-type {
- border-top-left-radius: 0;
- border-top-right-radius: 0; }
- .accordion > .card .card-header {
- margin-bottom: -1px; }
-
-.breadcrumb {
- display: flex;
- flex-wrap: wrap;
- padding: 0.75rem 1rem;
- margin-bottom: 1rem;
- list-style: none;
- background-color: #e9ecef;
- border-radius: 0.25rem; }
-
-.breadcrumb-item + .breadcrumb-item {
- padding-left: 0.5rem; }
- .breadcrumb-item + .breadcrumb-item::before {
- display: inline-block;
- padding-right: 0.5rem;
- color: #6c757d;
- content: "/"; }
-
-.breadcrumb-item + .breadcrumb-item:hover::before {
- text-decoration: underline; }
-
-.breadcrumb-item + .breadcrumb-item:hover::before {
- text-decoration: none; }
-
-.breadcrumb-item.active {
- color: #6c757d; }
-
-.pagination {
- display: flex;
- padding-left: 0;
- list-style: none;
- border-radius: 0.25rem; }
-
-.page-link {
- position: relative;
- display: block;
- padding: 0.5rem 0.75rem;
- margin-left: -1px;
- line-height: 1.25;
- color: #007bff;
- background-color: #fff;
- border: 1px solid #dee2e6; }
- .page-link:hover {
- z-index: 2;
- color: #0056b3;
- text-decoration: none;
- background-color: #e9ecef;
- border-color: #dee2e6; }
- .page-link:focus {
- z-index: 2;
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
-
-.page-item:first-child .page-link {
- margin-left: 0;
- border-top-left-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem; }
-
-.page-item:last-child .page-link {
- border-top-right-radius: 0.25rem;
- border-bottom-right-radius: 0.25rem; }
-
-.page-item.active .page-link {
- z-index: 1;
- color: #fff;
- background-color: #007bff;
- border-color: #007bff; }
-
-.page-item.disabled .page-link {
- color: #6c757d;
- pointer-events: none;
- cursor: auto;
- background-color: #fff;
- border-color: #dee2e6; }
-
-.pagination-lg .page-link {
- padding: 0.75rem 1.5rem;
- font-size: 1.1875rem;
- line-height: 1.5; }
-
-.pagination-lg .page-item:first-child .page-link {
- border-top-left-radius: 0.3rem;
- border-bottom-left-radius: 0.3rem; }
-
-.pagination-lg .page-item:last-child .page-link {
- border-top-right-radius: 0.3rem;
- border-bottom-right-radius: 0.3rem; }
-
-.pagination-sm .page-link {
- padding: 0.25rem 0.5rem;
- font-size: 0.83125rem;
- line-height: 1.5; }
-
-.pagination-sm .page-item:first-child .page-link {
- border-top-left-radius: 0.2rem;
- border-bottom-left-radius: 0.2rem; }
-
-.pagination-sm .page-item:last-child .page-link {
- border-top-right-radius: 0.2rem;
- border-bottom-right-radius: 0.2rem; }
-
-.badge {
- display: inline-block;
- padding: 0.25em 0.4em;
- font-size: 75%;
- font-weight: 700;
- line-height: 1;
- text-align: center;
- white-space: nowrap;
- vertical-align: baseline;
- border-radius: 0.25rem;
- transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
- @media (prefers-reduced-motion: reduce) {
- .badge {
- transition: none; } }
- a.badge:hover, a.badge:focus {
- text-decoration: none; }
- .badge:empty {
- display: none; }
-
-.btn .badge {
- position: relative;
- top: -1px; }
-
-.badge-pill {
- padding-right: 0.6em;
- padding-left: 0.6em;
- border-radius: 10rem; }
-
-.badge-primary {
- color: #fff;
- background-color: #007bff; }
- a.badge-primary:hover, a.badge-primary:focus {
- color: #fff;
- background-color: #0062cc; }
- a.badge-primary:focus, a.badge-primary.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); }
-
-.badge-secondary {
- color: #fff;
- background-color: #6c757d; }
- a.badge-secondary:hover, a.badge-secondary:focus {
- color: #fff;
- background-color: #545b62; }
- a.badge-secondary:focus, a.badge-secondary.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); }
-
-.badge-success {
- color: #fff;
- background-color: #28a745; }
- a.badge-success:hover, a.badge-success:focus {
- color: #fff;
- background-color: #1e7e34; }
- a.badge-success:focus, a.badge-success.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5); }
-
-.badge-info {
- color: #fff;
- background-color: #17a2b8; }
- a.badge-info:hover, a.badge-info:focus {
- color: #fff;
- background-color: #117a8b; }
- a.badge-info:focus, a.badge-info.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5); }
-
-.badge-warning {
- color: #212529;
- background-color: #ffc107; }
- a.badge-warning:hover, a.badge-warning:focus {
- color: #212529;
- background-color: #d39e00; }
- a.badge-warning:focus, a.badge-warning.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5); }
-
-.badge-danger {
- color: #fff;
- background-color: #dc3545; }
- a.badge-danger:hover, a.badge-danger:focus {
- color: #fff;
- background-color: #bd2130; }
- a.badge-danger:focus, a.badge-danger.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); }
-
-.badge-light {
- color: #212529;
- background-color: #f8f9fa; }
- a.badge-light:hover, a.badge-light:focus {
- color: #212529;
- background-color: #dae0e5; }
- a.badge-light:focus, a.badge-light.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.5); }
-
-.badge-dark {
- color: #fff;
- background-color: #343a40; }
- a.badge-dark:hover, a.badge-dark:focus {
- color: #fff;
- background-color: #1d2124; }
- a.badge-dark:focus, a.badge-dark.focus {
- outline: 0;
- box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5); }
-
-.jumbotron {
- padding: 2rem 1rem;
- margin-bottom: 2rem;
- background-color: #e9ecef;
- border-radius: 0.3rem; }
- @media (min-width: 576px) {
- .jumbotron {
- padding: 4rem 2rem; } }
-
-.jumbotron-fluid {
- padding-right: 0;
- padding-left: 0;
- border-radius: 0; }
-
-.alert {
- position: relative;
- padding: 0.75rem 1.25rem;
- margin-bottom: 1rem;
- border: 1px solid transparent;
- border-radius: 0.25rem; }
-
-.alert-heading {
- color: inherit; }
-
-.alert-link {
- font-weight: 700; }
-
-.alert-dismissible {
- padding-right: 3.925rem; }
- .alert-dismissible .close {
- position: absolute;
- top: 0;
- right: 0;
- padding: 0.75rem 1.25rem;
- color: inherit; }
-
-.alert-primary {
- color: #004085;
- background-color: #cce5ff;
- border-color: #b8daff; }
- .alert-primary hr {
- border-top-color: #9fcdff; }
- .alert-primary .alert-link {
- color: #002752; }
-
-.alert-secondary {
- color: #383d41;
- background-color: #e2e3e5;
- border-color: #d6d8db; }
- .alert-secondary hr {
- border-top-color: #c8cbcf; }
- .alert-secondary .alert-link {
- color: #202326; }
-
-.alert-success {
- color: #155724;
- background-color: #d4edda;
- border-color: #c3e6cb; }
- .alert-success hr {
- border-top-color: #b1dfbb; }
- .alert-success .alert-link {
- color: #0b2e13; }
-
-.alert-info {
- color: #0c5460;
- background-color: #d1ecf1;
- border-color: #bee5eb; }
- .alert-info hr {
- border-top-color: #abdde5; }
- .alert-info .alert-link {
- color: #062c33; }
-
-.alert-warning {
- color: #856404;
- background-color: #fff3cd;
- border-color: #ffeeba; }
- .alert-warning hr {
- border-top-color: #ffe8a1; }
- .alert-warning .alert-link {
- color: #533f03; }
-
-.alert-danger {
- color: #721c24;
- background-color: #f8d7da;
- border-color: #f5c6cb; }
- .alert-danger hr {
- border-top-color: #f1b0b7; }
- .alert-danger .alert-link {
- color: #491217; }
-
-.alert-light {
- color: #818182;
- background-color: #fefefe;
- border-color: #fdfdfe; }
- .alert-light hr {
- border-top-color: #ececf6; }
- .alert-light .alert-link {
- color: #686868; }
-
-.alert-dark {
- color: #1b1e21;
- background-color: #d6d8d9;
- border-color: #c6c8ca; }
- .alert-dark hr {
- border-top-color: #b9bbbe; }
- .alert-dark .alert-link {
- color: #040505; }
-
-@keyframes progress-bar-stripes {
- from {
- background-position: 1rem 0; }
- to {
- background-position: 0 0; } }
-
-.progress {
- display: flex;
- height: 1rem;
- overflow: hidden;
- font-size: 0.7125rem;
- background-color: #e9ecef;
- border-radius: 0.25rem; }
-
-.progress-bar {
- display: flex;
- flex-direction: column;
- justify-content: center;
- color: #fff;
- text-align: center;
- white-space: nowrap;
- background-color: #007bff;
- transition: width 0.6s ease; }
- @media (prefers-reduced-motion: reduce) {
- .progress-bar {
- transition: none; } }
-
-.progress-bar-striped {
- background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
- background-size: 1rem 1rem; }
-
-.progress-bar-animated {
- animation: progress-bar-stripes 1s linear infinite; }
- @media (prefers-reduced-motion: reduce) {
- .progress-bar-animated {
- animation: none; } }
-
-.media {
- display: flex;
- align-items: flex-start; }
-
-.media-body {
- flex: 1; }
-
-.list-group {
- display: flex;
- flex-direction: column;
- padding-left: 0;
- margin-bottom: 0; }
-
-.list-group-item-action {
- width: 100%;
- color: #495057;
- text-align: inherit; }
- .list-group-item-action:hover, .list-group-item-action:focus {
- z-index: 1;
- color: #495057;
- text-decoration: none;
- background-color: #f8f9fa; }
- .list-group-item-action:active {
- color: #212529;
- background-color: #e9ecef; }
-
-.list-group-item {
- position: relative;
- display: block;
- padding: 0.75rem 1.25rem;
- margin-bottom: -1px;
- background-color: #fff;
- border: 1px solid rgba(0, 0, 0, 0.125); }
- .list-group-item:first-child {
- border-top-left-radius: 0.25rem;
- border-top-right-radius: 0.25rem; }
- .list-group-item:last-child {
- margin-bottom: 0;
- border-bottom-right-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem; }
- .list-group-item.disabled, .list-group-item:disabled {
- color: #6c757d;
- pointer-events: none;
- background-color: #fff; }
- .list-group-item.active {
- z-index: 2;
- color: #fff;
- background-color: #007bff;
- border-color: #007bff; }
-
-.list-group-horizontal {
- flex-direction: row; }
- .list-group-horizontal .list-group-item {
- margin-right: -1px;
- margin-bottom: 0; }
- .list-group-horizontal .list-group-item:first-child {
- border-top-left-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem;
- border-top-right-radius: 0; }
- .list-group-horizontal .list-group-item:last-child {
- margin-right: 0;
- border-top-right-radius: 0.25rem;
- border-bottom-right-radius: 0.25rem;
- border-bottom-left-radius: 0; }
-
-@media (min-width: 576px) {
- .list-group-horizontal-sm {
- flex-direction: row; }
- .list-group-horizontal-sm .list-group-item {
- margin-right: -1px;
- margin-bottom: 0; }
- .list-group-horizontal-sm .list-group-item:first-child {
- border-top-left-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem;
- border-top-right-radius: 0; }
- .list-group-horizontal-sm .list-group-item:last-child {
- margin-right: 0;
- border-top-right-radius: 0.25rem;
- border-bottom-right-radius: 0.25rem;
- border-bottom-left-radius: 0; } }
-
-@media (min-width: 768px) {
- .list-group-horizontal-md {
- flex-direction: row; }
- .list-group-horizontal-md .list-group-item {
- margin-right: -1px;
- margin-bottom: 0; }
- .list-group-horizontal-md .list-group-item:first-child {
- border-top-left-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem;
- border-top-right-radius: 0; }
- .list-group-horizontal-md .list-group-item:last-child {
- margin-right: 0;
- border-top-right-radius: 0.25rem;
- border-bottom-right-radius: 0.25rem;
- border-bottom-left-radius: 0; } }
-
-@media (min-width: 992px) {
- .list-group-horizontal-lg {
- flex-direction: row; }
- .list-group-horizontal-lg .list-group-item {
- margin-right: -1px;
- margin-bottom: 0; }
- .list-group-horizontal-lg .list-group-item:first-child {
- border-top-left-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem;
- border-top-right-radius: 0; }
- .list-group-horizontal-lg .list-group-item:last-child {
- margin-right: 0;
- border-top-right-radius: 0.25rem;
- border-bottom-right-radius: 0.25rem;
- border-bottom-left-radius: 0; } }
-
-@media (min-width: 1200px) {
- .list-group-horizontal-xl {
- flex-direction: row; }
- .list-group-horizontal-xl .list-group-item {
- margin-right: -1px;
- margin-bottom: 0; }
- .list-group-horizontal-xl .list-group-item:first-child {
- border-top-left-radius: 0.25rem;
- border-bottom-left-radius: 0.25rem;
- border-top-right-radius: 0; }
- .list-group-horizontal-xl .list-group-item:last-child {
- margin-right: 0;
- border-top-right-radius: 0.25rem;
- border-bottom-right-radius: 0.25rem;
- border-bottom-left-radius: 0; } }
-
-.list-group-flush .list-group-item {
- border-right: 0;
- border-left: 0;
- border-radius: 0; }
- .list-group-flush .list-group-item:last-child {
- margin-bottom: -1px; }
-
-.list-group-flush:first-child .list-group-item:first-child {
- border-top: 0; }
-
-.list-group-flush:last-child .list-group-item:last-child {
- margin-bottom: 0;
- border-bottom: 0; }
-
-.list-group-item-primary {
- color: #004085;
- background-color: #b8daff; }
- .list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus {
- color: #004085;
- background-color: #9fcdff; }
- .list-group-item-primary.list-group-item-action.active {
- color: #fff;
- background-color: #004085;
- border-color: #004085; }
-
-.list-group-item-secondary {
- color: #383d41;
- background-color: #d6d8db; }
- .list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus {
- color: #383d41;
- background-color: #c8cbcf; }
- .list-group-item-secondary.list-group-item-action.active {
- color: #fff;
- background-color: #383d41;
- border-color: #383d41; }
-
-.list-group-item-success {
- color: #155724;
- background-color: #c3e6cb; }
- .list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus {
- color: #155724;
- background-color: #b1dfbb; }
- .list-group-item-success.list-group-item-action.active {
- color: #fff;
- background-color: #155724;
- border-color: #155724; }
-
-.list-group-item-info {
- color: #0c5460;
- background-color: #bee5eb; }
- .list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus {
- color: #0c5460;
- background-color: #abdde5; }
- .list-group-item-info.list-group-item-action.active {
- color: #fff;
- background-color: #0c5460;
- border-color: #0c5460; }
-
-.list-group-item-warning {
- color: #856404;
- background-color: #ffeeba; }
- .list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus {
- color: #856404;
- background-color: #ffe8a1; }
- .list-group-item-warning.list-group-item-action.active {
- color: #fff;
- background-color: #856404;
- border-color: #856404; }
-
-.list-group-item-danger {
- color: #721c24;
- background-color: #f5c6cb; }
- .list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus {
- color: #721c24;
- background-color: #f1b0b7; }
- .list-group-item-danger.list-group-item-action.active {
- color: #fff;
- background-color: #721c24;
- border-color: #721c24; }
-
-.list-group-item-light {
- color: #818182;
- background-color: #fdfdfe; }
- .list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus {
- color: #818182;
- background-color: #ececf6; }
- .list-group-item-light.list-group-item-action.active {
- color: #fff;
- background-color: #818182;
- border-color: #818182; }
-
-.list-group-item-dark {
- color: #1b1e21;
- background-color: #c6c8ca; }
- .list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus {
- color: #1b1e21;
- background-color: #b9bbbe; }
- .list-group-item-dark.list-group-item-action.active {
- color: #fff;
- background-color: #1b1e21;
- border-color: #1b1e21; }
-
-.close {
- float: right;
- font-size: 1.425rem;
- font-weight: 700;
- line-height: 1;
- color: #000;
- text-shadow: 0 1px 0 #fff;
- opacity: .5; }
- .close:hover {
- color: #000;
- text-decoration: none; }
- .close:not(:disabled):not(.disabled):hover, .close:not(:disabled):not(.disabled):focus {
- opacity: .75; }
-
-button.close {
- padding: 0;
- background-color: transparent;
- border: 0;
- appearance: none; }
-
-a.close.disabled {
- pointer-events: none; }
-
-.toast {
- max-width: 350px;
- overflow: hidden;
- font-size: 0.875rem;
- background-color: rgba(255, 255, 255, 0.85);
- background-clip: padding-box;
- border: 1px solid rgba(0, 0, 0, 0.1);
- box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
- backdrop-filter: blur(10px);
- opacity: 0;
- border-radius: 0.25rem; }
- .toast:not(:last-child) {
- margin-bottom: 0.75rem; }
- .toast.showing {
- opacity: 1; }
- .toast.show {
- display: block;
- opacity: 1; }
- .toast.hide {
- display: none; }
-
-.toast-header {
- display: flex;
- align-items: center;
- padding: 0.25rem 0.75rem;
- color: #6c757d;
- background-color: rgba(255, 255, 255, 0.85);
- background-clip: padding-box;
- border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
-
-.toast-body {
- padding: 0.75rem; }
-
-.modal-open {
- overflow: hidden; }
- .modal-open .modal {
- overflow-x: hidden;
- overflow-y: auto; }
-
-.modal {
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1050;
- display: none;
- width: 100%;
- height: 100%;
- overflow: hidden;
- outline: 0; }
-
-.modal-dialog {
- position: relative;
- width: auto;
- margin: 0.5rem;
- pointer-events: none; }
- .modal.fade .modal-dialog {
- transition: transform 0.3s ease-out;
- transform: translate(0, -50px); }
- @media (prefers-reduced-motion: reduce) {
- .modal.fade .modal-dialog {
- transition: none; } }
- .modal.show .modal-dialog {
- transform: none; }
-
-.modal-dialog-scrollable {
- display: flex;
- max-height: calc(100% - 1rem); }
- .modal-dialog-scrollable .modal-content {
- max-height: calc(100vh - 1rem);
- overflow: hidden; }
- .modal-dialog-scrollable .modal-header,
- .modal-dialog-scrollable .modal-footer {
- flex-shrink: 0; }
- .modal-dialog-scrollable .modal-body {
- overflow-y: auto; }
-
-.modal-dialog-centered {
- display: flex;
- align-items: center;
- min-height: calc(100% - 1rem); }
- .modal-dialog-centered::before {
- display: block;
- height: calc(100vh - 1rem);
- content: ""; }
- .modal-dialog-centered.modal-dialog-scrollable {
- flex-direction: column;
- justify-content: center;
- height: 100%; }
- .modal-dialog-centered.modal-dialog-scrollable .modal-content {
- max-height: none; }
- .modal-dialog-centered.modal-dialog-scrollable::before {
- content: none; }
-
-.modal-content {
- position: relative;
- display: flex;
- flex-direction: column;
- width: 100%;
- pointer-events: auto;
- background-color: #fff;
- background-clip: padding-box;
- border: 1px solid rgba(0, 0, 0, 0.2);
- border-radius: 0.3rem;
- outline: 0; }
-
-.modal-backdrop {
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1040;
- width: 100vw;
- height: 100vh;
- background-color: #000; }
- .modal-backdrop.fade {
- opacity: 0; }
- .modal-backdrop.show {
- opacity: 0.5; }
-
-.modal-header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- padding: 1rem 1rem;
- border-bottom: 1px solid #dee2e6;
- border-top-left-radius: 0.3rem;
- border-top-right-radius: 0.3rem; }
- .modal-header .close {
- padding: 1rem 1rem;
- margin: -1rem -1rem -1rem auto; }
-
-.modal-title {
- margin-bottom: 0;
- line-height: 1.5; }
-
-.modal-body {
- position: relative;
- flex: 1 1 auto;
- padding: 1rem; }
-
-.modal-footer {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- padding: 1rem;
- border-top: 1px solid #dee2e6;
- border-bottom-right-radius: 0.3rem;
- border-bottom-left-radius: 0.3rem; }
- .modal-footer > :not(:first-child) {
- margin-left: .25rem; }
- .modal-footer > :not(:last-child) {
- margin-right: .25rem; }
-
-.modal-scrollbar-measure {
- position: absolute;
- top: -9999px;
- width: 50px;
- height: 50px;
- overflow: scroll; }
-
-@media (min-width: 576px) {
- .modal-dialog {
- max-width: 500px;
- margin: 1.75rem auto; }
- .modal-dialog-scrollable {
- max-height: calc(100% - 3.5rem); }
- .modal-dialog-scrollable .modal-content {
- max-height: calc(100vh - 3.5rem); }
- .modal-dialog-centered {
- min-height: calc(100% - 3.5rem); }
- .modal-dialog-centered::before {
- height: calc(100vh - 3.5rem); }
- .modal-sm {
- max-width: 300px; } }
-
-@media (min-width: 992px) {
- .modal-lg,
- .modal-xl {
- max-width: 800px; } }
-
-@media (min-width: 1200px) {
- .modal-xl {
- max-width: 1140px; } }
-
-.tooltip {
- position: absolute;
- z-index: 1070;
- display: block;
- margin: 0;
- font-family: "Helvetica Neue", Arial, sans-serif;
- font-style: normal;
- font-weight: 400;
- line-height: 1.5;
- text-align: left;
- text-align: start;
- text-decoration: none;
- text-shadow: none;
- text-transform: none;
- letter-spacing: normal;
- word-break: normal;
- word-spacing: normal;
- white-space: normal;
- line-break: auto;
- font-size: 0.83125rem;
- word-wrap: break-word;
- opacity: 0; }
- .tooltip.show {
- opacity: 0.9; }
- .tooltip .arrow {
- position: absolute;
- display: block;
- width: 0.8rem;
- height: 0.4rem; }
- .tooltip .arrow::before {
- position: absolute;
- content: "";
- border-color: transparent;
- border-style: solid; }
-
-.bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] {
- padding: 0.4rem 0; }
- .bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow {
- bottom: 0; }
- .bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before {
- top: 0;
- border-width: 0.4rem 0.4rem 0;
- border-top-color: #000; }
-
-.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] {
- padding: 0 0.4rem; }
- .bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow {
- left: 0;
- width: 0.4rem;
- height: 0.8rem; }
- .bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before {
- right: 0;
- border-width: 0.4rem 0.4rem 0.4rem 0;
- border-right-color: #000; }
-
-.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] {
- padding: 0.4rem 0; }
- .bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow {
- top: 0; }
- .bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
- bottom: 0;
- border-width: 0 0.4rem 0.4rem;
- border-bottom-color: #000; }
-
-.bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] {
- padding: 0 0.4rem; }
- .bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow {
- right: 0;
- width: 0.4rem;
- height: 0.8rem; }
- .bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before {
- left: 0;
- border-width: 0.4rem 0 0.4rem 0.4rem;
- border-left-color: #000; }
-
-.tooltip-inner {
- max-width: 200px;
- padding: 0.25rem 0.5rem;
- color: #fff;
- text-align: center;
- background-color: #000;
- border-radius: 0.25rem; }
-
-.popover {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1060;
- display: block;
- max-width: 276px;
- font-family: "Helvetica Neue", Arial, sans-serif;
- font-style: normal;
- font-weight: 400;
- line-height: 1.5;
- text-align: left;
- text-align: start;
- text-decoration: none;
- text-shadow: none;
- text-transform: none;
- letter-spacing: normal;
- word-break: normal;
- word-spacing: normal;
- white-space: normal;
- line-break: auto;
- font-size: 0.83125rem;
- word-wrap: break-word;
- background-color: #fff;
- background-clip: padding-box;
- border: 1px solid rgba(0, 0, 0, 0.2);
- border-radius: 0.3rem; }
- .popover .arrow {
- position: absolute;
- display: block;
- width: 1rem;
- height: 0.5rem;
- margin: 0 0.3rem; }
- .popover .arrow::before, .popover .arrow::after {
- position: absolute;
- display: block;
- content: "";
- border-color: transparent;
- border-style: solid; }
-
-.bs-popover-top, .bs-popover-auto[x-placement^="top"] {
- margin-bottom: 0.5rem; }
- .bs-popover-top > .arrow, .bs-popover-auto[x-placement^="top"] > .arrow {
- bottom: calc((0.5rem + 1px) * -1); }
- .bs-popover-top > .arrow::before, .bs-popover-auto[x-placement^="top"] > .arrow::before {
- bottom: 0;
- border-width: 0.5rem 0.5rem 0;
- border-top-color: rgba(0, 0, 0, 0.25); }
- .bs-popover-top > .arrow::after, .bs-popover-auto[x-placement^="top"] > .arrow::after {
- bottom: 1px;
- border-width: 0.5rem 0.5rem 0;
- border-top-color: #fff; }
-
-.bs-popover-right, .bs-popover-auto[x-placement^="right"] {
- margin-left: 0.5rem; }
- .bs-popover-right > .arrow, .bs-popover-auto[x-placement^="right"] > .arrow {
- left: calc((0.5rem + 1px) * -1);
- width: 0.5rem;
- height: 1rem;
- margin: 0.3rem 0; }
- .bs-popover-right > .arrow::before, .bs-popover-auto[x-placement^="right"] > .arrow::before {
- left: 0;
- border-width: 0.5rem 0.5rem 0.5rem 0;
- border-right-color: rgba(0, 0, 0, 0.25); }
- .bs-popover-right > .arrow::after, .bs-popover-auto[x-placement^="right"] > .arrow::after {
- left: 1px;
- border-width: 0.5rem 0.5rem 0.5rem 0;
- border-right-color: #fff; }
-
-.bs-popover-bottom, .bs-popover-auto[x-placement^="bottom"] {
- margin-top: 0.5rem; }
- .bs-popover-bottom > .arrow, .bs-popover-auto[x-placement^="bottom"] > .arrow {
- top: calc((0.5rem + 1px) * -1); }
- .bs-popover-bottom > .arrow::before, .bs-popover-auto[x-placement^="bottom"] > .arrow::before {
- top: 0;
- border-width: 0 0.5rem 0.5rem 0.5rem;
- border-bottom-color: rgba(0, 0, 0, 0.25); }
- .bs-popover-bottom > .arrow::after, .bs-popover-auto[x-placement^="bottom"] > .arrow::after {
- top: 1px;
- border-width: 0 0.5rem 0.5rem 0.5rem;
- border-bottom-color: #fff; }
- .bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^="bottom"] .popover-header::before {
- position: absolute;
- top: 0;
- left: 50%;
- display: block;
- width: 1rem;
- margin-left: -0.5rem;
- content: "";
- border-bottom: 1px solid #f7f7f7; }
-
-.bs-popover-left, .bs-popover-auto[x-placement^="left"] {
- margin-right: 0.5rem; }
- .bs-popover-left > .arrow, .bs-popover-auto[x-placement^="left"] > .arrow {
- right: calc((0.5rem + 1px) * -1);
- width: 0.5rem;
- height: 1rem;
- margin: 0.3rem 0; }
- .bs-popover-left > .arrow::before, .bs-popover-auto[x-placement^="left"] > .arrow::before {
- right: 0;
- border-width: 0.5rem 0 0.5rem 0.5rem;
- border-left-color: rgba(0, 0, 0, 0.25); }
- .bs-popover-left > .arrow::after, .bs-popover-auto[x-placement^="left"] > .arrow::after {
- right: 1px;
- border-width: 0.5rem 0 0.5rem 0.5rem;
- border-left-color: #fff; }
-
-.popover-header {
- padding: 0.5rem 0.75rem;
- margin-bottom: 0;
- font-size: 0.95rem;
- background-color: #f7f7f7;
- border-bottom: 1px solid #ebebeb;
- border-top-left-radius: calc(0.3rem - 1px);
- border-top-right-radius: calc(0.3rem - 1px); }
- .popover-header:empty {
- display: none; }
-
-.popover-body {
- padding: 0.5rem 0.75rem;
- color: #212529; }
-
-.carousel {
- position: relative; }
-
-.carousel.pointer-event {
- touch-action: pan-y; }
-
-.carousel-inner {
- position: relative;
- width: 100%;
- overflow: hidden; }
- .carousel-inner::after {
- display: block;
- clear: both;
- content: ""; }
-
-.carousel-item {
- position: relative;
- display: none;
- float: left;
- width: 100%;
- margin-right: -100%;
- backface-visibility: hidden;
- transition: transform 0.6s ease-in-out; }
- @media (prefers-reduced-motion: reduce) {
- .carousel-item {
- transition: none; } }
-
-.carousel-item.active,
-.carousel-item-next,
-.carousel-item-prev {
- display: block; }
-
-.carousel-item-next:not(.carousel-item-left),
-.active.carousel-item-right {
- transform: translateX(100%); }
-
-.carousel-item-prev:not(.carousel-item-right),
-.active.carousel-item-left {
- transform: translateX(-100%); }
-
-.carousel-fade .carousel-item {
- opacity: 0;
- transition-property: opacity;
- transform: none; }
-
-.carousel-fade .carousel-item.active,
-.carousel-fade .carousel-item-next.carousel-item-left,
-.carousel-fade .carousel-item-prev.carousel-item-right {
- z-index: 1;
- opacity: 1; }
-
-.carousel-fade .active.carousel-item-left,
-.carousel-fade .active.carousel-item-right {
- z-index: 0;
- opacity: 0;
- transition: 0s 0.6s opacity; }
- @media (prefers-reduced-motion: reduce) {
- .carousel-fade .active.carousel-item-left,
- .carousel-fade .active.carousel-item-right {
- transition: none; } }
-
-.carousel-control-prev,
-.carousel-control-next {
- position: absolute;
- top: 0;
- bottom: 0;
- z-index: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 15%;
- color: #fff;
- text-align: center;
- opacity: 0.5;
- transition: opacity 0.15s ease; }
- @media (prefers-reduced-motion: reduce) {
- .carousel-control-prev,
- .carousel-control-next {
- transition: none; } }
- .carousel-control-prev:hover, .carousel-control-prev:focus,
- .carousel-control-next:hover,
- .carousel-control-next:focus {
- color: #fff;
- text-decoration: none;
- outline: 0;
- opacity: 0.9; }
-
-.carousel-control-prev {
- left: 0; }
-
-.carousel-control-next {
- right: 0; }
-
-.carousel-control-prev-icon,
-.carousel-control-next-icon {
- display: inline-block;
- width: 20px;
- height: 20px;
- background: no-repeat 50% / 100% 100%; }
-
-.carousel-control-prev-icon {
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e"); }
-
-.carousel-control-next-icon {
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e"); }
-
-.carousel-indicators {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 15;
- display: flex;
- justify-content: center;
- padding-left: 0;
- margin-right: 15%;
- margin-left: 15%;
- list-style: none; }
- .carousel-indicators li {
- box-sizing: content-box;
- flex: 0 1 auto;
- width: 30px;
- height: 3px;
- margin-right: 3px;
- margin-left: 3px;
- text-indent: -999px;
- cursor: pointer;
- background-color: #fff;
- background-clip: padding-box;
- border-top: 10px solid transparent;
- border-bottom: 10px solid transparent;
- opacity: .5;
- transition: opacity 0.6s ease; }
- @media (prefers-reduced-motion: reduce) {
- .carousel-indicators li {
- transition: none; } }
- .carousel-indicators .active {
- opacity: 1; }
-
-.carousel-caption {
- position: absolute;
- right: 15%;
- bottom: 20px;
- left: 15%;
- z-index: 10;
- padding-top: 20px;
- padding-bottom: 20px;
- color: #fff;
- text-align: center; }
-
-@keyframes spinner-border {
- to {
- transform: rotate(360deg); } }
-
-.spinner-border {
- display: inline-block;
- width: 2rem;
- height: 2rem;
- vertical-align: text-bottom;
- border: 0.25em solid currentColor;
- border-right-color: transparent;
- border-radius: 50%;
- animation: spinner-border .75s linear infinite; }
-
-.spinner-border-sm {
- width: 1rem;
- height: 1rem;
- border-width: 0.2em; }
-
-@keyframes spinner-grow {
- 0% {
- transform: scale(0); }
- 50% {
- opacity: 1; } }
-
-.spinner-grow {
- display: inline-block;
- width: 2rem;
- height: 2rem;
- vertical-align: text-bottom;
- background-color: currentColor;
- border-radius: 50%;
- opacity: 0;
- animation: spinner-grow .75s linear infinite; }
-
-.spinner-grow-sm {
- width: 1rem;
- height: 1rem; }
-
-.align-baseline {
- vertical-align: baseline !important; }
-
-.align-top {
- vertical-align: top !important; }
-
-.align-middle {
- vertical-align: middle !important; }
-
-.align-bottom {
- vertical-align: bottom !important; }
-
-.align-text-bottom {
- vertical-align: text-bottom !important; }
-
-.align-text-top {
- vertical-align: text-top !important; }
-
-.bg-primary {
- background-color: #007bff !important; }
-
-a.bg-primary:hover, a.bg-primary:focus,
-button.bg-primary:hover,
-button.bg-primary:focus {
- background-color: #0062cc !important; }
-
-.bg-secondary {
- background-color: #6c757d !important; }
-
-a.bg-secondary:hover, a.bg-secondary:focus,
-button.bg-secondary:hover,
-button.bg-secondary:focus {
- background-color: #545b62 !important; }
-
-.bg-success {
- background-color: #28a745 !important; }
-
-a.bg-success:hover, a.bg-success:focus,
-button.bg-success:hover,
-button.bg-success:focus {
- background-color: #1e7e34 !important; }
-
-.bg-info {
- background-color: #17a2b8 !important; }
-
-a.bg-info:hover, a.bg-info:focus,
-button.bg-info:hover,
-button.bg-info:focus {
- background-color: #117a8b !important; }
-
-.bg-warning {
- background-color: #ffc107 !important; }
-
-a.bg-warning:hover, a.bg-warning:focus,
-button.bg-warning:hover,
-button.bg-warning:focus {
- background-color: #d39e00 !important; }
-
-.bg-danger {
- background-color: #dc3545 !important; }
-
-a.bg-danger:hover, a.bg-danger:focus,
-button.bg-danger:hover,
-button.bg-danger:focus {
- background-color: #bd2130 !important; }
-
-.bg-light {
- background-color: #f8f9fa !important; }
-
-a.bg-light:hover, a.bg-light:focus,
-button.bg-light:hover,
-button.bg-light:focus {
- background-color: #dae0e5 !important; }
-
-.bg-dark {
- background-color: #343a40 !important; }
-
-a.bg-dark:hover, a.bg-dark:focus,
-button.bg-dark:hover,
-button.bg-dark:focus {
- background-color: #1d2124 !important; }
-
-.bg-white {
- background-color: #fff !important; }
-
-.bg-transparent {
- background-color: transparent !important; }
-
-.border {
- border: 1px solid #dee2e6 !important; }
-
-.border-top {
- border-top: 1px solid #dee2e6 !important; }
-
-.border-right {
- border-right: 1px solid #dee2e6 !important; }
-
-.border-bottom {
- border-bottom: 1px solid #dee2e6 !important; }
-
-.border-left {
- border-left: 1px solid #dee2e6 !important; }
-
-.border-0 {
- border: 0 !important; }
-
-.border-top-0 {
- border-top: 0 !important; }
-
-.border-right-0 {
- border-right: 0 !important; }
-
-.border-bottom-0 {
- border-bottom: 0 !important; }
-
-.border-left-0 {
- border-left: 0 !important; }
-
-.border-primary {
- border-color: #007bff !important; }
-
-.border-secondary {
- border-color: #6c757d !important; }
-
-.border-success {
- border-color: #28a745 !important; }
-
-.border-info {
- border-color: #17a2b8 !important; }
-
-.border-warning {
- border-color: #ffc107 !important; }
-
-.border-danger {
- border-color: #dc3545 !important; }
-
-.border-light {
- border-color: #f8f9fa !important; }
-
-.border-dark {
- border-color: #343a40 !important; }
-
-.border-white {
- border-color: #fff !important; }
-
-.rounded-sm {
- border-radius: 0.2rem !important; }
-
-.rounded {
- border-radius: 0.25rem !important; }
-
-.rounded-top {
- border-top-left-radius: 0.25rem !important;
- border-top-right-radius: 0.25rem !important; }
-
-.rounded-right {
- border-top-right-radius: 0.25rem !important;
- border-bottom-right-radius: 0.25rem !important; }
-
-.rounded-bottom {
- border-bottom-right-radius: 0.25rem !important;
- border-bottom-left-radius: 0.25rem !important; }
-
-.rounded-left {
- border-top-left-radius: 0.25rem !important;
- border-bottom-left-radius: 0.25rem !important; }
-
-.rounded-lg {
- border-radius: 0.3rem !important; }
-
-.rounded-circle {
- border-radius: 50% !important; }
-
-.rounded-pill {
- border-radius: 50rem !important; }
-
-.rounded-0 {
- border-radius: 0 !important; }
-
-.clearfix::after {
- display: block;
- clear: both;
- content: ""; }
-
-.d-none {
- display: none !important; }
-
-.d-inline {
- display: inline !important; }
-
-.d-inline-block {
- display: inline-block !important; }
-
-.d-block {
- display: block !important; }
-
-.d-table {
- display: table !important; }
-
-.d-table-row {
- display: table-row !important; }
-
-.d-table-cell {
- display: table-cell !important; }
-
-.d-flex {
- display: flex !important; }
-
-.d-inline-flex {
- display: inline-flex !important; }
-
-@media (min-width: 576px) {
- .d-sm-none {
- display: none !important; }
- .d-sm-inline {
- display: inline !important; }
- .d-sm-inline-block {
- display: inline-block !important; }
- .d-sm-block {
- display: block !important; }
- .d-sm-table {
- display: table !important; }
- .d-sm-table-row {
- display: table-row !important; }
- .d-sm-table-cell {
- display: table-cell !important; }
- .d-sm-flex {
- display: flex !important; }
- .d-sm-inline-flex {
- display: inline-flex !important; } }
-
-@media (min-width: 768px) {
- .d-md-none {
- display: none !important; }
- .d-md-inline {
- display: inline !important; }
- .d-md-inline-block {
- display: inline-block !important; }
- .d-md-block {
- display: block !important; }
- .d-md-table {
- display: table !important; }
- .d-md-table-row {
- display: table-row !important; }
- .d-md-table-cell {
- display: table-cell !important; }
- .d-md-flex {
- display: flex !important; }
- .d-md-inline-flex {
- display: inline-flex !important; } }
-
-@media (min-width: 992px) {
- .d-lg-none {
- display: none !important; }
- .d-lg-inline {
- display: inline !important; }
- .d-lg-inline-block {
- display: inline-block !important; }
- .d-lg-block {
- display: block !important; }
- .d-lg-table {
- display: table !important; }
- .d-lg-table-row {
- display: table-row !important; }
- .d-lg-table-cell {
- display: table-cell !important; }
- .d-lg-flex {
- display: flex !important; }
- .d-lg-inline-flex {
- display: inline-flex !important; } }
-
-@media (min-width: 1200px) {
- .d-xl-none {
- display: none !important; }
- .d-xl-inline {
- display: inline !important; }
- .d-xl-inline-block {
- display: inline-block !important; }
- .d-xl-block {
- display: block !important; }
- .d-xl-table {
- display: table !important; }
- .d-xl-table-row {
- display: table-row !important; }
- .d-xl-table-cell {
- display: table-cell !important; }
- .d-xl-flex {
- display: flex !important; }
- .d-xl-inline-flex {
- display: inline-flex !important; } }
-
-@media print {
- .d-print-none {
- display: none !important; }
- .d-print-inline {
- display: inline !important; }
- .d-print-inline-block {
- display: inline-block !important; }
- .d-print-block {
- display: block !important; }
- .d-print-table {
- display: table !important; }
- .d-print-table-row {
- display: table-row !important; }
- .d-print-table-cell {
- display: table-cell !important; }
- .d-print-flex {
- display: flex !important; }
- .d-print-inline-flex {
- display: inline-flex !important; } }
-
-.embed-responsive {
- position: relative;
- display: block;
- width: 100%;
- padding: 0;
- overflow: hidden; }
- .embed-responsive::before {
- display: block;
- content: ""; }
- .embed-responsive .embed-responsive-item,
- .embed-responsive iframe,
- .embed-responsive embed,
- .embed-responsive object,
- .embed-responsive video {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 100%;
- border: 0; }
-
-.embed-responsive-21by9::before {
- padding-top: 42.85714%; }
-
-.embed-responsive-16by9::before {
- padding-top: 56.25%; }
-
-.embed-responsive-4by3::before {
- padding-top: 75%; }
-
-.embed-responsive-1by1::before {
- padding-top: 100%; }
-
-.flex-row {
- flex-direction: row !important; }
-
-.flex-column {
- flex-direction: column !important; }
-
-.flex-row-reverse {
- flex-direction: row-reverse !important; }
-
-.flex-column-reverse {
- flex-direction: column-reverse !important; }
-
-.flex-wrap {
- flex-wrap: wrap !important; }
-
-.flex-nowrap {
- flex-wrap: nowrap !important; }
-
-.flex-wrap-reverse {
- flex-wrap: wrap-reverse !important; }
-
-.flex-fill {
- flex: 1 1 auto !important; }
-
-.flex-grow-0 {
- flex-grow: 0 !important; }
-
-.flex-grow-1 {
- flex-grow: 1 !important; }
-
-.flex-shrink-0 {
- flex-shrink: 0 !important; }
-
-.flex-shrink-1 {
- flex-shrink: 1 !important; }
-
-.justify-content-start {
- justify-content: flex-start !important; }
-
-.justify-content-end {
- justify-content: flex-end !important; }
-
-.justify-content-center {
- justify-content: center !important; }
-
-.justify-content-between {
- justify-content: space-between !important; }
-
-.justify-content-around {
- justify-content: space-around !important; }
-
-.align-items-start {
- align-items: flex-start !important; }
-
-.align-items-end {
- align-items: flex-end !important; }
-
-.align-items-center {
- align-items: center !important; }
-
-.align-items-baseline {
- align-items: baseline !important; }
-
-.align-items-stretch {
- align-items: stretch !important; }
-
-.align-content-start {
- align-content: flex-start !important; }
-
-.align-content-end {
- align-content: flex-end !important; }
-
-.align-content-center {
- align-content: center !important; }
-
-.align-content-between {
- align-content: space-between !important; }
-
-.align-content-around {
- align-content: space-around !important; }
-
-.align-content-stretch {
- align-content: stretch !important; }
-
-.align-self-auto {
- align-self: auto !important; }
-
-.align-self-start {
- align-self: flex-start !important; }
-
-.align-self-end {
- align-self: flex-end !important; }
-
-.align-self-center {
- align-self: center !important; }
-
-.align-self-baseline {
- align-self: baseline !important; }
-
-.align-self-stretch {
- align-self: stretch !important; }
-
-@media (min-width: 576px) {
- .flex-sm-row {
- flex-direction: row !important; }
- .flex-sm-column {
- flex-direction: column !important; }
- .flex-sm-row-reverse {
- flex-direction: row-reverse !important; }
- .flex-sm-column-reverse {
- flex-direction: column-reverse !important; }
- .flex-sm-wrap {
- flex-wrap: wrap !important; }
- .flex-sm-nowrap {
- flex-wrap: nowrap !important; }
- .flex-sm-wrap-reverse {
- flex-wrap: wrap-reverse !important; }
- .flex-sm-fill {
- flex: 1 1 auto !important; }
- .flex-sm-grow-0 {
- flex-grow: 0 !important; }
- .flex-sm-grow-1 {
- flex-grow: 1 !important; }
- .flex-sm-shrink-0 {
- flex-shrink: 0 !important; }
- .flex-sm-shrink-1 {
- flex-shrink: 1 !important; }
- .justify-content-sm-start {
- justify-content: flex-start !important; }
- .justify-content-sm-end {
- justify-content: flex-end !important; }
- .justify-content-sm-center {
- justify-content: center !important; }
- .justify-content-sm-between {
- justify-content: space-between !important; }
- .justify-content-sm-around {
- justify-content: space-around !important; }
- .align-items-sm-start {
- align-items: flex-start !important; }
- .align-items-sm-end {
- align-items: flex-end !important; }
- .align-items-sm-center {
- align-items: center !important; }
- .align-items-sm-baseline {
- align-items: baseline !important; }
- .align-items-sm-stretch {
- align-items: stretch !important; }
- .align-content-sm-start {
- align-content: flex-start !important; }
- .align-content-sm-end {
- align-content: flex-end !important; }
- .align-content-sm-center {
- align-content: center !important; }
- .align-content-sm-between {
- align-content: space-between !important; }
- .align-content-sm-around {
- align-content: space-around !important; }
- .align-content-sm-stretch {
- align-content: stretch !important; }
- .align-self-sm-auto {
- align-self: auto !important; }
- .align-self-sm-start {
- align-self: flex-start !important; }
- .align-self-sm-end {
- align-self: flex-end !important; }
- .align-self-sm-center {
- align-self: center !important; }
- .align-self-sm-baseline {
- align-self: baseline !important; }
- .align-self-sm-stretch {
- align-self: stretch !important; } }
-
-@media (min-width: 768px) {
- .flex-md-row {
- flex-direction: row !important; }
- .flex-md-column {
- flex-direction: column !important; }
- .flex-md-row-reverse {
- flex-direction: row-reverse !important; }
- .flex-md-column-reverse {
- flex-direction: column-reverse !important; }
- .flex-md-wrap {
- flex-wrap: wrap !important; }
- .flex-md-nowrap {
- flex-wrap: nowrap !important; }
- .flex-md-wrap-reverse {
- flex-wrap: wrap-reverse !important; }
- .flex-md-fill {
- flex: 1 1 auto !important; }
- .flex-md-grow-0 {
- flex-grow: 0 !important; }
- .flex-md-grow-1 {
- flex-grow: 1 !important; }
- .flex-md-shrink-0 {
- flex-shrink: 0 !important; }
- .flex-md-shrink-1 {
- flex-shrink: 1 !important; }
- .justify-content-md-start {
- justify-content: flex-start !important; }
- .justify-content-md-end {
- justify-content: flex-end !important; }
- .justify-content-md-center {
- justify-content: center !important; }
- .justify-content-md-between {
- justify-content: space-between !important; }
- .justify-content-md-around {
- justify-content: space-around !important; }
- .align-items-md-start {
- align-items: flex-start !important; }
- .align-items-md-end {
- align-items: flex-end !important; }
- .align-items-md-center {
- align-items: center !important; }
- .align-items-md-baseline {
- align-items: baseline !important; }
- .align-items-md-stretch {
- align-items: stretch !important; }
- .align-content-md-start {
- align-content: flex-start !important; }
- .align-content-md-end {
- align-content: flex-end !important; }
- .align-content-md-center {
- align-content: center !important; }
- .align-content-md-between {
- align-content: space-between !important; }
- .align-content-md-around {
- align-content: space-around !important; }
- .align-content-md-stretch {
- align-content: stretch !important; }
- .align-self-md-auto {
- align-self: auto !important; }
- .align-self-md-start {
- align-self: flex-start !important; }
- .align-self-md-end {
- align-self: flex-end !important; }
- .align-self-md-center {
- align-self: center !important; }
- .align-self-md-baseline {
- align-self: baseline !important; }
- .align-self-md-stretch {
- align-self: stretch !important; } }
-
-@media (min-width: 992px) {
- .flex-lg-row {
- flex-direction: row !important; }
- .flex-lg-column {
- flex-direction: column !important; }
- .flex-lg-row-reverse {
- flex-direction: row-reverse !important; }
- .flex-lg-column-reverse {
- flex-direction: column-reverse !important; }
- .flex-lg-wrap {
- flex-wrap: wrap !important; }
- .flex-lg-nowrap {
- flex-wrap: nowrap !important; }
- .flex-lg-wrap-reverse {
- flex-wrap: wrap-reverse !important; }
- .flex-lg-fill {
- flex: 1 1 auto !important; }
- .flex-lg-grow-0 {
- flex-grow: 0 !important; }
- .flex-lg-grow-1 {
- flex-grow: 1 !important; }
- .flex-lg-shrink-0 {
- flex-shrink: 0 !important; }
- .flex-lg-shrink-1 {
- flex-shrink: 1 !important; }
- .justify-content-lg-start {
- justify-content: flex-start !important; }
- .justify-content-lg-end {
- justify-content: flex-end !important; }
- .justify-content-lg-center {
- justify-content: center !important; }
- .justify-content-lg-between {
- justify-content: space-between !important; }
- .justify-content-lg-around {
- justify-content: space-around !important; }
- .align-items-lg-start {
- align-items: flex-start !important; }
- .align-items-lg-end {
- align-items: flex-end !important; }
- .align-items-lg-center {
- align-items: center !important; }
- .align-items-lg-baseline {
- align-items: baseline !important; }
- .align-items-lg-stretch {
- align-items: stretch !important; }
- .align-content-lg-start {
- align-content: flex-start !important; }
- .align-content-lg-end {
- align-content: flex-end !important; }
- .align-content-lg-center {
- align-content: center !important; }
- .align-content-lg-between {
- align-content: space-between !important; }
- .align-content-lg-around {
- align-content: space-around !important; }
- .align-content-lg-stretch {
- align-content: stretch !important; }
- .align-self-lg-auto {
- align-self: auto !important; }
- .align-self-lg-start {
- align-self: flex-start !important; }
- .align-self-lg-end {
- align-self: flex-end !important; }
- .align-self-lg-center {
- align-self: center !important; }
- .align-self-lg-baseline {
- align-self: baseline !important; }
- .align-self-lg-stretch {
- align-self: stretch !important; } }
-
-@media (min-width: 1200px) {
- .flex-xl-row {
- flex-direction: row !important; }
- .flex-xl-column {
- flex-direction: column !important; }
- .flex-xl-row-reverse {
- flex-direction: row-reverse !important; }
- .flex-xl-column-reverse {
- flex-direction: column-reverse !important; }
- .flex-xl-wrap {
- flex-wrap: wrap !important; }
- .flex-xl-nowrap {
- flex-wrap: nowrap !important; }
- .flex-xl-wrap-reverse {
- flex-wrap: wrap-reverse !important; }
- .flex-xl-fill {
- flex: 1 1 auto !important; }
- .flex-xl-grow-0 {
- flex-grow: 0 !important; }
- .flex-xl-grow-1 {
- flex-grow: 1 !important; }
- .flex-xl-shrink-0 {
- flex-shrink: 0 !important; }
- .flex-xl-shrink-1 {
- flex-shrink: 1 !important; }
- .justify-content-xl-start {
- justify-content: flex-start !important; }
- .justify-content-xl-end {
- justify-content: flex-end !important; }
- .justify-content-xl-center {
- justify-content: center !important; }
- .justify-content-xl-between {
- justify-content: space-between !important; }
- .justify-content-xl-around {
- justify-content: space-around !important; }
- .align-items-xl-start {
- align-items: flex-start !important; }
- .align-items-xl-end {
- align-items: flex-end !important; }
- .align-items-xl-center {
- align-items: center !important; }
- .align-items-xl-baseline {
- align-items: baseline !important; }
- .align-items-xl-stretch {
- align-items: stretch !important; }
- .align-content-xl-start {
- align-content: flex-start !important; }
- .align-content-xl-end {
- align-content: flex-end !important; }
- .align-content-xl-center {
- align-content: center !important; }
- .align-content-xl-between {
- align-content: space-between !important; }
- .align-content-xl-around {
- align-content: space-around !important; }
- .align-content-xl-stretch {
- align-content: stretch !important; }
- .align-self-xl-auto {
- align-self: auto !important; }
- .align-self-xl-start {
- align-self: flex-start !important; }
- .align-self-xl-end {
- align-self: flex-end !important; }
- .align-self-xl-center {
- align-self: center !important; }
- .align-self-xl-baseline {
- align-self: baseline !important; }
- .align-self-xl-stretch {
- align-self: stretch !important; } }
-
-.float-left {
- float: left !important; }
-
-.float-right {
- float: right !important; }
-
-.float-none {
- float: none !important; }
-
-@media (min-width: 576px) {
- .float-sm-left {
- float: left !important; }
- .float-sm-right {
- float: right !important; }
- .float-sm-none {
- float: none !important; } }
-
-@media (min-width: 768px) {
- .float-md-left {
- float: left !important; }
- .float-md-right {
- float: right !important; }
- .float-md-none {
- float: none !important; } }
-
-@media (min-width: 992px) {
- .float-lg-left {
- float: left !important; }
- .float-lg-right {
- float: right !important; }
- .float-lg-none {
- float: none !important; } }
-
-@media (min-width: 1200px) {
- .float-xl-left {
- float: left !important; }
- .float-xl-right {
- float: right !important; }
- .float-xl-none {
- float: none !important; } }
-
-.overflow-auto {
- overflow: auto !important; }
-
-.overflow-hidden {
- overflow: hidden !important; }
-
-.position-static {
- position: static !important; }
-
-.position-relative {
- position: relative !important; }
-
-.position-absolute {
- position: absolute !important; }
-
-.position-fixed {
- position: fixed !important; }
-
-.position-sticky {
- position: sticky !important; }
-
-.fixed-top {
- position: fixed;
- top: 0;
- right: 0;
- left: 0;
- z-index: 1030; }
-
-.fixed-bottom {
- position: fixed;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 1030; }
-
-@supports (position: sticky) {
- .sticky-top {
- position: sticky;
- top: 0;
- z-index: 1020; } }
-
-.sr-only {
- position: absolute;
- width: 1px;
- height: 1px;
- padding: 0;
- overflow: hidden;
- clip: rect(0, 0, 0, 0);
- white-space: nowrap;
- border: 0; }
-
-.sr-only-focusable:active, .sr-only-focusable:focus {
- position: static;
- width: auto;
- height: auto;
- overflow: visible;
- clip: auto;
- white-space: normal; }
-
-.shadow-sm {
- box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
-
-.shadow {
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
-
-.shadow-lg {
- box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }
-
-.shadow-none {
- box-shadow: none !important; }
-
-.w-25 {
- width: 25% !important; }
-
-.w-50 {
- width: 50% !important; }
-
-.w-75 {
- width: 75% !important; }
-
-.w-100 {
- width: 100% !important; }
-
-.w-auto {
- width: auto !important; }
-
-.h-25 {
- height: 25% !important; }
-
-.h-50 {
- height: 50% !important; }
-
-.h-75 {
- height: 75% !important; }
-
-.h-100 {
- height: 100% !important; }
-
-.h-auto {
- height: auto !important; }
-
-.mw-100 {
- max-width: 100% !important; }
-
-.mh-100 {
- max-height: 100% !important; }
-
-.min-vw-100 {
- min-width: 100vw !important; }
-
-.min-vh-100 {
- min-height: 100vh !important; }
-
-.vw-100 {
- width: 100vw !important; }
-
-.vh-100 {
- height: 100vh !important; }
-
-.stretched-link::after {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 1;
- pointer-events: auto;
- content: "";
- background-color: rgba(0, 0, 0, 0); }
-
-.m-0 {
- margin: 0 !important; }
-
-.mt-0,
-.my-0 {
- margin-top: 0 !important; }
-
-.mr-0,
-.mx-0 {
- margin-right: 0 !important; }
-
-.mb-0,
-.my-0 {
- margin-bottom: 0 !important; }
-
-.ml-0,
-.mx-0 {
- margin-left: 0 !important; }
-
-.m-1 {
- margin: 0.25rem !important; }
-
-.mt-1,
-.my-1 {
- margin-top: 0.25rem !important; }
-
-.mr-1,
-.mx-1 {
- margin-right: 0.25rem !important; }
-
-.mb-1,
-.my-1 {
- margin-bottom: 0.25rem !important; }
-
-.ml-1,
-.mx-1 {
- margin-left: 0.25rem !important; }
-
-.m-2 {
- margin: 0.5rem !important; }
-
-.mt-2,
-.my-2 {
- margin-top: 0.5rem !important; }
-
-.mr-2,
-.mx-2 {
- margin-right: 0.5rem !important; }
-
-.mb-2,
-.my-2 {
- margin-bottom: 0.5rem !important; }
-
-.ml-2,
-.mx-2 {
- margin-left: 0.5rem !important; }
-
-.m-3 {
- margin: 1rem !important; }
-
-.mt-3,
-.my-3 {
- margin-top: 1rem !important; }
-
-.mr-3,
-.mx-3 {
- margin-right: 1rem !important; }
-
-.mb-3,
-.my-3 {
- margin-bottom: 1rem !important; }
-
-.ml-3,
-.mx-3 {
- margin-left: 1rem !important; }
-
-.m-4 {
- margin: 1.5rem !important; }
-
-.mt-4,
-.my-4 {
- margin-top: 1.5rem !important; }
-
-.mr-4,
-.mx-4 {
- margin-right: 1.5rem !important; }
-
-.mb-4,
-.my-4 {
- margin-bottom: 1.5rem !important; }
-
-.ml-4,
-.mx-4 {
- margin-left: 1.5rem !important; }
-
-.m-5 {
- margin: 3rem !important; }
-
-.mt-5,
-.my-5 {
- margin-top: 3rem !important; }
-
-.mr-5,
-.mx-5 {
- margin-right: 3rem !important; }
-
-.mb-5,
-.my-5 {
- margin-bottom: 3rem !important; }
-
-.ml-5,
-.mx-5 {
- margin-left: 3rem !important; }
-
-.p-0 {
- padding: 0 !important; }
-
-.pt-0,
-.py-0 {
- padding-top: 0 !important; }
-
-.pr-0,
-.px-0 {
- padding-right: 0 !important; }
-
-.pb-0,
-.py-0 {
- padding-bottom: 0 !important; }
-
-.pl-0,
-.px-0 {
- padding-left: 0 !important; }
-
-.p-1 {
- padding: 0.25rem !important; }
-
-.pt-1,
-.py-1 {
- padding-top: 0.25rem !important; }
-
-.pr-1,
-.px-1 {
- padding-right: 0.25rem !important; }
-
-.pb-1,
-.py-1 {
- padding-bottom: 0.25rem !important; }
-
-.pl-1,
-.px-1 {
- padding-left: 0.25rem !important; }
-
-.p-2 {
- padding: 0.5rem !important; }
-
-.pt-2,
-.py-2 {
- padding-top: 0.5rem !important; }
-
-.pr-2,
-.px-2 {
- padding-right: 0.5rem !important; }
-
-.pb-2,
-.py-2 {
- padding-bottom: 0.5rem !important; }
-
-.pl-2,
-.px-2 {
- padding-left: 0.5rem !important; }
-
-.p-3 {
- padding: 1rem !important; }
-
-.pt-3,
-.py-3 {
- padding-top: 1rem !important; }
-
-.pr-3,
-.px-3 {
- padding-right: 1rem !important; }
-
-.pb-3,
-.py-3 {
- padding-bottom: 1rem !important; }
-
-.pl-3,
-.px-3 {
- padding-left: 1rem !important; }
-
-.p-4 {
- padding: 1.5rem !important; }
-
-.pt-4,
-.py-4 {
- padding-top: 1.5rem !important; }
-
-.pr-4,
-.px-4 {
- padding-right: 1.5rem !important; }
-
-.pb-4,
-.py-4 {
- padding-bottom: 1.5rem !important; }
-
-.pl-4,
-.px-4 {
- padding-left: 1.5rem !important; }
-
-.p-5 {
- padding: 3rem !important; }
-
-.pt-5,
-.py-5 {
- padding-top: 3rem !important; }
-
-.pr-5,
-.px-5 {
- padding-right: 3rem !important; }
-
-.pb-5,
-.py-5 {
- padding-bottom: 3rem !important; }
-
-.pl-5,
-.px-5 {
- padding-left: 3rem !important; }
-
-.m-n1 {
- margin: -0.25rem !important; }
-
-.mt-n1,
-.my-n1 {
- margin-top: -0.25rem !important; }
-
-.mr-n1,
-.mx-n1 {
- margin-right: -0.25rem !important; }
-
-.mb-n1,
-.my-n1 {
- margin-bottom: -0.25rem !important; }
-
-.ml-n1,
-.mx-n1 {
- margin-left: -0.25rem !important; }
-
-.m-n2 {
- margin: -0.5rem !important; }
-
-.mt-n2,
-.my-n2 {
- margin-top: -0.5rem !important; }
-
-.mr-n2,
-.mx-n2 {
- margin-right: -0.5rem !important; }
-
-.mb-n2,
-.my-n2 {
- margin-bottom: -0.5rem !important; }
-
-.ml-n2,
-.mx-n2 {
- margin-left: -0.5rem !important; }
-
-.m-n3 {
- margin: -1rem !important; }
-
-.mt-n3,
-.my-n3 {
- margin-top: -1rem !important; }
-
-.mr-n3,
-.mx-n3 {
- margin-right: -1rem !important; }
-
-.mb-n3,
-.my-n3 {
- margin-bottom: -1rem !important; }
-
-.ml-n3,
-.mx-n3 {
- margin-left: -1rem !important; }
-
-.m-n4 {
- margin: -1.5rem !important; }
-
-.mt-n4,
-.my-n4 {
- margin-top: -1.5rem !important; }
-
-.mr-n4,
-.mx-n4 {
- margin-right: -1.5rem !important; }
-
-.mb-n4,
-.my-n4 {
- margin-bottom: -1.5rem !important; }
-
-.ml-n4,
-.mx-n4 {
- margin-left: -1.5rem !important; }
-
-.m-n5 {
- margin: -3rem !important; }
-
-.mt-n5,
-.my-n5 {
- margin-top: -3rem !important; }
-
-.mr-n5,
-.mx-n5 {
- margin-right: -3rem !important; }
-
-.mb-n5,
-.my-n5 {
- margin-bottom: -3rem !important; }
-
-.ml-n5,
-.mx-n5 {
- margin-left: -3rem !important; }
-
-.m-auto {
- margin: auto !important; }
-
-.mt-auto,
-.my-auto {
- margin-top: auto !important; }
-
-.mr-auto,
-.mx-auto {
- margin-right: auto !important; }
-
-.mb-auto,
-.my-auto {
- margin-bottom: auto !important; }
-
-.ml-auto,
-.mx-auto {
- margin-left: auto !important; }
-
-@media (min-width: 576px) {
- .m-sm-0 {
- margin: 0 !important; }
- .mt-sm-0,
- .my-sm-0 {
- margin-top: 0 !important; }
- .mr-sm-0,
- .mx-sm-0 {
- margin-right: 0 !important; }
- .mb-sm-0,
- .my-sm-0 {
- margin-bottom: 0 !important; }
- .ml-sm-0,
- .mx-sm-0 {
- margin-left: 0 !important; }
- .m-sm-1 {
- margin: 0.25rem !important; }
- .mt-sm-1,
- .my-sm-1 {
- margin-top: 0.25rem !important; }
- .mr-sm-1,
- .mx-sm-1 {
- margin-right: 0.25rem !important; }
- .mb-sm-1,
- .my-sm-1 {
- margin-bottom: 0.25rem !important; }
- .ml-sm-1,
- .mx-sm-1 {
- margin-left: 0.25rem !important; }
- .m-sm-2 {
- margin: 0.5rem !important; }
- .mt-sm-2,
- .my-sm-2 {
- margin-top: 0.5rem !important; }
- .mr-sm-2,
- .mx-sm-2 {
- margin-right: 0.5rem !important; }
- .mb-sm-2,
- .my-sm-2 {
- margin-bottom: 0.5rem !important; }
- .ml-sm-2,
- .mx-sm-2 {
- margin-left: 0.5rem !important; }
- .m-sm-3 {
- margin: 1rem !important; }
- .mt-sm-3,
- .my-sm-3 {
- margin-top: 1rem !important; }
- .mr-sm-3,
- .mx-sm-3 {
- margin-right: 1rem !important; }
- .mb-sm-3,
- .my-sm-3 {
- margin-bottom: 1rem !important; }
- .ml-sm-3,
- .mx-sm-3 {
- margin-left: 1rem !important; }
- .m-sm-4 {
- margin: 1.5rem !important; }
- .mt-sm-4,
- .my-sm-4 {
- margin-top: 1.5rem !important; }
- .mr-sm-4,
- .mx-sm-4 {
- margin-right: 1.5rem !important; }
- .mb-sm-4,
- .my-sm-4 {
- margin-bottom: 1.5rem !important; }
- .ml-sm-4,
- .mx-sm-4 {
- margin-left: 1.5rem !important; }
- .m-sm-5 {
- margin: 3rem !important; }
- .mt-sm-5,
- .my-sm-5 {
- margin-top: 3rem !important; }
- .mr-sm-5,
- .mx-sm-5 {
- margin-right: 3rem !important; }
- .mb-sm-5,
- .my-sm-5 {
- margin-bottom: 3rem !important; }
- .ml-sm-5,
- .mx-sm-5 {
- margin-left: 3rem !important; }
- .p-sm-0 {
- padding: 0 !important; }
- .pt-sm-0,
- .py-sm-0 {
- padding-top: 0 !important; }
- .pr-sm-0,
- .px-sm-0 {
- padding-right: 0 !important; }
- .pb-sm-0,
- .py-sm-0 {
- padding-bottom: 0 !important; }
- .pl-sm-0,
- .px-sm-0 {
- padding-left: 0 !important; }
- .p-sm-1 {
- padding: 0.25rem !important; }
- .pt-sm-1,
- .py-sm-1 {
- padding-top: 0.25rem !important; }
- .pr-sm-1,
- .px-sm-1 {
- padding-right: 0.25rem !important; }
- .pb-sm-1,
- .py-sm-1 {
- padding-bottom: 0.25rem !important; }
- .pl-sm-1,
- .px-sm-1 {
- padding-left: 0.25rem !important; }
- .p-sm-2 {
- padding: 0.5rem !important; }
- .pt-sm-2,
- .py-sm-2 {
- padding-top: 0.5rem !important; }
- .pr-sm-2,
- .px-sm-2 {
- padding-right: 0.5rem !important; }
- .pb-sm-2,
- .py-sm-2 {
- padding-bottom: 0.5rem !important; }
- .pl-sm-2,
- .px-sm-2 {
- padding-left: 0.5rem !important; }
- .p-sm-3 {
- padding: 1rem !important; }
- .pt-sm-3,
- .py-sm-3 {
- padding-top: 1rem !important; }
- .pr-sm-3,
- .px-sm-3 {
- padding-right: 1rem !important; }
- .pb-sm-3,
- .py-sm-3 {
- padding-bottom: 1rem !important; }
- .pl-sm-3,
- .px-sm-3 {
- padding-left: 1rem !important; }
- .p-sm-4 {
- padding: 1.5rem !important; }
- .pt-sm-4,
- .py-sm-4 {
- padding-top: 1.5rem !important; }
- .pr-sm-4,
- .px-sm-4 {
- padding-right: 1.5rem !important; }
- .pb-sm-4,
- .py-sm-4 {
- padding-bottom: 1.5rem !important; }
- .pl-sm-4,
- .px-sm-4 {
- padding-left: 1.5rem !important; }
- .p-sm-5 {
- padding: 3rem !important; }
- .pt-sm-5,
- .py-sm-5 {
- padding-top: 3rem !important; }
- .pr-sm-5,
- .px-sm-5 {
- padding-right: 3rem !important; }
- .pb-sm-5,
- .py-sm-5 {
- padding-bottom: 3rem !important; }
- .pl-sm-5,
- .px-sm-5 {
- padding-left: 3rem !important; }
- .m-sm-n1 {
- margin: -0.25rem !important; }
- .mt-sm-n1,
- .my-sm-n1 {
- margin-top: -0.25rem !important; }
- .mr-sm-n1,
- .mx-sm-n1 {
- margin-right: -0.25rem !important; }
- .mb-sm-n1,
- .my-sm-n1 {
- margin-bottom: -0.25rem !important; }
- .ml-sm-n1,
- .mx-sm-n1 {
- margin-left: -0.25rem !important; }
- .m-sm-n2 {
- margin: -0.5rem !important; }
- .mt-sm-n2,
- .my-sm-n2 {
- margin-top: -0.5rem !important; }
- .mr-sm-n2,
- .mx-sm-n2 {
- margin-right: -0.5rem !important; }
- .mb-sm-n2,
- .my-sm-n2 {
- margin-bottom: -0.5rem !important; }
- .ml-sm-n2,
- .mx-sm-n2 {
- margin-left: -0.5rem !important; }
- .m-sm-n3 {
- margin: -1rem !important; }
- .mt-sm-n3,
- .my-sm-n3 {
- margin-top: -1rem !important; }
- .mr-sm-n3,
- .mx-sm-n3 {
- margin-right: -1rem !important; }
- .mb-sm-n3,
- .my-sm-n3 {
- margin-bottom: -1rem !important; }
- .ml-sm-n3,
- .mx-sm-n3 {
- margin-left: -1rem !important; }
- .m-sm-n4 {
- margin: -1.5rem !important; }
- .mt-sm-n4,
- .my-sm-n4 {
- margin-top: -1.5rem !important; }
- .mr-sm-n4,
- .mx-sm-n4 {
- margin-right: -1.5rem !important; }
- .mb-sm-n4,
- .my-sm-n4 {
- margin-bottom: -1.5rem !important; }
- .ml-sm-n4,
- .mx-sm-n4 {
- margin-left: -1.5rem !important; }
- .m-sm-n5 {
- margin: -3rem !important; }
- .mt-sm-n5,
- .my-sm-n5 {
- margin-top: -3rem !important; }
- .mr-sm-n5,
- .mx-sm-n5 {
- margin-right: -3rem !important; }
- .mb-sm-n5,
- .my-sm-n5 {
- margin-bottom: -3rem !important; }
- .ml-sm-n5,
- .mx-sm-n5 {
- margin-left: -3rem !important; }
- .m-sm-auto {
- margin: auto !important; }
- .mt-sm-auto,
- .my-sm-auto {
- margin-top: auto !important; }
- .mr-sm-auto,
- .mx-sm-auto {
- margin-right: auto !important; }
- .mb-sm-auto,
- .my-sm-auto {
- margin-bottom: auto !important; }
- .ml-sm-auto,
- .mx-sm-auto {
- margin-left: auto !important; } }
-
-@media (min-width: 768px) {
- .m-md-0 {
- margin: 0 !important; }
- .mt-md-0,
- .my-md-0 {
- margin-top: 0 !important; }
- .mr-md-0,
- .mx-md-0 {
- margin-right: 0 !important; }
- .mb-md-0,
- .my-md-0 {
- margin-bottom: 0 !important; }
- .ml-md-0,
- .mx-md-0 {
- margin-left: 0 !important; }
- .m-md-1 {
- margin: 0.25rem !important; }
- .mt-md-1,
- .my-md-1 {
- margin-top: 0.25rem !important; }
- .mr-md-1,
- .mx-md-1 {
- margin-right: 0.25rem !important; }
- .mb-md-1,
- .my-md-1 {
- margin-bottom: 0.25rem !important; }
- .ml-md-1,
- .mx-md-1 {
- margin-left: 0.25rem !important; }
- .m-md-2 {
- margin: 0.5rem !important; }
- .mt-md-2,
- .my-md-2 {
- margin-top: 0.5rem !important; }
- .mr-md-2,
- .mx-md-2 {
- margin-right: 0.5rem !important; }
- .mb-md-2,
- .my-md-2 {
- margin-bottom: 0.5rem !important; }
- .ml-md-2,
- .mx-md-2 {
- margin-left: 0.5rem !important; }
- .m-md-3 {
- margin: 1rem !important; }
- .mt-md-3,
- .my-md-3 {
- margin-top: 1rem !important; }
- .mr-md-3,
- .mx-md-3 {
- margin-right: 1rem !important; }
- .mb-md-3,
- .my-md-3 {
- margin-bottom: 1rem !important; }
- .ml-md-3,
- .mx-md-3 {
- margin-left: 1rem !important; }
- .m-md-4 {
- margin: 1.5rem !important; }
- .mt-md-4,
- .my-md-4 {
- margin-top: 1.5rem !important; }
- .mr-md-4,
- .mx-md-4 {
- margin-right: 1.5rem !important; }
- .mb-md-4,
- .my-md-4 {
- margin-bottom: 1.5rem !important; }
- .ml-md-4,
- .mx-md-4 {
- margin-left: 1.5rem !important; }
- .m-md-5 {
- margin: 3rem !important; }
- .mt-md-5,
- .my-md-5 {
- margin-top: 3rem !important; }
- .mr-md-5,
- .mx-md-5 {
- margin-right: 3rem !important; }
- .mb-md-5,
- .my-md-5 {
- margin-bottom: 3rem !important; }
- .ml-md-5,
- .mx-md-5 {
- margin-left: 3rem !important; }
- .p-md-0 {
- padding: 0 !important; }
- .pt-md-0,
- .py-md-0 {
- padding-top: 0 !important; }
- .pr-md-0,
- .px-md-0 {
- padding-right: 0 !important; }
- .pb-md-0,
- .py-md-0 {
- padding-bottom: 0 !important; }
- .pl-md-0,
- .px-md-0 {
- padding-left: 0 !important; }
- .p-md-1 {
- padding: 0.25rem !important; }
- .pt-md-1,
- .py-md-1 {
- padding-top: 0.25rem !important; }
- .pr-md-1,
- .px-md-1 {
- padding-right: 0.25rem !important; }
- .pb-md-1,
- .py-md-1 {
- padding-bottom: 0.25rem !important; }
- .pl-md-1,
- .px-md-1 {
- padding-left: 0.25rem !important; }
- .p-md-2 {
- padding: 0.5rem !important; }
- .pt-md-2,
- .py-md-2 {
- padding-top: 0.5rem !important; }
- .pr-md-2,
- .px-md-2 {
- padding-right: 0.5rem !important; }
- .pb-md-2,
- .py-md-2 {
- padding-bottom: 0.5rem !important; }
- .pl-md-2,
- .px-md-2 {
- padding-left: 0.5rem !important; }
- .p-md-3 {
- padding: 1rem !important; }
- .pt-md-3,
- .py-md-3 {
- padding-top: 1rem !important; }
- .pr-md-3,
- .px-md-3 {
- padding-right: 1rem !important; }
- .pb-md-3,
- .py-md-3 {
- padding-bottom: 1rem !important; }
- .pl-md-3,
- .px-md-3 {
- padding-left: 1rem !important; }
- .p-md-4 {
- padding: 1.5rem !important; }
- .pt-md-4,
- .py-md-4 {
- padding-top: 1.5rem !important; }
- .pr-md-4,
- .px-md-4 {
- padding-right: 1.5rem !important; }
- .pb-md-4,
- .py-md-4 {
- padding-bottom: 1.5rem !important; }
- .pl-md-4,
- .px-md-4 {
- padding-left: 1.5rem !important; }
- .p-md-5 {
- padding: 3rem !important; }
- .pt-md-5,
- .py-md-5 {
- padding-top: 3rem !important; }
- .pr-md-5,
- .px-md-5 {
- padding-right: 3rem !important; }
- .pb-md-5,
- .py-md-5 {
- padding-bottom: 3rem !important; }
- .pl-md-5,
- .px-md-5 {
- padding-left: 3rem !important; }
- .m-md-n1 {
- margin: -0.25rem !important; }
- .mt-md-n1,
- .my-md-n1 {
- margin-top: -0.25rem !important; }
- .mr-md-n1,
- .mx-md-n1 {
- margin-right: -0.25rem !important; }
- .mb-md-n1,
- .my-md-n1 {
- margin-bottom: -0.25rem !important; }
- .ml-md-n1,
- .mx-md-n1 {
- margin-left: -0.25rem !important; }
- .m-md-n2 {
- margin: -0.5rem !important; }
- .mt-md-n2,
- .my-md-n2 {
- margin-top: -0.5rem !important; }
- .mr-md-n2,
- .mx-md-n2 {
- margin-right: -0.5rem !important; }
- .mb-md-n2,
- .my-md-n2 {
- margin-bottom: -0.5rem !important; }
- .ml-md-n2,
- .mx-md-n2 {
- margin-left: -0.5rem !important; }
- .m-md-n3 {
- margin: -1rem !important; }
- .mt-md-n3,
- .my-md-n3 {
- margin-top: -1rem !important; }
- .mr-md-n3,
- .mx-md-n3 {
- margin-right: -1rem !important; }
- .mb-md-n3,
- .my-md-n3 {
- margin-bottom: -1rem !important; }
- .ml-md-n3,
- .mx-md-n3 {
- margin-left: -1rem !important; }
- .m-md-n4 {
- margin: -1.5rem !important; }
- .mt-md-n4,
- .my-md-n4 {
- margin-top: -1.5rem !important; }
- .mr-md-n4,
- .mx-md-n4 {
- margin-right: -1.5rem !important; }
- .mb-md-n4,
- .my-md-n4 {
- margin-bottom: -1.5rem !important; }
- .ml-md-n4,
- .mx-md-n4 {
- margin-left: -1.5rem !important; }
- .m-md-n5 {
- margin: -3rem !important; }
- .mt-md-n5,
- .my-md-n5 {
- margin-top: -3rem !important; }
- .mr-md-n5,
- .mx-md-n5 {
- margin-right: -3rem !important; }
- .mb-md-n5,
- .my-md-n5 {
- margin-bottom: -3rem !important; }
- .ml-md-n5,
- .mx-md-n5 {
- margin-left: -3rem !important; }
- .m-md-auto {
- margin: auto !important; }
- .mt-md-auto,
- .my-md-auto {
- margin-top: auto !important; }
- .mr-md-auto,
- .mx-md-auto {
- margin-right: auto !important; }
- .mb-md-auto,
- .my-md-auto {
- margin-bottom: auto !important; }
- .ml-md-auto,
- .mx-md-auto {
- margin-left: auto !important; } }
-
-@media (min-width: 992px) {
- .m-lg-0 {
- margin: 0 !important; }
- .mt-lg-0,
- .my-lg-0 {
- margin-top: 0 !important; }
- .mr-lg-0,
- .mx-lg-0 {
- margin-right: 0 !important; }
- .mb-lg-0,
- .my-lg-0 {
- margin-bottom: 0 !important; }
- .ml-lg-0,
- .mx-lg-0 {
- margin-left: 0 !important; }
- .m-lg-1 {
- margin: 0.25rem !important; }
- .mt-lg-1,
- .my-lg-1 {
- margin-top: 0.25rem !important; }
- .mr-lg-1,
- .mx-lg-1 {
- margin-right: 0.25rem !important; }
- .mb-lg-1,
- .my-lg-1 {
- margin-bottom: 0.25rem !important; }
- .ml-lg-1,
- .mx-lg-1 {
- margin-left: 0.25rem !important; }
- .m-lg-2 {
- margin: 0.5rem !important; }
- .mt-lg-2,
- .my-lg-2 {
- margin-top: 0.5rem !important; }
- .mr-lg-2,
- .mx-lg-2 {
- margin-right: 0.5rem !important; }
- .mb-lg-2,
- .my-lg-2 {
- margin-bottom: 0.5rem !important; }
- .ml-lg-2,
- .mx-lg-2 {
- margin-left: 0.5rem !important; }
- .m-lg-3 {
- margin: 1rem !important; }
- .mt-lg-3,
- .my-lg-3 {
- margin-top: 1rem !important; }
- .mr-lg-3,
- .mx-lg-3 {
- margin-right: 1rem !important; }
- .mb-lg-3,
- .my-lg-3 {
- margin-bottom: 1rem !important; }
- .ml-lg-3,
- .mx-lg-3 {
- margin-left: 1rem !important; }
- .m-lg-4 {
- margin: 1.5rem !important; }
- .mt-lg-4,
- .my-lg-4 {
- margin-top: 1.5rem !important; }
- .mr-lg-4,
- .mx-lg-4 {
- margin-right: 1.5rem !important; }
- .mb-lg-4,
- .my-lg-4 {
- margin-bottom: 1.5rem !important; }
- .ml-lg-4,
- .mx-lg-4 {
- margin-left: 1.5rem !important; }
- .m-lg-5 {
- margin: 3rem !important; }
- .mt-lg-5,
- .my-lg-5 {
- margin-top: 3rem !important; }
- .mr-lg-5,
- .mx-lg-5 {
- margin-right: 3rem !important; }
- .mb-lg-5,
- .my-lg-5 {
- margin-bottom: 3rem !important; }
- .ml-lg-5,
- .mx-lg-5 {
- margin-left: 3rem !important; }
- .p-lg-0 {
- padding: 0 !important; }
- .pt-lg-0,
- .py-lg-0 {
- padding-top: 0 !important; }
- .pr-lg-0,
- .px-lg-0 {
- padding-right: 0 !important; }
- .pb-lg-0,
- .py-lg-0 {
- padding-bottom: 0 !important; }
- .pl-lg-0,
- .px-lg-0 {
- padding-left: 0 !important; }
- .p-lg-1 {
- padding: 0.25rem !important; }
- .pt-lg-1,
- .py-lg-1 {
- padding-top: 0.25rem !important; }
- .pr-lg-1,
- .px-lg-1 {
- padding-right: 0.25rem !important; }
- .pb-lg-1,
- .py-lg-1 {
- padding-bottom: 0.25rem !important; }
- .pl-lg-1,
- .px-lg-1 {
- padding-left: 0.25rem !important; }
- .p-lg-2 {
- padding: 0.5rem !important; }
- .pt-lg-2,
- .py-lg-2 {
- padding-top: 0.5rem !important; }
- .pr-lg-2,
- .px-lg-2 {
- padding-right: 0.5rem !important; }
- .pb-lg-2,
- .py-lg-2 {
- padding-bottom: 0.5rem !important; }
- .pl-lg-2,
- .px-lg-2 {
- padding-left: 0.5rem !important; }
- .p-lg-3 {
- padding: 1rem !important; }
- .pt-lg-3,
- .py-lg-3 {
- padding-top: 1rem !important; }
- .pr-lg-3,
- .px-lg-3 {
- padding-right: 1rem !important; }
- .pb-lg-3,
- .py-lg-3 {
- padding-bottom: 1rem !important; }
- .pl-lg-3,
- .px-lg-3 {
- padding-left: 1rem !important; }
- .p-lg-4 {
- padding: 1.5rem !important; }
- .pt-lg-4,
- .py-lg-4 {
- padding-top: 1.5rem !important; }
- .pr-lg-4,
- .px-lg-4 {
- padding-right: 1.5rem !important; }
- .pb-lg-4,
- .py-lg-4 {
- padding-bottom: 1.5rem !important; }
- .pl-lg-4,
- .px-lg-4 {
- padding-left: 1.5rem !important; }
- .p-lg-5 {
- padding: 3rem !important; }
- .pt-lg-5,
- .py-lg-5 {
- padding-top: 3rem !important; }
- .pr-lg-5,
- .px-lg-5 {
- padding-right: 3rem !important; }
- .pb-lg-5,
- .py-lg-5 {
- padding-bottom: 3rem !important; }
- .pl-lg-5,
- .px-lg-5 {
- padding-left: 3rem !important; }
- .m-lg-n1 {
- margin: -0.25rem !important; }
- .mt-lg-n1,
- .my-lg-n1 {
- margin-top: -0.25rem !important; }
- .mr-lg-n1,
- .mx-lg-n1 {
- margin-right: -0.25rem !important; }
- .mb-lg-n1,
- .my-lg-n1 {
- margin-bottom: -0.25rem !important; }
- .ml-lg-n1,
- .mx-lg-n1 {
- margin-left: -0.25rem !important; }
- .m-lg-n2 {
- margin: -0.5rem !important; }
- .mt-lg-n2,
- .my-lg-n2 {
- margin-top: -0.5rem !important; }
- .mr-lg-n2,
- .mx-lg-n2 {
- margin-right: -0.5rem !important; }
- .mb-lg-n2,
- .my-lg-n2 {
- margin-bottom: -0.5rem !important; }
- .ml-lg-n2,
- .mx-lg-n2 {
- margin-left: -0.5rem !important; }
- .m-lg-n3 {
- margin: -1rem !important; }
- .mt-lg-n3,
- .my-lg-n3 {
- margin-top: -1rem !important; }
- .mr-lg-n3,
- .mx-lg-n3 {
- margin-right: -1rem !important; }
- .mb-lg-n3,
- .my-lg-n3 {
- margin-bottom: -1rem !important; }
- .ml-lg-n3,
- .mx-lg-n3 {
- margin-left: -1rem !important; }
- .m-lg-n4 {
- margin: -1.5rem !important; }
- .mt-lg-n4,
- .my-lg-n4 {
- margin-top: -1.5rem !important; }
- .mr-lg-n4,
- .mx-lg-n4 {
- margin-right: -1.5rem !important; }
- .mb-lg-n4,
- .my-lg-n4 {
- margin-bottom: -1.5rem !important; }
- .ml-lg-n4,
- .mx-lg-n4 {
- margin-left: -1.5rem !important; }
- .m-lg-n5 {
- margin: -3rem !important; }
- .mt-lg-n5,
- .my-lg-n5 {
- margin-top: -3rem !important; }
- .mr-lg-n5,
- .mx-lg-n5 {
- margin-right: -3rem !important; }
- .mb-lg-n5,
- .my-lg-n5 {
- margin-bottom: -3rem !important; }
- .ml-lg-n5,
- .mx-lg-n5 {
- margin-left: -3rem !important; }
- .m-lg-auto {
- margin: auto !important; }
- .mt-lg-auto,
- .my-lg-auto {
- margin-top: auto !important; }
- .mr-lg-auto,
- .mx-lg-auto {
- margin-right: auto !important; }
- .mb-lg-auto,
- .my-lg-auto {
- margin-bottom: auto !important; }
- .ml-lg-auto,
- .mx-lg-auto {
- margin-left: auto !important; } }
-
-@media (min-width: 1200px) {
- .m-xl-0 {
- margin: 0 !important; }
- .mt-xl-0,
- .my-xl-0 {
- margin-top: 0 !important; }
- .mr-xl-0,
- .mx-xl-0 {
- margin-right: 0 !important; }
- .mb-xl-0,
- .my-xl-0 {
- margin-bottom: 0 !important; }
- .ml-xl-0,
- .mx-xl-0 {
- margin-left: 0 !important; }
- .m-xl-1 {
- margin: 0.25rem !important; }
- .mt-xl-1,
- .my-xl-1 {
- margin-top: 0.25rem !important; }
- .mr-xl-1,
- .mx-xl-1 {
- margin-right: 0.25rem !important; }
- .mb-xl-1,
- .my-xl-1 {
- margin-bottom: 0.25rem !important; }
- .ml-xl-1,
- .mx-xl-1 {
- margin-left: 0.25rem !important; }
- .m-xl-2 {
- margin: 0.5rem !important; }
- .mt-xl-2,
- .my-xl-2 {
- margin-top: 0.5rem !important; }
- .mr-xl-2,
- .mx-xl-2 {
- margin-right: 0.5rem !important; }
- .mb-xl-2,
- .my-xl-2 {
- margin-bottom: 0.5rem !important; }
- .ml-xl-2,
- .mx-xl-2 {
- margin-left: 0.5rem !important; }
- .m-xl-3 {
- margin: 1rem !important; }
- .mt-xl-3,
- .my-xl-3 {
- margin-top: 1rem !important; }
- .mr-xl-3,
- .mx-xl-3 {
- margin-right: 1rem !important; }
- .mb-xl-3,
- .my-xl-3 {
- margin-bottom: 1rem !important; }
- .ml-xl-3,
- .mx-xl-3 {
- margin-left: 1rem !important; }
- .m-xl-4 {
- margin: 1.5rem !important; }
- .mt-xl-4,
- .my-xl-4 {
- margin-top: 1.5rem !important; }
- .mr-xl-4,
- .mx-xl-4 {
- margin-right: 1.5rem !important; }
- .mb-xl-4,
- .my-xl-4 {
- margin-bottom: 1.5rem !important; }
- .ml-xl-4,
- .mx-xl-4 {
- margin-left: 1.5rem !important; }
- .m-xl-5 {
- margin: 3rem !important; }
- .mt-xl-5,
- .my-xl-5 {
- margin-top: 3rem !important; }
- .mr-xl-5,
- .mx-xl-5 {
- margin-right: 3rem !important; }
- .mb-xl-5,
- .my-xl-5 {
- margin-bottom: 3rem !important; }
- .ml-xl-5,
- .mx-xl-5 {
- margin-left: 3rem !important; }
- .p-xl-0 {
- padding: 0 !important; }
- .pt-xl-0,
- .py-xl-0 {
- padding-top: 0 !important; }
- .pr-xl-0,
- .px-xl-0 {
- padding-right: 0 !important; }
- .pb-xl-0,
- .py-xl-0 {
- padding-bottom: 0 !important; }
- .pl-xl-0,
- .px-xl-0 {
- padding-left: 0 !important; }
- .p-xl-1 {
- padding: 0.25rem !important; }
- .pt-xl-1,
- .py-xl-1 {
- padding-top: 0.25rem !important; }
- .pr-xl-1,
- .px-xl-1 {
- padding-right: 0.25rem !important; }
- .pb-xl-1,
- .py-xl-1 {
- padding-bottom: 0.25rem !important; }
- .pl-xl-1,
- .px-xl-1 {
- padding-left: 0.25rem !important; }
- .p-xl-2 {
- padding: 0.5rem !important; }
- .pt-xl-2,
- .py-xl-2 {
- padding-top: 0.5rem !important; }
- .pr-xl-2,
- .px-xl-2 {
- padding-right: 0.5rem !important; }
- .pb-xl-2,
- .py-xl-2 {
- padding-bottom: 0.5rem !important; }
- .pl-xl-2,
- .px-xl-2 {
- padding-left: 0.5rem !important; }
- .p-xl-3 {
- padding: 1rem !important; }
- .pt-xl-3,
- .py-xl-3 {
- padding-top: 1rem !important; }
- .pr-xl-3,
- .px-xl-3 {
- padding-right: 1rem !important; }
- .pb-xl-3,
- .py-xl-3 {
- padding-bottom: 1rem !important; }
- .pl-xl-3,
- .px-xl-3 {
- padding-left: 1rem !important; }
- .p-xl-4 {
- padding: 1.5rem !important; }
- .pt-xl-4,
- .py-xl-4 {
- padding-top: 1.5rem !important; }
- .pr-xl-4,
- .px-xl-4 {
- padding-right: 1.5rem !important; }
- .pb-xl-4,
- .py-xl-4 {
- padding-bottom: 1.5rem !important; }
- .pl-xl-4,
- .px-xl-4 {
- padding-left: 1.5rem !important; }
- .p-xl-5 {
- padding: 3rem !important; }
- .pt-xl-5,
- .py-xl-5 {
- padding-top: 3rem !important; }
- .pr-xl-5,
- .px-xl-5 {
- padding-right: 3rem !important; }
- .pb-xl-5,
- .py-xl-5 {
- padding-bottom: 3rem !important; }
- .pl-xl-5,
- .px-xl-5 {
- padding-left: 3rem !important; }
- .m-xl-n1 {
- margin: -0.25rem !important; }
- .mt-xl-n1,
- .my-xl-n1 {
- margin-top: -0.25rem !important; }
- .mr-xl-n1,
- .mx-xl-n1 {
- margin-right: -0.25rem !important; }
- .mb-xl-n1,
- .my-xl-n1 {
- margin-bottom: -0.25rem !important; }
- .ml-xl-n1,
- .mx-xl-n1 {
- margin-left: -0.25rem !important; }
- .m-xl-n2 {
- margin: -0.5rem !important; }
- .mt-xl-n2,
- .my-xl-n2 {
- margin-top: -0.5rem !important; }
- .mr-xl-n2,
- .mx-xl-n2 {
- margin-right: -0.5rem !important; }
- .mb-xl-n2,
- .my-xl-n2 {
- margin-bottom: -0.5rem !important; }
- .ml-xl-n2,
- .mx-xl-n2 {
- margin-left: -0.5rem !important; }
- .m-xl-n3 {
- margin: -1rem !important; }
- .mt-xl-n3,
- .my-xl-n3 {
- margin-top: -1rem !important; }
- .mr-xl-n3,
- .mx-xl-n3 {
- margin-right: -1rem !important; }
- .mb-xl-n3,
- .my-xl-n3 {
- margin-bottom: -1rem !important; }
- .ml-xl-n3,
- .mx-xl-n3 {
- margin-left: -1rem !important; }
- .m-xl-n4 {
- margin: -1.5rem !important; }
- .mt-xl-n4,
- .my-xl-n4 {
- margin-top: -1.5rem !important; }
- .mr-xl-n4,
- .mx-xl-n4 {
- margin-right: -1.5rem !important; }
- .mb-xl-n4,
- .my-xl-n4 {
- margin-bottom: -1.5rem !important; }
- .ml-xl-n4,
- .mx-xl-n4 {
- margin-left: -1.5rem !important; }
- .m-xl-n5 {
- margin: -3rem !important; }
- .mt-xl-n5,
- .my-xl-n5 {
- margin-top: -3rem !important; }
- .mr-xl-n5,
- .mx-xl-n5 {
- margin-right: -3rem !important; }
- .mb-xl-n5,
- .my-xl-n5 {
- margin-bottom: -3rem !important; }
- .ml-xl-n5,
- .mx-xl-n5 {
- margin-left: -3rem !important; }
- .m-xl-auto {
- margin: auto !important; }
- .mt-xl-auto,
- .my-xl-auto {
- margin-top: auto !important; }
- .mr-xl-auto,
- .mx-xl-auto {
- margin-right: auto !important; }
- .mb-xl-auto,
- .my-xl-auto {
- margin-bottom: auto !important; }
- .ml-xl-auto,
- .mx-xl-auto {
- margin-left: auto !important; } }
-
-.text-monospace {
- font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }
-
-.text-justify {
- text-align: justify !important; }
-
-.text-wrap {
- white-space: normal !important; }
-
-.text-nowrap {
- white-space: nowrap !important; }
-
-.text-truncate {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap; }
-
-.text-left {
- text-align: left !important; }
-
-.text-right {
- text-align: right !important; }
-
-.text-center {
- text-align: center !important; }
-
-@media (min-width: 576px) {
- .text-sm-left {
- text-align: left !important; }
- .text-sm-right {
- text-align: right !important; }
- .text-sm-center {
- text-align: center !important; } }
-
-@media (min-width: 768px) {
- .text-md-left {
- text-align: left !important; }
- .text-md-right {
- text-align: right !important; }
- .text-md-center {
- text-align: center !important; } }
-
-@media (min-width: 992px) {
- .text-lg-left {
- text-align: left !important; }
- .text-lg-right {
- text-align: right !important; }
- .text-lg-center {
- text-align: center !important; } }
-
-@media (min-width: 1200px) {
- .text-xl-left {
- text-align: left !important; }
- .text-xl-right {
- text-align: right !important; }
- .text-xl-center {
- text-align: center !important; } }
-
-.text-lowercase {
- text-transform: lowercase !important; }
-
-.text-uppercase {
- text-transform: uppercase !important; }
-
-.text-capitalize {
- text-transform: capitalize !important; }
-
-.font-weight-light {
- font-weight: 300 !important; }
-
-.font-weight-lighter {
- font-weight: lighter !important; }
-
-.font-weight-normal {
- font-weight: 400 !important; }
-
-.font-weight-bold {
- font-weight: 700 !important; }
-
-.font-weight-bolder {
- font-weight: bolder !important; }
-
-.font-italic {
- font-style: italic !important; }
-
-.text-white {
- color: #fff !important; }
-
-.text-primary {
- color: #007bff !important; }
-
-a.text-primary:hover, a.text-primary:focus {
- color: #0056b3 !important; }
-
-.text-secondary {
- color: #6c757d !important; }
-
-a.text-secondary:hover, a.text-secondary:focus {
- color: #494f54 !important; }
-
-.text-success {
- color: #28a745 !important; }
-
-a.text-success:hover, a.text-success:focus {
- color: #19692c !important; }
-
-.text-info {
- color: #17a2b8 !important; }
-
-a.text-info:hover, a.text-info:focus {
- color: #0f6674 !important; }
-
-.text-warning {
- color: #ffc107 !important; }
-
-a.text-warning:hover, a.text-warning:focus {
- color: #ba8b00 !important; }
-
-.text-danger {
- color: #dc3545 !important; }
-
-a.text-danger:hover, a.text-danger:focus {
- color: #a71d2a !important; }
-
-.text-light {
- color: #f8f9fa !important; }
-
-a.text-light:hover, a.text-light:focus {
- color: #cbd3da !important; }
-
-.text-dark {
- color: #343a40 !important; }
-
-a.text-dark:hover, a.text-dark:focus {
- color: #121416 !important; }
-
-.text-body {
- color: #212529 !important; }
-
-.text-muted {
- color: #6c757d !important; }
-
-.text-black-50 {
- color: rgba(0, 0, 0, 0.5) !important; }
-
-.text-white-50 {
- color: rgba(255, 255, 255, 0.5) !important; }
-
-.text-hide {
- font: 0/0 a;
- color: transparent;
- text-shadow: none;
- background-color: transparent;
- border: 0; }
-
-.text-decoration-none {
- text-decoration: none !important; }
-
-.text-break {
- word-break: break-word !important;
- overflow-wrap: break-word !important; }
-
-.text-reset {
- color: inherit !important; }
-
-.visible {
- visibility: visible !important; }
-
-.invisible {
- visibility: hidden !important; }
-
-@media print {
- *,
- *::before,
- *::after {
- text-shadow: none !important;
- box-shadow: none !important; }
- a:not(.btn) {
- text-decoration: underline; }
- abbr[title]::after {
- content: " (" attr(title) ")"; }
- pre {
- white-space: pre-wrap !important; }
- pre,
- blockquote {
- border: 1px solid #adb5bd;
- page-break-inside: avoid; }
- thead {
- display: table-header-group; }
- tr,
- img {
- page-break-inside: avoid; }
- p,
- h2,
- h3 {
- orphans: 3;
- widows: 3; }
- h2,
- h3 {
- page-break-after: avoid; }
- @page {
- size: a3; }
- body {
- min-width: 992px !important; }
- .container {
- min-width: 992px !important; }
- .navbar {
- display: none; }
- .badge {
- border: 1px solid #000; }
- .table {
- border-collapse: collapse !important; }
- .table td,
- .table th {
- background-color: #fff !important; }
- .table-bordered th,
- .table-bordered td {
- border: 1px solid #dee2e6 !important; }
- .table-dark {
- color: inherit; }
- .table-dark th,
- .table-dark td,
- .table-dark thead th,
- .table-dark tbody + tbody {
- border-color: #dee2e6; }
- .table .thead-dark th {
- color: inherit;
- border-color: #dee2e6; } }
-
-/*!
- * Font Awesome Free 5.8.2 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- */
-.fa,
-.fas,
-.far,
-.fal,
-.fab {
- -moz-osx-font-smoothing: grayscale;
- -webkit-font-smoothing: antialiased;
- display: inline-block;
- font-style: normal;
- font-variant: normal;
- text-rendering: auto;
- line-height: 1; }
-
-.fa-lg {
- font-size: 1.33333em;
- line-height: 0.75em;
- vertical-align: -.0667em; }
-
-.fa-xs {
- font-size: .75em; }
-
-.fa-sm {
- font-size: .875em; }
-
-.fa-1x {
- font-size: 1em; }
-
-.fa-2x {
- font-size: 2em; }
-
-.fa-3x {
- font-size: 3em; }
-
-.fa-4x {
- font-size: 4em; }
-
-.fa-5x {
- font-size: 5em; }
-
-.fa-6x {
- font-size: 6em; }
-
-.fa-7x {
- font-size: 7em; }
-
-.fa-8x {
- font-size: 8em; }
-
-.fa-9x {
- font-size: 9em; }
-
-.fa-10x {
- font-size: 10em; }
-
-.fa-fw {
- text-align: center;
- width: 1.25em; }
-
-.fa-ul {
- list-style-type: none;
- margin-left: 2.5em;
- padding-left: 0; }
- .fa-ul > li {
- position: relative; }
-
-.fa-li {
- left: -2em;
- position: absolute;
- text-align: center;
- width: 2em;
- line-height: inherit; }
-
-.fa-border {
- border: solid 0.08em #eee;
- border-radius: .1em;
- padding: .2em .25em .15em; }
-
-.fa-pull-left {
- float: left; }
-
-.fa-pull-right {
- float: right; }
-
-.fa.fa-pull-left,
-.fas.fa-pull-left,
-.far.fa-pull-left,
-.fal.fa-pull-left,
-.fab.fa-pull-left {
- margin-right: .3em; }
-
-.fa.fa-pull-right,
-.fas.fa-pull-right,
-.far.fa-pull-right,
-.fal.fa-pull-right,
-.fab.fa-pull-right {
- margin-left: .3em; }
-
-.fa-spin {
- animation: fa-spin 2s infinite linear; }
-
-.fa-pulse {
- animation: fa-spin 1s infinite steps(8); }
-
-@keyframes fa-spin {
- 0% {
- transform: rotate(0deg); }
- 100% {
- transform: rotate(360deg); } }
-
-.fa-rotate-90 {
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
- transform: rotate(90deg); }
-
-.fa-rotate-180 {
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
- transform: rotate(180deg); }
-
-.fa-rotate-270 {
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
- transform: rotate(270deg); }
-
-.fa-flip-horizontal {
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
- transform: scale(-1, 1); }
-
-.fa-flip-vertical {
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
- transform: scale(1, -1); }
-
-.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
- transform: scale(-1, -1); }
-
-:root .fa-rotate-90,
-:root .fa-rotate-180,
-:root .fa-rotate-270,
-:root .fa-flip-horizontal,
-:root .fa-flip-vertical,
-:root .fa-flip-both {
- filter: none; }
-
-.fa-stack {
- display: inline-block;
- height: 2em;
- line-height: 2em;
- position: relative;
- vertical-align: middle;
- width: 2.5em; }
-
-.fa-stack-1x,
-.fa-stack-2x {
- left: 0;
- position: absolute;
- text-align: center;
- width: 100%; }
-
-.fa-stack-1x {
- line-height: inherit; }
-
-.fa-stack-2x {
- font-size: 2em; }
-
-.fa-inverse {
- color: #fff; }
-
-/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
-readers do not read off random characters that represent icons */
-.fa-500px:before {
- content: "\f26e"; }
-
-.fa-accessible-icon:before {
- content: "\f368"; }
-
-.fa-accusoft:before {
- content: "\f369"; }
-
-.fa-acquisitions-incorporated:before {
- content: "\f6af"; }
-
-.fa-ad:before {
- content: "\f641"; }
-
-.fa-address-book:before {
- content: "\f2b9"; }
-
-.fa-address-card:before {
- content: "\f2bb"; }
-
-.fa-adjust:before {
- content: "\f042"; }
-
-.fa-adn:before {
- content: "\f170"; }
-
-.fa-adobe:before {
- content: "\f778"; }
-
-.fa-adversal:before {
- content: "\f36a"; }
-
-.fa-affiliatetheme:before {
- content: "\f36b"; }
-
-.fa-air-freshener:before {
- content: "\f5d0"; }
-
-.fa-airbnb:before {
- content: "\f834"; }
-
-.fa-algolia:before {
- content: "\f36c"; }
-
-.fa-align-center:before {
- content: "\f037"; }
-
-.fa-align-justify:before {
- content: "\f039"; }
-
-.fa-align-left:before {
- content: "\f036"; }
-
-.fa-align-right:before {
- content: "\f038"; }
-
-.fa-alipay:before {
- content: "\f642"; }
-
-.fa-allergies:before {
- content: "\f461"; }
-
-.fa-amazon:before {
- content: "\f270"; }
-
-.fa-amazon-pay:before {
- content: "\f42c"; }
-
-.fa-ambulance:before {
- content: "\f0f9"; }
-
-.fa-american-sign-language-interpreting:before {
- content: "\f2a3"; }
-
-.fa-amilia:before {
- content: "\f36d"; }
-
-.fa-anchor:before {
- content: "\f13d"; }
-
-.fa-android:before {
- content: "\f17b"; }
-
-.fa-angellist:before {
- content: "\f209"; }
-
-.fa-angle-double-down:before {
- content: "\f103"; }
-
-.fa-angle-double-left:before {
- content: "\f100"; }
-
-.fa-angle-double-right:before {
- content: "\f101"; }
-
-.fa-angle-double-up:before {
- content: "\f102"; }
-
-.fa-angle-down:before {
- content: "\f107"; }
-
-.fa-angle-left:before {
- content: "\f104"; }
-
-.fa-angle-right:before {
- content: "\f105"; }
-
-.fa-angle-up:before {
- content: "\f106"; }
-
-.fa-angry:before {
- content: "\f556"; }
-
-.fa-angrycreative:before {
- content: "\f36e"; }
-
-.fa-angular:before {
- content: "\f420"; }
-
-.fa-ankh:before {
- content: "\f644"; }
-
-.fa-app-store:before {
- content: "\f36f"; }
-
-.fa-app-store-ios:before {
- content: "\f370"; }
-
-.fa-apper:before {
- content: "\f371"; }
-
-.fa-apple:before {
- content: "\f179"; }
-
-.fa-apple-alt:before {
- content: "\f5d1"; }
-
-.fa-apple-pay:before {
- content: "\f415"; }
-
-.fa-archive:before {
- content: "\f187"; }
-
-.fa-archway:before {
- content: "\f557"; }
-
-.fa-arrow-alt-circle-down:before {
- content: "\f358"; }
-
-.fa-arrow-alt-circle-left:before {
- content: "\f359"; }
-
-.fa-arrow-alt-circle-right:before {
- content: "\f35a"; }
-
-.fa-arrow-alt-circle-up:before {
- content: "\f35b"; }
-
-.fa-arrow-circle-down:before {
- content: "\f0ab"; }
-
-.fa-arrow-circle-left:before {
- content: "\f0a8"; }
-
-.fa-arrow-circle-right:before {
- content: "\f0a9"; }
-
-.fa-arrow-circle-up:before {
- content: "\f0aa"; }
-
-.fa-arrow-down:before {
- content: "\f063"; }
-
-.fa-arrow-left:before {
- content: "\f060"; }
-
-.fa-arrow-right:before {
- content: "\f061"; }
-
-.fa-arrow-up:before {
- content: "\f062"; }
-
-.fa-arrows-alt:before {
- content: "\f0b2"; }
-
-.fa-arrows-alt-h:before {
- content: "\f337"; }
-
-.fa-arrows-alt-v:before {
- content: "\f338"; }
-
-.fa-artstation:before {
- content: "\f77a"; }
-
-.fa-assistive-listening-systems:before {
- content: "\f2a2"; }
-
-.fa-asterisk:before {
- content: "\f069"; }
-
-.fa-asymmetrik:before {
- content: "\f372"; }
-
-.fa-at:before {
- content: "\f1fa"; }
-
-.fa-atlas:before {
- content: "\f558"; }
-
-.fa-atlassian:before {
- content: "\f77b"; }
-
-.fa-atom:before {
- content: "\f5d2"; }
-
-.fa-audible:before {
- content: "\f373"; }
-
-.fa-audio-description:before {
- content: "\f29e"; }
-
-.fa-autoprefixer:before {
- content: "\f41c"; }
-
-.fa-avianex:before {
- content: "\f374"; }
-
-.fa-aviato:before {
- content: "\f421"; }
-
-.fa-award:before {
- content: "\f559"; }
-
-.fa-aws:before {
- content: "\f375"; }
-
-.fa-baby:before {
- content: "\f77c"; }
-
-.fa-baby-carriage:before {
- content: "\f77d"; }
-
-.fa-backspace:before {
- content: "\f55a"; }
-
-.fa-backward:before {
- content: "\f04a"; }
-
-.fa-bacon:before {
- content: "\f7e5"; }
-
-.fa-balance-scale:before {
- content: "\f24e"; }
-
-.fa-ban:before {
- content: "\f05e"; }
-
-.fa-band-aid:before {
- content: "\f462"; }
-
-.fa-bandcamp:before {
- content: "\f2d5"; }
-
-.fa-barcode:before {
- content: "\f02a"; }
-
-.fa-bars:before {
- content: "\f0c9"; }
-
-.fa-baseball-ball:before {
- content: "\f433"; }
-
-.fa-basketball-ball:before {
- content: "\f434"; }
-
-.fa-bath:before {
- content: "\f2cd"; }
-
-.fa-battery-empty:before {
- content: "\f244"; }
-
-.fa-battery-full:before {
- content: "\f240"; }
-
-.fa-battery-half:before {
- content: "\f242"; }
-
-.fa-battery-quarter:before {
- content: "\f243"; }
-
-.fa-battery-three-quarters:before {
- content: "\f241"; }
-
-.fa-battle-net:before {
- content: "\f835"; }
-
-.fa-bed:before {
- content: "\f236"; }
-
-.fa-beer:before {
- content: "\f0fc"; }
-
-.fa-behance:before {
- content: "\f1b4"; }
-
-.fa-behance-square:before {
- content: "\f1b5"; }
-
-.fa-bell:before {
- content: "\f0f3"; }
-
-.fa-bell-slash:before {
- content: "\f1f6"; }
-
-.fa-bezier-curve:before {
- content: "\f55b"; }
-
-.fa-bible:before {
- content: "\f647"; }
-
-.fa-bicycle:before {
- content: "\f206"; }
-
-.fa-bimobject:before {
- content: "\f378"; }
-
-.fa-binoculars:before {
- content: "\f1e5"; }
-
-.fa-biohazard:before {
- content: "\f780"; }
-
-.fa-birthday-cake:before {
- content: "\f1fd"; }
-
-.fa-bitbucket:before {
- content: "\f171"; }
-
-.fa-bitcoin:before {
- content: "\f379"; }
-
-.fa-bity:before {
- content: "\f37a"; }
-
-.fa-black-tie:before {
- content: "\f27e"; }
-
-.fa-blackberry:before {
- content: "\f37b"; }
-
-.fa-blender:before {
- content: "\f517"; }
-
-.fa-blender-phone:before {
- content: "\f6b6"; }
-
-.fa-blind:before {
- content: "\f29d"; }
-
-.fa-blog:before {
- content: "\f781"; }
-
-.fa-blogger:before {
- content: "\f37c"; }
-
-.fa-blogger-b:before {
- content: "\f37d"; }
-
-.fa-bluetooth:before {
- content: "\f293"; }
-
-.fa-bluetooth-b:before {
- content: "\f294"; }
-
-.fa-bold:before {
- content: "\f032"; }
-
-.fa-bolt:before {
- content: "\f0e7"; }
-
-.fa-bomb:before {
- content: "\f1e2"; }
-
-.fa-bone:before {
- content: "\f5d7"; }
-
-.fa-bong:before {
- content: "\f55c"; }
-
-.fa-book:before {
- content: "\f02d"; }
-
-.fa-book-dead:before {
- content: "\f6b7"; }
-
-.fa-book-medical:before {
- content: "\f7e6"; }
-
-.fa-book-open:before {
- content: "\f518"; }
-
-.fa-book-reader:before {
- content: "\f5da"; }
-
-.fa-bookmark:before {
- content: "\f02e"; }
-
-.fa-bootstrap:before {
- content: "\f836"; }
-
-.fa-bowling-ball:before {
- content: "\f436"; }
-
-.fa-box:before {
- content: "\f466"; }
-
-.fa-box-open:before {
- content: "\f49e"; }
-
-.fa-boxes:before {
- content: "\f468"; }
-
-.fa-braille:before {
- content: "\f2a1"; }
-
-.fa-brain:before {
- content: "\f5dc"; }
-
-.fa-bread-slice:before {
- content: "\f7ec"; }
-
-.fa-briefcase:before {
- content: "\f0b1"; }
-
-.fa-briefcase-medical:before {
- content: "\f469"; }
-
-.fa-broadcast-tower:before {
- content: "\f519"; }
-
-.fa-broom:before {
- content: "\f51a"; }
-
-.fa-brush:before {
- content: "\f55d"; }
-
-.fa-btc:before {
- content: "\f15a"; }
-
-.fa-buffer:before {
- content: "\f837"; }
-
-.fa-bug:before {
- content: "\f188"; }
-
-.fa-building:before {
- content: "\f1ad"; }
-
-.fa-bullhorn:before {
- content: "\f0a1"; }
-
-.fa-bullseye:before {
- content: "\f140"; }
-
-.fa-burn:before {
- content: "\f46a"; }
-
-.fa-buromobelexperte:before {
- content: "\f37f"; }
-
-.fa-bus:before {
- content: "\f207"; }
-
-.fa-bus-alt:before {
- content: "\f55e"; }
-
-.fa-business-time:before {
- content: "\f64a"; }
-
-.fa-buysellads:before {
- content: "\f20d"; }
-
-.fa-calculator:before {
- content: "\f1ec"; }
-
-.fa-calendar:before {
- content: "\f133"; }
-
-.fa-calendar-alt:before {
- content: "\f073"; }
-
-.fa-calendar-check:before {
- content: "\f274"; }
-
-.fa-calendar-day:before {
- content: "\f783"; }
-
-.fa-calendar-minus:before {
- content: "\f272"; }
-
-.fa-calendar-plus:before {
- content: "\f271"; }
-
-.fa-calendar-times:before {
- content: "\f273"; }
-
-.fa-calendar-week:before {
- content: "\f784"; }
-
-.fa-camera:before {
- content: "\f030"; }
-
-.fa-camera-retro:before {
- content: "\f083"; }
-
-.fa-campground:before {
- content: "\f6bb"; }
-
-.fa-canadian-maple-leaf:before {
- content: "\f785"; }
-
-.fa-candy-cane:before {
- content: "\f786"; }
-
-.fa-cannabis:before {
- content: "\f55f"; }
-
-.fa-capsules:before {
- content: "\f46b"; }
-
-.fa-car:before {
- content: "\f1b9"; }
-
-.fa-car-alt:before {
- content: "\f5de"; }
-
-.fa-car-battery:before {
- content: "\f5df"; }
-
-.fa-car-crash:before {
- content: "\f5e1"; }
-
-.fa-car-side:before {
- content: "\f5e4"; }
-
-.fa-caret-down:before {
- content: "\f0d7"; }
-
-.fa-caret-left:before {
- content: "\f0d9"; }
-
-.fa-caret-right:before {
- content: "\f0da"; }
-
-.fa-caret-square-down:before {
- content: "\f150"; }
-
-.fa-caret-square-left:before {
- content: "\f191"; }
-
-.fa-caret-square-right:before {
- content: "\f152"; }
-
-.fa-caret-square-up:before {
- content: "\f151"; }
-
-.fa-caret-up:before {
- content: "\f0d8"; }
-
-.fa-carrot:before {
- content: "\f787"; }
-
-.fa-cart-arrow-down:before {
- content: "\f218"; }
-
-.fa-cart-plus:before {
- content: "\f217"; }
-
-.fa-cash-register:before {
- content: "\f788"; }
-
-.fa-cat:before {
- content: "\f6be"; }
-
-.fa-cc-amazon-pay:before {
- content: "\f42d"; }
-
-.fa-cc-amex:before {
- content: "\f1f3"; }
-
-.fa-cc-apple-pay:before {
- content: "\f416"; }
-
-.fa-cc-diners-club:before {
- content: "\f24c"; }
-
-.fa-cc-discover:before {
- content: "\f1f2"; }
-
-.fa-cc-jcb:before {
- content: "\f24b"; }
-
-.fa-cc-mastercard:before {
- content: "\f1f1"; }
-
-.fa-cc-paypal:before {
- content: "\f1f4"; }
-
-.fa-cc-stripe:before {
- content: "\f1f5"; }
-
-.fa-cc-visa:before {
- content: "\f1f0"; }
-
-.fa-centercode:before {
- content: "\f380"; }
-
-.fa-centos:before {
- content: "\f789"; }
-
-.fa-certificate:before {
- content: "\f0a3"; }
-
-.fa-chair:before {
- content: "\f6c0"; }
-
-.fa-chalkboard:before {
- content: "\f51b"; }
-
-.fa-chalkboard-teacher:before {
- content: "\f51c"; }
-
-.fa-charging-station:before {
- content: "\f5e7"; }
-
-.fa-chart-area:before {
- content: "\f1fe"; }
-
-.fa-chart-bar:before {
- content: "\f080"; }
-
-.fa-chart-line:before {
- content: "\f201"; }
-
-.fa-chart-pie:before {
- content: "\f200"; }
-
-.fa-check:before {
- content: "\f00c"; }
-
-.fa-check-circle:before {
- content: "\f058"; }
-
-.fa-check-double:before {
- content: "\f560"; }
-
-.fa-check-square:before {
- content: "\f14a"; }
-
-.fa-cheese:before {
- content: "\f7ef"; }
-
-.fa-chess:before {
- content: "\f439"; }
-
-.fa-chess-bishop:before {
- content: "\f43a"; }
-
-.fa-chess-board:before {
- content: "\f43c"; }
-
-.fa-chess-king:before {
- content: "\f43f"; }
-
-.fa-chess-knight:before {
- content: "\f441"; }
-
-.fa-chess-pawn:before {
- content: "\f443"; }
-
-.fa-chess-queen:before {
- content: "\f445"; }
-
-.fa-chess-rook:before {
- content: "\f447"; }
-
-.fa-chevron-circle-down:before {
- content: "\f13a"; }
-
-.fa-chevron-circle-left:before {
- content: "\f137"; }
-
-.fa-chevron-circle-right:before {
- content: "\f138"; }
-
-.fa-chevron-circle-up:before {
- content: "\f139"; }
-
-.fa-chevron-down:before {
- content: "\f078"; }
-
-.fa-chevron-left:before {
- content: "\f053"; }
-
-.fa-chevron-right:before {
- content: "\f054"; }
-
-.fa-chevron-up:before {
- content: "\f077"; }
-
-.fa-child:before {
- content: "\f1ae"; }
-
-.fa-chrome:before {
- content: "\f268"; }
-
-.fa-chromecast:before {
- content: "\f838"; }
-
-.fa-church:before {
- content: "\f51d"; }
-
-.fa-circle:before {
- content: "\f111"; }
-
-.fa-circle-notch:before {
- content: "\f1ce"; }
-
-.fa-city:before {
- content: "\f64f"; }
-
-.fa-clinic-medical:before {
- content: "\f7f2"; }
-
-.fa-clipboard:before {
- content: "\f328"; }
-
-.fa-clipboard-check:before {
- content: "\f46c"; }
-
-.fa-clipboard-list:before {
- content: "\f46d"; }
-
-.fa-clock:before {
- content: "\f017"; }
-
-.fa-clone:before {
- content: "\f24d"; }
-
-.fa-closed-captioning:before {
- content: "\f20a"; }
-
-.fa-cloud:before {
- content: "\f0c2"; }
-
-.fa-cloud-download-alt:before {
- content: "\f381"; }
-
-.fa-cloud-meatball:before {
- content: "\f73b"; }
-
-.fa-cloud-moon:before {
- content: "\f6c3"; }
-
-.fa-cloud-moon-rain:before {
- content: "\f73c"; }
-
-.fa-cloud-rain:before {
- content: "\f73d"; }
-
-.fa-cloud-showers-heavy:before {
- content: "\f740"; }
-
-.fa-cloud-sun:before {
- content: "\f6c4"; }
-
-.fa-cloud-sun-rain:before {
- content: "\f743"; }
-
-.fa-cloud-upload-alt:before {
- content: "\f382"; }
-
-.fa-cloudscale:before {
- content: "\f383"; }
-
-.fa-cloudsmith:before {
- content: "\f384"; }
-
-.fa-cloudversify:before {
- content: "\f385"; }
-
-.fa-cocktail:before {
- content: "\f561"; }
-
-.fa-code:before {
- content: "\f121"; }
-
-.fa-code-branch:before {
- content: "\f126"; }
-
-.fa-codepen:before {
- content: "\f1cb"; }
-
-.fa-codiepie:before {
- content: "\f284"; }
-
-.fa-coffee:before {
- content: "\f0f4"; }
-
-.fa-cog:before {
- content: "\f013"; }
-
-.fa-cogs:before {
- content: "\f085"; }
-
-.fa-coins:before {
- content: "\f51e"; }
-
-.fa-columns:before {
- content: "\f0db"; }
-
-.fa-comment:before {
- content: "\f075"; }
-
-.fa-comment-alt:before {
- content: "\f27a"; }
-
-.fa-comment-dollar:before {
- content: "\f651"; }
-
-.fa-comment-dots:before {
- content: "\f4ad"; }
-
-.fa-comment-medical:before {
- content: "\f7f5"; }
-
-.fa-comment-slash:before {
- content: "\f4b3"; }
-
-.fa-comments:before {
- content: "\f086"; }
-
-.fa-comments-dollar:before {
- content: "\f653"; }
-
-.fa-compact-disc:before {
- content: "\f51f"; }
-
-.fa-compass:before {
- content: "\f14e"; }
-
-.fa-compress:before {
- content: "\f066"; }
-
-.fa-compress-arrows-alt:before {
- content: "\f78c"; }
-
-.fa-concierge-bell:before {
- content: "\f562"; }
-
-.fa-confluence:before {
- content: "\f78d"; }
-
-.fa-connectdevelop:before {
- content: "\f20e"; }
-
-.fa-contao:before {
- content: "\f26d"; }
-
-.fa-cookie:before {
- content: "\f563"; }
-
-.fa-cookie-bite:before {
- content: "\f564"; }
-
-.fa-copy:before {
- content: "\f0c5"; }
-
-.fa-copyright:before {
- content: "\f1f9"; }
-
-.fa-couch:before {
- content: "\f4b8"; }
-
-.fa-cpanel:before {
- content: "\f388"; }
-
-.fa-creative-commons:before {
- content: "\f25e"; }
-
-.fa-creative-commons-by:before {
- content: "\f4e7"; }
-
-.fa-creative-commons-nc:before {
- content: "\f4e8"; }
-
-.fa-creative-commons-nc-eu:before {
- content: "\f4e9"; }
-
-.fa-creative-commons-nc-jp:before {
- content: "\f4ea"; }
-
-.fa-creative-commons-nd:before {
- content: "\f4eb"; }
-
-.fa-creative-commons-pd:before {
- content: "\f4ec"; }
-
-.fa-creative-commons-pd-alt:before {
- content: "\f4ed"; }
-
-.fa-creative-commons-remix:before {
- content: "\f4ee"; }
-
-.fa-creative-commons-sa:before {
- content: "\f4ef"; }
-
-.fa-creative-commons-sampling:before {
- content: "\f4f0"; }
-
-.fa-creative-commons-sampling-plus:before {
- content: "\f4f1"; }
-
-.fa-creative-commons-share:before {
- content: "\f4f2"; }
-
-.fa-creative-commons-zero:before {
- content: "\f4f3"; }
-
-.fa-credit-card:before {
- content: "\f09d"; }
-
-.fa-critical-role:before {
- content: "\f6c9"; }
-
-.fa-crop:before {
- content: "\f125"; }
-
-.fa-crop-alt:before {
- content: "\f565"; }
-
-.fa-cross:before {
- content: "\f654"; }
-
-.fa-crosshairs:before {
- content: "\f05b"; }
-
-.fa-crow:before {
- content: "\f520"; }
-
-.fa-crown:before {
- content: "\f521"; }
-
-.fa-crutch:before {
- content: "\f7f7"; }
-
-.fa-css3:before {
- content: "\f13c"; }
-
-.fa-css3-alt:before {
- content: "\f38b"; }
-
-.fa-cube:before {
- content: "\f1b2"; }
-
-.fa-cubes:before {
- content: "\f1b3"; }
-
-.fa-cut:before {
- content: "\f0c4"; }
-
-.fa-cuttlefish:before {
- content: "\f38c"; }
-
-.fa-d-and-d:before {
- content: "\f38d"; }
-
-.fa-d-and-d-beyond:before {
- content: "\f6ca"; }
-
-.fa-dashcube:before {
- content: "\f210"; }
-
-.fa-database:before {
- content: "\f1c0"; }
-
-.fa-deaf:before {
- content: "\f2a4"; }
-
-.fa-delicious:before {
- content: "\f1a5"; }
-
-.fa-democrat:before {
- content: "\f747"; }
-
-.fa-deploydog:before {
- content: "\f38e"; }
-
-.fa-deskpro:before {
- content: "\f38f"; }
-
-.fa-desktop:before {
- content: "\f108"; }
-
-.fa-dev:before {
- content: "\f6cc"; }
-
-.fa-deviantart:before {
- content: "\f1bd"; }
-
-.fa-dharmachakra:before {
- content: "\f655"; }
-
-.fa-dhl:before {
- content: "\f790"; }
-
-.fa-diagnoses:before {
- content: "\f470"; }
-
-.fa-diaspora:before {
- content: "\f791"; }
-
-.fa-dice:before {
- content: "\f522"; }
-
-.fa-dice-d20:before {
- content: "\f6cf"; }
-
-.fa-dice-d6:before {
- content: "\f6d1"; }
-
-.fa-dice-five:before {
- content: "\f523"; }
-
-.fa-dice-four:before {
- content: "\f524"; }
-
-.fa-dice-one:before {
- content: "\f525"; }
-
-.fa-dice-six:before {
- content: "\f526"; }
-
-.fa-dice-three:before {
- content: "\f527"; }
-
-.fa-dice-two:before {
- content: "\f528"; }
-
-.fa-digg:before {
- content: "\f1a6"; }
-
-.fa-digital-ocean:before {
- content: "\f391"; }
-
-.fa-digital-tachograph:before {
- content: "\f566"; }
-
-.fa-directions:before {
- content: "\f5eb"; }
-
-.fa-discord:before {
- content: "\f392"; }
-
-.fa-discourse:before {
- content: "\f393"; }
-
-.fa-divide:before {
- content: "\f529"; }
-
-.fa-dizzy:before {
- content: "\f567"; }
-
-.fa-dna:before {
- content: "\f471"; }
-
-.fa-dochub:before {
- content: "\f394"; }
-
-.fa-docker:before {
- content: "\f395"; }
-
-.fa-dog:before {
- content: "\f6d3"; }
-
-.fa-dollar-sign:before {
- content: "\f155"; }
-
-.fa-dolly:before {
- content: "\f472"; }
-
-.fa-dolly-flatbed:before {
- content: "\f474"; }
-
-.fa-donate:before {
- content: "\f4b9"; }
-
-.fa-door-closed:before {
- content: "\f52a"; }
-
-.fa-door-open:before {
- content: "\f52b"; }
-
-.fa-dot-circle:before {
- content: "\f192"; }
-
-.fa-dove:before {
- content: "\f4ba"; }
-
-.fa-download:before {
- content: "\f019"; }
-
-.fa-draft2digital:before {
- content: "\f396"; }
-
-.fa-drafting-compass:before {
- content: "\f568"; }
-
-.fa-dragon:before {
- content: "\f6d5"; }
-
-.fa-draw-polygon:before {
- content: "\f5ee"; }
-
-.fa-dribbble:before {
- content: "\f17d"; }
-
-.fa-dribbble-square:before {
- content: "\f397"; }
-
-.fa-dropbox:before {
- content: "\f16b"; }
-
-.fa-drum:before {
- content: "\f569"; }
-
-.fa-drum-steelpan:before {
- content: "\f56a"; }
-
-.fa-drumstick-bite:before {
- content: "\f6d7"; }
-
-.fa-drupal:before {
- content: "\f1a9"; }
-
-.fa-dumbbell:before {
- content: "\f44b"; }
-
-.fa-dumpster:before {
- content: "\f793"; }
-
-.fa-dumpster-fire:before {
- content: "\f794"; }
-
-.fa-dungeon:before {
- content: "\f6d9"; }
-
-.fa-dyalog:before {
- content: "\f399"; }
-
-.fa-earlybirds:before {
- content: "\f39a"; }
-
-.fa-ebay:before {
- content: "\f4f4"; }
-
-.fa-edge:before {
- content: "\f282"; }
-
-.fa-edit:before {
- content: "\f044"; }
-
-.fa-egg:before {
- content: "\f7fb"; }
-
-.fa-eject:before {
- content: "\f052"; }
-
-.fa-elementor:before {
- content: "\f430"; }
-
-.fa-ellipsis-h:before {
- content: "\f141"; }
-
-.fa-ellipsis-v:before {
- content: "\f142"; }
-
-.fa-ello:before {
- content: "\f5f1"; }
-
-.fa-ember:before {
- content: "\f423"; }
-
-.fa-empire:before {
- content: "\f1d1"; }
-
-.fa-envelope:before {
- content: "\f0e0"; }
-
-.fa-envelope-open:before {
- content: "\f2b6"; }
-
-.fa-envelope-open-text:before {
- content: "\f658"; }
-
-.fa-envelope-square:before {
- content: "\f199"; }
-
-.fa-envira:before {
- content: "\f299"; }
-
-.fa-equals:before {
- content: "\f52c"; }
-
-.fa-eraser:before {
- content: "\f12d"; }
-
-.fa-erlang:before {
- content: "\f39d"; }
-
-.fa-ethereum:before {
- content: "\f42e"; }
-
-.fa-ethernet:before {
- content: "\f796"; }
-
-.fa-etsy:before {
- content: "\f2d7"; }
-
-.fa-euro-sign:before {
- content: "\f153"; }
-
-.fa-evernote:before {
- content: "\f839"; }
-
-.fa-exchange-alt:before {
- content: "\f362"; }
-
-.fa-exclamation:before {
- content: "\f12a"; }
-
-.fa-exclamation-circle:before {
- content: "\f06a"; }
-
-.fa-exclamation-triangle:before {
- content: "\f071"; }
-
-.fa-expand:before {
- content: "\f065"; }
-
-.fa-expand-arrows-alt:before {
- content: "\f31e"; }
-
-.fa-expeditedssl:before {
- content: "\f23e"; }
-
-.fa-external-link-alt:before {
- content: "\f35d"; }
-
-.fa-external-link-square-alt:before {
- content: "\f360"; }
-
-.fa-eye:before {
- content: "\f06e"; }
-
-.fa-eye-dropper:before {
- content: "\f1fb"; }
-
-.fa-eye-slash:before {
- content: "\f070"; }
-
-.fa-facebook:before {
- content: "\f09a"; }
-
-.fa-facebook-f:before {
- content: "\f39e"; }
-
-.fa-facebook-messenger:before {
- content: "\f39f"; }
-
-.fa-facebook-square:before {
- content: "\f082"; }
-
-.fa-fantasy-flight-games:before {
- content: "\f6dc"; }
-
-.fa-fast-backward:before {
- content: "\f049"; }
-
-.fa-fast-forward:before {
- content: "\f050"; }
-
-.fa-fax:before {
- content: "\f1ac"; }
-
-.fa-feather:before {
- content: "\f52d"; }
-
-.fa-feather-alt:before {
- content: "\f56b"; }
-
-.fa-fedex:before {
- content: "\f797"; }
-
-.fa-fedora:before {
- content: "\f798"; }
-
-.fa-female:before {
- content: "\f182"; }
-
-.fa-fighter-jet:before {
- content: "\f0fb"; }
-
-.fa-figma:before {
- content: "\f799"; }
-
-.fa-file:before {
- content: "\f15b"; }
-
-.fa-file-alt:before {
- content: "\f15c"; }
-
-.fa-file-archive:before {
- content: "\f1c6"; }
-
-.fa-file-audio:before {
- content: "\f1c7"; }
-
-.fa-file-code:before {
- content: "\f1c9"; }
-
-.fa-file-contract:before {
- content: "\f56c"; }
-
-.fa-file-csv:before {
- content: "\f6dd"; }
-
-.fa-file-download:before {
- content: "\f56d"; }
-
-.fa-file-excel:before {
- content: "\f1c3"; }
-
-.fa-file-export:before {
- content: "\f56e"; }
-
-.fa-file-image:before {
- content: "\f1c5"; }
-
-.fa-file-import:before {
- content: "\f56f"; }
-
-.fa-file-invoice:before {
- content: "\f570"; }
-
-.fa-file-invoice-dollar:before {
- content: "\f571"; }
-
-.fa-file-medical:before {
- content: "\f477"; }
-
-.fa-file-medical-alt:before {
- content: "\f478"; }
-
-.fa-file-pdf:before {
- content: "\f1c1"; }
-
-.fa-file-powerpoint:before {
- content: "\f1c4"; }
-
-.fa-file-prescription:before {
- content: "\f572"; }
-
-.fa-file-signature:before {
- content: "\f573"; }
-
-.fa-file-upload:before {
- content: "\f574"; }
-
-.fa-file-video:before {
- content: "\f1c8"; }
-
-.fa-file-word:before {
- content: "\f1c2"; }
-
-.fa-fill:before {
- content: "\f575"; }
-
-.fa-fill-drip:before {
- content: "\f576"; }
-
-.fa-film:before {
- content: "\f008"; }
-
-.fa-filter:before {
- content: "\f0b0"; }
-
-.fa-fingerprint:before {
- content: "\f577"; }
-
-.fa-fire:before {
- content: "\f06d"; }
-
-.fa-fire-alt:before {
- content: "\f7e4"; }
-
-.fa-fire-extinguisher:before {
- content: "\f134"; }
-
-.fa-firefox:before {
- content: "\f269"; }
-
-.fa-first-aid:before {
- content: "\f479"; }
-
-.fa-first-order:before {
- content: "\f2b0"; }
-
-.fa-first-order-alt:before {
- content: "\f50a"; }
-
-.fa-firstdraft:before {
- content: "\f3a1"; }
-
-.fa-fish:before {
- content: "\f578"; }
-
-.fa-fist-raised:before {
- content: "\f6de"; }
-
-.fa-flag:before {
- content: "\f024"; }
-
-.fa-flag-checkered:before {
- content: "\f11e"; }
-
-.fa-flag-usa:before {
- content: "\f74d"; }
-
-.fa-flask:before {
- content: "\f0c3"; }
-
-.fa-flickr:before {
- content: "\f16e"; }
-
-.fa-flipboard:before {
- content: "\f44d"; }
-
-.fa-flushed:before {
- content: "\f579"; }
-
-.fa-fly:before {
- content: "\f417"; }
-
-.fa-folder:before {
- content: "\f07b"; }
-
-.fa-folder-minus:before {
- content: "\f65d"; }
-
-.fa-folder-open:before {
- content: "\f07c"; }
-
-.fa-folder-plus:before {
- content: "\f65e"; }
-
-.fa-font:before {
- content: "\f031"; }
-
-.fa-font-awesome:before {
- content: "\f2b4"; }
-
-.fa-font-awesome-alt:before {
- content: "\f35c"; }
-
-.fa-font-awesome-flag:before {
- content: "\f425"; }
-
-.fa-font-awesome-logo-full:before {
- content: "\f4e6"; }
-
-.fa-fonticons:before {
- content: "\f280"; }
-
-.fa-fonticons-fi:before {
- content: "\f3a2"; }
-
-.fa-football-ball:before {
- content: "\f44e"; }
-
-.fa-fort-awesome:before {
- content: "\f286"; }
-
-.fa-fort-awesome-alt:before {
- content: "\f3a3"; }
-
-.fa-forumbee:before {
- content: "\f211"; }
-
-.fa-forward:before {
- content: "\f04e"; }
-
-.fa-foursquare:before {
- content: "\f180"; }
-
-.fa-free-code-camp:before {
- content: "\f2c5"; }
-
-.fa-freebsd:before {
- content: "\f3a4"; }
-
-.fa-frog:before {
- content: "\f52e"; }
-
-.fa-frown:before {
- content: "\f119"; }
-
-.fa-frown-open:before {
- content: "\f57a"; }
-
-.fa-fulcrum:before {
- content: "\f50b"; }
-
-.fa-funnel-dollar:before {
- content: "\f662"; }
-
-.fa-futbol:before {
- content: "\f1e3"; }
-
-.fa-galactic-republic:before {
- content: "\f50c"; }
-
-.fa-galactic-senate:before {
- content: "\f50d"; }
-
-.fa-gamepad:before {
- content: "\f11b"; }
-
-.fa-gas-pump:before {
- content: "\f52f"; }
-
-.fa-gavel:before {
- content: "\f0e3"; }
-
-.fa-gem:before {
- content: "\f3a5"; }
-
-.fa-genderless:before {
- content: "\f22d"; }
-
-.fa-get-pocket:before {
- content: "\f265"; }
-
-.fa-gg:before {
- content: "\f260"; }
-
-.fa-gg-circle:before {
- content: "\f261"; }
-
-.fa-ghost:before {
- content: "\f6e2"; }
-
-.fa-gift:before {
- content: "\f06b"; }
-
-.fa-gifts:before {
- content: "\f79c"; }
-
-.fa-git:before {
- content: "\f1d3"; }
-
-.fa-git-alt:before {
- content: "\f841"; }
-
-.fa-git-square:before {
- content: "\f1d2"; }
-
-.fa-github:before {
- content: "\f09b"; }
-
-.fa-github-alt:before {
- content: "\f113"; }
-
-.fa-github-square:before {
- content: "\f092"; }
-
-.fa-gitkraken:before {
- content: "\f3a6"; }
-
-.fa-gitlab:before {
- content: "\f296"; }
-
-.fa-gitter:before {
- content: "\f426"; }
-
-.fa-glass-cheers:before {
- content: "\f79f"; }
-
-.fa-glass-martini:before {
- content: "\f000"; }
-
-.fa-glass-martini-alt:before {
- content: "\f57b"; }
-
-.fa-glass-whiskey:before {
- content: "\f7a0"; }
-
-.fa-glasses:before {
- content: "\f530"; }
-
-.fa-glide:before {
- content: "\f2a5"; }
-
-.fa-glide-g:before {
- content: "\f2a6"; }
-
-.fa-globe:before {
- content: "\f0ac"; }
-
-.fa-globe-africa:before {
- content: "\f57c"; }
-
-.fa-globe-americas:before {
- content: "\f57d"; }
-
-.fa-globe-asia:before {
- content: "\f57e"; }
-
-.fa-globe-europe:before {
- content: "\f7a2"; }
-
-.fa-gofore:before {
- content: "\f3a7"; }
-
-.fa-golf-ball:before {
- content: "\f450"; }
-
-.fa-goodreads:before {
- content: "\f3a8"; }
-
-.fa-goodreads-g:before {
- content: "\f3a9"; }
-
-.fa-google:before {
- content: "\f1a0"; }
-
-.fa-google-drive:before {
- content: "\f3aa"; }
-
-.fa-google-play:before {
- content: "\f3ab"; }
-
-.fa-google-plus:before {
- content: "\f2b3"; }
-
-.fa-google-plus-g:before {
- content: "\f0d5"; }
-
-.fa-google-plus-square:before {
- content: "\f0d4"; }
-
-.fa-google-wallet:before {
- content: "\f1ee"; }
-
-.fa-gopuram:before {
- content: "\f664"; }
-
-.fa-graduation-cap:before {
- content: "\f19d"; }
-
-.fa-gratipay:before {
- content: "\f184"; }
-
-.fa-grav:before {
- content: "\f2d6"; }
-
-.fa-greater-than:before {
- content: "\f531"; }
-
-.fa-greater-than-equal:before {
- content: "\f532"; }
-
-.fa-grimace:before {
- content: "\f57f"; }
-
-.fa-grin:before {
- content: "\f580"; }
-
-.fa-grin-alt:before {
- content: "\f581"; }
-
-.fa-grin-beam:before {
- content: "\f582"; }
-
-.fa-grin-beam-sweat:before {
- content: "\f583"; }
-
-.fa-grin-hearts:before {
- content: "\f584"; }
-
-.fa-grin-squint:before {
- content: "\f585"; }
-
-.fa-grin-squint-tears:before {
- content: "\f586"; }
-
-.fa-grin-stars:before {
- content: "\f587"; }
-
-.fa-grin-tears:before {
- content: "\f588"; }
-
-.fa-grin-tongue:before {
- content: "\f589"; }
-
-.fa-grin-tongue-squint:before {
- content: "\f58a"; }
-
-.fa-grin-tongue-wink:before {
- content: "\f58b"; }
-
-.fa-grin-wink:before {
- content: "\f58c"; }
-
-.fa-grip-horizontal:before {
- content: "\f58d"; }
-
-.fa-grip-lines:before {
- content: "\f7a4"; }
-
-.fa-grip-lines-vertical:before {
- content: "\f7a5"; }
-
-.fa-grip-vertical:before {
- content: "\f58e"; }
-
-.fa-gripfire:before {
- content: "\f3ac"; }
-
-.fa-grunt:before {
- content: "\f3ad"; }
-
-.fa-guitar:before {
- content: "\f7a6"; }
-
-.fa-gulp:before {
- content: "\f3ae"; }
-
-.fa-h-square:before {
- content: "\f0fd"; }
-
-.fa-hacker-news:before {
- content: "\f1d4"; }
-
-.fa-hacker-news-square:before {
- content: "\f3af"; }
-
-.fa-hackerrank:before {
- content: "\f5f7"; }
-
-.fa-hamburger:before {
- content: "\f805"; }
-
-.fa-hammer:before {
- content: "\f6e3"; }
-
-.fa-hamsa:before {
- content: "\f665"; }
-
-.fa-hand-holding:before {
- content: "\f4bd"; }
-
-.fa-hand-holding-heart:before {
- content: "\f4be"; }
-
-.fa-hand-holding-usd:before {
- content: "\f4c0"; }
-
-.fa-hand-lizard:before {
- content: "\f258"; }
-
-.fa-hand-middle-finger:before {
- content: "\f806"; }
-
-.fa-hand-paper:before {
- content: "\f256"; }
-
-.fa-hand-peace:before {
- content: "\f25b"; }
-
-.fa-hand-point-down:before {
- content: "\f0a7"; }
-
-.fa-hand-point-left:before {
- content: "\f0a5"; }
-
-.fa-hand-point-right:before {
- content: "\f0a4"; }
-
-.fa-hand-point-up:before {
- content: "\f0a6"; }
-
-.fa-hand-pointer:before {
- content: "\f25a"; }
-
-.fa-hand-rock:before {
- content: "\f255"; }
-
-.fa-hand-scissors:before {
- content: "\f257"; }
-
-.fa-hand-spock:before {
- content: "\f259"; }
-
-.fa-hands:before {
- content: "\f4c2"; }
-
-.fa-hands-helping:before {
- content: "\f4c4"; }
-
-.fa-handshake:before {
- content: "\f2b5"; }
-
-.fa-hanukiah:before {
- content: "\f6e6"; }
-
-.fa-hard-hat:before {
- content: "\f807"; }
-
-.fa-hashtag:before {
- content: "\f292"; }
-
-.fa-hat-wizard:before {
- content: "\f6e8"; }
-
-.fa-haykal:before {
- content: "\f666"; }
-
-.fa-hdd:before {
- content: "\f0a0"; }
-
-.fa-heading:before {
- content: "\f1dc"; }
-
-.fa-headphones:before {
- content: "\f025"; }
-
-.fa-headphones-alt:before {
- content: "\f58f"; }
-
-.fa-headset:before {
- content: "\f590"; }
-
-.fa-heart:before {
- content: "\f004"; }
-
-.fa-heart-broken:before {
- content: "\f7a9"; }
-
-.fa-heartbeat:before {
- content: "\f21e"; }
-
-.fa-helicopter:before {
- content: "\f533"; }
-
-.fa-highlighter:before {
- content: "\f591"; }
-
-.fa-hiking:before {
- content: "\f6ec"; }
-
-.fa-hippo:before {
- content: "\f6ed"; }
-
-.fa-hips:before {
- content: "\f452"; }
-
-.fa-hire-a-helper:before {
- content: "\f3b0"; }
-
-.fa-history:before {
- content: "\f1da"; }
-
-.fa-hockey-puck:before {
- content: "\f453"; }
-
-.fa-holly-berry:before {
- content: "\f7aa"; }
-
-.fa-home:before {
- content: "\f015"; }
-
-.fa-hooli:before {
- content: "\f427"; }
-
-.fa-hornbill:before {
- content: "\f592"; }
-
-.fa-horse:before {
- content: "\f6f0"; }
-
-.fa-horse-head:before {
- content: "\f7ab"; }
-
-.fa-hospital:before {
- content: "\f0f8"; }
-
-.fa-hospital-alt:before {
- content: "\f47d"; }
-
-.fa-hospital-symbol:before {
- content: "\f47e"; }
-
-.fa-hot-tub:before {
- content: "\f593"; }
-
-.fa-hotdog:before {
- content: "\f80f"; }
-
-.fa-hotel:before {
- content: "\f594"; }
-
-.fa-hotjar:before {
- content: "\f3b1"; }
-
-.fa-hourglass:before {
- content: "\f254"; }
-
-.fa-hourglass-end:before {
- content: "\f253"; }
-
-.fa-hourglass-half:before {
- content: "\f252"; }
-
-.fa-hourglass-start:before {
- content: "\f251"; }
-
-.fa-house-damage:before {
- content: "\f6f1"; }
-
-.fa-houzz:before {
- content: "\f27c"; }
-
-.fa-hryvnia:before {
- content: "\f6f2"; }
-
-.fa-html5:before {
- content: "\f13b"; }
-
-.fa-hubspot:before {
- content: "\f3b2"; }
-
-.fa-i-cursor:before {
- content: "\f246"; }
-
-.fa-ice-cream:before {
- content: "\f810"; }
-
-.fa-icicles:before {
- content: "\f7ad"; }
-
-.fa-id-badge:before {
- content: "\f2c1"; }
-
-.fa-id-card:before {
- content: "\f2c2"; }
-
-.fa-id-card-alt:before {
- content: "\f47f"; }
-
-.fa-igloo:before {
- content: "\f7ae"; }
-
-.fa-image:before {
- content: "\f03e"; }
-
-.fa-images:before {
- content: "\f302"; }
-
-.fa-imdb:before {
- content: "\f2d8"; }
-
-.fa-inbox:before {
- content: "\f01c"; }
-
-.fa-indent:before {
- content: "\f03c"; }
-
-.fa-industry:before {
- content: "\f275"; }
-
-.fa-infinity:before {
- content: "\f534"; }
-
-.fa-info:before {
- content: "\f129"; }
-
-.fa-info-circle:before {
- content: "\f05a"; }
-
-.fa-instagram:before {
- content: "\f16d"; }
-
-.fa-intercom:before {
- content: "\f7af"; }
-
-.fa-internet-explorer:before {
- content: "\f26b"; }
-
-.fa-invision:before {
- content: "\f7b0"; }
-
-.fa-ioxhost:before {
- content: "\f208"; }
-
-.fa-italic:before {
- content: "\f033"; }
-
-.fa-itch-io:before {
- content: "\f83a"; }
-
-.fa-itunes:before {
- content: "\f3b4"; }
-
-.fa-itunes-note:before {
- content: "\f3b5"; }
-
-.fa-java:before {
- content: "\f4e4"; }
-
-.fa-jedi:before {
- content: "\f669"; }
-
-.fa-jedi-order:before {
- content: "\f50e"; }
-
-.fa-jenkins:before {
- content: "\f3b6"; }
-
-.fa-jira:before {
- content: "\f7b1"; }
-
-.fa-joget:before {
- content: "\f3b7"; }
-
-.fa-joint:before {
- content: "\f595"; }
-
-.fa-joomla:before {
- content: "\f1aa"; }
-
-.fa-journal-whills:before {
- content: "\f66a"; }
-
-.fa-js:before {
- content: "\f3b8"; }
-
-.fa-js-square:before {
- content: "\f3b9"; }
-
-.fa-jsfiddle:before {
- content: "\f1cc"; }
-
-.fa-kaaba:before {
- content: "\f66b"; }
-
-.fa-kaggle:before {
- content: "\f5fa"; }
-
-.fa-key:before {
- content: "\f084"; }
-
-.fa-keybase:before {
- content: "\f4f5"; }
-
-.fa-keyboard:before {
- content: "\f11c"; }
-
-.fa-keycdn:before {
- content: "\f3ba"; }
-
-.fa-khanda:before {
- content: "\f66d"; }
-
-.fa-kickstarter:before {
- content: "\f3bb"; }
-
-.fa-kickstarter-k:before {
- content: "\f3bc"; }
-
-.fa-kiss:before {
- content: "\f596"; }
-
-.fa-kiss-beam:before {
- content: "\f597"; }
-
-.fa-kiss-wink-heart:before {
- content: "\f598"; }
-
-.fa-kiwi-bird:before {
- content: "\f535"; }
-
-.fa-korvue:before {
- content: "\f42f"; }
-
-.fa-landmark:before {
- content: "\f66f"; }
-
-.fa-language:before {
- content: "\f1ab"; }
-
-.fa-laptop:before {
- content: "\f109"; }
-
-.fa-laptop-code:before {
- content: "\f5fc"; }
-
-.fa-laptop-medical:before {
- content: "\f812"; }
-
-.fa-laravel:before {
- content: "\f3bd"; }
-
-.fa-lastfm:before {
- content: "\f202"; }
-
-.fa-lastfm-square:before {
- content: "\f203"; }
-
-.fa-laugh:before {
- content: "\f599"; }
-
-.fa-laugh-beam:before {
- content: "\f59a"; }
-
-.fa-laugh-squint:before {
- content: "\f59b"; }
-
-.fa-laugh-wink:before {
- content: "\f59c"; }
-
-.fa-layer-group:before {
- content: "\f5fd"; }
-
-.fa-leaf:before {
- content: "\f06c"; }
-
-.fa-leanpub:before {
- content: "\f212"; }
-
-.fa-lemon:before {
- content: "\f094"; }
-
-.fa-less:before {
- content: "\f41d"; }
-
-.fa-less-than:before {
- content: "\f536"; }
-
-.fa-less-than-equal:before {
- content: "\f537"; }
-
-.fa-level-down-alt:before {
- content: "\f3be"; }
-
-.fa-level-up-alt:before {
- content: "\f3bf"; }
-
-.fa-life-ring:before {
- content: "\f1cd"; }
-
-.fa-lightbulb:before {
- content: "\f0eb"; }
-
-.fa-line:before {
- content: "\f3c0"; }
-
-.fa-link:before {
- content: "\f0c1"; }
-
-.fa-linkedin:before {
- content: "\f08c"; }
-
-.fa-linkedin-in:before {
- content: "\f0e1"; }
-
-.fa-linode:before {
- content: "\f2b8"; }
-
-.fa-linux:before {
- content: "\f17c"; }
-
-.fa-lira-sign:before {
- content: "\f195"; }
-
-.fa-list:before {
- content: "\f03a"; }
-
-.fa-list-alt:before {
- content: "\f022"; }
-
-.fa-list-ol:before {
- content: "\f0cb"; }
-
-.fa-list-ul:before {
- content: "\f0ca"; }
-
-.fa-location-arrow:before {
- content: "\f124"; }
-
-.fa-lock:before {
- content: "\f023"; }
-
-.fa-lock-open:before {
- content: "\f3c1"; }
-
-.fa-long-arrow-alt-down:before {
- content: "\f309"; }
-
-.fa-long-arrow-alt-left:before {
- content: "\f30a"; }
-
-.fa-long-arrow-alt-right:before {
- content: "\f30b"; }
-
-.fa-long-arrow-alt-up:before {
- content: "\f30c"; }
-
-.fa-low-vision:before {
- content: "\f2a8"; }
-
-.fa-luggage-cart:before {
- content: "\f59d"; }
-
-.fa-lyft:before {
- content: "\f3c3"; }
-
-.fa-magento:before {
- content: "\f3c4"; }
-
-.fa-magic:before {
- content: "\f0d0"; }
-
-.fa-magnet:before {
- content: "\f076"; }
-
-.fa-mail-bulk:before {
- content: "\f674"; }
-
-.fa-mailchimp:before {
- content: "\f59e"; }
-
-.fa-male:before {
- content: "\f183"; }
-
-.fa-mandalorian:before {
- content: "\f50f"; }
-
-.fa-map:before {
- content: "\f279"; }
-
-.fa-map-marked:before {
- content: "\f59f"; }
-
-.fa-map-marked-alt:before {
- content: "\f5a0"; }
-
-.fa-map-marker:before {
- content: "\f041"; }
-
-.fa-map-marker-alt:before {
- content: "\f3c5"; }
-
-.fa-map-pin:before {
- content: "\f276"; }
-
-.fa-map-signs:before {
- content: "\f277"; }
-
-.fa-markdown:before {
- content: "\f60f"; }
-
-.fa-marker:before {
- content: "\f5a1"; }
-
-.fa-mars:before {
- content: "\f222"; }
-
-.fa-mars-double:before {
- content: "\f227"; }
-
-.fa-mars-stroke:before {
- content: "\f229"; }
-
-.fa-mars-stroke-h:before {
- content: "\f22b"; }
-
-.fa-mars-stroke-v:before {
- content: "\f22a"; }
-
-.fa-mask:before {
- content: "\f6fa"; }
-
-.fa-mastodon:before {
- content: "\f4f6"; }
-
-.fa-maxcdn:before {
- content: "\f136"; }
-
-.fa-medal:before {
- content: "\f5a2"; }
-
-.fa-medapps:before {
- content: "\f3c6"; }
-
-.fa-medium:before {
- content: "\f23a"; }
-
-.fa-medium-m:before {
- content: "\f3c7"; }
-
-.fa-medkit:before {
- content: "\f0fa"; }
-
-.fa-medrt:before {
- content: "\f3c8"; }
-
-.fa-meetup:before {
- content: "\f2e0"; }
-
-.fa-megaport:before {
- content: "\f5a3"; }
-
-.fa-meh:before {
- content: "\f11a"; }
-
-.fa-meh-blank:before {
- content: "\f5a4"; }
-
-.fa-meh-rolling-eyes:before {
- content: "\f5a5"; }
-
-.fa-memory:before {
- content: "\f538"; }
-
-.fa-mendeley:before {
- content: "\f7b3"; }
-
-.fa-menorah:before {
- content: "\f676"; }
-
-.fa-mercury:before {
- content: "\f223"; }
-
-.fa-meteor:before {
- content: "\f753"; }
-
-.fa-microchip:before {
- content: "\f2db"; }
-
-.fa-microphone:before {
- content: "\f130"; }
-
-.fa-microphone-alt:before {
- content: "\f3c9"; }
-
-.fa-microphone-alt-slash:before {
- content: "\f539"; }
-
-.fa-microphone-slash:before {
- content: "\f131"; }
-
-.fa-microscope:before {
- content: "\f610"; }
-
-.fa-microsoft:before {
- content: "\f3ca"; }
-
-.fa-minus:before {
- content: "\f068"; }
-
-.fa-minus-circle:before {
- content: "\f056"; }
-
-.fa-minus-square:before {
- content: "\f146"; }
-
-.fa-mitten:before {
- content: "\f7b5"; }
-
-.fa-mix:before {
- content: "\f3cb"; }
-
-.fa-mixcloud:before {
- content: "\f289"; }
-
-.fa-mizuni:before {
- content: "\f3cc"; }
-
-.fa-mobile:before {
- content: "\f10b"; }
-
-.fa-mobile-alt:before {
- content: "\f3cd"; }
-
-.fa-modx:before {
- content: "\f285"; }
-
-.fa-monero:before {
- content: "\f3d0"; }
-
-.fa-money-bill:before {
- content: "\f0d6"; }
-
-.fa-money-bill-alt:before {
- content: "\f3d1"; }
-
-.fa-money-bill-wave:before {
- content: "\f53a"; }
-
-.fa-money-bill-wave-alt:before {
- content: "\f53b"; }
-
-.fa-money-check:before {
- content: "\f53c"; }
-
-.fa-money-check-alt:before {
- content: "\f53d"; }
-
-.fa-monument:before {
- content: "\f5a6"; }
-
-.fa-moon:before {
- content: "\f186"; }
-
-.fa-mortar-pestle:before {
- content: "\f5a7"; }
-
-.fa-mosque:before {
- content: "\f678"; }
-
-.fa-motorcycle:before {
- content: "\f21c"; }
-
-.fa-mountain:before {
- content: "\f6fc"; }
-
-.fa-mouse-pointer:before {
- content: "\f245"; }
-
-.fa-mug-hot:before {
- content: "\f7b6"; }
-
-.fa-music:before {
- content: "\f001"; }
-
-.fa-napster:before {
- content: "\f3d2"; }
-
-.fa-neos:before {
- content: "\f612"; }
-
-.fa-network-wired:before {
- content: "\f6ff"; }
-
-.fa-neuter:before {
- content: "\f22c"; }
-
-.fa-newspaper:before {
- content: "\f1ea"; }
-
-.fa-nimblr:before {
- content: "\f5a8"; }
-
-.fa-nintendo-switch:before {
- content: "\f418"; }
-
-.fa-node:before {
- content: "\f419"; }
-
-.fa-node-js:before {
- content: "\f3d3"; }
-
-.fa-not-equal:before {
- content: "\f53e"; }
-
-.fa-notes-medical:before {
- content: "\f481"; }
-
-.fa-npm:before {
- content: "\f3d4"; }
-
-.fa-ns8:before {
- content: "\f3d5"; }
-
-.fa-nutritionix:before {
- content: "\f3d6"; }
-
-.fa-object-group:before {
- content: "\f247"; }
-
-.fa-object-ungroup:before {
- content: "\f248"; }
-
-.fa-odnoklassniki:before {
- content: "\f263"; }
-
-.fa-odnoklassniki-square:before {
- content: "\f264"; }
-
-.fa-oil-can:before {
- content: "\f613"; }
-
-.fa-old-republic:before {
- content: "\f510"; }
-
-.fa-om:before {
- content: "\f679"; }
-
-.fa-opencart:before {
- content: "\f23d"; }
-
-.fa-openid:before {
- content: "\f19b"; }
-
-.fa-opera:before {
- content: "\f26a"; }
-
-.fa-optin-monster:before {
- content: "\f23c"; }
-
-.fa-osi:before {
- content: "\f41a"; }
-
-.fa-otter:before {
- content: "\f700"; }
-
-.fa-outdent:before {
- content: "\f03b"; }
-
-.fa-page4:before {
- content: "\f3d7"; }
-
-.fa-pagelines:before {
- content: "\f18c"; }
-
-.fa-pager:before {
- content: "\f815"; }
-
-.fa-paint-brush:before {
- content: "\f1fc"; }
-
-.fa-paint-roller:before {
- content: "\f5aa"; }
-
-.fa-palette:before {
- content: "\f53f"; }
-
-.fa-palfed:before {
- content: "\f3d8"; }
-
-.fa-pallet:before {
- content: "\f482"; }
-
-.fa-paper-plane:before {
- content: "\f1d8"; }
-
-.fa-paperclip:before {
- content: "\f0c6"; }
-
-.fa-parachute-box:before {
- content: "\f4cd"; }
-
-.fa-paragraph:before {
- content: "\f1dd"; }
-
-.fa-parking:before {
- content: "\f540"; }
-
-.fa-passport:before {
- content: "\f5ab"; }
-
-.fa-pastafarianism:before {
- content: "\f67b"; }
-
-.fa-paste:before {
- content: "\f0ea"; }
-
-.fa-patreon:before {
- content: "\f3d9"; }
-
-.fa-pause:before {
- content: "\f04c"; }
-
-.fa-pause-circle:before {
- content: "\f28b"; }
-
-.fa-paw:before {
- content: "\f1b0"; }
-
-.fa-paypal:before {
- content: "\f1ed"; }
-
-.fa-peace:before {
- content: "\f67c"; }
-
-.fa-pen:before {
- content: "\f304"; }
-
-.fa-pen-alt:before {
- content: "\f305"; }
-
-.fa-pen-fancy:before {
- content: "\f5ac"; }
-
-.fa-pen-nib:before {
- content: "\f5ad"; }
-
-.fa-pen-square:before {
- content: "\f14b"; }
-
-.fa-pencil-alt:before {
- content: "\f303"; }
-
-.fa-pencil-ruler:before {
- content: "\f5ae"; }
-
-.fa-penny-arcade:before {
- content: "\f704"; }
-
-.fa-people-carry:before {
- content: "\f4ce"; }
-
-.fa-pepper-hot:before {
- content: "\f816"; }
-
-.fa-percent:before {
- content: "\f295"; }
-
-.fa-percentage:before {
- content: "\f541"; }
-
-.fa-periscope:before {
- content: "\f3da"; }
-
-.fa-person-booth:before {
- content: "\f756"; }
-
-.fa-phabricator:before {
- content: "\f3db"; }
-
-.fa-phoenix-framework:before {
- content: "\f3dc"; }
-
-.fa-phoenix-squadron:before {
- content: "\f511"; }
-
-.fa-phone:before {
- content: "\f095"; }
-
-.fa-phone-slash:before {
- content: "\f3dd"; }
-
-.fa-phone-square:before {
- content: "\f098"; }
-
-.fa-phone-volume:before {
- content: "\f2a0"; }
-
-.fa-php:before {
- content: "\f457"; }
-
-.fa-pied-piper:before {
- content: "\f2ae"; }
-
-.fa-pied-piper-alt:before {
- content: "\f1a8"; }
-
-.fa-pied-piper-hat:before {
- content: "\f4e5"; }
-
-.fa-pied-piper-pp:before {
- content: "\f1a7"; }
-
-.fa-piggy-bank:before {
- content: "\f4d3"; }
-
-.fa-pills:before {
- content: "\f484"; }
-
-.fa-pinterest:before {
- content: "\f0d2"; }
-
-.fa-pinterest-p:before {
- content: "\f231"; }
-
-.fa-pinterest-square:before {
- content: "\f0d3"; }
-
-.fa-pizza-slice:before {
- content: "\f818"; }
-
-.fa-place-of-worship:before {
- content: "\f67f"; }
-
-.fa-plane:before {
- content: "\f072"; }
-
-.fa-plane-arrival:before {
- content: "\f5af"; }
-
-.fa-plane-departure:before {
- content: "\f5b0"; }
-
-.fa-play:before {
- content: "\f04b"; }
-
-.fa-play-circle:before {
- content: "\f144"; }
-
-.fa-playstation:before {
- content: "\f3df"; }
-
-.fa-plug:before {
- content: "\f1e6"; }
-
-.fa-plus:before {
- content: "\f067"; }
-
-.fa-plus-circle:before {
- content: "\f055"; }
-
-.fa-plus-square:before {
- content: "\f0fe"; }
-
-.fa-podcast:before {
- content: "\f2ce"; }
-
-.fa-poll:before {
- content: "\f681"; }
-
-.fa-poll-h:before {
- content: "\f682"; }
-
-.fa-poo:before {
- content: "\f2fe"; }
-
-.fa-poo-storm:before {
- content: "\f75a"; }
-
-.fa-poop:before {
- content: "\f619"; }
-
-.fa-portrait:before {
- content: "\f3e0"; }
-
-.fa-pound-sign:before {
- content: "\f154"; }
-
-.fa-power-off:before {
- content: "\f011"; }
-
-.fa-pray:before {
- content: "\f683"; }
-
-.fa-praying-hands:before {
- content: "\f684"; }
-
-.fa-prescription:before {
- content: "\f5b1"; }
-
-.fa-prescription-bottle:before {
- content: "\f485"; }
-
-.fa-prescription-bottle-alt:before {
- content: "\f486"; }
-
-.fa-print:before {
- content: "\f02f"; }
-
-.fa-procedures:before {
- content: "\f487"; }
-
-.fa-product-hunt:before {
- content: "\f288"; }
-
-.fa-project-diagram:before {
- content: "\f542"; }
-
-.fa-pushed:before {
- content: "\f3e1"; }
-
-.fa-puzzle-piece:before {
- content: "\f12e"; }
-
-.fa-python:before {
- content: "\f3e2"; }
-
-.fa-qq:before {
- content: "\f1d6"; }
-
-.fa-qrcode:before {
- content: "\f029"; }
-
-.fa-question:before {
- content: "\f128"; }
-
-.fa-question-circle:before {
- content: "\f059"; }
-
-.fa-quidditch:before {
- content: "\f458"; }
-
-.fa-quinscape:before {
- content: "\f459"; }
-
-.fa-quora:before {
- content: "\f2c4"; }
-
-.fa-quote-left:before {
- content: "\f10d"; }
-
-.fa-quote-right:before {
- content: "\f10e"; }
-
-.fa-quran:before {
- content: "\f687"; }
-
-.fa-r-project:before {
- content: "\f4f7"; }
-
-.fa-radiation:before {
- content: "\f7b9"; }
-
-.fa-radiation-alt:before {
- content: "\f7ba"; }
-
-.fa-rainbow:before {
- content: "\f75b"; }
-
-.fa-random:before {
- content: "\f074"; }
-
-.fa-raspberry-pi:before {
- content: "\f7bb"; }
-
-.fa-ravelry:before {
- content: "\f2d9"; }
-
-.fa-react:before {
- content: "\f41b"; }
-
-.fa-reacteurope:before {
- content: "\f75d"; }
-
-.fa-readme:before {
- content: "\f4d5"; }
-
-.fa-rebel:before {
- content: "\f1d0"; }
-
-.fa-receipt:before {
- content: "\f543"; }
-
-.fa-recycle:before {
- content: "\f1b8"; }
-
-.fa-red-river:before {
- content: "\f3e3"; }
-
-.fa-reddit:before {
- content: "\f1a1"; }
-
-.fa-reddit-alien:before {
- content: "\f281"; }
-
-.fa-reddit-square:before {
- content: "\f1a2"; }
-
-.fa-redhat:before {
- content: "\f7bc"; }
-
-.fa-redo:before {
- content: "\f01e"; }
-
-.fa-redo-alt:before {
- content: "\f2f9"; }
-
-.fa-registered:before {
- content: "\f25d"; }
-
-.fa-renren:before {
- content: "\f18b"; }
-
-.fa-reply:before {
- content: "\f3e5"; }
-
-.fa-reply-all:before {
- content: "\f122"; }
-
-.fa-replyd:before {
- content: "\f3e6"; }
-
-.fa-republican:before {
- content: "\f75e"; }
-
-.fa-researchgate:before {
- content: "\f4f8"; }
-
-.fa-resolving:before {
- content: "\f3e7"; }
-
-.fa-restroom:before {
- content: "\f7bd"; }
-
-.fa-retweet:before {
- content: "\f079"; }
-
-.fa-rev:before {
- content: "\f5b2"; }
-
-.fa-ribbon:before {
- content: "\f4d6"; }
-
-.fa-ring:before {
- content: "\f70b"; }
-
-.fa-road:before {
- content: "\f018"; }
-
-.fa-robot:before {
- content: "\f544"; }
-
-.fa-rocket:before {
- content: "\f135"; }
-
-.fa-rocketchat:before {
- content: "\f3e8"; }
-
-.fa-rockrms:before {
- content: "\f3e9"; }
-
-.fa-route:before {
- content: "\f4d7"; }
-
-.fa-rss:before {
- content: "\f09e"; }
-
-.fa-rss-square:before {
- content: "\f143"; }
-
-.fa-ruble-sign:before {
- content: "\f158"; }
-
-.fa-ruler:before {
- content: "\f545"; }
-
-.fa-ruler-combined:before {
- content: "\f546"; }
-
-.fa-ruler-horizontal:before {
- content: "\f547"; }
-
-.fa-ruler-vertical:before {
- content: "\f548"; }
-
-.fa-running:before {
- content: "\f70c"; }
-
-.fa-rupee-sign:before {
- content: "\f156"; }
-
-.fa-sad-cry:before {
- content: "\f5b3"; }
-
-.fa-sad-tear:before {
- content: "\f5b4"; }
-
-.fa-safari:before {
- content: "\f267"; }
-
-.fa-salesforce:before {
- content: "\f83b"; }
-
-.fa-sass:before {
- content: "\f41e"; }
-
-.fa-satellite:before {
- content: "\f7bf"; }
-
-.fa-satellite-dish:before {
- content: "\f7c0"; }
-
-.fa-save:before {
- content: "\f0c7"; }
-
-.fa-schlix:before {
- content: "\f3ea"; }
-
-.fa-school:before {
- content: "\f549"; }
-
-.fa-screwdriver:before {
- content: "\f54a"; }
-
-.fa-scribd:before {
- content: "\f28a"; }
-
-.fa-scroll:before {
- content: "\f70e"; }
-
-.fa-sd-card:before {
- content: "\f7c2"; }
-
-.fa-search:before {
- content: "\f002"; }
-
-.fa-search-dollar:before {
- content: "\f688"; }
-
-.fa-search-location:before {
- content: "\f689"; }
-
-.fa-search-minus:before {
- content: "\f010"; }
-
-.fa-search-plus:before {
- content: "\f00e"; }
-
-.fa-searchengin:before {
- content: "\f3eb"; }
-
-.fa-seedling:before {
- content: "\f4d8"; }
-
-.fa-sellcast:before {
- content: "\f2da"; }
-
-.fa-sellsy:before {
- content: "\f213"; }
-
-.fa-server:before {
- content: "\f233"; }
-
-.fa-servicestack:before {
- content: "\f3ec"; }
-
-.fa-shapes:before {
- content: "\f61f"; }
-
-.fa-share:before {
- content: "\f064"; }
-
-.fa-share-alt:before {
- content: "\f1e0"; }
-
-.fa-share-alt-square:before {
- content: "\f1e1"; }
-
-.fa-share-square:before {
- content: "\f14d"; }
-
-.fa-shekel-sign:before {
- content: "\f20b"; }
-
-.fa-shield-alt:before {
- content: "\f3ed"; }
-
-.fa-ship:before {
- content: "\f21a"; }
-
-.fa-shipping-fast:before {
- content: "\f48b"; }
-
-.fa-shirtsinbulk:before {
- content: "\f214"; }
-
-.fa-shoe-prints:before {
- content: "\f54b"; }
-
-.fa-shopping-bag:before {
- content: "\f290"; }
-
-.fa-shopping-basket:before {
- content: "\f291"; }
-
-.fa-shopping-cart:before {
- content: "\f07a"; }
-
-.fa-shopware:before {
- content: "\f5b5"; }
-
-.fa-shower:before {
- content: "\f2cc"; }
-
-.fa-shuttle-van:before {
- content: "\f5b6"; }
-
-.fa-sign:before {
- content: "\f4d9"; }
-
-.fa-sign-in-alt:before {
- content: "\f2f6"; }
-
-.fa-sign-language:before {
- content: "\f2a7"; }
-
-.fa-sign-out-alt:before {
- content: "\f2f5"; }
-
-.fa-signal:before {
- content: "\f012"; }
-
-.fa-signature:before {
- content: "\f5b7"; }
-
-.fa-sim-card:before {
- content: "\f7c4"; }
-
-.fa-simplybuilt:before {
- content: "\f215"; }
-
-.fa-sistrix:before {
- content: "\f3ee"; }
-
-.fa-sitemap:before {
- content: "\f0e8"; }
-
-.fa-sith:before {
- content: "\f512"; }
-
-.fa-skating:before {
- content: "\f7c5"; }
-
-.fa-sketch:before {
- content: "\f7c6"; }
-
-.fa-skiing:before {
- content: "\f7c9"; }
-
-.fa-skiing-nordic:before {
- content: "\f7ca"; }
-
-.fa-skull:before {
- content: "\f54c"; }
-
-.fa-skull-crossbones:before {
- content: "\f714"; }
-
-.fa-skyatlas:before {
- content: "\f216"; }
-
-.fa-skype:before {
- content: "\f17e"; }
-
-.fa-slack:before {
- content: "\f198"; }
-
-.fa-slack-hash:before {
- content: "\f3ef"; }
-
-.fa-slash:before {
- content: "\f715"; }
-
-.fa-sleigh:before {
- content: "\f7cc"; }
-
-.fa-sliders-h:before {
- content: "\f1de"; }
-
-.fa-slideshare:before {
- content: "\f1e7"; }
-
-.fa-smile:before {
- content: "\f118"; }
-
-.fa-smile-beam:before {
- content: "\f5b8"; }
-
-.fa-smile-wink:before {
- content: "\f4da"; }
-
-.fa-smog:before {
- content: "\f75f"; }
-
-.fa-smoking:before {
- content: "\f48d"; }
-
-.fa-smoking-ban:before {
- content: "\f54d"; }
-
-.fa-sms:before {
- content: "\f7cd"; }
-
-.fa-snapchat:before {
- content: "\f2ab"; }
-
-.fa-snapchat-ghost:before {
- content: "\f2ac"; }
-
-.fa-snapchat-square:before {
- content: "\f2ad"; }
-
-.fa-snowboarding:before {
- content: "\f7ce"; }
-
-.fa-snowflake:before {
- content: "\f2dc"; }
-
-.fa-snowman:before {
- content: "\f7d0"; }
-
-.fa-snowplow:before {
- content: "\f7d2"; }
-
-.fa-socks:before {
- content: "\f696"; }
-
-.fa-solar-panel:before {
- content: "\f5ba"; }
-
-.fa-sort:before {
- content: "\f0dc"; }
-
-.fa-sort-alpha-down:before {
- content: "\f15d"; }
-
-.fa-sort-alpha-up:before {
- content: "\f15e"; }
-
-.fa-sort-amount-down:before {
- content: "\f160"; }
-
-.fa-sort-amount-up:before {
- content: "\f161"; }
-
-.fa-sort-down:before {
- content: "\f0dd"; }
-
-.fa-sort-numeric-down:before {
- content: "\f162"; }
-
-.fa-sort-numeric-up:before {
- content: "\f163"; }
-
-.fa-sort-up:before {
- content: "\f0de"; }
-
-.fa-soundcloud:before {
- content: "\f1be"; }
-
-.fa-sourcetree:before {
- content: "\f7d3"; }
-
-.fa-spa:before {
- content: "\f5bb"; }
-
-.fa-space-shuttle:before {
- content: "\f197"; }
-
-.fa-speakap:before {
- content: "\f3f3"; }
-
-.fa-speaker-deck:before {
- content: "\f83c"; }
-
-.fa-spider:before {
- content: "\f717"; }
-
-.fa-spinner:before {
- content: "\f110"; }
-
-.fa-splotch:before {
- content: "\f5bc"; }
-
-.fa-spotify:before {
- content: "\f1bc"; }
-
-.fa-spray-can:before {
- content: "\f5bd"; }
-
-.fa-square:before {
- content: "\f0c8"; }
-
-.fa-square-full:before {
- content: "\f45c"; }
-
-.fa-square-root-alt:before {
- content: "\f698"; }
-
-.fa-squarespace:before {
- content: "\f5be"; }
-
-.fa-stack-exchange:before {
- content: "\f18d"; }
-
-.fa-stack-overflow:before {
- content: "\f16c"; }
-
-.fa-stackpath:before {
- content: "\f842"; }
-
-.fa-stamp:before {
- content: "\f5bf"; }
-
-.fa-star:before {
- content: "\f005"; }
-
-.fa-star-and-crescent:before {
- content: "\f699"; }
-
-.fa-star-half:before {
- content: "\f089"; }
-
-.fa-star-half-alt:before {
- content: "\f5c0"; }
-
-.fa-star-of-david:before {
- content: "\f69a"; }
-
-.fa-star-of-life:before {
- content: "\f621"; }
-
-.fa-staylinked:before {
- content: "\f3f5"; }
-
-.fa-steam:before {
- content: "\f1b6"; }
-
-.fa-steam-square:before {
- content: "\f1b7"; }
-
-.fa-steam-symbol:before {
- content: "\f3f6"; }
-
-.fa-step-backward:before {
- content: "\f048"; }
-
-.fa-step-forward:before {
- content: "\f051"; }
-
-.fa-stethoscope:before {
- content: "\f0f1"; }
-
-.fa-sticker-mule:before {
- content: "\f3f7"; }
-
-.fa-sticky-note:before {
- content: "\f249"; }
-
-.fa-stop:before {
- content: "\f04d"; }
-
-.fa-stop-circle:before {
- content: "\f28d"; }
-
-.fa-stopwatch:before {
- content: "\f2f2"; }
-
-.fa-store:before {
- content: "\f54e"; }
-
-.fa-store-alt:before {
- content: "\f54f"; }
-
-.fa-strava:before {
- content: "\f428"; }
-
-.fa-stream:before {
- content: "\f550"; }
-
-.fa-street-view:before {
- content: "\f21d"; }
-
-.fa-strikethrough:before {
- content: "\f0cc"; }
-
-.fa-stripe:before {
- content: "\f429"; }
-
-.fa-stripe-s:before {
- content: "\f42a"; }
-
-.fa-stroopwafel:before {
- content: "\f551"; }
-
-.fa-studiovinari:before {
- content: "\f3f8"; }
-
-.fa-stumbleupon:before {
- content: "\f1a4"; }
-
-.fa-stumbleupon-circle:before {
- content: "\f1a3"; }
-
-.fa-subscript:before {
- content: "\f12c"; }
-
-.fa-subway:before {
- content: "\f239"; }
-
-.fa-suitcase:before {
- content: "\f0f2"; }
-
-.fa-suitcase-rolling:before {
- content: "\f5c1"; }
-
-.fa-sun:before {
- content: "\f185"; }
-
-.fa-superpowers:before {
- content: "\f2dd"; }
-
-.fa-superscript:before {
- content: "\f12b"; }
-
-.fa-supple:before {
- content: "\f3f9"; }
-
-.fa-surprise:before {
- content: "\f5c2"; }
-
-.fa-suse:before {
- content: "\f7d6"; }
-
-.fa-swatchbook:before {
- content: "\f5c3"; }
-
-.fa-swimmer:before {
- content: "\f5c4"; }
-
-.fa-swimming-pool:before {
- content: "\f5c5"; }
-
-.fa-symfony:before {
- content: "\f83d"; }
-
-.fa-synagogue:before {
- content: "\f69b"; }
-
-.fa-sync:before {
- content: "\f021"; }
-
-.fa-sync-alt:before {
- content: "\f2f1"; }
-
-.fa-syringe:before {
- content: "\f48e"; }
-
-.fa-table:before {
- content: "\f0ce"; }
-
-.fa-table-tennis:before {
- content: "\f45d"; }
-
-.fa-tablet:before {
- content: "\f10a"; }
-
-.fa-tablet-alt:before {
- content: "\f3fa"; }
-
-.fa-tablets:before {
- content: "\f490"; }
-
-.fa-tachometer-alt:before {
- content: "\f3fd"; }
-
-.fa-tag:before {
- content: "\f02b"; }
-
-.fa-tags:before {
- content: "\f02c"; }
-
-.fa-tape:before {
- content: "\f4db"; }
-
-.fa-tasks:before {
- content: "\f0ae"; }
-
-.fa-taxi:before {
- content: "\f1ba"; }
-
-.fa-teamspeak:before {
- content: "\f4f9"; }
-
-.fa-teeth:before {
- content: "\f62e"; }
-
-.fa-teeth-open:before {
- content: "\f62f"; }
-
-.fa-telegram:before {
- content: "\f2c6"; }
-
-.fa-telegram-plane:before {
- content: "\f3fe"; }
-
-.fa-temperature-high:before {
- content: "\f769"; }
-
-.fa-temperature-low:before {
- content: "\f76b"; }
-
-.fa-tencent-weibo:before {
- content: "\f1d5"; }
-
-.fa-tenge:before {
- content: "\f7d7"; }
-
-.fa-terminal:before {
- content: "\f120"; }
-
-.fa-text-height:before {
- content: "\f034"; }
-
-.fa-text-width:before {
- content: "\f035"; }
-
-.fa-th:before {
- content: "\f00a"; }
-
-.fa-th-large:before {
- content: "\f009"; }
-
-.fa-th-list:before {
- content: "\f00b"; }
-
-.fa-the-red-yeti:before {
- content: "\f69d"; }
-
-.fa-theater-masks:before {
- content: "\f630"; }
-
-.fa-themeco:before {
- content: "\f5c6"; }
-
-.fa-themeisle:before {
- content: "\f2b2"; }
-
-.fa-thermometer:before {
- content: "\f491"; }
-
-.fa-thermometer-empty:before {
- content: "\f2cb"; }
-
-.fa-thermometer-full:before {
- content: "\f2c7"; }
-
-.fa-thermometer-half:before {
- content: "\f2c9"; }
-
-.fa-thermometer-quarter:before {
- content: "\f2ca"; }
-
-.fa-thermometer-three-quarters:before {
- content: "\f2c8"; }
-
-.fa-think-peaks:before {
- content: "\f731"; }
-
-.fa-thumbs-down:before {
- content: "\f165"; }
-
-.fa-thumbs-up:before {
- content: "\f164"; }
-
-.fa-thumbtack:before {
- content: "\f08d"; }
-
-.fa-ticket-alt:before {
- content: "\f3ff"; }
-
-.fa-times:before {
- content: "\f00d"; }
-
-.fa-times-circle:before {
- content: "\f057"; }
-
-.fa-tint:before {
- content: "\f043"; }
-
-.fa-tint-slash:before {
- content: "\f5c7"; }
-
-.fa-tired:before {
- content: "\f5c8"; }
-
-.fa-toggle-off:before {
- content: "\f204"; }
-
-.fa-toggle-on:before {
- content: "\f205"; }
-
-.fa-toilet:before {
- content: "\f7d8"; }
-
-.fa-toilet-paper:before {
- content: "\f71e"; }
-
-.fa-toolbox:before {
- content: "\f552"; }
-
-.fa-tools:before {
- content: "\f7d9"; }
-
-.fa-tooth:before {
- content: "\f5c9"; }
-
-.fa-torah:before {
- content: "\f6a0"; }
-
-.fa-torii-gate:before {
- content: "\f6a1"; }
-
-.fa-tractor:before {
- content: "\f722"; }
-
-.fa-trade-federation:before {
- content: "\f513"; }
-
-.fa-trademark:before {
- content: "\f25c"; }
-
-.fa-traffic-light:before {
- content: "\f637"; }
-
-.fa-train:before {
- content: "\f238"; }
-
-.fa-tram:before {
- content: "\f7da"; }
-
-.fa-transgender:before {
- content: "\f224"; }
-
-.fa-transgender-alt:before {
- content: "\f225"; }
-
-.fa-trash:before {
- content: "\f1f8"; }
-
-.fa-trash-alt:before {
- content: "\f2ed"; }
-
-.fa-trash-restore:before {
- content: "\f829"; }
-
-.fa-trash-restore-alt:before {
- content: "\f82a"; }
-
-.fa-tree:before {
- content: "\f1bb"; }
-
-.fa-trello:before {
- content: "\f181"; }
-
-.fa-tripadvisor:before {
- content: "\f262"; }
-
-.fa-trophy:before {
- content: "\f091"; }
-
-.fa-truck:before {
- content: "\f0d1"; }
-
-.fa-truck-loading:before {
- content: "\f4de"; }
-
-.fa-truck-monster:before {
- content: "\f63b"; }
-
-.fa-truck-moving:before {
- content: "\f4df"; }
-
-.fa-truck-pickup:before {
- content: "\f63c"; }
-
-.fa-tshirt:before {
- content: "\f553"; }
-
-.fa-tty:before {
- content: "\f1e4"; }
-
-.fa-tumblr:before {
- content: "\f173"; }
-
-.fa-tumblr-square:before {
- content: "\f174"; }
-
-.fa-tv:before {
- content: "\f26c"; }
-
-.fa-twitch:before {
- content: "\f1e8"; }
-
-.fa-twitter:before {
- content: "\f099"; }
-
-.fa-twitter-square:before {
- content: "\f081"; }
-
-.fa-typo3:before {
- content: "\f42b"; }
-
-.fa-uber:before {
- content: "\f402"; }
-
-.fa-ubuntu:before {
- content: "\f7df"; }
-
-.fa-uikit:before {
- content: "\f403"; }
-
-.fa-umbrella:before {
- content: "\f0e9"; }
-
-.fa-umbrella-beach:before {
- content: "\f5ca"; }
-
-.fa-underline:before {
- content: "\f0cd"; }
-
-.fa-undo:before {
- content: "\f0e2"; }
-
-.fa-undo-alt:before {
- content: "\f2ea"; }
-
-.fa-uniregistry:before {
- content: "\f404"; }
-
-.fa-universal-access:before {
- content: "\f29a"; }
-
-.fa-university:before {
- content: "\f19c"; }
-
-.fa-unlink:before {
- content: "\f127"; }
-
-.fa-unlock:before {
- content: "\f09c"; }
-
-.fa-unlock-alt:before {
- content: "\f13e"; }
-
-.fa-untappd:before {
- content: "\f405"; }
-
-.fa-upload:before {
- content: "\f093"; }
-
-.fa-ups:before {
- content: "\f7e0"; }
-
-.fa-usb:before {
- content: "\f287"; }
-
-.fa-user:before {
- content: "\f007"; }
-
-.fa-user-alt:before {
- content: "\f406"; }
-
-.fa-user-alt-slash:before {
- content: "\f4fa"; }
-
-.fa-user-astronaut:before {
- content: "\f4fb"; }
-
-.fa-user-check:before {
- content: "\f4fc"; }
-
-.fa-user-circle:before {
- content: "\f2bd"; }
-
-.fa-user-clock:before {
- content: "\f4fd"; }
-
-.fa-user-cog:before {
- content: "\f4fe"; }
-
-.fa-user-edit:before {
- content: "\f4ff"; }
-
-.fa-user-friends:before {
- content: "\f500"; }
-
-.fa-user-graduate:before {
- content: "\f501"; }
-
-.fa-user-injured:before {
- content: "\f728"; }
-
-.fa-user-lock:before {
- content: "\f502"; }
-
-.fa-user-md:before {
- content: "\f0f0"; }
-
-.fa-user-minus:before {
- content: "\f503"; }
-
-.fa-user-ninja:before {
- content: "\f504"; }
-
-.fa-user-nurse:before {
- content: "\f82f"; }
-
-.fa-user-plus:before {
- content: "\f234"; }
-
-.fa-user-secret:before {
- content: "\f21b"; }
-
-.fa-user-shield:before {
- content: "\f505"; }
-
-.fa-user-slash:before {
- content: "\f506"; }
-
-.fa-user-tag:before {
- content: "\f507"; }
-
-.fa-user-tie:before {
- content: "\f508"; }
-
-.fa-user-times:before {
- content: "\f235"; }
-
-.fa-users:before {
- content: "\f0c0"; }
-
-.fa-users-cog:before {
- content: "\f509"; }
-
-.fa-usps:before {
- content: "\f7e1"; }
-
-.fa-ussunnah:before {
- content: "\f407"; }
-
-.fa-utensil-spoon:before {
- content: "\f2e5"; }
-
-.fa-utensils:before {
- content: "\f2e7"; }
-
-.fa-vaadin:before {
- content: "\f408"; }
-
-.fa-vector-square:before {
- content: "\f5cb"; }
-
-.fa-venus:before {
- content: "\f221"; }
-
-.fa-venus-double:before {
- content: "\f226"; }
-
-.fa-venus-mars:before {
- content: "\f228"; }
-
-.fa-viacoin:before {
- content: "\f237"; }
-
-.fa-viadeo:before {
- content: "\f2a9"; }
-
-.fa-viadeo-square:before {
- content: "\f2aa"; }
-
-.fa-vial:before {
- content: "\f492"; }
-
-.fa-vials:before {
- content: "\f493"; }
-
-.fa-viber:before {
- content: "\f409"; }
-
-.fa-video:before {
- content: "\f03d"; }
-
-.fa-video-slash:before {
- content: "\f4e2"; }
-
-.fa-vihara:before {
- content: "\f6a7"; }
-
-.fa-vimeo:before {
- content: "\f40a"; }
-
-.fa-vimeo-square:before {
- content: "\f194"; }
-
-.fa-vimeo-v:before {
- content: "\f27d"; }
-
-.fa-vine:before {
- content: "\f1ca"; }
-
-.fa-vk:before {
- content: "\f189"; }
-
-.fa-vnv:before {
- content: "\f40b"; }
-
-.fa-volleyball-ball:before {
- content: "\f45f"; }
-
-.fa-volume-down:before {
- content: "\f027"; }
-
-.fa-volume-mute:before {
- content: "\f6a9"; }
-
-.fa-volume-off:before {
- content: "\f026"; }
-
-.fa-volume-up:before {
- content: "\f028"; }
-
-.fa-vote-yea:before {
- content: "\f772"; }
-
-.fa-vr-cardboard:before {
- content: "\f729"; }
-
-.fa-vuejs:before {
- content: "\f41f"; }
-
-.fa-walking:before {
- content: "\f554"; }
-
-.fa-wallet:before {
- content: "\f555"; }
-
-.fa-warehouse:before {
- content: "\f494"; }
-
-.fa-water:before {
- content: "\f773"; }
-
-.fa-wave-square:before {
- content: "\f83e"; }
-
-.fa-waze:before {
- content: "\f83f"; }
-
-.fa-weebly:before {
- content: "\f5cc"; }
-
-.fa-weibo:before {
- content: "\f18a"; }
-
-.fa-weight:before {
- content: "\f496"; }
-
-.fa-weight-hanging:before {
- content: "\f5cd"; }
-
-.fa-weixin:before {
- content: "\f1d7"; }
-
-.fa-whatsapp:before {
- content: "\f232"; }
-
-.fa-whatsapp-square:before {
- content: "\f40c"; }
-
-.fa-wheelchair:before {
- content: "\f193"; }
-
-.fa-whmcs:before {
- content: "\f40d"; }
-
-.fa-wifi:before {
- content: "\f1eb"; }
-
-.fa-wikipedia-w:before {
- content: "\f266"; }
-
-.fa-wind:before {
- content: "\f72e"; }
-
-.fa-window-close:before {
- content: "\f410"; }
-
-.fa-window-maximize:before {
- content: "\f2d0"; }
-
-.fa-window-minimize:before {
- content: "\f2d1"; }
-
-.fa-window-restore:before {
- content: "\f2d2"; }
-
-.fa-windows:before {
- content: "\f17a"; }
-
-.fa-wine-bottle:before {
- content: "\f72f"; }
-
-.fa-wine-glass:before {
- content: "\f4e3"; }
-
-.fa-wine-glass-alt:before {
- content: "\f5ce"; }
-
-.fa-wix:before {
- content: "\f5cf"; }
-
-.fa-wizards-of-the-coast:before {
- content: "\f730"; }
-
-.fa-wolf-pack-battalion:before {
- content: "\f514"; }
-
-.fa-won-sign:before {
- content: "\f159"; }
-
-.fa-wordpress:before {
- content: "\f19a"; }
-
-.fa-wordpress-simple:before {
- content: "\f411"; }
-
-.fa-wpbeginner:before {
- content: "\f297"; }
-
-.fa-wpexplorer:before {
- content: "\f2de"; }
-
-.fa-wpforms:before {
- content: "\f298"; }
-
-.fa-wpressr:before {
- content: "\f3e4"; }
-
-.fa-wrench:before {
- content: "\f0ad"; }
-
-.fa-x-ray:before {
- content: "\f497"; }
-
-.fa-xbox:before {
- content: "\f412"; }
-
-.fa-xing:before {
- content: "\f168"; }
-
-.fa-xing-square:before {
- content: "\f169"; }
-
-.fa-y-combinator:before {
- content: "\f23b"; }
-
-.fa-yahoo:before {
- content: "\f19e"; }
-
-.fa-yammer:before {
- content: "\f840"; }
-
-.fa-yandex:before {
- content: "\f413"; }
-
-.fa-yandex-international:before {
- content: "\f414"; }
-
-.fa-yarn:before {
- content: "\f7e3"; }
-
-.fa-yelp:before {
- content: "\f1e9"; }
-
-.fa-yen-sign:before {
- content: "\f157"; }
-
-.fa-yin-yang:before {
- content: "\f6ad"; }
-
-.fa-yoast:before {
- content: "\f2b1"; }
-
-.fa-youtube:before {
- content: "\f167"; }
-
-.fa-youtube-square:before {
- content: "\f431"; }
-
-.fa-zhihu:before {
- content: "\f63f"; }
-
-.sr-only {
- border: 0;
- clip: rect(0, 0, 0, 0);
- height: 1px;
- margin: -1px;
- overflow: hidden;
- padding: 0;
- position: absolute;
- width: 1px; }
-
-.sr-only-focusable:active, .sr-only-focusable:focus {
- clip: auto;
- height: auto;
- margin: 0;
- overflow: visible;
- position: static;
- width: auto; }
-
-/*!
- * Font Awesome Free 5.8.2 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- */
-@font-face {
- font-family: 'Font Awesome 5 Free';
- font-style: normal;
- font-weight: 900;
- font-display: auto;
- src: url("./webfonts/fa-solid-900.eot");
- src: url("./webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("./webfonts/fa-solid-900.woff2") format("woff2"), url("./webfonts/fa-solid-900.woff") format("woff"), url("./webfonts/fa-solid-900.ttf") format("truetype"), url("./webfonts/fa-solid-900.svg#fontawesome") format("svg"); }
-
-.fa,
-.fas {
- font-family: 'Font Awesome 5 Free';
- font-weight: 900; }
-
-/*!
- * Font Awesome Free 5.8.2 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- */
-@font-face {
- font-family: 'Font Awesome 5 Brands';
- font-style: normal;
- font-weight: normal;
- font-display: auto;
- src: url("./webfonts/fa-brands-400.eot");
- src: url("./webfonts/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("./webfonts/fa-brands-400.woff2") format("woff2"), url("./webfonts/fa-brands-400.woff") format("woff"), url("./webfonts/fa-brands-400.ttf") format("truetype"), url("./webfonts/fa-brands-400.svg#fontawesome") format("svg"); }
-
-.fab {
- font-family: 'Font Awesome 5 Brands'; }
-
-.fa-1x {
- font-size: 0.9em !important; }
-
-#content {
- width: 100%;
- max-width: 650px;
- min-height: calc(100vh - 105px); }
-
-#home-image {
- width: 120px;
- height: 120px;
- border: solid 5px white;
- box-shadow: 0px 10px 7px -10px rgba(0, 0, 0, 0.6); }
-
-#nav-links {
- position: relative;
- left: -5px; }
-
-#nav-social {
- position: relative;
- left: 1px; }
-
-.category {
- color: white;
- background-color: #212529; }
-
-.highlight > pre {
- padding: 0.5rem 0.8rem;
- border: 1px solid;
- border-color: #ddd #ddd #ccc;
- border-radius: 3px; }
-
-hr {
- border: 0;
- height: 1px;
- background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(51, 51, 51, 0.3), rgba(51, 51, 51, 0.4), rgba(51, 51, 51, 0.3), rgba(0, 0, 0, 0)); }
-
-h1, h2 {
- letter-spacing: -0.085rem;
- font-weight: 700; }
-
-h3, h4 {
- letter-spacing: -0.065rem;
- font-weight: 700; }
-
-p {
- margin-bottom: 0.7rem; }
-
-header h2 a, header h2 a:hover {
- color: #212529; }
-
-img {
- border-radius: 0.20rem; }
-
-h4 {
- margin-top: 2.2rem;
- margin-bottom: 0.7rem; }
-
-a {
- text-decoration: underline; }